fast-path.generated.go 655 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094
  1. // //+build ignore
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a BSD-style 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. // - symetrical 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 fastpathCheckNilFalse = false // for reflect
  36. const fastpathCheckNilTrue = true // for type switch
  37. type fastpathT struct{}
  38. var fastpathTV fastpathT
  39. type fastpathE struct {
  40. rtid uintptr
  41. rt reflect.Type
  42. encfn func(encFnInfo, reflect.Value)
  43. decfn func(decFnInfo, reflect.Value)
  44. }
  45. type fastpathA [239]fastpathE
  46. func (x *fastpathA) index(rtid uintptr) int {
  47. // use binary search to grab the index (adapted from sort/search.go)
  48. h, i, j := 0, 0, 239 // len(x)
  49. for i < j {
  50. h = i + (j-i)/2
  51. if x[h].rtid < rtid {
  52. i = h + 1
  53. } else {
  54. j = h
  55. }
  56. }
  57. if i < 239 && x[i].rtid == rtid {
  58. return i
  59. }
  60. return -1
  61. }
  62. type fastpathAslice []fastpathE
  63. func (x fastpathAslice) Len() int { return len(x) }
  64. func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
  65. func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
  66. var fastpathAV fastpathA
  67. // due to possible initialization loop error, make fastpath in an init()
  68. func init() {
  69. if !fastpathEnabled {
  70. return
  71. }
  72. i := 0
  73. fn := func(v interface{}, fe func(encFnInfo, reflect.Value), fd func(decFnInfo, reflect.Value)) (f fastpathE) {
  74. xrt := reflect.TypeOf(v)
  75. xptr := reflect.ValueOf(xrt).Pointer()
  76. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  77. i++
  78. return
  79. }
  80. fn([]interface{}(nil), (encFnInfo).fastpathEncSliceIntfR, (decFnInfo).fastpathDecSliceIntfR)
  81. fn([]string(nil), (encFnInfo).fastpathEncSliceStringR, (decFnInfo).fastpathDecSliceStringR)
  82. fn([]float32(nil), (encFnInfo).fastpathEncSliceFloat32R, (decFnInfo).fastpathDecSliceFloat32R)
  83. fn([]float64(nil), (encFnInfo).fastpathEncSliceFloat64R, (decFnInfo).fastpathDecSliceFloat64R)
  84. fn([]uint(nil), (encFnInfo).fastpathEncSliceUintR, (decFnInfo).fastpathDecSliceUintR)
  85. fn([]uint16(nil), (encFnInfo).fastpathEncSliceUint16R, (decFnInfo).fastpathDecSliceUint16R)
  86. fn([]uint32(nil), (encFnInfo).fastpathEncSliceUint32R, (decFnInfo).fastpathDecSliceUint32R)
  87. fn([]uint64(nil), (encFnInfo).fastpathEncSliceUint64R, (decFnInfo).fastpathDecSliceUint64R)
  88. fn([]int(nil), (encFnInfo).fastpathEncSliceIntR, (decFnInfo).fastpathDecSliceIntR)
  89. fn([]int8(nil), (encFnInfo).fastpathEncSliceInt8R, (decFnInfo).fastpathDecSliceInt8R)
  90. fn([]int16(nil), (encFnInfo).fastpathEncSliceInt16R, (decFnInfo).fastpathDecSliceInt16R)
  91. fn([]int32(nil), (encFnInfo).fastpathEncSliceInt32R, (decFnInfo).fastpathDecSliceInt32R)
  92. fn([]int64(nil), (encFnInfo).fastpathEncSliceInt64R, (decFnInfo).fastpathDecSliceInt64R)
  93. fn([]bool(nil), (encFnInfo).fastpathEncSliceBoolR, (decFnInfo).fastpathDecSliceBoolR)
  94. fn(map[interface{}]interface{}(nil), (encFnInfo).fastpathEncMapIntfIntfR, (decFnInfo).fastpathDecMapIntfIntfR)
  95. fn(map[interface{}]string(nil), (encFnInfo).fastpathEncMapIntfStringR, (decFnInfo).fastpathDecMapIntfStringR)
  96. fn(map[interface{}]uint(nil), (encFnInfo).fastpathEncMapIntfUintR, (decFnInfo).fastpathDecMapIntfUintR)
  97. fn(map[interface{}]uint8(nil), (encFnInfo).fastpathEncMapIntfUint8R, (decFnInfo).fastpathDecMapIntfUint8R)
  98. fn(map[interface{}]uint16(nil), (encFnInfo).fastpathEncMapIntfUint16R, (decFnInfo).fastpathDecMapIntfUint16R)
  99. fn(map[interface{}]uint32(nil), (encFnInfo).fastpathEncMapIntfUint32R, (decFnInfo).fastpathDecMapIntfUint32R)
  100. fn(map[interface{}]uint64(nil), (encFnInfo).fastpathEncMapIntfUint64R, (decFnInfo).fastpathDecMapIntfUint64R)
  101. fn(map[interface{}]int(nil), (encFnInfo).fastpathEncMapIntfIntR, (decFnInfo).fastpathDecMapIntfIntR)
  102. fn(map[interface{}]int8(nil), (encFnInfo).fastpathEncMapIntfInt8R, (decFnInfo).fastpathDecMapIntfInt8R)
  103. fn(map[interface{}]int16(nil), (encFnInfo).fastpathEncMapIntfInt16R, (decFnInfo).fastpathDecMapIntfInt16R)
  104. fn(map[interface{}]int32(nil), (encFnInfo).fastpathEncMapIntfInt32R, (decFnInfo).fastpathDecMapIntfInt32R)
  105. fn(map[interface{}]int64(nil), (encFnInfo).fastpathEncMapIntfInt64R, (decFnInfo).fastpathDecMapIntfInt64R)
  106. fn(map[interface{}]float32(nil), (encFnInfo).fastpathEncMapIntfFloat32R, (decFnInfo).fastpathDecMapIntfFloat32R)
  107. fn(map[interface{}]float64(nil), (encFnInfo).fastpathEncMapIntfFloat64R, (decFnInfo).fastpathDecMapIntfFloat64R)
  108. fn(map[interface{}]bool(nil), (encFnInfo).fastpathEncMapIntfBoolR, (decFnInfo).fastpathDecMapIntfBoolR)
  109. fn(map[string]interface{}(nil), (encFnInfo).fastpathEncMapStringIntfR, (decFnInfo).fastpathDecMapStringIntfR)
  110. fn(map[string]string(nil), (encFnInfo).fastpathEncMapStringStringR, (decFnInfo).fastpathDecMapStringStringR)
  111. fn(map[string]uint(nil), (encFnInfo).fastpathEncMapStringUintR, (decFnInfo).fastpathDecMapStringUintR)
  112. fn(map[string]uint8(nil), (encFnInfo).fastpathEncMapStringUint8R, (decFnInfo).fastpathDecMapStringUint8R)
  113. fn(map[string]uint16(nil), (encFnInfo).fastpathEncMapStringUint16R, (decFnInfo).fastpathDecMapStringUint16R)
  114. fn(map[string]uint32(nil), (encFnInfo).fastpathEncMapStringUint32R, (decFnInfo).fastpathDecMapStringUint32R)
  115. fn(map[string]uint64(nil), (encFnInfo).fastpathEncMapStringUint64R, (decFnInfo).fastpathDecMapStringUint64R)
  116. fn(map[string]int(nil), (encFnInfo).fastpathEncMapStringIntR, (decFnInfo).fastpathDecMapStringIntR)
  117. fn(map[string]int8(nil), (encFnInfo).fastpathEncMapStringInt8R, (decFnInfo).fastpathDecMapStringInt8R)
  118. fn(map[string]int16(nil), (encFnInfo).fastpathEncMapStringInt16R, (decFnInfo).fastpathDecMapStringInt16R)
  119. fn(map[string]int32(nil), (encFnInfo).fastpathEncMapStringInt32R, (decFnInfo).fastpathDecMapStringInt32R)
  120. fn(map[string]int64(nil), (encFnInfo).fastpathEncMapStringInt64R, (decFnInfo).fastpathDecMapStringInt64R)
  121. fn(map[string]float32(nil), (encFnInfo).fastpathEncMapStringFloat32R, (decFnInfo).fastpathDecMapStringFloat32R)
  122. fn(map[string]float64(nil), (encFnInfo).fastpathEncMapStringFloat64R, (decFnInfo).fastpathDecMapStringFloat64R)
  123. fn(map[string]bool(nil), (encFnInfo).fastpathEncMapStringBoolR, (decFnInfo).fastpathDecMapStringBoolR)
  124. fn(map[float32]interface{}(nil), (encFnInfo).fastpathEncMapFloat32IntfR, (decFnInfo).fastpathDecMapFloat32IntfR)
  125. fn(map[float32]string(nil), (encFnInfo).fastpathEncMapFloat32StringR, (decFnInfo).fastpathDecMapFloat32StringR)
  126. fn(map[float32]uint(nil), (encFnInfo).fastpathEncMapFloat32UintR, (decFnInfo).fastpathDecMapFloat32UintR)
  127. fn(map[float32]uint8(nil), (encFnInfo).fastpathEncMapFloat32Uint8R, (decFnInfo).fastpathDecMapFloat32Uint8R)
  128. fn(map[float32]uint16(nil), (encFnInfo).fastpathEncMapFloat32Uint16R, (decFnInfo).fastpathDecMapFloat32Uint16R)
  129. fn(map[float32]uint32(nil), (encFnInfo).fastpathEncMapFloat32Uint32R, (decFnInfo).fastpathDecMapFloat32Uint32R)
  130. fn(map[float32]uint64(nil), (encFnInfo).fastpathEncMapFloat32Uint64R, (decFnInfo).fastpathDecMapFloat32Uint64R)
  131. fn(map[float32]int(nil), (encFnInfo).fastpathEncMapFloat32IntR, (decFnInfo).fastpathDecMapFloat32IntR)
  132. fn(map[float32]int8(nil), (encFnInfo).fastpathEncMapFloat32Int8R, (decFnInfo).fastpathDecMapFloat32Int8R)
  133. fn(map[float32]int16(nil), (encFnInfo).fastpathEncMapFloat32Int16R, (decFnInfo).fastpathDecMapFloat32Int16R)
  134. fn(map[float32]int32(nil), (encFnInfo).fastpathEncMapFloat32Int32R, (decFnInfo).fastpathDecMapFloat32Int32R)
  135. fn(map[float32]int64(nil), (encFnInfo).fastpathEncMapFloat32Int64R, (decFnInfo).fastpathDecMapFloat32Int64R)
  136. fn(map[float32]float32(nil), (encFnInfo).fastpathEncMapFloat32Float32R, (decFnInfo).fastpathDecMapFloat32Float32R)
  137. fn(map[float32]float64(nil), (encFnInfo).fastpathEncMapFloat32Float64R, (decFnInfo).fastpathDecMapFloat32Float64R)
  138. fn(map[float32]bool(nil), (encFnInfo).fastpathEncMapFloat32BoolR, (decFnInfo).fastpathDecMapFloat32BoolR)
  139. fn(map[float64]interface{}(nil), (encFnInfo).fastpathEncMapFloat64IntfR, (decFnInfo).fastpathDecMapFloat64IntfR)
  140. fn(map[float64]string(nil), (encFnInfo).fastpathEncMapFloat64StringR, (decFnInfo).fastpathDecMapFloat64StringR)
  141. fn(map[float64]uint(nil), (encFnInfo).fastpathEncMapFloat64UintR, (decFnInfo).fastpathDecMapFloat64UintR)
  142. fn(map[float64]uint8(nil), (encFnInfo).fastpathEncMapFloat64Uint8R, (decFnInfo).fastpathDecMapFloat64Uint8R)
  143. fn(map[float64]uint16(nil), (encFnInfo).fastpathEncMapFloat64Uint16R, (decFnInfo).fastpathDecMapFloat64Uint16R)
  144. fn(map[float64]uint32(nil), (encFnInfo).fastpathEncMapFloat64Uint32R, (decFnInfo).fastpathDecMapFloat64Uint32R)
  145. fn(map[float64]uint64(nil), (encFnInfo).fastpathEncMapFloat64Uint64R, (decFnInfo).fastpathDecMapFloat64Uint64R)
  146. fn(map[float64]int(nil), (encFnInfo).fastpathEncMapFloat64IntR, (decFnInfo).fastpathDecMapFloat64IntR)
  147. fn(map[float64]int8(nil), (encFnInfo).fastpathEncMapFloat64Int8R, (decFnInfo).fastpathDecMapFloat64Int8R)
  148. fn(map[float64]int16(nil), (encFnInfo).fastpathEncMapFloat64Int16R, (decFnInfo).fastpathDecMapFloat64Int16R)
  149. fn(map[float64]int32(nil), (encFnInfo).fastpathEncMapFloat64Int32R, (decFnInfo).fastpathDecMapFloat64Int32R)
  150. fn(map[float64]int64(nil), (encFnInfo).fastpathEncMapFloat64Int64R, (decFnInfo).fastpathDecMapFloat64Int64R)
  151. fn(map[float64]float32(nil), (encFnInfo).fastpathEncMapFloat64Float32R, (decFnInfo).fastpathDecMapFloat64Float32R)
  152. fn(map[float64]float64(nil), (encFnInfo).fastpathEncMapFloat64Float64R, (decFnInfo).fastpathDecMapFloat64Float64R)
  153. fn(map[float64]bool(nil), (encFnInfo).fastpathEncMapFloat64BoolR, (decFnInfo).fastpathDecMapFloat64BoolR)
  154. fn(map[uint]interface{}(nil), (encFnInfo).fastpathEncMapUintIntfR, (decFnInfo).fastpathDecMapUintIntfR)
  155. fn(map[uint]string(nil), (encFnInfo).fastpathEncMapUintStringR, (decFnInfo).fastpathDecMapUintStringR)
  156. fn(map[uint]uint(nil), (encFnInfo).fastpathEncMapUintUintR, (decFnInfo).fastpathDecMapUintUintR)
  157. fn(map[uint]uint8(nil), (encFnInfo).fastpathEncMapUintUint8R, (decFnInfo).fastpathDecMapUintUint8R)
  158. fn(map[uint]uint16(nil), (encFnInfo).fastpathEncMapUintUint16R, (decFnInfo).fastpathDecMapUintUint16R)
  159. fn(map[uint]uint32(nil), (encFnInfo).fastpathEncMapUintUint32R, (decFnInfo).fastpathDecMapUintUint32R)
  160. fn(map[uint]uint64(nil), (encFnInfo).fastpathEncMapUintUint64R, (decFnInfo).fastpathDecMapUintUint64R)
  161. fn(map[uint]int(nil), (encFnInfo).fastpathEncMapUintIntR, (decFnInfo).fastpathDecMapUintIntR)
  162. fn(map[uint]int8(nil), (encFnInfo).fastpathEncMapUintInt8R, (decFnInfo).fastpathDecMapUintInt8R)
  163. fn(map[uint]int16(nil), (encFnInfo).fastpathEncMapUintInt16R, (decFnInfo).fastpathDecMapUintInt16R)
  164. fn(map[uint]int32(nil), (encFnInfo).fastpathEncMapUintInt32R, (decFnInfo).fastpathDecMapUintInt32R)
  165. fn(map[uint]int64(nil), (encFnInfo).fastpathEncMapUintInt64R, (decFnInfo).fastpathDecMapUintInt64R)
  166. fn(map[uint]float32(nil), (encFnInfo).fastpathEncMapUintFloat32R, (decFnInfo).fastpathDecMapUintFloat32R)
  167. fn(map[uint]float64(nil), (encFnInfo).fastpathEncMapUintFloat64R, (decFnInfo).fastpathDecMapUintFloat64R)
  168. fn(map[uint]bool(nil), (encFnInfo).fastpathEncMapUintBoolR, (decFnInfo).fastpathDecMapUintBoolR)
  169. fn(map[uint8]interface{}(nil), (encFnInfo).fastpathEncMapUint8IntfR, (decFnInfo).fastpathDecMapUint8IntfR)
  170. fn(map[uint8]string(nil), (encFnInfo).fastpathEncMapUint8StringR, (decFnInfo).fastpathDecMapUint8StringR)
  171. fn(map[uint8]uint(nil), (encFnInfo).fastpathEncMapUint8UintR, (decFnInfo).fastpathDecMapUint8UintR)
  172. fn(map[uint8]uint8(nil), (encFnInfo).fastpathEncMapUint8Uint8R, (decFnInfo).fastpathDecMapUint8Uint8R)
  173. fn(map[uint8]uint16(nil), (encFnInfo).fastpathEncMapUint8Uint16R, (decFnInfo).fastpathDecMapUint8Uint16R)
  174. fn(map[uint8]uint32(nil), (encFnInfo).fastpathEncMapUint8Uint32R, (decFnInfo).fastpathDecMapUint8Uint32R)
  175. fn(map[uint8]uint64(nil), (encFnInfo).fastpathEncMapUint8Uint64R, (decFnInfo).fastpathDecMapUint8Uint64R)
  176. fn(map[uint8]int(nil), (encFnInfo).fastpathEncMapUint8IntR, (decFnInfo).fastpathDecMapUint8IntR)
  177. fn(map[uint8]int8(nil), (encFnInfo).fastpathEncMapUint8Int8R, (decFnInfo).fastpathDecMapUint8Int8R)
  178. fn(map[uint8]int16(nil), (encFnInfo).fastpathEncMapUint8Int16R, (decFnInfo).fastpathDecMapUint8Int16R)
  179. fn(map[uint8]int32(nil), (encFnInfo).fastpathEncMapUint8Int32R, (decFnInfo).fastpathDecMapUint8Int32R)
  180. fn(map[uint8]int64(nil), (encFnInfo).fastpathEncMapUint8Int64R, (decFnInfo).fastpathDecMapUint8Int64R)
  181. fn(map[uint8]float32(nil), (encFnInfo).fastpathEncMapUint8Float32R, (decFnInfo).fastpathDecMapUint8Float32R)
  182. fn(map[uint8]float64(nil), (encFnInfo).fastpathEncMapUint8Float64R, (decFnInfo).fastpathDecMapUint8Float64R)
  183. fn(map[uint8]bool(nil), (encFnInfo).fastpathEncMapUint8BoolR, (decFnInfo).fastpathDecMapUint8BoolR)
  184. fn(map[uint16]interface{}(nil), (encFnInfo).fastpathEncMapUint16IntfR, (decFnInfo).fastpathDecMapUint16IntfR)
  185. fn(map[uint16]string(nil), (encFnInfo).fastpathEncMapUint16StringR, (decFnInfo).fastpathDecMapUint16StringR)
  186. fn(map[uint16]uint(nil), (encFnInfo).fastpathEncMapUint16UintR, (decFnInfo).fastpathDecMapUint16UintR)
  187. fn(map[uint16]uint8(nil), (encFnInfo).fastpathEncMapUint16Uint8R, (decFnInfo).fastpathDecMapUint16Uint8R)
  188. fn(map[uint16]uint16(nil), (encFnInfo).fastpathEncMapUint16Uint16R, (decFnInfo).fastpathDecMapUint16Uint16R)
  189. fn(map[uint16]uint32(nil), (encFnInfo).fastpathEncMapUint16Uint32R, (decFnInfo).fastpathDecMapUint16Uint32R)
  190. fn(map[uint16]uint64(nil), (encFnInfo).fastpathEncMapUint16Uint64R, (decFnInfo).fastpathDecMapUint16Uint64R)
  191. fn(map[uint16]int(nil), (encFnInfo).fastpathEncMapUint16IntR, (decFnInfo).fastpathDecMapUint16IntR)
  192. fn(map[uint16]int8(nil), (encFnInfo).fastpathEncMapUint16Int8R, (decFnInfo).fastpathDecMapUint16Int8R)
  193. fn(map[uint16]int16(nil), (encFnInfo).fastpathEncMapUint16Int16R, (decFnInfo).fastpathDecMapUint16Int16R)
  194. fn(map[uint16]int32(nil), (encFnInfo).fastpathEncMapUint16Int32R, (decFnInfo).fastpathDecMapUint16Int32R)
  195. fn(map[uint16]int64(nil), (encFnInfo).fastpathEncMapUint16Int64R, (decFnInfo).fastpathDecMapUint16Int64R)
  196. fn(map[uint16]float32(nil), (encFnInfo).fastpathEncMapUint16Float32R, (decFnInfo).fastpathDecMapUint16Float32R)
  197. fn(map[uint16]float64(nil), (encFnInfo).fastpathEncMapUint16Float64R, (decFnInfo).fastpathDecMapUint16Float64R)
  198. fn(map[uint16]bool(nil), (encFnInfo).fastpathEncMapUint16BoolR, (decFnInfo).fastpathDecMapUint16BoolR)
  199. fn(map[uint32]interface{}(nil), (encFnInfo).fastpathEncMapUint32IntfR, (decFnInfo).fastpathDecMapUint32IntfR)
  200. fn(map[uint32]string(nil), (encFnInfo).fastpathEncMapUint32StringR, (decFnInfo).fastpathDecMapUint32StringR)
  201. fn(map[uint32]uint(nil), (encFnInfo).fastpathEncMapUint32UintR, (decFnInfo).fastpathDecMapUint32UintR)
  202. fn(map[uint32]uint8(nil), (encFnInfo).fastpathEncMapUint32Uint8R, (decFnInfo).fastpathDecMapUint32Uint8R)
  203. fn(map[uint32]uint16(nil), (encFnInfo).fastpathEncMapUint32Uint16R, (decFnInfo).fastpathDecMapUint32Uint16R)
  204. fn(map[uint32]uint32(nil), (encFnInfo).fastpathEncMapUint32Uint32R, (decFnInfo).fastpathDecMapUint32Uint32R)
  205. fn(map[uint32]uint64(nil), (encFnInfo).fastpathEncMapUint32Uint64R, (decFnInfo).fastpathDecMapUint32Uint64R)
  206. fn(map[uint32]int(nil), (encFnInfo).fastpathEncMapUint32IntR, (decFnInfo).fastpathDecMapUint32IntR)
  207. fn(map[uint32]int8(nil), (encFnInfo).fastpathEncMapUint32Int8R, (decFnInfo).fastpathDecMapUint32Int8R)
  208. fn(map[uint32]int16(nil), (encFnInfo).fastpathEncMapUint32Int16R, (decFnInfo).fastpathDecMapUint32Int16R)
  209. fn(map[uint32]int32(nil), (encFnInfo).fastpathEncMapUint32Int32R, (decFnInfo).fastpathDecMapUint32Int32R)
  210. fn(map[uint32]int64(nil), (encFnInfo).fastpathEncMapUint32Int64R, (decFnInfo).fastpathDecMapUint32Int64R)
  211. fn(map[uint32]float32(nil), (encFnInfo).fastpathEncMapUint32Float32R, (decFnInfo).fastpathDecMapUint32Float32R)
  212. fn(map[uint32]float64(nil), (encFnInfo).fastpathEncMapUint32Float64R, (decFnInfo).fastpathDecMapUint32Float64R)
  213. fn(map[uint32]bool(nil), (encFnInfo).fastpathEncMapUint32BoolR, (decFnInfo).fastpathDecMapUint32BoolR)
  214. fn(map[uint64]interface{}(nil), (encFnInfo).fastpathEncMapUint64IntfR, (decFnInfo).fastpathDecMapUint64IntfR)
  215. fn(map[uint64]string(nil), (encFnInfo).fastpathEncMapUint64StringR, (decFnInfo).fastpathDecMapUint64StringR)
  216. fn(map[uint64]uint(nil), (encFnInfo).fastpathEncMapUint64UintR, (decFnInfo).fastpathDecMapUint64UintR)
  217. fn(map[uint64]uint8(nil), (encFnInfo).fastpathEncMapUint64Uint8R, (decFnInfo).fastpathDecMapUint64Uint8R)
  218. fn(map[uint64]uint16(nil), (encFnInfo).fastpathEncMapUint64Uint16R, (decFnInfo).fastpathDecMapUint64Uint16R)
  219. fn(map[uint64]uint32(nil), (encFnInfo).fastpathEncMapUint64Uint32R, (decFnInfo).fastpathDecMapUint64Uint32R)
  220. fn(map[uint64]uint64(nil), (encFnInfo).fastpathEncMapUint64Uint64R, (decFnInfo).fastpathDecMapUint64Uint64R)
  221. fn(map[uint64]int(nil), (encFnInfo).fastpathEncMapUint64IntR, (decFnInfo).fastpathDecMapUint64IntR)
  222. fn(map[uint64]int8(nil), (encFnInfo).fastpathEncMapUint64Int8R, (decFnInfo).fastpathDecMapUint64Int8R)
  223. fn(map[uint64]int16(nil), (encFnInfo).fastpathEncMapUint64Int16R, (decFnInfo).fastpathDecMapUint64Int16R)
  224. fn(map[uint64]int32(nil), (encFnInfo).fastpathEncMapUint64Int32R, (decFnInfo).fastpathDecMapUint64Int32R)
  225. fn(map[uint64]int64(nil), (encFnInfo).fastpathEncMapUint64Int64R, (decFnInfo).fastpathDecMapUint64Int64R)
  226. fn(map[uint64]float32(nil), (encFnInfo).fastpathEncMapUint64Float32R, (decFnInfo).fastpathDecMapUint64Float32R)
  227. fn(map[uint64]float64(nil), (encFnInfo).fastpathEncMapUint64Float64R, (decFnInfo).fastpathDecMapUint64Float64R)
  228. fn(map[uint64]bool(nil), (encFnInfo).fastpathEncMapUint64BoolR, (decFnInfo).fastpathDecMapUint64BoolR)
  229. fn(map[int]interface{}(nil), (encFnInfo).fastpathEncMapIntIntfR, (decFnInfo).fastpathDecMapIntIntfR)
  230. fn(map[int]string(nil), (encFnInfo).fastpathEncMapIntStringR, (decFnInfo).fastpathDecMapIntStringR)
  231. fn(map[int]uint(nil), (encFnInfo).fastpathEncMapIntUintR, (decFnInfo).fastpathDecMapIntUintR)
  232. fn(map[int]uint8(nil), (encFnInfo).fastpathEncMapIntUint8R, (decFnInfo).fastpathDecMapIntUint8R)
  233. fn(map[int]uint16(nil), (encFnInfo).fastpathEncMapIntUint16R, (decFnInfo).fastpathDecMapIntUint16R)
  234. fn(map[int]uint32(nil), (encFnInfo).fastpathEncMapIntUint32R, (decFnInfo).fastpathDecMapIntUint32R)
  235. fn(map[int]uint64(nil), (encFnInfo).fastpathEncMapIntUint64R, (decFnInfo).fastpathDecMapIntUint64R)
  236. fn(map[int]int(nil), (encFnInfo).fastpathEncMapIntIntR, (decFnInfo).fastpathDecMapIntIntR)
  237. fn(map[int]int8(nil), (encFnInfo).fastpathEncMapIntInt8R, (decFnInfo).fastpathDecMapIntInt8R)
  238. fn(map[int]int16(nil), (encFnInfo).fastpathEncMapIntInt16R, (decFnInfo).fastpathDecMapIntInt16R)
  239. fn(map[int]int32(nil), (encFnInfo).fastpathEncMapIntInt32R, (decFnInfo).fastpathDecMapIntInt32R)
  240. fn(map[int]int64(nil), (encFnInfo).fastpathEncMapIntInt64R, (decFnInfo).fastpathDecMapIntInt64R)
  241. fn(map[int]float32(nil), (encFnInfo).fastpathEncMapIntFloat32R, (decFnInfo).fastpathDecMapIntFloat32R)
  242. fn(map[int]float64(nil), (encFnInfo).fastpathEncMapIntFloat64R, (decFnInfo).fastpathDecMapIntFloat64R)
  243. fn(map[int]bool(nil), (encFnInfo).fastpathEncMapIntBoolR, (decFnInfo).fastpathDecMapIntBoolR)
  244. fn(map[int8]interface{}(nil), (encFnInfo).fastpathEncMapInt8IntfR, (decFnInfo).fastpathDecMapInt8IntfR)
  245. fn(map[int8]string(nil), (encFnInfo).fastpathEncMapInt8StringR, (decFnInfo).fastpathDecMapInt8StringR)
  246. fn(map[int8]uint(nil), (encFnInfo).fastpathEncMapInt8UintR, (decFnInfo).fastpathDecMapInt8UintR)
  247. fn(map[int8]uint8(nil), (encFnInfo).fastpathEncMapInt8Uint8R, (decFnInfo).fastpathDecMapInt8Uint8R)
  248. fn(map[int8]uint16(nil), (encFnInfo).fastpathEncMapInt8Uint16R, (decFnInfo).fastpathDecMapInt8Uint16R)
  249. fn(map[int8]uint32(nil), (encFnInfo).fastpathEncMapInt8Uint32R, (decFnInfo).fastpathDecMapInt8Uint32R)
  250. fn(map[int8]uint64(nil), (encFnInfo).fastpathEncMapInt8Uint64R, (decFnInfo).fastpathDecMapInt8Uint64R)
  251. fn(map[int8]int(nil), (encFnInfo).fastpathEncMapInt8IntR, (decFnInfo).fastpathDecMapInt8IntR)
  252. fn(map[int8]int8(nil), (encFnInfo).fastpathEncMapInt8Int8R, (decFnInfo).fastpathDecMapInt8Int8R)
  253. fn(map[int8]int16(nil), (encFnInfo).fastpathEncMapInt8Int16R, (decFnInfo).fastpathDecMapInt8Int16R)
  254. fn(map[int8]int32(nil), (encFnInfo).fastpathEncMapInt8Int32R, (decFnInfo).fastpathDecMapInt8Int32R)
  255. fn(map[int8]int64(nil), (encFnInfo).fastpathEncMapInt8Int64R, (decFnInfo).fastpathDecMapInt8Int64R)
  256. fn(map[int8]float32(nil), (encFnInfo).fastpathEncMapInt8Float32R, (decFnInfo).fastpathDecMapInt8Float32R)
  257. fn(map[int8]float64(nil), (encFnInfo).fastpathEncMapInt8Float64R, (decFnInfo).fastpathDecMapInt8Float64R)
  258. fn(map[int8]bool(nil), (encFnInfo).fastpathEncMapInt8BoolR, (decFnInfo).fastpathDecMapInt8BoolR)
  259. fn(map[int16]interface{}(nil), (encFnInfo).fastpathEncMapInt16IntfR, (decFnInfo).fastpathDecMapInt16IntfR)
  260. fn(map[int16]string(nil), (encFnInfo).fastpathEncMapInt16StringR, (decFnInfo).fastpathDecMapInt16StringR)
  261. fn(map[int16]uint(nil), (encFnInfo).fastpathEncMapInt16UintR, (decFnInfo).fastpathDecMapInt16UintR)
  262. fn(map[int16]uint8(nil), (encFnInfo).fastpathEncMapInt16Uint8R, (decFnInfo).fastpathDecMapInt16Uint8R)
  263. fn(map[int16]uint16(nil), (encFnInfo).fastpathEncMapInt16Uint16R, (decFnInfo).fastpathDecMapInt16Uint16R)
  264. fn(map[int16]uint32(nil), (encFnInfo).fastpathEncMapInt16Uint32R, (decFnInfo).fastpathDecMapInt16Uint32R)
  265. fn(map[int16]uint64(nil), (encFnInfo).fastpathEncMapInt16Uint64R, (decFnInfo).fastpathDecMapInt16Uint64R)
  266. fn(map[int16]int(nil), (encFnInfo).fastpathEncMapInt16IntR, (decFnInfo).fastpathDecMapInt16IntR)
  267. fn(map[int16]int8(nil), (encFnInfo).fastpathEncMapInt16Int8R, (decFnInfo).fastpathDecMapInt16Int8R)
  268. fn(map[int16]int16(nil), (encFnInfo).fastpathEncMapInt16Int16R, (decFnInfo).fastpathDecMapInt16Int16R)
  269. fn(map[int16]int32(nil), (encFnInfo).fastpathEncMapInt16Int32R, (decFnInfo).fastpathDecMapInt16Int32R)
  270. fn(map[int16]int64(nil), (encFnInfo).fastpathEncMapInt16Int64R, (decFnInfo).fastpathDecMapInt16Int64R)
  271. fn(map[int16]float32(nil), (encFnInfo).fastpathEncMapInt16Float32R, (decFnInfo).fastpathDecMapInt16Float32R)
  272. fn(map[int16]float64(nil), (encFnInfo).fastpathEncMapInt16Float64R, (decFnInfo).fastpathDecMapInt16Float64R)
  273. fn(map[int16]bool(nil), (encFnInfo).fastpathEncMapInt16BoolR, (decFnInfo).fastpathDecMapInt16BoolR)
  274. fn(map[int32]interface{}(nil), (encFnInfo).fastpathEncMapInt32IntfR, (decFnInfo).fastpathDecMapInt32IntfR)
  275. fn(map[int32]string(nil), (encFnInfo).fastpathEncMapInt32StringR, (decFnInfo).fastpathDecMapInt32StringR)
  276. fn(map[int32]uint(nil), (encFnInfo).fastpathEncMapInt32UintR, (decFnInfo).fastpathDecMapInt32UintR)
  277. fn(map[int32]uint8(nil), (encFnInfo).fastpathEncMapInt32Uint8R, (decFnInfo).fastpathDecMapInt32Uint8R)
  278. fn(map[int32]uint16(nil), (encFnInfo).fastpathEncMapInt32Uint16R, (decFnInfo).fastpathDecMapInt32Uint16R)
  279. fn(map[int32]uint32(nil), (encFnInfo).fastpathEncMapInt32Uint32R, (decFnInfo).fastpathDecMapInt32Uint32R)
  280. fn(map[int32]uint64(nil), (encFnInfo).fastpathEncMapInt32Uint64R, (decFnInfo).fastpathDecMapInt32Uint64R)
  281. fn(map[int32]int(nil), (encFnInfo).fastpathEncMapInt32IntR, (decFnInfo).fastpathDecMapInt32IntR)
  282. fn(map[int32]int8(nil), (encFnInfo).fastpathEncMapInt32Int8R, (decFnInfo).fastpathDecMapInt32Int8R)
  283. fn(map[int32]int16(nil), (encFnInfo).fastpathEncMapInt32Int16R, (decFnInfo).fastpathDecMapInt32Int16R)
  284. fn(map[int32]int32(nil), (encFnInfo).fastpathEncMapInt32Int32R, (decFnInfo).fastpathDecMapInt32Int32R)
  285. fn(map[int32]int64(nil), (encFnInfo).fastpathEncMapInt32Int64R, (decFnInfo).fastpathDecMapInt32Int64R)
  286. fn(map[int32]float32(nil), (encFnInfo).fastpathEncMapInt32Float32R, (decFnInfo).fastpathDecMapInt32Float32R)
  287. fn(map[int32]float64(nil), (encFnInfo).fastpathEncMapInt32Float64R, (decFnInfo).fastpathDecMapInt32Float64R)
  288. fn(map[int32]bool(nil), (encFnInfo).fastpathEncMapInt32BoolR, (decFnInfo).fastpathDecMapInt32BoolR)
  289. fn(map[int64]interface{}(nil), (encFnInfo).fastpathEncMapInt64IntfR, (decFnInfo).fastpathDecMapInt64IntfR)
  290. fn(map[int64]string(nil), (encFnInfo).fastpathEncMapInt64StringR, (decFnInfo).fastpathDecMapInt64StringR)
  291. fn(map[int64]uint(nil), (encFnInfo).fastpathEncMapInt64UintR, (decFnInfo).fastpathDecMapInt64UintR)
  292. fn(map[int64]uint8(nil), (encFnInfo).fastpathEncMapInt64Uint8R, (decFnInfo).fastpathDecMapInt64Uint8R)
  293. fn(map[int64]uint16(nil), (encFnInfo).fastpathEncMapInt64Uint16R, (decFnInfo).fastpathDecMapInt64Uint16R)
  294. fn(map[int64]uint32(nil), (encFnInfo).fastpathEncMapInt64Uint32R, (decFnInfo).fastpathDecMapInt64Uint32R)
  295. fn(map[int64]uint64(nil), (encFnInfo).fastpathEncMapInt64Uint64R, (decFnInfo).fastpathDecMapInt64Uint64R)
  296. fn(map[int64]int(nil), (encFnInfo).fastpathEncMapInt64IntR, (decFnInfo).fastpathDecMapInt64IntR)
  297. fn(map[int64]int8(nil), (encFnInfo).fastpathEncMapInt64Int8R, (decFnInfo).fastpathDecMapInt64Int8R)
  298. fn(map[int64]int16(nil), (encFnInfo).fastpathEncMapInt64Int16R, (decFnInfo).fastpathDecMapInt64Int16R)
  299. fn(map[int64]int32(nil), (encFnInfo).fastpathEncMapInt64Int32R, (decFnInfo).fastpathDecMapInt64Int32R)
  300. fn(map[int64]int64(nil), (encFnInfo).fastpathEncMapInt64Int64R, (decFnInfo).fastpathDecMapInt64Int64R)
  301. fn(map[int64]float32(nil), (encFnInfo).fastpathEncMapInt64Float32R, (decFnInfo).fastpathDecMapInt64Float32R)
  302. fn(map[int64]float64(nil), (encFnInfo).fastpathEncMapInt64Float64R, (decFnInfo).fastpathDecMapInt64Float64R)
  303. fn(map[int64]bool(nil), (encFnInfo).fastpathEncMapInt64BoolR, (decFnInfo).fastpathDecMapInt64BoolR)
  304. fn(map[bool]interface{}(nil), (encFnInfo).fastpathEncMapBoolIntfR, (decFnInfo).fastpathDecMapBoolIntfR)
  305. fn(map[bool]string(nil), (encFnInfo).fastpathEncMapBoolStringR, (decFnInfo).fastpathDecMapBoolStringR)
  306. fn(map[bool]uint(nil), (encFnInfo).fastpathEncMapBoolUintR, (decFnInfo).fastpathDecMapBoolUintR)
  307. fn(map[bool]uint8(nil), (encFnInfo).fastpathEncMapBoolUint8R, (decFnInfo).fastpathDecMapBoolUint8R)
  308. fn(map[bool]uint16(nil), (encFnInfo).fastpathEncMapBoolUint16R, (decFnInfo).fastpathDecMapBoolUint16R)
  309. fn(map[bool]uint32(nil), (encFnInfo).fastpathEncMapBoolUint32R, (decFnInfo).fastpathDecMapBoolUint32R)
  310. fn(map[bool]uint64(nil), (encFnInfo).fastpathEncMapBoolUint64R, (decFnInfo).fastpathDecMapBoolUint64R)
  311. fn(map[bool]int(nil), (encFnInfo).fastpathEncMapBoolIntR, (decFnInfo).fastpathDecMapBoolIntR)
  312. fn(map[bool]int8(nil), (encFnInfo).fastpathEncMapBoolInt8R, (decFnInfo).fastpathDecMapBoolInt8R)
  313. fn(map[bool]int16(nil), (encFnInfo).fastpathEncMapBoolInt16R, (decFnInfo).fastpathDecMapBoolInt16R)
  314. fn(map[bool]int32(nil), (encFnInfo).fastpathEncMapBoolInt32R, (decFnInfo).fastpathDecMapBoolInt32R)
  315. fn(map[bool]int64(nil), (encFnInfo).fastpathEncMapBoolInt64R, (decFnInfo).fastpathDecMapBoolInt64R)
  316. fn(map[bool]float32(nil), (encFnInfo).fastpathEncMapBoolFloat32R, (decFnInfo).fastpathDecMapBoolFloat32R)
  317. fn(map[bool]float64(nil), (encFnInfo).fastpathEncMapBoolFloat64R, (decFnInfo).fastpathDecMapBoolFloat64R)
  318. fn(map[bool]bool(nil), (encFnInfo).fastpathEncMapBoolBoolR, (decFnInfo).fastpathDecMapBoolBoolR)
  319. sort.Sort(fastpathAslice(fastpathAV[:]))
  320. }
  321. // -- encode
  322. // -- -- fast path type switch
  323. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  324. switch v := iv.(type) {
  325. case []interface{}:
  326. fastpathTV.EncSliceIntfV(v, fastpathCheckNilTrue, e)
  327. case *[]interface{}:
  328. fastpathTV.EncSliceIntfV(*v, fastpathCheckNilTrue, e)
  329. case map[interface{}]interface{}:
  330. fastpathTV.EncMapIntfIntfV(v, fastpathCheckNilTrue, e)
  331. case *map[interface{}]interface{}:
  332. fastpathTV.EncMapIntfIntfV(*v, fastpathCheckNilTrue, e)
  333. case map[interface{}]string:
  334. fastpathTV.EncMapIntfStringV(v, fastpathCheckNilTrue, e)
  335. case *map[interface{}]string:
  336. fastpathTV.EncMapIntfStringV(*v, fastpathCheckNilTrue, e)
  337. case map[interface{}]uint:
  338. fastpathTV.EncMapIntfUintV(v, fastpathCheckNilTrue, e)
  339. case *map[interface{}]uint:
  340. fastpathTV.EncMapIntfUintV(*v, fastpathCheckNilTrue, e)
  341. case map[interface{}]uint8:
  342. fastpathTV.EncMapIntfUint8V(v, fastpathCheckNilTrue, e)
  343. case *map[interface{}]uint8:
  344. fastpathTV.EncMapIntfUint8V(*v, fastpathCheckNilTrue, e)
  345. case map[interface{}]uint16:
  346. fastpathTV.EncMapIntfUint16V(v, fastpathCheckNilTrue, e)
  347. case *map[interface{}]uint16:
  348. fastpathTV.EncMapIntfUint16V(*v, fastpathCheckNilTrue, e)
  349. case map[interface{}]uint32:
  350. fastpathTV.EncMapIntfUint32V(v, fastpathCheckNilTrue, e)
  351. case *map[interface{}]uint32:
  352. fastpathTV.EncMapIntfUint32V(*v, fastpathCheckNilTrue, e)
  353. case map[interface{}]uint64:
  354. fastpathTV.EncMapIntfUint64V(v, fastpathCheckNilTrue, e)
  355. case *map[interface{}]uint64:
  356. fastpathTV.EncMapIntfUint64V(*v, fastpathCheckNilTrue, e)
  357. case map[interface{}]int:
  358. fastpathTV.EncMapIntfIntV(v, fastpathCheckNilTrue, e)
  359. case *map[interface{}]int:
  360. fastpathTV.EncMapIntfIntV(*v, fastpathCheckNilTrue, e)
  361. case map[interface{}]int8:
  362. fastpathTV.EncMapIntfInt8V(v, fastpathCheckNilTrue, e)
  363. case *map[interface{}]int8:
  364. fastpathTV.EncMapIntfInt8V(*v, fastpathCheckNilTrue, e)
  365. case map[interface{}]int16:
  366. fastpathTV.EncMapIntfInt16V(v, fastpathCheckNilTrue, e)
  367. case *map[interface{}]int16:
  368. fastpathTV.EncMapIntfInt16V(*v, fastpathCheckNilTrue, e)
  369. case map[interface{}]int32:
  370. fastpathTV.EncMapIntfInt32V(v, fastpathCheckNilTrue, e)
  371. case *map[interface{}]int32:
  372. fastpathTV.EncMapIntfInt32V(*v, fastpathCheckNilTrue, e)
  373. case map[interface{}]int64:
  374. fastpathTV.EncMapIntfInt64V(v, fastpathCheckNilTrue, e)
  375. case *map[interface{}]int64:
  376. fastpathTV.EncMapIntfInt64V(*v, fastpathCheckNilTrue, e)
  377. case map[interface{}]float32:
  378. fastpathTV.EncMapIntfFloat32V(v, fastpathCheckNilTrue, e)
  379. case *map[interface{}]float32:
  380. fastpathTV.EncMapIntfFloat32V(*v, fastpathCheckNilTrue, e)
  381. case map[interface{}]float64:
  382. fastpathTV.EncMapIntfFloat64V(v, fastpathCheckNilTrue, e)
  383. case *map[interface{}]float64:
  384. fastpathTV.EncMapIntfFloat64V(*v, fastpathCheckNilTrue, e)
  385. case map[interface{}]bool:
  386. fastpathTV.EncMapIntfBoolV(v, fastpathCheckNilTrue, e)
  387. case *map[interface{}]bool:
  388. fastpathTV.EncMapIntfBoolV(*v, fastpathCheckNilTrue, e)
  389. case []string:
  390. fastpathTV.EncSliceStringV(v, fastpathCheckNilTrue, e)
  391. case *[]string:
  392. fastpathTV.EncSliceStringV(*v, fastpathCheckNilTrue, e)
  393. case map[string]interface{}:
  394. fastpathTV.EncMapStringIntfV(v, fastpathCheckNilTrue, e)
  395. case *map[string]interface{}:
  396. fastpathTV.EncMapStringIntfV(*v, fastpathCheckNilTrue, e)
  397. case map[string]string:
  398. fastpathTV.EncMapStringStringV(v, fastpathCheckNilTrue, e)
  399. case *map[string]string:
  400. fastpathTV.EncMapStringStringV(*v, fastpathCheckNilTrue, e)
  401. case map[string]uint:
  402. fastpathTV.EncMapStringUintV(v, fastpathCheckNilTrue, e)
  403. case *map[string]uint:
  404. fastpathTV.EncMapStringUintV(*v, fastpathCheckNilTrue, e)
  405. case map[string]uint8:
  406. fastpathTV.EncMapStringUint8V(v, fastpathCheckNilTrue, e)
  407. case *map[string]uint8:
  408. fastpathTV.EncMapStringUint8V(*v, fastpathCheckNilTrue, e)
  409. case map[string]uint16:
  410. fastpathTV.EncMapStringUint16V(v, fastpathCheckNilTrue, e)
  411. case *map[string]uint16:
  412. fastpathTV.EncMapStringUint16V(*v, fastpathCheckNilTrue, e)
  413. case map[string]uint32:
  414. fastpathTV.EncMapStringUint32V(v, fastpathCheckNilTrue, e)
  415. case *map[string]uint32:
  416. fastpathTV.EncMapStringUint32V(*v, fastpathCheckNilTrue, e)
  417. case map[string]uint64:
  418. fastpathTV.EncMapStringUint64V(v, fastpathCheckNilTrue, e)
  419. case *map[string]uint64:
  420. fastpathTV.EncMapStringUint64V(*v, fastpathCheckNilTrue, e)
  421. case map[string]int:
  422. fastpathTV.EncMapStringIntV(v, fastpathCheckNilTrue, e)
  423. case *map[string]int:
  424. fastpathTV.EncMapStringIntV(*v, fastpathCheckNilTrue, e)
  425. case map[string]int8:
  426. fastpathTV.EncMapStringInt8V(v, fastpathCheckNilTrue, e)
  427. case *map[string]int8:
  428. fastpathTV.EncMapStringInt8V(*v, fastpathCheckNilTrue, e)
  429. case map[string]int16:
  430. fastpathTV.EncMapStringInt16V(v, fastpathCheckNilTrue, e)
  431. case *map[string]int16:
  432. fastpathTV.EncMapStringInt16V(*v, fastpathCheckNilTrue, e)
  433. case map[string]int32:
  434. fastpathTV.EncMapStringInt32V(v, fastpathCheckNilTrue, e)
  435. case *map[string]int32:
  436. fastpathTV.EncMapStringInt32V(*v, fastpathCheckNilTrue, e)
  437. case map[string]int64:
  438. fastpathTV.EncMapStringInt64V(v, fastpathCheckNilTrue, e)
  439. case *map[string]int64:
  440. fastpathTV.EncMapStringInt64V(*v, fastpathCheckNilTrue, e)
  441. case map[string]float32:
  442. fastpathTV.EncMapStringFloat32V(v, fastpathCheckNilTrue, e)
  443. case *map[string]float32:
  444. fastpathTV.EncMapStringFloat32V(*v, fastpathCheckNilTrue, e)
  445. case map[string]float64:
  446. fastpathTV.EncMapStringFloat64V(v, fastpathCheckNilTrue, e)
  447. case *map[string]float64:
  448. fastpathTV.EncMapStringFloat64V(*v, fastpathCheckNilTrue, e)
  449. case map[string]bool:
  450. fastpathTV.EncMapStringBoolV(v, fastpathCheckNilTrue, e)
  451. case *map[string]bool:
  452. fastpathTV.EncMapStringBoolV(*v, fastpathCheckNilTrue, e)
  453. case []float32:
  454. fastpathTV.EncSliceFloat32V(v, fastpathCheckNilTrue, e)
  455. case *[]float32:
  456. fastpathTV.EncSliceFloat32V(*v, fastpathCheckNilTrue, e)
  457. case map[float32]interface{}:
  458. fastpathTV.EncMapFloat32IntfV(v, fastpathCheckNilTrue, e)
  459. case *map[float32]interface{}:
  460. fastpathTV.EncMapFloat32IntfV(*v, fastpathCheckNilTrue, e)
  461. case map[float32]string:
  462. fastpathTV.EncMapFloat32StringV(v, fastpathCheckNilTrue, e)
  463. case *map[float32]string:
  464. fastpathTV.EncMapFloat32StringV(*v, fastpathCheckNilTrue, e)
  465. case map[float32]uint:
  466. fastpathTV.EncMapFloat32UintV(v, fastpathCheckNilTrue, e)
  467. case *map[float32]uint:
  468. fastpathTV.EncMapFloat32UintV(*v, fastpathCheckNilTrue, e)
  469. case map[float32]uint8:
  470. fastpathTV.EncMapFloat32Uint8V(v, fastpathCheckNilTrue, e)
  471. case *map[float32]uint8:
  472. fastpathTV.EncMapFloat32Uint8V(*v, fastpathCheckNilTrue, e)
  473. case map[float32]uint16:
  474. fastpathTV.EncMapFloat32Uint16V(v, fastpathCheckNilTrue, e)
  475. case *map[float32]uint16:
  476. fastpathTV.EncMapFloat32Uint16V(*v, fastpathCheckNilTrue, e)
  477. case map[float32]uint32:
  478. fastpathTV.EncMapFloat32Uint32V(v, fastpathCheckNilTrue, e)
  479. case *map[float32]uint32:
  480. fastpathTV.EncMapFloat32Uint32V(*v, fastpathCheckNilTrue, e)
  481. case map[float32]uint64:
  482. fastpathTV.EncMapFloat32Uint64V(v, fastpathCheckNilTrue, e)
  483. case *map[float32]uint64:
  484. fastpathTV.EncMapFloat32Uint64V(*v, fastpathCheckNilTrue, e)
  485. case map[float32]int:
  486. fastpathTV.EncMapFloat32IntV(v, fastpathCheckNilTrue, e)
  487. case *map[float32]int:
  488. fastpathTV.EncMapFloat32IntV(*v, fastpathCheckNilTrue, e)
  489. case map[float32]int8:
  490. fastpathTV.EncMapFloat32Int8V(v, fastpathCheckNilTrue, e)
  491. case *map[float32]int8:
  492. fastpathTV.EncMapFloat32Int8V(*v, fastpathCheckNilTrue, e)
  493. case map[float32]int16:
  494. fastpathTV.EncMapFloat32Int16V(v, fastpathCheckNilTrue, e)
  495. case *map[float32]int16:
  496. fastpathTV.EncMapFloat32Int16V(*v, fastpathCheckNilTrue, e)
  497. case map[float32]int32:
  498. fastpathTV.EncMapFloat32Int32V(v, fastpathCheckNilTrue, e)
  499. case *map[float32]int32:
  500. fastpathTV.EncMapFloat32Int32V(*v, fastpathCheckNilTrue, e)
  501. case map[float32]int64:
  502. fastpathTV.EncMapFloat32Int64V(v, fastpathCheckNilTrue, e)
  503. case *map[float32]int64:
  504. fastpathTV.EncMapFloat32Int64V(*v, fastpathCheckNilTrue, e)
  505. case map[float32]float32:
  506. fastpathTV.EncMapFloat32Float32V(v, fastpathCheckNilTrue, e)
  507. case *map[float32]float32:
  508. fastpathTV.EncMapFloat32Float32V(*v, fastpathCheckNilTrue, e)
  509. case map[float32]float64:
  510. fastpathTV.EncMapFloat32Float64V(v, fastpathCheckNilTrue, e)
  511. case *map[float32]float64:
  512. fastpathTV.EncMapFloat32Float64V(*v, fastpathCheckNilTrue, e)
  513. case map[float32]bool:
  514. fastpathTV.EncMapFloat32BoolV(v, fastpathCheckNilTrue, e)
  515. case *map[float32]bool:
  516. fastpathTV.EncMapFloat32BoolV(*v, fastpathCheckNilTrue, e)
  517. case []float64:
  518. fastpathTV.EncSliceFloat64V(v, fastpathCheckNilTrue, e)
  519. case *[]float64:
  520. fastpathTV.EncSliceFloat64V(*v, fastpathCheckNilTrue, e)
  521. case map[float64]interface{}:
  522. fastpathTV.EncMapFloat64IntfV(v, fastpathCheckNilTrue, e)
  523. case *map[float64]interface{}:
  524. fastpathTV.EncMapFloat64IntfV(*v, fastpathCheckNilTrue, e)
  525. case map[float64]string:
  526. fastpathTV.EncMapFloat64StringV(v, fastpathCheckNilTrue, e)
  527. case *map[float64]string:
  528. fastpathTV.EncMapFloat64StringV(*v, fastpathCheckNilTrue, e)
  529. case map[float64]uint:
  530. fastpathTV.EncMapFloat64UintV(v, fastpathCheckNilTrue, e)
  531. case *map[float64]uint:
  532. fastpathTV.EncMapFloat64UintV(*v, fastpathCheckNilTrue, e)
  533. case map[float64]uint8:
  534. fastpathTV.EncMapFloat64Uint8V(v, fastpathCheckNilTrue, e)
  535. case *map[float64]uint8:
  536. fastpathTV.EncMapFloat64Uint8V(*v, fastpathCheckNilTrue, e)
  537. case map[float64]uint16:
  538. fastpathTV.EncMapFloat64Uint16V(v, fastpathCheckNilTrue, e)
  539. case *map[float64]uint16:
  540. fastpathTV.EncMapFloat64Uint16V(*v, fastpathCheckNilTrue, e)
  541. case map[float64]uint32:
  542. fastpathTV.EncMapFloat64Uint32V(v, fastpathCheckNilTrue, e)
  543. case *map[float64]uint32:
  544. fastpathTV.EncMapFloat64Uint32V(*v, fastpathCheckNilTrue, e)
  545. case map[float64]uint64:
  546. fastpathTV.EncMapFloat64Uint64V(v, fastpathCheckNilTrue, e)
  547. case *map[float64]uint64:
  548. fastpathTV.EncMapFloat64Uint64V(*v, fastpathCheckNilTrue, e)
  549. case map[float64]int:
  550. fastpathTV.EncMapFloat64IntV(v, fastpathCheckNilTrue, e)
  551. case *map[float64]int:
  552. fastpathTV.EncMapFloat64IntV(*v, fastpathCheckNilTrue, e)
  553. case map[float64]int8:
  554. fastpathTV.EncMapFloat64Int8V(v, fastpathCheckNilTrue, e)
  555. case *map[float64]int8:
  556. fastpathTV.EncMapFloat64Int8V(*v, fastpathCheckNilTrue, e)
  557. case map[float64]int16:
  558. fastpathTV.EncMapFloat64Int16V(v, fastpathCheckNilTrue, e)
  559. case *map[float64]int16:
  560. fastpathTV.EncMapFloat64Int16V(*v, fastpathCheckNilTrue, e)
  561. case map[float64]int32:
  562. fastpathTV.EncMapFloat64Int32V(v, fastpathCheckNilTrue, e)
  563. case *map[float64]int32:
  564. fastpathTV.EncMapFloat64Int32V(*v, fastpathCheckNilTrue, e)
  565. case map[float64]int64:
  566. fastpathTV.EncMapFloat64Int64V(v, fastpathCheckNilTrue, e)
  567. case *map[float64]int64:
  568. fastpathTV.EncMapFloat64Int64V(*v, fastpathCheckNilTrue, e)
  569. case map[float64]float32:
  570. fastpathTV.EncMapFloat64Float32V(v, fastpathCheckNilTrue, e)
  571. case *map[float64]float32:
  572. fastpathTV.EncMapFloat64Float32V(*v, fastpathCheckNilTrue, e)
  573. case map[float64]float64:
  574. fastpathTV.EncMapFloat64Float64V(v, fastpathCheckNilTrue, e)
  575. case *map[float64]float64:
  576. fastpathTV.EncMapFloat64Float64V(*v, fastpathCheckNilTrue, e)
  577. case map[float64]bool:
  578. fastpathTV.EncMapFloat64BoolV(v, fastpathCheckNilTrue, e)
  579. case *map[float64]bool:
  580. fastpathTV.EncMapFloat64BoolV(*v, fastpathCheckNilTrue, e)
  581. case []uint:
  582. fastpathTV.EncSliceUintV(v, fastpathCheckNilTrue, e)
  583. case *[]uint:
  584. fastpathTV.EncSliceUintV(*v, fastpathCheckNilTrue, e)
  585. case map[uint]interface{}:
  586. fastpathTV.EncMapUintIntfV(v, fastpathCheckNilTrue, e)
  587. case *map[uint]interface{}:
  588. fastpathTV.EncMapUintIntfV(*v, fastpathCheckNilTrue, e)
  589. case map[uint]string:
  590. fastpathTV.EncMapUintStringV(v, fastpathCheckNilTrue, e)
  591. case *map[uint]string:
  592. fastpathTV.EncMapUintStringV(*v, fastpathCheckNilTrue, e)
  593. case map[uint]uint:
  594. fastpathTV.EncMapUintUintV(v, fastpathCheckNilTrue, e)
  595. case *map[uint]uint:
  596. fastpathTV.EncMapUintUintV(*v, fastpathCheckNilTrue, e)
  597. case map[uint]uint8:
  598. fastpathTV.EncMapUintUint8V(v, fastpathCheckNilTrue, e)
  599. case *map[uint]uint8:
  600. fastpathTV.EncMapUintUint8V(*v, fastpathCheckNilTrue, e)
  601. case map[uint]uint16:
  602. fastpathTV.EncMapUintUint16V(v, fastpathCheckNilTrue, e)
  603. case *map[uint]uint16:
  604. fastpathTV.EncMapUintUint16V(*v, fastpathCheckNilTrue, e)
  605. case map[uint]uint32:
  606. fastpathTV.EncMapUintUint32V(v, fastpathCheckNilTrue, e)
  607. case *map[uint]uint32:
  608. fastpathTV.EncMapUintUint32V(*v, fastpathCheckNilTrue, e)
  609. case map[uint]uint64:
  610. fastpathTV.EncMapUintUint64V(v, fastpathCheckNilTrue, e)
  611. case *map[uint]uint64:
  612. fastpathTV.EncMapUintUint64V(*v, fastpathCheckNilTrue, e)
  613. case map[uint]int:
  614. fastpathTV.EncMapUintIntV(v, fastpathCheckNilTrue, e)
  615. case *map[uint]int:
  616. fastpathTV.EncMapUintIntV(*v, fastpathCheckNilTrue, e)
  617. case map[uint]int8:
  618. fastpathTV.EncMapUintInt8V(v, fastpathCheckNilTrue, e)
  619. case *map[uint]int8:
  620. fastpathTV.EncMapUintInt8V(*v, fastpathCheckNilTrue, e)
  621. case map[uint]int16:
  622. fastpathTV.EncMapUintInt16V(v, fastpathCheckNilTrue, e)
  623. case *map[uint]int16:
  624. fastpathTV.EncMapUintInt16V(*v, fastpathCheckNilTrue, e)
  625. case map[uint]int32:
  626. fastpathTV.EncMapUintInt32V(v, fastpathCheckNilTrue, e)
  627. case *map[uint]int32:
  628. fastpathTV.EncMapUintInt32V(*v, fastpathCheckNilTrue, e)
  629. case map[uint]int64:
  630. fastpathTV.EncMapUintInt64V(v, fastpathCheckNilTrue, e)
  631. case *map[uint]int64:
  632. fastpathTV.EncMapUintInt64V(*v, fastpathCheckNilTrue, e)
  633. case map[uint]float32:
  634. fastpathTV.EncMapUintFloat32V(v, fastpathCheckNilTrue, e)
  635. case *map[uint]float32:
  636. fastpathTV.EncMapUintFloat32V(*v, fastpathCheckNilTrue, e)
  637. case map[uint]float64:
  638. fastpathTV.EncMapUintFloat64V(v, fastpathCheckNilTrue, e)
  639. case *map[uint]float64:
  640. fastpathTV.EncMapUintFloat64V(*v, fastpathCheckNilTrue, e)
  641. case map[uint]bool:
  642. fastpathTV.EncMapUintBoolV(v, fastpathCheckNilTrue, e)
  643. case *map[uint]bool:
  644. fastpathTV.EncMapUintBoolV(*v, fastpathCheckNilTrue, e)
  645. case map[uint8]interface{}:
  646. fastpathTV.EncMapUint8IntfV(v, fastpathCheckNilTrue, e)
  647. case *map[uint8]interface{}:
  648. fastpathTV.EncMapUint8IntfV(*v, fastpathCheckNilTrue, e)
  649. case map[uint8]string:
  650. fastpathTV.EncMapUint8StringV(v, fastpathCheckNilTrue, e)
  651. case *map[uint8]string:
  652. fastpathTV.EncMapUint8StringV(*v, fastpathCheckNilTrue, e)
  653. case map[uint8]uint:
  654. fastpathTV.EncMapUint8UintV(v, fastpathCheckNilTrue, e)
  655. case *map[uint8]uint:
  656. fastpathTV.EncMapUint8UintV(*v, fastpathCheckNilTrue, e)
  657. case map[uint8]uint8:
  658. fastpathTV.EncMapUint8Uint8V(v, fastpathCheckNilTrue, e)
  659. case *map[uint8]uint8:
  660. fastpathTV.EncMapUint8Uint8V(*v, fastpathCheckNilTrue, e)
  661. case map[uint8]uint16:
  662. fastpathTV.EncMapUint8Uint16V(v, fastpathCheckNilTrue, e)
  663. case *map[uint8]uint16:
  664. fastpathTV.EncMapUint8Uint16V(*v, fastpathCheckNilTrue, e)
  665. case map[uint8]uint32:
  666. fastpathTV.EncMapUint8Uint32V(v, fastpathCheckNilTrue, e)
  667. case *map[uint8]uint32:
  668. fastpathTV.EncMapUint8Uint32V(*v, fastpathCheckNilTrue, e)
  669. case map[uint8]uint64:
  670. fastpathTV.EncMapUint8Uint64V(v, fastpathCheckNilTrue, e)
  671. case *map[uint8]uint64:
  672. fastpathTV.EncMapUint8Uint64V(*v, fastpathCheckNilTrue, e)
  673. case map[uint8]int:
  674. fastpathTV.EncMapUint8IntV(v, fastpathCheckNilTrue, e)
  675. case *map[uint8]int:
  676. fastpathTV.EncMapUint8IntV(*v, fastpathCheckNilTrue, e)
  677. case map[uint8]int8:
  678. fastpathTV.EncMapUint8Int8V(v, fastpathCheckNilTrue, e)
  679. case *map[uint8]int8:
  680. fastpathTV.EncMapUint8Int8V(*v, fastpathCheckNilTrue, e)
  681. case map[uint8]int16:
  682. fastpathTV.EncMapUint8Int16V(v, fastpathCheckNilTrue, e)
  683. case *map[uint8]int16:
  684. fastpathTV.EncMapUint8Int16V(*v, fastpathCheckNilTrue, e)
  685. case map[uint8]int32:
  686. fastpathTV.EncMapUint8Int32V(v, fastpathCheckNilTrue, e)
  687. case *map[uint8]int32:
  688. fastpathTV.EncMapUint8Int32V(*v, fastpathCheckNilTrue, e)
  689. case map[uint8]int64:
  690. fastpathTV.EncMapUint8Int64V(v, fastpathCheckNilTrue, e)
  691. case *map[uint8]int64:
  692. fastpathTV.EncMapUint8Int64V(*v, fastpathCheckNilTrue, e)
  693. case map[uint8]float32:
  694. fastpathTV.EncMapUint8Float32V(v, fastpathCheckNilTrue, e)
  695. case *map[uint8]float32:
  696. fastpathTV.EncMapUint8Float32V(*v, fastpathCheckNilTrue, e)
  697. case map[uint8]float64:
  698. fastpathTV.EncMapUint8Float64V(v, fastpathCheckNilTrue, e)
  699. case *map[uint8]float64:
  700. fastpathTV.EncMapUint8Float64V(*v, fastpathCheckNilTrue, e)
  701. case map[uint8]bool:
  702. fastpathTV.EncMapUint8BoolV(v, fastpathCheckNilTrue, e)
  703. case *map[uint8]bool:
  704. fastpathTV.EncMapUint8BoolV(*v, fastpathCheckNilTrue, e)
  705. case []uint16:
  706. fastpathTV.EncSliceUint16V(v, fastpathCheckNilTrue, e)
  707. case *[]uint16:
  708. fastpathTV.EncSliceUint16V(*v, fastpathCheckNilTrue, e)
  709. case map[uint16]interface{}:
  710. fastpathTV.EncMapUint16IntfV(v, fastpathCheckNilTrue, e)
  711. case *map[uint16]interface{}:
  712. fastpathTV.EncMapUint16IntfV(*v, fastpathCheckNilTrue, e)
  713. case map[uint16]string:
  714. fastpathTV.EncMapUint16StringV(v, fastpathCheckNilTrue, e)
  715. case *map[uint16]string:
  716. fastpathTV.EncMapUint16StringV(*v, fastpathCheckNilTrue, e)
  717. case map[uint16]uint:
  718. fastpathTV.EncMapUint16UintV(v, fastpathCheckNilTrue, e)
  719. case *map[uint16]uint:
  720. fastpathTV.EncMapUint16UintV(*v, fastpathCheckNilTrue, e)
  721. case map[uint16]uint8:
  722. fastpathTV.EncMapUint16Uint8V(v, fastpathCheckNilTrue, e)
  723. case *map[uint16]uint8:
  724. fastpathTV.EncMapUint16Uint8V(*v, fastpathCheckNilTrue, e)
  725. case map[uint16]uint16:
  726. fastpathTV.EncMapUint16Uint16V(v, fastpathCheckNilTrue, e)
  727. case *map[uint16]uint16:
  728. fastpathTV.EncMapUint16Uint16V(*v, fastpathCheckNilTrue, e)
  729. case map[uint16]uint32:
  730. fastpathTV.EncMapUint16Uint32V(v, fastpathCheckNilTrue, e)
  731. case *map[uint16]uint32:
  732. fastpathTV.EncMapUint16Uint32V(*v, fastpathCheckNilTrue, e)
  733. case map[uint16]uint64:
  734. fastpathTV.EncMapUint16Uint64V(v, fastpathCheckNilTrue, e)
  735. case *map[uint16]uint64:
  736. fastpathTV.EncMapUint16Uint64V(*v, fastpathCheckNilTrue, e)
  737. case map[uint16]int:
  738. fastpathTV.EncMapUint16IntV(v, fastpathCheckNilTrue, e)
  739. case *map[uint16]int:
  740. fastpathTV.EncMapUint16IntV(*v, fastpathCheckNilTrue, e)
  741. case map[uint16]int8:
  742. fastpathTV.EncMapUint16Int8V(v, fastpathCheckNilTrue, e)
  743. case *map[uint16]int8:
  744. fastpathTV.EncMapUint16Int8V(*v, fastpathCheckNilTrue, e)
  745. case map[uint16]int16:
  746. fastpathTV.EncMapUint16Int16V(v, fastpathCheckNilTrue, e)
  747. case *map[uint16]int16:
  748. fastpathTV.EncMapUint16Int16V(*v, fastpathCheckNilTrue, e)
  749. case map[uint16]int32:
  750. fastpathTV.EncMapUint16Int32V(v, fastpathCheckNilTrue, e)
  751. case *map[uint16]int32:
  752. fastpathTV.EncMapUint16Int32V(*v, fastpathCheckNilTrue, e)
  753. case map[uint16]int64:
  754. fastpathTV.EncMapUint16Int64V(v, fastpathCheckNilTrue, e)
  755. case *map[uint16]int64:
  756. fastpathTV.EncMapUint16Int64V(*v, fastpathCheckNilTrue, e)
  757. case map[uint16]float32:
  758. fastpathTV.EncMapUint16Float32V(v, fastpathCheckNilTrue, e)
  759. case *map[uint16]float32:
  760. fastpathTV.EncMapUint16Float32V(*v, fastpathCheckNilTrue, e)
  761. case map[uint16]float64:
  762. fastpathTV.EncMapUint16Float64V(v, fastpathCheckNilTrue, e)
  763. case *map[uint16]float64:
  764. fastpathTV.EncMapUint16Float64V(*v, fastpathCheckNilTrue, e)
  765. case map[uint16]bool:
  766. fastpathTV.EncMapUint16BoolV(v, fastpathCheckNilTrue, e)
  767. case *map[uint16]bool:
  768. fastpathTV.EncMapUint16BoolV(*v, fastpathCheckNilTrue, e)
  769. case []uint32:
  770. fastpathTV.EncSliceUint32V(v, fastpathCheckNilTrue, e)
  771. case *[]uint32:
  772. fastpathTV.EncSliceUint32V(*v, fastpathCheckNilTrue, e)
  773. case map[uint32]interface{}:
  774. fastpathTV.EncMapUint32IntfV(v, fastpathCheckNilTrue, e)
  775. case *map[uint32]interface{}:
  776. fastpathTV.EncMapUint32IntfV(*v, fastpathCheckNilTrue, e)
  777. case map[uint32]string:
  778. fastpathTV.EncMapUint32StringV(v, fastpathCheckNilTrue, e)
  779. case *map[uint32]string:
  780. fastpathTV.EncMapUint32StringV(*v, fastpathCheckNilTrue, e)
  781. case map[uint32]uint:
  782. fastpathTV.EncMapUint32UintV(v, fastpathCheckNilTrue, e)
  783. case *map[uint32]uint:
  784. fastpathTV.EncMapUint32UintV(*v, fastpathCheckNilTrue, e)
  785. case map[uint32]uint8:
  786. fastpathTV.EncMapUint32Uint8V(v, fastpathCheckNilTrue, e)
  787. case *map[uint32]uint8:
  788. fastpathTV.EncMapUint32Uint8V(*v, fastpathCheckNilTrue, e)
  789. case map[uint32]uint16:
  790. fastpathTV.EncMapUint32Uint16V(v, fastpathCheckNilTrue, e)
  791. case *map[uint32]uint16:
  792. fastpathTV.EncMapUint32Uint16V(*v, fastpathCheckNilTrue, e)
  793. case map[uint32]uint32:
  794. fastpathTV.EncMapUint32Uint32V(v, fastpathCheckNilTrue, e)
  795. case *map[uint32]uint32:
  796. fastpathTV.EncMapUint32Uint32V(*v, fastpathCheckNilTrue, e)
  797. case map[uint32]uint64:
  798. fastpathTV.EncMapUint32Uint64V(v, fastpathCheckNilTrue, e)
  799. case *map[uint32]uint64:
  800. fastpathTV.EncMapUint32Uint64V(*v, fastpathCheckNilTrue, e)
  801. case map[uint32]int:
  802. fastpathTV.EncMapUint32IntV(v, fastpathCheckNilTrue, e)
  803. case *map[uint32]int:
  804. fastpathTV.EncMapUint32IntV(*v, fastpathCheckNilTrue, e)
  805. case map[uint32]int8:
  806. fastpathTV.EncMapUint32Int8V(v, fastpathCheckNilTrue, e)
  807. case *map[uint32]int8:
  808. fastpathTV.EncMapUint32Int8V(*v, fastpathCheckNilTrue, e)
  809. case map[uint32]int16:
  810. fastpathTV.EncMapUint32Int16V(v, fastpathCheckNilTrue, e)
  811. case *map[uint32]int16:
  812. fastpathTV.EncMapUint32Int16V(*v, fastpathCheckNilTrue, e)
  813. case map[uint32]int32:
  814. fastpathTV.EncMapUint32Int32V(v, fastpathCheckNilTrue, e)
  815. case *map[uint32]int32:
  816. fastpathTV.EncMapUint32Int32V(*v, fastpathCheckNilTrue, e)
  817. case map[uint32]int64:
  818. fastpathTV.EncMapUint32Int64V(v, fastpathCheckNilTrue, e)
  819. case *map[uint32]int64:
  820. fastpathTV.EncMapUint32Int64V(*v, fastpathCheckNilTrue, e)
  821. case map[uint32]float32:
  822. fastpathTV.EncMapUint32Float32V(v, fastpathCheckNilTrue, e)
  823. case *map[uint32]float32:
  824. fastpathTV.EncMapUint32Float32V(*v, fastpathCheckNilTrue, e)
  825. case map[uint32]float64:
  826. fastpathTV.EncMapUint32Float64V(v, fastpathCheckNilTrue, e)
  827. case *map[uint32]float64:
  828. fastpathTV.EncMapUint32Float64V(*v, fastpathCheckNilTrue, e)
  829. case map[uint32]bool:
  830. fastpathTV.EncMapUint32BoolV(v, fastpathCheckNilTrue, e)
  831. case *map[uint32]bool:
  832. fastpathTV.EncMapUint32BoolV(*v, fastpathCheckNilTrue, e)
  833. case []uint64:
  834. fastpathTV.EncSliceUint64V(v, fastpathCheckNilTrue, e)
  835. case *[]uint64:
  836. fastpathTV.EncSliceUint64V(*v, fastpathCheckNilTrue, e)
  837. case map[uint64]interface{}:
  838. fastpathTV.EncMapUint64IntfV(v, fastpathCheckNilTrue, e)
  839. case *map[uint64]interface{}:
  840. fastpathTV.EncMapUint64IntfV(*v, fastpathCheckNilTrue, e)
  841. case map[uint64]string:
  842. fastpathTV.EncMapUint64StringV(v, fastpathCheckNilTrue, e)
  843. case *map[uint64]string:
  844. fastpathTV.EncMapUint64StringV(*v, fastpathCheckNilTrue, e)
  845. case map[uint64]uint:
  846. fastpathTV.EncMapUint64UintV(v, fastpathCheckNilTrue, e)
  847. case *map[uint64]uint:
  848. fastpathTV.EncMapUint64UintV(*v, fastpathCheckNilTrue, e)
  849. case map[uint64]uint8:
  850. fastpathTV.EncMapUint64Uint8V(v, fastpathCheckNilTrue, e)
  851. case *map[uint64]uint8:
  852. fastpathTV.EncMapUint64Uint8V(*v, fastpathCheckNilTrue, e)
  853. case map[uint64]uint16:
  854. fastpathTV.EncMapUint64Uint16V(v, fastpathCheckNilTrue, e)
  855. case *map[uint64]uint16:
  856. fastpathTV.EncMapUint64Uint16V(*v, fastpathCheckNilTrue, e)
  857. case map[uint64]uint32:
  858. fastpathTV.EncMapUint64Uint32V(v, fastpathCheckNilTrue, e)
  859. case *map[uint64]uint32:
  860. fastpathTV.EncMapUint64Uint32V(*v, fastpathCheckNilTrue, e)
  861. case map[uint64]uint64:
  862. fastpathTV.EncMapUint64Uint64V(v, fastpathCheckNilTrue, e)
  863. case *map[uint64]uint64:
  864. fastpathTV.EncMapUint64Uint64V(*v, fastpathCheckNilTrue, e)
  865. case map[uint64]int:
  866. fastpathTV.EncMapUint64IntV(v, fastpathCheckNilTrue, e)
  867. case *map[uint64]int:
  868. fastpathTV.EncMapUint64IntV(*v, fastpathCheckNilTrue, e)
  869. case map[uint64]int8:
  870. fastpathTV.EncMapUint64Int8V(v, fastpathCheckNilTrue, e)
  871. case *map[uint64]int8:
  872. fastpathTV.EncMapUint64Int8V(*v, fastpathCheckNilTrue, e)
  873. case map[uint64]int16:
  874. fastpathTV.EncMapUint64Int16V(v, fastpathCheckNilTrue, e)
  875. case *map[uint64]int16:
  876. fastpathTV.EncMapUint64Int16V(*v, fastpathCheckNilTrue, e)
  877. case map[uint64]int32:
  878. fastpathTV.EncMapUint64Int32V(v, fastpathCheckNilTrue, e)
  879. case *map[uint64]int32:
  880. fastpathTV.EncMapUint64Int32V(*v, fastpathCheckNilTrue, e)
  881. case map[uint64]int64:
  882. fastpathTV.EncMapUint64Int64V(v, fastpathCheckNilTrue, e)
  883. case *map[uint64]int64:
  884. fastpathTV.EncMapUint64Int64V(*v, fastpathCheckNilTrue, e)
  885. case map[uint64]float32:
  886. fastpathTV.EncMapUint64Float32V(v, fastpathCheckNilTrue, e)
  887. case *map[uint64]float32:
  888. fastpathTV.EncMapUint64Float32V(*v, fastpathCheckNilTrue, e)
  889. case map[uint64]float64:
  890. fastpathTV.EncMapUint64Float64V(v, fastpathCheckNilTrue, e)
  891. case *map[uint64]float64:
  892. fastpathTV.EncMapUint64Float64V(*v, fastpathCheckNilTrue, e)
  893. case map[uint64]bool:
  894. fastpathTV.EncMapUint64BoolV(v, fastpathCheckNilTrue, e)
  895. case *map[uint64]bool:
  896. fastpathTV.EncMapUint64BoolV(*v, fastpathCheckNilTrue, e)
  897. case []int:
  898. fastpathTV.EncSliceIntV(v, fastpathCheckNilTrue, e)
  899. case *[]int:
  900. fastpathTV.EncSliceIntV(*v, fastpathCheckNilTrue, e)
  901. case map[int]interface{}:
  902. fastpathTV.EncMapIntIntfV(v, fastpathCheckNilTrue, e)
  903. case *map[int]interface{}:
  904. fastpathTV.EncMapIntIntfV(*v, fastpathCheckNilTrue, e)
  905. case map[int]string:
  906. fastpathTV.EncMapIntStringV(v, fastpathCheckNilTrue, e)
  907. case *map[int]string:
  908. fastpathTV.EncMapIntStringV(*v, fastpathCheckNilTrue, e)
  909. case map[int]uint:
  910. fastpathTV.EncMapIntUintV(v, fastpathCheckNilTrue, e)
  911. case *map[int]uint:
  912. fastpathTV.EncMapIntUintV(*v, fastpathCheckNilTrue, e)
  913. case map[int]uint8:
  914. fastpathTV.EncMapIntUint8V(v, fastpathCheckNilTrue, e)
  915. case *map[int]uint8:
  916. fastpathTV.EncMapIntUint8V(*v, fastpathCheckNilTrue, e)
  917. case map[int]uint16:
  918. fastpathTV.EncMapIntUint16V(v, fastpathCheckNilTrue, e)
  919. case *map[int]uint16:
  920. fastpathTV.EncMapIntUint16V(*v, fastpathCheckNilTrue, e)
  921. case map[int]uint32:
  922. fastpathTV.EncMapIntUint32V(v, fastpathCheckNilTrue, e)
  923. case *map[int]uint32:
  924. fastpathTV.EncMapIntUint32V(*v, fastpathCheckNilTrue, e)
  925. case map[int]uint64:
  926. fastpathTV.EncMapIntUint64V(v, fastpathCheckNilTrue, e)
  927. case *map[int]uint64:
  928. fastpathTV.EncMapIntUint64V(*v, fastpathCheckNilTrue, e)
  929. case map[int]int:
  930. fastpathTV.EncMapIntIntV(v, fastpathCheckNilTrue, e)
  931. case *map[int]int:
  932. fastpathTV.EncMapIntIntV(*v, fastpathCheckNilTrue, e)
  933. case map[int]int8:
  934. fastpathTV.EncMapIntInt8V(v, fastpathCheckNilTrue, e)
  935. case *map[int]int8:
  936. fastpathTV.EncMapIntInt8V(*v, fastpathCheckNilTrue, e)
  937. case map[int]int16:
  938. fastpathTV.EncMapIntInt16V(v, fastpathCheckNilTrue, e)
  939. case *map[int]int16:
  940. fastpathTV.EncMapIntInt16V(*v, fastpathCheckNilTrue, e)
  941. case map[int]int32:
  942. fastpathTV.EncMapIntInt32V(v, fastpathCheckNilTrue, e)
  943. case *map[int]int32:
  944. fastpathTV.EncMapIntInt32V(*v, fastpathCheckNilTrue, e)
  945. case map[int]int64:
  946. fastpathTV.EncMapIntInt64V(v, fastpathCheckNilTrue, e)
  947. case *map[int]int64:
  948. fastpathTV.EncMapIntInt64V(*v, fastpathCheckNilTrue, e)
  949. case map[int]float32:
  950. fastpathTV.EncMapIntFloat32V(v, fastpathCheckNilTrue, e)
  951. case *map[int]float32:
  952. fastpathTV.EncMapIntFloat32V(*v, fastpathCheckNilTrue, e)
  953. case map[int]float64:
  954. fastpathTV.EncMapIntFloat64V(v, fastpathCheckNilTrue, e)
  955. case *map[int]float64:
  956. fastpathTV.EncMapIntFloat64V(*v, fastpathCheckNilTrue, e)
  957. case map[int]bool:
  958. fastpathTV.EncMapIntBoolV(v, fastpathCheckNilTrue, e)
  959. case *map[int]bool:
  960. fastpathTV.EncMapIntBoolV(*v, fastpathCheckNilTrue, e)
  961. case []int8:
  962. fastpathTV.EncSliceInt8V(v, fastpathCheckNilTrue, e)
  963. case *[]int8:
  964. fastpathTV.EncSliceInt8V(*v, fastpathCheckNilTrue, e)
  965. case map[int8]interface{}:
  966. fastpathTV.EncMapInt8IntfV(v, fastpathCheckNilTrue, e)
  967. case *map[int8]interface{}:
  968. fastpathTV.EncMapInt8IntfV(*v, fastpathCheckNilTrue, e)
  969. case map[int8]string:
  970. fastpathTV.EncMapInt8StringV(v, fastpathCheckNilTrue, e)
  971. case *map[int8]string:
  972. fastpathTV.EncMapInt8StringV(*v, fastpathCheckNilTrue, e)
  973. case map[int8]uint:
  974. fastpathTV.EncMapInt8UintV(v, fastpathCheckNilTrue, e)
  975. case *map[int8]uint:
  976. fastpathTV.EncMapInt8UintV(*v, fastpathCheckNilTrue, e)
  977. case map[int8]uint8:
  978. fastpathTV.EncMapInt8Uint8V(v, fastpathCheckNilTrue, e)
  979. case *map[int8]uint8:
  980. fastpathTV.EncMapInt8Uint8V(*v, fastpathCheckNilTrue, e)
  981. case map[int8]uint16:
  982. fastpathTV.EncMapInt8Uint16V(v, fastpathCheckNilTrue, e)
  983. case *map[int8]uint16:
  984. fastpathTV.EncMapInt8Uint16V(*v, fastpathCheckNilTrue, e)
  985. case map[int8]uint32:
  986. fastpathTV.EncMapInt8Uint32V(v, fastpathCheckNilTrue, e)
  987. case *map[int8]uint32:
  988. fastpathTV.EncMapInt8Uint32V(*v, fastpathCheckNilTrue, e)
  989. case map[int8]uint64:
  990. fastpathTV.EncMapInt8Uint64V(v, fastpathCheckNilTrue, e)
  991. case *map[int8]uint64:
  992. fastpathTV.EncMapInt8Uint64V(*v, fastpathCheckNilTrue, e)
  993. case map[int8]int:
  994. fastpathTV.EncMapInt8IntV(v, fastpathCheckNilTrue, e)
  995. case *map[int8]int:
  996. fastpathTV.EncMapInt8IntV(*v, fastpathCheckNilTrue, e)
  997. case map[int8]int8:
  998. fastpathTV.EncMapInt8Int8V(v, fastpathCheckNilTrue, e)
  999. case *map[int8]int8:
  1000. fastpathTV.EncMapInt8Int8V(*v, fastpathCheckNilTrue, e)
  1001. case map[int8]int16:
  1002. fastpathTV.EncMapInt8Int16V(v, fastpathCheckNilTrue, e)
  1003. case *map[int8]int16:
  1004. fastpathTV.EncMapInt8Int16V(*v, fastpathCheckNilTrue, e)
  1005. case map[int8]int32:
  1006. fastpathTV.EncMapInt8Int32V(v, fastpathCheckNilTrue, e)
  1007. case *map[int8]int32:
  1008. fastpathTV.EncMapInt8Int32V(*v, fastpathCheckNilTrue, e)
  1009. case map[int8]int64:
  1010. fastpathTV.EncMapInt8Int64V(v, fastpathCheckNilTrue, e)
  1011. case *map[int8]int64:
  1012. fastpathTV.EncMapInt8Int64V(*v, fastpathCheckNilTrue, e)
  1013. case map[int8]float32:
  1014. fastpathTV.EncMapInt8Float32V(v, fastpathCheckNilTrue, e)
  1015. case *map[int8]float32:
  1016. fastpathTV.EncMapInt8Float32V(*v, fastpathCheckNilTrue, e)
  1017. case map[int8]float64:
  1018. fastpathTV.EncMapInt8Float64V(v, fastpathCheckNilTrue, e)
  1019. case *map[int8]float64:
  1020. fastpathTV.EncMapInt8Float64V(*v, fastpathCheckNilTrue, e)
  1021. case map[int8]bool:
  1022. fastpathTV.EncMapInt8BoolV(v, fastpathCheckNilTrue, e)
  1023. case *map[int8]bool:
  1024. fastpathTV.EncMapInt8BoolV(*v, fastpathCheckNilTrue, e)
  1025. case []int16:
  1026. fastpathTV.EncSliceInt16V(v, fastpathCheckNilTrue, e)
  1027. case *[]int16:
  1028. fastpathTV.EncSliceInt16V(*v, fastpathCheckNilTrue, e)
  1029. case map[int16]interface{}:
  1030. fastpathTV.EncMapInt16IntfV(v, fastpathCheckNilTrue, e)
  1031. case *map[int16]interface{}:
  1032. fastpathTV.EncMapInt16IntfV(*v, fastpathCheckNilTrue, e)
  1033. case map[int16]string:
  1034. fastpathTV.EncMapInt16StringV(v, fastpathCheckNilTrue, e)
  1035. case *map[int16]string:
  1036. fastpathTV.EncMapInt16StringV(*v, fastpathCheckNilTrue, e)
  1037. case map[int16]uint:
  1038. fastpathTV.EncMapInt16UintV(v, fastpathCheckNilTrue, e)
  1039. case *map[int16]uint:
  1040. fastpathTV.EncMapInt16UintV(*v, fastpathCheckNilTrue, e)
  1041. case map[int16]uint8:
  1042. fastpathTV.EncMapInt16Uint8V(v, fastpathCheckNilTrue, e)
  1043. case *map[int16]uint8:
  1044. fastpathTV.EncMapInt16Uint8V(*v, fastpathCheckNilTrue, e)
  1045. case map[int16]uint16:
  1046. fastpathTV.EncMapInt16Uint16V(v, fastpathCheckNilTrue, e)
  1047. case *map[int16]uint16:
  1048. fastpathTV.EncMapInt16Uint16V(*v, fastpathCheckNilTrue, e)
  1049. case map[int16]uint32:
  1050. fastpathTV.EncMapInt16Uint32V(v, fastpathCheckNilTrue, e)
  1051. case *map[int16]uint32:
  1052. fastpathTV.EncMapInt16Uint32V(*v, fastpathCheckNilTrue, e)
  1053. case map[int16]uint64:
  1054. fastpathTV.EncMapInt16Uint64V(v, fastpathCheckNilTrue, e)
  1055. case *map[int16]uint64:
  1056. fastpathTV.EncMapInt16Uint64V(*v, fastpathCheckNilTrue, e)
  1057. case map[int16]int:
  1058. fastpathTV.EncMapInt16IntV(v, fastpathCheckNilTrue, e)
  1059. case *map[int16]int:
  1060. fastpathTV.EncMapInt16IntV(*v, fastpathCheckNilTrue, e)
  1061. case map[int16]int8:
  1062. fastpathTV.EncMapInt16Int8V(v, fastpathCheckNilTrue, e)
  1063. case *map[int16]int8:
  1064. fastpathTV.EncMapInt16Int8V(*v, fastpathCheckNilTrue, e)
  1065. case map[int16]int16:
  1066. fastpathTV.EncMapInt16Int16V(v, fastpathCheckNilTrue, e)
  1067. case *map[int16]int16:
  1068. fastpathTV.EncMapInt16Int16V(*v, fastpathCheckNilTrue, e)
  1069. case map[int16]int32:
  1070. fastpathTV.EncMapInt16Int32V(v, fastpathCheckNilTrue, e)
  1071. case *map[int16]int32:
  1072. fastpathTV.EncMapInt16Int32V(*v, fastpathCheckNilTrue, e)
  1073. case map[int16]int64:
  1074. fastpathTV.EncMapInt16Int64V(v, fastpathCheckNilTrue, e)
  1075. case *map[int16]int64:
  1076. fastpathTV.EncMapInt16Int64V(*v, fastpathCheckNilTrue, e)
  1077. case map[int16]float32:
  1078. fastpathTV.EncMapInt16Float32V(v, fastpathCheckNilTrue, e)
  1079. case *map[int16]float32:
  1080. fastpathTV.EncMapInt16Float32V(*v, fastpathCheckNilTrue, e)
  1081. case map[int16]float64:
  1082. fastpathTV.EncMapInt16Float64V(v, fastpathCheckNilTrue, e)
  1083. case *map[int16]float64:
  1084. fastpathTV.EncMapInt16Float64V(*v, fastpathCheckNilTrue, e)
  1085. case map[int16]bool:
  1086. fastpathTV.EncMapInt16BoolV(v, fastpathCheckNilTrue, e)
  1087. case *map[int16]bool:
  1088. fastpathTV.EncMapInt16BoolV(*v, fastpathCheckNilTrue, e)
  1089. case []int32:
  1090. fastpathTV.EncSliceInt32V(v, fastpathCheckNilTrue, e)
  1091. case *[]int32:
  1092. fastpathTV.EncSliceInt32V(*v, fastpathCheckNilTrue, e)
  1093. case map[int32]interface{}:
  1094. fastpathTV.EncMapInt32IntfV(v, fastpathCheckNilTrue, e)
  1095. case *map[int32]interface{}:
  1096. fastpathTV.EncMapInt32IntfV(*v, fastpathCheckNilTrue, e)
  1097. case map[int32]string:
  1098. fastpathTV.EncMapInt32StringV(v, fastpathCheckNilTrue, e)
  1099. case *map[int32]string:
  1100. fastpathTV.EncMapInt32StringV(*v, fastpathCheckNilTrue, e)
  1101. case map[int32]uint:
  1102. fastpathTV.EncMapInt32UintV(v, fastpathCheckNilTrue, e)
  1103. case *map[int32]uint:
  1104. fastpathTV.EncMapInt32UintV(*v, fastpathCheckNilTrue, e)
  1105. case map[int32]uint8:
  1106. fastpathTV.EncMapInt32Uint8V(v, fastpathCheckNilTrue, e)
  1107. case *map[int32]uint8:
  1108. fastpathTV.EncMapInt32Uint8V(*v, fastpathCheckNilTrue, e)
  1109. case map[int32]uint16:
  1110. fastpathTV.EncMapInt32Uint16V(v, fastpathCheckNilTrue, e)
  1111. case *map[int32]uint16:
  1112. fastpathTV.EncMapInt32Uint16V(*v, fastpathCheckNilTrue, e)
  1113. case map[int32]uint32:
  1114. fastpathTV.EncMapInt32Uint32V(v, fastpathCheckNilTrue, e)
  1115. case *map[int32]uint32:
  1116. fastpathTV.EncMapInt32Uint32V(*v, fastpathCheckNilTrue, e)
  1117. case map[int32]uint64:
  1118. fastpathTV.EncMapInt32Uint64V(v, fastpathCheckNilTrue, e)
  1119. case *map[int32]uint64:
  1120. fastpathTV.EncMapInt32Uint64V(*v, fastpathCheckNilTrue, e)
  1121. case map[int32]int:
  1122. fastpathTV.EncMapInt32IntV(v, fastpathCheckNilTrue, e)
  1123. case *map[int32]int:
  1124. fastpathTV.EncMapInt32IntV(*v, fastpathCheckNilTrue, e)
  1125. case map[int32]int8:
  1126. fastpathTV.EncMapInt32Int8V(v, fastpathCheckNilTrue, e)
  1127. case *map[int32]int8:
  1128. fastpathTV.EncMapInt32Int8V(*v, fastpathCheckNilTrue, e)
  1129. case map[int32]int16:
  1130. fastpathTV.EncMapInt32Int16V(v, fastpathCheckNilTrue, e)
  1131. case *map[int32]int16:
  1132. fastpathTV.EncMapInt32Int16V(*v, fastpathCheckNilTrue, e)
  1133. case map[int32]int32:
  1134. fastpathTV.EncMapInt32Int32V(v, fastpathCheckNilTrue, e)
  1135. case *map[int32]int32:
  1136. fastpathTV.EncMapInt32Int32V(*v, fastpathCheckNilTrue, e)
  1137. case map[int32]int64:
  1138. fastpathTV.EncMapInt32Int64V(v, fastpathCheckNilTrue, e)
  1139. case *map[int32]int64:
  1140. fastpathTV.EncMapInt32Int64V(*v, fastpathCheckNilTrue, e)
  1141. case map[int32]float32:
  1142. fastpathTV.EncMapInt32Float32V(v, fastpathCheckNilTrue, e)
  1143. case *map[int32]float32:
  1144. fastpathTV.EncMapInt32Float32V(*v, fastpathCheckNilTrue, e)
  1145. case map[int32]float64:
  1146. fastpathTV.EncMapInt32Float64V(v, fastpathCheckNilTrue, e)
  1147. case *map[int32]float64:
  1148. fastpathTV.EncMapInt32Float64V(*v, fastpathCheckNilTrue, e)
  1149. case map[int32]bool:
  1150. fastpathTV.EncMapInt32BoolV(v, fastpathCheckNilTrue, e)
  1151. case *map[int32]bool:
  1152. fastpathTV.EncMapInt32BoolV(*v, fastpathCheckNilTrue, e)
  1153. case []int64:
  1154. fastpathTV.EncSliceInt64V(v, fastpathCheckNilTrue, e)
  1155. case *[]int64:
  1156. fastpathTV.EncSliceInt64V(*v, fastpathCheckNilTrue, e)
  1157. case map[int64]interface{}:
  1158. fastpathTV.EncMapInt64IntfV(v, fastpathCheckNilTrue, e)
  1159. case *map[int64]interface{}:
  1160. fastpathTV.EncMapInt64IntfV(*v, fastpathCheckNilTrue, e)
  1161. case map[int64]string:
  1162. fastpathTV.EncMapInt64StringV(v, fastpathCheckNilTrue, e)
  1163. case *map[int64]string:
  1164. fastpathTV.EncMapInt64StringV(*v, fastpathCheckNilTrue, e)
  1165. case map[int64]uint:
  1166. fastpathTV.EncMapInt64UintV(v, fastpathCheckNilTrue, e)
  1167. case *map[int64]uint:
  1168. fastpathTV.EncMapInt64UintV(*v, fastpathCheckNilTrue, e)
  1169. case map[int64]uint8:
  1170. fastpathTV.EncMapInt64Uint8V(v, fastpathCheckNilTrue, e)
  1171. case *map[int64]uint8:
  1172. fastpathTV.EncMapInt64Uint8V(*v, fastpathCheckNilTrue, e)
  1173. case map[int64]uint16:
  1174. fastpathTV.EncMapInt64Uint16V(v, fastpathCheckNilTrue, e)
  1175. case *map[int64]uint16:
  1176. fastpathTV.EncMapInt64Uint16V(*v, fastpathCheckNilTrue, e)
  1177. case map[int64]uint32:
  1178. fastpathTV.EncMapInt64Uint32V(v, fastpathCheckNilTrue, e)
  1179. case *map[int64]uint32:
  1180. fastpathTV.EncMapInt64Uint32V(*v, fastpathCheckNilTrue, e)
  1181. case map[int64]uint64:
  1182. fastpathTV.EncMapInt64Uint64V(v, fastpathCheckNilTrue, e)
  1183. case *map[int64]uint64:
  1184. fastpathTV.EncMapInt64Uint64V(*v, fastpathCheckNilTrue, e)
  1185. case map[int64]int:
  1186. fastpathTV.EncMapInt64IntV(v, fastpathCheckNilTrue, e)
  1187. case *map[int64]int:
  1188. fastpathTV.EncMapInt64IntV(*v, fastpathCheckNilTrue, e)
  1189. case map[int64]int8:
  1190. fastpathTV.EncMapInt64Int8V(v, fastpathCheckNilTrue, e)
  1191. case *map[int64]int8:
  1192. fastpathTV.EncMapInt64Int8V(*v, fastpathCheckNilTrue, e)
  1193. case map[int64]int16:
  1194. fastpathTV.EncMapInt64Int16V(v, fastpathCheckNilTrue, e)
  1195. case *map[int64]int16:
  1196. fastpathTV.EncMapInt64Int16V(*v, fastpathCheckNilTrue, e)
  1197. case map[int64]int32:
  1198. fastpathTV.EncMapInt64Int32V(v, fastpathCheckNilTrue, e)
  1199. case *map[int64]int32:
  1200. fastpathTV.EncMapInt64Int32V(*v, fastpathCheckNilTrue, e)
  1201. case map[int64]int64:
  1202. fastpathTV.EncMapInt64Int64V(v, fastpathCheckNilTrue, e)
  1203. case *map[int64]int64:
  1204. fastpathTV.EncMapInt64Int64V(*v, fastpathCheckNilTrue, e)
  1205. case map[int64]float32:
  1206. fastpathTV.EncMapInt64Float32V(v, fastpathCheckNilTrue, e)
  1207. case *map[int64]float32:
  1208. fastpathTV.EncMapInt64Float32V(*v, fastpathCheckNilTrue, e)
  1209. case map[int64]float64:
  1210. fastpathTV.EncMapInt64Float64V(v, fastpathCheckNilTrue, e)
  1211. case *map[int64]float64:
  1212. fastpathTV.EncMapInt64Float64V(*v, fastpathCheckNilTrue, e)
  1213. case map[int64]bool:
  1214. fastpathTV.EncMapInt64BoolV(v, fastpathCheckNilTrue, e)
  1215. case *map[int64]bool:
  1216. fastpathTV.EncMapInt64BoolV(*v, fastpathCheckNilTrue, e)
  1217. case []bool:
  1218. fastpathTV.EncSliceBoolV(v, fastpathCheckNilTrue, e)
  1219. case *[]bool:
  1220. fastpathTV.EncSliceBoolV(*v, fastpathCheckNilTrue, e)
  1221. case map[bool]interface{}:
  1222. fastpathTV.EncMapBoolIntfV(v, fastpathCheckNilTrue, e)
  1223. case *map[bool]interface{}:
  1224. fastpathTV.EncMapBoolIntfV(*v, fastpathCheckNilTrue, e)
  1225. case map[bool]string:
  1226. fastpathTV.EncMapBoolStringV(v, fastpathCheckNilTrue, e)
  1227. case *map[bool]string:
  1228. fastpathTV.EncMapBoolStringV(*v, fastpathCheckNilTrue, e)
  1229. case map[bool]uint:
  1230. fastpathTV.EncMapBoolUintV(v, fastpathCheckNilTrue, e)
  1231. case *map[bool]uint:
  1232. fastpathTV.EncMapBoolUintV(*v, fastpathCheckNilTrue, e)
  1233. case map[bool]uint8:
  1234. fastpathTV.EncMapBoolUint8V(v, fastpathCheckNilTrue, e)
  1235. case *map[bool]uint8:
  1236. fastpathTV.EncMapBoolUint8V(*v, fastpathCheckNilTrue, e)
  1237. case map[bool]uint16:
  1238. fastpathTV.EncMapBoolUint16V(v, fastpathCheckNilTrue, e)
  1239. case *map[bool]uint16:
  1240. fastpathTV.EncMapBoolUint16V(*v, fastpathCheckNilTrue, e)
  1241. case map[bool]uint32:
  1242. fastpathTV.EncMapBoolUint32V(v, fastpathCheckNilTrue, e)
  1243. case *map[bool]uint32:
  1244. fastpathTV.EncMapBoolUint32V(*v, fastpathCheckNilTrue, e)
  1245. case map[bool]uint64:
  1246. fastpathTV.EncMapBoolUint64V(v, fastpathCheckNilTrue, e)
  1247. case *map[bool]uint64:
  1248. fastpathTV.EncMapBoolUint64V(*v, fastpathCheckNilTrue, e)
  1249. case map[bool]int:
  1250. fastpathTV.EncMapBoolIntV(v, fastpathCheckNilTrue, e)
  1251. case *map[bool]int:
  1252. fastpathTV.EncMapBoolIntV(*v, fastpathCheckNilTrue, e)
  1253. case map[bool]int8:
  1254. fastpathTV.EncMapBoolInt8V(v, fastpathCheckNilTrue, e)
  1255. case *map[bool]int8:
  1256. fastpathTV.EncMapBoolInt8V(*v, fastpathCheckNilTrue, e)
  1257. case map[bool]int16:
  1258. fastpathTV.EncMapBoolInt16V(v, fastpathCheckNilTrue, e)
  1259. case *map[bool]int16:
  1260. fastpathTV.EncMapBoolInt16V(*v, fastpathCheckNilTrue, e)
  1261. case map[bool]int32:
  1262. fastpathTV.EncMapBoolInt32V(v, fastpathCheckNilTrue, e)
  1263. case *map[bool]int32:
  1264. fastpathTV.EncMapBoolInt32V(*v, fastpathCheckNilTrue, e)
  1265. case map[bool]int64:
  1266. fastpathTV.EncMapBoolInt64V(v, fastpathCheckNilTrue, e)
  1267. case *map[bool]int64:
  1268. fastpathTV.EncMapBoolInt64V(*v, fastpathCheckNilTrue, e)
  1269. case map[bool]float32:
  1270. fastpathTV.EncMapBoolFloat32V(v, fastpathCheckNilTrue, e)
  1271. case *map[bool]float32:
  1272. fastpathTV.EncMapBoolFloat32V(*v, fastpathCheckNilTrue, e)
  1273. case map[bool]float64:
  1274. fastpathTV.EncMapBoolFloat64V(v, fastpathCheckNilTrue, e)
  1275. case *map[bool]float64:
  1276. fastpathTV.EncMapBoolFloat64V(*v, fastpathCheckNilTrue, e)
  1277. case map[bool]bool:
  1278. fastpathTV.EncMapBoolBoolV(v, fastpathCheckNilTrue, e)
  1279. case *map[bool]bool:
  1280. fastpathTV.EncMapBoolBoolV(*v, fastpathCheckNilTrue, e)
  1281. default:
  1282. return false
  1283. }
  1284. return true
  1285. }
  1286. // -- -- fast path functions
  1287. func (f encFnInfo) fastpathEncSliceIntfR(rv reflect.Value) {
  1288. fastpathTV.EncSliceIntfV(rv.Interface().([]interface{}), fastpathCheckNilFalse, f.e)
  1289. }
  1290. func (_ fastpathT) EncSliceIntfV(v []interface{}, checkNil bool, e *Encoder) {
  1291. ee := e.e
  1292. if checkNil && v == nil {
  1293. ee.EncodeNil()
  1294. return
  1295. }
  1296. ee.EncodeArrayStart(len(v))
  1297. if e.be {
  1298. for _, v2 := range v {
  1299. e.encode(v2)
  1300. }
  1301. } else {
  1302. for j, v2 := range v {
  1303. if j > 0 {
  1304. ee.EncodeArrayEntrySeparator()
  1305. }
  1306. e.encode(v2)
  1307. }
  1308. ee.EncodeArrayEnd()
  1309. }
  1310. }
  1311. func (f encFnInfo) fastpathEncSliceStringR(rv reflect.Value) {
  1312. fastpathTV.EncSliceStringV(rv.Interface().([]string), fastpathCheckNilFalse, f.e)
  1313. }
  1314. func (_ fastpathT) EncSliceStringV(v []string, checkNil bool, e *Encoder) {
  1315. ee := e.e
  1316. if checkNil && v == nil {
  1317. ee.EncodeNil()
  1318. return
  1319. }
  1320. ee.EncodeArrayStart(len(v))
  1321. if e.be {
  1322. for _, v2 := range v {
  1323. ee.EncodeString(c_UTF8, v2)
  1324. }
  1325. } else {
  1326. for j, v2 := range v {
  1327. if j > 0 {
  1328. ee.EncodeArrayEntrySeparator()
  1329. }
  1330. ee.EncodeString(c_UTF8, v2)
  1331. }
  1332. ee.EncodeArrayEnd()
  1333. }
  1334. }
  1335. func (f encFnInfo) fastpathEncSliceFloat32R(rv reflect.Value) {
  1336. fastpathTV.EncSliceFloat32V(rv.Interface().([]float32), fastpathCheckNilFalse, f.e)
  1337. }
  1338. func (_ fastpathT) EncSliceFloat32V(v []float32, checkNil bool, e *Encoder) {
  1339. ee := e.e
  1340. if checkNil && v == nil {
  1341. ee.EncodeNil()
  1342. return
  1343. }
  1344. ee.EncodeArrayStart(len(v))
  1345. if e.be {
  1346. for _, v2 := range v {
  1347. ee.EncodeFloat32(v2)
  1348. }
  1349. } else {
  1350. for j, v2 := range v {
  1351. if j > 0 {
  1352. ee.EncodeArrayEntrySeparator()
  1353. }
  1354. ee.EncodeFloat32(v2)
  1355. }
  1356. ee.EncodeArrayEnd()
  1357. }
  1358. }
  1359. func (f encFnInfo) fastpathEncSliceFloat64R(rv reflect.Value) {
  1360. fastpathTV.EncSliceFloat64V(rv.Interface().([]float64), fastpathCheckNilFalse, f.e)
  1361. }
  1362. func (_ fastpathT) EncSliceFloat64V(v []float64, checkNil bool, e *Encoder) {
  1363. ee := e.e
  1364. if checkNil && v == nil {
  1365. ee.EncodeNil()
  1366. return
  1367. }
  1368. ee.EncodeArrayStart(len(v))
  1369. if e.be {
  1370. for _, v2 := range v {
  1371. ee.EncodeFloat64(v2)
  1372. }
  1373. } else {
  1374. for j, v2 := range v {
  1375. if j > 0 {
  1376. ee.EncodeArrayEntrySeparator()
  1377. }
  1378. ee.EncodeFloat64(v2)
  1379. }
  1380. ee.EncodeArrayEnd()
  1381. }
  1382. }
  1383. func (f encFnInfo) fastpathEncSliceUintR(rv reflect.Value) {
  1384. fastpathTV.EncSliceUintV(rv.Interface().([]uint), fastpathCheckNilFalse, f.e)
  1385. }
  1386. func (_ fastpathT) EncSliceUintV(v []uint, checkNil bool, e *Encoder) {
  1387. ee := e.e
  1388. if checkNil && v == nil {
  1389. ee.EncodeNil()
  1390. return
  1391. }
  1392. ee.EncodeArrayStart(len(v))
  1393. if e.be {
  1394. for _, v2 := range v {
  1395. ee.EncodeUint(uint64(v2))
  1396. }
  1397. } else {
  1398. for j, v2 := range v {
  1399. if j > 0 {
  1400. ee.EncodeArrayEntrySeparator()
  1401. }
  1402. ee.EncodeUint(uint64(v2))
  1403. }
  1404. ee.EncodeArrayEnd()
  1405. }
  1406. }
  1407. func (f encFnInfo) fastpathEncSliceUint16R(rv reflect.Value) {
  1408. fastpathTV.EncSliceUint16V(rv.Interface().([]uint16), fastpathCheckNilFalse, f.e)
  1409. }
  1410. func (_ fastpathT) EncSliceUint16V(v []uint16, checkNil bool, e *Encoder) {
  1411. ee := e.e
  1412. if checkNil && v == nil {
  1413. ee.EncodeNil()
  1414. return
  1415. }
  1416. ee.EncodeArrayStart(len(v))
  1417. if e.be {
  1418. for _, v2 := range v {
  1419. ee.EncodeUint(uint64(v2))
  1420. }
  1421. } else {
  1422. for j, v2 := range v {
  1423. if j > 0 {
  1424. ee.EncodeArrayEntrySeparator()
  1425. }
  1426. ee.EncodeUint(uint64(v2))
  1427. }
  1428. ee.EncodeArrayEnd()
  1429. }
  1430. }
  1431. func (f encFnInfo) fastpathEncSliceUint32R(rv reflect.Value) {
  1432. fastpathTV.EncSliceUint32V(rv.Interface().([]uint32), fastpathCheckNilFalse, f.e)
  1433. }
  1434. func (_ fastpathT) EncSliceUint32V(v []uint32, checkNil bool, e *Encoder) {
  1435. ee := e.e
  1436. if checkNil && v == nil {
  1437. ee.EncodeNil()
  1438. return
  1439. }
  1440. ee.EncodeArrayStart(len(v))
  1441. if e.be {
  1442. for _, v2 := range v {
  1443. ee.EncodeUint(uint64(v2))
  1444. }
  1445. } else {
  1446. for j, v2 := range v {
  1447. if j > 0 {
  1448. ee.EncodeArrayEntrySeparator()
  1449. }
  1450. ee.EncodeUint(uint64(v2))
  1451. }
  1452. ee.EncodeArrayEnd()
  1453. }
  1454. }
  1455. func (f encFnInfo) fastpathEncSliceUint64R(rv reflect.Value) {
  1456. fastpathTV.EncSliceUint64V(rv.Interface().([]uint64), fastpathCheckNilFalse, f.e)
  1457. }
  1458. func (_ fastpathT) EncSliceUint64V(v []uint64, checkNil bool, e *Encoder) {
  1459. ee := e.e
  1460. if checkNil && v == nil {
  1461. ee.EncodeNil()
  1462. return
  1463. }
  1464. ee.EncodeArrayStart(len(v))
  1465. if e.be {
  1466. for _, v2 := range v {
  1467. ee.EncodeUint(uint64(v2))
  1468. }
  1469. } else {
  1470. for j, v2 := range v {
  1471. if j > 0 {
  1472. ee.EncodeArrayEntrySeparator()
  1473. }
  1474. ee.EncodeUint(uint64(v2))
  1475. }
  1476. ee.EncodeArrayEnd()
  1477. }
  1478. }
  1479. func (f encFnInfo) fastpathEncSliceIntR(rv reflect.Value) {
  1480. fastpathTV.EncSliceIntV(rv.Interface().([]int), fastpathCheckNilFalse, f.e)
  1481. }
  1482. func (_ fastpathT) EncSliceIntV(v []int, checkNil bool, e *Encoder) {
  1483. ee := e.e
  1484. if checkNil && v == nil {
  1485. ee.EncodeNil()
  1486. return
  1487. }
  1488. ee.EncodeArrayStart(len(v))
  1489. if e.be {
  1490. for _, v2 := range v {
  1491. ee.EncodeInt(int64(v2))
  1492. }
  1493. } else {
  1494. for j, v2 := range v {
  1495. if j > 0 {
  1496. ee.EncodeArrayEntrySeparator()
  1497. }
  1498. ee.EncodeInt(int64(v2))
  1499. }
  1500. ee.EncodeArrayEnd()
  1501. }
  1502. }
  1503. func (f encFnInfo) fastpathEncSliceInt8R(rv reflect.Value) {
  1504. fastpathTV.EncSliceInt8V(rv.Interface().([]int8), fastpathCheckNilFalse, f.e)
  1505. }
  1506. func (_ fastpathT) EncSliceInt8V(v []int8, checkNil bool, e *Encoder) {
  1507. ee := e.e
  1508. if checkNil && v == nil {
  1509. ee.EncodeNil()
  1510. return
  1511. }
  1512. ee.EncodeArrayStart(len(v))
  1513. if e.be {
  1514. for _, v2 := range v {
  1515. ee.EncodeInt(int64(v2))
  1516. }
  1517. } else {
  1518. for j, v2 := range v {
  1519. if j > 0 {
  1520. ee.EncodeArrayEntrySeparator()
  1521. }
  1522. ee.EncodeInt(int64(v2))
  1523. }
  1524. ee.EncodeArrayEnd()
  1525. }
  1526. }
  1527. func (f encFnInfo) fastpathEncSliceInt16R(rv reflect.Value) {
  1528. fastpathTV.EncSliceInt16V(rv.Interface().([]int16), fastpathCheckNilFalse, f.e)
  1529. }
  1530. func (_ fastpathT) EncSliceInt16V(v []int16, checkNil bool, e *Encoder) {
  1531. ee := e.e
  1532. if checkNil && v == nil {
  1533. ee.EncodeNil()
  1534. return
  1535. }
  1536. ee.EncodeArrayStart(len(v))
  1537. if e.be {
  1538. for _, v2 := range v {
  1539. ee.EncodeInt(int64(v2))
  1540. }
  1541. } else {
  1542. for j, v2 := range v {
  1543. if j > 0 {
  1544. ee.EncodeArrayEntrySeparator()
  1545. }
  1546. ee.EncodeInt(int64(v2))
  1547. }
  1548. ee.EncodeArrayEnd()
  1549. }
  1550. }
  1551. func (f encFnInfo) fastpathEncSliceInt32R(rv reflect.Value) {
  1552. fastpathTV.EncSliceInt32V(rv.Interface().([]int32), fastpathCheckNilFalse, f.e)
  1553. }
  1554. func (_ fastpathT) EncSliceInt32V(v []int32, checkNil bool, e *Encoder) {
  1555. ee := e.e
  1556. if checkNil && v == nil {
  1557. ee.EncodeNil()
  1558. return
  1559. }
  1560. ee.EncodeArrayStart(len(v))
  1561. if e.be {
  1562. for _, v2 := range v {
  1563. ee.EncodeInt(int64(v2))
  1564. }
  1565. } else {
  1566. for j, v2 := range v {
  1567. if j > 0 {
  1568. ee.EncodeArrayEntrySeparator()
  1569. }
  1570. ee.EncodeInt(int64(v2))
  1571. }
  1572. ee.EncodeArrayEnd()
  1573. }
  1574. }
  1575. func (f encFnInfo) fastpathEncSliceInt64R(rv reflect.Value) {
  1576. fastpathTV.EncSliceInt64V(rv.Interface().([]int64), fastpathCheckNilFalse, f.e)
  1577. }
  1578. func (_ fastpathT) EncSliceInt64V(v []int64, checkNil bool, e *Encoder) {
  1579. ee := e.e
  1580. if checkNil && v == nil {
  1581. ee.EncodeNil()
  1582. return
  1583. }
  1584. ee.EncodeArrayStart(len(v))
  1585. if e.be {
  1586. for _, v2 := range v {
  1587. ee.EncodeInt(int64(v2))
  1588. }
  1589. } else {
  1590. for j, v2 := range v {
  1591. if j > 0 {
  1592. ee.EncodeArrayEntrySeparator()
  1593. }
  1594. ee.EncodeInt(int64(v2))
  1595. }
  1596. ee.EncodeArrayEnd()
  1597. }
  1598. }
  1599. func (f encFnInfo) fastpathEncSliceBoolR(rv reflect.Value) {
  1600. fastpathTV.EncSliceBoolV(rv.Interface().([]bool), fastpathCheckNilFalse, f.e)
  1601. }
  1602. func (_ fastpathT) EncSliceBoolV(v []bool, checkNil bool, e *Encoder) {
  1603. ee := e.e
  1604. if checkNil && v == nil {
  1605. ee.EncodeNil()
  1606. return
  1607. }
  1608. ee.EncodeArrayStart(len(v))
  1609. if e.be {
  1610. for _, v2 := range v {
  1611. ee.EncodeBool(v2)
  1612. }
  1613. } else {
  1614. for j, v2 := range v {
  1615. if j > 0 {
  1616. ee.EncodeArrayEntrySeparator()
  1617. }
  1618. ee.EncodeBool(v2)
  1619. }
  1620. ee.EncodeArrayEnd()
  1621. }
  1622. }
  1623. func (f encFnInfo) fastpathEncMapIntfIntfR(rv reflect.Value) {
  1624. fastpathTV.EncMapIntfIntfV(rv.Interface().(map[interface{}]interface{}), fastpathCheckNilFalse, f.e)
  1625. }
  1626. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, e *Encoder) {
  1627. ee := e.e
  1628. if checkNil && v == nil {
  1629. ee.EncodeNil()
  1630. return
  1631. }
  1632. ee.EncodeMapStart(len(v))
  1633. if e.be {
  1634. for k2, v2 := range v {
  1635. e.encode(k2)
  1636. e.encode(v2)
  1637. }
  1638. } else {
  1639. j := 0
  1640. for k2, v2 := range v {
  1641. if j > 0 {
  1642. ee.EncodeMapEntrySeparator()
  1643. }
  1644. e.encode(k2)
  1645. ee.EncodeMapKVSeparator()
  1646. e.encode(v2)
  1647. j++
  1648. }
  1649. ee.EncodeMapEnd()
  1650. }
  1651. }
  1652. func (f encFnInfo) fastpathEncMapIntfStringR(rv reflect.Value) {
  1653. fastpathTV.EncMapIntfStringV(rv.Interface().(map[interface{}]string), fastpathCheckNilFalse, f.e)
  1654. }
  1655. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, checkNil bool, e *Encoder) {
  1656. ee := e.e
  1657. if checkNil && v == nil {
  1658. ee.EncodeNil()
  1659. return
  1660. }
  1661. ee.EncodeMapStart(len(v))
  1662. if e.be {
  1663. for k2, v2 := range v {
  1664. e.encode(k2)
  1665. ee.EncodeString(c_UTF8, v2)
  1666. }
  1667. } else {
  1668. j := 0
  1669. for k2, v2 := range v {
  1670. if j > 0 {
  1671. ee.EncodeMapEntrySeparator()
  1672. }
  1673. e.encode(k2)
  1674. ee.EncodeMapKVSeparator()
  1675. ee.EncodeString(c_UTF8, v2)
  1676. j++
  1677. }
  1678. ee.EncodeMapEnd()
  1679. }
  1680. }
  1681. func (f encFnInfo) fastpathEncMapIntfUintR(rv reflect.Value) {
  1682. fastpathTV.EncMapIntfUintV(rv.Interface().(map[interface{}]uint), fastpathCheckNilFalse, f.e)
  1683. }
  1684. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, checkNil bool, e *Encoder) {
  1685. ee := e.e
  1686. if checkNil && v == nil {
  1687. ee.EncodeNil()
  1688. return
  1689. }
  1690. ee.EncodeMapStart(len(v))
  1691. if e.be {
  1692. for k2, v2 := range v {
  1693. e.encode(k2)
  1694. ee.EncodeUint(uint64(v2))
  1695. }
  1696. } else {
  1697. j := 0
  1698. for k2, v2 := range v {
  1699. if j > 0 {
  1700. ee.EncodeMapEntrySeparator()
  1701. }
  1702. e.encode(k2)
  1703. ee.EncodeMapKVSeparator()
  1704. ee.EncodeUint(uint64(v2))
  1705. j++
  1706. }
  1707. ee.EncodeMapEnd()
  1708. }
  1709. }
  1710. func (f encFnInfo) fastpathEncMapIntfUint8R(rv reflect.Value) {
  1711. fastpathTV.EncMapIntfUint8V(rv.Interface().(map[interface{}]uint8), fastpathCheckNilFalse, f.e)
  1712. }
  1713. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, checkNil bool, e *Encoder) {
  1714. ee := e.e
  1715. if checkNil && v == nil {
  1716. ee.EncodeNil()
  1717. return
  1718. }
  1719. ee.EncodeMapStart(len(v))
  1720. if e.be {
  1721. for k2, v2 := range v {
  1722. e.encode(k2)
  1723. ee.EncodeUint(uint64(v2))
  1724. }
  1725. } else {
  1726. j := 0
  1727. for k2, v2 := range v {
  1728. if j > 0 {
  1729. ee.EncodeMapEntrySeparator()
  1730. }
  1731. e.encode(k2)
  1732. ee.EncodeMapKVSeparator()
  1733. ee.EncodeUint(uint64(v2))
  1734. j++
  1735. }
  1736. ee.EncodeMapEnd()
  1737. }
  1738. }
  1739. func (f encFnInfo) fastpathEncMapIntfUint16R(rv reflect.Value) {
  1740. fastpathTV.EncMapIntfUint16V(rv.Interface().(map[interface{}]uint16), fastpathCheckNilFalse, f.e)
  1741. }
  1742. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, checkNil bool, e *Encoder) {
  1743. ee := e.e
  1744. if checkNil && v == nil {
  1745. ee.EncodeNil()
  1746. return
  1747. }
  1748. ee.EncodeMapStart(len(v))
  1749. if e.be {
  1750. for k2, v2 := range v {
  1751. e.encode(k2)
  1752. ee.EncodeUint(uint64(v2))
  1753. }
  1754. } else {
  1755. j := 0
  1756. for k2, v2 := range v {
  1757. if j > 0 {
  1758. ee.EncodeMapEntrySeparator()
  1759. }
  1760. e.encode(k2)
  1761. ee.EncodeMapKVSeparator()
  1762. ee.EncodeUint(uint64(v2))
  1763. j++
  1764. }
  1765. ee.EncodeMapEnd()
  1766. }
  1767. }
  1768. func (f encFnInfo) fastpathEncMapIntfUint32R(rv reflect.Value) {
  1769. fastpathTV.EncMapIntfUint32V(rv.Interface().(map[interface{}]uint32), fastpathCheckNilFalse, f.e)
  1770. }
  1771. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, checkNil bool, e *Encoder) {
  1772. ee := e.e
  1773. if checkNil && v == nil {
  1774. ee.EncodeNil()
  1775. return
  1776. }
  1777. ee.EncodeMapStart(len(v))
  1778. if e.be {
  1779. for k2, v2 := range v {
  1780. e.encode(k2)
  1781. ee.EncodeUint(uint64(v2))
  1782. }
  1783. } else {
  1784. j := 0
  1785. for k2, v2 := range v {
  1786. if j > 0 {
  1787. ee.EncodeMapEntrySeparator()
  1788. }
  1789. e.encode(k2)
  1790. ee.EncodeMapKVSeparator()
  1791. ee.EncodeUint(uint64(v2))
  1792. j++
  1793. }
  1794. ee.EncodeMapEnd()
  1795. }
  1796. }
  1797. func (f encFnInfo) fastpathEncMapIntfUint64R(rv reflect.Value) {
  1798. fastpathTV.EncMapIntfUint64V(rv.Interface().(map[interface{}]uint64), fastpathCheckNilFalse, f.e)
  1799. }
  1800. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, checkNil bool, e *Encoder) {
  1801. ee := e.e
  1802. if checkNil && v == nil {
  1803. ee.EncodeNil()
  1804. return
  1805. }
  1806. ee.EncodeMapStart(len(v))
  1807. if e.be {
  1808. for k2, v2 := range v {
  1809. e.encode(k2)
  1810. ee.EncodeUint(uint64(v2))
  1811. }
  1812. } else {
  1813. j := 0
  1814. for k2, v2 := range v {
  1815. if j > 0 {
  1816. ee.EncodeMapEntrySeparator()
  1817. }
  1818. e.encode(k2)
  1819. ee.EncodeMapKVSeparator()
  1820. ee.EncodeUint(uint64(v2))
  1821. j++
  1822. }
  1823. ee.EncodeMapEnd()
  1824. }
  1825. }
  1826. func (f encFnInfo) fastpathEncMapIntfIntR(rv reflect.Value) {
  1827. fastpathTV.EncMapIntfIntV(rv.Interface().(map[interface{}]int), fastpathCheckNilFalse, f.e)
  1828. }
  1829. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, checkNil bool, e *Encoder) {
  1830. ee := e.e
  1831. if checkNil && v == nil {
  1832. ee.EncodeNil()
  1833. return
  1834. }
  1835. ee.EncodeMapStart(len(v))
  1836. if e.be {
  1837. for k2, v2 := range v {
  1838. e.encode(k2)
  1839. ee.EncodeInt(int64(v2))
  1840. }
  1841. } else {
  1842. j := 0
  1843. for k2, v2 := range v {
  1844. if j > 0 {
  1845. ee.EncodeMapEntrySeparator()
  1846. }
  1847. e.encode(k2)
  1848. ee.EncodeMapKVSeparator()
  1849. ee.EncodeInt(int64(v2))
  1850. j++
  1851. }
  1852. ee.EncodeMapEnd()
  1853. }
  1854. }
  1855. func (f encFnInfo) fastpathEncMapIntfInt8R(rv reflect.Value) {
  1856. fastpathTV.EncMapIntfInt8V(rv.Interface().(map[interface{}]int8), fastpathCheckNilFalse, f.e)
  1857. }
  1858. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, checkNil bool, e *Encoder) {
  1859. ee := e.e
  1860. if checkNil && v == nil {
  1861. ee.EncodeNil()
  1862. return
  1863. }
  1864. ee.EncodeMapStart(len(v))
  1865. if e.be {
  1866. for k2, v2 := range v {
  1867. e.encode(k2)
  1868. ee.EncodeInt(int64(v2))
  1869. }
  1870. } else {
  1871. j := 0
  1872. for k2, v2 := range v {
  1873. if j > 0 {
  1874. ee.EncodeMapEntrySeparator()
  1875. }
  1876. e.encode(k2)
  1877. ee.EncodeMapKVSeparator()
  1878. ee.EncodeInt(int64(v2))
  1879. j++
  1880. }
  1881. ee.EncodeMapEnd()
  1882. }
  1883. }
  1884. func (f encFnInfo) fastpathEncMapIntfInt16R(rv reflect.Value) {
  1885. fastpathTV.EncMapIntfInt16V(rv.Interface().(map[interface{}]int16), fastpathCheckNilFalse, f.e)
  1886. }
  1887. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, checkNil bool, e *Encoder) {
  1888. ee := e.e
  1889. if checkNil && v == nil {
  1890. ee.EncodeNil()
  1891. return
  1892. }
  1893. ee.EncodeMapStart(len(v))
  1894. if e.be {
  1895. for k2, v2 := range v {
  1896. e.encode(k2)
  1897. ee.EncodeInt(int64(v2))
  1898. }
  1899. } else {
  1900. j := 0
  1901. for k2, v2 := range v {
  1902. if j > 0 {
  1903. ee.EncodeMapEntrySeparator()
  1904. }
  1905. e.encode(k2)
  1906. ee.EncodeMapKVSeparator()
  1907. ee.EncodeInt(int64(v2))
  1908. j++
  1909. }
  1910. ee.EncodeMapEnd()
  1911. }
  1912. }
  1913. func (f encFnInfo) fastpathEncMapIntfInt32R(rv reflect.Value) {
  1914. fastpathTV.EncMapIntfInt32V(rv.Interface().(map[interface{}]int32), fastpathCheckNilFalse, f.e)
  1915. }
  1916. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, checkNil bool, e *Encoder) {
  1917. ee := e.e
  1918. if checkNil && v == nil {
  1919. ee.EncodeNil()
  1920. return
  1921. }
  1922. ee.EncodeMapStart(len(v))
  1923. if e.be {
  1924. for k2, v2 := range v {
  1925. e.encode(k2)
  1926. ee.EncodeInt(int64(v2))
  1927. }
  1928. } else {
  1929. j := 0
  1930. for k2, v2 := range v {
  1931. if j > 0 {
  1932. ee.EncodeMapEntrySeparator()
  1933. }
  1934. e.encode(k2)
  1935. ee.EncodeMapKVSeparator()
  1936. ee.EncodeInt(int64(v2))
  1937. j++
  1938. }
  1939. ee.EncodeMapEnd()
  1940. }
  1941. }
  1942. func (f encFnInfo) fastpathEncMapIntfInt64R(rv reflect.Value) {
  1943. fastpathTV.EncMapIntfInt64V(rv.Interface().(map[interface{}]int64), fastpathCheckNilFalse, f.e)
  1944. }
  1945. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, checkNil bool, e *Encoder) {
  1946. ee := e.e
  1947. if checkNil && v == nil {
  1948. ee.EncodeNil()
  1949. return
  1950. }
  1951. ee.EncodeMapStart(len(v))
  1952. if e.be {
  1953. for k2, v2 := range v {
  1954. e.encode(k2)
  1955. ee.EncodeInt(int64(v2))
  1956. }
  1957. } else {
  1958. j := 0
  1959. for k2, v2 := range v {
  1960. if j > 0 {
  1961. ee.EncodeMapEntrySeparator()
  1962. }
  1963. e.encode(k2)
  1964. ee.EncodeMapKVSeparator()
  1965. ee.EncodeInt(int64(v2))
  1966. j++
  1967. }
  1968. ee.EncodeMapEnd()
  1969. }
  1970. }
  1971. func (f encFnInfo) fastpathEncMapIntfFloat32R(rv reflect.Value) {
  1972. fastpathTV.EncMapIntfFloat32V(rv.Interface().(map[interface{}]float32), fastpathCheckNilFalse, f.e)
  1973. }
  1974. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, checkNil bool, e *Encoder) {
  1975. ee := e.e
  1976. if checkNil && v == nil {
  1977. ee.EncodeNil()
  1978. return
  1979. }
  1980. ee.EncodeMapStart(len(v))
  1981. if e.be {
  1982. for k2, v2 := range v {
  1983. e.encode(k2)
  1984. ee.EncodeFloat32(v2)
  1985. }
  1986. } else {
  1987. j := 0
  1988. for k2, v2 := range v {
  1989. if j > 0 {
  1990. ee.EncodeMapEntrySeparator()
  1991. }
  1992. e.encode(k2)
  1993. ee.EncodeMapKVSeparator()
  1994. ee.EncodeFloat32(v2)
  1995. j++
  1996. }
  1997. ee.EncodeMapEnd()
  1998. }
  1999. }
  2000. func (f encFnInfo) fastpathEncMapIntfFloat64R(rv reflect.Value) {
  2001. fastpathTV.EncMapIntfFloat64V(rv.Interface().(map[interface{}]float64), fastpathCheckNilFalse, f.e)
  2002. }
  2003. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, checkNil bool, e *Encoder) {
  2004. ee := e.e
  2005. if checkNil && v == nil {
  2006. ee.EncodeNil()
  2007. return
  2008. }
  2009. ee.EncodeMapStart(len(v))
  2010. if e.be {
  2011. for k2, v2 := range v {
  2012. e.encode(k2)
  2013. ee.EncodeFloat64(v2)
  2014. }
  2015. } else {
  2016. j := 0
  2017. for k2, v2 := range v {
  2018. if j > 0 {
  2019. ee.EncodeMapEntrySeparator()
  2020. }
  2021. e.encode(k2)
  2022. ee.EncodeMapKVSeparator()
  2023. ee.EncodeFloat64(v2)
  2024. j++
  2025. }
  2026. ee.EncodeMapEnd()
  2027. }
  2028. }
  2029. func (f encFnInfo) fastpathEncMapIntfBoolR(rv reflect.Value) {
  2030. fastpathTV.EncMapIntfBoolV(rv.Interface().(map[interface{}]bool), fastpathCheckNilFalse, f.e)
  2031. }
  2032. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, checkNil bool, e *Encoder) {
  2033. ee := e.e
  2034. if checkNil && v == nil {
  2035. ee.EncodeNil()
  2036. return
  2037. }
  2038. ee.EncodeMapStart(len(v))
  2039. if e.be {
  2040. for k2, v2 := range v {
  2041. e.encode(k2)
  2042. ee.EncodeBool(v2)
  2043. }
  2044. } else {
  2045. j := 0
  2046. for k2, v2 := range v {
  2047. if j > 0 {
  2048. ee.EncodeMapEntrySeparator()
  2049. }
  2050. e.encode(k2)
  2051. ee.EncodeMapKVSeparator()
  2052. ee.EncodeBool(v2)
  2053. j++
  2054. }
  2055. ee.EncodeMapEnd()
  2056. }
  2057. }
  2058. func (f encFnInfo) fastpathEncMapStringIntfR(rv reflect.Value) {
  2059. fastpathTV.EncMapStringIntfV(rv.Interface().(map[string]interface{}), fastpathCheckNilFalse, f.e)
  2060. }
  2061. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, checkNil bool, e *Encoder) {
  2062. ee := e.e
  2063. if checkNil && v == nil {
  2064. ee.EncodeNil()
  2065. return
  2066. }
  2067. ee.EncodeMapStart(len(v))
  2068. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2069. if e.be {
  2070. for k2, v2 := range v {
  2071. if asSymbols {
  2072. ee.EncodeSymbol(k2)
  2073. } else {
  2074. ee.EncodeString(c_UTF8, k2)
  2075. }
  2076. e.encode(v2)
  2077. }
  2078. } else {
  2079. j := 0
  2080. for k2, v2 := range v {
  2081. if j > 0 {
  2082. ee.EncodeMapEntrySeparator()
  2083. }
  2084. if asSymbols {
  2085. ee.EncodeSymbol(k2)
  2086. } else {
  2087. ee.EncodeString(c_UTF8, k2)
  2088. }
  2089. ee.EncodeMapKVSeparator()
  2090. e.encode(v2)
  2091. j++
  2092. }
  2093. ee.EncodeMapEnd()
  2094. }
  2095. }
  2096. func (f encFnInfo) fastpathEncMapStringStringR(rv reflect.Value) {
  2097. fastpathTV.EncMapStringStringV(rv.Interface().(map[string]string), fastpathCheckNilFalse, f.e)
  2098. }
  2099. func (_ fastpathT) EncMapStringStringV(v map[string]string, checkNil bool, e *Encoder) {
  2100. ee := e.e
  2101. if checkNil && v == nil {
  2102. ee.EncodeNil()
  2103. return
  2104. }
  2105. ee.EncodeMapStart(len(v))
  2106. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2107. if e.be {
  2108. for k2, v2 := range v {
  2109. if asSymbols {
  2110. ee.EncodeSymbol(k2)
  2111. } else {
  2112. ee.EncodeString(c_UTF8, k2)
  2113. }
  2114. ee.EncodeString(c_UTF8, v2)
  2115. }
  2116. } else {
  2117. j := 0
  2118. for k2, v2 := range v {
  2119. if j > 0 {
  2120. ee.EncodeMapEntrySeparator()
  2121. }
  2122. if asSymbols {
  2123. ee.EncodeSymbol(k2)
  2124. } else {
  2125. ee.EncodeString(c_UTF8, k2)
  2126. }
  2127. ee.EncodeMapKVSeparator()
  2128. ee.EncodeString(c_UTF8, v2)
  2129. j++
  2130. }
  2131. ee.EncodeMapEnd()
  2132. }
  2133. }
  2134. func (f encFnInfo) fastpathEncMapStringUintR(rv reflect.Value) {
  2135. fastpathTV.EncMapStringUintV(rv.Interface().(map[string]uint), fastpathCheckNilFalse, f.e)
  2136. }
  2137. func (_ fastpathT) EncMapStringUintV(v map[string]uint, checkNil bool, e *Encoder) {
  2138. ee := e.e
  2139. if checkNil && v == nil {
  2140. ee.EncodeNil()
  2141. return
  2142. }
  2143. ee.EncodeMapStart(len(v))
  2144. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2145. if e.be {
  2146. for k2, v2 := range v {
  2147. if asSymbols {
  2148. ee.EncodeSymbol(k2)
  2149. } else {
  2150. ee.EncodeString(c_UTF8, k2)
  2151. }
  2152. ee.EncodeUint(uint64(v2))
  2153. }
  2154. } else {
  2155. j := 0
  2156. for k2, v2 := range v {
  2157. if j > 0 {
  2158. ee.EncodeMapEntrySeparator()
  2159. }
  2160. if asSymbols {
  2161. ee.EncodeSymbol(k2)
  2162. } else {
  2163. ee.EncodeString(c_UTF8, k2)
  2164. }
  2165. ee.EncodeMapKVSeparator()
  2166. ee.EncodeUint(uint64(v2))
  2167. j++
  2168. }
  2169. ee.EncodeMapEnd()
  2170. }
  2171. }
  2172. func (f encFnInfo) fastpathEncMapStringUint8R(rv reflect.Value) {
  2173. fastpathTV.EncMapStringUint8V(rv.Interface().(map[string]uint8), fastpathCheckNilFalse, f.e)
  2174. }
  2175. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, checkNil bool, e *Encoder) {
  2176. ee := e.e
  2177. if checkNil && v == nil {
  2178. ee.EncodeNil()
  2179. return
  2180. }
  2181. ee.EncodeMapStart(len(v))
  2182. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2183. if e.be {
  2184. for k2, v2 := range v {
  2185. if asSymbols {
  2186. ee.EncodeSymbol(k2)
  2187. } else {
  2188. ee.EncodeString(c_UTF8, k2)
  2189. }
  2190. ee.EncodeUint(uint64(v2))
  2191. }
  2192. } else {
  2193. j := 0
  2194. for k2, v2 := range v {
  2195. if j > 0 {
  2196. ee.EncodeMapEntrySeparator()
  2197. }
  2198. if asSymbols {
  2199. ee.EncodeSymbol(k2)
  2200. } else {
  2201. ee.EncodeString(c_UTF8, k2)
  2202. }
  2203. ee.EncodeMapKVSeparator()
  2204. ee.EncodeUint(uint64(v2))
  2205. j++
  2206. }
  2207. ee.EncodeMapEnd()
  2208. }
  2209. }
  2210. func (f encFnInfo) fastpathEncMapStringUint16R(rv reflect.Value) {
  2211. fastpathTV.EncMapStringUint16V(rv.Interface().(map[string]uint16), fastpathCheckNilFalse, f.e)
  2212. }
  2213. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, checkNil bool, e *Encoder) {
  2214. ee := e.e
  2215. if checkNil && v == nil {
  2216. ee.EncodeNil()
  2217. return
  2218. }
  2219. ee.EncodeMapStart(len(v))
  2220. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2221. if e.be {
  2222. for k2, v2 := range v {
  2223. if asSymbols {
  2224. ee.EncodeSymbol(k2)
  2225. } else {
  2226. ee.EncodeString(c_UTF8, k2)
  2227. }
  2228. ee.EncodeUint(uint64(v2))
  2229. }
  2230. } else {
  2231. j := 0
  2232. for k2, v2 := range v {
  2233. if j > 0 {
  2234. ee.EncodeMapEntrySeparator()
  2235. }
  2236. if asSymbols {
  2237. ee.EncodeSymbol(k2)
  2238. } else {
  2239. ee.EncodeString(c_UTF8, k2)
  2240. }
  2241. ee.EncodeMapKVSeparator()
  2242. ee.EncodeUint(uint64(v2))
  2243. j++
  2244. }
  2245. ee.EncodeMapEnd()
  2246. }
  2247. }
  2248. func (f encFnInfo) fastpathEncMapStringUint32R(rv reflect.Value) {
  2249. fastpathTV.EncMapStringUint32V(rv.Interface().(map[string]uint32), fastpathCheckNilFalse, f.e)
  2250. }
  2251. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, checkNil bool, e *Encoder) {
  2252. ee := e.e
  2253. if checkNil && v == nil {
  2254. ee.EncodeNil()
  2255. return
  2256. }
  2257. ee.EncodeMapStart(len(v))
  2258. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2259. if e.be {
  2260. for k2, v2 := range v {
  2261. if asSymbols {
  2262. ee.EncodeSymbol(k2)
  2263. } else {
  2264. ee.EncodeString(c_UTF8, k2)
  2265. }
  2266. ee.EncodeUint(uint64(v2))
  2267. }
  2268. } else {
  2269. j := 0
  2270. for k2, v2 := range v {
  2271. if j > 0 {
  2272. ee.EncodeMapEntrySeparator()
  2273. }
  2274. if asSymbols {
  2275. ee.EncodeSymbol(k2)
  2276. } else {
  2277. ee.EncodeString(c_UTF8, k2)
  2278. }
  2279. ee.EncodeMapKVSeparator()
  2280. ee.EncodeUint(uint64(v2))
  2281. j++
  2282. }
  2283. ee.EncodeMapEnd()
  2284. }
  2285. }
  2286. func (f encFnInfo) fastpathEncMapStringUint64R(rv reflect.Value) {
  2287. fastpathTV.EncMapStringUint64V(rv.Interface().(map[string]uint64), fastpathCheckNilFalse, f.e)
  2288. }
  2289. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, checkNil bool, e *Encoder) {
  2290. ee := e.e
  2291. if checkNil && v == nil {
  2292. ee.EncodeNil()
  2293. return
  2294. }
  2295. ee.EncodeMapStart(len(v))
  2296. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2297. if e.be {
  2298. for k2, v2 := range v {
  2299. if asSymbols {
  2300. ee.EncodeSymbol(k2)
  2301. } else {
  2302. ee.EncodeString(c_UTF8, k2)
  2303. }
  2304. ee.EncodeUint(uint64(v2))
  2305. }
  2306. } else {
  2307. j := 0
  2308. for k2, v2 := range v {
  2309. if j > 0 {
  2310. ee.EncodeMapEntrySeparator()
  2311. }
  2312. if asSymbols {
  2313. ee.EncodeSymbol(k2)
  2314. } else {
  2315. ee.EncodeString(c_UTF8, k2)
  2316. }
  2317. ee.EncodeMapKVSeparator()
  2318. ee.EncodeUint(uint64(v2))
  2319. j++
  2320. }
  2321. ee.EncodeMapEnd()
  2322. }
  2323. }
  2324. func (f encFnInfo) fastpathEncMapStringIntR(rv reflect.Value) {
  2325. fastpathTV.EncMapStringIntV(rv.Interface().(map[string]int), fastpathCheckNilFalse, f.e)
  2326. }
  2327. func (_ fastpathT) EncMapStringIntV(v map[string]int, checkNil bool, e *Encoder) {
  2328. ee := e.e
  2329. if checkNil && v == nil {
  2330. ee.EncodeNil()
  2331. return
  2332. }
  2333. ee.EncodeMapStart(len(v))
  2334. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2335. if e.be {
  2336. for k2, v2 := range v {
  2337. if asSymbols {
  2338. ee.EncodeSymbol(k2)
  2339. } else {
  2340. ee.EncodeString(c_UTF8, k2)
  2341. }
  2342. ee.EncodeInt(int64(v2))
  2343. }
  2344. } else {
  2345. j := 0
  2346. for k2, v2 := range v {
  2347. if j > 0 {
  2348. ee.EncodeMapEntrySeparator()
  2349. }
  2350. if asSymbols {
  2351. ee.EncodeSymbol(k2)
  2352. } else {
  2353. ee.EncodeString(c_UTF8, k2)
  2354. }
  2355. ee.EncodeMapKVSeparator()
  2356. ee.EncodeInt(int64(v2))
  2357. j++
  2358. }
  2359. ee.EncodeMapEnd()
  2360. }
  2361. }
  2362. func (f encFnInfo) fastpathEncMapStringInt8R(rv reflect.Value) {
  2363. fastpathTV.EncMapStringInt8V(rv.Interface().(map[string]int8), fastpathCheckNilFalse, f.e)
  2364. }
  2365. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, checkNil bool, e *Encoder) {
  2366. ee := e.e
  2367. if checkNil && v == nil {
  2368. ee.EncodeNil()
  2369. return
  2370. }
  2371. ee.EncodeMapStart(len(v))
  2372. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2373. if e.be {
  2374. for k2, v2 := range v {
  2375. if asSymbols {
  2376. ee.EncodeSymbol(k2)
  2377. } else {
  2378. ee.EncodeString(c_UTF8, k2)
  2379. }
  2380. ee.EncodeInt(int64(v2))
  2381. }
  2382. } else {
  2383. j := 0
  2384. for k2, v2 := range v {
  2385. if j > 0 {
  2386. ee.EncodeMapEntrySeparator()
  2387. }
  2388. if asSymbols {
  2389. ee.EncodeSymbol(k2)
  2390. } else {
  2391. ee.EncodeString(c_UTF8, k2)
  2392. }
  2393. ee.EncodeMapKVSeparator()
  2394. ee.EncodeInt(int64(v2))
  2395. j++
  2396. }
  2397. ee.EncodeMapEnd()
  2398. }
  2399. }
  2400. func (f encFnInfo) fastpathEncMapStringInt16R(rv reflect.Value) {
  2401. fastpathTV.EncMapStringInt16V(rv.Interface().(map[string]int16), fastpathCheckNilFalse, f.e)
  2402. }
  2403. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, checkNil bool, e *Encoder) {
  2404. ee := e.e
  2405. if checkNil && v == nil {
  2406. ee.EncodeNil()
  2407. return
  2408. }
  2409. ee.EncodeMapStart(len(v))
  2410. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2411. if e.be {
  2412. for k2, v2 := range v {
  2413. if asSymbols {
  2414. ee.EncodeSymbol(k2)
  2415. } else {
  2416. ee.EncodeString(c_UTF8, k2)
  2417. }
  2418. ee.EncodeInt(int64(v2))
  2419. }
  2420. } else {
  2421. j := 0
  2422. for k2, v2 := range v {
  2423. if j > 0 {
  2424. ee.EncodeMapEntrySeparator()
  2425. }
  2426. if asSymbols {
  2427. ee.EncodeSymbol(k2)
  2428. } else {
  2429. ee.EncodeString(c_UTF8, k2)
  2430. }
  2431. ee.EncodeMapKVSeparator()
  2432. ee.EncodeInt(int64(v2))
  2433. j++
  2434. }
  2435. ee.EncodeMapEnd()
  2436. }
  2437. }
  2438. func (f encFnInfo) fastpathEncMapStringInt32R(rv reflect.Value) {
  2439. fastpathTV.EncMapStringInt32V(rv.Interface().(map[string]int32), fastpathCheckNilFalse, f.e)
  2440. }
  2441. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, checkNil bool, e *Encoder) {
  2442. ee := e.e
  2443. if checkNil && v == nil {
  2444. ee.EncodeNil()
  2445. return
  2446. }
  2447. ee.EncodeMapStart(len(v))
  2448. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2449. if e.be {
  2450. for k2, v2 := range v {
  2451. if asSymbols {
  2452. ee.EncodeSymbol(k2)
  2453. } else {
  2454. ee.EncodeString(c_UTF8, k2)
  2455. }
  2456. ee.EncodeInt(int64(v2))
  2457. }
  2458. } else {
  2459. j := 0
  2460. for k2, v2 := range v {
  2461. if j > 0 {
  2462. ee.EncodeMapEntrySeparator()
  2463. }
  2464. if asSymbols {
  2465. ee.EncodeSymbol(k2)
  2466. } else {
  2467. ee.EncodeString(c_UTF8, k2)
  2468. }
  2469. ee.EncodeMapKVSeparator()
  2470. ee.EncodeInt(int64(v2))
  2471. j++
  2472. }
  2473. ee.EncodeMapEnd()
  2474. }
  2475. }
  2476. func (f encFnInfo) fastpathEncMapStringInt64R(rv reflect.Value) {
  2477. fastpathTV.EncMapStringInt64V(rv.Interface().(map[string]int64), fastpathCheckNilFalse, f.e)
  2478. }
  2479. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, checkNil bool, e *Encoder) {
  2480. ee := e.e
  2481. if checkNil && v == nil {
  2482. ee.EncodeNil()
  2483. return
  2484. }
  2485. ee.EncodeMapStart(len(v))
  2486. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2487. if e.be {
  2488. for k2, v2 := range v {
  2489. if asSymbols {
  2490. ee.EncodeSymbol(k2)
  2491. } else {
  2492. ee.EncodeString(c_UTF8, k2)
  2493. }
  2494. ee.EncodeInt(int64(v2))
  2495. }
  2496. } else {
  2497. j := 0
  2498. for k2, v2 := range v {
  2499. if j > 0 {
  2500. ee.EncodeMapEntrySeparator()
  2501. }
  2502. if asSymbols {
  2503. ee.EncodeSymbol(k2)
  2504. } else {
  2505. ee.EncodeString(c_UTF8, k2)
  2506. }
  2507. ee.EncodeMapKVSeparator()
  2508. ee.EncodeInt(int64(v2))
  2509. j++
  2510. }
  2511. ee.EncodeMapEnd()
  2512. }
  2513. }
  2514. func (f encFnInfo) fastpathEncMapStringFloat32R(rv reflect.Value) {
  2515. fastpathTV.EncMapStringFloat32V(rv.Interface().(map[string]float32), fastpathCheckNilFalse, f.e)
  2516. }
  2517. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, checkNil bool, e *Encoder) {
  2518. ee := e.e
  2519. if checkNil && v == nil {
  2520. ee.EncodeNil()
  2521. return
  2522. }
  2523. ee.EncodeMapStart(len(v))
  2524. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2525. if e.be {
  2526. for k2, v2 := range v {
  2527. if asSymbols {
  2528. ee.EncodeSymbol(k2)
  2529. } else {
  2530. ee.EncodeString(c_UTF8, k2)
  2531. }
  2532. ee.EncodeFloat32(v2)
  2533. }
  2534. } else {
  2535. j := 0
  2536. for k2, v2 := range v {
  2537. if j > 0 {
  2538. ee.EncodeMapEntrySeparator()
  2539. }
  2540. if asSymbols {
  2541. ee.EncodeSymbol(k2)
  2542. } else {
  2543. ee.EncodeString(c_UTF8, k2)
  2544. }
  2545. ee.EncodeMapKVSeparator()
  2546. ee.EncodeFloat32(v2)
  2547. j++
  2548. }
  2549. ee.EncodeMapEnd()
  2550. }
  2551. }
  2552. func (f encFnInfo) fastpathEncMapStringFloat64R(rv reflect.Value) {
  2553. fastpathTV.EncMapStringFloat64V(rv.Interface().(map[string]float64), fastpathCheckNilFalse, f.e)
  2554. }
  2555. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, checkNil bool, e *Encoder) {
  2556. ee := e.e
  2557. if checkNil && v == nil {
  2558. ee.EncodeNil()
  2559. return
  2560. }
  2561. ee.EncodeMapStart(len(v))
  2562. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2563. if e.be {
  2564. for k2, v2 := range v {
  2565. if asSymbols {
  2566. ee.EncodeSymbol(k2)
  2567. } else {
  2568. ee.EncodeString(c_UTF8, k2)
  2569. }
  2570. ee.EncodeFloat64(v2)
  2571. }
  2572. } else {
  2573. j := 0
  2574. for k2, v2 := range v {
  2575. if j > 0 {
  2576. ee.EncodeMapEntrySeparator()
  2577. }
  2578. if asSymbols {
  2579. ee.EncodeSymbol(k2)
  2580. } else {
  2581. ee.EncodeString(c_UTF8, k2)
  2582. }
  2583. ee.EncodeMapKVSeparator()
  2584. ee.EncodeFloat64(v2)
  2585. j++
  2586. }
  2587. ee.EncodeMapEnd()
  2588. }
  2589. }
  2590. func (f encFnInfo) fastpathEncMapStringBoolR(rv reflect.Value) {
  2591. fastpathTV.EncMapStringBoolV(rv.Interface().(map[string]bool), fastpathCheckNilFalse, f.e)
  2592. }
  2593. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, checkNil bool, e *Encoder) {
  2594. ee := e.e
  2595. if checkNil && v == nil {
  2596. ee.EncodeNil()
  2597. return
  2598. }
  2599. ee.EncodeMapStart(len(v))
  2600. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  2601. if e.be {
  2602. for k2, v2 := range v {
  2603. if asSymbols {
  2604. ee.EncodeSymbol(k2)
  2605. } else {
  2606. ee.EncodeString(c_UTF8, k2)
  2607. }
  2608. ee.EncodeBool(v2)
  2609. }
  2610. } else {
  2611. j := 0
  2612. for k2, v2 := range v {
  2613. if j > 0 {
  2614. ee.EncodeMapEntrySeparator()
  2615. }
  2616. if asSymbols {
  2617. ee.EncodeSymbol(k2)
  2618. } else {
  2619. ee.EncodeString(c_UTF8, k2)
  2620. }
  2621. ee.EncodeMapKVSeparator()
  2622. ee.EncodeBool(v2)
  2623. j++
  2624. }
  2625. ee.EncodeMapEnd()
  2626. }
  2627. }
  2628. func (f encFnInfo) fastpathEncMapFloat32IntfR(rv reflect.Value) {
  2629. fastpathTV.EncMapFloat32IntfV(rv.Interface().(map[float32]interface{}), fastpathCheckNilFalse, f.e)
  2630. }
  2631. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, checkNil bool, e *Encoder) {
  2632. ee := e.e
  2633. if checkNil && v == nil {
  2634. ee.EncodeNil()
  2635. return
  2636. }
  2637. ee.EncodeMapStart(len(v))
  2638. if e.be {
  2639. for k2, v2 := range v {
  2640. ee.EncodeFloat32(k2)
  2641. e.encode(v2)
  2642. }
  2643. } else {
  2644. j := 0
  2645. for k2, v2 := range v {
  2646. if j > 0 {
  2647. ee.EncodeMapEntrySeparator()
  2648. }
  2649. ee.EncodeFloat32(k2)
  2650. ee.EncodeMapKVSeparator()
  2651. e.encode(v2)
  2652. j++
  2653. }
  2654. ee.EncodeMapEnd()
  2655. }
  2656. }
  2657. func (f encFnInfo) fastpathEncMapFloat32StringR(rv reflect.Value) {
  2658. fastpathTV.EncMapFloat32StringV(rv.Interface().(map[float32]string), fastpathCheckNilFalse, f.e)
  2659. }
  2660. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, checkNil bool, e *Encoder) {
  2661. ee := e.e
  2662. if checkNil && v == nil {
  2663. ee.EncodeNil()
  2664. return
  2665. }
  2666. ee.EncodeMapStart(len(v))
  2667. if e.be {
  2668. for k2, v2 := range v {
  2669. ee.EncodeFloat32(k2)
  2670. ee.EncodeString(c_UTF8, v2)
  2671. }
  2672. } else {
  2673. j := 0
  2674. for k2, v2 := range v {
  2675. if j > 0 {
  2676. ee.EncodeMapEntrySeparator()
  2677. }
  2678. ee.EncodeFloat32(k2)
  2679. ee.EncodeMapKVSeparator()
  2680. ee.EncodeString(c_UTF8, v2)
  2681. j++
  2682. }
  2683. ee.EncodeMapEnd()
  2684. }
  2685. }
  2686. func (f encFnInfo) fastpathEncMapFloat32UintR(rv reflect.Value) {
  2687. fastpathTV.EncMapFloat32UintV(rv.Interface().(map[float32]uint), fastpathCheckNilFalse, f.e)
  2688. }
  2689. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, checkNil bool, e *Encoder) {
  2690. ee := e.e
  2691. if checkNil && v == nil {
  2692. ee.EncodeNil()
  2693. return
  2694. }
  2695. ee.EncodeMapStart(len(v))
  2696. if e.be {
  2697. for k2, v2 := range v {
  2698. ee.EncodeFloat32(k2)
  2699. ee.EncodeUint(uint64(v2))
  2700. }
  2701. } else {
  2702. j := 0
  2703. for k2, v2 := range v {
  2704. if j > 0 {
  2705. ee.EncodeMapEntrySeparator()
  2706. }
  2707. ee.EncodeFloat32(k2)
  2708. ee.EncodeMapKVSeparator()
  2709. ee.EncodeUint(uint64(v2))
  2710. j++
  2711. }
  2712. ee.EncodeMapEnd()
  2713. }
  2714. }
  2715. func (f encFnInfo) fastpathEncMapFloat32Uint8R(rv reflect.Value) {
  2716. fastpathTV.EncMapFloat32Uint8V(rv.Interface().(map[float32]uint8), fastpathCheckNilFalse, f.e)
  2717. }
  2718. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, checkNil bool, e *Encoder) {
  2719. ee := e.e
  2720. if checkNil && v == nil {
  2721. ee.EncodeNil()
  2722. return
  2723. }
  2724. ee.EncodeMapStart(len(v))
  2725. if e.be {
  2726. for k2, v2 := range v {
  2727. ee.EncodeFloat32(k2)
  2728. ee.EncodeUint(uint64(v2))
  2729. }
  2730. } else {
  2731. j := 0
  2732. for k2, v2 := range v {
  2733. if j > 0 {
  2734. ee.EncodeMapEntrySeparator()
  2735. }
  2736. ee.EncodeFloat32(k2)
  2737. ee.EncodeMapKVSeparator()
  2738. ee.EncodeUint(uint64(v2))
  2739. j++
  2740. }
  2741. ee.EncodeMapEnd()
  2742. }
  2743. }
  2744. func (f encFnInfo) fastpathEncMapFloat32Uint16R(rv reflect.Value) {
  2745. fastpathTV.EncMapFloat32Uint16V(rv.Interface().(map[float32]uint16), fastpathCheckNilFalse, f.e)
  2746. }
  2747. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, checkNil bool, e *Encoder) {
  2748. ee := e.e
  2749. if checkNil && v == nil {
  2750. ee.EncodeNil()
  2751. return
  2752. }
  2753. ee.EncodeMapStart(len(v))
  2754. if e.be {
  2755. for k2, v2 := range v {
  2756. ee.EncodeFloat32(k2)
  2757. ee.EncodeUint(uint64(v2))
  2758. }
  2759. } else {
  2760. j := 0
  2761. for k2, v2 := range v {
  2762. if j > 0 {
  2763. ee.EncodeMapEntrySeparator()
  2764. }
  2765. ee.EncodeFloat32(k2)
  2766. ee.EncodeMapKVSeparator()
  2767. ee.EncodeUint(uint64(v2))
  2768. j++
  2769. }
  2770. ee.EncodeMapEnd()
  2771. }
  2772. }
  2773. func (f encFnInfo) fastpathEncMapFloat32Uint32R(rv reflect.Value) {
  2774. fastpathTV.EncMapFloat32Uint32V(rv.Interface().(map[float32]uint32), fastpathCheckNilFalse, f.e)
  2775. }
  2776. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, checkNil bool, e *Encoder) {
  2777. ee := e.e
  2778. if checkNil && v == nil {
  2779. ee.EncodeNil()
  2780. return
  2781. }
  2782. ee.EncodeMapStart(len(v))
  2783. if e.be {
  2784. for k2, v2 := range v {
  2785. ee.EncodeFloat32(k2)
  2786. ee.EncodeUint(uint64(v2))
  2787. }
  2788. } else {
  2789. j := 0
  2790. for k2, v2 := range v {
  2791. if j > 0 {
  2792. ee.EncodeMapEntrySeparator()
  2793. }
  2794. ee.EncodeFloat32(k2)
  2795. ee.EncodeMapKVSeparator()
  2796. ee.EncodeUint(uint64(v2))
  2797. j++
  2798. }
  2799. ee.EncodeMapEnd()
  2800. }
  2801. }
  2802. func (f encFnInfo) fastpathEncMapFloat32Uint64R(rv reflect.Value) {
  2803. fastpathTV.EncMapFloat32Uint64V(rv.Interface().(map[float32]uint64), fastpathCheckNilFalse, f.e)
  2804. }
  2805. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, checkNil bool, e *Encoder) {
  2806. ee := e.e
  2807. if checkNil && v == nil {
  2808. ee.EncodeNil()
  2809. return
  2810. }
  2811. ee.EncodeMapStart(len(v))
  2812. if e.be {
  2813. for k2, v2 := range v {
  2814. ee.EncodeFloat32(k2)
  2815. ee.EncodeUint(uint64(v2))
  2816. }
  2817. } else {
  2818. j := 0
  2819. for k2, v2 := range v {
  2820. if j > 0 {
  2821. ee.EncodeMapEntrySeparator()
  2822. }
  2823. ee.EncodeFloat32(k2)
  2824. ee.EncodeMapKVSeparator()
  2825. ee.EncodeUint(uint64(v2))
  2826. j++
  2827. }
  2828. ee.EncodeMapEnd()
  2829. }
  2830. }
  2831. func (f encFnInfo) fastpathEncMapFloat32IntR(rv reflect.Value) {
  2832. fastpathTV.EncMapFloat32IntV(rv.Interface().(map[float32]int), fastpathCheckNilFalse, f.e)
  2833. }
  2834. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, checkNil bool, e *Encoder) {
  2835. ee := e.e
  2836. if checkNil && v == nil {
  2837. ee.EncodeNil()
  2838. return
  2839. }
  2840. ee.EncodeMapStart(len(v))
  2841. if e.be {
  2842. for k2, v2 := range v {
  2843. ee.EncodeFloat32(k2)
  2844. ee.EncodeInt(int64(v2))
  2845. }
  2846. } else {
  2847. j := 0
  2848. for k2, v2 := range v {
  2849. if j > 0 {
  2850. ee.EncodeMapEntrySeparator()
  2851. }
  2852. ee.EncodeFloat32(k2)
  2853. ee.EncodeMapKVSeparator()
  2854. ee.EncodeInt(int64(v2))
  2855. j++
  2856. }
  2857. ee.EncodeMapEnd()
  2858. }
  2859. }
  2860. func (f encFnInfo) fastpathEncMapFloat32Int8R(rv reflect.Value) {
  2861. fastpathTV.EncMapFloat32Int8V(rv.Interface().(map[float32]int8), fastpathCheckNilFalse, f.e)
  2862. }
  2863. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, checkNil bool, e *Encoder) {
  2864. ee := e.e
  2865. if checkNil && v == nil {
  2866. ee.EncodeNil()
  2867. return
  2868. }
  2869. ee.EncodeMapStart(len(v))
  2870. if e.be {
  2871. for k2, v2 := range v {
  2872. ee.EncodeFloat32(k2)
  2873. ee.EncodeInt(int64(v2))
  2874. }
  2875. } else {
  2876. j := 0
  2877. for k2, v2 := range v {
  2878. if j > 0 {
  2879. ee.EncodeMapEntrySeparator()
  2880. }
  2881. ee.EncodeFloat32(k2)
  2882. ee.EncodeMapKVSeparator()
  2883. ee.EncodeInt(int64(v2))
  2884. j++
  2885. }
  2886. ee.EncodeMapEnd()
  2887. }
  2888. }
  2889. func (f encFnInfo) fastpathEncMapFloat32Int16R(rv reflect.Value) {
  2890. fastpathTV.EncMapFloat32Int16V(rv.Interface().(map[float32]int16), fastpathCheckNilFalse, f.e)
  2891. }
  2892. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, checkNil bool, e *Encoder) {
  2893. ee := e.e
  2894. if checkNil && v == nil {
  2895. ee.EncodeNil()
  2896. return
  2897. }
  2898. ee.EncodeMapStart(len(v))
  2899. if e.be {
  2900. for k2, v2 := range v {
  2901. ee.EncodeFloat32(k2)
  2902. ee.EncodeInt(int64(v2))
  2903. }
  2904. } else {
  2905. j := 0
  2906. for k2, v2 := range v {
  2907. if j > 0 {
  2908. ee.EncodeMapEntrySeparator()
  2909. }
  2910. ee.EncodeFloat32(k2)
  2911. ee.EncodeMapKVSeparator()
  2912. ee.EncodeInt(int64(v2))
  2913. j++
  2914. }
  2915. ee.EncodeMapEnd()
  2916. }
  2917. }
  2918. func (f encFnInfo) fastpathEncMapFloat32Int32R(rv reflect.Value) {
  2919. fastpathTV.EncMapFloat32Int32V(rv.Interface().(map[float32]int32), fastpathCheckNilFalse, f.e)
  2920. }
  2921. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, checkNil bool, e *Encoder) {
  2922. ee := e.e
  2923. if checkNil && v == nil {
  2924. ee.EncodeNil()
  2925. return
  2926. }
  2927. ee.EncodeMapStart(len(v))
  2928. if e.be {
  2929. for k2, v2 := range v {
  2930. ee.EncodeFloat32(k2)
  2931. ee.EncodeInt(int64(v2))
  2932. }
  2933. } else {
  2934. j := 0
  2935. for k2, v2 := range v {
  2936. if j > 0 {
  2937. ee.EncodeMapEntrySeparator()
  2938. }
  2939. ee.EncodeFloat32(k2)
  2940. ee.EncodeMapKVSeparator()
  2941. ee.EncodeInt(int64(v2))
  2942. j++
  2943. }
  2944. ee.EncodeMapEnd()
  2945. }
  2946. }
  2947. func (f encFnInfo) fastpathEncMapFloat32Int64R(rv reflect.Value) {
  2948. fastpathTV.EncMapFloat32Int64V(rv.Interface().(map[float32]int64), fastpathCheckNilFalse, f.e)
  2949. }
  2950. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, checkNil bool, e *Encoder) {
  2951. ee := e.e
  2952. if checkNil && v == nil {
  2953. ee.EncodeNil()
  2954. return
  2955. }
  2956. ee.EncodeMapStart(len(v))
  2957. if e.be {
  2958. for k2, v2 := range v {
  2959. ee.EncodeFloat32(k2)
  2960. ee.EncodeInt(int64(v2))
  2961. }
  2962. } else {
  2963. j := 0
  2964. for k2, v2 := range v {
  2965. if j > 0 {
  2966. ee.EncodeMapEntrySeparator()
  2967. }
  2968. ee.EncodeFloat32(k2)
  2969. ee.EncodeMapKVSeparator()
  2970. ee.EncodeInt(int64(v2))
  2971. j++
  2972. }
  2973. ee.EncodeMapEnd()
  2974. }
  2975. }
  2976. func (f encFnInfo) fastpathEncMapFloat32Float32R(rv reflect.Value) {
  2977. fastpathTV.EncMapFloat32Float32V(rv.Interface().(map[float32]float32), fastpathCheckNilFalse, f.e)
  2978. }
  2979. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, checkNil bool, e *Encoder) {
  2980. ee := e.e
  2981. if checkNil && v == nil {
  2982. ee.EncodeNil()
  2983. return
  2984. }
  2985. ee.EncodeMapStart(len(v))
  2986. if e.be {
  2987. for k2, v2 := range v {
  2988. ee.EncodeFloat32(k2)
  2989. ee.EncodeFloat32(v2)
  2990. }
  2991. } else {
  2992. j := 0
  2993. for k2, v2 := range v {
  2994. if j > 0 {
  2995. ee.EncodeMapEntrySeparator()
  2996. }
  2997. ee.EncodeFloat32(k2)
  2998. ee.EncodeMapKVSeparator()
  2999. ee.EncodeFloat32(v2)
  3000. j++
  3001. }
  3002. ee.EncodeMapEnd()
  3003. }
  3004. }
  3005. func (f encFnInfo) fastpathEncMapFloat32Float64R(rv reflect.Value) {
  3006. fastpathTV.EncMapFloat32Float64V(rv.Interface().(map[float32]float64), fastpathCheckNilFalse, f.e)
  3007. }
  3008. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, checkNil bool, e *Encoder) {
  3009. ee := e.e
  3010. if checkNil && v == nil {
  3011. ee.EncodeNil()
  3012. return
  3013. }
  3014. ee.EncodeMapStart(len(v))
  3015. if e.be {
  3016. for k2, v2 := range v {
  3017. ee.EncodeFloat32(k2)
  3018. ee.EncodeFloat64(v2)
  3019. }
  3020. } else {
  3021. j := 0
  3022. for k2, v2 := range v {
  3023. if j > 0 {
  3024. ee.EncodeMapEntrySeparator()
  3025. }
  3026. ee.EncodeFloat32(k2)
  3027. ee.EncodeMapKVSeparator()
  3028. ee.EncodeFloat64(v2)
  3029. j++
  3030. }
  3031. ee.EncodeMapEnd()
  3032. }
  3033. }
  3034. func (f encFnInfo) fastpathEncMapFloat32BoolR(rv reflect.Value) {
  3035. fastpathTV.EncMapFloat32BoolV(rv.Interface().(map[float32]bool), fastpathCheckNilFalse, f.e)
  3036. }
  3037. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, checkNil bool, e *Encoder) {
  3038. ee := e.e
  3039. if checkNil && v == nil {
  3040. ee.EncodeNil()
  3041. return
  3042. }
  3043. ee.EncodeMapStart(len(v))
  3044. if e.be {
  3045. for k2, v2 := range v {
  3046. ee.EncodeFloat32(k2)
  3047. ee.EncodeBool(v2)
  3048. }
  3049. } else {
  3050. j := 0
  3051. for k2, v2 := range v {
  3052. if j > 0 {
  3053. ee.EncodeMapEntrySeparator()
  3054. }
  3055. ee.EncodeFloat32(k2)
  3056. ee.EncodeMapKVSeparator()
  3057. ee.EncodeBool(v2)
  3058. j++
  3059. }
  3060. ee.EncodeMapEnd()
  3061. }
  3062. }
  3063. func (f encFnInfo) fastpathEncMapFloat64IntfR(rv reflect.Value) {
  3064. fastpathTV.EncMapFloat64IntfV(rv.Interface().(map[float64]interface{}), fastpathCheckNilFalse, f.e)
  3065. }
  3066. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, checkNil bool, e *Encoder) {
  3067. ee := e.e
  3068. if checkNil && v == nil {
  3069. ee.EncodeNil()
  3070. return
  3071. }
  3072. ee.EncodeMapStart(len(v))
  3073. if e.be {
  3074. for k2, v2 := range v {
  3075. ee.EncodeFloat64(k2)
  3076. e.encode(v2)
  3077. }
  3078. } else {
  3079. j := 0
  3080. for k2, v2 := range v {
  3081. if j > 0 {
  3082. ee.EncodeMapEntrySeparator()
  3083. }
  3084. ee.EncodeFloat64(k2)
  3085. ee.EncodeMapKVSeparator()
  3086. e.encode(v2)
  3087. j++
  3088. }
  3089. ee.EncodeMapEnd()
  3090. }
  3091. }
  3092. func (f encFnInfo) fastpathEncMapFloat64StringR(rv reflect.Value) {
  3093. fastpathTV.EncMapFloat64StringV(rv.Interface().(map[float64]string), fastpathCheckNilFalse, f.e)
  3094. }
  3095. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, checkNil bool, e *Encoder) {
  3096. ee := e.e
  3097. if checkNil && v == nil {
  3098. ee.EncodeNil()
  3099. return
  3100. }
  3101. ee.EncodeMapStart(len(v))
  3102. if e.be {
  3103. for k2, v2 := range v {
  3104. ee.EncodeFloat64(k2)
  3105. ee.EncodeString(c_UTF8, v2)
  3106. }
  3107. } else {
  3108. j := 0
  3109. for k2, v2 := range v {
  3110. if j > 0 {
  3111. ee.EncodeMapEntrySeparator()
  3112. }
  3113. ee.EncodeFloat64(k2)
  3114. ee.EncodeMapKVSeparator()
  3115. ee.EncodeString(c_UTF8, v2)
  3116. j++
  3117. }
  3118. ee.EncodeMapEnd()
  3119. }
  3120. }
  3121. func (f encFnInfo) fastpathEncMapFloat64UintR(rv reflect.Value) {
  3122. fastpathTV.EncMapFloat64UintV(rv.Interface().(map[float64]uint), fastpathCheckNilFalse, f.e)
  3123. }
  3124. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, checkNil bool, e *Encoder) {
  3125. ee := e.e
  3126. if checkNil && v == nil {
  3127. ee.EncodeNil()
  3128. return
  3129. }
  3130. ee.EncodeMapStart(len(v))
  3131. if e.be {
  3132. for k2, v2 := range v {
  3133. ee.EncodeFloat64(k2)
  3134. ee.EncodeUint(uint64(v2))
  3135. }
  3136. } else {
  3137. j := 0
  3138. for k2, v2 := range v {
  3139. if j > 0 {
  3140. ee.EncodeMapEntrySeparator()
  3141. }
  3142. ee.EncodeFloat64(k2)
  3143. ee.EncodeMapKVSeparator()
  3144. ee.EncodeUint(uint64(v2))
  3145. j++
  3146. }
  3147. ee.EncodeMapEnd()
  3148. }
  3149. }
  3150. func (f encFnInfo) fastpathEncMapFloat64Uint8R(rv reflect.Value) {
  3151. fastpathTV.EncMapFloat64Uint8V(rv.Interface().(map[float64]uint8), fastpathCheckNilFalse, f.e)
  3152. }
  3153. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, checkNil bool, e *Encoder) {
  3154. ee := e.e
  3155. if checkNil && v == nil {
  3156. ee.EncodeNil()
  3157. return
  3158. }
  3159. ee.EncodeMapStart(len(v))
  3160. if e.be {
  3161. for k2, v2 := range v {
  3162. ee.EncodeFloat64(k2)
  3163. ee.EncodeUint(uint64(v2))
  3164. }
  3165. } else {
  3166. j := 0
  3167. for k2, v2 := range v {
  3168. if j > 0 {
  3169. ee.EncodeMapEntrySeparator()
  3170. }
  3171. ee.EncodeFloat64(k2)
  3172. ee.EncodeMapKVSeparator()
  3173. ee.EncodeUint(uint64(v2))
  3174. j++
  3175. }
  3176. ee.EncodeMapEnd()
  3177. }
  3178. }
  3179. func (f encFnInfo) fastpathEncMapFloat64Uint16R(rv reflect.Value) {
  3180. fastpathTV.EncMapFloat64Uint16V(rv.Interface().(map[float64]uint16), fastpathCheckNilFalse, f.e)
  3181. }
  3182. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, checkNil bool, e *Encoder) {
  3183. ee := e.e
  3184. if checkNil && v == nil {
  3185. ee.EncodeNil()
  3186. return
  3187. }
  3188. ee.EncodeMapStart(len(v))
  3189. if e.be {
  3190. for k2, v2 := range v {
  3191. ee.EncodeFloat64(k2)
  3192. ee.EncodeUint(uint64(v2))
  3193. }
  3194. } else {
  3195. j := 0
  3196. for k2, v2 := range v {
  3197. if j > 0 {
  3198. ee.EncodeMapEntrySeparator()
  3199. }
  3200. ee.EncodeFloat64(k2)
  3201. ee.EncodeMapKVSeparator()
  3202. ee.EncodeUint(uint64(v2))
  3203. j++
  3204. }
  3205. ee.EncodeMapEnd()
  3206. }
  3207. }
  3208. func (f encFnInfo) fastpathEncMapFloat64Uint32R(rv reflect.Value) {
  3209. fastpathTV.EncMapFloat64Uint32V(rv.Interface().(map[float64]uint32), fastpathCheckNilFalse, f.e)
  3210. }
  3211. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, checkNil bool, e *Encoder) {
  3212. ee := e.e
  3213. if checkNil && v == nil {
  3214. ee.EncodeNil()
  3215. return
  3216. }
  3217. ee.EncodeMapStart(len(v))
  3218. if e.be {
  3219. for k2, v2 := range v {
  3220. ee.EncodeFloat64(k2)
  3221. ee.EncodeUint(uint64(v2))
  3222. }
  3223. } else {
  3224. j := 0
  3225. for k2, v2 := range v {
  3226. if j > 0 {
  3227. ee.EncodeMapEntrySeparator()
  3228. }
  3229. ee.EncodeFloat64(k2)
  3230. ee.EncodeMapKVSeparator()
  3231. ee.EncodeUint(uint64(v2))
  3232. j++
  3233. }
  3234. ee.EncodeMapEnd()
  3235. }
  3236. }
  3237. func (f encFnInfo) fastpathEncMapFloat64Uint64R(rv reflect.Value) {
  3238. fastpathTV.EncMapFloat64Uint64V(rv.Interface().(map[float64]uint64), fastpathCheckNilFalse, f.e)
  3239. }
  3240. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, checkNil bool, e *Encoder) {
  3241. ee := e.e
  3242. if checkNil && v == nil {
  3243. ee.EncodeNil()
  3244. return
  3245. }
  3246. ee.EncodeMapStart(len(v))
  3247. if e.be {
  3248. for k2, v2 := range v {
  3249. ee.EncodeFloat64(k2)
  3250. ee.EncodeUint(uint64(v2))
  3251. }
  3252. } else {
  3253. j := 0
  3254. for k2, v2 := range v {
  3255. if j > 0 {
  3256. ee.EncodeMapEntrySeparator()
  3257. }
  3258. ee.EncodeFloat64(k2)
  3259. ee.EncodeMapKVSeparator()
  3260. ee.EncodeUint(uint64(v2))
  3261. j++
  3262. }
  3263. ee.EncodeMapEnd()
  3264. }
  3265. }
  3266. func (f encFnInfo) fastpathEncMapFloat64IntR(rv reflect.Value) {
  3267. fastpathTV.EncMapFloat64IntV(rv.Interface().(map[float64]int), fastpathCheckNilFalse, f.e)
  3268. }
  3269. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, checkNil bool, e *Encoder) {
  3270. ee := e.e
  3271. if checkNil && v == nil {
  3272. ee.EncodeNil()
  3273. return
  3274. }
  3275. ee.EncodeMapStart(len(v))
  3276. if e.be {
  3277. for k2, v2 := range v {
  3278. ee.EncodeFloat64(k2)
  3279. ee.EncodeInt(int64(v2))
  3280. }
  3281. } else {
  3282. j := 0
  3283. for k2, v2 := range v {
  3284. if j > 0 {
  3285. ee.EncodeMapEntrySeparator()
  3286. }
  3287. ee.EncodeFloat64(k2)
  3288. ee.EncodeMapKVSeparator()
  3289. ee.EncodeInt(int64(v2))
  3290. j++
  3291. }
  3292. ee.EncodeMapEnd()
  3293. }
  3294. }
  3295. func (f encFnInfo) fastpathEncMapFloat64Int8R(rv reflect.Value) {
  3296. fastpathTV.EncMapFloat64Int8V(rv.Interface().(map[float64]int8), fastpathCheckNilFalse, f.e)
  3297. }
  3298. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, checkNil bool, e *Encoder) {
  3299. ee := e.e
  3300. if checkNil && v == nil {
  3301. ee.EncodeNil()
  3302. return
  3303. }
  3304. ee.EncodeMapStart(len(v))
  3305. if e.be {
  3306. for k2, v2 := range v {
  3307. ee.EncodeFloat64(k2)
  3308. ee.EncodeInt(int64(v2))
  3309. }
  3310. } else {
  3311. j := 0
  3312. for k2, v2 := range v {
  3313. if j > 0 {
  3314. ee.EncodeMapEntrySeparator()
  3315. }
  3316. ee.EncodeFloat64(k2)
  3317. ee.EncodeMapKVSeparator()
  3318. ee.EncodeInt(int64(v2))
  3319. j++
  3320. }
  3321. ee.EncodeMapEnd()
  3322. }
  3323. }
  3324. func (f encFnInfo) fastpathEncMapFloat64Int16R(rv reflect.Value) {
  3325. fastpathTV.EncMapFloat64Int16V(rv.Interface().(map[float64]int16), fastpathCheckNilFalse, f.e)
  3326. }
  3327. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, checkNil bool, e *Encoder) {
  3328. ee := e.e
  3329. if checkNil && v == nil {
  3330. ee.EncodeNil()
  3331. return
  3332. }
  3333. ee.EncodeMapStart(len(v))
  3334. if e.be {
  3335. for k2, v2 := range v {
  3336. ee.EncodeFloat64(k2)
  3337. ee.EncodeInt(int64(v2))
  3338. }
  3339. } else {
  3340. j := 0
  3341. for k2, v2 := range v {
  3342. if j > 0 {
  3343. ee.EncodeMapEntrySeparator()
  3344. }
  3345. ee.EncodeFloat64(k2)
  3346. ee.EncodeMapKVSeparator()
  3347. ee.EncodeInt(int64(v2))
  3348. j++
  3349. }
  3350. ee.EncodeMapEnd()
  3351. }
  3352. }
  3353. func (f encFnInfo) fastpathEncMapFloat64Int32R(rv reflect.Value) {
  3354. fastpathTV.EncMapFloat64Int32V(rv.Interface().(map[float64]int32), fastpathCheckNilFalse, f.e)
  3355. }
  3356. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, checkNil bool, e *Encoder) {
  3357. ee := e.e
  3358. if checkNil && v == nil {
  3359. ee.EncodeNil()
  3360. return
  3361. }
  3362. ee.EncodeMapStart(len(v))
  3363. if e.be {
  3364. for k2, v2 := range v {
  3365. ee.EncodeFloat64(k2)
  3366. ee.EncodeInt(int64(v2))
  3367. }
  3368. } else {
  3369. j := 0
  3370. for k2, v2 := range v {
  3371. if j > 0 {
  3372. ee.EncodeMapEntrySeparator()
  3373. }
  3374. ee.EncodeFloat64(k2)
  3375. ee.EncodeMapKVSeparator()
  3376. ee.EncodeInt(int64(v2))
  3377. j++
  3378. }
  3379. ee.EncodeMapEnd()
  3380. }
  3381. }
  3382. func (f encFnInfo) fastpathEncMapFloat64Int64R(rv reflect.Value) {
  3383. fastpathTV.EncMapFloat64Int64V(rv.Interface().(map[float64]int64), fastpathCheckNilFalse, f.e)
  3384. }
  3385. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, checkNil bool, e *Encoder) {
  3386. ee := e.e
  3387. if checkNil && v == nil {
  3388. ee.EncodeNil()
  3389. return
  3390. }
  3391. ee.EncodeMapStart(len(v))
  3392. if e.be {
  3393. for k2, v2 := range v {
  3394. ee.EncodeFloat64(k2)
  3395. ee.EncodeInt(int64(v2))
  3396. }
  3397. } else {
  3398. j := 0
  3399. for k2, v2 := range v {
  3400. if j > 0 {
  3401. ee.EncodeMapEntrySeparator()
  3402. }
  3403. ee.EncodeFloat64(k2)
  3404. ee.EncodeMapKVSeparator()
  3405. ee.EncodeInt(int64(v2))
  3406. j++
  3407. }
  3408. ee.EncodeMapEnd()
  3409. }
  3410. }
  3411. func (f encFnInfo) fastpathEncMapFloat64Float32R(rv reflect.Value) {
  3412. fastpathTV.EncMapFloat64Float32V(rv.Interface().(map[float64]float32), fastpathCheckNilFalse, f.e)
  3413. }
  3414. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, checkNil bool, e *Encoder) {
  3415. ee := e.e
  3416. if checkNil && v == nil {
  3417. ee.EncodeNil()
  3418. return
  3419. }
  3420. ee.EncodeMapStart(len(v))
  3421. if e.be {
  3422. for k2, v2 := range v {
  3423. ee.EncodeFloat64(k2)
  3424. ee.EncodeFloat32(v2)
  3425. }
  3426. } else {
  3427. j := 0
  3428. for k2, v2 := range v {
  3429. if j > 0 {
  3430. ee.EncodeMapEntrySeparator()
  3431. }
  3432. ee.EncodeFloat64(k2)
  3433. ee.EncodeMapKVSeparator()
  3434. ee.EncodeFloat32(v2)
  3435. j++
  3436. }
  3437. ee.EncodeMapEnd()
  3438. }
  3439. }
  3440. func (f encFnInfo) fastpathEncMapFloat64Float64R(rv reflect.Value) {
  3441. fastpathTV.EncMapFloat64Float64V(rv.Interface().(map[float64]float64), fastpathCheckNilFalse, f.e)
  3442. }
  3443. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, checkNil bool, e *Encoder) {
  3444. ee := e.e
  3445. if checkNil && v == nil {
  3446. ee.EncodeNil()
  3447. return
  3448. }
  3449. ee.EncodeMapStart(len(v))
  3450. if e.be {
  3451. for k2, v2 := range v {
  3452. ee.EncodeFloat64(k2)
  3453. ee.EncodeFloat64(v2)
  3454. }
  3455. } else {
  3456. j := 0
  3457. for k2, v2 := range v {
  3458. if j > 0 {
  3459. ee.EncodeMapEntrySeparator()
  3460. }
  3461. ee.EncodeFloat64(k2)
  3462. ee.EncodeMapKVSeparator()
  3463. ee.EncodeFloat64(v2)
  3464. j++
  3465. }
  3466. ee.EncodeMapEnd()
  3467. }
  3468. }
  3469. func (f encFnInfo) fastpathEncMapFloat64BoolR(rv reflect.Value) {
  3470. fastpathTV.EncMapFloat64BoolV(rv.Interface().(map[float64]bool), fastpathCheckNilFalse, f.e)
  3471. }
  3472. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, checkNil bool, e *Encoder) {
  3473. ee := e.e
  3474. if checkNil && v == nil {
  3475. ee.EncodeNil()
  3476. return
  3477. }
  3478. ee.EncodeMapStart(len(v))
  3479. if e.be {
  3480. for k2, v2 := range v {
  3481. ee.EncodeFloat64(k2)
  3482. ee.EncodeBool(v2)
  3483. }
  3484. } else {
  3485. j := 0
  3486. for k2, v2 := range v {
  3487. if j > 0 {
  3488. ee.EncodeMapEntrySeparator()
  3489. }
  3490. ee.EncodeFloat64(k2)
  3491. ee.EncodeMapKVSeparator()
  3492. ee.EncodeBool(v2)
  3493. j++
  3494. }
  3495. ee.EncodeMapEnd()
  3496. }
  3497. }
  3498. func (f encFnInfo) fastpathEncMapUintIntfR(rv reflect.Value) {
  3499. fastpathTV.EncMapUintIntfV(rv.Interface().(map[uint]interface{}), fastpathCheckNilFalse, f.e)
  3500. }
  3501. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, checkNil bool, e *Encoder) {
  3502. ee := e.e
  3503. if checkNil && v == nil {
  3504. ee.EncodeNil()
  3505. return
  3506. }
  3507. ee.EncodeMapStart(len(v))
  3508. if e.be {
  3509. for k2, v2 := range v {
  3510. ee.EncodeUint(uint64(k2))
  3511. e.encode(v2)
  3512. }
  3513. } else {
  3514. j := 0
  3515. for k2, v2 := range v {
  3516. if j > 0 {
  3517. ee.EncodeMapEntrySeparator()
  3518. }
  3519. ee.EncodeUint(uint64(k2))
  3520. ee.EncodeMapKVSeparator()
  3521. e.encode(v2)
  3522. j++
  3523. }
  3524. ee.EncodeMapEnd()
  3525. }
  3526. }
  3527. func (f encFnInfo) fastpathEncMapUintStringR(rv reflect.Value) {
  3528. fastpathTV.EncMapUintStringV(rv.Interface().(map[uint]string), fastpathCheckNilFalse, f.e)
  3529. }
  3530. func (_ fastpathT) EncMapUintStringV(v map[uint]string, checkNil bool, e *Encoder) {
  3531. ee := e.e
  3532. if checkNil && v == nil {
  3533. ee.EncodeNil()
  3534. return
  3535. }
  3536. ee.EncodeMapStart(len(v))
  3537. if e.be {
  3538. for k2, v2 := range v {
  3539. ee.EncodeUint(uint64(k2))
  3540. ee.EncodeString(c_UTF8, v2)
  3541. }
  3542. } else {
  3543. j := 0
  3544. for k2, v2 := range v {
  3545. if j > 0 {
  3546. ee.EncodeMapEntrySeparator()
  3547. }
  3548. ee.EncodeUint(uint64(k2))
  3549. ee.EncodeMapKVSeparator()
  3550. ee.EncodeString(c_UTF8, v2)
  3551. j++
  3552. }
  3553. ee.EncodeMapEnd()
  3554. }
  3555. }
  3556. func (f encFnInfo) fastpathEncMapUintUintR(rv reflect.Value) {
  3557. fastpathTV.EncMapUintUintV(rv.Interface().(map[uint]uint), fastpathCheckNilFalse, f.e)
  3558. }
  3559. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, checkNil bool, e *Encoder) {
  3560. ee := e.e
  3561. if checkNil && v == nil {
  3562. ee.EncodeNil()
  3563. return
  3564. }
  3565. ee.EncodeMapStart(len(v))
  3566. if e.be {
  3567. for k2, v2 := range v {
  3568. ee.EncodeUint(uint64(k2))
  3569. ee.EncodeUint(uint64(v2))
  3570. }
  3571. } else {
  3572. j := 0
  3573. for k2, v2 := range v {
  3574. if j > 0 {
  3575. ee.EncodeMapEntrySeparator()
  3576. }
  3577. ee.EncodeUint(uint64(k2))
  3578. ee.EncodeMapKVSeparator()
  3579. ee.EncodeUint(uint64(v2))
  3580. j++
  3581. }
  3582. ee.EncodeMapEnd()
  3583. }
  3584. }
  3585. func (f encFnInfo) fastpathEncMapUintUint8R(rv reflect.Value) {
  3586. fastpathTV.EncMapUintUint8V(rv.Interface().(map[uint]uint8), fastpathCheckNilFalse, f.e)
  3587. }
  3588. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, checkNil bool, e *Encoder) {
  3589. ee := e.e
  3590. if checkNil && v == nil {
  3591. ee.EncodeNil()
  3592. return
  3593. }
  3594. ee.EncodeMapStart(len(v))
  3595. if e.be {
  3596. for k2, v2 := range v {
  3597. ee.EncodeUint(uint64(k2))
  3598. ee.EncodeUint(uint64(v2))
  3599. }
  3600. } else {
  3601. j := 0
  3602. for k2, v2 := range v {
  3603. if j > 0 {
  3604. ee.EncodeMapEntrySeparator()
  3605. }
  3606. ee.EncodeUint(uint64(k2))
  3607. ee.EncodeMapKVSeparator()
  3608. ee.EncodeUint(uint64(v2))
  3609. j++
  3610. }
  3611. ee.EncodeMapEnd()
  3612. }
  3613. }
  3614. func (f encFnInfo) fastpathEncMapUintUint16R(rv reflect.Value) {
  3615. fastpathTV.EncMapUintUint16V(rv.Interface().(map[uint]uint16), fastpathCheckNilFalse, f.e)
  3616. }
  3617. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, checkNil bool, e *Encoder) {
  3618. ee := e.e
  3619. if checkNil && v == nil {
  3620. ee.EncodeNil()
  3621. return
  3622. }
  3623. ee.EncodeMapStart(len(v))
  3624. if e.be {
  3625. for k2, v2 := range v {
  3626. ee.EncodeUint(uint64(k2))
  3627. ee.EncodeUint(uint64(v2))
  3628. }
  3629. } else {
  3630. j := 0
  3631. for k2, v2 := range v {
  3632. if j > 0 {
  3633. ee.EncodeMapEntrySeparator()
  3634. }
  3635. ee.EncodeUint(uint64(k2))
  3636. ee.EncodeMapKVSeparator()
  3637. ee.EncodeUint(uint64(v2))
  3638. j++
  3639. }
  3640. ee.EncodeMapEnd()
  3641. }
  3642. }
  3643. func (f encFnInfo) fastpathEncMapUintUint32R(rv reflect.Value) {
  3644. fastpathTV.EncMapUintUint32V(rv.Interface().(map[uint]uint32), fastpathCheckNilFalse, f.e)
  3645. }
  3646. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, checkNil bool, e *Encoder) {
  3647. ee := e.e
  3648. if checkNil && v == nil {
  3649. ee.EncodeNil()
  3650. return
  3651. }
  3652. ee.EncodeMapStart(len(v))
  3653. if e.be {
  3654. for k2, v2 := range v {
  3655. ee.EncodeUint(uint64(k2))
  3656. ee.EncodeUint(uint64(v2))
  3657. }
  3658. } else {
  3659. j := 0
  3660. for k2, v2 := range v {
  3661. if j > 0 {
  3662. ee.EncodeMapEntrySeparator()
  3663. }
  3664. ee.EncodeUint(uint64(k2))
  3665. ee.EncodeMapKVSeparator()
  3666. ee.EncodeUint(uint64(v2))
  3667. j++
  3668. }
  3669. ee.EncodeMapEnd()
  3670. }
  3671. }
  3672. func (f encFnInfo) fastpathEncMapUintUint64R(rv reflect.Value) {
  3673. fastpathTV.EncMapUintUint64V(rv.Interface().(map[uint]uint64), fastpathCheckNilFalse, f.e)
  3674. }
  3675. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, checkNil bool, e *Encoder) {
  3676. ee := e.e
  3677. if checkNil && v == nil {
  3678. ee.EncodeNil()
  3679. return
  3680. }
  3681. ee.EncodeMapStart(len(v))
  3682. if e.be {
  3683. for k2, v2 := range v {
  3684. ee.EncodeUint(uint64(k2))
  3685. ee.EncodeUint(uint64(v2))
  3686. }
  3687. } else {
  3688. j := 0
  3689. for k2, v2 := range v {
  3690. if j > 0 {
  3691. ee.EncodeMapEntrySeparator()
  3692. }
  3693. ee.EncodeUint(uint64(k2))
  3694. ee.EncodeMapKVSeparator()
  3695. ee.EncodeUint(uint64(v2))
  3696. j++
  3697. }
  3698. ee.EncodeMapEnd()
  3699. }
  3700. }
  3701. func (f encFnInfo) fastpathEncMapUintIntR(rv reflect.Value) {
  3702. fastpathTV.EncMapUintIntV(rv.Interface().(map[uint]int), fastpathCheckNilFalse, f.e)
  3703. }
  3704. func (_ fastpathT) EncMapUintIntV(v map[uint]int, checkNil bool, e *Encoder) {
  3705. ee := e.e
  3706. if checkNil && v == nil {
  3707. ee.EncodeNil()
  3708. return
  3709. }
  3710. ee.EncodeMapStart(len(v))
  3711. if e.be {
  3712. for k2, v2 := range v {
  3713. ee.EncodeUint(uint64(k2))
  3714. ee.EncodeInt(int64(v2))
  3715. }
  3716. } else {
  3717. j := 0
  3718. for k2, v2 := range v {
  3719. if j > 0 {
  3720. ee.EncodeMapEntrySeparator()
  3721. }
  3722. ee.EncodeUint(uint64(k2))
  3723. ee.EncodeMapKVSeparator()
  3724. ee.EncodeInt(int64(v2))
  3725. j++
  3726. }
  3727. ee.EncodeMapEnd()
  3728. }
  3729. }
  3730. func (f encFnInfo) fastpathEncMapUintInt8R(rv reflect.Value) {
  3731. fastpathTV.EncMapUintInt8V(rv.Interface().(map[uint]int8), fastpathCheckNilFalse, f.e)
  3732. }
  3733. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, checkNil bool, e *Encoder) {
  3734. ee := e.e
  3735. if checkNil && v == nil {
  3736. ee.EncodeNil()
  3737. return
  3738. }
  3739. ee.EncodeMapStart(len(v))
  3740. if e.be {
  3741. for k2, v2 := range v {
  3742. ee.EncodeUint(uint64(k2))
  3743. ee.EncodeInt(int64(v2))
  3744. }
  3745. } else {
  3746. j := 0
  3747. for k2, v2 := range v {
  3748. if j > 0 {
  3749. ee.EncodeMapEntrySeparator()
  3750. }
  3751. ee.EncodeUint(uint64(k2))
  3752. ee.EncodeMapKVSeparator()
  3753. ee.EncodeInt(int64(v2))
  3754. j++
  3755. }
  3756. ee.EncodeMapEnd()
  3757. }
  3758. }
  3759. func (f encFnInfo) fastpathEncMapUintInt16R(rv reflect.Value) {
  3760. fastpathTV.EncMapUintInt16V(rv.Interface().(map[uint]int16), fastpathCheckNilFalse, f.e)
  3761. }
  3762. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, checkNil bool, e *Encoder) {
  3763. ee := e.e
  3764. if checkNil && v == nil {
  3765. ee.EncodeNil()
  3766. return
  3767. }
  3768. ee.EncodeMapStart(len(v))
  3769. if e.be {
  3770. for k2, v2 := range v {
  3771. ee.EncodeUint(uint64(k2))
  3772. ee.EncodeInt(int64(v2))
  3773. }
  3774. } else {
  3775. j := 0
  3776. for k2, v2 := range v {
  3777. if j > 0 {
  3778. ee.EncodeMapEntrySeparator()
  3779. }
  3780. ee.EncodeUint(uint64(k2))
  3781. ee.EncodeMapKVSeparator()
  3782. ee.EncodeInt(int64(v2))
  3783. j++
  3784. }
  3785. ee.EncodeMapEnd()
  3786. }
  3787. }
  3788. func (f encFnInfo) fastpathEncMapUintInt32R(rv reflect.Value) {
  3789. fastpathTV.EncMapUintInt32V(rv.Interface().(map[uint]int32), fastpathCheckNilFalse, f.e)
  3790. }
  3791. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, checkNil bool, e *Encoder) {
  3792. ee := e.e
  3793. if checkNil && v == nil {
  3794. ee.EncodeNil()
  3795. return
  3796. }
  3797. ee.EncodeMapStart(len(v))
  3798. if e.be {
  3799. for k2, v2 := range v {
  3800. ee.EncodeUint(uint64(k2))
  3801. ee.EncodeInt(int64(v2))
  3802. }
  3803. } else {
  3804. j := 0
  3805. for k2, v2 := range v {
  3806. if j > 0 {
  3807. ee.EncodeMapEntrySeparator()
  3808. }
  3809. ee.EncodeUint(uint64(k2))
  3810. ee.EncodeMapKVSeparator()
  3811. ee.EncodeInt(int64(v2))
  3812. j++
  3813. }
  3814. ee.EncodeMapEnd()
  3815. }
  3816. }
  3817. func (f encFnInfo) fastpathEncMapUintInt64R(rv reflect.Value) {
  3818. fastpathTV.EncMapUintInt64V(rv.Interface().(map[uint]int64), fastpathCheckNilFalse, f.e)
  3819. }
  3820. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, checkNil bool, e *Encoder) {
  3821. ee := e.e
  3822. if checkNil && v == nil {
  3823. ee.EncodeNil()
  3824. return
  3825. }
  3826. ee.EncodeMapStart(len(v))
  3827. if e.be {
  3828. for k2, v2 := range v {
  3829. ee.EncodeUint(uint64(k2))
  3830. ee.EncodeInt(int64(v2))
  3831. }
  3832. } else {
  3833. j := 0
  3834. for k2, v2 := range v {
  3835. if j > 0 {
  3836. ee.EncodeMapEntrySeparator()
  3837. }
  3838. ee.EncodeUint(uint64(k2))
  3839. ee.EncodeMapKVSeparator()
  3840. ee.EncodeInt(int64(v2))
  3841. j++
  3842. }
  3843. ee.EncodeMapEnd()
  3844. }
  3845. }
  3846. func (f encFnInfo) fastpathEncMapUintFloat32R(rv reflect.Value) {
  3847. fastpathTV.EncMapUintFloat32V(rv.Interface().(map[uint]float32), fastpathCheckNilFalse, f.e)
  3848. }
  3849. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, checkNil bool, e *Encoder) {
  3850. ee := e.e
  3851. if checkNil && v == nil {
  3852. ee.EncodeNil()
  3853. return
  3854. }
  3855. ee.EncodeMapStart(len(v))
  3856. if e.be {
  3857. for k2, v2 := range v {
  3858. ee.EncodeUint(uint64(k2))
  3859. ee.EncodeFloat32(v2)
  3860. }
  3861. } else {
  3862. j := 0
  3863. for k2, v2 := range v {
  3864. if j > 0 {
  3865. ee.EncodeMapEntrySeparator()
  3866. }
  3867. ee.EncodeUint(uint64(k2))
  3868. ee.EncodeMapKVSeparator()
  3869. ee.EncodeFloat32(v2)
  3870. j++
  3871. }
  3872. ee.EncodeMapEnd()
  3873. }
  3874. }
  3875. func (f encFnInfo) fastpathEncMapUintFloat64R(rv reflect.Value) {
  3876. fastpathTV.EncMapUintFloat64V(rv.Interface().(map[uint]float64), fastpathCheckNilFalse, f.e)
  3877. }
  3878. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, checkNil bool, e *Encoder) {
  3879. ee := e.e
  3880. if checkNil && v == nil {
  3881. ee.EncodeNil()
  3882. return
  3883. }
  3884. ee.EncodeMapStart(len(v))
  3885. if e.be {
  3886. for k2, v2 := range v {
  3887. ee.EncodeUint(uint64(k2))
  3888. ee.EncodeFloat64(v2)
  3889. }
  3890. } else {
  3891. j := 0
  3892. for k2, v2 := range v {
  3893. if j > 0 {
  3894. ee.EncodeMapEntrySeparator()
  3895. }
  3896. ee.EncodeUint(uint64(k2))
  3897. ee.EncodeMapKVSeparator()
  3898. ee.EncodeFloat64(v2)
  3899. j++
  3900. }
  3901. ee.EncodeMapEnd()
  3902. }
  3903. }
  3904. func (f encFnInfo) fastpathEncMapUintBoolR(rv reflect.Value) {
  3905. fastpathTV.EncMapUintBoolV(rv.Interface().(map[uint]bool), fastpathCheckNilFalse, f.e)
  3906. }
  3907. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, checkNil bool, e *Encoder) {
  3908. ee := e.e
  3909. if checkNil && v == nil {
  3910. ee.EncodeNil()
  3911. return
  3912. }
  3913. ee.EncodeMapStart(len(v))
  3914. if e.be {
  3915. for k2, v2 := range v {
  3916. ee.EncodeUint(uint64(k2))
  3917. ee.EncodeBool(v2)
  3918. }
  3919. } else {
  3920. j := 0
  3921. for k2, v2 := range v {
  3922. if j > 0 {
  3923. ee.EncodeMapEntrySeparator()
  3924. }
  3925. ee.EncodeUint(uint64(k2))
  3926. ee.EncodeMapKVSeparator()
  3927. ee.EncodeBool(v2)
  3928. j++
  3929. }
  3930. ee.EncodeMapEnd()
  3931. }
  3932. }
  3933. func (f encFnInfo) fastpathEncMapUint8IntfR(rv reflect.Value) {
  3934. fastpathTV.EncMapUint8IntfV(rv.Interface().(map[uint8]interface{}), fastpathCheckNilFalse, f.e)
  3935. }
  3936. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, checkNil bool, e *Encoder) {
  3937. ee := e.e
  3938. if checkNil && v == nil {
  3939. ee.EncodeNil()
  3940. return
  3941. }
  3942. ee.EncodeMapStart(len(v))
  3943. if e.be {
  3944. for k2, v2 := range v {
  3945. ee.EncodeUint(uint64(k2))
  3946. e.encode(v2)
  3947. }
  3948. } else {
  3949. j := 0
  3950. for k2, v2 := range v {
  3951. if j > 0 {
  3952. ee.EncodeMapEntrySeparator()
  3953. }
  3954. ee.EncodeUint(uint64(k2))
  3955. ee.EncodeMapKVSeparator()
  3956. e.encode(v2)
  3957. j++
  3958. }
  3959. ee.EncodeMapEnd()
  3960. }
  3961. }
  3962. func (f encFnInfo) fastpathEncMapUint8StringR(rv reflect.Value) {
  3963. fastpathTV.EncMapUint8StringV(rv.Interface().(map[uint8]string), fastpathCheckNilFalse, f.e)
  3964. }
  3965. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, checkNil bool, e *Encoder) {
  3966. ee := e.e
  3967. if checkNil && v == nil {
  3968. ee.EncodeNil()
  3969. return
  3970. }
  3971. ee.EncodeMapStart(len(v))
  3972. if e.be {
  3973. for k2, v2 := range v {
  3974. ee.EncodeUint(uint64(k2))
  3975. ee.EncodeString(c_UTF8, v2)
  3976. }
  3977. } else {
  3978. j := 0
  3979. for k2, v2 := range v {
  3980. if j > 0 {
  3981. ee.EncodeMapEntrySeparator()
  3982. }
  3983. ee.EncodeUint(uint64(k2))
  3984. ee.EncodeMapKVSeparator()
  3985. ee.EncodeString(c_UTF8, v2)
  3986. j++
  3987. }
  3988. ee.EncodeMapEnd()
  3989. }
  3990. }
  3991. func (f encFnInfo) fastpathEncMapUint8UintR(rv reflect.Value) {
  3992. fastpathTV.EncMapUint8UintV(rv.Interface().(map[uint8]uint), fastpathCheckNilFalse, f.e)
  3993. }
  3994. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, checkNil bool, e *Encoder) {
  3995. ee := e.e
  3996. if checkNil && v == nil {
  3997. ee.EncodeNil()
  3998. return
  3999. }
  4000. ee.EncodeMapStart(len(v))
  4001. if e.be {
  4002. for k2, v2 := range v {
  4003. ee.EncodeUint(uint64(k2))
  4004. ee.EncodeUint(uint64(v2))
  4005. }
  4006. } else {
  4007. j := 0
  4008. for k2, v2 := range v {
  4009. if j > 0 {
  4010. ee.EncodeMapEntrySeparator()
  4011. }
  4012. ee.EncodeUint(uint64(k2))
  4013. ee.EncodeMapKVSeparator()
  4014. ee.EncodeUint(uint64(v2))
  4015. j++
  4016. }
  4017. ee.EncodeMapEnd()
  4018. }
  4019. }
  4020. func (f encFnInfo) fastpathEncMapUint8Uint8R(rv reflect.Value) {
  4021. fastpathTV.EncMapUint8Uint8V(rv.Interface().(map[uint8]uint8), fastpathCheckNilFalse, f.e)
  4022. }
  4023. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, checkNil bool, e *Encoder) {
  4024. ee := e.e
  4025. if checkNil && v == nil {
  4026. ee.EncodeNil()
  4027. return
  4028. }
  4029. ee.EncodeMapStart(len(v))
  4030. if e.be {
  4031. for k2, v2 := range v {
  4032. ee.EncodeUint(uint64(k2))
  4033. ee.EncodeUint(uint64(v2))
  4034. }
  4035. } else {
  4036. j := 0
  4037. for k2, v2 := range v {
  4038. if j > 0 {
  4039. ee.EncodeMapEntrySeparator()
  4040. }
  4041. ee.EncodeUint(uint64(k2))
  4042. ee.EncodeMapKVSeparator()
  4043. ee.EncodeUint(uint64(v2))
  4044. j++
  4045. }
  4046. ee.EncodeMapEnd()
  4047. }
  4048. }
  4049. func (f encFnInfo) fastpathEncMapUint8Uint16R(rv reflect.Value) {
  4050. fastpathTV.EncMapUint8Uint16V(rv.Interface().(map[uint8]uint16), fastpathCheckNilFalse, f.e)
  4051. }
  4052. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, checkNil bool, e *Encoder) {
  4053. ee := e.e
  4054. if checkNil && v == nil {
  4055. ee.EncodeNil()
  4056. return
  4057. }
  4058. ee.EncodeMapStart(len(v))
  4059. if e.be {
  4060. for k2, v2 := range v {
  4061. ee.EncodeUint(uint64(k2))
  4062. ee.EncodeUint(uint64(v2))
  4063. }
  4064. } else {
  4065. j := 0
  4066. for k2, v2 := range v {
  4067. if j > 0 {
  4068. ee.EncodeMapEntrySeparator()
  4069. }
  4070. ee.EncodeUint(uint64(k2))
  4071. ee.EncodeMapKVSeparator()
  4072. ee.EncodeUint(uint64(v2))
  4073. j++
  4074. }
  4075. ee.EncodeMapEnd()
  4076. }
  4077. }
  4078. func (f encFnInfo) fastpathEncMapUint8Uint32R(rv reflect.Value) {
  4079. fastpathTV.EncMapUint8Uint32V(rv.Interface().(map[uint8]uint32), fastpathCheckNilFalse, f.e)
  4080. }
  4081. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, checkNil bool, e *Encoder) {
  4082. ee := e.e
  4083. if checkNil && v == nil {
  4084. ee.EncodeNil()
  4085. return
  4086. }
  4087. ee.EncodeMapStart(len(v))
  4088. if e.be {
  4089. for k2, v2 := range v {
  4090. ee.EncodeUint(uint64(k2))
  4091. ee.EncodeUint(uint64(v2))
  4092. }
  4093. } else {
  4094. j := 0
  4095. for k2, v2 := range v {
  4096. if j > 0 {
  4097. ee.EncodeMapEntrySeparator()
  4098. }
  4099. ee.EncodeUint(uint64(k2))
  4100. ee.EncodeMapKVSeparator()
  4101. ee.EncodeUint(uint64(v2))
  4102. j++
  4103. }
  4104. ee.EncodeMapEnd()
  4105. }
  4106. }
  4107. func (f encFnInfo) fastpathEncMapUint8Uint64R(rv reflect.Value) {
  4108. fastpathTV.EncMapUint8Uint64V(rv.Interface().(map[uint8]uint64), fastpathCheckNilFalse, f.e)
  4109. }
  4110. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, checkNil bool, e *Encoder) {
  4111. ee := e.e
  4112. if checkNil && v == nil {
  4113. ee.EncodeNil()
  4114. return
  4115. }
  4116. ee.EncodeMapStart(len(v))
  4117. if e.be {
  4118. for k2, v2 := range v {
  4119. ee.EncodeUint(uint64(k2))
  4120. ee.EncodeUint(uint64(v2))
  4121. }
  4122. } else {
  4123. j := 0
  4124. for k2, v2 := range v {
  4125. if j > 0 {
  4126. ee.EncodeMapEntrySeparator()
  4127. }
  4128. ee.EncodeUint(uint64(k2))
  4129. ee.EncodeMapKVSeparator()
  4130. ee.EncodeUint(uint64(v2))
  4131. j++
  4132. }
  4133. ee.EncodeMapEnd()
  4134. }
  4135. }
  4136. func (f encFnInfo) fastpathEncMapUint8IntR(rv reflect.Value) {
  4137. fastpathTV.EncMapUint8IntV(rv.Interface().(map[uint8]int), fastpathCheckNilFalse, f.e)
  4138. }
  4139. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, checkNil bool, e *Encoder) {
  4140. ee := e.e
  4141. if checkNil && v == nil {
  4142. ee.EncodeNil()
  4143. return
  4144. }
  4145. ee.EncodeMapStart(len(v))
  4146. if e.be {
  4147. for k2, v2 := range v {
  4148. ee.EncodeUint(uint64(k2))
  4149. ee.EncodeInt(int64(v2))
  4150. }
  4151. } else {
  4152. j := 0
  4153. for k2, v2 := range v {
  4154. if j > 0 {
  4155. ee.EncodeMapEntrySeparator()
  4156. }
  4157. ee.EncodeUint(uint64(k2))
  4158. ee.EncodeMapKVSeparator()
  4159. ee.EncodeInt(int64(v2))
  4160. j++
  4161. }
  4162. ee.EncodeMapEnd()
  4163. }
  4164. }
  4165. func (f encFnInfo) fastpathEncMapUint8Int8R(rv reflect.Value) {
  4166. fastpathTV.EncMapUint8Int8V(rv.Interface().(map[uint8]int8), fastpathCheckNilFalse, f.e)
  4167. }
  4168. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, checkNil bool, e *Encoder) {
  4169. ee := e.e
  4170. if checkNil && v == nil {
  4171. ee.EncodeNil()
  4172. return
  4173. }
  4174. ee.EncodeMapStart(len(v))
  4175. if e.be {
  4176. for k2, v2 := range v {
  4177. ee.EncodeUint(uint64(k2))
  4178. ee.EncodeInt(int64(v2))
  4179. }
  4180. } else {
  4181. j := 0
  4182. for k2, v2 := range v {
  4183. if j > 0 {
  4184. ee.EncodeMapEntrySeparator()
  4185. }
  4186. ee.EncodeUint(uint64(k2))
  4187. ee.EncodeMapKVSeparator()
  4188. ee.EncodeInt(int64(v2))
  4189. j++
  4190. }
  4191. ee.EncodeMapEnd()
  4192. }
  4193. }
  4194. func (f encFnInfo) fastpathEncMapUint8Int16R(rv reflect.Value) {
  4195. fastpathTV.EncMapUint8Int16V(rv.Interface().(map[uint8]int16), fastpathCheckNilFalse, f.e)
  4196. }
  4197. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, checkNil bool, e *Encoder) {
  4198. ee := e.e
  4199. if checkNil && v == nil {
  4200. ee.EncodeNil()
  4201. return
  4202. }
  4203. ee.EncodeMapStart(len(v))
  4204. if e.be {
  4205. for k2, v2 := range v {
  4206. ee.EncodeUint(uint64(k2))
  4207. ee.EncodeInt(int64(v2))
  4208. }
  4209. } else {
  4210. j := 0
  4211. for k2, v2 := range v {
  4212. if j > 0 {
  4213. ee.EncodeMapEntrySeparator()
  4214. }
  4215. ee.EncodeUint(uint64(k2))
  4216. ee.EncodeMapKVSeparator()
  4217. ee.EncodeInt(int64(v2))
  4218. j++
  4219. }
  4220. ee.EncodeMapEnd()
  4221. }
  4222. }
  4223. func (f encFnInfo) fastpathEncMapUint8Int32R(rv reflect.Value) {
  4224. fastpathTV.EncMapUint8Int32V(rv.Interface().(map[uint8]int32), fastpathCheckNilFalse, f.e)
  4225. }
  4226. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, checkNil bool, e *Encoder) {
  4227. ee := e.e
  4228. if checkNil && v == nil {
  4229. ee.EncodeNil()
  4230. return
  4231. }
  4232. ee.EncodeMapStart(len(v))
  4233. if e.be {
  4234. for k2, v2 := range v {
  4235. ee.EncodeUint(uint64(k2))
  4236. ee.EncodeInt(int64(v2))
  4237. }
  4238. } else {
  4239. j := 0
  4240. for k2, v2 := range v {
  4241. if j > 0 {
  4242. ee.EncodeMapEntrySeparator()
  4243. }
  4244. ee.EncodeUint(uint64(k2))
  4245. ee.EncodeMapKVSeparator()
  4246. ee.EncodeInt(int64(v2))
  4247. j++
  4248. }
  4249. ee.EncodeMapEnd()
  4250. }
  4251. }
  4252. func (f encFnInfo) fastpathEncMapUint8Int64R(rv reflect.Value) {
  4253. fastpathTV.EncMapUint8Int64V(rv.Interface().(map[uint8]int64), fastpathCheckNilFalse, f.e)
  4254. }
  4255. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, checkNil bool, e *Encoder) {
  4256. ee := e.e
  4257. if checkNil && v == nil {
  4258. ee.EncodeNil()
  4259. return
  4260. }
  4261. ee.EncodeMapStart(len(v))
  4262. if e.be {
  4263. for k2, v2 := range v {
  4264. ee.EncodeUint(uint64(k2))
  4265. ee.EncodeInt(int64(v2))
  4266. }
  4267. } else {
  4268. j := 0
  4269. for k2, v2 := range v {
  4270. if j > 0 {
  4271. ee.EncodeMapEntrySeparator()
  4272. }
  4273. ee.EncodeUint(uint64(k2))
  4274. ee.EncodeMapKVSeparator()
  4275. ee.EncodeInt(int64(v2))
  4276. j++
  4277. }
  4278. ee.EncodeMapEnd()
  4279. }
  4280. }
  4281. func (f encFnInfo) fastpathEncMapUint8Float32R(rv reflect.Value) {
  4282. fastpathTV.EncMapUint8Float32V(rv.Interface().(map[uint8]float32), fastpathCheckNilFalse, f.e)
  4283. }
  4284. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, checkNil bool, e *Encoder) {
  4285. ee := e.e
  4286. if checkNil && v == nil {
  4287. ee.EncodeNil()
  4288. return
  4289. }
  4290. ee.EncodeMapStart(len(v))
  4291. if e.be {
  4292. for k2, v2 := range v {
  4293. ee.EncodeUint(uint64(k2))
  4294. ee.EncodeFloat32(v2)
  4295. }
  4296. } else {
  4297. j := 0
  4298. for k2, v2 := range v {
  4299. if j > 0 {
  4300. ee.EncodeMapEntrySeparator()
  4301. }
  4302. ee.EncodeUint(uint64(k2))
  4303. ee.EncodeMapKVSeparator()
  4304. ee.EncodeFloat32(v2)
  4305. j++
  4306. }
  4307. ee.EncodeMapEnd()
  4308. }
  4309. }
  4310. func (f encFnInfo) fastpathEncMapUint8Float64R(rv reflect.Value) {
  4311. fastpathTV.EncMapUint8Float64V(rv.Interface().(map[uint8]float64), fastpathCheckNilFalse, f.e)
  4312. }
  4313. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, checkNil bool, e *Encoder) {
  4314. ee := e.e
  4315. if checkNil && v == nil {
  4316. ee.EncodeNil()
  4317. return
  4318. }
  4319. ee.EncodeMapStart(len(v))
  4320. if e.be {
  4321. for k2, v2 := range v {
  4322. ee.EncodeUint(uint64(k2))
  4323. ee.EncodeFloat64(v2)
  4324. }
  4325. } else {
  4326. j := 0
  4327. for k2, v2 := range v {
  4328. if j > 0 {
  4329. ee.EncodeMapEntrySeparator()
  4330. }
  4331. ee.EncodeUint(uint64(k2))
  4332. ee.EncodeMapKVSeparator()
  4333. ee.EncodeFloat64(v2)
  4334. j++
  4335. }
  4336. ee.EncodeMapEnd()
  4337. }
  4338. }
  4339. func (f encFnInfo) fastpathEncMapUint8BoolR(rv reflect.Value) {
  4340. fastpathTV.EncMapUint8BoolV(rv.Interface().(map[uint8]bool), fastpathCheckNilFalse, f.e)
  4341. }
  4342. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, checkNil bool, e *Encoder) {
  4343. ee := e.e
  4344. if checkNil && v == nil {
  4345. ee.EncodeNil()
  4346. return
  4347. }
  4348. ee.EncodeMapStart(len(v))
  4349. if e.be {
  4350. for k2, v2 := range v {
  4351. ee.EncodeUint(uint64(k2))
  4352. ee.EncodeBool(v2)
  4353. }
  4354. } else {
  4355. j := 0
  4356. for k2, v2 := range v {
  4357. if j > 0 {
  4358. ee.EncodeMapEntrySeparator()
  4359. }
  4360. ee.EncodeUint(uint64(k2))
  4361. ee.EncodeMapKVSeparator()
  4362. ee.EncodeBool(v2)
  4363. j++
  4364. }
  4365. ee.EncodeMapEnd()
  4366. }
  4367. }
  4368. func (f encFnInfo) fastpathEncMapUint16IntfR(rv reflect.Value) {
  4369. fastpathTV.EncMapUint16IntfV(rv.Interface().(map[uint16]interface{}), fastpathCheckNilFalse, f.e)
  4370. }
  4371. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, checkNil bool, e *Encoder) {
  4372. ee := e.e
  4373. if checkNil && v == nil {
  4374. ee.EncodeNil()
  4375. return
  4376. }
  4377. ee.EncodeMapStart(len(v))
  4378. if e.be {
  4379. for k2, v2 := range v {
  4380. ee.EncodeUint(uint64(k2))
  4381. e.encode(v2)
  4382. }
  4383. } else {
  4384. j := 0
  4385. for k2, v2 := range v {
  4386. if j > 0 {
  4387. ee.EncodeMapEntrySeparator()
  4388. }
  4389. ee.EncodeUint(uint64(k2))
  4390. ee.EncodeMapKVSeparator()
  4391. e.encode(v2)
  4392. j++
  4393. }
  4394. ee.EncodeMapEnd()
  4395. }
  4396. }
  4397. func (f encFnInfo) fastpathEncMapUint16StringR(rv reflect.Value) {
  4398. fastpathTV.EncMapUint16StringV(rv.Interface().(map[uint16]string), fastpathCheckNilFalse, f.e)
  4399. }
  4400. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, checkNil bool, e *Encoder) {
  4401. ee := e.e
  4402. if checkNil && v == nil {
  4403. ee.EncodeNil()
  4404. return
  4405. }
  4406. ee.EncodeMapStart(len(v))
  4407. if e.be {
  4408. for k2, v2 := range v {
  4409. ee.EncodeUint(uint64(k2))
  4410. ee.EncodeString(c_UTF8, v2)
  4411. }
  4412. } else {
  4413. j := 0
  4414. for k2, v2 := range v {
  4415. if j > 0 {
  4416. ee.EncodeMapEntrySeparator()
  4417. }
  4418. ee.EncodeUint(uint64(k2))
  4419. ee.EncodeMapKVSeparator()
  4420. ee.EncodeString(c_UTF8, v2)
  4421. j++
  4422. }
  4423. ee.EncodeMapEnd()
  4424. }
  4425. }
  4426. func (f encFnInfo) fastpathEncMapUint16UintR(rv reflect.Value) {
  4427. fastpathTV.EncMapUint16UintV(rv.Interface().(map[uint16]uint), fastpathCheckNilFalse, f.e)
  4428. }
  4429. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, checkNil bool, e *Encoder) {
  4430. ee := e.e
  4431. if checkNil && v == nil {
  4432. ee.EncodeNil()
  4433. return
  4434. }
  4435. ee.EncodeMapStart(len(v))
  4436. if e.be {
  4437. for k2, v2 := range v {
  4438. ee.EncodeUint(uint64(k2))
  4439. ee.EncodeUint(uint64(v2))
  4440. }
  4441. } else {
  4442. j := 0
  4443. for k2, v2 := range v {
  4444. if j > 0 {
  4445. ee.EncodeMapEntrySeparator()
  4446. }
  4447. ee.EncodeUint(uint64(k2))
  4448. ee.EncodeMapKVSeparator()
  4449. ee.EncodeUint(uint64(v2))
  4450. j++
  4451. }
  4452. ee.EncodeMapEnd()
  4453. }
  4454. }
  4455. func (f encFnInfo) fastpathEncMapUint16Uint8R(rv reflect.Value) {
  4456. fastpathTV.EncMapUint16Uint8V(rv.Interface().(map[uint16]uint8), fastpathCheckNilFalse, f.e)
  4457. }
  4458. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, checkNil bool, e *Encoder) {
  4459. ee := e.e
  4460. if checkNil && v == nil {
  4461. ee.EncodeNil()
  4462. return
  4463. }
  4464. ee.EncodeMapStart(len(v))
  4465. if e.be {
  4466. for k2, v2 := range v {
  4467. ee.EncodeUint(uint64(k2))
  4468. ee.EncodeUint(uint64(v2))
  4469. }
  4470. } else {
  4471. j := 0
  4472. for k2, v2 := range v {
  4473. if j > 0 {
  4474. ee.EncodeMapEntrySeparator()
  4475. }
  4476. ee.EncodeUint(uint64(k2))
  4477. ee.EncodeMapKVSeparator()
  4478. ee.EncodeUint(uint64(v2))
  4479. j++
  4480. }
  4481. ee.EncodeMapEnd()
  4482. }
  4483. }
  4484. func (f encFnInfo) fastpathEncMapUint16Uint16R(rv reflect.Value) {
  4485. fastpathTV.EncMapUint16Uint16V(rv.Interface().(map[uint16]uint16), fastpathCheckNilFalse, f.e)
  4486. }
  4487. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, checkNil bool, e *Encoder) {
  4488. ee := e.e
  4489. if checkNil && v == nil {
  4490. ee.EncodeNil()
  4491. return
  4492. }
  4493. ee.EncodeMapStart(len(v))
  4494. if e.be {
  4495. for k2, v2 := range v {
  4496. ee.EncodeUint(uint64(k2))
  4497. ee.EncodeUint(uint64(v2))
  4498. }
  4499. } else {
  4500. j := 0
  4501. for k2, v2 := range v {
  4502. if j > 0 {
  4503. ee.EncodeMapEntrySeparator()
  4504. }
  4505. ee.EncodeUint(uint64(k2))
  4506. ee.EncodeMapKVSeparator()
  4507. ee.EncodeUint(uint64(v2))
  4508. j++
  4509. }
  4510. ee.EncodeMapEnd()
  4511. }
  4512. }
  4513. func (f encFnInfo) fastpathEncMapUint16Uint32R(rv reflect.Value) {
  4514. fastpathTV.EncMapUint16Uint32V(rv.Interface().(map[uint16]uint32), fastpathCheckNilFalse, f.e)
  4515. }
  4516. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, checkNil bool, e *Encoder) {
  4517. ee := e.e
  4518. if checkNil && v == nil {
  4519. ee.EncodeNil()
  4520. return
  4521. }
  4522. ee.EncodeMapStart(len(v))
  4523. if e.be {
  4524. for k2, v2 := range v {
  4525. ee.EncodeUint(uint64(k2))
  4526. ee.EncodeUint(uint64(v2))
  4527. }
  4528. } else {
  4529. j := 0
  4530. for k2, v2 := range v {
  4531. if j > 0 {
  4532. ee.EncodeMapEntrySeparator()
  4533. }
  4534. ee.EncodeUint(uint64(k2))
  4535. ee.EncodeMapKVSeparator()
  4536. ee.EncodeUint(uint64(v2))
  4537. j++
  4538. }
  4539. ee.EncodeMapEnd()
  4540. }
  4541. }
  4542. func (f encFnInfo) fastpathEncMapUint16Uint64R(rv reflect.Value) {
  4543. fastpathTV.EncMapUint16Uint64V(rv.Interface().(map[uint16]uint64), fastpathCheckNilFalse, f.e)
  4544. }
  4545. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, checkNil bool, e *Encoder) {
  4546. ee := e.e
  4547. if checkNil && v == nil {
  4548. ee.EncodeNil()
  4549. return
  4550. }
  4551. ee.EncodeMapStart(len(v))
  4552. if e.be {
  4553. for k2, v2 := range v {
  4554. ee.EncodeUint(uint64(k2))
  4555. ee.EncodeUint(uint64(v2))
  4556. }
  4557. } else {
  4558. j := 0
  4559. for k2, v2 := range v {
  4560. if j > 0 {
  4561. ee.EncodeMapEntrySeparator()
  4562. }
  4563. ee.EncodeUint(uint64(k2))
  4564. ee.EncodeMapKVSeparator()
  4565. ee.EncodeUint(uint64(v2))
  4566. j++
  4567. }
  4568. ee.EncodeMapEnd()
  4569. }
  4570. }
  4571. func (f encFnInfo) fastpathEncMapUint16IntR(rv reflect.Value) {
  4572. fastpathTV.EncMapUint16IntV(rv.Interface().(map[uint16]int), fastpathCheckNilFalse, f.e)
  4573. }
  4574. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, checkNil bool, e *Encoder) {
  4575. ee := e.e
  4576. if checkNil && v == nil {
  4577. ee.EncodeNil()
  4578. return
  4579. }
  4580. ee.EncodeMapStart(len(v))
  4581. if e.be {
  4582. for k2, v2 := range v {
  4583. ee.EncodeUint(uint64(k2))
  4584. ee.EncodeInt(int64(v2))
  4585. }
  4586. } else {
  4587. j := 0
  4588. for k2, v2 := range v {
  4589. if j > 0 {
  4590. ee.EncodeMapEntrySeparator()
  4591. }
  4592. ee.EncodeUint(uint64(k2))
  4593. ee.EncodeMapKVSeparator()
  4594. ee.EncodeInt(int64(v2))
  4595. j++
  4596. }
  4597. ee.EncodeMapEnd()
  4598. }
  4599. }
  4600. func (f encFnInfo) fastpathEncMapUint16Int8R(rv reflect.Value) {
  4601. fastpathTV.EncMapUint16Int8V(rv.Interface().(map[uint16]int8), fastpathCheckNilFalse, f.e)
  4602. }
  4603. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, checkNil bool, e *Encoder) {
  4604. ee := e.e
  4605. if checkNil && v == nil {
  4606. ee.EncodeNil()
  4607. return
  4608. }
  4609. ee.EncodeMapStart(len(v))
  4610. if e.be {
  4611. for k2, v2 := range v {
  4612. ee.EncodeUint(uint64(k2))
  4613. ee.EncodeInt(int64(v2))
  4614. }
  4615. } else {
  4616. j := 0
  4617. for k2, v2 := range v {
  4618. if j > 0 {
  4619. ee.EncodeMapEntrySeparator()
  4620. }
  4621. ee.EncodeUint(uint64(k2))
  4622. ee.EncodeMapKVSeparator()
  4623. ee.EncodeInt(int64(v2))
  4624. j++
  4625. }
  4626. ee.EncodeMapEnd()
  4627. }
  4628. }
  4629. func (f encFnInfo) fastpathEncMapUint16Int16R(rv reflect.Value) {
  4630. fastpathTV.EncMapUint16Int16V(rv.Interface().(map[uint16]int16), fastpathCheckNilFalse, f.e)
  4631. }
  4632. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, checkNil bool, e *Encoder) {
  4633. ee := e.e
  4634. if checkNil && v == nil {
  4635. ee.EncodeNil()
  4636. return
  4637. }
  4638. ee.EncodeMapStart(len(v))
  4639. if e.be {
  4640. for k2, v2 := range v {
  4641. ee.EncodeUint(uint64(k2))
  4642. ee.EncodeInt(int64(v2))
  4643. }
  4644. } else {
  4645. j := 0
  4646. for k2, v2 := range v {
  4647. if j > 0 {
  4648. ee.EncodeMapEntrySeparator()
  4649. }
  4650. ee.EncodeUint(uint64(k2))
  4651. ee.EncodeMapKVSeparator()
  4652. ee.EncodeInt(int64(v2))
  4653. j++
  4654. }
  4655. ee.EncodeMapEnd()
  4656. }
  4657. }
  4658. func (f encFnInfo) fastpathEncMapUint16Int32R(rv reflect.Value) {
  4659. fastpathTV.EncMapUint16Int32V(rv.Interface().(map[uint16]int32), fastpathCheckNilFalse, f.e)
  4660. }
  4661. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, checkNil bool, e *Encoder) {
  4662. ee := e.e
  4663. if checkNil && v == nil {
  4664. ee.EncodeNil()
  4665. return
  4666. }
  4667. ee.EncodeMapStart(len(v))
  4668. if e.be {
  4669. for k2, v2 := range v {
  4670. ee.EncodeUint(uint64(k2))
  4671. ee.EncodeInt(int64(v2))
  4672. }
  4673. } else {
  4674. j := 0
  4675. for k2, v2 := range v {
  4676. if j > 0 {
  4677. ee.EncodeMapEntrySeparator()
  4678. }
  4679. ee.EncodeUint(uint64(k2))
  4680. ee.EncodeMapKVSeparator()
  4681. ee.EncodeInt(int64(v2))
  4682. j++
  4683. }
  4684. ee.EncodeMapEnd()
  4685. }
  4686. }
  4687. func (f encFnInfo) fastpathEncMapUint16Int64R(rv reflect.Value) {
  4688. fastpathTV.EncMapUint16Int64V(rv.Interface().(map[uint16]int64), fastpathCheckNilFalse, f.e)
  4689. }
  4690. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, checkNil bool, e *Encoder) {
  4691. ee := e.e
  4692. if checkNil && v == nil {
  4693. ee.EncodeNil()
  4694. return
  4695. }
  4696. ee.EncodeMapStart(len(v))
  4697. if e.be {
  4698. for k2, v2 := range v {
  4699. ee.EncodeUint(uint64(k2))
  4700. ee.EncodeInt(int64(v2))
  4701. }
  4702. } else {
  4703. j := 0
  4704. for k2, v2 := range v {
  4705. if j > 0 {
  4706. ee.EncodeMapEntrySeparator()
  4707. }
  4708. ee.EncodeUint(uint64(k2))
  4709. ee.EncodeMapKVSeparator()
  4710. ee.EncodeInt(int64(v2))
  4711. j++
  4712. }
  4713. ee.EncodeMapEnd()
  4714. }
  4715. }
  4716. func (f encFnInfo) fastpathEncMapUint16Float32R(rv reflect.Value) {
  4717. fastpathTV.EncMapUint16Float32V(rv.Interface().(map[uint16]float32), fastpathCheckNilFalse, f.e)
  4718. }
  4719. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, checkNil bool, e *Encoder) {
  4720. ee := e.e
  4721. if checkNil && v == nil {
  4722. ee.EncodeNil()
  4723. return
  4724. }
  4725. ee.EncodeMapStart(len(v))
  4726. if e.be {
  4727. for k2, v2 := range v {
  4728. ee.EncodeUint(uint64(k2))
  4729. ee.EncodeFloat32(v2)
  4730. }
  4731. } else {
  4732. j := 0
  4733. for k2, v2 := range v {
  4734. if j > 0 {
  4735. ee.EncodeMapEntrySeparator()
  4736. }
  4737. ee.EncodeUint(uint64(k2))
  4738. ee.EncodeMapKVSeparator()
  4739. ee.EncodeFloat32(v2)
  4740. j++
  4741. }
  4742. ee.EncodeMapEnd()
  4743. }
  4744. }
  4745. func (f encFnInfo) fastpathEncMapUint16Float64R(rv reflect.Value) {
  4746. fastpathTV.EncMapUint16Float64V(rv.Interface().(map[uint16]float64), fastpathCheckNilFalse, f.e)
  4747. }
  4748. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, checkNil bool, e *Encoder) {
  4749. ee := e.e
  4750. if checkNil && v == nil {
  4751. ee.EncodeNil()
  4752. return
  4753. }
  4754. ee.EncodeMapStart(len(v))
  4755. if e.be {
  4756. for k2, v2 := range v {
  4757. ee.EncodeUint(uint64(k2))
  4758. ee.EncodeFloat64(v2)
  4759. }
  4760. } else {
  4761. j := 0
  4762. for k2, v2 := range v {
  4763. if j > 0 {
  4764. ee.EncodeMapEntrySeparator()
  4765. }
  4766. ee.EncodeUint(uint64(k2))
  4767. ee.EncodeMapKVSeparator()
  4768. ee.EncodeFloat64(v2)
  4769. j++
  4770. }
  4771. ee.EncodeMapEnd()
  4772. }
  4773. }
  4774. func (f encFnInfo) fastpathEncMapUint16BoolR(rv reflect.Value) {
  4775. fastpathTV.EncMapUint16BoolV(rv.Interface().(map[uint16]bool), fastpathCheckNilFalse, f.e)
  4776. }
  4777. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, checkNil bool, e *Encoder) {
  4778. ee := e.e
  4779. if checkNil && v == nil {
  4780. ee.EncodeNil()
  4781. return
  4782. }
  4783. ee.EncodeMapStart(len(v))
  4784. if e.be {
  4785. for k2, v2 := range v {
  4786. ee.EncodeUint(uint64(k2))
  4787. ee.EncodeBool(v2)
  4788. }
  4789. } else {
  4790. j := 0
  4791. for k2, v2 := range v {
  4792. if j > 0 {
  4793. ee.EncodeMapEntrySeparator()
  4794. }
  4795. ee.EncodeUint(uint64(k2))
  4796. ee.EncodeMapKVSeparator()
  4797. ee.EncodeBool(v2)
  4798. j++
  4799. }
  4800. ee.EncodeMapEnd()
  4801. }
  4802. }
  4803. func (f encFnInfo) fastpathEncMapUint32IntfR(rv reflect.Value) {
  4804. fastpathTV.EncMapUint32IntfV(rv.Interface().(map[uint32]interface{}), fastpathCheckNilFalse, f.e)
  4805. }
  4806. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, checkNil bool, e *Encoder) {
  4807. ee := e.e
  4808. if checkNil && v == nil {
  4809. ee.EncodeNil()
  4810. return
  4811. }
  4812. ee.EncodeMapStart(len(v))
  4813. if e.be {
  4814. for k2, v2 := range v {
  4815. ee.EncodeUint(uint64(k2))
  4816. e.encode(v2)
  4817. }
  4818. } else {
  4819. j := 0
  4820. for k2, v2 := range v {
  4821. if j > 0 {
  4822. ee.EncodeMapEntrySeparator()
  4823. }
  4824. ee.EncodeUint(uint64(k2))
  4825. ee.EncodeMapKVSeparator()
  4826. e.encode(v2)
  4827. j++
  4828. }
  4829. ee.EncodeMapEnd()
  4830. }
  4831. }
  4832. func (f encFnInfo) fastpathEncMapUint32StringR(rv reflect.Value) {
  4833. fastpathTV.EncMapUint32StringV(rv.Interface().(map[uint32]string), fastpathCheckNilFalse, f.e)
  4834. }
  4835. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, checkNil bool, e *Encoder) {
  4836. ee := e.e
  4837. if checkNil && v == nil {
  4838. ee.EncodeNil()
  4839. return
  4840. }
  4841. ee.EncodeMapStart(len(v))
  4842. if e.be {
  4843. for k2, v2 := range v {
  4844. ee.EncodeUint(uint64(k2))
  4845. ee.EncodeString(c_UTF8, v2)
  4846. }
  4847. } else {
  4848. j := 0
  4849. for k2, v2 := range v {
  4850. if j > 0 {
  4851. ee.EncodeMapEntrySeparator()
  4852. }
  4853. ee.EncodeUint(uint64(k2))
  4854. ee.EncodeMapKVSeparator()
  4855. ee.EncodeString(c_UTF8, v2)
  4856. j++
  4857. }
  4858. ee.EncodeMapEnd()
  4859. }
  4860. }
  4861. func (f encFnInfo) fastpathEncMapUint32UintR(rv reflect.Value) {
  4862. fastpathTV.EncMapUint32UintV(rv.Interface().(map[uint32]uint), fastpathCheckNilFalse, f.e)
  4863. }
  4864. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, checkNil bool, e *Encoder) {
  4865. ee := e.e
  4866. if checkNil && v == nil {
  4867. ee.EncodeNil()
  4868. return
  4869. }
  4870. ee.EncodeMapStart(len(v))
  4871. if e.be {
  4872. for k2, v2 := range v {
  4873. ee.EncodeUint(uint64(k2))
  4874. ee.EncodeUint(uint64(v2))
  4875. }
  4876. } else {
  4877. j := 0
  4878. for k2, v2 := range v {
  4879. if j > 0 {
  4880. ee.EncodeMapEntrySeparator()
  4881. }
  4882. ee.EncodeUint(uint64(k2))
  4883. ee.EncodeMapKVSeparator()
  4884. ee.EncodeUint(uint64(v2))
  4885. j++
  4886. }
  4887. ee.EncodeMapEnd()
  4888. }
  4889. }
  4890. func (f encFnInfo) fastpathEncMapUint32Uint8R(rv reflect.Value) {
  4891. fastpathTV.EncMapUint32Uint8V(rv.Interface().(map[uint32]uint8), fastpathCheckNilFalse, f.e)
  4892. }
  4893. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, checkNil bool, e *Encoder) {
  4894. ee := e.e
  4895. if checkNil && v == nil {
  4896. ee.EncodeNil()
  4897. return
  4898. }
  4899. ee.EncodeMapStart(len(v))
  4900. if e.be {
  4901. for k2, v2 := range v {
  4902. ee.EncodeUint(uint64(k2))
  4903. ee.EncodeUint(uint64(v2))
  4904. }
  4905. } else {
  4906. j := 0
  4907. for k2, v2 := range v {
  4908. if j > 0 {
  4909. ee.EncodeMapEntrySeparator()
  4910. }
  4911. ee.EncodeUint(uint64(k2))
  4912. ee.EncodeMapKVSeparator()
  4913. ee.EncodeUint(uint64(v2))
  4914. j++
  4915. }
  4916. ee.EncodeMapEnd()
  4917. }
  4918. }
  4919. func (f encFnInfo) fastpathEncMapUint32Uint16R(rv reflect.Value) {
  4920. fastpathTV.EncMapUint32Uint16V(rv.Interface().(map[uint32]uint16), fastpathCheckNilFalse, f.e)
  4921. }
  4922. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, checkNil bool, e *Encoder) {
  4923. ee := e.e
  4924. if checkNil && v == nil {
  4925. ee.EncodeNil()
  4926. return
  4927. }
  4928. ee.EncodeMapStart(len(v))
  4929. if e.be {
  4930. for k2, v2 := range v {
  4931. ee.EncodeUint(uint64(k2))
  4932. ee.EncodeUint(uint64(v2))
  4933. }
  4934. } else {
  4935. j := 0
  4936. for k2, v2 := range v {
  4937. if j > 0 {
  4938. ee.EncodeMapEntrySeparator()
  4939. }
  4940. ee.EncodeUint(uint64(k2))
  4941. ee.EncodeMapKVSeparator()
  4942. ee.EncodeUint(uint64(v2))
  4943. j++
  4944. }
  4945. ee.EncodeMapEnd()
  4946. }
  4947. }
  4948. func (f encFnInfo) fastpathEncMapUint32Uint32R(rv reflect.Value) {
  4949. fastpathTV.EncMapUint32Uint32V(rv.Interface().(map[uint32]uint32), fastpathCheckNilFalse, f.e)
  4950. }
  4951. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, checkNil bool, e *Encoder) {
  4952. ee := e.e
  4953. if checkNil && v == nil {
  4954. ee.EncodeNil()
  4955. return
  4956. }
  4957. ee.EncodeMapStart(len(v))
  4958. if e.be {
  4959. for k2, v2 := range v {
  4960. ee.EncodeUint(uint64(k2))
  4961. ee.EncodeUint(uint64(v2))
  4962. }
  4963. } else {
  4964. j := 0
  4965. for k2, v2 := range v {
  4966. if j > 0 {
  4967. ee.EncodeMapEntrySeparator()
  4968. }
  4969. ee.EncodeUint(uint64(k2))
  4970. ee.EncodeMapKVSeparator()
  4971. ee.EncodeUint(uint64(v2))
  4972. j++
  4973. }
  4974. ee.EncodeMapEnd()
  4975. }
  4976. }
  4977. func (f encFnInfo) fastpathEncMapUint32Uint64R(rv reflect.Value) {
  4978. fastpathTV.EncMapUint32Uint64V(rv.Interface().(map[uint32]uint64), fastpathCheckNilFalse, f.e)
  4979. }
  4980. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, checkNil bool, e *Encoder) {
  4981. ee := e.e
  4982. if checkNil && v == nil {
  4983. ee.EncodeNil()
  4984. return
  4985. }
  4986. ee.EncodeMapStart(len(v))
  4987. if e.be {
  4988. for k2, v2 := range v {
  4989. ee.EncodeUint(uint64(k2))
  4990. ee.EncodeUint(uint64(v2))
  4991. }
  4992. } else {
  4993. j := 0
  4994. for k2, v2 := range v {
  4995. if j > 0 {
  4996. ee.EncodeMapEntrySeparator()
  4997. }
  4998. ee.EncodeUint(uint64(k2))
  4999. ee.EncodeMapKVSeparator()
  5000. ee.EncodeUint(uint64(v2))
  5001. j++
  5002. }
  5003. ee.EncodeMapEnd()
  5004. }
  5005. }
  5006. func (f encFnInfo) fastpathEncMapUint32IntR(rv reflect.Value) {
  5007. fastpathTV.EncMapUint32IntV(rv.Interface().(map[uint32]int), fastpathCheckNilFalse, f.e)
  5008. }
  5009. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, checkNil bool, e *Encoder) {
  5010. ee := e.e
  5011. if checkNil && v == nil {
  5012. ee.EncodeNil()
  5013. return
  5014. }
  5015. ee.EncodeMapStart(len(v))
  5016. if e.be {
  5017. for k2, v2 := range v {
  5018. ee.EncodeUint(uint64(k2))
  5019. ee.EncodeInt(int64(v2))
  5020. }
  5021. } else {
  5022. j := 0
  5023. for k2, v2 := range v {
  5024. if j > 0 {
  5025. ee.EncodeMapEntrySeparator()
  5026. }
  5027. ee.EncodeUint(uint64(k2))
  5028. ee.EncodeMapKVSeparator()
  5029. ee.EncodeInt(int64(v2))
  5030. j++
  5031. }
  5032. ee.EncodeMapEnd()
  5033. }
  5034. }
  5035. func (f encFnInfo) fastpathEncMapUint32Int8R(rv reflect.Value) {
  5036. fastpathTV.EncMapUint32Int8V(rv.Interface().(map[uint32]int8), fastpathCheckNilFalse, f.e)
  5037. }
  5038. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, checkNil bool, e *Encoder) {
  5039. ee := e.e
  5040. if checkNil && v == nil {
  5041. ee.EncodeNil()
  5042. return
  5043. }
  5044. ee.EncodeMapStart(len(v))
  5045. if e.be {
  5046. for k2, v2 := range v {
  5047. ee.EncodeUint(uint64(k2))
  5048. ee.EncodeInt(int64(v2))
  5049. }
  5050. } else {
  5051. j := 0
  5052. for k2, v2 := range v {
  5053. if j > 0 {
  5054. ee.EncodeMapEntrySeparator()
  5055. }
  5056. ee.EncodeUint(uint64(k2))
  5057. ee.EncodeMapKVSeparator()
  5058. ee.EncodeInt(int64(v2))
  5059. j++
  5060. }
  5061. ee.EncodeMapEnd()
  5062. }
  5063. }
  5064. func (f encFnInfo) fastpathEncMapUint32Int16R(rv reflect.Value) {
  5065. fastpathTV.EncMapUint32Int16V(rv.Interface().(map[uint32]int16), fastpathCheckNilFalse, f.e)
  5066. }
  5067. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, checkNil bool, e *Encoder) {
  5068. ee := e.e
  5069. if checkNil && v == nil {
  5070. ee.EncodeNil()
  5071. return
  5072. }
  5073. ee.EncodeMapStart(len(v))
  5074. if e.be {
  5075. for k2, v2 := range v {
  5076. ee.EncodeUint(uint64(k2))
  5077. ee.EncodeInt(int64(v2))
  5078. }
  5079. } else {
  5080. j := 0
  5081. for k2, v2 := range v {
  5082. if j > 0 {
  5083. ee.EncodeMapEntrySeparator()
  5084. }
  5085. ee.EncodeUint(uint64(k2))
  5086. ee.EncodeMapKVSeparator()
  5087. ee.EncodeInt(int64(v2))
  5088. j++
  5089. }
  5090. ee.EncodeMapEnd()
  5091. }
  5092. }
  5093. func (f encFnInfo) fastpathEncMapUint32Int32R(rv reflect.Value) {
  5094. fastpathTV.EncMapUint32Int32V(rv.Interface().(map[uint32]int32), fastpathCheckNilFalse, f.e)
  5095. }
  5096. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, checkNil bool, e *Encoder) {
  5097. ee := e.e
  5098. if checkNil && v == nil {
  5099. ee.EncodeNil()
  5100. return
  5101. }
  5102. ee.EncodeMapStart(len(v))
  5103. if e.be {
  5104. for k2, v2 := range v {
  5105. ee.EncodeUint(uint64(k2))
  5106. ee.EncodeInt(int64(v2))
  5107. }
  5108. } else {
  5109. j := 0
  5110. for k2, v2 := range v {
  5111. if j > 0 {
  5112. ee.EncodeMapEntrySeparator()
  5113. }
  5114. ee.EncodeUint(uint64(k2))
  5115. ee.EncodeMapKVSeparator()
  5116. ee.EncodeInt(int64(v2))
  5117. j++
  5118. }
  5119. ee.EncodeMapEnd()
  5120. }
  5121. }
  5122. func (f encFnInfo) fastpathEncMapUint32Int64R(rv reflect.Value) {
  5123. fastpathTV.EncMapUint32Int64V(rv.Interface().(map[uint32]int64), fastpathCheckNilFalse, f.e)
  5124. }
  5125. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, checkNil bool, e *Encoder) {
  5126. ee := e.e
  5127. if checkNil && v == nil {
  5128. ee.EncodeNil()
  5129. return
  5130. }
  5131. ee.EncodeMapStart(len(v))
  5132. if e.be {
  5133. for k2, v2 := range v {
  5134. ee.EncodeUint(uint64(k2))
  5135. ee.EncodeInt(int64(v2))
  5136. }
  5137. } else {
  5138. j := 0
  5139. for k2, v2 := range v {
  5140. if j > 0 {
  5141. ee.EncodeMapEntrySeparator()
  5142. }
  5143. ee.EncodeUint(uint64(k2))
  5144. ee.EncodeMapKVSeparator()
  5145. ee.EncodeInt(int64(v2))
  5146. j++
  5147. }
  5148. ee.EncodeMapEnd()
  5149. }
  5150. }
  5151. func (f encFnInfo) fastpathEncMapUint32Float32R(rv reflect.Value) {
  5152. fastpathTV.EncMapUint32Float32V(rv.Interface().(map[uint32]float32), fastpathCheckNilFalse, f.e)
  5153. }
  5154. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, checkNil bool, e *Encoder) {
  5155. ee := e.e
  5156. if checkNil && v == nil {
  5157. ee.EncodeNil()
  5158. return
  5159. }
  5160. ee.EncodeMapStart(len(v))
  5161. if e.be {
  5162. for k2, v2 := range v {
  5163. ee.EncodeUint(uint64(k2))
  5164. ee.EncodeFloat32(v2)
  5165. }
  5166. } else {
  5167. j := 0
  5168. for k2, v2 := range v {
  5169. if j > 0 {
  5170. ee.EncodeMapEntrySeparator()
  5171. }
  5172. ee.EncodeUint(uint64(k2))
  5173. ee.EncodeMapKVSeparator()
  5174. ee.EncodeFloat32(v2)
  5175. j++
  5176. }
  5177. ee.EncodeMapEnd()
  5178. }
  5179. }
  5180. func (f encFnInfo) fastpathEncMapUint32Float64R(rv reflect.Value) {
  5181. fastpathTV.EncMapUint32Float64V(rv.Interface().(map[uint32]float64), fastpathCheckNilFalse, f.e)
  5182. }
  5183. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, checkNil bool, e *Encoder) {
  5184. ee := e.e
  5185. if checkNil && v == nil {
  5186. ee.EncodeNil()
  5187. return
  5188. }
  5189. ee.EncodeMapStart(len(v))
  5190. if e.be {
  5191. for k2, v2 := range v {
  5192. ee.EncodeUint(uint64(k2))
  5193. ee.EncodeFloat64(v2)
  5194. }
  5195. } else {
  5196. j := 0
  5197. for k2, v2 := range v {
  5198. if j > 0 {
  5199. ee.EncodeMapEntrySeparator()
  5200. }
  5201. ee.EncodeUint(uint64(k2))
  5202. ee.EncodeMapKVSeparator()
  5203. ee.EncodeFloat64(v2)
  5204. j++
  5205. }
  5206. ee.EncodeMapEnd()
  5207. }
  5208. }
  5209. func (f encFnInfo) fastpathEncMapUint32BoolR(rv reflect.Value) {
  5210. fastpathTV.EncMapUint32BoolV(rv.Interface().(map[uint32]bool), fastpathCheckNilFalse, f.e)
  5211. }
  5212. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, checkNil bool, e *Encoder) {
  5213. ee := e.e
  5214. if checkNil && v == nil {
  5215. ee.EncodeNil()
  5216. return
  5217. }
  5218. ee.EncodeMapStart(len(v))
  5219. if e.be {
  5220. for k2, v2 := range v {
  5221. ee.EncodeUint(uint64(k2))
  5222. ee.EncodeBool(v2)
  5223. }
  5224. } else {
  5225. j := 0
  5226. for k2, v2 := range v {
  5227. if j > 0 {
  5228. ee.EncodeMapEntrySeparator()
  5229. }
  5230. ee.EncodeUint(uint64(k2))
  5231. ee.EncodeMapKVSeparator()
  5232. ee.EncodeBool(v2)
  5233. j++
  5234. }
  5235. ee.EncodeMapEnd()
  5236. }
  5237. }
  5238. func (f encFnInfo) fastpathEncMapUint64IntfR(rv reflect.Value) {
  5239. fastpathTV.EncMapUint64IntfV(rv.Interface().(map[uint64]interface{}), fastpathCheckNilFalse, f.e)
  5240. }
  5241. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, checkNil bool, e *Encoder) {
  5242. ee := e.e
  5243. if checkNil && v == nil {
  5244. ee.EncodeNil()
  5245. return
  5246. }
  5247. ee.EncodeMapStart(len(v))
  5248. if e.be {
  5249. for k2, v2 := range v {
  5250. ee.EncodeUint(uint64(k2))
  5251. e.encode(v2)
  5252. }
  5253. } else {
  5254. j := 0
  5255. for k2, v2 := range v {
  5256. if j > 0 {
  5257. ee.EncodeMapEntrySeparator()
  5258. }
  5259. ee.EncodeUint(uint64(k2))
  5260. ee.EncodeMapKVSeparator()
  5261. e.encode(v2)
  5262. j++
  5263. }
  5264. ee.EncodeMapEnd()
  5265. }
  5266. }
  5267. func (f encFnInfo) fastpathEncMapUint64StringR(rv reflect.Value) {
  5268. fastpathTV.EncMapUint64StringV(rv.Interface().(map[uint64]string), fastpathCheckNilFalse, f.e)
  5269. }
  5270. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, checkNil bool, e *Encoder) {
  5271. ee := e.e
  5272. if checkNil && v == nil {
  5273. ee.EncodeNil()
  5274. return
  5275. }
  5276. ee.EncodeMapStart(len(v))
  5277. if e.be {
  5278. for k2, v2 := range v {
  5279. ee.EncodeUint(uint64(k2))
  5280. ee.EncodeString(c_UTF8, v2)
  5281. }
  5282. } else {
  5283. j := 0
  5284. for k2, v2 := range v {
  5285. if j > 0 {
  5286. ee.EncodeMapEntrySeparator()
  5287. }
  5288. ee.EncodeUint(uint64(k2))
  5289. ee.EncodeMapKVSeparator()
  5290. ee.EncodeString(c_UTF8, v2)
  5291. j++
  5292. }
  5293. ee.EncodeMapEnd()
  5294. }
  5295. }
  5296. func (f encFnInfo) fastpathEncMapUint64UintR(rv reflect.Value) {
  5297. fastpathTV.EncMapUint64UintV(rv.Interface().(map[uint64]uint), fastpathCheckNilFalse, f.e)
  5298. }
  5299. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, checkNil bool, e *Encoder) {
  5300. ee := e.e
  5301. if checkNil && v == nil {
  5302. ee.EncodeNil()
  5303. return
  5304. }
  5305. ee.EncodeMapStart(len(v))
  5306. if e.be {
  5307. for k2, v2 := range v {
  5308. ee.EncodeUint(uint64(k2))
  5309. ee.EncodeUint(uint64(v2))
  5310. }
  5311. } else {
  5312. j := 0
  5313. for k2, v2 := range v {
  5314. if j > 0 {
  5315. ee.EncodeMapEntrySeparator()
  5316. }
  5317. ee.EncodeUint(uint64(k2))
  5318. ee.EncodeMapKVSeparator()
  5319. ee.EncodeUint(uint64(v2))
  5320. j++
  5321. }
  5322. ee.EncodeMapEnd()
  5323. }
  5324. }
  5325. func (f encFnInfo) fastpathEncMapUint64Uint8R(rv reflect.Value) {
  5326. fastpathTV.EncMapUint64Uint8V(rv.Interface().(map[uint64]uint8), fastpathCheckNilFalse, f.e)
  5327. }
  5328. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, checkNil bool, e *Encoder) {
  5329. ee := e.e
  5330. if checkNil && v == nil {
  5331. ee.EncodeNil()
  5332. return
  5333. }
  5334. ee.EncodeMapStart(len(v))
  5335. if e.be {
  5336. for k2, v2 := range v {
  5337. ee.EncodeUint(uint64(k2))
  5338. ee.EncodeUint(uint64(v2))
  5339. }
  5340. } else {
  5341. j := 0
  5342. for k2, v2 := range v {
  5343. if j > 0 {
  5344. ee.EncodeMapEntrySeparator()
  5345. }
  5346. ee.EncodeUint(uint64(k2))
  5347. ee.EncodeMapKVSeparator()
  5348. ee.EncodeUint(uint64(v2))
  5349. j++
  5350. }
  5351. ee.EncodeMapEnd()
  5352. }
  5353. }
  5354. func (f encFnInfo) fastpathEncMapUint64Uint16R(rv reflect.Value) {
  5355. fastpathTV.EncMapUint64Uint16V(rv.Interface().(map[uint64]uint16), fastpathCheckNilFalse, f.e)
  5356. }
  5357. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, checkNil bool, e *Encoder) {
  5358. ee := e.e
  5359. if checkNil && v == nil {
  5360. ee.EncodeNil()
  5361. return
  5362. }
  5363. ee.EncodeMapStart(len(v))
  5364. if e.be {
  5365. for k2, v2 := range v {
  5366. ee.EncodeUint(uint64(k2))
  5367. ee.EncodeUint(uint64(v2))
  5368. }
  5369. } else {
  5370. j := 0
  5371. for k2, v2 := range v {
  5372. if j > 0 {
  5373. ee.EncodeMapEntrySeparator()
  5374. }
  5375. ee.EncodeUint(uint64(k2))
  5376. ee.EncodeMapKVSeparator()
  5377. ee.EncodeUint(uint64(v2))
  5378. j++
  5379. }
  5380. ee.EncodeMapEnd()
  5381. }
  5382. }
  5383. func (f encFnInfo) fastpathEncMapUint64Uint32R(rv reflect.Value) {
  5384. fastpathTV.EncMapUint64Uint32V(rv.Interface().(map[uint64]uint32), fastpathCheckNilFalse, f.e)
  5385. }
  5386. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, checkNil bool, e *Encoder) {
  5387. ee := e.e
  5388. if checkNil && v == nil {
  5389. ee.EncodeNil()
  5390. return
  5391. }
  5392. ee.EncodeMapStart(len(v))
  5393. if e.be {
  5394. for k2, v2 := range v {
  5395. ee.EncodeUint(uint64(k2))
  5396. ee.EncodeUint(uint64(v2))
  5397. }
  5398. } else {
  5399. j := 0
  5400. for k2, v2 := range v {
  5401. if j > 0 {
  5402. ee.EncodeMapEntrySeparator()
  5403. }
  5404. ee.EncodeUint(uint64(k2))
  5405. ee.EncodeMapKVSeparator()
  5406. ee.EncodeUint(uint64(v2))
  5407. j++
  5408. }
  5409. ee.EncodeMapEnd()
  5410. }
  5411. }
  5412. func (f encFnInfo) fastpathEncMapUint64Uint64R(rv reflect.Value) {
  5413. fastpathTV.EncMapUint64Uint64V(rv.Interface().(map[uint64]uint64), fastpathCheckNilFalse, f.e)
  5414. }
  5415. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, checkNil bool, e *Encoder) {
  5416. ee := e.e
  5417. if checkNil && v == nil {
  5418. ee.EncodeNil()
  5419. return
  5420. }
  5421. ee.EncodeMapStart(len(v))
  5422. if e.be {
  5423. for k2, v2 := range v {
  5424. ee.EncodeUint(uint64(k2))
  5425. ee.EncodeUint(uint64(v2))
  5426. }
  5427. } else {
  5428. j := 0
  5429. for k2, v2 := range v {
  5430. if j > 0 {
  5431. ee.EncodeMapEntrySeparator()
  5432. }
  5433. ee.EncodeUint(uint64(k2))
  5434. ee.EncodeMapKVSeparator()
  5435. ee.EncodeUint(uint64(v2))
  5436. j++
  5437. }
  5438. ee.EncodeMapEnd()
  5439. }
  5440. }
  5441. func (f encFnInfo) fastpathEncMapUint64IntR(rv reflect.Value) {
  5442. fastpathTV.EncMapUint64IntV(rv.Interface().(map[uint64]int), fastpathCheckNilFalse, f.e)
  5443. }
  5444. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, checkNil bool, e *Encoder) {
  5445. ee := e.e
  5446. if checkNil && v == nil {
  5447. ee.EncodeNil()
  5448. return
  5449. }
  5450. ee.EncodeMapStart(len(v))
  5451. if e.be {
  5452. for k2, v2 := range v {
  5453. ee.EncodeUint(uint64(k2))
  5454. ee.EncodeInt(int64(v2))
  5455. }
  5456. } else {
  5457. j := 0
  5458. for k2, v2 := range v {
  5459. if j > 0 {
  5460. ee.EncodeMapEntrySeparator()
  5461. }
  5462. ee.EncodeUint(uint64(k2))
  5463. ee.EncodeMapKVSeparator()
  5464. ee.EncodeInt(int64(v2))
  5465. j++
  5466. }
  5467. ee.EncodeMapEnd()
  5468. }
  5469. }
  5470. func (f encFnInfo) fastpathEncMapUint64Int8R(rv reflect.Value) {
  5471. fastpathTV.EncMapUint64Int8V(rv.Interface().(map[uint64]int8), fastpathCheckNilFalse, f.e)
  5472. }
  5473. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, checkNil bool, e *Encoder) {
  5474. ee := e.e
  5475. if checkNil && v == nil {
  5476. ee.EncodeNil()
  5477. return
  5478. }
  5479. ee.EncodeMapStart(len(v))
  5480. if e.be {
  5481. for k2, v2 := range v {
  5482. ee.EncodeUint(uint64(k2))
  5483. ee.EncodeInt(int64(v2))
  5484. }
  5485. } else {
  5486. j := 0
  5487. for k2, v2 := range v {
  5488. if j > 0 {
  5489. ee.EncodeMapEntrySeparator()
  5490. }
  5491. ee.EncodeUint(uint64(k2))
  5492. ee.EncodeMapKVSeparator()
  5493. ee.EncodeInt(int64(v2))
  5494. j++
  5495. }
  5496. ee.EncodeMapEnd()
  5497. }
  5498. }
  5499. func (f encFnInfo) fastpathEncMapUint64Int16R(rv reflect.Value) {
  5500. fastpathTV.EncMapUint64Int16V(rv.Interface().(map[uint64]int16), fastpathCheckNilFalse, f.e)
  5501. }
  5502. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, checkNil bool, e *Encoder) {
  5503. ee := e.e
  5504. if checkNil && v == nil {
  5505. ee.EncodeNil()
  5506. return
  5507. }
  5508. ee.EncodeMapStart(len(v))
  5509. if e.be {
  5510. for k2, v2 := range v {
  5511. ee.EncodeUint(uint64(k2))
  5512. ee.EncodeInt(int64(v2))
  5513. }
  5514. } else {
  5515. j := 0
  5516. for k2, v2 := range v {
  5517. if j > 0 {
  5518. ee.EncodeMapEntrySeparator()
  5519. }
  5520. ee.EncodeUint(uint64(k2))
  5521. ee.EncodeMapKVSeparator()
  5522. ee.EncodeInt(int64(v2))
  5523. j++
  5524. }
  5525. ee.EncodeMapEnd()
  5526. }
  5527. }
  5528. func (f encFnInfo) fastpathEncMapUint64Int32R(rv reflect.Value) {
  5529. fastpathTV.EncMapUint64Int32V(rv.Interface().(map[uint64]int32), fastpathCheckNilFalse, f.e)
  5530. }
  5531. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, checkNil bool, e *Encoder) {
  5532. ee := e.e
  5533. if checkNil && v == nil {
  5534. ee.EncodeNil()
  5535. return
  5536. }
  5537. ee.EncodeMapStart(len(v))
  5538. if e.be {
  5539. for k2, v2 := range v {
  5540. ee.EncodeUint(uint64(k2))
  5541. ee.EncodeInt(int64(v2))
  5542. }
  5543. } else {
  5544. j := 0
  5545. for k2, v2 := range v {
  5546. if j > 0 {
  5547. ee.EncodeMapEntrySeparator()
  5548. }
  5549. ee.EncodeUint(uint64(k2))
  5550. ee.EncodeMapKVSeparator()
  5551. ee.EncodeInt(int64(v2))
  5552. j++
  5553. }
  5554. ee.EncodeMapEnd()
  5555. }
  5556. }
  5557. func (f encFnInfo) fastpathEncMapUint64Int64R(rv reflect.Value) {
  5558. fastpathTV.EncMapUint64Int64V(rv.Interface().(map[uint64]int64), fastpathCheckNilFalse, f.e)
  5559. }
  5560. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, checkNil bool, e *Encoder) {
  5561. ee := e.e
  5562. if checkNil && v == nil {
  5563. ee.EncodeNil()
  5564. return
  5565. }
  5566. ee.EncodeMapStart(len(v))
  5567. if e.be {
  5568. for k2, v2 := range v {
  5569. ee.EncodeUint(uint64(k2))
  5570. ee.EncodeInt(int64(v2))
  5571. }
  5572. } else {
  5573. j := 0
  5574. for k2, v2 := range v {
  5575. if j > 0 {
  5576. ee.EncodeMapEntrySeparator()
  5577. }
  5578. ee.EncodeUint(uint64(k2))
  5579. ee.EncodeMapKVSeparator()
  5580. ee.EncodeInt(int64(v2))
  5581. j++
  5582. }
  5583. ee.EncodeMapEnd()
  5584. }
  5585. }
  5586. func (f encFnInfo) fastpathEncMapUint64Float32R(rv reflect.Value) {
  5587. fastpathTV.EncMapUint64Float32V(rv.Interface().(map[uint64]float32), fastpathCheckNilFalse, f.e)
  5588. }
  5589. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, checkNil bool, e *Encoder) {
  5590. ee := e.e
  5591. if checkNil && v == nil {
  5592. ee.EncodeNil()
  5593. return
  5594. }
  5595. ee.EncodeMapStart(len(v))
  5596. if e.be {
  5597. for k2, v2 := range v {
  5598. ee.EncodeUint(uint64(k2))
  5599. ee.EncodeFloat32(v2)
  5600. }
  5601. } else {
  5602. j := 0
  5603. for k2, v2 := range v {
  5604. if j > 0 {
  5605. ee.EncodeMapEntrySeparator()
  5606. }
  5607. ee.EncodeUint(uint64(k2))
  5608. ee.EncodeMapKVSeparator()
  5609. ee.EncodeFloat32(v2)
  5610. j++
  5611. }
  5612. ee.EncodeMapEnd()
  5613. }
  5614. }
  5615. func (f encFnInfo) fastpathEncMapUint64Float64R(rv reflect.Value) {
  5616. fastpathTV.EncMapUint64Float64V(rv.Interface().(map[uint64]float64), fastpathCheckNilFalse, f.e)
  5617. }
  5618. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, checkNil bool, e *Encoder) {
  5619. ee := e.e
  5620. if checkNil && v == nil {
  5621. ee.EncodeNil()
  5622. return
  5623. }
  5624. ee.EncodeMapStart(len(v))
  5625. if e.be {
  5626. for k2, v2 := range v {
  5627. ee.EncodeUint(uint64(k2))
  5628. ee.EncodeFloat64(v2)
  5629. }
  5630. } else {
  5631. j := 0
  5632. for k2, v2 := range v {
  5633. if j > 0 {
  5634. ee.EncodeMapEntrySeparator()
  5635. }
  5636. ee.EncodeUint(uint64(k2))
  5637. ee.EncodeMapKVSeparator()
  5638. ee.EncodeFloat64(v2)
  5639. j++
  5640. }
  5641. ee.EncodeMapEnd()
  5642. }
  5643. }
  5644. func (f encFnInfo) fastpathEncMapUint64BoolR(rv reflect.Value) {
  5645. fastpathTV.EncMapUint64BoolV(rv.Interface().(map[uint64]bool), fastpathCheckNilFalse, f.e)
  5646. }
  5647. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, checkNil bool, e *Encoder) {
  5648. ee := e.e
  5649. if checkNil && v == nil {
  5650. ee.EncodeNil()
  5651. return
  5652. }
  5653. ee.EncodeMapStart(len(v))
  5654. if e.be {
  5655. for k2, v2 := range v {
  5656. ee.EncodeUint(uint64(k2))
  5657. ee.EncodeBool(v2)
  5658. }
  5659. } else {
  5660. j := 0
  5661. for k2, v2 := range v {
  5662. if j > 0 {
  5663. ee.EncodeMapEntrySeparator()
  5664. }
  5665. ee.EncodeUint(uint64(k2))
  5666. ee.EncodeMapKVSeparator()
  5667. ee.EncodeBool(v2)
  5668. j++
  5669. }
  5670. ee.EncodeMapEnd()
  5671. }
  5672. }
  5673. func (f encFnInfo) fastpathEncMapIntIntfR(rv reflect.Value) {
  5674. fastpathTV.EncMapIntIntfV(rv.Interface().(map[int]interface{}), fastpathCheckNilFalse, f.e)
  5675. }
  5676. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, checkNil bool, e *Encoder) {
  5677. ee := e.e
  5678. if checkNil && v == nil {
  5679. ee.EncodeNil()
  5680. return
  5681. }
  5682. ee.EncodeMapStart(len(v))
  5683. if e.be {
  5684. for k2, v2 := range v {
  5685. ee.EncodeInt(int64(k2))
  5686. e.encode(v2)
  5687. }
  5688. } else {
  5689. j := 0
  5690. for k2, v2 := range v {
  5691. if j > 0 {
  5692. ee.EncodeMapEntrySeparator()
  5693. }
  5694. ee.EncodeInt(int64(k2))
  5695. ee.EncodeMapKVSeparator()
  5696. e.encode(v2)
  5697. j++
  5698. }
  5699. ee.EncodeMapEnd()
  5700. }
  5701. }
  5702. func (f encFnInfo) fastpathEncMapIntStringR(rv reflect.Value) {
  5703. fastpathTV.EncMapIntStringV(rv.Interface().(map[int]string), fastpathCheckNilFalse, f.e)
  5704. }
  5705. func (_ fastpathT) EncMapIntStringV(v map[int]string, checkNil bool, e *Encoder) {
  5706. ee := e.e
  5707. if checkNil && v == nil {
  5708. ee.EncodeNil()
  5709. return
  5710. }
  5711. ee.EncodeMapStart(len(v))
  5712. if e.be {
  5713. for k2, v2 := range v {
  5714. ee.EncodeInt(int64(k2))
  5715. ee.EncodeString(c_UTF8, v2)
  5716. }
  5717. } else {
  5718. j := 0
  5719. for k2, v2 := range v {
  5720. if j > 0 {
  5721. ee.EncodeMapEntrySeparator()
  5722. }
  5723. ee.EncodeInt(int64(k2))
  5724. ee.EncodeMapKVSeparator()
  5725. ee.EncodeString(c_UTF8, v2)
  5726. j++
  5727. }
  5728. ee.EncodeMapEnd()
  5729. }
  5730. }
  5731. func (f encFnInfo) fastpathEncMapIntUintR(rv reflect.Value) {
  5732. fastpathTV.EncMapIntUintV(rv.Interface().(map[int]uint), fastpathCheckNilFalse, f.e)
  5733. }
  5734. func (_ fastpathT) EncMapIntUintV(v map[int]uint, checkNil bool, e *Encoder) {
  5735. ee := e.e
  5736. if checkNil && v == nil {
  5737. ee.EncodeNil()
  5738. return
  5739. }
  5740. ee.EncodeMapStart(len(v))
  5741. if e.be {
  5742. for k2, v2 := range v {
  5743. ee.EncodeInt(int64(k2))
  5744. ee.EncodeUint(uint64(v2))
  5745. }
  5746. } else {
  5747. j := 0
  5748. for k2, v2 := range v {
  5749. if j > 0 {
  5750. ee.EncodeMapEntrySeparator()
  5751. }
  5752. ee.EncodeInt(int64(k2))
  5753. ee.EncodeMapKVSeparator()
  5754. ee.EncodeUint(uint64(v2))
  5755. j++
  5756. }
  5757. ee.EncodeMapEnd()
  5758. }
  5759. }
  5760. func (f encFnInfo) fastpathEncMapIntUint8R(rv reflect.Value) {
  5761. fastpathTV.EncMapIntUint8V(rv.Interface().(map[int]uint8), fastpathCheckNilFalse, f.e)
  5762. }
  5763. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, checkNil bool, e *Encoder) {
  5764. ee := e.e
  5765. if checkNil && v == nil {
  5766. ee.EncodeNil()
  5767. return
  5768. }
  5769. ee.EncodeMapStart(len(v))
  5770. if e.be {
  5771. for k2, v2 := range v {
  5772. ee.EncodeInt(int64(k2))
  5773. ee.EncodeUint(uint64(v2))
  5774. }
  5775. } else {
  5776. j := 0
  5777. for k2, v2 := range v {
  5778. if j > 0 {
  5779. ee.EncodeMapEntrySeparator()
  5780. }
  5781. ee.EncodeInt(int64(k2))
  5782. ee.EncodeMapKVSeparator()
  5783. ee.EncodeUint(uint64(v2))
  5784. j++
  5785. }
  5786. ee.EncodeMapEnd()
  5787. }
  5788. }
  5789. func (f encFnInfo) fastpathEncMapIntUint16R(rv reflect.Value) {
  5790. fastpathTV.EncMapIntUint16V(rv.Interface().(map[int]uint16), fastpathCheckNilFalse, f.e)
  5791. }
  5792. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, checkNil bool, e *Encoder) {
  5793. ee := e.e
  5794. if checkNil && v == nil {
  5795. ee.EncodeNil()
  5796. return
  5797. }
  5798. ee.EncodeMapStart(len(v))
  5799. if e.be {
  5800. for k2, v2 := range v {
  5801. ee.EncodeInt(int64(k2))
  5802. ee.EncodeUint(uint64(v2))
  5803. }
  5804. } else {
  5805. j := 0
  5806. for k2, v2 := range v {
  5807. if j > 0 {
  5808. ee.EncodeMapEntrySeparator()
  5809. }
  5810. ee.EncodeInt(int64(k2))
  5811. ee.EncodeMapKVSeparator()
  5812. ee.EncodeUint(uint64(v2))
  5813. j++
  5814. }
  5815. ee.EncodeMapEnd()
  5816. }
  5817. }
  5818. func (f encFnInfo) fastpathEncMapIntUint32R(rv reflect.Value) {
  5819. fastpathTV.EncMapIntUint32V(rv.Interface().(map[int]uint32), fastpathCheckNilFalse, f.e)
  5820. }
  5821. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, checkNil bool, e *Encoder) {
  5822. ee := e.e
  5823. if checkNil && v == nil {
  5824. ee.EncodeNil()
  5825. return
  5826. }
  5827. ee.EncodeMapStart(len(v))
  5828. if e.be {
  5829. for k2, v2 := range v {
  5830. ee.EncodeInt(int64(k2))
  5831. ee.EncodeUint(uint64(v2))
  5832. }
  5833. } else {
  5834. j := 0
  5835. for k2, v2 := range v {
  5836. if j > 0 {
  5837. ee.EncodeMapEntrySeparator()
  5838. }
  5839. ee.EncodeInt(int64(k2))
  5840. ee.EncodeMapKVSeparator()
  5841. ee.EncodeUint(uint64(v2))
  5842. j++
  5843. }
  5844. ee.EncodeMapEnd()
  5845. }
  5846. }
  5847. func (f encFnInfo) fastpathEncMapIntUint64R(rv reflect.Value) {
  5848. fastpathTV.EncMapIntUint64V(rv.Interface().(map[int]uint64), fastpathCheckNilFalse, f.e)
  5849. }
  5850. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, checkNil bool, e *Encoder) {
  5851. ee := e.e
  5852. if checkNil && v == nil {
  5853. ee.EncodeNil()
  5854. return
  5855. }
  5856. ee.EncodeMapStart(len(v))
  5857. if e.be {
  5858. for k2, v2 := range v {
  5859. ee.EncodeInt(int64(k2))
  5860. ee.EncodeUint(uint64(v2))
  5861. }
  5862. } else {
  5863. j := 0
  5864. for k2, v2 := range v {
  5865. if j > 0 {
  5866. ee.EncodeMapEntrySeparator()
  5867. }
  5868. ee.EncodeInt(int64(k2))
  5869. ee.EncodeMapKVSeparator()
  5870. ee.EncodeUint(uint64(v2))
  5871. j++
  5872. }
  5873. ee.EncodeMapEnd()
  5874. }
  5875. }
  5876. func (f encFnInfo) fastpathEncMapIntIntR(rv reflect.Value) {
  5877. fastpathTV.EncMapIntIntV(rv.Interface().(map[int]int), fastpathCheckNilFalse, f.e)
  5878. }
  5879. func (_ fastpathT) EncMapIntIntV(v map[int]int, checkNil bool, e *Encoder) {
  5880. ee := e.e
  5881. if checkNil && v == nil {
  5882. ee.EncodeNil()
  5883. return
  5884. }
  5885. ee.EncodeMapStart(len(v))
  5886. if e.be {
  5887. for k2, v2 := range v {
  5888. ee.EncodeInt(int64(k2))
  5889. ee.EncodeInt(int64(v2))
  5890. }
  5891. } else {
  5892. j := 0
  5893. for k2, v2 := range v {
  5894. if j > 0 {
  5895. ee.EncodeMapEntrySeparator()
  5896. }
  5897. ee.EncodeInt(int64(k2))
  5898. ee.EncodeMapKVSeparator()
  5899. ee.EncodeInt(int64(v2))
  5900. j++
  5901. }
  5902. ee.EncodeMapEnd()
  5903. }
  5904. }
  5905. func (f encFnInfo) fastpathEncMapIntInt8R(rv reflect.Value) {
  5906. fastpathTV.EncMapIntInt8V(rv.Interface().(map[int]int8), fastpathCheckNilFalse, f.e)
  5907. }
  5908. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, checkNil bool, e *Encoder) {
  5909. ee := e.e
  5910. if checkNil && v == nil {
  5911. ee.EncodeNil()
  5912. return
  5913. }
  5914. ee.EncodeMapStart(len(v))
  5915. if e.be {
  5916. for k2, v2 := range v {
  5917. ee.EncodeInt(int64(k2))
  5918. ee.EncodeInt(int64(v2))
  5919. }
  5920. } else {
  5921. j := 0
  5922. for k2, v2 := range v {
  5923. if j > 0 {
  5924. ee.EncodeMapEntrySeparator()
  5925. }
  5926. ee.EncodeInt(int64(k2))
  5927. ee.EncodeMapKVSeparator()
  5928. ee.EncodeInt(int64(v2))
  5929. j++
  5930. }
  5931. ee.EncodeMapEnd()
  5932. }
  5933. }
  5934. func (f encFnInfo) fastpathEncMapIntInt16R(rv reflect.Value) {
  5935. fastpathTV.EncMapIntInt16V(rv.Interface().(map[int]int16), fastpathCheckNilFalse, f.e)
  5936. }
  5937. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, checkNil bool, e *Encoder) {
  5938. ee := e.e
  5939. if checkNil && v == nil {
  5940. ee.EncodeNil()
  5941. return
  5942. }
  5943. ee.EncodeMapStart(len(v))
  5944. if e.be {
  5945. for k2, v2 := range v {
  5946. ee.EncodeInt(int64(k2))
  5947. ee.EncodeInt(int64(v2))
  5948. }
  5949. } else {
  5950. j := 0
  5951. for k2, v2 := range v {
  5952. if j > 0 {
  5953. ee.EncodeMapEntrySeparator()
  5954. }
  5955. ee.EncodeInt(int64(k2))
  5956. ee.EncodeMapKVSeparator()
  5957. ee.EncodeInt(int64(v2))
  5958. j++
  5959. }
  5960. ee.EncodeMapEnd()
  5961. }
  5962. }
  5963. func (f encFnInfo) fastpathEncMapIntInt32R(rv reflect.Value) {
  5964. fastpathTV.EncMapIntInt32V(rv.Interface().(map[int]int32), fastpathCheckNilFalse, f.e)
  5965. }
  5966. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, checkNil bool, e *Encoder) {
  5967. ee := e.e
  5968. if checkNil && v == nil {
  5969. ee.EncodeNil()
  5970. return
  5971. }
  5972. ee.EncodeMapStart(len(v))
  5973. if e.be {
  5974. for k2, v2 := range v {
  5975. ee.EncodeInt(int64(k2))
  5976. ee.EncodeInt(int64(v2))
  5977. }
  5978. } else {
  5979. j := 0
  5980. for k2, v2 := range v {
  5981. if j > 0 {
  5982. ee.EncodeMapEntrySeparator()
  5983. }
  5984. ee.EncodeInt(int64(k2))
  5985. ee.EncodeMapKVSeparator()
  5986. ee.EncodeInt(int64(v2))
  5987. j++
  5988. }
  5989. ee.EncodeMapEnd()
  5990. }
  5991. }
  5992. func (f encFnInfo) fastpathEncMapIntInt64R(rv reflect.Value) {
  5993. fastpathTV.EncMapIntInt64V(rv.Interface().(map[int]int64), fastpathCheckNilFalse, f.e)
  5994. }
  5995. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, checkNil bool, e *Encoder) {
  5996. ee := e.e
  5997. if checkNil && v == nil {
  5998. ee.EncodeNil()
  5999. return
  6000. }
  6001. ee.EncodeMapStart(len(v))
  6002. if e.be {
  6003. for k2, v2 := range v {
  6004. ee.EncodeInt(int64(k2))
  6005. ee.EncodeInt(int64(v2))
  6006. }
  6007. } else {
  6008. j := 0
  6009. for k2, v2 := range v {
  6010. if j > 0 {
  6011. ee.EncodeMapEntrySeparator()
  6012. }
  6013. ee.EncodeInt(int64(k2))
  6014. ee.EncodeMapKVSeparator()
  6015. ee.EncodeInt(int64(v2))
  6016. j++
  6017. }
  6018. ee.EncodeMapEnd()
  6019. }
  6020. }
  6021. func (f encFnInfo) fastpathEncMapIntFloat32R(rv reflect.Value) {
  6022. fastpathTV.EncMapIntFloat32V(rv.Interface().(map[int]float32), fastpathCheckNilFalse, f.e)
  6023. }
  6024. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, checkNil bool, e *Encoder) {
  6025. ee := e.e
  6026. if checkNil && v == nil {
  6027. ee.EncodeNil()
  6028. return
  6029. }
  6030. ee.EncodeMapStart(len(v))
  6031. if e.be {
  6032. for k2, v2 := range v {
  6033. ee.EncodeInt(int64(k2))
  6034. ee.EncodeFloat32(v2)
  6035. }
  6036. } else {
  6037. j := 0
  6038. for k2, v2 := range v {
  6039. if j > 0 {
  6040. ee.EncodeMapEntrySeparator()
  6041. }
  6042. ee.EncodeInt(int64(k2))
  6043. ee.EncodeMapKVSeparator()
  6044. ee.EncodeFloat32(v2)
  6045. j++
  6046. }
  6047. ee.EncodeMapEnd()
  6048. }
  6049. }
  6050. func (f encFnInfo) fastpathEncMapIntFloat64R(rv reflect.Value) {
  6051. fastpathTV.EncMapIntFloat64V(rv.Interface().(map[int]float64), fastpathCheckNilFalse, f.e)
  6052. }
  6053. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, checkNil bool, e *Encoder) {
  6054. ee := e.e
  6055. if checkNil && v == nil {
  6056. ee.EncodeNil()
  6057. return
  6058. }
  6059. ee.EncodeMapStart(len(v))
  6060. if e.be {
  6061. for k2, v2 := range v {
  6062. ee.EncodeInt(int64(k2))
  6063. ee.EncodeFloat64(v2)
  6064. }
  6065. } else {
  6066. j := 0
  6067. for k2, v2 := range v {
  6068. if j > 0 {
  6069. ee.EncodeMapEntrySeparator()
  6070. }
  6071. ee.EncodeInt(int64(k2))
  6072. ee.EncodeMapKVSeparator()
  6073. ee.EncodeFloat64(v2)
  6074. j++
  6075. }
  6076. ee.EncodeMapEnd()
  6077. }
  6078. }
  6079. func (f encFnInfo) fastpathEncMapIntBoolR(rv reflect.Value) {
  6080. fastpathTV.EncMapIntBoolV(rv.Interface().(map[int]bool), fastpathCheckNilFalse, f.e)
  6081. }
  6082. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, checkNil bool, e *Encoder) {
  6083. ee := e.e
  6084. if checkNil && v == nil {
  6085. ee.EncodeNil()
  6086. return
  6087. }
  6088. ee.EncodeMapStart(len(v))
  6089. if e.be {
  6090. for k2, v2 := range v {
  6091. ee.EncodeInt(int64(k2))
  6092. ee.EncodeBool(v2)
  6093. }
  6094. } else {
  6095. j := 0
  6096. for k2, v2 := range v {
  6097. if j > 0 {
  6098. ee.EncodeMapEntrySeparator()
  6099. }
  6100. ee.EncodeInt(int64(k2))
  6101. ee.EncodeMapKVSeparator()
  6102. ee.EncodeBool(v2)
  6103. j++
  6104. }
  6105. ee.EncodeMapEnd()
  6106. }
  6107. }
  6108. func (f encFnInfo) fastpathEncMapInt8IntfR(rv reflect.Value) {
  6109. fastpathTV.EncMapInt8IntfV(rv.Interface().(map[int8]interface{}), fastpathCheckNilFalse, f.e)
  6110. }
  6111. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, checkNil bool, e *Encoder) {
  6112. ee := e.e
  6113. if checkNil && v == nil {
  6114. ee.EncodeNil()
  6115. return
  6116. }
  6117. ee.EncodeMapStart(len(v))
  6118. if e.be {
  6119. for k2, v2 := range v {
  6120. ee.EncodeInt(int64(k2))
  6121. e.encode(v2)
  6122. }
  6123. } else {
  6124. j := 0
  6125. for k2, v2 := range v {
  6126. if j > 0 {
  6127. ee.EncodeMapEntrySeparator()
  6128. }
  6129. ee.EncodeInt(int64(k2))
  6130. ee.EncodeMapKVSeparator()
  6131. e.encode(v2)
  6132. j++
  6133. }
  6134. ee.EncodeMapEnd()
  6135. }
  6136. }
  6137. func (f encFnInfo) fastpathEncMapInt8StringR(rv reflect.Value) {
  6138. fastpathTV.EncMapInt8StringV(rv.Interface().(map[int8]string), fastpathCheckNilFalse, f.e)
  6139. }
  6140. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, checkNil bool, e *Encoder) {
  6141. ee := e.e
  6142. if checkNil && v == nil {
  6143. ee.EncodeNil()
  6144. return
  6145. }
  6146. ee.EncodeMapStart(len(v))
  6147. if e.be {
  6148. for k2, v2 := range v {
  6149. ee.EncodeInt(int64(k2))
  6150. ee.EncodeString(c_UTF8, v2)
  6151. }
  6152. } else {
  6153. j := 0
  6154. for k2, v2 := range v {
  6155. if j > 0 {
  6156. ee.EncodeMapEntrySeparator()
  6157. }
  6158. ee.EncodeInt(int64(k2))
  6159. ee.EncodeMapKVSeparator()
  6160. ee.EncodeString(c_UTF8, v2)
  6161. j++
  6162. }
  6163. ee.EncodeMapEnd()
  6164. }
  6165. }
  6166. func (f encFnInfo) fastpathEncMapInt8UintR(rv reflect.Value) {
  6167. fastpathTV.EncMapInt8UintV(rv.Interface().(map[int8]uint), fastpathCheckNilFalse, f.e)
  6168. }
  6169. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, checkNil bool, e *Encoder) {
  6170. ee := e.e
  6171. if checkNil && v == nil {
  6172. ee.EncodeNil()
  6173. return
  6174. }
  6175. ee.EncodeMapStart(len(v))
  6176. if e.be {
  6177. for k2, v2 := range v {
  6178. ee.EncodeInt(int64(k2))
  6179. ee.EncodeUint(uint64(v2))
  6180. }
  6181. } else {
  6182. j := 0
  6183. for k2, v2 := range v {
  6184. if j > 0 {
  6185. ee.EncodeMapEntrySeparator()
  6186. }
  6187. ee.EncodeInt(int64(k2))
  6188. ee.EncodeMapKVSeparator()
  6189. ee.EncodeUint(uint64(v2))
  6190. j++
  6191. }
  6192. ee.EncodeMapEnd()
  6193. }
  6194. }
  6195. func (f encFnInfo) fastpathEncMapInt8Uint8R(rv reflect.Value) {
  6196. fastpathTV.EncMapInt8Uint8V(rv.Interface().(map[int8]uint8), fastpathCheckNilFalse, f.e)
  6197. }
  6198. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, checkNil bool, e *Encoder) {
  6199. ee := e.e
  6200. if checkNil && v == nil {
  6201. ee.EncodeNil()
  6202. return
  6203. }
  6204. ee.EncodeMapStart(len(v))
  6205. if e.be {
  6206. for k2, v2 := range v {
  6207. ee.EncodeInt(int64(k2))
  6208. ee.EncodeUint(uint64(v2))
  6209. }
  6210. } else {
  6211. j := 0
  6212. for k2, v2 := range v {
  6213. if j > 0 {
  6214. ee.EncodeMapEntrySeparator()
  6215. }
  6216. ee.EncodeInt(int64(k2))
  6217. ee.EncodeMapKVSeparator()
  6218. ee.EncodeUint(uint64(v2))
  6219. j++
  6220. }
  6221. ee.EncodeMapEnd()
  6222. }
  6223. }
  6224. func (f encFnInfo) fastpathEncMapInt8Uint16R(rv reflect.Value) {
  6225. fastpathTV.EncMapInt8Uint16V(rv.Interface().(map[int8]uint16), fastpathCheckNilFalse, f.e)
  6226. }
  6227. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, checkNil bool, e *Encoder) {
  6228. ee := e.e
  6229. if checkNil && v == nil {
  6230. ee.EncodeNil()
  6231. return
  6232. }
  6233. ee.EncodeMapStart(len(v))
  6234. if e.be {
  6235. for k2, v2 := range v {
  6236. ee.EncodeInt(int64(k2))
  6237. ee.EncodeUint(uint64(v2))
  6238. }
  6239. } else {
  6240. j := 0
  6241. for k2, v2 := range v {
  6242. if j > 0 {
  6243. ee.EncodeMapEntrySeparator()
  6244. }
  6245. ee.EncodeInt(int64(k2))
  6246. ee.EncodeMapKVSeparator()
  6247. ee.EncodeUint(uint64(v2))
  6248. j++
  6249. }
  6250. ee.EncodeMapEnd()
  6251. }
  6252. }
  6253. func (f encFnInfo) fastpathEncMapInt8Uint32R(rv reflect.Value) {
  6254. fastpathTV.EncMapInt8Uint32V(rv.Interface().(map[int8]uint32), fastpathCheckNilFalse, f.e)
  6255. }
  6256. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, checkNil bool, e *Encoder) {
  6257. ee := e.e
  6258. if checkNil && v == nil {
  6259. ee.EncodeNil()
  6260. return
  6261. }
  6262. ee.EncodeMapStart(len(v))
  6263. if e.be {
  6264. for k2, v2 := range v {
  6265. ee.EncodeInt(int64(k2))
  6266. ee.EncodeUint(uint64(v2))
  6267. }
  6268. } else {
  6269. j := 0
  6270. for k2, v2 := range v {
  6271. if j > 0 {
  6272. ee.EncodeMapEntrySeparator()
  6273. }
  6274. ee.EncodeInt(int64(k2))
  6275. ee.EncodeMapKVSeparator()
  6276. ee.EncodeUint(uint64(v2))
  6277. j++
  6278. }
  6279. ee.EncodeMapEnd()
  6280. }
  6281. }
  6282. func (f encFnInfo) fastpathEncMapInt8Uint64R(rv reflect.Value) {
  6283. fastpathTV.EncMapInt8Uint64V(rv.Interface().(map[int8]uint64), fastpathCheckNilFalse, f.e)
  6284. }
  6285. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, checkNil bool, e *Encoder) {
  6286. ee := e.e
  6287. if checkNil && v == nil {
  6288. ee.EncodeNil()
  6289. return
  6290. }
  6291. ee.EncodeMapStart(len(v))
  6292. if e.be {
  6293. for k2, v2 := range v {
  6294. ee.EncodeInt(int64(k2))
  6295. ee.EncodeUint(uint64(v2))
  6296. }
  6297. } else {
  6298. j := 0
  6299. for k2, v2 := range v {
  6300. if j > 0 {
  6301. ee.EncodeMapEntrySeparator()
  6302. }
  6303. ee.EncodeInt(int64(k2))
  6304. ee.EncodeMapKVSeparator()
  6305. ee.EncodeUint(uint64(v2))
  6306. j++
  6307. }
  6308. ee.EncodeMapEnd()
  6309. }
  6310. }
  6311. func (f encFnInfo) fastpathEncMapInt8IntR(rv reflect.Value) {
  6312. fastpathTV.EncMapInt8IntV(rv.Interface().(map[int8]int), fastpathCheckNilFalse, f.e)
  6313. }
  6314. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, checkNil bool, e *Encoder) {
  6315. ee := e.e
  6316. if checkNil && v == nil {
  6317. ee.EncodeNil()
  6318. return
  6319. }
  6320. ee.EncodeMapStart(len(v))
  6321. if e.be {
  6322. for k2, v2 := range v {
  6323. ee.EncodeInt(int64(k2))
  6324. ee.EncodeInt(int64(v2))
  6325. }
  6326. } else {
  6327. j := 0
  6328. for k2, v2 := range v {
  6329. if j > 0 {
  6330. ee.EncodeMapEntrySeparator()
  6331. }
  6332. ee.EncodeInt(int64(k2))
  6333. ee.EncodeMapKVSeparator()
  6334. ee.EncodeInt(int64(v2))
  6335. j++
  6336. }
  6337. ee.EncodeMapEnd()
  6338. }
  6339. }
  6340. func (f encFnInfo) fastpathEncMapInt8Int8R(rv reflect.Value) {
  6341. fastpathTV.EncMapInt8Int8V(rv.Interface().(map[int8]int8), fastpathCheckNilFalse, f.e)
  6342. }
  6343. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, checkNil bool, e *Encoder) {
  6344. ee := e.e
  6345. if checkNil && v == nil {
  6346. ee.EncodeNil()
  6347. return
  6348. }
  6349. ee.EncodeMapStart(len(v))
  6350. if e.be {
  6351. for k2, v2 := range v {
  6352. ee.EncodeInt(int64(k2))
  6353. ee.EncodeInt(int64(v2))
  6354. }
  6355. } else {
  6356. j := 0
  6357. for k2, v2 := range v {
  6358. if j > 0 {
  6359. ee.EncodeMapEntrySeparator()
  6360. }
  6361. ee.EncodeInt(int64(k2))
  6362. ee.EncodeMapKVSeparator()
  6363. ee.EncodeInt(int64(v2))
  6364. j++
  6365. }
  6366. ee.EncodeMapEnd()
  6367. }
  6368. }
  6369. func (f encFnInfo) fastpathEncMapInt8Int16R(rv reflect.Value) {
  6370. fastpathTV.EncMapInt8Int16V(rv.Interface().(map[int8]int16), fastpathCheckNilFalse, f.e)
  6371. }
  6372. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, checkNil bool, e *Encoder) {
  6373. ee := e.e
  6374. if checkNil && v == nil {
  6375. ee.EncodeNil()
  6376. return
  6377. }
  6378. ee.EncodeMapStart(len(v))
  6379. if e.be {
  6380. for k2, v2 := range v {
  6381. ee.EncodeInt(int64(k2))
  6382. ee.EncodeInt(int64(v2))
  6383. }
  6384. } else {
  6385. j := 0
  6386. for k2, v2 := range v {
  6387. if j > 0 {
  6388. ee.EncodeMapEntrySeparator()
  6389. }
  6390. ee.EncodeInt(int64(k2))
  6391. ee.EncodeMapKVSeparator()
  6392. ee.EncodeInt(int64(v2))
  6393. j++
  6394. }
  6395. ee.EncodeMapEnd()
  6396. }
  6397. }
  6398. func (f encFnInfo) fastpathEncMapInt8Int32R(rv reflect.Value) {
  6399. fastpathTV.EncMapInt8Int32V(rv.Interface().(map[int8]int32), fastpathCheckNilFalse, f.e)
  6400. }
  6401. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, checkNil bool, e *Encoder) {
  6402. ee := e.e
  6403. if checkNil && v == nil {
  6404. ee.EncodeNil()
  6405. return
  6406. }
  6407. ee.EncodeMapStart(len(v))
  6408. if e.be {
  6409. for k2, v2 := range v {
  6410. ee.EncodeInt(int64(k2))
  6411. ee.EncodeInt(int64(v2))
  6412. }
  6413. } else {
  6414. j := 0
  6415. for k2, v2 := range v {
  6416. if j > 0 {
  6417. ee.EncodeMapEntrySeparator()
  6418. }
  6419. ee.EncodeInt(int64(k2))
  6420. ee.EncodeMapKVSeparator()
  6421. ee.EncodeInt(int64(v2))
  6422. j++
  6423. }
  6424. ee.EncodeMapEnd()
  6425. }
  6426. }
  6427. func (f encFnInfo) fastpathEncMapInt8Int64R(rv reflect.Value) {
  6428. fastpathTV.EncMapInt8Int64V(rv.Interface().(map[int8]int64), fastpathCheckNilFalse, f.e)
  6429. }
  6430. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, checkNil bool, e *Encoder) {
  6431. ee := e.e
  6432. if checkNil && v == nil {
  6433. ee.EncodeNil()
  6434. return
  6435. }
  6436. ee.EncodeMapStart(len(v))
  6437. if e.be {
  6438. for k2, v2 := range v {
  6439. ee.EncodeInt(int64(k2))
  6440. ee.EncodeInt(int64(v2))
  6441. }
  6442. } else {
  6443. j := 0
  6444. for k2, v2 := range v {
  6445. if j > 0 {
  6446. ee.EncodeMapEntrySeparator()
  6447. }
  6448. ee.EncodeInt(int64(k2))
  6449. ee.EncodeMapKVSeparator()
  6450. ee.EncodeInt(int64(v2))
  6451. j++
  6452. }
  6453. ee.EncodeMapEnd()
  6454. }
  6455. }
  6456. func (f encFnInfo) fastpathEncMapInt8Float32R(rv reflect.Value) {
  6457. fastpathTV.EncMapInt8Float32V(rv.Interface().(map[int8]float32), fastpathCheckNilFalse, f.e)
  6458. }
  6459. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, checkNil bool, e *Encoder) {
  6460. ee := e.e
  6461. if checkNil && v == nil {
  6462. ee.EncodeNil()
  6463. return
  6464. }
  6465. ee.EncodeMapStart(len(v))
  6466. if e.be {
  6467. for k2, v2 := range v {
  6468. ee.EncodeInt(int64(k2))
  6469. ee.EncodeFloat32(v2)
  6470. }
  6471. } else {
  6472. j := 0
  6473. for k2, v2 := range v {
  6474. if j > 0 {
  6475. ee.EncodeMapEntrySeparator()
  6476. }
  6477. ee.EncodeInt(int64(k2))
  6478. ee.EncodeMapKVSeparator()
  6479. ee.EncodeFloat32(v2)
  6480. j++
  6481. }
  6482. ee.EncodeMapEnd()
  6483. }
  6484. }
  6485. func (f encFnInfo) fastpathEncMapInt8Float64R(rv reflect.Value) {
  6486. fastpathTV.EncMapInt8Float64V(rv.Interface().(map[int8]float64), fastpathCheckNilFalse, f.e)
  6487. }
  6488. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, checkNil bool, e *Encoder) {
  6489. ee := e.e
  6490. if checkNil && v == nil {
  6491. ee.EncodeNil()
  6492. return
  6493. }
  6494. ee.EncodeMapStart(len(v))
  6495. if e.be {
  6496. for k2, v2 := range v {
  6497. ee.EncodeInt(int64(k2))
  6498. ee.EncodeFloat64(v2)
  6499. }
  6500. } else {
  6501. j := 0
  6502. for k2, v2 := range v {
  6503. if j > 0 {
  6504. ee.EncodeMapEntrySeparator()
  6505. }
  6506. ee.EncodeInt(int64(k2))
  6507. ee.EncodeMapKVSeparator()
  6508. ee.EncodeFloat64(v2)
  6509. j++
  6510. }
  6511. ee.EncodeMapEnd()
  6512. }
  6513. }
  6514. func (f encFnInfo) fastpathEncMapInt8BoolR(rv reflect.Value) {
  6515. fastpathTV.EncMapInt8BoolV(rv.Interface().(map[int8]bool), fastpathCheckNilFalse, f.e)
  6516. }
  6517. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, checkNil bool, e *Encoder) {
  6518. ee := e.e
  6519. if checkNil && v == nil {
  6520. ee.EncodeNil()
  6521. return
  6522. }
  6523. ee.EncodeMapStart(len(v))
  6524. if e.be {
  6525. for k2, v2 := range v {
  6526. ee.EncodeInt(int64(k2))
  6527. ee.EncodeBool(v2)
  6528. }
  6529. } else {
  6530. j := 0
  6531. for k2, v2 := range v {
  6532. if j > 0 {
  6533. ee.EncodeMapEntrySeparator()
  6534. }
  6535. ee.EncodeInt(int64(k2))
  6536. ee.EncodeMapKVSeparator()
  6537. ee.EncodeBool(v2)
  6538. j++
  6539. }
  6540. ee.EncodeMapEnd()
  6541. }
  6542. }
  6543. func (f encFnInfo) fastpathEncMapInt16IntfR(rv reflect.Value) {
  6544. fastpathTV.EncMapInt16IntfV(rv.Interface().(map[int16]interface{}), fastpathCheckNilFalse, f.e)
  6545. }
  6546. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, checkNil bool, e *Encoder) {
  6547. ee := e.e
  6548. if checkNil && v == nil {
  6549. ee.EncodeNil()
  6550. return
  6551. }
  6552. ee.EncodeMapStart(len(v))
  6553. if e.be {
  6554. for k2, v2 := range v {
  6555. ee.EncodeInt(int64(k2))
  6556. e.encode(v2)
  6557. }
  6558. } else {
  6559. j := 0
  6560. for k2, v2 := range v {
  6561. if j > 0 {
  6562. ee.EncodeMapEntrySeparator()
  6563. }
  6564. ee.EncodeInt(int64(k2))
  6565. ee.EncodeMapKVSeparator()
  6566. e.encode(v2)
  6567. j++
  6568. }
  6569. ee.EncodeMapEnd()
  6570. }
  6571. }
  6572. func (f encFnInfo) fastpathEncMapInt16StringR(rv reflect.Value) {
  6573. fastpathTV.EncMapInt16StringV(rv.Interface().(map[int16]string), fastpathCheckNilFalse, f.e)
  6574. }
  6575. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, checkNil bool, e *Encoder) {
  6576. ee := e.e
  6577. if checkNil && v == nil {
  6578. ee.EncodeNil()
  6579. return
  6580. }
  6581. ee.EncodeMapStart(len(v))
  6582. if e.be {
  6583. for k2, v2 := range v {
  6584. ee.EncodeInt(int64(k2))
  6585. ee.EncodeString(c_UTF8, v2)
  6586. }
  6587. } else {
  6588. j := 0
  6589. for k2, v2 := range v {
  6590. if j > 0 {
  6591. ee.EncodeMapEntrySeparator()
  6592. }
  6593. ee.EncodeInt(int64(k2))
  6594. ee.EncodeMapKVSeparator()
  6595. ee.EncodeString(c_UTF8, v2)
  6596. j++
  6597. }
  6598. ee.EncodeMapEnd()
  6599. }
  6600. }
  6601. func (f encFnInfo) fastpathEncMapInt16UintR(rv reflect.Value) {
  6602. fastpathTV.EncMapInt16UintV(rv.Interface().(map[int16]uint), fastpathCheckNilFalse, f.e)
  6603. }
  6604. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, checkNil bool, e *Encoder) {
  6605. ee := e.e
  6606. if checkNil && v == nil {
  6607. ee.EncodeNil()
  6608. return
  6609. }
  6610. ee.EncodeMapStart(len(v))
  6611. if e.be {
  6612. for k2, v2 := range v {
  6613. ee.EncodeInt(int64(k2))
  6614. ee.EncodeUint(uint64(v2))
  6615. }
  6616. } else {
  6617. j := 0
  6618. for k2, v2 := range v {
  6619. if j > 0 {
  6620. ee.EncodeMapEntrySeparator()
  6621. }
  6622. ee.EncodeInt(int64(k2))
  6623. ee.EncodeMapKVSeparator()
  6624. ee.EncodeUint(uint64(v2))
  6625. j++
  6626. }
  6627. ee.EncodeMapEnd()
  6628. }
  6629. }
  6630. func (f encFnInfo) fastpathEncMapInt16Uint8R(rv reflect.Value) {
  6631. fastpathTV.EncMapInt16Uint8V(rv.Interface().(map[int16]uint8), fastpathCheckNilFalse, f.e)
  6632. }
  6633. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, checkNil bool, e *Encoder) {
  6634. ee := e.e
  6635. if checkNil && v == nil {
  6636. ee.EncodeNil()
  6637. return
  6638. }
  6639. ee.EncodeMapStart(len(v))
  6640. if e.be {
  6641. for k2, v2 := range v {
  6642. ee.EncodeInt(int64(k2))
  6643. ee.EncodeUint(uint64(v2))
  6644. }
  6645. } else {
  6646. j := 0
  6647. for k2, v2 := range v {
  6648. if j > 0 {
  6649. ee.EncodeMapEntrySeparator()
  6650. }
  6651. ee.EncodeInt(int64(k2))
  6652. ee.EncodeMapKVSeparator()
  6653. ee.EncodeUint(uint64(v2))
  6654. j++
  6655. }
  6656. ee.EncodeMapEnd()
  6657. }
  6658. }
  6659. func (f encFnInfo) fastpathEncMapInt16Uint16R(rv reflect.Value) {
  6660. fastpathTV.EncMapInt16Uint16V(rv.Interface().(map[int16]uint16), fastpathCheckNilFalse, f.e)
  6661. }
  6662. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, checkNil bool, e *Encoder) {
  6663. ee := e.e
  6664. if checkNil && v == nil {
  6665. ee.EncodeNil()
  6666. return
  6667. }
  6668. ee.EncodeMapStart(len(v))
  6669. if e.be {
  6670. for k2, v2 := range v {
  6671. ee.EncodeInt(int64(k2))
  6672. ee.EncodeUint(uint64(v2))
  6673. }
  6674. } else {
  6675. j := 0
  6676. for k2, v2 := range v {
  6677. if j > 0 {
  6678. ee.EncodeMapEntrySeparator()
  6679. }
  6680. ee.EncodeInt(int64(k2))
  6681. ee.EncodeMapKVSeparator()
  6682. ee.EncodeUint(uint64(v2))
  6683. j++
  6684. }
  6685. ee.EncodeMapEnd()
  6686. }
  6687. }
  6688. func (f encFnInfo) fastpathEncMapInt16Uint32R(rv reflect.Value) {
  6689. fastpathTV.EncMapInt16Uint32V(rv.Interface().(map[int16]uint32), fastpathCheckNilFalse, f.e)
  6690. }
  6691. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, checkNil bool, e *Encoder) {
  6692. ee := e.e
  6693. if checkNil && v == nil {
  6694. ee.EncodeNil()
  6695. return
  6696. }
  6697. ee.EncodeMapStart(len(v))
  6698. if e.be {
  6699. for k2, v2 := range v {
  6700. ee.EncodeInt(int64(k2))
  6701. ee.EncodeUint(uint64(v2))
  6702. }
  6703. } else {
  6704. j := 0
  6705. for k2, v2 := range v {
  6706. if j > 0 {
  6707. ee.EncodeMapEntrySeparator()
  6708. }
  6709. ee.EncodeInt(int64(k2))
  6710. ee.EncodeMapKVSeparator()
  6711. ee.EncodeUint(uint64(v2))
  6712. j++
  6713. }
  6714. ee.EncodeMapEnd()
  6715. }
  6716. }
  6717. func (f encFnInfo) fastpathEncMapInt16Uint64R(rv reflect.Value) {
  6718. fastpathTV.EncMapInt16Uint64V(rv.Interface().(map[int16]uint64), fastpathCheckNilFalse, f.e)
  6719. }
  6720. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, checkNil bool, e *Encoder) {
  6721. ee := e.e
  6722. if checkNil && v == nil {
  6723. ee.EncodeNil()
  6724. return
  6725. }
  6726. ee.EncodeMapStart(len(v))
  6727. if e.be {
  6728. for k2, v2 := range v {
  6729. ee.EncodeInt(int64(k2))
  6730. ee.EncodeUint(uint64(v2))
  6731. }
  6732. } else {
  6733. j := 0
  6734. for k2, v2 := range v {
  6735. if j > 0 {
  6736. ee.EncodeMapEntrySeparator()
  6737. }
  6738. ee.EncodeInt(int64(k2))
  6739. ee.EncodeMapKVSeparator()
  6740. ee.EncodeUint(uint64(v2))
  6741. j++
  6742. }
  6743. ee.EncodeMapEnd()
  6744. }
  6745. }
  6746. func (f encFnInfo) fastpathEncMapInt16IntR(rv reflect.Value) {
  6747. fastpathTV.EncMapInt16IntV(rv.Interface().(map[int16]int), fastpathCheckNilFalse, f.e)
  6748. }
  6749. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, checkNil bool, e *Encoder) {
  6750. ee := e.e
  6751. if checkNil && v == nil {
  6752. ee.EncodeNil()
  6753. return
  6754. }
  6755. ee.EncodeMapStart(len(v))
  6756. if e.be {
  6757. for k2, v2 := range v {
  6758. ee.EncodeInt(int64(k2))
  6759. ee.EncodeInt(int64(v2))
  6760. }
  6761. } else {
  6762. j := 0
  6763. for k2, v2 := range v {
  6764. if j > 0 {
  6765. ee.EncodeMapEntrySeparator()
  6766. }
  6767. ee.EncodeInt(int64(k2))
  6768. ee.EncodeMapKVSeparator()
  6769. ee.EncodeInt(int64(v2))
  6770. j++
  6771. }
  6772. ee.EncodeMapEnd()
  6773. }
  6774. }
  6775. func (f encFnInfo) fastpathEncMapInt16Int8R(rv reflect.Value) {
  6776. fastpathTV.EncMapInt16Int8V(rv.Interface().(map[int16]int8), fastpathCheckNilFalse, f.e)
  6777. }
  6778. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, checkNil bool, e *Encoder) {
  6779. ee := e.e
  6780. if checkNil && v == nil {
  6781. ee.EncodeNil()
  6782. return
  6783. }
  6784. ee.EncodeMapStart(len(v))
  6785. if e.be {
  6786. for k2, v2 := range v {
  6787. ee.EncodeInt(int64(k2))
  6788. ee.EncodeInt(int64(v2))
  6789. }
  6790. } else {
  6791. j := 0
  6792. for k2, v2 := range v {
  6793. if j > 0 {
  6794. ee.EncodeMapEntrySeparator()
  6795. }
  6796. ee.EncodeInt(int64(k2))
  6797. ee.EncodeMapKVSeparator()
  6798. ee.EncodeInt(int64(v2))
  6799. j++
  6800. }
  6801. ee.EncodeMapEnd()
  6802. }
  6803. }
  6804. func (f encFnInfo) fastpathEncMapInt16Int16R(rv reflect.Value) {
  6805. fastpathTV.EncMapInt16Int16V(rv.Interface().(map[int16]int16), fastpathCheckNilFalse, f.e)
  6806. }
  6807. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, checkNil bool, e *Encoder) {
  6808. ee := e.e
  6809. if checkNil && v == nil {
  6810. ee.EncodeNil()
  6811. return
  6812. }
  6813. ee.EncodeMapStart(len(v))
  6814. if e.be {
  6815. for k2, v2 := range v {
  6816. ee.EncodeInt(int64(k2))
  6817. ee.EncodeInt(int64(v2))
  6818. }
  6819. } else {
  6820. j := 0
  6821. for k2, v2 := range v {
  6822. if j > 0 {
  6823. ee.EncodeMapEntrySeparator()
  6824. }
  6825. ee.EncodeInt(int64(k2))
  6826. ee.EncodeMapKVSeparator()
  6827. ee.EncodeInt(int64(v2))
  6828. j++
  6829. }
  6830. ee.EncodeMapEnd()
  6831. }
  6832. }
  6833. func (f encFnInfo) fastpathEncMapInt16Int32R(rv reflect.Value) {
  6834. fastpathTV.EncMapInt16Int32V(rv.Interface().(map[int16]int32), fastpathCheckNilFalse, f.e)
  6835. }
  6836. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, checkNil bool, e *Encoder) {
  6837. ee := e.e
  6838. if checkNil && v == nil {
  6839. ee.EncodeNil()
  6840. return
  6841. }
  6842. ee.EncodeMapStart(len(v))
  6843. if e.be {
  6844. for k2, v2 := range v {
  6845. ee.EncodeInt(int64(k2))
  6846. ee.EncodeInt(int64(v2))
  6847. }
  6848. } else {
  6849. j := 0
  6850. for k2, v2 := range v {
  6851. if j > 0 {
  6852. ee.EncodeMapEntrySeparator()
  6853. }
  6854. ee.EncodeInt(int64(k2))
  6855. ee.EncodeMapKVSeparator()
  6856. ee.EncodeInt(int64(v2))
  6857. j++
  6858. }
  6859. ee.EncodeMapEnd()
  6860. }
  6861. }
  6862. func (f encFnInfo) fastpathEncMapInt16Int64R(rv reflect.Value) {
  6863. fastpathTV.EncMapInt16Int64V(rv.Interface().(map[int16]int64), fastpathCheckNilFalse, f.e)
  6864. }
  6865. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, checkNil bool, e *Encoder) {
  6866. ee := e.e
  6867. if checkNil && v == nil {
  6868. ee.EncodeNil()
  6869. return
  6870. }
  6871. ee.EncodeMapStart(len(v))
  6872. if e.be {
  6873. for k2, v2 := range v {
  6874. ee.EncodeInt(int64(k2))
  6875. ee.EncodeInt(int64(v2))
  6876. }
  6877. } else {
  6878. j := 0
  6879. for k2, v2 := range v {
  6880. if j > 0 {
  6881. ee.EncodeMapEntrySeparator()
  6882. }
  6883. ee.EncodeInt(int64(k2))
  6884. ee.EncodeMapKVSeparator()
  6885. ee.EncodeInt(int64(v2))
  6886. j++
  6887. }
  6888. ee.EncodeMapEnd()
  6889. }
  6890. }
  6891. func (f encFnInfo) fastpathEncMapInt16Float32R(rv reflect.Value) {
  6892. fastpathTV.EncMapInt16Float32V(rv.Interface().(map[int16]float32), fastpathCheckNilFalse, f.e)
  6893. }
  6894. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, checkNil bool, e *Encoder) {
  6895. ee := e.e
  6896. if checkNil && v == nil {
  6897. ee.EncodeNil()
  6898. return
  6899. }
  6900. ee.EncodeMapStart(len(v))
  6901. if e.be {
  6902. for k2, v2 := range v {
  6903. ee.EncodeInt(int64(k2))
  6904. ee.EncodeFloat32(v2)
  6905. }
  6906. } else {
  6907. j := 0
  6908. for k2, v2 := range v {
  6909. if j > 0 {
  6910. ee.EncodeMapEntrySeparator()
  6911. }
  6912. ee.EncodeInt(int64(k2))
  6913. ee.EncodeMapKVSeparator()
  6914. ee.EncodeFloat32(v2)
  6915. j++
  6916. }
  6917. ee.EncodeMapEnd()
  6918. }
  6919. }
  6920. func (f encFnInfo) fastpathEncMapInt16Float64R(rv reflect.Value) {
  6921. fastpathTV.EncMapInt16Float64V(rv.Interface().(map[int16]float64), fastpathCheckNilFalse, f.e)
  6922. }
  6923. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, checkNil bool, e *Encoder) {
  6924. ee := e.e
  6925. if checkNil && v == nil {
  6926. ee.EncodeNil()
  6927. return
  6928. }
  6929. ee.EncodeMapStart(len(v))
  6930. if e.be {
  6931. for k2, v2 := range v {
  6932. ee.EncodeInt(int64(k2))
  6933. ee.EncodeFloat64(v2)
  6934. }
  6935. } else {
  6936. j := 0
  6937. for k2, v2 := range v {
  6938. if j > 0 {
  6939. ee.EncodeMapEntrySeparator()
  6940. }
  6941. ee.EncodeInt(int64(k2))
  6942. ee.EncodeMapKVSeparator()
  6943. ee.EncodeFloat64(v2)
  6944. j++
  6945. }
  6946. ee.EncodeMapEnd()
  6947. }
  6948. }
  6949. func (f encFnInfo) fastpathEncMapInt16BoolR(rv reflect.Value) {
  6950. fastpathTV.EncMapInt16BoolV(rv.Interface().(map[int16]bool), fastpathCheckNilFalse, f.e)
  6951. }
  6952. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, checkNil bool, e *Encoder) {
  6953. ee := e.e
  6954. if checkNil && v == nil {
  6955. ee.EncodeNil()
  6956. return
  6957. }
  6958. ee.EncodeMapStart(len(v))
  6959. if e.be {
  6960. for k2, v2 := range v {
  6961. ee.EncodeInt(int64(k2))
  6962. ee.EncodeBool(v2)
  6963. }
  6964. } else {
  6965. j := 0
  6966. for k2, v2 := range v {
  6967. if j > 0 {
  6968. ee.EncodeMapEntrySeparator()
  6969. }
  6970. ee.EncodeInt(int64(k2))
  6971. ee.EncodeMapKVSeparator()
  6972. ee.EncodeBool(v2)
  6973. j++
  6974. }
  6975. ee.EncodeMapEnd()
  6976. }
  6977. }
  6978. func (f encFnInfo) fastpathEncMapInt32IntfR(rv reflect.Value) {
  6979. fastpathTV.EncMapInt32IntfV(rv.Interface().(map[int32]interface{}), fastpathCheckNilFalse, f.e)
  6980. }
  6981. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, checkNil bool, e *Encoder) {
  6982. ee := e.e
  6983. if checkNil && v == nil {
  6984. ee.EncodeNil()
  6985. return
  6986. }
  6987. ee.EncodeMapStart(len(v))
  6988. if e.be {
  6989. for k2, v2 := range v {
  6990. ee.EncodeInt(int64(k2))
  6991. e.encode(v2)
  6992. }
  6993. } else {
  6994. j := 0
  6995. for k2, v2 := range v {
  6996. if j > 0 {
  6997. ee.EncodeMapEntrySeparator()
  6998. }
  6999. ee.EncodeInt(int64(k2))
  7000. ee.EncodeMapKVSeparator()
  7001. e.encode(v2)
  7002. j++
  7003. }
  7004. ee.EncodeMapEnd()
  7005. }
  7006. }
  7007. func (f encFnInfo) fastpathEncMapInt32StringR(rv reflect.Value) {
  7008. fastpathTV.EncMapInt32StringV(rv.Interface().(map[int32]string), fastpathCheckNilFalse, f.e)
  7009. }
  7010. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, checkNil bool, e *Encoder) {
  7011. ee := e.e
  7012. if checkNil && v == nil {
  7013. ee.EncodeNil()
  7014. return
  7015. }
  7016. ee.EncodeMapStart(len(v))
  7017. if e.be {
  7018. for k2, v2 := range v {
  7019. ee.EncodeInt(int64(k2))
  7020. ee.EncodeString(c_UTF8, v2)
  7021. }
  7022. } else {
  7023. j := 0
  7024. for k2, v2 := range v {
  7025. if j > 0 {
  7026. ee.EncodeMapEntrySeparator()
  7027. }
  7028. ee.EncodeInt(int64(k2))
  7029. ee.EncodeMapKVSeparator()
  7030. ee.EncodeString(c_UTF8, v2)
  7031. j++
  7032. }
  7033. ee.EncodeMapEnd()
  7034. }
  7035. }
  7036. func (f encFnInfo) fastpathEncMapInt32UintR(rv reflect.Value) {
  7037. fastpathTV.EncMapInt32UintV(rv.Interface().(map[int32]uint), fastpathCheckNilFalse, f.e)
  7038. }
  7039. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, checkNil bool, e *Encoder) {
  7040. ee := e.e
  7041. if checkNil && v == nil {
  7042. ee.EncodeNil()
  7043. return
  7044. }
  7045. ee.EncodeMapStart(len(v))
  7046. if e.be {
  7047. for k2, v2 := range v {
  7048. ee.EncodeInt(int64(k2))
  7049. ee.EncodeUint(uint64(v2))
  7050. }
  7051. } else {
  7052. j := 0
  7053. for k2, v2 := range v {
  7054. if j > 0 {
  7055. ee.EncodeMapEntrySeparator()
  7056. }
  7057. ee.EncodeInt(int64(k2))
  7058. ee.EncodeMapKVSeparator()
  7059. ee.EncodeUint(uint64(v2))
  7060. j++
  7061. }
  7062. ee.EncodeMapEnd()
  7063. }
  7064. }
  7065. func (f encFnInfo) fastpathEncMapInt32Uint8R(rv reflect.Value) {
  7066. fastpathTV.EncMapInt32Uint8V(rv.Interface().(map[int32]uint8), fastpathCheckNilFalse, f.e)
  7067. }
  7068. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, checkNil bool, e *Encoder) {
  7069. ee := e.e
  7070. if checkNil && v == nil {
  7071. ee.EncodeNil()
  7072. return
  7073. }
  7074. ee.EncodeMapStart(len(v))
  7075. if e.be {
  7076. for k2, v2 := range v {
  7077. ee.EncodeInt(int64(k2))
  7078. ee.EncodeUint(uint64(v2))
  7079. }
  7080. } else {
  7081. j := 0
  7082. for k2, v2 := range v {
  7083. if j > 0 {
  7084. ee.EncodeMapEntrySeparator()
  7085. }
  7086. ee.EncodeInt(int64(k2))
  7087. ee.EncodeMapKVSeparator()
  7088. ee.EncodeUint(uint64(v2))
  7089. j++
  7090. }
  7091. ee.EncodeMapEnd()
  7092. }
  7093. }
  7094. func (f encFnInfo) fastpathEncMapInt32Uint16R(rv reflect.Value) {
  7095. fastpathTV.EncMapInt32Uint16V(rv.Interface().(map[int32]uint16), fastpathCheckNilFalse, f.e)
  7096. }
  7097. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, checkNil bool, e *Encoder) {
  7098. ee := e.e
  7099. if checkNil && v == nil {
  7100. ee.EncodeNil()
  7101. return
  7102. }
  7103. ee.EncodeMapStart(len(v))
  7104. if e.be {
  7105. for k2, v2 := range v {
  7106. ee.EncodeInt(int64(k2))
  7107. ee.EncodeUint(uint64(v2))
  7108. }
  7109. } else {
  7110. j := 0
  7111. for k2, v2 := range v {
  7112. if j > 0 {
  7113. ee.EncodeMapEntrySeparator()
  7114. }
  7115. ee.EncodeInt(int64(k2))
  7116. ee.EncodeMapKVSeparator()
  7117. ee.EncodeUint(uint64(v2))
  7118. j++
  7119. }
  7120. ee.EncodeMapEnd()
  7121. }
  7122. }
  7123. func (f encFnInfo) fastpathEncMapInt32Uint32R(rv reflect.Value) {
  7124. fastpathTV.EncMapInt32Uint32V(rv.Interface().(map[int32]uint32), fastpathCheckNilFalse, f.e)
  7125. }
  7126. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, checkNil bool, e *Encoder) {
  7127. ee := e.e
  7128. if checkNil && v == nil {
  7129. ee.EncodeNil()
  7130. return
  7131. }
  7132. ee.EncodeMapStart(len(v))
  7133. if e.be {
  7134. for k2, v2 := range v {
  7135. ee.EncodeInt(int64(k2))
  7136. ee.EncodeUint(uint64(v2))
  7137. }
  7138. } else {
  7139. j := 0
  7140. for k2, v2 := range v {
  7141. if j > 0 {
  7142. ee.EncodeMapEntrySeparator()
  7143. }
  7144. ee.EncodeInt(int64(k2))
  7145. ee.EncodeMapKVSeparator()
  7146. ee.EncodeUint(uint64(v2))
  7147. j++
  7148. }
  7149. ee.EncodeMapEnd()
  7150. }
  7151. }
  7152. func (f encFnInfo) fastpathEncMapInt32Uint64R(rv reflect.Value) {
  7153. fastpathTV.EncMapInt32Uint64V(rv.Interface().(map[int32]uint64), fastpathCheckNilFalse, f.e)
  7154. }
  7155. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, checkNil bool, e *Encoder) {
  7156. ee := e.e
  7157. if checkNil && v == nil {
  7158. ee.EncodeNil()
  7159. return
  7160. }
  7161. ee.EncodeMapStart(len(v))
  7162. if e.be {
  7163. for k2, v2 := range v {
  7164. ee.EncodeInt(int64(k2))
  7165. ee.EncodeUint(uint64(v2))
  7166. }
  7167. } else {
  7168. j := 0
  7169. for k2, v2 := range v {
  7170. if j > 0 {
  7171. ee.EncodeMapEntrySeparator()
  7172. }
  7173. ee.EncodeInt(int64(k2))
  7174. ee.EncodeMapKVSeparator()
  7175. ee.EncodeUint(uint64(v2))
  7176. j++
  7177. }
  7178. ee.EncodeMapEnd()
  7179. }
  7180. }
  7181. func (f encFnInfo) fastpathEncMapInt32IntR(rv reflect.Value) {
  7182. fastpathTV.EncMapInt32IntV(rv.Interface().(map[int32]int), fastpathCheckNilFalse, f.e)
  7183. }
  7184. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, checkNil bool, e *Encoder) {
  7185. ee := e.e
  7186. if checkNil && v == nil {
  7187. ee.EncodeNil()
  7188. return
  7189. }
  7190. ee.EncodeMapStart(len(v))
  7191. if e.be {
  7192. for k2, v2 := range v {
  7193. ee.EncodeInt(int64(k2))
  7194. ee.EncodeInt(int64(v2))
  7195. }
  7196. } else {
  7197. j := 0
  7198. for k2, v2 := range v {
  7199. if j > 0 {
  7200. ee.EncodeMapEntrySeparator()
  7201. }
  7202. ee.EncodeInt(int64(k2))
  7203. ee.EncodeMapKVSeparator()
  7204. ee.EncodeInt(int64(v2))
  7205. j++
  7206. }
  7207. ee.EncodeMapEnd()
  7208. }
  7209. }
  7210. func (f encFnInfo) fastpathEncMapInt32Int8R(rv reflect.Value) {
  7211. fastpathTV.EncMapInt32Int8V(rv.Interface().(map[int32]int8), fastpathCheckNilFalse, f.e)
  7212. }
  7213. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, checkNil bool, e *Encoder) {
  7214. ee := e.e
  7215. if checkNil && v == nil {
  7216. ee.EncodeNil()
  7217. return
  7218. }
  7219. ee.EncodeMapStart(len(v))
  7220. if e.be {
  7221. for k2, v2 := range v {
  7222. ee.EncodeInt(int64(k2))
  7223. ee.EncodeInt(int64(v2))
  7224. }
  7225. } else {
  7226. j := 0
  7227. for k2, v2 := range v {
  7228. if j > 0 {
  7229. ee.EncodeMapEntrySeparator()
  7230. }
  7231. ee.EncodeInt(int64(k2))
  7232. ee.EncodeMapKVSeparator()
  7233. ee.EncodeInt(int64(v2))
  7234. j++
  7235. }
  7236. ee.EncodeMapEnd()
  7237. }
  7238. }
  7239. func (f encFnInfo) fastpathEncMapInt32Int16R(rv reflect.Value) {
  7240. fastpathTV.EncMapInt32Int16V(rv.Interface().(map[int32]int16), fastpathCheckNilFalse, f.e)
  7241. }
  7242. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, checkNil bool, e *Encoder) {
  7243. ee := e.e
  7244. if checkNil && v == nil {
  7245. ee.EncodeNil()
  7246. return
  7247. }
  7248. ee.EncodeMapStart(len(v))
  7249. if e.be {
  7250. for k2, v2 := range v {
  7251. ee.EncodeInt(int64(k2))
  7252. ee.EncodeInt(int64(v2))
  7253. }
  7254. } else {
  7255. j := 0
  7256. for k2, v2 := range v {
  7257. if j > 0 {
  7258. ee.EncodeMapEntrySeparator()
  7259. }
  7260. ee.EncodeInt(int64(k2))
  7261. ee.EncodeMapKVSeparator()
  7262. ee.EncodeInt(int64(v2))
  7263. j++
  7264. }
  7265. ee.EncodeMapEnd()
  7266. }
  7267. }
  7268. func (f encFnInfo) fastpathEncMapInt32Int32R(rv reflect.Value) {
  7269. fastpathTV.EncMapInt32Int32V(rv.Interface().(map[int32]int32), fastpathCheckNilFalse, f.e)
  7270. }
  7271. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, checkNil bool, e *Encoder) {
  7272. ee := e.e
  7273. if checkNil && v == nil {
  7274. ee.EncodeNil()
  7275. return
  7276. }
  7277. ee.EncodeMapStart(len(v))
  7278. if e.be {
  7279. for k2, v2 := range v {
  7280. ee.EncodeInt(int64(k2))
  7281. ee.EncodeInt(int64(v2))
  7282. }
  7283. } else {
  7284. j := 0
  7285. for k2, v2 := range v {
  7286. if j > 0 {
  7287. ee.EncodeMapEntrySeparator()
  7288. }
  7289. ee.EncodeInt(int64(k2))
  7290. ee.EncodeMapKVSeparator()
  7291. ee.EncodeInt(int64(v2))
  7292. j++
  7293. }
  7294. ee.EncodeMapEnd()
  7295. }
  7296. }
  7297. func (f encFnInfo) fastpathEncMapInt32Int64R(rv reflect.Value) {
  7298. fastpathTV.EncMapInt32Int64V(rv.Interface().(map[int32]int64), fastpathCheckNilFalse, f.e)
  7299. }
  7300. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, checkNil bool, e *Encoder) {
  7301. ee := e.e
  7302. if checkNil && v == nil {
  7303. ee.EncodeNil()
  7304. return
  7305. }
  7306. ee.EncodeMapStart(len(v))
  7307. if e.be {
  7308. for k2, v2 := range v {
  7309. ee.EncodeInt(int64(k2))
  7310. ee.EncodeInt(int64(v2))
  7311. }
  7312. } else {
  7313. j := 0
  7314. for k2, v2 := range v {
  7315. if j > 0 {
  7316. ee.EncodeMapEntrySeparator()
  7317. }
  7318. ee.EncodeInt(int64(k2))
  7319. ee.EncodeMapKVSeparator()
  7320. ee.EncodeInt(int64(v2))
  7321. j++
  7322. }
  7323. ee.EncodeMapEnd()
  7324. }
  7325. }
  7326. func (f encFnInfo) fastpathEncMapInt32Float32R(rv reflect.Value) {
  7327. fastpathTV.EncMapInt32Float32V(rv.Interface().(map[int32]float32), fastpathCheckNilFalse, f.e)
  7328. }
  7329. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, checkNil bool, e *Encoder) {
  7330. ee := e.e
  7331. if checkNil && v == nil {
  7332. ee.EncodeNil()
  7333. return
  7334. }
  7335. ee.EncodeMapStart(len(v))
  7336. if e.be {
  7337. for k2, v2 := range v {
  7338. ee.EncodeInt(int64(k2))
  7339. ee.EncodeFloat32(v2)
  7340. }
  7341. } else {
  7342. j := 0
  7343. for k2, v2 := range v {
  7344. if j > 0 {
  7345. ee.EncodeMapEntrySeparator()
  7346. }
  7347. ee.EncodeInt(int64(k2))
  7348. ee.EncodeMapKVSeparator()
  7349. ee.EncodeFloat32(v2)
  7350. j++
  7351. }
  7352. ee.EncodeMapEnd()
  7353. }
  7354. }
  7355. func (f encFnInfo) fastpathEncMapInt32Float64R(rv reflect.Value) {
  7356. fastpathTV.EncMapInt32Float64V(rv.Interface().(map[int32]float64), fastpathCheckNilFalse, f.e)
  7357. }
  7358. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, checkNil bool, e *Encoder) {
  7359. ee := e.e
  7360. if checkNil && v == nil {
  7361. ee.EncodeNil()
  7362. return
  7363. }
  7364. ee.EncodeMapStart(len(v))
  7365. if e.be {
  7366. for k2, v2 := range v {
  7367. ee.EncodeInt(int64(k2))
  7368. ee.EncodeFloat64(v2)
  7369. }
  7370. } else {
  7371. j := 0
  7372. for k2, v2 := range v {
  7373. if j > 0 {
  7374. ee.EncodeMapEntrySeparator()
  7375. }
  7376. ee.EncodeInt(int64(k2))
  7377. ee.EncodeMapKVSeparator()
  7378. ee.EncodeFloat64(v2)
  7379. j++
  7380. }
  7381. ee.EncodeMapEnd()
  7382. }
  7383. }
  7384. func (f encFnInfo) fastpathEncMapInt32BoolR(rv reflect.Value) {
  7385. fastpathTV.EncMapInt32BoolV(rv.Interface().(map[int32]bool), fastpathCheckNilFalse, f.e)
  7386. }
  7387. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, checkNil bool, e *Encoder) {
  7388. ee := e.e
  7389. if checkNil && v == nil {
  7390. ee.EncodeNil()
  7391. return
  7392. }
  7393. ee.EncodeMapStart(len(v))
  7394. if e.be {
  7395. for k2, v2 := range v {
  7396. ee.EncodeInt(int64(k2))
  7397. ee.EncodeBool(v2)
  7398. }
  7399. } else {
  7400. j := 0
  7401. for k2, v2 := range v {
  7402. if j > 0 {
  7403. ee.EncodeMapEntrySeparator()
  7404. }
  7405. ee.EncodeInt(int64(k2))
  7406. ee.EncodeMapKVSeparator()
  7407. ee.EncodeBool(v2)
  7408. j++
  7409. }
  7410. ee.EncodeMapEnd()
  7411. }
  7412. }
  7413. func (f encFnInfo) fastpathEncMapInt64IntfR(rv reflect.Value) {
  7414. fastpathTV.EncMapInt64IntfV(rv.Interface().(map[int64]interface{}), fastpathCheckNilFalse, f.e)
  7415. }
  7416. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, checkNil bool, e *Encoder) {
  7417. ee := e.e
  7418. if checkNil && v == nil {
  7419. ee.EncodeNil()
  7420. return
  7421. }
  7422. ee.EncodeMapStart(len(v))
  7423. if e.be {
  7424. for k2, v2 := range v {
  7425. ee.EncodeInt(int64(k2))
  7426. e.encode(v2)
  7427. }
  7428. } else {
  7429. j := 0
  7430. for k2, v2 := range v {
  7431. if j > 0 {
  7432. ee.EncodeMapEntrySeparator()
  7433. }
  7434. ee.EncodeInt(int64(k2))
  7435. ee.EncodeMapKVSeparator()
  7436. e.encode(v2)
  7437. j++
  7438. }
  7439. ee.EncodeMapEnd()
  7440. }
  7441. }
  7442. func (f encFnInfo) fastpathEncMapInt64StringR(rv reflect.Value) {
  7443. fastpathTV.EncMapInt64StringV(rv.Interface().(map[int64]string), fastpathCheckNilFalse, f.e)
  7444. }
  7445. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, checkNil bool, e *Encoder) {
  7446. ee := e.e
  7447. if checkNil && v == nil {
  7448. ee.EncodeNil()
  7449. return
  7450. }
  7451. ee.EncodeMapStart(len(v))
  7452. if e.be {
  7453. for k2, v2 := range v {
  7454. ee.EncodeInt(int64(k2))
  7455. ee.EncodeString(c_UTF8, v2)
  7456. }
  7457. } else {
  7458. j := 0
  7459. for k2, v2 := range v {
  7460. if j > 0 {
  7461. ee.EncodeMapEntrySeparator()
  7462. }
  7463. ee.EncodeInt(int64(k2))
  7464. ee.EncodeMapKVSeparator()
  7465. ee.EncodeString(c_UTF8, v2)
  7466. j++
  7467. }
  7468. ee.EncodeMapEnd()
  7469. }
  7470. }
  7471. func (f encFnInfo) fastpathEncMapInt64UintR(rv reflect.Value) {
  7472. fastpathTV.EncMapInt64UintV(rv.Interface().(map[int64]uint), fastpathCheckNilFalse, f.e)
  7473. }
  7474. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, checkNil bool, e *Encoder) {
  7475. ee := e.e
  7476. if checkNil && v == nil {
  7477. ee.EncodeNil()
  7478. return
  7479. }
  7480. ee.EncodeMapStart(len(v))
  7481. if e.be {
  7482. for k2, v2 := range v {
  7483. ee.EncodeInt(int64(k2))
  7484. ee.EncodeUint(uint64(v2))
  7485. }
  7486. } else {
  7487. j := 0
  7488. for k2, v2 := range v {
  7489. if j > 0 {
  7490. ee.EncodeMapEntrySeparator()
  7491. }
  7492. ee.EncodeInt(int64(k2))
  7493. ee.EncodeMapKVSeparator()
  7494. ee.EncodeUint(uint64(v2))
  7495. j++
  7496. }
  7497. ee.EncodeMapEnd()
  7498. }
  7499. }
  7500. func (f encFnInfo) fastpathEncMapInt64Uint8R(rv reflect.Value) {
  7501. fastpathTV.EncMapInt64Uint8V(rv.Interface().(map[int64]uint8), fastpathCheckNilFalse, f.e)
  7502. }
  7503. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, checkNil bool, e *Encoder) {
  7504. ee := e.e
  7505. if checkNil && v == nil {
  7506. ee.EncodeNil()
  7507. return
  7508. }
  7509. ee.EncodeMapStart(len(v))
  7510. if e.be {
  7511. for k2, v2 := range v {
  7512. ee.EncodeInt(int64(k2))
  7513. ee.EncodeUint(uint64(v2))
  7514. }
  7515. } else {
  7516. j := 0
  7517. for k2, v2 := range v {
  7518. if j > 0 {
  7519. ee.EncodeMapEntrySeparator()
  7520. }
  7521. ee.EncodeInt(int64(k2))
  7522. ee.EncodeMapKVSeparator()
  7523. ee.EncodeUint(uint64(v2))
  7524. j++
  7525. }
  7526. ee.EncodeMapEnd()
  7527. }
  7528. }
  7529. func (f encFnInfo) fastpathEncMapInt64Uint16R(rv reflect.Value) {
  7530. fastpathTV.EncMapInt64Uint16V(rv.Interface().(map[int64]uint16), fastpathCheckNilFalse, f.e)
  7531. }
  7532. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, checkNil bool, e *Encoder) {
  7533. ee := e.e
  7534. if checkNil && v == nil {
  7535. ee.EncodeNil()
  7536. return
  7537. }
  7538. ee.EncodeMapStart(len(v))
  7539. if e.be {
  7540. for k2, v2 := range v {
  7541. ee.EncodeInt(int64(k2))
  7542. ee.EncodeUint(uint64(v2))
  7543. }
  7544. } else {
  7545. j := 0
  7546. for k2, v2 := range v {
  7547. if j > 0 {
  7548. ee.EncodeMapEntrySeparator()
  7549. }
  7550. ee.EncodeInt(int64(k2))
  7551. ee.EncodeMapKVSeparator()
  7552. ee.EncodeUint(uint64(v2))
  7553. j++
  7554. }
  7555. ee.EncodeMapEnd()
  7556. }
  7557. }
  7558. func (f encFnInfo) fastpathEncMapInt64Uint32R(rv reflect.Value) {
  7559. fastpathTV.EncMapInt64Uint32V(rv.Interface().(map[int64]uint32), fastpathCheckNilFalse, f.e)
  7560. }
  7561. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, checkNil bool, e *Encoder) {
  7562. ee := e.e
  7563. if checkNil && v == nil {
  7564. ee.EncodeNil()
  7565. return
  7566. }
  7567. ee.EncodeMapStart(len(v))
  7568. if e.be {
  7569. for k2, v2 := range v {
  7570. ee.EncodeInt(int64(k2))
  7571. ee.EncodeUint(uint64(v2))
  7572. }
  7573. } else {
  7574. j := 0
  7575. for k2, v2 := range v {
  7576. if j > 0 {
  7577. ee.EncodeMapEntrySeparator()
  7578. }
  7579. ee.EncodeInt(int64(k2))
  7580. ee.EncodeMapKVSeparator()
  7581. ee.EncodeUint(uint64(v2))
  7582. j++
  7583. }
  7584. ee.EncodeMapEnd()
  7585. }
  7586. }
  7587. func (f encFnInfo) fastpathEncMapInt64Uint64R(rv reflect.Value) {
  7588. fastpathTV.EncMapInt64Uint64V(rv.Interface().(map[int64]uint64), fastpathCheckNilFalse, f.e)
  7589. }
  7590. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, checkNil bool, e *Encoder) {
  7591. ee := e.e
  7592. if checkNil && v == nil {
  7593. ee.EncodeNil()
  7594. return
  7595. }
  7596. ee.EncodeMapStart(len(v))
  7597. if e.be {
  7598. for k2, v2 := range v {
  7599. ee.EncodeInt(int64(k2))
  7600. ee.EncodeUint(uint64(v2))
  7601. }
  7602. } else {
  7603. j := 0
  7604. for k2, v2 := range v {
  7605. if j > 0 {
  7606. ee.EncodeMapEntrySeparator()
  7607. }
  7608. ee.EncodeInt(int64(k2))
  7609. ee.EncodeMapKVSeparator()
  7610. ee.EncodeUint(uint64(v2))
  7611. j++
  7612. }
  7613. ee.EncodeMapEnd()
  7614. }
  7615. }
  7616. func (f encFnInfo) fastpathEncMapInt64IntR(rv reflect.Value) {
  7617. fastpathTV.EncMapInt64IntV(rv.Interface().(map[int64]int), fastpathCheckNilFalse, f.e)
  7618. }
  7619. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, checkNil bool, e *Encoder) {
  7620. ee := e.e
  7621. if checkNil && v == nil {
  7622. ee.EncodeNil()
  7623. return
  7624. }
  7625. ee.EncodeMapStart(len(v))
  7626. if e.be {
  7627. for k2, v2 := range v {
  7628. ee.EncodeInt(int64(k2))
  7629. ee.EncodeInt(int64(v2))
  7630. }
  7631. } else {
  7632. j := 0
  7633. for k2, v2 := range v {
  7634. if j > 0 {
  7635. ee.EncodeMapEntrySeparator()
  7636. }
  7637. ee.EncodeInt(int64(k2))
  7638. ee.EncodeMapKVSeparator()
  7639. ee.EncodeInt(int64(v2))
  7640. j++
  7641. }
  7642. ee.EncodeMapEnd()
  7643. }
  7644. }
  7645. func (f encFnInfo) fastpathEncMapInt64Int8R(rv reflect.Value) {
  7646. fastpathTV.EncMapInt64Int8V(rv.Interface().(map[int64]int8), fastpathCheckNilFalse, f.e)
  7647. }
  7648. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, checkNil bool, e *Encoder) {
  7649. ee := e.e
  7650. if checkNil && v == nil {
  7651. ee.EncodeNil()
  7652. return
  7653. }
  7654. ee.EncodeMapStart(len(v))
  7655. if e.be {
  7656. for k2, v2 := range v {
  7657. ee.EncodeInt(int64(k2))
  7658. ee.EncodeInt(int64(v2))
  7659. }
  7660. } else {
  7661. j := 0
  7662. for k2, v2 := range v {
  7663. if j > 0 {
  7664. ee.EncodeMapEntrySeparator()
  7665. }
  7666. ee.EncodeInt(int64(k2))
  7667. ee.EncodeMapKVSeparator()
  7668. ee.EncodeInt(int64(v2))
  7669. j++
  7670. }
  7671. ee.EncodeMapEnd()
  7672. }
  7673. }
  7674. func (f encFnInfo) fastpathEncMapInt64Int16R(rv reflect.Value) {
  7675. fastpathTV.EncMapInt64Int16V(rv.Interface().(map[int64]int16), fastpathCheckNilFalse, f.e)
  7676. }
  7677. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, checkNil bool, e *Encoder) {
  7678. ee := e.e
  7679. if checkNil && v == nil {
  7680. ee.EncodeNil()
  7681. return
  7682. }
  7683. ee.EncodeMapStart(len(v))
  7684. if e.be {
  7685. for k2, v2 := range v {
  7686. ee.EncodeInt(int64(k2))
  7687. ee.EncodeInt(int64(v2))
  7688. }
  7689. } else {
  7690. j := 0
  7691. for k2, v2 := range v {
  7692. if j > 0 {
  7693. ee.EncodeMapEntrySeparator()
  7694. }
  7695. ee.EncodeInt(int64(k2))
  7696. ee.EncodeMapKVSeparator()
  7697. ee.EncodeInt(int64(v2))
  7698. j++
  7699. }
  7700. ee.EncodeMapEnd()
  7701. }
  7702. }
  7703. func (f encFnInfo) fastpathEncMapInt64Int32R(rv reflect.Value) {
  7704. fastpathTV.EncMapInt64Int32V(rv.Interface().(map[int64]int32), fastpathCheckNilFalse, f.e)
  7705. }
  7706. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, checkNil bool, e *Encoder) {
  7707. ee := e.e
  7708. if checkNil && v == nil {
  7709. ee.EncodeNil()
  7710. return
  7711. }
  7712. ee.EncodeMapStart(len(v))
  7713. if e.be {
  7714. for k2, v2 := range v {
  7715. ee.EncodeInt(int64(k2))
  7716. ee.EncodeInt(int64(v2))
  7717. }
  7718. } else {
  7719. j := 0
  7720. for k2, v2 := range v {
  7721. if j > 0 {
  7722. ee.EncodeMapEntrySeparator()
  7723. }
  7724. ee.EncodeInt(int64(k2))
  7725. ee.EncodeMapKVSeparator()
  7726. ee.EncodeInt(int64(v2))
  7727. j++
  7728. }
  7729. ee.EncodeMapEnd()
  7730. }
  7731. }
  7732. func (f encFnInfo) fastpathEncMapInt64Int64R(rv reflect.Value) {
  7733. fastpathTV.EncMapInt64Int64V(rv.Interface().(map[int64]int64), fastpathCheckNilFalse, f.e)
  7734. }
  7735. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, checkNil bool, e *Encoder) {
  7736. ee := e.e
  7737. if checkNil && v == nil {
  7738. ee.EncodeNil()
  7739. return
  7740. }
  7741. ee.EncodeMapStart(len(v))
  7742. if e.be {
  7743. for k2, v2 := range v {
  7744. ee.EncodeInt(int64(k2))
  7745. ee.EncodeInt(int64(v2))
  7746. }
  7747. } else {
  7748. j := 0
  7749. for k2, v2 := range v {
  7750. if j > 0 {
  7751. ee.EncodeMapEntrySeparator()
  7752. }
  7753. ee.EncodeInt(int64(k2))
  7754. ee.EncodeMapKVSeparator()
  7755. ee.EncodeInt(int64(v2))
  7756. j++
  7757. }
  7758. ee.EncodeMapEnd()
  7759. }
  7760. }
  7761. func (f encFnInfo) fastpathEncMapInt64Float32R(rv reflect.Value) {
  7762. fastpathTV.EncMapInt64Float32V(rv.Interface().(map[int64]float32), fastpathCheckNilFalse, f.e)
  7763. }
  7764. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, checkNil bool, e *Encoder) {
  7765. ee := e.e
  7766. if checkNil && v == nil {
  7767. ee.EncodeNil()
  7768. return
  7769. }
  7770. ee.EncodeMapStart(len(v))
  7771. if e.be {
  7772. for k2, v2 := range v {
  7773. ee.EncodeInt(int64(k2))
  7774. ee.EncodeFloat32(v2)
  7775. }
  7776. } else {
  7777. j := 0
  7778. for k2, v2 := range v {
  7779. if j > 0 {
  7780. ee.EncodeMapEntrySeparator()
  7781. }
  7782. ee.EncodeInt(int64(k2))
  7783. ee.EncodeMapKVSeparator()
  7784. ee.EncodeFloat32(v2)
  7785. j++
  7786. }
  7787. ee.EncodeMapEnd()
  7788. }
  7789. }
  7790. func (f encFnInfo) fastpathEncMapInt64Float64R(rv reflect.Value) {
  7791. fastpathTV.EncMapInt64Float64V(rv.Interface().(map[int64]float64), fastpathCheckNilFalse, f.e)
  7792. }
  7793. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, checkNil bool, e *Encoder) {
  7794. ee := e.e
  7795. if checkNil && v == nil {
  7796. ee.EncodeNil()
  7797. return
  7798. }
  7799. ee.EncodeMapStart(len(v))
  7800. if e.be {
  7801. for k2, v2 := range v {
  7802. ee.EncodeInt(int64(k2))
  7803. ee.EncodeFloat64(v2)
  7804. }
  7805. } else {
  7806. j := 0
  7807. for k2, v2 := range v {
  7808. if j > 0 {
  7809. ee.EncodeMapEntrySeparator()
  7810. }
  7811. ee.EncodeInt(int64(k2))
  7812. ee.EncodeMapKVSeparator()
  7813. ee.EncodeFloat64(v2)
  7814. j++
  7815. }
  7816. ee.EncodeMapEnd()
  7817. }
  7818. }
  7819. func (f encFnInfo) fastpathEncMapInt64BoolR(rv reflect.Value) {
  7820. fastpathTV.EncMapInt64BoolV(rv.Interface().(map[int64]bool), fastpathCheckNilFalse, f.e)
  7821. }
  7822. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, checkNil bool, e *Encoder) {
  7823. ee := e.e
  7824. if checkNil && v == nil {
  7825. ee.EncodeNil()
  7826. return
  7827. }
  7828. ee.EncodeMapStart(len(v))
  7829. if e.be {
  7830. for k2, v2 := range v {
  7831. ee.EncodeInt(int64(k2))
  7832. ee.EncodeBool(v2)
  7833. }
  7834. } else {
  7835. j := 0
  7836. for k2, v2 := range v {
  7837. if j > 0 {
  7838. ee.EncodeMapEntrySeparator()
  7839. }
  7840. ee.EncodeInt(int64(k2))
  7841. ee.EncodeMapKVSeparator()
  7842. ee.EncodeBool(v2)
  7843. j++
  7844. }
  7845. ee.EncodeMapEnd()
  7846. }
  7847. }
  7848. func (f encFnInfo) fastpathEncMapBoolIntfR(rv reflect.Value) {
  7849. fastpathTV.EncMapBoolIntfV(rv.Interface().(map[bool]interface{}), fastpathCheckNilFalse, f.e)
  7850. }
  7851. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, checkNil bool, e *Encoder) {
  7852. ee := e.e
  7853. if checkNil && v == nil {
  7854. ee.EncodeNil()
  7855. return
  7856. }
  7857. ee.EncodeMapStart(len(v))
  7858. if e.be {
  7859. for k2, v2 := range v {
  7860. ee.EncodeBool(k2)
  7861. e.encode(v2)
  7862. }
  7863. } else {
  7864. j := 0
  7865. for k2, v2 := range v {
  7866. if j > 0 {
  7867. ee.EncodeMapEntrySeparator()
  7868. }
  7869. ee.EncodeBool(k2)
  7870. ee.EncodeMapKVSeparator()
  7871. e.encode(v2)
  7872. j++
  7873. }
  7874. ee.EncodeMapEnd()
  7875. }
  7876. }
  7877. func (f encFnInfo) fastpathEncMapBoolStringR(rv reflect.Value) {
  7878. fastpathTV.EncMapBoolStringV(rv.Interface().(map[bool]string), fastpathCheckNilFalse, f.e)
  7879. }
  7880. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, checkNil bool, e *Encoder) {
  7881. ee := e.e
  7882. if checkNil && v == nil {
  7883. ee.EncodeNil()
  7884. return
  7885. }
  7886. ee.EncodeMapStart(len(v))
  7887. if e.be {
  7888. for k2, v2 := range v {
  7889. ee.EncodeBool(k2)
  7890. ee.EncodeString(c_UTF8, v2)
  7891. }
  7892. } else {
  7893. j := 0
  7894. for k2, v2 := range v {
  7895. if j > 0 {
  7896. ee.EncodeMapEntrySeparator()
  7897. }
  7898. ee.EncodeBool(k2)
  7899. ee.EncodeMapKVSeparator()
  7900. ee.EncodeString(c_UTF8, v2)
  7901. j++
  7902. }
  7903. ee.EncodeMapEnd()
  7904. }
  7905. }
  7906. func (f encFnInfo) fastpathEncMapBoolUintR(rv reflect.Value) {
  7907. fastpathTV.EncMapBoolUintV(rv.Interface().(map[bool]uint), fastpathCheckNilFalse, f.e)
  7908. }
  7909. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, checkNil bool, e *Encoder) {
  7910. ee := e.e
  7911. if checkNil && v == nil {
  7912. ee.EncodeNil()
  7913. return
  7914. }
  7915. ee.EncodeMapStart(len(v))
  7916. if e.be {
  7917. for k2, v2 := range v {
  7918. ee.EncodeBool(k2)
  7919. ee.EncodeUint(uint64(v2))
  7920. }
  7921. } else {
  7922. j := 0
  7923. for k2, v2 := range v {
  7924. if j > 0 {
  7925. ee.EncodeMapEntrySeparator()
  7926. }
  7927. ee.EncodeBool(k2)
  7928. ee.EncodeMapKVSeparator()
  7929. ee.EncodeUint(uint64(v2))
  7930. j++
  7931. }
  7932. ee.EncodeMapEnd()
  7933. }
  7934. }
  7935. func (f encFnInfo) fastpathEncMapBoolUint8R(rv reflect.Value) {
  7936. fastpathTV.EncMapBoolUint8V(rv.Interface().(map[bool]uint8), fastpathCheckNilFalse, f.e)
  7937. }
  7938. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, checkNil bool, e *Encoder) {
  7939. ee := e.e
  7940. if checkNil && v == nil {
  7941. ee.EncodeNil()
  7942. return
  7943. }
  7944. ee.EncodeMapStart(len(v))
  7945. if e.be {
  7946. for k2, v2 := range v {
  7947. ee.EncodeBool(k2)
  7948. ee.EncodeUint(uint64(v2))
  7949. }
  7950. } else {
  7951. j := 0
  7952. for k2, v2 := range v {
  7953. if j > 0 {
  7954. ee.EncodeMapEntrySeparator()
  7955. }
  7956. ee.EncodeBool(k2)
  7957. ee.EncodeMapKVSeparator()
  7958. ee.EncodeUint(uint64(v2))
  7959. j++
  7960. }
  7961. ee.EncodeMapEnd()
  7962. }
  7963. }
  7964. func (f encFnInfo) fastpathEncMapBoolUint16R(rv reflect.Value) {
  7965. fastpathTV.EncMapBoolUint16V(rv.Interface().(map[bool]uint16), fastpathCheckNilFalse, f.e)
  7966. }
  7967. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, checkNil bool, e *Encoder) {
  7968. ee := e.e
  7969. if checkNil && v == nil {
  7970. ee.EncodeNil()
  7971. return
  7972. }
  7973. ee.EncodeMapStart(len(v))
  7974. if e.be {
  7975. for k2, v2 := range v {
  7976. ee.EncodeBool(k2)
  7977. ee.EncodeUint(uint64(v2))
  7978. }
  7979. } else {
  7980. j := 0
  7981. for k2, v2 := range v {
  7982. if j > 0 {
  7983. ee.EncodeMapEntrySeparator()
  7984. }
  7985. ee.EncodeBool(k2)
  7986. ee.EncodeMapKVSeparator()
  7987. ee.EncodeUint(uint64(v2))
  7988. j++
  7989. }
  7990. ee.EncodeMapEnd()
  7991. }
  7992. }
  7993. func (f encFnInfo) fastpathEncMapBoolUint32R(rv reflect.Value) {
  7994. fastpathTV.EncMapBoolUint32V(rv.Interface().(map[bool]uint32), fastpathCheckNilFalse, f.e)
  7995. }
  7996. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, checkNil bool, e *Encoder) {
  7997. ee := e.e
  7998. if checkNil && v == nil {
  7999. ee.EncodeNil()
  8000. return
  8001. }
  8002. ee.EncodeMapStart(len(v))
  8003. if e.be {
  8004. for k2, v2 := range v {
  8005. ee.EncodeBool(k2)
  8006. ee.EncodeUint(uint64(v2))
  8007. }
  8008. } else {
  8009. j := 0
  8010. for k2, v2 := range v {
  8011. if j > 0 {
  8012. ee.EncodeMapEntrySeparator()
  8013. }
  8014. ee.EncodeBool(k2)
  8015. ee.EncodeMapKVSeparator()
  8016. ee.EncodeUint(uint64(v2))
  8017. j++
  8018. }
  8019. ee.EncodeMapEnd()
  8020. }
  8021. }
  8022. func (f encFnInfo) fastpathEncMapBoolUint64R(rv reflect.Value) {
  8023. fastpathTV.EncMapBoolUint64V(rv.Interface().(map[bool]uint64), fastpathCheckNilFalse, f.e)
  8024. }
  8025. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, checkNil bool, e *Encoder) {
  8026. ee := e.e
  8027. if checkNil && v == nil {
  8028. ee.EncodeNil()
  8029. return
  8030. }
  8031. ee.EncodeMapStart(len(v))
  8032. if e.be {
  8033. for k2, v2 := range v {
  8034. ee.EncodeBool(k2)
  8035. ee.EncodeUint(uint64(v2))
  8036. }
  8037. } else {
  8038. j := 0
  8039. for k2, v2 := range v {
  8040. if j > 0 {
  8041. ee.EncodeMapEntrySeparator()
  8042. }
  8043. ee.EncodeBool(k2)
  8044. ee.EncodeMapKVSeparator()
  8045. ee.EncodeUint(uint64(v2))
  8046. j++
  8047. }
  8048. ee.EncodeMapEnd()
  8049. }
  8050. }
  8051. func (f encFnInfo) fastpathEncMapBoolIntR(rv reflect.Value) {
  8052. fastpathTV.EncMapBoolIntV(rv.Interface().(map[bool]int), fastpathCheckNilFalse, f.e)
  8053. }
  8054. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, checkNil bool, e *Encoder) {
  8055. ee := e.e
  8056. if checkNil && v == nil {
  8057. ee.EncodeNil()
  8058. return
  8059. }
  8060. ee.EncodeMapStart(len(v))
  8061. if e.be {
  8062. for k2, v2 := range v {
  8063. ee.EncodeBool(k2)
  8064. ee.EncodeInt(int64(v2))
  8065. }
  8066. } else {
  8067. j := 0
  8068. for k2, v2 := range v {
  8069. if j > 0 {
  8070. ee.EncodeMapEntrySeparator()
  8071. }
  8072. ee.EncodeBool(k2)
  8073. ee.EncodeMapKVSeparator()
  8074. ee.EncodeInt(int64(v2))
  8075. j++
  8076. }
  8077. ee.EncodeMapEnd()
  8078. }
  8079. }
  8080. func (f encFnInfo) fastpathEncMapBoolInt8R(rv reflect.Value) {
  8081. fastpathTV.EncMapBoolInt8V(rv.Interface().(map[bool]int8), fastpathCheckNilFalse, f.e)
  8082. }
  8083. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, checkNil bool, e *Encoder) {
  8084. ee := e.e
  8085. if checkNil && v == nil {
  8086. ee.EncodeNil()
  8087. return
  8088. }
  8089. ee.EncodeMapStart(len(v))
  8090. if e.be {
  8091. for k2, v2 := range v {
  8092. ee.EncodeBool(k2)
  8093. ee.EncodeInt(int64(v2))
  8094. }
  8095. } else {
  8096. j := 0
  8097. for k2, v2 := range v {
  8098. if j > 0 {
  8099. ee.EncodeMapEntrySeparator()
  8100. }
  8101. ee.EncodeBool(k2)
  8102. ee.EncodeMapKVSeparator()
  8103. ee.EncodeInt(int64(v2))
  8104. j++
  8105. }
  8106. ee.EncodeMapEnd()
  8107. }
  8108. }
  8109. func (f encFnInfo) fastpathEncMapBoolInt16R(rv reflect.Value) {
  8110. fastpathTV.EncMapBoolInt16V(rv.Interface().(map[bool]int16), fastpathCheckNilFalse, f.e)
  8111. }
  8112. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, checkNil bool, e *Encoder) {
  8113. ee := e.e
  8114. if checkNil && v == nil {
  8115. ee.EncodeNil()
  8116. return
  8117. }
  8118. ee.EncodeMapStart(len(v))
  8119. if e.be {
  8120. for k2, v2 := range v {
  8121. ee.EncodeBool(k2)
  8122. ee.EncodeInt(int64(v2))
  8123. }
  8124. } else {
  8125. j := 0
  8126. for k2, v2 := range v {
  8127. if j > 0 {
  8128. ee.EncodeMapEntrySeparator()
  8129. }
  8130. ee.EncodeBool(k2)
  8131. ee.EncodeMapKVSeparator()
  8132. ee.EncodeInt(int64(v2))
  8133. j++
  8134. }
  8135. ee.EncodeMapEnd()
  8136. }
  8137. }
  8138. func (f encFnInfo) fastpathEncMapBoolInt32R(rv reflect.Value) {
  8139. fastpathTV.EncMapBoolInt32V(rv.Interface().(map[bool]int32), fastpathCheckNilFalse, f.e)
  8140. }
  8141. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, checkNil bool, e *Encoder) {
  8142. ee := e.e
  8143. if checkNil && v == nil {
  8144. ee.EncodeNil()
  8145. return
  8146. }
  8147. ee.EncodeMapStart(len(v))
  8148. if e.be {
  8149. for k2, v2 := range v {
  8150. ee.EncodeBool(k2)
  8151. ee.EncodeInt(int64(v2))
  8152. }
  8153. } else {
  8154. j := 0
  8155. for k2, v2 := range v {
  8156. if j > 0 {
  8157. ee.EncodeMapEntrySeparator()
  8158. }
  8159. ee.EncodeBool(k2)
  8160. ee.EncodeMapKVSeparator()
  8161. ee.EncodeInt(int64(v2))
  8162. j++
  8163. }
  8164. ee.EncodeMapEnd()
  8165. }
  8166. }
  8167. func (f encFnInfo) fastpathEncMapBoolInt64R(rv reflect.Value) {
  8168. fastpathTV.EncMapBoolInt64V(rv.Interface().(map[bool]int64), fastpathCheckNilFalse, f.e)
  8169. }
  8170. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, checkNil bool, e *Encoder) {
  8171. ee := e.e
  8172. if checkNil && v == nil {
  8173. ee.EncodeNil()
  8174. return
  8175. }
  8176. ee.EncodeMapStart(len(v))
  8177. if e.be {
  8178. for k2, v2 := range v {
  8179. ee.EncodeBool(k2)
  8180. ee.EncodeInt(int64(v2))
  8181. }
  8182. } else {
  8183. j := 0
  8184. for k2, v2 := range v {
  8185. if j > 0 {
  8186. ee.EncodeMapEntrySeparator()
  8187. }
  8188. ee.EncodeBool(k2)
  8189. ee.EncodeMapKVSeparator()
  8190. ee.EncodeInt(int64(v2))
  8191. j++
  8192. }
  8193. ee.EncodeMapEnd()
  8194. }
  8195. }
  8196. func (f encFnInfo) fastpathEncMapBoolFloat32R(rv reflect.Value) {
  8197. fastpathTV.EncMapBoolFloat32V(rv.Interface().(map[bool]float32), fastpathCheckNilFalse, f.e)
  8198. }
  8199. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, checkNil bool, e *Encoder) {
  8200. ee := e.e
  8201. if checkNil && v == nil {
  8202. ee.EncodeNil()
  8203. return
  8204. }
  8205. ee.EncodeMapStart(len(v))
  8206. if e.be {
  8207. for k2, v2 := range v {
  8208. ee.EncodeBool(k2)
  8209. ee.EncodeFloat32(v2)
  8210. }
  8211. } else {
  8212. j := 0
  8213. for k2, v2 := range v {
  8214. if j > 0 {
  8215. ee.EncodeMapEntrySeparator()
  8216. }
  8217. ee.EncodeBool(k2)
  8218. ee.EncodeMapKVSeparator()
  8219. ee.EncodeFloat32(v2)
  8220. j++
  8221. }
  8222. ee.EncodeMapEnd()
  8223. }
  8224. }
  8225. func (f encFnInfo) fastpathEncMapBoolFloat64R(rv reflect.Value) {
  8226. fastpathTV.EncMapBoolFloat64V(rv.Interface().(map[bool]float64), fastpathCheckNilFalse, f.e)
  8227. }
  8228. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, checkNil bool, e *Encoder) {
  8229. ee := e.e
  8230. if checkNil && v == nil {
  8231. ee.EncodeNil()
  8232. return
  8233. }
  8234. ee.EncodeMapStart(len(v))
  8235. if e.be {
  8236. for k2, v2 := range v {
  8237. ee.EncodeBool(k2)
  8238. ee.EncodeFloat64(v2)
  8239. }
  8240. } else {
  8241. j := 0
  8242. for k2, v2 := range v {
  8243. if j > 0 {
  8244. ee.EncodeMapEntrySeparator()
  8245. }
  8246. ee.EncodeBool(k2)
  8247. ee.EncodeMapKVSeparator()
  8248. ee.EncodeFloat64(v2)
  8249. j++
  8250. }
  8251. ee.EncodeMapEnd()
  8252. }
  8253. }
  8254. func (f encFnInfo) fastpathEncMapBoolBoolR(rv reflect.Value) {
  8255. fastpathTV.EncMapBoolBoolV(rv.Interface().(map[bool]bool), fastpathCheckNilFalse, f.e)
  8256. }
  8257. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, checkNil bool, e *Encoder) {
  8258. ee := e.e
  8259. if checkNil && v == nil {
  8260. ee.EncodeNil()
  8261. return
  8262. }
  8263. ee.EncodeMapStart(len(v))
  8264. if e.be {
  8265. for k2, v2 := range v {
  8266. ee.EncodeBool(k2)
  8267. ee.EncodeBool(v2)
  8268. }
  8269. } else {
  8270. j := 0
  8271. for k2, v2 := range v {
  8272. if j > 0 {
  8273. ee.EncodeMapEntrySeparator()
  8274. }
  8275. ee.EncodeBool(k2)
  8276. ee.EncodeMapKVSeparator()
  8277. ee.EncodeBool(v2)
  8278. j++
  8279. }
  8280. ee.EncodeMapEnd()
  8281. }
  8282. }
  8283. // -- decode
  8284. // -- -- fast path type switch
  8285. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  8286. switch v := iv.(type) {
  8287. case []interface{}:
  8288. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, d)
  8289. case *[]interface{}:
  8290. v2, changed2 := fastpathTV.DecSliceIntfV(*v, fastpathCheckNilFalse, true, d)
  8291. if changed2 {
  8292. *v = v2
  8293. }
  8294. case map[interface{}]interface{}:
  8295. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, d)
  8296. case *map[interface{}]interface{}:
  8297. v2, changed2 := fastpathTV.DecMapIntfIntfV(*v, fastpathCheckNilFalse, true, d)
  8298. if changed2 {
  8299. *v = v2
  8300. }
  8301. case map[interface{}]string:
  8302. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, d)
  8303. case *map[interface{}]string:
  8304. v2, changed2 := fastpathTV.DecMapIntfStringV(*v, fastpathCheckNilFalse, true, d)
  8305. if changed2 {
  8306. *v = v2
  8307. }
  8308. case map[interface{}]uint:
  8309. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, d)
  8310. case *map[interface{}]uint:
  8311. v2, changed2 := fastpathTV.DecMapIntfUintV(*v, fastpathCheckNilFalse, true, d)
  8312. if changed2 {
  8313. *v = v2
  8314. }
  8315. case map[interface{}]uint8:
  8316. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, d)
  8317. case *map[interface{}]uint8:
  8318. v2, changed2 := fastpathTV.DecMapIntfUint8V(*v, fastpathCheckNilFalse, true, d)
  8319. if changed2 {
  8320. *v = v2
  8321. }
  8322. case map[interface{}]uint16:
  8323. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, d)
  8324. case *map[interface{}]uint16:
  8325. v2, changed2 := fastpathTV.DecMapIntfUint16V(*v, fastpathCheckNilFalse, true, d)
  8326. if changed2 {
  8327. *v = v2
  8328. }
  8329. case map[interface{}]uint32:
  8330. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, d)
  8331. case *map[interface{}]uint32:
  8332. v2, changed2 := fastpathTV.DecMapIntfUint32V(*v, fastpathCheckNilFalse, true, d)
  8333. if changed2 {
  8334. *v = v2
  8335. }
  8336. case map[interface{}]uint64:
  8337. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, d)
  8338. case *map[interface{}]uint64:
  8339. v2, changed2 := fastpathTV.DecMapIntfUint64V(*v, fastpathCheckNilFalse, true, d)
  8340. if changed2 {
  8341. *v = v2
  8342. }
  8343. case map[interface{}]int:
  8344. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, d)
  8345. case *map[interface{}]int:
  8346. v2, changed2 := fastpathTV.DecMapIntfIntV(*v, fastpathCheckNilFalse, true, d)
  8347. if changed2 {
  8348. *v = v2
  8349. }
  8350. case map[interface{}]int8:
  8351. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, d)
  8352. case *map[interface{}]int8:
  8353. v2, changed2 := fastpathTV.DecMapIntfInt8V(*v, fastpathCheckNilFalse, true, d)
  8354. if changed2 {
  8355. *v = v2
  8356. }
  8357. case map[interface{}]int16:
  8358. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, d)
  8359. case *map[interface{}]int16:
  8360. v2, changed2 := fastpathTV.DecMapIntfInt16V(*v, fastpathCheckNilFalse, true, d)
  8361. if changed2 {
  8362. *v = v2
  8363. }
  8364. case map[interface{}]int32:
  8365. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, d)
  8366. case *map[interface{}]int32:
  8367. v2, changed2 := fastpathTV.DecMapIntfInt32V(*v, fastpathCheckNilFalse, true, d)
  8368. if changed2 {
  8369. *v = v2
  8370. }
  8371. case map[interface{}]int64:
  8372. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, d)
  8373. case *map[interface{}]int64:
  8374. v2, changed2 := fastpathTV.DecMapIntfInt64V(*v, fastpathCheckNilFalse, true, d)
  8375. if changed2 {
  8376. *v = v2
  8377. }
  8378. case map[interface{}]float32:
  8379. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, d)
  8380. case *map[interface{}]float32:
  8381. v2, changed2 := fastpathTV.DecMapIntfFloat32V(*v, fastpathCheckNilFalse, true, d)
  8382. if changed2 {
  8383. *v = v2
  8384. }
  8385. case map[interface{}]float64:
  8386. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, d)
  8387. case *map[interface{}]float64:
  8388. v2, changed2 := fastpathTV.DecMapIntfFloat64V(*v, fastpathCheckNilFalse, true, d)
  8389. if changed2 {
  8390. *v = v2
  8391. }
  8392. case map[interface{}]bool:
  8393. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, d)
  8394. case *map[interface{}]bool:
  8395. v2, changed2 := fastpathTV.DecMapIntfBoolV(*v, fastpathCheckNilFalse, true, d)
  8396. if changed2 {
  8397. *v = v2
  8398. }
  8399. case []string:
  8400. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, d)
  8401. case *[]string:
  8402. v2, changed2 := fastpathTV.DecSliceStringV(*v, fastpathCheckNilFalse, true, d)
  8403. if changed2 {
  8404. *v = v2
  8405. }
  8406. case map[string]interface{}:
  8407. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, d)
  8408. case *map[string]interface{}:
  8409. v2, changed2 := fastpathTV.DecMapStringIntfV(*v, fastpathCheckNilFalse, true, d)
  8410. if changed2 {
  8411. *v = v2
  8412. }
  8413. case map[string]string:
  8414. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, d)
  8415. case *map[string]string:
  8416. v2, changed2 := fastpathTV.DecMapStringStringV(*v, fastpathCheckNilFalse, true, d)
  8417. if changed2 {
  8418. *v = v2
  8419. }
  8420. case map[string]uint:
  8421. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, d)
  8422. case *map[string]uint:
  8423. v2, changed2 := fastpathTV.DecMapStringUintV(*v, fastpathCheckNilFalse, true, d)
  8424. if changed2 {
  8425. *v = v2
  8426. }
  8427. case map[string]uint8:
  8428. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, d)
  8429. case *map[string]uint8:
  8430. v2, changed2 := fastpathTV.DecMapStringUint8V(*v, fastpathCheckNilFalse, true, d)
  8431. if changed2 {
  8432. *v = v2
  8433. }
  8434. case map[string]uint16:
  8435. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, d)
  8436. case *map[string]uint16:
  8437. v2, changed2 := fastpathTV.DecMapStringUint16V(*v, fastpathCheckNilFalse, true, d)
  8438. if changed2 {
  8439. *v = v2
  8440. }
  8441. case map[string]uint32:
  8442. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, d)
  8443. case *map[string]uint32:
  8444. v2, changed2 := fastpathTV.DecMapStringUint32V(*v, fastpathCheckNilFalse, true, d)
  8445. if changed2 {
  8446. *v = v2
  8447. }
  8448. case map[string]uint64:
  8449. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, d)
  8450. case *map[string]uint64:
  8451. v2, changed2 := fastpathTV.DecMapStringUint64V(*v, fastpathCheckNilFalse, true, d)
  8452. if changed2 {
  8453. *v = v2
  8454. }
  8455. case map[string]int:
  8456. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, d)
  8457. case *map[string]int:
  8458. v2, changed2 := fastpathTV.DecMapStringIntV(*v, fastpathCheckNilFalse, true, d)
  8459. if changed2 {
  8460. *v = v2
  8461. }
  8462. case map[string]int8:
  8463. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, d)
  8464. case *map[string]int8:
  8465. v2, changed2 := fastpathTV.DecMapStringInt8V(*v, fastpathCheckNilFalse, true, d)
  8466. if changed2 {
  8467. *v = v2
  8468. }
  8469. case map[string]int16:
  8470. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, d)
  8471. case *map[string]int16:
  8472. v2, changed2 := fastpathTV.DecMapStringInt16V(*v, fastpathCheckNilFalse, true, d)
  8473. if changed2 {
  8474. *v = v2
  8475. }
  8476. case map[string]int32:
  8477. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, d)
  8478. case *map[string]int32:
  8479. v2, changed2 := fastpathTV.DecMapStringInt32V(*v, fastpathCheckNilFalse, true, d)
  8480. if changed2 {
  8481. *v = v2
  8482. }
  8483. case map[string]int64:
  8484. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, d)
  8485. case *map[string]int64:
  8486. v2, changed2 := fastpathTV.DecMapStringInt64V(*v, fastpathCheckNilFalse, true, d)
  8487. if changed2 {
  8488. *v = v2
  8489. }
  8490. case map[string]float32:
  8491. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, d)
  8492. case *map[string]float32:
  8493. v2, changed2 := fastpathTV.DecMapStringFloat32V(*v, fastpathCheckNilFalse, true, d)
  8494. if changed2 {
  8495. *v = v2
  8496. }
  8497. case map[string]float64:
  8498. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, d)
  8499. case *map[string]float64:
  8500. v2, changed2 := fastpathTV.DecMapStringFloat64V(*v, fastpathCheckNilFalse, true, d)
  8501. if changed2 {
  8502. *v = v2
  8503. }
  8504. case map[string]bool:
  8505. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, d)
  8506. case *map[string]bool:
  8507. v2, changed2 := fastpathTV.DecMapStringBoolV(*v, fastpathCheckNilFalse, true, d)
  8508. if changed2 {
  8509. *v = v2
  8510. }
  8511. case []float32:
  8512. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, d)
  8513. case *[]float32:
  8514. v2, changed2 := fastpathTV.DecSliceFloat32V(*v, fastpathCheckNilFalse, true, d)
  8515. if changed2 {
  8516. *v = v2
  8517. }
  8518. case map[float32]interface{}:
  8519. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, d)
  8520. case *map[float32]interface{}:
  8521. v2, changed2 := fastpathTV.DecMapFloat32IntfV(*v, fastpathCheckNilFalse, true, d)
  8522. if changed2 {
  8523. *v = v2
  8524. }
  8525. case map[float32]string:
  8526. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, d)
  8527. case *map[float32]string:
  8528. v2, changed2 := fastpathTV.DecMapFloat32StringV(*v, fastpathCheckNilFalse, true, d)
  8529. if changed2 {
  8530. *v = v2
  8531. }
  8532. case map[float32]uint:
  8533. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, d)
  8534. case *map[float32]uint:
  8535. v2, changed2 := fastpathTV.DecMapFloat32UintV(*v, fastpathCheckNilFalse, true, d)
  8536. if changed2 {
  8537. *v = v2
  8538. }
  8539. case map[float32]uint8:
  8540. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, d)
  8541. case *map[float32]uint8:
  8542. v2, changed2 := fastpathTV.DecMapFloat32Uint8V(*v, fastpathCheckNilFalse, true, d)
  8543. if changed2 {
  8544. *v = v2
  8545. }
  8546. case map[float32]uint16:
  8547. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, d)
  8548. case *map[float32]uint16:
  8549. v2, changed2 := fastpathTV.DecMapFloat32Uint16V(*v, fastpathCheckNilFalse, true, d)
  8550. if changed2 {
  8551. *v = v2
  8552. }
  8553. case map[float32]uint32:
  8554. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, d)
  8555. case *map[float32]uint32:
  8556. v2, changed2 := fastpathTV.DecMapFloat32Uint32V(*v, fastpathCheckNilFalse, true, d)
  8557. if changed2 {
  8558. *v = v2
  8559. }
  8560. case map[float32]uint64:
  8561. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, d)
  8562. case *map[float32]uint64:
  8563. v2, changed2 := fastpathTV.DecMapFloat32Uint64V(*v, fastpathCheckNilFalse, true, d)
  8564. if changed2 {
  8565. *v = v2
  8566. }
  8567. case map[float32]int:
  8568. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, d)
  8569. case *map[float32]int:
  8570. v2, changed2 := fastpathTV.DecMapFloat32IntV(*v, fastpathCheckNilFalse, true, d)
  8571. if changed2 {
  8572. *v = v2
  8573. }
  8574. case map[float32]int8:
  8575. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, d)
  8576. case *map[float32]int8:
  8577. v2, changed2 := fastpathTV.DecMapFloat32Int8V(*v, fastpathCheckNilFalse, true, d)
  8578. if changed2 {
  8579. *v = v2
  8580. }
  8581. case map[float32]int16:
  8582. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, d)
  8583. case *map[float32]int16:
  8584. v2, changed2 := fastpathTV.DecMapFloat32Int16V(*v, fastpathCheckNilFalse, true, d)
  8585. if changed2 {
  8586. *v = v2
  8587. }
  8588. case map[float32]int32:
  8589. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, d)
  8590. case *map[float32]int32:
  8591. v2, changed2 := fastpathTV.DecMapFloat32Int32V(*v, fastpathCheckNilFalse, true, d)
  8592. if changed2 {
  8593. *v = v2
  8594. }
  8595. case map[float32]int64:
  8596. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, d)
  8597. case *map[float32]int64:
  8598. v2, changed2 := fastpathTV.DecMapFloat32Int64V(*v, fastpathCheckNilFalse, true, d)
  8599. if changed2 {
  8600. *v = v2
  8601. }
  8602. case map[float32]float32:
  8603. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, d)
  8604. case *map[float32]float32:
  8605. v2, changed2 := fastpathTV.DecMapFloat32Float32V(*v, fastpathCheckNilFalse, true, d)
  8606. if changed2 {
  8607. *v = v2
  8608. }
  8609. case map[float32]float64:
  8610. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, d)
  8611. case *map[float32]float64:
  8612. v2, changed2 := fastpathTV.DecMapFloat32Float64V(*v, fastpathCheckNilFalse, true, d)
  8613. if changed2 {
  8614. *v = v2
  8615. }
  8616. case map[float32]bool:
  8617. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, d)
  8618. case *map[float32]bool:
  8619. v2, changed2 := fastpathTV.DecMapFloat32BoolV(*v, fastpathCheckNilFalse, true, d)
  8620. if changed2 {
  8621. *v = v2
  8622. }
  8623. case []float64:
  8624. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, d)
  8625. case *[]float64:
  8626. v2, changed2 := fastpathTV.DecSliceFloat64V(*v, fastpathCheckNilFalse, true, d)
  8627. if changed2 {
  8628. *v = v2
  8629. }
  8630. case map[float64]interface{}:
  8631. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, d)
  8632. case *map[float64]interface{}:
  8633. v2, changed2 := fastpathTV.DecMapFloat64IntfV(*v, fastpathCheckNilFalse, true, d)
  8634. if changed2 {
  8635. *v = v2
  8636. }
  8637. case map[float64]string:
  8638. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, d)
  8639. case *map[float64]string:
  8640. v2, changed2 := fastpathTV.DecMapFloat64StringV(*v, fastpathCheckNilFalse, true, d)
  8641. if changed2 {
  8642. *v = v2
  8643. }
  8644. case map[float64]uint:
  8645. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, d)
  8646. case *map[float64]uint:
  8647. v2, changed2 := fastpathTV.DecMapFloat64UintV(*v, fastpathCheckNilFalse, true, d)
  8648. if changed2 {
  8649. *v = v2
  8650. }
  8651. case map[float64]uint8:
  8652. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, d)
  8653. case *map[float64]uint8:
  8654. v2, changed2 := fastpathTV.DecMapFloat64Uint8V(*v, fastpathCheckNilFalse, true, d)
  8655. if changed2 {
  8656. *v = v2
  8657. }
  8658. case map[float64]uint16:
  8659. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, d)
  8660. case *map[float64]uint16:
  8661. v2, changed2 := fastpathTV.DecMapFloat64Uint16V(*v, fastpathCheckNilFalse, true, d)
  8662. if changed2 {
  8663. *v = v2
  8664. }
  8665. case map[float64]uint32:
  8666. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, d)
  8667. case *map[float64]uint32:
  8668. v2, changed2 := fastpathTV.DecMapFloat64Uint32V(*v, fastpathCheckNilFalse, true, d)
  8669. if changed2 {
  8670. *v = v2
  8671. }
  8672. case map[float64]uint64:
  8673. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, d)
  8674. case *map[float64]uint64:
  8675. v2, changed2 := fastpathTV.DecMapFloat64Uint64V(*v, fastpathCheckNilFalse, true, d)
  8676. if changed2 {
  8677. *v = v2
  8678. }
  8679. case map[float64]int:
  8680. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, d)
  8681. case *map[float64]int:
  8682. v2, changed2 := fastpathTV.DecMapFloat64IntV(*v, fastpathCheckNilFalse, true, d)
  8683. if changed2 {
  8684. *v = v2
  8685. }
  8686. case map[float64]int8:
  8687. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, d)
  8688. case *map[float64]int8:
  8689. v2, changed2 := fastpathTV.DecMapFloat64Int8V(*v, fastpathCheckNilFalse, true, d)
  8690. if changed2 {
  8691. *v = v2
  8692. }
  8693. case map[float64]int16:
  8694. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, d)
  8695. case *map[float64]int16:
  8696. v2, changed2 := fastpathTV.DecMapFloat64Int16V(*v, fastpathCheckNilFalse, true, d)
  8697. if changed2 {
  8698. *v = v2
  8699. }
  8700. case map[float64]int32:
  8701. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, d)
  8702. case *map[float64]int32:
  8703. v2, changed2 := fastpathTV.DecMapFloat64Int32V(*v, fastpathCheckNilFalse, true, d)
  8704. if changed2 {
  8705. *v = v2
  8706. }
  8707. case map[float64]int64:
  8708. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, d)
  8709. case *map[float64]int64:
  8710. v2, changed2 := fastpathTV.DecMapFloat64Int64V(*v, fastpathCheckNilFalse, true, d)
  8711. if changed2 {
  8712. *v = v2
  8713. }
  8714. case map[float64]float32:
  8715. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, d)
  8716. case *map[float64]float32:
  8717. v2, changed2 := fastpathTV.DecMapFloat64Float32V(*v, fastpathCheckNilFalse, true, d)
  8718. if changed2 {
  8719. *v = v2
  8720. }
  8721. case map[float64]float64:
  8722. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, d)
  8723. case *map[float64]float64:
  8724. v2, changed2 := fastpathTV.DecMapFloat64Float64V(*v, fastpathCheckNilFalse, true, d)
  8725. if changed2 {
  8726. *v = v2
  8727. }
  8728. case map[float64]bool:
  8729. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, d)
  8730. case *map[float64]bool:
  8731. v2, changed2 := fastpathTV.DecMapFloat64BoolV(*v, fastpathCheckNilFalse, true, d)
  8732. if changed2 {
  8733. *v = v2
  8734. }
  8735. case []uint:
  8736. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, d)
  8737. case *[]uint:
  8738. v2, changed2 := fastpathTV.DecSliceUintV(*v, fastpathCheckNilFalse, true, d)
  8739. if changed2 {
  8740. *v = v2
  8741. }
  8742. case map[uint]interface{}:
  8743. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, d)
  8744. case *map[uint]interface{}:
  8745. v2, changed2 := fastpathTV.DecMapUintIntfV(*v, fastpathCheckNilFalse, true, d)
  8746. if changed2 {
  8747. *v = v2
  8748. }
  8749. case map[uint]string:
  8750. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, d)
  8751. case *map[uint]string:
  8752. v2, changed2 := fastpathTV.DecMapUintStringV(*v, fastpathCheckNilFalse, true, d)
  8753. if changed2 {
  8754. *v = v2
  8755. }
  8756. case map[uint]uint:
  8757. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, d)
  8758. case *map[uint]uint:
  8759. v2, changed2 := fastpathTV.DecMapUintUintV(*v, fastpathCheckNilFalse, true, d)
  8760. if changed2 {
  8761. *v = v2
  8762. }
  8763. case map[uint]uint8:
  8764. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, d)
  8765. case *map[uint]uint8:
  8766. v2, changed2 := fastpathTV.DecMapUintUint8V(*v, fastpathCheckNilFalse, true, d)
  8767. if changed2 {
  8768. *v = v2
  8769. }
  8770. case map[uint]uint16:
  8771. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, d)
  8772. case *map[uint]uint16:
  8773. v2, changed2 := fastpathTV.DecMapUintUint16V(*v, fastpathCheckNilFalse, true, d)
  8774. if changed2 {
  8775. *v = v2
  8776. }
  8777. case map[uint]uint32:
  8778. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, d)
  8779. case *map[uint]uint32:
  8780. v2, changed2 := fastpathTV.DecMapUintUint32V(*v, fastpathCheckNilFalse, true, d)
  8781. if changed2 {
  8782. *v = v2
  8783. }
  8784. case map[uint]uint64:
  8785. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, d)
  8786. case *map[uint]uint64:
  8787. v2, changed2 := fastpathTV.DecMapUintUint64V(*v, fastpathCheckNilFalse, true, d)
  8788. if changed2 {
  8789. *v = v2
  8790. }
  8791. case map[uint]int:
  8792. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, d)
  8793. case *map[uint]int:
  8794. v2, changed2 := fastpathTV.DecMapUintIntV(*v, fastpathCheckNilFalse, true, d)
  8795. if changed2 {
  8796. *v = v2
  8797. }
  8798. case map[uint]int8:
  8799. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, d)
  8800. case *map[uint]int8:
  8801. v2, changed2 := fastpathTV.DecMapUintInt8V(*v, fastpathCheckNilFalse, true, d)
  8802. if changed2 {
  8803. *v = v2
  8804. }
  8805. case map[uint]int16:
  8806. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, d)
  8807. case *map[uint]int16:
  8808. v2, changed2 := fastpathTV.DecMapUintInt16V(*v, fastpathCheckNilFalse, true, d)
  8809. if changed2 {
  8810. *v = v2
  8811. }
  8812. case map[uint]int32:
  8813. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, d)
  8814. case *map[uint]int32:
  8815. v2, changed2 := fastpathTV.DecMapUintInt32V(*v, fastpathCheckNilFalse, true, d)
  8816. if changed2 {
  8817. *v = v2
  8818. }
  8819. case map[uint]int64:
  8820. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, d)
  8821. case *map[uint]int64:
  8822. v2, changed2 := fastpathTV.DecMapUintInt64V(*v, fastpathCheckNilFalse, true, d)
  8823. if changed2 {
  8824. *v = v2
  8825. }
  8826. case map[uint]float32:
  8827. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, d)
  8828. case *map[uint]float32:
  8829. v2, changed2 := fastpathTV.DecMapUintFloat32V(*v, fastpathCheckNilFalse, true, d)
  8830. if changed2 {
  8831. *v = v2
  8832. }
  8833. case map[uint]float64:
  8834. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, d)
  8835. case *map[uint]float64:
  8836. v2, changed2 := fastpathTV.DecMapUintFloat64V(*v, fastpathCheckNilFalse, true, d)
  8837. if changed2 {
  8838. *v = v2
  8839. }
  8840. case map[uint]bool:
  8841. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, d)
  8842. case *map[uint]bool:
  8843. v2, changed2 := fastpathTV.DecMapUintBoolV(*v, fastpathCheckNilFalse, true, d)
  8844. if changed2 {
  8845. *v = v2
  8846. }
  8847. case map[uint8]interface{}:
  8848. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, d)
  8849. case *map[uint8]interface{}:
  8850. v2, changed2 := fastpathTV.DecMapUint8IntfV(*v, fastpathCheckNilFalse, true, d)
  8851. if changed2 {
  8852. *v = v2
  8853. }
  8854. case map[uint8]string:
  8855. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, d)
  8856. case *map[uint8]string:
  8857. v2, changed2 := fastpathTV.DecMapUint8StringV(*v, fastpathCheckNilFalse, true, d)
  8858. if changed2 {
  8859. *v = v2
  8860. }
  8861. case map[uint8]uint:
  8862. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, d)
  8863. case *map[uint8]uint:
  8864. v2, changed2 := fastpathTV.DecMapUint8UintV(*v, fastpathCheckNilFalse, true, d)
  8865. if changed2 {
  8866. *v = v2
  8867. }
  8868. case map[uint8]uint8:
  8869. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, d)
  8870. case *map[uint8]uint8:
  8871. v2, changed2 := fastpathTV.DecMapUint8Uint8V(*v, fastpathCheckNilFalse, true, d)
  8872. if changed2 {
  8873. *v = v2
  8874. }
  8875. case map[uint8]uint16:
  8876. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, d)
  8877. case *map[uint8]uint16:
  8878. v2, changed2 := fastpathTV.DecMapUint8Uint16V(*v, fastpathCheckNilFalse, true, d)
  8879. if changed2 {
  8880. *v = v2
  8881. }
  8882. case map[uint8]uint32:
  8883. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, d)
  8884. case *map[uint8]uint32:
  8885. v2, changed2 := fastpathTV.DecMapUint8Uint32V(*v, fastpathCheckNilFalse, true, d)
  8886. if changed2 {
  8887. *v = v2
  8888. }
  8889. case map[uint8]uint64:
  8890. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, d)
  8891. case *map[uint8]uint64:
  8892. v2, changed2 := fastpathTV.DecMapUint8Uint64V(*v, fastpathCheckNilFalse, true, d)
  8893. if changed2 {
  8894. *v = v2
  8895. }
  8896. case map[uint8]int:
  8897. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, d)
  8898. case *map[uint8]int:
  8899. v2, changed2 := fastpathTV.DecMapUint8IntV(*v, fastpathCheckNilFalse, true, d)
  8900. if changed2 {
  8901. *v = v2
  8902. }
  8903. case map[uint8]int8:
  8904. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, d)
  8905. case *map[uint8]int8:
  8906. v2, changed2 := fastpathTV.DecMapUint8Int8V(*v, fastpathCheckNilFalse, true, d)
  8907. if changed2 {
  8908. *v = v2
  8909. }
  8910. case map[uint8]int16:
  8911. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, d)
  8912. case *map[uint8]int16:
  8913. v2, changed2 := fastpathTV.DecMapUint8Int16V(*v, fastpathCheckNilFalse, true, d)
  8914. if changed2 {
  8915. *v = v2
  8916. }
  8917. case map[uint8]int32:
  8918. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, d)
  8919. case *map[uint8]int32:
  8920. v2, changed2 := fastpathTV.DecMapUint8Int32V(*v, fastpathCheckNilFalse, true, d)
  8921. if changed2 {
  8922. *v = v2
  8923. }
  8924. case map[uint8]int64:
  8925. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, d)
  8926. case *map[uint8]int64:
  8927. v2, changed2 := fastpathTV.DecMapUint8Int64V(*v, fastpathCheckNilFalse, true, d)
  8928. if changed2 {
  8929. *v = v2
  8930. }
  8931. case map[uint8]float32:
  8932. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, d)
  8933. case *map[uint8]float32:
  8934. v2, changed2 := fastpathTV.DecMapUint8Float32V(*v, fastpathCheckNilFalse, true, d)
  8935. if changed2 {
  8936. *v = v2
  8937. }
  8938. case map[uint8]float64:
  8939. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, d)
  8940. case *map[uint8]float64:
  8941. v2, changed2 := fastpathTV.DecMapUint8Float64V(*v, fastpathCheckNilFalse, true, d)
  8942. if changed2 {
  8943. *v = v2
  8944. }
  8945. case map[uint8]bool:
  8946. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, d)
  8947. case *map[uint8]bool:
  8948. v2, changed2 := fastpathTV.DecMapUint8BoolV(*v, fastpathCheckNilFalse, true, d)
  8949. if changed2 {
  8950. *v = v2
  8951. }
  8952. case []uint16:
  8953. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, d)
  8954. case *[]uint16:
  8955. v2, changed2 := fastpathTV.DecSliceUint16V(*v, fastpathCheckNilFalse, true, d)
  8956. if changed2 {
  8957. *v = v2
  8958. }
  8959. case map[uint16]interface{}:
  8960. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, d)
  8961. case *map[uint16]interface{}:
  8962. v2, changed2 := fastpathTV.DecMapUint16IntfV(*v, fastpathCheckNilFalse, true, d)
  8963. if changed2 {
  8964. *v = v2
  8965. }
  8966. case map[uint16]string:
  8967. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, d)
  8968. case *map[uint16]string:
  8969. v2, changed2 := fastpathTV.DecMapUint16StringV(*v, fastpathCheckNilFalse, true, d)
  8970. if changed2 {
  8971. *v = v2
  8972. }
  8973. case map[uint16]uint:
  8974. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, d)
  8975. case *map[uint16]uint:
  8976. v2, changed2 := fastpathTV.DecMapUint16UintV(*v, fastpathCheckNilFalse, true, d)
  8977. if changed2 {
  8978. *v = v2
  8979. }
  8980. case map[uint16]uint8:
  8981. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, d)
  8982. case *map[uint16]uint8:
  8983. v2, changed2 := fastpathTV.DecMapUint16Uint8V(*v, fastpathCheckNilFalse, true, d)
  8984. if changed2 {
  8985. *v = v2
  8986. }
  8987. case map[uint16]uint16:
  8988. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, d)
  8989. case *map[uint16]uint16:
  8990. v2, changed2 := fastpathTV.DecMapUint16Uint16V(*v, fastpathCheckNilFalse, true, d)
  8991. if changed2 {
  8992. *v = v2
  8993. }
  8994. case map[uint16]uint32:
  8995. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, d)
  8996. case *map[uint16]uint32:
  8997. v2, changed2 := fastpathTV.DecMapUint16Uint32V(*v, fastpathCheckNilFalse, true, d)
  8998. if changed2 {
  8999. *v = v2
  9000. }
  9001. case map[uint16]uint64:
  9002. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, d)
  9003. case *map[uint16]uint64:
  9004. v2, changed2 := fastpathTV.DecMapUint16Uint64V(*v, fastpathCheckNilFalse, true, d)
  9005. if changed2 {
  9006. *v = v2
  9007. }
  9008. case map[uint16]int:
  9009. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, d)
  9010. case *map[uint16]int:
  9011. v2, changed2 := fastpathTV.DecMapUint16IntV(*v, fastpathCheckNilFalse, true, d)
  9012. if changed2 {
  9013. *v = v2
  9014. }
  9015. case map[uint16]int8:
  9016. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, d)
  9017. case *map[uint16]int8:
  9018. v2, changed2 := fastpathTV.DecMapUint16Int8V(*v, fastpathCheckNilFalse, true, d)
  9019. if changed2 {
  9020. *v = v2
  9021. }
  9022. case map[uint16]int16:
  9023. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, d)
  9024. case *map[uint16]int16:
  9025. v2, changed2 := fastpathTV.DecMapUint16Int16V(*v, fastpathCheckNilFalse, true, d)
  9026. if changed2 {
  9027. *v = v2
  9028. }
  9029. case map[uint16]int32:
  9030. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, d)
  9031. case *map[uint16]int32:
  9032. v2, changed2 := fastpathTV.DecMapUint16Int32V(*v, fastpathCheckNilFalse, true, d)
  9033. if changed2 {
  9034. *v = v2
  9035. }
  9036. case map[uint16]int64:
  9037. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, d)
  9038. case *map[uint16]int64:
  9039. v2, changed2 := fastpathTV.DecMapUint16Int64V(*v, fastpathCheckNilFalse, true, d)
  9040. if changed2 {
  9041. *v = v2
  9042. }
  9043. case map[uint16]float32:
  9044. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, d)
  9045. case *map[uint16]float32:
  9046. v2, changed2 := fastpathTV.DecMapUint16Float32V(*v, fastpathCheckNilFalse, true, d)
  9047. if changed2 {
  9048. *v = v2
  9049. }
  9050. case map[uint16]float64:
  9051. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, d)
  9052. case *map[uint16]float64:
  9053. v2, changed2 := fastpathTV.DecMapUint16Float64V(*v, fastpathCheckNilFalse, true, d)
  9054. if changed2 {
  9055. *v = v2
  9056. }
  9057. case map[uint16]bool:
  9058. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, d)
  9059. case *map[uint16]bool:
  9060. v2, changed2 := fastpathTV.DecMapUint16BoolV(*v, fastpathCheckNilFalse, true, d)
  9061. if changed2 {
  9062. *v = v2
  9063. }
  9064. case []uint32:
  9065. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, d)
  9066. case *[]uint32:
  9067. v2, changed2 := fastpathTV.DecSliceUint32V(*v, fastpathCheckNilFalse, true, d)
  9068. if changed2 {
  9069. *v = v2
  9070. }
  9071. case map[uint32]interface{}:
  9072. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, d)
  9073. case *map[uint32]interface{}:
  9074. v2, changed2 := fastpathTV.DecMapUint32IntfV(*v, fastpathCheckNilFalse, true, d)
  9075. if changed2 {
  9076. *v = v2
  9077. }
  9078. case map[uint32]string:
  9079. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, d)
  9080. case *map[uint32]string:
  9081. v2, changed2 := fastpathTV.DecMapUint32StringV(*v, fastpathCheckNilFalse, true, d)
  9082. if changed2 {
  9083. *v = v2
  9084. }
  9085. case map[uint32]uint:
  9086. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, d)
  9087. case *map[uint32]uint:
  9088. v2, changed2 := fastpathTV.DecMapUint32UintV(*v, fastpathCheckNilFalse, true, d)
  9089. if changed2 {
  9090. *v = v2
  9091. }
  9092. case map[uint32]uint8:
  9093. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, d)
  9094. case *map[uint32]uint8:
  9095. v2, changed2 := fastpathTV.DecMapUint32Uint8V(*v, fastpathCheckNilFalse, true, d)
  9096. if changed2 {
  9097. *v = v2
  9098. }
  9099. case map[uint32]uint16:
  9100. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, d)
  9101. case *map[uint32]uint16:
  9102. v2, changed2 := fastpathTV.DecMapUint32Uint16V(*v, fastpathCheckNilFalse, true, d)
  9103. if changed2 {
  9104. *v = v2
  9105. }
  9106. case map[uint32]uint32:
  9107. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, d)
  9108. case *map[uint32]uint32:
  9109. v2, changed2 := fastpathTV.DecMapUint32Uint32V(*v, fastpathCheckNilFalse, true, d)
  9110. if changed2 {
  9111. *v = v2
  9112. }
  9113. case map[uint32]uint64:
  9114. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, d)
  9115. case *map[uint32]uint64:
  9116. v2, changed2 := fastpathTV.DecMapUint32Uint64V(*v, fastpathCheckNilFalse, true, d)
  9117. if changed2 {
  9118. *v = v2
  9119. }
  9120. case map[uint32]int:
  9121. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, d)
  9122. case *map[uint32]int:
  9123. v2, changed2 := fastpathTV.DecMapUint32IntV(*v, fastpathCheckNilFalse, true, d)
  9124. if changed2 {
  9125. *v = v2
  9126. }
  9127. case map[uint32]int8:
  9128. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, d)
  9129. case *map[uint32]int8:
  9130. v2, changed2 := fastpathTV.DecMapUint32Int8V(*v, fastpathCheckNilFalse, true, d)
  9131. if changed2 {
  9132. *v = v2
  9133. }
  9134. case map[uint32]int16:
  9135. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, d)
  9136. case *map[uint32]int16:
  9137. v2, changed2 := fastpathTV.DecMapUint32Int16V(*v, fastpathCheckNilFalse, true, d)
  9138. if changed2 {
  9139. *v = v2
  9140. }
  9141. case map[uint32]int32:
  9142. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, d)
  9143. case *map[uint32]int32:
  9144. v2, changed2 := fastpathTV.DecMapUint32Int32V(*v, fastpathCheckNilFalse, true, d)
  9145. if changed2 {
  9146. *v = v2
  9147. }
  9148. case map[uint32]int64:
  9149. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, d)
  9150. case *map[uint32]int64:
  9151. v2, changed2 := fastpathTV.DecMapUint32Int64V(*v, fastpathCheckNilFalse, true, d)
  9152. if changed2 {
  9153. *v = v2
  9154. }
  9155. case map[uint32]float32:
  9156. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, d)
  9157. case *map[uint32]float32:
  9158. v2, changed2 := fastpathTV.DecMapUint32Float32V(*v, fastpathCheckNilFalse, true, d)
  9159. if changed2 {
  9160. *v = v2
  9161. }
  9162. case map[uint32]float64:
  9163. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, d)
  9164. case *map[uint32]float64:
  9165. v2, changed2 := fastpathTV.DecMapUint32Float64V(*v, fastpathCheckNilFalse, true, d)
  9166. if changed2 {
  9167. *v = v2
  9168. }
  9169. case map[uint32]bool:
  9170. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, d)
  9171. case *map[uint32]bool:
  9172. v2, changed2 := fastpathTV.DecMapUint32BoolV(*v, fastpathCheckNilFalse, true, d)
  9173. if changed2 {
  9174. *v = v2
  9175. }
  9176. case []uint64:
  9177. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, d)
  9178. case *[]uint64:
  9179. v2, changed2 := fastpathTV.DecSliceUint64V(*v, fastpathCheckNilFalse, true, d)
  9180. if changed2 {
  9181. *v = v2
  9182. }
  9183. case map[uint64]interface{}:
  9184. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, d)
  9185. case *map[uint64]interface{}:
  9186. v2, changed2 := fastpathTV.DecMapUint64IntfV(*v, fastpathCheckNilFalse, true, d)
  9187. if changed2 {
  9188. *v = v2
  9189. }
  9190. case map[uint64]string:
  9191. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, d)
  9192. case *map[uint64]string:
  9193. v2, changed2 := fastpathTV.DecMapUint64StringV(*v, fastpathCheckNilFalse, true, d)
  9194. if changed2 {
  9195. *v = v2
  9196. }
  9197. case map[uint64]uint:
  9198. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, d)
  9199. case *map[uint64]uint:
  9200. v2, changed2 := fastpathTV.DecMapUint64UintV(*v, fastpathCheckNilFalse, true, d)
  9201. if changed2 {
  9202. *v = v2
  9203. }
  9204. case map[uint64]uint8:
  9205. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, d)
  9206. case *map[uint64]uint8:
  9207. v2, changed2 := fastpathTV.DecMapUint64Uint8V(*v, fastpathCheckNilFalse, true, d)
  9208. if changed2 {
  9209. *v = v2
  9210. }
  9211. case map[uint64]uint16:
  9212. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, d)
  9213. case *map[uint64]uint16:
  9214. v2, changed2 := fastpathTV.DecMapUint64Uint16V(*v, fastpathCheckNilFalse, true, d)
  9215. if changed2 {
  9216. *v = v2
  9217. }
  9218. case map[uint64]uint32:
  9219. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, d)
  9220. case *map[uint64]uint32:
  9221. v2, changed2 := fastpathTV.DecMapUint64Uint32V(*v, fastpathCheckNilFalse, true, d)
  9222. if changed2 {
  9223. *v = v2
  9224. }
  9225. case map[uint64]uint64:
  9226. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, d)
  9227. case *map[uint64]uint64:
  9228. v2, changed2 := fastpathTV.DecMapUint64Uint64V(*v, fastpathCheckNilFalse, true, d)
  9229. if changed2 {
  9230. *v = v2
  9231. }
  9232. case map[uint64]int:
  9233. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, d)
  9234. case *map[uint64]int:
  9235. v2, changed2 := fastpathTV.DecMapUint64IntV(*v, fastpathCheckNilFalse, true, d)
  9236. if changed2 {
  9237. *v = v2
  9238. }
  9239. case map[uint64]int8:
  9240. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, d)
  9241. case *map[uint64]int8:
  9242. v2, changed2 := fastpathTV.DecMapUint64Int8V(*v, fastpathCheckNilFalse, true, d)
  9243. if changed2 {
  9244. *v = v2
  9245. }
  9246. case map[uint64]int16:
  9247. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, d)
  9248. case *map[uint64]int16:
  9249. v2, changed2 := fastpathTV.DecMapUint64Int16V(*v, fastpathCheckNilFalse, true, d)
  9250. if changed2 {
  9251. *v = v2
  9252. }
  9253. case map[uint64]int32:
  9254. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, d)
  9255. case *map[uint64]int32:
  9256. v2, changed2 := fastpathTV.DecMapUint64Int32V(*v, fastpathCheckNilFalse, true, d)
  9257. if changed2 {
  9258. *v = v2
  9259. }
  9260. case map[uint64]int64:
  9261. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, d)
  9262. case *map[uint64]int64:
  9263. v2, changed2 := fastpathTV.DecMapUint64Int64V(*v, fastpathCheckNilFalse, true, d)
  9264. if changed2 {
  9265. *v = v2
  9266. }
  9267. case map[uint64]float32:
  9268. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, d)
  9269. case *map[uint64]float32:
  9270. v2, changed2 := fastpathTV.DecMapUint64Float32V(*v, fastpathCheckNilFalse, true, d)
  9271. if changed2 {
  9272. *v = v2
  9273. }
  9274. case map[uint64]float64:
  9275. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, d)
  9276. case *map[uint64]float64:
  9277. v2, changed2 := fastpathTV.DecMapUint64Float64V(*v, fastpathCheckNilFalse, true, d)
  9278. if changed2 {
  9279. *v = v2
  9280. }
  9281. case map[uint64]bool:
  9282. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, d)
  9283. case *map[uint64]bool:
  9284. v2, changed2 := fastpathTV.DecMapUint64BoolV(*v, fastpathCheckNilFalse, true, d)
  9285. if changed2 {
  9286. *v = v2
  9287. }
  9288. case []int:
  9289. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, d)
  9290. case *[]int:
  9291. v2, changed2 := fastpathTV.DecSliceIntV(*v, fastpathCheckNilFalse, true, d)
  9292. if changed2 {
  9293. *v = v2
  9294. }
  9295. case map[int]interface{}:
  9296. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, d)
  9297. case *map[int]interface{}:
  9298. v2, changed2 := fastpathTV.DecMapIntIntfV(*v, fastpathCheckNilFalse, true, d)
  9299. if changed2 {
  9300. *v = v2
  9301. }
  9302. case map[int]string:
  9303. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, d)
  9304. case *map[int]string:
  9305. v2, changed2 := fastpathTV.DecMapIntStringV(*v, fastpathCheckNilFalse, true, d)
  9306. if changed2 {
  9307. *v = v2
  9308. }
  9309. case map[int]uint:
  9310. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, d)
  9311. case *map[int]uint:
  9312. v2, changed2 := fastpathTV.DecMapIntUintV(*v, fastpathCheckNilFalse, true, d)
  9313. if changed2 {
  9314. *v = v2
  9315. }
  9316. case map[int]uint8:
  9317. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, d)
  9318. case *map[int]uint8:
  9319. v2, changed2 := fastpathTV.DecMapIntUint8V(*v, fastpathCheckNilFalse, true, d)
  9320. if changed2 {
  9321. *v = v2
  9322. }
  9323. case map[int]uint16:
  9324. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, d)
  9325. case *map[int]uint16:
  9326. v2, changed2 := fastpathTV.DecMapIntUint16V(*v, fastpathCheckNilFalse, true, d)
  9327. if changed2 {
  9328. *v = v2
  9329. }
  9330. case map[int]uint32:
  9331. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, d)
  9332. case *map[int]uint32:
  9333. v2, changed2 := fastpathTV.DecMapIntUint32V(*v, fastpathCheckNilFalse, true, d)
  9334. if changed2 {
  9335. *v = v2
  9336. }
  9337. case map[int]uint64:
  9338. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, d)
  9339. case *map[int]uint64:
  9340. v2, changed2 := fastpathTV.DecMapIntUint64V(*v, fastpathCheckNilFalse, true, d)
  9341. if changed2 {
  9342. *v = v2
  9343. }
  9344. case map[int]int:
  9345. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, d)
  9346. case *map[int]int:
  9347. v2, changed2 := fastpathTV.DecMapIntIntV(*v, fastpathCheckNilFalse, true, d)
  9348. if changed2 {
  9349. *v = v2
  9350. }
  9351. case map[int]int8:
  9352. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, d)
  9353. case *map[int]int8:
  9354. v2, changed2 := fastpathTV.DecMapIntInt8V(*v, fastpathCheckNilFalse, true, d)
  9355. if changed2 {
  9356. *v = v2
  9357. }
  9358. case map[int]int16:
  9359. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, d)
  9360. case *map[int]int16:
  9361. v2, changed2 := fastpathTV.DecMapIntInt16V(*v, fastpathCheckNilFalse, true, d)
  9362. if changed2 {
  9363. *v = v2
  9364. }
  9365. case map[int]int32:
  9366. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, d)
  9367. case *map[int]int32:
  9368. v2, changed2 := fastpathTV.DecMapIntInt32V(*v, fastpathCheckNilFalse, true, d)
  9369. if changed2 {
  9370. *v = v2
  9371. }
  9372. case map[int]int64:
  9373. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, d)
  9374. case *map[int]int64:
  9375. v2, changed2 := fastpathTV.DecMapIntInt64V(*v, fastpathCheckNilFalse, true, d)
  9376. if changed2 {
  9377. *v = v2
  9378. }
  9379. case map[int]float32:
  9380. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, d)
  9381. case *map[int]float32:
  9382. v2, changed2 := fastpathTV.DecMapIntFloat32V(*v, fastpathCheckNilFalse, true, d)
  9383. if changed2 {
  9384. *v = v2
  9385. }
  9386. case map[int]float64:
  9387. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, d)
  9388. case *map[int]float64:
  9389. v2, changed2 := fastpathTV.DecMapIntFloat64V(*v, fastpathCheckNilFalse, true, d)
  9390. if changed2 {
  9391. *v = v2
  9392. }
  9393. case map[int]bool:
  9394. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, d)
  9395. case *map[int]bool:
  9396. v2, changed2 := fastpathTV.DecMapIntBoolV(*v, fastpathCheckNilFalse, true, d)
  9397. if changed2 {
  9398. *v = v2
  9399. }
  9400. case []int8:
  9401. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, d)
  9402. case *[]int8:
  9403. v2, changed2 := fastpathTV.DecSliceInt8V(*v, fastpathCheckNilFalse, true, d)
  9404. if changed2 {
  9405. *v = v2
  9406. }
  9407. case map[int8]interface{}:
  9408. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, d)
  9409. case *map[int8]interface{}:
  9410. v2, changed2 := fastpathTV.DecMapInt8IntfV(*v, fastpathCheckNilFalse, true, d)
  9411. if changed2 {
  9412. *v = v2
  9413. }
  9414. case map[int8]string:
  9415. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, d)
  9416. case *map[int8]string:
  9417. v2, changed2 := fastpathTV.DecMapInt8StringV(*v, fastpathCheckNilFalse, true, d)
  9418. if changed2 {
  9419. *v = v2
  9420. }
  9421. case map[int8]uint:
  9422. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, d)
  9423. case *map[int8]uint:
  9424. v2, changed2 := fastpathTV.DecMapInt8UintV(*v, fastpathCheckNilFalse, true, d)
  9425. if changed2 {
  9426. *v = v2
  9427. }
  9428. case map[int8]uint8:
  9429. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, d)
  9430. case *map[int8]uint8:
  9431. v2, changed2 := fastpathTV.DecMapInt8Uint8V(*v, fastpathCheckNilFalse, true, d)
  9432. if changed2 {
  9433. *v = v2
  9434. }
  9435. case map[int8]uint16:
  9436. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, d)
  9437. case *map[int8]uint16:
  9438. v2, changed2 := fastpathTV.DecMapInt8Uint16V(*v, fastpathCheckNilFalse, true, d)
  9439. if changed2 {
  9440. *v = v2
  9441. }
  9442. case map[int8]uint32:
  9443. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, d)
  9444. case *map[int8]uint32:
  9445. v2, changed2 := fastpathTV.DecMapInt8Uint32V(*v, fastpathCheckNilFalse, true, d)
  9446. if changed2 {
  9447. *v = v2
  9448. }
  9449. case map[int8]uint64:
  9450. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, d)
  9451. case *map[int8]uint64:
  9452. v2, changed2 := fastpathTV.DecMapInt8Uint64V(*v, fastpathCheckNilFalse, true, d)
  9453. if changed2 {
  9454. *v = v2
  9455. }
  9456. case map[int8]int:
  9457. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, d)
  9458. case *map[int8]int:
  9459. v2, changed2 := fastpathTV.DecMapInt8IntV(*v, fastpathCheckNilFalse, true, d)
  9460. if changed2 {
  9461. *v = v2
  9462. }
  9463. case map[int8]int8:
  9464. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, d)
  9465. case *map[int8]int8:
  9466. v2, changed2 := fastpathTV.DecMapInt8Int8V(*v, fastpathCheckNilFalse, true, d)
  9467. if changed2 {
  9468. *v = v2
  9469. }
  9470. case map[int8]int16:
  9471. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, d)
  9472. case *map[int8]int16:
  9473. v2, changed2 := fastpathTV.DecMapInt8Int16V(*v, fastpathCheckNilFalse, true, d)
  9474. if changed2 {
  9475. *v = v2
  9476. }
  9477. case map[int8]int32:
  9478. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, d)
  9479. case *map[int8]int32:
  9480. v2, changed2 := fastpathTV.DecMapInt8Int32V(*v, fastpathCheckNilFalse, true, d)
  9481. if changed2 {
  9482. *v = v2
  9483. }
  9484. case map[int8]int64:
  9485. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, d)
  9486. case *map[int8]int64:
  9487. v2, changed2 := fastpathTV.DecMapInt8Int64V(*v, fastpathCheckNilFalse, true, d)
  9488. if changed2 {
  9489. *v = v2
  9490. }
  9491. case map[int8]float32:
  9492. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, d)
  9493. case *map[int8]float32:
  9494. v2, changed2 := fastpathTV.DecMapInt8Float32V(*v, fastpathCheckNilFalse, true, d)
  9495. if changed2 {
  9496. *v = v2
  9497. }
  9498. case map[int8]float64:
  9499. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, d)
  9500. case *map[int8]float64:
  9501. v2, changed2 := fastpathTV.DecMapInt8Float64V(*v, fastpathCheckNilFalse, true, d)
  9502. if changed2 {
  9503. *v = v2
  9504. }
  9505. case map[int8]bool:
  9506. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, d)
  9507. case *map[int8]bool:
  9508. v2, changed2 := fastpathTV.DecMapInt8BoolV(*v, fastpathCheckNilFalse, true, d)
  9509. if changed2 {
  9510. *v = v2
  9511. }
  9512. case []int16:
  9513. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, d)
  9514. case *[]int16:
  9515. v2, changed2 := fastpathTV.DecSliceInt16V(*v, fastpathCheckNilFalse, true, d)
  9516. if changed2 {
  9517. *v = v2
  9518. }
  9519. case map[int16]interface{}:
  9520. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, d)
  9521. case *map[int16]interface{}:
  9522. v2, changed2 := fastpathTV.DecMapInt16IntfV(*v, fastpathCheckNilFalse, true, d)
  9523. if changed2 {
  9524. *v = v2
  9525. }
  9526. case map[int16]string:
  9527. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, d)
  9528. case *map[int16]string:
  9529. v2, changed2 := fastpathTV.DecMapInt16StringV(*v, fastpathCheckNilFalse, true, d)
  9530. if changed2 {
  9531. *v = v2
  9532. }
  9533. case map[int16]uint:
  9534. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, d)
  9535. case *map[int16]uint:
  9536. v2, changed2 := fastpathTV.DecMapInt16UintV(*v, fastpathCheckNilFalse, true, d)
  9537. if changed2 {
  9538. *v = v2
  9539. }
  9540. case map[int16]uint8:
  9541. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, d)
  9542. case *map[int16]uint8:
  9543. v2, changed2 := fastpathTV.DecMapInt16Uint8V(*v, fastpathCheckNilFalse, true, d)
  9544. if changed2 {
  9545. *v = v2
  9546. }
  9547. case map[int16]uint16:
  9548. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, d)
  9549. case *map[int16]uint16:
  9550. v2, changed2 := fastpathTV.DecMapInt16Uint16V(*v, fastpathCheckNilFalse, true, d)
  9551. if changed2 {
  9552. *v = v2
  9553. }
  9554. case map[int16]uint32:
  9555. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, d)
  9556. case *map[int16]uint32:
  9557. v2, changed2 := fastpathTV.DecMapInt16Uint32V(*v, fastpathCheckNilFalse, true, d)
  9558. if changed2 {
  9559. *v = v2
  9560. }
  9561. case map[int16]uint64:
  9562. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, d)
  9563. case *map[int16]uint64:
  9564. v2, changed2 := fastpathTV.DecMapInt16Uint64V(*v, fastpathCheckNilFalse, true, d)
  9565. if changed2 {
  9566. *v = v2
  9567. }
  9568. case map[int16]int:
  9569. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, d)
  9570. case *map[int16]int:
  9571. v2, changed2 := fastpathTV.DecMapInt16IntV(*v, fastpathCheckNilFalse, true, d)
  9572. if changed2 {
  9573. *v = v2
  9574. }
  9575. case map[int16]int8:
  9576. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, d)
  9577. case *map[int16]int8:
  9578. v2, changed2 := fastpathTV.DecMapInt16Int8V(*v, fastpathCheckNilFalse, true, d)
  9579. if changed2 {
  9580. *v = v2
  9581. }
  9582. case map[int16]int16:
  9583. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, d)
  9584. case *map[int16]int16:
  9585. v2, changed2 := fastpathTV.DecMapInt16Int16V(*v, fastpathCheckNilFalse, true, d)
  9586. if changed2 {
  9587. *v = v2
  9588. }
  9589. case map[int16]int32:
  9590. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, d)
  9591. case *map[int16]int32:
  9592. v2, changed2 := fastpathTV.DecMapInt16Int32V(*v, fastpathCheckNilFalse, true, d)
  9593. if changed2 {
  9594. *v = v2
  9595. }
  9596. case map[int16]int64:
  9597. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, d)
  9598. case *map[int16]int64:
  9599. v2, changed2 := fastpathTV.DecMapInt16Int64V(*v, fastpathCheckNilFalse, true, d)
  9600. if changed2 {
  9601. *v = v2
  9602. }
  9603. case map[int16]float32:
  9604. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, d)
  9605. case *map[int16]float32:
  9606. v2, changed2 := fastpathTV.DecMapInt16Float32V(*v, fastpathCheckNilFalse, true, d)
  9607. if changed2 {
  9608. *v = v2
  9609. }
  9610. case map[int16]float64:
  9611. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, d)
  9612. case *map[int16]float64:
  9613. v2, changed2 := fastpathTV.DecMapInt16Float64V(*v, fastpathCheckNilFalse, true, d)
  9614. if changed2 {
  9615. *v = v2
  9616. }
  9617. case map[int16]bool:
  9618. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, d)
  9619. case *map[int16]bool:
  9620. v2, changed2 := fastpathTV.DecMapInt16BoolV(*v, fastpathCheckNilFalse, true, d)
  9621. if changed2 {
  9622. *v = v2
  9623. }
  9624. case []int32:
  9625. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, d)
  9626. case *[]int32:
  9627. v2, changed2 := fastpathTV.DecSliceInt32V(*v, fastpathCheckNilFalse, true, d)
  9628. if changed2 {
  9629. *v = v2
  9630. }
  9631. case map[int32]interface{}:
  9632. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, d)
  9633. case *map[int32]interface{}:
  9634. v2, changed2 := fastpathTV.DecMapInt32IntfV(*v, fastpathCheckNilFalse, true, d)
  9635. if changed2 {
  9636. *v = v2
  9637. }
  9638. case map[int32]string:
  9639. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, d)
  9640. case *map[int32]string:
  9641. v2, changed2 := fastpathTV.DecMapInt32StringV(*v, fastpathCheckNilFalse, true, d)
  9642. if changed2 {
  9643. *v = v2
  9644. }
  9645. case map[int32]uint:
  9646. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, d)
  9647. case *map[int32]uint:
  9648. v2, changed2 := fastpathTV.DecMapInt32UintV(*v, fastpathCheckNilFalse, true, d)
  9649. if changed2 {
  9650. *v = v2
  9651. }
  9652. case map[int32]uint8:
  9653. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, d)
  9654. case *map[int32]uint8:
  9655. v2, changed2 := fastpathTV.DecMapInt32Uint8V(*v, fastpathCheckNilFalse, true, d)
  9656. if changed2 {
  9657. *v = v2
  9658. }
  9659. case map[int32]uint16:
  9660. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, d)
  9661. case *map[int32]uint16:
  9662. v2, changed2 := fastpathTV.DecMapInt32Uint16V(*v, fastpathCheckNilFalse, true, d)
  9663. if changed2 {
  9664. *v = v2
  9665. }
  9666. case map[int32]uint32:
  9667. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, d)
  9668. case *map[int32]uint32:
  9669. v2, changed2 := fastpathTV.DecMapInt32Uint32V(*v, fastpathCheckNilFalse, true, d)
  9670. if changed2 {
  9671. *v = v2
  9672. }
  9673. case map[int32]uint64:
  9674. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, d)
  9675. case *map[int32]uint64:
  9676. v2, changed2 := fastpathTV.DecMapInt32Uint64V(*v, fastpathCheckNilFalse, true, d)
  9677. if changed2 {
  9678. *v = v2
  9679. }
  9680. case map[int32]int:
  9681. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, d)
  9682. case *map[int32]int:
  9683. v2, changed2 := fastpathTV.DecMapInt32IntV(*v, fastpathCheckNilFalse, true, d)
  9684. if changed2 {
  9685. *v = v2
  9686. }
  9687. case map[int32]int8:
  9688. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, d)
  9689. case *map[int32]int8:
  9690. v2, changed2 := fastpathTV.DecMapInt32Int8V(*v, fastpathCheckNilFalse, true, d)
  9691. if changed2 {
  9692. *v = v2
  9693. }
  9694. case map[int32]int16:
  9695. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, d)
  9696. case *map[int32]int16:
  9697. v2, changed2 := fastpathTV.DecMapInt32Int16V(*v, fastpathCheckNilFalse, true, d)
  9698. if changed2 {
  9699. *v = v2
  9700. }
  9701. case map[int32]int32:
  9702. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, d)
  9703. case *map[int32]int32:
  9704. v2, changed2 := fastpathTV.DecMapInt32Int32V(*v, fastpathCheckNilFalse, true, d)
  9705. if changed2 {
  9706. *v = v2
  9707. }
  9708. case map[int32]int64:
  9709. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, d)
  9710. case *map[int32]int64:
  9711. v2, changed2 := fastpathTV.DecMapInt32Int64V(*v, fastpathCheckNilFalse, true, d)
  9712. if changed2 {
  9713. *v = v2
  9714. }
  9715. case map[int32]float32:
  9716. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, d)
  9717. case *map[int32]float32:
  9718. v2, changed2 := fastpathTV.DecMapInt32Float32V(*v, fastpathCheckNilFalse, true, d)
  9719. if changed2 {
  9720. *v = v2
  9721. }
  9722. case map[int32]float64:
  9723. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, d)
  9724. case *map[int32]float64:
  9725. v2, changed2 := fastpathTV.DecMapInt32Float64V(*v, fastpathCheckNilFalse, true, d)
  9726. if changed2 {
  9727. *v = v2
  9728. }
  9729. case map[int32]bool:
  9730. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, d)
  9731. case *map[int32]bool:
  9732. v2, changed2 := fastpathTV.DecMapInt32BoolV(*v, fastpathCheckNilFalse, true, d)
  9733. if changed2 {
  9734. *v = v2
  9735. }
  9736. case []int64:
  9737. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, d)
  9738. case *[]int64:
  9739. v2, changed2 := fastpathTV.DecSliceInt64V(*v, fastpathCheckNilFalse, true, d)
  9740. if changed2 {
  9741. *v = v2
  9742. }
  9743. case map[int64]interface{}:
  9744. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, d)
  9745. case *map[int64]interface{}:
  9746. v2, changed2 := fastpathTV.DecMapInt64IntfV(*v, fastpathCheckNilFalse, true, d)
  9747. if changed2 {
  9748. *v = v2
  9749. }
  9750. case map[int64]string:
  9751. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, d)
  9752. case *map[int64]string:
  9753. v2, changed2 := fastpathTV.DecMapInt64StringV(*v, fastpathCheckNilFalse, true, d)
  9754. if changed2 {
  9755. *v = v2
  9756. }
  9757. case map[int64]uint:
  9758. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, d)
  9759. case *map[int64]uint:
  9760. v2, changed2 := fastpathTV.DecMapInt64UintV(*v, fastpathCheckNilFalse, true, d)
  9761. if changed2 {
  9762. *v = v2
  9763. }
  9764. case map[int64]uint8:
  9765. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, d)
  9766. case *map[int64]uint8:
  9767. v2, changed2 := fastpathTV.DecMapInt64Uint8V(*v, fastpathCheckNilFalse, true, d)
  9768. if changed2 {
  9769. *v = v2
  9770. }
  9771. case map[int64]uint16:
  9772. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, d)
  9773. case *map[int64]uint16:
  9774. v2, changed2 := fastpathTV.DecMapInt64Uint16V(*v, fastpathCheckNilFalse, true, d)
  9775. if changed2 {
  9776. *v = v2
  9777. }
  9778. case map[int64]uint32:
  9779. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, d)
  9780. case *map[int64]uint32:
  9781. v2, changed2 := fastpathTV.DecMapInt64Uint32V(*v, fastpathCheckNilFalse, true, d)
  9782. if changed2 {
  9783. *v = v2
  9784. }
  9785. case map[int64]uint64:
  9786. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, d)
  9787. case *map[int64]uint64:
  9788. v2, changed2 := fastpathTV.DecMapInt64Uint64V(*v, fastpathCheckNilFalse, true, d)
  9789. if changed2 {
  9790. *v = v2
  9791. }
  9792. case map[int64]int:
  9793. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, d)
  9794. case *map[int64]int:
  9795. v2, changed2 := fastpathTV.DecMapInt64IntV(*v, fastpathCheckNilFalse, true, d)
  9796. if changed2 {
  9797. *v = v2
  9798. }
  9799. case map[int64]int8:
  9800. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, d)
  9801. case *map[int64]int8:
  9802. v2, changed2 := fastpathTV.DecMapInt64Int8V(*v, fastpathCheckNilFalse, true, d)
  9803. if changed2 {
  9804. *v = v2
  9805. }
  9806. case map[int64]int16:
  9807. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, d)
  9808. case *map[int64]int16:
  9809. v2, changed2 := fastpathTV.DecMapInt64Int16V(*v, fastpathCheckNilFalse, true, d)
  9810. if changed2 {
  9811. *v = v2
  9812. }
  9813. case map[int64]int32:
  9814. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, d)
  9815. case *map[int64]int32:
  9816. v2, changed2 := fastpathTV.DecMapInt64Int32V(*v, fastpathCheckNilFalse, true, d)
  9817. if changed2 {
  9818. *v = v2
  9819. }
  9820. case map[int64]int64:
  9821. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, d)
  9822. case *map[int64]int64:
  9823. v2, changed2 := fastpathTV.DecMapInt64Int64V(*v, fastpathCheckNilFalse, true, d)
  9824. if changed2 {
  9825. *v = v2
  9826. }
  9827. case map[int64]float32:
  9828. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, d)
  9829. case *map[int64]float32:
  9830. v2, changed2 := fastpathTV.DecMapInt64Float32V(*v, fastpathCheckNilFalse, true, d)
  9831. if changed2 {
  9832. *v = v2
  9833. }
  9834. case map[int64]float64:
  9835. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, d)
  9836. case *map[int64]float64:
  9837. v2, changed2 := fastpathTV.DecMapInt64Float64V(*v, fastpathCheckNilFalse, true, d)
  9838. if changed2 {
  9839. *v = v2
  9840. }
  9841. case map[int64]bool:
  9842. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, d)
  9843. case *map[int64]bool:
  9844. v2, changed2 := fastpathTV.DecMapInt64BoolV(*v, fastpathCheckNilFalse, true, d)
  9845. if changed2 {
  9846. *v = v2
  9847. }
  9848. case []bool:
  9849. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, d)
  9850. case *[]bool:
  9851. v2, changed2 := fastpathTV.DecSliceBoolV(*v, fastpathCheckNilFalse, true, d)
  9852. if changed2 {
  9853. *v = v2
  9854. }
  9855. case map[bool]interface{}:
  9856. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, d)
  9857. case *map[bool]interface{}:
  9858. v2, changed2 := fastpathTV.DecMapBoolIntfV(*v, fastpathCheckNilFalse, true, d)
  9859. if changed2 {
  9860. *v = v2
  9861. }
  9862. case map[bool]string:
  9863. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, d)
  9864. case *map[bool]string:
  9865. v2, changed2 := fastpathTV.DecMapBoolStringV(*v, fastpathCheckNilFalse, true, d)
  9866. if changed2 {
  9867. *v = v2
  9868. }
  9869. case map[bool]uint:
  9870. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, d)
  9871. case *map[bool]uint:
  9872. v2, changed2 := fastpathTV.DecMapBoolUintV(*v, fastpathCheckNilFalse, true, d)
  9873. if changed2 {
  9874. *v = v2
  9875. }
  9876. case map[bool]uint8:
  9877. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, d)
  9878. case *map[bool]uint8:
  9879. v2, changed2 := fastpathTV.DecMapBoolUint8V(*v, fastpathCheckNilFalse, true, d)
  9880. if changed2 {
  9881. *v = v2
  9882. }
  9883. case map[bool]uint16:
  9884. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, d)
  9885. case *map[bool]uint16:
  9886. v2, changed2 := fastpathTV.DecMapBoolUint16V(*v, fastpathCheckNilFalse, true, d)
  9887. if changed2 {
  9888. *v = v2
  9889. }
  9890. case map[bool]uint32:
  9891. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, d)
  9892. case *map[bool]uint32:
  9893. v2, changed2 := fastpathTV.DecMapBoolUint32V(*v, fastpathCheckNilFalse, true, d)
  9894. if changed2 {
  9895. *v = v2
  9896. }
  9897. case map[bool]uint64:
  9898. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, d)
  9899. case *map[bool]uint64:
  9900. v2, changed2 := fastpathTV.DecMapBoolUint64V(*v, fastpathCheckNilFalse, true, d)
  9901. if changed2 {
  9902. *v = v2
  9903. }
  9904. case map[bool]int:
  9905. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, d)
  9906. case *map[bool]int:
  9907. v2, changed2 := fastpathTV.DecMapBoolIntV(*v, fastpathCheckNilFalse, true, d)
  9908. if changed2 {
  9909. *v = v2
  9910. }
  9911. case map[bool]int8:
  9912. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, d)
  9913. case *map[bool]int8:
  9914. v2, changed2 := fastpathTV.DecMapBoolInt8V(*v, fastpathCheckNilFalse, true, d)
  9915. if changed2 {
  9916. *v = v2
  9917. }
  9918. case map[bool]int16:
  9919. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, d)
  9920. case *map[bool]int16:
  9921. v2, changed2 := fastpathTV.DecMapBoolInt16V(*v, fastpathCheckNilFalse, true, d)
  9922. if changed2 {
  9923. *v = v2
  9924. }
  9925. case map[bool]int32:
  9926. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, d)
  9927. case *map[bool]int32:
  9928. v2, changed2 := fastpathTV.DecMapBoolInt32V(*v, fastpathCheckNilFalse, true, d)
  9929. if changed2 {
  9930. *v = v2
  9931. }
  9932. case map[bool]int64:
  9933. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, d)
  9934. case *map[bool]int64:
  9935. v2, changed2 := fastpathTV.DecMapBoolInt64V(*v, fastpathCheckNilFalse, true, d)
  9936. if changed2 {
  9937. *v = v2
  9938. }
  9939. case map[bool]float32:
  9940. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, d)
  9941. case *map[bool]float32:
  9942. v2, changed2 := fastpathTV.DecMapBoolFloat32V(*v, fastpathCheckNilFalse, true, d)
  9943. if changed2 {
  9944. *v = v2
  9945. }
  9946. case map[bool]float64:
  9947. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, d)
  9948. case *map[bool]float64:
  9949. v2, changed2 := fastpathTV.DecMapBoolFloat64V(*v, fastpathCheckNilFalse, true, d)
  9950. if changed2 {
  9951. *v = v2
  9952. }
  9953. case map[bool]bool:
  9954. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, d)
  9955. case *map[bool]bool:
  9956. v2, changed2 := fastpathTV.DecMapBoolBoolV(*v, fastpathCheckNilFalse, true, d)
  9957. if changed2 {
  9958. *v = v2
  9959. }
  9960. default:
  9961. return false
  9962. }
  9963. return true
  9964. }
  9965. // -- -- fast path functions
  9966. func (f decFnInfo) fastpathDecSliceIntfR(rv reflect.Value) {
  9967. array := f.seq == seqTypeArray
  9968. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  9969. vp := rv.Addr().Interface().(*[]interface{})
  9970. v, changed := fastpathTV.DecSliceIntfV(*vp, fastpathCheckNilFalse, !array, f.d)
  9971. if changed {
  9972. *vp = v
  9973. }
  9974. } else {
  9975. v := rv.Interface().([]interface{})
  9976. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, f.d)
  9977. }
  9978. }
  9979. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, checkNil bool, d *Decoder) {
  9980. v, changed := f.DecSliceIntfV(*vp, checkNil, true, d)
  9981. if changed {
  9982. *vp = v
  9983. }
  9984. }
  9985. func (_ fastpathT) DecSliceIntfV(v []interface{}, checkNil bool, canChange bool,
  9986. d *Decoder) (_ []interface{}, changed bool) {
  9987. dd := d.d
  9988. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  9989. if checkNil && dd.TryDecodeAsNil() {
  9990. if v != nil {
  9991. changed = true
  9992. }
  9993. return nil, changed
  9994. }
  9995. slh, containerLenS := d.decSliceHelperStart()
  9996. if canChange && v == nil {
  9997. if containerLenS <= 0 {
  9998. v = []interface{}{}
  9999. } else {
  10000. v = make([]interface{}, containerLenS, containerLenS)
  10001. }
  10002. changed = true
  10003. }
  10004. if containerLenS == 0 {
  10005. if canChange && len(v) != 0 {
  10006. v = v[:0]
  10007. changed = true
  10008. }
  10009. return v, changed
  10010. }
  10011. // for j := 0; j < containerLenS; j++ {
  10012. if containerLenS > 0 {
  10013. decLen := containerLenS
  10014. if containerLenS > cap(v) {
  10015. if canChange {
  10016. s := make([]interface{}, containerLenS, containerLenS)
  10017. // copy(s, v[:cap(v)])
  10018. v = s
  10019. changed = true
  10020. } else {
  10021. d.arrayCannotExpand(len(v), containerLenS)
  10022. decLen = len(v)
  10023. }
  10024. } else if containerLenS != len(v) {
  10025. v = v[:containerLenS]
  10026. changed = true
  10027. }
  10028. // all checks done. cannot go past len.
  10029. j := 0
  10030. for ; j < decLen; j++ {
  10031. d.decode(&v[j])
  10032. }
  10033. if !canChange {
  10034. for ; j < containerLenS; j++ {
  10035. d.swallow()
  10036. }
  10037. }
  10038. } else {
  10039. j := 0
  10040. for ; !dd.CheckBreak(); j++ {
  10041. if j >= len(v) {
  10042. if canChange {
  10043. v = append(v, nil)
  10044. changed = true
  10045. } else {
  10046. d.arrayCannotExpand(len(v), j+1)
  10047. }
  10048. }
  10049. if j > 0 {
  10050. slh.Sep(j)
  10051. }
  10052. if j < len(v) { // all checks done. cannot go past len.
  10053. d.decode(&v[j])
  10054. } else {
  10055. d.swallow()
  10056. }
  10057. }
  10058. slh.End()
  10059. }
  10060. return v, changed
  10061. }
  10062. func (f decFnInfo) fastpathDecSliceStringR(rv reflect.Value) {
  10063. array := f.seq == seqTypeArray
  10064. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  10065. vp := rv.Addr().Interface().(*[]string)
  10066. v, changed := fastpathTV.DecSliceStringV(*vp, fastpathCheckNilFalse, !array, f.d)
  10067. if changed {
  10068. *vp = v
  10069. }
  10070. } else {
  10071. v := rv.Interface().([]string)
  10072. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, f.d)
  10073. }
  10074. }
  10075. func (f fastpathT) DecSliceStringX(vp *[]string, checkNil bool, d *Decoder) {
  10076. v, changed := f.DecSliceStringV(*vp, checkNil, true, d)
  10077. if changed {
  10078. *vp = v
  10079. }
  10080. }
  10081. func (_ fastpathT) DecSliceStringV(v []string, checkNil bool, canChange bool,
  10082. d *Decoder) (_ []string, changed bool) {
  10083. dd := d.d
  10084. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  10085. if checkNil && dd.TryDecodeAsNil() {
  10086. if v != nil {
  10087. changed = true
  10088. }
  10089. return nil, changed
  10090. }
  10091. slh, containerLenS := d.decSliceHelperStart()
  10092. if canChange && v == nil {
  10093. if containerLenS <= 0 {
  10094. v = []string{}
  10095. } else {
  10096. v = make([]string, containerLenS, containerLenS)
  10097. }
  10098. changed = true
  10099. }
  10100. if containerLenS == 0 {
  10101. if canChange && len(v) != 0 {
  10102. v = v[:0]
  10103. changed = true
  10104. }
  10105. return v, changed
  10106. }
  10107. // for j := 0; j < containerLenS; j++ {
  10108. if containerLenS > 0 {
  10109. decLen := containerLenS
  10110. if containerLenS > cap(v) {
  10111. if canChange {
  10112. s := make([]string, containerLenS, containerLenS)
  10113. // copy(s, v[:cap(v)])
  10114. v = s
  10115. changed = true
  10116. } else {
  10117. d.arrayCannotExpand(len(v), containerLenS)
  10118. decLen = len(v)
  10119. }
  10120. } else if containerLenS != len(v) {
  10121. v = v[:containerLenS]
  10122. changed = true
  10123. }
  10124. // all checks done. cannot go past len.
  10125. j := 0
  10126. for ; j < decLen; j++ {
  10127. v[j] = dd.DecodeString()
  10128. }
  10129. if !canChange {
  10130. for ; j < containerLenS; j++ {
  10131. d.swallow()
  10132. }
  10133. }
  10134. } else {
  10135. j := 0
  10136. for ; !dd.CheckBreak(); j++ {
  10137. if j >= len(v) {
  10138. if canChange {
  10139. v = append(v, "")
  10140. changed = true
  10141. } else {
  10142. d.arrayCannotExpand(len(v), j+1)
  10143. }
  10144. }
  10145. if j > 0 {
  10146. slh.Sep(j)
  10147. }
  10148. if j < len(v) { // all checks done. cannot go past len.
  10149. v[j] = dd.DecodeString()
  10150. } else {
  10151. d.swallow()
  10152. }
  10153. }
  10154. slh.End()
  10155. }
  10156. return v, changed
  10157. }
  10158. func (f decFnInfo) fastpathDecSliceFloat32R(rv reflect.Value) {
  10159. array := f.seq == seqTypeArray
  10160. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  10161. vp := rv.Addr().Interface().(*[]float32)
  10162. v, changed := fastpathTV.DecSliceFloat32V(*vp, fastpathCheckNilFalse, !array, f.d)
  10163. if changed {
  10164. *vp = v
  10165. }
  10166. } else {
  10167. v := rv.Interface().([]float32)
  10168. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, f.d)
  10169. }
  10170. }
  10171. func (f fastpathT) DecSliceFloat32X(vp *[]float32, checkNil bool, d *Decoder) {
  10172. v, changed := f.DecSliceFloat32V(*vp, checkNil, true, d)
  10173. if changed {
  10174. *vp = v
  10175. }
  10176. }
  10177. func (_ fastpathT) DecSliceFloat32V(v []float32, checkNil bool, canChange bool,
  10178. d *Decoder) (_ []float32, changed bool) {
  10179. dd := d.d
  10180. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  10181. if checkNil && dd.TryDecodeAsNil() {
  10182. if v != nil {
  10183. changed = true
  10184. }
  10185. return nil, changed
  10186. }
  10187. slh, containerLenS := d.decSliceHelperStart()
  10188. if canChange && v == nil {
  10189. if containerLenS <= 0 {
  10190. v = []float32{}
  10191. } else {
  10192. v = make([]float32, containerLenS, containerLenS)
  10193. }
  10194. changed = true
  10195. }
  10196. if containerLenS == 0 {
  10197. if canChange && len(v) != 0 {
  10198. v = v[:0]
  10199. changed = true
  10200. }
  10201. return v, changed
  10202. }
  10203. // for j := 0; j < containerLenS; j++ {
  10204. if containerLenS > 0 {
  10205. decLen := containerLenS
  10206. if containerLenS > cap(v) {
  10207. if canChange {
  10208. s := make([]float32, containerLenS, containerLenS)
  10209. // copy(s, v[:cap(v)])
  10210. v = s
  10211. changed = true
  10212. } else {
  10213. d.arrayCannotExpand(len(v), containerLenS)
  10214. decLen = len(v)
  10215. }
  10216. } else if containerLenS != len(v) {
  10217. v = v[:containerLenS]
  10218. changed = true
  10219. }
  10220. // all checks done. cannot go past len.
  10221. j := 0
  10222. for ; j < decLen; j++ {
  10223. v[j] = float32(dd.DecodeFloat(true))
  10224. }
  10225. if !canChange {
  10226. for ; j < containerLenS; j++ {
  10227. d.swallow()
  10228. }
  10229. }
  10230. } else {
  10231. j := 0
  10232. for ; !dd.CheckBreak(); j++ {
  10233. if j >= len(v) {
  10234. if canChange {
  10235. v = append(v, 0)
  10236. changed = true
  10237. } else {
  10238. d.arrayCannotExpand(len(v), j+1)
  10239. }
  10240. }
  10241. if j > 0 {
  10242. slh.Sep(j)
  10243. }
  10244. if j < len(v) { // all checks done. cannot go past len.
  10245. v[j] = float32(dd.DecodeFloat(true))
  10246. } else {
  10247. d.swallow()
  10248. }
  10249. }
  10250. slh.End()
  10251. }
  10252. return v, changed
  10253. }
  10254. func (f decFnInfo) fastpathDecSliceFloat64R(rv reflect.Value) {
  10255. array := f.seq == seqTypeArray
  10256. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  10257. vp := rv.Addr().Interface().(*[]float64)
  10258. v, changed := fastpathTV.DecSliceFloat64V(*vp, fastpathCheckNilFalse, !array, f.d)
  10259. if changed {
  10260. *vp = v
  10261. }
  10262. } else {
  10263. v := rv.Interface().([]float64)
  10264. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, f.d)
  10265. }
  10266. }
  10267. func (f fastpathT) DecSliceFloat64X(vp *[]float64, checkNil bool, d *Decoder) {
  10268. v, changed := f.DecSliceFloat64V(*vp, checkNil, true, d)
  10269. if changed {
  10270. *vp = v
  10271. }
  10272. }
  10273. func (_ fastpathT) DecSliceFloat64V(v []float64, checkNil bool, canChange bool,
  10274. d *Decoder) (_ []float64, changed bool) {
  10275. dd := d.d
  10276. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  10277. if checkNil && dd.TryDecodeAsNil() {
  10278. if v != nil {
  10279. changed = true
  10280. }
  10281. return nil, changed
  10282. }
  10283. slh, containerLenS := d.decSliceHelperStart()
  10284. if canChange && v == nil {
  10285. if containerLenS <= 0 {
  10286. v = []float64{}
  10287. } else {
  10288. v = make([]float64, containerLenS, containerLenS)
  10289. }
  10290. changed = true
  10291. }
  10292. if containerLenS == 0 {
  10293. if canChange && len(v) != 0 {
  10294. v = v[:0]
  10295. changed = true
  10296. }
  10297. return v, changed
  10298. }
  10299. // for j := 0; j < containerLenS; j++ {
  10300. if containerLenS > 0 {
  10301. decLen := containerLenS
  10302. if containerLenS > cap(v) {
  10303. if canChange {
  10304. s := make([]float64, containerLenS, containerLenS)
  10305. // copy(s, v[:cap(v)])
  10306. v = s
  10307. changed = true
  10308. } else {
  10309. d.arrayCannotExpand(len(v), containerLenS)
  10310. decLen = len(v)
  10311. }
  10312. } else if containerLenS != len(v) {
  10313. v = v[:containerLenS]
  10314. changed = true
  10315. }
  10316. // all checks done. cannot go past len.
  10317. j := 0
  10318. for ; j < decLen; j++ {
  10319. v[j] = dd.DecodeFloat(false)
  10320. }
  10321. if !canChange {
  10322. for ; j < containerLenS; j++ {
  10323. d.swallow()
  10324. }
  10325. }
  10326. } else {
  10327. j := 0
  10328. for ; !dd.CheckBreak(); j++ {
  10329. if j >= len(v) {
  10330. if canChange {
  10331. v = append(v, 0)
  10332. changed = true
  10333. } else {
  10334. d.arrayCannotExpand(len(v), j+1)
  10335. }
  10336. }
  10337. if j > 0 {
  10338. slh.Sep(j)
  10339. }
  10340. if j < len(v) { // all checks done. cannot go past len.
  10341. v[j] = dd.DecodeFloat(false)
  10342. } else {
  10343. d.swallow()
  10344. }
  10345. }
  10346. slh.End()
  10347. }
  10348. return v, changed
  10349. }
  10350. func (f decFnInfo) fastpathDecSliceUintR(rv reflect.Value) {
  10351. array := f.seq == seqTypeArray
  10352. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  10353. vp := rv.Addr().Interface().(*[]uint)
  10354. v, changed := fastpathTV.DecSliceUintV(*vp, fastpathCheckNilFalse, !array, f.d)
  10355. if changed {
  10356. *vp = v
  10357. }
  10358. } else {
  10359. v := rv.Interface().([]uint)
  10360. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, f.d)
  10361. }
  10362. }
  10363. func (f fastpathT) DecSliceUintX(vp *[]uint, checkNil bool, d *Decoder) {
  10364. v, changed := f.DecSliceUintV(*vp, checkNil, true, d)
  10365. if changed {
  10366. *vp = v
  10367. }
  10368. }
  10369. func (_ fastpathT) DecSliceUintV(v []uint, checkNil bool, canChange bool,
  10370. d *Decoder) (_ []uint, changed bool) {
  10371. dd := d.d
  10372. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  10373. if checkNil && dd.TryDecodeAsNil() {
  10374. if v != nil {
  10375. changed = true
  10376. }
  10377. return nil, changed
  10378. }
  10379. slh, containerLenS := d.decSliceHelperStart()
  10380. if canChange && v == nil {
  10381. if containerLenS <= 0 {
  10382. v = []uint{}
  10383. } else {
  10384. v = make([]uint, containerLenS, containerLenS)
  10385. }
  10386. changed = true
  10387. }
  10388. if containerLenS == 0 {
  10389. if canChange && len(v) != 0 {
  10390. v = v[:0]
  10391. changed = true
  10392. }
  10393. return v, changed
  10394. }
  10395. // for j := 0; j < containerLenS; j++ {
  10396. if containerLenS > 0 {
  10397. decLen := containerLenS
  10398. if containerLenS > cap(v) {
  10399. if canChange {
  10400. s := make([]uint, containerLenS, containerLenS)
  10401. // copy(s, v[:cap(v)])
  10402. v = s
  10403. changed = true
  10404. } else {
  10405. d.arrayCannotExpand(len(v), containerLenS)
  10406. decLen = len(v)
  10407. }
  10408. } else if containerLenS != len(v) {
  10409. v = v[:containerLenS]
  10410. changed = true
  10411. }
  10412. // all checks done. cannot go past len.
  10413. j := 0
  10414. for ; j < decLen; j++ {
  10415. v[j] = uint(dd.DecodeUint(uintBitsize))
  10416. }
  10417. if !canChange {
  10418. for ; j < containerLenS; j++ {
  10419. d.swallow()
  10420. }
  10421. }
  10422. } else {
  10423. j := 0
  10424. for ; !dd.CheckBreak(); j++ {
  10425. if j >= len(v) {
  10426. if canChange {
  10427. v = append(v, 0)
  10428. changed = true
  10429. } else {
  10430. d.arrayCannotExpand(len(v), j+1)
  10431. }
  10432. }
  10433. if j > 0 {
  10434. slh.Sep(j)
  10435. }
  10436. if j < len(v) { // all checks done. cannot go past len.
  10437. v[j] = uint(dd.DecodeUint(uintBitsize))
  10438. } else {
  10439. d.swallow()
  10440. }
  10441. }
  10442. slh.End()
  10443. }
  10444. return v, changed
  10445. }
  10446. func (f decFnInfo) fastpathDecSliceUint16R(rv reflect.Value) {
  10447. array := f.seq == seqTypeArray
  10448. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  10449. vp := rv.Addr().Interface().(*[]uint16)
  10450. v, changed := fastpathTV.DecSliceUint16V(*vp, fastpathCheckNilFalse, !array, f.d)
  10451. if changed {
  10452. *vp = v
  10453. }
  10454. } else {
  10455. v := rv.Interface().([]uint16)
  10456. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, f.d)
  10457. }
  10458. }
  10459. func (f fastpathT) DecSliceUint16X(vp *[]uint16, checkNil bool, d *Decoder) {
  10460. v, changed := f.DecSliceUint16V(*vp, checkNil, true, d)
  10461. if changed {
  10462. *vp = v
  10463. }
  10464. }
  10465. func (_ fastpathT) DecSliceUint16V(v []uint16, checkNil bool, canChange bool,
  10466. d *Decoder) (_ []uint16, changed bool) {
  10467. dd := d.d
  10468. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  10469. if checkNil && dd.TryDecodeAsNil() {
  10470. if v != nil {
  10471. changed = true
  10472. }
  10473. return nil, changed
  10474. }
  10475. slh, containerLenS := d.decSliceHelperStart()
  10476. if canChange && v == nil {
  10477. if containerLenS <= 0 {
  10478. v = []uint16{}
  10479. } else {
  10480. v = make([]uint16, containerLenS, containerLenS)
  10481. }
  10482. changed = true
  10483. }
  10484. if containerLenS == 0 {
  10485. if canChange && len(v) != 0 {
  10486. v = v[:0]
  10487. changed = true
  10488. }
  10489. return v, changed
  10490. }
  10491. // for j := 0; j < containerLenS; j++ {
  10492. if containerLenS > 0 {
  10493. decLen := containerLenS
  10494. if containerLenS > cap(v) {
  10495. if canChange {
  10496. s := make([]uint16, containerLenS, containerLenS)
  10497. // copy(s, v[:cap(v)])
  10498. v = s
  10499. changed = true
  10500. } else {
  10501. d.arrayCannotExpand(len(v), containerLenS)
  10502. decLen = len(v)
  10503. }
  10504. } else if containerLenS != len(v) {
  10505. v = v[:containerLenS]
  10506. changed = true
  10507. }
  10508. // all checks done. cannot go past len.
  10509. j := 0
  10510. for ; j < decLen; j++ {
  10511. v[j] = uint16(dd.DecodeUint(16))
  10512. }
  10513. if !canChange {
  10514. for ; j < containerLenS; j++ {
  10515. d.swallow()
  10516. }
  10517. }
  10518. } else {
  10519. j := 0
  10520. for ; !dd.CheckBreak(); j++ {
  10521. if j >= len(v) {
  10522. if canChange {
  10523. v = append(v, 0)
  10524. changed = true
  10525. } else {
  10526. d.arrayCannotExpand(len(v), j+1)
  10527. }
  10528. }
  10529. if j > 0 {
  10530. slh.Sep(j)
  10531. }
  10532. if j < len(v) { // all checks done. cannot go past len.
  10533. v[j] = uint16(dd.DecodeUint(16))
  10534. } else {
  10535. d.swallow()
  10536. }
  10537. }
  10538. slh.End()
  10539. }
  10540. return v, changed
  10541. }
  10542. func (f decFnInfo) fastpathDecSliceUint32R(rv reflect.Value) {
  10543. array := f.seq == seqTypeArray
  10544. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  10545. vp := rv.Addr().Interface().(*[]uint32)
  10546. v, changed := fastpathTV.DecSliceUint32V(*vp, fastpathCheckNilFalse, !array, f.d)
  10547. if changed {
  10548. *vp = v
  10549. }
  10550. } else {
  10551. v := rv.Interface().([]uint32)
  10552. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, f.d)
  10553. }
  10554. }
  10555. func (f fastpathT) DecSliceUint32X(vp *[]uint32, checkNil bool, d *Decoder) {
  10556. v, changed := f.DecSliceUint32V(*vp, checkNil, true, d)
  10557. if changed {
  10558. *vp = v
  10559. }
  10560. }
  10561. func (_ fastpathT) DecSliceUint32V(v []uint32, checkNil bool, canChange bool,
  10562. d *Decoder) (_ []uint32, changed bool) {
  10563. dd := d.d
  10564. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  10565. if checkNil && dd.TryDecodeAsNil() {
  10566. if v != nil {
  10567. changed = true
  10568. }
  10569. return nil, changed
  10570. }
  10571. slh, containerLenS := d.decSliceHelperStart()
  10572. if canChange && v == nil {
  10573. if containerLenS <= 0 {
  10574. v = []uint32{}
  10575. } else {
  10576. v = make([]uint32, containerLenS, containerLenS)
  10577. }
  10578. changed = true
  10579. }
  10580. if containerLenS == 0 {
  10581. if canChange && len(v) != 0 {
  10582. v = v[:0]
  10583. changed = true
  10584. }
  10585. return v, changed
  10586. }
  10587. // for j := 0; j < containerLenS; j++ {
  10588. if containerLenS > 0 {
  10589. decLen := containerLenS
  10590. if containerLenS > cap(v) {
  10591. if canChange {
  10592. s := make([]uint32, containerLenS, containerLenS)
  10593. // copy(s, v[:cap(v)])
  10594. v = s
  10595. changed = true
  10596. } else {
  10597. d.arrayCannotExpand(len(v), containerLenS)
  10598. decLen = len(v)
  10599. }
  10600. } else if containerLenS != len(v) {
  10601. v = v[:containerLenS]
  10602. changed = true
  10603. }
  10604. // all checks done. cannot go past len.
  10605. j := 0
  10606. for ; j < decLen; j++ {
  10607. v[j] = uint32(dd.DecodeUint(32))
  10608. }
  10609. if !canChange {
  10610. for ; j < containerLenS; j++ {
  10611. d.swallow()
  10612. }
  10613. }
  10614. } else {
  10615. j := 0
  10616. for ; !dd.CheckBreak(); j++ {
  10617. if j >= len(v) {
  10618. if canChange {
  10619. v = append(v, 0)
  10620. changed = true
  10621. } else {
  10622. d.arrayCannotExpand(len(v), j+1)
  10623. }
  10624. }
  10625. if j > 0 {
  10626. slh.Sep(j)
  10627. }
  10628. if j < len(v) { // all checks done. cannot go past len.
  10629. v[j] = uint32(dd.DecodeUint(32))
  10630. } else {
  10631. d.swallow()
  10632. }
  10633. }
  10634. slh.End()
  10635. }
  10636. return v, changed
  10637. }
  10638. func (f decFnInfo) fastpathDecSliceUint64R(rv reflect.Value) {
  10639. array := f.seq == seqTypeArray
  10640. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  10641. vp := rv.Addr().Interface().(*[]uint64)
  10642. v, changed := fastpathTV.DecSliceUint64V(*vp, fastpathCheckNilFalse, !array, f.d)
  10643. if changed {
  10644. *vp = v
  10645. }
  10646. } else {
  10647. v := rv.Interface().([]uint64)
  10648. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, f.d)
  10649. }
  10650. }
  10651. func (f fastpathT) DecSliceUint64X(vp *[]uint64, checkNil bool, d *Decoder) {
  10652. v, changed := f.DecSliceUint64V(*vp, checkNil, true, d)
  10653. if changed {
  10654. *vp = v
  10655. }
  10656. }
  10657. func (_ fastpathT) DecSliceUint64V(v []uint64, checkNil bool, canChange bool,
  10658. d *Decoder) (_ []uint64, changed bool) {
  10659. dd := d.d
  10660. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  10661. if checkNil && dd.TryDecodeAsNil() {
  10662. if v != nil {
  10663. changed = true
  10664. }
  10665. return nil, changed
  10666. }
  10667. slh, containerLenS := d.decSliceHelperStart()
  10668. if canChange && v == nil {
  10669. if containerLenS <= 0 {
  10670. v = []uint64{}
  10671. } else {
  10672. v = make([]uint64, containerLenS, containerLenS)
  10673. }
  10674. changed = true
  10675. }
  10676. if containerLenS == 0 {
  10677. if canChange && len(v) != 0 {
  10678. v = v[:0]
  10679. changed = true
  10680. }
  10681. return v, changed
  10682. }
  10683. // for j := 0; j < containerLenS; j++ {
  10684. if containerLenS > 0 {
  10685. decLen := containerLenS
  10686. if containerLenS > cap(v) {
  10687. if canChange {
  10688. s := make([]uint64, containerLenS, containerLenS)
  10689. // copy(s, v[:cap(v)])
  10690. v = s
  10691. changed = true
  10692. } else {
  10693. d.arrayCannotExpand(len(v), containerLenS)
  10694. decLen = len(v)
  10695. }
  10696. } else if containerLenS != len(v) {
  10697. v = v[:containerLenS]
  10698. changed = true
  10699. }
  10700. // all checks done. cannot go past len.
  10701. j := 0
  10702. for ; j < decLen; j++ {
  10703. v[j] = dd.DecodeUint(64)
  10704. }
  10705. if !canChange {
  10706. for ; j < containerLenS; j++ {
  10707. d.swallow()
  10708. }
  10709. }
  10710. } else {
  10711. j := 0
  10712. for ; !dd.CheckBreak(); j++ {
  10713. if j >= len(v) {
  10714. if canChange {
  10715. v = append(v, 0)
  10716. changed = true
  10717. } else {
  10718. d.arrayCannotExpand(len(v), j+1)
  10719. }
  10720. }
  10721. if j > 0 {
  10722. slh.Sep(j)
  10723. }
  10724. if j < len(v) { // all checks done. cannot go past len.
  10725. v[j] = dd.DecodeUint(64)
  10726. } else {
  10727. d.swallow()
  10728. }
  10729. }
  10730. slh.End()
  10731. }
  10732. return v, changed
  10733. }
  10734. func (f decFnInfo) fastpathDecSliceIntR(rv reflect.Value) {
  10735. array := f.seq == seqTypeArray
  10736. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  10737. vp := rv.Addr().Interface().(*[]int)
  10738. v, changed := fastpathTV.DecSliceIntV(*vp, fastpathCheckNilFalse, !array, f.d)
  10739. if changed {
  10740. *vp = v
  10741. }
  10742. } else {
  10743. v := rv.Interface().([]int)
  10744. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, f.d)
  10745. }
  10746. }
  10747. func (f fastpathT) DecSliceIntX(vp *[]int, checkNil bool, d *Decoder) {
  10748. v, changed := f.DecSliceIntV(*vp, checkNil, true, d)
  10749. if changed {
  10750. *vp = v
  10751. }
  10752. }
  10753. func (_ fastpathT) DecSliceIntV(v []int, checkNil bool, canChange bool,
  10754. d *Decoder) (_ []int, changed bool) {
  10755. dd := d.d
  10756. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  10757. if checkNil && dd.TryDecodeAsNil() {
  10758. if v != nil {
  10759. changed = true
  10760. }
  10761. return nil, changed
  10762. }
  10763. slh, containerLenS := d.decSliceHelperStart()
  10764. if canChange && v == nil {
  10765. if containerLenS <= 0 {
  10766. v = []int{}
  10767. } else {
  10768. v = make([]int, containerLenS, containerLenS)
  10769. }
  10770. changed = true
  10771. }
  10772. if containerLenS == 0 {
  10773. if canChange && len(v) != 0 {
  10774. v = v[:0]
  10775. changed = true
  10776. }
  10777. return v, changed
  10778. }
  10779. // for j := 0; j < containerLenS; j++ {
  10780. if containerLenS > 0 {
  10781. decLen := containerLenS
  10782. if containerLenS > cap(v) {
  10783. if canChange {
  10784. s := make([]int, containerLenS, containerLenS)
  10785. // copy(s, v[:cap(v)])
  10786. v = s
  10787. changed = true
  10788. } else {
  10789. d.arrayCannotExpand(len(v), containerLenS)
  10790. decLen = len(v)
  10791. }
  10792. } else if containerLenS != len(v) {
  10793. v = v[:containerLenS]
  10794. changed = true
  10795. }
  10796. // all checks done. cannot go past len.
  10797. j := 0
  10798. for ; j < decLen; j++ {
  10799. v[j] = int(dd.DecodeInt(intBitsize))
  10800. }
  10801. if !canChange {
  10802. for ; j < containerLenS; j++ {
  10803. d.swallow()
  10804. }
  10805. }
  10806. } else {
  10807. j := 0
  10808. for ; !dd.CheckBreak(); j++ {
  10809. if j >= len(v) {
  10810. if canChange {
  10811. v = append(v, 0)
  10812. changed = true
  10813. } else {
  10814. d.arrayCannotExpand(len(v), j+1)
  10815. }
  10816. }
  10817. if j > 0 {
  10818. slh.Sep(j)
  10819. }
  10820. if j < len(v) { // all checks done. cannot go past len.
  10821. v[j] = int(dd.DecodeInt(intBitsize))
  10822. } else {
  10823. d.swallow()
  10824. }
  10825. }
  10826. slh.End()
  10827. }
  10828. return v, changed
  10829. }
  10830. func (f decFnInfo) fastpathDecSliceInt8R(rv reflect.Value) {
  10831. array := f.seq == seqTypeArray
  10832. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  10833. vp := rv.Addr().Interface().(*[]int8)
  10834. v, changed := fastpathTV.DecSliceInt8V(*vp, fastpathCheckNilFalse, !array, f.d)
  10835. if changed {
  10836. *vp = v
  10837. }
  10838. } else {
  10839. v := rv.Interface().([]int8)
  10840. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, f.d)
  10841. }
  10842. }
  10843. func (f fastpathT) DecSliceInt8X(vp *[]int8, checkNil bool, d *Decoder) {
  10844. v, changed := f.DecSliceInt8V(*vp, checkNil, true, d)
  10845. if changed {
  10846. *vp = v
  10847. }
  10848. }
  10849. func (_ fastpathT) DecSliceInt8V(v []int8, checkNil bool, canChange bool,
  10850. d *Decoder) (_ []int8, changed bool) {
  10851. dd := d.d
  10852. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  10853. if checkNil && dd.TryDecodeAsNil() {
  10854. if v != nil {
  10855. changed = true
  10856. }
  10857. return nil, changed
  10858. }
  10859. slh, containerLenS := d.decSliceHelperStart()
  10860. if canChange && v == nil {
  10861. if containerLenS <= 0 {
  10862. v = []int8{}
  10863. } else {
  10864. v = make([]int8, containerLenS, containerLenS)
  10865. }
  10866. changed = true
  10867. }
  10868. if containerLenS == 0 {
  10869. if canChange && len(v) != 0 {
  10870. v = v[:0]
  10871. changed = true
  10872. }
  10873. return v, changed
  10874. }
  10875. // for j := 0; j < containerLenS; j++ {
  10876. if containerLenS > 0 {
  10877. decLen := containerLenS
  10878. if containerLenS > cap(v) {
  10879. if canChange {
  10880. s := make([]int8, containerLenS, containerLenS)
  10881. // copy(s, v[:cap(v)])
  10882. v = s
  10883. changed = true
  10884. } else {
  10885. d.arrayCannotExpand(len(v), containerLenS)
  10886. decLen = len(v)
  10887. }
  10888. } else if containerLenS != len(v) {
  10889. v = v[:containerLenS]
  10890. changed = true
  10891. }
  10892. // all checks done. cannot go past len.
  10893. j := 0
  10894. for ; j < decLen; j++ {
  10895. v[j] = int8(dd.DecodeInt(8))
  10896. }
  10897. if !canChange {
  10898. for ; j < containerLenS; j++ {
  10899. d.swallow()
  10900. }
  10901. }
  10902. } else {
  10903. j := 0
  10904. for ; !dd.CheckBreak(); j++ {
  10905. if j >= len(v) {
  10906. if canChange {
  10907. v = append(v, 0)
  10908. changed = true
  10909. } else {
  10910. d.arrayCannotExpand(len(v), j+1)
  10911. }
  10912. }
  10913. if j > 0 {
  10914. slh.Sep(j)
  10915. }
  10916. if j < len(v) { // all checks done. cannot go past len.
  10917. v[j] = int8(dd.DecodeInt(8))
  10918. } else {
  10919. d.swallow()
  10920. }
  10921. }
  10922. slh.End()
  10923. }
  10924. return v, changed
  10925. }
  10926. func (f decFnInfo) fastpathDecSliceInt16R(rv reflect.Value) {
  10927. array := f.seq == seqTypeArray
  10928. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  10929. vp := rv.Addr().Interface().(*[]int16)
  10930. v, changed := fastpathTV.DecSliceInt16V(*vp, fastpathCheckNilFalse, !array, f.d)
  10931. if changed {
  10932. *vp = v
  10933. }
  10934. } else {
  10935. v := rv.Interface().([]int16)
  10936. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, f.d)
  10937. }
  10938. }
  10939. func (f fastpathT) DecSliceInt16X(vp *[]int16, checkNil bool, d *Decoder) {
  10940. v, changed := f.DecSliceInt16V(*vp, checkNil, true, d)
  10941. if changed {
  10942. *vp = v
  10943. }
  10944. }
  10945. func (_ fastpathT) DecSliceInt16V(v []int16, checkNil bool, canChange bool,
  10946. d *Decoder) (_ []int16, changed bool) {
  10947. dd := d.d
  10948. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  10949. if checkNil && dd.TryDecodeAsNil() {
  10950. if v != nil {
  10951. changed = true
  10952. }
  10953. return nil, changed
  10954. }
  10955. slh, containerLenS := d.decSliceHelperStart()
  10956. if canChange && v == nil {
  10957. if containerLenS <= 0 {
  10958. v = []int16{}
  10959. } else {
  10960. v = make([]int16, containerLenS, containerLenS)
  10961. }
  10962. changed = true
  10963. }
  10964. if containerLenS == 0 {
  10965. if canChange && len(v) != 0 {
  10966. v = v[:0]
  10967. changed = true
  10968. }
  10969. return v, changed
  10970. }
  10971. // for j := 0; j < containerLenS; j++ {
  10972. if containerLenS > 0 {
  10973. decLen := containerLenS
  10974. if containerLenS > cap(v) {
  10975. if canChange {
  10976. s := make([]int16, containerLenS, containerLenS)
  10977. // copy(s, v[:cap(v)])
  10978. v = s
  10979. changed = true
  10980. } else {
  10981. d.arrayCannotExpand(len(v), containerLenS)
  10982. decLen = len(v)
  10983. }
  10984. } else if containerLenS != len(v) {
  10985. v = v[:containerLenS]
  10986. changed = true
  10987. }
  10988. // all checks done. cannot go past len.
  10989. j := 0
  10990. for ; j < decLen; j++ {
  10991. v[j] = int16(dd.DecodeInt(16))
  10992. }
  10993. if !canChange {
  10994. for ; j < containerLenS; j++ {
  10995. d.swallow()
  10996. }
  10997. }
  10998. } else {
  10999. j := 0
  11000. for ; !dd.CheckBreak(); j++ {
  11001. if j >= len(v) {
  11002. if canChange {
  11003. v = append(v, 0)
  11004. changed = true
  11005. } else {
  11006. d.arrayCannotExpand(len(v), j+1)
  11007. }
  11008. }
  11009. if j > 0 {
  11010. slh.Sep(j)
  11011. }
  11012. if j < len(v) { // all checks done. cannot go past len.
  11013. v[j] = int16(dd.DecodeInt(16))
  11014. } else {
  11015. d.swallow()
  11016. }
  11017. }
  11018. slh.End()
  11019. }
  11020. return v, changed
  11021. }
  11022. func (f decFnInfo) fastpathDecSliceInt32R(rv reflect.Value) {
  11023. array := f.seq == seqTypeArray
  11024. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11025. vp := rv.Addr().Interface().(*[]int32)
  11026. v, changed := fastpathTV.DecSliceInt32V(*vp, fastpathCheckNilFalse, !array, f.d)
  11027. if changed {
  11028. *vp = v
  11029. }
  11030. } else {
  11031. v := rv.Interface().([]int32)
  11032. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, f.d)
  11033. }
  11034. }
  11035. func (f fastpathT) DecSliceInt32X(vp *[]int32, checkNil bool, d *Decoder) {
  11036. v, changed := f.DecSliceInt32V(*vp, checkNil, true, d)
  11037. if changed {
  11038. *vp = v
  11039. }
  11040. }
  11041. func (_ fastpathT) DecSliceInt32V(v []int32, checkNil bool, canChange bool,
  11042. d *Decoder) (_ []int32, changed bool) {
  11043. dd := d.d
  11044. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11045. if checkNil && dd.TryDecodeAsNil() {
  11046. if v != nil {
  11047. changed = true
  11048. }
  11049. return nil, changed
  11050. }
  11051. slh, containerLenS := d.decSliceHelperStart()
  11052. if canChange && v == nil {
  11053. if containerLenS <= 0 {
  11054. v = []int32{}
  11055. } else {
  11056. v = make([]int32, containerLenS, containerLenS)
  11057. }
  11058. changed = true
  11059. }
  11060. if containerLenS == 0 {
  11061. if canChange && len(v) != 0 {
  11062. v = v[:0]
  11063. changed = true
  11064. }
  11065. return v, changed
  11066. }
  11067. // for j := 0; j < containerLenS; j++ {
  11068. if containerLenS > 0 {
  11069. decLen := containerLenS
  11070. if containerLenS > cap(v) {
  11071. if canChange {
  11072. s := make([]int32, containerLenS, containerLenS)
  11073. // copy(s, v[:cap(v)])
  11074. v = s
  11075. changed = true
  11076. } else {
  11077. d.arrayCannotExpand(len(v), containerLenS)
  11078. decLen = len(v)
  11079. }
  11080. } else if containerLenS != len(v) {
  11081. v = v[:containerLenS]
  11082. changed = true
  11083. }
  11084. // all checks done. cannot go past len.
  11085. j := 0
  11086. for ; j < decLen; j++ {
  11087. v[j] = int32(dd.DecodeInt(32))
  11088. }
  11089. if !canChange {
  11090. for ; j < containerLenS; j++ {
  11091. d.swallow()
  11092. }
  11093. }
  11094. } else {
  11095. j := 0
  11096. for ; !dd.CheckBreak(); j++ {
  11097. if j >= len(v) {
  11098. if canChange {
  11099. v = append(v, 0)
  11100. changed = true
  11101. } else {
  11102. d.arrayCannotExpand(len(v), j+1)
  11103. }
  11104. }
  11105. if j > 0 {
  11106. slh.Sep(j)
  11107. }
  11108. if j < len(v) { // all checks done. cannot go past len.
  11109. v[j] = int32(dd.DecodeInt(32))
  11110. } else {
  11111. d.swallow()
  11112. }
  11113. }
  11114. slh.End()
  11115. }
  11116. return v, changed
  11117. }
  11118. func (f decFnInfo) fastpathDecSliceInt64R(rv reflect.Value) {
  11119. array := f.seq == seqTypeArray
  11120. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11121. vp := rv.Addr().Interface().(*[]int64)
  11122. v, changed := fastpathTV.DecSliceInt64V(*vp, fastpathCheckNilFalse, !array, f.d)
  11123. if changed {
  11124. *vp = v
  11125. }
  11126. } else {
  11127. v := rv.Interface().([]int64)
  11128. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, f.d)
  11129. }
  11130. }
  11131. func (f fastpathT) DecSliceInt64X(vp *[]int64, checkNil bool, d *Decoder) {
  11132. v, changed := f.DecSliceInt64V(*vp, checkNil, true, d)
  11133. if changed {
  11134. *vp = v
  11135. }
  11136. }
  11137. func (_ fastpathT) DecSliceInt64V(v []int64, checkNil bool, canChange bool,
  11138. d *Decoder) (_ []int64, changed bool) {
  11139. dd := d.d
  11140. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11141. if checkNil && dd.TryDecodeAsNil() {
  11142. if v != nil {
  11143. changed = true
  11144. }
  11145. return nil, changed
  11146. }
  11147. slh, containerLenS := d.decSliceHelperStart()
  11148. if canChange && v == nil {
  11149. if containerLenS <= 0 {
  11150. v = []int64{}
  11151. } else {
  11152. v = make([]int64, containerLenS, containerLenS)
  11153. }
  11154. changed = true
  11155. }
  11156. if containerLenS == 0 {
  11157. if canChange && len(v) != 0 {
  11158. v = v[:0]
  11159. changed = true
  11160. }
  11161. return v, changed
  11162. }
  11163. // for j := 0; j < containerLenS; j++ {
  11164. if containerLenS > 0 {
  11165. decLen := containerLenS
  11166. if containerLenS > cap(v) {
  11167. if canChange {
  11168. s := make([]int64, containerLenS, containerLenS)
  11169. // copy(s, v[:cap(v)])
  11170. v = s
  11171. changed = true
  11172. } else {
  11173. d.arrayCannotExpand(len(v), containerLenS)
  11174. decLen = len(v)
  11175. }
  11176. } else if containerLenS != len(v) {
  11177. v = v[:containerLenS]
  11178. changed = true
  11179. }
  11180. // all checks done. cannot go past len.
  11181. j := 0
  11182. for ; j < decLen; j++ {
  11183. v[j] = dd.DecodeInt(64)
  11184. }
  11185. if !canChange {
  11186. for ; j < containerLenS; j++ {
  11187. d.swallow()
  11188. }
  11189. }
  11190. } else {
  11191. j := 0
  11192. for ; !dd.CheckBreak(); j++ {
  11193. if j >= len(v) {
  11194. if canChange {
  11195. v = append(v, 0)
  11196. changed = true
  11197. } else {
  11198. d.arrayCannotExpand(len(v), j+1)
  11199. }
  11200. }
  11201. if j > 0 {
  11202. slh.Sep(j)
  11203. }
  11204. if j < len(v) { // all checks done. cannot go past len.
  11205. v[j] = dd.DecodeInt(64)
  11206. } else {
  11207. d.swallow()
  11208. }
  11209. }
  11210. slh.End()
  11211. }
  11212. return v, changed
  11213. }
  11214. func (f decFnInfo) fastpathDecSliceBoolR(rv reflect.Value) {
  11215. array := f.seq == seqTypeArray
  11216. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11217. vp := rv.Addr().Interface().(*[]bool)
  11218. v, changed := fastpathTV.DecSliceBoolV(*vp, fastpathCheckNilFalse, !array, f.d)
  11219. if changed {
  11220. *vp = v
  11221. }
  11222. } else {
  11223. v := rv.Interface().([]bool)
  11224. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, f.d)
  11225. }
  11226. }
  11227. func (f fastpathT) DecSliceBoolX(vp *[]bool, checkNil bool, d *Decoder) {
  11228. v, changed := f.DecSliceBoolV(*vp, checkNil, true, d)
  11229. if changed {
  11230. *vp = v
  11231. }
  11232. }
  11233. func (_ fastpathT) DecSliceBoolV(v []bool, checkNil bool, canChange bool,
  11234. d *Decoder) (_ []bool, changed bool) {
  11235. dd := d.d
  11236. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11237. if checkNil && dd.TryDecodeAsNil() {
  11238. if v != nil {
  11239. changed = true
  11240. }
  11241. return nil, changed
  11242. }
  11243. slh, containerLenS := d.decSliceHelperStart()
  11244. if canChange && v == nil {
  11245. if containerLenS <= 0 {
  11246. v = []bool{}
  11247. } else {
  11248. v = make([]bool, containerLenS, containerLenS)
  11249. }
  11250. changed = true
  11251. }
  11252. if containerLenS == 0 {
  11253. if canChange && len(v) != 0 {
  11254. v = v[:0]
  11255. changed = true
  11256. }
  11257. return v, changed
  11258. }
  11259. // for j := 0; j < containerLenS; j++ {
  11260. if containerLenS > 0 {
  11261. decLen := containerLenS
  11262. if containerLenS > cap(v) {
  11263. if canChange {
  11264. s := make([]bool, containerLenS, containerLenS)
  11265. // copy(s, v[:cap(v)])
  11266. v = s
  11267. changed = true
  11268. } else {
  11269. d.arrayCannotExpand(len(v), containerLenS)
  11270. decLen = len(v)
  11271. }
  11272. } else if containerLenS != len(v) {
  11273. v = v[:containerLenS]
  11274. changed = true
  11275. }
  11276. // all checks done. cannot go past len.
  11277. j := 0
  11278. for ; j < decLen; j++ {
  11279. v[j] = dd.DecodeBool()
  11280. }
  11281. if !canChange {
  11282. for ; j < containerLenS; j++ {
  11283. d.swallow()
  11284. }
  11285. }
  11286. } else {
  11287. j := 0
  11288. for ; !dd.CheckBreak(); j++ {
  11289. if j >= len(v) {
  11290. if canChange {
  11291. v = append(v, false)
  11292. changed = true
  11293. } else {
  11294. d.arrayCannotExpand(len(v), j+1)
  11295. }
  11296. }
  11297. if j > 0 {
  11298. slh.Sep(j)
  11299. }
  11300. if j < len(v) { // all checks done. cannot go past len.
  11301. v[j] = dd.DecodeBool()
  11302. } else {
  11303. d.swallow()
  11304. }
  11305. }
  11306. slh.End()
  11307. }
  11308. return v, changed
  11309. }
  11310. func (f decFnInfo) fastpathDecMapIntfIntfR(rv reflect.Value) {
  11311. if rv.CanAddr() {
  11312. vp := rv.Addr().Interface().(*map[interface{}]interface{})
  11313. v, changed := fastpathTV.DecMapIntfIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  11314. if changed {
  11315. *vp = v
  11316. }
  11317. } else {
  11318. v := rv.Interface().(map[interface{}]interface{})
  11319. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, f.d)
  11320. }
  11321. }
  11322. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, checkNil bool, d *Decoder) {
  11323. v, changed := f.DecMapIntfIntfV(*vp, checkNil, true, d)
  11324. if changed {
  11325. *vp = v
  11326. }
  11327. }
  11328. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, canChange bool,
  11329. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  11330. dd := d.d
  11331. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  11332. if checkNil && dd.TryDecodeAsNil() {
  11333. if v != nil {
  11334. changed = true
  11335. }
  11336. return nil, changed
  11337. }
  11338. containerLen := dd.ReadMapStart()
  11339. if canChange && v == nil {
  11340. if containerLen > 0 {
  11341. v = make(map[interface{}]interface{}, containerLen)
  11342. } else {
  11343. v = make(map[interface{}]interface{}) // supports indefinite-length, etc
  11344. }
  11345. changed = true
  11346. }
  11347. if containerLen > 0 {
  11348. for j := 0; j < containerLen; j++ {
  11349. var mk interface{}
  11350. d.decode(&mk)
  11351. if bv, bok := mk.([]byte); bok {
  11352. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11353. }
  11354. mv := v[mk]
  11355. d.decode(&mv)
  11356. if v != nil {
  11357. v[mk] = mv
  11358. }
  11359. }
  11360. } else if containerLen < 0 {
  11361. for j := 0; !dd.CheckBreak(); j++ {
  11362. if j > 0 {
  11363. dd.ReadMapEntrySeparator()
  11364. }
  11365. var mk interface{}
  11366. d.decode(&mk)
  11367. if bv, bok := mk.([]byte); bok {
  11368. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11369. }
  11370. dd.ReadMapKVSeparator()
  11371. mv := v[mk]
  11372. d.decode(&mv)
  11373. if v != nil {
  11374. v[mk] = mv
  11375. }
  11376. }
  11377. dd.ReadMapEnd()
  11378. }
  11379. return v, changed
  11380. }
  11381. func (f decFnInfo) fastpathDecMapIntfStringR(rv reflect.Value) {
  11382. if rv.CanAddr() {
  11383. vp := rv.Addr().Interface().(*map[interface{}]string)
  11384. v, changed := fastpathTV.DecMapIntfStringV(*vp, fastpathCheckNilFalse, true, f.d)
  11385. if changed {
  11386. *vp = v
  11387. }
  11388. } else {
  11389. v := rv.Interface().(map[interface{}]string)
  11390. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, f.d)
  11391. }
  11392. }
  11393. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, checkNil bool, d *Decoder) {
  11394. v, changed := f.DecMapIntfStringV(*vp, checkNil, true, d)
  11395. if changed {
  11396. *vp = v
  11397. }
  11398. }
  11399. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, checkNil bool, canChange bool,
  11400. d *Decoder) (_ map[interface{}]string, changed bool) {
  11401. dd := d.d
  11402. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  11403. if checkNil && dd.TryDecodeAsNil() {
  11404. if v != nil {
  11405. changed = true
  11406. }
  11407. return nil, changed
  11408. }
  11409. containerLen := dd.ReadMapStart()
  11410. if canChange && v == nil {
  11411. if containerLen > 0 {
  11412. v = make(map[interface{}]string, containerLen)
  11413. } else {
  11414. v = make(map[interface{}]string) // supports indefinite-length, etc
  11415. }
  11416. changed = true
  11417. }
  11418. if containerLen > 0 {
  11419. for j := 0; j < containerLen; j++ {
  11420. var mk interface{}
  11421. d.decode(&mk)
  11422. if bv, bok := mk.([]byte); bok {
  11423. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11424. }
  11425. mv := v[mk]
  11426. mv = dd.DecodeString()
  11427. if v != nil {
  11428. v[mk] = mv
  11429. }
  11430. }
  11431. } else if containerLen < 0 {
  11432. for j := 0; !dd.CheckBreak(); j++ {
  11433. if j > 0 {
  11434. dd.ReadMapEntrySeparator()
  11435. }
  11436. var mk interface{}
  11437. d.decode(&mk)
  11438. if bv, bok := mk.([]byte); bok {
  11439. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11440. }
  11441. dd.ReadMapKVSeparator()
  11442. mv := v[mk]
  11443. mv = dd.DecodeString()
  11444. if v != nil {
  11445. v[mk] = mv
  11446. }
  11447. }
  11448. dd.ReadMapEnd()
  11449. }
  11450. return v, changed
  11451. }
  11452. func (f decFnInfo) fastpathDecMapIntfUintR(rv reflect.Value) {
  11453. if rv.CanAddr() {
  11454. vp := rv.Addr().Interface().(*map[interface{}]uint)
  11455. v, changed := fastpathTV.DecMapIntfUintV(*vp, fastpathCheckNilFalse, true, f.d)
  11456. if changed {
  11457. *vp = v
  11458. }
  11459. } else {
  11460. v := rv.Interface().(map[interface{}]uint)
  11461. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, f.d)
  11462. }
  11463. }
  11464. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, checkNil bool, d *Decoder) {
  11465. v, changed := f.DecMapIntfUintV(*vp, checkNil, true, d)
  11466. if changed {
  11467. *vp = v
  11468. }
  11469. }
  11470. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, checkNil bool, canChange bool,
  11471. d *Decoder) (_ map[interface{}]uint, changed bool) {
  11472. dd := d.d
  11473. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  11474. if checkNil && dd.TryDecodeAsNil() {
  11475. if v != nil {
  11476. changed = true
  11477. }
  11478. return nil, changed
  11479. }
  11480. containerLen := dd.ReadMapStart()
  11481. if canChange && v == nil {
  11482. if containerLen > 0 {
  11483. v = make(map[interface{}]uint, containerLen)
  11484. } else {
  11485. v = make(map[interface{}]uint) // supports indefinite-length, etc
  11486. }
  11487. changed = true
  11488. }
  11489. if containerLen > 0 {
  11490. for j := 0; j < containerLen; j++ {
  11491. var mk interface{}
  11492. d.decode(&mk)
  11493. if bv, bok := mk.([]byte); bok {
  11494. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11495. }
  11496. mv := v[mk]
  11497. mv = uint(dd.DecodeUint(uintBitsize))
  11498. if v != nil {
  11499. v[mk] = mv
  11500. }
  11501. }
  11502. } else if containerLen < 0 {
  11503. for j := 0; !dd.CheckBreak(); j++ {
  11504. if j > 0 {
  11505. dd.ReadMapEntrySeparator()
  11506. }
  11507. var mk interface{}
  11508. d.decode(&mk)
  11509. if bv, bok := mk.([]byte); bok {
  11510. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11511. }
  11512. dd.ReadMapKVSeparator()
  11513. mv := v[mk]
  11514. mv = uint(dd.DecodeUint(uintBitsize))
  11515. if v != nil {
  11516. v[mk] = mv
  11517. }
  11518. }
  11519. dd.ReadMapEnd()
  11520. }
  11521. return v, changed
  11522. }
  11523. func (f decFnInfo) fastpathDecMapIntfUint8R(rv reflect.Value) {
  11524. if rv.CanAddr() {
  11525. vp := rv.Addr().Interface().(*map[interface{}]uint8)
  11526. v, changed := fastpathTV.DecMapIntfUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  11527. if changed {
  11528. *vp = v
  11529. }
  11530. } else {
  11531. v := rv.Interface().(map[interface{}]uint8)
  11532. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, f.d)
  11533. }
  11534. }
  11535. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, checkNil bool, d *Decoder) {
  11536. v, changed := f.DecMapIntfUint8V(*vp, checkNil, true, d)
  11537. if changed {
  11538. *vp = v
  11539. }
  11540. }
  11541. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, checkNil bool, canChange bool,
  11542. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  11543. dd := d.d
  11544. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  11545. if checkNil && dd.TryDecodeAsNil() {
  11546. if v != nil {
  11547. changed = true
  11548. }
  11549. return nil, changed
  11550. }
  11551. containerLen := dd.ReadMapStart()
  11552. if canChange && v == nil {
  11553. if containerLen > 0 {
  11554. v = make(map[interface{}]uint8, containerLen)
  11555. } else {
  11556. v = make(map[interface{}]uint8) // supports indefinite-length, etc
  11557. }
  11558. changed = true
  11559. }
  11560. if containerLen > 0 {
  11561. for j := 0; j < containerLen; j++ {
  11562. var mk interface{}
  11563. d.decode(&mk)
  11564. if bv, bok := mk.([]byte); bok {
  11565. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11566. }
  11567. mv := v[mk]
  11568. mv = uint8(dd.DecodeUint(8))
  11569. if v != nil {
  11570. v[mk] = mv
  11571. }
  11572. }
  11573. } else if containerLen < 0 {
  11574. for j := 0; !dd.CheckBreak(); j++ {
  11575. if j > 0 {
  11576. dd.ReadMapEntrySeparator()
  11577. }
  11578. var mk interface{}
  11579. d.decode(&mk)
  11580. if bv, bok := mk.([]byte); bok {
  11581. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11582. }
  11583. dd.ReadMapKVSeparator()
  11584. mv := v[mk]
  11585. mv = uint8(dd.DecodeUint(8))
  11586. if v != nil {
  11587. v[mk] = mv
  11588. }
  11589. }
  11590. dd.ReadMapEnd()
  11591. }
  11592. return v, changed
  11593. }
  11594. func (f decFnInfo) fastpathDecMapIntfUint16R(rv reflect.Value) {
  11595. if rv.CanAddr() {
  11596. vp := rv.Addr().Interface().(*map[interface{}]uint16)
  11597. v, changed := fastpathTV.DecMapIntfUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  11598. if changed {
  11599. *vp = v
  11600. }
  11601. } else {
  11602. v := rv.Interface().(map[interface{}]uint16)
  11603. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, f.d)
  11604. }
  11605. }
  11606. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, checkNil bool, d *Decoder) {
  11607. v, changed := f.DecMapIntfUint16V(*vp, checkNil, true, d)
  11608. if changed {
  11609. *vp = v
  11610. }
  11611. }
  11612. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, checkNil bool, canChange bool,
  11613. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  11614. dd := d.d
  11615. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  11616. if checkNil && dd.TryDecodeAsNil() {
  11617. if v != nil {
  11618. changed = true
  11619. }
  11620. return nil, changed
  11621. }
  11622. containerLen := dd.ReadMapStart()
  11623. if canChange && v == nil {
  11624. if containerLen > 0 {
  11625. v = make(map[interface{}]uint16, containerLen)
  11626. } else {
  11627. v = make(map[interface{}]uint16) // supports indefinite-length, etc
  11628. }
  11629. changed = true
  11630. }
  11631. if containerLen > 0 {
  11632. for j := 0; j < containerLen; j++ {
  11633. var mk interface{}
  11634. d.decode(&mk)
  11635. if bv, bok := mk.([]byte); bok {
  11636. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11637. }
  11638. mv := v[mk]
  11639. mv = uint16(dd.DecodeUint(16))
  11640. if v != nil {
  11641. v[mk] = mv
  11642. }
  11643. }
  11644. } else if containerLen < 0 {
  11645. for j := 0; !dd.CheckBreak(); j++ {
  11646. if j > 0 {
  11647. dd.ReadMapEntrySeparator()
  11648. }
  11649. var mk interface{}
  11650. d.decode(&mk)
  11651. if bv, bok := mk.([]byte); bok {
  11652. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11653. }
  11654. dd.ReadMapKVSeparator()
  11655. mv := v[mk]
  11656. mv = uint16(dd.DecodeUint(16))
  11657. if v != nil {
  11658. v[mk] = mv
  11659. }
  11660. }
  11661. dd.ReadMapEnd()
  11662. }
  11663. return v, changed
  11664. }
  11665. func (f decFnInfo) fastpathDecMapIntfUint32R(rv reflect.Value) {
  11666. if rv.CanAddr() {
  11667. vp := rv.Addr().Interface().(*map[interface{}]uint32)
  11668. v, changed := fastpathTV.DecMapIntfUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  11669. if changed {
  11670. *vp = v
  11671. }
  11672. } else {
  11673. v := rv.Interface().(map[interface{}]uint32)
  11674. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, f.d)
  11675. }
  11676. }
  11677. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, checkNil bool, d *Decoder) {
  11678. v, changed := f.DecMapIntfUint32V(*vp, checkNil, true, d)
  11679. if changed {
  11680. *vp = v
  11681. }
  11682. }
  11683. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, checkNil bool, canChange bool,
  11684. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  11685. dd := d.d
  11686. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  11687. if checkNil && dd.TryDecodeAsNil() {
  11688. if v != nil {
  11689. changed = true
  11690. }
  11691. return nil, changed
  11692. }
  11693. containerLen := dd.ReadMapStart()
  11694. if canChange && v == nil {
  11695. if containerLen > 0 {
  11696. v = make(map[interface{}]uint32, containerLen)
  11697. } else {
  11698. v = make(map[interface{}]uint32) // supports indefinite-length, etc
  11699. }
  11700. changed = true
  11701. }
  11702. if containerLen > 0 {
  11703. for j := 0; j < containerLen; j++ {
  11704. var mk interface{}
  11705. d.decode(&mk)
  11706. if bv, bok := mk.([]byte); bok {
  11707. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11708. }
  11709. mv := v[mk]
  11710. mv = uint32(dd.DecodeUint(32))
  11711. if v != nil {
  11712. v[mk] = mv
  11713. }
  11714. }
  11715. } else if containerLen < 0 {
  11716. for j := 0; !dd.CheckBreak(); j++ {
  11717. if j > 0 {
  11718. dd.ReadMapEntrySeparator()
  11719. }
  11720. var mk interface{}
  11721. d.decode(&mk)
  11722. if bv, bok := mk.([]byte); bok {
  11723. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11724. }
  11725. dd.ReadMapKVSeparator()
  11726. mv := v[mk]
  11727. mv = uint32(dd.DecodeUint(32))
  11728. if v != nil {
  11729. v[mk] = mv
  11730. }
  11731. }
  11732. dd.ReadMapEnd()
  11733. }
  11734. return v, changed
  11735. }
  11736. func (f decFnInfo) fastpathDecMapIntfUint64R(rv reflect.Value) {
  11737. if rv.CanAddr() {
  11738. vp := rv.Addr().Interface().(*map[interface{}]uint64)
  11739. v, changed := fastpathTV.DecMapIntfUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  11740. if changed {
  11741. *vp = v
  11742. }
  11743. } else {
  11744. v := rv.Interface().(map[interface{}]uint64)
  11745. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, f.d)
  11746. }
  11747. }
  11748. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, checkNil bool, d *Decoder) {
  11749. v, changed := f.DecMapIntfUint64V(*vp, checkNil, true, d)
  11750. if changed {
  11751. *vp = v
  11752. }
  11753. }
  11754. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, checkNil bool, canChange bool,
  11755. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  11756. dd := d.d
  11757. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  11758. if checkNil && dd.TryDecodeAsNil() {
  11759. if v != nil {
  11760. changed = true
  11761. }
  11762. return nil, changed
  11763. }
  11764. containerLen := dd.ReadMapStart()
  11765. if canChange && v == nil {
  11766. if containerLen > 0 {
  11767. v = make(map[interface{}]uint64, containerLen)
  11768. } else {
  11769. v = make(map[interface{}]uint64) // supports indefinite-length, etc
  11770. }
  11771. changed = true
  11772. }
  11773. if containerLen > 0 {
  11774. for j := 0; j < containerLen; j++ {
  11775. var mk interface{}
  11776. d.decode(&mk)
  11777. if bv, bok := mk.([]byte); bok {
  11778. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11779. }
  11780. mv := v[mk]
  11781. mv = dd.DecodeUint(64)
  11782. if v != nil {
  11783. v[mk] = mv
  11784. }
  11785. }
  11786. } else if containerLen < 0 {
  11787. for j := 0; !dd.CheckBreak(); j++ {
  11788. if j > 0 {
  11789. dd.ReadMapEntrySeparator()
  11790. }
  11791. var mk interface{}
  11792. d.decode(&mk)
  11793. if bv, bok := mk.([]byte); bok {
  11794. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11795. }
  11796. dd.ReadMapKVSeparator()
  11797. mv := v[mk]
  11798. mv = dd.DecodeUint(64)
  11799. if v != nil {
  11800. v[mk] = mv
  11801. }
  11802. }
  11803. dd.ReadMapEnd()
  11804. }
  11805. return v, changed
  11806. }
  11807. func (f decFnInfo) fastpathDecMapIntfIntR(rv reflect.Value) {
  11808. if rv.CanAddr() {
  11809. vp := rv.Addr().Interface().(*map[interface{}]int)
  11810. v, changed := fastpathTV.DecMapIntfIntV(*vp, fastpathCheckNilFalse, true, f.d)
  11811. if changed {
  11812. *vp = v
  11813. }
  11814. } else {
  11815. v := rv.Interface().(map[interface{}]int)
  11816. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, f.d)
  11817. }
  11818. }
  11819. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, checkNil bool, d *Decoder) {
  11820. v, changed := f.DecMapIntfIntV(*vp, checkNil, true, d)
  11821. if changed {
  11822. *vp = v
  11823. }
  11824. }
  11825. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, checkNil bool, canChange bool,
  11826. d *Decoder) (_ map[interface{}]int, changed bool) {
  11827. dd := d.d
  11828. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  11829. if checkNil && dd.TryDecodeAsNil() {
  11830. if v != nil {
  11831. changed = true
  11832. }
  11833. return nil, changed
  11834. }
  11835. containerLen := dd.ReadMapStart()
  11836. if canChange && v == nil {
  11837. if containerLen > 0 {
  11838. v = make(map[interface{}]int, containerLen)
  11839. } else {
  11840. v = make(map[interface{}]int) // supports indefinite-length, etc
  11841. }
  11842. changed = true
  11843. }
  11844. if containerLen > 0 {
  11845. for j := 0; j < containerLen; j++ {
  11846. var mk interface{}
  11847. d.decode(&mk)
  11848. if bv, bok := mk.([]byte); bok {
  11849. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11850. }
  11851. mv := v[mk]
  11852. mv = int(dd.DecodeInt(intBitsize))
  11853. if v != nil {
  11854. v[mk] = mv
  11855. }
  11856. }
  11857. } else if containerLen < 0 {
  11858. for j := 0; !dd.CheckBreak(); j++ {
  11859. if j > 0 {
  11860. dd.ReadMapEntrySeparator()
  11861. }
  11862. var mk interface{}
  11863. d.decode(&mk)
  11864. if bv, bok := mk.([]byte); bok {
  11865. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11866. }
  11867. dd.ReadMapKVSeparator()
  11868. mv := v[mk]
  11869. mv = int(dd.DecodeInt(intBitsize))
  11870. if v != nil {
  11871. v[mk] = mv
  11872. }
  11873. }
  11874. dd.ReadMapEnd()
  11875. }
  11876. return v, changed
  11877. }
  11878. func (f decFnInfo) fastpathDecMapIntfInt8R(rv reflect.Value) {
  11879. if rv.CanAddr() {
  11880. vp := rv.Addr().Interface().(*map[interface{}]int8)
  11881. v, changed := fastpathTV.DecMapIntfInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  11882. if changed {
  11883. *vp = v
  11884. }
  11885. } else {
  11886. v := rv.Interface().(map[interface{}]int8)
  11887. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, f.d)
  11888. }
  11889. }
  11890. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, checkNil bool, d *Decoder) {
  11891. v, changed := f.DecMapIntfInt8V(*vp, checkNil, true, d)
  11892. if changed {
  11893. *vp = v
  11894. }
  11895. }
  11896. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, checkNil bool, canChange bool,
  11897. d *Decoder) (_ map[interface{}]int8, changed bool) {
  11898. dd := d.d
  11899. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  11900. if checkNil && dd.TryDecodeAsNil() {
  11901. if v != nil {
  11902. changed = true
  11903. }
  11904. return nil, changed
  11905. }
  11906. containerLen := dd.ReadMapStart()
  11907. if canChange && v == nil {
  11908. if containerLen > 0 {
  11909. v = make(map[interface{}]int8, containerLen)
  11910. } else {
  11911. v = make(map[interface{}]int8) // supports indefinite-length, etc
  11912. }
  11913. changed = true
  11914. }
  11915. if containerLen > 0 {
  11916. for j := 0; j < containerLen; j++ {
  11917. var mk interface{}
  11918. d.decode(&mk)
  11919. if bv, bok := mk.([]byte); bok {
  11920. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11921. }
  11922. mv := v[mk]
  11923. mv = int8(dd.DecodeInt(8))
  11924. if v != nil {
  11925. v[mk] = mv
  11926. }
  11927. }
  11928. } else if containerLen < 0 {
  11929. for j := 0; !dd.CheckBreak(); j++ {
  11930. if j > 0 {
  11931. dd.ReadMapEntrySeparator()
  11932. }
  11933. var mk interface{}
  11934. d.decode(&mk)
  11935. if bv, bok := mk.([]byte); bok {
  11936. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11937. }
  11938. dd.ReadMapKVSeparator()
  11939. mv := v[mk]
  11940. mv = int8(dd.DecodeInt(8))
  11941. if v != nil {
  11942. v[mk] = mv
  11943. }
  11944. }
  11945. dd.ReadMapEnd()
  11946. }
  11947. return v, changed
  11948. }
  11949. func (f decFnInfo) fastpathDecMapIntfInt16R(rv reflect.Value) {
  11950. if rv.CanAddr() {
  11951. vp := rv.Addr().Interface().(*map[interface{}]int16)
  11952. v, changed := fastpathTV.DecMapIntfInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  11953. if changed {
  11954. *vp = v
  11955. }
  11956. } else {
  11957. v := rv.Interface().(map[interface{}]int16)
  11958. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, f.d)
  11959. }
  11960. }
  11961. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, checkNil bool, d *Decoder) {
  11962. v, changed := f.DecMapIntfInt16V(*vp, checkNil, true, d)
  11963. if changed {
  11964. *vp = v
  11965. }
  11966. }
  11967. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, checkNil bool, canChange bool,
  11968. d *Decoder) (_ map[interface{}]int16, changed bool) {
  11969. dd := d.d
  11970. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  11971. if checkNil && dd.TryDecodeAsNil() {
  11972. if v != nil {
  11973. changed = true
  11974. }
  11975. return nil, changed
  11976. }
  11977. containerLen := dd.ReadMapStart()
  11978. if canChange && v == nil {
  11979. if containerLen > 0 {
  11980. v = make(map[interface{}]int16, containerLen)
  11981. } else {
  11982. v = make(map[interface{}]int16) // supports indefinite-length, etc
  11983. }
  11984. changed = true
  11985. }
  11986. if containerLen > 0 {
  11987. for j := 0; j < containerLen; j++ {
  11988. var mk interface{}
  11989. d.decode(&mk)
  11990. if bv, bok := mk.([]byte); bok {
  11991. mk = string(bv) // maps cannot have []byte as key. switch to string.
  11992. }
  11993. mv := v[mk]
  11994. mv = int16(dd.DecodeInt(16))
  11995. if v != nil {
  11996. v[mk] = mv
  11997. }
  11998. }
  11999. } else if containerLen < 0 {
  12000. for j := 0; !dd.CheckBreak(); j++ {
  12001. if j > 0 {
  12002. dd.ReadMapEntrySeparator()
  12003. }
  12004. var mk interface{}
  12005. d.decode(&mk)
  12006. if bv, bok := mk.([]byte); bok {
  12007. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12008. }
  12009. dd.ReadMapKVSeparator()
  12010. mv := v[mk]
  12011. mv = int16(dd.DecodeInt(16))
  12012. if v != nil {
  12013. v[mk] = mv
  12014. }
  12015. }
  12016. dd.ReadMapEnd()
  12017. }
  12018. return v, changed
  12019. }
  12020. func (f decFnInfo) fastpathDecMapIntfInt32R(rv reflect.Value) {
  12021. if rv.CanAddr() {
  12022. vp := rv.Addr().Interface().(*map[interface{}]int32)
  12023. v, changed := fastpathTV.DecMapIntfInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  12024. if changed {
  12025. *vp = v
  12026. }
  12027. } else {
  12028. v := rv.Interface().(map[interface{}]int32)
  12029. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, f.d)
  12030. }
  12031. }
  12032. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, checkNil bool, d *Decoder) {
  12033. v, changed := f.DecMapIntfInt32V(*vp, checkNil, true, d)
  12034. if changed {
  12035. *vp = v
  12036. }
  12037. }
  12038. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, checkNil bool, canChange bool,
  12039. d *Decoder) (_ map[interface{}]int32, changed bool) {
  12040. dd := d.d
  12041. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12042. if checkNil && dd.TryDecodeAsNil() {
  12043. if v != nil {
  12044. changed = true
  12045. }
  12046. return nil, changed
  12047. }
  12048. containerLen := dd.ReadMapStart()
  12049. if canChange && v == nil {
  12050. if containerLen > 0 {
  12051. v = make(map[interface{}]int32, containerLen)
  12052. } else {
  12053. v = make(map[interface{}]int32) // supports indefinite-length, etc
  12054. }
  12055. changed = true
  12056. }
  12057. if containerLen > 0 {
  12058. for j := 0; j < containerLen; j++ {
  12059. var mk interface{}
  12060. d.decode(&mk)
  12061. if bv, bok := mk.([]byte); bok {
  12062. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12063. }
  12064. mv := v[mk]
  12065. mv = int32(dd.DecodeInt(32))
  12066. if v != nil {
  12067. v[mk] = mv
  12068. }
  12069. }
  12070. } else if containerLen < 0 {
  12071. for j := 0; !dd.CheckBreak(); j++ {
  12072. if j > 0 {
  12073. dd.ReadMapEntrySeparator()
  12074. }
  12075. var mk interface{}
  12076. d.decode(&mk)
  12077. if bv, bok := mk.([]byte); bok {
  12078. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12079. }
  12080. dd.ReadMapKVSeparator()
  12081. mv := v[mk]
  12082. mv = int32(dd.DecodeInt(32))
  12083. if v != nil {
  12084. v[mk] = mv
  12085. }
  12086. }
  12087. dd.ReadMapEnd()
  12088. }
  12089. return v, changed
  12090. }
  12091. func (f decFnInfo) fastpathDecMapIntfInt64R(rv reflect.Value) {
  12092. if rv.CanAddr() {
  12093. vp := rv.Addr().Interface().(*map[interface{}]int64)
  12094. v, changed := fastpathTV.DecMapIntfInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  12095. if changed {
  12096. *vp = v
  12097. }
  12098. } else {
  12099. v := rv.Interface().(map[interface{}]int64)
  12100. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, f.d)
  12101. }
  12102. }
  12103. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, checkNil bool, d *Decoder) {
  12104. v, changed := f.DecMapIntfInt64V(*vp, checkNil, true, d)
  12105. if changed {
  12106. *vp = v
  12107. }
  12108. }
  12109. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, checkNil bool, canChange bool,
  12110. d *Decoder) (_ map[interface{}]int64, changed bool) {
  12111. dd := d.d
  12112. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12113. if checkNil && dd.TryDecodeAsNil() {
  12114. if v != nil {
  12115. changed = true
  12116. }
  12117. return nil, changed
  12118. }
  12119. containerLen := dd.ReadMapStart()
  12120. if canChange && v == nil {
  12121. if containerLen > 0 {
  12122. v = make(map[interface{}]int64, containerLen)
  12123. } else {
  12124. v = make(map[interface{}]int64) // supports indefinite-length, etc
  12125. }
  12126. changed = true
  12127. }
  12128. if containerLen > 0 {
  12129. for j := 0; j < containerLen; j++ {
  12130. var mk interface{}
  12131. d.decode(&mk)
  12132. if bv, bok := mk.([]byte); bok {
  12133. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12134. }
  12135. mv := v[mk]
  12136. mv = dd.DecodeInt(64)
  12137. if v != nil {
  12138. v[mk] = mv
  12139. }
  12140. }
  12141. } else if containerLen < 0 {
  12142. for j := 0; !dd.CheckBreak(); j++ {
  12143. if j > 0 {
  12144. dd.ReadMapEntrySeparator()
  12145. }
  12146. var mk interface{}
  12147. d.decode(&mk)
  12148. if bv, bok := mk.([]byte); bok {
  12149. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12150. }
  12151. dd.ReadMapKVSeparator()
  12152. mv := v[mk]
  12153. mv = dd.DecodeInt(64)
  12154. if v != nil {
  12155. v[mk] = mv
  12156. }
  12157. }
  12158. dd.ReadMapEnd()
  12159. }
  12160. return v, changed
  12161. }
  12162. func (f decFnInfo) fastpathDecMapIntfFloat32R(rv reflect.Value) {
  12163. if rv.CanAddr() {
  12164. vp := rv.Addr().Interface().(*map[interface{}]float32)
  12165. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  12166. if changed {
  12167. *vp = v
  12168. }
  12169. } else {
  12170. v := rv.Interface().(map[interface{}]float32)
  12171. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, f.d)
  12172. }
  12173. }
  12174. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, checkNil bool, d *Decoder) {
  12175. v, changed := f.DecMapIntfFloat32V(*vp, checkNil, true, d)
  12176. if changed {
  12177. *vp = v
  12178. }
  12179. }
  12180. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, checkNil bool, canChange bool,
  12181. d *Decoder) (_ map[interface{}]float32, changed bool) {
  12182. dd := d.d
  12183. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12184. if checkNil && dd.TryDecodeAsNil() {
  12185. if v != nil {
  12186. changed = true
  12187. }
  12188. return nil, changed
  12189. }
  12190. containerLen := dd.ReadMapStart()
  12191. if canChange && v == nil {
  12192. if containerLen > 0 {
  12193. v = make(map[interface{}]float32, containerLen)
  12194. } else {
  12195. v = make(map[interface{}]float32) // supports indefinite-length, etc
  12196. }
  12197. changed = true
  12198. }
  12199. if containerLen > 0 {
  12200. for j := 0; j < containerLen; j++ {
  12201. var mk interface{}
  12202. d.decode(&mk)
  12203. if bv, bok := mk.([]byte); bok {
  12204. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12205. }
  12206. mv := v[mk]
  12207. mv = float32(dd.DecodeFloat(true))
  12208. if v != nil {
  12209. v[mk] = mv
  12210. }
  12211. }
  12212. } else if containerLen < 0 {
  12213. for j := 0; !dd.CheckBreak(); j++ {
  12214. if j > 0 {
  12215. dd.ReadMapEntrySeparator()
  12216. }
  12217. var mk interface{}
  12218. d.decode(&mk)
  12219. if bv, bok := mk.([]byte); bok {
  12220. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12221. }
  12222. dd.ReadMapKVSeparator()
  12223. mv := v[mk]
  12224. mv = float32(dd.DecodeFloat(true))
  12225. if v != nil {
  12226. v[mk] = mv
  12227. }
  12228. }
  12229. dd.ReadMapEnd()
  12230. }
  12231. return v, changed
  12232. }
  12233. func (f decFnInfo) fastpathDecMapIntfFloat64R(rv reflect.Value) {
  12234. if rv.CanAddr() {
  12235. vp := rv.Addr().Interface().(*map[interface{}]float64)
  12236. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  12237. if changed {
  12238. *vp = v
  12239. }
  12240. } else {
  12241. v := rv.Interface().(map[interface{}]float64)
  12242. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, f.d)
  12243. }
  12244. }
  12245. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, checkNil bool, d *Decoder) {
  12246. v, changed := f.DecMapIntfFloat64V(*vp, checkNil, true, d)
  12247. if changed {
  12248. *vp = v
  12249. }
  12250. }
  12251. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, checkNil bool, canChange bool,
  12252. d *Decoder) (_ map[interface{}]float64, changed bool) {
  12253. dd := d.d
  12254. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12255. if checkNil && dd.TryDecodeAsNil() {
  12256. if v != nil {
  12257. changed = true
  12258. }
  12259. return nil, changed
  12260. }
  12261. containerLen := dd.ReadMapStart()
  12262. if canChange && v == nil {
  12263. if containerLen > 0 {
  12264. v = make(map[interface{}]float64, containerLen)
  12265. } else {
  12266. v = make(map[interface{}]float64) // supports indefinite-length, etc
  12267. }
  12268. changed = true
  12269. }
  12270. if containerLen > 0 {
  12271. for j := 0; j < containerLen; j++ {
  12272. var mk interface{}
  12273. d.decode(&mk)
  12274. if bv, bok := mk.([]byte); bok {
  12275. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12276. }
  12277. mv := v[mk]
  12278. mv = dd.DecodeFloat(false)
  12279. if v != nil {
  12280. v[mk] = mv
  12281. }
  12282. }
  12283. } else if containerLen < 0 {
  12284. for j := 0; !dd.CheckBreak(); j++ {
  12285. if j > 0 {
  12286. dd.ReadMapEntrySeparator()
  12287. }
  12288. var mk interface{}
  12289. d.decode(&mk)
  12290. if bv, bok := mk.([]byte); bok {
  12291. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12292. }
  12293. dd.ReadMapKVSeparator()
  12294. mv := v[mk]
  12295. mv = dd.DecodeFloat(false)
  12296. if v != nil {
  12297. v[mk] = mv
  12298. }
  12299. }
  12300. dd.ReadMapEnd()
  12301. }
  12302. return v, changed
  12303. }
  12304. func (f decFnInfo) fastpathDecMapIntfBoolR(rv reflect.Value) {
  12305. if rv.CanAddr() {
  12306. vp := rv.Addr().Interface().(*map[interface{}]bool)
  12307. v, changed := fastpathTV.DecMapIntfBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  12308. if changed {
  12309. *vp = v
  12310. }
  12311. } else {
  12312. v := rv.Interface().(map[interface{}]bool)
  12313. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, f.d)
  12314. }
  12315. }
  12316. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, checkNil bool, d *Decoder) {
  12317. v, changed := f.DecMapIntfBoolV(*vp, checkNil, true, d)
  12318. if changed {
  12319. *vp = v
  12320. }
  12321. }
  12322. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, checkNil bool, canChange bool,
  12323. d *Decoder) (_ map[interface{}]bool, changed bool) {
  12324. dd := d.d
  12325. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12326. if checkNil && dd.TryDecodeAsNil() {
  12327. if v != nil {
  12328. changed = true
  12329. }
  12330. return nil, changed
  12331. }
  12332. containerLen := dd.ReadMapStart()
  12333. if canChange && v == nil {
  12334. if containerLen > 0 {
  12335. v = make(map[interface{}]bool, containerLen)
  12336. } else {
  12337. v = make(map[interface{}]bool) // supports indefinite-length, etc
  12338. }
  12339. changed = true
  12340. }
  12341. if containerLen > 0 {
  12342. for j := 0; j < containerLen; j++ {
  12343. var mk interface{}
  12344. d.decode(&mk)
  12345. if bv, bok := mk.([]byte); bok {
  12346. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12347. }
  12348. mv := v[mk]
  12349. mv = dd.DecodeBool()
  12350. if v != nil {
  12351. v[mk] = mv
  12352. }
  12353. }
  12354. } else if containerLen < 0 {
  12355. for j := 0; !dd.CheckBreak(); j++ {
  12356. if j > 0 {
  12357. dd.ReadMapEntrySeparator()
  12358. }
  12359. var mk interface{}
  12360. d.decode(&mk)
  12361. if bv, bok := mk.([]byte); bok {
  12362. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12363. }
  12364. dd.ReadMapKVSeparator()
  12365. mv := v[mk]
  12366. mv = dd.DecodeBool()
  12367. if v != nil {
  12368. v[mk] = mv
  12369. }
  12370. }
  12371. dd.ReadMapEnd()
  12372. }
  12373. return v, changed
  12374. }
  12375. func (f decFnInfo) fastpathDecMapStringIntfR(rv reflect.Value) {
  12376. if rv.CanAddr() {
  12377. vp := rv.Addr().Interface().(*map[string]interface{})
  12378. v, changed := fastpathTV.DecMapStringIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  12379. if changed {
  12380. *vp = v
  12381. }
  12382. } else {
  12383. v := rv.Interface().(map[string]interface{})
  12384. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, f.d)
  12385. }
  12386. }
  12387. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, checkNil bool, d *Decoder) {
  12388. v, changed := f.DecMapStringIntfV(*vp, checkNil, true, d)
  12389. if changed {
  12390. *vp = v
  12391. }
  12392. }
  12393. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, checkNil bool, canChange bool,
  12394. d *Decoder) (_ map[string]interface{}, changed bool) {
  12395. dd := d.d
  12396. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12397. if checkNil && dd.TryDecodeAsNil() {
  12398. if v != nil {
  12399. changed = true
  12400. }
  12401. return nil, changed
  12402. }
  12403. containerLen := dd.ReadMapStart()
  12404. if canChange && v == nil {
  12405. if containerLen > 0 {
  12406. v = make(map[string]interface{}, containerLen)
  12407. } else {
  12408. v = make(map[string]interface{}) // supports indefinite-length, etc
  12409. }
  12410. changed = true
  12411. }
  12412. if containerLen > 0 {
  12413. for j := 0; j < containerLen; j++ {
  12414. mk := dd.DecodeString()
  12415. mv := v[mk]
  12416. d.decode(&mv)
  12417. if v != nil {
  12418. v[mk] = mv
  12419. }
  12420. }
  12421. } else if containerLen < 0 {
  12422. for j := 0; !dd.CheckBreak(); j++ {
  12423. if j > 0 {
  12424. dd.ReadMapEntrySeparator()
  12425. }
  12426. mk := dd.DecodeString()
  12427. dd.ReadMapKVSeparator()
  12428. mv := v[mk]
  12429. d.decode(&mv)
  12430. if v != nil {
  12431. v[mk] = mv
  12432. }
  12433. }
  12434. dd.ReadMapEnd()
  12435. }
  12436. return v, changed
  12437. }
  12438. func (f decFnInfo) fastpathDecMapStringStringR(rv reflect.Value) {
  12439. if rv.CanAddr() {
  12440. vp := rv.Addr().Interface().(*map[string]string)
  12441. v, changed := fastpathTV.DecMapStringStringV(*vp, fastpathCheckNilFalse, true, f.d)
  12442. if changed {
  12443. *vp = v
  12444. }
  12445. } else {
  12446. v := rv.Interface().(map[string]string)
  12447. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, f.d)
  12448. }
  12449. }
  12450. func (f fastpathT) DecMapStringStringX(vp *map[string]string, checkNil bool, d *Decoder) {
  12451. v, changed := f.DecMapStringStringV(*vp, checkNil, true, d)
  12452. if changed {
  12453. *vp = v
  12454. }
  12455. }
  12456. func (_ fastpathT) DecMapStringStringV(v map[string]string, checkNil bool, canChange bool,
  12457. d *Decoder) (_ map[string]string, changed bool) {
  12458. dd := d.d
  12459. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12460. if checkNil && dd.TryDecodeAsNil() {
  12461. if v != nil {
  12462. changed = true
  12463. }
  12464. return nil, changed
  12465. }
  12466. containerLen := dd.ReadMapStart()
  12467. if canChange && v == nil {
  12468. if containerLen > 0 {
  12469. v = make(map[string]string, containerLen)
  12470. } else {
  12471. v = make(map[string]string) // supports indefinite-length, etc
  12472. }
  12473. changed = true
  12474. }
  12475. if containerLen > 0 {
  12476. for j := 0; j < containerLen; j++ {
  12477. mk := dd.DecodeString()
  12478. mv := v[mk]
  12479. mv = dd.DecodeString()
  12480. if v != nil {
  12481. v[mk] = mv
  12482. }
  12483. }
  12484. } else if containerLen < 0 {
  12485. for j := 0; !dd.CheckBreak(); j++ {
  12486. if j > 0 {
  12487. dd.ReadMapEntrySeparator()
  12488. }
  12489. mk := dd.DecodeString()
  12490. dd.ReadMapKVSeparator()
  12491. mv := v[mk]
  12492. mv = dd.DecodeString()
  12493. if v != nil {
  12494. v[mk] = mv
  12495. }
  12496. }
  12497. dd.ReadMapEnd()
  12498. }
  12499. return v, changed
  12500. }
  12501. func (f decFnInfo) fastpathDecMapStringUintR(rv reflect.Value) {
  12502. if rv.CanAddr() {
  12503. vp := rv.Addr().Interface().(*map[string]uint)
  12504. v, changed := fastpathTV.DecMapStringUintV(*vp, fastpathCheckNilFalse, true, f.d)
  12505. if changed {
  12506. *vp = v
  12507. }
  12508. } else {
  12509. v := rv.Interface().(map[string]uint)
  12510. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, f.d)
  12511. }
  12512. }
  12513. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, checkNil bool, d *Decoder) {
  12514. v, changed := f.DecMapStringUintV(*vp, checkNil, true, d)
  12515. if changed {
  12516. *vp = v
  12517. }
  12518. }
  12519. func (_ fastpathT) DecMapStringUintV(v map[string]uint, checkNil bool, canChange bool,
  12520. d *Decoder) (_ map[string]uint, changed bool) {
  12521. dd := d.d
  12522. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12523. if checkNil && dd.TryDecodeAsNil() {
  12524. if v != nil {
  12525. changed = true
  12526. }
  12527. return nil, changed
  12528. }
  12529. containerLen := dd.ReadMapStart()
  12530. if canChange && v == nil {
  12531. if containerLen > 0 {
  12532. v = make(map[string]uint, containerLen)
  12533. } else {
  12534. v = make(map[string]uint) // supports indefinite-length, etc
  12535. }
  12536. changed = true
  12537. }
  12538. if containerLen > 0 {
  12539. for j := 0; j < containerLen; j++ {
  12540. mk := dd.DecodeString()
  12541. mv := v[mk]
  12542. mv = uint(dd.DecodeUint(uintBitsize))
  12543. if v != nil {
  12544. v[mk] = mv
  12545. }
  12546. }
  12547. } else if containerLen < 0 {
  12548. for j := 0; !dd.CheckBreak(); j++ {
  12549. if j > 0 {
  12550. dd.ReadMapEntrySeparator()
  12551. }
  12552. mk := dd.DecodeString()
  12553. dd.ReadMapKVSeparator()
  12554. mv := v[mk]
  12555. mv = uint(dd.DecodeUint(uintBitsize))
  12556. if v != nil {
  12557. v[mk] = mv
  12558. }
  12559. }
  12560. dd.ReadMapEnd()
  12561. }
  12562. return v, changed
  12563. }
  12564. func (f decFnInfo) fastpathDecMapStringUint8R(rv reflect.Value) {
  12565. if rv.CanAddr() {
  12566. vp := rv.Addr().Interface().(*map[string]uint8)
  12567. v, changed := fastpathTV.DecMapStringUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  12568. if changed {
  12569. *vp = v
  12570. }
  12571. } else {
  12572. v := rv.Interface().(map[string]uint8)
  12573. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, f.d)
  12574. }
  12575. }
  12576. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, checkNil bool, d *Decoder) {
  12577. v, changed := f.DecMapStringUint8V(*vp, checkNil, true, d)
  12578. if changed {
  12579. *vp = v
  12580. }
  12581. }
  12582. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, checkNil bool, canChange bool,
  12583. d *Decoder) (_ map[string]uint8, changed bool) {
  12584. dd := d.d
  12585. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12586. if checkNil && dd.TryDecodeAsNil() {
  12587. if v != nil {
  12588. changed = true
  12589. }
  12590. return nil, changed
  12591. }
  12592. containerLen := dd.ReadMapStart()
  12593. if canChange && v == nil {
  12594. if containerLen > 0 {
  12595. v = make(map[string]uint8, containerLen)
  12596. } else {
  12597. v = make(map[string]uint8) // supports indefinite-length, etc
  12598. }
  12599. changed = true
  12600. }
  12601. if containerLen > 0 {
  12602. for j := 0; j < containerLen; j++ {
  12603. mk := dd.DecodeString()
  12604. mv := v[mk]
  12605. mv = uint8(dd.DecodeUint(8))
  12606. if v != nil {
  12607. v[mk] = mv
  12608. }
  12609. }
  12610. } else if containerLen < 0 {
  12611. for j := 0; !dd.CheckBreak(); j++ {
  12612. if j > 0 {
  12613. dd.ReadMapEntrySeparator()
  12614. }
  12615. mk := dd.DecodeString()
  12616. dd.ReadMapKVSeparator()
  12617. mv := v[mk]
  12618. mv = uint8(dd.DecodeUint(8))
  12619. if v != nil {
  12620. v[mk] = mv
  12621. }
  12622. }
  12623. dd.ReadMapEnd()
  12624. }
  12625. return v, changed
  12626. }
  12627. func (f decFnInfo) fastpathDecMapStringUint16R(rv reflect.Value) {
  12628. if rv.CanAddr() {
  12629. vp := rv.Addr().Interface().(*map[string]uint16)
  12630. v, changed := fastpathTV.DecMapStringUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  12631. if changed {
  12632. *vp = v
  12633. }
  12634. } else {
  12635. v := rv.Interface().(map[string]uint16)
  12636. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, f.d)
  12637. }
  12638. }
  12639. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, checkNil bool, d *Decoder) {
  12640. v, changed := f.DecMapStringUint16V(*vp, checkNil, true, d)
  12641. if changed {
  12642. *vp = v
  12643. }
  12644. }
  12645. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, checkNil bool, canChange bool,
  12646. d *Decoder) (_ map[string]uint16, changed bool) {
  12647. dd := d.d
  12648. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12649. if checkNil && dd.TryDecodeAsNil() {
  12650. if v != nil {
  12651. changed = true
  12652. }
  12653. return nil, changed
  12654. }
  12655. containerLen := dd.ReadMapStart()
  12656. if canChange && v == nil {
  12657. if containerLen > 0 {
  12658. v = make(map[string]uint16, containerLen)
  12659. } else {
  12660. v = make(map[string]uint16) // supports indefinite-length, etc
  12661. }
  12662. changed = true
  12663. }
  12664. if containerLen > 0 {
  12665. for j := 0; j < containerLen; j++ {
  12666. mk := dd.DecodeString()
  12667. mv := v[mk]
  12668. mv = uint16(dd.DecodeUint(16))
  12669. if v != nil {
  12670. v[mk] = mv
  12671. }
  12672. }
  12673. } else if containerLen < 0 {
  12674. for j := 0; !dd.CheckBreak(); j++ {
  12675. if j > 0 {
  12676. dd.ReadMapEntrySeparator()
  12677. }
  12678. mk := dd.DecodeString()
  12679. dd.ReadMapKVSeparator()
  12680. mv := v[mk]
  12681. mv = uint16(dd.DecodeUint(16))
  12682. if v != nil {
  12683. v[mk] = mv
  12684. }
  12685. }
  12686. dd.ReadMapEnd()
  12687. }
  12688. return v, changed
  12689. }
  12690. func (f decFnInfo) fastpathDecMapStringUint32R(rv reflect.Value) {
  12691. if rv.CanAddr() {
  12692. vp := rv.Addr().Interface().(*map[string]uint32)
  12693. v, changed := fastpathTV.DecMapStringUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  12694. if changed {
  12695. *vp = v
  12696. }
  12697. } else {
  12698. v := rv.Interface().(map[string]uint32)
  12699. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, f.d)
  12700. }
  12701. }
  12702. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, checkNil bool, d *Decoder) {
  12703. v, changed := f.DecMapStringUint32V(*vp, checkNil, true, d)
  12704. if changed {
  12705. *vp = v
  12706. }
  12707. }
  12708. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, checkNil bool, canChange bool,
  12709. d *Decoder) (_ map[string]uint32, changed bool) {
  12710. dd := d.d
  12711. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12712. if checkNil && dd.TryDecodeAsNil() {
  12713. if v != nil {
  12714. changed = true
  12715. }
  12716. return nil, changed
  12717. }
  12718. containerLen := dd.ReadMapStart()
  12719. if canChange && v == nil {
  12720. if containerLen > 0 {
  12721. v = make(map[string]uint32, containerLen)
  12722. } else {
  12723. v = make(map[string]uint32) // supports indefinite-length, etc
  12724. }
  12725. changed = true
  12726. }
  12727. if containerLen > 0 {
  12728. for j := 0; j < containerLen; j++ {
  12729. mk := dd.DecodeString()
  12730. mv := v[mk]
  12731. mv = uint32(dd.DecodeUint(32))
  12732. if v != nil {
  12733. v[mk] = mv
  12734. }
  12735. }
  12736. } else if containerLen < 0 {
  12737. for j := 0; !dd.CheckBreak(); j++ {
  12738. if j > 0 {
  12739. dd.ReadMapEntrySeparator()
  12740. }
  12741. mk := dd.DecodeString()
  12742. dd.ReadMapKVSeparator()
  12743. mv := v[mk]
  12744. mv = uint32(dd.DecodeUint(32))
  12745. if v != nil {
  12746. v[mk] = mv
  12747. }
  12748. }
  12749. dd.ReadMapEnd()
  12750. }
  12751. return v, changed
  12752. }
  12753. func (f decFnInfo) fastpathDecMapStringUint64R(rv reflect.Value) {
  12754. if rv.CanAddr() {
  12755. vp := rv.Addr().Interface().(*map[string]uint64)
  12756. v, changed := fastpathTV.DecMapStringUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  12757. if changed {
  12758. *vp = v
  12759. }
  12760. } else {
  12761. v := rv.Interface().(map[string]uint64)
  12762. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, f.d)
  12763. }
  12764. }
  12765. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, checkNil bool, d *Decoder) {
  12766. v, changed := f.DecMapStringUint64V(*vp, checkNil, true, d)
  12767. if changed {
  12768. *vp = v
  12769. }
  12770. }
  12771. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, checkNil bool, canChange bool,
  12772. d *Decoder) (_ map[string]uint64, changed bool) {
  12773. dd := d.d
  12774. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12775. if checkNil && dd.TryDecodeAsNil() {
  12776. if v != nil {
  12777. changed = true
  12778. }
  12779. return nil, changed
  12780. }
  12781. containerLen := dd.ReadMapStart()
  12782. if canChange && v == nil {
  12783. if containerLen > 0 {
  12784. v = make(map[string]uint64, containerLen)
  12785. } else {
  12786. v = make(map[string]uint64) // supports indefinite-length, etc
  12787. }
  12788. changed = true
  12789. }
  12790. if containerLen > 0 {
  12791. for j := 0; j < containerLen; j++ {
  12792. mk := dd.DecodeString()
  12793. mv := v[mk]
  12794. mv = dd.DecodeUint(64)
  12795. if v != nil {
  12796. v[mk] = mv
  12797. }
  12798. }
  12799. } else if containerLen < 0 {
  12800. for j := 0; !dd.CheckBreak(); j++ {
  12801. if j > 0 {
  12802. dd.ReadMapEntrySeparator()
  12803. }
  12804. mk := dd.DecodeString()
  12805. dd.ReadMapKVSeparator()
  12806. mv := v[mk]
  12807. mv = dd.DecodeUint(64)
  12808. if v != nil {
  12809. v[mk] = mv
  12810. }
  12811. }
  12812. dd.ReadMapEnd()
  12813. }
  12814. return v, changed
  12815. }
  12816. func (f decFnInfo) fastpathDecMapStringIntR(rv reflect.Value) {
  12817. if rv.CanAddr() {
  12818. vp := rv.Addr().Interface().(*map[string]int)
  12819. v, changed := fastpathTV.DecMapStringIntV(*vp, fastpathCheckNilFalse, true, f.d)
  12820. if changed {
  12821. *vp = v
  12822. }
  12823. } else {
  12824. v := rv.Interface().(map[string]int)
  12825. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, f.d)
  12826. }
  12827. }
  12828. func (f fastpathT) DecMapStringIntX(vp *map[string]int, checkNil bool, d *Decoder) {
  12829. v, changed := f.DecMapStringIntV(*vp, checkNil, true, d)
  12830. if changed {
  12831. *vp = v
  12832. }
  12833. }
  12834. func (_ fastpathT) DecMapStringIntV(v map[string]int, checkNil bool, canChange bool,
  12835. d *Decoder) (_ map[string]int, changed bool) {
  12836. dd := d.d
  12837. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12838. if checkNil && dd.TryDecodeAsNil() {
  12839. if v != nil {
  12840. changed = true
  12841. }
  12842. return nil, changed
  12843. }
  12844. containerLen := dd.ReadMapStart()
  12845. if canChange && v == nil {
  12846. if containerLen > 0 {
  12847. v = make(map[string]int, containerLen)
  12848. } else {
  12849. v = make(map[string]int) // supports indefinite-length, etc
  12850. }
  12851. changed = true
  12852. }
  12853. if containerLen > 0 {
  12854. for j := 0; j < containerLen; j++ {
  12855. mk := dd.DecodeString()
  12856. mv := v[mk]
  12857. mv = int(dd.DecodeInt(intBitsize))
  12858. if v != nil {
  12859. v[mk] = mv
  12860. }
  12861. }
  12862. } else if containerLen < 0 {
  12863. for j := 0; !dd.CheckBreak(); j++ {
  12864. if j > 0 {
  12865. dd.ReadMapEntrySeparator()
  12866. }
  12867. mk := dd.DecodeString()
  12868. dd.ReadMapKVSeparator()
  12869. mv := v[mk]
  12870. mv = int(dd.DecodeInt(intBitsize))
  12871. if v != nil {
  12872. v[mk] = mv
  12873. }
  12874. }
  12875. dd.ReadMapEnd()
  12876. }
  12877. return v, changed
  12878. }
  12879. func (f decFnInfo) fastpathDecMapStringInt8R(rv reflect.Value) {
  12880. if rv.CanAddr() {
  12881. vp := rv.Addr().Interface().(*map[string]int8)
  12882. v, changed := fastpathTV.DecMapStringInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  12883. if changed {
  12884. *vp = v
  12885. }
  12886. } else {
  12887. v := rv.Interface().(map[string]int8)
  12888. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, f.d)
  12889. }
  12890. }
  12891. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, checkNil bool, d *Decoder) {
  12892. v, changed := f.DecMapStringInt8V(*vp, checkNil, true, d)
  12893. if changed {
  12894. *vp = v
  12895. }
  12896. }
  12897. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, checkNil bool, canChange bool,
  12898. d *Decoder) (_ map[string]int8, changed bool) {
  12899. dd := d.d
  12900. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12901. if checkNil && dd.TryDecodeAsNil() {
  12902. if v != nil {
  12903. changed = true
  12904. }
  12905. return nil, changed
  12906. }
  12907. containerLen := dd.ReadMapStart()
  12908. if canChange && v == nil {
  12909. if containerLen > 0 {
  12910. v = make(map[string]int8, containerLen)
  12911. } else {
  12912. v = make(map[string]int8) // supports indefinite-length, etc
  12913. }
  12914. changed = true
  12915. }
  12916. if containerLen > 0 {
  12917. for j := 0; j < containerLen; j++ {
  12918. mk := dd.DecodeString()
  12919. mv := v[mk]
  12920. mv = int8(dd.DecodeInt(8))
  12921. if v != nil {
  12922. v[mk] = mv
  12923. }
  12924. }
  12925. } else if containerLen < 0 {
  12926. for j := 0; !dd.CheckBreak(); j++ {
  12927. if j > 0 {
  12928. dd.ReadMapEntrySeparator()
  12929. }
  12930. mk := dd.DecodeString()
  12931. dd.ReadMapKVSeparator()
  12932. mv := v[mk]
  12933. mv = int8(dd.DecodeInt(8))
  12934. if v != nil {
  12935. v[mk] = mv
  12936. }
  12937. }
  12938. dd.ReadMapEnd()
  12939. }
  12940. return v, changed
  12941. }
  12942. func (f decFnInfo) fastpathDecMapStringInt16R(rv reflect.Value) {
  12943. if rv.CanAddr() {
  12944. vp := rv.Addr().Interface().(*map[string]int16)
  12945. v, changed := fastpathTV.DecMapStringInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  12946. if changed {
  12947. *vp = v
  12948. }
  12949. } else {
  12950. v := rv.Interface().(map[string]int16)
  12951. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, f.d)
  12952. }
  12953. }
  12954. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, checkNil bool, d *Decoder) {
  12955. v, changed := f.DecMapStringInt16V(*vp, checkNil, true, d)
  12956. if changed {
  12957. *vp = v
  12958. }
  12959. }
  12960. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, checkNil bool, canChange bool,
  12961. d *Decoder) (_ map[string]int16, changed bool) {
  12962. dd := d.d
  12963. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12964. if checkNil && dd.TryDecodeAsNil() {
  12965. if v != nil {
  12966. changed = true
  12967. }
  12968. return nil, changed
  12969. }
  12970. containerLen := dd.ReadMapStart()
  12971. if canChange && v == nil {
  12972. if containerLen > 0 {
  12973. v = make(map[string]int16, containerLen)
  12974. } else {
  12975. v = make(map[string]int16) // supports indefinite-length, etc
  12976. }
  12977. changed = true
  12978. }
  12979. if containerLen > 0 {
  12980. for j := 0; j < containerLen; j++ {
  12981. mk := dd.DecodeString()
  12982. mv := v[mk]
  12983. mv = int16(dd.DecodeInt(16))
  12984. if v != nil {
  12985. v[mk] = mv
  12986. }
  12987. }
  12988. } else if containerLen < 0 {
  12989. for j := 0; !dd.CheckBreak(); j++ {
  12990. if j > 0 {
  12991. dd.ReadMapEntrySeparator()
  12992. }
  12993. mk := dd.DecodeString()
  12994. dd.ReadMapKVSeparator()
  12995. mv := v[mk]
  12996. mv = int16(dd.DecodeInt(16))
  12997. if v != nil {
  12998. v[mk] = mv
  12999. }
  13000. }
  13001. dd.ReadMapEnd()
  13002. }
  13003. return v, changed
  13004. }
  13005. func (f decFnInfo) fastpathDecMapStringInt32R(rv reflect.Value) {
  13006. if rv.CanAddr() {
  13007. vp := rv.Addr().Interface().(*map[string]int32)
  13008. v, changed := fastpathTV.DecMapStringInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  13009. if changed {
  13010. *vp = v
  13011. }
  13012. } else {
  13013. v := rv.Interface().(map[string]int32)
  13014. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, f.d)
  13015. }
  13016. }
  13017. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, checkNil bool, d *Decoder) {
  13018. v, changed := f.DecMapStringInt32V(*vp, checkNil, true, d)
  13019. if changed {
  13020. *vp = v
  13021. }
  13022. }
  13023. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, checkNil bool, canChange bool,
  13024. d *Decoder) (_ map[string]int32, changed bool) {
  13025. dd := d.d
  13026. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13027. if checkNil && dd.TryDecodeAsNil() {
  13028. if v != nil {
  13029. changed = true
  13030. }
  13031. return nil, changed
  13032. }
  13033. containerLen := dd.ReadMapStart()
  13034. if canChange && v == nil {
  13035. if containerLen > 0 {
  13036. v = make(map[string]int32, containerLen)
  13037. } else {
  13038. v = make(map[string]int32) // supports indefinite-length, etc
  13039. }
  13040. changed = true
  13041. }
  13042. if containerLen > 0 {
  13043. for j := 0; j < containerLen; j++ {
  13044. mk := dd.DecodeString()
  13045. mv := v[mk]
  13046. mv = int32(dd.DecodeInt(32))
  13047. if v != nil {
  13048. v[mk] = mv
  13049. }
  13050. }
  13051. } else if containerLen < 0 {
  13052. for j := 0; !dd.CheckBreak(); j++ {
  13053. if j > 0 {
  13054. dd.ReadMapEntrySeparator()
  13055. }
  13056. mk := dd.DecodeString()
  13057. dd.ReadMapKVSeparator()
  13058. mv := v[mk]
  13059. mv = int32(dd.DecodeInt(32))
  13060. if v != nil {
  13061. v[mk] = mv
  13062. }
  13063. }
  13064. dd.ReadMapEnd()
  13065. }
  13066. return v, changed
  13067. }
  13068. func (f decFnInfo) fastpathDecMapStringInt64R(rv reflect.Value) {
  13069. if rv.CanAddr() {
  13070. vp := rv.Addr().Interface().(*map[string]int64)
  13071. v, changed := fastpathTV.DecMapStringInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  13072. if changed {
  13073. *vp = v
  13074. }
  13075. } else {
  13076. v := rv.Interface().(map[string]int64)
  13077. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, f.d)
  13078. }
  13079. }
  13080. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, checkNil bool, d *Decoder) {
  13081. v, changed := f.DecMapStringInt64V(*vp, checkNil, true, d)
  13082. if changed {
  13083. *vp = v
  13084. }
  13085. }
  13086. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, checkNil bool, canChange bool,
  13087. d *Decoder) (_ map[string]int64, changed bool) {
  13088. dd := d.d
  13089. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13090. if checkNil && dd.TryDecodeAsNil() {
  13091. if v != nil {
  13092. changed = true
  13093. }
  13094. return nil, changed
  13095. }
  13096. containerLen := dd.ReadMapStart()
  13097. if canChange && v == nil {
  13098. if containerLen > 0 {
  13099. v = make(map[string]int64, containerLen)
  13100. } else {
  13101. v = make(map[string]int64) // supports indefinite-length, etc
  13102. }
  13103. changed = true
  13104. }
  13105. if containerLen > 0 {
  13106. for j := 0; j < containerLen; j++ {
  13107. mk := dd.DecodeString()
  13108. mv := v[mk]
  13109. mv = dd.DecodeInt(64)
  13110. if v != nil {
  13111. v[mk] = mv
  13112. }
  13113. }
  13114. } else if containerLen < 0 {
  13115. for j := 0; !dd.CheckBreak(); j++ {
  13116. if j > 0 {
  13117. dd.ReadMapEntrySeparator()
  13118. }
  13119. mk := dd.DecodeString()
  13120. dd.ReadMapKVSeparator()
  13121. mv := v[mk]
  13122. mv = dd.DecodeInt(64)
  13123. if v != nil {
  13124. v[mk] = mv
  13125. }
  13126. }
  13127. dd.ReadMapEnd()
  13128. }
  13129. return v, changed
  13130. }
  13131. func (f decFnInfo) fastpathDecMapStringFloat32R(rv reflect.Value) {
  13132. if rv.CanAddr() {
  13133. vp := rv.Addr().Interface().(*map[string]float32)
  13134. v, changed := fastpathTV.DecMapStringFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  13135. if changed {
  13136. *vp = v
  13137. }
  13138. } else {
  13139. v := rv.Interface().(map[string]float32)
  13140. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, f.d)
  13141. }
  13142. }
  13143. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, checkNil bool, d *Decoder) {
  13144. v, changed := f.DecMapStringFloat32V(*vp, checkNil, true, d)
  13145. if changed {
  13146. *vp = v
  13147. }
  13148. }
  13149. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, checkNil bool, canChange bool,
  13150. d *Decoder) (_ map[string]float32, changed bool) {
  13151. dd := d.d
  13152. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13153. if checkNil && dd.TryDecodeAsNil() {
  13154. if v != nil {
  13155. changed = true
  13156. }
  13157. return nil, changed
  13158. }
  13159. containerLen := dd.ReadMapStart()
  13160. if canChange && v == nil {
  13161. if containerLen > 0 {
  13162. v = make(map[string]float32, containerLen)
  13163. } else {
  13164. v = make(map[string]float32) // supports indefinite-length, etc
  13165. }
  13166. changed = true
  13167. }
  13168. if containerLen > 0 {
  13169. for j := 0; j < containerLen; j++ {
  13170. mk := dd.DecodeString()
  13171. mv := v[mk]
  13172. mv = float32(dd.DecodeFloat(true))
  13173. if v != nil {
  13174. v[mk] = mv
  13175. }
  13176. }
  13177. } else if containerLen < 0 {
  13178. for j := 0; !dd.CheckBreak(); j++ {
  13179. if j > 0 {
  13180. dd.ReadMapEntrySeparator()
  13181. }
  13182. mk := dd.DecodeString()
  13183. dd.ReadMapKVSeparator()
  13184. mv := v[mk]
  13185. mv = float32(dd.DecodeFloat(true))
  13186. if v != nil {
  13187. v[mk] = mv
  13188. }
  13189. }
  13190. dd.ReadMapEnd()
  13191. }
  13192. return v, changed
  13193. }
  13194. func (f decFnInfo) fastpathDecMapStringFloat64R(rv reflect.Value) {
  13195. if rv.CanAddr() {
  13196. vp := rv.Addr().Interface().(*map[string]float64)
  13197. v, changed := fastpathTV.DecMapStringFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  13198. if changed {
  13199. *vp = v
  13200. }
  13201. } else {
  13202. v := rv.Interface().(map[string]float64)
  13203. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, f.d)
  13204. }
  13205. }
  13206. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, checkNil bool, d *Decoder) {
  13207. v, changed := f.DecMapStringFloat64V(*vp, checkNil, true, d)
  13208. if changed {
  13209. *vp = v
  13210. }
  13211. }
  13212. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, checkNil bool, canChange bool,
  13213. d *Decoder) (_ map[string]float64, changed bool) {
  13214. dd := d.d
  13215. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13216. if checkNil && dd.TryDecodeAsNil() {
  13217. if v != nil {
  13218. changed = true
  13219. }
  13220. return nil, changed
  13221. }
  13222. containerLen := dd.ReadMapStart()
  13223. if canChange && v == nil {
  13224. if containerLen > 0 {
  13225. v = make(map[string]float64, containerLen)
  13226. } else {
  13227. v = make(map[string]float64) // supports indefinite-length, etc
  13228. }
  13229. changed = true
  13230. }
  13231. if containerLen > 0 {
  13232. for j := 0; j < containerLen; j++ {
  13233. mk := dd.DecodeString()
  13234. mv := v[mk]
  13235. mv = dd.DecodeFloat(false)
  13236. if v != nil {
  13237. v[mk] = mv
  13238. }
  13239. }
  13240. } else if containerLen < 0 {
  13241. for j := 0; !dd.CheckBreak(); j++ {
  13242. if j > 0 {
  13243. dd.ReadMapEntrySeparator()
  13244. }
  13245. mk := dd.DecodeString()
  13246. dd.ReadMapKVSeparator()
  13247. mv := v[mk]
  13248. mv = dd.DecodeFloat(false)
  13249. if v != nil {
  13250. v[mk] = mv
  13251. }
  13252. }
  13253. dd.ReadMapEnd()
  13254. }
  13255. return v, changed
  13256. }
  13257. func (f decFnInfo) fastpathDecMapStringBoolR(rv reflect.Value) {
  13258. if rv.CanAddr() {
  13259. vp := rv.Addr().Interface().(*map[string]bool)
  13260. v, changed := fastpathTV.DecMapStringBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  13261. if changed {
  13262. *vp = v
  13263. }
  13264. } else {
  13265. v := rv.Interface().(map[string]bool)
  13266. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, f.d)
  13267. }
  13268. }
  13269. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, checkNil bool, d *Decoder) {
  13270. v, changed := f.DecMapStringBoolV(*vp, checkNil, true, d)
  13271. if changed {
  13272. *vp = v
  13273. }
  13274. }
  13275. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, checkNil bool, canChange bool,
  13276. d *Decoder) (_ map[string]bool, changed bool) {
  13277. dd := d.d
  13278. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13279. if checkNil && dd.TryDecodeAsNil() {
  13280. if v != nil {
  13281. changed = true
  13282. }
  13283. return nil, changed
  13284. }
  13285. containerLen := dd.ReadMapStart()
  13286. if canChange && v == nil {
  13287. if containerLen > 0 {
  13288. v = make(map[string]bool, containerLen)
  13289. } else {
  13290. v = make(map[string]bool) // supports indefinite-length, etc
  13291. }
  13292. changed = true
  13293. }
  13294. if containerLen > 0 {
  13295. for j := 0; j < containerLen; j++ {
  13296. mk := dd.DecodeString()
  13297. mv := v[mk]
  13298. mv = dd.DecodeBool()
  13299. if v != nil {
  13300. v[mk] = mv
  13301. }
  13302. }
  13303. } else if containerLen < 0 {
  13304. for j := 0; !dd.CheckBreak(); j++ {
  13305. if j > 0 {
  13306. dd.ReadMapEntrySeparator()
  13307. }
  13308. mk := dd.DecodeString()
  13309. dd.ReadMapKVSeparator()
  13310. mv := v[mk]
  13311. mv = dd.DecodeBool()
  13312. if v != nil {
  13313. v[mk] = mv
  13314. }
  13315. }
  13316. dd.ReadMapEnd()
  13317. }
  13318. return v, changed
  13319. }
  13320. func (f decFnInfo) fastpathDecMapFloat32IntfR(rv reflect.Value) {
  13321. if rv.CanAddr() {
  13322. vp := rv.Addr().Interface().(*map[float32]interface{})
  13323. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  13324. if changed {
  13325. *vp = v
  13326. }
  13327. } else {
  13328. v := rv.Interface().(map[float32]interface{})
  13329. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, f.d)
  13330. }
  13331. }
  13332. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, checkNil bool, d *Decoder) {
  13333. v, changed := f.DecMapFloat32IntfV(*vp, checkNil, true, d)
  13334. if changed {
  13335. *vp = v
  13336. }
  13337. }
  13338. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, checkNil bool, canChange bool,
  13339. d *Decoder) (_ map[float32]interface{}, changed bool) {
  13340. dd := d.d
  13341. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13342. if checkNil && dd.TryDecodeAsNil() {
  13343. if v != nil {
  13344. changed = true
  13345. }
  13346. return nil, changed
  13347. }
  13348. containerLen := dd.ReadMapStart()
  13349. if canChange && v == nil {
  13350. if containerLen > 0 {
  13351. v = make(map[float32]interface{}, containerLen)
  13352. } else {
  13353. v = make(map[float32]interface{}) // supports indefinite-length, etc
  13354. }
  13355. changed = true
  13356. }
  13357. if containerLen > 0 {
  13358. for j := 0; j < containerLen; j++ {
  13359. mk := float32(dd.DecodeFloat(true))
  13360. mv := v[mk]
  13361. d.decode(&mv)
  13362. if v != nil {
  13363. v[mk] = mv
  13364. }
  13365. }
  13366. } else if containerLen < 0 {
  13367. for j := 0; !dd.CheckBreak(); j++ {
  13368. if j > 0 {
  13369. dd.ReadMapEntrySeparator()
  13370. }
  13371. mk := float32(dd.DecodeFloat(true))
  13372. dd.ReadMapKVSeparator()
  13373. mv := v[mk]
  13374. d.decode(&mv)
  13375. if v != nil {
  13376. v[mk] = mv
  13377. }
  13378. }
  13379. dd.ReadMapEnd()
  13380. }
  13381. return v, changed
  13382. }
  13383. func (f decFnInfo) fastpathDecMapFloat32StringR(rv reflect.Value) {
  13384. if rv.CanAddr() {
  13385. vp := rv.Addr().Interface().(*map[float32]string)
  13386. v, changed := fastpathTV.DecMapFloat32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  13387. if changed {
  13388. *vp = v
  13389. }
  13390. } else {
  13391. v := rv.Interface().(map[float32]string)
  13392. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, f.d)
  13393. }
  13394. }
  13395. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, checkNil bool, d *Decoder) {
  13396. v, changed := f.DecMapFloat32StringV(*vp, checkNil, true, d)
  13397. if changed {
  13398. *vp = v
  13399. }
  13400. }
  13401. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, checkNil bool, canChange bool,
  13402. d *Decoder) (_ map[float32]string, changed bool) {
  13403. dd := d.d
  13404. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13405. if checkNil && dd.TryDecodeAsNil() {
  13406. if v != nil {
  13407. changed = true
  13408. }
  13409. return nil, changed
  13410. }
  13411. containerLen := dd.ReadMapStart()
  13412. if canChange && v == nil {
  13413. if containerLen > 0 {
  13414. v = make(map[float32]string, containerLen)
  13415. } else {
  13416. v = make(map[float32]string) // supports indefinite-length, etc
  13417. }
  13418. changed = true
  13419. }
  13420. if containerLen > 0 {
  13421. for j := 0; j < containerLen; j++ {
  13422. mk := float32(dd.DecodeFloat(true))
  13423. mv := v[mk]
  13424. mv = dd.DecodeString()
  13425. if v != nil {
  13426. v[mk] = mv
  13427. }
  13428. }
  13429. } else if containerLen < 0 {
  13430. for j := 0; !dd.CheckBreak(); j++ {
  13431. if j > 0 {
  13432. dd.ReadMapEntrySeparator()
  13433. }
  13434. mk := float32(dd.DecodeFloat(true))
  13435. dd.ReadMapKVSeparator()
  13436. mv := v[mk]
  13437. mv = dd.DecodeString()
  13438. if v != nil {
  13439. v[mk] = mv
  13440. }
  13441. }
  13442. dd.ReadMapEnd()
  13443. }
  13444. return v, changed
  13445. }
  13446. func (f decFnInfo) fastpathDecMapFloat32UintR(rv reflect.Value) {
  13447. if rv.CanAddr() {
  13448. vp := rv.Addr().Interface().(*map[float32]uint)
  13449. v, changed := fastpathTV.DecMapFloat32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  13450. if changed {
  13451. *vp = v
  13452. }
  13453. } else {
  13454. v := rv.Interface().(map[float32]uint)
  13455. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, f.d)
  13456. }
  13457. }
  13458. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, checkNil bool, d *Decoder) {
  13459. v, changed := f.DecMapFloat32UintV(*vp, checkNil, true, d)
  13460. if changed {
  13461. *vp = v
  13462. }
  13463. }
  13464. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, checkNil bool, canChange bool,
  13465. d *Decoder) (_ map[float32]uint, changed bool) {
  13466. dd := d.d
  13467. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13468. if checkNil && dd.TryDecodeAsNil() {
  13469. if v != nil {
  13470. changed = true
  13471. }
  13472. return nil, changed
  13473. }
  13474. containerLen := dd.ReadMapStart()
  13475. if canChange && v == nil {
  13476. if containerLen > 0 {
  13477. v = make(map[float32]uint, containerLen)
  13478. } else {
  13479. v = make(map[float32]uint) // supports indefinite-length, etc
  13480. }
  13481. changed = true
  13482. }
  13483. if containerLen > 0 {
  13484. for j := 0; j < containerLen; j++ {
  13485. mk := float32(dd.DecodeFloat(true))
  13486. mv := v[mk]
  13487. mv = uint(dd.DecodeUint(uintBitsize))
  13488. if v != nil {
  13489. v[mk] = mv
  13490. }
  13491. }
  13492. } else if containerLen < 0 {
  13493. for j := 0; !dd.CheckBreak(); j++ {
  13494. if j > 0 {
  13495. dd.ReadMapEntrySeparator()
  13496. }
  13497. mk := float32(dd.DecodeFloat(true))
  13498. dd.ReadMapKVSeparator()
  13499. mv := v[mk]
  13500. mv = uint(dd.DecodeUint(uintBitsize))
  13501. if v != nil {
  13502. v[mk] = mv
  13503. }
  13504. }
  13505. dd.ReadMapEnd()
  13506. }
  13507. return v, changed
  13508. }
  13509. func (f decFnInfo) fastpathDecMapFloat32Uint8R(rv reflect.Value) {
  13510. if rv.CanAddr() {
  13511. vp := rv.Addr().Interface().(*map[float32]uint8)
  13512. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  13513. if changed {
  13514. *vp = v
  13515. }
  13516. } else {
  13517. v := rv.Interface().(map[float32]uint8)
  13518. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  13519. }
  13520. }
  13521. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, checkNil bool, d *Decoder) {
  13522. v, changed := f.DecMapFloat32Uint8V(*vp, checkNil, true, d)
  13523. if changed {
  13524. *vp = v
  13525. }
  13526. }
  13527. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, checkNil bool, canChange bool,
  13528. d *Decoder) (_ map[float32]uint8, changed bool) {
  13529. dd := d.d
  13530. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13531. if checkNil && dd.TryDecodeAsNil() {
  13532. if v != nil {
  13533. changed = true
  13534. }
  13535. return nil, changed
  13536. }
  13537. containerLen := dd.ReadMapStart()
  13538. if canChange && v == nil {
  13539. if containerLen > 0 {
  13540. v = make(map[float32]uint8, containerLen)
  13541. } else {
  13542. v = make(map[float32]uint8) // supports indefinite-length, etc
  13543. }
  13544. changed = true
  13545. }
  13546. if containerLen > 0 {
  13547. for j := 0; j < containerLen; j++ {
  13548. mk := float32(dd.DecodeFloat(true))
  13549. mv := v[mk]
  13550. mv = uint8(dd.DecodeUint(8))
  13551. if v != nil {
  13552. v[mk] = mv
  13553. }
  13554. }
  13555. } else if containerLen < 0 {
  13556. for j := 0; !dd.CheckBreak(); j++ {
  13557. if j > 0 {
  13558. dd.ReadMapEntrySeparator()
  13559. }
  13560. mk := float32(dd.DecodeFloat(true))
  13561. dd.ReadMapKVSeparator()
  13562. mv := v[mk]
  13563. mv = uint8(dd.DecodeUint(8))
  13564. if v != nil {
  13565. v[mk] = mv
  13566. }
  13567. }
  13568. dd.ReadMapEnd()
  13569. }
  13570. return v, changed
  13571. }
  13572. func (f decFnInfo) fastpathDecMapFloat32Uint16R(rv reflect.Value) {
  13573. if rv.CanAddr() {
  13574. vp := rv.Addr().Interface().(*map[float32]uint16)
  13575. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  13576. if changed {
  13577. *vp = v
  13578. }
  13579. } else {
  13580. v := rv.Interface().(map[float32]uint16)
  13581. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  13582. }
  13583. }
  13584. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, checkNil bool, d *Decoder) {
  13585. v, changed := f.DecMapFloat32Uint16V(*vp, checkNil, true, d)
  13586. if changed {
  13587. *vp = v
  13588. }
  13589. }
  13590. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, checkNil bool, canChange bool,
  13591. d *Decoder) (_ map[float32]uint16, changed bool) {
  13592. dd := d.d
  13593. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13594. if checkNil && dd.TryDecodeAsNil() {
  13595. if v != nil {
  13596. changed = true
  13597. }
  13598. return nil, changed
  13599. }
  13600. containerLen := dd.ReadMapStart()
  13601. if canChange && v == nil {
  13602. if containerLen > 0 {
  13603. v = make(map[float32]uint16, containerLen)
  13604. } else {
  13605. v = make(map[float32]uint16) // supports indefinite-length, etc
  13606. }
  13607. changed = true
  13608. }
  13609. if containerLen > 0 {
  13610. for j := 0; j < containerLen; j++ {
  13611. mk := float32(dd.DecodeFloat(true))
  13612. mv := v[mk]
  13613. mv = uint16(dd.DecodeUint(16))
  13614. if v != nil {
  13615. v[mk] = mv
  13616. }
  13617. }
  13618. } else if containerLen < 0 {
  13619. for j := 0; !dd.CheckBreak(); j++ {
  13620. if j > 0 {
  13621. dd.ReadMapEntrySeparator()
  13622. }
  13623. mk := float32(dd.DecodeFloat(true))
  13624. dd.ReadMapKVSeparator()
  13625. mv := v[mk]
  13626. mv = uint16(dd.DecodeUint(16))
  13627. if v != nil {
  13628. v[mk] = mv
  13629. }
  13630. }
  13631. dd.ReadMapEnd()
  13632. }
  13633. return v, changed
  13634. }
  13635. func (f decFnInfo) fastpathDecMapFloat32Uint32R(rv reflect.Value) {
  13636. if rv.CanAddr() {
  13637. vp := rv.Addr().Interface().(*map[float32]uint32)
  13638. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  13639. if changed {
  13640. *vp = v
  13641. }
  13642. } else {
  13643. v := rv.Interface().(map[float32]uint32)
  13644. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  13645. }
  13646. }
  13647. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, checkNil bool, d *Decoder) {
  13648. v, changed := f.DecMapFloat32Uint32V(*vp, checkNil, true, d)
  13649. if changed {
  13650. *vp = v
  13651. }
  13652. }
  13653. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, checkNil bool, canChange bool,
  13654. d *Decoder) (_ map[float32]uint32, changed bool) {
  13655. dd := d.d
  13656. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13657. if checkNil && dd.TryDecodeAsNil() {
  13658. if v != nil {
  13659. changed = true
  13660. }
  13661. return nil, changed
  13662. }
  13663. containerLen := dd.ReadMapStart()
  13664. if canChange && v == nil {
  13665. if containerLen > 0 {
  13666. v = make(map[float32]uint32, containerLen)
  13667. } else {
  13668. v = make(map[float32]uint32) // supports indefinite-length, etc
  13669. }
  13670. changed = true
  13671. }
  13672. if containerLen > 0 {
  13673. for j := 0; j < containerLen; j++ {
  13674. mk := float32(dd.DecodeFloat(true))
  13675. mv := v[mk]
  13676. mv = uint32(dd.DecodeUint(32))
  13677. if v != nil {
  13678. v[mk] = mv
  13679. }
  13680. }
  13681. } else if containerLen < 0 {
  13682. for j := 0; !dd.CheckBreak(); j++ {
  13683. if j > 0 {
  13684. dd.ReadMapEntrySeparator()
  13685. }
  13686. mk := float32(dd.DecodeFloat(true))
  13687. dd.ReadMapKVSeparator()
  13688. mv := v[mk]
  13689. mv = uint32(dd.DecodeUint(32))
  13690. if v != nil {
  13691. v[mk] = mv
  13692. }
  13693. }
  13694. dd.ReadMapEnd()
  13695. }
  13696. return v, changed
  13697. }
  13698. func (f decFnInfo) fastpathDecMapFloat32Uint64R(rv reflect.Value) {
  13699. if rv.CanAddr() {
  13700. vp := rv.Addr().Interface().(*map[float32]uint64)
  13701. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  13702. if changed {
  13703. *vp = v
  13704. }
  13705. } else {
  13706. v := rv.Interface().(map[float32]uint64)
  13707. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  13708. }
  13709. }
  13710. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, checkNil bool, d *Decoder) {
  13711. v, changed := f.DecMapFloat32Uint64V(*vp, checkNil, true, d)
  13712. if changed {
  13713. *vp = v
  13714. }
  13715. }
  13716. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, checkNil bool, canChange bool,
  13717. d *Decoder) (_ map[float32]uint64, changed bool) {
  13718. dd := d.d
  13719. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13720. if checkNil && dd.TryDecodeAsNil() {
  13721. if v != nil {
  13722. changed = true
  13723. }
  13724. return nil, changed
  13725. }
  13726. containerLen := dd.ReadMapStart()
  13727. if canChange && v == nil {
  13728. if containerLen > 0 {
  13729. v = make(map[float32]uint64, containerLen)
  13730. } else {
  13731. v = make(map[float32]uint64) // supports indefinite-length, etc
  13732. }
  13733. changed = true
  13734. }
  13735. if containerLen > 0 {
  13736. for j := 0; j < containerLen; j++ {
  13737. mk := float32(dd.DecodeFloat(true))
  13738. mv := v[mk]
  13739. mv = dd.DecodeUint(64)
  13740. if v != nil {
  13741. v[mk] = mv
  13742. }
  13743. }
  13744. } else if containerLen < 0 {
  13745. for j := 0; !dd.CheckBreak(); j++ {
  13746. if j > 0 {
  13747. dd.ReadMapEntrySeparator()
  13748. }
  13749. mk := float32(dd.DecodeFloat(true))
  13750. dd.ReadMapKVSeparator()
  13751. mv := v[mk]
  13752. mv = dd.DecodeUint(64)
  13753. if v != nil {
  13754. v[mk] = mv
  13755. }
  13756. }
  13757. dd.ReadMapEnd()
  13758. }
  13759. return v, changed
  13760. }
  13761. func (f decFnInfo) fastpathDecMapFloat32IntR(rv reflect.Value) {
  13762. if rv.CanAddr() {
  13763. vp := rv.Addr().Interface().(*map[float32]int)
  13764. v, changed := fastpathTV.DecMapFloat32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  13765. if changed {
  13766. *vp = v
  13767. }
  13768. } else {
  13769. v := rv.Interface().(map[float32]int)
  13770. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, f.d)
  13771. }
  13772. }
  13773. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, checkNil bool, d *Decoder) {
  13774. v, changed := f.DecMapFloat32IntV(*vp, checkNil, true, d)
  13775. if changed {
  13776. *vp = v
  13777. }
  13778. }
  13779. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, checkNil bool, canChange bool,
  13780. d *Decoder) (_ map[float32]int, changed bool) {
  13781. dd := d.d
  13782. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13783. if checkNil && dd.TryDecodeAsNil() {
  13784. if v != nil {
  13785. changed = true
  13786. }
  13787. return nil, changed
  13788. }
  13789. containerLen := dd.ReadMapStart()
  13790. if canChange && v == nil {
  13791. if containerLen > 0 {
  13792. v = make(map[float32]int, containerLen)
  13793. } else {
  13794. v = make(map[float32]int) // supports indefinite-length, etc
  13795. }
  13796. changed = true
  13797. }
  13798. if containerLen > 0 {
  13799. for j := 0; j < containerLen; j++ {
  13800. mk := float32(dd.DecodeFloat(true))
  13801. mv := v[mk]
  13802. mv = int(dd.DecodeInt(intBitsize))
  13803. if v != nil {
  13804. v[mk] = mv
  13805. }
  13806. }
  13807. } else if containerLen < 0 {
  13808. for j := 0; !dd.CheckBreak(); j++ {
  13809. if j > 0 {
  13810. dd.ReadMapEntrySeparator()
  13811. }
  13812. mk := float32(dd.DecodeFloat(true))
  13813. dd.ReadMapKVSeparator()
  13814. mv := v[mk]
  13815. mv = int(dd.DecodeInt(intBitsize))
  13816. if v != nil {
  13817. v[mk] = mv
  13818. }
  13819. }
  13820. dd.ReadMapEnd()
  13821. }
  13822. return v, changed
  13823. }
  13824. func (f decFnInfo) fastpathDecMapFloat32Int8R(rv reflect.Value) {
  13825. if rv.CanAddr() {
  13826. vp := rv.Addr().Interface().(*map[float32]int8)
  13827. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  13828. if changed {
  13829. *vp = v
  13830. }
  13831. } else {
  13832. v := rv.Interface().(map[float32]int8)
  13833. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, f.d)
  13834. }
  13835. }
  13836. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, checkNil bool, d *Decoder) {
  13837. v, changed := f.DecMapFloat32Int8V(*vp, checkNil, true, d)
  13838. if changed {
  13839. *vp = v
  13840. }
  13841. }
  13842. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, checkNil bool, canChange bool,
  13843. d *Decoder) (_ map[float32]int8, changed bool) {
  13844. dd := d.d
  13845. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13846. if checkNil && dd.TryDecodeAsNil() {
  13847. if v != nil {
  13848. changed = true
  13849. }
  13850. return nil, changed
  13851. }
  13852. containerLen := dd.ReadMapStart()
  13853. if canChange && v == nil {
  13854. if containerLen > 0 {
  13855. v = make(map[float32]int8, containerLen)
  13856. } else {
  13857. v = make(map[float32]int8) // supports indefinite-length, etc
  13858. }
  13859. changed = true
  13860. }
  13861. if containerLen > 0 {
  13862. for j := 0; j < containerLen; j++ {
  13863. mk := float32(dd.DecodeFloat(true))
  13864. mv := v[mk]
  13865. mv = int8(dd.DecodeInt(8))
  13866. if v != nil {
  13867. v[mk] = mv
  13868. }
  13869. }
  13870. } else if containerLen < 0 {
  13871. for j := 0; !dd.CheckBreak(); j++ {
  13872. if j > 0 {
  13873. dd.ReadMapEntrySeparator()
  13874. }
  13875. mk := float32(dd.DecodeFloat(true))
  13876. dd.ReadMapKVSeparator()
  13877. mv := v[mk]
  13878. mv = int8(dd.DecodeInt(8))
  13879. if v != nil {
  13880. v[mk] = mv
  13881. }
  13882. }
  13883. dd.ReadMapEnd()
  13884. }
  13885. return v, changed
  13886. }
  13887. func (f decFnInfo) fastpathDecMapFloat32Int16R(rv reflect.Value) {
  13888. if rv.CanAddr() {
  13889. vp := rv.Addr().Interface().(*map[float32]int16)
  13890. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  13891. if changed {
  13892. *vp = v
  13893. }
  13894. } else {
  13895. v := rv.Interface().(map[float32]int16)
  13896. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, f.d)
  13897. }
  13898. }
  13899. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, checkNil bool, d *Decoder) {
  13900. v, changed := f.DecMapFloat32Int16V(*vp, checkNil, true, d)
  13901. if changed {
  13902. *vp = v
  13903. }
  13904. }
  13905. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, checkNil bool, canChange bool,
  13906. d *Decoder) (_ map[float32]int16, changed bool) {
  13907. dd := d.d
  13908. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13909. if checkNil && dd.TryDecodeAsNil() {
  13910. if v != nil {
  13911. changed = true
  13912. }
  13913. return nil, changed
  13914. }
  13915. containerLen := dd.ReadMapStart()
  13916. if canChange && v == nil {
  13917. if containerLen > 0 {
  13918. v = make(map[float32]int16, containerLen)
  13919. } else {
  13920. v = make(map[float32]int16) // supports indefinite-length, etc
  13921. }
  13922. changed = true
  13923. }
  13924. if containerLen > 0 {
  13925. for j := 0; j < containerLen; j++ {
  13926. mk := float32(dd.DecodeFloat(true))
  13927. mv := v[mk]
  13928. mv = int16(dd.DecodeInt(16))
  13929. if v != nil {
  13930. v[mk] = mv
  13931. }
  13932. }
  13933. } else if containerLen < 0 {
  13934. for j := 0; !dd.CheckBreak(); j++ {
  13935. if j > 0 {
  13936. dd.ReadMapEntrySeparator()
  13937. }
  13938. mk := float32(dd.DecodeFloat(true))
  13939. dd.ReadMapKVSeparator()
  13940. mv := v[mk]
  13941. mv = int16(dd.DecodeInt(16))
  13942. if v != nil {
  13943. v[mk] = mv
  13944. }
  13945. }
  13946. dd.ReadMapEnd()
  13947. }
  13948. return v, changed
  13949. }
  13950. func (f decFnInfo) fastpathDecMapFloat32Int32R(rv reflect.Value) {
  13951. if rv.CanAddr() {
  13952. vp := rv.Addr().Interface().(*map[float32]int32)
  13953. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  13954. if changed {
  13955. *vp = v
  13956. }
  13957. } else {
  13958. v := rv.Interface().(map[float32]int32)
  13959. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, f.d)
  13960. }
  13961. }
  13962. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, checkNil bool, d *Decoder) {
  13963. v, changed := f.DecMapFloat32Int32V(*vp, checkNil, true, d)
  13964. if changed {
  13965. *vp = v
  13966. }
  13967. }
  13968. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, checkNil bool, canChange bool,
  13969. d *Decoder) (_ map[float32]int32, changed bool) {
  13970. dd := d.d
  13971. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13972. if checkNil && dd.TryDecodeAsNil() {
  13973. if v != nil {
  13974. changed = true
  13975. }
  13976. return nil, changed
  13977. }
  13978. containerLen := dd.ReadMapStart()
  13979. if canChange && v == nil {
  13980. if containerLen > 0 {
  13981. v = make(map[float32]int32, containerLen)
  13982. } else {
  13983. v = make(map[float32]int32) // supports indefinite-length, etc
  13984. }
  13985. changed = true
  13986. }
  13987. if containerLen > 0 {
  13988. for j := 0; j < containerLen; j++ {
  13989. mk := float32(dd.DecodeFloat(true))
  13990. mv := v[mk]
  13991. mv = int32(dd.DecodeInt(32))
  13992. if v != nil {
  13993. v[mk] = mv
  13994. }
  13995. }
  13996. } else if containerLen < 0 {
  13997. for j := 0; !dd.CheckBreak(); j++ {
  13998. if j > 0 {
  13999. dd.ReadMapEntrySeparator()
  14000. }
  14001. mk := float32(dd.DecodeFloat(true))
  14002. dd.ReadMapKVSeparator()
  14003. mv := v[mk]
  14004. mv = int32(dd.DecodeInt(32))
  14005. if v != nil {
  14006. v[mk] = mv
  14007. }
  14008. }
  14009. dd.ReadMapEnd()
  14010. }
  14011. return v, changed
  14012. }
  14013. func (f decFnInfo) fastpathDecMapFloat32Int64R(rv reflect.Value) {
  14014. if rv.CanAddr() {
  14015. vp := rv.Addr().Interface().(*map[float32]int64)
  14016. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  14017. if changed {
  14018. *vp = v
  14019. }
  14020. } else {
  14021. v := rv.Interface().(map[float32]int64)
  14022. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, f.d)
  14023. }
  14024. }
  14025. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, checkNil bool, d *Decoder) {
  14026. v, changed := f.DecMapFloat32Int64V(*vp, checkNil, true, d)
  14027. if changed {
  14028. *vp = v
  14029. }
  14030. }
  14031. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, checkNil bool, canChange bool,
  14032. d *Decoder) (_ map[float32]int64, changed bool) {
  14033. dd := d.d
  14034. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14035. if checkNil && dd.TryDecodeAsNil() {
  14036. if v != nil {
  14037. changed = true
  14038. }
  14039. return nil, changed
  14040. }
  14041. containerLen := dd.ReadMapStart()
  14042. if canChange && v == nil {
  14043. if containerLen > 0 {
  14044. v = make(map[float32]int64, containerLen)
  14045. } else {
  14046. v = make(map[float32]int64) // supports indefinite-length, etc
  14047. }
  14048. changed = true
  14049. }
  14050. if containerLen > 0 {
  14051. for j := 0; j < containerLen; j++ {
  14052. mk := float32(dd.DecodeFloat(true))
  14053. mv := v[mk]
  14054. mv = dd.DecodeInt(64)
  14055. if v != nil {
  14056. v[mk] = mv
  14057. }
  14058. }
  14059. } else if containerLen < 0 {
  14060. for j := 0; !dd.CheckBreak(); j++ {
  14061. if j > 0 {
  14062. dd.ReadMapEntrySeparator()
  14063. }
  14064. mk := float32(dd.DecodeFloat(true))
  14065. dd.ReadMapKVSeparator()
  14066. mv := v[mk]
  14067. mv = dd.DecodeInt(64)
  14068. if v != nil {
  14069. v[mk] = mv
  14070. }
  14071. }
  14072. dd.ReadMapEnd()
  14073. }
  14074. return v, changed
  14075. }
  14076. func (f decFnInfo) fastpathDecMapFloat32Float32R(rv reflect.Value) {
  14077. if rv.CanAddr() {
  14078. vp := rv.Addr().Interface().(*map[float32]float32)
  14079. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  14080. if changed {
  14081. *vp = v
  14082. }
  14083. } else {
  14084. v := rv.Interface().(map[float32]float32)
  14085. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, f.d)
  14086. }
  14087. }
  14088. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, checkNil bool, d *Decoder) {
  14089. v, changed := f.DecMapFloat32Float32V(*vp, checkNil, true, d)
  14090. if changed {
  14091. *vp = v
  14092. }
  14093. }
  14094. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, checkNil bool, canChange bool,
  14095. d *Decoder) (_ map[float32]float32, changed bool) {
  14096. dd := d.d
  14097. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14098. if checkNil && dd.TryDecodeAsNil() {
  14099. if v != nil {
  14100. changed = true
  14101. }
  14102. return nil, changed
  14103. }
  14104. containerLen := dd.ReadMapStart()
  14105. if canChange && v == nil {
  14106. if containerLen > 0 {
  14107. v = make(map[float32]float32, containerLen)
  14108. } else {
  14109. v = make(map[float32]float32) // supports indefinite-length, etc
  14110. }
  14111. changed = true
  14112. }
  14113. if containerLen > 0 {
  14114. for j := 0; j < containerLen; j++ {
  14115. mk := float32(dd.DecodeFloat(true))
  14116. mv := v[mk]
  14117. mv = float32(dd.DecodeFloat(true))
  14118. if v != nil {
  14119. v[mk] = mv
  14120. }
  14121. }
  14122. } else if containerLen < 0 {
  14123. for j := 0; !dd.CheckBreak(); j++ {
  14124. if j > 0 {
  14125. dd.ReadMapEntrySeparator()
  14126. }
  14127. mk := float32(dd.DecodeFloat(true))
  14128. dd.ReadMapKVSeparator()
  14129. mv := v[mk]
  14130. mv = float32(dd.DecodeFloat(true))
  14131. if v != nil {
  14132. v[mk] = mv
  14133. }
  14134. }
  14135. dd.ReadMapEnd()
  14136. }
  14137. return v, changed
  14138. }
  14139. func (f decFnInfo) fastpathDecMapFloat32Float64R(rv reflect.Value) {
  14140. if rv.CanAddr() {
  14141. vp := rv.Addr().Interface().(*map[float32]float64)
  14142. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  14143. if changed {
  14144. *vp = v
  14145. }
  14146. } else {
  14147. v := rv.Interface().(map[float32]float64)
  14148. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, f.d)
  14149. }
  14150. }
  14151. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, checkNil bool, d *Decoder) {
  14152. v, changed := f.DecMapFloat32Float64V(*vp, checkNil, true, d)
  14153. if changed {
  14154. *vp = v
  14155. }
  14156. }
  14157. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, checkNil bool, canChange bool,
  14158. d *Decoder) (_ map[float32]float64, changed bool) {
  14159. dd := d.d
  14160. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14161. if checkNil && dd.TryDecodeAsNil() {
  14162. if v != nil {
  14163. changed = true
  14164. }
  14165. return nil, changed
  14166. }
  14167. containerLen := dd.ReadMapStart()
  14168. if canChange && v == nil {
  14169. if containerLen > 0 {
  14170. v = make(map[float32]float64, containerLen)
  14171. } else {
  14172. v = make(map[float32]float64) // supports indefinite-length, etc
  14173. }
  14174. changed = true
  14175. }
  14176. if containerLen > 0 {
  14177. for j := 0; j < containerLen; j++ {
  14178. mk := float32(dd.DecodeFloat(true))
  14179. mv := v[mk]
  14180. mv = dd.DecodeFloat(false)
  14181. if v != nil {
  14182. v[mk] = mv
  14183. }
  14184. }
  14185. } else if containerLen < 0 {
  14186. for j := 0; !dd.CheckBreak(); j++ {
  14187. if j > 0 {
  14188. dd.ReadMapEntrySeparator()
  14189. }
  14190. mk := float32(dd.DecodeFloat(true))
  14191. dd.ReadMapKVSeparator()
  14192. mv := v[mk]
  14193. mv = dd.DecodeFloat(false)
  14194. if v != nil {
  14195. v[mk] = mv
  14196. }
  14197. }
  14198. dd.ReadMapEnd()
  14199. }
  14200. return v, changed
  14201. }
  14202. func (f decFnInfo) fastpathDecMapFloat32BoolR(rv reflect.Value) {
  14203. if rv.CanAddr() {
  14204. vp := rv.Addr().Interface().(*map[float32]bool)
  14205. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  14206. if changed {
  14207. *vp = v
  14208. }
  14209. } else {
  14210. v := rv.Interface().(map[float32]bool)
  14211. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, f.d)
  14212. }
  14213. }
  14214. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, checkNil bool, d *Decoder) {
  14215. v, changed := f.DecMapFloat32BoolV(*vp, checkNil, true, d)
  14216. if changed {
  14217. *vp = v
  14218. }
  14219. }
  14220. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, checkNil bool, canChange bool,
  14221. d *Decoder) (_ map[float32]bool, changed bool) {
  14222. dd := d.d
  14223. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14224. if checkNil && dd.TryDecodeAsNil() {
  14225. if v != nil {
  14226. changed = true
  14227. }
  14228. return nil, changed
  14229. }
  14230. containerLen := dd.ReadMapStart()
  14231. if canChange && v == nil {
  14232. if containerLen > 0 {
  14233. v = make(map[float32]bool, containerLen)
  14234. } else {
  14235. v = make(map[float32]bool) // supports indefinite-length, etc
  14236. }
  14237. changed = true
  14238. }
  14239. if containerLen > 0 {
  14240. for j := 0; j < containerLen; j++ {
  14241. mk := float32(dd.DecodeFloat(true))
  14242. mv := v[mk]
  14243. mv = dd.DecodeBool()
  14244. if v != nil {
  14245. v[mk] = mv
  14246. }
  14247. }
  14248. } else if containerLen < 0 {
  14249. for j := 0; !dd.CheckBreak(); j++ {
  14250. if j > 0 {
  14251. dd.ReadMapEntrySeparator()
  14252. }
  14253. mk := float32(dd.DecodeFloat(true))
  14254. dd.ReadMapKVSeparator()
  14255. mv := v[mk]
  14256. mv = dd.DecodeBool()
  14257. if v != nil {
  14258. v[mk] = mv
  14259. }
  14260. }
  14261. dd.ReadMapEnd()
  14262. }
  14263. return v, changed
  14264. }
  14265. func (f decFnInfo) fastpathDecMapFloat64IntfR(rv reflect.Value) {
  14266. if rv.CanAddr() {
  14267. vp := rv.Addr().Interface().(*map[float64]interface{})
  14268. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  14269. if changed {
  14270. *vp = v
  14271. }
  14272. } else {
  14273. v := rv.Interface().(map[float64]interface{})
  14274. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, f.d)
  14275. }
  14276. }
  14277. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, checkNil bool, d *Decoder) {
  14278. v, changed := f.DecMapFloat64IntfV(*vp, checkNil, true, d)
  14279. if changed {
  14280. *vp = v
  14281. }
  14282. }
  14283. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, checkNil bool, canChange bool,
  14284. d *Decoder) (_ map[float64]interface{}, changed bool) {
  14285. dd := d.d
  14286. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14287. if checkNil && dd.TryDecodeAsNil() {
  14288. if v != nil {
  14289. changed = true
  14290. }
  14291. return nil, changed
  14292. }
  14293. containerLen := dd.ReadMapStart()
  14294. if canChange && v == nil {
  14295. if containerLen > 0 {
  14296. v = make(map[float64]interface{}, containerLen)
  14297. } else {
  14298. v = make(map[float64]interface{}) // supports indefinite-length, etc
  14299. }
  14300. changed = true
  14301. }
  14302. if containerLen > 0 {
  14303. for j := 0; j < containerLen; j++ {
  14304. mk := dd.DecodeFloat(false)
  14305. mv := v[mk]
  14306. d.decode(&mv)
  14307. if v != nil {
  14308. v[mk] = mv
  14309. }
  14310. }
  14311. } else if containerLen < 0 {
  14312. for j := 0; !dd.CheckBreak(); j++ {
  14313. if j > 0 {
  14314. dd.ReadMapEntrySeparator()
  14315. }
  14316. mk := dd.DecodeFloat(false)
  14317. dd.ReadMapKVSeparator()
  14318. mv := v[mk]
  14319. d.decode(&mv)
  14320. if v != nil {
  14321. v[mk] = mv
  14322. }
  14323. }
  14324. dd.ReadMapEnd()
  14325. }
  14326. return v, changed
  14327. }
  14328. func (f decFnInfo) fastpathDecMapFloat64StringR(rv reflect.Value) {
  14329. if rv.CanAddr() {
  14330. vp := rv.Addr().Interface().(*map[float64]string)
  14331. v, changed := fastpathTV.DecMapFloat64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  14332. if changed {
  14333. *vp = v
  14334. }
  14335. } else {
  14336. v := rv.Interface().(map[float64]string)
  14337. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, f.d)
  14338. }
  14339. }
  14340. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, checkNil bool, d *Decoder) {
  14341. v, changed := f.DecMapFloat64StringV(*vp, checkNil, true, d)
  14342. if changed {
  14343. *vp = v
  14344. }
  14345. }
  14346. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, checkNil bool, canChange bool,
  14347. d *Decoder) (_ map[float64]string, changed bool) {
  14348. dd := d.d
  14349. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14350. if checkNil && dd.TryDecodeAsNil() {
  14351. if v != nil {
  14352. changed = true
  14353. }
  14354. return nil, changed
  14355. }
  14356. containerLen := dd.ReadMapStart()
  14357. if canChange && v == nil {
  14358. if containerLen > 0 {
  14359. v = make(map[float64]string, containerLen)
  14360. } else {
  14361. v = make(map[float64]string) // supports indefinite-length, etc
  14362. }
  14363. changed = true
  14364. }
  14365. if containerLen > 0 {
  14366. for j := 0; j < containerLen; j++ {
  14367. mk := dd.DecodeFloat(false)
  14368. mv := v[mk]
  14369. mv = dd.DecodeString()
  14370. if v != nil {
  14371. v[mk] = mv
  14372. }
  14373. }
  14374. } else if containerLen < 0 {
  14375. for j := 0; !dd.CheckBreak(); j++ {
  14376. if j > 0 {
  14377. dd.ReadMapEntrySeparator()
  14378. }
  14379. mk := dd.DecodeFloat(false)
  14380. dd.ReadMapKVSeparator()
  14381. mv := v[mk]
  14382. mv = dd.DecodeString()
  14383. if v != nil {
  14384. v[mk] = mv
  14385. }
  14386. }
  14387. dd.ReadMapEnd()
  14388. }
  14389. return v, changed
  14390. }
  14391. func (f decFnInfo) fastpathDecMapFloat64UintR(rv reflect.Value) {
  14392. if rv.CanAddr() {
  14393. vp := rv.Addr().Interface().(*map[float64]uint)
  14394. v, changed := fastpathTV.DecMapFloat64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  14395. if changed {
  14396. *vp = v
  14397. }
  14398. } else {
  14399. v := rv.Interface().(map[float64]uint)
  14400. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, f.d)
  14401. }
  14402. }
  14403. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, checkNil bool, d *Decoder) {
  14404. v, changed := f.DecMapFloat64UintV(*vp, checkNil, true, d)
  14405. if changed {
  14406. *vp = v
  14407. }
  14408. }
  14409. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, checkNil bool, canChange bool,
  14410. d *Decoder) (_ map[float64]uint, changed bool) {
  14411. dd := d.d
  14412. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14413. if checkNil && dd.TryDecodeAsNil() {
  14414. if v != nil {
  14415. changed = true
  14416. }
  14417. return nil, changed
  14418. }
  14419. containerLen := dd.ReadMapStart()
  14420. if canChange && v == nil {
  14421. if containerLen > 0 {
  14422. v = make(map[float64]uint, containerLen)
  14423. } else {
  14424. v = make(map[float64]uint) // supports indefinite-length, etc
  14425. }
  14426. changed = true
  14427. }
  14428. if containerLen > 0 {
  14429. for j := 0; j < containerLen; j++ {
  14430. mk := dd.DecodeFloat(false)
  14431. mv := v[mk]
  14432. mv = uint(dd.DecodeUint(uintBitsize))
  14433. if v != nil {
  14434. v[mk] = mv
  14435. }
  14436. }
  14437. } else if containerLen < 0 {
  14438. for j := 0; !dd.CheckBreak(); j++ {
  14439. if j > 0 {
  14440. dd.ReadMapEntrySeparator()
  14441. }
  14442. mk := dd.DecodeFloat(false)
  14443. dd.ReadMapKVSeparator()
  14444. mv := v[mk]
  14445. mv = uint(dd.DecodeUint(uintBitsize))
  14446. if v != nil {
  14447. v[mk] = mv
  14448. }
  14449. }
  14450. dd.ReadMapEnd()
  14451. }
  14452. return v, changed
  14453. }
  14454. func (f decFnInfo) fastpathDecMapFloat64Uint8R(rv reflect.Value) {
  14455. if rv.CanAddr() {
  14456. vp := rv.Addr().Interface().(*map[float64]uint8)
  14457. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  14458. if changed {
  14459. *vp = v
  14460. }
  14461. } else {
  14462. v := rv.Interface().(map[float64]uint8)
  14463. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  14464. }
  14465. }
  14466. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, checkNil bool, d *Decoder) {
  14467. v, changed := f.DecMapFloat64Uint8V(*vp, checkNil, true, d)
  14468. if changed {
  14469. *vp = v
  14470. }
  14471. }
  14472. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, checkNil bool, canChange bool,
  14473. d *Decoder) (_ map[float64]uint8, changed bool) {
  14474. dd := d.d
  14475. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14476. if checkNil && dd.TryDecodeAsNil() {
  14477. if v != nil {
  14478. changed = true
  14479. }
  14480. return nil, changed
  14481. }
  14482. containerLen := dd.ReadMapStart()
  14483. if canChange && v == nil {
  14484. if containerLen > 0 {
  14485. v = make(map[float64]uint8, containerLen)
  14486. } else {
  14487. v = make(map[float64]uint8) // supports indefinite-length, etc
  14488. }
  14489. changed = true
  14490. }
  14491. if containerLen > 0 {
  14492. for j := 0; j < containerLen; j++ {
  14493. mk := dd.DecodeFloat(false)
  14494. mv := v[mk]
  14495. mv = uint8(dd.DecodeUint(8))
  14496. if v != nil {
  14497. v[mk] = mv
  14498. }
  14499. }
  14500. } else if containerLen < 0 {
  14501. for j := 0; !dd.CheckBreak(); j++ {
  14502. if j > 0 {
  14503. dd.ReadMapEntrySeparator()
  14504. }
  14505. mk := dd.DecodeFloat(false)
  14506. dd.ReadMapKVSeparator()
  14507. mv := v[mk]
  14508. mv = uint8(dd.DecodeUint(8))
  14509. if v != nil {
  14510. v[mk] = mv
  14511. }
  14512. }
  14513. dd.ReadMapEnd()
  14514. }
  14515. return v, changed
  14516. }
  14517. func (f decFnInfo) fastpathDecMapFloat64Uint16R(rv reflect.Value) {
  14518. if rv.CanAddr() {
  14519. vp := rv.Addr().Interface().(*map[float64]uint16)
  14520. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  14521. if changed {
  14522. *vp = v
  14523. }
  14524. } else {
  14525. v := rv.Interface().(map[float64]uint16)
  14526. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  14527. }
  14528. }
  14529. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, checkNil bool, d *Decoder) {
  14530. v, changed := f.DecMapFloat64Uint16V(*vp, checkNil, true, d)
  14531. if changed {
  14532. *vp = v
  14533. }
  14534. }
  14535. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, checkNil bool, canChange bool,
  14536. d *Decoder) (_ map[float64]uint16, changed bool) {
  14537. dd := d.d
  14538. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14539. if checkNil && dd.TryDecodeAsNil() {
  14540. if v != nil {
  14541. changed = true
  14542. }
  14543. return nil, changed
  14544. }
  14545. containerLen := dd.ReadMapStart()
  14546. if canChange && v == nil {
  14547. if containerLen > 0 {
  14548. v = make(map[float64]uint16, containerLen)
  14549. } else {
  14550. v = make(map[float64]uint16) // supports indefinite-length, etc
  14551. }
  14552. changed = true
  14553. }
  14554. if containerLen > 0 {
  14555. for j := 0; j < containerLen; j++ {
  14556. mk := dd.DecodeFloat(false)
  14557. mv := v[mk]
  14558. mv = uint16(dd.DecodeUint(16))
  14559. if v != nil {
  14560. v[mk] = mv
  14561. }
  14562. }
  14563. } else if containerLen < 0 {
  14564. for j := 0; !dd.CheckBreak(); j++ {
  14565. if j > 0 {
  14566. dd.ReadMapEntrySeparator()
  14567. }
  14568. mk := dd.DecodeFloat(false)
  14569. dd.ReadMapKVSeparator()
  14570. mv := v[mk]
  14571. mv = uint16(dd.DecodeUint(16))
  14572. if v != nil {
  14573. v[mk] = mv
  14574. }
  14575. }
  14576. dd.ReadMapEnd()
  14577. }
  14578. return v, changed
  14579. }
  14580. func (f decFnInfo) fastpathDecMapFloat64Uint32R(rv reflect.Value) {
  14581. if rv.CanAddr() {
  14582. vp := rv.Addr().Interface().(*map[float64]uint32)
  14583. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  14584. if changed {
  14585. *vp = v
  14586. }
  14587. } else {
  14588. v := rv.Interface().(map[float64]uint32)
  14589. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  14590. }
  14591. }
  14592. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, checkNil bool, d *Decoder) {
  14593. v, changed := f.DecMapFloat64Uint32V(*vp, checkNil, true, d)
  14594. if changed {
  14595. *vp = v
  14596. }
  14597. }
  14598. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, checkNil bool, canChange bool,
  14599. d *Decoder) (_ map[float64]uint32, changed bool) {
  14600. dd := d.d
  14601. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14602. if checkNil && dd.TryDecodeAsNil() {
  14603. if v != nil {
  14604. changed = true
  14605. }
  14606. return nil, changed
  14607. }
  14608. containerLen := dd.ReadMapStart()
  14609. if canChange && v == nil {
  14610. if containerLen > 0 {
  14611. v = make(map[float64]uint32, containerLen)
  14612. } else {
  14613. v = make(map[float64]uint32) // supports indefinite-length, etc
  14614. }
  14615. changed = true
  14616. }
  14617. if containerLen > 0 {
  14618. for j := 0; j < containerLen; j++ {
  14619. mk := dd.DecodeFloat(false)
  14620. mv := v[mk]
  14621. mv = uint32(dd.DecodeUint(32))
  14622. if v != nil {
  14623. v[mk] = mv
  14624. }
  14625. }
  14626. } else if containerLen < 0 {
  14627. for j := 0; !dd.CheckBreak(); j++ {
  14628. if j > 0 {
  14629. dd.ReadMapEntrySeparator()
  14630. }
  14631. mk := dd.DecodeFloat(false)
  14632. dd.ReadMapKVSeparator()
  14633. mv := v[mk]
  14634. mv = uint32(dd.DecodeUint(32))
  14635. if v != nil {
  14636. v[mk] = mv
  14637. }
  14638. }
  14639. dd.ReadMapEnd()
  14640. }
  14641. return v, changed
  14642. }
  14643. func (f decFnInfo) fastpathDecMapFloat64Uint64R(rv reflect.Value) {
  14644. if rv.CanAddr() {
  14645. vp := rv.Addr().Interface().(*map[float64]uint64)
  14646. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  14647. if changed {
  14648. *vp = v
  14649. }
  14650. } else {
  14651. v := rv.Interface().(map[float64]uint64)
  14652. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  14653. }
  14654. }
  14655. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, checkNil bool, d *Decoder) {
  14656. v, changed := f.DecMapFloat64Uint64V(*vp, checkNil, true, d)
  14657. if changed {
  14658. *vp = v
  14659. }
  14660. }
  14661. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, checkNil bool, canChange bool,
  14662. d *Decoder) (_ map[float64]uint64, changed bool) {
  14663. dd := d.d
  14664. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14665. if checkNil && dd.TryDecodeAsNil() {
  14666. if v != nil {
  14667. changed = true
  14668. }
  14669. return nil, changed
  14670. }
  14671. containerLen := dd.ReadMapStart()
  14672. if canChange && v == nil {
  14673. if containerLen > 0 {
  14674. v = make(map[float64]uint64, containerLen)
  14675. } else {
  14676. v = make(map[float64]uint64) // supports indefinite-length, etc
  14677. }
  14678. changed = true
  14679. }
  14680. if containerLen > 0 {
  14681. for j := 0; j < containerLen; j++ {
  14682. mk := dd.DecodeFloat(false)
  14683. mv := v[mk]
  14684. mv = dd.DecodeUint(64)
  14685. if v != nil {
  14686. v[mk] = mv
  14687. }
  14688. }
  14689. } else if containerLen < 0 {
  14690. for j := 0; !dd.CheckBreak(); j++ {
  14691. if j > 0 {
  14692. dd.ReadMapEntrySeparator()
  14693. }
  14694. mk := dd.DecodeFloat(false)
  14695. dd.ReadMapKVSeparator()
  14696. mv := v[mk]
  14697. mv = dd.DecodeUint(64)
  14698. if v != nil {
  14699. v[mk] = mv
  14700. }
  14701. }
  14702. dd.ReadMapEnd()
  14703. }
  14704. return v, changed
  14705. }
  14706. func (f decFnInfo) fastpathDecMapFloat64IntR(rv reflect.Value) {
  14707. if rv.CanAddr() {
  14708. vp := rv.Addr().Interface().(*map[float64]int)
  14709. v, changed := fastpathTV.DecMapFloat64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  14710. if changed {
  14711. *vp = v
  14712. }
  14713. } else {
  14714. v := rv.Interface().(map[float64]int)
  14715. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, f.d)
  14716. }
  14717. }
  14718. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, checkNil bool, d *Decoder) {
  14719. v, changed := f.DecMapFloat64IntV(*vp, checkNil, true, d)
  14720. if changed {
  14721. *vp = v
  14722. }
  14723. }
  14724. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, checkNil bool, canChange bool,
  14725. d *Decoder) (_ map[float64]int, changed bool) {
  14726. dd := d.d
  14727. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14728. if checkNil && dd.TryDecodeAsNil() {
  14729. if v != nil {
  14730. changed = true
  14731. }
  14732. return nil, changed
  14733. }
  14734. containerLen := dd.ReadMapStart()
  14735. if canChange && v == nil {
  14736. if containerLen > 0 {
  14737. v = make(map[float64]int, containerLen)
  14738. } else {
  14739. v = make(map[float64]int) // supports indefinite-length, etc
  14740. }
  14741. changed = true
  14742. }
  14743. if containerLen > 0 {
  14744. for j := 0; j < containerLen; j++ {
  14745. mk := dd.DecodeFloat(false)
  14746. mv := v[mk]
  14747. mv = int(dd.DecodeInt(intBitsize))
  14748. if v != nil {
  14749. v[mk] = mv
  14750. }
  14751. }
  14752. } else if containerLen < 0 {
  14753. for j := 0; !dd.CheckBreak(); j++ {
  14754. if j > 0 {
  14755. dd.ReadMapEntrySeparator()
  14756. }
  14757. mk := dd.DecodeFloat(false)
  14758. dd.ReadMapKVSeparator()
  14759. mv := v[mk]
  14760. mv = int(dd.DecodeInt(intBitsize))
  14761. if v != nil {
  14762. v[mk] = mv
  14763. }
  14764. }
  14765. dd.ReadMapEnd()
  14766. }
  14767. return v, changed
  14768. }
  14769. func (f decFnInfo) fastpathDecMapFloat64Int8R(rv reflect.Value) {
  14770. if rv.CanAddr() {
  14771. vp := rv.Addr().Interface().(*map[float64]int8)
  14772. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  14773. if changed {
  14774. *vp = v
  14775. }
  14776. } else {
  14777. v := rv.Interface().(map[float64]int8)
  14778. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, f.d)
  14779. }
  14780. }
  14781. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, checkNil bool, d *Decoder) {
  14782. v, changed := f.DecMapFloat64Int8V(*vp, checkNil, true, d)
  14783. if changed {
  14784. *vp = v
  14785. }
  14786. }
  14787. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, checkNil bool, canChange bool,
  14788. d *Decoder) (_ map[float64]int8, changed bool) {
  14789. dd := d.d
  14790. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14791. if checkNil && dd.TryDecodeAsNil() {
  14792. if v != nil {
  14793. changed = true
  14794. }
  14795. return nil, changed
  14796. }
  14797. containerLen := dd.ReadMapStart()
  14798. if canChange && v == nil {
  14799. if containerLen > 0 {
  14800. v = make(map[float64]int8, containerLen)
  14801. } else {
  14802. v = make(map[float64]int8) // supports indefinite-length, etc
  14803. }
  14804. changed = true
  14805. }
  14806. if containerLen > 0 {
  14807. for j := 0; j < containerLen; j++ {
  14808. mk := dd.DecodeFloat(false)
  14809. mv := v[mk]
  14810. mv = int8(dd.DecodeInt(8))
  14811. if v != nil {
  14812. v[mk] = mv
  14813. }
  14814. }
  14815. } else if containerLen < 0 {
  14816. for j := 0; !dd.CheckBreak(); j++ {
  14817. if j > 0 {
  14818. dd.ReadMapEntrySeparator()
  14819. }
  14820. mk := dd.DecodeFloat(false)
  14821. dd.ReadMapKVSeparator()
  14822. mv := v[mk]
  14823. mv = int8(dd.DecodeInt(8))
  14824. if v != nil {
  14825. v[mk] = mv
  14826. }
  14827. }
  14828. dd.ReadMapEnd()
  14829. }
  14830. return v, changed
  14831. }
  14832. func (f decFnInfo) fastpathDecMapFloat64Int16R(rv reflect.Value) {
  14833. if rv.CanAddr() {
  14834. vp := rv.Addr().Interface().(*map[float64]int16)
  14835. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  14836. if changed {
  14837. *vp = v
  14838. }
  14839. } else {
  14840. v := rv.Interface().(map[float64]int16)
  14841. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, f.d)
  14842. }
  14843. }
  14844. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, checkNil bool, d *Decoder) {
  14845. v, changed := f.DecMapFloat64Int16V(*vp, checkNil, true, d)
  14846. if changed {
  14847. *vp = v
  14848. }
  14849. }
  14850. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, checkNil bool, canChange bool,
  14851. d *Decoder) (_ map[float64]int16, changed bool) {
  14852. dd := d.d
  14853. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14854. if checkNil && dd.TryDecodeAsNil() {
  14855. if v != nil {
  14856. changed = true
  14857. }
  14858. return nil, changed
  14859. }
  14860. containerLen := dd.ReadMapStart()
  14861. if canChange && v == nil {
  14862. if containerLen > 0 {
  14863. v = make(map[float64]int16, containerLen)
  14864. } else {
  14865. v = make(map[float64]int16) // supports indefinite-length, etc
  14866. }
  14867. changed = true
  14868. }
  14869. if containerLen > 0 {
  14870. for j := 0; j < containerLen; j++ {
  14871. mk := dd.DecodeFloat(false)
  14872. mv := v[mk]
  14873. mv = int16(dd.DecodeInt(16))
  14874. if v != nil {
  14875. v[mk] = mv
  14876. }
  14877. }
  14878. } else if containerLen < 0 {
  14879. for j := 0; !dd.CheckBreak(); j++ {
  14880. if j > 0 {
  14881. dd.ReadMapEntrySeparator()
  14882. }
  14883. mk := dd.DecodeFloat(false)
  14884. dd.ReadMapKVSeparator()
  14885. mv := v[mk]
  14886. mv = int16(dd.DecodeInt(16))
  14887. if v != nil {
  14888. v[mk] = mv
  14889. }
  14890. }
  14891. dd.ReadMapEnd()
  14892. }
  14893. return v, changed
  14894. }
  14895. func (f decFnInfo) fastpathDecMapFloat64Int32R(rv reflect.Value) {
  14896. if rv.CanAddr() {
  14897. vp := rv.Addr().Interface().(*map[float64]int32)
  14898. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  14899. if changed {
  14900. *vp = v
  14901. }
  14902. } else {
  14903. v := rv.Interface().(map[float64]int32)
  14904. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, f.d)
  14905. }
  14906. }
  14907. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, checkNil bool, d *Decoder) {
  14908. v, changed := f.DecMapFloat64Int32V(*vp, checkNil, true, d)
  14909. if changed {
  14910. *vp = v
  14911. }
  14912. }
  14913. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, checkNil bool, canChange bool,
  14914. d *Decoder) (_ map[float64]int32, changed bool) {
  14915. dd := d.d
  14916. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14917. if checkNil && dd.TryDecodeAsNil() {
  14918. if v != nil {
  14919. changed = true
  14920. }
  14921. return nil, changed
  14922. }
  14923. containerLen := dd.ReadMapStart()
  14924. if canChange && v == nil {
  14925. if containerLen > 0 {
  14926. v = make(map[float64]int32, containerLen)
  14927. } else {
  14928. v = make(map[float64]int32) // supports indefinite-length, etc
  14929. }
  14930. changed = true
  14931. }
  14932. if containerLen > 0 {
  14933. for j := 0; j < containerLen; j++ {
  14934. mk := dd.DecodeFloat(false)
  14935. mv := v[mk]
  14936. mv = int32(dd.DecodeInt(32))
  14937. if v != nil {
  14938. v[mk] = mv
  14939. }
  14940. }
  14941. } else if containerLen < 0 {
  14942. for j := 0; !dd.CheckBreak(); j++ {
  14943. if j > 0 {
  14944. dd.ReadMapEntrySeparator()
  14945. }
  14946. mk := dd.DecodeFloat(false)
  14947. dd.ReadMapKVSeparator()
  14948. mv := v[mk]
  14949. mv = int32(dd.DecodeInt(32))
  14950. if v != nil {
  14951. v[mk] = mv
  14952. }
  14953. }
  14954. dd.ReadMapEnd()
  14955. }
  14956. return v, changed
  14957. }
  14958. func (f decFnInfo) fastpathDecMapFloat64Int64R(rv reflect.Value) {
  14959. if rv.CanAddr() {
  14960. vp := rv.Addr().Interface().(*map[float64]int64)
  14961. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  14962. if changed {
  14963. *vp = v
  14964. }
  14965. } else {
  14966. v := rv.Interface().(map[float64]int64)
  14967. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, f.d)
  14968. }
  14969. }
  14970. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, checkNil bool, d *Decoder) {
  14971. v, changed := f.DecMapFloat64Int64V(*vp, checkNil, true, d)
  14972. if changed {
  14973. *vp = v
  14974. }
  14975. }
  14976. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, checkNil bool, canChange bool,
  14977. d *Decoder) (_ map[float64]int64, changed bool) {
  14978. dd := d.d
  14979. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14980. if checkNil && dd.TryDecodeAsNil() {
  14981. if v != nil {
  14982. changed = true
  14983. }
  14984. return nil, changed
  14985. }
  14986. containerLen := dd.ReadMapStart()
  14987. if canChange && v == nil {
  14988. if containerLen > 0 {
  14989. v = make(map[float64]int64, containerLen)
  14990. } else {
  14991. v = make(map[float64]int64) // supports indefinite-length, etc
  14992. }
  14993. changed = true
  14994. }
  14995. if containerLen > 0 {
  14996. for j := 0; j < containerLen; j++ {
  14997. mk := dd.DecodeFloat(false)
  14998. mv := v[mk]
  14999. mv = dd.DecodeInt(64)
  15000. if v != nil {
  15001. v[mk] = mv
  15002. }
  15003. }
  15004. } else if containerLen < 0 {
  15005. for j := 0; !dd.CheckBreak(); j++ {
  15006. if j > 0 {
  15007. dd.ReadMapEntrySeparator()
  15008. }
  15009. mk := dd.DecodeFloat(false)
  15010. dd.ReadMapKVSeparator()
  15011. mv := v[mk]
  15012. mv = dd.DecodeInt(64)
  15013. if v != nil {
  15014. v[mk] = mv
  15015. }
  15016. }
  15017. dd.ReadMapEnd()
  15018. }
  15019. return v, changed
  15020. }
  15021. func (f decFnInfo) fastpathDecMapFloat64Float32R(rv reflect.Value) {
  15022. if rv.CanAddr() {
  15023. vp := rv.Addr().Interface().(*map[float64]float32)
  15024. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  15025. if changed {
  15026. *vp = v
  15027. }
  15028. } else {
  15029. v := rv.Interface().(map[float64]float32)
  15030. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, f.d)
  15031. }
  15032. }
  15033. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, checkNil bool, d *Decoder) {
  15034. v, changed := f.DecMapFloat64Float32V(*vp, checkNil, true, d)
  15035. if changed {
  15036. *vp = v
  15037. }
  15038. }
  15039. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, checkNil bool, canChange bool,
  15040. d *Decoder) (_ map[float64]float32, changed bool) {
  15041. dd := d.d
  15042. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15043. if checkNil && dd.TryDecodeAsNil() {
  15044. if v != nil {
  15045. changed = true
  15046. }
  15047. return nil, changed
  15048. }
  15049. containerLen := dd.ReadMapStart()
  15050. if canChange && v == nil {
  15051. if containerLen > 0 {
  15052. v = make(map[float64]float32, containerLen)
  15053. } else {
  15054. v = make(map[float64]float32) // supports indefinite-length, etc
  15055. }
  15056. changed = true
  15057. }
  15058. if containerLen > 0 {
  15059. for j := 0; j < containerLen; j++ {
  15060. mk := dd.DecodeFloat(false)
  15061. mv := v[mk]
  15062. mv = float32(dd.DecodeFloat(true))
  15063. if v != nil {
  15064. v[mk] = mv
  15065. }
  15066. }
  15067. } else if containerLen < 0 {
  15068. for j := 0; !dd.CheckBreak(); j++ {
  15069. if j > 0 {
  15070. dd.ReadMapEntrySeparator()
  15071. }
  15072. mk := dd.DecodeFloat(false)
  15073. dd.ReadMapKVSeparator()
  15074. mv := v[mk]
  15075. mv = float32(dd.DecodeFloat(true))
  15076. if v != nil {
  15077. v[mk] = mv
  15078. }
  15079. }
  15080. dd.ReadMapEnd()
  15081. }
  15082. return v, changed
  15083. }
  15084. func (f decFnInfo) fastpathDecMapFloat64Float64R(rv reflect.Value) {
  15085. if rv.CanAddr() {
  15086. vp := rv.Addr().Interface().(*map[float64]float64)
  15087. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  15088. if changed {
  15089. *vp = v
  15090. }
  15091. } else {
  15092. v := rv.Interface().(map[float64]float64)
  15093. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, f.d)
  15094. }
  15095. }
  15096. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, checkNil bool, d *Decoder) {
  15097. v, changed := f.DecMapFloat64Float64V(*vp, checkNil, true, d)
  15098. if changed {
  15099. *vp = v
  15100. }
  15101. }
  15102. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, checkNil bool, canChange bool,
  15103. d *Decoder) (_ map[float64]float64, changed bool) {
  15104. dd := d.d
  15105. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15106. if checkNil && dd.TryDecodeAsNil() {
  15107. if v != nil {
  15108. changed = true
  15109. }
  15110. return nil, changed
  15111. }
  15112. containerLen := dd.ReadMapStart()
  15113. if canChange && v == nil {
  15114. if containerLen > 0 {
  15115. v = make(map[float64]float64, containerLen)
  15116. } else {
  15117. v = make(map[float64]float64) // supports indefinite-length, etc
  15118. }
  15119. changed = true
  15120. }
  15121. if containerLen > 0 {
  15122. for j := 0; j < containerLen; j++ {
  15123. mk := dd.DecodeFloat(false)
  15124. mv := v[mk]
  15125. mv = dd.DecodeFloat(false)
  15126. if v != nil {
  15127. v[mk] = mv
  15128. }
  15129. }
  15130. } else if containerLen < 0 {
  15131. for j := 0; !dd.CheckBreak(); j++ {
  15132. if j > 0 {
  15133. dd.ReadMapEntrySeparator()
  15134. }
  15135. mk := dd.DecodeFloat(false)
  15136. dd.ReadMapKVSeparator()
  15137. mv := v[mk]
  15138. mv = dd.DecodeFloat(false)
  15139. if v != nil {
  15140. v[mk] = mv
  15141. }
  15142. }
  15143. dd.ReadMapEnd()
  15144. }
  15145. return v, changed
  15146. }
  15147. func (f decFnInfo) fastpathDecMapFloat64BoolR(rv reflect.Value) {
  15148. if rv.CanAddr() {
  15149. vp := rv.Addr().Interface().(*map[float64]bool)
  15150. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  15151. if changed {
  15152. *vp = v
  15153. }
  15154. } else {
  15155. v := rv.Interface().(map[float64]bool)
  15156. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, f.d)
  15157. }
  15158. }
  15159. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, checkNil bool, d *Decoder) {
  15160. v, changed := f.DecMapFloat64BoolV(*vp, checkNil, true, d)
  15161. if changed {
  15162. *vp = v
  15163. }
  15164. }
  15165. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, checkNil bool, canChange bool,
  15166. d *Decoder) (_ map[float64]bool, changed bool) {
  15167. dd := d.d
  15168. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15169. if checkNil && dd.TryDecodeAsNil() {
  15170. if v != nil {
  15171. changed = true
  15172. }
  15173. return nil, changed
  15174. }
  15175. containerLen := dd.ReadMapStart()
  15176. if canChange && v == nil {
  15177. if containerLen > 0 {
  15178. v = make(map[float64]bool, containerLen)
  15179. } else {
  15180. v = make(map[float64]bool) // supports indefinite-length, etc
  15181. }
  15182. changed = true
  15183. }
  15184. if containerLen > 0 {
  15185. for j := 0; j < containerLen; j++ {
  15186. mk := dd.DecodeFloat(false)
  15187. mv := v[mk]
  15188. mv = dd.DecodeBool()
  15189. if v != nil {
  15190. v[mk] = mv
  15191. }
  15192. }
  15193. } else if containerLen < 0 {
  15194. for j := 0; !dd.CheckBreak(); j++ {
  15195. if j > 0 {
  15196. dd.ReadMapEntrySeparator()
  15197. }
  15198. mk := dd.DecodeFloat(false)
  15199. dd.ReadMapKVSeparator()
  15200. mv := v[mk]
  15201. mv = dd.DecodeBool()
  15202. if v != nil {
  15203. v[mk] = mv
  15204. }
  15205. }
  15206. dd.ReadMapEnd()
  15207. }
  15208. return v, changed
  15209. }
  15210. func (f decFnInfo) fastpathDecMapUintIntfR(rv reflect.Value) {
  15211. if rv.CanAddr() {
  15212. vp := rv.Addr().Interface().(*map[uint]interface{})
  15213. v, changed := fastpathTV.DecMapUintIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  15214. if changed {
  15215. *vp = v
  15216. }
  15217. } else {
  15218. v := rv.Interface().(map[uint]interface{})
  15219. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, f.d)
  15220. }
  15221. }
  15222. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, checkNil bool, d *Decoder) {
  15223. v, changed := f.DecMapUintIntfV(*vp, checkNil, true, d)
  15224. if changed {
  15225. *vp = v
  15226. }
  15227. }
  15228. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, checkNil bool, canChange bool,
  15229. d *Decoder) (_ map[uint]interface{}, changed bool) {
  15230. dd := d.d
  15231. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15232. if checkNil && dd.TryDecodeAsNil() {
  15233. if v != nil {
  15234. changed = true
  15235. }
  15236. return nil, changed
  15237. }
  15238. containerLen := dd.ReadMapStart()
  15239. if canChange && v == nil {
  15240. if containerLen > 0 {
  15241. v = make(map[uint]interface{}, containerLen)
  15242. } else {
  15243. v = make(map[uint]interface{}) // supports indefinite-length, etc
  15244. }
  15245. changed = true
  15246. }
  15247. if containerLen > 0 {
  15248. for j := 0; j < containerLen; j++ {
  15249. mk := uint(dd.DecodeUint(uintBitsize))
  15250. mv := v[mk]
  15251. d.decode(&mv)
  15252. if v != nil {
  15253. v[mk] = mv
  15254. }
  15255. }
  15256. } else if containerLen < 0 {
  15257. for j := 0; !dd.CheckBreak(); j++ {
  15258. if j > 0 {
  15259. dd.ReadMapEntrySeparator()
  15260. }
  15261. mk := uint(dd.DecodeUint(uintBitsize))
  15262. dd.ReadMapKVSeparator()
  15263. mv := v[mk]
  15264. d.decode(&mv)
  15265. if v != nil {
  15266. v[mk] = mv
  15267. }
  15268. }
  15269. dd.ReadMapEnd()
  15270. }
  15271. return v, changed
  15272. }
  15273. func (f decFnInfo) fastpathDecMapUintStringR(rv reflect.Value) {
  15274. if rv.CanAddr() {
  15275. vp := rv.Addr().Interface().(*map[uint]string)
  15276. v, changed := fastpathTV.DecMapUintStringV(*vp, fastpathCheckNilFalse, true, f.d)
  15277. if changed {
  15278. *vp = v
  15279. }
  15280. } else {
  15281. v := rv.Interface().(map[uint]string)
  15282. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, f.d)
  15283. }
  15284. }
  15285. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, checkNil bool, d *Decoder) {
  15286. v, changed := f.DecMapUintStringV(*vp, checkNil, true, d)
  15287. if changed {
  15288. *vp = v
  15289. }
  15290. }
  15291. func (_ fastpathT) DecMapUintStringV(v map[uint]string, checkNil bool, canChange bool,
  15292. d *Decoder) (_ map[uint]string, changed bool) {
  15293. dd := d.d
  15294. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15295. if checkNil && dd.TryDecodeAsNil() {
  15296. if v != nil {
  15297. changed = true
  15298. }
  15299. return nil, changed
  15300. }
  15301. containerLen := dd.ReadMapStart()
  15302. if canChange && v == nil {
  15303. if containerLen > 0 {
  15304. v = make(map[uint]string, containerLen)
  15305. } else {
  15306. v = make(map[uint]string) // supports indefinite-length, etc
  15307. }
  15308. changed = true
  15309. }
  15310. if containerLen > 0 {
  15311. for j := 0; j < containerLen; j++ {
  15312. mk := uint(dd.DecodeUint(uintBitsize))
  15313. mv := v[mk]
  15314. mv = dd.DecodeString()
  15315. if v != nil {
  15316. v[mk] = mv
  15317. }
  15318. }
  15319. } else if containerLen < 0 {
  15320. for j := 0; !dd.CheckBreak(); j++ {
  15321. if j > 0 {
  15322. dd.ReadMapEntrySeparator()
  15323. }
  15324. mk := uint(dd.DecodeUint(uintBitsize))
  15325. dd.ReadMapKVSeparator()
  15326. mv := v[mk]
  15327. mv = dd.DecodeString()
  15328. if v != nil {
  15329. v[mk] = mv
  15330. }
  15331. }
  15332. dd.ReadMapEnd()
  15333. }
  15334. return v, changed
  15335. }
  15336. func (f decFnInfo) fastpathDecMapUintUintR(rv reflect.Value) {
  15337. if rv.CanAddr() {
  15338. vp := rv.Addr().Interface().(*map[uint]uint)
  15339. v, changed := fastpathTV.DecMapUintUintV(*vp, fastpathCheckNilFalse, true, f.d)
  15340. if changed {
  15341. *vp = v
  15342. }
  15343. } else {
  15344. v := rv.Interface().(map[uint]uint)
  15345. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, f.d)
  15346. }
  15347. }
  15348. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, checkNil bool, d *Decoder) {
  15349. v, changed := f.DecMapUintUintV(*vp, checkNil, true, d)
  15350. if changed {
  15351. *vp = v
  15352. }
  15353. }
  15354. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, checkNil bool, canChange bool,
  15355. d *Decoder) (_ map[uint]uint, changed bool) {
  15356. dd := d.d
  15357. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15358. if checkNil && dd.TryDecodeAsNil() {
  15359. if v != nil {
  15360. changed = true
  15361. }
  15362. return nil, changed
  15363. }
  15364. containerLen := dd.ReadMapStart()
  15365. if canChange && v == nil {
  15366. if containerLen > 0 {
  15367. v = make(map[uint]uint, containerLen)
  15368. } else {
  15369. v = make(map[uint]uint) // supports indefinite-length, etc
  15370. }
  15371. changed = true
  15372. }
  15373. if containerLen > 0 {
  15374. for j := 0; j < containerLen; j++ {
  15375. mk := uint(dd.DecodeUint(uintBitsize))
  15376. mv := v[mk]
  15377. mv = uint(dd.DecodeUint(uintBitsize))
  15378. if v != nil {
  15379. v[mk] = mv
  15380. }
  15381. }
  15382. } else if containerLen < 0 {
  15383. for j := 0; !dd.CheckBreak(); j++ {
  15384. if j > 0 {
  15385. dd.ReadMapEntrySeparator()
  15386. }
  15387. mk := uint(dd.DecodeUint(uintBitsize))
  15388. dd.ReadMapKVSeparator()
  15389. mv := v[mk]
  15390. mv = uint(dd.DecodeUint(uintBitsize))
  15391. if v != nil {
  15392. v[mk] = mv
  15393. }
  15394. }
  15395. dd.ReadMapEnd()
  15396. }
  15397. return v, changed
  15398. }
  15399. func (f decFnInfo) fastpathDecMapUintUint8R(rv reflect.Value) {
  15400. if rv.CanAddr() {
  15401. vp := rv.Addr().Interface().(*map[uint]uint8)
  15402. v, changed := fastpathTV.DecMapUintUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  15403. if changed {
  15404. *vp = v
  15405. }
  15406. } else {
  15407. v := rv.Interface().(map[uint]uint8)
  15408. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, f.d)
  15409. }
  15410. }
  15411. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, checkNil bool, d *Decoder) {
  15412. v, changed := f.DecMapUintUint8V(*vp, checkNil, true, d)
  15413. if changed {
  15414. *vp = v
  15415. }
  15416. }
  15417. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, checkNil bool, canChange bool,
  15418. d *Decoder) (_ map[uint]uint8, changed bool) {
  15419. dd := d.d
  15420. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15421. if checkNil && dd.TryDecodeAsNil() {
  15422. if v != nil {
  15423. changed = true
  15424. }
  15425. return nil, changed
  15426. }
  15427. containerLen := dd.ReadMapStart()
  15428. if canChange && v == nil {
  15429. if containerLen > 0 {
  15430. v = make(map[uint]uint8, containerLen)
  15431. } else {
  15432. v = make(map[uint]uint8) // supports indefinite-length, etc
  15433. }
  15434. changed = true
  15435. }
  15436. if containerLen > 0 {
  15437. for j := 0; j < containerLen; j++ {
  15438. mk := uint(dd.DecodeUint(uintBitsize))
  15439. mv := v[mk]
  15440. mv = uint8(dd.DecodeUint(8))
  15441. if v != nil {
  15442. v[mk] = mv
  15443. }
  15444. }
  15445. } else if containerLen < 0 {
  15446. for j := 0; !dd.CheckBreak(); j++ {
  15447. if j > 0 {
  15448. dd.ReadMapEntrySeparator()
  15449. }
  15450. mk := uint(dd.DecodeUint(uintBitsize))
  15451. dd.ReadMapKVSeparator()
  15452. mv := v[mk]
  15453. mv = uint8(dd.DecodeUint(8))
  15454. if v != nil {
  15455. v[mk] = mv
  15456. }
  15457. }
  15458. dd.ReadMapEnd()
  15459. }
  15460. return v, changed
  15461. }
  15462. func (f decFnInfo) fastpathDecMapUintUint16R(rv reflect.Value) {
  15463. if rv.CanAddr() {
  15464. vp := rv.Addr().Interface().(*map[uint]uint16)
  15465. v, changed := fastpathTV.DecMapUintUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  15466. if changed {
  15467. *vp = v
  15468. }
  15469. } else {
  15470. v := rv.Interface().(map[uint]uint16)
  15471. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, f.d)
  15472. }
  15473. }
  15474. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, checkNil bool, d *Decoder) {
  15475. v, changed := f.DecMapUintUint16V(*vp, checkNil, true, d)
  15476. if changed {
  15477. *vp = v
  15478. }
  15479. }
  15480. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, checkNil bool, canChange bool,
  15481. d *Decoder) (_ map[uint]uint16, changed bool) {
  15482. dd := d.d
  15483. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15484. if checkNil && dd.TryDecodeAsNil() {
  15485. if v != nil {
  15486. changed = true
  15487. }
  15488. return nil, changed
  15489. }
  15490. containerLen := dd.ReadMapStart()
  15491. if canChange && v == nil {
  15492. if containerLen > 0 {
  15493. v = make(map[uint]uint16, containerLen)
  15494. } else {
  15495. v = make(map[uint]uint16) // supports indefinite-length, etc
  15496. }
  15497. changed = true
  15498. }
  15499. if containerLen > 0 {
  15500. for j := 0; j < containerLen; j++ {
  15501. mk := uint(dd.DecodeUint(uintBitsize))
  15502. mv := v[mk]
  15503. mv = uint16(dd.DecodeUint(16))
  15504. if v != nil {
  15505. v[mk] = mv
  15506. }
  15507. }
  15508. } else if containerLen < 0 {
  15509. for j := 0; !dd.CheckBreak(); j++ {
  15510. if j > 0 {
  15511. dd.ReadMapEntrySeparator()
  15512. }
  15513. mk := uint(dd.DecodeUint(uintBitsize))
  15514. dd.ReadMapKVSeparator()
  15515. mv := v[mk]
  15516. mv = uint16(dd.DecodeUint(16))
  15517. if v != nil {
  15518. v[mk] = mv
  15519. }
  15520. }
  15521. dd.ReadMapEnd()
  15522. }
  15523. return v, changed
  15524. }
  15525. func (f decFnInfo) fastpathDecMapUintUint32R(rv reflect.Value) {
  15526. if rv.CanAddr() {
  15527. vp := rv.Addr().Interface().(*map[uint]uint32)
  15528. v, changed := fastpathTV.DecMapUintUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  15529. if changed {
  15530. *vp = v
  15531. }
  15532. } else {
  15533. v := rv.Interface().(map[uint]uint32)
  15534. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, f.d)
  15535. }
  15536. }
  15537. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, checkNil bool, d *Decoder) {
  15538. v, changed := f.DecMapUintUint32V(*vp, checkNil, true, d)
  15539. if changed {
  15540. *vp = v
  15541. }
  15542. }
  15543. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, checkNil bool, canChange bool,
  15544. d *Decoder) (_ map[uint]uint32, changed bool) {
  15545. dd := d.d
  15546. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15547. if checkNil && dd.TryDecodeAsNil() {
  15548. if v != nil {
  15549. changed = true
  15550. }
  15551. return nil, changed
  15552. }
  15553. containerLen := dd.ReadMapStart()
  15554. if canChange && v == nil {
  15555. if containerLen > 0 {
  15556. v = make(map[uint]uint32, containerLen)
  15557. } else {
  15558. v = make(map[uint]uint32) // supports indefinite-length, etc
  15559. }
  15560. changed = true
  15561. }
  15562. if containerLen > 0 {
  15563. for j := 0; j < containerLen; j++ {
  15564. mk := uint(dd.DecodeUint(uintBitsize))
  15565. mv := v[mk]
  15566. mv = uint32(dd.DecodeUint(32))
  15567. if v != nil {
  15568. v[mk] = mv
  15569. }
  15570. }
  15571. } else if containerLen < 0 {
  15572. for j := 0; !dd.CheckBreak(); j++ {
  15573. if j > 0 {
  15574. dd.ReadMapEntrySeparator()
  15575. }
  15576. mk := uint(dd.DecodeUint(uintBitsize))
  15577. dd.ReadMapKVSeparator()
  15578. mv := v[mk]
  15579. mv = uint32(dd.DecodeUint(32))
  15580. if v != nil {
  15581. v[mk] = mv
  15582. }
  15583. }
  15584. dd.ReadMapEnd()
  15585. }
  15586. return v, changed
  15587. }
  15588. func (f decFnInfo) fastpathDecMapUintUint64R(rv reflect.Value) {
  15589. if rv.CanAddr() {
  15590. vp := rv.Addr().Interface().(*map[uint]uint64)
  15591. v, changed := fastpathTV.DecMapUintUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  15592. if changed {
  15593. *vp = v
  15594. }
  15595. } else {
  15596. v := rv.Interface().(map[uint]uint64)
  15597. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, f.d)
  15598. }
  15599. }
  15600. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, checkNil bool, d *Decoder) {
  15601. v, changed := f.DecMapUintUint64V(*vp, checkNil, true, d)
  15602. if changed {
  15603. *vp = v
  15604. }
  15605. }
  15606. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, checkNil bool, canChange bool,
  15607. d *Decoder) (_ map[uint]uint64, changed bool) {
  15608. dd := d.d
  15609. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15610. if checkNil && dd.TryDecodeAsNil() {
  15611. if v != nil {
  15612. changed = true
  15613. }
  15614. return nil, changed
  15615. }
  15616. containerLen := dd.ReadMapStart()
  15617. if canChange && v == nil {
  15618. if containerLen > 0 {
  15619. v = make(map[uint]uint64, containerLen)
  15620. } else {
  15621. v = make(map[uint]uint64) // supports indefinite-length, etc
  15622. }
  15623. changed = true
  15624. }
  15625. if containerLen > 0 {
  15626. for j := 0; j < containerLen; j++ {
  15627. mk := uint(dd.DecodeUint(uintBitsize))
  15628. mv := v[mk]
  15629. mv = dd.DecodeUint(64)
  15630. if v != nil {
  15631. v[mk] = mv
  15632. }
  15633. }
  15634. } else if containerLen < 0 {
  15635. for j := 0; !dd.CheckBreak(); j++ {
  15636. if j > 0 {
  15637. dd.ReadMapEntrySeparator()
  15638. }
  15639. mk := uint(dd.DecodeUint(uintBitsize))
  15640. dd.ReadMapKVSeparator()
  15641. mv := v[mk]
  15642. mv = dd.DecodeUint(64)
  15643. if v != nil {
  15644. v[mk] = mv
  15645. }
  15646. }
  15647. dd.ReadMapEnd()
  15648. }
  15649. return v, changed
  15650. }
  15651. func (f decFnInfo) fastpathDecMapUintIntR(rv reflect.Value) {
  15652. if rv.CanAddr() {
  15653. vp := rv.Addr().Interface().(*map[uint]int)
  15654. v, changed := fastpathTV.DecMapUintIntV(*vp, fastpathCheckNilFalse, true, f.d)
  15655. if changed {
  15656. *vp = v
  15657. }
  15658. } else {
  15659. v := rv.Interface().(map[uint]int)
  15660. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, f.d)
  15661. }
  15662. }
  15663. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, checkNil bool, d *Decoder) {
  15664. v, changed := f.DecMapUintIntV(*vp, checkNil, true, d)
  15665. if changed {
  15666. *vp = v
  15667. }
  15668. }
  15669. func (_ fastpathT) DecMapUintIntV(v map[uint]int, checkNil bool, canChange bool,
  15670. d *Decoder) (_ map[uint]int, changed bool) {
  15671. dd := d.d
  15672. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15673. if checkNil && dd.TryDecodeAsNil() {
  15674. if v != nil {
  15675. changed = true
  15676. }
  15677. return nil, changed
  15678. }
  15679. containerLen := dd.ReadMapStart()
  15680. if canChange && v == nil {
  15681. if containerLen > 0 {
  15682. v = make(map[uint]int, containerLen)
  15683. } else {
  15684. v = make(map[uint]int) // supports indefinite-length, etc
  15685. }
  15686. changed = true
  15687. }
  15688. if containerLen > 0 {
  15689. for j := 0; j < containerLen; j++ {
  15690. mk := uint(dd.DecodeUint(uintBitsize))
  15691. mv := v[mk]
  15692. mv = int(dd.DecodeInt(intBitsize))
  15693. if v != nil {
  15694. v[mk] = mv
  15695. }
  15696. }
  15697. } else if containerLen < 0 {
  15698. for j := 0; !dd.CheckBreak(); j++ {
  15699. if j > 0 {
  15700. dd.ReadMapEntrySeparator()
  15701. }
  15702. mk := uint(dd.DecodeUint(uintBitsize))
  15703. dd.ReadMapKVSeparator()
  15704. mv := v[mk]
  15705. mv = int(dd.DecodeInt(intBitsize))
  15706. if v != nil {
  15707. v[mk] = mv
  15708. }
  15709. }
  15710. dd.ReadMapEnd()
  15711. }
  15712. return v, changed
  15713. }
  15714. func (f decFnInfo) fastpathDecMapUintInt8R(rv reflect.Value) {
  15715. if rv.CanAddr() {
  15716. vp := rv.Addr().Interface().(*map[uint]int8)
  15717. v, changed := fastpathTV.DecMapUintInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  15718. if changed {
  15719. *vp = v
  15720. }
  15721. } else {
  15722. v := rv.Interface().(map[uint]int8)
  15723. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, f.d)
  15724. }
  15725. }
  15726. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, checkNil bool, d *Decoder) {
  15727. v, changed := f.DecMapUintInt8V(*vp, checkNil, true, d)
  15728. if changed {
  15729. *vp = v
  15730. }
  15731. }
  15732. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, checkNil bool, canChange bool,
  15733. d *Decoder) (_ map[uint]int8, changed bool) {
  15734. dd := d.d
  15735. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15736. if checkNil && dd.TryDecodeAsNil() {
  15737. if v != nil {
  15738. changed = true
  15739. }
  15740. return nil, changed
  15741. }
  15742. containerLen := dd.ReadMapStart()
  15743. if canChange && v == nil {
  15744. if containerLen > 0 {
  15745. v = make(map[uint]int8, containerLen)
  15746. } else {
  15747. v = make(map[uint]int8) // supports indefinite-length, etc
  15748. }
  15749. changed = true
  15750. }
  15751. if containerLen > 0 {
  15752. for j := 0; j < containerLen; j++ {
  15753. mk := uint(dd.DecodeUint(uintBitsize))
  15754. mv := v[mk]
  15755. mv = int8(dd.DecodeInt(8))
  15756. if v != nil {
  15757. v[mk] = mv
  15758. }
  15759. }
  15760. } else if containerLen < 0 {
  15761. for j := 0; !dd.CheckBreak(); j++ {
  15762. if j > 0 {
  15763. dd.ReadMapEntrySeparator()
  15764. }
  15765. mk := uint(dd.DecodeUint(uintBitsize))
  15766. dd.ReadMapKVSeparator()
  15767. mv := v[mk]
  15768. mv = int8(dd.DecodeInt(8))
  15769. if v != nil {
  15770. v[mk] = mv
  15771. }
  15772. }
  15773. dd.ReadMapEnd()
  15774. }
  15775. return v, changed
  15776. }
  15777. func (f decFnInfo) fastpathDecMapUintInt16R(rv reflect.Value) {
  15778. if rv.CanAddr() {
  15779. vp := rv.Addr().Interface().(*map[uint]int16)
  15780. v, changed := fastpathTV.DecMapUintInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  15781. if changed {
  15782. *vp = v
  15783. }
  15784. } else {
  15785. v := rv.Interface().(map[uint]int16)
  15786. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, f.d)
  15787. }
  15788. }
  15789. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, checkNil bool, d *Decoder) {
  15790. v, changed := f.DecMapUintInt16V(*vp, checkNil, true, d)
  15791. if changed {
  15792. *vp = v
  15793. }
  15794. }
  15795. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, checkNil bool, canChange bool,
  15796. d *Decoder) (_ map[uint]int16, changed bool) {
  15797. dd := d.d
  15798. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15799. if checkNil && dd.TryDecodeAsNil() {
  15800. if v != nil {
  15801. changed = true
  15802. }
  15803. return nil, changed
  15804. }
  15805. containerLen := dd.ReadMapStart()
  15806. if canChange && v == nil {
  15807. if containerLen > 0 {
  15808. v = make(map[uint]int16, containerLen)
  15809. } else {
  15810. v = make(map[uint]int16) // supports indefinite-length, etc
  15811. }
  15812. changed = true
  15813. }
  15814. if containerLen > 0 {
  15815. for j := 0; j < containerLen; j++ {
  15816. mk := uint(dd.DecodeUint(uintBitsize))
  15817. mv := v[mk]
  15818. mv = int16(dd.DecodeInt(16))
  15819. if v != nil {
  15820. v[mk] = mv
  15821. }
  15822. }
  15823. } else if containerLen < 0 {
  15824. for j := 0; !dd.CheckBreak(); j++ {
  15825. if j > 0 {
  15826. dd.ReadMapEntrySeparator()
  15827. }
  15828. mk := uint(dd.DecodeUint(uintBitsize))
  15829. dd.ReadMapKVSeparator()
  15830. mv := v[mk]
  15831. mv = int16(dd.DecodeInt(16))
  15832. if v != nil {
  15833. v[mk] = mv
  15834. }
  15835. }
  15836. dd.ReadMapEnd()
  15837. }
  15838. return v, changed
  15839. }
  15840. func (f decFnInfo) fastpathDecMapUintInt32R(rv reflect.Value) {
  15841. if rv.CanAddr() {
  15842. vp := rv.Addr().Interface().(*map[uint]int32)
  15843. v, changed := fastpathTV.DecMapUintInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  15844. if changed {
  15845. *vp = v
  15846. }
  15847. } else {
  15848. v := rv.Interface().(map[uint]int32)
  15849. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, f.d)
  15850. }
  15851. }
  15852. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, checkNil bool, d *Decoder) {
  15853. v, changed := f.DecMapUintInt32V(*vp, checkNil, true, d)
  15854. if changed {
  15855. *vp = v
  15856. }
  15857. }
  15858. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, checkNil bool, canChange bool,
  15859. d *Decoder) (_ map[uint]int32, changed bool) {
  15860. dd := d.d
  15861. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15862. if checkNil && dd.TryDecodeAsNil() {
  15863. if v != nil {
  15864. changed = true
  15865. }
  15866. return nil, changed
  15867. }
  15868. containerLen := dd.ReadMapStart()
  15869. if canChange && v == nil {
  15870. if containerLen > 0 {
  15871. v = make(map[uint]int32, containerLen)
  15872. } else {
  15873. v = make(map[uint]int32) // supports indefinite-length, etc
  15874. }
  15875. changed = true
  15876. }
  15877. if containerLen > 0 {
  15878. for j := 0; j < containerLen; j++ {
  15879. mk := uint(dd.DecodeUint(uintBitsize))
  15880. mv := v[mk]
  15881. mv = int32(dd.DecodeInt(32))
  15882. if v != nil {
  15883. v[mk] = mv
  15884. }
  15885. }
  15886. } else if containerLen < 0 {
  15887. for j := 0; !dd.CheckBreak(); j++ {
  15888. if j > 0 {
  15889. dd.ReadMapEntrySeparator()
  15890. }
  15891. mk := uint(dd.DecodeUint(uintBitsize))
  15892. dd.ReadMapKVSeparator()
  15893. mv := v[mk]
  15894. mv = int32(dd.DecodeInt(32))
  15895. if v != nil {
  15896. v[mk] = mv
  15897. }
  15898. }
  15899. dd.ReadMapEnd()
  15900. }
  15901. return v, changed
  15902. }
  15903. func (f decFnInfo) fastpathDecMapUintInt64R(rv reflect.Value) {
  15904. if rv.CanAddr() {
  15905. vp := rv.Addr().Interface().(*map[uint]int64)
  15906. v, changed := fastpathTV.DecMapUintInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  15907. if changed {
  15908. *vp = v
  15909. }
  15910. } else {
  15911. v := rv.Interface().(map[uint]int64)
  15912. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, f.d)
  15913. }
  15914. }
  15915. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, checkNil bool, d *Decoder) {
  15916. v, changed := f.DecMapUintInt64V(*vp, checkNil, true, d)
  15917. if changed {
  15918. *vp = v
  15919. }
  15920. }
  15921. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, checkNil bool, canChange bool,
  15922. d *Decoder) (_ map[uint]int64, changed bool) {
  15923. dd := d.d
  15924. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15925. if checkNil && dd.TryDecodeAsNil() {
  15926. if v != nil {
  15927. changed = true
  15928. }
  15929. return nil, changed
  15930. }
  15931. containerLen := dd.ReadMapStart()
  15932. if canChange && v == nil {
  15933. if containerLen > 0 {
  15934. v = make(map[uint]int64, containerLen)
  15935. } else {
  15936. v = make(map[uint]int64) // supports indefinite-length, etc
  15937. }
  15938. changed = true
  15939. }
  15940. if containerLen > 0 {
  15941. for j := 0; j < containerLen; j++ {
  15942. mk := uint(dd.DecodeUint(uintBitsize))
  15943. mv := v[mk]
  15944. mv = dd.DecodeInt(64)
  15945. if v != nil {
  15946. v[mk] = mv
  15947. }
  15948. }
  15949. } else if containerLen < 0 {
  15950. for j := 0; !dd.CheckBreak(); j++ {
  15951. if j > 0 {
  15952. dd.ReadMapEntrySeparator()
  15953. }
  15954. mk := uint(dd.DecodeUint(uintBitsize))
  15955. dd.ReadMapKVSeparator()
  15956. mv := v[mk]
  15957. mv = dd.DecodeInt(64)
  15958. if v != nil {
  15959. v[mk] = mv
  15960. }
  15961. }
  15962. dd.ReadMapEnd()
  15963. }
  15964. return v, changed
  15965. }
  15966. func (f decFnInfo) fastpathDecMapUintFloat32R(rv reflect.Value) {
  15967. if rv.CanAddr() {
  15968. vp := rv.Addr().Interface().(*map[uint]float32)
  15969. v, changed := fastpathTV.DecMapUintFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  15970. if changed {
  15971. *vp = v
  15972. }
  15973. } else {
  15974. v := rv.Interface().(map[uint]float32)
  15975. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, f.d)
  15976. }
  15977. }
  15978. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, checkNil bool, d *Decoder) {
  15979. v, changed := f.DecMapUintFloat32V(*vp, checkNil, true, d)
  15980. if changed {
  15981. *vp = v
  15982. }
  15983. }
  15984. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, checkNil bool, canChange bool,
  15985. d *Decoder) (_ map[uint]float32, changed bool) {
  15986. dd := d.d
  15987. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15988. if checkNil && dd.TryDecodeAsNil() {
  15989. if v != nil {
  15990. changed = true
  15991. }
  15992. return nil, changed
  15993. }
  15994. containerLen := dd.ReadMapStart()
  15995. if canChange && v == nil {
  15996. if containerLen > 0 {
  15997. v = make(map[uint]float32, containerLen)
  15998. } else {
  15999. v = make(map[uint]float32) // supports indefinite-length, etc
  16000. }
  16001. changed = true
  16002. }
  16003. if containerLen > 0 {
  16004. for j := 0; j < containerLen; j++ {
  16005. mk := uint(dd.DecodeUint(uintBitsize))
  16006. mv := v[mk]
  16007. mv = float32(dd.DecodeFloat(true))
  16008. if v != nil {
  16009. v[mk] = mv
  16010. }
  16011. }
  16012. } else if containerLen < 0 {
  16013. for j := 0; !dd.CheckBreak(); j++ {
  16014. if j > 0 {
  16015. dd.ReadMapEntrySeparator()
  16016. }
  16017. mk := uint(dd.DecodeUint(uintBitsize))
  16018. dd.ReadMapKVSeparator()
  16019. mv := v[mk]
  16020. mv = float32(dd.DecodeFloat(true))
  16021. if v != nil {
  16022. v[mk] = mv
  16023. }
  16024. }
  16025. dd.ReadMapEnd()
  16026. }
  16027. return v, changed
  16028. }
  16029. func (f decFnInfo) fastpathDecMapUintFloat64R(rv reflect.Value) {
  16030. if rv.CanAddr() {
  16031. vp := rv.Addr().Interface().(*map[uint]float64)
  16032. v, changed := fastpathTV.DecMapUintFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  16033. if changed {
  16034. *vp = v
  16035. }
  16036. } else {
  16037. v := rv.Interface().(map[uint]float64)
  16038. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, f.d)
  16039. }
  16040. }
  16041. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, checkNil bool, d *Decoder) {
  16042. v, changed := f.DecMapUintFloat64V(*vp, checkNil, true, d)
  16043. if changed {
  16044. *vp = v
  16045. }
  16046. }
  16047. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, checkNil bool, canChange bool,
  16048. d *Decoder) (_ map[uint]float64, changed bool) {
  16049. dd := d.d
  16050. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16051. if checkNil && dd.TryDecodeAsNil() {
  16052. if v != nil {
  16053. changed = true
  16054. }
  16055. return nil, changed
  16056. }
  16057. containerLen := dd.ReadMapStart()
  16058. if canChange && v == nil {
  16059. if containerLen > 0 {
  16060. v = make(map[uint]float64, containerLen)
  16061. } else {
  16062. v = make(map[uint]float64) // supports indefinite-length, etc
  16063. }
  16064. changed = true
  16065. }
  16066. if containerLen > 0 {
  16067. for j := 0; j < containerLen; j++ {
  16068. mk := uint(dd.DecodeUint(uintBitsize))
  16069. mv := v[mk]
  16070. mv = dd.DecodeFloat(false)
  16071. if v != nil {
  16072. v[mk] = mv
  16073. }
  16074. }
  16075. } else if containerLen < 0 {
  16076. for j := 0; !dd.CheckBreak(); j++ {
  16077. if j > 0 {
  16078. dd.ReadMapEntrySeparator()
  16079. }
  16080. mk := uint(dd.DecodeUint(uintBitsize))
  16081. dd.ReadMapKVSeparator()
  16082. mv := v[mk]
  16083. mv = dd.DecodeFloat(false)
  16084. if v != nil {
  16085. v[mk] = mv
  16086. }
  16087. }
  16088. dd.ReadMapEnd()
  16089. }
  16090. return v, changed
  16091. }
  16092. func (f decFnInfo) fastpathDecMapUintBoolR(rv reflect.Value) {
  16093. if rv.CanAddr() {
  16094. vp := rv.Addr().Interface().(*map[uint]bool)
  16095. v, changed := fastpathTV.DecMapUintBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  16096. if changed {
  16097. *vp = v
  16098. }
  16099. } else {
  16100. v := rv.Interface().(map[uint]bool)
  16101. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, f.d)
  16102. }
  16103. }
  16104. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, checkNil bool, d *Decoder) {
  16105. v, changed := f.DecMapUintBoolV(*vp, checkNil, true, d)
  16106. if changed {
  16107. *vp = v
  16108. }
  16109. }
  16110. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, checkNil bool, canChange bool,
  16111. d *Decoder) (_ map[uint]bool, changed bool) {
  16112. dd := d.d
  16113. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16114. if checkNil && dd.TryDecodeAsNil() {
  16115. if v != nil {
  16116. changed = true
  16117. }
  16118. return nil, changed
  16119. }
  16120. containerLen := dd.ReadMapStart()
  16121. if canChange && v == nil {
  16122. if containerLen > 0 {
  16123. v = make(map[uint]bool, containerLen)
  16124. } else {
  16125. v = make(map[uint]bool) // supports indefinite-length, etc
  16126. }
  16127. changed = true
  16128. }
  16129. if containerLen > 0 {
  16130. for j := 0; j < containerLen; j++ {
  16131. mk := uint(dd.DecodeUint(uintBitsize))
  16132. mv := v[mk]
  16133. mv = dd.DecodeBool()
  16134. if v != nil {
  16135. v[mk] = mv
  16136. }
  16137. }
  16138. } else if containerLen < 0 {
  16139. for j := 0; !dd.CheckBreak(); j++ {
  16140. if j > 0 {
  16141. dd.ReadMapEntrySeparator()
  16142. }
  16143. mk := uint(dd.DecodeUint(uintBitsize))
  16144. dd.ReadMapKVSeparator()
  16145. mv := v[mk]
  16146. mv = dd.DecodeBool()
  16147. if v != nil {
  16148. v[mk] = mv
  16149. }
  16150. }
  16151. dd.ReadMapEnd()
  16152. }
  16153. return v, changed
  16154. }
  16155. func (f decFnInfo) fastpathDecMapUint8IntfR(rv reflect.Value) {
  16156. if rv.CanAddr() {
  16157. vp := rv.Addr().Interface().(*map[uint8]interface{})
  16158. v, changed := fastpathTV.DecMapUint8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  16159. if changed {
  16160. *vp = v
  16161. }
  16162. } else {
  16163. v := rv.Interface().(map[uint8]interface{})
  16164. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, f.d)
  16165. }
  16166. }
  16167. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, checkNil bool, d *Decoder) {
  16168. v, changed := f.DecMapUint8IntfV(*vp, checkNil, true, d)
  16169. if changed {
  16170. *vp = v
  16171. }
  16172. }
  16173. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, checkNil bool, canChange bool,
  16174. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  16175. dd := d.d
  16176. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16177. if checkNil && dd.TryDecodeAsNil() {
  16178. if v != nil {
  16179. changed = true
  16180. }
  16181. return nil, changed
  16182. }
  16183. containerLen := dd.ReadMapStart()
  16184. if canChange && v == nil {
  16185. if containerLen > 0 {
  16186. v = make(map[uint8]interface{}, containerLen)
  16187. } else {
  16188. v = make(map[uint8]interface{}) // supports indefinite-length, etc
  16189. }
  16190. changed = true
  16191. }
  16192. if containerLen > 0 {
  16193. for j := 0; j < containerLen; j++ {
  16194. mk := uint8(dd.DecodeUint(8))
  16195. mv := v[mk]
  16196. d.decode(&mv)
  16197. if v != nil {
  16198. v[mk] = mv
  16199. }
  16200. }
  16201. } else if containerLen < 0 {
  16202. for j := 0; !dd.CheckBreak(); j++ {
  16203. if j > 0 {
  16204. dd.ReadMapEntrySeparator()
  16205. }
  16206. mk := uint8(dd.DecodeUint(8))
  16207. dd.ReadMapKVSeparator()
  16208. mv := v[mk]
  16209. d.decode(&mv)
  16210. if v != nil {
  16211. v[mk] = mv
  16212. }
  16213. }
  16214. dd.ReadMapEnd()
  16215. }
  16216. return v, changed
  16217. }
  16218. func (f decFnInfo) fastpathDecMapUint8StringR(rv reflect.Value) {
  16219. if rv.CanAddr() {
  16220. vp := rv.Addr().Interface().(*map[uint8]string)
  16221. v, changed := fastpathTV.DecMapUint8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  16222. if changed {
  16223. *vp = v
  16224. }
  16225. } else {
  16226. v := rv.Interface().(map[uint8]string)
  16227. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, f.d)
  16228. }
  16229. }
  16230. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, checkNil bool, d *Decoder) {
  16231. v, changed := f.DecMapUint8StringV(*vp, checkNil, true, d)
  16232. if changed {
  16233. *vp = v
  16234. }
  16235. }
  16236. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, checkNil bool, canChange bool,
  16237. d *Decoder) (_ map[uint8]string, changed bool) {
  16238. dd := d.d
  16239. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16240. if checkNil && dd.TryDecodeAsNil() {
  16241. if v != nil {
  16242. changed = true
  16243. }
  16244. return nil, changed
  16245. }
  16246. containerLen := dd.ReadMapStart()
  16247. if canChange && v == nil {
  16248. if containerLen > 0 {
  16249. v = make(map[uint8]string, containerLen)
  16250. } else {
  16251. v = make(map[uint8]string) // supports indefinite-length, etc
  16252. }
  16253. changed = true
  16254. }
  16255. if containerLen > 0 {
  16256. for j := 0; j < containerLen; j++ {
  16257. mk := uint8(dd.DecodeUint(8))
  16258. mv := v[mk]
  16259. mv = dd.DecodeString()
  16260. if v != nil {
  16261. v[mk] = mv
  16262. }
  16263. }
  16264. } else if containerLen < 0 {
  16265. for j := 0; !dd.CheckBreak(); j++ {
  16266. if j > 0 {
  16267. dd.ReadMapEntrySeparator()
  16268. }
  16269. mk := uint8(dd.DecodeUint(8))
  16270. dd.ReadMapKVSeparator()
  16271. mv := v[mk]
  16272. mv = dd.DecodeString()
  16273. if v != nil {
  16274. v[mk] = mv
  16275. }
  16276. }
  16277. dd.ReadMapEnd()
  16278. }
  16279. return v, changed
  16280. }
  16281. func (f decFnInfo) fastpathDecMapUint8UintR(rv reflect.Value) {
  16282. if rv.CanAddr() {
  16283. vp := rv.Addr().Interface().(*map[uint8]uint)
  16284. v, changed := fastpathTV.DecMapUint8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  16285. if changed {
  16286. *vp = v
  16287. }
  16288. } else {
  16289. v := rv.Interface().(map[uint8]uint)
  16290. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, f.d)
  16291. }
  16292. }
  16293. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, checkNil bool, d *Decoder) {
  16294. v, changed := f.DecMapUint8UintV(*vp, checkNil, true, d)
  16295. if changed {
  16296. *vp = v
  16297. }
  16298. }
  16299. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, checkNil bool, canChange bool,
  16300. d *Decoder) (_ map[uint8]uint, changed bool) {
  16301. dd := d.d
  16302. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16303. if checkNil && dd.TryDecodeAsNil() {
  16304. if v != nil {
  16305. changed = true
  16306. }
  16307. return nil, changed
  16308. }
  16309. containerLen := dd.ReadMapStart()
  16310. if canChange && v == nil {
  16311. if containerLen > 0 {
  16312. v = make(map[uint8]uint, containerLen)
  16313. } else {
  16314. v = make(map[uint8]uint) // supports indefinite-length, etc
  16315. }
  16316. changed = true
  16317. }
  16318. if containerLen > 0 {
  16319. for j := 0; j < containerLen; j++ {
  16320. mk := uint8(dd.DecodeUint(8))
  16321. mv := v[mk]
  16322. mv = uint(dd.DecodeUint(uintBitsize))
  16323. if v != nil {
  16324. v[mk] = mv
  16325. }
  16326. }
  16327. } else if containerLen < 0 {
  16328. for j := 0; !dd.CheckBreak(); j++ {
  16329. if j > 0 {
  16330. dd.ReadMapEntrySeparator()
  16331. }
  16332. mk := uint8(dd.DecodeUint(8))
  16333. dd.ReadMapKVSeparator()
  16334. mv := v[mk]
  16335. mv = uint(dd.DecodeUint(uintBitsize))
  16336. if v != nil {
  16337. v[mk] = mv
  16338. }
  16339. }
  16340. dd.ReadMapEnd()
  16341. }
  16342. return v, changed
  16343. }
  16344. func (f decFnInfo) fastpathDecMapUint8Uint8R(rv reflect.Value) {
  16345. if rv.CanAddr() {
  16346. vp := rv.Addr().Interface().(*map[uint8]uint8)
  16347. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  16348. if changed {
  16349. *vp = v
  16350. }
  16351. } else {
  16352. v := rv.Interface().(map[uint8]uint8)
  16353. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  16354. }
  16355. }
  16356. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, checkNil bool, d *Decoder) {
  16357. v, changed := f.DecMapUint8Uint8V(*vp, checkNil, true, d)
  16358. if changed {
  16359. *vp = v
  16360. }
  16361. }
  16362. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, checkNil bool, canChange bool,
  16363. d *Decoder) (_ map[uint8]uint8, changed bool) {
  16364. dd := d.d
  16365. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16366. if checkNil && dd.TryDecodeAsNil() {
  16367. if v != nil {
  16368. changed = true
  16369. }
  16370. return nil, changed
  16371. }
  16372. containerLen := dd.ReadMapStart()
  16373. if canChange && v == nil {
  16374. if containerLen > 0 {
  16375. v = make(map[uint8]uint8, containerLen)
  16376. } else {
  16377. v = make(map[uint8]uint8) // supports indefinite-length, etc
  16378. }
  16379. changed = true
  16380. }
  16381. if containerLen > 0 {
  16382. for j := 0; j < containerLen; j++ {
  16383. mk := uint8(dd.DecodeUint(8))
  16384. mv := v[mk]
  16385. mv = uint8(dd.DecodeUint(8))
  16386. if v != nil {
  16387. v[mk] = mv
  16388. }
  16389. }
  16390. } else if containerLen < 0 {
  16391. for j := 0; !dd.CheckBreak(); j++ {
  16392. if j > 0 {
  16393. dd.ReadMapEntrySeparator()
  16394. }
  16395. mk := uint8(dd.DecodeUint(8))
  16396. dd.ReadMapKVSeparator()
  16397. mv := v[mk]
  16398. mv = uint8(dd.DecodeUint(8))
  16399. if v != nil {
  16400. v[mk] = mv
  16401. }
  16402. }
  16403. dd.ReadMapEnd()
  16404. }
  16405. return v, changed
  16406. }
  16407. func (f decFnInfo) fastpathDecMapUint8Uint16R(rv reflect.Value) {
  16408. if rv.CanAddr() {
  16409. vp := rv.Addr().Interface().(*map[uint8]uint16)
  16410. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  16411. if changed {
  16412. *vp = v
  16413. }
  16414. } else {
  16415. v := rv.Interface().(map[uint8]uint16)
  16416. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  16417. }
  16418. }
  16419. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, checkNil bool, d *Decoder) {
  16420. v, changed := f.DecMapUint8Uint16V(*vp, checkNil, true, d)
  16421. if changed {
  16422. *vp = v
  16423. }
  16424. }
  16425. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, checkNil bool, canChange bool,
  16426. d *Decoder) (_ map[uint8]uint16, changed bool) {
  16427. dd := d.d
  16428. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16429. if checkNil && dd.TryDecodeAsNil() {
  16430. if v != nil {
  16431. changed = true
  16432. }
  16433. return nil, changed
  16434. }
  16435. containerLen := dd.ReadMapStart()
  16436. if canChange && v == nil {
  16437. if containerLen > 0 {
  16438. v = make(map[uint8]uint16, containerLen)
  16439. } else {
  16440. v = make(map[uint8]uint16) // supports indefinite-length, etc
  16441. }
  16442. changed = true
  16443. }
  16444. if containerLen > 0 {
  16445. for j := 0; j < containerLen; j++ {
  16446. mk := uint8(dd.DecodeUint(8))
  16447. mv := v[mk]
  16448. mv = uint16(dd.DecodeUint(16))
  16449. if v != nil {
  16450. v[mk] = mv
  16451. }
  16452. }
  16453. } else if containerLen < 0 {
  16454. for j := 0; !dd.CheckBreak(); j++ {
  16455. if j > 0 {
  16456. dd.ReadMapEntrySeparator()
  16457. }
  16458. mk := uint8(dd.DecodeUint(8))
  16459. dd.ReadMapKVSeparator()
  16460. mv := v[mk]
  16461. mv = uint16(dd.DecodeUint(16))
  16462. if v != nil {
  16463. v[mk] = mv
  16464. }
  16465. }
  16466. dd.ReadMapEnd()
  16467. }
  16468. return v, changed
  16469. }
  16470. func (f decFnInfo) fastpathDecMapUint8Uint32R(rv reflect.Value) {
  16471. if rv.CanAddr() {
  16472. vp := rv.Addr().Interface().(*map[uint8]uint32)
  16473. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  16474. if changed {
  16475. *vp = v
  16476. }
  16477. } else {
  16478. v := rv.Interface().(map[uint8]uint32)
  16479. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  16480. }
  16481. }
  16482. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, checkNil bool, d *Decoder) {
  16483. v, changed := f.DecMapUint8Uint32V(*vp, checkNil, true, d)
  16484. if changed {
  16485. *vp = v
  16486. }
  16487. }
  16488. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, checkNil bool, canChange bool,
  16489. d *Decoder) (_ map[uint8]uint32, changed bool) {
  16490. dd := d.d
  16491. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16492. if checkNil && dd.TryDecodeAsNil() {
  16493. if v != nil {
  16494. changed = true
  16495. }
  16496. return nil, changed
  16497. }
  16498. containerLen := dd.ReadMapStart()
  16499. if canChange && v == nil {
  16500. if containerLen > 0 {
  16501. v = make(map[uint8]uint32, containerLen)
  16502. } else {
  16503. v = make(map[uint8]uint32) // supports indefinite-length, etc
  16504. }
  16505. changed = true
  16506. }
  16507. if containerLen > 0 {
  16508. for j := 0; j < containerLen; j++ {
  16509. mk := uint8(dd.DecodeUint(8))
  16510. mv := v[mk]
  16511. mv = uint32(dd.DecodeUint(32))
  16512. if v != nil {
  16513. v[mk] = mv
  16514. }
  16515. }
  16516. } else if containerLen < 0 {
  16517. for j := 0; !dd.CheckBreak(); j++ {
  16518. if j > 0 {
  16519. dd.ReadMapEntrySeparator()
  16520. }
  16521. mk := uint8(dd.DecodeUint(8))
  16522. dd.ReadMapKVSeparator()
  16523. mv := v[mk]
  16524. mv = uint32(dd.DecodeUint(32))
  16525. if v != nil {
  16526. v[mk] = mv
  16527. }
  16528. }
  16529. dd.ReadMapEnd()
  16530. }
  16531. return v, changed
  16532. }
  16533. func (f decFnInfo) fastpathDecMapUint8Uint64R(rv reflect.Value) {
  16534. if rv.CanAddr() {
  16535. vp := rv.Addr().Interface().(*map[uint8]uint64)
  16536. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  16537. if changed {
  16538. *vp = v
  16539. }
  16540. } else {
  16541. v := rv.Interface().(map[uint8]uint64)
  16542. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  16543. }
  16544. }
  16545. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, checkNil bool, d *Decoder) {
  16546. v, changed := f.DecMapUint8Uint64V(*vp, checkNil, true, d)
  16547. if changed {
  16548. *vp = v
  16549. }
  16550. }
  16551. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, checkNil bool, canChange bool,
  16552. d *Decoder) (_ map[uint8]uint64, changed bool) {
  16553. dd := d.d
  16554. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16555. if checkNil && dd.TryDecodeAsNil() {
  16556. if v != nil {
  16557. changed = true
  16558. }
  16559. return nil, changed
  16560. }
  16561. containerLen := dd.ReadMapStart()
  16562. if canChange && v == nil {
  16563. if containerLen > 0 {
  16564. v = make(map[uint8]uint64, containerLen)
  16565. } else {
  16566. v = make(map[uint8]uint64) // supports indefinite-length, etc
  16567. }
  16568. changed = true
  16569. }
  16570. if containerLen > 0 {
  16571. for j := 0; j < containerLen; j++ {
  16572. mk := uint8(dd.DecodeUint(8))
  16573. mv := v[mk]
  16574. mv = dd.DecodeUint(64)
  16575. if v != nil {
  16576. v[mk] = mv
  16577. }
  16578. }
  16579. } else if containerLen < 0 {
  16580. for j := 0; !dd.CheckBreak(); j++ {
  16581. if j > 0 {
  16582. dd.ReadMapEntrySeparator()
  16583. }
  16584. mk := uint8(dd.DecodeUint(8))
  16585. dd.ReadMapKVSeparator()
  16586. mv := v[mk]
  16587. mv = dd.DecodeUint(64)
  16588. if v != nil {
  16589. v[mk] = mv
  16590. }
  16591. }
  16592. dd.ReadMapEnd()
  16593. }
  16594. return v, changed
  16595. }
  16596. func (f decFnInfo) fastpathDecMapUint8IntR(rv reflect.Value) {
  16597. if rv.CanAddr() {
  16598. vp := rv.Addr().Interface().(*map[uint8]int)
  16599. v, changed := fastpathTV.DecMapUint8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  16600. if changed {
  16601. *vp = v
  16602. }
  16603. } else {
  16604. v := rv.Interface().(map[uint8]int)
  16605. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, f.d)
  16606. }
  16607. }
  16608. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, checkNil bool, d *Decoder) {
  16609. v, changed := f.DecMapUint8IntV(*vp, checkNil, true, d)
  16610. if changed {
  16611. *vp = v
  16612. }
  16613. }
  16614. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, checkNil bool, canChange bool,
  16615. d *Decoder) (_ map[uint8]int, changed bool) {
  16616. dd := d.d
  16617. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16618. if checkNil && dd.TryDecodeAsNil() {
  16619. if v != nil {
  16620. changed = true
  16621. }
  16622. return nil, changed
  16623. }
  16624. containerLen := dd.ReadMapStart()
  16625. if canChange && v == nil {
  16626. if containerLen > 0 {
  16627. v = make(map[uint8]int, containerLen)
  16628. } else {
  16629. v = make(map[uint8]int) // supports indefinite-length, etc
  16630. }
  16631. changed = true
  16632. }
  16633. if containerLen > 0 {
  16634. for j := 0; j < containerLen; j++ {
  16635. mk := uint8(dd.DecodeUint(8))
  16636. mv := v[mk]
  16637. mv = int(dd.DecodeInt(intBitsize))
  16638. if v != nil {
  16639. v[mk] = mv
  16640. }
  16641. }
  16642. } else if containerLen < 0 {
  16643. for j := 0; !dd.CheckBreak(); j++ {
  16644. if j > 0 {
  16645. dd.ReadMapEntrySeparator()
  16646. }
  16647. mk := uint8(dd.DecodeUint(8))
  16648. dd.ReadMapKVSeparator()
  16649. mv := v[mk]
  16650. mv = int(dd.DecodeInt(intBitsize))
  16651. if v != nil {
  16652. v[mk] = mv
  16653. }
  16654. }
  16655. dd.ReadMapEnd()
  16656. }
  16657. return v, changed
  16658. }
  16659. func (f decFnInfo) fastpathDecMapUint8Int8R(rv reflect.Value) {
  16660. if rv.CanAddr() {
  16661. vp := rv.Addr().Interface().(*map[uint8]int8)
  16662. v, changed := fastpathTV.DecMapUint8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  16663. if changed {
  16664. *vp = v
  16665. }
  16666. } else {
  16667. v := rv.Interface().(map[uint8]int8)
  16668. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, f.d)
  16669. }
  16670. }
  16671. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, checkNil bool, d *Decoder) {
  16672. v, changed := f.DecMapUint8Int8V(*vp, checkNil, true, d)
  16673. if changed {
  16674. *vp = v
  16675. }
  16676. }
  16677. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, checkNil bool, canChange bool,
  16678. d *Decoder) (_ map[uint8]int8, changed bool) {
  16679. dd := d.d
  16680. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16681. if checkNil && dd.TryDecodeAsNil() {
  16682. if v != nil {
  16683. changed = true
  16684. }
  16685. return nil, changed
  16686. }
  16687. containerLen := dd.ReadMapStart()
  16688. if canChange && v == nil {
  16689. if containerLen > 0 {
  16690. v = make(map[uint8]int8, containerLen)
  16691. } else {
  16692. v = make(map[uint8]int8) // supports indefinite-length, etc
  16693. }
  16694. changed = true
  16695. }
  16696. if containerLen > 0 {
  16697. for j := 0; j < containerLen; j++ {
  16698. mk := uint8(dd.DecodeUint(8))
  16699. mv := v[mk]
  16700. mv = int8(dd.DecodeInt(8))
  16701. if v != nil {
  16702. v[mk] = mv
  16703. }
  16704. }
  16705. } else if containerLen < 0 {
  16706. for j := 0; !dd.CheckBreak(); j++ {
  16707. if j > 0 {
  16708. dd.ReadMapEntrySeparator()
  16709. }
  16710. mk := uint8(dd.DecodeUint(8))
  16711. dd.ReadMapKVSeparator()
  16712. mv := v[mk]
  16713. mv = int8(dd.DecodeInt(8))
  16714. if v != nil {
  16715. v[mk] = mv
  16716. }
  16717. }
  16718. dd.ReadMapEnd()
  16719. }
  16720. return v, changed
  16721. }
  16722. func (f decFnInfo) fastpathDecMapUint8Int16R(rv reflect.Value) {
  16723. if rv.CanAddr() {
  16724. vp := rv.Addr().Interface().(*map[uint8]int16)
  16725. v, changed := fastpathTV.DecMapUint8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  16726. if changed {
  16727. *vp = v
  16728. }
  16729. } else {
  16730. v := rv.Interface().(map[uint8]int16)
  16731. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, f.d)
  16732. }
  16733. }
  16734. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, checkNil bool, d *Decoder) {
  16735. v, changed := f.DecMapUint8Int16V(*vp, checkNil, true, d)
  16736. if changed {
  16737. *vp = v
  16738. }
  16739. }
  16740. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, checkNil bool, canChange bool,
  16741. d *Decoder) (_ map[uint8]int16, changed bool) {
  16742. dd := d.d
  16743. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16744. if checkNil && dd.TryDecodeAsNil() {
  16745. if v != nil {
  16746. changed = true
  16747. }
  16748. return nil, changed
  16749. }
  16750. containerLen := dd.ReadMapStart()
  16751. if canChange && v == nil {
  16752. if containerLen > 0 {
  16753. v = make(map[uint8]int16, containerLen)
  16754. } else {
  16755. v = make(map[uint8]int16) // supports indefinite-length, etc
  16756. }
  16757. changed = true
  16758. }
  16759. if containerLen > 0 {
  16760. for j := 0; j < containerLen; j++ {
  16761. mk := uint8(dd.DecodeUint(8))
  16762. mv := v[mk]
  16763. mv = int16(dd.DecodeInt(16))
  16764. if v != nil {
  16765. v[mk] = mv
  16766. }
  16767. }
  16768. } else if containerLen < 0 {
  16769. for j := 0; !dd.CheckBreak(); j++ {
  16770. if j > 0 {
  16771. dd.ReadMapEntrySeparator()
  16772. }
  16773. mk := uint8(dd.DecodeUint(8))
  16774. dd.ReadMapKVSeparator()
  16775. mv := v[mk]
  16776. mv = int16(dd.DecodeInt(16))
  16777. if v != nil {
  16778. v[mk] = mv
  16779. }
  16780. }
  16781. dd.ReadMapEnd()
  16782. }
  16783. return v, changed
  16784. }
  16785. func (f decFnInfo) fastpathDecMapUint8Int32R(rv reflect.Value) {
  16786. if rv.CanAddr() {
  16787. vp := rv.Addr().Interface().(*map[uint8]int32)
  16788. v, changed := fastpathTV.DecMapUint8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  16789. if changed {
  16790. *vp = v
  16791. }
  16792. } else {
  16793. v := rv.Interface().(map[uint8]int32)
  16794. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, f.d)
  16795. }
  16796. }
  16797. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, checkNil bool, d *Decoder) {
  16798. v, changed := f.DecMapUint8Int32V(*vp, checkNil, true, d)
  16799. if changed {
  16800. *vp = v
  16801. }
  16802. }
  16803. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, checkNil bool, canChange bool,
  16804. d *Decoder) (_ map[uint8]int32, changed bool) {
  16805. dd := d.d
  16806. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16807. if checkNil && dd.TryDecodeAsNil() {
  16808. if v != nil {
  16809. changed = true
  16810. }
  16811. return nil, changed
  16812. }
  16813. containerLen := dd.ReadMapStart()
  16814. if canChange && v == nil {
  16815. if containerLen > 0 {
  16816. v = make(map[uint8]int32, containerLen)
  16817. } else {
  16818. v = make(map[uint8]int32) // supports indefinite-length, etc
  16819. }
  16820. changed = true
  16821. }
  16822. if containerLen > 0 {
  16823. for j := 0; j < containerLen; j++ {
  16824. mk := uint8(dd.DecodeUint(8))
  16825. mv := v[mk]
  16826. mv = int32(dd.DecodeInt(32))
  16827. if v != nil {
  16828. v[mk] = mv
  16829. }
  16830. }
  16831. } else if containerLen < 0 {
  16832. for j := 0; !dd.CheckBreak(); j++ {
  16833. if j > 0 {
  16834. dd.ReadMapEntrySeparator()
  16835. }
  16836. mk := uint8(dd.DecodeUint(8))
  16837. dd.ReadMapKVSeparator()
  16838. mv := v[mk]
  16839. mv = int32(dd.DecodeInt(32))
  16840. if v != nil {
  16841. v[mk] = mv
  16842. }
  16843. }
  16844. dd.ReadMapEnd()
  16845. }
  16846. return v, changed
  16847. }
  16848. func (f decFnInfo) fastpathDecMapUint8Int64R(rv reflect.Value) {
  16849. if rv.CanAddr() {
  16850. vp := rv.Addr().Interface().(*map[uint8]int64)
  16851. v, changed := fastpathTV.DecMapUint8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  16852. if changed {
  16853. *vp = v
  16854. }
  16855. } else {
  16856. v := rv.Interface().(map[uint8]int64)
  16857. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, f.d)
  16858. }
  16859. }
  16860. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, checkNil bool, d *Decoder) {
  16861. v, changed := f.DecMapUint8Int64V(*vp, checkNil, true, d)
  16862. if changed {
  16863. *vp = v
  16864. }
  16865. }
  16866. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, checkNil bool, canChange bool,
  16867. d *Decoder) (_ map[uint8]int64, changed bool) {
  16868. dd := d.d
  16869. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16870. if checkNil && dd.TryDecodeAsNil() {
  16871. if v != nil {
  16872. changed = true
  16873. }
  16874. return nil, changed
  16875. }
  16876. containerLen := dd.ReadMapStart()
  16877. if canChange && v == nil {
  16878. if containerLen > 0 {
  16879. v = make(map[uint8]int64, containerLen)
  16880. } else {
  16881. v = make(map[uint8]int64) // supports indefinite-length, etc
  16882. }
  16883. changed = true
  16884. }
  16885. if containerLen > 0 {
  16886. for j := 0; j < containerLen; j++ {
  16887. mk := uint8(dd.DecodeUint(8))
  16888. mv := v[mk]
  16889. mv = dd.DecodeInt(64)
  16890. if v != nil {
  16891. v[mk] = mv
  16892. }
  16893. }
  16894. } else if containerLen < 0 {
  16895. for j := 0; !dd.CheckBreak(); j++ {
  16896. if j > 0 {
  16897. dd.ReadMapEntrySeparator()
  16898. }
  16899. mk := uint8(dd.DecodeUint(8))
  16900. dd.ReadMapKVSeparator()
  16901. mv := v[mk]
  16902. mv = dd.DecodeInt(64)
  16903. if v != nil {
  16904. v[mk] = mv
  16905. }
  16906. }
  16907. dd.ReadMapEnd()
  16908. }
  16909. return v, changed
  16910. }
  16911. func (f decFnInfo) fastpathDecMapUint8Float32R(rv reflect.Value) {
  16912. if rv.CanAddr() {
  16913. vp := rv.Addr().Interface().(*map[uint8]float32)
  16914. v, changed := fastpathTV.DecMapUint8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  16915. if changed {
  16916. *vp = v
  16917. }
  16918. } else {
  16919. v := rv.Interface().(map[uint8]float32)
  16920. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, f.d)
  16921. }
  16922. }
  16923. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, checkNil bool, d *Decoder) {
  16924. v, changed := f.DecMapUint8Float32V(*vp, checkNil, true, d)
  16925. if changed {
  16926. *vp = v
  16927. }
  16928. }
  16929. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, checkNil bool, canChange bool,
  16930. d *Decoder) (_ map[uint8]float32, changed bool) {
  16931. dd := d.d
  16932. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16933. if checkNil && dd.TryDecodeAsNil() {
  16934. if v != nil {
  16935. changed = true
  16936. }
  16937. return nil, changed
  16938. }
  16939. containerLen := dd.ReadMapStart()
  16940. if canChange && v == nil {
  16941. if containerLen > 0 {
  16942. v = make(map[uint8]float32, containerLen)
  16943. } else {
  16944. v = make(map[uint8]float32) // supports indefinite-length, etc
  16945. }
  16946. changed = true
  16947. }
  16948. if containerLen > 0 {
  16949. for j := 0; j < containerLen; j++ {
  16950. mk := uint8(dd.DecodeUint(8))
  16951. mv := v[mk]
  16952. mv = float32(dd.DecodeFloat(true))
  16953. if v != nil {
  16954. v[mk] = mv
  16955. }
  16956. }
  16957. } else if containerLen < 0 {
  16958. for j := 0; !dd.CheckBreak(); j++ {
  16959. if j > 0 {
  16960. dd.ReadMapEntrySeparator()
  16961. }
  16962. mk := uint8(dd.DecodeUint(8))
  16963. dd.ReadMapKVSeparator()
  16964. mv := v[mk]
  16965. mv = float32(dd.DecodeFloat(true))
  16966. if v != nil {
  16967. v[mk] = mv
  16968. }
  16969. }
  16970. dd.ReadMapEnd()
  16971. }
  16972. return v, changed
  16973. }
  16974. func (f decFnInfo) fastpathDecMapUint8Float64R(rv reflect.Value) {
  16975. if rv.CanAddr() {
  16976. vp := rv.Addr().Interface().(*map[uint8]float64)
  16977. v, changed := fastpathTV.DecMapUint8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  16978. if changed {
  16979. *vp = v
  16980. }
  16981. } else {
  16982. v := rv.Interface().(map[uint8]float64)
  16983. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, f.d)
  16984. }
  16985. }
  16986. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, checkNil bool, d *Decoder) {
  16987. v, changed := f.DecMapUint8Float64V(*vp, checkNil, true, d)
  16988. if changed {
  16989. *vp = v
  16990. }
  16991. }
  16992. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, checkNil bool, canChange bool,
  16993. d *Decoder) (_ map[uint8]float64, changed bool) {
  16994. dd := d.d
  16995. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16996. if checkNil && dd.TryDecodeAsNil() {
  16997. if v != nil {
  16998. changed = true
  16999. }
  17000. return nil, changed
  17001. }
  17002. containerLen := dd.ReadMapStart()
  17003. if canChange && v == nil {
  17004. if containerLen > 0 {
  17005. v = make(map[uint8]float64, containerLen)
  17006. } else {
  17007. v = make(map[uint8]float64) // supports indefinite-length, etc
  17008. }
  17009. changed = true
  17010. }
  17011. if containerLen > 0 {
  17012. for j := 0; j < containerLen; j++ {
  17013. mk := uint8(dd.DecodeUint(8))
  17014. mv := v[mk]
  17015. mv = dd.DecodeFloat(false)
  17016. if v != nil {
  17017. v[mk] = mv
  17018. }
  17019. }
  17020. } else if containerLen < 0 {
  17021. for j := 0; !dd.CheckBreak(); j++ {
  17022. if j > 0 {
  17023. dd.ReadMapEntrySeparator()
  17024. }
  17025. mk := uint8(dd.DecodeUint(8))
  17026. dd.ReadMapKVSeparator()
  17027. mv := v[mk]
  17028. mv = dd.DecodeFloat(false)
  17029. if v != nil {
  17030. v[mk] = mv
  17031. }
  17032. }
  17033. dd.ReadMapEnd()
  17034. }
  17035. return v, changed
  17036. }
  17037. func (f decFnInfo) fastpathDecMapUint8BoolR(rv reflect.Value) {
  17038. if rv.CanAddr() {
  17039. vp := rv.Addr().Interface().(*map[uint8]bool)
  17040. v, changed := fastpathTV.DecMapUint8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  17041. if changed {
  17042. *vp = v
  17043. }
  17044. } else {
  17045. v := rv.Interface().(map[uint8]bool)
  17046. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, f.d)
  17047. }
  17048. }
  17049. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, checkNil bool, d *Decoder) {
  17050. v, changed := f.DecMapUint8BoolV(*vp, checkNil, true, d)
  17051. if changed {
  17052. *vp = v
  17053. }
  17054. }
  17055. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, checkNil bool, canChange bool,
  17056. d *Decoder) (_ map[uint8]bool, changed bool) {
  17057. dd := d.d
  17058. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17059. if checkNil && dd.TryDecodeAsNil() {
  17060. if v != nil {
  17061. changed = true
  17062. }
  17063. return nil, changed
  17064. }
  17065. containerLen := dd.ReadMapStart()
  17066. if canChange && v == nil {
  17067. if containerLen > 0 {
  17068. v = make(map[uint8]bool, containerLen)
  17069. } else {
  17070. v = make(map[uint8]bool) // supports indefinite-length, etc
  17071. }
  17072. changed = true
  17073. }
  17074. if containerLen > 0 {
  17075. for j := 0; j < containerLen; j++ {
  17076. mk := uint8(dd.DecodeUint(8))
  17077. mv := v[mk]
  17078. mv = dd.DecodeBool()
  17079. if v != nil {
  17080. v[mk] = mv
  17081. }
  17082. }
  17083. } else if containerLen < 0 {
  17084. for j := 0; !dd.CheckBreak(); j++ {
  17085. if j > 0 {
  17086. dd.ReadMapEntrySeparator()
  17087. }
  17088. mk := uint8(dd.DecodeUint(8))
  17089. dd.ReadMapKVSeparator()
  17090. mv := v[mk]
  17091. mv = dd.DecodeBool()
  17092. if v != nil {
  17093. v[mk] = mv
  17094. }
  17095. }
  17096. dd.ReadMapEnd()
  17097. }
  17098. return v, changed
  17099. }
  17100. func (f decFnInfo) fastpathDecMapUint16IntfR(rv reflect.Value) {
  17101. if rv.CanAddr() {
  17102. vp := rv.Addr().Interface().(*map[uint16]interface{})
  17103. v, changed := fastpathTV.DecMapUint16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  17104. if changed {
  17105. *vp = v
  17106. }
  17107. } else {
  17108. v := rv.Interface().(map[uint16]interface{})
  17109. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, f.d)
  17110. }
  17111. }
  17112. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, checkNil bool, d *Decoder) {
  17113. v, changed := f.DecMapUint16IntfV(*vp, checkNil, true, d)
  17114. if changed {
  17115. *vp = v
  17116. }
  17117. }
  17118. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, checkNil bool, canChange bool,
  17119. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  17120. dd := d.d
  17121. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17122. if checkNil && dd.TryDecodeAsNil() {
  17123. if v != nil {
  17124. changed = true
  17125. }
  17126. return nil, changed
  17127. }
  17128. containerLen := dd.ReadMapStart()
  17129. if canChange && v == nil {
  17130. if containerLen > 0 {
  17131. v = make(map[uint16]interface{}, containerLen)
  17132. } else {
  17133. v = make(map[uint16]interface{}) // supports indefinite-length, etc
  17134. }
  17135. changed = true
  17136. }
  17137. if containerLen > 0 {
  17138. for j := 0; j < containerLen; j++ {
  17139. mk := uint16(dd.DecodeUint(16))
  17140. mv := v[mk]
  17141. d.decode(&mv)
  17142. if v != nil {
  17143. v[mk] = mv
  17144. }
  17145. }
  17146. } else if containerLen < 0 {
  17147. for j := 0; !dd.CheckBreak(); j++ {
  17148. if j > 0 {
  17149. dd.ReadMapEntrySeparator()
  17150. }
  17151. mk := uint16(dd.DecodeUint(16))
  17152. dd.ReadMapKVSeparator()
  17153. mv := v[mk]
  17154. d.decode(&mv)
  17155. if v != nil {
  17156. v[mk] = mv
  17157. }
  17158. }
  17159. dd.ReadMapEnd()
  17160. }
  17161. return v, changed
  17162. }
  17163. func (f decFnInfo) fastpathDecMapUint16StringR(rv reflect.Value) {
  17164. if rv.CanAddr() {
  17165. vp := rv.Addr().Interface().(*map[uint16]string)
  17166. v, changed := fastpathTV.DecMapUint16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  17167. if changed {
  17168. *vp = v
  17169. }
  17170. } else {
  17171. v := rv.Interface().(map[uint16]string)
  17172. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, f.d)
  17173. }
  17174. }
  17175. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, checkNil bool, d *Decoder) {
  17176. v, changed := f.DecMapUint16StringV(*vp, checkNil, true, d)
  17177. if changed {
  17178. *vp = v
  17179. }
  17180. }
  17181. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, checkNil bool, canChange bool,
  17182. d *Decoder) (_ map[uint16]string, changed bool) {
  17183. dd := d.d
  17184. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17185. if checkNil && dd.TryDecodeAsNil() {
  17186. if v != nil {
  17187. changed = true
  17188. }
  17189. return nil, changed
  17190. }
  17191. containerLen := dd.ReadMapStart()
  17192. if canChange && v == nil {
  17193. if containerLen > 0 {
  17194. v = make(map[uint16]string, containerLen)
  17195. } else {
  17196. v = make(map[uint16]string) // supports indefinite-length, etc
  17197. }
  17198. changed = true
  17199. }
  17200. if containerLen > 0 {
  17201. for j := 0; j < containerLen; j++ {
  17202. mk := uint16(dd.DecodeUint(16))
  17203. mv := v[mk]
  17204. mv = dd.DecodeString()
  17205. if v != nil {
  17206. v[mk] = mv
  17207. }
  17208. }
  17209. } else if containerLen < 0 {
  17210. for j := 0; !dd.CheckBreak(); j++ {
  17211. if j > 0 {
  17212. dd.ReadMapEntrySeparator()
  17213. }
  17214. mk := uint16(dd.DecodeUint(16))
  17215. dd.ReadMapKVSeparator()
  17216. mv := v[mk]
  17217. mv = dd.DecodeString()
  17218. if v != nil {
  17219. v[mk] = mv
  17220. }
  17221. }
  17222. dd.ReadMapEnd()
  17223. }
  17224. return v, changed
  17225. }
  17226. func (f decFnInfo) fastpathDecMapUint16UintR(rv reflect.Value) {
  17227. if rv.CanAddr() {
  17228. vp := rv.Addr().Interface().(*map[uint16]uint)
  17229. v, changed := fastpathTV.DecMapUint16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  17230. if changed {
  17231. *vp = v
  17232. }
  17233. } else {
  17234. v := rv.Interface().(map[uint16]uint)
  17235. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, f.d)
  17236. }
  17237. }
  17238. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, checkNil bool, d *Decoder) {
  17239. v, changed := f.DecMapUint16UintV(*vp, checkNil, true, d)
  17240. if changed {
  17241. *vp = v
  17242. }
  17243. }
  17244. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, checkNil bool, canChange bool,
  17245. d *Decoder) (_ map[uint16]uint, changed bool) {
  17246. dd := d.d
  17247. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17248. if checkNil && dd.TryDecodeAsNil() {
  17249. if v != nil {
  17250. changed = true
  17251. }
  17252. return nil, changed
  17253. }
  17254. containerLen := dd.ReadMapStart()
  17255. if canChange && v == nil {
  17256. if containerLen > 0 {
  17257. v = make(map[uint16]uint, containerLen)
  17258. } else {
  17259. v = make(map[uint16]uint) // supports indefinite-length, etc
  17260. }
  17261. changed = true
  17262. }
  17263. if containerLen > 0 {
  17264. for j := 0; j < containerLen; j++ {
  17265. mk := uint16(dd.DecodeUint(16))
  17266. mv := v[mk]
  17267. mv = uint(dd.DecodeUint(uintBitsize))
  17268. if v != nil {
  17269. v[mk] = mv
  17270. }
  17271. }
  17272. } else if containerLen < 0 {
  17273. for j := 0; !dd.CheckBreak(); j++ {
  17274. if j > 0 {
  17275. dd.ReadMapEntrySeparator()
  17276. }
  17277. mk := uint16(dd.DecodeUint(16))
  17278. dd.ReadMapKVSeparator()
  17279. mv := v[mk]
  17280. mv = uint(dd.DecodeUint(uintBitsize))
  17281. if v != nil {
  17282. v[mk] = mv
  17283. }
  17284. }
  17285. dd.ReadMapEnd()
  17286. }
  17287. return v, changed
  17288. }
  17289. func (f decFnInfo) fastpathDecMapUint16Uint8R(rv reflect.Value) {
  17290. if rv.CanAddr() {
  17291. vp := rv.Addr().Interface().(*map[uint16]uint8)
  17292. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  17293. if changed {
  17294. *vp = v
  17295. }
  17296. } else {
  17297. v := rv.Interface().(map[uint16]uint8)
  17298. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  17299. }
  17300. }
  17301. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, checkNil bool, d *Decoder) {
  17302. v, changed := f.DecMapUint16Uint8V(*vp, checkNil, true, d)
  17303. if changed {
  17304. *vp = v
  17305. }
  17306. }
  17307. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, checkNil bool, canChange bool,
  17308. d *Decoder) (_ map[uint16]uint8, changed bool) {
  17309. dd := d.d
  17310. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17311. if checkNil && dd.TryDecodeAsNil() {
  17312. if v != nil {
  17313. changed = true
  17314. }
  17315. return nil, changed
  17316. }
  17317. containerLen := dd.ReadMapStart()
  17318. if canChange && v == nil {
  17319. if containerLen > 0 {
  17320. v = make(map[uint16]uint8, containerLen)
  17321. } else {
  17322. v = make(map[uint16]uint8) // supports indefinite-length, etc
  17323. }
  17324. changed = true
  17325. }
  17326. if containerLen > 0 {
  17327. for j := 0; j < containerLen; j++ {
  17328. mk := uint16(dd.DecodeUint(16))
  17329. mv := v[mk]
  17330. mv = uint8(dd.DecodeUint(8))
  17331. if v != nil {
  17332. v[mk] = mv
  17333. }
  17334. }
  17335. } else if containerLen < 0 {
  17336. for j := 0; !dd.CheckBreak(); j++ {
  17337. if j > 0 {
  17338. dd.ReadMapEntrySeparator()
  17339. }
  17340. mk := uint16(dd.DecodeUint(16))
  17341. dd.ReadMapKVSeparator()
  17342. mv := v[mk]
  17343. mv = uint8(dd.DecodeUint(8))
  17344. if v != nil {
  17345. v[mk] = mv
  17346. }
  17347. }
  17348. dd.ReadMapEnd()
  17349. }
  17350. return v, changed
  17351. }
  17352. func (f decFnInfo) fastpathDecMapUint16Uint16R(rv reflect.Value) {
  17353. if rv.CanAddr() {
  17354. vp := rv.Addr().Interface().(*map[uint16]uint16)
  17355. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  17356. if changed {
  17357. *vp = v
  17358. }
  17359. } else {
  17360. v := rv.Interface().(map[uint16]uint16)
  17361. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  17362. }
  17363. }
  17364. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, checkNil bool, d *Decoder) {
  17365. v, changed := f.DecMapUint16Uint16V(*vp, checkNil, true, d)
  17366. if changed {
  17367. *vp = v
  17368. }
  17369. }
  17370. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, checkNil bool, canChange bool,
  17371. d *Decoder) (_ map[uint16]uint16, changed bool) {
  17372. dd := d.d
  17373. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17374. if checkNil && dd.TryDecodeAsNil() {
  17375. if v != nil {
  17376. changed = true
  17377. }
  17378. return nil, changed
  17379. }
  17380. containerLen := dd.ReadMapStart()
  17381. if canChange && v == nil {
  17382. if containerLen > 0 {
  17383. v = make(map[uint16]uint16, containerLen)
  17384. } else {
  17385. v = make(map[uint16]uint16) // supports indefinite-length, etc
  17386. }
  17387. changed = true
  17388. }
  17389. if containerLen > 0 {
  17390. for j := 0; j < containerLen; j++ {
  17391. mk := uint16(dd.DecodeUint(16))
  17392. mv := v[mk]
  17393. mv = uint16(dd.DecodeUint(16))
  17394. if v != nil {
  17395. v[mk] = mv
  17396. }
  17397. }
  17398. } else if containerLen < 0 {
  17399. for j := 0; !dd.CheckBreak(); j++ {
  17400. if j > 0 {
  17401. dd.ReadMapEntrySeparator()
  17402. }
  17403. mk := uint16(dd.DecodeUint(16))
  17404. dd.ReadMapKVSeparator()
  17405. mv := v[mk]
  17406. mv = uint16(dd.DecodeUint(16))
  17407. if v != nil {
  17408. v[mk] = mv
  17409. }
  17410. }
  17411. dd.ReadMapEnd()
  17412. }
  17413. return v, changed
  17414. }
  17415. func (f decFnInfo) fastpathDecMapUint16Uint32R(rv reflect.Value) {
  17416. if rv.CanAddr() {
  17417. vp := rv.Addr().Interface().(*map[uint16]uint32)
  17418. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  17419. if changed {
  17420. *vp = v
  17421. }
  17422. } else {
  17423. v := rv.Interface().(map[uint16]uint32)
  17424. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  17425. }
  17426. }
  17427. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, checkNil bool, d *Decoder) {
  17428. v, changed := f.DecMapUint16Uint32V(*vp, checkNil, true, d)
  17429. if changed {
  17430. *vp = v
  17431. }
  17432. }
  17433. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, checkNil bool, canChange bool,
  17434. d *Decoder) (_ map[uint16]uint32, changed bool) {
  17435. dd := d.d
  17436. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17437. if checkNil && dd.TryDecodeAsNil() {
  17438. if v != nil {
  17439. changed = true
  17440. }
  17441. return nil, changed
  17442. }
  17443. containerLen := dd.ReadMapStart()
  17444. if canChange && v == nil {
  17445. if containerLen > 0 {
  17446. v = make(map[uint16]uint32, containerLen)
  17447. } else {
  17448. v = make(map[uint16]uint32) // supports indefinite-length, etc
  17449. }
  17450. changed = true
  17451. }
  17452. if containerLen > 0 {
  17453. for j := 0; j < containerLen; j++ {
  17454. mk := uint16(dd.DecodeUint(16))
  17455. mv := v[mk]
  17456. mv = uint32(dd.DecodeUint(32))
  17457. if v != nil {
  17458. v[mk] = mv
  17459. }
  17460. }
  17461. } else if containerLen < 0 {
  17462. for j := 0; !dd.CheckBreak(); j++ {
  17463. if j > 0 {
  17464. dd.ReadMapEntrySeparator()
  17465. }
  17466. mk := uint16(dd.DecodeUint(16))
  17467. dd.ReadMapKVSeparator()
  17468. mv := v[mk]
  17469. mv = uint32(dd.DecodeUint(32))
  17470. if v != nil {
  17471. v[mk] = mv
  17472. }
  17473. }
  17474. dd.ReadMapEnd()
  17475. }
  17476. return v, changed
  17477. }
  17478. func (f decFnInfo) fastpathDecMapUint16Uint64R(rv reflect.Value) {
  17479. if rv.CanAddr() {
  17480. vp := rv.Addr().Interface().(*map[uint16]uint64)
  17481. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  17482. if changed {
  17483. *vp = v
  17484. }
  17485. } else {
  17486. v := rv.Interface().(map[uint16]uint64)
  17487. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  17488. }
  17489. }
  17490. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, checkNil bool, d *Decoder) {
  17491. v, changed := f.DecMapUint16Uint64V(*vp, checkNil, true, d)
  17492. if changed {
  17493. *vp = v
  17494. }
  17495. }
  17496. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, checkNil bool, canChange bool,
  17497. d *Decoder) (_ map[uint16]uint64, changed bool) {
  17498. dd := d.d
  17499. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17500. if checkNil && dd.TryDecodeAsNil() {
  17501. if v != nil {
  17502. changed = true
  17503. }
  17504. return nil, changed
  17505. }
  17506. containerLen := dd.ReadMapStart()
  17507. if canChange && v == nil {
  17508. if containerLen > 0 {
  17509. v = make(map[uint16]uint64, containerLen)
  17510. } else {
  17511. v = make(map[uint16]uint64) // supports indefinite-length, etc
  17512. }
  17513. changed = true
  17514. }
  17515. if containerLen > 0 {
  17516. for j := 0; j < containerLen; j++ {
  17517. mk := uint16(dd.DecodeUint(16))
  17518. mv := v[mk]
  17519. mv = dd.DecodeUint(64)
  17520. if v != nil {
  17521. v[mk] = mv
  17522. }
  17523. }
  17524. } else if containerLen < 0 {
  17525. for j := 0; !dd.CheckBreak(); j++ {
  17526. if j > 0 {
  17527. dd.ReadMapEntrySeparator()
  17528. }
  17529. mk := uint16(dd.DecodeUint(16))
  17530. dd.ReadMapKVSeparator()
  17531. mv := v[mk]
  17532. mv = dd.DecodeUint(64)
  17533. if v != nil {
  17534. v[mk] = mv
  17535. }
  17536. }
  17537. dd.ReadMapEnd()
  17538. }
  17539. return v, changed
  17540. }
  17541. func (f decFnInfo) fastpathDecMapUint16IntR(rv reflect.Value) {
  17542. if rv.CanAddr() {
  17543. vp := rv.Addr().Interface().(*map[uint16]int)
  17544. v, changed := fastpathTV.DecMapUint16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  17545. if changed {
  17546. *vp = v
  17547. }
  17548. } else {
  17549. v := rv.Interface().(map[uint16]int)
  17550. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, f.d)
  17551. }
  17552. }
  17553. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, checkNil bool, d *Decoder) {
  17554. v, changed := f.DecMapUint16IntV(*vp, checkNil, true, d)
  17555. if changed {
  17556. *vp = v
  17557. }
  17558. }
  17559. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, checkNil bool, canChange bool,
  17560. d *Decoder) (_ map[uint16]int, changed bool) {
  17561. dd := d.d
  17562. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17563. if checkNil && dd.TryDecodeAsNil() {
  17564. if v != nil {
  17565. changed = true
  17566. }
  17567. return nil, changed
  17568. }
  17569. containerLen := dd.ReadMapStart()
  17570. if canChange && v == nil {
  17571. if containerLen > 0 {
  17572. v = make(map[uint16]int, containerLen)
  17573. } else {
  17574. v = make(map[uint16]int) // supports indefinite-length, etc
  17575. }
  17576. changed = true
  17577. }
  17578. if containerLen > 0 {
  17579. for j := 0; j < containerLen; j++ {
  17580. mk := uint16(dd.DecodeUint(16))
  17581. mv := v[mk]
  17582. mv = int(dd.DecodeInt(intBitsize))
  17583. if v != nil {
  17584. v[mk] = mv
  17585. }
  17586. }
  17587. } else if containerLen < 0 {
  17588. for j := 0; !dd.CheckBreak(); j++ {
  17589. if j > 0 {
  17590. dd.ReadMapEntrySeparator()
  17591. }
  17592. mk := uint16(dd.DecodeUint(16))
  17593. dd.ReadMapKVSeparator()
  17594. mv := v[mk]
  17595. mv = int(dd.DecodeInt(intBitsize))
  17596. if v != nil {
  17597. v[mk] = mv
  17598. }
  17599. }
  17600. dd.ReadMapEnd()
  17601. }
  17602. return v, changed
  17603. }
  17604. func (f decFnInfo) fastpathDecMapUint16Int8R(rv reflect.Value) {
  17605. if rv.CanAddr() {
  17606. vp := rv.Addr().Interface().(*map[uint16]int8)
  17607. v, changed := fastpathTV.DecMapUint16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  17608. if changed {
  17609. *vp = v
  17610. }
  17611. } else {
  17612. v := rv.Interface().(map[uint16]int8)
  17613. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, f.d)
  17614. }
  17615. }
  17616. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, checkNil bool, d *Decoder) {
  17617. v, changed := f.DecMapUint16Int8V(*vp, checkNil, true, d)
  17618. if changed {
  17619. *vp = v
  17620. }
  17621. }
  17622. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, checkNil bool, canChange bool,
  17623. d *Decoder) (_ map[uint16]int8, changed bool) {
  17624. dd := d.d
  17625. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17626. if checkNil && dd.TryDecodeAsNil() {
  17627. if v != nil {
  17628. changed = true
  17629. }
  17630. return nil, changed
  17631. }
  17632. containerLen := dd.ReadMapStart()
  17633. if canChange && v == nil {
  17634. if containerLen > 0 {
  17635. v = make(map[uint16]int8, containerLen)
  17636. } else {
  17637. v = make(map[uint16]int8) // supports indefinite-length, etc
  17638. }
  17639. changed = true
  17640. }
  17641. if containerLen > 0 {
  17642. for j := 0; j < containerLen; j++ {
  17643. mk := uint16(dd.DecodeUint(16))
  17644. mv := v[mk]
  17645. mv = int8(dd.DecodeInt(8))
  17646. if v != nil {
  17647. v[mk] = mv
  17648. }
  17649. }
  17650. } else if containerLen < 0 {
  17651. for j := 0; !dd.CheckBreak(); j++ {
  17652. if j > 0 {
  17653. dd.ReadMapEntrySeparator()
  17654. }
  17655. mk := uint16(dd.DecodeUint(16))
  17656. dd.ReadMapKVSeparator()
  17657. mv := v[mk]
  17658. mv = int8(dd.DecodeInt(8))
  17659. if v != nil {
  17660. v[mk] = mv
  17661. }
  17662. }
  17663. dd.ReadMapEnd()
  17664. }
  17665. return v, changed
  17666. }
  17667. func (f decFnInfo) fastpathDecMapUint16Int16R(rv reflect.Value) {
  17668. if rv.CanAddr() {
  17669. vp := rv.Addr().Interface().(*map[uint16]int16)
  17670. v, changed := fastpathTV.DecMapUint16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  17671. if changed {
  17672. *vp = v
  17673. }
  17674. } else {
  17675. v := rv.Interface().(map[uint16]int16)
  17676. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, f.d)
  17677. }
  17678. }
  17679. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, checkNil bool, d *Decoder) {
  17680. v, changed := f.DecMapUint16Int16V(*vp, checkNil, true, d)
  17681. if changed {
  17682. *vp = v
  17683. }
  17684. }
  17685. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, checkNil bool, canChange bool,
  17686. d *Decoder) (_ map[uint16]int16, changed bool) {
  17687. dd := d.d
  17688. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17689. if checkNil && dd.TryDecodeAsNil() {
  17690. if v != nil {
  17691. changed = true
  17692. }
  17693. return nil, changed
  17694. }
  17695. containerLen := dd.ReadMapStart()
  17696. if canChange && v == nil {
  17697. if containerLen > 0 {
  17698. v = make(map[uint16]int16, containerLen)
  17699. } else {
  17700. v = make(map[uint16]int16) // supports indefinite-length, etc
  17701. }
  17702. changed = true
  17703. }
  17704. if containerLen > 0 {
  17705. for j := 0; j < containerLen; j++ {
  17706. mk := uint16(dd.DecodeUint(16))
  17707. mv := v[mk]
  17708. mv = int16(dd.DecodeInt(16))
  17709. if v != nil {
  17710. v[mk] = mv
  17711. }
  17712. }
  17713. } else if containerLen < 0 {
  17714. for j := 0; !dd.CheckBreak(); j++ {
  17715. if j > 0 {
  17716. dd.ReadMapEntrySeparator()
  17717. }
  17718. mk := uint16(dd.DecodeUint(16))
  17719. dd.ReadMapKVSeparator()
  17720. mv := v[mk]
  17721. mv = int16(dd.DecodeInt(16))
  17722. if v != nil {
  17723. v[mk] = mv
  17724. }
  17725. }
  17726. dd.ReadMapEnd()
  17727. }
  17728. return v, changed
  17729. }
  17730. func (f decFnInfo) fastpathDecMapUint16Int32R(rv reflect.Value) {
  17731. if rv.CanAddr() {
  17732. vp := rv.Addr().Interface().(*map[uint16]int32)
  17733. v, changed := fastpathTV.DecMapUint16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  17734. if changed {
  17735. *vp = v
  17736. }
  17737. } else {
  17738. v := rv.Interface().(map[uint16]int32)
  17739. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, f.d)
  17740. }
  17741. }
  17742. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, checkNil bool, d *Decoder) {
  17743. v, changed := f.DecMapUint16Int32V(*vp, checkNil, true, d)
  17744. if changed {
  17745. *vp = v
  17746. }
  17747. }
  17748. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, checkNil bool, canChange bool,
  17749. d *Decoder) (_ map[uint16]int32, changed bool) {
  17750. dd := d.d
  17751. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17752. if checkNil && dd.TryDecodeAsNil() {
  17753. if v != nil {
  17754. changed = true
  17755. }
  17756. return nil, changed
  17757. }
  17758. containerLen := dd.ReadMapStart()
  17759. if canChange && v == nil {
  17760. if containerLen > 0 {
  17761. v = make(map[uint16]int32, containerLen)
  17762. } else {
  17763. v = make(map[uint16]int32) // supports indefinite-length, etc
  17764. }
  17765. changed = true
  17766. }
  17767. if containerLen > 0 {
  17768. for j := 0; j < containerLen; j++ {
  17769. mk := uint16(dd.DecodeUint(16))
  17770. mv := v[mk]
  17771. mv = int32(dd.DecodeInt(32))
  17772. if v != nil {
  17773. v[mk] = mv
  17774. }
  17775. }
  17776. } else if containerLen < 0 {
  17777. for j := 0; !dd.CheckBreak(); j++ {
  17778. if j > 0 {
  17779. dd.ReadMapEntrySeparator()
  17780. }
  17781. mk := uint16(dd.DecodeUint(16))
  17782. dd.ReadMapKVSeparator()
  17783. mv := v[mk]
  17784. mv = int32(dd.DecodeInt(32))
  17785. if v != nil {
  17786. v[mk] = mv
  17787. }
  17788. }
  17789. dd.ReadMapEnd()
  17790. }
  17791. return v, changed
  17792. }
  17793. func (f decFnInfo) fastpathDecMapUint16Int64R(rv reflect.Value) {
  17794. if rv.CanAddr() {
  17795. vp := rv.Addr().Interface().(*map[uint16]int64)
  17796. v, changed := fastpathTV.DecMapUint16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  17797. if changed {
  17798. *vp = v
  17799. }
  17800. } else {
  17801. v := rv.Interface().(map[uint16]int64)
  17802. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, f.d)
  17803. }
  17804. }
  17805. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, checkNil bool, d *Decoder) {
  17806. v, changed := f.DecMapUint16Int64V(*vp, checkNil, true, d)
  17807. if changed {
  17808. *vp = v
  17809. }
  17810. }
  17811. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, checkNil bool, canChange bool,
  17812. d *Decoder) (_ map[uint16]int64, changed bool) {
  17813. dd := d.d
  17814. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17815. if checkNil && dd.TryDecodeAsNil() {
  17816. if v != nil {
  17817. changed = true
  17818. }
  17819. return nil, changed
  17820. }
  17821. containerLen := dd.ReadMapStart()
  17822. if canChange && v == nil {
  17823. if containerLen > 0 {
  17824. v = make(map[uint16]int64, containerLen)
  17825. } else {
  17826. v = make(map[uint16]int64) // supports indefinite-length, etc
  17827. }
  17828. changed = true
  17829. }
  17830. if containerLen > 0 {
  17831. for j := 0; j < containerLen; j++ {
  17832. mk := uint16(dd.DecodeUint(16))
  17833. mv := v[mk]
  17834. mv = dd.DecodeInt(64)
  17835. if v != nil {
  17836. v[mk] = mv
  17837. }
  17838. }
  17839. } else if containerLen < 0 {
  17840. for j := 0; !dd.CheckBreak(); j++ {
  17841. if j > 0 {
  17842. dd.ReadMapEntrySeparator()
  17843. }
  17844. mk := uint16(dd.DecodeUint(16))
  17845. dd.ReadMapKVSeparator()
  17846. mv := v[mk]
  17847. mv = dd.DecodeInt(64)
  17848. if v != nil {
  17849. v[mk] = mv
  17850. }
  17851. }
  17852. dd.ReadMapEnd()
  17853. }
  17854. return v, changed
  17855. }
  17856. func (f decFnInfo) fastpathDecMapUint16Float32R(rv reflect.Value) {
  17857. if rv.CanAddr() {
  17858. vp := rv.Addr().Interface().(*map[uint16]float32)
  17859. v, changed := fastpathTV.DecMapUint16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  17860. if changed {
  17861. *vp = v
  17862. }
  17863. } else {
  17864. v := rv.Interface().(map[uint16]float32)
  17865. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, f.d)
  17866. }
  17867. }
  17868. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, checkNil bool, d *Decoder) {
  17869. v, changed := f.DecMapUint16Float32V(*vp, checkNil, true, d)
  17870. if changed {
  17871. *vp = v
  17872. }
  17873. }
  17874. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, checkNil bool, canChange bool,
  17875. d *Decoder) (_ map[uint16]float32, changed bool) {
  17876. dd := d.d
  17877. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17878. if checkNil && dd.TryDecodeAsNil() {
  17879. if v != nil {
  17880. changed = true
  17881. }
  17882. return nil, changed
  17883. }
  17884. containerLen := dd.ReadMapStart()
  17885. if canChange && v == nil {
  17886. if containerLen > 0 {
  17887. v = make(map[uint16]float32, containerLen)
  17888. } else {
  17889. v = make(map[uint16]float32) // supports indefinite-length, etc
  17890. }
  17891. changed = true
  17892. }
  17893. if containerLen > 0 {
  17894. for j := 0; j < containerLen; j++ {
  17895. mk := uint16(dd.DecodeUint(16))
  17896. mv := v[mk]
  17897. mv = float32(dd.DecodeFloat(true))
  17898. if v != nil {
  17899. v[mk] = mv
  17900. }
  17901. }
  17902. } else if containerLen < 0 {
  17903. for j := 0; !dd.CheckBreak(); j++ {
  17904. if j > 0 {
  17905. dd.ReadMapEntrySeparator()
  17906. }
  17907. mk := uint16(dd.DecodeUint(16))
  17908. dd.ReadMapKVSeparator()
  17909. mv := v[mk]
  17910. mv = float32(dd.DecodeFloat(true))
  17911. if v != nil {
  17912. v[mk] = mv
  17913. }
  17914. }
  17915. dd.ReadMapEnd()
  17916. }
  17917. return v, changed
  17918. }
  17919. func (f decFnInfo) fastpathDecMapUint16Float64R(rv reflect.Value) {
  17920. if rv.CanAddr() {
  17921. vp := rv.Addr().Interface().(*map[uint16]float64)
  17922. v, changed := fastpathTV.DecMapUint16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  17923. if changed {
  17924. *vp = v
  17925. }
  17926. } else {
  17927. v := rv.Interface().(map[uint16]float64)
  17928. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, f.d)
  17929. }
  17930. }
  17931. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, checkNil bool, d *Decoder) {
  17932. v, changed := f.DecMapUint16Float64V(*vp, checkNil, true, d)
  17933. if changed {
  17934. *vp = v
  17935. }
  17936. }
  17937. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, checkNil bool, canChange bool,
  17938. d *Decoder) (_ map[uint16]float64, changed bool) {
  17939. dd := d.d
  17940. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17941. if checkNil && dd.TryDecodeAsNil() {
  17942. if v != nil {
  17943. changed = true
  17944. }
  17945. return nil, changed
  17946. }
  17947. containerLen := dd.ReadMapStart()
  17948. if canChange && v == nil {
  17949. if containerLen > 0 {
  17950. v = make(map[uint16]float64, containerLen)
  17951. } else {
  17952. v = make(map[uint16]float64) // supports indefinite-length, etc
  17953. }
  17954. changed = true
  17955. }
  17956. if containerLen > 0 {
  17957. for j := 0; j < containerLen; j++ {
  17958. mk := uint16(dd.DecodeUint(16))
  17959. mv := v[mk]
  17960. mv = dd.DecodeFloat(false)
  17961. if v != nil {
  17962. v[mk] = mv
  17963. }
  17964. }
  17965. } else if containerLen < 0 {
  17966. for j := 0; !dd.CheckBreak(); j++ {
  17967. if j > 0 {
  17968. dd.ReadMapEntrySeparator()
  17969. }
  17970. mk := uint16(dd.DecodeUint(16))
  17971. dd.ReadMapKVSeparator()
  17972. mv := v[mk]
  17973. mv = dd.DecodeFloat(false)
  17974. if v != nil {
  17975. v[mk] = mv
  17976. }
  17977. }
  17978. dd.ReadMapEnd()
  17979. }
  17980. return v, changed
  17981. }
  17982. func (f decFnInfo) fastpathDecMapUint16BoolR(rv reflect.Value) {
  17983. if rv.CanAddr() {
  17984. vp := rv.Addr().Interface().(*map[uint16]bool)
  17985. v, changed := fastpathTV.DecMapUint16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  17986. if changed {
  17987. *vp = v
  17988. }
  17989. } else {
  17990. v := rv.Interface().(map[uint16]bool)
  17991. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, f.d)
  17992. }
  17993. }
  17994. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, checkNil bool, d *Decoder) {
  17995. v, changed := f.DecMapUint16BoolV(*vp, checkNil, true, d)
  17996. if changed {
  17997. *vp = v
  17998. }
  17999. }
  18000. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, checkNil bool, canChange bool,
  18001. d *Decoder) (_ map[uint16]bool, changed bool) {
  18002. dd := d.d
  18003. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18004. if checkNil && dd.TryDecodeAsNil() {
  18005. if v != nil {
  18006. changed = true
  18007. }
  18008. return nil, changed
  18009. }
  18010. containerLen := dd.ReadMapStart()
  18011. if canChange && v == nil {
  18012. if containerLen > 0 {
  18013. v = make(map[uint16]bool, containerLen)
  18014. } else {
  18015. v = make(map[uint16]bool) // supports indefinite-length, etc
  18016. }
  18017. changed = true
  18018. }
  18019. if containerLen > 0 {
  18020. for j := 0; j < containerLen; j++ {
  18021. mk := uint16(dd.DecodeUint(16))
  18022. mv := v[mk]
  18023. mv = dd.DecodeBool()
  18024. if v != nil {
  18025. v[mk] = mv
  18026. }
  18027. }
  18028. } else if containerLen < 0 {
  18029. for j := 0; !dd.CheckBreak(); j++ {
  18030. if j > 0 {
  18031. dd.ReadMapEntrySeparator()
  18032. }
  18033. mk := uint16(dd.DecodeUint(16))
  18034. dd.ReadMapKVSeparator()
  18035. mv := v[mk]
  18036. mv = dd.DecodeBool()
  18037. if v != nil {
  18038. v[mk] = mv
  18039. }
  18040. }
  18041. dd.ReadMapEnd()
  18042. }
  18043. return v, changed
  18044. }
  18045. func (f decFnInfo) fastpathDecMapUint32IntfR(rv reflect.Value) {
  18046. if rv.CanAddr() {
  18047. vp := rv.Addr().Interface().(*map[uint32]interface{})
  18048. v, changed := fastpathTV.DecMapUint32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  18049. if changed {
  18050. *vp = v
  18051. }
  18052. } else {
  18053. v := rv.Interface().(map[uint32]interface{})
  18054. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, f.d)
  18055. }
  18056. }
  18057. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, checkNil bool, d *Decoder) {
  18058. v, changed := f.DecMapUint32IntfV(*vp, checkNil, true, d)
  18059. if changed {
  18060. *vp = v
  18061. }
  18062. }
  18063. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, checkNil bool, canChange bool,
  18064. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  18065. dd := d.d
  18066. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18067. if checkNil && dd.TryDecodeAsNil() {
  18068. if v != nil {
  18069. changed = true
  18070. }
  18071. return nil, changed
  18072. }
  18073. containerLen := dd.ReadMapStart()
  18074. if canChange && v == nil {
  18075. if containerLen > 0 {
  18076. v = make(map[uint32]interface{}, containerLen)
  18077. } else {
  18078. v = make(map[uint32]interface{}) // supports indefinite-length, etc
  18079. }
  18080. changed = true
  18081. }
  18082. if containerLen > 0 {
  18083. for j := 0; j < containerLen; j++ {
  18084. mk := uint32(dd.DecodeUint(32))
  18085. mv := v[mk]
  18086. d.decode(&mv)
  18087. if v != nil {
  18088. v[mk] = mv
  18089. }
  18090. }
  18091. } else if containerLen < 0 {
  18092. for j := 0; !dd.CheckBreak(); j++ {
  18093. if j > 0 {
  18094. dd.ReadMapEntrySeparator()
  18095. }
  18096. mk := uint32(dd.DecodeUint(32))
  18097. dd.ReadMapKVSeparator()
  18098. mv := v[mk]
  18099. d.decode(&mv)
  18100. if v != nil {
  18101. v[mk] = mv
  18102. }
  18103. }
  18104. dd.ReadMapEnd()
  18105. }
  18106. return v, changed
  18107. }
  18108. func (f decFnInfo) fastpathDecMapUint32StringR(rv reflect.Value) {
  18109. if rv.CanAddr() {
  18110. vp := rv.Addr().Interface().(*map[uint32]string)
  18111. v, changed := fastpathTV.DecMapUint32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  18112. if changed {
  18113. *vp = v
  18114. }
  18115. } else {
  18116. v := rv.Interface().(map[uint32]string)
  18117. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, f.d)
  18118. }
  18119. }
  18120. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, checkNil bool, d *Decoder) {
  18121. v, changed := f.DecMapUint32StringV(*vp, checkNil, true, d)
  18122. if changed {
  18123. *vp = v
  18124. }
  18125. }
  18126. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, checkNil bool, canChange bool,
  18127. d *Decoder) (_ map[uint32]string, changed bool) {
  18128. dd := d.d
  18129. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18130. if checkNil && dd.TryDecodeAsNil() {
  18131. if v != nil {
  18132. changed = true
  18133. }
  18134. return nil, changed
  18135. }
  18136. containerLen := dd.ReadMapStart()
  18137. if canChange && v == nil {
  18138. if containerLen > 0 {
  18139. v = make(map[uint32]string, containerLen)
  18140. } else {
  18141. v = make(map[uint32]string) // supports indefinite-length, etc
  18142. }
  18143. changed = true
  18144. }
  18145. if containerLen > 0 {
  18146. for j := 0; j < containerLen; j++ {
  18147. mk := uint32(dd.DecodeUint(32))
  18148. mv := v[mk]
  18149. mv = dd.DecodeString()
  18150. if v != nil {
  18151. v[mk] = mv
  18152. }
  18153. }
  18154. } else if containerLen < 0 {
  18155. for j := 0; !dd.CheckBreak(); j++ {
  18156. if j > 0 {
  18157. dd.ReadMapEntrySeparator()
  18158. }
  18159. mk := uint32(dd.DecodeUint(32))
  18160. dd.ReadMapKVSeparator()
  18161. mv := v[mk]
  18162. mv = dd.DecodeString()
  18163. if v != nil {
  18164. v[mk] = mv
  18165. }
  18166. }
  18167. dd.ReadMapEnd()
  18168. }
  18169. return v, changed
  18170. }
  18171. func (f decFnInfo) fastpathDecMapUint32UintR(rv reflect.Value) {
  18172. if rv.CanAddr() {
  18173. vp := rv.Addr().Interface().(*map[uint32]uint)
  18174. v, changed := fastpathTV.DecMapUint32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  18175. if changed {
  18176. *vp = v
  18177. }
  18178. } else {
  18179. v := rv.Interface().(map[uint32]uint)
  18180. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, f.d)
  18181. }
  18182. }
  18183. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, checkNil bool, d *Decoder) {
  18184. v, changed := f.DecMapUint32UintV(*vp, checkNil, true, d)
  18185. if changed {
  18186. *vp = v
  18187. }
  18188. }
  18189. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, checkNil bool, canChange bool,
  18190. d *Decoder) (_ map[uint32]uint, changed bool) {
  18191. dd := d.d
  18192. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18193. if checkNil && dd.TryDecodeAsNil() {
  18194. if v != nil {
  18195. changed = true
  18196. }
  18197. return nil, changed
  18198. }
  18199. containerLen := dd.ReadMapStart()
  18200. if canChange && v == nil {
  18201. if containerLen > 0 {
  18202. v = make(map[uint32]uint, containerLen)
  18203. } else {
  18204. v = make(map[uint32]uint) // supports indefinite-length, etc
  18205. }
  18206. changed = true
  18207. }
  18208. if containerLen > 0 {
  18209. for j := 0; j < containerLen; j++ {
  18210. mk := uint32(dd.DecodeUint(32))
  18211. mv := v[mk]
  18212. mv = uint(dd.DecodeUint(uintBitsize))
  18213. if v != nil {
  18214. v[mk] = mv
  18215. }
  18216. }
  18217. } else if containerLen < 0 {
  18218. for j := 0; !dd.CheckBreak(); j++ {
  18219. if j > 0 {
  18220. dd.ReadMapEntrySeparator()
  18221. }
  18222. mk := uint32(dd.DecodeUint(32))
  18223. dd.ReadMapKVSeparator()
  18224. mv := v[mk]
  18225. mv = uint(dd.DecodeUint(uintBitsize))
  18226. if v != nil {
  18227. v[mk] = mv
  18228. }
  18229. }
  18230. dd.ReadMapEnd()
  18231. }
  18232. return v, changed
  18233. }
  18234. func (f decFnInfo) fastpathDecMapUint32Uint8R(rv reflect.Value) {
  18235. if rv.CanAddr() {
  18236. vp := rv.Addr().Interface().(*map[uint32]uint8)
  18237. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  18238. if changed {
  18239. *vp = v
  18240. }
  18241. } else {
  18242. v := rv.Interface().(map[uint32]uint8)
  18243. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  18244. }
  18245. }
  18246. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, checkNil bool, d *Decoder) {
  18247. v, changed := f.DecMapUint32Uint8V(*vp, checkNil, true, d)
  18248. if changed {
  18249. *vp = v
  18250. }
  18251. }
  18252. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, checkNil bool, canChange bool,
  18253. d *Decoder) (_ map[uint32]uint8, changed bool) {
  18254. dd := d.d
  18255. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18256. if checkNil && dd.TryDecodeAsNil() {
  18257. if v != nil {
  18258. changed = true
  18259. }
  18260. return nil, changed
  18261. }
  18262. containerLen := dd.ReadMapStart()
  18263. if canChange && v == nil {
  18264. if containerLen > 0 {
  18265. v = make(map[uint32]uint8, containerLen)
  18266. } else {
  18267. v = make(map[uint32]uint8) // supports indefinite-length, etc
  18268. }
  18269. changed = true
  18270. }
  18271. if containerLen > 0 {
  18272. for j := 0; j < containerLen; j++ {
  18273. mk := uint32(dd.DecodeUint(32))
  18274. mv := v[mk]
  18275. mv = uint8(dd.DecodeUint(8))
  18276. if v != nil {
  18277. v[mk] = mv
  18278. }
  18279. }
  18280. } else if containerLen < 0 {
  18281. for j := 0; !dd.CheckBreak(); j++ {
  18282. if j > 0 {
  18283. dd.ReadMapEntrySeparator()
  18284. }
  18285. mk := uint32(dd.DecodeUint(32))
  18286. dd.ReadMapKVSeparator()
  18287. mv := v[mk]
  18288. mv = uint8(dd.DecodeUint(8))
  18289. if v != nil {
  18290. v[mk] = mv
  18291. }
  18292. }
  18293. dd.ReadMapEnd()
  18294. }
  18295. return v, changed
  18296. }
  18297. func (f decFnInfo) fastpathDecMapUint32Uint16R(rv reflect.Value) {
  18298. if rv.CanAddr() {
  18299. vp := rv.Addr().Interface().(*map[uint32]uint16)
  18300. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  18301. if changed {
  18302. *vp = v
  18303. }
  18304. } else {
  18305. v := rv.Interface().(map[uint32]uint16)
  18306. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  18307. }
  18308. }
  18309. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, checkNil bool, d *Decoder) {
  18310. v, changed := f.DecMapUint32Uint16V(*vp, checkNil, true, d)
  18311. if changed {
  18312. *vp = v
  18313. }
  18314. }
  18315. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, checkNil bool, canChange bool,
  18316. d *Decoder) (_ map[uint32]uint16, changed bool) {
  18317. dd := d.d
  18318. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18319. if checkNil && dd.TryDecodeAsNil() {
  18320. if v != nil {
  18321. changed = true
  18322. }
  18323. return nil, changed
  18324. }
  18325. containerLen := dd.ReadMapStart()
  18326. if canChange && v == nil {
  18327. if containerLen > 0 {
  18328. v = make(map[uint32]uint16, containerLen)
  18329. } else {
  18330. v = make(map[uint32]uint16) // supports indefinite-length, etc
  18331. }
  18332. changed = true
  18333. }
  18334. if containerLen > 0 {
  18335. for j := 0; j < containerLen; j++ {
  18336. mk := uint32(dd.DecodeUint(32))
  18337. mv := v[mk]
  18338. mv = uint16(dd.DecodeUint(16))
  18339. if v != nil {
  18340. v[mk] = mv
  18341. }
  18342. }
  18343. } else if containerLen < 0 {
  18344. for j := 0; !dd.CheckBreak(); j++ {
  18345. if j > 0 {
  18346. dd.ReadMapEntrySeparator()
  18347. }
  18348. mk := uint32(dd.DecodeUint(32))
  18349. dd.ReadMapKVSeparator()
  18350. mv := v[mk]
  18351. mv = uint16(dd.DecodeUint(16))
  18352. if v != nil {
  18353. v[mk] = mv
  18354. }
  18355. }
  18356. dd.ReadMapEnd()
  18357. }
  18358. return v, changed
  18359. }
  18360. func (f decFnInfo) fastpathDecMapUint32Uint32R(rv reflect.Value) {
  18361. if rv.CanAddr() {
  18362. vp := rv.Addr().Interface().(*map[uint32]uint32)
  18363. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  18364. if changed {
  18365. *vp = v
  18366. }
  18367. } else {
  18368. v := rv.Interface().(map[uint32]uint32)
  18369. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  18370. }
  18371. }
  18372. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, checkNil bool, d *Decoder) {
  18373. v, changed := f.DecMapUint32Uint32V(*vp, checkNil, true, d)
  18374. if changed {
  18375. *vp = v
  18376. }
  18377. }
  18378. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, checkNil bool, canChange bool,
  18379. d *Decoder) (_ map[uint32]uint32, changed bool) {
  18380. dd := d.d
  18381. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18382. if checkNil && dd.TryDecodeAsNil() {
  18383. if v != nil {
  18384. changed = true
  18385. }
  18386. return nil, changed
  18387. }
  18388. containerLen := dd.ReadMapStart()
  18389. if canChange && v == nil {
  18390. if containerLen > 0 {
  18391. v = make(map[uint32]uint32, containerLen)
  18392. } else {
  18393. v = make(map[uint32]uint32) // supports indefinite-length, etc
  18394. }
  18395. changed = true
  18396. }
  18397. if containerLen > 0 {
  18398. for j := 0; j < containerLen; j++ {
  18399. mk := uint32(dd.DecodeUint(32))
  18400. mv := v[mk]
  18401. mv = uint32(dd.DecodeUint(32))
  18402. if v != nil {
  18403. v[mk] = mv
  18404. }
  18405. }
  18406. } else if containerLen < 0 {
  18407. for j := 0; !dd.CheckBreak(); j++ {
  18408. if j > 0 {
  18409. dd.ReadMapEntrySeparator()
  18410. }
  18411. mk := uint32(dd.DecodeUint(32))
  18412. dd.ReadMapKVSeparator()
  18413. mv := v[mk]
  18414. mv = uint32(dd.DecodeUint(32))
  18415. if v != nil {
  18416. v[mk] = mv
  18417. }
  18418. }
  18419. dd.ReadMapEnd()
  18420. }
  18421. return v, changed
  18422. }
  18423. func (f decFnInfo) fastpathDecMapUint32Uint64R(rv reflect.Value) {
  18424. if rv.CanAddr() {
  18425. vp := rv.Addr().Interface().(*map[uint32]uint64)
  18426. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  18427. if changed {
  18428. *vp = v
  18429. }
  18430. } else {
  18431. v := rv.Interface().(map[uint32]uint64)
  18432. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  18433. }
  18434. }
  18435. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, checkNil bool, d *Decoder) {
  18436. v, changed := f.DecMapUint32Uint64V(*vp, checkNil, true, d)
  18437. if changed {
  18438. *vp = v
  18439. }
  18440. }
  18441. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, checkNil bool, canChange bool,
  18442. d *Decoder) (_ map[uint32]uint64, changed bool) {
  18443. dd := d.d
  18444. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18445. if checkNil && dd.TryDecodeAsNil() {
  18446. if v != nil {
  18447. changed = true
  18448. }
  18449. return nil, changed
  18450. }
  18451. containerLen := dd.ReadMapStart()
  18452. if canChange && v == nil {
  18453. if containerLen > 0 {
  18454. v = make(map[uint32]uint64, containerLen)
  18455. } else {
  18456. v = make(map[uint32]uint64) // supports indefinite-length, etc
  18457. }
  18458. changed = true
  18459. }
  18460. if containerLen > 0 {
  18461. for j := 0; j < containerLen; j++ {
  18462. mk := uint32(dd.DecodeUint(32))
  18463. mv := v[mk]
  18464. mv = dd.DecodeUint(64)
  18465. if v != nil {
  18466. v[mk] = mv
  18467. }
  18468. }
  18469. } else if containerLen < 0 {
  18470. for j := 0; !dd.CheckBreak(); j++ {
  18471. if j > 0 {
  18472. dd.ReadMapEntrySeparator()
  18473. }
  18474. mk := uint32(dd.DecodeUint(32))
  18475. dd.ReadMapKVSeparator()
  18476. mv := v[mk]
  18477. mv = dd.DecodeUint(64)
  18478. if v != nil {
  18479. v[mk] = mv
  18480. }
  18481. }
  18482. dd.ReadMapEnd()
  18483. }
  18484. return v, changed
  18485. }
  18486. func (f decFnInfo) fastpathDecMapUint32IntR(rv reflect.Value) {
  18487. if rv.CanAddr() {
  18488. vp := rv.Addr().Interface().(*map[uint32]int)
  18489. v, changed := fastpathTV.DecMapUint32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  18490. if changed {
  18491. *vp = v
  18492. }
  18493. } else {
  18494. v := rv.Interface().(map[uint32]int)
  18495. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, f.d)
  18496. }
  18497. }
  18498. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, checkNil bool, d *Decoder) {
  18499. v, changed := f.DecMapUint32IntV(*vp, checkNil, true, d)
  18500. if changed {
  18501. *vp = v
  18502. }
  18503. }
  18504. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, checkNil bool, canChange bool,
  18505. d *Decoder) (_ map[uint32]int, changed bool) {
  18506. dd := d.d
  18507. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18508. if checkNil && dd.TryDecodeAsNil() {
  18509. if v != nil {
  18510. changed = true
  18511. }
  18512. return nil, changed
  18513. }
  18514. containerLen := dd.ReadMapStart()
  18515. if canChange && v == nil {
  18516. if containerLen > 0 {
  18517. v = make(map[uint32]int, containerLen)
  18518. } else {
  18519. v = make(map[uint32]int) // supports indefinite-length, etc
  18520. }
  18521. changed = true
  18522. }
  18523. if containerLen > 0 {
  18524. for j := 0; j < containerLen; j++ {
  18525. mk := uint32(dd.DecodeUint(32))
  18526. mv := v[mk]
  18527. mv = int(dd.DecodeInt(intBitsize))
  18528. if v != nil {
  18529. v[mk] = mv
  18530. }
  18531. }
  18532. } else if containerLen < 0 {
  18533. for j := 0; !dd.CheckBreak(); j++ {
  18534. if j > 0 {
  18535. dd.ReadMapEntrySeparator()
  18536. }
  18537. mk := uint32(dd.DecodeUint(32))
  18538. dd.ReadMapKVSeparator()
  18539. mv := v[mk]
  18540. mv = int(dd.DecodeInt(intBitsize))
  18541. if v != nil {
  18542. v[mk] = mv
  18543. }
  18544. }
  18545. dd.ReadMapEnd()
  18546. }
  18547. return v, changed
  18548. }
  18549. func (f decFnInfo) fastpathDecMapUint32Int8R(rv reflect.Value) {
  18550. if rv.CanAddr() {
  18551. vp := rv.Addr().Interface().(*map[uint32]int8)
  18552. v, changed := fastpathTV.DecMapUint32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  18553. if changed {
  18554. *vp = v
  18555. }
  18556. } else {
  18557. v := rv.Interface().(map[uint32]int8)
  18558. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, f.d)
  18559. }
  18560. }
  18561. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, checkNil bool, d *Decoder) {
  18562. v, changed := f.DecMapUint32Int8V(*vp, checkNil, true, d)
  18563. if changed {
  18564. *vp = v
  18565. }
  18566. }
  18567. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, checkNil bool, canChange bool,
  18568. d *Decoder) (_ map[uint32]int8, changed bool) {
  18569. dd := d.d
  18570. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18571. if checkNil && dd.TryDecodeAsNil() {
  18572. if v != nil {
  18573. changed = true
  18574. }
  18575. return nil, changed
  18576. }
  18577. containerLen := dd.ReadMapStart()
  18578. if canChange && v == nil {
  18579. if containerLen > 0 {
  18580. v = make(map[uint32]int8, containerLen)
  18581. } else {
  18582. v = make(map[uint32]int8) // supports indefinite-length, etc
  18583. }
  18584. changed = true
  18585. }
  18586. if containerLen > 0 {
  18587. for j := 0; j < containerLen; j++ {
  18588. mk := uint32(dd.DecodeUint(32))
  18589. mv := v[mk]
  18590. mv = int8(dd.DecodeInt(8))
  18591. if v != nil {
  18592. v[mk] = mv
  18593. }
  18594. }
  18595. } else if containerLen < 0 {
  18596. for j := 0; !dd.CheckBreak(); j++ {
  18597. if j > 0 {
  18598. dd.ReadMapEntrySeparator()
  18599. }
  18600. mk := uint32(dd.DecodeUint(32))
  18601. dd.ReadMapKVSeparator()
  18602. mv := v[mk]
  18603. mv = int8(dd.DecodeInt(8))
  18604. if v != nil {
  18605. v[mk] = mv
  18606. }
  18607. }
  18608. dd.ReadMapEnd()
  18609. }
  18610. return v, changed
  18611. }
  18612. func (f decFnInfo) fastpathDecMapUint32Int16R(rv reflect.Value) {
  18613. if rv.CanAddr() {
  18614. vp := rv.Addr().Interface().(*map[uint32]int16)
  18615. v, changed := fastpathTV.DecMapUint32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  18616. if changed {
  18617. *vp = v
  18618. }
  18619. } else {
  18620. v := rv.Interface().(map[uint32]int16)
  18621. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, f.d)
  18622. }
  18623. }
  18624. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, checkNil bool, d *Decoder) {
  18625. v, changed := f.DecMapUint32Int16V(*vp, checkNil, true, d)
  18626. if changed {
  18627. *vp = v
  18628. }
  18629. }
  18630. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, checkNil bool, canChange bool,
  18631. d *Decoder) (_ map[uint32]int16, changed bool) {
  18632. dd := d.d
  18633. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18634. if checkNil && dd.TryDecodeAsNil() {
  18635. if v != nil {
  18636. changed = true
  18637. }
  18638. return nil, changed
  18639. }
  18640. containerLen := dd.ReadMapStart()
  18641. if canChange && v == nil {
  18642. if containerLen > 0 {
  18643. v = make(map[uint32]int16, containerLen)
  18644. } else {
  18645. v = make(map[uint32]int16) // supports indefinite-length, etc
  18646. }
  18647. changed = true
  18648. }
  18649. if containerLen > 0 {
  18650. for j := 0; j < containerLen; j++ {
  18651. mk := uint32(dd.DecodeUint(32))
  18652. mv := v[mk]
  18653. mv = int16(dd.DecodeInt(16))
  18654. if v != nil {
  18655. v[mk] = mv
  18656. }
  18657. }
  18658. } else if containerLen < 0 {
  18659. for j := 0; !dd.CheckBreak(); j++ {
  18660. if j > 0 {
  18661. dd.ReadMapEntrySeparator()
  18662. }
  18663. mk := uint32(dd.DecodeUint(32))
  18664. dd.ReadMapKVSeparator()
  18665. mv := v[mk]
  18666. mv = int16(dd.DecodeInt(16))
  18667. if v != nil {
  18668. v[mk] = mv
  18669. }
  18670. }
  18671. dd.ReadMapEnd()
  18672. }
  18673. return v, changed
  18674. }
  18675. func (f decFnInfo) fastpathDecMapUint32Int32R(rv reflect.Value) {
  18676. if rv.CanAddr() {
  18677. vp := rv.Addr().Interface().(*map[uint32]int32)
  18678. v, changed := fastpathTV.DecMapUint32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  18679. if changed {
  18680. *vp = v
  18681. }
  18682. } else {
  18683. v := rv.Interface().(map[uint32]int32)
  18684. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, f.d)
  18685. }
  18686. }
  18687. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, checkNil bool, d *Decoder) {
  18688. v, changed := f.DecMapUint32Int32V(*vp, checkNil, true, d)
  18689. if changed {
  18690. *vp = v
  18691. }
  18692. }
  18693. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, checkNil bool, canChange bool,
  18694. d *Decoder) (_ map[uint32]int32, changed bool) {
  18695. dd := d.d
  18696. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18697. if checkNil && dd.TryDecodeAsNil() {
  18698. if v != nil {
  18699. changed = true
  18700. }
  18701. return nil, changed
  18702. }
  18703. containerLen := dd.ReadMapStart()
  18704. if canChange && v == nil {
  18705. if containerLen > 0 {
  18706. v = make(map[uint32]int32, containerLen)
  18707. } else {
  18708. v = make(map[uint32]int32) // supports indefinite-length, etc
  18709. }
  18710. changed = true
  18711. }
  18712. if containerLen > 0 {
  18713. for j := 0; j < containerLen; j++ {
  18714. mk := uint32(dd.DecodeUint(32))
  18715. mv := v[mk]
  18716. mv = int32(dd.DecodeInt(32))
  18717. if v != nil {
  18718. v[mk] = mv
  18719. }
  18720. }
  18721. } else if containerLen < 0 {
  18722. for j := 0; !dd.CheckBreak(); j++ {
  18723. if j > 0 {
  18724. dd.ReadMapEntrySeparator()
  18725. }
  18726. mk := uint32(dd.DecodeUint(32))
  18727. dd.ReadMapKVSeparator()
  18728. mv := v[mk]
  18729. mv = int32(dd.DecodeInt(32))
  18730. if v != nil {
  18731. v[mk] = mv
  18732. }
  18733. }
  18734. dd.ReadMapEnd()
  18735. }
  18736. return v, changed
  18737. }
  18738. func (f decFnInfo) fastpathDecMapUint32Int64R(rv reflect.Value) {
  18739. if rv.CanAddr() {
  18740. vp := rv.Addr().Interface().(*map[uint32]int64)
  18741. v, changed := fastpathTV.DecMapUint32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  18742. if changed {
  18743. *vp = v
  18744. }
  18745. } else {
  18746. v := rv.Interface().(map[uint32]int64)
  18747. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, f.d)
  18748. }
  18749. }
  18750. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, checkNil bool, d *Decoder) {
  18751. v, changed := f.DecMapUint32Int64V(*vp, checkNil, true, d)
  18752. if changed {
  18753. *vp = v
  18754. }
  18755. }
  18756. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, checkNil bool, canChange bool,
  18757. d *Decoder) (_ map[uint32]int64, changed bool) {
  18758. dd := d.d
  18759. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18760. if checkNil && dd.TryDecodeAsNil() {
  18761. if v != nil {
  18762. changed = true
  18763. }
  18764. return nil, changed
  18765. }
  18766. containerLen := dd.ReadMapStart()
  18767. if canChange && v == nil {
  18768. if containerLen > 0 {
  18769. v = make(map[uint32]int64, containerLen)
  18770. } else {
  18771. v = make(map[uint32]int64) // supports indefinite-length, etc
  18772. }
  18773. changed = true
  18774. }
  18775. if containerLen > 0 {
  18776. for j := 0; j < containerLen; j++ {
  18777. mk := uint32(dd.DecodeUint(32))
  18778. mv := v[mk]
  18779. mv = dd.DecodeInt(64)
  18780. if v != nil {
  18781. v[mk] = mv
  18782. }
  18783. }
  18784. } else if containerLen < 0 {
  18785. for j := 0; !dd.CheckBreak(); j++ {
  18786. if j > 0 {
  18787. dd.ReadMapEntrySeparator()
  18788. }
  18789. mk := uint32(dd.DecodeUint(32))
  18790. dd.ReadMapKVSeparator()
  18791. mv := v[mk]
  18792. mv = dd.DecodeInt(64)
  18793. if v != nil {
  18794. v[mk] = mv
  18795. }
  18796. }
  18797. dd.ReadMapEnd()
  18798. }
  18799. return v, changed
  18800. }
  18801. func (f decFnInfo) fastpathDecMapUint32Float32R(rv reflect.Value) {
  18802. if rv.CanAddr() {
  18803. vp := rv.Addr().Interface().(*map[uint32]float32)
  18804. v, changed := fastpathTV.DecMapUint32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  18805. if changed {
  18806. *vp = v
  18807. }
  18808. } else {
  18809. v := rv.Interface().(map[uint32]float32)
  18810. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, f.d)
  18811. }
  18812. }
  18813. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, checkNil bool, d *Decoder) {
  18814. v, changed := f.DecMapUint32Float32V(*vp, checkNil, true, d)
  18815. if changed {
  18816. *vp = v
  18817. }
  18818. }
  18819. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, checkNil bool, canChange bool,
  18820. d *Decoder) (_ map[uint32]float32, changed bool) {
  18821. dd := d.d
  18822. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18823. if checkNil && dd.TryDecodeAsNil() {
  18824. if v != nil {
  18825. changed = true
  18826. }
  18827. return nil, changed
  18828. }
  18829. containerLen := dd.ReadMapStart()
  18830. if canChange && v == nil {
  18831. if containerLen > 0 {
  18832. v = make(map[uint32]float32, containerLen)
  18833. } else {
  18834. v = make(map[uint32]float32) // supports indefinite-length, etc
  18835. }
  18836. changed = true
  18837. }
  18838. if containerLen > 0 {
  18839. for j := 0; j < containerLen; j++ {
  18840. mk := uint32(dd.DecodeUint(32))
  18841. mv := v[mk]
  18842. mv = float32(dd.DecodeFloat(true))
  18843. if v != nil {
  18844. v[mk] = mv
  18845. }
  18846. }
  18847. } else if containerLen < 0 {
  18848. for j := 0; !dd.CheckBreak(); j++ {
  18849. if j > 0 {
  18850. dd.ReadMapEntrySeparator()
  18851. }
  18852. mk := uint32(dd.DecodeUint(32))
  18853. dd.ReadMapKVSeparator()
  18854. mv := v[mk]
  18855. mv = float32(dd.DecodeFloat(true))
  18856. if v != nil {
  18857. v[mk] = mv
  18858. }
  18859. }
  18860. dd.ReadMapEnd()
  18861. }
  18862. return v, changed
  18863. }
  18864. func (f decFnInfo) fastpathDecMapUint32Float64R(rv reflect.Value) {
  18865. if rv.CanAddr() {
  18866. vp := rv.Addr().Interface().(*map[uint32]float64)
  18867. v, changed := fastpathTV.DecMapUint32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  18868. if changed {
  18869. *vp = v
  18870. }
  18871. } else {
  18872. v := rv.Interface().(map[uint32]float64)
  18873. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, f.d)
  18874. }
  18875. }
  18876. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, checkNil bool, d *Decoder) {
  18877. v, changed := f.DecMapUint32Float64V(*vp, checkNil, true, d)
  18878. if changed {
  18879. *vp = v
  18880. }
  18881. }
  18882. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, checkNil bool, canChange bool,
  18883. d *Decoder) (_ map[uint32]float64, changed bool) {
  18884. dd := d.d
  18885. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18886. if checkNil && dd.TryDecodeAsNil() {
  18887. if v != nil {
  18888. changed = true
  18889. }
  18890. return nil, changed
  18891. }
  18892. containerLen := dd.ReadMapStart()
  18893. if canChange && v == nil {
  18894. if containerLen > 0 {
  18895. v = make(map[uint32]float64, containerLen)
  18896. } else {
  18897. v = make(map[uint32]float64) // supports indefinite-length, etc
  18898. }
  18899. changed = true
  18900. }
  18901. if containerLen > 0 {
  18902. for j := 0; j < containerLen; j++ {
  18903. mk := uint32(dd.DecodeUint(32))
  18904. mv := v[mk]
  18905. mv = dd.DecodeFloat(false)
  18906. if v != nil {
  18907. v[mk] = mv
  18908. }
  18909. }
  18910. } else if containerLen < 0 {
  18911. for j := 0; !dd.CheckBreak(); j++ {
  18912. if j > 0 {
  18913. dd.ReadMapEntrySeparator()
  18914. }
  18915. mk := uint32(dd.DecodeUint(32))
  18916. dd.ReadMapKVSeparator()
  18917. mv := v[mk]
  18918. mv = dd.DecodeFloat(false)
  18919. if v != nil {
  18920. v[mk] = mv
  18921. }
  18922. }
  18923. dd.ReadMapEnd()
  18924. }
  18925. return v, changed
  18926. }
  18927. func (f decFnInfo) fastpathDecMapUint32BoolR(rv reflect.Value) {
  18928. if rv.CanAddr() {
  18929. vp := rv.Addr().Interface().(*map[uint32]bool)
  18930. v, changed := fastpathTV.DecMapUint32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  18931. if changed {
  18932. *vp = v
  18933. }
  18934. } else {
  18935. v := rv.Interface().(map[uint32]bool)
  18936. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, f.d)
  18937. }
  18938. }
  18939. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, checkNil bool, d *Decoder) {
  18940. v, changed := f.DecMapUint32BoolV(*vp, checkNil, true, d)
  18941. if changed {
  18942. *vp = v
  18943. }
  18944. }
  18945. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, checkNil bool, canChange bool,
  18946. d *Decoder) (_ map[uint32]bool, changed bool) {
  18947. dd := d.d
  18948. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18949. if checkNil && dd.TryDecodeAsNil() {
  18950. if v != nil {
  18951. changed = true
  18952. }
  18953. return nil, changed
  18954. }
  18955. containerLen := dd.ReadMapStart()
  18956. if canChange && v == nil {
  18957. if containerLen > 0 {
  18958. v = make(map[uint32]bool, containerLen)
  18959. } else {
  18960. v = make(map[uint32]bool) // supports indefinite-length, etc
  18961. }
  18962. changed = true
  18963. }
  18964. if containerLen > 0 {
  18965. for j := 0; j < containerLen; j++ {
  18966. mk := uint32(dd.DecodeUint(32))
  18967. mv := v[mk]
  18968. mv = dd.DecodeBool()
  18969. if v != nil {
  18970. v[mk] = mv
  18971. }
  18972. }
  18973. } else if containerLen < 0 {
  18974. for j := 0; !dd.CheckBreak(); j++ {
  18975. if j > 0 {
  18976. dd.ReadMapEntrySeparator()
  18977. }
  18978. mk := uint32(dd.DecodeUint(32))
  18979. dd.ReadMapKVSeparator()
  18980. mv := v[mk]
  18981. mv = dd.DecodeBool()
  18982. if v != nil {
  18983. v[mk] = mv
  18984. }
  18985. }
  18986. dd.ReadMapEnd()
  18987. }
  18988. return v, changed
  18989. }
  18990. func (f decFnInfo) fastpathDecMapUint64IntfR(rv reflect.Value) {
  18991. if rv.CanAddr() {
  18992. vp := rv.Addr().Interface().(*map[uint64]interface{})
  18993. v, changed := fastpathTV.DecMapUint64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  18994. if changed {
  18995. *vp = v
  18996. }
  18997. } else {
  18998. v := rv.Interface().(map[uint64]interface{})
  18999. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, f.d)
  19000. }
  19001. }
  19002. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, checkNil bool, d *Decoder) {
  19003. v, changed := f.DecMapUint64IntfV(*vp, checkNil, true, d)
  19004. if changed {
  19005. *vp = v
  19006. }
  19007. }
  19008. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, checkNil bool, canChange bool,
  19009. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  19010. dd := d.d
  19011. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19012. if checkNil && dd.TryDecodeAsNil() {
  19013. if v != nil {
  19014. changed = true
  19015. }
  19016. return nil, changed
  19017. }
  19018. containerLen := dd.ReadMapStart()
  19019. if canChange && v == nil {
  19020. if containerLen > 0 {
  19021. v = make(map[uint64]interface{}, containerLen)
  19022. } else {
  19023. v = make(map[uint64]interface{}) // supports indefinite-length, etc
  19024. }
  19025. changed = true
  19026. }
  19027. if containerLen > 0 {
  19028. for j := 0; j < containerLen; j++ {
  19029. mk := dd.DecodeUint(64)
  19030. mv := v[mk]
  19031. d.decode(&mv)
  19032. if v != nil {
  19033. v[mk] = mv
  19034. }
  19035. }
  19036. } else if containerLen < 0 {
  19037. for j := 0; !dd.CheckBreak(); j++ {
  19038. if j > 0 {
  19039. dd.ReadMapEntrySeparator()
  19040. }
  19041. mk := dd.DecodeUint(64)
  19042. dd.ReadMapKVSeparator()
  19043. mv := v[mk]
  19044. d.decode(&mv)
  19045. if v != nil {
  19046. v[mk] = mv
  19047. }
  19048. }
  19049. dd.ReadMapEnd()
  19050. }
  19051. return v, changed
  19052. }
  19053. func (f decFnInfo) fastpathDecMapUint64StringR(rv reflect.Value) {
  19054. if rv.CanAddr() {
  19055. vp := rv.Addr().Interface().(*map[uint64]string)
  19056. v, changed := fastpathTV.DecMapUint64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  19057. if changed {
  19058. *vp = v
  19059. }
  19060. } else {
  19061. v := rv.Interface().(map[uint64]string)
  19062. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, f.d)
  19063. }
  19064. }
  19065. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, checkNil bool, d *Decoder) {
  19066. v, changed := f.DecMapUint64StringV(*vp, checkNil, true, d)
  19067. if changed {
  19068. *vp = v
  19069. }
  19070. }
  19071. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, checkNil bool, canChange bool,
  19072. d *Decoder) (_ map[uint64]string, changed bool) {
  19073. dd := d.d
  19074. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19075. if checkNil && dd.TryDecodeAsNil() {
  19076. if v != nil {
  19077. changed = true
  19078. }
  19079. return nil, changed
  19080. }
  19081. containerLen := dd.ReadMapStart()
  19082. if canChange && v == nil {
  19083. if containerLen > 0 {
  19084. v = make(map[uint64]string, containerLen)
  19085. } else {
  19086. v = make(map[uint64]string) // supports indefinite-length, etc
  19087. }
  19088. changed = true
  19089. }
  19090. if containerLen > 0 {
  19091. for j := 0; j < containerLen; j++ {
  19092. mk := dd.DecodeUint(64)
  19093. mv := v[mk]
  19094. mv = dd.DecodeString()
  19095. if v != nil {
  19096. v[mk] = mv
  19097. }
  19098. }
  19099. } else if containerLen < 0 {
  19100. for j := 0; !dd.CheckBreak(); j++ {
  19101. if j > 0 {
  19102. dd.ReadMapEntrySeparator()
  19103. }
  19104. mk := dd.DecodeUint(64)
  19105. dd.ReadMapKVSeparator()
  19106. mv := v[mk]
  19107. mv = dd.DecodeString()
  19108. if v != nil {
  19109. v[mk] = mv
  19110. }
  19111. }
  19112. dd.ReadMapEnd()
  19113. }
  19114. return v, changed
  19115. }
  19116. func (f decFnInfo) fastpathDecMapUint64UintR(rv reflect.Value) {
  19117. if rv.CanAddr() {
  19118. vp := rv.Addr().Interface().(*map[uint64]uint)
  19119. v, changed := fastpathTV.DecMapUint64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  19120. if changed {
  19121. *vp = v
  19122. }
  19123. } else {
  19124. v := rv.Interface().(map[uint64]uint)
  19125. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, f.d)
  19126. }
  19127. }
  19128. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, checkNil bool, d *Decoder) {
  19129. v, changed := f.DecMapUint64UintV(*vp, checkNil, true, d)
  19130. if changed {
  19131. *vp = v
  19132. }
  19133. }
  19134. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, checkNil bool, canChange bool,
  19135. d *Decoder) (_ map[uint64]uint, changed bool) {
  19136. dd := d.d
  19137. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19138. if checkNil && dd.TryDecodeAsNil() {
  19139. if v != nil {
  19140. changed = true
  19141. }
  19142. return nil, changed
  19143. }
  19144. containerLen := dd.ReadMapStart()
  19145. if canChange && v == nil {
  19146. if containerLen > 0 {
  19147. v = make(map[uint64]uint, containerLen)
  19148. } else {
  19149. v = make(map[uint64]uint) // supports indefinite-length, etc
  19150. }
  19151. changed = true
  19152. }
  19153. if containerLen > 0 {
  19154. for j := 0; j < containerLen; j++ {
  19155. mk := dd.DecodeUint(64)
  19156. mv := v[mk]
  19157. mv = uint(dd.DecodeUint(uintBitsize))
  19158. if v != nil {
  19159. v[mk] = mv
  19160. }
  19161. }
  19162. } else if containerLen < 0 {
  19163. for j := 0; !dd.CheckBreak(); j++ {
  19164. if j > 0 {
  19165. dd.ReadMapEntrySeparator()
  19166. }
  19167. mk := dd.DecodeUint(64)
  19168. dd.ReadMapKVSeparator()
  19169. mv := v[mk]
  19170. mv = uint(dd.DecodeUint(uintBitsize))
  19171. if v != nil {
  19172. v[mk] = mv
  19173. }
  19174. }
  19175. dd.ReadMapEnd()
  19176. }
  19177. return v, changed
  19178. }
  19179. func (f decFnInfo) fastpathDecMapUint64Uint8R(rv reflect.Value) {
  19180. if rv.CanAddr() {
  19181. vp := rv.Addr().Interface().(*map[uint64]uint8)
  19182. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  19183. if changed {
  19184. *vp = v
  19185. }
  19186. } else {
  19187. v := rv.Interface().(map[uint64]uint8)
  19188. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  19189. }
  19190. }
  19191. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, checkNil bool, d *Decoder) {
  19192. v, changed := f.DecMapUint64Uint8V(*vp, checkNil, true, d)
  19193. if changed {
  19194. *vp = v
  19195. }
  19196. }
  19197. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, checkNil bool, canChange bool,
  19198. d *Decoder) (_ map[uint64]uint8, changed bool) {
  19199. dd := d.d
  19200. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19201. if checkNil && dd.TryDecodeAsNil() {
  19202. if v != nil {
  19203. changed = true
  19204. }
  19205. return nil, changed
  19206. }
  19207. containerLen := dd.ReadMapStart()
  19208. if canChange && v == nil {
  19209. if containerLen > 0 {
  19210. v = make(map[uint64]uint8, containerLen)
  19211. } else {
  19212. v = make(map[uint64]uint8) // supports indefinite-length, etc
  19213. }
  19214. changed = true
  19215. }
  19216. if containerLen > 0 {
  19217. for j := 0; j < containerLen; j++ {
  19218. mk := dd.DecodeUint(64)
  19219. mv := v[mk]
  19220. mv = uint8(dd.DecodeUint(8))
  19221. if v != nil {
  19222. v[mk] = mv
  19223. }
  19224. }
  19225. } else if containerLen < 0 {
  19226. for j := 0; !dd.CheckBreak(); j++ {
  19227. if j > 0 {
  19228. dd.ReadMapEntrySeparator()
  19229. }
  19230. mk := dd.DecodeUint(64)
  19231. dd.ReadMapKVSeparator()
  19232. mv := v[mk]
  19233. mv = uint8(dd.DecodeUint(8))
  19234. if v != nil {
  19235. v[mk] = mv
  19236. }
  19237. }
  19238. dd.ReadMapEnd()
  19239. }
  19240. return v, changed
  19241. }
  19242. func (f decFnInfo) fastpathDecMapUint64Uint16R(rv reflect.Value) {
  19243. if rv.CanAddr() {
  19244. vp := rv.Addr().Interface().(*map[uint64]uint16)
  19245. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  19246. if changed {
  19247. *vp = v
  19248. }
  19249. } else {
  19250. v := rv.Interface().(map[uint64]uint16)
  19251. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  19252. }
  19253. }
  19254. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, checkNil bool, d *Decoder) {
  19255. v, changed := f.DecMapUint64Uint16V(*vp, checkNil, true, d)
  19256. if changed {
  19257. *vp = v
  19258. }
  19259. }
  19260. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, checkNil bool, canChange bool,
  19261. d *Decoder) (_ map[uint64]uint16, changed bool) {
  19262. dd := d.d
  19263. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19264. if checkNil && dd.TryDecodeAsNil() {
  19265. if v != nil {
  19266. changed = true
  19267. }
  19268. return nil, changed
  19269. }
  19270. containerLen := dd.ReadMapStart()
  19271. if canChange && v == nil {
  19272. if containerLen > 0 {
  19273. v = make(map[uint64]uint16, containerLen)
  19274. } else {
  19275. v = make(map[uint64]uint16) // supports indefinite-length, etc
  19276. }
  19277. changed = true
  19278. }
  19279. if containerLen > 0 {
  19280. for j := 0; j < containerLen; j++ {
  19281. mk := dd.DecodeUint(64)
  19282. mv := v[mk]
  19283. mv = uint16(dd.DecodeUint(16))
  19284. if v != nil {
  19285. v[mk] = mv
  19286. }
  19287. }
  19288. } else if containerLen < 0 {
  19289. for j := 0; !dd.CheckBreak(); j++ {
  19290. if j > 0 {
  19291. dd.ReadMapEntrySeparator()
  19292. }
  19293. mk := dd.DecodeUint(64)
  19294. dd.ReadMapKVSeparator()
  19295. mv := v[mk]
  19296. mv = uint16(dd.DecodeUint(16))
  19297. if v != nil {
  19298. v[mk] = mv
  19299. }
  19300. }
  19301. dd.ReadMapEnd()
  19302. }
  19303. return v, changed
  19304. }
  19305. func (f decFnInfo) fastpathDecMapUint64Uint32R(rv reflect.Value) {
  19306. if rv.CanAddr() {
  19307. vp := rv.Addr().Interface().(*map[uint64]uint32)
  19308. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  19309. if changed {
  19310. *vp = v
  19311. }
  19312. } else {
  19313. v := rv.Interface().(map[uint64]uint32)
  19314. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  19315. }
  19316. }
  19317. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, checkNil bool, d *Decoder) {
  19318. v, changed := f.DecMapUint64Uint32V(*vp, checkNil, true, d)
  19319. if changed {
  19320. *vp = v
  19321. }
  19322. }
  19323. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, checkNil bool, canChange bool,
  19324. d *Decoder) (_ map[uint64]uint32, changed bool) {
  19325. dd := d.d
  19326. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19327. if checkNil && dd.TryDecodeAsNil() {
  19328. if v != nil {
  19329. changed = true
  19330. }
  19331. return nil, changed
  19332. }
  19333. containerLen := dd.ReadMapStart()
  19334. if canChange && v == nil {
  19335. if containerLen > 0 {
  19336. v = make(map[uint64]uint32, containerLen)
  19337. } else {
  19338. v = make(map[uint64]uint32) // supports indefinite-length, etc
  19339. }
  19340. changed = true
  19341. }
  19342. if containerLen > 0 {
  19343. for j := 0; j < containerLen; j++ {
  19344. mk := dd.DecodeUint(64)
  19345. mv := v[mk]
  19346. mv = uint32(dd.DecodeUint(32))
  19347. if v != nil {
  19348. v[mk] = mv
  19349. }
  19350. }
  19351. } else if containerLen < 0 {
  19352. for j := 0; !dd.CheckBreak(); j++ {
  19353. if j > 0 {
  19354. dd.ReadMapEntrySeparator()
  19355. }
  19356. mk := dd.DecodeUint(64)
  19357. dd.ReadMapKVSeparator()
  19358. mv := v[mk]
  19359. mv = uint32(dd.DecodeUint(32))
  19360. if v != nil {
  19361. v[mk] = mv
  19362. }
  19363. }
  19364. dd.ReadMapEnd()
  19365. }
  19366. return v, changed
  19367. }
  19368. func (f decFnInfo) fastpathDecMapUint64Uint64R(rv reflect.Value) {
  19369. if rv.CanAddr() {
  19370. vp := rv.Addr().Interface().(*map[uint64]uint64)
  19371. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  19372. if changed {
  19373. *vp = v
  19374. }
  19375. } else {
  19376. v := rv.Interface().(map[uint64]uint64)
  19377. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  19378. }
  19379. }
  19380. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, checkNil bool, d *Decoder) {
  19381. v, changed := f.DecMapUint64Uint64V(*vp, checkNil, true, d)
  19382. if changed {
  19383. *vp = v
  19384. }
  19385. }
  19386. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, checkNil bool, canChange bool,
  19387. d *Decoder) (_ map[uint64]uint64, changed bool) {
  19388. dd := d.d
  19389. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19390. if checkNil && dd.TryDecodeAsNil() {
  19391. if v != nil {
  19392. changed = true
  19393. }
  19394. return nil, changed
  19395. }
  19396. containerLen := dd.ReadMapStart()
  19397. if canChange && v == nil {
  19398. if containerLen > 0 {
  19399. v = make(map[uint64]uint64, containerLen)
  19400. } else {
  19401. v = make(map[uint64]uint64) // supports indefinite-length, etc
  19402. }
  19403. changed = true
  19404. }
  19405. if containerLen > 0 {
  19406. for j := 0; j < containerLen; j++ {
  19407. mk := dd.DecodeUint(64)
  19408. mv := v[mk]
  19409. mv = dd.DecodeUint(64)
  19410. if v != nil {
  19411. v[mk] = mv
  19412. }
  19413. }
  19414. } else if containerLen < 0 {
  19415. for j := 0; !dd.CheckBreak(); j++ {
  19416. if j > 0 {
  19417. dd.ReadMapEntrySeparator()
  19418. }
  19419. mk := dd.DecodeUint(64)
  19420. dd.ReadMapKVSeparator()
  19421. mv := v[mk]
  19422. mv = dd.DecodeUint(64)
  19423. if v != nil {
  19424. v[mk] = mv
  19425. }
  19426. }
  19427. dd.ReadMapEnd()
  19428. }
  19429. return v, changed
  19430. }
  19431. func (f decFnInfo) fastpathDecMapUint64IntR(rv reflect.Value) {
  19432. if rv.CanAddr() {
  19433. vp := rv.Addr().Interface().(*map[uint64]int)
  19434. v, changed := fastpathTV.DecMapUint64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  19435. if changed {
  19436. *vp = v
  19437. }
  19438. } else {
  19439. v := rv.Interface().(map[uint64]int)
  19440. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, f.d)
  19441. }
  19442. }
  19443. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, checkNil bool, d *Decoder) {
  19444. v, changed := f.DecMapUint64IntV(*vp, checkNil, true, d)
  19445. if changed {
  19446. *vp = v
  19447. }
  19448. }
  19449. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, checkNil bool, canChange bool,
  19450. d *Decoder) (_ map[uint64]int, changed bool) {
  19451. dd := d.d
  19452. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19453. if checkNil && dd.TryDecodeAsNil() {
  19454. if v != nil {
  19455. changed = true
  19456. }
  19457. return nil, changed
  19458. }
  19459. containerLen := dd.ReadMapStart()
  19460. if canChange && v == nil {
  19461. if containerLen > 0 {
  19462. v = make(map[uint64]int, containerLen)
  19463. } else {
  19464. v = make(map[uint64]int) // supports indefinite-length, etc
  19465. }
  19466. changed = true
  19467. }
  19468. if containerLen > 0 {
  19469. for j := 0; j < containerLen; j++ {
  19470. mk := dd.DecodeUint(64)
  19471. mv := v[mk]
  19472. mv = int(dd.DecodeInt(intBitsize))
  19473. if v != nil {
  19474. v[mk] = mv
  19475. }
  19476. }
  19477. } else if containerLen < 0 {
  19478. for j := 0; !dd.CheckBreak(); j++ {
  19479. if j > 0 {
  19480. dd.ReadMapEntrySeparator()
  19481. }
  19482. mk := dd.DecodeUint(64)
  19483. dd.ReadMapKVSeparator()
  19484. mv := v[mk]
  19485. mv = int(dd.DecodeInt(intBitsize))
  19486. if v != nil {
  19487. v[mk] = mv
  19488. }
  19489. }
  19490. dd.ReadMapEnd()
  19491. }
  19492. return v, changed
  19493. }
  19494. func (f decFnInfo) fastpathDecMapUint64Int8R(rv reflect.Value) {
  19495. if rv.CanAddr() {
  19496. vp := rv.Addr().Interface().(*map[uint64]int8)
  19497. v, changed := fastpathTV.DecMapUint64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  19498. if changed {
  19499. *vp = v
  19500. }
  19501. } else {
  19502. v := rv.Interface().(map[uint64]int8)
  19503. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, f.d)
  19504. }
  19505. }
  19506. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, checkNil bool, d *Decoder) {
  19507. v, changed := f.DecMapUint64Int8V(*vp, checkNil, true, d)
  19508. if changed {
  19509. *vp = v
  19510. }
  19511. }
  19512. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, checkNil bool, canChange bool,
  19513. d *Decoder) (_ map[uint64]int8, changed bool) {
  19514. dd := d.d
  19515. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19516. if checkNil && dd.TryDecodeAsNil() {
  19517. if v != nil {
  19518. changed = true
  19519. }
  19520. return nil, changed
  19521. }
  19522. containerLen := dd.ReadMapStart()
  19523. if canChange && v == nil {
  19524. if containerLen > 0 {
  19525. v = make(map[uint64]int8, containerLen)
  19526. } else {
  19527. v = make(map[uint64]int8) // supports indefinite-length, etc
  19528. }
  19529. changed = true
  19530. }
  19531. if containerLen > 0 {
  19532. for j := 0; j < containerLen; j++ {
  19533. mk := dd.DecodeUint(64)
  19534. mv := v[mk]
  19535. mv = int8(dd.DecodeInt(8))
  19536. if v != nil {
  19537. v[mk] = mv
  19538. }
  19539. }
  19540. } else if containerLen < 0 {
  19541. for j := 0; !dd.CheckBreak(); j++ {
  19542. if j > 0 {
  19543. dd.ReadMapEntrySeparator()
  19544. }
  19545. mk := dd.DecodeUint(64)
  19546. dd.ReadMapKVSeparator()
  19547. mv := v[mk]
  19548. mv = int8(dd.DecodeInt(8))
  19549. if v != nil {
  19550. v[mk] = mv
  19551. }
  19552. }
  19553. dd.ReadMapEnd()
  19554. }
  19555. return v, changed
  19556. }
  19557. func (f decFnInfo) fastpathDecMapUint64Int16R(rv reflect.Value) {
  19558. if rv.CanAddr() {
  19559. vp := rv.Addr().Interface().(*map[uint64]int16)
  19560. v, changed := fastpathTV.DecMapUint64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  19561. if changed {
  19562. *vp = v
  19563. }
  19564. } else {
  19565. v := rv.Interface().(map[uint64]int16)
  19566. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, f.d)
  19567. }
  19568. }
  19569. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, checkNil bool, d *Decoder) {
  19570. v, changed := f.DecMapUint64Int16V(*vp, checkNil, true, d)
  19571. if changed {
  19572. *vp = v
  19573. }
  19574. }
  19575. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, checkNil bool, canChange bool,
  19576. d *Decoder) (_ map[uint64]int16, changed bool) {
  19577. dd := d.d
  19578. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19579. if checkNil && dd.TryDecodeAsNil() {
  19580. if v != nil {
  19581. changed = true
  19582. }
  19583. return nil, changed
  19584. }
  19585. containerLen := dd.ReadMapStart()
  19586. if canChange && v == nil {
  19587. if containerLen > 0 {
  19588. v = make(map[uint64]int16, containerLen)
  19589. } else {
  19590. v = make(map[uint64]int16) // supports indefinite-length, etc
  19591. }
  19592. changed = true
  19593. }
  19594. if containerLen > 0 {
  19595. for j := 0; j < containerLen; j++ {
  19596. mk := dd.DecodeUint(64)
  19597. mv := v[mk]
  19598. mv = int16(dd.DecodeInt(16))
  19599. if v != nil {
  19600. v[mk] = mv
  19601. }
  19602. }
  19603. } else if containerLen < 0 {
  19604. for j := 0; !dd.CheckBreak(); j++ {
  19605. if j > 0 {
  19606. dd.ReadMapEntrySeparator()
  19607. }
  19608. mk := dd.DecodeUint(64)
  19609. dd.ReadMapKVSeparator()
  19610. mv := v[mk]
  19611. mv = int16(dd.DecodeInt(16))
  19612. if v != nil {
  19613. v[mk] = mv
  19614. }
  19615. }
  19616. dd.ReadMapEnd()
  19617. }
  19618. return v, changed
  19619. }
  19620. func (f decFnInfo) fastpathDecMapUint64Int32R(rv reflect.Value) {
  19621. if rv.CanAddr() {
  19622. vp := rv.Addr().Interface().(*map[uint64]int32)
  19623. v, changed := fastpathTV.DecMapUint64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  19624. if changed {
  19625. *vp = v
  19626. }
  19627. } else {
  19628. v := rv.Interface().(map[uint64]int32)
  19629. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, f.d)
  19630. }
  19631. }
  19632. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, checkNil bool, d *Decoder) {
  19633. v, changed := f.DecMapUint64Int32V(*vp, checkNil, true, d)
  19634. if changed {
  19635. *vp = v
  19636. }
  19637. }
  19638. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, checkNil bool, canChange bool,
  19639. d *Decoder) (_ map[uint64]int32, changed bool) {
  19640. dd := d.d
  19641. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19642. if checkNil && dd.TryDecodeAsNil() {
  19643. if v != nil {
  19644. changed = true
  19645. }
  19646. return nil, changed
  19647. }
  19648. containerLen := dd.ReadMapStart()
  19649. if canChange && v == nil {
  19650. if containerLen > 0 {
  19651. v = make(map[uint64]int32, containerLen)
  19652. } else {
  19653. v = make(map[uint64]int32) // supports indefinite-length, etc
  19654. }
  19655. changed = true
  19656. }
  19657. if containerLen > 0 {
  19658. for j := 0; j < containerLen; j++ {
  19659. mk := dd.DecodeUint(64)
  19660. mv := v[mk]
  19661. mv = int32(dd.DecodeInt(32))
  19662. if v != nil {
  19663. v[mk] = mv
  19664. }
  19665. }
  19666. } else if containerLen < 0 {
  19667. for j := 0; !dd.CheckBreak(); j++ {
  19668. if j > 0 {
  19669. dd.ReadMapEntrySeparator()
  19670. }
  19671. mk := dd.DecodeUint(64)
  19672. dd.ReadMapKVSeparator()
  19673. mv := v[mk]
  19674. mv = int32(dd.DecodeInt(32))
  19675. if v != nil {
  19676. v[mk] = mv
  19677. }
  19678. }
  19679. dd.ReadMapEnd()
  19680. }
  19681. return v, changed
  19682. }
  19683. func (f decFnInfo) fastpathDecMapUint64Int64R(rv reflect.Value) {
  19684. if rv.CanAddr() {
  19685. vp := rv.Addr().Interface().(*map[uint64]int64)
  19686. v, changed := fastpathTV.DecMapUint64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  19687. if changed {
  19688. *vp = v
  19689. }
  19690. } else {
  19691. v := rv.Interface().(map[uint64]int64)
  19692. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, f.d)
  19693. }
  19694. }
  19695. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, checkNil bool, d *Decoder) {
  19696. v, changed := f.DecMapUint64Int64V(*vp, checkNil, true, d)
  19697. if changed {
  19698. *vp = v
  19699. }
  19700. }
  19701. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, checkNil bool, canChange bool,
  19702. d *Decoder) (_ map[uint64]int64, changed bool) {
  19703. dd := d.d
  19704. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19705. if checkNil && dd.TryDecodeAsNil() {
  19706. if v != nil {
  19707. changed = true
  19708. }
  19709. return nil, changed
  19710. }
  19711. containerLen := dd.ReadMapStart()
  19712. if canChange && v == nil {
  19713. if containerLen > 0 {
  19714. v = make(map[uint64]int64, containerLen)
  19715. } else {
  19716. v = make(map[uint64]int64) // supports indefinite-length, etc
  19717. }
  19718. changed = true
  19719. }
  19720. if containerLen > 0 {
  19721. for j := 0; j < containerLen; j++ {
  19722. mk := dd.DecodeUint(64)
  19723. mv := v[mk]
  19724. mv = dd.DecodeInt(64)
  19725. if v != nil {
  19726. v[mk] = mv
  19727. }
  19728. }
  19729. } else if containerLen < 0 {
  19730. for j := 0; !dd.CheckBreak(); j++ {
  19731. if j > 0 {
  19732. dd.ReadMapEntrySeparator()
  19733. }
  19734. mk := dd.DecodeUint(64)
  19735. dd.ReadMapKVSeparator()
  19736. mv := v[mk]
  19737. mv = dd.DecodeInt(64)
  19738. if v != nil {
  19739. v[mk] = mv
  19740. }
  19741. }
  19742. dd.ReadMapEnd()
  19743. }
  19744. return v, changed
  19745. }
  19746. func (f decFnInfo) fastpathDecMapUint64Float32R(rv reflect.Value) {
  19747. if rv.CanAddr() {
  19748. vp := rv.Addr().Interface().(*map[uint64]float32)
  19749. v, changed := fastpathTV.DecMapUint64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  19750. if changed {
  19751. *vp = v
  19752. }
  19753. } else {
  19754. v := rv.Interface().(map[uint64]float32)
  19755. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, f.d)
  19756. }
  19757. }
  19758. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, checkNil bool, d *Decoder) {
  19759. v, changed := f.DecMapUint64Float32V(*vp, checkNil, true, d)
  19760. if changed {
  19761. *vp = v
  19762. }
  19763. }
  19764. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, checkNil bool, canChange bool,
  19765. d *Decoder) (_ map[uint64]float32, changed bool) {
  19766. dd := d.d
  19767. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19768. if checkNil && dd.TryDecodeAsNil() {
  19769. if v != nil {
  19770. changed = true
  19771. }
  19772. return nil, changed
  19773. }
  19774. containerLen := dd.ReadMapStart()
  19775. if canChange && v == nil {
  19776. if containerLen > 0 {
  19777. v = make(map[uint64]float32, containerLen)
  19778. } else {
  19779. v = make(map[uint64]float32) // supports indefinite-length, etc
  19780. }
  19781. changed = true
  19782. }
  19783. if containerLen > 0 {
  19784. for j := 0; j < containerLen; j++ {
  19785. mk := dd.DecodeUint(64)
  19786. mv := v[mk]
  19787. mv = float32(dd.DecodeFloat(true))
  19788. if v != nil {
  19789. v[mk] = mv
  19790. }
  19791. }
  19792. } else if containerLen < 0 {
  19793. for j := 0; !dd.CheckBreak(); j++ {
  19794. if j > 0 {
  19795. dd.ReadMapEntrySeparator()
  19796. }
  19797. mk := dd.DecodeUint(64)
  19798. dd.ReadMapKVSeparator()
  19799. mv := v[mk]
  19800. mv = float32(dd.DecodeFloat(true))
  19801. if v != nil {
  19802. v[mk] = mv
  19803. }
  19804. }
  19805. dd.ReadMapEnd()
  19806. }
  19807. return v, changed
  19808. }
  19809. func (f decFnInfo) fastpathDecMapUint64Float64R(rv reflect.Value) {
  19810. if rv.CanAddr() {
  19811. vp := rv.Addr().Interface().(*map[uint64]float64)
  19812. v, changed := fastpathTV.DecMapUint64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  19813. if changed {
  19814. *vp = v
  19815. }
  19816. } else {
  19817. v := rv.Interface().(map[uint64]float64)
  19818. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, f.d)
  19819. }
  19820. }
  19821. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, checkNil bool, d *Decoder) {
  19822. v, changed := f.DecMapUint64Float64V(*vp, checkNil, true, d)
  19823. if changed {
  19824. *vp = v
  19825. }
  19826. }
  19827. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, checkNil bool, canChange bool,
  19828. d *Decoder) (_ map[uint64]float64, changed bool) {
  19829. dd := d.d
  19830. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19831. if checkNil && dd.TryDecodeAsNil() {
  19832. if v != nil {
  19833. changed = true
  19834. }
  19835. return nil, changed
  19836. }
  19837. containerLen := dd.ReadMapStart()
  19838. if canChange && v == nil {
  19839. if containerLen > 0 {
  19840. v = make(map[uint64]float64, containerLen)
  19841. } else {
  19842. v = make(map[uint64]float64) // supports indefinite-length, etc
  19843. }
  19844. changed = true
  19845. }
  19846. if containerLen > 0 {
  19847. for j := 0; j < containerLen; j++ {
  19848. mk := dd.DecodeUint(64)
  19849. mv := v[mk]
  19850. mv = dd.DecodeFloat(false)
  19851. if v != nil {
  19852. v[mk] = mv
  19853. }
  19854. }
  19855. } else if containerLen < 0 {
  19856. for j := 0; !dd.CheckBreak(); j++ {
  19857. if j > 0 {
  19858. dd.ReadMapEntrySeparator()
  19859. }
  19860. mk := dd.DecodeUint(64)
  19861. dd.ReadMapKVSeparator()
  19862. mv := v[mk]
  19863. mv = dd.DecodeFloat(false)
  19864. if v != nil {
  19865. v[mk] = mv
  19866. }
  19867. }
  19868. dd.ReadMapEnd()
  19869. }
  19870. return v, changed
  19871. }
  19872. func (f decFnInfo) fastpathDecMapUint64BoolR(rv reflect.Value) {
  19873. if rv.CanAddr() {
  19874. vp := rv.Addr().Interface().(*map[uint64]bool)
  19875. v, changed := fastpathTV.DecMapUint64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  19876. if changed {
  19877. *vp = v
  19878. }
  19879. } else {
  19880. v := rv.Interface().(map[uint64]bool)
  19881. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, f.d)
  19882. }
  19883. }
  19884. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, checkNil bool, d *Decoder) {
  19885. v, changed := f.DecMapUint64BoolV(*vp, checkNil, true, d)
  19886. if changed {
  19887. *vp = v
  19888. }
  19889. }
  19890. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, checkNil bool, canChange bool,
  19891. d *Decoder) (_ map[uint64]bool, changed bool) {
  19892. dd := d.d
  19893. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19894. if checkNil && dd.TryDecodeAsNil() {
  19895. if v != nil {
  19896. changed = true
  19897. }
  19898. return nil, changed
  19899. }
  19900. containerLen := dd.ReadMapStart()
  19901. if canChange && v == nil {
  19902. if containerLen > 0 {
  19903. v = make(map[uint64]bool, containerLen)
  19904. } else {
  19905. v = make(map[uint64]bool) // supports indefinite-length, etc
  19906. }
  19907. changed = true
  19908. }
  19909. if containerLen > 0 {
  19910. for j := 0; j < containerLen; j++ {
  19911. mk := dd.DecodeUint(64)
  19912. mv := v[mk]
  19913. mv = dd.DecodeBool()
  19914. if v != nil {
  19915. v[mk] = mv
  19916. }
  19917. }
  19918. } else if containerLen < 0 {
  19919. for j := 0; !dd.CheckBreak(); j++ {
  19920. if j > 0 {
  19921. dd.ReadMapEntrySeparator()
  19922. }
  19923. mk := dd.DecodeUint(64)
  19924. dd.ReadMapKVSeparator()
  19925. mv := v[mk]
  19926. mv = dd.DecodeBool()
  19927. if v != nil {
  19928. v[mk] = mv
  19929. }
  19930. }
  19931. dd.ReadMapEnd()
  19932. }
  19933. return v, changed
  19934. }
  19935. func (f decFnInfo) fastpathDecMapIntIntfR(rv reflect.Value) {
  19936. if rv.CanAddr() {
  19937. vp := rv.Addr().Interface().(*map[int]interface{})
  19938. v, changed := fastpathTV.DecMapIntIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  19939. if changed {
  19940. *vp = v
  19941. }
  19942. } else {
  19943. v := rv.Interface().(map[int]interface{})
  19944. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, f.d)
  19945. }
  19946. }
  19947. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, checkNil bool, d *Decoder) {
  19948. v, changed := f.DecMapIntIntfV(*vp, checkNil, true, d)
  19949. if changed {
  19950. *vp = v
  19951. }
  19952. }
  19953. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, checkNil bool, canChange bool,
  19954. d *Decoder) (_ map[int]interface{}, changed bool) {
  19955. dd := d.d
  19956. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19957. if checkNil && dd.TryDecodeAsNil() {
  19958. if v != nil {
  19959. changed = true
  19960. }
  19961. return nil, changed
  19962. }
  19963. containerLen := dd.ReadMapStart()
  19964. if canChange && v == nil {
  19965. if containerLen > 0 {
  19966. v = make(map[int]interface{}, containerLen)
  19967. } else {
  19968. v = make(map[int]interface{}) // supports indefinite-length, etc
  19969. }
  19970. changed = true
  19971. }
  19972. if containerLen > 0 {
  19973. for j := 0; j < containerLen; j++ {
  19974. mk := int(dd.DecodeInt(intBitsize))
  19975. mv := v[mk]
  19976. d.decode(&mv)
  19977. if v != nil {
  19978. v[mk] = mv
  19979. }
  19980. }
  19981. } else if containerLen < 0 {
  19982. for j := 0; !dd.CheckBreak(); j++ {
  19983. if j > 0 {
  19984. dd.ReadMapEntrySeparator()
  19985. }
  19986. mk := int(dd.DecodeInt(intBitsize))
  19987. dd.ReadMapKVSeparator()
  19988. mv := v[mk]
  19989. d.decode(&mv)
  19990. if v != nil {
  19991. v[mk] = mv
  19992. }
  19993. }
  19994. dd.ReadMapEnd()
  19995. }
  19996. return v, changed
  19997. }
  19998. func (f decFnInfo) fastpathDecMapIntStringR(rv reflect.Value) {
  19999. if rv.CanAddr() {
  20000. vp := rv.Addr().Interface().(*map[int]string)
  20001. v, changed := fastpathTV.DecMapIntStringV(*vp, fastpathCheckNilFalse, true, f.d)
  20002. if changed {
  20003. *vp = v
  20004. }
  20005. } else {
  20006. v := rv.Interface().(map[int]string)
  20007. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, f.d)
  20008. }
  20009. }
  20010. func (f fastpathT) DecMapIntStringX(vp *map[int]string, checkNil bool, d *Decoder) {
  20011. v, changed := f.DecMapIntStringV(*vp, checkNil, true, d)
  20012. if changed {
  20013. *vp = v
  20014. }
  20015. }
  20016. func (_ fastpathT) DecMapIntStringV(v map[int]string, checkNil bool, canChange bool,
  20017. d *Decoder) (_ map[int]string, changed bool) {
  20018. dd := d.d
  20019. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20020. if checkNil && dd.TryDecodeAsNil() {
  20021. if v != nil {
  20022. changed = true
  20023. }
  20024. return nil, changed
  20025. }
  20026. containerLen := dd.ReadMapStart()
  20027. if canChange && v == nil {
  20028. if containerLen > 0 {
  20029. v = make(map[int]string, containerLen)
  20030. } else {
  20031. v = make(map[int]string) // supports indefinite-length, etc
  20032. }
  20033. changed = true
  20034. }
  20035. if containerLen > 0 {
  20036. for j := 0; j < containerLen; j++ {
  20037. mk := int(dd.DecodeInt(intBitsize))
  20038. mv := v[mk]
  20039. mv = dd.DecodeString()
  20040. if v != nil {
  20041. v[mk] = mv
  20042. }
  20043. }
  20044. } else if containerLen < 0 {
  20045. for j := 0; !dd.CheckBreak(); j++ {
  20046. if j > 0 {
  20047. dd.ReadMapEntrySeparator()
  20048. }
  20049. mk := int(dd.DecodeInt(intBitsize))
  20050. dd.ReadMapKVSeparator()
  20051. mv := v[mk]
  20052. mv = dd.DecodeString()
  20053. if v != nil {
  20054. v[mk] = mv
  20055. }
  20056. }
  20057. dd.ReadMapEnd()
  20058. }
  20059. return v, changed
  20060. }
  20061. func (f decFnInfo) fastpathDecMapIntUintR(rv reflect.Value) {
  20062. if rv.CanAddr() {
  20063. vp := rv.Addr().Interface().(*map[int]uint)
  20064. v, changed := fastpathTV.DecMapIntUintV(*vp, fastpathCheckNilFalse, true, f.d)
  20065. if changed {
  20066. *vp = v
  20067. }
  20068. } else {
  20069. v := rv.Interface().(map[int]uint)
  20070. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, f.d)
  20071. }
  20072. }
  20073. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, checkNil bool, d *Decoder) {
  20074. v, changed := f.DecMapIntUintV(*vp, checkNil, true, d)
  20075. if changed {
  20076. *vp = v
  20077. }
  20078. }
  20079. func (_ fastpathT) DecMapIntUintV(v map[int]uint, checkNil bool, canChange bool,
  20080. d *Decoder) (_ map[int]uint, changed bool) {
  20081. dd := d.d
  20082. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20083. if checkNil && dd.TryDecodeAsNil() {
  20084. if v != nil {
  20085. changed = true
  20086. }
  20087. return nil, changed
  20088. }
  20089. containerLen := dd.ReadMapStart()
  20090. if canChange && v == nil {
  20091. if containerLen > 0 {
  20092. v = make(map[int]uint, containerLen)
  20093. } else {
  20094. v = make(map[int]uint) // supports indefinite-length, etc
  20095. }
  20096. changed = true
  20097. }
  20098. if containerLen > 0 {
  20099. for j := 0; j < containerLen; j++ {
  20100. mk := int(dd.DecodeInt(intBitsize))
  20101. mv := v[mk]
  20102. mv = uint(dd.DecodeUint(uintBitsize))
  20103. if v != nil {
  20104. v[mk] = mv
  20105. }
  20106. }
  20107. } else if containerLen < 0 {
  20108. for j := 0; !dd.CheckBreak(); j++ {
  20109. if j > 0 {
  20110. dd.ReadMapEntrySeparator()
  20111. }
  20112. mk := int(dd.DecodeInt(intBitsize))
  20113. dd.ReadMapKVSeparator()
  20114. mv := v[mk]
  20115. mv = uint(dd.DecodeUint(uintBitsize))
  20116. if v != nil {
  20117. v[mk] = mv
  20118. }
  20119. }
  20120. dd.ReadMapEnd()
  20121. }
  20122. return v, changed
  20123. }
  20124. func (f decFnInfo) fastpathDecMapIntUint8R(rv reflect.Value) {
  20125. if rv.CanAddr() {
  20126. vp := rv.Addr().Interface().(*map[int]uint8)
  20127. v, changed := fastpathTV.DecMapIntUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  20128. if changed {
  20129. *vp = v
  20130. }
  20131. } else {
  20132. v := rv.Interface().(map[int]uint8)
  20133. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, f.d)
  20134. }
  20135. }
  20136. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, checkNil bool, d *Decoder) {
  20137. v, changed := f.DecMapIntUint8V(*vp, checkNil, true, d)
  20138. if changed {
  20139. *vp = v
  20140. }
  20141. }
  20142. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, checkNil bool, canChange bool,
  20143. d *Decoder) (_ map[int]uint8, changed bool) {
  20144. dd := d.d
  20145. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20146. if checkNil && dd.TryDecodeAsNil() {
  20147. if v != nil {
  20148. changed = true
  20149. }
  20150. return nil, changed
  20151. }
  20152. containerLen := dd.ReadMapStart()
  20153. if canChange && v == nil {
  20154. if containerLen > 0 {
  20155. v = make(map[int]uint8, containerLen)
  20156. } else {
  20157. v = make(map[int]uint8) // supports indefinite-length, etc
  20158. }
  20159. changed = true
  20160. }
  20161. if containerLen > 0 {
  20162. for j := 0; j < containerLen; j++ {
  20163. mk := int(dd.DecodeInt(intBitsize))
  20164. mv := v[mk]
  20165. mv = uint8(dd.DecodeUint(8))
  20166. if v != nil {
  20167. v[mk] = mv
  20168. }
  20169. }
  20170. } else if containerLen < 0 {
  20171. for j := 0; !dd.CheckBreak(); j++ {
  20172. if j > 0 {
  20173. dd.ReadMapEntrySeparator()
  20174. }
  20175. mk := int(dd.DecodeInt(intBitsize))
  20176. dd.ReadMapKVSeparator()
  20177. mv := v[mk]
  20178. mv = uint8(dd.DecodeUint(8))
  20179. if v != nil {
  20180. v[mk] = mv
  20181. }
  20182. }
  20183. dd.ReadMapEnd()
  20184. }
  20185. return v, changed
  20186. }
  20187. func (f decFnInfo) fastpathDecMapIntUint16R(rv reflect.Value) {
  20188. if rv.CanAddr() {
  20189. vp := rv.Addr().Interface().(*map[int]uint16)
  20190. v, changed := fastpathTV.DecMapIntUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  20191. if changed {
  20192. *vp = v
  20193. }
  20194. } else {
  20195. v := rv.Interface().(map[int]uint16)
  20196. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, f.d)
  20197. }
  20198. }
  20199. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, checkNil bool, d *Decoder) {
  20200. v, changed := f.DecMapIntUint16V(*vp, checkNil, true, d)
  20201. if changed {
  20202. *vp = v
  20203. }
  20204. }
  20205. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, checkNil bool, canChange bool,
  20206. d *Decoder) (_ map[int]uint16, changed bool) {
  20207. dd := d.d
  20208. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20209. if checkNil && dd.TryDecodeAsNil() {
  20210. if v != nil {
  20211. changed = true
  20212. }
  20213. return nil, changed
  20214. }
  20215. containerLen := dd.ReadMapStart()
  20216. if canChange && v == nil {
  20217. if containerLen > 0 {
  20218. v = make(map[int]uint16, containerLen)
  20219. } else {
  20220. v = make(map[int]uint16) // supports indefinite-length, etc
  20221. }
  20222. changed = true
  20223. }
  20224. if containerLen > 0 {
  20225. for j := 0; j < containerLen; j++ {
  20226. mk := int(dd.DecodeInt(intBitsize))
  20227. mv := v[mk]
  20228. mv = uint16(dd.DecodeUint(16))
  20229. if v != nil {
  20230. v[mk] = mv
  20231. }
  20232. }
  20233. } else if containerLen < 0 {
  20234. for j := 0; !dd.CheckBreak(); j++ {
  20235. if j > 0 {
  20236. dd.ReadMapEntrySeparator()
  20237. }
  20238. mk := int(dd.DecodeInt(intBitsize))
  20239. dd.ReadMapKVSeparator()
  20240. mv := v[mk]
  20241. mv = uint16(dd.DecodeUint(16))
  20242. if v != nil {
  20243. v[mk] = mv
  20244. }
  20245. }
  20246. dd.ReadMapEnd()
  20247. }
  20248. return v, changed
  20249. }
  20250. func (f decFnInfo) fastpathDecMapIntUint32R(rv reflect.Value) {
  20251. if rv.CanAddr() {
  20252. vp := rv.Addr().Interface().(*map[int]uint32)
  20253. v, changed := fastpathTV.DecMapIntUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  20254. if changed {
  20255. *vp = v
  20256. }
  20257. } else {
  20258. v := rv.Interface().(map[int]uint32)
  20259. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, f.d)
  20260. }
  20261. }
  20262. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, checkNil bool, d *Decoder) {
  20263. v, changed := f.DecMapIntUint32V(*vp, checkNil, true, d)
  20264. if changed {
  20265. *vp = v
  20266. }
  20267. }
  20268. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, checkNil bool, canChange bool,
  20269. d *Decoder) (_ map[int]uint32, changed bool) {
  20270. dd := d.d
  20271. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20272. if checkNil && dd.TryDecodeAsNil() {
  20273. if v != nil {
  20274. changed = true
  20275. }
  20276. return nil, changed
  20277. }
  20278. containerLen := dd.ReadMapStart()
  20279. if canChange && v == nil {
  20280. if containerLen > 0 {
  20281. v = make(map[int]uint32, containerLen)
  20282. } else {
  20283. v = make(map[int]uint32) // supports indefinite-length, etc
  20284. }
  20285. changed = true
  20286. }
  20287. if containerLen > 0 {
  20288. for j := 0; j < containerLen; j++ {
  20289. mk := int(dd.DecodeInt(intBitsize))
  20290. mv := v[mk]
  20291. mv = uint32(dd.DecodeUint(32))
  20292. if v != nil {
  20293. v[mk] = mv
  20294. }
  20295. }
  20296. } else if containerLen < 0 {
  20297. for j := 0; !dd.CheckBreak(); j++ {
  20298. if j > 0 {
  20299. dd.ReadMapEntrySeparator()
  20300. }
  20301. mk := int(dd.DecodeInt(intBitsize))
  20302. dd.ReadMapKVSeparator()
  20303. mv := v[mk]
  20304. mv = uint32(dd.DecodeUint(32))
  20305. if v != nil {
  20306. v[mk] = mv
  20307. }
  20308. }
  20309. dd.ReadMapEnd()
  20310. }
  20311. return v, changed
  20312. }
  20313. func (f decFnInfo) fastpathDecMapIntUint64R(rv reflect.Value) {
  20314. if rv.CanAddr() {
  20315. vp := rv.Addr().Interface().(*map[int]uint64)
  20316. v, changed := fastpathTV.DecMapIntUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  20317. if changed {
  20318. *vp = v
  20319. }
  20320. } else {
  20321. v := rv.Interface().(map[int]uint64)
  20322. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, f.d)
  20323. }
  20324. }
  20325. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, checkNil bool, d *Decoder) {
  20326. v, changed := f.DecMapIntUint64V(*vp, checkNil, true, d)
  20327. if changed {
  20328. *vp = v
  20329. }
  20330. }
  20331. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, checkNil bool, canChange bool,
  20332. d *Decoder) (_ map[int]uint64, changed bool) {
  20333. dd := d.d
  20334. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20335. if checkNil && dd.TryDecodeAsNil() {
  20336. if v != nil {
  20337. changed = true
  20338. }
  20339. return nil, changed
  20340. }
  20341. containerLen := dd.ReadMapStart()
  20342. if canChange && v == nil {
  20343. if containerLen > 0 {
  20344. v = make(map[int]uint64, containerLen)
  20345. } else {
  20346. v = make(map[int]uint64) // supports indefinite-length, etc
  20347. }
  20348. changed = true
  20349. }
  20350. if containerLen > 0 {
  20351. for j := 0; j < containerLen; j++ {
  20352. mk := int(dd.DecodeInt(intBitsize))
  20353. mv := v[mk]
  20354. mv = dd.DecodeUint(64)
  20355. if v != nil {
  20356. v[mk] = mv
  20357. }
  20358. }
  20359. } else if containerLen < 0 {
  20360. for j := 0; !dd.CheckBreak(); j++ {
  20361. if j > 0 {
  20362. dd.ReadMapEntrySeparator()
  20363. }
  20364. mk := int(dd.DecodeInt(intBitsize))
  20365. dd.ReadMapKVSeparator()
  20366. mv := v[mk]
  20367. mv = dd.DecodeUint(64)
  20368. if v != nil {
  20369. v[mk] = mv
  20370. }
  20371. }
  20372. dd.ReadMapEnd()
  20373. }
  20374. return v, changed
  20375. }
  20376. func (f decFnInfo) fastpathDecMapIntIntR(rv reflect.Value) {
  20377. if rv.CanAddr() {
  20378. vp := rv.Addr().Interface().(*map[int]int)
  20379. v, changed := fastpathTV.DecMapIntIntV(*vp, fastpathCheckNilFalse, true, f.d)
  20380. if changed {
  20381. *vp = v
  20382. }
  20383. } else {
  20384. v := rv.Interface().(map[int]int)
  20385. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, f.d)
  20386. }
  20387. }
  20388. func (f fastpathT) DecMapIntIntX(vp *map[int]int, checkNil bool, d *Decoder) {
  20389. v, changed := f.DecMapIntIntV(*vp, checkNil, true, d)
  20390. if changed {
  20391. *vp = v
  20392. }
  20393. }
  20394. func (_ fastpathT) DecMapIntIntV(v map[int]int, checkNil bool, canChange bool,
  20395. d *Decoder) (_ map[int]int, changed bool) {
  20396. dd := d.d
  20397. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20398. if checkNil && dd.TryDecodeAsNil() {
  20399. if v != nil {
  20400. changed = true
  20401. }
  20402. return nil, changed
  20403. }
  20404. containerLen := dd.ReadMapStart()
  20405. if canChange && v == nil {
  20406. if containerLen > 0 {
  20407. v = make(map[int]int, containerLen)
  20408. } else {
  20409. v = make(map[int]int) // supports indefinite-length, etc
  20410. }
  20411. changed = true
  20412. }
  20413. if containerLen > 0 {
  20414. for j := 0; j < containerLen; j++ {
  20415. mk := int(dd.DecodeInt(intBitsize))
  20416. mv := v[mk]
  20417. mv = int(dd.DecodeInt(intBitsize))
  20418. if v != nil {
  20419. v[mk] = mv
  20420. }
  20421. }
  20422. } else if containerLen < 0 {
  20423. for j := 0; !dd.CheckBreak(); j++ {
  20424. if j > 0 {
  20425. dd.ReadMapEntrySeparator()
  20426. }
  20427. mk := int(dd.DecodeInt(intBitsize))
  20428. dd.ReadMapKVSeparator()
  20429. mv := v[mk]
  20430. mv = int(dd.DecodeInt(intBitsize))
  20431. if v != nil {
  20432. v[mk] = mv
  20433. }
  20434. }
  20435. dd.ReadMapEnd()
  20436. }
  20437. return v, changed
  20438. }
  20439. func (f decFnInfo) fastpathDecMapIntInt8R(rv reflect.Value) {
  20440. if rv.CanAddr() {
  20441. vp := rv.Addr().Interface().(*map[int]int8)
  20442. v, changed := fastpathTV.DecMapIntInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  20443. if changed {
  20444. *vp = v
  20445. }
  20446. } else {
  20447. v := rv.Interface().(map[int]int8)
  20448. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, f.d)
  20449. }
  20450. }
  20451. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, checkNil bool, d *Decoder) {
  20452. v, changed := f.DecMapIntInt8V(*vp, checkNil, true, d)
  20453. if changed {
  20454. *vp = v
  20455. }
  20456. }
  20457. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, checkNil bool, canChange bool,
  20458. d *Decoder) (_ map[int]int8, changed bool) {
  20459. dd := d.d
  20460. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20461. if checkNil && dd.TryDecodeAsNil() {
  20462. if v != nil {
  20463. changed = true
  20464. }
  20465. return nil, changed
  20466. }
  20467. containerLen := dd.ReadMapStart()
  20468. if canChange && v == nil {
  20469. if containerLen > 0 {
  20470. v = make(map[int]int8, containerLen)
  20471. } else {
  20472. v = make(map[int]int8) // supports indefinite-length, etc
  20473. }
  20474. changed = true
  20475. }
  20476. if containerLen > 0 {
  20477. for j := 0; j < containerLen; j++ {
  20478. mk := int(dd.DecodeInt(intBitsize))
  20479. mv := v[mk]
  20480. mv = int8(dd.DecodeInt(8))
  20481. if v != nil {
  20482. v[mk] = mv
  20483. }
  20484. }
  20485. } else if containerLen < 0 {
  20486. for j := 0; !dd.CheckBreak(); j++ {
  20487. if j > 0 {
  20488. dd.ReadMapEntrySeparator()
  20489. }
  20490. mk := int(dd.DecodeInt(intBitsize))
  20491. dd.ReadMapKVSeparator()
  20492. mv := v[mk]
  20493. mv = int8(dd.DecodeInt(8))
  20494. if v != nil {
  20495. v[mk] = mv
  20496. }
  20497. }
  20498. dd.ReadMapEnd()
  20499. }
  20500. return v, changed
  20501. }
  20502. func (f decFnInfo) fastpathDecMapIntInt16R(rv reflect.Value) {
  20503. if rv.CanAddr() {
  20504. vp := rv.Addr().Interface().(*map[int]int16)
  20505. v, changed := fastpathTV.DecMapIntInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  20506. if changed {
  20507. *vp = v
  20508. }
  20509. } else {
  20510. v := rv.Interface().(map[int]int16)
  20511. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, f.d)
  20512. }
  20513. }
  20514. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, checkNil bool, d *Decoder) {
  20515. v, changed := f.DecMapIntInt16V(*vp, checkNil, true, d)
  20516. if changed {
  20517. *vp = v
  20518. }
  20519. }
  20520. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, checkNil bool, canChange bool,
  20521. d *Decoder) (_ map[int]int16, changed bool) {
  20522. dd := d.d
  20523. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20524. if checkNil && dd.TryDecodeAsNil() {
  20525. if v != nil {
  20526. changed = true
  20527. }
  20528. return nil, changed
  20529. }
  20530. containerLen := dd.ReadMapStart()
  20531. if canChange && v == nil {
  20532. if containerLen > 0 {
  20533. v = make(map[int]int16, containerLen)
  20534. } else {
  20535. v = make(map[int]int16) // supports indefinite-length, etc
  20536. }
  20537. changed = true
  20538. }
  20539. if containerLen > 0 {
  20540. for j := 0; j < containerLen; j++ {
  20541. mk := int(dd.DecodeInt(intBitsize))
  20542. mv := v[mk]
  20543. mv = int16(dd.DecodeInt(16))
  20544. if v != nil {
  20545. v[mk] = mv
  20546. }
  20547. }
  20548. } else if containerLen < 0 {
  20549. for j := 0; !dd.CheckBreak(); j++ {
  20550. if j > 0 {
  20551. dd.ReadMapEntrySeparator()
  20552. }
  20553. mk := int(dd.DecodeInt(intBitsize))
  20554. dd.ReadMapKVSeparator()
  20555. mv := v[mk]
  20556. mv = int16(dd.DecodeInt(16))
  20557. if v != nil {
  20558. v[mk] = mv
  20559. }
  20560. }
  20561. dd.ReadMapEnd()
  20562. }
  20563. return v, changed
  20564. }
  20565. func (f decFnInfo) fastpathDecMapIntInt32R(rv reflect.Value) {
  20566. if rv.CanAddr() {
  20567. vp := rv.Addr().Interface().(*map[int]int32)
  20568. v, changed := fastpathTV.DecMapIntInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  20569. if changed {
  20570. *vp = v
  20571. }
  20572. } else {
  20573. v := rv.Interface().(map[int]int32)
  20574. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, f.d)
  20575. }
  20576. }
  20577. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, checkNil bool, d *Decoder) {
  20578. v, changed := f.DecMapIntInt32V(*vp, checkNil, true, d)
  20579. if changed {
  20580. *vp = v
  20581. }
  20582. }
  20583. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, checkNil bool, canChange bool,
  20584. d *Decoder) (_ map[int]int32, changed bool) {
  20585. dd := d.d
  20586. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20587. if checkNil && dd.TryDecodeAsNil() {
  20588. if v != nil {
  20589. changed = true
  20590. }
  20591. return nil, changed
  20592. }
  20593. containerLen := dd.ReadMapStart()
  20594. if canChange && v == nil {
  20595. if containerLen > 0 {
  20596. v = make(map[int]int32, containerLen)
  20597. } else {
  20598. v = make(map[int]int32) // supports indefinite-length, etc
  20599. }
  20600. changed = true
  20601. }
  20602. if containerLen > 0 {
  20603. for j := 0; j < containerLen; j++ {
  20604. mk := int(dd.DecodeInt(intBitsize))
  20605. mv := v[mk]
  20606. mv = int32(dd.DecodeInt(32))
  20607. if v != nil {
  20608. v[mk] = mv
  20609. }
  20610. }
  20611. } else if containerLen < 0 {
  20612. for j := 0; !dd.CheckBreak(); j++ {
  20613. if j > 0 {
  20614. dd.ReadMapEntrySeparator()
  20615. }
  20616. mk := int(dd.DecodeInt(intBitsize))
  20617. dd.ReadMapKVSeparator()
  20618. mv := v[mk]
  20619. mv = int32(dd.DecodeInt(32))
  20620. if v != nil {
  20621. v[mk] = mv
  20622. }
  20623. }
  20624. dd.ReadMapEnd()
  20625. }
  20626. return v, changed
  20627. }
  20628. func (f decFnInfo) fastpathDecMapIntInt64R(rv reflect.Value) {
  20629. if rv.CanAddr() {
  20630. vp := rv.Addr().Interface().(*map[int]int64)
  20631. v, changed := fastpathTV.DecMapIntInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  20632. if changed {
  20633. *vp = v
  20634. }
  20635. } else {
  20636. v := rv.Interface().(map[int]int64)
  20637. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, f.d)
  20638. }
  20639. }
  20640. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, checkNil bool, d *Decoder) {
  20641. v, changed := f.DecMapIntInt64V(*vp, checkNil, true, d)
  20642. if changed {
  20643. *vp = v
  20644. }
  20645. }
  20646. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, checkNil bool, canChange bool,
  20647. d *Decoder) (_ map[int]int64, changed bool) {
  20648. dd := d.d
  20649. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20650. if checkNil && dd.TryDecodeAsNil() {
  20651. if v != nil {
  20652. changed = true
  20653. }
  20654. return nil, changed
  20655. }
  20656. containerLen := dd.ReadMapStart()
  20657. if canChange && v == nil {
  20658. if containerLen > 0 {
  20659. v = make(map[int]int64, containerLen)
  20660. } else {
  20661. v = make(map[int]int64) // supports indefinite-length, etc
  20662. }
  20663. changed = true
  20664. }
  20665. if containerLen > 0 {
  20666. for j := 0; j < containerLen; j++ {
  20667. mk := int(dd.DecodeInt(intBitsize))
  20668. mv := v[mk]
  20669. mv = dd.DecodeInt(64)
  20670. if v != nil {
  20671. v[mk] = mv
  20672. }
  20673. }
  20674. } else if containerLen < 0 {
  20675. for j := 0; !dd.CheckBreak(); j++ {
  20676. if j > 0 {
  20677. dd.ReadMapEntrySeparator()
  20678. }
  20679. mk := int(dd.DecodeInt(intBitsize))
  20680. dd.ReadMapKVSeparator()
  20681. mv := v[mk]
  20682. mv = dd.DecodeInt(64)
  20683. if v != nil {
  20684. v[mk] = mv
  20685. }
  20686. }
  20687. dd.ReadMapEnd()
  20688. }
  20689. return v, changed
  20690. }
  20691. func (f decFnInfo) fastpathDecMapIntFloat32R(rv reflect.Value) {
  20692. if rv.CanAddr() {
  20693. vp := rv.Addr().Interface().(*map[int]float32)
  20694. v, changed := fastpathTV.DecMapIntFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  20695. if changed {
  20696. *vp = v
  20697. }
  20698. } else {
  20699. v := rv.Interface().(map[int]float32)
  20700. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, f.d)
  20701. }
  20702. }
  20703. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, checkNil bool, d *Decoder) {
  20704. v, changed := f.DecMapIntFloat32V(*vp, checkNil, true, d)
  20705. if changed {
  20706. *vp = v
  20707. }
  20708. }
  20709. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, checkNil bool, canChange bool,
  20710. d *Decoder) (_ map[int]float32, changed bool) {
  20711. dd := d.d
  20712. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20713. if checkNil && dd.TryDecodeAsNil() {
  20714. if v != nil {
  20715. changed = true
  20716. }
  20717. return nil, changed
  20718. }
  20719. containerLen := dd.ReadMapStart()
  20720. if canChange && v == nil {
  20721. if containerLen > 0 {
  20722. v = make(map[int]float32, containerLen)
  20723. } else {
  20724. v = make(map[int]float32) // supports indefinite-length, etc
  20725. }
  20726. changed = true
  20727. }
  20728. if containerLen > 0 {
  20729. for j := 0; j < containerLen; j++ {
  20730. mk := int(dd.DecodeInt(intBitsize))
  20731. mv := v[mk]
  20732. mv = float32(dd.DecodeFloat(true))
  20733. if v != nil {
  20734. v[mk] = mv
  20735. }
  20736. }
  20737. } else if containerLen < 0 {
  20738. for j := 0; !dd.CheckBreak(); j++ {
  20739. if j > 0 {
  20740. dd.ReadMapEntrySeparator()
  20741. }
  20742. mk := int(dd.DecodeInt(intBitsize))
  20743. dd.ReadMapKVSeparator()
  20744. mv := v[mk]
  20745. mv = float32(dd.DecodeFloat(true))
  20746. if v != nil {
  20747. v[mk] = mv
  20748. }
  20749. }
  20750. dd.ReadMapEnd()
  20751. }
  20752. return v, changed
  20753. }
  20754. func (f decFnInfo) fastpathDecMapIntFloat64R(rv reflect.Value) {
  20755. if rv.CanAddr() {
  20756. vp := rv.Addr().Interface().(*map[int]float64)
  20757. v, changed := fastpathTV.DecMapIntFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  20758. if changed {
  20759. *vp = v
  20760. }
  20761. } else {
  20762. v := rv.Interface().(map[int]float64)
  20763. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, f.d)
  20764. }
  20765. }
  20766. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, checkNil bool, d *Decoder) {
  20767. v, changed := f.DecMapIntFloat64V(*vp, checkNil, true, d)
  20768. if changed {
  20769. *vp = v
  20770. }
  20771. }
  20772. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, checkNil bool, canChange bool,
  20773. d *Decoder) (_ map[int]float64, changed bool) {
  20774. dd := d.d
  20775. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20776. if checkNil && dd.TryDecodeAsNil() {
  20777. if v != nil {
  20778. changed = true
  20779. }
  20780. return nil, changed
  20781. }
  20782. containerLen := dd.ReadMapStart()
  20783. if canChange && v == nil {
  20784. if containerLen > 0 {
  20785. v = make(map[int]float64, containerLen)
  20786. } else {
  20787. v = make(map[int]float64) // supports indefinite-length, etc
  20788. }
  20789. changed = true
  20790. }
  20791. if containerLen > 0 {
  20792. for j := 0; j < containerLen; j++ {
  20793. mk := int(dd.DecodeInt(intBitsize))
  20794. mv := v[mk]
  20795. mv = dd.DecodeFloat(false)
  20796. if v != nil {
  20797. v[mk] = mv
  20798. }
  20799. }
  20800. } else if containerLen < 0 {
  20801. for j := 0; !dd.CheckBreak(); j++ {
  20802. if j > 0 {
  20803. dd.ReadMapEntrySeparator()
  20804. }
  20805. mk := int(dd.DecodeInt(intBitsize))
  20806. dd.ReadMapKVSeparator()
  20807. mv := v[mk]
  20808. mv = dd.DecodeFloat(false)
  20809. if v != nil {
  20810. v[mk] = mv
  20811. }
  20812. }
  20813. dd.ReadMapEnd()
  20814. }
  20815. return v, changed
  20816. }
  20817. func (f decFnInfo) fastpathDecMapIntBoolR(rv reflect.Value) {
  20818. if rv.CanAddr() {
  20819. vp := rv.Addr().Interface().(*map[int]bool)
  20820. v, changed := fastpathTV.DecMapIntBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  20821. if changed {
  20822. *vp = v
  20823. }
  20824. } else {
  20825. v := rv.Interface().(map[int]bool)
  20826. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, f.d)
  20827. }
  20828. }
  20829. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, checkNil bool, d *Decoder) {
  20830. v, changed := f.DecMapIntBoolV(*vp, checkNil, true, d)
  20831. if changed {
  20832. *vp = v
  20833. }
  20834. }
  20835. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, checkNil bool, canChange bool,
  20836. d *Decoder) (_ map[int]bool, changed bool) {
  20837. dd := d.d
  20838. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20839. if checkNil && dd.TryDecodeAsNil() {
  20840. if v != nil {
  20841. changed = true
  20842. }
  20843. return nil, changed
  20844. }
  20845. containerLen := dd.ReadMapStart()
  20846. if canChange && v == nil {
  20847. if containerLen > 0 {
  20848. v = make(map[int]bool, containerLen)
  20849. } else {
  20850. v = make(map[int]bool) // supports indefinite-length, etc
  20851. }
  20852. changed = true
  20853. }
  20854. if containerLen > 0 {
  20855. for j := 0; j < containerLen; j++ {
  20856. mk := int(dd.DecodeInt(intBitsize))
  20857. mv := v[mk]
  20858. mv = dd.DecodeBool()
  20859. if v != nil {
  20860. v[mk] = mv
  20861. }
  20862. }
  20863. } else if containerLen < 0 {
  20864. for j := 0; !dd.CheckBreak(); j++ {
  20865. if j > 0 {
  20866. dd.ReadMapEntrySeparator()
  20867. }
  20868. mk := int(dd.DecodeInt(intBitsize))
  20869. dd.ReadMapKVSeparator()
  20870. mv := v[mk]
  20871. mv = dd.DecodeBool()
  20872. if v != nil {
  20873. v[mk] = mv
  20874. }
  20875. }
  20876. dd.ReadMapEnd()
  20877. }
  20878. return v, changed
  20879. }
  20880. func (f decFnInfo) fastpathDecMapInt8IntfR(rv reflect.Value) {
  20881. if rv.CanAddr() {
  20882. vp := rv.Addr().Interface().(*map[int8]interface{})
  20883. v, changed := fastpathTV.DecMapInt8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  20884. if changed {
  20885. *vp = v
  20886. }
  20887. } else {
  20888. v := rv.Interface().(map[int8]interface{})
  20889. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, f.d)
  20890. }
  20891. }
  20892. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, checkNil bool, d *Decoder) {
  20893. v, changed := f.DecMapInt8IntfV(*vp, checkNil, true, d)
  20894. if changed {
  20895. *vp = v
  20896. }
  20897. }
  20898. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, checkNil bool, canChange bool,
  20899. d *Decoder) (_ map[int8]interface{}, changed bool) {
  20900. dd := d.d
  20901. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20902. if checkNil && dd.TryDecodeAsNil() {
  20903. if v != nil {
  20904. changed = true
  20905. }
  20906. return nil, changed
  20907. }
  20908. containerLen := dd.ReadMapStart()
  20909. if canChange && v == nil {
  20910. if containerLen > 0 {
  20911. v = make(map[int8]interface{}, containerLen)
  20912. } else {
  20913. v = make(map[int8]interface{}) // supports indefinite-length, etc
  20914. }
  20915. changed = true
  20916. }
  20917. if containerLen > 0 {
  20918. for j := 0; j < containerLen; j++ {
  20919. mk := int8(dd.DecodeInt(8))
  20920. mv := v[mk]
  20921. d.decode(&mv)
  20922. if v != nil {
  20923. v[mk] = mv
  20924. }
  20925. }
  20926. } else if containerLen < 0 {
  20927. for j := 0; !dd.CheckBreak(); j++ {
  20928. if j > 0 {
  20929. dd.ReadMapEntrySeparator()
  20930. }
  20931. mk := int8(dd.DecodeInt(8))
  20932. dd.ReadMapKVSeparator()
  20933. mv := v[mk]
  20934. d.decode(&mv)
  20935. if v != nil {
  20936. v[mk] = mv
  20937. }
  20938. }
  20939. dd.ReadMapEnd()
  20940. }
  20941. return v, changed
  20942. }
  20943. func (f decFnInfo) fastpathDecMapInt8StringR(rv reflect.Value) {
  20944. if rv.CanAddr() {
  20945. vp := rv.Addr().Interface().(*map[int8]string)
  20946. v, changed := fastpathTV.DecMapInt8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  20947. if changed {
  20948. *vp = v
  20949. }
  20950. } else {
  20951. v := rv.Interface().(map[int8]string)
  20952. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, f.d)
  20953. }
  20954. }
  20955. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, checkNil bool, d *Decoder) {
  20956. v, changed := f.DecMapInt8StringV(*vp, checkNil, true, d)
  20957. if changed {
  20958. *vp = v
  20959. }
  20960. }
  20961. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, checkNil bool, canChange bool,
  20962. d *Decoder) (_ map[int8]string, changed bool) {
  20963. dd := d.d
  20964. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20965. if checkNil && dd.TryDecodeAsNil() {
  20966. if v != nil {
  20967. changed = true
  20968. }
  20969. return nil, changed
  20970. }
  20971. containerLen := dd.ReadMapStart()
  20972. if canChange && v == nil {
  20973. if containerLen > 0 {
  20974. v = make(map[int8]string, containerLen)
  20975. } else {
  20976. v = make(map[int8]string) // supports indefinite-length, etc
  20977. }
  20978. changed = true
  20979. }
  20980. if containerLen > 0 {
  20981. for j := 0; j < containerLen; j++ {
  20982. mk := int8(dd.DecodeInt(8))
  20983. mv := v[mk]
  20984. mv = dd.DecodeString()
  20985. if v != nil {
  20986. v[mk] = mv
  20987. }
  20988. }
  20989. } else if containerLen < 0 {
  20990. for j := 0; !dd.CheckBreak(); j++ {
  20991. if j > 0 {
  20992. dd.ReadMapEntrySeparator()
  20993. }
  20994. mk := int8(dd.DecodeInt(8))
  20995. dd.ReadMapKVSeparator()
  20996. mv := v[mk]
  20997. mv = dd.DecodeString()
  20998. if v != nil {
  20999. v[mk] = mv
  21000. }
  21001. }
  21002. dd.ReadMapEnd()
  21003. }
  21004. return v, changed
  21005. }
  21006. func (f decFnInfo) fastpathDecMapInt8UintR(rv reflect.Value) {
  21007. if rv.CanAddr() {
  21008. vp := rv.Addr().Interface().(*map[int8]uint)
  21009. v, changed := fastpathTV.DecMapInt8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  21010. if changed {
  21011. *vp = v
  21012. }
  21013. } else {
  21014. v := rv.Interface().(map[int8]uint)
  21015. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, f.d)
  21016. }
  21017. }
  21018. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, checkNil bool, d *Decoder) {
  21019. v, changed := f.DecMapInt8UintV(*vp, checkNil, true, d)
  21020. if changed {
  21021. *vp = v
  21022. }
  21023. }
  21024. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, checkNil bool, canChange bool,
  21025. d *Decoder) (_ map[int8]uint, changed bool) {
  21026. dd := d.d
  21027. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21028. if checkNil && dd.TryDecodeAsNil() {
  21029. if v != nil {
  21030. changed = true
  21031. }
  21032. return nil, changed
  21033. }
  21034. containerLen := dd.ReadMapStart()
  21035. if canChange && v == nil {
  21036. if containerLen > 0 {
  21037. v = make(map[int8]uint, containerLen)
  21038. } else {
  21039. v = make(map[int8]uint) // supports indefinite-length, etc
  21040. }
  21041. changed = true
  21042. }
  21043. if containerLen > 0 {
  21044. for j := 0; j < containerLen; j++ {
  21045. mk := int8(dd.DecodeInt(8))
  21046. mv := v[mk]
  21047. mv = uint(dd.DecodeUint(uintBitsize))
  21048. if v != nil {
  21049. v[mk] = mv
  21050. }
  21051. }
  21052. } else if containerLen < 0 {
  21053. for j := 0; !dd.CheckBreak(); j++ {
  21054. if j > 0 {
  21055. dd.ReadMapEntrySeparator()
  21056. }
  21057. mk := int8(dd.DecodeInt(8))
  21058. dd.ReadMapKVSeparator()
  21059. mv := v[mk]
  21060. mv = uint(dd.DecodeUint(uintBitsize))
  21061. if v != nil {
  21062. v[mk] = mv
  21063. }
  21064. }
  21065. dd.ReadMapEnd()
  21066. }
  21067. return v, changed
  21068. }
  21069. func (f decFnInfo) fastpathDecMapInt8Uint8R(rv reflect.Value) {
  21070. if rv.CanAddr() {
  21071. vp := rv.Addr().Interface().(*map[int8]uint8)
  21072. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  21073. if changed {
  21074. *vp = v
  21075. }
  21076. } else {
  21077. v := rv.Interface().(map[int8]uint8)
  21078. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  21079. }
  21080. }
  21081. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, checkNil bool, d *Decoder) {
  21082. v, changed := f.DecMapInt8Uint8V(*vp, checkNil, true, d)
  21083. if changed {
  21084. *vp = v
  21085. }
  21086. }
  21087. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, checkNil bool, canChange bool,
  21088. d *Decoder) (_ map[int8]uint8, changed bool) {
  21089. dd := d.d
  21090. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21091. if checkNil && dd.TryDecodeAsNil() {
  21092. if v != nil {
  21093. changed = true
  21094. }
  21095. return nil, changed
  21096. }
  21097. containerLen := dd.ReadMapStart()
  21098. if canChange && v == nil {
  21099. if containerLen > 0 {
  21100. v = make(map[int8]uint8, containerLen)
  21101. } else {
  21102. v = make(map[int8]uint8) // supports indefinite-length, etc
  21103. }
  21104. changed = true
  21105. }
  21106. if containerLen > 0 {
  21107. for j := 0; j < containerLen; j++ {
  21108. mk := int8(dd.DecodeInt(8))
  21109. mv := v[mk]
  21110. mv = uint8(dd.DecodeUint(8))
  21111. if v != nil {
  21112. v[mk] = mv
  21113. }
  21114. }
  21115. } else if containerLen < 0 {
  21116. for j := 0; !dd.CheckBreak(); j++ {
  21117. if j > 0 {
  21118. dd.ReadMapEntrySeparator()
  21119. }
  21120. mk := int8(dd.DecodeInt(8))
  21121. dd.ReadMapKVSeparator()
  21122. mv := v[mk]
  21123. mv = uint8(dd.DecodeUint(8))
  21124. if v != nil {
  21125. v[mk] = mv
  21126. }
  21127. }
  21128. dd.ReadMapEnd()
  21129. }
  21130. return v, changed
  21131. }
  21132. func (f decFnInfo) fastpathDecMapInt8Uint16R(rv reflect.Value) {
  21133. if rv.CanAddr() {
  21134. vp := rv.Addr().Interface().(*map[int8]uint16)
  21135. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  21136. if changed {
  21137. *vp = v
  21138. }
  21139. } else {
  21140. v := rv.Interface().(map[int8]uint16)
  21141. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  21142. }
  21143. }
  21144. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, checkNil bool, d *Decoder) {
  21145. v, changed := f.DecMapInt8Uint16V(*vp, checkNil, true, d)
  21146. if changed {
  21147. *vp = v
  21148. }
  21149. }
  21150. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, checkNil bool, canChange bool,
  21151. d *Decoder) (_ map[int8]uint16, changed bool) {
  21152. dd := d.d
  21153. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21154. if checkNil && dd.TryDecodeAsNil() {
  21155. if v != nil {
  21156. changed = true
  21157. }
  21158. return nil, changed
  21159. }
  21160. containerLen := dd.ReadMapStart()
  21161. if canChange && v == nil {
  21162. if containerLen > 0 {
  21163. v = make(map[int8]uint16, containerLen)
  21164. } else {
  21165. v = make(map[int8]uint16) // supports indefinite-length, etc
  21166. }
  21167. changed = true
  21168. }
  21169. if containerLen > 0 {
  21170. for j := 0; j < containerLen; j++ {
  21171. mk := int8(dd.DecodeInt(8))
  21172. mv := v[mk]
  21173. mv = uint16(dd.DecodeUint(16))
  21174. if v != nil {
  21175. v[mk] = mv
  21176. }
  21177. }
  21178. } else if containerLen < 0 {
  21179. for j := 0; !dd.CheckBreak(); j++ {
  21180. if j > 0 {
  21181. dd.ReadMapEntrySeparator()
  21182. }
  21183. mk := int8(dd.DecodeInt(8))
  21184. dd.ReadMapKVSeparator()
  21185. mv := v[mk]
  21186. mv = uint16(dd.DecodeUint(16))
  21187. if v != nil {
  21188. v[mk] = mv
  21189. }
  21190. }
  21191. dd.ReadMapEnd()
  21192. }
  21193. return v, changed
  21194. }
  21195. func (f decFnInfo) fastpathDecMapInt8Uint32R(rv reflect.Value) {
  21196. if rv.CanAddr() {
  21197. vp := rv.Addr().Interface().(*map[int8]uint32)
  21198. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  21199. if changed {
  21200. *vp = v
  21201. }
  21202. } else {
  21203. v := rv.Interface().(map[int8]uint32)
  21204. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  21205. }
  21206. }
  21207. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, checkNil bool, d *Decoder) {
  21208. v, changed := f.DecMapInt8Uint32V(*vp, checkNil, true, d)
  21209. if changed {
  21210. *vp = v
  21211. }
  21212. }
  21213. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, checkNil bool, canChange bool,
  21214. d *Decoder) (_ map[int8]uint32, changed bool) {
  21215. dd := d.d
  21216. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21217. if checkNil && dd.TryDecodeAsNil() {
  21218. if v != nil {
  21219. changed = true
  21220. }
  21221. return nil, changed
  21222. }
  21223. containerLen := dd.ReadMapStart()
  21224. if canChange && v == nil {
  21225. if containerLen > 0 {
  21226. v = make(map[int8]uint32, containerLen)
  21227. } else {
  21228. v = make(map[int8]uint32) // supports indefinite-length, etc
  21229. }
  21230. changed = true
  21231. }
  21232. if containerLen > 0 {
  21233. for j := 0; j < containerLen; j++ {
  21234. mk := int8(dd.DecodeInt(8))
  21235. mv := v[mk]
  21236. mv = uint32(dd.DecodeUint(32))
  21237. if v != nil {
  21238. v[mk] = mv
  21239. }
  21240. }
  21241. } else if containerLen < 0 {
  21242. for j := 0; !dd.CheckBreak(); j++ {
  21243. if j > 0 {
  21244. dd.ReadMapEntrySeparator()
  21245. }
  21246. mk := int8(dd.DecodeInt(8))
  21247. dd.ReadMapKVSeparator()
  21248. mv := v[mk]
  21249. mv = uint32(dd.DecodeUint(32))
  21250. if v != nil {
  21251. v[mk] = mv
  21252. }
  21253. }
  21254. dd.ReadMapEnd()
  21255. }
  21256. return v, changed
  21257. }
  21258. func (f decFnInfo) fastpathDecMapInt8Uint64R(rv reflect.Value) {
  21259. if rv.CanAddr() {
  21260. vp := rv.Addr().Interface().(*map[int8]uint64)
  21261. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  21262. if changed {
  21263. *vp = v
  21264. }
  21265. } else {
  21266. v := rv.Interface().(map[int8]uint64)
  21267. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  21268. }
  21269. }
  21270. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, checkNil bool, d *Decoder) {
  21271. v, changed := f.DecMapInt8Uint64V(*vp, checkNil, true, d)
  21272. if changed {
  21273. *vp = v
  21274. }
  21275. }
  21276. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, checkNil bool, canChange bool,
  21277. d *Decoder) (_ map[int8]uint64, changed bool) {
  21278. dd := d.d
  21279. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21280. if checkNil && dd.TryDecodeAsNil() {
  21281. if v != nil {
  21282. changed = true
  21283. }
  21284. return nil, changed
  21285. }
  21286. containerLen := dd.ReadMapStart()
  21287. if canChange && v == nil {
  21288. if containerLen > 0 {
  21289. v = make(map[int8]uint64, containerLen)
  21290. } else {
  21291. v = make(map[int8]uint64) // supports indefinite-length, etc
  21292. }
  21293. changed = true
  21294. }
  21295. if containerLen > 0 {
  21296. for j := 0; j < containerLen; j++ {
  21297. mk := int8(dd.DecodeInt(8))
  21298. mv := v[mk]
  21299. mv = dd.DecodeUint(64)
  21300. if v != nil {
  21301. v[mk] = mv
  21302. }
  21303. }
  21304. } else if containerLen < 0 {
  21305. for j := 0; !dd.CheckBreak(); j++ {
  21306. if j > 0 {
  21307. dd.ReadMapEntrySeparator()
  21308. }
  21309. mk := int8(dd.DecodeInt(8))
  21310. dd.ReadMapKVSeparator()
  21311. mv := v[mk]
  21312. mv = dd.DecodeUint(64)
  21313. if v != nil {
  21314. v[mk] = mv
  21315. }
  21316. }
  21317. dd.ReadMapEnd()
  21318. }
  21319. return v, changed
  21320. }
  21321. func (f decFnInfo) fastpathDecMapInt8IntR(rv reflect.Value) {
  21322. if rv.CanAddr() {
  21323. vp := rv.Addr().Interface().(*map[int8]int)
  21324. v, changed := fastpathTV.DecMapInt8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  21325. if changed {
  21326. *vp = v
  21327. }
  21328. } else {
  21329. v := rv.Interface().(map[int8]int)
  21330. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, f.d)
  21331. }
  21332. }
  21333. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, checkNil bool, d *Decoder) {
  21334. v, changed := f.DecMapInt8IntV(*vp, checkNil, true, d)
  21335. if changed {
  21336. *vp = v
  21337. }
  21338. }
  21339. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, checkNil bool, canChange bool,
  21340. d *Decoder) (_ map[int8]int, changed bool) {
  21341. dd := d.d
  21342. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21343. if checkNil && dd.TryDecodeAsNil() {
  21344. if v != nil {
  21345. changed = true
  21346. }
  21347. return nil, changed
  21348. }
  21349. containerLen := dd.ReadMapStart()
  21350. if canChange && v == nil {
  21351. if containerLen > 0 {
  21352. v = make(map[int8]int, containerLen)
  21353. } else {
  21354. v = make(map[int8]int) // supports indefinite-length, etc
  21355. }
  21356. changed = true
  21357. }
  21358. if containerLen > 0 {
  21359. for j := 0; j < containerLen; j++ {
  21360. mk := int8(dd.DecodeInt(8))
  21361. mv := v[mk]
  21362. mv = int(dd.DecodeInt(intBitsize))
  21363. if v != nil {
  21364. v[mk] = mv
  21365. }
  21366. }
  21367. } else if containerLen < 0 {
  21368. for j := 0; !dd.CheckBreak(); j++ {
  21369. if j > 0 {
  21370. dd.ReadMapEntrySeparator()
  21371. }
  21372. mk := int8(dd.DecodeInt(8))
  21373. dd.ReadMapKVSeparator()
  21374. mv := v[mk]
  21375. mv = int(dd.DecodeInt(intBitsize))
  21376. if v != nil {
  21377. v[mk] = mv
  21378. }
  21379. }
  21380. dd.ReadMapEnd()
  21381. }
  21382. return v, changed
  21383. }
  21384. func (f decFnInfo) fastpathDecMapInt8Int8R(rv reflect.Value) {
  21385. if rv.CanAddr() {
  21386. vp := rv.Addr().Interface().(*map[int8]int8)
  21387. v, changed := fastpathTV.DecMapInt8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  21388. if changed {
  21389. *vp = v
  21390. }
  21391. } else {
  21392. v := rv.Interface().(map[int8]int8)
  21393. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, f.d)
  21394. }
  21395. }
  21396. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, checkNil bool, d *Decoder) {
  21397. v, changed := f.DecMapInt8Int8V(*vp, checkNil, true, d)
  21398. if changed {
  21399. *vp = v
  21400. }
  21401. }
  21402. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, checkNil bool, canChange bool,
  21403. d *Decoder) (_ map[int8]int8, changed bool) {
  21404. dd := d.d
  21405. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21406. if checkNil && dd.TryDecodeAsNil() {
  21407. if v != nil {
  21408. changed = true
  21409. }
  21410. return nil, changed
  21411. }
  21412. containerLen := dd.ReadMapStart()
  21413. if canChange && v == nil {
  21414. if containerLen > 0 {
  21415. v = make(map[int8]int8, containerLen)
  21416. } else {
  21417. v = make(map[int8]int8) // supports indefinite-length, etc
  21418. }
  21419. changed = true
  21420. }
  21421. if containerLen > 0 {
  21422. for j := 0; j < containerLen; j++ {
  21423. mk := int8(dd.DecodeInt(8))
  21424. mv := v[mk]
  21425. mv = int8(dd.DecodeInt(8))
  21426. if v != nil {
  21427. v[mk] = mv
  21428. }
  21429. }
  21430. } else if containerLen < 0 {
  21431. for j := 0; !dd.CheckBreak(); j++ {
  21432. if j > 0 {
  21433. dd.ReadMapEntrySeparator()
  21434. }
  21435. mk := int8(dd.DecodeInt(8))
  21436. dd.ReadMapKVSeparator()
  21437. mv := v[mk]
  21438. mv = int8(dd.DecodeInt(8))
  21439. if v != nil {
  21440. v[mk] = mv
  21441. }
  21442. }
  21443. dd.ReadMapEnd()
  21444. }
  21445. return v, changed
  21446. }
  21447. func (f decFnInfo) fastpathDecMapInt8Int16R(rv reflect.Value) {
  21448. if rv.CanAddr() {
  21449. vp := rv.Addr().Interface().(*map[int8]int16)
  21450. v, changed := fastpathTV.DecMapInt8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  21451. if changed {
  21452. *vp = v
  21453. }
  21454. } else {
  21455. v := rv.Interface().(map[int8]int16)
  21456. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, f.d)
  21457. }
  21458. }
  21459. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, checkNil bool, d *Decoder) {
  21460. v, changed := f.DecMapInt8Int16V(*vp, checkNil, true, d)
  21461. if changed {
  21462. *vp = v
  21463. }
  21464. }
  21465. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, checkNil bool, canChange bool,
  21466. d *Decoder) (_ map[int8]int16, changed bool) {
  21467. dd := d.d
  21468. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21469. if checkNil && dd.TryDecodeAsNil() {
  21470. if v != nil {
  21471. changed = true
  21472. }
  21473. return nil, changed
  21474. }
  21475. containerLen := dd.ReadMapStart()
  21476. if canChange && v == nil {
  21477. if containerLen > 0 {
  21478. v = make(map[int8]int16, containerLen)
  21479. } else {
  21480. v = make(map[int8]int16) // supports indefinite-length, etc
  21481. }
  21482. changed = true
  21483. }
  21484. if containerLen > 0 {
  21485. for j := 0; j < containerLen; j++ {
  21486. mk := int8(dd.DecodeInt(8))
  21487. mv := v[mk]
  21488. mv = int16(dd.DecodeInt(16))
  21489. if v != nil {
  21490. v[mk] = mv
  21491. }
  21492. }
  21493. } else if containerLen < 0 {
  21494. for j := 0; !dd.CheckBreak(); j++ {
  21495. if j > 0 {
  21496. dd.ReadMapEntrySeparator()
  21497. }
  21498. mk := int8(dd.DecodeInt(8))
  21499. dd.ReadMapKVSeparator()
  21500. mv := v[mk]
  21501. mv = int16(dd.DecodeInt(16))
  21502. if v != nil {
  21503. v[mk] = mv
  21504. }
  21505. }
  21506. dd.ReadMapEnd()
  21507. }
  21508. return v, changed
  21509. }
  21510. func (f decFnInfo) fastpathDecMapInt8Int32R(rv reflect.Value) {
  21511. if rv.CanAddr() {
  21512. vp := rv.Addr().Interface().(*map[int8]int32)
  21513. v, changed := fastpathTV.DecMapInt8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  21514. if changed {
  21515. *vp = v
  21516. }
  21517. } else {
  21518. v := rv.Interface().(map[int8]int32)
  21519. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, f.d)
  21520. }
  21521. }
  21522. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, checkNil bool, d *Decoder) {
  21523. v, changed := f.DecMapInt8Int32V(*vp, checkNil, true, d)
  21524. if changed {
  21525. *vp = v
  21526. }
  21527. }
  21528. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, checkNil bool, canChange bool,
  21529. d *Decoder) (_ map[int8]int32, changed bool) {
  21530. dd := d.d
  21531. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21532. if checkNil && dd.TryDecodeAsNil() {
  21533. if v != nil {
  21534. changed = true
  21535. }
  21536. return nil, changed
  21537. }
  21538. containerLen := dd.ReadMapStart()
  21539. if canChange && v == nil {
  21540. if containerLen > 0 {
  21541. v = make(map[int8]int32, containerLen)
  21542. } else {
  21543. v = make(map[int8]int32) // supports indefinite-length, etc
  21544. }
  21545. changed = true
  21546. }
  21547. if containerLen > 0 {
  21548. for j := 0; j < containerLen; j++ {
  21549. mk := int8(dd.DecodeInt(8))
  21550. mv := v[mk]
  21551. mv = int32(dd.DecodeInt(32))
  21552. if v != nil {
  21553. v[mk] = mv
  21554. }
  21555. }
  21556. } else if containerLen < 0 {
  21557. for j := 0; !dd.CheckBreak(); j++ {
  21558. if j > 0 {
  21559. dd.ReadMapEntrySeparator()
  21560. }
  21561. mk := int8(dd.DecodeInt(8))
  21562. dd.ReadMapKVSeparator()
  21563. mv := v[mk]
  21564. mv = int32(dd.DecodeInt(32))
  21565. if v != nil {
  21566. v[mk] = mv
  21567. }
  21568. }
  21569. dd.ReadMapEnd()
  21570. }
  21571. return v, changed
  21572. }
  21573. func (f decFnInfo) fastpathDecMapInt8Int64R(rv reflect.Value) {
  21574. if rv.CanAddr() {
  21575. vp := rv.Addr().Interface().(*map[int8]int64)
  21576. v, changed := fastpathTV.DecMapInt8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  21577. if changed {
  21578. *vp = v
  21579. }
  21580. } else {
  21581. v := rv.Interface().(map[int8]int64)
  21582. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, f.d)
  21583. }
  21584. }
  21585. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, checkNil bool, d *Decoder) {
  21586. v, changed := f.DecMapInt8Int64V(*vp, checkNil, true, d)
  21587. if changed {
  21588. *vp = v
  21589. }
  21590. }
  21591. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, checkNil bool, canChange bool,
  21592. d *Decoder) (_ map[int8]int64, changed bool) {
  21593. dd := d.d
  21594. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21595. if checkNil && dd.TryDecodeAsNil() {
  21596. if v != nil {
  21597. changed = true
  21598. }
  21599. return nil, changed
  21600. }
  21601. containerLen := dd.ReadMapStart()
  21602. if canChange && v == nil {
  21603. if containerLen > 0 {
  21604. v = make(map[int8]int64, containerLen)
  21605. } else {
  21606. v = make(map[int8]int64) // supports indefinite-length, etc
  21607. }
  21608. changed = true
  21609. }
  21610. if containerLen > 0 {
  21611. for j := 0; j < containerLen; j++ {
  21612. mk := int8(dd.DecodeInt(8))
  21613. mv := v[mk]
  21614. mv = dd.DecodeInt(64)
  21615. if v != nil {
  21616. v[mk] = mv
  21617. }
  21618. }
  21619. } else if containerLen < 0 {
  21620. for j := 0; !dd.CheckBreak(); j++ {
  21621. if j > 0 {
  21622. dd.ReadMapEntrySeparator()
  21623. }
  21624. mk := int8(dd.DecodeInt(8))
  21625. dd.ReadMapKVSeparator()
  21626. mv := v[mk]
  21627. mv = dd.DecodeInt(64)
  21628. if v != nil {
  21629. v[mk] = mv
  21630. }
  21631. }
  21632. dd.ReadMapEnd()
  21633. }
  21634. return v, changed
  21635. }
  21636. func (f decFnInfo) fastpathDecMapInt8Float32R(rv reflect.Value) {
  21637. if rv.CanAddr() {
  21638. vp := rv.Addr().Interface().(*map[int8]float32)
  21639. v, changed := fastpathTV.DecMapInt8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  21640. if changed {
  21641. *vp = v
  21642. }
  21643. } else {
  21644. v := rv.Interface().(map[int8]float32)
  21645. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, f.d)
  21646. }
  21647. }
  21648. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, checkNil bool, d *Decoder) {
  21649. v, changed := f.DecMapInt8Float32V(*vp, checkNil, true, d)
  21650. if changed {
  21651. *vp = v
  21652. }
  21653. }
  21654. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, checkNil bool, canChange bool,
  21655. d *Decoder) (_ map[int8]float32, changed bool) {
  21656. dd := d.d
  21657. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21658. if checkNil && dd.TryDecodeAsNil() {
  21659. if v != nil {
  21660. changed = true
  21661. }
  21662. return nil, changed
  21663. }
  21664. containerLen := dd.ReadMapStart()
  21665. if canChange && v == nil {
  21666. if containerLen > 0 {
  21667. v = make(map[int8]float32, containerLen)
  21668. } else {
  21669. v = make(map[int8]float32) // supports indefinite-length, etc
  21670. }
  21671. changed = true
  21672. }
  21673. if containerLen > 0 {
  21674. for j := 0; j < containerLen; j++ {
  21675. mk := int8(dd.DecodeInt(8))
  21676. mv := v[mk]
  21677. mv = float32(dd.DecodeFloat(true))
  21678. if v != nil {
  21679. v[mk] = mv
  21680. }
  21681. }
  21682. } else if containerLen < 0 {
  21683. for j := 0; !dd.CheckBreak(); j++ {
  21684. if j > 0 {
  21685. dd.ReadMapEntrySeparator()
  21686. }
  21687. mk := int8(dd.DecodeInt(8))
  21688. dd.ReadMapKVSeparator()
  21689. mv := v[mk]
  21690. mv = float32(dd.DecodeFloat(true))
  21691. if v != nil {
  21692. v[mk] = mv
  21693. }
  21694. }
  21695. dd.ReadMapEnd()
  21696. }
  21697. return v, changed
  21698. }
  21699. func (f decFnInfo) fastpathDecMapInt8Float64R(rv reflect.Value) {
  21700. if rv.CanAddr() {
  21701. vp := rv.Addr().Interface().(*map[int8]float64)
  21702. v, changed := fastpathTV.DecMapInt8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  21703. if changed {
  21704. *vp = v
  21705. }
  21706. } else {
  21707. v := rv.Interface().(map[int8]float64)
  21708. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, f.d)
  21709. }
  21710. }
  21711. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, checkNil bool, d *Decoder) {
  21712. v, changed := f.DecMapInt8Float64V(*vp, checkNil, true, d)
  21713. if changed {
  21714. *vp = v
  21715. }
  21716. }
  21717. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, checkNil bool, canChange bool,
  21718. d *Decoder) (_ map[int8]float64, changed bool) {
  21719. dd := d.d
  21720. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21721. if checkNil && dd.TryDecodeAsNil() {
  21722. if v != nil {
  21723. changed = true
  21724. }
  21725. return nil, changed
  21726. }
  21727. containerLen := dd.ReadMapStart()
  21728. if canChange && v == nil {
  21729. if containerLen > 0 {
  21730. v = make(map[int8]float64, containerLen)
  21731. } else {
  21732. v = make(map[int8]float64) // supports indefinite-length, etc
  21733. }
  21734. changed = true
  21735. }
  21736. if containerLen > 0 {
  21737. for j := 0; j < containerLen; j++ {
  21738. mk := int8(dd.DecodeInt(8))
  21739. mv := v[mk]
  21740. mv = dd.DecodeFloat(false)
  21741. if v != nil {
  21742. v[mk] = mv
  21743. }
  21744. }
  21745. } else if containerLen < 0 {
  21746. for j := 0; !dd.CheckBreak(); j++ {
  21747. if j > 0 {
  21748. dd.ReadMapEntrySeparator()
  21749. }
  21750. mk := int8(dd.DecodeInt(8))
  21751. dd.ReadMapKVSeparator()
  21752. mv := v[mk]
  21753. mv = dd.DecodeFloat(false)
  21754. if v != nil {
  21755. v[mk] = mv
  21756. }
  21757. }
  21758. dd.ReadMapEnd()
  21759. }
  21760. return v, changed
  21761. }
  21762. func (f decFnInfo) fastpathDecMapInt8BoolR(rv reflect.Value) {
  21763. if rv.CanAddr() {
  21764. vp := rv.Addr().Interface().(*map[int8]bool)
  21765. v, changed := fastpathTV.DecMapInt8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  21766. if changed {
  21767. *vp = v
  21768. }
  21769. } else {
  21770. v := rv.Interface().(map[int8]bool)
  21771. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, f.d)
  21772. }
  21773. }
  21774. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, checkNil bool, d *Decoder) {
  21775. v, changed := f.DecMapInt8BoolV(*vp, checkNil, true, d)
  21776. if changed {
  21777. *vp = v
  21778. }
  21779. }
  21780. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, checkNil bool, canChange bool,
  21781. d *Decoder) (_ map[int8]bool, changed bool) {
  21782. dd := d.d
  21783. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21784. if checkNil && dd.TryDecodeAsNil() {
  21785. if v != nil {
  21786. changed = true
  21787. }
  21788. return nil, changed
  21789. }
  21790. containerLen := dd.ReadMapStart()
  21791. if canChange && v == nil {
  21792. if containerLen > 0 {
  21793. v = make(map[int8]bool, containerLen)
  21794. } else {
  21795. v = make(map[int8]bool) // supports indefinite-length, etc
  21796. }
  21797. changed = true
  21798. }
  21799. if containerLen > 0 {
  21800. for j := 0; j < containerLen; j++ {
  21801. mk := int8(dd.DecodeInt(8))
  21802. mv := v[mk]
  21803. mv = dd.DecodeBool()
  21804. if v != nil {
  21805. v[mk] = mv
  21806. }
  21807. }
  21808. } else if containerLen < 0 {
  21809. for j := 0; !dd.CheckBreak(); j++ {
  21810. if j > 0 {
  21811. dd.ReadMapEntrySeparator()
  21812. }
  21813. mk := int8(dd.DecodeInt(8))
  21814. dd.ReadMapKVSeparator()
  21815. mv := v[mk]
  21816. mv = dd.DecodeBool()
  21817. if v != nil {
  21818. v[mk] = mv
  21819. }
  21820. }
  21821. dd.ReadMapEnd()
  21822. }
  21823. return v, changed
  21824. }
  21825. func (f decFnInfo) fastpathDecMapInt16IntfR(rv reflect.Value) {
  21826. if rv.CanAddr() {
  21827. vp := rv.Addr().Interface().(*map[int16]interface{})
  21828. v, changed := fastpathTV.DecMapInt16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  21829. if changed {
  21830. *vp = v
  21831. }
  21832. } else {
  21833. v := rv.Interface().(map[int16]interface{})
  21834. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, f.d)
  21835. }
  21836. }
  21837. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, checkNil bool, d *Decoder) {
  21838. v, changed := f.DecMapInt16IntfV(*vp, checkNil, true, d)
  21839. if changed {
  21840. *vp = v
  21841. }
  21842. }
  21843. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, checkNil bool, canChange bool,
  21844. d *Decoder) (_ map[int16]interface{}, changed bool) {
  21845. dd := d.d
  21846. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21847. if checkNil && dd.TryDecodeAsNil() {
  21848. if v != nil {
  21849. changed = true
  21850. }
  21851. return nil, changed
  21852. }
  21853. containerLen := dd.ReadMapStart()
  21854. if canChange && v == nil {
  21855. if containerLen > 0 {
  21856. v = make(map[int16]interface{}, containerLen)
  21857. } else {
  21858. v = make(map[int16]interface{}) // supports indefinite-length, etc
  21859. }
  21860. changed = true
  21861. }
  21862. if containerLen > 0 {
  21863. for j := 0; j < containerLen; j++ {
  21864. mk := int16(dd.DecodeInt(16))
  21865. mv := v[mk]
  21866. d.decode(&mv)
  21867. if v != nil {
  21868. v[mk] = mv
  21869. }
  21870. }
  21871. } else if containerLen < 0 {
  21872. for j := 0; !dd.CheckBreak(); j++ {
  21873. if j > 0 {
  21874. dd.ReadMapEntrySeparator()
  21875. }
  21876. mk := int16(dd.DecodeInt(16))
  21877. dd.ReadMapKVSeparator()
  21878. mv := v[mk]
  21879. d.decode(&mv)
  21880. if v != nil {
  21881. v[mk] = mv
  21882. }
  21883. }
  21884. dd.ReadMapEnd()
  21885. }
  21886. return v, changed
  21887. }
  21888. func (f decFnInfo) fastpathDecMapInt16StringR(rv reflect.Value) {
  21889. if rv.CanAddr() {
  21890. vp := rv.Addr().Interface().(*map[int16]string)
  21891. v, changed := fastpathTV.DecMapInt16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  21892. if changed {
  21893. *vp = v
  21894. }
  21895. } else {
  21896. v := rv.Interface().(map[int16]string)
  21897. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, f.d)
  21898. }
  21899. }
  21900. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, checkNil bool, d *Decoder) {
  21901. v, changed := f.DecMapInt16StringV(*vp, checkNil, true, d)
  21902. if changed {
  21903. *vp = v
  21904. }
  21905. }
  21906. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, checkNil bool, canChange bool,
  21907. d *Decoder) (_ map[int16]string, changed bool) {
  21908. dd := d.d
  21909. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21910. if checkNil && dd.TryDecodeAsNil() {
  21911. if v != nil {
  21912. changed = true
  21913. }
  21914. return nil, changed
  21915. }
  21916. containerLen := dd.ReadMapStart()
  21917. if canChange && v == nil {
  21918. if containerLen > 0 {
  21919. v = make(map[int16]string, containerLen)
  21920. } else {
  21921. v = make(map[int16]string) // supports indefinite-length, etc
  21922. }
  21923. changed = true
  21924. }
  21925. if containerLen > 0 {
  21926. for j := 0; j < containerLen; j++ {
  21927. mk := int16(dd.DecodeInt(16))
  21928. mv := v[mk]
  21929. mv = dd.DecodeString()
  21930. if v != nil {
  21931. v[mk] = mv
  21932. }
  21933. }
  21934. } else if containerLen < 0 {
  21935. for j := 0; !dd.CheckBreak(); j++ {
  21936. if j > 0 {
  21937. dd.ReadMapEntrySeparator()
  21938. }
  21939. mk := int16(dd.DecodeInt(16))
  21940. dd.ReadMapKVSeparator()
  21941. mv := v[mk]
  21942. mv = dd.DecodeString()
  21943. if v != nil {
  21944. v[mk] = mv
  21945. }
  21946. }
  21947. dd.ReadMapEnd()
  21948. }
  21949. return v, changed
  21950. }
  21951. func (f decFnInfo) fastpathDecMapInt16UintR(rv reflect.Value) {
  21952. if rv.CanAddr() {
  21953. vp := rv.Addr().Interface().(*map[int16]uint)
  21954. v, changed := fastpathTV.DecMapInt16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  21955. if changed {
  21956. *vp = v
  21957. }
  21958. } else {
  21959. v := rv.Interface().(map[int16]uint)
  21960. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, f.d)
  21961. }
  21962. }
  21963. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, checkNil bool, d *Decoder) {
  21964. v, changed := f.DecMapInt16UintV(*vp, checkNil, true, d)
  21965. if changed {
  21966. *vp = v
  21967. }
  21968. }
  21969. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, checkNil bool, canChange bool,
  21970. d *Decoder) (_ map[int16]uint, changed bool) {
  21971. dd := d.d
  21972. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21973. if checkNil && dd.TryDecodeAsNil() {
  21974. if v != nil {
  21975. changed = true
  21976. }
  21977. return nil, changed
  21978. }
  21979. containerLen := dd.ReadMapStart()
  21980. if canChange && v == nil {
  21981. if containerLen > 0 {
  21982. v = make(map[int16]uint, containerLen)
  21983. } else {
  21984. v = make(map[int16]uint) // supports indefinite-length, etc
  21985. }
  21986. changed = true
  21987. }
  21988. if containerLen > 0 {
  21989. for j := 0; j < containerLen; j++ {
  21990. mk := int16(dd.DecodeInt(16))
  21991. mv := v[mk]
  21992. mv = uint(dd.DecodeUint(uintBitsize))
  21993. if v != nil {
  21994. v[mk] = mv
  21995. }
  21996. }
  21997. } else if containerLen < 0 {
  21998. for j := 0; !dd.CheckBreak(); j++ {
  21999. if j > 0 {
  22000. dd.ReadMapEntrySeparator()
  22001. }
  22002. mk := int16(dd.DecodeInt(16))
  22003. dd.ReadMapKVSeparator()
  22004. mv := v[mk]
  22005. mv = uint(dd.DecodeUint(uintBitsize))
  22006. if v != nil {
  22007. v[mk] = mv
  22008. }
  22009. }
  22010. dd.ReadMapEnd()
  22011. }
  22012. return v, changed
  22013. }
  22014. func (f decFnInfo) fastpathDecMapInt16Uint8R(rv reflect.Value) {
  22015. if rv.CanAddr() {
  22016. vp := rv.Addr().Interface().(*map[int16]uint8)
  22017. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  22018. if changed {
  22019. *vp = v
  22020. }
  22021. } else {
  22022. v := rv.Interface().(map[int16]uint8)
  22023. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  22024. }
  22025. }
  22026. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, checkNil bool, d *Decoder) {
  22027. v, changed := f.DecMapInt16Uint8V(*vp, checkNil, true, d)
  22028. if changed {
  22029. *vp = v
  22030. }
  22031. }
  22032. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, checkNil bool, canChange bool,
  22033. d *Decoder) (_ map[int16]uint8, changed bool) {
  22034. dd := d.d
  22035. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22036. if checkNil && dd.TryDecodeAsNil() {
  22037. if v != nil {
  22038. changed = true
  22039. }
  22040. return nil, changed
  22041. }
  22042. containerLen := dd.ReadMapStart()
  22043. if canChange && v == nil {
  22044. if containerLen > 0 {
  22045. v = make(map[int16]uint8, containerLen)
  22046. } else {
  22047. v = make(map[int16]uint8) // supports indefinite-length, etc
  22048. }
  22049. changed = true
  22050. }
  22051. if containerLen > 0 {
  22052. for j := 0; j < containerLen; j++ {
  22053. mk := int16(dd.DecodeInt(16))
  22054. mv := v[mk]
  22055. mv = uint8(dd.DecodeUint(8))
  22056. if v != nil {
  22057. v[mk] = mv
  22058. }
  22059. }
  22060. } else if containerLen < 0 {
  22061. for j := 0; !dd.CheckBreak(); j++ {
  22062. if j > 0 {
  22063. dd.ReadMapEntrySeparator()
  22064. }
  22065. mk := int16(dd.DecodeInt(16))
  22066. dd.ReadMapKVSeparator()
  22067. mv := v[mk]
  22068. mv = uint8(dd.DecodeUint(8))
  22069. if v != nil {
  22070. v[mk] = mv
  22071. }
  22072. }
  22073. dd.ReadMapEnd()
  22074. }
  22075. return v, changed
  22076. }
  22077. func (f decFnInfo) fastpathDecMapInt16Uint16R(rv reflect.Value) {
  22078. if rv.CanAddr() {
  22079. vp := rv.Addr().Interface().(*map[int16]uint16)
  22080. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  22081. if changed {
  22082. *vp = v
  22083. }
  22084. } else {
  22085. v := rv.Interface().(map[int16]uint16)
  22086. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  22087. }
  22088. }
  22089. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, checkNil bool, d *Decoder) {
  22090. v, changed := f.DecMapInt16Uint16V(*vp, checkNil, true, d)
  22091. if changed {
  22092. *vp = v
  22093. }
  22094. }
  22095. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, checkNil bool, canChange bool,
  22096. d *Decoder) (_ map[int16]uint16, changed bool) {
  22097. dd := d.d
  22098. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22099. if checkNil && dd.TryDecodeAsNil() {
  22100. if v != nil {
  22101. changed = true
  22102. }
  22103. return nil, changed
  22104. }
  22105. containerLen := dd.ReadMapStart()
  22106. if canChange && v == nil {
  22107. if containerLen > 0 {
  22108. v = make(map[int16]uint16, containerLen)
  22109. } else {
  22110. v = make(map[int16]uint16) // supports indefinite-length, etc
  22111. }
  22112. changed = true
  22113. }
  22114. if containerLen > 0 {
  22115. for j := 0; j < containerLen; j++ {
  22116. mk := int16(dd.DecodeInt(16))
  22117. mv := v[mk]
  22118. mv = uint16(dd.DecodeUint(16))
  22119. if v != nil {
  22120. v[mk] = mv
  22121. }
  22122. }
  22123. } else if containerLen < 0 {
  22124. for j := 0; !dd.CheckBreak(); j++ {
  22125. if j > 0 {
  22126. dd.ReadMapEntrySeparator()
  22127. }
  22128. mk := int16(dd.DecodeInt(16))
  22129. dd.ReadMapKVSeparator()
  22130. mv := v[mk]
  22131. mv = uint16(dd.DecodeUint(16))
  22132. if v != nil {
  22133. v[mk] = mv
  22134. }
  22135. }
  22136. dd.ReadMapEnd()
  22137. }
  22138. return v, changed
  22139. }
  22140. func (f decFnInfo) fastpathDecMapInt16Uint32R(rv reflect.Value) {
  22141. if rv.CanAddr() {
  22142. vp := rv.Addr().Interface().(*map[int16]uint32)
  22143. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  22144. if changed {
  22145. *vp = v
  22146. }
  22147. } else {
  22148. v := rv.Interface().(map[int16]uint32)
  22149. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  22150. }
  22151. }
  22152. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, checkNil bool, d *Decoder) {
  22153. v, changed := f.DecMapInt16Uint32V(*vp, checkNil, true, d)
  22154. if changed {
  22155. *vp = v
  22156. }
  22157. }
  22158. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, checkNil bool, canChange bool,
  22159. d *Decoder) (_ map[int16]uint32, changed bool) {
  22160. dd := d.d
  22161. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22162. if checkNil && dd.TryDecodeAsNil() {
  22163. if v != nil {
  22164. changed = true
  22165. }
  22166. return nil, changed
  22167. }
  22168. containerLen := dd.ReadMapStart()
  22169. if canChange && v == nil {
  22170. if containerLen > 0 {
  22171. v = make(map[int16]uint32, containerLen)
  22172. } else {
  22173. v = make(map[int16]uint32) // supports indefinite-length, etc
  22174. }
  22175. changed = true
  22176. }
  22177. if containerLen > 0 {
  22178. for j := 0; j < containerLen; j++ {
  22179. mk := int16(dd.DecodeInt(16))
  22180. mv := v[mk]
  22181. mv = uint32(dd.DecodeUint(32))
  22182. if v != nil {
  22183. v[mk] = mv
  22184. }
  22185. }
  22186. } else if containerLen < 0 {
  22187. for j := 0; !dd.CheckBreak(); j++ {
  22188. if j > 0 {
  22189. dd.ReadMapEntrySeparator()
  22190. }
  22191. mk := int16(dd.DecodeInt(16))
  22192. dd.ReadMapKVSeparator()
  22193. mv := v[mk]
  22194. mv = uint32(dd.DecodeUint(32))
  22195. if v != nil {
  22196. v[mk] = mv
  22197. }
  22198. }
  22199. dd.ReadMapEnd()
  22200. }
  22201. return v, changed
  22202. }
  22203. func (f decFnInfo) fastpathDecMapInt16Uint64R(rv reflect.Value) {
  22204. if rv.CanAddr() {
  22205. vp := rv.Addr().Interface().(*map[int16]uint64)
  22206. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  22207. if changed {
  22208. *vp = v
  22209. }
  22210. } else {
  22211. v := rv.Interface().(map[int16]uint64)
  22212. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  22213. }
  22214. }
  22215. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, checkNil bool, d *Decoder) {
  22216. v, changed := f.DecMapInt16Uint64V(*vp, checkNil, true, d)
  22217. if changed {
  22218. *vp = v
  22219. }
  22220. }
  22221. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, checkNil bool, canChange bool,
  22222. d *Decoder) (_ map[int16]uint64, changed bool) {
  22223. dd := d.d
  22224. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22225. if checkNil && dd.TryDecodeAsNil() {
  22226. if v != nil {
  22227. changed = true
  22228. }
  22229. return nil, changed
  22230. }
  22231. containerLen := dd.ReadMapStart()
  22232. if canChange && v == nil {
  22233. if containerLen > 0 {
  22234. v = make(map[int16]uint64, containerLen)
  22235. } else {
  22236. v = make(map[int16]uint64) // supports indefinite-length, etc
  22237. }
  22238. changed = true
  22239. }
  22240. if containerLen > 0 {
  22241. for j := 0; j < containerLen; j++ {
  22242. mk := int16(dd.DecodeInt(16))
  22243. mv := v[mk]
  22244. mv = dd.DecodeUint(64)
  22245. if v != nil {
  22246. v[mk] = mv
  22247. }
  22248. }
  22249. } else if containerLen < 0 {
  22250. for j := 0; !dd.CheckBreak(); j++ {
  22251. if j > 0 {
  22252. dd.ReadMapEntrySeparator()
  22253. }
  22254. mk := int16(dd.DecodeInt(16))
  22255. dd.ReadMapKVSeparator()
  22256. mv := v[mk]
  22257. mv = dd.DecodeUint(64)
  22258. if v != nil {
  22259. v[mk] = mv
  22260. }
  22261. }
  22262. dd.ReadMapEnd()
  22263. }
  22264. return v, changed
  22265. }
  22266. func (f decFnInfo) fastpathDecMapInt16IntR(rv reflect.Value) {
  22267. if rv.CanAddr() {
  22268. vp := rv.Addr().Interface().(*map[int16]int)
  22269. v, changed := fastpathTV.DecMapInt16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  22270. if changed {
  22271. *vp = v
  22272. }
  22273. } else {
  22274. v := rv.Interface().(map[int16]int)
  22275. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, f.d)
  22276. }
  22277. }
  22278. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, checkNil bool, d *Decoder) {
  22279. v, changed := f.DecMapInt16IntV(*vp, checkNil, true, d)
  22280. if changed {
  22281. *vp = v
  22282. }
  22283. }
  22284. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, checkNil bool, canChange bool,
  22285. d *Decoder) (_ map[int16]int, changed bool) {
  22286. dd := d.d
  22287. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22288. if checkNil && dd.TryDecodeAsNil() {
  22289. if v != nil {
  22290. changed = true
  22291. }
  22292. return nil, changed
  22293. }
  22294. containerLen := dd.ReadMapStart()
  22295. if canChange && v == nil {
  22296. if containerLen > 0 {
  22297. v = make(map[int16]int, containerLen)
  22298. } else {
  22299. v = make(map[int16]int) // supports indefinite-length, etc
  22300. }
  22301. changed = true
  22302. }
  22303. if containerLen > 0 {
  22304. for j := 0; j < containerLen; j++ {
  22305. mk := int16(dd.DecodeInt(16))
  22306. mv := v[mk]
  22307. mv = int(dd.DecodeInt(intBitsize))
  22308. if v != nil {
  22309. v[mk] = mv
  22310. }
  22311. }
  22312. } else if containerLen < 0 {
  22313. for j := 0; !dd.CheckBreak(); j++ {
  22314. if j > 0 {
  22315. dd.ReadMapEntrySeparator()
  22316. }
  22317. mk := int16(dd.DecodeInt(16))
  22318. dd.ReadMapKVSeparator()
  22319. mv := v[mk]
  22320. mv = int(dd.DecodeInt(intBitsize))
  22321. if v != nil {
  22322. v[mk] = mv
  22323. }
  22324. }
  22325. dd.ReadMapEnd()
  22326. }
  22327. return v, changed
  22328. }
  22329. func (f decFnInfo) fastpathDecMapInt16Int8R(rv reflect.Value) {
  22330. if rv.CanAddr() {
  22331. vp := rv.Addr().Interface().(*map[int16]int8)
  22332. v, changed := fastpathTV.DecMapInt16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  22333. if changed {
  22334. *vp = v
  22335. }
  22336. } else {
  22337. v := rv.Interface().(map[int16]int8)
  22338. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, f.d)
  22339. }
  22340. }
  22341. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, checkNil bool, d *Decoder) {
  22342. v, changed := f.DecMapInt16Int8V(*vp, checkNil, true, d)
  22343. if changed {
  22344. *vp = v
  22345. }
  22346. }
  22347. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, checkNil bool, canChange bool,
  22348. d *Decoder) (_ map[int16]int8, changed bool) {
  22349. dd := d.d
  22350. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22351. if checkNil && dd.TryDecodeAsNil() {
  22352. if v != nil {
  22353. changed = true
  22354. }
  22355. return nil, changed
  22356. }
  22357. containerLen := dd.ReadMapStart()
  22358. if canChange && v == nil {
  22359. if containerLen > 0 {
  22360. v = make(map[int16]int8, containerLen)
  22361. } else {
  22362. v = make(map[int16]int8) // supports indefinite-length, etc
  22363. }
  22364. changed = true
  22365. }
  22366. if containerLen > 0 {
  22367. for j := 0; j < containerLen; j++ {
  22368. mk := int16(dd.DecodeInt(16))
  22369. mv := v[mk]
  22370. mv = int8(dd.DecodeInt(8))
  22371. if v != nil {
  22372. v[mk] = mv
  22373. }
  22374. }
  22375. } else if containerLen < 0 {
  22376. for j := 0; !dd.CheckBreak(); j++ {
  22377. if j > 0 {
  22378. dd.ReadMapEntrySeparator()
  22379. }
  22380. mk := int16(dd.DecodeInt(16))
  22381. dd.ReadMapKVSeparator()
  22382. mv := v[mk]
  22383. mv = int8(dd.DecodeInt(8))
  22384. if v != nil {
  22385. v[mk] = mv
  22386. }
  22387. }
  22388. dd.ReadMapEnd()
  22389. }
  22390. return v, changed
  22391. }
  22392. func (f decFnInfo) fastpathDecMapInt16Int16R(rv reflect.Value) {
  22393. if rv.CanAddr() {
  22394. vp := rv.Addr().Interface().(*map[int16]int16)
  22395. v, changed := fastpathTV.DecMapInt16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  22396. if changed {
  22397. *vp = v
  22398. }
  22399. } else {
  22400. v := rv.Interface().(map[int16]int16)
  22401. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, f.d)
  22402. }
  22403. }
  22404. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, checkNil bool, d *Decoder) {
  22405. v, changed := f.DecMapInt16Int16V(*vp, checkNil, true, d)
  22406. if changed {
  22407. *vp = v
  22408. }
  22409. }
  22410. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, checkNil bool, canChange bool,
  22411. d *Decoder) (_ map[int16]int16, changed bool) {
  22412. dd := d.d
  22413. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22414. if checkNil && dd.TryDecodeAsNil() {
  22415. if v != nil {
  22416. changed = true
  22417. }
  22418. return nil, changed
  22419. }
  22420. containerLen := dd.ReadMapStart()
  22421. if canChange && v == nil {
  22422. if containerLen > 0 {
  22423. v = make(map[int16]int16, containerLen)
  22424. } else {
  22425. v = make(map[int16]int16) // supports indefinite-length, etc
  22426. }
  22427. changed = true
  22428. }
  22429. if containerLen > 0 {
  22430. for j := 0; j < containerLen; j++ {
  22431. mk := int16(dd.DecodeInt(16))
  22432. mv := v[mk]
  22433. mv = int16(dd.DecodeInt(16))
  22434. if v != nil {
  22435. v[mk] = mv
  22436. }
  22437. }
  22438. } else if containerLen < 0 {
  22439. for j := 0; !dd.CheckBreak(); j++ {
  22440. if j > 0 {
  22441. dd.ReadMapEntrySeparator()
  22442. }
  22443. mk := int16(dd.DecodeInt(16))
  22444. dd.ReadMapKVSeparator()
  22445. mv := v[mk]
  22446. mv = int16(dd.DecodeInt(16))
  22447. if v != nil {
  22448. v[mk] = mv
  22449. }
  22450. }
  22451. dd.ReadMapEnd()
  22452. }
  22453. return v, changed
  22454. }
  22455. func (f decFnInfo) fastpathDecMapInt16Int32R(rv reflect.Value) {
  22456. if rv.CanAddr() {
  22457. vp := rv.Addr().Interface().(*map[int16]int32)
  22458. v, changed := fastpathTV.DecMapInt16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  22459. if changed {
  22460. *vp = v
  22461. }
  22462. } else {
  22463. v := rv.Interface().(map[int16]int32)
  22464. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, f.d)
  22465. }
  22466. }
  22467. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, checkNil bool, d *Decoder) {
  22468. v, changed := f.DecMapInt16Int32V(*vp, checkNil, true, d)
  22469. if changed {
  22470. *vp = v
  22471. }
  22472. }
  22473. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, checkNil bool, canChange bool,
  22474. d *Decoder) (_ map[int16]int32, changed bool) {
  22475. dd := d.d
  22476. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22477. if checkNil && dd.TryDecodeAsNil() {
  22478. if v != nil {
  22479. changed = true
  22480. }
  22481. return nil, changed
  22482. }
  22483. containerLen := dd.ReadMapStart()
  22484. if canChange && v == nil {
  22485. if containerLen > 0 {
  22486. v = make(map[int16]int32, containerLen)
  22487. } else {
  22488. v = make(map[int16]int32) // supports indefinite-length, etc
  22489. }
  22490. changed = true
  22491. }
  22492. if containerLen > 0 {
  22493. for j := 0; j < containerLen; j++ {
  22494. mk := int16(dd.DecodeInt(16))
  22495. mv := v[mk]
  22496. mv = int32(dd.DecodeInt(32))
  22497. if v != nil {
  22498. v[mk] = mv
  22499. }
  22500. }
  22501. } else if containerLen < 0 {
  22502. for j := 0; !dd.CheckBreak(); j++ {
  22503. if j > 0 {
  22504. dd.ReadMapEntrySeparator()
  22505. }
  22506. mk := int16(dd.DecodeInt(16))
  22507. dd.ReadMapKVSeparator()
  22508. mv := v[mk]
  22509. mv = int32(dd.DecodeInt(32))
  22510. if v != nil {
  22511. v[mk] = mv
  22512. }
  22513. }
  22514. dd.ReadMapEnd()
  22515. }
  22516. return v, changed
  22517. }
  22518. func (f decFnInfo) fastpathDecMapInt16Int64R(rv reflect.Value) {
  22519. if rv.CanAddr() {
  22520. vp := rv.Addr().Interface().(*map[int16]int64)
  22521. v, changed := fastpathTV.DecMapInt16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  22522. if changed {
  22523. *vp = v
  22524. }
  22525. } else {
  22526. v := rv.Interface().(map[int16]int64)
  22527. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, f.d)
  22528. }
  22529. }
  22530. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, checkNil bool, d *Decoder) {
  22531. v, changed := f.DecMapInt16Int64V(*vp, checkNil, true, d)
  22532. if changed {
  22533. *vp = v
  22534. }
  22535. }
  22536. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, checkNil bool, canChange bool,
  22537. d *Decoder) (_ map[int16]int64, changed bool) {
  22538. dd := d.d
  22539. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22540. if checkNil && dd.TryDecodeAsNil() {
  22541. if v != nil {
  22542. changed = true
  22543. }
  22544. return nil, changed
  22545. }
  22546. containerLen := dd.ReadMapStart()
  22547. if canChange && v == nil {
  22548. if containerLen > 0 {
  22549. v = make(map[int16]int64, containerLen)
  22550. } else {
  22551. v = make(map[int16]int64) // supports indefinite-length, etc
  22552. }
  22553. changed = true
  22554. }
  22555. if containerLen > 0 {
  22556. for j := 0; j < containerLen; j++ {
  22557. mk := int16(dd.DecodeInt(16))
  22558. mv := v[mk]
  22559. mv = dd.DecodeInt(64)
  22560. if v != nil {
  22561. v[mk] = mv
  22562. }
  22563. }
  22564. } else if containerLen < 0 {
  22565. for j := 0; !dd.CheckBreak(); j++ {
  22566. if j > 0 {
  22567. dd.ReadMapEntrySeparator()
  22568. }
  22569. mk := int16(dd.DecodeInt(16))
  22570. dd.ReadMapKVSeparator()
  22571. mv := v[mk]
  22572. mv = dd.DecodeInt(64)
  22573. if v != nil {
  22574. v[mk] = mv
  22575. }
  22576. }
  22577. dd.ReadMapEnd()
  22578. }
  22579. return v, changed
  22580. }
  22581. func (f decFnInfo) fastpathDecMapInt16Float32R(rv reflect.Value) {
  22582. if rv.CanAddr() {
  22583. vp := rv.Addr().Interface().(*map[int16]float32)
  22584. v, changed := fastpathTV.DecMapInt16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  22585. if changed {
  22586. *vp = v
  22587. }
  22588. } else {
  22589. v := rv.Interface().(map[int16]float32)
  22590. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, f.d)
  22591. }
  22592. }
  22593. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, checkNil bool, d *Decoder) {
  22594. v, changed := f.DecMapInt16Float32V(*vp, checkNil, true, d)
  22595. if changed {
  22596. *vp = v
  22597. }
  22598. }
  22599. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, checkNil bool, canChange bool,
  22600. d *Decoder) (_ map[int16]float32, changed bool) {
  22601. dd := d.d
  22602. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22603. if checkNil && dd.TryDecodeAsNil() {
  22604. if v != nil {
  22605. changed = true
  22606. }
  22607. return nil, changed
  22608. }
  22609. containerLen := dd.ReadMapStart()
  22610. if canChange && v == nil {
  22611. if containerLen > 0 {
  22612. v = make(map[int16]float32, containerLen)
  22613. } else {
  22614. v = make(map[int16]float32) // supports indefinite-length, etc
  22615. }
  22616. changed = true
  22617. }
  22618. if containerLen > 0 {
  22619. for j := 0; j < containerLen; j++ {
  22620. mk := int16(dd.DecodeInt(16))
  22621. mv := v[mk]
  22622. mv = float32(dd.DecodeFloat(true))
  22623. if v != nil {
  22624. v[mk] = mv
  22625. }
  22626. }
  22627. } else if containerLen < 0 {
  22628. for j := 0; !dd.CheckBreak(); j++ {
  22629. if j > 0 {
  22630. dd.ReadMapEntrySeparator()
  22631. }
  22632. mk := int16(dd.DecodeInt(16))
  22633. dd.ReadMapKVSeparator()
  22634. mv := v[mk]
  22635. mv = float32(dd.DecodeFloat(true))
  22636. if v != nil {
  22637. v[mk] = mv
  22638. }
  22639. }
  22640. dd.ReadMapEnd()
  22641. }
  22642. return v, changed
  22643. }
  22644. func (f decFnInfo) fastpathDecMapInt16Float64R(rv reflect.Value) {
  22645. if rv.CanAddr() {
  22646. vp := rv.Addr().Interface().(*map[int16]float64)
  22647. v, changed := fastpathTV.DecMapInt16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  22648. if changed {
  22649. *vp = v
  22650. }
  22651. } else {
  22652. v := rv.Interface().(map[int16]float64)
  22653. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, f.d)
  22654. }
  22655. }
  22656. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, checkNil bool, d *Decoder) {
  22657. v, changed := f.DecMapInt16Float64V(*vp, checkNil, true, d)
  22658. if changed {
  22659. *vp = v
  22660. }
  22661. }
  22662. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, checkNil bool, canChange bool,
  22663. d *Decoder) (_ map[int16]float64, changed bool) {
  22664. dd := d.d
  22665. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22666. if checkNil && dd.TryDecodeAsNil() {
  22667. if v != nil {
  22668. changed = true
  22669. }
  22670. return nil, changed
  22671. }
  22672. containerLen := dd.ReadMapStart()
  22673. if canChange && v == nil {
  22674. if containerLen > 0 {
  22675. v = make(map[int16]float64, containerLen)
  22676. } else {
  22677. v = make(map[int16]float64) // supports indefinite-length, etc
  22678. }
  22679. changed = true
  22680. }
  22681. if containerLen > 0 {
  22682. for j := 0; j < containerLen; j++ {
  22683. mk := int16(dd.DecodeInt(16))
  22684. mv := v[mk]
  22685. mv = dd.DecodeFloat(false)
  22686. if v != nil {
  22687. v[mk] = mv
  22688. }
  22689. }
  22690. } else if containerLen < 0 {
  22691. for j := 0; !dd.CheckBreak(); j++ {
  22692. if j > 0 {
  22693. dd.ReadMapEntrySeparator()
  22694. }
  22695. mk := int16(dd.DecodeInt(16))
  22696. dd.ReadMapKVSeparator()
  22697. mv := v[mk]
  22698. mv = dd.DecodeFloat(false)
  22699. if v != nil {
  22700. v[mk] = mv
  22701. }
  22702. }
  22703. dd.ReadMapEnd()
  22704. }
  22705. return v, changed
  22706. }
  22707. func (f decFnInfo) fastpathDecMapInt16BoolR(rv reflect.Value) {
  22708. if rv.CanAddr() {
  22709. vp := rv.Addr().Interface().(*map[int16]bool)
  22710. v, changed := fastpathTV.DecMapInt16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  22711. if changed {
  22712. *vp = v
  22713. }
  22714. } else {
  22715. v := rv.Interface().(map[int16]bool)
  22716. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, f.d)
  22717. }
  22718. }
  22719. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, checkNil bool, d *Decoder) {
  22720. v, changed := f.DecMapInt16BoolV(*vp, checkNil, true, d)
  22721. if changed {
  22722. *vp = v
  22723. }
  22724. }
  22725. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, checkNil bool, canChange bool,
  22726. d *Decoder) (_ map[int16]bool, changed bool) {
  22727. dd := d.d
  22728. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22729. if checkNil && dd.TryDecodeAsNil() {
  22730. if v != nil {
  22731. changed = true
  22732. }
  22733. return nil, changed
  22734. }
  22735. containerLen := dd.ReadMapStart()
  22736. if canChange && v == nil {
  22737. if containerLen > 0 {
  22738. v = make(map[int16]bool, containerLen)
  22739. } else {
  22740. v = make(map[int16]bool) // supports indefinite-length, etc
  22741. }
  22742. changed = true
  22743. }
  22744. if containerLen > 0 {
  22745. for j := 0; j < containerLen; j++ {
  22746. mk := int16(dd.DecodeInt(16))
  22747. mv := v[mk]
  22748. mv = dd.DecodeBool()
  22749. if v != nil {
  22750. v[mk] = mv
  22751. }
  22752. }
  22753. } else if containerLen < 0 {
  22754. for j := 0; !dd.CheckBreak(); j++ {
  22755. if j > 0 {
  22756. dd.ReadMapEntrySeparator()
  22757. }
  22758. mk := int16(dd.DecodeInt(16))
  22759. dd.ReadMapKVSeparator()
  22760. mv := v[mk]
  22761. mv = dd.DecodeBool()
  22762. if v != nil {
  22763. v[mk] = mv
  22764. }
  22765. }
  22766. dd.ReadMapEnd()
  22767. }
  22768. return v, changed
  22769. }
  22770. func (f decFnInfo) fastpathDecMapInt32IntfR(rv reflect.Value) {
  22771. if rv.CanAddr() {
  22772. vp := rv.Addr().Interface().(*map[int32]interface{})
  22773. v, changed := fastpathTV.DecMapInt32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  22774. if changed {
  22775. *vp = v
  22776. }
  22777. } else {
  22778. v := rv.Interface().(map[int32]interface{})
  22779. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, f.d)
  22780. }
  22781. }
  22782. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, checkNil bool, d *Decoder) {
  22783. v, changed := f.DecMapInt32IntfV(*vp, checkNil, true, d)
  22784. if changed {
  22785. *vp = v
  22786. }
  22787. }
  22788. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, checkNil bool, canChange bool,
  22789. d *Decoder) (_ map[int32]interface{}, changed bool) {
  22790. dd := d.d
  22791. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22792. if checkNil && dd.TryDecodeAsNil() {
  22793. if v != nil {
  22794. changed = true
  22795. }
  22796. return nil, changed
  22797. }
  22798. containerLen := dd.ReadMapStart()
  22799. if canChange && v == nil {
  22800. if containerLen > 0 {
  22801. v = make(map[int32]interface{}, containerLen)
  22802. } else {
  22803. v = make(map[int32]interface{}) // supports indefinite-length, etc
  22804. }
  22805. changed = true
  22806. }
  22807. if containerLen > 0 {
  22808. for j := 0; j < containerLen; j++ {
  22809. mk := int32(dd.DecodeInt(32))
  22810. mv := v[mk]
  22811. d.decode(&mv)
  22812. if v != nil {
  22813. v[mk] = mv
  22814. }
  22815. }
  22816. } else if containerLen < 0 {
  22817. for j := 0; !dd.CheckBreak(); j++ {
  22818. if j > 0 {
  22819. dd.ReadMapEntrySeparator()
  22820. }
  22821. mk := int32(dd.DecodeInt(32))
  22822. dd.ReadMapKVSeparator()
  22823. mv := v[mk]
  22824. d.decode(&mv)
  22825. if v != nil {
  22826. v[mk] = mv
  22827. }
  22828. }
  22829. dd.ReadMapEnd()
  22830. }
  22831. return v, changed
  22832. }
  22833. func (f decFnInfo) fastpathDecMapInt32StringR(rv reflect.Value) {
  22834. if rv.CanAddr() {
  22835. vp := rv.Addr().Interface().(*map[int32]string)
  22836. v, changed := fastpathTV.DecMapInt32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  22837. if changed {
  22838. *vp = v
  22839. }
  22840. } else {
  22841. v := rv.Interface().(map[int32]string)
  22842. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, f.d)
  22843. }
  22844. }
  22845. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, checkNil bool, d *Decoder) {
  22846. v, changed := f.DecMapInt32StringV(*vp, checkNil, true, d)
  22847. if changed {
  22848. *vp = v
  22849. }
  22850. }
  22851. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, checkNil bool, canChange bool,
  22852. d *Decoder) (_ map[int32]string, changed bool) {
  22853. dd := d.d
  22854. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22855. if checkNil && dd.TryDecodeAsNil() {
  22856. if v != nil {
  22857. changed = true
  22858. }
  22859. return nil, changed
  22860. }
  22861. containerLen := dd.ReadMapStart()
  22862. if canChange && v == nil {
  22863. if containerLen > 0 {
  22864. v = make(map[int32]string, containerLen)
  22865. } else {
  22866. v = make(map[int32]string) // supports indefinite-length, etc
  22867. }
  22868. changed = true
  22869. }
  22870. if containerLen > 0 {
  22871. for j := 0; j < containerLen; j++ {
  22872. mk := int32(dd.DecodeInt(32))
  22873. mv := v[mk]
  22874. mv = dd.DecodeString()
  22875. if v != nil {
  22876. v[mk] = mv
  22877. }
  22878. }
  22879. } else if containerLen < 0 {
  22880. for j := 0; !dd.CheckBreak(); j++ {
  22881. if j > 0 {
  22882. dd.ReadMapEntrySeparator()
  22883. }
  22884. mk := int32(dd.DecodeInt(32))
  22885. dd.ReadMapKVSeparator()
  22886. mv := v[mk]
  22887. mv = dd.DecodeString()
  22888. if v != nil {
  22889. v[mk] = mv
  22890. }
  22891. }
  22892. dd.ReadMapEnd()
  22893. }
  22894. return v, changed
  22895. }
  22896. func (f decFnInfo) fastpathDecMapInt32UintR(rv reflect.Value) {
  22897. if rv.CanAddr() {
  22898. vp := rv.Addr().Interface().(*map[int32]uint)
  22899. v, changed := fastpathTV.DecMapInt32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  22900. if changed {
  22901. *vp = v
  22902. }
  22903. } else {
  22904. v := rv.Interface().(map[int32]uint)
  22905. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, f.d)
  22906. }
  22907. }
  22908. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, checkNil bool, d *Decoder) {
  22909. v, changed := f.DecMapInt32UintV(*vp, checkNil, true, d)
  22910. if changed {
  22911. *vp = v
  22912. }
  22913. }
  22914. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, checkNil bool, canChange bool,
  22915. d *Decoder) (_ map[int32]uint, changed bool) {
  22916. dd := d.d
  22917. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22918. if checkNil && dd.TryDecodeAsNil() {
  22919. if v != nil {
  22920. changed = true
  22921. }
  22922. return nil, changed
  22923. }
  22924. containerLen := dd.ReadMapStart()
  22925. if canChange && v == nil {
  22926. if containerLen > 0 {
  22927. v = make(map[int32]uint, containerLen)
  22928. } else {
  22929. v = make(map[int32]uint) // supports indefinite-length, etc
  22930. }
  22931. changed = true
  22932. }
  22933. if containerLen > 0 {
  22934. for j := 0; j < containerLen; j++ {
  22935. mk := int32(dd.DecodeInt(32))
  22936. mv := v[mk]
  22937. mv = uint(dd.DecodeUint(uintBitsize))
  22938. if v != nil {
  22939. v[mk] = mv
  22940. }
  22941. }
  22942. } else if containerLen < 0 {
  22943. for j := 0; !dd.CheckBreak(); j++ {
  22944. if j > 0 {
  22945. dd.ReadMapEntrySeparator()
  22946. }
  22947. mk := int32(dd.DecodeInt(32))
  22948. dd.ReadMapKVSeparator()
  22949. mv := v[mk]
  22950. mv = uint(dd.DecodeUint(uintBitsize))
  22951. if v != nil {
  22952. v[mk] = mv
  22953. }
  22954. }
  22955. dd.ReadMapEnd()
  22956. }
  22957. return v, changed
  22958. }
  22959. func (f decFnInfo) fastpathDecMapInt32Uint8R(rv reflect.Value) {
  22960. if rv.CanAddr() {
  22961. vp := rv.Addr().Interface().(*map[int32]uint8)
  22962. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  22963. if changed {
  22964. *vp = v
  22965. }
  22966. } else {
  22967. v := rv.Interface().(map[int32]uint8)
  22968. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  22969. }
  22970. }
  22971. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, checkNil bool, d *Decoder) {
  22972. v, changed := f.DecMapInt32Uint8V(*vp, checkNil, true, d)
  22973. if changed {
  22974. *vp = v
  22975. }
  22976. }
  22977. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, checkNil bool, canChange bool,
  22978. d *Decoder) (_ map[int32]uint8, changed bool) {
  22979. dd := d.d
  22980. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22981. if checkNil && dd.TryDecodeAsNil() {
  22982. if v != nil {
  22983. changed = true
  22984. }
  22985. return nil, changed
  22986. }
  22987. containerLen := dd.ReadMapStart()
  22988. if canChange && v == nil {
  22989. if containerLen > 0 {
  22990. v = make(map[int32]uint8, containerLen)
  22991. } else {
  22992. v = make(map[int32]uint8) // supports indefinite-length, etc
  22993. }
  22994. changed = true
  22995. }
  22996. if containerLen > 0 {
  22997. for j := 0; j < containerLen; j++ {
  22998. mk := int32(dd.DecodeInt(32))
  22999. mv := v[mk]
  23000. mv = uint8(dd.DecodeUint(8))
  23001. if v != nil {
  23002. v[mk] = mv
  23003. }
  23004. }
  23005. } else if containerLen < 0 {
  23006. for j := 0; !dd.CheckBreak(); j++ {
  23007. if j > 0 {
  23008. dd.ReadMapEntrySeparator()
  23009. }
  23010. mk := int32(dd.DecodeInt(32))
  23011. dd.ReadMapKVSeparator()
  23012. mv := v[mk]
  23013. mv = uint8(dd.DecodeUint(8))
  23014. if v != nil {
  23015. v[mk] = mv
  23016. }
  23017. }
  23018. dd.ReadMapEnd()
  23019. }
  23020. return v, changed
  23021. }
  23022. func (f decFnInfo) fastpathDecMapInt32Uint16R(rv reflect.Value) {
  23023. if rv.CanAddr() {
  23024. vp := rv.Addr().Interface().(*map[int32]uint16)
  23025. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  23026. if changed {
  23027. *vp = v
  23028. }
  23029. } else {
  23030. v := rv.Interface().(map[int32]uint16)
  23031. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  23032. }
  23033. }
  23034. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, checkNil bool, d *Decoder) {
  23035. v, changed := f.DecMapInt32Uint16V(*vp, checkNil, true, d)
  23036. if changed {
  23037. *vp = v
  23038. }
  23039. }
  23040. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, checkNil bool, canChange bool,
  23041. d *Decoder) (_ map[int32]uint16, changed bool) {
  23042. dd := d.d
  23043. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23044. if checkNil && dd.TryDecodeAsNil() {
  23045. if v != nil {
  23046. changed = true
  23047. }
  23048. return nil, changed
  23049. }
  23050. containerLen := dd.ReadMapStart()
  23051. if canChange && v == nil {
  23052. if containerLen > 0 {
  23053. v = make(map[int32]uint16, containerLen)
  23054. } else {
  23055. v = make(map[int32]uint16) // supports indefinite-length, etc
  23056. }
  23057. changed = true
  23058. }
  23059. if containerLen > 0 {
  23060. for j := 0; j < containerLen; j++ {
  23061. mk := int32(dd.DecodeInt(32))
  23062. mv := v[mk]
  23063. mv = uint16(dd.DecodeUint(16))
  23064. if v != nil {
  23065. v[mk] = mv
  23066. }
  23067. }
  23068. } else if containerLen < 0 {
  23069. for j := 0; !dd.CheckBreak(); j++ {
  23070. if j > 0 {
  23071. dd.ReadMapEntrySeparator()
  23072. }
  23073. mk := int32(dd.DecodeInt(32))
  23074. dd.ReadMapKVSeparator()
  23075. mv := v[mk]
  23076. mv = uint16(dd.DecodeUint(16))
  23077. if v != nil {
  23078. v[mk] = mv
  23079. }
  23080. }
  23081. dd.ReadMapEnd()
  23082. }
  23083. return v, changed
  23084. }
  23085. func (f decFnInfo) fastpathDecMapInt32Uint32R(rv reflect.Value) {
  23086. if rv.CanAddr() {
  23087. vp := rv.Addr().Interface().(*map[int32]uint32)
  23088. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  23089. if changed {
  23090. *vp = v
  23091. }
  23092. } else {
  23093. v := rv.Interface().(map[int32]uint32)
  23094. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  23095. }
  23096. }
  23097. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, checkNil bool, d *Decoder) {
  23098. v, changed := f.DecMapInt32Uint32V(*vp, checkNil, true, d)
  23099. if changed {
  23100. *vp = v
  23101. }
  23102. }
  23103. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, checkNil bool, canChange bool,
  23104. d *Decoder) (_ map[int32]uint32, changed bool) {
  23105. dd := d.d
  23106. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23107. if checkNil && dd.TryDecodeAsNil() {
  23108. if v != nil {
  23109. changed = true
  23110. }
  23111. return nil, changed
  23112. }
  23113. containerLen := dd.ReadMapStart()
  23114. if canChange && v == nil {
  23115. if containerLen > 0 {
  23116. v = make(map[int32]uint32, containerLen)
  23117. } else {
  23118. v = make(map[int32]uint32) // supports indefinite-length, etc
  23119. }
  23120. changed = true
  23121. }
  23122. if containerLen > 0 {
  23123. for j := 0; j < containerLen; j++ {
  23124. mk := int32(dd.DecodeInt(32))
  23125. mv := v[mk]
  23126. mv = uint32(dd.DecodeUint(32))
  23127. if v != nil {
  23128. v[mk] = mv
  23129. }
  23130. }
  23131. } else if containerLen < 0 {
  23132. for j := 0; !dd.CheckBreak(); j++ {
  23133. if j > 0 {
  23134. dd.ReadMapEntrySeparator()
  23135. }
  23136. mk := int32(dd.DecodeInt(32))
  23137. dd.ReadMapKVSeparator()
  23138. mv := v[mk]
  23139. mv = uint32(dd.DecodeUint(32))
  23140. if v != nil {
  23141. v[mk] = mv
  23142. }
  23143. }
  23144. dd.ReadMapEnd()
  23145. }
  23146. return v, changed
  23147. }
  23148. func (f decFnInfo) fastpathDecMapInt32Uint64R(rv reflect.Value) {
  23149. if rv.CanAddr() {
  23150. vp := rv.Addr().Interface().(*map[int32]uint64)
  23151. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  23152. if changed {
  23153. *vp = v
  23154. }
  23155. } else {
  23156. v := rv.Interface().(map[int32]uint64)
  23157. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  23158. }
  23159. }
  23160. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, checkNil bool, d *Decoder) {
  23161. v, changed := f.DecMapInt32Uint64V(*vp, checkNil, true, d)
  23162. if changed {
  23163. *vp = v
  23164. }
  23165. }
  23166. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, checkNil bool, canChange bool,
  23167. d *Decoder) (_ map[int32]uint64, changed bool) {
  23168. dd := d.d
  23169. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23170. if checkNil && dd.TryDecodeAsNil() {
  23171. if v != nil {
  23172. changed = true
  23173. }
  23174. return nil, changed
  23175. }
  23176. containerLen := dd.ReadMapStart()
  23177. if canChange && v == nil {
  23178. if containerLen > 0 {
  23179. v = make(map[int32]uint64, containerLen)
  23180. } else {
  23181. v = make(map[int32]uint64) // supports indefinite-length, etc
  23182. }
  23183. changed = true
  23184. }
  23185. if containerLen > 0 {
  23186. for j := 0; j < containerLen; j++ {
  23187. mk := int32(dd.DecodeInt(32))
  23188. mv := v[mk]
  23189. mv = dd.DecodeUint(64)
  23190. if v != nil {
  23191. v[mk] = mv
  23192. }
  23193. }
  23194. } else if containerLen < 0 {
  23195. for j := 0; !dd.CheckBreak(); j++ {
  23196. if j > 0 {
  23197. dd.ReadMapEntrySeparator()
  23198. }
  23199. mk := int32(dd.DecodeInt(32))
  23200. dd.ReadMapKVSeparator()
  23201. mv := v[mk]
  23202. mv = dd.DecodeUint(64)
  23203. if v != nil {
  23204. v[mk] = mv
  23205. }
  23206. }
  23207. dd.ReadMapEnd()
  23208. }
  23209. return v, changed
  23210. }
  23211. func (f decFnInfo) fastpathDecMapInt32IntR(rv reflect.Value) {
  23212. if rv.CanAddr() {
  23213. vp := rv.Addr().Interface().(*map[int32]int)
  23214. v, changed := fastpathTV.DecMapInt32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  23215. if changed {
  23216. *vp = v
  23217. }
  23218. } else {
  23219. v := rv.Interface().(map[int32]int)
  23220. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, f.d)
  23221. }
  23222. }
  23223. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, checkNil bool, d *Decoder) {
  23224. v, changed := f.DecMapInt32IntV(*vp, checkNil, true, d)
  23225. if changed {
  23226. *vp = v
  23227. }
  23228. }
  23229. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, checkNil bool, canChange bool,
  23230. d *Decoder) (_ map[int32]int, changed bool) {
  23231. dd := d.d
  23232. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23233. if checkNil && dd.TryDecodeAsNil() {
  23234. if v != nil {
  23235. changed = true
  23236. }
  23237. return nil, changed
  23238. }
  23239. containerLen := dd.ReadMapStart()
  23240. if canChange && v == nil {
  23241. if containerLen > 0 {
  23242. v = make(map[int32]int, containerLen)
  23243. } else {
  23244. v = make(map[int32]int) // supports indefinite-length, etc
  23245. }
  23246. changed = true
  23247. }
  23248. if containerLen > 0 {
  23249. for j := 0; j < containerLen; j++ {
  23250. mk := int32(dd.DecodeInt(32))
  23251. mv := v[mk]
  23252. mv = int(dd.DecodeInt(intBitsize))
  23253. if v != nil {
  23254. v[mk] = mv
  23255. }
  23256. }
  23257. } else if containerLen < 0 {
  23258. for j := 0; !dd.CheckBreak(); j++ {
  23259. if j > 0 {
  23260. dd.ReadMapEntrySeparator()
  23261. }
  23262. mk := int32(dd.DecodeInt(32))
  23263. dd.ReadMapKVSeparator()
  23264. mv := v[mk]
  23265. mv = int(dd.DecodeInt(intBitsize))
  23266. if v != nil {
  23267. v[mk] = mv
  23268. }
  23269. }
  23270. dd.ReadMapEnd()
  23271. }
  23272. return v, changed
  23273. }
  23274. func (f decFnInfo) fastpathDecMapInt32Int8R(rv reflect.Value) {
  23275. if rv.CanAddr() {
  23276. vp := rv.Addr().Interface().(*map[int32]int8)
  23277. v, changed := fastpathTV.DecMapInt32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  23278. if changed {
  23279. *vp = v
  23280. }
  23281. } else {
  23282. v := rv.Interface().(map[int32]int8)
  23283. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, f.d)
  23284. }
  23285. }
  23286. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, checkNil bool, d *Decoder) {
  23287. v, changed := f.DecMapInt32Int8V(*vp, checkNil, true, d)
  23288. if changed {
  23289. *vp = v
  23290. }
  23291. }
  23292. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, checkNil bool, canChange bool,
  23293. d *Decoder) (_ map[int32]int8, changed bool) {
  23294. dd := d.d
  23295. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23296. if checkNil && dd.TryDecodeAsNil() {
  23297. if v != nil {
  23298. changed = true
  23299. }
  23300. return nil, changed
  23301. }
  23302. containerLen := dd.ReadMapStart()
  23303. if canChange && v == nil {
  23304. if containerLen > 0 {
  23305. v = make(map[int32]int8, containerLen)
  23306. } else {
  23307. v = make(map[int32]int8) // supports indefinite-length, etc
  23308. }
  23309. changed = true
  23310. }
  23311. if containerLen > 0 {
  23312. for j := 0; j < containerLen; j++ {
  23313. mk := int32(dd.DecodeInt(32))
  23314. mv := v[mk]
  23315. mv = int8(dd.DecodeInt(8))
  23316. if v != nil {
  23317. v[mk] = mv
  23318. }
  23319. }
  23320. } else if containerLen < 0 {
  23321. for j := 0; !dd.CheckBreak(); j++ {
  23322. if j > 0 {
  23323. dd.ReadMapEntrySeparator()
  23324. }
  23325. mk := int32(dd.DecodeInt(32))
  23326. dd.ReadMapKVSeparator()
  23327. mv := v[mk]
  23328. mv = int8(dd.DecodeInt(8))
  23329. if v != nil {
  23330. v[mk] = mv
  23331. }
  23332. }
  23333. dd.ReadMapEnd()
  23334. }
  23335. return v, changed
  23336. }
  23337. func (f decFnInfo) fastpathDecMapInt32Int16R(rv reflect.Value) {
  23338. if rv.CanAddr() {
  23339. vp := rv.Addr().Interface().(*map[int32]int16)
  23340. v, changed := fastpathTV.DecMapInt32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  23341. if changed {
  23342. *vp = v
  23343. }
  23344. } else {
  23345. v := rv.Interface().(map[int32]int16)
  23346. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, f.d)
  23347. }
  23348. }
  23349. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, checkNil bool, d *Decoder) {
  23350. v, changed := f.DecMapInt32Int16V(*vp, checkNil, true, d)
  23351. if changed {
  23352. *vp = v
  23353. }
  23354. }
  23355. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, checkNil bool, canChange bool,
  23356. d *Decoder) (_ map[int32]int16, changed bool) {
  23357. dd := d.d
  23358. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23359. if checkNil && dd.TryDecodeAsNil() {
  23360. if v != nil {
  23361. changed = true
  23362. }
  23363. return nil, changed
  23364. }
  23365. containerLen := dd.ReadMapStart()
  23366. if canChange && v == nil {
  23367. if containerLen > 0 {
  23368. v = make(map[int32]int16, containerLen)
  23369. } else {
  23370. v = make(map[int32]int16) // supports indefinite-length, etc
  23371. }
  23372. changed = true
  23373. }
  23374. if containerLen > 0 {
  23375. for j := 0; j < containerLen; j++ {
  23376. mk := int32(dd.DecodeInt(32))
  23377. mv := v[mk]
  23378. mv = int16(dd.DecodeInt(16))
  23379. if v != nil {
  23380. v[mk] = mv
  23381. }
  23382. }
  23383. } else if containerLen < 0 {
  23384. for j := 0; !dd.CheckBreak(); j++ {
  23385. if j > 0 {
  23386. dd.ReadMapEntrySeparator()
  23387. }
  23388. mk := int32(dd.DecodeInt(32))
  23389. dd.ReadMapKVSeparator()
  23390. mv := v[mk]
  23391. mv = int16(dd.DecodeInt(16))
  23392. if v != nil {
  23393. v[mk] = mv
  23394. }
  23395. }
  23396. dd.ReadMapEnd()
  23397. }
  23398. return v, changed
  23399. }
  23400. func (f decFnInfo) fastpathDecMapInt32Int32R(rv reflect.Value) {
  23401. if rv.CanAddr() {
  23402. vp := rv.Addr().Interface().(*map[int32]int32)
  23403. v, changed := fastpathTV.DecMapInt32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  23404. if changed {
  23405. *vp = v
  23406. }
  23407. } else {
  23408. v := rv.Interface().(map[int32]int32)
  23409. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, f.d)
  23410. }
  23411. }
  23412. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, checkNil bool, d *Decoder) {
  23413. v, changed := f.DecMapInt32Int32V(*vp, checkNil, true, d)
  23414. if changed {
  23415. *vp = v
  23416. }
  23417. }
  23418. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, checkNil bool, canChange bool,
  23419. d *Decoder) (_ map[int32]int32, changed bool) {
  23420. dd := d.d
  23421. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23422. if checkNil && dd.TryDecodeAsNil() {
  23423. if v != nil {
  23424. changed = true
  23425. }
  23426. return nil, changed
  23427. }
  23428. containerLen := dd.ReadMapStart()
  23429. if canChange && v == nil {
  23430. if containerLen > 0 {
  23431. v = make(map[int32]int32, containerLen)
  23432. } else {
  23433. v = make(map[int32]int32) // supports indefinite-length, etc
  23434. }
  23435. changed = true
  23436. }
  23437. if containerLen > 0 {
  23438. for j := 0; j < containerLen; j++ {
  23439. mk := int32(dd.DecodeInt(32))
  23440. mv := v[mk]
  23441. mv = int32(dd.DecodeInt(32))
  23442. if v != nil {
  23443. v[mk] = mv
  23444. }
  23445. }
  23446. } else if containerLen < 0 {
  23447. for j := 0; !dd.CheckBreak(); j++ {
  23448. if j > 0 {
  23449. dd.ReadMapEntrySeparator()
  23450. }
  23451. mk := int32(dd.DecodeInt(32))
  23452. dd.ReadMapKVSeparator()
  23453. mv := v[mk]
  23454. mv = int32(dd.DecodeInt(32))
  23455. if v != nil {
  23456. v[mk] = mv
  23457. }
  23458. }
  23459. dd.ReadMapEnd()
  23460. }
  23461. return v, changed
  23462. }
  23463. func (f decFnInfo) fastpathDecMapInt32Int64R(rv reflect.Value) {
  23464. if rv.CanAddr() {
  23465. vp := rv.Addr().Interface().(*map[int32]int64)
  23466. v, changed := fastpathTV.DecMapInt32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  23467. if changed {
  23468. *vp = v
  23469. }
  23470. } else {
  23471. v := rv.Interface().(map[int32]int64)
  23472. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, f.d)
  23473. }
  23474. }
  23475. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, checkNil bool, d *Decoder) {
  23476. v, changed := f.DecMapInt32Int64V(*vp, checkNil, true, d)
  23477. if changed {
  23478. *vp = v
  23479. }
  23480. }
  23481. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, checkNil bool, canChange bool,
  23482. d *Decoder) (_ map[int32]int64, changed bool) {
  23483. dd := d.d
  23484. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23485. if checkNil && dd.TryDecodeAsNil() {
  23486. if v != nil {
  23487. changed = true
  23488. }
  23489. return nil, changed
  23490. }
  23491. containerLen := dd.ReadMapStart()
  23492. if canChange && v == nil {
  23493. if containerLen > 0 {
  23494. v = make(map[int32]int64, containerLen)
  23495. } else {
  23496. v = make(map[int32]int64) // supports indefinite-length, etc
  23497. }
  23498. changed = true
  23499. }
  23500. if containerLen > 0 {
  23501. for j := 0; j < containerLen; j++ {
  23502. mk := int32(dd.DecodeInt(32))
  23503. mv := v[mk]
  23504. mv = dd.DecodeInt(64)
  23505. if v != nil {
  23506. v[mk] = mv
  23507. }
  23508. }
  23509. } else if containerLen < 0 {
  23510. for j := 0; !dd.CheckBreak(); j++ {
  23511. if j > 0 {
  23512. dd.ReadMapEntrySeparator()
  23513. }
  23514. mk := int32(dd.DecodeInt(32))
  23515. dd.ReadMapKVSeparator()
  23516. mv := v[mk]
  23517. mv = dd.DecodeInt(64)
  23518. if v != nil {
  23519. v[mk] = mv
  23520. }
  23521. }
  23522. dd.ReadMapEnd()
  23523. }
  23524. return v, changed
  23525. }
  23526. func (f decFnInfo) fastpathDecMapInt32Float32R(rv reflect.Value) {
  23527. if rv.CanAddr() {
  23528. vp := rv.Addr().Interface().(*map[int32]float32)
  23529. v, changed := fastpathTV.DecMapInt32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  23530. if changed {
  23531. *vp = v
  23532. }
  23533. } else {
  23534. v := rv.Interface().(map[int32]float32)
  23535. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, f.d)
  23536. }
  23537. }
  23538. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, checkNil bool, d *Decoder) {
  23539. v, changed := f.DecMapInt32Float32V(*vp, checkNil, true, d)
  23540. if changed {
  23541. *vp = v
  23542. }
  23543. }
  23544. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, checkNil bool, canChange bool,
  23545. d *Decoder) (_ map[int32]float32, changed bool) {
  23546. dd := d.d
  23547. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23548. if checkNil && dd.TryDecodeAsNil() {
  23549. if v != nil {
  23550. changed = true
  23551. }
  23552. return nil, changed
  23553. }
  23554. containerLen := dd.ReadMapStart()
  23555. if canChange && v == nil {
  23556. if containerLen > 0 {
  23557. v = make(map[int32]float32, containerLen)
  23558. } else {
  23559. v = make(map[int32]float32) // supports indefinite-length, etc
  23560. }
  23561. changed = true
  23562. }
  23563. if containerLen > 0 {
  23564. for j := 0; j < containerLen; j++ {
  23565. mk := int32(dd.DecodeInt(32))
  23566. mv := v[mk]
  23567. mv = float32(dd.DecodeFloat(true))
  23568. if v != nil {
  23569. v[mk] = mv
  23570. }
  23571. }
  23572. } else if containerLen < 0 {
  23573. for j := 0; !dd.CheckBreak(); j++ {
  23574. if j > 0 {
  23575. dd.ReadMapEntrySeparator()
  23576. }
  23577. mk := int32(dd.DecodeInt(32))
  23578. dd.ReadMapKVSeparator()
  23579. mv := v[mk]
  23580. mv = float32(dd.DecodeFloat(true))
  23581. if v != nil {
  23582. v[mk] = mv
  23583. }
  23584. }
  23585. dd.ReadMapEnd()
  23586. }
  23587. return v, changed
  23588. }
  23589. func (f decFnInfo) fastpathDecMapInt32Float64R(rv reflect.Value) {
  23590. if rv.CanAddr() {
  23591. vp := rv.Addr().Interface().(*map[int32]float64)
  23592. v, changed := fastpathTV.DecMapInt32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  23593. if changed {
  23594. *vp = v
  23595. }
  23596. } else {
  23597. v := rv.Interface().(map[int32]float64)
  23598. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, f.d)
  23599. }
  23600. }
  23601. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, checkNil bool, d *Decoder) {
  23602. v, changed := f.DecMapInt32Float64V(*vp, checkNil, true, d)
  23603. if changed {
  23604. *vp = v
  23605. }
  23606. }
  23607. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, checkNil bool, canChange bool,
  23608. d *Decoder) (_ map[int32]float64, changed bool) {
  23609. dd := d.d
  23610. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23611. if checkNil && dd.TryDecodeAsNil() {
  23612. if v != nil {
  23613. changed = true
  23614. }
  23615. return nil, changed
  23616. }
  23617. containerLen := dd.ReadMapStart()
  23618. if canChange && v == nil {
  23619. if containerLen > 0 {
  23620. v = make(map[int32]float64, containerLen)
  23621. } else {
  23622. v = make(map[int32]float64) // supports indefinite-length, etc
  23623. }
  23624. changed = true
  23625. }
  23626. if containerLen > 0 {
  23627. for j := 0; j < containerLen; j++ {
  23628. mk := int32(dd.DecodeInt(32))
  23629. mv := v[mk]
  23630. mv = dd.DecodeFloat(false)
  23631. if v != nil {
  23632. v[mk] = mv
  23633. }
  23634. }
  23635. } else if containerLen < 0 {
  23636. for j := 0; !dd.CheckBreak(); j++ {
  23637. if j > 0 {
  23638. dd.ReadMapEntrySeparator()
  23639. }
  23640. mk := int32(dd.DecodeInt(32))
  23641. dd.ReadMapKVSeparator()
  23642. mv := v[mk]
  23643. mv = dd.DecodeFloat(false)
  23644. if v != nil {
  23645. v[mk] = mv
  23646. }
  23647. }
  23648. dd.ReadMapEnd()
  23649. }
  23650. return v, changed
  23651. }
  23652. func (f decFnInfo) fastpathDecMapInt32BoolR(rv reflect.Value) {
  23653. if rv.CanAddr() {
  23654. vp := rv.Addr().Interface().(*map[int32]bool)
  23655. v, changed := fastpathTV.DecMapInt32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  23656. if changed {
  23657. *vp = v
  23658. }
  23659. } else {
  23660. v := rv.Interface().(map[int32]bool)
  23661. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, f.d)
  23662. }
  23663. }
  23664. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, checkNil bool, d *Decoder) {
  23665. v, changed := f.DecMapInt32BoolV(*vp, checkNil, true, d)
  23666. if changed {
  23667. *vp = v
  23668. }
  23669. }
  23670. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, checkNil bool, canChange bool,
  23671. d *Decoder) (_ map[int32]bool, changed bool) {
  23672. dd := d.d
  23673. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23674. if checkNil && dd.TryDecodeAsNil() {
  23675. if v != nil {
  23676. changed = true
  23677. }
  23678. return nil, changed
  23679. }
  23680. containerLen := dd.ReadMapStart()
  23681. if canChange && v == nil {
  23682. if containerLen > 0 {
  23683. v = make(map[int32]bool, containerLen)
  23684. } else {
  23685. v = make(map[int32]bool) // supports indefinite-length, etc
  23686. }
  23687. changed = true
  23688. }
  23689. if containerLen > 0 {
  23690. for j := 0; j < containerLen; j++ {
  23691. mk := int32(dd.DecodeInt(32))
  23692. mv := v[mk]
  23693. mv = dd.DecodeBool()
  23694. if v != nil {
  23695. v[mk] = mv
  23696. }
  23697. }
  23698. } else if containerLen < 0 {
  23699. for j := 0; !dd.CheckBreak(); j++ {
  23700. if j > 0 {
  23701. dd.ReadMapEntrySeparator()
  23702. }
  23703. mk := int32(dd.DecodeInt(32))
  23704. dd.ReadMapKVSeparator()
  23705. mv := v[mk]
  23706. mv = dd.DecodeBool()
  23707. if v != nil {
  23708. v[mk] = mv
  23709. }
  23710. }
  23711. dd.ReadMapEnd()
  23712. }
  23713. return v, changed
  23714. }
  23715. func (f decFnInfo) fastpathDecMapInt64IntfR(rv reflect.Value) {
  23716. if rv.CanAddr() {
  23717. vp := rv.Addr().Interface().(*map[int64]interface{})
  23718. v, changed := fastpathTV.DecMapInt64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  23719. if changed {
  23720. *vp = v
  23721. }
  23722. } else {
  23723. v := rv.Interface().(map[int64]interface{})
  23724. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, f.d)
  23725. }
  23726. }
  23727. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, checkNil bool, d *Decoder) {
  23728. v, changed := f.DecMapInt64IntfV(*vp, checkNil, true, d)
  23729. if changed {
  23730. *vp = v
  23731. }
  23732. }
  23733. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, checkNil bool, canChange bool,
  23734. d *Decoder) (_ map[int64]interface{}, changed bool) {
  23735. dd := d.d
  23736. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23737. if checkNil && dd.TryDecodeAsNil() {
  23738. if v != nil {
  23739. changed = true
  23740. }
  23741. return nil, changed
  23742. }
  23743. containerLen := dd.ReadMapStart()
  23744. if canChange && v == nil {
  23745. if containerLen > 0 {
  23746. v = make(map[int64]interface{}, containerLen)
  23747. } else {
  23748. v = make(map[int64]interface{}) // supports indefinite-length, etc
  23749. }
  23750. changed = true
  23751. }
  23752. if containerLen > 0 {
  23753. for j := 0; j < containerLen; j++ {
  23754. mk := dd.DecodeInt(64)
  23755. mv := v[mk]
  23756. d.decode(&mv)
  23757. if v != nil {
  23758. v[mk] = mv
  23759. }
  23760. }
  23761. } else if containerLen < 0 {
  23762. for j := 0; !dd.CheckBreak(); j++ {
  23763. if j > 0 {
  23764. dd.ReadMapEntrySeparator()
  23765. }
  23766. mk := dd.DecodeInt(64)
  23767. dd.ReadMapKVSeparator()
  23768. mv := v[mk]
  23769. d.decode(&mv)
  23770. if v != nil {
  23771. v[mk] = mv
  23772. }
  23773. }
  23774. dd.ReadMapEnd()
  23775. }
  23776. return v, changed
  23777. }
  23778. func (f decFnInfo) fastpathDecMapInt64StringR(rv reflect.Value) {
  23779. if rv.CanAddr() {
  23780. vp := rv.Addr().Interface().(*map[int64]string)
  23781. v, changed := fastpathTV.DecMapInt64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  23782. if changed {
  23783. *vp = v
  23784. }
  23785. } else {
  23786. v := rv.Interface().(map[int64]string)
  23787. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, f.d)
  23788. }
  23789. }
  23790. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, checkNil bool, d *Decoder) {
  23791. v, changed := f.DecMapInt64StringV(*vp, checkNil, true, d)
  23792. if changed {
  23793. *vp = v
  23794. }
  23795. }
  23796. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, checkNil bool, canChange bool,
  23797. d *Decoder) (_ map[int64]string, changed bool) {
  23798. dd := d.d
  23799. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23800. if checkNil && dd.TryDecodeAsNil() {
  23801. if v != nil {
  23802. changed = true
  23803. }
  23804. return nil, changed
  23805. }
  23806. containerLen := dd.ReadMapStart()
  23807. if canChange && v == nil {
  23808. if containerLen > 0 {
  23809. v = make(map[int64]string, containerLen)
  23810. } else {
  23811. v = make(map[int64]string) // supports indefinite-length, etc
  23812. }
  23813. changed = true
  23814. }
  23815. if containerLen > 0 {
  23816. for j := 0; j < containerLen; j++ {
  23817. mk := dd.DecodeInt(64)
  23818. mv := v[mk]
  23819. mv = dd.DecodeString()
  23820. if v != nil {
  23821. v[mk] = mv
  23822. }
  23823. }
  23824. } else if containerLen < 0 {
  23825. for j := 0; !dd.CheckBreak(); j++ {
  23826. if j > 0 {
  23827. dd.ReadMapEntrySeparator()
  23828. }
  23829. mk := dd.DecodeInt(64)
  23830. dd.ReadMapKVSeparator()
  23831. mv := v[mk]
  23832. mv = dd.DecodeString()
  23833. if v != nil {
  23834. v[mk] = mv
  23835. }
  23836. }
  23837. dd.ReadMapEnd()
  23838. }
  23839. return v, changed
  23840. }
  23841. func (f decFnInfo) fastpathDecMapInt64UintR(rv reflect.Value) {
  23842. if rv.CanAddr() {
  23843. vp := rv.Addr().Interface().(*map[int64]uint)
  23844. v, changed := fastpathTV.DecMapInt64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  23845. if changed {
  23846. *vp = v
  23847. }
  23848. } else {
  23849. v := rv.Interface().(map[int64]uint)
  23850. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, f.d)
  23851. }
  23852. }
  23853. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, checkNil bool, d *Decoder) {
  23854. v, changed := f.DecMapInt64UintV(*vp, checkNil, true, d)
  23855. if changed {
  23856. *vp = v
  23857. }
  23858. }
  23859. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, checkNil bool, canChange bool,
  23860. d *Decoder) (_ map[int64]uint, changed bool) {
  23861. dd := d.d
  23862. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23863. if checkNil && dd.TryDecodeAsNil() {
  23864. if v != nil {
  23865. changed = true
  23866. }
  23867. return nil, changed
  23868. }
  23869. containerLen := dd.ReadMapStart()
  23870. if canChange && v == nil {
  23871. if containerLen > 0 {
  23872. v = make(map[int64]uint, containerLen)
  23873. } else {
  23874. v = make(map[int64]uint) // supports indefinite-length, etc
  23875. }
  23876. changed = true
  23877. }
  23878. if containerLen > 0 {
  23879. for j := 0; j < containerLen; j++ {
  23880. mk := dd.DecodeInt(64)
  23881. mv := v[mk]
  23882. mv = uint(dd.DecodeUint(uintBitsize))
  23883. if v != nil {
  23884. v[mk] = mv
  23885. }
  23886. }
  23887. } else if containerLen < 0 {
  23888. for j := 0; !dd.CheckBreak(); j++ {
  23889. if j > 0 {
  23890. dd.ReadMapEntrySeparator()
  23891. }
  23892. mk := dd.DecodeInt(64)
  23893. dd.ReadMapKVSeparator()
  23894. mv := v[mk]
  23895. mv = uint(dd.DecodeUint(uintBitsize))
  23896. if v != nil {
  23897. v[mk] = mv
  23898. }
  23899. }
  23900. dd.ReadMapEnd()
  23901. }
  23902. return v, changed
  23903. }
  23904. func (f decFnInfo) fastpathDecMapInt64Uint8R(rv reflect.Value) {
  23905. if rv.CanAddr() {
  23906. vp := rv.Addr().Interface().(*map[int64]uint8)
  23907. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  23908. if changed {
  23909. *vp = v
  23910. }
  23911. } else {
  23912. v := rv.Interface().(map[int64]uint8)
  23913. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  23914. }
  23915. }
  23916. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, checkNil bool, d *Decoder) {
  23917. v, changed := f.DecMapInt64Uint8V(*vp, checkNil, true, d)
  23918. if changed {
  23919. *vp = v
  23920. }
  23921. }
  23922. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, checkNil bool, canChange bool,
  23923. d *Decoder) (_ map[int64]uint8, changed bool) {
  23924. dd := d.d
  23925. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23926. if checkNil && dd.TryDecodeAsNil() {
  23927. if v != nil {
  23928. changed = true
  23929. }
  23930. return nil, changed
  23931. }
  23932. containerLen := dd.ReadMapStart()
  23933. if canChange && v == nil {
  23934. if containerLen > 0 {
  23935. v = make(map[int64]uint8, containerLen)
  23936. } else {
  23937. v = make(map[int64]uint8) // supports indefinite-length, etc
  23938. }
  23939. changed = true
  23940. }
  23941. if containerLen > 0 {
  23942. for j := 0; j < containerLen; j++ {
  23943. mk := dd.DecodeInt(64)
  23944. mv := v[mk]
  23945. mv = uint8(dd.DecodeUint(8))
  23946. if v != nil {
  23947. v[mk] = mv
  23948. }
  23949. }
  23950. } else if containerLen < 0 {
  23951. for j := 0; !dd.CheckBreak(); j++ {
  23952. if j > 0 {
  23953. dd.ReadMapEntrySeparator()
  23954. }
  23955. mk := dd.DecodeInt(64)
  23956. dd.ReadMapKVSeparator()
  23957. mv := v[mk]
  23958. mv = uint8(dd.DecodeUint(8))
  23959. if v != nil {
  23960. v[mk] = mv
  23961. }
  23962. }
  23963. dd.ReadMapEnd()
  23964. }
  23965. return v, changed
  23966. }
  23967. func (f decFnInfo) fastpathDecMapInt64Uint16R(rv reflect.Value) {
  23968. if rv.CanAddr() {
  23969. vp := rv.Addr().Interface().(*map[int64]uint16)
  23970. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  23971. if changed {
  23972. *vp = v
  23973. }
  23974. } else {
  23975. v := rv.Interface().(map[int64]uint16)
  23976. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  23977. }
  23978. }
  23979. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, checkNil bool, d *Decoder) {
  23980. v, changed := f.DecMapInt64Uint16V(*vp, checkNil, true, d)
  23981. if changed {
  23982. *vp = v
  23983. }
  23984. }
  23985. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, checkNil bool, canChange bool,
  23986. d *Decoder) (_ map[int64]uint16, changed bool) {
  23987. dd := d.d
  23988. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23989. if checkNil && dd.TryDecodeAsNil() {
  23990. if v != nil {
  23991. changed = true
  23992. }
  23993. return nil, changed
  23994. }
  23995. containerLen := dd.ReadMapStart()
  23996. if canChange && v == nil {
  23997. if containerLen > 0 {
  23998. v = make(map[int64]uint16, containerLen)
  23999. } else {
  24000. v = make(map[int64]uint16) // supports indefinite-length, etc
  24001. }
  24002. changed = true
  24003. }
  24004. if containerLen > 0 {
  24005. for j := 0; j < containerLen; j++ {
  24006. mk := dd.DecodeInt(64)
  24007. mv := v[mk]
  24008. mv = uint16(dd.DecodeUint(16))
  24009. if v != nil {
  24010. v[mk] = mv
  24011. }
  24012. }
  24013. } else if containerLen < 0 {
  24014. for j := 0; !dd.CheckBreak(); j++ {
  24015. if j > 0 {
  24016. dd.ReadMapEntrySeparator()
  24017. }
  24018. mk := dd.DecodeInt(64)
  24019. dd.ReadMapKVSeparator()
  24020. mv := v[mk]
  24021. mv = uint16(dd.DecodeUint(16))
  24022. if v != nil {
  24023. v[mk] = mv
  24024. }
  24025. }
  24026. dd.ReadMapEnd()
  24027. }
  24028. return v, changed
  24029. }
  24030. func (f decFnInfo) fastpathDecMapInt64Uint32R(rv reflect.Value) {
  24031. if rv.CanAddr() {
  24032. vp := rv.Addr().Interface().(*map[int64]uint32)
  24033. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  24034. if changed {
  24035. *vp = v
  24036. }
  24037. } else {
  24038. v := rv.Interface().(map[int64]uint32)
  24039. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  24040. }
  24041. }
  24042. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, checkNil bool, d *Decoder) {
  24043. v, changed := f.DecMapInt64Uint32V(*vp, checkNil, true, d)
  24044. if changed {
  24045. *vp = v
  24046. }
  24047. }
  24048. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, checkNil bool, canChange bool,
  24049. d *Decoder) (_ map[int64]uint32, changed bool) {
  24050. dd := d.d
  24051. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24052. if checkNil && dd.TryDecodeAsNil() {
  24053. if v != nil {
  24054. changed = true
  24055. }
  24056. return nil, changed
  24057. }
  24058. containerLen := dd.ReadMapStart()
  24059. if canChange && v == nil {
  24060. if containerLen > 0 {
  24061. v = make(map[int64]uint32, containerLen)
  24062. } else {
  24063. v = make(map[int64]uint32) // supports indefinite-length, etc
  24064. }
  24065. changed = true
  24066. }
  24067. if containerLen > 0 {
  24068. for j := 0; j < containerLen; j++ {
  24069. mk := dd.DecodeInt(64)
  24070. mv := v[mk]
  24071. mv = uint32(dd.DecodeUint(32))
  24072. if v != nil {
  24073. v[mk] = mv
  24074. }
  24075. }
  24076. } else if containerLen < 0 {
  24077. for j := 0; !dd.CheckBreak(); j++ {
  24078. if j > 0 {
  24079. dd.ReadMapEntrySeparator()
  24080. }
  24081. mk := dd.DecodeInt(64)
  24082. dd.ReadMapKVSeparator()
  24083. mv := v[mk]
  24084. mv = uint32(dd.DecodeUint(32))
  24085. if v != nil {
  24086. v[mk] = mv
  24087. }
  24088. }
  24089. dd.ReadMapEnd()
  24090. }
  24091. return v, changed
  24092. }
  24093. func (f decFnInfo) fastpathDecMapInt64Uint64R(rv reflect.Value) {
  24094. if rv.CanAddr() {
  24095. vp := rv.Addr().Interface().(*map[int64]uint64)
  24096. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  24097. if changed {
  24098. *vp = v
  24099. }
  24100. } else {
  24101. v := rv.Interface().(map[int64]uint64)
  24102. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  24103. }
  24104. }
  24105. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, checkNil bool, d *Decoder) {
  24106. v, changed := f.DecMapInt64Uint64V(*vp, checkNil, true, d)
  24107. if changed {
  24108. *vp = v
  24109. }
  24110. }
  24111. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, checkNil bool, canChange bool,
  24112. d *Decoder) (_ map[int64]uint64, changed bool) {
  24113. dd := d.d
  24114. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24115. if checkNil && dd.TryDecodeAsNil() {
  24116. if v != nil {
  24117. changed = true
  24118. }
  24119. return nil, changed
  24120. }
  24121. containerLen := dd.ReadMapStart()
  24122. if canChange && v == nil {
  24123. if containerLen > 0 {
  24124. v = make(map[int64]uint64, containerLen)
  24125. } else {
  24126. v = make(map[int64]uint64) // supports indefinite-length, etc
  24127. }
  24128. changed = true
  24129. }
  24130. if containerLen > 0 {
  24131. for j := 0; j < containerLen; j++ {
  24132. mk := dd.DecodeInt(64)
  24133. mv := v[mk]
  24134. mv = dd.DecodeUint(64)
  24135. if v != nil {
  24136. v[mk] = mv
  24137. }
  24138. }
  24139. } else if containerLen < 0 {
  24140. for j := 0; !dd.CheckBreak(); j++ {
  24141. if j > 0 {
  24142. dd.ReadMapEntrySeparator()
  24143. }
  24144. mk := dd.DecodeInt(64)
  24145. dd.ReadMapKVSeparator()
  24146. mv := v[mk]
  24147. mv = dd.DecodeUint(64)
  24148. if v != nil {
  24149. v[mk] = mv
  24150. }
  24151. }
  24152. dd.ReadMapEnd()
  24153. }
  24154. return v, changed
  24155. }
  24156. func (f decFnInfo) fastpathDecMapInt64IntR(rv reflect.Value) {
  24157. if rv.CanAddr() {
  24158. vp := rv.Addr().Interface().(*map[int64]int)
  24159. v, changed := fastpathTV.DecMapInt64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  24160. if changed {
  24161. *vp = v
  24162. }
  24163. } else {
  24164. v := rv.Interface().(map[int64]int)
  24165. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, f.d)
  24166. }
  24167. }
  24168. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, checkNil bool, d *Decoder) {
  24169. v, changed := f.DecMapInt64IntV(*vp, checkNil, true, d)
  24170. if changed {
  24171. *vp = v
  24172. }
  24173. }
  24174. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, checkNil bool, canChange bool,
  24175. d *Decoder) (_ map[int64]int, changed bool) {
  24176. dd := d.d
  24177. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24178. if checkNil && dd.TryDecodeAsNil() {
  24179. if v != nil {
  24180. changed = true
  24181. }
  24182. return nil, changed
  24183. }
  24184. containerLen := dd.ReadMapStart()
  24185. if canChange && v == nil {
  24186. if containerLen > 0 {
  24187. v = make(map[int64]int, containerLen)
  24188. } else {
  24189. v = make(map[int64]int) // supports indefinite-length, etc
  24190. }
  24191. changed = true
  24192. }
  24193. if containerLen > 0 {
  24194. for j := 0; j < containerLen; j++ {
  24195. mk := dd.DecodeInt(64)
  24196. mv := v[mk]
  24197. mv = int(dd.DecodeInt(intBitsize))
  24198. if v != nil {
  24199. v[mk] = mv
  24200. }
  24201. }
  24202. } else if containerLen < 0 {
  24203. for j := 0; !dd.CheckBreak(); j++ {
  24204. if j > 0 {
  24205. dd.ReadMapEntrySeparator()
  24206. }
  24207. mk := dd.DecodeInt(64)
  24208. dd.ReadMapKVSeparator()
  24209. mv := v[mk]
  24210. mv = int(dd.DecodeInt(intBitsize))
  24211. if v != nil {
  24212. v[mk] = mv
  24213. }
  24214. }
  24215. dd.ReadMapEnd()
  24216. }
  24217. return v, changed
  24218. }
  24219. func (f decFnInfo) fastpathDecMapInt64Int8R(rv reflect.Value) {
  24220. if rv.CanAddr() {
  24221. vp := rv.Addr().Interface().(*map[int64]int8)
  24222. v, changed := fastpathTV.DecMapInt64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  24223. if changed {
  24224. *vp = v
  24225. }
  24226. } else {
  24227. v := rv.Interface().(map[int64]int8)
  24228. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, f.d)
  24229. }
  24230. }
  24231. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, checkNil bool, d *Decoder) {
  24232. v, changed := f.DecMapInt64Int8V(*vp, checkNil, true, d)
  24233. if changed {
  24234. *vp = v
  24235. }
  24236. }
  24237. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, checkNil bool, canChange bool,
  24238. d *Decoder) (_ map[int64]int8, changed bool) {
  24239. dd := d.d
  24240. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24241. if checkNil && dd.TryDecodeAsNil() {
  24242. if v != nil {
  24243. changed = true
  24244. }
  24245. return nil, changed
  24246. }
  24247. containerLen := dd.ReadMapStart()
  24248. if canChange && v == nil {
  24249. if containerLen > 0 {
  24250. v = make(map[int64]int8, containerLen)
  24251. } else {
  24252. v = make(map[int64]int8) // supports indefinite-length, etc
  24253. }
  24254. changed = true
  24255. }
  24256. if containerLen > 0 {
  24257. for j := 0; j < containerLen; j++ {
  24258. mk := dd.DecodeInt(64)
  24259. mv := v[mk]
  24260. mv = int8(dd.DecodeInt(8))
  24261. if v != nil {
  24262. v[mk] = mv
  24263. }
  24264. }
  24265. } else if containerLen < 0 {
  24266. for j := 0; !dd.CheckBreak(); j++ {
  24267. if j > 0 {
  24268. dd.ReadMapEntrySeparator()
  24269. }
  24270. mk := dd.DecodeInt(64)
  24271. dd.ReadMapKVSeparator()
  24272. mv := v[mk]
  24273. mv = int8(dd.DecodeInt(8))
  24274. if v != nil {
  24275. v[mk] = mv
  24276. }
  24277. }
  24278. dd.ReadMapEnd()
  24279. }
  24280. return v, changed
  24281. }
  24282. func (f decFnInfo) fastpathDecMapInt64Int16R(rv reflect.Value) {
  24283. if rv.CanAddr() {
  24284. vp := rv.Addr().Interface().(*map[int64]int16)
  24285. v, changed := fastpathTV.DecMapInt64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  24286. if changed {
  24287. *vp = v
  24288. }
  24289. } else {
  24290. v := rv.Interface().(map[int64]int16)
  24291. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, f.d)
  24292. }
  24293. }
  24294. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, checkNil bool, d *Decoder) {
  24295. v, changed := f.DecMapInt64Int16V(*vp, checkNil, true, d)
  24296. if changed {
  24297. *vp = v
  24298. }
  24299. }
  24300. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, checkNil bool, canChange bool,
  24301. d *Decoder) (_ map[int64]int16, changed bool) {
  24302. dd := d.d
  24303. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24304. if checkNil && dd.TryDecodeAsNil() {
  24305. if v != nil {
  24306. changed = true
  24307. }
  24308. return nil, changed
  24309. }
  24310. containerLen := dd.ReadMapStart()
  24311. if canChange && v == nil {
  24312. if containerLen > 0 {
  24313. v = make(map[int64]int16, containerLen)
  24314. } else {
  24315. v = make(map[int64]int16) // supports indefinite-length, etc
  24316. }
  24317. changed = true
  24318. }
  24319. if containerLen > 0 {
  24320. for j := 0; j < containerLen; j++ {
  24321. mk := dd.DecodeInt(64)
  24322. mv := v[mk]
  24323. mv = int16(dd.DecodeInt(16))
  24324. if v != nil {
  24325. v[mk] = mv
  24326. }
  24327. }
  24328. } else if containerLen < 0 {
  24329. for j := 0; !dd.CheckBreak(); j++ {
  24330. if j > 0 {
  24331. dd.ReadMapEntrySeparator()
  24332. }
  24333. mk := dd.DecodeInt(64)
  24334. dd.ReadMapKVSeparator()
  24335. mv := v[mk]
  24336. mv = int16(dd.DecodeInt(16))
  24337. if v != nil {
  24338. v[mk] = mv
  24339. }
  24340. }
  24341. dd.ReadMapEnd()
  24342. }
  24343. return v, changed
  24344. }
  24345. func (f decFnInfo) fastpathDecMapInt64Int32R(rv reflect.Value) {
  24346. if rv.CanAddr() {
  24347. vp := rv.Addr().Interface().(*map[int64]int32)
  24348. v, changed := fastpathTV.DecMapInt64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  24349. if changed {
  24350. *vp = v
  24351. }
  24352. } else {
  24353. v := rv.Interface().(map[int64]int32)
  24354. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, f.d)
  24355. }
  24356. }
  24357. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, checkNil bool, d *Decoder) {
  24358. v, changed := f.DecMapInt64Int32V(*vp, checkNil, true, d)
  24359. if changed {
  24360. *vp = v
  24361. }
  24362. }
  24363. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, checkNil bool, canChange bool,
  24364. d *Decoder) (_ map[int64]int32, changed bool) {
  24365. dd := d.d
  24366. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24367. if checkNil && dd.TryDecodeAsNil() {
  24368. if v != nil {
  24369. changed = true
  24370. }
  24371. return nil, changed
  24372. }
  24373. containerLen := dd.ReadMapStart()
  24374. if canChange && v == nil {
  24375. if containerLen > 0 {
  24376. v = make(map[int64]int32, containerLen)
  24377. } else {
  24378. v = make(map[int64]int32) // supports indefinite-length, etc
  24379. }
  24380. changed = true
  24381. }
  24382. if containerLen > 0 {
  24383. for j := 0; j < containerLen; j++ {
  24384. mk := dd.DecodeInt(64)
  24385. mv := v[mk]
  24386. mv = int32(dd.DecodeInt(32))
  24387. if v != nil {
  24388. v[mk] = mv
  24389. }
  24390. }
  24391. } else if containerLen < 0 {
  24392. for j := 0; !dd.CheckBreak(); j++ {
  24393. if j > 0 {
  24394. dd.ReadMapEntrySeparator()
  24395. }
  24396. mk := dd.DecodeInt(64)
  24397. dd.ReadMapKVSeparator()
  24398. mv := v[mk]
  24399. mv = int32(dd.DecodeInt(32))
  24400. if v != nil {
  24401. v[mk] = mv
  24402. }
  24403. }
  24404. dd.ReadMapEnd()
  24405. }
  24406. return v, changed
  24407. }
  24408. func (f decFnInfo) fastpathDecMapInt64Int64R(rv reflect.Value) {
  24409. if rv.CanAddr() {
  24410. vp := rv.Addr().Interface().(*map[int64]int64)
  24411. v, changed := fastpathTV.DecMapInt64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  24412. if changed {
  24413. *vp = v
  24414. }
  24415. } else {
  24416. v := rv.Interface().(map[int64]int64)
  24417. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, f.d)
  24418. }
  24419. }
  24420. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, checkNil bool, d *Decoder) {
  24421. v, changed := f.DecMapInt64Int64V(*vp, checkNil, true, d)
  24422. if changed {
  24423. *vp = v
  24424. }
  24425. }
  24426. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, checkNil bool, canChange bool,
  24427. d *Decoder) (_ map[int64]int64, changed bool) {
  24428. dd := d.d
  24429. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24430. if checkNil && dd.TryDecodeAsNil() {
  24431. if v != nil {
  24432. changed = true
  24433. }
  24434. return nil, changed
  24435. }
  24436. containerLen := dd.ReadMapStart()
  24437. if canChange && v == nil {
  24438. if containerLen > 0 {
  24439. v = make(map[int64]int64, containerLen)
  24440. } else {
  24441. v = make(map[int64]int64) // supports indefinite-length, etc
  24442. }
  24443. changed = true
  24444. }
  24445. if containerLen > 0 {
  24446. for j := 0; j < containerLen; j++ {
  24447. mk := dd.DecodeInt(64)
  24448. mv := v[mk]
  24449. mv = dd.DecodeInt(64)
  24450. if v != nil {
  24451. v[mk] = mv
  24452. }
  24453. }
  24454. } else if containerLen < 0 {
  24455. for j := 0; !dd.CheckBreak(); j++ {
  24456. if j > 0 {
  24457. dd.ReadMapEntrySeparator()
  24458. }
  24459. mk := dd.DecodeInt(64)
  24460. dd.ReadMapKVSeparator()
  24461. mv := v[mk]
  24462. mv = dd.DecodeInt(64)
  24463. if v != nil {
  24464. v[mk] = mv
  24465. }
  24466. }
  24467. dd.ReadMapEnd()
  24468. }
  24469. return v, changed
  24470. }
  24471. func (f decFnInfo) fastpathDecMapInt64Float32R(rv reflect.Value) {
  24472. if rv.CanAddr() {
  24473. vp := rv.Addr().Interface().(*map[int64]float32)
  24474. v, changed := fastpathTV.DecMapInt64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  24475. if changed {
  24476. *vp = v
  24477. }
  24478. } else {
  24479. v := rv.Interface().(map[int64]float32)
  24480. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, f.d)
  24481. }
  24482. }
  24483. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, checkNil bool, d *Decoder) {
  24484. v, changed := f.DecMapInt64Float32V(*vp, checkNil, true, d)
  24485. if changed {
  24486. *vp = v
  24487. }
  24488. }
  24489. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, checkNil bool, canChange bool,
  24490. d *Decoder) (_ map[int64]float32, changed bool) {
  24491. dd := d.d
  24492. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24493. if checkNil && dd.TryDecodeAsNil() {
  24494. if v != nil {
  24495. changed = true
  24496. }
  24497. return nil, changed
  24498. }
  24499. containerLen := dd.ReadMapStart()
  24500. if canChange && v == nil {
  24501. if containerLen > 0 {
  24502. v = make(map[int64]float32, containerLen)
  24503. } else {
  24504. v = make(map[int64]float32) // supports indefinite-length, etc
  24505. }
  24506. changed = true
  24507. }
  24508. if containerLen > 0 {
  24509. for j := 0; j < containerLen; j++ {
  24510. mk := dd.DecodeInt(64)
  24511. mv := v[mk]
  24512. mv = float32(dd.DecodeFloat(true))
  24513. if v != nil {
  24514. v[mk] = mv
  24515. }
  24516. }
  24517. } else if containerLen < 0 {
  24518. for j := 0; !dd.CheckBreak(); j++ {
  24519. if j > 0 {
  24520. dd.ReadMapEntrySeparator()
  24521. }
  24522. mk := dd.DecodeInt(64)
  24523. dd.ReadMapKVSeparator()
  24524. mv := v[mk]
  24525. mv = float32(dd.DecodeFloat(true))
  24526. if v != nil {
  24527. v[mk] = mv
  24528. }
  24529. }
  24530. dd.ReadMapEnd()
  24531. }
  24532. return v, changed
  24533. }
  24534. func (f decFnInfo) fastpathDecMapInt64Float64R(rv reflect.Value) {
  24535. if rv.CanAddr() {
  24536. vp := rv.Addr().Interface().(*map[int64]float64)
  24537. v, changed := fastpathTV.DecMapInt64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  24538. if changed {
  24539. *vp = v
  24540. }
  24541. } else {
  24542. v := rv.Interface().(map[int64]float64)
  24543. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, f.d)
  24544. }
  24545. }
  24546. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, checkNil bool, d *Decoder) {
  24547. v, changed := f.DecMapInt64Float64V(*vp, checkNil, true, d)
  24548. if changed {
  24549. *vp = v
  24550. }
  24551. }
  24552. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, checkNil bool, canChange bool,
  24553. d *Decoder) (_ map[int64]float64, changed bool) {
  24554. dd := d.d
  24555. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24556. if checkNil && dd.TryDecodeAsNil() {
  24557. if v != nil {
  24558. changed = true
  24559. }
  24560. return nil, changed
  24561. }
  24562. containerLen := dd.ReadMapStart()
  24563. if canChange && v == nil {
  24564. if containerLen > 0 {
  24565. v = make(map[int64]float64, containerLen)
  24566. } else {
  24567. v = make(map[int64]float64) // supports indefinite-length, etc
  24568. }
  24569. changed = true
  24570. }
  24571. if containerLen > 0 {
  24572. for j := 0; j < containerLen; j++ {
  24573. mk := dd.DecodeInt(64)
  24574. mv := v[mk]
  24575. mv = dd.DecodeFloat(false)
  24576. if v != nil {
  24577. v[mk] = mv
  24578. }
  24579. }
  24580. } else if containerLen < 0 {
  24581. for j := 0; !dd.CheckBreak(); j++ {
  24582. if j > 0 {
  24583. dd.ReadMapEntrySeparator()
  24584. }
  24585. mk := dd.DecodeInt(64)
  24586. dd.ReadMapKVSeparator()
  24587. mv := v[mk]
  24588. mv = dd.DecodeFloat(false)
  24589. if v != nil {
  24590. v[mk] = mv
  24591. }
  24592. }
  24593. dd.ReadMapEnd()
  24594. }
  24595. return v, changed
  24596. }
  24597. func (f decFnInfo) fastpathDecMapInt64BoolR(rv reflect.Value) {
  24598. if rv.CanAddr() {
  24599. vp := rv.Addr().Interface().(*map[int64]bool)
  24600. v, changed := fastpathTV.DecMapInt64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  24601. if changed {
  24602. *vp = v
  24603. }
  24604. } else {
  24605. v := rv.Interface().(map[int64]bool)
  24606. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, f.d)
  24607. }
  24608. }
  24609. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, checkNil bool, d *Decoder) {
  24610. v, changed := f.DecMapInt64BoolV(*vp, checkNil, true, d)
  24611. if changed {
  24612. *vp = v
  24613. }
  24614. }
  24615. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, checkNil bool, canChange bool,
  24616. d *Decoder) (_ map[int64]bool, changed bool) {
  24617. dd := d.d
  24618. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24619. if checkNil && dd.TryDecodeAsNil() {
  24620. if v != nil {
  24621. changed = true
  24622. }
  24623. return nil, changed
  24624. }
  24625. containerLen := dd.ReadMapStart()
  24626. if canChange && v == nil {
  24627. if containerLen > 0 {
  24628. v = make(map[int64]bool, containerLen)
  24629. } else {
  24630. v = make(map[int64]bool) // supports indefinite-length, etc
  24631. }
  24632. changed = true
  24633. }
  24634. if containerLen > 0 {
  24635. for j := 0; j < containerLen; j++ {
  24636. mk := dd.DecodeInt(64)
  24637. mv := v[mk]
  24638. mv = dd.DecodeBool()
  24639. if v != nil {
  24640. v[mk] = mv
  24641. }
  24642. }
  24643. } else if containerLen < 0 {
  24644. for j := 0; !dd.CheckBreak(); j++ {
  24645. if j > 0 {
  24646. dd.ReadMapEntrySeparator()
  24647. }
  24648. mk := dd.DecodeInt(64)
  24649. dd.ReadMapKVSeparator()
  24650. mv := v[mk]
  24651. mv = dd.DecodeBool()
  24652. if v != nil {
  24653. v[mk] = mv
  24654. }
  24655. }
  24656. dd.ReadMapEnd()
  24657. }
  24658. return v, changed
  24659. }
  24660. func (f decFnInfo) fastpathDecMapBoolIntfR(rv reflect.Value) {
  24661. if rv.CanAddr() {
  24662. vp := rv.Addr().Interface().(*map[bool]interface{})
  24663. v, changed := fastpathTV.DecMapBoolIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  24664. if changed {
  24665. *vp = v
  24666. }
  24667. } else {
  24668. v := rv.Interface().(map[bool]interface{})
  24669. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, f.d)
  24670. }
  24671. }
  24672. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, checkNil bool, d *Decoder) {
  24673. v, changed := f.DecMapBoolIntfV(*vp, checkNil, true, d)
  24674. if changed {
  24675. *vp = v
  24676. }
  24677. }
  24678. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, checkNil bool, canChange bool,
  24679. d *Decoder) (_ map[bool]interface{}, changed bool) {
  24680. dd := d.d
  24681. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24682. if checkNil && dd.TryDecodeAsNil() {
  24683. if v != nil {
  24684. changed = true
  24685. }
  24686. return nil, changed
  24687. }
  24688. containerLen := dd.ReadMapStart()
  24689. if canChange && v == nil {
  24690. if containerLen > 0 {
  24691. v = make(map[bool]interface{}, containerLen)
  24692. } else {
  24693. v = make(map[bool]interface{}) // supports indefinite-length, etc
  24694. }
  24695. changed = true
  24696. }
  24697. if containerLen > 0 {
  24698. for j := 0; j < containerLen; j++ {
  24699. mk := dd.DecodeBool()
  24700. mv := v[mk]
  24701. d.decode(&mv)
  24702. if v != nil {
  24703. v[mk] = mv
  24704. }
  24705. }
  24706. } else if containerLen < 0 {
  24707. for j := 0; !dd.CheckBreak(); j++ {
  24708. if j > 0 {
  24709. dd.ReadMapEntrySeparator()
  24710. }
  24711. mk := dd.DecodeBool()
  24712. dd.ReadMapKVSeparator()
  24713. mv := v[mk]
  24714. d.decode(&mv)
  24715. if v != nil {
  24716. v[mk] = mv
  24717. }
  24718. }
  24719. dd.ReadMapEnd()
  24720. }
  24721. return v, changed
  24722. }
  24723. func (f decFnInfo) fastpathDecMapBoolStringR(rv reflect.Value) {
  24724. if rv.CanAddr() {
  24725. vp := rv.Addr().Interface().(*map[bool]string)
  24726. v, changed := fastpathTV.DecMapBoolStringV(*vp, fastpathCheckNilFalse, true, f.d)
  24727. if changed {
  24728. *vp = v
  24729. }
  24730. } else {
  24731. v := rv.Interface().(map[bool]string)
  24732. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, f.d)
  24733. }
  24734. }
  24735. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, checkNil bool, d *Decoder) {
  24736. v, changed := f.DecMapBoolStringV(*vp, checkNil, true, d)
  24737. if changed {
  24738. *vp = v
  24739. }
  24740. }
  24741. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, checkNil bool, canChange bool,
  24742. d *Decoder) (_ map[bool]string, changed bool) {
  24743. dd := d.d
  24744. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24745. if checkNil && dd.TryDecodeAsNil() {
  24746. if v != nil {
  24747. changed = true
  24748. }
  24749. return nil, changed
  24750. }
  24751. containerLen := dd.ReadMapStart()
  24752. if canChange && v == nil {
  24753. if containerLen > 0 {
  24754. v = make(map[bool]string, containerLen)
  24755. } else {
  24756. v = make(map[bool]string) // supports indefinite-length, etc
  24757. }
  24758. changed = true
  24759. }
  24760. if containerLen > 0 {
  24761. for j := 0; j < containerLen; j++ {
  24762. mk := dd.DecodeBool()
  24763. mv := v[mk]
  24764. mv = dd.DecodeString()
  24765. if v != nil {
  24766. v[mk] = mv
  24767. }
  24768. }
  24769. } else if containerLen < 0 {
  24770. for j := 0; !dd.CheckBreak(); j++ {
  24771. if j > 0 {
  24772. dd.ReadMapEntrySeparator()
  24773. }
  24774. mk := dd.DecodeBool()
  24775. dd.ReadMapKVSeparator()
  24776. mv := v[mk]
  24777. mv = dd.DecodeString()
  24778. if v != nil {
  24779. v[mk] = mv
  24780. }
  24781. }
  24782. dd.ReadMapEnd()
  24783. }
  24784. return v, changed
  24785. }
  24786. func (f decFnInfo) fastpathDecMapBoolUintR(rv reflect.Value) {
  24787. if rv.CanAddr() {
  24788. vp := rv.Addr().Interface().(*map[bool]uint)
  24789. v, changed := fastpathTV.DecMapBoolUintV(*vp, fastpathCheckNilFalse, true, f.d)
  24790. if changed {
  24791. *vp = v
  24792. }
  24793. } else {
  24794. v := rv.Interface().(map[bool]uint)
  24795. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, f.d)
  24796. }
  24797. }
  24798. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, checkNil bool, d *Decoder) {
  24799. v, changed := f.DecMapBoolUintV(*vp, checkNil, true, d)
  24800. if changed {
  24801. *vp = v
  24802. }
  24803. }
  24804. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, checkNil bool, canChange bool,
  24805. d *Decoder) (_ map[bool]uint, changed bool) {
  24806. dd := d.d
  24807. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24808. if checkNil && dd.TryDecodeAsNil() {
  24809. if v != nil {
  24810. changed = true
  24811. }
  24812. return nil, changed
  24813. }
  24814. containerLen := dd.ReadMapStart()
  24815. if canChange && v == nil {
  24816. if containerLen > 0 {
  24817. v = make(map[bool]uint, containerLen)
  24818. } else {
  24819. v = make(map[bool]uint) // supports indefinite-length, etc
  24820. }
  24821. changed = true
  24822. }
  24823. if containerLen > 0 {
  24824. for j := 0; j < containerLen; j++ {
  24825. mk := dd.DecodeBool()
  24826. mv := v[mk]
  24827. mv = uint(dd.DecodeUint(uintBitsize))
  24828. if v != nil {
  24829. v[mk] = mv
  24830. }
  24831. }
  24832. } else if containerLen < 0 {
  24833. for j := 0; !dd.CheckBreak(); j++ {
  24834. if j > 0 {
  24835. dd.ReadMapEntrySeparator()
  24836. }
  24837. mk := dd.DecodeBool()
  24838. dd.ReadMapKVSeparator()
  24839. mv := v[mk]
  24840. mv = uint(dd.DecodeUint(uintBitsize))
  24841. if v != nil {
  24842. v[mk] = mv
  24843. }
  24844. }
  24845. dd.ReadMapEnd()
  24846. }
  24847. return v, changed
  24848. }
  24849. func (f decFnInfo) fastpathDecMapBoolUint8R(rv reflect.Value) {
  24850. if rv.CanAddr() {
  24851. vp := rv.Addr().Interface().(*map[bool]uint8)
  24852. v, changed := fastpathTV.DecMapBoolUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  24853. if changed {
  24854. *vp = v
  24855. }
  24856. } else {
  24857. v := rv.Interface().(map[bool]uint8)
  24858. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, f.d)
  24859. }
  24860. }
  24861. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, checkNil bool, d *Decoder) {
  24862. v, changed := f.DecMapBoolUint8V(*vp, checkNil, true, d)
  24863. if changed {
  24864. *vp = v
  24865. }
  24866. }
  24867. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, checkNil bool, canChange bool,
  24868. d *Decoder) (_ map[bool]uint8, changed bool) {
  24869. dd := d.d
  24870. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24871. if checkNil && dd.TryDecodeAsNil() {
  24872. if v != nil {
  24873. changed = true
  24874. }
  24875. return nil, changed
  24876. }
  24877. containerLen := dd.ReadMapStart()
  24878. if canChange && v == nil {
  24879. if containerLen > 0 {
  24880. v = make(map[bool]uint8, containerLen)
  24881. } else {
  24882. v = make(map[bool]uint8) // supports indefinite-length, etc
  24883. }
  24884. changed = true
  24885. }
  24886. if containerLen > 0 {
  24887. for j := 0; j < containerLen; j++ {
  24888. mk := dd.DecodeBool()
  24889. mv := v[mk]
  24890. mv = uint8(dd.DecodeUint(8))
  24891. if v != nil {
  24892. v[mk] = mv
  24893. }
  24894. }
  24895. } else if containerLen < 0 {
  24896. for j := 0; !dd.CheckBreak(); j++ {
  24897. if j > 0 {
  24898. dd.ReadMapEntrySeparator()
  24899. }
  24900. mk := dd.DecodeBool()
  24901. dd.ReadMapKVSeparator()
  24902. mv := v[mk]
  24903. mv = uint8(dd.DecodeUint(8))
  24904. if v != nil {
  24905. v[mk] = mv
  24906. }
  24907. }
  24908. dd.ReadMapEnd()
  24909. }
  24910. return v, changed
  24911. }
  24912. func (f decFnInfo) fastpathDecMapBoolUint16R(rv reflect.Value) {
  24913. if rv.CanAddr() {
  24914. vp := rv.Addr().Interface().(*map[bool]uint16)
  24915. v, changed := fastpathTV.DecMapBoolUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  24916. if changed {
  24917. *vp = v
  24918. }
  24919. } else {
  24920. v := rv.Interface().(map[bool]uint16)
  24921. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, f.d)
  24922. }
  24923. }
  24924. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, checkNil bool, d *Decoder) {
  24925. v, changed := f.DecMapBoolUint16V(*vp, checkNil, true, d)
  24926. if changed {
  24927. *vp = v
  24928. }
  24929. }
  24930. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, checkNil bool, canChange bool,
  24931. d *Decoder) (_ map[bool]uint16, changed bool) {
  24932. dd := d.d
  24933. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24934. if checkNil && dd.TryDecodeAsNil() {
  24935. if v != nil {
  24936. changed = true
  24937. }
  24938. return nil, changed
  24939. }
  24940. containerLen := dd.ReadMapStart()
  24941. if canChange && v == nil {
  24942. if containerLen > 0 {
  24943. v = make(map[bool]uint16, containerLen)
  24944. } else {
  24945. v = make(map[bool]uint16) // supports indefinite-length, etc
  24946. }
  24947. changed = true
  24948. }
  24949. if containerLen > 0 {
  24950. for j := 0; j < containerLen; j++ {
  24951. mk := dd.DecodeBool()
  24952. mv := v[mk]
  24953. mv = uint16(dd.DecodeUint(16))
  24954. if v != nil {
  24955. v[mk] = mv
  24956. }
  24957. }
  24958. } else if containerLen < 0 {
  24959. for j := 0; !dd.CheckBreak(); j++ {
  24960. if j > 0 {
  24961. dd.ReadMapEntrySeparator()
  24962. }
  24963. mk := dd.DecodeBool()
  24964. dd.ReadMapKVSeparator()
  24965. mv := v[mk]
  24966. mv = uint16(dd.DecodeUint(16))
  24967. if v != nil {
  24968. v[mk] = mv
  24969. }
  24970. }
  24971. dd.ReadMapEnd()
  24972. }
  24973. return v, changed
  24974. }
  24975. func (f decFnInfo) fastpathDecMapBoolUint32R(rv reflect.Value) {
  24976. if rv.CanAddr() {
  24977. vp := rv.Addr().Interface().(*map[bool]uint32)
  24978. v, changed := fastpathTV.DecMapBoolUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  24979. if changed {
  24980. *vp = v
  24981. }
  24982. } else {
  24983. v := rv.Interface().(map[bool]uint32)
  24984. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, f.d)
  24985. }
  24986. }
  24987. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, checkNil bool, d *Decoder) {
  24988. v, changed := f.DecMapBoolUint32V(*vp, checkNil, true, d)
  24989. if changed {
  24990. *vp = v
  24991. }
  24992. }
  24993. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, checkNil bool, canChange bool,
  24994. d *Decoder) (_ map[bool]uint32, changed bool) {
  24995. dd := d.d
  24996. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24997. if checkNil && dd.TryDecodeAsNil() {
  24998. if v != nil {
  24999. changed = true
  25000. }
  25001. return nil, changed
  25002. }
  25003. containerLen := dd.ReadMapStart()
  25004. if canChange && v == nil {
  25005. if containerLen > 0 {
  25006. v = make(map[bool]uint32, containerLen)
  25007. } else {
  25008. v = make(map[bool]uint32) // supports indefinite-length, etc
  25009. }
  25010. changed = true
  25011. }
  25012. if containerLen > 0 {
  25013. for j := 0; j < containerLen; j++ {
  25014. mk := dd.DecodeBool()
  25015. mv := v[mk]
  25016. mv = uint32(dd.DecodeUint(32))
  25017. if v != nil {
  25018. v[mk] = mv
  25019. }
  25020. }
  25021. } else if containerLen < 0 {
  25022. for j := 0; !dd.CheckBreak(); j++ {
  25023. if j > 0 {
  25024. dd.ReadMapEntrySeparator()
  25025. }
  25026. mk := dd.DecodeBool()
  25027. dd.ReadMapKVSeparator()
  25028. mv := v[mk]
  25029. mv = uint32(dd.DecodeUint(32))
  25030. if v != nil {
  25031. v[mk] = mv
  25032. }
  25033. }
  25034. dd.ReadMapEnd()
  25035. }
  25036. return v, changed
  25037. }
  25038. func (f decFnInfo) fastpathDecMapBoolUint64R(rv reflect.Value) {
  25039. if rv.CanAddr() {
  25040. vp := rv.Addr().Interface().(*map[bool]uint64)
  25041. v, changed := fastpathTV.DecMapBoolUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  25042. if changed {
  25043. *vp = v
  25044. }
  25045. } else {
  25046. v := rv.Interface().(map[bool]uint64)
  25047. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, f.d)
  25048. }
  25049. }
  25050. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, checkNil bool, d *Decoder) {
  25051. v, changed := f.DecMapBoolUint64V(*vp, checkNil, true, d)
  25052. if changed {
  25053. *vp = v
  25054. }
  25055. }
  25056. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, checkNil bool, canChange bool,
  25057. d *Decoder) (_ map[bool]uint64, changed bool) {
  25058. dd := d.d
  25059. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25060. if checkNil && dd.TryDecodeAsNil() {
  25061. if v != nil {
  25062. changed = true
  25063. }
  25064. return nil, changed
  25065. }
  25066. containerLen := dd.ReadMapStart()
  25067. if canChange && v == nil {
  25068. if containerLen > 0 {
  25069. v = make(map[bool]uint64, containerLen)
  25070. } else {
  25071. v = make(map[bool]uint64) // supports indefinite-length, etc
  25072. }
  25073. changed = true
  25074. }
  25075. if containerLen > 0 {
  25076. for j := 0; j < containerLen; j++ {
  25077. mk := dd.DecodeBool()
  25078. mv := v[mk]
  25079. mv = dd.DecodeUint(64)
  25080. if v != nil {
  25081. v[mk] = mv
  25082. }
  25083. }
  25084. } else if containerLen < 0 {
  25085. for j := 0; !dd.CheckBreak(); j++ {
  25086. if j > 0 {
  25087. dd.ReadMapEntrySeparator()
  25088. }
  25089. mk := dd.DecodeBool()
  25090. dd.ReadMapKVSeparator()
  25091. mv := v[mk]
  25092. mv = dd.DecodeUint(64)
  25093. if v != nil {
  25094. v[mk] = mv
  25095. }
  25096. }
  25097. dd.ReadMapEnd()
  25098. }
  25099. return v, changed
  25100. }
  25101. func (f decFnInfo) fastpathDecMapBoolIntR(rv reflect.Value) {
  25102. if rv.CanAddr() {
  25103. vp := rv.Addr().Interface().(*map[bool]int)
  25104. v, changed := fastpathTV.DecMapBoolIntV(*vp, fastpathCheckNilFalse, true, f.d)
  25105. if changed {
  25106. *vp = v
  25107. }
  25108. } else {
  25109. v := rv.Interface().(map[bool]int)
  25110. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, f.d)
  25111. }
  25112. }
  25113. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, checkNil bool, d *Decoder) {
  25114. v, changed := f.DecMapBoolIntV(*vp, checkNil, true, d)
  25115. if changed {
  25116. *vp = v
  25117. }
  25118. }
  25119. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, checkNil bool, canChange bool,
  25120. d *Decoder) (_ map[bool]int, changed bool) {
  25121. dd := d.d
  25122. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25123. if checkNil && dd.TryDecodeAsNil() {
  25124. if v != nil {
  25125. changed = true
  25126. }
  25127. return nil, changed
  25128. }
  25129. containerLen := dd.ReadMapStart()
  25130. if canChange && v == nil {
  25131. if containerLen > 0 {
  25132. v = make(map[bool]int, containerLen)
  25133. } else {
  25134. v = make(map[bool]int) // supports indefinite-length, etc
  25135. }
  25136. changed = true
  25137. }
  25138. if containerLen > 0 {
  25139. for j := 0; j < containerLen; j++ {
  25140. mk := dd.DecodeBool()
  25141. mv := v[mk]
  25142. mv = int(dd.DecodeInt(intBitsize))
  25143. if v != nil {
  25144. v[mk] = mv
  25145. }
  25146. }
  25147. } else if containerLen < 0 {
  25148. for j := 0; !dd.CheckBreak(); j++ {
  25149. if j > 0 {
  25150. dd.ReadMapEntrySeparator()
  25151. }
  25152. mk := dd.DecodeBool()
  25153. dd.ReadMapKVSeparator()
  25154. mv := v[mk]
  25155. mv = int(dd.DecodeInt(intBitsize))
  25156. if v != nil {
  25157. v[mk] = mv
  25158. }
  25159. }
  25160. dd.ReadMapEnd()
  25161. }
  25162. return v, changed
  25163. }
  25164. func (f decFnInfo) fastpathDecMapBoolInt8R(rv reflect.Value) {
  25165. if rv.CanAddr() {
  25166. vp := rv.Addr().Interface().(*map[bool]int8)
  25167. v, changed := fastpathTV.DecMapBoolInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  25168. if changed {
  25169. *vp = v
  25170. }
  25171. } else {
  25172. v := rv.Interface().(map[bool]int8)
  25173. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, f.d)
  25174. }
  25175. }
  25176. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, checkNil bool, d *Decoder) {
  25177. v, changed := f.DecMapBoolInt8V(*vp, checkNil, true, d)
  25178. if changed {
  25179. *vp = v
  25180. }
  25181. }
  25182. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, checkNil bool, canChange bool,
  25183. d *Decoder) (_ map[bool]int8, changed bool) {
  25184. dd := d.d
  25185. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25186. if checkNil && dd.TryDecodeAsNil() {
  25187. if v != nil {
  25188. changed = true
  25189. }
  25190. return nil, changed
  25191. }
  25192. containerLen := dd.ReadMapStart()
  25193. if canChange && v == nil {
  25194. if containerLen > 0 {
  25195. v = make(map[bool]int8, containerLen)
  25196. } else {
  25197. v = make(map[bool]int8) // supports indefinite-length, etc
  25198. }
  25199. changed = true
  25200. }
  25201. if containerLen > 0 {
  25202. for j := 0; j < containerLen; j++ {
  25203. mk := dd.DecodeBool()
  25204. mv := v[mk]
  25205. mv = int8(dd.DecodeInt(8))
  25206. if v != nil {
  25207. v[mk] = mv
  25208. }
  25209. }
  25210. } else if containerLen < 0 {
  25211. for j := 0; !dd.CheckBreak(); j++ {
  25212. if j > 0 {
  25213. dd.ReadMapEntrySeparator()
  25214. }
  25215. mk := dd.DecodeBool()
  25216. dd.ReadMapKVSeparator()
  25217. mv := v[mk]
  25218. mv = int8(dd.DecodeInt(8))
  25219. if v != nil {
  25220. v[mk] = mv
  25221. }
  25222. }
  25223. dd.ReadMapEnd()
  25224. }
  25225. return v, changed
  25226. }
  25227. func (f decFnInfo) fastpathDecMapBoolInt16R(rv reflect.Value) {
  25228. if rv.CanAddr() {
  25229. vp := rv.Addr().Interface().(*map[bool]int16)
  25230. v, changed := fastpathTV.DecMapBoolInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  25231. if changed {
  25232. *vp = v
  25233. }
  25234. } else {
  25235. v := rv.Interface().(map[bool]int16)
  25236. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, f.d)
  25237. }
  25238. }
  25239. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, checkNil bool, d *Decoder) {
  25240. v, changed := f.DecMapBoolInt16V(*vp, checkNil, true, d)
  25241. if changed {
  25242. *vp = v
  25243. }
  25244. }
  25245. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, checkNil bool, canChange bool,
  25246. d *Decoder) (_ map[bool]int16, changed bool) {
  25247. dd := d.d
  25248. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25249. if checkNil && dd.TryDecodeAsNil() {
  25250. if v != nil {
  25251. changed = true
  25252. }
  25253. return nil, changed
  25254. }
  25255. containerLen := dd.ReadMapStart()
  25256. if canChange && v == nil {
  25257. if containerLen > 0 {
  25258. v = make(map[bool]int16, containerLen)
  25259. } else {
  25260. v = make(map[bool]int16) // supports indefinite-length, etc
  25261. }
  25262. changed = true
  25263. }
  25264. if containerLen > 0 {
  25265. for j := 0; j < containerLen; j++ {
  25266. mk := dd.DecodeBool()
  25267. mv := v[mk]
  25268. mv = int16(dd.DecodeInt(16))
  25269. if v != nil {
  25270. v[mk] = mv
  25271. }
  25272. }
  25273. } else if containerLen < 0 {
  25274. for j := 0; !dd.CheckBreak(); j++ {
  25275. if j > 0 {
  25276. dd.ReadMapEntrySeparator()
  25277. }
  25278. mk := dd.DecodeBool()
  25279. dd.ReadMapKVSeparator()
  25280. mv := v[mk]
  25281. mv = int16(dd.DecodeInt(16))
  25282. if v != nil {
  25283. v[mk] = mv
  25284. }
  25285. }
  25286. dd.ReadMapEnd()
  25287. }
  25288. return v, changed
  25289. }
  25290. func (f decFnInfo) fastpathDecMapBoolInt32R(rv reflect.Value) {
  25291. if rv.CanAddr() {
  25292. vp := rv.Addr().Interface().(*map[bool]int32)
  25293. v, changed := fastpathTV.DecMapBoolInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  25294. if changed {
  25295. *vp = v
  25296. }
  25297. } else {
  25298. v := rv.Interface().(map[bool]int32)
  25299. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, f.d)
  25300. }
  25301. }
  25302. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, checkNil bool, d *Decoder) {
  25303. v, changed := f.DecMapBoolInt32V(*vp, checkNil, true, d)
  25304. if changed {
  25305. *vp = v
  25306. }
  25307. }
  25308. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, checkNil bool, canChange bool,
  25309. d *Decoder) (_ map[bool]int32, changed bool) {
  25310. dd := d.d
  25311. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25312. if checkNil && dd.TryDecodeAsNil() {
  25313. if v != nil {
  25314. changed = true
  25315. }
  25316. return nil, changed
  25317. }
  25318. containerLen := dd.ReadMapStart()
  25319. if canChange && v == nil {
  25320. if containerLen > 0 {
  25321. v = make(map[bool]int32, containerLen)
  25322. } else {
  25323. v = make(map[bool]int32) // supports indefinite-length, etc
  25324. }
  25325. changed = true
  25326. }
  25327. if containerLen > 0 {
  25328. for j := 0; j < containerLen; j++ {
  25329. mk := dd.DecodeBool()
  25330. mv := v[mk]
  25331. mv = int32(dd.DecodeInt(32))
  25332. if v != nil {
  25333. v[mk] = mv
  25334. }
  25335. }
  25336. } else if containerLen < 0 {
  25337. for j := 0; !dd.CheckBreak(); j++ {
  25338. if j > 0 {
  25339. dd.ReadMapEntrySeparator()
  25340. }
  25341. mk := dd.DecodeBool()
  25342. dd.ReadMapKVSeparator()
  25343. mv := v[mk]
  25344. mv = int32(dd.DecodeInt(32))
  25345. if v != nil {
  25346. v[mk] = mv
  25347. }
  25348. }
  25349. dd.ReadMapEnd()
  25350. }
  25351. return v, changed
  25352. }
  25353. func (f decFnInfo) fastpathDecMapBoolInt64R(rv reflect.Value) {
  25354. if rv.CanAddr() {
  25355. vp := rv.Addr().Interface().(*map[bool]int64)
  25356. v, changed := fastpathTV.DecMapBoolInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  25357. if changed {
  25358. *vp = v
  25359. }
  25360. } else {
  25361. v := rv.Interface().(map[bool]int64)
  25362. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, f.d)
  25363. }
  25364. }
  25365. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, checkNil bool, d *Decoder) {
  25366. v, changed := f.DecMapBoolInt64V(*vp, checkNil, true, d)
  25367. if changed {
  25368. *vp = v
  25369. }
  25370. }
  25371. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, checkNil bool, canChange bool,
  25372. d *Decoder) (_ map[bool]int64, changed bool) {
  25373. dd := d.d
  25374. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25375. if checkNil && dd.TryDecodeAsNil() {
  25376. if v != nil {
  25377. changed = true
  25378. }
  25379. return nil, changed
  25380. }
  25381. containerLen := dd.ReadMapStart()
  25382. if canChange && v == nil {
  25383. if containerLen > 0 {
  25384. v = make(map[bool]int64, containerLen)
  25385. } else {
  25386. v = make(map[bool]int64) // supports indefinite-length, etc
  25387. }
  25388. changed = true
  25389. }
  25390. if containerLen > 0 {
  25391. for j := 0; j < containerLen; j++ {
  25392. mk := dd.DecodeBool()
  25393. mv := v[mk]
  25394. mv = dd.DecodeInt(64)
  25395. if v != nil {
  25396. v[mk] = mv
  25397. }
  25398. }
  25399. } else if containerLen < 0 {
  25400. for j := 0; !dd.CheckBreak(); j++ {
  25401. if j > 0 {
  25402. dd.ReadMapEntrySeparator()
  25403. }
  25404. mk := dd.DecodeBool()
  25405. dd.ReadMapKVSeparator()
  25406. mv := v[mk]
  25407. mv = dd.DecodeInt(64)
  25408. if v != nil {
  25409. v[mk] = mv
  25410. }
  25411. }
  25412. dd.ReadMapEnd()
  25413. }
  25414. return v, changed
  25415. }
  25416. func (f decFnInfo) fastpathDecMapBoolFloat32R(rv reflect.Value) {
  25417. if rv.CanAddr() {
  25418. vp := rv.Addr().Interface().(*map[bool]float32)
  25419. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  25420. if changed {
  25421. *vp = v
  25422. }
  25423. } else {
  25424. v := rv.Interface().(map[bool]float32)
  25425. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, f.d)
  25426. }
  25427. }
  25428. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, checkNil bool, d *Decoder) {
  25429. v, changed := f.DecMapBoolFloat32V(*vp, checkNil, true, d)
  25430. if changed {
  25431. *vp = v
  25432. }
  25433. }
  25434. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, checkNil bool, canChange bool,
  25435. d *Decoder) (_ map[bool]float32, changed bool) {
  25436. dd := d.d
  25437. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25438. if checkNil && dd.TryDecodeAsNil() {
  25439. if v != nil {
  25440. changed = true
  25441. }
  25442. return nil, changed
  25443. }
  25444. containerLen := dd.ReadMapStart()
  25445. if canChange && v == nil {
  25446. if containerLen > 0 {
  25447. v = make(map[bool]float32, containerLen)
  25448. } else {
  25449. v = make(map[bool]float32) // supports indefinite-length, etc
  25450. }
  25451. changed = true
  25452. }
  25453. if containerLen > 0 {
  25454. for j := 0; j < containerLen; j++ {
  25455. mk := dd.DecodeBool()
  25456. mv := v[mk]
  25457. mv = float32(dd.DecodeFloat(true))
  25458. if v != nil {
  25459. v[mk] = mv
  25460. }
  25461. }
  25462. } else if containerLen < 0 {
  25463. for j := 0; !dd.CheckBreak(); j++ {
  25464. if j > 0 {
  25465. dd.ReadMapEntrySeparator()
  25466. }
  25467. mk := dd.DecodeBool()
  25468. dd.ReadMapKVSeparator()
  25469. mv := v[mk]
  25470. mv = float32(dd.DecodeFloat(true))
  25471. if v != nil {
  25472. v[mk] = mv
  25473. }
  25474. }
  25475. dd.ReadMapEnd()
  25476. }
  25477. return v, changed
  25478. }
  25479. func (f decFnInfo) fastpathDecMapBoolFloat64R(rv reflect.Value) {
  25480. if rv.CanAddr() {
  25481. vp := rv.Addr().Interface().(*map[bool]float64)
  25482. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  25483. if changed {
  25484. *vp = v
  25485. }
  25486. } else {
  25487. v := rv.Interface().(map[bool]float64)
  25488. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, f.d)
  25489. }
  25490. }
  25491. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, checkNil bool, d *Decoder) {
  25492. v, changed := f.DecMapBoolFloat64V(*vp, checkNil, true, d)
  25493. if changed {
  25494. *vp = v
  25495. }
  25496. }
  25497. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, checkNil bool, canChange bool,
  25498. d *Decoder) (_ map[bool]float64, changed bool) {
  25499. dd := d.d
  25500. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25501. if checkNil && dd.TryDecodeAsNil() {
  25502. if v != nil {
  25503. changed = true
  25504. }
  25505. return nil, changed
  25506. }
  25507. containerLen := dd.ReadMapStart()
  25508. if canChange && v == nil {
  25509. if containerLen > 0 {
  25510. v = make(map[bool]float64, containerLen)
  25511. } else {
  25512. v = make(map[bool]float64) // supports indefinite-length, etc
  25513. }
  25514. changed = true
  25515. }
  25516. if containerLen > 0 {
  25517. for j := 0; j < containerLen; j++ {
  25518. mk := dd.DecodeBool()
  25519. mv := v[mk]
  25520. mv = dd.DecodeFloat(false)
  25521. if v != nil {
  25522. v[mk] = mv
  25523. }
  25524. }
  25525. } else if containerLen < 0 {
  25526. for j := 0; !dd.CheckBreak(); j++ {
  25527. if j > 0 {
  25528. dd.ReadMapEntrySeparator()
  25529. }
  25530. mk := dd.DecodeBool()
  25531. dd.ReadMapKVSeparator()
  25532. mv := v[mk]
  25533. mv = dd.DecodeFloat(false)
  25534. if v != nil {
  25535. v[mk] = mv
  25536. }
  25537. }
  25538. dd.ReadMapEnd()
  25539. }
  25540. return v, changed
  25541. }
  25542. func (f decFnInfo) fastpathDecMapBoolBoolR(rv reflect.Value) {
  25543. if rv.CanAddr() {
  25544. vp := rv.Addr().Interface().(*map[bool]bool)
  25545. v, changed := fastpathTV.DecMapBoolBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  25546. if changed {
  25547. *vp = v
  25548. }
  25549. } else {
  25550. v := rv.Interface().(map[bool]bool)
  25551. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, f.d)
  25552. }
  25553. }
  25554. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, checkNil bool, d *Decoder) {
  25555. v, changed := f.DecMapBoolBoolV(*vp, checkNil, true, d)
  25556. if changed {
  25557. *vp = v
  25558. }
  25559. }
  25560. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, checkNil bool, canChange bool,
  25561. d *Decoder) (_ map[bool]bool, changed bool) {
  25562. dd := d.d
  25563. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25564. if checkNil && dd.TryDecodeAsNil() {
  25565. if v != nil {
  25566. changed = true
  25567. }
  25568. return nil, changed
  25569. }
  25570. containerLen := dd.ReadMapStart()
  25571. if canChange && v == nil {
  25572. if containerLen > 0 {
  25573. v = make(map[bool]bool, containerLen)
  25574. } else {
  25575. v = make(map[bool]bool) // supports indefinite-length, etc
  25576. }
  25577. changed = true
  25578. }
  25579. if containerLen > 0 {
  25580. for j := 0; j < containerLen; j++ {
  25581. mk := dd.DecodeBool()
  25582. mv := v[mk]
  25583. mv = dd.DecodeBool()
  25584. if v != nil {
  25585. v[mk] = mv
  25586. }
  25587. }
  25588. } else if containerLen < 0 {
  25589. for j := 0; !dd.CheckBreak(); j++ {
  25590. if j > 0 {
  25591. dd.ReadMapEntrySeparator()
  25592. }
  25593. mk := dd.DecodeBool()
  25594. dd.ReadMapKVSeparator()
  25595. mv := v[mk]
  25596. mv = dd.DecodeBool()
  25597. if v != nil {
  25598. v[mk] = mv
  25599. }
  25600. }
  25601. dd.ReadMapEnd()
  25602. }
  25603. return v, changed
  25604. }