fast-path.generated.go 926 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900
  1. // +build !notfastpath
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // ************************************************************
  5. // DO NOT EDIT.
  6. // THIS FILE IS AUTO-GENERATED from fast-path.go.tmpl
  7. // ************************************************************
  8. package codec
  9. // Fast path functions try to create a fast path encode or decode implementation
  10. // for common maps and slices.
  11. //
  12. // We define the functions and register then in this single file
  13. // so as not to pollute the encode.go and decode.go, and create a dependency in there.
  14. // This file can be omitted without causing a build failure.
  15. //
  16. // The advantage of fast paths is:
  17. // - Many calls bypass reflection altogether
  18. //
  19. // Currently support
  20. // - slice of all builtin types,
  21. // - map of all builtin types to string or interface value
  22. // - 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 [271]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, 271 // 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 < 271 && 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([]uintptr(nil), (*encFnInfo).fastpathEncSliceUintptrR, (*decFnInfo).fastpathDecSliceUintptrR)
  89. fn([]int(nil), (*encFnInfo).fastpathEncSliceIntR, (*decFnInfo).fastpathDecSliceIntR)
  90. fn([]int8(nil), (*encFnInfo).fastpathEncSliceInt8R, (*decFnInfo).fastpathDecSliceInt8R)
  91. fn([]int16(nil), (*encFnInfo).fastpathEncSliceInt16R, (*decFnInfo).fastpathDecSliceInt16R)
  92. fn([]int32(nil), (*encFnInfo).fastpathEncSliceInt32R, (*decFnInfo).fastpathDecSliceInt32R)
  93. fn([]int64(nil), (*encFnInfo).fastpathEncSliceInt64R, (*decFnInfo).fastpathDecSliceInt64R)
  94. fn([]bool(nil), (*encFnInfo).fastpathEncSliceBoolR, (*decFnInfo).fastpathDecSliceBoolR)
  95. fn(map[interface{}]interface{}(nil), (*encFnInfo).fastpathEncMapIntfIntfR, (*decFnInfo).fastpathDecMapIntfIntfR)
  96. fn(map[interface{}]string(nil), (*encFnInfo).fastpathEncMapIntfStringR, (*decFnInfo).fastpathDecMapIntfStringR)
  97. fn(map[interface{}]uint(nil), (*encFnInfo).fastpathEncMapIntfUintR, (*decFnInfo).fastpathDecMapIntfUintR)
  98. fn(map[interface{}]uint8(nil), (*encFnInfo).fastpathEncMapIntfUint8R, (*decFnInfo).fastpathDecMapIntfUint8R)
  99. fn(map[interface{}]uint16(nil), (*encFnInfo).fastpathEncMapIntfUint16R, (*decFnInfo).fastpathDecMapIntfUint16R)
  100. fn(map[interface{}]uint32(nil), (*encFnInfo).fastpathEncMapIntfUint32R, (*decFnInfo).fastpathDecMapIntfUint32R)
  101. fn(map[interface{}]uint64(nil), (*encFnInfo).fastpathEncMapIntfUint64R, (*decFnInfo).fastpathDecMapIntfUint64R)
  102. fn(map[interface{}]uintptr(nil), (*encFnInfo).fastpathEncMapIntfUintptrR, (*decFnInfo).fastpathDecMapIntfUintptrR)
  103. fn(map[interface{}]int(nil), (*encFnInfo).fastpathEncMapIntfIntR, (*decFnInfo).fastpathDecMapIntfIntR)
  104. fn(map[interface{}]int8(nil), (*encFnInfo).fastpathEncMapIntfInt8R, (*decFnInfo).fastpathDecMapIntfInt8R)
  105. fn(map[interface{}]int16(nil), (*encFnInfo).fastpathEncMapIntfInt16R, (*decFnInfo).fastpathDecMapIntfInt16R)
  106. fn(map[interface{}]int32(nil), (*encFnInfo).fastpathEncMapIntfInt32R, (*decFnInfo).fastpathDecMapIntfInt32R)
  107. fn(map[interface{}]int64(nil), (*encFnInfo).fastpathEncMapIntfInt64R, (*decFnInfo).fastpathDecMapIntfInt64R)
  108. fn(map[interface{}]float32(nil), (*encFnInfo).fastpathEncMapIntfFloat32R, (*decFnInfo).fastpathDecMapIntfFloat32R)
  109. fn(map[interface{}]float64(nil), (*encFnInfo).fastpathEncMapIntfFloat64R, (*decFnInfo).fastpathDecMapIntfFloat64R)
  110. fn(map[interface{}]bool(nil), (*encFnInfo).fastpathEncMapIntfBoolR, (*decFnInfo).fastpathDecMapIntfBoolR)
  111. fn(map[string]interface{}(nil), (*encFnInfo).fastpathEncMapStringIntfR, (*decFnInfo).fastpathDecMapStringIntfR)
  112. fn(map[string]string(nil), (*encFnInfo).fastpathEncMapStringStringR, (*decFnInfo).fastpathDecMapStringStringR)
  113. fn(map[string]uint(nil), (*encFnInfo).fastpathEncMapStringUintR, (*decFnInfo).fastpathDecMapStringUintR)
  114. fn(map[string]uint8(nil), (*encFnInfo).fastpathEncMapStringUint8R, (*decFnInfo).fastpathDecMapStringUint8R)
  115. fn(map[string]uint16(nil), (*encFnInfo).fastpathEncMapStringUint16R, (*decFnInfo).fastpathDecMapStringUint16R)
  116. fn(map[string]uint32(nil), (*encFnInfo).fastpathEncMapStringUint32R, (*decFnInfo).fastpathDecMapStringUint32R)
  117. fn(map[string]uint64(nil), (*encFnInfo).fastpathEncMapStringUint64R, (*decFnInfo).fastpathDecMapStringUint64R)
  118. fn(map[string]uintptr(nil), (*encFnInfo).fastpathEncMapStringUintptrR, (*decFnInfo).fastpathDecMapStringUintptrR)
  119. fn(map[string]int(nil), (*encFnInfo).fastpathEncMapStringIntR, (*decFnInfo).fastpathDecMapStringIntR)
  120. fn(map[string]int8(nil), (*encFnInfo).fastpathEncMapStringInt8R, (*decFnInfo).fastpathDecMapStringInt8R)
  121. fn(map[string]int16(nil), (*encFnInfo).fastpathEncMapStringInt16R, (*decFnInfo).fastpathDecMapStringInt16R)
  122. fn(map[string]int32(nil), (*encFnInfo).fastpathEncMapStringInt32R, (*decFnInfo).fastpathDecMapStringInt32R)
  123. fn(map[string]int64(nil), (*encFnInfo).fastpathEncMapStringInt64R, (*decFnInfo).fastpathDecMapStringInt64R)
  124. fn(map[string]float32(nil), (*encFnInfo).fastpathEncMapStringFloat32R, (*decFnInfo).fastpathDecMapStringFloat32R)
  125. fn(map[string]float64(nil), (*encFnInfo).fastpathEncMapStringFloat64R, (*decFnInfo).fastpathDecMapStringFloat64R)
  126. fn(map[string]bool(nil), (*encFnInfo).fastpathEncMapStringBoolR, (*decFnInfo).fastpathDecMapStringBoolR)
  127. fn(map[float32]interface{}(nil), (*encFnInfo).fastpathEncMapFloat32IntfR, (*decFnInfo).fastpathDecMapFloat32IntfR)
  128. fn(map[float32]string(nil), (*encFnInfo).fastpathEncMapFloat32StringR, (*decFnInfo).fastpathDecMapFloat32StringR)
  129. fn(map[float32]uint(nil), (*encFnInfo).fastpathEncMapFloat32UintR, (*decFnInfo).fastpathDecMapFloat32UintR)
  130. fn(map[float32]uint8(nil), (*encFnInfo).fastpathEncMapFloat32Uint8R, (*decFnInfo).fastpathDecMapFloat32Uint8R)
  131. fn(map[float32]uint16(nil), (*encFnInfo).fastpathEncMapFloat32Uint16R, (*decFnInfo).fastpathDecMapFloat32Uint16R)
  132. fn(map[float32]uint32(nil), (*encFnInfo).fastpathEncMapFloat32Uint32R, (*decFnInfo).fastpathDecMapFloat32Uint32R)
  133. fn(map[float32]uint64(nil), (*encFnInfo).fastpathEncMapFloat32Uint64R, (*decFnInfo).fastpathDecMapFloat32Uint64R)
  134. fn(map[float32]uintptr(nil), (*encFnInfo).fastpathEncMapFloat32UintptrR, (*decFnInfo).fastpathDecMapFloat32UintptrR)
  135. fn(map[float32]int(nil), (*encFnInfo).fastpathEncMapFloat32IntR, (*decFnInfo).fastpathDecMapFloat32IntR)
  136. fn(map[float32]int8(nil), (*encFnInfo).fastpathEncMapFloat32Int8R, (*decFnInfo).fastpathDecMapFloat32Int8R)
  137. fn(map[float32]int16(nil), (*encFnInfo).fastpathEncMapFloat32Int16R, (*decFnInfo).fastpathDecMapFloat32Int16R)
  138. fn(map[float32]int32(nil), (*encFnInfo).fastpathEncMapFloat32Int32R, (*decFnInfo).fastpathDecMapFloat32Int32R)
  139. fn(map[float32]int64(nil), (*encFnInfo).fastpathEncMapFloat32Int64R, (*decFnInfo).fastpathDecMapFloat32Int64R)
  140. fn(map[float32]float32(nil), (*encFnInfo).fastpathEncMapFloat32Float32R, (*decFnInfo).fastpathDecMapFloat32Float32R)
  141. fn(map[float32]float64(nil), (*encFnInfo).fastpathEncMapFloat32Float64R, (*decFnInfo).fastpathDecMapFloat32Float64R)
  142. fn(map[float32]bool(nil), (*encFnInfo).fastpathEncMapFloat32BoolR, (*decFnInfo).fastpathDecMapFloat32BoolR)
  143. fn(map[float64]interface{}(nil), (*encFnInfo).fastpathEncMapFloat64IntfR, (*decFnInfo).fastpathDecMapFloat64IntfR)
  144. fn(map[float64]string(nil), (*encFnInfo).fastpathEncMapFloat64StringR, (*decFnInfo).fastpathDecMapFloat64StringR)
  145. fn(map[float64]uint(nil), (*encFnInfo).fastpathEncMapFloat64UintR, (*decFnInfo).fastpathDecMapFloat64UintR)
  146. fn(map[float64]uint8(nil), (*encFnInfo).fastpathEncMapFloat64Uint8R, (*decFnInfo).fastpathDecMapFloat64Uint8R)
  147. fn(map[float64]uint16(nil), (*encFnInfo).fastpathEncMapFloat64Uint16R, (*decFnInfo).fastpathDecMapFloat64Uint16R)
  148. fn(map[float64]uint32(nil), (*encFnInfo).fastpathEncMapFloat64Uint32R, (*decFnInfo).fastpathDecMapFloat64Uint32R)
  149. fn(map[float64]uint64(nil), (*encFnInfo).fastpathEncMapFloat64Uint64R, (*decFnInfo).fastpathDecMapFloat64Uint64R)
  150. fn(map[float64]uintptr(nil), (*encFnInfo).fastpathEncMapFloat64UintptrR, (*decFnInfo).fastpathDecMapFloat64UintptrR)
  151. fn(map[float64]int(nil), (*encFnInfo).fastpathEncMapFloat64IntR, (*decFnInfo).fastpathDecMapFloat64IntR)
  152. fn(map[float64]int8(nil), (*encFnInfo).fastpathEncMapFloat64Int8R, (*decFnInfo).fastpathDecMapFloat64Int8R)
  153. fn(map[float64]int16(nil), (*encFnInfo).fastpathEncMapFloat64Int16R, (*decFnInfo).fastpathDecMapFloat64Int16R)
  154. fn(map[float64]int32(nil), (*encFnInfo).fastpathEncMapFloat64Int32R, (*decFnInfo).fastpathDecMapFloat64Int32R)
  155. fn(map[float64]int64(nil), (*encFnInfo).fastpathEncMapFloat64Int64R, (*decFnInfo).fastpathDecMapFloat64Int64R)
  156. fn(map[float64]float32(nil), (*encFnInfo).fastpathEncMapFloat64Float32R, (*decFnInfo).fastpathDecMapFloat64Float32R)
  157. fn(map[float64]float64(nil), (*encFnInfo).fastpathEncMapFloat64Float64R, (*decFnInfo).fastpathDecMapFloat64Float64R)
  158. fn(map[float64]bool(nil), (*encFnInfo).fastpathEncMapFloat64BoolR, (*decFnInfo).fastpathDecMapFloat64BoolR)
  159. fn(map[uint]interface{}(nil), (*encFnInfo).fastpathEncMapUintIntfR, (*decFnInfo).fastpathDecMapUintIntfR)
  160. fn(map[uint]string(nil), (*encFnInfo).fastpathEncMapUintStringR, (*decFnInfo).fastpathDecMapUintStringR)
  161. fn(map[uint]uint(nil), (*encFnInfo).fastpathEncMapUintUintR, (*decFnInfo).fastpathDecMapUintUintR)
  162. fn(map[uint]uint8(nil), (*encFnInfo).fastpathEncMapUintUint8R, (*decFnInfo).fastpathDecMapUintUint8R)
  163. fn(map[uint]uint16(nil), (*encFnInfo).fastpathEncMapUintUint16R, (*decFnInfo).fastpathDecMapUintUint16R)
  164. fn(map[uint]uint32(nil), (*encFnInfo).fastpathEncMapUintUint32R, (*decFnInfo).fastpathDecMapUintUint32R)
  165. fn(map[uint]uint64(nil), (*encFnInfo).fastpathEncMapUintUint64R, (*decFnInfo).fastpathDecMapUintUint64R)
  166. fn(map[uint]uintptr(nil), (*encFnInfo).fastpathEncMapUintUintptrR, (*decFnInfo).fastpathDecMapUintUintptrR)
  167. fn(map[uint]int(nil), (*encFnInfo).fastpathEncMapUintIntR, (*decFnInfo).fastpathDecMapUintIntR)
  168. fn(map[uint]int8(nil), (*encFnInfo).fastpathEncMapUintInt8R, (*decFnInfo).fastpathDecMapUintInt8R)
  169. fn(map[uint]int16(nil), (*encFnInfo).fastpathEncMapUintInt16R, (*decFnInfo).fastpathDecMapUintInt16R)
  170. fn(map[uint]int32(nil), (*encFnInfo).fastpathEncMapUintInt32R, (*decFnInfo).fastpathDecMapUintInt32R)
  171. fn(map[uint]int64(nil), (*encFnInfo).fastpathEncMapUintInt64R, (*decFnInfo).fastpathDecMapUintInt64R)
  172. fn(map[uint]float32(nil), (*encFnInfo).fastpathEncMapUintFloat32R, (*decFnInfo).fastpathDecMapUintFloat32R)
  173. fn(map[uint]float64(nil), (*encFnInfo).fastpathEncMapUintFloat64R, (*decFnInfo).fastpathDecMapUintFloat64R)
  174. fn(map[uint]bool(nil), (*encFnInfo).fastpathEncMapUintBoolR, (*decFnInfo).fastpathDecMapUintBoolR)
  175. fn(map[uint8]interface{}(nil), (*encFnInfo).fastpathEncMapUint8IntfR, (*decFnInfo).fastpathDecMapUint8IntfR)
  176. fn(map[uint8]string(nil), (*encFnInfo).fastpathEncMapUint8StringR, (*decFnInfo).fastpathDecMapUint8StringR)
  177. fn(map[uint8]uint(nil), (*encFnInfo).fastpathEncMapUint8UintR, (*decFnInfo).fastpathDecMapUint8UintR)
  178. fn(map[uint8]uint8(nil), (*encFnInfo).fastpathEncMapUint8Uint8R, (*decFnInfo).fastpathDecMapUint8Uint8R)
  179. fn(map[uint8]uint16(nil), (*encFnInfo).fastpathEncMapUint8Uint16R, (*decFnInfo).fastpathDecMapUint8Uint16R)
  180. fn(map[uint8]uint32(nil), (*encFnInfo).fastpathEncMapUint8Uint32R, (*decFnInfo).fastpathDecMapUint8Uint32R)
  181. fn(map[uint8]uint64(nil), (*encFnInfo).fastpathEncMapUint8Uint64R, (*decFnInfo).fastpathDecMapUint8Uint64R)
  182. fn(map[uint8]uintptr(nil), (*encFnInfo).fastpathEncMapUint8UintptrR, (*decFnInfo).fastpathDecMapUint8UintptrR)
  183. fn(map[uint8]int(nil), (*encFnInfo).fastpathEncMapUint8IntR, (*decFnInfo).fastpathDecMapUint8IntR)
  184. fn(map[uint8]int8(nil), (*encFnInfo).fastpathEncMapUint8Int8R, (*decFnInfo).fastpathDecMapUint8Int8R)
  185. fn(map[uint8]int16(nil), (*encFnInfo).fastpathEncMapUint8Int16R, (*decFnInfo).fastpathDecMapUint8Int16R)
  186. fn(map[uint8]int32(nil), (*encFnInfo).fastpathEncMapUint8Int32R, (*decFnInfo).fastpathDecMapUint8Int32R)
  187. fn(map[uint8]int64(nil), (*encFnInfo).fastpathEncMapUint8Int64R, (*decFnInfo).fastpathDecMapUint8Int64R)
  188. fn(map[uint8]float32(nil), (*encFnInfo).fastpathEncMapUint8Float32R, (*decFnInfo).fastpathDecMapUint8Float32R)
  189. fn(map[uint8]float64(nil), (*encFnInfo).fastpathEncMapUint8Float64R, (*decFnInfo).fastpathDecMapUint8Float64R)
  190. fn(map[uint8]bool(nil), (*encFnInfo).fastpathEncMapUint8BoolR, (*decFnInfo).fastpathDecMapUint8BoolR)
  191. fn(map[uint16]interface{}(nil), (*encFnInfo).fastpathEncMapUint16IntfR, (*decFnInfo).fastpathDecMapUint16IntfR)
  192. fn(map[uint16]string(nil), (*encFnInfo).fastpathEncMapUint16StringR, (*decFnInfo).fastpathDecMapUint16StringR)
  193. fn(map[uint16]uint(nil), (*encFnInfo).fastpathEncMapUint16UintR, (*decFnInfo).fastpathDecMapUint16UintR)
  194. fn(map[uint16]uint8(nil), (*encFnInfo).fastpathEncMapUint16Uint8R, (*decFnInfo).fastpathDecMapUint16Uint8R)
  195. fn(map[uint16]uint16(nil), (*encFnInfo).fastpathEncMapUint16Uint16R, (*decFnInfo).fastpathDecMapUint16Uint16R)
  196. fn(map[uint16]uint32(nil), (*encFnInfo).fastpathEncMapUint16Uint32R, (*decFnInfo).fastpathDecMapUint16Uint32R)
  197. fn(map[uint16]uint64(nil), (*encFnInfo).fastpathEncMapUint16Uint64R, (*decFnInfo).fastpathDecMapUint16Uint64R)
  198. fn(map[uint16]uintptr(nil), (*encFnInfo).fastpathEncMapUint16UintptrR, (*decFnInfo).fastpathDecMapUint16UintptrR)
  199. fn(map[uint16]int(nil), (*encFnInfo).fastpathEncMapUint16IntR, (*decFnInfo).fastpathDecMapUint16IntR)
  200. fn(map[uint16]int8(nil), (*encFnInfo).fastpathEncMapUint16Int8R, (*decFnInfo).fastpathDecMapUint16Int8R)
  201. fn(map[uint16]int16(nil), (*encFnInfo).fastpathEncMapUint16Int16R, (*decFnInfo).fastpathDecMapUint16Int16R)
  202. fn(map[uint16]int32(nil), (*encFnInfo).fastpathEncMapUint16Int32R, (*decFnInfo).fastpathDecMapUint16Int32R)
  203. fn(map[uint16]int64(nil), (*encFnInfo).fastpathEncMapUint16Int64R, (*decFnInfo).fastpathDecMapUint16Int64R)
  204. fn(map[uint16]float32(nil), (*encFnInfo).fastpathEncMapUint16Float32R, (*decFnInfo).fastpathDecMapUint16Float32R)
  205. fn(map[uint16]float64(nil), (*encFnInfo).fastpathEncMapUint16Float64R, (*decFnInfo).fastpathDecMapUint16Float64R)
  206. fn(map[uint16]bool(nil), (*encFnInfo).fastpathEncMapUint16BoolR, (*decFnInfo).fastpathDecMapUint16BoolR)
  207. fn(map[uint32]interface{}(nil), (*encFnInfo).fastpathEncMapUint32IntfR, (*decFnInfo).fastpathDecMapUint32IntfR)
  208. fn(map[uint32]string(nil), (*encFnInfo).fastpathEncMapUint32StringR, (*decFnInfo).fastpathDecMapUint32StringR)
  209. fn(map[uint32]uint(nil), (*encFnInfo).fastpathEncMapUint32UintR, (*decFnInfo).fastpathDecMapUint32UintR)
  210. fn(map[uint32]uint8(nil), (*encFnInfo).fastpathEncMapUint32Uint8R, (*decFnInfo).fastpathDecMapUint32Uint8R)
  211. fn(map[uint32]uint16(nil), (*encFnInfo).fastpathEncMapUint32Uint16R, (*decFnInfo).fastpathDecMapUint32Uint16R)
  212. fn(map[uint32]uint32(nil), (*encFnInfo).fastpathEncMapUint32Uint32R, (*decFnInfo).fastpathDecMapUint32Uint32R)
  213. fn(map[uint32]uint64(nil), (*encFnInfo).fastpathEncMapUint32Uint64R, (*decFnInfo).fastpathDecMapUint32Uint64R)
  214. fn(map[uint32]uintptr(nil), (*encFnInfo).fastpathEncMapUint32UintptrR, (*decFnInfo).fastpathDecMapUint32UintptrR)
  215. fn(map[uint32]int(nil), (*encFnInfo).fastpathEncMapUint32IntR, (*decFnInfo).fastpathDecMapUint32IntR)
  216. fn(map[uint32]int8(nil), (*encFnInfo).fastpathEncMapUint32Int8R, (*decFnInfo).fastpathDecMapUint32Int8R)
  217. fn(map[uint32]int16(nil), (*encFnInfo).fastpathEncMapUint32Int16R, (*decFnInfo).fastpathDecMapUint32Int16R)
  218. fn(map[uint32]int32(nil), (*encFnInfo).fastpathEncMapUint32Int32R, (*decFnInfo).fastpathDecMapUint32Int32R)
  219. fn(map[uint32]int64(nil), (*encFnInfo).fastpathEncMapUint32Int64R, (*decFnInfo).fastpathDecMapUint32Int64R)
  220. fn(map[uint32]float32(nil), (*encFnInfo).fastpathEncMapUint32Float32R, (*decFnInfo).fastpathDecMapUint32Float32R)
  221. fn(map[uint32]float64(nil), (*encFnInfo).fastpathEncMapUint32Float64R, (*decFnInfo).fastpathDecMapUint32Float64R)
  222. fn(map[uint32]bool(nil), (*encFnInfo).fastpathEncMapUint32BoolR, (*decFnInfo).fastpathDecMapUint32BoolR)
  223. fn(map[uint64]interface{}(nil), (*encFnInfo).fastpathEncMapUint64IntfR, (*decFnInfo).fastpathDecMapUint64IntfR)
  224. fn(map[uint64]string(nil), (*encFnInfo).fastpathEncMapUint64StringR, (*decFnInfo).fastpathDecMapUint64StringR)
  225. fn(map[uint64]uint(nil), (*encFnInfo).fastpathEncMapUint64UintR, (*decFnInfo).fastpathDecMapUint64UintR)
  226. fn(map[uint64]uint8(nil), (*encFnInfo).fastpathEncMapUint64Uint8R, (*decFnInfo).fastpathDecMapUint64Uint8R)
  227. fn(map[uint64]uint16(nil), (*encFnInfo).fastpathEncMapUint64Uint16R, (*decFnInfo).fastpathDecMapUint64Uint16R)
  228. fn(map[uint64]uint32(nil), (*encFnInfo).fastpathEncMapUint64Uint32R, (*decFnInfo).fastpathDecMapUint64Uint32R)
  229. fn(map[uint64]uint64(nil), (*encFnInfo).fastpathEncMapUint64Uint64R, (*decFnInfo).fastpathDecMapUint64Uint64R)
  230. fn(map[uint64]uintptr(nil), (*encFnInfo).fastpathEncMapUint64UintptrR, (*decFnInfo).fastpathDecMapUint64UintptrR)
  231. fn(map[uint64]int(nil), (*encFnInfo).fastpathEncMapUint64IntR, (*decFnInfo).fastpathDecMapUint64IntR)
  232. fn(map[uint64]int8(nil), (*encFnInfo).fastpathEncMapUint64Int8R, (*decFnInfo).fastpathDecMapUint64Int8R)
  233. fn(map[uint64]int16(nil), (*encFnInfo).fastpathEncMapUint64Int16R, (*decFnInfo).fastpathDecMapUint64Int16R)
  234. fn(map[uint64]int32(nil), (*encFnInfo).fastpathEncMapUint64Int32R, (*decFnInfo).fastpathDecMapUint64Int32R)
  235. fn(map[uint64]int64(nil), (*encFnInfo).fastpathEncMapUint64Int64R, (*decFnInfo).fastpathDecMapUint64Int64R)
  236. fn(map[uint64]float32(nil), (*encFnInfo).fastpathEncMapUint64Float32R, (*decFnInfo).fastpathDecMapUint64Float32R)
  237. fn(map[uint64]float64(nil), (*encFnInfo).fastpathEncMapUint64Float64R, (*decFnInfo).fastpathDecMapUint64Float64R)
  238. fn(map[uint64]bool(nil), (*encFnInfo).fastpathEncMapUint64BoolR, (*decFnInfo).fastpathDecMapUint64BoolR)
  239. fn(map[uintptr]interface{}(nil), (*encFnInfo).fastpathEncMapUintptrIntfR, (*decFnInfo).fastpathDecMapUintptrIntfR)
  240. fn(map[uintptr]string(nil), (*encFnInfo).fastpathEncMapUintptrStringR, (*decFnInfo).fastpathDecMapUintptrStringR)
  241. fn(map[uintptr]uint(nil), (*encFnInfo).fastpathEncMapUintptrUintR, (*decFnInfo).fastpathDecMapUintptrUintR)
  242. fn(map[uintptr]uint8(nil), (*encFnInfo).fastpathEncMapUintptrUint8R, (*decFnInfo).fastpathDecMapUintptrUint8R)
  243. fn(map[uintptr]uint16(nil), (*encFnInfo).fastpathEncMapUintptrUint16R, (*decFnInfo).fastpathDecMapUintptrUint16R)
  244. fn(map[uintptr]uint32(nil), (*encFnInfo).fastpathEncMapUintptrUint32R, (*decFnInfo).fastpathDecMapUintptrUint32R)
  245. fn(map[uintptr]uint64(nil), (*encFnInfo).fastpathEncMapUintptrUint64R, (*decFnInfo).fastpathDecMapUintptrUint64R)
  246. fn(map[uintptr]uintptr(nil), (*encFnInfo).fastpathEncMapUintptrUintptrR, (*decFnInfo).fastpathDecMapUintptrUintptrR)
  247. fn(map[uintptr]int(nil), (*encFnInfo).fastpathEncMapUintptrIntR, (*decFnInfo).fastpathDecMapUintptrIntR)
  248. fn(map[uintptr]int8(nil), (*encFnInfo).fastpathEncMapUintptrInt8R, (*decFnInfo).fastpathDecMapUintptrInt8R)
  249. fn(map[uintptr]int16(nil), (*encFnInfo).fastpathEncMapUintptrInt16R, (*decFnInfo).fastpathDecMapUintptrInt16R)
  250. fn(map[uintptr]int32(nil), (*encFnInfo).fastpathEncMapUintptrInt32R, (*decFnInfo).fastpathDecMapUintptrInt32R)
  251. fn(map[uintptr]int64(nil), (*encFnInfo).fastpathEncMapUintptrInt64R, (*decFnInfo).fastpathDecMapUintptrInt64R)
  252. fn(map[uintptr]float32(nil), (*encFnInfo).fastpathEncMapUintptrFloat32R, (*decFnInfo).fastpathDecMapUintptrFloat32R)
  253. fn(map[uintptr]float64(nil), (*encFnInfo).fastpathEncMapUintptrFloat64R, (*decFnInfo).fastpathDecMapUintptrFloat64R)
  254. fn(map[uintptr]bool(nil), (*encFnInfo).fastpathEncMapUintptrBoolR, (*decFnInfo).fastpathDecMapUintptrBoolR)
  255. fn(map[int]interface{}(nil), (*encFnInfo).fastpathEncMapIntIntfR, (*decFnInfo).fastpathDecMapIntIntfR)
  256. fn(map[int]string(nil), (*encFnInfo).fastpathEncMapIntStringR, (*decFnInfo).fastpathDecMapIntStringR)
  257. fn(map[int]uint(nil), (*encFnInfo).fastpathEncMapIntUintR, (*decFnInfo).fastpathDecMapIntUintR)
  258. fn(map[int]uint8(nil), (*encFnInfo).fastpathEncMapIntUint8R, (*decFnInfo).fastpathDecMapIntUint8R)
  259. fn(map[int]uint16(nil), (*encFnInfo).fastpathEncMapIntUint16R, (*decFnInfo).fastpathDecMapIntUint16R)
  260. fn(map[int]uint32(nil), (*encFnInfo).fastpathEncMapIntUint32R, (*decFnInfo).fastpathDecMapIntUint32R)
  261. fn(map[int]uint64(nil), (*encFnInfo).fastpathEncMapIntUint64R, (*decFnInfo).fastpathDecMapIntUint64R)
  262. fn(map[int]uintptr(nil), (*encFnInfo).fastpathEncMapIntUintptrR, (*decFnInfo).fastpathDecMapIntUintptrR)
  263. fn(map[int]int(nil), (*encFnInfo).fastpathEncMapIntIntR, (*decFnInfo).fastpathDecMapIntIntR)
  264. fn(map[int]int8(nil), (*encFnInfo).fastpathEncMapIntInt8R, (*decFnInfo).fastpathDecMapIntInt8R)
  265. fn(map[int]int16(nil), (*encFnInfo).fastpathEncMapIntInt16R, (*decFnInfo).fastpathDecMapIntInt16R)
  266. fn(map[int]int32(nil), (*encFnInfo).fastpathEncMapIntInt32R, (*decFnInfo).fastpathDecMapIntInt32R)
  267. fn(map[int]int64(nil), (*encFnInfo).fastpathEncMapIntInt64R, (*decFnInfo).fastpathDecMapIntInt64R)
  268. fn(map[int]float32(nil), (*encFnInfo).fastpathEncMapIntFloat32R, (*decFnInfo).fastpathDecMapIntFloat32R)
  269. fn(map[int]float64(nil), (*encFnInfo).fastpathEncMapIntFloat64R, (*decFnInfo).fastpathDecMapIntFloat64R)
  270. fn(map[int]bool(nil), (*encFnInfo).fastpathEncMapIntBoolR, (*decFnInfo).fastpathDecMapIntBoolR)
  271. fn(map[int8]interface{}(nil), (*encFnInfo).fastpathEncMapInt8IntfR, (*decFnInfo).fastpathDecMapInt8IntfR)
  272. fn(map[int8]string(nil), (*encFnInfo).fastpathEncMapInt8StringR, (*decFnInfo).fastpathDecMapInt8StringR)
  273. fn(map[int8]uint(nil), (*encFnInfo).fastpathEncMapInt8UintR, (*decFnInfo).fastpathDecMapInt8UintR)
  274. fn(map[int8]uint8(nil), (*encFnInfo).fastpathEncMapInt8Uint8R, (*decFnInfo).fastpathDecMapInt8Uint8R)
  275. fn(map[int8]uint16(nil), (*encFnInfo).fastpathEncMapInt8Uint16R, (*decFnInfo).fastpathDecMapInt8Uint16R)
  276. fn(map[int8]uint32(nil), (*encFnInfo).fastpathEncMapInt8Uint32R, (*decFnInfo).fastpathDecMapInt8Uint32R)
  277. fn(map[int8]uint64(nil), (*encFnInfo).fastpathEncMapInt8Uint64R, (*decFnInfo).fastpathDecMapInt8Uint64R)
  278. fn(map[int8]uintptr(nil), (*encFnInfo).fastpathEncMapInt8UintptrR, (*decFnInfo).fastpathDecMapInt8UintptrR)
  279. fn(map[int8]int(nil), (*encFnInfo).fastpathEncMapInt8IntR, (*decFnInfo).fastpathDecMapInt8IntR)
  280. fn(map[int8]int8(nil), (*encFnInfo).fastpathEncMapInt8Int8R, (*decFnInfo).fastpathDecMapInt8Int8R)
  281. fn(map[int8]int16(nil), (*encFnInfo).fastpathEncMapInt8Int16R, (*decFnInfo).fastpathDecMapInt8Int16R)
  282. fn(map[int8]int32(nil), (*encFnInfo).fastpathEncMapInt8Int32R, (*decFnInfo).fastpathDecMapInt8Int32R)
  283. fn(map[int8]int64(nil), (*encFnInfo).fastpathEncMapInt8Int64R, (*decFnInfo).fastpathDecMapInt8Int64R)
  284. fn(map[int8]float32(nil), (*encFnInfo).fastpathEncMapInt8Float32R, (*decFnInfo).fastpathDecMapInt8Float32R)
  285. fn(map[int8]float64(nil), (*encFnInfo).fastpathEncMapInt8Float64R, (*decFnInfo).fastpathDecMapInt8Float64R)
  286. fn(map[int8]bool(nil), (*encFnInfo).fastpathEncMapInt8BoolR, (*decFnInfo).fastpathDecMapInt8BoolR)
  287. fn(map[int16]interface{}(nil), (*encFnInfo).fastpathEncMapInt16IntfR, (*decFnInfo).fastpathDecMapInt16IntfR)
  288. fn(map[int16]string(nil), (*encFnInfo).fastpathEncMapInt16StringR, (*decFnInfo).fastpathDecMapInt16StringR)
  289. fn(map[int16]uint(nil), (*encFnInfo).fastpathEncMapInt16UintR, (*decFnInfo).fastpathDecMapInt16UintR)
  290. fn(map[int16]uint8(nil), (*encFnInfo).fastpathEncMapInt16Uint8R, (*decFnInfo).fastpathDecMapInt16Uint8R)
  291. fn(map[int16]uint16(nil), (*encFnInfo).fastpathEncMapInt16Uint16R, (*decFnInfo).fastpathDecMapInt16Uint16R)
  292. fn(map[int16]uint32(nil), (*encFnInfo).fastpathEncMapInt16Uint32R, (*decFnInfo).fastpathDecMapInt16Uint32R)
  293. fn(map[int16]uint64(nil), (*encFnInfo).fastpathEncMapInt16Uint64R, (*decFnInfo).fastpathDecMapInt16Uint64R)
  294. fn(map[int16]uintptr(nil), (*encFnInfo).fastpathEncMapInt16UintptrR, (*decFnInfo).fastpathDecMapInt16UintptrR)
  295. fn(map[int16]int(nil), (*encFnInfo).fastpathEncMapInt16IntR, (*decFnInfo).fastpathDecMapInt16IntR)
  296. fn(map[int16]int8(nil), (*encFnInfo).fastpathEncMapInt16Int8R, (*decFnInfo).fastpathDecMapInt16Int8R)
  297. fn(map[int16]int16(nil), (*encFnInfo).fastpathEncMapInt16Int16R, (*decFnInfo).fastpathDecMapInt16Int16R)
  298. fn(map[int16]int32(nil), (*encFnInfo).fastpathEncMapInt16Int32R, (*decFnInfo).fastpathDecMapInt16Int32R)
  299. fn(map[int16]int64(nil), (*encFnInfo).fastpathEncMapInt16Int64R, (*decFnInfo).fastpathDecMapInt16Int64R)
  300. fn(map[int16]float32(nil), (*encFnInfo).fastpathEncMapInt16Float32R, (*decFnInfo).fastpathDecMapInt16Float32R)
  301. fn(map[int16]float64(nil), (*encFnInfo).fastpathEncMapInt16Float64R, (*decFnInfo).fastpathDecMapInt16Float64R)
  302. fn(map[int16]bool(nil), (*encFnInfo).fastpathEncMapInt16BoolR, (*decFnInfo).fastpathDecMapInt16BoolR)
  303. fn(map[int32]interface{}(nil), (*encFnInfo).fastpathEncMapInt32IntfR, (*decFnInfo).fastpathDecMapInt32IntfR)
  304. fn(map[int32]string(nil), (*encFnInfo).fastpathEncMapInt32StringR, (*decFnInfo).fastpathDecMapInt32StringR)
  305. fn(map[int32]uint(nil), (*encFnInfo).fastpathEncMapInt32UintR, (*decFnInfo).fastpathDecMapInt32UintR)
  306. fn(map[int32]uint8(nil), (*encFnInfo).fastpathEncMapInt32Uint8R, (*decFnInfo).fastpathDecMapInt32Uint8R)
  307. fn(map[int32]uint16(nil), (*encFnInfo).fastpathEncMapInt32Uint16R, (*decFnInfo).fastpathDecMapInt32Uint16R)
  308. fn(map[int32]uint32(nil), (*encFnInfo).fastpathEncMapInt32Uint32R, (*decFnInfo).fastpathDecMapInt32Uint32R)
  309. fn(map[int32]uint64(nil), (*encFnInfo).fastpathEncMapInt32Uint64R, (*decFnInfo).fastpathDecMapInt32Uint64R)
  310. fn(map[int32]uintptr(nil), (*encFnInfo).fastpathEncMapInt32UintptrR, (*decFnInfo).fastpathDecMapInt32UintptrR)
  311. fn(map[int32]int(nil), (*encFnInfo).fastpathEncMapInt32IntR, (*decFnInfo).fastpathDecMapInt32IntR)
  312. fn(map[int32]int8(nil), (*encFnInfo).fastpathEncMapInt32Int8R, (*decFnInfo).fastpathDecMapInt32Int8R)
  313. fn(map[int32]int16(nil), (*encFnInfo).fastpathEncMapInt32Int16R, (*decFnInfo).fastpathDecMapInt32Int16R)
  314. fn(map[int32]int32(nil), (*encFnInfo).fastpathEncMapInt32Int32R, (*decFnInfo).fastpathDecMapInt32Int32R)
  315. fn(map[int32]int64(nil), (*encFnInfo).fastpathEncMapInt32Int64R, (*decFnInfo).fastpathDecMapInt32Int64R)
  316. fn(map[int32]float32(nil), (*encFnInfo).fastpathEncMapInt32Float32R, (*decFnInfo).fastpathDecMapInt32Float32R)
  317. fn(map[int32]float64(nil), (*encFnInfo).fastpathEncMapInt32Float64R, (*decFnInfo).fastpathDecMapInt32Float64R)
  318. fn(map[int32]bool(nil), (*encFnInfo).fastpathEncMapInt32BoolR, (*decFnInfo).fastpathDecMapInt32BoolR)
  319. fn(map[int64]interface{}(nil), (*encFnInfo).fastpathEncMapInt64IntfR, (*decFnInfo).fastpathDecMapInt64IntfR)
  320. fn(map[int64]string(nil), (*encFnInfo).fastpathEncMapInt64StringR, (*decFnInfo).fastpathDecMapInt64StringR)
  321. fn(map[int64]uint(nil), (*encFnInfo).fastpathEncMapInt64UintR, (*decFnInfo).fastpathDecMapInt64UintR)
  322. fn(map[int64]uint8(nil), (*encFnInfo).fastpathEncMapInt64Uint8R, (*decFnInfo).fastpathDecMapInt64Uint8R)
  323. fn(map[int64]uint16(nil), (*encFnInfo).fastpathEncMapInt64Uint16R, (*decFnInfo).fastpathDecMapInt64Uint16R)
  324. fn(map[int64]uint32(nil), (*encFnInfo).fastpathEncMapInt64Uint32R, (*decFnInfo).fastpathDecMapInt64Uint32R)
  325. fn(map[int64]uint64(nil), (*encFnInfo).fastpathEncMapInt64Uint64R, (*decFnInfo).fastpathDecMapInt64Uint64R)
  326. fn(map[int64]uintptr(nil), (*encFnInfo).fastpathEncMapInt64UintptrR, (*decFnInfo).fastpathDecMapInt64UintptrR)
  327. fn(map[int64]int(nil), (*encFnInfo).fastpathEncMapInt64IntR, (*decFnInfo).fastpathDecMapInt64IntR)
  328. fn(map[int64]int8(nil), (*encFnInfo).fastpathEncMapInt64Int8R, (*decFnInfo).fastpathDecMapInt64Int8R)
  329. fn(map[int64]int16(nil), (*encFnInfo).fastpathEncMapInt64Int16R, (*decFnInfo).fastpathDecMapInt64Int16R)
  330. fn(map[int64]int32(nil), (*encFnInfo).fastpathEncMapInt64Int32R, (*decFnInfo).fastpathDecMapInt64Int32R)
  331. fn(map[int64]int64(nil), (*encFnInfo).fastpathEncMapInt64Int64R, (*decFnInfo).fastpathDecMapInt64Int64R)
  332. fn(map[int64]float32(nil), (*encFnInfo).fastpathEncMapInt64Float32R, (*decFnInfo).fastpathDecMapInt64Float32R)
  333. fn(map[int64]float64(nil), (*encFnInfo).fastpathEncMapInt64Float64R, (*decFnInfo).fastpathDecMapInt64Float64R)
  334. fn(map[int64]bool(nil), (*encFnInfo).fastpathEncMapInt64BoolR, (*decFnInfo).fastpathDecMapInt64BoolR)
  335. fn(map[bool]interface{}(nil), (*encFnInfo).fastpathEncMapBoolIntfR, (*decFnInfo).fastpathDecMapBoolIntfR)
  336. fn(map[bool]string(nil), (*encFnInfo).fastpathEncMapBoolStringR, (*decFnInfo).fastpathDecMapBoolStringR)
  337. fn(map[bool]uint(nil), (*encFnInfo).fastpathEncMapBoolUintR, (*decFnInfo).fastpathDecMapBoolUintR)
  338. fn(map[bool]uint8(nil), (*encFnInfo).fastpathEncMapBoolUint8R, (*decFnInfo).fastpathDecMapBoolUint8R)
  339. fn(map[bool]uint16(nil), (*encFnInfo).fastpathEncMapBoolUint16R, (*decFnInfo).fastpathDecMapBoolUint16R)
  340. fn(map[bool]uint32(nil), (*encFnInfo).fastpathEncMapBoolUint32R, (*decFnInfo).fastpathDecMapBoolUint32R)
  341. fn(map[bool]uint64(nil), (*encFnInfo).fastpathEncMapBoolUint64R, (*decFnInfo).fastpathDecMapBoolUint64R)
  342. fn(map[bool]uintptr(nil), (*encFnInfo).fastpathEncMapBoolUintptrR, (*decFnInfo).fastpathDecMapBoolUintptrR)
  343. fn(map[bool]int(nil), (*encFnInfo).fastpathEncMapBoolIntR, (*decFnInfo).fastpathDecMapBoolIntR)
  344. fn(map[bool]int8(nil), (*encFnInfo).fastpathEncMapBoolInt8R, (*decFnInfo).fastpathDecMapBoolInt8R)
  345. fn(map[bool]int16(nil), (*encFnInfo).fastpathEncMapBoolInt16R, (*decFnInfo).fastpathDecMapBoolInt16R)
  346. fn(map[bool]int32(nil), (*encFnInfo).fastpathEncMapBoolInt32R, (*decFnInfo).fastpathDecMapBoolInt32R)
  347. fn(map[bool]int64(nil), (*encFnInfo).fastpathEncMapBoolInt64R, (*decFnInfo).fastpathDecMapBoolInt64R)
  348. fn(map[bool]float32(nil), (*encFnInfo).fastpathEncMapBoolFloat32R, (*decFnInfo).fastpathDecMapBoolFloat32R)
  349. fn(map[bool]float64(nil), (*encFnInfo).fastpathEncMapBoolFloat64R, (*decFnInfo).fastpathDecMapBoolFloat64R)
  350. fn(map[bool]bool(nil), (*encFnInfo).fastpathEncMapBoolBoolR, (*decFnInfo).fastpathDecMapBoolBoolR)
  351. sort.Sort(fastpathAslice(fastpathAV[:]))
  352. }
  353. // -- encode
  354. // -- -- fast path type switch
  355. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  356. if !fastpathEnabled {
  357. return false
  358. }
  359. switch v := iv.(type) {
  360. case []interface{}:
  361. fastpathTV.EncSliceIntfV(v, fastpathCheckNilTrue, e)
  362. case *[]interface{}:
  363. fastpathTV.EncSliceIntfV(*v, fastpathCheckNilTrue, e)
  364. case map[interface{}]interface{}:
  365. fastpathTV.EncMapIntfIntfV(v, fastpathCheckNilTrue, e)
  366. case *map[interface{}]interface{}:
  367. fastpathTV.EncMapIntfIntfV(*v, fastpathCheckNilTrue, e)
  368. case map[interface{}]string:
  369. fastpathTV.EncMapIntfStringV(v, fastpathCheckNilTrue, e)
  370. case *map[interface{}]string:
  371. fastpathTV.EncMapIntfStringV(*v, fastpathCheckNilTrue, e)
  372. case map[interface{}]uint:
  373. fastpathTV.EncMapIntfUintV(v, fastpathCheckNilTrue, e)
  374. case *map[interface{}]uint:
  375. fastpathTV.EncMapIntfUintV(*v, fastpathCheckNilTrue, e)
  376. case map[interface{}]uint8:
  377. fastpathTV.EncMapIntfUint8V(v, fastpathCheckNilTrue, e)
  378. case *map[interface{}]uint8:
  379. fastpathTV.EncMapIntfUint8V(*v, fastpathCheckNilTrue, e)
  380. case map[interface{}]uint16:
  381. fastpathTV.EncMapIntfUint16V(v, fastpathCheckNilTrue, e)
  382. case *map[interface{}]uint16:
  383. fastpathTV.EncMapIntfUint16V(*v, fastpathCheckNilTrue, e)
  384. case map[interface{}]uint32:
  385. fastpathTV.EncMapIntfUint32V(v, fastpathCheckNilTrue, e)
  386. case *map[interface{}]uint32:
  387. fastpathTV.EncMapIntfUint32V(*v, fastpathCheckNilTrue, e)
  388. case map[interface{}]uint64:
  389. fastpathTV.EncMapIntfUint64V(v, fastpathCheckNilTrue, e)
  390. case *map[interface{}]uint64:
  391. fastpathTV.EncMapIntfUint64V(*v, fastpathCheckNilTrue, e)
  392. case map[interface{}]uintptr:
  393. fastpathTV.EncMapIntfUintptrV(v, fastpathCheckNilTrue, e)
  394. case *map[interface{}]uintptr:
  395. fastpathTV.EncMapIntfUintptrV(*v, fastpathCheckNilTrue, e)
  396. case map[interface{}]int:
  397. fastpathTV.EncMapIntfIntV(v, fastpathCheckNilTrue, e)
  398. case *map[interface{}]int:
  399. fastpathTV.EncMapIntfIntV(*v, fastpathCheckNilTrue, e)
  400. case map[interface{}]int8:
  401. fastpathTV.EncMapIntfInt8V(v, fastpathCheckNilTrue, e)
  402. case *map[interface{}]int8:
  403. fastpathTV.EncMapIntfInt8V(*v, fastpathCheckNilTrue, e)
  404. case map[interface{}]int16:
  405. fastpathTV.EncMapIntfInt16V(v, fastpathCheckNilTrue, e)
  406. case *map[interface{}]int16:
  407. fastpathTV.EncMapIntfInt16V(*v, fastpathCheckNilTrue, e)
  408. case map[interface{}]int32:
  409. fastpathTV.EncMapIntfInt32V(v, fastpathCheckNilTrue, e)
  410. case *map[interface{}]int32:
  411. fastpathTV.EncMapIntfInt32V(*v, fastpathCheckNilTrue, e)
  412. case map[interface{}]int64:
  413. fastpathTV.EncMapIntfInt64V(v, fastpathCheckNilTrue, e)
  414. case *map[interface{}]int64:
  415. fastpathTV.EncMapIntfInt64V(*v, fastpathCheckNilTrue, e)
  416. case map[interface{}]float32:
  417. fastpathTV.EncMapIntfFloat32V(v, fastpathCheckNilTrue, e)
  418. case *map[interface{}]float32:
  419. fastpathTV.EncMapIntfFloat32V(*v, fastpathCheckNilTrue, e)
  420. case map[interface{}]float64:
  421. fastpathTV.EncMapIntfFloat64V(v, fastpathCheckNilTrue, e)
  422. case *map[interface{}]float64:
  423. fastpathTV.EncMapIntfFloat64V(*v, fastpathCheckNilTrue, e)
  424. case map[interface{}]bool:
  425. fastpathTV.EncMapIntfBoolV(v, fastpathCheckNilTrue, e)
  426. case *map[interface{}]bool:
  427. fastpathTV.EncMapIntfBoolV(*v, fastpathCheckNilTrue, e)
  428. case []string:
  429. fastpathTV.EncSliceStringV(v, fastpathCheckNilTrue, e)
  430. case *[]string:
  431. fastpathTV.EncSliceStringV(*v, fastpathCheckNilTrue, e)
  432. case map[string]interface{}:
  433. fastpathTV.EncMapStringIntfV(v, fastpathCheckNilTrue, e)
  434. case *map[string]interface{}:
  435. fastpathTV.EncMapStringIntfV(*v, fastpathCheckNilTrue, e)
  436. case map[string]string:
  437. fastpathTV.EncMapStringStringV(v, fastpathCheckNilTrue, e)
  438. case *map[string]string:
  439. fastpathTV.EncMapStringStringV(*v, fastpathCheckNilTrue, e)
  440. case map[string]uint:
  441. fastpathTV.EncMapStringUintV(v, fastpathCheckNilTrue, e)
  442. case *map[string]uint:
  443. fastpathTV.EncMapStringUintV(*v, fastpathCheckNilTrue, e)
  444. case map[string]uint8:
  445. fastpathTV.EncMapStringUint8V(v, fastpathCheckNilTrue, e)
  446. case *map[string]uint8:
  447. fastpathTV.EncMapStringUint8V(*v, fastpathCheckNilTrue, e)
  448. case map[string]uint16:
  449. fastpathTV.EncMapStringUint16V(v, fastpathCheckNilTrue, e)
  450. case *map[string]uint16:
  451. fastpathTV.EncMapStringUint16V(*v, fastpathCheckNilTrue, e)
  452. case map[string]uint32:
  453. fastpathTV.EncMapStringUint32V(v, fastpathCheckNilTrue, e)
  454. case *map[string]uint32:
  455. fastpathTV.EncMapStringUint32V(*v, fastpathCheckNilTrue, e)
  456. case map[string]uint64:
  457. fastpathTV.EncMapStringUint64V(v, fastpathCheckNilTrue, e)
  458. case *map[string]uint64:
  459. fastpathTV.EncMapStringUint64V(*v, fastpathCheckNilTrue, e)
  460. case map[string]uintptr:
  461. fastpathTV.EncMapStringUintptrV(v, fastpathCheckNilTrue, e)
  462. case *map[string]uintptr:
  463. fastpathTV.EncMapStringUintptrV(*v, fastpathCheckNilTrue, e)
  464. case map[string]int:
  465. fastpathTV.EncMapStringIntV(v, fastpathCheckNilTrue, e)
  466. case *map[string]int:
  467. fastpathTV.EncMapStringIntV(*v, fastpathCheckNilTrue, e)
  468. case map[string]int8:
  469. fastpathTV.EncMapStringInt8V(v, fastpathCheckNilTrue, e)
  470. case *map[string]int8:
  471. fastpathTV.EncMapStringInt8V(*v, fastpathCheckNilTrue, e)
  472. case map[string]int16:
  473. fastpathTV.EncMapStringInt16V(v, fastpathCheckNilTrue, e)
  474. case *map[string]int16:
  475. fastpathTV.EncMapStringInt16V(*v, fastpathCheckNilTrue, e)
  476. case map[string]int32:
  477. fastpathTV.EncMapStringInt32V(v, fastpathCheckNilTrue, e)
  478. case *map[string]int32:
  479. fastpathTV.EncMapStringInt32V(*v, fastpathCheckNilTrue, e)
  480. case map[string]int64:
  481. fastpathTV.EncMapStringInt64V(v, fastpathCheckNilTrue, e)
  482. case *map[string]int64:
  483. fastpathTV.EncMapStringInt64V(*v, fastpathCheckNilTrue, e)
  484. case map[string]float32:
  485. fastpathTV.EncMapStringFloat32V(v, fastpathCheckNilTrue, e)
  486. case *map[string]float32:
  487. fastpathTV.EncMapStringFloat32V(*v, fastpathCheckNilTrue, e)
  488. case map[string]float64:
  489. fastpathTV.EncMapStringFloat64V(v, fastpathCheckNilTrue, e)
  490. case *map[string]float64:
  491. fastpathTV.EncMapStringFloat64V(*v, fastpathCheckNilTrue, e)
  492. case map[string]bool:
  493. fastpathTV.EncMapStringBoolV(v, fastpathCheckNilTrue, e)
  494. case *map[string]bool:
  495. fastpathTV.EncMapStringBoolV(*v, fastpathCheckNilTrue, e)
  496. case []float32:
  497. fastpathTV.EncSliceFloat32V(v, fastpathCheckNilTrue, e)
  498. case *[]float32:
  499. fastpathTV.EncSliceFloat32V(*v, fastpathCheckNilTrue, e)
  500. case map[float32]interface{}:
  501. fastpathTV.EncMapFloat32IntfV(v, fastpathCheckNilTrue, e)
  502. case *map[float32]interface{}:
  503. fastpathTV.EncMapFloat32IntfV(*v, fastpathCheckNilTrue, e)
  504. case map[float32]string:
  505. fastpathTV.EncMapFloat32StringV(v, fastpathCheckNilTrue, e)
  506. case *map[float32]string:
  507. fastpathTV.EncMapFloat32StringV(*v, fastpathCheckNilTrue, e)
  508. case map[float32]uint:
  509. fastpathTV.EncMapFloat32UintV(v, fastpathCheckNilTrue, e)
  510. case *map[float32]uint:
  511. fastpathTV.EncMapFloat32UintV(*v, fastpathCheckNilTrue, e)
  512. case map[float32]uint8:
  513. fastpathTV.EncMapFloat32Uint8V(v, fastpathCheckNilTrue, e)
  514. case *map[float32]uint8:
  515. fastpathTV.EncMapFloat32Uint8V(*v, fastpathCheckNilTrue, e)
  516. case map[float32]uint16:
  517. fastpathTV.EncMapFloat32Uint16V(v, fastpathCheckNilTrue, e)
  518. case *map[float32]uint16:
  519. fastpathTV.EncMapFloat32Uint16V(*v, fastpathCheckNilTrue, e)
  520. case map[float32]uint32:
  521. fastpathTV.EncMapFloat32Uint32V(v, fastpathCheckNilTrue, e)
  522. case *map[float32]uint32:
  523. fastpathTV.EncMapFloat32Uint32V(*v, fastpathCheckNilTrue, e)
  524. case map[float32]uint64:
  525. fastpathTV.EncMapFloat32Uint64V(v, fastpathCheckNilTrue, e)
  526. case *map[float32]uint64:
  527. fastpathTV.EncMapFloat32Uint64V(*v, fastpathCheckNilTrue, e)
  528. case map[float32]uintptr:
  529. fastpathTV.EncMapFloat32UintptrV(v, fastpathCheckNilTrue, e)
  530. case *map[float32]uintptr:
  531. fastpathTV.EncMapFloat32UintptrV(*v, fastpathCheckNilTrue, e)
  532. case map[float32]int:
  533. fastpathTV.EncMapFloat32IntV(v, fastpathCheckNilTrue, e)
  534. case *map[float32]int:
  535. fastpathTV.EncMapFloat32IntV(*v, fastpathCheckNilTrue, e)
  536. case map[float32]int8:
  537. fastpathTV.EncMapFloat32Int8V(v, fastpathCheckNilTrue, e)
  538. case *map[float32]int8:
  539. fastpathTV.EncMapFloat32Int8V(*v, fastpathCheckNilTrue, e)
  540. case map[float32]int16:
  541. fastpathTV.EncMapFloat32Int16V(v, fastpathCheckNilTrue, e)
  542. case *map[float32]int16:
  543. fastpathTV.EncMapFloat32Int16V(*v, fastpathCheckNilTrue, e)
  544. case map[float32]int32:
  545. fastpathTV.EncMapFloat32Int32V(v, fastpathCheckNilTrue, e)
  546. case *map[float32]int32:
  547. fastpathTV.EncMapFloat32Int32V(*v, fastpathCheckNilTrue, e)
  548. case map[float32]int64:
  549. fastpathTV.EncMapFloat32Int64V(v, fastpathCheckNilTrue, e)
  550. case *map[float32]int64:
  551. fastpathTV.EncMapFloat32Int64V(*v, fastpathCheckNilTrue, e)
  552. case map[float32]float32:
  553. fastpathTV.EncMapFloat32Float32V(v, fastpathCheckNilTrue, e)
  554. case *map[float32]float32:
  555. fastpathTV.EncMapFloat32Float32V(*v, fastpathCheckNilTrue, e)
  556. case map[float32]float64:
  557. fastpathTV.EncMapFloat32Float64V(v, fastpathCheckNilTrue, e)
  558. case *map[float32]float64:
  559. fastpathTV.EncMapFloat32Float64V(*v, fastpathCheckNilTrue, e)
  560. case map[float32]bool:
  561. fastpathTV.EncMapFloat32BoolV(v, fastpathCheckNilTrue, e)
  562. case *map[float32]bool:
  563. fastpathTV.EncMapFloat32BoolV(*v, fastpathCheckNilTrue, e)
  564. case []float64:
  565. fastpathTV.EncSliceFloat64V(v, fastpathCheckNilTrue, e)
  566. case *[]float64:
  567. fastpathTV.EncSliceFloat64V(*v, fastpathCheckNilTrue, e)
  568. case map[float64]interface{}:
  569. fastpathTV.EncMapFloat64IntfV(v, fastpathCheckNilTrue, e)
  570. case *map[float64]interface{}:
  571. fastpathTV.EncMapFloat64IntfV(*v, fastpathCheckNilTrue, e)
  572. case map[float64]string:
  573. fastpathTV.EncMapFloat64StringV(v, fastpathCheckNilTrue, e)
  574. case *map[float64]string:
  575. fastpathTV.EncMapFloat64StringV(*v, fastpathCheckNilTrue, e)
  576. case map[float64]uint:
  577. fastpathTV.EncMapFloat64UintV(v, fastpathCheckNilTrue, e)
  578. case *map[float64]uint:
  579. fastpathTV.EncMapFloat64UintV(*v, fastpathCheckNilTrue, e)
  580. case map[float64]uint8:
  581. fastpathTV.EncMapFloat64Uint8V(v, fastpathCheckNilTrue, e)
  582. case *map[float64]uint8:
  583. fastpathTV.EncMapFloat64Uint8V(*v, fastpathCheckNilTrue, e)
  584. case map[float64]uint16:
  585. fastpathTV.EncMapFloat64Uint16V(v, fastpathCheckNilTrue, e)
  586. case *map[float64]uint16:
  587. fastpathTV.EncMapFloat64Uint16V(*v, fastpathCheckNilTrue, e)
  588. case map[float64]uint32:
  589. fastpathTV.EncMapFloat64Uint32V(v, fastpathCheckNilTrue, e)
  590. case *map[float64]uint32:
  591. fastpathTV.EncMapFloat64Uint32V(*v, fastpathCheckNilTrue, e)
  592. case map[float64]uint64:
  593. fastpathTV.EncMapFloat64Uint64V(v, fastpathCheckNilTrue, e)
  594. case *map[float64]uint64:
  595. fastpathTV.EncMapFloat64Uint64V(*v, fastpathCheckNilTrue, e)
  596. case map[float64]uintptr:
  597. fastpathTV.EncMapFloat64UintptrV(v, fastpathCheckNilTrue, e)
  598. case *map[float64]uintptr:
  599. fastpathTV.EncMapFloat64UintptrV(*v, fastpathCheckNilTrue, e)
  600. case map[float64]int:
  601. fastpathTV.EncMapFloat64IntV(v, fastpathCheckNilTrue, e)
  602. case *map[float64]int:
  603. fastpathTV.EncMapFloat64IntV(*v, fastpathCheckNilTrue, e)
  604. case map[float64]int8:
  605. fastpathTV.EncMapFloat64Int8V(v, fastpathCheckNilTrue, e)
  606. case *map[float64]int8:
  607. fastpathTV.EncMapFloat64Int8V(*v, fastpathCheckNilTrue, e)
  608. case map[float64]int16:
  609. fastpathTV.EncMapFloat64Int16V(v, fastpathCheckNilTrue, e)
  610. case *map[float64]int16:
  611. fastpathTV.EncMapFloat64Int16V(*v, fastpathCheckNilTrue, e)
  612. case map[float64]int32:
  613. fastpathTV.EncMapFloat64Int32V(v, fastpathCheckNilTrue, e)
  614. case *map[float64]int32:
  615. fastpathTV.EncMapFloat64Int32V(*v, fastpathCheckNilTrue, e)
  616. case map[float64]int64:
  617. fastpathTV.EncMapFloat64Int64V(v, fastpathCheckNilTrue, e)
  618. case *map[float64]int64:
  619. fastpathTV.EncMapFloat64Int64V(*v, fastpathCheckNilTrue, e)
  620. case map[float64]float32:
  621. fastpathTV.EncMapFloat64Float32V(v, fastpathCheckNilTrue, e)
  622. case *map[float64]float32:
  623. fastpathTV.EncMapFloat64Float32V(*v, fastpathCheckNilTrue, e)
  624. case map[float64]float64:
  625. fastpathTV.EncMapFloat64Float64V(v, fastpathCheckNilTrue, e)
  626. case *map[float64]float64:
  627. fastpathTV.EncMapFloat64Float64V(*v, fastpathCheckNilTrue, e)
  628. case map[float64]bool:
  629. fastpathTV.EncMapFloat64BoolV(v, fastpathCheckNilTrue, e)
  630. case *map[float64]bool:
  631. fastpathTV.EncMapFloat64BoolV(*v, fastpathCheckNilTrue, e)
  632. case []uint:
  633. fastpathTV.EncSliceUintV(v, fastpathCheckNilTrue, e)
  634. case *[]uint:
  635. fastpathTV.EncSliceUintV(*v, fastpathCheckNilTrue, e)
  636. case map[uint]interface{}:
  637. fastpathTV.EncMapUintIntfV(v, fastpathCheckNilTrue, e)
  638. case *map[uint]interface{}:
  639. fastpathTV.EncMapUintIntfV(*v, fastpathCheckNilTrue, e)
  640. case map[uint]string:
  641. fastpathTV.EncMapUintStringV(v, fastpathCheckNilTrue, e)
  642. case *map[uint]string:
  643. fastpathTV.EncMapUintStringV(*v, fastpathCheckNilTrue, e)
  644. case map[uint]uint:
  645. fastpathTV.EncMapUintUintV(v, fastpathCheckNilTrue, e)
  646. case *map[uint]uint:
  647. fastpathTV.EncMapUintUintV(*v, fastpathCheckNilTrue, e)
  648. case map[uint]uint8:
  649. fastpathTV.EncMapUintUint8V(v, fastpathCheckNilTrue, e)
  650. case *map[uint]uint8:
  651. fastpathTV.EncMapUintUint8V(*v, fastpathCheckNilTrue, e)
  652. case map[uint]uint16:
  653. fastpathTV.EncMapUintUint16V(v, fastpathCheckNilTrue, e)
  654. case *map[uint]uint16:
  655. fastpathTV.EncMapUintUint16V(*v, fastpathCheckNilTrue, e)
  656. case map[uint]uint32:
  657. fastpathTV.EncMapUintUint32V(v, fastpathCheckNilTrue, e)
  658. case *map[uint]uint32:
  659. fastpathTV.EncMapUintUint32V(*v, fastpathCheckNilTrue, e)
  660. case map[uint]uint64:
  661. fastpathTV.EncMapUintUint64V(v, fastpathCheckNilTrue, e)
  662. case *map[uint]uint64:
  663. fastpathTV.EncMapUintUint64V(*v, fastpathCheckNilTrue, e)
  664. case map[uint]uintptr:
  665. fastpathTV.EncMapUintUintptrV(v, fastpathCheckNilTrue, e)
  666. case *map[uint]uintptr:
  667. fastpathTV.EncMapUintUintptrV(*v, fastpathCheckNilTrue, e)
  668. case map[uint]int:
  669. fastpathTV.EncMapUintIntV(v, fastpathCheckNilTrue, e)
  670. case *map[uint]int:
  671. fastpathTV.EncMapUintIntV(*v, fastpathCheckNilTrue, e)
  672. case map[uint]int8:
  673. fastpathTV.EncMapUintInt8V(v, fastpathCheckNilTrue, e)
  674. case *map[uint]int8:
  675. fastpathTV.EncMapUintInt8V(*v, fastpathCheckNilTrue, e)
  676. case map[uint]int16:
  677. fastpathTV.EncMapUintInt16V(v, fastpathCheckNilTrue, e)
  678. case *map[uint]int16:
  679. fastpathTV.EncMapUintInt16V(*v, fastpathCheckNilTrue, e)
  680. case map[uint]int32:
  681. fastpathTV.EncMapUintInt32V(v, fastpathCheckNilTrue, e)
  682. case *map[uint]int32:
  683. fastpathTV.EncMapUintInt32V(*v, fastpathCheckNilTrue, e)
  684. case map[uint]int64:
  685. fastpathTV.EncMapUintInt64V(v, fastpathCheckNilTrue, e)
  686. case *map[uint]int64:
  687. fastpathTV.EncMapUintInt64V(*v, fastpathCheckNilTrue, e)
  688. case map[uint]float32:
  689. fastpathTV.EncMapUintFloat32V(v, fastpathCheckNilTrue, e)
  690. case *map[uint]float32:
  691. fastpathTV.EncMapUintFloat32V(*v, fastpathCheckNilTrue, e)
  692. case map[uint]float64:
  693. fastpathTV.EncMapUintFloat64V(v, fastpathCheckNilTrue, e)
  694. case *map[uint]float64:
  695. fastpathTV.EncMapUintFloat64V(*v, fastpathCheckNilTrue, e)
  696. case map[uint]bool:
  697. fastpathTV.EncMapUintBoolV(v, fastpathCheckNilTrue, e)
  698. case *map[uint]bool:
  699. fastpathTV.EncMapUintBoolV(*v, fastpathCheckNilTrue, e)
  700. case map[uint8]interface{}:
  701. fastpathTV.EncMapUint8IntfV(v, fastpathCheckNilTrue, e)
  702. case *map[uint8]interface{}:
  703. fastpathTV.EncMapUint8IntfV(*v, fastpathCheckNilTrue, e)
  704. case map[uint8]string:
  705. fastpathTV.EncMapUint8StringV(v, fastpathCheckNilTrue, e)
  706. case *map[uint8]string:
  707. fastpathTV.EncMapUint8StringV(*v, fastpathCheckNilTrue, e)
  708. case map[uint8]uint:
  709. fastpathTV.EncMapUint8UintV(v, fastpathCheckNilTrue, e)
  710. case *map[uint8]uint:
  711. fastpathTV.EncMapUint8UintV(*v, fastpathCheckNilTrue, e)
  712. case map[uint8]uint8:
  713. fastpathTV.EncMapUint8Uint8V(v, fastpathCheckNilTrue, e)
  714. case *map[uint8]uint8:
  715. fastpathTV.EncMapUint8Uint8V(*v, fastpathCheckNilTrue, e)
  716. case map[uint8]uint16:
  717. fastpathTV.EncMapUint8Uint16V(v, fastpathCheckNilTrue, e)
  718. case *map[uint8]uint16:
  719. fastpathTV.EncMapUint8Uint16V(*v, fastpathCheckNilTrue, e)
  720. case map[uint8]uint32:
  721. fastpathTV.EncMapUint8Uint32V(v, fastpathCheckNilTrue, e)
  722. case *map[uint8]uint32:
  723. fastpathTV.EncMapUint8Uint32V(*v, fastpathCheckNilTrue, e)
  724. case map[uint8]uint64:
  725. fastpathTV.EncMapUint8Uint64V(v, fastpathCheckNilTrue, e)
  726. case *map[uint8]uint64:
  727. fastpathTV.EncMapUint8Uint64V(*v, fastpathCheckNilTrue, e)
  728. case map[uint8]uintptr:
  729. fastpathTV.EncMapUint8UintptrV(v, fastpathCheckNilTrue, e)
  730. case *map[uint8]uintptr:
  731. fastpathTV.EncMapUint8UintptrV(*v, fastpathCheckNilTrue, e)
  732. case map[uint8]int:
  733. fastpathTV.EncMapUint8IntV(v, fastpathCheckNilTrue, e)
  734. case *map[uint8]int:
  735. fastpathTV.EncMapUint8IntV(*v, fastpathCheckNilTrue, e)
  736. case map[uint8]int8:
  737. fastpathTV.EncMapUint8Int8V(v, fastpathCheckNilTrue, e)
  738. case *map[uint8]int8:
  739. fastpathTV.EncMapUint8Int8V(*v, fastpathCheckNilTrue, e)
  740. case map[uint8]int16:
  741. fastpathTV.EncMapUint8Int16V(v, fastpathCheckNilTrue, e)
  742. case *map[uint8]int16:
  743. fastpathTV.EncMapUint8Int16V(*v, fastpathCheckNilTrue, e)
  744. case map[uint8]int32:
  745. fastpathTV.EncMapUint8Int32V(v, fastpathCheckNilTrue, e)
  746. case *map[uint8]int32:
  747. fastpathTV.EncMapUint8Int32V(*v, fastpathCheckNilTrue, e)
  748. case map[uint8]int64:
  749. fastpathTV.EncMapUint8Int64V(v, fastpathCheckNilTrue, e)
  750. case *map[uint8]int64:
  751. fastpathTV.EncMapUint8Int64V(*v, fastpathCheckNilTrue, e)
  752. case map[uint8]float32:
  753. fastpathTV.EncMapUint8Float32V(v, fastpathCheckNilTrue, e)
  754. case *map[uint8]float32:
  755. fastpathTV.EncMapUint8Float32V(*v, fastpathCheckNilTrue, e)
  756. case map[uint8]float64:
  757. fastpathTV.EncMapUint8Float64V(v, fastpathCheckNilTrue, e)
  758. case *map[uint8]float64:
  759. fastpathTV.EncMapUint8Float64V(*v, fastpathCheckNilTrue, e)
  760. case map[uint8]bool:
  761. fastpathTV.EncMapUint8BoolV(v, fastpathCheckNilTrue, e)
  762. case *map[uint8]bool:
  763. fastpathTV.EncMapUint8BoolV(*v, fastpathCheckNilTrue, e)
  764. case []uint16:
  765. fastpathTV.EncSliceUint16V(v, fastpathCheckNilTrue, e)
  766. case *[]uint16:
  767. fastpathTV.EncSliceUint16V(*v, fastpathCheckNilTrue, e)
  768. case map[uint16]interface{}:
  769. fastpathTV.EncMapUint16IntfV(v, fastpathCheckNilTrue, e)
  770. case *map[uint16]interface{}:
  771. fastpathTV.EncMapUint16IntfV(*v, fastpathCheckNilTrue, e)
  772. case map[uint16]string:
  773. fastpathTV.EncMapUint16StringV(v, fastpathCheckNilTrue, e)
  774. case *map[uint16]string:
  775. fastpathTV.EncMapUint16StringV(*v, fastpathCheckNilTrue, e)
  776. case map[uint16]uint:
  777. fastpathTV.EncMapUint16UintV(v, fastpathCheckNilTrue, e)
  778. case *map[uint16]uint:
  779. fastpathTV.EncMapUint16UintV(*v, fastpathCheckNilTrue, e)
  780. case map[uint16]uint8:
  781. fastpathTV.EncMapUint16Uint8V(v, fastpathCheckNilTrue, e)
  782. case *map[uint16]uint8:
  783. fastpathTV.EncMapUint16Uint8V(*v, fastpathCheckNilTrue, e)
  784. case map[uint16]uint16:
  785. fastpathTV.EncMapUint16Uint16V(v, fastpathCheckNilTrue, e)
  786. case *map[uint16]uint16:
  787. fastpathTV.EncMapUint16Uint16V(*v, fastpathCheckNilTrue, e)
  788. case map[uint16]uint32:
  789. fastpathTV.EncMapUint16Uint32V(v, fastpathCheckNilTrue, e)
  790. case *map[uint16]uint32:
  791. fastpathTV.EncMapUint16Uint32V(*v, fastpathCheckNilTrue, e)
  792. case map[uint16]uint64:
  793. fastpathTV.EncMapUint16Uint64V(v, fastpathCheckNilTrue, e)
  794. case *map[uint16]uint64:
  795. fastpathTV.EncMapUint16Uint64V(*v, fastpathCheckNilTrue, e)
  796. case map[uint16]uintptr:
  797. fastpathTV.EncMapUint16UintptrV(v, fastpathCheckNilTrue, e)
  798. case *map[uint16]uintptr:
  799. fastpathTV.EncMapUint16UintptrV(*v, fastpathCheckNilTrue, e)
  800. case map[uint16]int:
  801. fastpathTV.EncMapUint16IntV(v, fastpathCheckNilTrue, e)
  802. case *map[uint16]int:
  803. fastpathTV.EncMapUint16IntV(*v, fastpathCheckNilTrue, e)
  804. case map[uint16]int8:
  805. fastpathTV.EncMapUint16Int8V(v, fastpathCheckNilTrue, e)
  806. case *map[uint16]int8:
  807. fastpathTV.EncMapUint16Int8V(*v, fastpathCheckNilTrue, e)
  808. case map[uint16]int16:
  809. fastpathTV.EncMapUint16Int16V(v, fastpathCheckNilTrue, e)
  810. case *map[uint16]int16:
  811. fastpathTV.EncMapUint16Int16V(*v, fastpathCheckNilTrue, e)
  812. case map[uint16]int32:
  813. fastpathTV.EncMapUint16Int32V(v, fastpathCheckNilTrue, e)
  814. case *map[uint16]int32:
  815. fastpathTV.EncMapUint16Int32V(*v, fastpathCheckNilTrue, e)
  816. case map[uint16]int64:
  817. fastpathTV.EncMapUint16Int64V(v, fastpathCheckNilTrue, e)
  818. case *map[uint16]int64:
  819. fastpathTV.EncMapUint16Int64V(*v, fastpathCheckNilTrue, e)
  820. case map[uint16]float32:
  821. fastpathTV.EncMapUint16Float32V(v, fastpathCheckNilTrue, e)
  822. case *map[uint16]float32:
  823. fastpathTV.EncMapUint16Float32V(*v, fastpathCheckNilTrue, e)
  824. case map[uint16]float64:
  825. fastpathTV.EncMapUint16Float64V(v, fastpathCheckNilTrue, e)
  826. case *map[uint16]float64:
  827. fastpathTV.EncMapUint16Float64V(*v, fastpathCheckNilTrue, e)
  828. case map[uint16]bool:
  829. fastpathTV.EncMapUint16BoolV(v, fastpathCheckNilTrue, e)
  830. case *map[uint16]bool:
  831. fastpathTV.EncMapUint16BoolV(*v, fastpathCheckNilTrue, e)
  832. case []uint32:
  833. fastpathTV.EncSliceUint32V(v, fastpathCheckNilTrue, e)
  834. case *[]uint32:
  835. fastpathTV.EncSliceUint32V(*v, fastpathCheckNilTrue, e)
  836. case map[uint32]interface{}:
  837. fastpathTV.EncMapUint32IntfV(v, fastpathCheckNilTrue, e)
  838. case *map[uint32]interface{}:
  839. fastpathTV.EncMapUint32IntfV(*v, fastpathCheckNilTrue, e)
  840. case map[uint32]string:
  841. fastpathTV.EncMapUint32StringV(v, fastpathCheckNilTrue, e)
  842. case *map[uint32]string:
  843. fastpathTV.EncMapUint32StringV(*v, fastpathCheckNilTrue, e)
  844. case map[uint32]uint:
  845. fastpathTV.EncMapUint32UintV(v, fastpathCheckNilTrue, e)
  846. case *map[uint32]uint:
  847. fastpathTV.EncMapUint32UintV(*v, fastpathCheckNilTrue, e)
  848. case map[uint32]uint8:
  849. fastpathTV.EncMapUint32Uint8V(v, fastpathCheckNilTrue, e)
  850. case *map[uint32]uint8:
  851. fastpathTV.EncMapUint32Uint8V(*v, fastpathCheckNilTrue, e)
  852. case map[uint32]uint16:
  853. fastpathTV.EncMapUint32Uint16V(v, fastpathCheckNilTrue, e)
  854. case *map[uint32]uint16:
  855. fastpathTV.EncMapUint32Uint16V(*v, fastpathCheckNilTrue, e)
  856. case map[uint32]uint32:
  857. fastpathTV.EncMapUint32Uint32V(v, fastpathCheckNilTrue, e)
  858. case *map[uint32]uint32:
  859. fastpathTV.EncMapUint32Uint32V(*v, fastpathCheckNilTrue, e)
  860. case map[uint32]uint64:
  861. fastpathTV.EncMapUint32Uint64V(v, fastpathCheckNilTrue, e)
  862. case *map[uint32]uint64:
  863. fastpathTV.EncMapUint32Uint64V(*v, fastpathCheckNilTrue, e)
  864. case map[uint32]uintptr:
  865. fastpathTV.EncMapUint32UintptrV(v, fastpathCheckNilTrue, e)
  866. case *map[uint32]uintptr:
  867. fastpathTV.EncMapUint32UintptrV(*v, fastpathCheckNilTrue, e)
  868. case map[uint32]int:
  869. fastpathTV.EncMapUint32IntV(v, fastpathCheckNilTrue, e)
  870. case *map[uint32]int:
  871. fastpathTV.EncMapUint32IntV(*v, fastpathCheckNilTrue, e)
  872. case map[uint32]int8:
  873. fastpathTV.EncMapUint32Int8V(v, fastpathCheckNilTrue, e)
  874. case *map[uint32]int8:
  875. fastpathTV.EncMapUint32Int8V(*v, fastpathCheckNilTrue, e)
  876. case map[uint32]int16:
  877. fastpathTV.EncMapUint32Int16V(v, fastpathCheckNilTrue, e)
  878. case *map[uint32]int16:
  879. fastpathTV.EncMapUint32Int16V(*v, fastpathCheckNilTrue, e)
  880. case map[uint32]int32:
  881. fastpathTV.EncMapUint32Int32V(v, fastpathCheckNilTrue, e)
  882. case *map[uint32]int32:
  883. fastpathTV.EncMapUint32Int32V(*v, fastpathCheckNilTrue, e)
  884. case map[uint32]int64:
  885. fastpathTV.EncMapUint32Int64V(v, fastpathCheckNilTrue, e)
  886. case *map[uint32]int64:
  887. fastpathTV.EncMapUint32Int64V(*v, fastpathCheckNilTrue, e)
  888. case map[uint32]float32:
  889. fastpathTV.EncMapUint32Float32V(v, fastpathCheckNilTrue, e)
  890. case *map[uint32]float32:
  891. fastpathTV.EncMapUint32Float32V(*v, fastpathCheckNilTrue, e)
  892. case map[uint32]float64:
  893. fastpathTV.EncMapUint32Float64V(v, fastpathCheckNilTrue, e)
  894. case *map[uint32]float64:
  895. fastpathTV.EncMapUint32Float64V(*v, fastpathCheckNilTrue, e)
  896. case map[uint32]bool:
  897. fastpathTV.EncMapUint32BoolV(v, fastpathCheckNilTrue, e)
  898. case *map[uint32]bool:
  899. fastpathTV.EncMapUint32BoolV(*v, fastpathCheckNilTrue, e)
  900. case []uint64:
  901. fastpathTV.EncSliceUint64V(v, fastpathCheckNilTrue, e)
  902. case *[]uint64:
  903. fastpathTV.EncSliceUint64V(*v, fastpathCheckNilTrue, e)
  904. case map[uint64]interface{}:
  905. fastpathTV.EncMapUint64IntfV(v, fastpathCheckNilTrue, e)
  906. case *map[uint64]interface{}:
  907. fastpathTV.EncMapUint64IntfV(*v, fastpathCheckNilTrue, e)
  908. case map[uint64]string:
  909. fastpathTV.EncMapUint64StringV(v, fastpathCheckNilTrue, e)
  910. case *map[uint64]string:
  911. fastpathTV.EncMapUint64StringV(*v, fastpathCheckNilTrue, e)
  912. case map[uint64]uint:
  913. fastpathTV.EncMapUint64UintV(v, fastpathCheckNilTrue, e)
  914. case *map[uint64]uint:
  915. fastpathTV.EncMapUint64UintV(*v, fastpathCheckNilTrue, e)
  916. case map[uint64]uint8:
  917. fastpathTV.EncMapUint64Uint8V(v, fastpathCheckNilTrue, e)
  918. case *map[uint64]uint8:
  919. fastpathTV.EncMapUint64Uint8V(*v, fastpathCheckNilTrue, e)
  920. case map[uint64]uint16:
  921. fastpathTV.EncMapUint64Uint16V(v, fastpathCheckNilTrue, e)
  922. case *map[uint64]uint16:
  923. fastpathTV.EncMapUint64Uint16V(*v, fastpathCheckNilTrue, e)
  924. case map[uint64]uint32:
  925. fastpathTV.EncMapUint64Uint32V(v, fastpathCheckNilTrue, e)
  926. case *map[uint64]uint32:
  927. fastpathTV.EncMapUint64Uint32V(*v, fastpathCheckNilTrue, e)
  928. case map[uint64]uint64:
  929. fastpathTV.EncMapUint64Uint64V(v, fastpathCheckNilTrue, e)
  930. case *map[uint64]uint64:
  931. fastpathTV.EncMapUint64Uint64V(*v, fastpathCheckNilTrue, e)
  932. case map[uint64]uintptr:
  933. fastpathTV.EncMapUint64UintptrV(v, fastpathCheckNilTrue, e)
  934. case *map[uint64]uintptr:
  935. fastpathTV.EncMapUint64UintptrV(*v, fastpathCheckNilTrue, e)
  936. case map[uint64]int:
  937. fastpathTV.EncMapUint64IntV(v, fastpathCheckNilTrue, e)
  938. case *map[uint64]int:
  939. fastpathTV.EncMapUint64IntV(*v, fastpathCheckNilTrue, e)
  940. case map[uint64]int8:
  941. fastpathTV.EncMapUint64Int8V(v, fastpathCheckNilTrue, e)
  942. case *map[uint64]int8:
  943. fastpathTV.EncMapUint64Int8V(*v, fastpathCheckNilTrue, e)
  944. case map[uint64]int16:
  945. fastpathTV.EncMapUint64Int16V(v, fastpathCheckNilTrue, e)
  946. case *map[uint64]int16:
  947. fastpathTV.EncMapUint64Int16V(*v, fastpathCheckNilTrue, e)
  948. case map[uint64]int32:
  949. fastpathTV.EncMapUint64Int32V(v, fastpathCheckNilTrue, e)
  950. case *map[uint64]int32:
  951. fastpathTV.EncMapUint64Int32V(*v, fastpathCheckNilTrue, e)
  952. case map[uint64]int64:
  953. fastpathTV.EncMapUint64Int64V(v, fastpathCheckNilTrue, e)
  954. case *map[uint64]int64:
  955. fastpathTV.EncMapUint64Int64V(*v, fastpathCheckNilTrue, e)
  956. case map[uint64]float32:
  957. fastpathTV.EncMapUint64Float32V(v, fastpathCheckNilTrue, e)
  958. case *map[uint64]float32:
  959. fastpathTV.EncMapUint64Float32V(*v, fastpathCheckNilTrue, e)
  960. case map[uint64]float64:
  961. fastpathTV.EncMapUint64Float64V(v, fastpathCheckNilTrue, e)
  962. case *map[uint64]float64:
  963. fastpathTV.EncMapUint64Float64V(*v, fastpathCheckNilTrue, e)
  964. case map[uint64]bool:
  965. fastpathTV.EncMapUint64BoolV(v, fastpathCheckNilTrue, e)
  966. case *map[uint64]bool:
  967. fastpathTV.EncMapUint64BoolV(*v, fastpathCheckNilTrue, e)
  968. case []uintptr:
  969. fastpathTV.EncSliceUintptrV(v, fastpathCheckNilTrue, e)
  970. case *[]uintptr:
  971. fastpathTV.EncSliceUintptrV(*v, fastpathCheckNilTrue, e)
  972. case map[uintptr]interface{}:
  973. fastpathTV.EncMapUintptrIntfV(v, fastpathCheckNilTrue, e)
  974. case *map[uintptr]interface{}:
  975. fastpathTV.EncMapUintptrIntfV(*v, fastpathCheckNilTrue, e)
  976. case map[uintptr]string:
  977. fastpathTV.EncMapUintptrStringV(v, fastpathCheckNilTrue, e)
  978. case *map[uintptr]string:
  979. fastpathTV.EncMapUintptrStringV(*v, fastpathCheckNilTrue, e)
  980. case map[uintptr]uint:
  981. fastpathTV.EncMapUintptrUintV(v, fastpathCheckNilTrue, e)
  982. case *map[uintptr]uint:
  983. fastpathTV.EncMapUintptrUintV(*v, fastpathCheckNilTrue, e)
  984. case map[uintptr]uint8:
  985. fastpathTV.EncMapUintptrUint8V(v, fastpathCheckNilTrue, e)
  986. case *map[uintptr]uint8:
  987. fastpathTV.EncMapUintptrUint8V(*v, fastpathCheckNilTrue, e)
  988. case map[uintptr]uint16:
  989. fastpathTV.EncMapUintptrUint16V(v, fastpathCheckNilTrue, e)
  990. case *map[uintptr]uint16:
  991. fastpathTV.EncMapUintptrUint16V(*v, fastpathCheckNilTrue, e)
  992. case map[uintptr]uint32:
  993. fastpathTV.EncMapUintptrUint32V(v, fastpathCheckNilTrue, e)
  994. case *map[uintptr]uint32:
  995. fastpathTV.EncMapUintptrUint32V(*v, fastpathCheckNilTrue, e)
  996. case map[uintptr]uint64:
  997. fastpathTV.EncMapUintptrUint64V(v, fastpathCheckNilTrue, e)
  998. case *map[uintptr]uint64:
  999. fastpathTV.EncMapUintptrUint64V(*v, fastpathCheckNilTrue, e)
  1000. case map[uintptr]uintptr:
  1001. fastpathTV.EncMapUintptrUintptrV(v, fastpathCheckNilTrue, e)
  1002. case *map[uintptr]uintptr:
  1003. fastpathTV.EncMapUintptrUintptrV(*v, fastpathCheckNilTrue, e)
  1004. case map[uintptr]int:
  1005. fastpathTV.EncMapUintptrIntV(v, fastpathCheckNilTrue, e)
  1006. case *map[uintptr]int:
  1007. fastpathTV.EncMapUintptrIntV(*v, fastpathCheckNilTrue, e)
  1008. case map[uintptr]int8:
  1009. fastpathTV.EncMapUintptrInt8V(v, fastpathCheckNilTrue, e)
  1010. case *map[uintptr]int8:
  1011. fastpathTV.EncMapUintptrInt8V(*v, fastpathCheckNilTrue, e)
  1012. case map[uintptr]int16:
  1013. fastpathTV.EncMapUintptrInt16V(v, fastpathCheckNilTrue, e)
  1014. case *map[uintptr]int16:
  1015. fastpathTV.EncMapUintptrInt16V(*v, fastpathCheckNilTrue, e)
  1016. case map[uintptr]int32:
  1017. fastpathTV.EncMapUintptrInt32V(v, fastpathCheckNilTrue, e)
  1018. case *map[uintptr]int32:
  1019. fastpathTV.EncMapUintptrInt32V(*v, fastpathCheckNilTrue, e)
  1020. case map[uintptr]int64:
  1021. fastpathTV.EncMapUintptrInt64V(v, fastpathCheckNilTrue, e)
  1022. case *map[uintptr]int64:
  1023. fastpathTV.EncMapUintptrInt64V(*v, fastpathCheckNilTrue, e)
  1024. case map[uintptr]float32:
  1025. fastpathTV.EncMapUintptrFloat32V(v, fastpathCheckNilTrue, e)
  1026. case *map[uintptr]float32:
  1027. fastpathTV.EncMapUintptrFloat32V(*v, fastpathCheckNilTrue, e)
  1028. case map[uintptr]float64:
  1029. fastpathTV.EncMapUintptrFloat64V(v, fastpathCheckNilTrue, e)
  1030. case *map[uintptr]float64:
  1031. fastpathTV.EncMapUintptrFloat64V(*v, fastpathCheckNilTrue, e)
  1032. case map[uintptr]bool:
  1033. fastpathTV.EncMapUintptrBoolV(v, fastpathCheckNilTrue, e)
  1034. case *map[uintptr]bool:
  1035. fastpathTV.EncMapUintptrBoolV(*v, fastpathCheckNilTrue, e)
  1036. case []int:
  1037. fastpathTV.EncSliceIntV(v, fastpathCheckNilTrue, e)
  1038. case *[]int:
  1039. fastpathTV.EncSliceIntV(*v, fastpathCheckNilTrue, e)
  1040. case map[int]interface{}:
  1041. fastpathTV.EncMapIntIntfV(v, fastpathCheckNilTrue, e)
  1042. case *map[int]interface{}:
  1043. fastpathTV.EncMapIntIntfV(*v, fastpathCheckNilTrue, e)
  1044. case map[int]string:
  1045. fastpathTV.EncMapIntStringV(v, fastpathCheckNilTrue, e)
  1046. case *map[int]string:
  1047. fastpathTV.EncMapIntStringV(*v, fastpathCheckNilTrue, e)
  1048. case map[int]uint:
  1049. fastpathTV.EncMapIntUintV(v, fastpathCheckNilTrue, e)
  1050. case *map[int]uint:
  1051. fastpathTV.EncMapIntUintV(*v, fastpathCheckNilTrue, e)
  1052. case map[int]uint8:
  1053. fastpathTV.EncMapIntUint8V(v, fastpathCheckNilTrue, e)
  1054. case *map[int]uint8:
  1055. fastpathTV.EncMapIntUint8V(*v, fastpathCheckNilTrue, e)
  1056. case map[int]uint16:
  1057. fastpathTV.EncMapIntUint16V(v, fastpathCheckNilTrue, e)
  1058. case *map[int]uint16:
  1059. fastpathTV.EncMapIntUint16V(*v, fastpathCheckNilTrue, e)
  1060. case map[int]uint32:
  1061. fastpathTV.EncMapIntUint32V(v, fastpathCheckNilTrue, e)
  1062. case *map[int]uint32:
  1063. fastpathTV.EncMapIntUint32V(*v, fastpathCheckNilTrue, e)
  1064. case map[int]uint64:
  1065. fastpathTV.EncMapIntUint64V(v, fastpathCheckNilTrue, e)
  1066. case *map[int]uint64:
  1067. fastpathTV.EncMapIntUint64V(*v, fastpathCheckNilTrue, e)
  1068. case map[int]uintptr:
  1069. fastpathTV.EncMapIntUintptrV(v, fastpathCheckNilTrue, e)
  1070. case *map[int]uintptr:
  1071. fastpathTV.EncMapIntUintptrV(*v, fastpathCheckNilTrue, e)
  1072. case map[int]int:
  1073. fastpathTV.EncMapIntIntV(v, fastpathCheckNilTrue, e)
  1074. case *map[int]int:
  1075. fastpathTV.EncMapIntIntV(*v, fastpathCheckNilTrue, e)
  1076. case map[int]int8:
  1077. fastpathTV.EncMapIntInt8V(v, fastpathCheckNilTrue, e)
  1078. case *map[int]int8:
  1079. fastpathTV.EncMapIntInt8V(*v, fastpathCheckNilTrue, e)
  1080. case map[int]int16:
  1081. fastpathTV.EncMapIntInt16V(v, fastpathCheckNilTrue, e)
  1082. case *map[int]int16:
  1083. fastpathTV.EncMapIntInt16V(*v, fastpathCheckNilTrue, e)
  1084. case map[int]int32:
  1085. fastpathTV.EncMapIntInt32V(v, fastpathCheckNilTrue, e)
  1086. case *map[int]int32:
  1087. fastpathTV.EncMapIntInt32V(*v, fastpathCheckNilTrue, e)
  1088. case map[int]int64:
  1089. fastpathTV.EncMapIntInt64V(v, fastpathCheckNilTrue, e)
  1090. case *map[int]int64:
  1091. fastpathTV.EncMapIntInt64V(*v, fastpathCheckNilTrue, e)
  1092. case map[int]float32:
  1093. fastpathTV.EncMapIntFloat32V(v, fastpathCheckNilTrue, e)
  1094. case *map[int]float32:
  1095. fastpathTV.EncMapIntFloat32V(*v, fastpathCheckNilTrue, e)
  1096. case map[int]float64:
  1097. fastpathTV.EncMapIntFloat64V(v, fastpathCheckNilTrue, e)
  1098. case *map[int]float64:
  1099. fastpathTV.EncMapIntFloat64V(*v, fastpathCheckNilTrue, e)
  1100. case map[int]bool:
  1101. fastpathTV.EncMapIntBoolV(v, fastpathCheckNilTrue, e)
  1102. case *map[int]bool:
  1103. fastpathTV.EncMapIntBoolV(*v, fastpathCheckNilTrue, e)
  1104. case []int8:
  1105. fastpathTV.EncSliceInt8V(v, fastpathCheckNilTrue, e)
  1106. case *[]int8:
  1107. fastpathTV.EncSliceInt8V(*v, fastpathCheckNilTrue, e)
  1108. case map[int8]interface{}:
  1109. fastpathTV.EncMapInt8IntfV(v, fastpathCheckNilTrue, e)
  1110. case *map[int8]interface{}:
  1111. fastpathTV.EncMapInt8IntfV(*v, fastpathCheckNilTrue, e)
  1112. case map[int8]string:
  1113. fastpathTV.EncMapInt8StringV(v, fastpathCheckNilTrue, e)
  1114. case *map[int8]string:
  1115. fastpathTV.EncMapInt8StringV(*v, fastpathCheckNilTrue, e)
  1116. case map[int8]uint:
  1117. fastpathTV.EncMapInt8UintV(v, fastpathCheckNilTrue, e)
  1118. case *map[int8]uint:
  1119. fastpathTV.EncMapInt8UintV(*v, fastpathCheckNilTrue, e)
  1120. case map[int8]uint8:
  1121. fastpathTV.EncMapInt8Uint8V(v, fastpathCheckNilTrue, e)
  1122. case *map[int8]uint8:
  1123. fastpathTV.EncMapInt8Uint8V(*v, fastpathCheckNilTrue, e)
  1124. case map[int8]uint16:
  1125. fastpathTV.EncMapInt8Uint16V(v, fastpathCheckNilTrue, e)
  1126. case *map[int8]uint16:
  1127. fastpathTV.EncMapInt8Uint16V(*v, fastpathCheckNilTrue, e)
  1128. case map[int8]uint32:
  1129. fastpathTV.EncMapInt8Uint32V(v, fastpathCheckNilTrue, e)
  1130. case *map[int8]uint32:
  1131. fastpathTV.EncMapInt8Uint32V(*v, fastpathCheckNilTrue, e)
  1132. case map[int8]uint64:
  1133. fastpathTV.EncMapInt8Uint64V(v, fastpathCheckNilTrue, e)
  1134. case *map[int8]uint64:
  1135. fastpathTV.EncMapInt8Uint64V(*v, fastpathCheckNilTrue, e)
  1136. case map[int8]uintptr:
  1137. fastpathTV.EncMapInt8UintptrV(v, fastpathCheckNilTrue, e)
  1138. case *map[int8]uintptr:
  1139. fastpathTV.EncMapInt8UintptrV(*v, fastpathCheckNilTrue, e)
  1140. case map[int8]int:
  1141. fastpathTV.EncMapInt8IntV(v, fastpathCheckNilTrue, e)
  1142. case *map[int8]int:
  1143. fastpathTV.EncMapInt8IntV(*v, fastpathCheckNilTrue, e)
  1144. case map[int8]int8:
  1145. fastpathTV.EncMapInt8Int8V(v, fastpathCheckNilTrue, e)
  1146. case *map[int8]int8:
  1147. fastpathTV.EncMapInt8Int8V(*v, fastpathCheckNilTrue, e)
  1148. case map[int8]int16:
  1149. fastpathTV.EncMapInt8Int16V(v, fastpathCheckNilTrue, e)
  1150. case *map[int8]int16:
  1151. fastpathTV.EncMapInt8Int16V(*v, fastpathCheckNilTrue, e)
  1152. case map[int8]int32:
  1153. fastpathTV.EncMapInt8Int32V(v, fastpathCheckNilTrue, e)
  1154. case *map[int8]int32:
  1155. fastpathTV.EncMapInt8Int32V(*v, fastpathCheckNilTrue, e)
  1156. case map[int8]int64:
  1157. fastpathTV.EncMapInt8Int64V(v, fastpathCheckNilTrue, e)
  1158. case *map[int8]int64:
  1159. fastpathTV.EncMapInt8Int64V(*v, fastpathCheckNilTrue, e)
  1160. case map[int8]float32:
  1161. fastpathTV.EncMapInt8Float32V(v, fastpathCheckNilTrue, e)
  1162. case *map[int8]float32:
  1163. fastpathTV.EncMapInt8Float32V(*v, fastpathCheckNilTrue, e)
  1164. case map[int8]float64:
  1165. fastpathTV.EncMapInt8Float64V(v, fastpathCheckNilTrue, e)
  1166. case *map[int8]float64:
  1167. fastpathTV.EncMapInt8Float64V(*v, fastpathCheckNilTrue, e)
  1168. case map[int8]bool:
  1169. fastpathTV.EncMapInt8BoolV(v, fastpathCheckNilTrue, e)
  1170. case *map[int8]bool:
  1171. fastpathTV.EncMapInt8BoolV(*v, fastpathCheckNilTrue, e)
  1172. case []int16:
  1173. fastpathTV.EncSliceInt16V(v, fastpathCheckNilTrue, e)
  1174. case *[]int16:
  1175. fastpathTV.EncSliceInt16V(*v, fastpathCheckNilTrue, e)
  1176. case map[int16]interface{}:
  1177. fastpathTV.EncMapInt16IntfV(v, fastpathCheckNilTrue, e)
  1178. case *map[int16]interface{}:
  1179. fastpathTV.EncMapInt16IntfV(*v, fastpathCheckNilTrue, e)
  1180. case map[int16]string:
  1181. fastpathTV.EncMapInt16StringV(v, fastpathCheckNilTrue, e)
  1182. case *map[int16]string:
  1183. fastpathTV.EncMapInt16StringV(*v, fastpathCheckNilTrue, e)
  1184. case map[int16]uint:
  1185. fastpathTV.EncMapInt16UintV(v, fastpathCheckNilTrue, e)
  1186. case *map[int16]uint:
  1187. fastpathTV.EncMapInt16UintV(*v, fastpathCheckNilTrue, e)
  1188. case map[int16]uint8:
  1189. fastpathTV.EncMapInt16Uint8V(v, fastpathCheckNilTrue, e)
  1190. case *map[int16]uint8:
  1191. fastpathTV.EncMapInt16Uint8V(*v, fastpathCheckNilTrue, e)
  1192. case map[int16]uint16:
  1193. fastpathTV.EncMapInt16Uint16V(v, fastpathCheckNilTrue, e)
  1194. case *map[int16]uint16:
  1195. fastpathTV.EncMapInt16Uint16V(*v, fastpathCheckNilTrue, e)
  1196. case map[int16]uint32:
  1197. fastpathTV.EncMapInt16Uint32V(v, fastpathCheckNilTrue, e)
  1198. case *map[int16]uint32:
  1199. fastpathTV.EncMapInt16Uint32V(*v, fastpathCheckNilTrue, e)
  1200. case map[int16]uint64:
  1201. fastpathTV.EncMapInt16Uint64V(v, fastpathCheckNilTrue, e)
  1202. case *map[int16]uint64:
  1203. fastpathTV.EncMapInt16Uint64V(*v, fastpathCheckNilTrue, e)
  1204. case map[int16]uintptr:
  1205. fastpathTV.EncMapInt16UintptrV(v, fastpathCheckNilTrue, e)
  1206. case *map[int16]uintptr:
  1207. fastpathTV.EncMapInt16UintptrV(*v, fastpathCheckNilTrue, e)
  1208. case map[int16]int:
  1209. fastpathTV.EncMapInt16IntV(v, fastpathCheckNilTrue, e)
  1210. case *map[int16]int:
  1211. fastpathTV.EncMapInt16IntV(*v, fastpathCheckNilTrue, e)
  1212. case map[int16]int8:
  1213. fastpathTV.EncMapInt16Int8V(v, fastpathCheckNilTrue, e)
  1214. case *map[int16]int8:
  1215. fastpathTV.EncMapInt16Int8V(*v, fastpathCheckNilTrue, e)
  1216. case map[int16]int16:
  1217. fastpathTV.EncMapInt16Int16V(v, fastpathCheckNilTrue, e)
  1218. case *map[int16]int16:
  1219. fastpathTV.EncMapInt16Int16V(*v, fastpathCheckNilTrue, e)
  1220. case map[int16]int32:
  1221. fastpathTV.EncMapInt16Int32V(v, fastpathCheckNilTrue, e)
  1222. case *map[int16]int32:
  1223. fastpathTV.EncMapInt16Int32V(*v, fastpathCheckNilTrue, e)
  1224. case map[int16]int64:
  1225. fastpathTV.EncMapInt16Int64V(v, fastpathCheckNilTrue, e)
  1226. case *map[int16]int64:
  1227. fastpathTV.EncMapInt16Int64V(*v, fastpathCheckNilTrue, e)
  1228. case map[int16]float32:
  1229. fastpathTV.EncMapInt16Float32V(v, fastpathCheckNilTrue, e)
  1230. case *map[int16]float32:
  1231. fastpathTV.EncMapInt16Float32V(*v, fastpathCheckNilTrue, e)
  1232. case map[int16]float64:
  1233. fastpathTV.EncMapInt16Float64V(v, fastpathCheckNilTrue, e)
  1234. case *map[int16]float64:
  1235. fastpathTV.EncMapInt16Float64V(*v, fastpathCheckNilTrue, e)
  1236. case map[int16]bool:
  1237. fastpathTV.EncMapInt16BoolV(v, fastpathCheckNilTrue, e)
  1238. case *map[int16]bool:
  1239. fastpathTV.EncMapInt16BoolV(*v, fastpathCheckNilTrue, e)
  1240. case []int32:
  1241. fastpathTV.EncSliceInt32V(v, fastpathCheckNilTrue, e)
  1242. case *[]int32:
  1243. fastpathTV.EncSliceInt32V(*v, fastpathCheckNilTrue, e)
  1244. case map[int32]interface{}:
  1245. fastpathTV.EncMapInt32IntfV(v, fastpathCheckNilTrue, e)
  1246. case *map[int32]interface{}:
  1247. fastpathTV.EncMapInt32IntfV(*v, fastpathCheckNilTrue, e)
  1248. case map[int32]string:
  1249. fastpathTV.EncMapInt32StringV(v, fastpathCheckNilTrue, e)
  1250. case *map[int32]string:
  1251. fastpathTV.EncMapInt32StringV(*v, fastpathCheckNilTrue, e)
  1252. case map[int32]uint:
  1253. fastpathTV.EncMapInt32UintV(v, fastpathCheckNilTrue, e)
  1254. case *map[int32]uint:
  1255. fastpathTV.EncMapInt32UintV(*v, fastpathCheckNilTrue, e)
  1256. case map[int32]uint8:
  1257. fastpathTV.EncMapInt32Uint8V(v, fastpathCheckNilTrue, e)
  1258. case *map[int32]uint8:
  1259. fastpathTV.EncMapInt32Uint8V(*v, fastpathCheckNilTrue, e)
  1260. case map[int32]uint16:
  1261. fastpathTV.EncMapInt32Uint16V(v, fastpathCheckNilTrue, e)
  1262. case *map[int32]uint16:
  1263. fastpathTV.EncMapInt32Uint16V(*v, fastpathCheckNilTrue, e)
  1264. case map[int32]uint32:
  1265. fastpathTV.EncMapInt32Uint32V(v, fastpathCheckNilTrue, e)
  1266. case *map[int32]uint32:
  1267. fastpathTV.EncMapInt32Uint32V(*v, fastpathCheckNilTrue, e)
  1268. case map[int32]uint64:
  1269. fastpathTV.EncMapInt32Uint64V(v, fastpathCheckNilTrue, e)
  1270. case *map[int32]uint64:
  1271. fastpathTV.EncMapInt32Uint64V(*v, fastpathCheckNilTrue, e)
  1272. case map[int32]uintptr:
  1273. fastpathTV.EncMapInt32UintptrV(v, fastpathCheckNilTrue, e)
  1274. case *map[int32]uintptr:
  1275. fastpathTV.EncMapInt32UintptrV(*v, fastpathCheckNilTrue, e)
  1276. case map[int32]int:
  1277. fastpathTV.EncMapInt32IntV(v, fastpathCheckNilTrue, e)
  1278. case *map[int32]int:
  1279. fastpathTV.EncMapInt32IntV(*v, fastpathCheckNilTrue, e)
  1280. case map[int32]int8:
  1281. fastpathTV.EncMapInt32Int8V(v, fastpathCheckNilTrue, e)
  1282. case *map[int32]int8:
  1283. fastpathTV.EncMapInt32Int8V(*v, fastpathCheckNilTrue, e)
  1284. case map[int32]int16:
  1285. fastpathTV.EncMapInt32Int16V(v, fastpathCheckNilTrue, e)
  1286. case *map[int32]int16:
  1287. fastpathTV.EncMapInt32Int16V(*v, fastpathCheckNilTrue, e)
  1288. case map[int32]int32:
  1289. fastpathTV.EncMapInt32Int32V(v, fastpathCheckNilTrue, e)
  1290. case *map[int32]int32:
  1291. fastpathTV.EncMapInt32Int32V(*v, fastpathCheckNilTrue, e)
  1292. case map[int32]int64:
  1293. fastpathTV.EncMapInt32Int64V(v, fastpathCheckNilTrue, e)
  1294. case *map[int32]int64:
  1295. fastpathTV.EncMapInt32Int64V(*v, fastpathCheckNilTrue, e)
  1296. case map[int32]float32:
  1297. fastpathTV.EncMapInt32Float32V(v, fastpathCheckNilTrue, e)
  1298. case *map[int32]float32:
  1299. fastpathTV.EncMapInt32Float32V(*v, fastpathCheckNilTrue, e)
  1300. case map[int32]float64:
  1301. fastpathTV.EncMapInt32Float64V(v, fastpathCheckNilTrue, e)
  1302. case *map[int32]float64:
  1303. fastpathTV.EncMapInt32Float64V(*v, fastpathCheckNilTrue, e)
  1304. case map[int32]bool:
  1305. fastpathTV.EncMapInt32BoolV(v, fastpathCheckNilTrue, e)
  1306. case *map[int32]bool:
  1307. fastpathTV.EncMapInt32BoolV(*v, fastpathCheckNilTrue, e)
  1308. case []int64:
  1309. fastpathTV.EncSliceInt64V(v, fastpathCheckNilTrue, e)
  1310. case *[]int64:
  1311. fastpathTV.EncSliceInt64V(*v, fastpathCheckNilTrue, e)
  1312. case map[int64]interface{}:
  1313. fastpathTV.EncMapInt64IntfV(v, fastpathCheckNilTrue, e)
  1314. case *map[int64]interface{}:
  1315. fastpathTV.EncMapInt64IntfV(*v, fastpathCheckNilTrue, e)
  1316. case map[int64]string:
  1317. fastpathTV.EncMapInt64StringV(v, fastpathCheckNilTrue, e)
  1318. case *map[int64]string:
  1319. fastpathTV.EncMapInt64StringV(*v, fastpathCheckNilTrue, e)
  1320. case map[int64]uint:
  1321. fastpathTV.EncMapInt64UintV(v, fastpathCheckNilTrue, e)
  1322. case *map[int64]uint:
  1323. fastpathTV.EncMapInt64UintV(*v, fastpathCheckNilTrue, e)
  1324. case map[int64]uint8:
  1325. fastpathTV.EncMapInt64Uint8V(v, fastpathCheckNilTrue, e)
  1326. case *map[int64]uint8:
  1327. fastpathTV.EncMapInt64Uint8V(*v, fastpathCheckNilTrue, e)
  1328. case map[int64]uint16:
  1329. fastpathTV.EncMapInt64Uint16V(v, fastpathCheckNilTrue, e)
  1330. case *map[int64]uint16:
  1331. fastpathTV.EncMapInt64Uint16V(*v, fastpathCheckNilTrue, e)
  1332. case map[int64]uint32:
  1333. fastpathTV.EncMapInt64Uint32V(v, fastpathCheckNilTrue, e)
  1334. case *map[int64]uint32:
  1335. fastpathTV.EncMapInt64Uint32V(*v, fastpathCheckNilTrue, e)
  1336. case map[int64]uint64:
  1337. fastpathTV.EncMapInt64Uint64V(v, fastpathCheckNilTrue, e)
  1338. case *map[int64]uint64:
  1339. fastpathTV.EncMapInt64Uint64V(*v, fastpathCheckNilTrue, e)
  1340. case map[int64]uintptr:
  1341. fastpathTV.EncMapInt64UintptrV(v, fastpathCheckNilTrue, e)
  1342. case *map[int64]uintptr:
  1343. fastpathTV.EncMapInt64UintptrV(*v, fastpathCheckNilTrue, e)
  1344. case map[int64]int:
  1345. fastpathTV.EncMapInt64IntV(v, fastpathCheckNilTrue, e)
  1346. case *map[int64]int:
  1347. fastpathTV.EncMapInt64IntV(*v, fastpathCheckNilTrue, e)
  1348. case map[int64]int8:
  1349. fastpathTV.EncMapInt64Int8V(v, fastpathCheckNilTrue, e)
  1350. case *map[int64]int8:
  1351. fastpathTV.EncMapInt64Int8V(*v, fastpathCheckNilTrue, e)
  1352. case map[int64]int16:
  1353. fastpathTV.EncMapInt64Int16V(v, fastpathCheckNilTrue, e)
  1354. case *map[int64]int16:
  1355. fastpathTV.EncMapInt64Int16V(*v, fastpathCheckNilTrue, e)
  1356. case map[int64]int32:
  1357. fastpathTV.EncMapInt64Int32V(v, fastpathCheckNilTrue, e)
  1358. case *map[int64]int32:
  1359. fastpathTV.EncMapInt64Int32V(*v, fastpathCheckNilTrue, e)
  1360. case map[int64]int64:
  1361. fastpathTV.EncMapInt64Int64V(v, fastpathCheckNilTrue, e)
  1362. case *map[int64]int64:
  1363. fastpathTV.EncMapInt64Int64V(*v, fastpathCheckNilTrue, e)
  1364. case map[int64]float32:
  1365. fastpathTV.EncMapInt64Float32V(v, fastpathCheckNilTrue, e)
  1366. case *map[int64]float32:
  1367. fastpathTV.EncMapInt64Float32V(*v, fastpathCheckNilTrue, e)
  1368. case map[int64]float64:
  1369. fastpathTV.EncMapInt64Float64V(v, fastpathCheckNilTrue, e)
  1370. case *map[int64]float64:
  1371. fastpathTV.EncMapInt64Float64V(*v, fastpathCheckNilTrue, e)
  1372. case map[int64]bool:
  1373. fastpathTV.EncMapInt64BoolV(v, fastpathCheckNilTrue, e)
  1374. case *map[int64]bool:
  1375. fastpathTV.EncMapInt64BoolV(*v, fastpathCheckNilTrue, e)
  1376. case []bool:
  1377. fastpathTV.EncSliceBoolV(v, fastpathCheckNilTrue, e)
  1378. case *[]bool:
  1379. fastpathTV.EncSliceBoolV(*v, fastpathCheckNilTrue, e)
  1380. case map[bool]interface{}:
  1381. fastpathTV.EncMapBoolIntfV(v, fastpathCheckNilTrue, e)
  1382. case *map[bool]interface{}:
  1383. fastpathTV.EncMapBoolIntfV(*v, fastpathCheckNilTrue, e)
  1384. case map[bool]string:
  1385. fastpathTV.EncMapBoolStringV(v, fastpathCheckNilTrue, e)
  1386. case *map[bool]string:
  1387. fastpathTV.EncMapBoolStringV(*v, fastpathCheckNilTrue, e)
  1388. case map[bool]uint:
  1389. fastpathTV.EncMapBoolUintV(v, fastpathCheckNilTrue, e)
  1390. case *map[bool]uint:
  1391. fastpathTV.EncMapBoolUintV(*v, fastpathCheckNilTrue, e)
  1392. case map[bool]uint8:
  1393. fastpathTV.EncMapBoolUint8V(v, fastpathCheckNilTrue, e)
  1394. case *map[bool]uint8:
  1395. fastpathTV.EncMapBoolUint8V(*v, fastpathCheckNilTrue, e)
  1396. case map[bool]uint16:
  1397. fastpathTV.EncMapBoolUint16V(v, fastpathCheckNilTrue, e)
  1398. case *map[bool]uint16:
  1399. fastpathTV.EncMapBoolUint16V(*v, fastpathCheckNilTrue, e)
  1400. case map[bool]uint32:
  1401. fastpathTV.EncMapBoolUint32V(v, fastpathCheckNilTrue, e)
  1402. case *map[bool]uint32:
  1403. fastpathTV.EncMapBoolUint32V(*v, fastpathCheckNilTrue, e)
  1404. case map[bool]uint64:
  1405. fastpathTV.EncMapBoolUint64V(v, fastpathCheckNilTrue, e)
  1406. case *map[bool]uint64:
  1407. fastpathTV.EncMapBoolUint64V(*v, fastpathCheckNilTrue, e)
  1408. case map[bool]uintptr:
  1409. fastpathTV.EncMapBoolUintptrV(v, fastpathCheckNilTrue, e)
  1410. case *map[bool]uintptr:
  1411. fastpathTV.EncMapBoolUintptrV(*v, fastpathCheckNilTrue, e)
  1412. case map[bool]int:
  1413. fastpathTV.EncMapBoolIntV(v, fastpathCheckNilTrue, e)
  1414. case *map[bool]int:
  1415. fastpathTV.EncMapBoolIntV(*v, fastpathCheckNilTrue, e)
  1416. case map[bool]int8:
  1417. fastpathTV.EncMapBoolInt8V(v, fastpathCheckNilTrue, e)
  1418. case *map[bool]int8:
  1419. fastpathTV.EncMapBoolInt8V(*v, fastpathCheckNilTrue, e)
  1420. case map[bool]int16:
  1421. fastpathTV.EncMapBoolInt16V(v, fastpathCheckNilTrue, e)
  1422. case *map[bool]int16:
  1423. fastpathTV.EncMapBoolInt16V(*v, fastpathCheckNilTrue, e)
  1424. case map[bool]int32:
  1425. fastpathTV.EncMapBoolInt32V(v, fastpathCheckNilTrue, e)
  1426. case *map[bool]int32:
  1427. fastpathTV.EncMapBoolInt32V(*v, fastpathCheckNilTrue, e)
  1428. case map[bool]int64:
  1429. fastpathTV.EncMapBoolInt64V(v, fastpathCheckNilTrue, e)
  1430. case *map[bool]int64:
  1431. fastpathTV.EncMapBoolInt64V(*v, fastpathCheckNilTrue, e)
  1432. case map[bool]float32:
  1433. fastpathTV.EncMapBoolFloat32V(v, fastpathCheckNilTrue, e)
  1434. case *map[bool]float32:
  1435. fastpathTV.EncMapBoolFloat32V(*v, fastpathCheckNilTrue, e)
  1436. case map[bool]float64:
  1437. fastpathTV.EncMapBoolFloat64V(v, fastpathCheckNilTrue, e)
  1438. case *map[bool]float64:
  1439. fastpathTV.EncMapBoolFloat64V(*v, fastpathCheckNilTrue, e)
  1440. case map[bool]bool:
  1441. fastpathTV.EncMapBoolBoolV(v, fastpathCheckNilTrue, e)
  1442. case *map[bool]bool:
  1443. fastpathTV.EncMapBoolBoolV(*v, fastpathCheckNilTrue, e)
  1444. default:
  1445. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1446. return false
  1447. }
  1448. return true
  1449. }
  1450. func fastpathEncodeTypeSwitchSlice(iv interface{}, e *Encoder) bool {
  1451. if !fastpathEnabled {
  1452. return false
  1453. }
  1454. switch v := iv.(type) {
  1455. case []interface{}:
  1456. fastpathTV.EncSliceIntfV(v, fastpathCheckNilTrue, e)
  1457. case *[]interface{}:
  1458. fastpathTV.EncSliceIntfV(*v, fastpathCheckNilTrue, e)
  1459. case []string:
  1460. fastpathTV.EncSliceStringV(v, fastpathCheckNilTrue, e)
  1461. case *[]string:
  1462. fastpathTV.EncSliceStringV(*v, fastpathCheckNilTrue, e)
  1463. case []float32:
  1464. fastpathTV.EncSliceFloat32V(v, fastpathCheckNilTrue, e)
  1465. case *[]float32:
  1466. fastpathTV.EncSliceFloat32V(*v, fastpathCheckNilTrue, e)
  1467. case []float64:
  1468. fastpathTV.EncSliceFloat64V(v, fastpathCheckNilTrue, e)
  1469. case *[]float64:
  1470. fastpathTV.EncSliceFloat64V(*v, fastpathCheckNilTrue, e)
  1471. case []uint:
  1472. fastpathTV.EncSliceUintV(v, fastpathCheckNilTrue, e)
  1473. case *[]uint:
  1474. fastpathTV.EncSliceUintV(*v, fastpathCheckNilTrue, e)
  1475. case []uint16:
  1476. fastpathTV.EncSliceUint16V(v, fastpathCheckNilTrue, e)
  1477. case *[]uint16:
  1478. fastpathTV.EncSliceUint16V(*v, fastpathCheckNilTrue, e)
  1479. case []uint32:
  1480. fastpathTV.EncSliceUint32V(v, fastpathCheckNilTrue, e)
  1481. case *[]uint32:
  1482. fastpathTV.EncSliceUint32V(*v, fastpathCheckNilTrue, e)
  1483. case []uint64:
  1484. fastpathTV.EncSliceUint64V(v, fastpathCheckNilTrue, e)
  1485. case *[]uint64:
  1486. fastpathTV.EncSliceUint64V(*v, fastpathCheckNilTrue, e)
  1487. case []uintptr:
  1488. fastpathTV.EncSliceUintptrV(v, fastpathCheckNilTrue, e)
  1489. case *[]uintptr:
  1490. fastpathTV.EncSliceUintptrV(*v, fastpathCheckNilTrue, e)
  1491. case []int:
  1492. fastpathTV.EncSliceIntV(v, fastpathCheckNilTrue, e)
  1493. case *[]int:
  1494. fastpathTV.EncSliceIntV(*v, fastpathCheckNilTrue, e)
  1495. case []int8:
  1496. fastpathTV.EncSliceInt8V(v, fastpathCheckNilTrue, e)
  1497. case *[]int8:
  1498. fastpathTV.EncSliceInt8V(*v, fastpathCheckNilTrue, e)
  1499. case []int16:
  1500. fastpathTV.EncSliceInt16V(v, fastpathCheckNilTrue, e)
  1501. case *[]int16:
  1502. fastpathTV.EncSliceInt16V(*v, fastpathCheckNilTrue, e)
  1503. case []int32:
  1504. fastpathTV.EncSliceInt32V(v, fastpathCheckNilTrue, e)
  1505. case *[]int32:
  1506. fastpathTV.EncSliceInt32V(*v, fastpathCheckNilTrue, e)
  1507. case []int64:
  1508. fastpathTV.EncSliceInt64V(v, fastpathCheckNilTrue, e)
  1509. case *[]int64:
  1510. fastpathTV.EncSliceInt64V(*v, fastpathCheckNilTrue, e)
  1511. case []bool:
  1512. fastpathTV.EncSliceBoolV(v, fastpathCheckNilTrue, e)
  1513. case *[]bool:
  1514. fastpathTV.EncSliceBoolV(*v, fastpathCheckNilTrue, e)
  1515. default:
  1516. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1517. return false
  1518. }
  1519. return true
  1520. }
  1521. func fastpathEncodeTypeSwitchMap(iv interface{}, e *Encoder) bool {
  1522. if !fastpathEnabled {
  1523. return false
  1524. }
  1525. switch v := iv.(type) {
  1526. case map[interface{}]interface{}:
  1527. fastpathTV.EncMapIntfIntfV(v, fastpathCheckNilTrue, e)
  1528. case *map[interface{}]interface{}:
  1529. fastpathTV.EncMapIntfIntfV(*v, fastpathCheckNilTrue, e)
  1530. case map[interface{}]string:
  1531. fastpathTV.EncMapIntfStringV(v, fastpathCheckNilTrue, e)
  1532. case *map[interface{}]string:
  1533. fastpathTV.EncMapIntfStringV(*v, fastpathCheckNilTrue, e)
  1534. case map[interface{}]uint:
  1535. fastpathTV.EncMapIntfUintV(v, fastpathCheckNilTrue, e)
  1536. case *map[interface{}]uint:
  1537. fastpathTV.EncMapIntfUintV(*v, fastpathCheckNilTrue, e)
  1538. case map[interface{}]uint8:
  1539. fastpathTV.EncMapIntfUint8V(v, fastpathCheckNilTrue, e)
  1540. case *map[interface{}]uint8:
  1541. fastpathTV.EncMapIntfUint8V(*v, fastpathCheckNilTrue, e)
  1542. case map[interface{}]uint16:
  1543. fastpathTV.EncMapIntfUint16V(v, fastpathCheckNilTrue, e)
  1544. case *map[interface{}]uint16:
  1545. fastpathTV.EncMapIntfUint16V(*v, fastpathCheckNilTrue, e)
  1546. case map[interface{}]uint32:
  1547. fastpathTV.EncMapIntfUint32V(v, fastpathCheckNilTrue, e)
  1548. case *map[interface{}]uint32:
  1549. fastpathTV.EncMapIntfUint32V(*v, fastpathCheckNilTrue, e)
  1550. case map[interface{}]uint64:
  1551. fastpathTV.EncMapIntfUint64V(v, fastpathCheckNilTrue, e)
  1552. case *map[interface{}]uint64:
  1553. fastpathTV.EncMapIntfUint64V(*v, fastpathCheckNilTrue, e)
  1554. case map[interface{}]uintptr:
  1555. fastpathTV.EncMapIntfUintptrV(v, fastpathCheckNilTrue, e)
  1556. case *map[interface{}]uintptr:
  1557. fastpathTV.EncMapIntfUintptrV(*v, fastpathCheckNilTrue, e)
  1558. case map[interface{}]int:
  1559. fastpathTV.EncMapIntfIntV(v, fastpathCheckNilTrue, e)
  1560. case *map[interface{}]int:
  1561. fastpathTV.EncMapIntfIntV(*v, fastpathCheckNilTrue, e)
  1562. case map[interface{}]int8:
  1563. fastpathTV.EncMapIntfInt8V(v, fastpathCheckNilTrue, e)
  1564. case *map[interface{}]int8:
  1565. fastpathTV.EncMapIntfInt8V(*v, fastpathCheckNilTrue, e)
  1566. case map[interface{}]int16:
  1567. fastpathTV.EncMapIntfInt16V(v, fastpathCheckNilTrue, e)
  1568. case *map[interface{}]int16:
  1569. fastpathTV.EncMapIntfInt16V(*v, fastpathCheckNilTrue, e)
  1570. case map[interface{}]int32:
  1571. fastpathTV.EncMapIntfInt32V(v, fastpathCheckNilTrue, e)
  1572. case *map[interface{}]int32:
  1573. fastpathTV.EncMapIntfInt32V(*v, fastpathCheckNilTrue, e)
  1574. case map[interface{}]int64:
  1575. fastpathTV.EncMapIntfInt64V(v, fastpathCheckNilTrue, e)
  1576. case *map[interface{}]int64:
  1577. fastpathTV.EncMapIntfInt64V(*v, fastpathCheckNilTrue, e)
  1578. case map[interface{}]float32:
  1579. fastpathTV.EncMapIntfFloat32V(v, fastpathCheckNilTrue, e)
  1580. case *map[interface{}]float32:
  1581. fastpathTV.EncMapIntfFloat32V(*v, fastpathCheckNilTrue, e)
  1582. case map[interface{}]float64:
  1583. fastpathTV.EncMapIntfFloat64V(v, fastpathCheckNilTrue, e)
  1584. case *map[interface{}]float64:
  1585. fastpathTV.EncMapIntfFloat64V(*v, fastpathCheckNilTrue, e)
  1586. case map[interface{}]bool:
  1587. fastpathTV.EncMapIntfBoolV(v, fastpathCheckNilTrue, e)
  1588. case *map[interface{}]bool:
  1589. fastpathTV.EncMapIntfBoolV(*v, fastpathCheckNilTrue, e)
  1590. case map[string]interface{}:
  1591. fastpathTV.EncMapStringIntfV(v, fastpathCheckNilTrue, e)
  1592. case *map[string]interface{}:
  1593. fastpathTV.EncMapStringIntfV(*v, fastpathCheckNilTrue, e)
  1594. case map[string]string:
  1595. fastpathTV.EncMapStringStringV(v, fastpathCheckNilTrue, e)
  1596. case *map[string]string:
  1597. fastpathTV.EncMapStringStringV(*v, fastpathCheckNilTrue, e)
  1598. case map[string]uint:
  1599. fastpathTV.EncMapStringUintV(v, fastpathCheckNilTrue, e)
  1600. case *map[string]uint:
  1601. fastpathTV.EncMapStringUintV(*v, fastpathCheckNilTrue, e)
  1602. case map[string]uint8:
  1603. fastpathTV.EncMapStringUint8V(v, fastpathCheckNilTrue, e)
  1604. case *map[string]uint8:
  1605. fastpathTV.EncMapStringUint8V(*v, fastpathCheckNilTrue, e)
  1606. case map[string]uint16:
  1607. fastpathTV.EncMapStringUint16V(v, fastpathCheckNilTrue, e)
  1608. case *map[string]uint16:
  1609. fastpathTV.EncMapStringUint16V(*v, fastpathCheckNilTrue, e)
  1610. case map[string]uint32:
  1611. fastpathTV.EncMapStringUint32V(v, fastpathCheckNilTrue, e)
  1612. case *map[string]uint32:
  1613. fastpathTV.EncMapStringUint32V(*v, fastpathCheckNilTrue, e)
  1614. case map[string]uint64:
  1615. fastpathTV.EncMapStringUint64V(v, fastpathCheckNilTrue, e)
  1616. case *map[string]uint64:
  1617. fastpathTV.EncMapStringUint64V(*v, fastpathCheckNilTrue, e)
  1618. case map[string]uintptr:
  1619. fastpathTV.EncMapStringUintptrV(v, fastpathCheckNilTrue, e)
  1620. case *map[string]uintptr:
  1621. fastpathTV.EncMapStringUintptrV(*v, fastpathCheckNilTrue, e)
  1622. case map[string]int:
  1623. fastpathTV.EncMapStringIntV(v, fastpathCheckNilTrue, e)
  1624. case *map[string]int:
  1625. fastpathTV.EncMapStringIntV(*v, fastpathCheckNilTrue, e)
  1626. case map[string]int8:
  1627. fastpathTV.EncMapStringInt8V(v, fastpathCheckNilTrue, e)
  1628. case *map[string]int8:
  1629. fastpathTV.EncMapStringInt8V(*v, fastpathCheckNilTrue, e)
  1630. case map[string]int16:
  1631. fastpathTV.EncMapStringInt16V(v, fastpathCheckNilTrue, e)
  1632. case *map[string]int16:
  1633. fastpathTV.EncMapStringInt16V(*v, fastpathCheckNilTrue, e)
  1634. case map[string]int32:
  1635. fastpathTV.EncMapStringInt32V(v, fastpathCheckNilTrue, e)
  1636. case *map[string]int32:
  1637. fastpathTV.EncMapStringInt32V(*v, fastpathCheckNilTrue, e)
  1638. case map[string]int64:
  1639. fastpathTV.EncMapStringInt64V(v, fastpathCheckNilTrue, e)
  1640. case *map[string]int64:
  1641. fastpathTV.EncMapStringInt64V(*v, fastpathCheckNilTrue, e)
  1642. case map[string]float32:
  1643. fastpathTV.EncMapStringFloat32V(v, fastpathCheckNilTrue, e)
  1644. case *map[string]float32:
  1645. fastpathTV.EncMapStringFloat32V(*v, fastpathCheckNilTrue, e)
  1646. case map[string]float64:
  1647. fastpathTV.EncMapStringFloat64V(v, fastpathCheckNilTrue, e)
  1648. case *map[string]float64:
  1649. fastpathTV.EncMapStringFloat64V(*v, fastpathCheckNilTrue, e)
  1650. case map[string]bool:
  1651. fastpathTV.EncMapStringBoolV(v, fastpathCheckNilTrue, e)
  1652. case *map[string]bool:
  1653. fastpathTV.EncMapStringBoolV(*v, fastpathCheckNilTrue, e)
  1654. case map[float32]interface{}:
  1655. fastpathTV.EncMapFloat32IntfV(v, fastpathCheckNilTrue, e)
  1656. case *map[float32]interface{}:
  1657. fastpathTV.EncMapFloat32IntfV(*v, fastpathCheckNilTrue, e)
  1658. case map[float32]string:
  1659. fastpathTV.EncMapFloat32StringV(v, fastpathCheckNilTrue, e)
  1660. case *map[float32]string:
  1661. fastpathTV.EncMapFloat32StringV(*v, fastpathCheckNilTrue, e)
  1662. case map[float32]uint:
  1663. fastpathTV.EncMapFloat32UintV(v, fastpathCheckNilTrue, e)
  1664. case *map[float32]uint:
  1665. fastpathTV.EncMapFloat32UintV(*v, fastpathCheckNilTrue, e)
  1666. case map[float32]uint8:
  1667. fastpathTV.EncMapFloat32Uint8V(v, fastpathCheckNilTrue, e)
  1668. case *map[float32]uint8:
  1669. fastpathTV.EncMapFloat32Uint8V(*v, fastpathCheckNilTrue, e)
  1670. case map[float32]uint16:
  1671. fastpathTV.EncMapFloat32Uint16V(v, fastpathCheckNilTrue, e)
  1672. case *map[float32]uint16:
  1673. fastpathTV.EncMapFloat32Uint16V(*v, fastpathCheckNilTrue, e)
  1674. case map[float32]uint32:
  1675. fastpathTV.EncMapFloat32Uint32V(v, fastpathCheckNilTrue, e)
  1676. case *map[float32]uint32:
  1677. fastpathTV.EncMapFloat32Uint32V(*v, fastpathCheckNilTrue, e)
  1678. case map[float32]uint64:
  1679. fastpathTV.EncMapFloat32Uint64V(v, fastpathCheckNilTrue, e)
  1680. case *map[float32]uint64:
  1681. fastpathTV.EncMapFloat32Uint64V(*v, fastpathCheckNilTrue, e)
  1682. case map[float32]uintptr:
  1683. fastpathTV.EncMapFloat32UintptrV(v, fastpathCheckNilTrue, e)
  1684. case *map[float32]uintptr:
  1685. fastpathTV.EncMapFloat32UintptrV(*v, fastpathCheckNilTrue, e)
  1686. case map[float32]int:
  1687. fastpathTV.EncMapFloat32IntV(v, fastpathCheckNilTrue, e)
  1688. case *map[float32]int:
  1689. fastpathTV.EncMapFloat32IntV(*v, fastpathCheckNilTrue, e)
  1690. case map[float32]int8:
  1691. fastpathTV.EncMapFloat32Int8V(v, fastpathCheckNilTrue, e)
  1692. case *map[float32]int8:
  1693. fastpathTV.EncMapFloat32Int8V(*v, fastpathCheckNilTrue, e)
  1694. case map[float32]int16:
  1695. fastpathTV.EncMapFloat32Int16V(v, fastpathCheckNilTrue, e)
  1696. case *map[float32]int16:
  1697. fastpathTV.EncMapFloat32Int16V(*v, fastpathCheckNilTrue, e)
  1698. case map[float32]int32:
  1699. fastpathTV.EncMapFloat32Int32V(v, fastpathCheckNilTrue, e)
  1700. case *map[float32]int32:
  1701. fastpathTV.EncMapFloat32Int32V(*v, fastpathCheckNilTrue, e)
  1702. case map[float32]int64:
  1703. fastpathTV.EncMapFloat32Int64V(v, fastpathCheckNilTrue, e)
  1704. case *map[float32]int64:
  1705. fastpathTV.EncMapFloat32Int64V(*v, fastpathCheckNilTrue, e)
  1706. case map[float32]float32:
  1707. fastpathTV.EncMapFloat32Float32V(v, fastpathCheckNilTrue, e)
  1708. case *map[float32]float32:
  1709. fastpathTV.EncMapFloat32Float32V(*v, fastpathCheckNilTrue, e)
  1710. case map[float32]float64:
  1711. fastpathTV.EncMapFloat32Float64V(v, fastpathCheckNilTrue, e)
  1712. case *map[float32]float64:
  1713. fastpathTV.EncMapFloat32Float64V(*v, fastpathCheckNilTrue, e)
  1714. case map[float32]bool:
  1715. fastpathTV.EncMapFloat32BoolV(v, fastpathCheckNilTrue, e)
  1716. case *map[float32]bool:
  1717. fastpathTV.EncMapFloat32BoolV(*v, fastpathCheckNilTrue, e)
  1718. case map[float64]interface{}:
  1719. fastpathTV.EncMapFloat64IntfV(v, fastpathCheckNilTrue, e)
  1720. case *map[float64]interface{}:
  1721. fastpathTV.EncMapFloat64IntfV(*v, fastpathCheckNilTrue, e)
  1722. case map[float64]string:
  1723. fastpathTV.EncMapFloat64StringV(v, fastpathCheckNilTrue, e)
  1724. case *map[float64]string:
  1725. fastpathTV.EncMapFloat64StringV(*v, fastpathCheckNilTrue, e)
  1726. case map[float64]uint:
  1727. fastpathTV.EncMapFloat64UintV(v, fastpathCheckNilTrue, e)
  1728. case *map[float64]uint:
  1729. fastpathTV.EncMapFloat64UintV(*v, fastpathCheckNilTrue, e)
  1730. case map[float64]uint8:
  1731. fastpathTV.EncMapFloat64Uint8V(v, fastpathCheckNilTrue, e)
  1732. case *map[float64]uint8:
  1733. fastpathTV.EncMapFloat64Uint8V(*v, fastpathCheckNilTrue, e)
  1734. case map[float64]uint16:
  1735. fastpathTV.EncMapFloat64Uint16V(v, fastpathCheckNilTrue, e)
  1736. case *map[float64]uint16:
  1737. fastpathTV.EncMapFloat64Uint16V(*v, fastpathCheckNilTrue, e)
  1738. case map[float64]uint32:
  1739. fastpathTV.EncMapFloat64Uint32V(v, fastpathCheckNilTrue, e)
  1740. case *map[float64]uint32:
  1741. fastpathTV.EncMapFloat64Uint32V(*v, fastpathCheckNilTrue, e)
  1742. case map[float64]uint64:
  1743. fastpathTV.EncMapFloat64Uint64V(v, fastpathCheckNilTrue, e)
  1744. case *map[float64]uint64:
  1745. fastpathTV.EncMapFloat64Uint64V(*v, fastpathCheckNilTrue, e)
  1746. case map[float64]uintptr:
  1747. fastpathTV.EncMapFloat64UintptrV(v, fastpathCheckNilTrue, e)
  1748. case *map[float64]uintptr:
  1749. fastpathTV.EncMapFloat64UintptrV(*v, fastpathCheckNilTrue, e)
  1750. case map[float64]int:
  1751. fastpathTV.EncMapFloat64IntV(v, fastpathCheckNilTrue, e)
  1752. case *map[float64]int:
  1753. fastpathTV.EncMapFloat64IntV(*v, fastpathCheckNilTrue, e)
  1754. case map[float64]int8:
  1755. fastpathTV.EncMapFloat64Int8V(v, fastpathCheckNilTrue, e)
  1756. case *map[float64]int8:
  1757. fastpathTV.EncMapFloat64Int8V(*v, fastpathCheckNilTrue, e)
  1758. case map[float64]int16:
  1759. fastpathTV.EncMapFloat64Int16V(v, fastpathCheckNilTrue, e)
  1760. case *map[float64]int16:
  1761. fastpathTV.EncMapFloat64Int16V(*v, fastpathCheckNilTrue, e)
  1762. case map[float64]int32:
  1763. fastpathTV.EncMapFloat64Int32V(v, fastpathCheckNilTrue, e)
  1764. case *map[float64]int32:
  1765. fastpathTV.EncMapFloat64Int32V(*v, fastpathCheckNilTrue, e)
  1766. case map[float64]int64:
  1767. fastpathTV.EncMapFloat64Int64V(v, fastpathCheckNilTrue, e)
  1768. case *map[float64]int64:
  1769. fastpathTV.EncMapFloat64Int64V(*v, fastpathCheckNilTrue, e)
  1770. case map[float64]float32:
  1771. fastpathTV.EncMapFloat64Float32V(v, fastpathCheckNilTrue, e)
  1772. case *map[float64]float32:
  1773. fastpathTV.EncMapFloat64Float32V(*v, fastpathCheckNilTrue, e)
  1774. case map[float64]float64:
  1775. fastpathTV.EncMapFloat64Float64V(v, fastpathCheckNilTrue, e)
  1776. case *map[float64]float64:
  1777. fastpathTV.EncMapFloat64Float64V(*v, fastpathCheckNilTrue, e)
  1778. case map[float64]bool:
  1779. fastpathTV.EncMapFloat64BoolV(v, fastpathCheckNilTrue, e)
  1780. case *map[float64]bool:
  1781. fastpathTV.EncMapFloat64BoolV(*v, fastpathCheckNilTrue, e)
  1782. case map[uint]interface{}:
  1783. fastpathTV.EncMapUintIntfV(v, fastpathCheckNilTrue, e)
  1784. case *map[uint]interface{}:
  1785. fastpathTV.EncMapUintIntfV(*v, fastpathCheckNilTrue, e)
  1786. case map[uint]string:
  1787. fastpathTV.EncMapUintStringV(v, fastpathCheckNilTrue, e)
  1788. case *map[uint]string:
  1789. fastpathTV.EncMapUintStringV(*v, fastpathCheckNilTrue, e)
  1790. case map[uint]uint:
  1791. fastpathTV.EncMapUintUintV(v, fastpathCheckNilTrue, e)
  1792. case *map[uint]uint:
  1793. fastpathTV.EncMapUintUintV(*v, fastpathCheckNilTrue, e)
  1794. case map[uint]uint8:
  1795. fastpathTV.EncMapUintUint8V(v, fastpathCheckNilTrue, e)
  1796. case *map[uint]uint8:
  1797. fastpathTV.EncMapUintUint8V(*v, fastpathCheckNilTrue, e)
  1798. case map[uint]uint16:
  1799. fastpathTV.EncMapUintUint16V(v, fastpathCheckNilTrue, e)
  1800. case *map[uint]uint16:
  1801. fastpathTV.EncMapUintUint16V(*v, fastpathCheckNilTrue, e)
  1802. case map[uint]uint32:
  1803. fastpathTV.EncMapUintUint32V(v, fastpathCheckNilTrue, e)
  1804. case *map[uint]uint32:
  1805. fastpathTV.EncMapUintUint32V(*v, fastpathCheckNilTrue, e)
  1806. case map[uint]uint64:
  1807. fastpathTV.EncMapUintUint64V(v, fastpathCheckNilTrue, e)
  1808. case *map[uint]uint64:
  1809. fastpathTV.EncMapUintUint64V(*v, fastpathCheckNilTrue, e)
  1810. case map[uint]uintptr:
  1811. fastpathTV.EncMapUintUintptrV(v, fastpathCheckNilTrue, e)
  1812. case *map[uint]uintptr:
  1813. fastpathTV.EncMapUintUintptrV(*v, fastpathCheckNilTrue, e)
  1814. case map[uint]int:
  1815. fastpathTV.EncMapUintIntV(v, fastpathCheckNilTrue, e)
  1816. case *map[uint]int:
  1817. fastpathTV.EncMapUintIntV(*v, fastpathCheckNilTrue, e)
  1818. case map[uint]int8:
  1819. fastpathTV.EncMapUintInt8V(v, fastpathCheckNilTrue, e)
  1820. case *map[uint]int8:
  1821. fastpathTV.EncMapUintInt8V(*v, fastpathCheckNilTrue, e)
  1822. case map[uint]int16:
  1823. fastpathTV.EncMapUintInt16V(v, fastpathCheckNilTrue, e)
  1824. case *map[uint]int16:
  1825. fastpathTV.EncMapUintInt16V(*v, fastpathCheckNilTrue, e)
  1826. case map[uint]int32:
  1827. fastpathTV.EncMapUintInt32V(v, fastpathCheckNilTrue, e)
  1828. case *map[uint]int32:
  1829. fastpathTV.EncMapUintInt32V(*v, fastpathCheckNilTrue, e)
  1830. case map[uint]int64:
  1831. fastpathTV.EncMapUintInt64V(v, fastpathCheckNilTrue, e)
  1832. case *map[uint]int64:
  1833. fastpathTV.EncMapUintInt64V(*v, fastpathCheckNilTrue, e)
  1834. case map[uint]float32:
  1835. fastpathTV.EncMapUintFloat32V(v, fastpathCheckNilTrue, e)
  1836. case *map[uint]float32:
  1837. fastpathTV.EncMapUintFloat32V(*v, fastpathCheckNilTrue, e)
  1838. case map[uint]float64:
  1839. fastpathTV.EncMapUintFloat64V(v, fastpathCheckNilTrue, e)
  1840. case *map[uint]float64:
  1841. fastpathTV.EncMapUintFloat64V(*v, fastpathCheckNilTrue, e)
  1842. case map[uint]bool:
  1843. fastpathTV.EncMapUintBoolV(v, fastpathCheckNilTrue, e)
  1844. case *map[uint]bool:
  1845. fastpathTV.EncMapUintBoolV(*v, fastpathCheckNilTrue, e)
  1846. case map[uint8]interface{}:
  1847. fastpathTV.EncMapUint8IntfV(v, fastpathCheckNilTrue, e)
  1848. case *map[uint8]interface{}:
  1849. fastpathTV.EncMapUint8IntfV(*v, fastpathCheckNilTrue, e)
  1850. case map[uint8]string:
  1851. fastpathTV.EncMapUint8StringV(v, fastpathCheckNilTrue, e)
  1852. case *map[uint8]string:
  1853. fastpathTV.EncMapUint8StringV(*v, fastpathCheckNilTrue, e)
  1854. case map[uint8]uint:
  1855. fastpathTV.EncMapUint8UintV(v, fastpathCheckNilTrue, e)
  1856. case *map[uint8]uint:
  1857. fastpathTV.EncMapUint8UintV(*v, fastpathCheckNilTrue, e)
  1858. case map[uint8]uint8:
  1859. fastpathTV.EncMapUint8Uint8V(v, fastpathCheckNilTrue, e)
  1860. case *map[uint8]uint8:
  1861. fastpathTV.EncMapUint8Uint8V(*v, fastpathCheckNilTrue, e)
  1862. case map[uint8]uint16:
  1863. fastpathTV.EncMapUint8Uint16V(v, fastpathCheckNilTrue, e)
  1864. case *map[uint8]uint16:
  1865. fastpathTV.EncMapUint8Uint16V(*v, fastpathCheckNilTrue, e)
  1866. case map[uint8]uint32:
  1867. fastpathTV.EncMapUint8Uint32V(v, fastpathCheckNilTrue, e)
  1868. case *map[uint8]uint32:
  1869. fastpathTV.EncMapUint8Uint32V(*v, fastpathCheckNilTrue, e)
  1870. case map[uint8]uint64:
  1871. fastpathTV.EncMapUint8Uint64V(v, fastpathCheckNilTrue, e)
  1872. case *map[uint8]uint64:
  1873. fastpathTV.EncMapUint8Uint64V(*v, fastpathCheckNilTrue, e)
  1874. case map[uint8]uintptr:
  1875. fastpathTV.EncMapUint8UintptrV(v, fastpathCheckNilTrue, e)
  1876. case *map[uint8]uintptr:
  1877. fastpathTV.EncMapUint8UintptrV(*v, fastpathCheckNilTrue, e)
  1878. case map[uint8]int:
  1879. fastpathTV.EncMapUint8IntV(v, fastpathCheckNilTrue, e)
  1880. case *map[uint8]int:
  1881. fastpathTV.EncMapUint8IntV(*v, fastpathCheckNilTrue, e)
  1882. case map[uint8]int8:
  1883. fastpathTV.EncMapUint8Int8V(v, fastpathCheckNilTrue, e)
  1884. case *map[uint8]int8:
  1885. fastpathTV.EncMapUint8Int8V(*v, fastpathCheckNilTrue, e)
  1886. case map[uint8]int16:
  1887. fastpathTV.EncMapUint8Int16V(v, fastpathCheckNilTrue, e)
  1888. case *map[uint8]int16:
  1889. fastpathTV.EncMapUint8Int16V(*v, fastpathCheckNilTrue, e)
  1890. case map[uint8]int32:
  1891. fastpathTV.EncMapUint8Int32V(v, fastpathCheckNilTrue, e)
  1892. case *map[uint8]int32:
  1893. fastpathTV.EncMapUint8Int32V(*v, fastpathCheckNilTrue, e)
  1894. case map[uint8]int64:
  1895. fastpathTV.EncMapUint8Int64V(v, fastpathCheckNilTrue, e)
  1896. case *map[uint8]int64:
  1897. fastpathTV.EncMapUint8Int64V(*v, fastpathCheckNilTrue, e)
  1898. case map[uint8]float32:
  1899. fastpathTV.EncMapUint8Float32V(v, fastpathCheckNilTrue, e)
  1900. case *map[uint8]float32:
  1901. fastpathTV.EncMapUint8Float32V(*v, fastpathCheckNilTrue, e)
  1902. case map[uint8]float64:
  1903. fastpathTV.EncMapUint8Float64V(v, fastpathCheckNilTrue, e)
  1904. case *map[uint8]float64:
  1905. fastpathTV.EncMapUint8Float64V(*v, fastpathCheckNilTrue, e)
  1906. case map[uint8]bool:
  1907. fastpathTV.EncMapUint8BoolV(v, fastpathCheckNilTrue, e)
  1908. case *map[uint8]bool:
  1909. fastpathTV.EncMapUint8BoolV(*v, fastpathCheckNilTrue, e)
  1910. case map[uint16]interface{}:
  1911. fastpathTV.EncMapUint16IntfV(v, fastpathCheckNilTrue, e)
  1912. case *map[uint16]interface{}:
  1913. fastpathTV.EncMapUint16IntfV(*v, fastpathCheckNilTrue, e)
  1914. case map[uint16]string:
  1915. fastpathTV.EncMapUint16StringV(v, fastpathCheckNilTrue, e)
  1916. case *map[uint16]string:
  1917. fastpathTV.EncMapUint16StringV(*v, fastpathCheckNilTrue, e)
  1918. case map[uint16]uint:
  1919. fastpathTV.EncMapUint16UintV(v, fastpathCheckNilTrue, e)
  1920. case *map[uint16]uint:
  1921. fastpathTV.EncMapUint16UintV(*v, fastpathCheckNilTrue, e)
  1922. case map[uint16]uint8:
  1923. fastpathTV.EncMapUint16Uint8V(v, fastpathCheckNilTrue, e)
  1924. case *map[uint16]uint8:
  1925. fastpathTV.EncMapUint16Uint8V(*v, fastpathCheckNilTrue, e)
  1926. case map[uint16]uint16:
  1927. fastpathTV.EncMapUint16Uint16V(v, fastpathCheckNilTrue, e)
  1928. case *map[uint16]uint16:
  1929. fastpathTV.EncMapUint16Uint16V(*v, fastpathCheckNilTrue, e)
  1930. case map[uint16]uint32:
  1931. fastpathTV.EncMapUint16Uint32V(v, fastpathCheckNilTrue, e)
  1932. case *map[uint16]uint32:
  1933. fastpathTV.EncMapUint16Uint32V(*v, fastpathCheckNilTrue, e)
  1934. case map[uint16]uint64:
  1935. fastpathTV.EncMapUint16Uint64V(v, fastpathCheckNilTrue, e)
  1936. case *map[uint16]uint64:
  1937. fastpathTV.EncMapUint16Uint64V(*v, fastpathCheckNilTrue, e)
  1938. case map[uint16]uintptr:
  1939. fastpathTV.EncMapUint16UintptrV(v, fastpathCheckNilTrue, e)
  1940. case *map[uint16]uintptr:
  1941. fastpathTV.EncMapUint16UintptrV(*v, fastpathCheckNilTrue, e)
  1942. case map[uint16]int:
  1943. fastpathTV.EncMapUint16IntV(v, fastpathCheckNilTrue, e)
  1944. case *map[uint16]int:
  1945. fastpathTV.EncMapUint16IntV(*v, fastpathCheckNilTrue, e)
  1946. case map[uint16]int8:
  1947. fastpathTV.EncMapUint16Int8V(v, fastpathCheckNilTrue, e)
  1948. case *map[uint16]int8:
  1949. fastpathTV.EncMapUint16Int8V(*v, fastpathCheckNilTrue, e)
  1950. case map[uint16]int16:
  1951. fastpathTV.EncMapUint16Int16V(v, fastpathCheckNilTrue, e)
  1952. case *map[uint16]int16:
  1953. fastpathTV.EncMapUint16Int16V(*v, fastpathCheckNilTrue, e)
  1954. case map[uint16]int32:
  1955. fastpathTV.EncMapUint16Int32V(v, fastpathCheckNilTrue, e)
  1956. case *map[uint16]int32:
  1957. fastpathTV.EncMapUint16Int32V(*v, fastpathCheckNilTrue, e)
  1958. case map[uint16]int64:
  1959. fastpathTV.EncMapUint16Int64V(v, fastpathCheckNilTrue, e)
  1960. case *map[uint16]int64:
  1961. fastpathTV.EncMapUint16Int64V(*v, fastpathCheckNilTrue, e)
  1962. case map[uint16]float32:
  1963. fastpathTV.EncMapUint16Float32V(v, fastpathCheckNilTrue, e)
  1964. case *map[uint16]float32:
  1965. fastpathTV.EncMapUint16Float32V(*v, fastpathCheckNilTrue, e)
  1966. case map[uint16]float64:
  1967. fastpathTV.EncMapUint16Float64V(v, fastpathCheckNilTrue, e)
  1968. case *map[uint16]float64:
  1969. fastpathTV.EncMapUint16Float64V(*v, fastpathCheckNilTrue, e)
  1970. case map[uint16]bool:
  1971. fastpathTV.EncMapUint16BoolV(v, fastpathCheckNilTrue, e)
  1972. case *map[uint16]bool:
  1973. fastpathTV.EncMapUint16BoolV(*v, fastpathCheckNilTrue, e)
  1974. case map[uint32]interface{}:
  1975. fastpathTV.EncMapUint32IntfV(v, fastpathCheckNilTrue, e)
  1976. case *map[uint32]interface{}:
  1977. fastpathTV.EncMapUint32IntfV(*v, fastpathCheckNilTrue, e)
  1978. case map[uint32]string:
  1979. fastpathTV.EncMapUint32StringV(v, fastpathCheckNilTrue, e)
  1980. case *map[uint32]string:
  1981. fastpathTV.EncMapUint32StringV(*v, fastpathCheckNilTrue, e)
  1982. case map[uint32]uint:
  1983. fastpathTV.EncMapUint32UintV(v, fastpathCheckNilTrue, e)
  1984. case *map[uint32]uint:
  1985. fastpathTV.EncMapUint32UintV(*v, fastpathCheckNilTrue, e)
  1986. case map[uint32]uint8:
  1987. fastpathTV.EncMapUint32Uint8V(v, fastpathCheckNilTrue, e)
  1988. case *map[uint32]uint8:
  1989. fastpathTV.EncMapUint32Uint8V(*v, fastpathCheckNilTrue, e)
  1990. case map[uint32]uint16:
  1991. fastpathTV.EncMapUint32Uint16V(v, fastpathCheckNilTrue, e)
  1992. case *map[uint32]uint16:
  1993. fastpathTV.EncMapUint32Uint16V(*v, fastpathCheckNilTrue, e)
  1994. case map[uint32]uint32:
  1995. fastpathTV.EncMapUint32Uint32V(v, fastpathCheckNilTrue, e)
  1996. case *map[uint32]uint32:
  1997. fastpathTV.EncMapUint32Uint32V(*v, fastpathCheckNilTrue, e)
  1998. case map[uint32]uint64:
  1999. fastpathTV.EncMapUint32Uint64V(v, fastpathCheckNilTrue, e)
  2000. case *map[uint32]uint64:
  2001. fastpathTV.EncMapUint32Uint64V(*v, fastpathCheckNilTrue, e)
  2002. case map[uint32]uintptr:
  2003. fastpathTV.EncMapUint32UintptrV(v, fastpathCheckNilTrue, e)
  2004. case *map[uint32]uintptr:
  2005. fastpathTV.EncMapUint32UintptrV(*v, fastpathCheckNilTrue, e)
  2006. case map[uint32]int:
  2007. fastpathTV.EncMapUint32IntV(v, fastpathCheckNilTrue, e)
  2008. case *map[uint32]int:
  2009. fastpathTV.EncMapUint32IntV(*v, fastpathCheckNilTrue, e)
  2010. case map[uint32]int8:
  2011. fastpathTV.EncMapUint32Int8V(v, fastpathCheckNilTrue, e)
  2012. case *map[uint32]int8:
  2013. fastpathTV.EncMapUint32Int8V(*v, fastpathCheckNilTrue, e)
  2014. case map[uint32]int16:
  2015. fastpathTV.EncMapUint32Int16V(v, fastpathCheckNilTrue, e)
  2016. case *map[uint32]int16:
  2017. fastpathTV.EncMapUint32Int16V(*v, fastpathCheckNilTrue, e)
  2018. case map[uint32]int32:
  2019. fastpathTV.EncMapUint32Int32V(v, fastpathCheckNilTrue, e)
  2020. case *map[uint32]int32:
  2021. fastpathTV.EncMapUint32Int32V(*v, fastpathCheckNilTrue, e)
  2022. case map[uint32]int64:
  2023. fastpathTV.EncMapUint32Int64V(v, fastpathCheckNilTrue, e)
  2024. case *map[uint32]int64:
  2025. fastpathTV.EncMapUint32Int64V(*v, fastpathCheckNilTrue, e)
  2026. case map[uint32]float32:
  2027. fastpathTV.EncMapUint32Float32V(v, fastpathCheckNilTrue, e)
  2028. case *map[uint32]float32:
  2029. fastpathTV.EncMapUint32Float32V(*v, fastpathCheckNilTrue, e)
  2030. case map[uint32]float64:
  2031. fastpathTV.EncMapUint32Float64V(v, fastpathCheckNilTrue, e)
  2032. case *map[uint32]float64:
  2033. fastpathTV.EncMapUint32Float64V(*v, fastpathCheckNilTrue, e)
  2034. case map[uint32]bool:
  2035. fastpathTV.EncMapUint32BoolV(v, fastpathCheckNilTrue, e)
  2036. case *map[uint32]bool:
  2037. fastpathTV.EncMapUint32BoolV(*v, fastpathCheckNilTrue, e)
  2038. case map[uint64]interface{}:
  2039. fastpathTV.EncMapUint64IntfV(v, fastpathCheckNilTrue, e)
  2040. case *map[uint64]interface{}:
  2041. fastpathTV.EncMapUint64IntfV(*v, fastpathCheckNilTrue, e)
  2042. case map[uint64]string:
  2043. fastpathTV.EncMapUint64StringV(v, fastpathCheckNilTrue, e)
  2044. case *map[uint64]string:
  2045. fastpathTV.EncMapUint64StringV(*v, fastpathCheckNilTrue, e)
  2046. case map[uint64]uint:
  2047. fastpathTV.EncMapUint64UintV(v, fastpathCheckNilTrue, e)
  2048. case *map[uint64]uint:
  2049. fastpathTV.EncMapUint64UintV(*v, fastpathCheckNilTrue, e)
  2050. case map[uint64]uint8:
  2051. fastpathTV.EncMapUint64Uint8V(v, fastpathCheckNilTrue, e)
  2052. case *map[uint64]uint8:
  2053. fastpathTV.EncMapUint64Uint8V(*v, fastpathCheckNilTrue, e)
  2054. case map[uint64]uint16:
  2055. fastpathTV.EncMapUint64Uint16V(v, fastpathCheckNilTrue, e)
  2056. case *map[uint64]uint16:
  2057. fastpathTV.EncMapUint64Uint16V(*v, fastpathCheckNilTrue, e)
  2058. case map[uint64]uint32:
  2059. fastpathTV.EncMapUint64Uint32V(v, fastpathCheckNilTrue, e)
  2060. case *map[uint64]uint32:
  2061. fastpathTV.EncMapUint64Uint32V(*v, fastpathCheckNilTrue, e)
  2062. case map[uint64]uint64:
  2063. fastpathTV.EncMapUint64Uint64V(v, fastpathCheckNilTrue, e)
  2064. case *map[uint64]uint64:
  2065. fastpathTV.EncMapUint64Uint64V(*v, fastpathCheckNilTrue, e)
  2066. case map[uint64]uintptr:
  2067. fastpathTV.EncMapUint64UintptrV(v, fastpathCheckNilTrue, e)
  2068. case *map[uint64]uintptr:
  2069. fastpathTV.EncMapUint64UintptrV(*v, fastpathCheckNilTrue, e)
  2070. case map[uint64]int:
  2071. fastpathTV.EncMapUint64IntV(v, fastpathCheckNilTrue, e)
  2072. case *map[uint64]int:
  2073. fastpathTV.EncMapUint64IntV(*v, fastpathCheckNilTrue, e)
  2074. case map[uint64]int8:
  2075. fastpathTV.EncMapUint64Int8V(v, fastpathCheckNilTrue, e)
  2076. case *map[uint64]int8:
  2077. fastpathTV.EncMapUint64Int8V(*v, fastpathCheckNilTrue, e)
  2078. case map[uint64]int16:
  2079. fastpathTV.EncMapUint64Int16V(v, fastpathCheckNilTrue, e)
  2080. case *map[uint64]int16:
  2081. fastpathTV.EncMapUint64Int16V(*v, fastpathCheckNilTrue, e)
  2082. case map[uint64]int32:
  2083. fastpathTV.EncMapUint64Int32V(v, fastpathCheckNilTrue, e)
  2084. case *map[uint64]int32:
  2085. fastpathTV.EncMapUint64Int32V(*v, fastpathCheckNilTrue, e)
  2086. case map[uint64]int64:
  2087. fastpathTV.EncMapUint64Int64V(v, fastpathCheckNilTrue, e)
  2088. case *map[uint64]int64:
  2089. fastpathTV.EncMapUint64Int64V(*v, fastpathCheckNilTrue, e)
  2090. case map[uint64]float32:
  2091. fastpathTV.EncMapUint64Float32V(v, fastpathCheckNilTrue, e)
  2092. case *map[uint64]float32:
  2093. fastpathTV.EncMapUint64Float32V(*v, fastpathCheckNilTrue, e)
  2094. case map[uint64]float64:
  2095. fastpathTV.EncMapUint64Float64V(v, fastpathCheckNilTrue, e)
  2096. case *map[uint64]float64:
  2097. fastpathTV.EncMapUint64Float64V(*v, fastpathCheckNilTrue, e)
  2098. case map[uint64]bool:
  2099. fastpathTV.EncMapUint64BoolV(v, fastpathCheckNilTrue, e)
  2100. case *map[uint64]bool:
  2101. fastpathTV.EncMapUint64BoolV(*v, fastpathCheckNilTrue, e)
  2102. case map[uintptr]interface{}:
  2103. fastpathTV.EncMapUintptrIntfV(v, fastpathCheckNilTrue, e)
  2104. case *map[uintptr]interface{}:
  2105. fastpathTV.EncMapUintptrIntfV(*v, fastpathCheckNilTrue, e)
  2106. case map[uintptr]string:
  2107. fastpathTV.EncMapUintptrStringV(v, fastpathCheckNilTrue, e)
  2108. case *map[uintptr]string:
  2109. fastpathTV.EncMapUintptrStringV(*v, fastpathCheckNilTrue, e)
  2110. case map[uintptr]uint:
  2111. fastpathTV.EncMapUintptrUintV(v, fastpathCheckNilTrue, e)
  2112. case *map[uintptr]uint:
  2113. fastpathTV.EncMapUintptrUintV(*v, fastpathCheckNilTrue, e)
  2114. case map[uintptr]uint8:
  2115. fastpathTV.EncMapUintptrUint8V(v, fastpathCheckNilTrue, e)
  2116. case *map[uintptr]uint8:
  2117. fastpathTV.EncMapUintptrUint8V(*v, fastpathCheckNilTrue, e)
  2118. case map[uintptr]uint16:
  2119. fastpathTV.EncMapUintptrUint16V(v, fastpathCheckNilTrue, e)
  2120. case *map[uintptr]uint16:
  2121. fastpathTV.EncMapUintptrUint16V(*v, fastpathCheckNilTrue, e)
  2122. case map[uintptr]uint32:
  2123. fastpathTV.EncMapUintptrUint32V(v, fastpathCheckNilTrue, e)
  2124. case *map[uintptr]uint32:
  2125. fastpathTV.EncMapUintptrUint32V(*v, fastpathCheckNilTrue, e)
  2126. case map[uintptr]uint64:
  2127. fastpathTV.EncMapUintptrUint64V(v, fastpathCheckNilTrue, e)
  2128. case *map[uintptr]uint64:
  2129. fastpathTV.EncMapUintptrUint64V(*v, fastpathCheckNilTrue, e)
  2130. case map[uintptr]uintptr:
  2131. fastpathTV.EncMapUintptrUintptrV(v, fastpathCheckNilTrue, e)
  2132. case *map[uintptr]uintptr:
  2133. fastpathTV.EncMapUintptrUintptrV(*v, fastpathCheckNilTrue, e)
  2134. case map[uintptr]int:
  2135. fastpathTV.EncMapUintptrIntV(v, fastpathCheckNilTrue, e)
  2136. case *map[uintptr]int:
  2137. fastpathTV.EncMapUintptrIntV(*v, fastpathCheckNilTrue, e)
  2138. case map[uintptr]int8:
  2139. fastpathTV.EncMapUintptrInt8V(v, fastpathCheckNilTrue, e)
  2140. case *map[uintptr]int8:
  2141. fastpathTV.EncMapUintptrInt8V(*v, fastpathCheckNilTrue, e)
  2142. case map[uintptr]int16:
  2143. fastpathTV.EncMapUintptrInt16V(v, fastpathCheckNilTrue, e)
  2144. case *map[uintptr]int16:
  2145. fastpathTV.EncMapUintptrInt16V(*v, fastpathCheckNilTrue, e)
  2146. case map[uintptr]int32:
  2147. fastpathTV.EncMapUintptrInt32V(v, fastpathCheckNilTrue, e)
  2148. case *map[uintptr]int32:
  2149. fastpathTV.EncMapUintptrInt32V(*v, fastpathCheckNilTrue, e)
  2150. case map[uintptr]int64:
  2151. fastpathTV.EncMapUintptrInt64V(v, fastpathCheckNilTrue, e)
  2152. case *map[uintptr]int64:
  2153. fastpathTV.EncMapUintptrInt64V(*v, fastpathCheckNilTrue, e)
  2154. case map[uintptr]float32:
  2155. fastpathTV.EncMapUintptrFloat32V(v, fastpathCheckNilTrue, e)
  2156. case *map[uintptr]float32:
  2157. fastpathTV.EncMapUintptrFloat32V(*v, fastpathCheckNilTrue, e)
  2158. case map[uintptr]float64:
  2159. fastpathTV.EncMapUintptrFloat64V(v, fastpathCheckNilTrue, e)
  2160. case *map[uintptr]float64:
  2161. fastpathTV.EncMapUintptrFloat64V(*v, fastpathCheckNilTrue, e)
  2162. case map[uintptr]bool:
  2163. fastpathTV.EncMapUintptrBoolV(v, fastpathCheckNilTrue, e)
  2164. case *map[uintptr]bool:
  2165. fastpathTV.EncMapUintptrBoolV(*v, fastpathCheckNilTrue, e)
  2166. case map[int]interface{}:
  2167. fastpathTV.EncMapIntIntfV(v, fastpathCheckNilTrue, e)
  2168. case *map[int]interface{}:
  2169. fastpathTV.EncMapIntIntfV(*v, fastpathCheckNilTrue, e)
  2170. case map[int]string:
  2171. fastpathTV.EncMapIntStringV(v, fastpathCheckNilTrue, e)
  2172. case *map[int]string:
  2173. fastpathTV.EncMapIntStringV(*v, fastpathCheckNilTrue, e)
  2174. case map[int]uint:
  2175. fastpathTV.EncMapIntUintV(v, fastpathCheckNilTrue, e)
  2176. case *map[int]uint:
  2177. fastpathTV.EncMapIntUintV(*v, fastpathCheckNilTrue, e)
  2178. case map[int]uint8:
  2179. fastpathTV.EncMapIntUint8V(v, fastpathCheckNilTrue, e)
  2180. case *map[int]uint8:
  2181. fastpathTV.EncMapIntUint8V(*v, fastpathCheckNilTrue, e)
  2182. case map[int]uint16:
  2183. fastpathTV.EncMapIntUint16V(v, fastpathCheckNilTrue, e)
  2184. case *map[int]uint16:
  2185. fastpathTV.EncMapIntUint16V(*v, fastpathCheckNilTrue, e)
  2186. case map[int]uint32:
  2187. fastpathTV.EncMapIntUint32V(v, fastpathCheckNilTrue, e)
  2188. case *map[int]uint32:
  2189. fastpathTV.EncMapIntUint32V(*v, fastpathCheckNilTrue, e)
  2190. case map[int]uint64:
  2191. fastpathTV.EncMapIntUint64V(v, fastpathCheckNilTrue, e)
  2192. case *map[int]uint64:
  2193. fastpathTV.EncMapIntUint64V(*v, fastpathCheckNilTrue, e)
  2194. case map[int]uintptr:
  2195. fastpathTV.EncMapIntUintptrV(v, fastpathCheckNilTrue, e)
  2196. case *map[int]uintptr:
  2197. fastpathTV.EncMapIntUintptrV(*v, fastpathCheckNilTrue, e)
  2198. case map[int]int:
  2199. fastpathTV.EncMapIntIntV(v, fastpathCheckNilTrue, e)
  2200. case *map[int]int:
  2201. fastpathTV.EncMapIntIntV(*v, fastpathCheckNilTrue, e)
  2202. case map[int]int8:
  2203. fastpathTV.EncMapIntInt8V(v, fastpathCheckNilTrue, e)
  2204. case *map[int]int8:
  2205. fastpathTV.EncMapIntInt8V(*v, fastpathCheckNilTrue, e)
  2206. case map[int]int16:
  2207. fastpathTV.EncMapIntInt16V(v, fastpathCheckNilTrue, e)
  2208. case *map[int]int16:
  2209. fastpathTV.EncMapIntInt16V(*v, fastpathCheckNilTrue, e)
  2210. case map[int]int32:
  2211. fastpathTV.EncMapIntInt32V(v, fastpathCheckNilTrue, e)
  2212. case *map[int]int32:
  2213. fastpathTV.EncMapIntInt32V(*v, fastpathCheckNilTrue, e)
  2214. case map[int]int64:
  2215. fastpathTV.EncMapIntInt64V(v, fastpathCheckNilTrue, e)
  2216. case *map[int]int64:
  2217. fastpathTV.EncMapIntInt64V(*v, fastpathCheckNilTrue, e)
  2218. case map[int]float32:
  2219. fastpathTV.EncMapIntFloat32V(v, fastpathCheckNilTrue, e)
  2220. case *map[int]float32:
  2221. fastpathTV.EncMapIntFloat32V(*v, fastpathCheckNilTrue, e)
  2222. case map[int]float64:
  2223. fastpathTV.EncMapIntFloat64V(v, fastpathCheckNilTrue, e)
  2224. case *map[int]float64:
  2225. fastpathTV.EncMapIntFloat64V(*v, fastpathCheckNilTrue, e)
  2226. case map[int]bool:
  2227. fastpathTV.EncMapIntBoolV(v, fastpathCheckNilTrue, e)
  2228. case *map[int]bool:
  2229. fastpathTV.EncMapIntBoolV(*v, fastpathCheckNilTrue, e)
  2230. case map[int8]interface{}:
  2231. fastpathTV.EncMapInt8IntfV(v, fastpathCheckNilTrue, e)
  2232. case *map[int8]interface{}:
  2233. fastpathTV.EncMapInt8IntfV(*v, fastpathCheckNilTrue, e)
  2234. case map[int8]string:
  2235. fastpathTV.EncMapInt8StringV(v, fastpathCheckNilTrue, e)
  2236. case *map[int8]string:
  2237. fastpathTV.EncMapInt8StringV(*v, fastpathCheckNilTrue, e)
  2238. case map[int8]uint:
  2239. fastpathTV.EncMapInt8UintV(v, fastpathCheckNilTrue, e)
  2240. case *map[int8]uint:
  2241. fastpathTV.EncMapInt8UintV(*v, fastpathCheckNilTrue, e)
  2242. case map[int8]uint8:
  2243. fastpathTV.EncMapInt8Uint8V(v, fastpathCheckNilTrue, e)
  2244. case *map[int8]uint8:
  2245. fastpathTV.EncMapInt8Uint8V(*v, fastpathCheckNilTrue, e)
  2246. case map[int8]uint16:
  2247. fastpathTV.EncMapInt8Uint16V(v, fastpathCheckNilTrue, e)
  2248. case *map[int8]uint16:
  2249. fastpathTV.EncMapInt8Uint16V(*v, fastpathCheckNilTrue, e)
  2250. case map[int8]uint32:
  2251. fastpathTV.EncMapInt8Uint32V(v, fastpathCheckNilTrue, e)
  2252. case *map[int8]uint32:
  2253. fastpathTV.EncMapInt8Uint32V(*v, fastpathCheckNilTrue, e)
  2254. case map[int8]uint64:
  2255. fastpathTV.EncMapInt8Uint64V(v, fastpathCheckNilTrue, e)
  2256. case *map[int8]uint64:
  2257. fastpathTV.EncMapInt8Uint64V(*v, fastpathCheckNilTrue, e)
  2258. case map[int8]uintptr:
  2259. fastpathTV.EncMapInt8UintptrV(v, fastpathCheckNilTrue, e)
  2260. case *map[int8]uintptr:
  2261. fastpathTV.EncMapInt8UintptrV(*v, fastpathCheckNilTrue, e)
  2262. case map[int8]int:
  2263. fastpathTV.EncMapInt8IntV(v, fastpathCheckNilTrue, e)
  2264. case *map[int8]int:
  2265. fastpathTV.EncMapInt8IntV(*v, fastpathCheckNilTrue, e)
  2266. case map[int8]int8:
  2267. fastpathTV.EncMapInt8Int8V(v, fastpathCheckNilTrue, e)
  2268. case *map[int8]int8:
  2269. fastpathTV.EncMapInt8Int8V(*v, fastpathCheckNilTrue, e)
  2270. case map[int8]int16:
  2271. fastpathTV.EncMapInt8Int16V(v, fastpathCheckNilTrue, e)
  2272. case *map[int8]int16:
  2273. fastpathTV.EncMapInt8Int16V(*v, fastpathCheckNilTrue, e)
  2274. case map[int8]int32:
  2275. fastpathTV.EncMapInt8Int32V(v, fastpathCheckNilTrue, e)
  2276. case *map[int8]int32:
  2277. fastpathTV.EncMapInt8Int32V(*v, fastpathCheckNilTrue, e)
  2278. case map[int8]int64:
  2279. fastpathTV.EncMapInt8Int64V(v, fastpathCheckNilTrue, e)
  2280. case *map[int8]int64:
  2281. fastpathTV.EncMapInt8Int64V(*v, fastpathCheckNilTrue, e)
  2282. case map[int8]float32:
  2283. fastpathTV.EncMapInt8Float32V(v, fastpathCheckNilTrue, e)
  2284. case *map[int8]float32:
  2285. fastpathTV.EncMapInt8Float32V(*v, fastpathCheckNilTrue, e)
  2286. case map[int8]float64:
  2287. fastpathTV.EncMapInt8Float64V(v, fastpathCheckNilTrue, e)
  2288. case *map[int8]float64:
  2289. fastpathTV.EncMapInt8Float64V(*v, fastpathCheckNilTrue, e)
  2290. case map[int8]bool:
  2291. fastpathTV.EncMapInt8BoolV(v, fastpathCheckNilTrue, e)
  2292. case *map[int8]bool:
  2293. fastpathTV.EncMapInt8BoolV(*v, fastpathCheckNilTrue, e)
  2294. case map[int16]interface{}:
  2295. fastpathTV.EncMapInt16IntfV(v, fastpathCheckNilTrue, e)
  2296. case *map[int16]interface{}:
  2297. fastpathTV.EncMapInt16IntfV(*v, fastpathCheckNilTrue, e)
  2298. case map[int16]string:
  2299. fastpathTV.EncMapInt16StringV(v, fastpathCheckNilTrue, e)
  2300. case *map[int16]string:
  2301. fastpathTV.EncMapInt16StringV(*v, fastpathCheckNilTrue, e)
  2302. case map[int16]uint:
  2303. fastpathTV.EncMapInt16UintV(v, fastpathCheckNilTrue, e)
  2304. case *map[int16]uint:
  2305. fastpathTV.EncMapInt16UintV(*v, fastpathCheckNilTrue, e)
  2306. case map[int16]uint8:
  2307. fastpathTV.EncMapInt16Uint8V(v, fastpathCheckNilTrue, e)
  2308. case *map[int16]uint8:
  2309. fastpathTV.EncMapInt16Uint8V(*v, fastpathCheckNilTrue, e)
  2310. case map[int16]uint16:
  2311. fastpathTV.EncMapInt16Uint16V(v, fastpathCheckNilTrue, e)
  2312. case *map[int16]uint16:
  2313. fastpathTV.EncMapInt16Uint16V(*v, fastpathCheckNilTrue, e)
  2314. case map[int16]uint32:
  2315. fastpathTV.EncMapInt16Uint32V(v, fastpathCheckNilTrue, e)
  2316. case *map[int16]uint32:
  2317. fastpathTV.EncMapInt16Uint32V(*v, fastpathCheckNilTrue, e)
  2318. case map[int16]uint64:
  2319. fastpathTV.EncMapInt16Uint64V(v, fastpathCheckNilTrue, e)
  2320. case *map[int16]uint64:
  2321. fastpathTV.EncMapInt16Uint64V(*v, fastpathCheckNilTrue, e)
  2322. case map[int16]uintptr:
  2323. fastpathTV.EncMapInt16UintptrV(v, fastpathCheckNilTrue, e)
  2324. case *map[int16]uintptr:
  2325. fastpathTV.EncMapInt16UintptrV(*v, fastpathCheckNilTrue, e)
  2326. case map[int16]int:
  2327. fastpathTV.EncMapInt16IntV(v, fastpathCheckNilTrue, e)
  2328. case *map[int16]int:
  2329. fastpathTV.EncMapInt16IntV(*v, fastpathCheckNilTrue, e)
  2330. case map[int16]int8:
  2331. fastpathTV.EncMapInt16Int8V(v, fastpathCheckNilTrue, e)
  2332. case *map[int16]int8:
  2333. fastpathTV.EncMapInt16Int8V(*v, fastpathCheckNilTrue, e)
  2334. case map[int16]int16:
  2335. fastpathTV.EncMapInt16Int16V(v, fastpathCheckNilTrue, e)
  2336. case *map[int16]int16:
  2337. fastpathTV.EncMapInt16Int16V(*v, fastpathCheckNilTrue, e)
  2338. case map[int16]int32:
  2339. fastpathTV.EncMapInt16Int32V(v, fastpathCheckNilTrue, e)
  2340. case *map[int16]int32:
  2341. fastpathTV.EncMapInt16Int32V(*v, fastpathCheckNilTrue, e)
  2342. case map[int16]int64:
  2343. fastpathTV.EncMapInt16Int64V(v, fastpathCheckNilTrue, e)
  2344. case *map[int16]int64:
  2345. fastpathTV.EncMapInt16Int64V(*v, fastpathCheckNilTrue, e)
  2346. case map[int16]float32:
  2347. fastpathTV.EncMapInt16Float32V(v, fastpathCheckNilTrue, e)
  2348. case *map[int16]float32:
  2349. fastpathTV.EncMapInt16Float32V(*v, fastpathCheckNilTrue, e)
  2350. case map[int16]float64:
  2351. fastpathTV.EncMapInt16Float64V(v, fastpathCheckNilTrue, e)
  2352. case *map[int16]float64:
  2353. fastpathTV.EncMapInt16Float64V(*v, fastpathCheckNilTrue, e)
  2354. case map[int16]bool:
  2355. fastpathTV.EncMapInt16BoolV(v, fastpathCheckNilTrue, e)
  2356. case *map[int16]bool:
  2357. fastpathTV.EncMapInt16BoolV(*v, fastpathCheckNilTrue, e)
  2358. case map[int32]interface{}:
  2359. fastpathTV.EncMapInt32IntfV(v, fastpathCheckNilTrue, e)
  2360. case *map[int32]interface{}:
  2361. fastpathTV.EncMapInt32IntfV(*v, fastpathCheckNilTrue, e)
  2362. case map[int32]string:
  2363. fastpathTV.EncMapInt32StringV(v, fastpathCheckNilTrue, e)
  2364. case *map[int32]string:
  2365. fastpathTV.EncMapInt32StringV(*v, fastpathCheckNilTrue, e)
  2366. case map[int32]uint:
  2367. fastpathTV.EncMapInt32UintV(v, fastpathCheckNilTrue, e)
  2368. case *map[int32]uint:
  2369. fastpathTV.EncMapInt32UintV(*v, fastpathCheckNilTrue, e)
  2370. case map[int32]uint8:
  2371. fastpathTV.EncMapInt32Uint8V(v, fastpathCheckNilTrue, e)
  2372. case *map[int32]uint8:
  2373. fastpathTV.EncMapInt32Uint8V(*v, fastpathCheckNilTrue, e)
  2374. case map[int32]uint16:
  2375. fastpathTV.EncMapInt32Uint16V(v, fastpathCheckNilTrue, e)
  2376. case *map[int32]uint16:
  2377. fastpathTV.EncMapInt32Uint16V(*v, fastpathCheckNilTrue, e)
  2378. case map[int32]uint32:
  2379. fastpathTV.EncMapInt32Uint32V(v, fastpathCheckNilTrue, e)
  2380. case *map[int32]uint32:
  2381. fastpathTV.EncMapInt32Uint32V(*v, fastpathCheckNilTrue, e)
  2382. case map[int32]uint64:
  2383. fastpathTV.EncMapInt32Uint64V(v, fastpathCheckNilTrue, e)
  2384. case *map[int32]uint64:
  2385. fastpathTV.EncMapInt32Uint64V(*v, fastpathCheckNilTrue, e)
  2386. case map[int32]uintptr:
  2387. fastpathTV.EncMapInt32UintptrV(v, fastpathCheckNilTrue, e)
  2388. case *map[int32]uintptr:
  2389. fastpathTV.EncMapInt32UintptrV(*v, fastpathCheckNilTrue, e)
  2390. case map[int32]int:
  2391. fastpathTV.EncMapInt32IntV(v, fastpathCheckNilTrue, e)
  2392. case *map[int32]int:
  2393. fastpathTV.EncMapInt32IntV(*v, fastpathCheckNilTrue, e)
  2394. case map[int32]int8:
  2395. fastpathTV.EncMapInt32Int8V(v, fastpathCheckNilTrue, e)
  2396. case *map[int32]int8:
  2397. fastpathTV.EncMapInt32Int8V(*v, fastpathCheckNilTrue, e)
  2398. case map[int32]int16:
  2399. fastpathTV.EncMapInt32Int16V(v, fastpathCheckNilTrue, e)
  2400. case *map[int32]int16:
  2401. fastpathTV.EncMapInt32Int16V(*v, fastpathCheckNilTrue, e)
  2402. case map[int32]int32:
  2403. fastpathTV.EncMapInt32Int32V(v, fastpathCheckNilTrue, e)
  2404. case *map[int32]int32:
  2405. fastpathTV.EncMapInt32Int32V(*v, fastpathCheckNilTrue, e)
  2406. case map[int32]int64:
  2407. fastpathTV.EncMapInt32Int64V(v, fastpathCheckNilTrue, e)
  2408. case *map[int32]int64:
  2409. fastpathTV.EncMapInt32Int64V(*v, fastpathCheckNilTrue, e)
  2410. case map[int32]float32:
  2411. fastpathTV.EncMapInt32Float32V(v, fastpathCheckNilTrue, e)
  2412. case *map[int32]float32:
  2413. fastpathTV.EncMapInt32Float32V(*v, fastpathCheckNilTrue, e)
  2414. case map[int32]float64:
  2415. fastpathTV.EncMapInt32Float64V(v, fastpathCheckNilTrue, e)
  2416. case *map[int32]float64:
  2417. fastpathTV.EncMapInt32Float64V(*v, fastpathCheckNilTrue, e)
  2418. case map[int32]bool:
  2419. fastpathTV.EncMapInt32BoolV(v, fastpathCheckNilTrue, e)
  2420. case *map[int32]bool:
  2421. fastpathTV.EncMapInt32BoolV(*v, fastpathCheckNilTrue, e)
  2422. case map[int64]interface{}:
  2423. fastpathTV.EncMapInt64IntfV(v, fastpathCheckNilTrue, e)
  2424. case *map[int64]interface{}:
  2425. fastpathTV.EncMapInt64IntfV(*v, fastpathCheckNilTrue, e)
  2426. case map[int64]string:
  2427. fastpathTV.EncMapInt64StringV(v, fastpathCheckNilTrue, e)
  2428. case *map[int64]string:
  2429. fastpathTV.EncMapInt64StringV(*v, fastpathCheckNilTrue, e)
  2430. case map[int64]uint:
  2431. fastpathTV.EncMapInt64UintV(v, fastpathCheckNilTrue, e)
  2432. case *map[int64]uint:
  2433. fastpathTV.EncMapInt64UintV(*v, fastpathCheckNilTrue, e)
  2434. case map[int64]uint8:
  2435. fastpathTV.EncMapInt64Uint8V(v, fastpathCheckNilTrue, e)
  2436. case *map[int64]uint8:
  2437. fastpathTV.EncMapInt64Uint8V(*v, fastpathCheckNilTrue, e)
  2438. case map[int64]uint16:
  2439. fastpathTV.EncMapInt64Uint16V(v, fastpathCheckNilTrue, e)
  2440. case *map[int64]uint16:
  2441. fastpathTV.EncMapInt64Uint16V(*v, fastpathCheckNilTrue, e)
  2442. case map[int64]uint32:
  2443. fastpathTV.EncMapInt64Uint32V(v, fastpathCheckNilTrue, e)
  2444. case *map[int64]uint32:
  2445. fastpathTV.EncMapInt64Uint32V(*v, fastpathCheckNilTrue, e)
  2446. case map[int64]uint64:
  2447. fastpathTV.EncMapInt64Uint64V(v, fastpathCheckNilTrue, e)
  2448. case *map[int64]uint64:
  2449. fastpathTV.EncMapInt64Uint64V(*v, fastpathCheckNilTrue, e)
  2450. case map[int64]uintptr:
  2451. fastpathTV.EncMapInt64UintptrV(v, fastpathCheckNilTrue, e)
  2452. case *map[int64]uintptr:
  2453. fastpathTV.EncMapInt64UintptrV(*v, fastpathCheckNilTrue, e)
  2454. case map[int64]int:
  2455. fastpathTV.EncMapInt64IntV(v, fastpathCheckNilTrue, e)
  2456. case *map[int64]int:
  2457. fastpathTV.EncMapInt64IntV(*v, fastpathCheckNilTrue, e)
  2458. case map[int64]int8:
  2459. fastpathTV.EncMapInt64Int8V(v, fastpathCheckNilTrue, e)
  2460. case *map[int64]int8:
  2461. fastpathTV.EncMapInt64Int8V(*v, fastpathCheckNilTrue, e)
  2462. case map[int64]int16:
  2463. fastpathTV.EncMapInt64Int16V(v, fastpathCheckNilTrue, e)
  2464. case *map[int64]int16:
  2465. fastpathTV.EncMapInt64Int16V(*v, fastpathCheckNilTrue, e)
  2466. case map[int64]int32:
  2467. fastpathTV.EncMapInt64Int32V(v, fastpathCheckNilTrue, e)
  2468. case *map[int64]int32:
  2469. fastpathTV.EncMapInt64Int32V(*v, fastpathCheckNilTrue, e)
  2470. case map[int64]int64:
  2471. fastpathTV.EncMapInt64Int64V(v, fastpathCheckNilTrue, e)
  2472. case *map[int64]int64:
  2473. fastpathTV.EncMapInt64Int64V(*v, fastpathCheckNilTrue, e)
  2474. case map[int64]float32:
  2475. fastpathTV.EncMapInt64Float32V(v, fastpathCheckNilTrue, e)
  2476. case *map[int64]float32:
  2477. fastpathTV.EncMapInt64Float32V(*v, fastpathCheckNilTrue, e)
  2478. case map[int64]float64:
  2479. fastpathTV.EncMapInt64Float64V(v, fastpathCheckNilTrue, e)
  2480. case *map[int64]float64:
  2481. fastpathTV.EncMapInt64Float64V(*v, fastpathCheckNilTrue, e)
  2482. case map[int64]bool:
  2483. fastpathTV.EncMapInt64BoolV(v, fastpathCheckNilTrue, e)
  2484. case *map[int64]bool:
  2485. fastpathTV.EncMapInt64BoolV(*v, fastpathCheckNilTrue, e)
  2486. case map[bool]interface{}:
  2487. fastpathTV.EncMapBoolIntfV(v, fastpathCheckNilTrue, e)
  2488. case *map[bool]interface{}:
  2489. fastpathTV.EncMapBoolIntfV(*v, fastpathCheckNilTrue, e)
  2490. case map[bool]string:
  2491. fastpathTV.EncMapBoolStringV(v, fastpathCheckNilTrue, e)
  2492. case *map[bool]string:
  2493. fastpathTV.EncMapBoolStringV(*v, fastpathCheckNilTrue, e)
  2494. case map[bool]uint:
  2495. fastpathTV.EncMapBoolUintV(v, fastpathCheckNilTrue, e)
  2496. case *map[bool]uint:
  2497. fastpathTV.EncMapBoolUintV(*v, fastpathCheckNilTrue, e)
  2498. case map[bool]uint8:
  2499. fastpathTV.EncMapBoolUint8V(v, fastpathCheckNilTrue, e)
  2500. case *map[bool]uint8:
  2501. fastpathTV.EncMapBoolUint8V(*v, fastpathCheckNilTrue, e)
  2502. case map[bool]uint16:
  2503. fastpathTV.EncMapBoolUint16V(v, fastpathCheckNilTrue, e)
  2504. case *map[bool]uint16:
  2505. fastpathTV.EncMapBoolUint16V(*v, fastpathCheckNilTrue, e)
  2506. case map[bool]uint32:
  2507. fastpathTV.EncMapBoolUint32V(v, fastpathCheckNilTrue, e)
  2508. case *map[bool]uint32:
  2509. fastpathTV.EncMapBoolUint32V(*v, fastpathCheckNilTrue, e)
  2510. case map[bool]uint64:
  2511. fastpathTV.EncMapBoolUint64V(v, fastpathCheckNilTrue, e)
  2512. case *map[bool]uint64:
  2513. fastpathTV.EncMapBoolUint64V(*v, fastpathCheckNilTrue, e)
  2514. case map[bool]uintptr:
  2515. fastpathTV.EncMapBoolUintptrV(v, fastpathCheckNilTrue, e)
  2516. case *map[bool]uintptr:
  2517. fastpathTV.EncMapBoolUintptrV(*v, fastpathCheckNilTrue, e)
  2518. case map[bool]int:
  2519. fastpathTV.EncMapBoolIntV(v, fastpathCheckNilTrue, e)
  2520. case *map[bool]int:
  2521. fastpathTV.EncMapBoolIntV(*v, fastpathCheckNilTrue, e)
  2522. case map[bool]int8:
  2523. fastpathTV.EncMapBoolInt8V(v, fastpathCheckNilTrue, e)
  2524. case *map[bool]int8:
  2525. fastpathTV.EncMapBoolInt8V(*v, fastpathCheckNilTrue, e)
  2526. case map[bool]int16:
  2527. fastpathTV.EncMapBoolInt16V(v, fastpathCheckNilTrue, e)
  2528. case *map[bool]int16:
  2529. fastpathTV.EncMapBoolInt16V(*v, fastpathCheckNilTrue, e)
  2530. case map[bool]int32:
  2531. fastpathTV.EncMapBoolInt32V(v, fastpathCheckNilTrue, e)
  2532. case *map[bool]int32:
  2533. fastpathTV.EncMapBoolInt32V(*v, fastpathCheckNilTrue, e)
  2534. case map[bool]int64:
  2535. fastpathTV.EncMapBoolInt64V(v, fastpathCheckNilTrue, e)
  2536. case *map[bool]int64:
  2537. fastpathTV.EncMapBoolInt64V(*v, fastpathCheckNilTrue, e)
  2538. case map[bool]float32:
  2539. fastpathTV.EncMapBoolFloat32V(v, fastpathCheckNilTrue, e)
  2540. case *map[bool]float32:
  2541. fastpathTV.EncMapBoolFloat32V(*v, fastpathCheckNilTrue, e)
  2542. case map[bool]float64:
  2543. fastpathTV.EncMapBoolFloat64V(v, fastpathCheckNilTrue, e)
  2544. case *map[bool]float64:
  2545. fastpathTV.EncMapBoolFloat64V(*v, fastpathCheckNilTrue, e)
  2546. case map[bool]bool:
  2547. fastpathTV.EncMapBoolBoolV(v, fastpathCheckNilTrue, e)
  2548. case *map[bool]bool:
  2549. fastpathTV.EncMapBoolBoolV(*v, fastpathCheckNilTrue, e)
  2550. default:
  2551. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  2552. return false
  2553. }
  2554. return true
  2555. }
  2556. // -- -- fast path functions
  2557. func (f *encFnInfo) fastpathEncSliceIntfR(rv reflect.Value) {
  2558. fastpathTV.EncSliceIntfV(rv.Interface().([]interface{}), fastpathCheckNilFalse, f.e)
  2559. }
  2560. func (_ fastpathT) EncSliceIntfV(v []interface{}, checkNil bool, e *Encoder) {
  2561. ee := e.e
  2562. cr := e.cr
  2563. if checkNil && v == nil {
  2564. ee.EncodeNil()
  2565. return
  2566. }
  2567. ee.EncodeArrayStart(len(v))
  2568. for _, v2 := range v {
  2569. if cr != nil {
  2570. cr.sendContainerState(containerArrayElem)
  2571. }
  2572. e.encode(v2)
  2573. }
  2574. if cr != nil {
  2575. cr.sendContainerState(containerArrayEnd)
  2576. }
  2577. }
  2578. func (f *encFnInfo) fastpathEncSliceStringR(rv reflect.Value) {
  2579. fastpathTV.EncSliceStringV(rv.Interface().([]string), fastpathCheckNilFalse, f.e)
  2580. }
  2581. func (_ fastpathT) EncSliceStringV(v []string, checkNil bool, e *Encoder) {
  2582. ee := e.e
  2583. cr := e.cr
  2584. if checkNil && v == nil {
  2585. ee.EncodeNil()
  2586. return
  2587. }
  2588. ee.EncodeArrayStart(len(v))
  2589. for _, v2 := range v {
  2590. if cr != nil {
  2591. cr.sendContainerState(containerArrayElem)
  2592. }
  2593. ee.EncodeString(c_UTF8, v2)
  2594. }
  2595. if cr != nil {
  2596. cr.sendContainerState(containerArrayEnd)
  2597. }
  2598. }
  2599. func (f *encFnInfo) fastpathEncSliceFloat32R(rv reflect.Value) {
  2600. fastpathTV.EncSliceFloat32V(rv.Interface().([]float32), fastpathCheckNilFalse, f.e)
  2601. }
  2602. func (_ fastpathT) EncSliceFloat32V(v []float32, checkNil bool, e *Encoder) {
  2603. ee := e.e
  2604. cr := e.cr
  2605. if checkNil && v == nil {
  2606. ee.EncodeNil()
  2607. return
  2608. }
  2609. ee.EncodeArrayStart(len(v))
  2610. for _, v2 := range v {
  2611. if cr != nil {
  2612. cr.sendContainerState(containerArrayElem)
  2613. }
  2614. ee.EncodeFloat32(v2)
  2615. }
  2616. if cr != nil {
  2617. cr.sendContainerState(containerArrayEnd)
  2618. }
  2619. }
  2620. func (f *encFnInfo) fastpathEncSliceFloat64R(rv reflect.Value) {
  2621. fastpathTV.EncSliceFloat64V(rv.Interface().([]float64), fastpathCheckNilFalse, f.e)
  2622. }
  2623. func (_ fastpathT) EncSliceFloat64V(v []float64, checkNil bool, e *Encoder) {
  2624. ee := e.e
  2625. cr := e.cr
  2626. if checkNil && v == nil {
  2627. ee.EncodeNil()
  2628. return
  2629. }
  2630. ee.EncodeArrayStart(len(v))
  2631. for _, v2 := range v {
  2632. if cr != nil {
  2633. cr.sendContainerState(containerArrayElem)
  2634. }
  2635. ee.EncodeFloat64(v2)
  2636. }
  2637. if cr != nil {
  2638. cr.sendContainerState(containerArrayEnd)
  2639. }
  2640. }
  2641. func (f *encFnInfo) fastpathEncSliceUintR(rv reflect.Value) {
  2642. fastpathTV.EncSliceUintV(rv.Interface().([]uint), fastpathCheckNilFalse, f.e)
  2643. }
  2644. func (_ fastpathT) EncSliceUintV(v []uint, checkNil bool, e *Encoder) {
  2645. ee := e.e
  2646. cr := e.cr
  2647. if checkNil && v == nil {
  2648. ee.EncodeNil()
  2649. return
  2650. }
  2651. ee.EncodeArrayStart(len(v))
  2652. for _, v2 := range v {
  2653. if cr != nil {
  2654. cr.sendContainerState(containerArrayElem)
  2655. }
  2656. ee.EncodeUint(uint64(v2))
  2657. }
  2658. if cr != nil {
  2659. cr.sendContainerState(containerArrayEnd)
  2660. }
  2661. }
  2662. func (f *encFnInfo) fastpathEncSliceUint16R(rv reflect.Value) {
  2663. fastpathTV.EncSliceUint16V(rv.Interface().([]uint16), fastpathCheckNilFalse, f.e)
  2664. }
  2665. func (_ fastpathT) EncSliceUint16V(v []uint16, checkNil bool, e *Encoder) {
  2666. ee := e.e
  2667. cr := e.cr
  2668. if checkNil && v == nil {
  2669. ee.EncodeNil()
  2670. return
  2671. }
  2672. ee.EncodeArrayStart(len(v))
  2673. for _, v2 := range v {
  2674. if cr != nil {
  2675. cr.sendContainerState(containerArrayElem)
  2676. }
  2677. ee.EncodeUint(uint64(v2))
  2678. }
  2679. if cr != nil {
  2680. cr.sendContainerState(containerArrayEnd)
  2681. }
  2682. }
  2683. func (f *encFnInfo) fastpathEncSliceUint32R(rv reflect.Value) {
  2684. fastpathTV.EncSliceUint32V(rv.Interface().([]uint32), fastpathCheckNilFalse, f.e)
  2685. }
  2686. func (_ fastpathT) EncSliceUint32V(v []uint32, checkNil bool, e *Encoder) {
  2687. ee := e.e
  2688. cr := e.cr
  2689. if checkNil && v == nil {
  2690. ee.EncodeNil()
  2691. return
  2692. }
  2693. ee.EncodeArrayStart(len(v))
  2694. for _, v2 := range v {
  2695. if cr != nil {
  2696. cr.sendContainerState(containerArrayElem)
  2697. }
  2698. ee.EncodeUint(uint64(v2))
  2699. }
  2700. if cr != nil {
  2701. cr.sendContainerState(containerArrayEnd)
  2702. }
  2703. }
  2704. func (f *encFnInfo) fastpathEncSliceUint64R(rv reflect.Value) {
  2705. fastpathTV.EncSliceUint64V(rv.Interface().([]uint64), fastpathCheckNilFalse, f.e)
  2706. }
  2707. func (_ fastpathT) EncSliceUint64V(v []uint64, checkNil bool, e *Encoder) {
  2708. ee := e.e
  2709. cr := e.cr
  2710. if checkNil && v == nil {
  2711. ee.EncodeNil()
  2712. return
  2713. }
  2714. ee.EncodeArrayStart(len(v))
  2715. for _, v2 := range v {
  2716. if cr != nil {
  2717. cr.sendContainerState(containerArrayElem)
  2718. }
  2719. ee.EncodeUint(uint64(v2))
  2720. }
  2721. if cr != nil {
  2722. cr.sendContainerState(containerArrayEnd)
  2723. }
  2724. }
  2725. func (f *encFnInfo) fastpathEncSliceUintptrR(rv reflect.Value) {
  2726. fastpathTV.EncSliceUintptrV(rv.Interface().([]uintptr), fastpathCheckNilFalse, f.e)
  2727. }
  2728. func (_ fastpathT) EncSliceUintptrV(v []uintptr, checkNil bool, e *Encoder) {
  2729. ee := e.e
  2730. cr := e.cr
  2731. if checkNil && v == nil {
  2732. ee.EncodeNil()
  2733. return
  2734. }
  2735. ee.EncodeArrayStart(len(v))
  2736. for _, v2 := range v {
  2737. if cr != nil {
  2738. cr.sendContainerState(containerArrayElem)
  2739. }
  2740. e.encode(v2)
  2741. }
  2742. if cr != nil {
  2743. cr.sendContainerState(containerArrayEnd)
  2744. }
  2745. }
  2746. func (f *encFnInfo) fastpathEncSliceIntR(rv reflect.Value) {
  2747. fastpathTV.EncSliceIntV(rv.Interface().([]int), fastpathCheckNilFalse, f.e)
  2748. }
  2749. func (_ fastpathT) EncSliceIntV(v []int, checkNil bool, e *Encoder) {
  2750. ee := e.e
  2751. cr := e.cr
  2752. if checkNil && v == nil {
  2753. ee.EncodeNil()
  2754. return
  2755. }
  2756. ee.EncodeArrayStart(len(v))
  2757. for _, v2 := range v {
  2758. if cr != nil {
  2759. cr.sendContainerState(containerArrayElem)
  2760. }
  2761. ee.EncodeInt(int64(v2))
  2762. }
  2763. if cr != nil {
  2764. cr.sendContainerState(containerArrayEnd)
  2765. }
  2766. }
  2767. func (f *encFnInfo) fastpathEncSliceInt8R(rv reflect.Value) {
  2768. fastpathTV.EncSliceInt8V(rv.Interface().([]int8), fastpathCheckNilFalse, f.e)
  2769. }
  2770. func (_ fastpathT) EncSliceInt8V(v []int8, checkNil bool, e *Encoder) {
  2771. ee := e.e
  2772. cr := e.cr
  2773. if checkNil && v == nil {
  2774. ee.EncodeNil()
  2775. return
  2776. }
  2777. ee.EncodeArrayStart(len(v))
  2778. for _, v2 := range v {
  2779. if cr != nil {
  2780. cr.sendContainerState(containerArrayElem)
  2781. }
  2782. ee.EncodeInt(int64(v2))
  2783. }
  2784. if cr != nil {
  2785. cr.sendContainerState(containerArrayEnd)
  2786. }
  2787. }
  2788. func (f *encFnInfo) fastpathEncSliceInt16R(rv reflect.Value) {
  2789. fastpathTV.EncSliceInt16V(rv.Interface().([]int16), fastpathCheckNilFalse, f.e)
  2790. }
  2791. func (_ fastpathT) EncSliceInt16V(v []int16, checkNil bool, e *Encoder) {
  2792. ee := e.e
  2793. cr := e.cr
  2794. if checkNil && v == nil {
  2795. ee.EncodeNil()
  2796. return
  2797. }
  2798. ee.EncodeArrayStart(len(v))
  2799. for _, v2 := range v {
  2800. if cr != nil {
  2801. cr.sendContainerState(containerArrayElem)
  2802. }
  2803. ee.EncodeInt(int64(v2))
  2804. }
  2805. if cr != nil {
  2806. cr.sendContainerState(containerArrayEnd)
  2807. }
  2808. }
  2809. func (f *encFnInfo) fastpathEncSliceInt32R(rv reflect.Value) {
  2810. fastpathTV.EncSliceInt32V(rv.Interface().([]int32), fastpathCheckNilFalse, f.e)
  2811. }
  2812. func (_ fastpathT) EncSliceInt32V(v []int32, checkNil bool, e *Encoder) {
  2813. ee := e.e
  2814. cr := e.cr
  2815. if checkNil && v == nil {
  2816. ee.EncodeNil()
  2817. return
  2818. }
  2819. ee.EncodeArrayStart(len(v))
  2820. for _, v2 := range v {
  2821. if cr != nil {
  2822. cr.sendContainerState(containerArrayElem)
  2823. }
  2824. ee.EncodeInt(int64(v2))
  2825. }
  2826. if cr != nil {
  2827. cr.sendContainerState(containerArrayEnd)
  2828. }
  2829. }
  2830. func (f *encFnInfo) fastpathEncSliceInt64R(rv reflect.Value) {
  2831. fastpathTV.EncSliceInt64V(rv.Interface().([]int64), fastpathCheckNilFalse, f.e)
  2832. }
  2833. func (_ fastpathT) EncSliceInt64V(v []int64, checkNil bool, e *Encoder) {
  2834. ee := e.e
  2835. cr := e.cr
  2836. if checkNil && v == nil {
  2837. ee.EncodeNil()
  2838. return
  2839. }
  2840. ee.EncodeArrayStart(len(v))
  2841. for _, v2 := range v {
  2842. if cr != nil {
  2843. cr.sendContainerState(containerArrayElem)
  2844. }
  2845. ee.EncodeInt(int64(v2))
  2846. }
  2847. if cr != nil {
  2848. cr.sendContainerState(containerArrayEnd)
  2849. }
  2850. }
  2851. func (f *encFnInfo) fastpathEncSliceBoolR(rv reflect.Value) {
  2852. fastpathTV.EncSliceBoolV(rv.Interface().([]bool), fastpathCheckNilFalse, f.e)
  2853. }
  2854. func (_ fastpathT) EncSliceBoolV(v []bool, checkNil bool, e *Encoder) {
  2855. ee := e.e
  2856. cr := e.cr
  2857. if checkNil && v == nil {
  2858. ee.EncodeNil()
  2859. return
  2860. }
  2861. ee.EncodeArrayStart(len(v))
  2862. for _, v2 := range v {
  2863. if cr != nil {
  2864. cr.sendContainerState(containerArrayElem)
  2865. }
  2866. ee.EncodeBool(v2)
  2867. }
  2868. if cr != nil {
  2869. cr.sendContainerState(containerArrayEnd)
  2870. }
  2871. }
  2872. func (f *encFnInfo) fastpathEncMapIntfIntfR(rv reflect.Value) {
  2873. fastpathTV.EncMapIntfIntfV(rv.Interface().(map[interface{}]interface{}), fastpathCheckNilFalse, f.e)
  2874. }
  2875. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, e *Encoder) {
  2876. ee := e.e
  2877. cr := e.cr
  2878. if checkNil && v == nil {
  2879. ee.EncodeNil()
  2880. return
  2881. }
  2882. ee.EncodeMapStart(len(v))
  2883. if e.h.Canonical {
  2884. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2885. e2 := NewEncoderBytes(&mksv, e.hh)
  2886. v2 := make([]bytesI, len(v))
  2887. var i, l int
  2888. var vp *bytesI
  2889. for k2, _ := range v {
  2890. l = len(mksv)
  2891. e2.MustEncode(k2)
  2892. vp = &v2[i]
  2893. vp.v = mksv[l:]
  2894. vp.i = k2
  2895. i++
  2896. }
  2897. sort.Sort(bytesISlice(v2))
  2898. for j := range v2 {
  2899. if cr != nil {
  2900. cr.sendContainerState(containerMapKey)
  2901. }
  2902. e.asis(v2[j].v)
  2903. if cr != nil {
  2904. cr.sendContainerState(containerMapValue)
  2905. }
  2906. e.encode(v[v2[j].i])
  2907. }
  2908. } else {
  2909. for k2, v2 := range v {
  2910. if cr != nil {
  2911. cr.sendContainerState(containerMapKey)
  2912. }
  2913. e.encode(k2)
  2914. if cr != nil {
  2915. cr.sendContainerState(containerMapValue)
  2916. }
  2917. e.encode(v2)
  2918. }
  2919. }
  2920. if cr != nil {
  2921. cr.sendContainerState(containerMapEnd)
  2922. }
  2923. }
  2924. func (f *encFnInfo) fastpathEncMapIntfStringR(rv reflect.Value) {
  2925. fastpathTV.EncMapIntfStringV(rv.Interface().(map[interface{}]string), fastpathCheckNilFalse, f.e)
  2926. }
  2927. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, checkNil bool, e *Encoder) {
  2928. ee := e.e
  2929. cr := e.cr
  2930. if checkNil && v == nil {
  2931. ee.EncodeNil()
  2932. return
  2933. }
  2934. ee.EncodeMapStart(len(v))
  2935. if e.h.Canonical {
  2936. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2937. e2 := NewEncoderBytes(&mksv, e.hh)
  2938. v2 := make([]bytesI, len(v))
  2939. var i, l int
  2940. var vp *bytesI
  2941. for k2, _ := range v {
  2942. l = len(mksv)
  2943. e2.MustEncode(k2)
  2944. vp = &v2[i]
  2945. vp.v = mksv[l:]
  2946. vp.i = k2
  2947. i++
  2948. }
  2949. sort.Sort(bytesISlice(v2))
  2950. for j := range v2 {
  2951. if cr != nil {
  2952. cr.sendContainerState(containerMapKey)
  2953. }
  2954. e.asis(v2[j].v)
  2955. if cr != nil {
  2956. cr.sendContainerState(containerMapValue)
  2957. }
  2958. e.encode(v[v2[j].i])
  2959. }
  2960. } else {
  2961. for k2, v2 := range v {
  2962. if cr != nil {
  2963. cr.sendContainerState(containerMapKey)
  2964. }
  2965. e.encode(k2)
  2966. if cr != nil {
  2967. cr.sendContainerState(containerMapValue)
  2968. }
  2969. ee.EncodeString(c_UTF8, v2)
  2970. }
  2971. }
  2972. if cr != nil {
  2973. cr.sendContainerState(containerMapEnd)
  2974. }
  2975. }
  2976. func (f *encFnInfo) fastpathEncMapIntfUintR(rv reflect.Value) {
  2977. fastpathTV.EncMapIntfUintV(rv.Interface().(map[interface{}]uint), fastpathCheckNilFalse, f.e)
  2978. }
  2979. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, checkNil bool, e *Encoder) {
  2980. ee := e.e
  2981. cr := e.cr
  2982. if checkNil && v == nil {
  2983. ee.EncodeNil()
  2984. return
  2985. }
  2986. ee.EncodeMapStart(len(v))
  2987. if e.h.Canonical {
  2988. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2989. e2 := NewEncoderBytes(&mksv, e.hh)
  2990. v2 := make([]bytesI, len(v))
  2991. var i, l int
  2992. var vp *bytesI
  2993. for k2, _ := range v {
  2994. l = len(mksv)
  2995. e2.MustEncode(k2)
  2996. vp = &v2[i]
  2997. vp.v = mksv[l:]
  2998. vp.i = k2
  2999. i++
  3000. }
  3001. sort.Sort(bytesISlice(v2))
  3002. for j := range v2 {
  3003. if cr != nil {
  3004. cr.sendContainerState(containerMapKey)
  3005. }
  3006. e.asis(v2[j].v)
  3007. if cr != nil {
  3008. cr.sendContainerState(containerMapValue)
  3009. }
  3010. e.encode(v[v2[j].i])
  3011. }
  3012. } else {
  3013. for k2, v2 := range v {
  3014. if cr != nil {
  3015. cr.sendContainerState(containerMapKey)
  3016. }
  3017. e.encode(k2)
  3018. if cr != nil {
  3019. cr.sendContainerState(containerMapValue)
  3020. }
  3021. ee.EncodeUint(uint64(v2))
  3022. }
  3023. }
  3024. if cr != nil {
  3025. cr.sendContainerState(containerMapEnd)
  3026. }
  3027. }
  3028. func (f *encFnInfo) fastpathEncMapIntfUint8R(rv reflect.Value) {
  3029. fastpathTV.EncMapIntfUint8V(rv.Interface().(map[interface{}]uint8), fastpathCheckNilFalse, f.e)
  3030. }
  3031. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, checkNil bool, e *Encoder) {
  3032. ee := e.e
  3033. cr := e.cr
  3034. if checkNil && v == nil {
  3035. ee.EncodeNil()
  3036. return
  3037. }
  3038. ee.EncodeMapStart(len(v))
  3039. if e.h.Canonical {
  3040. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3041. e2 := NewEncoderBytes(&mksv, e.hh)
  3042. v2 := make([]bytesI, len(v))
  3043. var i, l int
  3044. var vp *bytesI
  3045. for k2, _ := range v {
  3046. l = len(mksv)
  3047. e2.MustEncode(k2)
  3048. vp = &v2[i]
  3049. vp.v = mksv[l:]
  3050. vp.i = k2
  3051. i++
  3052. }
  3053. sort.Sort(bytesISlice(v2))
  3054. for j := range v2 {
  3055. if cr != nil {
  3056. cr.sendContainerState(containerMapKey)
  3057. }
  3058. e.asis(v2[j].v)
  3059. if cr != nil {
  3060. cr.sendContainerState(containerMapValue)
  3061. }
  3062. e.encode(v[v2[j].i])
  3063. }
  3064. } else {
  3065. for k2, v2 := range v {
  3066. if cr != nil {
  3067. cr.sendContainerState(containerMapKey)
  3068. }
  3069. e.encode(k2)
  3070. if cr != nil {
  3071. cr.sendContainerState(containerMapValue)
  3072. }
  3073. ee.EncodeUint(uint64(v2))
  3074. }
  3075. }
  3076. if cr != nil {
  3077. cr.sendContainerState(containerMapEnd)
  3078. }
  3079. }
  3080. func (f *encFnInfo) fastpathEncMapIntfUint16R(rv reflect.Value) {
  3081. fastpathTV.EncMapIntfUint16V(rv.Interface().(map[interface{}]uint16), fastpathCheckNilFalse, f.e)
  3082. }
  3083. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, checkNil bool, e *Encoder) {
  3084. ee := e.e
  3085. cr := e.cr
  3086. if checkNil && v == nil {
  3087. ee.EncodeNil()
  3088. return
  3089. }
  3090. ee.EncodeMapStart(len(v))
  3091. if e.h.Canonical {
  3092. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3093. e2 := NewEncoderBytes(&mksv, e.hh)
  3094. v2 := make([]bytesI, len(v))
  3095. var i, l int
  3096. var vp *bytesI
  3097. for k2, _ := range v {
  3098. l = len(mksv)
  3099. e2.MustEncode(k2)
  3100. vp = &v2[i]
  3101. vp.v = mksv[l:]
  3102. vp.i = k2
  3103. i++
  3104. }
  3105. sort.Sort(bytesISlice(v2))
  3106. for j := range v2 {
  3107. if cr != nil {
  3108. cr.sendContainerState(containerMapKey)
  3109. }
  3110. e.asis(v2[j].v)
  3111. if cr != nil {
  3112. cr.sendContainerState(containerMapValue)
  3113. }
  3114. e.encode(v[v2[j].i])
  3115. }
  3116. } else {
  3117. for k2, v2 := range v {
  3118. if cr != nil {
  3119. cr.sendContainerState(containerMapKey)
  3120. }
  3121. e.encode(k2)
  3122. if cr != nil {
  3123. cr.sendContainerState(containerMapValue)
  3124. }
  3125. ee.EncodeUint(uint64(v2))
  3126. }
  3127. }
  3128. if cr != nil {
  3129. cr.sendContainerState(containerMapEnd)
  3130. }
  3131. }
  3132. func (f *encFnInfo) fastpathEncMapIntfUint32R(rv reflect.Value) {
  3133. fastpathTV.EncMapIntfUint32V(rv.Interface().(map[interface{}]uint32), fastpathCheckNilFalse, f.e)
  3134. }
  3135. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, checkNil bool, e *Encoder) {
  3136. ee := e.e
  3137. cr := e.cr
  3138. if checkNil && v == nil {
  3139. ee.EncodeNil()
  3140. return
  3141. }
  3142. ee.EncodeMapStart(len(v))
  3143. if e.h.Canonical {
  3144. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3145. e2 := NewEncoderBytes(&mksv, e.hh)
  3146. v2 := make([]bytesI, len(v))
  3147. var i, l int
  3148. var vp *bytesI
  3149. for k2, _ := range v {
  3150. l = len(mksv)
  3151. e2.MustEncode(k2)
  3152. vp = &v2[i]
  3153. vp.v = mksv[l:]
  3154. vp.i = k2
  3155. i++
  3156. }
  3157. sort.Sort(bytesISlice(v2))
  3158. for j := range v2 {
  3159. if cr != nil {
  3160. cr.sendContainerState(containerMapKey)
  3161. }
  3162. e.asis(v2[j].v)
  3163. if cr != nil {
  3164. cr.sendContainerState(containerMapValue)
  3165. }
  3166. e.encode(v[v2[j].i])
  3167. }
  3168. } else {
  3169. for k2, v2 := range v {
  3170. if cr != nil {
  3171. cr.sendContainerState(containerMapKey)
  3172. }
  3173. e.encode(k2)
  3174. if cr != nil {
  3175. cr.sendContainerState(containerMapValue)
  3176. }
  3177. ee.EncodeUint(uint64(v2))
  3178. }
  3179. }
  3180. if cr != nil {
  3181. cr.sendContainerState(containerMapEnd)
  3182. }
  3183. }
  3184. func (f *encFnInfo) fastpathEncMapIntfUint64R(rv reflect.Value) {
  3185. fastpathTV.EncMapIntfUint64V(rv.Interface().(map[interface{}]uint64), fastpathCheckNilFalse, f.e)
  3186. }
  3187. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, checkNil bool, e *Encoder) {
  3188. ee := e.e
  3189. cr := e.cr
  3190. if checkNil && v == nil {
  3191. ee.EncodeNil()
  3192. return
  3193. }
  3194. ee.EncodeMapStart(len(v))
  3195. if e.h.Canonical {
  3196. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3197. e2 := NewEncoderBytes(&mksv, e.hh)
  3198. v2 := make([]bytesI, len(v))
  3199. var i, l int
  3200. var vp *bytesI
  3201. for k2, _ := range v {
  3202. l = len(mksv)
  3203. e2.MustEncode(k2)
  3204. vp = &v2[i]
  3205. vp.v = mksv[l:]
  3206. vp.i = k2
  3207. i++
  3208. }
  3209. sort.Sort(bytesISlice(v2))
  3210. for j := range v2 {
  3211. if cr != nil {
  3212. cr.sendContainerState(containerMapKey)
  3213. }
  3214. e.asis(v2[j].v)
  3215. if cr != nil {
  3216. cr.sendContainerState(containerMapValue)
  3217. }
  3218. e.encode(v[v2[j].i])
  3219. }
  3220. } else {
  3221. for k2, v2 := range v {
  3222. if cr != nil {
  3223. cr.sendContainerState(containerMapKey)
  3224. }
  3225. e.encode(k2)
  3226. if cr != nil {
  3227. cr.sendContainerState(containerMapValue)
  3228. }
  3229. ee.EncodeUint(uint64(v2))
  3230. }
  3231. }
  3232. if cr != nil {
  3233. cr.sendContainerState(containerMapEnd)
  3234. }
  3235. }
  3236. func (f *encFnInfo) fastpathEncMapIntfUintptrR(rv reflect.Value) {
  3237. fastpathTV.EncMapIntfUintptrV(rv.Interface().(map[interface{}]uintptr), fastpathCheckNilFalse, f.e)
  3238. }
  3239. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, checkNil bool, e *Encoder) {
  3240. ee := e.e
  3241. cr := e.cr
  3242. if checkNil && v == nil {
  3243. ee.EncodeNil()
  3244. return
  3245. }
  3246. ee.EncodeMapStart(len(v))
  3247. if e.h.Canonical {
  3248. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3249. e2 := NewEncoderBytes(&mksv, e.hh)
  3250. v2 := make([]bytesI, len(v))
  3251. var i, l int
  3252. var vp *bytesI
  3253. for k2, _ := range v {
  3254. l = len(mksv)
  3255. e2.MustEncode(k2)
  3256. vp = &v2[i]
  3257. vp.v = mksv[l:]
  3258. vp.i = k2
  3259. i++
  3260. }
  3261. sort.Sort(bytesISlice(v2))
  3262. for j := range v2 {
  3263. if cr != nil {
  3264. cr.sendContainerState(containerMapKey)
  3265. }
  3266. e.asis(v2[j].v)
  3267. if cr != nil {
  3268. cr.sendContainerState(containerMapValue)
  3269. }
  3270. e.encode(v[v2[j].i])
  3271. }
  3272. } else {
  3273. for k2, v2 := range v {
  3274. if cr != nil {
  3275. cr.sendContainerState(containerMapKey)
  3276. }
  3277. e.encode(k2)
  3278. if cr != nil {
  3279. cr.sendContainerState(containerMapValue)
  3280. }
  3281. e.encode(v2)
  3282. }
  3283. }
  3284. if cr != nil {
  3285. cr.sendContainerState(containerMapEnd)
  3286. }
  3287. }
  3288. func (f *encFnInfo) fastpathEncMapIntfIntR(rv reflect.Value) {
  3289. fastpathTV.EncMapIntfIntV(rv.Interface().(map[interface{}]int), fastpathCheckNilFalse, f.e)
  3290. }
  3291. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, checkNil bool, e *Encoder) {
  3292. ee := e.e
  3293. cr := e.cr
  3294. if checkNil && v == nil {
  3295. ee.EncodeNil()
  3296. return
  3297. }
  3298. ee.EncodeMapStart(len(v))
  3299. if e.h.Canonical {
  3300. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3301. e2 := NewEncoderBytes(&mksv, e.hh)
  3302. v2 := make([]bytesI, len(v))
  3303. var i, l int
  3304. var vp *bytesI
  3305. for k2, _ := range v {
  3306. l = len(mksv)
  3307. e2.MustEncode(k2)
  3308. vp = &v2[i]
  3309. vp.v = mksv[l:]
  3310. vp.i = k2
  3311. i++
  3312. }
  3313. sort.Sort(bytesISlice(v2))
  3314. for j := range v2 {
  3315. if cr != nil {
  3316. cr.sendContainerState(containerMapKey)
  3317. }
  3318. e.asis(v2[j].v)
  3319. if cr != nil {
  3320. cr.sendContainerState(containerMapValue)
  3321. }
  3322. e.encode(v[v2[j].i])
  3323. }
  3324. } else {
  3325. for k2, v2 := range v {
  3326. if cr != nil {
  3327. cr.sendContainerState(containerMapKey)
  3328. }
  3329. e.encode(k2)
  3330. if cr != nil {
  3331. cr.sendContainerState(containerMapValue)
  3332. }
  3333. ee.EncodeInt(int64(v2))
  3334. }
  3335. }
  3336. if cr != nil {
  3337. cr.sendContainerState(containerMapEnd)
  3338. }
  3339. }
  3340. func (f *encFnInfo) fastpathEncMapIntfInt8R(rv reflect.Value) {
  3341. fastpathTV.EncMapIntfInt8V(rv.Interface().(map[interface{}]int8), fastpathCheckNilFalse, f.e)
  3342. }
  3343. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, checkNil bool, e *Encoder) {
  3344. ee := e.e
  3345. cr := e.cr
  3346. if checkNil && v == nil {
  3347. ee.EncodeNil()
  3348. return
  3349. }
  3350. ee.EncodeMapStart(len(v))
  3351. if e.h.Canonical {
  3352. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3353. e2 := NewEncoderBytes(&mksv, e.hh)
  3354. v2 := make([]bytesI, len(v))
  3355. var i, l int
  3356. var vp *bytesI
  3357. for k2, _ := range v {
  3358. l = len(mksv)
  3359. e2.MustEncode(k2)
  3360. vp = &v2[i]
  3361. vp.v = mksv[l:]
  3362. vp.i = k2
  3363. i++
  3364. }
  3365. sort.Sort(bytesISlice(v2))
  3366. for j := range v2 {
  3367. if cr != nil {
  3368. cr.sendContainerState(containerMapKey)
  3369. }
  3370. e.asis(v2[j].v)
  3371. if cr != nil {
  3372. cr.sendContainerState(containerMapValue)
  3373. }
  3374. e.encode(v[v2[j].i])
  3375. }
  3376. } else {
  3377. for k2, v2 := range v {
  3378. if cr != nil {
  3379. cr.sendContainerState(containerMapKey)
  3380. }
  3381. e.encode(k2)
  3382. if cr != nil {
  3383. cr.sendContainerState(containerMapValue)
  3384. }
  3385. ee.EncodeInt(int64(v2))
  3386. }
  3387. }
  3388. if cr != nil {
  3389. cr.sendContainerState(containerMapEnd)
  3390. }
  3391. }
  3392. func (f *encFnInfo) fastpathEncMapIntfInt16R(rv reflect.Value) {
  3393. fastpathTV.EncMapIntfInt16V(rv.Interface().(map[interface{}]int16), fastpathCheckNilFalse, f.e)
  3394. }
  3395. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, checkNil bool, e *Encoder) {
  3396. ee := e.e
  3397. cr := e.cr
  3398. if checkNil && v == nil {
  3399. ee.EncodeNil()
  3400. return
  3401. }
  3402. ee.EncodeMapStart(len(v))
  3403. if e.h.Canonical {
  3404. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3405. e2 := NewEncoderBytes(&mksv, e.hh)
  3406. v2 := make([]bytesI, len(v))
  3407. var i, l int
  3408. var vp *bytesI
  3409. for k2, _ := range v {
  3410. l = len(mksv)
  3411. e2.MustEncode(k2)
  3412. vp = &v2[i]
  3413. vp.v = mksv[l:]
  3414. vp.i = k2
  3415. i++
  3416. }
  3417. sort.Sort(bytesISlice(v2))
  3418. for j := range v2 {
  3419. if cr != nil {
  3420. cr.sendContainerState(containerMapKey)
  3421. }
  3422. e.asis(v2[j].v)
  3423. if cr != nil {
  3424. cr.sendContainerState(containerMapValue)
  3425. }
  3426. e.encode(v[v2[j].i])
  3427. }
  3428. } else {
  3429. for k2, v2 := range v {
  3430. if cr != nil {
  3431. cr.sendContainerState(containerMapKey)
  3432. }
  3433. e.encode(k2)
  3434. if cr != nil {
  3435. cr.sendContainerState(containerMapValue)
  3436. }
  3437. ee.EncodeInt(int64(v2))
  3438. }
  3439. }
  3440. if cr != nil {
  3441. cr.sendContainerState(containerMapEnd)
  3442. }
  3443. }
  3444. func (f *encFnInfo) fastpathEncMapIntfInt32R(rv reflect.Value) {
  3445. fastpathTV.EncMapIntfInt32V(rv.Interface().(map[interface{}]int32), fastpathCheckNilFalse, f.e)
  3446. }
  3447. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, checkNil bool, e *Encoder) {
  3448. ee := e.e
  3449. cr := e.cr
  3450. if checkNil && v == nil {
  3451. ee.EncodeNil()
  3452. return
  3453. }
  3454. ee.EncodeMapStart(len(v))
  3455. if e.h.Canonical {
  3456. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3457. e2 := NewEncoderBytes(&mksv, e.hh)
  3458. v2 := make([]bytesI, len(v))
  3459. var i, l int
  3460. var vp *bytesI
  3461. for k2, _ := range v {
  3462. l = len(mksv)
  3463. e2.MustEncode(k2)
  3464. vp = &v2[i]
  3465. vp.v = mksv[l:]
  3466. vp.i = k2
  3467. i++
  3468. }
  3469. sort.Sort(bytesISlice(v2))
  3470. for j := range v2 {
  3471. if cr != nil {
  3472. cr.sendContainerState(containerMapKey)
  3473. }
  3474. e.asis(v2[j].v)
  3475. if cr != nil {
  3476. cr.sendContainerState(containerMapValue)
  3477. }
  3478. e.encode(v[v2[j].i])
  3479. }
  3480. } else {
  3481. for k2, v2 := range v {
  3482. if cr != nil {
  3483. cr.sendContainerState(containerMapKey)
  3484. }
  3485. e.encode(k2)
  3486. if cr != nil {
  3487. cr.sendContainerState(containerMapValue)
  3488. }
  3489. ee.EncodeInt(int64(v2))
  3490. }
  3491. }
  3492. if cr != nil {
  3493. cr.sendContainerState(containerMapEnd)
  3494. }
  3495. }
  3496. func (f *encFnInfo) fastpathEncMapIntfInt64R(rv reflect.Value) {
  3497. fastpathTV.EncMapIntfInt64V(rv.Interface().(map[interface{}]int64), fastpathCheckNilFalse, f.e)
  3498. }
  3499. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, checkNil bool, e *Encoder) {
  3500. ee := e.e
  3501. cr := e.cr
  3502. if checkNil && v == nil {
  3503. ee.EncodeNil()
  3504. return
  3505. }
  3506. ee.EncodeMapStart(len(v))
  3507. if e.h.Canonical {
  3508. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3509. e2 := NewEncoderBytes(&mksv, e.hh)
  3510. v2 := make([]bytesI, len(v))
  3511. var i, l int
  3512. var vp *bytesI
  3513. for k2, _ := range v {
  3514. l = len(mksv)
  3515. e2.MustEncode(k2)
  3516. vp = &v2[i]
  3517. vp.v = mksv[l:]
  3518. vp.i = k2
  3519. i++
  3520. }
  3521. sort.Sort(bytesISlice(v2))
  3522. for j := range v2 {
  3523. if cr != nil {
  3524. cr.sendContainerState(containerMapKey)
  3525. }
  3526. e.asis(v2[j].v)
  3527. if cr != nil {
  3528. cr.sendContainerState(containerMapValue)
  3529. }
  3530. e.encode(v[v2[j].i])
  3531. }
  3532. } else {
  3533. for k2, v2 := range v {
  3534. if cr != nil {
  3535. cr.sendContainerState(containerMapKey)
  3536. }
  3537. e.encode(k2)
  3538. if cr != nil {
  3539. cr.sendContainerState(containerMapValue)
  3540. }
  3541. ee.EncodeInt(int64(v2))
  3542. }
  3543. }
  3544. if cr != nil {
  3545. cr.sendContainerState(containerMapEnd)
  3546. }
  3547. }
  3548. func (f *encFnInfo) fastpathEncMapIntfFloat32R(rv reflect.Value) {
  3549. fastpathTV.EncMapIntfFloat32V(rv.Interface().(map[interface{}]float32), fastpathCheckNilFalse, f.e)
  3550. }
  3551. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, checkNil bool, e *Encoder) {
  3552. ee := e.e
  3553. cr := e.cr
  3554. if checkNil && v == nil {
  3555. ee.EncodeNil()
  3556. return
  3557. }
  3558. ee.EncodeMapStart(len(v))
  3559. if e.h.Canonical {
  3560. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3561. e2 := NewEncoderBytes(&mksv, e.hh)
  3562. v2 := make([]bytesI, len(v))
  3563. var i, l int
  3564. var vp *bytesI
  3565. for k2, _ := range v {
  3566. l = len(mksv)
  3567. e2.MustEncode(k2)
  3568. vp = &v2[i]
  3569. vp.v = mksv[l:]
  3570. vp.i = k2
  3571. i++
  3572. }
  3573. sort.Sort(bytesISlice(v2))
  3574. for j := range v2 {
  3575. if cr != nil {
  3576. cr.sendContainerState(containerMapKey)
  3577. }
  3578. e.asis(v2[j].v)
  3579. if cr != nil {
  3580. cr.sendContainerState(containerMapValue)
  3581. }
  3582. e.encode(v[v2[j].i])
  3583. }
  3584. } else {
  3585. for k2, v2 := range v {
  3586. if cr != nil {
  3587. cr.sendContainerState(containerMapKey)
  3588. }
  3589. e.encode(k2)
  3590. if cr != nil {
  3591. cr.sendContainerState(containerMapValue)
  3592. }
  3593. ee.EncodeFloat32(v2)
  3594. }
  3595. }
  3596. if cr != nil {
  3597. cr.sendContainerState(containerMapEnd)
  3598. }
  3599. }
  3600. func (f *encFnInfo) fastpathEncMapIntfFloat64R(rv reflect.Value) {
  3601. fastpathTV.EncMapIntfFloat64V(rv.Interface().(map[interface{}]float64), fastpathCheckNilFalse, f.e)
  3602. }
  3603. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, checkNil bool, e *Encoder) {
  3604. ee := e.e
  3605. cr := e.cr
  3606. if checkNil && v == nil {
  3607. ee.EncodeNil()
  3608. return
  3609. }
  3610. ee.EncodeMapStart(len(v))
  3611. if e.h.Canonical {
  3612. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3613. e2 := NewEncoderBytes(&mksv, e.hh)
  3614. v2 := make([]bytesI, len(v))
  3615. var i, l int
  3616. var vp *bytesI
  3617. for k2, _ := range v {
  3618. l = len(mksv)
  3619. e2.MustEncode(k2)
  3620. vp = &v2[i]
  3621. vp.v = mksv[l:]
  3622. vp.i = k2
  3623. i++
  3624. }
  3625. sort.Sort(bytesISlice(v2))
  3626. for j := range v2 {
  3627. if cr != nil {
  3628. cr.sendContainerState(containerMapKey)
  3629. }
  3630. e.asis(v2[j].v)
  3631. if cr != nil {
  3632. cr.sendContainerState(containerMapValue)
  3633. }
  3634. e.encode(v[v2[j].i])
  3635. }
  3636. } else {
  3637. for k2, v2 := range v {
  3638. if cr != nil {
  3639. cr.sendContainerState(containerMapKey)
  3640. }
  3641. e.encode(k2)
  3642. if cr != nil {
  3643. cr.sendContainerState(containerMapValue)
  3644. }
  3645. ee.EncodeFloat64(v2)
  3646. }
  3647. }
  3648. if cr != nil {
  3649. cr.sendContainerState(containerMapEnd)
  3650. }
  3651. }
  3652. func (f *encFnInfo) fastpathEncMapIntfBoolR(rv reflect.Value) {
  3653. fastpathTV.EncMapIntfBoolV(rv.Interface().(map[interface{}]bool), fastpathCheckNilFalse, f.e)
  3654. }
  3655. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, checkNil bool, e *Encoder) {
  3656. ee := e.e
  3657. cr := e.cr
  3658. if checkNil && v == nil {
  3659. ee.EncodeNil()
  3660. return
  3661. }
  3662. ee.EncodeMapStart(len(v))
  3663. if e.h.Canonical {
  3664. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3665. e2 := NewEncoderBytes(&mksv, e.hh)
  3666. v2 := make([]bytesI, len(v))
  3667. var i, l int
  3668. var vp *bytesI
  3669. for k2, _ := range v {
  3670. l = len(mksv)
  3671. e2.MustEncode(k2)
  3672. vp = &v2[i]
  3673. vp.v = mksv[l:]
  3674. vp.i = k2
  3675. i++
  3676. }
  3677. sort.Sort(bytesISlice(v2))
  3678. for j := range v2 {
  3679. if cr != nil {
  3680. cr.sendContainerState(containerMapKey)
  3681. }
  3682. e.asis(v2[j].v)
  3683. if cr != nil {
  3684. cr.sendContainerState(containerMapValue)
  3685. }
  3686. e.encode(v[v2[j].i])
  3687. }
  3688. } else {
  3689. for k2, v2 := range v {
  3690. if cr != nil {
  3691. cr.sendContainerState(containerMapKey)
  3692. }
  3693. e.encode(k2)
  3694. if cr != nil {
  3695. cr.sendContainerState(containerMapValue)
  3696. }
  3697. ee.EncodeBool(v2)
  3698. }
  3699. }
  3700. if cr != nil {
  3701. cr.sendContainerState(containerMapEnd)
  3702. }
  3703. }
  3704. func (f *encFnInfo) fastpathEncMapStringIntfR(rv reflect.Value) {
  3705. fastpathTV.EncMapStringIntfV(rv.Interface().(map[string]interface{}), fastpathCheckNilFalse, f.e)
  3706. }
  3707. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, checkNil bool, e *Encoder) {
  3708. ee := e.e
  3709. cr := e.cr
  3710. if checkNil && v == nil {
  3711. ee.EncodeNil()
  3712. return
  3713. }
  3714. ee.EncodeMapStart(len(v))
  3715. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3716. if e.h.Canonical {
  3717. v2 := make([]string, len(v))
  3718. var i int
  3719. for k, _ := range v {
  3720. v2[i] = string(k)
  3721. i++
  3722. }
  3723. sort.Sort(stringSlice(v2))
  3724. for _, k2 := range v2 {
  3725. if cr != nil {
  3726. cr.sendContainerState(containerMapKey)
  3727. }
  3728. if asSymbols {
  3729. ee.EncodeSymbol(k2)
  3730. } else {
  3731. ee.EncodeString(c_UTF8, k2)
  3732. }
  3733. if cr != nil {
  3734. cr.sendContainerState(containerMapValue)
  3735. }
  3736. e.encode(v[string(k2)])
  3737. }
  3738. } else {
  3739. for k2, v2 := range v {
  3740. if cr != nil {
  3741. cr.sendContainerState(containerMapKey)
  3742. }
  3743. if asSymbols {
  3744. ee.EncodeSymbol(k2)
  3745. } else {
  3746. ee.EncodeString(c_UTF8, k2)
  3747. }
  3748. if cr != nil {
  3749. cr.sendContainerState(containerMapValue)
  3750. }
  3751. e.encode(v2)
  3752. }
  3753. }
  3754. if cr != nil {
  3755. cr.sendContainerState(containerMapEnd)
  3756. }
  3757. }
  3758. func (f *encFnInfo) fastpathEncMapStringStringR(rv reflect.Value) {
  3759. fastpathTV.EncMapStringStringV(rv.Interface().(map[string]string), fastpathCheckNilFalse, f.e)
  3760. }
  3761. func (_ fastpathT) EncMapStringStringV(v map[string]string, checkNil bool, e *Encoder) {
  3762. ee := e.e
  3763. cr := e.cr
  3764. if checkNil && v == nil {
  3765. ee.EncodeNil()
  3766. return
  3767. }
  3768. ee.EncodeMapStart(len(v))
  3769. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3770. if e.h.Canonical {
  3771. v2 := make([]string, len(v))
  3772. var i int
  3773. for k, _ := range v {
  3774. v2[i] = string(k)
  3775. i++
  3776. }
  3777. sort.Sort(stringSlice(v2))
  3778. for _, k2 := range v2 {
  3779. if cr != nil {
  3780. cr.sendContainerState(containerMapKey)
  3781. }
  3782. if asSymbols {
  3783. ee.EncodeSymbol(k2)
  3784. } else {
  3785. ee.EncodeString(c_UTF8, k2)
  3786. }
  3787. if cr != nil {
  3788. cr.sendContainerState(containerMapValue)
  3789. }
  3790. ee.EncodeString(c_UTF8, v[string(k2)])
  3791. }
  3792. } else {
  3793. for k2, v2 := range v {
  3794. if cr != nil {
  3795. cr.sendContainerState(containerMapKey)
  3796. }
  3797. if asSymbols {
  3798. ee.EncodeSymbol(k2)
  3799. } else {
  3800. ee.EncodeString(c_UTF8, k2)
  3801. }
  3802. if cr != nil {
  3803. cr.sendContainerState(containerMapValue)
  3804. }
  3805. ee.EncodeString(c_UTF8, v2)
  3806. }
  3807. }
  3808. if cr != nil {
  3809. cr.sendContainerState(containerMapEnd)
  3810. }
  3811. }
  3812. func (f *encFnInfo) fastpathEncMapStringUintR(rv reflect.Value) {
  3813. fastpathTV.EncMapStringUintV(rv.Interface().(map[string]uint), fastpathCheckNilFalse, f.e)
  3814. }
  3815. func (_ fastpathT) EncMapStringUintV(v map[string]uint, checkNil bool, e *Encoder) {
  3816. ee := e.e
  3817. cr := e.cr
  3818. if checkNil && v == nil {
  3819. ee.EncodeNil()
  3820. return
  3821. }
  3822. ee.EncodeMapStart(len(v))
  3823. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3824. if e.h.Canonical {
  3825. v2 := make([]string, len(v))
  3826. var i int
  3827. for k, _ := range v {
  3828. v2[i] = string(k)
  3829. i++
  3830. }
  3831. sort.Sort(stringSlice(v2))
  3832. for _, k2 := range v2 {
  3833. if cr != nil {
  3834. cr.sendContainerState(containerMapKey)
  3835. }
  3836. if asSymbols {
  3837. ee.EncodeSymbol(k2)
  3838. } else {
  3839. ee.EncodeString(c_UTF8, k2)
  3840. }
  3841. if cr != nil {
  3842. cr.sendContainerState(containerMapValue)
  3843. }
  3844. ee.EncodeUint(uint64(v[string(k2)]))
  3845. }
  3846. } else {
  3847. for k2, v2 := range v {
  3848. if cr != nil {
  3849. cr.sendContainerState(containerMapKey)
  3850. }
  3851. if asSymbols {
  3852. ee.EncodeSymbol(k2)
  3853. } else {
  3854. ee.EncodeString(c_UTF8, k2)
  3855. }
  3856. if cr != nil {
  3857. cr.sendContainerState(containerMapValue)
  3858. }
  3859. ee.EncodeUint(uint64(v2))
  3860. }
  3861. }
  3862. if cr != nil {
  3863. cr.sendContainerState(containerMapEnd)
  3864. }
  3865. }
  3866. func (f *encFnInfo) fastpathEncMapStringUint8R(rv reflect.Value) {
  3867. fastpathTV.EncMapStringUint8V(rv.Interface().(map[string]uint8), fastpathCheckNilFalse, f.e)
  3868. }
  3869. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, checkNil bool, e *Encoder) {
  3870. ee := e.e
  3871. cr := e.cr
  3872. if checkNil && v == nil {
  3873. ee.EncodeNil()
  3874. return
  3875. }
  3876. ee.EncodeMapStart(len(v))
  3877. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3878. if e.h.Canonical {
  3879. v2 := make([]string, len(v))
  3880. var i int
  3881. for k, _ := range v {
  3882. v2[i] = string(k)
  3883. i++
  3884. }
  3885. sort.Sort(stringSlice(v2))
  3886. for _, k2 := range v2 {
  3887. if cr != nil {
  3888. cr.sendContainerState(containerMapKey)
  3889. }
  3890. if asSymbols {
  3891. ee.EncodeSymbol(k2)
  3892. } else {
  3893. ee.EncodeString(c_UTF8, k2)
  3894. }
  3895. if cr != nil {
  3896. cr.sendContainerState(containerMapValue)
  3897. }
  3898. ee.EncodeUint(uint64(v[string(k2)]))
  3899. }
  3900. } else {
  3901. for k2, v2 := range v {
  3902. if cr != nil {
  3903. cr.sendContainerState(containerMapKey)
  3904. }
  3905. if asSymbols {
  3906. ee.EncodeSymbol(k2)
  3907. } else {
  3908. ee.EncodeString(c_UTF8, k2)
  3909. }
  3910. if cr != nil {
  3911. cr.sendContainerState(containerMapValue)
  3912. }
  3913. ee.EncodeUint(uint64(v2))
  3914. }
  3915. }
  3916. if cr != nil {
  3917. cr.sendContainerState(containerMapEnd)
  3918. }
  3919. }
  3920. func (f *encFnInfo) fastpathEncMapStringUint16R(rv reflect.Value) {
  3921. fastpathTV.EncMapStringUint16V(rv.Interface().(map[string]uint16), fastpathCheckNilFalse, f.e)
  3922. }
  3923. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, checkNil bool, e *Encoder) {
  3924. ee := e.e
  3925. cr := e.cr
  3926. if checkNil && v == nil {
  3927. ee.EncodeNil()
  3928. return
  3929. }
  3930. ee.EncodeMapStart(len(v))
  3931. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3932. if e.h.Canonical {
  3933. v2 := make([]string, len(v))
  3934. var i int
  3935. for k, _ := range v {
  3936. v2[i] = string(k)
  3937. i++
  3938. }
  3939. sort.Sort(stringSlice(v2))
  3940. for _, k2 := range v2 {
  3941. if cr != nil {
  3942. cr.sendContainerState(containerMapKey)
  3943. }
  3944. if asSymbols {
  3945. ee.EncodeSymbol(k2)
  3946. } else {
  3947. ee.EncodeString(c_UTF8, k2)
  3948. }
  3949. if cr != nil {
  3950. cr.sendContainerState(containerMapValue)
  3951. }
  3952. ee.EncodeUint(uint64(v[string(k2)]))
  3953. }
  3954. } else {
  3955. for k2, v2 := range v {
  3956. if cr != nil {
  3957. cr.sendContainerState(containerMapKey)
  3958. }
  3959. if asSymbols {
  3960. ee.EncodeSymbol(k2)
  3961. } else {
  3962. ee.EncodeString(c_UTF8, k2)
  3963. }
  3964. if cr != nil {
  3965. cr.sendContainerState(containerMapValue)
  3966. }
  3967. ee.EncodeUint(uint64(v2))
  3968. }
  3969. }
  3970. if cr != nil {
  3971. cr.sendContainerState(containerMapEnd)
  3972. }
  3973. }
  3974. func (f *encFnInfo) fastpathEncMapStringUint32R(rv reflect.Value) {
  3975. fastpathTV.EncMapStringUint32V(rv.Interface().(map[string]uint32), fastpathCheckNilFalse, f.e)
  3976. }
  3977. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, checkNil bool, e *Encoder) {
  3978. ee := e.e
  3979. cr := e.cr
  3980. if checkNil && v == nil {
  3981. ee.EncodeNil()
  3982. return
  3983. }
  3984. ee.EncodeMapStart(len(v))
  3985. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3986. if e.h.Canonical {
  3987. v2 := make([]string, len(v))
  3988. var i int
  3989. for k, _ := range v {
  3990. v2[i] = string(k)
  3991. i++
  3992. }
  3993. sort.Sort(stringSlice(v2))
  3994. for _, k2 := range v2 {
  3995. if cr != nil {
  3996. cr.sendContainerState(containerMapKey)
  3997. }
  3998. if asSymbols {
  3999. ee.EncodeSymbol(k2)
  4000. } else {
  4001. ee.EncodeString(c_UTF8, k2)
  4002. }
  4003. if cr != nil {
  4004. cr.sendContainerState(containerMapValue)
  4005. }
  4006. ee.EncodeUint(uint64(v[string(k2)]))
  4007. }
  4008. } else {
  4009. for k2, v2 := range v {
  4010. if cr != nil {
  4011. cr.sendContainerState(containerMapKey)
  4012. }
  4013. if asSymbols {
  4014. ee.EncodeSymbol(k2)
  4015. } else {
  4016. ee.EncodeString(c_UTF8, k2)
  4017. }
  4018. if cr != nil {
  4019. cr.sendContainerState(containerMapValue)
  4020. }
  4021. ee.EncodeUint(uint64(v2))
  4022. }
  4023. }
  4024. if cr != nil {
  4025. cr.sendContainerState(containerMapEnd)
  4026. }
  4027. }
  4028. func (f *encFnInfo) fastpathEncMapStringUint64R(rv reflect.Value) {
  4029. fastpathTV.EncMapStringUint64V(rv.Interface().(map[string]uint64), fastpathCheckNilFalse, f.e)
  4030. }
  4031. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, checkNil bool, e *Encoder) {
  4032. ee := e.e
  4033. cr := e.cr
  4034. if checkNil && v == nil {
  4035. ee.EncodeNil()
  4036. return
  4037. }
  4038. ee.EncodeMapStart(len(v))
  4039. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4040. if e.h.Canonical {
  4041. v2 := make([]string, len(v))
  4042. var i int
  4043. for k, _ := range v {
  4044. v2[i] = string(k)
  4045. i++
  4046. }
  4047. sort.Sort(stringSlice(v2))
  4048. for _, k2 := range v2 {
  4049. if cr != nil {
  4050. cr.sendContainerState(containerMapKey)
  4051. }
  4052. if asSymbols {
  4053. ee.EncodeSymbol(k2)
  4054. } else {
  4055. ee.EncodeString(c_UTF8, k2)
  4056. }
  4057. if cr != nil {
  4058. cr.sendContainerState(containerMapValue)
  4059. }
  4060. ee.EncodeUint(uint64(v[string(k2)]))
  4061. }
  4062. } else {
  4063. for k2, v2 := range v {
  4064. if cr != nil {
  4065. cr.sendContainerState(containerMapKey)
  4066. }
  4067. if asSymbols {
  4068. ee.EncodeSymbol(k2)
  4069. } else {
  4070. ee.EncodeString(c_UTF8, k2)
  4071. }
  4072. if cr != nil {
  4073. cr.sendContainerState(containerMapValue)
  4074. }
  4075. ee.EncodeUint(uint64(v2))
  4076. }
  4077. }
  4078. if cr != nil {
  4079. cr.sendContainerState(containerMapEnd)
  4080. }
  4081. }
  4082. func (f *encFnInfo) fastpathEncMapStringUintptrR(rv reflect.Value) {
  4083. fastpathTV.EncMapStringUintptrV(rv.Interface().(map[string]uintptr), fastpathCheckNilFalse, f.e)
  4084. }
  4085. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, checkNil bool, e *Encoder) {
  4086. ee := e.e
  4087. cr := e.cr
  4088. if checkNil && v == nil {
  4089. ee.EncodeNil()
  4090. return
  4091. }
  4092. ee.EncodeMapStart(len(v))
  4093. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4094. if e.h.Canonical {
  4095. v2 := make([]string, len(v))
  4096. var i int
  4097. for k, _ := range v {
  4098. v2[i] = string(k)
  4099. i++
  4100. }
  4101. sort.Sort(stringSlice(v2))
  4102. for _, k2 := range v2 {
  4103. if cr != nil {
  4104. cr.sendContainerState(containerMapKey)
  4105. }
  4106. if asSymbols {
  4107. ee.EncodeSymbol(k2)
  4108. } else {
  4109. ee.EncodeString(c_UTF8, k2)
  4110. }
  4111. if cr != nil {
  4112. cr.sendContainerState(containerMapValue)
  4113. }
  4114. e.encode(v[string(k2)])
  4115. }
  4116. } else {
  4117. for k2, v2 := range v {
  4118. if cr != nil {
  4119. cr.sendContainerState(containerMapKey)
  4120. }
  4121. if asSymbols {
  4122. ee.EncodeSymbol(k2)
  4123. } else {
  4124. ee.EncodeString(c_UTF8, k2)
  4125. }
  4126. if cr != nil {
  4127. cr.sendContainerState(containerMapValue)
  4128. }
  4129. e.encode(v2)
  4130. }
  4131. }
  4132. if cr != nil {
  4133. cr.sendContainerState(containerMapEnd)
  4134. }
  4135. }
  4136. func (f *encFnInfo) fastpathEncMapStringIntR(rv reflect.Value) {
  4137. fastpathTV.EncMapStringIntV(rv.Interface().(map[string]int), fastpathCheckNilFalse, f.e)
  4138. }
  4139. func (_ fastpathT) EncMapStringIntV(v map[string]int, checkNil bool, e *Encoder) {
  4140. ee := e.e
  4141. cr := e.cr
  4142. if checkNil && v == nil {
  4143. ee.EncodeNil()
  4144. return
  4145. }
  4146. ee.EncodeMapStart(len(v))
  4147. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4148. if e.h.Canonical {
  4149. v2 := make([]string, len(v))
  4150. var i int
  4151. for k, _ := range v {
  4152. v2[i] = string(k)
  4153. i++
  4154. }
  4155. sort.Sort(stringSlice(v2))
  4156. for _, k2 := range v2 {
  4157. if cr != nil {
  4158. cr.sendContainerState(containerMapKey)
  4159. }
  4160. if asSymbols {
  4161. ee.EncodeSymbol(k2)
  4162. } else {
  4163. ee.EncodeString(c_UTF8, k2)
  4164. }
  4165. if cr != nil {
  4166. cr.sendContainerState(containerMapValue)
  4167. }
  4168. ee.EncodeInt(int64(v[string(k2)]))
  4169. }
  4170. } else {
  4171. for k2, v2 := range v {
  4172. if cr != nil {
  4173. cr.sendContainerState(containerMapKey)
  4174. }
  4175. if asSymbols {
  4176. ee.EncodeSymbol(k2)
  4177. } else {
  4178. ee.EncodeString(c_UTF8, k2)
  4179. }
  4180. if cr != nil {
  4181. cr.sendContainerState(containerMapValue)
  4182. }
  4183. ee.EncodeInt(int64(v2))
  4184. }
  4185. }
  4186. if cr != nil {
  4187. cr.sendContainerState(containerMapEnd)
  4188. }
  4189. }
  4190. func (f *encFnInfo) fastpathEncMapStringInt8R(rv reflect.Value) {
  4191. fastpathTV.EncMapStringInt8V(rv.Interface().(map[string]int8), fastpathCheckNilFalse, f.e)
  4192. }
  4193. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, checkNil bool, e *Encoder) {
  4194. ee := e.e
  4195. cr := e.cr
  4196. if checkNil && v == nil {
  4197. ee.EncodeNil()
  4198. return
  4199. }
  4200. ee.EncodeMapStart(len(v))
  4201. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4202. if e.h.Canonical {
  4203. v2 := make([]string, len(v))
  4204. var i int
  4205. for k, _ := range v {
  4206. v2[i] = string(k)
  4207. i++
  4208. }
  4209. sort.Sort(stringSlice(v2))
  4210. for _, k2 := range v2 {
  4211. if cr != nil {
  4212. cr.sendContainerState(containerMapKey)
  4213. }
  4214. if asSymbols {
  4215. ee.EncodeSymbol(k2)
  4216. } else {
  4217. ee.EncodeString(c_UTF8, k2)
  4218. }
  4219. if cr != nil {
  4220. cr.sendContainerState(containerMapValue)
  4221. }
  4222. ee.EncodeInt(int64(v[string(k2)]))
  4223. }
  4224. } else {
  4225. for k2, v2 := range v {
  4226. if cr != nil {
  4227. cr.sendContainerState(containerMapKey)
  4228. }
  4229. if asSymbols {
  4230. ee.EncodeSymbol(k2)
  4231. } else {
  4232. ee.EncodeString(c_UTF8, k2)
  4233. }
  4234. if cr != nil {
  4235. cr.sendContainerState(containerMapValue)
  4236. }
  4237. ee.EncodeInt(int64(v2))
  4238. }
  4239. }
  4240. if cr != nil {
  4241. cr.sendContainerState(containerMapEnd)
  4242. }
  4243. }
  4244. func (f *encFnInfo) fastpathEncMapStringInt16R(rv reflect.Value) {
  4245. fastpathTV.EncMapStringInt16V(rv.Interface().(map[string]int16), fastpathCheckNilFalse, f.e)
  4246. }
  4247. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, checkNil bool, e *Encoder) {
  4248. ee := e.e
  4249. cr := e.cr
  4250. if checkNil && v == nil {
  4251. ee.EncodeNil()
  4252. return
  4253. }
  4254. ee.EncodeMapStart(len(v))
  4255. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4256. if e.h.Canonical {
  4257. v2 := make([]string, len(v))
  4258. var i int
  4259. for k, _ := range v {
  4260. v2[i] = string(k)
  4261. i++
  4262. }
  4263. sort.Sort(stringSlice(v2))
  4264. for _, k2 := range v2 {
  4265. if cr != nil {
  4266. cr.sendContainerState(containerMapKey)
  4267. }
  4268. if asSymbols {
  4269. ee.EncodeSymbol(k2)
  4270. } else {
  4271. ee.EncodeString(c_UTF8, k2)
  4272. }
  4273. if cr != nil {
  4274. cr.sendContainerState(containerMapValue)
  4275. }
  4276. ee.EncodeInt(int64(v[string(k2)]))
  4277. }
  4278. } else {
  4279. for k2, v2 := range v {
  4280. if cr != nil {
  4281. cr.sendContainerState(containerMapKey)
  4282. }
  4283. if asSymbols {
  4284. ee.EncodeSymbol(k2)
  4285. } else {
  4286. ee.EncodeString(c_UTF8, k2)
  4287. }
  4288. if cr != nil {
  4289. cr.sendContainerState(containerMapValue)
  4290. }
  4291. ee.EncodeInt(int64(v2))
  4292. }
  4293. }
  4294. if cr != nil {
  4295. cr.sendContainerState(containerMapEnd)
  4296. }
  4297. }
  4298. func (f *encFnInfo) fastpathEncMapStringInt32R(rv reflect.Value) {
  4299. fastpathTV.EncMapStringInt32V(rv.Interface().(map[string]int32), fastpathCheckNilFalse, f.e)
  4300. }
  4301. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, checkNil bool, e *Encoder) {
  4302. ee := e.e
  4303. cr := e.cr
  4304. if checkNil && v == nil {
  4305. ee.EncodeNil()
  4306. return
  4307. }
  4308. ee.EncodeMapStart(len(v))
  4309. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4310. if e.h.Canonical {
  4311. v2 := make([]string, len(v))
  4312. var i int
  4313. for k, _ := range v {
  4314. v2[i] = string(k)
  4315. i++
  4316. }
  4317. sort.Sort(stringSlice(v2))
  4318. for _, k2 := range v2 {
  4319. if cr != nil {
  4320. cr.sendContainerState(containerMapKey)
  4321. }
  4322. if asSymbols {
  4323. ee.EncodeSymbol(k2)
  4324. } else {
  4325. ee.EncodeString(c_UTF8, k2)
  4326. }
  4327. if cr != nil {
  4328. cr.sendContainerState(containerMapValue)
  4329. }
  4330. ee.EncodeInt(int64(v[string(k2)]))
  4331. }
  4332. } else {
  4333. for k2, v2 := range v {
  4334. if cr != nil {
  4335. cr.sendContainerState(containerMapKey)
  4336. }
  4337. if asSymbols {
  4338. ee.EncodeSymbol(k2)
  4339. } else {
  4340. ee.EncodeString(c_UTF8, k2)
  4341. }
  4342. if cr != nil {
  4343. cr.sendContainerState(containerMapValue)
  4344. }
  4345. ee.EncodeInt(int64(v2))
  4346. }
  4347. }
  4348. if cr != nil {
  4349. cr.sendContainerState(containerMapEnd)
  4350. }
  4351. }
  4352. func (f *encFnInfo) fastpathEncMapStringInt64R(rv reflect.Value) {
  4353. fastpathTV.EncMapStringInt64V(rv.Interface().(map[string]int64), fastpathCheckNilFalse, f.e)
  4354. }
  4355. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, checkNil bool, e *Encoder) {
  4356. ee := e.e
  4357. cr := e.cr
  4358. if checkNil && v == nil {
  4359. ee.EncodeNil()
  4360. return
  4361. }
  4362. ee.EncodeMapStart(len(v))
  4363. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4364. if e.h.Canonical {
  4365. v2 := make([]string, len(v))
  4366. var i int
  4367. for k, _ := range v {
  4368. v2[i] = string(k)
  4369. i++
  4370. }
  4371. sort.Sort(stringSlice(v2))
  4372. for _, k2 := range v2 {
  4373. if cr != nil {
  4374. cr.sendContainerState(containerMapKey)
  4375. }
  4376. if asSymbols {
  4377. ee.EncodeSymbol(k2)
  4378. } else {
  4379. ee.EncodeString(c_UTF8, k2)
  4380. }
  4381. if cr != nil {
  4382. cr.sendContainerState(containerMapValue)
  4383. }
  4384. ee.EncodeInt(int64(v[string(k2)]))
  4385. }
  4386. } else {
  4387. for k2, v2 := range v {
  4388. if cr != nil {
  4389. cr.sendContainerState(containerMapKey)
  4390. }
  4391. if asSymbols {
  4392. ee.EncodeSymbol(k2)
  4393. } else {
  4394. ee.EncodeString(c_UTF8, k2)
  4395. }
  4396. if cr != nil {
  4397. cr.sendContainerState(containerMapValue)
  4398. }
  4399. ee.EncodeInt(int64(v2))
  4400. }
  4401. }
  4402. if cr != nil {
  4403. cr.sendContainerState(containerMapEnd)
  4404. }
  4405. }
  4406. func (f *encFnInfo) fastpathEncMapStringFloat32R(rv reflect.Value) {
  4407. fastpathTV.EncMapStringFloat32V(rv.Interface().(map[string]float32), fastpathCheckNilFalse, f.e)
  4408. }
  4409. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, checkNil bool, e *Encoder) {
  4410. ee := e.e
  4411. cr := e.cr
  4412. if checkNil && v == nil {
  4413. ee.EncodeNil()
  4414. return
  4415. }
  4416. ee.EncodeMapStart(len(v))
  4417. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4418. if e.h.Canonical {
  4419. v2 := make([]string, len(v))
  4420. var i int
  4421. for k, _ := range v {
  4422. v2[i] = string(k)
  4423. i++
  4424. }
  4425. sort.Sort(stringSlice(v2))
  4426. for _, k2 := range v2 {
  4427. if cr != nil {
  4428. cr.sendContainerState(containerMapKey)
  4429. }
  4430. if asSymbols {
  4431. ee.EncodeSymbol(k2)
  4432. } else {
  4433. ee.EncodeString(c_UTF8, k2)
  4434. }
  4435. if cr != nil {
  4436. cr.sendContainerState(containerMapValue)
  4437. }
  4438. ee.EncodeFloat32(v[string(k2)])
  4439. }
  4440. } else {
  4441. for k2, v2 := range v {
  4442. if cr != nil {
  4443. cr.sendContainerState(containerMapKey)
  4444. }
  4445. if asSymbols {
  4446. ee.EncodeSymbol(k2)
  4447. } else {
  4448. ee.EncodeString(c_UTF8, k2)
  4449. }
  4450. if cr != nil {
  4451. cr.sendContainerState(containerMapValue)
  4452. }
  4453. ee.EncodeFloat32(v2)
  4454. }
  4455. }
  4456. if cr != nil {
  4457. cr.sendContainerState(containerMapEnd)
  4458. }
  4459. }
  4460. func (f *encFnInfo) fastpathEncMapStringFloat64R(rv reflect.Value) {
  4461. fastpathTV.EncMapStringFloat64V(rv.Interface().(map[string]float64), fastpathCheckNilFalse, f.e)
  4462. }
  4463. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, checkNil bool, e *Encoder) {
  4464. ee := e.e
  4465. cr := e.cr
  4466. if checkNil && v == nil {
  4467. ee.EncodeNil()
  4468. return
  4469. }
  4470. ee.EncodeMapStart(len(v))
  4471. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4472. if e.h.Canonical {
  4473. v2 := make([]string, len(v))
  4474. var i int
  4475. for k, _ := range v {
  4476. v2[i] = string(k)
  4477. i++
  4478. }
  4479. sort.Sort(stringSlice(v2))
  4480. for _, k2 := range v2 {
  4481. if cr != nil {
  4482. cr.sendContainerState(containerMapKey)
  4483. }
  4484. if asSymbols {
  4485. ee.EncodeSymbol(k2)
  4486. } else {
  4487. ee.EncodeString(c_UTF8, k2)
  4488. }
  4489. if cr != nil {
  4490. cr.sendContainerState(containerMapValue)
  4491. }
  4492. ee.EncodeFloat64(v[string(k2)])
  4493. }
  4494. } else {
  4495. for k2, v2 := range v {
  4496. if cr != nil {
  4497. cr.sendContainerState(containerMapKey)
  4498. }
  4499. if asSymbols {
  4500. ee.EncodeSymbol(k2)
  4501. } else {
  4502. ee.EncodeString(c_UTF8, k2)
  4503. }
  4504. if cr != nil {
  4505. cr.sendContainerState(containerMapValue)
  4506. }
  4507. ee.EncodeFloat64(v2)
  4508. }
  4509. }
  4510. if cr != nil {
  4511. cr.sendContainerState(containerMapEnd)
  4512. }
  4513. }
  4514. func (f *encFnInfo) fastpathEncMapStringBoolR(rv reflect.Value) {
  4515. fastpathTV.EncMapStringBoolV(rv.Interface().(map[string]bool), fastpathCheckNilFalse, f.e)
  4516. }
  4517. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, checkNil bool, e *Encoder) {
  4518. ee := e.e
  4519. cr := e.cr
  4520. if checkNil && v == nil {
  4521. ee.EncodeNil()
  4522. return
  4523. }
  4524. ee.EncodeMapStart(len(v))
  4525. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4526. if e.h.Canonical {
  4527. v2 := make([]string, len(v))
  4528. var i int
  4529. for k, _ := range v {
  4530. v2[i] = string(k)
  4531. i++
  4532. }
  4533. sort.Sort(stringSlice(v2))
  4534. for _, k2 := range v2 {
  4535. if cr != nil {
  4536. cr.sendContainerState(containerMapKey)
  4537. }
  4538. if asSymbols {
  4539. ee.EncodeSymbol(k2)
  4540. } else {
  4541. ee.EncodeString(c_UTF8, k2)
  4542. }
  4543. if cr != nil {
  4544. cr.sendContainerState(containerMapValue)
  4545. }
  4546. ee.EncodeBool(v[string(k2)])
  4547. }
  4548. } else {
  4549. for k2, v2 := range v {
  4550. if cr != nil {
  4551. cr.sendContainerState(containerMapKey)
  4552. }
  4553. if asSymbols {
  4554. ee.EncodeSymbol(k2)
  4555. } else {
  4556. ee.EncodeString(c_UTF8, k2)
  4557. }
  4558. if cr != nil {
  4559. cr.sendContainerState(containerMapValue)
  4560. }
  4561. ee.EncodeBool(v2)
  4562. }
  4563. }
  4564. if cr != nil {
  4565. cr.sendContainerState(containerMapEnd)
  4566. }
  4567. }
  4568. func (f *encFnInfo) fastpathEncMapFloat32IntfR(rv reflect.Value) {
  4569. fastpathTV.EncMapFloat32IntfV(rv.Interface().(map[float32]interface{}), fastpathCheckNilFalse, f.e)
  4570. }
  4571. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, checkNil bool, e *Encoder) {
  4572. ee := e.e
  4573. cr := e.cr
  4574. if checkNil && v == nil {
  4575. ee.EncodeNil()
  4576. return
  4577. }
  4578. ee.EncodeMapStart(len(v))
  4579. if e.h.Canonical {
  4580. v2 := make([]float64, len(v))
  4581. var i int
  4582. for k, _ := range v {
  4583. v2[i] = float64(k)
  4584. i++
  4585. }
  4586. sort.Sort(floatSlice(v2))
  4587. for _, k2 := range v2 {
  4588. if cr != nil {
  4589. cr.sendContainerState(containerMapKey)
  4590. }
  4591. ee.EncodeFloat32(float32(k2))
  4592. if cr != nil {
  4593. cr.sendContainerState(containerMapValue)
  4594. }
  4595. e.encode(v[float32(k2)])
  4596. }
  4597. } else {
  4598. for k2, v2 := range v {
  4599. if cr != nil {
  4600. cr.sendContainerState(containerMapKey)
  4601. }
  4602. ee.EncodeFloat32(k2)
  4603. if cr != nil {
  4604. cr.sendContainerState(containerMapValue)
  4605. }
  4606. e.encode(v2)
  4607. }
  4608. }
  4609. if cr != nil {
  4610. cr.sendContainerState(containerMapEnd)
  4611. }
  4612. }
  4613. func (f *encFnInfo) fastpathEncMapFloat32StringR(rv reflect.Value) {
  4614. fastpathTV.EncMapFloat32StringV(rv.Interface().(map[float32]string), fastpathCheckNilFalse, f.e)
  4615. }
  4616. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, checkNil bool, e *Encoder) {
  4617. ee := e.e
  4618. cr := e.cr
  4619. if checkNil && v == nil {
  4620. ee.EncodeNil()
  4621. return
  4622. }
  4623. ee.EncodeMapStart(len(v))
  4624. if e.h.Canonical {
  4625. v2 := make([]float64, len(v))
  4626. var i int
  4627. for k, _ := range v {
  4628. v2[i] = float64(k)
  4629. i++
  4630. }
  4631. sort.Sort(floatSlice(v2))
  4632. for _, k2 := range v2 {
  4633. if cr != nil {
  4634. cr.sendContainerState(containerMapKey)
  4635. }
  4636. ee.EncodeFloat32(float32(k2))
  4637. if cr != nil {
  4638. cr.sendContainerState(containerMapValue)
  4639. }
  4640. ee.EncodeString(c_UTF8, v[float32(k2)])
  4641. }
  4642. } else {
  4643. for k2, v2 := range v {
  4644. if cr != nil {
  4645. cr.sendContainerState(containerMapKey)
  4646. }
  4647. ee.EncodeFloat32(k2)
  4648. if cr != nil {
  4649. cr.sendContainerState(containerMapValue)
  4650. }
  4651. ee.EncodeString(c_UTF8, v2)
  4652. }
  4653. }
  4654. if cr != nil {
  4655. cr.sendContainerState(containerMapEnd)
  4656. }
  4657. }
  4658. func (f *encFnInfo) fastpathEncMapFloat32UintR(rv reflect.Value) {
  4659. fastpathTV.EncMapFloat32UintV(rv.Interface().(map[float32]uint), fastpathCheckNilFalse, f.e)
  4660. }
  4661. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, checkNil bool, e *Encoder) {
  4662. ee := e.e
  4663. cr := e.cr
  4664. if checkNil && v == nil {
  4665. ee.EncodeNil()
  4666. return
  4667. }
  4668. ee.EncodeMapStart(len(v))
  4669. if e.h.Canonical {
  4670. v2 := make([]float64, len(v))
  4671. var i int
  4672. for k, _ := range v {
  4673. v2[i] = float64(k)
  4674. i++
  4675. }
  4676. sort.Sort(floatSlice(v2))
  4677. for _, k2 := range v2 {
  4678. if cr != nil {
  4679. cr.sendContainerState(containerMapKey)
  4680. }
  4681. ee.EncodeFloat32(float32(k2))
  4682. if cr != nil {
  4683. cr.sendContainerState(containerMapValue)
  4684. }
  4685. ee.EncodeUint(uint64(v[float32(k2)]))
  4686. }
  4687. } else {
  4688. for k2, v2 := range v {
  4689. if cr != nil {
  4690. cr.sendContainerState(containerMapKey)
  4691. }
  4692. ee.EncodeFloat32(k2)
  4693. if cr != nil {
  4694. cr.sendContainerState(containerMapValue)
  4695. }
  4696. ee.EncodeUint(uint64(v2))
  4697. }
  4698. }
  4699. if cr != nil {
  4700. cr.sendContainerState(containerMapEnd)
  4701. }
  4702. }
  4703. func (f *encFnInfo) fastpathEncMapFloat32Uint8R(rv reflect.Value) {
  4704. fastpathTV.EncMapFloat32Uint8V(rv.Interface().(map[float32]uint8), fastpathCheckNilFalse, f.e)
  4705. }
  4706. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, checkNil bool, e *Encoder) {
  4707. ee := e.e
  4708. cr := e.cr
  4709. if checkNil && v == nil {
  4710. ee.EncodeNil()
  4711. return
  4712. }
  4713. ee.EncodeMapStart(len(v))
  4714. if e.h.Canonical {
  4715. v2 := make([]float64, len(v))
  4716. var i int
  4717. for k, _ := range v {
  4718. v2[i] = float64(k)
  4719. i++
  4720. }
  4721. sort.Sort(floatSlice(v2))
  4722. for _, k2 := range v2 {
  4723. if cr != nil {
  4724. cr.sendContainerState(containerMapKey)
  4725. }
  4726. ee.EncodeFloat32(float32(k2))
  4727. if cr != nil {
  4728. cr.sendContainerState(containerMapValue)
  4729. }
  4730. ee.EncodeUint(uint64(v[float32(k2)]))
  4731. }
  4732. } else {
  4733. for k2, v2 := range v {
  4734. if cr != nil {
  4735. cr.sendContainerState(containerMapKey)
  4736. }
  4737. ee.EncodeFloat32(k2)
  4738. if cr != nil {
  4739. cr.sendContainerState(containerMapValue)
  4740. }
  4741. ee.EncodeUint(uint64(v2))
  4742. }
  4743. }
  4744. if cr != nil {
  4745. cr.sendContainerState(containerMapEnd)
  4746. }
  4747. }
  4748. func (f *encFnInfo) fastpathEncMapFloat32Uint16R(rv reflect.Value) {
  4749. fastpathTV.EncMapFloat32Uint16V(rv.Interface().(map[float32]uint16), fastpathCheckNilFalse, f.e)
  4750. }
  4751. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, checkNil bool, e *Encoder) {
  4752. ee := e.e
  4753. cr := e.cr
  4754. if checkNil && v == nil {
  4755. ee.EncodeNil()
  4756. return
  4757. }
  4758. ee.EncodeMapStart(len(v))
  4759. if e.h.Canonical {
  4760. v2 := make([]float64, len(v))
  4761. var i int
  4762. for k, _ := range v {
  4763. v2[i] = float64(k)
  4764. i++
  4765. }
  4766. sort.Sort(floatSlice(v2))
  4767. for _, k2 := range v2 {
  4768. if cr != nil {
  4769. cr.sendContainerState(containerMapKey)
  4770. }
  4771. ee.EncodeFloat32(float32(k2))
  4772. if cr != nil {
  4773. cr.sendContainerState(containerMapValue)
  4774. }
  4775. ee.EncodeUint(uint64(v[float32(k2)]))
  4776. }
  4777. } else {
  4778. for k2, v2 := range v {
  4779. if cr != nil {
  4780. cr.sendContainerState(containerMapKey)
  4781. }
  4782. ee.EncodeFloat32(k2)
  4783. if cr != nil {
  4784. cr.sendContainerState(containerMapValue)
  4785. }
  4786. ee.EncodeUint(uint64(v2))
  4787. }
  4788. }
  4789. if cr != nil {
  4790. cr.sendContainerState(containerMapEnd)
  4791. }
  4792. }
  4793. func (f *encFnInfo) fastpathEncMapFloat32Uint32R(rv reflect.Value) {
  4794. fastpathTV.EncMapFloat32Uint32V(rv.Interface().(map[float32]uint32), fastpathCheckNilFalse, f.e)
  4795. }
  4796. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, checkNil bool, e *Encoder) {
  4797. ee := e.e
  4798. cr := e.cr
  4799. if checkNil && v == nil {
  4800. ee.EncodeNil()
  4801. return
  4802. }
  4803. ee.EncodeMapStart(len(v))
  4804. if e.h.Canonical {
  4805. v2 := make([]float64, len(v))
  4806. var i int
  4807. for k, _ := range v {
  4808. v2[i] = float64(k)
  4809. i++
  4810. }
  4811. sort.Sort(floatSlice(v2))
  4812. for _, k2 := range v2 {
  4813. if cr != nil {
  4814. cr.sendContainerState(containerMapKey)
  4815. }
  4816. ee.EncodeFloat32(float32(k2))
  4817. if cr != nil {
  4818. cr.sendContainerState(containerMapValue)
  4819. }
  4820. ee.EncodeUint(uint64(v[float32(k2)]))
  4821. }
  4822. } else {
  4823. for k2, v2 := range v {
  4824. if cr != nil {
  4825. cr.sendContainerState(containerMapKey)
  4826. }
  4827. ee.EncodeFloat32(k2)
  4828. if cr != nil {
  4829. cr.sendContainerState(containerMapValue)
  4830. }
  4831. ee.EncodeUint(uint64(v2))
  4832. }
  4833. }
  4834. if cr != nil {
  4835. cr.sendContainerState(containerMapEnd)
  4836. }
  4837. }
  4838. func (f *encFnInfo) fastpathEncMapFloat32Uint64R(rv reflect.Value) {
  4839. fastpathTV.EncMapFloat32Uint64V(rv.Interface().(map[float32]uint64), fastpathCheckNilFalse, f.e)
  4840. }
  4841. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, checkNil bool, e *Encoder) {
  4842. ee := e.e
  4843. cr := e.cr
  4844. if checkNil && v == nil {
  4845. ee.EncodeNil()
  4846. return
  4847. }
  4848. ee.EncodeMapStart(len(v))
  4849. if e.h.Canonical {
  4850. v2 := make([]float64, len(v))
  4851. var i int
  4852. for k, _ := range v {
  4853. v2[i] = float64(k)
  4854. i++
  4855. }
  4856. sort.Sort(floatSlice(v2))
  4857. for _, k2 := range v2 {
  4858. if cr != nil {
  4859. cr.sendContainerState(containerMapKey)
  4860. }
  4861. ee.EncodeFloat32(float32(k2))
  4862. if cr != nil {
  4863. cr.sendContainerState(containerMapValue)
  4864. }
  4865. ee.EncodeUint(uint64(v[float32(k2)]))
  4866. }
  4867. } else {
  4868. for k2, v2 := range v {
  4869. if cr != nil {
  4870. cr.sendContainerState(containerMapKey)
  4871. }
  4872. ee.EncodeFloat32(k2)
  4873. if cr != nil {
  4874. cr.sendContainerState(containerMapValue)
  4875. }
  4876. ee.EncodeUint(uint64(v2))
  4877. }
  4878. }
  4879. if cr != nil {
  4880. cr.sendContainerState(containerMapEnd)
  4881. }
  4882. }
  4883. func (f *encFnInfo) fastpathEncMapFloat32UintptrR(rv reflect.Value) {
  4884. fastpathTV.EncMapFloat32UintptrV(rv.Interface().(map[float32]uintptr), fastpathCheckNilFalse, f.e)
  4885. }
  4886. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, checkNil bool, e *Encoder) {
  4887. ee := e.e
  4888. cr := e.cr
  4889. if checkNil && v == nil {
  4890. ee.EncodeNil()
  4891. return
  4892. }
  4893. ee.EncodeMapStart(len(v))
  4894. if e.h.Canonical {
  4895. v2 := make([]float64, len(v))
  4896. var i int
  4897. for k, _ := range v {
  4898. v2[i] = float64(k)
  4899. i++
  4900. }
  4901. sort.Sort(floatSlice(v2))
  4902. for _, k2 := range v2 {
  4903. if cr != nil {
  4904. cr.sendContainerState(containerMapKey)
  4905. }
  4906. ee.EncodeFloat32(float32(k2))
  4907. if cr != nil {
  4908. cr.sendContainerState(containerMapValue)
  4909. }
  4910. e.encode(v[float32(k2)])
  4911. }
  4912. } else {
  4913. for k2, v2 := range v {
  4914. if cr != nil {
  4915. cr.sendContainerState(containerMapKey)
  4916. }
  4917. ee.EncodeFloat32(k2)
  4918. if cr != nil {
  4919. cr.sendContainerState(containerMapValue)
  4920. }
  4921. e.encode(v2)
  4922. }
  4923. }
  4924. if cr != nil {
  4925. cr.sendContainerState(containerMapEnd)
  4926. }
  4927. }
  4928. func (f *encFnInfo) fastpathEncMapFloat32IntR(rv reflect.Value) {
  4929. fastpathTV.EncMapFloat32IntV(rv.Interface().(map[float32]int), fastpathCheckNilFalse, f.e)
  4930. }
  4931. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, checkNil bool, e *Encoder) {
  4932. ee := e.e
  4933. cr := e.cr
  4934. if checkNil && v == nil {
  4935. ee.EncodeNil()
  4936. return
  4937. }
  4938. ee.EncodeMapStart(len(v))
  4939. if e.h.Canonical {
  4940. v2 := make([]float64, len(v))
  4941. var i int
  4942. for k, _ := range v {
  4943. v2[i] = float64(k)
  4944. i++
  4945. }
  4946. sort.Sort(floatSlice(v2))
  4947. for _, k2 := range v2 {
  4948. if cr != nil {
  4949. cr.sendContainerState(containerMapKey)
  4950. }
  4951. ee.EncodeFloat32(float32(k2))
  4952. if cr != nil {
  4953. cr.sendContainerState(containerMapValue)
  4954. }
  4955. ee.EncodeInt(int64(v[float32(k2)]))
  4956. }
  4957. } else {
  4958. for k2, v2 := range v {
  4959. if cr != nil {
  4960. cr.sendContainerState(containerMapKey)
  4961. }
  4962. ee.EncodeFloat32(k2)
  4963. if cr != nil {
  4964. cr.sendContainerState(containerMapValue)
  4965. }
  4966. ee.EncodeInt(int64(v2))
  4967. }
  4968. }
  4969. if cr != nil {
  4970. cr.sendContainerState(containerMapEnd)
  4971. }
  4972. }
  4973. func (f *encFnInfo) fastpathEncMapFloat32Int8R(rv reflect.Value) {
  4974. fastpathTV.EncMapFloat32Int8V(rv.Interface().(map[float32]int8), fastpathCheckNilFalse, f.e)
  4975. }
  4976. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, checkNil bool, e *Encoder) {
  4977. ee := e.e
  4978. cr := e.cr
  4979. if checkNil && v == nil {
  4980. ee.EncodeNil()
  4981. return
  4982. }
  4983. ee.EncodeMapStart(len(v))
  4984. if e.h.Canonical {
  4985. v2 := make([]float64, len(v))
  4986. var i int
  4987. for k, _ := range v {
  4988. v2[i] = float64(k)
  4989. i++
  4990. }
  4991. sort.Sort(floatSlice(v2))
  4992. for _, k2 := range v2 {
  4993. if cr != nil {
  4994. cr.sendContainerState(containerMapKey)
  4995. }
  4996. ee.EncodeFloat32(float32(k2))
  4997. if cr != nil {
  4998. cr.sendContainerState(containerMapValue)
  4999. }
  5000. ee.EncodeInt(int64(v[float32(k2)]))
  5001. }
  5002. } else {
  5003. for k2, v2 := range v {
  5004. if cr != nil {
  5005. cr.sendContainerState(containerMapKey)
  5006. }
  5007. ee.EncodeFloat32(k2)
  5008. if cr != nil {
  5009. cr.sendContainerState(containerMapValue)
  5010. }
  5011. ee.EncodeInt(int64(v2))
  5012. }
  5013. }
  5014. if cr != nil {
  5015. cr.sendContainerState(containerMapEnd)
  5016. }
  5017. }
  5018. func (f *encFnInfo) fastpathEncMapFloat32Int16R(rv reflect.Value) {
  5019. fastpathTV.EncMapFloat32Int16V(rv.Interface().(map[float32]int16), fastpathCheckNilFalse, f.e)
  5020. }
  5021. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, checkNil bool, e *Encoder) {
  5022. ee := e.e
  5023. cr := e.cr
  5024. if checkNil && v == nil {
  5025. ee.EncodeNil()
  5026. return
  5027. }
  5028. ee.EncodeMapStart(len(v))
  5029. if e.h.Canonical {
  5030. v2 := make([]float64, len(v))
  5031. var i int
  5032. for k, _ := range v {
  5033. v2[i] = float64(k)
  5034. i++
  5035. }
  5036. sort.Sort(floatSlice(v2))
  5037. for _, k2 := range v2 {
  5038. if cr != nil {
  5039. cr.sendContainerState(containerMapKey)
  5040. }
  5041. ee.EncodeFloat32(float32(k2))
  5042. if cr != nil {
  5043. cr.sendContainerState(containerMapValue)
  5044. }
  5045. ee.EncodeInt(int64(v[float32(k2)]))
  5046. }
  5047. } else {
  5048. for k2, v2 := range v {
  5049. if cr != nil {
  5050. cr.sendContainerState(containerMapKey)
  5051. }
  5052. ee.EncodeFloat32(k2)
  5053. if cr != nil {
  5054. cr.sendContainerState(containerMapValue)
  5055. }
  5056. ee.EncodeInt(int64(v2))
  5057. }
  5058. }
  5059. if cr != nil {
  5060. cr.sendContainerState(containerMapEnd)
  5061. }
  5062. }
  5063. func (f *encFnInfo) fastpathEncMapFloat32Int32R(rv reflect.Value) {
  5064. fastpathTV.EncMapFloat32Int32V(rv.Interface().(map[float32]int32), fastpathCheckNilFalse, f.e)
  5065. }
  5066. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, checkNil bool, e *Encoder) {
  5067. ee := e.e
  5068. cr := e.cr
  5069. if checkNil && v == nil {
  5070. ee.EncodeNil()
  5071. return
  5072. }
  5073. ee.EncodeMapStart(len(v))
  5074. if e.h.Canonical {
  5075. v2 := make([]float64, len(v))
  5076. var i int
  5077. for k, _ := range v {
  5078. v2[i] = float64(k)
  5079. i++
  5080. }
  5081. sort.Sort(floatSlice(v2))
  5082. for _, k2 := range v2 {
  5083. if cr != nil {
  5084. cr.sendContainerState(containerMapKey)
  5085. }
  5086. ee.EncodeFloat32(float32(k2))
  5087. if cr != nil {
  5088. cr.sendContainerState(containerMapValue)
  5089. }
  5090. ee.EncodeInt(int64(v[float32(k2)]))
  5091. }
  5092. } else {
  5093. for k2, v2 := range v {
  5094. if cr != nil {
  5095. cr.sendContainerState(containerMapKey)
  5096. }
  5097. ee.EncodeFloat32(k2)
  5098. if cr != nil {
  5099. cr.sendContainerState(containerMapValue)
  5100. }
  5101. ee.EncodeInt(int64(v2))
  5102. }
  5103. }
  5104. if cr != nil {
  5105. cr.sendContainerState(containerMapEnd)
  5106. }
  5107. }
  5108. func (f *encFnInfo) fastpathEncMapFloat32Int64R(rv reflect.Value) {
  5109. fastpathTV.EncMapFloat32Int64V(rv.Interface().(map[float32]int64), fastpathCheckNilFalse, f.e)
  5110. }
  5111. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, checkNil bool, e *Encoder) {
  5112. ee := e.e
  5113. cr := e.cr
  5114. if checkNil && v == nil {
  5115. ee.EncodeNil()
  5116. return
  5117. }
  5118. ee.EncodeMapStart(len(v))
  5119. if e.h.Canonical {
  5120. v2 := make([]float64, len(v))
  5121. var i int
  5122. for k, _ := range v {
  5123. v2[i] = float64(k)
  5124. i++
  5125. }
  5126. sort.Sort(floatSlice(v2))
  5127. for _, k2 := range v2 {
  5128. if cr != nil {
  5129. cr.sendContainerState(containerMapKey)
  5130. }
  5131. ee.EncodeFloat32(float32(k2))
  5132. if cr != nil {
  5133. cr.sendContainerState(containerMapValue)
  5134. }
  5135. ee.EncodeInt(int64(v[float32(k2)]))
  5136. }
  5137. } else {
  5138. for k2, v2 := range v {
  5139. if cr != nil {
  5140. cr.sendContainerState(containerMapKey)
  5141. }
  5142. ee.EncodeFloat32(k2)
  5143. if cr != nil {
  5144. cr.sendContainerState(containerMapValue)
  5145. }
  5146. ee.EncodeInt(int64(v2))
  5147. }
  5148. }
  5149. if cr != nil {
  5150. cr.sendContainerState(containerMapEnd)
  5151. }
  5152. }
  5153. func (f *encFnInfo) fastpathEncMapFloat32Float32R(rv reflect.Value) {
  5154. fastpathTV.EncMapFloat32Float32V(rv.Interface().(map[float32]float32), fastpathCheckNilFalse, f.e)
  5155. }
  5156. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, checkNil bool, e *Encoder) {
  5157. ee := e.e
  5158. cr := e.cr
  5159. if checkNil && v == nil {
  5160. ee.EncodeNil()
  5161. return
  5162. }
  5163. ee.EncodeMapStart(len(v))
  5164. if e.h.Canonical {
  5165. v2 := make([]float64, len(v))
  5166. var i int
  5167. for k, _ := range v {
  5168. v2[i] = float64(k)
  5169. i++
  5170. }
  5171. sort.Sort(floatSlice(v2))
  5172. for _, k2 := range v2 {
  5173. if cr != nil {
  5174. cr.sendContainerState(containerMapKey)
  5175. }
  5176. ee.EncodeFloat32(float32(k2))
  5177. if cr != nil {
  5178. cr.sendContainerState(containerMapValue)
  5179. }
  5180. ee.EncodeFloat32(v[float32(k2)])
  5181. }
  5182. } else {
  5183. for k2, v2 := range v {
  5184. if cr != nil {
  5185. cr.sendContainerState(containerMapKey)
  5186. }
  5187. ee.EncodeFloat32(k2)
  5188. if cr != nil {
  5189. cr.sendContainerState(containerMapValue)
  5190. }
  5191. ee.EncodeFloat32(v2)
  5192. }
  5193. }
  5194. if cr != nil {
  5195. cr.sendContainerState(containerMapEnd)
  5196. }
  5197. }
  5198. func (f *encFnInfo) fastpathEncMapFloat32Float64R(rv reflect.Value) {
  5199. fastpathTV.EncMapFloat32Float64V(rv.Interface().(map[float32]float64), fastpathCheckNilFalse, f.e)
  5200. }
  5201. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, checkNil bool, e *Encoder) {
  5202. ee := e.e
  5203. cr := e.cr
  5204. if checkNil && v == nil {
  5205. ee.EncodeNil()
  5206. return
  5207. }
  5208. ee.EncodeMapStart(len(v))
  5209. if e.h.Canonical {
  5210. v2 := make([]float64, len(v))
  5211. var i int
  5212. for k, _ := range v {
  5213. v2[i] = float64(k)
  5214. i++
  5215. }
  5216. sort.Sort(floatSlice(v2))
  5217. for _, k2 := range v2 {
  5218. if cr != nil {
  5219. cr.sendContainerState(containerMapKey)
  5220. }
  5221. ee.EncodeFloat32(float32(k2))
  5222. if cr != nil {
  5223. cr.sendContainerState(containerMapValue)
  5224. }
  5225. ee.EncodeFloat64(v[float32(k2)])
  5226. }
  5227. } else {
  5228. for k2, v2 := range v {
  5229. if cr != nil {
  5230. cr.sendContainerState(containerMapKey)
  5231. }
  5232. ee.EncodeFloat32(k2)
  5233. if cr != nil {
  5234. cr.sendContainerState(containerMapValue)
  5235. }
  5236. ee.EncodeFloat64(v2)
  5237. }
  5238. }
  5239. if cr != nil {
  5240. cr.sendContainerState(containerMapEnd)
  5241. }
  5242. }
  5243. func (f *encFnInfo) fastpathEncMapFloat32BoolR(rv reflect.Value) {
  5244. fastpathTV.EncMapFloat32BoolV(rv.Interface().(map[float32]bool), fastpathCheckNilFalse, f.e)
  5245. }
  5246. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, checkNil bool, e *Encoder) {
  5247. ee := e.e
  5248. cr := e.cr
  5249. if checkNil && v == nil {
  5250. ee.EncodeNil()
  5251. return
  5252. }
  5253. ee.EncodeMapStart(len(v))
  5254. if e.h.Canonical {
  5255. v2 := make([]float64, len(v))
  5256. var i int
  5257. for k, _ := range v {
  5258. v2[i] = float64(k)
  5259. i++
  5260. }
  5261. sort.Sort(floatSlice(v2))
  5262. for _, k2 := range v2 {
  5263. if cr != nil {
  5264. cr.sendContainerState(containerMapKey)
  5265. }
  5266. ee.EncodeFloat32(float32(k2))
  5267. if cr != nil {
  5268. cr.sendContainerState(containerMapValue)
  5269. }
  5270. ee.EncodeBool(v[float32(k2)])
  5271. }
  5272. } else {
  5273. for k2, v2 := range v {
  5274. if cr != nil {
  5275. cr.sendContainerState(containerMapKey)
  5276. }
  5277. ee.EncodeFloat32(k2)
  5278. if cr != nil {
  5279. cr.sendContainerState(containerMapValue)
  5280. }
  5281. ee.EncodeBool(v2)
  5282. }
  5283. }
  5284. if cr != nil {
  5285. cr.sendContainerState(containerMapEnd)
  5286. }
  5287. }
  5288. func (f *encFnInfo) fastpathEncMapFloat64IntfR(rv reflect.Value) {
  5289. fastpathTV.EncMapFloat64IntfV(rv.Interface().(map[float64]interface{}), fastpathCheckNilFalse, f.e)
  5290. }
  5291. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, checkNil bool, e *Encoder) {
  5292. ee := e.e
  5293. cr := e.cr
  5294. if checkNil && v == nil {
  5295. ee.EncodeNil()
  5296. return
  5297. }
  5298. ee.EncodeMapStart(len(v))
  5299. if e.h.Canonical {
  5300. v2 := make([]float64, len(v))
  5301. var i int
  5302. for k, _ := range v {
  5303. v2[i] = float64(k)
  5304. i++
  5305. }
  5306. sort.Sort(floatSlice(v2))
  5307. for _, k2 := range v2 {
  5308. if cr != nil {
  5309. cr.sendContainerState(containerMapKey)
  5310. }
  5311. ee.EncodeFloat64(float64(k2))
  5312. if cr != nil {
  5313. cr.sendContainerState(containerMapValue)
  5314. }
  5315. e.encode(v[float64(k2)])
  5316. }
  5317. } else {
  5318. for k2, v2 := range v {
  5319. if cr != nil {
  5320. cr.sendContainerState(containerMapKey)
  5321. }
  5322. ee.EncodeFloat64(k2)
  5323. if cr != nil {
  5324. cr.sendContainerState(containerMapValue)
  5325. }
  5326. e.encode(v2)
  5327. }
  5328. }
  5329. if cr != nil {
  5330. cr.sendContainerState(containerMapEnd)
  5331. }
  5332. }
  5333. func (f *encFnInfo) fastpathEncMapFloat64StringR(rv reflect.Value) {
  5334. fastpathTV.EncMapFloat64StringV(rv.Interface().(map[float64]string), fastpathCheckNilFalse, f.e)
  5335. }
  5336. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, checkNil bool, e *Encoder) {
  5337. ee := e.e
  5338. cr := e.cr
  5339. if checkNil && v == nil {
  5340. ee.EncodeNil()
  5341. return
  5342. }
  5343. ee.EncodeMapStart(len(v))
  5344. if e.h.Canonical {
  5345. v2 := make([]float64, len(v))
  5346. var i int
  5347. for k, _ := range v {
  5348. v2[i] = float64(k)
  5349. i++
  5350. }
  5351. sort.Sort(floatSlice(v2))
  5352. for _, k2 := range v2 {
  5353. if cr != nil {
  5354. cr.sendContainerState(containerMapKey)
  5355. }
  5356. ee.EncodeFloat64(float64(k2))
  5357. if cr != nil {
  5358. cr.sendContainerState(containerMapValue)
  5359. }
  5360. ee.EncodeString(c_UTF8, v[float64(k2)])
  5361. }
  5362. } else {
  5363. for k2, v2 := range v {
  5364. if cr != nil {
  5365. cr.sendContainerState(containerMapKey)
  5366. }
  5367. ee.EncodeFloat64(k2)
  5368. if cr != nil {
  5369. cr.sendContainerState(containerMapValue)
  5370. }
  5371. ee.EncodeString(c_UTF8, v2)
  5372. }
  5373. }
  5374. if cr != nil {
  5375. cr.sendContainerState(containerMapEnd)
  5376. }
  5377. }
  5378. func (f *encFnInfo) fastpathEncMapFloat64UintR(rv reflect.Value) {
  5379. fastpathTV.EncMapFloat64UintV(rv.Interface().(map[float64]uint), fastpathCheckNilFalse, f.e)
  5380. }
  5381. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, checkNil bool, e *Encoder) {
  5382. ee := e.e
  5383. cr := e.cr
  5384. if checkNil && v == nil {
  5385. ee.EncodeNil()
  5386. return
  5387. }
  5388. ee.EncodeMapStart(len(v))
  5389. if e.h.Canonical {
  5390. v2 := make([]float64, len(v))
  5391. var i int
  5392. for k, _ := range v {
  5393. v2[i] = float64(k)
  5394. i++
  5395. }
  5396. sort.Sort(floatSlice(v2))
  5397. for _, k2 := range v2 {
  5398. if cr != nil {
  5399. cr.sendContainerState(containerMapKey)
  5400. }
  5401. ee.EncodeFloat64(float64(k2))
  5402. if cr != nil {
  5403. cr.sendContainerState(containerMapValue)
  5404. }
  5405. ee.EncodeUint(uint64(v[float64(k2)]))
  5406. }
  5407. } else {
  5408. for k2, v2 := range v {
  5409. if cr != nil {
  5410. cr.sendContainerState(containerMapKey)
  5411. }
  5412. ee.EncodeFloat64(k2)
  5413. if cr != nil {
  5414. cr.sendContainerState(containerMapValue)
  5415. }
  5416. ee.EncodeUint(uint64(v2))
  5417. }
  5418. }
  5419. if cr != nil {
  5420. cr.sendContainerState(containerMapEnd)
  5421. }
  5422. }
  5423. func (f *encFnInfo) fastpathEncMapFloat64Uint8R(rv reflect.Value) {
  5424. fastpathTV.EncMapFloat64Uint8V(rv.Interface().(map[float64]uint8), fastpathCheckNilFalse, f.e)
  5425. }
  5426. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, checkNil bool, e *Encoder) {
  5427. ee := e.e
  5428. cr := e.cr
  5429. if checkNil && v == nil {
  5430. ee.EncodeNil()
  5431. return
  5432. }
  5433. ee.EncodeMapStart(len(v))
  5434. if e.h.Canonical {
  5435. v2 := make([]float64, len(v))
  5436. var i int
  5437. for k, _ := range v {
  5438. v2[i] = float64(k)
  5439. i++
  5440. }
  5441. sort.Sort(floatSlice(v2))
  5442. for _, k2 := range v2 {
  5443. if cr != nil {
  5444. cr.sendContainerState(containerMapKey)
  5445. }
  5446. ee.EncodeFloat64(float64(k2))
  5447. if cr != nil {
  5448. cr.sendContainerState(containerMapValue)
  5449. }
  5450. ee.EncodeUint(uint64(v[float64(k2)]))
  5451. }
  5452. } else {
  5453. for k2, v2 := range v {
  5454. if cr != nil {
  5455. cr.sendContainerState(containerMapKey)
  5456. }
  5457. ee.EncodeFloat64(k2)
  5458. if cr != nil {
  5459. cr.sendContainerState(containerMapValue)
  5460. }
  5461. ee.EncodeUint(uint64(v2))
  5462. }
  5463. }
  5464. if cr != nil {
  5465. cr.sendContainerState(containerMapEnd)
  5466. }
  5467. }
  5468. func (f *encFnInfo) fastpathEncMapFloat64Uint16R(rv reflect.Value) {
  5469. fastpathTV.EncMapFloat64Uint16V(rv.Interface().(map[float64]uint16), fastpathCheckNilFalse, f.e)
  5470. }
  5471. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, checkNil bool, e *Encoder) {
  5472. ee := e.e
  5473. cr := e.cr
  5474. if checkNil && v == nil {
  5475. ee.EncodeNil()
  5476. return
  5477. }
  5478. ee.EncodeMapStart(len(v))
  5479. if e.h.Canonical {
  5480. v2 := make([]float64, len(v))
  5481. var i int
  5482. for k, _ := range v {
  5483. v2[i] = float64(k)
  5484. i++
  5485. }
  5486. sort.Sort(floatSlice(v2))
  5487. for _, k2 := range v2 {
  5488. if cr != nil {
  5489. cr.sendContainerState(containerMapKey)
  5490. }
  5491. ee.EncodeFloat64(float64(k2))
  5492. if cr != nil {
  5493. cr.sendContainerState(containerMapValue)
  5494. }
  5495. ee.EncodeUint(uint64(v[float64(k2)]))
  5496. }
  5497. } else {
  5498. for k2, v2 := range v {
  5499. if cr != nil {
  5500. cr.sendContainerState(containerMapKey)
  5501. }
  5502. ee.EncodeFloat64(k2)
  5503. if cr != nil {
  5504. cr.sendContainerState(containerMapValue)
  5505. }
  5506. ee.EncodeUint(uint64(v2))
  5507. }
  5508. }
  5509. if cr != nil {
  5510. cr.sendContainerState(containerMapEnd)
  5511. }
  5512. }
  5513. func (f *encFnInfo) fastpathEncMapFloat64Uint32R(rv reflect.Value) {
  5514. fastpathTV.EncMapFloat64Uint32V(rv.Interface().(map[float64]uint32), fastpathCheckNilFalse, f.e)
  5515. }
  5516. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, checkNil bool, e *Encoder) {
  5517. ee := e.e
  5518. cr := e.cr
  5519. if checkNil && v == nil {
  5520. ee.EncodeNil()
  5521. return
  5522. }
  5523. ee.EncodeMapStart(len(v))
  5524. if e.h.Canonical {
  5525. v2 := make([]float64, len(v))
  5526. var i int
  5527. for k, _ := range v {
  5528. v2[i] = float64(k)
  5529. i++
  5530. }
  5531. sort.Sort(floatSlice(v2))
  5532. for _, k2 := range v2 {
  5533. if cr != nil {
  5534. cr.sendContainerState(containerMapKey)
  5535. }
  5536. ee.EncodeFloat64(float64(k2))
  5537. if cr != nil {
  5538. cr.sendContainerState(containerMapValue)
  5539. }
  5540. ee.EncodeUint(uint64(v[float64(k2)]))
  5541. }
  5542. } else {
  5543. for k2, v2 := range v {
  5544. if cr != nil {
  5545. cr.sendContainerState(containerMapKey)
  5546. }
  5547. ee.EncodeFloat64(k2)
  5548. if cr != nil {
  5549. cr.sendContainerState(containerMapValue)
  5550. }
  5551. ee.EncodeUint(uint64(v2))
  5552. }
  5553. }
  5554. if cr != nil {
  5555. cr.sendContainerState(containerMapEnd)
  5556. }
  5557. }
  5558. func (f *encFnInfo) fastpathEncMapFloat64Uint64R(rv reflect.Value) {
  5559. fastpathTV.EncMapFloat64Uint64V(rv.Interface().(map[float64]uint64), fastpathCheckNilFalse, f.e)
  5560. }
  5561. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, checkNil bool, e *Encoder) {
  5562. ee := e.e
  5563. cr := e.cr
  5564. if checkNil && v == nil {
  5565. ee.EncodeNil()
  5566. return
  5567. }
  5568. ee.EncodeMapStart(len(v))
  5569. if e.h.Canonical {
  5570. v2 := make([]float64, len(v))
  5571. var i int
  5572. for k, _ := range v {
  5573. v2[i] = float64(k)
  5574. i++
  5575. }
  5576. sort.Sort(floatSlice(v2))
  5577. for _, k2 := range v2 {
  5578. if cr != nil {
  5579. cr.sendContainerState(containerMapKey)
  5580. }
  5581. ee.EncodeFloat64(float64(k2))
  5582. if cr != nil {
  5583. cr.sendContainerState(containerMapValue)
  5584. }
  5585. ee.EncodeUint(uint64(v[float64(k2)]))
  5586. }
  5587. } else {
  5588. for k2, v2 := range v {
  5589. if cr != nil {
  5590. cr.sendContainerState(containerMapKey)
  5591. }
  5592. ee.EncodeFloat64(k2)
  5593. if cr != nil {
  5594. cr.sendContainerState(containerMapValue)
  5595. }
  5596. ee.EncodeUint(uint64(v2))
  5597. }
  5598. }
  5599. if cr != nil {
  5600. cr.sendContainerState(containerMapEnd)
  5601. }
  5602. }
  5603. func (f *encFnInfo) fastpathEncMapFloat64UintptrR(rv reflect.Value) {
  5604. fastpathTV.EncMapFloat64UintptrV(rv.Interface().(map[float64]uintptr), fastpathCheckNilFalse, f.e)
  5605. }
  5606. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, checkNil bool, e *Encoder) {
  5607. ee := e.e
  5608. cr := e.cr
  5609. if checkNil && v == nil {
  5610. ee.EncodeNil()
  5611. return
  5612. }
  5613. ee.EncodeMapStart(len(v))
  5614. if e.h.Canonical {
  5615. v2 := make([]float64, len(v))
  5616. var i int
  5617. for k, _ := range v {
  5618. v2[i] = float64(k)
  5619. i++
  5620. }
  5621. sort.Sort(floatSlice(v2))
  5622. for _, k2 := range v2 {
  5623. if cr != nil {
  5624. cr.sendContainerState(containerMapKey)
  5625. }
  5626. ee.EncodeFloat64(float64(k2))
  5627. if cr != nil {
  5628. cr.sendContainerState(containerMapValue)
  5629. }
  5630. e.encode(v[float64(k2)])
  5631. }
  5632. } else {
  5633. for k2, v2 := range v {
  5634. if cr != nil {
  5635. cr.sendContainerState(containerMapKey)
  5636. }
  5637. ee.EncodeFloat64(k2)
  5638. if cr != nil {
  5639. cr.sendContainerState(containerMapValue)
  5640. }
  5641. e.encode(v2)
  5642. }
  5643. }
  5644. if cr != nil {
  5645. cr.sendContainerState(containerMapEnd)
  5646. }
  5647. }
  5648. func (f *encFnInfo) fastpathEncMapFloat64IntR(rv reflect.Value) {
  5649. fastpathTV.EncMapFloat64IntV(rv.Interface().(map[float64]int), fastpathCheckNilFalse, f.e)
  5650. }
  5651. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, checkNil bool, e *Encoder) {
  5652. ee := e.e
  5653. cr := e.cr
  5654. if checkNil && v == nil {
  5655. ee.EncodeNil()
  5656. return
  5657. }
  5658. ee.EncodeMapStart(len(v))
  5659. if e.h.Canonical {
  5660. v2 := make([]float64, len(v))
  5661. var i int
  5662. for k, _ := range v {
  5663. v2[i] = float64(k)
  5664. i++
  5665. }
  5666. sort.Sort(floatSlice(v2))
  5667. for _, k2 := range v2 {
  5668. if cr != nil {
  5669. cr.sendContainerState(containerMapKey)
  5670. }
  5671. ee.EncodeFloat64(float64(k2))
  5672. if cr != nil {
  5673. cr.sendContainerState(containerMapValue)
  5674. }
  5675. ee.EncodeInt(int64(v[float64(k2)]))
  5676. }
  5677. } else {
  5678. for k2, v2 := range v {
  5679. if cr != nil {
  5680. cr.sendContainerState(containerMapKey)
  5681. }
  5682. ee.EncodeFloat64(k2)
  5683. if cr != nil {
  5684. cr.sendContainerState(containerMapValue)
  5685. }
  5686. ee.EncodeInt(int64(v2))
  5687. }
  5688. }
  5689. if cr != nil {
  5690. cr.sendContainerState(containerMapEnd)
  5691. }
  5692. }
  5693. func (f *encFnInfo) fastpathEncMapFloat64Int8R(rv reflect.Value) {
  5694. fastpathTV.EncMapFloat64Int8V(rv.Interface().(map[float64]int8), fastpathCheckNilFalse, f.e)
  5695. }
  5696. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, checkNil bool, e *Encoder) {
  5697. ee := e.e
  5698. cr := e.cr
  5699. if checkNil && v == nil {
  5700. ee.EncodeNil()
  5701. return
  5702. }
  5703. ee.EncodeMapStart(len(v))
  5704. if e.h.Canonical {
  5705. v2 := make([]float64, len(v))
  5706. var i int
  5707. for k, _ := range v {
  5708. v2[i] = float64(k)
  5709. i++
  5710. }
  5711. sort.Sort(floatSlice(v2))
  5712. for _, k2 := range v2 {
  5713. if cr != nil {
  5714. cr.sendContainerState(containerMapKey)
  5715. }
  5716. ee.EncodeFloat64(float64(k2))
  5717. if cr != nil {
  5718. cr.sendContainerState(containerMapValue)
  5719. }
  5720. ee.EncodeInt(int64(v[float64(k2)]))
  5721. }
  5722. } else {
  5723. for k2, v2 := range v {
  5724. if cr != nil {
  5725. cr.sendContainerState(containerMapKey)
  5726. }
  5727. ee.EncodeFloat64(k2)
  5728. if cr != nil {
  5729. cr.sendContainerState(containerMapValue)
  5730. }
  5731. ee.EncodeInt(int64(v2))
  5732. }
  5733. }
  5734. if cr != nil {
  5735. cr.sendContainerState(containerMapEnd)
  5736. }
  5737. }
  5738. func (f *encFnInfo) fastpathEncMapFloat64Int16R(rv reflect.Value) {
  5739. fastpathTV.EncMapFloat64Int16V(rv.Interface().(map[float64]int16), fastpathCheckNilFalse, f.e)
  5740. }
  5741. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, checkNil bool, e *Encoder) {
  5742. ee := e.e
  5743. cr := e.cr
  5744. if checkNil && v == nil {
  5745. ee.EncodeNil()
  5746. return
  5747. }
  5748. ee.EncodeMapStart(len(v))
  5749. if e.h.Canonical {
  5750. v2 := make([]float64, len(v))
  5751. var i int
  5752. for k, _ := range v {
  5753. v2[i] = float64(k)
  5754. i++
  5755. }
  5756. sort.Sort(floatSlice(v2))
  5757. for _, k2 := range v2 {
  5758. if cr != nil {
  5759. cr.sendContainerState(containerMapKey)
  5760. }
  5761. ee.EncodeFloat64(float64(k2))
  5762. if cr != nil {
  5763. cr.sendContainerState(containerMapValue)
  5764. }
  5765. ee.EncodeInt(int64(v[float64(k2)]))
  5766. }
  5767. } else {
  5768. for k2, v2 := range v {
  5769. if cr != nil {
  5770. cr.sendContainerState(containerMapKey)
  5771. }
  5772. ee.EncodeFloat64(k2)
  5773. if cr != nil {
  5774. cr.sendContainerState(containerMapValue)
  5775. }
  5776. ee.EncodeInt(int64(v2))
  5777. }
  5778. }
  5779. if cr != nil {
  5780. cr.sendContainerState(containerMapEnd)
  5781. }
  5782. }
  5783. func (f *encFnInfo) fastpathEncMapFloat64Int32R(rv reflect.Value) {
  5784. fastpathTV.EncMapFloat64Int32V(rv.Interface().(map[float64]int32), fastpathCheckNilFalse, f.e)
  5785. }
  5786. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, checkNil bool, e *Encoder) {
  5787. ee := e.e
  5788. cr := e.cr
  5789. if checkNil && v == nil {
  5790. ee.EncodeNil()
  5791. return
  5792. }
  5793. ee.EncodeMapStart(len(v))
  5794. if e.h.Canonical {
  5795. v2 := make([]float64, len(v))
  5796. var i int
  5797. for k, _ := range v {
  5798. v2[i] = float64(k)
  5799. i++
  5800. }
  5801. sort.Sort(floatSlice(v2))
  5802. for _, k2 := range v2 {
  5803. if cr != nil {
  5804. cr.sendContainerState(containerMapKey)
  5805. }
  5806. ee.EncodeFloat64(float64(k2))
  5807. if cr != nil {
  5808. cr.sendContainerState(containerMapValue)
  5809. }
  5810. ee.EncodeInt(int64(v[float64(k2)]))
  5811. }
  5812. } else {
  5813. for k2, v2 := range v {
  5814. if cr != nil {
  5815. cr.sendContainerState(containerMapKey)
  5816. }
  5817. ee.EncodeFloat64(k2)
  5818. if cr != nil {
  5819. cr.sendContainerState(containerMapValue)
  5820. }
  5821. ee.EncodeInt(int64(v2))
  5822. }
  5823. }
  5824. if cr != nil {
  5825. cr.sendContainerState(containerMapEnd)
  5826. }
  5827. }
  5828. func (f *encFnInfo) fastpathEncMapFloat64Int64R(rv reflect.Value) {
  5829. fastpathTV.EncMapFloat64Int64V(rv.Interface().(map[float64]int64), fastpathCheckNilFalse, f.e)
  5830. }
  5831. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, checkNil bool, e *Encoder) {
  5832. ee := e.e
  5833. cr := e.cr
  5834. if checkNil && v == nil {
  5835. ee.EncodeNil()
  5836. return
  5837. }
  5838. ee.EncodeMapStart(len(v))
  5839. if e.h.Canonical {
  5840. v2 := make([]float64, len(v))
  5841. var i int
  5842. for k, _ := range v {
  5843. v2[i] = float64(k)
  5844. i++
  5845. }
  5846. sort.Sort(floatSlice(v2))
  5847. for _, k2 := range v2 {
  5848. if cr != nil {
  5849. cr.sendContainerState(containerMapKey)
  5850. }
  5851. ee.EncodeFloat64(float64(k2))
  5852. if cr != nil {
  5853. cr.sendContainerState(containerMapValue)
  5854. }
  5855. ee.EncodeInt(int64(v[float64(k2)]))
  5856. }
  5857. } else {
  5858. for k2, v2 := range v {
  5859. if cr != nil {
  5860. cr.sendContainerState(containerMapKey)
  5861. }
  5862. ee.EncodeFloat64(k2)
  5863. if cr != nil {
  5864. cr.sendContainerState(containerMapValue)
  5865. }
  5866. ee.EncodeInt(int64(v2))
  5867. }
  5868. }
  5869. if cr != nil {
  5870. cr.sendContainerState(containerMapEnd)
  5871. }
  5872. }
  5873. func (f *encFnInfo) fastpathEncMapFloat64Float32R(rv reflect.Value) {
  5874. fastpathTV.EncMapFloat64Float32V(rv.Interface().(map[float64]float32), fastpathCheckNilFalse, f.e)
  5875. }
  5876. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, checkNil bool, e *Encoder) {
  5877. ee := e.e
  5878. cr := e.cr
  5879. if checkNil && v == nil {
  5880. ee.EncodeNil()
  5881. return
  5882. }
  5883. ee.EncodeMapStart(len(v))
  5884. if e.h.Canonical {
  5885. v2 := make([]float64, len(v))
  5886. var i int
  5887. for k, _ := range v {
  5888. v2[i] = float64(k)
  5889. i++
  5890. }
  5891. sort.Sort(floatSlice(v2))
  5892. for _, k2 := range v2 {
  5893. if cr != nil {
  5894. cr.sendContainerState(containerMapKey)
  5895. }
  5896. ee.EncodeFloat64(float64(k2))
  5897. if cr != nil {
  5898. cr.sendContainerState(containerMapValue)
  5899. }
  5900. ee.EncodeFloat32(v[float64(k2)])
  5901. }
  5902. } else {
  5903. for k2, v2 := range v {
  5904. if cr != nil {
  5905. cr.sendContainerState(containerMapKey)
  5906. }
  5907. ee.EncodeFloat64(k2)
  5908. if cr != nil {
  5909. cr.sendContainerState(containerMapValue)
  5910. }
  5911. ee.EncodeFloat32(v2)
  5912. }
  5913. }
  5914. if cr != nil {
  5915. cr.sendContainerState(containerMapEnd)
  5916. }
  5917. }
  5918. func (f *encFnInfo) fastpathEncMapFloat64Float64R(rv reflect.Value) {
  5919. fastpathTV.EncMapFloat64Float64V(rv.Interface().(map[float64]float64), fastpathCheckNilFalse, f.e)
  5920. }
  5921. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, checkNil bool, e *Encoder) {
  5922. ee := e.e
  5923. cr := e.cr
  5924. if checkNil && v == nil {
  5925. ee.EncodeNil()
  5926. return
  5927. }
  5928. ee.EncodeMapStart(len(v))
  5929. if e.h.Canonical {
  5930. v2 := make([]float64, len(v))
  5931. var i int
  5932. for k, _ := range v {
  5933. v2[i] = float64(k)
  5934. i++
  5935. }
  5936. sort.Sort(floatSlice(v2))
  5937. for _, k2 := range v2 {
  5938. if cr != nil {
  5939. cr.sendContainerState(containerMapKey)
  5940. }
  5941. ee.EncodeFloat64(float64(k2))
  5942. if cr != nil {
  5943. cr.sendContainerState(containerMapValue)
  5944. }
  5945. ee.EncodeFloat64(v[float64(k2)])
  5946. }
  5947. } else {
  5948. for k2, v2 := range v {
  5949. if cr != nil {
  5950. cr.sendContainerState(containerMapKey)
  5951. }
  5952. ee.EncodeFloat64(k2)
  5953. if cr != nil {
  5954. cr.sendContainerState(containerMapValue)
  5955. }
  5956. ee.EncodeFloat64(v2)
  5957. }
  5958. }
  5959. if cr != nil {
  5960. cr.sendContainerState(containerMapEnd)
  5961. }
  5962. }
  5963. func (f *encFnInfo) fastpathEncMapFloat64BoolR(rv reflect.Value) {
  5964. fastpathTV.EncMapFloat64BoolV(rv.Interface().(map[float64]bool), fastpathCheckNilFalse, f.e)
  5965. }
  5966. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, checkNil bool, e *Encoder) {
  5967. ee := e.e
  5968. cr := e.cr
  5969. if checkNil && v == nil {
  5970. ee.EncodeNil()
  5971. return
  5972. }
  5973. ee.EncodeMapStart(len(v))
  5974. if e.h.Canonical {
  5975. v2 := make([]float64, len(v))
  5976. var i int
  5977. for k, _ := range v {
  5978. v2[i] = float64(k)
  5979. i++
  5980. }
  5981. sort.Sort(floatSlice(v2))
  5982. for _, k2 := range v2 {
  5983. if cr != nil {
  5984. cr.sendContainerState(containerMapKey)
  5985. }
  5986. ee.EncodeFloat64(float64(k2))
  5987. if cr != nil {
  5988. cr.sendContainerState(containerMapValue)
  5989. }
  5990. ee.EncodeBool(v[float64(k2)])
  5991. }
  5992. } else {
  5993. for k2, v2 := range v {
  5994. if cr != nil {
  5995. cr.sendContainerState(containerMapKey)
  5996. }
  5997. ee.EncodeFloat64(k2)
  5998. if cr != nil {
  5999. cr.sendContainerState(containerMapValue)
  6000. }
  6001. ee.EncodeBool(v2)
  6002. }
  6003. }
  6004. if cr != nil {
  6005. cr.sendContainerState(containerMapEnd)
  6006. }
  6007. }
  6008. func (f *encFnInfo) fastpathEncMapUintIntfR(rv reflect.Value) {
  6009. fastpathTV.EncMapUintIntfV(rv.Interface().(map[uint]interface{}), fastpathCheckNilFalse, f.e)
  6010. }
  6011. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, checkNil bool, e *Encoder) {
  6012. ee := e.e
  6013. cr := e.cr
  6014. if checkNil && v == nil {
  6015. ee.EncodeNil()
  6016. return
  6017. }
  6018. ee.EncodeMapStart(len(v))
  6019. if e.h.Canonical {
  6020. v2 := make([]uint64, len(v))
  6021. var i int
  6022. for k, _ := range v {
  6023. v2[i] = uint64(k)
  6024. i++
  6025. }
  6026. sort.Sort(uintSlice(v2))
  6027. for _, k2 := range v2 {
  6028. if cr != nil {
  6029. cr.sendContainerState(containerMapKey)
  6030. }
  6031. ee.EncodeUint(uint64(uint(k2)))
  6032. if cr != nil {
  6033. cr.sendContainerState(containerMapValue)
  6034. }
  6035. e.encode(v[uint(k2)])
  6036. }
  6037. } else {
  6038. for k2, v2 := range v {
  6039. if cr != nil {
  6040. cr.sendContainerState(containerMapKey)
  6041. }
  6042. ee.EncodeUint(uint64(k2))
  6043. if cr != nil {
  6044. cr.sendContainerState(containerMapValue)
  6045. }
  6046. e.encode(v2)
  6047. }
  6048. }
  6049. if cr != nil {
  6050. cr.sendContainerState(containerMapEnd)
  6051. }
  6052. }
  6053. func (f *encFnInfo) fastpathEncMapUintStringR(rv reflect.Value) {
  6054. fastpathTV.EncMapUintStringV(rv.Interface().(map[uint]string), fastpathCheckNilFalse, f.e)
  6055. }
  6056. func (_ fastpathT) EncMapUintStringV(v map[uint]string, checkNil bool, e *Encoder) {
  6057. ee := e.e
  6058. cr := e.cr
  6059. if checkNil && v == nil {
  6060. ee.EncodeNil()
  6061. return
  6062. }
  6063. ee.EncodeMapStart(len(v))
  6064. if e.h.Canonical {
  6065. v2 := make([]uint64, len(v))
  6066. var i int
  6067. for k, _ := range v {
  6068. v2[i] = uint64(k)
  6069. i++
  6070. }
  6071. sort.Sort(uintSlice(v2))
  6072. for _, k2 := range v2 {
  6073. if cr != nil {
  6074. cr.sendContainerState(containerMapKey)
  6075. }
  6076. ee.EncodeUint(uint64(uint(k2)))
  6077. if cr != nil {
  6078. cr.sendContainerState(containerMapValue)
  6079. }
  6080. ee.EncodeString(c_UTF8, v[uint(k2)])
  6081. }
  6082. } else {
  6083. for k2, v2 := range v {
  6084. if cr != nil {
  6085. cr.sendContainerState(containerMapKey)
  6086. }
  6087. ee.EncodeUint(uint64(k2))
  6088. if cr != nil {
  6089. cr.sendContainerState(containerMapValue)
  6090. }
  6091. ee.EncodeString(c_UTF8, v2)
  6092. }
  6093. }
  6094. if cr != nil {
  6095. cr.sendContainerState(containerMapEnd)
  6096. }
  6097. }
  6098. func (f *encFnInfo) fastpathEncMapUintUintR(rv reflect.Value) {
  6099. fastpathTV.EncMapUintUintV(rv.Interface().(map[uint]uint), fastpathCheckNilFalse, f.e)
  6100. }
  6101. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, checkNil bool, e *Encoder) {
  6102. ee := e.e
  6103. cr := e.cr
  6104. if checkNil && v == nil {
  6105. ee.EncodeNil()
  6106. return
  6107. }
  6108. ee.EncodeMapStart(len(v))
  6109. if e.h.Canonical {
  6110. v2 := make([]uint64, len(v))
  6111. var i int
  6112. for k, _ := range v {
  6113. v2[i] = uint64(k)
  6114. i++
  6115. }
  6116. sort.Sort(uintSlice(v2))
  6117. for _, k2 := range v2 {
  6118. if cr != nil {
  6119. cr.sendContainerState(containerMapKey)
  6120. }
  6121. ee.EncodeUint(uint64(uint(k2)))
  6122. if cr != nil {
  6123. cr.sendContainerState(containerMapValue)
  6124. }
  6125. ee.EncodeUint(uint64(v[uint(k2)]))
  6126. }
  6127. } else {
  6128. for k2, v2 := range v {
  6129. if cr != nil {
  6130. cr.sendContainerState(containerMapKey)
  6131. }
  6132. ee.EncodeUint(uint64(k2))
  6133. if cr != nil {
  6134. cr.sendContainerState(containerMapValue)
  6135. }
  6136. ee.EncodeUint(uint64(v2))
  6137. }
  6138. }
  6139. if cr != nil {
  6140. cr.sendContainerState(containerMapEnd)
  6141. }
  6142. }
  6143. func (f *encFnInfo) fastpathEncMapUintUint8R(rv reflect.Value) {
  6144. fastpathTV.EncMapUintUint8V(rv.Interface().(map[uint]uint8), fastpathCheckNilFalse, f.e)
  6145. }
  6146. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, checkNil bool, e *Encoder) {
  6147. ee := e.e
  6148. cr := e.cr
  6149. if checkNil && v == nil {
  6150. ee.EncodeNil()
  6151. return
  6152. }
  6153. ee.EncodeMapStart(len(v))
  6154. if e.h.Canonical {
  6155. v2 := make([]uint64, len(v))
  6156. var i int
  6157. for k, _ := range v {
  6158. v2[i] = uint64(k)
  6159. i++
  6160. }
  6161. sort.Sort(uintSlice(v2))
  6162. for _, k2 := range v2 {
  6163. if cr != nil {
  6164. cr.sendContainerState(containerMapKey)
  6165. }
  6166. ee.EncodeUint(uint64(uint(k2)))
  6167. if cr != nil {
  6168. cr.sendContainerState(containerMapValue)
  6169. }
  6170. ee.EncodeUint(uint64(v[uint(k2)]))
  6171. }
  6172. } else {
  6173. for k2, v2 := range v {
  6174. if cr != nil {
  6175. cr.sendContainerState(containerMapKey)
  6176. }
  6177. ee.EncodeUint(uint64(k2))
  6178. if cr != nil {
  6179. cr.sendContainerState(containerMapValue)
  6180. }
  6181. ee.EncodeUint(uint64(v2))
  6182. }
  6183. }
  6184. if cr != nil {
  6185. cr.sendContainerState(containerMapEnd)
  6186. }
  6187. }
  6188. func (f *encFnInfo) fastpathEncMapUintUint16R(rv reflect.Value) {
  6189. fastpathTV.EncMapUintUint16V(rv.Interface().(map[uint]uint16), fastpathCheckNilFalse, f.e)
  6190. }
  6191. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, checkNil bool, e *Encoder) {
  6192. ee := e.e
  6193. cr := e.cr
  6194. if checkNil && v == nil {
  6195. ee.EncodeNil()
  6196. return
  6197. }
  6198. ee.EncodeMapStart(len(v))
  6199. if e.h.Canonical {
  6200. v2 := make([]uint64, len(v))
  6201. var i int
  6202. for k, _ := range v {
  6203. v2[i] = uint64(k)
  6204. i++
  6205. }
  6206. sort.Sort(uintSlice(v2))
  6207. for _, k2 := range v2 {
  6208. if cr != nil {
  6209. cr.sendContainerState(containerMapKey)
  6210. }
  6211. ee.EncodeUint(uint64(uint(k2)))
  6212. if cr != nil {
  6213. cr.sendContainerState(containerMapValue)
  6214. }
  6215. ee.EncodeUint(uint64(v[uint(k2)]))
  6216. }
  6217. } else {
  6218. for k2, v2 := range v {
  6219. if cr != nil {
  6220. cr.sendContainerState(containerMapKey)
  6221. }
  6222. ee.EncodeUint(uint64(k2))
  6223. if cr != nil {
  6224. cr.sendContainerState(containerMapValue)
  6225. }
  6226. ee.EncodeUint(uint64(v2))
  6227. }
  6228. }
  6229. if cr != nil {
  6230. cr.sendContainerState(containerMapEnd)
  6231. }
  6232. }
  6233. func (f *encFnInfo) fastpathEncMapUintUint32R(rv reflect.Value) {
  6234. fastpathTV.EncMapUintUint32V(rv.Interface().(map[uint]uint32), fastpathCheckNilFalse, f.e)
  6235. }
  6236. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, checkNil bool, e *Encoder) {
  6237. ee := e.e
  6238. cr := e.cr
  6239. if checkNil && v == nil {
  6240. ee.EncodeNil()
  6241. return
  6242. }
  6243. ee.EncodeMapStart(len(v))
  6244. if e.h.Canonical {
  6245. v2 := make([]uint64, len(v))
  6246. var i int
  6247. for k, _ := range v {
  6248. v2[i] = uint64(k)
  6249. i++
  6250. }
  6251. sort.Sort(uintSlice(v2))
  6252. for _, k2 := range v2 {
  6253. if cr != nil {
  6254. cr.sendContainerState(containerMapKey)
  6255. }
  6256. ee.EncodeUint(uint64(uint(k2)))
  6257. if cr != nil {
  6258. cr.sendContainerState(containerMapValue)
  6259. }
  6260. ee.EncodeUint(uint64(v[uint(k2)]))
  6261. }
  6262. } else {
  6263. for k2, v2 := range v {
  6264. if cr != nil {
  6265. cr.sendContainerState(containerMapKey)
  6266. }
  6267. ee.EncodeUint(uint64(k2))
  6268. if cr != nil {
  6269. cr.sendContainerState(containerMapValue)
  6270. }
  6271. ee.EncodeUint(uint64(v2))
  6272. }
  6273. }
  6274. if cr != nil {
  6275. cr.sendContainerState(containerMapEnd)
  6276. }
  6277. }
  6278. func (f *encFnInfo) fastpathEncMapUintUint64R(rv reflect.Value) {
  6279. fastpathTV.EncMapUintUint64V(rv.Interface().(map[uint]uint64), fastpathCheckNilFalse, f.e)
  6280. }
  6281. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, checkNil bool, e *Encoder) {
  6282. ee := e.e
  6283. cr := e.cr
  6284. if checkNil && v == nil {
  6285. ee.EncodeNil()
  6286. return
  6287. }
  6288. ee.EncodeMapStart(len(v))
  6289. if e.h.Canonical {
  6290. v2 := make([]uint64, len(v))
  6291. var i int
  6292. for k, _ := range v {
  6293. v2[i] = uint64(k)
  6294. i++
  6295. }
  6296. sort.Sort(uintSlice(v2))
  6297. for _, k2 := range v2 {
  6298. if cr != nil {
  6299. cr.sendContainerState(containerMapKey)
  6300. }
  6301. ee.EncodeUint(uint64(uint(k2)))
  6302. if cr != nil {
  6303. cr.sendContainerState(containerMapValue)
  6304. }
  6305. ee.EncodeUint(uint64(v[uint(k2)]))
  6306. }
  6307. } else {
  6308. for k2, v2 := range v {
  6309. if cr != nil {
  6310. cr.sendContainerState(containerMapKey)
  6311. }
  6312. ee.EncodeUint(uint64(k2))
  6313. if cr != nil {
  6314. cr.sendContainerState(containerMapValue)
  6315. }
  6316. ee.EncodeUint(uint64(v2))
  6317. }
  6318. }
  6319. if cr != nil {
  6320. cr.sendContainerState(containerMapEnd)
  6321. }
  6322. }
  6323. func (f *encFnInfo) fastpathEncMapUintUintptrR(rv reflect.Value) {
  6324. fastpathTV.EncMapUintUintptrV(rv.Interface().(map[uint]uintptr), fastpathCheckNilFalse, f.e)
  6325. }
  6326. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, checkNil bool, e *Encoder) {
  6327. ee := e.e
  6328. cr := e.cr
  6329. if checkNil && v == nil {
  6330. ee.EncodeNil()
  6331. return
  6332. }
  6333. ee.EncodeMapStart(len(v))
  6334. if e.h.Canonical {
  6335. v2 := make([]uint64, len(v))
  6336. var i int
  6337. for k, _ := range v {
  6338. v2[i] = uint64(k)
  6339. i++
  6340. }
  6341. sort.Sort(uintSlice(v2))
  6342. for _, k2 := range v2 {
  6343. if cr != nil {
  6344. cr.sendContainerState(containerMapKey)
  6345. }
  6346. ee.EncodeUint(uint64(uint(k2)))
  6347. if cr != nil {
  6348. cr.sendContainerState(containerMapValue)
  6349. }
  6350. e.encode(v[uint(k2)])
  6351. }
  6352. } else {
  6353. for k2, v2 := range v {
  6354. if cr != nil {
  6355. cr.sendContainerState(containerMapKey)
  6356. }
  6357. ee.EncodeUint(uint64(k2))
  6358. if cr != nil {
  6359. cr.sendContainerState(containerMapValue)
  6360. }
  6361. e.encode(v2)
  6362. }
  6363. }
  6364. if cr != nil {
  6365. cr.sendContainerState(containerMapEnd)
  6366. }
  6367. }
  6368. func (f *encFnInfo) fastpathEncMapUintIntR(rv reflect.Value) {
  6369. fastpathTV.EncMapUintIntV(rv.Interface().(map[uint]int), fastpathCheckNilFalse, f.e)
  6370. }
  6371. func (_ fastpathT) EncMapUintIntV(v map[uint]int, checkNil bool, e *Encoder) {
  6372. ee := e.e
  6373. cr := e.cr
  6374. if checkNil && v == nil {
  6375. ee.EncodeNil()
  6376. return
  6377. }
  6378. ee.EncodeMapStart(len(v))
  6379. if e.h.Canonical {
  6380. v2 := make([]uint64, len(v))
  6381. var i int
  6382. for k, _ := range v {
  6383. v2[i] = uint64(k)
  6384. i++
  6385. }
  6386. sort.Sort(uintSlice(v2))
  6387. for _, k2 := range v2 {
  6388. if cr != nil {
  6389. cr.sendContainerState(containerMapKey)
  6390. }
  6391. ee.EncodeUint(uint64(uint(k2)))
  6392. if cr != nil {
  6393. cr.sendContainerState(containerMapValue)
  6394. }
  6395. ee.EncodeInt(int64(v[uint(k2)]))
  6396. }
  6397. } else {
  6398. for k2, v2 := range v {
  6399. if cr != nil {
  6400. cr.sendContainerState(containerMapKey)
  6401. }
  6402. ee.EncodeUint(uint64(k2))
  6403. if cr != nil {
  6404. cr.sendContainerState(containerMapValue)
  6405. }
  6406. ee.EncodeInt(int64(v2))
  6407. }
  6408. }
  6409. if cr != nil {
  6410. cr.sendContainerState(containerMapEnd)
  6411. }
  6412. }
  6413. func (f *encFnInfo) fastpathEncMapUintInt8R(rv reflect.Value) {
  6414. fastpathTV.EncMapUintInt8V(rv.Interface().(map[uint]int8), fastpathCheckNilFalse, f.e)
  6415. }
  6416. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, checkNil bool, e *Encoder) {
  6417. ee := e.e
  6418. cr := e.cr
  6419. if checkNil && v == nil {
  6420. ee.EncodeNil()
  6421. return
  6422. }
  6423. ee.EncodeMapStart(len(v))
  6424. if e.h.Canonical {
  6425. v2 := make([]uint64, len(v))
  6426. var i int
  6427. for k, _ := range v {
  6428. v2[i] = uint64(k)
  6429. i++
  6430. }
  6431. sort.Sort(uintSlice(v2))
  6432. for _, k2 := range v2 {
  6433. if cr != nil {
  6434. cr.sendContainerState(containerMapKey)
  6435. }
  6436. ee.EncodeUint(uint64(uint(k2)))
  6437. if cr != nil {
  6438. cr.sendContainerState(containerMapValue)
  6439. }
  6440. ee.EncodeInt(int64(v[uint(k2)]))
  6441. }
  6442. } else {
  6443. for k2, v2 := range v {
  6444. if cr != nil {
  6445. cr.sendContainerState(containerMapKey)
  6446. }
  6447. ee.EncodeUint(uint64(k2))
  6448. if cr != nil {
  6449. cr.sendContainerState(containerMapValue)
  6450. }
  6451. ee.EncodeInt(int64(v2))
  6452. }
  6453. }
  6454. if cr != nil {
  6455. cr.sendContainerState(containerMapEnd)
  6456. }
  6457. }
  6458. func (f *encFnInfo) fastpathEncMapUintInt16R(rv reflect.Value) {
  6459. fastpathTV.EncMapUintInt16V(rv.Interface().(map[uint]int16), fastpathCheckNilFalse, f.e)
  6460. }
  6461. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, checkNil bool, e *Encoder) {
  6462. ee := e.e
  6463. cr := e.cr
  6464. if checkNil && v == nil {
  6465. ee.EncodeNil()
  6466. return
  6467. }
  6468. ee.EncodeMapStart(len(v))
  6469. if e.h.Canonical {
  6470. v2 := make([]uint64, len(v))
  6471. var i int
  6472. for k, _ := range v {
  6473. v2[i] = uint64(k)
  6474. i++
  6475. }
  6476. sort.Sort(uintSlice(v2))
  6477. for _, k2 := range v2 {
  6478. if cr != nil {
  6479. cr.sendContainerState(containerMapKey)
  6480. }
  6481. ee.EncodeUint(uint64(uint(k2)))
  6482. if cr != nil {
  6483. cr.sendContainerState(containerMapValue)
  6484. }
  6485. ee.EncodeInt(int64(v[uint(k2)]))
  6486. }
  6487. } else {
  6488. for k2, v2 := range v {
  6489. if cr != nil {
  6490. cr.sendContainerState(containerMapKey)
  6491. }
  6492. ee.EncodeUint(uint64(k2))
  6493. if cr != nil {
  6494. cr.sendContainerState(containerMapValue)
  6495. }
  6496. ee.EncodeInt(int64(v2))
  6497. }
  6498. }
  6499. if cr != nil {
  6500. cr.sendContainerState(containerMapEnd)
  6501. }
  6502. }
  6503. func (f *encFnInfo) fastpathEncMapUintInt32R(rv reflect.Value) {
  6504. fastpathTV.EncMapUintInt32V(rv.Interface().(map[uint]int32), fastpathCheckNilFalse, f.e)
  6505. }
  6506. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, checkNil bool, e *Encoder) {
  6507. ee := e.e
  6508. cr := e.cr
  6509. if checkNil && v == nil {
  6510. ee.EncodeNil()
  6511. return
  6512. }
  6513. ee.EncodeMapStart(len(v))
  6514. if e.h.Canonical {
  6515. v2 := make([]uint64, len(v))
  6516. var i int
  6517. for k, _ := range v {
  6518. v2[i] = uint64(k)
  6519. i++
  6520. }
  6521. sort.Sort(uintSlice(v2))
  6522. for _, k2 := range v2 {
  6523. if cr != nil {
  6524. cr.sendContainerState(containerMapKey)
  6525. }
  6526. ee.EncodeUint(uint64(uint(k2)))
  6527. if cr != nil {
  6528. cr.sendContainerState(containerMapValue)
  6529. }
  6530. ee.EncodeInt(int64(v[uint(k2)]))
  6531. }
  6532. } else {
  6533. for k2, v2 := range v {
  6534. if cr != nil {
  6535. cr.sendContainerState(containerMapKey)
  6536. }
  6537. ee.EncodeUint(uint64(k2))
  6538. if cr != nil {
  6539. cr.sendContainerState(containerMapValue)
  6540. }
  6541. ee.EncodeInt(int64(v2))
  6542. }
  6543. }
  6544. if cr != nil {
  6545. cr.sendContainerState(containerMapEnd)
  6546. }
  6547. }
  6548. func (f *encFnInfo) fastpathEncMapUintInt64R(rv reflect.Value) {
  6549. fastpathTV.EncMapUintInt64V(rv.Interface().(map[uint]int64), fastpathCheckNilFalse, f.e)
  6550. }
  6551. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, checkNil bool, e *Encoder) {
  6552. ee := e.e
  6553. cr := e.cr
  6554. if checkNil && v == nil {
  6555. ee.EncodeNil()
  6556. return
  6557. }
  6558. ee.EncodeMapStart(len(v))
  6559. if e.h.Canonical {
  6560. v2 := make([]uint64, len(v))
  6561. var i int
  6562. for k, _ := range v {
  6563. v2[i] = uint64(k)
  6564. i++
  6565. }
  6566. sort.Sort(uintSlice(v2))
  6567. for _, k2 := range v2 {
  6568. if cr != nil {
  6569. cr.sendContainerState(containerMapKey)
  6570. }
  6571. ee.EncodeUint(uint64(uint(k2)))
  6572. if cr != nil {
  6573. cr.sendContainerState(containerMapValue)
  6574. }
  6575. ee.EncodeInt(int64(v[uint(k2)]))
  6576. }
  6577. } else {
  6578. for k2, v2 := range v {
  6579. if cr != nil {
  6580. cr.sendContainerState(containerMapKey)
  6581. }
  6582. ee.EncodeUint(uint64(k2))
  6583. if cr != nil {
  6584. cr.sendContainerState(containerMapValue)
  6585. }
  6586. ee.EncodeInt(int64(v2))
  6587. }
  6588. }
  6589. if cr != nil {
  6590. cr.sendContainerState(containerMapEnd)
  6591. }
  6592. }
  6593. func (f *encFnInfo) fastpathEncMapUintFloat32R(rv reflect.Value) {
  6594. fastpathTV.EncMapUintFloat32V(rv.Interface().(map[uint]float32), fastpathCheckNilFalse, f.e)
  6595. }
  6596. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, checkNil bool, e *Encoder) {
  6597. ee := e.e
  6598. cr := e.cr
  6599. if checkNil && v == nil {
  6600. ee.EncodeNil()
  6601. return
  6602. }
  6603. ee.EncodeMapStart(len(v))
  6604. if e.h.Canonical {
  6605. v2 := make([]uint64, len(v))
  6606. var i int
  6607. for k, _ := range v {
  6608. v2[i] = uint64(k)
  6609. i++
  6610. }
  6611. sort.Sort(uintSlice(v2))
  6612. for _, k2 := range v2 {
  6613. if cr != nil {
  6614. cr.sendContainerState(containerMapKey)
  6615. }
  6616. ee.EncodeUint(uint64(uint(k2)))
  6617. if cr != nil {
  6618. cr.sendContainerState(containerMapValue)
  6619. }
  6620. ee.EncodeFloat32(v[uint(k2)])
  6621. }
  6622. } else {
  6623. for k2, v2 := range v {
  6624. if cr != nil {
  6625. cr.sendContainerState(containerMapKey)
  6626. }
  6627. ee.EncodeUint(uint64(k2))
  6628. if cr != nil {
  6629. cr.sendContainerState(containerMapValue)
  6630. }
  6631. ee.EncodeFloat32(v2)
  6632. }
  6633. }
  6634. if cr != nil {
  6635. cr.sendContainerState(containerMapEnd)
  6636. }
  6637. }
  6638. func (f *encFnInfo) fastpathEncMapUintFloat64R(rv reflect.Value) {
  6639. fastpathTV.EncMapUintFloat64V(rv.Interface().(map[uint]float64), fastpathCheckNilFalse, f.e)
  6640. }
  6641. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, checkNil bool, e *Encoder) {
  6642. ee := e.e
  6643. cr := e.cr
  6644. if checkNil && v == nil {
  6645. ee.EncodeNil()
  6646. return
  6647. }
  6648. ee.EncodeMapStart(len(v))
  6649. if e.h.Canonical {
  6650. v2 := make([]uint64, len(v))
  6651. var i int
  6652. for k, _ := range v {
  6653. v2[i] = uint64(k)
  6654. i++
  6655. }
  6656. sort.Sort(uintSlice(v2))
  6657. for _, k2 := range v2 {
  6658. if cr != nil {
  6659. cr.sendContainerState(containerMapKey)
  6660. }
  6661. ee.EncodeUint(uint64(uint(k2)))
  6662. if cr != nil {
  6663. cr.sendContainerState(containerMapValue)
  6664. }
  6665. ee.EncodeFloat64(v[uint(k2)])
  6666. }
  6667. } else {
  6668. for k2, v2 := range v {
  6669. if cr != nil {
  6670. cr.sendContainerState(containerMapKey)
  6671. }
  6672. ee.EncodeUint(uint64(k2))
  6673. if cr != nil {
  6674. cr.sendContainerState(containerMapValue)
  6675. }
  6676. ee.EncodeFloat64(v2)
  6677. }
  6678. }
  6679. if cr != nil {
  6680. cr.sendContainerState(containerMapEnd)
  6681. }
  6682. }
  6683. func (f *encFnInfo) fastpathEncMapUintBoolR(rv reflect.Value) {
  6684. fastpathTV.EncMapUintBoolV(rv.Interface().(map[uint]bool), fastpathCheckNilFalse, f.e)
  6685. }
  6686. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, checkNil bool, e *Encoder) {
  6687. ee := e.e
  6688. cr := e.cr
  6689. if checkNil && v == nil {
  6690. ee.EncodeNil()
  6691. return
  6692. }
  6693. ee.EncodeMapStart(len(v))
  6694. if e.h.Canonical {
  6695. v2 := make([]uint64, len(v))
  6696. var i int
  6697. for k, _ := range v {
  6698. v2[i] = uint64(k)
  6699. i++
  6700. }
  6701. sort.Sort(uintSlice(v2))
  6702. for _, k2 := range v2 {
  6703. if cr != nil {
  6704. cr.sendContainerState(containerMapKey)
  6705. }
  6706. ee.EncodeUint(uint64(uint(k2)))
  6707. if cr != nil {
  6708. cr.sendContainerState(containerMapValue)
  6709. }
  6710. ee.EncodeBool(v[uint(k2)])
  6711. }
  6712. } else {
  6713. for k2, v2 := range v {
  6714. if cr != nil {
  6715. cr.sendContainerState(containerMapKey)
  6716. }
  6717. ee.EncodeUint(uint64(k2))
  6718. if cr != nil {
  6719. cr.sendContainerState(containerMapValue)
  6720. }
  6721. ee.EncodeBool(v2)
  6722. }
  6723. }
  6724. if cr != nil {
  6725. cr.sendContainerState(containerMapEnd)
  6726. }
  6727. }
  6728. func (f *encFnInfo) fastpathEncMapUint8IntfR(rv reflect.Value) {
  6729. fastpathTV.EncMapUint8IntfV(rv.Interface().(map[uint8]interface{}), fastpathCheckNilFalse, f.e)
  6730. }
  6731. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, checkNil bool, e *Encoder) {
  6732. ee := e.e
  6733. cr := e.cr
  6734. if checkNil && v == nil {
  6735. ee.EncodeNil()
  6736. return
  6737. }
  6738. ee.EncodeMapStart(len(v))
  6739. if e.h.Canonical {
  6740. v2 := make([]uint64, len(v))
  6741. var i int
  6742. for k, _ := range v {
  6743. v2[i] = uint64(k)
  6744. i++
  6745. }
  6746. sort.Sort(uintSlice(v2))
  6747. for _, k2 := range v2 {
  6748. if cr != nil {
  6749. cr.sendContainerState(containerMapKey)
  6750. }
  6751. ee.EncodeUint(uint64(uint8(k2)))
  6752. if cr != nil {
  6753. cr.sendContainerState(containerMapValue)
  6754. }
  6755. e.encode(v[uint8(k2)])
  6756. }
  6757. } else {
  6758. for k2, v2 := range v {
  6759. if cr != nil {
  6760. cr.sendContainerState(containerMapKey)
  6761. }
  6762. ee.EncodeUint(uint64(k2))
  6763. if cr != nil {
  6764. cr.sendContainerState(containerMapValue)
  6765. }
  6766. e.encode(v2)
  6767. }
  6768. }
  6769. if cr != nil {
  6770. cr.sendContainerState(containerMapEnd)
  6771. }
  6772. }
  6773. func (f *encFnInfo) fastpathEncMapUint8StringR(rv reflect.Value) {
  6774. fastpathTV.EncMapUint8StringV(rv.Interface().(map[uint8]string), fastpathCheckNilFalse, f.e)
  6775. }
  6776. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, checkNil bool, e *Encoder) {
  6777. ee := e.e
  6778. cr := e.cr
  6779. if checkNil && v == nil {
  6780. ee.EncodeNil()
  6781. return
  6782. }
  6783. ee.EncodeMapStart(len(v))
  6784. if e.h.Canonical {
  6785. v2 := make([]uint64, len(v))
  6786. var i int
  6787. for k, _ := range v {
  6788. v2[i] = uint64(k)
  6789. i++
  6790. }
  6791. sort.Sort(uintSlice(v2))
  6792. for _, k2 := range v2 {
  6793. if cr != nil {
  6794. cr.sendContainerState(containerMapKey)
  6795. }
  6796. ee.EncodeUint(uint64(uint8(k2)))
  6797. if cr != nil {
  6798. cr.sendContainerState(containerMapValue)
  6799. }
  6800. ee.EncodeString(c_UTF8, v[uint8(k2)])
  6801. }
  6802. } else {
  6803. for k2, v2 := range v {
  6804. if cr != nil {
  6805. cr.sendContainerState(containerMapKey)
  6806. }
  6807. ee.EncodeUint(uint64(k2))
  6808. if cr != nil {
  6809. cr.sendContainerState(containerMapValue)
  6810. }
  6811. ee.EncodeString(c_UTF8, v2)
  6812. }
  6813. }
  6814. if cr != nil {
  6815. cr.sendContainerState(containerMapEnd)
  6816. }
  6817. }
  6818. func (f *encFnInfo) fastpathEncMapUint8UintR(rv reflect.Value) {
  6819. fastpathTV.EncMapUint8UintV(rv.Interface().(map[uint8]uint), fastpathCheckNilFalse, f.e)
  6820. }
  6821. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, checkNil bool, e *Encoder) {
  6822. ee := e.e
  6823. cr := e.cr
  6824. if checkNil && v == nil {
  6825. ee.EncodeNil()
  6826. return
  6827. }
  6828. ee.EncodeMapStart(len(v))
  6829. if e.h.Canonical {
  6830. v2 := make([]uint64, len(v))
  6831. var i int
  6832. for k, _ := range v {
  6833. v2[i] = uint64(k)
  6834. i++
  6835. }
  6836. sort.Sort(uintSlice(v2))
  6837. for _, k2 := range v2 {
  6838. if cr != nil {
  6839. cr.sendContainerState(containerMapKey)
  6840. }
  6841. ee.EncodeUint(uint64(uint8(k2)))
  6842. if cr != nil {
  6843. cr.sendContainerState(containerMapValue)
  6844. }
  6845. ee.EncodeUint(uint64(v[uint8(k2)]))
  6846. }
  6847. } else {
  6848. for k2, v2 := range v {
  6849. if cr != nil {
  6850. cr.sendContainerState(containerMapKey)
  6851. }
  6852. ee.EncodeUint(uint64(k2))
  6853. if cr != nil {
  6854. cr.sendContainerState(containerMapValue)
  6855. }
  6856. ee.EncodeUint(uint64(v2))
  6857. }
  6858. }
  6859. if cr != nil {
  6860. cr.sendContainerState(containerMapEnd)
  6861. }
  6862. }
  6863. func (f *encFnInfo) fastpathEncMapUint8Uint8R(rv reflect.Value) {
  6864. fastpathTV.EncMapUint8Uint8V(rv.Interface().(map[uint8]uint8), fastpathCheckNilFalse, f.e)
  6865. }
  6866. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, checkNil bool, e *Encoder) {
  6867. ee := e.e
  6868. cr := e.cr
  6869. if checkNil && v == nil {
  6870. ee.EncodeNil()
  6871. return
  6872. }
  6873. ee.EncodeMapStart(len(v))
  6874. if e.h.Canonical {
  6875. v2 := make([]uint64, len(v))
  6876. var i int
  6877. for k, _ := range v {
  6878. v2[i] = uint64(k)
  6879. i++
  6880. }
  6881. sort.Sort(uintSlice(v2))
  6882. for _, k2 := range v2 {
  6883. if cr != nil {
  6884. cr.sendContainerState(containerMapKey)
  6885. }
  6886. ee.EncodeUint(uint64(uint8(k2)))
  6887. if cr != nil {
  6888. cr.sendContainerState(containerMapValue)
  6889. }
  6890. ee.EncodeUint(uint64(v[uint8(k2)]))
  6891. }
  6892. } else {
  6893. for k2, v2 := range v {
  6894. if cr != nil {
  6895. cr.sendContainerState(containerMapKey)
  6896. }
  6897. ee.EncodeUint(uint64(k2))
  6898. if cr != nil {
  6899. cr.sendContainerState(containerMapValue)
  6900. }
  6901. ee.EncodeUint(uint64(v2))
  6902. }
  6903. }
  6904. if cr != nil {
  6905. cr.sendContainerState(containerMapEnd)
  6906. }
  6907. }
  6908. func (f *encFnInfo) fastpathEncMapUint8Uint16R(rv reflect.Value) {
  6909. fastpathTV.EncMapUint8Uint16V(rv.Interface().(map[uint8]uint16), fastpathCheckNilFalse, f.e)
  6910. }
  6911. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, checkNil bool, e *Encoder) {
  6912. ee := e.e
  6913. cr := e.cr
  6914. if checkNil && v == nil {
  6915. ee.EncodeNil()
  6916. return
  6917. }
  6918. ee.EncodeMapStart(len(v))
  6919. if e.h.Canonical {
  6920. v2 := make([]uint64, len(v))
  6921. var i int
  6922. for k, _ := range v {
  6923. v2[i] = uint64(k)
  6924. i++
  6925. }
  6926. sort.Sort(uintSlice(v2))
  6927. for _, k2 := range v2 {
  6928. if cr != nil {
  6929. cr.sendContainerState(containerMapKey)
  6930. }
  6931. ee.EncodeUint(uint64(uint8(k2)))
  6932. if cr != nil {
  6933. cr.sendContainerState(containerMapValue)
  6934. }
  6935. ee.EncodeUint(uint64(v[uint8(k2)]))
  6936. }
  6937. } else {
  6938. for k2, v2 := range v {
  6939. if cr != nil {
  6940. cr.sendContainerState(containerMapKey)
  6941. }
  6942. ee.EncodeUint(uint64(k2))
  6943. if cr != nil {
  6944. cr.sendContainerState(containerMapValue)
  6945. }
  6946. ee.EncodeUint(uint64(v2))
  6947. }
  6948. }
  6949. if cr != nil {
  6950. cr.sendContainerState(containerMapEnd)
  6951. }
  6952. }
  6953. func (f *encFnInfo) fastpathEncMapUint8Uint32R(rv reflect.Value) {
  6954. fastpathTV.EncMapUint8Uint32V(rv.Interface().(map[uint8]uint32), fastpathCheckNilFalse, f.e)
  6955. }
  6956. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, checkNil bool, e *Encoder) {
  6957. ee := e.e
  6958. cr := e.cr
  6959. if checkNil && v == nil {
  6960. ee.EncodeNil()
  6961. return
  6962. }
  6963. ee.EncodeMapStart(len(v))
  6964. if e.h.Canonical {
  6965. v2 := make([]uint64, len(v))
  6966. var i int
  6967. for k, _ := range v {
  6968. v2[i] = uint64(k)
  6969. i++
  6970. }
  6971. sort.Sort(uintSlice(v2))
  6972. for _, k2 := range v2 {
  6973. if cr != nil {
  6974. cr.sendContainerState(containerMapKey)
  6975. }
  6976. ee.EncodeUint(uint64(uint8(k2)))
  6977. if cr != nil {
  6978. cr.sendContainerState(containerMapValue)
  6979. }
  6980. ee.EncodeUint(uint64(v[uint8(k2)]))
  6981. }
  6982. } else {
  6983. for k2, v2 := range v {
  6984. if cr != nil {
  6985. cr.sendContainerState(containerMapKey)
  6986. }
  6987. ee.EncodeUint(uint64(k2))
  6988. if cr != nil {
  6989. cr.sendContainerState(containerMapValue)
  6990. }
  6991. ee.EncodeUint(uint64(v2))
  6992. }
  6993. }
  6994. if cr != nil {
  6995. cr.sendContainerState(containerMapEnd)
  6996. }
  6997. }
  6998. func (f *encFnInfo) fastpathEncMapUint8Uint64R(rv reflect.Value) {
  6999. fastpathTV.EncMapUint8Uint64V(rv.Interface().(map[uint8]uint64), fastpathCheckNilFalse, f.e)
  7000. }
  7001. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, checkNil bool, e *Encoder) {
  7002. ee := e.e
  7003. cr := e.cr
  7004. if checkNil && v == nil {
  7005. ee.EncodeNil()
  7006. return
  7007. }
  7008. ee.EncodeMapStart(len(v))
  7009. if e.h.Canonical {
  7010. v2 := make([]uint64, len(v))
  7011. var i int
  7012. for k, _ := range v {
  7013. v2[i] = uint64(k)
  7014. i++
  7015. }
  7016. sort.Sort(uintSlice(v2))
  7017. for _, k2 := range v2 {
  7018. if cr != nil {
  7019. cr.sendContainerState(containerMapKey)
  7020. }
  7021. ee.EncodeUint(uint64(uint8(k2)))
  7022. if cr != nil {
  7023. cr.sendContainerState(containerMapValue)
  7024. }
  7025. ee.EncodeUint(uint64(v[uint8(k2)]))
  7026. }
  7027. } else {
  7028. for k2, v2 := range v {
  7029. if cr != nil {
  7030. cr.sendContainerState(containerMapKey)
  7031. }
  7032. ee.EncodeUint(uint64(k2))
  7033. if cr != nil {
  7034. cr.sendContainerState(containerMapValue)
  7035. }
  7036. ee.EncodeUint(uint64(v2))
  7037. }
  7038. }
  7039. if cr != nil {
  7040. cr.sendContainerState(containerMapEnd)
  7041. }
  7042. }
  7043. func (f *encFnInfo) fastpathEncMapUint8UintptrR(rv reflect.Value) {
  7044. fastpathTV.EncMapUint8UintptrV(rv.Interface().(map[uint8]uintptr), fastpathCheckNilFalse, f.e)
  7045. }
  7046. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, checkNil bool, e *Encoder) {
  7047. ee := e.e
  7048. cr := e.cr
  7049. if checkNil && v == nil {
  7050. ee.EncodeNil()
  7051. return
  7052. }
  7053. ee.EncodeMapStart(len(v))
  7054. if e.h.Canonical {
  7055. v2 := make([]uint64, len(v))
  7056. var i int
  7057. for k, _ := range v {
  7058. v2[i] = uint64(k)
  7059. i++
  7060. }
  7061. sort.Sort(uintSlice(v2))
  7062. for _, k2 := range v2 {
  7063. if cr != nil {
  7064. cr.sendContainerState(containerMapKey)
  7065. }
  7066. ee.EncodeUint(uint64(uint8(k2)))
  7067. if cr != nil {
  7068. cr.sendContainerState(containerMapValue)
  7069. }
  7070. e.encode(v[uint8(k2)])
  7071. }
  7072. } else {
  7073. for k2, v2 := range v {
  7074. if cr != nil {
  7075. cr.sendContainerState(containerMapKey)
  7076. }
  7077. ee.EncodeUint(uint64(k2))
  7078. if cr != nil {
  7079. cr.sendContainerState(containerMapValue)
  7080. }
  7081. e.encode(v2)
  7082. }
  7083. }
  7084. if cr != nil {
  7085. cr.sendContainerState(containerMapEnd)
  7086. }
  7087. }
  7088. func (f *encFnInfo) fastpathEncMapUint8IntR(rv reflect.Value) {
  7089. fastpathTV.EncMapUint8IntV(rv.Interface().(map[uint8]int), fastpathCheckNilFalse, f.e)
  7090. }
  7091. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, checkNil bool, e *Encoder) {
  7092. ee := e.e
  7093. cr := e.cr
  7094. if checkNil && v == nil {
  7095. ee.EncodeNil()
  7096. return
  7097. }
  7098. ee.EncodeMapStart(len(v))
  7099. if e.h.Canonical {
  7100. v2 := make([]uint64, len(v))
  7101. var i int
  7102. for k, _ := range v {
  7103. v2[i] = uint64(k)
  7104. i++
  7105. }
  7106. sort.Sort(uintSlice(v2))
  7107. for _, k2 := range v2 {
  7108. if cr != nil {
  7109. cr.sendContainerState(containerMapKey)
  7110. }
  7111. ee.EncodeUint(uint64(uint8(k2)))
  7112. if cr != nil {
  7113. cr.sendContainerState(containerMapValue)
  7114. }
  7115. ee.EncodeInt(int64(v[uint8(k2)]))
  7116. }
  7117. } else {
  7118. for k2, v2 := range v {
  7119. if cr != nil {
  7120. cr.sendContainerState(containerMapKey)
  7121. }
  7122. ee.EncodeUint(uint64(k2))
  7123. if cr != nil {
  7124. cr.sendContainerState(containerMapValue)
  7125. }
  7126. ee.EncodeInt(int64(v2))
  7127. }
  7128. }
  7129. if cr != nil {
  7130. cr.sendContainerState(containerMapEnd)
  7131. }
  7132. }
  7133. func (f *encFnInfo) fastpathEncMapUint8Int8R(rv reflect.Value) {
  7134. fastpathTV.EncMapUint8Int8V(rv.Interface().(map[uint8]int8), fastpathCheckNilFalse, f.e)
  7135. }
  7136. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, checkNil bool, e *Encoder) {
  7137. ee := e.e
  7138. cr := e.cr
  7139. if checkNil && v == nil {
  7140. ee.EncodeNil()
  7141. return
  7142. }
  7143. ee.EncodeMapStart(len(v))
  7144. if e.h.Canonical {
  7145. v2 := make([]uint64, len(v))
  7146. var i int
  7147. for k, _ := range v {
  7148. v2[i] = uint64(k)
  7149. i++
  7150. }
  7151. sort.Sort(uintSlice(v2))
  7152. for _, k2 := range v2 {
  7153. if cr != nil {
  7154. cr.sendContainerState(containerMapKey)
  7155. }
  7156. ee.EncodeUint(uint64(uint8(k2)))
  7157. if cr != nil {
  7158. cr.sendContainerState(containerMapValue)
  7159. }
  7160. ee.EncodeInt(int64(v[uint8(k2)]))
  7161. }
  7162. } else {
  7163. for k2, v2 := range v {
  7164. if cr != nil {
  7165. cr.sendContainerState(containerMapKey)
  7166. }
  7167. ee.EncodeUint(uint64(k2))
  7168. if cr != nil {
  7169. cr.sendContainerState(containerMapValue)
  7170. }
  7171. ee.EncodeInt(int64(v2))
  7172. }
  7173. }
  7174. if cr != nil {
  7175. cr.sendContainerState(containerMapEnd)
  7176. }
  7177. }
  7178. func (f *encFnInfo) fastpathEncMapUint8Int16R(rv reflect.Value) {
  7179. fastpathTV.EncMapUint8Int16V(rv.Interface().(map[uint8]int16), fastpathCheckNilFalse, f.e)
  7180. }
  7181. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, checkNil bool, e *Encoder) {
  7182. ee := e.e
  7183. cr := e.cr
  7184. if checkNil && v == nil {
  7185. ee.EncodeNil()
  7186. return
  7187. }
  7188. ee.EncodeMapStart(len(v))
  7189. if e.h.Canonical {
  7190. v2 := make([]uint64, len(v))
  7191. var i int
  7192. for k, _ := range v {
  7193. v2[i] = uint64(k)
  7194. i++
  7195. }
  7196. sort.Sort(uintSlice(v2))
  7197. for _, k2 := range v2 {
  7198. if cr != nil {
  7199. cr.sendContainerState(containerMapKey)
  7200. }
  7201. ee.EncodeUint(uint64(uint8(k2)))
  7202. if cr != nil {
  7203. cr.sendContainerState(containerMapValue)
  7204. }
  7205. ee.EncodeInt(int64(v[uint8(k2)]))
  7206. }
  7207. } else {
  7208. for k2, v2 := range v {
  7209. if cr != nil {
  7210. cr.sendContainerState(containerMapKey)
  7211. }
  7212. ee.EncodeUint(uint64(k2))
  7213. if cr != nil {
  7214. cr.sendContainerState(containerMapValue)
  7215. }
  7216. ee.EncodeInt(int64(v2))
  7217. }
  7218. }
  7219. if cr != nil {
  7220. cr.sendContainerState(containerMapEnd)
  7221. }
  7222. }
  7223. func (f *encFnInfo) fastpathEncMapUint8Int32R(rv reflect.Value) {
  7224. fastpathTV.EncMapUint8Int32V(rv.Interface().(map[uint8]int32), fastpathCheckNilFalse, f.e)
  7225. }
  7226. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, checkNil bool, e *Encoder) {
  7227. ee := e.e
  7228. cr := e.cr
  7229. if checkNil && v == nil {
  7230. ee.EncodeNil()
  7231. return
  7232. }
  7233. ee.EncodeMapStart(len(v))
  7234. if e.h.Canonical {
  7235. v2 := make([]uint64, len(v))
  7236. var i int
  7237. for k, _ := range v {
  7238. v2[i] = uint64(k)
  7239. i++
  7240. }
  7241. sort.Sort(uintSlice(v2))
  7242. for _, k2 := range v2 {
  7243. if cr != nil {
  7244. cr.sendContainerState(containerMapKey)
  7245. }
  7246. ee.EncodeUint(uint64(uint8(k2)))
  7247. if cr != nil {
  7248. cr.sendContainerState(containerMapValue)
  7249. }
  7250. ee.EncodeInt(int64(v[uint8(k2)]))
  7251. }
  7252. } else {
  7253. for k2, v2 := range v {
  7254. if cr != nil {
  7255. cr.sendContainerState(containerMapKey)
  7256. }
  7257. ee.EncodeUint(uint64(k2))
  7258. if cr != nil {
  7259. cr.sendContainerState(containerMapValue)
  7260. }
  7261. ee.EncodeInt(int64(v2))
  7262. }
  7263. }
  7264. if cr != nil {
  7265. cr.sendContainerState(containerMapEnd)
  7266. }
  7267. }
  7268. func (f *encFnInfo) fastpathEncMapUint8Int64R(rv reflect.Value) {
  7269. fastpathTV.EncMapUint8Int64V(rv.Interface().(map[uint8]int64), fastpathCheckNilFalse, f.e)
  7270. }
  7271. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, checkNil bool, e *Encoder) {
  7272. ee := e.e
  7273. cr := e.cr
  7274. if checkNil && v == nil {
  7275. ee.EncodeNil()
  7276. return
  7277. }
  7278. ee.EncodeMapStart(len(v))
  7279. if e.h.Canonical {
  7280. v2 := make([]uint64, len(v))
  7281. var i int
  7282. for k, _ := range v {
  7283. v2[i] = uint64(k)
  7284. i++
  7285. }
  7286. sort.Sort(uintSlice(v2))
  7287. for _, k2 := range v2 {
  7288. if cr != nil {
  7289. cr.sendContainerState(containerMapKey)
  7290. }
  7291. ee.EncodeUint(uint64(uint8(k2)))
  7292. if cr != nil {
  7293. cr.sendContainerState(containerMapValue)
  7294. }
  7295. ee.EncodeInt(int64(v[uint8(k2)]))
  7296. }
  7297. } else {
  7298. for k2, v2 := range v {
  7299. if cr != nil {
  7300. cr.sendContainerState(containerMapKey)
  7301. }
  7302. ee.EncodeUint(uint64(k2))
  7303. if cr != nil {
  7304. cr.sendContainerState(containerMapValue)
  7305. }
  7306. ee.EncodeInt(int64(v2))
  7307. }
  7308. }
  7309. if cr != nil {
  7310. cr.sendContainerState(containerMapEnd)
  7311. }
  7312. }
  7313. func (f *encFnInfo) fastpathEncMapUint8Float32R(rv reflect.Value) {
  7314. fastpathTV.EncMapUint8Float32V(rv.Interface().(map[uint8]float32), fastpathCheckNilFalse, f.e)
  7315. }
  7316. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, checkNil bool, e *Encoder) {
  7317. ee := e.e
  7318. cr := e.cr
  7319. if checkNil && v == nil {
  7320. ee.EncodeNil()
  7321. return
  7322. }
  7323. ee.EncodeMapStart(len(v))
  7324. if e.h.Canonical {
  7325. v2 := make([]uint64, len(v))
  7326. var i int
  7327. for k, _ := range v {
  7328. v2[i] = uint64(k)
  7329. i++
  7330. }
  7331. sort.Sort(uintSlice(v2))
  7332. for _, k2 := range v2 {
  7333. if cr != nil {
  7334. cr.sendContainerState(containerMapKey)
  7335. }
  7336. ee.EncodeUint(uint64(uint8(k2)))
  7337. if cr != nil {
  7338. cr.sendContainerState(containerMapValue)
  7339. }
  7340. ee.EncodeFloat32(v[uint8(k2)])
  7341. }
  7342. } else {
  7343. for k2, v2 := range v {
  7344. if cr != nil {
  7345. cr.sendContainerState(containerMapKey)
  7346. }
  7347. ee.EncodeUint(uint64(k2))
  7348. if cr != nil {
  7349. cr.sendContainerState(containerMapValue)
  7350. }
  7351. ee.EncodeFloat32(v2)
  7352. }
  7353. }
  7354. if cr != nil {
  7355. cr.sendContainerState(containerMapEnd)
  7356. }
  7357. }
  7358. func (f *encFnInfo) fastpathEncMapUint8Float64R(rv reflect.Value) {
  7359. fastpathTV.EncMapUint8Float64V(rv.Interface().(map[uint8]float64), fastpathCheckNilFalse, f.e)
  7360. }
  7361. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, checkNil bool, e *Encoder) {
  7362. ee := e.e
  7363. cr := e.cr
  7364. if checkNil && v == nil {
  7365. ee.EncodeNil()
  7366. return
  7367. }
  7368. ee.EncodeMapStart(len(v))
  7369. if e.h.Canonical {
  7370. v2 := make([]uint64, len(v))
  7371. var i int
  7372. for k, _ := range v {
  7373. v2[i] = uint64(k)
  7374. i++
  7375. }
  7376. sort.Sort(uintSlice(v2))
  7377. for _, k2 := range v2 {
  7378. if cr != nil {
  7379. cr.sendContainerState(containerMapKey)
  7380. }
  7381. ee.EncodeUint(uint64(uint8(k2)))
  7382. if cr != nil {
  7383. cr.sendContainerState(containerMapValue)
  7384. }
  7385. ee.EncodeFloat64(v[uint8(k2)])
  7386. }
  7387. } else {
  7388. for k2, v2 := range v {
  7389. if cr != nil {
  7390. cr.sendContainerState(containerMapKey)
  7391. }
  7392. ee.EncodeUint(uint64(k2))
  7393. if cr != nil {
  7394. cr.sendContainerState(containerMapValue)
  7395. }
  7396. ee.EncodeFloat64(v2)
  7397. }
  7398. }
  7399. if cr != nil {
  7400. cr.sendContainerState(containerMapEnd)
  7401. }
  7402. }
  7403. func (f *encFnInfo) fastpathEncMapUint8BoolR(rv reflect.Value) {
  7404. fastpathTV.EncMapUint8BoolV(rv.Interface().(map[uint8]bool), fastpathCheckNilFalse, f.e)
  7405. }
  7406. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, checkNil bool, e *Encoder) {
  7407. ee := e.e
  7408. cr := e.cr
  7409. if checkNil && v == nil {
  7410. ee.EncodeNil()
  7411. return
  7412. }
  7413. ee.EncodeMapStart(len(v))
  7414. if e.h.Canonical {
  7415. v2 := make([]uint64, len(v))
  7416. var i int
  7417. for k, _ := range v {
  7418. v2[i] = uint64(k)
  7419. i++
  7420. }
  7421. sort.Sort(uintSlice(v2))
  7422. for _, k2 := range v2 {
  7423. if cr != nil {
  7424. cr.sendContainerState(containerMapKey)
  7425. }
  7426. ee.EncodeUint(uint64(uint8(k2)))
  7427. if cr != nil {
  7428. cr.sendContainerState(containerMapValue)
  7429. }
  7430. ee.EncodeBool(v[uint8(k2)])
  7431. }
  7432. } else {
  7433. for k2, v2 := range v {
  7434. if cr != nil {
  7435. cr.sendContainerState(containerMapKey)
  7436. }
  7437. ee.EncodeUint(uint64(k2))
  7438. if cr != nil {
  7439. cr.sendContainerState(containerMapValue)
  7440. }
  7441. ee.EncodeBool(v2)
  7442. }
  7443. }
  7444. if cr != nil {
  7445. cr.sendContainerState(containerMapEnd)
  7446. }
  7447. }
  7448. func (f *encFnInfo) fastpathEncMapUint16IntfR(rv reflect.Value) {
  7449. fastpathTV.EncMapUint16IntfV(rv.Interface().(map[uint16]interface{}), fastpathCheckNilFalse, f.e)
  7450. }
  7451. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, checkNil bool, e *Encoder) {
  7452. ee := e.e
  7453. cr := e.cr
  7454. if checkNil && v == nil {
  7455. ee.EncodeNil()
  7456. return
  7457. }
  7458. ee.EncodeMapStart(len(v))
  7459. if e.h.Canonical {
  7460. v2 := make([]uint64, len(v))
  7461. var i int
  7462. for k, _ := range v {
  7463. v2[i] = uint64(k)
  7464. i++
  7465. }
  7466. sort.Sort(uintSlice(v2))
  7467. for _, k2 := range v2 {
  7468. if cr != nil {
  7469. cr.sendContainerState(containerMapKey)
  7470. }
  7471. ee.EncodeUint(uint64(uint16(k2)))
  7472. if cr != nil {
  7473. cr.sendContainerState(containerMapValue)
  7474. }
  7475. e.encode(v[uint16(k2)])
  7476. }
  7477. } else {
  7478. for k2, v2 := range v {
  7479. if cr != nil {
  7480. cr.sendContainerState(containerMapKey)
  7481. }
  7482. ee.EncodeUint(uint64(k2))
  7483. if cr != nil {
  7484. cr.sendContainerState(containerMapValue)
  7485. }
  7486. e.encode(v2)
  7487. }
  7488. }
  7489. if cr != nil {
  7490. cr.sendContainerState(containerMapEnd)
  7491. }
  7492. }
  7493. func (f *encFnInfo) fastpathEncMapUint16StringR(rv reflect.Value) {
  7494. fastpathTV.EncMapUint16StringV(rv.Interface().(map[uint16]string), fastpathCheckNilFalse, f.e)
  7495. }
  7496. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, checkNil bool, e *Encoder) {
  7497. ee := e.e
  7498. cr := e.cr
  7499. if checkNil && v == nil {
  7500. ee.EncodeNil()
  7501. return
  7502. }
  7503. ee.EncodeMapStart(len(v))
  7504. if e.h.Canonical {
  7505. v2 := make([]uint64, len(v))
  7506. var i int
  7507. for k, _ := range v {
  7508. v2[i] = uint64(k)
  7509. i++
  7510. }
  7511. sort.Sort(uintSlice(v2))
  7512. for _, k2 := range v2 {
  7513. if cr != nil {
  7514. cr.sendContainerState(containerMapKey)
  7515. }
  7516. ee.EncodeUint(uint64(uint16(k2)))
  7517. if cr != nil {
  7518. cr.sendContainerState(containerMapValue)
  7519. }
  7520. ee.EncodeString(c_UTF8, v[uint16(k2)])
  7521. }
  7522. } else {
  7523. for k2, v2 := range v {
  7524. if cr != nil {
  7525. cr.sendContainerState(containerMapKey)
  7526. }
  7527. ee.EncodeUint(uint64(k2))
  7528. if cr != nil {
  7529. cr.sendContainerState(containerMapValue)
  7530. }
  7531. ee.EncodeString(c_UTF8, v2)
  7532. }
  7533. }
  7534. if cr != nil {
  7535. cr.sendContainerState(containerMapEnd)
  7536. }
  7537. }
  7538. func (f *encFnInfo) fastpathEncMapUint16UintR(rv reflect.Value) {
  7539. fastpathTV.EncMapUint16UintV(rv.Interface().(map[uint16]uint), fastpathCheckNilFalse, f.e)
  7540. }
  7541. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, checkNil bool, e *Encoder) {
  7542. ee := e.e
  7543. cr := e.cr
  7544. if checkNil && v == nil {
  7545. ee.EncodeNil()
  7546. return
  7547. }
  7548. ee.EncodeMapStart(len(v))
  7549. if e.h.Canonical {
  7550. v2 := make([]uint64, len(v))
  7551. var i int
  7552. for k, _ := range v {
  7553. v2[i] = uint64(k)
  7554. i++
  7555. }
  7556. sort.Sort(uintSlice(v2))
  7557. for _, k2 := range v2 {
  7558. if cr != nil {
  7559. cr.sendContainerState(containerMapKey)
  7560. }
  7561. ee.EncodeUint(uint64(uint16(k2)))
  7562. if cr != nil {
  7563. cr.sendContainerState(containerMapValue)
  7564. }
  7565. ee.EncodeUint(uint64(v[uint16(k2)]))
  7566. }
  7567. } else {
  7568. for k2, v2 := range v {
  7569. if cr != nil {
  7570. cr.sendContainerState(containerMapKey)
  7571. }
  7572. ee.EncodeUint(uint64(k2))
  7573. if cr != nil {
  7574. cr.sendContainerState(containerMapValue)
  7575. }
  7576. ee.EncodeUint(uint64(v2))
  7577. }
  7578. }
  7579. if cr != nil {
  7580. cr.sendContainerState(containerMapEnd)
  7581. }
  7582. }
  7583. func (f *encFnInfo) fastpathEncMapUint16Uint8R(rv reflect.Value) {
  7584. fastpathTV.EncMapUint16Uint8V(rv.Interface().(map[uint16]uint8), fastpathCheckNilFalse, f.e)
  7585. }
  7586. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, checkNil bool, e *Encoder) {
  7587. ee := e.e
  7588. cr := e.cr
  7589. if checkNil && v == nil {
  7590. ee.EncodeNil()
  7591. return
  7592. }
  7593. ee.EncodeMapStart(len(v))
  7594. if e.h.Canonical {
  7595. v2 := make([]uint64, len(v))
  7596. var i int
  7597. for k, _ := range v {
  7598. v2[i] = uint64(k)
  7599. i++
  7600. }
  7601. sort.Sort(uintSlice(v2))
  7602. for _, k2 := range v2 {
  7603. if cr != nil {
  7604. cr.sendContainerState(containerMapKey)
  7605. }
  7606. ee.EncodeUint(uint64(uint16(k2)))
  7607. if cr != nil {
  7608. cr.sendContainerState(containerMapValue)
  7609. }
  7610. ee.EncodeUint(uint64(v[uint16(k2)]))
  7611. }
  7612. } else {
  7613. for k2, v2 := range v {
  7614. if cr != nil {
  7615. cr.sendContainerState(containerMapKey)
  7616. }
  7617. ee.EncodeUint(uint64(k2))
  7618. if cr != nil {
  7619. cr.sendContainerState(containerMapValue)
  7620. }
  7621. ee.EncodeUint(uint64(v2))
  7622. }
  7623. }
  7624. if cr != nil {
  7625. cr.sendContainerState(containerMapEnd)
  7626. }
  7627. }
  7628. func (f *encFnInfo) fastpathEncMapUint16Uint16R(rv reflect.Value) {
  7629. fastpathTV.EncMapUint16Uint16V(rv.Interface().(map[uint16]uint16), fastpathCheckNilFalse, f.e)
  7630. }
  7631. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, checkNil bool, e *Encoder) {
  7632. ee := e.e
  7633. cr := e.cr
  7634. if checkNil && v == nil {
  7635. ee.EncodeNil()
  7636. return
  7637. }
  7638. ee.EncodeMapStart(len(v))
  7639. if e.h.Canonical {
  7640. v2 := make([]uint64, len(v))
  7641. var i int
  7642. for k, _ := range v {
  7643. v2[i] = uint64(k)
  7644. i++
  7645. }
  7646. sort.Sort(uintSlice(v2))
  7647. for _, k2 := range v2 {
  7648. if cr != nil {
  7649. cr.sendContainerState(containerMapKey)
  7650. }
  7651. ee.EncodeUint(uint64(uint16(k2)))
  7652. if cr != nil {
  7653. cr.sendContainerState(containerMapValue)
  7654. }
  7655. ee.EncodeUint(uint64(v[uint16(k2)]))
  7656. }
  7657. } else {
  7658. for k2, v2 := range v {
  7659. if cr != nil {
  7660. cr.sendContainerState(containerMapKey)
  7661. }
  7662. ee.EncodeUint(uint64(k2))
  7663. if cr != nil {
  7664. cr.sendContainerState(containerMapValue)
  7665. }
  7666. ee.EncodeUint(uint64(v2))
  7667. }
  7668. }
  7669. if cr != nil {
  7670. cr.sendContainerState(containerMapEnd)
  7671. }
  7672. }
  7673. func (f *encFnInfo) fastpathEncMapUint16Uint32R(rv reflect.Value) {
  7674. fastpathTV.EncMapUint16Uint32V(rv.Interface().(map[uint16]uint32), fastpathCheckNilFalse, f.e)
  7675. }
  7676. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, checkNil bool, e *Encoder) {
  7677. ee := e.e
  7678. cr := e.cr
  7679. if checkNil && v == nil {
  7680. ee.EncodeNil()
  7681. return
  7682. }
  7683. ee.EncodeMapStart(len(v))
  7684. if e.h.Canonical {
  7685. v2 := make([]uint64, len(v))
  7686. var i int
  7687. for k, _ := range v {
  7688. v2[i] = uint64(k)
  7689. i++
  7690. }
  7691. sort.Sort(uintSlice(v2))
  7692. for _, k2 := range v2 {
  7693. if cr != nil {
  7694. cr.sendContainerState(containerMapKey)
  7695. }
  7696. ee.EncodeUint(uint64(uint16(k2)))
  7697. if cr != nil {
  7698. cr.sendContainerState(containerMapValue)
  7699. }
  7700. ee.EncodeUint(uint64(v[uint16(k2)]))
  7701. }
  7702. } else {
  7703. for k2, v2 := range v {
  7704. if cr != nil {
  7705. cr.sendContainerState(containerMapKey)
  7706. }
  7707. ee.EncodeUint(uint64(k2))
  7708. if cr != nil {
  7709. cr.sendContainerState(containerMapValue)
  7710. }
  7711. ee.EncodeUint(uint64(v2))
  7712. }
  7713. }
  7714. if cr != nil {
  7715. cr.sendContainerState(containerMapEnd)
  7716. }
  7717. }
  7718. func (f *encFnInfo) fastpathEncMapUint16Uint64R(rv reflect.Value) {
  7719. fastpathTV.EncMapUint16Uint64V(rv.Interface().(map[uint16]uint64), fastpathCheckNilFalse, f.e)
  7720. }
  7721. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, checkNil bool, e *Encoder) {
  7722. ee := e.e
  7723. cr := e.cr
  7724. if checkNil && v == nil {
  7725. ee.EncodeNil()
  7726. return
  7727. }
  7728. ee.EncodeMapStart(len(v))
  7729. if e.h.Canonical {
  7730. v2 := make([]uint64, len(v))
  7731. var i int
  7732. for k, _ := range v {
  7733. v2[i] = uint64(k)
  7734. i++
  7735. }
  7736. sort.Sort(uintSlice(v2))
  7737. for _, k2 := range v2 {
  7738. if cr != nil {
  7739. cr.sendContainerState(containerMapKey)
  7740. }
  7741. ee.EncodeUint(uint64(uint16(k2)))
  7742. if cr != nil {
  7743. cr.sendContainerState(containerMapValue)
  7744. }
  7745. ee.EncodeUint(uint64(v[uint16(k2)]))
  7746. }
  7747. } else {
  7748. for k2, v2 := range v {
  7749. if cr != nil {
  7750. cr.sendContainerState(containerMapKey)
  7751. }
  7752. ee.EncodeUint(uint64(k2))
  7753. if cr != nil {
  7754. cr.sendContainerState(containerMapValue)
  7755. }
  7756. ee.EncodeUint(uint64(v2))
  7757. }
  7758. }
  7759. if cr != nil {
  7760. cr.sendContainerState(containerMapEnd)
  7761. }
  7762. }
  7763. func (f *encFnInfo) fastpathEncMapUint16UintptrR(rv reflect.Value) {
  7764. fastpathTV.EncMapUint16UintptrV(rv.Interface().(map[uint16]uintptr), fastpathCheckNilFalse, f.e)
  7765. }
  7766. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, checkNil bool, e *Encoder) {
  7767. ee := e.e
  7768. cr := e.cr
  7769. if checkNil && v == nil {
  7770. ee.EncodeNil()
  7771. return
  7772. }
  7773. ee.EncodeMapStart(len(v))
  7774. if e.h.Canonical {
  7775. v2 := make([]uint64, len(v))
  7776. var i int
  7777. for k, _ := range v {
  7778. v2[i] = uint64(k)
  7779. i++
  7780. }
  7781. sort.Sort(uintSlice(v2))
  7782. for _, k2 := range v2 {
  7783. if cr != nil {
  7784. cr.sendContainerState(containerMapKey)
  7785. }
  7786. ee.EncodeUint(uint64(uint16(k2)))
  7787. if cr != nil {
  7788. cr.sendContainerState(containerMapValue)
  7789. }
  7790. e.encode(v[uint16(k2)])
  7791. }
  7792. } else {
  7793. for k2, v2 := range v {
  7794. if cr != nil {
  7795. cr.sendContainerState(containerMapKey)
  7796. }
  7797. ee.EncodeUint(uint64(k2))
  7798. if cr != nil {
  7799. cr.sendContainerState(containerMapValue)
  7800. }
  7801. e.encode(v2)
  7802. }
  7803. }
  7804. if cr != nil {
  7805. cr.sendContainerState(containerMapEnd)
  7806. }
  7807. }
  7808. func (f *encFnInfo) fastpathEncMapUint16IntR(rv reflect.Value) {
  7809. fastpathTV.EncMapUint16IntV(rv.Interface().(map[uint16]int), fastpathCheckNilFalse, f.e)
  7810. }
  7811. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, checkNil bool, e *Encoder) {
  7812. ee := e.e
  7813. cr := e.cr
  7814. if checkNil && v == nil {
  7815. ee.EncodeNil()
  7816. return
  7817. }
  7818. ee.EncodeMapStart(len(v))
  7819. if e.h.Canonical {
  7820. v2 := make([]uint64, len(v))
  7821. var i int
  7822. for k, _ := range v {
  7823. v2[i] = uint64(k)
  7824. i++
  7825. }
  7826. sort.Sort(uintSlice(v2))
  7827. for _, k2 := range v2 {
  7828. if cr != nil {
  7829. cr.sendContainerState(containerMapKey)
  7830. }
  7831. ee.EncodeUint(uint64(uint16(k2)))
  7832. if cr != nil {
  7833. cr.sendContainerState(containerMapValue)
  7834. }
  7835. ee.EncodeInt(int64(v[uint16(k2)]))
  7836. }
  7837. } else {
  7838. for k2, v2 := range v {
  7839. if cr != nil {
  7840. cr.sendContainerState(containerMapKey)
  7841. }
  7842. ee.EncodeUint(uint64(k2))
  7843. if cr != nil {
  7844. cr.sendContainerState(containerMapValue)
  7845. }
  7846. ee.EncodeInt(int64(v2))
  7847. }
  7848. }
  7849. if cr != nil {
  7850. cr.sendContainerState(containerMapEnd)
  7851. }
  7852. }
  7853. func (f *encFnInfo) fastpathEncMapUint16Int8R(rv reflect.Value) {
  7854. fastpathTV.EncMapUint16Int8V(rv.Interface().(map[uint16]int8), fastpathCheckNilFalse, f.e)
  7855. }
  7856. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, checkNil bool, e *Encoder) {
  7857. ee := e.e
  7858. cr := e.cr
  7859. if checkNil && v == nil {
  7860. ee.EncodeNil()
  7861. return
  7862. }
  7863. ee.EncodeMapStart(len(v))
  7864. if e.h.Canonical {
  7865. v2 := make([]uint64, len(v))
  7866. var i int
  7867. for k, _ := range v {
  7868. v2[i] = uint64(k)
  7869. i++
  7870. }
  7871. sort.Sort(uintSlice(v2))
  7872. for _, k2 := range v2 {
  7873. if cr != nil {
  7874. cr.sendContainerState(containerMapKey)
  7875. }
  7876. ee.EncodeUint(uint64(uint16(k2)))
  7877. if cr != nil {
  7878. cr.sendContainerState(containerMapValue)
  7879. }
  7880. ee.EncodeInt(int64(v[uint16(k2)]))
  7881. }
  7882. } else {
  7883. for k2, v2 := range v {
  7884. if cr != nil {
  7885. cr.sendContainerState(containerMapKey)
  7886. }
  7887. ee.EncodeUint(uint64(k2))
  7888. if cr != nil {
  7889. cr.sendContainerState(containerMapValue)
  7890. }
  7891. ee.EncodeInt(int64(v2))
  7892. }
  7893. }
  7894. if cr != nil {
  7895. cr.sendContainerState(containerMapEnd)
  7896. }
  7897. }
  7898. func (f *encFnInfo) fastpathEncMapUint16Int16R(rv reflect.Value) {
  7899. fastpathTV.EncMapUint16Int16V(rv.Interface().(map[uint16]int16), fastpathCheckNilFalse, f.e)
  7900. }
  7901. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, checkNil bool, e *Encoder) {
  7902. ee := e.e
  7903. cr := e.cr
  7904. if checkNil && v == nil {
  7905. ee.EncodeNil()
  7906. return
  7907. }
  7908. ee.EncodeMapStart(len(v))
  7909. if e.h.Canonical {
  7910. v2 := make([]uint64, len(v))
  7911. var i int
  7912. for k, _ := range v {
  7913. v2[i] = uint64(k)
  7914. i++
  7915. }
  7916. sort.Sort(uintSlice(v2))
  7917. for _, k2 := range v2 {
  7918. if cr != nil {
  7919. cr.sendContainerState(containerMapKey)
  7920. }
  7921. ee.EncodeUint(uint64(uint16(k2)))
  7922. if cr != nil {
  7923. cr.sendContainerState(containerMapValue)
  7924. }
  7925. ee.EncodeInt(int64(v[uint16(k2)]))
  7926. }
  7927. } else {
  7928. for k2, v2 := range v {
  7929. if cr != nil {
  7930. cr.sendContainerState(containerMapKey)
  7931. }
  7932. ee.EncodeUint(uint64(k2))
  7933. if cr != nil {
  7934. cr.sendContainerState(containerMapValue)
  7935. }
  7936. ee.EncodeInt(int64(v2))
  7937. }
  7938. }
  7939. if cr != nil {
  7940. cr.sendContainerState(containerMapEnd)
  7941. }
  7942. }
  7943. func (f *encFnInfo) fastpathEncMapUint16Int32R(rv reflect.Value) {
  7944. fastpathTV.EncMapUint16Int32V(rv.Interface().(map[uint16]int32), fastpathCheckNilFalse, f.e)
  7945. }
  7946. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, checkNil bool, e *Encoder) {
  7947. ee := e.e
  7948. cr := e.cr
  7949. if checkNil && v == nil {
  7950. ee.EncodeNil()
  7951. return
  7952. }
  7953. ee.EncodeMapStart(len(v))
  7954. if e.h.Canonical {
  7955. v2 := make([]uint64, len(v))
  7956. var i int
  7957. for k, _ := range v {
  7958. v2[i] = uint64(k)
  7959. i++
  7960. }
  7961. sort.Sort(uintSlice(v2))
  7962. for _, k2 := range v2 {
  7963. if cr != nil {
  7964. cr.sendContainerState(containerMapKey)
  7965. }
  7966. ee.EncodeUint(uint64(uint16(k2)))
  7967. if cr != nil {
  7968. cr.sendContainerState(containerMapValue)
  7969. }
  7970. ee.EncodeInt(int64(v[uint16(k2)]))
  7971. }
  7972. } else {
  7973. for k2, v2 := range v {
  7974. if cr != nil {
  7975. cr.sendContainerState(containerMapKey)
  7976. }
  7977. ee.EncodeUint(uint64(k2))
  7978. if cr != nil {
  7979. cr.sendContainerState(containerMapValue)
  7980. }
  7981. ee.EncodeInt(int64(v2))
  7982. }
  7983. }
  7984. if cr != nil {
  7985. cr.sendContainerState(containerMapEnd)
  7986. }
  7987. }
  7988. func (f *encFnInfo) fastpathEncMapUint16Int64R(rv reflect.Value) {
  7989. fastpathTV.EncMapUint16Int64V(rv.Interface().(map[uint16]int64), fastpathCheckNilFalse, f.e)
  7990. }
  7991. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, checkNil bool, e *Encoder) {
  7992. ee := e.e
  7993. cr := e.cr
  7994. if checkNil && v == nil {
  7995. ee.EncodeNil()
  7996. return
  7997. }
  7998. ee.EncodeMapStart(len(v))
  7999. if e.h.Canonical {
  8000. v2 := make([]uint64, len(v))
  8001. var i int
  8002. for k, _ := range v {
  8003. v2[i] = uint64(k)
  8004. i++
  8005. }
  8006. sort.Sort(uintSlice(v2))
  8007. for _, k2 := range v2 {
  8008. if cr != nil {
  8009. cr.sendContainerState(containerMapKey)
  8010. }
  8011. ee.EncodeUint(uint64(uint16(k2)))
  8012. if cr != nil {
  8013. cr.sendContainerState(containerMapValue)
  8014. }
  8015. ee.EncodeInt(int64(v[uint16(k2)]))
  8016. }
  8017. } else {
  8018. for k2, v2 := range v {
  8019. if cr != nil {
  8020. cr.sendContainerState(containerMapKey)
  8021. }
  8022. ee.EncodeUint(uint64(k2))
  8023. if cr != nil {
  8024. cr.sendContainerState(containerMapValue)
  8025. }
  8026. ee.EncodeInt(int64(v2))
  8027. }
  8028. }
  8029. if cr != nil {
  8030. cr.sendContainerState(containerMapEnd)
  8031. }
  8032. }
  8033. func (f *encFnInfo) fastpathEncMapUint16Float32R(rv reflect.Value) {
  8034. fastpathTV.EncMapUint16Float32V(rv.Interface().(map[uint16]float32), fastpathCheckNilFalse, f.e)
  8035. }
  8036. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, checkNil bool, e *Encoder) {
  8037. ee := e.e
  8038. cr := e.cr
  8039. if checkNil && v == nil {
  8040. ee.EncodeNil()
  8041. return
  8042. }
  8043. ee.EncodeMapStart(len(v))
  8044. if e.h.Canonical {
  8045. v2 := make([]uint64, len(v))
  8046. var i int
  8047. for k, _ := range v {
  8048. v2[i] = uint64(k)
  8049. i++
  8050. }
  8051. sort.Sort(uintSlice(v2))
  8052. for _, k2 := range v2 {
  8053. if cr != nil {
  8054. cr.sendContainerState(containerMapKey)
  8055. }
  8056. ee.EncodeUint(uint64(uint16(k2)))
  8057. if cr != nil {
  8058. cr.sendContainerState(containerMapValue)
  8059. }
  8060. ee.EncodeFloat32(v[uint16(k2)])
  8061. }
  8062. } else {
  8063. for k2, v2 := range v {
  8064. if cr != nil {
  8065. cr.sendContainerState(containerMapKey)
  8066. }
  8067. ee.EncodeUint(uint64(k2))
  8068. if cr != nil {
  8069. cr.sendContainerState(containerMapValue)
  8070. }
  8071. ee.EncodeFloat32(v2)
  8072. }
  8073. }
  8074. if cr != nil {
  8075. cr.sendContainerState(containerMapEnd)
  8076. }
  8077. }
  8078. func (f *encFnInfo) fastpathEncMapUint16Float64R(rv reflect.Value) {
  8079. fastpathTV.EncMapUint16Float64V(rv.Interface().(map[uint16]float64), fastpathCheckNilFalse, f.e)
  8080. }
  8081. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, checkNil bool, e *Encoder) {
  8082. ee := e.e
  8083. cr := e.cr
  8084. if checkNil && v == nil {
  8085. ee.EncodeNil()
  8086. return
  8087. }
  8088. ee.EncodeMapStart(len(v))
  8089. if e.h.Canonical {
  8090. v2 := make([]uint64, len(v))
  8091. var i int
  8092. for k, _ := range v {
  8093. v2[i] = uint64(k)
  8094. i++
  8095. }
  8096. sort.Sort(uintSlice(v2))
  8097. for _, k2 := range v2 {
  8098. if cr != nil {
  8099. cr.sendContainerState(containerMapKey)
  8100. }
  8101. ee.EncodeUint(uint64(uint16(k2)))
  8102. if cr != nil {
  8103. cr.sendContainerState(containerMapValue)
  8104. }
  8105. ee.EncodeFloat64(v[uint16(k2)])
  8106. }
  8107. } else {
  8108. for k2, v2 := range v {
  8109. if cr != nil {
  8110. cr.sendContainerState(containerMapKey)
  8111. }
  8112. ee.EncodeUint(uint64(k2))
  8113. if cr != nil {
  8114. cr.sendContainerState(containerMapValue)
  8115. }
  8116. ee.EncodeFloat64(v2)
  8117. }
  8118. }
  8119. if cr != nil {
  8120. cr.sendContainerState(containerMapEnd)
  8121. }
  8122. }
  8123. func (f *encFnInfo) fastpathEncMapUint16BoolR(rv reflect.Value) {
  8124. fastpathTV.EncMapUint16BoolV(rv.Interface().(map[uint16]bool), fastpathCheckNilFalse, f.e)
  8125. }
  8126. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, checkNil bool, e *Encoder) {
  8127. ee := e.e
  8128. cr := e.cr
  8129. if checkNil && v == nil {
  8130. ee.EncodeNil()
  8131. return
  8132. }
  8133. ee.EncodeMapStart(len(v))
  8134. if e.h.Canonical {
  8135. v2 := make([]uint64, len(v))
  8136. var i int
  8137. for k, _ := range v {
  8138. v2[i] = uint64(k)
  8139. i++
  8140. }
  8141. sort.Sort(uintSlice(v2))
  8142. for _, k2 := range v2 {
  8143. if cr != nil {
  8144. cr.sendContainerState(containerMapKey)
  8145. }
  8146. ee.EncodeUint(uint64(uint16(k2)))
  8147. if cr != nil {
  8148. cr.sendContainerState(containerMapValue)
  8149. }
  8150. ee.EncodeBool(v[uint16(k2)])
  8151. }
  8152. } else {
  8153. for k2, v2 := range v {
  8154. if cr != nil {
  8155. cr.sendContainerState(containerMapKey)
  8156. }
  8157. ee.EncodeUint(uint64(k2))
  8158. if cr != nil {
  8159. cr.sendContainerState(containerMapValue)
  8160. }
  8161. ee.EncodeBool(v2)
  8162. }
  8163. }
  8164. if cr != nil {
  8165. cr.sendContainerState(containerMapEnd)
  8166. }
  8167. }
  8168. func (f *encFnInfo) fastpathEncMapUint32IntfR(rv reflect.Value) {
  8169. fastpathTV.EncMapUint32IntfV(rv.Interface().(map[uint32]interface{}), fastpathCheckNilFalse, f.e)
  8170. }
  8171. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, checkNil bool, e *Encoder) {
  8172. ee := e.e
  8173. cr := e.cr
  8174. if checkNil && v == nil {
  8175. ee.EncodeNil()
  8176. return
  8177. }
  8178. ee.EncodeMapStart(len(v))
  8179. if e.h.Canonical {
  8180. v2 := make([]uint64, len(v))
  8181. var i int
  8182. for k, _ := range v {
  8183. v2[i] = uint64(k)
  8184. i++
  8185. }
  8186. sort.Sort(uintSlice(v2))
  8187. for _, k2 := range v2 {
  8188. if cr != nil {
  8189. cr.sendContainerState(containerMapKey)
  8190. }
  8191. ee.EncodeUint(uint64(uint32(k2)))
  8192. if cr != nil {
  8193. cr.sendContainerState(containerMapValue)
  8194. }
  8195. e.encode(v[uint32(k2)])
  8196. }
  8197. } else {
  8198. for k2, v2 := range v {
  8199. if cr != nil {
  8200. cr.sendContainerState(containerMapKey)
  8201. }
  8202. ee.EncodeUint(uint64(k2))
  8203. if cr != nil {
  8204. cr.sendContainerState(containerMapValue)
  8205. }
  8206. e.encode(v2)
  8207. }
  8208. }
  8209. if cr != nil {
  8210. cr.sendContainerState(containerMapEnd)
  8211. }
  8212. }
  8213. func (f *encFnInfo) fastpathEncMapUint32StringR(rv reflect.Value) {
  8214. fastpathTV.EncMapUint32StringV(rv.Interface().(map[uint32]string), fastpathCheckNilFalse, f.e)
  8215. }
  8216. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, checkNil bool, e *Encoder) {
  8217. ee := e.e
  8218. cr := e.cr
  8219. if checkNil && v == nil {
  8220. ee.EncodeNil()
  8221. return
  8222. }
  8223. ee.EncodeMapStart(len(v))
  8224. if e.h.Canonical {
  8225. v2 := make([]uint64, len(v))
  8226. var i int
  8227. for k, _ := range v {
  8228. v2[i] = uint64(k)
  8229. i++
  8230. }
  8231. sort.Sort(uintSlice(v2))
  8232. for _, k2 := range v2 {
  8233. if cr != nil {
  8234. cr.sendContainerState(containerMapKey)
  8235. }
  8236. ee.EncodeUint(uint64(uint32(k2)))
  8237. if cr != nil {
  8238. cr.sendContainerState(containerMapValue)
  8239. }
  8240. ee.EncodeString(c_UTF8, v[uint32(k2)])
  8241. }
  8242. } else {
  8243. for k2, v2 := range v {
  8244. if cr != nil {
  8245. cr.sendContainerState(containerMapKey)
  8246. }
  8247. ee.EncodeUint(uint64(k2))
  8248. if cr != nil {
  8249. cr.sendContainerState(containerMapValue)
  8250. }
  8251. ee.EncodeString(c_UTF8, v2)
  8252. }
  8253. }
  8254. if cr != nil {
  8255. cr.sendContainerState(containerMapEnd)
  8256. }
  8257. }
  8258. func (f *encFnInfo) fastpathEncMapUint32UintR(rv reflect.Value) {
  8259. fastpathTV.EncMapUint32UintV(rv.Interface().(map[uint32]uint), fastpathCheckNilFalse, f.e)
  8260. }
  8261. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, checkNil bool, e *Encoder) {
  8262. ee := e.e
  8263. cr := e.cr
  8264. if checkNil && v == nil {
  8265. ee.EncodeNil()
  8266. return
  8267. }
  8268. ee.EncodeMapStart(len(v))
  8269. if e.h.Canonical {
  8270. v2 := make([]uint64, len(v))
  8271. var i int
  8272. for k, _ := range v {
  8273. v2[i] = uint64(k)
  8274. i++
  8275. }
  8276. sort.Sort(uintSlice(v2))
  8277. for _, k2 := range v2 {
  8278. if cr != nil {
  8279. cr.sendContainerState(containerMapKey)
  8280. }
  8281. ee.EncodeUint(uint64(uint32(k2)))
  8282. if cr != nil {
  8283. cr.sendContainerState(containerMapValue)
  8284. }
  8285. ee.EncodeUint(uint64(v[uint32(k2)]))
  8286. }
  8287. } else {
  8288. for k2, v2 := range v {
  8289. if cr != nil {
  8290. cr.sendContainerState(containerMapKey)
  8291. }
  8292. ee.EncodeUint(uint64(k2))
  8293. if cr != nil {
  8294. cr.sendContainerState(containerMapValue)
  8295. }
  8296. ee.EncodeUint(uint64(v2))
  8297. }
  8298. }
  8299. if cr != nil {
  8300. cr.sendContainerState(containerMapEnd)
  8301. }
  8302. }
  8303. func (f *encFnInfo) fastpathEncMapUint32Uint8R(rv reflect.Value) {
  8304. fastpathTV.EncMapUint32Uint8V(rv.Interface().(map[uint32]uint8), fastpathCheckNilFalse, f.e)
  8305. }
  8306. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, checkNil bool, e *Encoder) {
  8307. ee := e.e
  8308. cr := e.cr
  8309. if checkNil && v == nil {
  8310. ee.EncodeNil()
  8311. return
  8312. }
  8313. ee.EncodeMapStart(len(v))
  8314. if e.h.Canonical {
  8315. v2 := make([]uint64, len(v))
  8316. var i int
  8317. for k, _ := range v {
  8318. v2[i] = uint64(k)
  8319. i++
  8320. }
  8321. sort.Sort(uintSlice(v2))
  8322. for _, k2 := range v2 {
  8323. if cr != nil {
  8324. cr.sendContainerState(containerMapKey)
  8325. }
  8326. ee.EncodeUint(uint64(uint32(k2)))
  8327. if cr != nil {
  8328. cr.sendContainerState(containerMapValue)
  8329. }
  8330. ee.EncodeUint(uint64(v[uint32(k2)]))
  8331. }
  8332. } else {
  8333. for k2, v2 := range v {
  8334. if cr != nil {
  8335. cr.sendContainerState(containerMapKey)
  8336. }
  8337. ee.EncodeUint(uint64(k2))
  8338. if cr != nil {
  8339. cr.sendContainerState(containerMapValue)
  8340. }
  8341. ee.EncodeUint(uint64(v2))
  8342. }
  8343. }
  8344. if cr != nil {
  8345. cr.sendContainerState(containerMapEnd)
  8346. }
  8347. }
  8348. func (f *encFnInfo) fastpathEncMapUint32Uint16R(rv reflect.Value) {
  8349. fastpathTV.EncMapUint32Uint16V(rv.Interface().(map[uint32]uint16), fastpathCheckNilFalse, f.e)
  8350. }
  8351. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, checkNil bool, e *Encoder) {
  8352. ee := e.e
  8353. cr := e.cr
  8354. if checkNil && v == nil {
  8355. ee.EncodeNil()
  8356. return
  8357. }
  8358. ee.EncodeMapStart(len(v))
  8359. if e.h.Canonical {
  8360. v2 := make([]uint64, len(v))
  8361. var i int
  8362. for k, _ := range v {
  8363. v2[i] = uint64(k)
  8364. i++
  8365. }
  8366. sort.Sort(uintSlice(v2))
  8367. for _, k2 := range v2 {
  8368. if cr != nil {
  8369. cr.sendContainerState(containerMapKey)
  8370. }
  8371. ee.EncodeUint(uint64(uint32(k2)))
  8372. if cr != nil {
  8373. cr.sendContainerState(containerMapValue)
  8374. }
  8375. ee.EncodeUint(uint64(v[uint32(k2)]))
  8376. }
  8377. } else {
  8378. for k2, v2 := range v {
  8379. if cr != nil {
  8380. cr.sendContainerState(containerMapKey)
  8381. }
  8382. ee.EncodeUint(uint64(k2))
  8383. if cr != nil {
  8384. cr.sendContainerState(containerMapValue)
  8385. }
  8386. ee.EncodeUint(uint64(v2))
  8387. }
  8388. }
  8389. if cr != nil {
  8390. cr.sendContainerState(containerMapEnd)
  8391. }
  8392. }
  8393. func (f *encFnInfo) fastpathEncMapUint32Uint32R(rv reflect.Value) {
  8394. fastpathTV.EncMapUint32Uint32V(rv.Interface().(map[uint32]uint32), fastpathCheckNilFalse, f.e)
  8395. }
  8396. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, checkNil bool, e *Encoder) {
  8397. ee := e.e
  8398. cr := e.cr
  8399. if checkNil && v == nil {
  8400. ee.EncodeNil()
  8401. return
  8402. }
  8403. ee.EncodeMapStart(len(v))
  8404. if e.h.Canonical {
  8405. v2 := make([]uint64, len(v))
  8406. var i int
  8407. for k, _ := range v {
  8408. v2[i] = uint64(k)
  8409. i++
  8410. }
  8411. sort.Sort(uintSlice(v2))
  8412. for _, k2 := range v2 {
  8413. if cr != nil {
  8414. cr.sendContainerState(containerMapKey)
  8415. }
  8416. ee.EncodeUint(uint64(uint32(k2)))
  8417. if cr != nil {
  8418. cr.sendContainerState(containerMapValue)
  8419. }
  8420. ee.EncodeUint(uint64(v[uint32(k2)]))
  8421. }
  8422. } else {
  8423. for k2, v2 := range v {
  8424. if cr != nil {
  8425. cr.sendContainerState(containerMapKey)
  8426. }
  8427. ee.EncodeUint(uint64(k2))
  8428. if cr != nil {
  8429. cr.sendContainerState(containerMapValue)
  8430. }
  8431. ee.EncodeUint(uint64(v2))
  8432. }
  8433. }
  8434. if cr != nil {
  8435. cr.sendContainerState(containerMapEnd)
  8436. }
  8437. }
  8438. func (f *encFnInfo) fastpathEncMapUint32Uint64R(rv reflect.Value) {
  8439. fastpathTV.EncMapUint32Uint64V(rv.Interface().(map[uint32]uint64), fastpathCheckNilFalse, f.e)
  8440. }
  8441. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, checkNil bool, e *Encoder) {
  8442. ee := e.e
  8443. cr := e.cr
  8444. if checkNil && v == nil {
  8445. ee.EncodeNil()
  8446. return
  8447. }
  8448. ee.EncodeMapStart(len(v))
  8449. if e.h.Canonical {
  8450. v2 := make([]uint64, len(v))
  8451. var i int
  8452. for k, _ := range v {
  8453. v2[i] = uint64(k)
  8454. i++
  8455. }
  8456. sort.Sort(uintSlice(v2))
  8457. for _, k2 := range v2 {
  8458. if cr != nil {
  8459. cr.sendContainerState(containerMapKey)
  8460. }
  8461. ee.EncodeUint(uint64(uint32(k2)))
  8462. if cr != nil {
  8463. cr.sendContainerState(containerMapValue)
  8464. }
  8465. ee.EncodeUint(uint64(v[uint32(k2)]))
  8466. }
  8467. } else {
  8468. for k2, v2 := range v {
  8469. if cr != nil {
  8470. cr.sendContainerState(containerMapKey)
  8471. }
  8472. ee.EncodeUint(uint64(k2))
  8473. if cr != nil {
  8474. cr.sendContainerState(containerMapValue)
  8475. }
  8476. ee.EncodeUint(uint64(v2))
  8477. }
  8478. }
  8479. if cr != nil {
  8480. cr.sendContainerState(containerMapEnd)
  8481. }
  8482. }
  8483. func (f *encFnInfo) fastpathEncMapUint32UintptrR(rv reflect.Value) {
  8484. fastpathTV.EncMapUint32UintptrV(rv.Interface().(map[uint32]uintptr), fastpathCheckNilFalse, f.e)
  8485. }
  8486. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, checkNil bool, e *Encoder) {
  8487. ee := e.e
  8488. cr := e.cr
  8489. if checkNil && v == nil {
  8490. ee.EncodeNil()
  8491. return
  8492. }
  8493. ee.EncodeMapStart(len(v))
  8494. if e.h.Canonical {
  8495. v2 := make([]uint64, len(v))
  8496. var i int
  8497. for k, _ := range v {
  8498. v2[i] = uint64(k)
  8499. i++
  8500. }
  8501. sort.Sort(uintSlice(v2))
  8502. for _, k2 := range v2 {
  8503. if cr != nil {
  8504. cr.sendContainerState(containerMapKey)
  8505. }
  8506. ee.EncodeUint(uint64(uint32(k2)))
  8507. if cr != nil {
  8508. cr.sendContainerState(containerMapValue)
  8509. }
  8510. e.encode(v[uint32(k2)])
  8511. }
  8512. } else {
  8513. for k2, v2 := range v {
  8514. if cr != nil {
  8515. cr.sendContainerState(containerMapKey)
  8516. }
  8517. ee.EncodeUint(uint64(k2))
  8518. if cr != nil {
  8519. cr.sendContainerState(containerMapValue)
  8520. }
  8521. e.encode(v2)
  8522. }
  8523. }
  8524. if cr != nil {
  8525. cr.sendContainerState(containerMapEnd)
  8526. }
  8527. }
  8528. func (f *encFnInfo) fastpathEncMapUint32IntR(rv reflect.Value) {
  8529. fastpathTV.EncMapUint32IntV(rv.Interface().(map[uint32]int), fastpathCheckNilFalse, f.e)
  8530. }
  8531. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, checkNil bool, e *Encoder) {
  8532. ee := e.e
  8533. cr := e.cr
  8534. if checkNil && v == nil {
  8535. ee.EncodeNil()
  8536. return
  8537. }
  8538. ee.EncodeMapStart(len(v))
  8539. if e.h.Canonical {
  8540. v2 := make([]uint64, len(v))
  8541. var i int
  8542. for k, _ := range v {
  8543. v2[i] = uint64(k)
  8544. i++
  8545. }
  8546. sort.Sort(uintSlice(v2))
  8547. for _, k2 := range v2 {
  8548. if cr != nil {
  8549. cr.sendContainerState(containerMapKey)
  8550. }
  8551. ee.EncodeUint(uint64(uint32(k2)))
  8552. if cr != nil {
  8553. cr.sendContainerState(containerMapValue)
  8554. }
  8555. ee.EncodeInt(int64(v[uint32(k2)]))
  8556. }
  8557. } else {
  8558. for k2, v2 := range v {
  8559. if cr != nil {
  8560. cr.sendContainerState(containerMapKey)
  8561. }
  8562. ee.EncodeUint(uint64(k2))
  8563. if cr != nil {
  8564. cr.sendContainerState(containerMapValue)
  8565. }
  8566. ee.EncodeInt(int64(v2))
  8567. }
  8568. }
  8569. if cr != nil {
  8570. cr.sendContainerState(containerMapEnd)
  8571. }
  8572. }
  8573. func (f *encFnInfo) fastpathEncMapUint32Int8R(rv reflect.Value) {
  8574. fastpathTV.EncMapUint32Int8V(rv.Interface().(map[uint32]int8), fastpathCheckNilFalse, f.e)
  8575. }
  8576. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, checkNil bool, e *Encoder) {
  8577. ee := e.e
  8578. cr := e.cr
  8579. if checkNil && v == nil {
  8580. ee.EncodeNil()
  8581. return
  8582. }
  8583. ee.EncodeMapStart(len(v))
  8584. if e.h.Canonical {
  8585. v2 := make([]uint64, len(v))
  8586. var i int
  8587. for k, _ := range v {
  8588. v2[i] = uint64(k)
  8589. i++
  8590. }
  8591. sort.Sort(uintSlice(v2))
  8592. for _, k2 := range v2 {
  8593. if cr != nil {
  8594. cr.sendContainerState(containerMapKey)
  8595. }
  8596. ee.EncodeUint(uint64(uint32(k2)))
  8597. if cr != nil {
  8598. cr.sendContainerState(containerMapValue)
  8599. }
  8600. ee.EncodeInt(int64(v[uint32(k2)]))
  8601. }
  8602. } else {
  8603. for k2, v2 := range v {
  8604. if cr != nil {
  8605. cr.sendContainerState(containerMapKey)
  8606. }
  8607. ee.EncodeUint(uint64(k2))
  8608. if cr != nil {
  8609. cr.sendContainerState(containerMapValue)
  8610. }
  8611. ee.EncodeInt(int64(v2))
  8612. }
  8613. }
  8614. if cr != nil {
  8615. cr.sendContainerState(containerMapEnd)
  8616. }
  8617. }
  8618. func (f *encFnInfo) fastpathEncMapUint32Int16R(rv reflect.Value) {
  8619. fastpathTV.EncMapUint32Int16V(rv.Interface().(map[uint32]int16), fastpathCheckNilFalse, f.e)
  8620. }
  8621. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, checkNil bool, e *Encoder) {
  8622. ee := e.e
  8623. cr := e.cr
  8624. if checkNil && v == nil {
  8625. ee.EncodeNil()
  8626. return
  8627. }
  8628. ee.EncodeMapStart(len(v))
  8629. if e.h.Canonical {
  8630. v2 := make([]uint64, len(v))
  8631. var i int
  8632. for k, _ := range v {
  8633. v2[i] = uint64(k)
  8634. i++
  8635. }
  8636. sort.Sort(uintSlice(v2))
  8637. for _, k2 := range v2 {
  8638. if cr != nil {
  8639. cr.sendContainerState(containerMapKey)
  8640. }
  8641. ee.EncodeUint(uint64(uint32(k2)))
  8642. if cr != nil {
  8643. cr.sendContainerState(containerMapValue)
  8644. }
  8645. ee.EncodeInt(int64(v[uint32(k2)]))
  8646. }
  8647. } else {
  8648. for k2, v2 := range v {
  8649. if cr != nil {
  8650. cr.sendContainerState(containerMapKey)
  8651. }
  8652. ee.EncodeUint(uint64(k2))
  8653. if cr != nil {
  8654. cr.sendContainerState(containerMapValue)
  8655. }
  8656. ee.EncodeInt(int64(v2))
  8657. }
  8658. }
  8659. if cr != nil {
  8660. cr.sendContainerState(containerMapEnd)
  8661. }
  8662. }
  8663. func (f *encFnInfo) fastpathEncMapUint32Int32R(rv reflect.Value) {
  8664. fastpathTV.EncMapUint32Int32V(rv.Interface().(map[uint32]int32), fastpathCheckNilFalse, f.e)
  8665. }
  8666. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, checkNil bool, e *Encoder) {
  8667. ee := e.e
  8668. cr := e.cr
  8669. if checkNil && v == nil {
  8670. ee.EncodeNil()
  8671. return
  8672. }
  8673. ee.EncodeMapStart(len(v))
  8674. if e.h.Canonical {
  8675. v2 := make([]uint64, len(v))
  8676. var i int
  8677. for k, _ := range v {
  8678. v2[i] = uint64(k)
  8679. i++
  8680. }
  8681. sort.Sort(uintSlice(v2))
  8682. for _, k2 := range v2 {
  8683. if cr != nil {
  8684. cr.sendContainerState(containerMapKey)
  8685. }
  8686. ee.EncodeUint(uint64(uint32(k2)))
  8687. if cr != nil {
  8688. cr.sendContainerState(containerMapValue)
  8689. }
  8690. ee.EncodeInt(int64(v[uint32(k2)]))
  8691. }
  8692. } else {
  8693. for k2, v2 := range v {
  8694. if cr != nil {
  8695. cr.sendContainerState(containerMapKey)
  8696. }
  8697. ee.EncodeUint(uint64(k2))
  8698. if cr != nil {
  8699. cr.sendContainerState(containerMapValue)
  8700. }
  8701. ee.EncodeInt(int64(v2))
  8702. }
  8703. }
  8704. if cr != nil {
  8705. cr.sendContainerState(containerMapEnd)
  8706. }
  8707. }
  8708. func (f *encFnInfo) fastpathEncMapUint32Int64R(rv reflect.Value) {
  8709. fastpathTV.EncMapUint32Int64V(rv.Interface().(map[uint32]int64), fastpathCheckNilFalse, f.e)
  8710. }
  8711. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, checkNil bool, e *Encoder) {
  8712. ee := e.e
  8713. cr := e.cr
  8714. if checkNil && v == nil {
  8715. ee.EncodeNil()
  8716. return
  8717. }
  8718. ee.EncodeMapStart(len(v))
  8719. if e.h.Canonical {
  8720. v2 := make([]uint64, len(v))
  8721. var i int
  8722. for k, _ := range v {
  8723. v2[i] = uint64(k)
  8724. i++
  8725. }
  8726. sort.Sort(uintSlice(v2))
  8727. for _, k2 := range v2 {
  8728. if cr != nil {
  8729. cr.sendContainerState(containerMapKey)
  8730. }
  8731. ee.EncodeUint(uint64(uint32(k2)))
  8732. if cr != nil {
  8733. cr.sendContainerState(containerMapValue)
  8734. }
  8735. ee.EncodeInt(int64(v[uint32(k2)]))
  8736. }
  8737. } else {
  8738. for k2, v2 := range v {
  8739. if cr != nil {
  8740. cr.sendContainerState(containerMapKey)
  8741. }
  8742. ee.EncodeUint(uint64(k2))
  8743. if cr != nil {
  8744. cr.sendContainerState(containerMapValue)
  8745. }
  8746. ee.EncodeInt(int64(v2))
  8747. }
  8748. }
  8749. if cr != nil {
  8750. cr.sendContainerState(containerMapEnd)
  8751. }
  8752. }
  8753. func (f *encFnInfo) fastpathEncMapUint32Float32R(rv reflect.Value) {
  8754. fastpathTV.EncMapUint32Float32V(rv.Interface().(map[uint32]float32), fastpathCheckNilFalse, f.e)
  8755. }
  8756. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, checkNil bool, e *Encoder) {
  8757. ee := e.e
  8758. cr := e.cr
  8759. if checkNil && v == nil {
  8760. ee.EncodeNil()
  8761. return
  8762. }
  8763. ee.EncodeMapStart(len(v))
  8764. if e.h.Canonical {
  8765. v2 := make([]uint64, len(v))
  8766. var i int
  8767. for k, _ := range v {
  8768. v2[i] = uint64(k)
  8769. i++
  8770. }
  8771. sort.Sort(uintSlice(v2))
  8772. for _, k2 := range v2 {
  8773. if cr != nil {
  8774. cr.sendContainerState(containerMapKey)
  8775. }
  8776. ee.EncodeUint(uint64(uint32(k2)))
  8777. if cr != nil {
  8778. cr.sendContainerState(containerMapValue)
  8779. }
  8780. ee.EncodeFloat32(v[uint32(k2)])
  8781. }
  8782. } else {
  8783. for k2, v2 := range v {
  8784. if cr != nil {
  8785. cr.sendContainerState(containerMapKey)
  8786. }
  8787. ee.EncodeUint(uint64(k2))
  8788. if cr != nil {
  8789. cr.sendContainerState(containerMapValue)
  8790. }
  8791. ee.EncodeFloat32(v2)
  8792. }
  8793. }
  8794. if cr != nil {
  8795. cr.sendContainerState(containerMapEnd)
  8796. }
  8797. }
  8798. func (f *encFnInfo) fastpathEncMapUint32Float64R(rv reflect.Value) {
  8799. fastpathTV.EncMapUint32Float64V(rv.Interface().(map[uint32]float64), fastpathCheckNilFalse, f.e)
  8800. }
  8801. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, checkNil bool, e *Encoder) {
  8802. ee := e.e
  8803. cr := e.cr
  8804. if checkNil && v == nil {
  8805. ee.EncodeNil()
  8806. return
  8807. }
  8808. ee.EncodeMapStart(len(v))
  8809. if e.h.Canonical {
  8810. v2 := make([]uint64, len(v))
  8811. var i int
  8812. for k, _ := range v {
  8813. v2[i] = uint64(k)
  8814. i++
  8815. }
  8816. sort.Sort(uintSlice(v2))
  8817. for _, k2 := range v2 {
  8818. if cr != nil {
  8819. cr.sendContainerState(containerMapKey)
  8820. }
  8821. ee.EncodeUint(uint64(uint32(k2)))
  8822. if cr != nil {
  8823. cr.sendContainerState(containerMapValue)
  8824. }
  8825. ee.EncodeFloat64(v[uint32(k2)])
  8826. }
  8827. } else {
  8828. for k2, v2 := range v {
  8829. if cr != nil {
  8830. cr.sendContainerState(containerMapKey)
  8831. }
  8832. ee.EncodeUint(uint64(k2))
  8833. if cr != nil {
  8834. cr.sendContainerState(containerMapValue)
  8835. }
  8836. ee.EncodeFloat64(v2)
  8837. }
  8838. }
  8839. if cr != nil {
  8840. cr.sendContainerState(containerMapEnd)
  8841. }
  8842. }
  8843. func (f *encFnInfo) fastpathEncMapUint32BoolR(rv reflect.Value) {
  8844. fastpathTV.EncMapUint32BoolV(rv.Interface().(map[uint32]bool), fastpathCheckNilFalse, f.e)
  8845. }
  8846. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, checkNil bool, e *Encoder) {
  8847. ee := e.e
  8848. cr := e.cr
  8849. if checkNil && v == nil {
  8850. ee.EncodeNil()
  8851. return
  8852. }
  8853. ee.EncodeMapStart(len(v))
  8854. if e.h.Canonical {
  8855. v2 := make([]uint64, len(v))
  8856. var i int
  8857. for k, _ := range v {
  8858. v2[i] = uint64(k)
  8859. i++
  8860. }
  8861. sort.Sort(uintSlice(v2))
  8862. for _, k2 := range v2 {
  8863. if cr != nil {
  8864. cr.sendContainerState(containerMapKey)
  8865. }
  8866. ee.EncodeUint(uint64(uint32(k2)))
  8867. if cr != nil {
  8868. cr.sendContainerState(containerMapValue)
  8869. }
  8870. ee.EncodeBool(v[uint32(k2)])
  8871. }
  8872. } else {
  8873. for k2, v2 := range v {
  8874. if cr != nil {
  8875. cr.sendContainerState(containerMapKey)
  8876. }
  8877. ee.EncodeUint(uint64(k2))
  8878. if cr != nil {
  8879. cr.sendContainerState(containerMapValue)
  8880. }
  8881. ee.EncodeBool(v2)
  8882. }
  8883. }
  8884. if cr != nil {
  8885. cr.sendContainerState(containerMapEnd)
  8886. }
  8887. }
  8888. func (f *encFnInfo) fastpathEncMapUint64IntfR(rv reflect.Value) {
  8889. fastpathTV.EncMapUint64IntfV(rv.Interface().(map[uint64]interface{}), fastpathCheckNilFalse, f.e)
  8890. }
  8891. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, checkNil bool, e *Encoder) {
  8892. ee := e.e
  8893. cr := e.cr
  8894. if checkNil && v == nil {
  8895. ee.EncodeNil()
  8896. return
  8897. }
  8898. ee.EncodeMapStart(len(v))
  8899. if e.h.Canonical {
  8900. v2 := make([]uint64, len(v))
  8901. var i int
  8902. for k, _ := range v {
  8903. v2[i] = uint64(k)
  8904. i++
  8905. }
  8906. sort.Sort(uintSlice(v2))
  8907. for _, k2 := range v2 {
  8908. if cr != nil {
  8909. cr.sendContainerState(containerMapKey)
  8910. }
  8911. ee.EncodeUint(uint64(uint64(k2)))
  8912. if cr != nil {
  8913. cr.sendContainerState(containerMapValue)
  8914. }
  8915. e.encode(v[uint64(k2)])
  8916. }
  8917. } else {
  8918. for k2, v2 := range v {
  8919. if cr != nil {
  8920. cr.sendContainerState(containerMapKey)
  8921. }
  8922. ee.EncodeUint(uint64(k2))
  8923. if cr != nil {
  8924. cr.sendContainerState(containerMapValue)
  8925. }
  8926. e.encode(v2)
  8927. }
  8928. }
  8929. if cr != nil {
  8930. cr.sendContainerState(containerMapEnd)
  8931. }
  8932. }
  8933. func (f *encFnInfo) fastpathEncMapUint64StringR(rv reflect.Value) {
  8934. fastpathTV.EncMapUint64StringV(rv.Interface().(map[uint64]string), fastpathCheckNilFalse, f.e)
  8935. }
  8936. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, checkNil bool, e *Encoder) {
  8937. ee := e.e
  8938. cr := e.cr
  8939. if checkNil && v == nil {
  8940. ee.EncodeNil()
  8941. return
  8942. }
  8943. ee.EncodeMapStart(len(v))
  8944. if e.h.Canonical {
  8945. v2 := make([]uint64, len(v))
  8946. var i int
  8947. for k, _ := range v {
  8948. v2[i] = uint64(k)
  8949. i++
  8950. }
  8951. sort.Sort(uintSlice(v2))
  8952. for _, k2 := range v2 {
  8953. if cr != nil {
  8954. cr.sendContainerState(containerMapKey)
  8955. }
  8956. ee.EncodeUint(uint64(uint64(k2)))
  8957. if cr != nil {
  8958. cr.sendContainerState(containerMapValue)
  8959. }
  8960. ee.EncodeString(c_UTF8, v[uint64(k2)])
  8961. }
  8962. } else {
  8963. for k2, v2 := range v {
  8964. if cr != nil {
  8965. cr.sendContainerState(containerMapKey)
  8966. }
  8967. ee.EncodeUint(uint64(k2))
  8968. if cr != nil {
  8969. cr.sendContainerState(containerMapValue)
  8970. }
  8971. ee.EncodeString(c_UTF8, v2)
  8972. }
  8973. }
  8974. if cr != nil {
  8975. cr.sendContainerState(containerMapEnd)
  8976. }
  8977. }
  8978. func (f *encFnInfo) fastpathEncMapUint64UintR(rv reflect.Value) {
  8979. fastpathTV.EncMapUint64UintV(rv.Interface().(map[uint64]uint), fastpathCheckNilFalse, f.e)
  8980. }
  8981. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, checkNil bool, e *Encoder) {
  8982. ee := e.e
  8983. cr := e.cr
  8984. if checkNil && v == nil {
  8985. ee.EncodeNil()
  8986. return
  8987. }
  8988. ee.EncodeMapStart(len(v))
  8989. if e.h.Canonical {
  8990. v2 := make([]uint64, len(v))
  8991. var i int
  8992. for k, _ := range v {
  8993. v2[i] = uint64(k)
  8994. i++
  8995. }
  8996. sort.Sort(uintSlice(v2))
  8997. for _, k2 := range v2 {
  8998. if cr != nil {
  8999. cr.sendContainerState(containerMapKey)
  9000. }
  9001. ee.EncodeUint(uint64(uint64(k2)))
  9002. if cr != nil {
  9003. cr.sendContainerState(containerMapValue)
  9004. }
  9005. ee.EncodeUint(uint64(v[uint64(k2)]))
  9006. }
  9007. } else {
  9008. for k2, v2 := range v {
  9009. if cr != nil {
  9010. cr.sendContainerState(containerMapKey)
  9011. }
  9012. ee.EncodeUint(uint64(k2))
  9013. if cr != nil {
  9014. cr.sendContainerState(containerMapValue)
  9015. }
  9016. ee.EncodeUint(uint64(v2))
  9017. }
  9018. }
  9019. if cr != nil {
  9020. cr.sendContainerState(containerMapEnd)
  9021. }
  9022. }
  9023. func (f *encFnInfo) fastpathEncMapUint64Uint8R(rv reflect.Value) {
  9024. fastpathTV.EncMapUint64Uint8V(rv.Interface().(map[uint64]uint8), fastpathCheckNilFalse, f.e)
  9025. }
  9026. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, checkNil bool, e *Encoder) {
  9027. ee := e.e
  9028. cr := e.cr
  9029. if checkNil && v == nil {
  9030. ee.EncodeNil()
  9031. return
  9032. }
  9033. ee.EncodeMapStart(len(v))
  9034. if e.h.Canonical {
  9035. v2 := make([]uint64, len(v))
  9036. var i int
  9037. for k, _ := range v {
  9038. v2[i] = uint64(k)
  9039. i++
  9040. }
  9041. sort.Sort(uintSlice(v2))
  9042. for _, k2 := range v2 {
  9043. if cr != nil {
  9044. cr.sendContainerState(containerMapKey)
  9045. }
  9046. ee.EncodeUint(uint64(uint64(k2)))
  9047. if cr != nil {
  9048. cr.sendContainerState(containerMapValue)
  9049. }
  9050. ee.EncodeUint(uint64(v[uint64(k2)]))
  9051. }
  9052. } else {
  9053. for k2, v2 := range v {
  9054. if cr != nil {
  9055. cr.sendContainerState(containerMapKey)
  9056. }
  9057. ee.EncodeUint(uint64(k2))
  9058. if cr != nil {
  9059. cr.sendContainerState(containerMapValue)
  9060. }
  9061. ee.EncodeUint(uint64(v2))
  9062. }
  9063. }
  9064. if cr != nil {
  9065. cr.sendContainerState(containerMapEnd)
  9066. }
  9067. }
  9068. func (f *encFnInfo) fastpathEncMapUint64Uint16R(rv reflect.Value) {
  9069. fastpathTV.EncMapUint64Uint16V(rv.Interface().(map[uint64]uint16), fastpathCheckNilFalse, f.e)
  9070. }
  9071. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, checkNil bool, e *Encoder) {
  9072. ee := e.e
  9073. cr := e.cr
  9074. if checkNil && v == nil {
  9075. ee.EncodeNil()
  9076. return
  9077. }
  9078. ee.EncodeMapStart(len(v))
  9079. if e.h.Canonical {
  9080. v2 := make([]uint64, len(v))
  9081. var i int
  9082. for k, _ := range v {
  9083. v2[i] = uint64(k)
  9084. i++
  9085. }
  9086. sort.Sort(uintSlice(v2))
  9087. for _, k2 := range v2 {
  9088. if cr != nil {
  9089. cr.sendContainerState(containerMapKey)
  9090. }
  9091. ee.EncodeUint(uint64(uint64(k2)))
  9092. if cr != nil {
  9093. cr.sendContainerState(containerMapValue)
  9094. }
  9095. ee.EncodeUint(uint64(v[uint64(k2)]))
  9096. }
  9097. } else {
  9098. for k2, v2 := range v {
  9099. if cr != nil {
  9100. cr.sendContainerState(containerMapKey)
  9101. }
  9102. ee.EncodeUint(uint64(k2))
  9103. if cr != nil {
  9104. cr.sendContainerState(containerMapValue)
  9105. }
  9106. ee.EncodeUint(uint64(v2))
  9107. }
  9108. }
  9109. if cr != nil {
  9110. cr.sendContainerState(containerMapEnd)
  9111. }
  9112. }
  9113. func (f *encFnInfo) fastpathEncMapUint64Uint32R(rv reflect.Value) {
  9114. fastpathTV.EncMapUint64Uint32V(rv.Interface().(map[uint64]uint32), fastpathCheckNilFalse, f.e)
  9115. }
  9116. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, checkNil bool, e *Encoder) {
  9117. ee := e.e
  9118. cr := e.cr
  9119. if checkNil && v == nil {
  9120. ee.EncodeNil()
  9121. return
  9122. }
  9123. ee.EncodeMapStart(len(v))
  9124. if e.h.Canonical {
  9125. v2 := make([]uint64, len(v))
  9126. var i int
  9127. for k, _ := range v {
  9128. v2[i] = uint64(k)
  9129. i++
  9130. }
  9131. sort.Sort(uintSlice(v2))
  9132. for _, k2 := range v2 {
  9133. if cr != nil {
  9134. cr.sendContainerState(containerMapKey)
  9135. }
  9136. ee.EncodeUint(uint64(uint64(k2)))
  9137. if cr != nil {
  9138. cr.sendContainerState(containerMapValue)
  9139. }
  9140. ee.EncodeUint(uint64(v[uint64(k2)]))
  9141. }
  9142. } else {
  9143. for k2, v2 := range v {
  9144. if cr != nil {
  9145. cr.sendContainerState(containerMapKey)
  9146. }
  9147. ee.EncodeUint(uint64(k2))
  9148. if cr != nil {
  9149. cr.sendContainerState(containerMapValue)
  9150. }
  9151. ee.EncodeUint(uint64(v2))
  9152. }
  9153. }
  9154. if cr != nil {
  9155. cr.sendContainerState(containerMapEnd)
  9156. }
  9157. }
  9158. func (f *encFnInfo) fastpathEncMapUint64Uint64R(rv reflect.Value) {
  9159. fastpathTV.EncMapUint64Uint64V(rv.Interface().(map[uint64]uint64), fastpathCheckNilFalse, f.e)
  9160. }
  9161. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, checkNil bool, e *Encoder) {
  9162. ee := e.e
  9163. cr := e.cr
  9164. if checkNil && v == nil {
  9165. ee.EncodeNil()
  9166. return
  9167. }
  9168. ee.EncodeMapStart(len(v))
  9169. if e.h.Canonical {
  9170. v2 := make([]uint64, len(v))
  9171. var i int
  9172. for k, _ := range v {
  9173. v2[i] = uint64(k)
  9174. i++
  9175. }
  9176. sort.Sort(uintSlice(v2))
  9177. for _, k2 := range v2 {
  9178. if cr != nil {
  9179. cr.sendContainerState(containerMapKey)
  9180. }
  9181. ee.EncodeUint(uint64(uint64(k2)))
  9182. if cr != nil {
  9183. cr.sendContainerState(containerMapValue)
  9184. }
  9185. ee.EncodeUint(uint64(v[uint64(k2)]))
  9186. }
  9187. } else {
  9188. for k2, v2 := range v {
  9189. if cr != nil {
  9190. cr.sendContainerState(containerMapKey)
  9191. }
  9192. ee.EncodeUint(uint64(k2))
  9193. if cr != nil {
  9194. cr.sendContainerState(containerMapValue)
  9195. }
  9196. ee.EncodeUint(uint64(v2))
  9197. }
  9198. }
  9199. if cr != nil {
  9200. cr.sendContainerState(containerMapEnd)
  9201. }
  9202. }
  9203. func (f *encFnInfo) fastpathEncMapUint64UintptrR(rv reflect.Value) {
  9204. fastpathTV.EncMapUint64UintptrV(rv.Interface().(map[uint64]uintptr), fastpathCheckNilFalse, f.e)
  9205. }
  9206. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, checkNil bool, e *Encoder) {
  9207. ee := e.e
  9208. cr := e.cr
  9209. if checkNil && v == nil {
  9210. ee.EncodeNil()
  9211. return
  9212. }
  9213. ee.EncodeMapStart(len(v))
  9214. if e.h.Canonical {
  9215. v2 := make([]uint64, len(v))
  9216. var i int
  9217. for k, _ := range v {
  9218. v2[i] = uint64(k)
  9219. i++
  9220. }
  9221. sort.Sort(uintSlice(v2))
  9222. for _, k2 := range v2 {
  9223. if cr != nil {
  9224. cr.sendContainerState(containerMapKey)
  9225. }
  9226. ee.EncodeUint(uint64(uint64(k2)))
  9227. if cr != nil {
  9228. cr.sendContainerState(containerMapValue)
  9229. }
  9230. e.encode(v[uint64(k2)])
  9231. }
  9232. } else {
  9233. for k2, v2 := range v {
  9234. if cr != nil {
  9235. cr.sendContainerState(containerMapKey)
  9236. }
  9237. ee.EncodeUint(uint64(k2))
  9238. if cr != nil {
  9239. cr.sendContainerState(containerMapValue)
  9240. }
  9241. e.encode(v2)
  9242. }
  9243. }
  9244. if cr != nil {
  9245. cr.sendContainerState(containerMapEnd)
  9246. }
  9247. }
  9248. func (f *encFnInfo) fastpathEncMapUint64IntR(rv reflect.Value) {
  9249. fastpathTV.EncMapUint64IntV(rv.Interface().(map[uint64]int), fastpathCheckNilFalse, f.e)
  9250. }
  9251. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, checkNil bool, e *Encoder) {
  9252. ee := e.e
  9253. cr := e.cr
  9254. if checkNil && v == nil {
  9255. ee.EncodeNil()
  9256. return
  9257. }
  9258. ee.EncodeMapStart(len(v))
  9259. if e.h.Canonical {
  9260. v2 := make([]uint64, len(v))
  9261. var i int
  9262. for k, _ := range v {
  9263. v2[i] = uint64(k)
  9264. i++
  9265. }
  9266. sort.Sort(uintSlice(v2))
  9267. for _, k2 := range v2 {
  9268. if cr != nil {
  9269. cr.sendContainerState(containerMapKey)
  9270. }
  9271. ee.EncodeUint(uint64(uint64(k2)))
  9272. if cr != nil {
  9273. cr.sendContainerState(containerMapValue)
  9274. }
  9275. ee.EncodeInt(int64(v[uint64(k2)]))
  9276. }
  9277. } else {
  9278. for k2, v2 := range v {
  9279. if cr != nil {
  9280. cr.sendContainerState(containerMapKey)
  9281. }
  9282. ee.EncodeUint(uint64(k2))
  9283. if cr != nil {
  9284. cr.sendContainerState(containerMapValue)
  9285. }
  9286. ee.EncodeInt(int64(v2))
  9287. }
  9288. }
  9289. if cr != nil {
  9290. cr.sendContainerState(containerMapEnd)
  9291. }
  9292. }
  9293. func (f *encFnInfo) fastpathEncMapUint64Int8R(rv reflect.Value) {
  9294. fastpathTV.EncMapUint64Int8V(rv.Interface().(map[uint64]int8), fastpathCheckNilFalse, f.e)
  9295. }
  9296. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, checkNil bool, e *Encoder) {
  9297. ee := e.e
  9298. cr := e.cr
  9299. if checkNil && v == nil {
  9300. ee.EncodeNil()
  9301. return
  9302. }
  9303. ee.EncodeMapStart(len(v))
  9304. if e.h.Canonical {
  9305. v2 := make([]uint64, len(v))
  9306. var i int
  9307. for k, _ := range v {
  9308. v2[i] = uint64(k)
  9309. i++
  9310. }
  9311. sort.Sort(uintSlice(v2))
  9312. for _, k2 := range v2 {
  9313. if cr != nil {
  9314. cr.sendContainerState(containerMapKey)
  9315. }
  9316. ee.EncodeUint(uint64(uint64(k2)))
  9317. if cr != nil {
  9318. cr.sendContainerState(containerMapValue)
  9319. }
  9320. ee.EncodeInt(int64(v[uint64(k2)]))
  9321. }
  9322. } else {
  9323. for k2, v2 := range v {
  9324. if cr != nil {
  9325. cr.sendContainerState(containerMapKey)
  9326. }
  9327. ee.EncodeUint(uint64(k2))
  9328. if cr != nil {
  9329. cr.sendContainerState(containerMapValue)
  9330. }
  9331. ee.EncodeInt(int64(v2))
  9332. }
  9333. }
  9334. if cr != nil {
  9335. cr.sendContainerState(containerMapEnd)
  9336. }
  9337. }
  9338. func (f *encFnInfo) fastpathEncMapUint64Int16R(rv reflect.Value) {
  9339. fastpathTV.EncMapUint64Int16V(rv.Interface().(map[uint64]int16), fastpathCheckNilFalse, f.e)
  9340. }
  9341. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, checkNil bool, e *Encoder) {
  9342. ee := e.e
  9343. cr := e.cr
  9344. if checkNil && v == nil {
  9345. ee.EncodeNil()
  9346. return
  9347. }
  9348. ee.EncodeMapStart(len(v))
  9349. if e.h.Canonical {
  9350. v2 := make([]uint64, len(v))
  9351. var i int
  9352. for k, _ := range v {
  9353. v2[i] = uint64(k)
  9354. i++
  9355. }
  9356. sort.Sort(uintSlice(v2))
  9357. for _, k2 := range v2 {
  9358. if cr != nil {
  9359. cr.sendContainerState(containerMapKey)
  9360. }
  9361. ee.EncodeUint(uint64(uint64(k2)))
  9362. if cr != nil {
  9363. cr.sendContainerState(containerMapValue)
  9364. }
  9365. ee.EncodeInt(int64(v[uint64(k2)]))
  9366. }
  9367. } else {
  9368. for k2, v2 := range v {
  9369. if cr != nil {
  9370. cr.sendContainerState(containerMapKey)
  9371. }
  9372. ee.EncodeUint(uint64(k2))
  9373. if cr != nil {
  9374. cr.sendContainerState(containerMapValue)
  9375. }
  9376. ee.EncodeInt(int64(v2))
  9377. }
  9378. }
  9379. if cr != nil {
  9380. cr.sendContainerState(containerMapEnd)
  9381. }
  9382. }
  9383. func (f *encFnInfo) fastpathEncMapUint64Int32R(rv reflect.Value) {
  9384. fastpathTV.EncMapUint64Int32V(rv.Interface().(map[uint64]int32), fastpathCheckNilFalse, f.e)
  9385. }
  9386. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, checkNil bool, e *Encoder) {
  9387. ee := e.e
  9388. cr := e.cr
  9389. if checkNil && v == nil {
  9390. ee.EncodeNil()
  9391. return
  9392. }
  9393. ee.EncodeMapStart(len(v))
  9394. if e.h.Canonical {
  9395. v2 := make([]uint64, len(v))
  9396. var i int
  9397. for k, _ := range v {
  9398. v2[i] = uint64(k)
  9399. i++
  9400. }
  9401. sort.Sort(uintSlice(v2))
  9402. for _, k2 := range v2 {
  9403. if cr != nil {
  9404. cr.sendContainerState(containerMapKey)
  9405. }
  9406. ee.EncodeUint(uint64(uint64(k2)))
  9407. if cr != nil {
  9408. cr.sendContainerState(containerMapValue)
  9409. }
  9410. ee.EncodeInt(int64(v[uint64(k2)]))
  9411. }
  9412. } else {
  9413. for k2, v2 := range v {
  9414. if cr != nil {
  9415. cr.sendContainerState(containerMapKey)
  9416. }
  9417. ee.EncodeUint(uint64(k2))
  9418. if cr != nil {
  9419. cr.sendContainerState(containerMapValue)
  9420. }
  9421. ee.EncodeInt(int64(v2))
  9422. }
  9423. }
  9424. if cr != nil {
  9425. cr.sendContainerState(containerMapEnd)
  9426. }
  9427. }
  9428. func (f *encFnInfo) fastpathEncMapUint64Int64R(rv reflect.Value) {
  9429. fastpathTV.EncMapUint64Int64V(rv.Interface().(map[uint64]int64), fastpathCheckNilFalse, f.e)
  9430. }
  9431. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, checkNil bool, e *Encoder) {
  9432. ee := e.e
  9433. cr := e.cr
  9434. if checkNil && v == nil {
  9435. ee.EncodeNil()
  9436. return
  9437. }
  9438. ee.EncodeMapStart(len(v))
  9439. if e.h.Canonical {
  9440. v2 := make([]uint64, len(v))
  9441. var i int
  9442. for k, _ := range v {
  9443. v2[i] = uint64(k)
  9444. i++
  9445. }
  9446. sort.Sort(uintSlice(v2))
  9447. for _, k2 := range v2 {
  9448. if cr != nil {
  9449. cr.sendContainerState(containerMapKey)
  9450. }
  9451. ee.EncodeUint(uint64(uint64(k2)))
  9452. if cr != nil {
  9453. cr.sendContainerState(containerMapValue)
  9454. }
  9455. ee.EncodeInt(int64(v[uint64(k2)]))
  9456. }
  9457. } else {
  9458. for k2, v2 := range v {
  9459. if cr != nil {
  9460. cr.sendContainerState(containerMapKey)
  9461. }
  9462. ee.EncodeUint(uint64(k2))
  9463. if cr != nil {
  9464. cr.sendContainerState(containerMapValue)
  9465. }
  9466. ee.EncodeInt(int64(v2))
  9467. }
  9468. }
  9469. if cr != nil {
  9470. cr.sendContainerState(containerMapEnd)
  9471. }
  9472. }
  9473. func (f *encFnInfo) fastpathEncMapUint64Float32R(rv reflect.Value) {
  9474. fastpathTV.EncMapUint64Float32V(rv.Interface().(map[uint64]float32), fastpathCheckNilFalse, f.e)
  9475. }
  9476. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, checkNil bool, e *Encoder) {
  9477. ee := e.e
  9478. cr := e.cr
  9479. if checkNil && v == nil {
  9480. ee.EncodeNil()
  9481. return
  9482. }
  9483. ee.EncodeMapStart(len(v))
  9484. if e.h.Canonical {
  9485. v2 := make([]uint64, len(v))
  9486. var i int
  9487. for k, _ := range v {
  9488. v2[i] = uint64(k)
  9489. i++
  9490. }
  9491. sort.Sort(uintSlice(v2))
  9492. for _, k2 := range v2 {
  9493. if cr != nil {
  9494. cr.sendContainerState(containerMapKey)
  9495. }
  9496. ee.EncodeUint(uint64(uint64(k2)))
  9497. if cr != nil {
  9498. cr.sendContainerState(containerMapValue)
  9499. }
  9500. ee.EncodeFloat32(v[uint64(k2)])
  9501. }
  9502. } else {
  9503. for k2, v2 := range v {
  9504. if cr != nil {
  9505. cr.sendContainerState(containerMapKey)
  9506. }
  9507. ee.EncodeUint(uint64(k2))
  9508. if cr != nil {
  9509. cr.sendContainerState(containerMapValue)
  9510. }
  9511. ee.EncodeFloat32(v2)
  9512. }
  9513. }
  9514. if cr != nil {
  9515. cr.sendContainerState(containerMapEnd)
  9516. }
  9517. }
  9518. func (f *encFnInfo) fastpathEncMapUint64Float64R(rv reflect.Value) {
  9519. fastpathTV.EncMapUint64Float64V(rv.Interface().(map[uint64]float64), fastpathCheckNilFalse, f.e)
  9520. }
  9521. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, checkNil bool, e *Encoder) {
  9522. ee := e.e
  9523. cr := e.cr
  9524. if checkNil && v == nil {
  9525. ee.EncodeNil()
  9526. return
  9527. }
  9528. ee.EncodeMapStart(len(v))
  9529. if e.h.Canonical {
  9530. v2 := make([]uint64, len(v))
  9531. var i int
  9532. for k, _ := range v {
  9533. v2[i] = uint64(k)
  9534. i++
  9535. }
  9536. sort.Sort(uintSlice(v2))
  9537. for _, k2 := range v2 {
  9538. if cr != nil {
  9539. cr.sendContainerState(containerMapKey)
  9540. }
  9541. ee.EncodeUint(uint64(uint64(k2)))
  9542. if cr != nil {
  9543. cr.sendContainerState(containerMapValue)
  9544. }
  9545. ee.EncodeFloat64(v[uint64(k2)])
  9546. }
  9547. } else {
  9548. for k2, v2 := range v {
  9549. if cr != nil {
  9550. cr.sendContainerState(containerMapKey)
  9551. }
  9552. ee.EncodeUint(uint64(k2))
  9553. if cr != nil {
  9554. cr.sendContainerState(containerMapValue)
  9555. }
  9556. ee.EncodeFloat64(v2)
  9557. }
  9558. }
  9559. if cr != nil {
  9560. cr.sendContainerState(containerMapEnd)
  9561. }
  9562. }
  9563. func (f *encFnInfo) fastpathEncMapUint64BoolR(rv reflect.Value) {
  9564. fastpathTV.EncMapUint64BoolV(rv.Interface().(map[uint64]bool), fastpathCheckNilFalse, f.e)
  9565. }
  9566. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, checkNil bool, e *Encoder) {
  9567. ee := e.e
  9568. cr := e.cr
  9569. if checkNil && v == nil {
  9570. ee.EncodeNil()
  9571. return
  9572. }
  9573. ee.EncodeMapStart(len(v))
  9574. if e.h.Canonical {
  9575. v2 := make([]uint64, len(v))
  9576. var i int
  9577. for k, _ := range v {
  9578. v2[i] = uint64(k)
  9579. i++
  9580. }
  9581. sort.Sort(uintSlice(v2))
  9582. for _, k2 := range v2 {
  9583. if cr != nil {
  9584. cr.sendContainerState(containerMapKey)
  9585. }
  9586. ee.EncodeUint(uint64(uint64(k2)))
  9587. if cr != nil {
  9588. cr.sendContainerState(containerMapValue)
  9589. }
  9590. ee.EncodeBool(v[uint64(k2)])
  9591. }
  9592. } else {
  9593. for k2, v2 := range v {
  9594. if cr != nil {
  9595. cr.sendContainerState(containerMapKey)
  9596. }
  9597. ee.EncodeUint(uint64(k2))
  9598. if cr != nil {
  9599. cr.sendContainerState(containerMapValue)
  9600. }
  9601. ee.EncodeBool(v2)
  9602. }
  9603. }
  9604. if cr != nil {
  9605. cr.sendContainerState(containerMapEnd)
  9606. }
  9607. }
  9608. func (f *encFnInfo) fastpathEncMapUintptrIntfR(rv reflect.Value) {
  9609. fastpathTV.EncMapUintptrIntfV(rv.Interface().(map[uintptr]interface{}), fastpathCheckNilFalse, f.e)
  9610. }
  9611. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, checkNil bool, e *Encoder) {
  9612. ee := e.e
  9613. cr := e.cr
  9614. if checkNil && v == nil {
  9615. ee.EncodeNil()
  9616. return
  9617. }
  9618. ee.EncodeMapStart(len(v))
  9619. if e.h.Canonical {
  9620. v2 := make([]uint64, len(v))
  9621. var i int
  9622. for k, _ := range v {
  9623. v2[i] = uint64(k)
  9624. i++
  9625. }
  9626. sort.Sort(uintSlice(v2))
  9627. for _, k2 := range v2 {
  9628. if cr != nil {
  9629. cr.sendContainerState(containerMapKey)
  9630. }
  9631. e.encode(uintptr(k2))
  9632. if cr != nil {
  9633. cr.sendContainerState(containerMapValue)
  9634. }
  9635. e.encode(v[uintptr(k2)])
  9636. }
  9637. } else {
  9638. for k2, v2 := range v {
  9639. if cr != nil {
  9640. cr.sendContainerState(containerMapKey)
  9641. }
  9642. e.encode(k2)
  9643. if cr != nil {
  9644. cr.sendContainerState(containerMapValue)
  9645. }
  9646. e.encode(v2)
  9647. }
  9648. }
  9649. if cr != nil {
  9650. cr.sendContainerState(containerMapEnd)
  9651. }
  9652. }
  9653. func (f *encFnInfo) fastpathEncMapUintptrStringR(rv reflect.Value) {
  9654. fastpathTV.EncMapUintptrStringV(rv.Interface().(map[uintptr]string), fastpathCheckNilFalse, f.e)
  9655. }
  9656. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, checkNil bool, e *Encoder) {
  9657. ee := e.e
  9658. cr := e.cr
  9659. if checkNil && v == nil {
  9660. ee.EncodeNil()
  9661. return
  9662. }
  9663. ee.EncodeMapStart(len(v))
  9664. if e.h.Canonical {
  9665. v2 := make([]uint64, len(v))
  9666. var i int
  9667. for k, _ := range v {
  9668. v2[i] = uint64(k)
  9669. i++
  9670. }
  9671. sort.Sort(uintSlice(v2))
  9672. for _, k2 := range v2 {
  9673. if cr != nil {
  9674. cr.sendContainerState(containerMapKey)
  9675. }
  9676. e.encode(uintptr(k2))
  9677. if cr != nil {
  9678. cr.sendContainerState(containerMapValue)
  9679. }
  9680. ee.EncodeString(c_UTF8, v[uintptr(k2)])
  9681. }
  9682. } else {
  9683. for k2, v2 := range v {
  9684. if cr != nil {
  9685. cr.sendContainerState(containerMapKey)
  9686. }
  9687. e.encode(k2)
  9688. if cr != nil {
  9689. cr.sendContainerState(containerMapValue)
  9690. }
  9691. ee.EncodeString(c_UTF8, v2)
  9692. }
  9693. }
  9694. if cr != nil {
  9695. cr.sendContainerState(containerMapEnd)
  9696. }
  9697. }
  9698. func (f *encFnInfo) fastpathEncMapUintptrUintR(rv reflect.Value) {
  9699. fastpathTV.EncMapUintptrUintV(rv.Interface().(map[uintptr]uint), fastpathCheckNilFalse, f.e)
  9700. }
  9701. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, checkNil bool, e *Encoder) {
  9702. ee := e.e
  9703. cr := e.cr
  9704. if checkNil && v == nil {
  9705. ee.EncodeNil()
  9706. return
  9707. }
  9708. ee.EncodeMapStart(len(v))
  9709. if e.h.Canonical {
  9710. v2 := make([]uint64, len(v))
  9711. var i int
  9712. for k, _ := range v {
  9713. v2[i] = uint64(k)
  9714. i++
  9715. }
  9716. sort.Sort(uintSlice(v2))
  9717. for _, k2 := range v2 {
  9718. if cr != nil {
  9719. cr.sendContainerState(containerMapKey)
  9720. }
  9721. e.encode(uintptr(k2))
  9722. if cr != nil {
  9723. cr.sendContainerState(containerMapValue)
  9724. }
  9725. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9726. }
  9727. } else {
  9728. for k2, v2 := range v {
  9729. if cr != nil {
  9730. cr.sendContainerState(containerMapKey)
  9731. }
  9732. e.encode(k2)
  9733. if cr != nil {
  9734. cr.sendContainerState(containerMapValue)
  9735. }
  9736. ee.EncodeUint(uint64(v2))
  9737. }
  9738. }
  9739. if cr != nil {
  9740. cr.sendContainerState(containerMapEnd)
  9741. }
  9742. }
  9743. func (f *encFnInfo) fastpathEncMapUintptrUint8R(rv reflect.Value) {
  9744. fastpathTV.EncMapUintptrUint8V(rv.Interface().(map[uintptr]uint8), fastpathCheckNilFalse, f.e)
  9745. }
  9746. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, checkNil bool, e *Encoder) {
  9747. ee := e.e
  9748. cr := e.cr
  9749. if checkNil && v == nil {
  9750. ee.EncodeNil()
  9751. return
  9752. }
  9753. ee.EncodeMapStart(len(v))
  9754. if e.h.Canonical {
  9755. v2 := make([]uint64, len(v))
  9756. var i int
  9757. for k, _ := range v {
  9758. v2[i] = uint64(k)
  9759. i++
  9760. }
  9761. sort.Sort(uintSlice(v2))
  9762. for _, k2 := range v2 {
  9763. if cr != nil {
  9764. cr.sendContainerState(containerMapKey)
  9765. }
  9766. e.encode(uintptr(k2))
  9767. if cr != nil {
  9768. cr.sendContainerState(containerMapValue)
  9769. }
  9770. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9771. }
  9772. } else {
  9773. for k2, v2 := range v {
  9774. if cr != nil {
  9775. cr.sendContainerState(containerMapKey)
  9776. }
  9777. e.encode(k2)
  9778. if cr != nil {
  9779. cr.sendContainerState(containerMapValue)
  9780. }
  9781. ee.EncodeUint(uint64(v2))
  9782. }
  9783. }
  9784. if cr != nil {
  9785. cr.sendContainerState(containerMapEnd)
  9786. }
  9787. }
  9788. func (f *encFnInfo) fastpathEncMapUintptrUint16R(rv reflect.Value) {
  9789. fastpathTV.EncMapUintptrUint16V(rv.Interface().(map[uintptr]uint16), fastpathCheckNilFalse, f.e)
  9790. }
  9791. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, checkNil bool, e *Encoder) {
  9792. ee := e.e
  9793. cr := e.cr
  9794. if checkNil && v == nil {
  9795. ee.EncodeNil()
  9796. return
  9797. }
  9798. ee.EncodeMapStart(len(v))
  9799. if e.h.Canonical {
  9800. v2 := make([]uint64, len(v))
  9801. var i int
  9802. for k, _ := range v {
  9803. v2[i] = uint64(k)
  9804. i++
  9805. }
  9806. sort.Sort(uintSlice(v2))
  9807. for _, k2 := range v2 {
  9808. if cr != nil {
  9809. cr.sendContainerState(containerMapKey)
  9810. }
  9811. e.encode(uintptr(k2))
  9812. if cr != nil {
  9813. cr.sendContainerState(containerMapValue)
  9814. }
  9815. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9816. }
  9817. } else {
  9818. for k2, v2 := range v {
  9819. if cr != nil {
  9820. cr.sendContainerState(containerMapKey)
  9821. }
  9822. e.encode(k2)
  9823. if cr != nil {
  9824. cr.sendContainerState(containerMapValue)
  9825. }
  9826. ee.EncodeUint(uint64(v2))
  9827. }
  9828. }
  9829. if cr != nil {
  9830. cr.sendContainerState(containerMapEnd)
  9831. }
  9832. }
  9833. func (f *encFnInfo) fastpathEncMapUintptrUint32R(rv reflect.Value) {
  9834. fastpathTV.EncMapUintptrUint32V(rv.Interface().(map[uintptr]uint32), fastpathCheckNilFalse, f.e)
  9835. }
  9836. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, checkNil bool, e *Encoder) {
  9837. ee := e.e
  9838. cr := e.cr
  9839. if checkNil && v == nil {
  9840. ee.EncodeNil()
  9841. return
  9842. }
  9843. ee.EncodeMapStart(len(v))
  9844. if e.h.Canonical {
  9845. v2 := make([]uint64, len(v))
  9846. var i int
  9847. for k, _ := range v {
  9848. v2[i] = uint64(k)
  9849. i++
  9850. }
  9851. sort.Sort(uintSlice(v2))
  9852. for _, k2 := range v2 {
  9853. if cr != nil {
  9854. cr.sendContainerState(containerMapKey)
  9855. }
  9856. e.encode(uintptr(k2))
  9857. if cr != nil {
  9858. cr.sendContainerState(containerMapValue)
  9859. }
  9860. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9861. }
  9862. } else {
  9863. for k2, v2 := range v {
  9864. if cr != nil {
  9865. cr.sendContainerState(containerMapKey)
  9866. }
  9867. e.encode(k2)
  9868. if cr != nil {
  9869. cr.sendContainerState(containerMapValue)
  9870. }
  9871. ee.EncodeUint(uint64(v2))
  9872. }
  9873. }
  9874. if cr != nil {
  9875. cr.sendContainerState(containerMapEnd)
  9876. }
  9877. }
  9878. func (f *encFnInfo) fastpathEncMapUintptrUint64R(rv reflect.Value) {
  9879. fastpathTV.EncMapUintptrUint64V(rv.Interface().(map[uintptr]uint64), fastpathCheckNilFalse, f.e)
  9880. }
  9881. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, checkNil bool, e *Encoder) {
  9882. ee := e.e
  9883. cr := e.cr
  9884. if checkNil && v == nil {
  9885. ee.EncodeNil()
  9886. return
  9887. }
  9888. ee.EncodeMapStart(len(v))
  9889. if e.h.Canonical {
  9890. v2 := make([]uint64, len(v))
  9891. var i int
  9892. for k, _ := range v {
  9893. v2[i] = uint64(k)
  9894. i++
  9895. }
  9896. sort.Sort(uintSlice(v2))
  9897. for _, k2 := range v2 {
  9898. if cr != nil {
  9899. cr.sendContainerState(containerMapKey)
  9900. }
  9901. e.encode(uintptr(k2))
  9902. if cr != nil {
  9903. cr.sendContainerState(containerMapValue)
  9904. }
  9905. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9906. }
  9907. } else {
  9908. for k2, v2 := range v {
  9909. if cr != nil {
  9910. cr.sendContainerState(containerMapKey)
  9911. }
  9912. e.encode(k2)
  9913. if cr != nil {
  9914. cr.sendContainerState(containerMapValue)
  9915. }
  9916. ee.EncodeUint(uint64(v2))
  9917. }
  9918. }
  9919. if cr != nil {
  9920. cr.sendContainerState(containerMapEnd)
  9921. }
  9922. }
  9923. func (f *encFnInfo) fastpathEncMapUintptrUintptrR(rv reflect.Value) {
  9924. fastpathTV.EncMapUintptrUintptrV(rv.Interface().(map[uintptr]uintptr), fastpathCheckNilFalse, f.e)
  9925. }
  9926. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, checkNil bool, e *Encoder) {
  9927. ee := e.e
  9928. cr := e.cr
  9929. if checkNil && v == nil {
  9930. ee.EncodeNil()
  9931. return
  9932. }
  9933. ee.EncodeMapStart(len(v))
  9934. if e.h.Canonical {
  9935. v2 := make([]uint64, len(v))
  9936. var i int
  9937. for k, _ := range v {
  9938. v2[i] = uint64(k)
  9939. i++
  9940. }
  9941. sort.Sort(uintSlice(v2))
  9942. for _, k2 := range v2 {
  9943. if cr != nil {
  9944. cr.sendContainerState(containerMapKey)
  9945. }
  9946. e.encode(uintptr(k2))
  9947. if cr != nil {
  9948. cr.sendContainerState(containerMapValue)
  9949. }
  9950. e.encode(v[uintptr(k2)])
  9951. }
  9952. } else {
  9953. for k2, v2 := range v {
  9954. if cr != nil {
  9955. cr.sendContainerState(containerMapKey)
  9956. }
  9957. e.encode(k2)
  9958. if cr != nil {
  9959. cr.sendContainerState(containerMapValue)
  9960. }
  9961. e.encode(v2)
  9962. }
  9963. }
  9964. if cr != nil {
  9965. cr.sendContainerState(containerMapEnd)
  9966. }
  9967. }
  9968. func (f *encFnInfo) fastpathEncMapUintptrIntR(rv reflect.Value) {
  9969. fastpathTV.EncMapUintptrIntV(rv.Interface().(map[uintptr]int), fastpathCheckNilFalse, f.e)
  9970. }
  9971. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, checkNil bool, e *Encoder) {
  9972. ee := e.e
  9973. cr := e.cr
  9974. if checkNil && v == nil {
  9975. ee.EncodeNil()
  9976. return
  9977. }
  9978. ee.EncodeMapStart(len(v))
  9979. if e.h.Canonical {
  9980. v2 := make([]uint64, len(v))
  9981. var i int
  9982. for k, _ := range v {
  9983. v2[i] = uint64(k)
  9984. i++
  9985. }
  9986. sort.Sort(uintSlice(v2))
  9987. for _, k2 := range v2 {
  9988. if cr != nil {
  9989. cr.sendContainerState(containerMapKey)
  9990. }
  9991. e.encode(uintptr(k2))
  9992. if cr != nil {
  9993. cr.sendContainerState(containerMapValue)
  9994. }
  9995. ee.EncodeInt(int64(v[uintptr(k2)]))
  9996. }
  9997. } else {
  9998. for k2, v2 := range v {
  9999. if cr != nil {
  10000. cr.sendContainerState(containerMapKey)
  10001. }
  10002. e.encode(k2)
  10003. if cr != nil {
  10004. cr.sendContainerState(containerMapValue)
  10005. }
  10006. ee.EncodeInt(int64(v2))
  10007. }
  10008. }
  10009. if cr != nil {
  10010. cr.sendContainerState(containerMapEnd)
  10011. }
  10012. }
  10013. func (f *encFnInfo) fastpathEncMapUintptrInt8R(rv reflect.Value) {
  10014. fastpathTV.EncMapUintptrInt8V(rv.Interface().(map[uintptr]int8), fastpathCheckNilFalse, f.e)
  10015. }
  10016. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, checkNil bool, e *Encoder) {
  10017. ee := e.e
  10018. cr := e.cr
  10019. if checkNil && v == nil {
  10020. ee.EncodeNil()
  10021. return
  10022. }
  10023. ee.EncodeMapStart(len(v))
  10024. if e.h.Canonical {
  10025. v2 := make([]uint64, len(v))
  10026. var i int
  10027. for k, _ := range v {
  10028. v2[i] = uint64(k)
  10029. i++
  10030. }
  10031. sort.Sort(uintSlice(v2))
  10032. for _, k2 := range v2 {
  10033. if cr != nil {
  10034. cr.sendContainerState(containerMapKey)
  10035. }
  10036. e.encode(uintptr(k2))
  10037. if cr != nil {
  10038. cr.sendContainerState(containerMapValue)
  10039. }
  10040. ee.EncodeInt(int64(v[uintptr(k2)]))
  10041. }
  10042. } else {
  10043. for k2, v2 := range v {
  10044. if cr != nil {
  10045. cr.sendContainerState(containerMapKey)
  10046. }
  10047. e.encode(k2)
  10048. if cr != nil {
  10049. cr.sendContainerState(containerMapValue)
  10050. }
  10051. ee.EncodeInt(int64(v2))
  10052. }
  10053. }
  10054. if cr != nil {
  10055. cr.sendContainerState(containerMapEnd)
  10056. }
  10057. }
  10058. func (f *encFnInfo) fastpathEncMapUintptrInt16R(rv reflect.Value) {
  10059. fastpathTV.EncMapUintptrInt16V(rv.Interface().(map[uintptr]int16), fastpathCheckNilFalse, f.e)
  10060. }
  10061. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, checkNil bool, e *Encoder) {
  10062. ee := e.e
  10063. cr := e.cr
  10064. if checkNil && v == nil {
  10065. ee.EncodeNil()
  10066. return
  10067. }
  10068. ee.EncodeMapStart(len(v))
  10069. if e.h.Canonical {
  10070. v2 := make([]uint64, len(v))
  10071. var i int
  10072. for k, _ := range v {
  10073. v2[i] = uint64(k)
  10074. i++
  10075. }
  10076. sort.Sort(uintSlice(v2))
  10077. for _, k2 := range v2 {
  10078. if cr != nil {
  10079. cr.sendContainerState(containerMapKey)
  10080. }
  10081. e.encode(uintptr(k2))
  10082. if cr != nil {
  10083. cr.sendContainerState(containerMapValue)
  10084. }
  10085. ee.EncodeInt(int64(v[uintptr(k2)]))
  10086. }
  10087. } else {
  10088. for k2, v2 := range v {
  10089. if cr != nil {
  10090. cr.sendContainerState(containerMapKey)
  10091. }
  10092. e.encode(k2)
  10093. if cr != nil {
  10094. cr.sendContainerState(containerMapValue)
  10095. }
  10096. ee.EncodeInt(int64(v2))
  10097. }
  10098. }
  10099. if cr != nil {
  10100. cr.sendContainerState(containerMapEnd)
  10101. }
  10102. }
  10103. func (f *encFnInfo) fastpathEncMapUintptrInt32R(rv reflect.Value) {
  10104. fastpathTV.EncMapUintptrInt32V(rv.Interface().(map[uintptr]int32), fastpathCheckNilFalse, f.e)
  10105. }
  10106. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, checkNil bool, e *Encoder) {
  10107. ee := e.e
  10108. cr := e.cr
  10109. if checkNil && v == nil {
  10110. ee.EncodeNil()
  10111. return
  10112. }
  10113. ee.EncodeMapStart(len(v))
  10114. if e.h.Canonical {
  10115. v2 := make([]uint64, len(v))
  10116. var i int
  10117. for k, _ := range v {
  10118. v2[i] = uint64(k)
  10119. i++
  10120. }
  10121. sort.Sort(uintSlice(v2))
  10122. for _, k2 := range v2 {
  10123. if cr != nil {
  10124. cr.sendContainerState(containerMapKey)
  10125. }
  10126. e.encode(uintptr(k2))
  10127. if cr != nil {
  10128. cr.sendContainerState(containerMapValue)
  10129. }
  10130. ee.EncodeInt(int64(v[uintptr(k2)]))
  10131. }
  10132. } else {
  10133. for k2, v2 := range v {
  10134. if cr != nil {
  10135. cr.sendContainerState(containerMapKey)
  10136. }
  10137. e.encode(k2)
  10138. if cr != nil {
  10139. cr.sendContainerState(containerMapValue)
  10140. }
  10141. ee.EncodeInt(int64(v2))
  10142. }
  10143. }
  10144. if cr != nil {
  10145. cr.sendContainerState(containerMapEnd)
  10146. }
  10147. }
  10148. func (f *encFnInfo) fastpathEncMapUintptrInt64R(rv reflect.Value) {
  10149. fastpathTV.EncMapUintptrInt64V(rv.Interface().(map[uintptr]int64), fastpathCheckNilFalse, f.e)
  10150. }
  10151. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, checkNil bool, e *Encoder) {
  10152. ee := e.e
  10153. cr := e.cr
  10154. if checkNil && v == nil {
  10155. ee.EncodeNil()
  10156. return
  10157. }
  10158. ee.EncodeMapStart(len(v))
  10159. if e.h.Canonical {
  10160. v2 := make([]uint64, len(v))
  10161. var i int
  10162. for k, _ := range v {
  10163. v2[i] = uint64(k)
  10164. i++
  10165. }
  10166. sort.Sort(uintSlice(v2))
  10167. for _, k2 := range v2 {
  10168. if cr != nil {
  10169. cr.sendContainerState(containerMapKey)
  10170. }
  10171. e.encode(uintptr(k2))
  10172. if cr != nil {
  10173. cr.sendContainerState(containerMapValue)
  10174. }
  10175. ee.EncodeInt(int64(v[uintptr(k2)]))
  10176. }
  10177. } else {
  10178. for k2, v2 := range v {
  10179. if cr != nil {
  10180. cr.sendContainerState(containerMapKey)
  10181. }
  10182. e.encode(k2)
  10183. if cr != nil {
  10184. cr.sendContainerState(containerMapValue)
  10185. }
  10186. ee.EncodeInt(int64(v2))
  10187. }
  10188. }
  10189. if cr != nil {
  10190. cr.sendContainerState(containerMapEnd)
  10191. }
  10192. }
  10193. func (f *encFnInfo) fastpathEncMapUintptrFloat32R(rv reflect.Value) {
  10194. fastpathTV.EncMapUintptrFloat32V(rv.Interface().(map[uintptr]float32), fastpathCheckNilFalse, f.e)
  10195. }
  10196. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, checkNil bool, e *Encoder) {
  10197. ee := e.e
  10198. cr := e.cr
  10199. if checkNil && v == nil {
  10200. ee.EncodeNil()
  10201. return
  10202. }
  10203. ee.EncodeMapStart(len(v))
  10204. if e.h.Canonical {
  10205. v2 := make([]uint64, len(v))
  10206. var i int
  10207. for k, _ := range v {
  10208. v2[i] = uint64(k)
  10209. i++
  10210. }
  10211. sort.Sort(uintSlice(v2))
  10212. for _, k2 := range v2 {
  10213. if cr != nil {
  10214. cr.sendContainerState(containerMapKey)
  10215. }
  10216. e.encode(uintptr(k2))
  10217. if cr != nil {
  10218. cr.sendContainerState(containerMapValue)
  10219. }
  10220. ee.EncodeFloat32(v[uintptr(k2)])
  10221. }
  10222. } else {
  10223. for k2, v2 := range v {
  10224. if cr != nil {
  10225. cr.sendContainerState(containerMapKey)
  10226. }
  10227. e.encode(k2)
  10228. if cr != nil {
  10229. cr.sendContainerState(containerMapValue)
  10230. }
  10231. ee.EncodeFloat32(v2)
  10232. }
  10233. }
  10234. if cr != nil {
  10235. cr.sendContainerState(containerMapEnd)
  10236. }
  10237. }
  10238. func (f *encFnInfo) fastpathEncMapUintptrFloat64R(rv reflect.Value) {
  10239. fastpathTV.EncMapUintptrFloat64V(rv.Interface().(map[uintptr]float64), fastpathCheckNilFalse, f.e)
  10240. }
  10241. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, checkNil bool, e *Encoder) {
  10242. ee := e.e
  10243. cr := e.cr
  10244. if checkNil && v == nil {
  10245. ee.EncodeNil()
  10246. return
  10247. }
  10248. ee.EncodeMapStart(len(v))
  10249. if e.h.Canonical {
  10250. v2 := make([]uint64, len(v))
  10251. var i int
  10252. for k, _ := range v {
  10253. v2[i] = uint64(k)
  10254. i++
  10255. }
  10256. sort.Sort(uintSlice(v2))
  10257. for _, k2 := range v2 {
  10258. if cr != nil {
  10259. cr.sendContainerState(containerMapKey)
  10260. }
  10261. e.encode(uintptr(k2))
  10262. if cr != nil {
  10263. cr.sendContainerState(containerMapValue)
  10264. }
  10265. ee.EncodeFloat64(v[uintptr(k2)])
  10266. }
  10267. } else {
  10268. for k2, v2 := range v {
  10269. if cr != nil {
  10270. cr.sendContainerState(containerMapKey)
  10271. }
  10272. e.encode(k2)
  10273. if cr != nil {
  10274. cr.sendContainerState(containerMapValue)
  10275. }
  10276. ee.EncodeFloat64(v2)
  10277. }
  10278. }
  10279. if cr != nil {
  10280. cr.sendContainerState(containerMapEnd)
  10281. }
  10282. }
  10283. func (f *encFnInfo) fastpathEncMapUintptrBoolR(rv reflect.Value) {
  10284. fastpathTV.EncMapUintptrBoolV(rv.Interface().(map[uintptr]bool), fastpathCheckNilFalse, f.e)
  10285. }
  10286. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, checkNil bool, e *Encoder) {
  10287. ee := e.e
  10288. cr := e.cr
  10289. if checkNil && v == nil {
  10290. ee.EncodeNil()
  10291. return
  10292. }
  10293. ee.EncodeMapStart(len(v))
  10294. if e.h.Canonical {
  10295. v2 := make([]uint64, len(v))
  10296. var i int
  10297. for k, _ := range v {
  10298. v2[i] = uint64(k)
  10299. i++
  10300. }
  10301. sort.Sort(uintSlice(v2))
  10302. for _, k2 := range v2 {
  10303. if cr != nil {
  10304. cr.sendContainerState(containerMapKey)
  10305. }
  10306. e.encode(uintptr(k2))
  10307. if cr != nil {
  10308. cr.sendContainerState(containerMapValue)
  10309. }
  10310. ee.EncodeBool(v[uintptr(k2)])
  10311. }
  10312. } else {
  10313. for k2, v2 := range v {
  10314. if cr != nil {
  10315. cr.sendContainerState(containerMapKey)
  10316. }
  10317. e.encode(k2)
  10318. if cr != nil {
  10319. cr.sendContainerState(containerMapValue)
  10320. }
  10321. ee.EncodeBool(v2)
  10322. }
  10323. }
  10324. if cr != nil {
  10325. cr.sendContainerState(containerMapEnd)
  10326. }
  10327. }
  10328. func (f *encFnInfo) fastpathEncMapIntIntfR(rv reflect.Value) {
  10329. fastpathTV.EncMapIntIntfV(rv.Interface().(map[int]interface{}), fastpathCheckNilFalse, f.e)
  10330. }
  10331. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, checkNil bool, e *Encoder) {
  10332. ee := e.e
  10333. cr := e.cr
  10334. if checkNil && v == nil {
  10335. ee.EncodeNil()
  10336. return
  10337. }
  10338. ee.EncodeMapStart(len(v))
  10339. if e.h.Canonical {
  10340. v2 := make([]int64, len(v))
  10341. var i int
  10342. for k, _ := range v {
  10343. v2[i] = int64(k)
  10344. i++
  10345. }
  10346. sort.Sort(intSlice(v2))
  10347. for _, k2 := range v2 {
  10348. if cr != nil {
  10349. cr.sendContainerState(containerMapKey)
  10350. }
  10351. ee.EncodeInt(int64(int(k2)))
  10352. if cr != nil {
  10353. cr.sendContainerState(containerMapValue)
  10354. }
  10355. e.encode(v[int(k2)])
  10356. }
  10357. } else {
  10358. for k2, v2 := range v {
  10359. if cr != nil {
  10360. cr.sendContainerState(containerMapKey)
  10361. }
  10362. ee.EncodeInt(int64(k2))
  10363. if cr != nil {
  10364. cr.sendContainerState(containerMapValue)
  10365. }
  10366. e.encode(v2)
  10367. }
  10368. }
  10369. if cr != nil {
  10370. cr.sendContainerState(containerMapEnd)
  10371. }
  10372. }
  10373. func (f *encFnInfo) fastpathEncMapIntStringR(rv reflect.Value) {
  10374. fastpathTV.EncMapIntStringV(rv.Interface().(map[int]string), fastpathCheckNilFalse, f.e)
  10375. }
  10376. func (_ fastpathT) EncMapIntStringV(v map[int]string, checkNil bool, e *Encoder) {
  10377. ee := e.e
  10378. cr := e.cr
  10379. if checkNil && v == nil {
  10380. ee.EncodeNil()
  10381. return
  10382. }
  10383. ee.EncodeMapStart(len(v))
  10384. if e.h.Canonical {
  10385. v2 := make([]int64, len(v))
  10386. var i int
  10387. for k, _ := range v {
  10388. v2[i] = int64(k)
  10389. i++
  10390. }
  10391. sort.Sort(intSlice(v2))
  10392. for _, k2 := range v2 {
  10393. if cr != nil {
  10394. cr.sendContainerState(containerMapKey)
  10395. }
  10396. ee.EncodeInt(int64(int(k2)))
  10397. if cr != nil {
  10398. cr.sendContainerState(containerMapValue)
  10399. }
  10400. ee.EncodeString(c_UTF8, v[int(k2)])
  10401. }
  10402. } else {
  10403. for k2, v2 := range v {
  10404. if cr != nil {
  10405. cr.sendContainerState(containerMapKey)
  10406. }
  10407. ee.EncodeInt(int64(k2))
  10408. if cr != nil {
  10409. cr.sendContainerState(containerMapValue)
  10410. }
  10411. ee.EncodeString(c_UTF8, v2)
  10412. }
  10413. }
  10414. if cr != nil {
  10415. cr.sendContainerState(containerMapEnd)
  10416. }
  10417. }
  10418. func (f *encFnInfo) fastpathEncMapIntUintR(rv reflect.Value) {
  10419. fastpathTV.EncMapIntUintV(rv.Interface().(map[int]uint), fastpathCheckNilFalse, f.e)
  10420. }
  10421. func (_ fastpathT) EncMapIntUintV(v map[int]uint, checkNil bool, e *Encoder) {
  10422. ee := e.e
  10423. cr := e.cr
  10424. if checkNil && v == nil {
  10425. ee.EncodeNil()
  10426. return
  10427. }
  10428. ee.EncodeMapStart(len(v))
  10429. if e.h.Canonical {
  10430. v2 := make([]int64, len(v))
  10431. var i int
  10432. for k, _ := range v {
  10433. v2[i] = int64(k)
  10434. i++
  10435. }
  10436. sort.Sort(intSlice(v2))
  10437. for _, k2 := range v2 {
  10438. if cr != nil {
  10439. cr.sendContainerState(containerMapKey)
  10440. }
  10441. ee.EncodeInt(int64(int(k2)))
  10442. if cr != nil {
  10443. cr.sendContainerState(containerMapValue)
  10444. }
  10445. ee.EncodeUint(uint64(v[int(k2)]))
  10446. }
  10447. } else {
  10448. for k2, v2 := range v {
  10449. if cr != nil {
  10450. cr.sendContainerState(containerMapKey)
  10451. }
  10452. ee.EncodeInt(int64(k2))
  10453. if cr != nil {
  10454. cr.sendContainerState(containerMapValue)
  10455. }
  10456. ee.EncodeUint(uint64(v2))
  10457. }
  10458. }
  10459. if cr != nil {
  10460. cr.sendContainerState(containerMapEnd)
  10461. }
  10462. }
  10463. func (f *encFnInfo) fastpathEncMapIntUint8R(rv reflect.Value) {
  10464. fastpathTV.EncMapIntUint8V(rv.Interface().(map[int]uint8), fastpathCheckNilFalse, f.e)
  10465. }
  10466. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, checkNil bool, e *Encoder) {
  10467. ee := e.e
  10468. cr := e.cr
  10469. if checkNil && v == nil {
  10470. ee.EncodeNil()
  10471. return
  10472. }
  10473. ee.EncodeMapStart(len(v))
  10474. if e.h.Canonical {
  10475. v2 := make([]int64, len(v))
  10476. var i int
  10477. for k, _ := range v {
  10478. v2[i] = int64(k)
  10479. i++
  10480. }
  10481. sort.Sort(intSlice(v2))
  10482. for _, k2 := range v2 {
  10483. if cr != nil {
  10484. cr.sendContainerState(containerMapKey)
  10485. }
  10486. ee.EncodeInt(int64(int(k2)))
  10487. if cr != nil {
  10488. cr.sendContainerState(containerMapValue)
  10489. }
  10490. ee.EncodeUint(uint64(v[int(k2)]))
  10491. }
  10492. } else {
  10493. for k2, v2 := range v {
  10494. if cr != nil {
  10495. cr.sendContainerState(containerMapKey)
  10496. }
  10497. ee.EncodeInt(int64(k2))
  10498. if cr != nil {
  10499. cr.sendContainerState(containerMapValue)
  10500. }
  10501. ee.EncodeUint(uint64(v2))
  10502. }
  10503. }
  10504. if cr != nil {
  10505. cr.sendContainerState(containerMapEnd)
  10506. }
  10507. }
  10508. func (f *encFnInfo) fastpathEncMapIntUint16R(rv reflect.Value) {
  10509. fastpathTV.EncMapIntUint16V(rv.Interface().(map[int]uint16), fastpathCheckNilFalse, f.e)
  10510. }
  10511. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, checkNil bool, e *Encoder) {
  10512. ee := e.e
  10513. cr := e.cr
  10514. if checkNil && v == nil {
  10515. ee.EncodeNil()
  10516. return
  10517. }
  10518. ee.EncodeMapStart(len(v))
  10519. if e.h.Canonical {
  10520. v2 := make([]int64, len(v))
  10521. var i int
  10522. for k, _ := range v {
  10523. v2[i] = int64(k)
  10524. i++
  10525. }
  10526. sort.Sort(intSlice(v2))
  10527. for _, k2 := range v2 {
  10528. if cr != nil {
  10529. cr.sendContainerState(containerMapKey)
  10530. }
  10531. ee.EncodeInt(int64(int(k2)))
  10532. if cr != nil {
  10533. cr.sendContainerState(containerMapValue)
  10534. }
  10535. ee.EncodeUint(uint64(v[int(k2)]))
  10536. }
  10537. } else {
  10538. for k2, v2 := range v {
  10539. if cr != nil {
  10540. cr.sendContainerState(containerMapKey)
  10541. }
  10542. ee.EncodeInt(int64(k2))
  10543. if cr != nil {
  10544. cr.sendContainerState(containerMapValue)
  10545. }
  10546. ee.EncodeUint(uint64(v2))
  10547. }
  10548. }
  10549. if cr != nil {
  10550. cr.sendContainerState(containerMapEnd)
  10551. }
  10552. }
  10553. func (f *encFnInfo) fastpathEncMapIntUint32R(rv reflect.Value) {
  10554. fastpathTV.EncMapIntUint32V(rv.Interface().(map[int]uint32), fastpathCheckNilFalse, f.e)
  10555. }
  10556. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, checkNil bool, e *Encoder) {
  10557. ee := e.e
  10558. cr := e.cr
  10559. if checkNil && v == nil {
  10560. ee.EncodeNil()
  10561. return
  10562. }
  10563. ee.EncodeMapStart(len(v))
  10564. if e.h.Canonical {
  10565. v2 := make([]int64, len(v))
  10566. var i int
  10567. for k, _ := range v {
  10568. v2[i] = int64(k)
  10569. i++
  10570. }
  10571. sort.Sort(intSlice(v2))
  10572. for _, k2 := range v2 {
  10573. if cr != nil {
  10574. cr.sendContainerState(containerMapKey)
  10575. }
  10576. ee.EncodeInt(int64(int(k2)))
  10577. if cr != nil {
  10578. cr.sendContainerState(containerMapValue)
  10579. }
  10580. ee.EncodeUint(uint64(v[int(k2)]))
  10581. }
  10582. } else {
  10583. for k2, v2 := range v {
  10584. if cr != nil {
  10585. cr.sendContainerState(containerMapKey)
  10586. }
  10587. ee.EncodeInt(int64(k2))
  10588. if cr != nil {
  10589. cr.sendContainerState(containerMapValue)
  10590. }
  10591. ee.EncodeUint(uint64(v2))
  10592. }
  10593. }
  10594. if cr != nil {
  10595. cr.sendContainerState(containerMapEnd)
  10596. }
  10597. }
  10598. func (f *encFnInfo) fastpathEncMapIntUint64R(rv reflect.Value) {
  10599. fastpathTV.EncMapIntUint64V(rv.Interface().(map[int]uint64), fastpathCheckNilFalse, f.e)
  10600. }
  10601. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, checkNil bool, e *Encoder) {
  10602. ee := e.e
  10603. cr := e.cr
  10604. if checkNil && v == nil {
  10605. ee.EncodeNil()
  10606. return
  10607. }
  10608. ee.EncodeMapStart(len(v))
  10609. if e.h.Canonical {
  10610. v2 := make([]int64, len(v))
  10611. var i int
  10612. for k, _ := range v {
  10613. v2[i] = int64(k)
  10614. i++
  10615. }
  10616. sort.Sort(intSlice(v2))
  10617. for _, k2 := range v2 {
  10618. if cr != nil {
  10619. cr.sendContainerState(containerMapKey)
  10620. }
  10621. ee.EncodeInt(int64(int(k2)))
  10622. if cr != nil {
  10623. cr.sendContainerState(containerMapValue)
  10624. }
  10625. ee.EncodeUint(uint64(v[int(k2)]))
  10626. }
  10627. } else {
  10628. for k2, v2 := range v {
  10629. if cr != nil {
  10630. cr.sendContainerState(containerMapKey)
  10631. }
  10632. ee.EncodeInt(int64(k2))
  10633. if cr != nil {
  10634. cr.sendContainerState(containerMapValue)
  10635. }
  10636. ee.EncodeUint(uint64(v2))
  10637. }
  10638. }
  10639. if cr != nil {
  10640. cr.sendContainerState(containerMapEnd)
  10641. }
  10642. }
  10643. func (f *encFnInfo) fastpathEncMapIntUintptrR(rv reflect.Value) {
  10644. fastpathTV.EncMapIntUintptrV(rv.Interface().(map[int]uintptr), fastpathCheckNilFalse, f.e)
  10645. }
  10646. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, checkNil bool, e *Encoder) {
  10647. ee := e.e
  10648. cr := e.cr
  10649. if checkNil && v == nil {
  10650. ee.EncodeNil()
  10651. return
  10652. }
  10653. ee.EncodeMapStart(len(v))
  10654. if e.h.Canonical {
  10655. v2 := make([]int64, len(v))
  10656. var i int
  10657. for k, _ := range v {
  10658. v2[i] = int64(k)
  10659. i++
  10660. }
  10661. sort.Sort(intSlice(v2))
  10662. for _, k2 := range v2 {
  10663. if cr != nil {
  10664. cr.sendContainerState(containerMapKey)
  10665. }
  10666. ee.EncodeInt(int64(int(k2)))
  10667. if cr != nil {
  10668. cr.sendContainerState(containerMapValue)
  10669. }
  10670. e.encode(v[int(k2)])
  10671. }
  10672. } else {
  10673. for k2, v2 := range v {
  10674. if cr != nil {
  10675. cr.sendContainerState(containerMapKey)
  10676. }
  10677. ee.EncodeInt(int64(k2))
  10678. if cr != nil {
  10679. cr.sendContainerState(containerMapValue)
  10680. }
  10681. e.encode(v2)
  10682. }
  10683. }
  10684. if cr != nil {
  10685. cr.sendContainerState(containerMapEnd)
  10686. }
  10687. }
  10688. func (f *encFnInfo) fastpathEncMapIntIntR(rv reflect.Value) {
  10689. fastpathTV.EncMapIntIntV(rv.Interface().(map[int]int), fastpathCheckNilFalse, f.e)
  10690. }
  10691. func (_ fastpathT) EncMapIntIntV(v map[int]int, checkNil bool, e *Encoder) {
  10692. ee := e.e
  10693. cr := e.cr
  10694. if checkNil && v == nil {
  10695. ee.EncodeNil()
  10696. return
  10697. }
  10698. ee.EncodeMapStart(len(v))
  10699. if e.h.Canonical {
  10700. v2 := make([]int64, len(v))
  10701. var i int
  10702. for k, _ := range v {
  10703. v2[i] = int64(k)
  10704. i++
  10705. }
  10706. sort.Sort(intSlice(v2))
  10707. for _, k2 := range v2 {
  10708. if cr != nil {
  10709. cr.sendContainerState(containerMapKey)
  10710. }
  10711. ee.EncodeInt(int64(int(k2)))
  10712. if cr != nil {
  10713. cr.sendContainerState(containerMapValue)
  10714. }
  10715. ee.EncodeInt(int64(v[int(k2)]))
  10716. }
  10717. } else {
  10718. for k2, v2 := range v {
  10719. if cr != nil {
  10720. cr.sendContainerState(containerMapKey)
  10721. }
  10722. ee.EncodeInt(int64(k2))
  10723. if cr != nil {
  10724. cr.sendContainerState(containerMapValue)
  10725. }
  10726. ee.EncodeInt(int64(v2))
  10727. }
  10728. }
  10729. if cr != nil {
  10730. cr.sendContainerState(containerMapEnd)
  10731. }
  10732. }
  10733. func (f *encFnInfo) fastpathEncMapIntInt8R(rv reflect.Value) {
  10734. fastpathTV.EncMapIntInt8V(rv.Interface().(map[int]int8), fastpathCheckNilFalse, f.e)
  10735. }
  10736. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, checkNil bool, e *Encoder) {
  10737. ee := e.e
  10738. cr := e.cr
  10739. if checkNil && v == nil {
  10740. ee.EncodeNil()
  10741. return
  10742. }
  10743. ee.EncodeMapStart(len(v))
  10744. if e.h.Canonical {
  10745. v2 := make([]int64, len(v))
  10746. var i int
  10747. for k, _ := range v {
  10748. v2[i] = int64(k)
  10749. i++
  10750. }
  10751. sort.Sort(intSlice(v2))
  10752. for _, k2 := range v2 {
  10753. if cr != nil {
  10754. cr.sendContainerState(containerMapKey)
  10755. }
  10756. ee.EncodeInt(int64(int(k2)))
  10757. if cr != nil {
  10758. cr.sendContainerState(containerMapValue)
  10759. }
  10760. ee.EncodeInt(int64(v[int(k2)]))
  10761. }
  10762. } else {
  10763. for k2, v2 := range v {
  10764. if cr != nil {
  10765. cr.sendContainerState(containerMapKey)
  10766. }
  10767. ee.EncodeInt(int64(k2))
  10768. if cr != nil {
  10769. cr.sendContainerState(containerMapValue)
  10770. }
  10771. ee.EncodeInt(int64(v2))
  10772. }
  10773. }
  10774. if cr != nil {
  10775. cr.sendContainerState(containerMapEnd)
  10776. }
  10777. }
  10778. func (f *encFnInfo) fastpathEncMapIntInt16R(rv reflect.Value) {
  10779. fastpathTV.EncMapIntInt16V(rv.Interface().(map[int]int16), fastpathCheckNilFalse, f.e)
  10780. }
  10781. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, checkNil bool, e *Encoder) {
  10782. ee := e.e
  10783. cr := e.cr
  10784. if checkNil && v == nil {
  10785. ee.EncodeNil()
  10786. return
  10787. }
  10788. ee.EncodeMapStart(len(v))
  10789. if e.h.Canonical {
  10790. v2 := make([]int64, len(v))
  10791. var i int
  10792. for k, _ := range v {
  10793. v2[i] = int64(k)
  10794. i++
  10795. }
  10796. sort.Sort(intSlice(v2))
  10797. for _, k2 := range v2 {
  10798. if cr != nil {
  10799. cr.sendContainerState(containerMapKey)
  10800. }
  10801. ee.EncodeInt(int64(int(k2)))
  10802. if cr != nil {
  10803. cr.sendContainerState(containerMapValue)
  10804. }
  10805. ee.EncodeInt(int64(v[int(k2)]))
  10806. }
  10807. } else {
  10808. for k2, v2 := range v {
  10809. if cr != nil {
  10810. cr.sendContainerState(containerMapKey)
  10811. }
  10812. ee.EncodeInt(int64(k2))
  10813. if cr != nil {
  10814. cr.sendContainerState(containerMapValue)
  10815. }
  10816. ee.EncodeInt(int64(v2))
  10817. }
  10818. }
  10819. if cr != nil {
  10820. cr.sendContainerState(containerMapEnd)
  10821. }
  10822. }
  10823. func (f *encFnInfo) fastpathEncMapIntInt32R(rv reflect.Value) {
  10824. fastpathTV.EncMapIntInt32V(rv.Interface().(map[int]int32), fastpathCheckNilFalse, f.e)
  10825. }
  10826. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, checkNil bool, e *Encoder) {
  10827. ee := e.e
  10828. cr := e.cr
  10829. if checkNil && v == nil {
  10830. ee.EncodeNil()
  10831. return
  10832. }
  10833. ee.EncodeMapStart(len(v))
  10834. if e.h.Canonical {
  10835. v2 := make([]int64, len(v))
  10836. var i int
  10837. for k, _ := range v {
  10838. v2[i] = int64(k)
  10839. i++
  10840. }
  10841. sort.Sort(intSlice(v2))
  10842. for _, k2 := range v2 {
  10843. if cr != nil {
  10844. cr.sendContainerState(containerMapKey)
  10845. }
  10846. ee.EncodeInt(int64(int(k2)))
  10847. if cr != nil {
  10848. cr.sendContainerState(containerMapValue)
  10849. }
  10850. ee.EncodeInt(int64(v[int(k2)]))
  10851. }
  10852. } else {
  10853. for k2, v2 := range v {
  10854. if cr != nil {
  10855. cr.sendContainerState(containerMapKey)
  10856. }
  10857. ee.EncodeInt(int64(k2))
  10858. if cr != nil {
  10859. cr.sendContainerState(containerMapValue)
  10860. }
  10861. ee.EncodeInt(int64(v2))
  10862. }
  10863. }
  10864. if cr != nil {
  10865. cr.sendContainerState(containerMapEnd)
  10866. }
  10867. }
  10868. func (f *encFnInfo) fastpathEncMapIntInt64R(rv reflect.Value) {
  10869. fastpathTV.EncMapIntInt64V(rv.Interface().(map[int]int64), fastpathCheckNilFalse, f.e)
  10870. }
  10871. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, checkNil bool, e *Encoder) {
  10872. ee := e.e
  10873. cr := e.cr
  10874. if checkNil && v == nil {
  10875. ee.EncodeNil()
  10876. return
  10877. }
  10878. ee.EncodeMapStart(len(v))
  10879. if e.h.Canonical {
  10880. v2 := make([]int64, len(v))
  10881. var i int
  10882. for k, _ := range v {
  10883. v2[i] = int64(k)
  10884. i++
  10885. }
  10886. sort.Sort(intSlice(v2))
  10887. for _, k2 := range v2 {
  10888. if cr != nil {
  10889. cr.sendContainerState(containerMapKey)
  10890. }
  10891. ee.EncodeInt(int64(int(k2)))
  10892. if cr != nil {
  10893. cr.sendContainerState(containerMapValue)
  10894. }
  10895. ee.EncodeInt(int64(v[int(k2)]))
  10896. }
  10897. } else {
  10898. for k2, v2 := range v {
  10899. if cr != nil {
  10900. cr.sendContainerState(containerMapKey)
  10901. }
  10902. ee.EncodeInt(int64(k2))
  10903. if cr != nil {
  10904. cr.sendContainerState(containerMapValue)
  10905. }
  10906. ee.EncodeInt(int64(v2))
  10907. }
  10908. }
  10909. if cr != nil {
  10910. cr.sendContainerState(containerMapEnd)
  10911. }
  10912. }
  10913. func (f *encFnInfo) fastpathEncMapIntFloat32R(rv reflect.Value) {
  10914. fastpathTV.EncMapIntFloat32V(rv.Interface().(map[int]float32), fastpathCheckNilFalse, f.e)
  10915. }
  10916. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, checkNil bool, e *Encoder) {
  10917. ee := e.e
  10918. cr := e.cr
  10919. if checkNil && v == nil {
  10920. ee.EncodeNil()
  10921. return
  10922. }
  10923. ee.EncodeMapStart(len(v))
  10924. if e.h.Canonical {
  10925. v2 := make([]int64, len(v))
  10926. var i int
  10927. for k, _ := range v {
  10928. v2[i] = int64(k)
  10929. i++
  10930. }
  10931. sort.Sort(intSlice(v2))
  10932. for _, k2 := range v2 {
  10933. if cr != nil {
  10934. cr.sendContainerState(containerMapKey)
  10935. }
  10936. ee.EncodeInt(int64(int(k2)))
  10937. if cr != nil {
  10938. cr.sendContainerState(containerMapValue)
  10939. }
  10940. ee.EncodeFloat32(v[int(k2)])
  10941. }
  10942. } else {
  10943. for k2, v2 := range v {
  10944. if cr != nil {
  10945. cr.sendContainerState(containerMapKey)
  10946. }
  10947. ee.EncodeInt(int64(k2))
  10948. if cr != nil {
  10949. cr.sendContainerState(containerMapValue)
  10950. }
  10951. ee.EncodeFloat32(v2)
  10952. }
  10953. }
  10954. if cr != nil {
  10955. cr.sendContainerState(containerMapEnd)
  10956. }
  10957. }
  10958. func (f *encFnInfo) fastpathEncMapIntFloat64R(rv reflect.Value) {
  10959. fastpathTV.EncMapIntFloat64V(rv.Interface().(map[int]float64), fastpathCheckNilFalse, f.e)
  10960. }
  10961. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, checkNil bool, e *Encoder) {
  10962. ee := e.e
  10963. cr := e.cr
  10964. if checkNil && v == nil {
  10965. ee.EncodeNil()
  10966. return
  10967. }
  10968. ee.EncodeMapStart(len(v))
  10969. if e.h.Canonical {
  10970. v2 := make([]int64, len(v))
  10971. var i int
  10972. for k, _ := range v {
  10973. v2[i] = int64(k)
  10974. i++
  10975. }
  10976. sort.Sort(intSlice(v2))
  10977. for _, k2 := range v2 {
  10978. if cr != nil {
  10979. cr.sendContainerState(containerMapKey)
  10980. }
  10981. ee.EncodeInt(int64(int(k2)))
  10982. if cr != nil {
  10983. cr.sendContainerState(containerMapValue)
  10984. }
  10985. ee.EncodeFloat64(v[int(k2)])
  10986. }
  10987. } else {
  10988. for k2, v2 := range v {
  10989. if cr != nil {
  10990. cr.sendContainerState(containerMapKey)
  10991. }
  10992. ee.EncodeInt(int64(k2))
  10993. if cr != nil {
  10994. cr.sendContainerState(containerMapValue)
  10995. }
  10996. ee.EncodeFloat64(v2)
  10997. }
  10998. }
  10999. if cr != nil {
  11000. cr.sendContainerState(containerMapEnd)
  11001. }
  11002. }
  11003. func (f *encFnInfo) fastpathEncMapIntBoolR(rv reflect.Value) {
  11004. fastpathTV.EncMapIntBoolV(rv.Interface().(map[int]bool), fastpathCheckNilFalse, f.e)
  11005. }
  11006. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, checkNil bool, e *Encoder) {
  11007. ee := e.e
  11008. cr := e.cr
  11009. if checkNil && v == nil {
  11010. ee.EncodeNil()
  11011. return
  11012. }
  11013. ee.EncodeMapStart(len(v))
  11014. if e.h.Canonical {
  11015. v2 := make([]int64, len(v))
  11016. var i int
  11017. for k, _ := range v {
  11018. v2[i] = int64(k)
  11019. i++
  11020. }
  11021. sort.Sort(intSlice(v2))
  11022. for _, k2 := range v2 {
  11023. if cr != nil {
  11024. cr.sendContainerState(containerMapKey)
  11025. }
  11026. ee.EncodeInt(int64(int(k2)))
  11027. if cr != nil {
  11028. cr.sendContainerState(containerMapValue)
  11029. }
  11030. ee.EncodeBool(v[int(k2)])
  11031. }
  11032. } else {
  11033. for k2, v2 := range v {
  11034. if cr != nil {
  11035. cr.sendContainerState(containerMapKey)
  11036. }
  11037. ee.EncodeInt(int64(k2))
  11038. if cr != nil {
  11039. cr.sendContainerState(containerMapValue)
  11040. }
  11041. ee.EncodeBool(v2)
  11042. }
  11043. }
  11044. if cr != nil {
  11045. cr.sendContainerState(containerMapEnd)
  11046. }
  11047. }
  11048. func (f *encFnInfo) fastpathEncMapInt8IntfR(rv reflect.Value) {
  11049. fastpathTV.EncMapInt8IntfV(rv.Interface().(map[int8]interface{}), fastpathCheckNilFalse, f.e)
  11050. }
  11051. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, checkNil bool, e *Encoder) {
  11052. ee := e.e
  11053. cr := e.cr
  11054. if checkNil && v == nil {
  11055. ee.EncodeNil()
  11056. return
  11057. }
  11058. ee.EncodeMapStart(len(v))
  11059. if e.h.Canonical {
  11060. v2 := make([]int64, len(v))
  11061. var i int
  11062. for k, _ := range v {
  11063. v2[i] = int64(k)
  11064. i++
  11065. }
  11066. sort.Sort(intSlice(v2))
  11067. for _, k2 := range v2 {
  11068. if cr != nil {
  11069. cr.sendContainerState(containerMapKey)
  11070. }
  11071. ee.EncodeInt(int64(int8(k2)))
  11072. if cr != nil {
  11073. cr.sendContainerState(containerMapValue)
  11074. }
  11075. e.encode(v[int8(k2)])
  11076. }
  11077. } else {
  11078. for k2, v2 := range v {
  11079. if cr != nil {
  11080. cr.sendContainerState(containerMapKey)
  11081. }
  11082. ee.EncodeInt(int64(k2))
  11083. if cr != nil {
  11084. cr.sendContainerState(containerMapValue)
  11085. }
  11086. e.encode(v2)
  11087. }
  11088. }
  11089. if cr != nil {
  11090. cr.sendContainerState(containerMapEnd)
  11091. }
  11092. }
  11093. func (f *encFnInfo) fastpathEncMapInt8StringR(rv reflect.Value) {
  11094. fastpathTV.EncMapInt8StringV(rv.Interface().(map[int8]string), fastpathCheckNilFalse, f.e)
  11095. }
  11096. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, checkNil bool, e *Encoder) {
  11097. ee := e.e
  11098. cr := e.cr
  11099. if checkNil && v == nil {
  11100. ee.EncodeNil()
  11101. return
  11102. }
  11103. ee.EncodeMapStart(len(v))
  11104. if e.h.Canonical {
  11105. v2 := make([]int64, len(v))
  11106. var i int
  11107. for k, _ := range v {
  11108. v2[i] = int64(k)
  11109. i++
  11110. }
  11111. sort.Sort(intSlice(v2))
  11112. for _, k2 := range v2 {
  11113. if cr != nil {
  11114. cr.sendContainerState(containerMapKey)
  11115. }
  11116. ee.EncodeInt(int64(int8(k2)))
  11117. if cr != nil {
  11118. cr.sendContainerState(containerMapValue)
  11119. }
  11120. ee.EncodeString(c_UTF8, v[int8(k2)])
  11121. }
  11122. } else {
  11123. for k2, v2 := range v {
  11124. if cr != nil {
  11125. cr.sendContainerState(containerMapKey)
  11126. }
  11127. ee.EncodeInt(int64(k2))
  11128. if cr != nil {
  11129. cr.sendContainerState(containerMapValue)
  11130. }
  11131. ee.EncodeString(c_UTF8, v2)
  11132. }
  11133. }
  11134. if cr != nil {
  11135. cr.sendContainerState(containerMapEnd)
  11136. }
  11137. }
  11138. func (f *encFnInfo) fastpathEncMapInt8UintR(rv reflect.Value) {
  11139. fastpathTV.EncMapInt8UintV(rv.Interface().(map[int8]uint), fastpathCheckNilFalse, f.e)
  11140. }
  11141. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, checkNil bool, e *Encoder) {
  11142. ee := e.e
  11143. cr := e.cr
  11144. if checkNil && v == nil {
  11145. ee.EncodeNil()
  11146. return
  11147. }
  11148. ee.EncodeMapStart(len(v))
  11149. if e.h.Canonical {
  11150. v2 := make([]int64, len(v))
  11151. var i int
  11152. for k, _ := range v {
  11153. v2[i] = int64(k)
  11154. i++
  11155. }
  11156. sort.Sort(intSlice(v2))
  11157. for _, k2 := range v2 {
  11158. if cr != nil {
  11159. cr.sendContainerState(containerMapKey)
  11160. }
  11161. ee.EncodeInt(int64(int8(k2)))
  11162. if cr != nil {
  11163. cr.sendContainerState(containerMapValue)
  11164. }
  11165. ee.EncodeUint(uint64(v[int8(k2)]))
  11166. }
  11167. } else {
  11168. for k2, v2 := range v {
  11169. if cr != nil {
  11170. cr.sendContainerState(containerMapKey)
  11171. }
  11172. ee.EncodeInt(int64(k2))
  11173. if cr != nil {
  11174. cr.sendContainerState(containerMapValue)
  11175. }
  11176. ee.EncodeUint(uint64(v2))
  11177. }
  11178. }
  11179. if cr != nil {
  11180. cr.sendContainerState(containerMapEnd)
  11181. }
  11182. }
  11183. func (f *encFnInfo) fastpathEncMapInt8Uint8R(rv reflect.Value) {
  11184. fastpathTV.EncMapInt8Uint8V(rv.Interface().(map[int8]uint8), fastpathCheckNilFalse, f.e)
  11185. }
  11186. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, checkNil bool, e *Encoder) {
  11187. ee := e.e
  11188. cr := e.cr
  11189. if checkNil && v == nil {
  11190. ee.EncodeNil()
  11191. return
  11192. }
  11193. ee.EncodeMapStart(len(v))
  11194. if e.h.Canonical {
  11195. v2 := make([]int64, len(v))
  11196. var i int
  11197. for k, _ := range v {
  11198. v2[i] = int64(k)
  11199. i++
  11200. }
  11201. sort.Sort(intSlice(v2))
  11202. for _, k2 := range v2 {
  11203. if cr != nil {
  11204. cr.sendContainerState(containerMapKey)
  11205. }
  11206. ee.EncodeInt(int64(int8(k2)))
  11207. if cr != nil {
  11208. cr.sendContainerState(containerMapValue)
  11209. }
  11210. ee.EncodeUint(uint64(v[int8(k2)]))
  11211. }
  11212. } else {
  11213. for k2, v2 := range v {
  11214. if cr != nil {
  11215. cr.sendContainerState(containerMapKey)
  11216. }
  11217. ee.EncodeInt(int64(k2))
  11218. if cr != nil {
  11219. cr.sendContainerState(containerMapValue)
  11220. }
  11221. ee.EncodeUint(uint64(v2))
  11222. }
  11223. }
  11224. if cr != nil {
  11225. cr.sendContainerState(containerMapEnd)
  11226. }
  11227. }
  11228. func (f *encFnInfo) fastpathEncMapInt8Uint16R(rv reflect.Value) {
  11229. fastpathTV.EncMapInt8Uint16V(rv.Interface().(map[int8]uint16), fastpathCheckNilFalse, f.e)
  11230. }
  11231. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, checkNil bool, e *Encoder) {
  11232. ee := e.e
  11233. cr := e.cr
  11234. if checkNil && v == nil {
  11235. ee.EncodeNil()
  11236. return
  11237. }
  11238. ee.EncodeMapStart(len(v))
  11239. if e.h.Canonical {
  11240. v2 := make([]int64, len(v))
  11241. var i int
  11242. for k, _ := range v {
  11243. v2[i] = int64(k)
  11244. i++
  11245. }
  11246. sort.Sort(intSlice(v2))
  11247. for _, k2 := range v2 {
  11248. if cr != nil {
  11249. cr.sendContainerState(containerMapKey)
  11250. }
  11251. ee.EncodeInt(int64(int8(k2)))
  11252. if cr != nil {
  11253. cr.sendContainerState(containerMapValue)
  11254. }
  11255. ee.EncodeUint(uint64(v[int8(k2)]))
  11256. }
  11257. } else {
  11258. for k2, v2 := range v {
  11259. if cr != nil {
  11260. cr.sendContainerState(containerMapKey)
  11261. }
  11262. ee.EncodeInt(int64(k2))
  11263. if cr != nil {
  11264. cr.sendContainerState(containerMapValue)
  11265. }
  11266. ee.EncodeUint(uint64(v2))
  11267. }
  11268. }
  11269. if cr != nil {
  11270. cr.sendContainerState(containerMapEnd)
  11271. }
  11272. }
  11273. func (f *encFnInfo) fastpathEncMapInt8Uint32R(rv reflect.Value) {
  11274. fastpathTV.EncMapInt8Uint32V(rv.Interface().(map[int8]uint32), fastpathCheckNilFalse, f.e)
  11275. }
  11276. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, checkNil bool, e *Encoder) {
  11277. ee := e.e
  11278. cr := e.cr
  11279. if checkNil && v == nil {
  11280. ee.EncodeNil()
  11281. return
  11282. }
  11283. ee.EncodeMapStart(len(v))
  11284. if e.h.Canonical {
  11285. v2 := make([]int64, len(v))
  11286. var i int
  11287. for k, _ := range v {
  11288. v2[i] = int64(k)
  11289. i++
  11290. }
  11291. sort.Sort(intSlice(v2))
  11292. for _, k2 := range v2 {
  11293. if cr != nil {
  11294. cr.sendContainerState(containerMapKey)
  11295. }
  11296. ee.EncodeInt(int64(int8(k2)))
  11297. if cr != nil {
  11298. cr.sendContainerState(containerMapValue)
  11299. }
  11300. ee.EncodeUint(uint64(v[int8(k2)]))
  11301. }
  11302. } else {
  11303. for k2, v2 := range v {
  11304. if cr != nil {
  11305. cr.sendContainerState(containerMapKey)
  11306. }
  11307. ee.EncodeInt(int64(k2))
  11308. if cr != nil {
  11309. cr.sendContainerState(containerMapValue)
  11310. }
  11311. ee.EncodeUint(uint64(v2))
  11312. }
  11313. }
  11314. if cr != nil {
  11315. cr.sendContainerState(containerMapEnd)
  11316. }
  11317. }
  11318. func (f *encFnInfo) fastpathEncMapInt8Uint64R(rv reflect.Value) {
  11319. fastpathTV.EncMapInt8Uint64V(rv.Interface().(map[int8]uint64), fastpathCheckNilFalse, f.e)
  11320. }
  11321. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, checkNil bool, e *Encoder) {
  11322. ee := e.e
  11323. cr := e.cr
  11324. if checkNil && v == nil {
  11325. ee.EncodeNil()
  11326. return
  11327. }
  11328. ee.EncodeMapStart(len(v))
  11329. if e.h.Canonical {
  11330. v2 := make([]int64, len(v))
  11331. var i int
  11332. for k, _ := range v {
  11333. v2[i] = int64(k)
  11334. i++
  11335. }
  11336. sort.Sort(intSlice(v2))
  11337. for _, k2 := range v2 {
  11338. if cr != nil {
  11339. cr.sendContainerState(containerMapKey)
  11340. }
  11341. ee.EncodeInt(int64(int8(k2)))
  11342. if cr != nil {
  11343. cr.sendContainerState(containerMapValue)
  11344. }
  11345. ee.EncodeUint(uint64(v[int8(k2)]))
  11346. }
  11347. } else {
  11348. for k2, v2 := range v {
  11349. if cr != nil {
  11350. cr.sendContainerState(containerMapKey)
  11351. }
  11352. ee.EncodeInt(int64(k2))
  11353. if cr != nil {
  11354. cr.sendContainerState(containerMapValue)
  11355. }
  11356. ee.EncodeUint(uint64(v2))
  11357. }
  11358. }
  11359. if cr != nil {
  11360. cr.sendContainerState(containerMapEnd)
  11361. }
  11362. }
  11363. func (f *encFnInfo) fastpathEncMapInt8UintptrR(rv reflect.Value) {
  11364. fastpathTV.EncMapInt8UintptrV(rv.Interface().(map[int8]uintptr), fastpathCheckNilFalse, f.e)
  11365. }
  11366. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, checkNil bool, e *Encoder) {
  11367. ee := e.e
  11368. cr := e.cr
  11369. if checkNil && v == nil {
  11370. ee.EncodeNil()
  11371. return
  11372. }
  11373. ee.EncodeMapStart(len(v))
  11374. if e.h.Canonical {
  11375. v2 := make([]int64, len(v))
  11376. var i int
  11377. for k, _ := range v {
  11378. v2[i] = int64(k)
  11379. i++
  11380. }
  11381. sort.Sort(intSlice(v2))
  11382. for _, k2 := range v2 {
  11383. if cr != nil {
  11384. cr.sendContainerState(containerMapKey)
  11385. }
  11386. ee.EncodeInt(int64(int8(k2)))
  11387. if cr != nil {
  11388. cr.sendContainerState(containerMapValue)
  11389. }
  11390. e.encode(v[int8(k2)])
  11391. }
  11392. } else {
  11393. for k2, v2 := range v {
  11394. if cr != nil {
  11395. cr.sendContainerState(containerMapKey)
  11396. }
  11397. ee.EncodeInt(int64(k2))
  11398. if cr != nil {
  11399. cr.sendContainerState(containerMapValue)
  11400. }
  11401. e.encode(v2)
  11402. }
  11403. }
  11404. if cr != nil {
  11405. cr.sendContainerState(containerMapEnd)
  11406. }
  11407. }
  11408. func (f *encFnInfo) fastpathEncMapInt8IntR(rv reflect.Value) {
  11409. fastpathTV.EncMapInt8IntV(rv.Interface().(map[int8]int), fastpathCheckNilFalse, f.e)
  11410. }
  11411. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, checkNil bool, e *Encoder) {
  11412. ee := e.e
  11413. cr := e.cr
  11414. if checkNil && v == nil {
  11415. ee.EncodeNil()
  11416. return
  11417. }
  11418. ee.EncodeMapStart(len(v))
  11419. if e.h.Canonical {
  11420. v2 := make([]int64, len(v))
  11421. var i int
  11422. for k, _ := range v {
  11423. v2[i] = int64(k)
  11424. i++
  11425. }
  11426. sort.Sort(intSlice(v2))
  11427. for _, k2 := range v2 {
  11428. if cr != nil {
  11429. cr.sendContainerState(containerMapKey)
  11430. }
  11431. ee.EncodeInt(int64(int8(k2)))
  11432. if cr != nil {
  11433. cr.sendContainerState(containerMapValue)
  11434. }
  11435. ee.EncodeInt(int64(v[int8(k2)]))
  11436. }
  11437. } else {
  11438. for k2, v2 := range v {
  11439. if cr != nil {
  11440. cr.sendContainerState(containerMapKey)
  11441. }
  11442. ee.EncodeInt(int64(k2))
  11443. if cr != nil {
  11444. cr.sendContainerState(containerMapValue)
  11445. }
  11446. ee.EncodeInt(int64(v2))
  11447. }
  11448. }
  11449. if cr != nil {
  11450. cr.sendContainerState(containerMapEnd)
  11451. }
  11452. }
  11453. func (f *encFnInfo) fastpathEncMapInt8Int8R(rv reflect.Value) {
  11454. fastpathTV.EncMapInt8Int8V(rv.Interface().(map[int8]int8), fastpathCheckNilFalse, f.e)
  11455. }
  11456. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, checkNil bool, e *Encoder) {
  11457. ee := e.e
  11458. cr := e.cr
  11459. if checkNil && v == nil {
  11460. ee.EncodeNil()
  11461. return
  11462. }
  11463. ee.EncodeMapStart(len(v))
  11464. if e.h.Canonical {
  11465. v2 := make([]int64, len(v))
  11466. var i int
  11467. for k, _ := range v {
  11468. v2[i] = int64(k)
  11469. i++
  11470. }
  11471. sort.Sort(intSlice(v2))
  11472. for _, k2 := range v2 {
  11473. if cr != nil {
  11474. cr.sendContainerState(containerMapKey)
  11475. }
  11476. ee.EncodeInt(int64(int8(k2)))
  11477. if cr != nil {
  11478. cr.sendContainerState(containerMapValue)
  11479. }
  11480. ee.EncodeInt(int64(v[int8(k2)]))
  11481. }
  11482. } else {
  11483. for k2, v2 := range v {
  11484. if cr != nil {
  11485. cr.sendContainerState(containerMapKey)
  11486. }
  11487. ee.EncodeInt(int64(k2))
  11488. if cr != nil {
  11489. cr.sendContainerState(containerMapValue)
  11490. }
  11491. ee.EncodeInt(int64(v2))
  11492. }
  11493. }
  11494. if cr != nil {
  11495. cr.sendContainerState(containerMapEnd)
  11496. }
  11497. }
  11498. func (f *encFnInfo) fastpathEncMapInt8Int16R(rv reflect.Value) {
  11499. fastpathTV.EncMapInt8Int16V(rv.Interface().(map[int8]int16), fastpathCheckNilFalse, f.e)
  11500. }
  11501. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, checkNil bool, e *Encoder) {
  11502. ee := e.e
  11503. cr := e.cr
  11504. if checkNil && v == nil {
  11505. ee.EncodeNil()
  11506. return
  11507. }
  11508. ee.EncodeMapStart(len(v))
  11509. if e.h.Canonical {
  11510. v2 := make([]int64, len(v))
  11511. var i int
  11512. for k, _ := range v {
  11513. v2[i] = int64(k)
  11514. i++
  11515. }
  11516. sort.Sort(intSlice(v2))
  11517. for _, k2 := range v2 {
  11518. if cr != nil {
  11519. cr.sendContainerState(containerMapKey)
  11520. }
  11521. ee.EncodeInt(int64(int8(k2)))
  11522. if cr != nil {
  11523. cr.sendContainerState(containerMapValue)
  11524. }
  11525. ee.EncodeInt(int64(v[int8(k2)]))
  11526. }
  11527. } else {
  11528. for k2, v2 := range v {
  11529. if cr != nil {
  11530. cr.sendContainerState(containerMapKey)
  11531. }
  11532. ee.EncodeInt(int64(k2))
  11533. if cr != nil {
  11534. cr.sendContainerState(containerMapValue)
  11535. }
  11536. ee.EncodeInt(int64(v2))
  11537. }
  11538. }
  11539. if cr != nil {
  11540. cr.sendContainerState(containerMapEnd)
  11541. }
  11542. }
  11543. func (f *encFnInfo) fastpathEncMapInt8Int32R(rv reflect.Value) {
  11544. fastpathTV.EncMapInt8Int32V(rv.Interface().(map[int8]int32), fastpathCheckNilFalse, f.e)
  11545. }
  11546. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, checkNil bool, e *Encoder) {
  11547. ee := e.e
  11548. cr := e.cr
  11549. if checkNil && v == nil {
  11550. ee.EncodeNil()
  11551. return
  11552. }
  11553. ee.EncodeMapStart(len(v))
  11554. if e.h.Canonical {
  11555. v2 := make([]int64, len(v))
  11556. var i int
  11557. for k, _ := range v {
  11558. v2[i] = int64(k)
  11559. i++
  11560. }
  11561. sort.Sort(intSlice(v2))
  11562. for _, k2 := range v2 {
  11563. if cr != nil {
  11564. cr.sendContainerState(containerMapKey)
  11565. }
  11566. ee.EncodeInt(int64(int8(k2)))
  11567. if cr != nil {
  11568. cr.sendContainerState(containerMapValue)
  11569. }
  11570. ee.EncodeInt(int64(v[int8(k2)]))
  11571. }
  11572. } else {
  11573. for k2, v2 := range v {
  11574. if cr != nil {
  11575. cr.sendContainerState(containerMapKey)
  11576. }
  11577. ee.EncodeInt(int64(k2))
  11578. if cr != nil {
  11579. cr.sendContainerState(containerMapValue)
  11580. }
  11581. ee.EncodeInt(int64(v2))
  11582. }
  11583. }
  11584. if cr != nil {
  11585. cr.sendContainerState(containerMapEnd)
  11586. }
  11587. }
  11588. func (f *encFnInfo) fastpathEncMapInt8Int64R(rv reflect.Value) {
  11589. fastpathTV.EncMapInt8Int64V(rv.Interface().(map[int8]int64), fastpathCheckNilFalse, f.e)
  11590. }
  11591. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, checkNil bool, e *Encoder) {
  11592. ee := e.e
  11593. cr := e.cr
  11594. if checkNil && v == nil {
  11595. ee.EncodeNil()
  11596. return
  11597. }
  11598. ee.EncodeMapStart(len(v))
  11599. if e.h.Canonical {
  11600. v2 := make([]int64, len(v))
  11601. var i int
  11602. for k, _ := range v {
  11603. v2[i] = int64(k)
  11604. i++
  11605. }
  11606. sort.Sort(intSlice(v2))
  11607. for _, k2 := range v2 {
  11608. if cr != nil {
  11609. cr.sendContainerState(containerMapKey)
  11610. }
  11611. ee.EncodeInt(int64(int8(k2)))
  11612. if cr != nil {
  11613. cr.sendContainerState(containerMapValue)
  11614. }
  11615. ee.EncodeInt(int64(v[int8(k2)]))
  11616. }
  11617. } else {
  11618. for k2, v2 := range v {
  11619. if cr != nil {
  11620. cr.sendContainerState(containerMapKey)
  11621. }
  11622. ee.EncodeInt(int64(k2))
  11623. if cr != nil {
  11624. cr.sendContainerState(containerMapValue)
  11625. }
  11626. ee.EncodeInt(int64(v2))
  11627. }
  11628. }
  11629. if cr != nil {
  11630. cr.sendContainerState(containerMapEnd)
  11631. }
  11632. }
  11633. func (f *encFnInfo) fastpathEncMapInt8Float32R(rv reflect.Value) {
  11634. fastpathTV.EncMapInt8Float32V(rv.Interface().(map[int8]float32), fastpathCheckNilFalse, f.e)
  11635. }
  11636. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, checkNil bool, e *Encoder) {
  11637. ee := e.e
  11638. cr := e.cr
  11639. if checkNil && v == nil {
  11640. ee.EncodeNil()
  11641. return
  11642. }
  11643. ee.EncodeMapStart(len(v))
  11644. if e.h.Canonical {
  11645. v2 := make([]int64, len(v))
  11646. var i int
  11647. for k, _ := range v {
  11648. v2[i] = int64(k)
  11649. i++
  11650. }
  11651. sort.Sort(intSlice(v2))
  11652. for _, k2 := range v2 {
  11653. if cr != nil {
  11654. cr.sendContainerState(containerMapKey)
  11655. }
  11656. ee.EncodeInt(int64(int8(k2)))
  11657. if cr != nil {
  11658. cr.sendContainerState(containerMapValue)
  11659. }
  11660. ee.EncodeFloat32(v[int8(k2)])
  11661. }
  11662. } else {
  11663. for k2, v2 := range v {
  11664. if cr != nil {
  11665. cr.sendContainerState(containerMapKey)
  11666. }
  11667. ee.EncodeInt(int64(k2))
  11668. if cr != nil {
  11669. cr.sendContainerState(containerMapValue)
  11670. }
  11671. ee.EncodeFloat32(v2)
  11672. }
  11673. }
  11674. if cr != nil {
  11675. cr.sendContainerState(containerMapEnd)
  11676. }
  11677. }
  11678. func (f *encFnInfo) fastpathEncMapInt8Float64R(rv reflect.Value) {
  11679. fastpathTV.EncMapInt8Float64V(rv.Interface().(map[int8]float64), fastpathCheckNilFalse, f.e)
  11680. }
  11681. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, checkNil bool, e *Encoder) {
  11682. ee := e.e
  11683. cr := e.cr
  11684. if checkNil && v == nil {
  11685. ee.EncodeNil()
  11686. return
  11687. }
  11688. ee.EncodeMapStart(len(v))
  11689. if e.h.Canonical {
  11690. v2 := make([]int64, len(v))
  11691. var i int
  11692. for k, _ := range v {
  11693. v2[i] = int64(k)
  11694. i++
  11695. }
  11696. sort.Sort(intSlice(v2))
  11697. for _, k2 := range v2 {
  11698. if cr != nil {
  11699. cr.sendContainerState(containerMapKey)
  11700. }
  11701. ee.EncodeInt(int64(int8(k2)))
  11702. if cr != nil {
  11703. cr.sendContainerState(containerMapValue)
  11704. }
  11705. ee.EncodeFloat64(v[int8(k2)])
  11706. }
  11707. } else {
  11708. for k2, v2 := range v {
  11709. if cr != nil {
  11710. cr.sendContainerState(containerMapKey)
  11711. }
  11712. ee.EncodeInt(int64(k2))
  11713. if cr != nil {
  11714. cr.sendContainerState(containerMapValue)
  11715. }
  11716. ee.EncodeFloat64(v2)
  11717. }
  11718. }
  11719. if cr != nil {
  11720. cr.sendContainerState(containerMapEnd)
  11721. }
  11722. }
  11723. func (f *encFnInfo) fastpathEncMapInt8BoolR(rv reflect.Value) {
  11724. fastpathTV.EncMapInt8BoolV(rv.Interface().(map[int8]bool), fastpathCheckNilFalse, f.e)
  11725. }
  11726. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, checkNil bool, e *Encoder) {
  11727. ee := e.e
  11728. cr := e.cr
  11729. if checkNil && v == nil {
  11730. ee.EncodeNil()
  11731. return
  11732. }
  11733. ee.EncodeMapStart(len(v))
  11734. if e.h.Canonical {
  11735. v2 := make([]int64, len(v))
  11736. var i int
  11737. for k, _ := range v {
  11738. v2[i] = int64(k)
  11739. i++
  11740. }
  11741. sort.Sort(intSlice(v2))
  11742. for _, k2 := range v2 {
  11743. if cr != nil {
  11744. cr.sendContainerState(containerMapKey)
  11745. }
  11746. ee.EncodeInt(int64(int8(k2)))
  11747. if cr != nil {
  11748. cr.sendContainerState(containerMapValue)
  11749. }
  11750. ee.EncodeBool(v[int8(k2)])
  11751. }
  11752. } else {
  11753. for k2, v2 := range v {
  11754. if cr != nil {
  11755. cr.sendContainerState(containerMapKey)
  11756. }
  11757. ee.EncodeInt(int64(k2))
  11758. if cr != nil {
  11759. cr.sendContainerState(containerMapValue)
  11760. }
  11761. ee.EncodeBool(v2)
  11762. }
  11763. }
  11764. if cr != nil {
  11765. cr.sendContainerState(containerMapEnd)
  11766. }
  11767. }
  11768. func (f *encFnInfo) fastpathEncMapInt16IntfR(rv reflect.Value) {
  11769. fastpathTV.EncMapInt16IntfV(rv.Interface().(map[int16]interface{}), fastpathCheckNilFalse, f.e)
  11770. }
  11771. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, checkNil bool, e *Encoder) {
  11772. ee := e.e
  11773. cr := e.cr
  11774. if checkNil && v == nil {
  11775. ee.EncodeNil()
  11776. return
  11777. }
  11778. ee.EncodeMapStart(len(v))
  11779. if e.h.Canonical {
  11780. v2 := make([]int64, len(v))
  11781. var i int
  11782. for k, _ := range v {
  11783. v2[i] = int64(k)
  11784. i++
  11785. }
  11786. sort.Sort(intSlice(v2))
  11787. for _, k2 := range v2 {
  11788. if cr != nil {
  11789. cr.sendContainerState(containerMapKey)
  11790. }
  11791. ee.EncodeInt(int64(int16(k2)))
  11792. if cr != nil {
  11793. cr.sendContainerState(containerMapValue)
  11794. }
  11795. e.encode(v[int16(k2)])
  11796. }
  11797. } else {
  11798. for k2, v2 := range v {
  11799. if cr != nil {
  11800. cr.sendContainerState(containerMapKey)
  11801. }
  11802. ee.EncodeInt(int64(k2))
  11803. if cr != nil {
  11804. cr.sendContainerState(containerMapValue)
  11805. }
  11806. e.encode(v2)
  11807. }
  11808. }
  11809. if cr != nil {
  11810. cr.sendContainerState(containerMapEnd)
  11811. }
  11812. }
  11813. func (f *encFnInfo) fastpathEncMapInt16StringR(rv reflect.Value) {
  11814. fastpathTV.EncMapInt16StringV(rv.Interface().(map[int16]string), fastpathCheckNilFalse, f.e)
  11815. }
  11816. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, checkNil bool, e *Encoder) {
  11817. ee := e.e
  11818. cr := e.cr
  11819. if checkNil && v == nil {
  11820. ee.EncodeNil()
  11821. return
  11822. }
  11823. ee.EncodeMapStart(len(v))
  11824. if e.h.Canonical {
  11825. v2 := make([]int64, len(v))
  11826. var i int
  11827. for k, _ := range v {
  11828. v2[i] = int64(k)
  11829. i++
  11830. }
  11831. sort.Sort(intSlice(v2))
  11832. for _, k2 := range v2 {
  11833. if cr != nil {
  11834. cr.sendContainerState(containerMapKey)
  11835. }
  11836. ee.EncodeInt(int64(int16(k2)))
  11837. if cr != nil {
  11838. cr.sendContainerState(containerMapValue)
  11839. }
  11840. ee.EncodeString(c_UTF8, v[int16(k2)])
  11841. }
  11842. } else {
  11843. for k2, v2 := range v {
  11844. if cr != nil {
  11845. cr.sendContainerState(containerMapKey)
  11846. }
  11847. ee.EncodeInt(int64(k2))
  11848. if cr != nil {
  11849. cr.sendContainerState(containerMapValue)
  11850. }
  11851. ee.EncodeString(c_UTF8, v2)
  11852. }
  11853. }
  11854. if cr != nil {
  11855. cr.sendContainerState(containerMapEnd)
  11856. }
  11857. }
  11858. func (f *encFnInfo) fastpathEncMapInt16UintR(rv reflect.Value) {
  11859. fastpathTV.EncMapInt16UintV(rv.Interface().(map[int16]uint), fastpathCheckNilFalse, f.e)
  11860. }
  11861. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, checkNil bool, e *Encoder) {
  11862. ee := e.e
  11863. cr := e.cr
  11864. if checkNil && v == nil {
  11865. ee.EncodeNil()
  11866. return
  11867. }
  11868. ee.EncodeMapStart(len(v))
  11869. if e.h.Canonical {
  11870. v2 := make([]int64, len(v))
  11871. var i int
  11872. for k, _ := range v {
  11873. v2[i] = int64(k)
  11874. i++
  11875. }
  11876. sort.Sort(intSlice(v2))
  11877. for _, k2 := range v2 {
  11878. if cr != nil {
  11879. cr.sendContainerState(containerMapKey)
  11880. }
  11881. ee.EncodeInt(int64(int16(k2)))
  11882. if cr != nil {
  11883. cr.sendContainerState(containerMapValue)
  11884. }
  11885. ee.EncodeUint(uint64(v[int16(k2)]))
  11886. }
  11887. } else {
  11888. for k2, v2 := range v {
  11889. if cr != nil {
  11890. cr.sendContainerState(containerMapKey)
  11891. }
  11892. ee.EncodeInt(int64(k2))
  11893. if cr != nil {
  11894. cr.sendContainerState(containerMapValue)
  11895. }
  11896. ee.EncodeUint(uint64(v2))
  11897. }
  11898. }
  11899. if cr != nil {
  11900. cr.sendContainerState(containerMapEnd)
  11901. }
  11902. }
  11903. func (f *encFnInfo) fastpathEncMapInt16Uint8R(rv reflect.Value) {
  11904. fastpathTV.EncMapInt16Uint8V(rv.Interface().(map[int16]uint8), fastpathCheckNilFalse, f.e)
  11905. }
  11906. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, checkNil bool, e *Encoder) {
  11907. ee := e.e
  11908. cr := e.cr
  11909. if checkNil && v == nil {
  11910. ee.EncodeNil()
  11911. return
  11912. }
  11913. ee.EncodeMapStart(len(v))
  11914. if e.h.Canonical {
  11915. v2 := make([]int64, len(v))
  11916. var i int
  11917. for k, _ := range v {
  11918. v2[i] = int64(k)
  11919. i++
  11920. }
  11921. sort.Sort(intSlice(v2))
  11922. for _, k2 := range v2 {
  11923. if cr != nil {
  11924. cr.sendContainerState(containerMapKey)
  11925. }
  11926. ee.EncodeInt(int64(int16(k2)))
  11927. if cr != nil {
  11928. cr.sendContainerState(containerMapValue)
  11929. }
  11930. ee.EncodeUint(uint64(v[int16(k2)]))
  11931. }
  11932. } else {
  11933. for k2, v2 := range v {
  11934. if cr != nil {
  11935. cr.sendContainerState(containerMapKey)
  11936. }
  11937. ee.EncodeInt(int64(k2))
  11938. if cr != nil {
  11939. cr.sendContainerState(containerMapValue)
  11940. }
  11941. ee.EncodeUint(uint64(v2))
  11942. }
  11943. }
  11944. if cr != nil {
  11945. cr.sendContainerState(containerMapEnd)
  11946. }
  11947. }
  11948. func (f *encFnInfo) fastpathEncMapInt16Uint16R(rv reflect.Value) {
  11949. fastpathTV.EncMapInt16Uint16V(rv.Interface().(map[int16]uint16), fastpathCheckNilFalse, f.e)
  11950. }
  11951. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, checkNil bool, e *Encoder) {
  11952. ee := e.e
  11953. cr := e.cr
  11954. if checkNil && v == nil {
  11955. ee.EncodeNil()
  11956. return
  11957. }
  11958. ee.EncodeMapStart(len(v))
  11959. if e.h.Canonical {
  11960. v2 := make([]int64, len(v))
  11961. var i int
  11962. for k, _ := range v {
  11963. v2[i] = int64(k)
  11964. i++
  11965. }
  11966. sort.Sort(intSlice(v2))
  11967. for _, k2 := range v2 {
  11968. if cr != nil {
  11969. cr.sendContainerState(containerMapKey)
  11970. }
  11971. ee.EncodeInt(int64(int16(k2)))
  11972. if cr != nil {
  11973. cr.sendContainerState(containerMapValue)
  11974. }
  11975. ee.EncodeUint(uint64(v[int16(k2)]))
  11976. }
  11977. } else {
  11978. for k2, v2 := range v {
  11979. if cr != nil {
  11980. cr.sendContainerState(containerMapKey)
  11981. }
  11982. ee.EncodeInt(int64(k2))
  11983. if cr != nil {
  11984. cr.sendContainerState(containerMapValue)
  11985. }
  11986. ee.EncodeUint(uint64(v2))
  11987. }
  11988. }
  11989. if cr != nil {
  11990. cr.sendContainerState(containerMapEnd)
  11991. }
  11992. }
  11993. func (f *encFnInfo) fastpathEncMapInt16Uint32R(rv reflect.Value) {
  11994. fastpathTV.EncMapInt16Uint32V(rv.Interface().(map[int16]uint32), fastpathCheckNilFalse, f.e)
  11995. }
  11996. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, checkNil bool, e *Encoder) {
  11997. ee := e.e
  11998. cr := e.cr
  11999. if checkNil && v == nil {
  12000. ee.EncodeNil()
  12001. return
  12002. }
  12003. ee.EncodeMapStart(len(v))
  12004. if e.h.Canonical {
  12005. v2 := make([]int64, len(v))
  12006. var i int
  12007. for k, _ := range v {
  12008. v2[i] = int64(k)
  12009. i++
  12010. }
  12011. sort.Sort(intSlice(v2))
  12012. for _, k2 := range v2 {
  12013. if cr != nil {
  12014. cr.sendContainerState(containerMapKey)
  12015. }
  12016. ee.EncodeInt(int64(int16(k2)))
  12017. if cr != nil {
  12018. cr.sendContainerState(containerMapValue)
  12019. }
  12020. ee.EncodeUint(uint64(v[int16(k2)]))
  12021. }
  12022. } else {
  12023. for k2, v2 := range v {
  12024. if cr != nil {
  12025. cr.sendContainerState(containerMapKey)
  12026. }
  12027. ee.EncodeInt(int64(k2))
  12028. if cr != nil {
  12029. cr.sendContainerState(containerMapValue)
  12030. }
  12031. ee.EncodeUint(uint64(v2))
  12032. }
  12033. }
  12034. if cr != nil {
  12035. cr.sendContainerState(containerMapEnd)
  12036. }
  12037. }
  12038. func (f *encFnInfo) fastpathEncMapInt16Uint64R(rv reflect.Value) {
  12039. fastpathTV.EncMapInt16Uint64V(rv.Interface().(map[int16]uint64), fastpathCheckNilFalse, f.e)
  12040. }
  12041. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, checkNil bool, e *Encoder) {
  12042. ee := e.e
  12043. cr := e.cr
  12044. if checkNil && v == nil {
  12045. ee.EncodeNil()
  12046. return
  12047. }
  12048. ee.EncodeMapStart(len(v))
  12049. if e.h.Canonical {
  12050. v2 := make([]int64, len(v))
  12051. var i int
  12052. for k, _ := range v {
  12053. v2[i] = int64(k)
  12054. i++
  12055. }
  12056. sort.Sort(intSlice(v2))
  12057. for _, k2 := range v2 {
  12058. if cr != nil {
  12059. cr.sendContainerState(containerMapKey)
  12060. }
  12061. ee.EncodeInt(int64(int16(k2)))
  12062. if cr != nil {
  12063. cr.sendContainerState(containerMapValue)
  12064. }
  12065. ee.EncodeUint(uint64(v[int16(k2)]))
  12066. }
  12067. } else {
  12068. for k2, v2 := range v {
  12069. if cr != nil {
  12070. cr.sendContainerState(containerMapKey)
  12071. }
  12072. ee.EncodeInt(int64(k2))
  12073. if cr != nil {
  12074. cr.sendContainerState(containerMapValue)
  12075. }
  12076. ee.EncodeUint(uint64(v2))
  12077. }
  12078. }
  12079. if cr != nil {
  12080. cr.sendContainerState(containerMapEnd)
  12081. }
  12082. }
  12083. func (f *encFnInfo) fastpathEncMapInt16UintptrR(rv reflect.Value) {
  12084. fastpathTV.EncMapInt16UintptrV(rv.Interface().(map[int16]uintptr), fastpathCheckNilFalse, f.e)
  12085. }
  12086. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, checkNil bool, e *Encoder) {
  12087. ee := e.e
  12088. cr := e.cr
  12089. if checkNil && v == nil {
  12090. ee.EncodeNil()
  12091. return
  12092. }
  12093. ee.EncodeMapStart(len(v))
  12094. if e.h.Canonical {
  12095. v2 := make([]int64, len(v))
  12096. var i int
  12097. for k, _ := range v {
  12098. v2[i] = int64(k)
  12099. i++
  12100. }
  12101. sort.Sort(intSlice(v2))
  12102. for _, k2 := range v2 {
  12103. if cr != nil {
  12104. cr.sendContainerState(containerMapKey)
  12105. }
  12106. ee.EncodeInt(int64(int16(k2)))
  12107. if cr != nil {
  12108. cr.sendContainerState(containerMapValue)
  12109. }
  12110. e.encode(v[int16(k2)])
  12111. }
  12112. } else {
  12113. for k2, v2 := range v {
  12114. if cr != nil {
  12115. cr.sendContainerState(containerMapKey)
  12116. }
  12117. ee.EncodeInt(int64(k2))
  12118. if cr != nil {
  12119. cr.sendContainerState(containerMapValue)
  12120. }
  12121. e.encode(v2)
  12122. }
  12123. }
  12124. if cr != nil {
  12125. cr.sendContainerState(containerMapEnd)
  12126. }
  12127. }
  12128. func (f *encFnInfo) fastpathEncMapInt16IntR(rv reflect.Value) {
  12129. fastpathTV.EncMapInt16IntV(rv.Interface().(map[int16]int), fastpathCheckNilFalse, f.e)
  12130. }
  12131. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, checkNil bool, e *Encoder) {
  12132. ee := e.e
  12133. cr := e.cr
  12134. if checkNil && v == nil {
  12135. ee.EncodeNil()
  12136. return
  12137. }
  12138. ee.EncodeMapStart(len(v))
  12139. if e.h.Canonical {
  12140. v2 := make([]int64, len(v))
  12141. var i int
  12142. for k, _ := range v {
  12143. v2[i] = int64(k)
  12144. i++
  12145. }
  12146. sort.Sort(intSlice(v2))
  12147. for _, k2 := range v2 {
  12148. if cr != nil {
  12149. cr.sendContainerState(containerMapKey)
  12150. }
  12151. ee.EncodeInt(int64(int16(k2)))
  12152. if cr != nil {
  12153. cr.sendContainerState(containerMapValue)
  12154. }
  12155. ee.EncodeInt(int64(v[int16(k2)]))
  12156. }
  12157. } else {
  12158. for k2, v2 := range v {
  12159. if cr != nil {
  12160. cr.sendContainerState(containerMapKey)
  12161. }
  12162. ee.EncodeInt(int64(k2))
  12163. if cr != nil {
  12164. cr.sendContainerState(containerMapValue)
  12165. }
  12166. ee.EncodeInt(int64(v2))
  12167. }
  12168. }
  12169. if cr != nil {
  12170. cr.sendContainerState(containerMapEnd)
  12171. }
  12172. }
  12173. func (f *encFnInfo) fastpathEncMapInt16Int8R(rv reflect.Value) {
  12174. fastpathTV.EncMapInt16Int8V(rv.Interface().(map[int16]int8), fastpathCheckNilFalse, f.e)
  12175. }
  12176. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, checkNil bool, e *Encoder) {
  12177. ee := e.e
  12178. cr := e.cr
  12179. if checkNil && v == nil {
  12180. ee.EncodeNil()
  12181. return
  12182. }
  12183. ee.EncodeMapStart(len(v))
  12184. if e.h.Canonical {
  12185. v2 := make([]int64, len(v))
  12186. var i int
  12187. for k, _ := range v {
  12188. v2[i] = int64(k)
  12189. i++
  12190. }
  12191. sort.Sort(intSlice(v2))
  12192. for _, k2 := range v2 {
  12193. if cr != nil {
  12194. cr.sendContainerState(containerMapKey)
  12195. }
  12196. ee.EncodeInt(int64(int16(k2)))
  12197. if cr != nil {
  12198. cr.sendContainerState(containerMapValue)
  12199. }
  12200. ee.EncodeInt(int64(v[int16(k2)]))
  12201. }
  12202. } else {
  12203. for k2, v2 := range v {
  12204. if cr != nil {
  12205. cr.sendContainerState(containerMapKey)
  12206. }
  12207. ee.EncodeInt(int64(k2))
  12208. if cr != nil {
  12209. cr.sendContainerState(containerMapValue)
  12210. }
  12211. ee.EncodeInt(int64(v2))
  12212. }
  12213. }
  12214. if cr != nil {
  12215. cr.sendContainerState(containerMapEnd)
  12216. }
  12217. }
  12218. func (f *encFnInfo) fastpathEncMapInt16Int16R(rv reflect.Value) {
  12219. fastpathTV.EncMapInt16Int16V(rv.Interface().(map[int16]int16), fastpathCheckNilFalse, f.e)
  12220. }
  12221. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, checkNil bool, e *Encoder) {
  12222. ee := e.e
  12223. cr := e.cr
  12224. if checkNil && v == nil {
  12225. ee.EncodeNil()
  12226. return
  12227. }
  12228. ee.EncodeMapStart(len(v))
  12229. if e.h.Canonical {
  12230. v2 := make([]int64, len(v))
  12231. var i int
  12232. for k, _ := range v {
  12233. v2[i] = int64(k)
  12234. i++
  12235. }
  12236. sort.Sort(intSlice(v2))
  12237. for _, k2 := range v2 {
  12238. if cr != nil {
  12239. cr.sendContainerState(containerMapKey)
  12240. }
  12241. ee.EncodeInt(int64(int16(k2)))
  12242. if cr != nil {
  12243. cr.sendContainerState(containerMapValue)
  12244. }
  12245. ee.EncodeInt(int64(v[int16(k2)]))
  12246. }
  12247. } else {
  12248. for k2, v2 := range v {
  12249. if cr != nil {
  12250. cr.sendContainerState(containerMapKey)
  12251. }
  12252. ee.EncodeInt(int64(k2))
  12253. if cr != nil {
  12254. cr.sendContainerState(containerMapValue)
  12255. }
  12256. ee.EncodeInt(int64(v2))
  12257. }
  12258. }
  12259. if cr != nil {
  12260. cr.sendContainerState(containerMapEnd)
  12261. }
  12262. }
  12263. func (f *encFnInfo) fastpathEncMapInt16Int32R(rv reflect.Value) {
  12264. fastpathTV.EncMapInt16Int32V(rv.Interface().(map[int16]int32), fastpathCheckNilFalse, f.e)
  12265. }
  12266. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, checkNil bool, e *Encoder) {
  12267. ee := e.e
  12268. cr := e.cr
  12269. if checkNil && v == nil {
  12270. ee.EncodeNil()
  12271. return
  12272. }
  12273. ee.EncodeMapStart(len(v))
  12274. if e.h.Canonical {
  12275. v2 := make([]int64, len(v))
  12276. var i int
  12277. for k, _ := range v {
  12278. v2[i] = int64(k)
  12279. i++
  12280. }
  12281. sort.Sort(intSlice(v2))
  12282. for _, k2 := range v2 {
  12283. if cr != nil {
  12284. cr.sendContainerState(containerMapKey)
  12285. }
  12286. ee.EncodeInt(int64(int16(k2)))
  12287. if cr != nil {
  12288. cr.sendContainerState(containerMapValue)
  12289. }
  12290. ee.EncodeInt(int64(v[int16(k2)]))
  12291. }
  12292. } else {
  12293. for k2, v2 := range v {
  12294. if cr != nil {
  12295. cr.sendContainerState(containerMapKey)
  12296. }
  12297. ee.EncodeInt(int64(k2))
  12298. if cr != nil {
  12299. cr.sendContainerState(containerMapValue)
  12300. }
  12301. ee.EncodeInt(int64(v2))
  12302. }
  12303. }
  12304. if cr != nil {
  12305. cr.sendContainerState(containerMapEnd)
  12306. }
  12307. }
  12308. func (f *encFnInfo) fastpathEncMapInt16Int64R(rv reflect.Value) {
  12309. fastpathTV.EncMapInt16Int64V(rv.Interface().(map[int16]int64), fastpathCheckNilFalse, f.e)
  12310. }
  12311. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, checkNil bool, e *Encoder) {
  12312. ee := e.e
  12313. cr := e.cr
  12314. if checkNil && v == nil {
  12315. ee.EncodeNil()
  12316. return
  12317. }
  12318. ee.EncodeMapStart(len(v))
  12319. if e.h.Canonical {
  12320. v2 := make([]int64, len(v))
  12321. var i int
  12322. for k, _ := range v {
  12323. v2[i] = int64(k)
  12324. i++
  12325. }
  12326. sort.Sort(intSlice(v2))
  12327. for _, k2 := range v2 {
  12328. if cr != nil {
  12329. cr.sendContainerState(containerMapKey)
  12330. }
  12331. ee.EncodeInt(int64(int16(k2)))
  12332. if cr != nil {
  12333. cr.sendContainerState(containerMapValue)
  12334. }
  12335. ee.EncodeInt(int64(v[int16(k2)]))
  12336. }
  12337. } else {
  12338. for k2, v2 := range v {
  12339. if cr != nil {
  12340. cr.sendContainerState(containerMapKey)
  12341. }
  12342. ee.EncodeInt(int64(k2))
  12343. if cr != nil {
  12344. cr.sendContainerState(containerMapValue)
  12345. }
  12346. ee.EncodeInt(int64(v2))
  12347. }
  12348. }
  12349. if cr != nil {
  12350. cr.sendContainerState(containerMapEnd)
  12351. }
  12352. }
  12353. func (f *encFnInfo) fastpathEncMapInt16Float32R(rv reflect.Value) {
  12354. fastpathTV.EncMapInt16Float32V(rv.Interface().(map[int16]float32), fastpathCheckNilFalse, f.e)
  12355. }
  12356. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, checkNil bool, e *Encoder) {
  12357. ee := e.e
  12358. cr := e.cr
  12359. if checkNil && v == nil {
  12360. ee.EncodeNil()
  12361. return
  12362. }
  12363. ee.EncodeMapStart(len(v))
  12364. if e.h.Canonical {
  12365. v2 := make([]int64, len(v))
  12366. var i int
  12367. for k, _ := range v {
  12368. v2[i] = int64(k)
  12369. i++
  12370. }
  12371. sort.Sort(intSlice(v2))
  12372. for _, k2 := range v2 {
  12373. if cr != nil {
  12374. cr.sendContainerState(containerMapKey)
  12375. }
  12376. ee.EncodeInt(int64(int16(k2)))
  12377. if cr != nil {
  12378. cr.sendContainerState(containerMapValue)
  12379. }
  12380. ee.EncodeFloat32(v[int16(k2)])
  12381. }
  12382. } else {
  12383. for k2, v2 := range v {
  12384. if cr != nil {
  12385. cr.sendContainerState(containerMapKey)
  12386. }
  12387. ee.EncodeInt(int64(k2))
  12388. if cr != nil {
  12389. cr.sendContainerState(containerMapValue)
  12390. }
  12391. ee.EncodeFloat32(v2)
  12392. }
  12393. }
  12394. if cr != nil {
  12395. cr.sendContainerState(containerMapEnd)
  12396. }
  12397. }
  12398. func (f *encFnInfo) fastpathEncMapInt16Float64R(rv reflect.Value) {
  12399. fastpathTV.EncMapInt16Float64V(rv.Interface().(map[int16]float64), fastpathCheckNilFalse, f.e)
  12400. }
  12401. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, checkNil bool, e *Encoder) {
  12402. ee := e.e
  12403. cr := e.cr
  12404. if checkNil && v == nil {
  12405. ee.EncodeNil()
  12406. return
  12407. }
  12408. ee.EncodeMapStart(len(v))
  12409. if e.h.Canonical {
  12410. v2 := make([]int64, len(v))
  12411. var i int
  12412. for k, _ := range v {
  12413. v2[i] = int64(k)
  12414. i++
  12415. }
  12416. sort.Sort(intSlice(v2))
  12417. for _, k2 := range v2 {
  12418. if cr != nil {
  12419. cr.sendContainerState(containerMapKey)
  12420. }
  12421. ee.EncodeInt(int64(int16(k2)))
  12422. if cr != nil {
  12423. cr.sendContainerState(containerMapValue)
  12424. }
  12425. ee.EncodeFloat64(v[int16(k2)])
  12426. }
  12427. } else {
  12428. for k2, v2 := range v {
  12429. if cr != nil {
  12430. cr.sendContainerState(containerMapKey)
  12431. }
  12432. ee.EncodeInt(int64(k2))
  12433. if cr != nil {
  12434. cr.sendContainerState(containerMapValue)
  12435. }
  12436. ee.EncodeFloat64(v2)
  12437. }
  12438. }
  12439. if cr != nil {
  12440. cr.sendContainerState(containerMapEnd)
  12441. }
  12442. }
  12443. func (f *encFnInfo) fastpathEncMapInt16BoolR(rv reflect.Value) {
  12444. fastpathTV.EncMapInt16BoolV(rv.Interface().(map[int16]bool), fastpathCheckNilFalse, f.e)
  12445. }
  12446. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, checkNil bool, e *Encoder) {
  12447. ee := e.e
  12448. cr := e.cr
  12449. if checkNil && v == nil {
  12450. ee.EncodeNil()
  12451. return
  12452. }
  12453. ee.EncodeMapStart(len(v))
  12454. if e.h.Canonical {
  12455. v2 := make([]int64, len(v))
  12456. var i int
  12457. for k, _ := range v {
  12458. v2[i] = int64(k)
  12459. i++
  12460. }
  12461. sort.Sort(intSlice(v2))
  12462. for _, k2 := range v2 {
  12463. if cr != nil {
  12464. cr.sendContainerState(containerMapKey)
  12465. }
  12466. ee.EncodeInt(int64(int16(k2)))
  12467. if cr != nil {
  12468. cr.sendContainerState(containerMapValue)
  12469. }
  12470. ee.EncodeBool(v[int16(k2)])
  12471. }
  12472. } else {
  12473. for k2, v2 := range v {
  12474. if cr != nil {
  12475. cr.sendContainerState(containerMapKey)
  12476. }
  12477. ee.EncodeInt(int64(k2))
  12478. if cr != nil {
  12479. cr.sendContainerState(containerMapValue)
  12480. }
  12481. ee.EncodeBool(v2)
  12482. }
  12483. }
  12484. if cr != nil {
  12485. cr.sendContainerState(containerMapEnd)
  12486. }
  12487. }
  12488. func (f *encFnInfo) fastpathEncMapInt32IntfR(rv reflect.Value) {
  12489. fastpathTV.EncMapInt32IntfV(rv.Interface().(map[int32]interface{}), fastpathCheckNilFalse, f.e)
  12490. }
  12491. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, checkNil bool, e *Encoder) {
  12492. ee := e.e
  12493. cr := e.cr
  12494. if checkNil && v == nil {
  12495. ee.EncodeNil()
  12496. return
  12497. }
  12498. ee.EncodeMapStart(len(v))
  12499. if e.h.Canonical {
  12500. v2 := make([]int64, len(v))
  12501. var i int
  12502. for k, _ := range v {
  12503. v2[i] = int64(k)
  12504. i++
  12505. }
  12506. sort.Sort(intSlice(v2))
  12507. for _, k2 := range v2 {
  12508. if cr != nil {
  12509. cr.sendContainerState(containerMapKey)
  12510. }
  12511. ee.EncodeInt(int64(int32(k2)))
  12512. if cr != nil {
  12513. cr.sendContainerState(containerMapValue)
  12514. }
  12515. e.encode(v[int32(k2)])
  12516. }
  12517. } else {
  12518. for k2, v2 := range v {
  12519. if cr != nil {
  12520. cr.sendContainerState(containerMapKey)
  12521. }
  12522. ee.EncodeInt(int64(k2))
  12523. if cr != nil {
  12524. cr.sendContainerState(containerMapValue)
  12525. }
  12526. e.encode(v2)
  12527. }
  12528. }
  12529. if cr != nil {
  12530. cr.sendContainerState(containerMapEnd)
  12531. }
  12532. }
  12533. func (f *encFnInfo) fastpathEncMapInt32StringR(rv reflect.Value) {
  12534. fastpathTV.EncMapInt32StringV(rv.Interface().(map[int32]string), fastpathCheckNilFalse, f.e)
  12535. }
  12536. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, checkNil bool, e *Encoder) {
  12537. ee := e.e
  12538. cr := e.cr
  12539. if checkNil && v == nil {
  12540. ee.EncodeNil()
  12541. return
  12542. }
  12543. ee.EncodeMapStart(len(v))
  12544. if e.h.Canonical {
  12545. v2 := make([]int64, len(v))
  12546. var i int
  12547. for k, _ := range v {
  12548. v2[i] = int64(k)
  12549. i++
  12550. }
  12551. sort.Sort(intSlice(v2))
  12552. for _, k2 := range v2 {
  12553. if cr != nil {
  12554. cr.sendContainerState(containerMapKey)
  12555. }
  12556. ee.EncodeInt(int64(int32(k2)))
  12557. if cr != nil {
  12558. cr.sendContainerState(containerMapValue)
  12559. }
  12560. ee.EncodeString(c_UTF8, v[int32(k2)])
  12561. }
  12562. } else {
  12563. for k2, v2 := range v {
  12564. if cr != nil {
  12565. cr.sendContainerState(containerMapKey)
  12566. }
  12567. ee.EncodeInt(int64(k2))
  12568. if cr != nil {
  12569. cr.sendContainerState(containerMapValue)
  12570. }
  12571. ee.EncodeString(c_UTF8, v2)
  12572. }
  12573. }
  12574. if cr != nil {
  12575. cr.sendContainerState(containerMapEnd)
  12576. }
  12577. }
  12578. func (f *encFnInfo) fastpathEncMapInt32UintR(rv reflect.Value) {
  12579. fastpathTV.EncMapInt32UintV(rv.Interface().(map[int32]uint), fastpathCheckNilFalse, f.e)
  12580. }
  12581. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, checkNil bool, e *Encoder) {
  12582. ee := e.e
  12583. cr := e.cr
  12584. if checkNil && v == nil {
  12585. ee.EncodeNil()
  12586. return
  12587. }
  12588. ee.EncodeMapStart(len(v))
  12589. if e.h.Canonical {
  12590. v2 := make([]int64, len(v))
  12591. var i int
  12592. for k, _ := range v {
  12593. v2[i] = int64(k)
  12594. i++
  12595. }
  12596. sort.Sort(intSlice(v2))
  12597. for _, k2 := range v2 {
  12598. if cr != nil {
  12599. cr.sendContainerState(containerMapKey)
  12600. }
  12601. ee.EncodeInt(int64(int32(k2)))
  12602. if cr != nil {
  12603. cr.sendContainerState(containerMapValue)
  12604. }
  12605. ee.EncodeUint(uint64(v[int32(k2)]))
  12606. }
  12607. } else {
  12608. for k2, v2 := range v {
  12609. if cr != nil {
  12610. cr.sendContainerState(containerMapKey)
  12611. }
  12612. ee.EncodeInt(int64(k2))
  12613. if cr != nil {
  12614. cr.sendContainerState(containerMapValue)
  12615. }
  12616. ee.EncodeUint(uint64(v2))
  12617. }
  12618. }
  12619. if cr != nil {
  12620. cr.sendContainerState(containerMapEnd)
  12621. }
  12622. }
  12623. func (f *encFnInfo) fastpathEncMapInt32Uint8R(rv reflect.Value) {
  12624. fastpathTV.EncMapInt32Uint8V(rv.Interface().(map[int32]uint8), fastpathCheckNilFalse, f.e)
  12625. }
  12626. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, checkNil bool, e *Encoder) {
  12627. ee := e.e
  12628. cr := e.cr
  12629. if checkNil && v == nil {
  12630. ee.EncodeNil()
  12631. return
  12632. }
  12633. ee.EncodeMapStart(len(v))
  12634. if e.h.Canonical {
  12635. v2 := make([]int64, len(v))
  12636. var i int
  12637. for k, _ := range v {
  12638. v2[i] = int64(k)
  12639. i++
  12640. }
  12641. sort.Sort(intSlice(v2))
  12642. for _, k2 := range v2 {
  12643. if cr != nil {
  12644. cr.sendContainerState(containerMapKey)
  12645. }
  12646. ee.EncodeInt(int64(int32(k2)))
  12647. if cr != nil {
  12648. cr.sendContainerState(containerMapValue)
  12649. }
  12650. ee.EncodeUint(uint64(v[int32(k2)]))
  12651. }
  12652. } else {
  12653. for k2, v2 := range v {
  12654. if cr != nil {
  12655. cr.sendContainerState(containerMapKey)
  12656. }
  12657. ee.EncodeInt(int64(k2))
  12658. if cr != nil {
  12659. cr.sendContainerState(containerMapValue)
  12660. }
  12661. ee.EncodeUint(uint64(v2))
  12662. }
  12663. }
  12664. if cr != nil {
  12665. cr.sendContainerState(containerMapEnd)
  12666. }
  12667. }
  12668. func (f *encFnInfo) fastpathEncMapInt32Uint16R(rv reflect.Value) {
  12669. fastpathTV.EncMapInt32Uint16V(rv.Interface().(map[int32]uint16), fastpathCheckNilFalse, f.e)
  12670. }
  12671. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, checkNil bool, e *Encoder) {
  12672. ee := e.e
  12673. cr := e.cr
  12674. if checkNil && v == nil {
  12675. ee.EncodeNil()
  12676. return
  12677. }
  12678. ee.EncodeMapStart(len(v))
  12679. if e.h.Canonical {
  12680. v2 := make([]int64, len(v))
  12681. var i int
  12682. for k, _ := range v {
  12683. v2[i] = int64(k)
  12684. i++
  12685. }
  12686. sort.Sort(intSlice(v2))
  12687. for _, k2 := range v2 {
  12688. if cr != nil {
  12689. cr.sendContainerState(containerMapKey)
  12690. }
  12691. ee.EncodeInt(int64(int32(k2)))
  12692. if cr != nil {
  12693. cr.sendContainerState(containerMapValue)
  12694. }
  12695. ee.EncodeUint(uint64(v[int32(k2)]))
  12696. }
  12697. } else {
  12698. for k2, v2 := range v {
  12699. if cr != nil {
  12700. cr.sendContainerState(containerMapKey)
  12701. }
  12702. ee.EncodeInt(int64(k2))
  12703. if cr != nil {
  12704. cr.sendContainerState(containerMapValue)
  12705. }
  12706. ee.EncodeUint(uint64(v2))
  12707. }
  12708. }
  12709. if cr != nil {
  12710. cr.sendContainerState(containerMapEnd)
  12711. }
  12712. }
  12713. func (f *encFnInfo) fastpathEncMapInt32Uint32R(rv reflect.Value) {
  12714. fastpathTV.EncMapInt32Uint32V(rv.Interface().(map[int32]uint32), fastpathCheckNilFalse, f.e)
  12715. }
  12716. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, checkNil bool, e *Encoder) {
  12717. ee := e.e
  12718. cr := e.cr
  12719. if checkNil && v == nil {
  12720. ee.EncodeNil()
  12721. return
  12722. }
  12723. ee.EncodeMapStart(len(v))
  12724. if e.h.Canonical {
  12725. v2 := make([]int64, len(v))
  12726. var i int
  12727. for k, _ := range v {
  12728. v2[i] = int64(k)
  12729. i++
  12730. }
  12731. sort.Sort(intSlice(v2))
  12732. for _, k2 := range v2 {
  12733. if cr != nil {
  12734. cr.sendContainerState(containerMapKey)
  12735. }
  12736. ee.EncodeInt(int64(int32(k2)))
  12737. if cr != nil {
  12738. cr.sendContainerState(containerMapValue)
  12739. }
  12740. ee.EncodeUint(uint64(v[int32(k2)]))
  12741. }
  12742. } else {
  12743. for k2, v2 := range v {
  12744. if cr != nil {
  12745. cr.sendContainerState(containerMapKey)
  12746. }
  12747. ee.EncodeInt(int64(k2))
  12748. if cr != nil {
  12749. cr.sendContainerState(containerMapValue)
  12750. }
  12751. ee.EncodeUint(uint64(v2))
  12752. }
  12753. }
  12754. if cr != nil {
  12755. cr.sendContainerState(containerMapEnd)
  12756. }
  12757. }
  12758. func (f *encFnInfo) fastpathEncMapInt32Uint64R(rv reflect.Value) {
  12759. fastpathTV.EncMapInt32Uint64V(rv.Interface().(map[int32]uint64), fastpathCheckNilFalse, f.e)
  12760. }
  12761. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, checkNil bool, e *Encoder) {
  12762. ee := e.e
  12763. cr := e.cr
  12764. if checkNil && v == nil {
  12765. ee.EncodeNil()
  12766. return
  12767. }
  12768. ee.EncodeMapStart(len(v))
  12769. if e.h.Canonical {
  12770. v2 := make([]int64, len(v))
  12771. var i int
  12772. for k, _ := range v {
  12773. v2[i] = int64(k)
  12774. i++
  12775. }
  12776. sort.Sort(intSlice(v2))
  12777. for _, k2 := range v2 {
  12778. if cr != nil {
  12779. cr.sendContainerState(containerMapKey)
  12780. }
  12781. ee.EncodeInt(int64(int32(k2)))
  12782. if cr != nil {
  12783. cr.sendContainerState(containerMapValue)
  12784. }
  12785. ee.EncodeUint(uint64(v[int32(k2)]))
  12786. }
  12787. } else {
  12788. for k2, v2 := range v {
  12789. if cr != nil {
  12790. cr.sendContainerState(containerMapKey)
  12791. }
  12792. ee.EncodeInt(int64(k2))
  12793. if cr != nil {
  12794. cr.sendContainerState(containerMapValue)
  12795. }
  12796. ee.EncodeUint(uint64(v2))
  12797. }
  12798. }
  12799. if cr != nil {
  12800. cr.sendContainerState(containerMapEnd)
  12801. }
  12802. }
  12803. func (f *encFnInfo) fastpathEncMapInt32UintptrR(rv reflect.Value) {
  12804. fastpathTV.EncMapInt32UintptrV(rv.Interface().(map[int32]uintptr), fastpathCheckNilFalse, f.e)
  12805. }
  12806. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, checkNil bool, e *Encoder) {
  12807. ee := e.e
  12808. cr := e.cr
  12809. if checkNil && v == nil {
  12810. ee.EncodeNil()
  12811. return
  12812. }
  12813. ee.EncodeMapStart(len(v))
  12814. if e.h.Canonical {
  12815. v2 := make([]int64, len(v))
  12816. var i int
  12817. for k, _ := range v {
  12818. v2[i] = int64(k)
  12819. i++
  12820. }
  12821. sort.Sort(intSlice(v2))
  12822. for _, k2 := range v2 {
  12823. if cr != nil {
  12824. cr.sendContainerState(containerMapKey)
  12825. }
  12826. ee.EncodeInt(int64(int32(k2)))
  12827. if cr != nil {
  12828. cr.sendContainerState(containerMapValue)
  12829. }
  12830. e.encode(v[int32(k2)])
  12831. }
  12832. } else {
  12833. for k2, v2 := range v {
  12834. if cr != nil {
  12835. cr.sendContainerState(containerMapKey)
  12836. }
  12837. ee.EncodeInt(int64(k2))
  12838. if cr != nil {
  12839. cr.sendContainerState(containerMapValue)
  12840. }
  12841. e.encode(v2)
  12842. }
  12843. }
  12844. if cr != nil {
  12845. cr.sendContainerState(containerMapEnd)
  12846. }
  12847. }
  12848. func (f *encFnInfo) fastpathEncMapInt32IntR(rv reflect.Value) {
  12849. fastpathTV.EncMapInt32IntV(rv.Interface().(map[int32]int), fastpathCheckNilFalse, f.e)
  12850. }
  12851. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, checkNil bool, e *Encoder) {
  12852. ee := e.e
  12853. cr := e.cr
  12854. if checkNil && v == nil {
  12855. ee.EncodeNil()
  12856. return
  12857. }
  12858. ee.EncodeMapStart(len(v))
  12859. if e.h.Canonical {
  12860. v2 := make([]int64, len(v))
  12861. var i int
  12862. for k, _ := range v {
  12863. v2[i] = int64(k)
  12864. i++
  12865. }
  12866. sort.Sort(intSlice(v2))
  12867. for _, k2 := range v2 {
  12868. if cr != nil {
  12869. cr.sendContainerState(containerMapKey)
  12870. }
  12871. ee.EncodeInt(int64(int32(k2)))
  12872. if cr != nil {
  12873. cr.sendContainerState(containerMapValue)
  12874. }
  12875. ee.EncodeInt(int64(v[int32(k2)]))
  12876. }
  12877. } else {
  12878. for k2, v2 := range v {
  12879. if cr != nil {
  12880. cr.sendContainerState(containerMapKey)
  12881. }
  12882. ee.EncodeInt(int64(k2))
  12883. if cr != nil {
  12884. cr.sendContainerState(containerMapValue)
  12885. }
  12886. ee.EncodeInt(int64(v2))
  12887. }
  12888. }
  12889. if cr != nil {
  12890. cr.sendContainerState(containerMapEnd)
  12891. }
  12892. }
  12893. func (f *encFnInfo) fastpathEncMapInt32Int8R(rv reflect.Value) {
  12894. fastpathTV.EncMapInt32Int8V(rv.Interface().(map[int32]int8), fastpathCheckNilFalse, f.e)
  12895. }
  12896. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, checkNil bool, e *Encoder) {
  12897. ee := e.e
  12898. cr := e.cr
  12899. if checkNil && v == nil {
  12900. ee.EncodeNil()
  12901. return
  12902. }
  12903. ee.EncodeMapStart(len(v))
  12904. if e.h.Canonical {
  12905. v2 := make([]int64, len(v))
  12906. var i int
  12907. for k, _ := range v {
  12908. v2[i] = int64(k)
  12909. i++
  12910. }
  12911. sort.Sort(intSlice(v2))
  12912. for _, k2 := range v2 {
  12913. if cr != nil {
  12914. cr.sendContainerState(containerMapKey)
  12915. }
  12916. ee.EncodeInt(int64(int32(k2)))
  12917. if cr != nil {
  12918. cr.sendContainerState(containerMapValue)
  12919. }
  12920. ee.EncodeInt(int64(v[int32(k2)]))
  12921. }
  12922. } else {
  12923. for k2, v2 := range v {
  12924. if cr != nil {
  12925. cr.sendContainerState(containerMapKey)
  12926. }
  12927. ee.EncodeInt(int64(k2))
  12928. if cr != nil {
  12929. cr.sendContainerState(containerMapValue)
  12930. }
  12931. ee.EncodeInt(int64(v2))
  12932. }
  12933. }
  12934. if cr != nil {
  12935. cr.sendContainerState(containerMapEnd)
  12936. }
  12937. }
  12938. func (f *encFnInfo) fastpathEncMapInt32Int16R(rv reflect.Value) {
  12939. fastpathTV.EncMapInt32Int16V(rv.Interface().(map[int32]int16), fastpathCheckNilFalse, f.e)
  12940. }
  12941. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, checkNil bool, e *Encoder) {
  12942. ee := e.e
  12943. cr := e.cr
  12944. if checkNil && v == nil {
  12945. ee.EncodeNil()
  12946. return
  12947. }
  12948. ee.EncodeMapStart(len(v))
  12949. if e.h.Canonical {
  12950. v2 := make([]int64, len(v))
  12951. var i int
  12952. for k, _ := range v {
  12953. v2[i] = int64(k)
  12954. i++
  12955. }
  12956. sort.Sort(intSlice(v2))
  12957. for _, k2 := range v2 {
  12958. if cr != nil {
  12959. cr.sendContainerState(containerMapKey)
  12960. }
  12961. ee.EncodeInt(int64(int32(k2)))
  12962. if cr != nil {
  12963. cr.sendContainerState(containerMapValue)
  12964. }
  12965. ee.EncodeInt(int64(v[int32(k2)]))
  12966. }
  12967. } else {
  12968. for k2, v2 := range v {
  12969. if cr != nil {
  12970. cr.sendContainerState(containerMapKey)
  12971. }
  12972. ee.EncodeInt(int64(k2))
  12973. if cr != nil {
  12974. cr.sendContainerState(containerMapValue)
  12975. }
  12976. ee.EncodeInt(int64(v2))
  12977. }
  12978. }
  12979. if cr != nil {
  12980. cr.sendContainerState(containerMapEnd)
  12981. }
  12982. }
  12983. func (f *encFnInfo) fastpathEncMapInt32Int32R(rv reflect.Value) {
  12984. fastpathTV.EncMapInt32Int32V(rv.Interface().(map[int32]int32), fastpathCheckNilFalse, f.e)
  12985. }
  12986. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, checkNil bool, e *Encoder) {
  12987. ee := e.e
  12988. cr := e.cr
  12989. if checkNil && v == nil {
  12990. ee.EncodeNil()
  12991. return
  12992. }
  12993. ee.EncodeMapStart(len(v))
  12994. if e.h.Canonical {
  12995. v2 := make([]int64, len(v))
  12996. var i int
  12997. for k, _ := range v {
  12998. v2[i] = int64(k)
  12999. i++
  13000. }
  13001. sort.Sort(intSlice(v2))
  13002. for _, k2 := range v2 {
  13003. if cr != nil {
  13004. cr.sendContainerState(containerMapKey)
  13005. }
  13006. ee.EncodeInt(int64(int32(k2)))
  13007. if cr != nil {
  13008. cr.sendContainerState(containerMapValue)
  13009. }
  13010. ee.EncodeInt(int64(v[int32(k2)]))
  13011. }
  13012. } else {
  13013. for k2, v2 := range v {
  13014. if cr != nil {
  13015. cr.sendContainerState(containerMapKey)
  13016. }
  13017. ee.EncodeInt(int64(k2))
  13018. if cr != nil {
  13019. cr.sendContainerState(containerMapValue)
  13020. }
  13021. ee.EncodeInt(int64(v2))
  13022. }
  13023. }
  13024. if cr != nil {
  13025. cr.sendContainerState(containerMapEnd)
  13026. }
  13027. }
  13028. func (f *encFnInfo) fastpathEncMapInt32Int64R(rv reflect.Value) {
  13029. fastpathTV.EncMapInt32Int64V(rv.Interface().(map[int32]int64), fastpathCheckNilFalse, f.e)
  13030. }
  13031. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, checkNil bool, e *Encoder) {
  13032. ee := e.e
  13033. cr := e.cr
  13034. if checkNil && v == nil {
  13035. ee.EncodeNil()
  13036. return
  13037. }
  13038. ee.EncodeMapStart(len(v))
  13039. if e.h.Canonical {
  13040. v2 := make([]int64, len(v))
  13041. var i int
  13042. for k, _ := range v {
  13043. v2[i] = int64(k)
  13044. i++
  13045. }
  13046. sort.Sort(intSlice(v2))
  13047. for _, k2 := range v2 {
  13048. if cr != nil {
  13049. cr.sendContainerState(containerMapKey)
  13050. }
  13051. ee.EncodeInt(int64(int32(k2)))
  13052. if cr != nil {
  13053. cr.sendContainerState(containerMapValue)
  13054. }
  13055. ee.EncodeInt(int64(v[int32(k2)]))
  13056. }
  13057. } else {
  13058. for k2, v2 := range v {
  13059. if cr != nil {
  13060. cr.sendContainerState(containerMapKey)
  13061. }
  13062. ee.EncodeInt(int64(k2))
  13063. if cr != nil {
  13064. cr.sendContainerState(containerMapValue)
  13065. }
  13066. ee.EncodeInt(int64(v2))
  13067. }
  13068. }
  13069. if cr != nil {
  13070. cr.sendContainerState(containerMapEnd)
  13071. }
  13072. }
  13073. func (f *encFnInfo) fastpathEncMapInt32Float32R(rv reflect.Value) {
  13074. fastpathTV.EncMapInt32Float32V(rv.Interface().(map[int32]float32), fastpathCheckNilFalse, f.e)
  13075. }
  13076. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, checkNil bool, e *Encoder) {
  13077. ee := e.e
  13078. cr := e.cr
  13079. if checkNil && v == nil {
  13080. ee.EncodeNil()
  13081. return
  13082. }
  13083. ee.EncodeMapStart(len(v))
  13084. if e.h.Canonical {
  13085. v2 := make([]int64, len(v))
  13086. var i int
  13087. for k, _ := range v {
  13088. v2[i] = int64(k)
  13089. i++
  13090. }
  13091. sort.Sort(intSlice(v2))
  13092. for _, k2 := range v2 {
  13093. if cr != nil {
  13094. cr.sendContainerState(containerMapKey)
  13095. }
  13096. ee.EncodeInt(int64(int32(k2)))
  13097. if cr != nil {
  13098. cr.sendContainerState(containerMapValue)
  13099. }
  13100. ee.EncodeFloat32(v[int32(k2)])
  13101. }
  13102. } else {
  13103. for k2, v2 := range v {
  13104. if cr != nil {
  13105. cr.sendContainerState(containerMapKey)
  13106. }
  13107. ee.EncodeInt(int64(k2))
  13108. if cr != nil {
  13109. cr.sendContainerState(containerMapValue)
  13110. }
  13111. ee.EncodeFloat32(v2)
  13112. }
  13113. }
  13114. if cr != nil {
  13115. cr.sendContainerState(containerMapEnd)
  13116. }
  13117. }
  13118. func (f *encFnInfo) fastpathEncMapInt32Float64R(rv reflect.Value) {
  13119. fastpathTV.EncMapInt32Float64V(rv.Interface().(map[int32]float64), fastpathCheckNilFalse, f.e)
  13120. }
  13121. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, checkNil bool, e *Encoder) {
  13122. ee := e.e
  13123. cr := e.cr
  13124. if checkNil && v == nil {
  13125. ee.EncodeNil()
  13126. return
  13127. }
  13128. ee.EncodeMapStart(len(v))
  13129. if e.h.Canonical {
  13130. v2 := make([]int64, len(v))
  13131. var i int
  13132. for k, _ := range v {
  13133. v2[i] = int64(k)
  13134. i++
  13135. }
  13136. sort.Sort(intSlice(v2))
  13137. for _, k2 := range v2 {
  13138. if cr != nil {
  13139. cr.sendContainerState(containerMapKey)
  13140. }
  13141. ee.EncodeInt(int64(int32(k2)))
  13142. if cr != nil {
  13143. cr.sendContainerState(containerMapValue)
  13144. }
  13145. ee.EncodeFloat64(v[int32(k2)])
  13146. }
  13147. } else {
  13148. for k2, v2 := range v {
  13149. if cr != nil {
  13150. cr.sendContainerState(containerMapKey)
  13151. }
  13152. ee.EncodeInt(int64(k2))
  13153. if cr != nil {
  13154. cr.sendContainerState(containerMapValue)
  13155. }
  13156. ee.EncodeFloat64(v2)
  13157. }
  13158. }
  13159. if cr != nil {
  13160. cr.sendContainerState(containerMapEnd)
  13161. }
  13162. }
  13163. func (f *encFnInfo) fastpathEncMapInt32BoolR(rv reflect.Value) {
  13164. fastpathTV.EncMapInt32BoolV(rv.Interface().(map[int32]bool), fastpathCheckNilFalse, f.e)
  13165. }
  13166. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, checkNil bool, e *Encoder) {
  13167. ee := e.e
  13168. cr := e.cr
  13169. if checkNil && v == nil {
  13170. ee.EncodeNil()
  13171. return
  13172. }
  13173. ee.EncodeMapStart(len(v))
  13174. if e.h.Canonical {
  13175. v2 := make([]int64, len(v))
  13176. var i int
  13177. for k, _ := range v {
  13178. v2[i] = int64(k)
  13179. i++
  13180. }
  13181. sort.Sort(intSlice(v2))
  13182. for _, k2 := range v2 {
  13183. if cr != nil {
  13184. cr.sendContainerState(containerMapKey)
  13185. }
  13186. ee.EncodeInt(int64(int32(k2)))
  13187. if cr != nil {
  13188. cr.sendContainerState(containerMapValue)
  13189. }
  13190. ee.EncodeBool(v[int32(k2)])
  13191. }
  13192. } else {
  13193. for k2, v2 := range v {
  13194. if cr != nil {
  13195. cr.sendContainerState(containerMapKey)
  13196. }
  13197. ee.EncodeInt(int64(k2))
  13198. if cr != nil {
  13199. cr.sendContainerState(containerMapValue)
  13200. }
  13201. ee.EncodeBool(v2)
  13202. }
  13203. }
  13204. if cr != nil {
  13205. cr.sendContainerState(containerMapEnd)
  13206. }
  13207. }
  13208. func (f *encFnInfo) fastpathEncMapInt64IntfR(rv reflect.Value) {
  13209. fastpathTV.EncMapInt64IntfV(rv.Interface().(map[int64]interface{}), fastpathCheckNilFalse, f.e)
  13210. }
  13211. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, checkNil bool, e *Encoder) {
  13212. ee := e.e
  13213. cr := e.cr
  13214. if checkNil && v == nil {
  13215. ee.EncodeNil()
  13216. return
  13217. }
  13218. ee.EncodeMapStart(len(v))
  13219. if e.h.Canonical {
  13220. v2 := make([]int64, len(v))
  13221. var i int
  13222. for k, _ := range v {
  13223. v2[i] = int64(k)
  13224. i++
  13225. }
  13226. sort.Sort(intSlice(v2))
  13227. for _, k2 := range v2 {
  13228. if cr != nil {
  13229. cr.sendContainerState(containerMapKey)
  13230. }
  13231. ee.EncodeInt(int64(int64(k2)))
  13232. if cr != nil {
  13233. cr.sendContainerState(containerMapValue)
  13234. }
  13235. e.encode(v[int64(k2)])
  13236. }
  13237. } else {
  13238. for k2, v2 := range v {
  13239. if cr != nil {
  13240. cr.sendContainerState(containerMapKey)
  13241. }
  13242. ee.EncodeInt(int64(k2))
  13243. if cr != nil {
  13244. cr.sendContainerState(containerMapValue)
  13245. }
  13246. e.encode(v2)
  13247. }
  13248. }
  13249. if cr != nil {
  13250. cr.sendContainerState(containerMapEnd)
  13251. }
  13252. }
  13253. func (f *encFnInfo) fastpathEncMapInt64StringR(rv reflect.Value) {
  13254. fastpathTV.EncMapInt64StringV(rv.Interface().(map[int64]string), fastpathCheckNilFalse, f.e)
  13255. }
  13256. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, checkNil bool, e *Encoder) {
  13257. ee := e.e
  13258. cr := e.cr
  13259. if checkNil && v == nil {
  13260. ee.EncodeNil()
  13261. return
  13262. }
  13263. ee.EncodeMapStart(len(v))
  13264. if e.h.Canonical {
  13265. v2 := make([]int64, len(v))
  13266. var i int
  13267. for k, _ := range v {
  13268. v2[i] = int64(k)
  13269. i++
  13270. }
  13271. sort.Sort(intSlice(v2))
  13272. for _, k2 := range v2 {
  13273. if cr != nil {
  13274. cr.sendContainerState(containerMapKey)
  13275. }
  13276. ee.EncodeInt(int64(int64(k2)))
  13277. if cr != nil {
  13278. cr.sendContainerState(containerMapValue)
  13279. }
  13280. ee.EncodeString(c_UTF8, v[int64(k2)])
  13281. }
  13282. } else {
  13283. for k2, v2 := range v {
  13284. if cr != nil {
  13285. cr.sendContainerState(containerMapKey)
  13286. }
  13287. ee.EncodeInt(int64(k2))
  13288. if cr != nil {
  13289. cr.sendContainerState(containerMapValue)
  13290. }
  13291. ee.EncodeString(c_UTF8, v2)
  13292. }
  13293. }
  13294. if cr != nil {
  13295. cr.sendContainerState(containerMapEnd)
  13296. }
  13297. }
  13298. func (f *encFnInfo) fastpathEncMapInt64UintR(rv reflect.Value) {
  13299. fastpathTV.EncMapInt64UintV(rv.Interface().(map[int64]uint), fastpathCheckNilFalse, f.e)
  13300. }
  13301. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, checkNil bool, e *Encoder) {
  13302. ee := e.e
  13303. cr := e.cr
  13304. if checkNil && v == nil {
  13305. ee.EncodeNil()
  13306. return
  13307. }
  13308. ee.EncodeMapStart(len(v))
  13309. if e.h.Canonical {
  13310. v2 := make([]int64, len(v))
  13311. var i int
  13312. for k, _ := range v {
  13313. v2[i] = int64(k)
  13314. i++
  13315. }
  13316. sort.Sort(intSlice(v2))
  13317. for _, k2 := range v2 {
  13318. if cr != nil {
  13319. cr.sendContainerState(containerMapKey)
  13320. }
  13321. ee.EncodeInt(int64(int64(k2)))
  13322. if cr != nil {
  13323. cr.sendContainerState(containerMapValue)
  13324. }
  13325. ee.EncodeUint(uint64(v[int64(k2)]))
  13326. }
  13327. } else {
  13328. for k2, v2 := range v {
  13329. if cr != nil {
  13330. cr.sendContainerState(containerMapKey)
  13331. }
  13332. ee.EncodeInt(int64(k2))
  13333. if cr != nil {
  13334. cr.sendContainerState(containerMapValue)
  13335. }
  13336. ee.EncodeUint(uint64(v2))
  13337. }
  13338. }
  13339. if cr != nil {
  13340. cr.sendContainerState(containerMapEnd)
  13341. }
  13342. }
  13343. func (f *encFnInfo) fastpathEncMapInt64Uint8R(rv reflect.Value) {
  13344. fastpathTV.EncMapInt64Uint8V(rv.Interface().(map[int64]uint8), fastpathCheckNilFalse, f.e)
  13345. }
  13346. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, checkNil bool, e *Encoder) {
  13347. ee := e.e
  13348. cr := e.cr
  13349. if checkNil && v == nil {
  13350. ee.EncodeNil()
  13351. return
  13352. }
  13353. ee.EncodeMapStart(len(v))
  13354. if e.h.Canonical {
  13355. v2 := make([]int64, len(v))
  13356. var i int
  13357. for k, _ := range v {
  13358. v2[i] = int64(k)
  13359. i++
  13360. }
  13361. sort.Sort(intSlice(v2))
  13362. for _, k2 := range v2 {
  13363. if cr != nil {
  13364. cr.sendContainerState(containerMapKey)
  13365. }
  13366. ee.EncodeInt(int64(int64(k2)))
  13367. if cr != nil {
  13368. cr.sendContainerState(containerMapValue)
  13369. }
  13370. ee.EncodeUint(uint64(v[int64(k2)]))
  13371. }
  13372. } else {
  13373. for k2, v2 := range v {
  13374. if cr != nil {
  13375. cr.sendContainerState(containerMapKey)
  13376. }
  13377. ee.EncodeInt(int64(k2))
  13378. if cr != nil {
  13379. cr.sendContainerState(containerMapValue)
  13380. }
  13381. ee.EncodeUint(uint64(v2))
  13382. }
  13383. }
  13384. if cr != nil {
  13385. cr.sendContainerState(containerMapEnd)
  13386. }
  13387. }
  13388. func (f *encFnInfo) fastpathEncMapInt64Uint16R(rv reflect.Value) {
  13389. fastpathTV.EncMapInt64Uint16V(rv.Interface().(map[int64]uint16), fastpathCheckNilFalse, f.e)
  13390. }
  13391. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, checkNil bool, e *Encoder) {
  13392. ee := e.e
  13393. cr := e.cr
  13394. if checkNil && v == nil {
  13395. ee.EncodeNil()
  13396. return
  13397. }
  13398. ee.EncodeMapStart(len(v))
  13399. if e.h.Canonical {
  13400. v2 := make([]int64, len(v))
  13401. var i int
  13402. for k, _ := range v {
  13403. v2[i] = int64(k)
  13404. i++
  13405. }
  13406. sort.Sort(intSlice(v2))
  13407. for _, k2 := range v2 {
  13408. if cr != nil {
  13409. cr.sendContainerState(containerMapKey)
  13410. }
  13411. ee.EncodeInt(int64(int64(k2)))
  13412. if cr != nil {
  13413. cr.sendContainerState(containerMapValue)
  13414. }
  13415. ee.EncodeUint(uint64(v[int64(k2)]))
  13416. }
  13417. } else {
  13418. for k2, v2 := range v {
  13419. if cr != nil {
  13420. cr.sendContainerState(containerMapKey)
  13421. }
  13422. ee.EncodeInt(int64(k2))
  13423. if cr != nil {
  13424. cr.sendContainerState(containerMapValue)
  13425. }
  13426. ee.EncodeUint(uint64(v2))
  13427. }
  13428. }
  13429. if cr != nil {
  13430. cr.sendContainerState(containerMapEnd)
  13431. }
  13432. }
  13433. func (f *encFnInfo) fastpathEncMapInt64Uint32R(rv reflect.Value) {
  13434. fastpathTV.EncMapInt64Uint32V(rv.Interface().(map[int64]uint32), fastpathCheckNilFalse, f.e)
  13435. }
  13436. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, checkNil bool, e *Encoder) {
  13437. ee := e.e
  13438. cr := e.cr
  13439. if checkNil && v == nil {
  13440. ee.EncodeNil()
  13441. return
  13442. }
  13443. ee.EncodeMapStart(len(v))
  13444. if e.h.Canonical {
  13445. v2 := make([]int64, len(v))
  13446. var i int
  13447. for k, _ := range v {
  13448. v2[i] = int64(k)
  13449. i++
  13450. }
  13451. sort.Sort(intSlice(v2))
  13452. for _, k2 := range v2 {
  13453. if cr != nil {
  13454. cr.sendContainerState(containerMapKey)
  13455. }
  13456. ee.EncodeInt(int64(int64(k2)))
  13457. if cr != nil {
  13458. cr.sendContainerState(containerMapValue)
  13459. }
  13460. ee.EncodeUint(uint64(v[int64(k2)]))
  13461. }
  13462. } else {
  13463. for k2, v2 := range v {
  13464. if cr != nil {
  13465. cr.sendContainerState(containerMapKey)
  13466. }
  13467. ee.EncodeInt(int64(k2))
  13468. if cr != nil {
  13469. cr.sendContainerState(containerMapValue)
  13470. }
  13471. ee.EncodeUint(uint64(v2))
  13472. }
  13473. }
  13474. if cr != nil {
  13475. cr.sendContainerState(containerMapEnd)
  13476. }
  13477. }
  13478. func (f *encFnInfo) fastpathEncMapInt64Uint64R(rv reflect.Value) {
  13479. fastpathTV.EncMapInt64Uint64V(rv.Interface().(map[int64]uint64), fastpathCheckNilFalse, f.e)
  13480. }
  13481. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, checkNil bool, e *Encoder) {
  13482. ee := e.e
  13483. cr := e.cr
  13484. if checkNil && v == nil {
  13485. ee.EncodeNil()
  13486. return
  13487. }
  13488. ee.EncodeMapStart(len(v))
  13489. if e.h.Canonical {
  13490. v2 := make([]int64, len(v))
  13491. var i int
  13492. for k, _ := range v {
  13493. v2[i] = int64(k)
  13494. i++
  13495. }
  13496. sort.Sort(intSlice(v2))
  13497. for _, k2 := range v2 {
  13498. if cr != nil {
  13499. cr.sendContainerState(containerMapKey)
  13500. }
  13501. ee.EncodeInt(int64(int64(k2)))
  13502. if cr != nil {
  13503. cr.sendContainerState(containerMapValue)
  13504. }
  13505. ee.EncodeUint(uint64(v[int64(k2)]))
  13506. }
  13507. } else {
  13508. for k2, v2 := range v {
  13509. if cr != nil {
  13510. cr.sendContainerState(containerMapKey)
  13511. }
  13512. ee.EncodeInt(int64(k2))
  13513. if cr != nil {
  13514. cr.sendContainerState(containerMapValue)
  13515. }
  13516. ee.EncodeUint(uint64(v2))
  13517. }
  13518. }
  13519. if cr != nil {
  13520. cr.sendContainerState(containerMapEnd)
  13521. }
  13522. }
  13523. func (f *encFnInfo) fastpathEncMapInt64UintptrR(rv reflect.Value) {
  13524. fastpathTV.EncMapInt64UintptrV(rv.Interface().(map[int64]uintptr), fastpathCheckNilFalse, f.e)
  13525. }
  13526. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, checkNil bool, e *Encoder) {
  13527. ee := e.e
  13528. cr := e.cr
  13529. if checkNil && v == nil {
  13530. ee.EncodeNil()
  13531. return
  13532. }
  13533. ee.EncodeMapStart(len(v))
  13534. if e.h.Canonical {
  13535. v2 := make([]int64, len(v))
  13536. var i int
  13537. for k, _ := range v {
  13538. v2[i] = int64(k)
  13539. i++
  13540. }
  13541. sort.Sort(intSlice(v2))
  13542. for _, k2 := range v2 {
  13543. if cr != nil {
  13544. cr.sendContainerState(containerMapKey)
  13545. }
  13546. ee.EncodeInt(int64(int64(k2)))
  13547. if cr != nil {
  13548. cr.sendContainerState(containerMapValue)
  13549. }
  13550. e.encode(v[int64(k2)])
  13551. }
  13552. } else {
  13553. for k2, v2 := range v {
  13554. if cr != nil {
  13555. cr.sendContainerState(containerMapKey)
  13556. }
  13557. ee.EncodeInt(int64(k2))
  13558. if cr != nil {
  13559. cr.sendContainerState(containerMapValue)
  13560. }
  13561. e.encode(v2)
  13562. }
  13563. }
  13564. if cr != nil {
  13565. cr.sendContainerState(containerMapEnd)
  13566. }
  13567. }
  13568. func (f *encFnInfo) fastpathEncMapInt64IntR(rv reflect.Value) {
  13569. fastpathTV.EncMapInt64IntV(rv.Interface().(map[int64]int), fastpathCheckNilFalse, f.e)
  13570. }
  13571. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, checkNil bool, e *Encoder) {
  13572. ee := e.e
  13573. cr := e.cr
  13574. if checkNil && v == nil {
  13575. ee.EncodeNil()
  13576. return
  13577. }
  13578. ee.EncodeMapStart(len(v))
  13579. if e.h.Canonical {
  13580. v2 := make([]int64, len(v))
  13581. var i int
  13582. for k, _ := range v {
  13583. v2[i] = int64(k)
  13584. i++
  13585. }
  13586. sort.Sort(intSlice(v2))
  13587. for _, k2 := range v2 {
  13588. if cr != nil {
  13589. cr.sendContainerState(containerMapKey)
  13590. }
  13591. ee.EncodeInt(int64(int64(k2)))
  13592. if cr != nil {
  13593. cr.sendContainerState(containerMapValue)
  13594. }
  13595. ee.EncodeInt(int64(v[int64(k2)]))
  13596. }
  13597. } else {
  13598. for k2, v2 := range v {
  13599. if cr != nil {
  13600. cr.sendContainerState(containerMapKey)
  13601. }
  13602. ee.EncodeInt(int64(k2))
  13603. if cr != nil {
  13604. cr.sendContainerState(containerMapValue)
  13605. }
  13606. ee.EncodeInt(int64(v2))
  13607. }
  13608. }
  13609. if cr != nil {
  13610. cr.sendContainerState(containerMapEnd)
  13611. }
  13612. }
  13613. func (f *encFnInfo) fastpathEncMapInt64Int8R(rv reflect.Value) {
  13614. fastpathTV.EncMapInt64Int8V(rv.Interface().(map[int64]int8), fastpathCheckNilFalse, f.e)
  13615. }
  13616. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, checkNil bool, e *Encoder) {
  13617. ee := e.e
  13618. cr := e.cr
  13619. if checkNil && v == nil {
  13620. ee.EncodeNil()
  13621. return
  13622. }
  13623. ee.EncodeMapStart(len(v))
  13624. if e.h.Canonical {
  13625. v2 := make([]int64, len(v))
  13626. var i int
  13627. for k, _ := range v {
  13628. v2[i] = int64(k)
  13629. i++
  13630. }
  13631. sort.Sort(intSlice(v2))
  13632. for _, k2 := range v2 {
  13633. if cr != nil {
  13634. cr.sendContainerState(containerMapKey)
  13635. }
  13636. ee.EncodeInt(int64(int64(k2)))
  13637. if cr != nil {
  13638. cr.sendContainerState(containerMapValue)
  13639. }
  13640. ee.EncodeInt(int64(v[int64(k2)]))
  13641. }
  13642. } else {
  13643. for k2, v2 := range v {
  13644. if cr != nil {
  13645. cr.sendContainerState(containerMapKey)
  13646. }
  13647. ee.EncodeInt(int64(k2))
  13648. if cr != nil {
  13649. cr.sendContainerState(containerMapValue)
  13650. }
  13651. ee.EncodeInt(int64(v2))
  13652. }
  13653. }
  13654. if cr != nil {
  13655. cr.sendContainerState(containerMapEnd)
  13656. }
  13657. }
  13658. func (f *encFnInfo) fastpathEncMapInt64Int16R(rv reflect.Value) {
  13659. fastpathTV.EncMapInt64Int16V(rv.Interface().(map[int64]int16), fastpathCheckNilFalse, f.e)
  13660. }
  13661. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, checkNil bool, e *Encoder) {
  13662. ee := e.e
  13663. cr := e.cr
  13664. if checkNil && v == nil {
  13665. ee.EncodeNil()
  13666. return
  13667. }
  13668. ee.EncodeMapStart(len(v))
  13669. if e.h.Canonical {
  13670. v2 := make([]int64, len(v))
  13671. var i int
  13672. for k, _ := range v {
  13673. v2[i] = int64(k)
  13674. i++
  13675. }
  13676. sort.Sort(intSlice(v2))
  13677. for _, k2 := range v2 {
  13678. if cr != nil {
  13679. cr.sendContainerState(containerMapKey)
  13680. }
  13681. ee.EncodeInt(int64(int64(k2)))
  13682. if cr != nil {
  13683. cr.sendContainerState(containerMapValue)
  13684. }
  13685. ee.EncodeInt(int64(v[int64(k2)]))
  13686. }
  13687. } else {
  13688. for k2, v2 := range v {
  13689. if cr != nil {
  13690. cr.sendContainerState(containerMapKey)
  13691. }
  13692. ee.EncodeInt(int64(k2))
  13693. if cr != nil {
  13694. cr.sendContainerState(containerMapValue)
  13695. }
  13696. ee.EncodeInt(int64(v2))
  13697. }
  13698. }
  13699. if cr != nil {
  13700. cr.sendContainerState(containerMapEnd)
  13701. }
  13702. }
  13703. func (f *encFnInfo) fastpathEncMapInt64Int32R(rv reflect.Value) {
  13704. fastpathTV.EncMapInt64Int32V(rv.Interface().(map[int64]int32), fastpathCheckNilFalse, f.e)
  13705. }
  13706. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, checkNil bool, e *Encoder) {
  13707. ee := e.e
  13708. cr := e.cr
  13709. if checkNil && v == nil {
  13710. ee.EncodeNil()
  13711. return
  13712. }
  13713. ee.EncodeMapStart(len(v))
  13714. if e.h.Canonical {
  13715. v2 := make([]int64, len(v))
  13716. var i int
  13717. for k, _ := range v {
  13718. v2[i] = int64(k)
  13719. i++
  13720. }
  13721. sort.Sort(intSlice(v2))
  13722. for _, k2 := range v2 {
  13723. if cr != nil {
  13724. cr.sendContainerState(containerMapKey)
  13725. }
  13726. ee.EncodeInt(int64(int64(k2)))
  13727. if cr != nil {
  13728. cr.sendContainerState(containerMapValue)
  13729. }
  13730. ee.EncodeInt(int64(v[int64(k2)]))
  13731. }
  13732. } else {
  13733. for k2, v2 := range v {
  13734. if cr != nil {
  13735. cr.sendContainerState(containerMapKey)
  13736. }
  13737. ee.EncodeInt(int64(k2))
  13738. if cr != nil {
  13739. cr.sendContainerState(containerMapValue)
  13740. }
  13741. ee.EncodeInt(int64(v2))
  13742. }
  13743. }
  13744. if cr != nil {
  13745. cr.sendContainerState(containerMapEnd)
  13746. }
  13747. }
  13748. func (f *encFnInfo) fastpathEncMapInt64Int64R(rv reflect.Value) {
  13749. fastpathTV.EncMapInt64Int64V(rv.Interface().(map[int64]int64), fastpathCheckNilFalse, f.e)
  13750. }
  13751. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, checkNil bool, e *Encoder) {
  13752. ee := e.e
  13753. cr := e.cr
  13754. if checkNil && v == nil {
  13755. ee.EncodeNil()
  13756. return
  13757. }
  13758. ee.EncodeMapStart(len(v))
  13759. if e.h.Canonical {
  13760. v2 := make([]int64, len(v))
  13761. var i int
  13762. for k, _ := range v {
  13763. v2[i] = int64(k)
  13764. i++
  13765. }
  13766. sort.Sort(intSlice(v2))
  13767. for _, k2 := range v2 {
  13768. if cr != nil {
  13769. cr.sendContainerState(containerMapKey)
  13770. }
  13771. ee.EncodeInt(int64(int64(k2)))
  13772. if cr != nil {
  13773. cr.sendContainerState(containerMapValue)
  13774. }
  13775. ee.EncodeInt(int64(v[int64(k2)]))
  13776. }
  13777. } else {
  13778. for k2, v2 := range v {
  13779. if cr != nil {
  13780. cr.sendContainerState(containerMapKey)
  13781. }
  13782. ee.EncodeInt(int64(k2))
  13783. if cr != nil {
  13784. cr.sendContainerState(containerMapValue)
  13785. }
  13786. ee.EncodeInt(int64(v2))
  13787. }
  13788. }
  13789. if cr != nil {
  13790. cr.sendContainerState(containerMapEnd)
  13791. }
  13792. }
  13793. func (f *encFnInfo) fastpathEncMapInt64Float32R(rv reflect.Value) {
  13794. fastpathTV.EncMapInt64Float32V(rv.Interface().(map[int64]float32), fastpathCheckNilFalse, f.e)
  13795. }
  13796. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, checkNil bool, e *Encoder) {
  13797. ee := e.e
  13798. cr := e.cr
  13799. if checkNil && v == nil {
  13800. ee.EncodeNil()
  13801. return
  13802. }
  13803. ee.EncodeMapStart(len(v))
  13804. if e.h.Canonical {
  13805. v2 := make([]int64, len(v))
  13806. var i int
  13807. for k, _ := range v {
  13808. v2[i] = int64(k)
  13809. i++
  13810. }
  13811. sort.Sort(intSlice(v2))
  13812. for _, k2 := range v2 {
  13813. if cr != nil {
  13814. cr.sendContainerState(containerMapKey)
  13815. }
  13816. ee.EncodeInt(int64(int64(k2)))
  13817. if cr != nil {
  13818. cr.sendContainerState(containerMapValue)
  13819. }
  13820. ee.EncodeFloat32(v[int64(k2)])
  13821. }
  13822. } else {
  13823. for k2, v2 := range v {
  13824. if cr != nil {
  13825. cr.sendContainerState(containerMapKey)
  13826. }
  13827. ee.EncodeInt(int64(k2))
  13828. if cr != nil {
  13829. cr.sendContainerState(containerMapValue)
  13830. }
  13831. ee.EncodeFloat32(v2)
  13832. }
  13833. }
  13834. if cr != nil {
  13835. cr.sendContainerState(containerMapEnd)
  13836. }
  13837. }
  13838. func (f *encFnInfo) fastpathEncMapInt64Float64R(rv reflect.Value) {
  13839. fastpathTV.EncMapInt64Float64V(rv.Interface().(map[int64]float64), fastpathCheckNilFalse, f.e)
  13840. }
  13841. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, checkNil bool, e *Encoder) {
  13842. ee := e.e
  13843. cr := e.cr
  13844. if checkNil && v == nil {
  13845. ee.EncodeNil()
  13846. return
  13847. }
  13848. ee.EncodeMapStart(len(v))
  13849. if e.h.Canonical {
  13850. v2 := make([]int64, len(v))
  13851. var i int
  13852. for k, _ := range v {
  13853. v2[i] = int64(k)
  13854. i++
  13855. }
  13856. sort.Sort(intSlice(v2))
  13857. for _, k2 := range v2 {
  13858. if cr != nil {
  13859. cr.sendContainerState(containerMapKey)
  13860. }
  13861. ee.EncodeInt(int64(int64(k2)))
  13862. if cr != nil {
  13863. cr.sendContainerState(containerMapValue)
  13864. }
  13865. ee.EncodeFloat64(v[int64(k2)])
  13866. }
  13867. } else {
  13868. for k2, v2 := range v {
  13869. if cr != nil {
  13870. cr.sendContainerState(containerMapKey)
  13871. }
  13872. ee.EncodeInt(int64(k2))
  13873. if cr != nil {
  13874. cr.sendContainerState(containerMapValue)
  13875. }
  13876. ee.EncodeFloat64(v2)
  13877. }
  13878. }
  13879. if cr != nil {
  13880. cr.sendContainerState(containerMapEnd)
  13881. }
  13882. }
  13883. func (f *encFnInfo) fastpathEncMapInt64BoolR(rv reflect.Value) {
  13884. fastpathTV.EncMapInt64BoolV(rv.Interface().(map[int64]bool), fastpathCheckNilFalse, f.e)
  13885. }
  13886. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, checkNil bool, e *Encoder) {
  13887. ee := e.e
  13888. cr := e.cr
  13889. if checkNil && v == nil {
  13890. ee.EncodeNil()
  13891. return
  13892. }
  13893. ee.EncodeMapStart(len(v))
  13894. if e.h.Canonical {
  13895. v2 := make([]int64, len(v))
  13896. var i int
  13897. for k, _ := range v {
  13898. v2[i] = int64(k)
  13899. i++
  13900. }
  13901. sort.Sort(intSlice(v2))
  13902. for _, k2 := range v2 {
  13903. if cr != nil {
  13904. cr.sendContainerState(containerMapKey)
  13905. }
  13906. ee.EncodeInt(int64(int64(k2)))
  13907. if cr != nil {
  13908. cr.sendContainerState(containerMapValue)
  13909. }
  13910. ee.EncodeBool(v[int64(k2)])
  13911. }
  13912. } else {
  13913. for k2, v2 := range v {
  13914. if cr != nil {
  13915. cr.sendContainerState(containerMapKey)
  13916. }
  13917. ee.EncodeInt(int64(k2))
  13918. if cr != nil {
  13919. cr.sendContainerState(containerMapValue)
  13920. }
  13921. ee.EncodeBool(v2)
  13922. }
  13923. }
  13924. if cr != nil {
  13925. cr.sendContainerState(containerMapEnd)
  13926. }
  13927. }
  13928. func (f *encFnInfo) fastpathEncMapBoolIntfR(rv reflect.Value) {
  13929. fastpathTV.EncMapBoolIntfV(rv.Interface().(map[bool]interface{}), fastpathCheckNilFalse, f.e)
  13930. }
  13931. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, checkNil bool, e *Encoder) {
  13932. ee := e.e
  13933. cr := e.cr
  13934. if checkNil && v == nil {
  13935. ee.EncodeNil()
  13936. return
  13937. }
  13938. ee.EncodeMapStart(len(v))
  13939. if e.h.Canonical {
  13940. v2 := make([]bool, len(v))
  13941. var i int
  13942. for k, _ := range v {
  13943. v2[i] = bool(k)
  13944. i++
  13945. }
  13946. sort.Sort(boolSlice(v2))
  13947. for _, k2 := range v2 {
  13948. if cr != nil {
  13949. cr.sendContainerState(containerMapKey)
  13950. }
  13951. ee.EncodeBool(bool(k2))
  13952. if cr != nil {
  13953. cr.sendContainerState(containerMapValue)
  13954. }
  13955. e.encode(v[bool(k2)])
  13956. }
  13957. } else {
  13958. for k2, v2 := range v {
  13959. if cr != nil {
  13960. cr.sendContainerState(containerMapKey)
  13961. }
  13962. ee.EncodeBool(k2)
  13963. if cr != nil {
  13964. cr.sendContainerState(containerMapValue)
  13965. }
  13966. e.encode(v2)
  13967. }
  13968. }
  13969. if cr != nil {
  13970. cr.sendContainerState(containerMapEnd)
  13971. }
  13972. }
  13973. func (f *encFnInfo) fastpathEncMapBoolStringR(rv reflect.Value) {
  13974. fastpathTV.EncMapBoolStringV(rv.Interface().(map[bool]string), fastpathCheckNilFalse, f.e)
  13975. }
  13976. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, checkNil bool, e *Encoder) {
  13977. ee := e.e
  13978. cr := e.cr
  13979. if checkNil && v == nil {
  13980. ee.EncodeNil()
  13981. return
  13982. }
  13983. ee.EncodeMapStart(len(v))
  13984. if e.h.Canonical {
  13985. v2 := make([]bool, len(v))
  13986. var i int
  13987. for k, _ := range v {
  13988. v2[i] = bool(k)
  13989. i++
  13990. }
  13991. sort.Sort(boolSlice(v2))
  13992. for _, k2 := range v2 {
  13993. if cr != nil {
  13994. cr.sendContainerState(containerMapKey)
  13995. }
  13996. ee.EncodeBool(bool(k2))
  13997. if cr != nil {
  13998. cr.sendContainerState(containerMapValue)
  13999. }
  14000. ee.EncodeString(c_UTF8, v[bool(k2)])
  14001. }
  14002. } else {
  14003. for k2, v2 := range v {
  14004. if cr != nil {
  14005. cr.sendContainerState(containerMapKey)
  14006. }
  14007. ee.EncodeBool(k2)
  14008. if cr != nil {
  14009. cr.sendContainerState(containerMapValue)
  14010. }
  14011. ee.EncodeString(c_UTF8, v2)
  14012. }
  14013. }
  14014. if cr != nil {
  14015. cr.sendContainerState(containerMapEnd)
  14016. }
  14017. }
  14018. func (f *encFnInfo) fastpathEncMapBoolUintR(rv reflect.Value) {
  14019. fastpathTV.EncMapBoolUintV(rv.Interface().(map[bool]uint), fastpathCheckNilFalse, f.e)
  14020. }
  14021. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, checkNil bool, e *Encoder) {
  14022. ee := e.e
  14023. cr := e.cr
  14024. if checkNil && v == nil {
  14025. ee.EncodeNil()
  14026. return
  14027. }
  14028. ee.EncodeMapStart(len(v))
  14029. if e.h.Canonical {
  14030. v2 := make([]bool, len(v))
  14031. var i int
  14032. for k, _ := range v {
  14033. v2[i] = bool(k)
  14034. i++
  14035. }
  14036. sort.Sort(boolSlice(v2))
  14037. for _, k2 := range v2 {
  14038. if cr != nil {
  14039. cr.sendContainerState(containerMapKey)
  14040. }
  14041. ee.EncodeBool(bool(k2))
  14042. if cr != nil {
  14043. cr.sendContainerState(containerMapValue)
  14044. }
  14045. ee.EncodeUint(uint64(v[bool(k2)]))
  14046. }
  14047. } else {
  14048. for k2, v2 := range v {
  14049. if cr != nil {
  14050. cr.sendContainerState(containerMapKey)
  14051. }
  14052. ee.EncodeBool(k2)
  14053. if cr != nil {
  14054. cr.sendContainerState(containerMapValue)
  14055. }
  14056. ee.EncodeUint(uint64(v2))
  14057. }
  14058. }
  14059. if cr != nil {
  14060. cr.sendContainerState(containerMapEnd)
  14061. }
  14062. }
  14063. func (f *encFnInfo) fastpathEncMapBoolUint8R(rv reflect.Value) {
  14064. fastpathTV.EncMapBoolUint8V(rv.Interface().(map[bool]uint8), fastpathCheckNilFalse, f.e)
  14065. }
  14066. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, checkNil bool, e *Encoder) {
  14067. ee := e.e
  14068. cr := e.cr
  14069. if checkNil && v == nil {
  14070. ee.EncodeNil()
  14071. return
  14072. }
  14073. ee.EncodeMapStart(len(v))
  14074. if e.h.Canonical {
  14075. v2 := make([]bool, len(v))
  14076. var i int
  14077. for k, _ := range v {
  14078. v2[i] = bool(k)
  14079. i++
  14080. }
  14081. sort.Sort(boolSlice(v2))
  14082. for _, k2 := range v2 {
  14083. if cr != nil {
  14084. cr.sendContainerState(containerMapKey)
  14085. }
  14086. ee.EncodeBool(bool(k2))
  14087. if cr != nil {
  14088. cr.sendContainerState(containerMapValue)
  14089. }
  14090. ee.EncodeUint(uint64(v[bool(k2)]))
  14091. }
  14092. } else {
  14093. for k2, v2 := range v {
  14094. if cr != nil {
  14095. cr.sendContainerState(containerMapKey)
  14096. }
  14097. ee.EncodeBool(k2)
  14098. if cr != nil {
  14099. cr.sendContainerState(containerMapValue)
  14100. }
  14101. ee.EncodeUint(uint64(v2))
  14102. }
  14103. }
  14104. if cr != nil {
  14105. cr.sendContainerState(containerMapEnd)
  14106. }
  14107. }
  14108. func (f *encFnInfo) fastpathEncMapBoolUint16R(rv reflect.Value) {
  14109. fastpathTV.EncMapBoolUint16V(rv.Interface().(map[bool]uint16), fastpathCheckNilFalse, f.e)
  14110. }
  14111. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, checkNil bool, e *Encoder) {
  14112. ee := e.e
  14113. cr := e.cr
  14114. if checkNil && v == nil {
  14115. ee.EncodeNil()
  14116. return
  14117. }
  14118. ee.EncodeMapStart(len(v))
  14119. if e.h.Canonical {
  14120. v2 := make([]bool, len(v))
  14121. var i int
  14122. for k, _ := range v {
  14123. v2[i] = bool(k)
  14124. i++
  14125. }
  14126. sort.Sort(boolSlice(v2))
  14127. for _, k2 := range v2 {
  14128. if cr != nil {
  14129. cr.sendContainerState(containerMapKey)
  14130. }
  14131. ee.EncodeBool(bool(k2))
  14132. if cr != nil {
  14133. cr.sendContainerState(containerMapValue)
  14134. }
  14135. ee.EncodeUint(uint64(v[bool(k2)]))
  14136. }
  14137. } else {
  14138. for k2, v2 := range v {
  14139. if cr != nil {
  14140. cr.sendContainerState(containerMapKey)
  14141. }
  14142. ee.EncodeBool(k2)
  14143. if cr != nil {
  14144. cr.sendContainerState(containerMapValue)
  14145. }
  14146. ee.EncodeUint(uint64(v2))
  14147. }
  14148. }
  14149. if cr != nil {
  14150. cr.sendContainerState(containerMapEnd)
  14151. }
  14152. }
  14153. func (f *encFnInfo) fastpathEncMapBoolUint32R(rv reflect.Value) {
  14154. fastpathTV.EncMapBoolUint32V(rv.Interface().(map[bool]uint32), fastpathCheckNilFalse, f.e)
  14155. }
  14156. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, checkNil bool, e *Encoder) {
  14157. ee := e.e
  14158. cr := e.cr
  14159. if checkNil && v == nil {
  14160. ee.EncodeNil()
  14161. return
  14162. }
  14163. ee.EncodeMapStart(len(v))
  14164. if e.h.Canonical {
  14165. v2 := make([]bool, len(v))
  14166. var i int
  14167. for k, _ := range v {
  14168. v2[i] = bool(k)
  14169. i++
  14170. }
  14171. sort.Sort(boolSlice(v2))
  14172. for _, k2 := range v2 {
  14173. if cr != nil {
  14174. cr.sendContainerState(containerMapKey)
  14175. }
  14176. ee.EncodeBool(bool(k2))
  14177. if cr != nil {
  14178. cr.sendContainerState(containerMapValue)
  14179. }
  14180. ee.EncodeUint(uint64(v[bool(k2)]))
  14181. }
  14182. } else {
  14183. for k2, v2 := range v {
  14184. if cr != nil {
  14185. cr.sendContainerState(containerMapKey)
  14186. }
  14187. ee.EncodeBool(k2)
  14188. if cr != nil {
  14189. cr.sendContainerState(containerMapValue)
  14190. }
  14191. ee.EncodeUint(uint64(v2))
  14192. }
  14193. }
  14194. if cr != nil {
  14195. cr.sendContainerState(containerMapEnd)
  14196. }
  14197. }
  14198. func (f *encFnInfo) fastpathEncMapBoolUint64R(rv reflect.Value) {
  14199. fastpathTV.EncMapBoolUint64V(rv.Interface().(map[bool]uint64), fastpathCheckNilFalse, f.e)
  14200. }
  14201. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, checkNil bool, e *Encoder) {
  14202. ee := e.e
  14203. cr := e.cr
  14204. if checkNil && v == nil {
  14205. ee.EncodeNil()
  14206. return
  14207. }
  14208. ee.EncodeMapStart(len(v))
  14209. if e.h.Canonical {
  14210. v2 := make([]bool, len(v))
  14211. var i int
  14212. for k, _ := range v {
  14213. v2[i] = bool(k)
  14214. i++
  14215. }
  14216. sort.Sort(boolSlice(v2))
  14217. for _, k2 := range v2 {
  14218. if cr != nil {
  14219. cr.sendContainerState(containerMapKey)
  14220. }
  14221. ee.EncodeBool(bool(k2))
  14222. if cr != nil {
  14223. cr.sendContainerState(containerMapValue)
  14224. }
  14225. ee.EncodeUint(uint64(v[bool(k2)]))
  14226. }
  14227. } else {
  14228. for k2, v2 := range v {
  14229. if cr != nil {
  14230. cr.sendContainerState(containerMapKey)
  14231. }
  14232. ee.EncodeBool(k2)
  14233. if cr != nil {
  14234. cr.sendContainerState(containerMapValue)
  14235. }
  14236. ee.EncodeUint(uint64(v2))
  14237. }
  14238. }
  14239. if cr != nil {
  14240. cr.sendContainerState(containerMapEnd)
  14241. }
  14242. }
  14243. func (f *encFnInfo) fastpathEncMapBoolUintptrR(rv reflect.Value) {
  14244. fastpathTV.EncMapBoolUintptrV(rv.Interface().(map[bool]uintptr), fastpathCheckNilFalse, f.e)
  14245. }
  14246. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, checkNil bool, e *Encoder) {
  14247. ee := e.e
  14248. cr := e.cr
  14249. if checkNil && v == nil {
  14250. ee.EncodeNil()
  14251. return
  14252. }
  14253. ee.EncodeMapStart(len(v))
  14254. if e.h.Canonical {
  14255. v2 := make([]bool, len(v))
  14256. var i int
  14257. for k, _ := range v {
  14258. v2[i] = bool(k)
  14259. i++
  14260. }
  14261. sort.Sort(boolSlice(v2))
  14262. for _, k2 := range v2 {
  14263. if cr != nil {
  14264. cr.sendContainerState(containerMapKey)
  14265. }
  14266. ee.EncodeBool(bool(k2))
  14267. if cr != nil {
  14268. cr.sendContainerState(containerMapValue)
  14269. }
  14270. e.encode(v[bool(k2)])
  14271. }
  14272. } else {
  14273. for k2, v2 := range v {
  14274. if cr != nil {
  14275. cr.sendContainerState(containerMapKey)
  14276. }
  14277. ee.EncodeBool(k2)
  14278. if cr != nil {
  14279. cr.sendContainerState(containerMapValue)
  14280. }
  14281. e.encode(v2)
  14282. }
  14283. }
  14284. if cr != nil {
  14285. cr.sendContainerState(containerMapEnd)
  14286. }
  14287. }
  14288. func (f *encFnInfo) fastpathEncMapBoolIntR(rv reflect.Value) {
  14289. fastpathTV.EncMapBoolIntV(rv.Interface().(map[bool]int), fastpathCheckNilFalse, f.e)
  14290. }
  14291. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, checkNil bool, e *Encoder) {
  14292. ee := e.e
  14293. cr := e.cr
  14294. if checkNil && v == nil {
  14295. ee.EncodeNil()
  14296. return
  14297. }
  14298. ee.EncodeMapStart(len(v))
  14299. if e.h.Canonical {
  14300. v2 := make([]bool, len(v))
  14301. var i int
  14302. for k, _ := range v {
  14303. v2[i] = bool(k)
  14304. i++
  14305. }
  14306. sort.Sort(boolSlice(v2))
  14307. for _, k2 := range v2 {
  14308. if cr != nil {
  14309. cr.sendContainerState(containerMapKey)
  14310. }
  14311. ee.EncodeBool(bool(k2))
  14312. if cr != nil {
  14313. cr.sendContainerState(containerMapValue)
  14314. }
  14315. ee.EncodeInt(int64(v[bool(k2)]))
  14316. }
  14317. } else {
  14318. for k2, v2 := range v {
  14319. if cr != nil {
  14320. cr.sendContainerState(containerMapKey)
  14321. }
  14322. ee.EncodeBool(k2)
  14323. if cr != nil {
  14324. cr.sendContainerState(containerMapValue)
  14325. }
  14326. ee.EncodeInt(int64(v2))
  14327. }
  14328. }
  14329. if cr != nil {
  14330. cr.sendContainerState(containerMapEnd)
  14331. }
  14332. }
  14333. func (f *encFnInfo) fastpathEncMapBoolInt8R(rv reflect.Value) {
  14334. fastpathTV.EncMapBoolInt8V(rv.Interface().(map[bool]int8), fastpathCheckNilFalse, f.e)
  14335. }
  14336. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, checkNil bool, e *Encoder) {
  14337. ee := e.e
  14338. cr := e.cr
  14339. if checkNil && v == nil {
  14340. ee.EncodeNil()
  14341. return
  14342. }
  14343. ee.EncodeMapStart(len(v))
  14344. if e.h.Canonical {
  14345. v2 := make([]bool, len(v))
  14346. var i int
  14347. for k, _ := range v {
  14348. v2[i] = bool(k)
  14349. i++
  14350. }
  14351. sort.Sort(boolSlice(v2))
  14352. for _, k2 := range v2 {
  14353. if cr != nil {
  14354. cr.sendContainerState(containerMapKey)
  14355. }
  14356. ee.EncodeBool(bool(k2))
  14357. if cr != nil {
  14358. cr.sendContainerState(containerMapValue)
  14359. }
  14360. ee.EncodeInt(int64(v[bool(k2)]))
  14361. }
  14362. } else {
  14363. for k2, v2 := range v {
  14364. if cr != nil {
  14365. cr.sendContainerState(containerMapKey)
  14366. }
  14367. ee.EncodeBool(k2)
  14368. if cr != nil {
  14369. cr.sendContainerState(containerMapValue)
  14370. }
  14371. ee.EncodeInt(int64(v2))
  14372. }
  14373. }
  14374. if cr != nil {
  14375. cr.sendContainerState(containerMapEnd)
  14376. }
  14377. }
  14378. func (f *encFnInfo) fastpathEncMapBoolInt16R(rv reflect.Value) {
  14379. fastpathTV.EncMapBoolInt16V(rv.Interface().(map[bool]int16), fastpathCheckNilFalse, f.e)
  14380. }
  14381. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, checkNil bool, e *Encoder) {
  14382. ee := e.e
  14383. cr := e.cr
  14384. if checkNil && v == nil {
  14385. ee.EncodeNil()
  14386. return
  14387. }
  14388. ee.EncodeMapStart(len(v))
  14389. if e.h.Canonical {
  14390. v2 := make([]bool, len(v))
  14391. var i int
  14392. for k, _ := range v {
  14393. v2[i] = bool(k)
  14394. i++
  14395. }
  14396. sort.Sort(boolSlice(v2))
  14397. for _, k2 := range v2 {
  14398. if cr != nil {
  14399. cr.sendContainerState(containerMapKey)
  14400. }
  14401. ee.EncodeBool(bool(k2))
  14402. if cr != nil {
  14403. cr.sendContainerState(containerMapValue)
  14404. }
  14405. ee.EncodeInt(int64(v[bool(k2)]))
  14406. }
  14407. } else {
  14408. for k2, v2 := range v {
  14409. if cr != nil {
  14410. cr.sendContainerState(containerMapKey)
  14411. }
  14412. ee.EncodeBool(k2)
  14413. if cr != nil {
  14414. cr.sendContainerState(containerMapValue)
  14415. }
  14416. ee.EncodeInt(int64(v2))
  14417. }
  14418. }
  14419. if cr != nil {
  14420. cr.sendContainerState(containerMapEnd)
  14421. }
  14422. }
  14423. func (f *encFnInfo) fastpathEncMapBoolInt32R(rv reflect.Value) {
  14424. fastpathTV.EncMapBoolInt32V(rv.Interface().(map[bool]int32), fastpathCheckNilFalse, f.e)
  14425. }
  14426. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, checkNil bool, e *Encoder) {
  14427. ee := e.e
  14428. cr := e.cr
  14429. if checkNil && v == nil {
  14430. ee.EncodeNil()
  14431. return
  14432. }
  14433. ee.EncodeMapStart(len(v))
  14434. if e.h.Canonical {
  14435. v2 := make([]bool, len(v))
  14436. var i int
  14437. for k, _ := range v {
  14438. v2[i] = bool(k)
  14439. i++
  14440. }
  14441. sort.Sort(boolSlice(v2))
  14442. for _, k2 := range v2 {
  14443. if cr != nil {
  14444. cr.sendContainerState(containerMapKey)
  14445. }
  14446. ee.EncodeBool(bool(k2))
  14447. if cr != nil {
  14448. cr.sendContainerState(containerMapValue)
  14449. }
  14450. ee.EncodeInt(int64(v[bool(k2)]))
  14451. }
  14452. } else {
  14453. for k2, v2 := range v {
  14454. if cr != nil {
  14455. cr.sendContainerState(containerMapKey)
  14456. }
  14457. ee.EncodeBool(k2)
  14458. if cr != nil {
  14459. cr.sendContainerState(containerMapValue)
  14460. }
  14461. ee.EncodeInt(int64(v2))
  14462. }
  14463. }
  14464. if cr != nil {
  14465. cr.sendContainerState(containerMapEnd)
  14466. }
  14467. }
  14468. func (f *encFnInfo) fastpathEncMapBoolInt64R(rv reflect.Value) {
  14469. fastpathTV.EncMapBoolInt64V(rv.Interface().(map[bool]int64), fastpathCheckNilFalse, f.e)
  14470. }
  14471. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, checkNil bool, e *Encoder) {
  14472. ee := e.e
  14473. cr := e.cr
  14474. if checkNil && v == nil {
  14475. ee.EncodeNil()
  14476. return
  14477. }
  14478. ee.EncodeMapStart(len(v))
  14479. if e.h.Canonical {
  14480. v2 := make([]bool, len(v))
  14481. var i int
  14482. for k, _ := range v {
  14483. v2[i] = bool(k)
  14484. i++
  14485. }
  14486. sort.Sort(boolSlice(v2))
  14487. for _, k2 := range v2 {
  14488. if cr != nil {
  14489. cr.sendContainerState(containerMapKey)
  14490. }
  14491. ee.EncodeBool(bool(k2))
  14492. if cr != nil {
  14493. cr.sendContainerState(containerMapValue)
  14494. }
  14495. ee.EncodeInt(int64(v[bool(k2)]))
  14496. }
  14497. } else {
  14498. for k2, v2 := range v {
  14499. if cr != nil {
  14500. cr.sendContainerState(containerMapKey)
  14501. }
  14502. ee.EncodeBool(k2)
  14503. if cr != nil {
  14504. cr.sendContainerState(containerMapValue)
  14505. }
  14506. ee.EncodeInt(int64(v2))
  14507. }
  14508. }
  14509. if cr != nil {
  14510. cr.sendContainerState(containerMapEnd)
  14511. }
  14512. }
  14513. func (f *encFnInfo) fastpathEncMapBoolFloat32R(rv reflect.Value) {
  14514. fastpathTV.EncMapBoolFloat32V(rv.Interface().(map[bool]float32), fastpathCheckNilFalse, f.e)
  14515. }
  14516. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, checkNil bool, e *Encoder) {
  14517. ee := e.e
  14518. cr := e.cr
  14519. if checkNil && v == nil {
  14520. ee.EncodeNil()
  14521. return
  14522. }
  14523. ee.EncodeMapStart(len(v))
  14524. if e.h.Canonical {
  14525. v2 := make([]bool, len(v))
  14526. var i int
  14527. for k, _ := range v {
  14528. v2[i] = bool(k)
  14529. i++
  14530. }
  14531. sort.Sort(boolSlice(v2))
  14532. for _, k2 := range v2 {
  14533. if cr != nil {
  14534. cr.sendContainerState(containerMapKey)
  14535. }
  14536. ee.EncodeBool(bool(k2))
  14537. if cr != nil {
  14538. cr.sendContainerState(containerMapValue)
  14539. }
  14540. ee.EncodeFloat32(v[bool(k2)])
  14541. }
  14542. } else {
  14543. for k2, v2 := range v {
  14544. if cr != nil {
  14545. cr.sendContainerState(containerMapKey)
  14546. }
  14547. ee.EncodeBool(k2)
  14548. if cr != nil {
  14549. cr.sendContainerState(containerMapValue)
  14550. }
  14551. ee.EncodeFloat32(v2)
  14552. }
  14553. }
  14554. if cr != nil {
  14555. cr.sendContainerState(containerMapEnd)
  14556. }
  14557. }
  14558. func (f *encFnInfo) fastpathEncMapBoolFloat64R(rv reflect.Value) {
  14559. fastpathTV.EncMapBoolFloat64V(rv.Interface().(map[bool]float64), fastpathCheckNilFalse, f.e)
  14560. }
  14561. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, checkNil bool, e *Encoder) {
  14562. ee := e.e
  14563. cr := e.cr
  14564. if checkNil && v == nil {
  14565. ee.EncodeNil()
  14566. return
  14567. }
  14568. ee.EncodeMapStart(len(v))
  14569. if e.h.Canonical {
  14570. v2 := make([]bool, len(v))
  14571. var i int
  14572. for k, _ := range v {
  14573. v2[i] = bool(k)
  14574. i++
  14575. }
  14576. sort.Sort(boolSlice(v2))
  14577. for _, k2 := range v2 {
  14578. if cr != nil {
  14579. cr.sendContainerState(containerMapKey)
  14580. }
  14581. ee.EncodeBool(bool(k2))
  14582. if cr != nil {
  14583. cr.sendContainerState(containerMapValue)
  14584. }
  14585. ee.EncodeFloat64(v[bool(k2)])
  14586. }
  14587. } else {
  14588. for k2, v2 := range v {
  14589. if cr != nil {
  14590. cr.sendContainerState(containerMapKey)
  14591. }
  14592. ee.EncodeBool(k2)
  14593. if cr != nil {
  14594. cr.sendContainerState(containerMapValue)
  14595. }
  14596. ee.EncodeFloat64(v2)
  14597. }
  14598. }
  14599. if cr != nil {
  14600. cr.sendContainerState(containerMapEnd)
  14601. }
  14602. }
  14603. func (f *encFnInfo) fastpathEncMapBoolBoolR(rv reflect.Value) {
  14604. fastpathTV.EncMapBoolBoolV(rv.Interface().(map[bool]bool), fastpathCheckNilFalse, f.e)
  14605. }
  14606. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, checkNil bool, e *Encoder) {
  14607. ee := e.e
  14608. cr := e.cr
  14609. if checkNil && v == nil {
  14610. ee.EncodeNil()
  14611. return
  14612. }
  14613. ee.EncodeMapStart(len(v))
  14614. if e.h.Canonical {
  14615. v2 := make([]bool, len(v))
  14616. var i int
  14617. for k, _ := range v {
  14618. v2[i] = bool(k)
  14619. i++
  14620. }
  14621. sort.Sort(boolSlice(v2))
  14622. for _, k2 := range v2 {
  14623. if cr != nil {
  14624. cr.sendContainerState(containerMapKey)
  14625. }
  14626. ee.EncodeBool(bool(k2))
  14627. if cr != nil {
  14628. cr.sendContainerState(containerMapValue)
  14629. }
  14630. ee.EncodeBool(v[bool(k2)])
  14631. }
  14632. } else {
  14633. for k2, v2 := range v {
  14634. if cr != nil {
  14635. cr.sendContainerState(containerMapKey)
  14636. }
  14637. ee.EncodeBool(k2)
  14638. if cr != nil {
  14639. cr.sendContainerState(containerMapValue)
  14640. }
  14641. ee.EncodeBool(v2)
  14642. }
  14643. }
  14644. if cr != nil {
  14645. cr.sendContainerState(containerMapEnd)
  14646. }
  14647. }
  14648. // -- decode
  14649. // -- -- fast path type switch
  14650. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  14651. if !fastpathEnabled {
  14652. return false
  14653. }
  14654. switch v := iv.(type) {
  14655. case []interface{}:
  14656. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, d)
  14657. case *[]interface{}:
  14658. v2, changed2 := fastpathTV.DecSliceIntfV(*v, fastpathCheckNilFalse, true, d)
  14659. if changed2 {
  14660. *v = v2
  14661. }
  14662. case map[interface{}]interface{}:
  14663. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, d)
  14664. case *map[interface{}]interface{}:
  14665. v2, changed2 := fastpathTV.DecMapIntfIntfV(*v, fastpathCheckNilFalse, true, d)
  14666. if changed2 {
  14667. *v = v2
  14668. }
  14669. case map[interface{}]string:
  14670. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, d)
  14671. case *map[interface{}]string:
  14672. v2, changed2 := fastpathTV.DecMapIntfStringV(*v, fastpathCheckNilFalse, true, d)
  14673. if changed2 {
  14674. *v = v2
  14675. }
  14676. case map[interface{}]uint:
  14677. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, d)
  14678. case *map[interface{}]uint:
  14679. v2, changed2 := fastpathTV.DecMapIntfUintV(*v, fastpathCheckNilFalse, true, d)
  14680. if changed2 {
  14681. *v = v2
  14682. }
  14683. case map[interface{}]uint8:
  14684. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, d)
  14685. case *map[interface{}]uint8:
  14686. v2, changed2 := fastpathTV.DecMapIntfUint8V(*v, fastpathCheckNilFalse, true, d)
  14687. if changed2 {
  14688. *v = v2
  14689. }
  14690. case map[interface{}]uint16:
  14691. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, d)
  14692. case *map[interface{}]uint16:
  14693. v2, changed2 := fastpathTV.DecMapIntfUint16V(*v, fastpathCheckNilFalse, true, d)
  14694. if changed2 {
  14695. *v = v2
  14696. }
  14697. case map[interface{}]uint32:
  14698. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, d)
  14699. case *map[interface{}]uint32:
  14700. v2, changed2 := fastpathTV.DecMapIntfUint32V(*v, fastpathCheckNilFalse, true, d)
  14701. if changed2 {
  14702. *v = v2
  14703. }
  14704. case map[interface{}]uint64:
  14705. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, d)
  14706. case *map[interface{}]uint64:
  14707. v2, changed2 := fastpathTV.DecMapIntfUint64V(*v, fastpathCheckNilFalse, true, d)
  14708. if changed2 {
  14709. *v = v2
  14710. }
  14711. case map[interface{}]uintptr:
  14712. fastpathTV.DecMapIntfUintptrV(v, fastpathCheckNilFalse, false, d)
  14713. case *map[interface{}]uintptr:
  14714. v2, changed2 := fastpathTV.DecMapIntfUintptrV(*v, fastpathCheckNilFalse, true, d)
  14715. if changed2 {
  14716. *v = v2
  14717. }
  14718. case map[interface{}]int:
  14719. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, d)
  14720. case *map[interface{}]int:
  14721. v2, changed2 := fastpathTV.DecMapIntfIntV(*v, fastpathCheckNilFalse, true, d)
  14722. if changed2 {
  14723. *v = v2
  14724. }
  14725. case map[interface{}]int8:
  14726. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, d)
  14727. case *map[interface{}]int8:
  14728. v2, changed2 := fastpathTV.DecMapIntfInt8V(*v, fastpathCheckNilFalse, true, d)
  14729. if changed2 {
  14730. *v = v2
  14731. }
  14732. case map[interface{}]int16:
  14733. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, d)
  14734. case *map[interface{}]int16:
  14735. v2, changed2 := fastpathTV.DecMapIntfInt16V(*v, fastpathCheckNilFalse, true, d)
  14736. if changed2 {
  14737. *v = v2
  14738. }
  14739. case map[interface{}]int32:
  14740. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, d)
  14741. case *map[interface{}]int32:
  14742. v2, changed2 := fastpathTV.DecMapIntfInt32V(*v, fastpathCheckNilFalse, true, d)
  14743. if changed2 {
  14744. *v = v2
  14745. }
  14746. case map[interface{}]int64:
  14747. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, d)
  14748. case *map[interface{}]int64:
  14749. v2, changed2 := fastpathTV.DecMapIntfInt64V(*v, fastpathCheckNilFalse, true, d)
  14750. if changed2 {
  14751. *v = v2
  14752. }
  14753. case map[interface{}]float32:
  14754. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, d)
  14755. case *map[interface{}]float32:
  14756. v2, changed2 := fastpathTV.DecMapIntfFloat32V(*v, fastpathCheckNilFalse, true, d)
  14757. if changed2 {
  14758. *v = v2
  14759. }
  14760. case map[interface{}]float64:
  14761. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, d)
  14762. case *map[interface{}]float64:
  14763. v2, changed2 := fastpathTV.DecMapIntfFloat64V(*v, fastpathCheckNilFalse, true, d)
  14764. if changed2 {
  14765. *v = v2
  14766. }
  14767. case map[interface{}]bool:
  14768. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, d)
  14769. case *map[interface{}]bool:
  14770. v2, changed2 := fastpathTV.DecMapIntfBoolV(*v, fastpathCheckNilFalse, true, d)
  14771. if changed2 {
  14772. *v = v2
  14773. }
  14774. case []string:
  14775. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, d)
  14776. case *[]string:
  14777. v2, changed2 := fastpathTV.DecSliceStringV(*v, fastpathCheckNilFalse, true, d)
  14778. if changed2 {
  14779. *v = v2
  14780. }
  14781. case map[string]interface{}:
  14782. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, d)
  14783. case *map[string]interface{}:
  14784. v2, changed2 := fastpathTV.DecMapStringIntfV(*v, fastpathCheckNilFalse, true, d)
  14785. if changed2 {
  14786. *v = v2
  14787. }
  14788. case map[string]string:
  14789. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, d)
  14790. case *map[string]string:
  14791. v2, changed2 := fastpathTV.DecMapStringStringV(*v, fastpathCheckNilFalse, true, d)
  14792. if changed2 {
  14793. *v = v2
  14794. }
  14795. case map[string]uint:
  14796. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, d)
  14797. case *map[string]uint:
  14798. v2, changed2 := fastpathTV.DecMapStringUintV(*v, fastpathCheckNilFalse, true, d)
  14799. if changed2 {
  14800. *v = v2
  14801. }
  14802. case map[string]uint8:
  14803. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, d)
  14804. case *map[string]uint8:
  14805. v2, changed2 := fastpathTV.DecMapStringUint8V(*v, fastpathCheckNilFalse, true, d)
  14806. if changed2 {
  14807. *v = v2
  14808. }
  14809. case map[string]uint16:
  14810. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, d)
  14811. case *map[string]uint16:
  14812. v2, changed2 := fastpathTV.DecMapStringUint16V(*v, fastpathCheckNilFalse, true, d)
  14813. if changed2 {
  14814. *v = v2
  14815. }
  14816. case map[string]uint32:
  14817. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, d)
  14818. case *map[string]uint32:
  14819. v2, changed2 := fastpathTV.DecMapStringUint32V(*v, fastpathCheckNilFalse, true, d)
  14820. if changed2 {
  14821. *v = v2
  14822. }
  14823. case map[string]uint64:
  14824. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, d)
  14825. case *map[string]uint64:
  14826. v2, changed2 := fastpathTV.DecMapStringUint64V(*v, fastpathCheckNilFalse, true, d)
  14827. if changed2 {
  14828. *v = v2
  14829. }
  14830. case map[string]uintptr:
  14831. fastpathTV.DecMapStringUintptrV(v, fastpathCheckNilFalse, false, d)
  14832. case *map[string]uintptr:
  14833. v2, changed2 := fastpathTV.DecMapStringUintptrV(*v, fastpathCheckNilFalse, true, d)
  14834. if changed2 {
  14835. *v = v2
  14836. }
  14837. case map[string]int:
  14838. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, d)
  14839. case *map[string]int:
  14840. v2, changed2 := fastpathTV.DecMapStringIntV(*v, fastpathCheckNilFalse, true, d)
  14841. if changed2 {
  14842. *v = v2
  14843. }
  14844. case map[string]int8:
  14845. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, d)
  14846. case *map[string]int8:
  14847. v2, changed2 := fastpathTV.DecMapStringInt8V(*v, fastpathCheckNilFalse, true, d)
  14848. if changed2 {
  14849. *v = v2
  14850. }
  14851. case map[string]int16:
  14852. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, d)
  14853. case *map[string]int16:
  14854. v2, changed2 := fastpathTV.DecMapStringInt16V(*v, fastpathCheckNilFalse, true, d)
  14855. if changed2 {
  14856. *v = v2
  14857. }
  14858. case map[string]int32:
  14859. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, d)
  14860. case *map[string]int32:
  14861. v2, changed2 := fastpathTV.DecMapStringInt32V(*v, fastpathCheckNilFalse, true, d)
  14862. if changed2 {
  14863. *v = v2
  14864. }
  14865. case map[string]int64:
  14866. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, d)
  14867. case *map[string]int64:
  14868. v2, changed2 := fastpathTV.DecMapStringInt64V(*v, fastpathCheckNilFalse, true, d)
  14869. if changed2 {
  14870. *v = v2
  14871. }
  14872. case map[string]float32:
  14873. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, d)
  14874. case *map[string]float32:
  14875. v2, changed2 := fastpathTV.DecMapStringFloat32V(*v, fastpathCheckNilFalse, true, d)
  14876. if changed2 {
  14877. *v = v2
  14878. }
  14879. case map[string]float64:
  14880. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, d)
  14881. case *map[string]float64:
  14882. v2, changed2 := fastpathTV.DecMapStringFloat64V(*v, fastpathCheckNilFalse, true, d)
  14883. if changed2 {
  14884. *v = v2
  14885. }
  14886. case map[string]bool:
  14887. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, d)
  14888. case *map[string]bool:
  14889. v2, changed2 := fastpathTV.DecMapStringBoolV(*v, fastpathCheckNilFalse, true, d)
  14890. if changed2 {
  14891. *v = v2
  14892. }
  14893. case []float32:
  14894. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, d)
  14895. case *[]float32:
  14896. v2, changed2 := fastpathTV.DecSliceFloat32V(*v, fastpathCheckNilFalse, true, d)
  14897. if changed2 {
  14898. *v = v2
  14899. }
  14900. case map[float32]interface{}:
  14901. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, d)
  14902. case *map[float32]interface{}:
  14903. v2, changed2 := fastpathTV.DecMapFloat32IntfV(*v, fastpathCheckNilFalse, true, d)
  14904. if changed2 {
  14905. *v = v2
  14906. }
  14907. case map[float32]string:
  14908. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, d)
  14909. case *map[float32]string:
  14910. v2, changed2 := fastpathTV.DecMapFloat32StringV(*v, fastpathCheckNilFalse, true, d)
  14911. if changed2 {
  14912. *v = v2
  14913. }
  14914. case map[float32]uint:
  14915. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, d)
  14916. case *map[float32]uint:
  14917. v2, changed2 := fastpathTV.DecMapFloat32UintV(*v, fastpathCheckNilFalse, true, d)
  14918. if changed2 {
  14919. *v = v2
  14920. }
  14921. case map[float32]uint8:
  14922. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, d)
  14923. case *map[float32]uint8:
  14924. v2, changed2 := fastpathTV.DecMapFloat32Uint8V(*v, fastpathCheckNilFalse, true, d)
  14925. if changed2 {
  14926. *v = v2
  14927. }
  14928. case map[float32]uint16:
  14929. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, d)
  14930. case *map[float32]uint16:
  14931. v2, changed2 := fastpathTV.DecMapFloat32Uint16V(*v, fastpathCheckNilFalse, true, d)
  14932. if changed2 {
  14933. *v = v2
  14934. }
  14935. case map[float32]uint32:
  14936. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, d)
  14937. case *map[float32]uint32:
  14938. v2, changed2 := fastpathTV.DecMapFloat32Uint32V(*v, fastpathCheckNilFalse, true, d)
  14939. if changed2 {
  14940. *v = v2
  14941. }
  14942. case map[float32]uint64:
  14943. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, d)
  14944. case *map[float32]uint64:
  14945. v2, changed2 := fastpathTV.DecMapFloat32Uint64V(*v, fastpathCheckNilFalse, true, d)
  14946. if changed2 {
  14947. *v = v2
  14948. }
  14949. case map[float32]uintptr:
  14950. fastpathTV.DecMapFloat32UintptrV(v, fastpathCheckNilFalse, false, d)
  14951. case *map[float32]uintptr:
  14952. v2, changed2 := fastpathTV.DecMapFloat32UintptrV(*v, fastpathCheckNilFalse, true, d)
  14953. if changed2 {
  14954. *v = v2
  14955. }
  14956. case map[float32]int:
  14957. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, d)
  14958. case *map[float32]int:
  14959. v2, changed2 := fastpathTV.DecMapFloat32IntV(*v, fastpathCheckNilFalse, true, d)
  14960. if changed2 {
  14961. *v = v2
  14962. }
  14963. case map[float32]int8:
  14964. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, d)
  14965. case *map[float32]int8:
  14966. v2, changed2 := fastpathTV.DecMapFloat32Int8V(*v, fastpathCheckNilFalse, true, d)
  14967. if changed2 {
  14968. *v = v2
  14969. }
  14970. case map[float32]int16:
  14971. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, d)
  14972. case *map[float32]int16:
  14973. v2, changed2 := fastpathTV.DecMapFloat32Int16V(*v, fastpathCheckNilFalse, true, d)
  14974. if changed2 {
  14975. *v = v2
  14976. }
  14977. case map[float32]int32:
  14978. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, d)
  14979. case *map[float32]int32:
  14980. v2, changed2 := fastpathTV.DecMapFloat32Int32V(*v, fastpathCheckNilFalse, true, d)
  14981. if changed2 {
  14982. *v = v2
  14983. }
  14984. case map[float32]int64:
  14985. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, d)
  14986. case *map[float32]int64:
  14987. v2, changed2 := fastpathTV.DecMapFloat32Int64V(*v, fastpathCheckNilFalse, true, d)
  14988. if changed2 {
  14989. *v = v2
  14990. }
  14991. case map[float32]float32:
  14992. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, d)
  14993. case *map[float32]float32:
  14994. v2, changed2 := fastpathTV.DecMapFloat32Float32V(*v, fastpathCheckNilFalse, true, d)
  14995. if changed2 {
  14996. *v = v2
  14997. }
  14998. case map[float32]float64:
  14999. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, d)
  15000. case *map[float32]float64:
  15001. v2, changed2 := fastpathTV.DecMapFloat32Float64V(*v, fastpathCheckNilFalse, true, d)
  15002. if changed2 {
  15003. *v = v2
  15004. }
  15005. case map[float32]bool:
  15006. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, d)
  15007. case *map[float32]bool:
  15008. v2, changed2 := fastpathTV.DecMapFloat32BoolV(*v, fastpathCheckNilFalse, true, d)
  15009. if changed2 {
  15010. *v = v2
  15011. }
  15012. case []float64:
  15013. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, d)
  15014. case *[]float64:
  15015. v2, changed2 := fastpathTV.DecSliceFloat64V(*v, fastpathCheckNilFalse, true, d)
  15016. if changed2 {
  15017. *v = v2
  15018. }
  15019. case map[float64]interface{}:
  15020. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, d)
  15021. case *map[float64]interface{}:
  15022. v2, changed2 := fastpathTV.DecMapFloat64IntfV(*v, fastpathCheckNilFalse, true, d)
  15023. if changed2 {
  15024. *v = v2
  15025. }
  15026. case map[float64]string:
  15027. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, d)
  15028. case *map[float64]string:
  15029. v2, changed2 := fastpathTV.DecMapFloat64StringV(*v, fastpathCheckNilFalse, true, d)
  15030. if changed2 {
  15031. *v = v2
  15032. }
  15033. case map[float64]uint:
  15034. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, d)
  15035. case *map[float64]uint:
  15036. v2, changed2 := fastpathTV.DecMapFloat64UintV(*v, fastpathCheckNilFalse, true, d)
  15037. if changed2 {
  15038. *v = v2
  15039. }
  15040. case map[float64]uint8:
  15041. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, d)
  15042. case *map[float64]uint8:
  15043. v2, changed2 := fastpathTV.DecMapFloat64Uint8V(*v, fastpathCheckNilFalse, true, d)
  15044. if changed2 {
  15045. *v = v2
  15046. }
  15047. case map[float64]uint16:
  15048. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, d)
  15049. case *map[float64]uint16:
  15050. v2, changed2 := fastpathTV.DecMapFloat64Uint16V(*v, fastpathCheckNilFalse, true, d)
  15051. if changed2 {
  15052. *v = v2
  15053. }
  15054. case map[float64]uint32:
  15055. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, d)
  15056. case *map[float64]uint32:
  15057. v2, changed2 := fastpathTV.DecMapFloat64Uint32V(*v, fastpathCheckNilFalse, true, d)
  15058. if changed2 {
  15059. *v = v2
  15060. }
  15061. case map[float64]uint64:
  15062. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, d)
  15063. case *map[float64]uint64:
  15064. v2, changed2 := fastpathTV.DecMapFloat64Uint64V(*v, fastpathCheckNilFalse, true, d)
  15065. if changed2 {
  15066. *v = v2
  15067. }
  15068. case map[float64]uintptr:
  15069. fastpathTV.DecMapFloat64UintptrV(v, fastpathCheckNilFalse, false, d)
  15070. case *map[float64]uintptr:
  15071. v2, changed2 := fastpathTV.DecMapFloat64UintptrV(*v, fastpathCheckNilFalse, true, d)
  15072. if changed2 {
  15073. *v = v2
  15074. }
  15075. case map[float64]int:
  15076. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, d)
  15077. case *map[float64]int:
  15078. v2, changed2 := fastpathTV.DecMapFloat64IntV(*v, fastpathCheckNilFalse, true, d)
  15079. if changed2 {
  15080. *v = v2
  15081. }
  15082. case map[float64]int8:
  15083. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, d)
  15084. case *map[float64]int8:
  15085. v2, changed2 := fastpathTV.DecMapFloat64Int8V(*v, fastpathCheckNilFalse, true, d)
  15086. if changed2 {
  15087. *v = v2
  15088. }
  15089. case map[float64]int16:
  15090. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, d)
  15091. case *map[float64]int16:
  15092. v2, changed2 := fastpathTV.DecMapFloat64Int16V(*v, fastpathCheckNilFalse, true, d)
  15093. if changed2 {
  15094. *v = v2
  15095. }
  15096. case map[float64]int32:
  15097. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, d)
  15098. case *map[float64]int32:
  15099. v2, changed2 := fastpathTV.DecMapFloat64Int32V(*v, fastpathCheckNilFalse, true, d)
  15100. if changed2 {
  15101. *v = v2
  15102. }
  15103. case map[float64]int64:
  15104. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, d)
  15105. case *map[float64]int64:
  15106. v2, changed2 := fastpathTV.DecMapFloat64Int64V(*v, fastpathCheckNilFalse, true, d)
  15107. if changed2 {
  15108. *v = v2
  15109. }
  15110. case map[float64]float32:
  15111. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, d)
  15112. case *map[float64]float32:
  15113. v2, changed2 := fastpathTV.DecMapFloat64Float32V(*v, fastpathCheckNilFalse, true, d)
  15114. if changed2 {
  15115. *v = v2
  15116. }
  15117. case map[float64]float64:
  15118. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, d)
  15119. case *map[float64]float64:
  15120. v2, changed2 := fastpathTV.DecMapFloat64Float64V(*v, fastpathCheckNilFalse, true, d)
  15121. if changed2 {
  15122. *v = v2
  15123. }
  15124. case map[float64]bool:
  15125. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, d)
  15126. case *map[float64]bool:
  15127. v2, changed2 := fastpathTV.DecMapFloat64BoolV(*v, fastpathCheckNilFalse, true, d)
  15128. if changed2 {
  15129. *v = v2
  15130. }
  15131. case []uint:
  15132. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, d)
  15133. case *[]uint:
  15134. v2, changed2 := fastpathTV.DecSliceUintV(*v, fastpathCheckNilFalse, true, d)
  15135. if changed2 {
  15136. *v = v2
  15137. }
  15138. case map[uint]interface{}:
  15139. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, d)
  15140. case *map[uint]interface{}:
  15141. v2, changed2 := fastpathTV.DecMapUintIntfV(*v, fastpathCheckNilFalse, true, d)
  15142. if changed2 {
  15143. *v = v2
  15144. }
  15145. case map[uint]string:
  15146. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, d)
  15147. case *map[uint]string:
  15148. v2, changed2 := fastpathTV.DecMapUintStringV(*v, fastpathCheckNilFalse, true, d)
  15149. if changed2 {
  15150. *v = v2
  15151. }
  15152. case map[uint]uint:
  15153. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, d)
  15154. case *map[uint]uint:
  15155. v2, changed2 := fastpathTV.DecMapUintUintV(*v, fastpathCheckNilFalse, true, d)
  15156. if changed2 {
  15157. *v = v2
  15158. }
  15159. case map[uint]uint8:
  15160. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, d)
  15161. case *map[uint]uint8:
  15162. v2, changed2 := fastpathTV.DecMapUintUint8V(*v, fastpathCheckNilFalse, true, d)
  15163. if changed2 {
  15164. *v = v2
  15165. }
  15166. case map[uint]uint16:
  15167. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, d)
  15168. case *map[uint]uint16:
  15169. v2, changed2 := fastpathTV.DecMapUintUint16V(*v, fastpathCheckNilFalse, true, d)
  15170. if changed2 {
  15171. *v = v2
  15172. }
  15173. case map[uint]uint32:
  15174. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, d)
  15175. case *map[uint]uint32:
  15176. v2, changed2 := fastpathTV.DecMapUintUint32V(*v, fastpathCheckNilFalse, true, d)
  15177. if changed2 {
  15178. *v = v2
  15179. }
  15180. case map[uint]uint64:
  15181. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, d)
  15182. case *map[uint]uint64:
  15183. v2, changed2 := fastpathTV.DecMapUintUint64V(*v, fastpathCheckNilFalse, true, d)
  15184. if changed2 {
  15185. *v = v2
  15186. }
  15187. case map[uint]uintptr:
  15188. fastpathTV.DecMapUintUintptrV(v, fastpathCheckNilFalse, false, d)
  15189. case *map[uint]uintptr:
  15190. v2, changed2 := fastpathTV.DecMapUintUintptrV(*v, fastpathCheckNilFalse, true, d)
  15191. if changed2 {
  15192. *v = v2
  15193. }
  15194. case map[uint]int:
  15195. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, d)
  15196. case *map[uint]int:
  15197. v2, changed2 := fastpathTV.DecMapUintIntV(*v, fastpathCheckNilFalse, true, d)
  15198. if changed2 {
  15199. *v = v2
  15200. }
  15201. case map[uint]int8:
  15202. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, d)
  15203. case *map[uint]int8:
  15204. v2, changed2 := fastpathTV.DecMapUintInt8V(*v, fastpathCheckNilFalse, true, d)
  15205. if changed2 {
  15206. *v = v2
  15207. }
  15208. case map[uint]int16:
  15209. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, d)
  15210. case *map[uint]int16:
  15211. v2, changed2 := fastpathTV.DecMapUintInt16V(*v, fastpathCheckNilFalse, true, d)
  15212. if changed2 {
  15213. *v = v2
  15214. }
  15215. case map[uint]int32:
  15216. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, d)
  15217. case *map[uint]int32:
  15218. v2, changed2 := fastpathTV.DecMapUintInt32V(*v, fastpathCheckNilFalse, true, d)
  15219. if changed2 {
  15220. *v = v2
  15221. }
  15222. case map[uint]int64:
  15223. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, d)
  15224. case *map[uint]int64:
  15225. v2, changed2 := fastpathTV.DecMapUintInt64V(*v, fastpathCheckNilFalse, true, d)
  15226. if changed2 {
  15227. *v = v2
  15228. }
  15229. case map[uint]float32:
  15230. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, d)
  15231. case *map[uint]float32:
  15232. v2, changed2 := fastpathTV.DecMapUintFloat32V(*v, fastpathCheckNilFalse, true, d)
  15233. if changed2 {
  15234. *v = v2
  15235. }
  15236. case map[uint]float64:
  15237. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, d)
  15238. case *map[uint]float64:
  15239. v2, changed2 := fastpathTV.DecMapUintFloat64V(*v, fastpathCheckNilFalse, true, d)
  15240. if changed2 {
  15241. *v = v2
  15242. }
  15243. case map[uint]bool:
  15244. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, d)
  15245. case *map[uint]bool:
  15246. v2, changed2 := fastpathTV.DecMapUintBoolV(*v, fastpathCheckNilFalse, true, d)
  15247. if changed2 {
  15248. *v = v2
  15249. }
  15250. case map[uint8]interface{}:
  15251. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, d)
  15252. case *map[uint8]interface{}:
  15253. v2, changed2 := fastpathTV.DecMapUint8IntfV(*v, fastpathCheckNilFalse, true, d)
  15254. if changed2 {
  15255. *v = v2
  15256. }
  15257. case map[uint8]string:
  15258. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, d)
  15259. case *map[uint8]string:
  15260. v2, changed2 := fastpathTV.DecMapUint8StringV(*v, fastpathCheckNilFalse, true, d)
  15261. if changed2 {
  15262. *v = v2
  15263. }
  15264. case map[uint8]uint:
  15265. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, d)
  15266. case *map[uint8]uint:
  15267. v2, changed2 := fastpathTV.DecMapUint8UintV(*v, fastpathCheckNilFalse, true, d)
  15268. if changed2 {
  15269. *v = v2
  15270. }
  15271. case map[uint8]uint8:
  15272. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, d)
  15273. case *map[uint8]uint8:
  15274. v2, changed2 := fastpathTV.DecMapUint8Uint8V(*v, fastpathCheckNilFalse, true, d)
  15275. if changed2 {
  15276. *v = v2
  15277. }
  15278. case map[uint8]uint16:
  15279. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, d)
  15280. case *map[uint8]uint16:
  15281. v2, changed2 := fastpathTV.DecMapUint8Uint16V(*v, fastpathCheckNilFalse, true, d)
  15282. if changed2 {
  15283. *v = v2
  15284. }
  15285. case map[uint8]uint32:
  15286. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, d)
  15287. case *map[uint8]uint32:
  15288. v2, changed2 := fastpathTV.DecMapUint8Uint32V(*v, fastpathCheckNilFalse, true, d)
  15289. if changed2 {
  15290. *v = v2
  15291. }
  15292. case map[uint8]uint64:
  15293. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, d)
  15294. case *map[uint8]uint64:
  15295. v2, changed2 := fastpathTV.DecMapUint8Uint64V(*v, fastpathCheckNilFalse, true, d)
  15296. if changed2 {
  15297. *v = v2
  15298. }
  15299. case map[uint8]uintptr:
  15300. fastpathTV.DecMapUint8UintptrV(v, fastpathCheckNilFalse, false, d)
  15301. case *map[uint8]uintptr:
  15302. v2, changed2 := fastpathTV.DecMapUint8UintptrV(*v, fastpathCheckNilFalse, true, d)
  15303. if changed2 {
  15304. *v = v2
  15305. }
  15306. case map[uint8]int:
  15307. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, d)
  15308. case *map[uint8]int:
  15309. v2, changed2 := fastpathTV.DecMapUint8IntV(*v, fastpathCheckNilFalse, true, d)
  15310. if changed2 {
  15311. *v = v2
  15312. }
  15313. case map[uint8]int8:
  15314. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, d)
  15315. case *map[uint8]int8:
  15316. v2, changed2 := fastpathTV.DecMapUint8Int8V(*v, fastpathCheckNilFalse, true, d)
  15317. if changed2 {
  15318. *v = v2
  15319. }
  15320. case map[uint8]int16:
  15321. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, d)
  15322. case *map[uint8]int16:
  15323. v2, changed2 := fastpathTV.DecMapUint8Int16V(*v, fastpathCheckNilFalse, true, d)
  15324. if changed2 {
  15325. *v = v2
  15326. }
  15327. case map[uint8]int32:
  15328. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, d)
  15329. case *map[uint8]int32:
  15330. v2, changed2 := fastpathTV.DecMapUint8Int32V(*v, fastpathCheckNilFalse, true, d)
  15331. if changed2 {
  15332. *v = v2
  15333. }
  15334. case map[uint8]int64:
  15335. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, d)
  15336. case *map[uint8]int64:
  15337. v2, changed2 := fastpathTV.DecMapUint8Int64V(*v, fastpathCheckNilFalse, true, d)
  15338. if changed2 {
  15339. *v = v2
  15340. }
  15341. case map[uint8]float32:
  15342. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, d)
  15343. case *map[uint8]float32:
  15344. v2, changed2 := fastpathTV.DecMapUint8Float32V(*v, fastpathCheckNilFalse, true, d)
  15345. if changed2 {
  15346. *v = v2
  15347. }
  15348. case map[uint8]float64:
  15349. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, d)
  15350. case *map[uint8]float64:
  15351. v2, changed2 := fastpathTV.DecMapUint8Float64V(*v, fastpathCheckNilFalse, true, d)
  15352. if changed2 {
  15353. *v = v2
  15354. }
  15355. case map[uint8]bool:
  15356. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, d)
  15357. case *map[uint8]bool:
  15358. v2, changed2 := fastpathTV.DecMapUint8BoolV(*v, fastpathCheckNilFalse, true, d)
  15359. if changed2 {
  15360. *v = v2
  15361. }
  15362. case []uint16:
  15363. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, d)
  15364. case *[]uint16:
  15365. v2, changed2 := fastpathTV.DecSliceUint16V(*v, fastpathCheckNilFalse, true, d)
  15366. if changed2 {
  15367. *v = v2
  15368. }
  15369. case map[uint16]interface{}:
  15370. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, d)
  15371. case *map[uint16]interface{}:
  15372. v2, changed2 := fastpathTV.DecMapUint16IntfV(*v, fastpathCheckNilFalse, true, d)
  15373. if changed2 {
  15374. *v = v2
  15375. }
  15376. case map[uint16]string:
  15377. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, d)
  15378. case *map[uint16]string:
  15379. v2, changed2 := fastpathTV.DecMapUint16StringV(*v, fastpathCheckNilFalse, true, d)
  15380. if changed2 {
  15381. *v = v2
  15382. }
  15383. case map[uint16]uint:
  15384. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, d)
  15385. case *map[uint16]uint:
  15386. v2, changed2 := fastpathTV.DecMapUint16UintV(*v, fastpathCheckNilFalse, true, d)
  15387. if changed2 {
  15388. *v = v2
  15389. }
  15390. case map[uint16]uint8:
  15391. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, d)
  15392. case *map[uint16]uint8:
  15393. v2, changed2 := fastpathTV.DecMapUint16Uint8V(*v, fastpathCheckNilFalse, true, d)
  15394. if changed2 {
  15395. *v = v2
  15396. }
  15397. case map[uint16]uint16:
  15398. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, d)
  15399. case *map[uint16]uint16:
  15400. v2, changed2 := fastpathTV.DecMapUint16Uint16V(*v, fastpathCheckNilFalse, true, d)
  15401. if changed2 {
  15402. *v = v2
  15403. }
  15404. case map[uint16]uint32:
  15405. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, d)
  15406. case *map[uint16]uint32:
  15407. v2, changed2 := fastpathTV.DecMapUint16Uint32V(*v, fastpathCheckNilFalse, true, d)
  15408. if changed2 {
  15409. *v = v2
  15410. }
  15411. case map[uint16]uint64:
  15412. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, d)
  15413. case *map[uint16]uint64:
  15414. v2, changed2 := fastpathTV.DecMapUint16Uint64V(*v, fastpathCheckNilFalse, true, d)
  15415. if changed2 {
  15416. *v = v2
  15417. }
  15418. case map[uint16]uintptr:
  15419. fastpathTV.DecMapUint16UintptrV(v, fastpathCheckNilFalse, false, d)
  15420. case *map[uint16]uintptr:
  15421. v2, changed2 := fastpathTV.DecMapUint16UintptrV(*v, fastpathCheckNilFalse, true, d)
  15422. if changed2 {
  15423. *v = v2
  15424. }
  15425. case map[uint16]int:
  15426. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, d)
  15427. case *map[uint16]int:
  15428. v2, changed2 := fastpathTV.DecMapUint16IntV(*v, fastpathCheckNilFalse, true, d)
  15429. if changed2 {
  15430. *v = v2
  15431. }
  15432. case map[uint16]int8:
  15433. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, d)
  15434. case *map[uint16]int8:
  15435. v2, changed2 := fastpathTV.DecMapUint16Int8V(*v, fastpathCheckNilFalse, true, d)
  15436. if changed2 {
  15437. *v = v2
  15438. }
  15439. case map[uint16]int16:
  15440. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, d)
  15441. case *map[uint16]int16:
  15442. v2, changed2 := fastpathTV.DecMapUint16Int16V(*v, fastpathCheckNilFalse, true, d)
  15443. if changed2 {
  15444. *v = v2
  15445. }
  15446. case map[uint16]int32:
  15447. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, d)
  15448. case *map[uint16]int32:
  15449. v2, changed2 := fastpathTV.DecMapUint16Int32V(*v, fastpathCheckNilFalse, true, d)
  15450. if changed2 {
  15451. *v = v2
  15452. }
  15453. case map[uint16]int64:
  15454. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, d)
  15455. case *map[uint16]int64:
  15456. v2, changed2 := fastpathTV.DecMapUint16Int64V(*v, fastpathCheckNilFalse, true, d)
  15457. if changed2 {
  15458. *v = v2
  15459. }
  15460. case map[uint16]float32:
  15461. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, d)
  15462. case *map[uint16]float32:
  15463. v2, changed2 := fastpathTV.DecMapUint16Float32V(*v, fastpathCheckNilFalse, true, d)
  15464. if changed2 {
  15465. *v = v2
  15466. }
  15467. case map[uint16]float64:
  15468. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, d)
  15469. case *map[uint16]float64:
  15470. v2, changed2 := fastpathTV.DecMapUint16Float64V(*v, fastpathCheckNilFalse, true, d)
  15471. if changed2 {
  15472. *v = v2
  15473. }
  15474. case map[uint16]bool:
  15475. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, d)
  15476. case *map[uint16]bool:
  15477. v2, changed2 := fastpathTV.DecMapUint16BoolV(*v, fastpathCheckNilFalse, true, d)
  15478. if changed2 {
  15479. *v = v2
  15480. }
  15481. case []uint32:
  15482. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, d)
  15483. case *[]uint32:
  15484. v2, changed2 := fastpathTV.DecSliceUint32V(*v, fastpathCheckNilFalse, true, d)
  15485. if changed2 {
  15486. *v = v2
  15487. }
  15488. case map[uint32]interface{}:
  15489. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, d)
  15490. case *map[uint32]interface{}:
  15491. v2, changed2 := fastpathTV.DecMapUint32IntfV(*v, fastpathCheckNilFalse, true, d)
  15492. if changed2 {
  15493. *v = v2
  15494. }
  15495. case map[uint32]string:
  15496. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, d)
  15497. case *map[uint32]string:
  15498. v2, changed2 := fastpathTV.DecMapUint32StringV(*v, fastpathCheckNilFalse, true, d)
  15499. if changed2 {
  15500. *v = v2
  15501. }
  15502. case map[uint32]uint:
  15503. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, d)
  15504. case *map[uint32]uint:
  15505. v2, changed2 := fastpathTV.DecMapUint32UintV(*v, fastpathCheckNilFalse, true, d)
  15506. if changed2 {
  15507. *v = v2
  15508. }
  15509. case map[uint32]uint8:
  15510. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, d)
  15511. case *map[uint32]uint8:
  15512. v2, changed2 := fastpathTV.DecMapUint32Uint8V(*v, fastpathCheckNilFalse, true, d)
  15513. if changed2 {
  15514. *v = v2
  15515. }
  15516. case map[uint32]uint16:
  15517. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, d)
  15518. case *map[uint32]uint16:
  15519. v2, changed2 := fastpathTV.DecMapUint32Uint16V(*v, fastpathCheckNilFalse, true, d)
  15520. if changed2 {
  15521. *v = v2
  15522. }
  15523. case map[uint32]uint32:
  15524. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, d)
  15525. case *map[uint32]uint32:
  15526. v2, changed2 := fastpathTV.DecMapUint32Uint32V(*v, fastpathCheckNilFalse, true, d)
  15527. if changed2 {
  15528. *v = v2
  15529. }
  15530. case map[uint32]uint64:
  15531. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, d)
  15532. case *map[uint32]uint64:
  15533. v2, changed2 := fastpathTV.DecMapUint32Uint64V(*v, fastpathCheckNilFalse, true, d)
  15534. if changed2 {
  15535. *v = v2
  15536. }
  15537. case map[uint32]uintptr:
  15538. fastpathTV.DecMapUint32UintptrV(v, fastpathCheckNilFalse, false, d)
  15539. case *map[uint32]uintptr:
  15540. v2, changed2 := fastpathTV.DecMapUint32UintptrV(*v, fastpathCheckNilFalse, true, d)
  15541. if changed2 {
  15542. *v = v2
  15543. }
  15544. case map[uint32]int:
  15545. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, d)
  15546. case *map[uint32]int:
  15547. v2, changed2 := fastpathTV.DecMapUint32IntV(*v, fastpathCheckNilFalse, true, d)
  15548. if changed2 {
  15549. *v = v2
  15550. }
  15551. case map[uint32]int8:
  15552. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, d)
  15553. case *map[uint32]int8:
  15554. v2, changed2 := fastpathTV.DecMapUint32Int8V(*v, fastpathCheckNilFalse, true, d)
  15555. if changed2 {
  15556. *v = v2
  15557. }
  15558. case map[uint32]int16:
  15559. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, d)
  15560. case *map[uint32]int16:
  15561. v2, changed2 := fastpathTV.DecMapUint32Int16V(*v, fastpathCheckNilFalse, true, d)
  15562. if changed2 {
  15563. *v = v2
  15564. }
  15565. case map[uint32]int32:
  15566. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, d)
  15567. case *map[uint32]int32:
  15568. v2, changed2 := fastpathTV.DecMapUint32Int32V(*v, fastpathCheckNilFalse, true, d)
  15569. if changed2 {
  15570. *v = v2
  15571. }
  15572. case map[uint32]int64:
  15573. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, d)
  15574. case *map[uint32]int64:
  15575. v2, changed2 := fastpathTV.DecMapUint32Int64V(*v, fastpathCheckNilFalse, true, d)
  15576. if changed2 {
  15577. *v = v2
  15578. }
  15579. case map[uint32]float32:
  15580. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, d)
  15581. case *map[uint32]float32:
  15582. v2, changed2 := fastpathTV.DecMapUint32Float32V(*v, fastpathCheckNilFalse, true, d)
  15583. if changed2 {
  15584. *v = v2
  15585. }
  15586. case map[uint32]float64:
  15587. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, d)
  15588. case *map[uint32]float64:
  15589. v2, changed2 := fastpathTV.DecMapUint32Float64V(*v, fastpathCheckNilFalse, true, d)
  15590. if changed2 {
  15591. *v = v2
  15592. }
  15593. case map[uint32]bool:
  15594. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, d)
  15595. case *map[uint32]bool:
  15596. v2, changed2 := fastpathTV.DecMapUint32BoolV(*v, fastpathCheckNilFalse, true, d)
  15597. if changed2 {
  15598. *v = v2
  15599. }
  15600. case []uint64:
  15601. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, d)
  15602. case *[]uint64:
  15603. v2, changed2 := fastpathTV.DecSliceUint64V(*v, fastpathCheckNilFalse, true, d)
  15604. if changed2 {
  15605. *v = v2
  15606. }
  15607. case map[uint64]interface{}:
  15608. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, d)
  15609. case *map[uint64]interface{}:
  15610. v2, changed2 := fastpathTV.DecMapUint64IntfV(*v, fastpathCheckNilFalse, true, d)
  15611. if changed2 {
  15612. *v = v2
  15613. }
  15614. case map[uint64]string:
  15615. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, d)
  15616. case *map[uint64]string:
  15617. v2, changed2 := fastpathTV.DecMapUint64StringV(*v, fastpathCheckNilFalse, true, d)
  15618. if changed2 {
  15619. *v = v2
  15620. }
  15621. case map[uint64]uint:
  15622. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, d)
  15623. case *map[uint64]uint:
  15624. v2, changed2 := fastpathTV.DecMapUint64UintV(*v, fastpathCheckNilFalse, true, d)
  15625. if changed2 {
  15626. *v = v2
  15627. }
  15628. case map[uint64]uint8:
  15629. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, d)
  15630. case *map[uint64]uint8:
  15631. v2, changed2 := fastpathTV.DecMapUint64Uint8V(*v, fastpathCheckNilFalse, true, d)
  15632. if changed2 {
  15633. *v = v2
  15634. }
  15635. case map[uint64]uint16:
  15636. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, d)
  15637. case *map[uint64]uint16:
  15638. v2, changed2 := fastpathTV.DecMapUint64Uint16V(*v, fastpathCheckNilFalse, true, d)
  15639. if changed2 {
  15640. *v = v2
  15641. }
  15642. case map[uint64]uint32:
  15643. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, d)
  15644. case *map[uint64]uint32:
  15645. v2, changed2 := fastpathTV.DecMapUint64Uint32V(*v, fastpathCheckNilFalse, true, d)
  15646. if changed2 {
  15647. *v = v2
  15648. }
  15649. case map[uint64]uint64:
  15650. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, d)
  15651. case *map[uint64]uint64:
  15652. v2, changed2 := fastpathTV.DecMapUint64Uint64V(*v, fastpathCheckNilFalse, true, d)
  15653. if changed2 {
  15654. *v = v2
  15655. }
  15656. case map[uint64]uintptr:
  15657. fastpathTV.DecMapUint64UintptrV(v, fastpathCheckNilFalse, false, d)
  15658. case *map[uint64]uintptr:
  15659. v2, changed2 := fastpathTV.DecMapUint64UintptrV(*v, fastpathCheckNilFalse, true, d)
  15660. if changed2 {
  15661. *v = v2
  15662. }
  15663. case map[uint64]int:
  15664. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, d)
  15665. case *map[uint64]int:
  15666. v2, changed2 := fastpathTV.DecMapUint64IntV(*v, fastpathCheckNilFalse, true, d)
  15667. if changed2 {
  15668. *v = v2
  15669. }
  15670. case map[uint64]int8:
  15671. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, d)
  15672. case *map[uint64]int8:
  15673. v2, changed2 := fastpathTV.DecMapUint64Int8V(*v, fastpathCheckNilFalse, true, d)
  15674. if changed2 {
  15675. *v = v2
  15676. }
  15677. case map[uint64]int16:
  15678. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, d)
  15679. case *map[uint64]int16:
  15680. v2, changed2 := fastpathTV.DecMapUint64Int16V(*v, fastpathCheckNilFalse, true, d)
  15681. if changed2 {
  15682. *v = v2
  15683. }
  15684. case map[uint64]int32:
  15685. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, d)
  15686. case *map[uint64]int32:
  15687. v2, changed2 := fastpathTV.DecMapUint64Int32V(*v, fastpathCheckNilFalse, true, d)
  15688. if changed2 {
  15689. *v = v2
  15690. }
  15691. case map[uint64]int64:
  15692. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, d)
  15693. case *map[uint64]int64:
  15694. v2, changed2 := fastpathTV.DecMapUint64Int64V(*v, fastpathCheckNilFalse, true, d)
  15695. if changed2 {
  15696. *v = v2
  15697. }
  15698. case map[uint64]float32:
  15699. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, d)
  15700. case *map[uint64]float32:
  15701. v2, changed2 := fastpathTV.DecMapUint64Float32V(*v, fastpathCheckNilFalse, true, d)
  15702. if changed2 {
  15703. *v = v2
  15704. }
  15705. case map[uint64]float64:
  15706. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, d)
  15707. case *map[uint64]float64:
  15708. v2, changed2 := fastpathTV.DecMapUint64Float64V(*v, fastpathCheckNilFalse, true, d)
  15709. if changed2 {
  15710. *v = v2
  15711. }
  15712. case map[uint64]bool:
  15713. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, d)
  15714. case *map[uint64]bool:
  15715. v2, changed2 := fastpathTV.DecMapUint64BoolV(*v, fastpathCheckNilFalse, true, d)
  15716. if changed2 {
  15717. *v = v2
  15718. }
  15719. case []uintptr:
  15720. fastpathTV.DecSliceUintptrV(v, fastpathCheckNilFalse, false, d)
  15721. case *[]uintptr:
  15722. v2, changed2 := fastpathTV.DecSliceUintptrV(*v, fastpathCheckNilFalse, true, d)
  15723. if changed2 {
  15724. *v = v2
  15725. }
  15726. case map[uintptr]interface{}:
  15727. fastpathTV.DecMapUintptrIntfV(v, fastpathCheckNilFalse, false, d)
  15728. case *map[uintptr]interface{}:
  15729. v2, changed2 := fastpathTV.DecMapUintptrIntfV(*v, fastpathCheckNilFalse, true, d)
  15730. if changed2 {
  15731. *v = v2
  15732. }
  15733. case map[uintptr]string:
  15734. fastpathTV.DecMapUintptrStringV(v, fastpathCheckNilFalse, false, d)
  15735. case *map[uintptr]string:
  15736. v2, changed2 := fastpathTV.DecMapUintptrStringV(*v, fastpathCheckNilFalse, true, d)
  15737. if changed2 {
  15738. *v = v2
  15739. }
  15740. case map[uintptr]uint:
  15741. fastpathTV.DecMapUintptrUintV(v, fastpathCheckNilFalse, false, d)
  15742. case *map[uintptr]uint:
  15743. v2, changed2 := fastpathTV.DecMapUintptrUintV(*v, fastpathCheckNilFalse, true, d)
  15744. if changed2 {
  15745. *v = v2
  15746. }
  15747. case map[uintptr]uint8:
  15748. fastpathTV.DecMapUintptrUint8V(v, fastpathCheckNilFalse, false, d)
  15749. case *map[uintptr]uint8:
  15750. v2, changed2 := fastpathTV.DecMapUintptrUint8V(*v, fastpathCheckNilFalse, true, d)
  15751. if changed2 {
  15752. *v = v2
  15753. }
  15754. case map[uintptr]uint16:
  15755. fastpathTV.DecMapUintptrUint16V(v, fastpathCheckNilFalse, false, d)
  15756. case *map[uintptr]uint16:
  15757. v2, changed2 := fastpathTV.DecMapUintptrUint16V(*v, fastpathCheckNilFalse, true, d)
  15758. if changed2 {
  15759. *v = v2
  15760. }
  15761. case map[uintptr]uint32:
  15762. fastpathTV.DecMapUintptrUint32V(v, fastpathCheckNilFalse, false, d)
  15763. case *map[uintptr]uint32:
  15764. v2, changed2 := fastpathTV.DecMapUintptrUint32V(*v, fastpathCheckNilFalse, true, d)
  15765. if changed2 {
  15766. *v = v2
  15767. }
  15768. case map[uintptr]uint64:
  15769. fastpathTV.DecMapUintptrUint64V(v, fastpathCheckNilFalse, false, d)
  15770. case *map[uintptr]uint64:
  15771. v2, changed2 := fastpathTV.DecMapUintptrUint64V(*v, fastpathCheckNilFalse, true, d)
  15772. if changed2 {
  15773. *v = v2
  15774. }
  15775. case map[uintptr]uintptr:
  15776. fastpathTV.DecMapUintptrUintptrV(v, fastpathCheckNilFalse, false, d)
  15777. case *map[uintptr]uintptr:
  15778. v2, changed2 := fastpathTV.DecMapUintptrUintptrV(*v, fastpathCheckNilFalse, true, d)
  15779. if changed2 {
  15780. *v = v2
  15781. }
  15782. case map[uintptr]int:
  15783. fastpathTV.DecMapUintptrIntV(v, fastpathCheckNilFalse, false, d)
  15784. case *map[uintptr]int:
  15785. v2, changed2 := fastpathTV.DecMapUintptrIntV(*v, fastpathCheckNilFalse, true, d)
  15786. if changed2 {
  15787. *v = v2
  15788. }
  15789. case map[uintptr]int8:
  15790. fastpathTV.DecMapUintptrInt8V(v, fastpathCheckNilFalse, false, d)
  15791. case *map[uintptr]int8:
  15792. v2, changed2 := fastpathTV.DecMapUintptrInt8V(*v, fastpathCheckNilFalse, true, d)
  15793. if changed2 {
  15794. *v = v2
  15795. }
  15796. case map[uintptr]int16:
  15797. fastpathTV.DecMapUintptrInt16V(v, fastpathCheckNilFalse, false, d)
  15798. case *map[uintptr]int16:
  15799. v2, changed2 := fastpathTV.DecMapUintptrInt16V(*v, fastpathCheckNilFalse, true, d)
  15800. if changed2 {
  15801. *v = v2
  15802. }
  15803. case map[uintptr]int32:
  15804. fastpathTV.DecMapUintptrInt32V(v, fastpathCheckNilFalse, false, d)
  15805. case *map[uintptr]int32:
  15806. v2, changed2 := fastpathTV.DecMapUintptrInt32V(*v, fastpathCheckNilFalse, true, d)
  15807. if changed2 {
  15808. *v = v2
  15809. }
  15810. case map[uintptr]int64:
  15811. fastpathTV.DecMapUintptrInt64V(v, fastpathCheckNilFalse, false, d)
  15812. case *map[uintptr]int64:
  15813. v2, changed2 := fastpathTV.DecMapUintptrInt64V(*v, fastpathCheckNilFalse, true, d)
  15814. if changed2 {
  15815. *v = v2
  15816. }
  15817. case map[uintptr]float32:
  15818. fastpathTV.DecMapUintptrFloat32V(v, fastpathCheckNilFalse, false, d)
  15819. case *map[uintptr]float32:
  15820. v2, changed2 := fastpathTV.DecMapUintptrFloat32V(*v, fastpathCheckNilFalse, true, d)
  15821. if changed2 {
  15822. *v = v2
  15823. }
  15824. case map[uintptr]float64:
  15825. fastpathTV.DecMapUintptrFloat64V(v, fastpathCheckNilFalse, false, d)
  15826. case *map[uintptr]float64:
  15827. v2, changed2 := fastpathTV.DecMapUintptrFloat64V(*v, fastpathCheckNilFalse, true, d)
  15828. if changed2 {
  15829. *v = v2
  15830. }
  15831. case map[uintptr]bool:
  15832. fastpathTV.DecMapUintptrBoolV(v, fastpathCheckNilFalse, false, d)
  15833. case *map[uintptr]bool:
  15834. v2, changed2 := fastpathTV.DecMapUintptrBoolV(*v, fastpathCheckNilFalse, true, d)
  15835. if changed2 {
  15836. *v = v2
  15837. }
  15838. case []int:
  15839. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, d)
  15840. case *[]int:
  15841. v2, changed2 := fastpathTV.DecSliceIntV(*v, fastpathCheckNilFalse, true, d)
  15842. if changed2 {
  15843. *v = v2
  15844. }
  15845. case map[int]interface{}:
  15846. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, d)
  15847. case *map[int]interface{}:
  15848. v2, changed2 := fastpathTV.DecMapIntIntfV(*v, fastpathCheckNilFalse, true, d)
  15849. if changed2 {
  15850. *v = v2
  15851. }
  15852. case map[int]string:
  15853. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, d)
  15854. case *map[int]string:
  15855. v2, changed2 := fastpathTV.DecMapIntStringV(*v, fastpathCheckNilFalse, true, d)
  15856. if changed2 {
  15857. *v = v2
  15858. }
  15859. case map[int]uint:
  15860. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, d)
  15861. case *map[int]uint:
  15862. v2, changed2 := fastpathTV.DecMapIntUintV(*v, fastpathCheckNilFalse, true, d)
  15863. if changed2 {
  15864. *v = v2
  15865. }
  15866. case map[int]uint8:
  15867. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, d)
  15868. case *map[int]uint8:
  15869. v2, changed2 := fastpathTV.DecMapIntUint8V(*v, fastpathCheckNilFalse, true, d)
  15870. if changed2 {
  15871. *v = v2
  15872. }
  15873. case map[int]uint16:
  15874. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, d)
  15875. case *map[int]uint16:
  15876. v2, changed2 := fastpathTV.DecMapIntUint16V(*v, fastpathCheckNilFalse, true, d)
  15877. if changed2 {
  15878. *v = v2
  15879. }
  15880. case map[int]uint32:
  15881. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, d)
  15882. case *map[int]uint32:
  15883. v2, changed2 := fastpathTV.DecMapIntUint32V(*v, fastpathCheckNilFalse, true, d)
  15884. if changed2 {
  15885. *v = v2
  15886. }
  15887. case map[int]uint64:
  15888. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, d)
  15889. case *map[int]uint64:
  15890. v2, changed2 := fastpathTV.DecMapIntUint64V(*v, fastpathCheckNilFalse, true, d)
  15891. if changed2 {
  15892. *v = v2
  15893. }
  15894. case map[int]uintptr:
  15895. fastpathTV.DecMapIntUintptrV(v, fastpathCheckNilFalse, false, d)
  15896. case *map[int]uintptr:
  15897. v2, changed2 := fastpathTV.DecMapIntUintptrV(*v, fastpathCheckNilFalse, true, d)
  15898. if changed2 {
  15899. *v = v2
  15900. }
  15901. case map[int]int:
  15902. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, d)
  15903. case *map[int]int:
  15904. v2, changed2 := fastpathTV.DecMapIntIntV(*v, fastpathCheckNilFalse, true, d)
  15905. if changed2 {
  15906. *v = v2
  15907. }
  15908. case map[int]int8:
  15909. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, d)
  15910. case *map[int]int8:
  15911. v2, changed2 := fastpathTV.DecMapIntInt8V(*v, fastpathCheckNilFalse, true, d)
  15912. if changed2 {
  15913. *v = v2
  15914. }
  15915. case map[int]int16:
  15916. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, d)
  15917. case *map[int]int16:
  15918. v2, changed2 := fastpathTV.DecMapIntInt16V(*v, fastpathCheckNilFalse, true, d)
  15919. if changed2 {
  15920. *v = v2
  15921. }
  15922. case map[int]int32:
  15923. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, d)
  15924. case *map[int]int32:
  15925. v2, changed2 := fastpathTV.DecMapIntInt32V(*v, fastpathCheckNilFalse, true, d)
  15926. if changed2 {
  15927. *v = v2
  15928. }
  15929. case map[int]int64:
  15930. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, d)
  15931. case *map[int]int64:
  15932. v2, changed2 := fastpathTV.DecMapIntInt64V(*v, fastpathCheckNilFalse, true, d)
  15933. if changed2 {
  15934. *v = v2
  15935. }
  15936. case map[int]float32:
  15937. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, d)
  15938. case *map[int]float32:
  15939. v2, changed2 := fastpathTV.DecMapIntFloat32V(*v, fastpathCheckNilFalse, true, d)
  15940. if changed2 {
  15941. *v = v2
  15942. }
  15943. case map[int]float64:
  15944. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, d)
  15945. case *map[int]float64:
  15946. v2, changed2 := fastpathTV.DecMapIntFloat64V(*v, fastpathCheckNilFalse, true, d)
  15947. if changed2 {
  15948. *v = v2
  15949. }
  15950. case map[int]bool:
  15951. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, d)
  15952. case *map[int]bool:
  15953. v2, changed2 := fastpathTV.DecMapIntBoolV(*v, fastpathCheckNilFalse, true, d)
  15954. if changed2 {
  15955. *v = v2
  15956. }
  15957. case []int8:
  15958. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, d)
  15959. case *[]int8:
  15960. v2, changed2 := fastpathTV.DecSliceInt8V(*v, fastpathCheckNilFalse, true, d)
  15961. if changed2 {
  15962. *v = v2
  15963. }
  15964. case map[int8]interface{}:
  15965. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, d)
  15966. case *map[int8]interface{}:
  15967. v2, changed2 := fastpathTV.DecMapInt8IntfV(*v, fastpathCheckNilFalse, true, d)
  15968. if changed2 {
  15969. *v = v2
  15970. }
  15971. case map[int8]string:
  15972. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, d)
  15973. case *map[int8]string:
  15974. v2, changed2 := fastpathTV.DecMapInt8StringV(*v, fastpathCheckNilFalse, true, d)
  15975. if changed2 {
  15976. *v = v2
  15977. }
  15978. case map[int8]uint:
  15979. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, d)
  15980. case *map[int8]uint:
  15981. v2, changed2 := fastpathTV.DecMapInt8UintV(*v, fastpathCheckNilFalse, true, d)
  15982. if changed2 {
  15983. *v = v2
  15984. }
  15985. case map[int8]uint8:
  15986. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, d)
  15987. case *map[int8]uint8:
  15988. v2, changed2 := fastpathTV.DecMapInt8Uint8V(*v, fastpathCheckNilFalse, true, d)
  15989. if changed2 {
  15990. *v = v2
  15991. }
  15992. case map[int8]uint16:
  15993. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, d)
  15994. case *map[int8]uint16:
  15995. v2, changed2 := fastpathTV.DecMapInt8Uint16V(*v, fastpathCheckNilFalse, true, d)
  15996. if changed2 {
  15997. *v = v2
  15998. }
  15999. case map[int8]uint32:
  16000. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, d)
  16001. case *map[int8]uint32:
  16002. v2, changed2 := fastpathTV.DecMapInt8Uint32V(*v, fastpathCheckNilFalse, true, d)
  16003. if changed2 {
  16004. *v = v2
  16005. }
  16006. case map[int8]uint64:
  16007. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, d)
  16008. case *map[int8]uint64:
  16009. v2, changed2 := fastpathTV.DecMapInt8Uint64V(*v, fastpathCheckNilFalse, true, d)
  16010. if changed2 {
  16011. *v = v2
  16012. }
  16013. case map[int8]uintptr:
  16014. fastpathTV.DecMapInt8UintptrV(v, fastpathCheckNilFalse, false, d)
  16015. case *map[int8]uintptr:
  16016. v2, changed2 := fastpathTV.DecMapInt8UintptrV(*v, fastpathCheckNilFalse, true, d)
  16017. if changed2 {
  16018. *v = v2
  16019. }
  16020. case map[int8]int:
  16021. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, d)
  16022. case *map[int8]int:
  16023. v2, changed2 := fastpathTV.DecMapInt8IntV(*v, fastpathCheckNilFalse, true, d)
  16024. if changed2 {
  16025. *v = v2
  16026. }
  16027. case map[int8]int8:
  16028. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, d)
  16029. case *map[int8]int8:
  16030. v2, changed2 := fastpathTV.DecMapInt8Int8V(*v, fastpathCheckNilFalse, true, d)
  16031. if changed2 {
  16032. *v = v2
  16033. }
  16034. case map[int8]int16:
  16035. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, d)
  16036. case *map[int8]int16:
  16037. v2, changed2 := fastpathTV.DecMapInt8Int16V(*v, fastpathCheckNilFalse, true, d)
  16038. if changed2 {
  16039. *v = v2
  16040. }
  16041. case map[int8]int32:
  16042. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, d)
  16043. case *map[int8]int32:
  16044. v2, changed2 := fastpathTV.DecMapInt8Int32V(*v, fastpathCheckNilFalse, true, d)
  16045. if changed2 {
  16046. *v = v2
  16047. }
  16048. case map[int8]int64:
  16049. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, d)
  16050. case *map[int8]int64:
  16051. v2, changed2 := fastpathTV.DecMapInt8Int64V(*v, fastpathCheckNilFalse, true, d)
  16052. if changed2 {
  16053. *v = v2
  16054. }
  16055. case map[int8]float32:
  16056. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, d)
  16057. case *map[int8]float32:
  16058. v2, changed2 := fastpathTV.DecMapInt8Float32V(*v, fastpathCheckNilFalse, true, d)
  16059. if changed2 {
  16060. *v = v2
  16061. }
  16062. case map[int8]float64:
  16063. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, d)
  16064. case *map[int8]float64:
  16065. v2, changed2 := fastpathTV.DecMapInt8Float64V(*v, fastpathCheckNilFalse, true, d)
  16066. if changed2 {
  16067. *v = v2
  16068. }
  16069. case map[int8]bool:
  16070. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, d)
  16071. case *map[int8]bool:
  16072. v2, changed2 := fastpathTV.DecMapInt8BoolV(*v, fastpathCheckNilFalse, true, d)
  16073. if changed2 {
  16074. *v = v2
  16075. }
  16076. case []int16:
  16077. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, d)
  16078. case *[]int16:
  16079. v2, changed2 := fastpathTV.DecSliceInt16V(*v, fastpathCheckNilFalse, true, d)
  16080. if changed2 {
  16081. *v = v2
  16082. }
  16083. case map[int16]interface{}:
  16084. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, d)
  16085. case *map[int16]interface{}:
  16086. v2, changed2 := fastpathTV.DecMapInt16IntfV(*v, fastpathCheckNilFalse, true, d)
  16087. if changed2 {
  16088. *v = v2
  16089. }
  16090. case map[int16]string:
  16091. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, d)
  16092. case *map[int16]string:
  16093. v2, changed2 := fastpathTV.DecMapInt16StringV(*v, fastpathCheckNilFalse, true, d)
  16094. if changed2 {
  16095. *v = v2
  16096. }
  16097. case map[int16]uint:
  16098. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, d)
  16099. case *map[int16]uint:
  16100. v2, changed2 := fastpathTV.DecMapInt16UintV(*v, fastpathCheckNilFalse, true, d)
  16101. if changed2 {
  16102. *v = v2
  16103. }
  16104. case map[int16]uint8:
  16105. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, d)
  16106. case *map[int16]uint8:
  16107. v2, changed2 := fastpathTV.DecMapInt16Uint8V(*v, fastpathCheckNilFalse, true, d)
  16108. if changed2 {
  16109. *v = v2
  16110. }
  16111. case map[int16]uint16:
  16112. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, d)
  16113. case *map[int16]uint16:
  16114. v2, changed2 := fastpathTV.DecMapInt16Uint16V(*v, fastpathCheckNilFalse, true, d)
  16115. if changed2 {
  16116. *v = v2
  16117. }
  16118. case map[int16]uint32:
  16119. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, d)
  16120. case *map[int16]uint32:
  16121. v2, changed2 := fastpathTV.DecMapInt16Uint32V(*v, fastpathCheckNilFalse, true, d)
  16122. if changed2 {
  16123. *v = v2
  16124. }
  16125. case map[int16]uint64:
  16126. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, d)
  16127. case *map[int16]uint64:
  16128. v2, changed2 := fastpathTV.DecMapInt16Uint64V(*v, fastpathCheckNilFalse, true, d)
  16129. if changed2 {
  16130. *v = v2
  16131. }
  16132. case map[int16]uintptr:
  16133. fastpathTV.DecMapInt16UintptrV(v, fastpathCheckNilFalse, false, d)
  16134. case *map[int16]uintptr:
  16135. v2, changed2 := fastpathTV.DecMapInt16UintptrV(*v, fastpathCheckNilFalse, true, d)
  16136. if changed2 {
  16137. *v = v2
  16138. }
  16139. case map[int16]int:
  16140. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, d)
  16141. case *map[int16]int:
  16142. v2, changed2 := fastpathTV.DecMapInt16IntV(*v, fastpathCheckNilFalse, true, d)
  16143. if changed2 {
  16144. *v = v2
  16145. }
  16146. case map[int16]int8:
  16147. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, d)
  16148. case *map[int16]int8:
  16149. v2, changed2 := fastpathTV.DecMapInt16Int8V(*v, fastpathCheckNilFalse, true, d)
  16150. if changed2 {
  16151. *v = v2
  16152. }
  16153. case map[int16]int16:
  16154. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, d)
  16155. case *map[int16]int16:
  16156. v2, changed2 := fastpathTV.DecMapInt16Int16V(*v, fastpathCheckNilFalse, true, d)
  16157. if changed2 {
  16158. *v = v2
  16159. }
  16160. case map[int16]int32:
  16161. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, d)
  16162. case *map[int16]int32:
  16163. v2, changed2 := fastpathTV.DecMapInt16Int32V(*v, fastpathCheckNilFalse, true, d)
  16164. if changed2 {
  16165. *v = v2
  16166. }
  16167. case map[int16]int64:
  16168. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, d)
  16169. case *map[int16]int64:
  16170. v2, changed2 := fastpathTV.DecMapInt16Int64V(*v, fastpathCheckNilFalse, true, d)
  16171. if changed2 {
  16172. *v = v2
  16173. }
  16174. case map[int16]float32:
  16175. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, d)
  16176. case *map[int16]float32:
  16177. v2, changed2 := fastpathTV.DecMapInt16Float32V(*v, fastpathCheckNilFalse, true, d)
  16178. if changed2 {
  16179. *v = v2
  16180. }
  16181. case map[int16]float64:
  16182. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, d)
  16183. case *map[int16]float64:
  16184. v2, changed2 := fastpathTV.DecMapInt16Float64V(*v, fastpathCheckNilFalse, true, d)
  16185. if changed2 {
  16186. *v = v2
  16187. }
  16188. case map[int16]bool:
  16189. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, d)
  16190. case *map[int16]bool:
  16191. v2, changed2 := fastpathTV.DecMapInt16BoolV(*v, fastpathCheckNilFalse, true, d)
  16192. if changed2 {
  16193. *v = v2
  16194. }
  16195. case []int32:
  16196. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, d)
  16197. case *[]int32:
  16198. v2, changed2 := fastpathTV.DecSliceInt32V(*v, fastpathCheckNilFalse, true, d)
  16199. if changed2 {
  16200. *v = v2
  16201. }
  16202. case map[int32]interface{}:
  16203. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, d)
  16204. case *map[int32]interface{}:
  16205. v2, changed2 := fastpathTV.DecMapInt32IntfV(*v, fastpathCheckNilFalse, true, d)
  16206. if changed2 {
  16207. *v = v2
  16208. }
  16209. case map[int32]string:
  16210. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, d)
  16211. case *map[int32]string:
  16212. v2, changed2 := fastpathTV.DecMapInt32StringV(*v, fastpathCheckNilFalse, true, d)
  16213. if changed2 {
  16214. *v = v2
  16215. }
  16216. case map[int32]uint:
  16217. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, d)
  16218. case *map[int32]uint:
  16219. v2, changed2 := fastpathTV.DecMapInt32UintV(*v, fastpathCheckNilFalse, true, d)
  16220. if changed2 {
  16221. *v = v2
  16222. }
  16223. case map[int32]uint8:
  16224. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, d)
  16225. case *map[int32]uint8:
  16226. v2, changed2 := fastpathTV.DecMapInt32Uint8V(*v, fastpathCheckNilFalse, true, d)
  16227. if changed2 {
  16228. *v = v2
  16229. }
  16230. case map[int32]uint16:
  16231. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, d)
  16232. case *map[int32]uint16:
  16233. v2, changed2 := fastpathTV.DecMapInt32Uint16V(*v, fastpathCheckNilFalse, true, d)
  16234. if changed2 {
  16235. *v = v2
  16236. }
  16237. case map[int32]uint32:
  16238. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, d)
  16239. case *map[int32]uint32:
  16240. v2, changed2 := fastpathTV.DecMapInt32Uint32V(*v, fastpathCheckNilFalse, true, d)
  16241. if changed2 {
  16242. *v = v2
  16243. }
  16244. case map[int32]uint64:
  16245. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, d)
  16246. case *map[int32]uint64:
  16247. v2, changed2 := fastpathTV.DecMapInt32Uint64V(*v, fastpathCheckNilFalse, true, d)
  16248. if changed2 {
  16249. *v = v2
  16250. }
  16251. case map[int32]uintptr:
  16252. fastpathTV.DecMapInt32UintptrV(v, fastpathCheckNilFalse, false, d)
  16253. case *map[int32]uintptr:
  16254. v2, changed2 := fastpathTV.DecMapInt32UintptrV(*v, fastpathCheckNilFalse, true, d)
  16255. if changed2 {
  16256. *v = v2
  16257. }
  16258. case map[int32]int:
  16259. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, d)
  16260. case *map[int32]int:
  16261. v2, changed2 := fastpathTV.DecMapInt32IntV(*v, fastpathCheckNilFalse, true, d)
  16262. if changed2 {
  16263. *v = v2
  16264. }
  16265. case map[int32]int8:
  16266. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, d)
  16267. case *map[int32]int8:
  16268. v2, changed2 := fastpathTV.DecMapInt32Int8V(*v, fastpathCheckNilFalse, true, d)
  16269. if changed2 {
  16270. *v = v2
  16271. }
  16272. case map[int32]int16:
  16273. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, d)
  16274. case *map[int32]int16:
  16275. v2, changed2 := fastpathTV.DecMapInt32Int16V(*v, fastpathCheckNilFalse, true, d)
  16276. if changed2 {
  16277. *v = v2
  16278. }
  16279. case map[int32]int32:
  16280. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, d)
  16281. case *map[int32]int32:
  16282. v2, changed2 := fastpathTV.DecMapInt32Int32V(*v, fastpathCheckNilFalse, true, d)
  16283. if changed2 {
  16284. *v = v2
  16285. }
  16286. case map[int32]int64:
  16287. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, d)
  16288. case *map[int32]int64:
  16289. v2, changed2 := fastpathTV.DecMapInt32Int64V(*v, fastpathCheckNilFalse, true, d)
  16290. if changed2 {
  16291. *v = v2
  16292. }
  16293. case map[int32]float32:
  16294. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, d)
  16295. case *map[int32]float32:
  16296. v2, changed2 := fastpathTV.DecMapInt32Float32V(*v, fastpathCheckNilFalse, true, d)
  16297. if changed2 {
  16298. *v = v2
  16299. }
  16300. case map[int32]float64:
  16301. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, d)
  16302. case *map[int32]float64:
  16303. v2, changed2 := fastpathTV.DecMapInt32Float64V(*v, fastpathCheckNilFalse, true, d)
  16304. if changed2 {
  16305. *v = v2
  16306. }
  16307. case map[int32]bool:
  16308. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, d)
  16309. case *map[int32]bool:
  16310. v2, changed2 := fastpathTV.DecMapInt32BoolV(*v, fastpathCheckNilFalse, true, d)
  16311. if changed2 {
  16312. *v = v2
  16313. }
  16314. case []int64:
  16315. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, d)
  16316. case *[]int64:
  16317. v2, changed2 := fastpathTV.DecSliceInt64V(*v, fastpathCheckNilFalse, true, d)
  16318. if changed2 {
  16319. *v = v2
  16320. }
  16321. case map[int64]interface{}:
  16322. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, d)
  16323. case *map[int64]interface{}:
  16324. v2, changed2 := fastpathTV.DecMapInt64IntfV(*v, fastpathCheckNilFalse, true, d)
  16325. if changed2 {
  16326. *v = v2
  16327. }
  16328. case map[int64]string:
  16329. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, d)
  16330. case *map[int64]string:
  16331. v2, changed2 := fastpathTV.DecMapInt64StringV(*v, fastpathCheckNilFalse, true, d)
  16332. if changed2 {
  16333. *v = v2
  16334. }
  16335. case map[int64]uint:
  16336. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, d)
  16337. case *map[int64]uint:
  16338. v2, changed2 := fastpathTV.DecMapInt64UintV(*v, fastpathCheckNilFalse, true, d)
  16339. if changed2 {
  16340. *v = v2
  16341. }
  16342. case map[int64]uint8:
  16343. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, d)
  16344. case *map[int64]uint8:
  16345. v2, changed2 := fastpathTV.DecMapInt64Uint8V(*v, fastpathCheckNilFalse, true, d)
  16346. if changed2 {
  16347. *v = v2
  16348. }
  16349. case map[int64]uint16:
  16350. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, d)
  16351. case *map[int64]uint16:
  16352. v2, changed2 := fastpathTV.DecMapInt64Uint16V(*v, fastpathCheckNilFalse, true, d)
  16353. if changed2 {
  16354. *v = v2
  16355. }
  16356. case map[int64]uint32:
  16357. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, d)
  16358. case *map[int64]uint32:
  16359. v2, changed2 := fastpathTV.DecMapInt64Uint32V(*v, fastpathCheckNilFalse, true, d)
  16360. if changed2 {
  16361. *v = v2
  16362. }
  16363. case map[int64]uint64:
  16364. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, d)
  16365. case *map[int64]uint64:
  16366. v2, changed2 := fastpathTV.DecMapInt64Uint64V(*v, fastpathCheckNilFalse, true, d)
  16367. if changed2 {
  16368. *v = v2
  16369. }
  16370. case map[int64]uintptr:
  16371. fastpathTV.DecMapInt64UintptrV(v, fastpathCheckNilFalse, false, d)
  16372. case *map[int64]uintptr:
  16373. v2, changed2 := fastpathTV.DecMapInt64UintptrV(*v, fastpathCheckNilFalse, true, d)
  16374. if changed2 {
  16375. *v = v2
  16376. }
  16377. case map[int64]int:
  16378. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, d)
  16379. case *map[int64]int:
  16380. v2, changed2 := fastpathTV.DecMapInt64IntV(*v, fastpathCheckNilFalse, true, d)
  16381. if changed2 {
  16382. *v = v2
  16383. }
  16384. case map[int64]int8:
  16385. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, d)
  16386. case *map[int64]int8:
  16387. v2, changed2 := fastpathTV.DecMapInt64Int8V(*v, fastpathCheckNilFalse, true, d)
  16388. if changed2 {
  16389. *v = v2
  16390. }
  16391. case map[int64]int16:
  16392. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, d)
  16393. case *map[int64]int16:
  16394. v2, changed2 := fastpathTV.DecMapInt64Int16V(*v, fastpathCheckNilFalse, true, d)
  16395. if changed2 {
  16396. *v = v2
  16397. }
  16398. case map[int64]int32:
  16399. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, d)
  16400. case *map[int64]int32:
  16401. v2, changed2 := fastpathTV.DecMapInt64Int32V(*v, fastpathCheckNilFalse, true, d)
  16402. if changed2 {
  16403. *v = v2
  16404. }
  16405. case map[int64]int64:
  16406. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, d)
  16407. case *map[int64]int64:
  16408. v2, changed2 := fastpathTV.DecMapInt64Int64V(*v, fastpathCheckNilFalse, true, d)
  16409. if changed2 {
  16410. *v = v2
  16411. }
  16412. case map[int64]float32:
  16413. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, d)
  16414. case *map[int64]float32:
  16415. v2, changed2 := fastpathTV.DecMapInt64Float32V(*v, fastpathCheckNilFalse, true, d)
  16416. if changed2 {
  16417. *v = v2
  16418. }
  16419. case map[int64]float64:
  16420. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, d)
  16421. case *map[int64]float64:
  16422. v2, changed2 := fastpathTV.DecMapInt64Float64V(*v, fastpathCheckNilFalse, true, d)
  16423. if changed2 {
  16424. *v = v2
  16425. }
  16426. case map[int64]bool:
  16427. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, d)
  16428. case *map[int64]bool:
  16429. v2, changed2 := fastpathTV.DecMapInt64BoolV(*v, fastpathCheckNilFalse, true, d)
  16430. if changed2 {
  16431. *v = v2
  16432. }
  16433. case []bool:
  16434. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, d)
  16435. case *[]bool:
  16436. v2, changed2 := fastpathTV.DecSliceBoolV(*v, fastpathCheckNilFalse, true, d)
  16437. if changed2 {
  16438. *v = v2
  16439. }
  16440. case map[bool]interface{}:
  16441. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, d)
  16442. case *map[bool]interface{}:
  16443. v2, changed2 := fastpathTV.DecMapBoolIntfV(*v, fastpathCheckNilFalse, true, d)
  16444. if changed2 {
  16445. *v = v2
  16446. }
  16447. case map[bool]string:
  16448. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, d)
  16449. case *map[bool]string:
  16450. v2, changed2 := fastpathTV.DecMapBoolStringV(*v, fastpathCheckNilFalse, true, d)
  16451. if changed2 {
  16452. *v = v2
  16453. }
  16454. case map[bool]uint:
  16455. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, d)
  16456. case *map[bool]uint:
  16457. v2, changed2 := fastpathTV.DecMapBoolUintV(*v, fastpathCheckNilFalse, true, d)
  16458. if changed2 {
  16459. *v = v2
  16460. }
  16461. case map[bool]uint8:
  16462. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, d)
  16463. case *map[bool]uint8:
  16464. v2, changed2 := fastpathTV.DecMapBoolUint8V(*v, fastpathCheckNilFalse, true, d)
  16465. if changed2 {
  16466. *v = v2
  16467. }
  16468. case map[bool]uint16:
  16469. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, d)
  16470. case *map[bool]uint16:
  16471. v2, changed2 := fastpathTV.DecMapBoolUint16V(*v, fastpathCheckNilFalse, true, d)
  16472. if changed2 {
  16473. *v = v2
  16474. }
  16475. case map[bool]uint32:
  16476. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, d)
  16477. case *map[bool]uint32:
  16478. v2, changed2 := fastpathTV.DecMapBoolUint32V(*v, fastpathCheckNilFalse, true, d)
  16479. if changed2 {
  16480. *v = v2
  16481. }
  16482. case map[bool]uint64:
  16483. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, d)
  16484. case *map[bool]uint64:
  16485. v2, changed2 := fastpathTV.DecMapBoolUint64V(*v, fastpathCheckNilFalse, true, d)
  16486. if changed2 {
  16487. *v = v2
  16488. }
  16489. case map[bool]uintptr:
  16490. fastpathTV.DecMapBoolUintptrV(v, fastpathCheckNilFalse, false, d)
  16491. case *map[bool]uintptr:
  16492. v2, changed2 := fastpathTV.DecMapBoolUintptrV(*v, fastpathCheckNilFalse, true, d)
  16493. if changed2 {
  16494. *v = v2
  16495. }
  16496. case map[bool]int:
  16497. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, d)
  16498. case *map[bool]int:
  16499. v2, changed2 := fastpathTV.DecMapBoolIntV(*v, fastpathCheckNilFalse, true, d)
  16500. if changed2 {
  16501. *v = v2
  16502. }
  16503. case map[bool]int8:
  16504. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, d)
  16505. case *map[bool]int8:
  16506. v2, changed2 := fastpathTV.DecMapBoolInt8V(*v, fastpathCheckNilFalse, true, d)
  16507. if changed2 {
  16508. *v = v2
  16509. }
  16510. case map[bool]int16:
  16511. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, d)
  16512. case *map[bool]int16:
  16513. v2, changed2 := fastpathTV.DecMapBoolInt16V(*v, fastpathCheckNilFalse, true, d)
  16514. if changed2 {
  16515. *v = v2
  16516. }
  16517. case map[bool]int32:
  16518. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, d)
  16519. case *map[bool]int32:
  16520. v2, changed2 := fastpathTV.DecMapBoolInt32V(*v, fastpathCheckNilFalse, true, d)
  16521. if changed2 {
  16522. *v = v2
  16523. }
  16524. case map[bool]int64:
  16525. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, d)
  16526. case *map[bool]int64:
  16527. v2, changed2 := fastpathTV.DecMapBoolInt64V(*v, fastpathCheckNilFalse, true, d)
  16528. if changed2 {
  16529. *v = v2
  16530. }
  16531. case map[bool]float32:
  16532. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, d)
  16533. case *map[bool]float32:
  16534. v2, changed2 := fastpathTV.DecMapBoolFloat32V(*v, fastpathCheckNilFalse, true, d)
  16535. if changed2 {
  16536. *v = v2
  16537. }
  16538. case map[bool]float64:
  16539. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, d)
  16540. case *map[bool]float64:
  16541. v2, changed2 := fastpathTV.DecMapBoolFloat64V(*v, fastpathCheckNilFalse, true, d)
  16542. if changed2 {
  16543. *v = v2
  16544. }
  16545. case map[bool]bool:
  16546. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, d)
  16547. case *map[bool]bool:
  16548. v2, changed2 := fastpathTV.DecMapBoolBoolV(*v, fastpathCheckNilFalse, true, d)
  16549. if changed2 {
  16550. *v = v2
  16551. }
  16552. default:
  16553. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  16554. return false
  16555. }
  16556. return true
  16557. }
  16558. // -- -- fast path functions
  16559. func (f *decFnInfo) fastpathDecSliceIntfR(rv reflect.Value) {
  16560. array := f.seq == seqTypeArray
  16561. if !array && rv.CanAddr() {
  16562. vp := rv.Addr().Interface().(*[]interface{})
  16563. v, changed := fastpathTV.DecSliceIntfV(*vp, fastpathCheckNilFalse, !array, f.d)
  16564. if changed {
  16565. *vp = v
  16566. }
  16567. } else {
  16568. v := rv.Interface().([]interface{})
  16569. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, f.d)
  16570. }
  16571. }
  16572. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, checkNil bool, d *Decoder) {
  16573. v, changed := f.DecSliceIntfV(*vp, checkNil, true, d)
  16574. if changed {
  16575. *vp = v
  16576. }
  16577. }
  16578. func (_ fastpathT) DecSliceIntfV(v []interface{}, checkNil bool, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  16579. dd := d.d
  16580. if checkNil && dd.TryDecodeAsNil() {
  16581. if v != nil {
  16582. changed = true
  16583. }
  16584. return nil, changed
  16585. }
  16586. slh, containerLenS := d.decSliceHelperStart()
  16587. if containerLenS == 0 {
  16588. if canChange {
  16589. if v == nil {
  16590. v = []interface{}{}
  16591. } else if len(v) != 0 {
  16592. v = v[:0]
  16593. }
  16594. changed = true
  16595. }
  16596. slh.End()
  16597. return
  16598. }
  16599. if containerLenS > 0 {
  16600. x2read := containerLenS
  16601. var xtrunc bool
  16602. if containerLenS > cap(v) {
  16603. if canChange {
  16604. var xlen int
  16605. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  16606. if xtrunc {
  16607. if xlen <= cap(v) {
  16608. v = v[:xlen]
  16609. } else {
  16610. v = make([]interface{}, xlen)
  16611. }
  16612. } else {
  16613. v = make([]interface{}, xlen)
  16614. }
  16615. changed = true
  16616. } else {
  16617. d.arrayCannotExpand(len(v), containerLenS)
  16618. }
  16619. x2read = len(v)
  16620. } else if containerLenS != len(v) {
  16621. if canChange {
  16622. v = v[:containerLenS]
  16623. changed = true
  16624. }
  16625. }
  16626. j := 0
  16627. for ; j < x2read; j++ {
  16628. slh.ElemContainerState(j)
  16629. d.decode(&v[j])
  16630. }
  16631. if xtrunc {
  16632. for ; j < containerLenS; j++ {
  16633. v = append(v, nil)
  16634. slh.ElemContainerState(j)
  16635. d.decode(&v[j])
  16636. }
  16637. } else if !canChange {
  16638. for ; j < containerLenS; j++ {
  16639. slh.ElemContainerState(j)
  16640. d.swallow()
  16641. }
  16642. }
  16643. } else {
  16644. breakFound := dd.CheckBreak()
  16645. if breakFound {
  16646. if canChange {
  16647. if v == nil {
  16648. v = []interface{}{}
  16649. } else if len(v) != 0 {
  16650. v = v[:0]
  16651. }
  16652. changed = true
  16653. }
  16654. slh.End()
  16655. return
  16656. }
  16657. if cap(v) == 0 {
  16658. v = make([]interface{}, 1, 4)
  16659. changed = true
  16660. }
  16661. j := 0
  16662. for ; !breakFound; j++ {
  16663. if j >= len(v) {
  16664. if canChange {
  16665. v = append(v, nil)
  16666. changed = true
  16667. } else {
  16668. d.arrayCannotExpand(len(v), j+1)
  16669. }
  16670. }
  16671. slh.ElemContainerState(j)
  16672. if j < len(v) {
  16673. d.decode(&v[j])
  16674. } else {
  16675. d.swallow()
  16676. }
  16677. breakFound = dd.CheckBreak()
  16678. }
  16679. if canChange && j < len(v) {
  16680. v = v[:j]
  16681. changed = true
  16682. }
  16683. }
  16684. slh.End()
  16685. return v, changed
  16686. }
  16687. func (f *decFnInfo) fastpathDecSliceStringR(rv reflect.Value) {
  16688. array := f.seq == seqTypeArray
  16689. if !array && rv.CanAddr() {
  16690. vp := rv.Addr().Interface().(*[]string)
  16691. v, changed := fastpathTV.DecSliceStringV(*vp, fastpathCheckNilFalse, !array, f.d)
  16692. if changed {
  16693. *vp = v
  16694. }
  16695. } else {
  16696. v := rv.Interface().([]string)
  16697. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, f.d)
  16698. }
  16699. }
  16700. func (f fastpathT) DecSliceStringX(vp *[]string, checkNil bool, d *Decoder) {
  16701. v, changed := f.DecSliceStringV(*vp, checkNil, true, d)
  16702. if changed {
  16703. *vp = v
  16704. }
  16705. }
  16706. func (_ fastpathT) DecSliceStringV(v []string, checkNil bool, canChange bool, d *Decoder) (_ []string, changed bool) {
  16707. dd := d.d
  16708. if checkNil && dd.TryDecodeAsNil() {
  16709. if v != nil {
  16710. changed = true
  16711. }
  16712. return nil, changed
  16713. }
  16714. slh, containerLenS := d.decSliceHelperStart()
  16715. if containerLenS == 0 {
  16716. if canChange {
  16717. if v == nil {
  16718. v = []string{}
  16719. } else if len(v) != 0 {
  16720. v = v[:0]
  16721. }
  16722. changed = true
  16723. }
  16724. slh.End()
  16725. return
  16726. }
  16727. if containerLenS > 0 {
  16728. x2read := containerLenS
  16729. var xtrunc bool
  16730. if containerLenS > cap(v) {
  16731. if canChange {
  16732. var xlen int
  16733. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  16734. if xtrunc {
  16735. if xlen <= cap(v) {
  16736. v = v[:xlen]
  16737. } else {
  16738. v = make([]string, xlen)
  16739. }
  16740. } else {
  16741. v = make([]string, xlen)
  16742. }
  16743. changed = true
  16744. } else {
  16745. d.arrayCannotExpand(len(v), containerLenS)
  16746. }
  16747. x2read = len(v)
  16748. } else if containerLenS != len(v) {
  16749. if canChange {
  16750. v = v[:containerLenS]
  16751. changed = true
  16752. }
  16753. }
  16754. j := 0
  16755. for ; j < x2read; j++ {
  16756. slh.ElemContainerState(j)
  16757. v[j] = dd.DecodeString()
  16758. }
  16759. if xtrunc {
  16760. for ; j < containerLenS; j++ {
  16761. v = append(v, "")
  16762. slh.ElemContainerState(j)
  16763. v[j] = dd.DecodeString()
  16764. }
  16765. } else if !canChange {
  16766. for ; j < containerLenS; j++ {
  16767. slh.ElemContainerState(j)
  16768. d.swallow()
  16769. }
  16770. }
  16771. } else {
  16772. breakFound := dd.CheckBreak()
  16773. if breakFound {
  16774. if canChange {
  16775. if v == nil {
  16776. v = []string{}
  16777. } else if len(v) != 0 {
  16778. v = v[:0]
  16779. }
  16780. changed = true
  16781. }
  16782. slh.End()
  16783. return
  16784. }
  16785. if cap(v) == 0 {
  16786. v = make([]string, 1, 4)
  16787. changed = true
  16788. }
  16789. j := 0
  16790. for ; !breakFound; j++ {
  16791. if j >= len(v) {
  16792. if canChange {
  16793. v = append(v, "")
  16794. changed = true
  16795. } else {
  16796. d.arrayCannotExpand(len(v), j+1)
  16797. }
  16798. }
  16799. slh.ElemContainerState(j)
  16800. if j < len(v) {
  16801. v[j] = dd.DecodeString()
  16802. } else {
  16803. d.swallow()
  16804. }
  16805. breakFound = dd.CheckBreak()
  16806. }
  16807. if canChange && j < len(v) {
  16808. v = v[:j]
  16809. changed = true
  16810. }
  16811. }
  16812. slh.End()
  16813. return v, changed
  16814. }
  16815. func (f *decFnInfo) fastpathDecSliceFloat32R(rv reflect.Value) {
  16816. array := f.seq == seqTypeArray
  16817. if !array && rv.CanAddr() {
  16818. vp := rv.Addr().Interface().(*[]float32)
  16819. v, changed := fastpathTV.DecSliceFloat32V(*vp, fastpathCheckNilFalse, !array, f.d)
  16820. if changed {
  16821. *vp = v
  16822. }
  16823. } else {
  16824. v := rv.Interface().([]float32)
  16825. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, f.d)
  16826. }
  16827. }
  16828. func (f fastpathT) DecSliceFloat32X(vp *[]float32, checkNil bool, d *Decoder) {
  16829. v, changed := f.DecSliceFloat32V(*vp, checkNil, true, d)
  16830. if changed {
  16831. *vp = v
  16832. }
  16833. }
  16834. func (_ fastpathT) DecSliceFloat32V(v []float32, checkNil bool, canChange bool, d *Decoder) (_ []float32, changed bool) {
  16835. dd := d.d
  16836. if checkNil && dd.TryDecodeAsNil() {
  16837. if v != nil {
  16838. changed = true
  16839. }
  16840. return nil, changed
  16841. }
  16842. slh, containerLenS := d.decSliceHelperStart()
  16843. if containerLenS == 0 {
  16844. if canChange {
  16845. if v == nil {
  16846. v = []float32{}
  16847. } else if len(v) != 0 {
  16848. v = v[:0]
  16849. }
  16850. changed = true
  16851. }
  16852. slh.End()
  16853. return
  16854. }
  16855. if containerLenS > 0 {
  16856. x2read := containerLenS
  16857. var xtrunc bool
  16858. if containerLenS > cap(v) {
  16859. if canChange {
  16860. var xlen int
  16861. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16862. if xtrunc {
  16863. if xlen <= cap(v) {
  16864. v = v[:xlen]
  16865. } else {
  16866. v = make([]float32, xlen)
  16867. }
  16868. } else {
  16869. v = make([]float32, xlen)
  16870. }
  16871. changed = true
  16872. } else {
  16873. d.arrayCannotExpand(len(v), containerLenS)
  16874. }
  16875. x2read = len(v)
  16876. } else if containerLenS != len(v) {
  16877. if canChange {
  16878. v = v[:containerLenS]
  16879. changed = true
  16880. }
  16881. }
  16882. j := 0
  16883. for ; j < x2read; j++ {
  16884. slh.ElemContainerState(j)
  16885. v[j] = float32(dd.DecodeFloat(true))
  16886. }
  16887. if xtrunc {
  16888. for ; j < containerLenS; j++ {
  16889. v = append(v, 0)
  16890. slh.ElemContainerState(j)
  16891. v[j] = float32(dd.DecodeFloat(true))
  16892. }
  16893. } else if !canChange {
  16894. for ; j < containerLenS; j++ {
  16895. slh.ElemContainerState(j)
  16896. d.swallow()
  16897. }
  16898. }
  16899. } else {
  16900. breakFound := dd.CheckBreak()
  16901. if breakFound {
  16902. if canChange {
  16903. if v == nil {
  16904. v = []float32{}
  16905. } else if len(v) != 0 {
  16906. v = v[:0]
  16907. }
  16908. changed = true
  16909. }
  16910. slh.End()
  16911. return
  16912. }
  16913. if cap(v) == 0 {
  16914. v = make([]float32, 1, 4)
  16915. changed = true
  16916. }
  16917. j := 0
  16918. for ; !breakFound; j++ {
  16919. if j >= len(v) {
  16920. if canChange {
  16921. v = append(v, 0)
  16922. changed = true
  16923. } else {
  16924. d.arrayCannotExpand(len(v), j+1)
  16925. }
  16926. }
  16927. slh.ElemContainerState(j)
  16928. if j < len(v) {
  16929. v[j] = float32(dd.DecodeFloat(true))
  16930. } else {
  16931. d.swallow()
  16932. }
  16933. breakFound = dd.CheckBreak()
  16934. }
  16935. if canChange && j < len(v) {
  16936. v = v[:j]
  16937. changed = true
  16938. }
  16939. }
  16940. slh.End()
  16941. return v, changed
  16942. }
  16943. func (f *decFnInfo) fastpathDecSliceFloat64R(rv reflect.Value) {
  16944. array := f.seq == seqTypeArray
  16945. if !array && rv.CanAddr() {
  16946. vp := rv.Addr().Interface().(*[]float64)
  16947. v, changed := fastpathTV.DecSliceFloat64V(*vp, fastpathCheckNilFalse, !array, f.d)
  16948. if changed {
  16949. *vp = v
  16950. }
  16951. } else {
  16952. v := rv.Interface().([]float64)
  16953. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, f.d)
  16954. }
  16955. }
  16956. func (f fastpathT) DecSliceFloat64X(vp *[]float64, checkNil bool, d *Decoder) {
  16957. v, changed := f.DecSliceFloat64V(*vp, checkNil, true, d)
  16958. if changed {
  16959. *vp = v
  16960. }
  16961. }
  16962. func (_ fastpathT) DecSliceFloat64V(v []float64, checkNil bool, canChange bool, d *Decoder) (_ []float64, changed bool) {
  16963. dd := d.d
  16964. if checkNil && dd.TryDecodeAsNil() {
  16965. if v != nil {
  16966. changed = true
  16967. }
  16968. return nil, changed
  16969. }
  16970. slh, containerLenS := d.decSliceHelperStart()
  16971. if containerLenS == 0 {
  16972. if canChange {
  16973. if v == nil {
  16974. v = []float64{}
  16975. } else if len(v) != 0 {
  16976. v = v[:0]
  16977. }
  16978. changed = true
  16979. }
  16980. slh.End()
  16981. return
  16982. }
  16983. if containerLenS > 0 {
  16984. x2read := containerLenS
  16985. var xtrunc bool
  16986. if containerLenS > cap(v) {
  16987. if canChange {
  16988. var xlen int
  16989. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16990. if xtrunc {
  16991. if xlen <= cap(v) {
  16992. v = v[:xlen]
  16993. } else {
  16994. v = make([]float64, xlen)
  16995. }
  16996. } else {
  16997. v = make([]float64, xlen)
  16998. }
  16999. changed = true
  17000. } else {
  17001. d.arrayCannotExpand(len(v), containerLenS)
  17002. }
  17003. x2read = len(v)
  17004. } else if containerLenS != len(v) {
  17005. if canChange {
  17006. v = v[:containerLenS]
  17007. changed = true
  17008. }
  17009. }
  17010. j := 0
  17011. for ; j < x2read; j++ {
  17012. slh.ElemContainerState(j)
  17013. v[j] = dd.DecodeFloat(false)
  17014. }
  17015. if xtrunc {
  17016. for ; j < containerLenS; j++ {
  17017. v = append(v, 0)
  17018. slh.ElemContainerState(j)
  17019. v[j] = dd.DecodeFloat(false)
  17020. }
  17021. } else if !canChange {
  17022. for ; j < containerLenS; j++ {
  17023. slh.ElemContainerState(j)
  17024. d.swallow()
  17025. }
  17026. }
  17027. } else {
  17028. breakFound := dd.CheckBreak()
  17029. if breakFound {
  17030. if canChange {
  17031. if v == nil {
  17032. v = []float64{}
  17033. } else if len(v) != 0 {
  17034. v = v[:0]
  17035. }
  17036. changed = true
  17037. }
  17038. slh.End()
  17039. return
  17040. }
  17041. if cap(v) == 0 {
  17042. v = make([]float64, 1, 4)
  17043. changed = true
  17044. }
  17045. j := 0
  17046. for ; !breakFound; j++ {
  17047. if j >= len(v) {
  17048. if canChange {
  17049. v = append(v, 0)
  17050. changed = true
  17051. } else {
  17052. d.arrayCannotExpand(len(v), j+1)
  17053. }
  17054. }
  17055. slh.ElemContainerState(j)
  17056. if j < len(v) {
  17057. v[j] = dd.DecodeFloat(false)
  17058. } else {
  17059. d.swallow()
  17060. }
  17061. breakFound = dd.CheckBreak()
  17062. }
  17063. if canChange && j < len(v) {
  17064. v = v[:j]
  17065. changed = true
  17066. }
  17067. }
  17068. slh.End()
  17069. return v, changed
  17070. }
  17071. func (f *decFnInfo) fastpathDecSliceUintR(rv reflect.Value) {
  17072. array := f.seq == seqTypeArray
  17073. if !array && rv.CanAddr() {
  17074. vp := rv.Addr().Interface().(*[]uint)
  17075. v, changed := fastpathTV.DecSliceUintV(*vp, fastpathCheckNilFalse, !array, f.d)
  17076. if changed {
  17077. *vp = v
  17078. }
  17079. } else {
  17080. v := rv.Interface().([]uint)
  17081. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, f.d)
  17082. }
  17083. }
  17084. func (f fastpathT) DecSliceUintX(vp *[]uint, checkNil bool, d *Decoder) {
  17085. v, changed := f.DecSliceUintV(*vp, checkNil, true, d)
  17086. if changed {
  17087. *vp = v
  17088. }
  17089. }
  17090. func (_ fastpathT) DecSliceUintV(v []uint, checkNil bool, canChange bool, d *Decoder) (_ []uint, changed bool) {
  17091. dd := d.d
  17092. if checkNil && dd.TryDecodeAsNil() {
  17093. if v != nil {
  17094. changed = true
  17095. }
  17096. return nil, changed
  17097. }
  17098. slh, containerLenS := d.decSliceHelperStart()
  17099. if containerLenS == 0 {
  17100. if canChange {
  17101. if v == nil {
  17102. v = []uint{}
  17103. } else if len(v) != 0 {
  17104. v = v[:0]
  17105. }
  17106. changed = true
  17107. }
  17108. slh.End()
  17109. return
  17110. }
  17111. if containerLenS > 0 {
  17112. x2read := containerLenS
  17113. var xtrunc bool
  17114. if containerLenS > cap(v) {
  17115. if canChange {
  17116. var xlen int
  17117. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17118. if xtrunc {
  17119. if xlen <= cap(v) {
  17120. v = v[:xlen]
  17121. } else {
  17122. v = make([]uint, xlen)
  17123. }
  17124. } else {
  17125. v = make([]uint, xlen)
  17126. }
  17127. changed = true
  17128. } else {
  17129. d.arrayCannotExpand(len(v), containerLenS)
  17130. }
  17131. x2read = len(v)
  17132. } else if containerLenS != len(v) {
  17133. if canChange {
  17134. v = v[:containerLenS]
  17135. changed = true
  17136. }
  17137. }
  17138. j := 0
  17139. for ; j < x2read; j++ {
  17140. slh.ElemContainerState(j)
  17141. v[j] = uint(dd.DecodeUint(uintBitsize))
  17142. }
  17143. if xtrunc {
  17144. for ; j < containerLenS; j++ {
  17145. v = append(v, 0)
  17146. slh.ElemContainerState(j)
  17147. v[j] = uint(dd.DecodeUint(uintBitsize))
  17148. }
  17149. } else if !canChange {
  17150. for ; j < containerLenS; j++ {
  17151. slh.ElemContainerState(j)
  17152. d.swallow()
  17153. }
  17154. }
  17155. } else {
  17156. breakFound := dd.CheckBreak()
  17157. if breakFound {
  17158. if canChange {
  17159. if v == nil {
  17160. v = []uint{}
  17161. } else if len(v) != 0 {
  17162. v = v[:0]
  17163. }
  17164. changed = true
  17165. }
  17166. slh.End()
  17167. return
  17168. }
  17169. if cap(v) == 0 {
  17170. v = make([]uint, 1, 4)
  17171. changed = true
  17172. }
  17173. j := 0
  17174. for ; !breakFound; j++ {
  17175. if j >= len(v) {
  17176. if canChange {
  17177. v = append(v, 0)
  17178. changed = true
  17179. } else {
  17180. d.arrayCannotExpand(len(v), j+1)
  17181. }
  17182. }
  17183. slh.ElemContainerState(j)
  17184. if j < len(v) {
  17185. v[j] = uint(dd.DecodeUint(uintBitsize))
  17186. } else {
  17187. d.swallow()
  17188. }
  17189. breakFound = dd.CheckBreak()
  17190. }
  17191. if canChange && j < len(v) {
  17192. v = v[:j]
  17193. changed = true
  17194. }
  17195. }
  17196. slh.End()
  17197. return v, changed
  17198. }
  17199. func (f *decFnInfo) fastpathDecSliceUint16R(rv reflect.Value) {
  17200. array := f.seq == seqTypeArray
  17201. if !array && rv.CanAddr() {
  17202. vp := rv.Addr().Interface().(*[]uint16)
  17203. v, changed := fastpathTV.DecSliceUint16V(*vp, fastpathCheckNilFalse, !array, f.d)
  17204. if changed {
  17205. *vp = v
  17206. }
  17207. } else {
  17208. v := rv.Interface().([]uint16)
  17209. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, f.d)
  17210. }
  17211. }
  17212. func (f fastpathT) DecSliceUint16X(vp *[]uint16, checkNil bool, d *Decoder) {
  17213. v, changed := f.DecSliceUint16V(*vp, checkNil, true, d)
  17214. if changed {
  17215. *vp = v
  17216. }
  17217. }
  17218. func (_ fastpathT) DecSliceUint16V(v []uint16, checkNil bool, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  17219. dd := d.d
  17220. if checkNil && dd.TryDecodeAsNil() {
  17221. if v != nil {
  17222. changed = true
  17223. }
  17224. return nil, changed
  17225. }
  17226. slh, containerLenS := d.decSliceHelperStart()
  17227. if containerLenS == 0 {
  17228. if canChange {
  17229. if v == nil {
  17230. v = []uint16{}
  17231. } else if len(v) != 0 {
  17232. v = v[:0]
  17233. }
  17234. changed = true
  17235. }
  17236. slh.End()
  17237. return
  17238. }
  17239. if containerLenS > 0 {
  17240. x2read := containerLenS
  17241. var xtrunc bool
  17242. if containerLenS > cap(v) {
  17243. if canChange {
  17244. var xlen int
  17245. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  17246. if xtrunc {
  17247. if xlen <= cap(v) {
  17248. v = v[:xlen]
  17249. } else {
  17250. v = make([]uint16, xlen)
  17251. }
  17252. } else {
  17253. v = make([]uint16, xlen)
  17254. }
  17255. changed = true
  17256. } else {
  17257. d.arrayCannotExpand(len(v), containerLenS)
  17258. }
  17259. x2read = len(v)
  17260. } else if containerLenS != len(v) {
  17261. if canChange {
  17262. v = v[:containerLenS]
  17263. changed = true
  17264. }
  17265. }
  17266. j := 0
  17267. for ; j < x2read; j++ {
  17268. slh.ElemContainerState(j)
  17269. v[j] = uint16(dd.DecodeUint(16))
  17270. }
  17271. if xtrunc {
  17272. for ; j < containerLenS; j++ {
  17273. v = append(v, 0)
  17274. slh.ElemContainerState(j)
  17275. v[j] = uint16(dd.DecodeUint(16))
  17276. }
  17277. } else if !canChange {
  17278. for ; j < containerLenS; j++ {
  17279. slh.ElemContainerState(j)
  17280. d.swallow()
  17281. }
  17282. }
  17283. } else {
  17284. breakFound := dd.CheckBreak()
  17285. if breakFound {
  17286. if canChange {
  17287. if v == nil {
  17288. v = []uint16{}
  17289. } else if len(v) != 0 {
  17290. v = v[:0]
  17291. }
  17292. changed = true
  17293. }
  17294. slh.End()
  17295. return
  17296. }
  17297. if cap(v) == 0 {
  17298. v = make([]uint16, 1, 4)
  17299. changed = true
  17300. }
  17301. j := 0
  17302. for ; !breakFound; j++ {
  17303. if j >= len(v) {
  17304. if canChange {
  17305. v = append(v, 0)
  17306. changed = true
  17307. } else {
  17308. d.arrayCannotExpand(len(v), j+1)
  17309. }
  17310. }
  17311. slh.ElemContainerState(j)
  17312. if j < len(v) {
  17313. v[j] = uint16(dd.DecodeUint(16))
  17314. } else {
  17315. d.swallow()
  17316. }
  17317. breakFound = dd.CheckBreak()
  17318. }
  17319. if canChange && j < len(v) {
  17320. v = v[:j]
  17321. changed = true
  17322. }
  17323. }
  17324. slh.End()
  17325. return v, changed
  17326. }
  17327. func (f *decFnInfo) fastpathDecSliceUint32R(rv reflect.Value) {
  17328. array := f.seq == seqTypeArray
  17329. if !array && rv.CanAddr() {
  17330. vp := rv.Addr().Interface().(*[]uint32)
  17331. v, changed := fastpathTV.DecSliceUint32V(*vp, fastpathCheckNilFalse, !array, f.d)
  17332. if changed {
  17333. *vp = v
  17334. }
  17335. } else {
  17336. v := rv.Interface().([]uint32)
  17337. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, f.d)
  17338. }
  17339. }
  17340. func (f fastpathT) DecSliceUint32X(vp *[]uint32, checkNil bool, d *Decoder) {
  17341. v, changed := f.DecSliceUint32V(*vp, checkNil, true, d)
  17342. if changed {
  17343. *vp = v
  17344. }
  17345. }
  17346. func (_ fastpathT) DecSliceUint32V(v []uint32, checkNil bool, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  17347. dd := d.d
  17348. if checkNil && dd.TryDecodeAsNil() {
  17349. if v != nil {
  17350. changed = true
  17351. }
  17352. return nil, changed
  17353. }
  17354. slh, containerLenS := d.decSliceHelperStart()
  17355. if containerLenS == 0 {
  17356. if canChange {
  17357. if v == nil {
  17358. v = []uint32{}
  17359. } else if len(v) != 0 {
  17360. v = v[:0]
  17361. }
  17362. changed = true
  17363. }
  17364. slh.End()
  17365. return
  17366. }
  17367. if containerLenS > 0 {
  17368. x2read := containerLenS
  17369. var xtrunc bool
  17370. if containerLenS > cap(v) {
  17371. if canChange {
  17372. var xlen int
  17373. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17374. if xtrunc {
  17375. if xlen <= cap(v) {
  17376. v = v[:xlen]
  17377. } else {
  17378. v = make([]uint32, xlen)
  17379. }
  17380. } else {
  17381. v = make([]uint32, xlen)
  17382. }
  17383. changed = true
  17384. } else {
  17385. d.arrayCannotExpand(len(v), containerLenS)
  17386. }
  17387. x2read = len(v)
  17388. } else if containerLenS != len(v) {
  17389. if canChange {
  17390. v = v[:containerLenS]
  17391. changed = true
  17392. }
  17393. }
  17394. j := 0
  17395. for ; j < x2read; j++ {
  17396. slh.ElemContainerState(j)
  17397. v[j] = uint32(dd.DecodeUint(32))
  17398. }
  17399. if xtrunc {
  17400. for ; j < containerLenS; j++ {
  17401. v = append(v, 0)
  17402. slh.ElemContainerState(j)
  17403. v[j] = uint32(dd.DecodeUint(32))
  17404. }
  17405. } else if !canChange {
  17406. for ; j < containerLenS; j++ {
  17407. slh.ElemContainerState(j)
  17408. d.swallow()
  17409. }
  17410. }
  17411. } else {
  17412. breakFound := dd.CheckBreak()
  17413. if breakFound {
  17414. if canChange {
  17415. if v == nil {
  17416. v = []uint32{}
  17417. } else if len(v) != 0 {
  17418. v = v[:0]
  17419. }
  17420. changed = true
  17421. }
  17422. slh.End()
  17423. return
  17424. }
  17425. if cap(v) == 0 {
  17426. v = make([]uint32, 1, 4)
  17427. changed = true
  17428. }
  17429. j := 0
  17430. for ; !breakFound; j++ {
  17431. if j >= len(v) {
  17432. if canChange {
  17433. v = append(v, 0)
  17434. changed = true
  17435. } else {
  17436. d.arrayCannotExpand(len(v), j+1)
  17437. }
  17438. }
  17439. slh.ElemContainerState(j)
  17440. if j < len(v) {
  17441. v[j] = uint32(dd.DecodeUint(32))
  17442. } else {
  17443. d.swallow()
  17444. }
  17445. breakFound = dd.CheckBreak()
  17446. }
  17447. if canChange && j < len(v) {
  17448. v = v[:j]
  17449. changed = true
  17450. }
  17451. }
  17452. slh.End()
  17453. return v, changed
  17454. }
  17455. func (f *decFnInfo) fastpathDecSliceUint64R(rv reflect.Value) {
  17456. array := f.seq == seqTypeArray
  17457. if !array && rv.CanAddr() {
  17458. vp := rv.Addr().Interface().(*[]uint64)
  17459. v, changed := fastpathTV.DecSliceUint64V(*vp, fastpathCheckNilFalse, !array, f.d)
  17460. if changed {
  17461. *vp = v
  17462. }
  17463. } else {
  17464. v := rv.Interface().([]uint64)
  17465. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, f.d)
  17466. }
  17467. }
  17468. func (f fastpathT) DecSliceUint64X(vp *[]uint64, checkNil bool, d *Decoder) {
  17469. v, changed := f.DecSliceUint64V(*vp, checkNil, true, d)
  17470. if changed {
  17471. *vp = v
  17472. }
  17473. }
  17474. func (_ fastpathT) DecSliceUint64V(v []uint64, checkNil bool, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  17475. dd := d.d
  17476. if checkNil && dd.TryDecodeAsNil() {
  17477. if v != nil {
  17478. changed = true
  17479. }
  17480. return nil, changed
  17481. }
  17482. slh, containerLenS := d.decSliceHelperStart()
  17483. if containerLenS == 0 {
  17484. if canChange {
  17485. if v == nil {
  17486. v = []uint64{}
  17487. } else if len(v) != 0 {
  17488. v = v[:0]
  17489. }
  17490. changed = true
  17491. }
  17492. slh.End()
  17493. return
  17494. }
  17495. if containerLenS > 0 {
  17496. x2read := containerLenS
  17497. var xtrunc bool
  17498. if containerLenS > cap(v) {
  17499. if canChange {
  17500. var xlen int
  17501. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17502. if xtrunc {
  17503. if xlen <= cap(v) {
  17504. v = v[:xlen]
  17505. } else {
  17506. v = make([]uint64, xlen)
  17507. }
  17508. } else {
  17509. v = make([]uint64, xlen)
  17510. }
  17511. changed = true
  17512. } else {
  17513. d.arrayCannotExpand(len(v), containerLenS)
  17514. }
  17515. x2read = len(v)
  17516. } else if containerLenS != len(v) {
  17517. if canChange {
  17518. v = v[:containerLenS]
  17519. changed = true
  17520. }
  17521. }
  17522. j := 0
  17523. for ; j < x2read; j++ {
  17524. slh.ElemContainerState(j)
  17525. v[j] = dd.DecodeUint(64)
  17526. }
  17527. if xtrunc {
  17528. for ; j < containerLenS; j++ {
  17529. v = append(v, 0)
  17530. slh.ElemContainerState(j)
  17531. v[j] = dd.DecodeUint(64)
  17532. }
  17533. } else if !canChange {
  17534. for ; j < containerLenS; j++ {
  17535. slh.ElemContainerState(j)
  17536. d.swallow()
  17537. }
  17538. }
  17539. } else {
  17540. breakFound := dd.CheckBreak()
  17541. if breakFound {
  17542. if canChange {
  17543. if v == nil {
  17544. v = []uint64{}
  17545. } else if len(v) != 0 {
  17546. v = v[:0]
  17547. }
  17548. changed = true
  17549. }
  17550. slh.End()
  17551. return
  17552. }
  17553. if cap(v) == 0 {
  17554. v = make([]uint64, 1, 4)
  17555. changed = true
  17556. }
  17557. j := 0
  17558. for ; !breakFound; j++ {
  17559. if j >= len(v) {
  17560. if canChange {
  17561. v = append(v, 0)
  17562. changed = true
  17563. } else {
  17564. d.arrayCannotExpand(len(v), j+1)
  17565. }
  17566. }
  17567. slh.ElemContainerState(j)
  17568. if j < len(v) {
  17569. v[j] = dd.DecodeUint(64)
  17570. } else {
  17571. d.swallow()
  17572. }
  17573. breakFound = dd.CheckBreak()
  17574. }
  17575. if canChange && j < len(v) {
  17576. v = v[:j]
  17577. changed = true
  17578. }
  17579. }
  17580. slh.End()
  17581. return v, changed
  17582. }
  17583. func (f *decFnInfo) fastpathDecSliceUintptrR(rv reflect.Value) {
  17584. array := f.seq == seqTypeArray
  17585. if !array && rv.CanAddr() {
  17586. vp := rv.Addr().Interface().(*[]uintptr)
  17587. v, changed := fastpathTV.DecSliceUintptrV(*vp, fastpathCheckNilFalse, !array, f.d)
  17588. if changed {
  17589. *vp = v
  17590. }
  17591. } else {
  17592. v := rv.Interface().([]uintptr)
  17593. fastpathTV.DecSliceUintptrV(v, fastpathCheckNilFalse, false, f.d)
  17594. }
  17595. }
  17596. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, checkNil bool, d *Decoder) {
  17597. v, changed := f.DecSliceUintptrV(*vp, checkNil, true, d)
  17598. if changed {
  17599. *vp = v
  17600. }
  17601. }
  17602. func (_ fastpathT) DecSliceUintptrV(v []uintptr, checkNil bool, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  17603. dd := d.d
  17604. if checkNil && dd.TryDecodeAsNil() {
  17605. if v != nil {
  17606. changed = true
  17607. }
  17608. return nil, changed
  17609. }
  17610. slh, containerLenS := d.decSliceHelperStart()
  17611. if containerLenS == 0 {
  17612. if canChange {
  17613. if v == nil {
  17614. v = []uintptr{}
  17615. } else if len(v) != 0 {
  17616. v = v[:0]
  17617. }
  17618. changed = true
  17619. }
  17620. slh.End()
  17621. return
  17622. }
  17623. if containerLenS > 0 {
  17624. x2read := containerLenS
  17625. var xtrunc bool
  17626. if containerLenS > cap(v) {
  17627. if canChange {
  17628. var xlen int
  17629. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17630. if xtrunc {
  17631. if xlen <= cap(v) {
  17632. v = v[:xlen]
  17633. } else {
  17634. v = make([]uintptr, xlen)
  17635. }
  17636. } else {
  17637. v = make([]uintptr, xlen)
  17638. }
  17639. changed = true
  17640. } else {
  17641. d.arrayCannotExpand(len(v), containerLenS)
  17642. }
  17643. x2read = len(v)
  17644. } else if containerLenS != len(v) {
  17645. if canChange {
  17646. v = v[:containerLenS]
  17647. changed = true
  17648. }
  17649. }
  17650. j := 0
  17651. for ; j < x2read; j++ {
  17652. slh.ElemContainerState(j)
  17653. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  17654. }
  17655. if xtrunc {
  17656. for ; j < containerLenS; j++ {
  17657. v = append(v, 0)
  17658. slh.ElemContainerState(j)
  17659. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  17660. }
  17661. } else if !canChange {
  17662. for ; j < containerLenS; j++ {
  17663. slh.ElemContainerState(j)
  17664. d.swallow()
  17665. }
  17666. }
  17667. } else {
  17668. breakFound := dd.CheckBreak()
  17669. if breakFound {
  17670. if canChange {
  17671. if v == nil {
  17672. v = []uintptr{}
  17673. } else if len(v) != 0 {
  17674. v = v[:0]
  17675. }
  17676. changed = true
  17677. }
  17678. slh.End()
  17679. return
  17680. }
  17681. if cap(v) == 0 {
  17682. v = make([]uintptr, 1, 4)
  17683. changed = true
  17684. }
  17685. j := 0
  17686. for ; !breakFound; j++ {
  17687. if j >= len(v) {
  17688. if canChange {
  17689. v = append(v, 0)
  17690. changed = true
  17691. } else {
  17692. d.arrayCannotExpand(len(v), j+1)
  17693. }
  17694. }
  17695. slh.ElemContainerState(j)
  17696. if j < len(v) {
  17697. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  17698. } else {
  17699. d.swallow()
  17700. }
  17701. breakFound = dd.CheckBreak()
  17702. }
  17703. if canChange && j < len(v) {
  17704. v = v[:j]
  17705. changed = true
  17706. }
  17707. }
  17708. slh.End()
  17709. return v, changed
  17710. }
  17711. func (f *decFnInfo) fastpathDecSliceIntR(rv reflect.Value) {
  17712. array := f.seq == seqTypeArray
  17713. if !array && rv.CanAddr() {
  17714. vp := rv.Addr().Interface().(*[]int)
  17715. v, changed := fastpathTV.DecSliceIntV(*vp, fastpathCheckNilFalse, !array, f.d)
  17716. if changed {
  17717. *vp = v
  17718. }
  17719. } else {
  17720. v := rv.Interface().([]int)
  17721. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, f.d)
  17722. }
  17723. }
  17724. func (f fastpathT) DecSliceIntX(vp *[]int, checkNil bool, d *Decoder) {
  17725. v, changed := f.DecSliceIntV(*vp, checkNil, true, d)
  17726. if changed {
  17727. *vp = v
  17728. }
  17729. }
  17730. func (_ fastpathT) DecSliceIntV(v []int, checkNil bool, canChange bool, d *Decoder) (_ []int, changed bool) {
  17731. dd := d.d
  17732. if checkNil && dd.TryDecodeAsNil() {
  17733. if v != nil {
  17734. changed = true
  17735. }
  17736. return nil, changed
  17737. }
  17738. slh, containerLenS := d.decSliceHelperStart()
  17739. if containerLenS == 0 {
  17740. if canChange {
  17741. if v == nil {
  17742. v = []int{}
  17743. } else if len(v) != 0 {
  17744. v = v[:0]
  17745. }
  17746. changed = true
  17747. }
  17748. slh.End()
  17749. return
  17750. }
  17751. if containerLenS > 0 {
  17752. x2read := containerLenS
  17753. var xtrunc bool
  17754. if containerLenS > cap(v) {
  17755. if canChange {
  17756. var xlen int
  17757. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17758. if xtrunc {
  17759. if xlen <= cap(v) {
  17760. v = v[:xlen]
  17761. } else {
  17762. v = make([]int, xlen)
  17763. }
  17764. } else {
  17765. v = make([]int, xlen)
  17766. }
  17767. changed = true
  17768. } else {
  17769. d.arrayCannotExpand(len(v), containerLenS)
  17770. }
  17771. x2read = len(v)
  17772. } else if containerLenS != len(v) {
  17773. if canChange {
  17774. v = v[:containerLenS]
  17775. changed = true
  17776. }
  17777. }
  17778. j := 0
  17779. for ; j < x2read; j++ {
  17780. slh.ElemContainerState(j)
  17781. v[j] = int(dd.DecodeInt(intBitsize))
  17782. }
  17783. if xtrunc {
  17784. for ; j < containerLenS; j++ {
  17785. v = append(v, 0)
  17786. slh.ElemContainerState(j)
  17787. v[j] = int(dd.DecodeInt(intBitsize))
  17788. }
  17789. } else if !canChange {
  17790. for ; j < containerLenS; j++ {
  17791. slh.ElemContainerState(j)
  17792. d.swallow()
  17793. }
  17794. }
  17795. } else {
  17796. breakFound := dd.CheckBreak()
  17797. if breakFound {
  17798. if canChange {
  17799. if v == nil {
  17800. v = []int{}
  17801. } else if len(v) != 0 {
  17802. v = v[:0]
  17803. }
  17804. changed = true
  17805. }
  17806. slh.End()
  17807. return
  17808. }
  17809. if cap(v) == 0 {
  17810. v = make([]int, 1, 4)
  17811. changed = true
  17812. }
  17813. j := 0
  17814. for ; !breakFound; j++ {
  17815. if j >= len(v) {
  17816. if canChange {
  17817. v = append(v, 0)
  17818. changed = true
  17819. } else {
  17820. d.arrayCannotExpand(len(v), j+1)
  17821. }
  17822. }
  17823. slh.ElemContainerState(j)
  17824. if j < len(v) {
  17825. v[j] = int(dd.DecodeInt(intBitsize))
  17826. } else {
  17827. d.swallow()
  17828. }
  17829. breakFound = dd.CheckBreak()
  17830. }
  17831. if canChange && j < len(v) {
  17832. v = v[:j]
  17833. changed = true
  17834. }
  17835. }
  17836. slh.End()
  17837. return v, changed
  17838. }
  17839. func (f *decFnInfo) fastpathDecSliceInt8R(rv reflect.Value) {
  17840. array := f.seq == seqTypeArray
  17841. if !array && rv.CanAddr() {
  17842. vp := rv.Addr().Interface().(*[]int8)
  17843. v, changed := fastpathTV.DecSliceInt8V(*vp, fastpathCheckNilFalse, !array, f.d)
  17844. if changed {
  17845. *vp = v
  17846. }
  17847. } else {
  17848. v := rv.Interface().([]int8)
  17849. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, f.d)
  17850. }
  17851. }
  17852. func (f fastpathT) DecSliceInt8X(vp *[]int8, checkNil bool, d *Decoder) {
  17853. v, changed := f.DecSliceInt8V(*vp, checkNil, true, d)
  17854. if changed {
  17855. *vp = v
  17856. }
  17857. }
  17858. func (_ fastpathT) DecSliceInt8V(v []int8, checkNil bool, canChange bool, d *Decoder) (_ []int8, changed bool) {
  17859. dd := d.d
  17860. if checkNil && dd.TryDecodeAsNil() {
  17861. if v != nil {
  17862. changed = true
  17863. }
  17864. return nil, changed
  17865. }
  17866. slh, containerLenS := d.decSliceHelperStart()
  17867. if containerLenS == 0 {
  17868. if canChange {
  17869. if v == nil {
  17870. v = []int8{}
  17871. } else if len(v) != 0 {
  17872. v = v[:0]
  17873. }
  17874. changed = true
  17875. }
  17876. slh.End()
  17877. return
  17878. }
  17879. if containerLenS > 0 {
  17880. x2read := containerLenS
  17881. var xtrunc bool
  17882. if containerLenS > cap(v) {
  17883. if canChange {
  17884. var xlen int
  17885. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17886. if xtrunc {
  17887. if xlen <= cap(v) {
  17888. v = v[:xlen]
  17889. } else {
  17890. v = make([]int8, xlen)
  17891. }
  17892. } else {
  17893. v = make([]int8, xlen)
  17894. }
  17895. changed = true
  17896. } else {
  17897. d.arrayCannotExpand(len(v), containerLenS)
  17898. }
  17899. x2read = len(v)
  17900. } else if containerLenS != len(v) {
  17901. if canChange {
  17902. v = v[:containerLenS]
  17903. changed = true
  17904. }
  17905. }
  17906. j := 0
  17907. for ; j < x2read; j++ {
  17908. slh.ElemContainerState(j)
  17909. v[j] = int8(dd.DecodeInt(8))
  17910. }
  17911. if xtrunc {
  17912. for ; j < containerLenS; j++ {
  17913. v = append(v, 0)
  17914. slh.ElemContainerState(j)
  17915. v[j] = int8(dd.DecodeInt(8))
  17916. }
  17917. } else if !canChange {
  17918. for ; j < containerLenS; j++ {
  17919. slh.ElemContainerState(j)
  17920. d.swallow()
  17921. }
  17922. }
  17923. } else {
  17924. breakFound := dd.CheckBreak()
  17925. if breakFound {
  17926. if canChange {
  17927. if v == nil {
  17928. v = []int8{}
  17929. } else if len(v) != 0 {
  17930. v = v[:0]
  17931. }
  17932. changed = true
  17933. }
  17934. slh.End()
  17935. return
  17936. }
  17937. if cap(v) == 0 {
  17938. v = make([]int8, 1, 4)
  17939. changed = true
  17940. }
  17941. j := 0
  17942. for ; !breakFound; j++ {
  17943. if j >= len(v) {
  17944. if canChange {
  17945. v = append(v, 0)
  17946. changed = true
  17947. } else {
  17948. d.arrayCannotExpand(len(v), j+1)
  17949. }
  17950. }
  17951. slh.ElemContainerState(j)
  17952. if j < len(v) {
  17953. v[j] = int8(dd.DecodeInt(8))
  17954. } else {
  17955. d.swallow()
  17956. }
  17957. breakFound = dd.CheckBreak()
  17958. }
  17959. if canChange && j < len(v) {
  17960. v = v[:j]
  17961. changed = true
  17962. }
  17963. }
  17964. slh.End()
  17965. return v, changed
  17966. }
  17967. func (f *decFnInfo) fastpathDecSliceInt16R(rv reflect.Value) {
  17968. array := f.seq == seqTypeArray
  17969. if !array && rv.CanAddr() {
  17970. vp := rv.Addr().Interface().(*[]int16)
  17971. v, changed := fastpathTV.DecSliceInt16V(*vp, fastpathCheckNilFalse, !array, f.d)
  17972. if changed {
  17973. *vp = v
  17974. }
  17975. } else {
  17976. v := rv.Interface().([]int16)
  17977. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, f.d)
  17978. }
  17979. }
  17980. func (f fastpathT) DecSliceInt16X(vp *[]int16, checkNil bool, d *Decoder) {
  17981. v, changed := f.DecSliceInt16V(*vp, checkNil, true, d)
  17982. if changed {
  17983. *vp = v
  17984. }
  17985. }
  17986. func (_ fastpathT) DecSliceInt16V(v []int16, checkNil bool, canChange bool, d *Decoder) (_ []int16, changed bool) {
  17987. dd := d.d
  17988. if checkNil && dd.TryDecodeAsNil() {
  17989. if v != nil {
  17990. changed = true
  17991. }
  17992. return nil, changed
  17993. }
  17994. slh, containerLenS := d.decSliceHelperStart()
  17995. if containerLenS == 0 {
  17996. if canChange {
  17997. if v == nil {
  17998. v = []int16{}
  17999. } else if len(v) != 0 {
  18000. v = v[:0]
  18001. }
  18002. changed = true
  18003. }
  18004. slh.End()
  18005. return
  18006. }
  18007. if containerLenS > 0 {
  18008. x2read := containerLenS
  18009. var xtrunc bool
  18010. if containerLenS > cap(v) {
  18011. if canChange {
  18012. var xlen int
  18013. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18014. if xtrunc {
  18015. if xlen <= cap(v) {
  18016. v = v[:xlen]
  18017. } else {
  18018. v = make([]int16, xlen)
  18019. }
  18020. } else {
  18021. v = make([]int16, xlen)
  18022. }
  18023. changed = true
  18024. } else {
  18025. d.arrayCannotExpand(len(v), containerLenS)
  18026. }
  18027. x2read = len(v)
  18028. } else if containerLenS != len(v) {
  18029. if canChange {
  18030. v = v[:containerLenS]
  18031. changed = true
  18032. }
  18033. }
  18034. j := 0
  18035. for ; j < x2read; j++ {
  18036. slh.ElemContainerState(j)
  18037. v[j] = int16(dd.DecodeInt(16))
  18038. }
  18039. if xtrunc {
  18040. for ; j < containerLenS; j++ {
  18041. v = append(v, 0)
  18042. slh.ElemContainerState(j)
  18043. v[j] = int16(dd.DecodeInt(16))
  18044. }
  18045. } else if !canChange {
  18046. for ; j < containerLenS; j++ {
  18047. slh.ElemContainerState(j)
  18048. d.swallow()
  18049. }
  18050. }
  18051. } else {
  18052. breakFound := dd.CheckBreak()
  18053. if breakFound {
  18054. if canChange {
  18055. if v == nil {
  18056. v = []int16{}
  18057. } else if len(v) != 0 {
  18058. v = v[:0]
  18059. }
  18060. changed = true
  18061. }
  18062. slh.End()
  18063. return
  18064. }
  18065. if cap(v) == 0 {
  18066. v = make([]int16, 1, 4)
  18067. changed = true
  18068. }
  18069. j := 0
  18070. for ; !breakFound; j++ {
  18071. if j >= len(v) {
  18072. if canChange {
  18073. v = append(v, 0)
  18074. changed = true
  18075. } else {
  18076. d.arrayCannotExpand(len(v), j+1)
  18077. }
  18078. }
  18079. slh.ElemContainerState(j)
  18080. if j < len(v) {
  18081. v[j] = int16(dd.DecodeInt(16))
  18082. } else {
  18083. d.swallow()
  18084. }
  18085. breakFound = dd.CheckBreak()
  18086. }
  18087. if canChange && j < len(v) {
  18088. v = v[:j]
  18089. changed = true
  18090. }
  18091. }
  18092. slh.End()
  18093. return v, changed
  18094. }
  18095. func (f *decFnInfo) fastpathDecSliceInt32R(rv reflect.Value) {
  18096. array := f.seq == seqTypeArray
  18097. if !array && rv.CanAddr() {
  18098. vp := rv.Addr().Interface().(*[]int32)
  18099. v, changed := fastpathTV.DecSliceInt32V(*vp, fastpathCheckNilFalse, !array, f.d)
  18100. if changed {
  18101. *vp = v
  18102. }
  18103. } else {
  18104. v := rv.Interface().([]int32)
  18105. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, f.d)
  18106. }
  18107. }
  18108. func (f fastpathT) DecSliceInt32X(vp *[]int32, checkNil bool, d *Decoder) {
  18109. v, changed := f.DecSliceInt32V(*vp, checkNil, true, d)
  18110. if changed {
  18111. *vp = v
  18112. }
  18113. }
  18114. func (_ fastpathT) DecSliceInt32V(v []int32, checkNil bool, canChange bool, d *Decoder) (_ []int32, changed bool) {
  18115. dd := d.d
  18116. if checkNil && dd.TryDecodeAsNil() {
  18117. if v != nil {
  18118. changed = true
  18119. }
  18120. return nil, changed
  18121. }
  18122. slh, containerLenS := d.decSliceHelperStart()
  18123. if containerLenS == 0 {
  18124. if canChange {
  18125. if v == nil {
  18126. v = []int32{}
  18127. } else if len(v) != 0 {
  18128. v = v[:0]
  18129. }
  18130. changed = true
  18131. }
  18132. slh.End()
  18133. return
  18134. }
  18135. if containerLenS > 0 {
  18136. x2read := containerLenS
  18137. var xtrunc bool
  18138. if containerLenS > cap(v) {
  18139. if canChange {
  18140. var xlen int
  18141. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18142. if xtrunc {
  18143. if xlen <= cap(v) {
  18144. v = v[:xlen]
  18145. } else {
  18146. v = make([]int32, xlen)
  18147. }
  18148. } else {
  18149. v = make([]int32, xlen)
  18150. }
  18151. changed = true
  18152. } else {
  18153. d.arrayCannotExpand(len(v), containerLenS)
  18154. }
  18155. x2read = len(v)
  18156. } else if containerLenS != len(v) {
  18157. if canChange {
  18158. v = v[:containerLenS]
  18159. changed = true
  18160. }
  18161. }
  18162. j := 0
  18163. for ; j < x2read; j++ {
  18164. slh.ElemContainerState(j)
  18165. v[j] = int32(dd.DecodeInt(32))
  18166. }
  18167. if xtrunc {
  18168. for ; j < containerLenS; j++ {
  18169. v = append(v, 0)
  18170. slh.ElemContainerState(j)
  18171. v[j] = int32(dd.DecodeInt(32))
  18172. }
  18173. } else if !canChange {
  18174. for ; j < containerLenS; j++ {
  18175. slh.ElemContainerState(j)
  18176. d.swallow()
  18177. }
  18178. }
  18179. } else {
  18180. breakFound := dd.CheckBreak()
  18181. if breakFound {
  18182. if canChange {
  18183. if v == nil {
  18184. v = []int32{}
  18185. } else if len(v) != 0 {
  18186. v = v[:0]
  18187. }
  18188. changed = true
  18189. }
  18190. slh.End()
  18191. return
  18192. }
  18193. if cap(v) == 0 {
  18194. v = make([]int32, 1, 4)
  18195. changed = true
  18196. }
  18197. j := 0
  18198. for ; !breakFound; j++ {
  18199. if j >= len(v) {
  18200. if canChange {
  18201. v = append(v, 0)
  18202. changed = true
  18203. } else {
  18204. d.arrayCannotExpand(len(v), j+1)
  18205. }
  18206. }
  18207. slh.ElemContainerState(j)
  18208. if j < len(v) {
  18209. v[j] = int32(dd.DecodeInt(32))
  18210. } else {
  18211. d.swallow()
  18212. }
  18213. breakFound = dd.CheckBreak()
  18214. }
  18215. if canChange && j < len(v) {
  18216. v = v[:j]
  18217. changed = true
  18218. }
  18219. }
  18220. slh.End()
  18221. return v, changed
  18222. }
  18223. func (f *decFnInfo) fastpathDecSliceInt64R(rv reflect.Value) {
  18224. array := f.seq == seqTypeArray
  18225. if !array && rv.CanAddr() {
  18226. vp := rv.Addr().Interface().(*[]int64)
  18227. v, changed := fastpathTV.DecSliceInt64V(*vp, fastpathCheckNilFalse, !array, f.d)
  18228. if changed {
  18229. *vp = v
  18230. }
  18231. } else {
  18232. v := rv.Interface().([]int64)
  18233. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, f.d)
  18234. }
  18235. }
  18236. func (f fastpathT) DecSliceInt64X(vp *[]int64, checkNil bool, d *Decoder) {
  18237. v, changed := f.DecSliceInt64V(*vp, checkNil, true, d)
  18238. if changed {
  18239. *vp = v
  18240. }
  18241. }
  18242. func (_ fastpathT) DecSliceInt64V(v []int64, checkNil bool, canChange bool, d *Decoder) (_ []int64, changed bool) {
  18243. dd := d.d
  18244. if checkNil && dd.TryDecodeAsNil() {
  18245. if v != nil {
  18246. changed = true
  18247. }
  18248. return nil, changed
  18249. }
  18250. slh, containerLenS := d.decSliceHelperStart()
  18251. if containerLenS == 0 {
  18252. if canChange {
  18253. if v == nil {
  18254. v = []int64{}
  18255. } else if len(v) != 0 {
  18256. v = v[:0]
  18257. }
  18258. changed = true
  18259. }
  18260. slh.End()
  18261. return
  18262. }
  18263. if containerLenS > 0 {
  18264. x2read := containerLenS
  18265. var xtrunc bool
  18266. if containerLenS > cap(v) {
  18267. if canChange {
  18268. var xlen int
  18269. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18270. if xtrunc {
  18271. if xlen <= cap(v) {
  18272. v = v[:xlen]
  18273. } else {
  18274. v = make([]int64, xlen)
  18275. }
  18276. } else {
  18277. v = make([]int64, xlen)
  18278. }
  18279. changed = true
  18280. } else {
  18281. d.arrayCannotExpand(len(v), containerLenS)
  18282. }
  18283. x2read = len(v)
  18284. } else if containerLenS != len(v) {
  18285. if canChange {
  18286. v = v[:containerLenS]
  18287. changed = true
  18288. }
  18289. }
  18290. j := 0
  18291. for ; j < x2read; j++ {
  18292. slh.ElemContainerState(j)
  18293. v[j] = dd.DecodeInt(64)
  18294. }
  18295. if xtrunc {
  18296. for ; j < containerLenS; j++ {
  18297. v = append(v, 0)
  18298. slh.ElemContainerState(j)
  18299. v[j] = dd.DecodeInt(64)
  18300. }
  18301. } else if !canChange {
  18302. for ; j < containerLenS; j++ {
  18303. slh.ElemContainerState(j)
  18304. d.swallow()
  18305. }
  18306. }
  18307. } else {
  18308. breakFound := dd.CheckBreak()
  18309. if breakFound {
  18310. if canChange {
  18311. if v == nil {
  18312. v = []int64{}
  18313. } else if len(v) != 0 {
  18314. v = v[:0]
  18315. }
  18316. changed = true
  18317. }
  18318. slh.End()
  18319. return
  18320. }
  18321. if cap(v) == 0 {
  18322. v = make([]int64, 1, 4)
  18323. changed = true
  18324. }
  18325. j := 0
  18326. for ; !breakFound; j++ {
  18327. if j >= len(v) {
  18328. if canChange {
  18329. v = append(v, 0)
  18330. changed = true
  18331. } else {
  18332. d.arrayCannotExpand(len(v), j+1)
  18333. }
  18334. }
  18335. slh.ElemContainerState(j)
  18336. if j < len(v) {
  18337. v[j] = dd.DecodeInt(64)
  18338. } else {
  18339. d.swallow()
  18340. }
  18341. breakFound = dd.CheckBreak()
  18342. }
  18343. if canChange && j < len(v) {
  18344. v = v[:j]
  18345. changed = true
  18346. }
  18347. }
  18348. slh.End()
  18349. return v, changed
  18350. }
  18351. func (f *decFnInfo) fastpathDecSliceBoolR(rv reflect.Value) {
  18352. array := f.seq == seqTypeArray
  18353. if !array && rv.CanAddr() {
  18354. vp := rv.Addr().Interface().(*[]bool)
  18355. v, changed := fastpathTV.DecSliceBoolV(*vp, fastpathCheckNilFalse, !array, f.d)
  18356. if changed {
  18357. *vp = v
  18358. }
  18359. } else {
  18360. v := rv.Interface().([]bool)
  18361. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, f.d)
  18362. }
  18363. }
  18364. func (f fastpathT) DecSliceBoolX(vp *[]bool, checkNil bool, d *Decoder) {
  18365. v, changed := f.DecSliceBoolV(*vp, checkNil, true, d)
  18366. if changed {
  18367. *vp = v
  18368. }
  18369. }
  18370. func (_ fastpathT) DecSliceBoolV(v []bool, checkNil bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  18371. dd := d.d
  18372. if checkNil && dd.TryDecodeAsNil() {
  18373. if v != nil {
  18374. changed = true
  18375. }
  18376. return nil, changed
  18377. }
  18378. slh, containerLenS := d.decSliceHelperStart()
  18379. if containerLenS == 0 {
  18380. if canChange {
  18381. if v == nil {
  18382. v = []bool{}
  18383. } else if len(v) != 0 {
  18384. v = v[:0]
  18385. }
  18386. changed = true
  18387. }
  18388. slh.End()
  18389. return
  18390. }
  18391. if containerLenS > 0 {
  18392. x2read := containerLenS
  18393. var xtrunc bool
  18394. if containerLenS > cap(v) {
  18395. if canChange {
  18396. var xlen int
  18397. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18398. if xtrunc {
  18399. if xlen <= cap(v) {
  18400. v = v[:xlen]
  18401. } else {
  18402. v = make([]bool, xlen)
  18403. }
  18404. } else {
  18405. v = make([]bool, xlen)
  18406. }
  18407. changed = true
  18408. } else {
  18409. d.arrayCannotExpand(len(v), containerLenS)
  18410. }
  18411. x2read = len(v)
  18412. } else if containerLenS != len(v) {
  18413. if canChange {
  18414. v = v[:containerLenS]
  18415. changed = true
  18416. }
  18417. }
  18418. j := 0
  18419. for ; j < x2read; j++ {
  18420. slh.ElemContainerState(j)
  18421. v[j] = dd.DecodeBool()
  18422. }
  18423. if xtrunc {
  18424. for ; j < containerLenS; j++ {
  18425. v = append(v, false)
  18426. slh.ElemContainerState(j)
  18427. v[j] = dd.DecodeBool()
  18428. }
  18429. } else if !canChange {
  18430. for ; j < containerLenS; j++ {
  18431. slh.ElemContainerState(j)
  18432. d.swallow()
  18433. }
  18434. }
  18435. } else {
  18436. breakFound := dd.CheckBreak()
  18437. if breakFound {
  18438. if canChange {
  18439. if v == nil {
  18440. v = []bool{}
  18441. } else if len(v) != 0 {
  18442. v = v[:0]
  18443. }
  18444. changed = true
  18445. }
  18446. slh.End()
  18447. return
  18448. }
  18449. if cap(v) == 0 {
  18450. v = make([]bool, 1, 4)
  18451. changed = true
  18452. }
  18453. j := 0
  18454. for ; !breakFound; j++ {
  18455. if j >= len(v) {
  18456. if canChange {
  18457. v = append(v, false)
  18458. changed = true
  18459. } else {
  18460. d.arrayCannotExpand(len(v), j+1)
  18461. }
  18462. }
  18463. slh.ElemContainerState(j)
  18464. if j < len(v) {
  18465. v[j] = dd.DecodeBool()
  18466. } else {
  18467. d.swallow()
  18468. }
  18469. breakFound = dd.CheckBreak()
  18470. }
  18471. if canChange && j < len(v) {
  18472. v = v[:j]
  18473. changed = true
  18474. }
  18475. }
  18476. slh.End()
  18477. return v, changed
  18478. }
  18479. func (f *decFnInfo) fastpathDecMapIntfIntfR(rv reflect.Value) {
  18480. if rv.CanAddr() {
  18481. vp := rv.Addr().Interface().(*map[interface{}]interface{})
  18482. v, changed := fastpathTV.DecMapIntfIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  18483. if changed {
  18484. *vp = v
  18485. }
  18486. } else {
  18487. v := rv.Interface().(map[interface{}]interface{})
  18488. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, f.d)
  18489. }
  18490. }
  18491. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, checkNil bool, d *Decoder) {
  18492. v, changed := f.DecMapIntfIntfV(*vp, checkNil, true, d)
  18493. if changed {
  18494. *vp = v
  18495. }
  18496. }
  18497. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, canChange bool,
  18498. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  18499. dd := d.d
  18500. cr := d.cr
  18501. if checkNil && dd.TryDecodeAsNil() {
  18502. if v != nil {
  18503. changed = true
  18504. }
  18505. return nil, changed
  18506. }
  18507. containerLen := dd.ReadMapStart()
  18508. if canChange && v == nil {
  18509. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18510. v = make(map[interface{}]interface{}, xlen)
  18511. changed = true
  18512. }
  18513. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  18514. var mk interface{}
  18515. var mv interface{}
  18516. if containerLen > 0 {
  18517. for j := 0; j < containerLen; j++ {
  18518. if cr != nil {
  18519. cr.sendContainerState(containerMapKey)
  18520. }
  18521. mk = nil
  18522. d.decode(&mk)
  18523. if bv, bok := mk.([]byte); bok {
  18524. mk = d.string(bv)
  18525. }
  18526. if cr != nil {
  18527. cr.sendContainerState(containerMapValue)
  18528. }
  18529. if mapGet {
  18530. mv = v[mk]
  18531. } else {
  18532. mv = nil
  18533. }
  18534. d.decode(&mv)
  18535. if v != nil {
  18536. v[mk] = mv
  18537. }
  18538. }
  18539. } else if containerLen < 0 {
  18540. for j := 0; !dd.CheckBreak(); j++ {
  18541. if cr != nil {
  18542. cr.sendContainerState(containerMapKey)
  18543. }
  18544. mk = nil
  18545. d.decode(&mk)
  18546. if bv, bok := mk.([]byte); bok {
  18547. mk = d.string(bv)
  18548. }
  18549. if cr != nil {
  18550. cr.sendContainerState(containerMapValue)
  18551. }
  18552. if mapGet {
  18553. mv = v[mk]
  18554. } else {
  18555. mv = nil
  18556. }
  18557. d.decode(&mv)
  18558. if v != nil {
  18559. v[mk] = mv
  18560. }
  18561. }
  18562. }
  18563. if cr != nil {
  18564. cr.sendContainerState(containerMapEnd)
  18565. }
  18566. return v, changed
  18567. }
  18568. func (f *decFnInfo) fastpathDecMapIntfStringR(rv reflect.Value) {
  18569. if rv.CanAddr() {
  18570. vp := rv.Addr().Interface().(*map[interface{}]string)
  18571. v, changed := fastpathTV.DecMapIntfStringV(*vp, fastpathCheckNilFalse, true, f.d)
  18572. if changed {
  18573. *vp = v
  18574. }
  18575. } else {
  18576. v := rv.Interface().(map[interface{}]string)
  18577. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, f.d)
  18578. }
  18579. }
  18580. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, checkNil bool, d *Decoder) {
  18581. v, changed := f.DecMapIntfStringV(*vp, checkNil, true, d)
  18582. if changed {
  18583. *vp = v
  18584. }
  18585. }
  18586. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, checkNil bool, canChange bool,
  18587. d *Decoder) (_ map[interface{}]string, changed bool) {
  18588. dd := d.d
  18589. cr := d.cr
  18590. if checkNil && dd.TryDecodeAsNil() {
  18591. if v != nil {
  18592. changed = true
  18593. }
  18594. return nil, changed
  18595. }
  18596. containerLen := dd.ReadMapStart()
  18597. if canChange && v == nil {
  18598. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18599. v = make(map[interface{}]string, xlen)
  18600. changed = true
  18601. }
  18602. var mk interface{}
  18603. var mv string
  18604. if containerLen > 0 {
  18605. for j := 0; j < containerLen; j++ {
  18606. if cr != nil {
  18607. cr.sendContainerState(containerMapKey)
  18608. }
  18609. mk = nil
  18610. d.decode(&mk)
  18611. if bv, bok := mk.([]byte); bok {
  18612. mk = d.string(bv)
  18613. }
  18614. if cr != nil {
  18615. cr.sendContainerState(containerMapValue)
  18616. }
  18617. mv = dd.DecodeString()
  18618. if v != nil {
  18619. v[mk] = mv
  18620. }
  18621. }
  18622. } else if containerLen < 0 {
  18623. for j := 0; !dd.CheckBreak(); j++ {
  18624. if cr != nil {
  18625. cr.sendContainerState(containerMapKey)
  18626. }
  18627. mk = nil
  18628. d.decode(&mk)
  18629. if bv, bok := mk.([]byte); bok {
  18630. mk = d.string(bv)
  18631. }
  18632. if cr != nil {
  18633. cr.sendContainerState(containerMapValue)
  18634. }
  18635. mv = dd.DecodeString()
  18636. if v != nil {
  18637. v[mk] = mv
  18638. }
  18639. }
  18640. }
  18641. if cr != nil {
  18642. cr.sendContainerState(containerMapEnd)
  18643. }
  18644. return v, changed
  18645. }
  18646. func (f *decFnInfo) fastpathDecMapIntfUintR(rv reflect.Value) {
  18647. if rv.CanAddr() {
  18648. vp := rv.Addr().Interface().(*map[interface{}]uint)
  18649. v, changed := fastpathTV.DecMapIntfUintV(*vp, fastpathCheckNilFalse, true, f.d)
  18650. if changed {
  18651. *vp = v
  18652. }
  18653. } else {
  18654. v := rv.Interface().(map[interface{}]uint)
  18655. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, f.d)
  18656. }
  18657. }
  18658. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, checkNil bool, d *Decoder) {
  18659. v, changed := f.DecMapIntfUintV(*vp, checkNil, true, d)
  18660. if changed {
  18661. *vp = v
  18662. }
  18663. }
  18664. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, checkNil bool, canChange bool,
  18665. d *Decoder) (_ map[interface{}]uint, changed bool) {
  18666. dd := d.d
  18667. cr := d.cr
  18668. if checkNil && dd.TryDecodeAsNil() {
  18669. if v != nil {
  18670. changed = true
  18671. }
  18672. return nil, changed
  18673. }
  18674. containerLen := dd.ReadMapStart()
  18675. if canChange && v == nil {
  18676. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18677. v = make(map[interface{}]uint, xlen)
  18678. changed = true
  18679. }
  18680. var mk interface{}
  18681. var mv uint
  18682. if containerLen > 0 {
  18683. for j := 0; j < containerLen; j++ {
  18684. if cr != nil {
  18685. cr.sendContainerState(containerMapKey)
  18686. }
  18687. mk = nil
  18688. d.decode(&mk)
  18689. if bv, bok := mk.([]byte); bok {
  18690. mk = d.string(bv)
  18691. }
  18692. if cr != nil {
  18693. cr.sendContainerState(containerMapValue)
  18694. }
  18695. mv = uint(dd.DecodeUint(uintBitsize))
  18696. if v != nil {
  18697. v[mk] = mv
  18698. }
  18699. }
  18700. } else if containerLen < 0 {
  18701. for j := 0; !dd.CheckBreak(); j++ {
  18702. if cr != nil {
  18703. cr.sendContainerState(containerMapKey)
  18704. }
  18705. mk = nil
  18706. d.decode(&mk)
  18707. if bv, bok := mk.([]byte); bok {
  18708. mk = d.string(bv)
  18709. }
  18710. if cr != nil {
  18711. cr.sendContainerState(containerMapValue)
  18712. }
  18713. mv = uint(dd.DecodeUint(uintBitsize))
  18714. if v != nil {
  18715. v[mk] = mv
  18716. }
  18717. }
  18718. }
  18719. if cr != nil {
  18720. cr.sendContainerState(containerMapEnd)
  18721. }
  18722. return v, changed
  18723. }
  18724. func (f *decFnInfo) fastpathDecMapIntfUint8R(rv reflect.Value) {
  18725. if rv.CanAddr() {
  18726. vp := rv.Addr().Interface().(*map[interface{}]uint8)
  18727. v, changed := fastpathTV.DecMapIntfUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  18728. if changed {
  18729. *vp = v
  18730. }
  18731. } else {
  18732. v := rv.Interface().(map[interface{}]uint8)
  18733. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, f.d)
  18734. }
  18735. }
  18736. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, checkNil bool, d *Decoder) {
  18737. v, changed := f.DecMapIntfUint8V(*vp, checkNil, true, d)
  18738. if changed {
  18739. *vp = v
  18740. }
  18741. }
  18742. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, checkNil bool, canChange bool,
  18743. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  18744. dd := d.d
  18745. cr := d.cr
  18746. if checkNil && dd.TryDecodeAsNil() {
  18747. if v != nil {
  18748. changed = true
  18749. }
  18750. return nil, changed
  18751. }
  18752. containerLen := dd.ReadMapStart()
  18753. if canChange && v == nil {
  18754. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18755. v = make(map[interface{}]uint8, xlen)
  18756. changed = true
  18757. }
  18758. var mk interface{}
  18759. var mv uint8
  18760. if containerLen > 0 {
  18761. for j := 0; j < containerLen; j++ {
  18762. if cr != nil {
  18763. cr.sendContainerState(containerMapKey)
  18764. }
  18765. mk = nil
  18766. d.decode(&mk)
  18767. if bv, bok := mk.([]byte); bok {
  18768. mk = d.string(bv)
  18769. }
  18770. if cr != nil {
  18771. cr.sendContainerState(containerMapValue)
  18772. }
  18773. mv = uint8(dd.DecodeUint(8))
  18774. if v != nil {
  18775. v[mk] = mv
  18776. }
  18777. }
  18778. } else if containerLen < 0 {
  18779. for j := 0; !dd.CheckBreak(); j++ {
  18780. if cr != nil {
  18781. cr.sendContainerState(containerMapKey)
  18782. }
  18783. mk = nil
  18784. d.decode(&mk)
  18785. if bv, bok := mk.([]byte); bok {
  18786. mk = d.string(bv)
  18787. }
  18788. if cr != nil {
  18789. cr.sendContainerState(containerMapValue)
  18790. }
  18791. mv = uint8(dd.DecodeUint(8))
  18792. if v != nil {
  18793. v[mk] = mv
  18794. }
  18795. }
  18796. }
  18797. if cr != nil {
  18798. cr.sendContainerState(containerMapEnd)
  18799. }
  18800. return v, changed
  18801. }
  18802. func (f *decFnInfo) fastpathDecMapIntfUint16R(rv reflect.Value) {
  18803. if rv.CanAddr() {
  18804. vp := rv.Addr().Interface().(*map[interface{}]uint16)
  18805. v, changed := fastpathTV.DecMapIntfUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  18806. if changed {
  18807. *vp = v
  18808. }
  18809. } else {
  18810. v := rv.Interface().(map[interface{}]uint16)
  18811. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, f.d)
  18812. }
  18813. }
  18814. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, checkNil bool, d *Decoder) {
  18815. v, changed := f.DecMapIntfUint16V(*vp, checkNil, true, d)
  18816. if changed {
  18817. *vp = v
  18818. }
  18819. }
  18820. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, checkNil bool, canChange bool,
  18821. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  18822. dd := d.d
  18823. cr := d.cr
  18824. if checkNil && dd.TryDecodeAsNil() {
  18825. if v != nil {
  18826. changed = true
  18827. }
  18828. return nil, changed
  18829. }
  18830. containerLen := dd.ReadMapStart()
  18831. if canChange && v == nil {
  18832. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  18833. v = make(map[interface{}]uint16, xlen)
  18834. changed = true
  18835. }
  18836. var mk interface{}
  18837. var mv uint16
  18838. if containerLen > 0 {
  18839. for j := 0; j < containerLen; j++ {
  18840. if cr != nil {
  18841. cr.sendContainerState(containerMapKey)
  18842. }
  18843. mk = nil
  18844. d.decode(&mk)
  18845. if bv, bok := mk.([]byte); bok {
  18846. mk = d.string(bv)
  18847. }
  18848. if cr != nil {
  18849. cr.sendContainerState(containerMapValue)
  18850. }
  18851. mv = uint16(dd.DecodeUint(16))
  18852. if v != nil {
  18853. v[mk] = mv
  18854. }
  18855. }
  18856. } else if containerLen < 0 {
  18857. for j := 0; !dd.CheckBreak(); j++ {
  18858. if cr != nil {
  18859. cr.sendContainerState(containerMapKey)
  18860. }
  18861. mk = nil
  18862. d.decode(&mk)
  18863. if bv, bok := mk.([]byte); bok {
  18864. mk = d.string(bv)
  18865. }
  18866. if cr != nil {
  18867. cr.sendContainerState(containerMapValue)
  18868. }
  18869. mv = uint16(dd.DecodeUint(16))
  18870. if v != nil {
  18871. v[mk] = mv
  18872. }
  18873. }
  18874. }
  18875. if cr != nil {
  18876. cr.sendContainerState(containerMapEnd)
  18877. }
  18878. return v, changed
  18879. }
  18880. func (f *decFnInfo) fastpathDecMapIntfUint32R(rv reflect.Value) {
  18881. if rv.CanAddr() {
  18882. vp := rv.Addr().Interface().(*map[interface{}]uint32)
  18883. v, changed := fastpathTV.DecMapIntfUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  18884. if changed {
  18885. *vp = v
  18886. }
  18887. } else {
  18888. v := rv.Interface().(map[interface{}]uint32)
  18889. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, f.d)
  18890. }
  18891. }
  18892. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, checkNil bool, d *Decoder) {
  18893. v, changed := f.DecMapIntfUint32V(*vp, checkNil, true, d)
  18894. if changed {
  18895. *vp = v
  18896. }
  18897. }
  18898. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, checkNil bool, canChange bool,
  18899. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  18900. dd := d.d
  18901. cr := d.cr
  18902. if checkNil && dd.TryDecodeAsNil() {
  18903. if v != nil {
  18904. changed = true
  18905. }
  18906. return nil, changed
  18907. }
  18908. containerLen := dd.ReadMapStart()
  18909. if canChange && v == nil {
  18910. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18911. v = make(map[interface{}]uint32, xlen)
  18912. changed = true
  18913. }
  18914. var mk interface{}
  18915. var mv uint32
  18916. if containerLen > 0 {
  18917. for j := 0; j < containerLen; j++ {
  18918. if cr != nil {
  18919. cr.sendContainerState(containerMapKey)
  18920. }
  18921. mk = nil
  18922. d.decode(&mk)
  18923. if bv, bok := mk.([]byte); bok {
  18924. mk = d.string(bv)
  18925. }
  18926. if cr != nil {
  18927. cr.sendContainerState(containerMapValue)
  18928. }
  18929. mv = uint32(dd.DecodeUint(32))
  18930. if v != nil {
  18931. v[mk] = mv
  18932. }
  18933. }
  18934. } else if containerLen < 0 {
  18935. for j := 0; !dd.CheckBreak(); j++ {
  18936. if cr != nil {
  18937. cr.sendContainerState(containerMapKey)
  18938. }
  18939. mk = nil
  18940. d.decode(&mk)
  18941. if bv, bok := mk.([]byte); bok {
  18942. mk = d.string(bv)
  18943. }
  18944. if cr != nil {
  18945. cr.sendContainerState(containerMapValue)
  18946. }
  18947. mv = uint32(dd.DecodeUint(32))
  18948. if v != nil {
  18949. v[mk] = mv
  18950. }
  18951. }
  18952. }
  18953. if cr != nil {
  18954. cr.sendContainerState(containerMapEnd)
  18955. }
  18956. return v, changed
  18957. }
  18958. func (f *decFnInfo) fastpathDecMapIntfUint64R(rv reflect.Value) {
  18959. if rv.CanAddr() {
  18960. vp := rv.Addr().Interface().(*map[interface{}]uint64)
  18961. v, changed := fastpathTV.DecMapIntfUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  18962. if changed {
  18963. *vp = v
  18964. }
  18965. } else {
  18966. v := rv.Interface().(map[interface{}]uint64)
  18967. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, f.d)
  18968. }
  18969. }
  18970. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, checkNil bool, d *Decoder) {
  18971. v, changed := f.DecMapIntfUint64V(*vp, checkNil, true, d)
  18972. if changed {
  18973. *vp = v
  18974. }
  18975. }
  18976. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, checkNil bool, canChange bool,
  18977. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  18978. dd := d.d
  18979. cr := d.cr
  18980. if checkNil && dd.TryDecodeAsNil() {
  18981. if v != nil {
  18982. changed = true
  18983. }
  18984. return nil, changed
  18985. }
  18986. containerLen := dd.ReadMapStart()
  18987. if canChange && v == nil {
  18988. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18989. v = make(map[interface{}]uint64, xlen)
  18990. changed = true
  18991. }
  18992. var mk interface{}
  18993. var mv uint64
  18994. if containerLen > 0 {
  18995. for j := 0; j < containerLen; j++ {
  18996. if cr != nil {
  18997. cr.sendContainerState(containerMapKey)
  18998. }
  18999. mk = nil
  19000. d.decode(&mk)
  19001. if bv, bok := mk.([]byte); bok {
  19002. mk = d.string(bv)
  19003. }
  19004. if cr != nil {
  19005. cr.sendContainerState(containerMapValue)
  19006. }
  19007. mv = dd.DecodeUint(64)
  19008. if v != nil {
  19009. v[mk] = mv
  19010. }
  19011. }
  19012. } else if containerLen < 0 {
  19013. for j := 0; !dd.CheckBreak(); j++ {
  19014. if cr != nil {
  19015. cr.sendContainerState(containerMapKey)
  19016. }
  19017. mk = nil
  19018. d.decode(&mk)
  19019. if bv, bok := mk.([]byte); bok {
  19020. mk = d.string(bv)
  19021. }
  19022. if cr != nil {
  19023. cr.sendContainerState(containerMapValue)
  19024. }
  19025. mv = dd.DecodeUint(64)
  19026. if v != nil {
  19027. v[mk] = mv
  19028. }
  19029. }
  19030. }
  19031. if cr != nil {
  19032. cr.sendContainerState(containerMapEnd)
  19033. }
  19034. return v, changed
  19035. }
  19036. func (f *decFnInfo) fastpathDecMapIntfUintptrR(rv reflect.Value) {
  19037. if rv.CanAddr() {
  19038. vp := rv.Addr().Interface().(*map[interface{}]uintptr)
  19039. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  19040. if changed {
  19041. *vp = v
  19042. }
  19043. } else {
  19044. v := rv.Interface().(map[interface{}]uintptr)
  19045. fastpathTV.DecMapIntfUintptrV(v, fastpathCheckNilFalse, false, f.d)
  19046. }
  19047. }
  19048. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, checkNil bool, d *Decoder) {
  19049. v, changed := f.DecMapIntfUintptrV(*vp, checkNil, true, d)
  19050. if changed {
  19051. *vp = v
  19052. }
  19053. }
  19054. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, checkNil bool, canChange bool,
  19055. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  19056. dd := d.d
  19057. cr := d.cr
  19058. if checkNil && dd.TryDecodeAsNil() {
  19059. if v != nil {
  19060. changed = true
  19061. }
  19062. return nil, changed
  19063. }
  19064. containerLen := dd.ReadMapStart()
  19065. if canChange && v == nil {
  19066. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19067. v = make(map[interface{}]uintptr, xlen)
  19068. changed = true
  19069. }
  19070. var mk interface{}
  19071. var mv uintptr
  19072. if containerLen > 0 {
  19073. for j := 0; j < containerLen; j++ {
  19074. if cr != nil {
  19075. cr.sendContainerState(containerMapKey)
  19076. }
  19077. mk = nil
  19078. d.decode(&mk)
  19079. if bv, bok := mk.([]byte); bok {
  19080. mk = d.string(bv)
  19081. }
  19082. if cr != nil {
  19083. cr.sendContainerState(containerMapValue)
  19084. }
  19085. mv = uintptr(dd.DecodeUint(uintBitsize))
  19086. if v != nil {
  19087. v[mk] = mv
  19088. }
  19089. }
  19090. } else if containerLen < 0 {
  19091. for j := 0; !dd.CheckBreak(); j++ {
  19092. if cr != nil {
  19093. cr.sendContainerState(containerMapKey)
  19094. }
  19095. mk = nil
  19096. d.decode(&mk)
  19097. if bv, bok := mk.([]byte); bok {
  19098. mk = d.string(bv)
  19099. }
  19100. if cr != nil {
  19101. cr.sendContainerState(containerMapValue)
  19102. }
  19103. mv = uintptr(dd.DecodeUint(uintBitsize))
  19104. if v != nil {
  19105. v[mk] = mv
  19106. }
  19107. }
  19108. }
  19109. if cr != nil {
  19110. cr.sendContainerState(containerMapEnd)
  19111. }
  19112. return v, changed
  19113. }
  19114. func (f *decFnInfo) fastpathDecMapIntfIntR(rv reflect.Value) {
  19115. if rv.CanAddr() {
  19116. vp := rv.Addr().Interface().(*map[interface{}]int)
  19117. v, changed := fastpathTV.DecMapIntfIntV(*vp, fastpathCheckNilFalse, true, f.d)
  19118. if changed {
  19119. *vp = v
  19120. }
  19121. } else {
  19122. v := rv.Interface().(map[interface{}]int)
  19123. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, f.d)
  19124. }
  19125. }
  19126. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, checkNil bool, d *Decoder) {
  19127. v, changed := f.DecMapIntfIntV(*vp, checkNil, true, d)
  19128. if changed {
  19129. *vp = v
  19130. }
  19131. }
  19132. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, checkNil bool, canChange bool,
  19133. d *Decoder) (_ map[interface{}]int, changed bool) {
  19134. dd := d.d
  19135. cr := d.cr
  19136. if checkNil && dd.TryDecodeAsNil() {
  19137. if v != nil {
  19138. changed = true
  19139. }
  19140. return nil, changed
  19141. }
  19142. containerLen := dd.ReadMapStart()
  19143. if canChange && v == nil {
  19144. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19145. v = make(map[interface{}]int, xlen)
  19146. changed = true
  19147. }
  19148. var mk interface{}
  19149. var mv int
  19150. if containerLen > 0 {
  19151. for j := 0; j < containerLen; j++ {
  19152. if cr != nil {
  19153. cr.sendContainerState(containerMapKey)
  19154. }
  19155. mk = nil
  19156. d.decode(&mk)
  19157. if bv, bok := mk.([]byte); bok {
  19158. mk = d.string(bv)
  19159. }
  19160. if cr != nil {
  19161. cr.sendContainerState(containerMapValue)
  19162. }
  19163. mv = int(dd.DecodeInt(intBitsize))
  19164. if v != nil {
  19165. v[mk] = mv
  19166. }
  19167. }
  19168. } else if containerLen < 0 {
  19169. for j := 0; !dd.CheckBreak(); j++ {
  19170. if cr != nil {
  19171. cr.sendContainerState(containerMapKey)
  19172. }
  19173. mk = nil
  19174. d.decode(&mk)
  19175. if bv, bok := mk.([]byte); bok {
  19176. mk = d.string(bv)
  19177. }
  19178. if cr != nil {
  19179. cr.sendContainerState(containerMapValue)
  19180. }
  19181. mv = int(dd.DecodeInt(intBitsize))
  19182. if v != nil {
  19183. v[mk] = mv
  19184. }
  19185. }
  19186. }
  19187. if cr != nil {
  19188. cr.sendContainerState(containerMapEnd)
  19189. }
  19190. return v, changed
  19191. }
  19192. func (f *decFnInfo) fastpathDecMapIntfInt8R(rv reflect.Value) {
  19193. if rv.CanAddr() {
  19194. vp := rv.Addr().Interface().(*map[interface{}]int8)
  19195. v, changed := fastpathTV.DecMapIntfInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  19196. if changed {
  19197. *vp = v
  19198. }
  19199. } else {
  19200. v := rv.Interface().(map[interface{}]int8)
  19201. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, f.d)
  19202. }
  19203. }
  19204. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, checkNil bool, d *Decoder) {
  19205. v, changed := f.DecMapIntfInt8V(*vp, checkNil, true, d)
  19206. if changed {
  19207. *vp = v
  19208. }
  19209. }
  19210. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, checkNil bool, canChange bool,
  19211. d *Decoder) (_ map[interface{}]int8, changed bool) {
  19212. dd := d.d
  19213. cr := d.cr
  19214. if checkNil && dd.TryDecodeAsNil() {
  19215. if v != nil {
  19216. changed = true
  19217. }
  19218. return nil, changed
  19219. }
  19220. containerLen := dd.ReadMapStart()
  19221. if canChange && v == nil {
  19222. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19223. v = make(map[interface{}]int8, xlen)
  19224. changed = true
  19225. }
  19226. var mk interface{}
  19227. var mv int8
  19228. if containerLen > 0 {
  19229. for j := 0; j < containerLen; j++ {
  19230. if cr != nil {
  19231. cr.sendContainerState(containerMapKey)
  19232. }
  19233. mk = nil
  19234. d.decode(&mk)
  19235. if bv, bok := mk.([]byte); bok {
  19236. mk = d.string(bv)
  19237. }
  19238. if cr != nil {
  19239. cr.sendContainerState(containerMapValue)
  19240. }
  19241. mv = int8(dd.DecodeInt(8))
  19242. if v != nil {
  19243. v[mk] = mv
  19244. }
  19245. }
  19246. } else if containerLen < 0 {
  19247. for j := 0; !dd.CheckBreak(); j++ {
  19248. if cr != nil {
  19249. cr.sendContainerState(containerMapKey)
  19250. }
  19251. mk = nil
  19252. d.decode(&mk)
  19253. if bv, bok := mk.([]byte); bok {
  19254. mk = d.string(bv)
  19255. }
  19256. if cr != nil {
  19257. cr.sendContainerState(containerMapValue)
  19258. }
  19259. mv = int8(dd.DecodeInt(8))
  19260. if v != nil {
  19261. v[mk] = mv
  19262. }
  19263. }
  19264. }
  19265. if cr != nil {
  19266. cr.sendContainerState(containerMapEnd)
  19267. }
  19268. return v, changed
  19269. }
  19270. func (f *decFnInfo) fastpathDecMapIntfInt16R(rv reflect.Value) {
  19271. if rv.CanAddr() {
  19272. vp := rv.Addr().Interface().(*map[interface{}]int16)
  19273. v, changed := fastpathTV.DecMapIntfInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  19274. if changed {
  19275. *vp = v
  19276. }
  19277. } else {
  19278. v := rv.Interface().(map[interface{}]int16)
  19279. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, f.d)
  19280. }
  19281. }
  19282. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, checkNil bool, d *Decoder) {
  19283. v, changed := f.DecMapIntfInt16V(*vp, checkNil, true, d)
  19284. if changed {
  19285. *vp = v
  19286. }
  19287. }
  19288. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, checkNil bool, canChange bool,
  19289. d *Decoder) (_ map[interface{}]int16, changed bool) {
  19290. dd := d.d
  19291. cr := d.cr
  19292. if checkNil && dd.TryDecodeAsNil() {
  19293. if v != nil {
  19294. changed = true
  19295. }
  19296. return nil, changed
  19297. }
  19298. containerLen := dd.ReadMapStart()
  19299. if canChange && v == nil {
  19300. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19301. v = make(map[interface{}]int16, xlen)
  19302. changed = true
  19303. }
  19304. var mk interface{}
  19305. var mv int16
  19306. if containerLen > 0 {
  19307. for j := 0; j < containerLen; j++ {
  19308. if cr != nil {
  19309. cr.sendContainerState(containerMapKey)
  19310. }
  19311. mk = nil
  19312. d.decode(&mk)
  19313. if bv, bok := mk.([]byte); bok {
  19314. mk = d.string(bv)
  19315. }
  19316. if cr != nil {
  19317. cr.sendContainerState(containerMapValue)
  19318. }
  19319. mv = int16(dd.DecodeInt(16))
  19320. if v != nil {
  19321. v[mk] = mv
  19322. }
  19323. }
  19324. } else if containerLen < 0 {
  19325. for j := 0; !dd.CheckBreak(); j++ {
  19326. if cr != nil {
  19327. cr.sendContainerState(containerMapKey)
  19328. }
  19329. mk = nil
  19330. d.decode(&mk)
  19331. if bv, bok := mk.([]byte); bok {
  19332. mk = d.string(bv)
  19333. }
  19334. if cr != nil {
  19335. cr.sendContainerState(containerMapValue)
  19336. }
  19337. mv = int16(dd.DecodeInt(16))
  19338. if v != nil {
  19339. v[mk] = mv
  19340. }
  19341. }
  19342. }
  19343. if cr != nil {
  19344. cr.sendContainerState(containerMapEnd)
  19345. }
  19346. return v, changed
  19347. }
  19348. func (f *decFnInfo) fastpathDecMapIntfInt32R(rv reflect.Value) {
  19349. if rv.CanAddr() {
  19350. vp := rv.Addr().Interface().(*map[interface{}]int32)
  19351. v, changed := fastpathTV.DecMapIntfInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  19352. if changed {
  19353. *vp = v
  19354. }
  19355. } else {
  19356. v := rv.Interface().(map[interface{}]int32)
  19357. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, f.d)
  19358. }
  19359. }
  19360. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, checkNil bool, d *Decoder) {
  19361. v, changed := f.DecMapIntfInt32V(*vp, checkNil, true, d)
  19362. if changed {
  19363. *vp = v
  19364. }
  19365. }
  19366. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, checkNil bool, canChange bool,
  19367. d *Decoder) (_ map[interface{}]int32, changed bool) {
  19368. dd := d.d
  19369. cr := d.cr
  19370. if checkNil && dd.TryDecodeAsNil() {
  19371. if v != nil {
  19372. changed = true
  19373. }
  19374. return nil, changed
  19375. }
  19376. containerLen := dd.ReadMapStart()
  19377. if canChange && v == nil {
  19378. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19379. v = make(map[interface{}]int32, xlen)
  19380. changed = true
  19381. }
  19382. var mk interface{}
  19383. var mv int32
  19384. if containerLen > 0 {
  19385. for j := 0; j < containerLen; j++ {
  19386. if cr != nil {
  19387. cr.sendContainerState(containerMapKey)
  19388. }
  19389. mk = nil
  19390. d.decode(&mk)
  19391. if bv, bok := mk.([]byte); bok {
  19392. mk = d.string(bv)
  19393. }
  19394. if cr != nil {
  19395. cr.sendContainerState(containerMapValue)
  19396. }
  19397. mv = int32(dd.DecodeInt(32))
  19398. if v != nil {
  19399. v[mk] = mv
  19400. }
  19401. }
  19402. } else if containerLen < 0 {
  19403. for j := 0; !dd.CheckBreak(); j++ {
  19404. if cr != nil {
  19405. cr.sendContainerState(containerMapKey)
  19406. }
  19407. mk = nil
  19408. d.decode(&mk)
  19409. if bv, bok := mk.([]byte); bok {
  19410. mk = d.string(bv)
  19411. }
  19412. if cr != nil {
  19413. cr.sendContainerState(containerMapValue)
  19414. }
  19415. mv = int32(dd.DecodeInt(32))
  19416. if v != nil {
  19417. v[mk] = mv
  19418. }
  19419. }
  19420. }
  19421. if cr != nil {
  19422. cr.sendContainerState(containerMapEnd)
  19423. }
  19424. return v, changed
  19425. }
  19426. func (f *decFnInfo) fastpathDecMapIntfInt64R(rv reflect.Value) {
  19427. if rv.CanAddr() {
  19428. vp := rv.Addr().Interface().(*map[interface{}]int64)
  19429. v, changed := fastpathTV.DecMapIntfInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  19430. if changed {
  19431. *vp = v
  19432. }
  19433. } else {
  19434. v := rv.Interface().(map[interface{}]int64)
  19435. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, f.d)
  19436. }
  19437. }
  19438. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, checkNil bool, d *Decoder) {
  19439. v, changed := f.DecMapIntfInt64V(*vp, checkNil, true, d)
  19440. if changed {
  19441. *vp = v
  19442. }
  19443. }
  19444. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, checkNil bool, canChange bool,
  19445. d *Decoder) (_ map[interface{}]int64, changed bool) {
  19446. dd := d.d
  19447. cr := d.cr
  19448. if checkNil && dd.TryDecodeAsNil() {
  19449. if v != nil {
  19450. changed = true
  19451. }
  19452. return nil, changed
  19453. }
  19454. containerLen := dd.ReadMapStart()
  19455. if canChange && v == nil {
  19456. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19457. v = make(map[interface{}]int64, xlen)
  19458. changed = true
  19459. }
  19460. var mk interface{}
  19461. var mv int64
  19462. if containerLen > 0 {
  19463. for j := 0; j < containerLen; j++ {
  19464. if cr != nil {
  19465. cr.sendContainerState(containerMapKey)
  19466. }
  19467. mk = nil
  19468. d.decode(&mk)
  19469. if bv, bok := mk.([]byte); bok {
  19470. mk = d.string(bv)
  19471. }
  19472. if cr != nil {
  19473. cr.sendContainerState(containerMapValue)
  19474. }
  19475. mv = dd.DecodeInt(64)
  19476. if v != nil {
  19477. v[mk] = mv
  19478. }
  19479. }
  19480. } else if containerLen < 0 {
  19481. for j := 0; !dd.CheckBreak(); j++ {
  19482. if cr != nil {
  19483. cr.sendContainerState(containerMapKey)
  19484. }
  19485. mk = nil
  19486. d.decode(&mk)
  19487. if bv, bok := mk.([]byte); bok {
  19488. mk = d.string(bv)
  19489. }
  19490. if cr != nil {
  19491. cr.sendContainerState(containerMapValue)
  19492. }
  19493. mv = dd.DecodeInt(64)
  19494. if v != nil {
  19495. v[mk] = mv
  19496. }
  19497. }
  19498. }
  19499. if cr != nil {
  19500. cr.sendContainerState(containerMapEnd)
  19501. }
  19502. return v, changed
  19503. }
  19504. func (f *decFnInfo) fastpathDecMapIntfFloat32R(rv reflect.Value) {
  19505. if rv.CanAddr() {
  19506. vp := rv.Addr().Interface().(*map[interface{}]float32)
  19507. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  19508. if changed {
  19509. *vp = v
  19510. }
  19511. } else {
  19512. v := rv.Interface().(map[interface{}]float32)
  19513. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, f.d)
  19514. }
  19515. }
  19516. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, checkNil bool, d *Decoder) {
  19517. v, changed := f.DecMapIntfFloat32V(*vp, checkNil, true, d)
  19518. if changed {
  19519. *vp = v
  19520. }
  19521. }
  19522. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, checkNil bool, canChange bool,
  19523. d *Decoder) (_ map[interface{}]float32, changed bool) {
  19524. dd := d.d
  19525. cr := d.cr
  19526. if checkNil && dd.TryDecodeAsNil() {
  19527. if v != nil {
  19528. changed = true
  19529. }
  19530. return nil, changed
  19531. }
  19532. containerLen := dd.ReadMapStart()
  19533. if canChange && v == nil {
  19534. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19535. v = make(map[interface{}]float32, xlen)
  19536. changed = true
  19537. }
  19538. var mk interface{}
  19539. var mv float32
  19540. if containerLen > 0 {
  19541. for j := 0; j < containerLen; j++ {
  19542. if cr != nil {
  19543. cr.sendContainerState(containerMapKey)
  19544. }
  19545. mk = nil
  19546. d.decode(&mk)
  19547. if bv, bok := mk.([]byte); bok {
  19548. mk = d.string(bv)
  19549. }
  19550. if cr != nil {
  19551. cr.sendContainerState(containerMapValue)
  19552. }
  19553. mv = float32(dd.DecodeFloat(true))
  19554. if v != nil {
  19555. v[mk] = mv
  19556. }
  19557. }
  19558. } else if containerLen < 0 {
  19559. for j := 0; !dd.CheckBreak(); j++ {
  19560. if cr != nil {
  19561. cr.sendContainerState(containerMapKey)
  19562. }
  19563. mk = nil
  19564. d.decode(&mk)
  19565. if bv, bok := mk.([]byte); bok {
  19566. mk = d.string(bv)
  19567. }
  19568. if cr != nil {
  19569. cr.sendContainerState(containerMapValue)
  19570. }
  19571. mv = float32(dd.DecodeFloat(true))
  19572. if v != nil {
  19573. v[mk] = mv
  19574. }
  19575. }
  19576. }
  19577. if cr != nil {
  19578. cr.sendContainerState(containerMapEnd)
  19579. }
  19580. return v, changed
  19581. }
  19582. func (f *decFnInfo) fastpathDecMapIntfFloat64R(rv reflect.Value) {
  19583. if rv.CanAddr() {
  19584. vp := rv.Addr().Interface().(*map[interface{}]float64)
  19585. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  19586. if changed {
  19587. *vp = v
  19588. }
  19589. } else {
  19590. v := rv.Interface().(map[interface{}]float64)
  19591. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, f.d)
  19592. }
  19593. }
  19594. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, checkNil bool, d *Decoder) {
  19595. v, changed := f.DecMapIntfFloat64V(*vp, checkNil, true, d)
  19596. if changed {
  19597. *vp = v
  19598. }
  19599. }
  19600. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, checkNil bool, canChange bool,
  19601. d *Decoder) (_ map[interface{}]float64, changed bool) {
  19602. dd := d.d
  19603. cr := d.cr
  19604. if checkNil && dd.TryDecodeAsNil() {
  19605. if v != nil {
  19606. changed = true
  19607. }
  19608. return nil, changed
  19609. }
  19610. containerLen := dd.ReadMapStart()
  19611. if canChange && v == nil {
  19612. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19613. v = make(map[interface{}]float64, xlen)
  19614. changed = true
  19615. }
  19616. var mk interface{}
  19617. var mv float64
  19618. if containerLen > 0 {
  19619. for j := 0; j < containerLen; j++ {
  19620. if cr != nil {
  19621. cr.sendContainerState(containerMapKey)
  19622. }
  19623. mk = nil
  19624. d.decode(&mk)
  19625. if bv, bok := mk.([]byte); bok {
  19626. mk = d.string(bv)
  19627. }
  19628. if cr != nil {
  19629. cr.sendContainerState(containerMapValue)
  19630. }
  19631. mv = dd.DecodeFloat(false)
  19632. if v != nil {
  19633. v[mk] = mv
  19634. }
  19635. }
  19636. } else if containerLen < 0 {
  19637. for j := 0; !dd.CheckBreak(); j++ {
  19638. if cr != nil {
  19639. cr.sendContainerState(containerMapKey)
  19640. }
  19641. mk = nil
  19642. d.decode(&mk)
  19643. if bv, bok := mk.([]byte); bok {
  19644. mk = d.string(bv)
  19645. }
  19646. if cr != nil {
  19647. cr.sendContainerState(containerMapValue)
  19648. }
  19649. mv = dd.DecodeFloat(false)
  19650. if v != nil {
  19651. v[mk] = mv
  19652. }
  19653. }
  19654. }
  19655. if cr != nil {
  19656. cr.sendContainerState(containerMapEnd)
  19657. }
  19658. return v, changed
  19659. }
  19660. func (f *decFnInfo) fastpathDecMapIntfBoolR(rv reflect.Value) {
  19661. if rv.CanAddr() {
  19662. vp := rv.Addr().Interface().(*map[interface{}]bool)
  19663. v, changed := fastpathTV.DecMapIntfBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  19664. if changed {
  19665. *vp = v
  19666. }
  19667. } else {
  19668. v := rv.Interface().(map[interface{}]bool)
  19669. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, f.d)
  19670. }
  19671. }
  19672. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, checkNil bool, d *Decoder) {
  19673. v, changed := f.DecMapIntfBoolV(*vp, checkNil, true, d)
  19674. if changed {
  19675. *vp = v
  19676. }
  19677. }
  19678. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, checkNil bool, canChange bool,
  19679. d *Decoder) (_ map[interface{}]bool, changed bool) {
  19680. dd := d.d
  19681. cr := d.cr
  19682. if checkNil && dd.TryDecodeAsNil() {
  19683. if v != nil {
  19684. changed = true
  19685. }
  19686. return nil, changed
  19687. }
  19688. containerLen := dd.ReadMapStart()
  19689. if canChange && v == nil {
  19690. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19691. v = make(map[interface{}]bool, xlen)
  19692. changed = true
  19693. }
  19694. var mk interface{}
  19695. var mv bool
  19696. if containerLen > 0 {
  19697. for j := 0; j < containerLen; j++ {
  19698. if cr != nil {
  19699. cr.sendContainerState(containerMapKey)
  19700. }
  19701. mk = nil
  19702. d.decode(&mk)
  19703. if bv, bok := mk.([]byte); bok {
  19704. mk = d.string(bv)
  19705. }
  19706. if cr != nil {
  19707. cr.sendContainerState(containerMapValue)
  19708. }
  19709. mv = dd.DecodeBool()
  19710. if v != nil {
  19711. v[mk] = mv
  19712. }
  19713. }
  19714. } else if containerLen < 0 {
  19715. for j := 0; !dd.CheckBreak(); j++ {
  19716. if cr != nil {
  19717. cr.sendContainerState(containerMapKey)
  19718. }
  19719. mk = nil
  19720. d.decode(&mk)
  19721. if bv, bok := mk.([]byte); bok {
  19722. mk = d.string(bv)
  19723. }
  19724. if cr != nil {
  19725. cr.sendContainerState(containerMapValue)
  19726. }
  19727. mv = dd.DecodeBool()
  19728. if v != nil {
  19729. v[mk] = mv
  19730. }
  19731. }
  19732. }
  19733. if cr != nil {
  19734. cr.sendContainerState(containerMapEnd)
  19735. }
  19736. return v, changed
  19737. }
  19738. func (f *decFnInfo) fastpathDecMapStringIntfR(rv reflect.Value) {
  19739. if rv.CanAddr() {
  19740. vp := rv.Addr().Interface().(*map[string]interface{})
  19741. v, changed := fastpathTV.DecMapStringIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  19742. if changed {
  19743. *vp = v
  19744. }
  19745. } else {
  19746. v := rv.Interface().(map[string]interface{})
  19747. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, f.d)
  19748. }
  19749. }
  19750. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, checkNil bool, d *Decoder) {
  19751. v, changed := f.DecMapStringIntfV(*vp, checkNil, true, d)
  19752. if changed {
  19753. *vp = v
  19754. }
  19755. }
  19756. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, checkNil bool, canChange bool,
  19757. d *Decoder) (_ map[string]interface{}, changed bool) {
  19758. dd := d.d
  19759. cr := d.cr
  19760. if checkNil && dd.TryDecodeAsNil() {
  19761. if v != nil {
  19762. changed = true
  19763. }
  19764. return nil, changed
  19765. }
  19766. containerLen := dd.ReadMapStart()
  19767. if canChange && v == nil {
  19768. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  19769. v = make(map[string]interface{}, xlen)
  19770. changed = true
  19771. }
  19772. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  19773. var mk string
  19774. var mv interface{}
  19775. if containerLen > 0 {
  19776. for j := 0; j < containerLen; j++ {
  19777. if cr != nil {
  19778. cr.sendContainerState(containerMapKey)
  19779. }
  19780. mk = dd.DecodeString()
  19781. if cr != nil {
  19782. cr.sendContainerState(containerMapValue)
  19783. }
  19784. if mapGet {
  19785. mv = v[mk]
  19786. } else {
  19787. mv = nil
  19788. }
  19789. d.decode(&mv)
  19790. if v != nil {
  19791. v[mk] = mv
  19792. }
  19793. }
  19794. } else if containerLen < 0 {
  19795. for j := 0; !dd.CheckBreak(); j++ {
  19796. if cr != nil {
  19797. cr.sendContainerState(containerMapKey)
  19798. }
  19799. mk = dd.DecodeString()
  19800. if cr != nil {
  19801. cr.sendContainerState(containerMapValue)
  19802. }
  19803. if mapGet {
  19804. mv = v[mk]
  19805. } else {
  19806. mv = nil
  19807. }
  19808. d.decode(&mv)
  19809. if v != nil {
  19810. v[mk] = mv
  19811. }
  19812. }
  19813. }
  19814. if cr != nil {
  19815. cr.sendContainerState(containerMapEnd)
  19816. }
  19817. return v, changed
  19818. }
  19819. func (f *decFnInfo) fastpathDecMapStringStringR(rv reflect.Value) {
  19820. if rv.CanAddr() {
  19821. vp := rv.Addr().Interface().(*map[string]string)
  19822. v, changed := fastpathTV.DecMapStringStringV(*vp, fastpathCheckNilFalse, true, f.d)
  19823. if changed {
  19824. *vp = v
  19825. }
  19826. } else {
  19827. v := rv.Interface().(map[string]string)
  19828. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, f.d)
  19829. }
  19830. }
  19831. func (f fastpathT) DecMapStringStringX(vp *map[string]string, checkNil bool, d *Decoder) {
  19832. v, changed := f.DecMapStringStringV(*vp, checkNil, true, d)
  19833. if changed {
  19834. *vp = v
  19835. }
  19836. }
  19837. func (_ fastpathT) DecMapStringStringV(v map[string]string, checkNil bool, canChange bool,
  19838. d *Decoder) (_ map[string]string, changed bool) {
  19839. dd := d.d
  19840. cr := d.cr
  19841. if checkNil && dd.TryDecodeAsNil() {
  19842. if v != nil {
  19843. changed = true
  19844. }
  19845. return nil, changed
  19846. }
  19847. containerLen := dd.ReadMapStart()
  19848. if canChange && v == nil {
  19849. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  19850. v = make(map[string]string, xlen)
  19851. changed = true
  19852. }
  19853. var mk string
  19854. var mv string
  19855. if containerLen > 0 {
  19856. for j := 0; j < containerLen; j++ {
  19857. if cr != nil {
  19858. cr.sendContainerState(containerMapKey)
  19859. }
  19860. mk = dd.DecodeString()
  19861. if cr != nil {
  19862. cr.sendContainerState(containerMapValue)
  19863. }
  19864. mv = dd.DecodeString()
  19865. if v != nil {
  19866. v[mk] = mv
  19867. }
  19868. }
  19869. } else if containerLen < 0 {
  19870. for j := 0; !dd.CheckBreak(); j++ {
  19871. if cr != nil {
  19872. cr.sendContainerState(containerMapKey)
  19873. }
  19874. mk = dd.DecodeString()
  19875. if cr != nil {
  19876. cr.sendContainerState(containerMapValue)
  19877. }
  19878. mv = dd.DecodeString()
  19879. if v != nil {
  19880. v[mk] = mv
  19881. }
  19882. }
  19883. }
  19884. if cr != nil {
  19885. cr.sendContainerState(containerMapEnd)
  19886. }
  19887. return v, changed
  19888. }
  19889. func (f *decFnInfo) fastpathDecMapStringUintR(rv reflect.Value) {
  19890. if rv.CanAddr() {
  19891. vp := rv.Addr().Interface().(*map[string]uint)
  19892. v, changed := fastpathTV.DecMapStringUintV(*vp, fastpathCheckNilFalse, true, f.d)
  19893. if changed {
  19894. *vp = v
  19895. }
  19896. } else {
  19897. v := rv.Interface().(map[string]uint)
  19898. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, f.d)
  19899. }
  19900. }
  19901. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, checkNil bool, d *Decoder) {
  19902. v, changed := f.DecMapStringUintV(*vp, checkNil, true, d)
  19903. if changed {
  19904. *vp = v
  19905. }
  19906. }
  19907. func (_ fastpathT) DecMapStringUintV(v map[string]uint, checkNil bool, canChange bool,
  19908. d *Decoder) (_ map[string]uint, changed bool) {
  19909. dd := d.d
  19910. cr := d.cr
  19911. if checkNil && dd.TryDecodeAsNil() {
  19912. if v != nil {
  19913. changed = true
  19914. }
  19915. return nil, changed
  19916. }
  19917. containerLen := dd.ReadMapStart()
  19918. if canChange && v == nil {
  19919. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19920. v = make(map[string]uint, xlen)
  19921. changed = true
  19922. }
  19923. var mk string
  19924. var mv uint
  19925. if containerLen > 0 {
  19926. for j := 0; j < containerLen; j++ {
  19927. if cr != nil {
  19928. cr.sendContainerState(containerMapKey)
  19929. }
  19930. mk = dd.DecodeString()
  19931. if cr != nil {
  19932. cr.sendContainerState(containerMapValue)
  19933. }
  19934. mv = uint(dd.DecodeUint(uintBitsize))
  19935. if v != nil {
  19936. v[mk] = mv
  19937. }
  19938. }
  19939. } else if containerLen < 0 {
  19940. for j := 0; !dd.CheckBreak(); j++ {
  19941. if cr != nil {
  19942. cr.sendContainerState(containerMapKey)
  19943. }
  19944. mk = dd.DecodeString()
  19945. if cr != nil {
  19946. cr.sendContainerState(containerMapValue)
  19947. }
  19948. mv = uint(dd.DecodeUint(uintBitsize))
  19949. if v != nil {
  19950. v[mk] = mv
  19951. }
  19952. }
  19953. }
  19954. if cr != nil {
  19955. cr.sendContainerState(containerMapEnd)
  19956. }
  19957. return v, changed
  19958. }
  19959. func (f *decFnInfo) fastpathDecMapStringUint8R(rv reflect.Value) {
  19960. if rv.CanAddr() {
  19961. vp := rv.Addr().Interface().(*map[string]uint8)
  19962. v, changed := fastpathTV.DecMapStringUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  19963. if changed {
  19964. *vp = v
  19965. }
  19966. } else {
  19967. v := rv.Interface().(map[string]uint8)
  19968. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, f.d)
  19969. }
  19970. }
  19971. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, checkNil bool, d *Decoder) {
  19972. v, changed := f.DecMapStringUint8V(*vp, checkNil, true, d)
  19973. if changed {
  19974. *vp = v
  19975. }
  19976. }
  19977. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, checkNil bool, canChange bool,
  19978. d *Decoder) (_ map[string]uint8, changed bool) {
  19979. dd := d.d
  19980. cr := d.cr
  19981. if checkNil && dd.TryDecodeAsNil() {
  19982. if v != nil {
  19983. changed = true
  19984. }
  19985. return nil, changed
  19986. }
  19987. containerLen := dd.ReadMapStart()
  19988. if canChange && v == nil {
  19989. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19990. v = make(map[string]uint8, xlen)
  19991. changed = true
  19992. }
  19993. var mk string
  19994. var mv uint8
  19995. if containerLen > 0 {
  19996. for j := 0; j < containerLen; j++ {
  19997. if cr != nil {
  19998. cr.sendContainerState(containerMapKey)
  19999. }
  20000. mk = dd.DecodeString()
  20001. if cr != nil {
  20002. cr.sendContainerState(containerMapValue)
  20003. }
  20004. mv = uint8(dd.DecodeUint(8))
  20005. if v != nil {
  20006. v[mk] = mv
  20007. }
  20008. }
  20009. } else if containerLen < 0 {
  20010. for j := 0; !dd.CheckBreak(); j++ {
  20011. if cr != nil {
  20012. cr.sendContainerState(containerMapKey)
  20013. }
  20014. mk = dd.DecodeString()
  20015. if cr != nil {
  20016. cr.sendContainerState(containerMapValue)
  20017. }
  20018. mv = uint8(dd.DecodeUint(8))
  20019. if v != nil {
  20020. v[mk] = mv
  20021. }
  20022. }
  20023. }
  20024. if cr != nil {
  20025. cr.sendContainerState(containerMapEnd)
  20026. }
  20027. return v, changed
  20028. }
  20029. func (f *decFnInfo) fastpathDecMapStringUint16R(rv reflect.Value) {
  20030. if rv.CanAddr() {
  20031. vp := rv.Addr().Interface().(*map[string]uint16)
  20032. v, changed := fastpathTV.DecMapStringUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  20033. if changed {
  20034. *vp = v
  20035. }
  20036. } else {
  20037. v := rv.Interface().(map[string]uint16)
  20038. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, f.d)
  20039. }
  20040. }
  20041. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, checkNil bool, d *Decoder) {
  20042. v, changed := f.DecMapStringUint16V(*vp, checkNil, true, d)
  20043. if changed {
  20044. *vp = v
  20045. }
  20046. }
  20047. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, checkNil bool, canChange bool,
  20048. d *Decoder) (_ map[string]uint16, changed bool) {
  20049. dd := d.d
  20050. cr := d.cr
  20051. if checkNil && dd.TryDecodeAsNil() {
  20052. if v != nil {
  20053. changed = true
  20054. }
  20055. return nil, changed
  20056. }
  20057. containerLen := dd.ReadMapStart()
  20058. if canChange && v == nil {
  20059. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20060. v = make(map[string]uint16, xlen)
  20061. changed = true
  20062. }
  20063. var mk string
  20064. var mv uint16
  20065. if containerLen > 0 {
  20066. for j := 0; j < containerLen; j++ {
  20067. if cr != nil {
  20068. cr.sendContainerState(containerMapKey)
  20069. }
  20070. mk = dd.DecodeString()
  20071. if cr != nil {
  20072. cr.sendContainerState(containerMapValue)
  20073. }
  20074. mv = uint16(dd.DecodeUint(16))
  20075. if v != nil {
  20076. v[mk] = mv
  20077. }
  20078. }
  20079. } else if containerLen < 0 {
  20080. for j := 0; !dd.CheckBreak(); j++ {
  20081. if cr != nil {
  20082. cr.sendContainerState(containerMapKey)
  20083. }
  20084. mk = dd.DecodeString()
  20085. if cr != nil {
  20086. cr.sendContainerState(containerMapValue)
  20087. }
  20088. mv = uint16(dd.DecodeUint(16))
  20089. if v != nil {
  20090. v[mk] = mv
  20091. }
  20092. }
  20093. }
  20094. if cr != nil {
  20095. cr.sendContainerState(containerMapEnd)
  20096. }
  20097. return v, changed
  20098. }
  20099. func (f *decFnInfo) fastpathDecMapStringUint32R(rv reflect.Value) {
  20100. if rv.CanAddr() {
  20101. vp := rv.Addr().Interface().(*map[string]uint32)
  20102. v, changed := fastpathTV.DecMapStringUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  20103. if changed {
  20104. *vp = v
  20105. }
  20106. } else {
  20107. v := rv.Interface().(map[string]uint32)
  20108. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, f.d)
  20109. }
  20110. }
  20111. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, checkNil bool, d *Decoder) {
  20112. v, changed := f.DecMapStringUint32V(*vp, checkNil, true, d)
  20113. if changed {
  20114. *vp = v
  20115. }
  20116. }
  20117. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, checkNil bool, canChange bool,
  20118. d *Decoder) (_ map[string]uint32, changed bool) {
  20119. dd := d.d
  20120. cr := d.cr
  20121. if checkNil && dd.TryDecodeAsNil() {
  20122. if v != nil {
  20123. changed = true
  20124. }
  20125. return nil, changed
  20126. }
  20127. containerLen := dd.ReadMapStart()
  20128. if canChange && v == nil {
  20129. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20130. v = make(map[string]uint32, xlen)
  20131. changed = true
  20132. }
  20133. var mk string
  20134. var mv uint32
  20135. if containerLen > 0 {
  20136. for j := 0; j < containerLen; j++ {
  20137. if cr != nil {
  20138. cr.sendContainerState(containerMapKey)
  20139. }
  20140. mk = dd.DecodeString()
  20141. if cr != nil {
  20142. cr.sendContainerState(containerMapValue)
  20143. }
  20144. mv = uint32(dd.DecodeUint(32))
  20145. if v != nil {
  20146. v[mk] = mv
  20147. }
  20148. }
  20149. } else if containerLen < 0 {
  20150. for j := 0; !dd.CheckBreak(); j++ {
  20151. if cr != nil {
  20152. cr.sendContainerState(containerMapKey)
  20153. }
  20154. mk = dd.DecodeString()
  20155. if cr != nil {
  20156. cr.sendContainerState(containerMapValue)
  20157. }
  20158. mv = uint32(dd.DecodeUint(32))
  20159. if v != nil {
  20160. v[mk] = mv
  20161. }
  20162. }
  20163. }
  20164. if cr != nil {
  20165. cr.sendContainerState(containerMapEnd)
  20166. }
  20167. return v, changed
  20168. }
  20169. func (f *decFnInfo) fastpathDecMapStringUint64R(rv reflect.Value) {
  20170. if rv.CanAddr() {
  20171. vp := rv.Addr().Interface().(*map[string]uint64)
  20172. v, changed := fastpathTV.DecMapStringUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  20173. if changed {
  20174. *vp = v
  20175. }
  20176. } else {
  20177. v := rv.Interface().(map[string]uint64)
  20178. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, f.d)
  20179. }
  20180. }
  20181. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, checkNil bool, d *Decoder) {
  20182. v, changed := f.DecMapStringUint64V(*vp, checkNil, true, d)
  20183. if changed {
  20184. *vp = v
  20185. }
  20186. }
  20187. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, checkNil bool, canChange bool,
  20188. d *Decoder) (_ map[string]uint64, changed bool) {
  20189. dd := d.d
  20190. cr := d.cr
  20191. if checkNil && dd.TryDecodeAsNil() {
  20192. if v != nil {
  20193. changed = true
  20194. }
  20195. return nil, changed
  20196. }
  20197. containerLen := dd.ReadMapStart()
  20198. if canChange && v == nil {
  20199. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20200. v = make(map[string]uint64, xlen)
  20201. changed = true
  20202. }
  20203. var mk string
  20204. var mv uint64
  20205. if containerLen > 0 {
  20206. for j := 0; j < containerLen; j++ {
  20207. if cr != nil {
  20208. cr.sendContainerState(containerMapKey)
  20209. }
  20210. mk = dd.DecodeString()
  20211. if cr != nil {
  20212. cr.sendContainerState(containerMapValue)
  20213. }
  20214. mv = dd.DecodeUint(64)
  20215. if v != nil {
  20216. v[mk] = mv
  20217. }
  20218. }
  20219. } else if containerLen < 0 {
  20220. for j := 0; !dd.CheckBreak(); j++ {
  20221. if cr != nil {
  20222. cr.sendContainerState(containerMapKey)
  20223. }
  20224. mk = dd.DecodeString()
  20225. if cr != nil {
  20226. cr.sendContainerState(containerMapValue)
  20227. }
  20228. mv = dd.DecodeUint(64)
  20229. if v != nil {
  20230. v[mk] = mv
  20231. }
  20232. }
  20233. }
  20234. if cr != nil {
  20235. cr.sendContainerState(containerMapEnd)
  20236. }
  20237. return v, changed
  20238. }
  20239. func (f *decFnInfo) fastpathDecMapStringUintptrR(rv reflect.Value) {
  20240. if rv.CanAddr() {
  20241. vp := rv.Addr().Interface().(*map[string]uintptr)
  20242. v, changed := fastpathTV.DecMapStringUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  20243. if changed {
  20244. *vp = v
  20245. }
  20246. } else {
  20247. v := rv.Interface().(map[string]uintptr)
  20248. fastpathTV.DecMapStringUintptrV(v, fastpathCheckNilFalse, false, f.d)
  20249. }
  20250. }
  20251. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, checkNil bool, d *Decoder) {
  20252. v, changed := f.DecMapStringUintptrV(*vp, checkNil, true, d)
  20253. if changed {
  20254. *vp = v
  20255. }
  20256. }
  20257. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, checkNil bool, canChange bool,
  20258. d *Decoder) (_ map[string]uintptr, changed bool) {
  20259. dd := d.d
  20260. cr := d.cr
  20261. if checkNil && dd.TryDecodeAsNil() {
  20262. if v != nil {
  20263. changed = true
  20264. }
  20265. return nil, changed
  20266. }
  20267. containerLen := dd.ReadMapStart()
  20268. if canChange && v == nil {
  20269. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20270. v = make(map[string]uintptr, xlen)
  20271. changed = true
  20272. }
  20273. var mk string
  20274. var mv uintptr
  20275. if containerLen > 0 {
  20276. for j := 0; j < containerLen; j++ {
  20277. if cr != nil {
  20278. cr.sendContainerState(containerMapKey)
  20279. }
  20280. mk = dd.DecodeString()
  20281. if cr != nil {
  20282. cr.sendContainerState(containerMapValue)
  20283. }
  20284. mv = uintptr(dd.DecodeUint(uintBitsize))
  20285. if v != nil {
  20286. v[mk] = mv
  20287. }
  20288. }
  20289. } else if containerLen < 0 {
  20290. for j := 0; !dd.CheckBreak(); j++ {
  20291. if cr != nil {
  20292. cr.sendContainerState(containerMapKey)
  20293. }
  20294. mk = dd.DecodeString()
  20295. if cr != nil {
  20296. cr.sendContainerState(containerMapValue)
  20297. }
  20298. mv = uintptr(dd.DecodeUint(uintBitsize))
  20299. if v != nil {
  20300. v[mk] = mv
  20301. }
  20302. }
  20303. }
  20304. if cr != nil {
  20305. cr.sendContainerState(containerMapEnd)
  20306. }
  20307. return v, changed
  20308. }
  20309. func (f *decFnInfo) fastpathDecMapStringIntR(rv reflect.Value) {
  20310. if rv.CanAddr() {
  20311. vp := rv.Addr().Interface().(*map[string]int)
  20312. v, changed := fastpathTV.DecMapStringIntV(*vp, fastpathCheckNilFalse, true, f.d)
  20313. if changed {
  20314. *vp = v
  20315. }
  20316. } else {
  20317. v := rv.Interface().(map[string]int)
  20318. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, f.d)
  20319. }
  20320. }
  20321. func (f fastpathT) DecMapStringIntX(vp *map[string]int, checkNil bool, d *Decoder) {
  20322. v, changed := f.DecMapStringIntV(*vp, checkNil, true, d)
  20323. if changed {
  20324. *vp = v
  20325. }
  20326. }
  20327. func (_ fastpathT) DecMapStringIntV(v map[string]int, checkNil bool, canChange bool,
  20328. d *Decoder) (_ map[string]int, changed bool) {
  20329. dd := d.d
  20330. cr := d.cr
  20331. if checkNil && dd.TryDecodeAsNil() {
  20332. if v != nil {
  20333. changed = true
  20334. }
  20335. return nil, changed
  20336. }
  20337. containerLen := dd.ReadMapStart()
  20338. if canChange && v == nil {
  20339. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20340. v = make(map[string]int, xlen)
  20341. changed = true
  20342. }
  20343. var mk string
  20344. var mv int
  20345. if containerLen > 0 {
  20346. for j := 0; j < containerLen; j++ {
  20347. if cr != nil {
  20348. cr.sendContainerState(containerMapKey)
  20349. }
  20350. mk = dd.DecodeString()
  20351. if cr != nil {
  20352. cr.sendContainerState(containerMapValue)
  20353. }
  20354. mv = int(dd.DecodeInt(intBitsize))
  20355. if v != nil {
  20356. v[mk] = mv
  20357. }
  20358. }
  20359. } else if containerLen < 0 {
  20360. for j := 0; !dd.CheckBreak(); j++ {
  20361. if cr != nil {
  20362. cr.sendContainerState(containerMapKey)
  20363. }
  20364. mk = dd.DecodeString()
  20365. if cr != nil {
  20366. cr.sendContainerState(containerMapValue)
  20367. }
  20368. mv = int(dd.DecodeInt(intBitsize))
  20369. if v != nil {
  20370. v[mk] = mv
  20371. }
  20372. }
  20373. }
  20374. if cr != nil {
  20375. cr.sendContainerState(containerMapEnd)
  20376. }
  20377. return v, changed
  20378. }
  20379. func (f *decFnInfo) fastpathDecMapStringInt8R(rv reflect.Value) {
  20380. if rv.CanAddr() {
  20381. vp := rv.Addr().Interface().(*map[string]int8)
  20382. v, changed := fastpathTV.DecMapStringInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  20383. if changed {
  20384. *vp = v
  20385. }
  20386. } else {
  20387. v := rv.Interface().(map[string]int8)
  20388. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, f.d)
  20389. }
  20390. }
  20391. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, checkNil bool, d *Decoder) {
  20392. v, changed := f.DecMapStringInt8V(*vp, checkNil, true, d)
  20393. if changed {
  20394. *vp = v
  20395. }
  20396. }
  20397. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, checkNil bool, canChange bool,
  20398. d *Decoder) (_ map[string]int8, changed bool) {
  20399. dd := d.d
  20400. cr := d.cr
  20401. if checkNil && dd.TryDecodeAsNil() {
  20402. if v != nil {
  20403. changed = true
  20404. }
  20405. return nil, changed
  20406. }
  20407. containerLen := dd.ReadMapStart()
  20408. if canChange && v == nil {
  20409. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20410. v = make(map[string]int8, xlen)
  20411. changed = true
  20412. }
  20413. var mk string
  20414. var mv int8
  20415. if containerLen > 0 {
  20416. for j := 0; j < containerLen; j++ {
  20417. if cr != nil {
  20418. cr.sendContainerState(containerMapKey)
  20419. }
  20420. mk = dd.DecodeString()
  20421. if cr != nil {
  20422. cr.sendContainerState(containerMapValue)
  20423. }
  20424. mv = int8(dd.DecodeInt(8))
  20425. if v != nil {
  20426. v[mk] = mv
  20427. }
  20428. }
  20429. } else if containerLen < 0 {
  20430. for j := 0; !dd.CheckBreak(); j++ {
  20431. if cr != nil {
  20432. cr.sendContainerState(containerMapKey)
  20433. }
  20434. mk = dd.DecodeString()
  20435. if cr != nil {
  20436. cr.sendContainerState(containerMapValue)
  20437. }
  20438. mv = int8(dd.DecodeInt(8))
  20439. if v != nil {
  20440. v[mk] = mv
  20441. }
  20442. }
  20443. }
  20444. if cr != nil {
  20445. cr.sendContainerState(containerMapEnd)
  20446. }
  20447. return v, changed
  20448. }
  20449. func (f *decFnInfo) fastpathDecMapStringInt16R(rv reflect.Value) {
  20450. if rv.CanAddr() {
  20451. vp := rv.Addr().Interface().(*map[string]int16)
  20452. v, changed := fastpathTV.DecMapStringInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  20453. if changed {
  20454. *vp = v
  20455. }
  20456. } else {
  20457. v := rv.Interface().(map[string]int16)
  20458. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, f.d)
  20459. }
  20460. }
  20461. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, checkNil bool, d *Decoder) {
  20462. v, changed := f.DecMapStringInt16V(*vp, checkNil, true, d)
  20463. if changed {
  20464. *vp = v
  20465. }
  20466. }
  20467. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, checkNil bool, canChange bool,
  20468. d *Decoder) (_ map[string]int16, changed bool) {
  20469. dd := d.d
  20470. cr := d.cr
  20471. if checkNil && dd.TryDecodeAsNil() {
  20472. if v != nil {
  20473. changed = true
  20474. }
  20475. return nil, changed
  20476. }
  20477. containerLen := dd.ReadMapStart()
  20478. if canChange && v == nil {
  20479. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20480. v = make(map[string]int16, xlen)
  20481. changed = true
  20482. }
  20483. var mk string
  20484. var mv int16
  20485. if containerLen > 0 {
  20486. for j := 0; j < containerLen; j++ {
  20487. if cr != nil {
  20488. cr.sendContainerState(containerMapKey)
  20489. }
  20490. mk = dd.DecodeString()
  20491. if cr != nil {
  20492. cr.sendContainerState(containerMapValue)
  20493. }
  20494. mv = int16(dd.DecodeInt(16))
  20495. if v != nil {
  20496. v[mk] = mv
  20497. }
  20498. }
  20499. } else if containerLen < 0 {
  20500. for j := 0; !dd.CheckBreak(); j++ {
  20501. if cr != nil {
  20502. cr.sendContainerState(containerMapKey)
  20503. }
  20504. mk = dd.DecodeString()
  20505. if cr != nil {
  20506. cr.sendContainerState(containerMapValue)
  20507. }
  20508. mv = int16(dd.DecodeInt(16))
  20509. if v != nil {
  20510. v[mk] = mv
  20511. }
  20512. }
  20513. }
  20514. if cr != nil {
  20515. cr.sendContainerState(containerMapEnd)
  20516. }
  20517. return v, changed
  20518. }
  20519. func (f *decFnInfo) fastpathDecMapStringInt32R(rv reflect.Value) {
  20520. if rv.CanAddr() {
  20521. vp := rv.Addr().Interface().(*map[string]int32)
  20522. v, changed := fastpathTV.DecMapStringInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  20523. if changed {
  20524. *vp = v
  20525. }
  20526. } else {
  20527. v := rv.Interface().(map[string]int32)
  20528. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, f.d)
  20529. }
  20530. }
  20531. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, checkNil bool, d *Decoder) {
  20532. v, changed := f.DecMapStringInt32V(*vp, checkNil, true, d)
  20533. if changed {
  20534. *vp = v
  20535. }
  20536. }
  20537. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, checkNil bool, canChange bool,
  20538. d *Decoder) (_ map[string]int32, changed bool) {
  20539. dd := d.d
  20540. cr := d.cr
  20541. if checkNil && dd.TryDecodeAsNil() {
  20542. if v != nil {
  20543. changed = true
  20544. }
  20545. return nil, changed
  20546. }
  20547. containerLen := dd.ReadMapStart()
  20548. if canChange && v == nil {
  20549. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20550. v = make(map[string]int32, xlen)
  20551. changed = true
  20552. }
  20553. var mk string
  20554. var mv int32
  20555. if containerLen > 0 {
  20556. for j := 0; j < containerLen; j++ {
  20557. if cr != nil {
  20558. cr.sendContainerState(containerMapKey)
  20559. }
  20560. mk = dd.DecodeString()
  20561. if cr != nil {
  20562. cr.sendContainerState(containerMapValue)
  20563. }
  20564. mv = int32(dd.DecodeInt(32))
  20565. if v != nil {
  20566. v[mk] = mv
  20567. }
  20568. }
  20569. } else if containerLen < 0 {
  20570. for j := 0; !dd.CheckBreak(); j++ {
  20571. if cr != nil {
  20572. cr.sendContainerState(containerMapKey)
  20573. }
  20574. mk = dd.DecodeString()
  20575. if cr != nil {
  20576. cr.sendContainerState(containerMapValue)
  20577. }
  20578. mv = int32(dd.DecodeInt(32))
  20579. if v != nil {
  20580. v[mk] = mv
  20581. }
  20582. }
  20583. }
  20584. if cr != nil {
  20585. cr.sendContainerState(containerMapEnd)
  20586. }
  20587. return v, changed
  20588. }
  20589. func (f *decFnInfo) fastpathDecMapStringInt64R(rv reflect.Value) {
  20590. if rv.CanAddr() {
  20591. vp := rv.Addr().Interface().(*map[string]int64)
  20592. v, changed := fastpathTV.DecMapStringInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  20593. if changed {
  20594. *vp = v
  20595. }
  20596. } else {
  20597. v := rv.Interface().(map[string]int64)
  20598. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, f.d)
  20599. }
  20600. }
  20601. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, checkNil bool, d *Decoder) {
  20602. v, changed := f.DecMapStringInt64V(*vp, checkNil, true, d)
  20603. if changed {
  20604. *vp = v
  20605. }
  20606. }
  20607. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, checkNil bool, canChange bool,
  20608. d *Decoder) (_ map[string]int64, changed bool) {
  20609. dd := d.d
  20610. cr := d.cr
  20611. if checkNil && dd.TryDecodeAsNil() {
  20612. if v != nil {
  20613. changed = true
  20614. }
  20615. return nil, changed
  20616. }
  20617. containerLen := dd.ReadMapStart()
  20618. if canChange && v == nil {
  20619. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20620. v = make(map[string]int64, xlen)
  20621. changed = true
  20622. }
  20623. var mk string
  20624. var mv int64
  20625. if containerLen > 0 {
  20626. for j := 0; j < containerLen; j++ {
  20627. if cr != nil {
  20628. cr.sendContainerState(containerMapKey)
  20629. }
  20630. mk = dd.DecodeString()
  20631. if cr != nil {
  20632. cr.sendContainerState(containerMapValue)
  20633. }
  20634. mv = dd.DecodeInt(64)
  20635. if v != nil {
  20636. v[mk] = mv
  20637. }
  20638. }
  20639. } else if containerLen < 0 {
  20640. for j := 0; !dd.CheckBreak(); j++ {
  20641. if cr != nil {
  20642. cr.sendContainerState(containerMapKey)
  20643. }
  20644. mk = dd.DecodeString()
  20645. if cr != nil {
  20646. cr.sendContainerState(containerMapValue)
  20647. }
  20648. mv = dd.DecodeInt(64)
  20649. if v != nil {
  20650. v[mk] = mv
  20651. }
  20652. }
  20653. }
  20654. if cr != nil {
  20655. cr.sendContainerState(containerMapEnd)
  20656. }
  20657. return v, changed
  20658. }
  20659. func (f *decFnInfo) fastpathDecMapStringFloat32R(rv reflect.Value) {
  20660. if rv.CanAddr() {
  20661. vp := rv.Addr().Interface().(*map[string]float32)
  20662. v, changed := fastpathTV.DecMapStringFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  20663. if changed {
  20664. *vp = v
  20665. }
  20666. } else {
  20667. v := rv.Interface().(map[string]float32)
  20668. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, f.d)
  20669. }
  20670. }
  20671. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, checkNil bool, d *Decoder) {
  20672. v, changed := f.DecMapStringFloat32V(*vp, checkNil, true, d)
  20673. if changed {
  20674. *vp = v
  20675. }
  20676. }
  20677. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, checkNil bool, canChange bool,
  20678. d *Decoder) (_ map[string]float32, changed bool) {
  20679. dd := d.d
  20680. cr := d.cr
  20681. if checkNil && dd.TryDecodeAsNil() {
  20682. if v != nil {
  20683. changed = true
  20684. }
  20685. return nil, changed
  20686. }
  20687. containerLen := dd.ReadMapStart()
  20688. if canChange && v == nil {
  20689. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20690. v = make(map[string]float32, xlen)
  20691. changed = true
  20692. }
  20693. var mk string
  20694. var mv float32
  20695. if containerLen > 0 {
  20696. for j := 0; j < containerLen; j++ {
  20697. if cr != nil {
  20698. cr.sendContainerState(containerMapKey)
  20699. }
  20700. mk = dd.DecodeString()
  20701. if cr != nil {
  20702. cr.sendContainerState(containerMapValue)
  20703. }
  20704. mv = float32(dd.DecodeFloat(true))
  20705. if v != nil {
  20706. v[mk] = mv
  20707. }
  20708. }
  20709. } else if containerLen < 0 {
  20710. for j := 0; !dd.CheckBreak(); j++ {
  20711. if cr != nil {
  20712. cr.sendContainerState(containerMapKey)
  20713. }
  20714. mk = dd.DecodeString()
  20715. if cr != nil {
  20716. cr.sendContainerState(containerMapValue)
  20717. }
  20718. mv = float32(dd.DecodeFloat(true))
  20719. if v != nil {
  20720. v[mk] = mv
  20721. }
  20722. }
  20723. }
  20724. if cr != nil {
  20725. cr.sendContainerState(containerMapEnd)
  20726. }
  20727. return v, changed
  20728. }
  20729. func (f *decFnInfo) fastpathDecMapStringFloat64R(rv reflect.Value) {
  20730. if rv.CanAddr() {
  20731. vp := rv.Addr().Interface().(*map[string]float64)
  20732. v, changed := fastpathTV.DecMapStringFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  20733. if changed {
  20734. *vp = v
  20735. }
  20736. } else {
  20737. v := rv.Interface().(map[string]float64)
  20738. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, f.d)
  20739. }
  20740. }
  20741. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, checkNil bool, d *Decoder) {
  20742. v, changed := f.DecMapStringFloat64V(*vp, checkNil, true, d)
  20743. if changed {
  20744. *vp = v
  20745. }
  20746. }
  20747. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, checkNil bool, canChange bool,
  20748. d *Decoder) (_ map[string]float64, changed bool) {
  20749. dd := d.d
  20750. cr := d.cr
  20751. if checkNil && dd.TryDecodeAsNil() {
  20752. if v != nil {
  20753. changed = true
  20754. }
  20755. return nil, changed
  20756. }
  20757. containerLen := dd.ReadMapStart()
  20758. if canChange && v == nil {
  20759. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20760. v = make(map[string]float64, xlen)
  20761. changed = true
  20762. }
  20763. var mk string
  20764. var mv float64
  20765. if containerLen > 0 {
  20766. for j := 0; j < containerLen; j++ {
  20767. if cr != nil {
  20768. cr.sendContainerState(containerMapKey)
  20769. }
  20770. mk = dd.DecodeString()
  20771. if cr != nil {
  20772. cr.sendContainerState(containerMapValue)
  20773. }
  20774. mv = dd.DecodeFloat(false)
  20775. if v != nil {
  20776. v[mk] = mv
  20777. }
  20778. }
  20779. } else if containerLen < 0 {
  20780. for j := 0; !dd.CheckBreak(); j++ {
  20781. if cr != nil {
  20782. cr.sendContainerState(containerMapKey)
  20783. }
  20784. mk = dd.DecodeString()
  20785. if cr != nil {
  20786. cr.sendContainerState(containerMapValue)
  20787. }
  20788. mv = dd.DecodeFloat(false)
  20789. if v != nil {
  20790. v[mk] = mv
  20791. }
  20792. }
  20793. }
  20794. if cr != nil {
  20795. cr.sendContainerState(containerMapEnd)
  20796. }
  20797. return v, changed
  20798. }
  20799. func (f *decFnInfo) fastpathDecMapStringBoolR(rv reflect.Value) {
  20800. if rv.CanAddr() {
  20801. vp := rv.Addr().Interface().(*map[string]bool)
  20802. v, changed := fastpathTV.DecMapStringBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  20803. if changed {
  20804. *vp = v
  20805. }
  20806. } else {
  20807. v := rv.Interface().(map[string]bool)
  20808. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, f.d)
  20809. }
  20810. }
  20811. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, checkNil bool, d *Decoder) {
  20812. v, changed := f.DecMapStringBoolV(*vp, checkNil, true, d)
  20813. if changed {
  20814. *vp = v
  20815. }
  20816. }
  20817. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, checkNil bool, canChange bool,
  20818. d *Decoder) (_ map[string]bool, changed bool) {
  20819. dd := d.d
  20820. cr := d.cr
  20821. if checkNil && dd.TryDecodeAsNil() {
  20822. if v != nil {
  20823. changed = true
  20824. }
  20825. return nil, changed
  20826. }
  20827. containerLen := dd.ReadMapStart()
  20828. if canChange && v == nil {
  20829. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20830. v = make(map[string]bool, xlen)
  20831. changed = true
  20832. }
  20833. var mk string
  20834. var mv bool
  20835. if containerLen > 0 {
  20836. for j := 0; j < containerLen; j++ {
  20837. if cr != nil {
  20838. cr.sendContainerState(containerMapKey)
  20839. }
  20840. mk = dd.DecodeString()
  20841. if cr != nil {
  20842. cr.sendContainerState(containerMapValue)
  20843. }
  20844. mv = dd.DecodeBool()
  20845. if v != nil {
  20846. v[mk] = mv
  20847. }
  20848. }
  20849. } else if containerLen < 0 {
  20850. for j := 0; !dd.CheckBreak(); j++ {
  20851. if cr != nil {
  20852. cr.sendContainerState(containerMapKey)
  20853. }
  20854. mk = dd.DecodeString()
  20855. if cr != nil {
  20856. cr.sendContainerState(containerMapValue)
  20857. }
  20858. mv = dd.DecodeBool()
  20859. if v != nil {
  20860. v[mk] = mv
  20861. }
  20862. }
  20863. }
  20864. if cr != nil {
  20865. cr.sendContainerState(containerMapEnd)
  20866. }
  20867. return v, changed
  20868. }
  20869. func (f *decFnInfo) fastpathDecMapFloat32IntfR(rv reflect.Value) {
  20870. if rv.CanAddr() {
  20871. vp := rv.Addr().Interface().(*map[float32]interface{})
  20872. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  20873. if changed {
  20874. *vp = v
  20875. }
  20876. } else {
  20877. v := rv.Interface().(map[float32]interface{})
  20878. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, f.d)
  20879. }
  20880. }
  20881. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, checkNil bool, d *Decoder) {
  20882. v, changed := f.DecMapFloat32IntfV(*vp, checkNil, true, d)
  20883. if changed {
  20884. *vp = v
  20885. }
  20886. }
  20887. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, checkNil bool, canChange bool,
  20888. d *Decoder) (_ map[float32]interface{}, changed bool) {
  20889. dd := d.d
  20890. cr := d.cr
  20891. if checkNil && dd.TryDecodeAsNil() {
  20892. if v != nil {
  20893. changed = true
  20894. }
  20895. return nil, changed
  20896. }
  20897. containerLen := dd.ReadMapStart()
  20898. if canChange && v == nil {
  20899. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20900. v = make(map[float32]interface{}, xlen)
  20901. changed = true
  20902. }
  20903. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  20904. var mk float32
  20905. var mv interface{}
  20906. if containerLen > 0 {
  20907. for j := 0; j < containerLen; j++ {
  20908. if cr != nil {
  20909. cr.sendContainerState(containerMapKey)
  20910. }
  20911. mk = float32(dd.DecodeFloat(true))
  20912. if cr != nil {
  20913. cr.sendContainerState(containerMapValue)
  20914. }
  20915. if mapGet {
  20916. mv = v[mk]
  20917. } else {
  20918. mv = nil
  20919. }
  20920. d.decode(&mv)
  20921. if v != nil {
  20922. v[mk] = mv
  20923. }
  20924. }
  20925. } else if containerLen < 0 {
  20926. for j := 0; !dd.CheckBreak(); j++ {
  20927. if cr != nil {
  20928. cr.sendContainerState(containerMapKey)
  20929. }
  20930. mk = float32(dd.DecodeFloat(true))
  20931. if cr != nil {
  20932. cr.sendContainerState(containerMapValue)
  20933. }
  20934. if mapGet {
  20935. mv = v[mk]
  20936. } else {
  20937. mv = nil
  20938. }
  20939. d.decode(&mv)
  20940. if v != nil {
  20941. v[mk] = mv
  20942. }
  20943. }
  20944. }
  20945. if cr != nil {
  20946. cr.sendContainerState(containerMapEnd)
  20947. }
  20948. return v, changed
  20949. }
  20950. func (f *decFnInfo) fastpathDecMapFloat32StringR(rv reflect.Value) {
  20951. if rv.CanAddr() {
  20952. vp := rv.Addr().Interface().(*map[float32]string)
  20953. v, changed := fastpathTV.DecMapFloat32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  20954. if changed {
  20955. *vp = v
  20956. }
  20957. } else {
  20958. v := rv.Interface().(map[float32]string)
  20959. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, f.d)
  20960. }
  20961. }
  20962. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, checkNil bool, d *Decoder) {
  20963. v, changed := f.DecMapFloat32StringV(*vp, checkNil, true, d)
  20964. if changed {
  20965. *vp = v
  20966. }
  20967. }
  20968. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, checkNil bool, canChange bool,
  20969. d *Decoder) (_ map[float32]string, changed bool) {
  20970. dd := d.d
  20971. cr := d.cr
  20972. if checkNil && dd.TryDecodeAsNil() {
  20973. if v != nil {
  20974. changed = true
  20975. }
  20976. return nil, changed
  20977. }
  20978. containerLen := dd.ReadMapStart()
  20979. if canChange && v == nil {
  20980. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20981. v = make(map[float32]string, xlen)
  20982. changed = true
  20983. }
  20984. var mk float32
  20985. var mv string
  20986. if containerLen > 0 {
  20987. for j := 0; j < containerLen; j++ {
  20988. if cr != nil {
  20989. cr.sendContainerState(containerMapKey)
  20990. }
  20991. mk = float32(dd.DecodeFloat(true))
  20992. if cr != nil {
  20993. cr.sendContainerState(containerMapValue)
  20994. }
  20995. mv = dd.DecodeString()
  20996. if v != nil {
  20997. v[mk] = mv
  20998. }
  20999. }
  21000. } else if containerLen < 0 {
  21001. for j := 0; !dd.CheckBreak(); j++ {
  21002. if cr != nil {
  21003. cr.sendContainerState(containerMapKey)
  21004. }
  21005. mk = float32(dd.DecodeFloat(true))
  21006. if cr != nil {
  21007. cr.sendContainerState(containerMapValue)
  21008. }
  21009. mv = dd.DecodeString()
  21010. if v != nil {
  21011. v[mk] = mv
  21012. }
  21013. }
  21014. }
  21015. if cr != nil {
  21016. cr.sendContainerState(containerMapEnd)
  21017. }
  21018. return v, changed
  21019. }
  21020. func (f *decFnInfo) fastpathDecMapFloat32UintR(rv reflect.Value) {
  21021. if rv.CanAddr() {
  21022. vp := rv.Addr().Interface().(*map[float32]uint)
  21023. v, changed := fastpathTV.DecMapFloat32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  21024. if changed {
  21025. *vp = v
  21026. }
  21027. } else {
  21028. v := rv.Interface().(map[float32]uint)
  21029. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, f.d)
  21030. }
  21031. }
  21032. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, checkNil bool, d *Decoder) {
  21033. v, changed := f.DecMapFloat32UintV(*vp, checkNil, true, d)
  21034. if changed {
  21035. *vp = v
  21036. }
  21037. }
  21038. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, checkNil bool, canChange bool,
  21039. d *Decoder) (_ map[float32]uint, changed bool) {
  21040. dd := d.d
  21041. cr := d.cr
  21042. if checkNil && dd.TryDecodeAsNil() {
  21043. if v != nil {
  21044. changed = true
  21045. }
  21046. return nil, changed
  21047. }
  21048. containerLen := dd.ReadMapStart()
  21049. if canChange && v == nil {
  21050. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21051. v = make(map[float32]uint, xlen)
  21052. changed = true
  21053. }
  21054. var mk float32
  21055. var mv uint
  21056. if containerLen > 0 {
  21057. for j := 0; j < containerLen; j++ {
  21058. if cr != nil {
  21059. cr.sendContainerState(containerMapKey)
  21060. }
  21061. mk = float32(dd.DecodeFloat(true))
  21062. if cr != nil {
  21063. cr.sendContainerState(containerMapValue)
  21064. }
  21065. mv = uint(dd.DecodeUint(uintBitsize))
  21066. if v != nil {
  21067. v[mk] = mv
  21068. }
  21069. }
  21070. } else if containerLen < 0 {
  21071. for j := 0; !dd.CheckBreak(); j++ {
  21072. if cr != nil {
  21073. cr.sendContainerState(containerMapKey)
  21074. }
  21075. mk = float32(dd.DecodeFloat(true))
  21076. if cr != nil {
  21077. cr.sendContainerState(containerMapValue)
  21078. }
  21079. mv = uint(dd.DecodeUint(uintBitsize))
  21080. if v != nil {
  21081. v[mk] = mv
  21082. }
  21083. }
  21084. }
  21085. if cr != nil {
  21086. cr.sendContainerState(containerMapEnd)
  21087. }
  21088. return v, changed
  21089. }
  21090. func (f *decFnInfo) fastpathDecMapFloat32Uint8R(rv reflect.Value) {
  21091. if rv.CanAddr() {
  21092. vp := rv.Addr().Interface().(*map[float32]uint8)
  21093. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  21094. if changed {
  21095. *vp = v
  21096. }
  21097. } else {
  21098. v := rv.Interface().(map[float32]uint8)
  21099. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  21100. }
  21101. }
  21102. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, checkNil bool, d *Decoder) {
  21103. v, changed := f.DecMapFloat32Uint8V(*vp, checkNil, true, d)
  21104. if changed {
  21105. *vp = v
  21106. }
  21107. }
  21108. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, checkNil bool, canChange bool,
  21109. d *Decoder) (_ map[float32]uint8, changed bool) {
  21110. dd := d.d
  21111. cr := d.cr
  21112. if checkNil && dd.TryDecodeAsNil() {
  21113. if v != nil {
  21114. changed = true
  21115. }
  21116. return nil, changed
  21117. }
  21118. containerLen := dd.ReadMapStart()
  21119. if canChange && v == nil {
  21120. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21121. v = make(map[float32]uint8, xlen)
  21122. changed = true
  21123. }
  21124. var mk float32
  21125. var mv uint8
  21126. if containerLen > 0 {
  21127. for j := 0; j < containerLen; j++ {
  21128. if cr != nil {
  21129. cr.sendContainerState(containerMapKey)
  21130. }
  21131. mk = float32(dd.DecodeFloat(true))
  21132. if cr != nil {
  21133. cr.sendContainerState(containerMapValue)
  21134. }
  21135. mv = uint8(dd.DecodeUint(8))
  21136. if v != nil {
  21137. v[mk] = mv
  21138. }
  21139. }
  21140. } else if containerLen < 0 {
  21141. for j := 0; !dd.CheckBreak(); j++ {
  21142. if cr != nil {
  21143. cr.sendContainerState(containerMapKey)
  21144. }
  21145. mk = float32(dd.DecodeFloat(true))
  21146. if cr != nil {
  21147. cr.sendContainerState(containerMapValue)
  21148. }
  21149. mv = uint8(dd.DecodeUint(8))
  21150. if v != nil {
  21151. v[mk] = mv
  21152. }
  21153. }
  21154. }
  21155. if cr != nil {
  21156. cr.sendContainerState(containerMapEnd)
  21157. }
  21158. return v, changed
  21159. }
  21160. func (f *decFnInfo) fastpathDecMapFloat32Uint16R(rv reflect.Value) {
  21161. if rv.CanAddr() {
  21162. vp := rv.Addr().Interface().(*map[float32]uint16)
  21163. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  21164. if changed {
  21165. *vp = v
  21166. }
  21167. } else {
  21168. v := rv.Interface().(map[float32]uint16)
  21169. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  21170. }
  21171. }
  21172. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, checkNil bool, d *Decoder) {
  21173. v, changed := f.DecMapFloat32Uint16V(*vp, checkNil, true, d)
  21174. if changed {
  21175. *vp = v
  21176. }
  21177. }
  21178. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, checkNil bool, canChange bool,
  21179. d *Decoder) (_ map[float32]uint16, changed bool) {
  21180. dd := d.d
  21181. cr := d.cr
  21182. if checkNil && dd.TryDecodeAsNil() {
  21183. if v != nil {
  21184. changed = true
  21185. }
  21186. return nil, changed
  21187. }
  21188. containerLen := dd.ReadMapStart()
  21189. if canChange && v == nil {
  21190. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21191. v = make(map[float32]uint16, xlen)
  21192. changed = true
  21193. }
  21194. var mk float32
  21195. var mv uint16
  21196. if containerLen > 0 {
  21197. for j := 0; j < containerLen; j++ {
  21198. if cr != nil {
  21199. cr.sendContainerState(containerMapKey)
  21200. }
  21201. mk = float32(dd.DecodeFloat(true))
  21202. if cr != nil {
  21203. cr.sendContainerState(containerMapValue)
  21204. }
  21205. mv = uint16(dd.DecodeUint(16))
  21206. if v != nil {
  21207. v[mk] = mv
  21208. }
  21209. }
  21210. } else if containerLen < 0 {
  21211. for j := 0; !dd.CheckBreak(); j++ {
  21212. if cr != nil {
  21213. cr.sendContainerState(containerMapKey)
  21214. }
  21215. mk = float32(dd.DecodeFloat(true))
  21216. if cr != nil {
  21217. cr.sendContainerState(containerMapValue)
  21218. }
  21219. mv = uint16(dd.DecodeUint(16))
  21220. if v != nil {
  21221. v[mk] = mv
  21222. }
  21223. }
  21224. }
  21225. if cr != nil {
  21226. cr.sendContainerState(containerMapEnd)
  21227. }
  21228. return v, changed
  21229. }
  21230. func (f *decFnInfo) fastpathDecMapFloat32Uint32R(rv reflect.Value) {
  21231. if rv.CanAddr() {
  21232. vp := rv.Addr().Interface().(*map[float32]uint32)
  21233. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  21234. if changed {
  21235. *vp = v
  21236. }
  21237. } else {
  21238. v := rv.Interface().(map[float32]uint32)
  21239. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  21240. }
  21241. }
  21242. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, checkNil bool, d *Decoder) {
  21243. v, changed := f.DecMapFloat32Uint32V(*vp, checkNil, true, d)
  21244. if changed {
  21245. *vp = v
  21246. }
  21247. }
  21248. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, checkNil bool, canChange bool,
  21249. d *Decoder) (_ map[float32]uint32, changed bool) {
  21250. dd := d.d
  21251. cr := d.cr
  21252. if checkNil && dd.TryDecodeAsNil() {
  21253. if v != nil {
  21254. changed = true
  21255. }
  21256. return nil, changed
  21257. }
  21258. containerLen := dd.ReadMapStart()
  21259. if canChange && v == nil {
  21260. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21261. v = make(map[float32]uint32, xlen)
  21262. changed = true
  21263. }
  21264. var mk float32
  21265. var mv uint32
  21266. if containerLen > 0 {
  21267. for j := 0; j < containerLen; j++ {
  21268. if cr != nil {
  21269. cr.sendContainerState(containerMapKey)
  21270. }
  21271. mk = float32(dd.DecodeFloat(true))
  21272. if cr != nil {
  21273. cr.sendContainerState(containerMapValue)
  21274. }
  21275. mv = uint32(dd.DecodeUint(32))
  21276. if v != nil {
  21277. v[mk] = mv
  21278. }
  21279. }
  21280. } else if containerLen < 0 {
  21281. for j := 0; !dd.CheckBreak(); j++ {
  21282. if cr != nil {
  21283. cr.sendContainerState(containerMapKey)
  21284. }
  21285. mk = float32(dd.DecodeFloat(true))
  21286. if cr != nil {
  21287. cr.sendContainerState(containerMapValue)
  21288. }
  21289. mv = uint32(dd.DecodeUint(32))
  21290. if v != nil {
  21291. v[mk] = mv
  21292. }
  21293. }
  21294. }
  21295. if cr != nil {
  21296. cr.sendContainerState(containerMapEnd)
  21297. }
  21298. return v, changed
  21299. }
  21300. func (f *decFnInfo) fastpathDecMapFloat32Uint64R(rv reflect.Value) {
  21301. if rv.CanAddr() {
  21302. vp := rv.Addr().Interface().(*map[float32]uint64)
  21303. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  21304. if changed {
  21305. *vp = v
  21306. }
  21307. } else {
  21308. v := rv.Interface().(map[float32]uint64)
  21309. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  21310. }
  21311. }
  21312. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, checkNil bool, d *Decoder) {
  21313. v, changed := f.DecMapFloat32Uint64V(*vp, checkNil, true, d)
  21314. if changed {
  21315. *vp = v
  21316. }
  21317. }
  21318. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, checkNil bool, canChange bool,
  21319. d *Decoder) (_ map[float32]uint64, changed bool) {
  21320. dd := d.d
  21321. cr := d.cr
  21322. if checkNil && dd.TryDecodeAsNil() {
  21323. if v != nil {
  21324. changed = true
  21325. }
  21326. return nil, changed
  21327. }
  21328. containerLen := dd.ReadMapStart()
  21329. if canChange && v == nil {
  21330. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21331. v = make(map[float32]uint64, xlen)
  21332. changed = true
  21333. }
  21334. var mk float32
  21335. var mv uint64
  21336. if containerLen > 0 {
  21337. for j := 0; j < containerLen; j++ {
  21338. if cr != nil {
  21339. cr.sendContainerState(containerMapKey)
  21340. }
  21341. mk = float32(dd.DecodeFloat(true))
  21342. if cr != nil {
  21343. cr.sendContainerState(containerMapValue)
  21344. }
  21345. mv = dd.DecodeUint(64)
  21346. if v != nil {
  21347. v[mk] = mv
  21348. }
  21349. }
  21350. } else if containerLen < 0 {
  21351. for j := 0; !dd.CheckBreak(); j++ {
  21352. if cr != nil {
  21353. cr.sendContainerState(containerMapKey)
  21354. }
  21355. mk = float32(dd.DecodeFloat(true))
  21356. if cr != nil {
  21357. cr.sendContainerState(containerMapValue)
  21358. }
  21359. mv = dd.DecodeUint(64)
  21360. if v != nil {
  21361. v[mk] = mv
  21362. }
  21363. }
  21364. }
  21365. if cr != nil {
  21366. cr.sendContainerState(containerMapEnd)
  21367. }
  21368. return v, changed
  21369. }
  21370. func (f *decFnInfo) fastpathDecMapFloat32UintptrR(rv reflect.Value) {
  21371. if rv.CanAddr() {
  21372. vp := rv.Addr().Interface().(*map[float32]uintptr)
  21373. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  21374. if changed {
  21375. *vp = v
  21376. }
  21377. } else {
  21378. v := rv.Interface().(map[float32]uintptr)
  21379. fastpathTV.DecMapFloat32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  21380. }
  21381. }
  21382. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, checkNil bool, d *Decoder) {
  21383. v, changed := f.DecMapFloat32UintptrV(*vp, checkNil, true, d)
  21384. if changed {
  21385. *vp = v
  21386. }
  21387. }
  21388. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, checkNil bool, canChange bool,
  21389. d *Decoder) (_ map[float32]uintptr, changed bool) {
  21390. dd := d.d
  21391. cr := d.cr
  21392. if checkNil && dd.TryDecodeAsNil() {
  21393. if v != nil {
  21394. changed = true
  21395. }
  21396. return nil, changed
  21397. }
  21398. containerLen := dd.ReadMapStart()
  21399. if canChange && v == nil {
  21400. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21401. v = make(map[float32]uintptr, xlen)
  21402. changed = true
  21403. }
  21404. var mk float32
  21405. var mv uintptr
  21406. if containerLen > 0 {
  21407. for j := 0; j < containerLen; j++ {
  21408. if cr != nil {
  21409. cr.sendContainerState(containerMapKey)
  21410. }
  21411. mk = float32(dd.DecodeFloat(true))
  21412. if cr != nil {
  21413. cr.sendContainerState(containerMapValue)
  21414. }
  21415. mv = uintptr(dd.DecodeUint(uintBitsize))
  21416. if v != nil {
  21417. v[mk] = mv
  21418. }
  21419. }
  21420. } else if containerLen < 0 {
  21421. for j := 0; !dd.CheckBreak(); j++ {
  21422. if cr != nil {
  21423. cr.sendContainerState(containerMapKey)
  21424. }
  21425. mk = float32(dd.DecodeFloat(true))
  21426. if cr != nil {
  21427. cr.sendContainerState(containerMapValue)
  21428. }
  21429. mv = uintptr(dd.DecodeUint(uintBitsize))
  21430. if v != nil {
  21431. v[mk] = mv
  21432. }
  21433. }
  21434. }
  21435. if cr != nil {
  21436. cr.sendContainerState(containerMapEnd)
  21437. }
  21438. return v, changed
  21439. }
  21440. func (f *decFnInfo) fastpathDecMapFloat32IntR(rv reflect.Value) {
  21441. if rv.CanAddr() {
  21442. vp := rv.Addr().Interface().(*map[float32]int)
  21443. v, changed := fastpathTV.DecMapFloat32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  21444. if changed {
  21445. *vp = v
  21446. }
  21447. } else {
  21448. v := rv.Interface().(map[float32]int)
  21449. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, f.d)
  21450. }
  21451. }
  21452. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, checkNil bool, d *Decoder) {
  21453. v, changed := f.DecMapFloat32IntV(*vp, checkNil, true, d)
  21454. if changed {
  21455. *vp = v
  21456. }
  21457. }
  21458. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, checkNil bool, canChange bool,
  21459. d *Decoder) (_ map[float32]int, changed bool) {
  21460. dd := d.d
  21461. cr := d.cr
  21462. if checkNil && dd.TryDecodeAsNil() {
  21463. if v != nil {
  21464. changed = true
  21465. }
  21466. return nil, changed
  21467. }
  21468. containerLen := dd.ReadMapStart()
  21469. if canChange && v == nil {
  21470. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21471. v = make(map[float32]int, xlen)
  21472. changed = true
  21473. }
  21474. var mk float32
  21475. var mv int
  21476. if containerLen > 0 {
  21477. for j := 0; j < containerLen; j++ {
  21478. if cr != nil {
  21479. cr.sendContainerState(containerMapKey)
  21480. }
  21481. mk = float32(dd.DecodeFloat(true))
  21482. if cr != nil {
  21483. cr.sendContainerState(containerMapValue)
  21484. }
  21485. mv = int(dd.DecodeInt(intBitsize))
  21486. if v != nil {
  21487. v[mk] = mv
  21488. }
  21489. }
  21490. } else if containerLen < 0 {
  21491. for j := 0; !dd.CheckBreak(); j++ {
  21492. if cr != nil {
  21493. cr.sendContainerState(containerMapKey)
  21494. }
  21495. mk = float32(dd.DecodeFloat(true))
  21496. if cr != nil {
  21497. cr.sendContainerState(containerMapValue)
  21498. }
  21499. mv = int(dd.DecodeInt(intBitsize))
  21500. if v != nil {
  21501. v[mk] = mv
  21502. }
  21503. }
  21504. }
  21505. if cr != nil {
  21506. cr.sendContainerState(containerMapEnd)
  21507. }
  21508. return v, changed
  21509. }
  21510. func (f *decFnInfo) fastpathDecMapFloat32Int8R(rv reflect.Value) {
  21511. if rv.CanAddr() {
  21512. vp := rv.Addr().Interface().(*map[float32]int8)
  21513. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  21514. if changed {
  21515. *vp = v
  21516. }
  21517. } else {
  21518. v := rv.Interface().(map[float32]int8)
  21519. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, f.d)
  21520. }
  21521. }
  21522. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, checkNil bool, d *Decoder) {
  21523. v, changed := f.DecMapFloat32Int8V(*vp, checkNil, true, d)
  21524. if changed {
  21525. *vp = v
  21526. }
  21527. }
  21528. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, checkNil bool, canChange bool,
  21529. d *Decoder) (_ map[float32]int8, changed bool) {
  21530. dd := d.d
  21531. cr := d.cr
  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. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21541. v = make(map[float32]int8, xlen)
  21542. changed = true
  21543. }
  21544. var mk float32
  21545. var mv int8
  21546. if containerLen > 0 {
  21547. for j := 0; j < containerLen; j++ {
  21548. if cr != nil {
  21549. cr.sendContainerState(containerMapKey)
  21550. }
  21551. mk = float32(dd.DecodeFloat(true))
  21552. if cr != nil {
  21553. cr.sendContainerState(containerMapValue)
  21554. }
  21555. mv = int8(dd.DecodeInt(8))
  21556. if v != nil {
  21557. v[mk] = mv
  21558. }
  21559. }
  21560. } else if containerLen < 0 {
  21561. for j := 0; !dd.CheckBreak(); j++ {
  21562. if cr != nil {
  21563. cr.sendContainerState(containerMapKey)
  21564. }
  21565. mk = float32(dd.DecodeFloat(true))
  21566. if cr != nil {
  21567. cr.sendContainerState(containerMapValue)
  21568. }
  21569. mv = int8(dd.DecodeInt(8))
  21570. if v != nil {
  21571. v[mk] = mv
  21572. }
  21573. }
  21574. }
  21575. if cr != nil {
  21576. cr.sendContainerState(containerMapEnd)
  21577. }
  21578. return v, changed
  21579. }
  21580. func (f *decFnInfo) fastpathDecMapFloat32Int16R(rv reflect.Value) {
  21581. if rv.CanAddr() {
  21582. vp := rv.Addr().Interface().(*map[float32]int16)
  21583. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  21584. if changed {
  21585. *vp = v
  21586. }
  21587. } else {
  21588. v := rv.Interface().(map[float32]int16)
  21589. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, f.d)
  21590. }
  21591. }
  21592. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, checkNil bool, d *Decoder) {
  21593. v, changed := f.DecMapFloat32Int16V(*vp, checkNil, true, d)
  21594. if changed {
  21595. *vp = v
  21596. }
  21597. }
  21598. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, checkNil bool, canChange bool,
  21599. d *Decoder) (_ map[float32]int16, changed bool) {
  21600. dd := d.d
  21601. cr := d.cr
  21602. if checkNil && dd.TryDecodeAsNil() {
  21603. if v != nil {
  21604. changed = true
  21605. }
  21606. return nil, changed
  21607. }
  21608. containerLen := dd.ReadMapStart()
  21609. if canChange && v == nil {
  21610. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21611. v = make(map[float32]int16, xlen)
  21612. changed = true
  21613. }
  21614. var mk float32
  21615. var mv int16
  21616. if containerLen > 0 {
  21617. for j := 0; j < containerLen; j++ {
  21618. if cr != nil {
  21619. cr.sendContainerState(containerMapKey)
  21620. }
  21621. mk = float32(dd.DecodeFloat(true))
  21622. if cr != nil {
  21623. cr.sendContainerState(containerMapValue)
  21624. }
  21625. mv = int16(dd.DecodeInt(16))
  21626. if v != nil {
  21627. v[mk] = mv
  21628. }
  21629. }
  21630. } else if containerLen < 0 {
  21631. for j := 0; !dd.CheckBreak(); j++ {
  21632. if cr != nil {
  21633. cr.sendContainerState(containerMapKey)
  21634. }
  21635. mk = float32(dd.DecodeFloat(true))
  21636. if cr != nil {
  21637. cr.sendContainerState(containerMapValue)
  21638. }
  21639. mv = int16(dd.DecodeInt(16))
  21640. if v != nil {
  21641. v[mk] = mv
  21642. }
  21643. }
  21644. }
  21645. if cr != nil {
  21646. cr.sendContainerState(containerMapEnd)
  21647. }
  21648. return v, changed
  21649. }
  21650. func (f *decFnInfo) fastpathDecMapFloat32Int32R(rv reflect.Value) {
  21651. if rv.CanAddr() {
  21652. vp := rv.Addr().Interface().(*map[float32]int32)
  21653. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  21654. if changed {
  21655. *vp = v
  21656. }
  21657. } else {
  21658. v := rv.Interface().(map[float32]int32)
  21659. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, f.d)
  21660. }
  21661. }
  21662. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, checkNil bool, d *Decoder) {
  21663. v, changed := f.DecMapFloat32Int32V(*vp, checkNil, true, d)
  21664. if changed {
  21665. *vp = v
  21666. }
  21667. }
  21668. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, checkNil bool, canChange bool,
  21669. d *Decoder) (_ map[float32]int32, changed bool) {
  21670. dd := d.d
  21671. cr := d.cr
  21672. if checkNil && dd.TryDecodeAsNil() {
  21673. if v != nil {
  21674. changed = true
  21675. }
  21676. return nil, changed
  21677. }
  21678. containerLen := dd.ReadMapStart()
  21679. if canChange && v == nil {
  21680. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21681. v = make(map[float32]int32, xlen)
  21682. changed = true
  21683. }
  21684. var mk float32
  21685. var mv int32
  21686. if containerLen > 0 {
  21687. for j := 0; j < containerLen; j++ {
  21688. if cr != nil {
  21689. cr.sendContainerState(containerMapKey)
  21690. }
  21691. mk = float32(dd.DecodeFloat(true))
  21692. if cr != nil {
  21693. cr.sendContainerState(containerMapValue)
  21694. }
  21695. mv = int32(dd.DecodeInt(32))
  21696. if v != nil {
  21697. v[mk] = mv
  21698. }
  21699. }
  21700. } else if containerLen < 0 {
  21701. for j := 0; !dd.CheckBreak(); j++ {
  21702. if cr != nil {
  21703. cr.sendContainerState(containerMapKey)
  21704. }
  21705. mk = float32(dd.DecodeFloat(true))
  21706. if cr != nil {
  21707. cr.sendContainerState(containerMapValue)
  21708. }
  21709. mv = int32(dd.DecodeInt(32))
  21710. if v != nil {
  21711. v[mk] = mv
  21712. }
  21713. }
  21714. }
  21715. if cr != nil {
  21716. cr.sendContainerState(containerMapEnd)
  21717. }
  21718. return v, changed
  21719. }
  21720. func (f *decFnInfo) fastpathDecMapFloat32Int64R(rv reflect.Value) {
  21721. if rv.CanAddr() {
  21722. vp := rv.Addr().Interface().(*map[float32]int64)
  21723. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  21724. if changed {
  21725. *vp = v
  21726. }
  21727. } else {
  21728. v := rv.Interface().(map[float32]int64)
  21729. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, f.d)
  21730. }
  21731. }
  21732. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, checkNil bool, d *Decoder) {
  21733. v, changed := f.DecMapFloat32Int64V(*vp, checkNil, true, d)
  21734. if changed {
  21735. *vp = v
  21736. }
  21737. }
  21738. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, checkNil bool, canChange bool,
  21739. d *Decoder) (_ map[float32]int64, changed bool) {
  21740. dd := d.d
  21741. cr := d.cr
  21742. if checkNil && dd.TryDecodeAsNil() {
  21743. if v != nil {
  21744. changed = true
  21745. }
  21746. return nil, changed
  21747. }
  21748. containerLen := dd.ReadMapStart()
  21749. if canChange && v == nil {
  21750. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21751. v = make(map[float32]int64, xlen)
  21752. changed = true
  21753. }
  21754. var mk float32
  21755. var mv int64
  21756. if containerLen > 0 {
  21757. for j := 0; j < containerLen; j++ {
  21758. if cr != nil {
  21759. cr.sendContainerState(containerMapKey)
  21760. }
  21761. mk = float32(dd.DecodeFloat(true))
  21762. if cr != nil {
  21763. cr.sendContainerState(containerMapValue)
  21764. }
  21765. mv = dd.DecodeInt(64)
  21766. if v != nil {
  21767. v[mk] = mv
  21768. }
  21769. }
  21770. } else if containerLen < 0 {
  21771. for j := 0; !dd.CheckBreak(); j++ {
  21772. if cr != nil {
  21773. cr.sendContainerState(containerMapKey)
  21774. }
  21775. mk = float32(dd.DecodeFloat(true))
  21776. if cr != nil {
  21777. cr.sendContainerState(containerMapValue)
  21778. }
  21779. mv = dd.DecodeInt(64)
  21780. if v != nil {
  21781. v[mk] = mv
  21782. }
  21783. }
  21784. }
  21785. if cr != nil {
  21786. cr.sendContainerState(containerMapEnd)
  21787. }
  21788. return v, changed
  21789. }
  21790. func (f *decFnInfo) fastpathDecMapFloat32Float32R(rv reflect.Value) {
  21791. if rv.CanAddr() {
  21792. vp := rv.Addr().Interface().(*map[float32]float32)
  21793. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  21794. if changed {
  21795. *vp = v
  21796. }
  21797. } else {
  21798. v := rv.Interface().(map[float32]float32)
  21799. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, f.d)
  21800. }
  21801. }
  21802. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, checkNil bool, d *Decoder) {
  21803. v, changed := f.DecMapFloat32Float32V(*vp, checkNil, true, d)
  21804. if changed {
  21805. *vp = v
  21806. }
  21807. }
  21808. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, checkNil bool, canChange bool,
  21809. d *Decoder) (_ map[float32]float32, changed bool) {
  21810. dd := d.d
  21811. cr := d.cr
  21812. if checkNil && dd.TryDecodeAsNil() {
  21813. if v != nil {
  21814. changed = true
  21815. }
  21816. return nil, changed
  21817. }
  21818. containerLen := dd.ReadMapStart()
  21819. if canChange && v == nil {
  21820. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21821. v = make(map[float32]float32, xlen)
  21822. changed = true
  21823. }
  21824. var mk float32
  21825. var mv float32
  21826. if containerLen > 0 {
  21827. for j := 0; j < containerLen; j++ {
  21828. if cr != nil {
  21829. cr.sendContainerState(containerMapKey)
  21830. }
  21831. mk = float32(dd.DecodeFloat(true))
  21832. if cr != nil {
  21833. cr.sendContainerState(containerMapValue)
  21834. }
  21835. mv = float32(dd.DecodeFloat(true))
  21836. if v != nil {
  21837. v[mk] = mv
  21838. }
  21839. }
  21840. } else if containerLen < 0 {
  21841. for j := 0; !dd.CheckBreak(); j++ {
  21842. if cr != nil {
  21843. cr.sendContainerState(containerMapKey)
  21844. }
  21845. mk = float32(dd.DecodeFloat(true))
  21846. if cr != nil {
  21847. cr.sendContainerState(containerMapValue)
  21848. }
  21849. mv = float32(dd.DecodeFloat(true))
  21850. if v != nil {
  21851. v[mk] = mv
  21852. }
  21853. }
  21854. }
  21855. if cr != nil {
  21856. cr.sendContainerState(containerMapEnd)
  21857. }
  21858. return v, changed
  21859. }
  21860. func (f *decFnInfo) fastpathDecMapFloat32Float64R(rv reflect.Value) {
  21861. if rv.CanAddr() {
  21862. vp := rv.Addr().Interface().(*map[float32]float64)
  21863. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  21864. if changed {
  21865. *vp = v
  21866. }
  21867. } else {
  21868. v := rv.Interface().(map[float32]float64)
  21869. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, f.d)
  21870. }
  21871. }
  21872. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, checkNil bool, d *Decoder) {
  21873. v, changed := f.DecMapFloat32Float64V(*vp, checkNil, true, d)
  21874. if changed {
  21875. *vp = v
  21876. }
  21877. }
  21878. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, checkNil bool, canChange bool,
  21879. d *Decoder) (_ map[float32]float64, changed bool) {
  21880. dd := d.d
  21881. cr := d.cr
  21882. if checkNil && dd.TryDecodeAsNil() {
  21883. if v != nil {
  21884. changed = true
  21885. }
  21886. return nil, changed
  21887. }
  21888. containerLen := dd.ReadMapStart()
  21889. if canChange && v == nil {
  21890. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21891. v = make(map[float32]float64, xlen)
  21892. changed = true
  21893. }
  21894. var mk float32
  21895. var mv float64
  21896. if containerLen > 0 {
  21897. for j := 0; j < containerLen; j++ {
  21898. if cr != nil {
  21899. cr.sendContainerState(containerMapKey)
  21900. }
  21901. mk = float32(dd.DecodeFloat(true))
  21902. if cr != nil {
  21903. cr.sendContainerState(containerMapValue)
  21904. }
  21905. mv = dd.DecodeFloat(false)
  21906. if v != nil {
  21907. v[mk] = mv
  21908. }
  21909. }
  21910. } else if containerLen < 0 {
  21911. for j := 0; !dd.CheckBreak(); j++ {
  21912. if cr != nil {
  21913. cr.sendContainerState(containerMapKey)
  21914. }
  21915. mk = float32(dd.DecodeFloat(true))
  21916. if cr != nil {
  21917. cr.sendContainerState(containerMapValue)
  21918. }
  21919. mv = dd.DecodeFloat(false)
  21920. if v != nil {
  21921. v[mk] = mv
  21922. }
  21923. }
  21924. }
  21925. if cr != nil {
  21926. cr.sendContainerState(containerMapEnd)
  21927. }
  21928. return v, changed
  21929. }
  21930. func (f *decFnInfo) fastpathDecMapFloat32BoolR(rv reflect.Value) {
  21931. if rv.CanAddr() {
  21932. vp := rv.Addr().Interface().(*map[float32]bool)
  21933. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  21934. if changed {
  21935. *vp = v
  21936. }
  21937. } else {
  21938. v := rv.Interface().(map[float32]bool)
  21939. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, f.d)
  21940. }
  21941. }
  21942. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, checkNil bool, d *Decoder) {
  21943. v, changed := f.DecMapFloat32BoolV(*vp, checkNil, true, d)
  21944. if changed {
  21945. *vp = v
  21946. }
  21947. }
  21948. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, checkNil bool, canChange bool,
  21949. d *Decoder) (_ map[float32]bool, changed bool) {
  21950. dd := d.d
  21951. cr := d.cr
  21952. if checkNil && dd.TryDecodeAsNil() {
  21953. if v != nil {
  21954. changed = true
  21955. }
  21956. return nil, changed
  21957. }
  21958. containerLen := dd.ReadMapStart()
  21959. if canChange && v == nil {
  21960. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21961. v = make(map[float32]bool, xlen)
  21962. changed = true
  21963. }
  21964. var mk float32
  21965. var mv bool
  21966. if containerLen > 0 {
  21967. for j := 0; j < containerLen; j++ {
  21968. if cr != nil {
  21969. cr.sendContainerState(containerMapKey)
  21970. }
  21971. mk = float32(dd.DecodeFloat(true))
  21972. if cr != nil {
  21973. cr.sendContainerState(containerMapValue)
  21974. }
  21975. mv = dd.DecodeBool()
  21976. if v != nil {
  21977. v[mk] = mv
  21978. }
  21979. }
  21980. } else if containerLen < 0 {
  21981. for j := 0; !dd.CheckBreak(); j++ {
  21982. if cr != nil {
  21983. cr.sendContainerState(containerMapKey)
  21984. }
  21985. mk = float32(dd.DecodeFloat(true))
  21986. if cr != nil {
  21987. cr.sendContainerState(containerMapValue)
  21988. }
  21989. mv = dd.DecodeBool()
  21990. if v != nil {
  21991. v[mk] = mv
  21992. }
  21993. }
  21994. }
  21995. if cr != nil {
  21996. cr.sendContainerState(containerMapEnd)
  21997. }
  21998. return v, changed
  21999. }
  22000. func (f *decFnInfo) fastpathDecMapFloat64IntfR(rv reflect.Value) {
  22001. if rv.CanAddr() {
  22002. vp := rv.Addr().Interface().(*map[float64]interface{})
  22003. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  22004. if changed {
  22005. *vp = v
  22006. }
  22007. } else {
  22008. v := rv.Interface().(map[float64]interface{})
  22009. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, f.d)
  22010. }
  22011. }
  22012. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, checkNil bool, d *Decoder) {
  22013. v, changed := f.DecMapFloat64IntfV(*vp, checkNil, true, d)
  22014. if changed {
  22015. *vp = v
  22016. }
  22017. }
  22018. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, checkNil bool, canChange bool,
  22019. d *Decoder) (_ map[float64]interface{}, changed bool) {
  22020. dd := d.d
  22021. cr := d.cr
  22022. if checkNil && dd.TryDecodeAsNil() {
  22023. if v != nil {
  22024. changed = true
  22025. }
  22026. return nil, changed
  22027. }
  22028. containerLen := dd.ReadMapStart()
  22029. if canChange && v == nil {
  22030. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22031. v = make(map[float64]interface{}, xlen)
  22032. changed = true
  22033. }
  22034. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  22035. var mk float64
  22036. var mv interface{}
  22037. if containerLen > 0 {
  22038. for j := 0; j < containerLen; j++ {
  22039. if cr != nil {
  22040. cr.sendContainerState(containerMapKey)
  22041. }
  22042. mk = dd.DecodeFloat(false)
  22043. if cr != nil {
  22044. cr.sendContainerState(containerMapValue)
  22045. }
  22046. if mapGet {
  22047. mv = v[mk]
  22048. } else {
  22049. mv = nil
  22050. }
  22051. d.decode(&mv)
  22052. if v != nil {
  22053. v[mk] = mv
  22054. }
  22055. }
  22056. } else if containerLen < 0 {
  22057. for j := 0; !dd.CheckBreak(); j++ {
  22058. if cr != nil {
  22059. cr.sendContainerState(containerMapKey)
  22060. }
  22061. mk = dd.DecodeFloat(false)
  22062. if cr != nil {
  22063. cr.sendContainerState(containerMapValue)
  22064. }
  22065. if mapGet {
  22066. mv = v[mk]
  22067. } else {
  22068. mv = nil
  22069. }
  22070. d.decode(&mv)
  22071. if v != nil {
  22072. v[mk] = mv
  22073. }
  22074. }
  22075. }
  22076. if cr != nil {
  22077. cr.sendContainerState(containerMapEnd)
  22078. }
  22079. return v, changed
  22080. }
  22081. func (f *decFnInfo) fastpathDecMapFloat64StringR(rv reflect.Value) {
  22082. if rv.CanAddr() {
  22083. vp := rv.Addr().Interface().(*map[float64]string)
  22084. v, changed := fastpathTV.DecMapFloat64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  22085. if changed {
  22086. *vp = v
  22087. }
  22088. } else {
  22089. v := rv.Interface().(map[float64]string)
  22090. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, f.d)
  22091. }
  22092. }
  22093. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, checkNil bool, d *Decoder) {
  22094. v, changed := f.DecMapFloat64StringV(*vp, checkNil, true, d)
  22095. if changed {
  22096. *vp = v
  22097. }
  22098. }
  22099. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, checkNil bool, canChange bool,
  22100. d *Decoder) (_ map[float64]string, changed bool) {
  22101. dd := d.d
  22102. cr := d.cr
  22103. if checkNil && dd.TryDecodeAsNil() {
  22104. if v != nil {
  22105. changed = true
  22106. }
  22107. return nil, changed
  22108. }
  22109. containerLen := dd.ReadMapStart()
  22110. if canChange && v == nil {
  22111. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22112. v = make(map[float64]string, xlen)
  22113. changed = true
  22114. }
  22115. var mk float64
  22116. var mv string
  22117. if containerLen > 0 {
  22118. for j := 0; j < containerLen; j++ {
  22119. if cr != nil {
  22120. cr.sendContainerState(containerMapKey)
  22121. }
  22122. mk = dd.DecodeFloat(false)
  22123. if cr != nil {
  22124. cr.sendContainerState(containerMapValue)
  22125. }
  22126. mv = dd.DecodeString()
  22127. if v != nil {
  22128. v[mk] = mv
  22129. }
  22130. }
  22131. } else if containerLen < 0 {
  22132. for j := 0; !dd.CheckBreak(); j++ {
  22133. if cr != nil {
  22134. cr.sendContainerState(containerMapKey)
  22135. }
  22136. mk = dd.DecodeFloat(false)
  22137. if cr != nil {
  22138. cr.sendContainerState(containerMapValue)
  22139. }
  22140. mv = dd.DecodeString()
  22141. if v != nil {
  22142. v[mk] = mv
  22143. }
  22144. }
  22145. }
  22146. if cr != nil {
  22147. cr.sendContainerState(containerMapEnd)
  22148. }
  22149. return v, changed
  22150. }
  22151. func (f *decFnInfo) fastpathDecMapFloat64UintR(rv reflect.Value) {
  22152. if rv.CanAddr() {
  22153. vp := rv.Addr().Interface().(*map[float64]uint)
  22154. v, changed := fastpathTV.DecMapFloat64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  22155. if changed {
  22156. *vp = v
  22157. }
  22158. } else {
  22159. v := rv.Interface().(map[float64]uint)
  22160. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, f.d)
  22161. }
  22162. }
  22163. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, checkNil bool, d *Decoder) {
  22164. v, changed := f.DecMapFloat64UintV(*vp, checkNil, true, d)
  22165. if changed {
  22166. *vp = v
  22167. }
  22168. }
  22169. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, checkNil bool, canChange bool,
  22170. d *Decoder) (_ map[float64]uint, changed bool) {
  22171. dd := d.d
  22172. cr := d.cr
  22173. if checkNil && dd.TryDecodeAsNil() {
  22174. if v != nil {
  22175. changed = true
  22176. }
  22177. return nil, changed
  22178. }
  22179. containerLen := dd.ReadMapStart()
  22180. if canChange && v == nil {
  22181. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22182. v = make(map[float64]uint, xlen)
  22183. changed = true
  22184. }
  22185. var mk float64
  22186. var mv uint
  22187. if containerLen > 0 {
  22188. for j := 0; j < containerLen; j++ {
  22189. if cr != nil {
  22190. cr.sendContainerState(containerMapKey)
  22191. }
  22192. mk = dd.DecodeFloat(false)
  22193. if cr != nil {
  22194. cr.sendContainerState(containerMapValue)
  22195. }
  22196. mv = uint(dd.DecodeUint(uintBitsize))
  22197. if v != nil {
  22198. v[mk] = mv
  22199. }
  22200. }
  22201. } else if containerLen < 0 {
  22202. for j := 0; !dd.CheckBreak(); j++ {
  22203. if cr != nil {
  22204. cr.sendContainerState(containerMapKey)
  22205. }
  22206. mk = dd.DecodeFloat(false)
  22207. if cr != nil {
  22208. cr.sendContainerState(containerMapValue)
  22209. }
  22210. mv = uint(dd.DecodeUint(uintBitsize))
  22211. if v != nil {
  22212. v[mk] = mv
  22213. }
  22214. }
  22215. }
  22216. if cr != nil {
  22217. cr.sendContainerState(containerMapEnd)
  22218. }
  22219. return v, changed
  22220. }
  22221. func (f *decFnInfo) fastpathDecMapFloat64Uint8R(rv reflect.Value) {
  22222. if rv.CanAddr() {
  22223. vp := rv.Addr().Interface().(*map[float64]uint8)
  22224. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  22225. if changed {
  22226. *vp = v
  22227. }
  22228. } else {
  22229. v := rv.Interface().(map[float64]uint8)
  22230. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  22231. }
  22232. }
  22233. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, checkNil bool, d *Decoder) {
  22234. v, changed := f.DecMapFloat64Uint8V(*vp, checkNil, true, d)
  22235. if changed {
  22236. *vp = v
  22237. }
  22238. }
  22239. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, checkNil bool, canChange bool,
  22240. d *Decoder) (_ map[float64]uint8, changed bool) {
  22241. dd := d.d
  22242. cr := d.cr
  22243. if checkNil && dd.TryDecodeAsNil() {
  22244. if v != nil {
  22245. changed = true
  22246. }
  22247. return nil, changed
  22248. }
  22249. containerLen := dd.ReadMapStart()
  22250. if canChange && v == nil {
  22251. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22252. v = make(map[float64]uint8, xlen)
  22253. changed = true
  22254. }
  22255. var mk float64
  22256. var mv uint8
  22257. if containerLen > 0 {
  22258. for j := 0; j < containerLen; j++ {
  22259. if cr != nil {
  22260. cr.sendContainerState(containerMapKey)
  22261. }
  22262. mk = dd.DecodeFloat(false)
  22263. if cr != nil {
  22264. cr.sendContainerState(containerMapValue)
  22265. }
  22266. mv = uint8(dd.DecodeUint(8))
  22267. if v != nil {
  22268. v[mk] = mv
  22269. }
  22270. }
  22271. } else if containerLen < 0 {
  22272. for j := 0; !dd.CheckBreak(); j++ {
  22273. if cr != nil {
  22274. cr.sendContainerState(containerMapKey)
  22275. }
  22276. mk = dd.DecodeFloat(false)
  22277. if cr != nil {
  22278. cr.sendContainerState(containerMapValue)
  22279. }
  22280. mv = uint8(dd.DecodeUint(8))
  22281. if v != nil {
  22282. v[mk] = mv
  22283. }
  22284. }
  22285. }
  22286. if cr != nil {
  22287. cr.sendContainerState(containerMapEnd)
  22288. }
  22289. return v, changed
  22290. }
  22291. func (f *decFnInfo) fastpathDecMapFloat64Uint16R(rv reflect.Value) {
  22292. if rv.CanAddr() {
  22293. vp := rv.Addr().Interface().(*map[float64]uint16)
  22294. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  22295. if changed {
  22296. *vp = v
  22297. }
  22298. } else {
  22299. v := rv.Interface().(map[float64]uint16)
  22300. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  22301. }
  22302. }
  22303. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, checkNil bool, d *Decoder) {
  22304. v, changed := f.DecMapFloat64Uint16V(*vp, checkNil, true, d)
  22305. if changed {
  22306. *vp = v
  22307. }
  22308. }
  22309. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, checkNil bool, canChange bool,
  22310. d *Decoder) (_ map[float64]uint16, changed bool) {
  22311. dd := d.d
  22312. cr := d.cr
  22313. if checkNil && dd.TryDecodeAsNil() {
  22314. if v != nil {
  22315. changed = true
  22316. }
  22317. return nil, changed
  22318. }
  22319. containerLen := dd.ReadMapStart()
  22320. if canChange && v == nil {
  22321. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22322. v = make(map[float64]uint16, xlen)
  22323. changed = true
  22324. }
  22325. var mk float64
  22326. var mv uint16
  22327. if containerLen > 0 {
  22328. for j := 0; j < containerLen; j++ {
  22329. if cr != nil {
  22330. cr.sendContainerState(containerMapKey)
  22331. }
  22332. mk = dd.DecodeFloat(false)
  22333. if cr != nil {
  22334. cr.sendContainerState(containerMapValue)
  22335. }
  22336. mv = uint16(dd.DecodeUint(16))
  22337. if v != nil {
  22338. v[mk] = mv
  22339. }
  22340. }
  22341. } else if containerLen < 0 {
  22342. for j := 0; !dd.CheckBreak(); j++ {
  22343. if cr != nil {
  22344. cr.sendContainerState(containerMapKey)
  22345. }
  22346. mk = dd.DecodeFloat(false)
  22347. if cr != nil {
  22348. cr.sendContainerState(containerMapValue)
  22349. }
  22350. mv = uint16(dd.DecodeUint(16))
  22351. if v != nil {
  22352. v[mk] = mv
  22353. }
  22354. }
  22355. }
  22356. if cr != nil {
  22357. cr.sendContainerState(containerMapEnd)
  22358. }
  22359. return v, changed
  22360. }
  22361. func (f *decFnInfo) fastpathDecMapFloat64Uint32R(rv reflect.Value) {
  22362. if rv.CanAddr() {
  22363. vp := rv.Addr().Interface().(*map[float64]uint32)
  22364. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  22365. if changed {
  22366. *vp = v
  22367. }
  22368. } else {
  22369. v := rv.Interface().(map[float64]uint32)
  22370. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  22371. }
  22372. }
  22373. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, checkNil bool, d *Decoder) {
  22374. v, changed := f.DecMapFloat64Uint32V(*vp, checkNil, true, d)
  22375. if changed {
  22376. *vp = v
  22377. }
  22378. }
  22379. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, checkNil bool, canChange bool,
  22380. d *Decoder) (_ map[float64]uint32, changed bool) {
  22381. dd := d.d
  22382. cr := d.cr
  22383. if checkNil && dd.TryDecodeAsNil() {
  22384. if v != nil {
  22385. changed = true
  22386. }
  22387. return nil, changed
  22388. }
  22389. containerLen := dd.ReadMapStart()
  22390. if canChange && v == nil {
  22391. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22392. v = make(map[float64]uint32, xlen)
  22393. changed = true
  22394. }
  22395. var mk float64
  22396. var mv uint32
  22397. if containerLen > 0 {
  22398. for j := 0; j < containerLen; j++ {
  22399. if cr != nil {
  22400. cr.sendContainerState(containerMapKey)
  22401. }
  22402. mk = dd.DecodeFloat(false)
  22403. if cr != nil {
  22404. cr.sendContainerState(containerMapValue)
  22405. }
  22406. mv = uint32(dd.DecodeUint(32))
  22407. if v != nil {
  22408. v[mk] = mv
  22409. }
  22410. }
  22411. } else if containerLen < 0 {
  22412. for j := 0; !dd.CheckBreak(); j++ {
  22413. if cr != nil {
  22414. cr.sendContainerState(containerMapKey)
  22415. }
  22416. mk = dd.DecodeFloat(false)
  22417. if cr != nil {
  22418. cr.sendContainerState(containerMapValue)
  22419. }
  22420. mv = uint32(dd.DecodeUint(32))
  22421. if v != nil {
  22422. v[mk] = mv
  22423. }
  22424. }
  22425. }
  22426. if cr != nil {
  22427. cr.sendContainerState(containerMapEnd)
  22428. }
  22429. return v, changed
  22430. }
  22431. func (f *decFnInfo) fastpathDecMapFloat64Uint64R(rv reflect.Value) {
  22432. if rv.CanAddr() {
  22433. vp := rv.Addr().Interface().(*map[float64]uint64)
  22434. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  22435. if changed {
  22436. *vp = v
  22437. }
  22438. } else {
  22439. v := rv.Interface().(map[float64]uint64)
  22440. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  22441. }
  22442. }
  22443. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, checkNil bool, d *Decoder) {
  22444. v, changed := f.DecMapFloat64Uint64V(*vp, checkNil, true, d)
  22445. if changed {
  22446. *vp = v
  22447. }
  22448. }
  22449. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, checkNil bool, canChange bool,
  22450. d *Decoder) (_ map[float64]uint64, changed bool) {
  22451. dd := d.d
  22452. cr := d.cr
  22453. if checkNil && dd.TryDecodeAsNil() {
  22454. if v != nil {
  22455. changed = true
  22456. }
  22457. return nil, changed
  22458. }
  22459. containerLen := dd.ReadMapStart()
  22460. if canChange && v == nil {
  22461. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22462. v = make(map[float64]uint64, xlen)
  22463. changed = true
  22464. }
  22465. var mk float64
  22466. var mv uint64
  22467. if containerLen > 0 {
  22468. for j := 0; j < containerLen; j++ {
  22469. if cr != nil {
  22470. cr.sendContainerState(containerMapKey)
  22471. }
  22472. mk = dd.DecodeFloat(false)
  22473. if cr != nil {
  22474. cr.sendContainerState(containerMapValue)
  22475. }
  22476. mv = dd.DecodeUint(64)
  22477. if v != nil {
  22478. v[mk] = mv
  22479. }
  22480. }
  22481. } else if containerLen < 0 {
  22482. for j := 0; !dd.CheckBreak(); j++ {
  22483. if cr != nil {
  22484. cr.sendContainerState(containerMapKey)
  22485. }
  22486. mk = dd.DecodeFloat(false)
  22487. if cr != nil {
  22488. cr.sendContainerState(containerMapValue)
  22489. }
  22490. mv = dd.DecodeUint(64)
  22491. if v != nil {
  22492. v[mk] = mv
  22493. }
  22494. }
  22495. }
  22496. if cr != nil {
  22497. cr.sendContainerState(containerMapEnd)
  22498. }
  22499. return v, changed
  22500. }
  22501. func (f *decFnInfo) fastpathDecMapFloat64UintptrR(rv reflect.Value) {
  22502. if rv.CanAddr() {
  22503. vp := rv.Addr().Interface().(*map[float64]uintptr)
  22504. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  22505. if changed {
  22506. *vp = v
  22507. }
  22508. } else {
  22509. v := rv.Interface().(map[float64]uintptr)
  22510. fastpathTV.DecMapFloat64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  22511. }
  22512. }
  22513. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, checkNil bool, d *Decoder) {
  22514. v, changed := f.DecMapFloat64UintptrV(*vp, checkNil, true, d)
  22515. if changed {
  22516. *vp = v
  22517. }
  22518. }
  22519. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, checkNil bool, canChange bool,
  22520. d *Decoder) (_ map[float64]uintptr, changed bool) {
  22521. dd := d.d
  22522. cr := d.cr
  22523. if checkNil && dd.TryDecodeAsNil() {
  22524. if v != nil {
  22525. changed = true
  22526. }
  22527. return nil, changed
  22528. }
  22529. containerLen := dd.ReadMapStart()
  22530. if canChange && v == nil {
  22531. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22532. v = make(map[float64]uintptr, xlen)
  22533. changed = true
  22534. }
  22535. var mk float64
  22536. var mv uintptr
  22537. if containerLen > 0 {
  22538. for j := 0; j < containerLen; j++ {
  22539. if cr != nil {
  22540. cr.sendContainerState(containerMapKey)
  22541. }
  22542. mk = dd.DecodeFloat(false)
  22543. if cr != nil {
  22544. cr.sendContainerState(containerMapValue)
  22545. }
  22546. mv = uintptr(dd.DecodeUint(uintBitsize))
  22547. if v != nil {
  22548. v[mk] = mv
  22549. }
  22550. }
  22551. } else if containerLen < 0 {
  22552. for j := 0; !dd.CheckBreak(); j++ {
  22553. if cr != nil {
  22554. cr.sendContainerState(containerMapKey)
  22555. }
  22556. mk = dd.DecodeFloat(false)
  22557. if cr != nil {
  22558. cr.sendContainerState(containerMapValue)
  22559. }
  22560. mv = uintptr(dd.DecodeUint(uintBitsize))
  22561. if v != nil {
  22562. v[mk] = mv
  22563. }
  22564. }
  22565. }
  22566. if cr != nil {
  22567. cr.sendContainerState(containerMapEnd)
  22568. }
  22569. return v, changed
  22570. }
  22571. func (f *decFnInfo) fastpathDecMapFloat64IntR(rv reflect.Value) {
  22572. if rv.CanAddr() {
  22573. vp := rv.Addr().Interface().(*map[float64]int)
  22574. v, changed := fastpathTV.DecMapFloat64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  22575. if changed {
  22576. *vp = v
  22577. }
  22578. } else {
  22579. v := rv.Interface().(map[float64]int)
  22580. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, f.d)
  22581. }
  22582. }
  22583. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, checkNil bool, d *Decoder) {
  22584. v, changed := f.DecMapFloat64IntV(*vp, checkNil, true, d)
  22585. if changed {
  22586. *vp = v
  22587. }
  22588. }
  22589. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, checkNil bool, canChange bool,
  22590. d *Decoder) (_ map[float64]int, changed bool) {
  22591. dd := d.d
  22592. cr := d.cr
  22593. if checkNil && dd.TryDecodeAsNil() {
  22594. if v != nil {
  22595. changed = true
  22596. }
  22597. return nil, changed
  22598. }
  22599. containerLen := dd.ReadMapStart()
  22600. if canChange && v == nil {
  22601. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22602. v = make(map[float64]int, xlen)
  22603. changed = true
  22604. }
  22605. var mk float64
  22606. var mv int
  22607. if containerLen > 0 {
  22608. for j := 0; j < containerLen; j++ {
  22609. if cr != nil {
  22610. cr.sendContainerState(containerMapKey)
  22611. }
  22612. mk = dd.DecodeFloat(false)
  22613. if cr != nil {
  22614. cr.sendContainerState(containerMapValue)
  22615. }
  22616. mv = int(dd.DecodeInt(intBitsize))
  22617. if v != nil {
  22618. v[mk] = mv
  22619. }
  22620. }
  22621. } else if containerLen < 0 {
  22622. for j := 0; !dd.CheckBreak(); j++ {
  22623. if cr != nil {
  22624. cr.sendContainerState(containerMapKey)
  22625. }
  22626. mk = dd.DecodeFloat(false)
  22627. if cr != nil {
  22628. cr.sendContainerState(containerMapValue)
  22629. }
  22630. mv = int(dd.DecodeInt(intBitsize))
  22631. if v != nil {
  22632. v[mk] = mv
  22633. }
  22634. }
  22635. }
  22636. if cr != nil {
  22637. cr.sendContainerState(containerMapEnd)
  22638. }
  22639. return v, changed
  22640. }
  22641. func (f *decFnInfo) fastpathDecMapFloat64Int8R(rv reflect.Value) {
  22642. if rv.CanAddr() {
  22643. vp := rv.Addr().Interface().(*map[float64]int8)
  22644. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  22645. if changed {
  22646. *vp = v
  22647. }
  22648. } else {
  22649. v := rv.Interface().(map[float64]int8)
  22650. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, f.d)
  22651. }
  22652. }
  22653. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, checkNil bool, d *Decoder) {
  22654. v, changed := f.DecMapFloat64Int8V(*vp, checkNil, true, d)
  22655. if changed {
  22656. *vp = v
  22657. }
  22658. }
  22659. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, checkNil bool, canChange bool,
  22660. d *Decoder) (_ map[float64]int8, changed bool) {
  22661. dd := d.d
  22662. cr := d.cr
  22663. if checkNil && dd.TryDecodeAsNil() {
  22664. if v != nil {
  22665. changed = true
  22666. }
  22667. return nil, changed
  22668. }
  22669. containerLen := dd.ReadMapStart()
  22670. if canChange && v == nil {
  22671. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22672. v = make(map[float64]int8, xlen)
  22673. changed = true
  22674. }
  22675. var mk float64
  22676. var mv int8
  22677. if containerLen > 0 {
  22678. for j := 0; j < containerLen; j++ {
  22679. if cr != nil {
  22680. cr.sendContainerState(containerMapKey)
  22681. }
  22682. mk = dd.DecodeFloat(false)
  22683. if cr != nil {
  22684. cr.sendContainerState(containerMapValue)
  22685. }
  22686. mv = int8(dd.DecodeInt(8))
  22687. if v != nil {
  22688. v[mk] = mv
  22689. }
  22690. }
  22691. } else if containerLen < 0 {
  22692. for j := 0; !dd.CheckBreak(); j++ {
  22693. if cr != nil {
  22694. cr.sendContainerState(containerMapKey)
  22695. }
  22696. mk = dd.DecodeFloat(false)
  22697. if cr != nil {
  22698. cr.sendContainerState(containerMapValue)
  22699. }
  22700. mv = int8(dd.DecodeInt(8))
  22701. if v != nil {
  22702. v[mk] = mv
  22703. }
  22704. }
  22705. }
  22706. if cr != nil {
  22707. cr.sendContainerState(containerMapEnd)
  22708. }
  22709. return v, changed
  22710. }
  22711. func (f *decFnInfo) fastpathDecMapFloat64Int16R(rv reflect.Value) {
  22712. if rv.CanAddr() {
  22713. vp := rv.Addr().Interface().(*map[float64]int16)
  22714. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  22715. if changed {
  22716. *vp = v
  22717. }
  22718. } else {
  22719. v := rv.Interface().(map[float64]int16)
  22720. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, f.d)
  22721. }
  22722. }
  22723. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, checkNil bool, d *Decoder) {
  22724. v, changed := f.DecMapFloat64Int16V(*vp, checkNil, true, d)
  22725. if changed {
  22726. *vp = v
  22727. }
  22728. }
  22729. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, checkNil bool, canChange bool,
  22730. d *Decoder) (_ map[float64]int16, changed bool) {
  22731. dd := d.d
  22732. cr := d.cr
  22733. if checkNil && dd.TryDecodeAsNil() {
  22734. if v != nil {
  22735. changed = true
  22736. }
  22737. return nil, changed
  22738. }
  22739. containerLen := dd.ReadMapStart()
  22740. if canChange && v == nil {
  22741. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22742. v = make(map[float64]int16, xlen)
  22743. changed = true
  22744. }
  22745. var mk float64
  22746. var mv int16
  22747. if containerLen > 0 {
  22748. for j := 0; j < containerLen; j++ {
  22749. if cr != nil {
  22750. cr.sendContainerState(containerMapKey)
  22751. }
  22752. mk = dd.DecodeFloat(false)
  22753. if cr != nil {
  22754. cr.sendContainerState(containerMapValue)
  22755. }
  22756. mv = int16(dd.DecodeInt(16))
  22757. if v != nil {
  22758. v[mk] = mv
  22759. }
  22760. }
  22761. } else if containerLen < 0 {
  22762. for j := 0; !dd.CheckBreak(); j++ {
  22763. if cr != nil {
  22764. cr.sendContainerState(containerMapKey)
  22765. }
  22766. mk = dd.DecodeFloat(false)
  22767. if cr != nil {
  22768. cr.sendContainerState(containerMapValue)
  22769. }
  22770. mv = int16(dd.DecodeInt(16))
  22771. if v != nil {
  22772. v[mk] = mv
  22773. }
  22774. }
  22775. }
  22776. if cr != nil {
  22777. cr.sendContainerState(containerMapEnd)
  22778. }
  22779. return v, changed
  22780. }
  22781. func (f *decFnInfo) fastpathDecMapFloat64Int32R(rv reflect.Value) {
  22782. if rv.CanAddr() {
  22783. vp := rv.Addr().Interface().(*map[float64]int32)
  22784. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  22785. if changed {
  22786. *vp = v
  22787. }
  22788. } else {
  22789. v := rv.Interface().(map[float64]int32)
  22790. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, f.d)
  22791. }
  22792. }
  22793. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, checkNil bool, d *Decoder) {
  22794. v, changed := f.DecMapFloat64Int32V(*vp, checkNil, true, d)
  22795. if changed {
  22796. *vp = v
  22797. }
  22798. }
  22799. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, checkNil bool, canChange bool,
  22800. d *Decoder) (_ map[float64]int32, changed bool) {
  22801. dd := d.d
  22802. cr := d.cr
  22803. if checkNil && dd.TryDecodeAsNil() {
  22804. if v != nil {
  22805. changed = true
  22806. }
  22807. return nil, changed
  22808. }
  22809. containerLen := dd.ReadMapStart()
  22810. if canChange && v == nil {
  22811. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22812. v = make(map[float64]int32, xlen)
  22813. changed = true
  22814. }
  22815. var mk float64
  22816. var mv int32
  22817. if containerLen > 0 {
  22818. for j := 0; j < containerLen; j++ {
  22819. if cr != nil {
  22820. cr.sendContainerState(containerMapKey)
  22821. }
  22822. mk = dd.DecodeFloat(false)
  22823. if cr != nil {
  22824. cr.sendContainerState(containerMapValue)
  22825. }
  22826. mv = int32(dd.DecodeInt(32))
  22827. if v != nil {
  22828. v[mk] = mv
  22829. }
  22830. }
  22831. } else if containerLen < 0 {
  22832. for j := 0; !dd.CheckBreak(); j++ {
  22833. if cr != nil {
  22834. cr.sendContainerState(containerMapKey)
  22835. }
  22836. mk = dd.DecodeFloat(false)
  22837. if cr != nil {
  22838. cr.sendContainerState(containerMapValue)
  22839. }
  22840. mv = int32(dd.DecodeInt(32))
  22841. if v != nil {
  22842. v[mk] = mv
  22843. }
  22844. }
  22845. }
  22846. if cr != nil {
  22847. cr.sendContainerState(containerMapEnd)
  22848. }
  22849. return v, changed
  22850. }
  22851. func (f *decFnInfo) fastpathDecMapFloat64Int64R(rv reflect.Value) {
  22852. if rv.CanAddr() {
  22853. vp := rv.Addr().Interface().(*map[float64]int64)
  22854. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  22855. if changed {
  22856. *vp = v
  22857. }
  22858. } else {
  22859. v := rv.Interface().(map[float64]int64)
  22860. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, f.d)
  22861. }
  22862. }
  22863. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, checkNil bool, d *Decoder) {
  22864. v, changed := f.DecMapFloat64Int64V(*vp, checkNil, true, d)
  22865. if changed {
  22866. *vp = v
  22867. }
  22868. }
  22869. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, checkNil bool, canChange bool,
  22870. d *Decoder) (_ map[float64]int64, changed bool) {
  22871. dd := d.d
  22872. cr := d.cr
  22873. if checkNil && dd.TryDecodeAsNil() {
  22874. if v != nil {
  22875. changed = true
  22876. }
  22877. return nil, changed
  22878. }
  22879. containerLen := dd.ReadMapStart()
  22880. if canChange && v == nil {
  22881. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22882. v = make(map[float64]int64, xlen)
  22883. changed = true
  22884. }
  22885. var mk float64
  22886. var mv int64
  22887. if containerLen > 0 {
  22888. for j := 0; j < containerLen; j++ {
  22889. if cr != nil {
  22890. cr.sendContainerState(containerMapKey)
  22891. }
  22892. mk = dd.DecodeFloat(false)
  22893. if cr != nil {
  22894. cr.sendContainerState(containerMapValue)
  22895. }
  22896. mv = dd.DecodeInt(64)
  22897. if v != nil {
  22898. v[mk] = mv
  22899. }
  22900. }
  22901. } else if containerLen < 0 {
  22902. for j := 0; !dd.CheckBreak(); j++ {
  22903. if cr != nil {
  22904. cr.sendContainerState(containerMapKey)
  22905. }
  22906. mk = dd.DecodeFloat(false)
  22907. if cr != nil {
  22908. cr.sendContainerState(containerMapValue)
  22909. }
  22910. mv = dd.DecodeInt(64)
  22911. if v != nil {
  22912. v[mk] = mv
  22913. }
  22914. }
  22915. }
  22916. if cr != nil {
  22917. cr.sendContainerState(containerMapEnd)
  22918. }
  22919. return v, changed
  22920. }
  22921. func (f *decFnInfo) fastpathDecMapFloat64Float32R(rv reflect.Value) {
  22922. if rv.CanAddr() {
  22923. vp := rv.Addr().Interface().(*map[float64]float32)
  22924. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  22925. if changed {
  22926. *vp = v
  22927. }
  22928. } else {
  22929. v := rv.Interface().(map[float64]float32)
  22930. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, f.d)
  22931. }
  22932. }
  22933. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, checkNil bool, d *Decoder) {
  22934. v, changed := f.DecMapFloat64Float32V(*vp, checkNil, true, d)
  22935. if changed {
  22936. *vp = v
  22937. }
  22938. }
  22939. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, checkNil bool, canChange bool,
  22940. d *Decoder) (_ map[float64]float32, changed bool) {
  22941. dd := d.d
  22942. cr := d.cr
  22943. if checkNil && dd.TryDecodeAsNil() {
  22944. if v != nil {
  22945. changed = true
  22946. }
  22947. return nil, changed
  22948. }
  22949. containerLen := dd.ReadMapStart()
  22950. if canChange && v == nil {
  22951. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22952. v = make(map[float64]float32, xlen)
  22953. changed = true
  22954. }
  22955. var mk float64
  22956. var mv float32
  22957. if containerLen > 0 {
  22958. for j := 0; j < containerLen; j++ {
  22959. if cr != nil {
  22960. cr.sendContainerState(containerMapKey)
  22961. }
  22962. mk = dd.DecodeFloat(false)
  22963. if cr != nil {
  22964. cr.sendContainerState(containerMapValue)
  22965. }
  22966. mv = float32(dd.DecodeFloat(true))
  22967. if v != nil {
  22968. v[mk] = mv
  22969. }
  22970. }
  22971. } else if containerLen < 0 {
  22972. for j := 0; !dd.CheckBreak(); j++ {
  22973. if cr != nil {
  22974. cr.sendContainerState(containerMapKey)
  22975. }
  22976. mk = dd.DecodeFloat(false)
  22977. if cr != nil {
  22978. cr.sendContainerState(containerMapValue)
  22979. }
  22980. mv = float32(dd.DecodeFloat(true))
  22981. if v != nil {
  22982. v[mk] = mv
  22983. }
  22984. }
  22985. }
  22986. if cr != nil {
  22987. cr.sendContainerState(containerMapEnd)
  22988. }
  22989. return v, changed
  22990. }
  22991. func (f *decFnInfo) fastpathDecMapFloat64Float64R(rv reflect.Value) {
  22992. if rv.CanAddr() {
  22993. vp := rv.Addr().Interface().(*map[float64]float64)
  22994. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  22995. if changed {
  22996. *vp = v
  22997. }
  22998. } else {
  22999. v := rv.Interface().(map[float64]float64)
  23000. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, f.d)
  23001. }
  23002. }
  23003. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, checkNil bool, d *Decoder) {
  23004. v, changed := f.DecMapFloat64Float64V(*vp, checkNil, true, d)
  23005. if changed {
  23006. *vp = v
  23007. }
  23008. }
  23009. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, checkNil bool, canChange bool,
  23010. d *Decoder) (_ map[float64]float64, changed bool) {
  23011. dd := d.d
  23012. cr := d.cr
  23013. if checkNil && dd.TryDecodeAsNil() {
  23014. if v != nil {
  23015. changed = true
  23016. }
  23017. return nil, changed
  23018. }
  23019. containerLen := dd.ReadMapStart()
  23020. if canChange && v == nil {
  23021. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23022. v = make(map[float64]float64, xlen)
  23023. changed = true
  23024. }
  23025. var mk float64
  23026. var mv float64
  23027. if containerLen > 0 {
  23028. for j := 0; j < containerLen; j++ {
  23029. if cr != nil {
  23030. cr.sendContainerState(containerMapKey)
  23031. }
  23032. mk = dd.DecodeFloat(false)
  23033. if cr != nil {
  23034. cr.sendContainerState(containerMapValue)
  23035. }
  23036. mv = dd.DecodeFloat(false)
  23037. if v != nil {
  23038. v[mk] = mv
  23039. }
  23040. }
  23041. } else if containerLen < 0 {
  23042. for j := 0; !dd.CheckBreak(); j++ {
  23043. if cr != nil {
  23044. cr.sendContainerState(containerMapKey)
  23045. }
  23046. mk = dd.DecodeFloat(false)
  23047. if cr != nil {
  23048. cr.sendContainerState(containerMapValue)
  23049. }
  23050. mv = dd.DecodeFloat(false)
  23051. if v != nil {
  23052. v[mk] = mv
  23053. }
  23054. }
  23055. }
  23056. if cr != nil {
  23057. cr.sendContainerState(containerMapEnd)
  23058. }
  23059. return v, changed
  23060. }
  23061. func (f *decFnInfo) fastpathDecMapFloat64BoolR(rv reflect.Value) {
  23062. if rv.CanAddr() {
  23063. vp := rv.Addr().Interface().(*map[float64]bool)
  23064. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  23065. if changed {
  23066. *vp = v
  23067. }
  23068. } else {
  23069. v := rv.Interface().(map[float64]bool)
  23070. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, f.d)
  23071. }
  23072. }
  23073. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, checkNil bool, d *Decoder) {
  23074. v, changed := f.DecMapFloat64BoolV(*vp, checkNil, true, d)
  23075. if changed {
  23076. *vp = v
  23077. }
  23078. }
  23079. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, checkNil bool, canChange bool,
  23080. d *Decoder) (_ map[float64]bool, changed bool) {
  23081. dd := d.d
  23082. cr := d.cr
  23083. if checkNil && dd.TryDecodeAsNil() {
  23084. if v != nil {
  23085. changed = true
  23086. }
  23087. return nil, changed
  23088. }
  23089. containerLen := dd.ReadMapStart()
  23090. if canChange && v == nil {
  23091. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23092. v = make(map[float64]bool, xlen)
  23093. changed = true
  23094. }
  23095. var mk float64
  23096. var mv bool
  23097. if containerLen > 0 {
  23098. for j := 0; j < containerLen; j++ {
  23099. if cr != nil {
  23100. cr.sendContainerState(containerMapKey)
  23101. }
  23102. mk = dd.DecodeFloat(false)
  23103. if cr != nil {
  23104. cr.sendContainerState(containerMapValue)
  23105. }
  23106. mv = dd.DecodeBool()
  23107. if v != nil {
  23108. v[mk] = mv
  23109. }
  23110. }
  23111. } else if containerLen < 0 {
  23112. for j := 0; !dd.CheckBreak(); j++ {
  23113. if cr != nil {
  23114. cr.sendContainerState(containerMapKey)
  23115. }
  23116. mk = dd.DecodeFloat(false)
  23117. if cr != nil {
  23118. cr.sendContainerState(containerMapValue)
  23119. }
  23120. mv = dd.DecodeBool()
  23121. if v != nil {
  23122. v[mk] = mv
  23123. }
  23124. }
  23125. }
  23126. if cr != nil {
  23127. cr.sendContainerState(containerMapEnd)
  23128. }
  23129. return v, changed
  23130. }
  23131. func (f *decFnInfo) fastpathDecMapUintIntfR(rv reflect.Value) {
  23132. if rv.CanAddr() {
  23133. vp := rv.Addr().Interface().(*map[uint]interface{})
  23134. v, changed := fastpathTV.DecMapUintIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  23135. if changed {
  23136. *vp = v
  23137. }
  23138. } else {
  23139. v := rv.Interface().(map[uint]interface{})
  23140. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, f.d)
  23141. }
  23142. }
  23143. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, checkNil bool, d *Decoder) {
  23144. v, changed := f.DecMapUintIntfV(*vp, checkNil, true, d)
  23145. if changed {
  23146. *vp = v
  23147. }
  23148. }
  23149. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, checkNil bool, canChange bool,
  23150. d *Decoder) (_ map[uint]interface{}, changed bool) {
  23151. dd := d.d
  23152. cr := d.cr
  23153. if checkNil && dd.TryDecodeAsNil() {
  23154. if v != nil {
  23155. changed = true
  23156. }
  23157. return nil, changed
  23158. }
  23159. containerLen := dd.ReadMapStart()
  23160. if canChange && v == nil {
  23161. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23162. v = make(map[uint]interface{}, xlen)
  23163. changed = true
  23164. }
  23165. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  23166. var mk uint
  23167. var mv interface{}
  23168. if containerLen > 0 {
  23169. for j := 0; j < containerLen; j++ {
  23170. if cr != nil {
  23171. cr.sendContainerState(containerMapKey)
  23172. }
  23173. mk = uint(dd.DecodeUint(uintBitsize))
  23174. if cr != nil {
  23175. cr.sendContainerState(containerMapValue)
  23176. }
  23177. if mapGet {
  23178. mv = v[mk]
  23179. } else {
  23180. mv = nil
  23181. }
  23182. d.decode(&mv)
  23183. if v != nil {
  23184. v[mk] = mv
  23185. }
  23186. }
  23187. } else if containerLen < 0 {
  23188. for j := 0; !dd.CheckBreak(); j++ {
  23189. if cr != nil {
  23190. cr.sendContainerState(containerMapKey)
  23191. }
  23192. mk = uint(dd.DecodeUint(uintBitsize))
  23193. if cr != nil {
  23194. cr.sendContainerState(containerMapValue)
  23195. }
  23196. if mapGet {
  23197. mv = v[mk]
  23198. } else {
  23199. mv = nil
  23200. }
  23201. d.decode(&mv)
  23202. if v != nil {
  23203. v[mk] = mv
  23204. }
  23205. }
  23206. }
  23207. if cr != nil {
  23208. cr.sendContainerState(containerMapEnd)
  23209. }
  23210. return v, changed
  23211. }
  23212. func (f *decFnInfo) fastpathDecMapUintStringR(rv reflect.Value) {
  23213. if rv.CanAddr() {
  23214. vp := rv.Addr().Interface().(*map[uint]string)
  23215. v, changed := fastpathTV.DecMapUintStringV(*vp, fastpathCheckNilFalse, true, f.d)
  23216. if changed {
  23217. *vp = v
  23218. }
  23219. } else {
  23220. v := rv.Interface().(map[uint]string)
  23221. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, f.d)
  23222. }
  23223. }
  23224. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, checkNil bool, d *Decoder) {
  23225. v, changed := f.DecMapUintStringV(*vp, checkNil, true, d)
  23226. if changed {
  23227. *vp = v
  23228. }
  23229. }
  23230. func (_ fastpathT) DecMapUintStringV(v map[uint]string, checkNil bool, canChange bool,
  23231. d *Decoder) (_ map[uint]string, changed bool) {
  23232. dd := d.d
  23233. cr := d.cr
  23234. if checkNil && dd.TryDecodeAsNil() {
  23235. if v != nil {
  23236. changed = true
  23237. }
  23238. return nil, changed
  23239. }
  23240. containerLen := dd.ReadMapStart()
  23241. if canChange && v == nil {
  23242. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23243. v = make(map[uint]string, xlen)
  23244. changed = true
  23245. }
  23246. var mk uint
  23247. var mv string
  23248. if containerLen > 0 {
  23249. for j := 0; j < containerLen; j++ {
  23250. if cr != nil {
  23251. cr.sendContainerState(containerMapKey)
  23252. }
  23253. mk = uint(dd.DecodeUint(uintBitsize))
  23254. if cr != nil {
  23255. cr.sendContainerState(containerMapValue)
  23256. }
  23257. mv = dd.DecodeString()
  23258. if v != nil {
  23259. v[mk] = mv
  23260. }
  23261. }
  23262. } else if containerLen < 0 {
  23263. for j := 0; !dd.CheckBreak(); j++ {
  23264. if cr != nil {
  23265. cr.sendContainerState(containerMapKey)
  23266. }
  23267. mk = uint(dd.DecodeUint(uintBitsize))
  23268. if cr != nil {
  23269. cr.sendContainerState(containerMapValue)
  23270. }
  23271. mv = dd.DecodeString()
  23272. if v != nil {
  23273. v[mk] = mv
  23274. }
  23275. }
  23276. }
  23277. if cr != nil {
  23278. cr.sendContainerState(containerMapEnd)
  23279. }
  23280. return v, changed
  23281. }
  23282. func (f *decFnInfo) fastpathDecMapUintUintR(rv reflect.Value) {
  23283. if rv.CanAddr() {
  23284. vp := rv.Addr().Interface().(*map[uint]uint)
  23285. v, changed := fastpathTV.DecMapUintUintV(*vp, fastpathCheckNilFalse, true, f.d)
  23286. if changed {
  23287. *vp = v
  23288. }
  23289. } else {
  23290. v := rv.Interface().(map[uint]uint)
  23291. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, f.d)
  23292. }
  23293. }
  23294. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, checkNil bool, d *Decoder) {
  23295. v, changed := f.DecMapUintUintV(*vp, checkNil, true, d)
  23296. if changed {
  23297. *vp = v
  23298. }
  23299. }
  23300. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, checkNil bool, canChange bool,
  23301. d *Decoder) (_ map[uint]uint, changed bool) {
  23302. dd := d.d
  23303. cr := d.cr
  23304. if checkNil && dd.TryDecodeAsNil() {
  23305. if v != nil {
  23306. changed = true
  23307. }
  23308. return nil, changed
  23309. }
  23310. containerLen := dd.ReadMapStart()
  23311. if canChange && v == nil {
  23312. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23313. v = make(map[uint]uint, xlen)
  23314. changed = true
  23315. }
  23316. var mk uint
  23317. var mv uint
  23318. if containerLen > 0 {
  23319. for j := 0; j < containerLen; j++ {
  23320. if cr != nil {
  23321. cr.sendContainerState(containerMapKey)
  23322. }
  23323. mk = uint(dd.DecodeUint(uintBitsize))
  23324. if cr != nil {
  23325. cr.sendContainerState(containerMapValue)
  23326. }
  23327. mv = uint(dd.DecodeUint(uintBitsize))
  23328. if v != nil {
  23329. v[mk] = mv
  23330. }
  23331. }
  23332. } else if containerLen < 0 {
  23333. for j := 0; !dd.CheckBreak(); j++ {
  23334. if cr != nil {
  23335. cr.sendContainerState(containerMapKey)
  23336. }
  23337. mk = uint(dd.DecodeUint(uintBitsize))
  23338. if cr != nil {
  23339. cr.sendContainerState(containerMapValue)
  23340. }
  23341. mv = uint(dd.DecodeUint(uintBitsize))
  23342. if v != nil {
  23343. v[mk] = mv
  23344. }
  23345. }
  23346. }
  23347. if cr != nil {
  23348. cr.sendContainerState(containerMapEnd)
  23349. }
  23350. return v, changed
  23351. }
  23352. func (f *decFnInfo) fastpathDecMapUintUint8R(rv reflect.Value) {
  23353. if rv.CanAddr() {
  23354. vp := rv.Addr().Interface().(*map[uint]uint8)
  23355. v, changed := fastpathTV.DecMapUintUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  23356. if changed {
  23357. *vp = v
  23358. }
  23359. } else {
  23360. v := rv.Interface().(map[uint]uint8)
  23361. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, f.d)
  23362. }
  23363. }
  23364. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, checkNil bool, d *Decoder) {
  23365. v, changed := f.DecMapUintUint8V(*vp, checkNil, true, d)
  23366. if changed {
  23367. *vp = v
  23368. }
  23369. }
  23370. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, checkNil bool, canChange bool,
  23371. d *Decoder) (_ map[uint]uint8, changed bool) {
  23372. dd := d.d
  23373. cr := d.cr
  23374. if checkNil && dd.TryDecodeAsNil() {
  23375. if v != nil {
  23376. changed = true
  23377. }
  23378. return nil, changed
  23379. }
  23380. containerLen := dd.ReadMapStart()
  23381. if canChange && v == nil {
  23382. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23383. v = make(map[uint]uint8, xlen)
  23384. changed = true
  23385. }
  23386. var mk uint
  23387. var mv uint8
  23388. if containerLen > 0 {
  23389. for j := 0; j < containerLen; j++ {
  23390. if cr != nil {
  23391. cr.sendContainerState(containerMapKey)
  23392. }
  23393. mk = uint(dd.DecodeUint(uintBitsize))
  23394. if cr != nil {
  23395. cr.sendContainerState(containerMapValue)
  23396. }
  23397. mv = uint8(dd.DecodeUint(8))
  23398. if v != nil {
  23399. v[mk] = mv
  23400. }
  23401. }
  23402. } else if containerLen < 0 {
  23403. for j := 0; !dd.CheckBreak(); j++ {
  23404. if cr != nil {
  23405. cr.sendContainerState(containerMapKey)
  23406. }
  23407. mk = uint(dd.DecodeUint(uintBitsize))
  23408. if cr != nil {
  23409. cr.sendContainerState(containerMapValue)
  23410. }
  23411. mv = uint8(dd.DecodeUint(8))
  23412. if v != nil {
  23413. v[mk] = mv
  23414. }
  23415. }
  23416. }
  23417. if cr != nil {
  23418. cr.sendContainerState(containerMapEnd)
  23419. }
  23420. return v, changed
  23421. }
  23422. func (f *decFnInfo) fastpathDecMapUintUint16R(rv reflect.Value) {
  23423. if rv.CanAddr() {
  23424. vp := rv.Addr().Interface().(*map[uint]uint16)
  23425. v, changed := fastpathTV.DecMapUintUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  23426. if changed {
  23427. *vp = v
  23428. }
  23429. } else {
  23430. v := rv.Interface().(map[uint]uint16)
  23431. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, f.d)
  23432. }
  23433. }
  23434. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, checkNil bool, d *Decoder) {
  23435. v, changed := f.DecMapUintUint16V(*vp, checkNil, true, d)
  23436. if changed {
  23437. *vp = v
  23438. }
  23439. }
  23440. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, checkNil bool, canChange bool,
  23441. d *Decoder) (_ map[uint]uint16, changed bool) {
  23442. dd := d.d
  23443. cr := d.cr
  23444. if checkNil && dd.TryDecodeAsNil() {
  23445. if v != nil {
  23446. changed = true
  23447. }
  23448. return nil, changed
  23449. }
  23450. containerLen := dd.ReadMapStart()
  23451. if canChange && v == nil {
  23452. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23453. v = make(map[uint]uint16, xlen)
  23454. changed = true
  23455. }
  23456. var mk uint
  23457. var mv uint16
  23458. if containerLen > 0 {
  23459. for j := 0; j < containerLen; j++ {
  23460. if cr != nil {
  23461. cr.sendContainerState(containerMapKey)
  23462. }
  23463. mk = uint(dd.DecodeUint(uintBitsize))
  23464. if cr != nil {
  23465. cr.sendContainerState(containerMapValue)
  23466. }
  23467. mv = uint16(dd.DecodeUint(16))
  23468. if v != nil {
  23469. v[mk] = mv
  23470. }
  23471. }
  23472. } else if containerLen < 0 {
  23473. for j := 0; !dd.CheckBreak(); j++ {
  23474. if cr != nil {
  23475. cr.sendContainerState(containerMapKey)
  23476. }
  23477. mk = uint(dd.DecodeUint(uintBitsize))
  23478. if cr != nil {
  23479. cr.sendContainerState(containerMapValue)
  23480. }
  23481. mv = uint16(dd.DecodeUint(16))
  23482. if v != nil {
  23483. v[mk] = mv
  23484. }
  23485. }
  23486. }
  23487. if cr != nil {
  23488. cr.sendContainerState(containerMapEnd)
  23489. }
  23490. return v, changed
  23491. }
  23492. func (f *decFnInfo) fastpathDecMapUintUint32R(rv reflect.Value) {
  23493. if rv.CanAddr() {
  23494. vp := rv.Addr().Interface().(*map[uint]uint32)
  23495. v, changed := fastpathTV.DecMapUintUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  23496. if changed {
  23497. *vp = v
  23498. }
  23499. } else {
  23500. v := rv.Interface().(map[uint]uint32)
  23501. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, f.d)
  23502. }
  23503. }
  23504. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, checkNil bool, d *Decoder) {
  23505. v, changed := f.DecMapUintUint32V(*vp, checkNil, true, d)
  23506. if changed {
  23507. *vp = v
  23508. }
  23509. }
  23510. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, checkNil bool, canChange bool,
  23511. d *Decoder) (_ map[uint]uint32, changed bool) {
  23512. dd := d.d
  23513. cr := d.cr
  23514. if checkNil && dd.TryDecodeAsNil() {
  23515. if v != nil {
  23516. changed = true
  23517. }
  23518. return nil, changed
  23519. }
  23520. containerLen := dd.ReadMapStart()
  23521. if canChange && v == nil {
  23522. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23523. v = make(map[uint]uint32, xlen)
  23524. changed = true
  23525. }
  23526. var mk uint
  23527. var mv uint32
  23528. if containerLen > 0 {
  23529. for j := 0; j < containerLen; j++ {
  23530. if cr != nil {
  23531. cr.sendContainerState(containerMapKey)
  23532. }
  23533. mk = uint(dd.DecodeUint(uintBitsize))
  23534. if cr != nil {
  23535. cr.sendContainerState(containerMapValue)
  23536. }
  23537. mv = uint32(dd.DecodeUint(32))
  23538. if v != nil {
  23539. v[mk] = mv
  23540. }
  23541. }
  23542. } else if containerLen < 0 {
  23543. for j := 0; !dd.CheckBreak(); j++ {
  23544. if cr != nil {
  23545. cr.sendContainerState(containerMapKey)
  23546. }
  23547. mk = uint(dd.DecodeUint(uintBitsize))
  23548. if cr != nil {
  23549. cr.sendContainerState(containerMapValue)
  23550. }
  23551. mv = uint32(dd.DecodeUint(32))
  23552. if v != nil {
  23553. v[mk] = mv
  23554. }
  23555. }
  23556. }
  23557. if cr != nil {
  23558. cr.sendContainerState(containerMapEnd)
  23559. }
  23560. return v, changed
  23561. }
  23562. func (f *decFnInfo) fastpathDecMapUintUint64R(rv reflect.Value) {
  23563. if rv.CanAddr() {
  23564. vp := rv.Addr().Interface().(*map[uint]uint64)
  23565. v, changed := fastpathTV.DecMapUintUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  23566. if changed {
  23567. *vp = v
  23568. }
  23569. } else {
  23570. v := rv.Interface().(map[uint]uint64)
  23571. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, f.d)
  23572. }
  23573. }
  23574. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, checkNil bool, d *Decoder) {
  23575. v, changed := f.DecMapUintUint64V(*vp, checkNil, true, d)
  23576. if changed {
  23577. *vp = v
  23578. }
  23579. }
  23580. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, checkNil bool, canChange bool,
  23581. d *Decoder) (_ map[uint]uint64, changed bool) {
  23582. dd := d.d
  23583. cr := d.cr
  23584. if checkNil && dd.TryDecodeAsNil() {
  23585. if v != nil {
  23586. changed = true
  23587. }
  23588. return nil, changed
  23589. }
  23590. containerLen := dd.ReadMapStart()
  23591. if canChange && v == nil {
  23592. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23593. v = make(map[uint]uint64, xlen)
  23594. changed = true
  23595. }
  23596. var mk uint
  23597. var mv uint64
  23598. if containerLen > 0 {
  23599. for j := 0; j < containerLen; j++ {
  23600. if cr != nil {
  23601. cr.sendContainerState(containerMapKey)
  23602. }
  23603. mk = uint(dd.DecodeUint(uintBitsize))
  23604. if cr != nil {
  23605. cr.sendContainerState(containerMapValue)
  23606. }
  23607. mv = dd.DecodeUint(64)
  23608. if v != nil {
  23609. v[mk] = mv
  23610. }
  23611. }
  23612. } else if containerLen < 0 {
  23613. for j := 0; !dd.CheckBreak(); j++ {
  23614. if cr != nil {
  23615. cr.sendContainerState(containerMapKey)
  23616. }
  23617. mk = uint(dd.DecodeUint(uintBitsize))
  23618. if cr != nil {
  23619. cr.sendContainerState(containerMapValue)
  23620. }
  23621. mv = dd.DecodeUint(64)
  23622. if v != nil {
  23623. v[mk] = mv
  23624. }
  23625. }
  23626. }
  23627. if cr != nil {
  23628. cr.sendContainerState(containerMapEnd)
  23629. }
  23630. return v, changed
  23631. }
  23632. func (f *decFnInfo) fastpathDecMapUintUintptrR(rv reflect.Value) {
  23633. if rv.CanAddr() {
  23634. vp := rv.Addr().Interface().(*map[uint]uintptr)
  23635. v, changed := fastpathTV.DecMapUintUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  23636. if changed {
  23637. *vp = v
  23638. }
  23639. } else {
  23640. v := rv.Interface().(map[uint]uintptr)
  23641. fastpathTV.DecMapUintUintptrV(v, fastpathCheckNilFalse, false, f.d)
  23642. }
  23643. }
  23644. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, checkNil bool, d *Decoder) {
  23645. v, changed := f.DecMapUintUintptrV(*vp, checkNil, true, d)
  23646. if changed {
  23647. *vp = v
  23648. }
  23649. }
  23650. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, checkNil bool, canChange bool,
  23651. d *Decoder) (_ map[uint]uintptr, changed bool) {
  23652. dd := d.d
  23653. cr := d.cr
  23654. if checkNil && dd.TryDecodeAsNil() {
  23655. if v != nil {
  23656. changed = true
  23657. }
  23658. return nil, changed
  23659. }
  23660. containerLen := dd.ReadMapStart()
  23661. if canChange && v == nil {
  23662. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23663. v = make(map[uint]uintptr, xlen)
  23664. changed = true
  23665. }
  23666. var mk uint
  23667. var mv uintptr
  23668. if containerLen > 0 {
  23669. for j := 0; j < containerLen; j++ {
  23670. if cr != nil {
  23671. cr.sendContainerState(containerMapKey)
  23672. }
  23673. mk = uint(dd.DecodeUint(uintBitsize))
  23674. if cr != nil {
  23675. cr.sendContainerState(containerMapValue)
  23676. }
  23677. mv = uintptr(dd.DecodeUint(uintBitsize))
  23678. if v != nil {
  23679. v[mk] = mv
  23680. }
  23681. }
  23682. } else if containerLen < 0 {
  23683. for j := 0; !dd.CheckBreak(); j++ {
  23684. if cr != nil {
  23685. cr.sendContainerState(containerMapKey)
  23686. }
  23687. mk = uint(dd.DecodeUint(uintBitsize))
  23688. if cr != nil {
  23689. cr.sendContainerState(containerMapValue)
  23690. }
  23691. mv = uintptr(dd.DecodeUint(uintBitsize))
  23692. if v != nil {
  23693. v[mk] = mv
  23694. }
  23695. }
  23696. }
  23697. if cr != nil {
  23698. cr.sendContainerState(containerMapEnd)
  23699. }
  23700. return v, changed
  23701. }
  23702. func (f *decFnInfo) fastpathDecMapUintIntR(rv reflect.Value) {
  23703. if rv.CanAddr() {
  23704. vp := rv.Addr().Interface().(*map[uint]int)
  23705. v, changed := fastpathTV.DecMapUintIntV(*vp, fastpathCheckNilFalse, true, f.d)
  23706. if changed {
  23707. *vp = v
  23708. }
  23709. } else {
  23710. v := rv.Interface().(map[uint]int)
  23711. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, f.d)
  23712. }
  23713. }
  23714. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, checkNil bool, d *Decoder) {
  23715. v, changed := f.DecMapUintIntV(*vp, checkNil, true, d)
  23716. if changed {
  23717. *vp = v
  23718. }
  23719. }
  23720. func (_ fastpathT) DecMapUintIntV(v map[uint]int, checkNil bool, canChange bool,
  23721. d *Decoder) (_ map[uint]int, changed bool) {
  23722. dd := d.d
  23723. cr := d.cr
  23724. if checkNil && dd.TryDecodeAsNil() {
  23725. if v != nil {
  23726. changed = true
  23727. }
  23728. return nil, changed
  23729. }
  23730. containerLen := dd.ReadMapStart()
  23731. if canChange && v == nil {
  23732. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23733. v = make(map[uint]int, xlen)
  23734. changed = true
  23735. }
  23736. var mk uint
  23737. var mv int
  23738. if containerLen > 0 {
  23739. for j := 0; j < containerLen; j++ {
  23740. if cr != nil {
  23741. cr.sendContainerState(containerMapKey)
  23742. }
  23743. mk = uint(dd.DecodeUint(uintBitsize))
  23744. if cr != nil {
  23745. cr.sendContainerState(containerMapValue)
  23746. }
  23747. mv = int(dd.DecodeInt(intBitsize))
  23748. if v != nil {
  23749. v[mk] = mv
  23750. }
  23751. }
  23752. } else if containerLen < 0 {
  23753. for j := 0; !dd.CheckBreak(); j++ {
  23754. if cr != nil {
  23755. cr.sendContainerState(containerMapKey)
  23756. }
  23757. mk = uint(dd.DecodeUint(uintBitsize))
  23758. if cr != nil {
  23759. cr.sendContainerState(containerMapValue)
  23760. }
  23761. mv = int(dd.DecodeInt(intBitsize))
  23762. if v != nil {
  23763. v[mk] = mv
  23764. }
  23765. }
  23766. }
  23767. if cr != nil {
  23768. cr.sendContainerState(containerMapEnd)
  23769. }
  23770. return v, changed
  23771. }
  23772. func (f *decFnInfo) fastpathDecMapUintInt8R(rv reflect.Value) {
  23773. if rv.CanAddr() {
  23774. vp := rv.Addr().Interface().(*map[uint]int8)
  23775. v, changed := fastpathTV.DecMapUintInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  23776. if changed {
  23777. *vp = v
  23778. }
  23779. } else {
  23780. v := rv.Interface().(map[uint]int8)
  23781. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, f.d)
  23782. }
  23783. }
  23784. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, checkNil bool, d *Decoder) {
  23785. v, changed := f.DecMapUintInt8V(*vp, checkNil, true, d)
  23786. if changed {
  23787. *vp = v
  23788. }
  23789. }
  23790. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, checkNil bool, canChange bool,
  23791. d *Decoder) (_ map[uint]int8, changed bool) {
  23792. dd := d.d
  23793. cr := d.cr
  23794. if checkNil && dd.TryDecodeAsNil() {
  23795. if v != nil {
  23796. changed = true
  23797. }
  23798. return nil, changed
  23799. }
  23800. containerLen := dd.ReadMapStart()
  23801. if canChange && v == nil {
  23802. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23803. v = make(map[uint]int8, xlen)
  23804. changed = true
  23805. }
  23806. var mk uint
  23807. var mv int8
  23808. if containerLen > 0 {
  23809. for j := 0; j < containerLen; j++ {
  23810. if cr != nil {
  23811. cr.sendContainerState(containerMapKey)
  23812. }
  23813. mk = uint(dd.DecodeUint(uintBitsize))
  23814. if cr != nil {
  23815. cr.sendContainerState(containerMapValue)
  23816. }
  23817. mv = int8(dd.DecodeInt(8))
  23818. if v != nil {
  23819. v[mk] = mv
  23820. }
  23821. }
  23822. } else if containerLen < 0 {
  23823. for j := 0; !dd.CheckBreak(); j++ {
  23824. if cr != nil {
  23825. cr.sendContainerState(containerMapKey)
  23826. }
  23827. mk = uint(dd.DecodeUint(uintBitsize))
  23828. if cr != nil {
  23829. cr.sendContainerState(containerMapValue)
  23830. }
  23831. mv = int8(dd.DecodeInt(8))
  23832. if v != nil {
  23833. v[mk] = mv
  23834. }
  23835. }
  23836. }
  23837. if cr != nil {
  23838. cr.sendContainerState(containerMapEnd)
  23839. }
  23840. return v, changed
  23841. }
  23842. func (f *decFnInfo) fastpathDecMapUintInt16R(rv reflect.Value) {
  23843. if rv.CanAddr() {
  23844. vp := rv.Addr().Interface().(*map[uint]int16)
  23845. v, changed := fastpathTV.DecMapUintInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  23846. if changed {
  23847. *vp = v
  23848. }
  23849. } else {
  23850. v := rv.Interface().(map[uint]int16)
  23851. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, f.d)
  23852. }
  23853. }
  23854. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, checkNil bool, d *Decoder) {
  23855. v, changed := f.DecMapUintInt16V(*vp, checkNil, true, d)
  23856. if changed {
  23857. *vp = v
  23858. }
  23859. }
  23860. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, checkNil bool, canChange bool,
  23861. d *Decoder) (_ map[uint]int16, changed bool) {
  23862. dd := d.d
  23863. cr := d.cr
  23864. if checkNil && dd.TryDecodeAsNil() {
  23865. if v != nil {
  23866. changed = true
  23867. }
  23868. return nil, changed
  23869. }
  23870. containerLen := dd.ReadMapStart()
  23871. if canChange && v == nil {
  23872. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23873. v = make(map[uint]int16, xlen)
  23874. changed = true
  23875. }
  23876. var mk uint
  23877. var mv int16
  23878. if containerLen > 0 {
  23879. for j := 0; j < containerLen; j++ {
  23880. if cr != nil {
  23881. cr.sendContainerState(containerMapKey)
  23882. }
  23883. mk = uint(dd.DecodeUint(uintBitsize))
  23884. if cr != nil {
  23885. cr.sendContainerState(containerMapValue)
  23886. }
  23887. mv = int16(dd.DecodeInt(16))
  23888. if v != nil {
  23889. v[mk] = mv
  23890. }
  23891. }
  23892. } else if containerLen < 0 {
  23893. for j := 0; !dd.CheckBreak(); j++ {
  23894. if cr != nil {
  23895. cr.sendContainerState(containerMapKey)
  23896. }
  23897. mk = uint(dd.DecodeUint(uintBitsize))
  23898. if cr != nil {
  23899. cr.sendContainerState(containerMapValue)
  23900. }
  23901. mv = int16(dd.DecodeInt(16))
  23902. if v != nil {
  23903. v[mk] = mv
  23904. }
  23905. }
  23906. }
  23907. if cr != nil {
  23908. cr.sendContainerState(containerMapEnd)
  23909. }
  23910. return v, changed
  23911. }
  23912. func (f *decFnInfo) fastpathDecMapUintInt32R(rv reflect.Value) {
  23913. if rv.CanAddr() {
  23914. vp := rv.Addr().Interface().(*map[uint]int32)
  23915. v, changed := fastpathTV.DecMapUintInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  23916. if changed {
  23917. *vp = v
  23918. }
  23919. } else {
  23920. v := rv.Interface().(map[uint]int32)
  23921. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, f.d)
  23922. }
  23923. }
  23924. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, checkNil bool, d *Decoder) {
  23925. v, changed := f.DecMapUintInt32V(*vp, checkNil, true, d)
  23926. if changed {
  23927. *vp = v
  23928. }
  23929. }
  23930. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, checkNil bool, canChange bool,
  23931. d *Decoder) (_ map[uint]int32, changed bool) {
  23932. dd := d.d
  23933. cr := d.cr
  23934. if checkNil && dd.TryDecodeAsNil() {
  23935. if v != nil {
  23936. changed = true
  23937. }
  23938. return nil, changed
  23939. }
  23940. containerLen := dd.ReadMapStart()
  23941. if canChange && v == nil {
  23942. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23943. v = make(map[uint]int32, xlen)
  23944. changed = true
  23945. }
  23946. var mk uint
  23947. var mv int32
  23948. if containerLen > 0 {
  23949. for j := 0; j < containerLen; j++ {
  23950. if cr != nil {
  23951. cr.sendContainerState(containerMapKey)
  23952. }
  23953. mk = uint(dd.DecodeUint(uintBitsize))
  23954. if cr != nil {
  23955. cr.sendContainerState(containerMapValue)
  23956. }
  23957. mv = int32(dd.DecodeInt(32))
  23958. if v != nil {
  23959. v[mk] = mv
  23960. }
  23961. }
  23962. } else if containerLen < 0 {
  23963. for j := 0; !dd.CheckBreak(); j++ {
  23964. if cr != nil {
  23965. cr.sendContainerState(containerMapKey)
  23966. }
  23967. mk = uint(dd.DecodeUint(uintBitsize))
  23968. if cr != nil {
  23969. cr.sendContainerState(containerMapValue)
  23970. }
  23971. mv = int32(dd.DecodeInt(32))
  23972. if v != nil {
  23973. v[mk] = mv
  23974. }
  23975. }
  23976. }
  23977. if cr != nil {
  23978. cr.sendContainerState(containerMapEnd)
  23979. }
  23980. return v, changed
  23981. }
  23982. func (f *decFnInfo) fastpathDecMapUintInt64R(rv reflect.Value) {
  23983. if rv.CanAddr() {
  23984. vp := rv.Addr().Interface().(*map[uint]int64)
  23985. v, changed := fastpathTV.DecMapUintInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  23986. if changed {
  23987. *vp = v
  23988. }
  23989. } else {
  23990. v := rv.Interface().(map[uint]int64)
  23991. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, f.d)
  23992. }
  23993. }
  23994. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, checkNil bool, d *Decoder) {
  23995. v, changed := f.DecMapUintInt64V(*vp, checkNil, true, d)
  23996. if changed {
  23997. *vp = v
  23998. }
  23999. }
  24000. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, checkNil bool, canChange bool,
  24001. d *Decoder) (_ map[uint]int64, changed bool) {
  24002. dd := d.d
  24003. cr := d.cr
  24004. if checkNil && dd.TryDecodeAsNil() {
  24005. if v != nil {
  24006. changed = true
  24007. }
  24008. return nil, changed
  24009. }
  24010. containerLen := dd.ReadMapStart()
  24011. if canChange && v == nil {
  24012. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24013. v = make(map[uint]int64, xlen)
  24014. changed = true
  24015. }
  24016. var mk uint
  24017. var mv int64
  24018. if containerLen > 0 {
  24019. for j := 0; j < containerLen; j++ {
  24020. if cr != nil {
  24021. cr.sendContainerState(containerMapKey)
  24022. }
  24023. mk = uint(dd.DecodeUint(uintBitsize))
  24024. if cr != nil {
  24025. cr.sendContainerState(containerMapValue)
  24026. }
  24027. mv = dd.DecodeInt(64)
  24028. if v != nil {
  24029. v[mk] = mv
  24030. }
  24031. }
  24032. } else if containerLen < 0 {
  24033. for j := 0; !dd.CheckBreak(); j++ {
  24034. if cr != nil {
  24035. cr.sendContainerState(containerMapKey)
  24036. }
  24037. mk = uint(dd.DecodeUint(uintBitsize))
  24038. if cr != nil {
  24039. cr.sendContainerState(containerMapValue)
  24040. }
  24041. mv = dd.DecodeInt(64)
  24042. if v != nil {
  24043. v[mk] = mv
  24044. }
  24045. }
  24046. }
  24047. if cr != nil {
  24048. cr.sendContainerState(containerMapEnd)
  24049. }
  24050. return v, changed
  24051. }
  24052. func (f *decFnInfo) fastpathDecMapUintFloat32R(rv reflect.Value) {
  24053. if rv.CanAddr() {
  24054. vp := rv.Addr().Interface().(*map[uint]float32)
  24055. v, changed := fastpathTV.DecMapUintFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  24056. if changed {
  24057. *vp = v
  24058. }
  24059. } else {
  24060. v := rv.Interface().(map[uint]float32)
  24061. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, f.d)
  24062. }
  24063. }
  24064. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, checkNil bool, d *Decoder) {
  24065. v, changed := f.DecMapUintFloat32V(*vp, checkNil, true, d)
  24066. if changed {
  24067. *vp = v
  24068. }
  24069. }
  24070. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, checkNil bool, canChange bool,
  24071. d *Decoder) (_ map[uint]float32, changed bool) {
  24072. dd := d.d
  24073. cr := d.cr
  24074. if checkNil && dd.TryDecodeAsNil() {
  24075. if v != nil {
  24076. changed = true
  24077. }
  24078. return nil, changed
  24079. }
  24080. containerLen := dd.ReadMapStart()
  24081. if canChange && v == nil {
  24082. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24083. v = make(map[uint]float32, xlen)
  24084. changed = true
  24085. }
  24086. var mk uint
  24087. var mv float32
  24088. if containerLen > 0 {
  24089. for j := 0; j < containerLen; j++ {
  24090. if cr != nil {
  24091. cr.sendContainerState(containerMapKey)
  24092. }
  24093. mk = uint(dd.DecodeUint(uintBitsize))
  24094. if cr != nil {
  24095. cr.sendContainerState(containerMapValue)
  24096. }
  24097. mv = float32(dd.DecodeFloat(true))
  24098. if v != nil {
  24099. v[mk] = mv
  24100. }
  24101. }
  24102. } else if containerLen < 0 {
  24103. for j := 0; !dd.CheckBreak(); j++ {
  24104. if cr != nil {
  24105. cr.sendContainerState(containerMapKey)
  24106. }
  24107. mk = uint(dd.DecodeUint(uintBitsize))
  24108. if cr != nil {
  24109. cr.sendContainerState(containerMapValue)
  24110. }
  24111. mv = float32(dd.DecodeFloat(true))
  24112. if v != nil {
  24113. v[mk] = mv
  24114. }
  24115. }
  24116. }
  24117. if cr != nil {
  24118. cr.sendContainerState(containerMapEnd)
  24119. }
  24120. return v, changed
  24121. }
  24122. func (f *decFnInfo) fastpathDecMapUintFloat64R(rv reflect.Value) {
  24123. if rv.CanAddr() {
  24124. vp := rv.Addr().Interface().(*map[uint]float64)
  24125. v, changed := fastpathTV.DecMapUintFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  24126. if changed {
  24127. *vp = v
  24128. }
  24129. } else {
  24130. v := rv.Interface().(map[uint]float64)
  24131. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, f.d)
  24132. }
  24133. }
  24134. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, checkNil bool, d *Decoder) {
  24135. v, changed := f.DecMapUintFloat64V(*vp, checkNil, true, d)
  24136. if changed {
  24137. *vp = v
  24138. }
  24139. }
  24140. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, checkNil bool, canChange bool,
  24141. d *Decoder) (_ map[uint]float64, changed bool) {
  24142. dd := d.d
  24143. cr := d.cr
  24144. if checkNil && dd.TryDecodeAsNil() {
  24145. if v != nil {
  24146. changed = true
  24147. }
  24148. return nil, changed
  24149. }
  24150. containerLen := dd.ReadMapStart()
  24151. if canChange && v == nil {
  24152. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24153. v = make(map[uint]float64, xlen)
  24154. changed = true
  24155. }
  24156. var mk uint
  24157. var mv float64
  24158. if containerLen > 0 {
  24159. for j := 0; j < containerLen; j++ {
  24160. if cr != nil {
  24161. cr.sendContainerState(containerMapKey)
  24162. }
  24163. mk = uint(dd.DecodeUint(uintBitsize))
  24164. if cr != nil {
  24165. cr.sendContainerState(containerMapValue)
  24166. }
  24167. mv = dd.DecodeFloat(false)
  24168. if v != nil {
  24169. v[mk] = mv
  24170. }
  24171. }
  24172. } else if containerLen < 0 {
  24173. for j := 0; !dd.CheckBreak(); j++ {
  24174. if cr != nil {
  24175. cr.sendContainerState(containerMapKey)
  24176. }
  24177. mk = uint(dd.DecodeUint(uintBitsize))
  24178. if cr != nil {
  24179. cr.sendContainerState(containerMapValue)
  24180. }
  24181. mv = dd.DecodeFloat(false)
  24182. if v != nil {
  24183. v[mk] = mv
  24184. }
  24185. }
  24186. }
  24187. if cr != nil {
  24188. cr.sendContainerState(containerMapEnd)
  24189. }
  24190. return v, changed
  24191. }
  24192. func (f *decFnInfo) fastpathDecMapUintBoolR(rv reflect.Value) {
  24193. if rv.CanAddr() {
  24194. vp := rv.Addr().Interface().(*map[uint]bool)
  24195. v, changed := fastpathTV.DecMapUintBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  24196. if changed {
  24197. *vp = v
  24198. }
  24199. } else {
  24200. v := rv.Interface().(map[uint]bool)
  24201. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, f.d)
  24202. }
  24203. }
  24204. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, checkNil bool, d *Decoder) {
  24205. v, changed := f.DecMapUintBoolV(*vp, checkNil, true, d)
  24206. if changed {
  24207. *vp = v
  24208. }
  24209. }
  24210. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, checkNil bool, canChange bool,
  24211. d *Decoder) (_ map[uint]bool, changed bool) {
  24212. dd := d.d
  24213. cr := d.cr
  24214. if checkNil && dd.TryDecodeAsNil() {
  24215. if v != nil {
  24216. changed = true
  24217. }
  24218. return nil, changed
  24219. }
  24220. containerLen := dd.ReadMapStart()
  24221. if canChange && v == nil {
  24222. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24223. v = make(map[uint]bool, xlen)
  24224. changed = true
  24225. }
  24226. var mk uint
  24227. var mv bool
  24228. if containerLen > 0 {
  24229. for j := 0; j < containerLen; j++ {
  24230. if cr != nil {
  24231. cr.sendContainerState(containerMapKey)
  24232. }
  24233. mk = uint(dd.DecodeUint(uintBitsize))
  24234. if cr != nil {
  24235. cr.sendContainerState(containerMapValue)
  24236. }
  24237. mv = dd.DecodeBool()
  24238. if v != nil {
  24239. v[mk] = mv
  24240. }
  24241. }
  24242. } else if containerLen < 0 {
  24243. for j := 0; !dd.CheckBreak(); j++ {
  24244. if cr != nil {
  24245. cr.sendContainerState(containerMapKey)
  24246. }
  24247. mk = uint(dd.DecodeUint(uintBitsize))
  24248. if cr != nil {
  24249. cr.sendContainerState(containerMapValue)
  24250. }
  24251. mv = dd.DecodeBool()
  24252. if v != nil {
  24253. v[mk] = mv
  24254. }
  24255. }
  24256. }
  24257. if cr != nil {
  24258. cr.sendContainerState(containerMapEnd)
  24259. }
  24260. return v, changed
  24261. }
  24262. func (f *decFnInfo) fastpathDecMapUint8IntfR(rv reflect.Value) {
  24263. if rv.CanAddr() {
  24264. vp := rv.Addr().Interface().(*map[uint8]interface{})
  24265. v, changed := fastpathTV.DecMapUint8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  24266. if changed {
  24267. *vp = v
  24268. }
  24269. } else {
  24270. v := rv.Interface().(map[uint8]interface{})
  24271. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, f.d)
  24272. }
  24273. }
  24274. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, checkNil bool, d *Decoder) {
  24275. v, changed := f.DecMapUint8IntfV(*vp, checkNil, true, d)
  24276. if changed {
  24277. *vp = v
  24278. }
  24279. }
  24280. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, checkNil bool, canChange bool,
  24281. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  24282. dd := d.d
  24283. cr := d.cr
  24284. if checkNil && dd.TryDecodeAsNil() {
  24285. if v != nil {
  24286. changed = true
  24287. }
  24288. return nil, changed
  24289. }
  24290. containerLen := dd.ReadMapStart()
  24291. if canChange && v == nil {
  24292. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  24293. v = make(map[uint8]interface{}, xlen)
  24294. changed = true
  24295. }
  24296. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  24297. var mk uint8
  24298. var mv interface{}
  24299. if containerLen > 0 {
  24300. for j := 0; j < containerLen; j++ {
  24301. if cr != nil {
  24302. cr.sendContainerState(containerMapKey)
  24303. }
  24304. mk = uint8(dd.DecodeUint(8))
  24305. if cr != nil {
  24306. cr.sendContainerState(containerMapValue)
  24307. }
  24308. if mapGet {
  24309. mv = v[mk]
  24310. } else {
  24311. mv = nil
  24312. }
  24313. d.decode(&mv)
  24314. if v != nil {
  24315. v[mk] = mv
  24316. }
  24317. }
  24318. } else if containerLen < 0 {
  24319. for j := 0; !dd.CheckBreak(); j++ {
  24320. if cr != nil {
  24321. cr.sendContainerState(containerMapKey)
  24322. }
  24323. mk = uint8(dd.DecodeUint(8))
  24324. if cr != nil {
  24325. cr.sendContainerState(containerMapValue)
  24326. }
  24327. if mapGet {
  24328. mv = v[mk]
  24329. } else {
  24330. mv = nil
  24331. }
  24332. d.decode(&mv)
  24333. if v != nil {
  24334. v[mk] = mv
  24335. }
  24336. }
  24337. }
  24338. if cr != nil {
  24339. cr.sendContainerState(containerMapEnd)
  24340. }
  24341. return v, changed
  24342. }
  24343. func (f *decFnInfo) fastpathDecMapUint8StringR(rv reflect.Value) {
  24344. if rv.CanAddr() {
  24345. vp := rv.Addr().Interface().(*map[uint8]string)
  24346. v, changed := fastpathTV.DecMapUint8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  24347. if changed {
  24348. *vp = v
  24349. }
  24350. } else {
  24351. v := rv.Interface().(map[uint8]string)
  24352. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, f.d)
  24353. }
  24354. }
  24355. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, checkNil bool, d *Decoder) {
  24356. v, changed := f.DecMapUint8StringV(*vp, checkNil, true, d)
  24357. if changed {
  24358. *vp = v
  24359. }
  24360. }
  24361. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, checkNil bool, canChange bool,
  24362. d *Decoder) (_ map[uint8]string, changed bool) {
  24363. dd := d.d
  24364. cr := d.cr
  24365. if checkNil && dd.TryDecodeAsNil() {
  24366. if v != nil {
  24367. changed = true
  24368. }
  24369. return nil, changed
  24370. }
  24371. containerLen := dd.ReadMapStart()
  24372. if canChange && v == nil {
  24373. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  24374. v = make(map[uint8]string, xlen)
  24375. changed = true
  24376. }
  24377. var mk uint8
  24378. var mv string
  24379. if containerLen > 0 {
  24380. for j := 0; j < containerLen; j++ {
  24381. if cr != nil {
  24382. cr.sendContainerState(containerMapKey)
  24383. }
  24384. mk = uint8(dd.DecodeUint(8))
  24385. if cr != nil {
  24386. cr.sendContainerState(containerMapValue)
  24387. }
  24388. mv = dd.DecodeString()
  24389. if v != nil {
  24390. v[mk] = mv
  24391. }
  24392. }
  24393. } else if containerLen < 0 {
  24394. for j := 0; !dd.CheckBreak(); j++ {
  24395. if cr != nil {
  24396. cr.sendContainerState(containerMapKey)
  24397. }
  24398. mk = uint8(dd.DecodeUint(8))
  24399. if cr != nil {
  24400. cr.sendContainerState(containerMapValue)
  24401. }
  24402. mv = dd.DecodeString()
  24403. if v != nil {
  24404. v[mk] = mv
  24405. }
  24406. }
  24407. }
  24408. if cr != nil {
  24409. cr.sendContainerState(containerMapEnd)
  24410. }
  24411. return v, changed
  24412. }
  24413. func (f *decFnInfo) fastpathDecMapUint8UintR(rv reflect.Value) {
  24414. if rv.CanAddr() {
  24415. vp := rv.Addr().Interface().(*map[uint8]uint)
  24416. v, changed := fastpathTV.DecMapUint8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  24417. if changed {
  24418. *vp = v
  24419. }
  24420. } else {
  24421. v := rv.Interface().(map[uint8]uint)
  24422. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, f.d)
  24423. }
  24424. }
  24425. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, checkNil bool, d *Decoder) {
  24426. v, changed := f.DecMapUint8UintV(*vp, checkNil, true, d)
  24427. if changed {
  24428. *vp = v
  24429. }
  24430. }
  24431. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, checkNil bool, canChange bool,
  24432. d *Decoder) (_ map[uint8]uint, changed bool) {
  24433. dd := d.d
  24434. cr := d.cr
  24435. if checkNil && dd.TryDecodeAsNil() {
  24436. if v != nil {
  24437. changed = true
  24438. }
  24439. return nil, changed
  24440. }
  24441. containerLen := dd.ReadMapStart()
  24442. if canChange && v == nil {
  24443. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24444. v = make(map[uint8]uint, xlen)
  24445. changed = true
  24446. }
  24447. var mk uint8
  24448. var mv uint
  24449. if containerLen > 0 {
  24450. for j := 0; j < containerLen; j++ {
  24451. if cr != nil {
  24452. cr.sendContainerState(containerMapKey)
  24453. }
  24454. mk = uint8(dd.DecodeUint(8))
  24455. if cr != nil {
  24456. cr.sendContainerState(containerMapValue)
  24457. }
  24458. mv = uint(dd.DecodeUint(uintBitsize))
  24459. if v != nil {
  24460. v[mk] = mv
  24461. }
  24462. }
  24463. } else if containerLen < 0 {
  24464. for j := 0; !dd.CheckBreak(); j++ {
  24465. if cr != nil {
  24466. cr.sendContainerState(containerMapKey)
  24467. }
  24468. mk = uint8(dd.DecodeUint(8))
  24469. if cr != nil {
  24470. cr.sendContainerState(containerMapValue)
  24471. }
  24472. mv = uint(dd.DecodeUint(uintBitsize))
  24473. if v != nil {
  24474. v[mk] = mv
  24475. }
  24476. }
  24477. }
  24478. if cr != nil {
  24479. cr.sendContainerState(containerMapEnd)
  24480. }
  24481. return v, changed
  24482. }
  24483. func (f *decFnInfo) fastpathDecMapUint8Uint8R(rv reflect.Value) {
  24484. if rv.CanAddr() {
  24485. vp := rv.Addr().Interface().(*map[uint8]uint8)
  24486. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  24487. if changed {
  24488. *vp = v
  24489. }
  24490. } else {
  24491. v := rv.Interface().(map[uint8]uint8)
  24492. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  24493. }
  24494. }
  24495. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, checkNil bool, d *Decoder) {
  24496. v, changed := f.DecMapUint8Uint8V(*vp, checkNil, true, d)
  24497. if changed {
  24498. *vp = v
  24499. }
  24500. }
  24501. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, checkNil bool, canChange bool,
  24502. d *Decoder) (_ map[uint8]uint8, changed bool) {
  24503. dd := d.d
  24504. cr := d.cr
  24505. if checkNil && dd.TryDecodeAsNil() {
  24506. if v != nil {
  24507. changed = true
  24508. }
  24509. return nil, changed
  24510. }
  24511. containerLen := dd.ReadMapStart()
  24512. if canChange && v == nil {
  24513. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24514. v = make(map[uint8]uint8, xlen)
  24515. changed = true
  24516. }
  24517. var mk uint8
  24518. var mv uint8
  24519. if containerLen > 0 {
  24520. for j := 0; j < containerLen; j++ {
  24521. if cr != nil {
  24522. cr.sendContainerState(containerMapKey)
  24523. }
  24524. mk = uint8(dd.DecodeUint(8))
  24525. if cr != nil {
  24526. cr.sendContainerState(containerMapValue)
  24527. }
  24528. mv = uint8(dd.DecodeUint(8))
  24529. if v != nil {
  24530. v[mk] = mv
  24531. }
  24532. }
  24533. } else if containerLen < 0 {
  24534. for j := 0; !dd.CheckBreak(); j++ {
  24535. if cr != nil {
  24536. cr.sendContainerState(containerMapKey)
  24537. }
  24538. mk = uint8(dd.DecodeUint(8))
  24539. if cr != nil {
  24540. cr.sendContainerState(containerMapValue)
  24541. }
  24542. mv = uint8(dd.DecodeUint(8))
  24543. if v != nil {
  24544. v[mk] = mv
  24545. }
  24546. }
  24547. }
  24548. if cr != nil {
  24549. cr.sendContainerState(containerMapEnd)
  24550. }
  24551. return v, changed
  24552. }
  24553. func (f *decFnInfo) fastpathDecMapUint8Uint16R(rv reflect.Value) {
  24554. if rv.CanAddr() {
  24555. vp := rv.Addr().Interface().(*map[uint8]uint16)
  24556. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  24557. if changed {
  24558. *vp = v
  24559. }
  24560. } else {
  24561. v := rv.Interface().(map[uint8]uint16)
  24562. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  24563. }
  24564. }
  24565. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, checkNil bool, d *Decoder) {
  24566. v, changed := f.DecMapUint8Uint16V(*vp, checkNil, true, d)
  24567. if changed {
  24568. *vp = v
  24569. }
  24570. }
  24571. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, checkNil bool, canChange bool,
  24572. d *Decoder) (_ map[uint8]uint16, changed bool) {
  24573. dd := d.d
  24574. cr := d.cr
  24575. if checkNil && dd.TryDecodeAsNil() {
  24576. if v != nil {
  24577. changed = true
  24578. }
  24579. return nil, changed
  24580. }
  24581. containerLen := dd.ReadMapStart()
  24582. if canChange && v == nil {
  24583. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24584. v = make(map[uint8]uint16, xlen)
  24585. changed = true
  24586. }
  24587. var mk uint8
  24588. var mv uint16
  24589. if containerLen > 0 {
  24590. for j := 0; j < containerLen; j++ {
  24591. if cr != nil {
  24592. cr.sendContainerState(containerMapKey)
  24593. }
  24594. mk = uint8(dd.DecodeUint(8))
  24595. if cr != nil {
  24596. cr.sendContainerState(containerMapValue)
  24597. }
  24598. mv = uint16(dd.DecodeUint(16))
  24599. if v != nil {
  24600. v[mk] = mv
  24601. }
  24602. }
  24603. } else if containerLen < 0 {
  24604. for j := 0; !dd.CheckBreak(); j++ {
  24605. if cr != nil {
  24606. cr.sendContainerState(containerMapKey)
  24607. }
  24608. mk = uint8(dd.DecodeUint(8))
  24609. if cr != nil {
  24610. cr.sendContainerState(containerMapValue)
  24611. }
  24612. mv = uint16(dd.DecodeUint(16))
  24613. if v != nil {
  24614. v[mk] = mv
  24615. }
  24616. }
  24617. }
  24618. if cr != nil {
  24619. cr.sendContainerState(containerMapEnd)
  24620. }
  24621. return v, changed
  24622. }
  24623. func (f *decFnInfo) fastpathDecMapUint8Uint32R(rv reflect.Value) {
  24624. if rv.CanAddr() {
  24625. vp := rv.Addr().Interface().(*map[uint8]uint32)
  24626. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  24627. if changed {
  24628. *vp = v
  24629. }
  24630. } else {
  24631. v := rv.Interface().(map[uint8]uint32)
  24632. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  24633. }
  24634. }
  24635. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, checkNil bool, d *Decoder) {
  24636. v, changed := f.DecMapUint8Uint32V(*vp, checkNil, true, d)
  24637. if changed {
  24638. *vp = v
  24639. }
  24640. }
  24641. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, checkNil bool, canChange bool,
  24642. d *Decoder) (_ map[uint8]uint32, changed bool) {
  24643. dd := d.d
  24644. cr := d.cr
  24645. if checkNil && dd.TryDecodeAsNil() {
  24646. if v != nil {
  24647. changed = true
  24648. }
  24649. return nil, changed
  24650. }
  24651. containerLen := dd.ReadMapStart()
  24652. if canChange && v == nil {
  24653. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24654. v = make(map[uint8]uint32, xlen)
  24655. changed = true
  24656. }
  24657. var mk uint8
  24658. var mv uint32
  24659. if containerLen > 0 {
  24660. for j := 0; j < containerLen; j++ {
  24661. if cr != nil {
  24662. cr.sendContainerState(containerMapKey)
  24663. }
  24664. mk = uint8(dd.DecodeUint(8))
  24665. if cr != nil {
  24666. cr.sendContainerState(containerMapValue)
  24667. }
  24668. mv = uint32(dd.DecodeUint(32))
  24669. if v != nil {
  24670. v[mk] = mv
  24671. }
  24672. }
  24673. } else if containerLen < 0 {
  24674. for j := 0; !dd.CheckBreak(); j++ {
  24675. if cr != nil {
  24676. cr.sendContainerState(containerMapKey)
  24677. }
  24678. mk = uint8(dd.DecodeUint(8))
  24679. if cr != nil {
  24680. cr.sendContainerState(containerMapValue)
  24681. }
  24682. mv = uint32(dd.DecodeUint(32))
  24683. if v != nil {
  24684. v[mk] = mv
  24685. }
  24686. }
  24687. }
  24688. if cr != nil {
  24689. cr.sendContainerState(containerMapEnd)
  24690. }
  24691. return v, changed
  24692. }
  24693. func (f *decFnInfo) fastpathDecMapUint8Uint64R(rv reflect.Value) {
  24694. if rv.CanAddr() {
  24695. vp := rv.Addr().Interface().(*map[uint8]uint64)
  24696. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  24697. if changed {
  24698. *vp = v
  24699. }
  24700. } else {
  24701. v := rv.Interface().(map[uint8]uint64)
  24702. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  24703. }
  24704. }
  24705. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, checkNil bool, d *Decoder) {
  24706. v, changed := f.DecMapUint8Uint64V(*vp, checkNil, true, d)
  24707. if changed {
  24708. *vp = v
  24709. }
  24710. }
  24711. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, checkNil bool, canChange bool,
  24712. d *Decoder) (_ map[uint8]uint64, changed bool) {
  24713. dd := d.d
  24714. cr := d.cr
  24715. if checkNil && dd.TryDecodeAsNil() {
  24716. if v != nil {
  24717. changed = true
  24718. }
  24719. return nil, changed
  24720. }
  24721. containerLen := dd.ReadMapStart()
  24722. if canChange && v == nil {
  24723. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24724. v = make(map[uint8]uint64, xlen)
  24725. changed = true
  24726. }
  24727. var mk uint8
  24728. var mv uint64
  24729. if containerLen > 0 {
  24730. for j := 0; j < containerLen; j++ {
  24731. if cr != nil {
  24732. cr.sendContainerState(containerMapKey)
  24733. }
  24734. mk = uint8(dd.DecodeUint(8))
  24735. if cr != nil {
  24736. cr.sendContainerState(containerMapValue)
  24737. }
  24738. mv = dd.DecodeUint(64)
  24739. if v != nil {
  24740. v[mk] = mv
  24741. }
  24742. }
  24743. } else if containerLen < 0 {
  24744. for j := 0; !dd.CheckBreak(); j++ {
  24745. if cr != nil {
  24746. cr.sendContainerState(containerMapKey)
  24747. }
  24748. mk = uint8(dd.DecodeUint(8))
  24749. if cr != nil {
  24750. cr.sendContainerState(containerMapValue)
  24751. }
  24752. mv = dd.DecodeUint(64)
  24753. if v != nil {
  24754. v[mk] = mv
  24755. }
  24756. }
  24757. }
  24758. if cr != nil {
  24759. cr.sendContainerState(containerMapEnd)
  24760. }
  24761. return v, changed
  24762. }
  24763. func (f *decFnInfo) fastpathDecMapUint8UintptrR(rv reflect.Value) {
  24764. if rv.CanAddr() {
  24765. vp := rv.Addr().Interface().(*map[uint8]uintptr)
  24766. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  24767. if changed {
  24768. *vp = v
  24769. }
  24770. } else {
  24771. v := rv.Interface().(map[uint8]uintptr)
  24772. fastpathTV.DecMapUint8UintptrV(v, fastpathCheckNilFalse, false, f.d)
  24773. }
  24774. }
  24775. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, checkNil bool, d *Decoder) {
  24776. v, changed := f.DecMapUint8UintptrV(*vp, checkNil, true, d)
  24777. if changed {
  24778. *vp = v
  24779. }
  24780. }
  24781. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, checkNil bool, canChange bool,
  24782. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  24783. dd := d.d
  24784. cr := d.cr
  24785. if checkNil && dd.TryDecodeAsNil() {
  24786. if v != nil {
  24787. changed = true
  24788. }
  24789. return nil, changed
  24790. }
  24791. containerLen := dd.ReadMapStart()
  24792. if canChange && v == nil {
  24793. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24794. v = make(map[uint8]uintptr, xlen)
  24795. changed = true
  24796. }
  24797. var mk uint8
  24798. var mv uintptr
  24799. if containerLen > 0 {
  24800. for j := 0; j < containerLen; j++ {
  24801. if cr != nil {
  24802. cr.sendContainerState(containerMapKey)
  24803. }
  24804. mk = uint8(dd.DecodeUint(8))
  24805. if cr != nil {
  24806. cr.sendContainerState(containerMapValue)
  24807. }
  24808. mv = uintptr(dd.DecodeUint(uintBitsize))
  24809. if v != nil {
  24810. v[mk] = mv
  24811. }
  24812. }
  24813. } else if containerLen < 0 {
  24814. for j := 0; !dd.CheckBreak(); j++ {
  24815. if cr != nil {
  24816. cr.sendContainerState(containerMapKey)
  24817. }
  24818. mk = uint8(dd.DecodeUint(8))
  24819. if cr != nil {
  24820. cr.sendContainerState(containerMapValue)
  24821. }
  24822. mv = uintptr(dd.DecodeUint(uintBitsize))
  24823. if v != nil {
  24824. v[mk] = mv
  24825. }
  24826. }
  24827. }
  24828. if cr != nil {
  24829. cr.sendContainerState(containerMapEnd)
  24830. }
  24831. return v, changed
  24832. }
  24833. func (f *decFnInfo) fastpathDecMapUint8IntR(rv reflect.Value) {
  24834. if rv.CanAddr() {
  24835. vp := rv.Addr().Interface().(*map[uint8]int)
  24836. v, changed := fastpathTV.DecMapUint8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  24837. if changed {
  24838. *vp = v
  24839. }
  24840. } else {
  24841. v := rv.Interface().(map[uint8]int)
  24842. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, f.d)
  24843. }
  24844. }
  24845. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, checkNil bool, d *Decoder) {
  24846. v, changed := f.DecMapUint8IntV(*vp, checkNil, true, d)
  24847. if changed {
  24848. *vp = v
  24849. }
  24850. }
  24851. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, checkNil bool, canChange bool,
  24852. d *Decoder) (_ map[uint8]int, changed bool) {
  24853. dd := d.d
  24854. cr := d.cr
  24855. if checkNil && dd.TryDecodeAsNil() {
  24856. if v != nil {
  24857. changed = true
  24858. }
  24859. return nil, changed
  24860. }
  24861. containerLen := dd.ReadMapStart()
  24862. if canChange && v == nil {
  24863. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24864. v = make(map[uint8]int, xlen)
  24865. changed = true
  24866. }
  24867. var mk uint8
  24868. var mv int
  24869. if containerLen > 0 {
  24870. for j := 0; j < containerLen; j++ {
  24871. if cr != nil {
  24872. cr.sendContainerState(containerMapKey)
  24873. }
  24874. mk = uint8(dd.DecodeUint(8))
  24875. if cr != nil {
  24876. cr.sendContainerState(containerMapValue)
  24877. }
  24878. mv = int(dd.DecodeInt(intBitsize))
  24879. if v != nil {
  24880. v[mk] = mv
  24881. }
  24882. }
  24883. } else if containerLen < 0 {
  24884. for j := 0; !dd.CheckBreak(); j++ {
  24885. if cr != nil {
  24886. cr.sendContainerState(containerMapKey)
  24887. }
  24888. mk = uint8(dd.DecodeUint(8))
  24889. if cr != nil {
  24890. cr.sendContainerState(containerMapValue)
  24891. }
  24892. mv = int(dd.DecodeInt(intBitsize))
  24893. if v != nil {
  24894. v[mk] = mv
  24895. }
  24896. }
  24897. }
  24898. if cr != nil {
  24899. cr.sendContainerState(containerMapEnd)
  24900. }
  24901. return v, changed
  24902. }
  24903. func (f *decFnInfo) fastpathDecMapUint8Int8R(rv reflect.Value) {
  24904. if rv.CanAddr() {
  24905. vp := rv.Addr().Interface().(*map[uint8]int8)
  24906. v, changed := fastpathTV.DecMapUint8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  24907. if changed {
  24908. *vp = v
  24909. }
  24910. } else {
  24911. v := rv.Interface().(map[uint8]int8)
  24912. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, f.d)
  24913. }
  24914. }
  24915. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, checkNil bool, d *Decoder) {
  24916. v, changed := f.DecMapUint8Int8V(*vp, checkNil, true, d)
  24917. if changed {
  24918. *vp = v
  24919. }
  24920. }
  24921. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, checkNil bool, canChange bool,
  24922. d *Decoder) (_ map[uint8]int8, changed bool) {
  24923. dd := d.d
  24924. cr := d.cr
  24925. if checkNil && dd.TryDecodeAsNil() {
  24926. if v != nil {
  24927. changed = true
  24928. }
  24929. return nil, changed
  24930. }
  24931. containerLen := dd.ReadMapStart()
  24932. if canChange && v == nil {
  24933. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24934. v = make(map[uint8]int8, xlen)
  24935. changed = true
  24936. }
  24937. var mk uint8
  24938. var mv int8
  24939. if containerLen > 0 {
  24940. for j := 0; j < containerLen; j++ {
  24941. if cr != nil {
  24942. cr.sendContainerState(containerMapKey)
  24943. }
  24944. mk = uint8(dd.DecodeUint(8))
  24945. if cr != nil {
  24946. cr.sendContainerState(containerMapValue)
  24947. }
  24948. mv = int8(dd.DecodeInt(8))
  24949. if v != nil {
  24950. v[mk] = mv
  24951. }
  24952. }
  24953. } else if containerLen < 0 {
  24954. for j := 0; !dd.CheckBreak(); j++ {
  24955. if cr != nil {
  24956. cr.sendContainerState(containerMapKey)
  24957. }
  24958. mk = uint8(dd.DecodeUint(8))
  24959. if cr != nil {
  24960. cr.sendContainerState(containerMapValue)
  24961. }
  24962. mv = int8(dd.DecodeInt(8))
  24963. if v != nil {
  24964. v[mk] = mv
  24965. }
  24966. }
  24967. }
  24968. if cr != nil {
  24969. cr.sendContainerState(containerMapEnd)
  24970. }
  24971. return v, changed
  24972. }
  24973. func (f *decFnInfo) fastpathDecMapUint8Int16R(rv reflect.Value) {
  24974. if rv.CanAddr() {
  24975. vp := rv.Addr().Interface().(*map[uint8]int16)
  24976. v, changed := fastpathTV.DecMapUint8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  24977. if changed {
  24978. *vp = v
  24979. }
  24980. } else {
  24981. v := rv.Interface().(map[uint8]int16)
  24982. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, f.d)
  24983. }
  24984. }
  24985. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, checkNil bool, d *Decoder) {
  24986. v, changed := f.DecMapUint8Int16V(*vp, checkNil, true, d)
  24987. if changed {
  24988. *vp = v
  24989. }
  24990. }
  24991. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, checkNil bool, canChange bool,
  24992. d *Decoder) (_ map[uint8]int16, changed bool) {
  24993. dd := d.d
  24994. cr := d.cr
  24995. if checkNil && dd.TryDecodeAsNil() {
  24996. if v != nil {
  24997. changed = true
  24998. }
  24999. return nil, changed
  25000. }
  25001. containerLen := dd.ReadMapStart()
  25002. if canChange && v == nil {
  25003. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25004. v = make(map[uint8]int16, xlen)
  25005. changed = true
  25006. }
  25007. var mk uint8
  25008. var mv int16
  25009. if containerLen > 0 {
  25010. for j := 0; j < containerLen; j++ {
  25011. if cr != nil {
  25012. cr.sendContainerState(containerMapKey)
  25013. }
  25014. mk = uint8(dd.DecodeUint(8))
  25015. if cr != nil {
  25016. cr.sendContainerState(containerMapValue)
  25017. }
  25018. mv = int16(dd.DecodeInt(16))
  25019. if v != nil {
  25020. v[mk] = mv
  25021. }
  25022. }
  25023. } else if containerLen < 0 {
  25024. for j := 0; !dd.CheckBreak(); j++ {
  25025. if cr != nil {
  25026. cr.sendContainerState(containerMapKey)
  25027. }
  25028. mk = uint8(dd.DecodeUint(8))
  25029. if cr != nil {
  25030. cr.sendContainerState(containerMapValue)
  25031. }
  25032. mv = int16(dd.DecodeInt(16))
  25033. if v != nil {
  25034. v[mk] = mv
  25035. }
  25036. }
  25037. }
  25038. if cr != nil {
  25039. cr.sendContainerState(containerMapEnd)
  25040. }
  25041. return v, changed
  25042. }
  25043. func (f *decFnInfo) fastpathDecMapUint8Int32R(rv reflect.Value) {
  25044. if rv.CanAddr() {
  25045. vp := rv.Addr().Interface().(*map[uint8]int32)
  25046. v, changed := fastpathTV.DecMapUint8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  25047. if changed {
  25048. *vp = v
  25049. }
  25050. } else {
  25051. v := rv.Interface().(map[uint8]int32)
  25052. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, f.d)
  25053. }
  25054. }
  25055. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, checkNil bool, d *Decoder) {
  25056. v, changed := f.DecMapUint8Int32V(*vp, checkNil, true, d)
  25057. if changed {
  25058. *vp = v
  25059. }
  25060. }
  25061. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, checkNil bool, canChange bool,
  25062. d *Decoder) (_ map[uint8]int32, changed bool) {
  25063. dd := d.d
  25064. cr := d.cr
  25065. if checkNil && dd.TryDecodeAsNil() {
  25066. if v != nil {
  25067. changed = true
  25068. }
  25069. return nil, changed
  25070. }
  25071. containerLen := dd.ReadMapStart()
  25072. if canChange && v == nil {
  25073. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25074. v = make(map[uint8]int32, xlen)
  25075. changed = true
  25076. }
  25077. var mk uint8
  25078. var mv int32
  25079. if containerLen > 0 {
  25080. for j := 0; j < containerLen; j++ {
  25081. if cr != nil {
  25082. cr.sendContainerState(containerMapKey)
  25083. }
  25084. mk = uint8(dd.DecodeUint(8))
  25085. if cr != nil {
  25086. cr.sendContainerState(containerMapValue)
  25087. }
  25088. mv = int32(dd.DecodeInt(32))
  25089. if v != nil {
  25090. v[mk] = mv
  25091. }
  25092. }
  25093. } else if containerLen < 0 {
  25094. for j := 0; !dd.CheckBreak(); j++ {
  25095. if cr != nil {
  25096. cr.sendContainerState(containerMapKey)
  25097. }
  25098. mk = uint8(dd.DecodeUint(8))
  25099. if cr != nil {
  25100. cr.sendContainerState(containerMapValue)
  25101. }
  25102. mv = int32(dd.DecodeInt(32))
  25103. if v != nil {
  25104. v[mk] = mv
  25105. }
  25106. }
  25107. }
  25108. if cr != nil {
  25109. cr.sendContainerState(containerMapEnd)
  25110. }
  25111. return v, changed
  25112. }
  25113. func (f *decFnInfo) fastpathDecMapUint8Int64R(rv reflect.Value) {
  25114. if rv.CanAddr() {
  25115. vp := rv.Addr().Interface().(*map[uint8]int64)
  25116. v, changed := fastpathTV.DecMapUint8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  25117. if changed {
  25118. *vp = v
  25119. }
  25120. } else {
  25121. v := rv.Interface().(map[uint8]int64)
  25122. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, f.d)
  25123. }
  25124. }
  25125. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, checkNil bool, d *Decoder) {
  25126. v, changed := f.DecMapUint8Int64V(*vp, checkNil, true, d)
  25127. if changed {
  25128. *vp = v
  25129. }
  25130. }
  25131. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, checkNil bool, canChange bool,
  25132. d *Decoder) (_ map[uint8]int64, changed bool) {
  25133. dd := d.d
  25134. cr := d.cr
  25135. if checkNil && dd.TryDecodeAsNil() {
  25136. if v != nil {
  25137. changed = true
  25138. }
  25139. return nil, changed
  25140. }
  25141. containerLen := dd.ReadMapStart()
  25142. if canChange && v == nil {
  25143. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25144. v = make(map[uint8]int64, xlen)
  25145. changed = true
  25146. }
  25147. var mk uint8
  25148. var mv int64
  25149. if containerLen > 0 {
  25150. for j := 0; j < containerLen; j++ {
  25151. if cr != nil {
  25152. cr.sendContainerState(containerMapKey)
  25153. }
  25154. mk = uint8(dd.DecodeUint(8))
  25155. if cr != nil {
  25156. cr.sendContainerState(containerMapValue)
  25157. }
  25158. mv = dd.DecodeInt(64)
  25159. if v != nil {
  25160. v[mk] = mv
  25161. }
  25162. }
  25163. } else if containerLen < 0 {
  25164. for j := 0; !dd.CheckBreak(); j++ {
  25165. if cr != nil {
  25166. cr.sendContainerState(containerMapKey)
  25167. }
  25168. mk = uint8(dd.DecodeUint(8))
  25169. if cr != nil {
  25170. cr.sendContainerState(containerMapValue)
  25171. }
  25172. mv = dd.DecodeInt(64)
  25173. if v != nil {
  25174. v[mk] = mv
  25175. }
  25176. }
  25177. }
  25178. if cr != nil {
  25179. cr.sendContainerState(containerMapEnd)
  25180. }
  25181. return v, changed
  25182. }
  25183. func (f *decFnInfo) fastpathDecMapUint8Float32R(rv reflect.Value) {
  25184. if rv.CanAddr() {
  25185. vp := rv.Addr().Interface().(*map[uint8]float32)
  25186. v, changed := fastpathTV.DecMapUint8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  25187. if changed {
  25188. *vp = v
  25189. }
  25190. } else {
  25191. v := rv.Interface().(map[uint8]float32)
  25192. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, f.d)
  25193. }
  25194. }
  25195. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, checkNil bool, d *Decoder) {
  25196. v, changed := f.DecMapUint8Float32V(*vp, checkNil, true, d)
  25197. if changed {
  25198. *vp = v
  25199. }
  25200. }
  25201. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, checkNil bool, canChange bool,
  25202. d *Decoder) (_ map[uint8]float32, changed bool) {
  25203. dd := d.d
  25204. cr := d.cr
  25205. if checkNil && dd.TryDecodeAsNil() {
  25206. if v != nil {
  25207. changed = true
  25208. }
  25209. return nil, changed
  25210. }
  25211. containerLen := dd.ReadMapStart()
  25212. if canChange && v == nil {
  25213. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25214. v = make(map[uint8]float32, xlen)
  25215. changed = true
  25216. }
  25217. var mk uint8
  25218. var mv float32
  25219. if containerLen > 0 {
  25220. for j := 0; j < containerLen; j++ {
  25221. if cr != nil {
  25222. cr.sendContainerState(containerMapKey)
  25223. }
  25224. mk = uint8(dd.DecodeUint(8))
  25225. if cr != nil {
  25226. cr.sendContainerState(containerMapValue)
  25227. }
  25228. mv = float32(dd.DecodeFloat(true))
  25229. if v != nil {
  25230. v[mk] = mv
  25231. }
  25232. }
  25233. } else if containerLen < 0 {
  25234. for j := 0; !dd.CheckBreak(); j++ {
  25235. if cr != nil {
  25236. cr.sendContainerState(containerMapKey)
  25237. }
  25238. mk = uint8(dd.DecodeUint(8))
  25239. if cr != nil {
  25240. cr.sendContainerState(containerMapValue)
  25241. }
  25242. mv = float32(dd.DecodeFloat(true))
  25243. if v != nil {
  25244. v[mk] = mv
  25245. }
  25246. }
  25247. }
  25248. if cr != nil {
  25249. cr.sendContainerState(containerMapEnd)
  25250. }
  25251. return v, changed
  25252. }
  25253. func (f *decFnInfo) fastpathDecMapUint8Float64R(rv reflect.Value) {
  25254. if rv.CanAddr() {
  25255. vp := rv.Addr().Interface().(*map[uint8]float64)
  25256. v, changed := fastpathTV.DecMapUint8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  25257. if changed {
  25258. *vp = v
  25259. }
  25260. } else {
  25261. v := rv.Interface().(map[uint8]float64)
  25262. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, f.d)
  25263. }
  25264. }
  25265. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, checkNil bool, d *Decoder) {
  25266. v, changed := f.DecMapUint8Float64V(*vp, checkNil, true, d)
  25267. if changed {
  25268. *vp = v
  25269. }
  25270. }
  25271. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, checkNil bool, canChange bool,
  25272. d *Decoder) (_ map[uint8]float64, changed bool) {
  25273. dd := d.d
  25274. cr := d.cr
  25275. if checkNil && dd.TryDecodeAsNil() {
  25276. if v != nil {
  25277. changed = true
  25278. }
  25279. return nil, changed
  25280. }
  25281. containerLen := dd.ReadMapStart()
  25282. if canChange && v == nil {
  25283. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25284. v = make(map[uint8]float64, xlen)
  25285. changed = true
  25286. }
  25287. var mk uint8
  25288. var mv float64
  25289. if containerLen > 0 {
  25290. for j := 0; j < containerLen; j++ {
  25291. if cr != nil {
  25292. cr.sendContainerState(containerMapKey)
  25293. }
  25294. mk = uint8(dd.DecodeUint(8))
  25295. if cr != nil {
  25296. cr.sendContainerState(containerMapValue)
  25297. }
  25298. mv = dd.DecodeFloat(false)
  25299. if v != nil {
  25300. v[mk] = mv
  25301. }
  25302. }
  25303. } else if containerLen < 0 {
  25304. for j := 0; !dd.CheckBreak(); j++ {
  25305. if cr != nil {
  25306. cr.sendContainerState(containerMapKey)
  25307. }
  25308. mk = uint8(dd.DecodeUint(8))
  25309. if cr != nil {
  25310. cr.sendContainerState(containerMapValue)
  25311. }
  25312. mv = dd.DecodeFloat(false)
  25313. if v != nil {
  25314. v[mk] = mv
  25315. }
  25316. }
  25317. }
  25318. if cr != nil {
  25319. cr.sendContainerState(containerMapEnd)
  25320. }
  25321. return v, changed
  25322. }
  25323. func (f *decFnInfo) fastpathDecMapUint8BoolR(rv reflect.Value) {
  25324. if rv.CanAddr() {
  25325. vp := rv.Addr().Interface().(*map[uint8]bool)
  25326. v, changed := fastpathTV.DecMapUint8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  25327. if changed {
  25328. *vp = v
  25329. }
  25330. } else {
  25331. v := rv.Interface().(map[uint8]bool)
  25332. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, f.d)
  25333. }
  25334. }
  25335. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, checkNil bool, d *Decoder) {
  25336. v, changed := f.DecMapUint8BoolV(*vp, checkNil, true, d)
  25337. if changed {
  25338. *vp = v
  25339. }
  25340. }
  25341. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, checkNil bool, canChange bool,
  25342. d *Decoder) (_ map[uint8]bool, changed bool) {
  25343. dd := d.d
  25344. cr := d.cr
  25345. if checkNil && dd.TryDecodeAsNil() {
  25346. if v != nil {
  25347. changed = true
  25348. }
  25349. return nil, changed
  25350. }
  25351. containerLen := dd.ReadMapStart()
  25352. if canChange && v == nil {
  25353. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  25354. v = make(map[uint8]bool, xlen)
  25355. changed = true
  25356. }
  25357. var mk uint8
  25358. var mv bool
  25359. if containerLen > 0 {
  25360. for j := 0; j < containerLen; j++ {
  25361. if cr != nil {
  25362. cr.sendContainerState(containerMapKey)
  25363. }
  25364. mk = uint8(dd.DecodeUint(8))
  25365. if cr != nil {
  25366. cr.sendContainerState(containerMapValue)
  25367. }
  25368. mv = dd.DecodeBool()
  25369. if v != nil {
  25370. v[mk] = mv
  25371. }
  25372. }
  25373. } else if containerLen < 0 {
  25374. for j := 0; !dd.CheckBreak(); j++ {
  25375. if cr != nil {
  25376. cr.sendContainerState(containerMapKey)
  25377. }
  25378. mk = uint8(dd.DecodeUint(8))
  25379. if cr != nil {
  25380. cr.sendContainerState(containerMapValue)
  25381. }
  25382. mv = dd.DecodeBool()
  25383. if v != nil {
  25384. v[mk] = mv
  25385. }
  25386. }
  25387. }
  25388. if cr != nil {
  25389. cr.sendContainerState(containerMapEnd)
  25390. }
  25391. return v, changed
  25392. }
  25393. func (f *decFnInfo) fastpathDecMapUint16IntfR(rv reflect.Value) {
  25394. if rv.CanAddr() {
  25395. vp := rv.Addr().Interface().(*map[uint16]interface{})
  25396. v, changed := fastpathTV.DecMapUint16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  25397. if changed {
  25398. *vp = v
  25399. }
  25400. } else {
  25401. v := rv.Interface().(map[uint16]interface{})
  25402. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, f.d)
  25403. }
  25404. }
  25405. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, checkNil bool, d *Decoder) {
  25406. v, changed := f.DecMapUint16IntfV(*vp, checkNil, true, d)
  25407. if changed {
  25408. *vp = v
  25409. }
  25410. }
  25411. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, checkNil bool, canChange bool,
  25412. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  25413. dd := d.d
  25414. cr := d.cr
  25415. if checkNil && dd.TryDecodeAsNil() {
  25416. if v != nil {
  25417. changed = true
  25418. }
  25419. return nil, changed
  25420. }
  25421. containerLen := dd.ReadMapStart()
  25422. if canChange && v == nil {
  25423. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  25424. v = make(map[uint16]interface{}, xlen)
  25425. changed = true
  25426. }
  25427. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  25428. var mk uint16
  25429. var mv interface{}
  25430. if containerLen > 0 {
  25431. for j := 0; j < containerLen; j++ {
  25432. if cr != nil {
  25433. cr.sendContainerState(containerMapKey)
  25434. }
  25435. mk = uint16(dd.DecodeUint(16))
  25436. if cr != nil {
  25437. cr.sendContainerState(containerMapValue)
  25438. }
  25439. if mapGet {
  25440. mv = v[mk]
  25441. } else {
  25442. mv = nil
  25443. }
  25444. d.decode(&mv)
  25445. if v != nil {
  25446. v[mk] = mv
  25447. }
  25448. }
  25449. } else if containerLen < 0 {
  25450. for j := 0; !dd.CheckBreak(); j++ {
  25451. if cr != nil {
  25452. cr.sendContainerState(containerMapKey)
  25453. }
  25454. mk = uint16(dd.DecodeUint(16))
  25455. if cr != nil {
  25456. cr.sendContainerState(containerMapValue)
  25457. }
  25458. if mapGet {
  25459. mv = v[mk]
  25460. } else {
  25461. mv = nil
  25462. }
  25463. d.decode(&mv)
  25464. if v != nil {
  25465. v[mk] = mv
  25466. }
  25467. }
  25468. }
  25469. if cr != nil {
  25470. cr.sendContainerState(containerMapEnd)
  25471. }
  25472. return v, changed
  25473. }
  25474. func (f *decFnInfo) fastpathDecMapUint16StringR(rv reflect.Value) {
  25475. if rv.CanAddr() {
  25476. vp := rv.Addr().Interface().(*map[uint16]string)
  25477. v, changed := fastpathTV.DecMapUint16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  25478. if changed {
  25479. *vp = v
  25480. }
  25481. } else {
  25482. v := rv.Interface().(map[uint16]string)
  25483. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, f.d)
  25484. }
  25485. }
  25486. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, checkNil bool, d *Decoder) {
  25487. v, changed := f.DecMapUint16StringV(*vp, checkNil, true, d)
  25488. if changed {
  25489. *vp = v
  25490. }
  25491. }
  25492. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, checkNil bool, canChange bool,
  25493. d *Decoder) (_ map[uint16]string, changed bool) {
  25494. dd := d.d
  25495. cr := d.cr
  25496. if checkNil && dd.TryDecodeAsNil() {
  25497. if v != nil {
  25498. changed = true
  25499. }
  25500. return nil, changed
  25501. }
  25502. containerLen := dd.ReadMapStart()
  25503. if canChange && v == nil {
  25504. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  25505. v = make(map[uint16]string, xlen)
  25506. changed = true
  25507. }
  25508. var mk uint16
  25509. var mv string
  25510. if containerLen > 0 {
  25511. for j := 0; j < containerLen; j++ {
  25512. if cr != nil {
  25513. cr.sendContainerState(containerMapKey)
  25514. }
  25515. mk = uint16(dd.DecodeUint(16))
  25516. if cr != nil {
  25517. cr.sendContainerState(containerMapValue)
  25518. }
  25519. mv = dd.DecodeString()
  25520. if v != nil {
  25521. v[mk] = mv
  25522. }
  25523. }
  25524. } else if containerLen < 0 {
  25525. for j := 0; !dd.CheckBreak(); j++ {
  25526. if cr != nil {
  25527. cr.sendContainerState(containerMapKey)
  25528. }
  25529. mk = uint16(dd.DecodeUint(16))
  25530. if cr != nil {
  25531. cr.sendContainerState(containerMapValue)
  25532. }
  25533. mv = dd.DecodeString()
  25534. if v != nil {
  25535. v[mk] = mv
  25536. }
  25537. }
  25538. }
  25539. if cr != nil {
  25540. cr.sendContainerState(containerMapEnd)
  25541. }
  25542. return v, changed
  25543. }
  25544. func (f *decFnInfo) fastpathDecMapUint16UintR(rv reflect.Value) {
  25545. if rv.CanAddr() {
  25546. vp := rv.Addr().Interface().(*map[uint16]uint)
  25547. v, changed := fastpathTV.DecMapUint16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  25548. if changed {
  25549. *vp = v
  25550. }
  25551. } else {
  25552. v := rv.Interface().(map[uint16]uint)
  25553. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, f.d)
  25554. }
  25555. }
  25556. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, checkNil bool, d *Decoder) {
  25557. v, changed := f.DecMapUint16UintV(*vp, checkNil, true, d)
  25558. if changed {
  25559. *vp = v
  25560. }
  25561. }
  25562. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, checkNil bool, canChange bool,
  25563. d *Decoder) (_ map[uint16]uint, changed bool) {
  25564. dd := d.d
  25565. cr := d.cr
  25566. if checkNil && dd.TryDecodeAsNil() {
  25567. if v != nil {
  25568. changed = true
  25569. }
  25570. return nil, changed
  25571. }
  25572. containerLen := dd.ReadMapStart()
  25573. if canChange && v == nil {
  25574. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25575. v = make(map[uint16]uint, xlen)
  25576. changed = true
  25577. }
  25578. var mk uint16
  25579. var mv uint
  25580. if containerLen > 0 {
  25581. for j := 0; j < containerLen; j++ {
  25582. if cr != nil {
  25583. cr.sendContainerState(containerMapKey)
  25584. }
  25585. mk = uint16(dd.DecodeUint(16))
  25586. if cr != nil {
  25587. cr.sendContainerState(containerMapValue)
  25588. }
  25589. mv = uint(dd.DecodeUint(uintBitsize))
  25590. if v != nil {
  25591. v[mk] = mv
  25592. }
  25593. }
  25594. } else if containerLen < 0 {
  25595. for j := 0; !dd.CheckBreak(); j++ {
  25596. if cr != nil {
  25597. cr.sendContainerState(containerMapKey)
  25598. }
  25599. mk = uint16(dd.DecodeUint(16))
  25600. if cr != nil {
  25601. cr.sendContainerState(containerMapValue)
  25602. }
  25603. mv = uint(dd.DecodeUint(uintBitsize))
  25604. if v != nil {
  25605. v[mk] = mv
  25606. }
  25607. }
  25608. }
  25609. if cr != nil {
  25610. cr.sendContainerState(containerMapEnd)
  25611. }
  25612. return v, changed
  25613. }
  25614. func (f *decFnInfo) fastpathDecMapUint16Uint8R(rv reflect.Value) {
  25615. if rv.CanAddr() {
  25616. vp := rv.Addr().Interface().(*map[uint16]uint8)
  25617. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  25618. if changed {
  25619. *vp = v
  25620. }
  25621. } else {
  25622. v := rv.Interface().(map[uint16]uint8)
  25623. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  25624. }
  25625. }
  25626. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, checkNil bool, d *Decoder) {
  25627. v, changed := f.DecMapUint16Uint8V(*vp, checkNil, true, d)
  25628. if changed {
  25629. *vp = v
  25630. }
  25631. }
  25632. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, checkNil bool, canChange bool,
  25633. d *Decoder) (_ map[uint16]uint8, changed bool) {
  25634. dd := d.d
  25635. cr := d.cr
  25636. if checkNil && dd.TryDecodeAsNil() {
  25637. if v != nil {
  25638. changed = true
  25639. }
  25640. return nil, changed
  25641. }
  25642. containerLen := dd.ReadMapStart()
  25643. if canChange && v == nil {
  25644. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25645. v = make(map[uint16]uint8, xlen)
  25646. changed = true
  25647. }
  25648. var mk uint16
  25649. var mv uint8
  25650. if containerLen > 0 {
  25651. for j := 0; j < containerLen; j++ {
  25652. if cr != nil {
  25653. cr.sendContainerState(containerMapKey)
  25654. }
  25655. mk = uint16(dd.DecodeUint(16))
  25656. if cr != nil {
  25657. cr.sendContainerState(containerMapValue)
  25658. }
  25659. mv = uint8(dd.DecodeUint(8))
  25660. if v != nil {
  25661. v[mk] = mv
  25662. }
  25663. }
  25664. } else if containerLen < 0 {
  25665. for j := 0; !dd.CheckBreak(); j++ {
  25666. if cr != nil {
  25667. cr.sendContainerState(containerMapKey)
  25668. }
  25669. mk = uint16(dd.DecodeUint(16))
  25670. if cr != nil {
  25671. cr.sendContainerState(containerMapValue)
  25672. }
  25673. mv = uint8(dd.DecodeUint(8))
  25674. if v != nil {
  25675. v[mk] = mv
  25676. }
  25677. }
  25678. }
  25679. if cr != nil {
  25680. cr.sendContainerState(containerMapEnd)
  25681. }
  25682. return v, changed
  25683. }
  25684. func (f *decFnInfo) fastpathDecMapUint16Uint16R(rv reflect.Value) {
  25685. if rv.CanAddr() {
  25686. vp := rv.Addr().Interface().(*map[uint16]uint16)
  25687. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  25688. if changed {
  25689. *vp = v
  25690. }
  25691. } else {
  25692. v := rv.Interface().(map[uint16]uint16)
  25693. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  25694. }
  25695. }
  25696. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, checkNil bool, d *Decoder) {
  25697. v, changed := f.DecMapUint16Uint16V(*vp, checkNil, true, d)
  25698. if changed {
  25699. *vp = v
  25700. }
  25701. }
  25702. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, checkNil bool, canChange bool,
  25703. d *Decoder) (_ map[uint16]uint16, changed bool) {
  25704. dd := d.d
  25705. cr := d.cr
  25706. if checkNil && dd.TryDecodeAsNil() {
  25707. if v != nil {
  25708. changed = true
  25709. }
  25710. return nil, changed
  25711. }
  25712. containerLen := dd.ReadMapStart()
  25713. if canChange && v == nil {
  25714. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25715. v = make(map[uint16]uint16, xlen)
  25716. changed = true
  25717. }
  25718. var mk uint16
  25719. var mv uint16
  25720. if containerLen > 0 {
  25721. for j := 0; j < containerLen; j++ {
  25722. if cr != nil {
  25723. cr.sendContainerState(containerMapKey)
  25724. }
  25725. mk = uint16(dd.DecodeUint(16))
  25726. if cr != nil {
  25727. cr.sendContainerState(containerMapValue)
  25728. }
  25729. mv = uint16(dd.DecodeUint(16))
  25730. if v != nil {
  25731. v[mk] = mv
  25732. }
  25733. }
  25734. } else if containerLen < 0 {
  25735. for j := 0; !dd.CheckBreak(); j++ {
  25736. if cr != nil {
  25737. cr.sendContainerState(containerMapKey)
  25738. }
  25739. mk = uint16(dd.DecodeUint(16))
  25740. if cr != nil {
  25741. cr.sendContainerState(containerMapValue)
  25742. }
  25743. mv = uint16(dd.DecodeUint(16))
  25744. if v != nil {
  25745. v[mk] = mv
  25746. }
  25747. }
  25748. }
  25749. if cr != nil {
  25750. cr.sendContainerState(containerMapEnd)
  25751. }
  25752. return v, changed
  25753. }
  25754. func (f *decFnInfo) fastpathDecMapUint16Uint32R(rv reflect.Value) {
  25755. if rv.CanAddr() {
  25756. vp := rv.Addr().Interface().(*map[uint16]uint32)
  25757. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  25758. if changed {
  25759. *vp = v
  25760. }
  25761. } else {
  25762. v := rv.Interface().(map[uint16]uint32)
  25763. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  25764. }
  25765. }
  25766. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, checkNil bool, d *Decoder) {
  25767. v, changed := f.DecMapUint16Uint32V(*vp, checkNil, true, d)
  25768. if changed {
  25769. *vp = v
  25770. }
  25771. }
  25772. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, checkNil bool, canChange bool,
  25773. d *Decoder) (_ map[uint16]uint32, changed bool) {
  25774. dd := d.d
  25775. cr := d.cr
  25776. if checkNil && dd.TryDecodeAsNil() {
  25777. if v != nil {
  25778. changed = true
  25779. }
  25780. return nil, changed
  25781. }
  25782. containerLen := dd.ReadMapStart()
  25783. if canChange && v == nil {
  25784. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25785. v = make(map[uint16]uint32, xlen)
  25786. changed = true
  25787. }
  25788. var mk uint16
  25789. var mv uint32
  25790. if containerLen > 0 {
  25791. for j := 0; j < containerLen; j++ {
  25792. if cr != nil {
  25793. cr.sendContainerState(containerMapKey)
  25794. }
  25795. mk = uint16(dd.DecodeUint(16))
  25796. if cr != nil {
  25797. cr.sendContainerState(containerMapValue)
  25798. }
  25799. mv = uint32(dd.DecodeUint(32))
  25800. if v != nil {
  25801. v[mk] = mv
  25802. }
  25803. }
  25804. } else if containerLen < 0 {
  25805. for j := 0; !dd.CheckBreak(); j++ {
  25806. if cr != nil {
  25807. cr.sendContainerState(containerMapKey)
  25808. }
  25809. mk = uint16(dd.DecodeUint(16))
  25810. if cr != nil {
  25811. cr.sendContainerState(containerMapValue)
  25812. }
  25813. mv = uint32(dd.DecodeUint(32))
  25814. if v != nil {
  25815. v[mk] = mv
  25816. }
  25817. }
  25818. }
  25819. if cr != nil {
  25820. cr.sendContainerState(containerMapEnd)
  25821. }
  25822. return v, changed
  25823. }
  25824. func (f *decFnInfo) fastpathDecMapUint16Uint64R(rv reflect.Value) {
  25825. if rv.CanAddr() {
  25826. vp := rv.Addr().Interface().(*map[uint16]uint64)
  25827. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  25828. if changed {
  25829. *vp = v
  25830. }
  25831. } else {
  25832. v := rv.Interface().(map[uint16]uint64)
  25833. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  25834. }
  25835. }
  25836. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, checkNil bool, d *Decoder) {
  25837. v, changed := f.DecMapUint16Uint64V(*vp, checkNil, true, d)
  25838. if changed {
  25839. *vp = v
  25840. }
  25841. }
  25842. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, checkNil bool, canChange bool,
  25843. d *Decoder) (_ map[uint16]uint64, changed bool) {
  25844. dd := d.d
  25845. cr := d.cr
  25846. if checkNil && dd.TryDecodeAsNil() {
  25847. if v != nil {
  25848. changed = true
  25849. }
  25850. return nil, changed
  25851. }
  25852. containerLen := dd.ReadMapStart()
  25853. if canChange && v == nil {
  25854. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25855. v = make(map[uint16]uint64, xlen)
  25856. changed = true
  25857. }
  25858. var mk uint16
  25859. var mv uint64
  25860. if containerLen > 0 {
  25861. for j := 0; j < containerLen; j++ {
  25862. if cr != nil {
  25863. cr.sendContainerState(containerMapKey)
  25864. }
  25865. mk = uint16(dd.DecodeUint(16))
  25866. if cr != nil {
  25867. cr.sendContainerState(containerMapValue)
  25868. }
  25869. mv = dd.DecodeUint(64)
  25870. if v != nil {
  25871. v[mk] = mv
  25872. }
  25873. }
  25874. } else if containerLen < 0 {
  25875. for j := 0; !dd.CheckBreak(); j++ {
  25876. if cr != nil {
  25877. cr.sendContainerState(containerMapKey)
  25878. }
  25879. mk = uint16(dd.DecodeUint(16))
  25880. if cr != nil {
  25881. cr.sendContainerState(containerMapValue)
  25882. }
  25883. mv = dd.DecodeUint(64)
  25884. if v != nil {
  25885. v[mk] = mv
  25886. }
  25887. }
  25888. }
  25889. if cr != nil {
  25890. cr.sendContainerState(containerMapEnd)
  25891. }
  25892. return v, changed
  25893. }
  25894. func (f *decFnInfo) fastpathDecMapUint16UintptrR(rv reflect.Value) {
  25895. if rv.CanAddr() {
  25896. vp := rv.Addr().Interface().(*map[uint16]uintptr)
  25897. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  25898. if changed {
  25899. *vp = v
  25900. }
  25901. } else {
  25902. v := rv.Interface().(map[uint16]uintptr)
  25903. fastpathTV.DecMapUint16UintptrV(v, fastpathCheckNilFalse, false, f.d)
  25904. }
  25905. }
  25906. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, checkNil bool, d *Decoder) {
  25907. v, changed := f.DecMapUint16UintptrV(*vp, checkNil, true, d)
  25908. if changed {
  25909. *vp = v
  25910. }
  25911. }
  25912. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, checkNil bool, canChange bool,
  25913. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  25914. dd := d.d
  25915. cr := d.cr
  25916. if checkNil && dd.TryDecodeAsNil() {
  25917. if v != nil {
  25918. changed = true
  25919. }
  25920. return nil, changed
  25921. }
  25922. containerLen := dd.ReadMapStart()
  25923. if canChange && v == nil {
  25924. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25925. v = make(map[uint16]uintptr, xlen)
  25926. changed = true
  25927. }
  25928. var mk uint16
  25929. var mv uintptr
  25930. if containerLen > 0 {
  25931. for j := 0; j < containerLen; j++ {
  25932. if cr != nil {
  25933. cr.sendContainerState(containerMapKey)
  25934. }
  25935. mk = uint16(dd.DecodeUint(16))
  25936. if cr != nil {
  25937. cr.sendContainerState(containerMapValue)
  25938. }
  25939. mv = uintptr(dd.DecodeUint(uintBitsize))
  25940. if v != nil {
  25941. v[mk] = mv
  25942. }
  25943. }
  25944. } else if containerLen < 0 {
  25945. for j := 0; !dd.CheckBreak(); j++ {
  25946. if cr != nil {
  25947. cr.sendContainerState(containerMapKey)
  25948. }
  25949. mk = uint16(dd.DecodeUint(16))
  25950. if cr != nil {
  25951. cr.sendContainerState(containerMapValue)
  25952. }
  25953. mv = uintptr(dd.DecodeUint(uintBitsize))
  25954. if v != nil {
  25955. v[mk] = mv
  25956. }
  25957. }
  25958. }
  25959. if cr != nil {
  25960. cr.sendContainerState(containerMapEnd)
  25961. }
  25962. return v, changed
  25963. }
  25964. func (f *decFnInfo) fastpathDecMapUint16IntR(rv reflect.Value) {
  25965. if rv.CanAddr() {
  25966. vp := rv.Addr().Interface().(*map[uint16]int)
  25967. v, changed := fastpathTV.DecMapUint16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  25968. if changed {
  25969. *vp = v
  25970. }
  25971. } else {
  25972. v := rv.Interface().(map[uint16]int)
  25973. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, f.d)
  25974. }
  25975. }
  25976. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, checkNil bool, d *Decoder) {
  25977. v, changed := f.DecMapUint16IntV(*vp, checkNil, true, d)
  25978. if changed {
  25979. *vp = v
  25980. }
  25981. }
  25982. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, checkNil bool, canChange bool,
  25983. d *Decoder) (_ map[uint16]int, changed bool) {
  25984. dd := d.d
  25985. cr := d.cr
  25986. if checkNil && dd.TryDecodeAsNil() {
  25987. if v != nil {
  25988. changed = true
  25989. }
  25990. return nil, changed
  25991. }
  25992. containerLen := dd.ReadMapStart()
  25993. if canChange && v == nil {
  25994. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25995. v = make(map[uint16]int, xlen)
  25996. changed = true
  25997. }
  25998. var mk uint16
  25999. var mv int
  26000. if containerLen > 0 {
  26001. for j := 0; j < containerLen; j++ {
  26002. if cr != nil {
  26003. cr.sendContainerState(containerMapKey)
  26004. }
  26005. mk = uint16(dd.DecodeUint(16))
  26006. if cr != nil {
  26007. cr.sendContainerState(containerMapValue)
  26008. }
  26009. mv = int(dd.DecodeInt(intBitsize))
  26010. if v != nil {
  26011. v[mk] = mv
  26012. }
  26013. }
  26014. } else if containerLen < 0 {
  26015. for j := 0; !dd.CheckBreak(); j++ {
  26016. if cr != nil {
  26017. cr.sendContainerState(containerMapKey)
  26018. }
  26019. mk = uint16(dd.DecodeUint(16))
  26020. if cr != nil {
  26021. cr.sendContainerState(containerMapValue)
  26022. }
  26023. mv = int(dd.DecodeInt(intBitsize))
  26024. if v != nil {
  26025. v[mk] = mv
  26026. }
  26027. }
  26028. }
  26029. if cr != nil {
  26030. cr.sendContainerState(containerMapEnd)
  26031. }
  26032. return v, changed
  26033. }
  26034. func (f *decFnInfo) fastpathDecMapUint16Int8R(rv reflect.Value) {
  26035. if rv.CanAddr() {
  26036. vp := rv.Addr().Interface().(*map[uint16]int8)
  26037. v, changed := fastpathTV.DecMapUint16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  26038. if changed {
  26039. *vp = v
  26040. }
  26041. } else {
  26042. v := rv.Interface().(map[uint16]int8)
  26043. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, f.d)
  26044. }
  26045. }
  26046. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, checkNil bool, d *Decoder) {
  26047. v, changed := f.DecMapUint16Int8V(*vp, checkNil, true, d)
  26048. if changed {
  26049. *vp = v
  26050. }
  26051. }
  26052. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, checkNil bool, canChange bool,
  26053. d *Decoder) (_ map[uint16]int8, changed bool) {
  26054. dd := d.d
  26055. cr := d.cr
  26056. if checkNil && dd.TryDecodeAsNil() {
  26057. if v != nil {
  26058. changed = true
  26059. }
  26060. return nil, changed
  26061. }
  26062. containerLen := dd.ReadMapStart()
  26063. if canChange && v == nil {
  26064. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26065. v = make(map[uint16]int8, xlen)
  26066. changed = true
  26067. }
  26068. var mk uint16
  26069. var mv int8
  26070. if containerLen > 0 {
  26071. for j := 0; j < containerLen; j++ {
  26072. if cr != nil {
  26073. cr.sendContainerState(containerMapKey)
  26074. }
  26075. mk = uint16(dd.DecodeUint(16))
  26076. if cr != nil {
  26077. cr.sendContainerState(containerMapValue)
  26078. }
  26079. mv = int8(dd.DecodeInt(8))
  26080. if v != nil {
  26081. v[mk] = mv
  26082. }
  26083. }
  26084. } else if containerLen < 0 {
  26085. for j := 0; !dd.CheckBreak(); j++ {
  26086. if cr != nil {
  26087. cr.sendContainerState(containerMapKey)
  26088. }
  26089. mk = uint16(dd.DecodeUint(16))
  26090. if cr != nil {
  26091. cr.sendContainerState(containerMapValue)
  26092. }
  26093. mv = int8(dd.DecodeInt(8))
  26094. if v != nil {
  26095. v[mk] = mv
  26096. }
  26097. }
  26098. }
  26099. if cr != nil {
  26100. cr.sendContainerState(containerMapEnd)
  26101. }
  26102. return v, changed
  26103. }
  26104. func (f *decFnInfo) fastpathDecMapUint16Int16R(rv reflect.Value) {
  26105. if rv.CanAddr() {
  26106. vp := rv.Addr().Interface().(*map[uint16]int16)
  26107. v, changed := fastpathTV.DecMapUint16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  26108. if changed {
  26109. *vp = v
  26110. }
  26111. } else {
  26112. v := rv.Interface().(map[uint16]int16)
  26113. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, f.d)
  26114. }
  26115. }
  26116. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, checkNil bool, d *Decoder) {
  26117. v, changed := f.DecMapUint16Int16V(*vp, checkNil, true, d)
  26118. if changed {
  26119. *vp = v
  26120. }
  26121. }
  26122. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, checkNil bool, canChange bool,
  26123. d *Decoder) (_ map[uint16]int16, changed bool) {
  26124. dd := d.d
  26125. cr := d.cr
  26126. if checkNil && dd.TryDecodeAsNil() {
  26127. if v != nil {
  26128. changed = true
  26129. }
  26130. return nil, changed
  26131. }
  26132. containerLen := dd.ReadMapStart()
  26133. if canChange && v == nil {
  26134. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  26135. v = make(map[uint16]int16, xlen)
  26136. changed = true
  26137. }
  26138. var mk uint16
  26139. var mv int16
  26140. if containerLen > 0 {
  26141. for j := 0; j < containerLen; j++ {
  26142. if cr != nil {
  26143. cr.sendContainerState(containerMapKey)
  26144. }
  26145. mk = uint16(dd.DecodeUint(16))
  26146. if cr != nil {
  26147. cr.sendContainerState(containerMapValue)
  26148. }
  26149. mv = int16(dd.DecodeInt(16))
  26150. if v != nil {
  26151. v[mk] = mv
  26152. }
  26153. }
  26154. } else if containerLen < 0 {
  26155. for j := 0; !dd.CheckBreak(); j++ {
  26156. if cr != nil {
  26157. cr.sendContainerState(containerMapKey)
  26158. }
  26159. mk = uint16(dd.DecodeUint(16))
  26160. if cr != nil {
  26161. cr.sendContainerState(containerMapValue)
  26162. }
  26163. mv = int16(dd.DecodeInt(16))
  26164. if v != nil {
  26165. v[mk] = mv
  26166. }
  26167. }
  26168. }
  26169. if cr != nil {
  26170. cr.sendContainerState(containerMapEnd)
  26171. }
  26172. return v, changed
  26173. }
  26174. func (f *decFnInfo) fastpathDecMapUint16Int32R(rv reflect.Value) {
  26175. if rv.CanAddr() {
  26176. vp := rv.Addr().Interface().(*map[uint16]int32)
  26177. v, changed := fastpathTV.DecMapUint16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  26178. if changed {
  26179. *vp = v
  26180. }
  26181. } else {
  26182. v := rv.Interface().(map[uint16]int32)
  26183. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, f.d)
  26184. }
  26185. }
  26186. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, checkNil bool, d *Decoder) {
  26187. v, changed := f.DecMapUint16Int32V(*vp, checkNil, true, d)
  26188. if changed {
  26189. *vp = v
  26190. }
  26191. }
  26192. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, checkNil bool, canChange bool,
  26193. d *Decoder) (_ map[uint16]int32, changed bool) {
  26194. dd := d.d
  26195. cr := d.cr
  26196. if checkNil && dd.TryDecodeAsNil() {
  26197. if v != nil {
  26198. changed = true
  26199. }
  26200. return nil, changed
  26201. }
  26202. containerLen := dd.ReadMapStart()
  26203. if canChange && v == nil {
  26204. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26205. v = make(map[uint16]int32, xlen)
  26206. changed = true
  26207. }
  26208. var mk uint16
  26209. var mv int32
  26210. if containerLen > 0 {
  26211. for j := 0; j < containerLen; j++ {
  26212. if cr != nil {
  26213. cr.sendContainerState(containerMapKey)
  26214. }
  26215. mk = uint16(dd.DecodeUint(16))
  26216. if cr != nil {
  26217. cr.sendContainerState(containerMapValue)
  26218. }
  26219. mv = int32(dd.DecodeInt(32))
  26220. if v != nil {
  26221. v[mk] = mv
  26222. }
  26223. }
  26224. } else if containerLen < 0 {
  26225. for j := 0; !dd.CheckBreak(); j++ {
  26226. if cr != nil {
  26227. cr.sendContainerState(containerMapKey)
  26228. }
  26229. mk = uint16(dd.DecodeUint(16))
  26230. if cr != nil {
  26231. cr.sendContainerState(containerMapValue)
  26232. }
  26233. mv = int32(dd.DecodeInt(32))
  26234. if v != nil {
  26235. v[mk] = mv
  26236. }
  26237. }
  26238. }
  26239. if cr != nil {
  26240. cr.sendContainerState(containerMapEnd)
  26241. }
  26242. return v, changed
  26243. }
  26244. func (f *decFnInfo) fastpathDecMapUint16Int64R(rv reflect.Value) {
  26245. if rv.CanAddr() {
  26246. vp := rv.Addr().Interface().(*map[uint16]int64)
  26247. v, changed := fastpathTV.DecMapUint16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  26248. if changed {
  26249. *vp = v
  26250. }
  26251. } else {
  26252. v := rv.Interface().(map[uint16]int64)
  26253. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, f.d)
  26254. }
  26255. }
  26256. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, checkNil bool, d *Decoder) {
  26257. v, changed := f.DecMapUint16Int64V(*vp, checkNil, true, d)
  26258. if changed {
  26259. *vp = v
  26260. }
  26261. }
  26262. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, checkNil bool, canChange bool,
  26263. d *Decoder) (_ map[uint16]int64, changed bool) {
  26264. dd := d.d
  26265. cr := d.cr
  26266. if checkNil && dd.TryDecodeAsNil() {
  26267. if v != nil {
  26268. changed = true
  26269. }
  26270. return nil, changed
  26271. }
  26272. containerLen := dd.ReadMapStart()
  26273. if canChange && v == nil {
  26274. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26275. v = make(map[uint16]int64, xlen)
  26276. changed = true
  26277. }
  26278. var mk uint16
  26279. var mv int64
  26280. if containerLen > 0 {
  26281. for j := 0; j < containerLen; j++ {
  26282. if cr != nil {
  26283. cr.sendContainerState(containerMapKey)
  26284. }
  26285. mk = uint16(dd.DecodeUint(16))
  26286. if cr != nil {
  26287. cr.sendContainerState(containerMapValue)
  26288. }
  26289. mv = dd.DecodeInt(64)
  26290. if v != nil {
  26291. v[mk] = mv
  26292. }
  26293. }
  26294. } else if containerLen < 0 {
  26295. for j := 0; !dd.CheckBreak(); j++ {
  26296. if cr != nil {
  26297. cr.sendContainerState(containerMapKey)
  26298. }
  26299. mk = uint16(dd.DecodeUint(16))
  26300. if cr != nil {
  26301. cr.sendContainerState(containerMapValue)
  26302. }
  26303. mv = dd.DecodeInt(64)
  26304. if v != nil {
  26305. v[mk] = mv
  26306. }
  26307. }
  26308. }
  26309. if cr != nil {
  26310. cr.sendContainerState(containerMapEnd)
  26311. }
  26312. return v, changed
  26313. }
  26314. func (f *decFnInfo) fastpathDecMapUint16Float32R(rv reflect.Value) {
  26315. if rv.CanAddr() {
  26316. vp := rv.Addr().Interface().(*map[uint16]float32)
  26317. v, changed := fastpathTV.DecMapUint16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  26318. if changed {
  26319. *vp = v
  26320. }
  26321. } else {
  26322. v := rv.Interface().(map[uint16]float32)
  26323. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, f.d)
  26324. }
  26325. }
  26326. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, checkNil bool, d *Decoder) {
  26327. v, changed := f.DecMapUint16Float32V(*vp, checkNil, true, d)
  26328. if changed {
  26329. *vp = v
  26330. }
  26331. }
  26332. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, checkNil bool, canChange bool,
  26333. d *Decoder) (_ map[uint16]float32, changed bool) {
  26334. dd := d.d
  26335. cr := d.cr
  26336. if checkNil && dd.TryDecodeAsNil() {
  26337. if v != nil {
  26338. changed = true
  26339. }
  26340. return nil, changed
  26341. }
  26342. containerLen := dd.ReadMapStart()
  26343. if canChange && v == nil {
  26344. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26345. v = make(map[uint16]float32, xlen)
  26346. changed = true
  26347. }
  26348. var mk uint16
  26349. var mv float32
  26350. if containerLen > 0 {
  26351. for j := 0; j < containerLen; j++ {
  26352. if cr != nil {
  26353. cr.sendContainerState(containerMapKey)
  26354. }
  26355. mk = uint16(dd.DecodeUint(16))
  26356. if cr != nil {
  26357. cr.sendContainerState(containerMapValue)
  26358. }
  26359. mv = float32(dd.DecodeFloat(true))
  26360. if v != nil {
  26361. v[mk] = mv
  26362. }
  26363. }
  26364. } else if containerLen < 0 {
  26365. for j := 0; !dd.CheckBreak(); j++ {
  26366. if cr != nil {
  26367. cr.sendContainerState(containerMapKey)
  26368. }
  26369. mk = uint16(dd.DecodeUint(16))
  26370. if cr != nil {
  26371. cr.sendContainerState(containerMapValue)
  26372. }
  26373. mv = float32(dd.DecodeFloat(true))
  26374. if v != nil {
  26375. v[mk] = mv
  26376. }
  26377. }
  26378. }
  26379. if cr != nil {
  26380. cr.sendContainerState(containerMapEnd)
  26381. }
  26382. return v, changed
  26383. }
  26384. func (f *decFnInfo) fastpathDecMapUint16Float64R(rv reflect.Value) {
  26385. if rv.CanAddr() {
  26386. vp := rv.Addr().Interface().(*map[uint16]float64)
  26387. v, changed := fastpathTV.DecMapUint16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  26388. if changed {
  26389. *vp = v
  26390. }
  26391. } else {
  26392. v := rv.Interface().(map[uint16]float64)
  26393. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, f.d)
  26394. }
  26395. }
  26396. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, checkNil bool, d *Decoder) {
  26397. v, changed := f.DecMapUint16Float64V(*vp, checkNil, true, d)
  26398. if changed {
  26399. *vp = v
  26400. }
  26401. }
  26402. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, checkNil bool, canChange bool,
  26403. d *Decoder) (_ map[uint16]float64, changed bool) {
  26404. dd := d.d
  26405. cr := d.cr
  26406. if checkNil && dd.TryDecodeAsNil() {
  26407. if v != nil {
  26408. changed = true
  26409. }
  26410. return nil, changed
  26411. }
  26412. containerLen := dd.ReadMapStart()
  26413. if canChange && v == nil {
  26414. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26415. v = make(map[uint16]float64, xlen)
  26416. changed = true
  26417. }
  26418. var mk uint16
  26419. var mv float64
  26420. if containerLen > 0 {
  26421. for j := 0; j < containerLen; j++ {
  26422. if cr != nil {
  26423. cr.sendContainerState(containerMapKey)
  26424. }
  26425. mk = uint16(dd.DecodeUint(16))
  26426. if cr != nil {
  26427. cr.sendContainerState(containerMapValue)
  26428. }
  26429. mv = dd.DecodeFloat(false)
  26430. if v != nil {
  26431. v[mk] = mv
  26432. }
  26433. }
  26434. } else if containerLen < 0 {
  26435. for j := 0; !dd.CheckBreak(); j++ {
  26436. if cr != nil {
  26437. cr.sendContainerState(containerMapKey)
  26438. }
  26439. mk = uint16(dd.DecodeUint(16))
  26440. if cr != nil {
  26441. cr.sendContainerState(containerMapValue)
  26442. }
  26443. mv = dd.DecodeFloat(false)
  26444. if v != nil {
  26445. v[mk] = mv
  26446. }
  26447. }
  26448. }
  26449. if cr != nil {
  26450. cr.sendContainerState(containerMapEnd)
  26451. }
  26452. return v, changed
  26453. }
  26454. func (f *decFnInfo) fastpathDecMapUint16BoolR(rv reflect.Value) {
  26455. if rv.CanAddr() {
  26456. vp := rv.Addr().Interface().(*map[uint16]bool)
  26457. v, changed := fastpathTV.DecMapUint16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  26458. if changed {
  26459. *vp = v
  26460. }
  26461. } else {
  26462. v := rv.Interface().(map[uint16]bool)
  26463. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, f.d)
  26464. }
  26465. }
  26466. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, checkNil bool, d *Decoder) {
  26467. v, changed := f.DecMapUint16BoolV(*vp, checkNil, true, d)
  26468. if changed {
  26469. *vp = v
  26470. }
  26471. }
  26472. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, checkNil bool, canChange bool,
  26473. d *Decoder) (_ map[uint16]bool, changed bool) {
  26474. dd := d.d
  26475. cr := d.cr
  26476. if checkNil && dd.TryDecodeAsNil() {
  26477. if v != nil {
  26478. changed = true
  26479. }
  26480. return nil, changed
  26481. }
  26482. containerLen := dd.ReadMapStart()
  26483. if canChange && v == nil {
  26484. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26485. v = make(map[uint16]bool, xlen)
  26486. changed = true
  26487. }
  26488. var mk uint16
  26489. var mv bool
  26490. if containerLen > 0 {
  26491. for j := 0; j < containerLen; j++ {
  26492. if cr != nil {
  26493. cr.sendContainerState(containerMapKey)
  26494. }
  26495. mk = uint16(dd.DecodeUint(16))
  26496. if cr != nil {
  26497. cr.sendContainerState(containerMapValue)
  26498. }
  26499. mv = dd.DecodeBool()
  26500. if v != nil {
  26501. v[mk] = mv
  26502. }
  26503. }
  26504. } else if containerLen < 0 {
  26505. for j := 0; !dd.CheckBreak(); j++ {
  26506. if cr != nil {
  26507. cr.sendContainerState(containerMapKey)
  26508. }
  26509. mk = uint16(dd.DecodeUint(16))
  26510. if cr != nil {
  26511. cr.sendContainerState(containerMapValue)
  26512. }
  26513. mv = dd.DecodeBool()
  26514. if v != nil {
  26515. v[mk] = mv
  26516. }
  26517. }
  26518. }
  26519. if cr != nil {
  26520. cr.sendContainerState(containerMapEnd)
  26521. }
  26522. return v, changed
  26523. }
  26524. func (f *decFnInfo) fastpathDecMapUint32IntfR(rv reflect.Value) {
  26525. if rv.CanAddr() {
  26526. vp := rv.Addr().Interface().(*map[uint32]interface{})
  26527. v, changed := fastpathTV.DecMapUint32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  26528. if changed {
  26529. *vp = v
  26530. }
  26531. } else {
  26532. v := rv.Interface().(map[uint32]interface{})
  26533. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, f.d)
  26534. }
  26535. }
  26536. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, checkNil bool, d *Decoder) {
  26537. v, changed := f.DecMapUint32IntfV(*vp, checkNil, true, d)
  26538. if changed {
  26539. *vp = v
  26540. }
  26541. }
  26542. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, checkNil bool, canChange bool,
  26543. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  26544. dd := d.d
  26545. cr := d.cr
  26546. if checkNil && dd.TryDecodeAsNil() {
  26547. if v != nil {
  26548. changed = true
  26549. }
  26550. return nil, changed
  26551. }
  26552. containerLen := dd.ReadMapStart()
  26553. if canChange && v == nil {
  26554. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  26555. v = make(map[uint32]interface{}, xlen)
  26556. changed = true
  26557. }
  26558. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  26559. var mk uint32
  26560. var mv interface{}
  26561. if containerLen > 0 {
  26562. for j := 0; j < containerLen; j++ {
  26563. if cr != nil {
  26564. cr.sendContainerState(containerMapKey)
  26565. }
  26566. mk = uint32(dd.DecodeUint(32))
  26567. if cr != nil {
  26568. cr.sendContainerState(containerMapValue)
  26569. }
  26570. if mapGet {
  26571. mv = v[mk]
  26572. } else {
  26573. mv = nil
  26574. }
  26575. d.decode(&mv)
  26576. if v != nil {
  26577. v[mk] = mv
  26578. }
  26579. }
  26580. } else if containerLen < 0 {
  26581. for j := 0; !dd.CheckBreak(); j++ {
  26582. if cr != nil {
  26583. cr.sendContainerState(containerMapKey)
  26584. }
  26585. mk = uint32(dd.DecodeUint(32))
  26586. if cr != nil {
  26587. cr.sendContainerState(containerMapValue)
  26588. }
  26589. if mapGet {
  26590. mv = v[mk]
  26591. } else {
  26592. mv = nil
  26593. }
  26594. d.decode(&mv)
  26595. if v != nil {
  26596. v[mk] = mv
  26597. }
  26598. }
  26599. }
  26600. if cr != nil {
  26601. cr.sendContainerState(containerMapEnd)
  26602. }
  26603. return v, changed
  26604. }
  26605. func (f *decFnInfo) fastpathDecMapUint32StringR(rv reflect.Value) {
  26606. if rv.CanAddr() {
  26607. vp := rv.Addr().Interface().(*map[uint32]string)
  26608. v, changed := fastpathTV.DecMapUint32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  26609. if changed {
  26610. *vp = v
  26611. }
  26612. } else {
  26613. v := rv.Interface().(map[uint32]string)
  26614. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, f.d)
  26615. }
  26616. }
  26617. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, checkNil bool, d *Decoder) {
  26618. v, changed := f.DecMapUint32StringV(*vp, checkNil, true, d)
  26619. if changed {
  26620. *vp = v
  26621. }
  26622. }
  26623. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, checkNil bool, canChange bool,
  26624. d *Decoder) (_ map[uint32]string, changed bool) {
  26625. dd := d.d
  26626. cr := d.cr
  26627. if checkNil && dd.TryDecodeAsNil() {
  26628. if v != nil {
  26629. changed = true
  26630. }
  26631. return nil, changed
  26632. }
  26633. containerLen := dd.ReadMapStart()
  26634. if canChange && v == nil {
  26635. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  26636. v = make(map[uint32]string, xlen)
  26637. changed = true
  26638. }
  26639. var mk uint32
  26640. var mv string
  26641. if containerLen > 0 {
  26642. for j := 0; j < containerLen; j++ {
  26643. if cr != nil {
  26644. cr.sendContainerState(containerMapKey)
  26645. }
  26646. mk = uint32(dd.DecodeUint(32))
  26647. if cr != nil {
  26648. cr.sendContainerState(containerMapValue)
  26649. }
  26650. mv = dd.DecodeString()
  26651. if v != nil {
  26652. v[mk] = mv
  26653. }
  26654. }
  26655. } else if containerLen < 0 {
  26656. for j := 0; !dd.CheckBreak(); j++ {
  26657. if cr != nil {
  26658. cr.sendContainerState(containerMapKey)
  26659. }
  26660. mk = uint32(dd.DecodeUint(32))
  26661. if cr != nil {
  26662. cr.sendContainerState(containerMapValue)
  26663. }
  26664. mv = dd.DecodeString()
  26665. if v != nil {
  26666. v[mk] = mv
  26667. }
  26668. }
  26669. }
  26670. if cr != nil {
  26671. cr.sendContainerState(containerMapEnd)
  26672. }
  26673. return v, changed
  26674. }
  26675. func (f *decFnInfo) fastpathDecMapUint32UintR(rv reflect.Value) {
  26676. if rv.CanAddr() {
  26677. vp := rv.Addr().Interface().(*map[uint32]uint)
  26678. v, changed := fastpathTV.DecMapUint32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  26679. if changed {
  26680. *vp = v
  26681. }
  26682. } else {
  26683. v := rv.Interface().(map[uint32]uint)
  26684. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, f.d)
  26685. }
  26686. }
  26687. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, checkNil bool, d *Decoder) {
  26688. v, changed := f.DecMapUint32UintV(*vp, checkNil, true, d)
  26689. if changed {
  26690. *vp = v
  26691. }
  26692. }
  26693. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, checkNil bool, canChange bool,
  26694. d *Decoder) (_ map[uint32]uint, changed bool) {
  26695. dd := d.d
  26696. cr := d.cr
  26697. if checkNil && dd.TryDecodeAsNil() {
  26698. if v != nil {
  26699. changed = true
  26700. }
  26701. return nil, changed
  26702. }
  26703. containerLen := dd.ReadMapStart()
  26704. if canChange && v == nil {
  26705. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26706. v = make(map[uint32]uint, xlen)
  26707. changed = true
  26708. }
  26709. var mk uint32
  26710. var mv uint
  26711. if containerLen > 0 {
  26712. for j := 0; j < containerLen; j++ {
  26713. if cr != nil {
  26714. cr.sendContainerState(containerMapKey)
  26715. }
  26716. mk = uint32(dd.DecodeUint(32))
  26717. if cr != nil {
  26718. cr.sendContainerState(containerMapValue)
  26719. }
  26720. mv = uint(dd.DecodeUint(uintBitsize))
  26721. if v != nil {
  26722. v[mk] = mv
  26723. }
  26724. }
  26725. } else if containerLen < 0 {
  26726. for j := 0; !dd.CheckBreak(); j++ {
  26727. if cr != nil {
  26728. cr.sendContainerState(containerMapKey)
  26729. }
  26730. mk = uint32(dd.DecodeUint(32))
  26731. if cr != nil {
  26732. cr.sendContainerState(containerMapValue)
  26733. }
  26734. mv = uint(dd.DecodeUint(uintBitsize))
  26735. if v != nil {
  26736. v[mk] = mv
  26737. }
  26738. }
  26739. }
  26740. if cr != nil {
  26741. cr.sendContainerState(containerMapEnd)
  26742. }
  26743. return v, changed
  26744. }
  26745. func (f *decFnInfo) fastpathDecMapUint32Uint8R(rv reflect.Value) {
  26746. if rv.CanAddr() {
  26747. vp := rv.Addr().Interface().(*map[uint32]uint8)
  26748. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  26749. if changed {
  26750. *vp = v
  26751. }
  26752. } else {
  26753. v := rv.Interface().(map[uint32]uint8)
  26754. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  26755. }
  26756. }
  26757. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, checkNil bool, d *Decoder) {
  26758. v, changed := f.DecMapUint32Uint8V(*vp, checkNil, true, d)
  26759. if changed {
  26760. *vp = v
  26761. }
  26762. }
  26763. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, checkNil bool, canChange bool,
  26764. d *Decoder) (_ map[uint32]uint8, changed bool) {
  26765. dd := d.d
  26766. cr := d.cr
  26767. if checkNil && dd.TryDecodeAsNil() {
  26768. if v != nil {
  26769. changed = true
  26770. }
  26771. return nil, changed
  26772. }
  26773. containerLen := dd.ReadMapStart()
  26774. if canChange && v == nil {
  26775. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26776. v = make(map[uint32]uint8, xlen)
  26777. changed = true
  26778. }
  26779. var mk uint32
  26780. var mv uint8
  26781. if containerLen > 0 {
  26782. for j := 0; j < containerLen; j++ {
  26783. if cr != nil {
  26784. cr.sendContainerState(containerMapKey)
  26785. }
  26786. mk = uint32(dd.DecodeUint(32))
  26787. if cr != nil {
  26788. cr.sendContainerState(containerMapValue)
  26789. }
  26790. mv = uint8(dd.DecodeUint(8))
  26791. if v != nil {
  26792. v[mk] = mv
  26793. }
  26794. }
  26795. } else if containerLen < 0 {
  26796. for j := 0; !dd.CheckBreak(); j++ {
  26797. if cr != nil {
  26798. cr.sendContainerState(containerMapKey)
  26799. }
  26800. mk = uint32(dd.DecodeUint(32))
  26801. if cr != nil {
  26802. cr.sendContainerState(containerMapValue)
  26803. }
  26804. mv = uint8(dd.DecodeUint(8))
  26805. if v != nil {
  26806. v[mk] = mv
  26807. }
  26808. }
  26809. }
  26810. if cr != nil {
  26811. cr.sendContainerState(containerMapEnd)
  26812. }
  26813. return v, changed
  26814. }
  26815. func (f *decFnInfo) fastpathDecMapUint32Uint16R(rv reflect.Value) {
  26816. if rv.CanAddr() {
  26817. vp := rv.Addr().Interface().(*map[uint32]uint16)
  26818. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  26819. if changed {
  26820. *vp = v
  26821. }
  26822. } else {
  26823. v := rv.Interface().(map[uint32]uint16)
  26824. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  26825. }
  26826. }
  26827. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, checkNil bool, d *Decoder) {
  26828. v, changed := f.DecMapUint32Uint16V(*vp, checkNil, true, d)
  26829. if changed {
  26830. *vp = v
  26831. }
  26832. }
  26833. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, checkNil bool, canChange bool,
  26834. d *Decoder) (_ map[uint32]uint16, changed bool) {
  26835. dd := d.d
  26836. cr := d.cr
  26837. if checkNil && dd.TryDecodeAsNil() {
  26838. if v != nil {
  26839. changed = true
  26840. }
  26841. return nil, changed
  26842. }
  26843. containerLen := dd.ReadMapStart()
  26844. if canChange && v == nil {
  26845. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26846. v = make(map[uint32]uint16, xlen)
  26847. changed = true
  26848. }
  26849. var mk uint32
  26850. var mv uint16
  26851. if containerLen > 0 {
  26852. for j := 0; j < containerLen; j++ {
  26853. if cr != nil {
  26854. cr.sendContainerState(containerMapKey)
  26855. }
  26856. mk = uint32(dd.DecodeUint(32))
  26857. if cr != nil {
  26858. cr.sendContainerState(containerMapValue)
  26859. }
  26860. mv = uint16(dd.DecodeUint(16))
  26861. if v != nil {
  26862. v[mk] = mv
  26863. }
  26864. }
  26865. } else if containerLen < 0 {
  26866. for j := 0; !dd.CheckBreak(); j++ {
  26867. if cr != nil {
  26868. cr.sendContainerState(containerMapKey)
  26869. }
  26870. mk = uint32(dd.DecodeUint(32))
  26871. if cr != nil {
  26872. cr.sendContainerState(containerMapValue)
  26873. }
  26874. mv = uint16(dd.DecodeUint(16))
  26875. if v != nil {
  26876. v[mk] = mv
  26877. }
  26878. }
  26879. }
  26880. if cr != nil {
  26881. cr.sendContainerState(containerMapEnd)
  26882. }
  26883. return v, changed
  26884. }
  26885. func (f *decFnInfo) fastpathDecMapUint32Uint32R(rv reflect.Value) {
  26886. if rv.CanAddr() {
  26887. vp := rv.Addr().Interface().(*map[uint32]uint32)
  26888. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  26889. if changed {
  26890. *vp = v
  26891. }
  26892. } else {
  26893. v := rv.Interface().(map[uint32]uint32)
  26894. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  26895. }
  26896. }
  26897. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, checkNil bool, d *Decoder) {
  26898. v, changed := f.DecMapUint32Uint32V(*vp, checkNil, true, d)
  26899. if changed {
  26900. *vp = v
  26901. }
  26902. }
  26903. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, checkNil bool, canChange bool,
  26904. d *Decoder) (_ map[uint32]uint32, changed bool) {
  26905. dd := d.d
  26906. cr := d.cr
  26907. if checkNil && dd.TryDecodeAsNil() {
  26908. if v != nil {
  26909. changed = true
  26910. }
  26911. return nil, changed
  26912. }
  26913. containerLen := dd.ReadMapStart()
  26914. if canChange && v == nil {
  26915. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26916. v = make(map[uint32]uint32, xlen)
  26917. changed = true
  26918. }
  26919. var mk uint32
  26920. var mv uint32
  26921. if containerLen > 0 {
  26922. for j := 0; j < containerLen; j++ {
  26923. if cr != nil {
  26924. cr.sendContainerState(containerMapKey)
  26925. }
  26926. mk = uint32(dd.DecodeUint(32))
  26927. if cr != nil {
  26928. cr.sendContainerState(containerMapValue)
  26929. }
  26930. mv = uint32(dd.DecodeUint(32))
  26931. if v != nil {
  26932. v[mk] = mv
  26933. }
  26934. }
  26935. } else if containerLen < 0 {
  26936. for j := 0; !dd.CheckBreak(); j++ {
  26937. if cr != nil {
  26938. cr.sendContainerState(containerMapKey)
  26939. }
  26940. mk = uint32(dd.DecodeUint(32))
  26941. if cr != nil {
  26942. cr.sendContainerState(containerMapValue)
  26943. }
  26944. mv = uint32(dd.DecodeUint(32))
  26945. if v != nil {
  26946. v[mk] = mv
  26947. }
  26948. }
  26949. }
  26950. if cr != nil {
  26951. cr.sendContainerState(containerMapEnd)
  26952. }
  26953. return v, changed
  26954. }
  26955. func (f *decFnInfo) fastpathDecMapUint32Uint64R(rv reflect.Value) {
  26956. if rv.CanAddr() {
  26957. vp := rv.Addr().Interface().(*map[uint32]uint64)
  26958. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  26959. if changed {
  26960. *vp = v
  26961. }
  26962. } else {
  26963. v := rv.Interface().(map[uint32]uint64)
  26964. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  26965. }
  26966. }
  26967. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, checkNil bool, d *Decoder) {
  26968. v, changed := f.DecMapUint32Uint64V(*vp, checkNil, true, d)
  26969. if changed {
  26970. *vp = v
  26971. }
  26972. }
  26973. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, checkNil bool, canChange bool,
  26974. d *Decoder) (_ map[uint32]uint64, changed bool) {
  26975. dd := d.d
  26976. cr := d.cr
  26977. if checkNil && dd.TryDecodeAsNil() {
  26978. if v != nil {
  26979. changed = true
  26980. }
  26981. return nil, changed
  26982. }
  26983. containerLen := dd.ReadMapStart()
  26984. if canChange && v == nil {
  26985. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26986. v = make(map[uint32]uint64, xlen)
  26987. changed = true
  26988. }
  26989. var mk uint32
  26990. var mv uint64
  26991. if containerLen > 0 {
  26992. for j := 0; j < containerLen; j++ {
  26993. if cr != nil {
  26994. cr.sendContainerState(containerMapKey)
  26995. }
  26996. mk = uint32(dd.DecodeUint(32))
  26997. if cr != nil {
  26998. cr.sendContainerState(containerMapValue)
  26999. }
  27000. mv = dd.DecodeUint(64)
  27001. if v != nil {
  27002. v[mk] = mv
  27003. }
  27004. }
  27005. } else if containerLen < 0 {
  27006. for j := 0; !dd.CheckBreak(); j++ {
  27007. if cr != nil {
  27008. cr.sendContainerState(containerMapKey)
  27009. }
  27010. mk = uint32(dd.DecodeUint(32))
  27011. if cr != nil {
  27012. cr.sendContainerState(containerMapValue)
  27013. }
  27014. mv = dd.DecodeUint(64)
  27015. if v != nil {
  27016. v[mk] = mv
  27017. }
  27018. }
  27019. }
  27020. if cr != nil {
  27021. cr.sendContainerState(containerMapEnd)
  27022. }
  27023. return v, changed
  27024. }
  27025. func (f *decFnInfo) fastpathDecMapUint32UintptrR(rv reflect.Value) {
  27026. if rv.CanAddr() {
  27027. vp := rv.Addr().Interface().(*map[uint32]uintptr)
  27028. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  27029. if changed {
  27030. *vp = v
  27031. }
  27032. } else {
  27033. v := rv.Interface().(map[uint32]uintptr)
  27034. fastpathTV.DecMapUint32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  27035. }
  27036. }
  27037. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, checkNil bool, d *Decoder) {
  27038. v, changed := f.DecMapUint32UintptrV(*vp, checkNil, true, d)
  27039. if changed {
  27040. *vp = v
  27041. }
  27042. }
  27043. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, checkNil bool, canChange bool,
  27044. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  27045. dd := d.d
  27046. cr := d.cr
  27047. if checkNil && dd.TryDecodeAsNil() {
  27048. if v != nil {
  27049. changed = true
  27050. }
  27051. return nil, changed
  27052. }
  27053. containerLen := dd.ReadMapStart()
  27054. if canChange && v == nil {
  27055. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27056. v = make(map[uint32]uintptr, xlen)
  27057. changed = true
  27058. }
  27059. var mk uint32
  27060. var mv uintptr
  27061. if containerLen > 0 {
  27062. for j := 0; j < containerLen; j++ {
  27063. if cr != nil {
  27064. cr.sendContainerState(containerMapKey)
  27065. }
  27066. mk = uint32(dd.DecodeUint(32))
  27067. if cr != nil {
  27068. cr.sendContainerState(containerMapValue)
  27069. }
  27070. mv = uintptr(dd.DecodeUint(uintBitsize))
  27071. if v != nil {
  27072. v[mk] = mv
  27073. }
  27074. }
  27075. } else if containerLen < 0 {
  27076. for j := 0; !dd.CheckBreak(); j++ {
  27077. if cr != nil {
  27078. cr.sendContainerState(containerMapKey)
  27079. }
  27080. mk = uint32(dd.DecodeUint(32))
  27081. if cr != nil {
  27082. cr.sendContainerState(containerMapValue)
  27083. }
  27084. mv = uintptr(dd.DecodeUint(uintBitsize))
  27085. if v != nil {
  27086. v[mk] = mv
  27087. }
  27088. }
  27089. }
  27090. if cr != nil {
  27091. cr.sendContainerState(containerMapEnd)
  27092. }
  27093. return v, changed
  27094. }
  27095. func (f *decFnInfo) fastpathDecMapUint32IntR(rv reflect.Value) {
  27096. if rv.CanAddr() {
  27097. vp := rv.Addr().Interface().(*map[uint32]int)
  27098. v, changed := fastpathTV.DecMapUint32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  27099. if changed {
  27100. *vp = v
  27101. }
  27102. } else {
  27103. v := rv.Interface().(map[uint32]int)
  27104. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, f.d)
  27105. }
  27106. }
  27107. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, checkNil bool, d *Decoder) {
  27108. v, changed := f.DecMapUint32IntV(*vp, checkNil, true, d)
  27109. if changed {
  27110. *vp = v
  27111. }
  27112. }
  27113. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, checkNil bool, canChange bool,
  27114. d *Decoder) (_ map[uint32]int, changed bool) {
  27115. dd := d.d
  27116. cr := d.cr
  27117. if checkNil && dd.TryDecodeAsNil() {
  27118. if v != nil {
  27119. changed = true
  27120. }
  27121. return nil, changed
  27122. }
  27123. containerLen := dd.ReadMapStart()
  27124. if canChange && v == nil {
  27125. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27126. v = make(map[uint32]int, xlen)
  27127. changed = true
  27128. }
  27129. var mk uint32
  27130. var mv int
  27131. if containerLen > 0 {
  27132. for j := 0; j < containerLen; j++ {
  27133. if cr != nil {
  27134. cr.sendContainerState(containerMapKey)
  27135. }
  27136. mk = uint32(dd.DecodeUint(32))
  27137. if cr != nil {
  27138. cr.sendContainerState(containerMapValue)
  27139. }
  27140. mv = int(dd.DecodeInt(intBitsize))
  27141. if v != nil {
  27142. v[mk] = mv
  27143. }
  27144. }
  27145. } else if containerLen < 0 {
  27146. for j := 0; !dd.CheckBreak(); j++ {
  27147. if cr != nil {
  27148. cr.sendContainerState(containerMapKey)
  27149. }
  27150. mk = uint32(dd.DecodeUint(32))
  27151. if cr != nil {
  27152. cr.sendContainerState(containerMapValue)
  27153. }
  27154. mv = int(dd.DecodeInt(intBitsize))
  27155. if v != nil {
  27156. v[mk] = mv
  27157. }
  27158. }
  27159. }
  27160. if cr != nil {
  27161. cr.sendContainerState(containerMapEnd)
  27162. }
  27163. return v, changed
  27164. }
  27165. func (f *decFnInfo) fastpathDecMapUint32Int8R(rv reflect.Value) {
  27166. if rv.CanAddr() {
  27167. vp := rv.Addr().Interface().(*map[uint32]int8)
  27168. v, changed := fastpathTV.DecMapUint32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  27169. if changed {
  27170. *vp = v
  27171. }
  27172. } else {
  27173. v := rv.Interface().(map[uint32]int8)
  27174. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, f.d)
  27175. }
  27176. }
  27177. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, checkNil bool, d *Decoder) {
  27178. v, changed := f.DecMapUint32Int8V(*vp, checkNil, true, d)
  27179. if changed {
  27180. *vp = v
  27181. }
  27182. }
  27183. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, checkNil bool, canChange bool,
  27184. d *Decoder) (_ map[uint32]int8, changed bool) {
  27185. dd := d.d
  27186. cr := d.cr
  27187. if checkNil && dd.TryDecodeAsNil() {
  27188. if v != nil {
  27189. changed = true
  27190. }
  27191. return nil, changed
  27192. }
  27193. containerLen := dd.ReadMapStart()
  27194. if canChange && v == nil {
  27195. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27196. v = make(map[uint32]int8, xlen)
  27197. changed = true
  27198. }
  27199. var mk uint32
  27200. var mv int8
  27201. if containerLen > 0 {
  27202. for j := 0; j < containerLen; j++ {
  27203. if cr != nil {
  27204. cr.sendContainerState(containerMapKey)
  27205. }
  27206. mk = uint32(dd.DecodeUint(32))
  27207. if cr != nil {
  27208. cr.sendContainerState(containerMapValue)
  27209. }
  27210. mv = int8(dd.DecodeInt(8))
  27211. if v != nil {
  27212. v[mk] = mv
  27213. }
  27214. }
  27215. } else if containerLen < 0 {
  27216. for j := 0; !dd.CheckBreak(); j++ {
  27217. if cr != nil {
  27218. cr.sendContainerState(containerMapKey)
  27219. }
  27220. mk = uint32(dd.DecodeUint(32))
  27221. if cr != nil {
  27222. cr.sendContainerState(containerMapValue)
  27223. }
  27224. mv = int8(dd.DecodeInt(8))
  27225. if v != nil {
  27226. v[mk] = mv
  27227. }
  27228. }
  27229. }
  27230. if cr != nil {
  27231. cr.sendContainerState(containerMapEnd)
  27232. }
  27233. return v, changed
  27234. }
  27235. func (f *decFnInfo) fastpathDecMapUint32Int16R(rv reflect.Value) {
  27236. if rv.CanAddr() {
  27237. vp := rv.Addr().Interface().(*map[uint32]int16)
  27238. v, changed := fastpathTV.DecMapUint32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  27239. if changed {
  27240. *vp = v
  27241. }
  27242. } else {
  27243. v := rv.Interface().(map[uint32]int16)
  27244. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, f.d)
  27245. }
  27246. }
  27247. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, checkNil bool, d *Decoder) {
  27248. v, changed := f.DecMapUint32Int16V(*vp, checkNil, true, d)
  27249. if changed {
  27250. *vp = v
  27251. }
  27252. }
  27253. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, checkNil bool, canChange bool,
  27254. d *Decoder) (_ map[uint32]int16, changed bool) {
  27255. dd := d.d
  27256. cr := d.cr
  27257. if checkNil && dd.TryDecodeAsNil() {
  27258. if v != nil {
  27259. changed = true
  27260. }
  27261. return nil, changed
  27262. }
  27263. containerLen := dd.ReadMapStart()
  27264. if canChange && v == nil {
  27265. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27266. v = make(map[uint32]int16, xlen)
  27267. changed = true
  27268. }
  27269. var mk uint32
  27270. var mv int16
  27271. if containerLen > 0 {
  27272. for j := 0; j < containerLen; j++ {
  27273. if cr != nil {
  27274. cr.sendContainerState(containerMapKey)
  27275. }
  27276. mk = uint32(dd.DecodeUint(32))
  27277. if cr != nil {
  27278. cr.sendContainerState(containerMapValue)
  27279. }
  27280. mv = int16(dd.DecodeInt(16))
  27281. if v != nil {
  27282. v[mk] = mv
  27283. }
  27284. }
  27285. } else if containerLen < 0 {
  27286. for j := 0; !dd.CheckBreak(); j++ {
  27287. if cr != nil {
  27288. cr.sendContainerState(containerMapKey)
  27289. }
  27290. mk = uint32(dd.DecodeUint(32))
  27291. if cr != nil {
  27292. cr.sendContainerState(containerMapValue)
  27293. }
  27294. mv = int16(dd.DecodeInt(16))
  27295. if v != nil {
  27296. v[mk] = mv
  27297. }
  27298. }
  27299. }
  27300. if cr != nil {
  27301. cr.sendContainerState(containerMapEnd)
  27302. }
  27303. return v, changed
  27304. }
  27305. func (f *decFnInfo) fastpathDecMapUint32Int32R(rv reflect.Value) {
  27306. if rv.CanAddr() {
  27307. vp := rv.Addr().Interface().(*map[uint32]int32)
  27308. v, changed := fastpathTV.DecMapUint32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  27309. if changed {
  27310. *vp = v
  27311. }
  27312. } else {
  27313. v := rv.Interface().(map[uint32]int32)
  27314. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, f.d)
  27315. }
  27316. }
  27317. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, checkNil bool, d *Decoder) {
  27318. v, changed := f.DecMapUint32Int32V(*vp, checkNil, true, d)
  27319. if changed {
  27320. *vp = v
  27321. }
  27322. }
  27323. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, checkNil bool, canChange bool,
  27324. d *Decoder) (_ map[uint32]int32, changed bool) {
  27325. dd := d.d
  27326. cr := d.cr
  27327. if checkNil && dd.TryDecodeAsNil() {
  27328. if v != nil {
  27329. changed = true
  27330. }
  27331. return nil, changed
  27332. }
  27333. containerLen := dd.ReadMapStart()
  27334. if canChange && v == nil {
  27335. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  27336. v = make(map[uint32]int32, xlen)
  27337. changed = true
  27338. }
  27339. var mk uint32
  27340. var mv int32
  27341. if containerLen > 0 {
  27342. for j := 0; j < containerLen; j++ {
  27343. if cr != nil {
  27344. cr.sendContainerState(containerMapKey)
  27345. }
  27346. mk = uint32(dd.DecodeUint(32))
  27347. if cr != nil {
  27348. cr.sendContainerState(containerMapValue)
  27349. }
  27350. mv = int32(dd.DecodeInt(32))
  27351. if v != nil {
  27352. v[mk] = mv
  27353. }
  27354. }
  27355. } else if containerLen < 0 {
  27356. for j := 0; !dd.CheckBreak(); j++ {
  27357. if cr != nil {
  27358. cr.sendContainerState(containerMapKey)
  27359. }
  27360. mk = uint32(dd.DecodeUint(32))
  27361. if cr != nil {
  27362. cr.sendContainerState(containerMapValue)
  27363. }
  27364. mv = int32(dd.DecodeInt(32))
  27365. if v != nil {
  27366. v[mk] = mv
  27367. }
  27368. }
  27369. }
  27370. if cr != nil {
  27371. cr.sendContainerState(containerMapEnd)
  27372. }
  27373. return v, changed
  27374. }
  27375. func (f *decFnInfo) fastpathDecMapUint32Int64R(rv reflect.Value) {
  27376. if rv.CanAddr() {
  27377. vp := rv.Addr().Interface().(*map[uint32]int64)
  27378. v, changed := fastpathTV.DecMapUint32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  27379. if changed {
  27380. *vp = v
  27381. }
  27382. } else {
  27383. v := rv.Interface().(map[uint32]int64)
  27384. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, f.d)
  27385. }
  27386. }
  27387. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, checkNil bool, d *Decoder) {
  27388. v, changed := f.DecMapUint32Int64V(*vp, checkNil, true, d)
  27389. if changed {
  27390. *vp = v
  27391. }
  27392. }
  27393. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, checkNil bool, canChange bool,
  27394. d *Decoder) (_ map[uint32]int64, changed bool) {
  27395. dd := d.d
  27396. cr := d.cr
  27397. if checkNil && dd.TryDecodeAsNil() {
  27398. if v != nil {
  27399. changed = true
  27400. }
  27401. return nil, changed
  27402. }
  27403. containerLen := dd.ReadMapStart()
  27404. if canChange && v == nil {
  27405. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27406. v = make(map[uint32]int64, xlen)
  27407. changed = true
  27408. }
  27409. var mk uint32
  27410. var mv int64
  27411. if containerLen > 0 {
  27412. for j := 0; j < containerLen; j++ {
  27413. if cr != nil {
  27414. cr.sendContainerState(containerMapKey)
  27415. }
  27416. mk = uint32(dd.DecodeUint(32))
  27417. if cr != nil {
  27418. cr.sendContainerState(containerMapValue)
  27419. }
  27420. mv = dd.DecodeInt(64)
  27421. if v != nil {
  27422. v[mk] = mv
  27423. }
  27424. }
  27425. } else if containerLen < 0 {
  27426. for j := 0; !dd.CheckBreak(); j++ {
  27427. if cr != nil {
  27428. cr.sendContainerState(containerMapKey)
  27429. }
  27430. mk = uint32(dd.DecodeUint(32))
  27431. if cr != nil {
  27432. cr.sendContainerState(containerMapValue)
  27433. }
  27434. mv = dd.DecodeInt(64)
  27435. if v != nil {
  27436. v[mk] = mv
  27437. }
  27438. }
  27439. }
  27440. if cr != nil {
  27441. cr.sendContainerState(containerMapEnd)
  27442. }
  27443. return v, changed
  27444. }
  27445. func (f *decFnInfo) fastpathDecMapUint32Float32R(rv reflect.Value) {
  27446. if rv.CanAddr() {
  27447. vp := rv.Addr().Interface().(*map[uint32]float32)
  27448. v, changed := fastpathTV.DecMapUint32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  27449. if changed {
  27450. *vp = v
  27451. }
  27452. } else {
  27453. v := rv.Interface().(map[uint32]float32)
  27454. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, f.d)
  27455. }
  27456. }
  27457. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, checkNil bool, d *Decoder) {
  27458. v, changed := f.DecMapUint32Float32V(*vp, checkNil, true, d)
  27459. if changed {
  27460. *vp = v
  27461. }
  27462. }
  27463. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, checkNil bool, canChange bool,
  27464. d *Decoder) (_ map[uint32]float32, changed bool) {
  27465. dd := d.d
  27466. cr := d.cr
  27467. if checkNil && dd.TryDecodeAsNil() {
  27468. if v != nil {
  27469. changed = true
  27470. }
  27471. return nil, changed
  27472. }
  27473. containerLen := dd.ReadMapStart()
  27474. if canChange && v == nil {
  27475. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  27476. v = make(map[uint32]float32, xlen)
  27477. changed = true
  27478. }
  27479. var mk uint32
  27480. var mv float32
  27481. if containerLen > 0 {
  27482. for j := 0; j < containerLen; j++ {
  27483. if cr != nil {
  27484. cr.sendContainerState(containerMapKey)
  27485. }
  27486. mk = uint32(dd.DecodeUint(32))
  27487. if cr != nil {
  27488. cr.sendContainerState(containerMapValue)
  27489. }
  27490. mv = float32(dd.DecodeFloat(true))
  27491. if v != nil {
  27492. v[mk] = mv
  27493. }
  27494. }
  27495. } else if containerLen < 0 {
  27496. for j := 0; !dd.CheckBreak(); j++ {
  27497. if cr != nil {
  27498. cr.sendContainerState(containerMapKey)
  27499. }
  27500. mk = uint32(dd.DecodeUint(32))
  27501. if cr != nil {
  27502. cr.sendContainerState(containerMapValue)
  27503. }
  27504. mv = float32(dd.DecodeFloat(true))
  27505. if v != nil {
  27506. v[mk] = mv
  27507. }
  27508. }
  27509. }
  27510. if cr != nil {
  27511. cr.sendContainerState(containerMapEnd)
  27512. }
  27513. return v, changed
  27514. }
  27515. func (f *decFnInfo) fastpathDecMapUint32Float64R(rv reflect.Value) {
  27516. if rv.CanAddr() {
  27517. vp := rv.Addr().Interface().(*map[uint32]float64)
  27518. v, changed := fastpathTV.DecMapUint32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  27519. if changed {
  27520. *vp = v
  27521. }
  27522. } else {
  27523. v := rv.Interface().(map[uint32]float64)
  27524. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, f.d)
  27525. }
  27526. }
  27527. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, checkNil bool, d *Decoder) {
  27528. v, changed := f.DecMapUint32Float64V(*vp, checkNil, true, d)
  27529. if changed {
  27530. *vp = v
  27531. }
  27532. }
  27533. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, checkNil bool, canChange bool,
  27534. d *Decoder) (_ map[uint32]float64, changed bool) {
  27535. dd := d.d
  27536. cr := d.cr
  27537. if checkNil && dd.TryDecodeAsNil() {
  27538. if v != nil {
  27539. changed = true
  27540. }
  27541. return nil, changed
  27542. }
  27543. containerLen := dd.ReadMapStart()
  27544. if canChange && v == nil {
  27545. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27546. v = make(map[uint32]float64, xlen)
  27547. changed = true
  27548. }
  27549. var mk uint32
  27550. var mv float64
  27551. if containerLen > 0 {
  27552. for j := 0; j < containerLen; j++ {
  27553. if cr != nil {
  27554. cr.sendContainerState(containerMapKey)
  27555. }
  27556. mk = uint32(dd.DecodeUint(32))
  27557. if cr != nil {
  27558. cr.sendContainerState(containerMapValue)
  27559. }
  27560. mv = dd.DecodeFloat(false)
  27561. if v != nil {
  27562. v[mk] = mv
  27563. }
  27564. }
  27565. } else if containerLen < 0 {
  27566. for j := 0; !dd.CheckBreak(); j++ {
  27567. if cr != nil {
  27568. cr.sendContainerState(containerMapKey)
  27569. }
  27570. mk = uint32(dd.DecodeUint(32))
  27571. if cr != nil {
  27572. cr.sendContainerState(containerMapValue)
  27573. }
  27574. mv = dd.DecodeFloat(false)
  27575. if v != nil {
  27576. v[mk] = mv
  27577. }
  27578. }
  27579. }
  27580. if cr != nil {
  27581. cr.sendContainerState(containerMapEnd)
  27582. }
  27583. return v, changed
  27584. }
  27585. func (f *decFnInfo) fastpathDecMapUint32BoolR(rv reflect.Value) {
  27586. if rv.CanAddr() {
  27587. vp := rv.Addr().Interface().(*map[uint32]bool)
  27588. v, changed := fastpathTV.DecMapUint32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  27589. if changed {
  27590. *vp = v
  27591. }
  27592. } else {
  27593. v := rv.Interface().(map[uint32]bool)
  27594. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, f.d)
  27595. }
  27596. }
  27597. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, checkNil bool, d *Decoder) {
  27598. v, changed := f.DecMapUint32BoolV(*vp, checkNil, true, d)
  27599. if changed {
  27600. *vp = v
  27601. }
  27602. }
  27603. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, checkNil bool, canChange bool,
  27604. d *Decoder) (_ map[uint32]bool, changed bool) {
  27605. dd := d.d
  27606. cr := d.cr
  27607. if checkNil && dd.TryDecodeAsNil() {
  27608. if v != nil {
  27609. changed = true
  27610. }
  27611. return nil, changed
  27612. }
  27613. containerLen := dd.ReadMapStart()
  27614. if canChange && v == nil {
  27615. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27616. v = make(map[uint32]bool, xlen)
  27617. changed = true
  27618. }
  27619. var mk uint32
  27620. var mv bool
  27621. if containerLen > 0 {
  27622. for j := 0; j < containerLen; j++ {
  27623. if cr != nil {
  27624. cr.sendContainerState(containerMapKey)
  27625. }
  27626. mk = uint32(dd.DecodeUint(32))
  27627. if cr != nil {
  27628. cr.sendContainerState(containerMapValue)
  27629. }
  27630. mv = dd.DecodeBool()
  27631. if v != nil {
  27632. v[mk] = mv
  27633. }
  27634. }
  27635. } else if containerLen < 0 {
  27636. for j := 0; !dd.CheckBreak(); j++ {
  27637. if cr != nil {
  27638. cr.sendContainerState(containerMapKey)
  27639. }
  27640. mk = uint32(dd.DecodeUint(32))
  27641. if cr != nil {
  27642. cr.sendContainerState(containerMapValue)
  27643. }
  27644. mv = dd.DecodeBool()
  27645. if v != nil {
  27646. v[mk] = mv
  27647. }
  27648. }
  27649. }
  27650. if cr != nil {
  27651. cr.sendContainerState(containerMapEnd)
  27652. }
  27653. return v, changed
  27654. }
  27655. func (f *decFnInfo) fastpathDecMapUint64IntfR(rv reflect.Value) {
  27656. if rv.CanAddr() {
  27657. vp := rv.Addr().Interface().(*map[uint64]interface{})
  27658. v, changed := fastpathTV.DecMapUint64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  27659. if changed {
  27660. *vp = v
  27661. }
  27662. } else {
  27663. v := rv.Interface().(map[uint64]interface{})
  27664. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, f.d)
  27665. }
  27666. }
  27667. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, checkNil bool, d *Decoder) {
  27668. v, changed := f.DecMapUint64IntfV(*vp, checkNil, true, d)
  27669. if changed {
  27670. *vp = v
  27671. }
  27672. }
  27673. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, checkNil bool, canChange bool,
  27674. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  27675. dd := d.d
  27676. cr := d.cr
  27677. if checkNil && dd.TryDecodeAsNil() {
  27678. if v != nil {
  27679. changed = true
  27680. }
  27681. return nil, changed
  27682. }
  27683. containerLen := dd.ReadMapStart()
  27684. if canChange && v == nil {
  27685. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27686. v = make(map[uint64]interface{}, xlen)
  27687. changed = true
  27688. }
  27689. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  27690. var mk uint64
  27691. var mv interface{}
  27692. if containerLen > 0 {
  27693. for j := 0; j < containerLen; j++ {
  27694. if cr != nil {
  27695. cr.sendContainerState(containerMapKey)
  27696. }
  27697. mk = dd.DecodeUint(64)
  27698. if cr != nil {
  27699. cr.sendContainerState(containerMapValue)
  27700. }
  27701. if mapGet {
  27702. mv = v[mk]
  27703. } else {
  27704. mv = nil
  27705. }
  27706. d.decode(&mv)
  27707. if v != nil {
  27708. v[mk] = mv
  27709. }
  27710. }
  27711. } else if containerLen < 0 {
  27712. for j := 0; !dd.CheckBreak(); j++ {
  27713. if cr != nil {
  27714. cr.sendContainerState(containerMapKey)
  27715. }
  27716. mk = dd.DecodeUint(64)
  27717. if cr != nil {
  27718. cr.sendContainerState(containerMapValue)
  27719. }
  27720. if mapGet {
  27721. mv = v[mk]
  27722. } else {
  27723. mv = nil
  27724. }
  27725. d.decode(&mv)
  27726. if v != nil {
  27727. v[mk] = mv
  27728. }
  27729. }
  27730. }
  27731. if cr != nil {
  27732. cr.sendContainerState(containerMapEnd)
  27733. }
  27734. return v, changed
  27735. }
  27736. func (f *decFnInfo) fastpathDecMapUint64StringR(rv reflect.Value) {
  27737. if rv.CanAddr() {
  27738. vp := rv.Addr().Interface().(*map[uint64]string)
  27739. v, changed := fastpathTV.DecMapUint64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  27740. if changed {
  27741. *vp = v
  27742. }
  27743. } else {
  27744. v := rv.Interface().(map[uint64]string)
  27745. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, f.d)
  27746. }
  27747. }
  27748. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, checkNil bool, d *Decoder) {
  27749. v, changed := f.DecMapUint64StringV(*vp, checkNil, true, d)
  27750. if changed {
  27751. *vp = v
  27752. }
  27753. }
  27754. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, checkNil bool, canChange bool,
  27755. d *Decoder) (_ map[uint64]string, changed bool) {
  27756. dd := d.d
  27757. cr := d.cr
  27758. if checkNil && dd.TryDecodeAsNil() {
  27759. if v != nil {
  27760. changed = true
  27761. }
  27762. return nil, changed
  27763. }
  27764. containerLen := dd.ReadMapStart()
  27765. if canChange && v == nil {
  27766. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27767. v = make(map[uint64]string, xlen)
  27768. changed = true
  27769. }
  27770. var mk uint64
  27771. var mv string
  27772. if containerLen > 0 {
  27773. for j := 0; j < containerLen; j++ {
  27774. if cr != nil {
  27775. cr.sendContainerState(containerMapKey)
  27776. }
  27777. mk = dd.DecodeUint(64)
  27778. if cr != nil {
  27779. cr.sendContainerState(containerMapValue)
  27780. }
  27781. mv = dd.DecodeString()
  27782. if v != nil {
  27783. v[mk] = mv
  27784. }
  27785. }
  27786. } else if containerLen < 0 {
  27787. for j := 0; !dd.CheckBreak(); j++ {
  27788. if cr != nil {
  27789. cr.sendContainerState(containerMapKey)
  27790. }
  27791. mk = dd.DecodeUint(64)
  27792. if cr != nil {
  27793. cr.sendContainerState(containerMapValue)
  27794. }
  27795. mv = dd.DecodeString()
  27796. if v != nil {
  27797. v[mk] = mv
  27798. }
  27799. }
  27800. }
  27801. if cr != nil {
  27802. cr.sendContainerState(containerMapEnd)
  27803. }
  27804. return v, changed
  27805. }
  27806. func (f *decFnInfo) fastpathDecMapUint64UintR(rv reflect.Value) {
  27807. if rv.CanAddr() {
  27808. vp := rv.Addr().Interface().(*map[uint64]uint)
  27809. v, changed := fastpathTV.DecMapUint64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  27810. if changed {
  27811. *vp = v
  27812. }
  27813. } else {
  27814. v := rv.Interface().(map[uint64]uint)
  27815. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, f.d)
  27816. }
  27817. }
  27818. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, checkNil bool, d *Decoder) {
  27819. v, changed := f.DecMapUint64UintV(*vp, checkNil, true, d)
  27820. if changed {
  27821. *vp = v
  27822. }
  27823. }
  27824. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, checkNil bool, canChange bool,
  27825. d *Decoder) (_ map[uint64]uint, changed bool) {
  27826. dd := d.d
  27827. cr := d.cr
  27828. if checkNil && dd.TryDecodeAsNil() {
  27829. if v != nil {
  27830. changed = true
  27831. }
  27832. return nil, changed
  27833. }
  27834. containerLen := dd.ReadMapStart()
  27835. if canChange && v == nil {
  27836. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27837. v = make(map[uint64]uint, xlen)
  27838. changed = true
  27839. }
  27840. var mk uint64
  27841. var mv uint
  27842. if containerLen > 0 {
  27843. for j := 0; j < containerLen; j++ {
  27844. if cr != nil {
  27845. cr.sendContainerState(containerMapKey)
  27846. }
  27847. mk = dd.DecodeUint(64)
  27848. if cr != nil {
  27849. cr.sendContainerState(containerMapValue)
  27850. }
  27851. mv = uint(dd.DecodeUint(uintBitsize))
  27852. if v != nil {
  27853. v[mk] = mv
  27854. }
  27855. }
  27856. } else if containerLen < 0 {
  27857. for j := 0; !dd.CheckBreak(); j++ {
  27858. if cr != nil {
  27859. cr.sendContainerState(containerMapKey)
  27860. }
  27861. mk = dd.DecodeUint(64)
  27862. if cr != nil {
  27863. cr.sendContainerState(containerMapValue)
  27864. }
  27865. mv = uint(dd.DecodeUint(uintBitsize))
  27866. if v != nil {
  27867. v[mk] = mv
  27868. }
  27869. }
  27870. }
  27871. if cr != nil {
  27872. cr.sendContainerState(containerMapEnd)
  27873. }
  27874. return v, changed
  27875. }
  27876. func (f *decFnInfo) fastpathDecMapUint64Uint8R(rv reflect.Value) {
  27877. if rv.CanAddr() {
  27878. vp := rv.Addr().Interface().(*map[uint64]uint8)
  27879. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  27880. if changed {
  27881. *vp = v
  27882. }
  27883. } else {
  27884. v := rv.Interface().(map[uint64]uint8)
  27885. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  27886. }
  27887. }
  27888. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, checkNil bool, d *Decoder) {
  27889. v, changed := f.DecMapUint64Uint8V(*vp, checkNil, true, d)
  27890. if changed {
  27891. *vp = v
  27892. }
  27893. }
  27894. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, checkNil bool, canChange bool,
  27895. d *Decoder) (_ map[uint64]uint8, changed bool) {
  27896. dd := d.d
  27897. cr := d.cr
  27898. if checkNil && dd.TryDecodeAsNil() {
  27899. if v != nil {
  27900. changed = true
  27901. }
  27902. return nil, changed
  27903. }
  27904. containerLen := dd.ReadMapStart()
  27905. if canChange && v == nil {
  27906. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27907. v = make(map[uint64]uint8, xlen)
  27908. changed = true
  27909. }
  27910. var mk uint64
  27911. var mv uint8
  27912. if containerLen > 0 {
  27913. for j := 0; j < containerLen; j++ {
  27914. if cr != nil {
  27915. cr.sendContainerState(containerMapKey)
  27916. }
  27917. mk = dd.DecodeUint(64)
  27918. if cr != nil {
  27919. cr.sendContainerState(containerMapValue)
  27920. }
  27921. mv = uint8(dd.DecodeUint(8))
  27922. if v != nil {
  27923. v[mk] = mv
  27924. }
  27925. }
  27926. } else if containerLen < 0 {
  27927. for j := 0; !dd.CheckBreak(); j++ {
  27928. if cr != nil {
  27929. cr.sendContainerState(containerMapKey)
  27930. }
  27931. mk = dd.DecodeUint(64)
  27932. if cr != nil {
  27933. cr.sendContainerState(containerMapValue)
  27934. }
  27935. mv = uint8(dd.DecodeUint(8))
  27936. if v != nil {
  27937. v[mk] = mv
  27938. }
  27939. }
  27940. }
  27941. if cr != nil {
  27942. cr.sendContainerState(containerMapEnd)
  27943. }
  27944. return v, changed
  27945. }
  27946. func (f *decFnInfo) fastpathDecMapUint64Uint16R(rv reflect.Value) {
  27947. if rv.CanAddr() {
  27948. vp := rv.Addr().Interface().(*map[uint64]uint16)
  27949. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  27950. if changed {
  27951. *vp = v
  27952. }
  27953. } else {
  27954. v := rv.Interface().(map[uint64]uint16)
  27955. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  27956. }
  27957. }
  27958. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, checkNil bool, d *Decoder) {
  27959. v, changed := f.DecMapUint64Uint16V(*vp, checkNil, true, d)
  27960. if changed {
  27961. *vp = v
  27962. }
  27963. }
  27964. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, checkNil bool, canChange bool,
  27965. d *Decoder) (_ map[uint64]uint16, changed bool) {
  27966. dd := d.d
  27967. cr := d.cr
  27968. if checkNil && dd.TryDecodeAsNil() {
  27969. if v != nil {
  27970. changed = true
  27971. }
  27972. return nil, changed
  27973. }
  27974. containerLen := dd.ReadMapStart()
  27975. if canChange && v == nil {
  27976. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27977. v = make(map[uint64]uint16, xlen)
  27978. changed = true
  27979. }
  27980. var mk uint64
  27981. var mv uint16
  27982. if containerLen > 0 {
  27983. for j := 0; j < containerLen; j++ {
  27984. if cr != nil {
  27985. cr.sendContainerState(containerMapKey)
  27986. }
  27987. mk = dd.DecodeUint(64)
  27988. if cr != nil {
  27989. cr.sendContainerState(containerMapValue)
  27990. }
  27991. mv = uint16(dd.DecodeUint(16))
  27992. if v != nil {
  27993. v[mk] = mv
  27994. }
  27995. }
  27996. } else if containerLen < 0 {
  27997. for j := 0; !dd.CheckBreak(); j++ {
  27998. if cr != nil {
  27999. cr.sendContainerState(containerMapKey)
  28000. }
  28001. mk = dd.DecodeUint(64)
  28002. if cr != nil {
  28003. cr.sendContainerState(containerMapValue)
  28004. }
  28005. mv = uint16(dd.DecodeUint(16))
  28006. if v != nil {
  28007. v[mk] = mv
  28008. }
  28009. }
  28010. }
  28011. if cr != nil {
  28012. cr.sendContainerState(containerMapEnd)
  28013. }
  28014. return v, changed
  28015. }
  28016. func (f *decFnInfo) fastpathDecMapUint64Uint32R(rv reflect.Value) {
  28017. if rv.CanAddr() {
  28018. vp := rv.Addr().Interface().(*map[uint64]uint32)
  28019. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  28020. if changed {
  28021. *vp = v
  28022. }
  28023. } else {
  28024. v := rv.Interface().(map[uint64]uint32)
  28025. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  28026. }
  28027. }
  28028. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, checkNil bool, d *Decoder) {
  28029. v, changed := f.DecMapUint64Uint32V(*vp, checkNil, true, d)
  28030. if changed {
  28031. *vp = v
  28032. }
  28033. }
  28034. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, checkNil bool, canChange bool,
  28035. d *Decoder) (_ map[uint64]uint32, changed bool) {
  28036. dd := d.d
  28037. cr := d.cr
  28038. if checkNil && dd.TryDecodeAsNil() {
  28039. if v != nil {
  28040. changed = true
  28041. }
  28042. return nil, changed
  28043. }
  28044. containerLen := dd.ReadMapStart()
  28045. if canChange && v == nil {
  28046. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28047. v = make(map[uint64]uint32, xlen)
  28048. changed = true
  28049. }
  28050. var mk uint64
  28051. var mv uint32
  28052. if containerLen > 0 {
  28053. for j := 0; j < containerLen; j++ {
  28054. if cr != nil {
  28055. cr.sendContainerState(containerMapKey)
  28056. }
  28057. mk = dd.DecodeUint(64)
  28058. if cr != nil {
  28059. cr.sendContainerState(containerMapValue)
  28060. }
  28061. mv = uint32(dd.DecodeUint(32))
  28062. if v != nil {
  28063. v[mk] = mv
  28064. }
  28065. }
  28066. } else if containerLen < 0 {
  28067. for j := 0; !dd.CheckBreak(); j++ {
  28068. if cr != nil {
  28069. cr.sendContainerState(containerMapKey)
  28070. }
  28071. mk = dd.DecodeUint(64)
  28072. if cr != nil {
  28073. cr.sendContainerState(containerMapValue)
  28074. }
  28075. mv = uint32(dd.DecodeUint(32))
  28076. if v != nil {
  28077. v[mk] = mv
  28078. }
  28079. }
  28080. }
  28081. if cr != nil {
  28082. cr.sendContainerState(containerMapEnd)
  28083. }
  28084. return v, changed
  28085. }
  28086. func (f *decFnInfo) fastpathDecMapUint64Uint64R(rv reflect.Value) {
  28087. if rv.CanAddr() {
  28088. vp := rv.Addr().Interface().(*map[uint64]uint64)
  28089. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  28090. if changed {
  28091. *vp = v
  28092. }
  28093. } else {
  28094. v := rv.Interface().(map[uint64]uint64)
  28095. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  28096. }
  28097. }
  28098. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, checkNil bool, d *Decoder) {
  28099. v, changed := f.DecMapUint64Uint64V(*vp, checkNil, true, d)
  28100. if changed {
  28101. *vp = v
  28102. }
  28103. }
  28104. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, checkNil bool, canChange bool,
  28105. d *Decoder) (_ map[uint64]uint64, changed bool) {
  28106. dd := d.d
  28107. cr := d.cr
  28108. if checkNil && dd.TryDecodeAsNil() {
  28109. if v != nil {
  28110. changed = true
  28111. }
  28112. return nil, changed
  28113. }
  28114. containerLen := dd.ReadMapStart()
  28115. if canChange && v == nil {
  28116. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28117. v = make(map[uint64]uint64, xlen)
  28118. changed = true
  28119. }
  28120. var mk uint64
  28121. var mv uint64
  28122. if containerLen > 0 {
  28123. for j := 0; j < containerLen; j++ {
  28124. if cr != nil {
  28125. cr.sendContainerState(containerMapKey)
  28126. }
  28127. mk = dd.DecodeUint(64)
  28128. if cr != nil {
  28129. cr.sendContainerState(containerMapValue)
  28130. }
  28131. mv = dd.DecodeUint(64)
  28132. if v != nil {
  28133. v[mk] = mv
  28134. }
  28135. }
  28136. } else if containerLen < 0 {
  28137. for j := 0; !dd.CheckBreak(); j++ {
  28138. if cr != nil {
  28139. cr.sendContainerState(containerMapKey)
  28140. }
  28141. mk = dd.DecodeUint(64)
  28142. if cr != nil {
  28143. cr.sendContainerState(containerMapValue)
  28144. }
  28145. mv = dd.DecodeUint(64)
  28146. if v != nil {
  28147. v[mk] = mv
  28148. }
  28149. }
  28150. }
  28151. if cr != nil {
  28152. cr.sendContainerState(containerMapEnd)
  28153. }
  28154. return v, changed
  28155. }
  28156. func (f *decFnInfo) fastpathDecMapUint64UintptrR(rv reflect.Value) {
  28157. if rv.CanAddr() {
  28158. vp := rv.Addr().Interface().(*map[uint64]uintptr)
  28159. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  28160. if changed {
  28161. *vp = v
  28162. }
  28163. } else {
  28164. v := rv.Interface().(map[uint64]uintptr)
  28165. fastpathTV.DecMapUint64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  28166. }
  28167. }
  28168. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, checkNil bool, d *Decoder) {
  28169. v, changed := f.DecMapUint64UintptrV(*vp, checkNil, true, d)
  28170. if changed {
  28171. *vp = v
  28172. }
  28173. }
  28174. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, checkNil bool, canChange bool,
  28175. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  28176. dd := d.d
  28177. cr := d.cr
  28178. if checkNil && dd.TryDecodeAsNil() {
  28179. if v != nil {
  28180. changed = true
  28181. }
  28182. return nil, changed
  28183. }
  28184. containerLen := dd.ReadMapStart()
  28185. if canChange && v == nil {
  28186. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28187. v = make(map[uint64]uintptr, xlen)
  28188. changed = true
  28189. }
  28190. var mk uint64
  28191. var mv uintptr
  28192. if containerLen > 0 {
  28193. for j := 0; j < containerLen; j++ {
  28194. if cr != nil {
  28195. cr.sendContainerState(containerMapKey)
  28196. }
  28197. mk = dd.DecodeUint(64)
  28198. if cr != nil {
  28199. cr.sendContainerState(containerMapValue)
  28200. }
  28201. mv = uintptr(dd.DecodeUint(uintBitsize))
  28202. if v != nil {
  28203. v[mk] = mv
  28204. }
  28205. }
  28206. } else if containerLen < 0 {
  28207. for j := 0; !dd.CheckBreak(); j++ {
  28208. if cr != nil {
  28209. cr.sendContainerState(containerMapKey)
  28210. }
  28211. mk = dd.DecodeUint(64)
  28212. if cr != nil {
  28213. cr.sendContainerState(containerMapValue)
  28214. }
  28215. mv = uintptr(dd.DecodeUint(uintBitsize))
  28216. if v != nil {
  28217. v[mk] = mv
  28218. }
  28219. }
  28220. }
  28221. if cr != nil {
  28222. cr.sendContainerState(containerMapEnd)
  28223. }
  28224. return v, changed
  28225. }
  28226. func (f *decFnInfo) fastpathDecMapUint64IntR(rv reflect.Value) {
  28227. if rv.CanAddr() {
  28228. vp := rv.Addr().Interface().(*map[uint64]int)
  28229. v, changed := fastpathTV.DecMapUint64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  28230. if changed {
  28231. *vp = v
  28232. }
  28233. } else {
  28234. v := rv.Interface().(map[uint64]int)
  28235. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, f.d)
  28236. }
  28237. }
  28238. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, checkNil bool, d *Decoder) {
  28239. v, changed := f.DecMapUint64IntV(*vp, checkNil, true, d)
  28240. if changed {
  28241. *vp = v
  28242. }
  28243. }
  28244. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, checkNil bool, canChange bool,
  28245. d *Decoder) (_ map[uint64]int, changed bool) {
  28246. dd := d.d
  28247. cr := d.cr
  28248. if checkNil && dd.TryDecodeAsNil() {
  28249. if v != nil {
  28250. changed = true
  28251. }
  28252. return nil, changed
  28253. }
  28254. containerLen := dd.ReadMapStart()
  28255. if canChange && v == nil {
  28256. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28257. v = make(map[uint64]int, xlen)
  28258. changed = true
  28259. }
  28260. var mk uint64
  28261. var mv int
  28262. if containerLen > 0 {
  28263. for j := 0; j < containerLen; j++ {
  28264. if cr != nil {
  28265. cr.sendContainerState(containerMapKey)
  28266. }
  28267. mk = dd.DecodeUint(64)
  28268. if cr != nil {
  28269. cr.sendContainerState(containerMapValue)
  28270. }
  28271. mv = int(dd.DecodeInt(intBitsize))
  28272. if v != nil {
  28273. v[mk] = mv
  28274. }
  28275. }
  28276. } else if containerLen < 0 {
  28277. for j := 0; !dd.CheckBreak(); j++ {
  28278. if cr != nil {
  28279. cr.sendContainerState(containerMapKey)
  28280. }
  28281. mk = dd.DecodeUint(64)
  28282. if cr != nil {
  28283. cr.sendContainerState(containerMapValue)
  28284. }
  28285. mv = int(dd.DecodeInt(intBitsize))
  28286. if v != nil {
  28287. v[mk] = mv
  28288. }
  28289. }
  28290. }
  28291. if cr != nil {
  28292. cr.sendContainerState(containerMapEnd)
  28293. }
  28294. return v, changed
  28295. }
  28296. func (f *decFnInfo) fastpathDecMapUint64Int8R(rv reflect.Value) {
  28297. if rv.CanAddr() {
  28298. vp := rv.Addr().Interface().(*map[uint64]int8)
  28299. v, changed := fastpathTV.DecMapUint64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  28300. if changed {
  28301. *vp = v
  28302. }
  28303. } else {
  28304. v := rv.Interface().(map[uint64]int8)
  28305. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, f.d)
  28306. }
  28307. }
  28308. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, checkNil bool, d *Decoder) {
  28309. v, changed := f.DecMapUint64Int8V(*vp, checkNil, true, d)
  28310. if changed {
  28311. *vp = v
  28312. }
  28313. }
  28314. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, checkNil bool, canChange bool,
  28315. d *Decoder) (_ map[uint64]int8, changed bool) {
  28316. dd := d.d
  28317. cr := d.cr
  28318. if checkNil && dd.TryDecodeAsNil() {
  28319. if v != nil {
  28320. changed = true
  28321. }
  28322. return nil, changed
  28323. }
  28324. containerLen := dd.ReadMapStart()
  28325. if canChange && v == nil {
  28326. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28327. v = make(map[uint64]int8, xlen)
  28328. changed = true
  28329. }
  28330. var mk uint64
  28331. var mv int8
  28332. if containerLen > 0 {
  28333. for j := 0; j < containerLen; j++ {
  28334. if cr != nil {
  28335. cr.sendContainerState(containerMapKey)
  28336. }
  28337. mk = dd.DecodeUint(64)
  28338. if cr != nil {
  28339. cr.sendContainerState(containerMapValue)
  28340. }
  28341. mv = int8(dd.DecodeInt(8))
  28342. if v != nil {
  28343. v[mk] = mv
  28344. }
  28345. }
  28346. } else if containerLen < 0 {
  28347. for j := 0; !dd.CheckBreak(); j++ {
  28348. if cr != nil {
  28349. cr.sendContainerState(containerMapKey)
  28350. }
  28351. mk = dd.DecodeUint(64)
  28352. if cr != nil {
  28353. cr.sendContainerState(containerMapValue)
  28354. }
  28355. mv = int8(dd.DecodeInt(8))
  28356. if v != nil {
  28357. v[mk] = mv
  28358. }
  28359. }
  28360. }
  28361. if cr != nil {
  28362. cr.sendContainerState(containerMapEnd)
  28363. }
  28364. return v, changed
  28365. }
  28366. func (f *decFnInfo) fastpathDecMapUint64Int16R(rv reflect.Value) {
  28367. if rv.CanAddr() {
  28368. vp := rv.Addr().Interface().(*map[uint64]int16)
  28369. v, changed := fastpathTV.DecMapUint64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  28370. if changed {
  28371. *vp = v
  28372. }
  28373. } else {
  28374. v := rv.Interface().(map[uint64]int16)
  28375. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, f.d)
  28376. }
  28377. }
  28378. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, checkNil bool, d *Decoder) {
  28379. v, changed := f.DecMapUint64Int16V(*vp, checkNil, true, d)
  28380. if changed {
  28381. *vp = v
  28382. }
  28383. }
  28384. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, checkNil bool, canChange bool,
  28385. d *Decoder) (_ map[uint64]int16, changed bool) {
  28386. dd := d.d
  28387. cr := d.cr
  28388. if checkNil && dd.TryDecodeAsNil() {
  28389. if v != nil {
  28390. changed = true
  28391. }
  28392. return nil, changed
  28393. }
  28394. containerLen := dd.ReadMapStart()
  28395. if canChange && v == nil {
  28396. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28397. v = make(map[uint64]int16, xlen)
  28398. changed = true
  28399. }
  28400. var mk uint64
  28401. var mv int16
  28402. if containerLen > 0 {
  28403. for j := 0; j < containerLen; j++ {
  28404. if cr != nil {
  28405. cr.sendContainerState(containerMapKey)
  28406. }
  28407. mk = dd.DecodeUint(64)
  28408. if cr != nil {
  28409. cr.sendContainerState(containerMapValue)
  28410. }
  28411. mv = int16(dd.DecodeInt(16))
  28412. if v != nil {
  28413. v[mk] = mv
  28414. }
  28415. }
  28416. } else if containerLen < 0 {
  28417. for j := 0; !dd.CheckBreak(); j++ {
  28418. if cr != nil {
  28419. cr.sendContainerState(containerMapKey)
  28420. }
  28421. mk = dd.DecodeUint(64)
  28422. if cr != nil {
  28423. cr.sendContainerState(containerMapValue)
  28424. }
  28425. mv = int16(dd.DecodeInt(16))
  28426. if v != nil {
  28427. v[mk] = mv
  28428. }
  28429. }
  28430. }
  28431. if cr != nil {
  28432. cr.sendContainerState(containerMapEnd)
  28433. }
  28434. return v, changed
  28435. }
  28436. func (f *decFnInfo) fastpathDecMapUint64Int32R(rv reflect.Value) {
  28437. if rv.CanAddr() {
  28438. vp := rv.Addr().Interface().(*map[uint64]int32)
  28439. v, changed := fastpathTV.DecMapUint64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  28440. if changed {
  28441. *vp = v
  28442. }
  28443. } else {
  28444. v := rv.Interface().(map[uint64]int32)
  28445. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, f.d)
  28446. }
  28447. }
  28448. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, checkNil bool, d *Decoder) {
  28449. v, changed := f.DecMapUint64Int32V(*vp, checkNil, true, d)
  28450. if changed {
  28451. *vp = v
  28452. }
  28453. }
  28454. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, checkNil bool, canChange bool,
  28455. d *Decoder) (_ map[uint64]int32, changed bool) {
  28456. dd := d.d
  28457. cr := d.cr
  28458. if checkNil && dd.TryDecodeAsNil() {
  28459. if v != nil {
  28460. changed = true
  28461. }
  28462. return nil, changed
  28463. }
  28464. containerLen := dd.ReadMapStart()
  28465. if canChange && v == nil {
  28466. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28467. v = make(map[uint64]int32, xlen)
  28468. changed = true
  28469. }
  28470. var mk uint64
  28471. var mv int32
  28472. if containerLen > 0 {
  28473. for j := 0; j < containerLen; j++ {
  28474. if cr != nil {
  28475. cr.sendContainerState(containerMapKey)
  28476. }
  28477. mk = dd.DecodeUint(64)
  28478. if cr != nil {
  28479. cr.sendContainerState(containerMapValue)
  28480. }
  28481. mv = int32(dd.DecodeInt(32))
  28482. if v != nil {
  28483. v[mk] = mv
  28484. }
  28485. }
  28486. } else if containerLen < 0 {
  28487. for j := 0; !dd.CheckBreak(); j++ {
  28488. if cr != nil {
  28489. cr.sendContainerState(containerMapKey)
  28490. }
  28491. mk = dd.DecodeUint(64)
  28492. if cr != nil {
  28493. cr.sendContainerState(containerMapValue)
  28494. }
  28495. mv = int32(dd.DecodeInt(32))
  28496. if v != nil {
  28497. v[mk] = mv
  28498. }
  28499. }
  28500. }
  28501. if cr != nil {
  28502. cr.sendContainerState(containerMapEnd)
  28503. }
  28504. return v, changed
  28505. }
  28506. func (f *decFnInfo) fastpathDecMapUint64Int64R(rv reflect.Value) {
  28507. if rv.CanAddr() {
  28508. vp := rv.Addr().Interface().(*map[uint64]int64)
  28509. v, changed := fastpathTV.DecMapUint64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  28510. if changed {
  28511. *vp = v
  28512. }
  28513. } else {
  28514. v := rv.Interface().(map[uint64]int64)
  28515. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, f.d)
  28516. }
  28517. }
  28518. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, checkNil bool, d *Decoder) {
  28519. v, changed := f.DecMapUint64Int64V(*vp, checkNil, true, d)
  28520. if changed {
  28521. *vp = v
  28522. }
  28523. }
  28524. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, checkNil bool, canChange bool,
  28525. d *Decoder) (_ map[uint64]int64, changed bool) {
  28526. dd := d.d
  28527. cr := d.cr
  28528. if checkNil && dd.TryDecodeAsNil() {
  28529. if v != nil {
  28530. changed = true
  28531. }
  28532. return nil, changed
  28533. }
  28534. containerLen := dd.ReadMapStart()
  28535. if canChange && v == nil {
  28536. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28537. v = make(map[uint64]int64, xlen)
  28538. changed = true
  28539. }
  28540. var mk uint64
  28541. var mv int64
  28542. if containerLen > 0 {
  28543. for j := 0; j < containerLen; j++ {
  28544. if cr != nil {
  28545. cr.sendContainerState(containerMapKey)
  28546. }
  28547. mk = dd.DecodeUint(64)
  28548. if cr != nil {
  28549. cr.sendContainerState(containerMapValue)
  28550. }
  28551. mv = dd.DecodeInt(64)
  28552. if v != nil {
  28553. v[mk] = mv
  28554. }
  28555. }
  28556. } else if containerLen < 0 {
  28557. for j := 0; !dd.CheckBreak(); j++ {
  28558. if cr != nil {
  28559. cr.sendContainerState(containerMapKey)
  28560. }
  28561. mk = dd.DecodeUint(64)
  28562. if cr != nil {
  28563. cr.sendContainerState(containerMapValue)
  28564. }
  28565. mv = dd.DecodeInt(64)
  28566. if v != nil {
  28567. v[mk] = mv
  28568. }
  28569. }
  28570. }
  28571. if cr != nil {
  28572. cr.sendContainerState(containerMapEnd)
  28573. }
  28574. return v, changed
  28575. }
  28576. func (f *decFnInfo) fastpathDecMapUint64Float32R(rv reflect.Value) {
  28577. if rv.CanAddr() {
  28578. vp := rv.Addr().Interface().(*map[uint64]float32)
  28579. v, changed := fastpathTV.DecMapUint64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  28580. if changed {
  28581. *vp = v
  28582. }
  28583. } else {
  28584. v := rv.Interface().(map[uint64]float32)
  28585. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, f.d)
  28586. }
  28587. }
  28588. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, checkNil bool, d *Decoder) {
  28589. v, changed := f.DecMapUint64Float32V(*vp, checkNil, true, d)
  28590. if changed {
  28591. *vp = v
  28592. }
  28593. }
  28594. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, checkNil bool, canChange bool,
  28595. d *Decoder) (_ map[uint64]float32, changed bool) {
  28596. dd := d.d
  28597. cr := d.cr
  28598. if checkNil && dd.TryDecodeAsNil() {
  28599. if v != nil {
  28600. changed = true
  28601. }
  28602. return nil, changed
  28603. }
  28604. containerLen := dd.ReadMapStart()
  28605. if canChange && v == nil {
  28606. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28607. v = make(map[uint64]float32, xlen)
  28608. changed = true
  28609. }
  28610. var mk uint64
  28611. var mv float32
  28612. if containerLen > 0 {
  28613. for j := 0; j < containerLen; j++ {
  28614. if cr != nil {
  28615. cr.sendContainerState(containerMapKey)
  28616. }
  28617. mk = dd.DecodeUint(64)
  28618. if cr != nil {
  28619. cr.sendContainerState(containerMapValue)
  28620. }
  28621. mv = float32(dd.DecodeFloat(true))
  28622. if v != nil {
  28623. v[mk] = mv
  28624. }
  28625. }
  28626. } else if containerLen < 0 {
  28627. for j := 0; !dd.CheckBreak(); j++ {
  28628. if cr != nil {
  28629. cr.sendContainerState(containerMapKey)
  28630. }
  28631. mk = dd.DecodeUint(64)
  28632. if cr != nil {
  28633. cr.sendContainerState(containerMapValue)
  28634. }
  28635. mv = float32(dd.DecodeFloat(true))
  28636. if v != nil {
  28637. v[mk] = mv
  28638. }
  28639. }
  28640. }
  28641. if cr != nil {
  28642. cr.sendContainerState(containerMapEnd)
  28643. }
  28644. return v, changed
  28645. }
  28646. func (f *decFnInfo) fastpathDecMapUint64Float64R(rv reflect.Value) {
  28647. if rv.CanAddr() {
  28648. vp := rv.Addr().Interface().(*map[uint64]float64)
  28649. v, changed := fastpathTV.DecMapUint64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  28650. if changed {
  28651. *vp = v
  28652. }
  28653. } else {
  28654. v := rv.Interface().(map[uint64]float64)
  28655. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, f.d)
  28656. }
  28657. }
  28658. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, checkNil bool, d *Decoder) {
  28659. v, changed := f.DecMapUint64Float64V(*vp, checkNil, true, d)
  28660. if changed {
  28661. *vp = v
  28662. }
  28663. }
  28664. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, checkNil bool, canChange bool,
  28665. d *Decoder) (_ map[uint64]float64, changed bool) {
  28666. dd := d.d
  28667. cr := d.cr
  28668. if checkNil && dd.TryDecodeAsNil() {
  28669. if v != nil {
  28670. changed = true
  28671. }
  28672. return nil, changed
  28673. }
  28674. containerLen := dd.ReadMapStart()
  28675. if canChange && v == nil {
  28676. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28677. v = make(map[uint64]float64, xlen)
  28678. changed = true
  28679. }
  28680. var mk uint64
  28681. var mv float64
  28682. if containerLen > 0 {
  28683. for j := 0; j < containerLen; j++ {
  28684. if cr != nil {
  28685. cr.sendContainerState(containerMapKey)
  28686. }
  28687. mk = dd.DecodeUint(64)
  28688. if cr != nil {
  28689. cr.sendContainerState(containerMapValue)
  28690. }
  28691. mv = dd.DecodeFloat(false)
  28692. if v != nil {
  28693. v[mk] = mv
  28694. }
  28695. }
  28696. } else if containerLen < 0 {
  28697. for j := 0; !dd.CheckBreak(); j++ {
  28698. if cr != nil {
  28699. cr.sendContainerState(containerMapKey)
  28700. }
  28701. mk = dd.DecodeUint(64)
  28702. if cr != nil {
  28703. cr.sendContainerState(containerMapValue)
  28704. }
  28705. mv = dd.DecodeFloat(false)
  28706. if v != nil {
  28707. v[mk] = mv
  28708. }
  28709. }
  28710. }
  28711. if cr != nil {
  28712. cr.sendContainerState(containerMapEnd)
  28713. }
  28714. return v, changed
  28715. }
  28716. func (f *decFnInfo) fastpathDecMapUint64BoolR(rv reflect.Value) {
  28717. if rv.CanAddr() {
  28718. vp := rv.Addr().Interface().(*map[uint64]bool)
  28719. v, changed := fastpathTV.DecMapUint64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  28720. if changed {
  28721. *vp = v
  28722. }
  28723. } else {
  28724. v := rv.Interface().(map[uint64]bool)
  28725. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, f.d)
  28726. }
  28727. }
  28728. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, checkNil bool, d *Decoder) {
  28729. v, changed := f.DecMapUint64BoolV(*vp, checkNil, true, d)
  28730. if changed {
  28731. *vp = v
  28732. }
  28733. }
  28734. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, checkNil bool, canChange bool,
  28735. d *Decoder) (_ map[uint64]bool, changed bool) {
  28736. dd := d.d
  28737. cr := d.cr
  28738. if checkNil && dd.TryDecodeAsNil() {
  28739. if v != nil {
  28740. changed = true
  28741. }
  28742. return nil, changed
  28743. }
  28744. containerLen := dd.ReadMapStart()
  28745. if canChange && v == nil {
  28746. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28747. v = make(map[uint64]bool, xlen)
  28748. changed = true
  28749. }
  28750. var mk uint64
  28751. var mv bool
  28752. if containerLen > 0 {
  28753. for j := 0; j < containerLen; j++ {
  28754. if cr != nil {
  28755. cr.sendContainerState(containerMapKey)
  28756. }
  28757. mk = dd.DecodeUint(64)
  28758. if cr != nil {
  28759. cr.sendContainerState(containerMapValue)
  28760. }
  28761. mv = dd.DecodeBool()
  28762. if v != nil {
  28763. v[mk] = mv
  28764. }
  28765. }
  28766. } else if containerLen < 0 {
  28767. for j := 0; !dd.CheckBreak(); j++ {
  28768. if cr != nil {
  28769. cr.sendContainerState(containerMapKey)
  28770. }
  28771. mk = dd.DecodeUint(64)
  28772. if cr != nil {
  28773. cr.sendContainerState(containerMapValue)
  28774. }
  28775. mv = dd.DecodeBool()
  28776. if v != nil {
  28777. v[mk] = mv
  28778. }
  28779. }
  28780. }
  28781. if cr != nil {
  28782. cr.sendContainerState(containerMapEnd)
  28783. }
  28784. return v, changed
  28785. }
  28786. func (f *decFnInfo) fastpathDecMapUintptrIntfR(rv reflect.Value) {
  28787. if rv.CanAddr() {
  28788. vp := rv.Addr().Interface().(*map[uintptr]interface{})
  28789. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  28790. if changed {
  28791. *vp = v
  28792. }
  28793. } else {
  28794. v := rv.Interface().(map[uintptr]interface{})
  28795. fastpathTV.DecMapUintptrIntfV(v, fastpathCheckNilFalse, false, f.d)
  28796. }
  28797. }
  28798. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, checkNil bool, d *Decoder) {
  28799. v, changed := f.DecMapUintptrIntfV(*vp, checkNil, true, d)
  28800. if changed {
  28801. *vp = v
  28802. }
  28803. }
  28804. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, checkNil bool, canChange bool,
  28805. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  28806. dd := d.d
  28807. cr := d.cr
  28808. if checkNil && dd.TryDecodeAsNil() {
  28809. if v != nil {
  28810. changed = true
  28811. }
  28812. return nil, changed
  28813. }
  28814. containerLen := dd.ReadMapStart()
  28815. if canChange && v == nil {
  28816. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28817. v = make(map[uintptr]interface{}, xlen)
  28818. changed = true
  28819. }
  28820. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  28821. var mk uintptr
  28822. var mv interface{}
  28823. if containerLen > 0 {
  28824. for j := 0; j < containerLen; j++ {
  28825. if cr != nil {
  28826. cr.sendContainerState(containerMapKey)
  28827. }
  28828. mk = uintptr(dd.DecodeUint(uintBitsize))
  28829. if cr != nil {
  28830. cr.sendContainerState(containerMapValue)
  28831. }
  28832. if mapGet {
  28833. mv = v[mk]
  28834. } else {
  28835. mv = nil
  28836. }
  28837. d.decode(&mv)
  28838. if v != nil {
  28839. v[mk] = mv
  28840. }
  28841. }
  28842. } else if containerLen < 0 {
  28843. for j := 0; !dd.CheckBreak(); j++ {
  28844. if cr != nil {
  28845. cr.sendContainerState(containerMapKey)
  28846. }
  28847. mk = uintptr(dd.DecodeUint(uintBitsize))
  28848. if cr != nil {
  28849. cr.sendContainerState(containerMapValue)
  28850. }
  28851. if mapGet {
  28852. mv = v[mk]
  28853. } else {
  28854. mv = nil
  28855. }
  28856. d.decode(&mv)
  28857. if v != nil {
  28858. v[mk] = mv
  28859. }
  28860. }
  28861. }
  28862. if cr != nil {
  28863. cr.sendContainerState(containerMapEnd)
  28864. }
  28865. return v, changed
  28866. }
  28867. func (f *decFnInfo) fastpathDecMapUintptrStringR(rv reflect.Value) {
  28868. if rv.CanAddr() {
  28869. vp := rv.Addr().Interface().(*map[uintptr]string)
  28870. v, changed := fastpathTV.DecMapUintptrStringV(*vp, fastpathCheckNilFalse, true, f.d)
  28871. if changed {
  28872. *vp = v
  28873. }
  28874. } else {
  28875. v := rv.Interface().(map[uintptr]string)
  28876. fastpathTV.DecMapUintptrStringV(v, fastpathCheckNilFalse, false, f.d)
  28877. }
  28878. }
  28879. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, checkNil bool, d *Decoder) {
  28880. v, changed := f.DecMapUintptrStringV(*vp, checkNil, true, d)
  28881. if changed {
  28882. *vp = v
  28883. }
  28884. }
  28885. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, checkNil bool, canChange bool,
  28886. d *Decoder) (_ map[uintptr]string, changed bool) {
  28887. dd := d.d
  28888. cr := d.cr
  28889. if checkNil && dd.TryDecodeAsNil() {
  28890. if v != nil {
  28891. changed = true
  28892. }
  28893. return nil, changed
  28894. }
  28895. containerLen := dd.ReadMapStart()
  28896. if canChange && v == nil {
  28897. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28898. v = make(map[uintptr]string, xlen)
  28899. changed = true
  28900. }
  28901. var mk uintptr
  28902. var mv string
  28903. if containerLen > 0 {
  28904. for j := 0; j < containerLen; j++ {
  28905. if cr != nil {
  28906. cr.sendContainerState(containerMapKey)
  28907. }
  28908. mk = uintptr(dd.DecodeUint(uintBitsize))
  28909. if cr != nil {
  28910. cr.sendContainerState(containerMapValue)
  28911. }
  28912. mv = dd.DecodeString()
  28913. if v != nil {
  28914. v[mk] = mv
  28915. }
  28916. }
  28917. } else if containerLen < 0 {
  28918. for j := 0; !dd.CheckBreak(); j++ {
  28919. if cr != nil {
  28920. cr.sendContainerState(containerMapKey)
  28921. }
  28922. mk = uintptr(dd.DecodeUint(uintBitsize))
  28923. if cr != nil {
  28924. cr.sendContainerState(containerMapValue)
  28925. }
  28926. mv = dd.DecodeString()
  28927. if v != nil {
  28928. v[mk] = mv
  28929. }
  28930. }
  28931. }
  28932. if cr != nil {
  28933. cr.sendContainerState(containerMapEnd)
  28934. }
  28935. return v, changed
  28936. }
  28937. func (f *decFnInfo) fastpathDecMapUintptrUintR(rv reflect.Value) {
  28938. if rv.CanAddr() {
  28939. vp := rv.Addr().Interface().(*map[uintptr]uint)
  28940. v, changed := fastpathTV.DecMapUintptrUintV(*vp, fastpathCheckNilFalse, true, f.d)
  28941. if changed {
  28942. *vp = v
  28943. }
  28944. } else {
  28945. v := rv.Interface().(map[uintptr]uint)
  28946. fastpathTV.DecMapUintptrUintV(v, fastpathCheckNilFalse, false, f.d)
  28947. }
  28948. }
  28949. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, checkNil bool, d *Decoder) {
  28950. v, changed := f.DecMapUintptrUintV(*vp, checkNil, true, d)
  28951. if changed {
  28952. *vp = v
  28953. }
  28954. }
  28955. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, checkNil bool, canChange bool,
  28956. d *Decoder) (_ map[uintptr]uint, changed bool) {
  28957. dd := d.d
  28958. cr := d.cr
  28959. if checkNil && dd.TryDecodeAsNil() {
  28960. if v != nil {
  28961. changed = true
  28962. }
  28963. return nil, changed
  28964. }
  28965. containerLen := dd.ReadMapStart()
  28966. if canChange && v == nil {
  28967. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28968. v = make(map[uintptr]uint, xlen)
  28969. changed = true
  28970. }
  28971. var mk uintptr
  28972. var mv uint
  28973. if containerLen > 0 {
  28974. for j := 0; j < containerLen; j++ {
  28975. if cr != nil {
  28976. cr.sendContainerState(containerMapKey)
  28977. }
  28978. mk = uintptr(dd.DecodeUint(uintBitsize))
  28979. if cr != nil {
  28980. cr.sendContainerState(containerMapValue)
  28981. }
  28982. mv = uint(dd.DecodeUint(uintBitsize))
  28983. if v != nil {
  28984. v[mk] = mv
  28985. }
  28986. }
  28987. } else if containerLen < 0 {
  28988. for j := 0; !dd.CheckBreak(); j++ {
  28989. if cr != nil {
  28990. cr.sendContainerState(containerMapKey)
  28991. }
  28992. mk = uintptr(dd.DecodeUint(uintBitsize))
  28993. if cr != nil {
  28994. cr.sendContainerState(containerMapValue)
  28995. }
  28996. mv = uint(dd.DecodeUint(uintBitsize))
  28997. if v != nil {
  28998. v[mk] = mv
  28999. }
  29000. }
  29001. }
  29002. if cr != nil {
  29003. cr.sendContainerState(containerMapEnd)
  29004. }
  29005. return v, changed
  29006. }
  29007. func (f *decFnInfo) fastpathDecMapUintptrUint8R(rv reflect.Value) {
  29008. if rv.CanAddr() {
  29009. vp := rv.Addr().Interface().(*map[uintptr]uint8)
  29010. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  29011. if changed {
  29012. *vp = v
  29013. }
  29014. } else {
  29015. v := rv.Interface().(map[uintptr]uint8)
  29016. fastpathTV.DecMapUintptrUint8V(v, fastpathCheckNilFalse, false, f.d)
  29017. }
  29018. }
  29019. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, checkNil bool, d *Decoder) {
  29020. v, changed := f.DecMapUintptrUint8V(*vp, checkNil, true, d)
  29021. if changed {
  29022. *vp = v
  29023. }
  29024. }
  29025. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, checkNil bool, canChange bool,
  29026. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  29027. dd := d.d
  29028. cr := d.cr
  29029. if checkNil && dd.TryDecodeAsNil() {
  29030. if v != nil {
  29031. changed = true
  29032. }
  29033. return nil, changed
  29034. }
  29035. containerLen := dd.ReadMapStart()
  29036. if canChange && v == nil {
  29037. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29038. v = make(map[uintptr]uint8, xlen)
  29039. changed = true
  29040. }
  29041. var mk uintptr
  29042. var mv uint8
  29043. if containerLen > 0 {
  29044. for j := 0; j < containerLen; j++ {
  29045. if cr != nil {
  29046. cr.sendContainerState(containerMapKey)
  29047. }
  29048. mk = uintptr(dd.DecodeUint(uintBitsize))
  29049. if cr != nil {
  29050. cr.sendContainerState(containerMapValue)
  29051. }
  29052. mv = uint8(dd.DecodeUint(8))
  29053. if v != nil {
  29054. v[mk] = mv
  29055. }
  29056. }
  29057. } else if containerLen < 0 {
  29058. for j := 0; !dd.CheckBreak(); j++ {
  29059. if cr != nil {
  29060. cr.sendContainerState(containerMapKey)
  29061. }
  29062. mk = uintptr(dd.DecodeUint(uintBitsize))
  29063. if cr != nil {
  29064. cr.sendContainerState(containerMapValue)
  29065. }
  29066. mv = uint8(dd.DecodeUint(8))
  29067. if v != nil {
  29068. v[mk] = mv
  29069. }
  29070. }
  29071. }
  29072. if cr != nil {
  29073. cr.sendContainerState(containerMapEnd)
  29074. }
  29075. return v, changed
  29076. }
  29077. func (f *decFnInfo) fastpathDecMapUintptrUint16R(rv reflect.Value) {
  29078. if rv.CanAddr() {
  29079. vp := rv.Addr().Interface().(*map[uintptr]uint16)
  29080. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  29081. if changed {
  29082. *vp = v
  29083. }
  29084. } else {
  29085. v := rv.Interface().(map[uintptr]uint16)
  29086. fastpathTV.DecMapUintptrUint16V(v, fastpathCheckNilFalse, false, f.d)
  29087. }
  29088. }
  29089. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, checkNil bool, d *Decoder) {
  29090. v, changed := f.DecMapUintptrUint16V(*vp, checkNil, true, d)
  29091. if changed {
  29092. *vp = v
  29093. }
  29094. }
  29095. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, checkNil bool, canChange bool,
  29096. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  29097. dd := d.d
  29098. cr := d.cr
  29099. if checkNil && dd.TryDecodeAsNil() {
  29100. if v != nil {
  29101. changed = true
  29102. }
  29103. return nil, changed
  29104. }
  29105. containerLen := dd.ReadMapStart()
  29106. if canChange && v == nil {
  29107. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29108. v = make(map[uintptr]uint16, xlen)
  29109. changed = true
  29110. }
  29111. var mk uintptr
  29112. var mv uint16
  29113. if containerLen > 0 {
  29114. for j := 0; j < containerLen; j++ {
  29115. if cr != nil {
  29116. cr.sendContainerState(containerMapKey)
  29117. }
  29118. mk = uintptr(dd.DecodeUint(uintBitsize))
  29119. if cr != nil {
  29120. cr.sendContainerState(containerMapValue)
  29121. }
  29122. mv = uint16(dd.DecodeUint(16))
  29123. if v != nil {
  29124. v[mk] = mv
  29125. }
  29126. }
  29127. } else if containerLen < 0 {
  29128. for j := 0; !dd.CheckBreak(); j++ {
  29129. if cr != nil {
  29130. cr.sendContainerState(containerMapKey)
  29131. }
  29132. mk = uintptr(dd.DecodeUint(uintBitsize))
  29133. if cr != nil {
  29134. cr.sendContainerState(containerMapValue)
  29135. }
  29136. mv = uint16(dd.DecodeUint(16))
  29137. if v != nil {
  29138. v[mk] = mv
  29139. }
  29140. }
  29141. }
  29142. if cr != nil {
  29143. cr.sendContainerState(containerMapEnd)
  29144. }
  29145. return v, changed
  29146. }
  29147. func (f *decFnInfo) fastpathDecMapUintptrUint32R(rv reflect.Value) {
  29148. if rv.CanAddr() {
  29149. vp := rv.Addr().Interface().(*map[uintptr]uint32)
  29150. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  29151. if changed {
  29152. *vp = v
  29153. }
  29154. } else {
  29155. v := rv.Interface().(map[uintptr]uint32)
  29156. fastpathTV.DecMapUintptrUint32V(v, fastpathCheckNilFalse, false, f.d)
  29157. }
  29158. }
  29159. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, checkNil bool, d *Decoder) {
  29160. v, changed := f.DecMapUintptrUint32V(*vp, checkNil, true, d)
  29161. if changed {
  29162. *vp = v
  29163. }
  29164. }
  29165. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, checkNil bool, canChange bool,
  29166. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  29167. dd := d.d
  29168. cr := d.cr
  29169. if checkNil && dd.TryDecodeAsNil() {
  29170. if v != nil {
  29171. changed = true
  29172. }
  29173. return nil, changed
  29174. }
  29175. containerLen := dd.ReadMapStart()
  29176. if canChange && v == nil {
  29177. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29178. v = make(map[uintptr]uint32, xlen)
  29179. changed = true
  29180. }
  29181. var mk uintptr
  29182. var mv uint32
  29183. if containerLen > 0 {
  29184. for j := 0; j < containerLen; j++ {
  29185. if cr != nil {
  29186. cr.sendContainerState(containerMapKey)
  29187. }
  29188. mk = uintptr(dd.DecodeUint(uintBitsize))
  29189. if cr != nil {
  29190. cr.sendContainerState(containerMapValue)
  29191. }
  29192. mv = uint32(dd.DecodeUint(32))
  29193. if v != nil {
  29194. v[mk] = mv
  29195. }
  29196. }
  29197. } else if containerLen < 0 {
  29198. for j := 0; !dd.CheckBreak(); j++ {
  29199. if cr != nil {
  29200. cr.sendContainerState(containerMapKey)
  29201. }
  29202. mk = uintptr(dd.DecodeUint(uintBitsize))
  29203. if cr != nil {
  29204. cr.sendContainerState(containerMapValue)
  29205. }
  29206. mv = uint32(dd.DecodeUint(32))
  29207. if v != nil {
  29208. v[mk] = mv
  29209. }
  29210. }
  29211. }
  29212. if cr != nil {
  29213. cr.sendContainerState(containerMapEnd)
  29214. }
  29215. return v, changed
  29216. }
  29217. func (f *decFnInfo) fastpathDecMapUintptrUint64R(rv reflect.Value) {
  29218. if rv.CanAddr() {
  29219. vp := rv.Addr().Interface().(*map[uintptr]uint64)
  29220. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  29221. if changed {
  29222. *vp = v
  29223. }
  29224. } else {
  29225. v := rv.Interface().(map[uintptr]uint64)
  29226. fastpathTV.DecMapUintptrUint64V(v, fastpathCheckNilFalse, false, f.d)
  29227. }
  29228. }
  29229. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, checkNil bool, d *Decoder) {
  29230. v, changed := f.DecMapUintptrUint64V(*vp, checkNil, true, d)
  29231. if changed {
  29232. *vp = v
  29233. }
  29234. }
  29235. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, checkNil bool, canChange bool,
  29236. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  29237. dd := d.d
  29238. cr := d.cr
  29239. if checkNil && dd.TryDecodeAsNil() {
  29240. if v != nil {
  29241. changed = true
  29242. }
  29243. return nil, changed
  29244. }
  29245. containerLen := dd.ReadMapStart()
  29246. if canChange && v == nil {
  29247. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29248. v = make(map[uintptr]uint64, xlen)
  29249. changed = true
  29250. }
  29251. var mk uintptr
  29252. var mv uint64
  29253. if containerLen > 0 {
  29254. for j := 0; j < containerLen; j++ {
  29255. if cr != nil {
  29256. cr.sendContainerState(containerMapKey)
  29257. }
  29258. mk = uintptr(dd.DecodeUint(uintBitsize))
  29259. if cr != nil {
  29260. cr.sendContainerState(containerMapValue)
  29261. }
  29262. mv = dd.DecodeUint(64)
  29263. if v != nil {
  29264. v[mk] = mv
  29265. }
  29266. }
  29267. } else if containerLen < 0 {
  29268. for j := 0; !dd.CheckBreak(); j++ {
  29269. if cr != nil {
  29270. cr.sendContainerState(containerMapKey)
  29271. }
  29272. mk = uintptr(dd.DecodeUint(uintBitsize))
  29273. if cr != nil {
  29274. cr.sendContainerState(containerMapValue)
  29275. }
  29276. mv = dd.DecodeUint(64)
  29277. if v != nil {
  29278. v[mk] = mv
  29279. }
  29280. }
  29281. }
  29282. if cr != nil {
  29283. cr.sendContainerState(containerMapEnd)
  29284. }
  29285. return v, changed
  29286. }
  29287. func (f *decFnInfo) fastpathDecMapUintptrUintptrR(rv reflect.Value) {
  29288. if rv.CanAddr() {
  29289. vp := rv.Addr().Interface().(*map[uintptr]uintptr)
  29290. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  29291. if changed {
  29292. *vp = v
  29293. }
  29294. } else {
  29295. v := rv.Interface().(map[uintptr]uintptr)
  29296. fastpathTV.DecMapUintptrUintptrV(v, fastpathCheckNilFalse, false, f.d)
  29297. }
  29298. }
  29299. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, checkNil bool, d *Decoder) {
  29300. v, changed := f.DecMapUintptrUintptrV(*vp, checkNil, true, d)
  29301. if changed {
  29302. *vp = v
  29303. }
  29304. }
  29305. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, checkNil bool, canChange bool,
  29306. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  29307. dd := d.d
  29308. cr := d.cr
  29309. if checkNil && dd.TryDecodeAsNil() {
  29310. if v != nil {
  29311. changed = true
  29312. }
  29313. return nil, changed
  29314. }
  29315. containerLen := dd.ReadMapStart()
  29316. if canChange && v == nil {
  29317. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29318. v = make(map[uintptr]uintptr, xlen)
  29319. changed = true
  29320. }
  29321. var mk uintptr
  29322. var mv uintptr
  29323. if containerLen > 0 {
  29324. for j := 0; j < containerLen; j++ {
  29325. if cr != nil {
  29326. cr.sendContainerState(containerMapKey)
  29327. }
  29328. mk = uintptr(dd.DecodeUint(uintBitsize))
  29329. if cr != nil {
  29330. cr.sendContainerState(containerMapValue)
  29331. }
  29332. mv = uintptr(dd.DecodeUint(uintBitsize))
  29333. if v != nil {
  29334. v[mk] = mv
  29335. }
  29336. }
  29337. } else if containerLen < 0 {
  29338. for j := 0; !dd.CheckBreak(); j++ {
  29339. if cr != nil {
  29340. cr.sendContainerState(containerMapKey)
  29341. }
  29342. mk = uintptr(dd.DecodeUint(uintBitsize))
  29343. if cr != nil {
  29344. cr.sendContainerState(containerMapValue)
  29345. }
  29346. mv = uintptr(dd.DecodeUint(uintBitsize))
  29347. if v != nil {
  29348. v[mk] = mv
  29349. }
  29350. }
  29351. }
  29352. if cr != nil {
  29353. cr.sendContainerState(containerMapEnd)
  29354. }
  29355. return v, changed
  29356. }
  29357. func (f *decFnInfo) fastpathDecMapUintptrIntR(rv reflect.Value) {
  29358. if rv.CanAddr() {
  29359. vp := rv.Addr().Interface().(*map[uintptr]int)
  29360. v, changed := fastpathTV.DecMapUintptrIntV(*vp, fastpathCheckNilFalse, true, f.d)
  29361. if changed {
  29362. *vp = v
  29363. }
  29364. } else {
  29365. v := rv.Interface().(map[uintptr]int)
  29366. fastpathTV.DecMapUintptrIntV(v, fastpathCheckNilFalse, false, f.d)
  29367. }
  29368. }
  29369. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, checkNil bool, d *Decoder) {
  29370. v, changed := f.DecMapUintptrIntV(*vp, checkNil, true, d)
  29371. if changed {
  29372. *vp = v
  29373. }
  29374. }
  29375. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, checkNil bool, canChange bool,
  29376. d *Decoder) (_ map[uintptr]int, changed bool) {
  29377. dd := d.d
  29378. cr := d.cr
  29379. if checkNil && dd.TryDecodeAsNil() {
  29380. if v != nil {
  29381. changed = true
  29382. }
  29383. return nil, changed
  29384. }
  29385. containerLen := dd.ReadMapStart()
  29386. if canChange && v == nil {
  29387. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29388. v = make(map[uintptr]int, xlen)
  29389. changed = true
  29390. }
  29391. var mk uintptr
  29392. var mv int
  29393. if containerLen > 0 {
  29394. for j := 0; j < containerLen; j++ {
  29395. if cr != nil {
  29396. cr.sendContainerState(containerMapKey)
  29397. }
  29398. mk = uintptr(dd.DecodeUint(uintBitsize))
  29399. if cr != nil {
  29400. cr.sendContainerState(containerMapValue)
  29401. }
  29402. mv = int(dd.DecodeInt(intBitsize))
  29403. if v != nil {
  29404. v[mk] = mv
  29405. }
  29406. }
  29407. } else if containerLen < 0 {
  29408. for j := 0; !dd.CheckBreak(); j++ {
  29409. if cr != nil {
  29410. cr.sendContainerState(containerMapKey)
  29411. }
  29412. mk = uintptr(dd.DecodeUint(uintBitsize))
  29413. if cr != nil {
  29414. cr.sendContainerState(containerMapValue)
  29415. }
  29416. mv = int(dd.DecodeInt(intBitsize))
  29417. if v != nil {
  29418. v[mk] = mv
  29419. }
  29420. }
  29421. }
  29422. if cr != nil {
  29423. cr.sendContainerState(containerMapEnd)
  29424. }
  29425. return v, changed
  29426. }
  29427. func (f *decFnInfo) fastpathDecMapUintptrInt8R(rv reflect.Value) {
  29428. if rv.CanAddr() {
  29429. vp := rv.Addr().Interface().(*map[uintptr]int8)
  29430. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  29431. if changed {
  29432. *vp = v
  29433. }
  29434. } else {
  29435. v := rv.Interface().(map[uintptr]int8)
  29436. fastpathTV.DecMapUintptrInt8V(v, fastpathCheckNilFalse, false, f.d)
  29437. }
  29438. }
  29439. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, checkNil bool, d *Decoder) {
  29440. v, changed := f.DecMapUintptrInt8V(*vp, checkNil, true, d)
  29441. if changed {
  29442. *vp = v
  29443. }
  29444. }
  29445. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, checkNil bool, canChange bool,
  29446. d *Decoder) (_ map[uintptr]int8, changed bool) {
  29447. dd := d.d
  29448. cr := d.cr
  29449. if checkNil && dd.TryDecodeAsNil() {
  29450. if v != nil {
  29451. changed = true
  29452. }
  29453. return nil, changed
  29454. }
  29455. containerLen := dd.ReadMapStart()
  29456. if canChange && v == nil {
  29457. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29458. v = make(map[uintptr]int8, xlen)
  29459. changed = true
  29460. }
  29461. var mk uintptr
  29462. var mv int8
  29463. if containerLen > 0 {
  29464. for j := 0; j < containerLen; j++ {
  29465. if cr != nil {
  29466. cr.sendContainerState(containerMapKey)
  29467. }
  29468. mk = uintptr(dd.DecodeUint(uintBitsize))
  29469. if cr != nil {
  29470. cr.sendContainerState(containerMapValue)
  29471. }
  29472. mv = int8(dd.DecodeInt(8))
  29473. if v != nil {
  29474. v[mk] = mv
  29475. }
  29476. }
  29477. } else if containerLen < 0 {
  29478. for j := 0; !dd.CheckBreak(); j++ {
  29479. if cr != nil {
  29480. cr.sendContainerState(containerMapKey)
  29481. }
  29482. mk = uintptr(dd.DecodeUint(uintBitsize))
  29483. if cr != nil {
  29484. cr.sendContainerState(containerMapValue)
  29485. }
  29486. mv = int8(dd.DecodeInt(8))
  29487. if v != nil {
  29488. v[mk] = mv
  29489. }
  29490. }
  29491. }
  29492. if cr != nil {
  29493. cr.sendContainerState(containerMapEnd)
  29494. }
  29495. return v, changed
  29496. }
  29497. func (f *decFnInfo) fastpathDecMapUintptrInt16R(rv reflect.Value) {
  29498. if rv.CanAddr() {
  29499. vp := rv.Addr().Interface().(*map[uintptr]int16)
  29500. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  29501. if changed {
  29502. *vp = v
  29503. }
  29504. } else {
  29505. v := rv.Interface().(map[uintptr]int16)
  29506. fastpathTV.DecMapUintptrInt16V(v, fastpathCheckNilFalse, false, f.d)
  29507. }
  29508. }
  29509. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, checkNil bool, d *Decoder) {
  29510. v, changed := f.DecMapUintptrInt16V(*vp, checkNil, true, d)
  29511. if changed {
  29512. *vp = v
  29513. }
  29514. }
  29515. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, checkNil bool, canChange bool,
  29516. d *Decoder) (_ map[uintptr]int16, changed bool) {
  29517. dd := d.d
  29518. cr := d.cr
  29519. if checkNil && dd.TryDecodeAsNil() {
  29520. if v != nil {
  29521. changed = true
  29522. }
  29523. return nil, changed
  29524. }
  29525. containerLen := dd.ReadMapStart()
  29526. if canChange && v == nil {
  29527. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29528. v = make(map[uintptr]int16, xlen)
  29529. changed = true
  29530. }
  29531. var mk uintptr
  29532. var mv int16
  29533. if containerLen > 0 {
  29534. for j := 0; j < containerLen; j++ {
  29535. if cr != nil {
  29536. cr.sendContainerState(containerMapKey)
  29537. }
  29538. mk = uintptr(dd.DecodeUint(uintBitsize))
  29539. if cr != nil {
  29540. cr.sendContainerState(containerMapValue)
  29541. }
  29542. mv = int16(dd.DecodeInt(16))
  29543. if v != nil {
  29544. v[mk] = mv
  29545. }
  29546. }
  29547. } else if containerLen < 0 {
  29548. for j := 0; !dd.CheckBreak(); j++ {
  29549. if cr != nil {
  29550. cr.sendContainerState(containerMapKey)
  29551. }
  29552. mk = uintptr(dd.DecodeUint(uintBitsize))
  29553. if cr != nil {
  29554. cr.sendContainerState(containerMapValue)
  29555. }
  29556. mv = int16(dd.DecodeInt(16))
  29557. if v != nil {
  29558. v[mk] = mv
  29559. }
  29560. }
  29561. }
  29562. if cr != nil {
  29563. cr.sendContainerState(containerMapEnd)
  29564. }
  29565. return v, changed
  29566. }
  29567. func (f *decFnInfo) fastpathDecMapUintptrInt32R(rv reflect.Value) {
  29568. if rv.CanAddr() {
  29569. vp := rv.Addr().Interface().(*map[uintptr]int32)
  29570. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  29571. if changed {
  29572. *vp = v
  29573. }
  29574. } else {
  29575. v := rv.Interface().(map[uintptr]int32)
  29576. fastpathTV.DecMapUintptrInt32V(v, fastpathCheckNilFalse, false, f.d)
  29577. }
  29578. }
  29579. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, checkNil bool, d *Decoder) {
  29580. v, changed := f.DecMapUintptrInt32V(*vp, checkNil, true, d)
  29581. if changed {
  29582. *vp = v
  29583. }
  29584. }
  29585. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, checkNil bool, canChange bool,
  29586. d *Decoder) (_ map[uintptr]int32, changed bool) {
  29587. dd := d.d
  29588. cr := d.cr
  29589. if checkNil && dd.TryDecodeAsNil() {
  29590. if v != nil {
  29591. changed = true
  29592. }
  29593. return nil, changed
  29594. }
  29595. containerLen := dd.ReadMapStart()
  29596. if canChange && v == nil {
  29597. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29598. v = make(map[uintptr]int32, xlen)
  29599. changed = true
  29600. }
  29601. var mk uintptr
  29602. var mv int32
  29603. if containerLen > 0 {
  29604. for j := 0; j < containerLen; j++ {
  29605. if cr != nil {
  29606. cr.sendContainerState(containerMapKey)
  29607. }
  29608. mk = uintptr(dd.DecodeUint(uintBitsize))
  29609. if cr != nil {
  29610. cr.sendContainerState(containerMapValue)
  29611. }
  29612. mv = int32(dd.DecodeInt(32))
  29613. if v != nil {
  29614. v[mk] = mv
  29615. }
  29616. }
  29617. } else if containerLen < 0 {
  29618. for j := 0; !dd.CheckBreak(); j++ {
  29619. if cr != nil {
  29620. cr.sendContainerState(containerMapKey)
  29621. }
  29622. mk = uintptr(dd.DecodeUint(uintBitsize))
  29623. if cr != nil {
  29624. cr.sendContainerState(containerMapValue)
  29625. }
  29626. mv = int32(dd.DecodeInt(32))
  29627. if v != nil {
  29628. v[mk] = mv
  29629. }
  29630. }
  29631. }
  29632. if cr != nil {
  29633. cr.sendContainerState(containerMapEnd)
  29634. }
  29635. return v, changed
  29636. }
  29637. func (f *decFnInfo) fastpathDecMapUintptrInt64R(rv reflect.Value) {
  29638. if rv.CanAddr() {
  29639. vp := rv.Addr().Interface().(*map[uintptr]int64)
  29640. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  29641. if changed {
  29642. *vp = v
  29643. }
  29644. } else {
  29645. v := rv.Interface().(map[uintptr]int64)
  29646. fastpathTV.DecMapUintptrInt64V(v, fastpathCheckNilFalse, false, f.d)
  29647. }
  29648. }
  29649. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, checkNil bool, d *Decoder) {
  29650. v, changed := f.DecMapUintptrInt64V(*vp, checkNil, true, d)
  29651. if changed {
  29652. *vp = v
  29653. }
  29654. }
  29655. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, checkNil bool, canChange bool,
  29656. d *Decoder) (_ map[uintptr]int64, changed bool) {
  29657. dd := d.d
  29658. cr := d.cr
  29659. if checkNil && dd.TryDecodeAsNil() {
  29660. if v != nil {
  29661. changed = true
  29662. }
  29663. return nil, changed
  29664. }
  29665. containerLen := dd.ReadMapStart()
  29666. if canChange && v == nil {
  29667. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29668. v = make(map[uintptr]int64, xlen)
  29669. changed = true
  29670. }
  29671. var mk uintptr
  29672. var mv int64
  29673. if containerLen > 0 {
  29674. for j := 0; j < containerLen; j++ {
  29675. if cr != nil {
  29676. cr.sendContainerState(containerMapKey)
  29677. }
  29678. mk = uintptr(dd.DecodeUint(uintBitsize))
  29679. if cr != nil {
  29680. cr.sendContainerState(containerMapValue)
  29681. }
  29682. mv = dd.DecodeInt(64)
  29683. if v != nil {
  29684. v[mk] = mv
  29685. }
  29686. }
  29687. } else if containerLen < 0 {
  29688. for j := 0; !dd.CheckBreak(); j++ {
  29689. if cr != nil {
  29690. cr.sendContainerState(containerMapKey)
  29691. }
  29692. mk = uintptr(dd.DecodeUint(uintBitsize))
  29693. if cr != nil {
  29694. cr.sendContainerState(containerMapValue)
  29695. }
  29696. mv = dd.DecodeInt(64)
  29697. if v != nil {
  29698. v[mk] = mv
  29699. }
  29700. }
  29701. }
  29702. if cr != nil {
  29703. cr.sendContainerState(containerMapEnd)
  29704. }
  29705. return v, changed
  29706. }
  29707. func (f *decFnInfo) fastpathDecMapUintptrFloat32R(rv reflect.Value) {
  29708. if rv.CanAddr() {
  29709. vp := rv.Addr().Interface().(*map[uintptr]float32)
  29710. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  29711. if changed {
  29712. *vp = v
  29713. }
  29714. } else {
  29715. v := rv.Interface().(map[uintptr]float32)
  29716. fastpathTV.DecMapUintptrFloat32V(v, fastpathCheckNilFalse, false, f.d)
  29717. }
  29718. }
  29719. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, checkNil bool, d *Decoder) {
  29720. v, changed := f.DecMapUintptrFloat32V(*vp, checkNil, true, d)
  29721. if changed {
  29722. *vp = v
  29723. }
  29724. }
  29725. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, checkNil bool, canChange bool,
  29726. d *Decoder) (_ map[uintptr]float32, changed bool) {
  29727. dd := d.d
  29728. cr := d.cr
  29729. if checkNil && dd.TryDecodeAsNil() {
  29730. if v != nil {
  29731. changed = true
  29732. }
  29733. return nil, changed
  29734. }
  29735. containerLen := dd.ReadMapStart()
  29736. if canChange && v == nil {
  29737. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29738. v = make(map[uintptr]float32, xlen)
  29739. changed = true
  29740. }
  29741. var mk uintptr
  29742. var mv float32
  29743. if containerLen > 0 {
  29744. for j := 0; j < containerLen; j++ {
  29745. if cr != nil {
  29746. cr.sendContainerState(containerMapKey)
  29747. }
  29748. mk = uintptr(dd.DecodeUint(uintBitsize))
  29749. if cr != nil {
  29750. cr.sendContainerState(containerMapValue)
  29751. }
  29752. mv = float32(dd.DecodeFloat(true))
  29753. if v != nil {
  29754. v[mk] = mv
  29755. }
  29756. }
  29757. } else if containerLen < 0 {
  29758. for j := 0; !dd.CheckBreak(); j++ {
  29759. if cr != nil {
  29760. cr.sendContainerState(containerMapKey)
  29761. }
  29762. mk = uintptr(dd.DecodeUint(uintBitsize))
  29763. if cr != nil {
  29764. cr.sendContainerState(containerMapValue)
  29765. }
  29766. mv = float32(dd.DecodeFloat(true))
  29767. if v != nil {
  29768. v[mk] = mv
  29769. }
  29770. }
  29771. }
  29772. if cr != nil {
  29773. cr.sendContainerState(containerMapEnd)
  29774. }
  29775. return v, changed
  29776. }
  29777. func (f *decFnInfo) fastpathDecMapUintptrFloat64R(rv reflect.Value) {
  29778. if rv.CanAddr() {
  29779. vp := rv.Addr().Interface().(*map[uintptr]float64)
  29780. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  29781. if changed {
  29782. *vp = v
  29783. }
  29784. } else {
  29785. v := rv.Interface().(map[uintptr]float64)
  29786. fastpathTV.DecMapUintptrFloat64V(v, fastpathCheckNilFalse, false, f.d)
  29787. }
  29788. }
  29789. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, checkNil bool, d *Decoder) {
  29790. v, changed := f.DecMapUintptrFloat64V(*vp, checkNil, true, d)
  29791. if changed {
  29792. *vp = v
  29793. }
  29794. }
  29795. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, checkNil bool, canChange bool,
  29796. d *Decoder) (_ map[uintptr]float64, changed bool) {
  29797. dd := d.d
  29798. cr := d.cr
  29799. if checkNil && dd.TryDecodeAsNil() {
  29800. if v != nil {
  29801. changed = true
  29802. }
  29803. return nil, changed
  29804. }
  29805. containerLen := dd.ReadMapStart()
  29806. if canChange && v == nil {
  29807. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29808. v = make(map[uintptr]float64, xlen)
  29809. changed = true
  29810. }
  29811. var mk uintptr
  29812. var mv float64
  29813. if containerLen > 0 {
  29814. for j := 0; j < containerLen; j++ {
  29815. if cr != nil {
  29816. cr.sendContainerState(containerMapKey)
  29817. }
  29818. mk = uintptr(dd.DecodeUint(uintBitsize))
  29819. if cr != nil {
  29820. cr.sendContainerState(containerMapValue)
  29821. }
  29822. mv = dd.DecodeFloat(false)
  29823. if v != nil {
  29824. v[mk] = mv
  29825. }
  29826. }
  29827. } else if containerLen < 0 {
  29828. for j := 0; !dd.CheckBreak(); j++ {
  29829. if cr != nil {
  29830. cr.sendContainerState(containerMapKey)
  29831. }
  29832. mk = uintptr(dd.DecodeUint(uintBitsize))
  29833. if cr != nil {
  29834. cr.sendContainerState(containerMapValue)
  29835. }
  29836. mv = dd.DecodeFloat(false)
  29837. if v != nil {
  29838. v[mk] = mv
  29839. }
  29840. }
  29841. }
  29842. if cr != nil {
  29843. cr.sendContainerState(containerMapEnd)
  29844. }
  29845. return v, changed
  29846. }
  29847. func (f *decFnInfo) fastpathDecMapUintptrBoolR(rv reflect.Value) {
  29848. if rv.CanAddr() {
  29849. vp := rv.Addr().Interface().(*map[uintptr]bool)
  29850. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  29851. if changed {
  29852. *vp = v
  29853. }
  29854. } else {
  29855. v := rv.Interface().(map[uintptr]bool)
  29856. fastpathTV.DecMapUintptrBoolV(v, fastpathCheckNilFalse, false, f.d)
  29857. }
  29858. }
  29859. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, checkNil bool, d *Decoder) {
  29860. v, changed := f.DecMapUintptrBoolV(*vp, checkNil, true, d)
  29861. if changed {
  29862. *vp = v
  29863. }
  29864. }
  29865. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, checkNil bool, canChange bool,
  29866. d *Decoder) (_ map[uintptr]bool, changed bool) {
  29867. dd := d.d
  29868. cr := d.cr
  29869. if checkNil && dd.TryDecodeAsNil() {
  29870. if v != nil {
  29871. changed = true
  29872. }
  29873. return nil, changed
  29874. }
  29875. containerLen := dd.ReadMapStart()
  29876. if canChange && v == nil {
  29877. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29878. v = make(map[uintptr]bool, xlen)
  29879. changed = true
  29880. }
  29881. var mk uintptr
  29882. var mv bool
  29883. if containerLen > 0 {
  29884. for j := 0; j < containerLen; j++ {
  29885. if cr != nil {
  29886. cr.sendContainerState(containerMapKey)
  29887. }
  29888. mk = uintptr(dd.DecodeUint(uintBitsize))
  29889. if cr != nil {
  29890. cr.sendContainerState(containerMapValue)
  29891. }
  29892. mv = dd.DecodeBool()
  29893. if v != nil {
  29894. v[mk] = mv
  29895. }
  29896. }
  29897. } else if containerLen < 0 {
  29898. for j := 0; !dd.CheckBreak(); j++ {
  29899. if cr != nil {
  29900. cr.sendContainerState(containerMapKey)
  29901. }
  29902. mk = uintptr(dd.DecodeUint(uintBitsize))
  29903. if cr != nil {
  29904. cr.sendContainerState(containerMapValue)
  29905. }
  29906. mv = dd.DecodeBool()
  29907. if v != nil {
  29908. v[mk] = mv
  29909. }
  29910. }
  29911. }
  29912. if cr != nil {
  29913. cr.sendContainerState(containerMapEnd)
  29914. }
  29915. return v, changed
  29916. }
  29917. func (f *decFnInfo) fastpathDecMapIntIntfR(rv reflect.Value) {
  29918. if rv.CanAddr() {
  29919. vp := rv.Addr().Interface().(*map[int]interface{})
  29920. v, changed := fastpathTV.DecMapIntIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  29921. if changed {
  29922. *vp = v
  29923. }
  29924. } else {
  29925. v := rv.Interface().(map[int]interface{})
  29926. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, f.d)
  29927. }
  29928. }
  29929. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, checkNil bool, d *Decoder) {
  29930. v, changed := f.DecMapIntIntfV(*vp, checkNil, true, d)
  29931. if changed {
  29932. *vp = v
  29933. }
  29934. }
  29935. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, checkNil bool, canChange bool,
  29936. d *Decoder) (_ map[int]interface{}, changed bool) {
  29937. dd := d.d
  29938. cr := d.cr
  29939. if checkNil && dd.TryDecodeAsNil() {
  29940. if v != nil {
  29941. changed = true
  29942. }
  29943. return nil, changed
  29944. }
  29945. containerLen := dd.ReadMapStart()
  29946. if canChange && v == nil {
  29947. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  29948. v = make(map[int]interface{}, xlen)
  29949. changed = true
  29950. }
  29951. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  29952. var mk int
  29953. var mv interface{}
  29954. if containerLen > 0 {
  29955. for j := 0; j < containerLen; j++ {
  29956. if cr != nil {
  29957. cr.sendContainerState(containerMapKey)
  29958. }
  29959. mk = int(dd.DecodeInt(intBitsize))
  29960. if cr != nil {
  29961. cr.sendContainerState(containerMapValue)
  29962. }
  29963. if mapGet {
  29964. mv = v[mk]
  29965. } else {
  29966. mv = nil
  29967. }
  29968. d.decode(&mv)
  29969. if v != nil {
  29970. v[mk] = mv
  29971. }
  29972. }
  29973. } else if containerLen < 0 {
  29974. for j := 0; !dd.CheckBreak(); j++ {
  29975. if cr != nil {
  29976. cr.sendContainerState(containerMapKey)
  29977. }
  29978. mk = int(dd.DecodeInt(intBitsize))
  29979. if cr != nil {
  29980. cr.sendContainerState(containerMapValue)
  29981. }
  29982. if mapGet {
  29983. mv = v[mk]
  29984. } else {
  29985. mv = nil
  29986. }
  29987. d.decode(&mv)
  29988. if v != nil {
  29989. v[mk] = mv
  29990. }
  29991. }
  29992. }
  29993. if cr != nil {
  29994. cr.sendContainerState(containerMapEnd)
  29995. }
  29996. return v, changed
  29997. }
  29998. func (f *decFnInfo) fastpathDecMapIntStringR(rv reflect.Value) {
  29999. if rv.CanAddr() {
  30000. vp := rv.Addr().Interface().(*map[int]string)
  30001. v, changed := fastpathTV.DecMapIntStringV(*vp, fastpathCheckNilFalse, true, f.d)
  30002. if changed {
  30003. *vp = v
  30004. }
  30005. } else {
  30006. v := rv.Interface().(map[int]string)
  30007. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, f.d)
  30008. }
  30009. }
  30010. func (f fastpathT) DecMapIntStringX(vp *map[int]string, checkNil bool, d *Decoder) {
  30011. v, changed := f.DecMapIntStringV(*vp, checkNil, true, d)
  30012. if changed {
  30013. *vp = v
  30014. }
  30015. }
  30016. func (_ fastpathT) DecMapIntStringV(v map[int]string, checkNil bool, canChange bool,
  30017. d *Decoder) (_ map[int]string, changed bool) {
  30018. dd := d.d
  30019. cr := d.cr
  30020. if checkNil && dd.TryDecodeAsNil() {
  30021. if v != nil {
  30022. changed = true
  30023. }
  30024. return nil, changed
  30025. }
  30026. containerLen := dd.ReadMapStart()
  30027. if canChange && v == nil {
  30028. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  30029. v = make(map[int]string, xlen)
  30030. changed = true
  30031. }
  30032. var mk int
  30033. var mv string
  30034. if containerLen > 0 {
  30035. for j := 0; j < containerLen; j++ {
  30036. if cr != nil {
  30037. cr.sendContainerState(containerMapKey)
  30038. }
  30039. mk = int(dd.DecodeInt(intBitsize))
  30040. if cr != nil {
  30041. cr.sendContainerState(containerMapValue)
  30042. }
  30043. mv = dd.DecodeString()
  30044. if v != nil {
  30045. v[mk] = mv
  30046. }
  30047. }
  30048. } else if containerLen < 0 {
  30049. for j := 0; !dd.CheckBreak(); j++ {
  30050. if cr != nil {
  30051. cr.sendContainerState(containerMapKey)
  30052. }
  30053. mk = int(dd.DecodeInt(intBitsize))
  30054. if cr != nil {
  30055. cr.sendContainerState(containerMapValue)
  30056. }
  30057. mv = dd.DecodeString()
  30058. if v != nil {
  30059. v[mk] = mv
  30060. }
  30061. }
  30062. }
  30063. if cr != nil {
  30064. cr.sendContainerState(containerMapEnd)
  30065. }
  30066. return v, changed
  30067. }
  30068. func (f *decFnInfo) fastpathDecMapIntUintR(rv reflect.Value) {
  30069. if rv.CanAddr() {
  30070. vp := rv.Addr().Interface().(*map[int]uint)
  30071. v, changed := fastpathTV.DecMapIntUintV(*vp, fastpathCheckNilFalse, true, f.d)
  30072. if changed {
  30073. *vp = v
  30074. }
  30075. } else {
  30076. v := rv.Interface().(map[int]uint)
  30077. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, f.d)
  30078. }
  30079. }
  30080. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, checkNil bool, d *Decoder) {
  30081. v, changed := f.DecMapIntUintV(*vp, checkNil, true, d)
  30082. if changed {
  30083. *vp = v
  30084. }
  30085. }
  30086. func (_ fastpathT) DecMapIntUintV(v map[int]uint, checkNil bool, canChange bool,
  30087. d *Decoder) (_ map[int]uint, changed bool) {
  30088. dd := d.d
  30089. cr := d.cr
  30090. if checkNil && dd.TryDecodeAsNil() {
  30091. if v != nil {
  30092. changed = true
  30093. }
  30094. return nil, changed
  30095. }
  30096. containerLen := dd.ReadMapStart()
  30097. if canChange && v == nil {
  30098. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30099. v = make(map[int]uint, xlen)
  30100. changed = true
  30101. }
  30102. var mk int
  30103. var mv uint
  30104. if containerLen > 0 {
  30105. for j := 0; j < containerLen; j++ {
  30106. if cr != nil {
  30107. cr.sendContainerState(containerMapKey)
  30108. }
  30109. mk = int(dd.DecodeInt(intBitsize))
  30110. if cr != nil {
  30111. cr.sendContainerState(containerMapValue)
  30112. }
  30113. mv = uint(dd.DecodeUint(uintBitsize))
  30114. if v != nil {
  30115. v[mk] = mv
  30116. }
  30117. }
  30118. } else if containerLen < 0 {
  30119. for j := 0; !dd.CheckBreak(); j++ {
  30120. if cr != nil {
  30121. cr.sendContainerState(containerMapKey)
  30122. }
  30123. mk = int(dd.DecodeInt(intBitsize))
  30124. if cr != nil {
  30125. cr.sendContainerState(containerMapValue)
  30126. }
  30127. mv = uint(dd.DecodeUint(uintBitsize))
  30128. if v != nil {
  30129. v[mk] = mv
  30130. }
  30131. }
  30132. }
  30133. if cr != nil {
  30134. cr.sendContainerState(containerMapEnd)
  30135. }
  30136. return v, changed
  30137. }
  30138. func (f *decFnInfo) fastpathDecMapIntUint8R(rv reflect.Value) {
  30139. if rv.CanAddr() {
  30140. vp := rv.Addr().Interface().(*map[int]uint8)
  30141. v, changed := fastpathTV.DecMapIntUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  30142. if changed {
  30143. *vp = v
  30144. }
  30145. } else {
  30146. v := rv.Interface().(map[int]uint8)
  30147. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, f.d)
  30148. }
  30149. }
  30150. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, checkNil bool, d *Decoder) {
  30151. v, changed := f.DecMapIntUint8V(*vp, checkNil, true, d)
  30152. if changed {
  30153. *vp = v
  30154. }
  30155. }
  30156. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, checkNil bool, canChange bool,
  30157. d *Decoder) (_ map[int]uint8, changed bool) {
  30158. dd := d.d
  30159. cr := d.cr
  30160. if checkNil && dd.TryDecodeAsNil() {
  30161. if v != nil {
  30162. changed = true
  30163. }
  30164. return nil, changed
  30165. }
  30166. containerLen := dd.ReadMapStart()
  30167. if canChange && v == nil {
  30168. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30169. v = make(map[int]uint8, xlen)
  30170. changed = true
  30171. }
  30172. var mk int
  30173. var mv uint8
  30174. if containerLen > 0 {
  30175. for j := 0; j < containerLen; j++ {
  30176. if cr != nil {
  30177. cr.sendContainerState(containerMapKey)
  30178. }
  30179. mk = int(dd.DecodeInt(intBitsize))
  30180. if cr != nil {
  30181. cr.sendContainerState(containerMapValue)
  30182. }
  30183. mv = uint8(dd.DecodeUint(8))
  30184. if v != nil {
  30185. v[mk] = mv
  30186. }
  30187. }
  30188. } else if containerLen < 0 {
  30189. for j := 0; !dd.CheckBreak(); j++ {
  30190. if cr != nil {
  30191. cr.sendContainerState(containerMapKey)
  30192. }
  30193. mk = int(dd.DecodeInt(intBitsize))
  30194. if cr != nil {
  30195. cr.sendContainerState(containerMapValue)
  30196. }
  30197. mv = uint8(dd.DecodeUint(8))
  30198. if v != nil {
  30199. v[mk] = mv
  30200. }
  30201. }
  30202. }
  30203. if cr != nil {
  30204. cr.sendContainerState(containerMapEnd)
  30205. }
  30206. return v, changed
  30207. }
  30208. func (f *decFnInfo) fastpathDecMapIntUint16R(rv reflect.Value) {
  30209. if rv.CanAddr() {
  30210. vp := rv.Addr().Interface().(*map[int]uint16)
  30211. v, changed := fastpathTV.DecMapIntUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  30212. if changed {
  30213. *vp = v
  30214. }
  30215. } else {
  30216. v := rv.Interface().(map[int]uint16)
  30217. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, f.d)
  30218. }
  30219. }
  30220. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, checkNil bool, d *Decoder) {
  30221. v, changed := f.DecMapIntUint16V(*vp, checkNil, true, d)
  30222. if changed {
  30223. *vp = v
  30224. }
  30225. }
  30226. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, checkNil bool, canChange bool,
  30227. d *Decoder) (_ map[int]uint16, changed bool) {
  30228. dd := d.d
  30229. cr := d.cr
  30230. if checkNil && dd.TryDecodeAsNil() {
  30231. if v != nil {
  30232. changed = true
  30233. }
  30234. return nil, changed
  30235. }
  30236. containerLen := dd.ReadMapStart()
  30237. if canChange && v == nil {
  30238. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30239. v = make(map[int]uint16, xlen)
  30240. changed = true
  30241. }
  30242. var mk int
  30243. var mv uint16
  30244. if containerLen > 0 {
  30245. for j := 0; j < containerLen; j++ {
  30246. if cr != nil {
  30247. cr.sendContainerState(containerMapKey)
  30248. }
  30249. mk = int(dd.DecodeInt(intBitsize))
  30250. if cr != nil {
  30251. cr.sendContainerState(containerMapValue)
  30252. }
  30253. mv = uint16(dd.DecodeUint(16))
  30254. if v != nil {
  30255. v[mk] = mv
  30256. }
  30257. }
  30258. } else if containerLen < 0 {
  30259. for j := 0; !dd.CheckBreak(); j++ {
  30260. if cr != nil {
  30261. cr.sendContainerState(containerMapKey)
  30262. }
  30263. mk = int(dd.DecodeInt(intBitsize))
  30264. if cr != nil {
  30265. cr.sendContainerState(containerMapValue)
  30266. }
  30267. mv = uint16(dd.DecodeUint(16))
  30268. if v != nil {
  30269. v[mk] = mv
  30270. }
  30271. }
  30272. }
  30273. if cr != nil {
  30274. cr.sendContainerState(containerMapEnd)
  30275. }
  30276. return v, changed
  30277. }
  30278. func (f *decFnInfo) fastpathDecMapIntUint32R(rv reflect.Value) {
  30279. if rv.CanAddr() {
  30280. vp := rv.Addr().Interface().(*map[int]uint32)
  30281. v, changed := fastpathTV.DecMapIntUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  30282. if changed {
  30283. *vp = v
  30284. }
  30285. } else {
  30286. v := rv.Interface().(map[int]uint32)
  30287. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, f.d)
  30288. }
  30289. }
  30290. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, checkNil bool, d *Decoder) {
  30291. v, changed := f.DecMapIntUint32V(*vp, checkNil, true, d)
  30292. if changed {
  30293. *vp = v
  30294. }
  30295. }
  30296. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, checkNil bool, canChange bool,
  30297. d *Decoder) (_ map[int]uint32, changed bool) {
  30298. dd := d.d
  30299. cr := d.cr
  30300. if checkNil && dd.TryDecodeAsNil() {
  30301. if v != nil {
  30302. changed = true
  30303. }
  30304. return nil, changed
  30305. }
  30306. containerLen := dd.ReadMapStart()
  30307. if canChange && v == nil {
  30308. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30309. v = make(map[int]uint32, xlen)
  30310. changed = true
  30311. }
  30312. var mk int
  30313. var mv uint32
  30314. if containerLen > 0 {
  30315. for j := 0; j < containerLen; j++ {
  30316. if cr != nil {
  30317. cr.sendContainerState(containerMapKey)
  30318. }
  30319. mk = int(dd.DecodeInt(intBitsize))
  30320. if cr != nil {
  30321. cr.sendContainerState(containerMapValue)
  30322. }
  30323. mv = uint32(dd.DecodeUint(32))
  30324. if v != nil {
  30325. v[mk] = mv
  30326. }
  30327. }
  30328. } else if containerLen < 0 {
  30329. for j := 0; !dd.CheckBreak(); j++ {
  30330. if cr != nil {
  30331. cr.sendContainerState(containerMapKey)
  30332. }
  30333. mk = int(dd.DecodeInt(intBitsize))
  30334. if cr != nil {
  30335. cr.sendContainerState(containerMapValue)
  30336. }
  30337. mv = uint32(dd.DecodeUint(32))
  30338. if v != nil {
  30339. v[mk] = mv
  30340. }
  30341. }
  30342. }
  30343. if cr != nil {
  30344. cr.sendContainerState(containerMapEnd)
  30345. }
  30346. return v, changed
  30347. }
  30348. func (f *decFnInfo) fastpathDecMapIntUint64R(rv reflect.Value) {
  30349. if rv.CanAddr() {
  30350. vp := rv.Addr().Interface().(*map[int]uint64)
  30351. v, changed := fastpathTV.DecMapIntUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  30352. if changed {
  30353. *vp = v
  30354. }
  30355. } else {
  30356. v := rv.Interface().(map[int]uint64)
  30357. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, f.d)
  30358. }
  30359. }
  30360. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, checkNil bool, d *Decoder) {
  30361. v, changed := f.DecMapIntUint64V(*vp, checkNil, true, d)
  30362. if changed {
  30363. *vp = v
  30364. }
  30365. }
  30366. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, checkNil bool, canChange bool,
  30367. d *Decoder) (_ map[int]uint64, changed bool) {
  30368. dd := d.d
  30369. cr := d.cr
  30370. if checkNil && dd.TryDecodeAsNil() {
  30371. if v != nil {
  30372. changed = true
  30373. }
  30374. return nil, changed
  30375. }
  30376. containerLen := dd.ReadMapStart()
  30377. if canChange && v == nil {
  30378. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30379. v = make(map[int]uint64, xlen)
  30380. changed = true
  30381. }
  30382. var mk int
  30383. var mv uint64
  30384. if containerLen > 0 {
  30385. for j := 0; j < containerLen; j++ {
  30386. if cr != nil {
  30387. cr.sendContainerState(containerMapKey)
  30388. }
  30389. mk = int(dd.DecodeInt(intBitsize))
  30390. if cr != nil {
  30391. cr.sendContainerState(containerMapValue)
  30392. }
  30393. mv = dd.DecodeUint(64)
  30394. if v != nil {
  30395. v[mk] = mv
  30396. }
  30397. }
  30398. } else if containerLen < 0 {
  30399. for j := 0; !dd.CheckBreak(); j++ {
  30400. if cr != nil {
  30401. cr.sendContainerState(containerMapKey)
  30402. }
  30403. mk = int(dd.DecodeInt(intBitsize))
  30404. if cr != nil {
  30405. cr.sendContainerState(containerMapValue)
  30406. }
  30407. mv = dd.DecodeUint(64)
  30408. if v != nil {
  30409. v[mk] = mv
  30410. }
  30411. }
  30412. }
  30413. if cr != nil {
  30414. cr.sendContainerState(containerMapEnd)
  30415. }
  30416. return v, changed
  30417. }
  30418. func (f *decFnInfo) fastpathDecMapIntUintptrR(rv reflect.Value) {
  30419. if rv.CanAddr() {
  30420. vp := rv.Addr().Interface().(*map[int]uintptr)
  30421. v, changed := fastpathTV.DecMapIntUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  30422. if changed {
  30423. *vp = v
  30424. }
  30425. } else {
  30426. v := rv.Interface().(map[int]uintptr)
  30427. fastpathTV.DecMapIntUintptrV(v, fastpathCheckNilFalse, false, f.d)
  30428. }
  30429. }
  30430. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, checkNil bool, d *Decoder) {
  30431. v, changed := f.DecMapIntUintptrV(*vp, checkNil, true, d)
  30432. if changed {
  30433. *vp = v
  30434. }
  30435. }
  30436. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, checkNil bool, canChange bool,
  30437. d *Decoder) (_ map[int]uintptr, changed bool) {
  30438. dd := d.d
  30439. cr := d.cr
  30440. if checkNil && dd.TryDecodeAsNil() {
  30441. if v != nil {
  30442. changed = true
  30443. }
  30444. return nil, changed
  30445. }
  30446. containerLen := dd.ReadMapStart()
  30447. if canChange && v == nil {
  30448. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30449. v = make(map[int]uintptr, xlen)
  30450. changed = true
  30451. }
  30452. var mk int
  30453. var mv uintptr
  30454. if containerLen > 0 {
  30455. for j := 0; j < containerLen; j++ {
  30456. if cr != nil {
  30457. cr.sendContainerState(containerMapKey)
  30458. }
  30459. mk = int(dd.DecodeInt(intBitsize))
  30460. if cr != nil {
  30461. cr.sendContainerState(containerMapValue)
  30462. }
  30463. mv = uintptr(dd.DecodeUint(uintBitsize))
  30464. if v != nil {
  30465. v[mk] = mv
  30466. }
  30467. }
  30468. } else if containerLen < 0 {
  30469. for j := 0; !dd.CheckBreak(); j++ {
  30470. if cr != nil {
  30471. cr.sendContainerState(containerMapKey)
  30472. }
  30473. mk = int(dd.DecodeInt(intBitsize))
  30474. if cr != nil {
  30475. cr.sendContainerState(containerMapValue)
  30476. }
  30477. mv = uintptr(dd.DecodeUint(uintBitsize))
  30478. if v != nil {
  30479. v[mk] = mv
  30480. }
  30481. }
  30482. }
  30483. if cr != nil {
  30484. cr.sendContainerState(containerMapEnd)
  30485. }
  30486. return v, changed
  30487. }
  30488. func (f *decFnInfo) fastpathDecMapIntIntR(rv reflect.Value) {
  30489. if rv.CanAddr() {
  30490. vp := rv.Addr().Interface().(*map[int]int)
  30491. v, changed := fastpathTV.DecMapIntIntV(*vp, fastpathCheckNilFalse, true, f.d)
  30492. if changed {
  30493. *vp = v
  30494. }
  30495. } else {
  30496. v := rv.Interface().(map[int]int)
  30497. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, f.d)
  30498. }
  30499. }
  30500. func (f fastpathT) DecMapIntIntX(vp *map[int]int, checkNil bool, d *Decoder) {
  30501. v, changed := f.DecMapIntIntV(*vp, checkNil, true, d)
  30502. if changed {
  30503. *vp = v
  30504. }
  30505. }
  30506. func (_ fastpathT) DecMapIntIntV(v map[int]int, checkNil bool, canChange bool,
  30507. d *Decoder) (_ map[int]int, changed bool) {
  30508. dd := d.d
  30509. cr := d.cr
  30510. if checkNil && dd.TryDecodeAsNil() {
  30511. if v != nil {
  30512. changed = true
  30513. }
  30514. return nil, changed
  30515. }
  30516. containerLen := dd.ReadMapStart()
  30517. if canChange && v == nil {
  30518. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30519. v = make(map[int]int, xlen)
  30520. changed = true
  30521. }
  30522. var mk int
  30523. var mv int
  30524. if containerLen > 0 {
  30525. for j := 0; j < containerLen; j++ {
  30526. if cr != nil {
  30527. cr.sendContainerState(containerMapKey)
  30528. }
  30529. mk = int(dd.DecodeInt(intBitsize))
  30530. if cr != nil {
  30531. cr.sendContainerState(containerMapValue)
  30532. }
  30533. mv = int(dd.DecodeInt(intBitsize))
  30534. if v != nil {
  30535. v[mk] = mv
  30536. }
  30537. }
  30538. } else if containerLen < 0 {
  30539. for j := 0; !dd.CheckBreak(); j++ {
  30540. if cr != nil {
  30541. cr.sendContainerState(containerMapKey)
  30542. }
  30543. mk = int(dd.DecodeInt(intBitsize))
  30544. if cr != nil {
  30545. cr.sendContainerState(containerMapValue)
  30546. }
  30547. mv = int(dd.DecodeInt(intBitsize))
  30548. if v != nil {
  30549. v[mk] = mv
  30550. }
  30551. }
  30552. }
  30553. if cr != nil {
  30554. cr.sendContainerState(containerMapEnd)
  30555. }
  30556. return v, changed
  30557. }
  30558. func (f *decFnInfo) fastpathDecMapIntInt8R(rv reflect.Value) {
  30559. if rv.CanAddr() {
  30560. vp := rv.Addr().Interface().(*map[int]int8)
  30561. v, changed := fastpathTV.DecMapIntInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  30562. if changed {
  30563. *vp = v
  30564. }
  30565. } else {
  30566. v := rv.Interface().(map[int]int8)
  30567. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, f.d)
  30568. }
  30569. }
  30570. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, checkNil bool, d *Decoder) {
  30571. v, changed := f.DecMapIntInt8V(*vp, checkNil, true, d)
  30572. if changed {
  30573. *vp = v
  30574. }
  30575. }
  30576. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, checkNil bool, canChange bool,
  30577. d *Decoder) (_ map[int]int8, changed bool) {
  30578. dd := d.d
  30579. cr := d.cr
  30580. if checkNil && dd.TryDecodeAsNil() {
  30581. if v != nil {
  30582. changed = true
  30583. }
  30584. return nil, changed
  30585. }
  30586. containerLen := dd.ReadMapStart()
  30587. if canChange && v == nil {
  30588. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30589. v = make(map[int]int8, xlen)
  30590. changed = true
  30591. }
  30592. var mk int
  30593. var mv int8
  30594. if containerLen > 0 {
  30595. for j := 0; j < containerLen; j++ {
  30596. if cr != nil {
  30597. cr.sendContainerState(containerMapKey)
  30598. }
  30599. mk = int(dd.DecodeInt(intBitsize))
  30600. if cr != nil {
  30601. cr.sendContainerState(containerMapValue)
  30602. }
  30603. mv = int8(dd.DecodeInt(8))
  30604. if v != nil {
  30605. v[mk] = mv
  30606. }
  30607. }
  30608. } else if containerLen < 0 {
  30609. for j := 0; !dd.CheckBreak(); j++ {
  30610. if cr != nil {
  30611. cr.sendContainerState(containerMapKey)
  30612. }
  30613. mk = int(dd.DecodeInt(intBitsize))
  30614. if cr != nil {
  30615. cr.sendContainerState(containerMapValue)
  30616. }
  30617. mv = int8(dd.DecodeInt(8))
  30618. if v != nil {
  30619. v[mk] = mv
  30620. }
  30621. }
  30622. }
  30623. if cr != nil {
  30624. cr.sendContainerState(containerMapEnd)
  30625. }
  30626. return v, changed
  30627. }
  30628. func (f *decFnInfo) fastpathDecMapIntInt16R(rv reflect.Value) {
  30629. if rv.CanAddr() {
  30630. vp := rv.Addr().Interface().(*map[int]int16)
  30631. v, changed := fastpathTV.DecMapIntInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  30632. if changed {
  30633. *vp = v
  30634. }
  30635. } else {
  30636. v := rv.Interface().(map[int]int16)
  30637. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, f.d)
  30638. }
  30639. }
  30640. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, checkNil bool, d *Decoder) {
  30641. v, changed := f.DecMapIntInt16V(*vp, checkNil, true, d)
  30642. if changed {
  30643. *vp = v
  30644. }
  30645. }
  30646. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, checkNil bool, canChange bool,
  30647. d *Decoder) (_ map[int]int16, changed bool) {
  30648. dd := d.d
  30649. cr := d.cr
  30650. if checkNil && dd.TryDecodeAsNil() {
  30651. if v != nil {
  30652. changed = true
  30653. }
  30654. return nil, changed
  30655. }
  30656. containerLen := dd.ReadMapStart()
  30657. if canChange && v == nil {
  30658. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30659. v = make(map[int]int16, xlen)
  30660. changed = true
  30661. }
  30662. var mk int
  30663. var mv int16
  30664. if containerLen > 0 {
  30665. for j := 0; j < containerLen; j++ {
  30666. if cr != nil {
  30667. cr.sendContainerState(containerMapKey)
  30668. }
  30669. mk = int(dd.DecodeInt(intBitsize))
  30670. if cr != nil {
  30671. cr.sendContainerState(containerMapValue)
  30672. }
  30673. mv = int16(dd.DecodeInt(16))
  30674. if v != nil {
  30675. v[mk] = mv
  30676. }
  30677. }
  30678. } else if containerLen < 0 {
  30679. for j := 0; !dd.CheckBreak(); j++ {
  30680. if cr != nil {
  30681. cr.sendContainerState(containerMapKey)
  30682. }
  30683. mk = int(dd.DecodeInt(intBitsize))
  30684. if cr != nil {
  30685. cr.sendContainerState(containerMapValue)
  30686. }
  30687. mv = int16(dd.DecodeInt(16))
  30688. if v != nil {
  30689. v[mk] = mv
  30690. }
  30691. }
  30692. }
  30693. if cr != nil {
  30694. cr.sendContainerState(containerMapEnd)
  30695. }
  30696. return v, changed
  30697. }
  30698. func (f *decFnInfo) fastpathDecMapIntInt32R(rv reflect.Value) {
  30699. if rv.CanAddr() {
  30700. vp := rv.Addr().Interface().(*map[int]int32)
  30701. v, changed := fastpathTV.DecMapIntInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  30702. if changed {
  30703. *vp = v
  30704. }
  30705. } else {
  30706. v := rv.Interface().(map[int]int32)
  30707. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, f.d)
  30708. }
  30709. }
  30710. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, checkNil bool, d *Decoder) {
  30711. v, changed := f.DecMapIntInt32V(*vp, checkNil, true, d)
  30712. if changed {
  30713. *vp = v
  30714. }
  30715. }
  30716. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, checkNil bool, canChange bool,
  30717. d *Decoder) (_ map[int]int32, changed bool) {
  30718. dd := d.d
  30719. cr := d.cr
  30720. if checkNil && dd.TryDecodeAsNil() {
  30721. if v != nil {
  30722. changed = true
  30723. }
  30724. return nil, changed
  30725. }
  30726. containerLen := dd.ReadMapStart()
  30727. if canChange && v == nil {
  30728. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30729. v = make(map[int]int32, xlen)
  30730. changed = true
  30731. }
  30732. var mk int
  30733. var mv int32
  30734. if containerLen > 0 {
  30735. for j := 0; j < containerLen; j++ {
  30736. if cr != nil {
  30737. cr.sendContainerState(containerMapKey)
  30738. }
  30739. mk = int(dd.DecodeInt(intBitsize))
  30740. if cr != nil {
  30741. cr.sendContainerState(containerMapValue)
  30742. }
  30743. mv = int32(dd.DecodeInt(32))
  30744. if v != nil {
  30745. v[mk] = mv
  30746. }
  30747. }
  30748. } else if containerLen < 0 {
  30749. for j := 0; !dd.CheckBreak(); j++ {
  30750. if cr != nil {
  30751. cr.sendContainerState(containerMapKey)
  30752. }
  30753. mk = int(dd.DecodeInt(intBitsize))
  30754. if cr != nil {
  30755. cr.sendContainerState(containerMapValue)
  30756. }
  30757. mv = int32(dd.DecodeInt(32))
  30758. if v != nil {
  30759. v[mk] = mv
  30760. }
  30761. }
  30762. }
  30763. if cr != nil {
  30764. cr.sendContainerState(containerMapEnd)
  30765. }
  30766. return v, changed
  30767. }
  30768. func (f *decFnInfo) fastpathDecMapIntInt64R(rv reflect.Value) {
  30769. if rv.CanAddr() {
  30770. vp := rv.Addr().Interface().(*map[int]int64)
  30771. v, changed := fastpathTV.DecMapIntInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  30772. if changed {
  30773. *vp = v
  30774. }
  30775. } else {
  30776. v := rv.Interface().(map[int]int64)
  30777. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, f.d)
  30778. }
  30779. }
  30780. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, checkNil bool, d *Decoder) {
  30781. v, changed := f.DecMapIntInt64V(*vp, checkNil, true, d)
  30782. if changed {
  30783. *vp = v
  30784. }
  30785. }
  30786. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, checkNil bool, canChange bool,
  30787. d *Decoder) (_ map[int]int64, changed bool) {
  30788. dd := d.d
  30789. cr := d.cr
  30790. if checkNil && dd.TryDecodeAsNil() {
  30791. if v != nil {
  30792. changed = true
  30793. }
  30794. return nil, changed
  30795. }
  30796. containerLen := dd.ReadMapStart()
  30797. if canChange && v == nil {
  30798. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30799. v = make(map[int]int64, xlen)
  30800. changed = true
  30801. }
  30802. var mk int
  30803. var mv int64
  30804. if containerLen > 0 {
  30805. for j := 0; j < containerLen; j++ {
  30806. if cr != nil {
  30807. cr.sendContainerState(containerMapKey)
  30808. }
  30809. mk = int(dd.DecodeInt(intBitsize))
  30810. if cr != nil {
  30811. cr.sendContainerState(containerMapValue)
  30812. }
  30813. mv = dd.DecodeInt(64)
  30814. if v != nil {
  30815. v[mk] = mv
  30816. }
  30817. }
  30818. } else if containerLen < 0 {
  30819. for j := 0; !dd.CheckBreak(); j++ {
  30820. if cr != nil {
  30821. cr.sendContainerState(containerMapKey)
  30822. }
  30823. mk = int(dd.DecodeInt(intBitsize))
  30824. if cr != nil {
  30825. cr.sendContainerState(containerMapValue)
  30826. }
  30827. mv = dd.DecodeInt(64)
  30828. if v != nil {
  30829. v[mk] = mv
  30830. }
  30831. }
  30832. }
  30833. if cr != nil {
  30834. cr.sendContainerState(containerMapEnd)
  30835. }
  30836. return v, changed
  30837. }
  30838. func (f *decFnInfo) fastpathDecMapIntFloat32R(rv reflect.Value) {
  30839. if rv.CanAddr() {
  30840. vp := rv.Addr().Interface().(*map[int]float32)
  30841. v, changed := fastpathTV.DecMapIntFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  30842. if changed {
  30843. *vp = v
  30844. }
  30845. } else {
  30846. v := rv.Interface().(map[int]float32)
  30847. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, f.d)
  30848. }
  30849. }
  30850. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, checkNil bool, d *Decoder) {
  30851. v, changed := f.DecMapIntFloat32V(*vp, checkNil, true, d)
  30852. if changed {
  30853. *vp = v
  30854. }
  30855. }
  30856. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, checkNil bool, canChange bool,
  30857. d *Decoder) (_ map[int]float32, changed bool) {
  30858. dd := d.d
  30859. cr := d.cr
  30860. if checkNil && dd.TryDecodeAsNil() {
  30861. if v != nil {
  30862. changed = true
  30863. }
  30864. return nil, changed
  30865. }
  30866. containerLen := dd.ReadMapStart()
  30867. if canChange && v == nil {
  30868. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30869. v = make(map[int]float32, xlen)
  30870. changed = true
  30871. }
  30872. var mk int
  30873. var mv float32
  30874. if containerLen > 0 {
  30875. for j := 0; j < containerLen; j++ {
  30876. if cr != nil {
  30877. cr.sendContainerState(containerMapKey)
  30878. }
  30879. mk = int(dd.DecodeInt(intBitsize))
  30880. if cr != nil {
  30881. cr.sendContainerState(containerMapValue)
  30882. }
  30883. mv = float32(dd.DecodeFloat(true))
  30884. if v != nil {
  30885. v[mk] = mv
  30886. }
  30887. }
  30888. } else if containerLen < 0 {
  30889. for j := 0; !dd.CheckBreak(); j++ {
  30890. if cr != nil {
  30891. cr.sendContainerState(containerMapKey)
  30892. }
  30893. mk = int(dd.DecodeInt(intBitsize))
  30894. if cr != nil {
  30895. cr.sendContainerState(containerMapValue)
  30896. }
  30897. mv = float32(dd.DecodeFloat(true))
  30898. if v != nil {
  30899. v[mk] = mv
  30900. }
  30901. }
  30902. }
  30903. if cr != nil {
  30904. cr.sendContainerState(containerMapEnd)
  30905. }
  30906. return v, changed
  30907. }
  30908. func (f *decFnInfo) fastpathDecMapIntFloat64R(rv reflect.Value) {
  30909. if rv.CanAddr() {
  30910. vp := rv.Addr().Interface().(*map[int]float64)
  30911. v, changed := fastpathTV.DecMapIntFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  30912. if changed {
  30913. *vp = v
  30914. }
  30915. } else {
  30916. v := rv.Interface().(map[int]float64)
  30917. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, f.d)
  30918. }
  30919. }
  30920. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, checkNil bool, d *Decoder) {
  30921. v, changed := f.DecMapIntFloat64V(*vp, checkNil, true, d)
  30922. if changed {
  30923. *vp = v
  30924. }
  30925. }
  30926. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, checkNil bool, canChange bool,
  30927. d *Decoder) (_ map[int]float64, changed bool) {
  30928. dd := d.d
  30929. cr := d.cr
  30930. if checkNil && dd.TryDecodeAsNil() {
  30931. if v != nil {
  30932. changed = true
  30933. }
  30934. return nil, changed
  30935. }
  30936. containerLen := dd.ReadMapStart()
  30937. if canChange && v == nil {
  30938. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30939. v = make(map[int]float64, xlen)
  30940. changed = true
  30941. }
  30942. var mk int
  30943. var mv float64
  30944. if containerLen > 0 {
  30945. for j := 0; j < containerLen; j++ {
  30946. if cr != nil {
  30947. cr.sendContainerState(containerMapKey)
  30948. }
  30949. mk = int(dd.DecodeInt(intBitsize))
  30950. if cr != nil {
  30951. cr.sendContainerState(containerMapValue)
  30952. }
  30953. mv = dd.DecodeFloat(false)
  30954. if v != nil {
  30955. v[mk] = mv
  30956. }
  30957. }
  30958. } else if containerLen < 0 {
  30959. for j := 0; !dd.CheckBreak(); j++ {
  30960. if cr != nil {
  30961. cr.sendContainerState(containerMapKey)
  30962. }
  30963. mk = int(dd.DecodeInt(intBitsize))
  30964. if cr != nil {
  30965. cr.sendContainerState(containerMapValue)
  30966. }
  30967. mv = dd.DecodeFloat(false)
  30968. if v != nil {
  30969. v[mk] = mv
  30970. }
  30971. }
  30972. }
  30973. if cr != nil {
  30974. cr.sendContainerState(containerMapEnd)
  30975. }
  30976. return v, changed
  30977. }
  30978. func (f *decFnInfo) fastpathDecMapIntBoolR(rv reflect.Value) {
  30979. if rv.CanAddr() {
  30980. vp := rv.Addr().Interface().(*map[int]bool)
  30981. v, changed := fastpathTV.DecMapIntBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  30982. if changed {
  30983. *vp = v
  30984. }
  30985. } else {
  30986. v := rv.Interface().(map[int]bool)
  30987. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, f.d)
  30988. }
  30989. }
  30990. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, checkNil bool, d *Decoder) {
  30991. v, changed := f.DecMapIntBoolV(*vp, checkNil, true, d)
  30992. if changed {
  30993. *vp = v
  30994. }
  30995. }
  30996. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, checkNil bool, canChange bool,
  30997. d *Decoder) (_ map[int]bool, changed bool) {
  30998. dd := d.d
  30999. cr := d.cr
  31000. if checkNil && dd.TryDecodeAsNil() {
  31001. if v != nil {
  31002. changed = true
  31003. }
  31004. return nil, changed
  31005. }
  31006. containerLen := dd.ReadMapStart()
  31007. if canChange && v == nil {
  31008. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31009. v = make(map[int]bool, xlen)
  31010. changed = true
  31011. }
  31012. var mk int
  31013. var mv bool
  31014. if containerLen > 0 {
  31015. for j := 0; j < containerLen; j++ {
  31016. if cr != nil {
  31017. cr.sendContainerState(containerMapKey)
  31018. }
  31019. mk = int(dd.DecodeInt(intBitsize))
  31020. if cr != nil {
  31021. cr.sendContainerState(containerMapValue)
  31022. }
  31023. mv = dd.DecodeBool()
  31024. if v != nil {
  31025. v[mk] = mv
  31026. }
  31027. }
  31028. } else if containerLen < 0 {
  31029. for j := 0; !dd.CheckBreak(); j++ {
  31030. if cr != nil {
  31031. cr.sendContainerState(containerMapKey)
  31032. }
  31033. mk = int(dd.DecodeInt(intBitsize))
  31034. if cr != nil {
  31035. cr.sendContainerState(containerMapValue)
  31036. }
  31037. mv = dd.DecodeBool()
  31038. if v != nil {
  31039. v[mk] = mv
  31040. }
  31041. }
  31042. }
  31043. if cr != nil {
  31044. cr.sendContainerState(containerMapEnd)
  31045. }
  31046. return v, changed
  31047. }
  31048. func (f *decFnInfo) fastpathDecMapInt8IntfR(rv reflect.Value) {
  31049. if rv.CanAddr() {
  31050. vp := rv.Addr().Interface().(*map[int8]interface{})
  31051. v, changed := fastpathTV.DecMapInt8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  31052. if changed {
  31053. *vp = v
  31054. }
  31055. } else {
  31056. v := rv.Interface().(map[int8]interface{})
  31057. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, f.d)
  31058. }
  31059. }
  31060. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, checkNil bool, d *Decoder) {
  31061. v, changed := f.DecMapInt8IntfV(*vp, checkNil, true, d)
  31062. if changed {
  31063. *vp = v
  31064. }
  31065. }
  31066. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, checkNil bool, canChange bool,
  31067. d *Decoder) (_ map[int8]interface{}, changed bool) {
  31068. dd := d.d
  31069. cr := d.cr
  31070. if checkNil && dd.TryDecodeAsNil() {
  31071. if v != nil {
  31072. changed = true
  31073. }
  31074. return nil, changed
  31075. }
  31076. containerLen := dd.ReadMapStart()
  31077. if canChange && v == nil {
  31078. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  31079. v = make(map[int8]interface{}, xlen)
  31080. changed = true
  31081. }
  31082. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  31083. var mk int8
  31084. var mv interface{}
  31085. if containerLen > 0 {
  31086. for j := 0; j < containerLen; j++ {
  31087. if cr != nil {
  31088. cr.sendContainerState(containerMapKey)
  31089. }
  31090. mk = int8(dd.DecodeInt(8))
  31091. if cr != nil {
  31092. cr.sendContainerState(containerMapValue)
  31093. }
  31094. if mapGet {
  31095. mv = v[mk]
  31096. } else {
  31097. mv = nil
  31098. }
  31099. d.decode(&mv)
  31100. if v != nil {
  31101. v[mk] = mv
  31102. }
  31103. }
  31104. } else if containerLen < 0 {
  31105. for j := 0; !dd.CheckBreak(); j++ {
  31106. if cr != nil {
  31107. cr.sendContainerState(containerMapKey)
  31108. }
  31109. mk = int8(dd.DecodeInt(8))
  31110. if cr != nil {
  31111. cr.sendContainerState(containerMapValue)
  31112. }
  31113. if mapGet {
  31114. mv = v[mk]
  31115. } else {
  31116. mv = nil
  31117. }
  31118. d.decode(&mv)
  31119. if v != nil {
  31120. v[mk] = mv
  31121. }
  31122. }
  31123. }
  31124. if cr != nil {
  31125. cr.sendContainerState(containerMapEnd)
  31126. }
  31127. return v, changed
  31128. }
  31129. func (f *decFnInfo) fastpathDecMapInt8StringR(rv reflect.Value) {
  31130. if rv.CanAddr() {
  31131. vp := rv.Addr().Interface().(*map[int8]string)
  31132. v, changed := fastpathTV.DecMapInt8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  31133. if changed {
  31134. *vp = v
  31135. }
  31136. } else {
  31137. v := rv.Interface().(map[int8]string)
  31138. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, f.d)
  31139. }
  31140. }
  31141. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, checkNil bool, d *Decoder) {
  31142. v, changed := f.DecMapInt8StringV(*vp, checkNil, true, d)
  31143. if changed {
  31144. *vp = v
  31145. }
  31146. }
  31147. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, checkNil bool, canChange bool,
  31148. d *Decoder) (_ map[int8]string, changed bool) {
  31149. dd := d.d
  31150. cr := d.cr
  31151. if checkNil && dd.TryDecodeAsNil() {
  31152. if v != nil {
  31153. changed = true
  31154. }
  31155. return nil, changed
  31156. }
  31157. containerLen := dd.ReadMapStart()
  31158. if canChange && v == nil {
  31159. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  31160. v = make(map[int8]string, xlen)
  31161. changed = true
  31162. }
  31163. var mk int8
  31164. var mv string
  31165. if containerLen > 0 {
  31166. for j := 0; j < containerLen; j++ {
  31167. if cr != nil {
  31168. cr.sendContainerState(containerMapKey)
  31169. }
  31170. mk = int8(dd.DecodeInt(8))
  31171. if cr != nil {
  31172. cr.sendContainerState(containerMapValue)
  31173. }
  31174. mv = dd.DecodeString()
  31175. if v != nil {
  31176. v[mk] = mv
  31177. }
  31178. }
  31179. } else if containerLen < 0 {
  31180. for j := 0; !dd.CheckBreak(); j++ {
  31181. if cr != nil {
  31182. cr.sendContainerState(containerMapKey)
  31183. }
  31184. mk = int8(dd.DecodeInt(8))
  31185. if cr != nil {
  31186. cr.sendContainerState(containerMapValue)
  31187. }
  31188. mv = dd.DecodeString()
  31189. if v != nil {
  31190. v[mk] = mv
  31191. }
  31192. }
  31193. }
  31194. if cr != nil {
  31195. cr.sendContainerState(containerMapEnd)
  31196. }
  31197. return v, changed
  31198. }
  31199. func (f *decFnInfo) fastpathDecMapInt8UintR(rv reflect.Value) {
  31200. if rv.CanAddr() {
  31201. vp := rv.Addr().Interface().(*map[int8]uint)
  31202. v, changed := fastpathTV.DecMapInt8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  31203. if changed {
  31204. *vp = v
  31205. }
  31206. } else {
  31207. v := rv.Interface().(map[int8]uint)
  31208. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, f.d)
  31209. }
  31210. }
  31211. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, checkNil bool, d *Decoder) {
  31212. v, changed := f.DecMapInt8UintV(*vp, checkNil, true, d)
  31213. if changed {
  31214. *vp = v
  31215. }
  31216. }
  31217. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, checkNil bool, canChange bool,
  31218. d *Decoder) (_ map[int8]uint, changed bool) {
  31219. dd := d.d
  31220. cr := d.cr
  31221. if checkNil && dd.TryDecodeAsNil() {
  31222. if v != nil {
  31223. changed = true
  31224. }
  31225. return nil, changed
  31226. }
  31227. containerLen := dd.ReadMapStart()
  31228. if canChange && v == nil {
  31229. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31230. v = make(map[int8]uint, xlen)
  31231. changed = true
  31232. }
  31233. var mk int8
  31234. var mv uint
  31235. if containerLen > 0 {
  31236. for j := 0; j < containerLen; j++ {
  31237. if cr != nil {
  31238. cr.sendContainerState(containerMapKey)
  31239. }
  31240. mk = int8(dd.DecodeInt(8))
  31241. if cr != nil {
  31242. cr.sendContainerState(containerMapValue)
  31243. }
  31244. mv = uint(dd.DecodeUint(uintBitsize))
  31245. if v != nil {
  31246. v[mk] = mv
  31247. }
  31248. }
  31249. } else if containerLen < 0 {
  31250. for j := 0; !dd.CheckBreak(); j++ {
  31251. if cr != nil {
  31252. cr.sendContainerState(containerMapKey)
  31253. }
  31254. mk = int8(dd.DecodeInt(8))
  31255. if cr != nil {
  31256. cr.sendContainerState(containerMapValue)
  31257. }
  31258. mv = uint(dd.DecodeUint(uintBitsize))
  31259. if v != nil {
  31260. v[mk] = mv
  31261. }
  31262. }
  31263. }
  31264. if cr != nil {
  31265. cr.sendContainerState(containerMapEnd)
  31266. }
  31267. return v, changed
  31268. }
  31269. func (f *decFnInfo) fastpathDecMapInt8Uint8R(rv reflect.Value) {
  31270. if rv.CanAddr() {
  31271. vp := rv.Addr().Interface().(*map[int8]uint8)
  31272. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  31273. if changed {
  31274. *vp = v
  31275. }
  31276. } else {
  31277. v := rv.Interface().(map[int8]uint8)
  31278. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  31279. }
  31280. }
  31281. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, checkNil bool, d *Decoder) {
  31282. v, changed := f.DecMapInt8Uint8V(*vp, checkNil, true, d)
  31283. if changed {
  31284. *vp = v
  31285. }
  31286. }
  31287. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, checkNil bool, canChange bool,
  31288. d *Decoder) (_ map[int8]uint8, changed bool) {
  31289. dd := d.d
  31290. cr := d.cr
  31291. if checkNil && dd.TryDecodeAsNil() {
  31292. if v != nil {
  31293. changed = true
  31294. }
  31295. return nil, changed
  31296. }
  31297. containerLen := dd.ReadMapStart()
  31298. if canChange && v == nil {
  31299. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  31300. v = make(map[int8]uint8, xlen)
  31301. changed = true
  31302. }
  31303. var mk int8
  31304. var mv uint8
  31305. if containerLen > 0 {
  31306. for j := 0; j < containerLen; j++ {
  31307. if cr != nil {
  31308. cr.sendContainerState(containerMapKey)
  31309. }
  31310. mk = int8(dd.DecodeInt(8))
  31311. if cr != nil {
  31312. cr.sendContainerState(containerMapValue)
  31313. }
  31314. mv = uint8(dd.DecodeUint(8))
  31315. if v != nil {
  31316. v[mk] = mv
  31317. }
  31318. }
  31319. } else if containerLen < 0 {
  31320. for j := 0; !dd.CheckBreak(); j++ {
  31321. if cr != nil {
  31322. cr.sendContainerState(containerMapKey)
  31323. }
  31324. mk = int8(dd.DecodeInt(8))
  31325. if cr != nil {
  31326. cr.sendContainerState(containerMapValue)
  31327. }
  31328. mv = uint8(dd.DecodeUint(8))
  31329. if v != nil {
  31330. v[mk] = mv
  31331. }
  31332. }
  31333. }
  31334. if cr != nil {
  31335. cr.sendContainerState(containerMapEnd)
  31336. }
  31337. return v, changed
  31338. }
  31339. func (f *decFnInfo) fastpathDecMapInt8Uint16R(rv reflect.Value) {
  31340. if rv.CanAddr() {
  31341. vp := rv.Addr().Interface().(*map[int8]uint16)
  31342. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  31343. if changed {
  31344. *vp = v
  31345. }
  31346. } else {
  31347. v := rv.Interface().(map[int8]uint16)
  31348. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  31349. }
  31350. }
  31351. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, checkNil bool, d *Decoder) {
  31352. v, changed := f.DecMapInt8Uint16V(*vp, checkNil, true, d)
  31353. if changed {
  31354. *vp = v
  31355. }
  31356. }
  31357. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, checkNil bool, canChange bool,
  31358. d *Decoder) (_ map[int8]uint16, changed bool) {
  31359. dd := d.d
  31360. cr := d.cr
  31361. if checkNil && dd.TryDecodeAsNil() {
  31362. if v != nil {
  31363. changed = true
  31364. }
  31365. return nil, changed
  31366. }
  31367. containerLen := dd.ReadMapStart()
  31368. if canChange && v == nil {
  31369. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31370. v = make(map[int8]uint16, xlen)
  31371. changed = true
  31372. }
  31373. var mk int8
  31374. var mv uint16
  31375. if containerLen > 0 {
  31376. for j := 0; j < containerLen; j++ {
  31377. if cr != nil {
  31378. cr.sendContainerState(containerMapKey)
  31379. }
  31380. mk = int8(dd.DecodeInt(8))
  31381. if cr != nil {
  31382. cr.sendContainerState(containerMapValue)
  31383. }
  31384. mv = uint16(dd.DecodeUint(16))
  31385. if v != nil {
  31386. v[mk] = mv
  31387. }
  31388. }
  31389. } else if containerLen < 0 {
  31390. for j := 0; !dd.CheckBreak(); j++ {
  31391. if cr != nil {
  31392. cr.sendContainerState(containerMapKey)
  31393. }
  31394. mk = int8(dd.DecodeInt(8))
  31395. if cr != nil {
  31396. cr.sendContainerState(containerMapValue)
  31397. }
  31398. mv = uint16(dd.DecodeUint(16))
  31399. if v != nil {
  31400. v[mk] = mv
  31401. }
  31402. }
  31403. }
  31404. if cr != nil {
  31405. cr.sendContainerState(containerMapEnd)
  31406. }
  31407. return v, changed
  31408. }
  31409. func (f *decFnInfo) fastpathDecMapInt8Uint32R(rv reflect.Value) {
  31410. if rv.CanAddr() {
  31411. vp := rv.Addr().Interface().(*map[int8]uint32)
  31412. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  31413. if changed {
  31414. *vp = v
  31415. }
  31416. } else {
  31417. v := rv.Interface().(map[int8]uint32)
  31418. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  31419. }
  31420. }
  31421. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, checkNil bool, d *Decoder) {
  31422. v, changed := f.DecMapInt8Uint32V(*vp, checkNil, true, d)
  31423. if changed {
  31424. *vp = v
  31425. }
  31426. }
  31427. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, checkNil bool, canChange bool,
  31428. d *Decoder) (_ map[int8]uint32, changed bool) {
  31429. dd := d.d
  31430. cr := d.cr
  31431. if checkNil && dd.TryDecodeAsNil() {
  31432. if v != nil {
  31433. changed = true
  31434. }
  31435. return nil, changed
  31436. }
  31437. containerLen := dd.ReadMapStart()
  31438. if canChange && v == nil {
  31439. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31440. v = make(map[int8]uint32, xlen)
  31441. changed = true
  31442. }
  31443. var mk int8
  31444. var mv uint32
  31445. if containerLen > 0 {
  31446. for j := 0; j < containerLen; j++ {
  31447. if cr != nil {
  31448. cr.sendContainerState(containerMapKey)
  31449. }
  31450. mk = int8(dd.DecodeInt(8))
  31451. if cr != nil {
  31452. cr.sendContainerState(containerMapValue)
  31453. }
  31454. mv = uint32(dd.DecodeUint(32))
  31455. if v != nil {
  31456. v[mk] = mv
  31457. }
  31458. }
  31459. } else if containerLen < 0 {
  31460. for j := 0; !dd.CheckBreak(); j++ {
  31461. if cr != nil {
  31462. cr.sendContainerState(containerMapKey)
  31463. }
  31464. mk = int8(dd.DecodeInt(8))
  31465. if cr != nil {
  31466. cr.sendContainerState(containerMapValue)
  31467. }
  31468. mv = uint32(dd.DecodeUint(32))
  31469. if v != nil {
  31470. v[mk] = mv
  31471. }
  31472. }
  31473. }
  31474. if cr != nil {
  31475. cr.sendContainerState(containerMapEnd)
  31476. }
  31477. return v, changed
  31478. }
  31479. func (f *decFnInfo) fastpathDecMapInt8Uint64R(rv reflect.Value) {
  31480. if rv.CanAddr() {
  31481. vp := rv.Addr().Interface().(*map[int8]uint64)
  31482. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  31483. if changed {
  31484. *vp = v
  31485. }
  31486. } else {
  31487. v := rv.Interface().(map[int8]uint64)
  31488. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  31489. }
  31490. }
  31491. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, checkNil bool, d *Decoder) {
  31492. v, changed := f.DecMapInt8Uint64V(*vp, checkNil, true, d)
  31493. if changed {
  31494. *vp = v
  31495. }
  31496. }
  31497. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, checkNil bool, canChange bool,
  31498. d *Decoder) (_ map[int8]uint64, changed bool) {
  31499. dd := d.d
  31500. cr := d.cr
  31501. if checkNil && dd.TryDecodeAsNil() {
  31502. if v != nil {
  31503. changed = true
  31504. }
  31505. return nil, changed
  31506. }
  31507. containerLen := dd.ReadMapStart()
  31508. if canChange && v == nil {
  31509. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31510. v = make(map[int8]uint64, xlen)
  31511. changed = true
  31512. }
  31513. var mk int8
  31514. var mv uint64
  31515. if containerLen > 0 {
  31516. for j := 0; j < containerLen; j++ {
  31517. if cr != nil {
  31518. cr.sendContainerState(containerMapKey)
  31519. }
  31520. mk = int8(dd.DecodeInt(8))
  31521. if cr != nil {
  31522. cr.sendContainerState(containerMapValue)
  31523. }
  31524. mv = dd.DecodeUint(64)
  31525. if v != nil {
  31526. v[mk] = mv
  31527. }
  31528. }
  31529. } else if containerLen < 0 {
  31530. for j := 0; !dd.CheckBreak(); j++ {
  31531. if cr != nil {
  31532. cr.sendContainerState(containerMapKey)
  31533. }
  31534. mk = int8(dd.DecodeInt(8))
  31535. if cr != nil {
  31536. cr.sendContainerState(containerMapValue)
  31537. }
  31538. mv = dd.DecodeUint(64)
  31539. if v != nil {
  31540. v[mk] = mv
  31541. }
  31542. }
  31543. }
  31544. if cr != nil {
  31545. cr.sendContainerState(containerMapEnd)
  31546. }
  31547. return v, changed
  31548. }
  31549. func (f *decFnInfo) fastpathDecMapInt8UintptrR(rv reflect.Value) {
  31550. if rv.CanAddr() {
  31551. vp := rv.Addr().Interface().(*map[int8]uintptr)
  31552. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  31553. if changed {
  31554. *vp = v
  31555. }
  31556. } else {
  31557. v := rv.Interface().(map[int8]uintptr)
  31558. fastpathTV.DecMapInt8UintptrV(v, fastpathCheckNilFalse, false, f.d)
  31559. }
  31560. }
  31561. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, checkNil bool, d *Decoder) {
  31562. v, changed := f.DecMapInt8UintptrV(*vp, checkNil, true, d)
  31563. if changed {
  31564. *vp = v
  31565. }
  31566. }
  31567. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, checkNil bool, canChange bool,
  31568. d *Decoder) (_ map[int8]uintptr, changed bool) {
  31569. dd := d.d
  31570. cr := d.cr
  31571. if checkNil && dd.TryDecodeAsNil() {
  31572. if v != nil {
  31573. changed = true
  31574. }
  31575. return nil, changed
  31576. }
  31577. containerLen := dd.ReadMapStart()
  31578. if canChange && v == nil {
  31579. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31580. v = make(map[int8]uintptr, xlen)
  31581. changed = true
  31582. }
  31583. var mk int8
  31584. var mv uintptr
  31585. if containerLen > 0 {
  31586. for j := 0; j < containerLen; j++ {
  31587. if cr != nil {
  31588. cr.sendContainerState(containerMapKey)
  31589. }
  31590. mk = int8(dd.DecodeInt(8))
  31591. if cr != nil {
  31592. cr.sendContainerState(containerMapValue)
  31593. }
  31594. mv = uintptr(dd.DecodeUint(uintBitsize))
  31595. if v != nil {
  31596. v[mk] = mv
  31597. }
  31598. }
  31599. } else if containerLen < 0 {
  31600. for j := 0; !dd.CheckBreak(); j++ {
  31601. if cr != nil {
  31602. cr.sendContainerState(containerMapKey)
  31603. }
  31604. mk = int8(dd.DecodeInt(8))
  31605. if cr != nil {
  31606. cr.sendContainerState(containerMapValue)
  31607. }
  31608. mv = uintptr(dd.DecodeUint(uintBitsize))
  31609. if v != nil {
  31610. v[mk] = mv
  31611. }
  31612. }
  31613. }
  31614. if cr != nil {
  31615. cr.sendContainerState(containerMapEnd)
  31616. }
  31617. return v, changed
  31618. }
  31619. func (f *decFnInfo) fastpathDecMapInt8IntR(rv reflect.Value) {
  31620. if rv.CanAddr() {
  31621. vp := rv.Addr().Interface().(*map[int8]int)
  31622. v, changed := fastpathTV.DecMapInt8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  31623. if changed {
  31624. *vp = v
  31625. }
  31626. } else {
  31627. v := rv.Interface().(map[int8]int)
  31628. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, f.d)
  31629. }
  31630. }
  31631. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, checkNil bool, d *Decoder) {
  31632. v, changed := f.DecMapInt8IntV(*vp, checkNil, true, d)
  31633. if changed {
  31634. *vp = v
  31635. }
  31636. }
  31637. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, checkNil bool, canChange bool,
  31638. d *Decoder) (_ map[int8]int, changed bool) {
  31639. dd := d.d
  31640. cr := d.cr
  31641. if checkNil && dd.TryDecodeAsNil() {
  31642. if v != nil {
  31643. changed = true
  31644. }
  31645. return nil, changed
  31646. }
  31647. containerLen := dd.ReadMapStart()
  31648. if canChange && v == nil {
  31649. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31650. v = make(map[int8]int, xlen)
  31651. changed = true
  31652. }
  31653. var mk int8
  31654. var mv int
  31655. if containerLen > 0 {
  31656. for j := 0; j < containerLen; j++ {
  31657. if cr != nil {
  31658. cr.sendContainerState(containerMapKey)
  31659. }
  31660. mk = int8(dd.DecodeInt(8))
  31661. if cr != nil {
  31662. cr.sendContainerState(containerMapValue)
  31663. }
  31664. mv = int(dd.DecodeInt(intBitsize))
  31665. if v != nil {
  31666. v[mk] = mv
  31667. }
  31668. }
  31669. } else if containerLen < 0 {
  31670. for j := 0; !dd.CheckBreak(); j++ {
  31671. if cr != nil {
  31672. cr.sendContainerState(containerMapKey)
  31673. }
  31674. mk = int8(dd.DecodeInt(8))
  31675. if cr != nil {
  31676. cr.sendContainerState(containerMapValue)
  31677. }
  31678. mv = int(dd.DecodeInt(intBitsize))
  31679. if v != nil {
  31680. v[mk] = mv
  31681. }
  31682. }
  31683. }
  31684. if cr != nil {
  31685. cr.sendContainerState(containerMapEnd)
  31686. }
  31687. return v, changed
  31688. }
  31689. func (f *decFnInfo) fastpathDecMapInt8Int8R(rv reflect.Value) {
  31690. if rv.CanAddr() {
  31691. vp := rv.Addr().Interface().(*map[int8]int8)
  31692. v, changed := fastpathTV.DecMapInt8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  31693. if changed {
  31694. *vp = v
  31695. }
  31696. } else {
  31697. v := rv.Interface().(map[int8]int8)
  31698. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, f.d)
  31699. }
  31700. }
  31701. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, checkNil bool, d *Decoder) {
  31702. v, changed := f.DecMapInt8Int8V(*vp, checkNil, true, d)
  31703. if changed {
  31704. *vp = v
  31705. }
  31706. }
  31707. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, checkNil bool, canChange bool,
  31708. d *Decoder) (_ map[int8]int8, changed bool) {
  31709. dd := d.d
  31710. cr := d.cr
  31711. if checkNil && dd.TryDecodeAsNil() {
  31712. if v != nil {
  31713. changed = true
  31714. }
  31715. return nil, changed
  31716. }
  31717. containerLen := dd.ReadMapStart()
  31718. if canChange && v == nil {
  31719. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  31720. v = make(map[int8]int8, xlen)
  31721. changed = true
  31722. }
  31723. var mk int8
  31724. var mv int8
  31725. if containerLen > 0 {
  31726. for j := 0; j < containerLen; j++ {
  31727. if cr != nil {
  31728. cr.sendContainerState(containerMapKey)
  31729. }
  31730. mk = int8(dd.DecodeInt(8))
  31731. if cr != nil {
  31732. cr.sendContainerState(containerMapValue)
  31733. }
  31734. mv = int8(dd.DecodeInt(8))
  31735. if v != nil {
  31736. v[mk] = mv
  31737. }
  31738. }
  31739. } else if containerLen < 0 {
  31740. for j := 0; !dd.CheckBreak(); j++ {
  31741. if cr != nil {
  31742. cr.sendContainerState(containerMapKey)
  31743. }
  31744. mk = int8(dd.DecodeInt(8))
  31745. if cr != nil {
  31746. cr.sendContainerState(containerMapValue)
  31747. }
  31748. mv = int8(dd.DecodeInt(8))
  31749. if v != nil {
  31750. v[mk] = mv
  31751. }
  31752. }
  31753. }
  31754. if cr != nil {
  31755. cr.sendContainerState(containerMapEnd)
  31756. }
  31757. return v, changed
  31758. }
  31759. func (f *decFnInfo) fastpathDecMapInt8Int16R(rv reflect.Value) {
  31760. if rv.CanAddr() {
  31761. vp := rv.Addr().Interface().(*map[int8]int16)
  31762. v, changed := fastpathTV.DecMapInt8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  31763. if changed {
  31764. *vp = v
  31765. }
  31766. } else {
  31767. v := rv.Interface().(map[int8]int16)
  31768. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, f.d)
  31769. }
  31770. }
  31771. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, checkNil bool, d *Decoder) {
  31772. v, changed := f.DecMapInt8Int16V(*vp, checkNil, true, d)
  31773. if changed {
  31774. *vp = v
  31775. }
  31776. }
  31777. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, checkNil bool, canChange bool,
  31778. d *Decoder) (_ map[int8]int16, changed bool) {
  31779. dd := d.d
  31780. cr := d.cr
  31781. if checkNil && dd.TryDecodeAsNil() {
  31782. if v != nil {
  31783. changed = true
  31784. }
  31785. return nil, changed
  31786. }
  31787. containerLen := dd.ReadMapStart()
  31788. if canChange && v == nil {
  31789. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31790. v = make(map[int8]int16, xlen)
  31791. changed = true
  31792. }
  31793. var mk int8
  31794. var mv int16
  31795. if containerLen > 0 {
  31796. for j := 0; j < containerLen; j++ {
  31797. if cr != nil {
  31798. cr.sendContainerState(containerMapKey)
  31799. }
  31800. mk = int8(dd.DecodeInt(8))
  31801. if cr != nil {
  31802. cr.sendContainerState(containerMapValue)
  31803. }
  31804. mv = int16(dd.DecodeInt(16))
  31805. if v != nil {
  31806. v[mk] = mv
  31807. }
  31808. }
  31809. } else if containerLen < 0 {
  31810. for j := 0; !dd.CheckBreak(); j++ {
  31811. if cr != nil {
  31812. cr.sendContainerState(containerMapKey)
  31813. }
  31814. mk = int8(dd.DecodeInt(8))
  31815. if cr != nil {
  31816. cr.sendContainerState(containerMapValue)
  31817. }
  31818. mv = int16(dd.DecodeInt(16))
  31819. if v != nil {
  31820. v[mk] = mv
  31821. }
  31822. }
  31823. }
  31824. if cr != nil {
  31825. cr.sendContainerState(containerMapEnd)
  31826. }
  31827. return v, changed
  31828. }
  31829. func (f *decFnInfo) fastpathDecMapInt8Int32R(rv reflect.Value) {
  31830. if rv.CanAddr() {
  31831. vp := rv.Addr().Interface().(*map[int8]int32)
  31832. v, changed := fastpathTV.DecMapInt8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  31833. if changed {
  31834. *vp = v
  31835. }
  31836. } else {
  31837. v := rv.Interface().(map[int8]int32)
  31838. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, f.d)
  31839. }
  31840. }
  31841. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, checkNil bool, d *Decoder) {
  31842. v, changed := f.DecMapInt8Int32V(*vp, checkNil, true, d)
  31843. if changed {
  31844. *vp = v
  31845. }
  31846. }
  31847. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, checkNil bool, canChange bool,
  31848. d *Decoder) (_ map[int8]int32, changed bool) {
  31849. dd := d.d
  31850. cr := d.cr
  31851. if checkNil && dd.TryDecodeAsNil() {
  31852. if v != nil {
  31853. changed = true
  31854. }
  31855. return nil, changed
  31856. }
  31857. containerLen := dd.ReadMapStart()
  31858. if canChange && v == nil {
  31859. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31860. v = make(map[int8]int32, xlen)
  31861. changed = true
  31862. }
  31863. var mk int8
  31864. var mv int32
  31865. if containerLen > 0 {
  31866. for j := 0; j < containerLen; j++ {
  31867. if cr != nil {
  31868. cr.sendContainerState(containerMapKey)
  31869. }
  31870. mk = int8(dd.DecodeInt(8))
  31871. if cr != nil {
  31872. cr.sendContainerState(containerMapValue)
  31873. }
  31874. mv = int32(dd.DecodeInt(32))
  31875. if v != nil {
  31876. v[mk] = mv
  31877. }
  31878. }
  31879. } else if containerLen < 0 {
  31880. for j := 0; !dd.CheckBreak(); j++ {
  31881. if cr != nil {
  31882. cr.sendContainerState(containerMapKey)
  31883. }
  31884. mk = int8(dd.DecodeInt(8))
  31885. if cr != nil {
  31886. cr.sendContainerState(containerMapValue)
  31887. }
  31888. mv = int32(dd.DecodeInt(32))
  31889. if v != nil {
  31890. v[mk] = mv
  31891. }
  31892. }
  31893. }
  31894. if cr != nil {
  31895. cr.sendContainerState(containerMapEnd)
  31896. }
  31897. return v, changed
  31898. }
  31899. func (f *decFnInfo) fastpathDecMapInt8Int64R(rv reflect.Value) {
  31900. if rv.CanAddr() {
  31901. vp := rv.Addr().Interface().(*map[int8]int64)
  31902. v, changed := fastpathTV.DecMapInt8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  31903. if changed {
  31904. *vp = v
  31905. }
  31906. } else {
  31907. v := rv.Interface().(map[int8]int64)
  31908. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, f.d)
  31909. }
  31910. }
  31911. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, checkNil bool, d *Decoder) {
  31912. v, changed := f.DecMapInt8Int64V(*vp, checkNil, true, d)
  31913. if changed {
  31914. *vp = v
  31915. }
  31916. }
  31917. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, checkNil bool, canChange bool,
  31918. d *Decoder) (_ map[int8]int64, changed bool) {
  31919. dd := d.d
  31920. cr := d.cr
  31921. if checkNil && dd.TryDecodeAsNil() {
  31922. if v != nil {
  31923. changed = true
  31924. }
  31925. return nil, changed
  31926. }
  31927. containerLen := dd.ReadMapStart()
  31928. if canChange && v == nil {
  31929. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31930. v = make(map[int8]int64, xlen)
  31931. changed = true
  31932. }
  31933. var mk int8
  31934. var mv int64
  31935. if containerLen > 0 {
  31936. for j := 0; j < containerLen; j++ {
  31937. if cr != nil {
  31938. cr.sendContainerState(containerMapKey)
  31939. }
  31940. mk = int8(dd.DecodeInt(8))
  31941. if cr != nil {
  31942. cr.sendContainerState(containerMapValue)
  31943. }
  31944. mv = dd.DecodeInt(64)
  31945. if v != nil {
  31946. v[mk] = mv
  31947. }
  31948. }
  31949. } else if containerLen < 0 {
  31950. for j := 0; !dd.CheckBreak(); j++ {
  31951. if cr != nil {
  31952. cr.sendContainerState(containerMapKey)
  31953. }
  31954. mk = int8(dd.DecodeInt(8))
  31955. if cr != nil {
  31956. cr.sendContainerState(containerMapValue)
  31957. }
  31958. mv = dd.DecodeInt(64)
  31959. if v != nil {
  31960. v[mk] = mv
  31961. }
  31962. }
  31963. }
  31964. if cr != nil {
  31965. cr.sendContainerState(containerMapEnd)
  31966. }
  31967. return v, changed
  31968. }
  31969. func (f *decFnInfo) fastpathDecMapInt8Float32R(rv reflect.Value) {
  31970. if rv.CanAddr() {
  31971. vp := rv.Addr().Interface().(*map[int8]float32)
  31972. v, changed := fastpathTV.DecMapInt8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  31973. if changed {
  31974. *vp = v
  31975. }
  31976. } else {
  31977. v := rv.Interface().(map[int8]float32)
  31978. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, f.d)
  31979. }
  31980. }
  31981. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, checkNil bool, d *Decoder) {
  31982. v, changed := f.DecMapInt8Float32V(*vp, checkNil, true, d)
  31983. if changed {
  31984. *vp = v
  31985. }
  31986. }
  31987. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, checkNil bool, canChange bool,
  31988. d *Decoder) (_ map[int8]float32, changed bool) {
  31989. dd := d.d
  31990. cr := d.cr
  31991. if checkNil && dd.TryDecodeAsNil() {
  31992. if v != nil {
  31993. changed = true
  31994. }
  31995. return nil, changed
  31996. }
  31997. containerLen := dd.ReadMapStart()
  31998. if canChange && v == nil {
  31999. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32000. v = make(map[int8]float32, xlen)
  32001. changed = true
  32002. }
  32003. var mk int8
  32004. var mv float32
  32005. if containerLen > 0 {
  32006. for j := 0; j < containerLen; j++ {
  32007. if cr != nil {
  32008. cr.sendContainerState(containerMapKey)
  32009. }
  32010. mk = int8(dd.DecodeInt(8))
  32011. if cr != nil {
  32012. cr.sendContainerState(containerMapValue)
  32013. }
  32014. mv = float32(dd.DecodeFloat(true))
  32015. if v != nil {
  32016. v[mk] = mv
  32017. }
  32018. }
  32019. } else if containerLen < 0 {
  32020. for j := 0; !dd.CheckBreak(); j++ {
  32021. if cr != nil {
  32022. cr.sendContainerState(containerMapKey)
  32023. }
  32024. mk = int8(dd.DecodeInt(8))
  32025. if cr != nil {
  32026. cr.sendContainerState(containerMapValue)
  32027. }
  32028. mv = float32(dd.DecodeFloat(true))
  32029. if v != nil {
  32030. v[mk] = mv
  32031. }
  32032. }
  32033. }
  32034. if cr != nil {
  32035. cr.sendContainerState(containerMapEnd)
  32036. }
  32037. return v, changed
  32038. }
  32039. func (f *decFnInfo) fastpathDecMapInt8Float64R(rv reflect.Value) {
  32040. if rv.CanAddr() {
  32041. vp := rv.Addr().Interface().(*map[int8]float64)
  32042. v, changed := fastpathTV.DecMapInt8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  32043. if changed {
  32044. *vp = v
  32045. }
  32046. } else {
  32047. v := rv.Interface().(map[int8]float64)
  32048. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, f.d)
  32049. }
  32050. }
  32051. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, checkNil bool, d *Decoder) {
  32052. v, changed := f.DecMapInt8Float64V(*vp, checkNil, true, d)
  32053. if changed {
  32054. *vp = v
  32055. }
  32056. }
  32057. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, checkNil bool, canChange bool,
  32058. d *Decoder) (_ map[int8]float64, changed bool) {
  32059. dd := d.d
  32060. cr := d.cr
  32061. if checkNil && dd.TryDecodeAsNil() {
  32062. if v != nil {
  32063. changed = true
  32064. }
  32065. return nil, changed
  32066. }
  32067. containerLen := dd.ReadMapStart()
  32068. if canChange && v == nil {
  32069. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32070. v = make(map[int8]float64, xlen)
  32071. changed = true
  32072. }
  32073. var mk int8
  32074. var mv float64
  32075. if containerLen > 0 {
  32076. for j := 0; j < containerLen; j++ {
  32077. if cr != nil {
  32078. cr.sendContainerState(containerMapKey)
  32079. }
  32080. mk = int8(dd.DecodeInt(8))
  32081. if cr != nil {
  32082. cr.sendContainerState(containerMapValue)
  32083. }
  32084. mv = dd.DecodeFloat(false)
  32085. if v != nil {
  32086. v[mk] = mv
  32087. }
  32088. }
  32089. } else if containerLen < 0 {
  32090. for j := 0; !dd.CheckBreak(); j++ {
  32091. if cr != nil {
  32092. cr.sendContainerState(containerMapKey)
  32093. }
  32094. mk = int8(dd.DecodeInt(8))
  32095. if cr != nil {
  32096. cr.sendContainerState(containerMapValue)
  32097. }
  32098. mv = dd.DecodeFloat(false)
  32099. if v != nil {
  32100. v[mk] = mv
  32101. }
  32102. }
  32103. }
  32104. if cr != nil {
  32105. cr.sendContainerState(containerMapEnd)
  32106. }
  32107. return v, changed
  32108. }
  32109. func (f *decFnInfo) fastpathDecMapInt8BoolR(rv reflect.Value) {
  32110. if rv.CanAddr() {
  32111. vp := rv.Addr().Interface().(*map[int8]bool)
  32112. v, changed := fastpathTV.DecMapInt8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  32113. if changed {
  32114. *vp = v
  32115. }
  32116. } else {
  32117. v := rv.Interface().(map[int8]bool)
  32118. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, f.d)
  32119. }
  32120. }
  32121. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, checkNil bool, d *Decoder) {
  32122. v, changed := f.DecMapInt8BoolV(*vp, checkNil, true, d)
  32123. if changed {
  32124. *vp = v
  32125. }
  32126. }
  32127. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, checkNil bool, canChange bool,
  32128. d *Decoder) (_ map[int8]bool, changed bool) {
  32129. dd := d.d
  32130. cr := d.cr
  32131. if checkNil && dd.TryDecodeAsNil() {
  32132. if v != nil {
  32133. changed = true
  32134. }
  32135. return nil, changed
  32136. }
  32137. containerLen := dd.ReadMapStart()
  32138. if canChange && v == nil {
  32139. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  32140. v = make(map[int8]bool, xlen)
  32141. changed = true
  32142. }
  32143. var mk int8
  32144. var mv bool
  32145. if containerLen > 0 {
  32146. for j := 0; j < containerLen; j++ {
  32147. if cr != nil {
  32148. cr.sendContainerState(containerMapKey)
  32149. }
  32150. mk = int8(dd.DecodeInt(8))
  32151. if cr != nil {
  32152. cr.sendContainerState(containerMapValue)
  32153. }
  32154. mv = dd.DecodeBool()
  32155. if v != nil {
  32156. v[mk] = mv
  32157. }
  32158. }
  32159. } else if containerLen < 0 {
  32160. for j := 0; !dd.CheckBreak(); j++ {
  32161. if cr != nil {
  32162. cr.sendContainerState(containerMapKey)
  32163. }
  32164. mk = int8(dd.DecodeInt(8))
  32165. if cr != nil {
  32166. cr.sendContainerState(containerMapValue)
  32167. }
  32168. mv = dd.DecodeBool()
  32169. if v != nil {
  32170. v[mk] = mv
  32171. }
  32172. }
  32173. }
  32174. if cr != nil {
  32175. cr.sendContainerState(containerMapEnd)
  32176. }
  32177. return v, changed
  32178. }
  32179. func (f *decFnInfo) fastpathDecMapInt16IntfR(rv reflect.Value) {
  32180. if rv.CanAddr() {
  32181. vp := rv.Addr().Interface().(*map[int16]interface{})
  32182. v, changed := fastpathTV.DecMapInt16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  32183. if changed {
  32184. *vp = v
  32185. }
  32186. } else {
  32187. v := rv.Interface().(map[int16]interface{})
  32188. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, f.d)
  32189. }
  32190. }
  32191. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, checkNil bool, d *Decoder) {
  32192. v, changed := f.DecMapInt16IntfV(*vp, checkNil, true, d)
  32193. if changed {
  32194. *vp = v
  32195. }
  32196. }
  32197. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, checkNil bool, canChange bool,
  32198. d *Decoder) (_ map[int16]interface{}, changed bool) {
  32199. dd := d.d
  32200. cr := d.cr
  32201. if checkNil && dd.TryDecodeAsNil() {
  32202. if v != nil {
  32203. changed = true
  32204. }
  32205. return nil, changed
  32206. }
  32207. containerLen := dd.ReadMapStart()
  32208. if canChange && v == nil {
  32209. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  32210. v = make(map[int16]interface{}, xlen)
  32211. changed = true
  32212. }
  32213. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  32214. var mk int16
  32215. var mv interface{}
  32216. if containerLen > 0 {
  32217. for j := 0; j < containerLen; j++ {
  32218. if cr != nil {
  32219. cr.sendContainerState(containerMapKey)
  32220. }
  32221. mk = int16(dd.DecodeInt(16))
  32222. if cr != nil {
  32223. cr.sendContainerState(containerMapValue)
  32224. }
  32225. if mapGet {
  32226. mv = v[mk]
  32227. } else {
  32228. mv = nil
  32229. }
  32230. d.decode(&mv)
  32231. if v != nil {
  32232. v[mk] = mv
  32233. }
  32234. }
  32235. } else if containerLen < 0 {
  32236. for j := 0; !dd.CheckBreak(); j++ {
  32237. if cr != nil {
  32238. cr.sendContainerState(containerMapKey)
  32239. }
  32240. mk = int16(dd.DecodeInt(16))
  32241. if cr != nil {
  32242. cr.sendContainerState(containerMapValue)
  32243. }
  32244. if mapGet {
  32245. mv = v[mk]
  32246. } else {
  32247. mv = nil
  32248. }
  32249. d.decode(&mv)
  32250. if v != nil {
  32251. v[mk] = mv
  32252. }
  32253. }
  32254. }
  32255. if cr != nil {
  32256. cr.sendContainerState(containerMapEnd)
  32257. }
  32258. return v, changed
  32259. }
  32260. func (f *decFnInfo) fastpathDecMapInt16StringR(rv reflect.Value) {
  32261. if rv.CanAddr() {
  32262. vp := rv.Addr().Interface().(*map[int16]string)
  32263. v, changed := fastpathTV.DecMapInt16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  32264. if changed {
  32265. *vp = v
  32266. }
  32267. } else {
  32268. v := rv.Interface().(map[int16]string)
  32269. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, f.d)
  32270. }
  32271. }
  32272. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, checkNil bool, d *Decoder) {
  32273. v, changed := f.DecMapInt16StringV(*vp, checkNil, true, d)
  32274. if changed {
  32275. *vp = v
  32276. }
  32277. }
  32278. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, checkNil bool, canChange bool,
  32279. d *Decoder) (_ map[int16]string, changed bool) {
  32280. dd := d.d
  32281. cr := d.cr
  32282. if checkNil && dd.TryDecodeAsNil() {
  32283. if v != nil {
  32284. changed = true
  32285. }
  32286. return nil, changed
  32287. }
  32288. containerLen := dd.ReadMapStart()
  32289. if canChange && v == nil {
  32290. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  32291. v = make(map[int16]string, xlen)
  32292. changed = true
  32293. }
  32294. var mk int16
  32295. var mv string
  32296. if containerLen > 0 {
  32297. for j := 0; j < containerLen; j++ {
  32298. if cr != nil {
  32299. cr.sendContainerState(containerMapKey)
  32300. }
  32301. mk = int16(dd.DecodeInt(16))
  32302. if cr != nil {
  32303. cr.sendContainerState(containerMapValue)
  32304. }
  32305. mv = dd.DecodeString()
  32306. if v != nil {
  32307. v[mk] = mv
  32308. }
  32309. }
  32310. } else if containerLen < 0 {
  32311. for j := 0; !dd.CheckBreak(); j++ {
  32312. if cr != nil {
  32313. cr.sendContainerState(containerMapKey)
  32314. }
  32315. mk = int16(dd.DecodeInt(16))
  32316. if cr != nil {
  32317. cr.sendContainerState(containerMapValue)
  32318. }
  32319. mv = dd.DecodeString()
  32320. if v != nil {
  32321. v[mk] = mv
  32322. }
  32323. }
  32324. }
  32325. if cr != nil {
  32326. cr.sendContainerState(containerMapEnd)
  32327. }
  32328. return v, changed
  32329. }
  32330. func (f *decFnInfo) fastpathDecMapInt16UintR(rv reflect.Value) {
  32331. if rv.CanAddr() {
  32332. vp := rv.Addr().Interface().(*map[int16]uint)
  32333. v, changed := fastpathTV.DecMapInt16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  32334. if changed {
  32335. *vp = v
  32336. }
  32337. } else {
  32338. v := rv.Interface().(map[int16]uint)
  32339. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, f.d)
  32340. }
  32341. }
  32342. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, checkNil bool, d *Decoder) {
  32343. v, changed := f.DecMapInt16UintV(*vp, checkNil, true, d)
  32344. if changed {
  32345. *vp = v
  32346. }
  32347. }
  32348. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, checkNil bool, canChange bool,
  32349. d *Decoder) (_ map[int16]uint, changed bool) {
  32350. dd := d.d
  32351. cr := d.cr
  32352. if checkNil && dd.TryDecodeAsNil() {
  32353. if v != nil {
  32354. changed = true
  32355. }
  32356. return nil, changed
  32357. }
  32358. containerLen := dd.ReadMapStart()
  32359. if canChange && v == nil {
  32360. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32361. v = make(map[int16]uint, xlen)
  32362. changed = true
  32363. }
  32364. var mk int16
  32365. var mv uint
  32366. if containerLen > 0 {
  32367. for j := 0; j < containerLen; j++ {
  32368. if cr != nil {
  32369. cr.sendContainerState(containerMapKey)
  32370. }
  32371. mk = int16(dd.DecodeInt(16))
  32372. if cr != nil {
  32373. cr.sendContainerState(containerMapValue)
  32374. }
  32375. mv = uint(dd.DecodeUint(uintBitsize))
  32376. if v != nil {
  32377. v[mk] = mv
  32378. }
  32379. }
  32380. } else if containerLen < 0 {
  32381. for j := 0; !dd.CheckBreak(); j++ {
  32382. if cr != nil {
  32383. cr.sendContainerState(containerMapKey)
  32384. }
  32385. mk = int16(dd.DecodeInt(16))
  32386. if cr != nil {
  32387. cr.sendContainerState(containerMapValue)
  32388. }
  32389. mv = uint(dd.DecodeUint(uintBitsize))
  32390. if v != nil {
  32391. v[mk] = mv
  32392. }
  32393. }
  32394. }
  32395. if cr != nil {
  32396. cr.sendContainerState(containerMapEnd)
  32397. }
  32398. return v, changed
  32399. }
  32400. func (f *decFnInfo) fastpathDecMapInt16Uint8R(rv reflect.Value) {
  32401. if rv.CanAddr() {
  32402. vp := rv.Addr().Interface().(*map[int16]uint8)
  32403. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  32404. if changed {
  32405. *vp = v
  32406. }
  32407. } else {
  32408. v := rv.Interface().(map[int16]uint8)
  32409. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  32410. }
  32411. }
  32412. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, checkNil bool, d *Decoder) {
  32413. v, changed := f.DecMapInt16Uint8V(*vp, checkNil, true, d)
  32414. if changed {
  32415. *vp = v
  32416. }
  32417. }
  32418. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, checkNil bool, canChange bool,
  32419. d *Decoder) (_ map[int16]uint8, changed bool) {
  32420. dd := d.d
  32421. cr := d.cr
  32422. if checkNil && dd.TryDecodeAsNil() {
  32423. if v != nil {
  32424. changed = true
  32425. }
  32426. return nil, changed
  32427. }
  32428. containerLen := dd.ReadMapStart()
  32429. if canChange && v == nil {
  32430. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  32431. v = make(map[int16]uint8, xlen)
  32432. changed = true
  32433. }
  32434. var mk int16
  32435. var mv uint8
  32436. if containerLen > 0 {
  32437. for j := 0; j < containerLen; j++ {
  32438. if cr != nil {
  32439. cr.sendContainerState(containerMapKey)
  32440. }
  32441. mk = int16(dd.DecodeInt(16))
  32442. if cr != nil {
  32443. cr.sendContainerState(containerMapValue)
  32444. }
  32445. mv = uint8(dd.DecodeUint(8))
  32446. if v != nil {
  32447. v[mk] = mv
  32448. }
  32449. }
  32450. } else if containerLen < 0 {
  32451. for j := 0; !dd.CheckBreak(); j++ {
  32452. if cr != nil {
  32453. cr.sendContainerState(containerMapKey)
  32454. }
  32455. mk = int16(dd.DecodeInt(16))
  32456. if cr != nil {
  32457. cr.sendContainerState(containerMapValue)
  32458. }
  32459. mv = uint8(dd.DecodeUint(8))
  32460. if v != nil {
  32461. v[mk] = mv
  32462. }
  32463. }
  32464. }
  32465. if cr != nil {
  32466. cr.sendContainerState(containerMapEnd)
  32467. }
  32468. return v, changed
  32469. }
  32470. func (f *decFnInfo) fastpathDecMapInt16Uint16R(rv reflect.Value) {
  32471. if rv.CanAddr() {
  32472. vp := rv.Addr().Interface().(*map[int16]uint16)
  32473. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  32474. if changed {
  32475. *vp = v
  32476. }
  32477. } else {
  32478. v := rv.Interface().(map[int16]uint16)
  32479. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  32480. }
  32481. }
  32482. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, checkNil bool, d *Decoder) {
  32483. v, changed := f.DecMapInt16Uint16V(*vp, checkNil, true, d)
  32484. if changed {
  32485. *vp = v
  32486. }
  32487. }
  32488. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, checkNil bool, canChange bool,
  32489. d *Decoder) (_ map[int16]uint16, changed bool) {
  32490. dd := d.d
  32491. cr := d.cr
  32492. if checkNil && dd.TryDecodeAsNil() {
  32493. if v != nil {
  32494. changed = true
  32495. }
  32496. return nil, changed
  32497. }
  32498. containerLen := dd.ReadMapStart()
  32499. if canChange && v == nil {
  32500. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  32501. v = make(map[int16]uint16, xlen)
  32502. changed = true
  32503. }
  32504. var mk int16
  32505. var mv uint16
  32506. if containerLen > 0 {
  32507. for j := 0; j < containerLen; j++ {
  32508. if cr != nil {
  32509. cr.sendContainerState(containerMapKey)
  32510. }
  32511. mk = int16(dd.DecodeInt(16))
  32512. if cr != nil {
  32513. cr.sendContainerState(containerMapValue)
  32514. }
  32515. mv = uint16(dd.DecodeUint(16))
  32516. if v != nil {
  32517. v[mk] = mv
  32518. }
  32519. }
  32520. } else if containerLen < 0 {
  32521. for j := 0; !dd.CheckBreak(); j++ {
  32522. if cr != nil {
  32523. cr.sendContainerState(containerMapKey)
  32524. }
  32525. mk = int16(dd.DecodeInt(16))
  32526. if cr != nil {
  32527. cr.sendContainerState(containerMapValue)
  32528. }
  32529. mv = uint16(dd.DecodeUint(16))
  32530. if v != nil {
  32531. v[mk] = mv
  32532. }
  32533. }
  32534. }
  32535. if cr != nil {
  32536. cr.sendContainerState(containerMapEnd)
  32537. }
  32538. return v, changed
  32539. }
  32540. func (f *decFnInfo) fastpathDecMapInt16Uint32R(rv reflect.Value) {
  32541. if rv.CanAddr() {
  32542. vp := rv.Addr().Interface().(*map[int16]uint32)
  32543. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  32544. if changed {
  32545. *vp = v
  32546. }
  32547. } else {
  32548. v := rv.Interface().(map[int16]uint32)
  32549. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  32550. }
  32551. }
  32552. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, checkNil bool, d *Decoder) {
  32553. v, changed := f.DecMapInt16Uint32V(*vp, checkNil, true, d)
  32554. if changed {
  32555. *vp = v
  32556. }
  32557. }
  32558. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, checkNil bool, canChange bool,
  32559. d *Decoder) (_ map[int16]uint32, changed bool) {
  32560. dd := d.d
  32561. cr := d.cr
  32562. if checkNil && dd.TryDecodeAsNil() {
  32563. if v != nil {
  32564. changed = true
  32565. }
  32566. return nil, changed
  32567. }
  32568. containerLen := dd.ReadMapStart()
  32569. if canChange && v == nil {
  32570. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  32571. v = make(map[int16]uint32, xlen)
  32572. changed = true
  32573. }
  32574. var mk int16
  32575. var mv uint32
  32576. if containerLen > 0 {
  32577. for j := 0; j < containerLen; j++ {
  32578. if cr != nil {
  32579. cr.sendContainerState(containerMapKey)
  32580. }
  32581. mk = int16(dd.DecodeInt(16))
  32582. if cr != nil {
  32583. cr.sendContainerState(containerMapValue)
  32584. }
  32585. mv = uint32(dd.DecodeUint(32))
  32586. if v != nil {
  32587. v[mk] = mv
  32588. }
  32589. }
  32590. } else if containerLen < 0 {
  32591. for j := 0; !dd.CheckBreak(); j++ {
  32592. if cr != nil {
  32593. cr.sendContainerState(containerMapKey)
  32594. }
  32595. mk = int16(dd.DecodeInt(16))
  32596. if cr != nil {
  32597. cr.sendContainerState(containerMapValue)
  32598. }
  32599. mv = uint32(dd.DecodeUint(32))
  32600. if v != nil {
  32601. v[mk] = mv
  32602. }
  32603. }
  32604. }
  32605. if cr != nil {
  32606. cr.sendContainerState(containerMapEnd)
  32607. }
  32608. return v, changed
  32609. }
  32610. func (f *decFnInfo) fastpathDecMapInt16Uint64R(rv reflect.Value) {
  32611. if rv.CanAddr() {
  32612. vp := rv.Addr().Interface().(*map[int16]uint64)
  32613. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  32614. if changed {
  32615. *vp = v
  32616. }
  32617. } else {
  32618. v := rv.Interface().(map[int16]uint64)
  32619. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  32620. }
  32621. }
  32622. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, checkNil bool, d *Decoder) {
  32623. v, changed := f.DecMapInt16Uint64V(*vp, checkNil, true, d)
  32624. if changed {
  32625. *vp = v
  32626. }
  32627. }
  32628. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, checkNil bool, canChange bool,
  32629. d *Decoder) (_ map[int16]uint64, changed bool) {
  32630. dd := d.d
  32631. cr := d.cr
  32632. if checkNil && dd.TryDecodeAsNil() {
  32633. if v != nil {
  32634. changed = true
  32635. }
  32636. return nil, changed
  32637. }
  32638. containerLen := dd.ReadMapStart()
  32639. if canChange && v == nil {
  32640. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32641. v = make(map[int16]uint64, xlen)
  32642. changed = true
  32643. }
  32644. var mk int16
  32645. var mv uint64
  32646. if containerLen > 0 {
  32647. for j := 0; j < containerLen; j++ {
  32648. if cr != nil {
  32649. cr.sendContainerState(containerMapKey)
  32650. }
  32651. mk = int16(dd.DecodeInt(16))
  32652. if cr != nil {
  32653. cr.sendContainerState(containerMapValue)
  32654. }
  32655. mv = dd.DecodeUint(64)
  32656. if v != nil {
  32657. v[mk] = mv
  32658. }
  32659. }
  32660. } else if containerLen < 0 {
  32661. for j := 0; !dd.CheckBreak(); j++ {
  32662. if cr != nil {
  32663. cr.sendContainerState(containerMapKey)
  32664. }
  32665. mk = int16(dd.DecodeInt(16))
  32666. if cr != nil {
  32667. cr.sendContainerState(containerMapValue)
  32668. }
  32669. mv = dd.DecodeUint(64)
  32670. if v != nil {
  32671. v[mk] = mv
  32672. }
  32673. }
  32674. }
  32675. if cr != nil {
  32676. cr.sendContainerState(containerMapEnd)
  32677. }
  32678. return v, changed
  32679. }
  32680. func (f *decFnInfo) fastpathDecMapInt16UintptrR(rv reflect.Value) {
  32681. if rv.CanAddr() {
  32682. vp := rv.Addr().Interface().(*map[int16]uintptr)
  32683. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  32684. if changed {
  32685. *vp = v
  32686. }
  32687. } else {
  32688. v := rv.Interface().(map[int16]uintptr)
  32689. fastpathTV.DecMapInt16UintptrV(v, fastpathCheckNilFalse, false, f.d)
  32690. }
  32691. }
  32692. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, checkNil bool, d *Decoder) {
  32693. v, changed := f.DecMapInt16UintptrV(*vp, checkNil, true, d)
  32694. if changed {
  32695. *vp = v
  32696. }
  32697. }
  32698. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, checkNil bool, canChange bool,
  32699. d *Decoder) (_ map[int16]uintptr, changed bool) {
  32700. dd := d.d
  32701. cr := d.cr
  32702. if checkNil && dd.TryDecodeAsNil() {
  32703. if v != nil {
  32704. changed = true
  32705. }
  32706. return nil, changed
  32707. }
  32708. containerLen := dd.ReadMapStart()
  32709. if canChange && v == nil {
  32710. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32711. v = make(map[int16]uintptr, xlen)
  32712. changed = true
  32713. }
  32714. var mk int16
  32715. var mv uintptr
  32716. if containerLen > 0 {
  32717. for j := 0; j < containerLen; j++ {
  32718. if cr != nil {
  32719. cr.sendContainerState(containerMapKey)
  32720. }
  32721. mk = int16(dd.DecodeInt(16))
  32722. if cr != nil {
  32723. cr.sendContainerState(containerMapValue)
  32724. }
  32725. mv = uintptr(dd.DecodeUint(uintBitsize))
  32726. if v != nil {
  32727. v[mk] = mv
  32728. }
  32729. }
  32730. } else if containerLen < 0 {
  32731. for j := 0; !dd.CheckBreak(); j++ {
  32732. if cr != nil {
  32733. cr.sendContainerState(containerMapKey)
  32734. }
  32735. mk = int16(dd.DecodeInt(16))
  32736. if cr != nil {
  32737. cr.sendContainerState(containerMapValue)
  32738. }
  32739. mv = uintptr(dd.DecodeUint(uintBitsize))
  32740. if v != nil {
  32741. v[mk] = mv
  32742. }
  32743. }
  32744. }
  32745. if cr != nil {
  32746. cr.sendContainerState(containerMapEnd)
  32747. }
  32748. return v, changed
  32749. }
  32750. func (f *decFnInfo) fastpathDecMapInt16IntR(rv reflect.Value) {
  32751. if rv.CanAddr() {
  32752. vp := rv.Addr().Interface().(*map[int16]int)
  32753. v, changed := fastpathTV.DecMapInt16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  32754. if changed {
  32755. *vp = v
  32756. }
  32757. } else {
  32758. v := rv.Interface().(map[int16]int)
  32759. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, f.d)
  32760. }
  32761. }
  32762. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, checkNil bool, d *Decoder) {
  32763. v, changed := f.DecMapInt16IntV(*vp, checkNil, true, d)
  32764. if changed {
  32765. *vp = v
  32766. }
  32767. }
  32768. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, checkNil bool, canChange bool,
  32769. d *Decoder) (_ map[int16]int, changed bool) {
  32770. dd := d.d
  32771. cr := d.cr
  32772. if checkNil && dd.TryDecodeAsNil() {
  32773. if v != nil {
  32774. changed = true
  32775. }
  32776. return nil, changed
  32777. }
  32778. containerLen := dd.ReadMapStart()
  32779. if canChange && v == nil {
  32780. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32781. v = make(map[int16]int, xlen)
  32782. changed = true
  32783. }
  32784. var mk int16
  32785. var mv int
  32786. if containerLen > 0 {
  32787. for j := 0; j < containerLen; j++ {
  32788. if cr != nil {
  32789. cr.sendContainerState(containerMapKey)
  32790. }
  32791. mk = int16(dd.DecodeInt(16))
  32792. if cr != nil {
  32793. cr.sendContainerState(containerMapValue)
  32794. }
  32795. mv = int(dd.DecodeInt(intBitsize))
  32796. if v != nil {
  32797. v[mk] = mv
  32798. }
  32799. }
  32800. } else if containerLen < 0 {
  32801. for j := 0; !dd.CheckBreak(); j++ {
  32802. if cr != nil {
  32803. cr.sendContainerState(containerMapKey)
  32804. }
  32805. mk = int16(dd.DecodeInt(16))
  32806. if cr != nil {
  32807. cr.sendContainerState(containerMapValue)
  32808. }
  32809. mv = int(dd.DecodeInt(intBitsize))
  32810. if v != nil {
  32811. v[mk] = mv
  32812. }
  32813. }
  32814. }
  32815. if cr != nil {
  32816. cr.sendContainerState(containerMapEnd)
  32817. }
  32818. return v, changed
  32819. }
  32820. func (f *decFnInfo) fastpathDecMapInt16Int8R(rv reflect.Value) {
  32821. if rv.CanAddr() {
  32822. vp := rv.Addr().Interface().(*map[int16]int8)
  32823. v, changed := fastpathTV.DecMapInt16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  32824. if changed {
  32825. *vp = v
  32826. }
  32827. } else {
  32828. v := rv.Interface().(map[int16]int8)
  32829. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, f.d)
  32830. }
  32831. }
  32832. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, checkNil bool, d *Decoder) {
  32833. v, changed := f.DecMapInt16Int8V(*vp, checkNil, true, d)
  32834. if changed {
  32835. *vp = v
  32836. }
  32837. }
  32838. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, checkNil bool, canChange bool,
  32839. d *Decoder) (_ map[int16]int8, changed bool) {
  32840. dd := d.d
  32841. cr := d.cr
  32842. if checkNil && dd.TryDecodeAsNil() {
  32843. if v != nil {
  32844. changed = true
  32845. }
  32846. return nil, changed
  32847. }
  32848. containerLen := dd.ReadMapStart()
  32849. if canChange && v == nil {
  32850. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  32851. v = make(map[int16]int8, xlen)
  32852. changed = true
  32853. }
  32854. var mk int16
  32855. var mv int8
  32856. if containerLen > 0 {
  32857. for j := 0; j < containerLen; j++ {
  32858. if cr != nil {
  32859. cr.sendContainerState(containerMapKey)
  32860. }
  32861. mk = int16(dd.DecodeInt(16))
  32862. if cr != nil {
  32863. cr.sendContainerState(containerMapValue)
  32864. }
  32865. mv = int8(dd.DecodeInt(8))
  32866. if v != nil {
  32867. v[mk] = mv
  32868. }
  32869. }
  32870. } else if containerLen < 0 {
  32871. for j := 0; !dd.CheckBreak(); j++ {
  32872. if cr != nil {
  32873. cr.sendContainerState(containerMapKey)
  32874. }
  32875. mk = int16(dd.DecodeInt(16))
  32876. if cr != nil {
  32877. cr.sendContainerState(containerMapValue)
  32878. }
  32879. mv = int8(dd.DecodeInt(8))
  32880. if v != nil {
  32881. v[mk] = mv
  32882. }
  32883. }
  32884. }
  32885. if cr != nil {
  32886. cr.sendContainerState(containerMapEnd)
  32887. }
  32888. return v, changed
  32889. }
  32890. func (f *decFnInfo) fastpathDecMapInt16Int16R(rv reflect.Value) {
  32891. if rv.CanAddr() {
  32892. vp := rv.Addr().Interface().(*map[int16]int16)
  32893. v, changed := fastpathTV.DecMapInt16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  32894. if changed {
  32895. *vp = v
  32896. }
  32897. } else {
  32898. v := rv.Interface().(map[int16]int16)
  32899. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, f.d)
  32900. }
  32901. }
  32902. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, checkNil bool, d *Decoder) {
  32903. v, changed := f.DecMapInt16Int16V(*vp, checkNil, true, d)
  32904. if changed {
  32905. *vp = v
  32906. }
  32907. }
  32908. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, checkNil bool, canChange bool,
  32909. d *Decoder) (_ map[int16]int16, changed bool) {
  32910. dd := d.d
  32911. cr := d.cr
  32912. if checkNil && dd.TryDecodeAsNil() {
  32913. if v != nil {
  32914. changed = true
  32915. }
  32916. return nil, changed
  32917. }
  32918. containerLen := dd.ReadMapStart()
  32919. if canChange && v == nil {
  32920. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  32921. v = make(map[int16]int16, xlen)
  32922. changed = true
  32923. }
  32924. var mk int16
  32925. var mv int16
  32926. if containerLen > 0 {
  32927. for j := 0; j < containerLen; j++ {
  32928. if cr != nil {
  32929. cr.sendContainerState(containerMapKey)
  32930. }
  32931. mk = int16(dd.DecodeInt(16))
  32932. if cr != nil {
  32933. cr.sendContainerState(containerMapValue)
  32934. }
  32935. mv = int16(dd.DecodeInt(16))
  32936. if v != nil {
  32937. v[mk] = mv
  32938. }
  32939. }
  32940. } else if containerLen < 0 {
  32941. for j := 0; !dd.CheckBreak(); j++ {
  32942. if cr != nil {
  32943. cr.sendContainerState(containerMapKey)
  32944. }
  32945. mk = int16(dd.DecodeInt(16))
  32946. if cr != nil {
  32947. cr.sendContainerState(containerMapValue)
  32948. }
  32949. mv = int16(dd.DecodeInt(16))
  32950. if v != nil {
  32951. v[mk] = mv
  32952. }
  32953. }
  32954. }
  32955. if cr != nil {
  32956. cr.sendContainerState(containerMapEnd)
  32957. }
  32958. return v, changed
  32959. }
  32960. func (f *decFnInfo) fastpathDecMapInt16Int32R(rv reflect.Value) {
  32961. if rv.CanAddr() {
  32962. vp := rv.Addr().Interface().(*map[int16]int32)
  32963. v, changed := fastpathTV.DecMapInt16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  32964. if changed {
  32965. *vp = v
  32966. }
  32967. } else {
  32968. v := rv.Interface().(map[int16]int32)
  32969. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, f.d)
  32970. }
  32971. }
  32972. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, checkNil bool, d *Decoder) {
  32973. v, changed := f.DecMapInt16Int32V(*vp, checkNil, true, d)
  32974. if changed {
  32975. *vp = v
  32976. }
  32977. }
  32978. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, checkNil bool, canChange bool,
  32979. d *Decoder) (_ map[int16]int32, changed bool) {
  32980. dd := d.d
  32981. cr := d.cr
  32982. if checkNil && dd.TryDecodeAsNil() {
  32983. if v != nil {
  32984. changed = true
  32985. }
  32986. return nil, changed
  32987. }
  32988. containerLen := dd.ReadMapStart()
  32989. if canChange && v == nil {
  32990. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  32991. v = make(map[int16]int32, xlen)
  32992. changed = true
  32993. }
  32994. var mk int16
  32995. var mv int32
  32996. if containerLen > 0 {
  32997. for j := 0; j < containerLen; j++ {
  32998. if cr != nil {
  32999. cr.sendContainerState(containerMapKey)
  33000. }
  33001. mk = int16(dd.DecodeInt(16))
  33002. if cr != nil {
  33003. cr.sendContainerState(containerMapValue)
  33004. }
  33005. mv = int32(dd.DecodeInt(32))
  33006. if v != nil {
  33007. v[mk] = mv
  33008. }
  33009. }
  33010. } else if containerLen < 0 {
  33011. for j := 0; !dd.CheckBreak(); j++ {
  33012. if cr != nil {
  33013. cr.sendContainerState(containerMapKey)
  33014. }
  33015. mk = int16(dd.DecodeInt(16))
  33016. if cr != nil {
  33017. cr.sendContainerState(containerMapValue)
  33018. }
  33019. mv = int32(dd.DecodeInt(32))
  33020. if v != nil {
  33021. v[mk] = mv
  33022. }
  33023. }
  33024. }
  33025. if cr != nil {
  33026. cr.sendContainerState(containerMapEnd)
  33027. }
  33028. return v, changed
  33029. }
  33030. func (f *decFnInfo) fastpathDecMapInt16Int64R(rv reflect.Value) {
  33031. if rv.CanAddr() {
  33032. vp := rv.Addr().Interface().(*map[int16]int64)
  33033. v, changed := fastpathTV.DecMapInt16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  33034. if changed {
  33035. *vp = v
  33036. }
  33037. } else {
  33038. v := rv.Interface().(map[int16]int64)
  33039. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, f.d)
  33040. }
  33041. }
  33042. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, checkNil bool, d *Decoder) {
  33043. v, changed := f.DecMapInt16Int64V(*vp, checkNil, true, d)
  33044. if changed {
  33045. *vp = v
  33046. }
  33047. }
  33048. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, checkNil bool, canChange bool,
  33049. d *Decoder) (_ map[int16]int64, changed bool) {
  33050. dd := d.d
  33051. cr := d.cr
  33052. if checkNil && dd.TryDecodeAsNil() {
  33053. if v != nil {
  33054. changed = true
  33055. }
  33056. return nil, changed
  33057. }
  33058. containerLen := dd.ReadMapStart()
  33059. if canChange && v == nil {
  33060. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33061. v = make(map[int16]int64, xlen)
  33062. changed = true
  33063. }
  33064. var mk int16
  33065. var mv int64
  33066. if containerLen > 0 {
  33067. for j := 0; j < containerLen; j++ {
  33068. if cr != nil {
  33069. cr.sendContainerState(containerMapKey)
  33070. }
  33071. mk = int16(dd.DecodeInt(16))
  33072. if cr != nil {
  33073. cr.sendContainerState(containerMapValue)
  33074. }
  33075. mv = dd.DecodeInt(64)
  33076. if v != nil {
  33077. v[mk] = mv
  33078. }
  33079. }
  33080. } else if containerLen < 0 {
  33081. for j := 0; !dd.CheckBreak(); j++ {
  33082. if cr != nil {
  33083. cr.sendContainerState(containerMapKey)
  33084. }
  33085. mk = int16(dd.DecodeInt(16))
  33086. if cr != nil {
  33087. cr.sendContainerState(containerMapValue)
  33088. }
  33089. mv = dd.DecodeInt(64)
  33090. if v != nil {
  33091. v[mk] = mv
  33092. }
  33093. }
  33094. }
  33095. if cr != nil {
  33096. cr.sendContainerState(containerMapEnd)
  33097. }
  33098. return v, changed
  33099. }
  33100. func (f *decFnInfo) fastpathDecMapInt16Float32R(rv reflect.Value) {
  33101. if rv.CanAddr() {
  33102. vp := rv.Addr().Interface().(*map[int16]float32)
  33103. v, changed := fastpathTV.DecMapInt16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  33104. if changed {
  33105. *vp = v
  33106. }
  33107. } else {
  33108. v := rv.Interface().(map[int16]float32)
  33109. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, f.d)
  33110. }
  33111. }
  33112. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, checkNil bool, d *Decoder) {
  33113. v, changed := f.DecMapInt16Float32V(*vp, checkNil, true, d)
  33114. if changed {
  33115. *vp = v
  33116. }
  33117. }
  33118. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, checkNil bool, canChange bool,
  33119. d *Decoder) (_ map[int16]float32, changed bool) {
  33120. dd := d.d
  33121. cr := d.cr
  33122. if checkNil && dd.TryDecodeAsNil() {
  33123. if v != nil {
  33124. changed = true
  33125. }
  33126. return nil, changed
  33127. }
  33128. containerLen := dd.ReadMapStart()
  33129. if canChange && v == nil {
  33130. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  33131. v = make(map[int16]float32, xlen)
  33132. changed = true
  33133. }
  33134. var mk int16
  33135. var mv float32
  33136. if containerLen > 0 {
  33137. for j := 0; j < containerLen; j++ {
  33138. if cr != nil {
  33139. cr.sendContainerState(containerMapKey)
  33140. }
  33141. mk = int16(dd.DecodeInt(16))
  33142. if cr != nil {
  33143. cr.sendContainerState(containerMapValue)
  33144. }
  33145. mv = float32(dd.DecodeFloat(true))
  33146. if v != nil {
  33147. v[mk] = mv
  33148. }
  33149. }
  33150. } else if containerLen < 0 {
  33151. for j := 0; !dd.CheckBreak(); j++ {
  33152. if cr != nil {
  33153. cr.sendContainerState(containerMapKey)
  33154. }
  33155. mk = int16(dd.DecodeInt(16))
  33156. if cr != nil {
  33157. cr.sendContainerState(containerMapValue)
  33158. }
  33159. mv = float32(dd.DecodeFloat(true))
  33160. if v != nil {
  33161. v[mk] = mv
  33162. }
  33163. }
  33164. }
  33165. if cr != nil {
  33166. cr.sendContainerState(containerMapEnd)
  33167. }
  33168. return v, changed
  33169. }
  33170. func (f *decFnInfo) fastpathDecMapInt16Float64R(rv reflect.Value) {
  33171. if rv.CanAddr() {
  33172. vp := rv.Addr().Interface().(*map[int16]float64)
  33173. v, changed := fastpathTV.DecMapInt16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  33174. if changed {
  33175. *vp = v
  33176. }
  33177. } else {
  33178. v := rv.Interface().(map[int16]float64)
  33179. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, f.d)
  33180. }
  33181. }
  33182. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, checkNil bool, d *Decoder) {
  33183. v, changed := f.DecMapInt16Float64V(*vp, checkNil, true, d)
  33184. if changed {
  33185. *vp = v
  33186. }
  33187. }
  33188. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, checkNil bool, canChange bool,
  33189. d *Decoder) (_ map[int16]float64, changed bool) {
  33190. dd := d.d
  33191. cr := d.cr
  33192. if checkNil && dd.TryDecodeAsNil() {
  33193. if v != nil {
  33194. changed = true
  33195. }
  33196. return nil, changed
  33197. }
  33198. containerLen := dd.ReadMapStart()
  33199. if canChange && v == nil {
  33200. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33201. v = make(map[int16]float64, xlen)
  33202. changed = true
  33203. }
  33204. var mk int16
  33205. var mv float64
  33206. if containerLen > 0 {
  33207. for j := 0; j < containerLen; j++ {
  33208. if cr != nil {
  33209. cr.sendContainerState(containerMapKey)
  33210. }
  33211. mk = int16(dd.DecodeInt(16))
  33212. if cr != nil {
  33213. cr.sendContainerState(containerMapValue)
  33214. }
  33215. mv = dd.DecodeFloat(false)
  33216. if v != nil {
  33217. v[mk] = mv
  33218. }
  33219. }
  33220. } else if containerLen < 0 {
  33221. for j := 0; !dd.CheckBreak(); j++ {
  33222. if cr != nil {
  33223. cr.sendContainerState(containerMapKey)
  33224. }
  33225. mk = int16(dd.DecodeInt(16))
  33226. if cr != nil {
  33227. cr.sendContainerState(containerMapValue)
  33228. }
  33229. mv = dd.DecodeFloat(false)
  33230. if v != nil {
  33231. v[mk] = mv
  33232. }
  33233. }
  33234. }
  33235. if cr != nil {
  33236. cr.sendContainerState(containerMapEnd)
  33237. }
  33238. return v, changed
  33239. }
  33240. func (f *decFnInfo) fastpathDecMapInt16BoolR(rv reflect.Value) {
  33241. if rv.CanAddr() {
  33242. vp := rv.Addr().Interface().(*map[int16]bool)
  33243. v, changed := fastpathTV.DecMapInt16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  33244. if changed {
  33245. *vp = v
  33246. }
  33247. } else {
  33248. v := rv.Interface().(map[int16]bool)
  33249. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, f.d)
  33250. }
  33251. }
  33252. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, checkNil bool, d *Decoder) {
  33253. v, changed := f.DecMapInt16BoolV(*vp, checkNil, true, d)
  33254. if changed {
  33255. *vp = v
  33256. }
  33257. }
  33258. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, checkNil bool, canChange bool,
  33259. d *Decoder) (_ map[int16]bool, changed bool) {
  33260. dd := d.d
  33261. cr := d.cr
  33262. if checkNil && dd.TryDecodeAsNil() {
  33263. if v != nil {
  33264. changed = true
  33265. }
  33266. return nil, changed
  33267. }
  33268. containerLen := dd.ReadMapStart()
  33269. if canChange && v == nil {
  33270. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33271. v = make(map[int16]bool, xlen)
  33272. changed = true
  33273. }
  33274. var mk int16
  33275. var mv bool
  33276. if containerLen > 0 {
  33277. for j := 0; j < containerLen; j++ {
  33278. if cr != nil {
  33279. cr.sendContainerState(containerMapKey)
  33280. }
  33281. mk = int16(dd.DecodeInt(16))
  33282. if cr != nil {
  33283. cr.sendContainerState(containerMapValue)
  33284. }
  33285. mv = dd.DecodeBool()
  33286. if v != nil {
  33287. v[mk] = mv
  33288. }
  33289. }
  33290. } else if containerLen < 0 {
  33291. for j := 0; !dd.CheckBreak(); j++ {
  33292. if cr != nil {
  33293. cr.sendContainerState(containerMapKey)
  33294. }
  33295. mk = int16(dd.DecodeInt(16))
  33296. if cr != nil {
  33297. cr.sendContainerState(containerMapValue)
  33298. }
  33299. mv = dd.DecodeBool()
  33300. if v != nil {
  33301. v[mk] = mv
  33302. }
  33303. }
  33304. }
  33305. if cr != nil {
  33306. cr.sendContainerState(containerMapEnd)
  33307. }
  33308. return v, changed
  33309. }
  33310. func (f *decFnInfo) fastpathDecMapInt32IntfR(rv reflect.Value) {
  33311. if rv.CanAddr() {
  33312. vp := rv.Addr().Interface().(*map[int32]interface{})
  33313. v, changed := fastpathTV.DecMapInt32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  33314. if changed {
  33315. *vp = v
  33316. }
  33317. } else {
  33318. v := rv.Interface().(map[int32]interface{})
  33319. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, f.d)
  33320. }
  33321. }
  33322. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, checkNil bool, d *Decoder) {
  33323. v, changed := f.DecMapInt32IntfV(*vp, checkNil, true, d)
  33324. if changed {
  33325. *vp = v
  33326. }
  33327. }
  33328. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, checkNil bool, canChange bool,
  33329. d *Decoder) (_ map[int32]interface{}, changed bool) {
  33330. dd := d.d
  33331. cr := d.cr
  33332. if checkNil && dd.TryDecodeAsNil() {
  33333. if v != nil {
  33334. changed = true
  33335. }
  33336. return nil, changed
  33337. }
  33338. containerLen := dd.ReadMapStart()
  33339. if canChange && v == nil {
  33340. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  33341. v = make(map[int32]interface{}, xlen)
  33342. changed = true
  33343. }
  33344. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  33345. var mk int32
  33346. var mv interface{}
  33347. if containerLen > 0 {
  33348. for j := 0; j < containerLen; j++ {
  33349. if cr != nil {
  33350. cr.sendContainerState(containerMapKey)
  33351. }
  33352. mk = int32(dd.DecodeInt(32))
  33353. if cr != nil {
  33354. cr.sendContainerState(containerMapValue)
  33355. }
  33356. if mapGet {
  33357. mv = v[mk]
  33358. } else {
  33359. mv = nil
  33360. }
  33361. d.decode(&mv)
  33362. if v != nil {
  33363. v[mk] = mv
  33364. }
  33365. }
  33366. } else if containerLen < 0 {
  33367. for j := 0; !dd.CheckBreak(); j++ {
  33368. if cr != nil {
  33369. cr.sendContainerState(containerMapKey)
  33370. }
  33371. mk = int32(dd.DecodeInt(32))
  33372. if cr != nil {
  33373. cr.sendContainerState(containerMapValue)
  33374. }
  33375. if mapGet {
  33376. mv = v[mk]
  33377. } else {
  33378. mv = nil
  33379. }
  33380. d.decode(&mv)
  33381. if v != nil {
  33382. v[mk] = mv
  33383. }
  33384. }
  33385. }
  33386. if cr != nil {
  33387. cr.sendContainerState(containerMapEnd)
  33388. }
  33389. return v, changed
  33390. }
  33391. func (f *decFnInfo) fastpathDecMapInt32StringR(rv reflect.Value) {
  33392. if rv.CanAddr() {
  33393. vp := rv.Addr().Interface().(*map[int32]string)
  33394. v, changed := fastpathTV.DecMapInt32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  33395. if changed {
  33396. *vp = v
  33397. }
  33398. } else {
  33399. v := rv.Interface().(map[int32]string)
  33400. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, f.d)
  33401. }
  33402. }
  33403. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, checkNil bool, d *Decoder) {
  33404. v, changed := f.DecMapInt32StringV(*vp, checkNil, true, d)
  33405. if changed {
  33406. *vp = v
  33407. }
  33408. }
  33409. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, checkNil bool, canChange bool,
  33410. d *Decoder) (_ map[int32]string, changed bool) {
  33411. dd := d.d
  33412. cr := d.cr
  33413. if checkNil && dd.TryDecodeAsNil() {
  33414. if v != nil {
  33415. changed = true
  33416. }
  33417. return nil, changed
  33418. }
  33419. containerLen := dd.ReadMapStart()
  33420. if canChange && v == nil {
  33421. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  33422. v = make(map[int32]string, xlen)
  33423. changed = true
  33424. }
  33425. var mk int32
  33426. var mv string
  33427. if containerLen > 0 {
  33428. for j := 0; j < containerLen; j++ {
  33429. if cr != nil {
  33430. cr.sendContainerState(containerMapKey)
  33431. }
  33432. mk = int32(dd.DecodeInt(32))
  33433. if cr != nil {
  33434. cr.sendContainerState(containerMapValue)
  33435. }
  33436. mv = dd.DecodeString()
  33437. if v != nil {
  33438. v[mk] = mv
  33439. }
  33440. }
  33441. } else if containerLen < 0 {
  33442. for j := 0; !dd.CheckBreak(); j++ {
  33443. if cr != nil {
  33444. cr.sendContainerState(containerMapKey)
  33445. }
  33446. mk = int32(dd.DecodeInt(32))
  33447. if cr != nil {
  33448. cr.sendContainerState(containerMapValue)
  33449. }
  33450. mv = dd.DecodeString()
  33451. if v != nil {
  33452. v[mk] = mv
  33453. }
  33454. }
  33455. }
  33456. if cr != nil {
  33457. cr.sendContainerState(containerMapEnd)
  33458. }
  33459. return v, changed
  33460. }
  33461. func (f *decFnInfo) fastpathDecMapInt32UintR(rv reflect.Value) {
  33462. if rv.CanAddr() {
  33463. vp := rv.Addr().Interface().(*map[int32]uint)
  33464. v, changed := fastpathTV.DecMapInt32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  33465. if changed {
  33466. *vp = v
  33467. }
  33468. } else {
  33469. v := rv.Interface().(map[int32]uint)
  33470. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, f.d)
  33471. }
  33472. }
  33473. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, checkNil bool, d *Decoder) {
  33474. v, changed := f.DecMapInt32UintV(*vp, checkNil, true, d)
  33475. if changed {
  33476. *vp = v
  33477. }
  33478. }
  33479. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, checkNil bool, canChange bool,
  33480. d *Decoder) (_ map[int32]uint, changed bool) {
  33481. dd := d.d
  33482. cr := d.cr
  33483. if checkNil && dd.TryDecodeAsNil() {
  33484. if v != nil {
  33485. changed = true
  33486. }
  33487. return nil, changed
  33488. }
  33489. containerLen := dd.ReadMapStart()
  33490. if canChange && v == nil {
  33491. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33492. v = make(map[int32]uint, xlen)
  33493. changed = true
  33494. }
  33495. var mk int32
  33496. var mv uint
  33497. if containerLen > 0 {
  33498. for j := 0; j < containerLen; j++ {
  33499. if cr != nil {
  33500. cr.sendContainerState(containerMapKey)
  33501. }
  33502. mk = int32(dd.DecodeInt(32))
  33503. if cr != nil {
  33504. cr.sendContainerState(containerMapValue)
  33505. }
  33506. mv = uint(dd.DecodeUint(uintBitsize))
  33507. if v != nil {
  33508. v[mk] = mv
  33509. }
  33510. }
  33511. } else if containerLen < 0 {
  33512. for j := 0; !dd.CheckBreak(); j++ {
  33513. if cr != nil {
  33514. cr.sendContainerState(containerMapKey)
  33515. }
  33516. mk = int32(dd.DecodeInt(32))
  33517. if cr != nil {
  33518. cr.sendContainerState(containerMapValue)
  33519. }
  33520. mv = uint(dd.DecodeUint(uintBitsize))
  33521. if v != nil {
  33522. v[mk] = mv
  33523. }
  33524. }
  33525. }
  33526. if cr != nil {
  33527. cr.sendContainerState(containerMapEnd)
  33528. }
  33529. return v, changed
  33530. }
  33531. func (f *decFnInfo) fastpathDecMapInt32Uint8R(rv reflect.Value) {
  33532. if rv.CanAddr() {
  33533. vp := rv.Addr().Interface().(*map[int32]uint8)
  33534. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  33535. if changed {
  33536. *vp = v
  33537. }
  33538. } else {
  33539. v := rv.Interface().(map[int32]uint8)
  33540. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  33541. }
  33542. }
  33543. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, checkNil bool, d *Decoder) {
  33544. v, changed := f.DecMapInt32Uint8V(*vp, checkNil, true, d)
  33545. if changed {
  33546. *vp = v
  33547. }
  33548. }
  33549. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, checkNil bool, canChange bool,
  33550. d *Decoder) (_ map[int32]uint8, changed bool) {
  33551. dd := d.d
  33552. cr := d.cr
  33553. if checkNil && dd.TryDecodeAsNil() {
  33554. if v != nil {
  33555. changed = true
  33556. }
  33557. return nil, changed
  33558. }
  33559. containerLen := dd.ReadMapStart()
  33560. if canChange && v == nil {
  33561. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33562. v = make(map[int32]uint8, xlen)
  33563. changed = true
  33564. }
  33565. var mk int32
  33566. var mv uint8
  33567. if containerLen > 0 {
  33568. for j := 0; j < containerLen; j++ {
  33569. if cr != nil {
  33570. cr.sendContainerState(containerMapKey)
  33571. }
  33572. mk = int32(dd.DecodeInt(32))
  33573. if cr != nil {
  33574. cr.sendContainerState(containerMapValue)
  33575. }
  33576. mv = uint8(dd.DecodeUint(8))
  33577. if v != nil {
  33578. v[mk] = mv
  33579. }
  33580. }
  33581. } else if containerLen < 0 {
  33582. for j := 0; !dd.CheckBreak(); j++ {
  33583. if cr != nil {
  33584. cr.sendContainerState(containerMapKey)
  33585. }
  33586. mk = int32(dd.DecodeInt(32))
  33587. if cr != nil {
  33588. cr.sendContainerState(containerMapValue)
  33589. }
  33590. mv = uint8(dd.DecodeUint(8))
  33591. if v != nil {
  33592. v[mk] = mv
  33593. }
  33594. }
  33595. }
  33596. if cr != nil {
  33597. cr.sendContainerState(containerMapEnd)
  33598. }
  33599. return v, changed
  33600. }
  33601. func (f *decFnInfo) fastpathDecMapInt32Uint16R(rv reflect.Value) {
  33602. if rv.CanAddr() {
  33603. vp := rv.Addr().Interface().(*map[int32]uint16)
  33604. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  33605. if changed {
  33606. *vp = v
  33607. }
  33608. } else {
  33609. v := rv.Interface().(map[int32]uint16)
  33610. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  33611. }
  33612. }
  33613. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, checkNil bool, d *Decoder) {
  33614. v, changed := f.DecMapInt32Uint16V(*vp, checkNil, true, d)
  33615. if changed {
  33616. *vp = v
  33617. }
  33618. }
  33619. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, checkNil bool, canChange bool,
  33620. d *Decoder) (_ map[int32]uint16, changed bool) {
  33621. dd := d.d
  33622. cr := d.cr
  33623. if checkNil && dd.TryDecodeAsNil() {
  33624. if v != nil {
  33625. changed = true
  33626. }
  33627. return nil, changed
  33628. }
  33629. containerLen := dd.ReadMapStart()
  33630. if canChange && v == nil {
  33631. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  33632. v = make(map[int32]uint16, xlen)
  33633. changed = true
  33634. }
  33635. var mk int32
  33636. var mv uint16
  33637. if containerLen > 0 {
  33638. for j := 0; j < containerLen; j++ {
  33639. if cr != nil {
  33640. cr.sendContainerState(containerMapKey)
  33641. }
  33642. mk = int32(dd.DecodeInt(32))
  33643. if cr != nil {
  33644. cr.sendContainerState(containerMapValue)
  33645. }
  33646. mv = uint16(dd.DecodeUint(16))
  33647. if v != nil {
  33648. v[mk] = mv
  33649. }
  33650. }
  33651. } else if containerLen < 0 {
  33652. for j := 0; !dd.CheckBreak(); j++ {
  33653. if cr != nil {
  33654. cr.sendContainerState(containerMapKey)
  33655. }
  33656. mk = int32(dd.DecodeInt(32))
  33657. if cr != nil {
  33658. cr.sendContainerState(containerMapValue)
  33659. }
  33660. mv = uint16(dd.DecodeUint(16))
  33661. if v != nil {
  33662. v[mk] = mv
  33663. }
  33664. }
  33665. }
  33666. if cr != nil {
  33667. cr.sendContainerState(containerMapEnd)
  33668. }
  33669. return v, changed
  33670. }
  33671. func (f *decFnInfo) fastpathDecMapInt32Uint32R(rv reflect.Value) {
  33672. if rv.CanAddr() {
  33673. vp := rv.Addr().Interface().(*map[int32]uint32)
  33674. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  33675. if changed {
  33676. *vp = v
  33677. }
  33678. } else {
  33679. v := rv.Interface().(map[int32]uint32)
  33680. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  33681. }
  33682. }
  33683. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, checkNil bool, d *Decoder) {
  33684. v, changed := f.DecMapInt32Uint32V(*vp, checkNil, true, d)
  33685. if changed {
  33686. *vp = v
  33687. }
  33688. }
  33689. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, checkNil bool, canChange bool,
  33690. d *Decoder) (_ map[int32]uint32, changed bool) {
  33691. dd := d.d
  33692. cr := d.cr
  33693. if checkNil && dd.TryDecodeAsNil() {
  33694. if v != nil {
  33695. changed = true
  33696. }
  33697. return nil, changed
  33698. }
  33699. containerLen := dd.ReadMapStart()
  33700. if canChange && v == nil {
  33701. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  33702. v = make(map[int32]uint32, xlen)
  33703. changed = true
  33704. }
  33705. var mk int32
  33706. var mv uint32
  33707. if containerLen > 0 {
  33708. for j := 0; j < containerLen; j++ {
  33709. if cr != nil {
  33710. cr.sendContainerState(containerMapKey)
  33711. }
  33712. mk = int32(dd.DecodeInt(32))
  33713. if cr != nil {
  33714. cr.sendContainerState(containerMapValue)
  33715. }
  33716. mv = uint32(dd.DecodeUint(32))
  33717. if v != nil {
  33718. v[mk] = mv
  33719. }
  33720. }
  33721. } else if containerLen < 0 {
  33722. for j := 0; !dd.CheckBreak(); j++ {
  33723. if cr != nil {
  33724. cr.sendContainerState(containerMapKey)
  33725. }
  33726. mk = int32(dd.DecodeInt(32))
  33727. if cr != nil {
  33728. cr.sendContainerState(containerMapValue)
  33729. }
  33730. mv = uint32(dd.DecodeUint(32))
  33731. if v != nil {
  33732. v[mk] = mv
  33733. }
  33734. }
  33735. }
  33736. if cr != nil {
  33737. cr.sendContainerState(containerMapEnd)
  33738. }
  33739. return v, changed
  33740. }
  33741. func (f *decFnInfo) fastpathDecMapInt32Uint64R(rv reflect.Value) {
  33742. if rv.CanAddr() {
  33743. vp := rv.Addr().Interface().(*map[int32]uint64)
  33744. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  33745. if changed {
  33746. *vp = v
  33747. }
  33748. } else {
  33749. v := rv.Interface().(map[int32]uint64)
  33750. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  33751. }
  33752. }
  33753. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, checkNil bool, d *Decoder) {
  33754. v, changed := f.DecMapInt32Uint64V(*vp, checkNil, true, d)
  33755. if changed {
  33756. *vp = v
  33757. }
  33758. }
  33759. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, checkNil bool, canChange bool,
  33760. d *Decoder) (_ map[int32]uint64, changed bool) {
  33761. dd := d.d
  33762. cr := d.cr
  33763. if checkNil && dd.TryDecodeAsNil() {
  33764. if v != nil {
  33765. changed = true
  33766. }
  33767. return nil, changed
  33768. }
  33769. containerLen := dd.ReadMapStart()
  33770. if canChange && v == nil {
  33771. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33772. v = make(map[int32]uint64, xlen)
  33773. changed = true
  33774. }
  33775. var mk int32
  33776. var mv uint64
  33777. if containerLen > 0 {
  33778. for j := 0; j < containerLen; j++ {
  33779. if cr != nil {
  33780. cr.sendContainerState(containerMapKey)
  33781. }
  33782. mk = int32(dd.DecodeInt(32))
  33783. if cr != nil {
  33784. cr.sendContainerState(containerMapValue)
  33785. }
  33786. mv = dd.DecodeUint(64)
  33787. if v != nil {
  33788. v[mk] = mv
  33789. }
  33790. }
  33791. } else if containerLen < 0 {
  33792. for j := 0; !dd.CheckBreak(); j++ {
  33793. if cr != nil {
  33794. cr.sendContainerState(containerMapKey)
  33795. }
  33796. mk = int32(dd.DecodeInt(32))
  33797. if cr != nil {
  33798. cr.sendContainerState(containerMapValue)
  33799. }
  33800. mv = dd.DecodeUint(64)
  33801. if v != nil {
  33802. v[mk] = mv
  33803. }
  33804. }
  33805. }
  33806. if cr != nil {
  33807. cr.sendContainerState(containerMapEnd)
  33808. }
  33809. return v, changed
  33810. }
  33811. func (f *decFnInfo) fastpathDecMapInt32UintptrR(rv reflect.Value) {
  33812. if rv.CanAddr() {
  33813. vp := rv.Addr().Interface().(*map[int32]uintptr)
  33814. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  33815. if changed {
  33816. *vp = v
  33817. }
  33818. } else {
  33819. v := rv.Interface().(map[int32]uintptr)
  33820. fastpathTV.DecMapInt32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  33821. }
  33822. }
  33823. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, checkNil bool, d *Decoder) {
  33824. v, changed := f.DecMapInt32UintptrV(*vp, checkNil, true, d)
  33825. if changed {
  33826. *vp = v
  33827. }
  33828. }
  33829. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, checkNil bool, canChange bool,
  33830. d *Decoder) (_ map[int32]uintptr, changed bool) {
  33831. dd := d.d
  33832. cr := d.cr
  33833. if checkNil && dd.TryDecodeAsNil() {
  33834. if v != nil {
  33835. changed = true
  33836. }
  33837. return nil, changed
  33838. }
  33839. containerLen := dd.ReadMapStart()
  33840. if canChange && v == nil {
  33841. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33842. v = make(map[int32]uintptr, xlen)
  33843. changed = true
  33844. }
  33845. var mk int32
  33846. var mv uintptr
  33847. if containerLen > 0 {
  33848. for j := 0; j < containerLen; j++ {
  33849. if cr != nil {
  33850. cr.sendContainerState(containerMapKey)
  33851. }
  33852. mk = int32(dd.DecodeInt(32))
  33853. if cr != nil {
  33854. cr.sendContainerState(containerMapValue)
  33855. }
  33856. mv = uintptr(dd.DecodeUint(uintBitsize))
  33857. if v != nil {
  33858. v[mk] = mv
  33859. }
  33860. }
  33861. } else if containerLen < 0 {
  33862. for j := 0; !dd.CheckBreak(); j++ {
  33863. if cr != nil {
  33864. cr.sendContainerState(containerMapKey)
  33865. }
  33866. mk = int32(dd.DecodeInt(32))
  33867. if cr != nil {
  33868. cr.sendContainerState(containerMapValue)
  33869. }
  33870. mv = uintptr(dd.DecodeUint(uintBitsize))
  33871. if v != nil {
  33872. v[mk] = mv
  33873. }
  33874. }
  33875. }
  33876. if cr != nil {
  33877. cr.sendContainerState(containerMapEnd)
  33878. }
  33879. return v, changed
  33880. }
  33881. func (f *decFnInfo) fastpathDecMapInt32IntR(rv reflect.Value) {
  33882. if rv.CanAddr() {
  33883. vp := rv.Addr().Interface().(*map[int32]int)
  33884. v, changed := fastpathTV.DecMapInt32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  33885. if changed {
  33886. *vp = v
  33887. }
  33888. } else {
  33889. v := rv.Interface().(map[int32]int)
  33890. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, f.d)
  33891. }
  33892. }
  33893. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, checkNil bool, d *Decoder) {
  33894. v, changed := f.DecMapInt32IntV(*vp, checkNil, true, d)
  33895. if changed {
  33896. *vp = v
  33897. }
  33898. }
  33899. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, checkNil bool, canChange bool,
  33900. d *Decoder) (_ map[int32]int, changed bool) {
  33901. dd := d.d
  33902. cr := d.cr
  33903. if checkNil && dd.TryDecodeAsNil() {
  33904. if v != nil {
  33905. changed = true
  33906. }
  33907. return nil, changed
  33908. }
  33909. containerLen := dd.ReadMapStart()
  33910. if canChange && v == nil {
  33911. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33912. v = make(map[int32]int, xlen)
  33913. changed = true
  33914. }
  33915. var mk int32
  33916. var mv int
  33917. if containerLen > 0 {
  33918. for j := 0; j < containerLen; j++ {
  33919. if cr != nil {
  33920. cr.sendContainerState(containerMapKey)
  33921. }
  33922. mk = int32(dd.DecodeInt(32))
  33923. if cr != nil {
  33924. cr.sendContainerState(containerMapValue)
  33925. }
  33926. mv = int(dd.DecodeInt(intBitsize))
  33927. if v != nil {
  33928. v[mk] = mv
  33929. }
  33930. }
  33931. } else if containerLen < 0 {
  33932. for j := 0; !dd.CheckBreak(); j++ {
  33933. if cr != nil {
  33934. cr.sendContainerState(containerMapKey)
  33935. }
  33936. mk = int32(dd.DecodeInt(32))
  33937. if cr != nil {
  33938. cr.sendContainerState(containerMapValue)
  33939. }
  33940. mv = int(dd.DecodeInt(intBitsize))
  33941. if v != nil {
  33942. v[mk] = mv
  33943. }
  33944. }
  33945. }
  33946. if cr != nil {
  33947. cr.sendContainerState(containerMapEnd)
  33948. }
  33949. return v, changed
  33950. }
  33951. func (f *decFnInfo) fastpathDecMapInt32Int8R(rv reflect.Value) {
  33952. if rv.CanAddr() {
  33953. vp := rv.Addr().Interface().(*map[int32]int8)
  33954. v, changed := fastpathTV.DecMapInt32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  33955. if changed {
  33956. *vp = v
  33957. }
  33958. } else {
  33959. v := rv.Interface().(map[int32]int8)
  33960. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, f.d)
  33961. }
  33962. }
  33963. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, checkNil bool, d *Decoder) {
  33964. v, changed := f.DecMapInt32Int8V(*vp, checkNil, true, d)
  33965. if changed {
  33966. *vp = v
  33967. }
  33968. }
  33969. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, checkNil bool, canChange bool,
  33970. d *Decoder) (_ map[int32]int8, changed bool) {
  33971. dd := d.d
  33972. cr := d.cr
  33973. if checkNil && dd.TryDecodeAsNil() {
  33974. if v != nil {
  33975. changed = true
  33976. }
  33977. return nil, changed
  33978. }
  33979. containerLen := dd.ReadMapStart()
  33980. if canChange && v == nil {
  33981. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33982. v = make(map[int32]int8, xlen)
  33983. changed = true
  33984. }
  33985. var mk int32
  33986. var mv int8
  33987. if containerLen > 0 {
  33988. for j := 0; j < containerLen; j++ {
  33989. if cr != nil {
  33990. cr.sendContainerState(containerMapKey)
  33991. }
  33992. mk = int32(dd.DecodeInt(32))
  33993. if cr != nil {
  33994. cr.sendContainerState(containerMapValue)
  33995. }
  33996. mv = int8(dd.DecodeInt(8))
  33997. if v != nil {
  33998. v[mk] = mv
  33999. }
  34000. }
  34001. } else if containerLen < 0 {
  34002. for j := 0; !dd.CheckBreak(); j++ {
  34003. if cr != nil {
  34004. cr.sendContainerState(containerMapKey)
  34005. }
  34006. mk = int32(dd.DecodeInt(32))
  34007. if cr != nil {
  34008. cr.sendContainerState(containerMapValue)
  34009. }
  34010. mv = int8(dd.DecodeInt(8))
  34011. if v != nil {
  34012. v[mk] = mv
  34013. }
  34014. }
  34015. }
  34016. if cr != nil {
  34017. cr.sendContainerState(containerMapEnd)
  34018. }
  34019. return v, changed
  34020. }
  34021. func (f *decFnInfo) fastpathDecMapInt32Int16R(rv reflect.Value) {
  34022. if rv.CanAddr() {
  34023. vp := rv.Addr().Interface().(*map[int32]int16)
  34024. v, changed := fastpathTV.DecMapInt32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  34025. if changed {
  34026. *vp = v
  34027. }
  34028. } else {
  34029. v := rv.Interface().(map[int32]int16)
  34030. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, f.d)
  34031. }
  34032. }
  34033. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, checkNil bool, d *Decoder) {
  34034. v, changed := f.DecMapInt32Int16V(*vp, checkNil, true, d)
  34035. if changed {
  34036. *vp = v
  34037. }
  34038. }
  34039. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, checkNil bool, canChange bool,
  34040. d *Decoder) (_ map[int32]int16, changed bool) {
  34041. dd := d.d
  34042. cr := d.cr
  34043. if checkNil && dd.TryDecodeAsNil() {
  34044. if v != nil {
  34045. changed = true
  34046. }
  34047. return nil, changed
  34048. }
  34049. containerLen := dd.ReadMapStart()
  34050. if canChange && v == nil {
  34051. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  34052. v = make(map[int32]int16, xlen)
  34053. changed = true
  34054. }
  34055. var mk int32
  34056. var mv int16
  34057. if containerLen > 0 {
  34058. for j := 0; j < containerLen; j++ {
  34059. if cr != nil {
  34060. cr.sendContainerState(containerMapKey)
  34061. }
  34062. mk = int32(dd.DecodeInt(32))
  34063. if cr != nil {
  34064. cr.sendContainerState(containerMapValue)
  34065. }
  34066. mv = int16(dd.DecodeInt(16))
  34067. if v != nil {
  34068. v[mk] = mv
  34069. }
  34070. }
  34071. } else if containerLen < 0 {
  34072. for j := 0; !dd.CheckBreak(); j++ {
  34073. if cr != nil {
  34074. cr.sendContainerState(containerMapKey)
  34075. }
  34076. mk = int32(dd.DecodeInt(32))
  34077. if cr != nil {
  34078. cr.sendContainerState(containerMapValue)
  34079. }
  34080. mv = int16(dd.DecodeInt(16))
  34081. if v != nil {
  34082. v[mk] = mv
  34083. }
  34084. }
  34085. }
  34086. if cr != nil {
  34087. cr.sendContainerState(containerMapEnd)
  34088. }
  34089. return v, changed
  34090. }
  34091. func (f *decFnInfo) fastpathDecMapInt32Int32R(rv reflect.Value) {
  34092. if rv.CanAddr() {
  34093. vp := rv.Addr().Interface().(*map[int32]int32)
  34094. v, changed := fastpathTV.DecMapInt32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  34095. if changed {
  34096. *vp = v
  34097. }
  34098. } else {
  34099. v := rv.Interface().(map[int32]int32)
  34100. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, f.d)
  34101. }
  34102. }
  34103. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, checkNil bool, d *Decoder) {
  34104. v, changed := f.DecMapInt32Int32V(*vp, checkNil, true, d)
  34105. if changed {
  34106. *vp = v
  34107. }
  34108. }
  34109. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, checkNil bool, canChange bool,
  34110. d *Decoder) (_ map[int32]int32, changed bool) {
  34111. dd := d.d
  34112. cr := d.cr
  34113. if checkNil && dd.TryDecodeAsNil() {
  34114. if v != nil {
  34115. changed = true
  34116. }
  34117. return nil, changed
  34118. }
  34119. containerLen := dd.ReadMapStart()
  34120. if canChange && v == nil {
  34121. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  34122. v = make(map[int32]int32, xlen)
  34123. changed = true
  34124. }
  34125. var mk int32
  34126. var mv int32
  34127. if containerLen > 0 {
  34128. for j := 0; j < containerLen; j++ {
  34129. if cr != nil {
  34130. cr.sendContainerState(containerMapKey)
  34131. }
  34132. mk = int32(dd.DecodeInt(32))
  34133. if cr != nil {
  34134. cr.sendContainerState(containerMapValue)
  34135. }
  34136. mv = int32(dd.DecodeInt(32))
  34137. if v != nil {
  34138. v[mk] = mv
  34139. }
  34140. }
  34141. } else if containerLen < 0 {
  34142. for j := 0; !dd.CheckBreak(); j++ {
  34143. if cr != nil {
  34144. cr.sendContainerState(containerMapKey)
  34145. }
  34146. mk = int32(dd.DecodeInt(32))
  34147. if cr != nil {
  34148. cr.sendContainerState(containerMapValue)
  34149. }
  34150. mv = int32(dd.DecodeInt(32))
  34151. if v != nil {
  34152. v[mk] = mv
  34153. }
  34154. }
  34155. }
  34156. if cr != nil {
  34157. cr.sendContainerState(containerMapEnd)
  34158. }
  34159. return v, changed
  34160. }
  34161. func (f *decFnInfo) fastpathDecMapInt32Int64R(rv reflect.Value) {
  34162. if rv.CanAddr() {
  34163. vp := rv.Addr().Interface().(*map[int32]int64)
  34164. v, changed := fastpathTV.DecMapInt32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  34165. if changed {
  34166. *vp = v
  34167. }
  34168. } else {
  34169. v := rv.Interface().(map[int32]int64)
  34170. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, f.d)
  34171. }
  34172. }
  34173. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, checkNil bool, d *Decoder) {
  34174. v, changed := f.DecMapInt32Int64V(*vp, checkNil, true, d)
  34175. if changed {
  34176. *vp = v
  34177. }
  34178. }
  34179. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, checkNil bool, canChange bool,
  34180. d *Decoder) (_ map[int32]int64, changed bool) {
  34181. dd := d.d
  34182. cr := d.cr
  34183. if checkNil && dd.TryDecodeAsNil() {
  34184. if v != nil {
  34185. changed = true
  34186. }
  34187. return nil, changed
  34188. }
  34189. containerLen := dd.ReadMapStart()
  34190. if canChange && v == nil {
  34191. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34192. v = make(map[int32]int64, xlen)
  34193. changed = true
  34194. }
  34195. var mk int32
  34196. var mv int64
  34197. if containerLen > 0 {
  34198. for j := 0; j < containerLen; j++ {
  34199. if cr != nil {
  34200. cr.sendContainerState(containerMapKey)
  34201. }
  34202. mk = int32(dd.DecodeInt(32))
  34203. if cr != nil {
  34204. cr.sendContainerState(containerMapValue)
  34205. }
  34206. mv = dd.DecodeInt(64)
  34207. if v != nil {
  34208. v[mk] = mv
  34209. }
  34210. }
  34211. } else if containerLen < 0 {
  34212. for j := 0; !dd.CheckBreak(); j++ {
  34213. if cr != nil {
  34214. cr.sendContainerState(containerMapKey)
  34215. }
  34216. mk = int32(dd.DecodeInt(32))
  34217. if cr != nil {
  34218. cr.sendContainerState(containerMapValue)
  34219. }
  34220. mv = dd.DecodeInt(64)
  34221. if v != nil {
  34222. v[mk] = mv
  34223. }
  34224. }
  34225. }
  34226. if cr != nil {
  34227. cr.sendContainerState(containerMapEnd)
  34228. }
  34229. return v, changed
  34230. }
  34231. func (f *decFnInfo) fastpathDecMapInt32Float32R(rv reflect.Value) {
  34232. if rv.CanAddr() {
  34233. vp := rv.Addr().Interface().(*map[int32]float32)
  34234. v, changed := fastpathTV.DecMapInt32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  34235. if changed {
  34236. *vp = v
  34237. }
  34238. } else {
  34239. v := rv.Interface().(map[int32]float32)
  34240. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, f.d)
  34241. }
  34242. }
  34243. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, checkNil bool, d *Decoder) {
  34244. v, changed := f.DecMapInt32Float32V(*vp, checkNil, true, d)
  34245. if changed {
  34246. *vp = v
  34247. }
  34248. }
  34249. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, checkNil bool, canChange bool,
  34250. d *Decoder) (_ map[int32]float32, changed bool) {
  34251. dd := d.d
  34252. cr := d.cr
  34253. if checkNil && dd.TryDecodeAsNil() {
  34254. if v != nil {
  34255. changed = true
  34256. }
  34257. return nil, changed
  34258. }
  34259. containerLen := dd.ReadMapStart()
  34260. if canChange && v == nil {
  34261. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  34262. v = make(map[int32]float32, xlen)
  34263. changed = true
  34264. }
  34265. var mk int32
  34266. var mv float32
  34267. if containerLen > 0 {
  34268. for j := 0; j < containerLen; j++ {
  34269. if cr != nil {
  34270. cr.sendContainerState(containerMapKey)
  34271. }
  34272. mk = int32(dd.DecodeInt(32))
  34273. if cr != nil {
  34274. cr.sendContainerState(containerMapValue)
  34275. }
  34276. mv = float32(dd.DecodeFloat(true))
  34277. if v != nil {
  34278. v[mk] = mv
  34279. }
  34280. }
  34281. } else if containerLen < 0 {
  34282. for j := 0; !dd.CheckBreak(); j++ {
  34283. if cr != nil {
  34284. cr.sendContainerState(containerMapKey)
  34285. }
  34286. mk = int32(dd.DecodeInt(32))
  34287. if cr != nil {
  34288. cr.sendContainerState(containerMapValue)
  34289. }
  34290. mv = float32(dd.DecodeFloat(true))
  34291. if v != nil {
  34292. v[mk] = mv
  34293. }
  34294. }
  34295. }
  34296. if cr != nil {
  34297. cr.sendContainerState(containerMapEnd)
  34298. }
  34299. return v, changed
  34300. }
  34301. func (f *decFnInfo) fastpathDecMapInt32Float64R(rv reflect.Value) {
  34302. if rv.CanAddr() {
  34303. vp := rv.Addr().Interface().(*map[int32]float64)
  34304. v, changed := fastpathTV.DecMapInt32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  34305. if changed {
  34306. *vp = v
  34307. }
  34308. } else {
  34309. v := rv.Interface().(map[int32]float64)
  34310. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, f.d)
  34311. }
  34312. }
  34313. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, checkNil bool, d *Decoder) {
  34314. v, changed := f.DecMapInt32Float64V(*vp, checkNil, true, d)
  34315. if changed {
  34316. *vp = v
  34317. }
  34318. }
  34319. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, checkNil bool, canChange bool,
  34320. d *Decoder) (_ map[int32]float64, changed bool) {
  34321. dd := d.d
  34322. cr := d.cr
  34323. if checkNil && dd.TryDecodeAsNil() {
  34324. if v != nil {
  34325. changed = true
  34326. }
  34327. return nil, changed
  34328. }
  34329. containerLen := dd.ReadMapStart()
  34330. if canChange && v == nil {
  34331. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34332. v = make(map[int32]float64, xlen)
  34333. changed = true
  34334. }
  34335. var mk int32
  34336. var mv float64
  34337. if containerLen > 0 {
  34338. for j := 0; j < containerLen; j++ {
  34339. if cr != nil {
  34340. cr.sendContainerState(containerMapKey)
  34341. }
  34342. mk = int32(dd.DecodeInt(32))
  34343. if cr != nil {
  34344. cr.sendContainerState(containerMapValue)
  34345. }
  34346. mv = dd.DecodeFloat(false)
  34347. if v != nil {
  34348. v[mk] = mv
  34349. }
  34350. }
  34351. } else if containerLen < 0 {
  34352. for j := 0; !dd.CheckBreak(); j++ {
  34353. if cr != nil {
  34354. cr.sendContainerState(containerMapKey)
  34355. }
  34356. mk = int32(dd.DecodeInt(32))
  34357. if cr != nil {
  34358. cr.sendContainerState(containerMapValue)
  34359. }
  34360. mv = dd.DecodeFloat(false)
  34361. if v != nil {
  34362. v[mk] = mv
  34363. }
  34364. }
  34365. }
  34366. if cr != nil {
  34367. cr.sendContainerState(containerMapEnd)
  34368. }
  34369. return v, changed
  34370. }
  34371. func (f *decFnInfo) fastpathDecMapInt32BoolR(rv reflect.Value) {
  34372. if rv.CanAddr() {
  34373. vp := rv.Addr().Interface().(*map[int32]bool)
  34374. v, changed := fastpathTV.DecMapInt32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  34375. if changed {
  34376. *vp = v
  34377. }
  34378. } else {
  34379. v := rv.Interface().(map[int32]bool)
  34380. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, f.d)
  34381. }
  34382. }
  34383. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, checkNil bool, d *Decoder) {
  34384. v, changed := f.DecMapInt32BoolV(*vp, checkNil, true, d)
  34385. if changed {
  34386. *vp = v
  34387. }
  34388. }
  34389. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, checkNil bool, canChange bool,
  34390. d *Decoder) (_ map[int32]bool, changed bool) {
  34391. dd := d.d
  34392. cr := d.cr
  34393. if checkNil && dd.TryDecodeAsNil() {
  34394. if v != nil {
  34395. changed = true
  34396. }
  34397. return nil, changed
  34398. }
  34399. containerLen := dd.ReadMapStart()
  34400. if canChange && v == nil {
  34401. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34402. v = make(map[int32]bool, xlen)
  34403. changed = true
  34404. }
  34405. var mk int32
  34406. var mv bool
  34407. if containerLen > 0 {
  34408. for j := 0; j < containerLen; j++ {
  34409. if cr != nil {
  34410. cr.sendContainerState(containerMapKey)
  34411. }
  34412. mk = int32(dd.DecodeInt(32))
  34413. if cr != nil {
  34414. cr.sendContainerState(containerMapValue)
  34415. }
  34416. mv = dd.DecodeBool()
  34417. if v != nil {
  34418. v[mk] = mv
  34419. }
  34420. }
  34421. } else if containerLen < 0 {
  34422. for j := 0; !dd.CheckBreak(); j++ {
  34423. if cr != nil {
  34424. cr.sendContainerState(containerMapKey)
  34425. }
  34426. mk = int32(dd.DecodeInt(32))
  34427. if cr != nil {
  34428. cr.sendContainerState(containerMapValue)
  34429. }
  34430. mv = dd.DecodeBool()
  34431. if v != nil {
  34432. v[mk] = mv
  34433. }
  34434. }
  34435. }
  34436. if cr != nil {
  34437. cr.sendContainerState(containerMapEnd)
  34438. }
  34439. return v, changed
  34440. }
  34441. func (f *decFnInfo) fastpathDecMapInt64IntfR(rv reflect.Value) {
  34442. if rv.CanAddr() {
  34443. vp := rv.Addr().Interface().(*map[int64]interface{})
  34444. v, changed := fastpathTV.DecMapInt64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  34445. if changed {
  34446. *vp = v
  34447. }
  34448. } else {
  34449. v := rv.Interface().(map[int64]interface{})
  34450. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, f.d)
  34451. }
  34452. }
  34453. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, checkNil bool, d *Decoder) {
  34454. v, changed := f.DecMapInt64IntfV(*vp, checkNil, true, d)
  34455. if changed {
  34456. *vp = v
  34457. }
  34458. }
  34459. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, checkNil bool, canChange bool,
  34460. d *Decoder) (_ map[int64]interface{}, changed bool) {
  34461. dd := d.d
  34462. cr := d.cr
  34463. if checkNil && dd.TryDecodeAsNil() {
  34464. if v != nil {
  34465. changed = true
  34466. }
  34467. return nil, changed
  34468. }
  34469. containerLen := dd.ReadMapStart()
  34470. if canChange && v == nil {
  34471. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  34472. v = make(map[int64]interface{}, xlen)
  34473. changed = true
  34474. }
  34475. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  34476. var mk int64
  34477. var mv interface{}
  34478. if containerLen > 0 {
  34479. for j := 0; j < containerLen; j++ {
  34480. if cr != nil {
  34481. cr.sendContainerState(containerMapKey)
  34482. }
  34483. mk = dd.DecodeInt(64)
  34484. if cr != nil {
  34485. cr.sendContainerState(containerMapValue)
  34486. }
  34487. if mapGet {
  34488. mv = v[mk]
  34489. } else {
  34490. mv = nil
  34491. }
  34492. d.decode(&mv)
  34493. if v != nil {
  34494. v[mk] = mv
  34495. }
  34496. }
  34497. } else if containerLen < 0 {
  34498. for j := 0; !dd.CheckBreak(); j++ {
  34499. if cr != nil {
  34500. cr.sendContainerState(containerMapKey)
  34501. }
  34502. mk = dd.DecodeInt(64)
  34503. if cr != nil {
  34504. cr.sendContainerState(containerMapValue)
  34505. }
  34506. if mapGet {
  34507. mv = v[mk]
  34508. } else {
  34509. mv = nil
  34510. }
  34511. d.decode(&mv)
  34512. if v != nil {
  34513. v[mk] = mv
  34514. }
  34515. }
  34516. }
  34517. if cr != nil {
  34518. cr.sendContainerState(containerMapEnd)
  34519. }
  34520. return v, changed
  34521. }
  34522. func (f *decFnInfo) fastpathDecMapInt64StringR(rv reflect.Value) {
  34523. if rv.CanAddr() {
  34524. vp := rv.Addr().Interface().(*map[int64]string)
  34525. v, changed := fastpathTV.DecMapInt64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  34526. if changed {
  34527. *vp = v
  34528. }
  34529. } else {
  34530. v := rv.Interface().(map[int64]string)
  34531. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, f.d)
  34532. }
  34533. }
  34534. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, checkNil bool, d *Decoder) {
  34535. v, changed := f.DecMapInt64StringV(*vp, checkNil, true, d)
  34536. if changed {
  34537. *vp = v
  34538. }
  34539. }
  34540. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, checkNil bool, canChange bool,
  34541. d *Decoder) (_ map[int64]string, changed bool) {
  34542. dd := d.d
  34543. cr := d.cr
  34544. if checkNil && dd.TryDecodeAsNil() {
  34545. if v != nil {
  34546. changed = true
  34547. }
  34548. return nil, changed
  34549. }
  34550. containerLen := dd.ReadMapStart()
  34551. if canChange && v == nil {
  34552. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  34553. v = make(map[int64]string, xlen)
  34554. changed = true
  34555. }
  34556. var mk int64
  34557. var mv string
  34558. if containerLen > 0 {
  34559. for j := 0; j < containerLen; j++ {
  34560. if cr != nil {
  34561. cr.sendContainerState(containerMapKey)
  34562. }
  34563. mk = dd.DecodeInt(64)
  34564. if cr != nil {
  34565. cr.sendContainerState(containerMapValue)
  34566. }
  34567. mv = dd.DecodeString()
  34568. if v != nil {
  34569. v[mk] = mv
  34570. }
  34571. }
  34572. } else if containerLen < 0 {
  34573. for j := 0; !dd.CheckBreak(); j++ {
  34574. if cr != nil {
  34575. cr.sendContainerState(containerMapKey)
  34576. }
  34577. mk = dd.DecodeInt(64)
  34578. if cr != nil {
  34579. cr.sendContainerState(containerMapValue)
  34580. }
  34581. mv = dd.DecodeString()
  34582. if v != nil {
  34583. v[mk] = mv
  34584. }
  34585. }
  34586. }
  34587. if cr != nil {
  34588. cr.sendContainerState(containerMapEnd)
  34589. }
  34590. return v, changed
  34591. }
  34592. func (f *decFnInfo) fastpathDecMapInt64UintR(rv reflect.Value) {
  34593. if rv.CanAddr() {
  34594. vp := rv.Addr().Interface().(*map[int64]uint)
  34595. v, changed := fastpathTV.DecMapInt64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  34596. if changed {
  34597. *vp = v
  34598. }
  34599. } else {
  34600. v := rv.Interface().(map[int64]uint)
  34601. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, f.d)
  34602. }
  34603. }
  34604. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, checkNil bool, d *Decoder) {
  34605. v, changed := f.DecMapInt64UintV(*vp, checkNil, true, d)
  34606. if changed {
  34607. *vp = v
  34608. }
  34609. }
  34610. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, checkNil bool, canChange bool,
  34611. d *Decoder) (_ map[int64]uint, changed bool) {
  34612. dd := d.d
  34613. cr := d.cr
  34614. if checkNil && dd.TryDecodeAsNil() {
  34615. if v != nil {
  34616. changed = true
  34617. }
  34618. return nil, changed
  34619. }
  34620. containerLen := dd.ReadMapStart()
  34621. if canChange && v == nil {
  34622. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  34623. v = make(map[int64]uint, xlen)
  34624. changed = true
  34625. }
  34626. var mk int64
  34627. var mv uint
  34628. if containerLen > 0 {
  34629. for j := 0; j < containerLen; j++ {
  34630. if cr != nil {
  34631. cr.sendContainerState(containerMapKey)
  34632. }
  34633. mk = dd.DecodeInt(64)
  34634. if cr != nil {
  34635. cr.sendContainerState(containerMapValue)
  34636. }
  34637. mv = uint(dd.DecodeUint(uintBitsize))
  34638. if v != nil {
  34639. v[mk] = mv
  34640. }
  34641. }
  34642. } else if containerLen < 0 {
  34643. for j := 0; !dd.CheckBreak(); j++ {
  34644. if cr != nil {
  34645. cr.sendContainerState(containerMapKey)
  34646. }
  34647. mk = dd.DecodeInt(64)
  34648. if cr != nil {
  34649. cr.sendContainerState(containerMapValue)
  34650. }
  34651. mv = uint(dd.DecodeUint(uintBitsize))
  34652. if v != nil {
  34653. v[mk] = mv
  34654. }
  34655. }
  34656. }
  34657. if cr != nil {
  34658. cr.sendContainerState(containerMapEnd)
  34659. }
  34660. return v, changed
  34661. }
  34662. func (f *decFnInfo) fastpathDecMapInt64Uint8R(rv reflect.Value) {
  34663. if rv.CanAddr() {
  34664. vp := rv.Addr().Interface().(*map[int64]uint8)
  34665. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  34666. if changed {
  34667. *vp = v
  34668. }
  34669. } else {
  34670. v := rv.Interface().(map[int64]uint8)
  34671. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  34672. }
  34673. }
  34674. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, checkNil bool, d *Decoder) {
  34675. v, changed := f.DecMapInt64Uint8V(*vp, checkNil, true, d)
  34676. if changed {
  34677. *vp = v
  34678. }
  34679. }
  34680. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, checkNil bool, canChange bool,
  34681. d *Decoder) (_ map[int64]uint8, changed bool) {
  34682. dd := d.d
  34683. cr := d.cr
  34684. if checkNil && dd.TryDecodeAsNil() {
  34685. if v != nil {
  34686. changed = true
  34687. }
  34688. return nil, changed
  34689. }
  34690. containerLen := dd.ReadMapStart()
  34691. if canChange && v == nil {
  34692. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34693. v = make(map[int64]uint8, xlen)
  34694. changed = true
  34695. }
  34696. var mk int64
  34697. var mv uint8
  34698. if containerLen > 0 {
  34699. for j := 0; j < containerLen; j++ {
  34700. if cr != nil {
  34701. cr.sendContainerState(containerMapKey)
  34702. }
  34703. mk = dd.DecodeInt(64)
  34704. if cr != nil {
  34705. cr.sendContainerState(containerMapValue)
  34706. }
  34707. mv = uint8(dd.DecodeUint(8))
  34708. if v != nil {
  34709. v[mk] = mv
  34710. }
  34711. }
  34712. } else if containerLen < 0 {
  34713. for j := 0; !dd.CheckBreak(); j++ {
  34714. if cr != nil {
  34715. cr.sendContainerState(containerMapKey)
  34716. }
  34717. mk = dd.DecodeInt(64)
  34718. if cr != nil {
  34719. cr.sendContainerState(containerMapValue)
  34720. }
  34721. mv = uint8(dd.DecodeUint(8))
  34722. if v != nil {
  34723. v[mk] = mv
  34724. }
  34725. }
  34726. }
  34727. if cr != nil {
  34728. cr.sendContainerState(containerMapEnd)
  34729. }
  34730. return v, changed
  34731. }
  34732. func (f *decFnInfo) fastpathDecMapInt64Uint16R(rv reflect.Value) {
  34733. if rv.CanAddr() {
  34734. vp := rv.Addr().Interface().(*map[int64]uint16)
  34735. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  34736. if changed {
  34737. *vp = v
  34738. }
  34739. } else {
  34740. v := rv.Interface().(map[int64]uint16)
  34741. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  34742. }
  34743. }
  34744. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, checkNil bool, d *Decoder) {
  34745. v, changed := f.DecMapInt64Uint16V(*vp, checkNil, true, d)
  34746. if changed {
  34747. *vp = v
  34748. }
  34749. }
  34750. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, checkNil bool, canChange bool,
  34751. d *Decoder) (_ map[int64]uint16, changed bool) {
  34752. dd := d.d
  34753. cr := d.cr
  34754. if checkNil && dd.TryDecodeAsNil() {
  34755. if v != nil {
  34756. changed = true
  34757. }
  34758. return nil, changed
  34759. }
  34760. containerLen := dd.ReadMapStart()
  34761. if canChange && v == nil {
  34762. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  34763. v = make(map[int64]uint16, xlen)
  34764. changed = true
  34765. }
  34766. var mk int64
  34767. var mv uint16
  34768. if containerLen > 0 {
  34769. for j := 0; j < containerLen; j++ {
  34770. if cr != nil {
  34771. cr.sendContainerState(containerMapKey)
  34772. }
  34773. mk = dd.DecodeInt(64)
  34774. if cr != nil {
  34775. cr.sendContainerState(containerMapValue)
  34776. }
  34777. mv = uint16(dd.DecodeUint(16))
  34778. if v != nil {
  34779. v[mk] = mv
  34780. }
  34781. }
  34782. } else if containerLen < 0 {
  34783. for j := 0; !dd.CheckBreak(); j++ {
  34784. if cr != nil {
  34785. cr.sendContainerState(containerMapKey)
  34786. }
  34787. mk = dd.DecodeInt(64)
  34788. if cr != nil {
  34789. cr.sendContainerState(containerMapValue)
  34790. }
  34791. mv = uint16(dd.DecodeUint(16))
  34792. if v != nil {
  34793. v[mk] = mv
  34794. }
  34795. }
  34796. }
  34797. if cr != nil {
  34798. cr.sendContainerState(containerMapEnd)
  34799. }
  34800. return v, changed
  34801. }
  34802. func (f *decFnInfo) fastpathDecMapInt64Uint32R(rv reflect.Value) {
  34803. if rv.CanAddr() {
  34804. vp := rv.Addr().Interface().(*map[int64]uint32)
  34805. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  34806. if changed {
  34807. *vp = v
  34808. }
  34809. } else {
  34810. v := rv.Interface().(map[int64]uint32)
  34811. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  34812. }
  34813. }
  34814. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, checkNil bool, d *Decoder) {
  34815. v, changed := f.DecMapInt64Uint32V(*vp, checkNil, true, d)
  34816. if changed {
  34817. *vp = v
  34818. }
  34819. }
  34820. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, checkNil bool, canChange bool,
  34821. d *Decoder) (_ map[int64]uint32, changed bool) {
  34822. dd := d.d
  34823. cr := d.cr
  34824. if checkNil && dd.TryDecodeAsNil() {
  34825. if v != nil {
  34826. changed = true
  34827. }
  34828. return nil, changed
  34829. }
  34830. containerLen := dd.ReadMapStart()
  34831. if canChange && v == nil {
  34832. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34833. v = make(map[int64]uint32, xlen)
  34834. changed = true
  34835. }
  34836. var mk int64
  34837. var mv uint32
  34838. if containerLen > 0 {
  34839. for j := 0; j < containerLen; j++ {
  34840. if cr != nil {
  34841. cr.sendContainerState(containerMapKey)
  34842. }
  34843. mk = dd.DecodeInt(64)
  34844. if cr != nil {
  34845. cr.sendContainerState(containerMapValue)
  34846. }
  34847. mv = uint32(dd.DecodeUint(32))
  34848. if v != nil {
  34849. v[mk] = mv
  34850. }
  34851. }
  34852. } else if containerLen < 0 {
  34853. for j := 0; !dd.CheckBreak(); j++ {
  34854. if cr != nil {
  34855. cr.sendContainerState(containerMapKey)
  34856. }
  34857. mk = dd.DecodeInt(64)
  34858. if cr != nil {
  34859. cr.sendContainerState(containerMapValue)
  34860. }
  34861. mv = uint32(dd.DecodeUint(32))
  34862. if v != nil {
  34863. v[mk] = mv
  34864. }
  34865. }
  34866. }
  34867. if cr != nil {
  34868. cr.sendContainerState(containerMapEnd)
  34869. }
  34870. return v, changed
  34871. }
  34872. func (f *decFnInfo) fastpathDecMapInt64Uint64R(rv reflect.Value) {
  34873. if rv.CanAddr() {
  34874. vp := rv.Addr().Interface().(*map[int64]uint64)
  34875. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  34876. if changed {
  34877. *vp = v
  34878. }
  34879. } else {
  34880. v := rv.Interface().(map[int64]uint64)
  34881. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  34882. }
  34883. }
  34884. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, checkNil bool, d *Decoder) {
  34885. v, changed := f.DecMapInt64Uint64V(*vp, checkNil, true, d)
  34886. if changed {
  34887. *vp = v
  34888. }
  34889. }
  34890. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, checkNil bool, canChange bool,
  34891. d *Decoder) (_ map[int64]uint64, changed bool) {
  34892. dd := d.d
  34893. cr := d.cr
  34894. if checkNil && dd.TryDecodeAsNil() {
  34895. if v != nil {
  34896. changed = true
  34897. }
  34898. return nil, changed
  34899. }
  34900. containerLen := dd.ReadMapStart()
  34901. if canChange && v == nil {
  34902. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  34903. v = make(map[int64]uint64, xlen)
  34904. changed = true
  34905. }
  34906. var mk int64
  34907. var mv uint64
  34908. if containerLen > 0 {
  34909. for j := 0; j < containerLen; j++ {
  34910. if cr != nil {
  34911. cr.sendContainerState(containerMapKey)
  34912. }
  34913. mk = dd.DecodeInt(64)
  34914. if cr != nil {
  34915. cr.sendContainerState(containerMapValue)
  34916. }
  34917. mv = dd.DecodeUint(64)
  34918. if v != nil {
  34919. v[mk] = mv
  34920. }
  34921. }
  34922. } else if containerLen < 0 {
  34923. for j := 0; !dd.CheckBreak(); j++ {
  34924. if cr != nil {
  34925. cr.sendContainerState(containerMapKey)
  34926. }
  34927. mk = dd.DecodeInt(64)
  34928. if cr != nil {
  34929. cr.sendContainerState(containerMapValue)
  34930. }
  34931. mv = dd.DecodeUint(64)
  34932. if v != nil {
  34933. v[mk] = mv
  34934. }
  34935. }
  34936. }
  34937. if cr != nil {
  34938. cr.sendContainerState(containerMapEnd)
  34939. }
  34940. return v, changed
  34941. }
  34942. func (f *decFnInfo) fastpathDecMapInt64UintptrR(rv reflect.Value) {
  34943. if rv.CanAddr() {
  34944. vp := rv.Addr().Interface().(*map[int64]uintptr)
  34945. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  34946. if changed {
  34947. *vp = v
  34948. }
  34949. } else {
  34950. v := rv.Interface().(map[int64]uintptr)
  34951. fastpathTV.DecMapInt64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  34952. }
  34953. }
  34954. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, checkNil bool, d *Decoder) {
  34955. v, changed := f.DecMapInt64UintptrV(*vp, checkNil, true, d)
  34956. if changed {
  34957. *vp = v
  34958. }
  34959. }
  34960. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, checkNil bool, canChange bool,
  34961. d *Decoder) (_ map[int64]uintptr, changed bool) {
  34962. dd := d.d
  34963. cr := d.cr
  34964. if checkNil && dd.TryDecodeAsNil() {
  34965. if v != nil {
  34966. changed = true
  34967. }
  34968. return nil, changed
  34969. }
  34970. containerLen := dd.ReadMapStart()
  34971. if canChange && v == nil {
  34972. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  34973. v = make(map[int64]uintptr, xlen)
  34974. changed = true
  34975. }
  34976. var mk int64
  34977. var mv uintptr
  34978. if containerLen > 0 {
  34979. for j := 0; j < containerLen; j++ {
  34980. if cr != nil {
  34981. cr.sendContainerState(containerMapKey)
  34982. }
  34983. mk = dd.DecodeInt(64)
  34984. if cr != nil {
  34985. cr.sendContainerState(containerMapValue)
  34986. }
  34987. mv = uintptr(dd.DecodeUint(uintBitsize))
  34988. if v != nil {
  34989. v[mk] = mv
  34990. }
  34991. }
  34992. } else if containerLen < 0 {
  34993. for j := 0; !dd.CheckBreak(); j++ {
  34994. if cr != nil {
  34995. cr.sendContainerState(containerMapKey)
  34996. }
  34997. mk = dd.DecodeInt(64)
  34998. if cr != nil {
  34999. cr.sendContainerState(containerMapValue)
  35000. }
  35001. mv = uintptr(dd.DecodeUint(uintBitsize))
  35002. if v != nil {
  35003. v[mk] = mv
  35004. }
  35005. }
  35006. }
  35007. if cr != nil {
  35008. cr.sendContainerState(containerMapEnd)
  35009. }
  35010. return v, changed
  35011. }
  35012. func (f *decFnInfo) fastpathDecMapInt64IntR(rv reflect.Value) {
  35013. if rv.CanAddr() {
  35014. vp := rv.Addr().Interface().(*map[int64]int)
  35015. v, changed := fastpathTV.DecMapInt64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  35016. if changed {
  35017. *vp = v
  35018. }
  35019. } else {
  35020. v := rv.Interface().(map[int64]int)
  35021. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, f.d)
  35022. }
  35023. }
  35024. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, checkNil bool, d *Decoder) {
  35025. v, changed := f.DecMapInt64IntV(*vp, checkNil, true, d)
  35026. if changed {
  35027. *vp = v
  35028. }
  35029. }
  35030. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, checkNil bool, canChange bool,
  35031. d *Decoder) (_ map[int64]int, changed bool) {
  35032. dd := d.d
  35033. cr := d.cr
  35034. if checkNil && dd.TryDecodeAsNil() {
  35035. if v != nil {
  35036. changed = true
  35037. }
  35038. return nil, changed
  35039. }
  35040. containerLen := dd.ReadMapStart()
  35041. if canChange && v == nil {
  35042. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35043. v = make(map[int64]int, xlen)
  35044. changed = true
  35045. }
  35046. var mk int64
  35047. var mv int
  35048. if containerLen > 0 {
  35049. for j := 0; j < containerLen; j++ {
  35050. if cr != nil {
  35051. cr.sendContainerState(containerMapKey)
  35052. }
  35053. mk = dd.DecodeInt(64)
  35054. if cr != nil {
  35055. cr.sendContainerState(containerMapValue)
  35056. }
  35057. mv = int(dd.DecodeInt(intBitsize))
  35058. if v != nil {
  35059. v[mk] = mv
  35060. }
  35061. }
  35062. } else if containerLen < 0 {
  35063. for j := 0; !dd.CheckBreak(); j++ {
  35064. if cr != nil {
  35065. cr.sendContainerState(containerMapKey)
  35066. }
  35067. mk = dd.DecodeInt(64)
  35068. if cr != nil {
  35069. cr.sendContainerState(containerMapValue)
  35070. }
  35071. mv = int(dd.DecodeInt(intBitsize))
  35072. if v != nil {
  35073. v[mk] = mv
  35074. }
  35075. }
  35076. }
  35077. if cr != nil {
  35078. cr.sendContainerState(containerMapEnd)
  35079. }
  35080. return v, changed
  35081. }
  35082. func (f *decFnInfo) fastpathDecMapInt64Int8R(rv reflect.Value) {
  35083. if rv.CanAddr() {
  35084. vp := rv.Addr().Interface().(*map[int64]int8)
  35085. v, changed := fastpathTV.DecMapInt64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  35086. if changed {
  35087. *vp = v
  35088. }
  35089. } else {
  35090. v := rv.Interface().(map[int64]int8)
  35091. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, f.d)
  35092. }
  35093. }
  35094. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, checkNil bool, d *Decoder) {
  35095. v, changed := f.DecMapInt64Int8V(*vp, checkNil, true, d)
  35096. if changed {
  35097. *vp = v
  35098. }
  35099. }
  35100. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, checkNil bool, canChange bool,
  35101. d *Decoder) (_ map[int64]int8, changed bool) {
  35102. dd := d.d
  35103. cr := d.cr
  35104. if checkNil && dd.TryDecodeAsNil() {
  35105. if v != nil {
  35106. changed = true
  35107. }
  35108. return nil, changed
  35109. }
  35110. containerLen := dd.ReadMapStart()
  35111. if canChange && v == nil {
  35112. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  35113. v = make(map[int64]int8, xlen)
  35114. changed = true
  35115. }
  35116. var mk int64
  35117. var mv int8
  35118. if containerLen > 0 {
  35119. for j := 0; j < containerLen; j++ {
  35120. if cr != nil {
  35121. cr.sendContainerState(containerMapKey)
  35122. }
  35123. mk = dd.DecodeInt(64)
  35124. if cr != nil {
  35125. cr.sendContainerState(containerMapValue)
  35126. }
  35127. mv = int8(dd.DecodeInt(8))
  35128. if v != nil {
  35129. v[mk] = mv
  35130. }
  35131. }
  35132. } else if containerLen < 0 {
  35133. for j := 0; !dd.CheckBreak(); j++ {
  35134. if cr != nil {
  35135. cr.sendContainerState(containerMapKey)
  35136. }
  35137. mk = dd.DecodeInt(64)
  35138. if cr != nil {
  35139. cr.sendContainerState(containerMapValue)
  35140. }
  35141. mv = int8(dd.DecodeInt(8))
  35142. if v != nil {
  35143. v[mk] = mv
  35144. }
  35145. }
  35146. }
  35147. if cr != nil {
  35148. cr.sendContainerState(containerMapEnd)
  35149. }
  35150. return v, changed
  35151. }
  35152. func (f *decFnInfo) fastpathDecMapInt64Int16R(rv reflect.Value) {
  35153. if rv.CanAddr() {
  35154. vp := rv.Addr().Interface().(*map[int64]int16)
  35155. v, changed := fastpathTV.DecMapInt64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  35156. if changed {
  35157. *vp = v
  35158. }
  35159. } else {
  35160. v := rv.Interface().(map[int64]int16)
  35161. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, f.d)
  35162. }
  35163. }
  35164. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, checkNil bool, d *Decoder) {
  35165. v, changed := f.DecMapInt64Int16V(*vp, checkNil, true, d)
  35166. if changed {
  35167. *vp = v
  35168. }
  35169. }
  35170. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, checkNil bool, canChange bool,
  35171. d *Decoder) (_ map[int64]int16, changed bool) {
  35172. dd := d.d
  35173. cr := d.cr
  35174. if checkNil && dd.TryDecodeAsNil() {
  35175. if v != nil {
  35176. changed = true
  35177. }
  35178. return nil, changed
  35179. }
  35180. containerLen := dd.ReadMapStart()
  35181. if canChange && v == nil {
  35182. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  35183. v = make(map[int64]int16, xlen)
  35184. changed = true
  35185. }
  35186. var mk int64
  35187. var mv int16
  35188. if containerLen > 0 {
  35189. for j := 0; j < containerLen; j++ {
  35190. if cr != nil {
  35191. cr.sendContainerState(containerMapKey)
  35192. }
  35193. mk = dd.DecodeInt(64)
  35194. if cr != nil {
  35195. cr.sendContainerState(containerMapValue)
  35196. }
  35197. mv = int16(dd.DecodeInt(16))
  35198. if v != nil {
  35199. v[mk] = mv
  35200. }
  35201. }
  35202. } else if containerLen < 0 {
  35203. for j := 0; !dd.CheckBreak(); j++ {
  35204. if cr != nil {
  35205. cr.sendContainerState(containerMapKey)
  35206. }
  35207. mk = dd.DecodeInt(64)
  35208. if cr != nil {
  35209. cr.sendContainerState(containerMapValue)
  35210. }
  35211. mv = int16(dd.DecodeInt(16))
  35212. if v != nil {
  35213. v[mk] = mv
  35214. }
  35215. }
  35216. }
  35217. if cr != nil {
  35218. cr.sendContainerState(containerMapEnd)
  35219. }
  35220. return v, changed
  35221. }
  35222. func (f *decFnInfo) fastpathDecMapInt64Int32R(rv reflect.Value) {
  35223. if rv.CanAddr() {
  35224. vp := rv.Addr().Interface().(*map[int64]int32)
  35225. v, changed := fastpathTV.DecMapInt64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  35226. if changed {
  35227. *vp = v
  35228. }
  35229. } else {
  35230. v := rv.Interface().(map[int64]int32)
  35231. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, f.d)
  35232. }
  35233. }
  35234. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, checkNil bool, d *Decoder) {
  35235. v, changed := f.DecMapInt64Int32V(*vp, checkNil, true, d)
  35236. if changed {
  35237. *vp = v
  35238. }
  35239. }
  35240. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, checkNil bool, canChange bool,
  35241. d *Decoder) (_ map[int64]int32, changed bool) {
  35242. dd := d.d
  35243. cr := d.cr
  35244. if checkNil && dd.TryDecodeAsNil() {
  35245. if v != nil {
  35246. changed = true
  35247. }
  35248. return nil, changed
  35249. }
  35250. containerLen := dd.ReadMapStart()
  35251. if canChange && v == nil {
  35252. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  35253. v = make(map[int64]int32, xlen)
  35254. changed = true
  35255. }
  35256. var mk int64
  35257. var mv int32
  35258. if containerLen > 0 {
  35259. for j := 0; j < containerLen; j++ {
  35260. if cr != nil {
  35261. cr.sendContainerState(containerMapKey)
  35262. }
  35263. mk = dd.DecodeInt(64)
  35264. if cr != nil {
  35265. cr.sendContainerState(containerMapValue)
  35266. }
  35267. mv = int32(dd.DecodeInt(32))
  35268. if v != nil {
  35269. v[mk] = mv
  35270. }
  35271. }
  35272. } else if containerLen < 0 {
  35273. for j := 0; !dd.CheckBreak(); j++ {
  35274. if cr != nil {
  35275. cr.sendContainerState(containerMapKey)
  35276. }
  35277. mk = dd.DecodeInt(64)
  35278. if cr != nil {
  35279. cr.sendContainerState(containerMapValue)
  35280. }
  35281. mv = int32(dd.DecodeInt(32))
  35282. if v != nil {
  35283. v[mk] = mv
  35284. }
  35285. }
  35286. }
  35287. if cr != nil {
  35288. cr.sendContainerState(containerMapEnd)
  35289. }
  35290. return v, changed
  35291. }
  35292. func (f *decFnInfo) fastpathDecMapInt64Int64R(rv reflect.Value) {
  35293. if rv.CanAddr() {
  35294. vp := rv.Addr().Interface().(*map[int64]int64)
  35295. v, changed := fastpathTV.DecMapInt64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  35296. if changed {
  35297. *vp = v
  35298. }
  35299. } else {
  35300. v := rv.Interface().(map[int64]int64)
  35301. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, f.d)
  35302. }
  35303. }
  35304. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, checkNil bool, d *Decoder) {
  35305. v, changed := f.DecMapInt64Int64V(*vp, checkNil, true, d)
  35306. if changed {
  35307. *vp = v
  35308. }
  35309. }
  35310. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, checkNil bool, canChange bool,
  35311. d *Decoder) (_ map[int64]int64, changed bool) {
  35312. dd := d.d
  35313. cr := d.cr
  35314. if checkNil && dd.TryDecodeAsNil() {
  35315. if v != nil {
  35316. changed = true
  35317. }
  35318. return nil, changed
  35319. }
  35320. containerLen := dd.ReadMapStart()
  35321. if canChange && v == nil {
  35322. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35323. v = make(map[int64]int64, xlen)
  35324. changed = true
  35325. }
  35326. var mk int64
  35327. var mv int64
  35328. if containerLen > 0 {
  35329. for j := 0; j < containerLen; j++ {
  35330. if cr != nil {
  35331. cr.sendContainerState(containerMapKey)
  35332. }
  35333. mk = dd.DecodeInt(64)
  35334. if cr != nil {
  35335. cr.sendContainerState(containerMapValue)
  35336. }
  35337. mv = dd.DecodeInt(64)
  35338. if v != nil {
  35339. v[mk] = mv
  35340. }
  35341. }
  35342. } else if containerLen < 0 {
  35343. for j := 0; !dd.CheckBreak(); j++ {
  35344. if cr != nil {
  35345. cr.sendContainerState(containerMapKey)
  35346. }
  35347. mk = dd.DecodeInt(64)
  35348. if cr != nil {
  35349. cr.sendContainerState(containerMapValue)
  35350. }
  35351. mv = dd.DecodeInt(64)
  35352. if v != nil {
  35353. v[mk] = mv
  35354. }
  35355. }
  35356. }
  35357. if cr != nil {
  35358. cr.sendContainerState(containerMapEnd)
  35359. }
  35360. return v, changed
  35361. }
  35362. func (f *decFnInfo) fastpathDecMapInt64Float32R(rv reflect.Value) {
  35363. if rv.CanAddr() {
  35364. vp := rv.Addr().Interface().(*map[int64]float32)
  35365. v, changed := fastpathTV.DecMapInt64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  35366. if changed {
  35367. *vp = v
  35368. }
  35369. } else {
  35370. v := rv.Interface().(map[int64]float32)
  35371. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, f.d)
  35372. }
  35373. }
  35374. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, checkNil bool, d *Decoder) {
  35375. v, changed := f.DecMapInt64Float32V(*vp, checkNil, true, d)
  35376. if changed {
  35377. *vp = v
  35378. }
  35379. }
  35380. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, checkNil bool, canChange bool,
  35381. d *Decoder) (_ map[int64]float32, changed bool) {
  35382. dd := d.d
  35383. cr := d.cr
  35384. if checkNil && dd.TryDecodeAsNil() {
  35385. if v != nil {
  35386. changed = true
  35387. }
  35388. return nil, changed
  35389. }
  35390. containerLen := dd.ReadMapStart()
  35391. if canChange && v == nil {
  35392. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  35393. v = make(map[int64]float32, xlen)
  35394. changed = true
  35395. }
  35396. var mk int64
  35397. var mv float32
  35398. if containerLen > 0 {
  35399. for j := 0; j < containerLen; j++ {
  35400. if cr != nil {
  35401. cr.sendContainerState(containerMapKey)
  35402. }
  35403. mk = dd.DecodeInt(64)
  35404. if cr != nil {
  35405. cr.sendContainerState(containerMapValue)
  35406. }
  35407. mv = float32(dd.DecodeFloat(true))
  35408. if v != nil {
  35409. v[mk] = mv
  35410. }
  35411. }
  35412. } else if containerLen < 0 {
  35413. for j := 0; !dd.CheckBreak(); j++ {
  35414. if cr != nil {
  35415. cr.sendContainerState(containerMapKey)
  35416. }
  35417. mk = dd.DecodeInt(64)
  35418. if cr != nil {
  35419. cr.sendContainerState(containerMapValue)
  35420. }
  35421. mv = float32(dd.DecodeFloat(true))
  35422. if v != nil {
  35423. v[mk] = mv
  35424. }
  35425. }
  35426. }
  35427. if cr != nil {
  35428. cr.sendContainerState(containerMapEnd)
  35429. }
  35430. return v, changed
  35431. }
  35432. func (f *decFnInfo) fastpathDecMapInt64Float64R(rv reflect.Value) {
  35433. if rv.CanAddr() {
  35434. vp := rv.Addr().Interface().(*map[int64]float64)
  35435. v, changed := fastpathTV.DecMapInt64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  35436. if changed {
  35437. *vp = v
  35438. }
  35439. } else {
  35440. v := rv.Interface().(map[int64]float64)
  35441. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, f.d)
  35442. }
  35443. }
  35444. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, checkNil bool, d *Decoder) {
  35445. v, changed := f.DecMapInt64Float64V(*vp, checkNil, true, d)
  35446. if changed {
  35447. *vp = v
  35448. }
  35449. }
  35450. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, checkNil bool, canChange bool,
  35451. d *Decoder) (_ map[int64]float64, changed bool) {
  35452. dd := d.d
  35453. cr := d.cr
  35454. if checkNil && dd.TryDecodeAsNil() {
  35455. if v != nil {
  35456. changed = true
  35457. }
  35458. return nil, changed
  35459. }
  35460. containerLen := dd.ReadMapStart()
  35461. if canChange && v == nil {
  35462. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35463. v = make(map[int64]float64, xlen)
  35464. changed = true
  35465. }
  35466. var mk int64
  35467. var mv float64
  35468. if containerLen > 0 {
  35469. for j := 0; j < containerLen; j++ {
  35470. if cr != nil {
  35471. cr.sendContainerState(containerMapKey)
  35472. }
  35473. mk = dd.DecodeInt(64)
  35474. if cr != nil {
  35475. cr.sendContainerState(containerMapValue)
  35476. }
  35477. mv = dd.DecodeFloat(false)
  35478. if v != nil {
  35479. v[mk] = mv
  35480. }
  35481. }
  35482. } else if containerLen < 0 {
  35483. for j := 0; !dd.CheckBreak(); j++ {
  35484. if cr != nil {
  35485. cr.sendContainerState(containerMapKey)
  35486. }
  35487. mk = dd.DecodeInt(64)
  35488. if cr != nil {
  35489. cr.sendContainerState(containerMapValue)
  35490. }
  35491. mv = dd.DecodeFloat(false)
  35492. if v != nil {
  35493. v[mk] = mv
  35494. }
  35495. }
  35496. }
  35497. if cr != nil {
  35498. cr.sendContainerState(containerMapEnd)
  35499. }
  35500. return v, changed
  35501. }
  35502. func (f *decFnInfo) fastpathDecMapInt64BoolR(rv reflect.Value) {
  35503. if rv.CanAddr() {
  35504. vp := rv.Addr().Interface().(*map[int64]bool)
  35505. v, changed := fastpathTV.DecMapInt64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  35506. if changed {
  35507. *vp = v
  35508. }
  35509. } else {
  35510. v := rv.Interface().(map[int64]bool)
  35511. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, f.d)
  35512. }
  35513. }
  35514. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, checkNil bool, d *Decoder) {
  35515. v, changed := f.DecMapInt64BoolV(*vp, checkNil, true, d)
  35516. if changed {
  35517. *vp = v
  35518. }
  35519. }
  35520. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, checkNil bool, canChange bool,
  35521. d *Decoder) (_ map[int64]bool, changed bool) {
  35522. dd := d.d
  35523. cr := d.cr
  35524. if checkNil && dd.TryDecodeAsNil() {
  35525. if v != nil {
  35526. changed = true
  35527. }
  35528. return nil, changed
  35529. }
  35530. containerLen := dd.ReadMapStart()
  35531. if canChange && v == nil {
  35532. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  35533. v = make(map[int64]bool, xlen)
  35534. changed = true
  35535. }
  35536. var mk int64
  35537. var mv bool
  35538. if containerLen > 0 {
  35539. for j := 0; j < containerLen; j++ {
  35540. if cr != nil {
  35541. cr.sendContainerState(containerMapKey)
  35542. }
  35543. mk = dd.DecodeInt(64)
  35544. if cr != nil {
  35545. cr.sendContainerState(containerMapValue)
  35546. }
  35547. mv = dd.DecodeBool()
  35548. if v != nil {
  35549. v[mk] = mv
  35550. }
  35551. }
  35552. } else if containerLen < 0 {
  35553. for j := 0; !dd.CheckBreak(); j++ {
  35554. if cr != nil {
  35555. cr.sendContainerState(containerMapKey)
  35556. }
  35557. mk = dd.DecodeInt(64)
  35558. if cr != nil {
  35559. cr.sendContainerState(containerMapValue)
  35560. }
  35561. mv = dd.DecodeBool()
  35562. if v != nil {
  35563. v[mk] = mv
  35564. }
  35565. }
  35566. }
  35567. if cr != nil {
  35568. cr.sendContainerState(containerMapEnd)
  35569. }
  35570. return v, changed
  35571. }
  35572. func (f *decFnInfo) fastpathDecMapBoolIntfR(rv reflect.Value) {
  35573. if rv.CanAddr() {
  35574. vp := rv.Addr().Interface().(*map[bool]interface{})
  35575. v, changed := fastpathTV.DecMapBoolIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  35576. if changed {
  35577. *vp = v
  35578. }
  35579. } else {
  35580. v := rv.Interface().(map[bool]interface{})
  35581. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, f.d)
  35582. }
  35583. }
  35584. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, checkNil bool, d *Decoder) {
  35585. v, changed := f.DecMapBoolIntfV(*vp, checkNil, true, d)
  35586. if changed {
  35587. *vp = v
  35588. }
  35589. }
  35590. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, checkNil bool, canChange bool,
  35591. d *Decoder) (_ map[bool]interface{}, changed bool) {
  35592. dd := d.d
  35593. cr := d.cr
  35594. if checkNil && dd.TryDecodeAsNil() {
  35595. if v != nil {
  35596. changed = true
  35597. }
  35598. return nil, changed
  35599. }
  35600. containerLen := dd.ReadMapStart()
  35601. if canChange && v == nil {
  35602. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  35603. v = make(map[bool]interface{}, xlen)
  35604. changed = true
  35605. }
  35606. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  35607. var mk bool
  35608. var mv interface{}
  35609. if containerLen > 0 {
  35610. for j := 0; j < containerLen; j++ {
  35611. if cr != nil {
  35612. cr.sendContainerState(containerMapKey)
  35613. }
  35614. mk = dd.DecodeBool()
  35615. if cr != nil {
  35616. cr.sendContainerState(containerMapValue)
  35617. }
  35618. if mapGet {
  35619. mv = v[mk]
  35620. } else {
  35621. mv = nil
  35622. }
  35623. d.decode(&mv)
  35624. if v != nil {
  35625. v[mk] = mv
  35626. }
  35627. }
  35628. } else if containerLen < 0 {
  35629. for j := 0; !dd.CheckBreak(); j++ {
  35630. if cr != nil {
  35631. cr.sendContainerState(containerMapKey)
  35632. }
  35633. mk = dd.DecodeBool()
  35634. if cr != nil {
  35635. cr.sendContainerState(containerMapValue)
  35636. }
  35637. if mapGet {
  35638. mv = v[mk]
  35639. } else {
  35640. mv = nil
  35641. }
  35642. d.decode(&mv)
  35643. if v != nil {
  35644. v[mk] = mv
  35645. }
  35646. }
  35647. }
  35648. if cr != nil {
  35649. cr.sendContainerState(containerMapEnd)
  35650. }
  35651. return v, changed
  35652. }
  35653. func (f *decFnInfo) fastpathDecMapBoolStringR(rv reflect.Value) {
  35654. if rv.CanAddr() {
  35655. vp := rv.Addr().Interface().(*map[bool]string)
  35656. v, changed := fastpathTV.DecMapBoolStringV(*vp, fastpathCheckNilFalse, true, f.d)
  35657. if changed {
  35658. *vp = v
  35659. }
  35660. } else {
  35661. v := rv.Interface().(map[bool]string)
  35662. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, f.d)
  35663. }
  35664. }
  35665. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, checkNil bool, d *Decoder) {
  35666. v, changed := f.DecMapBoolStringV(*vp, checkNil, true, d)
  35667. if changed {
  35668. *vp = v
  35669. }
  35670. }
  35671. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, checkNil bool, canChange bool,
  35672. d *Decoder) (_ map[bool]string, changed bool) {
  35673. dd := d.d
  35674. cr := d.cr
  35675. if checkNil && dd.TryDecodeAsNil() {
  35676. if v != nil {
  35677. changed = true
  35678. }
  35679. return nil, changed
  35680. }
  35681. containerLen := dd.ReadMapStart()
  35682. if canChange && v == nil {
  35683. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  35684. v = make(map[bool]string, xlen)
  35685. changed = true
  35686. }
  35687. var mk bool
  35688. var mv string
  35689. if containerLen > 0 {
  35690. for j := 0; j < containerLen; j++ {
  35691. if cr != nil {
  35692. cr.sendContainerState(containerMapKey)
  35693. }
  35694. mk = dd.DecodeBool()
  35695. if cr != nil {
  35696. cr.sendContainerState(containerMapValue)
  35697. }
  35698. mv = dd.DecodeString()
  35699. if v != nil {
  35700. v[mk] = mv
  35701. }
  35702. }
  35703. } else if containerLen < 0 {
  35704. for j := 0; !dd.CheckBreak(); j++ {
  35705. if cr != nil {
  35706. cr.sendContainerState(containerMapKey)
  35707. }
  35708. mk = dd.DecodeBool()
  35709. if cr != nil {
  35710. cr.sendContainerState(containerMapValue)
  35711. }
  35712. mv = dd.DecodeString()
  35713. if v != nil {
  35714. v[mk] = mv
  35715. }
  35716. }
  35717. }
  35718. if cr != nil {
  35719. cr.sendContainerState(containerMapEnd)
  35720. }
  35721. return v, changed
  35722. }
  35723. func (f *decFnInfo) fastpathDecMapBoolUintR(rv reflect.Value) {
  35724. if rv.CanAddr() {
  35725. vp := rv.Addr().Interface().(*map[bool]uint)
  35726. v, changed := fastpathTV.DecMapBoolUintV(*vp, fastpathCheckNilFalse, true, f.d)
  35727. if changed {
  35728. *vp = v
  35729. }
  35730. } else {
  35731. v := rv.Interface().(map[bool]uint)
  35732. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, f.d)
  35733. }
  35734. }
  35735. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, checkNil bool, d *Decoder) {
  35736. v, changed := f.DecMapBoolUintV(*vp, checkNil, true, d)
  35737. if changed {
  35738. *vp = v
  35739. }
  35740. }
  35741. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, checkNil bool, canChange bool,
  35742. d *Decoder) (_ map[bool]uint, changed bool) {
  35743. dd := d.d
  35744. cr := d.cr
  35745. if checkNil && dd.TryDecodeAsNil() {
  35746. if v != nil {
  35747. changed = true
  35748. }
  35749. return nil, changed
  35750. }
  35751. containerLen := dd.ReadMapStart()
  35752. if canChange && v == nil {
  35753. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  35754. v = make(map[bool]uint, xlen)
  35755. changed = true
  35756. }
  35757. var mk bool
  35758. var mv uint
  35759. if containerLen > 0 {
  35760. for j := 0; j < containerLen; j++ {
  35761. if cr != nil {
  35762. cr.sendContainerState(containerMapKey)
  35763. }
  35764. mk = dd.DecodeBool()
  35765. if cr != nil {
  35766. cr.sendContainerState(containerMapValue)
  35767. }
  35768. mv = uint(dd.DecodeUint(uintBitsize))
  35769. if v != nil {
  35770. v[mk] = mv
  35771. }
  35772. }
  35773. } else if containerLen < 0 {
  35774. for j := 0; !dd.CheckBreak(); j++ {
  35775. if cr != nil {
  35776. cr.sendContainerState(containerMapKey)
  35777. }
  35778. mk = dd.DecodeBool()
  35779. if cr != nil {
  35780. cr.sendContainerState(containerMapValue)
  35781. }
  35782. mv = uint(dd.DecodeUint(uintBitsize))
  35783. if v != nil {
  35784. v[mk] = mv
  35785. }
  35786. }
  35787. }
  35788. if cr != nil {
  35789. cr.sendContainerState(containerMapEnd)
  35790. }
  35791. return v, changed
  35792. }
  35793. func (f *decFnInfo) fastpathDecMapBoolUint8R(rv reflect.Value) {
  35794. if rv.CanAddr() {
  35795. vp := rv.Addr().Interface().(*map[bool]uint8)
  35796. v, changed := fastpathTV.DecMapBoolUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  35797. if changed {
  35798. *vp = v
  35799. }
  35800. } else {
  35801. v := rv.Interface().(map[bool]uint8)
  35802. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, f.d)
  35803. }
  35804. }
  35805. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, checkNil bool, d *Decoder) {
  35806. v, changed := f.DecMapBoolUint8V(*vp, checkNil, true, d)
  35807. if changed {
  35808. *vp = v
  35809. }
  35810. }
  35811. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, checkNil bool, canChange bool,
  35812. d *Decoder) (_ map[bool]uint8, changed bool) {
  35813. dd := d.d
  35814. cr := d.cr
  35815. if checkNil && dd.TryDecodeAsNil() {
  35816. if v != nil {
  35817. changed = true
  35818. }
  35819. return nil, changed
  35820. }
  35821. containerLen := dd.ReadMapStart()
  35822. if canChange && v == nil {
  35823. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  35824. v = make(map[bool]uint8, xlen)
  35825. changed = true
  35826. }
  35827. var mk bool
  35828. var mv uint8
  35829. if containerLen > 0 {
  35830. for j := 0; j < containerLen; j++ {
  35831. if cr != nil {
  35832. cr.sendContainerState(containerMapKey)
  35833. }
  35834. mk = dd.DecodeBool()
  35835. if cr != nil {
  35836. cr.sendContainerState(containerMapValue)
  35837. }
  35838. mv = uint8(dd.DecodeUint(8))
  35839. if v != nil {
  35840. v[mk] = mv
  35841. }
  35842. }
  35843. } else if containerLen < 0 {
  35844. for j := 0; !dd.CheckBreak(); j++ {
  35845. if cr != nil {
  35846. cr.sendContainerState(containerMapKey)
  35847. }
  35848. mk = dd.DecodeBool()
  35849. if cr != nil {
  35850. cr.sendContainerState(containerMapValue)
  35851. }
  35852. mv = uint8(dd.DecodeUint(8))
  35853. if v != nil {
  35854. v[mk] = mv
  35855. }
  35856. }
  35857. }
  35858. if cr != nil {
  35859. cr.sendContainerState(containerMapEnd)
  35860. }
  35861. return v, changed
  35862. }
  35863. func (f *decFnInfo) fastpathDecMapBoolUint16R(rv reflect.Value) {
  35864. if rv.CanAddr() {
  35865. vp := rv.Addr().Interface().(*map[bool]uint16)
  35866. v, changed := fastpathTV.DecMapBoolUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  35867. if changed {
  35868. *vp = v
  35869. }
  35870. } else {
  35871. v := rv.Interface().(map[bool]uint16)
  35872. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, f.d)
  35873. }
  35874. }
  35875. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, checkNil bool, d *Decoder) {
  35876. v, changed := f.DecMapBoolUint16V(*vp, checkNil, true, d)
  35877. if changed {
  35878. *vp = v
  35879. }
  35880. }
  35881. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, checkNil bool, canChange bool,
  35882. d *Decoder) (_ map[bool]uint16, changed bool) {
  35883. dd := d.d
  35884. cr := d.cr
  35885. if checkNil && dd.TryDecodeAsNil() {
  35886. if v != nil {
  35887. changed = true
  35888. }
  35889. return nil, changed
  35890. }
  35891. containerLen := dd.ReadMapStart()
  35892. if canChange && v == nil {
  35893. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  35894. v = make(map[bool]uint16, xlen)
  35895. changed = true
  35896. }
  35897. var mk bool
  35898. var mv uint16
  35899. if containerLen > 0 {
  35900. for j := 0; j < containerLen; j++ {
  35901. if cr != nil {
  35902. cr.sendContainerState(containerMapKey)
  35903. }
  35904. mk = dd.DecodeBool()
  35905. if cr != nil {
  35906. cr.sendContainerState(containerMapValue)
  35907. }
  35908. mv = uint16(dd.DecodeUint(16))
  35909. if v != nil {
  35910. v[mk] = mv
  35911. }
  35912. }
  35913. } else if containerLen < 0 {
  35914. for j := 0; !dd.CheckBreak(); j++ {
  35915. if cr != nil {
  35916. cr.sendContainerState(containerMapKey)
  35917. }
  35918. mk = dd.DecodeBool()
  35919. if cr != nil {
  35920. cr.sendContainerState(containerMapValue)
  35921. }
  35922. mv = uint16(dd.DecodeUint(16))
  35923. if v != nil {
  35924. v[mk] = mv
  35925. }
  35926. }
  35927. }
  35928. if cr != nil {
  35929. cr.sendContainerState(containerMapEnd)
  35930. }
  35931. return v, changed
  35932. }
  35933. func (f *decFnInfo) fastpathDecMapBoolUint32R(rv reflect.Value) {
  35934. if rv.CanAddr() {
  35935. vp := rv.Addr().Interface().(*map[bool]uint32)
  35936. v, changed := fastpathTV.DecMapBoolUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  35937. if changed {
  35938. *vp = v
  35939. }
  35940. } else {
  35941. v := rv.Interface().(map[bool]uint32)
  35942. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, f.d)
  35943. }
  35944. }
  35945. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, checkNil bool, d *Decoder) {
  35946. v, changed := f.DecMapBoolUint32V(*vp, checkNil, true, d)
  35947. if changed {
  35948. *vp = v
  35949. }
  35950. }
  35951. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, checkNil bool, canChange bool,
  35952. d *Decoder) (_ map[bool]uint32, changed bool) {
  35953. dd := d.d
  35954. cr := d.cr
  35955. if checkNil && dd.TryDecodeAsNil() {
  35956. if v != nil {
  35957. changed = true
  35958. }
  35959. return nil, changed
  35960. }
  35961. containerLen := dd.ReadMapStart()
  35962. if canChange && v == nil {
  35963. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  35964. v = make(map[bool]uint32, xlen)
  35965. changed = true
  35966. }
  35967. var mk bool
  35968. var mv uint32
  35969. if containerLen > 0 {
  35970. for j := 0; j < containerLen; j++ {
  35971. if cr != nil {
  35972. cr.sendContainerState(containerMapKey)
  35973. }
  35974. mk = dd.DecodeBool()
  35975. if cr != nil {
  35976. cr.sendContainerState(containerMapValue)
  35977. }
  35978. mv = uint32(dd.DecodeUint(32))
  35979. if v != nil {
  35980. v[mk] = mv
  35981. }
  35982. }
  35983. } else if containerLen < 0 {
  35984. for j := 0; !dd.CheckBreak(); j++ {
  35985. if cr != nil {
  35986. cr.sendContainerState(containerMapKey)
  35987. }
  35988. mk = dd.DecodeBool()
  35989. if cr != nil {
  35990. cr.sendContainerState(containerMapValue)
  35991. }
  35992. mv = uint32(dd.DecodeUint(32))
  35993. if v != nil {
  35994. v[mk] = mv
  35995. }
  35996. }
  35997. }
  35998. if cr != nil {
  35999. cr.sendContainerState(containerMapEnd)
  36000. }
  36001. return v, changed
  36002. }
  36003. func (f *decFnInfo) fastpathDecMapBoolUint64R(rv reflect.Value) {
  36004. if rv.CanAddr() {
  36005. vp := rv.Addr().Interface().(*map[bool]uint64)
  36006. v, changed := fastpathTV.DecMapBoolUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  36007. if changed {
  36008. *vp = v
  36009. }
  36010. } else {
  36011. v := rv.Interface().(map[bool]uint64)
  36012. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, f.d)
  36013. }
  36014. }
  36015. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, checkNil bool, d *Decoder) {
  36016. v, changed := f.DecMapBoolUint64V(*vp, checkNil, true, d)
  36017. if changed {
  36018. *vp = v
  36019. }
  36020. }
  36021. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, checkNil bool, canChange bool,
  36022. d *Decoder) (_ map[bool]uint64, changed bool) {
  36023. dd := d.d
  36024. cr := d.cr
  36025. if checkNil && dd.TryDecodeAsNil() {
  36026. if v != nil {
  36027. changed = true
  36028. }
  36029. return nil, changed
  36030. }
  36031. containerLen := dd.ReadMapStart()
  36032. if canChange && v == nil {
  36033. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36034. v = make(map[bool]uint64, xlen)
  36035. changed = true
  36036. }
  36037. var mk bool
  36038. var mv uint64
  36039. if containerLen > 0 {
  36040. for j := 0; j < containerLen; j++ {
  36041. if cr != nil {
  36042. cr.sendContainerState(containerMapKey)
  36043. }
  36044. mk = dd.DecodeBool()
  36045. if cr != nil {
  36046. cr.sendContainerState(containerMapValue)
  36047. }
  36048. mv = dd.DecodeUint(64)
  36049. if v != nil {
  36050. v[mk] = mv
  36051. }
  36052. }
  36053. } else if containerLen < 0 {
  36054. for j := 0; !dd.CheckBreak(); j++ {
  36055. if cr != nil {
  36056. cr.sendContainerState(containerMapKey)
  36057. }
  36058. mk = dd.DecodeBool()
  36059. if cr != nil {
  36060. cr.sendContainerState(containerMapValue)
  36061. }
  36062. mv = dd.DecodeUint(64)
  36063. if v != nil {
  36064. v[mk] = mv
  36065. }
  36066. }
  36067. }
  36068. if cr != nil {
  36069. cr.sendContainerState(containerMapEnd)
  36070. }
  36071. return v, changed
  36072. }
  36073. func (f *decFnInfo) fastpathDecMapBoolUintptrR(rv reflect.Value) {
  36074. if rv.CanAddr() {
  36075. vp := rv.Addr().Interface().(*map[bool]uintptr)
  36076. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  36077. if changed {
  36078. *vp = v
  36079. }
  36080. } else {
  36081. v := rv.Interface().(map[bool]uintptr)
  36082. fastpathTV.DecMapBoolUintptrV(v, fastpathCheckNilFalse, false, f.d)
  36083. }
  36084. }
  36085. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, checkNil bool, d *Decoder) {
  36086. v, changed := f.DecMapBoolUintptrV(*vp, checkNil, true, d)
  36087. if changed {
  36088. *vp = v
  36089. }
  36090. }
  36091. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, checkNil bool, canChange bool,
  36092. d *Decoder) (_ map[bool]uintptr, changed bool) {
  36093. dd := d.d
  36094. cr := d.cr
  36095. if checkNil && dd.TryDecodeAsNil() {
  36096. if v != nil {
  36097. changed = true
  36098. }
  36099. return nil, changed
  36100. }
  36101. containerLen := dd.ReadMapStart()
  36102. if canChange && v == nil {
  36103. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36104. v = make(map[bool]uintptr, xlen)
  36105. changed = true
  36106. }
  36107. var mk bool
  36108. var mv uintptr
  36109. if containerLen > 0 {
  36110. for j := 0; j < containerLen; j++ {
  36111. if cr != nil {
  36112. cr.sendContainerState(containerMapKey)
  36113. }
  36114. mk = dd.DecodeBool()
  36115. if cr != nil {
  36116. cr.sendContainerState(containerMapValue)
  36117. }
  36118. mv = uintptr(dd.DecodeUint(uintBitsize))
  36119. if v != nil {
  36120. v[mk] = mv
  36121. }
  36122. }
  36123. } else if containerLen < 0 {
  36124. for j := 0; !dd.CheckBreak(); j++ {
  36125. if cr != nil {
  36126. cr.sendContainerState(containerMapKey)
  36127. }
  36128. mk = dd.DecodeBool()
  36129. if cr != nil {
  36130. cr.sendContainerState(containerMapValue)
  36131. }
  36132. mv = uintptr(dd.DecodeUint(uintBitsize))
  36133. if v != nil {
  36134. v[mk] = mv
  36135. }
  36136. }
  36137. }
  36138. if cr != nil {
  36139. cr.sendContainerState(containerMapEnd)
  36140. }
  36141. return v, changed
  36142. }
  36143. func (f *decFnInfo) fastpathDecMapBoolIntR(rv reflect.Value) {
  36144. if rv.CanAddr() {
  36145. vp := rv.Addr().Interface().(*map[bool]int)
  36146. v, changed := fastpathTV.DecMapBoolIntV(*vp, fastpathCheckNilFalse, true, f.d)
  36147. if changed {
  36148. *vp = v
  36149. }
  36150. } else {
  36151. v := rv.Interface().(map[bool]int)
  36152. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, f.d)
  36153. }
  36154. }
  36155. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, checkNil bool, d *Decoder) {
  36156. v, changed := f.DecMapBoolIntV(*vp, checkNil, true, d)
  36157. if changed {
  36158. *vp = v
  36159. }
  36160. }
  36161. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, checkNil bool, canChange bool,
  36162. d *Decoder) (_ map[bool]int, changed bool) {
  36163. dd := d.d
  36164. cr := d.cr
  36165. if checkNil && dd.TryDecodeAsNil() {
  36166. if v != nil {
  36167. changed = true
  36168. }
  36169. return nil, changed
  36170. }
  36171. containerLen := dd.ReadMapStart()
  36172. if canChange && v == nil {
  36173. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36174. v = make(map[bool]int, xlen)
  36175. changed = true
  36176. }
  36177. var mk bool
  36178. var mv int
  36179. if containerLen > 0 {
  36180. for j := 0; j < containerLen; j++ {
  36181. if cr != nil {
  36182. cr.sendContainerState(containerMapKey)
  36183. }
  36184. mk = dd.DecodeBool()
  36185. if cr != nil {
  36186. cr.sendContainerState(containerMapValue)
  36187. }
  36188. mv = int(dd.DecodeInt(intBitsize))
  36189. if v != nil {
  36190. v[mk] = mv
  36191. }
  36192. }
  36193. } else if containerLen < 0 {
  36194. for j := 0; !dd.CheckBreak(); j++ {
  36195. if cr != nil {
  36196. cr.sendContainerState(containerMapKey)
  36197. }
  36198. mk = dd.DecodeBool()
  36199. if cr != nil {
  36200. cr.sendContainerState(containerMapValue)
  36201. }
  36202. mv = int(dd.DecodeInt(intBitsize))
  36203. if v != nil {
  36204. v[mk] = mv
  36205. }
  36206. }
  36207. }
  36208. if cr != nil {
  36209. cr.sendContainerState(containerMapEnd)
  36210. }
  36211. return v, changed
  36212. }
  36213. func (f *decFnInfo) fastpathDecMapBoolInt8R(rv reflect.Value) {
  36214. if rv.CanAddr() {
  36215. vp := rv.Addr().Interface().(*map[bool]int8)
  36216. v, changed := fastpathTV.DecMapBoolInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  36217. if changed {
  36218. *vp = v
  36219. }
  36220. } else {
  36221. v := rv.Interface().(map[bool]int8)
  36222. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, f.d)
  36223. }
  36224. }
  36225. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, checkNil bool, d *Decoder) {
  36226. v, changed := f.DecMapBoolInt8V(*vp, checkNil, true, d)
  36227. if changed {
  36228. *vp = v
  36229. }
  36230. }
  36231. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, checkNil bool, canChange bool,
  36232. d *Decoder) (_ map[bool]int8, changed bool) {
  36233. dd := d.d
  36234. cr := d.cr
  36235. if checkNil && dd.TryDecodeAsNil() {
  36236. if v != nil {
  36237. changed = true
  36238. }
  36239. return nil, changed
  36240. }
  36241. containerLen := dd.ReadMapStart()
  36242. if canChange && v == nil {
  36243. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  36244. v = make(map[bool]int8, xlen)
  36245. changed = true
  36246. }
  36247. var mk bool
  36248. var mv int8
  36249. if containerLen > 0 {
  36250. for j := 0; j < containerLen; j++ {
  36251. if cr != nil {
  36252. cr.sendContainerState(containerMapKey)
  36253. }
  36254. mk = dd.DecodeBool()
  36255. if cr != nil {
  36256. cr.sendContainerState(containerMapValue)
  36257. }
  36258. mv = int8(dd.DecodeInt(8))
  36259. if v != nil {
  36260. v[mk] = mv
  36261. }
  36262. }
  36263. } else if containerLen < 0 {
  36264. for j := 0; !dd.CheckBreak(); j++ {
  36265. if cr != nil {
  36266. cr.sendContainerState(containerMapKey)
  36267. }
  36268. mk = dd.DecodeBool()
  36269. if cr != nil {
  36270. cr.sendContainerState(containerMapValue)
  36271. }
  36272. mv = int8(dd.DecodeInt(8))
  36273. if v != nil {
  36274. v[mk] = mv
  36275. }
  36276. }
  36277. }
  36278. if cr != nil {
  36279. cr.sendContainerState(containerMapEnd)
  36280. }
  36281. return v, changed
  36282. }
  36283. func (f *decFnInfo) fastpathDecMapBoolInt16R(rv reflect.Value) {
  36284. if rv.CanAddr() {
  36285. vp := rv.Addr().Interface().(*map[bool]int16)
  36286. v, changed := fastpathTV.DecMapBoolInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  36287. if changed {
  36288. *vp = v
  36289. }
  36290. } else {
  36291. v := rv.Interface().(map[bool]int16)
  36292. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, f.d)
  36293. }
  36294. }
  36295. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, checkNil bool, d *Decoder) {
  36296. v, changed := f.DecMapBoolInt16V(*vp, checkNil, true, d)
  36297. if changed {
  36298. *vp = v
  36299. }
  36300. }
  36301. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, checkNil bool, canChange bool,
  36302. d *Decoder) (_ map[bool]int16, changed bool) {
  36303. dd := d.d
  36304. cr := d.cr
  36305. if checkNil && dd.TryDecodeAsNil() {
  36306. if v != nil {
  36307. changed = true
  36308. }
  36309. return nil, changed
  36310. }
  36311. containerLen := dd.ReadMapStart()
  36312. if canChange && v == nil {
  36313. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  36314. v = make(map[bool]int16, xlen)
  36315. changed = true
  36316. }
  36317. var mk bool
  36318. var mv int16
  36319. if containerLen > 0 {
  36320. for j := 0; j < containerLen; j++ {
  36321. if cr != nil {
  36322. cr.sendContainerState(containerMapKey)
  36323. }
  36324. mk = dd.DecodeBool()
  36325. if cr != nil {
  36326. cr.sendContainerState(containerMapValue)
  36327. }
  36328. mv = int16(dd.DecodeInt(16))
  36329. if v != nil {
  36330. v[mk] = mv
  36331. }
  36332. }
  36333. } else if containerLen < 0 {
  36334. for j := 0; !dd.CheckBreak(); j++ {
  36335. if cr != nil {
  36336. cr.sendContainerState(containerMapKey)
  36337. }
  36338. mk = dd.DecodeBool()
  36339. if cr != nil {
  36340. cr.sendContainerState(containerMapValue)
  36341. }
  36342. mv = int16(dd.DecodeInt(16))
  36343. if v != nil {
  36344. v[mk] = mv
  36345. }
  36346. }
  36347. }
  36348. if cr != nil {
  36349. cr.sendContainerState(containerMapEnd)
  36350. }
  36351. return v, changed
  36352. }
  36353. func (f *decFnInfo) fastpathDecMapBoolInt32R(rv reflect.Value) {
  36354. if rv.CanAddr() {
  36355. vp := rv.Addr().Interface().(*map[bool]int32)
  36356. v, changed := fastpathTV.DecMapBoolInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  36357. if changed {
  36358. *vp = v
  36359. }
  36360. } else {
  36361. v := rv.Interface().(map[bool]int32)
  36362. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, f.d)
  36363. }
  36364. }
  36365. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, checkNil bool, d *Decoder) {
  36366. v, changed := f.DecMapBoolInt32V(*vp, checkNil, true, d)
  36367. if changed {
  36368. *vp = v
  36369. }
  36370. }
  36371. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, checkNil bool, canChange bool,
  36372. d *Decoder) (_ map[bool]int32, changed bool) {
  36373. dd := d.d
  36374. cr := d.cr
  36375. if checkNil && dd.TryDecodeAsNil() {
  36376. if v != nil {
  36377. changed = true
  36378. }
  36379. return nil, changed
  36380. }
  36381. containerLen := dd.ReadMapStart()
  36382. if canChange && v == nil {
  36383. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  36384. v = make(map[bool]int32, xlen)
  36385. changed = true
  36386. }
  36387. var mk bool
  36388. var mv int32
  36389. if containerLen > 0 {
  36390. for j := 0; j < containerLen; j++ {
  36391. if cr != nil {
  36392. cr.sendContainerState(containerMapKey)
  36393. }
  36394. mk = dd.DecodeBool()
  36395. if cr != nil {
  36396. cr.sendContainerState(containerMapValue)
  36397. }
  36398. mv = int32(dd.DecodeInt(32))
  36399. if v != nil {
  36400. v[mk] = mv
  36401. }
  36402. }
  36403. } else if containerLen < 0 {
  36404. for j := 0; !dd.CheckBreak(); j++ {
  36405. if cr != nil {
  36406. cr.sendContainerState(containerMapKey)
  36407. }
  36408. mk = dd.DecodeBool()
  36409. if cr != nil {
  36410. cr.sendContainerState(containerMapValue)
  36411. }
  36412. mv = int32(dd.DecodeInt(32))
  36413. if v != nil {
  36414. v[mk] = mv
  36415. }
  36416. }
  36417. }
  36418. if cr != nil {
  36419. cr.sendContainerState(containerMapEnd)
  36420. }
  36421. return v, changed
  36422. }
  36423. func (f *decFnInfo) fastpathDecMapBoolInt64R(rv reflect.Value) {
  36424. if rv.CanAddr() {
  36425. vp := rv.Addr().Interface().(*map[bool]int64)
  36426. v, changed := fastpathTV.DecMapBoolInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  36427. if changed {
  36428. *vp = v
  36429. }
  36430. } else {
  36431. v := rv.Interface().(map[bool]int64)
  36432. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, f.d)
  36433. }
  36434. }
  36435. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, checkNil bool, d *Decoder) {
  36436. v, changed := f.DecMapBoolInt64V(*vp, checkNil, true, d)
  36437. if changed {
  36438. *vp = v
  36439. }
  36440. }
  36441. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, checkNil bool, canChange bool,
  36442. d *Decoder) (_ map[bool]int64, changed bool) {
  36443. dd := d.d
  36444. cr := d.cr
  36445. if checkNil && dd.TryDecodeAsNil() {
  36446. if v != nil {
  36447. changed = true
  36448. }
  36449. return nil, changed
  36450. }
  36451. containerLen := dd.ReadMapStart()
  36452. if canChange && v == nil {
  36453. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36454. v = make(map[bool]int64, xlen)
  36455. changed = true
  36456. }
  36457. var mk bool
  36458. var mv int64
  36459. if containerLen > 0 {
  36460. for j := 0; j < containerLen; j++ {
  36461. if cr != nil {
  36462. cr.sendContainerState(containerMapKey)
  36463. }
  36464. mk = dd.DecodeBool()
  36465. if cr != nil {
  36466. cr.sendContainerState(containerMapValue)
  36467. }
  36468. mv = dd.DecodeInt(64)
  36469. if v != nil {
  36470. v[mk] = mv
  36471. }
  36472. }
  36473. } else if containerLen < 0 {
  36474. for j := 0; !dd.CheckBreak(); j++ {
  36475. if cr != nil {
  36476. cr.sendContainerState(containerMapKey)
  36477. }
  36478. mk = dd.DecodeBool()
  36479. if cr != nil {
  36480. cr.sendContainerState(containerMapValue)
  36481. }
  36482. mv = dd.DecodeInt(64)
  36483. if v != nil {
  36484. v[mk] = mv
  36485. }
  36486. }
  36487. }
  36488. if cr != nil {
  36489. cr.sendContainerState(containerMapEnd)
  36490. }
  36491. return v, changed
  36492. }
  36493. func (f *decFnInfo) fastpathDecMapBoolFloat32R(rv reflect.Value) {
  36494. if rv.CanAddr() {
  36495. vp := rv.Addr().Interface().(*map[bool]float32)
  36496. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  36497. if changed {
  36498. *vp = v
  36499. }
  36500. } else {
  36501. v := rv.Interface().(map[bool]float32)
  36502. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, f.d)
  36503. }
  36504. }
  36505. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, checkNil bool, d *Decoder) {
  36506. v, changed := f.DecMapBoolFloat32V(*vp, checkNil, true, d)
  36507. if changed {
  36508. *vp = v
  36509. }
  36510. }
  36511. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, checkNil bool, canChange bool,
  36512. d *Decoder) (_ map[bool]float32, changed bool) {
  36513. dd := d.d
  36514. cr := d.cr
  36515. if checkNil && dd.TryDecodeAsNil() {
  36516. if v != nil {
  36517. changed = true
  36518. }
  36519. return nil, changed
  36520. }
  36521. containerLen := dd.ReadMapStart()
  36522. if canChange && v == nil {
  36523. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  36524. v = make(map[bool]float32, xlen)
  36525. changed = true
  36526. }
  36527. var mk bool
  36528. var mv float32
  36529. if containerLen > 0 {
  36530. for j := 0; j < containerLen; j++ {
  36531. if cr != nil {
  36532. cr.sendContainerState(containerMapKey)
  36533. }
  36534. mk = dd.DecodeBool()
  36535. if cr != nil {
  36536. cr.sendContainerState(containerMapValue)
  36537. }
  36538. mv = float32(dd.DecodeFloat(true))
  36539. if v != nil {
  36540. v[mk] = mv
  36541. }
  36542. }
  36543. } else if containerLen < 0 {
  36544. for j := 0; !dd.CheckBreak(); j++ {
  36545. if cr != nil {
  36546. cr.sendContainerState(containerMapKey)
  36547. }
  36548. mk = dd.DecodeBool()
  36549. if cr != nil {
  36550. cr.sendContainerState(containerMapValue)
  36551. }
  36552. mv = float32(dd.DecodeFloat(true))
  36553. if v != nil {
  36554. v[mk] = mv
  36555. }
  36556. }
  36557. }
  36558. if cr != nil {
  36559. cr.sendContainerState(containerMapEnd)
  36560. }
  36561. return v, changed
  36562. }
  36563. func (f *decFnInfo) fastpathDecMapBoolFloat64R(rv reflect.Value) {
  36564. if rv.CanAddr() {
  36565. vp := rv.Addr().Interface().(*map[bool]float64)
  36566. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  36567. if changed {
  36568. *vp = v
  36569. }
  36570. } else {
  36571. v := rv.Interface().(map[bool]float64)
  36572. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, f.d)
  36573. }
  36574. }
  36575. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, checkNil bool, d *Decoder) {
  36576. v, changed := f.DecMapBoolFloat64V(*vp, checkNil, true, d)
  36577. if changed {
  36578. *vp = v
  36579. }
  36580. }
  36581. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, checkNil bool, canChange bool,
  36582. d *Decoder) (_ map[bool]float64, changed bool) {
  36583. dd := d.d
  36584. cr := d.cr
  36585. if checkNil && dd.TryDecodeAsNil() {
  36586. if v != nil {
  36587. changed = true
  36588. }
  36589. return nil, changed
  36590. }
  36591. containerLen := dd.ReadMapStart()
  36592. if canChange && v == nil {
  36593. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36594. v = make(map[bool]float64, xlen)
  36595. changed = true
  36596. }
  36597. var mk bool
  36598. var mv float64
  36599. if containerLen > 0 {
  36600. for j := 0; j < containerLen; j++ {
  36601. if cr != nil {
  36602. cr.sendContainerState(containerMapKey)
  36603. }
  36604. mk = dd.DecodeBool()
  36605. if cr != nil {
  36606. cr.sendContainerState(containerMapValue)
  36607. }
  36608. mv = dd.DecodeFloat(false)
  36609. if v != nil {
  36610. v[mk] = mv
  36611. }
  36612. }
  36613. } else if containerLen < 0 {
  36614. for j := 0; !dd.CheckBreak(); j++ {
  36615. if cr != nil {
  36616. cr.sendContainerState(containerMapKey)
  36617. }
  36618. mk = dd.DecodeBool()
  36619. if cr != nil {
  36620. cr.sendContainerState(containerMapValue)
  36621. }
  36622. mv = dd.DecodeFloat(false)
  36623. if v != nil {
  36624. v[mk] = mv
  36625. }
  36626. }
  36627. }
  36628. if cr != nil {
  36629. cr.sendContainerState(containerMapEnd)
  36630. }
  36631. return v, changed
  36632. }
  36633. func (f *decFnInfo) fastpathDecMapBoolBoolR(rv reflect.Value) {
  36634. if rv.CanAddr() {
  36635. vp := rv.Addr().Interface().(*map[bool]bool)
  36636. v, changed := fastpathTV.DecMapBoolBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  36637. if changed {
  36638. *vp = v
  36639. }
  36640. } else {
  36641. v := rv.Interface().(map[bool]bool)
  36642. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, f.d)
  36643. }
  36644. }
  36645. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, checkNil bool, d *Decoder) {
  36646. v, changed := f.DecMapBoolBoolV(*vp, checkNil, true, d)
  36647. if changed {
  36648. *vp = v
  36649. }
  36650. }
  36651. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, checkNil bool, canChange bool,
  36652. d *Decoder) (_ map[bool]bool, changed bool) {
  36653. dd := d.d
  36654. cr := d.cr
  36655. if checkNil && dd.TryDecodeAsNil() {
  36656. if v != nil {
  36657. changed = true
  36658. }
  36659. return nil, changed
  36660. }
  36661. containerLen := dd.ReadMapStart()
  36662. if canChange && v == nil {
  36663. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  36664. v = make(map[bool]bool, xlen)
  36665. changed = true
  36666. }
  36667. var mk bool
  36668. var mv bool
  36669. if containerLen > 0 {
  36670. for j := 0; j < containerLen; j++ {
  36671. if cr != nil {
  36672. cr.sendContainerState(containerMapKey)
  36673. }
  36674. mk = dd.DecodeBool()
  36675. if cr != nil {
  36676. cr.sendContainerState(containerMapValue)
  36677. }
  36678. mv = dd.DecodeBool()
  36679. if v != nil {
  36680. v[mk] = mv
  36681. }
  36682. }
  36683. } else if containerLen < 0 {
  36684. for j := 0; !dd.CheckBreak(); j++ {
  36685. if cr != nil {
  36686. cr.sendContainerState(containerMapKey)
  36687. }
  36688. mk = dd.DecodeBool()
  36689. if cr != nil {
  36690. cr.sendContainerState(containerMapValue)
  36691. }
  36692. mv = dd.DecodeBool()
  36693. if v != nil {
  36694. v[mk] = mv
  36695. }
  36696. }
  36697. }
  36698. if cr != nil {
  36699. cr.sendContainerState(containerMapEnd)
  36700. }
  36701. return v, changed
  36702. }