fast-path.generated.go 936 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352
  1. // +build !notfastpath
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // ************************************************************
  5. // DO NOT EDIT.
  6. // THIS FILE IS AUTO-GENERATED from fast-path.go.tmpl
  7. // ************************************************************
  8. package codec
  9. // Fast path functions try to create a fast path encode or decode implementation
  10. // for common maps and slices.
  11. //
  12. // We define the functions and register then in this single file
  13. // so as not to pollute the encode.go and decode.go, and create a dependency in there.
  14. // This file can be omitted without causing a build failure.
  15. //
  16. // The advantage of fast paths is:
  17. // - Many calls bypass reflection altogether
  18. //
  19. // Currently support
  20. // - slice of all builtin types,
  21. // - map of all builtin types to string or interface value
  22. // - symmetrical maps of all builtin types (e.g. str-str, uint8-uint8)
  23. // This should provide adequate "typical" implementations.
  24. //
  25. // Note that fast track decode functions must handle values for which an address cannot be obtained.
  26. // For example:
  27. // m2 := map[string]int{}
  28. // p2 := []interface{}{m2}
  29. // // decoding into p2 will bomb if fast track functions do not treat like unaddressable.
  30. //
  31. import (
  32. "reflect"
  33. "sort"
  34. )
  35. const fastpathEnabled = true
  36. const fastpathCheckNilFalse = false // for reflect
  37. const fastpathCheckNilTrue = true // for type switch
  38. type fastpathT struct{}
  39. var fastpathTV fastpathT
  40. type fastpathE struct {
  41. rtid uintptr
  42. rt reflect.Type
  43. encfn func(*encFnInfo, reflect.Value)
  44. decfn func(*decFnInfo, reflect.Value)
  45. }
  46. type fastpathA [271]fastpathE
  47. func (x *fastpathA) index(rtid uintptr) int {
  48. // use binary search to grab the index (adapted from sort/search.go)
  49. h, i, j := 0, 0, 271 // len(x)
  50. for i < j {
  51. h = i + (j-i)/2
  52. if x[h].rtid < rtid {
  53. i = h + 1
  54. } else {
  55. j = h
  56. }
  57. }
  58. if i < 271 && x[i].rtid == rtid {
  59. return i
  60. }
  61. return -1
  62. }
  63. type fastpathAslice []fastpathE
  64. func (x fastpathAslice) Len() int { return len(x) }
  65. func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
  66. func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
  67. var fastpathAV fastpathA
  68. // due to possible initialization loop error, make fastpath in an init()
  69. func init() {
  70. i := 0
  71. fn := func(v interface{}, fe func(*encFnInfo, reflect.Value), fd func(*decFnInfo, reflect.Value)) (f fastpathE) {
  72. xrt := reflect.TypeOf(v)
  73. xptr := reflect.ValueOf(xrt).Pointer()
  74. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  75. i++
  76. return
  77. }
  78. fn([]interface{}(nil), (*encFnInfo).fastpathEncSliceIntfR, (*decFnInfo).fastpathDecSliceIntfR)
  79. fn([]string(nil), (*encFnInfo).fastpathEncSliceStringR, (*decFnInfo).fastpathDecSliceStringR)
  80. fn([]float32(nil), (*encFnInfo).fastpathEncSliceFloat32R, (*decFnInfo).fastpathDecSliceFloat32R)
  81. fn([]float64(nil), (*encFnInfo).fastpathEncSliceFloat64R, (*decFnInfo).fastpathDecSliceFloat64R)
  82. fn([]uint(nil), (*encFnInfo).fastpathEncSliceUintR, (*decFnInfo).fastpathDecSliceUintR)
  83. fn([]uint16(nil), (*encFnInfo).fastpathEncSliceUint16R, (*decFnInfo).fastpathDecSliceUint16R)
  84. fn([]uint32(nil), (*encFnInfo).fastpathEncSliceUint32R, (*decFnInfo).fastpathDecSliceUint32R)
  85. fn([]uint64(nil), (*encFnInfo).fastpathEncSliceUint64R, (*decFnInfo).fastpathDecSliceUint64R)
  86. fn([]uintptr(nil), (*encFnInfo).fastpathEncSliceUintptrR, (*decFnInfo).fastpathDecSliceUintptrR)
  87. fn([]int(nil), (*encFnInfo).fastpathEncSliceIntR, (*decFnInfo).fastpathDecSliceIntR)
  88. fn([]int8(nil), (*encFnInfo).fastpathEncSliceInt8R, (*decFnInfo).fastpathDecSliceInt8R)
  89. fn([]int16(nil), (*encFnInfo).fastpathEncSliceInt16R, (*decFnInfo).fastpathDecSliceInt16R)
  90. fn([]int32(nil), (*encFnInfo).fastpathEncSliceInt32R, (*decFnInfo).fastpathDecSliceInt32R)
  91. fn([]int64(nil), (*encFnInfo).fastpathEncSliceInt64R, (*decFnInfo).fastpathDecSliceInt64R)
  92. fn([]bool(nil), (*encFnInfo).fastpathEncSliceBoolR, (*decFnInfo).fastpathDecSliceBoolR)
  93. fn(map[interface{}]interface{}(nil), (*encFnInfo).fastpathEncMapIntfIntfR, (*decFnInfo).fastpathDecMapIntfIntfR)
  94. fn(map[interface{}]string(nil), (*encFnInfo).fastpathEncMapIntfStringR, (*decFnInfo).fastpathDecMapIntfStringR)
  95. fn(map[interface{}]uint(nil), (*encFnInfo).fastpathEncMapIntfUintR, (*decFnInfo).fastpathDecMapIntfUintR)
  96. fn(map[interface{}]uint8(nil), (*encFnInfo).fastpathEncMapIntfUint8R, (*decFnInfo).fastpathDecMapIntfUint8R)
  97. fn(map[interface{}]uint16(nil), (*encFnInfo).fastpathEncMapIntfUint16R, (*decFnInfo).fastpathDecMapIntfUint16R)
  98. fn(map[interface{}]uint32(nil), (*encFnInfo).fastpathEncMapIntfUint32R, (*decFnInfo).fastpathDecMapIntfUint32R)
  99. fn(map[interface{}]uint64(nil), (*encFnInfo).fastpathEncMapIntfUint64R, (*decFnInfo).fastpathDecMapIntfUint64R)
  100. fn(map[interface{}]uintptr(nil), (*encFnInfo).fastpathEncMapIntfUintptrR, (*decFnInfo).fastpathDecMapIntfUintptrR)
  101. fn(map[interface{}]int(nil), (*encFnInfo).fastpathEncMapIntfIntR, (*decFnInfo).fastpathDecMapIntfIntR)
  102. fn(map[interface{}]int8(nil), (*encFnInfo).fastpathEncMapIntfInt8R, (*decFnInfo).fastpathDecMapIntfInt8R)
  103. fn(map[interface{}]int16(nil), (*encFnInfo).fastpathEncMapIntfInt16R, (*decFnInfo).fastpathDecMapIntfInt16R)
  104. fn(map[interface{}]int32(nil), (*encFnInfo).fastpathEncMapIntfInt32R, (*decFnInfo).fastpathDecMapIntfInt32R)
  105. fn(map[interface{}]int64(nil), (*encFnInfo).fastpathEncMapIntfInt64R, (*decFnInfo).fastpathDecMapIntfInt64R)
  106. fn(map[interface{}]float32(nil), (*encFnInfo).fastpathEncMapIntfFloat32R, (*decFnInfo).fastpathDecMapIntfFloat32R)
  107. fn(map[interface{}]float64(nil), (*encFnInfo).fastpathEncMapIntfFloat64R, (*decFnInfo).fastpathDecMapIntfFloat64R)
  108. fn(map[interface{}]bool(nil), (*encFnInfo).fastpathEncMapIntfBoolR, (*decFnInfo).fastpathDecMapIntfBoolR)
  109. fn(map[string]interface{}(nil), (*encFnInfo).fastpathEncMapStringIntfR, (*decFnInfo).fastpathDecMapStringIntfR)
  110. fn(map[string]string(nil), (*encFnInfo).fastpathEncMapStringStringR, (*decFnInfo).fastpathDecMapStringStringR)
  111. fn(map[string]uint(nil), (*encFnInfo).fastpathEncMapStringUintR, (*decFnInfo).fastpathDecMapStringUintR)
  112. fn(map[string]uint8(nil), (*encFnInfo).fastpathEncMapStringUint8R, (*decFnInfo).fastpathDecMapStringUint8R)
  113. fn(map[string]uint16(nil), (*encFnInfo).fastpathEncMapStringUint16R, (*decFnInfo).fastpathDecMapStringUint16R)
  114. fn(map[string]uint32(nil), (*encFnInfo).fastpathEncMapStringUint32R, (*decFnInfo).fastpathDecMapStringUint32R)
  115. fn(map[string]uint64(nil), (*encFnInfo).fastpathEncMapStringUint64R, (*decFnInfo).fastpathDecMapStringUint64R)
  116. fn(map[string]uintptr(nil), (*encFnInfo).fastpathEncMapStringUintptrR, (*decFnInfo).fastpathDecMapStringUintptrR)
  117. fn(map[string]int(nil), (*encFnInfo).fastpathEncMapStringIntR, (*decFnInfo).fastpathDecMapStringIntR)
  118. fn(map[string]int8(nil), (*encFnInfo).fastpathEncMapStringInt8R, (*decFnInfo).fastpathDecMapStringInt8R)
  119. fn(map[string]int16(nil), (*encFnInfo).fastpathEncMapStringInt16R, (*decFnInfo).fastpathDecMapStringInt16R)
  120. fn(map[string]int32(nil), (*encFnInfo).fastpathEncMapStringInt32R, (*decFnInfo).fastpathDecMapStringInt32R)
  121. fn(map[string]int64(nil), (*encFnInfo).fastpathEncMapStringInt64R, (*decFnInfo).fastpathDecMapStringInt64R)
  122. fn(map[string]float32(nil), (*encFnInfo).fastpathEncMapStringFloat32R, (*decFnInfo).fastpathDecMapStringFloat32R)
  123. fn(map[string]float64(nil), (*encFnInfo).fastpathEncMapStringFloat64R, (*decFnInfo).fastpathDecMapStringFloat64R)
  124. fn(map[string]bool(nil), (*encFnInfo).fastpathEncMapStringBoolR, (*decFnInfo).fastpathDecMapStringBoolR)
  125. fn(map[float32]interface{}(nil), (*encFnInfo).fastpathEncMapFloat32IntfR, (*decFnInfo).fastpathDecMapFloat32IntfR)
  126. fn(map[float32]string(nil), (*encFnInfo).fastpathEncMapFloat32StringR, (*decFnInfo).fastpathDecMapFloat32StringR)
  127. fn(map[float32]uint(nil), (*encFnInfo).fastpathEncMapFloat32UintR, (*decFnInfo).fastpathDecMapFloat32UintR)
  128. fn(map[float32]uint8(nil), (*encFnInfo).fastpathEncMapFloat32Uint8R, (*decFnInfo).fastpathDecMapFloat32Uint8R)
  129. fn(map[float32]uint16(nil), (*encFnInfo).fastpathEncMapFloat32Uint16R, (*decFnInfo).fastpathDecMapFloat32Uint16R)
  130. fn(map[float32]uint32(nil), (*encFnInfo).fastpathEncMapFloat32Uint32R, (*decFnInfo).fastpathDecMapFloat32Uint32R)
  131. fn(map[float32]uint64(nil), (*encFnInfo).fastpathEncMapFloat32Uint64R, (*decFnInfo).fastpathDecMapFloat32Uint64R)
  132. fn(map[float32]uintptr(nil), (*encFnInfo).fastpathEncMapFloat32UintptrR, (*decFnInfo).fastpathDecMapFloat32UintptrR)
  133. fn(map[float32]int(nil), (*encFnInfo).fastpathEncMapFloat32IntR, (*decFnInfo).fastpathDecMapFloat32IntR)
  134. fn(map[float32]int8(nil), (*encFnInfo).fastpathEncMapFloat32Int8R, (*decFnInfo).fastpathDecMapFloat32Int8R)
  135. fn(map[float32]int16(nil), (*encFnInfo).fastpathEncMapFloat32Int16R, (*decFnInfo).fastpathDecMapFloat32Int16R)
  136. fn(map[float32]int32(nil), (*encFnInfo).fastpathEncMapFloat32Int32R, (*decFnInfo).fastpathDecMapFloat32Int32R)
  137. fn(map[float32]int64(nil), (*encFnInfo).fastpathEncMapFloat32Int64R, (*decFnInfo).fastpathDecMapFloat32Int64R)
  138. fn(map[float32]float32(nil), (*encFnInfo).fastpathEncMapFloat32Float32R, (*decFnInfo).fastpathDecMapFloat32Float32R)
  139. fn(map[float32]float64(nil), (*encFnInfo).fastpathEncMapFloat32Float64R, (*decFnInfo).fastpathDecMapFloat32Float64R)
  140. fn(map[float32]bool(nil), (*encFnInfo).fastpathEncMapFloat32BoolR, (*decFnInfo).fastpathDecMapFloat32BoolR)
  141. fn(map[float64]interface{}(nil), (*encFnInfo).fastpathEncMapFloat64IntfR, (*decFnInfo).fastpathDecMapFloat64IntfR)
  142. fn(map[float64]string(nil), (*encFnInfo).fastpathEncMapFloat64StringR, (*decFnInfo).fastpathDecMapFloat64StringR)
  143. fn(map[float64]uint(nil), (*encFnInfo).fastpathEncMapFloat64UintR, (*decFnInfo).fastpathDecMapFloat64UintR)
  144. fn(map[float64]uint8(nil), (*encFnInfo).fastpathEncMapFloat64Uint8R, (*decFnInfo).fastpathDecMapFloat64Uint8R)
  145. fn(map[float64]uint16(nil), (*encFnInfo).fastpathEncMapFloat64Uint16R, (*decFnInfo).fastpathDecMapFloat64Uint16R)
  146. fn(map[float64]uint32(nil), (*encFnInfo).fastpathEncMapFloat64Uint32R, (*decFnInfo).fastpathDecMapFloat64Uint32R)
  147. fn(map[float64]uint64(nil), (*encFnInfo).fastpathEncMapFloat64Uint64R, (*decFnInfo).fastpathDecMapFloat64Uint64R)
  148. fn(map[float64]uintptr(nil), (*encFnInfo).fastpathEncMapFloat64UintptrR, (*decFnInfo).fastpathDecMapFloat64UintptrR)
  149. fn(map[float64]int(nil), (*encFnInfo).fastpathEncMapFloat64IntR, (*decFnInfo).fastpathDecMapFloat64IntR)
  150. fn(map[float64]int8(nil), (*encFnInfo).fastpathEncMapFloat64Int8R, (*decFnInfo).fastpathDecMapFloat64Int8R)
  151. fn(map[float64]int16(nil), (*encFnInfo).fastpathEncMapFloat64Int16R, (*decFnInfo).fastpathDecMapFloat64Int16R)
  152. fn(map[float64]int32(nil), (*encFnInfo).fastpathEncMapFloat64Int32R, (*decFnInfo).fastpathDecMapFloat64Int32R)
  153. fn(map[float64]int64(nil), (*encFnInfo).fastpathEncMapFloat64Int64R, (*decFnInfo).fastpathDecMapFloat64Int64R)
  154. fn(map[float64]float32(nil), (*encFnInfo).fastpathEncMapFloat64Float32R, (*decFnInfo).fastpathDecMapFloat64Float32R)
  155. fn(map[float64]float64(nil), (*encFnInfo).fastpathEncMapFloat64Float64R, (*decFnInfo).fastpathDecMapFloat64Float64R)
  156. fn(map[float64]bool(nil), (*encFnInfo).fastpathEncMapFloat64BoolR, (*decFnInfo).fastpathDecMapFloat64BoolR)
  157. fn(map[uint]interface{}(nil), (*encFnInfo).fastpathEncMapUintIntfR, (*decFnInfo).fastpathDecMapUintIntfR)
  158. fn(map[uint]string(nil), (*encFnInfo).fastpathEncMapUintStringR, (*decFnInfo).fastpathDecMapUintStringR)
  159. fn(map[uint]uint(nil), (*encFnInfo).fastpathEncMapUintUintR, (*decFnInfo).fastpathDecMapUintUintR)
  160. fn(map[uint]uint8(nil), (*encFnInfo).fastpathEncMapUintUint8R, (*decFnInfo).fastpathDecMapUintUint8R)
  161. fn(map[uint]uint16(nil), (*encFnInfo).fastpathEncMapUintUint16R, (*decFnInfo).fastpathDecMapUintUint16R)
  162. fn(map[uint]uint32(nil), (*encFnInfo).fastpathEncMapUintUint32R, (*decFnInfo).fastpathDecMapUintUint32R)
  163. fn(map[uint]uint64(nil), (*encFnInfo).fastpathEncMapUintUint64R, (*decFnInfo).fastpathDecMapUintUint64R)
  164. fn(map[uint]uintptr(nil), (*encFnInfo).fastpathEncMapUintUintptrR, (*decFnInfo).fastpathDecMapUintUintptrR)
  165. fn(map[uint]int(nil), (*encFnInfo).fastpathEncMapUintIntR, (*decFnInfo).fastpathDecMapUintIntR)
  166. fn(map[uint]int8(nil), (*encFnInfo).fastpathEncMapUintInt8R, (*decFnInfo).fastpathDecMapUintInt8R)
  167. fn(map[uint]int16(nil), (*encFnInfo).fastpathEncMapUintInt16R, (*decFnInfo).fastpathDecMapUintInt16R)
  168. fn(map[uint]int32(nil), (*encFnInfo).fastpathEncMapUintInt32R, (*decFnInfo).fastpathDecMapUintInt32R)
  169. fn(map[uint]int64(nil), (*encFnInfo).fastpathEncMapUintInt64R, (*decFnInfo).fastpathDecMapUintInt64R)
  170. fn(map[uint]float32(nil), (*encFnInfo).fastpathEncMapUintFloat32R, (*decFnInfo).fastpathDecMapUintFloat32R)
  171. fn(map[uint]float64(nil), (*encFnInfo).fastpathEncMapUintFloat64R, (*decFnInfo).fastpathDecMapUintFloat64R)
  172. fn(map[uint]bool(nil), (*encFnInfo).fastpathEncMapUintBoolR, (*decFnInfo).fastpathDecMapUintBoolR)
  173. fn(map[uint8]interface{}(nil), (*encFnInfo).fastpathEncMapUint8IntfR, (*decFnInfo).fastpathDecMapUint8IntfR)
  174. fn(map[uint8]string(nil), (*encFnInfo).fastpathEncMapUint8StringR, (*decFnInfo).fastpathDecMapUint8StringR)
  175. fn(map[uint8]uint(nil), (*encFnInfo).fastpathEncMapUint8UintR, (*decFnInfo).fastpathDecMapUint8UintR)
  176. fn(map[uint8]uint8(nil), (*encFnInfo).fastpathEncMapUint8Uint8R, (*decFnInfo).fastpathDecMapUint8Uint8R)
  177. fn(map[uint8]uint16(nil), (*encFnInfo).fastpathEncMapUint8Uint16R, (*decFnInfo).fastpathDecMapUint8Uint16R)
  178. fn(map[uint8]uint32(nil), (*encFnInfo).fastpathEncMapUint8Uint32R, (*decFnInfo).fastpathDecMapUint8Uint32R)
  179. fn(map[uint8]uint64(nil), (*encFnInfo).fastpathEncMapUint8Uint64R, (*decFnInfo).fastpathDecMapUint8Uint64R)
  180. fn(map[uint8]uintptr(nil), (*encFnInfo).fastpathEncMapUint8UintptrR, (*decFnInfo).fastpathDecMapUint8UintptrR)
  181. fn(map[uint8]int(nil), (*encFnInfo).fastpathEncMapUint8IntR, (*decFnInfo).fastpathDecMapUint8IntR)
  182. fn(map[uint8]int8(nil), (*encFnInfo).fastpathEncMapUint8Int8R, (*decFnInfo).fastpathDecMapUint8Int8R)
  183. fn(map[uint8]int16(nil), (*encFnInfo).fastpathEncMapUint8Int16R, (*decFnInfo).fastpathDecMapUint8Int16R)
  184. fn(map[uint8]int32(nil), (*encFnInfo).fastpathEncMapUint8Int32R, (*decFnInfo).fastpathDecMapUint8Int32R)
  185. fn(map[uint8]int64(nil), (*encFnInfo).fastpathEncMapUint8Int64R, (*decFnInfo).fastpathDecMapUint8Int64R)
  186. fn(map[uint8]float32(nil), (*encFnInfo).fastpathEncMapUint8Float32R, (*decFnInfo).fastpathDecMapUint8Float32R)
  187. fn(map[uint8]float64(nil), (*encFnInfo).fastpathEncMapUint8Float64R, (*decFnInfo).fastpathDecMapUint8Float64R)
  188. fn(map[uint8]bool(nil), (*encFnInfo).fastpathEncMapUint8BoolR, (*decFnInfo).fastpathDecMapUint8BoolR)
  189. fn(map[uint16]interface{}(nil), (*encFnInfo).fastpathEncMapUint16IntfR, (*decFnInfo).fastpathDecMapUint16IntfR)
  190. fn(map[uint16]string(nil), (*encFnInfo).fastpathEncMapUint16StringR, (*decFnInfo).fastpathDecMapUint16StringR)
  191. fn(map[uint16]uint(nil), (*encFnInfo).fastpathEncMapUint16UintR, (*decFnInfo).fastpathDecMapUint16UintR)
  192. fn(map[uint16]uint8(nil), (*encFnInfo).fastpathEncMapUint16Uint8R, (*decFnInfo).fastpathDecMapUint16Uint8R)
  193. fn(map[uint16]uint16(nil), (*encFnInfo).fastpathEncMapUint16Uint16R, (*decFnInfo).fastpathDecMapUint16Uint16R)
  194. fn(map[uint16]uint32(nil), (*encFnInfo).fastpathEncMapUint16Uint32R, (*decFnInfo).fastpathDecMapUint16Uint32R)
  195. fn(map[uint16]uint64(nil), (*encFnInfo).fastpathEncMapUint16Uint64R, (*decFnInfo).fastpathDecMapUint16Uint64R)
  196. fn(map[uint16]uintptr(nil), (*encFnInfo).fastpathEncMapUint16UintptrR, (*decFnInfo).fastpathDecMapUint16UintptrR)
  197. fn(map[uint16]int(nil), (*encFnInfo).fastpathEncMapUint16IntR, (*decFnInfo).fastpathDecMapUint16IntR)
  198. fn(map[uint16]int8(nil), (*encFnInfo).fastpathEncMapUint16Int8R, (*decFnInfo).fastpathDecMapUint16Int8R)
  199. fn(map[uint16]int16(nil), (*encFnInfo).fastpathEncMapUint16Int16R, (*decFnInfo).fastpathDecMapUint16Int16R)
  200. fn(map[uint16]int32(nil), (*encFnInfo).fastpathEncMapUint16Int32R, (*decFnInfo).fastpathDecMapUint16Int32R)
  201. fn(map[uint16]int64(nil), (*encFnInfo).fastpathEncMapUint16Int64R, (*decFnInfo).fastpathDecMapUint16Int64R)
  202. fn(map[uint16]float32(nil), (*encFnInfo).fastpathEncMapUint16Float32R, (*decFnInfo).fastpathDecMapUint16Float32R)
  203. fn(map[uint16]float64(nil), (*encFnInfo).fastpathEncMapUint16Float64R, (*decFnInfo).fastpathDecMapUint16Float64R)
  204. fn(map[uint16]bool(nil), (*encFnInfo).fastpathEncMapUint16BoolR, (*decFnInfo).fastpathDecMapUint16BoolR)
  205. fn(map[uint32]interface{}(nil), (*encFnInfo).fastpathEncMapUint32IntfR, (*decFnInfo).fastpathDecMapUint32IntfR)
  206. fn(map[uint32]string(nil), (*encFnInfo).fastpathEncMapUint32StringR, (*decFnInfo).fastpathDecMapUint32StringR)
  207. fn(map[uint32]uint(nil), (*encFnInfo).fastpathEncMapUint32UintR, (*decFnInfo).fastpathDecMapUint32UintR)
  208. fn(map[uint32]uint8(nil), (*encFnInfo).fastpathEncMapUint32Uint8R, (*decFnInfo).fastpathDecMapUint32Uint8R)
  209. fn(map[uint32]uint16(nil), (*encFnInfo).fastpathEncMapUint32Uint16R, (*decFnInfo).fastpathDecMapUint32Uint16R)
  210. fn(map[uint32]uint32(nil), (*encFnInfo).fastpathEncMapUint32Uint32R, (*decFnInfo).fastpathDecMapUint32Uint32R)
  211. fn(map[uint32]uint64(nil), (*encFnInfo).fastpathEncMapUint32Uint64R, (*decFnInfo).fastpathDecMapUint32Uint64R)
  212. fn(map[uint32]uintptr(nil), (*encFnInfo).fastpathEncMapUint32UintptrR, (*decFnInfo).fastpathDecMapUint32UintptrR)
  213. fn(map[uint32]int(nil), (*encFnInfo).fastpathEncMapUint32IntR, (*decFnInfo).fastpathDecMapUint32IntR)
  214. fn(map[uint32]int8(nil), (*encFnInfo).fastpathEncMapUint32Int8R, (*decFnInfo).fastpathDecMapUint32Int8R)
  215. fn(map[uint32]int16(nil), (*encFnInfo).fastpathEncMapUint32Int16R, (*decFnInfo).fastpathDecMapUint32Int16R)
  216. fn(map[uint32]int32(nil), (*encFnInfo).fastpathEncMapUint32Int32R, (*decFnInfo).fastpathDecMapUint32Int32R)
  217. fn(map[uint32]int64(nil), (*encFnInfo).fastpathEncMapUint32Int64R, (*decFnInfo).fastpathDecMapUint32Int64R)
  218. fn(map[uint32]float32(nil), (*encFnInfo).fastpathEncMapUint32Float32R, (*decFnInfo).fastpathDecMapUint32Float32R)
  219. fn(map[uint32]float64(nil), (*encFnInfo).fastpathEncMapUint32Float64R, (*decFnInfo).fastpathDecMapUint32Float64R)
  220. fn(map[uint32]bool(nil), (*encFnInfo).fastpathEncMapUint32BoolR, (*decFnInfo).fastpathDecMapUint32BoolR)
  221. fn(map[uint64]interface{}(nil), (*encFnInfo).fastpathEncMapUint64IntfR, (*decFnInfo).fastpathDecMapUint64IntfR)
  222. fn(map[uint64]string(nil), (*encFnInfo).fastpathEncMapUint64StringR, (*decFnInfo).fastpathDecMapUint64StringR)
  223. fn(map[uint64]uint(nil), (*encFnInfo).fastpathEncMapUint64UintR, (*decFnInfo).fastpathDecMapUint64UintR)
  224. fn(map[uint64]uint8(nil), (*encFnInfo).fastpathEncMapUint64Uint8R, (*decFnInfo).fastpathDecMapUint64Uint8R)
  225. fn(map[uint64]uint16(nil), (*encFnInfo).fastpathEncMapUint64Uint16R, (*decFnInfo).fastpathDecMapUint64Uint16R)
  226. fn(map[uint64]uint32(nil), (*encFnInfo).fastpathEncMapUint64Uint32R, (*decFnInfo).fastpathDecMapUint64Uint32R)
  227. fn(map[uint64]uint64(nil), (*encFnInfo).fastpathEncMapUint64Uint64R, (*decFnInfo).fastpathDecMapUint64Uint64R)
  228. fn(map[uint64]uintptr(nil), (*encFnInfo).fastpathEncMapUint64UintptrR, (*decFnInfo).fastpathDecMapUint64UintptrR)
  229. fn(map[uint64]int(nil), (*encFnInfo).fastpathEncMapUint64IntR, (*decFnInfo).fastpathDecMapUint64IntR)
  230. fn(map[uint64]int8(nil), (*encFnInfo).fastpathEncMapUint64Int8R, (*decFnInfo).fastpathDecMapUint64Int8R)
  231. fn(map[uint64]int16(nil), (*encFnInfo).fastpathEncMapUint64Int16R, (*decFnInfo).fastpathDecMapUint64Int16R)
  232. fn(map[uint64]int32(nil), (*encFnInfo).fastpathEncMapUint64Int32R, (*decFnInfo).fastpathDecMapUint64Int32R)
  233. fn(map[uint64]int64(nil), (*encFnInfo).fastpathEncMapUint64Int64R, (*decFnInfo).fastpathDecMapUint64Int64R)
  234. fn(map[uint64]float32(nil), (*encFnInfo).fastpathEncMapUint64Float32R, (*decFnInfo).fastpathDecMapUint64Float32R)
  235. fn(map[uint64]float64(nil), (*encFnInfo).fastpathEncMapUint64Float64R, (*decFnInfo).fastpathDecMapUint64Float64R)
  236. fn(map[uint64]bool(nil), (*encFnInfo).fastpathEncMapUint64BoolR, (*decFnInfo).fastpathDecMapUint64BoolR)
  237. fn(map[uintptr]interface{}(nil), (*encFnInfo).fastpathEncMapUintptrIntfR, (*decFnInfo).fastpathDecMapUintptrIntfR)
  238. fn(map[uintptr]string(nil), (*encFnInfo).fastpathEncMapUintptrStringR, (*decFnInfo).fastpathDecMapUintptrStringR)
  239. fn(map[uintptr]uint(nil), (*encFnInfo).fastpathEncMapUintptrUintR, (*decFnInfo).fastpathDecMapUintptrUintR)
  240. fn(map[uintptr]uint8(nil), (*encFnInfo).fastpathEncMapUintptrUint8R, (*decFnInfo).fastpathDecMapUintptrUint8R)
  241. fn(map[uintptr]uint16(nil), (*encFnInfo).fastpathEncMapUintptrUint16R, (*decFnInfo).fastpathDecMapUintptrUint16R)
  242. fn(map[uintptr]uint32(nil), (*encFnInfo).fastpathEncMapUintptrUint32R, (*decFnInfo).fastpathDecMapUintptrUint32R)
  243. fn(map[uintptr]uint64(nil), (*encFnInfo).fastpathEncMapUintptrUint64R, (*decFnInfo).fastpathDecMapUintptrUint64R)
  244. fn(map[uintptr]uintptr(nil), (*encFnInfo).fastpathEncMapUintptrUintptrR, (*decFnInfo).fastpathDecMapUintptrUintptrR)
  245. fn(map[uintptr]int(nil), (*encFnInfo).fastpathEncMapUintptrIntR, (*decFnInfo).fastpathDecMapUintptrIntR)
  246. fn(map[uintptr]int8(nil), (*encFnInfo).fastpathEncMapUintptrInt8R, (*decFnInfo).fastpathDecMapUintptrInt8R)
  247. fn(map[uintptr]int16(nil), (*encFnInfo).fastpathEncMapUintptrInt16R, (*decFnInfo).fastpathDecMapUintptrInt16R)
  248. fn(map[uintptr]int32(nil), (*encFnInfo).fastpathEncMapUintptrInt32R, (*decFnInfo).fastpathDecMapUintptrInt32R)
  249. fn(map[uintptr]int64(nil), (*encFnInfo).fastpathEncMapUintptrInt64R, (*decFnInfo).fastpathDecMapUintptrInt64R)
  250. fn(map[uintptr]float32(nil), (*encFnInfo).fastpathEncMapUintptrFloat32R, (*decFnInfo).fastpathDecMapUintptrFloat32R)
  251. fn(map[uintptr]float64(nil), (*encFnInfo).fastpathEncMapUintptrFloat64R, (*decFnInfo).fastpathDecMapUintptrFloat64R)
  252. fn(map[uintptr]bool(nil), (*encFnInfo).fastpathEncMapUintptrBoolR, (*decFnInfo).fastpathDecMapUintptrBoolR)
  253. fn(map[int]interface{}(nil), (*encFnInfo).fastpathEncMapIntIntfR, (*decFnInfo).fastpathDecMapIntIntfR)
  254. fn(map[int]string(nil), (*encFnInfo).fastpathEncMapIntStringR, (*decFnInfo).fastpathDecMapIntStringR)
  255. fn(map[int]uint(nil), (*encFnInfo).fastpathEncMapIntUintR, (*decFnInfo).fastpathDecMapIntUintR)
  256. fn(map[int]uint8(nil), (*encFnInfo).fastpathEncMapIntUint8R, (*decFnInfo).fastpathDecMapIntUint8R)
  257. fn(map[int]uint16(nil), (*encFnInfo).fastpathEncMapIntUint16R, (*decFnInfo).fastpathDecMapIntUint16R)
  258. fn(map[int]uint32(nil), (*encFnInfo).fastpathEncMapIntUint32R, (*decFnInfo).fastpathDecMapIntUint32R)
  259. fn(map[int]uint64(nil), (*encFnInfo).fastpathEncMapIntUint64R, (*decFnInfo).fastpathDecMapIntUint64R)
  260. fn(map[int]uintptr(nil), (*encFnInfo).fastpathEncMapIntUintptrR, (*decFnInfo).fastpathDecMapIntUintptrR)
  261. fn(map[int]int(nil), (*encFnInfo).fastpathEncMapIntIntR, (*decFnInfo).fastpathDecMapIntIntR)
  262. fn(map[int]int8(nil), (*encFnInfo).fastpathEncMapIntInt8R, (*decFnInfo).fastpathDecMapIntInt8R)
  263. fn(map[int]int16(nil), (*encFnInfo).fastpathEncMapIntInt16R, (*decFnInfo).fastpathDecMapIntInt16R)
  264. fn(map[int]int32(nil), (*encFnInfo).fastpathEncMapIntInt32R, (*decFnInfo).fastpathDecMapIntInt32R)
  265. fn(map[int]int64(nil), (*encFnInfo).fastpathEncMapIntInt64R, (*decFnInfo).fastpathDecMapIntInt64R)
  266. fn(map[int]float32(nil), (*encFnInfo).fastpathEncMapIntFloat32R, (*decFnInfo).fastpathDecMapIntFloat32R)
  267. fn(map[int]float64(nil), (*encFnInfo).fastpathEncMapIntFloat64R, (*decFnInfo).fastpathDecMapIntFloat64R)
  268. fn(map[int]bool(nil), (*encFnInfo).fastpathEncMapIntBoolR, (*decFnInfo).fastpathDecMapIntBoolR)
  269. fn(map[int8]interface{}(nil), (*encFnInfo).fastpathEncMapInt8IntfR, (*decFnInfo).fastpathDecMapInt8IntfR)
  270. fn(map[int8]string(nil), (*encFnInfo).fastpathEncMapInt8StringR, (*decFnInfo).fastpathDecMapInt8StringR)
  271. fn(map[int8]uint(nil), (*encFnInfo).fastpathEncMapInt8UintR, (*decFnInfo).fastpathDecMapInt8UintR)
  272. fn(map[int8]uint8(nil), (*encFnInfo).fastpathEncMapInt8Uint8R, (*decFnInfo).fastpathDecMapInt8Uint8R)
  273. fn(map[int8]uint16(nil), (*encFnInfo).fastpathEncMapInt8Uint16R, (*decFnInfo).fastpathDecMapInt8Uint16R)
  274. fn(map[int8]uint32(nil), (*encFnInfo).fastpathEncMapInt8Uint32R, (*decFnInfo).fastpathDecMapInt8Uint32R)
  275. fn(map[int8]uint64(nil), (*encFnInfo).fastpathEncMapInt8Uint64R, (*decFnInfo).fastpathDecMapInt8Uint64R)
  276. fn(map[int8]uintptr(nil), (*encFnInfo).fastpathEncMapInt8UintptrR, (*decFnInfo).fastpathDecMapInt8UintptrR)
  277. fn(map[int8]int(nil), (*encFnInfo).fastpathEncMapInt8IntR, (*decFnInfo).fastpathDecMapInt8IntR)
  278. fn(map[int8]int8(nil), (*encFnInfo).fastpathEncMapInt8Int8R, (*decFnInfo).fastpathDecMapInt8Int8R)
  279. fn(map[int8]int16(nil), (*encFnInfo).fastpathEncMapInt8Int16R, (*decFnInfo).fastpathDecMapInt8Int16R)
  280. fn(map[int8]int32(nil), (*encFnInfo).fastpathEncMapInt8Int32R, (*decFnInfo).fastpathDecMapInt8Int32R)
  281. fn(map[int8]int64(nil), (*encFnInfo).fastpathEncMapInt8Int64R, (*decFnInfo).fastpathDecMapInt8Int64R)
  282. fn(map[int8]float32(nil), (*encFnInfo).fastpathEncMapInt8Float32R, (*decFnInfo).fastpathDecMapInt8Float32R)
  283. fn(map[int8]float64(nil), (*encFnInfo).fastpathEncMapInt8Float64R, (*decFnInfo).fastpathDecMapInt8Float64R)
  284. fn(map[int8]bool(nil), (*encFnInfo).fastpathEncMapInt8BoolR, (*decFnInfo).fastpathDecMapInt8BoolR)
  285. fn(map[int16]interface{}(nil), (*encFnInfo).fastpathEncMapInt16IntfR, (*decFnInfo).fastpathDecMapInt16IntfR)
  286. fn(map[int16]string(nil), (*encFnInfo).fastpathEncMapInt16StringR, (*decFnInfo).fastpathDecMapInt16StringR)
  287. fn(map[int16]uint(nil), (*encFnInfo).fastpathEncMapInt16UintR, (*decFnInfo).fastpathDecMapInt16UintR)
  288. fn(map[int16]uint8(nil), (*encFnInfo).fastpathEncMapInt16Uint8R, (*decFnInfo).fastpathDecMapInt16Uint8R)
  289. fn(map[int16]uint16(nil), (*encFnInfo).fastpathEncMapInt16Uint16R, (*decFnInfo).fastpathDecMapInt16Uint16R)
  290. fn(map[int16]uint32(nil), (*encFnInfo).fastpathEncMapInt16Uint32R, (*decFnInfo).fastpathDecMapInt16Uint32R)
  291. fn(map[int16]uint64(nil), (*encFnInfo).fastpathEncMapInt16Uint64R, (*decFnInfo).fastpathDecMapInt16Uint64R)
  292. fn(map[int16]uintptr(nil), (*encFnInfo).fastpathEncMapInt16UintptrR, (*decFnInfo).fastpathDecMapInt16UintptrR)
  293. fn(map[int16]int(nil), (*encFnInfo).fastpathEncMapInt16IntR, (*decFnInfo).fastpathDecMapInt16IntR)
  294. fn(map[int16]int8(nil), (*encFnInfo).fastpathEncMapInt16Int8R, (*decFnInfo).fastpathDecMapInt16Int8R)
  295. fn(map[int16]int16(nil), (*encFnInfo).fastpathEncMapInt16Int16R, (*decFnInfo).fastpathDecMapInt16Int16R)
  296. fn(map[int16]int32(nil), (*encFnInfo).fastpathEncMapInt16Int32R, (*decFnInfo).fastpathDecMapInt16Int32R)
  297. fn(map[int16]int64(nil), (*encFnInfo).fastpathEncMapInt16Int64R, (*decFnInfo).fastpathDecMapInt16Int64R)
  298. fn(map[int16]float32(nil), (*encFnInfo).fastpathEncMapInt16Float32R, (*decFnInfo).fastpathDecMapInt16Float32R)
  299. fn(map[int16]float64(nil), (*encFnInfo).fastpathEncMapInt16Float64R, (*decFnInfo).fastpathDecMapInt16Float64R)
  300. fn(map[int16]bool(nil), (*encFnInfo).fastpathEncMapInt16BoolR, (*decFnInfo).fastpathDecMapInt16BoolR)
  301. fn(map[int32]interface{}(nil), (*encFnInfo).fastpathEncMapInt32IntfR, (*decFnInfo).fastpathDecMapInt32IntfR)
  302. fn(map[int32]string(nil), (*encFnInfo).fastpathEncMapInt32StringR, (*decFnInfo).fastpathDecMapInt32StringR)
  303. fn(map[int32]uint(nil), (*encFnInfo).fastpathEncMapInt32UintR, (*decFnInfo).fastpathDecMapInt32UintR)
  304. fn(map[int32]uint8(nil), (*encFnInfo).fastpathEncMapInt32Uint8R, (*decFnInfo).fastpathDecMapInt32Uint8R)
  305. fn(map[int32]uint16(nil), (*encFnInfo).fastpathEncMapInt32Uint16R, (*decFnInfo).fastpathDecMapInt32Uint16R)
  306. fn(map[int32]uint32(nil), (*encFnInfo).fastpathEncMapInt32Uint32R, (*decFnInfo).fastpathDecMapInt32Uint32R)
  307. fn(map[int32]uint64(nil), (*encFnInfo).fastpathEncMapInt32Uint64R, (*decFnInfo).fastpathDecMapInt32Uint64R)
  308. fn(map[int32]uintptr(nil), (*encFnInfo).fastpathEncMapInt32UintptrR, (*decFnInfo).fastpathDecMapInt32UintptrR)
  309. fn(map[int32]int(nil), (*encFnInfo).fastpathEncMapInt32IntR, (*decFnInfo).fastpathDecMapInt32IntR)
  310. fn(map[int32]int8(nil), (*encFnInfo).fastpathEncMapInt32Int8R, (*decFnInfo).fastpathDecMapInt32Int8R)
  311. fn(map[int32]int16(nil), (*encFnInfo).fastpathEncMapInt32Int16R, (*decFnInfo).fastpathDecMapInt32Int16R)
  312. fn(map[int32]int32(nil), (*encFnInfo).fastpathEncMapInt32Int32R, (*decFnInfo).fastpathDecMapInt32Int32R)
  313. fn(map[int32]int64(nil), (*encFnInfo).fastpathEncMapInt32Int64R, (*decFnInfo).fastpathDecMapInt32Int64R)
  314. fn(map[int32]float32(nil), (*encFnInfo).fastpathEncMapInt32Float32R, (*decFnInfo).fastpathDecMapInt32Float32R)
  315. fn(map[int32]float64(nil), (*encFnInfo).fastpathEncMapInt32Float64R, (*decFnInfo).fastpathDecMapInt32Float64R)
  316. fn(map[int32]bool(nil), (*encFnInfo).fastpathEncMapInt32BoolR, (*decFnInfo).fastpathDecMapInt32BoolR)
  317. fn(map[int64]interface{}(nil), (*encFnInfo).fastpathEncMapInt64IntfR, (*decFnInfo).fastpathDecMapInt64IntfR)
  318. fn(map[int64]string(nil), (*encFnInfo).fastpathEncMapInt64StringR, (*decFnInfo).fastpathDecMapInt64StringR)
  319. fn(map[int64]uint(nil), (*encFnInfo).fastpathEncMapInt64UintR, (*decFnInfo).fastpathDecMapInt64UintR)
  320. fn(map[int64]uint8(nil), (*encFnInfo).fastpathEncMapInt64Uint8R, (*decFnInfo).fastpathDecMapInt64Uint8R)
  321. fn(map[int64]uint16(nil), (*encFnInfo).fastpathEncMapInt64Uint16R, (*decFnInfo).fastpathDecMapInt64Uint16R)
  322. fn(map[int64]uint32(nil), (*encFnInfo).fastpathEncMapInt64Uint32R, (*decFnInfo).fastpathDecMapInt64Uint32R)
  323. fn(map[int64]uint64(nil), (*encFnInfo).fastpathEncMapInt64Uint64R, (*decFnInfo).fastpathDecMapInt64Uint64R)
  324. fn(map[int64]uintptr(nil), (*encFnInfo).fastpathEncMapInt64UintptrR, (*decFnInfo).fastpathDecMapInt64UintptrR)
  325. fn(map[int64]int(nil), (*encFnInfo).fastpathEncMapInt64IntR, (*decFnInfo).fastpathDecMapInt64IntR)
  326. fn(map[int64]int8(nil), (*encFnInfo).fastpathEncMapInt64Int8R, (*decFnInfo).fastpathDecMapInt64Int8R)
  327. fn(map[int64]int16(nil), (*encFnInfo).fastpathEncMapInt64Int16R, (*decFnInfo).fastpathDecMapInt64Int16R)
  328. fn(map[int64]int32(nil), (*encFnInfo).fastpathEncMapInt64Int32R, (*decFnInfo).fastpathDecMapInt64Int32R)
  329. fn(map[int64]int64(nil), (*encFnInfo).fastpathEncMapInt64Int64R, (*decFnInfo).fastpathDecMapInt64Int64R)
  330. fn(map[int64]float32(nil), (*encFnInfo).fastpathEncMapInt64Float32R, (*decFnInfo).fastpathDecMapInt64Float32R)
  331. fn(map[int64]float64(nil), (*encFnInfo).fastpathEncMapInt64Float64R, (*decFnInfo).fastpathDecMapInt64Float64R)
  332. fn(map[int64]bool(nil), (*encFnInfo).fastpathEncMapInt64BoolR, (*decFnInfo).fastpathDecMapInt64BoolR)
  333. fn(map[bool]interface{}(nil), (*encFnInfo).fastpathEncMapBoolIntfR, (*decFnInfo).fastpathDecMapBoolIntfR)
  334. fn(map[bool]string(nil), (*encFnInfo).fastpathEncMapBoolStringR, (*decFnInfo).fastpathDecMapBoolStringR)
  335. fn(map[bool]uint(nil), (*encFnInfo).fastpathEncMapBoolUintR, (*decFnInfo).fastpathDecMapBoolUintR)
  336. fn(map[bool]uint8(nil), (*encFnInfo).fastpathEncMapBoolUint8R, (*decFnInfo).fastpathDecMapBoolUint8R)
  337. fn(map[bool]uint16(nil), (*encFnInfo).fastpathEncMapBoolUint16R, (*decFnInfo).fastpathDecMapBoolUint16R)
  338. fn(map[bool]uint32(nil), (*encFnInfo).fastpathEncMapBoolUint32R, (*decFnInfo).fastpathDecMapBoolUint32R)
  339. fn(map[bool]uint64(nil), (*encFnInfo).fastpathEncMapBoolUint64R, (*decFnInfo).fastpathDecMapBoolUint64R)
  340. fn(map[bool]uintptr(nil), (*encFnInfo).fastpathEncMapBoolUintptrR, (*decFnInfo).fastpathDecMapBoolUintptrR)
  341. fn(map[bool]int(nil), (*encFnInfo).fastpathEncMapBoolIntR, (*decFnInfo).fastpathDecMapBoolIntR)
  342. fn(map[bool]int8(nil), (*encFnInfo).fastpathEncMapBoolInt8R, (*decFnInfo).fastpathDecMapBoolInt8R)
  343. fn(map[bool]int16(nil), (*encFnInfo).fastpathEncMapBoolInt16R, (*decFnInfo).fastpathDecMapBoolInt16R)
  344. fn(map[bool]int32(nil), (*encFnInfo).fastpathEncMapBoolInt32R, (*decFnInfo).fastpathDecMapBoolInt32R)
  345. fn(map[bool]int64(nil), (*encFnInfo).fastpathEncMapBoolInt64R, (*decFnInfo).fastpathDecMapBoolInt64R)
  346. fn(map[bool]float32(nil), (*encFnInfo).fastpathEncMapBoolFloat32R, (*decFnInfo).fastpathDecMapBoolFloat32R)
  347. fn(map[bool]float64(nil), (*encFnInfo).fastpathEncMapBoolFloat64R, (*decFnInfo).fastpathDecMapBoolFloat64R)
  348. fn(map[bool]bool(nil), (*encFnInfo).fastpathEncMapBoolBoolR, (*decFnInfo).fastpathDecMapBoolBoolR)
  349. sort.Sort(fastpathAslice(fastpathAV[:]))
  350. }
  351. // -- encode
  352. // -- -- fast path type switch
  353. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  354. switch v := iv.(type) {
  355. case []interface{}:
  356. fastpathTV.EncSliceIntfV(v, fastpathCheckNilTrue, e)
  357. case *[]interface{}:
  358. fastpathTV.EncSliceIntfV(*v, fastpathCheckNilTrue, e)
  359. case map[interface{}]interface{}:
  360. fastpathTV.EncMapIntfIntfV(v, fastpathCheckNilTrue, e)
  361. case *map[interface{}]interface{}:
  362. fastpathTV.EncMapIntfIntfV(*v, fastpathCheckNilTrue, e)
  363. case map[interface{}]string:
  364. fastpathTV.EncMapIntfStringV(v, fastpathCheckNilTrue, e)
  365. case *map[interface{}]string:
  366. fastpathTV.EncMapIntfStringV(*v, fastpathCheckNilTrue, e)
  367. case map[interface{}]uint:
  368. fastpathTV.EncMapIntfUintV(v, fastpathCheckNilTrue, e)
  369. case *map[interface{}]uint:
  370. fastpathTV.EncMapIntfUintV(*v, fastpathCheckNilTrue, e)
  371. case map[interface{}]uint8:
  372. fastpathTV.EncMapIntfUint8V(v, fastpathCheckNilTrue, e)
  373. case *map[interface{}]uint8:
  374. fastpathTV.EncMapIntfUint8V(*v, fastpathCheckNilTrue, e)
  375. case map[interface{}]uint16:
  376. fastpathTV.EncMapIntfUint16V(v, fastpathCheckNilTrue, e)
  377. case *map[interface{}]uint16:
  378. fastpathTV.EncMapIntfUint16V(*v, fastpathCheckNilTrue, e)
  379. case map[interface{}]uint32:
  380. fastpathTV.EncMapIntfUint32V(v, fastpathCheckNilTrue, e)
  381. case *map[interface{}]uint32:
  382. fastpathTV.EncMapIntfUint32V(*v, fastpathCheckNilTrue, e)
  383. case map[interface{}]uint64:
  384. fastpathTV.EncMapIntfUint64V(v, fastpathCheckNilTrue, e)
  385. case *map[interface{}]uint64:
  386. fastpathTV.EncMapIntfUint64V(*v, fastpathCheckNilTrue, e)
  387. case map[interface{}]uintptr:
  388. fastpathTV.EncMapIntfUintptrV(v, fastpathCheckNilTrue, e)
  389. case *map[interface{}]uintptr:
  390. fastpathTV.EncMapIntfUintptrV(*v, fastpathCheckNilTrue, e)
  391. case map[interface{}]int:
  392. fastpathTV.EncMapIntfIntV(v, fastpathCheckNilTrue, e)
  393. case *map[interface{}]int:
  394. fastpathTV.EncMapIntfIntV(*v, fastpathCheckNilTrue, e)
  395. case map[interface{}]int8:
  396. fastpathTV.EncMapIntfInt8V(v, fastpathCheckNilTrue, e)
  397. case *map[interface{}]int8:
  398. fastpathTV.EncMapIntfInt8V(*v, fastpathCheckNilTrue, e)
  399. case map[interface{}]int16:
  400. fastpathTV.EncMapIntfInt16V(v, fastpathCheckNilTrue, e)
  401. case *map[interface{}]int16:
  402. fastpathTV.EncMapIntfInt16V(*v, fastpathCheckNilTrue, e)
  403. case map[interface{}]int32:
  404. fastpathTV.EncMapIntfInt32V(v, fastpathCheckNilTrue, e)
  405. case *map[interface{}]int32:
  406. fastpathTV.EncMapIntfInt32V(*v, fastpathCheckNilTrue, e)
  407. case map[interface{}]int64:
  408. fastpathTV.EncMapIntfInt64V(v, fastpathCheckNilTrue, e)
  409. case *map[interface{}]int64:
  410. fastpathTV.EncMapIntfInt64V(*v, fastpathCheckNilTrue, e)
  411. case map[interface{}]float32:
  412. fastpathTV.EncMapIntfFloat32V(v, fastpathCheckNilTrue, e)
  413. case *map[interface{}]float32:
  414. fastpathTV.EncMapIntfFloat32V(*v, fastpathCheckNilTrue, e)
  415. case map[interface{}]float64:
  416. fastpathTV.EncMapIntfFloat64V(v, fastpathCheckNilTrue, e)
  417. case *map[interface{}]float64:
  418. fastpathTV.EncMapIntfFloat64V(*v, fastpathCheckNilTrue, e)
  419. case map[interface{}]bool:
  420. fastpathTV.EncMapIntfBoolV(v, fastpathCheckNilTrue, e)
  421. case *map[interface{}]bool:
  422. fastpathTV.EncMapIntfBoolV(*v, fastpathCheckNilTrue, e)
  423. case []string:
  424. fastpathTV.EncSliceStringV(v, fastpathCheckNilTrue, e)
  425. case *[]string:
  426. fastpathTV.EncSliceStringV(*v, fastpathCheckNilTrue, e)
  427. case map[string]interface{}:
  428. fastpathTV.EncMapStringIntfV(v, fastpathCheckNilTrue, e)
  429. case *map[string]interface{}:
  430. fastpathTV.EncMapStringIntfV(*v, fastpathCheckNilTrue, e)
  431. case map[string]string:
  432. fastpathTV.EncMapStringStringV(v, fastpathCheckNilTrue, e)
  433. case *map[string]string:
  434. fastpathTV.EncMapStringStringV(*v, fastpathCheckNilTrue, e)
  435. case map[string]uint:
  436. fastpathTV.EncMapStringUintV(v, fastpathCheckNilTrue, e)
  437. case *map[string]uint:
  438. fastpathTV.EncMapStringUintV(*v, fastpathCheckNilTrue, e)
  439. case map[string]uint8:
  440. fastpathTV.EncMapStringUint8V(v, fastpathCheckNilTrue, e)
  441. case *map[string]uint8:
  442. fastpathTV.EncMapStringUint8V(*v, fastpathCheckNilTrue, e)
  443. case map[string]uint16:
  444. fastpathTV.EncMapStringUint16V(v, fastpathCheckNilTrue, e)
  445. case *map[string]uint16:
  446. fastpathTV.EncMapStringUint16V(*v, fastpathCheckNilTrue, e)
  447. case map[string]uint32:
  448. fastpathTV.EncMapStringUint32V(v, fastpathCheckNilTrue, e)
  449. case *map[string]uint32:
  450. fastpathTV.EncMapStringUint32V(*v, fastpathCheckNilTrue, e)
  451. case map[string]uint64:
  452. fastpathTV.EncMapStringUint64V(v, fastpathCheckNilTrue, e)
  453. case *map[string]uint64:
  454. fastpathTV.EncMapStringUint64V(*v, fastpathCheckNilTrue, e)
  455. case map[string]uintptr:
  456. fastpathTV.EncMapStringUintptrV(v, fastpathCheckNilTrue, e)
  457. case *map[string]uintptr:
  458. fastpathTV.EncMapStringUintptrV(*v, fastpathCheckNilTrue, e)
  459. case map[string]int:
  460. fastpathTV.EncMapStringIntV(v, fastpathCheckNilTrue, e)
  461. case *map[string]int:
  462. fastpathTV.EncMapStringIntV(*v, fastpathCheckNilTrue, e)
  463. case map[string]int8:
  464. fastpathTV.EncMapStringInt8V(v, fastpathCheckNilTrue, e)
  465. case *map[string]int8:
  466. fastpathTV.EncMapStringInt8V(*v, fastpathCheckNilTrue, e)
  467. case map[string]int16:
  468. fastpathTV.EncMapStringInt16V(v, fastpathCheckNilTrue, e)
  469. case *map[string]int16:
  470. fastpathTV.EncMapStringInt16V(*v, fastpathCheckNilTrue, e)
  471. case map[string]int32:
  472. fastpathTV.EncMapStringInt32V(v, fastpathCheckNilTrue, e)
  473. case *map[string]int32:
  474. fastpathTV.EncMapStringInt32V(*v, fastpathCheckNilTrue, e)
  475. case map[string]int64:
  476. fastpathTV.EncMapStringInt64V(v, fastpathCheckNilTrue, e)
  477. case *map[string]int64:
  478. fastpathTV.EncMapStringInt64V(*v, fastpathCheckNilTrue, e)
  479. case map[string]float32:
  480. fastpathTV.EncMapStringFloat32V(v, fastpathCheckNilTrue, e)
  481. case *map[string]float32:
  482. fastpathTV.EncMapStringFloat32V(*v, fastpathCheckNilTrue, e)
  483. case map[string]float64:
  484. fastpathTV.EncMapStringFloat64V(v, fastpathCheckNilTrue, e)
  485. case *map[string]float64:
  486. fastpathTV.EncMapStringFloat64V(*v, fastpathCheckNilTrue, e)
  487. case map[string]bool:
  488. fastpathTV.EncMapStringBoolV(v, fastpathCheckNilTrue, e)
  489. case *map[string]bool:
  490. fastpathTV.EncMapStringBoolV(*v, fastpathCheckNilTrue, e)
  491. case []float32:
  492. fastpathTV.EncSliceFloat32V(v, fastpathCheckNilTrue, e)
  493. case *[]float32:
  494. fastpathTV.EncSliceFloat32V(*v, fastpathCheckNilTrue, e)
  495. case map[float32]interface{}:
  496. fastpathTV.EncMapFloat32IntfV(v, fastpathCheckNilTrue, e)
  497. case *map[float32]interface{}:
  498. fastpathTV.EncMapFloat32IntfV(*v, fastpathCheckNilTrue, e)
  499. case map[float32]string:
  500. fastpathTV.EncMapFloat32StringV(v, fastpathCheckNilTrue, e)
  501. case *map[float32]string:
  502. fastpathTV.EncMapFloat32StringV(*v, fastpathCheckNilTrue, e)
  503. case map[float32]uint:
  504. fastpathTV.EncMapFloat32UintV(v, fastpathCheckNilTrue, e)
  505. case *map[float32]uint:
  506. fastpathTV.EncMapFloat32UintV(*v, fastpathCheckNilTrue, e)
  507. case map[float32]uint8:
  508. fastpathTV.EncMapFloat32Uint8V(v, fastpathCheckNilTrue, e)
  509. case *map[float32]uint8:
  510. fastpathTV.EncMapFloat32Uint8V(*v, fastpathCheckNilTrue, e)
  511. case map[float32]uint16:
  512. fastpathTV.EncMapFloat32Uint16V(v, fastpathCheckNilTrue, e)
  513. case *map[float32]uint16:
  514. fastpathTV.EncMapFloat32Uint16V(*v, fastpathCheckNilTrue, e)
  515. case map[float32]uint32:
  516. fastpathTV.EncMapFloat32Uint32V(v, fastpathCheckNilTrue, e)
  517. case *map[float32]uint32:
  518. fastpathTV.EncMapFloat32Uint32V(*v, fastpathCheckNilTrue, e)
  519. case map[float32]uint64:
  520. fastpathTV.EncMapFloat32Uint64V(v, fastpathCheckNilTrue, e)
  521. case *map[float32]uint64:
  522. fastpathTV.EncMapFloat32Uint64V(*v, fastpathCheckNilTrue, e)
  523. case map[float32]uintptr:
  524. fastpathTV.EncMapFloat32UintptrV(v, fastpathCheckNilTrue, e)
  525. case *map[float32]uintptr:
  526. fastpathTV.EncMapFloat32UintptrV(*v, fastpathCheckNilTrue, e)
  527. case map[float32]int:
  528. fastpathTV.EncMapFloat32IntV(v, fastpathCheckNilTrue, e)
  529. case *map[float32]int:
  530. fastpathTV.EncMapFloat32IntV(*v, fastpathCheckNilTrue, e)
  531. case map[float32]int8:
  532. fastpathTV.EncMapFloat32Int8V(v, fastpathCheckNilTrue, e)
  533. case *map[float32]int8:
  534. fastpathTV.EncMapFloat32Int8V(*v, fastpathCheckNilTrue, e)
  535. case map[float32]int16:
  536. fastpathTV.EncMapFloat32Int16V(v, fastpathCheckNilTrue, e)
  537. case *map[float32]int16:
  538. fastpathTV.EncMapFloat32Int16V(*v, fastpathCheckNilTrue, e)
  539. case map[float32]int32:
  540. fastpathTV.EncMapFloat32Int32V(v, fastpathCheckNilTrue, e)
  541. case *map[float32]int32:
  542. fastpathTV.EncMapFloat32Int32V(*v, fastpathCheckNilTrue, e)
  543. case map[float32]int64:
  544. fastpathTV.EncMapFloat32Int64V(v, fastpathCheckNilTrue, e)
  545. case *map[float32]int64:
  546. fastpathTV.EncMapFloat32Int64V(*v, fastpathCheckNilTrue, e)
  547. case map[float32]float32:
  548. fastpathTV.EncMapFloat32Float32V(v, fastpathCheckNilTrue, e)
  549. case *map[float32]float32:
  550. fastpathTV.EncMapFloat32Float32V(*v, fastpathCheckNilTrue, e)
  551. case map[float32]float64:
  552. fastpathTV.EncMapFloat32Float64V(v, fastpathCheckNilTrue, e)
  553. case *map[float32]float64:
  554. fastpathTV.EncMapFloat32Float64V(*v, fastpathCheckNilTrue, e)
  555. case map[float32]bool:
  556. fastpathTV.EncMapFloat32BoolV(v, fastpathCheckNilTrue, e)
  557. case *map[float32]bool:
  558. fastpathTV.EncMapFloat32BoolV(*v, fastpathCheckNilTrue, e)
  559. case []float64:
  560. fastpathTV.EncSliceFloat64V(v, fastpathCheckNilTrue, e)
  561. case *[]float64:
  562. fastpathTV.EncSliceFloat64V(*v, fastpathCheckNilTrue, e)
  563. case map[float64]interface{}:
  564. fastpathTV.EncMapFloat64IntfV(v, fastpathCheckNilTrue, e)
  565. case *map[float64]interface{}:
  566. fastpathTV.EncMapFloat64IntfV(*v, fastpathCheckNilTrue, e)
  567. case map[float64]string:
  568. fastpathTV.EncMapFloat64StringV(v, fastpathCheckNilTrue, e)
  569. case *map[float64]string:
  570. fastpathTV.EncMapFloat64StringV(*v, fastpathCheckNilTrue, e)
  571. case map[float64]uint:
  572. fastpathTV.EncMapFloat64UintV(v, fastpathCheckNilTrue, e)
  573. case *map[float64]uint:
  574. fastpathTV.EncMapFloat64UintV(*v, fastpathCheckNilTrue, e)
  575. case map[float64]uint8:
  576. fastpathTV.EncMapFloat64Uint8V(v, fastpathCheckNilTrue, e)
  577. case *map[float64]uint8:
  578. fastpathTV.EncMapFloat64Uint8V(*v, fastpathCheckNilTrue, e)
  579. case map[float64]uint16:
  580. fastpathTV.EncMapFloat64Uint16V(v, fastpathCheckNilTrue, e)
  581. case *map[float64]uint16:
  582. fastpathTV.EncMapFloat64Uint16V(*v, fastpathCheckNilTrue, e)
  583. case map[float64]uint32:
  584. fastpathTV.EncMapFloat64Uint32V(v, fastpathCheckNilTrue, e)
  585. case *map[float64]uint32:
  586. fastpathTV.EncMapFloat64Uint32V(*v, fastpathCheckNilTrue, e)
  587. case map[float64]uint64:
  588. fastpathTV.EncMapFloat64Uint64V(v, fastpathCheckNilTrue, e)
  589. case *map[float64]uint64:
  590. fastpathTV.EncMapFloat64Uint64V(*v, fastpathCheckNilTrue, e)
  591. case map[float64]uintptr:
  592. fastpathTV.EncMapFloat64UintptrV(v, fastpathCheckNilTrue, e)
  593. case *map[float64]uintptr:
  594. fastpathTV.EncMapFloat64UintptrV(*v, fastpathCheckNilTrue, e)
  595. case map[float64]int:
  596. fastpathTV.EncMapFloat64IntV(v, fastpathCheckNilTrue, e)
  597. case *map[float64]int:
  598. fastpathTV.EncMapFloat64IntV(*v, fastpathCheckNilTrue, e)
  599. case map[float64]int8:
  600. fastpathTV.EncMapFloat64Int8V(v, fastpathCheckNilTrue, e)
  601. case *map[float64]int8:
  602. fastpathTV.EncMapFloat64Int8V(*v, fastpathCheckNilTrue, e)
  603. case map[float64]int16:
  604. fastpathTV.EncMapFloat64Int16V(v, fastpathCheckNilTrue, e)
  605. case *map[float64]int16:
  606. fastpathTV.EncMapFloat64Int16V(*v, fastpathCheckNilTrue, e)
  607. case map[float64]int32:
  608. fastpathTV.EncMapFloat64Int32V(v, fastpathCheckNilTrue, e)
  609. case *map[float64]int32:
  610. fastpathTV.EncMapFloat64Int32V(*v, fastpathCheckNilTrue, e)
  611. case map[float64]int64:
  612. fastpathTV.EncMapFloat64Int64V(v, fastpathCheckNilTrue, e)
  613. case *map[float64]int64:
  614. fastpathTV.EncMapFloat64Int64V(*v, fastpathCheckNilTrue, e)
  615. case map[float64]float32:
  616. fastpathTV.EncMapFloat64Float32V(v, fastpathCheckNilTrue, e)
  617. case *map[float64]float32:
  618. fastpathTV.EncMapFloat64Float32V(*v, fastpathCheckNilTrue, e)
  619. case map[float64]float64:
  620. fastpathTV.EncMapFloat64Float64V(v, fastpathCheckNilTrue, e)
  621. case *map[float64]float64:
  622. fastpathTV.EncMapFloat64Float64V(*v, fastpathCheckNilTrue, e)
  623. case map[float64]bool:
  624. fastpathTV.EncMapFloat64BoolV(v, fastpathCheckNilTrue, e)
  625. case *map[float64]bool:
  626. fastpathTV.EncMapFloat64BoolV(*v, fastpathCheckNilTrue, e)
  627. case []uint:
  628. fastpathTV.EncSliceUintV(v, fastpathCheckNilTrue, e)
  629. case *[]uint:
  630. fastpathTV.EncSliceUintV(*v, fastpathCheckNilTrue, e)
  631. case map[uint]interface{}:
  632. fastpathTV.EncMapUintIntfV(v, fastpathCheckNilTrue, e)
  633. case *map[uint]interface{}:
  634. fastpathTV.EncMapUintIntfV(*v, fastpathCheckNilTrue, e)
  635. case map[uint]string:
  636. fastpathTV.EncMapUintStringV(v, fastpathCheckNilTrue, e)
  637. case *map[uint]string:
  638. fastpathTV.EncMapUintStringV(*v, fastpathCheckNilTrue, e)
  639. case map[uint]uint:
  640. fastpathTV.EncMapUintUintV(v, fastpathCheckNilTrue, e)
  641. case *map[uint]uint:
  642. fastpathTV.EncMapUintUintV(*v, fastpathCheckNilTrue, e)
  643. case map[uint]uint8:
  644. fastpathTV.EncMapUintUint8V(v, fastpathCheckNilTrue, e)
  645. case *map[uint]uint8:
  646. fastpathTV.EncMapUintUint8V(*v, fastpathCheckNilTrue, e)
  647. case map[uint]uint16:
  648. fastpathTV.EncMapUintUint16V(v, fastpathCheckNilTrue, e)
  649. case *map[uint]uint16:
  650. fastpathTV.EncMapUintUint16V(*v, fastpathCheckNilTrue, e)
  651. case map[uint]uint32:
  652. fastpathTV.EncMapUintUint32V(v, fastpathCheckNilTrue, e)
  653. case *map[uint]uint32:
  654. fastpathTV.EncMapUintUint32V(*v, fastpathCheckNilTrue, e)
  655. case map[uint]uint64:
  656. fastpathTV.EncMapUintUint64V(v, fastpathCheckNilTrue, e)
  657. case *map[uint]uint64:
  658. fastpathTV.EncMapUintUint64V(*v, fastpathCheckNilTrue, e)
  659. case map[uint]uintptr:
  660. fastpathTV.EncMapUintUintptrV(v, fastpathCheckNilTrue, e)
  661. case *map[uint]uintptr:
  662. fastpathTV.EncMapUintUintptrV(*v, fastpathCheckNilTrue, e)
  663. case map[uint]int:
  664. fastpathTV.EncMapUintIntV(v, fastpathCheckNilTrue, e)
  665. case *map[uint]int:
  666. fastpathTV.EncMapUintIntV(*v, fastpathCheckNilTrue, e)
  667. case map[uint]int8:
  668. fastpathTV.EncMapUintInt8V(v, fastpathCheckNilTrue, e)
  669. case *map[uint]int8:
  670. fastpathTV.EncMapUintInt8V(*v, fastpathCheckNilTrue, e)
  671. case map[uint]int16:
  672. fastpathTV.EncMapUintInt16V(v, fastpathCheckNilTrue, e)
  673. case *map[uint]int16:
  674. fastpathTV.EncMapUintInt16V(*v, fastpathCheckNilTrue, e)
  675. case map[uint]int32:
  676. fastpathTV.EncMapUintInt32V(v, fastpathCheckNilTrue, e)
  677. case *map[uint]int32:
  678. fastpathTV.EncMapUintInt32V(*v, fastpathCheckNilTrue, e)
  679. case map[uint]int64:
  680. fastpathTV.EncMapUintInt64V(v, fastpathCheckNilTrue, e)
  681. case *map[uint]int64:
  682. fastpathTV.EncMapUintInt64V(*v, fastpathCheckNilTrue, e)
  683. case map[uint]float32:
  684. fastpathTV.EncMapUintFloat32V(v, fastpathCheckNilTrue, e)
  685. case *map[uint]float32:
  686. fastpathTV.EncMapUintFloat32V(*v, fastpathCheckNilTrue, e)
  687. case map[uint]float64:
  688. fastpathTV.EncMapUintFloat64V(v, fastpathCheckNilTrue, e)
  689. case *map[uint]float64:
  690. fastpathTV.EncMapUintFloat64V(*v, fastpathCheckNilTrue, e)
  691. case map[uint]bool:
  692. fastpathTV.EncMapUintBoolV(v, fastpathCheckNilTrue, e)
  693. case *map[uint]bool:
  694. fastpathTV.EncMapUintBoolV(*v, fastpathCheckNilTrue, e)
  695. case map[uint8]interface{}:
  696. fastpathTV.EncMapUint8IntfV(v, fastpathCheckNilTrue, e)
  697. case *map[uint8]interface{}:
  698. fastpathTV.EncMapUint8IntfV(*v, fastpathCheckNilTrue, e)
  699. case map[uint8]string:
  700. fastpathTV.EncMapUint8StringV(v, fastpathCheckNilTrue, e)
  701. case *map[uint8]string:
  702. fastpathTV.EncMapUint8StringV(*v, fastpathCheckNilTrue, e)
  703. case map[uint8]uint:
  704. fastpathTV.EncMapUint8UintV(v, fastpathCheckNilTrue, e)
  705. case *map[uint8]uint:
  706. fastpathTV.EncMapUint8UintV(*v, fastpathCheckNilTrue, e)
  707. case map[uint8]uint8:
  708. fastpathTV.EncMapUint8Uint8V(v, fastpathCheckNilTrue, e)
  709. case *map[uint8]uint8:
  710. fastpathTV.EncMapUint8Uint8V(*v, fastpathCheckNilTrue, e)
  711. case map[uint8]uint16:
  712. fastpathTV.EncMapUint8Uint16V(v, fastpathCheckNilTrue, e)
  713. case *map[uint8]uint16:
  714. fastpathTV.EncMapUint8Uint16V(*v, fastpathCheckNilTrue, e)
  715. case map[uint8]uint32:
  716. fastpathTV.EncMapUint8Uint32V(v, fastpathCheckNilTrue, e)
  717. case *map[uint8]uint32:
  718. fastpathTV.EncMapUint8Uint32V(*v, fastpathCheckNilTrue, e)
  719. case map[uint8]uint64:
  720. fastpathTV.EncMapUint8Uint64V(v, fastpathCheckNilTrue, e)
  721. case *map[uint8]uint64:
  722. fastpathTV.EncMapUint8Uint64V(*v, fastpathCheckNilTrue, e)
  723. case map[uint8]uintptr:
  724. fastpathTV.EncMapUint8UintptrV(v, fastpathCheckNilTrue, e)
  725. case *map[uint8]uintptr:
  726. fastpathTV.EncMapUint8UintptrV(*v, fastpathCheckNilTrue, e)
  727. case map[uint8]int:
  728. fastpathTV.EncMapUint8IntV(v, fastpathCheckNilTrue, e)
  729. case *map[uint8]int:
  730. fastpathTV.EncMapUint8IntV(*v, fastpathCheckNilTrue, e)
  731. case map[uint8]int8:
  732. fastpathTV.EncMapUint8Int8V(v, fastpathCheckNilTrue, e)
  733. case *map[uint8]int8:
  734. fastpathTV.EncMapUint8Int8V(*v, fastpathCheckNilTrue, e)
  735. case map[uint8]int16:
  736. fastpathTV.EncMapUint8Int16V(v, fastpathCheckNilTrue, e)
  737. case *map[uint8]int16:
  738. fastpathTV.EncMapUint8Int16V(*v, fastpathCheckNilTrue, e)
  739. case map[uint8]int32:
  740. fastpathTV.EncMapUint8Int32V(v, fastpathCheckNilTrue, e)
  741. case *map[uint8]int32:
  742. fastpathTV.EncMapUint8Int32V(*v, fastpathCheckNilTrue, e)
  743. case map[uint8]int64:
  744. fastpathTV.EncMapUint8Int64V(v, fastpathCheckNilTrue, e)
  745. case *map[uint8]int64:
  746. fastpathTV.EncMapUint8Int64V(*v, fastpathCheckNilTrue, e)
  747. case map[uint8]float32:
  748. fastpathTV.EncMapUint8Float32V(v, fastpathCheckNilTrue, e)
  749. case *map[uint8]float32:
  750. fastpathTV.EncMapUint8Float32V(*v, fastpathCheckNilTrue, e)
  751. case map[uint8]float64:
  752. fastpathTV.EncMapUint8Float64V(v, fastpathCheckNilTrue, e)
  753. case *map[uint8]float64:
  754. fastpathTV.EncMapUint8Float64V(*v, fastpathCheckNilTrue, e)
  755. case map[uint8]bool:
  756. fastpathTV.EncMapUint8BoolV(v, fastpathCheckNilTrue, e)
  757. case *map[uint8]bool:
  758. fastpathTV.EncMapUint8BoolV(*v, fastpathCheckNilTrue, e)
  759. case []uint16:
  760. fastpathTV.EncSliceUint16V(v, fastpathCheckNilTrue, e)
  761. case *[]uint16:
  762. fastpathTV.EncSliceUint16V(*v, fastpathCheckNilTrue, e)
  763. case map[uint16]interface{}:
  764. fastpathTV.EncMapUint16IntfV(v, fastpathCheckNilTrue, e)
  765. case *map[uint16]interface{}:
  766. fastpathTV.EncMapUint16IntfV(*v, fastpathCheckNilTrue, e)
  767. case map[uint16]string:
  768. fastpathTV.EncMapUint16StringV(v, fastpathCheckNilTrue, e)
  769. case *map[uint16]string:
  770. fastpathTV.EncMapUint16StringV(*v, fastpathCheckNilTrue, e)
  771. case map[uint16]uint:
  772. fastpathTV.EncMapUint16UintV(v, fastpathCheckNilTrue, e)
  773. case *map[uint16]uint:
  774. fastpathTV.EncMapUint16UintV(*v, fastpathCheckNilTrue, e)
  775. case map[uint16]uint8:
  776. fastpathTV.EncMapUint16Uint8V(v, fastpathCheckNilTrue, e)
  777. case *map[uint16]uint8:
  778. fastpathTV.EncMapUint16Uint8V(*v, fastpathCheckNilTrue, e)
  779. case map[uint16]uint16:
  780. fastpathTV.EncMapUint16Uint16V(v, fastpathCheckNilTrue, e)
  781. case *map[uint16]uint16:
  782. fastpathTV.EncMapUint16Uint16V(*v, fastpathCheckNilTrue, e)
  783. case map[uint16]uint32:
  784. fastpathTV.EncMapUint16Uint32V(v, fastpathCheckNilTrue, e)
  785. case *map[uint16]uint32:
  786. fastpathTV.EncMapUint16Uint32V(*v, fastpathCheckNilTrue, e)
  787. case map[uint16]uint64:
  788. fastpathTV.EncMapUint16Uint64V(v, fastpathCheckNilTrue, e)
  789. case *map[uint16]uint64:
  790. fastpathTV.EncMapUint16Uint64V(*v, fastpathCheckNilTrue, e)
  791. case map[uint16]uintptr:
  792. fastpathTV.EncMapUint16UintptrV(v, fastpathCheckNilTrue, e)
  793. case *map[uint16]uintptr:
  794. fastpathTV.EncMapUint16UintptrV(*v, fastpathCheckNilTrue, e)
  795. case map[uint16]int:
  796. fastpathTV.EncMapUint16IntV(v, fastpathCheckNilTrue, e)
  797. case *map[uint16]int:
  798. fastpathTV.EncMapUint16IntV(*v, fastpathCheckNilTrue, e)
  799. case map[uint16]int8:
  800. fastpathTV.EncMapUint16Int8V(v, fastpathCheckNilTrue, e)
  801. case *map[uint16]int8:
  802. fastpathTV.EncMapUint16Int8V(*v, fastpathCheckNilTrue, e)
  803. case map[uint16]int16:
  804. fastpathTV.EncMapUint16Int16V(v, fastpathCheckNilTrue, e)
  805. case *map[uint16]int16:
  806. fastpathTV.EncMapUint16Int16V(*v, fastpathCheckNilTrue, e)
  807. case map[uint16]int32:
  808. fastpathTV.EncMapUint16Int32V(v, fastpathCheckNilTrue, e)
  809. case *map[uint16]int32:
  810. fastpathTV.EncMapUint16Int32V(*v, fastpathCheckNilTrue, e)
  811. case map[uint16]int64:
  812. fastpathTV.EncMapUint16Int64V(v, fastpathCheckNilTrue, e)
  813. case *map[uint16]int64:
  814. fastpathTV.EncMapUint16Int64V(*v, fastpathCheckNilTrue, e)
  815. case map[uint16]float32:
  816. fastpathTV.EncMapUint16Float32V(v, fastpathCheckNilTrue, e)
  817. case *map[uint16]float32:
  818. fastpathTV.EncMapUint16Float32V(*v, fastpathCheckNilTrue, e)
  819. case map[uint16]float64:
  820. fastpathTV.EncMapUint16Float64V(v, fastpathCheckNilTrue, e)
  821. case *map[uint16]float64:
  822. fastpathTV.EncMapUint16Float64V(*v, fastpathCheckNilTrue, e)
  823. case map[uint16]bool:
  824. fastpathTV.EncMapUint16BoolV(v, fastpathCheckNilTrue, e)
  825. case *map[uint16]bool:
  826. fastpathTV.EncMapUint16BoolV(*v, fastpathCheckNilTrue, e)
  827. case []uint32:
  828. fastpathTV.EncSliceUint32V(v, fastpathCheckNilTrue, e)
  829. case *[]uint32:
  830. fastpathTV.EncSliceUint32V(*v, fastpathCheckNilTrue, e)
  831. case map[uint32]interface{}:
  832. fastpathTV.EncMapUint32IntfV(v, fastpathCheckNilTrue, e)
  833. case *map[uint32]interface{}:
  834. fastpathTV.EncMapUint32IntfV(*v, fastpathCheckNilTrue, e)
  835. case map[uint32]string:
  836. fastpathTV.EncMapUint32StringV(v, fastpathCheckNilTrue, e)
  837. case *map[uint32]string:
  838. fastpathTV.EncMapUint32StringV(*v, fastpathCheckNilTrue, e)
  839. case map[uint32]uint:
  840. fastpathTV.EncMapUint32UintV(v, fastpathCheckNilTrue, e)
  841. case *map[uint32]uint:
  842. fastpathTV.EncMapUint32UintV(*v, fastpathCheckNilTrue, e)
  843. case map[uint32]uint8:
  844. fastpathTV.EncMapUint32Uint8V(v, fastpathCheckNilTrue, e)
  845. case *map[uint32]uint8:
  846. fastpathTV.EncMapUint32Uint8V(*v, fastpathCheckNilTrue, e)
  847. case map[uint32]uint16:
  848. fastpathTV.EncMapUint32Uint16V(v, fastpathCheckNilTrue, e)
  849. case *map[uint32]uint16:
  850. fastpathTV.EncMapUint32Uint16V(*v, fastpathCheckNilTrue, e)
  851. case map[uint32]uint32:
  852. fastpathTV.EncMapUint32Uint32V(v, fastpathCheckNilTrue, e)
  853. case *map[uint32]uint32:
  854. fastpathTV.EncMapUint32Uint32V(*v, fastpathCheckNilTrue, e)
  855. case map[uint32]uint64:
  856. fastpathTV.EncMapUint32Uint64V(v, fastpathCheckNilTrue, e)
  857. case *map[uint32]uint64:
  858. fastpathTV.EncMapUint32Uint64V(*v, fastpathCheckNilTrue, e)
  859. case map[uint32]uintptr:
  860. fastpathTV.EncMapUint32UintptrV(v, fastpathCheckNilTrue, e)
  861. case *map[uint32]uintptr:
  862. fastpathTV.EncMapUint32UintptrV(*v, fastpathCheckNilTrue, e)
  863. case map[uint32]int:
  864. fastpathTV.EncMapUint32IntV(v, fastpathCheckNilTrue, e)
  865. case *map[uint32]int:
  866. fastpathTV.EncMapUint32IntV(*v, fastpathCheckNilTrue, e)
  867. case map[uint32]int8:
  868. fastpathTV.EncMapUint32Int8V(v, fastpathCheckNilTrue, e)
  869. case *map[uint32]int8:
  870. fastpathTV.EncMapUint32Int8V(*v, fastpathCheckNilTrue, e)
  871. case map[uint32]int16:
  872. fastpathTV.EncMapUint32Int16V(v, fastpathCheckNilTrue, e)
  873. case *map[uint32]int16:
  874. fastpathTV.EncMapUint32Int16V(*v, fastpathCheckNilTrue, e)
  875. case map[uint32]int32:
  876. fastpathTV.EncMapUint32Int32V(v, fastpathCheckNilTrue, e)
  877. case *map[uint32]int32:
  878. fastpathTV.EncMapUint32Int32V(*v, fastpathCheckNilTrue, e)
  879. case map[uint32]int64:
  880. fastpathTV.EncMapUint32Int64V(v, fastpathCheckNilTrue, e)
  881. case *map[uint32]int64:
  882. fastpathTV.EncMapUint32Int64V(*v, fastpathCheckNilTrue, e)
  883. case map[uint32]float32:
  884. fastpathTV.EncMapUint32Float32V(v, fastpathCheckNilTrue, e)
  885. case *map[uint32]float32:
  886. fastpathTV.EncMapUint32Float32V(*v, fastpathCheckNilTrue, e)
  887. case map[uint32]float64:
  888. fastpathTV.EncMapUint32Float64V(v, fastpathCheckNilTrue, e)
  889. case *map[uint32]float64:
  890. fastpathTV.EncMapUint32Float64V(*v, fastpathCheckNilTrue, e)
  891. case map[uint32]bool:
  892. fastpathTV.EncMapUint32BoolV(v, fastpathCheckNilTrue, e)
  893. case *map[uint32]bool:
  894. fastpathTV.EncMapUint32BoolV(*v, fastpathCheckNilTrue, e)
  895. case []uint64:
  896. fastpathTV.EncSliceUint64V(v, fastpathCheckNilTrue, e)
  897. case *[]uint64:
  898. fastpathTV.EncSliceUint64V(*v, fastpathCheckNilTrue, e)
  899. case map[uint64]interface{}:
  900. fastpathTV.EncMapUint64IntfV(v, fastpathCheckNilTrue, e)
  901. case *map[uint64]interface{}:
  902. fastpathTV.EncMapUint64IntfV(*v, fastpathCheckNilTrue, e)
  903. case map[uint64]string:
  904. fastpathTV.EncMapUint64StringV(v, fastpathCheckNilTrue, e)
  905. case *map[uint64]string:
  906. fastpathTV.EncMapUint64StringV(*v, fastpathCheckNilTrue, e)
  907. case map[uint64]uint:
  908. fastpathTV.EncMapUint64UintV(v, fastpathCheckNilTrue, e)
  909. case *map[uint64]uint:
  910. fastpathTV.EncMapUint64UintV(*v, fastpathCheckNilTrue, e)
  911. case map[uint64]uint8:
  912. fastpathTV.EncMapUint64Uint8V(v, fastpathCheckNilTrue, e)
  913. case *map[uint64]uint8:
  914. fastpathTV.EncMapUint64Uint8V(*v, fastpathCheckNilTrue, e)
  915. case map[uint64]uint16:
  916. fastpathTV.EncMapUint64Uint16V(v, fastpathCheckNilTrue, e)
  917. case *map[uint64]uint16:
  918. fastpathTV.EncMapUint64Uint16V(*v, fastpathCheckNilTrue, e)
  919. case map[uint64]uint32:
  920. fastpathTV.EncMapUint64Uint32V(v, fastpathCheckNilTrue, e)
  921. case *map[uint64]uint32:
  922. fastpathTV.EncMapUint64Uint32V(*v, fastpathCheckNilTrue, e)
  923. case map[uint64]uint64:
  924. fastpathTV.EncMapUint64Uint64V(v, fastpathCheckNilTrue, e)
  925. case *map[uint64]uint64:
  926. fastpathTV.EncMapUint64Uint64V(*v, fastpathCheckNilTrue, e)
  927. case map[uint64]uintptr:
  928. fastpathTV.EncMapUint64UintptrV(v, fastpathCheckNilTrue, e)
  929. case *map[uint64]uintptr:
  930. fastpathTV.EncMapUint64UintptrV(*v, fastpathCheckNilTrue, e)
  931. case map[uint64]int:
  932. fastpathTV.EncMapUint64IntV(v, fastpathCheckNilTrue, e)
  933. case *map[uint64]int:
  934. fastpathTV.EncMapUint64IntV(*v, fastpathCheckNilTrue, e)
  935. case map[uint64]int8:
  936. fastpathTV.EncMapUint64Int8V(v, fastpathCheckNilTrue, e)
  937. case *map[uint64]int8:
  938. fastpathTV.EncMapUint64Int8V(*v, fastpathCheckNilTrue, e)
  939. case map[uint64]int16:
  940. fastpathTV.EncMapUint64Int16V(v, fastpathCheckNilTrue, e)
  941. case *map[uint64]int16:
  942. fastpathTV.EncMapUint64Int16V(*v, fastpathCheckNilTrue, e)
  943. case map[uint64]int32:
  944. fastpathTV.EncMapUint64Int32V(v, fastpathCheckNilTrue, e)
  945. case *map[uint64]int32:
  946. fastpathTV.EncMapUint64Int32V(*v, fastpathCheckNilTrue, e)
  947. case map[uint64]int64:
  948. fastpathTV.EncMapUint64Int64V(v, fastpathCheckNilTrue, e)
  949. case *map[uint64]int64:
  950. fastpathTV.EncMapUint64Int64V(*v, fastpathCheckNilTrue, e)
  951. case map[uint64]float32:
  952. fastpathTV.EncMapUint64Float32V(v, fastpathCheckNilTrue, e)
  953. case *map[uint64]float32:
  954. fastpathTV.EncMapUint64Float32V(*v, fastpathCheckNilTrue, e)
  955. case map[uint64]float64:
  956. fastpathTV.EncMapUint64Float64V(v, fastpathCheckNilTrue, e)
  957. case *map[uint64]float64:
  958. fastpathTV.EncMapUint64Float64V(*v, fastpathCheckNilTrue, e)
  959. case map[uint64]bool:
  960. fastpathTV.EncMapUint64BoolV(v, fastpathCheckNilTrue, e)
  961. case *map[uint64]bool:
  962. fastpathTV.EncMapUint64BoolV(*v, fastpathCheckNilTrue, e)
  963. case []uintptr:
  964. fastpathTV.EncSliceUintptrV(v, fastpathCheckNilTrue, e)
  965. case *[]uintptr:
  966. fastpathTV.EncSliceUintptrV(*v, fastpathCheckNilTrue, e)
  967. case map[uintptr]interface{}:
  968. fastpathTV.EncMapUintptrIntfV(v, fastpathCheckNilTrue, e)
  969. case *map[uintptr]interface{}:
  970. fastpathTV.EncMapUintptrIntfV(*v, fastpathCheckNilTrue, e)
  971. case map[uintptr]string:
  972. fastpathTV.EncMapUintptrStringV(v, fastpathCheckNilTrue, e)
  973. case *map[uintptr]string:
  974. fastpathTV.EncMapUintptrStringV(*v, fastpathCheckNilTrue, e)
  975. case map[uintptr]uint:
  976. fastpathTV.EncMapUintptrUintV(v, fastpathCheckNilTrue, e)
  977. case *map[uintptr]uint:
  978. fastpathTV.EncMapUintptrUintV(*v, fastpathCheckNilTrue, e)
  979. case map[uintptr]uint8:
  980. fastpathTV.EncMapUintptrUint8V(v, fastpathCheckNilTrue, e)
  981. case *map[uintptr]uint8:
  982. fastpathTV.EncMapUintptrUint8V(*v, fastpathCheckNilTrue, e)
  983. case map[uintptr]uint16:
  984. fastpathTV.EncMapUintptrUint16V(v, fastpathCheckNilTrue, e)
  985. case *map[uintptr]uint16:
  986. fastpathTV.EncMapUintptrUint16V(*v, fastpathCheckNilTrue, e)
  987. case map[uintptr]uint32:
  988. fastpathTV.EncMapUintptrUint32V(v, fastpathCheckNilTrue, e)
  989. case *map[uintptr]uint32:
  990. fastpathTV.EncMapUintptrUint32V(*v, fastpathCheckNilTrue, e)
  991. case map[uintptr]uint64:
  992. fastpathTV.EncMapUintptrUint64V(v, fastpathCheckNilTrue, e)
  993. case *map[uintptr]uint64:
  994. fastpathTV.EncMapUintptrUint64V(*v, fastpathCheckNilTrue, e)
  995. case map[uintptr]uintptr:
  996. fastpathTV.EncMapUintptrUintptrV(v, fastpathCheckNilTrue, e)
  997. case *map[uintptr]uintptr:
  998. fastpathTV.EncMapUintptrUintptrV(*v, fastpathCheckNilTrue, e)
  999. case map[uintptr]int:
  1000. fastpathTV.EncMapUintptrIntV(v, fastpathCheckNilTrue, e)
  1001. case *map[uintptr]int:
  1002. fastpathTV.EncMapUintptrIntV(*v, fastpathCheckNilTrue, e)
  1003. case map[uintptr]int8:
  1004. fastpathTV.EncMapUintptrInt8V(v, fastpathCheckNilTrue, e)
  1005. case *map[uintptr]int8:
  1006. fastpathTV.EncMapUintptrInt8V(*v, fastpathCheckNilTrue, e)
  1007. case map[uintptr]int16:
  1008. fastpathTV.EncMapUintptrInt16V(v, fastpathCheckNilTrue, e)
  1009. case *map[uintptr]int16:
  1010. fastpathTV.EncMapUintptrInt16V(*v, fastpathCheckNilTrue, e)
  1011. case map[uintptr]int32:
  1012. fastpathTV.EncMapUintptrInt32V(v, fastpathCheckNilTrue, e)
  1013. case *map[uintptr]int32:
  1014. fastpathTV.EncMapUintptrInt32V(*v, fastpathCheckNilTrue, e)
  1015. case map[uintptr]int64:
  1016. fastpathTV.EncMapUintptrInt64V(v, fastpathCheckNilTrue, e)
  1017. case *map[uintptr]int64:
  1018. fastpathTV.EncMapUintptrInt64V(*v, fastpathCheckNilTrue, e)
  1019. case map[uintptr]float32:
  1020. fastpathTV.EncMapUintptrFloat32V(v, fastpathCheckNilTrue, e)
  1021. case *map[uintptr]float32:
  1022. fastpathTV.EncMapUintptrFloat32V(*v, fastpathCheckNilTrue, e)
  1023. case map[uintptr]float64:
  1024. fastpathTV.EncMapUintptrFloat64V(v, fastpathCheckNilTrue, e)
  1025. case *map[uintptr]float64:
  1026. fastpathTV.EncMapUintptrFloat64V(*v, fastpathCheckNilTrue, e)
  1027. case map[uintptr]bool:
  1028. fastpathTV.EncMapUintptrBoolV(v, fastpathCheckNilTrue, e)
  1029. case *map[uintptr]bool:
  1030. fastpathTV.EncMapUintptrBoolV(*v, fastpathCheckNilTrue, e)
  1031. case []int:
  1032. fastpathTV.EncSliceIntV(v, fastpathCheckNilTrue, e)
  1033. case *[]int:
  1034. fastpathTV.EncSliceIntV(*v, fastpathCheckNilTrue, e)
  1035. case map[int]interface{}:
  1036. fastpathTV.EncMapIntIntfV(v, fastpathCheckNilTrue, e)
  1037. case *map[int]interface{}:
  1038. fastpathTV.EncMapIntIntfV(*v, fastpathCheckNilTrue, e)
  1039. case map[int]string:
  1040. fastpathTV.EncMapIntStringV(v, fastpathCheckNilTrue, e)
  1041. case *map[int]string:
  1042. fastpathTV.EncMapIntStringV(*v, fastpathCheckNilTrue, e)
  1043. case map[int]uint:
  1044. fastpathTV.EncMapIntUintV(v, fastpathCheckNilTrue, e)
  1045. case *map[int]uint:
  1046. fastpathTV.EncMapIntUintV(*v, fastpathCheckNilTrue, e)
  1047. case map[int]uint8:
  1048. fastpathTV.EncMapIntUint8V(v, fastpathCheckNilTrue, e)
  1049. case *map[int]uint8:
  1050. fastpathTV.EncMapIntUint8V(*v, fastpathCheckNilTrue, e)
  1051. case map[int]uint16:
  1052. fastpathTV.EncMapIntUint16V(v, fastpathCheckNilTrue, e)
  1053. case *map[int]uint16:
  1054. fastpathTV.EncMapIntUint16V(*v, fastpathCheckNilTrue, e)
  1055. case map[int]uint32:
  1056. fastpathTV.EncMapIntUint32V(v, fastpathCheckNilTrue, e)
  1057. case *map[int]uint32:
  1058. fastpathTV.EncMapIntUint32V(*v, fastpathCheckNilTrue, e)
  1059. case map[int]uint64:
  1060. fastpathTV.EncMapIntUint64V(v, fastpathCheckNilTrue, e)
  1061. case *map[int]uint64:
  1062. fastpathTV.EncMapIntUint64V(*v, fastpathCheckNilTrue, e)
  1063. case map[int]uintptr:
  1064. fastpathTV.EncMapIntUintptrV(v, fastpathCheckNilTrue, e)
  1065. case *map[int]uintptr:
  1066. fastpathTV.EncMapIntUintptrV(*v, fastpathCheckNilTrue, e)
  1067. case map[int]int:
  1068. fastpathTV.EncMapIntIntV(v, fastpathCheckNilTrue, e)
  1069. case *map[int]int:
  1070. fastpathTV.EncMapIntIntV(*v, fastpathCheckNilTrue, e)
  1071. case map[int]int8:
  1072. fastpathTV.EncMapIntInt8V(v, fastpathCheckNilTrue, e)
  1073. case *map[int]int8:
  1074. fastpathTV.EncMapIntInt8V(*v, fastpathCheckNilTrue, e)
  1075. case map[int]int16:
  1076. fastpathTV.EncMapIntInt16V(v, fastpathCheckNilTrue, e)
  1077. case *map[int]int16:
  1078. fastpathTV.EncMapIntInt16V(*v, fastpathCheckNilTrue, e)
  1079. case map[int]int32:
  1080. fastpathTV.EncMapIntInt32V(v, fastpathCheckNilTrue, e)
  1081. case *map[int]int32:
  1082. fastpathTV.EncMapIntInt32V(*v, fastpathCheckNilTrue, e)
  1083. case map[int]int64:
  1084. fastpathTV.EncMapIntInt64V(v, fastpathCheckNilTrue, e)
  1085. case *map[int]int64:
  1086. fastpathTV.EncMapIntInt64V(*v, fastpathCheckNilTrue, e)
  1087. case map[int]float32:
  1088. fastpathTV.EncMapIntFloat32V(v, fastpathCheckNilTrue, e)
  1089. case *map[int]float32:
  1090. fastpathTV.EncMapIntFloat32V(*v, fastpathCheckNilTrue, e)
  1091. case map[int]float64:
  1092. fastpathTV.EncMapIntFloat64V(v, fastpathCheckNilTrue, e)
  1093. case *map[int]float64:
  1094. fastpathTV.EncMapIntFloat64V(*v, fastpathCheckNilTrue, e)
  1095. case map[int]bool:
  1096. fastpathTV.EncMapIntBoolV(v, fastpathCheckNilTrue, e)
  1097. case *map[int]bool:
  1098. fastpathTV.EncMapIntBoolV(*v, fastpathCheckNilTrue, e)
  1099. case []int8:
  1100. fastpathTV.EncSliceInt8V(v, fastpathCheckNilTrue, e)
  1101. case *[]int8:
  1102. fastpathTV.EncSliceInt8V(*v, fastpathCheckNilTrue, e)
  1103. case map[int8]interface{}:
  1104. fastpathTV.EncMapInt8IntfV(v, fastpathCheckNilTrue, e)
  1105. case *map[int8]interface{}:
  1106. fastpathTV.EncMapInt8IntfV(*v, fastpathCheckNilTrue, e)
  1107. case map[int8]string:
  1108. fastpathTV.EncMapInt8StringV(v, fastpathCheckNilTrue, e)
  1109. case *map[int8]string:
  1110. fastpathTV.EncMapInt8StringV(*v, fastpathCheckNilTrue, e)
  1111. case map[int8]uint:
  1112. fastpathTV.EncMapInt8UintV(v, fastpathCheckNilTrue, e)
  1113. case *map[int8]uint:
  1114. fastpathTV.EncMapInt8UintV(*v, fastpathCheckNilTrue, e)
  1115. case map[int8]uint8:
  1116. fastpathTV.EncMapInt8Uint8V(v, fastpathCheckNilTrue, e)
  1117. case *map[int8]uint8:
  1118. fastpathTV.EncMapInt8Uint8V(*v, fastpathCheckNilTrue, e)
  1119. case map[int8]uint16:
  1120. fastpathTV.EncMapInt8Uint16V(v, fastpathCheckNilTrue, e)
  1121. case *map[int8]uint16:
  1122. fastpathTV.EncMapInt8Uint16V(*v, fastpathCheckNilTrue, e)
  1123. case map[int8]uint32:
  1124. fastpathTV.EncMapInt8Uint32V(v, fastpathCheckNilTrue, e)
  1125. case *map[int8]uint32:
  1126. fastpathTV.EncMapInt8Uint32V(*v, fastpathCheckNilTrue, e)
  1127. case map[int8]uint64:
  1128. fastpathTV.EncMapInt8Uint64V(v, fastpathCheckNilTrue, e)
  1129. case *map[int8]uint64:
  1130. fastpathTV.EncMapInt8Uint64V(*v, fastpathCheckNilTrue, e)
  1131. case map[int8]uintptr:
  1132. fastpathTV.EncMapInt8UintptrV(v, fastpathCheckNilTrue, e)
  1133. case *map[int8]uintptr:
  1134. fastpathTV.EncMapInt8UintptrV(*v, fastpathCheckNilTrue, e)
  1135. case map[int8]int:
  1136. fastpathTV.EncMapInt8IntV(v, fastpathCheckNilTrue, e)
  1137. case *map[int8]int:
  1138. fastpathTV.EncMapInt8IntV(*v, fastpathCheckNilTrue, e)
  1139. case map[int8]int8:
  1140. fastpathTV.EncMapInt8Int8V(v, fastpathCheckNilTrue, e)
  1141. case *map[int8]int8:
  1142. fastpathTV.EncMapInt8Int8V(*v, fastpathCheckNilTrue, e)
  1143. case map[int8]int16:
  1144. fastpathTV.EncMapInt8Int16V(v, fastpathCheckNilTrue, e)
  1145. case *map[int8]int16:
  1146. fastpathTV.EncMapInt8Int16V(*v, fastpathCheckNilTrue, e)
  1147. case map[int8]int32:
  1148. fastpathTV.EncMapInt8Int32V(v, fastpathCheckNilTrue, e)
  1149. case *map[int8]int32:
  1150. fastpathTV.EncMapInt8Int32V(*v, fastpathCheckNilTrue, e)
  1151. case map[int8]int64:
  1152. fastpathTV.EncMapInt8Int64V(v, fastpathCheckNilTrue, e)
  1153. case *map[int8]int64:
  1154. fastpathTV.EncMapInt8Int64V(*v, fastpathCheckNilTrue, e)
  1155. case map[int8]float32:
  1156. fastpathTV.EncMapInt8Float32V(v, fastpathCheckNilTrue, e)
  1157. case *map[int8]float32:
  1158. fastpathTV.EncMapInt8Float32V(*v, fastpathCheckNilTrue, e)
  1159. case map[int8]float64:
  1160. fastpathTV.EncMapInt8Float64V(v, fastpathCheckNilTrue, e)
  1161. case *map[int8]float64:
  1162. fastpathTV.EncMapInt8Float64V(*v, fastpathCheckNilTrue, e)
  1163. case map[int8]bool:
  1164. fastpathTV.EncMapInt8BoolV(v, fastpathCheckNilTrue, e)
  1165. case *map[int8]bool:
  1166. fastpathTV.EncMapInt8BoolV(*v, fastpathCheckNilTrue, e)
  1167. case []int16:
  1168. fastpathTV.EncSliceInt16V(v, fastpathCheckNilTrue, e)
  1169. case *[]int16:
  1170. fastpathTV.EncSliceInt16V(*v, fastpathCheckNilTrue, e)
  1171. case map[int16]interface{}:
  1172. fastpathTV.EncMapInt16IntfV(v, fastpathCheckNilTrue, e)
  1173. case *map[int16]interface{}:
  1174. fastpathTV.EncMapInt16IntfV(*v, fastpathCheckNilTrue, e)
  1175. case map[int16]string:
  1176. fastpathTV.EncMapInt16StringV(v, fastpathCheckNilTrue, e)
  1177. case *map[int16]string:
  1178. fastpathTV.EncMapInt16StringV(*v, fastpathCheckNilTrue, e)
  1179. case map[int16]uint:
  1180. fastpathTV.EncMapInt16UintV(v, fastpathCheckNilTrue, e)
  1181. case *map[int16]uint:
  1182. fastpathTV.EncMapInt16UintV(*v, fastpathCheckNilTrue, e)
  1183. case map[int16]uint8:
  1184. fastpathTV.EncMapInt16Uint8V(v, fastpathCheckNilTrue, e)
  1185. case *map[int16]uint8:
  1186. fastpathTV.EncMapInt16Uint8V(*v, fastpathCheckNilTrue, e)
  1187. case map[int16]uint16:
  1188. fastpathTV.EncMapInt16Uint16V(v, fastpathCheckNilTrue, e)
  1189. case *map[int16]uint16:
  1190. fastpathTV.EncMapInt16Uint16V(*v, fastpathCheckNilTrue, e)
  1191. case map[int16]uint32:
  1192. fastpathTV.EncMapInt16Uint32V(v, fastpathCheckNilTrue, e)
  1193. case *map[int16]uint32:
  1194. fastpathTV.EncMapInt16Uint32V(*v, fastpathCheckNilTrue, e)
  1195. case map[int16]uint64:
  1196. fastpathTV.EncMapInt16Uint64V(v, fastpathCheckNilTrue, e)
  1197. case *map[int16]uint64:
  1198. fastpathTV.EncMapInt16Uint64V(*v, fastpathCheckNilTrue, e)
  1199. case map[int16]uintptr:
  1200. fastpathTV.EncMapInt16UintptrV(v, fastpathCheckNilTrue, e)
  1201. case *map[int16]uintptr:
  1202. fastpathTV.EncMapInt16UintptrV(*v, fastpathCheckNilTrue, e)
  1203. case map[int16]int:
  1204. fastpathTV.EncMapInt16IntV(v, fastpathCheckNilTrue, e)
  1205. case *map[int16]int:
  1206. fastpathTV.EncMapInt16IntV(*v, fastpathCheckNilTrue, e)
  1207. case map[int16]int8:
  1208. fastpathTV.EncMapInt16Int8V(v, fastpathCheckNilTrue, e)
  1209. case *map[int16]int8:
  1210. fastpathTV.EncMapInt16Int8V(*v, fastpathCheckNilTrue, e)
  1211. case map[int16]int16:
  1212. fastpathTV.EncMapInt16Int16V(v, fastpathCheckNilTrue, e)
  1213. case *map[int16]int16:
  1214. fastpathTV.EncMapInt16Int16V(*v, fastpathCheckNilTrue, e)
  1215. case map[int16]int32:
  1216. fastpathTV.EncMapInt16Int32V(v, fastpathCheckNilTrue, e)
  1217. case *map[int16]int32:
  1218. fastpathTV.EncMapInt16Int32V(*v, fastpathCheckNilTrue, e)
  1219. case map[int16]int64:
  1220. fastpathTV.EncMapInt16Int64V(v, fastpathCheckNilTrue, e)
  1221. case *map[int16]int64:
  1222. fastpathTV.EncMapInt16Int64V(*v, fastpathCheckNilTrue, e)
  1223. case map[int16]float32:
  1224. fastpathTV.EncMapInt16Float32V(v, fastpathCheckNilTrue, e)
  1225. case *map[int16]float32:
  1226. fastpathTV.EncMapInt16Float32V(*v, fastpathCheckNilTrue, e)
  1227. case map[int16]float64:
  1228. fastpathTV.EncMapInt16Float64V(v, fastpathCheckNilTrue, e)
  1229. case *map[int16]float64:
  1230. fastpathTV.EncMapInt16Float64V(*v, fastpathCheckNilTrue, e)
  1231. case map[int16]bool:
  1232. fastpathTV.EncMapInt16BoolV(v, fastpathCheckNilTrue, e)
  1233. case *map[int16]bool:
  1234. fastpathTV.EncMapInt16BoolV(*v, fastpathCheckNilTrue, e)
  1235. case []int32:
  1236. fastpathTV.EncSliceInt32V(v, fastpathCheckNilTrue, e)
  1237. case *[]int32:
  1238. fastpathTV.EncSliceInt32V(*v, fastpathCheckNilTrue, e)
  1239. case map[int32]interface{}:
  1240. fastpathTV.EncMapInt32IntfV(v, fastpathCheckNilTrue, e)
  1241. case *map[int32]interface{}:
  1242. fastpathTV.EncMapInt32IntfV(*v, fastpathCheckNilTrue, e)
  1243. case map[int32]string:
  1244. fastpathTV.EncMapInt32StringV(v, fastpathCheckNilTrue, e)
  1245. case *map[int32]string:
  1246. fastpathTV.EncMapInt32StringV(*v, fastpathCheckNilTrue, e)
  1247. case map[int32]uint:
  1248. fastpathTV.EncMapInt32UintV(v, fastpathCheckNilTrue, e)
  1249. case *map[int32]uint:
  1250. fastpathTV.EncMapInt32UintV(*v, fastpathCheckNilTrue, e)
  1251. case map[int32]uint8:
  1252. fastpathTV.EncMapInt32Uint8V(v, fastpathCheckNilTrue, e)
  1253. case *map[int32]uint8:
  1254. fastpathTV.EncMapInt32Uint8V(*v, fastpathCheckNilTrue, e)
  1255. case map[int32]uint16:
  1256. fastpathTV.EncMapInt32Uint16V(v, fastpathCheckNilTrue, e)
  1257. case *map[int32]uint16:
  1258. fastpathTV.EncMapInt32Uint16V(*v, fastpathCheckNilTrue, e)
  1259. case map[int32]uint32:
  1260. fastpathTV.EncMapInt32Uint32V(v, fastpathCheckNilTrue, e)
  1261. case *map[int32]uint32:
  1262. fastpathTV.EncMapInt32Uint32V(*v, fastpathCheckNilTrue, e)
  1263. case map[int32]uint64:
  1264. fastpathTV.EncMapInt32Uint64V(v, fastpathCheckNilTrue, e)
  1265. case *map[int32]uint64:
  1266. fastpathTV.EncMapInt32Uint64V(*v, fastpathCheckNilTrue, e)
  1267. case map[int32]uintptr:
  1268. fastpathTV.EncMapInt32UintptrV(v, fastpathCheckNilTrue, e)
  1269. case *map[int32]uintptr:
  1270. fastpathTV.EncMapInt32UintptrV(*v, fastpathCheckNilTrue, e)
  1271. case map[int32]int:
  1272. fastpathTV.EncMapInt32IntV(v, fastpathCheckNilTrue, e)
  1273. case *map[int32]int:
  1274. fastpathTV.EncMapInt32IntV(*v, fastpathCheckNilTrue, e)
  1275. case map[int32]int8:
  1276. fastpathTV.EncMapInt32Int8V(v, fastpathCheckNilTrue, e)
  1277. case *map[int32]int8:
  1278. fastpathTV.EncMapInt32Int8V(*v, fastpathCheckNilTrue, e)
  1279. case map[int32]int16:
  1280. fastpathTV.EncMapInt32Int16V(v, fastpathCheckNilTrue, e)
  1281. case *map[int32]int16:
  1282. fastpathTV.EncMapInt32Int16V(*v, fastpathCheckNilTrue, e)
  1283. case map[int32]int32:
  1284. fastpathTV.EncMapInt32Int32V(v, fastpathCheckNilTrue, e)
  1285. case *map[int32]int32:
  1286. fastpathTV.EncMapInt32Int32V(*v, fastpathCheckNilTrue, e)
  1287. case map[int32]int64:
  1288. fastpathTV.EncMapInt32Int64V(v, fastpathCheckNilTrue, e)
  1289. case *map[int32]int64:
  1290. fastpathTV.EncMapInt32Int64V(*v, fastpathCheckNilTrue, e)
  1291. case map[int32]float32:
  1292. fastpathTV.EncMapInt32Float32V(v, fastpathCheckNilTrue, e)
  1293. case *map[int32]float32:
  1294. fastpathTV.EncMapInt32Float32V(*v, fastpathCheckNilTrue, e)
  1295. case map[int32]float64:
  1296. fastpathTV.EncMapInt32Float64V(v, fastpathCheckNilTrue, e)
  1297. case *map[int32]float64:
  1298. fastpathTV.EncMapInt32Float64V(*v, fastpathCheckNilTrue, e)
  1299. case map[int32]bool:
  1300. fastpathTV.EncMapInt32BoolV(v, fastpathCheckNilTrue, e)
  1301. case *map[int32]bool:
  1302. fastpathTV.EncMapInt32BoolV(*v, fastpathCheckNilTrue, e)
  1303. case []int64:
  1304. fastpathTV.EncSliceInt64V(v, fastpathCheckNilTrue, e)
  1305. case *[]int64:
  1306. fastpathTV.EncSliceInt64V(*v, fastpathCheckNilTrue, e)
  1307. case map[int64]interface{}:
  1308. fastpathTV.EncMapInt64IntfV(v, fastpathCheckNilTrue, e)
  1309. case *map[int64]interface{}:
  1310. fastpathTV.EncMapInt64IntfV(*v, fastpathCheckNilTrue, e)
  1311. case map[int64]string:
  1312. fastpathTV.EncMapInt64StringV(v, fastpathCheckNilTrue, e)
  1313. case *map[int64]string:
  1314. fastpathTV.EncMapInt64StringV(*v, fastpathCheckNilTrue, e)
  1315. case map[int64]uint:
  1316. fastpathTV.EncMapInt64UintV(v, fastpathCheckNilTrue, e)
  1317. case *map[int64]uint:
  1318. fastpathTV.EncMapInt64UintV(*v, fastpathCheckNilTrue, e)
  1319. case map[int64]uint8:
  1320. fastpathTV.EncMapInt64Uint8V(v, fastpathCheckNilTrue, e)
  1321. case *map[int64]uint8:
  1322. fastpathTV.EncMapInt64Uint8V(*v, fastpathCheckNilTrue, e)
  1323. case map[int64]uint16:
  1324. fastpathTV.EncMapInt64Uint16V(v, fastpathCheckNilTrue, e)
  1325. case *map[int64]uint16:
  1326. fastpathTV.EncMapInt64Uint16V(*v, fastpathCheckNilTrue, e)
  1327. case map[int64]uint32:
  1328. fastpathTV.EncMapInt64Uint32V(v, fastpathCheckNilTrue, e)
  1329. case *map[int64]uint32:
  1330. fastpathTV.EncMapInt64Uint32V(*v, fastpathCheckNilTrue, e)
  1331. case map[int64]uint64:
  1332. fastpathTV.EncMapInt64Uint64V(v, fastpathCheckNilTrue, e)
  1333. case *map[int64]uint64:
  1334. fastpathTV.EncMapInt64Uint64V(*v, fastpathCheckNilTrue, e)
  1335. case map[int64]uintptr:
  1336. fastpathTV.EncMapInt64UintptrV(v, fastpathCheckNilTrue, e)
  1337. case *map[int64]uintptr:
  1338. fastpathTV.EncMapInt64UintptrV(*v, fastpathCheckNilTrue, e)
  1339. case map[int64]int:
  1340. fastpathTV.EncMapInt64IntV(v, fastpathCheckNilTrue, e)
  1341. case *map[int64]int:
  1342. fastpathTV.EncMapInt64IntV(*v, fastpathCheckNilTrue, e)
  1343. case map[int64]int8:
  1344. fastpathTV.EncMapInt64Int8V(v, fastpathCheckNilTrue, e)
  1345. case *map[int64]int8:
  1346. fastpathTV.EncMapInt64Int8V(*v, fastpathCheckNilTrue, e)
  1347. case map[int64]int16:
  1348. fastpathTV.EncMapInt64Int16V(v, fastpathCheckNilTrue, e)
  1349. case *map[int64]int16:
  1350. fastpathTV.EncMapInt64Int16V(*v, fastpathCheckNilTrue, e)
  1351. case map[int64]int32:
  1352. fastpathTV.EncMapInt64Int32V(v, fastpathCheckNilTrue, e)
  1353. case *map[int64]int32:
  1354. fastpathTV.EncMapInt64Int32V(*v, fastpathCheckNilTrue, e)
  1355. case map[int64]int64:
  1356. fastpathTV.EncMapInt64Int64V(v, fastpathCheckNilTrue, e)
  1357. case *map[int64]int64:
  1358. fastpathTV.EncMapInt64Int64V(*v, fastpathCheckNilTrue, e)
  1359. case map[int64]float32:
  1360. fastpathTV.EncMapInt64Float32V(v, fastpathCheckNilTrue, e)
  1361. case *map[int64]float32:
  1362. fastpathTV.EncMapInt64Float32V(*v, fastpathCheckNilTrue, e)
  1363. case map[int64]float64:
  1364. fastpathTV.EncMapInt64Float64V(v, fastpathCheckNilTrue, e)
  1365. case *map[int64]float64:
  1366. fastpathTV.EncMapInt64Float64V(*v, fastpathCheckNilTrue, e)
  1367. case map[int64]bool:
  1368. fastpathTV.EncMapInt64BoolV(v, fastpathCheckNilTrue, e)
  1369. case *map[int64]bool:
  1370. fastpathTV.EncMapInt64BoolV(*v, fastpathCheckNilTrue, e)
  1371. case []bool:
  1372. fastpathTV.EncSliceBoolV(v, fastpathCheckNilTrue, e)
  1373. case *[]bool:
  1374. fastpathTV.EncSliceBoolV(*v, fastpathCheckNilTrue, e)
  1375. case map[bool]interface{}:
  1376. fastpathTV.EncMapBoolIntfV(v, fastpathCheckNilTrue, e)
  1377. case *map[bool]interface{}:
  1378. fastpathTV.EncMapBoolIntfV(*v, fastpathCheckNilTrue, e)
  1379. case map[bool]string:
  1380. fastpathTV.EncMapBoolStringV(v, fastpathCheckNilTrue, e)
  1381. case *map[bool]string:
  1382. fastpathTV.EncMapBoolStringV(*v, fastpathCheckNilTrue, e)
  1383. case map[bool]uint:
  1384. fastpathTV.EncMapBoolUintV(v, fastpathCheckNilTrue, e)
  1385. case *map[bool]uint:
  1386. fastpathTV.EncMapBoolUintV(*v, fastpathCheckNilTrue, e)
  1387. case map[bool]uint8:
  1388. fastpathTV.EncMapBoolUint8V(v, fastpathCheckNilTrue, e)
  1389. case *map[bool]uint8:
  1390. fastpathTV.EncMapBoolUint8V(*v, fastpathCheckNilTrue, e)
  1391. case map[bool]uint16:
  1392. fastpathTV.EncMapBoolUint16V(v, fastpathCheckNilTrue, e)
  1393. case *map[bool]uint16:
  1394. fastpathTV.EncMapBoolUint16V(*v, fastpathCheckNilTrue, e)
  1395. case map[bool]uint32:
  1396. fastpathTV.EncMapBoolUint32V(v, fastpathCheckNilTrue, e)
  1397. case *map[bool]uint32:
  1398. fastpathTV.EncMapBoolUint32V(*v, fastpathCheckNilTrue, e)
  1399. case map[bool]uint64:
  1400. fastpathTV.EncMapBoolUint64V(v, fastpathCheckNilTrue, e)
  1401. case *map[bool]uint64:
  1402. fastpathTV.EncMapBoolUint64V(*v, fastpathCheckNilTrue, e)
  1403. case map[bool]uintptr:
  1404. fastpathTV.EncMapBoolUintptrV(v, fastpathCheckNilTrue, e)
  1405. case *map[bool]uintptr:
  1406. fastpathTV.EncMapBoolUintptrV(*v, fastpathCheckNilTrue, e)
  1407. case map[bool]int:
  1408. fastpathTV.EncMapBoolIntV(v, fastpathCheckNilTrue, e)
  1409. case *map[bool]int:
  1410. fastpathTV.EncMapBoolIntV(*v, fastpathCheckNilTrue, e)
  1411. case map[bool]int8:
  1412. fastpathTV.EncMapBoolInt8V(v, fastpathCheckNilTrue, e)
  1413. case *map[bool]int8:
  1414. fastpathTV.EncMapBoolInt8V(*v, fastpathCheckNilTrue, e)
  1415. case map[bool]int16:
  1416. fastpathTV.EncMapBoolInt16V(v, fastpathCheckNilTrue, e)
  1417. case *map[bool]int16:
  1418. fastpathTV.EncMapBoolInt16V(*v, fastpathCheckNilTrue, e)
  1419. case map[bool]int32:
  1420. fastpathTV.EncMapBoolInt32V(v, fastpathCheckNilTrue, e)
  1421. case *map[bool]int32:
  1422. fastpathTV.EncMapBoolInt32V(*v, fastpathCheckNilTrue, e)
  1423. case map[bool]int64:
  1424. fastpathTV.EncMapBoolInt64V(v, fastpathCheckNilTrue, e)
  1425. case *map[bool]int64:
  1426. fastpathTV.EncMapBoolInt64V(*v, fastpathCheckNilTrue, e)
  1427. case map[bool]float32:
  1428. fastpathTV.EncMapBoolFloat32V(v, fastpathCheckNilTrue, e)
  1429. case *map[bool]float32:
  1430. fastpathTV.EncMapBoolFloat32V(*v, fastpathCheckNilTrue, e)
  1431. case map[bool]float64:
  1432. fastpathTV.EncMapBoolFloat64V(v, fastpathCheckNilTrue, e)
  1433. case *map[bool]float64:
  1434. fastpathTV.EncMapBoolFloat64V(*v, fastpathCheckNilTrue, e)
  1435. case map[bool]bool:
  1436. fastpathTV.EncMapBoolBoolV(v, fastpathCheckNilTrue, e)
  1437. case *map[bool]bool:
  1438. fastpathTV.EncMapBoolBoolV(*v, fastpathCheckNilTrue, e)
  1439. default:
  1440. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1441. return false
  1442. }
  1443. return true
  1444. }
  1445. func fastpathEncodeTypeSwitchSlice(iv interface{}, e *Encoder) bool {
  1446. switch v := iv.(type) {
  1447. case []interface{}:
  1448. fastpathTV.EncSliceIntfV(v, fastpathCheckNilTrue, e)
  1449. case *[]interface{}:
  1450. fastpathTV.EncSliceIntfV(*v, fastpathCheckNilTrue, e)
  1451. case []string:
  1452. fastpathTV.EncSliceStringV(v, fastpathCheckNilTrue, e)
  1453. case *[]string:
  1454. fastpathTV.EncSliceStringV(*v, fastpathCheckNilTrue, e)
  1455. case []float32:
  1456. fastpathTV.EncSliceFloat32V(v, fastpathCheckNilTrue, e)
  1457. case *[]float32:
  1458. fastpathTV.EncSliceFloat32V(*v, fastpathCheckNilTrue, e)
  1459. case []float64:
  1460. fastpathTV.EncSliceFloat64V(v, fastpathCheckNilTrue, e)
  1461. case *[]float64:
  1462. fastpathTV.EncSliceFloat64V(*v, fastpathCheckNilTrue, e)
  1463. case []uint:
  1464. fastpathTV.EncSliceUintV(v, fastpathCheckNilTrue, e)
  1465. case *[]uint:
  1466. fastpathTV.EncSliceUintV(*v, fastpathCheckNilTrue, e)
  1467. case []uint16:
  1468. fastpathTV.EncSliceUint16V(v, fastpathCheckNilTrue, e)
  1469. case *[]uint16:
  1470. fastpathTV.EncSliceUint16V(*v, fastpathCheckNilTrue, e)
  1471. case []uint32:
  1472. fastpathTV.EncSliceUint32V(v, fastpathCheckNilTrue, e)
  1473. case *[]uint32:
  1474. fastpathTV.EncSliceUint32V(*v, fastpathCheckNilTrue, e)
  1475. case []uint64:
  1476. fastpathTV.EncSliceUint64V(v, fastpathCheckNilTrue, e)
  1477. case *[]uint64:
  1478. fastpathTV.EncSliceUint64V(*v, fastpathCheckNilTrue, e)
  1479. case []uintptr:
  1480. fastpathTV.EncSliceUintptrV(v, fastpathCheckNilTrue, e)
  1481. case *[]uintptr:
  1482. fastpathTV.EncSliceUintptrV(*v, fastpathCheckNilTrue, e)
  1483. case []int:
  1484. fastpathTV.EncSliceIntV(v, fastpathCheckNilTrue, e)
  1485. case *[]int:
  1486. fastpathTV.EncSliceIntV(*v, fastpathCheckNilTrue, e)
  1487. case []int8:
  1488. fastpathTV.EncSliceInt8V(v, fastpathCheckNilTrue, e)
  1489. case *[]int8:
  1490. fastpathTV.EncSliceInt8V(*v, fastpathCheckNilTrue, e)
  1491. case []int16:
  1492. fastpathTV.EncSliceInt16V(v, fastpathCheckNilTrue, e)
  1493. case *[]int16:
  1494. fastpathTV.EncSliceInt16V(*v, fastpathCheckNilTrue, e)
  1495. case []int32:
  1496. fastpathTV.EncSliceInt32V(v, fastpathCheckNilTrue, e)
  1497. case *[]int32:
  1498. fastpathTV.EncSliceInt32V(*v, fastpathCheckNilTrue, e)
  1499. case []int64:
  1500. fastpathTV.EncSliceInt64V(v, fastpathCheckNilTrue, e)
  1501. case *[]int64:
  1502. fastpathTV.EncSliceInt64V(*v, fastpathCheckNilTrue, e)
  1503. case []bool:
  1504. fastpathTV.EncSliceBoolV(v, fastpathCheckNilTrue, e)
  1505. case *[]bool:
  1506. fastpathTV.EncSliceBoolV(*v, fastpathCheckNilTrue, e)
  1507. default:
  1508. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1509. return false
  1510. }
  1511. return true
  1512. }
  1513. func fastpathEncodeTypeSwitchMap(iv interface{}, e *Encoder) bool {
  1514. switch v := iv.(type) {
  1515. case map[interface{}]interface{}:
  1516. fastpathTV.EncMapIntfIntfV(v, fastpathCheckNilTrue, e)
  1517. case *map[interface{}]interface{}:
  1518. fastpathTV.EncMapIntfIntfV(*v, fastpathCheckNilTrue, e)
  1519. case map[interface{}]string:
  1520. fastpathTV.EncMapIntfStringV(v, fastpathCheckNilTrue, e)
  1521. case *map[interface{}]string:
  1522. fastpathTV.EncMapIntfStringV(*v, fastpathCheckNilTrue, e)
  1523. case map[interface{}]uint:
  1524. fastpathTV.EncMapIntfUintV(v, fastpathCheckNilTrue, e)
  1525. case *map[interface{}]uint:
  1526. fastpathTV.EncMapIntfUintV(*v, fastpathCheckNilTrue, e)
  1527. case map[interface{}]uint8:
  1528. fastpathTV.EncMapIntfUint8V(v, fastpathCheckNilTrue, e)
  1529. case *map[interface{}]uint8:
  1530. fastpathTV.EncMapIntfUint8V(*v, fastpathCheckNilTrue, e)
  1531. case map[interface{}]uint16:
  1532. fastpathTV.EncMapIntfUint16V(v, fastpathCheckNilTrue, e)
  1533. case *map[interface{}]uint16:
  1534. fastpathTV.EncMapIntfUint16V(*v, fastpathCheckNilTrue, e)
  1535. case map[interface{}]uint32:
  1536. fastpathTV.EncMapIntfUint32V(v, fastpathCheckNilTrue, e)
  1537. case *map[interface{}]uint32:
  1538. fastpathTV.EncMapIntfUint32V(*v, fastpathCheckNilTrue, e)
  1539. case map[interface{}]uint64:
  1540. fastpathTV.EncMapIntfUint64V(v, fastpathCheckNilTrue, e)
  1541. case *map[interface{}]uint64:
  1542. fastpathTV.EncMapIntfUint64V(*v, fastpathCheckNilTrue, e)
  1543. case map[interface{}]uintptr:
  1544. fastpathTV.EncMapIntfUintptrV(v, fastpathCheckNilTrue, e)
  1545. case *map[interface{}]uintptr:
  1546. fastpathTV.EncMapIntfUintptrV(*v, fastpathCheckNilTrue, e)
  1547. case map[interface{}]int:
  1548. fastpathTV.EncMapIntfIntV(v, fastpathCheckNilTrue, e)
  1549. case *map[interface{}]int:
  1550. fastpathTV.EncMapIntfIntV(*v, fastpathCheckNilTrue, e)
  1551. case map[interface{}]int8:
  1552. fastpathTV.EncMapIntfInt8V(v, fastpathCheckNilTrue, e)
  1553. case *map[interface{}]int8:
  1554. fastpathTV.EncMapIntfInt8V(*v, fastpathCheckNilTrue, e)
  1555. case map[interface{}]int16:
  1556. fastpathTV.EncMapIntfInt16V(v, fastpathCheckNilTrue, e)
  1557. case *map[interface{}]int16:
  1558. fastpathTV.EncMapIntfInt16V(*v, fastpathCheckNilTrue, e)
  1559. case map[interface{}]int32:
  1560. fastpathTV.EncMapIntfInt32V(v, fastpathCheckNilTrue, e)
  1561. case *map[interface{}]int32:
  1562. fastpathTV.EncMapIntfInt32V(*v, fastpathCheckNilTrue, e)
  1563. case map[interface{}]int64:
  1564. fastpathTV.EncMapIntfInt64V(v, fastpathCheckNilTrue, e)
  1565. case *map[interface{}]int64:
  1566. fastpathTV.EncMapIntfInt64V(*v, fastpathCheckNilTrue, e)
  1567. case map[interface{}]float32:
  1568. fastpathTV.EncMapIntfFloat32V(v, fastpathCheckNilTrue, e)
  1569. case *map[interface{}]float32:
  1570. fastpathTV.EncMapIntfFloat32V(*v, fastpathCheckNilTrue, e)
  1571. case map[interface{}]float64:
  1572. fastpathTV.EncMapIntfFloat64V(v, fastpathCheckNilTrue, e)
  1573. case *map[interface{}]float64:
  1574. fastpathTV.EncMapIntfFloat64V(*v, fastpathCheckNilTrue, e)
  1575. case map[interface{}]bool:
  1576. fastpathTV.EncMapIntfBoolV(v, fastpathCheckNilTrue, e)
  1577. case *map[interface{}]bool:
  1578. fastpathTV.EncMapIntfBoolV(*v, fastpathCheckNilTrue, e)
  1579. case map[string]interface{}:
  1580. fastpathTV.EncMapStringIntfV(v, fastpathCheckNilTrue, e)
  1581. case *map[string]interface{}:
  1582. fastpathTV.EncMapStringIntfV(*v, fastpathCheckNilTrue, e)
  1583. case map[string]string:
  1584. fastpathTV.EncMapStringStringV(v, fastpathCheckNilTrue, e)
  1585. case *map[string]string:
  1586. fastpathTV.EncMapStringStringV(*v, fastpathCheckNilTrue, e)
  1587. case map[string]uint:
  1588. fastpathTV.EncMapStringUintV(v, fastpathCheckNilTrue, e)
  1589. case *map[string]uint:
  1590. fastpathTV.EncMapStringUintV(*v, fastpathCheckNilTrue, e)
  1591. case map[string]uint8:
  1592. fastpathTV.EncMapStringUint8V(v, fastpathCheckNilTrue, e)
  1593. case *map[string]uint8:
  1594. fastpathTV.EncMapStringUint8V(*v, fastpathCheckNilTrue, e)
  1595. case map[string]uint16:
  1596. fastpathTV.EncMapStringUint16V(v, fastpathCheckNilTrue, e)
  1597. case *map[string]uint16:
  1598. fastpathTV.EncMapStringUint16V(*v, fastpathCheckNilTrue, e)
  1599. case map[string]uint32:
  1600. fastpathTV.EncMapStringUint32V(v, fastpathCheckNilTrue, e)
  1601. case *map[string]uint32:
  1602. fastpathTV.EncMapStringUint32V(*v, fastpathCheckNilTrue, e)
  1603. case map[string]uint64:
  1604. fastpathTV.EncMapStringUint64V(v, fastpathCheckNilTrue, e)
  1605. case *map[string]uint64:
  1606. fastpathTV.EncMapStringUint64V(*v, fastpathCheckNilTrue, e)
  1607. case map[string]uintptr:
  1608. fastpathTV.EncMapStringUintptrV(v, fastpathCheckNilTrue, e)
  1609. case *map[string]uintptr:
  1610. fastpathTV.EncMapStringUintptrV(*v, fastpathCheckNilTrue, e)
  1611. case map[string]int:
  1612. fastpathTV.EncMapStringIntV(v, fastpathCheckNilTrue, e)
  1613. case *map[string]int:
  1614. fastpathTV.EncMapStringIntV(*v, fastpathCheckNilTrue, e)
  1615. case map[string]int8:
  1616. fastpathTV.EncMapStringInt8V(v, fastpathCheckNilTrue, e)
  1617. case *map[string]int8:
  1618. fastpathTV.EncMapStringInt8V(*v, fastpathCheckNilTrue, e)
  1619. case map[string]int16:
  1620. fastpathTV.EncMapStringInt16V(v, fastpathCheckNilTrue, e)
  1621. case *map[string]int16:
  1622. fastpathTV.EncMapStringInt16V(*v, fastpathCheckNilTrue, e)
  1623. case map[string]int32:
  1624. fastpathTV.EncMapStringInt32V(v, fastpathCheckNilTrue, e)
  1625. case *map[string]int32:
  1626. fastpathTV.EncMapStringInt32V(*v, fastpathCheckNilTrue, e)
  1627. case map[string]int64:
  1628. fastpathTV.EncMapStringInt64V(v, fastpathCheckNilTrue, e)
  1629. case *map[string]int64:
  1630. fastpathTV.EncMapStringInt64V(*v, fastpathCheckNilTrue, e)
  1631. case map[string]float32:
  1632. fastpathTV.EncMapStringFloat32V(v, fastpathCheckNilTrue, e)
  1633. case *map[string]float32:
  1634. fastpathTV.EncMapStringFloat32V(*v, fastpathCheckNilTrue, e)
  1635. case map[string]float64:
  1636. fastpathTV.EncMapStringFloat64V(v, fastpathCheckNilTrue, e)
  1637. case *map[string]float64:
  1638. fastpathTV.EncMapStringFloat64V(*v, fastpathCheckNilTrue, e)
  1639. case map[string]bool:
  1640. fastpathTV.EncMapStringBoolV(v, fastpathCheckNilTrue, e)
  1641. case *map[string]bool:
  1642. fastpathTV.EncMapStringBoolV(*v, fastpathCheckNilTrue, e)
  1643. case map[float32]interface{}:
  1644. fastpathTV.EncMapFloat32IntfV(v, fastpathCheckNilTrue, e)
  1645. case *map[float32]interface{}:
  1646. fastpathTV.EncMapFloat32IntfV(*v, fastpathCheckNilTrue, e)
  1647. case map[float32]string:
  1648. fastpathTV.EncMapFloat32StringV(v, fastpathCheckNilTrue, e)
  1649. case *map[float32]string:
  1650. fastpathTV.EncMapFloat32StringV(*v, fastpathCheckNilTrue, e)
  1651. case map[float32]uint:
  1652. fastpathTV.EncMapFloat32UintV(v, fastpathCheckNilTrue, e)
  1653. case *map[float32]uint:
  1654. fastpathTV.EncMapFloat32UintV(*v, fastpathCheckNilTrue, e)
  1655. case map[float32]uint8:
  1656. fastpathTV.EncMapFloat32Uint8V(v, fastpathCheckNilTrue, e)
  1657. case *map[float32]uint8:
  1658. fastpathTV.EncMapFloat32Uint8V(*v, fastpathCheckNilTrue, e)
  1659. case map[float32]uint16:
  1660. fastpathTV.EncMapFloat32Uint16V(v, fastpathCheckNilTrue, e)
  1661. case *map[float32]uint16:
  1662. fastpathTV.EncMapFloat32Uint16V(*v, fastpathCheckNilTrue, e)
  1663. case map[float32]uint32:
  1664. fastpathTV.EncMapFloat32Uint32V(v, fastpathCheckNilTrue, e)
  1665. case *map[float32]uint32:
  1666. fastpathTV.EncMapFloat32Uint32V(*v, fastpathCheckNilTrue, e)
  1667. case map[float32]uint64:
  1668. fastpathTV.EncMapFloat32Uint64V(v, fastpathCheckNilTrue, e)
  1669. case *map[float32]uint64:
  1670. fastpathTV.EncMapFloat32Uint64V(*v, fastpathCheckNilTrue, e)
  1671. case map[float32]uintptr:
  1672. fastpathTV.EncMapFloat32UintptrV(v, fastpathCheckNilTrue, e)
  1673. case *map[float32]uintptr:
  1674. fastpathTV.EncMapFloat32UintptrV(*v, fastpathCheckNilTrue, e)
  1675. case map[float32]int:
  1676. fastpathTV.EncMapFloat32IntV(v, fastpathCheckNilTrue, e)
  1677. case *map[float32]int:
  1678. fastpathTV.EncMapFloat32IntV(*v, fastpathCheckNilTrue, e)
  1679. case map[float32]int8:
  1680. fastpathTV.EncMapFloat32Int8V(v, fastpathCheckNilTrue, e)
  1681. case *map[float32]int8:
  1682. fastpathTV.EncMapFloat32Int8V(*v, fastpathCheckNilTrue, e)
  1683. case map[float32]int16:
  1684. fastpathTV.EncMapFloat32Int16V(v, fastpathCheckNilTrue, e)
  1685. case *map[float32]int16:
  1686. fastpathTV.EncMapFloat32Int16V(*v, fastpathCheckNilTrue, e)
  1687. case map[float32]int32:
  1688. fastpathTV.EncMapFloat32Int32V(v, fastpathCheckNilTrue, e)
  1689. case *map[float32]int32:
  1690. fastpathTV.EncMapFloat32Int32V(*v, fastpathCheckNilTrue, e)
  1691. case map[float32]int64:
  1692. fastpathTV.EncMapFloat32Int64V(v, fastpathCheckNilTrue, e)
  1693. case *map[float32]int64:
  1694. fastpathTV.EncMapFloat32Int64V(*v, fastpathCheckNilTrue, e)
  1695. case map[float32]float32:
  1696. fastpathTV.EncMapFloat32Float32V(v, fastpathCheckNilTrue, e)
  1697. case *map[float32]float32:
  1698. fastpathTV.EncMapFloat32Float32V(*v, fastpathCheckNilTrue, e)
  1699. case map[float32]float64:
  1700. fastpathTV.EncMapFloat32Float64V(v, fastpathCheckNilTrue, e)
  1701. case *map[float32]float64:
  1702. fastpathTV.EncMapFloat32Float64V(*v, fastpathCheckNilTrue, e)
  1703. case map[float32]bool:
  1704. fastpathTV.EncMapFloat32BoolV(v, fastpathCheckNilTrue, e)
  1705. case *map[float32]bool:
  1706. fastpathTV.EncMapFloat32BoolV(*v, fastpathCheckNilTrue, e)
  1707. case map[float64]interface{}:
  1708. fastpathTV.EncMapFloat64IntfV(v, fastpathCheckNilTrue, e)
  1709. case *map[float64]interface{}:
  1710. fastpathTV.EncMapFloat64IntfV(*v, fastpathCheckNilTrue, e)
  1711. case map[float64]string:
  1712. fastpathTV.EncMapFloat64StringV(v, fastpathCheckNilTrue, e)
  1713. case *map[float64]string:
  1714. fastpathTV.EncMapFloat64StringV(*v, fastpathCheckNilTrue, e)
  1715. case map[float64]uint:
  1716. fastpathTV.EncMapFloat64UintV(v, fastpathCheckNilTrue, e)
  1717. case *map[float64]uint:
  1718. fastpathTV.EncMapFloat64UintV(*v, fastpathCheckNilTrue, e)
  1719. case map[float64]uint8:
  1720. fastpathTV.EncMapFloat64Uint8V(v, fastpathCheckNilTrue, e)
  1721. case *map[float64]uint8:
  1722. fastpathTV.EncMapFloat64Uint8V(*v, fastpathCheckNilTrue, e)
  1723. case map[float64]uint16:
  1724. fastpathTV.EncMapFloat64Uint16V(v, fastpathCheckNilTrue, e)
  1725. case *map[float64]uint16:
  1726. fastpathTV.EncMapFloat64Uint16V(*v, fastpathCheckNilTrue, e)
  1727. case map[float64]uint32:
  1728. fastpathTV.EncMapFloat64Uint32V(v, fastpathCheckNilTrue, e)
  1729. case *map[float64]uint32:
  1730. fastpathTV.EncMapFloat64Uint32V(*v, fastpathCheckNilTrue, e)
  1731. case map[float64]uint64:
  1732. fastpathTV.EncMapFloat64Uint64V(v, fastpathCheckNilTrue, e)
  1733. case *map[float64]uint64:
  1734. fastpathTV.EncMapFloat64Uint64V(*v, fastpathCheckNilTrue, e)
  1735. case map[float64]uintptr:
  1736. fastpathTV.EncMapFloat64UintptrV(v, fastpathCheckNilTrue, e)
  1737. case *map[float64]uintptr:
  1738. fastpathTV.EncMapFloat64UintptrV(*v, fastpathCheckNilTrue, e)
  1739. case map[float64]int:
  1740. fastpathTV.EncMapFloat64IntV(v, fastpathCheckNilTrue, e)
  1741. case *map[float64]int:
  1742. fastpathTV.EncMapFloat64IntV(*v, fastpathCheckNilTrue, e)
  1743. case map[float64]int8:
  1744. fastpathTV.EncMapFloat64Int8V(v, fastpathCheckNilTrue, e)
  1745. case *map[float64]int8:
  1746. fastpathTV.EncMapFloat64Int8V(*v, fastpathCheckNilTrue, e)
  1747. case map[float64]int16:
  1748. fastpathTV.EncMapFloat64Int16V(v, fastpathCheckNilTrue, e)
  1749. case *map[float64]int16:
  1750. fastpathTV.EncMapFloat64Int16V(*v, fastpathCheckNilTrue, e)
  1751. case map[float64]int32:
  1752. fastpathTV.EncMapFloat64Int32V(v, fastpathCheckNilTrue, e)
  1753. case *map[float64]int32:
  1754. fastpathTV.EncMapFloat64Int32V(*v, fastpathCheckNilTrue, e)
  1755. case map[float64]int64:
  1756. fastpathTV.EncMapFloat64Int64V(v, fastpathCheckNilTrue, e)
  1757. case *map[float64]int64:
  1758. fastpathTV.EncMapFloat64Int64V(*v, fastpathCheckNilTrue, e)
  1759. case map[float64]float32:
  1760. fastpathTV.EncMapFloat64Float32V(v, fastpathCheckNilTrue, e)
  1761. case *map[float64]float32:
  1762. fastpathTV.EncMapFloat64Float32V(*v, fastpathCheckNilTrue, e)
  1763. case map[float64]float64:
  1764. fastpathTV.EncMapFloat64Float64V(v, fastpathCheckNilTrue, e)
  1765. case *map[float64]float64:
  1766. fastpathTV.EncMapFloat64Float64V(*v, fastpathCheckNilTrue, e)
  1767. case map[float64]bool:
  1768. fastpathTV.EncMapFloat64BoolV(v, fastpathCheckNilTrue, e)
  1769. case *map[float64]bool:
  1770. fastpathTV.EncMapFloat64BoolV(*v, fastpathCheckNilTrue, e)
  1771. case map[uint]interface{}:
  1772. fastpathTV.EncMapUintIntfV(v, fastpathCheckNilTrue, e)
  1773. case *map[uint]interface{}:
  1774. fastpathTV.EncMapUintIntfV(*v, fastpathCheckNilTrue, e)
  1775. case map[uint]string:
  1776. fastpathTV.EncMapUintStringV(v, fastpathCheckNilTrue, e)
  1777. case *map[uint]string:
  1778. fastpathTV.EncMapUintStringV(*v, fastpathCheckNilTrue, e)
  1779. case map[uint]uint:
  1780. fastpathTV.EncMapUintUintV(v, fastpathCheckNilTrue, e)
  1781. case *map[uint]uint:
  1782. fastpathTV.EncMapUintUintV(*v, fastpathCheckNilTrue, e)
  1783. case map[uint]uint8:
  1784. fastpathTV.EncMapUintUint8V(v, fastpathCheckNilTrue, e)
  1785. case *map[uint]uint8:
  1786. fastpathTV.EncMapUintUint8V(*v, fastpathCheckNilTrue, e)
  1787. case map[uint]uint16:
  1788. fastpathTV.EncMapUintUint16V(v, fastpathCheckNilTrue, e)
  1789. case *map[uint]uint16:
  1790. fastpathTV.EncMapUintUint16V(*v, fastpathCheckNilTrue, e)
  1791. case map[uint]uint32:
  1792. fastpathTV.EncMapUintUint32V(v, fastpathCheckNilTrue, e)
  1793. case *map[uint]uint32:
  1794. fastpathTV.EncMapUintUint32V(*v, fastpathCheckNilTrue, e)
  1795. case map[uint]uint64:
  1796. fastpathTV.EncMapUintUint64V(v, fastpathCheckNilTrue, e)
  1797. case *map[uint]uint64:
  1798. fastpathTV.EncMapUintUint64V(*v, fastpathCheckNilTrue, e)
  1799. case map[uint]uintptr:
  1800. fastpathTV.EncMapUintUintptrV(v, fastpathCheckNilTrue, e)
  1801. case *map[uint]uintptr:
  1802. fastpathTV.EncMapUintUintptrV(*v, fastpathCheckNilTrue, e)
  1803. case map[uint]int:
  1804. fastpathTV.EncMapUintIntV(v, fastpathCheckNilTrue, e)
  1805. case *map[uint]int:
  1806. fastpathTV.EncMapUintIntV(*v, fastpathCheckNilTrue, e)
  1807. case map[uint]int8:
  1808. fastpathTV.EncMapUintInt8V(v, fastpathCheckNilTrue, e)
  1809. case *map[uint]int8:
  1810. fastpathTV.EncMapUintInt8V(*v, fastpathCheckNilTrue, e)
  1811. case map[uint]int16:
  1812. fastpathTV.EncMapUintInt16V(v, fastpathCheckNilTrue, e)
  1813. case *map[uint]int16:
  1814. fastpathTV.EncMapUintInt16V(*v, fastpathCheckNilTrue, e)
  1815. case map[uint]int32:
  1816. fastpathTV.EncMapUintInt32V(v, fastpathCheckNilTrue, e)
  1817. case *map[uint]int32:
  1818. fastpathTV.EncMapUintInt32V(*v, fastpathCheckNilTrue, e)
  1819. case map[uint]int64:
  1820. fastpathTV.EncMapUintInt64V(v, fastpathCheckNilTrue, e)
  1821. case *map[uint]int64:
  1822. fastpathTV.EncMapUintInt64V(*v, fastpathCheckNilTrue, e)
  1823. case map[uint]float32:
  1824. fastpathTV.EncMapUintFloat32V(v, fastpathCheckNilTrue, e)
  1825. case *map[uint]float32:
  1826. fastpathTV.EncMapUintFloat32V(*v, fastpathCheckNilTrue, e)
  1827. case map[uint]float64:
  1828. fastpathTV.EncMapUintFloat64V(v, fastpathCheckNilTrue, e)
  1829. case *map[uint]float64:
  1830. fastpathTV.EncMapUintFloat64V(*v, fastpathCheckNilTrue, e)
  1831. case map[uint]bool:
  1832. fastpathTV.EncMapUintBoolV(v, fastpathCheckNilTrue, e)
  1833. case *map[uint]bool:
  1834. fastpathTV.EncMapUintBoolV(*v, fastpathCheckNilTrue, e)
  1835. case map[uint8]interface{}:
  1836. fastpathTV.EncMapUint8IntfV(v, fastpathCheckNilTrue, e)
  1837. case *map[uint8]interface{}:
  1838. fastpathTV.EncMapUint8IntfV(*v, fastpathCheckNilTrue, e)
  1839. case map[uint8]string:
  1840. fastpathTV.EncMapUint8StringV(v, fastpathCheckNilTrue, e)
  1841. case *map[uint8]string:
  1842. fastpathTV.EncMapUint8StringV(*v, fastpathCheckNilTrue, e)
  1843. case map[uint8]uint:
  1844. fastpathTV.EncMapUint8UintV(v, fastpathCheckNilTrue, e)
  1845. case *map[uint8]uint:
  1846. fastpathTV.EncMapUint8UintV(*v, fastpathCheckNilTrue, e)
  1847. case map[uint8]uint8:
  1848. fastpathTV.EncMapUint8Uint8V(v, fastpathCheckNilTrue, e)
  1849. case *map[uint8]uint8:
  1850. fastpathTV.EncMapUint8Uint8V(*v, fastpathCheckNilTrue, e)
  1851. case map[uint8]uint16:
  1852. fastpathTV.EncMapUint8Uint16V(v, fastpathCheckNilTrue, e)
  1853. case *map[uint8]uint16:
  1854. fastpathTV.EncMapUint8Uint16V(*v, fastpathCheckNilTrue, e)
  1855. case map[uint8]uint32:
  1856. fastpathTV.EncMapUint8Uint32V(v, fastpathCheckNilTrue, e)
  1857. case *map[uint8]uint32:
  1858. fastpathTV.EncMapUint8Uint32V(*v, fastpathCheckNilTrue, e)
  1859. case map[uint8]uint64:
  1860. fastpathTV.EncMapUint8Uint64V(v, fastpathCheckNilTrue, e)
  1861. case *map[uint8]uint64:
  1862. fastpathTV.EncMapUint8Uint64V(*v, fastpathCheckNilTrue, e)
  1863. case map[uint8]uintptr:
  1864. fastpathTV.EncMapUint8UintptrV(v, fastpathCheckNilTrue, e)
  1865. case *map[uint8]uintptr:
  1866. fastpathTV.EncMapUint8UintptrV(*v, fastpathCheckNilTrue, e)
  1867. case map[uint8]int:
  1868. fastpathTV.EncMapUint8IntV(v, fastpathCheckNilTrue, e)
  1869. case *map[uint8]int:
  1870. fastpathTV.EncMapUint8IntV(*v, fastpathCheckNilTrue, e)
  1871. case map[uint8]int8:
  1872. fastpathTV.EncMapUint8Int8V(v, fastpathCheckNilTrue, e)
  1873. case *map[uint8]int8:
  1874. fastpathTV.EncMapUint8Int8V(*v, fastpathCheckNilTrue, e)
  1875. case map[uint8]int16:
  1876. fastpathTV.EncMapUint8Int16V(v, fastpathCheckNilTrue, e)
  1877. case *map[uint8]int16:
  1878. fastpathTV.EncMapUint8Int16V(*v, fastpathCheckNilTrue, e)
  1879. case map[uint8]int32:
  1880. fastpathTV.EncMapUint8Int32V(v, fastpathCheckNilTrue, e)
  1881. case *map[uint8]int32:
  1882. fastpathTV.EncMapUint8Int32V(*v, fastpathCheckNilTrue, e)
  1883. case map[uint8]int64:
  1884. fastpathTV.EncMapUint8Int64V(v, fastpathCheckNilTrue, e)
  1885. case *map[uint8]int64:
  1886. fastpathTV.EncMapUint8Int64V(*v, fastpathCheckNilTrue, e)
  1887. case map[uint8]float32:
  1888. fastpathTV.EncMapUint8Float32V(v, fastpathCheckNilTrue, e)
  1889. case *map[uint8]float32:
  1890. fastpathTV.EncMapUint8Float32V(*v, fastpathCheckNilTrue, e)
  1891. case map[uint8]float64:
  1892. fastpathTV.EncMapUint8Float64V(v, fastpathCheckNilTrue, e)
  1893. case *map[uint8]float64:
  1894. fastpathTV.EncMapUint8Float64V(*v, fastpathCheckNilTrue, e)
  1895. case map[uint8]bool:
  1896. fastpathTV.EncMapUint8BoolV(v, fastpathCheckNilTrue, e)
  1897. case *map[uint8]bool:
  1898. fastpathTV.EncMapUint8BoolV(*v, fastpathCheckNilTrue, e)
  1899. case map[uint16]interface{}:
  1900. fastpathTV.EncMapUint16IntfV(v, fastpathCheckNilTrue, e)
  1901. case *map[uint16]interface{}:
  1902. fastpathTV.EncMapUint16IntfV(*v, fastpathCheckNilTrue, e)
  1903. case map[uint16]string:
  1904. fastpathTV.EncMapUint16StringV(v, fastpathCheckNilTrue, e)
  1905. case *map[uint16]string:
  1906. fastpathTV.EncMapUint16StringV(*v, fastpathCheckNilTrue, e)
  1907. case map[uint16]uint:
  1908. fastpathTV.EncMapUint16UintV(v, fastpathCheckNilTrue, e)
  1909. case *map[uint16]uint:
  1910. fastpathTV.EncMapUint16UintV(*v, fastpathCheckNilTrue, e)
  1911. case map[uint16]uint8:
  1912. fastpathTV.EncMapUint16Uint8V(v, fastpathCheckNilTrue, e)
  1913. case *map[uint16]uint8:
  1914. fastpathTV.EncMapUint16Uint8V(*v, fastpathCheckNilTrue, e)
  1915. case map[uint16]uint16:
  1916. fastpathTV.EncMapUint16Uint16V(v, fastpathCheckNilTrue, e)
  1917. case *map[uint16]uint16:
  1918. fastpathTV.EncMapUint16Uint16V(*v, fastpathCheckNilTrue, e)
  1919. case map[uint16]uint32:
  1920. fastpathTV.EncMapUint16Uint32V(v, fastpathCheckNilTrue, e)
  1921. case *map[uint16]uint32:
  1922. fastpathTV.EncMapUint16Uint32V(*v, fastpathCheckNilTrue, e)
  1923. case map[uint16]uint64:
  1924. fastpathTV.EncMapUint16Uint64V(v, fastpathCheckNilTrue, e)
  1925. case *map[uint16]uint64:
  1926. fastpathTV.EncMapUint16Uint64V(*v, fastpathCheckNilTrue, e)
  1927. case map[uint16]uintptr:
  1928. fastpathTV.EncMapUint16UintptrV(v, fastpathCheckNilTrue, e)
  1929. case *map[uint16]uintptr:
  1930. fastpathTV.EncMapUint16UintptrV(*v, fastpathCheckNilTrue, e)
  1931. case map[uint16]int:
  1932. fastpathTV.EncMapUint16IntV(v, fastpathCheckNilTrue, e)
  1933. case *map[uint16]int:
  1934. fastpathTV.EncMapUint16IntV(*v, fastpathCheckNilTrue, e)
  1935. case map[uint16]int8:
  1936. fastpathTV.EncMapUint16Int8V(v, fastpathCheckNilTrue, e)
  1937. case *map[uint16]int8:
  1938. fastpathTV.EncMapUint16Int8V(*v, fastpathCheckNilTrue, e)
  1939. case map[uint16]int16:
  1940. fastpathTV.EncMapUint16Int16V(v, fastpathCheckNilTrue, e)
  1941. case *map[uint16]int16:
  1942. fastpathTV.EncMapUint16Int16V(*v, fastpathCheckNilTrue, e)
  1943. case map[uint16]int32:
  1944. fastpathTV.EncMapUint16Int32V(v, fastpathCheckNilTrue, e)
  1945. case *map[uint16]int32:
  1946. fastpathTV.EncMapUint16Int32V(*v, fastpathCheckNilTrue, e)
  1947. case map[uint16]int64:
  1948. fastpathTV.EncMapUint16Int64V(v, fastpathCheckNilTrue, e)
  1949. case *map[uint16]int64:
  1950. fastpathTV.EncMapUint16Int64V(*v, fastpathCheckNilTrue, e)
  1951. case map[uint16]float32:
  1952. fastpathTV.EncMapUint16Float32V(v, fastpathCheckNilTrue, e)
  1953. case *map[uint16]float32:
  1954. fastpathTV.EncMapUint16Float32V(*v, fastpathCheckNilTrue, e)
  1955. case map[uint16]float64:
  1956. fastpathTV.EncMapUint16Float64V(v, fastpathCheckNilTrue, e)
  1957. case *map[uint16]float64:
  1958. fastpathTV.EncMapUint16Float64V(*v, fastpathCheckNilTrue, e)
  1959. case map[uint16]bool:
  1960. fastpathTV.EncMapUint16BoolV(v, fastpathCheckNilTrue, e)
  1961. case *map[uint16]bool:
  1962. fastpathTV.EncMapUint16BoolV(*v, fastpathCheckNilTrue, e)
  1963. case map[uint32]interface{}:
  1964. fastpathTV.EncMapUint32IntfV(v, fastpathCheckNilTrue, e)
  1965. case *map[uint32]interface{}:
  1966. fastpathTV.EncMapUint32IntfV(*v, fastpathCheckNilTrue, e)
  1967. case map[uint32]string:
  1968. fastpathTV.EncMapUint32StringV(v, fastpathCheckNilTrue, e)
  1969. case *map[uint32]string:
  1970. fastpathTV.EncMapUint32StringV(*v, fastpathCheckNilTrue, e)
  1971. case map[uint32]uint:
  1972. fastpathTV.EncMapUint32UintV(v, fastpathCheckNilTrue, e)
  1973. case *map[uint32]uint:
  1974. fastpathTV.EncMapUint32UintV(*v, fastpathCheckNilTrue, e)
  1975. case map[uint32]uint8:
  1976. fastpathTV.EncMapUint32Uint8V(v, fastpathCheckNilTrue, e)
  1977. case *map[uint32]uint8:
  1978. fastpathTV.EncMapUint32Uint8V(*v, fastpathCheckNilTrue, e)
  1979. case map[uint32]uint16:
  1980. fastpathTV.EncMapUint32Uint16V(v, fastpathCheckNilTrue, e)
  1981. case *map[uint32]uint16:
  1982. fastpathTV.EncMapUint32Uint16V(*v, fastpathCheckNilTrue, e)
  1983. case map[uint32]uint32:
  1984. fastpathTV.EncMapUint32Uint32V(v, fastpathCheckNilTrue, e)
  1985. case *map[uint32]uint32:
  1986. fastpathTV.EncMapUint32Uint32V(*v, fastpathCheckNilTrue, e)
  1987. case map[uint32]uint64:
  1988. fastpathTV.EncMapUint32Uint64V(v, fastpathCheckNilTrue, e)
  1989. case *map[uint32]uint64:
  1990. fastpathTV.EncMapUint32Uint64V(*v, fastpathCheckNilTrue, e)
  1991. case map[uint32]uintptr:
  1992. fastpathTV.EncMapUint32UintptrV(v, fastpathCheckNilTrue, e)
  1993. case *map[uint32]uintptr:
  1994. fastpathTV.EncMapUint32UintptrV(*v, fastpathCheckNilTrue, e)
  1995. case map[uint32]int:
  1996. fastpathTV.EncMapUint32IntV(v, fastpathCheckNilTrue, e)
  1997. case *map[uint32]int:
  1998. fastpathTV.EncMapUint32IntV(*v, fastpathCheckNilTrue, e)
  1999. case map[uint32]int8:
  2000. fastpathTV.EncMapUint32Int8V(v, fastpathCheckNilTrue, e)
  2001. case *map[uint32]int8:
  2002. fastpathTV.EncMapUint32Int8V(*v, fastpathCheckNilTrue, e)
  2003. case map[uint32]int16:
  2004. fastpathTV.EncMapUint32Int16V(v, fastpathCheckNilTrue, e)
  2005. case *map[uint32]int16:
  2006. fastpathTV.EncMapUint32Int16V(*v, fastpathCheckNilTrue, e)
  2007. case map[uint32]int32:
  2008. fastpathTV.EncMapUint32Int32V(v, fastpathCheckNilTrue, e)
  2009. case *map[uint32]int32:
  2010. fastpathTV.EncMapUint32Int32V(*v, fastpathCheckNilTrue, e)
  2011. case map[uint32]int64:
  2012. fastpathTV.EncMapUint32Int64V(v, fastpathCheckNilTrue, e)
  2013. case *map[uint32]int64:
  2014. fastpathTV.EncMapUint32Int64V(*v, fastpathCheckNilTrue, e)
  2015. case map[uint32]float32:
  2016. fastpathTV.EncMapUint32Float32V(v, fastpathCheckNilTrue, e)
  2017. case *map[uint32]float32:
  2018. fastpathTV.EncMapUint32Float32V(*v, fastpathCheckNilTrue, e)
  2019. case map[uint32]float64:
  2020. fastpathTV.EncMapUint32Float64V(v, fastpathCheckNilTrue, e)
  2021. case *map[uint32]float64:
  2022. fastpathTV.EncMapUint32Float64V(*v, fastpathCheckNilTrue, e)
  2023. case map[uint32]bool:
  2024. fastpathTV.EncMapUint32BoolV(v, fastpathCheckNilTrue, e)
  2025. case *map[uint32]bool:
  2026. fastpathTV.EncMapUint32BoolV(*v, fastpathCheckNilTrue, e)
  2027. case map[uint64]interface{}:
  2028. fastpathTV.EncMapUint64IntfV(v, fastpathCheckNilTrue, e)
  2029. case *map[uint64]interface{}:
  2030. fastpathTV.EncMapUint64IntfV(*v, fastpathCheckNilTrue, e)
  2031. case map[uint64]string:
  2032. fastpathTV.EncMapUint64StringV(v, fastpathCheckNilTrue, e)
  2033. case *map[uint64]string:
  2034. fastpathTV.EncMapUint64StringV(*v, fastpathCheckNilTrue, e)
  2035. case map[uint64]uint:
  2036. fastpathTV.EncMapUint64UintV(v, fastpathCheckNilTrue, e)
  2037. case *map[uint64]uint:
  2038. fastpathTV.EncMapUint64UintV(*v, fastpathCheckNilTrue, e)
  2039. case map[uint64]uint8:
  2040. fastpathTV.EncMapUint64Uint8V(v, fastpathCheckNilTrue, e)
  2041. case *map[uint64]uint8:
  2042. fastpathTV.EncMapUint64Uint8V(*v, fastpathCheckNilTrue, e)
  2043. case map[uint64]uint16:
  2044. fastpathTV.EncMapUint64Uint16V(v, fastpathCheckNilTrue, e)
  2045. case *map[uint64]uint16:
  2046. fastpathTV.EncMapUint64Uint16V(*v, fastpathCheckNilTrue, e)
  2047. case map[uint64]uint32:
  2048. fastpathTV.EncMapUint64Uint32V(v, fastpathCheckNilTrue, e)
  2049. case *map[uint64]uint32:
  2050. fastpathTV.EncMapUint64Uint32V(*v, fastpathCheckNilTrue, e)
  2051. case map[uint64]uint64:
  2052. fastpathTV.EncMapUint64Uint64V(v, fastpathCheckNilTrue, e)
  2053. case *map[uint64]uint64:
  2054. fastpathTV.EncMapUint64Uint64V(*v, fastpathCheckNilTrue, e)
  2055. case map[uint64]uintptr:
  2056. fastpathTV.EncMapUint64UintptrV(v, fastpathCheckNilTrue, e)
  2057. case *map[uint64]uintptr:
  2058. fastpathTV.EncMapUint64UintptrV(*v, fastpathCheckNilTrue, e)
  2059. case map[uint64]int:
  2060. fastpathTV.EncMapUint64IntV(v, fastpathCheckNilTrue, e)
  2061. case *map[uint64]int:
  2062. fastpathTV.EncMapUint64IntV(*v, fastpathCheckNilTrue, e)
  2063. case map[uint64]int8:
  2064. fastpathTV.EncMapUint64Int8V(v, fastpathCheckNilTrue, e)
  2065. case *map[uint64]int8:
  2066. fastpathTV.EncMapUint64Int8V(*v, fastpathCheckNilTrue, e)
  2067. case map[uint64]int16:
  2068. fastpathTV.EncMapUint64Int16V(v, fastpathCheckNilTrue, e)
  2069. case *map[uint64]int16:
  2070. fastpathTV.EncMapUint64Int16V(*v, fastpathCheckNilTrue, e)
  2071. case map[uint64]int32:
  2072. fastpathTV.EncMapUint64Int32V(v, fastpathCheckNilTrue, e)
  2073. case *map[uint64]int32:
  2074. fastpathTV.EncMapUint64Int32V(*v, fastpathCheckNilTrue, e)
  2075. case map[uint64]int64:
  2076. fastpathTV.EncMapUint64Int64V(v, fastpathCheckNilTrue, e)
  2077. case *map[uint64]int64:
  2078. fastpathTV.EncMapUint64Int64V(*v, fastpathCheckNilTrue, e)
  2079. case map[uint64]float32:
  2080. fastpathTV.EncMapUint64Float32V(v, fastpathCheckNilTrue, e)
  2081. case *map[uint64]float32:
  2082. fastpathTV.EncMapUint64Float32V(*v, fastpathCheckNilTrue, e)
  2083. case map[uint64]float64:
  2084. fastpathTV.EncMapUint64Float64V(v, fastpathCheckNilTrue, e)
  2085. case *map[uint64]float64:
  2086. fastpathTV.EncMapUint64Float64V(*v, fastpathCheckNilTrue, e)
  2087. case map[uint64]bool:
  2088. fastpathTV.EncMapUint64BoolV(v, fastpathCheckNilTrue, e)
  2089. case *map[uint64]bool:
  2090. fastpathTV.EncMapUint64BoolV(*v, fastpathCheckNilTrue, e)
  2091. case map[uintptr]interface{}:
  2092. fastpathTV.EncMapUintptrIntfV(v, fastpathCheckNilTrue, e)
  2093. case *map[uintptr]interface{}:
  2094. fastpathTV.EncMapUintptrIntfV(*v, fastpathCheckNilTrue, e)
  2095. case map[uintptr]string:
  2096. fastpathTV.EncMapUintptrStringV(v, fastpathCheckNilTrue, e)
  2097. case *map[uintptr]string:
  2098. fastpathTV.EncMapUintptrStringV(*v, fastpathCheckNilTrue, e)
  2099. case map[uintptr]uint:
  2100. fastpathTV.EncMapUintptrUintV(v, fastpathCheckNilTrue, e)
  2101. case *map[uintptr]uint:
  2102. fastpathTV.EncMapUintptrUintV(*v, fastpathCheckNilTrue, e)
  2103. case map[uintptr]uint8:
  2104. fastpathTV.EncMapUintptrUint8V(v, fastpathCheckNilTrue, e)
  2105. case *map[uintptr]uint8:
  2106. fastpathTV.EncMapUintptrUint8V(*v, fastpathCheckNilTrue, e)
  2107. case map[uintptr]uint16:
  2108. fastpathTV.EncMapUintptrUint16V(v, fastpathCheckNilTrue, e)
  2109. case *map[uintptr]uint16:
  2110. fastpathTV.EncMapUintptrUint16V(*v, fastpathCheckNilTrue, e)
  2111. case map[uintptr]uint32:
  2112. fastpathTV.EncMapUintptrUint32V(v, fastpathCheckNilTrue, e)
  2113. case *map[uintptr]uint32:
  2114. fastpathTV.EncMapUintptrUint32V(*v, fastpathCheckNilTrue, e)
  2115. case map[uintptr]uint64:
  2116. fastpathTV.EncMapUintptrUint64V(v, fastpathCheckNilTrue, e)
  2117. case *map[uintptr]uint64:
  2118. fastpathTV.EncMapUintptrUint64V(*v, fastpathCheckNilTrue, e)
  2119. case map[uintptr]uintptr:
  2120. fastpathTV.EncMapUintptrUintptrV(v, fastpathCheckNilTrue, e)
  2121. case *map[uintptr]uintptr:
  2122. fastpathTV.EncMapUintptrUintptrV(*v, fastpathCheckNilTrue, e)
  2123. case map[uintptr]int:
  2124. fastpathTV.EncMapUintptrIntV(v, fastpathCheckNilTrue, e)
  2125. case *map[uintptr]int:
  2126. fastpathTV.EncMapUintptrIntV(*v, fastpathCheckNilTrue, e)
  2127. case map[uintptr]int8:
  2128. fastpathTV.EncMapUintptrInt8V(v, fastpathCheckNilTrue, e)
  2129. case *map[uintptr]int8:
  2130. fastpathTV.EncMapUintptrInt8V(*v, fastpathCheckNilTrue, e)
  2131. case map[uintptr]int16:
  2132. fastpathTV.EncMapUintptrInt16V(v, fastpathCheckNilTrue, e)
  2133. case *map[uintptr]int16:
  2134. fastpathTV.EncMapUintptrInt16V(*v, fastpathCheckNilTrue, e)
  2135. case map[uintptr]int32:
  2136. fastpathTV.EncMapUintptrInt32V(v, fastpathCheckNilTrue, e)
  2137. case *map[uintptr]int32:
  2138. fastpathTV.EncMapUintptrInt32V(*v, fastpathCheckNilTrue, e)
  2139. case map[uintptr]int64:
  2140. fastpathTV.EncMapUintptrInt64V(v, fastpathCheckNilTrue, e)
  2141. case *map[uintptr]int64:
  2142. fastpathTV.EncMapUintptrInt64V(*v, fastpathCheckNilTrue, e)
  2143. case map[uintptr]float32:
  2144. fastpathTV.EncMapUintptrFloat32V(v, fastpathCheckNilTrue, e)
  2145. case *map[uintptr]float32:
  2146. fastpathTV.EncMapUintptrFloat32V(*v, fastpathCheckNilTrue, e)
  2147. case map[uintptr]float64:
  2148. fastpathTV.EncMapUintptrFloat64V(v, fastpathCheckNilTrue, e)
  2149. case *map[uintptr]float64:
  2150. fastpathTV.EncMapUintptrFloat64V(*v, fastpathCheckNilTrue, e)
  2151. case map[uintptr]bool:
  2152. fastpathTV.EncMapUintptrBoolV(v, fastpathCheckNilTrue, e)
  2153. case *map[uintptr]bool:
  2154. fastpathTV.EncMapUintptrBoolV(*v, fastpathCheckNilTrue, e)
  2155. case map[int]interface{}:
  2156. fastpathTV.EncMapIntIntfV(v, fastpathCheckNilTrue, e)
  2157. case *map[int]interface{}:
  2158. fastpathTV.EncMapIntIntfV(*v, fastpathCheckNilTrue, e)
  2159. case map[int]string:
  2160. fastpathTV.EncMapIntStringV(v, fastpathCheckNilTrue, e)
  2161. case *map[int]string:
  2162. fastpathTV.EncMapIntStringV(*v, fastpathCheckNilTrue, e)
  2163. case map[int]uint:
  2164. fastpathTV.EncMapIntUintV(v, fastpathCheckNilTrue, e)
  2165. case *map[int]uint:
  2166. fastpathTV.EncMapIntUintV(*v, fastpathCheckNilTrue, e)
  2167. case map[int]uint8:
  2168. fastpathTV.EncMapIntUint8V(v, fastpathCheckNilTrue, e)
  2169. case *map[int]uint8:
  2170. fastpathTV.EncMapIntUint8V(*v, fastpathCheckNilTrue, e)
  2171. case map[int]uint16:
  2172. fastpathTV.EncMapIntUint16V(v, fastpathCheckNilTrue, e)
  2173. case *map[int]uint16:
  2174. fastpathTV.EncMapIntUint16V(*v, fastpathCheckNilTrue, e)
  2175. case map[int]uint32:
  2176. fastpathTV.EncMapIntUint32V(v, fastpathCheckNilTrue, e)
  2177. case *map[int]uint32:
  2178. fastpathTV.EncMapIntUint32V(*v, fastpathCheckNilTrue, e)
  2179. case map[int]uint64:
  2180. fastpathTV.EncMapIntUint64V(v, fastpathCheckNilTrue, e)
  2181. case *map[int]uint64:
  2182. fastpathTV.EncMapIntUint64V(*v, fastpathCheckNilTrue, e)
  2183. case map[int]uintptr:
  2184. fastpathTV.EncMapIntUintptrV(v, fastpathCheckNilTrue, e)
  2185. case *map[int]uintptr:
  2186. fastpathTV.EncMapIntUintptrV(*v, fastpathCheckNilTrue, e)
  2187. case map[int]int:
  2188. fastpathTV.EncMapIntIntV(v, fastpathCheckNilTrue, e)
  2189. case *map[int]int:
  2190. fastpathTV.EncMapIntIntV(*v, fastpathCheckNilTrue, e)
  2191. case map[int]int8:
  2192. fastpathTV.EncMapIntInt8V(v, fastpathCheckNilTrue, e)
  2193. case *map[int]int8:
  2194. fastpathTV.EncMapIntInt8V(*v, fastpathCheckNilTrue, e)
  2195. case map[int]int16:
  2196. fastpathTV.EncMapIntInt16V(v, fastpathCheckNilTrue, e)
  2197. case *map[int]int16:
  2198. fastpathTV.EncMapIntInt16V(*v, fastpathCheckNilTrue, e)
  2199. case map[int]int32:
  2200. fastpathTV.EncMapIntInt32V(v, fastpathCheckNilTrue, e)
  2201. case *map[int]int32:
  2202. fastpathTV.EncMapIntInt32V(*v, fastpathCheckNilTrue, e)
  2203. case map[int]int64:
  2204. fastpathTV.EncMapIntInt64V(v, fastpathCheckNilTrue, e)
  2205. case *map[int]int64:
  2206. fastpathTV.EncMapIntInt64V(*v, fastpathCheckNilTrue, e)
  2207. case map[int]float32:
  2208. fastpathTV.EncMapIntFloat32V(v, fastpathCheckNilTrue, e)
  2209. case *map[int]float32:
  2210. fastpathTV.EncMapIntFloat32V(*v, fastpathCheckNilTrue, e)
  2211. case map[int]float64:
  2212. fastpathTV.EncMapIntFloat64V(v, fastpathCheckNilTrue, e)
  2213. case *map[int]float64:
  2214. fastpathTV.EncMapIntFloat64V(*v, fastpathCheckNilTrue, e)
  2215. case map[int]bool:
  2216. fastpathTV.EncMapIntBoolV(v, fastpathCheckNilTrue, e)
  2217. case *map[int]bool:
  2218. fastpathTV.EncMapIntBoolV(*v, fastpathCheckNilTrue, e)
  2219. case map[int8]interface{}:
  2220. fastpathTV.EncMapInt8IntfV(v, fastpathCheckNilTrue, e)
  2221. case *map[int8]interface{}:
  2222. fastpathTV.EncMapInt8IntfV(*v, fastpathCheckNilTrue, e)
  2223. case map[int8]string:
  2224. fastpathTV.EncMapInt8StringV(v, fastpathCheckNilTrue, e)
  2225. case *map[int8]string:
  2226. fastpathTV.EncMapInt8StringV(*v, fastpathCheckNilTrue, e)
  2227. case map[int8]uint:
  2228. fastpathTV.EncMapInt8UintV(v, fastpathCheckNilTrue, e)
  2229. case *map[int8]uint:
  2230. fastpathTV.EncMapInt8UintV(*v, fastpathCheckNilTrue, e)
  2231. case map[int8]uint8:
  2232. fastpathTV.EncMapInt8Uint8V(v, fastpathCheckNilTrue, e)
  2233. case *map[int8]uint8:
  2234. fastpathTV.EncMapInt8Uint8V(*v, fastpathCheckNilTrue, e)
  2235. case map[int8]uint16:
  2236. fastpathTV.EncMapInt8Uint16V(v, fastpathCheckNilTrue, e)
  2237. case *map[int8]uint16:
  2238. fastpathTV.EncMapInt8Uint16V(*v, fastpathCheckNilTrue, e)
  2239. case map[int8]uint32:
  2240. fastpathTV.EncMapInt8Uint32V(v, fastpathCheckNilTrue, e)
  2241. case *map[int8]uint32:
  2242. fastpathTV.EncMapInt8Uint32V(*v, fastpathCheckNilTrue, e)
  2243. case map[int8]uint64:
  2244. fastpathTV.EncMapInt8Uint64V(v, fastpathCheckNilTrue, e)
  2245. case *map[int8]uint64:
  2246. fastpathTV.EncMapInt8Uint64V(*v, fastpathCheckNilTrue, e)
  2247. case map[int8]uintptr:
  2248. fastpathTV.EncMapInt8UintptrV(v, fastpathCheckNilTrue, e)
  2249. case *map[int8]uintptr:
  2250. fastpathTV.EncMapInt8UintptrV(*v, fastpathCheckNilTrue, e)
  2251. case map[int8]int:
  2252. fastpathTV.EncMapInt8IntV(v, fastpathCheckNilTrue, e)
  2253. case *map[int8]int:
  2254. fastpathTV.EncMapInt8IntV(*v, fastpathCheckNilTrue, e)
  2255. case map[int8]int8:
  2256. fastpathTV.EncMapInt8Int8V(v, fastpathCheckNilTrue, e)
  2257. case *map[int8]int8:
  2258. fastpathTV.EncMapInt8Int8V(*v, fastpathCheckNilTrue, e)
  2259. case map[int8]int16:
  2260. fastpathTV.EncMapInt8Int16V(v, fastpathCheckNilTrue, e)
  2261. case *map[int8]int16:
  2262. fastpathTV.EncMapInt8Int16V(*v, fastpathCheckNilTrue, e)
  2263. case map[int8]int32:
  2264. fastpathTV.EncMapInt8Int32V(v, fastpathCheckNilTrue, e)
  2265. case *map[int8]int32:
  2266. fastpathTV.EncMapInt8Int32V(*v, fastpathCheckNilTrue, e)
  2267. case map[int8]int64:
  2268. fastpathTV.EncMapInt8Int64V(v, fastpathCheckNilTrue, e)
  2269. case *map[int8]int64:
  2270. fastpathTV.EncMapInt8Int64V(*v, fastpathCheckNilTrue, e)
  2271. case map[int8]float32:
  2272. fastpathTV.EncMapInt8Float32V(v, fastpathCheckNilTrue, e)
  2273. case *map[int8]float32:
  2274. fastpathTV.EncMapInt8Float32V(*v, fastpathCheckNilTrue, e)
  2275. case map[int8]float64:
  2276. fastpathTV.EncMapInt8Float64V(v, fastpathCheckNilTrue, e)
  2277. case *map[int8]float64:
  2278. fastpathTV.EncMapInt8Float64V(*v, fastpathCheckNilTrue, e)
  2279. case map[int8]bool:
  2280. fastpathTV.EncMapInt8BoolV(v, fastpathCheckNilTrue, e)
  2281. case *map[int8]bool:
  2282. fastpathTV.EncMapInt8BoolV(*v, fastpathCheckNilTrue, e)
  2283. case map[int16]interface{}:
  2284. fastpathTV.EncMapInt16IntfV(v, fastpathCheckNilTrue, e)
  2285. case *map[int16]interface{}:
  2286. fastpathTV.EncMapInt16IntfV(*v, fastpathCheckNilTrue, e)
  2287. case map[int16]string:
  2288. fastpathTV.EncMapInt16StringV(v, fastpathCheckNilTrue, e)
  2289. case *map[int16]string:
  2290. fastpathTV.EncMapInt16StringV(*v, fastpathCheckNilTrue, e)
  2291. case map[int16]uint:
  2292. fastpathTV.EncMapInt16UintV(v, fastpathCheckNilTrue, e)
  2293. case *map[int16]uint:
  2294. fastpathTV.EncMapInt16UintV(*v, fastpathCheckNilTrue, e)
  2295. case map[int16]uint8:
  2296. fastpathTV.EncMapInt16Uint8V(v, fastpathCheckNilTrue, e)
  2297. case *map[int16]uint8:
  2298. fastpathTV.EncMapInt16Uint8V(*v, fastpathCheckNilTrue, e)
  2299. case map[int16]uint16:
  2300. fastpathTV.EncMapInt16Uint16V(v, fastpathCheckNilTrue, e)
  2301. case *map[int16]uint16:
  2302. fastpathTV.EncMapInt16Uint16V(*v, fastpathCheckNilTrue, e)
  2303. case map[int16]uint32:
  2304. fastpathTV.EncMapInt16Uint32V(v, fastpathCheckNilTrue, e)
  2305. case *map[int16]uint32:
  2306. fastpathTV.EncMapInt16Uint32V(*v, fastpathCheckNilTrue, e)
  2307. case map[int16]uint64:
  2308. fastpathTV.EncMapInt16Uint64V(v, fastpathCheckNilTrue, e)
  2309. case *map[int16]uint64:
  2310. fastpathTV.EncMapInt16Uint64V(*v, fastpathCheckNilTrue, e)
  2311. case map[int16]uintptr:
  2312. fastpathTV.EncMapInt16UintptrV(v, fastpathCheckNilTrue, e)
  2313. case *map[int16]uintptr:
  2314. fastpathTV.EncMapInt16UintptrV(*v, fastpathCheckNilTrue, e)
  2315. case map[int16]int:
  2316. fastpathTV.EncMapInt16IntV(v, fastpathCheckNilTrue, e)
  2317. case *map[int16]int:
  2318. fastpathTV.EncMapInt16IntV(*v, fastpathCheckNilTrue, e)
  2319. case map[int16]int8:
  2320. fastpathTV.EncMapInt16Int8V(v, fastpathCheckNilTrue, e)
  2321. case *map[int16]int8:
  2322. fastpathTV.EncMapInt16Int8V(*v, fastpathCheckNilTrue, e)
  2323. case map[int16]int16:
  2324. fastpathTV.EncMapInt16Int16V(v, fastpathCheckNilTrue, e)
  2325. case *map[int16]int16:
  2326. fastpathTV.EncMapInt16Int16V(*v, fastpathCheckNilTrue, e)
  2327. case map[int16]int32:
  2328. fastpathTV.EncMapInt16Int32V(v, fastpathCheckNilTrue, e)
  2329. case *map[int16]int32:
  2330. fastpathTV.EncMapInt16Int32V(*v, fastpathCheckNilTrue, e)
  2331. case map[int16]int64:
  2332. fastpathTV.EncMapInt16Int64V(v, fastpathCheckNilTrue, e)
  2333. case *map[int16]int64:
  2334. fastpathTV.EncMapInt16Int64V(*v, fastpathCheckNilTrue, e)
  2335. case map[int16]float32:
  2336. fastpathTV.EncMapInt16Float32V(v, fastpathCheckNilTrue, e)
  2337. case *map[int16]float32:
  2338. fastpathTV.EncMapInt16Float32V(*v, fastpathCheckNilTrue, e)
  2339. case map[int16]float64:
  2340. fastpathTV.EncMapInt16Float64V(v, fastpathCheckNilTrue, e)
  2341. case *map[int16]float64:
  2342. fastpathTV.EncMapInt16Float64V(*v, fastpathCheckNilTrue, e)
  2343. case map[int16]bool:
  2344. fastpathTV.EncMapInt16BoolV(v, fastpathCheckNilTrue, e)
  2345. case *map[int16]bool:
  2346. fastpathTV.EncMapInt16BoolV(*v, fastpathCheckNilTrue, e)
  2347. case map[int32]interface{}:
  2348. fastpathTV.EncMapInt32IntfV(v, fastpathCheckNilTrue, e)
  2349. case *map[int32]interface{}:
  2350. fastpathTV.EncMapInt32IntfV(*v, fastpathCheckNilTrue, e)
  2351. case map[int32]string:
  2352. fastpathTV.EncMapInt32StringV(v, fastpathCheckNilTrue, e)
  2353. case *map[int32]string:
  2354. fastpathTV.EncMapInt32StringV(*v, fastpathCheckNilTrue, e)
  2355. case map[int32]uint:
  2356. fastpathTV.EncMapInt32UintV(v, fastpathCheckNilTrue, e)
  2357. case *map[int32]uint:
  2358. fastpathTV.EncMapInt32UintV(*v, fastpathCheckNilTrue, e)
  2359. case map[int32]uint8:
  2360. fastpathTV.EncMapInt32Uint8V(v, fastpathCheckNilTrue, e)
  2361. case *map[int32]uint8:
  2362. fastpathTV.EncMapInt32Uint8V(*v, fastpathCheckNilTrue, e)
  2363. case map[int32]uint16:
  2364. fastpathTV.EncMapInt32Uint16V(v, fastpathCheckNilTrue, e)
  2365. case *map[int32]uint16:
  2366. fastpathTV.EncMapInt32Uint16V(*v, fastpathCheckNilTrue, e)
  2367. case map[int32]uint32:
  2368. fastpathTV.EncMapInt32Uint32V(v, fastpathCheckNilTrue, e)
  2369. case *map[int32]uint32:
  2370. fastpathTV.EncMapInt32Uint32V(*v, fastpathCheckNilTrue, e)
  2371. case map[int32]uint64:
  2372. fastpathTV.EncMapInt32Uint64V(v, fastpathCheckNilTrue, e)
  2373. case *map[int32]uint64:
  2374. fastpathTV.EncMapInt32Uint64V(*v, fastpathCheckNilTrue, e)
  2375. case map[int32]uintptr:
  2376. fastpathTV.EncMapInt32UintptrV(v, fastpathCheckNilTrue, e)
  2377. case *map[int32]uintptr:
  2378. fastpathTV.EncMapInt32UintptrV(*v, fastpathCheckNilTrue, e)
  2379. case map[int32]int:
  2380. fastpathTV.EncMapInt32IntV(v, fastpathCheckNilTrue, e)
  2381. case *map[int32]int:
  2382. fastpathTV.EncMapInt32IntV(*v, fastpathCheckNilTrue, e)
  2383. case map[int32]int8:
  2384. fastpathTV.EncMapInt32Int8V(v, fastpathCheckNilTrue, e)
  2385. case *map[int32]int8:
  2386. fastpathTV.EncMapInt32Int8V(*v, fastpathCheckNilTrue, e)
  2387. case map[int32]int16:
  2388. fastpathTV.EncMapInt32Int16V(v, fastpathCheckNilTrue, e)
  2389. case *map[int32]int16:
  2390. fastpathTV.EncMapInt32Int16V(*v, fastpathCheckNilTrue, e)
  2391. case map[int32]int32:
  2392. fastpathTV.EncMapInt32Int32V(v, fastpathCheckNilTrue, e)
  2393. case *map[int32]int32:
  2394. fastpathTV.EncMapInt32Int32V(*v, fastpathCheckNilTrue, e)
  2395. case map[int32]int64:
  2396. fastpathTV.EncMapInt32Int64V(v, fastpathCheckNilTrue, e)
  2397. case *map[int32]int64:
  2398. fastpathTV.EncMapInt32Int64V(*v, fastpathCheckNilTrue, e)
  2399. case map[int32]float32:
  2400. fastpathTV.EncMapInt32Float32V(v, fastpathCheckNilTrue, e)
  2401. case *map[int32]float32:
  2402. fastpathTV.EncMapInt32Float32V(*v, fastpathCheckNilTrue, e)
  2403. case map[int32]float64:
  2404. fastpathTV.EncMapInt32Float64V(v, fastpathCheckNilTrue, e)
  2405. case *map[int32]float64:
  2406. fastpathTV.EncMapInt32Float64V(*v, fastpathCheckNilTrue, e)
  2407. case map[int32]bool:
  2408. fastpathTV.EncMapInt32BoolV(v, fastpathCheckNilTrue, e)
  2409. case *map[int32]bool:
  2410. fastpathTV.EncMapInt32BoolV(*v, fastpathCheckNilTrue, e)
  2411. case map[int64]interface{}:
  2412. fastpathTV.EncMapInt64IntfV(v, fastpathCheckNilTrue, e)
  2413. case *map[int64]interface{}:
  2414. fastpathTV.EncMapInt64IntfV(*v, fastpathCheckNilTrue, e)
  2415. case map[int64]string:
  2416. fastpathTV.EncMapInt64StringV(v, fastpathCheckNilTrue, e)
  2417. case *map[int64]string:
  2418. fastpathTV.EncMapInt64StringV(*v, fastpathCheckNilTrue, e)
  2419. case map[int64]uint:
  2420. fastpathTV.EncMapInt64UintV(v, fastpathCheckNilTrue, e)
  2421. case *map[int64]uint:
  2422. fastpathTV.EncMapInt64UintV(*v, fastpathCheckNilTrue, e)
  2423. case map[int64]uint8:
  2424. fastpathTV.EncMapInt64Uint8V(v, fastpathCheckNilTrue, e)
  2425. case *map[int64]uint8:
  2426. fastpathTV.EncMapInt64Uint8V(*v, fastpathCheckNilTrue, e)
  2427. case map[int64]uint16:
  2428. fastpathTV.EncMapInt64Uint16V(v, fastpathCheckNilTrue, e)
  2429. case *map[int64]uint16:
  2430. fastpathTV.EncMapInt64Uint16V(*v, fastpathCheckNilTrue, e)
  2431. case map[int64]uint32:
  2432. fastpathTV.EncMapInt64Uint32V(v, fastpathCheckNilTrue, e)
  2433. case *map[int64]uint32:
  2434. fastpathTV.EncMapInt64Uint32V(*v, fastpathCheckNilTrue, e)
  2435. case map[int64]uint64:
  2436. fastpathTV.EncMapInt64Uint64V(v, fastpathCheckNilTrue, e)
  2437. case *map[int64]uint64:
  2438. fastpathTV.EncMapInt64Uint64V(*v, fastpathCheckNilTrue, e)
  2439. case map[int64]uintptr:
  2440. fastpathTV.EncMapInt64UintptrV(v, fastpathCheckNilTrue, e)
  2441. case *map[int64]uintptr:
  2442. fastpathTV.EncMapInt64UintptrV(*v, fastpathCheckNilTrue, e)
  2443. case map[int64]int:
  2444. fastpathTV.EncMapInt64IntV(v, fastpathCheckNilTrue, e)
  2445. case *map[int64]int:
  2446. fastpathTV.EncMapInt64IntV(*v, fastpathCheckNilTrue, e)
  2447. case map[int64]int8:
  2448. fastpathTV.EncMapInt64Int8V(v, fastpathCheckNilTrue, e)
  2449. case *map[int64]int8:
  2450. fastpathTV.EncMapInt64Int8V(*v, fastpathCheckNilTrue, e)
  2451. case map[int64]int16:
  2452. fastpathTV.EncMapInt64Int16V(v, fastpathCheckNilTrue, e)
  2453. case *map[int64]int16:
  2454. fastpathTV.EncMapInt64Int16V(*v, fastpathCheckNilTrue, e)
  2455. case map[int64]int32:
  2456. fastpathTV.EncMapInt64Int32V(v, fastpathCheckNilTrue, e)
  2457. case *map[int64]int32:
  2458. fastpathTV.EncMapInt64Int32V(*v, fastpathCheckNilTrue, e)
  2459. case map[int64]int64:
  2460. fastpathTV.EncMapInt64Int64V(v, fastpathCheckNilTrue, e)
  2461. case *map[int64]int64:
  2462. fastpathTV.EncMapInt64Int64V(*v, fastpathCheckNilTrue, e)
  2463. case map[int64]float32:
  2464. fastpathTV.EncMapInt64Float32V(v, fastpathCheckNilTrue, e)
  2465. case *map[int64]float32:
  2466. fastpathTV.EncMapInt64Float32V(*v, fastpathCheckNilTrue, e)
  2467. case map[int64]float64:
  2468. fastpathTV.EncMapInt64Float64V(v, fastpathCheckNilTrue, e)
  2469. case *map[int64]float64:
  2470. fastpathTV.EncMapInt64Float64V(*v, fastpathCheckNilTrue, e)
  2471. case map[int64]bool:
  2472. fastpathTV.EncMapInt64BoolV(v, fastpathCheckNilTrue, e)
  2473. case *map[int64]bool:
  2474. fastpathTV.EncMapInt64BoolV(*v, fastpathCheckNilTrue, e)
  2475. case map[bool]interface{}:
  2476. fastpathTV.EncMapBoolIntfV(v, fastpathCheckNilTrue, e)
  2477. case *map[bool]interface{}:
  2478. fastpathTV.EncMapBoolIntfV(*v, fastpathCheckNilTrue, e)
  2479. case map[bool]string:
  2480. fastpathTV.EncMapBoolStringV(v, fastpathCheckNilTrue, e)
  2481. case *map[bool]string:
  2482. fastpathTV.EncMapBoolStringV(*v, fastpathCheckNilTrue, e)
  2483. case map[bool]uint:
  2484. fastpathTV.EncMapBoolUintV(v, fastpathCheckNilTrue, e)
  2485. case *map[bool]uint:
  2486. fastpathTV.EncMapBoolUintV(*v, fastpathCheckNilTrue, e)
  2487. case map[bool]uint8:
  2488. fastpathTV.EncMapBoolUint8V(v, fastpathCheckNilTrue, e)
  2489. case *map[bool]uint8:
  2490. fastpathTV.EncMapBoolUint8V(*v, fastpathCheckNilTrue, e)
  2491. case map[bool]uint16:
  2492. fastpathTV.EncMapBoolUint16V(v, fastpathCheckNilTrue, e)
  2493. case *map[bool]uint16:
  2494. fastpathTV.EncMapBoolUint16V(*v, fastpathCheckNilTrue, e)
  2495. case map[bool]uint32:
  2496. fastpathTV.EncMapBoolUint32V(v, fastpathCheckNilTrue, e)
  2497. case *map[bool]uint32:
  2498. fastpathTV.EncMapBoolUint32V(*v, fastpathCheckNilTrue, e)
  2499. case map[bool]uint64:
  2500. fastpathTV.EncMapBoolUint64V(v, fastpathCheckNilTrue, e)
  2501. case *map[bool]uint64:
  2502. fastpathTV.EncMapBoolUint64V(*v, fastpathCheckNilTrue, e)
  2503. case map[bool]uintptr:
  2504. fastpathTV.EncMapBoolUintptrV(v, fastpathCheckNilTrue, e)
  2505. case *map[bool]uintptr:
  2506. fastpathTV.EncMapBoolUintptrV(*v, fastpathCheckNilTrue, e)
  2507. case map[bool]int:
  2508. fastpathTV.EncMapBoolIntV(v, fastpathCheckNilTrue, e)
  2509. case *map[bool]int:
  2510. fastpathTV.EncMapBoolIntV(*v, fastpathCheckNilTrue, e)
  2511. case map[bool]int8:
  2512. fastpathTV.EncMapBoolInt8V(v, fastpathCheckNilTrue, e)
  2513. case *map[bool]int8:
  2514. fastpathTV.EncMapBoolInt8V(*v, fastpathCheckNilTrue, e)
  2515. case map[bool]int16:
  2516. fastpathTV.EncMapBoolInt16V(v, fastpathCheckNilTrue, e)
  2517. case *map[bool]int16:
  2518. fastpathTV.EncMapBoolInt16V(*v, fastpathCheckNilTrue, e)
  2519. case map[bool]int32:
  2520. fastpathTV.EncMapBoolInt32V(v, fastpathCheckNilTrue, e)
  2521. case *map[bool]int32:
  2522. fastpathTV.EncMapBoolInt32V(*v, fastpathCheckNilTrue, e)
  2523. case map[bool]int64:
  2524. fastpathTV.EncMapBoolInt64V(v, fastpathCheckNilTrue, e)
  2525. case *map[bool]int64:
  2526. fastpathTV.EncMapBoolInt64V(*v, fastpathCheckNilTrue, e)
  2527. case map[bool]float32:
  2528. fastpathTV.EncMapBoolFloat32V(v, fastpathCheckNilTrue, e)
  2529. case *map[bool]float32:
  2530. fastpathTV.EncMapBoolFloat32V(*v, fastpathCheckNilTrue, e)
  2531. case map[bool]float64:
  2532. fastpathTV.EncMapBoolFloat64V(v, fastpathCheckNilTrue, e)
  2533. case *map[bool]float64:
  2534. fastpathTV.EncMapBoolFloat64V(*v, fastpathCheckNilTrue, e)
  2535. case map[bool]bool:
  2536. fastpathTV.EncMapBoolBoolV(v, fastpathCheckNilTrue, e)
  2537. case *map[bool]bool:
  2538. fastpathTV.EncMapBoolBoolV(*v, fastpathCheckNilTrue, e)
  2539. default:
  2540. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  2541. return false
  2542. }
  2543. return true
  2544. }
  2545. // -- -- fast path functions
  2546. func (f *encFnInfo) fastpathEncSliceIntfR(rv reflect.Value) {
  2547. if f.ti.mbs {
  2548. fastpathTV.EncAsMapSliceIntfV(rv.Interface().([]interface{}), fastpathCheckNilFalse, f.e)
  2549. } else {
  2550. fastpathTV.EncSliceIntfV(rv.Interface().([]interface{}), fastpathCheckNilFalse, f.e)
  2551. }
  2552. }
  2553. func (_ fastpathT) EncSliceIntfV(v []interface{}, checkNil bool, e *Encoder) {
  2554. ee := e.e
  2555. cr := e.cr
  2556. if checkNil && v == nil {
  2557. ee.EncodeNil()
  2558. return
  2559. }
  2560. ee.EncodeArrayStart(len(v))
  2561. for _, v2 := range v {
  2562. if cr != nil {
  2563. cr.sendContainerState(containerArrayElem)
  2564. }
  2565. e.encode(v2)
  2566. }
  2567. if cr != nil {
  2568. cr.sendContainerState(containerArrayEnd)
  2569. }
  2570. }
  2571. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, checkNil bool, e *Encoder) {
  2572. ee := e.e
  2573. cr := e.cr
  2574. if checkNil && v == nil {
  2575. ee.EncodeNil()
  2576. return
  2577. }
  2578. if len(v)%2 == 1 {
  2579. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2580. return
  2581. }
  2582. ee.EncodeMapStart(len(v) / 2)
  2583. for j, v2 := range v {
  2584. if cr != nil {
  2585. if j%2 == 0 {
  2586. cr.sendContainerState(containerMapKey)
  2587. } else {
  2588. cr.sendContainerState(containerMapValue)
  2589. }
  2590. }
  2591. e.encode(v2)
  2592. }
  2593. if cr != nil {
  2594. cr.sendContainerState(containerMapEnd)
  2595. }
  2596. }
  2597. func (f *encFnInfo) fastpathEncSliceStringR(rv reflect.Value) {
  2598. if f.ti.mbs {
  2599. fastpathTV.EncAsMapSliceStringV(rv.Interface().([]string), fastpathCheckNilFalse, f.e)
  2600. } else {
  2601. fastpathTV.EncSliceStringV(rv.Interface().([]string), fastpathCheckNilFalse, f.e)
  2602. }
  2603. }
  2604. func (_ fastpathT) EncSliceStringV(v []string, checkNil bool, e *Encoder) {
  2605. ee := e.e
  2606. cr := e.cr
  2607. if checkNil && v == nil {
  2608. ee.EncodeNil()
  2609. return
  2610. }
  2611. ee.EncodeArrayStart(len(v))
  2612. for _, v2 := range v {
  2613. if cr != nil {
  2614. cr.sendContainerState(containerArrayElem)
  2615. }
  2616. ee.EncodeString(c_UTF8, v2)
  2617. }
  2618. if cr != nil {
  2619. cr.sendContainerState(containerArrayEnd)
  2620. }
  2621. }
  2622. func (_ fastpathT) EncAsMapSliceStringV(v []string, checkNil bool, e *Encoder) {
  2623. ee := e.e
  2624. cr := e.cr
  2625. if checkNil && v == nil {
  2626. ee.EncodeNil()
  2627. return
  2628. }
  2629. if len(v)%2 == 1 {
  2630. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2631. return
  2632. }
  2633. ee.EncodeMapStart(len(v) / 2)
  2634. for j, v2 := range v {
  2635. if cr != nil {
  2636. if j%2 == 0 {
  2637. cr.sendContainerState(containerMapKey)
  2638. } else {
  2639. cr.sendContainerState(containerMapValue)
  2640. }
  2641. }
  2642. ee.EncodeString(c_UTF8, v2)
  2643. }
  2644. if cr != nil {
  2645. cr.sendContainerState(containerMapEnd)
  2646. }
  2647. }
  2648. func (f *encFnInfo) fastpathEncSliceFloat32R(rv reflect.Value) {
  2649. if f.ti.mbs {
  2650. fastpathTV.EncAsMapSliceFloat32V(rv.Interface().([]float32), fastpathCheckNilFalse, f.e)
  2651. } else {
  2652. fastpathTV.EncSliceFloat32V(rv.Interface().([]float32), fastpathCheckNilFalse, f.e)
  2653. }
  2654. }
  2655. func (_ fastpathT) EncSliceFloat32V(v []float32, checkNil bool, e *Encoder) {
  2656. ee := e.e
  2657. cr := e.cr
  2658. if checkNil && v == nil {
  2659. ee.EncodeNil()
  2660. return
  2661. }
  2662. ee.EncodeArrayStart(len(v))
  2663. for _, v2 := range v {
  2664. if cr != nil {
  2665. cr.sendContainerState(containerArrayElem)
  2666. }
  2667. ee.EncodeFloat32(v2)
  2668. }
  2669. if cr != nil {
  2670. cr.sendContainerState(containerArrayEnd)
  2671. }
  2672. }
  2673. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, checkNil bool, e *Encoder) {
  2674. ee := e.e
  2675. cr := e.cr
  2676. if checkNil && v == nil {
  2677. ee.EncodeNil()
  2678. return
  2679. }
  2680. if len(v)%2 == 1 {
  2681. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2682. return
  2683. }
  2684. ee.EncodeMapStart(len(v) / 2)
  2685. for j, v2 := range v {
  2686. if cr != nil {
  2687. if j%2 == 0 {
  2688. cr.sendContainerState(containerMapKey)
  2689. } else {
  2690. cr.sendContainerState(containerMapValue)
  2691. }
  2692. }
  2693. ee.EncodeFloat32(v2)
  2694. }
  2695. if cr != nil {
  2696. cr.sendContainerState(containerMapEnd)
  2697. }
  2698. }
  2699. func (f *encFnInfo) fastpathEncSliceFloat64R(rv reflect.Value) {
  2700. if f.ti.mbs {
  2701. fastpathTV.EncAsMapSliceFloat64V(rv.Interface().([]float64), fastpathCheckNilFalse, f.e)
  2702. } else {
  2703. fastpathTV.EncSliceFloat64V(rv.Interface().([]float64), fastpathCheckNilFalse, f.e)
  2704. }
  2705. }
  2706. func (_ fastpathT) EncSliceFloat64V(v []float64, checkNil bool, e *Encoder) {
  2707. ee := e.e
  2708. cr := e.cr
  2709. if checkNil && v == nil {
  2710. ee.EncodeNil()
  2711. return
  2712. }
  2713. ee.EncodeArrayStart(len(v))
  2714. for _, v2 := range v {
  2715. if cr != nil {
  2716. cr.sendContainerState(containerArrayElem)
  2717. }
  2718. ee.EncodeFloat64(v2)
  2719. }
  2720. if cr != nil {
  2721. cr.sendContainerState(containerArrayEnd)
  2722. }
  2723. }
  2724. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, checkNil bool, e *Encoder) {
  2725. ee := e.e
  2726. cr := e.cr
  2727. if checkNil && v == nil {
  2728. ee.EncodeNil()
  2729. return
  2730. }
  2731. if len(v)%2 == 1 {
  2732. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2733. return
  2734. }
  2735. ee.EncodeMapStart(len(v) / 2)
  2736. for j, v2 := range v {
  2737. if cr != nil {
  2738. if j%2 == 0 {
  2739. cr.sendContainerState(containerMapKey)
  2740. } else {
  2741. cr.sendContainerState(containerMapValue)
  2742. }
  2743. }
  2744. ee.EncodeFloat64(v2)
  2745. }
  2746. if cr != nil {
  2747. cr.sendContainerState(containerMapEnd)
  2748. }
  2749. }
  2750. func (f *encFnInfo) fastpathEncSliceUintR(rv reflect.Value) {
  2751. if f.ti.mbs {
  2752. fastpathTV.EncAsMapSliceUintV(rv.Interface().([]uint), fastpathCheckNilFalse, f.e)
  2753. } else {
  2754. fastpathTV.EncSliceUintV(rv.Interface().([]uint), fastpathCheckNilFalse, f.e)
  2755. }
  2756. }
  2757. func (_ fastpathT) EncSliceUintV(v []uint, checkNil bool, e *Encoder) {
  2758. ee := e.e
  2759. cr := e.cr
  2760. if checkNil && v == nil {
  2761. ee.EncodeNil()
  2762. return
  2763. }
  2764. ee.EncodeArrayStart(len(v))
  2765. for _, v2 := range v {
  2766. if cr != nil {
  2767. cr.sendContainerState(containerArrayElem)
  2768. }
  2769. ee.EncodeUint(uint64(v2))
  2770. }
  2771. if cr != nil {
  2772. cr.sendContainerState(containerArrayEnd)
  2773. }
  2774. }
  2775. func (_ fastpathT) EncAsMapSliceUintV(v []uint, checkNil bool, e *Encoder) {
  2776. ee := e.e
  2777. cr := e.cr
  2778. if checkNil && v == nil {
  2779. ee.EncodeNil()
  2780. return
  2781. }
  2782. if len(v)%2 == 1 {
  2783. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2784. return
  2785. }
  2786. ee.EncodeMapStart(len(v) / 2)
  2787. for j, v2 := range v {
  2788. if cr != nil {
  2789. if j%2 == 0 {
  2790. cr.sendContainerState(containerMapKey)
  2791. } else {
  2792. cr.sendContainerState(containerMapValue)
  2793. }
  2794. }
  2795. ee.EncodeUint(uint64(v2))
  2796. }
  2797. if cr != nil {
  2798. cr.sendContainerState(containerMapEnd)
  2799. }
  2800. }
  2801. func (f *encFnInfo) fastpathEncSliceUint16R(rv reflect.Value) {
  2802. if f.ti.mbs {
  2803. fastpathTV.EncAsMapSliceUint16V(rv.Interface().([]uint16), fastpathCheckNilFalse, f.e)
  2804. } else {
  2805. fastpathTV.EncSliceUint16V(rv.Interface().([]uint16), fastpathCheckNilFalse, f.e)
  2806. }
  2807. }
  2808. func (_ fastpathT) EncSliceUint16V(v []uint16, checkNil bool, e *Encoder) {
  2809. ee := e.e
  2810. cr := e.cr
  2811. if checkNil && v == nil {
  2812. ee.EncodeNil()
  2813. return
  2814. }
  2815. ee.EncodeArrayStart(len(v))
  2816. for _, v2 := range v {
  2817. if cr != nil {
  2818. cr.sendContainerState(containerArrayElem)
  2819. }
  2820. ee.EncodeUint(uint64(v2))
  2821. }
  2822. if cr != nil {
  2823. cr.sendContainerState(containerArrayEnd)
  2824. }
  2825. }
  2826. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, checkNil bool, e *Encoder) {
  2827. ee := e.e
  2828. cr := e.cr
  2829. if checkNil && v == nil {
  2830. ee.EncodeNil()
  2831. return
  2832. }
  2833. if len(v)%2 == 1 {
  2834. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2835. return
  2836. }
  2837. ee.EncodeMapStart(len(v) / 2)
  2838. for j, v2 := range v {
  2839. if cr != nil {
  2840. if j%2 == 0 {
  2841. cr.sendContainerState(containerMapKey)
  2842. } else {
  2843. cr.sendContainerState(containerMapValue)
  2844. }
  2845. }
  2846. ee.EncodeUint(uint64(v2))
  2847. }
  2848. if cr != nil {
  2849. cr.sendContainerState(containerMapEnd)
  2850. }
  2851. }
  2852. func (f *encFnInfo) fastpathEncSliceUint32R(rv reflect.Value) {
  2853. if f.ti.mbs {
  2854. fastpathTV.EncAsMapSliceUint32V(rv.Interface().([]uint32), fastpathCheckNilFalse, f.e)
  2855. } else {
  2856. fastpathTV.EncSliceUint32V(rv.Interface().([]uint32), fastpathCheckNilFalse, f.e)
  2857. }
  2858. }
  2859. func (_ fastpathT) EncSliceUint32V(v []uint32, checkNil bool, e *Encoder) {
  2860. ee := e.e
  2861. cr := e.cr
  2862. if checkNil && v == nil {
  2863. ee.EncodeNil()
  2864. return
  2865. }
  2866. ee.EncodeArrayStart(len(v))
  2867. for _, v2 := range v {
  2868. if cr != nil {
  2869. cr.sendContainerState(containerArrayElem)
  2870. }
  2871. ee.EncodeUint(uint64(v2))
  2872. }
  2873. if cr != nil {
  2874. cr.sendContainerState(containerArrayEnd)
  2875. }
  2876. }
  2877. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, checkNil bool, e *Encoder) {
  2878. ee := e.e
  2879. cr := e.cr
  2880. if checkNil && v == nil {
  2881. ee.EncodeNil()
  2882. return
  2883. }
  2884. if len(v)%2 == 1 {
  2885. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2886. return
  2887. }
  2888. ee.EncodeMapStart(len(v) / 2)
  2889. for j, v2 := range v {
  2890. if cr != nil {
  2891. if j%2 == 0 {
  2892. cr.sendContainerState(containerMapKey)
  2893. } else {
  2894. cr.sendContainerState(containerMapValue)
  2895. }
  2896. }
  2897. ee.EncodeUint(uint64(v2))
  2898. }
  2899. if cr != nil {
  2900. cr.sendContainerState(containerMapEnd)
  2901. }
  2902. }
  2903. func (f *encFnInfo) fastpathEncSliceUint64R(rv reflect.Value) {
  2904. if f.ti.mbs {
  2905. fastpathTV.EncAsMapSliceUint64V(rv.Interface().([]uint64), fastpathCheckNilFalse, f.e)
  2906. } else {
  2907. fastpathTV.EncSliceUint64V(rv.Interface().([]uint64), fastpathCheckNilFalse, f.e)
  2908. }
  2909. }
  2910. func (_ fastpathT) EncSliceUint64V(v []uint64, checkNil bool, e *Encoder) {
  2911. ee := e.e
  2912. cr := e.cr
  2913. if checkNil && v == nil {
  2914. ee.EncodeNil()
  2915. return
  2916. }
  2917. ee.EncodeArrayStart(len(v))
  2918. for _, v2 := range v {
  2919. if cr != nil {
  2920. cr.sendContainerState(containerArrayElem)
  2921. }
  2922. ee.EncodeUint(uint64(v2))
  2923. }
  2924. if cr != nil {
  2925. cr.sendContainerState(containerArrayEnd)
  2926. }
  2927. }
  2928. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, checkNil bool, e *Encoder) {
  2929. ee := e.e
  2930. cr := e.cr
  2931. if checkNil && v == nil {
  2932. ee.EncodeNil()
  2933. return
  2934. }
  2935. if len(v)%2 == 1 {
  2936. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2937. return
  2938. }
  2939. ee.EncodeMapStart(len(v) / 2)
  2940. for j, v2 := range v {
  2941. if cr != nil {
  2942. if j%2 == 0 {
  2943. cr.sendContainerState(containerMapKey)
  2944. } else {
  2945. cr.sendContainerState(containerMapValue)
  2946. }
  2947. }
  2948. ee.EncodeUint(uint64(v2))
  2949. }
  2950. if cr != nil {
  2951. cr.sendContainerState(containerMapEnd)
  2952. }
  2953. }
  2954. func (f *encFnInfo) fastpathEncSliceUintptrR(rv reflect.Value) {
  2955. if f.ti.mbs {
  2956. fastpathTV.EncAsMapSliceUintptrV(rv.Interface().([]uintptr), fastpathCheckNilFalse, f.e)
  2957. } else {
  2958. fastpathTV.EncSliceUintptrV(rv.Interface().([]uintptr), fastpathCheckNilFalse, f.e)
  2959. }
  2960. }
  2961. func (_ fastpathT) EncSliceUintptrV(v []uintptr, checkNil bool, e *Encoder) {
  2962. ee := e.e
  2963. cr := e.cr
  2964. if checkNil && v == nil {
  2965. ee.EncodeNil()
  2966. return
  2967. }
  2968. ee.EncodeArrayStart(len(v))
  2969. for _, v2 := range v {
  2970. if cr != nil {
  2971. cr.sendContainerState(containerArrayElem)
  2972. }
  2973. e.encode(v2)
  2974. }
  2975. if cr != nil {
  2976. cr.sendContainerState(containerArrayEnd)
  2977. }
  2978. }
  2979. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, checkNil bool, e *Encoder) {
  2980. ee := e.e
  2981. cr := e.cr
  2982. if checkNil && v == nil {
  2983. ee.EncodeNil()
  2984. return
  2985. }
  2986. if len(v)%2 == 1 {
  2987. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2988. return
  2989. }
  2990. ee.EncodeMapStart(len(v) / 2)
  2991. for j, v2 := range v {
  2992. if cr != nil {
  2993. if j%2 == 0 {
  2994. cr.sendContainerState(containerMapKey)
  2995. } else {
  2996. cr.sendContainerState(containerMapValue)
  2997. }
  2998. }
  2999. e.encode(v2)
  3000. }
  3001. if cr != nil {
  3002. cr.sendContainerState(containerMapEnd)
  3003. }
  3004. }
  3005. func (f *encFnInfo) fastpathEncSliceIntR(rv reflect.Value) {
  3006. if f.ti.mbs {
  3007. fastpathTV.EncAsMapSliceIntV(rv.Interface().([]int), fastpathCheckNilFalse, f.e)
  3008. } else {
  3009. fastpathTV.EncSliceIntV(rv.Interface().([]int), fastpathCheckNilFalse, f.e)
  3010. }
  3011. }
  3012. func (_ fastpathT) EncSliceIntV(v []int, checkNil bool, e *Encoder) {
  3013. ee := e.e
  3014. cr := e.cr
  3015. if checkNil && v == nil {
  3016. ee.EncodeNil()
  3017. return
  3018. }
  3019. ee.EncodeArrayStart(len(v))
  3020. for _, v2 := range v {
  3021. if cr != nil {
  3022. cr.sendContainerState(containerArrayElem)
  3023. }
  3024. ee.EncodeInt(int64(v2))
  3025. }
  3026. if cr != nil {
  3027. cr.sendContainerState(containerArrayEnd)
  3028. }
  3029. }
  3030. func (_ fastpathT) EncAsMapSliceIntV(v []int, checkNil bool, e *Encoder) {
  3031. ee := e.e
  3032. cr := e.cr
  3033. if checkNil && v == nil {
  3034. ee.EncodeNil()
  3035. return
  3036. }
  3037. if len(v)%2 == 1 {
  3038. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3039. return
  3040. }
  3041. ee.EncodeMapStart(len(v) / 2)
  3042. for j, v2 := range v {
  3043. if cr != nil {
  3044. if j%2 == 0 {
  3045. cr.sendContainerState(containerMapKey)
  3046. } else {
  3047. cr.sendContainerState(containerMapValue)
  3048. }
  3049. }
  3050. ee.EncodeInt(int64(v2))
  3051. }
  3052. if cr != nil {
  3053. cr.sendContainerState(containerMapEnd)
  3054. }
  3055. }
  3056. func (f *encFnInfo) fastpathEncSliceInt8R(rv reflect.Value) {
  3057. if f.ti.mbs {
  3058. fastpathTV.EncAsMapSliceInt8V(rv.Interface().([]int8), fastpathCheckNilFalse, f.e)
  3059. } else {
  3060. fastpathTV.EncSliceInt8V(rv.Interface().([]int8), fastpathCheckNilFalse, f.e)
  3061. }
  3062. }
  3063. func (_ fastpathT) EncSliceInt8V(v []int8, checkNil bool, e *Encoder) {
  3064. ee := e.e
  3065. cr := e.cr
  3066. if checkNil && v == nil {
  3067. ee.EncodeNil()
  3068. return
  3069. }
  3070. ee.EncodeArrayStart(len(v))
  3071. for _, v2 := range v {
  3072. if cr != nil {
  3073. cr.sendContainerState(containerArrayElem)
  3074. }
  3075. ee.EncodeInt(int64(v2))
  3076. }
  3077. if cr != nil {
  3078. cr.sendContainerState(containerArrayEnd)
  3079. }
  3080. }
  3081. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, checkNil bool, e *Encoder) {
  3082. ee := e.e
  3083. cr := e.cr
  3084. if checkNil && v == nil {
  3085. ee.EncodeNil()
  3086. return
  3087. }
  3088. if len(v)%2 == 1 {
  3089. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3090. return
  3091. }
  3092. ee.EncodeMapStart(len(v) / 2)
  3093. for j, v2 := range v {
  3094. if cr != nil {
  3095. if j%2 == 0 {
  3096. cr.sendContainerState(containerMapKey)
  3097. } else {
  3098. cr.sendContainerState(containerMapValue)
  3099. }
  3100. }
  3101. ee.EncodeInt(int64(v2))
  3102. }
  3103. if cr != nil {
  3104. cr.sendContainerState(containerMapEnd)
  3105. }
  3106. }
  3107. func (f *encFnInfo) fastpathEncSliceInt16R(rv reflect.Value) {
  3108. if f.ti.mbs {
  3109. fastpathTV.EncAsMapSliceInt16V(rv.Interface().([]int16), fastpathCheckNilFalse, f.e)
  3110. } else {
  3111. fastpathTV.EncSliceInt16V(rv.Interface().([]int16), fastpathCheckNilFalse, f.e)
  3112. }
  3113. }
  3114. func (_ fastpathT) EncSliceInt16V(v []int16, checkNil bool, e *Encoder) {
  3115. ee := e.e
  3116. cr := e.cr
  3117. if checkNil && v == nil {
  3118. ee.EncodeNil()
  3119. return
  3120. }
  3121. ee.EncodeArrayStart(len(v))
  3122. for _, v2 := range v {
  3123. if cr != nil {
  3124. cr.sendContainerState(containerArrayElem)
  3125. }
  3126. ee.EncodeInt(int64(v2))
  3127. }
  3128. if cr != nil {
  3129. cr.sendContainerState(containerArrayEnd)
  3130. }
  3131. }
  3132. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, checkNil bool, e *Encoder) {
  3133. ee := e.e
  3134. cr := e.cr
  3135. if checkNil && v == nil {
  3136. ee.EncodeNil()
  3137. return
  3138. }
  3139. if len(v)%2 == 1 {
  3140. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3141. return
  3142. }
  3143. ee.EncodeMapStart(len(v) / 2)
  3144. for j, v2 := range v {
  3145. if cr != nil {
  3146. if j%2 == 0 {
  3147. cr.sendContainerState(containerMapKey)
  3148. } else {
  3149. cr.sendContainerState(containerMapValue)
  3150. }
  3151. }
  3152. ee.EncodeInt(int64(v2))
  3153. }
  3154. if cr != nil {
  3155. cr.sendContainerState(containerMapEnd)
  3156. }
  3157. }
  3158. func (f *encFnInfo) fastpathEncSliceInt32R(rv reflect.Value) {
  3159. if f.ti.mbs {
  3160. fastpathTV.EncAsMapSliceInt32V(rv.Interface().([]int32), fastpathCheckNilFalse, f.e)
  3161. } else {
  3162. fastpathTV.EncSliceInt32V(rv.Interface().([]int32), fastpathCheckNilFalse, f.e)
  3163. }
  3164. }
  3165. func (_ fastpathT) EncSliceInt32V(v []int32, checkNil bool, e *Encoder) {
  3166. ee := e.e
  3167. cr := e.cr
  3168. if checkNil && v == nil {
  3169. ee.EncodeNil()
  3170. return
  3171. }
  3172. ee.EncodeArrayStart(len(v))
  3173. for _, v2 := range v {
  3174. if cr != nil {
  3175. cr.sendContainerState(containerArrayElem)
  3176. }
  3177. ee.EncodeInt(int64(v2))
  3178. }
  3179. if cr != nil {
  3180. cr.sendContainerState(containerArrayEnd)
  3181. }
  3182. }
  3183. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, checkNil bool, e *Encoder) {
  3184. ee := e.e
  3185. cr := e.cr
  3186. if checkNil && v == nil {
  3187. ee.EncodeNil()
  3188. return
  3189. }
  3190. if len(v)%2 == 1 {
  3191. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3192. return
  3193. }
  3194. ee.EncodeMapStart(len(v) / 2)
  3195. for j, v2 := range v {
  3196. if cr != nil {
  3197. if j%2 == 0 {
  3198. cr.sendContainerState(containerMapKey)
  3199. } else {
  3200. cr.sendContainerState(containerMapValue)
  3201. }
  3202. }
  3203. ee.EncodeInt(int64(v2))
  3204. }
  3205. if cr != nil {
  3206. cr.sendContainerState(containerMapEnd)
  3207. }
  3208. }
  3209. func (f *encFnInfo) fastpathEncSliceInt64R(rv reflect.Value) {
  3210. if f.ti.mbs {
  3211. fastpathTV.EncAsMapSliceInt64V(rv.Interface().([]int64), fastpathCheckNilFalse, f.e)
  3212. } else {
  3213. fastpathTV.EncSliceInt64V(rv.Interface().([]int64), fastpathCheckNilFalse, f.e)
  3214. }
  3215. }
  3216. func (_ fastpathT) EncSliceInt64V(v []int64, checkNil bool, e *Encoder) {
  3217. ee := e.e
  3218. cr := e.cr
  3219. if checkNil && v == nil {
  3220. ee.EncodeNil()
  3221. return
  3222. }
  3223. ee.EncodeArrayStart(len(v))
  3224. for _, v2 := range v {
  3225. if cr != nil {
  3226. cr.sendContainerState(containerArrayElem)
  3227. }
  3228. ee.EncodeInt(int64(v2))
  3229. }
  3230. if cr != nil {
  3231. cr.sendContainerState(containerArrayEnd)
  3232. }
  3233. }
  3234. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, checkNil bool, e *Encoder) {
  3235. ee := e.e
  3236. cr := e.cr
  3237. if checkNil && v == nil {
  3238. ee.EncodeNil()
  3239. return
  3240. }
  3241. if len(v)%2 == 1 {
  3242. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3243. return
  3244. }
  3245. ee.EncodeMapStart(len(v) / 2)
  3246. for j, v2 := range v {
  3247. if cr != nil {
  3248. if j%2 == 0 {
  3249. cr.sendContainerState(containerMapKey)
  3250. } else {
  3251. cr.sendContainerState(containerMapValue)
  3252. }
  3253. }
  3254. ee.EncodeInt(int64(v2))
  3255. }
  3256. if cr != nil {
  3257. cr.sendContainerState(containerMapEnd)
  3258. }
  3259. }
  3260. func (f *encFnInfo) fastpathEncSliceBoolR(rv reflect.Value) {
  3261. if f.ti.mbs {
  3262. fastpathTV.EncAsMapSliceBoolV(rv.Interface().([]bool), fastpathCheckNilFalse, f.e)
  3263. } else {
  3264. fastpathTV.EncSliceBoolV(rv.Interface().([]bool), fastpathCheckNilFalse, f.e)
  3265. }
  3266. }
  3267. func (_ fastpathT) EncSliceBoolV(v []bool, checkNil bool, e *Encoder) {
  3268. ee := e.e
  3269. cr := e.cr
  3270. if checkNil && v == nil {
  3271. ee.EncodeNil()
  3272. return
  3273. }
  3274. ee.EncodeArrayStart(len(v))
  3275. for _, v2 := range v {
  3276. if cr != nil {
  3277. cr.sendContainerState(containerArrayElem)
  3278. }
  3279. ee.EncodeBool(v2)
  3280. }
  3281. if cr != nil {
  3282. cr.sendContainerState(containerArrayEnd)
  3283. }
  3284. }
  3285. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, checkNil bool, e *Encoder) {
  3286. ee := e.e
  3287. cr := e.cr
  3288. if checkNil && v == nil {
  3289. ee.EncodeNil()
  3290. return
  3291. }
  3292. if len(v)%2 == 1 {
  3293. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3294. return
  3295. }
  3296. ee.EncodeMapStart(len(v) / 2)
  3297. for j, v2 := range v {
  3298. if cr != nil {
  3299. if j%2 == 0 {
  3300. cr.sendContainerState(containerMapKey)
  3301. } else {
  3302. cr.sendContainerState(containerMapValue)
  3303. }
  3304. }
  3305. ee.EncodeBool(v2)
  3306. }
  3307. if cr != nil {
  3308. cr.sendContainerState(containerMapEnd)
  3309. }
  3310. }
  3311. func (f *encFnInfo) fastpathEncMapIntfIntfR(rv reflect.Value) {
  3312. fastpathTV.EncMapIntfIntfV(rv.Interface().(map[interface{}]interface{}), fastpathCheckNilFalse, f.e)
  3313. }
  3314. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, e *Encoder) {
  3315. ee := e.e
  3316. cr := e.cr
  3317. if checkNil && v == nil {
  3318. ee.EncodeNil()
  3319. return
  3320. }
  3321. ee.EncodeMapStart(len(v))
  3322. if e.h.Canonical {
  3323. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3324. e2 := NewEncoderBytes(&mksv, e.hh)
  3325. v2 := make([]bytesI, len(v))
  3326. var i, l int
  3327. var vp *bytesI
  3328. for k2, _ := range v {
  3329. l = len(mksv)
  3330. e2.MustEncode(k2)
  3331. vp = &v2[i]
  3332. vp.v = mksv[l:]
  3333. vp.i = k2
  3334. i++
  3335. }
  3336. sort.Sort(bytesISlice(v2))
  3337. for j := range v2 {
  3338. if cr != nil {
  3339. cr.sendContainerState(containerMapKey)
  3340. }
  3341. e.asis(v2[j].v)
  3342. if cr != nil {
  3343. cr.sendContainerState(containerMapValue)
  3344. }
  3345. e.encode(v[v2[j].i])
  3346. }
  3347. } else {
  3348. for k2, v2 := range v {
  3349. if cr != nil {
  3350. cr.sendContainerState(containerMapKey)
  3351. }
  3352. e.encode(k2)
  3353. if cr != nil {
  3354. cr.sendContainerState(containerMapValue)
  3355. }
  3356. e.encode(v2)
  3357. }
  3358. }
  3359. if cr != nil {
  3360. cr.sendContainerState(containerMapEnd)
  3361. }
  3362. }
  3363. func (f *encFnInfo) fastpathEncMapIntfStringR(rv reflect.Value) {
  3364. fastpathTV.EncMapIntfStringV(rv.Interface().(map[interface{}]string), fastpathCheckNilFalse, f.e)
  3365. }
  3366. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, checkNil bool, e *Encoder) {
  3367. ee := e.e
  3368. cr := e.cr
  3369. if checkNil && v == nil {
  3370. ee.EncodeNil()
  3371. return
  3372. }
  3373. ee.EncodeMapStart(len(v))
  3374. if e.h.Canonical {
  3375. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3376. e2 := NewEncoderBytes(&mksv, e.hh)
  3377. v2 := make([]bytesI, len(v))
  3378. var i, l int
  3379. var vp *bytesI
  3380. for k2, _ := range v {
  3381. l = len(mksv)
  3382. e2.MustEncode(k2)
  3383. vp = &v2[i]
  3384. vp.v = mksv[l:]
  3385. vp.i = k2
  3386. i++
  3387. }
  3388. sort.Sort(bytesISlice(v2))
  3389. for j := range v2 {
  3390. if cr != nil {
  3391. cr.sendContainerState(containerMapKey)
  3392. }
  3393. e.asis(v2[j].v)
  3394. if cr != nil {
  3395. cr.sendContainerState(containerMapValue)
  3396. }
  3397. e.encode(v[v2[j].i])
  3398. }
  3399. } else {
  3400. for k2, v2 := range v {
  3401. if cr != nil {
  3402. cr.sendContainerState(containerMapKey)
  3403. }
  3404. e.encode(k2)
  3405. if cr != nil {
  3406. cr.sendContainerState(containerMapValue)
  3407. }
  3408. ee.EncodeString(c_UTF8, v2)
  3409. }
  3410. }
  3411. if cr != nil {
  3412. cr.sendContainerState(containerMapEnd)
  3413. }
  3414. }
  3415. func (f *encFnInfo) fastpathEncMapIntfUintR(rv reflect.Value) {
  3416. fastpathTV.EncMapIntfUintV(rv.Interface().(map[interface{}]uint), fastpathCheckNilFalse, f.e)
  3417. }
  3418. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, checkNil bool, e *Encoder) {
  3419. ee := e.e
  3420. cr := e.cr
  3421. if checkNil && v == nil {
  3422. ee.EncodeNil()
  3423. return
  3424. }
  3425. ee.EncodeMapStart(len(v))
  3426. if e.h.Canonical {
  3427. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3428. e2 := NewEncoderBytes(&mksv, e.hh)
  3429. v2 := make([]bytesI, len(v))
  3430. var i, l int
  3431. var vp *bytesI
  3432. for k2, _ := range v {
  3433. l = len(mksv)
  3434. e2.MustEncode(k2)
  3435. vp = &v2[i]
  3436. vp.v = mksv[l:]
  3437. vp.i = k2
  3438. i++
  3439. }
  3440. sort.Sort(bytesISlice(v2))
  3441. for j := range v2 {
  3442. if cr != nil {
  3443. cr.sendContainerState(containerMapKey)
  3444. }
  3445. e.asis(v2[j].v)
  3446. if cr != nil {
  3447. cr.sendContainerState(containerMapValue)
  3448. }
  3449. e.encode(v[v2[j].i])
  3450. }
  3451. } else {
  3452. for k2, v2 := range v {
  3453. if cr != nil {
  3454. cr.sendContainerState(containerMapKey)
  3455. }
  3456. e.encode(k2)
  3457. if cr != nil {
  3458. cr.sendContainerState(containerMapValue)
  3459. }
  3460. ee.EncodeUint(uint64(v2))
  3461. }
  3462. }
  3463. if cr != nil {
  3464. cr.sendContainerState(containerMapEnd)
  3465. }
  3466. }
  3467. func (f *encFnInfo) fastpathEncMapIntfUint8R(rv reflect.Value) {
  3468. fastpathTV.EncMapIntfUint8V(rv.Interface().(map[interface{}]uint8), fastpathCheckNilFalse, f.e)
  3469. }
  3470. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, checkNil bool, e *Encoder) {
  3471. ee := e.e
  3472. cr := e.cr
  3473. if checkNil && v == nil {
  3474. ee.EncodeNil()
  3475. return
  3476. }
  3477. ee.EncodeMapStart(len(v))
  3478. if e.h.Canonical {
  3479. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3480. e2 := NewEncoderBytes(&mksv, e.hh)
  3481. v2 := make([]bytesI, len(v))
  3482. var i, l int
  3483. var vp *bytesI
  3484. for k2, _ := range v {
  3485. l = len(mksv)
  3486. e2.MustEncode(k2)
  3487. vp = &v2[i]
  3488. vp.v = mksv[l:]
  3489. vp.i = k2
  3490. i++
  3491. }
  3492. sort.Sort(bytesISlice(v2))
  3493. for j := range v2 {
  3494. if cr != nil {
  3495. cr.sendContainerState(containerMapKey)
  3496. }
  3497. e.asis(v2[j].v)
  3498. if cr != nil {
  3499. cr.sendContainerState(containerMapValue)
  3500. }
  3501. e.encode(v[v2[j].i])
  3502. }
  3503. } else {
  3504. for k2, v2 := range v {
  3505. if cr != nil {
  3506. cr.sendContainerState(containerMapKey)
  3507. }
  3508. e.encode(k2)
  3509. if cr != nil {
  3510. cr.sendContainerState(containerMapValue)
  3511. }
  3512. ee.EncodeUint(uint64(v2))
  3513. }
  3514. }
  3515. if cr != nil {
  3516. cr.sendContainerState(containerMapEnd)
  3517. }
  3518. }
  3519. func (f *encFnInfo) fastpathEncMapIntfUint16R(rv reflect.Value) {
  3520. fastpathTV.EncMapIntfUint16V(rv.Interface().(map[interface{}]uint16), fastpathCheckNilFalse, f.e)
  3521. }
  3522. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, checkNil bool, e *Encoder) {
  3523. ee := e.e
  3524. cr := e.cr
  3525. if checkNil && v == nil {
  3526. ee.EncodeNil()
  3527. return
  3528. }
  3529. ee.EncodeMapStart(len(v))
  3530. if e.h.Canonical {
  3531. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3532. e2 := NewEncoderBytes(&mksv, e.hh)
  3533. v2 := make([]bytesI, len(v))
  3534. var i, l int
  3535. var vp *bytesI
  3536. for k2, _ := range v {
  3537. l = len(mksv)
  3538. e2.MustEncode(k2)
  3539. vp = &v2[i]
  3540. vp.v = mksv[l:]
  3541. vp.i = k2
  3542. i++
  3543. }
  3544. sort.Sort(bytesISlice(v2))
  3545. for j := range v2 {
  3546. if cr != nil {
  3547. cr.sendContainerState(containerMapKey)
  3548. }
  3549. e.asis(v2[j].v)
  3550. if cr != nil {
  3551. cr.sendContainerState(containerMapValue)
  3552. }
  3553. e.encode(v[v2[j].i])
  3554. }
  3555. } else {
  3556. for k2, v2 := range v {
  3557. if cr != nil {
  3558. cr.sendContainerState(containerMapKey)
  3559. }
  3560. e.encode(k2)
  3561. if cr != nil {
  3562. cr.sendContainerState(containerMapValue)
  3563. }
  3564. ee.EncodeUint(uint64(v2))
  3565. }
  3566. }
  3567. if cr != nil {
  3568. cr.sendContainerState(containerMapEnd)
  3569. }
  3570. }
  3571. func (f *encFnInfo) fastpathEncMapIntfUint32R(rv reflect.Value) {
  3572. fastpathTV.EncMapIntfUint32V(rv.Interface().(map[interface{}]uint32), fastpathCheckNilFalse, f.e)
  3573. }
  3574. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, checkNil bool, e *Encoder) {
  3575. ee := e.e
  3576. cr := e.cr
  3577. if checkNil && v == nil {
  3578. ee.EncodeNil()
  3579. return
  3580. }
  3581. ee.EncodeMapStart(len(v))
  3582. if e.h.Canonical {
  3583. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3584. e2 := NewEncoderBytes(&mksv, e.hh)
  3585. v2 := make([]bytesI, len(v))
  3586. var i, l int
  3587. var vp *bytesI
  3588. for k2, _ := range v {
  3589. l = len(mksv)
  3590. e2.MustEncode(k2)
  3591. vp = &v2[i]
  3592. vp.v = mksv[l:]
  3593. vp.i = k2
  3594. i++
  3595. }
  3596. sort.Sort(bytesISlice(v2))
  3597. for j := range v2 {
  3598. if cr != nil {
  3599. cr.sendContainerState(containerMapKey)
  3600. }
  3601. e.asis(v2[j].v)
  3602. if cr != nil {
  3603. cr.sendContainerState(containerMapValue)
  3604. }
  3605. e.encode(v[v2[j].i])
  3606. }
  3607. } else {
  3608. for k2, v2 := range v {
  3609. if cr != nil {
  3610. cr.sendContainerState(containerMapKey)
  3611. }
  3612. e.encode(k2)
  3613. if cr != nil {
  3614. cr.sendContainerState(containerMapValue)
  3615. }
  3616. ee.EncodeUint(uint64(v2))
  3617. }
  3618. }
  3619. if cr != nil {
  3620. cr.sendContainerState(containerMapEnd)
  3621. }
  3622. }
  3623. func (f *encFnInfo) fastpathEncMapIntfUint64R(rv reflect.Value) {
  3624. fastpathTV.EncMapIntfUint64V(rv.Interface().(map[interface{}]uint64), fastpathCheckNilFalse, f.e)
  3625. }
  3626. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, checkNil bool, e *Encoder) {
  3627. ee := e.e
  3628. cr := e.cr
  3629. if checkNil && v == nil {
  3630. ee.EncodeNil()
  3631. return
  3632. }
  3633. ee.EncodeMapStart(len(v))
  3634. if e.h.Canonical {
  3635. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3636. e2 := NewEncoderBytes(&mksv, e.hh)
  3637. v2 := make([]bytesI, len(v))
  3638. var i, l int
  3639. var vp *bytesI
  3640. for k2, _ := range v {
  3641. l = len(mksv)
  3642. e2.MustEncode(k2)
  3643. vp = &v2[i]
  3644. vp.v = mksv[l:]
  3645. vp.i = k2
  3646. i++
  3647. }
  3648. sort.Sort(bytesISlice(v2))
  3649. for j := range v2 {
  3650. if cr != nil {
  3651. cr.sendContainerState(containerMapKey)
  3652. }
  3653. e.asis(v2[j].v)
  3654. if cr != nil {
  3655. cr.sendContainerState(containerMapValue)
  3656. }
  3657. e.encode(v[v2[j].i])
  3658. }
  3659. } else {
  3660. for k2, v2 := range v {
  3661. if cr != nil {
  3662. cr.sendContainerState(containerMapKey)
  3663. }
  3664. e.encode(k2)
  3665. if cr != nil {
  3666. cr.sendContainerState(containerMapValue)
  3667. }
  3668. ee.EncodeUint(uint64(v2))
  3669. }
  3670. }
  3671. if cr != nil {
  3672. cr.sendContainerState(containerMapEnd)
  3673. }
  3674. }
  3675. func (f *encFnInfo) fastpathEncMapIntfUintptrR(rv reflect.Value) {
  3676. fastpathTV.EncMapIntfUintptrV(rv.Interface().(map[interface{}]uintptr), fastpathCheckNilFalse, f.e)
  3677. }
  3678. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, checkNil bool, e *Encoder) {
  3679. ee := e.e
  3680. cr := e.cr
  3681. if checkNil && v == nil {
  3682. ee.EncodeNil()
  3683. return
  3684. }
  3685. ee.EncodeMapStart(len(v))
  3686. if e.h.Canonical {
  3687. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3688. e2 := NewEncoderBytes(&mksv, e.hh)
  3689. v2 := make([]bytesI, len(v))
  3690. var i, l int
  3691. var vp *bytesI
  3692. for k2, _ := range v {
  3693. l = len(mksv)
  3694. e2.MustEncode(k2)
  3695. vp = &v2[i]
  3696. vp.v = mksv[l:]
  3697. vp.i = k2
  3698. i++
  3699. }
  3700. sort.Sort(bytesISlice(v2))
  3701. for j := range v2 {
  3702. if cr != nil {
  3703. cr.sendContainerState(containerMapKey)
  3704. }
  3705. e.asis(v2[j].v)
  3706. if cr != nil {
  3707. cr.sendContainerState(containerMapValue)
  3708. }
  3709. e.encode(v[v2[j].i])
  3710. }
  3711. } else {
  3712. for k2, v2 := range v {
  3713. if cr != nil {
  3714. cr.sendContainerState(containerMapKey)
  3715. }
  3716. e.encode(k2)
  3717. if cr != nil {
  3718. cr.sendContainerState(containerMapValue)
  3719. }
  3720. e.encode(v2)
  3721. }
  3722. }
  3723. if cr != nil {
  3724. cr.sendContainerState(containerMapEnd)
  3725. }
  3726. }
  3727. func (f *encFnInfo) fastpathEncMapIntfIntR(rv reflect.Value) {
  3728. fastpathTV.EncMapIntfIntV(rv.Interface().(map[interface{}]int), fastpathCheckNilFalse, f.e)
  3729. }
  3730. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, checkNil bool, e *Encoder) {
  3731. ee := e.e
  3732. cr := e.cr
  3733. if checkNil && v == nil {
  3734. ee.EncodeNil()
  3735. return
  3736. }
  3737. ee.EncodeMapStart(len(v))
  3738. if e.h.Canonical {
  3739. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3740. e2 := NewEncoderBytes(&mksv, e.hh)
  3741. v2 := make([]bytesI, len(v))
  3742. var i, l int
  3743. var vp *bytesI
  3744. for k2, _ := range v {
  3745. l = len(mksv)
  3746. e2.MustEncode(k2)
  3747. vp = &v2[i]
  3748. vp.v = mksv[l:]
  3749. vp.i = k2
  3750. i++
  3751. }
  3752. sort.Sort(bytesISlice(v2))
  3753. for j := range v2 {
  3754. if cr != nil {
  3755. cr.sendContainerState(containerMapKey)
  3756. }
  3757. e.asis(v2[j].v)
  3758. if cr != nil {
  3759. cr.sendContainerState(containerMapValue)
  3760. }
  3761. e.encode(v[v2[j].i])
  3762. }
  3763. } else {
  3764. for k2, v2 := range v {
  3765. if cr != nil {
  3766. cr.sendContainerState(containerMapKey)
  3767. }
  3768. e.encode(k2)
  3769. if cr != nil {
  3770. cr.sendContainerState(containerMapValue)
  3771. }
  3772. ee.EncodeInt(int64(v2))
  3773. }
  3774. }
  3775. if cr != nil {
  3776. cr.sendContainerState(containerMapEnd)
  3777. }
  3778. }
  3779. func (f *encFnInfo) fastpathEncMapIntfInt8R(rv reflect.Value) {
  3780. fastpathTV.EncMapIntfInt8V(rv.Interface().(map[interface{}]int8), fastpathCheckNilFalse, f.e)
  3781. }
  3782. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, checkNil bool, e *Encoder) {
  3783. ee := e.e
  3784. cr := e.cr
  3785. if checkNil && v == nil {
  3786. ee.EncodeNil()
  3787. return
  3788. }
  3789. ee.EncodeMapStart(len(v))
  3790. if e.h.Canonical {
  3791. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3792. e2 := NewEncoderBytes(&mksv, e.hh)
  3793. v2 := make([]bytesI, len(v))
  3794. var i, l int
  3795. var vp *bytesI
  3796. for k2, _ := range v {
  3797. l = len(mksv)
  3798. e2.MustEncode(k2)
  3799. vp = &v2[i]
  3800. vp.v = mksv[l:]
  3801. vp.i = k2
  3802. i++
  3803. }
  3804. sort.Sort(bytesISlice(v2))
  3805. for j := range v2 {
  3806. if cr != nil {
  3807. cr.sendContainerState(containerMapKey)
  3808. }
  3809. e.asis(v2[j].v)
  3810. if cr != nil {
  3811. cr.sendContainerState(containerMapValue)
  3812. }
  3813. e.encode(v[v2[j].i])
  3814. }
  3815. } else {
  3816. for k2, v2 := range v {
  3817. if cr != nil {
  3818. cr.sendContainerState(containerMapKey)
  3819. }
  3820. e.encode(k2)
  3821. if cr != nil {
  3822. cr.sendContainerState(containerMapValue)
  3823. }
  3824. ee.EncodeInt(int64(v2))
  3825. }
  3826. }
  3827. if cr != nil {
  3828. cr.sendContainerState(containerMapEnd)
  3829. }
  3830. }
  3831. func (f *encFnInfo) fastpathEncMapIntfInt16R(rv reflect.Value) {
  3832. fastpathTV.EncMapIntfInt16V(rv.Interface().(map[interface{}]int16), fastpathCheckNilFalse, f.e)
  3833. }
  3834. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, checkNil bool, e *Encoder) {
  3835. ee := e.e
  3836. cr := e.cr
  3837. if checkNil && v == nil {
  3838. ee.EncodeNil()
  3839. return
  3840. }
  3841. ee.EncodeMapStart(len(v))
  3842. if e.h.Canonical {
  3843. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3844. e2 := NewEncoderBytes(&mksv, e.hh)
  3845. v2 := make([]bytesI, len(v))
  3846. var i, l int
  3847. var vp *bytesI
  3848. for k2, _ := range v {
  3849. l = len(mksv)
  3850. e2.MustEncode(k2)
  3851. vp = &v2[i]
  3852. vp.v = mksv[l:]
  3853. vp.i = k2
  3854. i++
  3855. }
  3856. sort.Sort(bytesISlice(v2))
  3857. for j := range v2 {
  3858. if cr != nil {
  3859. cr.sendContainerState(containerMapKey)
  3860. }
  3861. e.asis(v2[j].v)
  3862. if cr != nil {
  3863. cr.sendContainerState(containerMapValue)
  3864. }
  3865. e.encode(v[v2[j].i])
  3866. }
  3867. } else {
  3868. for k2, v2 := range v {
  3869. if cr != nil {
  3870. cr.sendContainerState(containerMapKey)
  3871. }
  3872. e.encode(k2)
  3873. if cr != nil {
  3874. cr.sendContainerState(containerMapValue)
  3875. }
  3876. ee.EncodeInt(int64(v2))
  3877. }
  3878. }
  3879. if cr != nil {
  3880. cr.sendContainerState(containerMapEnd)
  3881. }
  3882. }
  3883. func (f *encFnInfo) fastpathEncMapIntfInt32R(rv reflect.Value) {
  3884. fastpathTV.EncMapIntfInt32V(rv.Interface().(map[interface{}]int32), fastpathCheckNilFalse, f.e)
  3885. }
  3886. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, checkNil bool, e *Encoder) {
  3887. ee := e.e
  3888. cr := e.cr
  3889. if checkNil && v == nil {
  3890. ee.EncodeNil()
  3891. return
  3892. }
  3893. ee.EncodeMapStart(len(v))
  3894. if e.h.Canonical {
  3895. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3896. e2 := NewEncoderBytes(&mksv, e.hh)
  3897. v2 := make([]bytesI, len(v))
  3898. var i, l int
  3899. var vp *bytesI
  3900. for k2, _ := range v {
  3901. l = len(mksv)
  3902. e2.MustEncode(k2)
  3903. vp = &v2[i]
  3904. vp.v = mksv[l:]
  3905. vp.i = k2
  3906. i++
  3907. }
  3908. sort.Sort(bytesISlice(v2))
  3909. for j := range v2 {
  3910. if cr != nil {
  3911. cr.sendContainerState(containerMapKey)
  3912. }
  3913. e.asis(v2[j].v)
  3914. if cr != nil {
  3915. cr.sendContainerState(containerMapValue)
  3916. }
  3917. e.encode(v[v2[j].i])
  3918. }
  3919. } else {
  3920. for k2, v2 := range v {
  3921. if cr != nil {
  3922. cr.sendContainerState(containerMapKey)
  3923. }
  3924. e.encode(k2)
  3925. if cr != nil {
  3926. cr.sendContainerState(containerMapValue)
  3927. }
  3928. ee.EncodeInt(int64(v2))
  3929. }
  3930. }
  3931. if cr != nil {
  3932. cr.sendContainerState(containerMapEnd)
  3933. }
  3934. }
  3935. func (f *encFnInfo) fastpathEncMapIntfInt64R(rv reflect.Value) {
  3936. fastpathTV.EncMapIntfInt64V(rv.Interface().(map[interface{}]int64), fastpathCheckNilFalse, f.e)
  3937. }
  3938. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, checkNil bool, e *Encoder) {
  3939. ee := e.e
  3940. cr := e.cr
  3941. if checkNil && v == nil {
  3942. ee.EncodeNil()
  3943. return
  3944. }
  3945. ee.EncodeMapStart(len(v))
  3946. if e.h.Canonical {
  3947. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3948. e2 := NewEncoderBytes(&mksv, e.hh)
  3949. v2 := make([]bytesI, len(v))
  3950. var i, l int
  3951. var vp *bytesI
  3952. for k2, _ := range v {
  3953. l = len(mksv)
  3954. e2.MustEncode(k2)
  3955. vp = &v2[i]
  3956. vp.v = mksv[l:]
  3957. vp.i = k2
  3958. i++
  3959. }
  3960. sort.Sort(bytesISlice(v2))
  3961. for j := range v2 {
  3962. if cr != nil {
  3963. cr.sendContainerState(containerMapKey)
  3964. }
  3965. e.asis(v2[j].v)
  3966. if cr != nil {
  3967. cr.sendContainerState(containerMapValue)
  3968. }
  3969. e.encode(v[v2[j].i])
  3970. }
  3971. } else {
  3972. for k2, v2 := range v {
  3973. if cr != nil {
  3974. cr.sendContainerState(containerMapKey)
  3975. }
  3976. e.encode(k2)
  3977. if cr != nil {
  3978. cr.sendContainerState(containerMapValue)
  3979. }
  3980. ee.EncodeInt(int64(v2))
  3981. }
  3982. }
  3983. if cr != nil {
  3984. cr.sendContainerState(containerMapEnd)
  3985. }
  3986. }
  3987. func (f *encFnInfo) fastpathEncMapIntfFloat32R(rv reflect.Value) {
  3988. fastpathTV.EncMapIntfFloat32V(rv.Interface().(map[interface{}]float32), fastpathCheckNilFalse, f.e)
  3989. }
  3990. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, checkNil bool, e *Encoder) {
  3991. ee := e.e
  3992. cr := e.cr
  3993. if checkNil && v == nil {
  3994. ee.EncodeNil()
  3995. return
  3996. }
  3997. ee.EncodeMapStart(len(v))
  3998. if e.h.Canonical {
  3999. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  4000. e2 := NewEncoderBytes(&mksv, e.hh)
  4001. v2 := make([]bytesI, len(v))
  4002. var i, l int
  4003. var vp *bytesI
  4004. for k2, _ := range v {
  4005. l = len(mksv)
  4006. e2.MustEncode(k2)
  4007. vp = &v2[i]
  4008. vp.v = mksv[l:]
  4009. vp.i = k2
  4010. i++
  4011. }
  4012. sort.Sort(bytesISlice(v2))
  4013. for j := range v2 {
  4014. if cr != nil {
  4015. cr.sendContainerState(containerMapKey)
  4016. }
  4017. e.asis(v2[j].v)
  4018. if cr != nil {
  4019. cr.sendContainerState(containerMapValue)
  4020. }
  4021. e.encode(v[v2[j].i])
  4022. }
  4023. } else {
  4024. for k2, v2 := range v {
  4025. if cr != nil {
  4026. cr.sendContainerState(containerMapKey)
  4027. }
  4028. e.encode(k2)
  4029. if cr != nil {
  4030. cr.sendContainerState(containerMapValue)
  4031. }
  4032. ee.EncodeFloat32(v2)
  4033. }
  4034. }
  4035. if cr != nil {
  4036. cr.sendContainerState(containerMapEnd)
  4037. }
  4038. }
  4039. func (f *encFnInfo) fastpathEncMapIntfFloat64R(rv reflect.Value) {
  4040. fastpathTV.EncMapIntfFloat64V(rv.Interface().(map[interface{}]float64), fastpathCheckNilFalse, f.e)
  4041. }
  4042. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, checkNil bool, e *Encoder) {
  4043. ee := e.e
  4044. cr := e.cr
  4045. if checkNil && v == nil {
  4046. ee.EncodeNil()
  4047. return
  4048. }
  4049. ee.EncodeMapStart(len(v))
  4050. if e.h.Canonical {
  4051. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  4052. e2 := NewEncoderBytes(&mksv, e.hh)
  4053. v2 := make([]bytesI, len(v))
  4054. var i, l int
  4055. var vp *bytesI
  4056. for k2, _ := range v {
  4057. l = len(mksv)
  4058. e2.MustEncode(k2)
  4059. vp = &v2[i]
  4060. vp.v = mksv[l:]
  4061. vp.i = k2
  4062. i++
  4063. }
  4064. sort.Sort(bytesISlice(v2))
  4065. for j := range v2 {
  4066. if cr != nil {
  4067. cr.sendContainerState(containerMapKey)
  4068. }
  4069. e.asis(v2[j].v)
  4070. if cr != nil {
  4071. cr.sendContainerState(containerMapValue)
  4072. }
  4073. e.encode(v[v2[j].i])
  4074. }
  4075. } else {
  4076. for k2, v2 := range v {
  4077. if cr != nil {
  4078. cr.sendContainerState(containerMapKey)
  4079. }
  4080. e.encode(k2)
  4081. if cr != nil {
  4082. cr.sendContainerState(containerMapValue)
  4083. }
  4084. ee.EncodeFloat64(v2)
  4085. }
  4086. }
  4087. if cr != nil {
  4088. cr.sendContainerState(containerMapEnd)
  4089. }
  4090. }
  4091. func (f *encFnInfo) fastpathEncMapIntfBoolR(rv reflect.Value) {
  4092. fastpathTV.EncMapIntfBoolV(rv.Interface().(map[interface{}]bool), fastpathCheckNilFalse, f.e)
  4093. }
  4094. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, checkNil bool, e *Encoder) {
  4095. ee := e.e
  4096. cr := e.cr
  4097. if checkNil && v == nil {
  4098. ee.EncodeNil()
  4099. return
  4100. }
  4101. ee.EncodeMapStart(len(v))
  4102. if e.h.Canonical {
  4103. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  4104. e2 := NewEncoderBytes(&mksv, e.hh)
  4105. v2 := make([]bytesI, len(v))
  4106. var i, l int
  4107. var vp *bytesI
  4108. for k2, _ := range v {
  4109. l = len(mksv)
  4110. e2.MustEncode(k2)
  4111. vp = &v2[i]
  4112. vp.v = mksv[l:]
  4113. vp.i = k2
  4114. i++
  4115. }
  4116. sort.Sort(bytesISlice(v2))
  4117. for j := range v2 {
  4118. if cr != nil {
  4119. cr.sendContainerState(containerMapKey)
  4120. }
  4121. e.asis(v2[j].v)
  4122. if cr != nil {
  4123. cr.sendContainerState(containerMapValue)
  4124. }
  4125. e.encode(v[v2[j].i])
  4126. }
  4127. } else {
  4128. for k2, v2 := range v {
  4129. if cr != nil {
  4130. cr.sendContainerState(containerMapKey)
  4131. }
  4132. e.encode(k2)
  4133. if cr != nil {
  4134. cr.sendContainerState(containerMapValue)
  4135. }
  4136. ee.EncodeBool(v2)
  4137. }
  4138. }
  4139. if cr != nil {
  4140. cr.sendContainerState(containerMapEnd)
  4141. }
  4142. }
  4143. func (f *encFnInfo) fastpathEncMapStringIntfR(rv reflect.Value) {
  4144. fastpathTV.EncMapStringIntfV(rv.Interface().(map[string]interface{}), fastpathCheckNilFalse, f.e)
  4145. }
  4146. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, checkNil bool, e *Encoder) {
  4147. ee := e.e
  4148. cr := e.cr
  4149. if checkNil && v == nil {
  4150. ee.EncodeNil()
  4151. return
  4152. }
  4153. ee.EncodeMapStart(len(v))
  4154. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4155. if e.h.Canonical {
  4156. v2 := make([]string, len(v))
  4157. var i int
  4158. for k, _ := range v {
  4159. v2[i] = string(k)
  4160. i++
  4161. }
  4162. sort.Sort(stringSlice(v2))
  4163. for _, k2 := range v2 {
  4164. if cr != nil {
  4165. cr.sendContainerState(containerMapKey)
  4166. }
  4167. if asSymbols {
  4168. ee.EncodeSymbol(k2)
  4169. } else {
  4170. ee.EncodeString(c_UTF8, k2)
  4171. }
  4172. if cr != nil {
  4173. cr.sendContainerState(containerMapValue)
  4174. }
  4175. e.encode(v[string(k2)])
  4176. }
  4177. } else {
  4178. for k2, v2 := range v {
  4179. if cr != nil {
  4180. cr.sendContainerState(containerMapKey)
  4181. }
  4182. if asSymbols {
  4183. ee.EncodeSymbol(k2)
  4184. } else {
  4185. ee.EncodeString(c_UTF8, k2)
  4186. }
  4187. if cr != nil {
  4188. cr.sendContainerState(containerMapValue)
  4189. }
  4190. e.encode(v2)
  4191. }
  4192. }
  4193. if cr != nil {
  4194. cr.sendContainerState(containerMapEnd)
  4195. }
  4196. }
  4197. func (f *encFnInfo) fastpathEncMapStringStringR(rv reflect.Value) {
  4198. fastpathTV.EncMapStringStringV(rv.Interface().(map[string]string), fastpathCheckNilFalse, f.e)
  4199. }
  4200. func (_ fastpathT) EncMapStringStringV(v map[string]string, checkNil bool, e *Encoder) {
  4201. ee := e.e
  4202. cr := e.cr
  4203. if checkNil && v == nil {
  4204. ee.EncodeNil()
  4205. return
  4206. }
  4207. ee.EncodeMapStart(len(v))
  4208. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4209. if e.h.Canonical {
  4210. v2 := make([]string, len(v))
  4211. var i int
  4212. for k, _ := range v {
  4213. v2[i] = string(k)
  4214. i++
  4215. }
  4216. sort.Sort(stringSlice(v2))
  4217. for _, k2 := range v2 {
  4218. if cr != nil {
  4219. cr.sendContainerState(containerMapKey)
  4220. }
  4221. if asSymbols {
  4222. ee.EncodeSymbol(k2)
  4223. } else {
  4224. ee.EncodeString(c_UTF8, k2)
  4225. }
  4226. if cr != nil {
  4227. cr.sendContainerState(containerMapValue)
  4228. }
  4229. ee.EncodeString(c_UTF8, v[string(k2)])
  4230. }
  4231. } else {
  4232. for k2, v2 := range v {
  4233. if cr != nil {
  4234. cr.sendContainerState(containerMapKey)
  4235. }
  4236. if asSymbols {
  4237. ee.EncodeSymbol(k2)
  4238. } else {
  4239. ee.EncodeString(c_UTF8, k2)
  4240. }
  4241. if cr != nil {
  4242. cr.sendContainerState(containerMapValue)
  4243. }
  4244. ee.EncodeString(c_UTF8, v2)
  4245. }
  4246. }
  4247. if cr != nil {
  4248. cr.sendContainerState(containerMapEnd)
  4249. }
  4250. }
  4251. func (f *encFnInfo) fastpathEncMapStringUintR(rv reflect.Value) {
  4252. fastpathTV.EncMapStringUintV(rv.Interface().(map[string]uint), fastpathCheckNilFalse, f.e)
  4253. }
  4254. func (_ fastpathT) EncMapStringUintV(v map[string]uint, checkNil bool, e *Encoder) {
  4255. ee := e.e
  4256. cr := e.cr
  4257. if checkNil && v == nil {
  4258. ee.EncodeNil()
  4259. return
  4260. }
  4261. ee.EncodeMapStart(len(v))
  4262. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4263. if e.h.Canonical {
  4264. v2 := make([]string, len(v))
  4265. var i int
  4266. for k, _ := range v {
  4267. v2[i] = string(k)
  4268. i++
  4269. }
  4270. sort.Sort(stringSlice(v2))
  4271. for _, k2 := range v2 {
  4272. if cr != nil {
  4273. cr.sendContainerState(containerMapKey)
  4274. }
  4275. if asSymbols {
  4276. ee.EncodeSymbol(k2)
  4277. } else {
  4278. ee.EncodeString(c_UTF8, k2)
  4279. }
  4280. if cr != nil {
  4281. cr.sendContainerState(containerMapValue)
  4282. }
  4283. ee.EncodeUint(uint64(v[string(k2)]))
  4284. }
  4285. } else {
  4286. for k2, v2 := range v {
  4287. if cr != nil {
  4288. cr.sendContainerState(containerMapKey)
  4289. }
  4290. if asSymbols {
  4291. ee.EncodeSymbol(k2)
  4292. } else {
  4293. ee.EncodeString(c_UTF8, k2)
  4294. }
  4295. if cr != nil {
  4296. cr.sendContainerState(containerMapValue)
  4297. }
  4298. ee.EncodeUint(uint64(v2))
  4299. }
  4300. }
  4301. if cr != nil {
  4302. cr.sendContainerState(containerMapEnd)
  4303. }
  4304. }
  4305. func (f *encFnInfo) fastpathEncMapStringUint8R(rv reflect.Value) {
  4306. fastpathTV.EncMapStringUint8V(rv.Interface().(map[string]uint8), fastpathCheckNilFalse, f.e)
  4307. }
  4308. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, checkNil bool, e *Encoder) {
  4309. ee := e.e
  4310. cr := e.cr
  4311. if checkNil && v == nil {
  4312. ee.EncodeNil()
  4313. return
  4314. }
  4315. ee.EncodeMapStart(len(v))
  4316. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4317. if e.h.Canonical {
  4318. v2 := make([]string, len(v))
  4319. var i int
  4320. for k, _ := range v {
  4321. v2[i] = string(k)
  4322. i++
  4323. }
  4324. sort.Sort(stringSlice(v2))
  4325. for _, k2 := range v2 {
  4326. if cr != nil {
  4327. cr.sendContainerState(containerMapKey)
  4328. }
  4329. if asSymbols {
  4330. ee.EncodeSymbol(k2)
  4331. } else {
  4332. ee.EncodeString(c_UTF8, k2)
  4333. }
  4334. if cr != nil {
  4335. cr.sendContainerState(containerMapValue)
  4336. }
  4337. ee.EncodeUint(uint64(v[string(k2)]))
  4338. }
  4339. } else {
  4340. for k2, v2 := range v {
  4341. if cr != nil {
  4342. cr.sendContainerState(containerMapKey)
  4343. }
  4344. if asSymbols {
  4345. ee.EncodeSymbol(k2)
  4346. } else {
  4347. ee.EncodeString(c_UTF8, k2)
  4348. }
  4349. if cr != nil {
  4350. cr.sendContainerState(containerMapValue)
  4351. }
  4352. ee.EncodeUint(uint64(v2))
  4353. }
  4354. }
  4355. if cr != nil {
  4356. cr.sendContainerState(containerMapEnd)
  4357. }
  4358. }
  4359. func (f *encFnInfo) fastpathEncMapStringUint16R(rv reflect.Value) {
  4360. fastpathTV.EncMapStringUint16V(rv.Interface().(map[string]uint16), fastpathCheckNilFalse, f.e)
  4361. }
  4362. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, checkNil bool, e *Encoder) {
  4363. ee := e.e
  4364. cr := e.cr
  4365. if checkNil && v == nil {
  4366. ee.EncodeNil()
  4367. return
  4368. }
  4369. ee.EncodeMapStart(len(v))
  4370. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4371. if e.h.Canonical {
  4372. v2 := make([]string, len(v))
  4373. var i int
  4374. for k, _ := range v {
  4375. v2[i] = string(k)
  4376. i++
  4377. }
  4378. sort.Sort(stringSlice(v2))
  4379. for _, k2 := range v2 {
  4380. if cr != nil {
  4381. cr.sendContainerState(containerMapKey)
  4382. }
  4383. if asSymbols {
  4384. ee.EncodeSymbol(k2)
  4385. } else {
  4386. ee.EncodeString(c_UTF8, k2)
  4387. }
  4388. if cr != nil {
  4389. cr.sendContainerState(containerMapValue)
  4390. }
  4391. ee.EncodeUint(uint64(v[string(k2)]))
  4392. }
  4393. } else {
  4394. for k2, v2 := range v {
  4395. if cr != nil {
  4396. cr.sendContainerState(containerMapKey)
  4397. }
  4398. if asSymbols {
  4399. ee.EncodeSymbol(k2)
  4400. } else {
  4401. ee.EncodeString(c_UTF8, k2)
  4402. }
  4403. if cr != nil {
  4404. cr.sendContainerState(containerMapValue)
  4405. }
  4406. ee.EncodeUint(uint64(v2))
  4407. }
  4408. }
  4409. if cr != nil {
  4410. cr.sendContainerState(containerMapEnd)
  4411. }
  4412. }
  4413. func (f *encFnInfo) fastpathEncMapStringUint32R(rv reflect.Value) {
  4414. fastpathTV.EncMapStringUint32V(rv.Interface().(map[string]uint32), fastpathCheckNilFalse, f.e)
  4415. }
  4416. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, checkNil bool, e *Encoder) {
  4417. ee := e.e
  4418. cr := e.cr
  4419. if checkNil && v == nil {
  4420. ee.EncodeNil()
  4421. return
  4422. }
  4423. ee.EncodeMapStart(len(v))
  4424. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4425. if e.h.Canonical {
  4426. v2 := make([]string, len(v))
  4427. var i int
  4428. for k, _ := range v {
  4429. v2[i] = string(k)
  4430. i++
  4431. }
  4432. sort.Sort(stringSlice(v2))
  4433. for _, k2 := range v2 {
  4434. if cr != nil {
  4435. cr.sendContainerState(containerMapKey)
  4436. }
  4437. if asSymbols {
  4438. ee.EncodeSymbol(k2)
  4439. } else {
  4440. ee.EncodeString(c_UTF8, k2)
  4441. }
  4442. if cr != nil {
  4443. cr.sendContainerState(containerMapValue)
  4444. }
  4445. ee.EncodeUint(uint64(v[string(k2)]))
  4446. }
  4447. } else {
  4448. for k2, v2 := range v {
  4449. if cr != nil {
  4450. cr.sendContainerState(containerMapKey)
  4451. }
  4452. if asSymbols {
  4453. ee.EncodeSymbol(k2)
  4454. } else {
  4455. ee.EncodeString(c_UTF8, k2)
  4456. }
  4457. if cr != nil {
  4458. cr.sendContainerState(containerMapValue)
  4459. }
  4460. ee.EncodeUint(uint64(v2))
  4461. }
  4462. }
  4463. if cr != nil {
  4464. cr.sendContainerState(containerMapEnd)
  4465. }
  4466. }
  4467. func (f *encFnInfo) fastpathEncMapStringUint64R(rv reflect.Value) {
  4468. fastpathTV.EncMapStringUint64V(rv.Interface().(map[string]uint64), fastpathCheckNilFalse, f.e)
  4469. }
  4470. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, checkNil bool, e *Encoder) {
  4471. ee := e.e
  4472. cr := e.cr
  4473. if checkNil && v == nil {
  4474. ee.EncodeNil()
  4475. return
  4476. }
  4477. ee.EncodeMapStart(len(v))
  4478. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4479. if e.h.Canonical {
  4480. v2 := make([]string, len(v))
  4481. var i int
  4482. for k, _ := range v {
  4483. v2[i] = string(k)
  4484. i++
  4485. }
  4486. sort.Sort(stringSlice(v2))
  4487. for _, k2 := range v2 {
  4488. if cr != nil {
  4489. cr.sendContainerState(containerMapKey)
  4490. }
  4491. if asSymbols {
  4492. ee.EncodeSymbol(k2)
  4493. } else {
  4494. ee.EncodeString(c_UTF8, k2)
  4495. }
  4496. if cr != nil {
  4497. cr.sendContainerState(containerMapValue)
  4498. }
  4499. ee.EncodeUint(uint64(v[string(k2)]))
  4500. }
  4501. } else {
  4502. for k2, v2 := range v {
  4503. if cr != nil {
  4504. cr.sendContainerState(containerMapKey)
  4505. }
  4506. if asSymbols {
  4507. ee.EncodeSymbol(k2)
  4508. } else {
  4509. ee.EncodeString(c_UTF8, k2)
  4510. }
  4511. if cr != nil {
  4512. cr.sendContainerState(containerMapValue)
  4513. }
  4514. ee.EncodeUint(uint64(v2))
  4515. }
  4516. }
  4517. if cr != nil {
  4518. cr.sendContainerState(containerMapEnd)
  4519. }
  4520. }
  4521. func (f *encFnInfo) fastpathEncMapStringUintptrR(rv reflect.Value) {
  4522. fastpathTV.EncMapStringUintptrV(rv.Interface().(map[string]uintptr), fastpathCheckNilFalse, f.e)
  4523. }
  4524. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, checkNil bool, e *Encoder) {
  4525. ee := e.e
  4526. cr := e.cr
  4527. if checkNil && v == nil {
  4528. ee.EncodeNil()
  4529. return
  4530. }
  4531. ee.EncodeMapStart(len(v))
  4532. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4533. if e.h.Canonical {
  4534. v2 := make([]string, len(v))
  4535. var i int
  4536. for k, _ := range v {
  4537. v2[i] = string(k)
  4538. i++
  4539. }
  4540. sort.Sort(stringSlice(v2))
  4541. for _, k2 := range v2 {
  4542. if cr != nil {
  4543. cr.sendContainerState(containerMapKey)
  4544. }
  4545. if asSymbols {
  4546. ee.EncodeSymbol(k2)
  4547. } else {
  4548. ee.EncodeString(c_UTF8, k2)
  4549. }
  4550. if cr != nil {
  4551. cr.sendContainerState(containerMapValue)
  4552. }
  4553. e.encode(v[string(k2)])
  4554. }
  4555. } else {
  4556. for k2, v2 := range v {
  4557. if cr != nil {
  4558. cr.sendContainerState(containerMapKey)
  4559. }
  4560. if asSymbols {
  4561. ee.EncodeSymbol(k2)
  4562. } else {
  4563. ee.EncodeString(c_UTF8, k2)
  4564. }
  4565. if cr != nil {
  4566. cr.sendContainerState(containerMapValue)
  4567. }
  4568. e.encode(v2)
  4569. }
  4570. }
  4571. if cr != nil {
  4572. cr.sendContainerState(containerMapEnd)
  4573. }
  4574. }
  4575. func (f *encFnInfo) fastpathEncMapStringIntR(rv reflect.Value) {
  4576. fastpathTV.EncMapStringIntV(rv.Interface().(map[string]int), fastpathCheckNilFalse, f.e)
  4577. }
  4578. func (_ fastpathT) EncMapStringIntV(v map[string]int, checkNil bool, e *Encoder) {
  4579. ee := e.e
  4580. cr := e.cr
  4581. if checkNil && v == nil {
  4582. ee.EncodeNil()
  4583. return
  4584. }
  4585. ee.EncodeMapStart(len(v))
  4586. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4587. if e.h.Canonical {
  4588. v2 := make([]string, len(v))
  4589. var i int
  4590. for k, _ := range v {
  4591. v2[i] = string(k)
  4592. i++
  4593. }
  4594. sort.Sort(stringSlice(v2))
  4595. for _, k2 := range v2 {
  4596. if cr != nil {
  4597. cr.sendContainerState(containerMapKey)
  4598. }
  4599. if asSymbols {
  4600. ee.EncodeSymbol(k2)
  4601. } else {
  4602. ee.EncodeString(c_UTF8, k2)
  4603. }
  4604. if cr != nil {
  4605. cr.sendContainerState(containerMapValue)
  4606. }
  4607. ee.EncodeInt(int64(v[string(k2)]))
  4608. }
  4609. } else {
  4610. for k2, v2 := range v {
  4611. if cr != nil {
  4612. cr.sendContainerState(containerMapKey)
  4613. }
  4614. if asSymbols {
  4615. ee.EncodeSymbol(k2)
  4616. } else {
  4617. ee.EncodeString(c_UTF8, k2)
  4618. }
  4619. if cr != nil {
  4620. cr.sendContainerState(containerMapValue)
  4621. }
  4622. ee.EncodeInt(int64(v2))
  4623. }
  4624. }
  4625. if cr != nil {
  4626. cr.sendContainerState(containerMapEnd)
  4627. }
  4628. }
  4629. func (f *encFnInfo) fastpathEncMapStringInt8R(rv reflect.Value) {
  4630. fastpathTV.EncMapStringInt8V(rv.Interface().(map[string]int8), fastpathCheckNilFalse, f.e)
  4631. }
  4632. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, checkNil bool, e *Encoder) {
  4633. ee := e.e
  4634. cr := e.cr
  4635. if checkNil && v == nil {
  4636. ee.EncodeNil()
  4637. return
  4638. }
  4639. ee.EncodeMapStart(len(v))
  4640. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4641. if e.h.Canonical {
  4642. v2 := make([]string, len(v))
  4643. var i int
  4644. for k, _ := range v {
  4645. v2[i] = string(k)
  4646. i++
  4647. }
  4648. sort.Sort(stringSlice(v2))
  4649. for _, k2 := range v2 {
  4650. if cr != nil {
  4651. cr.sendContainerState(containerMapKey)
  4652. }
  4653. if asSymbols {
  4654. ee.EncodeSymbol(k2)
  4655. } else {
  4656. ee.EncodeString(c_UTF8, k2)
  4657. }
  4658. if cr != nil {
  4659. cr.sendContainerState(containerMapValue)
  4660. }
  4661. ee.EncodeInt(int64(v[string(k2)]))
  4662. }
  4663. } else {
  4664. for k2, v2 := range v {
  4665. if cr != nil {
  4666. cr.sendContainerState(containerMapKey)
  4667. }
  4668. if asSymbols {
  4669. ee.EncodeSymbol(k2)
  4670. } else {
  4671. ee.EncodeString(c_UTF8, k2)
  4672. }
  4673. if cr != nil {
  4674. cr.sendContainerState(containerMapValue)
  4675. }
  4676. ee.EncodeInt(int64(v2))
  4677. }
  4678. }
  4679. if cr != nil {
  4680. cr.sendContainerState(containerMapEnd)
  4681. }
  4682. }
  4683. func (f *encFnInfo) fastpathEncMapStringInt16R(rv reflect.Value) {
  4684. fastpathTV.EncMapStringInt16V(rv.Interface().(map[string]int16), fastpathCheckNilFalse, f.e)
  4685. }
  4686. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, checkNil bool, e *Encoder) {
  4687. ee := e.e
  4688. cr := e.cr
  4689. if checkNil && v == nil {
  4690. ee.EncodeNil()
  4691. return
  4692. }
  4693. ee.EncodeMapStart(len(v))
  4694. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4695. if e.h.Canonical {
  4696. v2 := make([]string, len(v))
  4697. var i int
  4698. for k, _ := range v {
  4699. v2[i] = string(k)
  4700. i++
  4701. }
  4702. sort.Sort(stringSlice(v2))
  4703. for _, k2 := range v2 {
  4704. if cr != nil {
  4705. cr.sendContainerState(containerMapKey)
  4706. }
  4707. if asSymbols {
  4708. ee.EncodeSymbol(k2)
  4709. } else {
  4710. ee.EncodeString(c_UTF8, k2)
  4711. }
  4712. if cr != nil {
  4713. cr.sendContainerState(containerMapValue)
  4714. }
  4715. ee.EncodeInt(int64(v[string(k2)]))
  4716. }
  4717. } else {
  4718. for k2, v2 := range v {
  4719. if cr != nil {
  4720. cr.sendContainerState(containerMapKey)
  4721. }
  4722. if asSymbols {
  4723. ee.EncodeSymbol(k2)
  4724. } else {
  4725. ee.EncodeString(c_UTF8, k2)
  4726. }
  4727. if cr != nil {
  4728. cr.sendContainerState(containerMapValue)
  4729. }
  4730. ee.EncodeInt(int64(v2))
  4731. }
  4732. }
  4733. if cr != nil {
  4734. cr.sendContainerState(containerMapEnd)
  4735. }
  4736. }
  4737. func (f *encFnInfo) fastpathEncMapStringInt32R(rv reflect.Value) {
  4738. fastpathTV.EncMapStringInt32V(rv.Interface().(map[string]int32), fastpathCheckNilFalse, f.e)
  4739. }
  4740. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, checkNil bool, e *Encoder) {
  4741. ee := e.e
  4742. cr := e.cr
  4743. if checkNil && v == nil {
  4744. ee.EncodeNil()
  4745. return
  4746. }
  4747. ee.EncodeMapStart(len(v))
  4748. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4749. if e.h.Canonical {
  4750. v2 := make([]string, len(v))
  4751. var i int
  4752. for k, _ := range v {
  4753. v2[i] = string(k)
  4754. i++
  4755. }
  4756. sort.Sort(stringSlice(v2))
  4757. for _, k2 := range v2 {
  4758. if cr != nil {
  4759. cr.sendContainerState(containerMapKey)
  4760. }
  4761. if asSymbols {
  4762. ee.EncodeSymbol(k2)
  4763. } else {
  4764. ee.EncodeString(c_UTF8, k2)
  4765. }
  4766. if cr != nil {
  4767. cr.sendContainerState(containerMapValue)
  4768. }
  4769. ee.EncodeInt(int64(v[string(k2)]))
  4770. }
  4771. } else {
  4772. for k2, v2 := range v {
  4773. if cr != nil {
  4774. cr.sendContainerState(containerMapKey)
  4775. }
  4776. if asSymbols {
  4777. ee.EncodeSymbol(k2)
  4778. } else {
  4779. ee.EncodeString(c_UTF8, k2)
  4780. }
  4781. if cr != nil {
  4782. cr.sendContainerState(containerMapValue)
  4783. }
  4784. ee.EncodeInt(int64(v2))
  4785. }
  4786. }
  4787. if cr != nil {
  4788. cr.sendContainerState(containerMapEnd)
  4789. }
  4790. }
  4791. func (f *encFnInfo) fastpathEncMapStringInt64R(rv reflect.Value) {
  4792. fastpathTV.EncMapStringInt64V(rv.Interface().(map[string]int64), fastpathCheckNilFalse, f.e)
  4793. }
  4794. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, checkNil bool, e *Encoder) {
  4795. ee := e.e
  4796. cr := e.cr
  4797. if checkNil && v == nil {
  4798. ee.EncodeNil()
  4799. return
  4800. }
  4801. ee.EncodeMapStart(len(v))
  4802. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4803. if e.h.Canonical {
  4804. v2 := make([]string, len(v))
  4805. var i int
  4806. for k, _ := range v {
  4807. v2[i] = string(k)
  4808. i++
  4809. }
  4810. sort.Sort(stringSlice(v2))
  4811. for _, k2 := range v2 {
  4812. if cr != nil {
  4813. cr.sendContainerState(containerMapKey)
  4814. }
  4815. if asSymbols {
  4816. ee.EncodeSymbol(k2)
  4817. } else {
  4818. ee.EncodeString(c_UTF8, k2)
  4819. }
  4820. if cr != nil {
  4821. cr.sendContainerState(containerMapValue)
  4822. }
  4823. ee.EncodeInt(int64(v[string(k2)]))
  4824. }
  4825. } else {
  4826. for k2, v2 := range v {
  4827. if cr != nil {
  4828. cr.sendContainerState(containerMapKey)
  4829. }
  4830. if asSymbols {
  4831. ee.EncodeSymbol(k2)
  4832. } else {
  4833. ee.EncodeString(c_UTF8, k2)
  4834. }
  4835. if cr != nil {
  4836. cr.sendContainerState(containerMapValue)
  4837. }
  4838. ee.EncodeInt(int64(v2))
  4839. }
  4840. }
  4841. if cr != nil {
  4842. cr.sendContainerState(containerMapEnd)
  4843. }
  4844. }
  4845. func (f *encFnInfo) fastpathEncMapStringFloat32R(rv reflect.Value) {
  4846. fastpathTV.EncMapStringFloat32V(rv.Interface().(map[string]float32), fastpathCheckNilFalse, f.e)
  4847. }
  4848. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, checkNil bool, e *Encoder) {
  4849. ee := e.e
  4850. cr := e.cr
  4851. if checkNil && v == nil {
  4852. ee.EncodeNil()
  4853. return
  4854. }
  4855. ee.EncodeMapStart(len(v))
  4856. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4857. if e.h.Canonical {
  4858. v2 := make([]string, len(v))
  4859. var i int
  4860. for k, _ := range v {
  4861. v2[i] = string(k)
  4862. i++
  4863. }
  4864. sort.Sort(stringSlice(v2))
  4865. for _, k2 := range v2 {
  4866. if cr != nil {
  4867. cr.sendContainerState(containerMapKey)
  4868. }
  4869. if asSymbols {
  4870. ee.EncodeSymbol(k2)
  4871. } else {
  4872. ee.EncodeString(c_UTF8, k2)
  4873. }
  4874. if cr != nil {
  4875. cr.sendContainerState(containerMapValue)
  4876. }
  4877. ee.EncodeFloat32(v[string(k2)])
  4878. }
  4879. } else {
  4880. for k2, v2 := range v {
  4881. if cr != nil {
  4882. cr.sendContainerState(containerMapKey)
  4883. }
  4884. if asSymbols {
  4885. ee.EncodeSymbol(k2)
  4886. } else {
  4887. ee.EncodeString(c_UTF8, k2)
  4888. }
  4889. if cr != nil {
  4890. cr.sendContainerState(containerMapValue)
  4891. }
  4892. ee.EncodeFloat32(v2)
  4893. }
  4894. }
  4895. if cr != nil {
  4896. cr.sendContainerState(containerMapEnd)
  4897. }
  4898. }
  4899. func (f *encFnInfo) fastpathEncMapStringFloat64R(rv reflect.Value) {
  4900. fastpathTV.EncMapStringFloat64V(rv.Interface().(map[string]float64), fastpathCheckNilFalse, f.e)
  4901. }
  4902. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, checkNil bool, e *Encoder) {
  4903. ee := e.e
  4904. cr := e.cr
  4905. if checkNil && v == nil {
  4906. ee.EncodeNil()
  4907. return
  4908. }
  4909. ee.EncodeMapStart(len(v))
  4910. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4911. if e.h.Canonical {
  4912. v2 := make([]string, len(v))
  4913. var i int
  4914. for k, _ := range v {
  4915. v2[i] = string(k)
  4916. i++
  4917. }
  4918. sort.Sort(stringSlice(v2))
  4919. for _, k2 := range v2 {
  4920. if cr != nil {
  4921. cr.sendContainerState(containerMapKey)
  4922. }
  4923. if asSymbols {
  4924. ee.EncodeSymbol(k2)
  4925. } else {
  4926. ee.EncodeString(c_UTF8, k2)
  4927. }
  4928. if cr != nil {
  4929. cr.sendContainerState(containerMapValue)
  4930. }
  4931. ee.EncodeFloat64(v[string(k2)])
  4932. }
  4933. } else {
  4934. for k2, v2 := range v {
  4935. if cr != nil {
  4936. cr.sendContainerState(containerMapKey)
  4937. }
  4938. if asSymbols {
  4939. ee.EncodeSymbol(k2)
  4940. } else {
  4941. ee.EncodeString(c_UTF8, k2)
  4942. }
  4943. if cr != nil {
  4944. cr.sendContainerState(containerMapValue)
  4945. }
  4946. ee.EncodeFloat64(v2)
  4947. }
  4948. }
  4949. if cr != nil {
  4950. cr.sendContainerState(containerMapEnd)
  4951. }
  4952. }
  4953. func (f *encFnInfo) fastpathEncMapStringBoolR(rv reflect.Value) {
  4954. fastpathTV.EncMapStringBoolV(rv.Interface().(map[string]bool), fastpathCheckNilFalse, f.e)
  4955. }
  4956. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, checkNil bool, e *Encoder) {
  4957. ee := e.e
  4958. cr := e.cr
  4959. if checkNil && v == nil {
  4960. ee.EncodeNil()
  4961. return
  4962. }
  4963. ee.EncodeMapStart(len(v))
  4964. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4965. if e.h.Canonical {
  4966. v2 := make([]string, len(v))
  4967. var i int
  4968. for k, _ := range v {
  4969. v2[i] = string(k)
  4970. i++
  4971. }
  4972. sort.Sort(stringSlice(v2))
  4973. for _, k2 := range v2 {
  4974. if cr != nil {
  4975. cr.sendContainerState(containerMapKey)
  4976. }
  4977. if asSymbols {
  4978. ee.EncodeSymbol(k2)
  4979. } else {
  4980. ee.EncodeString(c_UTF8, k2)
  4981. }
  4982. if cr != nil {
  4983. cr.sendContainerState(containerMapValue)
  4984. }
  4985. ee.EncodeBool(v[string(k2)])
  4986. }
  4987. } else {
  4988. for k2, v2 := range v {
  4989. if cr != nil {
  4990. cr.sendContainerState(containerMapKey)
  4991. }
  4992. if asSymbols {
  4993. ee.EncodeSymbol(k2)
  4994. } else {
  4995. ee.EncodeString(c_UTF8, k2)
  4996. }
  4997. if cr != nil {
  4998. cr.sendContainerState(containerMapValue)
  4999. }
  5000. ee.EncodeBool(v2)
  5001. }
  5002. }
  5003. if cr != nil {
  5004. cr.sendContainerState(containerMapEnd)
  5005. }
  5006. }
  5007. func (f *encFnInfo) fastpathEncMapFloat32IntfR(rv reflect.Value) {
  5008. fastpathTV.EncMapFloat32IntfV(rv.Interface().(map[float32]interface{}), fastpathCheckNilFalse, f.e)
  5009. }
  5010. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, checkNil bool, e *Encoder) {
  5011. ee := e.e
  5012. cr := e.cr
  5013. if checkNil && v == nil {
  5014. ee.EncodeNil()
  5015. return
  5016. }
  5017. ee.EncodeMapStart(len(v))
  5018. if e.h.Canonical {
  5019. v2 := make([]float64, len(v))
  5020. var i int
  5021. for k, _ := range v {
  5022. v2[i] = float64(k)
  5023. i++
  5024. }
  5025. sort.Sort(floatSlice(v2))
  5026. for _, k2 := range v2 {
  5027. if cr != nil {
  5028. cr.sendContainerState(containerMapKey)
  5029. }
  5030. ee.EncodeFloat32(float32(k2))
  5031. if cr != nil {
  5032. cr.sendContainerState(containerMapValue)
  5033. }
  5034. e.encode(v[float32(k2)])
  5035. }
  5036. } else {
  5037. for k2, v2 := range v {
  5038. if cr != nil {
  5039. cr.sendContainerState(containerMapKey)
  5040. }
  5041. ee.EncodeFloat32(k2)
  5042. if cr != nil {
  5043. cr.sendContainerState(containerMapValue)
  5044. }
  5045. e.encode(v2)
  5046. }
  5047. }
  5048. if cr != nil {
  5049. cr.sendContainerState(containerMapEnd)
  5050. }
  5051. }
  5052. func (f *encFnInfo) fastpathEncMapFloat32StringR(rv reflect.Value) {
  5053. fastpathTV.EncMapFloat32StringV(rv.Interface().(map[float32]string), fastpathCheckNilFalse, f.e)
  5054. }
  5055. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, checkNil bool, e *Encoder) {
  5056. ee := e.e
  5057. cr := e.cr
  5058. if checkNil && v == nil {
  5059. ee.EncodeNil()
  5060. return
  5061. }
  5062. ee.EncodeMapStart(len(v))
  5063. if e.h.Canonical {
  5064. v2 := make([]float64, len(v))
  5065. var i int
  5066. for k, _ := range v {
  5067. v2[i] = float64(k)
  5068. i++
  5069. }
  5070. sort.Sort(floatSlice(v2))
  5071. for _, k2 := range v2 {
  5072. if cr != nil {
  5073. cr.sendContainerState(containerMapKey)
  5074. }
  5075. ee.EncodeFloat32(float32(k2))
  5076. if cr != nil {
  5077. cr.sendContainerState(containerMapValue)
  5078. }
  5079. ee.EncodeString(c_UTF8, v[float32(k2)])
  5080. }
  5081. } else {
  5082. for k2, v2 := range v {
  5083. if cr != nil {
  5084. cr.sendContainerState(containerMapKey)
  5085. }
  5086. ee.EncodeFloat32(k2)
  5087. if cr != nil {
  5088. cr.sendContainerState(containerMapValue)
  5089. }
  5090. ee.EncodeString(c_UTF8, v2)
  5091. }
  5092. }
  5093. if cr != nil {
  5094. cr.sendContainerState(containerMapEnd)
  5095. }
  5096. }
  5097. func (f *encFnInfo) fastpathEncMapFloat32UintR(rv reflect.Value) {
  5098. fastpathTV.EncMapFloat32UintV(rv.Interface().(map[float32]uint), fastpathCheckNilFalse, f.e)
  5099. }
  5100. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, checkNil bool, e *Encoder) {
  5101. ee := e.e
  5102. cr := e.cr
  5103. if checkNil && v == nil {
  5104. ee.EncodeNil()
  5105. return
  5106. }
  5107. ee.EncodeMapStart(len(v))
  5108. if e.h.Canonical {
  5109. v2 := make([]float64, len(v))
  5110. var i int
  5111. for k, _ := range v {
  5112. v2[i] = float64(k)
  5113. i++
  5114. }
  5115. sort.Sort(floatSlice(v2))
  5116. for _, k2 := range v2 {
  5117. if cr != nil {
  5118. cr.sendContainerState(containerMapKey)
  5119. }
  5120. ee.EncodeFloat32(float32(k2))
  5121. if cr != nil {
  5122. cr.sendContainerState(containerMapValue)
  5123. }
  5124. ee.EncodeUint(uint64(v[float32(k2)]))
  5125. }
  5126. } else {
  5127. for k2, v2 := range v {
  5128. if cr != nil {
  5129. cr.sendContainerState(containerMapKey)
  5130. }
  5131. ee.EncodeFloat32(k2)
  5132. if cr != nil {
  5133. cr.sendContainerState(containerMapValue)
  5134. }
  5135. ee.EncodeUint(uint64(v2))
  5136. }
  5137. }
  5138. if cr != nil {
  5139. cr.sendContainerState(containerMapEnd)
  5140. }
  5141. }
  5142. func (f *encFnInfo) fastpathEncMapFloat32Uint8R(rv reflect.Value) {
  5143. fastpathTV.EncMapFloat32Uint8V(rv.Interface().(map[float32]uint8), fastpathCheckNilFalse, f.e)
  5144. }
  5145. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, checkNil bool, e *Encoder) {
  5146. ee := e.e
  5147. cr := e.cr
  5148. if checkNil && v == nil {
  5149. ee.EncodeNil()
  5150. return
  5151. }
  5152. ee.EncodeMapStart(len(v))
  5153. if e.h.Canonical {
  5154. v2 := make([]float64, len(v))
  5155. var i int
  5156. for k, _ := range v {
  5157. v2[i] = float64(k)
  5158. i++
  5159. }
  5160. sort.Sort(floatSlice(v2))
  5161. for _, k2 := range v2 {
  5162. if cr != nil {
  5163. cr.sendContainerState(containerMapKey)
  5164. }
  5165. ee.EncodeFloat32(float32(k2))
  5166. if cr != nil {
  5167. cr.sendContainerState(containerMapValue)
  5168. }
  5169. ee.EncodeUint(uint64(v[float32(k2)]))
  5170. }
  5171. } else {
  5172. for k2, v2 := range v {
  5173. if cr != nil {
  5174. cr.sendContainerState(containerMapKey)
  5175. }
  5176. ee.EncodeFloat32(k2)
  5177. if cr != nil {
  5178. cr.sendContainerState(containerMapValue)
  5179. }
  5180. ee.EncodeUint(uint64(v2))
  5181. }
  5182. }
  5183. if cr != nil {
  5184. cr.sendContainerState(containerMapEnd)
  5185. }
  5186. }
  5187. func (f *encFnInfo) fastpathEncMapFloat32Uint16R(rv reflect.Value) {
  5188. fastpathTV.EncMapFloat32Uint16V(rv.Interface().(map[float32]uint16), fastpathCheckNilFalse, f.e)
  5189. }
  5190. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, checkNil bool, e *Encoder) {
  5191. ee := e.e
  5192. cr := e.cr
  5193. if checkNil && v == nil {
  5194. ee.EncodeNil()
  5195. return
  5196. }
  5197. ee.EncodeMapStart(len(v))
  5198. if e.h.Canonical {
  5199. v2 := make([]float64, len(v))
  5200. var i int
  5201. for k, _ := range v {
  5202. v2[i] = float64(k)
  5203. i++
  5204. }
  5205. sort.Sort(floatSlice(v2))
  5206. for _, k2 := range v2 {
  5207. if cr != nil {
  5208. cr.sendContainerState(containerMapKey)
  5209. }
  5210. ee.EncodeFloat32(float32(k2))
  5211. if cr != nil {
  5212. cr.sendContainerState(containerMapValue)
  5213. }
  5214. ee.EncodeUint(uint64(v[float32(k2)]))
  5215. }
  5216. } else {
  5217. for k2, v2 := range v {
  5218. if cr != nil {
  5219. cr.sendContainerState(containerMapKey)
  5220. }
  5221. ee.EncodeFloat32(k2)
  5222. if cr != nil {
  5223. cr.sendContainerState(containerMapValue)
  5224. }
  5225. ee.EncodeUint(uint64(v2))
  5226. }
  5227. }
  5228. if cr != nil {
  5229. cr.sendContainerState(containerMapEnd)
  5230. }
  5231. }
  5232. func (f *encFnInfo) fastpathEncMapFloat32Uint32R(rv reflect.Value) {
  5233. fastpathTV.EncMapFloat32Uint32V(rv.Interface().(map[float32]uint32), fastpathCheckNilFalse, f.e)
  5234. }
  5235. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, checkNil bool, e *Encoder) {
  5236. ee := e.e
  5237. cr := e.cr
  5238. if checkNil && v == nil {
  5239. ee.EncodeNil()
  5240. return
  5241. }
  5242. ee.EncodeMapStart(len(v))
  5243. if e.h.Canonical {
  5244. v2 := make([]float64, len(v))
  5245. var i int
  5246. for k, _ := range v {
  5247. v2[i] = float64(k)
  5248. i++
  5249. }
  5250. sort.Sort(floatSlice(v2))
  5251. for _, k2 := range v2 {
  5252. if cr != nil {
  5253. cr.sendContainerState(containerMapKey)
  5254. }
  5255. ee.EncodeFloat32(float32(k2))
  5256. if cr != nil {
  5257. cr.sendContainerState(containerMapValue)
  5258. }
  5259. ee.EncodeUint(uint64(v[float32(k2)]))
  5260. }
  5261. } else {
  5262. for k2, v2 := range v {
  5263. if cr != nil {
  5264. cr.sendContainerState(containerMapKey)
  5265. }
  5266. ee.EncodeFloat32(k2)
  5267. if cr != nil {
  5268. cr.sendContainerState(containerMapValue)
  5269. }
  5270. ee.EncodeUint(uint64(v2))
  5271. }
  5272. }
  5273. if cr != nil {
  5274. cr.sendContainerState(containerMapEnd)
  5275. }
  5276. }
  5277. func (f *encFnInfo) fastpathEncMapFloat32Uint64R(rv reflect.Value) {
  5278. fastpathTV.EncMapFloat32Uint64V(rv.Interface().(map[float32]uint64), fastpathCheckNilFalse, f.e)
  5279. }
  5280. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, checkNil bool, e *Encoder) {
  5281. ee := e.e
  5282. cr := e.cr
  5283. if checkNil && v == nil {
  5284. ee.EncodeNil()
  5285. return
  5286. }
  5287. ee.EncodeMapStart(len(v))
  5288. if e.h.Canonical {
  5289. v2 := make([]float64, len(v))
  5290. var i int
  5291. for k, _ := range v {
  5292. v2[i] = float64(k)
  5293. i++
  5294. }
  5295. sort.Sort(floatSlice(v2))
  5296. for _, k2 := range v2 {
  5297. if cr != nil {
  5298. cr.sendContainerState(containerMapKey)
  5299. }
  5300. ee.EncodeFloat32(float32(k2))
  5301. if cr != nil {
  5302. cr.sendContainerState(containerMapValue)
  5303. }
  5304. ee.EncodeUint(uint64(v[float32(k2)]))
  5305. }
  5306. } else {
  5307. for k2, v2 := range v {
  5308. if cr != nil {
  5309. cr.sendContainerState(containerMapKey)
  5310. }
  5311. ee.EncodeFloat32(k2)
  5312. if cr != nil {
  5313. cr.sendContainerState(containerMapValue)
  5314. }
  5315. ee.EncodeUint(uint64(v2))
  5316. }
  5317. }
  5318. if cr != nil {
  5319. cr.sendContainerState(containerMapEnd)
  5320. }
  5321. }
  5322. func (f *encFnInfo) fastpathEncMapFloat32UintptrR(rv reflect.Value) {
  5323. fastpathTV.EncMapFloat32UintptrV(rv.Interface().(map[float32]uintptr), fastpathCheckNilFalse, f.e)
  5324. }
  5325. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, checkNil bool, e *Encoder) {
  5326. ee := e.e
  5327. cr := e.cr
  5328. if checkNil && v == nil {
  5329. ee.EncodeNil()
  5330. return
  5331. }
  5332. ee.EncodeMapStart(len(v))
  5333. if e.h.Canonical {
  5334. v2 := make([]float64, len(v))
  5335. var i int
  5336. for k, _ := range v {
  5337. v2[i] = float64(k)
  5338. i++
  5339. }
  5340. sort.Sort(floatSlice(v2))
  5341. for _, k2 := range v2 {
  5342. if cr != nil {
  5343. cr.sendContainerState(containerMapKey)
  5344. }
  5345. ee.EncodeFloat32(float32(k2))
  5346. if cr != nil {
  5347. cr.sendContainerState(containerMapValue)
  5348. }
  5349. e.encode(v[float32(k2)])
  5350. }
  5351. } else {
  5352. for k2, v2 := range v {
  5353. if cr != nil {
  5354. cr.sendContainerState(containerMapKey)
  5355. }
  5356. ee.EncodeFloat32(k2)
  5357. if cr != nil {
  5358. cr.sendContainerState(containerMapValue)
  5359. }
  5360. e.encode(v2)
  5361. }
  5362. }
  5363. if cr != nil {
  5364. cr.sendContainerState(containerMapEnd)
  5365. }
  5366. }
  5367. func (f *encFnInfo) fastpathEncMapFloat32IntR(rv reflect.Value) {
  5368. fastpathTV.EncMapFloat32IntV(rv.Interface().(map[float32]int), fastpathCheckNilFalse, f.e)
  5369. }
  5370. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, checkNil bool, e *Encoder) {
  5371. ee := e.e
  5372. cr := e.cr
  5373. if checkNil && v == nil {
  5374. ee.EncodeNil()
  5375. return
  5376. }
  5377. ee.EncodeMapStart(len(v))
  5378. if e.h.Canonical {
  5379. v2 := make([]float64, len(v))
  5380. var i int
  5381. for k, _ := range v {
  5382. v2[i] = float64(k)
  5383. i++
  5384. }
  5385. sort.Sort(floatSlice(v2))
  5386. for _, k2 := range v2 {
  5387. if cr != nil {
  5388. cr.sendContainerState(containerMapKey)
  5389. }
  5390. ee.EncodeFloat32(float32(k2))
  5391. if cr != nil {
  5392. cr.sendContainerState(containerMapValue)
  5393. }
  5394. ee.EncodeInt(int64(v[float32(k2)]))
  5395. }
  5396. } else {
  5397. for k2, v2 := range v {
  5398. if cr != nil {
  5399. cr.sendContainerState(containerMapKey)
  5400. }
  5401. ee.EncodeFloat32(k2)
  5402. if cr != nil {
  5403. cr.sendContainerState(containerMapValue)
  5404. }
  5405. ee.EncodeInt(int64(v2))
  5406. }
  5407. }
  5408. if cr != nil {
  5409. cr.sendContainerState(containerMapEnd)
  5410. }
  5411. }
  5412. func (f *encFnInfo) fastpathEncMapFloat32Int8R(rv reflect.Value) {
  5413. fastpathTV.EncMapFloat32Int8V(rv.Interface().(map[float32]int8), fastpathCheckNilFalse, f.e)
  5414. }
  5415. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, checkNil bool, e *Encoder) {
  5416. ee := e.e
  5417. cr := e.cr
  5418. if checkNil && v == nil {
  5419. ee.EncodeNil()
  5420. return
  5421. }
  5422. ee.EncodeMapStart(len(v))
  5423. if e.h.Canonical {
  5424. v2 := make([]float64, len(v))
  5425. var i int
  5426. for k, _ := range v {
  5427. v2[i] = float64(k)
  5428. i++
  5429. }
  5430. sort.Sort(floatSlice(v2))
  5431. for _, k2 := range v2 {
  5432. if cr != nil {
  5433. cr.sendContainerState(containerMapKey)
  5434. }
  5435. ee.EncodeFloat32(float32(k2))
  5436. if cr != nil {
  5437. cr.sendContainerState(containerMapValue)
  5438. }
  5439. ee.EncodeInt(int64(v[float32(k2)]))
  5440. }
  5441. } else {
  5442. for k2, v2 := range v {
  5443. if cr != nil {
  5444. cr.sendContainerState(containerMapKey)
  5445. }
  5446. ee.EncodeFloat32(k2)
  5447. if cr != nil {
  5448. cr.sendContainerState(containerMapValue)
  5449. }
  5450. ee.EncodeInt(int64(v2))
  5451. }
  5452. }
  5453. if cr != nil {
  5454. cr.sendContainerState(containerMapEnd)
  5455. }
  5456. }
  5457. func (f *encFnInfo) fastpathEncMapFloat32Int16R(rv reflect.Value) {
  5458. fastpathTV.EncMapFloat32Int16V(rv.Interface().(map[float32]int16), fastpathCheckNilFalse, f.e)
  5459. }
  5460. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, checkNil bool, e *Encoder) {
  5461. ee := e.e
  5462. cr := e.cr
  5463. if checkNil && v == nil {
  5464. ee.EncodeNil()
  5465. return
  5466. }
  5467. ee.EncodeMapStart(len(v))
  5468. if e.h.Canonical {
  5469. v2 := make([]float64, len(v))
  5470. var i int
  5471. for k, _ := range v {
  5472. v2[i] = float64(k)
  5473. i++
  5474. }
  5475. sort.Sort(floatSlice(v2))
  5476. for _, k2 := range v2 {
  5477. if cr != nil {
  5478. cr.sendContainerState(containerMapKey)
  5479. }
  5480. ee.EncodeFloat32(float32(k2))
  5481. if cr != nil {
  5482. cr.sendContainerState(containerMapValue)
  5483. }
  5484. ee.EncodeInt(int64(v[float32(k2)]))
  5485. }
  5486. } else {
  5487. for k2, v2 := range v {
  5488. if cr != nil {
  5489. cr.sendContainerState(containerMapKey)
  5490. }
  5491. ee.EncodeFloat32(k2)
  5492. if cr != nil {
  5493. cr.sendContainerState(containerMapValue)
  5494. }
  5495. ee.EncodeInt(int64(v2))
  5496. }
  5497. }
  5498. if cr != nil {
  5499. cr.sendContainerState(containerMapEnd)
  5500. }
  5501. }
  5502. func (f *encFnInfo) fastpathEncMapFloat32Int32R(rv reflect.Value) {
  5503. fastpathTV.EncMapFloat32Int32V(rv.Interface().(map[float32]int32), fastpathCheckNilFalse, f.e)
  5504. }
  5505. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, checkNil bool, e *Encoder) {
  5506. ee := e.e
  5507. cr := e.cr
  5508. if checkNil && v == nil {
  5509. ee.EncodeNil()
  5510. return
  5511. }
  5512. ee.EncodeMapStart(len(v))
  5513. if e.h.Canonical {
  5514. v2 := make([]float64, len(v))
  5515. var i int
  5516. for k, _ := range v {
  5517. v2[i] = float64(k)
  5518. i++
  5519. }
  5520. sort.Sort(floatSlice(v2))
  5521. for _, k2 := range v2 {
  5522. if cr != nil {
  5523. cr.sendContainerState(containerMapKey)
  5524. }
  5525. ee.EncodeFloat32(float32(k2))
  5526. if cr != nil {
  5527. cr.sendContainerState(containerMapValue)
  5528. }
  5529. ee.EncodeInt(int64(v[float32(k2)]))
  5530. }
  5531. } else {
  5532. for k2, v2 := range v {
  5533. if cr != nil {
  5534. cr.sendContainerState(containerMapKey)
  5535. }
  5536. ee.EncodeFloat32(k2)
  5537. if cr != nil {
  5538. cr.sendContainerState(containerMapValue)
  5539. }
  5540. ee.EncodeInt(int64(v2))
  5541. }
  5542. }
  5543. if cr != nil {
  5544. cr.sendContainerState(containerMapEnd)
  5545. }
  5546. }
  5547. func (f *encFnInfo) fastpathEncMapFloat32Int64R(rv reflect.Value) {
  5548. fastpathTV.EncMapFloat32Int64V(rv.Interface().(map[float32]int64), fastpathCheckNilFalse, f.e)
  5549. }
  5550. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, checkNil bool, e *Encoder) {
  5551. ee := e.e
  5552. cr := e.cr
  5553. if checkNil && v == nil {
  5554. ee.EncodeNil()
  5555. return
  5556. }
  5557. ee.EncodeMapStart(len(v))
  5558. if e.h.Canonical {
  5559. v2 := make([]float64, len(v))
  5560. var i int
  5561. for k, _ := range v {
  5562. v2[i] = float64(k)
  5563. i++
  5564. }
  5565. sort.Sort(floatSlice(v2))
  5566. for _, k2 := range v2 {
  5567. if cr != nil {
  5568. cr.sendContainerState(containerMapKey)
  5569. }
  5570. ee.EncodeFloat32(float32(k2))
  5571. if cr != nil {
  5572. cr.sendContainerState(containerMapValue)
  5573. }
  5574. ee.EncodeInt(int64(v[float32(k2)]))
  5575. }
  5576. } else {
  5577. for k2, v2 := range v {
  5578. if cr != nil {
  5579. cr.sendContainerState(containerMapKey)
  5580. }
  5581. ee.EncodeFloat32(k2)
  5582. if cr != nil {
  5583. cr.sendContainerState(containerMapValue)
  5584. }
  5585. ee.EncodeInt(int64(v2))
  5586. }
  5587. }
  5588. if cr != nil {
  5589. cr.sendContainerState(containerMapEnd)
  5590. }
  5591. }
  5592. func (f *encFnInfo) fastpathEncMapFloat32Float32R(rv reflect.Value) {
  5593. fastpathTV.EncMapFloat32Float32V(rv.Interface().(map[float32]float32), fastpathCheckNilFalse, f.e)
  5594. }
  5595. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, checkNil bool, e *Encoder) {
  5596. ee := e.e
  5597. cr := e.cr
  5598. if checkNil && v == nil {
  5599. ee.EncodeNil()
  5600. return
  5601. }
  5602. ee.EncodeMapStart(len(v))
  5603. if e.h.Canonical {
  5604. v2 := make([]float64, len(v))
  5605. var i int
  5606. for k, _ := range v {
  5607. v2[i] = float64(k)
  5608. i++
  5609. }
  5610. sort.Sort(floatSlice(v2))
  5611. for _, k2 := range v2 {
  5612. if cr != nil {
  5613. cr.sendContainerState(containerMapKey)
  5614. }
  5615. ee.EncodeFloat32(float32(k2))
  5616. if cr != nil {
  5617. cr.sendContainerState(containerMapValue)
  5618. }
  5619. ee.EncodeFloat32(v[float32(k2)])
  5620. }
  5621. } else {
  5622. for k2, v2 := range v {
  5623. if cr != nil {
  5624. cr.sendContainerState(containerMapKey)
  5625. }
  5626. ee.EncodeFloat32(k2)
  5627. if cr != nil {
  5628. cr.sendContainerState(containerMapValue)
  5629. }
  5630. ee.EncodeFloat32(v2)
  5631. }
  5632. }
  5633. if cr != nil {
  5634. cr.sendContainerState(containerMapEnd)
  5635. }
  5636. }
  5637. func (f *encFnInfo) fastpathEncMapFloat32Float64R(rv reflect.Value) {
  5638. fastpathTV.EncMapFloat32Float64V(rv.Interface().(map[float32]float64), fastpathCheckNilFalse, f.e)
  5639. }
  5640. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, checkNil bool, e *Encoder) {
  5641. ee := e.e
  5642. cr := e.cr
  5643. if checkNil && v == nil {
  5644. ee.EncodeNil()
  5645. return
  5646. }
  5647. ee.EncodeMapStart(len(v))
  5648. if e.h.Canonical {
  5649. v2 := make([]float64, len(v))
  5650. var i int
  5651. for k, _ := range v {
  5652. v2[i] = float64(k)
  5653. i++
  5654. }
  5655. sort.Sort(floatSlice(v2))
  5656. for _, k2 := range v2 {
  5657. if cr != nil {
  5658. cr.sendContainerState(containerMapKey)
  5659. }
  5660. ee.EncodeFloat32(float32(k2))
  5661. if cr != nil {
  5662. cr.sendContainerState(containerMapValue)
  5663. }
  5664. ee.EncodeFloat64(v[float32(k2)])
  5665. }
  5666. } else {
  5667. for k2, v2 := range v {
  5668. if cr != nil {
  5669. cr.sendContainerState(containerMapKey)
  5670. }
  5671. ee.EncodeFloat32(k2)
  5672. if cr != nil {
  5673. cr.sendContainerState(containerMapValue)
  5674. }
  5675. ee.EncodeFloat64(v2)
  5676. }
  5677. }
  5678. if cr != nil {
  5679. cr.sendContainerState(containerMapEnd)
  5680. }
  5681. }
  5682. func (f *encFnInfo) fastpathEncMapFloat32BoolR(rv reflect.Value) {
  5683. fastpathTV.EncMapFloat32BoolV(rv.Interface().(map[float32]bool), fastpathCheckNilFalse, f.e)
  5684. }
  5685. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, checkNil bool, e *Encoder) {
  5686. ee := e.e
  5687. cr := e.cr
  5688. if checkNil && v == nil {
  5689. ee.EncodeNil()
  5690. return
  5691. }
  5692. ee.EncodeMapStart(len(v))
  5693. if e.h.Canonical {
  5694. v2 := make([]float64, len(v))
  5695. var i int
  5696. for k, _ := range v {
  5697. v2[i] = float64(k)
  5698. i++
  5699. }
  5700. sort.Sort(floatSlice(v2))
  5701. for _, k2 := range v2 {
  5702. if cr != nil {
  5703. cr.sendContainerState(containerMapKey)
  5704. }
  5705. ee.EncodeFloat32(float32(k2))
  5706. if cr != nil {
  5707. cr.sendContainerState(containerMapValue)
  5708. }
  5709. ee.EncodeBool(v[float32(k2)])
  5710. }
  5711. } else {
  5712. for k2, v2 := range v {
  5713. if cr != nil {
  5714. cr.sendContainerState(containerMapKey)
  5715. }
  5716. ee.EncodeFloat32(k2)
  5717. if cr != nil {
  5718. cr.sendContainerState(containerMapValue)
  5719. }
  5720. ee.EncodeBool(v2)
  5721. }
  5722. }
  5723. if cr != nil {
  5724. cr.sendContainerState(containerMapEnd)
  5725. }
  5726. }
  5727. func (f *encFnInfo) fastpathEncMapFloat64IntfR(rv reflect.Value) {
  5728. fastpathTV.EncMapFloat64IntfV(rv.Interface().(map[float64]interface{}), fastpathCheckNilFalse, f.e)
  5729. }
  5730. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, checkNil bool, e *Encoder) {
  5731. ee := e.e
  5732. cr := e.cr
  5733. if checkNil && v == nil {
  5734. ee.EncodeNil()
  5735. return
  5736. }
  5737. ee.EncodeMapStart(len(v))
  5738. if e.h.Canonical {
  5739. v2 := make([]float64, len(v))
  5740. var i int
  5741. for k, _ := range v {
  5742. v2[i] = float64(k)
  5743. i++
  5744. }
  5745. sort.Sort(floatSlice(v2))
  5746. for _, k2 := range v2 {
  5747. if cr != nil {
  5748. cr.sendContainerState(containerMapKey)
  5749. }
  5750. ee.EncodeFloat64(float64(k2))
  5751. if cr != nil {
  5752. cr.sendContainerState(containerMapValue)
  5753. }
  5754. e.encode(v[float64(k2)])
  5755. }
  5756. } else {
  5757. for k2, v2 := range v {
  5758. if cr != nil {
  5759. cr.sendContainerState(containerMapKey)
  5760. }
  5761. ee.EncodeFloat64(k2)
  5762. if cr != nil {
  5763. cr.sendContainerState(containerMapValue)
  5764. }
  5765. e.encode(v2)
  5766. }
  5767. }
  5768. if cr != nil {
  5769. cr.sendContainerState(containerMapEnd)
  5770. }
  5771. }
  5772. func (f *encFnInfo) fastpathEncMapFloat64StringR(rv reflect.Value) {
  5773. fastpathTV.EncMapFloat64StringV(rv.Interface().(map[float64]string), fastpathCheckNilFalse, f.e)
  5774. }
  5775. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, checkNil bool, e *Encoder) {
  5776. ee := e.e
  5777. cr := e.cr
  5778. if checkNil && v == nil {
  5779. ee.EncodeNil()
  5780. return
  5781. }
  5782. ee.EncodeMapStart(len(v))
  5783. if e.h.Canonical {
  5784. v2 := make([]float64, len(v))
  5785. var i int
  5786. for k, _ := range v {
  5787. v2[i] = float64(k)
  5788. i++
  5789. }
  5790. sort.Sort(floatSlice(v2))
  5791. for _, k2 := range v2 {
  5792. if cr != nil {
  5793. cr.sendContainerState(containerMapKey)
  5794. }
  5795. ee.EncodeFloat64(float64(k2))
  5796. if cr != nil {
  5797. cr.sendContainerState(containerMapValue)
  5798. }
  5799. ee.EncodeString(c_UTF8, v[float64(k2)])
  5800. }
  5801. } else {
  5802. for k2, v2 := range v {
  5803. if cr != nil {
  5804. cr.sendContainerState(containerMapKey)
  5805. }
  5806. ee.EncodeFloat64(k2)
  5807. if cr != nil {
  5808. cr.sendContainerState(containerMapValue)
  5809. }
  5810. ee.EncodeString(c_UTF8, v2)
  5811. }
  5812. }
  5813. if cr != nil {
  5814. cr.sendContainerState(containerMapEnd)
  5815. }
  5816. }
  5817. func (f *encFnInfo) fastpathEncMapFloat64UintR(rv reflect.Value) {
  5818. fastpathTV.EncMapFloat64UintV(rv.Interface().(map[float64]uint), fastpathCheckNilFalse, f.e)
  5819. }
  5820. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, checkNil bool, e *Encoder) {
  5821. ee := e.e
  5822. cr := e.cr
  5823. if checkNil && v == nil {
  5824. ee.EncodeNil()
  5825. return
  5826. }
  5827. ee.EncodeMapStart(len(v))
  5828. if e.h.Canonical {
  5829. v2 := make([]float64, len(v))
  5830. var i int
  5831. for k, _ := range v {
  5832. v2[i] = float64(k)
  5833. i++
  5834. }
  5835. sort.Sort(floatSlice(v2))
  5836. for _, k2 := range v2 {
  5837. if cr != nil {
  5838. cr.sendContainerState(containerMapKey)
  5839. }
  5840. ee.EncodeFloat64(float64(k2))
  5841. if cr != nil {
  5842. cr.sendContainerState(containerMapValue)
  5843. }
  5844. ee.EncodeUint(uint64(v[float64(k2)]))
  5845. }
  5846. } else {
  5847. for k2, v2 := range v {
  5848. if cr != nil {
  5849. cr.sendContainerState(containerMapKey)
  5850. }
  5851. ee.EncodeFloat64(k2)
  5852. if cr != nil {
  5853. cr.sendContainerState(containerMapValue)
  5854. }
  5855. ee.EncodeUint(uint64(v2))
  5856. }
  5857. }
  5858. if cr != nil {
  5859. cr.sendContainerState(containerMapEnd)
  5860. }
  5861. }
  5862. func (f *encFnInfo) fastpathEncMapFloat64Uint8R(rv reflect.Value) {
  5863. fastpathTV.EncMapFloat64Uint8V(rv.Interface().(map[float64]uint8), fastpathCheckNilFalse, f.e)
  5864. }
  5865. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, checkNil bool, e *Encoder) {
  5866. ee := e.e
  5867. cr := e.cr
  5868. if checkNil && v == nil {
  5869. ee.EncodeNil()
  5870. return
  5871. }
  5872. ee.EncodeMapStart(len(v))
  5873. if e.h.Canonical {
  5874. v2 := make([]float64, len(v))
  5875. var i int
  5876. for k, _ := range v {
  5877. v2[i] = float64(k)
  5878. i++
  5879. }
  5880. sort.Sort(floatSlice(v2))
  5881. for _, k2 := range v2 {
  5882. if cr != nil {
  5883. cr.sendContainerState(containerMapKey)
  5884. }
  5885. ee.EncodeFloat64(float64(k2))
  5886. if cr != nil {
  5887. cr.sendContainerState(containerMapValue)
  5888. }
  5889. ee.EncodeUint(uint64(v[float64(k2)]))
  5890. }
  5891. } else {
  5892. for k2, v2 := range v {
  5893. if cr != nil {
  5894. cr.sendContainerState(containerMapKey)
  5895. }
  5896. ee.EncodeFloat64(k2)
  5897. if cr != nil {
  5898. cr.sendContainerState(containerMapValue)
  5899. }
  5900. ee.EncodeUint(uint64(v2))
  5901. }
  5902. }
  5903. if cr != nil {
  5904. cr.sendContainerState(containerMapEnd)
  5905. }
  5906. }
  5907. func (f *encFnInfo) fastpathEncMapFloat64Uint16R(rv reflect.Value) {
  5908. fastpathTV.EncMapFloat64Uint16V(rv.Interface().(map[float64]uint16), fastpathCheckNilFalse, f.e)
  5909. }
  5910. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, checkNil bool, e *Encoder) {
  5911. ee := e.e
  5912. cr := e.cr
  5913. if checkNil && v == nil {
  5914. ee.EncodeNil()
  5915. return
  5916. }
  5917. ee.EncodeMapStart(len(v))
  5918. if e.h.Canonical {
  5919. v2 := make([]float64, len(v))
  5920. var i int
  5921. for k, _ := range v {
  5922. v2[i] = float64(k)
  5923. i++
  5924. }
  5925. sort.Sort(floatSlice(v2))
  5926. for _, k2 := range v2 {
  5927. if cr != nil {
  5928. cr.sendContainerState(containerMapKey)
  5929. }
  5930. ee.EncodeFloat64(float64(k2))
  5931. if cr != nil {
  5932. cr.sendContainerState(containerMapValue)
  5933. }
  5934. ee.EncodeUint(uint64(v[float64(k2)]))
  5935. }
  5936. } else {
  5937. for k2, v2 := range v {
  5938. if cr != nil {
  5939. cr.sendContainerState(containerMapKey)
  5940. }
  5941. ee.EncodeFloat64(k2)
  5942. if cr != nil {
  5943. cr.sendContainerState(containerMapValue)
  5944. }
  5945. ee.EncodeUint(uint64(v2))
  5946. }
  5947. }
  5948. if cr != nil {
  5949. cr.sendContainerState(containerMapEnd)
  5950. }
  5951. }
  5952. func (f *encFnInfo) fastpathEncMapFloat64Uint32R(rv reflect.Value) {
  5953. fastpathTV.EncMapFloat64Uint32V(rv.Interface().(map[float64]uint32), fastpathCheckNilFalse, f.e)
  5954. }
  5955. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, checkNil bool, e *Encoder) {
  5956. ee := e.e
  5957. cr := e.cr
  5958. if checkNil && v == nil {
  5959. ee.EncodeNil()
  5960. return
  5961. }
  5962. ee.EncodeMapStart(len(v))
  5963. if e.h.Canonical {
  5964. v2 := make([]float64, len(v))
  5965. var i int
  5966. for k, _ := range v {
  5967. v2[i] = float64(k)
  5968. i++
  5969. }
  5970. sort.Sort(floatSlice(v2))
  5971. for _, k2 := range v2 {
  5972. if cr != nil {
  5973. cr.sendContainerState(containerMapKey)
  5974. }
  5975. ee.EncodeFloat64(float64(k2))
  5976. if cr != nil {
  5977. cr.sendContainerState(containerMapValue)
  5978. }
  5979. ee.EncodeUint(uint64(v[float64(k2)]))
  5980. }
  5981. } else {
  5982. for k2, v2 := range v {
  5983. if cr != nil {
  5984. cr.sendContainerState(containerMapKey)
  5985. }
  5986. ee.EncodeFloat64(k2)
  5987. if cr != nil {
  5988. cr.sendContainerState(containerMapValue)
  5989. }
  5990. ee.EncodeUint(uint64(v2))
  5991. }
  5992. }
  5993. if cr != nil {
  5994. cr.sendContainerState(containerMapEnd)
  5995. }
  5996. }
  5997. func (f *encFnInfo) fastpathEncMapFloat64Uint64R(rv reflect.Value) {
  5998. fastpathTV.EncMapFloat64Uint64V(rv.Interface().(map[float64]uint64), fastpathCheckNilFalse, f.e)
  5999. }
  6000. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, checkNil bool, e *Encoder) {
  6001. ee := e.e
  6002. cr := e.cr
  6003. if checkNil && v == nil {
  6004. ee.EncodeNil()
  6005. return
  6006. }
  6007. ee.EncodeMapStart(len(v))
  6008. if e.h.Canonical {
  6009. v2 := make([]float64, len(v))
  6010. var i int
  6011. for k, _ := range v {
  6012. v2[i] = float64(k)
  6013. i++
  6014. }
  6015. sort.Sort(floatSlice(v2))
  6016. for _, k2 := range v2 {
  6017. if cr != nil {
  6018. cr.sendContainerState(containerMapKey)
  6019. }
  6020. ee.EncodeFloat64(float64(k2))
  6021. if cr != nil {
  6022. cr.sendContainerState(containerMapValue)
  6023. }
  6024. ee.EncodeUint(uint64(v[float64(k2)]))
  6025. }
  6026. } else {
  6027. for k2, v2 := range v {
  6028. if cr != nil {
  6029. cr.sendContainerState(containerMapKey)
  6030. }
  6031. ee.EncodeFloat64(k2)
  6032. if cr != nil {
  6033. cr.sendContainerState(containerMapValue)
  6034. }
  6035. ee.EncodeUint(uint64(v2))
  6036. }
  6037. }
  6038. if cr != nil {
  6039. cr.sendContainerState(containerMapEnd)
  6040. }
  6041. }
  6042. func (f *encFnInfo) fastpathEncMapFloat64UintptrR(rv reflect.Value) {
  6043. fastpathTV.EncMapFloat64UintptrV(rv.Interface().(map[float64]uintptr), fastpathCheckNilFalse, f.e)
  6044. }
  6045. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, checkNil bool, e *Encoder) {
  6046. ee := e.e
  6047. cr := e.cr
  6048. if checkNil && v == nil {
  6049. ee.EncodeNil()
  6050. return
  6051. }
  6052. ee.EncodeMapStart(len(v))
  6053. if e.h.Canonical {
  6054. v2 := make([]float64, len(v))
  6055. var i int
  6056. for k, _ := range v {
  6057. v2[i] = float64(k)
  6058. i++
  6059. }
  6060. sort.Sort(floatSlice(v2))
  6061. for _, k2 := range v2 {
  6062. if cr != nil {
  6063. cr.sendContainerState(containerMapKey)
  6064. }
  6065. ee.EncodeFloat64(float64(k2))
  6066. if cr != nil {
  6067. cr.sendContainerState(containerMapValue)
  6068. }
  6069. e.encode(v[float64(k2)])
  6070. }
  6071. } else {
  6072. for k2, v2 := range v {
  6073. if cr != nil {
  6074. cr.sendContainerState(containerMapKey)
  6075. }
  6076. ee.EncodeFloat64(k2)
  6077. if cr != nil {
  6078. cr.sendContainerState(containerMapValue)
  6079. }
  6080. e.encode(v2)
  6081. }
  6082. }
  6083. if cr != nil {
  6084. cr.sendContainerState(containerMapEnd)
  6085. }
  6086. }
  6087. func (f *encFnInfo) fastpathEncMapFloat64IntR(rv reflect.Value) {
  6088. fastpathTV.EncMapFloat64IntV(rv.Interface().(map[float64]int), fastpathCheckNilFalse, f.e)
  6089. }
  6090. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, checkNil bool, e *Encoder) {
  6091. ee := e.e
  6092. cr := e.cr
  6093. if checkNil && v == nil {
  6094. ee.EncodeNil()
  6095. return
  6096. }
  6097. ee.EncodeMapStart(len(v))
  6098. if e.h.Canonical {
  6099. v2 := make([]float64, len(v))
  6100. var i int
  6101. for k, _ := range v {
  6102. v2[i] = float64(k)
  6103. i++
  6104. }
  6105. sort.Sort(floatSlice(v2))
  6106. for _, k2 := range v2 {
  6107. if cr != nil {
  6108. cr.sendContainerState(containerMapKey)
  6109. }
  6110. ee.EncodeFloat64(float64(k2))
  6111. if cr != nil {
  6112. cr.sendContainerState(containerMapValue)
  6113. }
  6114. ee.EncodeInt(int64(v[float64(k2)]))
  6115. }
  6116. } else {
  6117. for k2, v2 := range v {
  6118. if cr != nil {
  6119. cr.sendContainerState(containerMapKey)
  6120. }
  6121. ee.EncodeFloat64(k2)
  6122. if cr != nil {
  6123. cr.sendContainerState(containerMapValue)
  6124. }
  6125. ee.EncodeInt(int64(v2))
  6126. }
  6127. }
  6128. if cr != nil {
  6129. cr.sendContainerState(containerMapEnd)
  6130. }
  6131. }
  6132. func (f *encFnInfo) fastpathEncMapFloat64Int8R(rv reflect.Value) {
  6133. fastpathTV.EncMapFloat64Int8V(rv.Interface().(map[float64]int8), fastpathCheckNilFalse, f.e)
  6134. }
  6135. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, checkNil bool, e *Encoder) {
  6136. ee := e.e
  6137. cr := e.cr
  6138. if checkNil && v == nil {
  6139. ee.EncodeNil()
  6140. return
  6141. }
  6142. ee.EncodeMapStart(len(v))
  6143. if e.h.Canonical {
  6144. v2 := make([]float64, len(v))
  6145. var i int
  6146. for k, _ := range v {
  6147. v2[i] = float64(k)
  6148. i++
  6149. }
  6150. sort.Sort(floatSlice(v2))
  6151. for _, k2 := range v2 {
  6152. if cr != nil {
  6153. cr.sendContainerState(containerMapKey)
  6154. }
  6155. ee.EncodeFloat64(float64(k2))
  6156. if cr != nil {
  6157. cr.sendContainerState(containerMapValue)
  6158. }
  6159. ee.EncodeInt(int64(v[float64(k2)]))
  6160. }
  6161. } else {
  6162. for k2, v2 := range v {
  6163. if cr != nil {
  6164. cr.sendContainerState(containerMapKey)
  6165. }
  6166. ee.EncodeFloat64(k2)
  6167. if cr != nil {
  6168. cr.sendContainerState(containerMapValue)
  6169. }
  6170. ee.EncodeInt(int64(v2))
  6171. }
  6172. }
  6173. if cr != nil {
  6174. cr.sendContainerState(containerMapEnd)
  6175. }
  6176. }
  6177. func (f *encFnInfo) fastpathEncMapFloat64Int16R(rv reflect.Value) {
  6178. fastpathTV.EncMapFloat64Int16V(rv.Interface().(map[float64]int16), fastpathCheckNilFalse, f.e)
  6179. }
  6180. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, checkNil bool, e *Encoder) {
  6181. ee := e.e
  6182. cr := e.cr
  6183. if checkNil && v == nil {
  6184. ee.EncodeNil()
  6185. return
  6186. }
  6187. ee.EncodeMapStart(len(v))
  6188. if e.h.Canonical {
  6189. v2 := make([]float64, len(v))
  6190. var i int
  6191. for k, _ := range v {
  6192. v2[i] = float64(k)
  6193. i++
  6194. }
  6195. sort.Sort(floatSlice(v2))
  6196. for _, k2 := range v2 {
  6197. if cr != nil {
  6198. cr.sendContainerState(containerMapKey)
  6199. }
  6200. ee.EncodeFloat64(float64(k2))
  6201. if cr != nil {
  6202. cr.sendContainerState(containerMapValue)
  6203. }
  6204. ee.EncodeInt(int64(v[float64(k2)]))
  6205. }
  6206. } else {
  6207. for k2, v2 := range v {
  6208. if cr != nil {
  6209. cr.sendContainerState(containerMapKey)
  6210. }
  6211. ee.EncodeFloat64(k2)
  6212. if cr != nil {
  6213. cr.sendContainerState(containerMapValue)
  6214. }
  6215. ee.EncodeInt(int64(v2))
  6216. }
  6217. }
  6218. if cr != nil {
  6219. cr.sendContainerState(containerMapEnd)
  6220. }
  6221. }
  6222. func (f *encFnInfo) fastpathEncMapFloat64Int32R(rv reflect.Value) {
  6223. fastpathTV.EncMapFloat64Int32V(rv.Interface().(map[float64]int32), fastpathCheckNilFalse, f.e)
  6224. }
  6225. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, checkNil bool, e *Encoder) {
  6226. ee := e.e
  6227. cr := e.cr
  6228. if checkNil && v == nil {
  6229. ee.EncodeNil()
  6230. return
  6231. }
  6232. ee.EncodeMapStart(len(v))
  6233. if e.h.Canonical {
  6234. v2 := make([]float64, len(v))
  6235. var i int
  6236. for k, _ := range v {
  6237. v2[i] = float64(k)
  6238. i++
  6239. }
  6240. sort.Sort(floatSlice(v2))
  6241. for _, k2 := range v2 {
  6242. if cr != nil {
  6243. cr.sendContainerState(containerMapKey)
  6244. }
  6245. ee.EncodeFloat64(float64(k2))
  6246. if cr != nil {
  6247. cr.sendContainerState(containerMapValue)
  6248. }
  6249. ee.EncodeInt(int64(v[float64(k2)]))
  6250. }
  6251. } else {
  6252. for k2, v2 := range v {
  6253. if cr != nil {
  6254. cr.sendContainerState(containerMapKey)
  6255. }
  6256. ee.EncodeFloat64(k2)
  6257. if cr != nil {
  6258. cr.sendContainerState(containerMapValue)
  6259. }
  6260. ee.EncodeInt(int64(v2))
  6261. }
  6262. }
  6263. if cr != nil {
  6264. cr.sendContainerState(containerMapEnd)
  6265. }
  6266. }
  6267. func (f *encFnInfo) fastpathEncMapFloat64Int64R(rv reflect.Value) {
  6268. fastpathTV.EncMapFloat64Int64V(rv.Interface().(map[float64]int64), fastpathCheckNilFalse, f.e)
  6269. }
  6270. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, checkNil bool, e *Encoder) {
  6271. ee := e.e
  6272. cr := e.cr
  6273. if checkNil && v == nil {
  6274. ee.EncodeNil()
  6275. return
  6276. }
  6277. ee.EncodeMapStart(len(v))
  6278. if e.h.Canonical {
  6279. v2 := make([]float64, len(v))
  6280. var i int
  6281. for k, _ := range v {
  6282. v2[i] = float64(k)
  6283. i++
  6284. }
  6285. sort.Sort(floatSlice(v2))
  6286. for _, k2 := range v2 {
  6287. if cr != nil {
  6288. cr.sendContainerState(containerMapKey)
  6289. }
  6290. ee.EncodeFloat64(float64(k2))
  6291. if cr != nil {
  6292. cr.sendContainerState(containerMapValue)
  6293. }
  6294. ee.EncodeInt(int64(v[float64(k2)]))
  6295. }
  6296. } else {
  6297. for k2, v2 := range v {
  6298. if cr != nil {
  6299. cr.sendContainerState(containerMapKey)
  6300. }
  6301. ee.EncodeFloat64(k2)
  6302. if cr != nil {
  6303. cr.sendContainerState(containerMapValue)
  6304. }
  6305. ee.EncodeInt(int64(v2))
  6306. }
  6307. }
  6308. if cr != nil {
  6309. cr.sendContainerState(containerMapEnd)
  6310. }
  6311. }
  6312. func (f *encFnInfo) fastpathEncMapFloat64Float32R(rv reflect.Value) {
  6313. fastpathTV.EncMapFloat64Float32V(rv.Interface().(map[float64]float32), fastpathCheckNilFalse, f.e)
  6314. }
  6315. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, checkNil bool, e *Encoder) {
  6316. ee := e.e
  6317. cr := e.cr
  6318. if checkNil && v == nil {
  6319. ee.EncodeNil()
  6320. return
  6321. }
  6322. ee.EncodeMapStart(len(v))
  6323. if e.h.Canonical {
  6324. v2 := make([]float64, len(v))
  6325. var i int
  6326. for k, _ := range v {
  6327. v2[i] = float64(k)
  6328. i++
  6329. }
  6330. sort.Sort(floatSlice(v2))
  6331. for _, k2 := range v2 {
  6332. if cr != nil {
  6333. cr.sendContainerState(containerMapKey)
  6334. }
  6335. ee.EncodeFloat64(float64(k2))
  6336. if cr != nil {
  6337. cr.sendContainerState(containerMapValue)
  6338. }
  6339. ee.EncodeFloat32(v[float64(k2)])
  6340. }
  6341. } else {
  6342. for k2, v2 := range v {
  6343. if cr != nil {
  6344. cr.sendContainerState(containerMapKey)
  6345. }
  6346. ee.EncodeFloat64(k2)
  6347. if cr != nil {
  6348. cr.sendContainerState(containerMapValue)
  6349. }
  6350. ee.EncodeFloat32(v2)
  6351. }
  6352. }
  6353. if cr != nil {
  6354. cr.sendContainerState(containerMapEnd)
  6355. }
  6356. }
  6357. func (f *encFnInfo) fastpathEncMapFloat64Float64R(rv reflect.Value) {
  6358. fastpathTV.EncMapFloat64Float64V(rv.Interface().(map[float64]float64), fastpathCheckNilFalse, f.e)
  6359. }
  6360. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, checkNil bool, e *Encoder) {
  6361. ee := e.e
  6362. cr := e.cr
  6363. if checkNil && v == nil {
  6364. ee.EncodeNil()
  6365. return
  6366. }
  6367. ee.EncodeMapStart(len(v))
  6368. if e.h.Canonical {
  6369. v2 := make([]float64, len(v))
  6370. var i int
  6371. for k, _ := range v {
  6372. v2[i] = float64(k)
  6373. i++
  6374. }
  6375. sort.Sort(floatSlice(v2))
  6376. for _, k2 := range v2 {
  6377. if cr != nil {
  6378. cr.sendContainerState(containerMapKey)
  6379. }
  6380. ee.EncodeFloat64(float64(k2))
  6381. if cr != nil {
  6382. cr.sendContainerState(containerMapValue)
  6383. }
  6384. ee.EncodeFloat64(v[float64(k2)])
  6385. }
  6386. } else {
  6387. for k2, v2 := range v {
  6388. if cr != nil {
  6389. cr.sendContainerState(containerMapKey)
  6390. }
  6391. ee.EncodeFloat64(k2)
  6392. if cr != nil {
  6393. cr.sendContainerState(containerMapValue)
  6394. }
  6395. ee.EncodeFloat64(v2)
  6396. }
  6397. }
  6398. if cr != nil {
  6399. cr.sendContainerState(containerMapEnd)
  6400. }
  6401. }
  6402. func (f *encFnInfo) fastpathEncMapFloat64BoolR(rv reflect.Value) {
  6403. fastpathTV.EncMapFloat64BoolV(rv.Interface().(map[float64]bool), fastpathCheckNilFalse, f.e)
  6404. }
  6405. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, checkNil bool, e *Encoder) {
  6406. ee := e.e
  6407. cr := e.cr
  6408. if checkNil && v == nil {
  6409. ee.EncodeNil()
  6410. return
  6411. }
  6412. ee.EncodeMapStart(len(v))
  6413. if e.h.Canonical {
  6414. v2 := make([]float64, len(v))
  6415. var i int
  6416. for k, _ := range v {
  6417. v2[i] = float64(k)
  6418. i++
  6419. }
  6420. sort.Sort(floatSlice(v2))
  6421. for _, k2 := range v2 {
  6422. if cr != nil {
  6423. cr.sendContainerState(containerMapKey)
  6424. }
  6425. ee.EncodeFloat64(float64(k2))
  6426. if cr != nil {
  6427. cr.sendContainerState(containerMapValue)
  6428. }
  6429. ee.EncodeBool(v[float64(k2)])
  6430. }
  6431. } else {
  6432. for k2, v2 := range v {
  6433. if cr != nil {
  6434. cr.sendContainerState(containerMapKey)
  6435. }
  6436. ee.EncodeFloat64(k2)
  6437. if cr != nil {
  6438. cr.sendContainerState(containerMapValue)
  6439. }
  6440. ee.EncodeBool(v2)
  6441. }
  6442. }
  6443. if cr != nil {
  6444. cr.sendContainerState(containerMapEnd)
  6445. }
  6446. }
  6447. func (f *encFnInfo) fastpathEncMapUintIntfR(rv reflect.Value) {
  6448. fastpathTV.EncMapUintIntfV(rv.Interface().(map[uint]interface{}), fastpathCheckNilFalse, f.e)
  6449. }
  6450. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, checkNil bool, e *Encoder) {
  6451. ee := e.e
  6452. cr := e.cr
  6453. if checkNil && v == nil {
  6454. ee.EncodeNil()
  6455. return
  6456. }
  6457. ee.EncodeMapStart(len(v))
  6458. if e.h.Canonical {
  6459. v2 := make([]uint64, len(v))
  6460. var i int
  6461. for k, _ := range v {
  6462. v2[i] = uint64(k)
  6463. i++
  6464. }
  6465. sort.Sort(uintSlice(v2))
  6466. for _, k2 := range v2 {
  6467. if cr != nil {
  6468. cr.sendContainerState(containerMapKey)
  6469. }
  6470. ee.EncodeUint(uint64(uint(k2)))
  6471. if cr != nil {
  6472. cr.sendContainerState(containerMapValue)
  6473. }
  6474. e.encode(v[uint(k2)])
  6475. }
  6476. } else {
  6477. for k2, v2 := range v {
  6478. if cr != nil {
  6479. cr.sendContainerState(containerMapKey)
  6480. }
  6481. ee.EncodeUint(uint64(k2))
  6482. if cr != nil {
  6483. cr.sendContainerState(containerMapValue)
  6484. }
  6485. e.encode(v2)
  6486. }
  6487. }
  6488. if cr != nil {
  6489. cr.sendContainerState(containerMapEnd)
  6490. }
  6491. }
  6492. func (f *encFnInfo) fastpathEncMapUintStringR(rv reflect.Value) {
  6493. fastpathTV.EncMapUintStringV(rv.Interface().(map[uint]string), fastpathCheckNilFalse, f.e)
  6494. }
  6495. func (_ fastpathT) EncMapUintStringV(v map[uint]string, checkNil bool, e *Encoder) {
  6496. ee := e.e
  6497. cr := e.cr
  6498. if checkNil && v == nil {
  6499. ee.EncodeNil()
  6500. return
  6501. }
  6502. ee.EncodeMapStart(len(v))
  6503. if e.h.Canonical {
  6504. v2 := make([]uint64, len(v))
  6505. var i int
  6506. for k, _ := range v {
  6507. v2[i] = uint64(k)
  6508. i++
  6509. }
  6510. sort.Sort(uintSlice(v2))
  6511. for _, k2 := range v2 {
  6512. if cr != nil {
  6513. cr.sendContainerState(containerMapKey)
  6514. }
  6515. ee.EncodeUint(uint64(uint(k2)))
  6516. if cr != nil {
  6517. cr.sendContainerState(containerMapValue)
  6518. }
  6519. ee.EncodeString(c_UTF8, v[uint(k2)])
  6520. }
  6521. } else {
  6522. for k2, v2 := range v {
  6523. if cr != nil {
  6524. cr.sendContainerState(containerMapKey)
  6525. }
  6526. ee.EncodeUint(uint64(k2))
  6527. if cr != nil {
  6528. cr.sendContainerState(containerMapValue)
  6529. }
  6530. ee.EncodeString(c_UTF8, v2)
  6531. }
  6532. }
  6533. if cr != nil {
  6534. cr.sendContainerState(containerMapEnd)
  6535. }
  6536. }
  6537. func (f *encFnInfo) fastpathEncMapUintUintR(rv reflect.Value) {
  6538. fastpathTV.EncMapUintUintV(rv.Interface().(map[uint]uint), fastpathCheckNilFalse, f.e)
  6539. }
  6540. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, checkNil bool, e *Encoder) {
  6541. ee := e.e
  6542. cr := e.cr
  6543. if checkNil && v == nil {
  6544. ee.EncodeNil()
  6545. return
  6546. }
  6547. ee.EncodeMapStart(len(v))
  6548. if e.h.Canonical {
  6549. v2 := make([]uint64, len(v))
  6550. var i int
  6551. for k, _ := range v {
  6552. v2[i] = uint64(k)
  6553. i++
  6554. }
  6555. sort.Sort(uintSlice(v2))
  6556. for _, k2 := range v2 {
  6557. if cr != nil {
  6558. cr.sendContainerState(containerMapKey)
  6559. }
  6560. ee.EncodeUint(uint64(uint(k2)))
  6561. if cr != nil {
  6562. cr.sendContainerState(containerMapValue)
  6563. }
  6564. ee.EncodeUint(uint64(v[uint(k2)]))
  6565. }
  6566. } else {
  6567. for k2, v2 := range v {
  6568. if cr != nil {
  6569. cr.sendContainerState(containerMapKey)
  6570. }
  6571. ee.EncodeUint(uint64(k2))
  6572. if cr != nil {
  6573. cr.sendContainerState(containerMapValue)
  6574. }
  6575. ee.EncodeUint(uint64(v2))
  6576. }
  6577. }
  6578. if cr != nil {
  6579. cr.sendContainerState(containerMapEnd)
  6580. }
  6581. }
  6582. func (f *encFnInfo) fastpathEncMapUintUint8R(rv reflect.Value) {
  6583. fastpathTV.EncMapUintUint8V(rv.Interface().(map[uint]uint8), fastpathCheckNilFalse, f.e)
  6584. }
  6585. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, checkNil bool, e *Encoder) {
  6586. ee := e.e
  6587. cr := e.cr
  6588. if checkNil && v == nil {
  6589. ee.EncodeNil()
  6590. return
  6591. }
  6592. ee.EncodeMapStart(len(v))
  6593. if e.h.Canonical {
  6594. v2 := make([]uint64, len(v))
  6595. var i int
  6596. for k, _ := range v {
  6597. v2[i] = uint64(k)
  6598. i++
  6599. }
  6600. sort.Sort(uintSlice(v2))
  6601. for _, k2 := range v2 {
  6602. if cr != nil {
  6603. cr.sendContainerState(containerMapKey)
  6604. }
  6605. ee.EncodeUint(uint64(uint(k2)))
  6606. if cr != nil {
  6607. cr.sendContainerState(containerMapValue)
  6608. }
  6609. ee.EncodeUint(uint64(v[uint(k2)]))
  6610. }
  6611. } else {
  6612. for k2, v2 := range v {
  6613. if cr != nil {
  6614. cr.sendContainerState(containerMapKey)
  6615. }
  6616. ee.EncodeUint(uint64(k2))
  6617. if cr != nil {
  6618. cr.sendContainerState(containerMapValue)
  6619. }
  6620. ee.EncodeUint(uint64(v2))
  6621. }
  6622. }
  6623. if cr != nil {
  6624. cr.sendContainerState(containerMapEnd)
  6625. }
  6626. }
  6627. func (f *encFnInfo) fastpathEncMapUintUint16R(rv reflect.Value) {
  6628. fastpathTV.EncMapUintUint16V(rv.Interface().(map[uint]uint16), fastpathCheckNilFalse, f.e)
  6629. }
  6630. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, checkNil bool, e *Encoder) {
  6631. ee := e.e
  6632. cr := e.cr
  6633. if checkNil && v == nil {
  6634. ee.EncodeNil()
  6635. return
  6636. }
  6637. ee.EncodeMapStart(len(v))
  6638. if e.h.Canonical {
  6639. v2 := make([]uint64, len(v))
  6640. var i int
  6641. for k, _ := range v {
  6642. v2[i] = uint64(k)
  6643. i++
  6644. }
  6645. sort.Sort(uintSlice(v2))
  6646. for _, k2 := range v2 {
  6647. if cr != nil {
  6648. cr.sendContainerState(containerMapKey)
  6649. }
  6650. ee.EncodeUint(uint64(uint(k2)))
  6651. if cr != nil {
  6652. cr.sendContainerState(containerMapValue)
  6653. }
  6654. ee.EncodeUint(uint64(v[uint(k2)]))
  6655. }
  6656. } else {
  6657. for k2, v2 := range v {
  6658. if cr != nil {
  6659. cr.sendContainerState(containerMapKey)
  6660. }
  6661. ee.EncodeUint(uint64(k2))
  6662. if cr != nil {
  6663. cr.sendContainerState(containerMapValue)
  6664. }
  6665. ee.EncodeUint(uint64(v2))
  6666. }
  6667. }
  6668. if cr != nil {
  6669. cr.sendContainerState(containerMapEnd)
  6670. }
  6671. }
  6672. func (f *encFnInfo) fastpathEncMapUintUint32R(rv reflect.Value) {
  6673. fastpathTV.EncMapUintUint32V(rv.Interface().(map[uint]uint32), fastpathCheckNilFalse, f.e)
  6674. }
  6675. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, checkNil bool, e *Encoder) {
  6676. ee := e.e
  6677. cr := e.cr
  6678. if checkNil && v == nil {
  6679. ee.EncodeNil()
  6680. return
  6681. }
  6682. ee.EncodeMapStart(len(v))
  6683. if e.h.Canonical {
  6684. v2 := make([]uint64, len(v))
  6685. var i int
  6686. for k, _ := range v {
  6687. v2[i] = uint64(k)
  6688. i++
  6689. }
  6690. sort.Sort(uintSlice(v2))
  6691. for _, k2 := range v2 {
  6692. if cr != nil {
  6693. cr.sendContainerState(containerMapKey)
  6694. }
  6695. ee.EncodeUint(uint64(uint(k2)))
  6696. if cr != nil {
  6697. cr.sendContainerState(containerMapValue)
  6698. }
  6699. ee.EncodeUint(uint64(v[uint(k2)]))
  6700. }
  6701. } else {
  6702. for k2, v2 := range v {
  6703. if cr != nil {
  6704. cr.sendContainerState(containerMapKey)
  6705. }
  6706. ee.EncodeUint(uint64(k2))
  6707. if cr != nil {
  6708. cr.sendContainerState(containerMapValue)
  6709. }
  6710. ee.EncodeUint(uint64(v2))
  6711. }
  6712. }
  6713. if cr != nil {
  6714. cr.sendContainerState(containerMapEnd)
  6715. }
  6716. }
  6717. func (f *encFnInfo) fastpathEncMapUintUint64R(rv reflect.Value) {
  6718. fastpathTV.EncMapUintUint64V(rv.Interface().(map[uint]uint64), fastpathCheckNilFalse, f.e)
  6719. }
  6720. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, checkNil bool, e *Encoder) {
  6721. ee := e.e
  6722. cr := e.cr
  6723. if checkNil && v == nil {
  6724. ee.EncodeNil()
  6725. return
  6726. }
  6727. ee.EncodeMapStart(len(v))
  6728. if e.h.Canonical {
  6729. v2 := make([]uint64, len(v))
  6730. var i int
  6731. for k, _ := range v {
  6732. v2[i] = uint64(k)
  6733. i++
  6734. }
  6735. sort.Sort(uintSlice(v2))
  6736. for _, k2 := range v2 {
  6737. if cr != nil {
  6738. cr.sendContainerState(containerMapKey)
  6739. }
  6740. ee.EncodeUint(uint64(uint(k2)))
  6741. if cr != nil {
  6742. cr.sendContainerState(containerMapValue)
  6743. }
  6744. ee.EncodeUint(uint64(v[uint(k2)]))
  6745. }
  6746. } else {
  6747. for k2, v2 := range v {
  6748. if cr != nil {
  6749. cr.sendContainerState(containerMapKey)
  6750. }
  6751. ee.EncodeUint(uint64(k2))
  6752. if cr != nil {
  6753. cr.sendContainerState(containerMapValue)
  6754. }
  6755. ee.EncodeUint(uint64(v2))
  6756. }
  6757. }
  6758. if cr != nil {
  6759. cr.sendContainerState(containerMapEnd)
  6760. }
  6761. }
  6762. func (f *encFnInfo) fastpathEncMapUintUintptrR(rv reflect.Value) {
  6763. fastpathTV.EncMapUintUintptrV(rv.Interface().(map[uint]uintptr), fastpathCheckNilFalse, f.e)
  6764. }
  6765. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, checkNil bool, e *Encoder) {
  6766. ee := e.e
  6767. cr := e.cr
  6768. if checkNil && v == nil {
  6769. ee.EncodeNil()
  6770. return
  6771. }
  6772. ee.EncodeMapStart(len(v))
  6773. if e.h.Canonical {
  6774. v2 := make([]uint64, len(v))
  6775. var i int
  6776. for k, _ := range v {
  6777. v2[i] = uint64(k)
  6778. i++
  6779. }
  6780. sort.Sort(uintSlice(v2))
  6781. for _, k2 := range v2 {
  6782. if cr != nil {
  6783. cr.sendContainerState(containerMapKey)
  6784. }
  6785. ee.EncodeUint(uint64(uint(k2)))
  6786. if cr != nil {
  6787. cr.sendContainerState(containerMapValue)
  6788. }
  6789. e.encode(v[uint(k2)])
  6790. }
  6791. } else {
  6792. for k2, v2 := range v {
  6793. if cr != nil {
  6794. cr.sendContainerState(containerMapKey)
  6795. }
  6796. ee.EncodeUint(uint64(k2))
  6797. if cr != nil {
  6798. cr.sendContainerState(containerMapValue)
  6799. }
  6800. e.encode(v2)
  6801. }
  6802. }
  6803. if cr != nil {
  6804. cr.sendContainerState(containerMapEnd)
  6805. }
  6806. }
  6807. func (f *encFnInfo) fastpathEncMapUintIntR(rv reflect.Value) {
  6808. fastpathTV.EncMapUintIntV(rv.Interface().(map[uint]int), fastpathCheckNilFalse, f.e)
  6809. }
  6810. func (_ fastpathT) EncMapUintIntV(v map[uint]int, checkNil bool, e *Encoder) {
  6811. ee := e.e
  6812. cr := e.cr
  6813. if checkNil && v == nil {
  6814. ee.EncodeNil()
  6815. return
  6816. }
  6817. ee.EncodeMapStart(len(v))
  6818. if e.h.Canonical {
  6819. v2 := make([]uint64, len(v))
  6820. var i int
  6821. for k, _ := range v {
  6822. v2[i] = uint64(k)
  6823. i++
  6824. }
  6825. sort.Sort(uintSlice(v2))
  6826. for _, k2 := range v2 {
  6827. if cr != nil {
  6828. cr.sendContainerState(containerMapKey)
  6829. }
  6830. ee.EncodeUint(uint64(uint(k2)))
  6831. if cr != nil {
  6832. cr.sendContainerState(containerMapValue)
  6833. }
  6834. ee.EncodeInt(int64(v[uint(k2)]))
  6835. }
  6836. } else {
  6837. for k2, v2 := range v {
  6838. if cr != nil {
  6839. cr.sendContainerState(containerMapKey)
  6840. }
  6841. ee.EncodeUint(uint64(k2))
  6842. if cr != nil {
  6843. cr.sendContainerState(containerMapValue)
  6844. }
  6845. ee.EncodeInt(int64(v2))
  6846. }
  6847. }
  6848. if cr != nil {
  6849. cr.sendContainerState(containerMapEnd)
  6850. }
  6851. }
  6852. func (f *encFnInfo) fastpathEncMapUintInt8R(rv reflect.Value) {
  6853. fastpathTV.EncMapUintInt8V(rv.Interface().(map[uint]int8), fastpathCheckNilFalse, f.e)
  6854. }
  6855. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, checkNil bool, e *Encoder) {
  6856. ee := e.e
  6857. cr := e.cr
  6858. if checkNil && v == nil {
  6859. ee.EncodeNil()
  6860. return
  6861. }
  6862. ee.EncodeMapStart(len(v))
  6863. if e.h.Canonical {
  6864. v2 := make([]uint64, len(v))
  6865. var i int
  6866. for k, _ := range v {
  6867. v2[i] = uint64(k)
  6868. i++
  6869. }
  6870. sort.Sort(uintSlice(v2))
  6871. for _, k2 := range v2 {
  6872. if cr != nil {
  6873. cr.sendContainerState(containerMapKey)
  6874. }
  6875. ee.EncodeUint(uint64(uint(k2)))
  6876. if cr != nil {
  6877. cr.sendContainerState(containerMapValue)
  6878. }
  6879. ee.EncodeInt(int64(v[uint(k2)]))
  6880. }
  6881. } else {
  6882. for k2, v2 := range v {
  6883. if cr != nil {
  6884. cr.sendContainerState(containerMapKey)
  6885. }
  6886. ee.EncodeUint(uint64(k2))
  6887. if cr != nil {
  6888. cr.sendContainerState(containerMapValue)
  6889. }
  6890. ee.EncodeInt(int64(v2))
  6891. }
  6892. }
  6893. if cr != nil {
  6894. cr.sendContainerState(containerMapEnd)
  6895. }
  6896. }
  6897. func (f *encFnInfo) fastpathEncMapUintInt16R(rv reflect.Value) {
  6898. fastpathTV.EncMapUintInt16V(rv.Interface().(map[uint]int16), fastpathCheckNilFalse, f.e)
  6899. }
  6900. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, checkNil bool, e *Encoder) {
  6901. ee := e.e
  6902. cr := e.cr
  6903. if checkNil && v == nil {
  6904. ee.EncodeNil()
  6905. return
  6906. }
  6907. ee.EncodeMapStart(len(v))
  6908. if e.h.Canonical {
  6909. v2 := make([]uint64, len(v))
  6910. var i int
  6911. for k, _ := range v {
  6912. v2[i] = uint64(k)
  6913. i++
  6914. }
  6915. sort.Sort(uintSlice(v2))
  6916. for _, k2 := range v2 {
  6917. if cr != nil {
  6918. cr.sendContainerState(containerMapKey)
  6919. }
  6920. ee.EncodeUint(uint64(uint(k2)))
  6921. if cr != nil {
  6922. cr.sendContainerState(containerMapValue)
  6923. }
  6924. ee.EncodeInt(int64(v[uint(k2)]))
  6925. }
  6926. } else {
  6927. for k2, v2 := range v {
  6928. if cr != nil {
  6929. cr.sendContainerState(containerMapKey)
  6930. }
  6931. ee.EncodeUint(uint64(k2))
  6932. if cr != nil {
  6933. cr.sendContainerState(containerMapValue)
  6934. }
  6935. ee.EncodeInt(int64(v2))
  6936. }
  6937. }
  6938. if cr != nil {
  6939. cr.sendContainerState(containerMapEnd)
  6940. }
  6941. }
  6942. func (f *encFnInfo) fastpathEncMapUintInt32R(rv reflect.Value) {
  6943. fastpathTV.EncMapUintInt32V(rv.Interface().(map[uint]int32), fastpathCheckNilFalse, f.e)
  6944. }
  6945. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, checkNil bool, e *Encoder) {
  6946. ee := e.e
  6947. cr := e.cr
  6948. if checkNil && v == nil {
  6949. ee.EncodeNil()
  6950. return
  6951. }
  6952. ee.EncodeMapStart(len(v))
  6953. if e.h.Canonical {
  6954. v2 := make([]uint64, len(v))
  6955. var i int
  6956. for k, _ := range v {
  6957. v2[i] = uint64(k)
  6958. i++
  6959. }
  6960. sort.Sort(uintSlice(v2))
  6961. for _, k2 := range v2 {
  6962. if cr != nil {
  6963. cr.sendContainerState(containerMapKey)
  6964. }
  6965. ee.EncodeUint(uint64(uint(k2)))
  6966. if cr != nil {
  6967. cr.sendContainerState(containerMapValue)
  6968. }
  6969. ee.EncodeInt(int64(v[uint(k2)]))
  6970. }
  6971. } else {
  6972. for k2, v2 := range v {
  6973. if cr != nil {
  6974. cr.sendContainerState(containerMapKey)
  6975. }
  6976. ee.EncodeUint(uint64(k2))
  6977. if cr != nil {
  6978. cr.sendContainerState(containerMapValue)
  6979. }
  6980. ee.EncodeInt(int64(v2))
  6981. }
  6982. }
  6983. if cr != nil {
  6984. cr.sendContainerState(containerMapEnd)
  6985. }
  6986. }
  6987. func (f *encFnInfo) fastpathEncMapUintInt64R(rv reflect.Value) {
  6988. fastpathTV.EncMapUintInt64V(rv.Interface().(map[uint]int64), fastpathCheckNilFalse, f.e)
  6989. }
  6990. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, checkNil bool, e *Encoder) {
  6991. ee := e.e
  6992. cr := e.cr
  6993. if checkNil && v == nil {
  6994. ee.EncodeNil()
  6995. return
  6996. }
  6997. ee.EncodeMapStart(len(v))
  6998. if e.h.Canonical {
  6999. v2 := make([]uint64, len(v))
  7000. var i int
  7001. for k, _ := range v {
  7002. v2[i] = uint64(k)
  7003. i++
  7004. }
  7005. sort.Sort(uintSlice(v2))
  7006. for _, k2 := range v2 {
  7007. if cr != nil {
  7008. cr.sendContainerState(containerMapKey)
  7009. }
  7010. ee.EncodeUint(uint64(uint(k2)))
  7011. if cr != nil {
  7012. cr.sendContainerState(containerMapValue)
  7013. }
  7014. ee.EncodeInt(int64(v[uint(k2)]))
  7015. }
  7016. } else {
  7017. for k2, v2 := range v {
  7018. if cr != nil {
  7019. cr.sendContainerState(containerMapKey)
  7020. }
  7021. ee.EncodeUint(uint64(k2))
  7022. if cr != nil {
  7023. cr.sendContainerState(containerMapValue)
  7024. }
  7025. ee.EncodeInt(int64(v2))
  7026. }
  7027. }
  7028. if cr != nil {
  7029. cr.sendContainerState(containerMapEnd)
  7030. }
  7031. }
  7032. func (f *encFnInfo) fastpathEncMapUintFloat32R(rv reflect.Value) {
  7033. fastpathTV.EncMapUintFloat32V(rv.Interface().(map[uint]float32), fastpathCheckNilFalse, f.e)
  7034. }
  7035. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, checkNil bool, e *Encoder) {
  7036. ee := e.e
  7037. cr := e.cr
  7038. if checkNil && v == nil {
  7039. ee.EncodeNil()
  7040. return
  7041. }
  7042. ee.EncodeMapStart(len(v))
  7043. if e.h.Canonical {
  7044. v2 := make([]uint64, len(v))
  7045. var i int
  7046. for k, _ := range v {
  7047. v2[i] = uint64(k)
  7048. i++
  7049. }
  7050. sort.Sort(uintSlice(v2))
  7051. for _, k2 := range v2 {
  7052. if cr != nil {
  7053. cr.sendContainerState(containerMapKey)
  7054. }
  7055. ee.EncodeUint(uint64(uint(k2)))
  7056. if cr != nil {
  7057. cr.sendContainerState(containerMapValue)
  7058. }
  7059. ee.EncodeFloat32(v[uint(k2)])
  7060. }
  7061. } else {
  7062. for k2, v2 := range v {
  7063. if cr != nil {
  7064. cr.sendContainerState(containerMapKey)
  7065. }
  7066. ee.EncodeUint(uint64(k2))
  7067. if cr != nil {
  7068. cr.sendContainerState(containerMapValue)
  7069. }
  7070. ee.EncodeFloat32(v2)
  7071. }
  7072. }
  7073. if cr != nil {
  7074. cr.sendContainerState(containerMapEnd)
  7075. }
  7076. }
  7077. func (f *encFnInfo) fastpathEncMapUintFloat64R(rv reflect.Value) {
  7078. fastpathTV.EncMapUintFloat64V(rv.Interface().(map[uint]float64), fastpathCheckNilFalse, f.e)
  7079. }
  7080. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, checkNil bool, e *Encoder) {
  7081. ee := e.e
  7082. cr := e.cr
  7083. if checkNil && v == nil {
  7084. ee.EncodeNil()
  7085. return
  7086. }
  7087. ee.EncodeMapStart(len(v))
  7088. if e.h.Canonical {
  7089. v2 := make([]uint64, len(v))
  7090. var i int
  7091. for k, _ := range v {
  7092. v2[i] = uint64(k)
  7093. i++
  7094. }
  7095. sort.Sort(uintSlice(v2))
  7096. for _, k2 := range v2 {
  7097. if cr != nil {
  7098. cr.sendContainerState(containerMapKey)
  7099. }
  7100. ee.EncodeUint(uint64(uint(k2)))
  7101. if cr != nil {
  7102. cr.sendContainerState(containerMapValue)
  7103. }
  7104. ee.EncodeFloat64(v[uint(k2)])
  7105. }
  7106. } else {
  7107. for k2, v2 := range v {
  7108. if cr != nil {
  7109. cr.sendContainerState(containerMapKey)
  7110. }
  7111. ee.EncodeUint(uint64(k2))
  7112. if cr != nil {
  7113. cr.sendContainerState(containerMapValue)
  7114. }
  7115. ee.EncodeFloat64(v2)
  7116. }
  7117. }
  7118. if cr != nil {
  7119. cr.sendContainerState(containerMapEnd)
  7120. }
  7121. }
  7122. func (f *encFnInfo) fastpathEncMapUintBoolR(rv reflect.Value) {
  7123. fastpathTV.EncMapUintBoolV(rv.Interface().(map[uint]bool), fastpathCheckNilFalse, f.e)
  7124. }
  7125. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, checkNil bool, e *Encoder) {
  7126. ee := e.e
  7127. cr := e.cr
  7128. if checkNil && v == nil {
  7129. ee.EncodeNil()
  7130. return
  7131. }
  7132. ee.EncodeMapStart(len(v))
  7133. if e.h.Canonical {
  7134. v2 := make([]uint64, len(v))
  7135. var i int
  7136. for k, _ := range v {
  7137. v2[i] = uint64(k)
  7138. i++
  7139. }
  7140. sort.Sort(uintSlice(v2))
  7141. for _, k2 := range v2 {
  7142. if cr != nil {
  7143. cr.sendContainerState(containerMapKey)
  7144. }
  7145. ee.EncodeUint(uint64(uint(k2)))
  7146. if cr != nil {
  7147. cr.sendContainerState(containerMapValue)
  7148. }
  7149. ee.EncodeBool(v[uint(k2)])
  7150. }
  7151. } else {
  7152. for k2, v2 := range v {
  7153. if cr != nil {
  7154. cr.sendContainerState(containerMapKey)
  7155. }
  7156. ee.EncodeUint(uint64(k2))
  7157. if cr != nil {
  7158. cr.sendContainerState(containerMapValue)
  7159. }
  7160. ee.EncodeBool(v2)
  7161. }
  7162. }
  7163. if cr != nil {
  7164. cr.sendContainerState(containerMapEnd)
  7165. }
  7166. }
  7167. func (f *encFnInfo) fastpathEncMapUint8IntfR(rv reflect.Value) {
  7168. fastpathTV.EncMapUint8IntfV(rv.Interface().(map[uint8]interface{}), fastpathCheckNilFalse, f.e)
  7169. }
  7170. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, checkNil bool, e *Encoder) {
  7171. ee := e.e
  7172. cr := e.cr
  7173. if checkNil && v == nil {
  7174. ee.EncodeNil()
  7175. return
  7176. }
  7177. ee.EncodeMapStart(len(v))
  7178. if e.h.Canonical {
  7179. v2 := make([]uint64, len(v))
  7180. var i int
  7181. for k, _ := range v {
  7182. v2[i] = uint64(k)
  7183. i++
  7184. }
  7185. sort.Sort(uintSlice(v2))
  7186. for _, k2 := range v2 {
  7187. if cr != nil {
  7188. cr.sendContainerState(containerMapKey)
  7189. }
  7190. ee.EncodeUint(uint64(uint8(k2)))
  7191. if cr != nil {
  7192. cr.sendContainerState(containerMapValue)
  7193. }
  7194. e.encode(v[uint8(k2)])
  7195. }
  7196. } else {
  7197. for k2, v2 := range v {
  7198. if cr != nil {
  7199. cr.sendContainerState(containerMapKey)
  7200. }
  7201. ee.EncodeUint(uint64(k2))
  7202. if cr != nil {
  7203. cr.sendContainerState(containerMapValue)
  7204. }
  7205. e.encode(v2)
  7206. }
  7207. }
  7208. if cr != nil {
  7209. cr.sendContainerState(containerMapEnd)
  7210. }
  7211. }
  7212. func (f *encFnInfo) fastpathEncMapUint8StringR(rv reflect.Value) {
  7213. fastpathTV.EncMapUint8StringV(rv.Interface().(map[uint8]string), fastpathCheckNilFalse, f.e)
  7214. }
  7215. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, checkNil bool, e *Encoder) {
  7216. ee := e.e
  7217. cr := e.cr
  7218. if checkNil && v == nil {
  7219. ee.EncodeNil()
  7220. return
  7221. }
  7222. ee.EncodeMapStart(len(v))
  7223. if e.h.Canonical {
  7224. v2 := make([]uint64, len(v))
  7225. var i int
  7226. for k, _ := range v {
  7227. v2[i] = uint64(k)
  7228. i++
  7229. }
  7230. sort.Sort(uintSlice(v2))
  7231. for _, k2 := range v2 {
  7232. if cr != nil {
  7233. cr.sendContainerState(containerMapKey)
  7234. }
  7235. ee.EncodeUint(uint64(uint8(k2)))
  7236. if cr != nil {
  7237. cr.sendContainerState(containerMapValue)
  7238. }
  7239. ee.EncodeString(c_UTF8, v[uint8(k2)])
  7240. }
  7241. } else {
  7242. for k2, v2 := range v {
  7243. if cr != nil {
  7244. cr.sendContainerState(containerMapKey)
  7245. }
  7246. ee.EncodeUint(uint64(k2))
  7247. if cr != nil {
  7248. cr.sendContainerState(containerMapValue)
  7249. }
  7250. ee.EncodeString(c_UTF8, v2)
  7251. }
  7252. }
  7253. if cr != nil {
  7254. cr.sendContainerState(containerMapEnd)
  7255. }
  7256. }
  7257. func (f *encFnInfo) fastpathEncMapUint8UintR(rv reflect.Value) {
  7258. fastpathTV.EncMapUint8UintV(rv.Interface().(map[uint8]uint), fastpathCheckNilFalse, f.e)
  7259. }
  7260. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, checkNil bool, e *Encoder) {
  7261. ee := e.e
  7262. cr := e.cr
  7263. if checkNil && v == nil {
  7264. ee.EncodeNil()
  7265. return
  7266. }
  7267. ee.EncodeMapStart(len(v))
  7268. if e.h.Canonical {
  7269. v2 := make([]uint64, len(v))
  7270. var i int
  7271. for k, _ := range v {
  7272. v2[i] = uint64(k)
  7273. i++
  7274. }
  7275. sort.Sort(uintSlice(v2))
  7276. for _, k2 := range v2 {
  7277. if cr != nil {
  7278. cr.sendContainerState(containerMapKey)
  7279. }
  7280. ee.EncodeUint(uint64(uint8(k2)))
  7281. if cr != nil {
  7282. cr.sendContainerState(containerMapValue)
  7283. }
  7284. ee.EncodeUint(uint64(v[uint8(k2)]))
  7285. }
  7286. } else {
  7287. for k2, v2 := range v {
  7288. if cr != nil {
  7289. cr.sendContainerState(containerMapKey)
  7290. }
  7291. ee.EncodeUint(uint64(k2))
  7292. if cr != nil {
  7293. cr.sendContainerState(containerMapValue)
  7294. }
  7295. ee.EncodeUint(uint64(v2))
  7296. }
  7297. }
  7298. if cr != nil {
  7299. cr.sendContainerState(containerMapEnd)
  7300. }
  7301. }
  7302. func (f *encFnInfo) fastpathEncMapUint8Uint8R(rv reflect.Value) {
  7303. fastpathTV.EncMapUint8Uint8V(rv.Interface().(map[uint8]uint8), fastpathCheckNilFalse, f.e)
  7304. }
  7305. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, checkNil bool, e *Encoder) {
  7306. ee := e.e
  7307. cr := e.cr
  7308. if checkNil && v == nil {
  7309. ee.EncodeNil()
  7310. return
  7311. }
  7312. ee.EncodeMapStart(len(v))
  7313. if e.h.Canonical {
  7314. v2 := make([]uint64, len(v))
  7315. var i int
  7316. for k, _ := range v {
  7317. v2[i] = uint64(k)
  7318. i++
  7319. }
  7320. sort.Sort(uintSlice(v2))
  7321. for _, k2 := range v2 {
  7322. if cr != nil {
  7323. cr.sendContainerState(containerMapKey)
  7324. }
  7325. ee.EncodeUint(uint64(uint8(k2)))
  7326. if cr != nil {
  7327. cr.sendContainerState(containerMapValue)
  7328. }
  7329. ee.EncodeUint(uint64(v[uint8(k2)]))
  7330. }
  7331. } else {
  7332. for k2, v2 := range v {
  7333. if cr != nil {
  7334. cr.sendContainerState(containerMapKey)
  7335. }
  7336. ee.EncodeUint(uint64(k2))
  7337. if cr != nil {
  7338. cr.sendContainerState(containerMapValue)
  7339. }
  7340. ee.EncodeUint(uint64(v2))
  7341. }
  7342. }
  7343. if cr != nil {
  7344. cr.sendContainerState(containerMapEnd)
  7345. }
  7346. }
  7347. func (f *encFnInfo) fastpathEncMapUint8Uint16R(rv reflect.Value) {
  7348. fastpathTV.EncMapUint8Uint16V(rv.Interface().(map[uint8]uint16), fastpathCheckNilFalse, f.e)
  7349. }
  7350. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, checkNil bool, e *Encoder) {
  7351. ee := e.e
  7352. cr := e.cr
  7353. if checkNil && v == nil {
  7354. ee.EncodeNil()
  7355. return
  7356. }
  7357. ee.EncodeMapStart(len(v))
  7358. if e.h.Canonical {
  7359. v2 := make([]uint64, len(v))
  7360. var i int
  7361. for k, _ := range v {
  7362. v2[i] = uint64(k)
  7363. i++
  7364. }
  7365. sort.Sort(uintSlice(v2))
  7366. for _, k2 := range v2 {
  7367. if cr != nil {
  7368. cr.sendContainerState(containerMapKey)
  7369. }
  7370. ee.EncodeUint(uint64(uint8(k2)))
  7371. if cr != nil {
  7372. cr.sendContainerState(containerMapValue)
  7373. }
  7374. ee.EncodeUint(uint64(v[uint8(k2)]))
  7375. }
  7376. } else {
  7377. for k2, v2 := range v {
  7378. if cr != nil {
  7379. cr.sendContainerState(containerMapKey)
  7380. }
  7381. ee.EncodeUint(uint64(k2))
  7382. if cr != nil {
  7383. cr.sendContainerState(containerMapValue)
  7384. }
  7385. ee.EncodeUint(uint64(v2))
  7386. }
  7387. }
  7388. if cr != nil {
  7389. cr.sendContainerState(containerMapEnd)
  7390. }
  7391. }
  7392. func (f *encFnInfo) fastpathEncMapUint8Uint32R(rv reflect.Value) {
  7393. fastpathTV.EncMapUint8Uint32V(rv.Interface().(map[uint8]uint32), fastpathCheckNilFalse, f.e)
  7394. }
  7395. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, checkNil bool, e *Encoder) {
  7396. ee := e.e
  7397. cr := e.cr
  7398. if checkNil && v == nil {
  7399. ee.EncodeNil()
  7400. return
  7401. }
  7402. ee.EncodeMapStart(len(v))
  7403. if e.h.Canonical {
  7404. v2 := make([]uint64, len(v))
  7405. var i int
  7406. for k, _ := range v {
  7407. v2[i] = uint64(k)
  7408. i++
  7409. }
  7410. sort.Sort(uintSlice(v2))
  7411. for _, k2 := range v2 {
  7412. if cr != nil {
  7413. cr.sendContainerState(containerMapKey)
  7414. }
  7415. ee.EncodeUint(uint64(uint8(k2)))
  7416. if cr != nil {
  7417. cr.sendContainerState(containerMapValue)
  7418. }
  7419. ee.EncodeUint(uint64(v[uint8(k2)]))
  7420. }
  7421. } else {
  7422. for k2, v2 := range v {
  7423. if cr != nil {
  7424. cr.sendContainerState(containerMapKey)
  7425. }
  7426. ee.EncodeUint(uint64(k2))
  7427. if cr != nil {
  7428. cr.sendContainerState(containerMapValue)
  7429. }
  7430. ee.EncodeUint(uint64(v2))
  7431. }
  7432. }
  7433. if cr != nil {
  7434. cr.sendContainerState(containerMapEnd)
  7435. }
  7436. }
  7437. func (f *encFnInfo) fastpathEncMapUint8Uint64R(rv reflect.Value) {
  7438. fastpathTV.EncMapUint8Uint64V(rv.Interface().(map[uint8]uint64), fastpathCheckNilFalse, f.e)
  7439. }
  7440. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, checkNil bool, e *Encoder) {
  7441. ee := e.e
  7442. cr := e.cr
  7443. if checkNil && v == nil {
  7444. ee.EncodeNil()
  7445. return
  7446. }
  7447. ee.EncodeMapStart(len(v))
  7448. if e.h.Canonical {
  7449. v2 := make([]uint64, len(v))
  7450. var i int
  7451. for k, _ := range v {
  7452. v2[i] = uint64(k)
  7453. i++
  7454. }
  7455. sort.Sort(uintSlice(v2))
  7456. for _, k2 := range v2 {
  7457. if cr != nil {
  7458. cr.sendContainerState(containerMapKey)
  7459. }
  7460. ee.EncodeUint(uint64(uint8(k2)))
  7461. if cr != nil {
  7462. cr.sendContainerState(containerMapValue)
  7463. }
  7464. ee.EncodeUint(uint64(v[uint8(k2)]))
  7465. }
  7466. } else {
  7467. for k2, v2 := range v {
  7468. if cr != nil {
  7469. cr.sendContainerState(containerMapKey)
  7470. }
  7471. ee.EncodeUint(uint64(k2))
  7472. if cr != nil {
  7473. cr.sendContainerState(containerMapValue)
  7474. }
  7475. ee.EncodeUint(uint64(v2))
  7476. }
  7477. }
  7478. if cr != nil {
  7479. cr.sendContainerState(containerMapEnd)
  7480. }
  7481. }
  7482. func (f *encFnInfo) fastpathEncMapUint8UintptrR(rv reflect.Value) {
  7483. fastpathTV.EncMapUint8UintptrV(rv.Interface().(map[uint8]uintptr), fastpathCheckNilFalse, f.e)
  7484. }
  7485. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, checkNil bool, e *Encoder) {
  7486. ee := e.e
  7487. cr := e.cr
  7488. if checkNil && v == nil {
  7489. ee.EncodeNil()
  7490. return
  7491. }
  7492. ee.EncodeMapStart(len(v))
  7493. if e.h.Canonical {
  7494. v2 := make([]uint64, len(v))
  7495. var i int
  7496. for k, _ := range v {
  7497. v2[i] = uint64(k)
  7498. i++
  7499. }
  7500. sort.Sort(uintSlice(v2))
  7501. for _, k2 := range v2 {
  7502. if cr != nil {
  7503. cr.sendContainerState(containerMapKey)
  7504. }
  7505. ee.EncodeUint(uint64(uint8(k2)))
  7506. if cr != nil {
  7507. cr.sendContainerState(containerMapValue)
  7508. }
  7509. e.encode(v[uint8(k2)])
  7510. }
  7511. } else {
  7512. for k2, v2 := range v {
  7513. if cr != nil {
  7514. cr.sendContainerState(containerMapKey)
  7515. }
  7516. ee.EncodeUint(uint64(k2))
  7517. if cr != nil {
  7518. cr.sendContainerState(containerMapValue)
  7519. }
  7520. e.encode(v2)
  7521. }
  7522. }
  7523. if cr != nil {
  7524. cr.sendContainerState(containerMapEnd)
  7525. }
  7526. }
  7527. func (f *encFnInfo) fastpathEncMapUint8IntR(rv reflect.Value) {
  7528. fastpathTV.EncMapUint8IntV(rv.Interface().(map[uint8]int), fastpathCheckNilFalse, f.e)
  7529. }
  7530. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, checkNil bool, e *Encoder) {
  7531. ee := e.e
  7532. cr := e.cr
  7533. if checkNil && v == nil {
  7534. ee.EncodeNil()
  7535. return
  7536. }
  7537. ee.EncodeMapStart(len(v))
  7538. if e.h.Canonical {
  7539. v2 := make([]uint64, len(v))
  7540. var i int
  7541. for k, _ := range v {
  7542. v2[i] = uint64(k)
  7543. i++
  7544. }
  7545. sort.Sort(uintSlice(v2))
  7546. for _, k2 := range v2 {
  7547. if cr != nil {
  7548. cr.sendContainerState(containerMapKey)
  7549. }
  7550. ee.EncodeUint(uint64(uint8(k2)))
  7551. if cr != nil {
  7552. cr.sendContainerState(containerMapValue)
  7553. }
  7554. ee.EncodeInt(int64(v[uint8(k2)]))
  7555. }
  7556. } else {
  7557. for k2, v2 := range v {
  7558. if cr != nil {
  7559. cr.sendContainerState(containerMapKey)
  7560. }
  7561. ee.EncodeUint(uint64(k2))
  7562. if cr != nil {
  7563. cr.sendContainerState(containerMapValue)
  7564. }
  7565. ee.EncodeInt(int64(v2))
  7566. }
  7567. }
  7568. if cr != nil {
  7569. cr.sendContainerState(containerMapEnd)
  7570. }
  7571. }
  7572. func (f *encFnInfo) fastpathEncMapUint8Int8R(rv reflect.Value) {
  7573. fastpathTV.EncMapUint8Int8V(rv.Interface().(map[uint8]int8), fastpathCheckNilFalse, f.e)
  7574. }
  7575. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, checkNil bool, e *Encoder) {
  7576. ee := e.e
  7577. cr := e.cr
  7578. if checkNil && v == nil {
  7579. ee.EncodeNil()
  7580. return
  7581. }
  7582. ee.EncodeMapStart(len(v))
  7583. if e.h.Canonical {
  7584. v2 := make([]uint64, len(v))
  7585. var i int
  7586. for k, _ := range v {
  7587. v2[i] = uint64(k)
  7588. i++
  7589. }
  7590. sort.Sort(uintSlice(v2))
  7591. for _, k2 := range v2 {
  7592. if cr != nil {
  7593. cr.sendContainerState(containerMapKey)
  7594. }
  7595. ee.EncodeUint(uint64(uint8(k2)))
  7596. if cr != nil {
  7597. cr.sendContainerState(containerMapValue)
  7598. }
  7599. ee.EncodeInt(int64(v[uint8(k2)]))
  7600. }
  7601. } else {
  7602. for k2, v2 := range v {
  7603. if cr != nil {
  7604. cr.sendContainerState(containerMapKey)
  7605. }
  7606. ee.EncodeUint(uint64(k2))
  7607. if cr != nil {
  7608. cr.sendContainerState(containerMapValue)
  7609. }
  7610. ee.EncodeInt(int64(v2))
  7611. }
  7612. }
  7613. if cr != nil {
  7614. cr.sendContainerState(containerMapEnd)
  7615. }
  7616. }
  7617. func (f *encFnInfo) fastpathEncMapUint8Int16R(rv reflect.Value) {
  7618. fastpathTV.EncMapUint8Int16V(rv.Interface().(map[uint8]int16), fastpathCheckNilFalse, f.e)
  7619. }
  7620. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, checkNil bool, e *Encoder) {
  7621. ee := e.e
  7622. cr := e.cr
  7623. if checkNil && v == nil {
  7624. ee.EncodeNil()
  7625. return
  7626. }
  7627. ee.EncodeMapStart(len(v))
  7628. if e.h.Canonical {
  7629. v2 := make([]uint64, len(v))
  7630. var i int
  7631. for k, _ := range v {
  7632. v2[i] = uint64(k)
  7633. i++
  7634. }
  7635. sort.Sort(uintSlice(v2))
  7636. for _, k2 := range v2 {
  7637. if cr != nil {
  7638. cr.sendContainerState(containerMapKey)
  7639. }
  7640. ee.EncodeUint(uint64(uint8(k2)))
  7641. if cr != nil {
  7642. cr.sendContainerState(containerMapValue)
  7643. }
  7644. ee.EncodeInt(int64(v[uint8(k2)]))
  7645. }
  7646. } else {
  7647. for k2, v2 := range v {
  7648. if cr != nil {
  7649. cr.sendContainerState(containerMapKey)
  7650. }
  7651. ee.EncodeUint(uint64(k2))
  7652. if cr != nil {
  7653. cr.sendContainerState(containerMapValue)
  7654. }
  7655. ee.EncodeInt(int64(v2))
  7656. }
  7657. }
  7658. if cr != nil {
  7659. cr.sendContainerState(containerMapEnd)
  7660. }
  7661. }
  7662. func (f *encFnInfo) fastpathEncMapUint8Int32R(rv reflect.Value) {
  7663. fastpathTV.EncMapUint8Int32V(rv.Interface().(map[uint8]int32), fastpathCheckNilFalse, f.e)
  7664. }
  7665. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, checkNil bool, e *Encoder) {
  7666. ee := e.e
  7667. cr := e.cr
  7668. if checkNil && v == nil {
  7669. ee.EncodeNil()
  7670. return
  7671. }
  7672. ee.EncodeMapStart(len(v))
  7673. if e.h.Canonical {
  7674. v2 := make([]uint64, len(v))
  7675. var i int
  7676. for k, _ := range v {
  7677. v2[i] = uint64(k)
  7678. i++
  7679. }
  7680. sort.Sort(uintSlice(v2))
  7681. for _, k2 := range v2 {
  7682. if cr != nil {
  7683. cr.sendContainerState(containerMapKey)
  7684. }
  7685. ee.EncodeUint(uint64(uint8(k2)))
  7686. if cr != nil {
  7687. cr.sendContainerState(containerMapValue)
  7688. }
  7689. ee.EncodeInt(int64(v[uint8(k2)]))
  7690. }
  7691. } else {
  7692. for k2, v2 := range v {
  7693. if cr != nil {
  7694. cr.sendContainerState(containerMapKey)
  7695. }
  7696. ee.EncodeUint(uint64(k2))
  7697. if cr != nil {
  7698. cr.sendContainerState(containerMapValue)
  7699. }
  7700. ee.EncodeInt(int64(v2))
  7701. }
  7702. }
  7703. if cr != nil {
  7704. cr.sendContainerState(containerMapEnd)
  7705. }
  7706. }
  7707. func (f *encFnInfo) fastpathEncMapUint8Int64R(rv reflect.Value) {
  7708. fastpathTV.EncMapUint8Int64V(rv.Interface().(map[uint8]int64), fastpathCheckNilFalse, f.e)
  7709. }
  7710. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, checkNil bool, e *Encoder) {
  7711. ee := e.e
  7712. cr := e.cr
  7713. if checkNil && v == nil {
  7714. ee.EncodeNil()
  7715. return
  7716. }
  7717. ee.EncodeMapStart(len(v))
  7718. if e.h.Canonical {
  7719. v2 := make([]uint64, len(v))
  7720. var i int
  7721. for k, _ := range v {
  7722. v2[i] = uint64(k)
  7723. i++
  7724. }
  7725. sort.Sort(uintSlice(v2))
  7726. for _, k2 := range v2 {
  7727. if cr != nil {
  7728. cr.sendContainerState(containerMapKey)
  7729. }
  7730. ee.EncodeUint(uint64(uint8(k2)))
  7731. if cr != nil {
  7732. cr.sendContainerState(containerMapValue)
  7733. }
  7734. ee.EncodeInt(int64(v[uint8(k2)]))
  7735. }
  7736. } else {
  7737. for k2, v2 := range v {
  7738. if cr != nil {
  7739. cr.sendContainerState(containerMapKey)
  7740. }
  7741. ee.EncodeUint(uint64(k2))
  7742. if cr != nil {
  7743. cr.sendContainerState(containerMapValue)
  7744. }
  7745. ee.EncodeInt(int64(v2))
  7746. }
  7747. }
  7748. if cr != nil {
  7749. cr.sendContainerState(containerMapEnd)
  7750. }
  7751. }
  7752. func (f *encFnInfo) fastpathEncMapUint8Float32R(rv reflect.Value) {
  7753. fastpathTV.EncMapUint8Float32V(rv.Interface().(map[uint8]float32), fastpathCheckNilFalse, f.e)
  7754. }
  7755. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, checkNil bool, e *Encoder) {
  7756. ee := e.e
  7757. cr := e.cr
  7758. if checkNil && v == nil {
  7759. ee.EncodeNil()
  7760. return
  7761. }
  7762. ee.EncodeMapStart(len(v))
  7763. if e.h.Canonical {
  7764. v2 := make([]uint64, len(v))
  7765. var i int
  7766. for k, _ := range v {
  7767. v2[i] = uint64(k)
  7768. i++
  7769. }
  7770. sort.Sort(uintSlice(v2))
  7771. for _, k2 := range v2 {
  7772. if cr != nil {
  7773. cr.sendContainerState(containerMapKey)
  7774. }
  7775. ee.EncodeUint(uint64(uint8(k2)))
  7776. if cr != nil {
  7777. cr.sendContainerState(containerMapValue)
  7778. }
  7779. ee.EncodeFloat32(v[uint8(k2)])
  7780. }
  7781. } else {
  7782. for k2, v2 := range v {
  7783. if cr != nil {
  7784. cr.sendContainerState(containerMapKey)
  7785. }
  7786. ee.EncodeUint(uint64(k2))
  7787. if cr != nil {
  7788. cr.sendContainerState(containerMapValue)
  7789. }
  7790. ee.EncodeFloat32(v2)
  7791. }
  7792. }
  7793. if cr != nil {
  7794. cr.sendContainerState(containerMapEnd)
  7795. }
  7796. }
  7797. func (f *encFnInfo) fastpathEncMapUint8Float64R(rv reflect.Value) {
  7798. fastpathTV.EncMapUint8Float64V(rv.Interface().(map[uint8]float64), fastpathCheckNilFalse, f.e)
  7799. }
  7800. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, checkNil bool, e *Encoder) {
  7801. ee := e.e
  7802. cr := e.cr
  7803. if checkNil && v == nil {
  7804. ee.EncodeNil()
  7805. return
  7806. }
  7807. ee.EncodeMapStart(len(v))
  7808. if e.h.Canonical {
  7809. v2 := make([]uint64, len(v))
  7810. var i int
  7811. for k, _ := range v {
  7812. v2[i] = uint64(k)
  7813. i++
  7814. }
  7815. sort.Sort(uintSlice(v2))
  7816. for _, k2 := range v2 {
  7817. if cr != nil {
  7818. cr.sendContainerState(containerMapKey)
  7819. }
  7820. ee.EncodeUint(uint64(uint8(k2)))
  7821. if cr != nil {
  7822. cr.sendContainerState(containerMapValue)
  7823. }
  7824. ee.EncodeFloat64(v[uint8(k2)])
  7825. }
  7826. } else {
  7827. for k2, v2 := range v {
  7828. if cr != nil {
  7829. cr.sendContainerState(containerMapKey)
  7830. }
  7831. ee.EncodeUint(uint64(k2))
  7832. if cr != nil {
  7833. cr.sendContainerState(containerMapValue)
  7834. }
  7835. ee.EncodeFloat64(v2)
  7836. }
  7837. }
  7838. if cr != nil {
  7839. cr.sendContainerState(containerMapEnd)
  7840. }
  7841. }
  7842. func (f *encFnInfo) fastpathEncMapUint8BoolR(rv reflect.Value) {
  7843. fastpathTV.EncMapUint8BoolV(rv.Interface().(map[uint8]bool), fastpathCheckNilFalse, f.e)
  7844. }
  7845. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, checkNil bool, e *Encoder) {
  7846. ee := e.e
  7847. cr := e.cr
  7848. if checkNil && v == nil {
  7849. ee.EncodeNil()
  7850. return
  7851. }
  7852. ee.EncodeMapStart(len(v))
  7853. if e.h.Canonical {
  7854. v2 := make([]uint64, len(v))
  7855. var i int
  7856. for k, _ := range v {
  7857. v2[i] = uint64(k)
  7858. i++
  7859. }
  7860. sort.Sort(uintSlice(v2))
  7861. for _, k2 := range v2 {
  7862. if cr != nil {
  7863. cr.sendContainerState(containerMapKey)
  7864. }
  7865. ee.EncodeUint(uint64(uint8(k2)))
  7866. if cr != nil {
  7867. cr.sendContainerState(containerMapValue)
  7868. }
  7869. ee.EncodeBool(v[uint8(k2)])
  7870. }
  7871. } else {
  7872. for k2, v2 := range v {
  7873. if cr != nil {
  7874. cr.sendContainerState(containerMapKey)
  7875. }
  7876. ee.EncodeUint(uint64(k2))
  7877. if cr != nil {
  7878. cr.sendContainerState(containerMapValue)
  7879. }
  7880. ee.EncodeBool(v2)
  7881. }
  7882. }
  7883. if cr != nil {
  7884. cr.sendContainerState(containerMapEnd)
  7885. }
  7886. }
  7887. func (f *encFnInfo) fastpathEncMapUint16IntfR(rv reflect.Value) {
  7888. fastpathTV.EncMapUint16IntfV(rv.Interface().(map[uint16]interface{}), fastpathCheckNilFalse, f.e)
  7889. }
  7890. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, checkNil bool, e *Encoder) {
  7891. ee := e.e
  7892. cr := e.cr
  7893. if checkNil && v == nil {
  7894. ee.EncodeNil()
  7895. return
  7896. }
  7897. ee.EncodeMapStart(len(v))
  7898. if e.h.Canonical {
  7899. v2 := make([]uint64, len(v))
  7900. var i int
  7901. for k, _ := range v {
  7902. v2[i] = uint64(k)
  7903. i++
  7904. }
  7905. sort.Sort(uintSlice(v2))
  7906. for _, k2 := range v2 {
  7907. if cr != nil {
  7908. cr.sendContainerState(containerMapKey)
  7909. }
  7910. ee.EncodeUint(uint64(uint16(k2)))
  7911. if cr != nil {
  7912. cr.sendContainerState(containerMapValue)
  7913. }
  7914. e.encode(v[uint16(k2)])
  7915. }
  7916. } else {
  7917. for k2, v2 := range v {
  7918. if cr != nil {
  7919. cr.sendContainerState(containerMapKey)
  7920. }
  7921. ee.EncodeUint(uint64(k2))
  7922. if cr != nil {
  7923. cr.sendContainerState(containerMapValue)
  7924. }
  7925. e.encode(v2)
  7926. }
  7927. }
  7928. if cr != nil {
  7929. cr.sendContainerState(containerMapEnd)
  7930. }
  7931. }
  7932. func (f *encFnInfo) fastpathEncMapUint16StringR(rv reflect.Value) {
  7933. fastpathTV.EncMapUint16StringV(rv.Interface().(map[uint16]string), fastpathCheckNilFalse, f.e)
  7934. }
  7935. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, checkNil bool, e *Encoder) {
  7936. ee := e.e
  7937. cr := e.cr
  7938. if checkNil && v == nil {
  7939. ee.EncodeNil()
  7940. return
  7941. }
  7942. ee.EncodeMapStart(len(v))
  7943. if e.h.Canonical {
  7944. v2 := make([]uint64, len(v))
  7945. var i int
  7946. for k, _ := range v {
  7947. v2[i] = uint64(k)
  7948. i++
  7949. }
  7950. sort.Sort(uintSlice(v2))
  7951. for _, k2 := range v2 {
  7952. if cr != nil {
  7953. cr.sendContainerState(containerMapKey)
  7954. }
  7955. ee.EncodeUint(uint64(uint16(k2)))
  7956. if cr != nil {
  7957. cr.sendContainerState(containerMapValue)
  7958. }
  7959. ee.EncodeString(c_UTF8, v[uint16(k2)])
  7960. }
  7961. } else {
  7962. for k2, v2 := range v {
  7963. if cr != nil {
  7964. cr.sendContainerState(containerMapKey)
  7965. }
  7966. ee.EncodeUint(uint64(k2))
  7967. if cr != nil {
  7968. cr.sendContainerState(containerMapValue)
  7969. }
  7970. ee.EncodeString(c_UTF8, v2)
  7971. }
  7972. }
  7973. if cr != nil {
  7974. cr.sendContainerState(containerMapEnd)
  7975. }
  7976. }
  7977. func (f *encFnInfo) fastpathEncMapUint16UintR(rv reflect.Value) {
  7978. fastpathTV.EncMapUint16UintV(rv.Interface().(map[uint16]uint), fastpathCheckNilFalse, f.e)
  7979. }
  7980. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, checkNil bool, e *Encoder) {
  7981. ee := e.e
  7982. cr := e.cr
  7983. if checkNil && v == nil {
  7984. ee.EncodeNil()
  7985. return
  7986. }
  7987. ee.EncodeMapStart(len(v))
  7988. if e.h.Canonical {
  7989. v2 := make([]uint64, len(v))
  7990. var i int
  7991. for k, _ := range v {
  7992. v2[i] = uint64(k)
  7993. i++
  7994. }
  7995. sort.Sort(uintSlice(v2))
  7996. for _, k2 := range v2 {
  7997. if cr != nil {
  7998. cr.sendContainerState(containerMapKey)
  7999. }
  8000. ee.EncodeUint(uint64(uint16(k2)))
  8001. if cr != nil {
  8002. cr.sendContainerState(containerMapValue)
  8003. }
  8004. ee.EncodeUint(uint64(v[uint16(k2)]))
  8005. }
  8006. } else {
  8007. for k2, v2 := range v {
  8008. if cr != nil {
  8009. cr.sendContainerState(containerMapKey)
  8010. }
  8011. ee.EncodeUint(uint64(k2))
  8012. if cr != nil {
  8013. cr.sendContainerState(containerMapValue)
  8014. }
  8015. ee.EncodeUint(uint64(v2))
  8016. }
  8017. }
  8018. if cr != nil {
  8019. cr.sendContainerState(containerMapEnd)
  8020. }
  8021. }
  8022. func (f *encFnInfo) fastpathEncMapUint16Uint8R(rv reflect.Value) {
  8023. fastpathTV.EncMapUint16Uint8V(rv.Interface().(map[uint16]uint8), fastpathCheckNilFalse, f.e)
  8024. }
  8025. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, checkNil bool, e *Encoder) {
  8026. ee := e.e
  8027. cr := e.cr
  8028. if checkNil && v == nil {
  8029. ee.EncodeNil()
  8030. return
  8031. }
  8032. ee.EncodeMapStart(len(v))
  8033. if e.h.Canonical {
  8034. v2 := make([]uint64, len(v))
  8035. var i int
  8036. for k, _ := range v {
  8037. v2[i] = uint64(k)
  8038. i++
  8039. }
  8040. sort.Sort(uintSlice(v2))
  8041. for _, k2 := range v2 {
  8042. if cr != nil {
  8043. cr.sendContainerState(containerMapKey)
  8044. }
  8045. ee.EncodeUint(uint64(uint16(k2)))
  8046. if cr != nil {
  8047. cr.sendContainerState(containerMapValue)
  8048. }
  8049. ee.EncodeUint(uint64(v[uint16(k2)]))
  8050. }
  8051. } else {
  8052. for k2, v2 := range v {
  8053. if cr != nil {
  8054. cr.sendContainerState(containerMapKey)
  8055. }
  8056. ee.EncodeUint(uint64(k2))
  8057. if cr != nil {
  8058. cr.sendContainerState(containerMapValue)
  8059. }
  8060. ee.EncodeUint(uint64(v2))
  8061. }
  8062. }
  8063. if cr != nil {
  8064. cr.sendContainerState(containerMapEnd)
  8065. }
  8066. }
  8067. func (f *encFnInfo) fastpathEncMapUint16Uint16R(rv reflect.Value) {
  8068. fastpathTV.EncMapUint16Uint16V(rv.Interface().(map[uint16]uint16), fastpathCheckNilFalse, f.e)
  8069. }
  8070. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, checkNil bool, e *Encoder) {
  8071. ee := e.e
  8072. cr := e.cr
  8073. if checkNil && v == nil {
  8074. ee.EncodeNil()
  8075. return
  8076. }
  8077. ee.EncodeMapStart(len(v))
  8078. if e.h.Canonical {
  8079. v2 := make([]uint64, len(v))
  8080. var i int
  8081. for k, _ := range v {
  8082. v2[i] = uint64(k)
  8083. i++
  8084. }
  8085. sort.Sort(uintSlice(v2))
  8086. for _, k2 := range v2 {
  8087. if cr != nil {
  8088. cr.sendContainerState(containerMapKey)
  8089. }
  8090. ee.EncodeUint(uint64(uint16(k2)))
  8091. if cr != nil {
  8092. cr.sendContainerState(containerMapValue)
  8093. }
  8094. ee.EncodeUint(uint64(v[uint16(k2)]))
  8095. }
  8096. } else {
  8097. for k2, v2 := range v {
  8098. if cr != nil {
  8099. cr.sendContainerState(containerMapKey)
  8100. }
  8101. ee.EncodeUint(uint64(k2))
  8102. if cr != nil {
  8103. cr.sendContainerState(containerMapValue)
  8104. }
  8105. ee.EncodeUint(uint64(v2))
  8106. }
  8107. }
  8108. if cr != nil {
  8109. cr.sendContainerState(containerMapEnd)
  8110. }
  8111. }
  8112. func (f *encFnInfo) fastpathEncMapUint16Uint32R(rv reflect.Value) {
  8113. fastpathTV.EncMapUint16Uint32V(rv.Interface().(map[uint16]uint32), fastpathCheckNilFalse, f.e)
  8114. }
  8115. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, checkNil bool, e *Encoder) {
  8116. ee := e.e
  8117. cr := e.cr
  8118. if checkNil && v == nil {
  8119. ee.EncodeNil()
  8120. return
  8121. }
  8122. ee.EncodeMapStart(len(v))
  8123. if e.h.Canonical {
  8124. v2 := make([]uint64, len(v))
  8125. var i int
  8126. for k, _ := range v {
  8127. v2[i] = uint64(k)
  8128. i++
  8129. }
  8130. sort.Sort(uintSlice(v2))
  8131. for _, k2 := range v2 {
  8132. if cr != nil {
  8133. cr.sendContainerState(containerMapKey)
  8134. }
  8135. ee.EncodeUint(uint64(uint16(k2)))
  8136. if cr != nil {
  8137. cr.sendContainerState(containerMapValue)
  8138. }
  8139. ee.EncodeUint(uint64(v[uint16(k2)]))
  8140. }
  8141. } else {
  8142. for k2, v2 := range v {
  8143. if cr != nil {
  8144. cr.sendContainerState(containerMapKey)
  8145. }
  8146. ee.EncodeUint(uint64(k2))
  8147. if cr != nil {
  8148. cr.sendContainerState(containerMapValue)
  8149. }
  8150. ee.EncodeUint(uint64(v2))
  8151. }
  8152. }
  8153. if cr != nil {
  8154. cr.sendContainerState(containerMapEnd)
  8155. }
  8156. }
  8157. func (f *encFnInfo) fastpathEncMapUint16Uint64R(rv reflect.Value) {
  8158. fastpathTV.EncMapUint16Uint64V(rv.Interface().(map[uint16]uint64), fastpathCheckNilFalse, f.e)
  8159. }
  8160. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, checkNil bool, e *Encoder) {
  8161. ee := e.e
  8162. cr := e.cr
  8163. if checkNil && v == nil {
  8164. ee.EncodeNil()
  8165. return
  8166. }
  8167. ee.EncodeMapStart(len(v))
  8168. if e.h.Canonical {
  8169. v2 := make([]uint64, len(v))
  8170. var i int
  8171. for k, _ := range v {
  8172. v2[i] = uint64(k)
  8173. i++
  8174. }
  8175. sort.Sort(uintSlice(v2))
  8176. for _, k2 := range v2 {
  8177. if cr != nil {
  8178. cr.sendContainerState(containerMapKey)
  8179. }
  8180. ee.EncodeUint(uint64(uint16(k2)))
  8181. if cr != nil {
  8182. cr.sendContainerState(containerMapValue)
  8183. }
  8184. ee.EncodeUint(uint64(v[uint16(k2)]))
  8185. }
  8186. } else {
  8187. for k2, v2 := range v {
  8188. if cr != nil {
  8189. cr.sendContainerState(containerMapKey)
  8190. }
  8191. ee.EncodeUint(uint64(k2))
  8192. if cr != nil {
  8193. cr.sendContainerState(containerMapValue)
  8194. }
  8195. ee.EncodeUint(uint64(v2))
  8196. }
  8197. }
  8198. if cr != nil {
  8199. cr.sendContainerState(containerMapEnd)
  8200. }
  8201. }
  8202. func (f *encFnInfo) fastpathEncMapUint16UintptrR(rv reflect.Value) {
  8203. fastpathTV.EncMapUint16UintptrV(rv.Interface().(map[uint16]uintptr), fastpathCheckNilFalse, f.e)
  8204. }
  8205. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, checkNil bool, e *Encoder) {
  8206. ee := e.e
  8207. cr := e.cr
  8208. if checkNil && v == nil {
  8209. ee.EncodeNil()
  8210. return
  8211. }
  8212. ee.EncodeMapStart(len(v))
  8213. if e.h.Canonical {
  8214. v2 := make([]uint64, len(v))
  8215. var i int
  8216. for k, _ := range v {
  8217. v2[i] = uint64(k)
  8218. i++
  8219. }
  8220. sort.Sort(uintSlice(v2))
  8221. for _, k2 := range v2 {
  8222. if cr != nil {
  8223. cr.sendContainerState(containerMapKey)
  8224. }
  8225. ee.EncodeUint(uint64(uint16(k2)))
  8226. if cr != nil {
  8227. cr.sendContainerState(containerMapValue)
  8228. }
  8229. e.encode(v[uint16(k2)])
  8230. }
  8231. } else {
  8232. for k2, v2 := range v {
  8233. if cr != nil {
  8234. cr.sendContainerState(containerMapKey)
  8235. }
  8236. ee.EncodeUint(uint64(k2))
  8237. if cr != nil {
  8238. cr.sendContainerState(containerMapValue)
  8239. }
  8240. e.encode(v2)
  8241. }
  8242. }
  8243. if cr != nil {
  8244. cr.sendContainerState(containerMapEnd)
  8245. }
  8246. }
  8247. func (f *encFnInfo) fastpathEncMapUint16IntR(rv reflect.Value) {
  8248. fastpathTV.EncMapUint16IntV(rv.Interface().(map[uint16]int), fastpathCheckNilFalse, f.e)
  8249. }
  8250. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, checkNil bool, e *Encoder) {
  8251. ee := e.e
  8252. cr := e.cr
  8253. if checkNil && v == nil {
  8254. ee.EncodeNil()
  8255. return
  8256. }
  8257. ee.EncodeMapStart(len(v))
  8258. if e.h.Canonical {
  8259. v2 := make([]uint64, len(v))
  8260. var i int
  8261. for k, _ := range v {
  8262. v2[i] = uint64(k)
  8263. i++
  8264. }
  8265. sort.Sort(uintSlice(v2))
  8266. for _, k2 := range v2 {
  8267. if cr != nil {
  8268. cr.sendContainerState(containerMapKey)
  8269. }
  8270. ee.EncodeUint(uint64(uint16(k2)))
  8271. if cr != nil {
  8272. cr.sendContainerState(containerMapValue)
  8273. }
  8274. ee.EncodeInt(int64(v[uint16(k2)]))
  8275. }
  8276. } else {
  8277. for k2, v2 := range v {
  8278. if cr != nil {
  8279. cr.sendContainerState(containerMapKey)
  8280. }
  8281. ee.EncodeUint(uint64(k2))
  8282. if cr != nil {
  8283. cr.sendContainerState(containerMapValue)
  8284. }
  8285. ee.EncodeInt(int64(v2))
  8286. }
  8287. }
  8288. if cr != nil {
  8289. cr.sendContainerState(containerMapEnd)
  8290. }
  8291. }
  8292. func (f *encFnInfo) fastpathEncMapUint16Int8R(rv reflect.Value) {
  8293. fastpathTV.EncMapUint16Int8V(rv.Interface().(map[uint16]int8), fastpathCheckNilFalse, f.e)
  8294. }
  8295. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, checkNil bool, e *Encoder) {
  8296. ee := e.e
  8297. cr := e.cr
  8298. if checkNil && v == nil {
  8299. ee.EncodeNil()
  8300. return
  8301. }
  8302. ee.EncodeMapStart(len(v))
  8303. if e.h.Canonical {
  8304. v2 := make([]uint64, len(v))
  8305. var i int
  8306. for k, _ := range v {
  8307. v2[i] = uint64(k)
  8308. i++
  8309. }
  8310. sort.Sort(uintSlice(v2))
  8311. for _, k2 := range v2 {
  8312. if cr != nil {
  8313. cr.sendContainerState(containerMapKey)
  8314. }
  8315. ee.EncodeUint(uint64(uint16(k2)))
  8316. if cr != nil {
  8317. cr.sendContainerState(containerMapValue)
  8318. }
  8319. ee.EncodeInt(int64(v[uint16(k2)]))
  8320. }
  8321. } else {
  8322. for k2, v2 := range v {
  8323. if cr != nil {
  8324. cr.sendContainerState(containerMapKey)
  8325. }
  8326. ee.EncodeUint(uint64(k2))
  8327. if cr != nil {
  8328. cr.sendContainerState(containerMapValue)
  8329. }
  8330. ee.EncodeInt(int64(v2))
  8331. }
  8332. }
  8333. if cr != nil {
  8334. cr.sendContainerState(containerMapEnd)
  8335. }
  8336. }
  8337. func (f *encFnInfo) fastpathEncMapUint16Int16R(rv reflect.Value) {
  8338. fastpathTV.EncMapUint16Int16V(rv.Interface().(map[uint16]int16), fastpathCheckNilFalse, f.e)
  8339. }
  8340. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, checkNil bool, e *Encoder) {
  8341. ee := e.e
  8342. cr := e.cr
  8343. if checkNil && v == nil {
  8344. ee.EncodeNil()
  8345. return
  8346. }
  8347. ee.EncodeMapStart(len(v))
  8348. if e.h.Canonical {
  8349. v2 := make([]uint64, len(v))
  8350. var i int
  8351. for k, _ := range v {
  8352. v2[i] = uint64(k)
  8353. i++
  8354. }
  8355. sort.Sort(uintSlice(v2))
  8356. for _, k2 := range v2 {
  8357. if cr != nil {
  8358. cr.sendContainerState(containerMapKey)
  8359. }
  8360. ee.EncodeUint(uint64(uint16(k2)))
  8361. if cr != nil {
  8362. cr.sendContainerState(containerMapValue)
  8363. }
  8364. ee.EncodeInt(int64(v[uint16(k2)]))
  8365. }
  8366. } else {
  8367. for k2, v2 := range v {
  8368. if cr != nil {
  8369. cr.sendContainerState(containerMapKey)
  8370. }
  8371. ee.EncodeUint(uint64(k2))
  8372. if cr != nil {
  8373. cr.sendContainerState(containerMapValue)
  8374. }
  8375. ee.EncodeInt(int64(v2))
  8376. }
  8377. }
  8378. if cr != nil {
  8379. cr.sendContainerState(containerMapEnd)
  8380. }
  8381. }
  8382. func (f *encFnInfo) fastpathEncMapUint16Int32R(rv reflect.Value) {
  8383. fastpathTV.EncMapUint16Int32V(rv.Interface().(map[uint16]int32), fastpathCheckNilFalse, f.e)
  8384. }
  8385. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, checkNil bool, e *Encoder) {
  8386. ee := e.e
  8387. cr := e.cr
  8388. if checkNil && v == nil {
  8389. ee.EncodeNil()
  8390. return
  8391. }
  8392. ee.EncodeMapStart(len(v))
  8393. if e.h.Canonical {
  8394. v2 := make([]uint64, len(v))
  8395. var i int
  8396. for k, _ := range v {
  8397. v2[i] = uint64(k)
  8398. i++
  8399. }
  8400. sort.Sort(uintSlice(v2))
  8401. for _, k2 := range v2 {
  8402. if cr != nil {
  8403. cr.sendContainerState(containerMapKey)
  8404. }
  8405. ee.EncodeUint(uint64(uint16(k2)))
  8406. if cr != nil {
  8407. cr.sendContainerState(containerMapValue)
  8408. }
  8409. ee.EncodeInt(int64(v[uint16(k2)]))
  8410. }
  8411. } else {
  8412. for k2, v2 := range v {
  8413. if cr != nil {
  8414. cr.sendContainerState(containerMapKey)
  8415. }
  8416. ee.EncodeUint(uint64(k2))
  8417. if cr != nil {
  8418. cr.sendContainerState(containerMapValue)
  8419. }
  8420. ee.EncodeInt(int64(v2))
  8421. }
  8422. }
  8423. if cr != nil {
  8424. cr.sendContainerState(containerMapEnd)
  8425. }
  8426. }
  8427. func (f *encFnInfo) fastpathEncMapUint16Int64R(rv reflect.Value) {
  8428. fastpathTV.EncMapUint16Int64V(rv.Interface().(map[uint16]int64), fastpathCheckNilFalse, f.e)
  8429. }
  8430. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, checkNil bool, e *Encoder) {
  8431. ee := e.e
  8432. cr := e.cr
  8433. if checkNil && v == nil {
  8434. ee.EncodeNil()
  8435. return
  8436. }
  8437. ee.EncodeMapStart(len(v))
  8438. if e.h.Canonical {
  8439. v2 := make([]uint64, len(v))
  8440. var i int
  8441. for k, _ := range v {
  8442. v2[i] = uint64(k)
  8443. i++
  8444. }
  8445. sort.Sort(uintSlice(v2))
  8446. for _, k2 := range v2 {
  8447. if cr != nil {
  8448. cr.sendContainerState(containerMapKey)
  8449. }
  8450. ee.EncodeUint(uint64(uint16(k2)))
  8451. if cr != nil {
  8452. cr.sendContainerState(containerMapValue)
  8453. }
  8454. ee.EncodeInt(int64(v[uint16(k2)]))
  8455. }
  8456. } else {
  8457. for k2, v2 := range v {
  8458. if cr != nil {
  8459. cr.sendContainerState(containerMapKey)
  8460. }
  8461. ee.EncodeUint(uint64(k2))
  8462. if cr != nil {
  8463. cr.sendContainerState(containerMapValue)
  8464. }
  8465. ee.EncodeInt(int64(v2))
  8466. }
  8467. }
  8468. if cr != nil {
  8469. cr.sendContainerState(containerMapEnd)
  8470. }
  8471. }
  8472. func (f *encFnInfo) fastpathEncMapUint16Float32R(rv reflect.Value) {
  8473. fastpathTV.EncMapUint16Float32V(rv.Interface().(map[uint16]float32), fastpathCheckNilFalse, f.e)
  8474. }
  8475. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, checkNil bool, e *Encoder) {
  8476. ee := e.e
  8477. cr := e.cr
  8478. if checkNil && v == nil {
  8479. ee.EncodeNil()
  8480. return
  8481. }
  8482. ee.EncodeMapStart(len(v))
  8483. if e.h.Canonical {
  8484. v2 := make([]uint64, len(v))
  8485. var i int
  8486. for k, _ := range v {
  8487. v2[i] = uint64(k)
  8488. i++
  8489. }
  8490. sort.Sort(uintSlice(v2))
  8491. for _, k2 := range v2 {
  8492. if cr != nil {
  8493. cr.sendContainerState(containerMapKey)
  8494. }
  8495. ee.EncodeUint(uint64(uint16(k2)))
  8496. if cr != nil {
  8497. cr.sendContainerState(containerMapValue)
  8498. }
  8499. ee.EncodeFloat32(v[uint16(k2)])
  8500. }
  8501. } else {
  8502. for k2, v2 := range v {
  8503. if cr != nil {
  8504. cr.sendContainerState(containerMapKey)
  8505. }
  8506. ee.EncodeUint(uint64(k2))
  8507. if cr != nil {
  8508. cr.sendContainerState(containerMapValue)
  8509. }
  8510. ee.EncodeFloat32(v2)
  8511. }
  8512. }
  8513. if cr != nil {
  8514. cr.sendContainerState(containerMapEnd)
  8515. }
  8516. }
  8517. func (f *encFnInfo) fastpathEncMapUint16Float64R(rv reflect.Value) {
  8518. fastpathTV.EncMapUint16Float64V(rv.Interface().(map[uint16]float64), fastpathCheckNilFalse, f.e)
  8519. }
  8520. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, checkNil bool, e *Encoder) {
  8521. ee := e.e
  8522. cr := e.cr
  8523. if checkNil && v == nil {
  8524. ee.EncodeNil()
  8525. return
  8526. }
  8527. ee.EncodeMapStart(len(v))
  8528. if e.h.Canonical {
  8529. v2 := make([]uint64, len(v))
  8530. var i int
  8531. for k, _ := range v {
  8532. v2[i] = uint64(k)
  8533. i++
  8534. }
  8535. sort.Sort(uintSlice(v2))
  8536. for _, k2 := range v2 {
  8537. if cr != nil {
  8538. cr.sendContainerState(containerMapKey)
  8539. }
  8540. ee.EncodeUint(uint64(uint16(k2)))
  8541. if cr != nil {
  8542. cr.sendContainerState(containerMapValue)
  8543. }
  8544. ee.EncodeFloat64(v[uint16(k2)])
  8545. }
  8546. } else {
  8547. for k2, v2 := range v {
  8548. if cr != nil {
  8549. cr.sendContainerState(containerMapKey)
  8550. }
  8551. ee.EncodeUint(uint64(k2))
  8552. if cr != nil {
  8553. cr.sendContainerState(containerMapValue)
  8554. }
  8555. ee.EncodeFloat64(v2)
  8556. }
  8557. }
  8558. if cr != nil {
  8559. cr.sendContainerState(containerMapEnd)
  8560. }
  8561. }
  8562. func (f *encFnInfo) fastpathEncMapUint16BoolR(rv reflect.Value) {
  8563. fastpathTV.EncMapUint16BoolV(rv.Interface().(map[uint16]bool), fastpathCheckNilFalse, f.e)
  8564. }
  8565. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, checkNil bool, e *Encoder) {
  8566. ee := e.e
  8567. cr := e.cr
  8568. if checkNil && v == nil {
  8569. ee.EncodeNil()
  8570. return
  8571. }
  8572. ee.EncodeMapStart(len(v))
  8573. if e.h.Canonical {
  8574. v2 := make([]uint64, len(v))
  8575. var i int
  8576. for k, _ := range v {
  8577. v2[i] = uint64(k)
  8578. i++
  8579. }
  8580. sort.Sort(uintSlice(v2))
  8581. for _, k2 := range v2 {
  8582. if cr != nil {
  8583. cr.sendContainerState(containerMapKey)
  8584. }
  8585. ee.EncodeUint(uint64(uint16(k2)))
  8586. if cr != nil {
  8587. cr.sendContainerState(containerMapValue)
  8588. }
  8589. ee.EncodeBool(v[uint16(k2)])
  8590. }
  8591. } else {
  8592. for k2, v2 := range v {
  8593. if cr != nil {
  8594. cr.sendContainerState(containerMapKey)
  8595. }
  8596. ee.EncodeUint(uint64(k2))
  8597. if cr != nil {
  8598. cr.sendContainerState(containerMapValue)
  8599. }
  8600. ee.EncodeBool(v2)
  8601. }
  8602. }
  8603. if cr != nil {
  8604. cr.sendContainerState(containerMapEnd)
  8605. }
  8606. }
  8607. func (f *encFnInfo) fastpathEncMapUint32IntfR(rv reflect.Value) {
  8608. fastpathTV.EncMapUint32IntfV(rv.Interface().(map[uint32]interface{}), fastpathCheckNilFalse, f.e)
  8609. }
  8610. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, checkNil bool, e *Encoder) {
  8611. ee := e.e
  8612. cr := e.cr
  8613. if checkNil && v == nil {
  8614. ee.EncodeNil()
  8615. return
  8616. }
  8617. ee.EncodeMapStart(len(v))
  8618. if e.h.Canonical {
  8619. v2 := make([]uint64, len(v))
  8620. var i int
  8621. for k, _ := range v {
  8622. v2[i] = uint64(k)
  8623. i++
  8624. }
  8625. sort.Sort(uintSlice(v2))
  8626. for _, k2 := range v2 {
  8627. if cr != nil {
  8628. cr.sendContainerState(containerMapKey)
  8629. }
  8630. ee.EncodeUint(uint64(uint32(k2)))
  8631. if cr != nil {
  8632. cr.sendContainerState(containerMapValue)
  8633. }
  8634. e.encode(v[uint32(k2)])
  8635. }
  8636. } else {
  8637. for k2, v2 := range v {
  8638. if cr != nil {
  8639. cr.sendContainerState(containerMapKey)
  8640. }
  8641. ee.EncodeUint(uint64(k2))
  8642. if cr != nil {
  8643. cr.sendContainerState(containerMapValue)
  8644. }
  8645. e.encode(v2)
  8646. }
  8647. }
  8648. if cr != nil {
  8649. cr.sendContainerState(containerMapEnd)
  8650. }
  8651. }
  8652. func (f *encFnInfo) fastpathEncMapUint32StringR(rv reflect.Value) {
  8653. fastpathTV.EncMapUint32StringV(rv.Interface().(map[uint32]string), fastpathCheckNilFalse, f.e)
  8654. }
  8655. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, checkNil bool, e *Encoder) {
  8656. ee := e.e
  8657. cr := e.cr
  8658. if checkNil && v == nil {
  8659. ee.EncodeNil()
  8660. return
  8661. }
  8662. ee.EncodeMapStart(len(v))
  8663. if e.h.Canonical {
  8664. v2 := make([]uint64, len(v))
  8665. var i int
  8666. for k, _ := range v {
  8667. v2[i] = uint64(k)
  8668. i++
  8669. }
  8670. sort.Sort(uintSlice(v2))
  8671. for _, k2 := range v2 {
  8672. if cr != nil {
  8673. cr.sendContainerState(containerMapKey)
  8674. }
  8675. ee.EncodeUint(uint64(uint32(k2)))
  8676. if cr != nil {
  8677. cr.sendContainerState(containerMapValue)
  8678. }
  8679. ee.EncodeString(c_UTF8, v[uint32(k2)])
  8680. }
  8681. } else {
  8682. for k2, v2 := range v {
  8683. if cr != nil {
  8684. cr.sendContainerState(containerMapKey)
  8685. }
  8686. ee.EncodeUint(uint64(k2))
  8687. if cr != nil {
  8688. cr.sendContainerState(containerMapValue)
  8689. }
  8690. ee.EncodeString(c_UTF8, v2)
  8691. }
  8692. }
  8693. if cr != nil {
  8694. cr.sendContainerState(containerMapEnd)
  8695. }
  8696. }
  8697. func (f *encFnInfo) fastpathEncMapUint32UintR(rv reflect.Value) {
  8698. fastpathTV.EncMapUint32UintV(rv.Interface().(map[uint32]uint), fastpathCheckNilFalse, f.e)
  8699. }
  8700. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, checkNil bool, e *Encoder) {
  8701. ee := e.e
  8702. cr := e.cr
  8703. if checkNil && v == nil {
  8704. ee.EncodeNil()
  8705. return
  8706. }
  8707. ee.EncodeMapStart(len(v))
  8708. if e.h.Canonical {
  8709. v2 := make([]uint64, len(v))
  8710. var i int
  8711. for k, _ := range v {
  8712. v2[i] = uint64(k)
  8713. i++
  8714. }
  8715. sort.Sort(uintSlice(v2))
  8716. for _, k2 := range v2 {
  8717. if cr != nil {
  8718. cr.sendContainerState(containerMapKey)
  8719. }
  8720. ee.EncodeUint(uint64(uint32(k2)))
  8721. if cr != nil {
  8722. cr.sendContainerState(containerMapValue)
  8723. }
  8724. ee.EncodeUint(uint64(v[uint32(k2)]))
  8725. }
  8726. } else {
  8727. for k2, v2 := range v {
  8728. if cr != nil {
  8729. cr.sendContainerState(containerMapKey)
  8730. }
  8731. ee.EncodeUint(uint64(k2))
  8732. if cr != nil {
  8733. cr.sendContainerState(containerMapValue)
  8734. }
  8735. ee.EncodeUint(uint64(v2))
  8736. }
  8737. }
  8738. if cr != nil {
  8739. cr.sendContainerState(containerMapEnd)
  8740. }
  8741. }
  8742. func (f *encFnInfo) fastpathEncMapUint32Uint8R(rv reflect.Value) {
  8743. fastpathTV.EncMapUint32Uint8V(rv.Interface().(map[uint32]uint8), fastpathCheckNilFalse, f.e)
  8744. }
  8745. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, checkNil bool, e *Encoder) {
  8746. ee := e.e
  8747. cr := e.cr
  8748. if checkNil && v == nil {
  8749. ee.EncodeNil()
  8750. return
  8751. }
  8752. ee.EncodeMapStart(len(v))
  8753. if e.h.Canonical {
  8754. v2 := make([]uint64, len(v))
  8755. var i int
  8756. for k, _ := range v {
  8757. v2[i] = uint64(k)
  8758. i++
  8759. }
  8760. sort.Sort(uintSlice(v2))
  8761. for _, k2 := range v2 {
  8762. if cr != nil {
  8763. cr.sendContainerState(containerMapKey)
  8764. }
  8765. ee.EncodeUint(uint64(uint32(k2)))
  8766. if cr != nil {
  8767. cr.sendContainerState(containerMapValue)
  8768. }
  8769. ee.EncodeUint(uint64(v[uint32(k2)]))
  8770. }
  8771. } else {
  8772. for k2, v2 := range v {
  8773. if cr != nil {
  8774. cr.sendContainerState(containerMapKey)
  8775. }
  8776. ee.EncodeUint(uint64(k2))
  8777. if cr != nil {
  8778. cr.sendContainerState(containerMapValue)
  8779. }
  8780. ee.EncodeUint(uint64(v2))
  8781. }
  8782. }
  8783. if cr != nil {
  8784. cr.sendContainerState(containerMapEnd)
  8785. }
  8786. }
  8787. func (f *encFnInfo) fastpathEncMapUint32Uint16R(rv reflect.Value) {
  8788. fastpathTV.EncMapUint32Uint16V(rv.Interface().(map[uint32]uint16), fastpathCheckNilFalse, f.e)
  8789. }
  8790. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, checkNil bool, e *Encoder) {
  8791. ee := e.e
  8792. cr := e.cr
  8793. if checkNil && v == nil {
  8794. ee.EncodeNil()
  8795. return
  8796. }
  8797. ee.EncodeMapStart(len(v))
  8798. if e.h.Canonical {
  8799. v2 := make([]uint64, len(v))
  8800. var i int
  8801. for k, _ := range v {
  8802. v2[i] = uint64(k)
  8803. i++
  8804. }
  8805. sort.Sort(uintSlice(v2))
  8806. for _, k2 := range v2 {
  8807. if cr != nil {
  8808. cr.sendContainerState(containerMapKey)
  8809. }
  8810. ee.EncodeUint(uint64(uint32(k2)))
  8811. if cr != nil {
  8812. cr.sendContainerState(containerMapValue)
  8813. }
  8814. ee.EncodeUint(uint64(v[uint32(k2)]))
  8815. }
  8816. } else {
  8817. for k2, v2 := range v {
  8818. if cr != nil {
  8819. cr.sendContainerState(containerMapKey)
  8820. }
  8821. ee.EncodeUint(uint64(k2))
  8822. if cr != nil {
  8823. cr.sendContainerState(containerMapValue)
  8824. }
  8825. ee.EncodeUint(uint64(v2))
  8826. }
  8827. }
  8828. if cr != nil {
  8829. cr.sendContainerState(containerMapEnd)
  8830. }
  8831. }
  8832. func (f *encFnInfo) fastpathEncMapUint32Uint32R(rv reflect.Value) {
  8833. fastpathTV.EncMapUint32Uint32V(rv.Interface().(map[uint32]uint32), fastpathCheckNilFalse, f.e)
  8834. }
  8835. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, checkNil bool, e *Encoder) {
  8836. ee := e.e
  8837. cr := e.cr
  8838. if checkNil && v == nil {
  8839. ee.EncodeNil()
  8840. return
  8841. }
  8842. ee.EncodeMapStart(len(v))
  8843. if e.h.Canonical {
  8844. v2 := make([]uint64, len(v))
  8845. var i int
  8846. for k, _ := range v {
  8847. v2[i] = uint64(k)
  8848. i++
  8849. }
  8850. sort.Sort(uintSlice(v2))
  8851. for _, k2 := range v2 {
  8852. if cr != nil {
  8853. cr.sendContainerState(containerMapKey)
  8854. }
  8855. ee.EncodeUint(uint64(uint32(k2)))
  8856. if cr != nil {
  8857. cr.sendContainerState(containerMapValue)
  8858. }
  8859. ee.EncodeUint(uint64(v[uint32(k2)]))
  8860. }
  8861. } else {
  8862. for k2, v2 := range v {
  8863. if cr != nil {
  8864. cr.sendContainerState(containerMapKey)
  8865. }
  8866. ee.EncodeUint(uint64(k2))
  8867. if cr != nil {
  8868. cr.sendContainerState(containerMapValue)
  8869. }
  8870. ee.EncodeUint(uint64(v2))
  8871. }
  8872. }
  8873. if cr != nil {
  8874. cr.sendContainerState(containerMapEnd)
  8875. }
  8876. }
  8877. func (f *encFnInfo) fastpathEncMapUint32Uint64R(rv reflect.Value) {
  8878. fastpathTV.EncMapUint32Uint64V(rv.Interface().(map[uint32]uint64), fastpathCheckNilFalse, f.e)
  8879. }
  8880. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, checkNil bool, e *Encoder) {
  8881. ee := e.e
  8882. cr := e.cr
  8883. if checkNil && v == nil {
  8884. ee.EncodeNil()
  8885. return
  8886. }
  8887. ee.EncodeMapStart(len(v))
  8888. if e.h.Canonical {
  8889. v2 := make([]uint64, len(v))
  8890. var i int
  8891. for k, _ := range v {
  8892. v2[i] = uint64(k)
  8893. i++
  8894. }
  8895. sort.Sort(uintSlice(v2))
  8896. for _, k2 := range v2 {
  8897. if cr != nil {
  8898. cr.sendContainerState(containerMapKey)
  8899. }
  8900. ee.EncodeUint(uint64(uint32(k2)))
  8901. if cr != nil {
  8902. cr.sendContainerState(containerMapValue)
  8903. }
  8904. ee.EncodeUint(uint64(v[uint32(k2)]))
  8905. }
  8906. } else {
  8907. for k2, v2 := range v {
  8908. if cr != nil {
  8909. cr.sendContainerState(containerMapKey)
  8910. }
  8911. ee.EncodeUint(uint64(k2))
  8912. if cr != nil {
  8913. cr.sendContainerState(containerMapValue)
  8914. }
  8915. ee.EncodeUint(uint64(v2))
  8916. }
  8917. }
  8918. if cr != nil {
  8919. cr.sendContainerState(containerMapEnd)
  8920. }
  8921. }
  8922. func (f *encFnInfo) fastpathEncMapUint32UintptrR(rv reflect.Value) {
  8923. fastpathTV.EncMapUint32UintptrV(rv.Interface().(map[uint32]uintptr), fastpathCheckNilFalse, f.e)
  8924. }
  8925. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, checkNil bool, e *Encoder) {
  8926. ee := e.e
  8927. cr := e.cr
  8928. if checkNil && v == nil {
  8929. ee.EncodeNil()
  8930. return
  8931. }
  8932. ee.EncodeMapStart(len(v))
  8933. if e.h.Canonical {
  8934. v2 := make([]uint64, len(v))
  8935. var i int
  8936. for k, _ := range v {
  8937. v2[i] = uint64(k)
  8938. i++
  8939. }
  8940. sort.Sort(uintSlice(v2))
  8941. for _, k2 := range v2 {
  8942. if cr != nil {
  8943. cr.sendContainerState(containerMapKey)
  8944. }
  8945. ee.EncodeUint(uint64(uint32(k2)))
  8946. if cr != nil {
  8947. cr.sendContainerState(containerMapValue)
  8948. }
  8949. e.encode(v[uint32(k2)])
  8950. }
  8951. } else {
  8952. for k2, v2 := range v {
  8953. if cr != nil {
  8954. cr.sendContainerState(containerMapKey)
  8955. }
  8956. ee.EncodeUint(uint64(k2))
  8957. if cr != nil {
  8958. cr.sendContainerState(containerMapValue)
  8959. }
  8960. e.encode(v2)
  8961. }
  8962. }
  8963. if cr != nil {
  8964. cr.sendContainerState(containerMapEnd)
  8965. }
  8966. }
  8967. func (f *encFnInfo) fastpathEncMapUint32IntR(rv reflect.Value) {
  8968. fastpathTV.EncMapUint32IntV(rv.Interface().(map[uint32]int), fastpathCheckNilFalse, f.e)
  8969. }
  8970. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, checkNil bool, e *Encoder) {
  8971. ee := e.e
  8972. cr := e.cr
  8973. if checkNil && v == nil {
  8974. ee.EncodeNil()
  8975. return
  8976. }
  8977. ee.EncodeMapStart(len(v))
  8978. if e.h.Canonical {
  8979. v2 := make([]uint64, len(v))
  8980. var i int
  8981. for k, _ := range v {
  8982. v2[i] = uint64(k)
  8983. i++
  8984. }
  8985. sort.Sort(uintSlice(v2))
  8986. for _, k2 := range v2 {
  8987. if cr != nil {
  8988. cr.sendContainerState(containerMapKey)
  8989. }
  8990. ee.EncodeUint(uint64(uint32(k2)))
  8991. if cr != nil {
  8992. cr.sendContainerState(containerMapValue)
  8993. }
  8994. ee.EncodeInt(int64(v[uint32(k2)]))
  8995. }
  8996. } else {
  8997. for k2, v2 := range v {
  8998. if cr != nil {
  8999. cr.sendContainerState(containerMapKey)
  9000. }
  9001. ee.EncodeUint(uint64(k2))
  9002. if cr != nil {
  9003. cr.sendContainerState(containerMapValue)
  9004. }
  9005. ee.EncodeInt(int64(v2))
  9006. }
  9007. }
  9008. if cr != nil {
  9009. cr.sendContainerState(containerMapEnd)
  9010. }
  9011. }
  9012. func (f *encFnInfo) fastpathEncMapUint32Int8R(rv reflect.Value) {
  9013. fastpathTV.EncMapUint32Int8V(rv.Interface().(map[uint32]int8), fastpathCheckNilFalse, f.e)
  9014. }
  9015. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, checkNil bool, e *Encoder) {
  9016. ee := e.e
  9017. cr := e.cr
  9018. if checkNil && v == nil {
  9019. ee.EncodeNil()
  9020. return
  9021. }
  9022. ee.EncodeMapStart(len(v))
  9023. if e.h.Canonical {
  9024. v2 := make([]uint64, len(v))
  9025. var i int
  9026. for k, _ := range v {
  9027. v2[i] = uint64(k)
  9028. i++
  9029. }
  9030. sort.Sort(uintSlice(v2))
  9031. for _, k2 := range v2 {
  9032. if cr != nil {
  9033. cr.sendContainerState(containerMapKey)
  9034. }
  9035. ee.EncodeUint(uint64(uint32(k2)))
  9036. if cr != nil {
  9037. cr.sendContainerState(containerMapValue)
  9038. }
  9039. ee.EncodeInt(int64(v[uint32(k2)]))
  9040. }
  9041. } else {
  9042. for k2, v2 := range v {
  9043. if cr != nil {
  9044. cr.sendContainerState(containerMapKey)
  9045. }
  9046. ee.EncodeUint(uint64(k2))
  9047. if cr != nil {
  9048. cr.sendContainerState(containerMapValue)
  9049. }
  9050. ee.EncodeInt(int64(v2))
  9051. }
  9052. }
  9053. if cr != nil {
  9054. cr.sendContainerState(containerMapEnd)
  9055. }
  9056. }
  9057. func (f *encFnInfo) fastpathEncMapUint32Int16R(rv reflect.Value) {
  9058. fastpathTV.EncMapUint32Int16V(rv.Interface().(map[uint32]int16), fastpathCheckNilFalse, f.e)
  9059. }
  9060. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, checkNil bool, e *Encoder) {
  9061. ee := e.e
  9062. cr := e.cr
  9063. if checkNil && v == nil {
  9064. ee.EncodeNil()
  9065. return
  9066. }
  9067. ee.EncodeMapStart(len(v))
  9068. if e.h.Canonical {
  9069. v2 := make([]uint64, len(v))
  9070. var i int
  9071. for k, _ := range v {
  9072. v2[i] = uint64(k)
  9073. i++
  9074. }
  9075. sort.Sort(uintSlice(v2))
  9076. for _, k2 := range v2 {
  9077. if cr != nil {
  9078. cr.sendContainerState(containerMapKey)
  9079. }
  9080. ee.EncodeUint(uint64(uint32(k2)))
  9081. if cr != nil {
  9082. cr.sendContainerState(containerMapValue)
  9083. }
  9084. ee.EncodeInt(int64(v[uint32(k2)]))
  9085. }
  9086. } else {
  9087. for k2, v2 := range v {
  9088. if cr != nil {
  9089. cr.sendContainerState(containerMapKey)
  9090. }
  9091. ee.EncodeUint(uint64(k2))
  9092. if cr != nil {
  9093. cr.sendContainerState(containerMapValue)
  9094. }
  9095. ee.EncodeInt(int64(v2))
  9096. }
  9097. }
  9098. if cr != nil {
  9099. cr.sendContainerState(containerMapEnd)
  9100. }
  9101. }
  9102. func (f *encFnInfo) fastpathEncMapUint32Int32R(rv reflect.Value) {
  9103. fastpathTV.EncMapUint32Int32V(rv.Interface().(map[uint32]int32), fastpathCheckNilFalse, f.e)
  9104. }
  9105. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, checkNil bool, e *Encoder) {
  9106. ee := e.e
  9107. cr := e.cr
  9108. if checkNil && v == nil {
  9109. ee.EncodeNil()
  9110. return
  9111. }
  9112. ee.EncodeMapStart(len(v))
  9113. if e.h.Canonical {
  9114. v2 := make([]uint64, len(v))
  9115. var i int
  9116. for k, _ := range v {
  9117. v2[i] = uint64(k)
  9118. i++
  9119. }
  9120. sort.Sort(uintSlice(v2))
  9121. for _, k2 := range v2 {
  9122. if cr != nil {
  9123. cr.sendContainerState(containerMapKey)
  9124. }
  9125. ee.EncodeUint(uint64(uint32(k2)))
  9126. if cr != nil {
  9127. cr.sendContainerState(containerMapValue)
  9128. }
  9129. ee.EncodeInt(int64(v[uint32(k2)]))
  9130. }
  9131. } else {
  9132. for k2, v2 := range v {
  9133. if cr != nil {
  9134. cr.sendContainerState(containerMapKey)
  9135. }
  9136. ee.EncodeUint(uint64(k2))
  9137. if cr != nil {
  9138. cr.sendContainerState(containerMapValue)
  9139. }
  9140. ee.EncodeInt(int64(v2))
  9141. }
  9142. }
  9143. if cr != nil {
  9144. cr.sendContainerState(containerMapEnd)
  9145. }
  9146. }
  9147. func (f *encFnInfo) fastpathEncMapUint32Int64R(rv reflect.Value) {
  9148. fastpathTV.EncMapUint32Int64V(rv.Interface().(map[uint32]int64), fastpathCheckNilFalse, f.e)
  9149. }
  9150. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, checkNil bool, e *Encoder) {
  9151. ee := e.e
  9152. cr := e.cr
  9153. if checkNil && v == nil {
  9154. ee.EncodeNil()
  9155. return
  9156. }
  9157. ee.EncodeMapStart(len(v))
  9158. if e.h.Canonical {
  9159. v2 := make([]uint64, len(v))
  9160. var i int
  9161. for k, _ := range v {
  9162. v2[i] = uint64(k)
  9163. i++
  9164. }
  9165. sort.Sort(uintSlice(v2))
  9166. for _, k2 := range v2 {
  9167. if cr != nil {
  9168. cr.sendContainerState(containerMapKey)
  9169. }
  9170. ee.EncodeUint(uint64(uint32(k2)))
  9171. if cr != nil {
  9172. cr.sendContainerState(containerMapValue)
  9173. }
  9174. ee.EncodeInt(int64(v[uint32(k2)]))
  9175. }
  9176. } else {
  9177. for k2, v2 := range v {
  9178. if cr != nil {
  9179. cr.sendContainerState(containerMapKey)
  9180. }
  9181. ee.EncodeUint(uint64(k2))
  9182. if cr != nil {
  9183. cr.sendContainerState(containerMapValue)
  9184. }
  9185. ee.EncodeInt(int64(v2))
  9186. }
  9187. }
  9188. if cr != nil {
  9189. cr.sendContainerState(containerMapEnd)
  9190. }
  9191. }
  9192. func (f *encFnInfo) fastpathEncMapUint32Float32R(rv reflect.Value) {
  9193. fastpathTV.EncMapUint32Float32V(rv.Interface().(map[uint32]float32), fastpathCheckNilFalse, f.e)
  9194. }
  9195. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, checkNil bool, e *Encoder) {
  9196. ee := e.e
  9197. cr := e.cr
  9198. if checkNil && v == nil {
  9199. ee.EncodeNil()
  9200. return
  9201. }
  9202. ee.EncodeMapStart(len(v))
  9203. if e.h.Canonical {
  9204. v2 := make([]uint64, len(v))
  9205. var i int
  9206. for k, _ := range v {
  9207. v2[i] = uint64(k)
  9208. i++
  9209. }
  9210. sort.Sort(uintSlice(v2))
  9211. for _, k2 := range v2 {
  9212. if cr != nil {
  9213. cr.sendContainerState(containerMapKey)
  9214. }
  9215. ee.EncodeUint(uint64(uint32(k2)))
  9216. if cr != nil {
  9217. cr.sendContainerState(containerMapValue)
  9218. }
  9219. ee.EncodeFloat32(v[uint32(k2)])
  9220. }
  9221. } else {
  9222. for k2, v2 := range v {
  9223. if cr != nil {
  9224. cr.sendContainerState(containerMapKey)
  9225. }
  9226. ee.EncodeUint(uint64(k2))
  9227. if cr != nil {
  9228. cr.sendContainerState(containerMapValue)
  9229. }
  9230. ee.EncodeFloat32(v2)
  9231. }
  9232. }
  9233. if cr != nil {
  9234. cr.sendContainerState(containerMapEnd)
  9235. }
  9236. }
  9237. func (f *encFnInfo) fastpathEncMapUint32Float64R(rv reflect.Value) {
  9238. fastpathTV.EncMapUint32Float64V(rv.Interface().(map[uint32]float64), fastpathCheckNilFalse, f.e)
  9239. }
  9240. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, checkNil bool, e *Encoder) {
  9241. ee := e.e
  9242. cr := e.cr
  9243. if checkNil && v == nil {
  9244. ee.EncodeNil()
  9245. return
  9246. }
  9247. ee.EncodeMapStart(len(v))
  9248. if e.h.Canonical {
  9249. v2 := make([]uint64, len(v))
  9250. var i int
  9251. for k, _ := range v {
  9252. v2[i] = uint64(k)
  9253. i++
  9254. }
  9255. sort.Sort(uintSlice(v2))
  9256. for _, k2 := range v2 {
  9257. if cr != nil {
  9258. cr.sendContainerState(containerMapKey)
  9259. }
  9260. ee.EncodeUint(uint64(uint32(k2)))
  9261. if cr != nil {
  9262. cr.sendContainerState(containerMapValue)
  9263. }
  9264. ee.EncodeFloat64(v[uint32(k2)])
  9265. }
  9266. } else {
  9267. for k2, v2 := range v {
  9268. if cr != nil {
  9269. cr.sendContainerState(containerMapKey)
  9270. }
  9271. ee.EncodeUint(uint64(k2))
  9272. if cr != nil {
  9273. cr.sendContainerState(containerMapValue)
  9274. }
  9275. ee.EncodeFloat64(v2)
  9276. }
  9277. }
  9278. if cr != nil {
  9279. cr.sendContainerState(containerMapEnd)
  9280. }
  9281. }
  9282. func (f *encFnInfo) fastpathEncMapUint32BoolR(rv reflect.Value) {
  9283. fastpathTV.EncMapUint32BoolV(rv.Interface().(map[uint32]bool), fastpathCheckNilFalse, f.e)
  9284. }
  9285. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, checkNil bool, e *Encoder) {
  9286. ee := e.e
  9287. cr := e.cr
  9288. if checkNil && v == nil {
  9289. ee.EncodeNil()
  9290. return
  9291. }
  9292. ee.EncodeMapStart(len(v))
  9293. if e.h.Canonical {
  9294. v2 := make([]uint64, len(v))
  9295. var i int
  9296. for k, _ := range v {
  9297. v2[i] = uint64(k)
  9298. i++
  9299. }
  9300. sort.Sort(uintSlice(v2))
  9301. for _, k2 := range v2 {
  9302. if cr != nil {
  9303. cr.sendContainerState(containerMapKey)
  9304. }
  9305. ee.EncodeUint(uint64(uint32(k2)))
  9306. if cr != nil {
  9307. cr.sendContainerState(containerMapValue)
  9308. }
  9309. ee.EncodeBool(v[uint32(k2)])
  9310. }
  9311. } else {
  9312. for k2, v2 := range v {
  9313. if cr != nil {
  9314. cr.sendContainerState(containerMapKey)
  9315. }
  9316. ee.EncodeUint(uint64(k2))
  9317. if cr != nil {
  9318. cr.sendContainerState(containerMapValue)
  9319. }
  9320. ee.EncodeBool(v2)
  9321. }
  9322. }
  9323. if cr != nil {
  9324. cr.sendContainerState(containerMapEnd)
  9325. }
  9326. }
  9327. func (f *encFnInfo) fastpathEncMapUint64IntfR(rv reflect.Value) {
  9328. fastpathTV.EncMapUint64IntfV(rv.Interface().(map[uint64]interface{}), fastpathCheckNilFalse, f.e)
  9329. }
  9330. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, checkNil bool, e *Encoder) {
  9331. ee := e.e
  9332. cr := e.cr
  9333. if checkNil && v == nil {
  9334. ee.EncodeNil()
  9335. return
  9336. }
  9337. ee.EncodeMapStart(len(v))
  9338. if e.h.Canonical {
  9339. v2 := make([]uint64, len(v))
  9340. var i int
  9341. for k, _ := range v {
  9342. v2[i] = uint64(k)
  9343. i++
  9344. }
  9345. sort.Sort(uintSlice(v2))
  9346. for _, k2 := range v2 {
  9347. if cr != nil {
  9348. cr.sendContainerState(containerMapKey)
  9349. }
  9350. ee.EncodeUint(uint64(uint64(k2)))
  9351. if cr != nil {
  9352. cr.sendContainerState(containerMapValue)
  9353. }
  9354. e.encode(v[uint64(k2)])
  9355. }
  9356. } else {
  9357. for k2, v2 := range v {
  9358. if cr != nil {
  9359. cr.sendContainerState(containerMapKey)
  9360. }
  9361. ee.EncodeUint(uint64(k2))
  9362. if cr != nil {
  9363. cr.sendContainerState(containerMapValue)
  9364. }
  9365. e.encode(v2)
  9366. }
  9367. }
  9368. if cr != nil {
  9369. cr.sendContainerState(containerMapEnd)
  9370. }
  9371. }
  9372. func (f *encFnInfo) fastpathEncMapUint64StringR(rv reflect.Value) {
  9373. fastpathTV.EncMapUint64StringV(rv.Interface().(map[uint64]string), fastpathCheckNilFalse, f.e)
  9374. }
  9375. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, checkNil bool, e *Encoder) {
  9376. ee := e.e
  9377. cr := e.cr
  9378. if checkNil && v == nil {
  9379. ee.EncodeNil()
  9380. return
  9381. }
  9382. ee.EncodeMapStart(len(v))
  9383. if e.h.Canonical {
  9384. v2 := make([]uint64, len(v))
  9385. var i int
  9386. for k, _ := range v {
  9387. v2[i] = uint64(k)
  9388. i++
  9389. }
  9390. sort.Sort(uintSlice(v2))
  9391. for _, k2 := range v2 {
  9392. if cr != nil {
  9393. cr.sendContainerState(containerMapKey)
  9394. }
  9395. ee.EncodeUint(uint64(uint64(k2)))
  9396. if cr != nil {
  9397. cr.sendContainerState(containerMapValue)
  9398. }
  9399. ee.EncodeString(c_UTF8, v[uint64(k2)])
  9400. }
  9401. } else {
  9402. for k2, v2 := range v {
  9403. if cr != nil {
  9404. cr.sendContainerState(containerMapKey)
  9405. }
  9406. ee.EncodeUint(uint64(k2))
  9407. if cr != nil {
  9408. cr.sendContainerState(containerMapValue)
  9409. }
  9410. ee.EncodeString(c_UTF8, v2)
  9411. }
  9412. }
  9413. if cr != nil {
  9414. cr.sendContainerState(containerMapEnd)
  9415. }
  9416. }
  9417. func (f *encFnInfo) fastpathEncMapUint64UintR(rv reflect.Value) {
  9418. fastpathTV.EncMapUint64UintV(rv.Interface().(map[uint64]uint), fastpathCheckNilFalse, f.e)
  9419. }
  9420. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, checkNil bool, e *Encoder) {
  9421. ee := e.e
  9422. cr := e.cr
  9423. if checkNil && v == nil {
  9424. ee.EncodeNil()
  9425. return
  9426. }
  9427. ee.EncodeMapStart(len(v))
  9428. if e.h.Canonical {
  9429. v2 := make([]uint64, len(v))
  9430. var i int
  9431. for k, _ := range v {
  9432. v2[i] = uint64(k)
  9433. i++
  9434. }
  9435. sort.Sort(uintSlice(v2))
  9436. for _, k2 := range v2 {
  9437. if cr != nil {
  9438. cr.sendContainerState(containerMapKey)
  9439. }
  9440. ee.EncodeUint(uint64(uint64(k2)))
  9441. if cr != nil {
  9442. cr.sendContainerState(containerMapValue)
  9443. }
  9444. ee.EncodeUint(uint64(v[uint64(k2)]))
  9445. }
  9446. } else {
  9447. for k2, v2 := range v {
  9448. if cr != nil {
  9449. cr.sendContainerState(containerMapKey)
  9450. }
  9451. ee.EncodeUint(uint64(k2))
  9452. if cr != nil {
  9453. cr.sendContainerState(containerMapValue)
  9454. }
  9455. ee.EncodeUint(uint64(v2))
  9456. }
  9457. }
  9458. if cr != nil {
  9459. cr.sendContainerState(containerMapEnd)
  9460. }
  9461. }
  9462. func (f *encFnInfo) fastpathEncMapUint64Uint8R(rv reflect.Value) {
  9463. fastpathTV.EncMapUint64Uint8V(rv.Interface().(map[uint64]uint8), fastpathCheckNilFalse, f.e)
  9464. }
  9465. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, checkNil bool, e *Encoder) {
  9466. ee := e.e
  9467. cr := e.cr
  9468. if checkNil && v == nil {
  9469. ee.EncodeNil()
  9470. return
  9471. }
  9472. ee.EncodeMapStart(len(v))
  9473. if e.h.Canonical {
  9474. v2 := make([]uint64, len(v))
  9475. var i int
  9476. for k, _ := range v {
  9477. v2[i] = uint64(k)
  9478. i++
  9479. }
  9480. sort.Sort(uintSlice(v2))
  9481. for _, k2 := range v2 {
  9482. if cr != nil {
  9483. cr.sendContainerState(containerMapKey)
  9484. }
  9485. ee.EncodeUint(uint64(uint64(k2)))
  9486. if cr != nil {
  9487. cr.sendContainerState(containerMapValue)
  9488. }
  9489. ee.EncodeUint(uint64(v[uint64(k2)]))
  9490. }
  9491. } else {
  9492. for k2, v2 := range v {
  9493. if cr != nil {
  9494. cr.sendContainerState(containerMapKey)
  9495. }
  9496. ee.EncodeUint(uint64(k2))
  9497. if cr != nil {
  9498. cr.sendContainerState(containerMapValue)
  9499. }
  9500. ee.EncodeUint(uint64(v2))
  9501. }
  9502. }
  9503. if cr != nil {
  9504. cr.sendContainerState(containerMapEnd)
  9505. }
  9506. }
  9507. func (f *encFnInfo) fastpathEncMapUint64Uint16R(rv reflect.Value) {
  9508. fastpathTV.EncMapUint64Uint16V(rv.Interface().(map[uint64]uint16), fastpathCheckNilFalse, f.e)
  9509. }
  9510. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, checkNil bool, e *Encoder) {
  9511. ee := e.e
  9512. cr := e.cr
  9513. if checkNil && v == nil {
  9514. ee.EncodeNil()
  9515. return
  9516. }
  9517. ee.EncodeMapStart(len(v))
  9518. if e.h.Canonical {
  9519. v2 := make([]uint64, len(v))
  9520. var i int
  9521. for k, _ := range v {
  9522. v2[i] = uint64(k)
  9523. i++
  9524. }
  9525. sort.Sort(uintSlice(v2))
  9526. for _, k2 := range v2 {
  9527. if cr != nil {
  9528. cr.sendContainerState(containerMapKey)
  9529. }
  9530. ee.EncodeUint(uint64(uint64(k2)))
  9531. if cr != nil {
  9532. cr.sendContainerState(containerMapValue)
  9533. }
  9534. ee.EncodeUint(uint64(v[uint64(k2)]))
  9535. }
  9536. } else {
  9537. for k2, v2 := range v {
  9538. if cr != nil {
  9539. cr.sendContainerState(containerMapKey)
  9540. }
  9541. ee.EncodeUint(uint64(k2))
  9542. if cr != nil {
  9543. cr.sendContainerState(containerMapValue)
  9544. }
  9545. ee.EncodeUint(uint64(v2))
  9546. }
  9547. }
  9548. if cr != nil {
  9549. cr.sendContainerState(containerMapEnd)
  9550. }
  9551. }
  9552. func (f *encFnInfo) fastpathEncMapUint64Uint32R(rv reflect.Value) {
  9553. fastpathTV.EncMapUint64Uint32V(rv.Interface().(map[uint64]uint32), fastpathCheckNilFalse, f.e)
  9554. }
  9555. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, checkNil bool, e *Encoder) {
  9556. ee := e.e
  9557. cr := e.cr
  9558. if checkNil && v == nil {
  9559. ee.EncodeNil()
  9560. return
  9561. }
  9562. ee.EncodeMapStart(len(v))
  9563. if e.h.Canonical {
  9564. v2 := make([]uint64, len(v))
  9565. var i int
  9566. for k, _ := range v {
  9567. v2[i] = uint64(k)
  9568. i++
  9569. }
  9570. sort.Sort(uintSlice(v2))
  9571. for _, k2 := range v2 {
  9572. if cr != nil {
  9573. cr.sendContainerState(containerMapKey)
  9574. }
  9575. ee.EncodeUint(uint64(uint64(k2)))
  9576. if cr != nil {
  9577. cr.sendContainerState(containerMapValue)
  9578. }
  9579. ee.EncodeUint(uint64(v[uint64(k2)]))
  9580. }
  9581. } else {
  9582. for k2, v2 := range v {
  9583. if cr != nil {
  9584. cr.sendContainerState(containerMapKey)
  9585. }
  9586. ee.EncodeUint(uint64(k2))
  9587. if cr != nil {
  9588. cr.sendContainerState(containerMapValue)
  9589. }
  9590. ee.EncodeUint(uint64(v2))
  9591. }
  9592. }
  9593. if cr != nil {
  9594. cr.sendContainerState(containerMapEnd)
  9595. }
  9596. }
  9597. func (f *encFnInfo) fastpathEncMapUint64Uint64R(rv reflect.Value) {
  9598. fastpathTV.EncMapUint64Uint64V(rv.Interface().(map[uint64]uint64), fastpathCheckNilFalse, f.e)
  9599. }
  9600. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, checkNil bool, e *Encoder) {
  9601. ee := e.e
  9602. cr := e.cr
  9603. if checkNil && v == nil {
  9604. ee.EncodeNil()
  9605. return
  9606. }
  9607. ee.EncodeMapStart(len(v))
  9608. if e.h.Canonical {
  9609. v2 := make([]uint64, len(v))
  9610. var i int
  9611. for k, _ := range v {
  9612. v2[i] = uint64(k)
  9613. i++
  9614. }
  9615. sort.Sort(uintSlice(v2))
  9616. for _, k2 := range v2 {
  9617. if cr != nil {
  9618. cr.sendContainerState(containerMapKey)
  9619. }
  9620. ee.EncodeUint(uint64(uint64(k2)))
  9621. if cr != nil {
  9622. cr.sendContainerState(containerMapValue)
  9623. }
  9624. ee.EncodeUint(uint64(v[uint64(k2)]))
  9625. }
  9626. } else {
  9627. for k2, v2 := range v {
  9628. if cr != nil {
  9629. cr.sendContainerState(containerMapKey)
  9630. }
  9631. ee.EncodeUint(uint64(k2))
  9632. if cr != nil {
  9633. cr.sendContainerState(containerMapValue)
  9634. }
  9635. ee.EncodeUint(uint64(v2))
  9636. }
  9637. }
  9638. if cr != nil {
  9639. cr.sendContainerState(containerMapEnd)
  9640. }
  9641. }
  9642. func (f *encFnInfo) fastpathEncMapUint64UintptrR(rv reflect.Value) {
  9643. fastpathTV.EncMapUint64UintptrV(rv.Interface().(map[uint64]uintptr), fastpathCheckNilFalse, f.e)
  9644. }
  9645. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, checkNil bool, e *Encoder) {
  9646. ee := e.e
  9647. cr := e.cr
  9648. if checkNil && v == nil {
  9649. ee.EncodeNil()
  9650. return
  9651. }
  9652. ee.EncodeMapStart(len(v))
  9653. if e.h.Canonical {
  9654. v2 := make([]uint64, len(v))
  9655. var i int
  9656. for k, _ := range v {
  9657. v2[i] = uint64(k)
  9658. i++
  9659. }
  9660. sort.Sort(uintSlice(v2))
  9661. for _, k2 := range v2 {
  9662. if cr != nil {
  9663. cr.sendContainerState(containerMapKey)
  9664. }
  9665. ee.EncodeUint(uint64(uint64(k2)))
  9666. if cr != nil {
  9667. cr.sendContainerState(containerMapValue)
  9668. }
  9669. e.encode(v[uint64(k2)])
  9670. }
  9671. } else {
  9672. for k2, v2 := range v {
  9673. if cr != nil {
  9674. cr.sendContainerState(containerMapKey)
  9675. }
  9676. ee.EncodeUint(uint64(k2))
  9677. if cr != nil {
  9678. cr.sendContainerState(containerMapValue)
  9679. }
  9680. e.encode(v2)
  9681. }
  9682. }
  9683. if cr != nil {
  9684. cr.sendContainerState(containerMapEnd)
  9685. }
  9686. }
  9687. func (f *encFnInfo) fastpathEncMapUint64IntR(rv reflect.Value) {
  9688. fastpathTV.EncMapUint64IntV(rv.Interface().(map[uint64]int), fastpathCheckNilFalse, f.e)
  9689. }
  9690. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, checkNil bool, e *Encoder) {
  9691. ee := e.e
  9692. cr := e.cr
  9693. if checkNil && v == nil {
  9694. ee.EncodeNil()
  9695. return
  9696. }
  9697. ee.EncodeMapStart(len(v))
  9698. if e.h.Canonical {
  9699. v2 := make([]uint64, len(v))
  9700. var i int
  9701. for k, _ := range v {
  9702. v2[i] = uint64(k)
  9703. i++
  9704. }
  9705. sort.Sort(uintSlice(v2))
  9706. for _, k2 := range v2 {
  9707. if cr != nil {
  9708. cr.sendContainerState(containerMapKey)
  9709. }
  9710. ee.EncodeUint(uint64(uint64(k2)))
  9711. if cr != nil {
  9712. cr.sendContainerState(containerMapValue)
  9713. }
  9714. ee.EncodeInt(int64(v[uint64(k2)]))
  9715. }
  9716. } else {
  9717. for k2, v2 := range v {
  9718. if cr != nil {
  9719. cr.sendContainerState(containerMapKey)
  9720. }
  9721. ee.EncodeUint(uint64(k2))
  9722. if cr != nil {
  9723. cr.sendContainerState(containerMapValue)
  9724. }
  9725. ee.EncodeInt(int64(v2))
  9726. }
  9727. }
  9728. if cr != nil {
  9729. cr.sendContainerState(containerMapEnd)
  9730. }
  9731. }
  9732. func (f *encFnInfo) fastpathEncMapUint64Int8R(rv reflect.Value) {
  9733. fastpathTV.EncMapUint64Int8V(rv.Interface().(map[uint64]int8), fastpathCheckNilFalse, f.e)
  9734. }
  9735. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, checkNil bool, e *Encoder) {
  9736. ee := e.e
  9737. cr := e.cr
  9738. if checkNil && v == nil {
  9739. ee.EncodeNil()
  9740. return
  9741. }
  9742. ee.EncodeMapStart(len(v))
  9743. if e.h.Canonical {
  9744. v2 := make([]uint64, len(v))
  9745. var i int
  9746. for k, _ := range v {
  9747. v2[i] = uint64(k)
  9748. i++
  9749. }
  9750. sort.Sort(uintSlice(v2))
  9751. for _, k2 := range v2 {
  9752. if cr != nil {
  9753. cr.sendContainerState(containerMapKey)
  9754. }
  9755. ee.EncodeUint(uint64(uint64(k2)))
  9756. if cr != nil {
  9757. cr.sendContainerState(containerMapValue)
  9758. }
  9759. ee.EncodeInt(int64(v[uint64(k2)]))
  9760. }
  9761. } else {
  9762. for k2, v2 := range v {
  9763. if cr != nil {
  9764. cr.sendContainerState(containerMapKey)
  9765. }
  9766. ee.EncodeUint(uint64(k2))
  9767. if cr != nil {
  9768. cr.sendContainerState(containerMapValue)
  9769. }
  9770. ee.EncodeInt(int64(v2))
  9771. }
  9772. }
  9773. if cr != nil {
  9774. cr.sendContainerState(containerMapEnd)
  9775. }
  9776. }
  9777. func (f *encFnInfo) fastpathEncMapUint64Int16R(rv reflect.Value) {
  9778. fastpathTV.EncMapUint64Int16V(rv.Interface().(map[uint64]int16), fastpathCheckNilFalse, f.e)
  9779. }
  9780. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, checkNil bool, e *Encoder) {
  9781. ee := e.e
  9782. cr := e.cr
  9783. if checkNil && v == nil {
  9784. ee.EncodeNil()
  9785. return
  9786. }
  9787. ee.EncodeMapStart(len(v))
  9788. if e.h.Canonical {
  9789. v2 := make([]uint64, len(v))
  9790. var i int
  9791. for k, _ := range v {
  9792. v2[i] = uint64(k)
  9793. i++
  9794. }
  9795. sort.Sort(uintSlice(v2))
  9796. for _, k2 := range v2 {
  9797. if cr != nil {
  9798. cr.sendContainerState(containerMapKey)
  9799. }
  9800. ee.EncodeUint(uint64(uint64(k2)))
  9801. if cr != nil {
  9802. cr.sendContainerState(containerMapValue)
  9803. }
  9804. ee.EncodeInt(int64(v[uint64(k2)]))
  9805. }
  9806. } else {
  9807. for k2, v2 := range v {
  9808. if cr != nil {
  9809. cr.sendContainerState(containerMapKey)
  9810. }
  9811. ee.EncodeUint(uint64(k2))
  9812. if cr != nil {
  9813. cr.sendContainerState(containerMapValue)
  9814. }
  9815. ee.EncodeInt(int64(v2))
  9816. }
  9817. }
  9818. if cr != nil {
  9819. cr.sendContainerState(containerMapEnd)
  9820. }
  9821. }
  9822. func (f *encFnInfo) fastpathEncMapUint64Int32R(rv reflect.Value) {
  9823. fastpathTV.EncMapUint64Int32V(rv.Interface().(map[uint64]int32), fastpathCheckNilFalse, f.e)
  9824. }
  9825. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, checkNil bool, e *Encoder) {
  9826. ee := e.e
  9827. cr := e.cr
  9828. if checkNil && v == nil {
  9829. ee.EncodeNil()
  9830. return
  9831. }
  9832. ee.EncodeMapStart(len(v))
  9833. if e.h.Canonical {
  9834. v2 := make([]uint64, len(v))
  9835. var i int
  9836. for k, _ := range v {
  9837. v2[i] = uint64(k)
  9838. i++
  9839. }
  9840. sort.Sort(uintSlice(v2))
  9841. for _, k2 := range v2 {
  9842. if cr != nil {
  9843. cr.sendContainerState(containerMapKey)
  9844. }
  9845. ee.EncodeUint(uint64(uint64(k2)))
  9846. if cr != nil {
  9847. cr.sendContainerState(containerMapValue)
  9848. }
  9849. ee.EncodeInt(int64(v[uint64(k2)]))
  9850. }
  9851. } else {
  9852. for k2, v2 := range v {
  9853. if cr != nil {
  9854. cr.sendContainerState(containerMapKey)
  9855. }
  9856. ee.EncodeUint(uint64(k2))
  9857. if cr != nil {
  9858. cr.sendContainerState(containerMapValue)
  9859. }
  9860. ee.EncodeInt(int64(v2))
  9861. }
  9862. }
  9863. if cr != nil {
  9864. cr.sendContainerState(containerMapEnd)
  9865. }
  9866. }
  9867. func (f *encFnInfo) fastpathEncMapUint64Int64R(rv reflect.Value) {
  9868. fastpathTV.EncMapUint64Int64V(rv.Interface().(map[uint64]int64), fastpathCheckNilFalse, f.e)
  9869. }
  9870. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, checkNil bool, e *Encoder) {
  9871. ee := e.e
  9872. cr := e.cr
  9873. if checkNil && v == nil {
  9874. ee.EncodeNil()
  9875. return
  9876. }
  9877. ee.EncodeMapStart(len(v))
  9878. if e.h.Canonical {
  9879. v2 := make([]uint64, len(v))
  9880. var i int
  9881. for k, _ := range v {
  9882. v2[i] = uint64(k)
  9883. i++
  9884. }
  9885. sort.Sort(uintSlice(v2))
  9886. for _, k2 := range v2 {
  9887. if cr != nil {
  9888. cr.sendContainerState(containerMapKey)
  9889. }
  9890. ee.EncodeUint(uint64(uint64(k2)))
  9891. if cr != nil {
  9892. cr.sendContainerState(containerMapValue)
  9893. }
  9894. ee.EncodeInt(int64(v[uint64(k2)]))
  9895. }
  9896. } else {
  9897. for k2, v2 := range v {
  9898. if cr != nil {
  9899. cr.sendContainerState(containerMapKey)
  9900. }
  9901. ee.EncodeUint(uint64(k2))
  9902. if cr != nil {
  9903. cr.sendContainerState(containerMapValue)
  9904. }
  9905. ee.EncodeInt(int64(v2))
  9906. }
  9907. }
  9908. if cr != nil {
  9909. cr.sendContainerState(containerMapEnd)
  9910. }
  9911. }
  9912. func (f *encFnInfo) fastpathEncMapUint64Float32R(rv reflect.Value) {
  9913. fastpathTV.EncMapUint64Float32V(rv.Interface().(map[uint64]float32), fastpathCheckNilFalse, f.e)
  9914. }
  9915. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, checkNil bool, e *Encoder) {
  9916. ee := e.e
  9917. cr := e.cr
  9918. if checkNil && v == nil {
  9919. ee.EncodeNil()
  9920. return
  9921. }
  9922. ee.EncodeMapStart(len(v))
  9923. if e.h.Canonical {
  9924. v2 := make([]uint64, len(v))
  9925. var i int
  9926. for k, _ := range v {
  9927. v2[i] = uint64(k)
  9928. i++
  9929. }
  9930. sort.Sort(uintSlice(v2))
  9931. for _, k2 := range v2 {
  9932. if cr != nil {
  9933. cr.sendContainerState(containerMapKey)
  9934. }
  9935. ee.EncodeUint(uint64(uint64(k2)))
  9936. if cr != nil {
  9937. cr.sendContainerState(containerMapValue)
  9938. }
  9939. ee.EncodeFloat32(v[uint64(k2)])
  9940. }
  9941. } else {
  9942. for k2, v2 := range v {
  9943. if cr != nil {
  9944. cr.sendContainerState(containerMapKey)
  9945. }
  9946. ee.EncodeUint(uint64(k2))
  9947. if cr != nil {
  9948. cr.sendContainerState(containerMapValue)
  9949. }
  9950. ee.EncodeFloat32(v2)
  9951. }
  9952. }
  9953. if cr != nil {
  9954. cr.sendContainerState(containerMapEnd)
  9955. }
  9956. }
  9957. func (f *encFnInfo) fastpathEncMapUint64Float64R(rv reflect.Value) {
  9958. fastpathTV.EncMapUint64Float64V(rv.Interface().(map[uint64]float64), fastpathCheckNilFalse, f.e)
  9959. }
  9960. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, checkNil bool, e *Encoder) {
  9961. ee := e.e
  9962. cr := e.cr
  9963. if checkNil && v == nil {
  9964. ee.EncodeNil()
  9965. return
  9966. }
  9967. ee.EncodeMapStart(len(v))
  9968. if e.h.Canonical {
  9969. v2 := make([]uint64, len(v))
  9970. var i int
  9971. for k, _ := range v {
  9972. v2[i] = uint64(k)
  9973. i++
  9974. }
  9975. sort.Sort(uintSlice(v2))
  9976. for _, k2 := range v2 {
  9977. if cr != nil {
  9978. cr.sendContainerState(containerMapKey)
  9979. }
  9980. ee.EncodeUint(uint64(uint64(k2)))
  9981. if cr != nil {
  9982. cr.sendContainerState(containerMapValue)
  9983. }
  9984. ee.EncodeFloat64(v[uint64(k2)])
  9985. }
  9986. } else {
  9987. for k2, v2 := range v {
  9988. if cr != nil {
  9989. cr.sendContainerState(containerMapKey)
  9990. }
  9991. ee.EncodeUint(uint64(k2))
  9992. if cr != nil {
  9993. cr.sendContainerState(containerMapValue)
  9994. }
  9995. ee.EncodeFloat64(v2)
  9996. }
  9997. }
  9998. if cr != nil {
  9999. cr.sendContainerState(containerMapEnd)
  10000. }
  10001. }
  10002. func (f *encFnInfo) fastpathEncMapUint64BoolR(rv reflect.Value) {
  10003. fastpathTV.EncMapUint64BoolV(rv.Interface().(map[uint64]bool), fastpathCheckNilFalse, f.e)
  10004. }
  10005. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, checkNil bool, e *Encoder) {
  10006. ee := e.e
  10007. cr := e.cr
  10008. if checkNil && v == nil {
  10009. ee.EncodeNil()
  10010. return
  10011. }
  10012. ee.EncodeMapStart(len(v))
  10013. if e.h.Canonical {
  10014. v2 := make([]uint64, len(v))
  10015. var i int
  10016. for k, _ := range v {
  10017. v2[i] = uint64(k)
  10018. i++
  10019. }
  10020. sort.Sort(uintSlice(v2))
  10021. for _, k2 := range v2 {
  10022. if cr != nil {
  10023. cr.sendContainerState(containerMapKey)
  10024. }
  10025. ee.EncodeUint(uint64(uint64(k2)))
  10026. if cr != nil {
  10027. cr.sendContainerState(containerMapValue)
  10028. }
  10029. ee.EncodeBool(v[uint64(k2)])
  10030. }
  10031. } else {
  10032. for k2, v2 := range v {
  10033. if cr != nil {
  10034. cr.sendContainerState(containerMapKey)
  10035. }
  10036. ee.EncodeUint(uint64(k2))
  10037. if cr != nil {
  10038. cr.sendContainerState(containerMapValue)
  10039. }
  10040. ee.EncodeBool(v2)
  10041. }
  10042. }
  10043. if cr != nil {
  10044. cr.sendContainerState(containerMapEnd)
  10045. }
  10046. }
  10047. func (f *encFnInfo) fastpathEncMapUintptrIntfR(rv reflect.Value) {
  10048. fastpathTV.EncMapUintptrIntfV(rv.Interface().(map[uintptr]interface{}), fastpathCheckNilFalse, f.e)
  10049. }
  10050. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, checkNil bool, e *Encoder) {
  10051. ee := e.e
  10052. cr := e.cr
  10053. if checkNil && v == nil {
  10054. ee.EncodeNil()
  10055. return
  10056. }
  10057. ee.EncodeMapStart(len(v))
  10058. if e.h.Canonical {
  10059. v2 := make([]uint64, len(v))
  10060. var i int
  10061. for k, _ := range v {
  10062. v2[i] = uint64(k)
  10063. i++
  10064. }
  10065. sort.Sort(uintSlice(v2))
  10066. for _, k2 := range v2 {
  10067. if cr != nil {
  10068. cr.sendContainerState(containerMapKey)
  10069. }
  10070. e.encode(uintptr(k2))
  10071. if cr != nil {
  10072. cr.sendContainerState(containerMapValue)
  10073. }
  10074. e.encode(v[uintptr(k2)])
  10075. }
  10076. } else {
  10077. for k2, v2 := range v {
  10078. if cr != nil {
  10079. cr.sendContainerState(containerMapKey)
  10080. }
  10081. e.encode(k2)
  10082. if cr != nil {
  10083. cr.sendContainerState(containerMapValue)
  10084. }
  10085. e.encode(v2)
  10086. }
  10087. }
  10088. if cr != nil {
  10089. cr.sendContainerState(containerMapEnd)
  10090. }
  10091. }
  10092. func (f *encFnInfo) fastpathEncMapUintptrStringR(rv reflect.Value) {
  10093. fastpathTV.EncMapUintptrStringV(rv.Interface().(map[uintptr]string), fastpathCheckNilFalse, f.e)
  10094. }
  10095. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, checkNil bool, e *Encoder) {
  10096. ee := e.e
  10097. cr := e.cr
  10098. if checkNil && v == nil {
  10099. ee.EncodeNil()
  10100. return
  10101. }
  10102. ee.EncodeMapStart(len(v))
  10103. if e.h.Canonical {
  10104. v2 := make([]uint64, len(v))
  10105. var i int
  10106. for k, _ := range v {
  10107. v2[i] = uint64(k)
  10108. i++
  10109. }
  10110. sort.Sort(uintSlice(v2))
  10111. for _, k2 := range v2 {
  10112. if cr != nil {
  10113. cr.sendContainerState(containerMapKey)
  10114. }
  10115. e.encode(uintptr(k2))
  10116. if cr != nil {
  10117. cr.sendContainerState(containerMapValue)
  10118. }
  10119. ee.EncodeString(c_UTF8, v[uintptr(k2)])
  10120. }
  10121. } else {
  10122. for k2, v2 := range v {
  10123. if cr != nil {
  10124. cr.sendContainerState(containerMapKey)
  10125. }
  10126. e.encode(k2)
  10127. if cr != nil {
  10128. cr.sendContainerState(containerMapValue)
  10129. }
  10130. ee.EncodeString(c_UTF8, v2)
  10131. }
  10132. }
  10133. if cr != nil {
  10134. cr.sendContainerState(containerMapEnd)
  10135. }
  10136. }
  10137. func (f *encFnInfo) fastpathEncMapUintptrUintR(rv reflect.Value) {
  10138. fastpathTV.EncMapUintptrUintV(rv.Interface().(map[uintptr]uint), fastpathCheckNilFalse, f.e)
  10139. }
  10140. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, checkNil bool, e *Encoder) {
  10141. ee := e.e
  10142. cr := e.cr
  10143. if checkNil && v == nil {
  10144. ee.EncodeNil()
  10145. return
  10146. }
  10147. ee.EncodeMapStart(len(v))
  10148. if e.h.Canonical {
  10149. v2 := make([]uint64, len(v))
  10150. var i int
  10151. for k, _ := range v {
  10152. v2[i] = uint64(k)
  10153. i++
  10154. }
  10155. sort.Sort(uintSlice(v2))
  10156. for _, k2 := range v2 {
  10157. if cr != nil {
  10158. cr.sendContainerState(containerMapKey)
  10159. }
  10160. e.encode(uintptr(k2))
  10161. if cr != nil {
  10162. cr.sendContainerState(containerMapValue)
  10163. }
  10164. ee.EncodeUint(uint64(v[uintptr(k2)]))
  10165. }
  10166. } else {
  10167. for k2, v2 := range v {
  10168. if cr != nil {
  10169. cr.sendContainerState(containerMapKey)
  10170. }
  10171. e.encode(k2)
  10172. if cr != nil {
  10173. cr.sendContainerState(containerMapValue)
  10174. }
  10175. ee.EncodeUint(uint64(v2))
  10176. }
  10177. }
  10178. if cr != nil {
  10179. cr.sendContainerState(containerMapEnd)
  10180. }
  10181. }
  10182. func (f *encFnInfo) fastpathEncMapUintptrUint8R(rv reflect.Value) {
  10183. fastpathTV.EncMapUintptrUint8V(rv.Interface().(map[uintptr]uint8), fastpathCheckNilFalse, f.e)
  10184. }
  10185. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, checkNil bool, e *Encoder) {
  10186. ee := e.e
  10187. cr := e.cr
  10188. if checkNil && v == nil {
  10189. ee.EncodeNil()
  10190. return
  10191. }
  10192. ee.EncodeMapStart(len(v))
  10193. if e.h.Canonical {
  10194. v2 := make([]uint64, len(v))
  10195. var i int
  10196. for k, _ := range v {
  10197. v2[i] = uint64(k)
  10198. i++
  10199. }
  10200. sort.Sort(uintSlice(v2))
  10201. for _, k2 := range v2 {
  10202. if cr != nil {
  10203. cr.sendContainerState(containerMapKey)
  10204. }
  10205. e.encode(uintptr(k2))
  10206. if cr != nil {
  10207. cr.sendContainerState(containerMapValue)
  10208. }
  10209. ee.EncodeUint(uint64(v[uintptr(k2)]))
  10210. }
  10211. } else {
  10212. for k2, v2 := range v {
  10213. if cr != nil {
  10214. cr.sendContainerState(containerMapKey)
  10215. }
  10216. e.encode(k2)
  10217. if cr != nil {
  10218. cr.sendContainerState(containerMapValue)
  10219. }
  10220. ee.EncodeUint(uint64(v2))
  10221. }
  10222. }
  10223. if cr != nil {
  10224. cr.sendContainerState(containerMapEnd)
  10225. }
  10226. }
  10227. func (f *encFnInfo) fastpathEncMapUintptrUint16R(rv reflect.Value) {
  10228. fastpathTV.EncMapUintptrUint16V(rv.Interface().(map[uintptr]uint16), fastpathCheckNilFalse, f.e)
  10229. }
  10230. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, checkNil bool, e *Encoder) {
  10231. ee := e.e
  10232. cr := e.cr
  10233. if checkNil && v == nil {
  10234. ee.EncodeNil()
  10235. return
  10236. }
  10237. ee.EncodeMapStart(len(v))
  10238. if e.h.Canonical {
  10239. v2 := make([]uint64, len(v))
  10240. var i int
  10241. for k, _ := range v {
  10242. v2[i] = uint64(k)
  10243. i++
  10244. }
  10245. sort.Sort(uintSlice(v2))
  10246. for _, k2 := range v2 {
  10247. if cr != nil {
  10248. cr.sendContainerState(containerMapKey)
  10249. }
  10250. e.encode(uintptr(k2))
  10251. if cr != nil {
  10252. cr.sendContainerState(containerMapValue)
  10253. }
  10254. ee.EncodeUint(uint64(v[uintptr(k2)]))
  10255. }
  10256. } else {
  10257. for k2, v2 := range v {
  10258. if cr != nil {
  10259. cr.sendContainerState(containerMapKey)
  10260. }
  10261. e.encode(k2)
  10262. if cr != nil {
  10263. cr.sendContainerState(containerMapValue)
  10264. }
  10265. ee.EncodeUint(uint64(v2))
  10266. }
  10267. }
  10268. if cr != nil {
  10269. cr.sendContainerState(containerMapEnd)
  10270. }
  10271. }
  10272. func (f *encFnInfo) fastpathEncMapUintptrUint32R(rv reflect.Value) {
  10273. fastpathTV.EncMapUintptrUint32V(rv.Interface().(map[uintptr]uint32), fastpathCheckNilFalse, f.e)
  10274. }
  10275. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, checkNil bool, e *Encoder) {
  10276. ee := e.e
  10277. cr := e.cr
  10278. if checkNil && v == nil {
  10279. ee.EncodeNil()
  10280. return
  10281. }
  10282. ee.EncodeMapStart(len(v))
  10283. if e.h.Canonical {
  10284. v2 := make([]uint64, len(v))
  10285. var i int
  10286. for k, _ := range v {
  10287. v2[i] = uint64(k)
  10288. i++
  10289. }
  10290. sort.Sort(uintSlice(v2))
  10291. for _, k2 := range v2 {
  10292. if cr != nil {
  10293. cr.sendContainerState(containerMapKey)
  10294. }
  10295. e.encode(uintptr(k2))
  10296. if cr != nil {
  10297. cr.sendContainerState(containerMapValue)
  10298. }
  10299. ee.EncodeUint(uint64(v[uintptr(k2)]))
  10300. }
  10301. } else {
  10302. for k2, v2 := range v {
  10303. if cr != nil {
  10304. cr.sendContainerState(containerMapKey)
  10305. }
  10306. e.encode(k2)
  10307. if cr != nil {
  10308. cr.sendContainerState(containerMapValue)
  10309. }
  10310. ee.EncodeUint(uint64(v2))
  10311. }
  10312. }
  10313. if cr != nil {
  10314. cr.sendContainerState(containerMapEnd)
  10315. }
  10316. }
  10317. func (f *encFnInfo) fastpathEncMapUintptrUint64R(rv reflect.Value) {
  10318. fastpathTV.EncMapUintptrUint64V(rv.Interface().(map[uintptr]uint64), fastpathCheckNilFalse, f.e)
  10319. }
  10320. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, checkNil bool, e *Encoder) {
  10321. ee := e.e
  10322. cr := e.cr
  10323. if checkNil && v == nil {
  10324. ee.EncodeNil()
  10325. return
  10326. }
  10327. ee.EncodeMapStart(len(v))
  10328. if e.h.Canonical {
  10329. v2 := make([]uint64, len(v))
  10330. var i int
  10331. for k, _ := range v {
  10332. v2[i] = uint64(k)
  10333. i++
  10334. }
  10335. sort.Sort(uintSlice(v2))
  10336. for _, k2 := range v2 {
  10337. if cr != nil {
  10338. cr.sendContainerState(containerMapKey)
  10339. }
  10340. e.encode(uintptr(k2))
  10341. if cr != nil {
  10342. cr.sendContainerState(containerMapValue)
  10343. }
  10344. ee.EncodeUint(uint64(v[uintptr(k2)]))
  10345. }
  10346. } else {
  10347. for k2, v2 := range v {
  10348. if cr != nil {
  10349. cr.sendContainerState(containerMapKey)
  10350. }
  10351. e.encode(k2)
  10352. if cr != nil {
  10353. cr.sendContainerState(containerMapValue)
  10354. }
  10355. ee.EncodeUint(uint64(v2))
  10356. }
  10357. }
  10358. if cr != nil {
  10359. cr.sendContainerState(containerMapEnd)
  10360. }
  10361. }
  10362. func (f *encFnInfo) fastpathEncMapUintptrUintptrR(rv reflect.Value) {
  10363. fastpathTV.EncMapUintptrUintptrV(rv.Interface().(map[uintptr]uintptr), fastpathCheckNilFalse, f.e)
  10364. }
  10365. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, checkNil bool, e *Encoder) {
  10366. ee := e.e
  10367. cr := e.cr
  10368. if checkNil && v == nil {
  10369. ee.EncodeNil()
  10370. return
  10371. }
  10372. ee.EncodeMapStart(len(v))
  10373. if e.h.Canonical {
  10374. v2 := make([]uint64, len(v))
  10375. var i int
  10376. for k, _ := range v {
  10377. v2[i] = uint64(k)
  10378. i++
  10379. }
  10380. sort.Sort(uintSlice(v2))
  10381. for _, k2 := range v2 {
  10382. if cr != nil {
  10383. cr.sendContainerState(containerMapKey)
  10384. }
  10385. e.encode(uintptr(k2))
  10386. if cr != nil {
  10387. cr.sendContainerState(containerMapValue)
  10388. }
  10389. e.encode(v[uintptr(k2)])
  10390. }
  10391. } else {
  10392. for k2, v2 := range v {
  10393. if cr != nil {
  10394. cr.sendContainerState(containerMapKey)
  10395. }
  10396. e.encode(k2)
  10397. if cr != nil {
  10398. cr.sendContainerState(containerMapValue)
  10399. }
  10400. e.encode(v2)
  10401. }
  10402. }
  10403. if cr != nil {
  10404. cr.sendContainerState(containerMapEnd)
  10405. }
  10406. }
  10407. func (f *encFnInfo) fastpathEncMapUintptrIntR(rv reflect.Value) {
  10408. fastpathTV.EncMapUintptrIntV(rv.Interface().(map[uintptr]int), fastpathCheckNilFalse, f.e)
  10409. }
  10410. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, checkNil bool, e *Encoder) {
  10411. ee := e.e
  10412. cr := e.cr
  10413. if checkNil && v == nil {
  10414. ee.EncodeNil()
  10415. return
  10416. }
  10417. ee.EncodeMapStart(len(v))
  10418. if e.h.Canonical {
  10419. v2 := make([]uint64, len(v))
  10420. var i int
  10421. for k, _ := range v {
  10422. v2[i] = uint64(k)
  10423. i++
  10424. }
  10425. sort.Sort(uintSlice(v2))
  10426. for _, k2 := range v2 {
  10427. if cr != nil {
  10428. cr.sendContainerState(containerMapKey)
  10429. }
  10430. e.encode(uintptr(k2))
  10431. if cr != nil {
  10432. cr.sendContainerState(containerMapValue)
  10433. }
  10434. ee.EncodeInt(int64(v[uintptr(k2)]))
  10435. }
  10436. } else {
  10437. for k2, v2 := range v {
  10438. if cr != nil {
  10439. cr.sendContainerState(containerMapKey)
  10440. }
  10441. e.encode(k2)
  10442. if cr != nil {
  10443. cr.sendContainerState(containerMapValue)
  10444. }
  10445. ee.EncodeInt(int64(v2))
  10446. }
  10447. }
  10448. if cr != nil {
  10449. cr.sendContainerState(containerMapEnd)
  10450. }
  10451. }
  10452. func (f *encFnInfo) fastpathEncMapUintptrInt8R(rv reflect.Value) {
  10453. fastpathTV.EncMapUintptrInt8V(rv.Interface().(map[uintptr]int8), fastpathCheckNilFalse, f.e)
  10454. }
  10455. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, checkNil bool, e *Encoder) {
  10456. ee := e.e
  10457. cr := e.cr
  10458. if checkNil && v == nil {
  10459. ee.EncodeNil()
  10460. return
  10461. }
  10462. ee.EncodeMapStart(len(v))
  10463. if e.h.Canonical {
  10464. v2 := make([]uint64, len(v))
  10465. var i int
  10466. for k, _ := range v {
  10467. v2[i] = uint64(k)
  10468. i++
  10469. }
  10470. sort.Sort(uintSlice(v2))
  10471. for _, k2 := range v2 {
  10472. if cr != nil {
  10473. cr.sendContainerState(containerMapKey)
  10474. }
  10475. e.encode(uintptr(k2))
  10476. if cr != nil {
  10477. cr.sendContainerState(containerMapValue)
  10478. }
  10479. ee.EncodeInt(int64(v[uintptr(k2)]))
  10480. }
  10481. } else {
  10482. for k2, v2 := range v {
  10483. if cr != nil {
  10484. cr.sendContainerState(containerMapKey)
  10485. }
  10486. e.encode(k2)
  10487. if cr != nil {
  10488. cr.sendContainerState(containerMapValue)
  10489. }
  10490. ee.EncodeInt(int64(v2))
  10491. }
  10492. }
  10493. if cr != nil {
  10494. cr.sendContainerState(containerMapEnd)
  10495. }
  10496. }
  10497. func (f *encFnInfo) fastpathEncMapUintptrInt16R(rv reflect.Value) {
  10498. fastpathTV.EncMapUintptrInt16V(rv.Interface().(map[uintptr]int16), fastpathCheckNilFalse, f.e)
  10499. }
  10500. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, checkNil bool, e *Encoder) {
  10501. ee := e.e
  10502. cr := e.cr
  10503. if checkNil && v == nil {
  10504. ee.EncodeNil()
  10505. return
  10506. }
  10507. ee.EncodeMapStart(len(v))
  10508. if e.h.Canonical {
  10509. v2 := make([]uint64, len(v))
  10510. var i int
  10511. for k, _ := range v {
  10512. v2[i] = uint64(k)
  10513. i++
  10514. }
  10515. sort.Sort(uintSlice(v2))
  10516. for _, k2 := range v2 {
  10517. if cr != nil {
  10518. cr.sendContainerState(containerMapKey)
  10519. }
  10520. e.encode(uintptr(k2))
  10521. if cr != nil {
  10522. cr.sendContainerState(containerMapValue)
  10523. }
  10524. ee.EncodeInt(int64(v[uintptr(k2)]))
  10525. }
  10526. } else {
  10527. for k2, v2 := range v {
  10528. if cr != nil {
  10529. cr.sendContainerState(containerMapKey)
  10530. }
  10531. e.encode(k2)
  10532. if cr != nil {
  10533. cr.sendContainerState(containerMapValue)
  10534. }
  10535. ee.EncodeInt(int64(v2))
  10536. }
  10537. }
  10538. if cr != nil {
  10539. cr.sendContainerState(containerMapEnd)
  10540. }
  10541. }
  10542. func (f *encFnInfo) fastpathEncMapUintptrInt32R(rv reflect.Value) {
  10543. fastpathTV.EncMapUintptrInt32V(rv.Interface().(map[uintptr]int32), fastpathCheckNilFalse, f.e)
  10544. }
  10545. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, checkNil bool, e *Encoder) {
  10546. ee := e.e
  10547. cr := e.cr
  10548. if checkNil && v == nil {
  10549. ee.EncodeNil()
  10550. return
  10551. }
  10552. ee.EncodeMapStart(len(v))
  10553. if e.h.Canonical {
  10554. v2 := make([]uint64, len(v))
  10555. var i int
  10556. for k, _ := range v {
  10557. v2[i] = uint64(k)
  10558. i++
  10559. }
  10560. sort.Sort(uintSlice(v2))
  10561. for _, k2 := range v2 {
  10562. if cr != nil {
  10563. cr.sendContainerState(containerMapKey)
  10564. }
  10565. e.encode(uintptr(k2))
  10566. if cr != nil {
  10567. cr.sendContainerState(containerMapValue)
  10568. }
  10569. ee.EncodeInt(int64(v[uintptr(k2)]))
  10570. }
  10571. } else {
  10572. for k2, v2 := range v {
  10573. if cr != nil {
  10574. cr.sendContainerState(containerMapKey)
  10575. }
  10576. e.encode(k2)
  10577. if cr != nil {
  10578. cr.sendContainerState(containerMapValue)
  10579. }
  10580. ee.EncodeInt(int64(v2))
  10581. }
  10582. }
  10583. if cr != nil {
  10584. cr.sendContainerState(containerMapEnd)
  10585. }
  10586. }
  10587. func (f *encFnInfo) fastpathEncMapUintptrInt64R(rv reflect.Value) {
  10588. fastpathTV.EncMapUintptrInt64V(rv.Interface().(map[uintptr]int64), fastpathCheckNilFalse, f.e)
  10589. }
  10590. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, checkNil bool, e *Encoder) {
  10591. ee := e.e
  10592. cr := e.cr
  10593. if checkNil && v == nil {
  10594. ee.EncodeNil()
  10595. return
  10596. }
  10597. ee.EncodeMapStart(len(v))
  10598. if e.h.Canonical {
  10599. v2 := make([]uint64, len(v))
  10600. var i int
  10601. for k, _ := range v {
  10602. v2[i] = uint64(k)
  10603. i++
  10604. }
  10605. sort.Sort(uintSlice(v2))
  10606. for _, k2 := range v2 {
  10607. if cr != nil {
  10608. cr.sendContainerState(containerMapKey)
  10609. }
  10610. e.encode(uintptr(k2))
  10611. if cr != nil {
  10612. cr.sendContainerState(containerMapValue)
  10613. }
  10614. ee.EncodeInt(int64(v[uintptr(k2)]))
  10615. }
  10616. } else {
  10617. for k2, v2 := range v {
  10618. if cr != nil {
  10619. cr.sendContainerState(containerMapKey)
  10620. }
  10621. e.encode(k2)
  10622. if cr != nil {
  10623. cr.sendContainerState(containerMapValue)
  10624. }
  10625. ee.EncodeInt(int64(v2))
  10626. }
  10627. }
  10628. if cr != nil {
  10629. cr.sendContainerState(containerMapEnd)
  10630. }
  10631. }
  10632. func (f *encFnInfo) fastpathEncMapUintptrFloat32R(rv reflect.Value) {
  10633. fastpathTV.EncMapUintptrFloat32V(rv.Interface().(map[uintptr]float32), fastpathCheckNilFalse, f.e)
  10634. }
  10635. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, checkNil bool, e *Encoder) {
  10636. ee := e.e
  10637. cr := e.cr
  10638. if checkNil && v == nil {
  10639. ee.EncodeNil()
  10640. return
  10641. }
  10642. ee.EncodeMapStart(len(v))
  10643. if e.h.Canonical {
  10644. v2 := make([]uint64, len(v))
  10645. var i int
  10646. for k, _ := range v {
  10647. v2[i] = uint64(k)
  10648. i++
  10649. }
  10650. sort.Sort(uintSlice(v2))
  10651. for _, k2 := range v2 {
  10652. if cr != nil {
  10653. cr.sendContainerState(containerMapKey)
  10654. }
  10655. e.encode(uintptr(k2))
  10656. if cr != nil {
  10657. cr.sendContainerState(containerMapValue)
  10658. }
  10659. ee.EncodeFloat32(v[uintptr(k2)])
  10660. }
  10661. } else {
  10662. for k2, v2 := range v {
  10663. if cr != nil {
  10664. cr.sendContainerState(containerMapKey)
  10665. }
  10666. e.encode(k2)
  10667. if cr != nil {
  10668. cr.sendContainerState(containerMapValue)
  10669. }
  10670. ee.EncodeFloat32(v2)
  10671. }
  10672. }
  10673. if cr != nil {
  10674. cr.sendContainerState(containerMapEnd)
  10675. }
  10676. }
  10677. func (f *encFnInfo) fastpathEncMapUintptrFloat64R(rv reflect.Value) {
  10678. fastpathTV.EncMapUintptrFloat64V(rv.Interface().(map[uintptr]float64), fastpathCheckNilFalse, f.e)
  10679. }
  10680. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, checkNil bool, e *Encoder) {
  10681. ee := e.e
  10682. cr := e.cr
  10683. if checkNil && v == nil {
  10684. ee.EncodeNil()
  10685. return
  10686. }
  10687. ee.EncodeMapStart(len(v))
  10688. if e.h.Canonical {
  10689. v2 := make([]uint64, len(v))
  10690. var i int
  10691. for k, _ := range v {
  10692. v2[i] = uint64(k)
  10693. i++
  10694. }
  10695. sort.Sort(uintSlice(v2))
  10696. for _, k2 := range v2 {
  10697. if cr != nil {
  10698. cr.sendContainerState(containerMapKey)
  10699. }
  10700. e.encode(uintptr(k2))
  10701. if cr != nil {
  10702. cr.sendContainerState(containerMapValue)
  10703. }
  10704. ee.EncodeFloat64(v[uintptr(k2)])
  10705. }
  10706. } else {
  10707. for k2, v2 := range v {
  10708. if cr != nil {
  10709. cr.sendContainerState(containerMapKey)
  10710. }
  10711. e.encode(k2)
  10712. if cr != nil {
  10713. cr.sendContainerState(containerMapValue)
  10714. }
  10715. ee.EncodeFloat64(v2)
  10716. }
  10717. }
  10718. if cr != nil {
  10719. cr.sendContainerState(containerMapEnd)
  10720. }
  10721. }
  10722. func (f *encFnInfo) fastpathEncMapUintptrBoolR(rv reflect.Value) {
  10723. fastpathTV.EncMapUintptrBoolV(rv.Interface().(map[uintptr]bool), fastpathCheckNilFalse, f.e)
  10724. }
  10725. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, checkNil bool, e *Encoder) {
  10726. ee := e.e
  10727. cr := e.cr
  10728. if checkNil && v == nil {
  10729. ee.EncodeNil()
  10730. return
  10731. }
  10732. ee.EncodeMapStart(len(v))
  10733. if e.h.Canonical {
  10734. v2 := make([]uint64, len(v))
  10735. var i int
  10736. for k, _ := range v {
  10737. v2[i] = uint64(k)
  10738. i++
  10739. }
  10740. sort.Sort(uintSlice(v2))
  10741. for _, k2 := range v2 {
  10742. if cr != nil {
  10743. cr.sendContainerState(containerMapKey)
  10744. }
  10745. e.encode(uintptr(k2))
  10746. if cr != nil {
  10747. cr.sendContainerState(containerMapValue)
  10748. }
  10749. ee.EncodeBool(v[uintptr(k2)])
  10750. }
  10751. } else {
  10752. for k2, v2 := range v {
  10753. if cr != nil {
  10754. cr.sendContainerState(containerMapKey)
  10755. }
  10756. e.encode(k2)
  10757. if cr != nil {
  10758. cr.sendContainerState(containerMapValue)
  10759. }
  10760. ee.EncodeBool(v2)
  10761. }
  10762. }
  10763. if cr != nil {
  10764. cr.sendContainerState(containerMapEnd)
  10765. }
  10766. }
  10767. func (f *encFnInfo) fastpathEncMapIntIntfR(rv reflect.Value) {
  10768. fastpathTV.EncMapIntIntfV(rv.Interface().(map[int]interface{}), fastpathCheckNilFalse, f.e)
  10769. }
  10770. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, checkNil bool, e *Encoder) {
  10771. ee := e.e
  10772. cr := e.cr
  10773. if checkNil && v == nil {
  10774. ee.EncodeNil()
  10775. return
  10776. }
  10777. ee.EncodeMapStart(len(v))
  10778. if e.h.Canonical {
  10779. v2 := make([]int64, len(v))
  10780. var i int
  10781. for k, _ := range v {
  10782. v2[i] = int64(k)
  10783. i++
  10784. }
  10785. sort.Sort(intSlice(v2))
  10786. for _, k2 := range v2 {
  10787. if cr != nil {
  10788. cr.sendContainerState(containerMapKey)
  10789. }
  10790. ee.EncodeInt(int64(int(k2)))
  10791. if cr != nil {
  10792. cr.sendContainerState(containerMapValue)
  10793. }
  10794. e.encode(v[int(k2)])
  10795. }
  10796. } else {
  10797. for k2, v2 := range v {
  10798. if cr != nil {
  10799. cr.sendContainerState(containerMapKey)
  10800. }
  10801. ee.EncodeInt(int64(k2))
  10802. if cr != nil {
  10803. cr.sendContainerState(containerMapValue)
  10804. }
  10805. e.encode(v2)
  10806. }
  10807. }
  10808. if cr != nil {
  10809. cr.sendContainerState(containerMapEnd)
  10810. }
  10811. }
  10812. func (f *encFnInfo) fastpathEncMapIntStringR(rv reflect.Value) {
  10813. fastpathTV.EncMapIntStringV(rv.Interface().(map[int]string), fastpathCheckNilFalse, f.e)
  10814. }
  10815. func (_ fastpathT) EncMapIntStringV(v map[int]string, checkNil bool, e *Encoder) {
  10816. ee := e.e
  10817. cr := e.cr
  10818. if checkNil && v == nil {
  10819. ee.EncodeNil()
  10820. return
  10821. }
  10822. ee.EncodeMapStart(len(v))
  10823. if e.h.Canonical {
  10824. v2 := make([]int64, len(v))
  10825. var i int
  10826. for k, _ := range v {
  10827. v2[i] = int64(k)
  10828. i++
  10829. }
  10830. sort.Sort(intSlice(v2))
  10831. for _, k2 := range v2 {
  10832. if cr != nil {
  10833. cr.sendContainerState(containerMapKey)
  10834. }
  10835. ee.EncodeInt(int64(int(k2)))
  10836. if cr != nil {
  10837. cr.sendContainerState(containerMapValue)
  10838. }
  10839. ee.EncodeString(c_UTF8, v[int(k2)])
  10840. }
  10841. } else {
  10842. for k2, v2 := range v {
  10843. if cr != nil {
  10844. cr.sendContainerState(containerMapKey)
  10845. }
  10846. ee.EncodeInt(int64(k2))
  10847. if cr != nil {
  10848. cr.sendContainerState(containerMapValue)
  10849. }
  10850. ee.EncodeString(c_UTF8, v2)
  10851. }
  10852. }
  10853. if cr != nil {
  10854. cr.sendContainerState(containerMapEnd)
  10855. }
  10856. }
  10857. func (f *encFnInfo) fastpathEncMapIntUintR(rv reflect.Value) {
  10858. fastpathTV.EncMapIntUintV(rv.Interface().(map[int]uint), fastpathCheckNilFalse, f.e)
  10859. }
  10860. func (_ fastpathT) EncMapIntUintV(v map[int]uint, checkNil bool, e *Encoder) {
  10861. ee := e.e
  10862. cr := e.cr
  10863. if checkNil && v == nil {
  10864. ee.EncodeNil()
  10865. return
  10866. }
  10867. ee.EncodeMapStart(len(v))
  10868. if e.h.Canonical {
  10869. v2 := make([]int64, len(v))
  10870. var i int
  10871. for k, _ := range v {
  10872. v2[i] = int64(k)
  10873. i++
  10874. }
  10875. sort.Sort(intSlice(v2))
  10876. for _, k2 := range v2 {
  10877. if cr != nil {
  10878. cr.sendContainerState(containerMapKey)
  10879. }
  10880. ee.EncodeInt(int64(int(k2)))
  10881. if cr != nil {
  10882. cr.sendContainerState(containerMapValue)
  10883. }
  10884. ee.EncodeUint(uint64(v[int(k2)]))
  10885. }
  10886. } else {
  10887. for k2, v2 := range v {
  10888. if cr != nil {
  10889. cr.sendContainerState(containerMapKey)
  10890. }
  10891. ee.EncodeInt(int64(k2))
  10892. if cr != nil {
  10893. cr.sendContainerState(containerMapValue)
  10894. }
  10895. ee.EncodeUint(uint64(v2))
  10896. }
  10897. }
  10898. if cr != nil {
  10899. cr.sendContainerState(containerMapEnd)
  10900. }
  10901. }
  10902. func (f *encFnInfo) fastpathEncMapIntUint8R(rv reflect.Value) {
  10903. fastpathTV.EncMapIntUint8V(rv.Interface().(map[int]uint8), fastpathCheckNilFalse, f.e)
  10904. }
  10905. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, checkNil bool, e *Encoder) {
  10906. ee := e.e
  10907. cr := e.cr
  10908. if checkNil && v == nil {
  10909. ee.EncodeNil()
  10910. return
  10911. }
  10912. ee.EncodeMapStart(len(v))
  10913. if e.h.Canonical {
  10914. v2 := make([]int64, len(v))
  10915. var i int
  10916. for k, _ := range v {
  10917. v2[i] = int64(k)
  10918. i++
  10919. }
  10920. sort.Sort(intSlice(v2))
  10921. for _, k2 := range v2 {
  10922. if cr != nil {
  10923. cr.sendContainerState(containerMapKey)
  10924. }
  10925. ee.EncodeInt(int64(int(k2)))
  10926. if cr != nil {
  10927. cr.sendContainerState(containerMapValue)
  10928. }
  10929. ee.EncodeUint(uint64(v[int(k2)]))
  10930. }
  10931. } else {
  10932. for k2, v2 := range v {
  10933. if cr != nil {
  10934. cr.sendContainerState(containerMapKey)
  10935. }
  10936. ee.EncodeInt(int64(k2))
  10937. if cr != nil {
  10938. cr.sendContainerState(containerMapValue)
  10939. }
  10940. ee.EncodeUint(uint64(v2))
  10941. }
  10942. }
  10943. if cr != nil {
  10944. cr.sendContainerState(containerMapEnd)
  10945. }
  10946. }
  10947. func (f *encFnInfo) fastpathEncMapIntUint16R(rv reflect.Value) {
  10948. fastpathTV.EncMapIntUint16V(rv.Interface().(map[int]uint16), fastpathCheckNilFalse, f.e)
  10949. }
  10950. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, checkNil bool, e *Encoder) {
  10951. ee := e.e
  10952. cr := e.cr
  10953. if checkNil && v == nil {
  10954. ee.EncodeNil()
  10955. return
  10956. }
  10957. ee.EncodeMapStart(len(v))
  10958. if e.h.Canonical {
  10959. v2 := make([]int64, len(v))
  10960. var i int
  10961. for k, _ := range v {
  10962. v2[i] = int64(k)
  10963. i++
  10964. }
  10965. sort.Sort(intSlice(v2))
  10966. for _, k2 := range v2 {
  10967. if cr != nil {
  10968. cr.sendContainerState(containerMapKey)
  10969. }
  10970. ee.EncodeInt(int64(int(k2)))
  10971. if cr != nil {
  10972. cr.sendContainerState(containerMapValue)
  10973. }
  10974. ee.EncodeUint(uint64(v[int(k2)]))
  10975. }
  10976. } else {
  10977. for k2, v2 := range v {
  10978. if cr != nil {
  10979. cr.sendContainerState(containerMapKey)
  10980. }
  10981. ee.EncodeInt(int64(k2))
  10982. if cr != nil {
  10983. cr.sendContainerState(containerMapValue)
  10984. }
  10985. ee.EncodeUint(uint64(v2))
  10986. }
  10987. }
  10988. if cr != nil {
  10989. cr.sendContainerState(containerMapEnd)
  10990. }
  10991. }
  10992. func (f *encFnInfo) fastpathEncMapIntUint32R(rv reflect.Value) {
  10993. fastpathTV.EncMapIntUint32V(rv.Interface().(map[int]uint32), fastpathCheckNilFalse, f.e)
  10994. }
  10995. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, checkNil bool, e *Encoder) {
  10996. ee := e.e
  10997. cr := e.cr
  10998. if checkNil && v == nil {
  10999. ee.EncodeNil()
  11000. return
  11001. }
  11002. ee.EncodeMapStart(len(v))
  11003. if e.h.Canonical {
  11004. v2 := make([]int64, len(v))
  11005. var i int
  11006. for k, _ := range v {
  11007. v2[i] = int64(k)
  11008. i++
  11009. }
  11010. sort.Sort(intSlice(v2))
  11011. for _, k2 := range v2 {
  11012. if cr != nil {
  11013. cr.sendContainerState(containerMapKey)
  11014. }
  11015. ee.EncodeInt(int64(int(k2)))
  11016. if cr != nil {
  11017. cr.sendContainerState(containerMapValue)
  11018. }
  11019. ee.EncodeUint(uint64(v[int(k2)]))
  11020. }
  11021. } else {
  11022. for k2, v2 := range v {
  11023. if cr != nil {
  11024. cr.sendContainerState(containerMapKey)
  11025. }
  11026. ee.EncodeInt(int64(k2))
  11027. if cr != nil {
  11028. cr.sendContainerState(containerMapValue)
  11029. }
  11030. ee.EncodeUint(uint64(v2))
  11031. }
  11032. }
  11033. if cr != nil {
  11034. cr.sendContainerState(containerMapEnd)
  11035. }
  11036. }
  11037. func (f *encFnInfo) fastpathEncMapIntUint64R(rv reflect.Value) {
  11038. fastpathTV.EncMapIntUint64V(rv.Interface().(map[int]uint64), fastpathCheckNilFalse, f.e)
  11039. }
  11040. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, checkNil bool, e *Encoder) {
  11041. ee := e.e
  11042. cr := e.cr
  11043. if checkNil && v == nil {
  11044. ee.EncodeNil()
  11045. return
  11046. }
  11047. ee.EncodeMapStart(len(v))
  11048. if e.h.Canonical {
  11049. v2 := make([]int64, len(v))
  11050. var i int
  11051. for k, _ := range v {
  11052. v2[i] = int64(k)
  11053. i++
  11054. }
  11055. sort.Sort(intSlice(v2))
  11056. for _, k2 := range v2 {
  11057. if cr != nil {
  11058. cr.sendContainerState(containerMapKey)
  11059. }
  11060. ee.EncodeInt(int64(int(k2)))
  11061. if cr != nil {
  11062. cr.sendContainerState(containerMapValue)
  11063. }
  11064. ee.EncodeUint(uint64(v[int(k2)]))
  11065. }
  11066. } else {
  11067. for k2, v2 := range v {
  11068. if cr != nil {
  11069. cr.sendContainerState(containerMapKey)
  11070. }
  11071. ee.EncodeInt(int64(k2))
  11072. if cr != nil {
  11073. cr.sendContainerState(containerMapValue)
  11074. }
  11075. ee.EncodeUint(uint64(v2))
  11076. }
  11077. }
  11078. if cr != nil {
  11079. cr.sendContainerState(containerMapEnd)
  11080. }
  11081. }
  11082. func (f *encFnInfo) fastpathEncMapIntUintptrR(rv reflect.Value) {
  11083. fastpathTV.EncMapIntUintptrV(rv.Interface().(map[int]uintptr), fastpathCheckNilFalse, f.e)
  11084. }
  11085. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, checkNil bool, e *Encoder) {
  11086. ee := e.e
  11087. cr := e.cr
  11088. if checkNil && v == nil {
  11089. ee.EncodeNil()
  11090. return
  11091. }
  11092. ee.EncodeMapStart(len(v))
  11093. if e.h.Canonical {
  11094. v2 := make([]int64, len(v))
  11095. var i int
  11096. for k, _ := range v {
  11097. v2[i] = int64(k)
  11098. i++
  11099. }
  11100. sort.Sort(intSlice(v2))
  11101. for _, k2 := range v2 {
  11102. if cr != nil {
  11103. cr.sendContainerState(containerMapKey)
  11104. }
  11105. ee.EncodeInt(int64(int(k2)))
  11106. if cr != nil {
  11107. cr.sendContainerState(containerMapValue)
  11108. }
  11109. e.encode(v[int(k2)])
  11110. }
  11111. } else {
  11112. for k2, v2 := range v {
  11113. if cr != nil {
  11114. cr.sendContainerState(containerMapKey)
  11115. }
  11116. ee.EncodeInt(int64(k2))
  11117. if cr != nil {
  11118. cr.sendContainerState(containerMapValue)
  11119. }
  11120. e.encode(v2)
  11121. }
  11122. }
  11123. if cr != nil {
  11124. cr.sendContainerState(containerMapEnd)
  11125. }
  11126. }
  11127. func (f *encFnInfo) fastpathEncMapIntIntR(rv reflect.Value) {
  11128. fastpathTV.EncMapIntIntV(rv.Interface().(map[int]int), fastpathCheckNilFalse, f.e)
  11129. }
  11130. func (_ fastpathT) EncMapIntIntV(v map[int]int, checkNil bool, e *Encoder) {
  11131. ee := e.e
  11132. cr := e.cr
  11133. if checkNil && v == nil {
  11134. ee.EncodeNil()
  11135. return
  11136. }
  11137. ee.EncodeMapStart(len(v))
  11138. if e.h.Canonical {
  11139. v2 := make([]int64, len(v))
  11140. var i int
  11141. for k, _ := range v {
  11142. v2[i] = int64(k)
  11143. i++
  11144. }
  11145. sort.Sort(intSlice(v2))
  11146. for _, k2 := range v2 {
  11147. if cr != nil {
  11148. cr.sendContainerState(containerMapKey)
  11149. }
  11150. ee.EncodeInt(int64(int(k2)))
  11151. if cr != nil {
  11152. cr.sendContainerState(containerMapValue)
  11153. }
  11154. ee.EncodeInt(int64(v[int(k2)]))
  11155. }
  11156. } else {
  11157. for k2, v2 := range v {
  11158. if cr != nil {
  11159. cr.sendContainerState(containerMapKey)
  11160. }
  11161. ee.EncodeInt(int64(k2))
  11162. if cr != nil {
  11163. cr.sendContainerState(containerMapValue)
  11164. }
  11165. ee.EncodeInt(int64(v2))
  11166. }
  11167. }
  11168. if cr != nil {
  11169. cr.sendContainerState(containerMapEnd)
  11170. }
  11171. }
  11172. func (f *encFnInfo) fastpathEncMapIntInt8R(rv reflect.Value) {
  11173. fastpathTV.EncMapIntInt8V(rv.Interface().(map[int]int8), fastpathCheckNilFalse, f.e)
  11174. }
  11175. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, checkNil bool, e *Encoder) {
  11176. ee := e.e
  11177. cr := e.cr
  11178. if checkNil && v == nil {
  11179. ee.EncodeNil()
  11180. return
  11181. }
  11182. ee.EncodeMapStart(len(v))
  11183. if e.h.Canonical {
  11184. v2 := make([]int64, len(v))
  11185. var i int
  11186. for k, _ := range v {
  11187. v2[i] = int64(k)
  11188. i++
  11189. }
  11190. sort.Sort(intSlice(v2))
  11191. for _, k2 := range v2 {
  11192. if cr != nil {
  11193. cr.sendContainerState(containerMapKey)
  11194. }
  11195. ee.EncodeInt(int64(int(k2)))
  11196. if cr != nil {
  11197. cr.sendContainerState(containerMapValue)
  11198. }
  11199. ee.EncodeInt(int64(v[int(k2)]))
  11200. }
  11201. } else {
  11202. for k2, v2 := range v {
  11203. if cr != nil {
  11204. cr.sendContainerState(containerMapKey)
  11205. }
  11206. ee.EncodeInt(int64(k2))
  11207. if cr != nil {
  11208. cr.sendContainerState(containerMapValue)
  11209. }
  11210. ee.EncodeInt(int64(v2))
  11211. }
  11212. }
  11213. if cr != nil {
  11214. cr.sendContainerState(containerMapEnd)
  11215. }
  11216. }
  11217. func (f *encFnInfo) fastpathEncMapIntInt16R(rv reflect.Value) {
  11218. fastpathTV.EncMapIntInt16V(rv.Interface().(map[int]int16), fastpathCheckNilFalse, f.e)
  11219. }
  11220. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, checkNil bool, e *Encoder) {
  11221. ee := e.e
  11222. cr := e.cr
  11223. if checkNil && v == nil {
  11224. ee.EncodeNil()
  11225. return
  11226. }
  11227. ee.EncodeMapStart(len(v))
  11228. if e.h.Canonical {
  11229. v2 := make([]int64, len(v))
  11230. var i int
  11231. for k, _ := range v {
  11232. v2[i] = int64(k)
  11233. i++
  11234. }
  11235. sort.Sort(intSlice(v2))
  11236. for _, k2 := range v2 {
  11237. if cr != nil {
  11238. cr.sendContainerState(containerMapKey)
  11239. }
  11240. ee.EncodeInt(int64(int(k2)))
  11241. if cr != nil {
  11242. cr.sendContainerState(containerMapValue)
  11243. }
  11244. ee.EncodeInt(int64(v[int(k2)]))
  11245. }
  11246. } else {
  11247. for k2, v2 := range v {
  11248. if cr != nil {
  11249. cr.sendContainerState(containerMapKey)
  11250. }
  11251. ee.EncodeInt(int64(k2))
  11252. if cr != nil {
  11253. cr.sendContainerState(containerMapValue)
  11254. }
  11255. ee.EncodeInt(int64(v2))
  11256. }
  11257. }
  11258. if cr != nil {
  11259. cr.sendContainerState(containerMapEnd)
  11260. }
  11261. }
  11262. func (f *encFnInfo) fastpathEncMapIntInt32R(rv reflect.Value) {
  11263. fastpathTV.EncMapIntInt32V(rv.Interface().(map[int]int32), fastpathCheckNilFalse, f.e)
  11264. }
  11265. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, checkNil bool, e *Encoder) {
  11266. ee := e.e
  11267. cr := e.cr
  11268. if checkNil && v == nil {
  11269. ee.EncodeNil()
  11270. return
  11271. }
  11272. ee.EncodeMapStart(len(v))
  11273. if e.h.Canonical {
  11274. v2 := make([]int64, len(v))
  11275. var i int
  11276. for k, _ := range v {
  11277. v2[i] = int64(k)
  11278. i++
  11279. }
  11280. sort.Sort(intSlice(v2))
  11281. for _, k2 := range v2 {
  11282. if cr != nil {
  11283. cr.sendContainerState(containerMapKey)
  11284. }
  11285. ee.EncodeInt(int64(int(k2)))
  11286. if cr != nil {
  11287. cr.sendContainerState(containerMapValue)
  11288. }
  11289. ee.EncodeInt(int64(v[int(k2)]))
  11290. }
  11291. } else {
  11292. for k2, v2 := range v {
  11293. if cr != nil {
  11294. cr.sendContainerState(containerMapKey)
  11295. }
  11296. ee.EncodeInt(int64(k2))
  11297. if cr != nil {
  11298. cr.sendContainerState(containerMapValue)
  11299. }
  11300. ee.EncodeInt(int64(v2))
  11301. }
  11302. }
  11303. if cr != nil {
  11304. cr.sendContainerState(containerMapEnd)
  11305. }
  11306. }
  11307. func (f *encFnInfo) fastpathEncMapIntInt64R(rv reflect.Value) {
  11308. fastpathTV.EncMapIntInt64V(rv.Interface().(map[int]int64), fastpathCheckNilFalse, f.e)
  11309. }
  11310. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, checkNil bool, e *Encoder) {
  11311. ee := e.e
  11312. cr := e.cr
  11313. if checkNil && v == nil {
  11314. ee.EncodeNil()
  11315. return
  11316. }
  11317. ee.EncodeMapStart(len(v))
  11318. if e.h.Canonical {
  11319. v2 := make([]int64, len(v))
  11320. var i int
  11321. for k, _ := range v {
  11322. v2[i] = int64(k)
  11323. i++
  11324. }
  11325. sort.Sort(intSlice(v2))
  11326. for _, k2 := range v2 {
  11327. if cr != nil {
  11328. cr.sendContainerState(containerMapKey)
  11329. }
  11330. ee.EncodeInt(int64(int(k2)))
  11331. if cr != nil {
  11332. cr.sendContainerState(containerMapValue)
  11333. }
  11334. ee.EncodeInt(int64(v[int(k2)]))
  11335. }
  11336. } else {
  11337. for k2, v2 := range v {
  11338. if cr != nil {
  11339. cr.sendContainerState(containerMapKey)
  11340. }
  11341. ee.EncodeInt(int64(k2))
  11342. if cr != nil {
  11343. cr.sendContainerState(containerMapValue)
  11344. }
  11345. ee.EncodeInt(int64(v2))
  11346. }
  11347. }
  11348. if cr != nil {
  11349. cr.sendContainerState(containerMapEnd)
  11350. }
  11351. }
  11352. func (f *encFnInfo) fastpathEncMapIntFloat32R(rv reflect.Value) {
  11353. fastpathTV.EncMapIntFloat32V(rv.Interface().(map[int]float32), fastpathCheckNilFalse, f.e)
  11354. }
  11355. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, checkNil bool, e *Encoder) {
  11356. ee := e.e
  11357. cr := e.cr
  11358. if checkNil && v == nil {
  11359. ee.EncodeNil()
  11360. return
  11361. }
  11362. ee.EncodeMapStart(len(v))
  11363. if e.h.Canonical {
  11364. v2 := make([]int64, len(v))
  11365. var i int
  11366. for k, _ := range v {
  11367. v2[i] = int64(k)
  11368. i++
  11369. }
  11370. sort.Sort(intSlice(v2))
  11371. for _, k2 := range v2 {
  11372. if cr != nil {
  11373. cr.sendContainerState(containerMapKey)
  11374. }
  11375. ee.EncodeInt(int64(int(k2)))
  11376. if cr != nil {
  11377. cr.sendContainerState(containerMapValue)
  11378. }
  11379. ee.EncodeFloat32(v[int(k2)])
  11380. }
  11381. } else {
  11382. for k2, v2 := range v {
  11383. if cr != nil {
  11384. cr.sendContainerState(containerMapKey)
  11385. }
  11386. ee.EncodeInt(int64(k2))
  11387. if cr != nil {
  11388. cr.sendContainerState(containerMapValue)
  11389. }
  11390. ee.EncodeFloat32(v2)
  11391. }
  11392. }
  11393. if cr != nil {
  11394. cr.sendContainerState(containerMapEnd)
  11395. }
  11396. }
  11397. func (f *encFnInfo) fastpathEncMapIntFloat64R(rv reflect.Value) {
  11398. fastpathTV.EncMapIntFloat64V(rv.Interface().(map[int]float64), fastpathCheckNilFalse, f.e)
  11399. }
  11400. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, checkNil bool, e *Encoder) {
  11401. ee := e.e
  11402. cr := e.cr
  11403. if checkNil && v == nil {
  11404. ee.EncodeNil()
  11405. return
  11406. }
  11407. ee.EncodeMapStart(len(v))
  11408. if e.h.Canonical {
  11409. v2 := make([]int64, len(v))
  11410. var i int
  11411. for k, _ := range v {
  11412. v2[i] = int64(k)
  11413. i++
  11414. }
  11415. sort.Sort(intSlice(v2))
  11416. for _, k2 := range v2 {
  11417. if cr != nil {
  11418. cr.sendContainerState(containerMapKey)
  11419. }
  11420. ee.EncodeInt(int64(int(k2)))
  11421. if cr != nil {
  11422. cr.sendContainerState(containerMapValue)
  11423. }
  11424. ee.EncodeFloat64(v[int(k2)])
  11425. }
  11426. } else {
  11427. for k2, v2 := range v {
  11428. if cr != nil {
  11429. cr.sendContainerState(containerMapKey)
  11430. }
  11431. ee.EncodeInt(int64(k2))
  11432. if cr != nil {
  11433. cr.sendContainerState(containerMapValue)
  11434. }
  11435. ee.EncodeFloat64(v2)
  11436. }
  11437. }
  11438. if cr != nil {
  11439. cr.sendContainerState(containerMapEnd)
  11440. }
  11441. }
  11442. func (f *encFnInfo) fastpathEncMapIntBoolR(rv reflect.Value) {
  11443. fastpathTV.EncMapIntBoolV(rv.Interface().(map[int]bool), fastpathCheckNilFalse, f.e)
  11444. }
  11445. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, checkNil bool, e *Encoder) {
  11446. ee := e.e
  11447. cr := e.cr
  11448. if checkNil && v == nil {
  11449. ee.EncodeNil()
  11450. return
  11451. }
  11452. ee.EncodeMapStart(len(v))
  11453. if e.h.Canonical {
  11454. v2 := make([]int64, len(v))
  11455. var i int
  11456. for k, _ := range v {
  11457. v2[i] = int64(k)
  11458. i++
  11459. }
  11460. sort.Sort(intSlice(v2))
  11461. for _, k2 := range v2 {
  11462. if cr != nil {
  11463. cr.sendContainerState(containerMapKey)
  11464. }
  11465. ee.EncodeInt(int64(int(k2)))
  11466. if cr != nil {
  11467. cr.sendContainerState(containerMapValue)
  11468. }
  11469. ee.EncodeBool(v[int(k2)])
  11470. }
  11471. } else {
  11472. for k2, v2 := range v {
  11473. if cr != nil {
  11474. cr.sendContainerState(containerMapKey)
  11475. }
  11476. ee.EncodeInt(int64(k2))
  11477. if cr != nil {
  11478. cr.sendContainerState(containerMapValue)
  11479. }
  11480. ee.EncodeBool(v2)
  11481. }
  11482. }
  11483. if cr != nil {
  11484. cr.sendContainerState(containerMapEnd)
  11485. }
  11486. }
  11487. func (f *encFnInfo) fastpathEncMapInt8IntfR(rv reflect.Value) {
  11488. fastpathTV.EncMapInt8IntfV(rv.Interface().(map[int8]interface{}), fastpathCheckNilFalse, f.e)
  11489. }
  11490. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, checkNil bool, e *Encoder) {
  11491. ee := e.e
  11492. cr := e.cr
  11493. if checkNil && v == nil {
  11494. ee.EncodeNil()
  11495. return
  11496. }
  11497. ee.EncodeMapStart(len(v))
  11498. if e.h.Canonical {
  11499. v2 := make([]int64, len(v))
  11500. var i int
  11501. for k, _ := range v {
  11502. v2[i] = int64(k)
  11503. i++
  11504. }
  11505. sort.Sort(intSlice(v2))
  11506. for _, k2 := range v2 {
  11507. if cr != nil {
  11508. cr.sendContainerState(containerMapKey)
  11509. }
  11510. ee.EncodeInt(int64(int8(k2)))
  11511. if cr != nil {
  11512. cr.sendContainerState(containerMapValue)
  11513. }
  11514. e.encode(v[int8(k2)])
  11515. }
  11516. } else {
  11517. for k2, v2 := range v {
  11518. if cr != nil {
  11519. cr.sendContainerState(containerMapKey)
  11520. }
  11521. ee.EncodeInt(int64(k2))
  11522. if cr != nil {
  11523. cr.sendContainerState(containerMapValue)
  11524. }
  11525. e.encode(v2)
  11526. }
  11527. }
  11528. if cr != nil {
  11529. cr.sendContainerState(containerMapEnd)
  11530. }
  11531. }
  11532. func (f *encFnInfo) fastpathEncMapInt8StringR(rv reflect.Value) {
  11533. fastpathTV.EncMapInt8StringV(rv.Interface().(map[int8]string), fastpathCheckNilFalse, f.e)
  11534. }
  11535. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, checkNil bool, e *Encoder) {
  11536. ee := e.e
  11537. cr := e.cr
  11538. if checkNil && v == nil {
  11539. ee.EncodeNil()
  11540. return
  11541. }
  11542. ee.EncodeMapStart(len(v))
  11543. if e.h.Canonical {
  11544. v2 := make([]int64, len(v))
  11545. var i int
  11546. for k, _ := range v {
  11547. v2[i] = int64(k)
  11548. i++
  11549. }
  11550. sort.Sort(intSlice(v2))
  11551. for _, k2 := range v2 {
  11552. if cr != nil {
  11553. cr.sendContainerState(containerMapKey)
  11554. }
  11555. ee.EncodeInt(int64(int8(k2)))
  11556. if cr != nil {
  11557. cr.sendContainerState(containerMapValue)
  11558. }
  11559. ee.EncodeString(c_UTF8, v[int8(k2)])
  11560. }
  11561. } else {
  11562. for k2, v2 := range v {
  11563. if cr != nil {
  11564. cr.sendContainerState(containerMapKey)
  11565. }
  11566. ee.EncodeInt(int64(k2))
  11567. if cr != nil {
  11568. cr.sendContainerState(containerMapValue)
  11569. }
  11570. ee.EncodeString(c_UTF8, v2)
  11571. }
  11572. }
  11573. if cr != nil {
  11574. cr.sendContainerState(containerMapEnd)
  11575. }
  11576. }
  11577. func (f *encFnInfo) fastpathEncMapInt8UintR(rv reflect.Value) {
  11578. fastpathTV.EncMapInt8UintV(rv.Interface().(map[int8]uint), fastpathCheckNilFalse, f.e)
  11579. }
  11580. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, checkNil bool, e *Encoder) {
  11581. ee := e.e
  11582. cr := e.cr
  11583. if checkNil && v == nil {
  11584. ee.EncodeNil()
  11585. return
  11586. }
  11587. ee.EncodeMapStart(len(v))
  11588. if e.h.Canonical {
  11589. v2 := make([]int64, len(v))
  11590. var i int
  11591. for k, _ := range v {
  11592. v2[i] = int64(k)
  11593. i++
  11594. }
  11595. sort.Sort(intSlice(v2))
  11596. for _, k2 := range v2 {
  11597. if cr != nil {
  11598. cr.sendContainerState(containerMapKey)
  11599. }
  11600. ee.EncodeInt(int64(int8(k2)))
  11601. if cr != nil {
  11602. cr.sendContainerState(containerMapValue)
  11603. }
  11604. ee.EncodeUint(uint64(v[int8(k2)]))
  11605. }
  11606. } else {
  11607. for k2, v2 := range v {
  11608. if cr != nil {
  11609. cr.sendContainerState(containerMapKey)
  11610. }
  11611. ee.EncodeInt(int64(k2))
  11612. if cr != nil {
  11613. cr.sendContainerState(containerMapValue)
  11614. }
  11615. ee.EncodeUint(uint64(v2))
  11616. }
  11617. }
  11618. if cr != nil {
  11619. cr.sendContainerState(containerMapEnd)
  11620. }
  11621. }
  11622. func (f *encFnInfo) fastpathEncMapInt8Uint8R(rv reflect.Value) {
  11623. fastpathTV.EncMapInt8Uint8V(rv.Interface().(map[int8]uint8), fastpathCheckNilFalse, f.e)
  11624. }
  11625. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, checkNil bool, e *Encoder) {
  11626. ee := e.e
  11627. cr := e.cr
  11628. if checkNil && v == nil {
  11629. ee.EncodeNil()
  11630. return
  11631. }
  11632. ee.EncodeMapStart(len(v))
  11633. if e.h.Canonical {
  11634. v2 := make([]int64, len(v))
  11635. var i int
  11636. for k, _ := range v {
  11637. v2[i] = int64(k)
  11638. i++
  11639. }
  11640. sort.Sort(intSlice(v2))
  11641. for _, k2 := range v2 {
  11642. if cr != nil {
  11643. cr.sendContainerState(containerMapKey)
  11644. }
  11645. ee.EncodeInt(int64(int8(k2)))
  11646. if cr != nil {
  11647. cr.sendContainerState(containerMapValue)
  11648. }
  11649. ee.EncodeUint(uint64(v[int8(k2)]))
  11650. }
  11651. } else {
  11652. for k2, v2 := range v {
  11653. if cr != nil {
  11654. cr.sendContainerState(containerMapKey)
  11655. }
  11656. ee.EncodeInt(int64(k2))
  11657. if cr != nil {
  11658. cr.sendContainerState(containerMapValue)
  11659. }
  11660. ee.EncodeUint(uint64(v2))
  11661. }
  11662. }
  11663. if cr != nil {
  11664. cr.sendContainerState(containerMapEnd)
  11665. }
  11666. }
  11667. func (f *encFnInfo) fastpathEncMapInt8Uint16R(rv reflect.Value) {
  11668. fastpathTV.EncMapInt8Uint16V(rv.Interface().(map[int8]uint16), fastpathCheckNilFalse, f.e)
  11669. }
  11670. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, checkNil bool, e *Encoder) {
  11671. ee := e.e
  11672. cr := e.cr
  11673. if checkNil && v == nil {
  11674. ee.EncodeNil()
  11675. return
  11676. }
  11677. ee.EncodeMapStart(len(v))
  11678. if e.h.Canonical {
  11679. v2 := make([]int64, len(v))
  11680. var i int
  11681. for k, _ := range v {
  11682. v2[i] = int64(k)
  11683. i++
  11684. }
  11685. sort.Sort(intSlice(v2))
  11686. for _, k2 := range v2 {
  11687. if cr != nil {
  11688. cr.sendContainerState(containerMapKey)
  11689. }
  11690. ee.EncodeInt(int64(int8(k2)))
  11691. if cr != nil {
  11692. cr.sendContainerState(containerMapValue)
  11693. }
  11694. ee.EncodeUint(uint64(v[int8(k2)]))
  11695. }
  11696. } else {
  11697. for k2, v2 := range v {
  11698. if cr != nil {
  11699. cr.sendContainerState(containerMapKey)
  11700. }
  11701. ee.EncodeInt(int64(k2))
  11702. if cr != nil {
  11703. cr.sendContainerState(containerMapValue)
  11704. }
  11705. ee.EncodeUint(uint64(v2))
  11706. }
  11707. }
  11708. if cr != nil {
  11709. cr.sendContainerState(containerMapEnd)
  11710. }
  11711. }
  11712. func (f *encFnInfo) fastpathEncMapInt8Uint32R(rv reflect.Value) {
  11713. fastpathTV.EncMapInt8Uint32V(rv.Interface().(map[int8]uint32), fastpathCheckNilFalse, f.e)
  11714. }
  11715. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, checkNil bool, e *Encoder) {
  11716. ee := e.e
  11717. cr := e.cr
  11718. if checkNil && v == nil {
  11719. ee.EncodeNil()
  11720. return
  11721. }
  11722. ee.EncodeMapStart(len(v))
  11723. if e.h.Canonical {
  11724. v2 := make([]int64, len(v))
  11725. var i int
  11726. for k, _ := range v {
  11727. v2[i] = int64(k)
  11728. i++
  11729. }
  11730. sort.Sort(intSlice(v2))
  11731. for _, k2 := range v2 {
  11732. if cr != nil {
  11733. cr.sendContainerState(containerMapKey)
  11734. }
  11735. ee.EncodeInt(int64(int8(k2)))
  11736. if cr != nil {
  11737. cr.sendContainerState(containerMapValue)
  11738. }
  11739. ee.EncodeUint(uint64(v[int8(k2)]))
  11740. }
  11741. } else {
  11742. for k2, v2 := range v {
  11743. if cr != nil {
  11744. cr.sendContainerState(containerMapKey)
  11745. }
  11746. ee.EncodeInt(int64(k2))
  11747. if cr != nil {
  11748. cr.sendContainerState(containerMapValue)
  11749. }
  11750. ee.EncodeUint(uint64(v2))
  11751. }
  11752. }
  11753. if cr != nil {
  11754. cr.sendContainerState(containerMapEnd)
  11755. }
  11756. }
  11757. func (f *encFnInfo) fastpathEncMapInt8Uint64R(rv reflect.Value) {
  11758. fastpathTV.EncMapInt8Uint64V(rv.Interface().(map[int8]uint64), fastpathCheckNilFalse, f.e)
  11759. }
  11760. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, checkNil bool, e *Encoder) {
  11761. ee := e.e
  11762. cr := e.cr
  11763. if checkNil && v == nil {
  11764. ee.EncodeNil()
  11765. return
  11766. }
  11767. ee.EncodeMapStart(len(v))
  11768. if e.h.Canonical {
  11769. v2 := make([]int64, len(v))
  11770. var i int
  11771. for k, _ := range v {
  11772. v2[i] = int64(k)
  11773. i++
  11774. }
  11775. sort.Sort(intSlice(v2))
  11776. for _, k2 := range v2 {
  11777. if cr != nil {
  11778. cr.sendContainerState(containerMapKey)
  11779. }
  11780. ee.EncodeInt(int64(int8(k2)))
  11781. if cr != nil {
  11782. cr.sendContainerState(containerMapValue)
  11783. }
  11784. ee.EncodeUint(uint64(v[int8(k2)]))
  11785. }
  11786. } else {
  11787. for k2, v2 := range v {
  11788. if cr != nil {
  11789. cr.sendContainerState(containerMapKey)
  11790. }
  11791. ee.EncodeInt(int64(k2))
  11792. if cr != nil {
  11793. cr.sendContainerState(containerMapValue)
  11794. }
  11795. ee.EncodeUint(uint64(v2))
  11796. }
  11797. }
  11798. if cr != nil {
  11799. cr.sendContainerState(containerMapEnd)
  11800. }
  11801. }
  11802. func (f *encFnInfo) fastpathEncMapInt8UintptrR(rv reflect.Value) {
  11803. fastpathTV.EncMapInt8UintptrV(rv.Interface().(map[int8]uintptr), fastpathCheckNilFalse, f.e)
  11804. }
  11805. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, checkNil bool, e *Encoder) {
  11806. ee := e.e
  11807. cr := e.cr
  11808. if checkNil && v == nil {
  11809. ee.EncodeNil()
  11810. return
  11811. }
  11812. ee.EncodeMapStart(len(v))
  11813. if e.h.Canonical {
  11814. v2 := make([]int64, len(v))
  11815. var i int
  11816. for k, _ := range v {
  11817. v2[i] = int64(k)
  11818. i++
  11819. }
  11820. sort.Sort(intSlice(v2))
  11821. for _, k2 := range v2 {
  11822. if cr != nil {
  11823. cr.sendContainerState(containerMapKey)
  11824. }
  11825. ee.EncodeInt(int64(int8(k2)))
  11826. if cr != nil {
  11827. cr.sendContainerState(containerMapValue)
  11828. }
  11829. e.encode(v[int8(k2)])
  11830. }
  11831. } else {
  11832. for k2, v2 := range v {
  11833. if cr != nil {
  11834. cr.sendContainerState(containerMapKey)
  11835. }
  11836. ee.EncodeInt(int64(k2))
  11837. if cr != nil {
  11838. cr.sendContainerState(containerMapValue)
  11839. }
  11840. e.encode(v2)
  11841. }
  11842. }
  11843. if cr != nil {
  11844. cr.sendContainerState(containerMapEnd)
  11845. }
  11846. }
  11847. func (f *encFnInfo) fastpathEncMapInt8IntR(rv reflect.Value) {
  11848. fastpathTV.EncMapInt8IntV(rv.Interface().(map[int8]int), fastpathCheckNilFalse, f.e)
  11849. }
  11850. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, checkNil bool, e *Encoder) {
  11851. ee := e.e
  11852. cr := e.cr
  11853. if checkNil && v == nil {
  11854. ee.EncodeNil()
  11855. return
  11856. }
  11857. ee.EncodeMapStart(len(v))
  11858. if e.h.Canonical {
  11859. v2 := make([]int64, len(v))
  11860. var i int
  11861. for k, _ := range v {
  11862. v2[i] = int64(k)
  11863. i++
  11864. }
  11865. sort.Sort(intSlice(v2))
  11866. for _, k2 := range v2 {
  11867. if cr != nil {
  11868. cr.sendContainerState(containerMapKey)
  11869. }
  11870. ee.EncodeInt(int64(int8(k2)))
  11871. if cr != nil {
  11872. cr.sendContainerState(containerMapValue)
  11873. }
  11874. ee.EncodeInt(int64(v[int8(k2)]))
  11875. }
  11876. } else {
  11877. for k2, v2 := range v {
  11878. if cr != nil {
  11879. cr.sendContainerState(containerMapKey)
  11880. }
  11881. ee.EncodeInt(int64(k2))
  11882. if cr != nil {
  11883. cr.sendContainerState(containerMapValue)
  11884. }
  11885. ee.EncodeInt(int64(v2))
  11886. }
  11887. }
  11888. if cr != nil {
  11889. cr.sendContainerState(containerMapEnd)
  11890. }
  11891. }
  11892. func (f *encFnInfo) fastpathEncMapInt8Int8R(rv reflect.Value) {
  11893. fastpathTV.EncMapInt8Int8V(rv.Interface().(map[int8]int8), fastpathCheckNilFalse, f.e)
  11894. }
  11895. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, checkNil bool, e *Encoder) {
  11896. ee := e.e
  11897. cr := e.cr
  11898. if checkNil && v == nil {
  11899. ee.EncodeNil()
  11900. return
  11901. }
  11902. ee.EncodeMapStart(len(v))
  11903. if e.h.Canonical {
  11904. v2 := make([]int64, len(v))
  11905. var i int
  11906. for k, _ := range v {
  11907. v2[i] = int64(k)
  11908. i++
  11909. }
  11910. sort.Sort(intSlice(v2))
  11911. for _, k2 := range v2 {
  11912. if cr != nil {
  11913. cr.sendContainerState(containerMapKey)
  11914. }
  11915. ee.EncodeInt(int64(int8(k2)))
  11916. if cr != nil {
  11917. cr.sendContainerState(containerMapValue)
  11918. }
  11919. ee.EncodeInt(int64(v[int8(k2)]))
  11920. }
  11921. } else {
  11922. for k2, v2 := range v {
  11923. if cr != nil {
  11924. cr.sendContainerState(containerMapKey)
  11925. }
  11926. ee.EncodeInt(int64(k2))
  11927. if cr != nil {
  11928. cr.sendContainerState(containerMapValue)
  11929. }
  11930. ee.EncodeInt(int64(v2))
  11931. }
  11932. }
  11933. if cr != nil {
  11934. cr.sendContainerState(containerMapEnd)
  11935. }
  11936. }
  11937. func (f *encFnInfo) fastpathEncMapInt8Int16R(rv reflect.Value) {
  11938. fastpathTV.EncMapInt8Int16V(rv.Interface().(map[int8]int16), fastpathCheckNilFalse, f.e)
  11939. }
  11940. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, checkNil bool, e *Encoder) {
  11941. ee := e.e
  11942. cr := e.cr
  11943. if checkNil && v == nil {
  11944. ee.EncodeNil()
  11945. return
  11946. }
  11947. ee.EncodeMapStart(len(v))
  11948. if e.h.Canonical {
  11949. v2 := make([]int64, len(v))
  11950. var i int
  11951. for k, _ := range v {
  11952. v2[i] = int64(k)
  11953. i++
  11954. }
  11955. sort.Sort(intSlice(v2))
  11956. for _, k2 := range v2 {
  11957. if cr != nil {
  11958. cr.sendContainerState(containerMapKey)
  11959. }
  11960. ee.EncodeInt(int64(int8(k2)))
  11961. if cr != nil {
  11962. cr.sendContainerState(containerMapValue)
  11963. }
  11964. ee.EncodeInt(int64(v[int8(k2)]))
  11965. }
  11966. } else {
  11967. for k2, v2 := range v {
  11968. if cr != nil {
  11969. cr.sendContainerState(containerMapKey)
  11970. }
  11971. ee.EncodeInt(int64(k2))
  11972. if cr != nil {
  11973. cr.sendContainerState(containerMapValue)
  11974. }
  11975. ee.EncodeInt(int64(v2))
  11976. }
  11977. }
  11978. if cr != nil {
  11979. cr.sendContainerState(containerMapEnd)
  11980. }
  11981. }
  11982. func (f *encFnInfo) fastpathEncMapInt8Int32R(rv reflect.Value) {
  11983. fastpathTV.EncMapInt8Int32V(rv.Interface().(map[int8]int32), fastpathCheckNilFalse, f.e)
  11984. }
  11985. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, checkNil bool, e *Encoder) {
  11986. ee := e.e
  11987. cr := e.cr
  11988. if checkNil && v == nil {
  11989. ee.EncodeNil()
  11990. return
  11991. }
  11992. ee.EncodeMapStart(len(v))
  11993. if e.h.Canonical {
  11994. v2 := make([]int64, len(v))
  11995. var i int
  11996. for k, _ := range v {
  11997. v2[i] = int64(k)
  11998. i++
  11999. }
  12000. sort.Sort(intSlice(v2))
  12001. for _, k2 := range v2 {
  12002. if cr != nil {
  12003. cr.sendContainerState(containerMapKey)
  12004. }
  12005. ee.EncodeInt(int64(int8(k2)))
  12006. if cr != nil {
  12007. cr.sendContainerState(containerMapValue)
  12008. }
  12009. ee.EncodeInt(int64(v[int8(k2)]))
  12010. }
  12011. } else {
  12012. for k2, v2 := range v {
  12013. if cr != nil {
  12014. cr.sendContainerState(containerMapKey)
  12015. }
  12016. ee.EncodeInt(int64(k2))
  12017. if cr != nil {
  12018. cr.sendContainerState(containerMapValue)
  12019. }
  12020. ee.EncodeInt(int64(v2))
  12021. }
  12022. }
  12023. if cr != nil {
  12024. cr.sendContainerState(containerMapEnd)
  12025. }
  12026. }
  12027. func (f *encFnInfo) fastpathEncMapInt8Int64R(rv reflect.Value) {
  12028. fastpathTV.EncMapInt8Int64V(rv.Interface().(map[int8]int64), fastpathCheckNilFalse, f.e)
  12029. }
  12030. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, checkNil bool, e *Encoder) {
  12031. ee := e.e
  12032. cr := e.cr
  12033. if checkNil && v == nil {
  12034. ee.EncodeNil()
  12035. return
  12036. }
  12037. ee.EncodeMapStart(len(v))
  12038. if e.h.Canonical {
  12039. v2 := make([]int64, len(v))
  12040. var i int
  12041. for k, _ := range v {
  12042. v2[i] = int64(k)
  12043. i++
  12044. }
  12045. sort.Sort(intSlice(v2))
  12046. for _, k2 := range v2 {
  12047. if cr != nil {
  12048. cr.sendContainerState(containerMapKey)
  12049. }
  12050. ee.EncodeInt(int64(int8(k2)))
  12051. if cr != nil {
  12052. cr.sendContainerState(containerMapValue)
  12053. }
  12054. ee.EncodeInt(int64(v[int8(k2)]))
  12055. }
  12056. } else {
  12057. for k2, v2 := range v {
  12058. if cr != nil {
  12059. cr.sendContainerState(containerMapKey)
  12060. }
  12061. ee.EncodeInt(int64(k2))
  12062. if cr != nil {
  12063. cr.sendContainerState(containerMapValue)
  12064. }
  12065. ee.EncodeInt(int64(v2))
  12066. }
  12067. }
  12068. if cr != nil {
  12069. cr.sendContainerState(containerMapEnd)
  12070. }
  12071. }
  12072. func (f *encFnInfo) fastpathEncMapInt8Float32R(rv reflect.Value) {
  12073. fastpathTV.EncMapInt8Float32V(rv.Interface().(map[int8]float32), fastpathCheckNilFalse, f.e)
  12074. }
  12075. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, checkNil bool, e *Encoder) {
  12076. ee := e.e
  12077. cr := e.cr
  12078. if checkNil && v == nil {
  12079. ee.EncodeNil()
  12080. return
  12081. }
  12082. ee.EncodeMapStart(len(v))
  12083. if e.h.Canonical {
  12084. v2 := make([]int64, len(v))
  12085. var i int
  12086. for k, _ := range v {
  12087. v2[i] = int64(k)
  12088. i++
  12089. }
  12090. sort.Sort(intSlice(v2))
  12091. for _, k2 := range v2 {
  12092. if cr != nil {
  12093. cr.sendContainerState(containerMapKey)
  12094. }
  12095. ee.EncodeInt(int64(int8(k2)))
  12096. if cr != nil {
  12097. cr.sendContainerState(containerMapValue)
  12098. }
  12099. ee.EncodeFloat32(v[int8(k2)])
  12100. }
  12101. } else {
  12102. for k2, v2 := range v {
  12103. if cr != nil {
  12104. cr.sendContainerState(containerMapKey)
  12105. }
  12106. ee.EncodeInt(int64(k2))
  12107. if cr != nil {
  12108. cr.sendContainerState(containerMapValue)
  12109. }
  12110. ee.EncodeFloat32(v2)
  12111. }
  12112. }
  12113. if cr != nil {
  12114. cr.sendContainerState(containerMapEnd)
  12115. }
  12116. }
  12117. func (f *encFnInfo) fastpathEncMapInt8Float64R(rv reflect.Value) {
  12118. fastpathTV.EncMapInt8Float64V(rv.Interface().(map[int8]float64), fastpathCheckNilFalse, f.e)
  12119. }
  12120. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, checkNil bool, e *Encoder) {
  12121. ee := e.e
  12122. cr := e.cr
  12123. if checkNil && v == nil {
  12124. ee.EncodeNil()
  12125. return
  12126. }
  12127. ee.EncodeMapStart(len(v))
  12128. if e.h.Canonical {
  12129. v2 := make([]int64, len(v))
  12130. var i int
  12131. for k, _ := range v {
  12132. v2[i] = int64(k)
  12133. i++
  12134. }
  12135. sort.Sort(intSlice(v2))
  12136. for _, k2 := range v2 {
  12137. if cr != nil {
  12138. cr.sendContainerState(containerMapKey)
  12139. }
  12140. ee.EncodeInt(int64(int8(k2)))
  12141. if cr != nil {
  12142. cr.sendContainerState(containerMapValue)
  12143. }
  12144. ee.EncodeFloat64(v[int8(k2)])
  12145. }
  12146. } else {
  12147. for k2, v2 := range v {
  12148. if cr != nil {
  12149. cr.sendContainerState(containerMapKey)
  12150. }
  12151. ee.EncodeInt(int64(k2))
  12152. if cr != nil {
  12153. cr.sendContainerState(containerMapValue)
  12154. }
  12155. ee.EncodeFloat64(v2)
  12156. }
  12157. }
  12158. if cr != nil {
  12159. cr.sendContainerState(containerMapEnd)
  12160. }
  12161. }
  12162. func (f *encFnInfo) fastpathEncMapInt8BoolR(rv reflect.Value) {
  12163. fastpathTV.EncMapInt8BoolV(rv.Interface().(map[int8]bool), fastpathCheckNilFalse, f.e)
  12164. }
  12165. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, checkNil bool, e *Encoder) {
  12166. ee := e.e
  12167. cr := e.cr
  12168. if checkNil && v == nil {
  12169. ee.EncodeNil()
  12170. return
  12171. }
  12172. ee.EncodeMapStart(len(v))
  12173. if e.h.Canonical {
  12174. v2 := make([]int64, len(v))
  12175. var i int
  12176. for k, _ := range v {
  12177. v2[i] = int64(k)
  12178. i++
  12179. }
  12180. sort.Sort(intSlice(v2))
  12181. for _, k2 := range v2 {
  12182. if cr != nil {
  12183. cr.sendContainerState(containerMapKey)
  12184. }
  12185. ee.EncodeInt(int64(int8(k2)))
  12186. if cr != nil {
  12187. cr.sendContainerState(containerMapValue)
  12188. }
  12189. ee.EncodeBool(v[int8(k2)])
  12190. }
  12191. } else {
  12192. for k2, v2 := range v {
  12193. if cr != nil {
  12194. cr.sendContainerState(containerMapKey)
  12195. }
  12196. ee.EncodeInt(int64(k2))
  12197. if cr != nil {
  12198. cr.sendContainerState(containerMapValue)
  12199. }
  12200. ee.EncodeBool(v2)
  12201. }
  12202. }
  12203. if cr != nil {
  12204. cr.sendContainerState(containerMapEnd)
  12205. }
  12206. }
  12207. func (f *encFnInfo) fastpathEncMapInt16IntfR(rv reflect.Value) {
  12208. fastpathTV.EncMapInt16IntfV(rv.Interface().(map[int16]interface{}), fastpathCheckNilFalse, f.e)
  12209. }
  12210. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, checkNil bool, e *Encoder) {
  12211. ee := e.e
  12212. cr := e.cr
  12213. if checkNil && v == nil {
  12214. ee.EncodeNil()
  12215. return
  12216. }
  12217. ee.EncodeMapStart(len(v))
  12218. if e.h.Canonical {
  12219. v2 := make([]int64, len(v))
  12220. var i int
  12221. for k, _ := range v {
  12222. v2[i] = int64(k)
  12223. i++
  12224. }
  12225. sort.Sort(intSlice(v2))
  12226. for _, k2 := range v2 {
  12227. if cr != nil {
  12228. cr.sendContainerState(containerMapKey)
  12229. }
  12230. ee.EncodeInt(int64(int16(k2)))
  12231. if cr != nil {
  12232. cr.sendContainerState(containerMapValue)
  12233. }
  12234. e.encode(v[int16(k2)])
  12235. }
  12236. } else {
  12237. for k2, v2 := range v {
  12238. if cr != nil {
  12239. cr.sendContainerState(containerMapKey)
  12240. }
  12241. ee.EncodeInt(int64(k2))
  12242. if cr != nil {
  12243. cr.sendContainerState(containerMapValue)
  12244. }
  12245. e.encode(v2)
  12246. }
  12247. }
  12248. if cr != nil {
  12249. cr.sendContainerState(containerMapEnd)
  12250. }
  12251. }
  12252. func (f *encFnInfo) fastpathEncMapInt16StringR(rv reflect.Value) {
  12253. fastpathTV.EncMapInt16StringV(rv.Interface().(map[int16]string), fastpathCheckNilFalse, f.e)
  12254. }
  12255. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, checkNil bool, e *Encoder) {
  12256. ee := e.e
  12257. cr := e.cr
  12258. if checkNil && v == nil {
  12259. ee.EncodeNil()
  12260. return
  12261. }
  12262. ee.EncodeMapStart(len(v))
  12263. if e.h.Canonical {
  12264. v2 := make([]int64, len(v))
  12265. var i int
  12266. for k, _ := range v {
  12267. v2[i] = int64(k)
  12268. i++
  12269. }
  12270. sort.Sort(intSlice(v2))
  12271. for _, k2 := range v2 {
  12272. if cr != nil {
  12273. cr.sendContainerState(containerMapKey)
  12274. }
  12275. ee.EncodeInt(int64(int16(k2)))
  12276. if cr != nil {
  12277. cr.sendContainerState(containerMapValue)
  12278. }
  12279. ee.EncodeString(c_UTF8, v[int16(k2)])
  12280. }
  12281. } else {
  12282. for k2, v2 := range v {
  12283. if cr != nil {
  12284. cr.sendContainerState(containerMapKey)
  12285. }
  12286. ee.EncodeInt(int64(k2))
  12287. if cr != nil {
  12288. cr.sendContainerState(containerMapValue)
  12289. }
  12290. ee.EncodeString(c_UTF8, v2)
  12291. }
  12292. }
  12293. if cr != nil {
  12294. cr.sendContainerState(containerMapEnd)
  12295. }
  12296. }
  12297. func (f *encFnInfo) fastpathEncMapInt16UintR(rv reflect.Value) {
  12298. fastpathTV.EncMapInt16UintV(rv.Interface().(map[int16]uint), fastpathCheckNilFalse, f.e)
  12299. }
  12300. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, checkNil bool, e *Encoder) {
  12301. ee := e.e
  12302. cr := e.cr
  12303. if checkNil && v == nil {
  12304. ee.EncodeNil()
  12305. return
  12306. }
  12307. ee.EncodeMapStart(len(v))
  12308. if e.h.Canonical {
  12309. v2 := make([]int64, len(v))
  12310. var i int
  12311. for k, _ := range v {
  12312. v2[i] = int64(k)
  12313. i++
  12314. }
  12315. sort.Sort(intSlice(v2))
  12316. for _, k2 := range v2 {
  12317. if cr != nil {
  12318. cr.sendContainerState(containerMapKey)
  12319. }
  12320. ee.EncodeInt(int64(int16(k2)))
  12321. if cr != nil {
  12322. cr.sendContainerState(containerMapValue)
  12323. }
  12324. ee.EncodeUint(uint64(v[int16(k2)]))
  12325. }
  12326. } else {
  12327. for k2, v2 := range v {
  12328. if cr != nil {
  12329. cr.sendContainerState(containerMapKey)
  12330. }
  12331. ee.EncodeInt(int64(k2))
  12332. if cr != nil {
  12333. cr.sendContainerState(containerMapValue)
  12334. }
  12335. ee.EncodeUint(uint64(v2))
  12336. }
  12337. }
  12338. if cr != nil {
  12339. cr.sendContainerState(containerMapEnd)
  12340. }
  12341. }
  12342. func (f *encFnInfo) fastpathEncMapInt16Uint8R(rv reflect.Value) {
  12343. fastpathTV.EncMapInt16Uint8V(rv.Interface().(map[int16]uint8), fastpathCheckNilFalse, f.e)
  12344. }
  12345. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, checkNil bool, e *Encoder) {
  12346. ee := e.e
  12347. cr := e.cr
  12348. if checkNil && v == nil {
  12349. ee.EncodeNil()
  12350. return
  12351. }
  12352. ee.EncodeMapStart(len(v))
  12353. if e.h.Canonical {
  12354. v2 := make([]int64, len(v))
  12355. var i int
  12356. for k, _ := range v {
  12357. v2[i] = int64(k)
  12358. i++
  12359. }
  12360. sort.Sort(intSlice(v2))
  12361. for _, k2 := range v2 {
  12362. if cr != nil {
  12363. cr.sendContainerState(containerMapKey)
  12364. }
  12365. ee.EncodeInt(int64(int16(k2)))
  12366. if cr != nil {
  12367. cr.sendContainerState(containerMapValue)
  12368. }
  12369. ee.EncodeUint(uint64(v[int16(k2)]))
  12370. }
  12371. } else {
  12372. for k2, v2 := range v {
  12373. if cr != nil {
  12374. cr.sendContainerState(containerMapKey)
  12375. }
  12376. ee.EncodeInt(int64(k2))
  12377. if cr != nil {
  12378. cr.sendContainerState(containerMapValue)
  12379. }
  12380. ee.EncodeUint(uint64(v2))
  12381. }
  12382. }
  12383. if cr != nil {
  12384. cr.sendContainerState(containerMapEnd)
  12385. }
  12386. }
  12387. func (f *encFnInfo) fastpathEncMapInt16Uint16R(rv reflect.Value) {
  12388. fastpathTV.EncMapInt16Uint16V(rv.Interface().(map[int16]uint16), fastpathCheckNilFalse, f.e)
  12389. }
  12390. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, checkNil bool, e *Encoder) {
  12391. ee := e.e
  12392. cr := e.cr
  12393. if checkNil && v == nil {
  12394. ee.EncodeNil()
  12395. return
  12396. }
  12397. ee.EncodeMapStart(len(v))
  12398. if e.h.Canonical {
  12399. v2 := make([]int64, len(v))
  12400. var i int
  12401. for k, _ := range v {
  12402. v2[i] = int64(k)
  12403. i++
  12404. }
  12405. sort.Sort(intSlice(v2))
  12406. for _, k2 := range v2 {
  12407. if cr != nil {
  12408. cr.sendContainerState(containerMapKey)
  12409. }
  12410. ee.EncodeInt(int64(int16(k2)))
  12411. if cr != nil {
  12412. cr.sendContainerState(containerMapValue)
  12413. }
  12414. ee.EncodeUint(uint64(v[int16(k2)]))
  12415. }
  12416. } else {
  12417. for k2, v2 := range v {
  12418. if cr != nil {
  12419. cr.sendContainerState(containerMapKey)
  12420. }
  12421. ee.EncodeInt(int64(k2))
  12422. if cr != nil {
  12423. cr.sendContainerState(containerMapValue)
  12424. }
  12425. ee.EncodeUint(uint64(v2))
  12426. }
  12427. }
  12428. if cr != nil {
  12429. cr.sendContainerState(containerMapEnd)
  12430. }
  12431. }
  12432. func (f *encFnInfo) fastpathEncMapInt16Uint32R(rv reflect.Value) {
  12433. fastpathTV.EncMapInt16Uint32V(rv.Interface().(map[int16]uint32), fastpathCheckNilFalse, f.e)
  12434. }
  12435. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, checkNil bool, e *Encoder) {
  12436. ee := e.e
  12437. cr := e.cr
  12438. if checkNil && v == nil {
  12439. ee.EncodeNil()
  12440. return
  12441. }
  12442. ee.EncodeMapStart(len(v))
  12443. if e.h.Canonical {
  12444. v2 := make([]int64, len(v))
  12445. var i int
  12446. for k, _ := range v {
  12447. v2[i] = int64(k)
  12448. i++
  12449. }
  12450. sort.Sort(intSlice(v2))
  12451. for _, k2 := range v2 {
  12452. if cr != nil {
  12453. cr.sendContainerState(containerMapKey)
  12454. }
  12455. ee.EncodeInt(int64(int16(k2)))
  12456. if cr != nil {
  12457. cr.sendContainerState(containerMapValue)
  12458. }
  12459. ee.EncodeUint(uint64(v[int16(k2)]))
  12460. }
  12461. } else {
  12462. for k2, v2 := range v {
  12463. if cr != nil {
  12464. cr.sendContainerState(containerMapKey)
  12465. }
  12466. ee.EncodeInt(int64(k2))
  12467. if cr != nil {
  12468. cr.sendContainerState(containerMapValue)
  12469. }
  12470. ee.EncodeUint(uint64(v2))
  12471. }
  12472. }
  12473. if cr != nil {
  12474. cr.sendContainerState(containerMapEnd)
  12475. }
  12476. }
  12477. func (f *encFnInfo) fastpathEncMapInt16Uint64R(rv reflect.Value) {
  12478. fastpathTV.EncMapInt16Uint64V(rv.Interface().(map[int16]uint64), fastpathCheckNilFalse, f.e)
  12479. }
  12480. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, checkNil bool, e *Encoder) {
  12481. ee := e.e
  12482. cr := e.cr
  12483. if checkNil && v == nil {
  12484. ee.EncodeNil()
  12485. return
  12486. }
  12487. ee.EncodeMapStart(len(v))
  12488. if e.h.Canonical {
  12489. v2 := make([]int64, len(v))
  12490. var i int
  12491. for k, _ := range v {
  12492. v2[i] = int64(k)
  12493. i++
  12494. }
  12495. sort.Sort(intSlice(v2))
  12496. for _, k2 := range v2 {
  12497. if cr != nil {
  12498. cr.sendContainerState(containerMapKey)
  12499. }
  12500. ee.EncodeInt(int64(int16(k2)))
  12501. if cr != nil {
  12502. cr.sendContainerState(containerMapValue)
  12503. }
  12504. ee.EncodeUint(uint64(v[int16(k2)]))
  12505. }
  12506. } else {
  12507. for k2, v2 := range v {
  12508. if cr != nil {
  12509. cr.sendContainerState(containerMapKey)
  12510. }
  12511. ee.EncodeInt(int64(k2))
  12512. if cr != nil {
  12513. cr.sendContainerState(containerMapValue)
  12514. }
  12515. ee.EncodeUint(uint64(v2))
  12516. }
  12517. }
  12518. if cr != nil {
  12519. cr.sendContainerState(containerMapEnd)
  12520. }
  12521. }
  12522. func (f *encFnInfo) fastpathEncMapInt16UintptrR(rv reflect.Value) {
  12523. fastpathTV.EncMapInt16UintptrV(rv.Interface().(map[int16]uintptr), fastpathCheckNilFalse, f.e)
  12524. }
  12525. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, checkNil bool, e *Encoder) {
  12526. ee := e.e
  12527. cr := e.cr
  12528. if checkNil && v == nil {
  12529. ee.EncodeNil()
  12530. return
  12531. }
  12532. ee.EncodeMapStart(len(v))
  12533. if e.h.Canonical {
  12534. v2 := make([]int64, len(v))
  12535. var i int
  12536. for k, _ := range v {
  12537. v2[i] = int64(k)
  12538. i++
  12539. }
  12540. sort.Sort(intSlice(v2))
  12541. for _, k2 := range v2 {
  12542. if cr != nil {
  12543. cr.sendContainerState(containerMapKey)
  12544. }
  12545. ee.EncodeInt(int64(int16(k2)))
  12546. if cr != nil {
  12547. cr.sendContainerState(containerMapValue)
  12548. }
  12549. e.encode(v[int16(k2)])
  12550. }
  12551. } else {
  12552. for k2, v2 := range v {
  12553. if cr != nil {
  12554. cr.sendContainerState(containerMapKey)
  12555. }
  12556. ee.EncodeInt(int64(k2))
  12557. if cr != nil {
  12558. cr.sendContainerState(containerMapValue)
  12559. }
  12560. e.encode(v2)
  12561. }
  12562. }
  12563. if cr != nil {
  12564. cr.sendContainerState(containerMapEnd)
  12565. }
  12566. }
  12567. func (f *encFnInfo) fastpathEncMapInt16IntR(rv reflect.Value) {
  12568. fastpathTV.EncMapInt16IntV(rv.Interface().(map[int16]int), fastpathCheckNilFalse, f.e)
  12569. }
  12570. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, checkNil bool, e *Encoder) {
  12571. ee := e.e
  12572. cr := e.cr
  12573. if checkNil && v == nil {
  12574. ee.EncodeNil()
  12575. return
  12576. }
  12577. ee.EncodeMapStart(len(v))
  12578. if e.h.Canonical {
  12579. v2 := make([]int64, len(v))
  12580. var i int
  12581. for k, _ := range v {
  12582. v2[i] = int64(k)
  12583. i++
  12584. }
  12585. sort.Sort(intSlice(v2))
  12586. for _, k2 := range v2 {
  12587. if cr != nil {
  12588. cr.sendContainerState(containerMapKey)
  12589. }
  12590. ee.EncodeInt(int64(int16(k2)))
  12591. if cr != nil {
  12592. cr.sendContainerState(containerMapValue)
  12593. }
  12594. ee.EncodeInt(int64(v[int16(k2)]))
  12595. }
  12596. } else {
  12597. for k2, v2 := range v {
  12598. if cr != nil {
  12599. cr.sendContainerState(containerMapKey)
  12600. }
  12601. ee.EncodeInt(int64(k2))
  12602. if cr != nil {
  12603. cr.sendContainerState(containerMapValue)
  12604. }
  12605. ee.EncodeInt(int64(v2))
  12606. }
  12607. }
  12608. if cr != nil {
  12609. cr.sendContainerState(containerMapEnd)
  12610. }
  12611. }
  12612. func (f *encFnInfo) fastpathEncMapInt16Int8R(rv reflect.Value) {
  12613. fastpathTV.EncMapInt16Int8V(rv.Interface().(map[int16]int8), fastpathCheckNilFalse, f.e)
  12614. }
  12615. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, checkNil bool, e *Encoder) {
  12616. ee := e.e
  12617. cr := e.cr
  12618. if checkNil && v == nil {
  12619. ee.EncodeNil()
  12620. return
  12621. }
  12622. ee.EncodeMapStart(len(v))
  12623. if e.h.Canonical {
  12624. v2 := make([]int64, len(v))
  12625. var i int
  12626. for k, _ := range v {
  12627. v2[i] = int64(k)
  12628. i++
  12629. }
  12630. sort.Sort(intSlice(v2))
  12631. for _, k2 := range v2 {
  12632. if cr != nil {
  12633. cr.sendContainerState(containerMapKey)
  12634. }
  12635. ee.EncodeInt(int64(int16(k2)))
  12636. if cr != nil {
  12637. cr.sendContainerState(containerMapValue)
  12638. }
  12639. ee.EncodeInt(int64(v[int16(k2)]))
  12640. }
  12641. } else {
  12642. for k2, v2 := range v {
  12643. if cr != nil {
  12644. cr.sendContainerState(containerMapKey)
  12645. }
  12646. ee.EncodeInt(int64(k2))
  12647. if cr != nil {
  12648. cr.sendContainerState(containerMapValue)
  12649. }
  12650. ee.EncodeInt(int64(v2))
  12651. }
  12652. }
  12653. if cr != nil {
  12654. cr.sendContainerState(containerMapEnd)
  12655. }
  12656. }
  12657. func (f *encFnInfo) fastpathEncMapInt16Int16R(rv reflect.Value) {
  12658. fastpathTV.EncMapInt16Int16V(rv.Interface().(map[int16]int16), fastpathCheckNilFalse, f.e)
  12659. }
  12660. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, checkNil bool, e *Encoder) {
  12661. ee := e.e
  12662. cr := e.cr
  12663. if checkNil && v == nil {
  12664. ee.EncodeNil()
  12665. return
  12666. }
  12667. ee.EncodeMapStart(len(v))
  12668. if e.h.Canonical {
  12669. v2 := make([]int64, len(v))
  12670. var i int
  12671. for k, _ := range v {
  12672. v2[i] = int64(k)
  12673. i++
  12674. }
  12675. sort.Sort(intSlice(v2))
  12676. for _, k2 := range v2 {
  12677. if cr != nil {
  12678. cr.sendContainerState(containerMapKey)
  12679. }
  12680. ee.EncodeInt(int64(int16(k2)))
  12681. if cr != nil {
  12682. cr.sendContainerState(containerMapValue)
  12683. }
  12684. ee.EncodeInt(int64(v[int16(k2)]))
  12685. }
  12686. } else {
  12687. for k2, v2 := range v {
  12688. if cr != nil {
  12689. cr.sendContainerState(containerMapKey)
  12690. }
  12691. ee.EncodeInt(int64(k2))
  12692. if cr != nil {
  12693. cr.sendContainerState(containerMapValue)
  12694. }
  12695. ee.EncodeInt(int64(v2))
  12696. }
  12697. }
  12698. if cr != nil {
  12699. cr.sendContainerState(containerMapEnd)
  12700. }
  12701. }
  12702. func (f *encFnInfo) fastpathEncMapInt16Int32R(rv reflect.Value) {
  12703. fastpathTV.EncMapInt16Int32V(rv.Interface().(map[int16]int32), fastpathCheckNilFalse, f.e)
  12704. }
  12705. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, checkNil bool, e *Encoder) {
  12706. ee := e.e
  12707. cr := e.cr
  12708. if checkNil && v == nil {
  12709. ee.EncodeNil()
  12710. return
  12711. }
  12712. ee.EncodeMapStart(len(v))
  12713. if e.h.Canonical {
  12714. v2 := make([]int64, len(v))
  12715. var i int
  12716. for k, _ := range v {
  12717. v2[i] = int64(k)
  12718. i++
  12719. }
  12720. sort.Sort(intSlice(v2))
  12721. for _, k2 := range v2 {
  12722. if cr != nil {
  12723. cr.sendContainerState(containerMapKey)
  12724. }
  12725. ee.EncodeInt(int64(int16(k2)))
  12726. if cr != nil {
  12727. cr.sendContainerState(containerMapValue)
  12728. }
  12729. ee.EncodeInt(int64(v[int16(k2)]))
  12730. }
  12731. } else {
  12732. for k2, v2 := range v {
  12733. if cr != nil {
  12734. cr.sendContainerState(containerMapKey)
  12735. }
  12736. ee.EncodeInt(int64(k2))
  12737. if cr != nil {
  12738. cr.sendContainerState(containerMapValue)
  12739. }
  12740. ee.EncodeInt(int64(v2))
  12741. }
  12742. }
  12743. if cr != nil {
  12744. cr.sendContainerState(containerMapEnd)
  12745. }
  12746. }
  12747. func (f *encFnInfo) fastpathEncMapInt16Int64R(rv reflect.Value) {
  12748. fastpathTV.EncMapInt16Int64V(rv.Interface().(map[int16]int64), fastpathCheckNilFalse, f.e)
  12749. }
  12750. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, checkNil bool, e *Encoder) {
  12751. ee := e.e
  12752. cr := e.cr
  12753. if checkNil && v == nil {
  12754. ee.EncodeNil()
  12755. return
  12756. }
  12757. ee.EncodeMapStart(len(v))
  12758. if e.h.Canonical {
  12759. v2 := make([]int64, len(v))
  12760. var i int
  12761. for k, _ := range v {
  12762. v2[i] = int64(k)
  12763. i++
  12764. }
  12765. sort.Sort(intSlice(v2))
  12766. for _, k2 := range v2 {
  12767. if cr != nil {
  12768. cr.sendContainerState(containerMapKey)
  12769. }
  12770. ee.EncodeInt(int64(int16(k2)))
  12771. if cr != nil {
  12772. cr.sendContainerState(containerMapValue)
  12773. }
  12774. ee.EncodeInt(int64(v[int16(k2)]))
  12775. }
  12776. } else {
  12777. for k2, v2 := range v {
  12778. if cr != nil {
  12779. cr.sendContainerState(containerMapKey)
  12780. }
  12781. ee.EncodeInt(int64(k2))
  12782. if cr != nil {
  12783. cr.sendContainerState(containerMapValue)
  12784. }
  12785. ee.EncodeInt(int64(v2))
  12786. }
  12787. }
  12788. if cr != nil {
  12789. cr.sendContainerState(containerMapEnd)
  12790. }
  12791. }
  12792. func (f *encFnInfo) fastpathEncMapInt16Float32R(rv reflect.Value) {
  12793. fastpathTV.EncMapInt16Float32V(rv.Interface().(map[int16]float32), fastpathCheckNilFalse, f.e)
  12794. }
  12795. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, checkNil bool, e *Encoder) {
  12796. ee := e.e
  12797. cr := e.cr
  12798. if checkNil && v == nil {
  12799. ee.EncodeNil()
  12800. return
  12801. }
  12802. ee.EncodeMapStart(len(v))
  12803. if e.h.Canonical {
  12804. v2 := make([]int64, len(v))
  12805. var i int
  12806. for k, _ := range v {
  12807. v2[i] = int64(k)
  12808. i++
  12809. }
  12810. sort.Sort(intSlice(v2))
  12811. for _, k2 := range v2 {
  12812. if cr != nil {
  12813. cr.sendContainerState(containerMapKey)
  12814. }
  12815. ee.EncodeInt(int64(int16(k2)))
  12816. if cr != nil {
  12817. cr.sendContainerState(containerMapValue)
  12818. }
  12819. ee.EncodeFloat32(v[int16(k2)])
  12820. }
  12821. } else {
  12822. for k2, v2 := range v {
  12823. if cr != nil {
  12824. cr.sendContainerState(containerMapKey)
  12825. }
  12826. ee.EncodeInt(int64(k2))
  12827. if cr != nil {
  12828. cr.sendContainerState(containerMapValue)
  12829. }
  12830. ee.EncodeFloat32(v2)
  12831. }
  12832. }
  12833. if cr != nil {
  12834. cr.sendContainerState(containerMapEnd)
  12835. }
  12836. }
  12837. func (f *encFnInfo) fastpathEncMapInt16Float64R(rv reflect.Value) {
  12838. fastpathTV.EncMapInt16Float64V(rv.Interface().(map[int16]float64), fastpathCheckNilFalse, f.e)
  12839. }
  12840. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, checkNil bool, e *Encoder) {
  12841. ee := e.e
  12842. cr := e.cr
  12843. if checkNil && v == nil {
  12844. ee.EncodeNil()
  12845. return
  12846. }
  12847. ee.EncodeMapStart(len(v))
  12848. if e.h.Canonical {
  12849. v2 := make([]int64, len(v))
  12850. var i int
  12851. for k, _ := range v {
  12852. v2[i] = int64(k)
  12853. i++
  12854. }
  12855. sort.Sort(intSlice(v2))
  12856. for _, k2 := range v2 {
  12857. if cr != nil {
  12858. cr.sendContainerState(containerMapKey)
  12859. }
  12860. ee.EncodeInt(int64(int16(k2)))
  12861. if cr != nil {
  12862. cr.sendContainerState(containerMapValue)
  12863. }
  12864. ee.EncodeFloat64(v[int16(k2)])
  12865. }
  12866. } else {
  12867. for k2, v2 := range v {
  12868. if cr != nil {
  12869. cr.sendContainerState(containerMapKey)
  12870. }
  12871. ee.EncodeInt(int64(k2))
  12872. if cr != nil {
  12873. cr.sendContainerState(containerMapValue)
  12874. }
  12875. ee.EncodeFloat64(v2)
  12876. }
  12877. }
  12878. if cr != nil {
  12879. cr.sendContainerState(containerMapEnd)
  12880. }
  12881. }
  12882. func (f *encFnInfo) fastpathEncMapInt16BoolR(rv reflect.Value) {
  12883. fastpathTV.EncMapInt16BoolV(rv.Interface().(map[int16]bool), fastpathCheckNilFalse, f.e)
  12884. }
  12885. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, checkNil bool, e *Encoder) {
  12886. ee := e.e
  12887. cr := e.cr
  12888. if checkNil && v == nil {
  12889. ee.EncodeNil()
  12890. return
  12891. }
  12892. ee.EncodeMapStart(len(v))
  12893. if e.h.Canonical {
  12894. v2 := make([]int64, len(v))
  12895. var i int
  12896. for k, _ := range v {
  12897. v2[i] = int64(k)
  12898. i++
  12899. }
  12900. sort.Sort(intSlice(v2))
  12901. for _, k2 := range v2 {
  12902. if cr != nil {
  12903. cr.sendContainerState(containerMapKey)
  12904. }
  12905. ee.EncodeInt(int64(int16(k2)))
  12906. if cr != nil {
  12907. cr.sendContainerState(containerMapValue)
  12908. }
  12909. ee.EncodeBool(v[int16(k2)])
  12910. }
  12911. } else {
  12912. for k2, v2 := range v {
  12913. if cr != nil {
  12914. cr.sendContainerState(containerMapKey)
  12915. }
  12916. ee.EncodeInt(int64(k2))
  12917. if cr != nil {
  12918. cr.sendContainerState(containerMapValue)
  12919. }
  12920. ee.EncodeBool(v2)
  12921. }
  12922. }
  12923. if cr != nil {
  12924. cr.sendContainerState(containerMapEnd)
  12925. }
  12926. }
  12927. func (f *encFnInfo) fastpathEncMapInt32IntfR(rv reflect.Value) {
  12928. fastpathTV.EncMapInt32IntfV(rv.Interface().(map[int32]interface{}), fastpathCheckNilFalse, f.e)
  12929. }
  12930. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, checkNil bool, e *Encoder) {
  12931. ee := e.e
  12932. cr := e.cr
  12933. if checkNil && v == nil {
  12934. ee.EncodeNil()
  12935. return
  12936. }
  12937. ee.EncodeMapStart(len(v))
  12938. if e.h.Canonical {
  12939. v2 := make([]int64, len(v))
  12940. var i int
  12941. for k, _ := range v {
  12942. v2[i] = int64(k)
  12943. i++
  12944. }
  12945. sort.Sort(intSlice(v2))
  12946. for _, k2 := range v2 {
  12947. if cr != nil {
  12948. cr.sendContainerState(containerMapKey)
  12949. }
  12950. ee.EncodeInt(int64(int32(k2)))
  12951. if cr != nil {
  12952. cr.sendContainerState(containerMapValue)
  12953. }
  12954. e.encode(v[int32(k2)])
  12955. }
  12956. } else {
  12957. for k2, v2 := range v {
  12958. if cr != nil {
  12959. cr.sendContainerState(containerMapKey)
  12960. }
  12961. ee.EncodeInt(int64(k2))
  12962. if cr != nil {
  12963. cr.sendContainerState(containerMapValue)
  12964. }
  12965. e.encode(v2)
  12966. }
  12967. }
  12968. if cr != nil {
  12969. cr.sendContainerState(containerMapEnd)
  12970. }
  12971. }
  12972. func (f *encFnInfo) fastpathEncMapInt32StringR(rv reflect.Value) {
  12973. fastpathTV.EncMapInt32StringV(rv.Interface().(map[int32]string), fastpathCheckNilFalse, f.e)
  12974. }
  12975. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, checkNil bool, e *Encoder) {
  12976. ee := e.e
  12977. cr := e.cr
  12978. if checkNil && v == nil {
  12979. ee.EncodeNil()
  12980. return
  12981. }
  12982. ee.EncodeMapStart(len(v))
  12983. if e.h.Canonical {
  12984. v2 := make([]int64, len(v))
  12985. var i int
  12986. for k, _ := range v {
  12987. v2[i] = int64(k)
  12988. i++
  12989. }
  12990. sort.Sort(intSlice(v2))
  12991. for _, k2 := range v2 {
  12992. if cr != nil {
  12993. cr.sendContainerState(containerMapKey)
  12994. }
  12995. ee.EncodeInt(int64(int32(k2)))
  12996. if cr != nil {
  12997. cr.sendContainerState(containerMapValue)
  12998. }
  12999. ee.EncodeString(c_UTF8, v[int32(k2)])
  13000. }
  13001. } else {
  13002. for k2, v2 := range v {
  13003. if cr != nil {
  13004. cr.sendContainerState(containerMapKey)
  13005. }
  13006. ee.EncodeInt(int64(k2))
  13007. if cr != nil {
  13008. cr.sendContainerState(containerMapValue)
  13009. }
  13010. ee.EncodeString(c_UTF8, v2)
  13011. }
  13012. }
  13013. if cr != nil {
  13014. cr.sendContainerState(containerMapEnd)
  13015. }
  13016. }
  13017. func (f *encFnInfo) fastpathEncMapInt32UintR(rv reflect.Value) {
  13018. fastpathTV.EncMapInt32UintV(rv.Interface().(map[int32]uint), fastpathCheckNilFalse, f.e)
  13019. }
  13020. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, checkNil bool, e *Encoder) {
  13021. ee := e.e
  13022. cr := e.cr
  13023. if checkNil && v == nil {
  13024. ee.EncodeNil()
  13025. return
  13026. }
  13027. ee.EncodeMapStart(len(v))
  13028. if e.h.Canonical {
  13029. v2 := make([]int64, len(v))
  13030. var i int
  13031. for k, _ := range v {
  13032. v2[i] = int64(k)
  13033. i++
  13034. }
  13035. sort.Sort(intSlice(v2))
  13036. for _, k2 := range v2 {
  13037. if cr != nil {
  13038. cr.sendContainerState(containerMapKey)
  13039. }
  13040. ee.EncodeInt(int64(int32(k2)))
  13041. if cr != nil {
  13042. cr.sendContainerState(containerMapValue)
  13043. }
  13044. ee.EncodeUint(uint64(v[int32(k2)]))
  13045. }
  13046. } else {
  13047. for k2, v2 := range v {
  13048. if cr != nil {
  13049. cr.sendContainerState(containerMapKey)
  13050. }
  13051. ee.EncodeInt(int64(k2))
  13052. if cr != nil {
  13053. cr.sendContainerState(containerMapValue)
  13054. }
  13055. ee.EncodeUint(uint64(v2))
  13056. }
  13057. }
  13058. if cr != nil {
  13059. cr.sendContainerState(containerMapEnd)
  13060. }
  13061. }
  13062. func (f *encFnInfo) fastpathEncMapInt32Uint8R(rv reflect.Value) {
  13063. fastpathTV.EncMapInt32Uint8V(rv.Interface().(map[int32]uint8), fastpathCheckNilFalse, f.e)
  13064. }
  13065. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, checkNil bool, e *Encoder) {
  13066. ee := e.e
  13067. cr := e.cr
  13068. if checkNil && v == nil {
  13069. ee.EncodeNil()
  13070. return
  13071. }
  13072. ee.EncodeMapStart(len(v))
  13073. if e.h.Canonical {
  13074. v2 := make([]int64, len(v))
  13075. var i int
  13076. for k, _ := range v {
  13077. v2[i] = int64(k)
  13078. i++
  13079. }
  13080. sort.Sort(intSlice(v2))
  13081. for _, k2 := range v2 {
  13082. if cr != nil {
  13083. cr.sendContainerState(containerMapKey)
  13084. }
  13085. ee.EncodeInt(int64(int32(k2)))
  13086. if cr != nil {
  13087. cr.sendContainerState(containerMapValue)
  13088. }
  13089. ee.EncodeUint(uint64(v[int32(k2)]))
  13090. }
  13091. } else {
  13092. for k2, v2 := range v {
  13093. if cr != nil {
  13094. cr.sendContainerState(containerMapKey)
  13095. }
  13096. ee.EncodeInt(int64(k2))
  13097. if cr != nil {
  13098. cr.sendContainerState(containerMapValue)
  13099. }
  13100. ee.EncodeUint(uint64(v2))
  13101. }
  13102. }
  13103. if cr != nil {
  13104. cr.sendContainerState(containerMapEnd)
  13105. }
  13106. }
  13107. func (f *encFnInfo) fastpathEncMapInt32Uint16R(rv reflect.Value) {
  13108. fastpathTV.EncMapInt32Uint16V(rv.Interface().(map[int32]uint16), fastpathCheckNilFalse, f.e)
  13109. }
  13110. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, checkNil bool, e *Encoder) {
  13111. ee := e.e
  13112. cr := e.cr
  13113. if checkNil && v == nil {
  13114. ee.EncodeNil()
  13115. return
  13116. }
  13117. ee.EncodeMapStart(len(v))
  13118. if e.h.Canonical {
  13119. v2 := make([]int64, len(v))
  13120. var i int
  13121. for k, _ := range v {
  13122. v2[i] = int64(k)
  13123. i++
  13124. }
  13125. sort.Sort(intSlice(v2))
  13126. for _, k2 := range v2 {
  13127. if cr != nil {
  13128. cr.sendContainerState(containerMapKey)
  13129. }
  13130. ee.EncodeInt(int64(int32(k2)))
  13131. if cr != nil {
  13132. cr.sendContainerState(containerMapValue)
  13133. }
  13134. ee.EncodeUint(uint64(v[int32(k2)]))
  13135. }
  13136. } else {
  13137. for k2, v2 := range v {
  13138. if cr != nil {
  13139. cr.sendContainerState(containerMapKey)
  13140. }
  13141. ee.EncodeInt(int64(k2))
  13142. if cr != nil {
  13143. cr.sendContainerState(containerMapValue)
  13144. }
  13145. ee.EncodeUint(uint64(v2))
  13146. }
  13147. }
  13148. if cr != nil {
  13149. cr.sendContainerState(containerMapEnd)
  13150. }
  13151. }
  13152. func (f *encFnInfo) fastpathEncMapInt32Uint32R(rv reflect.Value) {
  13153. fastpathTV.EncMapInt32Uint32V(rv.Interface().(map[int32]uint32), fastpathCheckNilFalse, f.e)
  13154. }
  13155. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, checkNil bool, e *Encoder) {
  13156. ee := e.e
  13157. cr := e.cr
  13158. if checkNil && v == nil {
  13159. ee.EncodeNil()
  13160. return
  13161. }
  13162. ee.EncodeMapStart(len(v))
  13163. if e.h.Canonical {
  13164. v2 := make([]int64, len(v))
  13165. var i int
  13166. for k, _ := range v {
  13167. v2[i] = int64(k)
  13168. i++
  13169. }
  13170. sort.Sort(intSlice(v2))
  13171. for _, k2 := range v2 {
  13172. if cr != nil {
  13173. cr.sendContainerState(containerMapKey)
  13174. }
  13175. ee.EncodeInt(int64(int32(k2)))
  13176. if cr != nil {
  13177. cr.sendContainerState(containerMapValue)
  13178. }
  13179. ee.EncodeUint(uint64(v[int32(k2)]))
  13180. }
  13181. } else {
  13182. for k2, v2 := range v {
  13183. if cr != nil {
  13184. cr.sendContainerState(containerMapKey)
  13185. }
  13186. ee.EncodeInt(int64(k2))
  13187. if cr != nil {
  13188. cr.sendContainerState(containerMapValue)
  13189. }
  13190. ee.EncodeUint(uint64(v2))
  13191. }
  13192. }
  13193. if cr != nil {
  13194. cr.sendContainerState(containerMapEnd)
  13195. }
  13196. }
  13197. func (f *encFnInfo) fastpathEncMapInt32Uint64R(rv reflect.Value) {
  13198. fastpathTV.EncMapInt32Uint64V(rv.Interface().(map[int32]uint64), fastpathCheckNilFalse, f.e)
  13199. }
  13200. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, checkNil bool, e *Encoder) {
  13201. ee := e.e
  13202. cr := e.cr
  13203. if checkNil && v == nil {
  13204. ee.EncodeNil()
  13205. return
  13206. }
  13207. ee.EncodeMapStart(len(v))
  13208. if e.h.Canonical {
  13209. v2 := make([]int64, len(v))
  13210. var i int
  13211. for k, _ := range v {
  13212. v2[i] = int64(k)
  13213. i++
  13214. }
  13215. sort.Sort(intSlice(v2))
  13216. for _, k2 := range v2 {
  13217. if cr != nil {
  13218. cr.sendContainerState(containerMapKey)
  13219. }
  13220. ee.EncodeInt(int64(int32(k2)))
  13221. if cr != nil {
  13222. cr.sendContainerState(containerMapValue)
  13223. }
  13224. ee.EncodeUint(uint64(v[int32(k2)]))
  13225. }
  13226. } else {
  13227. for k2, v2 := range v {
  13228. if cr != nil {
  13229. cr.sendContainerState(containerMapKey)
  13230. }
  13231. ee.EncodeInt(int64(k2))
  13232. if cr != nil {
  13233. cr.sendContainerState(containerMapValue)
  13234. }
  13235. ee.EncodeUint(uint64(v2))
  13236. }
  13237. }
  13238. if cr != nil {
  13239. cr.sendContainerState(containerMapEnd)
  13240. }
  13241. }
  13242. func (f *encFnInfo) fastpathEncMapInt32UintptrR(rv reflect.Value) {
  13243. fastpathTV.EncMapInt32UintptrV(rv.Interface().(map[int32]uintptr), fastpathCheckNilFalse, f.e)
  13244. }
  13245. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, checkNil bool, e *Encoder) {
  13246. ee := e.e
  13247. cr := e.cr
  13248. if checkNil && v == nil {
  13249. ee.EncodeNil()
  13250. return
  13251. }
  13252. ee.EncodeMapStart(len(v))
  13253. if e.h.Canonical {
  13254. v2 := make([]int64, len(v))
  13255. var i int
  13256. for k, _ := range v {
  13257. v2[i] = int64(k)
  13258. i++
  13259. }
  13260. sort.Sort(intSlice(v2))
  13261. for _, k2 := range v2 {
  13262. if cr != nil {
  13263. cr.sendContainerState(containerMapKey)
  13264. }
  13265. ee.EncodeInt(int64(int32(k2)))
  13266. if cr != nil {
  13267. cr.sendContainerState(containerMapValue)
  13268. }
  13269. e.encode(v[int32(k2)])
  13270. }
  13271. } else {
  13272. for k2, v2 := range v {
  13273. if cr != nil {
  13274. cr.sendContainerState(containerMapKey)
  13275. }
  13276. ee.EncodeInt(int64(k2))
  13277. if cr != nil {
  13278. cr.sendContainerState(containerMapValue)
  13279. }
  13280. e.encode(v2)
  13281. }
  13282. }
  13283. if cr != nil {
  13284. cr.sendContainerState(containerMapEnd)
  13285. }
  13286. }
  13287. func (f *encFnInfo) fastpathEncMapInt32IntR(rv reflect.Value) {
  13288. fastpathTV.EncMapInt32IntV(rv.Interface().(map[int32]int), fastpathCheckNilFalse, f.e)
  13289. }
  13290. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, checkNil bool, e *Encoder) {
  13291. ee := e.e
  13292. cr := e.cr
  13293. if checkNil && v == nil {
  13294. ee.EncodeNil()
  13295. return
  13296. }
  13297. ee.EncodeMapStart(len(v))
  13298. if e.h.Canonical {
  13299. v2 := make([]int64, len(v))
  13300. var i int
  13301. for k, _ := range v {
  13302. v2[i] = int64(k)
  13303. i++
  13304. }
  13305. sort.Sort(intSlice(v2))
  13306. for _, k2 := range v2 {
  13307. if cr != nil {
  13308. cr.sendContainerState(containerMapKey)
  13309. }
  13310. ee.EncodeInt(int64(int32(k2)))
  13311. if cr != nil {
  13312. cr.sendContainerState(containerMapValue)
  13313. }
  13314. ee.EncodeInt(int64(v[int32(k2)]))
  13315. }
  13316. } else {
  13317. for k2, v2 := range v {
  13318. if cr != nil {
  13319. cr.sendContainerState(containerMapKey)
  13320. }
  13321. ee.EncodeInt(int64(k2))
  13322. if cr != nil {
  13323. cr.sendContainerState(containerMapValue)
  13324. }
  13325. ee.EncodeInt(int64(v2))
  13326. }
  13327. }
  13328. if cr != nil {
  13329. cr.sendContainerState(containerMapEnd)
  13330. }
  13331. }
  13332. func (f *encFnInfo) fastpathEncMapInt32Int8R(rv reflect.Value) {
  13333. fastpathTV.EncMapInt32Int8V(rv.Interface().(map[int32]int8), fastpathCheckNilFalse, f.e)
  13334. }
  13335. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, checkNil bool, e *Encoder) {
  13336. ee := e.e
  13337. cr := e.cr
  13338. if checkNil && v == nil {
  13339. ee.EncodeNil()
  13340. return
  13341. }
  13342. ee.EncodeMapStart(len(v))
  13343. if e.h.Canonical {
  13344. v2 := make([]int64, len(v))
  13345. var i int
  13346. for k, _ := range v {
  13347. v2[i] = int64(k)
  13348. i++
  13349. }
  13350. sort.Sort(intSlice(v2))
  13351. for _, k2 := range v2 {
  13352. if cr != nil {
  13353. cr.sendContainerState(containerMapKey)
  13354. }
  13355. ee.EncodeInt(int64(int32(k2)))
  13356. if cr != nil {
  13357. cr.sendContainerState(containerMapValue)
  13358. }
  13359. ee.EncodeInt(int64(v[int32(k2)]))
  13360. }
  13361. } else {
  13362. for k2, v2 := range v {
  13363. if cr != nil {
  13364. cr.sendContainerState(containerMapKey)
  13365. }
  13366. ee.EncodeInt(int64(k2))
  13367. if cr != nil {
  13368. cr.sendContainerState(containerMapValue)
  13369. }
  13370. ee.EncodeInt(int64(v2))
  13371. }
  13372. }
  13373. if cr != nil {
  13374. cr.sendContainerState(containerMapEnd)
  13375. }
  13376. }
  13377. func (f *encFnInfo) fastpathEncMapInt32Int16R(rv reflect.Value) {
  13378. fastpathTV.EncMapInt32Int16V(rv.Interface().(map[int32]int16), fastpathCheckNilFalse, f.e)
  13379. }
  13380. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, checkNil bool, e *Encoder) {
  13381. ee := e.e
  13382. cr := e.cr
  13383. if checkNil && v == nil {
  13384. ee.EncodeNil()
  13385. return
  13386. }
  13387. ee.EncodeMapStart(len(v))
  13388. if e.h.Canonical {
  13389. v2 := make([]int64, len(v))
  13390. var i int
  13391. for k, _ := range v {
  13392. v2[i] = int64(k)
  13393. i++
  13394. }
  13395. sort.Sort(intSlice(v2))
  13396. for _, k2 := range v2 {
  13397. if cr != nil {
  13398. cr.sendContainerState(containerMapKey)
  13399. }
  13400. ee.EncodeInt(int64(int32(k2)))
  13401. if cr != nil {
  13402. cr.sendContainerState(containerMapValue)
  13403. }
  13404. ee.EncodeInt(int64(v[int32(k2)]))
  13405. }
  13406. } else {
  13407. for k2, v2 := range v {
  13408. if cr != nil {
  13409. cr.sendContainerState(containerMapKey)
  13410. }
  13411. ee.EncodeInt(int64(k2))
  13412. if cr != nil {
  13413. cr.sendContainerState(containerMapValue)
  13414. }
  13415. ee.EncodeInt(int64(v2))
  13416. }
  13417. }
  13418. if cr != nil {
  13419. cr.sendContainerState(containerMapEnd)
  13420. }
  13421. }
  13422. func (f *encFnInfo) fastpathEncMapInt32Int32R(rv reflect.Value) {
  13423. fastpathTV.EncMapInt32Int32V(rv.Interface().(map[int32]int32), fastpathCheckNilFalse, f.e)
  13424. }
  13425. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, checkNil bool, e *Encoder) {
  13426. ee := e.e
  13427. cr := e.cr
  13428. if checkNil && v == nil {
  13429. ee.EncodeNil()
  13430. return
  13431. }
  13432. ee.EncodeMapStart(len(v))
  13433. if e.h.Canonical {
  13434. v2 := make([]int64, len(v))
  13435. var i int
  13436. for k, _ := range v {
  13437. v2[i] = int64(k)
  13438. i++
  13439. }
  13440. sort.Sort(intSlice(v2))
  13441. for _, k2 := range v2 {
  13442. if cr != nil {
  13443. cr.sendContainerState(containerMapKey)
  13444. }
  13445. ee.EncodeInt(int64(int32(k2)))
  13446. if cr != nil {
  13447. cr.sendContainerState(containerMapValue)
  13448. }
  13449. ee.EncodeInt(int64(v[int32(k2)]))
  13450. }
  13451. } else {
  13452. for k2, v2 := range v {
  13453. if cr != nil {
  13454. cr.sendContainerState(containerMapKey)
  13455. }
  13456. ee.EncodeInt(int64(k2))
  13457. if cr != nil {
  13458. cr.sendContainerState(containerMapValue)
  13459. }
  13460. ee.EncodeInt(int64(v2))
  13461. }
  13462. }
  13463. if cr != nil {
  13464. cr.sendContainerState(containerMapEnd)
  13465. }
  13466. }
  13467. func (f *encFnInfo) fastpathEncMapInt32Int64R(rv reflect.Value) {
  13468. fastpathTV.EncMapInt32Int64V(rv.Interface().(map[int32]int64), fastpathCheckNilFalse, f.e)
  13469. }
  13470. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, checkNil bool, e *Encoder) {
  13471. ee := e.e
  13472. cr := e.cr
  13473. if checkNil && v == nil {
  13474. ee.EncodeNil()
  13475. return
  13476. }
  13477. ee.EncodeMapStart(len(v))
  13478. if e.h.Canonical {
  13479. v2 := make([]int64, len(v))
  13480. var i int
  13481. for k, _ := range v {
  13482. v2[i] = int64(k)
  13483. i++
  13484. }
  13485. sort.Sort(intSlice(v2))
  13486. for _, k2 := range v2 {
  13487. if cr != nil {
  13488. cr.sendContainerState(containerMapKey)
  13489. }
  13490. ee.EncodeInt(int64(int32(k2)))
  13491. if cr != nil {
  13492. cr.sendContainerState(containerMapValue)
  13493. }
  13494. ee.EncodeInt(int64(v[int32(k2)]))
  13495. }
  13496. } else {
  13497. for k2, v2 := range v {
  13498. if cr != nil {
  13499. cr.sendContainerState(containerMapKey)
  13500. }
  13501. ee.EncodeInt(int64(k2))
  13502. if cr != nil {
  13503. cr.sendContainerState(containerMapValue)
  13504. }
  13505. ee.EncodeInt(int64(v2))
  13506. }
  13507. }
  13508. if cr != nil {
  13509. cr.sendContainerState(containerMapEnd)
  13510. }
  13511. }
  13512. func (f *encFnInfo) fastpathEncMapInt32Float32R(rv reflect.Value) {
  13513. fastpathTV.EncMapInt32Float32V(rv.Interface().(map[int32]float32), fastpathCheckNilFalse, f.e)
  13514. }
  13515. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, checkNil bool, e *Encoder) {
  13516. ee := e.e
  13517. cr := e.cr
  13518. if checkNil && v == nil {
  13519. ee.EncodeNil()
  13520. return
  13521. }
  13522. ee.EncodeMapStart(len(v))
  13523. if e.h.Canonical {
  13524. v2 := make([]int64, len(v))
  13525. var i int
  13526. for k, _ := range v {
  13527. v2[i] = int64(k)
  13528. i++
  13529. }
  13530. sort.Sort(intSlice(v2))
  13531. for _, k2 := range v2 {
  13532. if cr != nil {
  13533. cr.sendContainerState(containerMapKey)
  13534. }
  13535. ee.EncodeInt(int64(int32(k2)))
  13536. if cr != nil {
  13537. cr.sendContainerState(containerMapValue)
  13538. }
  13539. ee.EncodeFloat32(v[int32(k2)])
  13540. }
  13541. } else {
  13542. for k2, v2 := range v {
  13543. if cr != nil {
  13544. cr.sendContainerState(containerMapKey)
  13545. }
  13546. ee.EncodeInt(int64(k2))
  13547. if cr != nil {
  13548. cr.sendContainerState(containerMapValue)
  13549. }
  13550. ee.EncodeFloat32(v2)
  13551. }
  13552. }
  13553. if cr != nil {
  13554. cr.sendContainerState(containerMapEnd)
  13555. }
  13556. }
  13557. func (f *encFnInfo) fastpathEncMapInt32Float64R(rv reflect.Value) {
  13558. fastpathTV.EncMapInt32Float64V(rv.Interface().(map[int32]float64), fastpathCheckNilFalse, f.e)
  13559. }
  13560. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, checkNil bool, e *Encoder) {
  13561. ee := e.e
  13562. cr := e.cr
  13563. if checkNil && v == nil {
  13564. ee.EncodeNil()
  13565. return
  13566. }
  13567. ee.EncodeMapStart(len(v))
  13568. if e.h.Canonical {
  13569. v2 := make([]int64, len(v))
  13570. var i int
  13571. for k, _ := range v {
  13572. v2[i] = int64(k)
  13573. i++
  13574. }
  13575. sort.Sort(intSlice(v2))
  13576. for _, k2 := range v2 {
  13577. if cr != nil {
  13578. cr.sendContainerState(containerMapKey)
  13579. }
  13580. ee.EncodeInt(int64(int32(k2)))
  13581. if cr != nil {
  13582. cr.sendContainerState(containerMapValue)
  13583. }
  13584. ee.EncodeFloat64(v[int32(k2)])
  13585. }
  13586. } else {
  13587. for k2, v2 := range v {
  13588. if cr != nil {
  13589. cr.sendContainerState(containerMapKey)
  13590. }
  13591. ee.EncodeInt(int64(k2))
  13592. if cr != nil {
  13593. cr.sendContainerState(containerMapValue)
  13594. }
  13595. ee.EncodeFloat64(v2)
  13596. }
  13597. }
  13598. if cr != nil {
  13599. cr.sendContainerState(containerMapEnd)
  13600. }
  13601. }
  13602. func (f *encFnInfo) fastpathEncMapInt32BoolR(rv reflect.Value) {
  13603. fastpathTV.EncMapInt32BoolV(rv.Interface().(map[int32]bool), fastpathCheckNilFalse, f.e)
  13604. }
  13605. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, checkNil bool, e *Encoder) {
  13606. ee := e.e
  13607. cr := e.cr
  13608. if checkNil && v == nil {
  13609. ee.EncodeNil()
  13610. return
  13611. }
  13612. ee.EncodeMapStart(len(v))
  13613. if e.h.Canonical {
  13614. v2 := make([]int64, len(v))
  13615. var i int
  13616. for k, _ := range v {
  13617. v2[i] = int64(k)
  13618. i++
  13619. }
  13620. sort.Sort(intSlice(v2))
  13621. for _, k2 := range v2 {
  13622. if cr != nil {
  13623. cr.sendContainerState(containerMapKey)
  13624. }
  13625. ee.EncodeInt(int64(int32(k2)))
  13626. if cr != nil {
  13627. cr.sendContainerState(containerMapValue)
  13628. }
  13629. ee.EncodeBool(v[int32(k2)])
  13630. }
  13631. } else {
  13632. for k2, v2 := range v {
  13633. if cr != nil {
  13634. cr.sendContainerState(containerMapKey)
  13635. }
  13636. ee.EncodeInt(int64(k2))
  13637. if cr != nil {
  13638. cr.sendContainerState(containerMapValue)
  13639. }
  13640. ee.EncodeBool(v2)
  13641. }
  13642. }
  13643. if cr != nil {
  13644. cr.sendContainerState(containerMapEnd)
  13645. }
  13646. }
  13647. func (f *encFnInfo) fastpathEncMapInt64IntfR(rv reflect.Value) {
  13648. fastpathTV.EncMapInt64IntfV(rv.Interface().(map[int64]interface{}), fastpathCheckNilFalse, f.e)
  13649. }
  13650. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, checkNil bool, e *Encoder) {
  13651. ee := e.e
  13652. cr := e.cr
  13653. if checkNil && v == nil {
  13654. ee.EncodeNil()
  13655. return
  13656. }
  13657. ee.EncodeMapStart(len(v))
  13658. if e.h.Canonical {
  13659. v2 := make([]int64, len(v))
  13660. var i int
  13661. for k, _ := range v {
  13662. v2[i] = int64(k)
  13663. i++
  13664. }
  13665. sort.Sort(intSlice(v2))
  13666. for _, k2 := range v2 {
  13667. if cr != nil {
  13668. cr.sendContainerState(containerMapKey)
  13669. }
  13670. ee.EncodeInt(int64(int64(k2)))
  13671. if cr != nil {
  13672. cr.sendContainerState(containerMapValue)
  13673. }
  13674. e.encode(v[int64(k2)])
  13675. }
  13676. } else {
  13677. for k2, v2 := range v {
  13678. if cr != nil {
  13679. cr.sendContainerState(containerMapKey)
  13680. }
  13681. ee.EncodeInt(int64(k2))
  13682. if cr != nil {
  13683. cr.sendContainerState(containerMapValue)
  13684. }
  13685. e.encode(v2)
  13686. }
  13687. }
  13688. if cr != nil {
  13689. cr.sendContainerState(containerMapEnd)
  13690. }
  13691. }
  13692. func (f *encFnInfo) fastpathEncMapInt64StringR(rv reflect.Value) {
  13693. fastpathTV.EncMapInt64StringV(rv.Interface().(map[int64]string), fastpathCheckNilFalse, f.e)
  13694. }
  13695. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, checkNil bool, e *Encoder) {
  13696. ee := e.e
  13697. cr := e.cr
  13698. if checkNil && v == nil {
  13699. ee.EncodeNil()
  13700. return
  13701. }
  13702. ee.EncodeMapStart(len(v))
  13703. if e.h.Canonical {
  13704. v2 := make([]int64, len(v))
  13705. var i int
  13706. for k, _ := range v {
  13707. v2[i] = int64(k)
  13708. i++
  13709. }
  13710. sort.Sort(intSlice(v2))
  13711. for _, k2 := range v2 {
  13712. if cr != nil {
  13713. cr.sendContainerState(containerMapKey)
  13714. }
  13715. ee.EncodeInt(int64(int64(k2)))
  13716. if cr != nil {
  13717. cr.sendContainerState(containerMapValue)
  13718. }
  13719. ee.EncodeString(c_UTF8, v[int64(k2)])
  13720. }
  13721. } else {
  13722. for k2, v2 := range v {
  13723. if cr != nil {
  13724. cr.sendContainerState(containerMapKey)
  13725. }
  13726. ee.EncodeInt(int64(k2))
  13727. if cr != nil {
  13728. cr.sendContainerState(containerMapValue)
  13729. }
  13730. ee.EncodeString(c_UTF8, v2)
  13731. }
  13732. }
  13733. if cr != nil {
  13734. cr.sendContainerState(containerMapEnd)
  13735. }
  13736. }
  13737. func (f *encFnInfo) fastpathEncMapInt64UintR(rv reflect.Value) {
  13738. fastpathTV.EncMapInt64UintV(rv.Interface().(map[int64]uint), fastpathCheckNilFalse, f.e)
  13739. }
  13740. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, checkNil bool, e *Encoder) {
  13741. ee := e.e
  13742. cr := e.cr
  13743. if checkNil && v == nil {
  13744. ee.EncodeNil()
  13745. return
  13746. }
  13747. ee.EncodeMapStart(len(v))
  13748. if e.h.Canonical {
  13749. v2 := make([]int64, len(v))
  13750. var i int
  13751. for k, _ := range v {
  13752. v2[i] = int64(k)
  13753. i++
  13754. }
  13755. sort.Sort(intSlice(v2))
  13756. for _, k2 := range v2 {
  13757. if cr != nil {
  13758. cr.sendContainerState(containerMapKey)
  13759. }
  13760. ee.EncodeInt(int64(int64(k2)))
  13761. if cr != nil {
  13762. cr.sendContainerState(containerMapValue)
  13763. }
  13764. ee.EncodeUint(uint64(v[int64(k2)]))
  13765. }
  13766. } else {
  13767. for k2, v2 := range v {
  13768. if cr != nil {
  13769. cr.sendContainerState(containerMapKey)
  13770. }
  13771. ee.EncodeInt(int64(k2))
  13772. if cr != nil {
  13773. cr.sendContainerState(containerMapValue)
  13774. }
  13775. ee.EncodeUint(uint64(v2))
  13776. }
  13777. }
  13778. if cr != nil {
  13779. cr.sendContainerState(containerMapEnd)
  13780. }
  13781. }
  13782. func (f *encFnInfo) fastpathEncMapInt64Uint8R(rv reflect.Value) {
  13783. fastpathTV.EncMapInt64Uint8V(rv.Interface().(map[int64]uint8), fastpathCheckNilFalse, f.e)
  13784. }
  13785. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, checkNil bool, e *Encoder) {
  13786. ee := e.e
  13787. cr := e.cr
  13788. if checkNil && v == nil {
  13789. ee.EncodeNil()
  13790. return
  13791. }
  13792. ee.EncodeMapStart(len(v))
  13793. if e.h.Canonical {
  13794. v2 := make([]int64, len(v))
  13795. var i int
  13796. for k, _ := range v {
  13797. v2[i] = int64(k)
  13798. i++
  13799. }
  13800. sort.Sort(intSlice(v2))
  13801. for _, k2 := range v2 {
  13802. if cr != nil {
  13803. cr.sendContainerState(containerMapKey)
  13804. }
  13805. ee.EncodeInt(int64(int64(k2)))
  13806. if cr != nil {
  13807. cr.sendContainerState(containerMapValue)
  13808. }
  13809. ee.EncodeUint(uint64(v[int64(k2)]))
  13810. }
  13811. } else {
  13812. for k2, v2 := range v {
  13813. if cr != nil {
  13814. cr.sendContainerState(containerMapKey)
  13815. }
  13816. ee.EncodeInt(int64(k2))
  13817. if cr != nil {
  13818. cr.sendContainerState(containerMapValue)
  13819. }
  13820. ee.EncodeUint(uint64(v2))
  13821. }
  13822. }
  13823. if cr != nil {
  13824. cr.sendContainerState(containerMapEnd)
  13825. }
  13826. }
  13827. func (f *encFnInfo) fastpathEncMapInt64Uint16R(rv reflect.Value) {
  13828. fastpathTV.EncMapInt64Uint16V(rv.Interface().(map[int64]uint16), fastpathCheckNilFalse, f.e)
  13829. }
  13830. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, checkNil bool, e *Encoder) {
  13831. ee := e.e
  13832. cr := e.cr
  13833. if checkNil && v == nil {
  13834. ee.EncodeNil()
  13835. return
  13836. }
  13837. ee.EncodeMapStart(len(v))
  13838. if e.h.Canonical {
  13839. v2 := make([]int64, len(v))
  13840. var i int
  13841. for k, _ := range v {
  13842. v2[i] = int64(k)
  13843. i++
  13844. }
  13845. sort.Sort(intSlice(v2))
  13846. for _, k2 := range v2 {
  13847. if cr != nil {
  13848. cr.sendContainerState(containerMapKey)
  13849. }
  13850. ee.EncodeInt(int64(int64(k2)))
  13851. if cr != nil {
  13852. cr.sendContainerState(containerMapValue)
  13853. }
  13854. ee.EncodeUint(uint64(v[int64(k2)]))
  13855. }
  13856. } else {
  13857. for k2, v2 := range v {
  13858. if cr != nil {
  13859. cr.sendContainerState(containerMapKey)
  13860. }
  13861. ee.EncodeInt(int64(k2))
  13862. if cr != nil {
  13863. cr.sendContainerState(containerMapValue)
  13864. }
  13865. ee.EncodeUint(uint64(v2))
  13866. }
  13867. }
  13868. if cr != nil {
  13869. cr.sendContainerState(containerMapEnd)
  13870. }
  13871. }
  13872. func (f *encFnInfo) fastpathEncMapInt64Uint32R(rv reflect.Value) {
  13873. fastpathTV.EncMapInt64Uint32V(rv.Interface().(map[int64]uint32), fastpathCheckNilFalse, f.e)
  13874. }
  13875. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, checkNil bool, e *Encoder) {
  13876. ee := e.e
  13877. cr := e.cr
  13878. if checkNil && v == nil {
  13879. ee.EncodeNil()
  13880. return
  13881. }
  13882. ee.EncodeMapStart(len(v))
  13883. if e.h.Canonical {
  13884. v2 := make([]int64, len(v))
  13885. var i int
  13886. for k, _ := range v {
  13887. v2[i] = int64(k)
  13888. i++
  13889. }
  13890. sort.Sort(intSlice(v2))
  13891. for _, k2 := range v2 {
  13892. if cr != nil {
  13893. cr.sendContainerState(containerMapKey)
  13894. }
  13895. ee.EncodeInt(int64(int64(k2)))
  13896. if cr != nil {
  13897. cr.sendContainerState(containerMapValue)
  13898. }
  13899. ee.EncodeUint(uint64(v[int64(k2)]))
  13900. }
  13901. } else {
  13902. for k2, v2 := range v {
  13903. if cr != nil {
  13904. cr.sendContainerState(containerMapKey)
  13905. }
  13906. ee.EncodeInt(int64(k2))
  13907. if cr != nil {
  13908. cr.sendContainerState(containerMapValue)
  13909. }
  13910. ee.EncodeUint(uint64(v2))
  13911. }
  13912. }
  13913. if cr != nil {
  13914. cr.sendContainerState(containerMapEnd)
  13915. }
  13916. }
  13917. func (f *encFnInfo) fastpathEncMapInt64Uint64R(rv reflect.Value) {
  13918. fastpathTV.EncMapInt64Uint64V(rv.Interface().(map[int64]uint64), fastpathCheckNilFalse, f.e)
  13919. }
  13920. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, checkNil bool, e *Encoder) {
  13921. ee := e.e
  13922. cr := e.cr
  13923. if checkNil && v == nil {
  13924. ee.EncodeNil()
  13925. return
  13926. }
  13927. ee.EncodeMapStart(len(v))
  13928. if e.h.Canonical {
  13929. v2 := make([]int64, len(v))
  13930. var i int
  13931. for k, _ := range v {
  13932. v2[i] = int64(k)
  13933. i++
  13934. }
  13935. sort.Sort(intSlice(v2))
  13936. for _, k2 := range v2 {
  13937. if cr != nil {
  13938. cr.sendContainerState(containerMapKey)
  13939. }
  13940. ee.EncodeInt(int64(int64(k2)))
  13941. if cr != nil {
  13942. cr.sendContainerState(containerMapValue)
  13943. }
  13944. ee.EncodeUint(uint64(v[int64(k2)]))
  13945. }
  13946. } else {
  13947. for k2, v2 := range v {
  13948. if cr != nil {
  13949. cr.sendContainerState(containerMapKey)
  13950. }
  13951. ee.EncodeInt(int64(k2))
  13952. if cr != nil {
  13953. cr.sendContainerState(containerMapValue)
  13954. }
  13955. ee.EncodeUint(uint64(v2))
  13956. }
  13957. }
  13958. if cr != nil {
  13959. cr.sendContainerState(containerMapEnd)
  13960. }
  13961. }
  13962. func (f *encFnInfo) fastpathEncMapInt64UintptrR(rv reflect.Value) {
  13963. fastpathTV.EncMapInt64UintptrV(rv.Interface().(map[int64]uintptr), fastpathCheckNilFalse, f.e)
  13964. }
  13965. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, checkNil bool, e *Encoder) {
  13966. ee := e.e
  13967. cr := e.cr
  13968. if checkNil && v == nil {
  13969. ee.EncodeNil()
  13970. return
  13971. }
  13972. ee.EncodeMapStart(len(v))
  13973. if e.h.Canonical {
  13974. v2 := make([]int64, len(v))
  13975. var i int
  13976. for k, _ := range v {
  13977. v2[i] = int64(k)
  13978. i++
  13979. }
  13980. sort.Sort(intSlice(v2))
  13981. for _, k2 := range v2 {
  13982. if cr != nil {
  13983. cr.sendContainerState(containerMapKey)
  13984. }
  13985. ee.EncodeInt(int64(int64(k2)))
  13986. if cr != nil {
  13987. cr.sendContainerState(containerMapValue)
  13988. }
  13989. e.encode(v[int64(k2)])
  13990. }
  13991. } else {
  13992. for k2, v2 := range v {
  13993. if cr != nil {
  13994. cr.sendContainerState(containerMapKey)
  13995. }
  13996. ee.EncodeInt(int64(k2))
  13997. if cr != nil {
  13998. cr.sendContainerState(containerMapValue)
  13999. }
  14000. e.encode(v2)
  14001. }
  14002. }
  14003. if cr != nil {
  14004. cr.sendContainerState(containerMapEnd)
  14005. }
  14006. }
  14007. func (f *encFnInfo) fastpathEncMapInt64IntR(rv reflect.Value) {
  14008. fastpathTV.EncMapInt64IntV(rv.Interface().(map[int64]int), fastpathCheckNilFalse, f.e)
  14009. }
  14010. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, checkNil bool, e *Encoder) {
  14011. ee := e.e
  14012. cr := e.cr
  14013. if checkNil && v == nil {
  14014. ee.EncodeNil()
  14015. return
  14016. }
  14017. ee.EncodeMapStart(len(v))
  14018. if e.h.Canonical {
  14019. v2 := make([]int64, len(v))
  14020. var i int
  14021. for k, _ := range v {
  14022. v2[i] = int64(k)
  14023. i++
  14024. }
  14025. sort.Sort(intSlice(v2))
  14026. for _, k2 := range v2 {
  14027. if cr != nil {
  14028. cr.sendContainerState(containerMapKey)
  14029. }
  14030. ee.EncodeInt(int64(int64(k2)))
  14031. if cr != nil {
  14032. cr.sendContainerState(containerMapValue)
  14033. }
  14034. ee.EncodeInt(int64(v[int64(k2)]))
  14035. }
  14036. } else {
  14037. for k2, v2 := range v {
  14038. if cr != nil {
  14039. cr.sendContainerState(containerMapKey)
  14040. }
  14041. ee.EncodeInt(int64(k2))
  14042. if cr != nil {
  14043. cr.sendContainerState(containerMapValue)
  14044. }
  14045. ee.EncodeInt(int64(v2))
  14046. }
  14047. }
  14048. if cr != nil {
  14049. cr.sendContainerState(containerMapEnd)
  14050. }
  14051. }
  14052. func (f *encFnInfo) fastpathEncMapInt64Int8R(rv reflect.Value) {
  14053. fastpathTV.EncMapInt64Int8V(rv.Interface().(map[int64]int8), fastpathCheckNilFalse, f.e)
  14054. }
  14055. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, checkNil bool, e *Encoder) {
  14056. ee := e.e
  14057. cr := e.cr
  14058. if checkNil && v == nil {
  14059. ee.EncodeNil()
  14060. return
  14061. }
  14062. ee.EncodeMapStart(len(v))
  14063. if e.h.Canonical {
  14064. v2 := make([]int64, len(v))
  14065. var i int
  14066. for k, _ := range v {
  14067. v2[i] = int64(k)
  14068. i++
  14069. }
  14070. sort.Sort(intSlice(v2))
  14071. for _, k2 := range v2 {
  14072. if cr != nil {
  14073. cr.sendContainerState(containerMapKey)
  14074. }
  14075. ee.EncodeInt(int64(int64(k2)))
  14076. if cr != nil {
  14077. cr.sendContainerState(containerMapValue)
  14078. }
  14079. ee.EncodeInt(int64(v[int64(k2)]))
  14080. }
  14081. } else {
  14082. for k2, v2 := range v {
  14083. if cr != nil {
  14084. cr.sendContainerState(containerMapKey)
  14085. }
  14086. ee.EncodeInt(int64(k2))
  14087. if cr != nil {
  14088. cr.sendContainerState(containerMapValue)
  14089. }
  14090. ee.EncodeInt(int64(v2))
  14091. }
  14092. }
  14093. if cr != nil {
  14094. cr.sendContainerState(containerMapEnd)
  14095. }
  14096. }
  14097. func (f *encFnInfo) fastpathEncMapInt64Int16R(rv reflect.Value) {
  14098. fastpathTV.EncMapInt64Int16V(rv.Interface().(map[int64]int16), fastpathCheckNilFalse, f.e)
  14099. }
  14100. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, checkNil bool, e *Encoder) {
  14101. ee := e.e
  14102. cr := e.cr
  14103. if checkNil && v == nil {
  14104. ee.EncodeNil()
  14105. return
  14106. }
  14107. ee.EncodeMapStart(len(v))
  14108. if e.h.Canonical {
  14109. v2 := make([]int64, len(v))
  14110. var i int
  14111. for k, _ := range v {
  14112. v2[i] = int64(k)
  14113. i++
  14114. }
  14115. sort.Sort(intSlice(v2))
  14116. for _, k2 := range v2 {
  14117. if cr != nil {
  14118. cr.sendContainerState(containerMapKey)
  14119. }
  14120. ee.EncodeInt(int64(int64(k2)))
  14121. if cr != nil {
  14122. cr.sendContainerState(containerMapValue)
  14123. }
  14124. ee.EncodeInt(int64(v[int64(k2)]))
  14125. }
  14126. } else {
  14127. for k2, v2 := range v {
  14128. if cr != nil {
  14129. cr.sendContainerState(containerMapKey)
  14130. }
  14131. ee.EncodeInt(int64(k2))
  14132. if cr != nil {
  14133. cr.sendContainerState(containerMapValue)
  14134. }
  14135. ee.EncodeInt(int64(v2))
  14136. }
  14137. }
  14138. if cr != nil {
  14139. cr.sendContainerState(containerMapEnd)
  14140. }
  14141. }
  14142. func (f *encFnInfo) fastpathEncMapInt64Int32R(rv reflect.Value) {
  14143. fastpathTV.EncMapInt64Int32V(rv.Interface().(map[int64]int32), fastpathCheckNilFalse, f.e)
  14144. }
  14145. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, checkNil bool, e *Encoder) {
  14146. ee := e.e
  14147. cr := e.cr
  14148. if checkNil && v == nil {
  14149. ee.EncodeNil()
  14150. return
  14151. }
  14152. ee.EncodeMapStart(len(v))
  14153. if e.h.Canonical {
  14154. v2 := make([]int64, len(v))
  14155. var i int
  14156. for k, _ := range v {
  14157. v2[i] = int64(k)
  14158. i++
  14159. }
  14160. sort.Sort(intSlice(v2))
  14161. for _, k2 := range v2 {
  14162. if cr != nil {
  14163. cr.sendContainerState(containerMapKey)
  14164. }
  14165. ee.EncodeInt(int64(int64(k2)))
  14166. if cr != nil {
  14167. cr.sendContainerState(containerMapValue)
  14168. }
  14169. ee.EncodeInt(int64(v[int64(k2)]))
  14170. }
  14171. } else {
  14172. for k2, v2 := range v {
  14173. if cr != nil {
  14174. cr.sendContainerState(containerMapKey)
  14175. }
  14176. ee.EncodeInt(int64(k2))
  14177. if cr != nil {
  14178. cr.sendContainerState(containerMapValue)
  14179. }
  14180. ee.EncodeInt(int64(v2))
  14181. }
  14182. }
  14183. if cr != nil {
  14184. cr.sendContainerState(containerMapEnd)
  14185. }
  14186. }
  14187. func (f *encFnInfo) fastpathEncMapInt64Int64R(rv reflect.Value) {
  14188. fastpathTV.EncMapInt64Int64V(rv.Interface().(map[int64]int64), fastpathCheckNilFalse, f.e)
  14189. }
  14190. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, checkNil bool, e *Encoder) {
  14191. ee := e.e
  14192. cr := e.cr
  14193. if checkNil && v == nil {
  14194. ee.EncodeNil()
  14195. return
  14196. }
  14197. ee.EncodeMapStart(len(v))
  14198. if e.h.Canonical {
  14199. v2 := make([]int64, len(v))
  14200. var i int
  14201. for k, _ := range v {
  14202. v2[i] = int64(k)
  14203. i++
  14204. }
  14205. sort.Sort(intSlice(v2))
  14206. for _, k2 := range v2 {
  14207. if cr != nil {
  14208. cr.sendContainerState(containerMapKey)
  14209. }
  14210. ee.EncodeInt(int64(int64(k2)))
  14211. if cr != nil {
  14212. cr.sendContainerState(containerMapValue)
  14213. }
  14214. ee.EncodeInt(int64(v[int64(k2)]))
  14215. }
  14216. } else {
  14217. for k2, v2 := range v {
  14218. if cr != nil {
  14219. cr.sendContainerState(containerMapKey)
  14220. }
  14221. ee.EncodeInt(int64(k2))
  14222. if cr != nil {
  14223. cr.sendContainerState(containerMapValue)
  14224. }
  14225. ee.EncodeInt(int64(v2))
  14226. }
  14227. }
  14228. if cr != nil {
  14229. cr.sendContainerState(containerMapEnd)
  14230. }
  14231. }
  14232. func (f *encFnInfo) fastpathEncMapInt64Float32R(rv reflect.Value) {
  14233. fastpathTV.EncMapInt64Float32V(rv.Interface().(map[int64]float32), fastpathCheckNilFalse, f.e)
  14234. }
  14235. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, checkNil bool, e *Encoder) {
  14236. ee := e.e
  14237. cr := e.cr
  14238. if checkNil && v == nil {
  14239. ee.EncodeNil()
  14240. return
  14241. }
  14242. ee.EncodeMapStart(len(v))
  14243. if e.h.Canonical {
  14244. v2 := make([]int64, len(v))
  14245. var i int
  14246. for k, _ := range v {
  14247. v2[i] = int64(k)
  14248. i++
  14249. }
  14250. sort.Sort(intSlice(v2))
  14251. for _, k2 := range v2 {
  14252. if cr != nil {
  14253. cr.sendContainerState(containerMapKey)
  14254. }
  14255. ee.EncodeInt(int64(int64(k2)))
  14256. if cr != nil {
  14257. cr.sendContainerState(containerMapValue)
  14258. }
  14259. ee.EncodeFloat32(v[int64(k2)])
  14260. }
  14261. } else {
  14262. for k2, v2 := range v {
  14263. if cr != nil {
  14264. cr.sendContainerState(containerMapKey)
  14265. }
  14266. ee.EncodeInt(int64(k2))
  14267. if cr != nil {
  14268. cr.sendContainerState(containerMapValue)
  14269. }
  14270. ee.EncodeFloat32(v2)
  14271. }
  14272. }
  14273. if cr != nil {
  14274. cr.sendContainerState(containerMapEnd)
  14275. }
  14276. }
  14277. func (f *encFnInfo) fastpathEncMapInt64Float64R(rv reflect.Value) {
  14278. fastpathTV.EncMapInt64Float64V(rv.Interface().(map[int64]float64), fastpathCheckNilFalse, f.e)
  14279. }
  14280. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, checkNil bool, e *Encoder) {
  14281. ee := e.e
  14282. cr := e.cr
  14283. if checkNil && v == nil {
  14284. ee.EncodeNil()
  14285. return
  14286. }
  14287. ee.EncodeMapStart(len(v))
  14288. if e.h.Canonical {
  14289. v2 := make([]int64, len(v))
  14290. var i int
  14291. for k, _ := range v {
  14292. v2[i] = int64(k)
  14293. i++
  14294. }
  14295. sort.Sort(intSlice(v2))
  14296. for _, k2 := range v2 {
  14297. if cr != nil {
  14298. cr.sendContainerState(containerMapKey)
  14299. }
  14300. ee.EncodeInt(int64(int64(k2)))
  14301. if cr != nil {
  14302. cr.sendContainerState(containerMapValue)
  14303. }
  14304. ee.EncodeFloat64(v[int64(k2)])
  14305. }
  14306. } else {
  14307. for k2, v2 := range v {
  14308. if cr != nil {
  14309. cr.sendContainerState(containerMapKey)
  14310. }
  14311. ee.EncodeInt(int64(k2))
  14312. if cr != nil {
  14313. cr.sendContainerState(containerMapValue)
  14314. }
  14315. ee.EncodeFloat64(v2)
  14316. }
  14317. }
  14318. if cr != nil {
  14319. cr.sendContainerState(containerMapEnd)
  14320. }
  14321. }
  14322. func (f *encFnInfo) fastpathEncMapInt64BoolR(rv reflect.Value) {
  14323. fastpathTV.EncMapInt64BoolV(rv.Interface().(map[int64]bool), fastpathCheckNilFalse, f.e)
  14324. }
  14325. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, checkNil bool, e *Encoder) {
  14326. ee := e.e
  14327. cr := e.cr
  14328. if checkNil && v == nil {
  14329. ee.EncodeNil()
  14330. return
  14331. }
  14332. ee.EncodeMapStart(len(v))
  14333. if e.h.Canonical {
  14334. v2 := make([]int64, len(v))
  14335. var i int
  14336. for k, _ := range v {
  14337. v2[i] = int64(k)
  14338. i++
  14339. }
  14340. sort.Sort(intSlice(v2))
  14341. for _, k2 := range v2 {
  14342. if cr != nil {
  14343. cr.sendContainerState(containerMapKey)
  14344. }
  14345. ee.EncodeInt(int64(int64(k2)))
  14346. if cr != nil {
  14347. cr.sendContainerState(containerMapValue)
  14348. }
  14349. ee.EncodeBool(v[int64(k2)])
  14350. }
  14351. } else {
  14352. for k2, v2 := range v {
  14353. if cr != nil {
  14354. cr.sendContainerState(containerMapKey)
  14355. }
  14356. ee.EncodeInt(int64(k2))
  14357. if cr != nil {
  14358. cr.sendContainerState(containerMapValue)
  14359. }
  14360. ee.EncodeBool(v2)
  14361. }
  14362. }
  14363. if cr != nil {
  14364. cr.sendContainerState(containerMapEnd)
  14365. }
  14366. }
  14367. func (f *encFnInfo) fastpathEncMapBoolIntfR(rv reflect.Value) {
  14368. fastpathTV.EncMapBoolIntfV(rv.Interface().(map[bool]interface{}), fastpathCheckNilFalse, f.e)
  14369. }
  14370. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, checkNil bool, e *Encoder) {
  14371. ee := e.e
  14372. cr := e.cr
  14373. if checkNil && v == nil {
  14374. ee.EncodeNil()
  14375. return
  14376. }
  14377. ee.EncodeMapStart(len(v))
  14378. if e.h.Canonical {
  14379. v2 := make([]bool, len(v))
  14380. var i int
  14381. for k, _ := range v {
  14382. v2[i] = bool(k)
  14383. i++
  14384. }
  14385. sort.Sort(boolSlice(v2))
  14386. for _, k2 := range v2 {
  14387. if cr != nil {
  14388. cr.sendContainerState(containerMapKey)
  14389. }
  14390. ee.EncodeBool(bool(k2))
  14391. if cr != nil {
  14392. cr.sendContainerState(containerMapValue)
  14393. }
  14394. e.encode(v[bool(k2)])
  14395. }
  14396. } else {
  14397. for k2, v2 := range v {
  14398. if cr != nil {
  14399. cr.sendContainerState(containerMapKey)
  14400. }
  14401. ee.EncodeBool(k2)
  14402. if cr != nil {
  14403. cr.sendContainerState(containerMapValue)
  14404. }
  14405. e.encode(v2)
  14406. }
  14407. }
  14408. if cr != nil {
  14409. cr.sendContainerState(containerMapEnd)
  14410. }
  14411. }
  14412. func (f *encFnInfo) fastpathEncMapBoolStringR(rv reflect.Value) {
  14413. fastpathTV.EncMapBoolStringV(rv.Interface().(map[bool]string), fastpathCheckNilFalse, f.e)
  14414. }
  14415. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, checkNil bool, e *Encoder) {
  14416. ee := e.e
  14417. cr := e.cr
  14418. if checkNil && v == nil {
  14419. ee.EncodeNil()
  14420. return
  14421. }
  14422. ee.EncodeMapStart(len(v))
  14423. if e.h.Canonical {
  14424. v2 := make([]bool, len(v))
  14425. var i int
  14426. for k, _ := range v {
  14427. v2[i] = bool(k)
  14428. i++
  14429. }
  14430. sort.Sort(boolSlice(v2))
  14431. for _, k2 := range v2 {
  14432. if cr != nil {
  14433. cr.sendContainerState(containerMapKey)
  14434. }
  14435. ee.EncodeBool(bool(k2))
  14436. if cr != nil {
  14437. cr.sendContainerState(containerMapValue)
  14438. }
  14439. ee.EncodeString(c_UTF8, v[bool(k2)])
  14440. }
  14441. } else {
  14442. for k2, v2 := range v {
  14443. if cr != nil {
  14444. cr.sendContainerState(containerMapKey)
  14445. }
  14446. ee.EncodeBool(k2)
  14447. if cr != nil {
  14448. cr.sendContainerState(containerMapValue)
  14449. }
  14450. ee.EncodeString(c_UTF8, v2)
  14451. }
  14452. }
  14453. if cr != nil {
  14454. cr.sendContainerState(containerMapEnd)
  14455. }
  14456. }
  14457. func (f *encFnInfo) fastpathEncMapBoolUintR(rv reflect.Value) {
  14458. fastpathTV.EncMapBoolUintV(rv.Interface().(map[bool]uint), fastpathCheckNilFalse, f.e)
  14459. }
  14460. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, checkNil bool, e *Encoder) {
  14461. ee := e.e
  14462. cr := e.cr
  14463. if checkNil && v == nil {
  14464. ee.EncodeNil()
  14465. return
  14466. }
  14467. ee.EncodeMapStart(len(v))
  14468. if e.h.Canonical {
  14469. v2 := make([]bool, len(v))
  14470. var i int
  14471. for k, _ := range v {
  14472. v2[i] = bool(k)
  14473. i++
  14474. }
  14475. sort.Sort(boolSlice(v2))
  14476. for _, k2 := range v2 {
  14477. if cr != nil {
  14478. cr.sendContainerState(containerMapKey)
  14479. }
  14480. ee.EncodeBool(bool(k2))
  14481. if cr != nil {
  14482. cr.sendContainerState(containerMapValue)
  14483. }
  14484. ee.EncodeUint(uint64(v[bool(k2)]))
  14485. }
  14486. } else {
  14487. for k2, v2 := range v {
  14488. if cr != nil {
  14489. cr.sendContainerState(containerMapKey)
  14490. }
  14491. ee.EncodeBool(k2)
  14492. if cr != nil {
  14493. cr.sendContainerState(containerMapValue)
  14494. }
  14495. ee.EncodeUint(uint64(v2))
  14496. }
  14497. }
  14498. if cr != nil {
  14499. cr.sendContainerState(containerMapEnd)
  14500. }
  14501. }
  14502. func (f *encFnInfo) fastpathEncMapBoolUint8R(rv reflect.Value) {
  14503. fastpathTV.EncMapBoolUint8V(rv.Interface().(map[bool]uint8), fastpathCheckNilFalse, f.e)
  14504. }
  14505. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, checkNil bool, e *Encoder) {
  14506. ee := e.e
  14507. cr := e.cr
  14508. if checkNil && v == nil {
  14509. ee.EncodeNil()
  14510. return
  14511. }
  14512. ee.EncodeMapStart(len(v))
  14513. if e.h.Canonical {
  14514. v2 := make([]bool, len(v))
  14515. var i int
  14516. for k, _ := range v {
  14517. v2[i] = bool(k)
  14518. i++
  14519. }
  14520. sort.Sort(boolSlice(v2))
  14521. for _, k2 := range v2 {
  14522. if cr != nil {
  14523. cr.sendContainerState(containerMapKey)
  14524. }
  14525. ee.EncodeBool(bool(k2))
  14526. if cr != nil {
  14527. cr.sendContainerState(containerMapValue)
  14528. }
  14529. ee.EncodeUint(uint64(v[bool(k2)]))
  14530. }
  14531. } else {
  14532. for k2, v2 := range v {
  14533. if cr != nil {
  14534. cr.sendContainerState(containerMapKey)
  14535. }
  14536. ee.EncodeBool(k2)
  14537. if cr != nil {
  14538. cr.sendContainerState(containerMapValue)
  14539. }
  14540. ee.EncodeUint(uint64(v2))
  14541. }
  14542. }
  14543. if cr != nil {
  14544. cr.sendContainerState(containerMapEnd)
  14545. }
  14546. }
  14547. func (f *encFnInfo) fastpathEncMapBoolUint16R(rv reflect.Value) {
  14548. fastpathTV.EncMapBoolUint16V(rv.Interface().(map[bool]uint16), fastpathCheckNilFalse, f.e)
  14549. }
  14550. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, checkNil bool, e *Encoder) {
  14551. ee := e.e
  14552. cr := e.cr
  14553. if checkNil && v == nil {
  14554. ee.EncodeNil()
  14555. return
  14556. }
  14557. ee.EncodeMapStart(len(v))
  14558. if e.h.Canonical {
  14559. v2 := make([]bool, len(v))
  14560. var i int
  14561. for k, _ := range v {
  14562. v2[i] = bool(k)
  14563. i++
  14564. }
  14565. sort.Sort(boolSlice(v2))
  14566. for _, k2 := range v2 {
  14567. if cr != nil {
  14568. cr.sendContainerState(containerMapKey)
  14569. }
  14570. ee.EncodeBool(bool(k2))
  14571. if cr != nil {
  14572. cr.sendContainerState(containerMapValue)
  14573. }
  14574. ee.EncodeUint(uint64(v[bool(k2)]))
  14575. }
  14576. } else {
  14577. for k2, v2 := range v {
  14578. if cr != nil {
  14579. cr.sendContainerState(containerMapKey)
  14580. }
  14581. ee.EncodeBool(k2)
  14582. if cr != nil {
  14583. cr.sendContainerState(containerMapValue)
  14584. }
  14585. ee.EncodeUint(uint64(v2))
  14586. }
  14587. }
  14588. if cr != nil {
  14589. cr.sendContainerState(containerMapEnd)
  14590. }
  14591. }
  14592. func (f *encFnInfo) fastpathEncMapBoolUint32R(rv reflect.Value) {
  14593. fastpathTV.EncMapBoolUint32V(rv.Interface().(map[bool]uint32), fastpathCheckNilFalse, f.e)
  14594. }
  14595. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, checkNil bool, e *Encoder) {
  14596. ee := e.e
  14597. cr := e.cr
  14598. if checkNil && v == nil {
  14599. ee.EncodeNil()
  14600. return
  14601. }
  14602. ee.EncodeMapStart(len(v))
  14603. if e.h.Canonical {
  14604. v2 := make([]bool, len(v))
  14605. var i int
  14606. for k, _ := range v {
  14607. v2[i] = bool(k)
  14608. i++
  14609. }
  14610. sort.Sort(boolSlice(v2))
  14611. for _, k2 := range v2 {
  14612. if cr != nil {
  14613. cr.sendContainerState(containerMapKey)
  14614. }
  14615. ee.EncodeBool(bool(k2))
  14616. if cr != nil {
  14617. cr.sendContainerState(containerMapValue)
  14618. }
  14619. ee.EncodeUint(uint64(v[bool(k2)]))
  14620. }
  14621. } else {
  14622. for k2, v2 := range v {
  14623. if cr != nil {
  14624. cr.sendContainerState(containerMapKey)
  14625. }
  14626. ee.EncodeBool(k2)
  14627. if cr != nil {
  14628. cr.sendContainerState(containerMapValue)
  14629. }
  14630. ee.EncodeUint(uint64(v2))
  14631. }
  14632. }
  14633. if cr != nil {
  14634. cr.sendContainerState(containerMapEnd)
  14635. }
  14636. }
  14637. func (f *encFnInfo) fastpathEncMapBoolUint64R(rv reflect.Value) {
  14638. fastpathTV.EncMapBoolUint64V(rv.Interface().(map[bool]uint64), fastpathCheckNilFalse, f.e)
  14639. }
  14640. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, checkNil bool, e *Encoder) {
  14641. ee := e.e
  14642. cr := e.cr
  14643. if checkNil && v == nil {
  14644. ee.EncodeNil()
  14645. return
  14646. }
  14647. ee.EncodeMapStart(len(v))
  14648. if e.h.Canonical {
  14649. v2 := make([]bool, len(v))
  14650. var i int
  14651. for k, _ := range v {
  14652. v2[i] = bool(k)
  14653. i++
  14654. }
  14655. sort.Sort(boolSlice(v2))
  14656. for _, k2 := range v2 {
  14657. if cr != nil {
  14658. cr.sendContainerState(containerMapKey)
  14659. }
  14660. ee.EncodeBool(bool(k2))
  14661. if cr != nil {
  14662. cr.sendContainerState(containerMapValue)
  14663. }
  14664. ee.EncodeUint(uint64(v[bool(k2)]))
  14665. }
  14666. } else {
  14667. for k2, v2 := range v {
  14668. if cr != nil {
  14669. cr.sendContainerState(containerMapKey)
  14670. }
  14671. ee.EncodeBool(k2)
  14672. if cr != nil {
  14673. cr.sendContainerState(containerMapValue)
  14674. }
  14675. ee.EncodeUint(uint64(v2))
  14676. }
  14677. }
  14678. if cr != nil {
  14679. cr.sendContainerState(containerMapEnd)
  14680. }
  14681. }
  14682. func (f *encFnInfo) fastpathEncMapBoolUintptrR(rv reflect.Value) {
  14683. fastpathTV.EncMapBoolUintptrV(rv.Interface().(map[bool]uintptr), fastpathCheckNilFalse, f.e)
  14684. }
  14685. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, checkNil bool, e *Encoder) {
  14686. ee := e.e
  14687. cr := e.cr
  14688. if checkNil && v == nil {
  14689. ee.EncodeNil()
  14690. return
  14691. }
  14692. ee.EncodeMapStart(len(v))
  14693. if e.h.Canonical {
  14694. v2 := make([]bool, len(v))
  14695. var i int
  14696. for k, _ := range v {
  14697. v2[i] = bool(k)
  14698. i++
  14699. }
  14700. sort.Sort(boolSlice(v2))
  14701. for _, k2 := range v2 {
  14702. if cr != nil {
  14703. cr.sendContainerState(containerMapKey)
  14704. }
  14705. ee.EncodeBool(bool(k2))
  14706. if cr != nil {
  14707. cr.sendContainerState(containerMapValue)
  14708. }
  14709. e.encode(v[bool(k2)])
  14710. }
  14711. } else {
  14712. for k2, v2 := range v {
  14713. if cr != nil {
  14714. cr.sendContainerState(containerMapKey)
  14715. }
  14716. ee.EncodeBool(k2)
  14717. if cr != nil {
  14718. cr.sendContainerState(containerMapValue)
  14719. }
  14720. e.encode(v2)
  14721. }
  14722. }
  14723. if cr != nil {
  14724. cr.sendContainerState(containerMapEnd)
  14725. }
  14726. }
  14727. func (f *encFnInfo) fastpathEncMapBoolIntR(rv reflect.Value) {
  14728. fastpathTV.EncMapBoolIntV(rv.Interface().(map[bool]int), fastpathCheckNilFalse, f.e)
  14729. }
  14730. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, checkNil bool, e *Encoder) {
  14731. ee := e.e
  14732. cr := e.cr
  14733. if checkNil && v == nil {
  14734. ee.EncodeNil()
  14735. return
  14736. }
  14737. ee.EncodeMapStart(len(v))
  14738. if e.h.Canonical {
  14739. v2 := make([]bool, len(v))
  14740. var i int
  14741. for k, _ := range v {
  14742. v2[i] = bool(k)
  14743. i++
  14744. }
  14745. sort.Sort(boolSlice(v2))
  14746. for _, k2 := range v2 {
  14747. if cr != nil {
  14748. cr.sendContainerState(containerMapKey)
  14749. }
  14750. ee.EncodeBool(bool(k2))
  14751. if cr != nil {
  14752. cr.sendContainerState(containerMapValue)
  14753. }
  14754. ee.EncodeInt(int64(v[bool(k2)]))
  14755. }
  14756. } else {
  14757. for k2, v2 := range v {
  14758. if cr != nil {
  14759. cr.sendContainerState(containerMapKey)
  14760. }
  14761. ee.EncodeBool(k2)
  14762. if cr != nil {
  14763. cr.sendContainerState(containerMapValue)
  14764. }
  14765. ee.EncodeInt(int64(v2))
  14766. }
  14767. }
  14768. if cr != nil {
  14769. cr.sendContainerState(containerMapEnd)
  14770. }
  14771. }
  14772. func (f *encFnInfo) fastpathEncMapBoolInt8R(rv reflect.Value) {
  14773. fastpathTV.EncMapBoolInt8V(rv.Interface().(map[bool]int8), fastpathCheckNilFalse, f.e)
  14774. }
  14775. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, checkNil bool, e *Encoder) {
  14776. ee := e.e
  14777. cr := e.cr
  14778. if checkNil && v == nil {
  14779. ee.EncodeNil()
  14780. return
  14781. }
  14782. ee.EncodeMapStart(len(v))
  14783. if e.h.Canonical {
  14784. v2 := make([]bool, len(v))
  14785. var i int
  14786. for k, _ := range v {
  14787. v2[i] = bool(k)
  14788. i++
  14789. }
  14790. sort.Sort(boolSlice(v2))
  14791. for _, k2 := range v2 {
  14792. if cr != nil {
  14793. cr.sendContainerState(containerMapKey)
  14794. }
  14795. ee.EncodeBool(bool(k2))
  14796. if cr != nil {
  14797. cr.sendContainerState(containerMapValue)
  14798. }
  14799. ee.EncodeInt(int64(v[bool(k2)]))
  14800. }
  14801. } else {
  14802. for k2, v2 := range v {
  14803. if cr != nil {
  14804. cr.sendContainerState(containerMapKey)
  14805. }
  14806. ee.EncodeBool(k2)
  14807. if cr != nil {
  14808. cr.sendContainerState(containerMapValue)
  14809. }
  14810. ee.EncodeInt(int64(v2))
  14811. }
  14812. }
  14813. if cr != nil {
  14814. cr.sendContainerState(containerMapEnd)
  14815. }
  14816. }
  14817. func (f *encFnInfo) fastpathEncMapBoolInt16R(rv reflect.Value) {
  14818. fastpathTV.EncMapBoolInt16V(rv.Interface().(map[bool]int16), fastpathCheckNilFalse, f.e)
  14819. }
  14820. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, checkNil bool, e *Encoder) {
  14821. ee := e.e
  14822. cr := e.cr
  14823. if checkNil && v == nil {
  14824. ee.EncodeNil()
  14825. return
  14826. }
  14827. ee.EncodeMapStart(len(v))
  14828. if e.h.Canonical {
  14829. v2 := make([]bool, len(v))
  14830. var i int
  14831. for k, _ := range v {
  14832. v2[i] = bool(k)
  14833. i++
  14834. }
  14835. sort.Sort(boolSlice(v2))
  14836. for _, k2 := range v2 {
  14837. if cr != nil {
  14838. cr.sendContainerState(containerMapKey)
  14839. }
  14840. ee.EncodeBool(bool(k2))
  14841. if cr != nil {
  14842. cr.sendContainerState(containerMapValue)
  14843. }
  14844. ee.EncodeInt(int64(v[bool(k2)]))
  14845. }
  14846. } else {
  14847. for k2, v2 := range v {
  14848. if cr != nil {
  14849. cr.sendContainerState(containerMapKey)
  14850. }
  14851. ee.EncodeBool(k2)
  14852. if cr != nil {
  14853. cr.sendContainerState(containerMapValue)
  14854. }
  14855. ee.EncodeInt(int64(v2))
  14856. }
  14857. }
  14858. if cr != nil {
  14859. cr.sendContainerState(containerMapEnd)
  14860. }
  14861. }
  14862. func (f *encFnInfo) fastpathEncMapBoolInt32R(rv reflect.Value) {
  14863. fastpathTV.EncMapBoolInt32V(rv.Interface().(map[bool]int32), fastpathCheckNilFalse, f.e)
  14864. }
  14865. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, checkNil bool, e *Encoder) {
  14866. ee := e.e
  14867. cr := e.cr
  14868. if checkNil && v == nil {
  14869. ee.EncodeNil()
  14870. return
  14871. }
  14872. ee.EncodeMapStart(len(v))
  14873. if e.h.Canonical {
  14874. v2 := make([]bool, len(v))
  14875. var i int
  14876. for k, _ := range v {
  14877. v2[i] = bool(k)
  14878. i++
  14879. }
  14880. sort.Sort(boolSlice(v2))
  14881. for _, k2 := range v2 {
  14882. if cr != nil {
  14883. cr.sendContainerState(containerMapKey)
  14884. }
  14885. ee.EncodeBool(bool(k2))
  14886. if cr != nil {
  14887. cr.sendContainerState(containerMapValue)
  14888. }
  14889. ee.EncodeInt(int64(v[bool(k2)]))
  14890. }
  14891. } else {
  14892. for k2, v2 := range v {
  14893. if cr != nil {
  14894. cr.sendContainerState(containerMapKey)
  14895. }
  14896. ee.EncodeBool(k2)
  14897. if cr != nil {
  14898. cr.sendContainerState(containerMapValue)
  14899. }
  14900. ee.EncodeInt(int64(v2))
  14901. }
  14902. }
  14903. if cr != nil {
  14904. cr.sendContainerState(containerMapEnd)
  14905. }
  14906. }
  14907. func (f *encFnInfo) fastpathEncMapBoolInt64R(rv reflect.Value) {
  14908. fastpathTV.EncMapBoolInt64V(rv.Interface().(map[bool]int64), fastpathCheckNilFalse, f.e)
  14909. }
  14910. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, checkNil bool, e *Encoder) {
  14911. ee := e.e
  14912. cr := e.cr
  14913. if checkNil && v == nil {
  14914. ee.EncodeNil()
  14915. return
  14916. }
  14917. ee.EncodeMapStart(len(v))
  14918. if e.h.Canonical {
  14919. v2 := make([]bool, len(v))
  14920. var i int
  14921. for k, _ := range v {
  14922. v2[i] = bool(k)
  14923. i++
  14924. }
  14925. sort.Sort(boolSlice(v2))
  14926. for _, k2 := range v2 {
  14927. if cr != nil {
  14928. cr.sendContainerState(containerMapKey)
  14929. }
  14930. ee.EncodeBool(bool(k2))
  14931. if cr != nil {
  14932. cr.sendContainerState(containerMapValue)
  14933. }
  14934. ee.EncodeInt(int64(v[bool(k2)]))
  14935. }
  14936. } else {
  14937. for k2, v2 := range v {
  14938. if cr != nil {
  14939. cr.sendContainerState(containerMapKey)
  14940. }
  14941. ee.EncodeBool(k2)
  14942. if cr != nil {
  14943. cr.sendContainerState(containerMapValue)
  14944. }
  14945. ee.EncodeInt(int64(v2))
  14946. }
  14947. }
  14948. if cr != nil {
  14949. cr.sendContainerState(containerMapEnd)
  14950. }
  14951. }
  14952. func (f *encFnInfo) fastpathEncMapBoolFloat32R(rv reflect.Value) {
  14953. fastpathTV.EncMapBoolFloat32V(rv.Interface().(map[bool]float32), fastpathCheckNilFalse, f.e)
  14954. }
  14955. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, checkNil bool, e *Encoder) {
  14956. ee := e.e
  14957. cr := e.cr
  14958. if checkNil && v == nil {
  14959. ee.EncodeNil()
  14960. return
  14961. }
  14962. ee.EncodeMapStart(len(v))
  14963. if e.h.Canonical {
  14964. v2 := make([]bool, len(v))
  14965. var i int
  14966. for k, _ := range v {
  14967. v2[i] = bool(k)
  14968. i++
  14969. }
  14970. sort.Sort(boolSlice(v2))
  14971. for _, k2 := range v2 {
  14972. if cr != nil {
  14973. cr.sendContainerState(containerMapKey)
  14974. }
  14975. ee.EncodeBool(bool(k2))
  14976. if cr != nil {
  14977. cr.sendContainerState(containerMapValue)
  14978. }
  14979. ee.EncodeFloat32(v[bool(k2)])
  14980. }
  14981. } else {
  14982. for k2, v2 := range v {
  14983. if cr != nil {
  14984. cr.sendContainerState(containerMapKey)
  14985. }
  14986. ee.EncodeBool(k2)
  14987. if cr != nil {
  14988. cr.sendContainerState(containerMapValue)
  14989. }
  14990. ee.EncodeFloat32(v2)
  14991. }
  14992. }
  14993. if cr != nil {
  14994. cr.sendContainerState(containerMapEnd)
  14995. }
  14996. }
  14997. func (f *encFnInfo) fastpathEncMapBoolFloat64R(rv reflect.Value) {
  14998. fastpathTV.EncMapBoolFloat64V(rv.Interface().(map[bool]float64), fastpathCheckNilFalse, f.e)
  14999. }
  15000. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, checkNil bool, e *Encoder) {
  15001. ee := e.e
  15002. cr := e.cr
  15003. if checkNil && v == nil {
  15004. ee.EncodeNil()
  15005. return
  15006. }
  15007. ee.EncodeMapStart(len(v))
  15008. if e.h.Canonical {
  15009. v2 := make([]bool, len(v))
  15010. var i int
  15011. for k, _ := range v {
  15012. v2[i] = bool(k)
  15013. i++
  15014. }
  15015. sort.Sort(boolSlice(v2))
  15016. for _, k2 := range v2 {
  15017. if cr != nil {
  15018. cr.sendContainerState(containerMapKey)
  15019. }
  15020. ee.EncodeBool(bool(k2))
  15021. if cr != nil {
  15022. cr.sendContainerState(containerMapValue)
  15023. }
  15024. ee.EncodeFloat64(v[bool(k2)])
  15025. }
  15026. } else {
  15027. for k2, v2 := range v {
  15028. if cr != nil {
  15029. cr.sendContainerState(containerMapKey)
  15030. }
  15031. ee.EncodeBool(k2)
  15032. if cr != nil {
  15033. cr.sendContainerState(containerMapValue)
  15034. }
  15035. ee.EncodeFloat64(v2)
  15036. }
  15037. }
  15038. if cr != nil {
  15039. cr.sendContainerState(containerMapEnd)
  15040. }
  15041. }
  15042. func (f *encFnInfo) fastpathEncMapBoolBoolR(rv reflect.Value) {
  15043. fastpathTV.EncMapBoolBoolV(rv.Interface().(map[bool]bool), fastpathCheckNilFalse, f.e)
  15044. }
  15045. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, checkNil bool, e *Encoder) {
  15046. ee := e.e
  15047. cr := e.cr
  15048. if checkNil && v == nil {
  15049. ee.EncodeNil()
  15050. return
  15051. }
  15052. ee.EncodeMapStart(len(v))
  15053. if e.h.Canonical {
  15054. v2 := make([]bool, len(v))
  15055. var i int
  15056. for k, _ := range v {
  15057. v2[i] = bool(k)
  15058. i++
  15059. }
  15060. sort.Sort(boolSlice(v2))
  15061. for _, k2 := range v2 {
  15062. if cr != nil {
  15063. cr.sendContainerState(containerMapKey)
  15064. }
  15065. ee.EncodeBool(bool(k2))
  15066. if cr != nil {
  15067. cr.sendContainerState(containerMapValue)
  15068. }
  15069. ee.EncodeBool(v[bool(k2)])
  15070. }
  15071. } else {
  15072. for k2, v2 := range v {
  15073. if cr != nil {
  15074. cr.sendContainerState(containerMapKey)
  15075. }
  15076. ee.EncodeBool(k2)
  15077. if cr != nil {
  15078. cr.sendContainerState(containerMapValue)
  15079. }
  15080. ee.EncodeBool(v2)
  15081. }
  15082. }
  15083. if cr != nil {
  15084. cr.sendContainerState(containerMapEnd)
  15085. }
  15086. }
  15087. // -- decode
  15088. // -- -- fast path type switch
  15089. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  15090. switch v := iv.(type) {
  15091. case []interface{}:
  15092. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, d)
  15093. case *[]interface{}:
  15094. v2, changed2 := fastpathTV.DecSliceIntfV(*v, fastpathCheckNilFalse, true, d)
  15095. if changed2 {
  15096. *v = v2
  15097. }
  15098. case map[interface{}]interface{}:
  15099. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, d)
  15100. case *map[interface{}]interface{}:
  15101. v2, changed2 := fastpathTV.DecMapIntfIntfV(*v, fastpathCheckNilFalse, true, d)
  15102. if changed2 {
  15103. *v = v2
  15104. }
  15105. case map[interface{}]string:
  15106. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, d)
  15107. case *map[interface{}]string:
  15108. v2, changed2 := fastpathTV.DecMapIntfStringV(*v, fastpathCheckNilFalse, true, d)
  15109. if changed2 {
  15110. *v = v2
  15111. }
  15112. case map[interface{}]uint:
  15113. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, d)
  15114. case *map[interface{}]uint:
  15115. v2, changed2 := fastpathTV.DecMapIntfUintV(*v, fastpathCheckNilFalse, true, d)
  15116. if changed2 {
  15117. *v = v2
  15118. }
  15119. case map[interface{}]uint8:
  15120. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, d)
  15121. case *map[interface{}]uint8:
  15122. v2, changed2 := fastpathTV.DecMapIntfUint8V(*v, fastpathCheckNilFalse, true, d)
  15123. if changed2 {
  15124. *v = v2
  15125. }
  15126. case map[interface{}]uint16:
  15127. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, d)
  15128. case *map[interface{}]uint16:
  15129. v2, changed2 := fastpathTV.DecMapIntfUint16V(*v, fastpathCheckNilFalse, true, d)
  15130. if changed2 {
  15131. *v = v2
  15132. }
  15133. case map[interface{}]uint32:
  15134. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, d)
  15135. case *map[interface{}]uint32:
  15136. v2, changed2 := fastpathTV.DecMapIntfUint32V(*v, fastpathCheckNilFalse, true, d)
  15137. if changed2 {
  15138. *v = v2
  15139. }
  15140. case map[interface{}]uint64:
  15141. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, d)
  15142. case *map[interface{}]uint64:
  15143. v2, changed2 := fastpathTV.DecMapIntfUint64V(*v, fastpathCheckNilFalse, true, d)
  15144. if changed2 {
  15145. *v = v2
  15146. }
  15147. case map[interface{}]uintptr:
  15148. fastpathTV.DecMapIntfUintptrV(v, fastpathCheckNilFalse, false, d)
  15149. case *map[interface{}]uintptr:
  15150. v2, changed2 := fastpathTV.DecMapIntfUintptrV(*v, fastpathCheckNilFalse, true, d)
  15151. if changed2 {
  15152. *v = v2
  15153. }
  15154. case map[interface{}]int:
  15155. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, d)
  15156. case *map[interface{}]int:
  15157. v2, changed2 := fastpathTV.DecMapIntfIntV(*v, fastpathCheckNilFalse, true, d)
  15158. if changed2 {
  15159. *v = v2
  15160. }
  15161. case map[interface{}]int8:
  15162. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, d)
  15163. case *map[interface{}]int8:
  15164. v2, changed2 := fastpathTV.DecMapIntfInt8V(*v, fastpathCheckNilFalse, true, d)
  15165. if changed2 {
  15166. *v = v2
  15167. }
  15168. case map[interface{}]int16:
  15169. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, d)
  15170. case *map[interface{}]int16:
  15171. v2, changed2 := fastpathTV.DecMapIntfInt16V(*v, fastpathCheckNilFalse, true, d)
  15172. if changed2 {
  15173. *v = v2
  15174. }
  15175. case map[interface{}]int32:
  15176. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, d)
  15177. case *map[interface{}]int32:
  15178. v2, changed2 := fastpathTV.DecMapIntfInt32V(*v, fastpathCheckNilFalse, true, d)
  15179. if changed2 {
  15180. *v = v2
  15181. }
  15182. case map[interface{}]int64:
  15183. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, d)
  15184. case *map[interface{}]int64:
  15185. v2, changed2 := fastpathTV.DecMapIntfInt64V(*v, fastpathCheckNilFalse, true, d)
  15186. if changed2 {
  15187. *v = v2
  15188. }
  15189. case map[interface{}]float32:
  15190. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, d)
  15191. case *map[interface{}]float32:
  15192. v2, changed2 := fastpathTV.DecMapIntfFloat32V(*v, fastpathCheckNilFalse, true, d)
  15193. if changed2 {
  15194. *v = v2
  15195. }
  15196. case map[interface{}]float64:
  15197. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, d)
  15198. case *map[interface{}]float64:
  15199. v2, changed2 := fastpathTV.DecMapIntfFloat64V(*v, fastpathCheckNilFalse, true, d)
  15200. if changed2 {
  15201. *v = v2
  15202. }
  15203. case map[interface{}]bool:
  15204. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, d)
  15205. case *map[interface{}]bool:
  15206. v2, changed2 := fastpathTV.DecMapIntfBoolV(*v, fastpathCheckNilFalse, true, d)
  15207. if changed2 {
  15208. *v = v2
  15209. }
  15210. case []string:
  15211. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, d)
  15212. case *[]string:
  15213. v2, changed2 := fastpathTV.DecSliceStringV(*v, fastpathCheckNilFalse, true, d)
  15214. if changed2 {
  15215. *v = v2
  15216. }
  15217. case map[string]interface{}:
  15218. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, d)
  15219. case *map[string]interface{}:
  15220. v2, changed2 := fastpathTV.DecMapStringIntfV(*v, fastpathCheckNilFalse, true, d)
  15221. if changed2 {
  15222. *v = v2
  15223. }
  15224. case map[string]string:
  15225. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, d)
  15226. case *map[string]string:
  15227. v2, changed2 := fastpathTV.DecMapStringStringV(*v, fastpathCheckNilFalse, true, d)
  15228. if changed2 {
  15229. *v = v2
  15230. }
  15231. case map[string]uint:
  15232. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, d)
  15233. case *map[string]uint:
  15234. v2, changed2 := fastpathTV.DecMapStringUintV(*v, fastpathCheckNilFalse, true, d)
  15235. if changed2 {
  15236. *v = v2
  15237. }
  15238. case map[string]uint8:
  15239. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, d)
  15240. case *map[string]uint8:
  15241. v2, changed2 := fastpathTV.DecMapStringUint8V(*v, fastpathCheckNilFalse, true, d)
  15242. if changed2 {
  15243. *v = v2
  15244. }
  15245. case map[string]uint16:
  15246. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, d)
  15247. case *map[string]uint16:
  15248. v2, changed2 := fastpathTV.DecMapStringUint16V(*v, fastpathCheckNilFalse, true, d)
  15249. if changed2 {
  15250. *v = v2
  15251. }
  15252. case map[string]uint32:
  15253. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, d)
  15254. case *map[string]uint32:
  15255. v2, changed2 := fastpathTV.DecMapStringUint32V(*v, fastpathCheckNilFalse, true, d)
  15256. if changed2 {
  15257. *v = v2
  15258. }
  15259. case map[string]uint64:
  15260. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, d)
  15261. case *map[string]uint64:
  15262. v2, changed2 := fastpathTV.DecMapStringUint64V(*v, fastpathCheckNilFalse, true, d)
  15263. if changed2 {
  15264. *v = v2
  15265. }
  15266. case map[string]uintptr:
  15267. fastpathTV.DecMapStringUintptrV(v, fastpathCheckNilFalse, false, d)
  15268. case *map[string]uintptr:
  15269. v2, changed2 := fastpathTV.DecMapStringUintptrV(*v, fastpathCheckNilFalse, true, d)
  15270. if changed2 {
  15271. *v = v2
  15272. }
  15273. case map[string]int:
  15274. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, d)
  15275. case *map[string]int:
  15276. v2, changed2 := fastpathTV.DecMapStringIntV(*v, fastpathCheckNilFalse, true, d)
  15277. if changed2 {
  15278. *v = v2
  15279. }
  15280. case map[string]int8:
  15281. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, d)
  15282. case *map[string]int8:
  15283. v2, changed2 := fastpathTV.DecMapStringInt8V(*v, fastpathCheckNilFalse, true, d)
  15284. if changed2 {
  15285. *v = v2
  15286. }
  15287. case map[string]int16:
  15288. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, d)
  15289. case *map[string]int16:
  15290. v2, changed2 := fastpathTV.DecMapStringInt16V(*v, fastpathCheckNilFalse, true, d)
  15291. if changed2 {
  15292. *v = v2
  15293. }
  15294. case map[string]int32:
  15295. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, d)
  15296. case *map[string]int32:
  15297. v2, changed2 := fastpathTV.DecMapStringInt32V(*v, fastpathCheckNilFalse, true, d)
  15298. if changed2 {
  15299. *v = v2
  15300. }
  15301. case map[string]int64:
  15302. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, d)
  15303. case *map[string]int64:
  15304. v2, changed2 := fastpathTV.DecMapStringInt64V(*v, fastpathCheckNilFalse, true, d)
  15305. if changed2 {
  15306. *v = v2
  15307. }
  15308. case map[string]float32:
  15309. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, d)
  15310. case *map[string]float32:
  15311. v2, changed2 := fastpathTV.DecMapStringFloat32V(*v, fastpathCheckNilFalse, true, d)
  15312. if changed2 {
  15313. *v = v2
  15314. }
  15315. case map[string]float64:
  15316. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, d)
  15317. case *map[string]float64:
  15318. v2, changed2 := fastpathTV.DecMapStringFloat64V(*v, fastpathCheckNilFalse, true, d)
  15319. if changed2 {
  15320. *v = v2
  15321. }
  15322. case map[string]bool:
  15323. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, d)
  15324. case *map[string]bool:
  15325. v2, changed2 := fastpathTV.DecMapStringBoolV(*v, fastpathCheckNilFalse, true, d)
  15326. if changed2 {
  15327. *v = v2
  15328. }
  15329. case []float32:
  15330. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, d)
  15331. case *[]float32:
  15332. v2, changed2 := fastpathTV.DecSliceFloat32V(*v, fastpathCheckNilFalse, true, d)
  15333. if changed2 {
  15334. *v = v2
  15335. }
  15336. case map[float32]interface{}:
  15337. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, d)
  15338. case *map[float32]interface{}:
  15339. v2, changed2 := fastpathTV.DecMapFloat32IntfV(*v, fastpathCheckNilFalse, true, d)
  15340. if changed2 {
  15341. *v = v2
  15342. }
  15343. case map[float32]string:
  15344. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, d)
  15345. case *map[float32]string:
  15346. v2, changed2 := fastpathTV.DecMapFloat32StringV(*v, fastpathCheckNilFalse, true, d)
  15347. if changed2 {
  15348. *v = v2
  15349. }
  15350. case map[float32]uint:
  15351. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, d)
  15352. case *map[float32]uint:
  15353. v2, changed2 := fastpathTV.DecMapFloat32UintV(*v, fastpathCheckNilFalse, true, d)
  15354. if changed2 {
  15355. *v = v2
  15356. }
  15357. case map[float32]uint8:
  15358. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, d)
  15359. case *map[float32]uint8:
  15360. v2, changed2 := fastpathTV.DecMapFloat32Uint8V(*v, fastpathCheckNilFalse, true, d)
  15361. if changed2 {
  15362. *v = v2
  15363. }
  15364. case map[float32]uint16:
  15365. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, d)
  15366. case *map[float32]uint16:
  15367. v2, changed2 := fastpathTV.DecMapFloat32Uint16V(*v, fastpathCheckNilFalse, true, d)
  15368. if changed2 {
  15369. *v = v2
  15370. }
  15371. case map[float32]uint32:
  15372. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, d)
  15373. case *map[float32]uint32:
  15374. v2, changed2 := fastpathTV.DecMapFloat32Uint32V(*v, fastpathCheckNilFalse, true, d)
  15375. if changed2 {
  15376. *v = v2
  15377. }
  15378. case map[float32]uint64:
  15379. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, d)
  15380. case *map[float32]uint64:
  15381. v2, changed2 := fastpathTV.DecMapFloat32Uint64V(*v, fastpathCheckNilFalse, true, d)
  15382. if changed2 {
  15383. *v = v2
  15384. }
  15385. case map[float32]uintptr:
  15386. fastpathTV.DecMapFloat32UintptrV(v, fastpathCheckNilFalse, false, d)
  15387. case *map[float32]uintptr:
  15388. v2, changed2 := fastpathTV.DecMapFloat32UintptrV(*v, fastpathCheckNilFalse, true, d)
  15389. if changed2 {
  15390. *v = v2
  15391. }
  15392. case map[float32]int:
  15393. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, d)
  15394. case *map[float32]int:
  15395. v2, changed2 := fastpathTV.DecMapFloat32IntV(*v, fastpathCheckNilFalse, true, d)
  15396. if changed2 {
  15397. *v = v2
  15398. }
  15399. case map[float32]int8:
  15400. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, d)
  15401. case *map[float32]int8:
  15402. v2, changed2 := fastpathTV.DecMapFloat32Int8V(*v, fastpathCheckNilFalse, true, d)
  15403. if changed2 {
  15404. *v = v2
  15405. }
  15406. case map[float32]int16:
  15407. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, d)
  15408. case *map[float32]int16:
  15409. v2, changed2 := fastpathTV.DecMapFloat32Int16V(*v, fastpathCheckNilFalse, true, d)
  15410. if changed2 {
  15411. *v = v2
  15412. }
  15413. case map[float32]int32:
  15414. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, d)
  15415. case *map[float32]int32:
  15416. v2, changed2 := fastpathTV.DecMapFloat32Int32V(*v, fastpathCheckNilFalse, true, d)
  15417. if changed2 {
  15418. *v = v2
  15419. }
  15420. case map[float32]int64:
  15421. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, d)
  15422. case *map[float32]int64:
  15423. v2, changed2 := fastpathTV.DecMapFloat32Int64V(*v, fastpathCheckNilFalse, true, d)
  15424. if changed2 {
  15425. *v = v2
  15426. }
  15427. case map[float32]float32:
  15428. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, d)
  15429. case *map[float32]float32:
  15430. v2, changed2 := fastpathTV.DecMapFloat32Float32V(*v, fastpathCheckNilFalse, true, d)
  15431. if changed2 {
  15432. *v = v2
  15433. }
  15434. case map[float32]float64:
  15435. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, d)
  15436. case *map[float32]float64:
  15437. v2, changed2 := fastpathTV.DecMapFloat32Float64V(*v, fastpathCheckNilFalse, true, d)
  15438. if changed2 {
  15439. *v = v2
  15440. }
  15441. case map[float32]bool:
  15442. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, d)
  15443. case *map[float32]bool:
  15444. v2, changed2 := fastpathTV.DecMapFloat32BoolV(*v, fastpathCheckNilFalse, true, d)
  15445. if changed2 {
  15446. *v = v2
  15447. }
  15448. case []float64:
  15449. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, d)
  15450. case *[]float64:
  15451. v2, changed2 := fastpathTV.DecSliceFloat64V(*v, fastpathCheckNilFalse, true, d)
  15452. if changed2 {
  15453. *v = v2
  15454. }
  15455. case map[float64]interface{}:
  15456. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, d)
  15457. case *map[float64]interface{}:
  15458. v2, changed2 := fastpathTV.DecMapFloat64IntfV(*v, fastpathCheckNilFalse, true, d)
  15459. if changed2 {
  15460. *v = v2
  15461. }
  15462. case map[float64]string:
  15463. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, d)
  15464. case *map[float64]string:
  15465. v2, changed2 := fastpathTV.DecMapFloat64StringV(*v, fastpathCheckNilFalse, true, d)
  15466. if changed2 {
  15467. *v = v2
  15468. }
  15469. case map[float64]uint:
  15470. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, d)
  15471. case *map[float64]uint:
  15472. v2, changed2 := fastpathTV.DecMapFloat64UintV(*v, fastpathCheckNilFalse, true, d)
  15473. if changed2 {
  15474. *v = v2
  15475. }
  15476. case map[float64]uint8:
  15477. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, d)
  15478. case *map[float64]uint8:
  15479. v2, changed2 := fastpathTV.DecMapFloat64Uint8V(*v, fastpathCheckNilFalse, true, d)
  15480. if changed2 {
  15481. *v = v2
  15482. }
  15483. case map[float64]uint16:
  15484. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, d)
  15485. case *map[float64]uint16:
  15486. v2, changed2 := fastpathTV.DecMapFloat64Uint16V(*v, fastpathCheckNilFalse, true, d)
  15487. if changed2 {
  15488. *v = v2
  15489. }
  15490. case map[float64]uint32:
  15491. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, d)
  15492. case *map[float64]uint32:
  15493. v2, changed2 := fastpathTV.DecMapFloat64Uint32V(*v, fastpathCheckNilFalse, true, d)
  15494. if changed2 {
  15495. *v = v2
  15496. }
  15497. case map[float64]uint64:
  15498. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, d)
  15499. case *map[float64]uint64:
  15500. v2, changed2 := fastpathTV.DecMapFloat64Uint64V(*v, fastpathCheckNilFalse, true, d)
  15501. if changed2 {
  15502. *v = v2
  15503. }
  15504. case map[float64]uintptr:
  15505. fastpathTV.DecMapFloat64UintptrV(v, fastpathCheckNilFalse, false, d)
  15506. case *map[float64]uintptr:
  15507. v2, changed2 := fastpathTV.DecMapFloat64UintptrV(*v, fastpathCheckNilFalse, true, d)
  15508. if changed2 {
  15509. *v = v2
  15510. }
  15511. case map[float64]int:
  15512. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, d)
  15513. case *map[float64]int:
  15514. v2, changed2 := fastpathTV.DecMapFloat64IntV(*v, fastpathCheckNilFalse, true, d)
  15515. if changed2 {
  15516. *v = v2
  15517. }
  15518. case map[float64]int8:
  15519. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, d)
  15520. case *map[float64]int8:
  15521. v2, changed2 := fastpathTV.DecMapFloat64Int8V(*v, fastpathCheckNilFalse, true, d)
  15522. if changed2 {
  15523. *v = v2
  15524. }
  15525. case map[float64]int16:
  15526. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, d)
  15527. case *map[float64]int16:
  15528. v2, changed2 := fastpathTV.DecMapFloat64Int16V(*v, fastpathCheckNilFalse, true, d)
  15529. if changed2 {
  15530. *v = v2
  15531. }
  15532. case map[float64]int32:
  15533. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, d)
  15534. case *map[float64]int32:
  15535. v2, changed2 := fastpathTV.DecMapFloat64Int32V(*v, fastpathCheckNilFalse, true, d)
  15536. if changed2 {
  15537. *v = v2
  15538. }
  15539. case map[float64]int64:
  15540. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, d)
  15541. case *map[float64]int64:
  15542. v2, changed2 := fastpathTV.DecMapFloat64Int64V(*v, fastpathCheckNilFalse, true, d)
  15543. if changed2 {
  15544. *v = v2
  15545. }
  15546. case map[float64]float32:
  15547. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, d)
  15548. case *map[float64]float32:
  15549. v2, changed2 := fastpathTV.DecMapFloat64Float32V(*v, fastpathCheckNilFalse, true, d)
  15550. if changed2 {
  15551. *v = v2
  15552. }
  15553. case map[float64]float64:
  15554. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, d)
  15555. case *map[float64]float64:
  15556. v2, changed2 := fastpathTV.DecMapFloat64Float64V(*v, fastpathCheckNilFalse, true, d)
  15557. if changed2 {
  15558. *v = v2
  15559. }
  15560. case map[float64]bool:
  15561. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, d)
  15562. case *map[float64]bool:
  15563. v2, changed2 := fastpathTV.DecMapFloat64BoolV(*v, fastpathCheckNilFalse, true, d)
  15564. if changed2 {
  15565. *v = v2
  15566. }
  15567. case []uint:
  15568. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, d)
  15569. case *[]uint:
  15570. v2, changed2 := fastpathTV.DecSliceUintV(*v, fastpathCheckNilFalse, true, d)
  15571. if changed2 {
  15572. *v = v2
  15573. }
  15574. case map[uint]interface{}:
  15575. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, d)
  15576. case *map[uint]interface{}:
  15577. v2, changed2 := fastpathTV.DecMapUintIntfV(*v, fastpathCheckNilFalse, true, d)
  15578. if changed2 {
  15579. *v = v2
  15580. }
  15581. case map[uint]string:
  15582. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, d)
  15583. case *map[uint]string:
  15584. v2, changed2 := fastpathTV.DecMapUintStringV(*v, fastpathCheckNilFalse, true, d)
  15585. if changed2 {
  15586. *v = v2
  15587. }
  15588. case map[uint]uint:
  15589. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, d)
  15590. case *map[uint]uint:
  15591. v2, changed2 := fastpathTV.DecMapUintUintV(*v, fastpathCheckNilFalse, true, d)
  15592. if changed2 {
  15593. *v = v2
  15594. }
  15595. case map[uint]uint8:
  15596. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, d)
  15597. case *map[uint]uint8:
  15598. v2, changed2 := fastpathTV.DecMapUintUint8V(*v, fastpathCheckNilFalse, true, d)
  15599. if changed2 {
  15600. *v = v2
  15601. }
  15602. case map[uint]uint16:
  15603. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, d)
  15604. case *map[uint]uint16:
  15605. v2, changed2 := fastpathTV.DecMapUintUint16V(*v, fastpathCheckNilFalse, true, d)
  15606. if changed2 {
  15607. *v = v2
  15608. }
  15609. case map[uint]uint32:
  15610. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, d)
  15611. case *map[uint]uint32:
  15612. v2, changed2 := fastpathTV.DecMapUintUint32V(*v, fastpathCheckNilFalse, true, d)
  15613. if changed2 {
  15614. *v = v2
  15615. }
  15616. case map[uint]uint64:
  15617. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, d)
  15618. case *map[uint]uint64:
  15619. v2, changed2 := fastpathTV.DecMapUintUint64V(*v, fastpathCheckNilFalse, true, d)
  15620. if changed2 {
  15621. *v = v2
  15622. }
  15623. case map[uint]uintptr:
  15624. fastpathTV.DecMapUintUintptrV(v, fastpathCheckNilFalse, false, d)
  15625. case *map[uint]uintptr:
  15626. v2, changed2 := fastpathTV.DecMapUintUintptrV(*v, fastpathCheckNilFalse, true, d)
  15627. if changed2 {
  15628. *v = v2
  15629. }
  15630. case map[uint]int:
  15631. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, d)
  15632. case *map[uint]int:
  15633. v2, changed2 := fastpathTV.DecMapUintIntV(*v, fastpathCheckNilFalse, true, d)
  15634. if changed2 {
  15635. *v = v2
  15636. }
  15637. case map[uint]int8:
  15638. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, d)
  15639. case *map[uint]int8:
  15640. v2, changed2 := fastpathTV.DecMapUintInt8V(*v, fastpathCheckNilFalse, true, d)
  15641. if changed2 {
  15642. *v = v2
  15643. }
  15644. case map[uint]int16:
  15645. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, d)
  15646. case *map[uint]int16:
  15647. v2, changed2 := fastpathTV.DecMapUintInt16V(*v, fastpathCheckNilFalse, true, d)
  15648. if changed2 {
  15649. *v = v2
  15650. }
  15651. case map[uint]int32:
  15652. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, d)
  15653. case *map[uint]int32:
  15654. v2, changed2 := fastpathTV.DecMapUintInt32V(*v, fastpathCheckNilFalse, true, d)
  15655. if changed2 {
  15656. *v = v2
  15657. }
  15658. case map[uint]int64:
  15659. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, d)
  15660. case *map[uint]int64:
  15661. v2, changed2 := fastpathTV.DecMapUintInt64V(*v, fastpathCheckNilFalse, true, d)
  15662. if changed2 {
  15663. *v = v2
  15664. }
  15665. case map[uint]float32:
  15666. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, d)
  15667. case *map[uint]float32:
  15668. v2, changed2 := fastpathTV.DecMapUintFloat32V(*v, fastpathCheckNilFalse, true, d)
  15669. if changed2 {
  15670. *v = v2
  15671. }
  15672. case map[uint]float64:
  15673. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, d)
  15674. case *map[uint]float64:
  15675. v2, changed2 := fastpathTV.DecMapUintFloat64V(*v, fastpathCheckNilFalse, true, d)
  15676. if changed2 {
  15677. *v = v2
  15678. }
  15679. case map[uint]bool:
  15680. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, d)
  15681. case *map[uint]bool:
  15682. v2, changed2 := fastpathTV.DecMapUintBoolV(*v, fastpathCheckNilFalse, true, d)
  15683. if changed2 {
  15684. *v = v2
  15685. }
  15686. case map[uint8]interface{}:
  15687. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, d)
  15688. case *map[uint8]interface{}:
  15689. v2, changed2 := fastpathTV.DecMapUint8IntfV(*v, fastpathCheckNilFalse, true, d)
  15690. if changed2 {
  15691. *v = v2
  15692. }
  15693. case map[uint8]string:
  15694. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, d)
  15695. case *map[uint8]string:
  15696. v2, changed2 := fastpathTV.DecMapUint8StringV(*v, fastpathCheckNilFalse, true, d)
  15697. if changed2 {
  15698. *v = v2
  15699. }
  15700. case map[uint8]uint:
  15701. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, d)
  15702. case *map[uint8]uint:
  15703. v2, changed2 := fastpathTV.DecMapUint8UintV(*v, fastpathCheckNilFalse, true, d)
  15704. if changed2 {
  15705. *v = v2
  15706. }
  15707. case map[uint8]uint8:
  15708. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, d)
  15709. case *map[uint8]uint8:
  15710. v2, changed2 := fastpathTV.DecMapUint8Uint8V(*v, fastpathCheckNilFalse, true, d)
  15711. if changed2 {
  15712. *v = v2
  15713. }
  15714. case map[uint8]uint16:
  15715. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, d)
  15716. case *map[uint8]uint16:
  15717. v2, changed2 := fastpathTV.DecMapUint8Uint16V(*v, fastpathCheckNilFalse, true, d)
  15718. if changed2 {
  15719. *v = v2
  15720. }
  15721. case map[uint8]uint32:
  15722. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, d)
  15723. case *map[uint8]uint32:
  15724. v2, changed2 := fastpathTV.DecMapUint8Uint32V(*v, fastpathCheckNilFalse, true, d)
  15725. if changed2 {
  15726. *v = v2
  15727. }
  15728. case map[uint8]uint64:
  15729. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, d)
  15730. case *map[uint8]uint64:
  15731. v2, changed2 := fastpathTV.DecMapUint8Uint64V(*v, fastpathCheckNilFalse, true, d)
  15732. if changed2 {
  15733. *v = v2
  15734. }
  15735. case map[uint8]uintptr:
  15736. fastpathTV.DecMapUint8UintptrV(v, fastpathCheckNilFalse, false, d)
  15737. case *map[uint8]uintptr:
  15738. v2, changed2 := fastpathTV.DecMapUint8UintptrV(*v, fastpathCheckNilFalse, true, d)
  15739. if changed2 {
  15740. *v = v2
  15741. }
  15742. case map[uint8]int:
  15743. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, d)
  15744. case *map[uint8]int:
  15745. v2, changed2 := fastpathTV.DecMapUint8IntV(*v, fastpathCheckNilFalse, true, d)
  15746. if changed2 {
  15747. *v = v2
  15748. }
  15749. case map[uint8]int8:
  15750. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, d)
  15751. case *map[uint8]int8:
  15752. v2, changed2 := fastpathTV.DecMapUint8Int8V(*v, fastpathCheckNilFalse, true, d)
  15753. if changed2 {
  15754. *v = v2
  15755. }
  15756. case map[uint8]int16:
  15757. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, d)
  15758. case *map[uint8]int16:
  15759. v2, changed2 := fastpathTV.DecMapUint8Int16V(*v, fastpathCheckNilFalse, true, d)
  15760. if changed2 {
  15761. *v = v2
  15762. }
  15763. case map[uint8]int32:
  15764. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, d)
  15765. case *map[uint8]int32:
  15766. v2, changed2 := fastpathTV.DecMapUint8Int32V(*v, fastpathCheckNilFalse, true, d)
  15767. if changed2 {
  15768. *v = v2
  15769. }
  15770. case map[uint8]int64:
  15771. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, d)
  15772. case *map[uint8]int64:
  15773. v2, changed2 := fastpathTV.DecMapUint8Int64V(*v, fastpathCheckNilFalse, true, d)
  15774. if changed2 {
  15775. *v = v2
  15776. }
  15777. case map[uint8]float32:
  15778. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, d)
  15779. case *map[uint8]float32:
  15780. v2, changed2 := fastpathTV.DecMapUint8Float32V(*v, fastpathCheckNilFalse, true, d)
  15781. if changed2 {
  15782. *v = v2
  15783. }
  15784. case map[uint8]float64:
  15785. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, d)
  15786. case *map[uint8]float64:
  15787. v2, changed2 := fastpathTV.DecMapUint8Float64V(*v, fastpathCheckNilFalse, true, d)
  15788. if changed2 {
  15789. *v = v2
  15790. }
  15791. case map[uint8]bool:
  15792. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, d)
  15793. case *map[uint8]bool:
  15794. v2, changed2 := fastpathTV.DecMapUint8BoolV(*v, fastpathCheckNilFalse, true, d)
  15795. if changed2 {
  15796. *v = v2
  15797. }
  15798. case []uint16:
  15799. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, d)
  15800. case *[]uint16:
  15801. v2, changed2 := fastpathTV.DecSliceUint16V(*v, fastpathCheckNilFalse, true, d)
  15802. if changed2 {
  15803. *v = v2
  15804. }
  15805. case map[uint16]interface{}:
  15806. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, d)
  15807. case *map[uint16]interface{}:
  15808. v2, changed2 := fastpathTV.DecMapUint16IntfV(*v, fastpathCheckNilFalse, true, d)
  15809. if changed2 {
  15810. *v = v2
  15811. }
  15812. case map[uint16]string:
  15813. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, d)
  15814. case *map[uint16]string:
  15815. v2, changed2 := fastpathTV.DecMapUint16StringV(*v, fastpathCheckNilFalse, true, d)
  15816. if changed2 {
  15817. *v = v2
  15818. }
  15819. case map[uint16]uint:
  15820. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, d)
  15821. case *map[uint16]uint:
  15822. v2, changed2 := fastpathTV.DecMapUint16UintV(*v, fastpathCheckNilFalse, true, d)
  15823. if changed2 {
  15824. *v = v2
  15825. }
  15826. case map[uint16]uint8:
  15827. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, d)
  15828. case *map[uint16]uint8:
  15829. v2, changed2 := fastpathTV.DecMapUint16Uint8V(*v, fastpathCheckNilFalse, true, d)
  15830. if changed2 {
  15831. *v = v2
  15832. }
  15833. case map[uint16]uint16:
  15834. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, d)
  15835. case *map[uint16]uint16:
  15836. v2, changed2 := fastpathTV.DecMapUint16Uint16V(*v, fastpathCheckNilFalse, true, d)
  15837. if changed2 {
  15838. *v = v2
  15839. }
  15840. case map[uint16]uint32:
  15841. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, d)
  15842. case *map[uint16]uint32:
  15843. v2, changed2 := fastpathTV.DecMapUint16Uint32V(*v, fastpathCheckNilFalse, true, d)
  15844. if changed2 {
  15845. *v = v2
  15846. }
  15847. case map[uint16]uint64:
  15848. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, d)
  15849. case *map[uint16]uint64:
  15850. v2, changed2 := fastpathTV.DecMapUint16Uint64V(*v, fastpathCheckNilFalse, true, d)
  15851. if changed2 {
  15852. *v = v2
  15853. }
  15854. case map[uint16]uintptr:
  15855. fastpathTV.DecMapUint16UintptrV(v, fastpathCheckNilFalse, false, d)
  15856. case *map[uint16]uintptr:
  15857. v2, changed2 := fastpathTV.DecMapUint16UintptrV(*v, fastpathCheckNilFalse, true, d)
  15858. if changed2 {
  15859. *v = v2
  15860. }
  15861. case map[uint16]int:
  15862. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, d)
  15863. case *map[uint16]int:
  15864. v2, changed2 := fastpathTV.DecMapUint16IntV(*v, fastpathCheckNilFalse, true, d)
  15865. if changed2 {
  15866. *v = v2
  15867. }
  15868. case map[uint16]int8:
  15869. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, d)
  15870. case *map[uint16]int8:
  15871. v2, changed2 := fastpathTV.DecMapUint16Int8V(*v, fastpathCheckNilFalse, true, d)
  15872. if changed2 {
  15873. *v = v2
  15874. }
  15875. case map[uint16]int16:
  15876. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, d)
  15877. case *map[uint16]int16:
  15878. v2, changed2 := fastpathTV.DecMapUint16Int16V(*v, fastpathCheckNilFalse, true, d)
  15879. if changed2 {
  15880. *v = v2
  15881. }
  15882. case map[uint16]int32:
  15883. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, d)
  15884. case *map[uint16]int32:
  15885. v2, changed2 := fastpathTV.DecMapUint16Int32V(*v, fastpathCheckNilFalse, true, d)
  15886. if changed2 {
  15887. *v = v2
  15888. }
  15889. case map[uint16]int64:
  15890. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, d)
  15891. case *map[uint16]int64:
  15892. v2, changed2 := fastpathTV.DecMapUint16Int64V(*v, fastpathCheckNilFalse, true, d)
  15893. if changed2 {
  15894. *v = v2
  15895. }
  15896. case map[uint16]float32:
  15897. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, d)
  15898. case *map[uint16]float32:
  15899. v2, changed2 := fastpathTV.DecMapUint16Float32V(*v, fastpathCheckNilFalse, true, d)
  15900. if changed2 {
  15901. *v = v2
  15902. }
  15903. case map[uint16]float64:
  15904. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, d)
  15905. case *map[uint16]float64:
  15906. v2, changed2 := fastpathTV.DecMapUint16Float64V(*v, fastpathCheckNilFalse, true, d)
  15907. if changed2 {
  15908. *v = v2
  15909. }
  15910. case map[uint16]bool:
  15911. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, d)
  15912. case *map[uint16]bool:
  15913. v2, changed2 := fastpathTV.DecMapUint16BoolV(*v, fastpathCheckNilFalse, true, d)
  15914. if changed2 {
  15915. *v = v2
  15916. }
  15917. case []uint32:
  15918. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, d)
  15919. case *[]uint32:
  15920. v2, changed2 := fastpathTV.DecSliceUint32V(*v, fastpathCheckNilFalse, true, d)
  15921. if changed2 {
  15922. *v = v2
  15923. }
  15924. case map[uint32]interface{}:
  15925. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, d)
  15926. case *map[uint32]interface{}:
  15927. v2, changed2 := fastpathTV.DecMapUint32IntfV(*v, fastpathCheckNilFalse, true, d)
  15928. if changed2 {
  15929. *v = v2
  15930. }
  15931. case map[uint32]string:
  15932. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, d)
  15933. case *map[uint32]string:
  15934. v2, changed2 := fastpathTV.DecMapUint32StringV(*v, fastpathCheckNilFalse, true, d)
  15935. if changed2 {
  15936. *v = v2
  15937. }
  15938. case map[uint32]uint:
  15939. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, d)
  15940. case *map[uint32]uint:
  15941. v2, changed2 := fastpathTV.DecMapUint32UintV(*v, fastpathCheckNilFalse, true, d)
  15942. if changed2 {
  15943. *v = v2
  15944. }
  15945. case map[uint32]uint8:
  15946. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, d)
  15947. case *map[uint32]uint8:
  15948. v2, changed2 := fastpathTV.DecMapUint32Uint8V(*v, fastpathCheckNilFalse, true, d)
  15949. if changed2 {
  15950. *v = v2
  15951. }
  15952. case map[uint32]uint16:
  15953. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, d)
  15954. case *map[uint32]uint16:
  15955. v2, changed2 := fastpathTV.DecMapUint32Uint16V(*v, fastpathCheckNilFalse, true, d)
  15956. if changed2 {
  15957. *v = v2
  15958. }
  15959. case map[uint32]uint32:
  15960. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, d)
  15961. case *map[uint32]uint32:
  15962. v2, changed2 := fastpathTV.DecMapUint32Uint32V(*v, fastpathCheckNilFalse, true, d)
  15963. if changed2 {
  15964. *v = v2
  15965. }
  15966. case map[uint32]uint64:
  15967. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, d)
  15968. case *map[uint32]uint64:
  15969. v2, changed2 := fastpathTV.DecMapUint32Uint64V(*v, fastpathCheckNilFalse, true, d)
  15970. if changed2 {
  15971. *v = v2
  15972. }
  15973. case map[uint32]uintptr:
  15974. fastpathTV.DecMapUint32UintptrV(v, fastpathCheckNilFalse, false, d)
  15975. case *map[uint32]uintptr:
  15976. v2, changed2 := fastpathTV.DecMapUint32UintptrV(*v, fastpathCheckNilFalse, true, d)
  15977. if changed2 {
  15978. *v = v2
  15979. }
  15980. case map[uint32]int:
  15981. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, d)
  15982. case *map[uint32]int:
  15983. v2, changed2 := fastpathTV.DecMapUint32IntV(*v, fastpathCheckNilFalse, true, d)
  15984. if changed2 {
  15985. *v = v2
  15986. }
  15987. case map[uint32]int8:
  15988. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, d)
  15989. case *map[uint32]int8:
  15990. v2, changed2 := fastpathTV.DecMapUint32Int8V(*v, fastpathCheckNilFalse, true, d)
  15991. if changed2 {
  15992. *v = v2
  15993. }
  15994. case map[uint32]int16:
  15995. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, d)
  15996. case *map[uint32]int16:
  15997. v2, changed2 := fastpathTV.DecMapUint32Int16V(*v, fastpathCheckNilFalse, true, d)
  15998. if changed2 {
  15999. *v = v2
  16000. }
  16001. case map[uint32]int32:
  16002. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, d)
  16003. case *map[uint32]int32:
  16004. v2, changed2 := fastpathTV.DecMapUint32Int32V(*v, fastpathCheckNilFalse, true, d)
  16005. if changed2 {
  16006. *v = v2
  16007. }
  16008. case map[uint32]int64:
  16009. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, d)
  16010. case *map[uint32]int64:
  16011. v2, changed2 := fastpathTV.DecMapUint32Int64V(*v, fastpathCheckNilFalse, true, d)
  16012. if changed2 {
  16013. *v = v2
  16014. }
  16015. case map[uint32]float32:
  16016. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, d)
  16017. case *map[uint32]float32:
  16018. v2, changed2 := fastpathTV.DecMapUint32Float32V(*v, fastpathCheckNilFalse, true, d)
  16019. if changed2 {
  16020. *v = v2
  16021. }
  16022. case map[uint32]float64:
  16023. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, d)
  16024. case *map[uint32]float64:
  16025. v2, changed2 := fastpathTV.DecMapUint32Float64V(*v, fastpathCheckNilFalse, true, d)
  16026. if changed2 {
  16027. *v = v2
  16028. }
  16029. case map[uint32]bool:
  16030. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, d)
  16031. case *map[uint32]bool:
  16032. v2, changed2 := fastpathTV.DecMapUint32BoolV(*v, fastpathCheckNilFalse, true, d)
  16033. if changed2 {
  16034. *v = v2
  16035. }
  16036. case []uint64:
  16037. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, d)
  16038. case *[]uint64:
  16039. v2, changed2 := fastpathTV.DecSliceUint64V(*v, fastpathCheckNilFalse, true, d)
  16040. if changed2 {
  16041. *v = v2
  16042. }
  16043. case map[uint64]interface{}:
  16044. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, d)
  16045. case *map[uint64]interface{}:
  16046. v2, changed2 := fastpathTV.DecMapUint64IntfV(*v, fastpathCheckNilFalse, true, d)
  16047. if changed2 {
  16048. *v = v2
  16049. }
  16050. case map[uint64]string:
  16051. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, d)
  16052. case *map[uint64]string:
  16053. v2, changed2 := fastpathTV.DecMapUint64StringV(*v, fastpathCheckNilFalse, true, d)
  16054. if changed2 {
  16055. *v = v2
  16056. }
  16057. case map[uint64]uint:
  16058. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, d)
  16059. case *map[uint64]uint:
  16060. v2, changed2 := fastpathTV.DecMapUint64UintV(*v, fastpathCheckNilFalse, true, d)
  16061. if changed2 {
  16062. *v = v2
  16063. }
  16064. case map[uint64]uint8:
  16065. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, d)
  16066. case *map[uint64]uint8:
  16067. v2, changed2 := fastpathTV.DecMapUint64Uint8V(*v, fastpathCheckNilFalse, true, d)
  16068. if changed2 {
  16069. *v = v2
  16070. }
  16071. case map[uint64]uint16:
  16072. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, d)
  16073. case *map[uint64]uint16:
  16074. v2, changed2 := fastpathTV.DecMapUint64Uint16V(*v, fastpathCheckNilFalse, true, d)
  16075. if changed2 {
  16076. *v = v2
  16077. }
  16078. case map[uint64]uint32:
  16079. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, d)
  16080. case *map[uint64]uint32:
  16081. v2, changed2 := fastpathTV.DecMapUint64Uint32V(*v, fastpathCheckNilFalse, true, d)
  16082. if changed2 {
  16083. *v = v2
  16084. }
  16085. case map[uint64]uint64:
  16086. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, d)
  16087. case *map[uint64]uint64:
  16088. v2, changed2 := fastpathTV.DecMapUint64Uint64V(*v, fastpathCheckNilFalse, true, d)
  16089. if changed2 {
  16090. *v = v2
  16091. }
  16092. case map[uint64]uintptr:
  16093. fastpathTV.DecMapUint64UintptrV(v, fastpathCheckNilFalse, false, d)
  16094. case *map[uint64]uintptr:
  16095. v2, changed2 := fastpathTV.DecMapUint64UintptrV(*v, fastpathCheckNilFalse, true, d)
  16096. if changed2 {
  16097. *v = v2
  16098. }
  16099. case map[uint64]int:
  16100. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, d)
  16101. case *map[uint64]int:
  16102. v2, changed2 := fastpathTV.DecMapUint64IntV(*v, fastpathCheckNilFalse, true, d)
  16103. if changed2 {
  16104. *v = v2
  16105. }
  16106. case map[uint64]int8:
  16107. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, d)
  16108. case *map[uint64]int8:
  16109. v2, changed2 := fastpathTV.DecMapUint64Int8V(*v, fastpathCheckNilFalse, true, d)
  16110. if changed2 {
  16111. *v = v2
  16112. }
  16113. case map[uint64]int16:
  16114. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, d)
  16115. case *map[uint64]int16:
  16116. v2, changed2 := fastpathTV.DecMapUint64Int16V(*v, fastpathCheckNilFalse, true, d)
  16117. if changed2 {
  16118. *v = v2
  16119. }
  16120. case map[uint64]int32:
  16121. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, d)
  16122. case *map[uint64]int32:
  16123. v2, changed2 := fastpathTV.DecMapUint64Int32V(*v, fastpathCheckNilFalse, true, d)
  16124. if changed2 {
  16125. *v = v2
  16126. }
  16127. case map[uint64]int64:
  16128. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, d)
  16129. case *map[uint64]int64:
  16130. v2, changed2 := fastpathTV.DecMapUint64Int64V(*v, fastpathCheckNilFalse, true, d)
  16131. if changed2 {
  16132. *v = v2
  16133. }
  16134. case map[uint64]float32:
  16135. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, d)
  16136. case *map[uint64]float32:
  16137. v2, changed2 := fastpathTV.DecMapUint64Float32V(*v, fastpathCheckNilFalse, true, d)
  16138. if changed2 {
  16139. *v = v2
  16140. }
  16141. case map[uint64]float64:
  16142. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, d)
  16143. case *map[uint64]float64:
  16144. v2, changed2 := fastpathTV.DecMapUint64Float64V(*v, fastpathCheckNilFalse, true, d)
  16145. if changed2 {
  16146. *v = v2
  16147. }
  16148. case map[uint64]bool:
  16149. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, d)
  16150. case *map[uint64]bool:
  16151. v2, changed2 := fastpathTV.DecMapUint64BoolV(*v, fastpathCheckNilFalse, true, d)
  16152. if changed2 {
  16153. *v = v2
  16154. }
  16155. case []uintptr:
  16156. fastpathTV.DecSliceUintptrV(v, fastpathCheckNilFalse, false, d)
  16157. case *[]uintptr:
  16158. v2, changed2 := fastpathTV.DecSliceUintptrV(*v, fastpathCheckNilFalse, true, d)
  16159. if changed2 {
  16160. *v = v2
  16161. }
  16162. case map[uintptr]interface{}:
  16163. fastpathTV.DecMapUintptrIntfV(v, fastpathCheckNilFalse, false, d)
  16164. case *map[uintptr]interface{}:
  16165. v2, changed2 := fastpathTV.DecMapUintptrIntfV(*v, fastpathCheckNilFalse, true, d)
  16166. if changed2 {
  16167. *v = v2
  16168. }
  16169. case map[uintptr]string:
  16170. fastpathTV.DecMapUintptrStringV(v, fastpathCheckNilFalse, false, d)
  16171. case *map[uintptr]string:
  16172. v2, changed2 := fastpathTV.DecMapUintptrStringV(*v, fastpathCheckNilFalse, true, d)
  16173. if changed2 {
  16174. *v = v2
  16175. }
  16176. case map[uintptr]uint:
  16177. fastpathTV.DecMapUintptrUintV(v, fastpathCheckNilFalse, false, d)
  16178. case *map[uintptr]uint:
  16179. v2, changed2 := fastpathTV.DecMapUintptrUintV(*v, fastpathCheckNilFalse, true, d)
  16180. if changed2 {
  16181. *v = v2
  16182. }
  16183. case map[uintptr]uint8:
  16184. fastpathTV.DecMapUintptrUint8V(v, fastpathCheckNilFalse, false, d)
  16185. case *map[uintptr]uint8:
  16186. v2, changed2 := fastpathTV.DecMapUintptrUint8V(*v, fastpathCheckNilFalse, true, d)
  16187. if changed2 {
  16188. *v = v2
  16189. }
  16190. case map[uintptr]uint16:
  16191. fastpathTV.DecMapUintptrUint16V(v, fastpathCheckNilFalse, false, d)
  16192. case *map[uintptr]uint16:
  16193. v2, changed2 := fastpathTV.DecMapUintptrUint16V(*v, fastpathCheckNilFalse, true, d)
  16194. if changed2 {
  16195. *v = v2
  16196. }
  16197. case map[uintptr]uint32:
  16198. fastpathTV.DecMapUintptrUint32V(v, fastpathCheckNilFalse, false, d)
  16199. case *map[uintptr]uint32:
  16200. v2, changed2 := fastpathTV.DecMapUintptrUint32V(*v, fastpathCheckNilFalse, true, d)
  16201. if changed2 {
  16202. *v = v2
  16203. }
  16204. case map[uintptr]uint64:
  16205. fastpathTV.DecMapUintptrUint64V(v, fastpathCheckNilFalse, false, d)
  16206. case *map[uintptr]uint64:
  16207. v2, changed2 := fastpathTV.DecMapUintptrUint64V(*v, fastpathCheckNilFalse, true, d)
  16208. if changed2 {
  16209. *v = v2
  16210. }
  16211. case map[uintptr]uintptr:
  16212. fastpathTV.DecMapUintptrUintptrV(v, fastpathCheckNilFalse, false, d)
  16213. case *map[uintptr]uintptr:
  16214. v2, changed2 := fastpathTV.DecMapUintptrUintptrV(*v, fastpathCheckNilFalse, true, d)
  16215. if changed2 {
  16216. *v = v2
  16217. }
  16218. case map[uintptr]int:
  16219. fastpathTV.DecMapUintptrIntV(v, fastpathCheckNilFalse, false, d)
  16220. case *map[uintptr]int:
  16221. v2, changed2 := fastpathTV.DecMapUintptrIntV(*v, fastpathCheckNilFalse, true, d)
  16222. if changed2 {
  16223. *v = v2
  16224. }
  16225. case map[uintptr]int8:
  16226. fastpathTV.DecMapUintptrInt8V(v, fastpathCheckNilFalse, false, d)
  16227. case *map[uintptr]int8:
  16228. v2, changed2 := fastpathTV.DecMapUintptrInt8V(*v, fastpathCheckNilFalse, true, d)
  16229. if changed2 {
  16230. *v = v2
  16231. }
  16232. case map[uintptr]int16:
  16233. fastpathTV.DecMapUintptrInt16V(v, fastpathCheckNilFalse, false, d)
  16234. case *map[uintptr]int16:
  16235. v2, changed2 := fastpathTV.DecMapUintptrInt16V(*v, fastpathCheckNilFalse, true, d)
  16236. if changed2 {
  16237. *v = v2
  16238. }
  16239. case map[uintptr]int32:
  16240. fastpathTV.DecMapUintptrInt32V(v, fastpathCheckNilFalse, false, d)
  16241. case *map[uintptr]int32:
  16242. v2, changed2 := fastpathTV.DecMapUintptrInt32V(*v, fastpathCheckNilFalse, true, d)
  16243. if changed2 {
  16244. *v = v2
  16245. }
  16246. case map[uintptr]int64:
  16247. fastpathTV.DecMapUintptrInt64V(v, fastpathCheckNilFalse, false, d)
  16248. case *map[uintptr]int64:
  16249. v2, changed2 := fastpathTV.DecMapUintptrInt64V(*v, fastpathCheckNilFalse, true, d)
  16250. if changed2 {
  16251. *v = v2
  16252. }
  16253. case map[uintptr]float32:
  16254. fastpathTV.DecMapUintptrFloat32V(v, fastpathCheckNilFalse, false, d)
  16255. case *map[uintptr]float32:
  16256. v2, changed2 := fastpathTV.DecMapUintptrFloat32V(*v, fastpathCheckNilFalse, true, d)
  16257. if changed2 {
  16258. *v = v2
  16259. }
  16260. case map[uintptr]float64:
  16261. fastpathTV.DecMapUintptrFloat64V(v, fastpathCheckNilFalse, false, d)
  16262. case *map[uintptr]float64:
  16263. v2, changed2 := fastpathTV.DecMapUintptrFloat64V(*v, fastpathCheckNilFalse, true, d)
  16264. if changed2 {
  16265. *v = v2
  16266. }
  16267. case map[uintptr]bool:
  16268. fastpathTV.DecMapUintptrBoolV(v, fastpathCheckNilFalse, false, d)
  16269. case *map[uintptr]bool:
  16270. v2, changed2 := fastpathTV.DecMapUintptrBoolV(*v, fastpathCheckNilFalse, true, d)
  16271. if changed2 {
  16272. *v = v2
  16273. }
  16274. case []int:
  16275. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, d)
  16276. case *[]int:
  16277. v2, changed2 := fastpathTV.DecSliceIntV(*v, fastpathCheckNilFalse, true, d)
  16278. if changed2 {
  16279. *v = v2
  16280. }
  16281. case map[int]interface{}:
  16282. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, d)
  16283. case *map[int]interface{}:
  16284. v2, changed2 := fastpathTV.DecMapIntIntfV(*v, fastpathCheckNilFalse, true, d)
  16285. if changed2 {
  16286. *v = v2
  16287. }
  16288. case map[int]string:
  16289. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, d)
  16290. case *map[int]string:
  16291. v2, changed2 := fastpathTV.DecMapIntStringV(*v, fastpathCheckNilFalse, true, d)
  16292. if changed2 {
  16293. *v = v2
  16294. }
  16295. case map[int]uint:
  16296. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, d)
  16297. case *map[int]uint:
  16298. v2, changed2 := fastpathTV.DecMapIntUintV(*v, fastpathCheckNilFalse, true, d)
  16299. if changed2 {
  16300. *v = v2
  16301. }
  16302. case map[int]uint8:
  16303. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, d)
  16304. case *map[int]uint8:
  16305. v2, changed2 := fastpathTV.DecMapIntUint8V(*v, fastpathCheckNilFalse, true, d)
  16306. if changed2 {
  16307. *v = v2
  16308. }
  16309. case map[int]uint16:
  16310. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, d)
  16311. case *map[int]uint16:
  16312. v2, changed2 := fastpathTV.DecMapIntUint16V(*v, fastpathCheckNilFalse, true, d)
  16313. if changed2 {
  16314. *v = v2
  16315. }
  16316. case map[int]uint32:
  16317. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, d)
  16318. case *map[int]uint32:
  16319. v2, changed2 := fastpathTV.DecMapIntUint32V(*v, fastpathCheckNilFalse, true, d)
  16320. if changed2 {
  16321. *v = v2
  16322. }
  16323. case map[int]uint64:
  16324. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, d)
  16325. case *map[int]uint64:
  16326. v2, changed2 := fastpathTV.DecMapIntUint64V(*v, fastpathCheckNilFalse, true, d)
  16327. if changed2 {
  16328. *v = v2
  16329. }
  16330. case map[int]uintptr:
  16331. fastpathTV.DecMapIntUintptrV(v, fastpathCheckNilFalse, false, d)
  16332. case *map[int]uintptr:
  16333. v2, changed2 := fastpathTV.DecMapIntUintptrV(*v, fastpathCheckNilFalse, true, d)
  16334. if changed2 {
  16335. *v = v2
  16336. }
  16337. case map[int]int:
  16338. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, d)
  16339. case *map[int]int:
  16340. v2, changed2 := fastpathTV.DecMapIntIntV(*v, fastpathCheckNilFalse, true, d)
  16341. if changed2 {
  16342. *v = v2
  16343. }
  16344. case map[int]int8:
  16345. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, d)
  16346. case *map[int]int8:
  16347. v2, changed2 := fastpathTV.DecMapIntInt8V(*v, fastpathCheckNilFalse, true, d)
  16348. if changed2 {
  16349. *v = v2
  16350. }
  16351. case map[int]int16:
  16352. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, d)
  16353. case *map[int]int16:
  16354. v2, changed2 := fastpathTV.DecMapIntInt16V(*v, fastpathCheckNilFalse, true, d)
  16355. if changed2 {
  16356. *v = v2
  16357. }
  16358. case map[int]int32:
  16359. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, d)
  16360. case *map[int]int32:
  16361. v2, changed2 := fastpathTV.DecMapIntInt32V(*v, fastpathCheckNilFalse, true, d)
  16362. if changed2 {
  16363. *v = v2
  16364. }
  16365. case map[int]int64:
  16366. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, d)
  16367. case *map[int]int64:
  16368. v2, changed2 := fastpathTV.DecMapIntInt64V(*v, fastpathCheckNilFalse, true, d)
  16369. if changed2 {
  16370. *v = v2
  16371. }
  16372. case map[int]float32:
  16373. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, d)
  16374. case *map[int]float32:
  16375. v2, changed2 := fastpathTV.DecMapIntFloat32V(*v, fastpathCheckNilFalse, true, d)
  16376. if changed2 {
  16377. *v = v2
  16378. }
  16379. case map[int]float64:
  16380. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, d)
  16381. case *map[int]float64:
  16382. v2, changed2 := fastpathTV.DecMapIntFloat64V(*v, fastpathCheckNilFalse, true, d)
  16383. if changed2 {
  16384. *v = v2
  16385. }
  16386. case map[int]bool:
  16387. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, d)
  16388. case *map[int]bool:
  16389. v2, changed2 := fastpathTV.DecMapIntBoolV(*v, fastpathCheckNilFalse, true, d)
  16390. if changed2 {
  16391. *v = v2
  16392. }
  16393. case []int8:
  16394. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, d)
  16395. case *[]int8:
  16396. v2, changed2 := fastpathTV.DecSliceInt8V(*v, fastpathCheckNilFalse, true, d)
  16397. if changed2 {
  16398. *v = v2
  16399. }
  16400. case map[int8]interface{}:
  16401. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, d)
  16402. case *map[int8]interface{}:
  16403. v2, changed2 := fastpathTV.DecMapInt8IntfV(*v, fastpathCheckNilFalse, true, d)
  16404. if changed2 {
  16405. *v = v2
  16406. }
  16407. case map[int8]string:
  16408. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, d)
  16409. case *map[int8]string:
  16410. v2, changed2 := fastpathTV.DecMapInt8StringV(*v, fastpathCheckNilFalse, true, d)
  16411. if changed2 {
  16412. *v = v2
  16413. }
  16414. case map[int8]uint:
  16415. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, d)
  16416. case *map[int8]uint:
  16417. v2, changed2 := fastpathTV.DecMapInt8UintV(*v, fastpathCheckNilFalse, true, d)
  16418. if changed2 {
  16419. *v = v2
  16420. }
  16421. case map[int8]uint8:
  16422. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, d)
  16423. case *map[int8]uint8:
  16424. v2, changed2 := fastpathTV.DecMapInt8Uint8V(*v, fastpathCheckNilFalse, true, d)
  16425. if changed2 {
  16426. *v = v2
  16427. }
  16428. case map[int8]uint16:
  16429. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, d)
  16430. case *map[int8]uint16:
  16431. v2, changed2 := fastpathTV.DecMapInt8Uint16V(*v, fastpathCheckNilFalse, true, d)
  16432. if changed2 {
  16433. *v = v2
  16434. }
  16435. case map[int8]uint32:
  16436. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, d)
  16437. case *map[int8]uint32:
  16438. v2, changed2 := fastpathTV.DecMapInt8Uint32V(*v, fastpathCheckNilFalse, true, d)
  16439. if changed2 {
  16440. *v = v2
  16441. }
  16442. case map[int8]uint64:
  16443. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, d)
  16444. case *map[int8]uint64:
  16445. v2, changed2 := fastpathTV.DecMapInt8Uint64V(*v, fastpathCheckNilFalse, true, d)
  16446. if changed2 {
  16447. *v = v2
  16448. }
  16449. case map[int8]uintptr:
  16450. fastpathTV.DecMapInt8UintptrV(v, fastpathCheckNilFalse, false, d)
  16451. case *map[int8]uintptr:
  16452. v2, changed2 := fastpathTV.DecMapInt8UintptrV(*v, fastpathCheckNilFalse, true, d)
  16453. if changed2 {
  16454. *v = v2
  16455. }
  16456. case map[int8]int:
  16457. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, d)
  16458. case *map[int8]int:
  16459. v2, changed2 := fastpathTV.DecMapInt8IntV(*v, fastpathCheckNilFalse, true, d)
  16460. if changed2 {
  16461. *v = v2
  16462. }
  16463. case map[int8]int8:
  16464. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, d)
  16465. case *map[int8]int8:
  16466. v2, changed2 := fastpathTV.DecMapInt8Int8V(*v, fastpathCheckNilFalse, true, d)
  16467. if changed2 {
  16468. *v = v2
  16469. }
  16470. case map[int8]int16:
  16471. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, d)
  16472. case *map[int8]int16:
  16473. v2, changed2 := fastpathTV.DecMapInt8Int16V(*v, fastpathCheckNilFalse, true, d)
  16474. if changed2 {
  16475. *v = v2
  16476. }
  16477. case map[int8]int32:
  16478. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, d)
  16479. case *map[int8]int32:
  16480. v2, changed2 := fastpathTV.DecMapInt8Int32V(*v, fastpathCheckNilFalse, true, d)
  16481. if changed2 {
  16482. *v = v2
  16483. }
  16484. case map[int8]int64:
  16485. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, d)
  16486. case *map[int8]int64:
  16487. v2, changed2 := fastpathTV.DecMapInt8Int64V(*v, fastpathCheckNilFalse, true, d)
  16488. if changed2 {
  16489. *v = v2
  16490. }
  16491. case map[int8]float32:
  16492. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, d)
  16493. case *map[int8]float32:
  16494. v2, changed2 := fastpathTV.DecMapInt8Float32V(*v, fastpathCheckNilFalse, true, d)
  16495. if changed2 {
  16496. *v = v2
  16497. }
  16498. case map[int8]float64:
  16499. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, d)
  16500. case *map[int8]float64:
  16501. v2, changed2 := fastpathTV.DecMapInt8Float64V(*v, fastpathCheckNilFalse, true, d)
  16502. if changed2 {
  16503. *v = v2
  16504. }
  16505. case map[int8]bool:
  16506. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, d)
  16507. case *map[int8]bool:
  16508. v2, changed2 := fastpathTV.DecMapInt8BoolV(*v, fastpathCheckNilFalse, true, d)
  16509. if changed2 {
  16510. *v = v2
  16511. }
  16512. case []int16:
  16513. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, d)
  16514. case *[]int16:
  16515. v2, changed2 := fastpathTV.DecSliceInt16V(*v, fastpathCheckNilFalse, true, d)
  16516. if changed2 {
  16517. *v = v2
  16518. }
  16519. case map[int16]interface{}:
  16520. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, d)
  16521. case *map[int16]interface{}:
  16522. v2, changed2 := fastpathTV.DecMapInt16IntfV(*v, fastpathCheckNilFalse, true, d)
  16523. if changed2 {
  16524. *v = v2
  16525. }
  16526. case map[int16]string:
  16527. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, d)
  16528. case *map[int16]string:
  16529. v2, changed2 := fastpathTV.DecMapInt16StringV(*v, fastpathCheckNilFalse, true, d)
  16530. if changed2 {
  16531. *v = v2
  16532. }
  16533. case map[int16]uint:
  16534. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, d)
  16535. case *map[int16]uint:
  16536. v2, changed2 := fastpathTV.DecMapInt16UintV(*v, fastpathCheckNilFalse, true, d)
  16537. if changed2 {
  16538. *v = v2
  16539. }
  16540. case map[int16]uint8:
  16541. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, d)
  16542. case *map[int16]uint8:
  16543. v2, changed2 := fastpathTV.DecMapInt16Uint8V(*v, fastpathCheckNilFalse, true, d)
  16544. if changed2 {
  16545. *v = v2
  16546. }
  16547. case map[int16]uint16:
  16548. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, d)
  16549. case *map[int16]uint16:
  16550. v2, changed2 := fastpathTV.DecMapInt16Uint16V(*v, fastpathCheckNilFalse, true, d)
  16551. if changed2 {
  16552. *v = v2
  16553. }
  16554. case map[int16]uint32:
  16555. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, d)
  16556. case *map[int16]uint32:
  16557. v2, changed2 := fastpathTV.DecMapInt16Uint32V(*v, fastpathCheckNilFalse, true, d)
  16558. if changed2 {
  16559. *v = v2
  16560. }
  16561. case map[int16]uint64:
  16562. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, d)
  16563. case *map[int16]uint64:
  16564. v2, changed2 := fastpathTV.DecMapInt16Uint64V(*v, fastpathCheckNilFalse, true, d)
  16565. if changed2 {
  16566. *v = v2
  16567. }
  16568. case map[int16]uintptr:
  16569. fastpathTV.DecMapInt16UintptrV(v, fastpathCheckNilFalse, false, d)
  16570. case *map[int16]uintptr:
  16571. v2, changed2 := fastpathTV.DecMapInt16UintptrV(*v, fastpathCheckNilFalse, true, d)
  16572. if changed2 {
  16573. *v = v2
  16574. }
  16575. case map[int16]int:
  16576. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, d)
  16577. case *map[int16]int:
  16578. v2, changed2 := fastpathTV.DecMapInt16IntV(*v, fastpathCheckNilFalse, true, d)
  16579. if changed2 {
  16580. *v = v2
  16581. }
  16582. case map[int16]int8:
  16583. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, d)
  16584. case *map[int16]int8:
  16585. v2, changed2 := fastpathTV.DecMapInt16Int8V(*v, fastpathCheckNilFalse, true, d)
  16586. if changed2 {
  16587. *v = v2
  16588. }
  16589. case map[int16]int16:
  16590. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, d)
  16591. case *map[int16]int16:
  16592. v2, changed2 := fastpathTV.DecMapInt16Int16V(*v, fastpathCheckNilFalse, true, d)
  16593. if changed2 {
  16594. *v = v2
  16595. }
  16596. case map[int16]int32:
  16597. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, d)
  16598. case *map[int16]int32:
  16599. v2, changed2 := fastpathTV.DecMapInt16Int32V(*v, fastpathCheckNilFalse, true, d)
  16600. if changed2 {
  16601. *v = v2
  16602. }
  16603. case map[int16]int64:
  16604. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, d)
  16605. case *map[int16]int64:
  16606. v2, changed2 := fastpathTV.DecMapInt16Int64V(*v, fastpathCheckNilFalse, true, d)
  16607. if changed2 {
  16608. *v = v2
  16609. }
  16610. case map[int16]float32:
  16611. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, d)
  16612. case *map[int16]float32:
  16613. v2, changed2 := fastpathTV.DecMapInt16Float32V(*v, fastpathCheckNilFalse, true, d)
  16614. if changed2 {
  16615. *v = v2
  16616. }
  16617. case map[int16]float64:
  16618. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, d)
  16619. case *map[int16]float64:
  16620. v2, changed2 := fastpathTV.DecMapInt16Float64V(*v, fastpathCheckNilFalse, true, d)
  16621. if changed2 {
  16622. *v = v2
  16623. }
  16624. case map[int16]bool:
  16625. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, d)
  16626. case *map[int16]bool:
  16627. v2, changed2 := fastpathTV.DecMapInt16BoolV(*v, fastpathCheckNilFalse, true, d)
  16628. if changed2 {
  16629. *v = v2
  16630. }
  16631. case []int32:
  16632. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, d)
  16633. case *[]int32:
  16634. v2, changed2 := fastpathTV.DecSliceInt32V(*v, fastpathCheckNilFalse, true, d)
  16635. if changed2 {
  16636. *v = v2
  16637. }
  16638. case map[int32]interface{}:
  16639. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, d)
  16640. case *map[int32]interface{}:
  16641. v2, changed2 := fastpathTV.DecMapInt32IntfV(*v, fastpathCheckNilFalse, true, d)
  16642. if changed2 {
  16643. *v = v2
  16644. }
  16645. case map[int32]string:
  16646. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, d)
  16647. case *map[int32]string:
  16648. v2, changed2 := fastpathTV.DecMapInt32StringV(*v, fastpathCheckNilFalse, true, d)
  16649. if changed2 {
  16650. *v = v2
  16651. }
  16652. case map[int32]uint:
  16653. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, d)
  16654. case *map[int32]uint:
  16655. v2, changed2 := fastpathTV.DecMapInt32UintV(*v, fastpathCheckNilFalse, true, d)
  16656. if changed2 {
  16657. *v = v2
  16658. }
  16659. case map[int32]uint8:
  16660. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, d)
  16661. case *map[int32]uint8:
  16662. v2, changed2 := fastpathTV.DecMapInt32Uint8V(*v, fastpathCheckNilFalse, true, d)
  16663. if changed2 {
  16664. *v = v2
  16665. }
  16666. case map[int32]uint16:
  16667. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, d)
  16668. case *map[int32]uint16:
  16669. v2, changed2 := fastpathTV.DecMapInt32Uint16V(*v, fastpathCheckNilFalse, true, d)
  16670. if changed2 {
  16671. *v = v2
  16672. }
  16673. case map[int32]uint32:
  16674. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, d)
  16675. case *map[int32]uint32:
  16676. v2, changed2 := fastpathTV.DecMapInt32Uint32V(*v, fastpathCheckNilFalse, true, d)
  16677. if changed2 {
  16678. *v = v2
  16679. }
  16680. case map[int32]uint64:
  16681. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, d)
  16682. case *map[int32]uint64:
  16683. v2, changed2 := fastpathTV.DecMapInt32Uint64V(*v, fastpathCheckNilFalse, true, d)
  16684. if changed2 {
  16685. *v = v2
  16686. }
  16687. case map[int32]uintptr:
  16688. fastpathTV.DecMapInt32UintptrV(v, fastpathCheckNilFalse, false, d)
  16689. case *map[int32]uintptr:
  16690. v2, changed2 := fastpathTV.DecMapInt32UintptrV(*v, fastpathCheckNilFalse, true, d)
  16691. if changed2 {
  16692. *v = v2
  16693. }
  16694. case map[int32]int:
  16695. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, d)
  16696. case *map[int32]int:
  16697. v2, changed2 := fastpathTV.DecMapInt32IntV(*v, fastpathCheckNilFalse, true, d)
  16698. if changed2 {
  16699. *v = v2
  16700. }
  16701. case map[int32]int8:
  16702. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, d)
  16703. case *map[int32]int8:
  16704. v2, changed2 := fastpathTV.DecMapInt32Int8V(*v, fastpathCheckNilFalse, true, d)
  16705. if changed2 {
  16706. *v = v2
  16707. }
  16708. case map[int32]int16:
  16709. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, d)
  16710. case *map[int32]int16:
  16711. v2, changed2 := fastpathTV.DecMapInt32Int16V(*v, fastpathCheckNilFalse, true, d)
  16712. if changed2 {
  16713. *v = v2
  16714. }
  16715. case map[int32]int32:
  16716. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, d)
  16717. case *map[int32]int32:
  16718. v2, changed2 := fastpathTV.DecMapInt32Int32V(*v, fastpathCheckNilFalse, true, d)
  16719. if changed2 {
  16720. *v = v2
  16721. }
  16722. case map[int32]int64:
  16723. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, d)
  16724. case *map[int32]int64:
  16725. v2, changed2 := fastpathTV.DecMapInt32Int64V(*v, fastpathCheckNilFalse, true, d)
  16726. if changed2 {
  16727. *v = v2
  16728. }
  16729. case map[int32]float32:
  16730. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, d)
  16731. case *map[int32]float32:
  16732. v2, changed2 := fastpathTV.DecMapInt32Float32V(*v, fastpathCheckNilFalse, true, d)
  16733. if changed2 {
  16734. *v = v2
  16735. }
  16736. case map[int32]float64:
  16737. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, d)
  16738. case *map[int32]float64:
  16739. v2, changed2 := fastpathTV.DecMapInt32Float64V(*v, fastpathCheckNilFalse, true, d)
  16740. if changed2 {
  16741. *v = v2
  16742. }
  16743. case map[int32]bool:
  16744. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, d)
  16745. case *map[int32]bool:
  16746. v2, changed2 := fastpathTV.DecMapInt32BoolV(*v, fastpathCheckNilFalse, true, d)
  16747. if changed2 {
  16748. *v = v2
  16749. }
  16750. case []int64:
  16751. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, d)
  16752. case *[]int64:
  16753. v2, changed2 := fastpathTV.DecSliceInt64V(*v, fastpathCheckNilFalse, true, d)
  16754. if changed2 {
  16755. *v = v2
  16756. }
  16757. case map[int64]interface{}:
  16758. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, d)
  16759. case *map[int64]interface{}:
  16760. v2, changed2 := fastpathTV.DecMapInt64IntfV(*v, fastpathCheckNilFalse, true, d)
  16761. if changed2 {
  16762. *v = v2
  16763. }
  16764. case map[int64]string:
  16765. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, d)
  16766. case *map[int64]string:
  16767. v2, changed2 := fastpathTV.DecMapInt64StringV(*v, fastpathCheckNilFalse, true, d)
  16768. if changed2 {
  16769. *v = v2
  16770. }
  16771. case map[int64]uint:
  16772. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, d)
  16773. case *map[int64]uint:
  16774. v2, changed2 := fastpathTV.DecMapInt64UintV(*v, fastpathCheckNilFalse, true, d)
  16775. if changed2 {
  16776. *v = v2
  16777. }
  16778. case map[int64]uint8:
  16779. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, d)
  16780. case *map[int64]uint8:
  16781. v2, changed2 := fastpathTV.DecMapInt64Uint8V(*v, fastpathCheckNilFalse, true, d)
  16782. if changed2 {
  16783. *v = v2
  16784. }
  16785. case map[int64]uint16:
  16786. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, d)
  16787. case *map[int64]uint16:
  16788. v2, changed2 := fastpathTV.DecMapInt64Uint16V(*v, fastpathCheckNilFalse, true, d)
  16789. if changed2 {
  16790. *v = v2
  16791. }
  16792. case map[int64]uint32:
  16793. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, d)
  16794. case *map[int64]uint32:
  16795. v2, changed2 := fastpathTV.DecMapInt64Uint32V(*v, fastpathCheckNilFalse, true, d)
  16796. if changed2 {
  16797. *v = v2
  16798. }
  16799. case map[int64]uint64:
  16800. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, d)
  16801. case *map[int64]uint64:
  16802. v2, changed2 := fastpathTV.DecMapInt64Uint64V(*v, fastpathCheckNilFalse, true, d)
  16803. if changed2 {
  16804. *v = v2
  16805. }
  16806. case map[int64]uintptr:
  16807. fastpathTV.DecMapInt64UintptrV(v, fastpathCheckNilFalse, false, d)
  16808. case *map[int64]uintptr:
  16809. v2, changed2 := fastpathTV.DecMapInt64UintptrV(*v, fastpathCheckNilFalse, true, d)
  16810. if changed2 {
  16811. *v = v2
  16812. }
  16813. case map[int64]int:
  16814. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, d)
  16815. case *map[int64]int:
  16816. v2, changed2 := fastpathTV.DecMapInt64IntV(*v, fastpathCheckNilFalse, true, d)
  16817. if changed2 {
  16818. *v = v2
  16819. }
  16820. case map[int64]int8:
  16821. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, d)
  16822. case *map[int64]int8:
  16823. v2, changed2 := fastpathTV.DecMapInt64Int8V(*v, fastpathCheckNilFalse, true, d)
  16824. if changed2 {
  16825. *v = v2
  16826. }
  16827. case map[int64]int16:
  16828. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, d)
  16829. case *map[int64]int16:
  16830. v2, changed2 := fastpathTV.DecMapInt64Int16V(*v, fastpathCheckNilFalse, true, d)
  16831. if changed2 {
  16832. *v = v2
  16833. }
  16834. case map[int64]int32:
  16835. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, d)
  16836. case *map[int64]int32:
  16837. v2, changed2 := fastpathTV.DecMapInt64Int32V(*v, fastpathCheckNilFalse, true, d)
  16838. if changed2 {
  16839. *v = v2
  16840. }
  16841. case map[int64]int64:
  16842. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, d)
  16843. case *map[int64]int64:
  16844. v2, changed2 := fastpathTV.DecMapInt64Int64V(*v, fastpathCheckNilFalse, true, d)
  16845. if changed2 {
  16846. *v = v2
  16847. }
  16848. case map[int64]float32:
  16849. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, d)
  16850. case *map[int64]float32:
  16851. v2, changed2 := fastpathTV.DecMapInt64Float32V(*v, fastpathCheckNilFalse, true, d)
  16852. if changed2 {
  16853. *v = v2
  16854. }
  16855. case map[int64]float64:
  16856. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, d)
  16857. case *map[int64]float64:
  16858. v2, changed2 := fastpathTV.DecMapInt64Float64V(*v, fastpathCheckNilFalse, true, d)
  16859. if changed2 {
  16860. *v = v2
  16861. }
  16862. case map[int64]bool:
  16863. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, d)
  16864. case *map[int64]bool:
  16865. v2, changed2 := fastpathTV.DecMapInt64BoolV(*v, fastpathCheckNilFalse, true, d)
  16866. if changed2 {
  16867. *v = v2
  16868. }
  16869. case []bool:
  16870. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, d)
  16871. case *[]bool:
  16872. v2, changed2 := fastpathTV.DecSliceBoolV(*v, fastpathCheckNilFalse, true, d)
  16873. if changed2 {
  16874. *v = v2
  16875. }
  16876. case map[bool]interface{}:
  16877. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, d)
  16878. case *map[bool]interface{}:
  16879. v2, changed2 := fastpathTV.DecMapBoolIntfV(*v, fastpathCheckNilFalse, true, d)
  16880. if changed2 {
  16881. *v = v2
  16882. }
  16883. case map[bool]string:
  16884. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, d)
  16885. case *map[bool]string:
  16886. v2, changed2 := fastpathTV.DecMapBoolStringV(*v, fastpathCheckNilFalse, true, d)
  16887. if changed2 {
  16888. *v = v2
  16889. }
  16890. case map[bool]uint:
  16891. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, d)
  16892. case *map[bool]uint:
  16893. v2, changed2 := fastpathTV.DecMapBoolUintV(*v, fastpathCheckNilFalse, true, d)
  16894. if changed2 {
  16895. *v = v2
  16896. }
  16897. case map[bool]uint8:
  16898. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, d)
  16899. case *map[bool]uint8:
  16900. v2, changed2 := fastpathTV.DecMapBoolUint8V(*v, fastpathCheckNilFalse, true, d)
  16901. if changed2 {
  16902. *v = v2
  16903. }
  16904. case map[bool]uint16:
  16905. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, d)
  16906. case *map[bool]uint16:
  16907. v2, changed2 := fastpathTV.DecMapBoolUint16V(*v, fastpathCheckNilFalse, true, d)
  16908. if changed2 {
  16909. *v = v2
  16910. }
  16911. case map[bool]uint32:
  16912. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, d)
  16913. case *map[bool]uint32:
  16914. v2, changed2 := fastpathTV.DecMapBoolUint32V(*v, fastpathCheckNilFalse, true, d)
  16915. if changed2 {
  16916. *v = v2
  16917. }
  16918. case map[bool]uint64:
  16919. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, d)
  16920. case *map[bool]uint64:
  16921. v2, changed2 := fastpathTV.DecMapBoolUint64V(*v, fastpathCheckNilFalse, true, d)
  16922. if changed2 {
  16923. *v = v2
  16924. }
  16925. case map[bool]uintptr:
  16926. fastpathTV.DecMapBoolUintptrV(v, fastpathCheckNilFalse, false, d)
  16927. case *map[bool]uintptr:
  16928. v2, changed2 := fastpathTV.DecMapBoolUintptrV(*v, fastpathCheckNilFalse, true, d)
  16929. if changed2 {
  16930. *v = v2
  16931. }
  16932. case map[bool]int:
  16933. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, d)
  16934. case *map[bool]int:
  16935. v2, changed2 := fastpathTV.DecMapBoolIntV(*v, fastpathCheckNilFalse, true, d)
  16936. if changed2 {
  16937. *v = v2
  16938. }
  16939. case map[bool]int8:
  16940. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, d)
  16941. case *map[bool]int8:
  16942. v2, changed2 := fastpathTV.DecMapBoolInt8V(*v, fastpathCheckNilFalse, true, d)
  16943. if changed2 {
  16944. *v = v2
  16945. }
  16946. case map[bool]int16:
  16947. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, d)
  16948. case *map[bool]int16:
  16949. v2, changed2 := fastpathTV.DecMapBoolInt16V(*v, fastpathCheckNilFalse, true, d)
  16950. if changed2 {
  16951. *v = v2
  16952. }
  16953. case map[bool]int32:
  16954. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, d)
  16955. case *map[bool]int32:
  16956. v2, changed2 := fastpathTV.DecMapBoolInt32V(*v, fastpathCheckNilFalse, true, d)
  16957. if changed2 {
  16958. *v = v2
  16959. }
  16960. case map[bool]int64:
  16961. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, d)
  16962. case *map[bool]int64:
  16963. v2, changed2 := fastpathTV.DecMapBoolInt64V(*v, fastpathCheckNilFalse, true, d)
  16964. if changed2 {
  16965. *v = v2
  16966. }
  16967. case map[bool]float32:
  16968. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, d)
  16969. case *map[bool]float32:
  16970. v2, changed2 := fastpathTV.DecMapBoolFloat32V(*v, fastpathCheckNilFalse, true, d)
  16971. if changed2 {
  16972. *v = v2
  16973. }
  16974. case map[bool]float64:
  16975. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, d)
  16976. case *map[bool]float64:
  16977. v2, changed2 := fastpathTV.DecMapBoolFloat64V(*v, fastpathCheckNilFalse, true, d)
  16978. if changed2 {
  16979. *v = v2
  16980. }
  16981. case map[bool]bool:
  16982. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, d)
  16983. case *map[bool]bool:
  16984. v2, changed2 := fastpathTV.DecMapBoolBoolV(*v, fastpathCheckNilFalse, true, d)
  16985. if changed2 {
  16986. *v = v2
  16987. }
  16988. default:
  16989. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  16990. return false
  16991. }
  16992. return true
  16993. }
  16994. // -- -- fast path functions
  16995. func (f *decFnInfo) fastpathDecSliceIntfR(rv reflect.Value) {
  16996. array := f.seq == seqTypeArray
  16997. if !array && rv.CanAddr() {
  16998. vp := rv.Addr().Interface().(*[]interface{})
  16999. v, changed := fastpathTV.DecSliceIntfV(*vp, fastpathCheckNilFalse, !array, f.d)
  17000. if changed {
  17001. *vp = v
  17002. }
  17003. } else {
  17004. v := rv.Interface().([]interface{})
  17005. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, f.d)
  17006. }
  17007. }
  17008. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, checkNil bool, d *Decoder) {
  17009. v, changed := f.DecSliceIntfV(*vp, checkNil, true, d)
  17010. if changed {
  17011. *vp = v
  17012. }
  17013. }
  17014. func (_ fastpathT) DecSliceIntfV(v []interface{}, checkNil bool, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  17015. dd := d.d
  17016. if checkNil && dd.TryDecodeAsNil() {
  17017. if v != nil {
  17018. changed = true
  17019. }
  17020. return nil, changed
  17021. }
  17022. slh, containerLenS := d.decSliceHelperStart()
  17023. if containerLenS == 0 {
  17024. if canChange {
  17025. if v == nil {
  17026. v = []interface{}{}
  17027. } else if len(v) != 0 {
  17028. v = v[:0]
  17029. }
  17030. changed = true
  17031. }
  17032. slh.End()
  17033. return v, changed
  17034. }
  17035. if containerLenS > 0 {
  17036. x2read := containerLenS
  17037. var xtrunc bool
  17038. if containerLenS > cap(v) {
  17039. if canChange {
  17040. var xlen int
  17041. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17042. if xtrunc {
  17043. if xlen <= cap(v) {
  17044. v = v[:xlen]
  17045. } else {
  17046. v = make([]interface{}, xlen)
  17047. }
  17048. } else {
  17049. v = make([]interface{}, xlen)
  17050. }
  17051. changed = true
  17052. } else {
  17053. d.arrayCannotExpand(len(v), containerLenS)
  17054. }
  17055. x2read = len(v)
  17056. } else if containerLenS != len(v) {
  17057. if canChange {
  17058. v = v[:containerLenS]
  17059. changed = true
  17060. }
  17061. }
  17062. j := 0
  17063. for ; j < x2read; j++ {
  17064. slh.ElemContainerState(j)
  17065. d.decode(&v[j])
  17066. }
  17067. if xtrunc {
  17068. for ; j < containerLenS; j++ {
  17069. v = append(v, nil)
  17070. slh.ElemContainerState(j)
  17071. d.decode(&v[j])
  17072. }
  17073. } else if !canChange {
  17074. for ; j < containerLenS; j++ {
  17075. slh.ElemContainerState(j)
  17076. d.swallow()
  17077. }
  17078. }
  17079. } else {
  17080. breakFound := dd.CheckBreak()
  17081. if breakFound {
  17082. if canChange {
  17083. if v == nil {
  17084. v = []interface{}{}
  17085. } else if len(v) != 0 {
  17086. v = v[:0]
  17087. }
  17088. changed = true
  17089. }
  17090. slh.End()
  17091. return v, changed
  17092. }
  17093. if cap(v) == 0 {
  17094. v = make([]interface{}, 1, 4)
  17095. changed = true
  17096. }
  17097. j := 0
  17098. for ; !breakFound; j++ {
  17099. if j >= len(v) {
  17100. if canChange {
  17101. v = append(v, nil)
  17102. changed = true
  17103. } else {
  17104. d.arrayCannotExpand(len(v), j+1)
  17105. }
  17106. }
  17107. slh.ElemContainerState(j)
  17108. if j < len(v) {
  17109. d.decode(&v[j])
  17110. } else {
  17111. d.swallow()
  17112. }
  17113. breakFound = dd.CheckBreak()
  17114. }
  17115. if canChange && j < len(v) {
  17116. v = v[:j]
  17117. changed = true
  17118. }
  17119. }
  17120. slh.End()
  17121. return v, changed
  17122. }
  17123. func (f *decFnInfo) fastpathDecSliceStringR(rv reflect.Value) {
  17124. array := f.seq == seqTypeArray
  17125. if !array && rv.CanAddr() {
  17126. vp := rv.Addr().Interface().(*[]string)
  17127. v, changed := fastpathTV.DecSliceStringV(*vp, fastpathCheckNilFalse, !array, f.d)
  17128. if changed {
  17129. *vp = v
  17130. }
  17131. } else {
  17132. v := rv.Interface().([]string)
  17133. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, f.d)
  17134. }
  17135. }
  17136. func (f fastpathT) DecSliceStringX(vp *[]string, checkNil bool, d *Decoder) {
  17137. v, changed := f.DecSliceStringV(*vp, checkNil, true, d)
  17138. if changed {
  17139. *vp = v
  17140. }
  17141. }
  17142. func (_ fastpathT) DecSliceStringV(v []string, checkNil bool, canChange bool, d *Decoder) (_ []string, changed bool) {
  17143. dd := d.d
  17144. if checkNil && dd.TryDecodeAsNil() {
  17145. if v != nil {
  17146. changed = true
  17147. }
  17148. return nil, changed
  17149. }
  17150. slh, containerLenS := d.decSliceHelperStart()
  17151. if containerLenS == 0 {
  17152. if canChange {
  17153. if v == nil {
  17154. v = []string{}
  17155. } else if len(v) != 0 {
  17156. v = v[:0]
  17157. }
  17158. changed = true
  17159. }
  17160. slh.End()
  17161. return v, changed
  17162. }
  17163. if containerLenS > 0 {
  17164. x2read := containerLenS
  17165. var xtrunc bool
  17166. if containerLenS > cap(v) {
  17167. if canChange {
  17168. var xlen int
  17169. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17170. if xtrunc {
  17171. if xlen <= cap(v) {
  17172. v = v[:xlen]
  17173. } else {
  17174. v = make([]string, xlen)
  17175. }
  17176. } else {
  17177. v = make([]string, xlen)
  17178. }
  17179. changed = true
  17180. } else {
  17181. d.arrayCannotExpand(len(v), containerLenS)
  17182. }
  17183. x2read = len(v)
  17184. } else if containerLenS != len(v) {
  17185. if canChange {
  17186. v = v[:containerLenS]
  17187. changed = true
  17188. }
  17189. }
  17190. j := 0
  17191. for ; j < x2read; j++ {
  17192. slh.ElemContainerState(j)
  17193. v[j] = dd.DecodeString()
  17194. }
  17195. if xtrunc {
  17196. for ; j < containerLenS; j++ {
  17197. v = append(v, "")
  17198. slh.ElemContainerState(j)
  17199. v[j] = dd.DecodeString()
  17200. }
  17201. } else if !canChange {
  17202. for ; j < containerLenS; j++ {
  17203. slh.ElemContainerState(j)
  17204. d.swallow()
  17205. }
  17206. }
  17207. } else {
  17208. breakFound := dd.CheckBreak()
  17209. if breakFound {
  17210. if canChange {
  17211. if v == nil {
  17212. v = []string{}
  17213. } else if len(v) != 0 {
  17214. v = v[:0]
  17215. }
  17216. changed = true
  17217. }
  17218. slh.End()
  17219. return v, changed
  17220. }
  17221. if cap(v) == 0 {
  17222. v = make([]string, 1, 4)
  17223. changed = true
  17224. }
  17225. j := 0
  17226. for ; !breakFound; j++ {
  17227. if j >= len(v) {
  17228. if canChange {
  17229. v = append(v, "")
  17230. changed = true
  17231. } else {
  17232. d.arrayCannotExpand(len(v), j+1)
  17233. }
  17234. }
  17235. slh.ElemContainerState(j)
  17236. if j < len(v) {
  17237. v[j] = dd.DecodeString()
  17238. } else {
  17239. d.swallow()
  17240. }
  17241. breakFound = dd.CheckBreak()
  17242. }
  17243. if canChange && j < len(v) {
  17244. v = v[:j]
  17245. changed = true
  17246. }
  17247. }
  17248. slh.End()
  17249. return v, changed
  17250. }
  17251. func (f *decFnInfo) fastpathDecSliceFloat32R(rv reflect.Value) {
  17252. array := f.seq == seqTypeArray
  17253. if !array && rv.CanAddr() {
  17254. vp := rv.Addr().Interface().(*[]float32)
  17255. v, changed := fastpathTV.DecSliceFloat32V(*vp, fastpathCheckNilFalse, !array, f.d)
  17256. if changed {
  17257. *vp = v
  17258. }
  17259. } else {
  17260. v := rv.Interface().([]float32)
  17261. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, f.d)
  17262. }
  17263. }
  17264. func (f fastpathT) DecSliceFloat32X(vp *[]float32, checkNil bool, d *Decoder) {
  17265. v, changed := f.DecSliceFloat32V(*vp, checkNil, true, d)
  17266. if changed {
  17267. *vp = v
  17268. }
  17269. }
  17270. func (_ fastpathT) DecSliceFloat32V(v []float32, checkNil bool, canChange bool, d *Decoder) (_ []float32, changed bool) {
  17271. dd := d.d
  17272. if checkNil && dd.TryDecodeAsNil() {
  17273. if v != nil {
  17274. changed = true
  17275. }
  17276. return nil, changed
  17277. }
  17278. slh, containerLenS := d.decSliceHelperStart()
  17279. if containerLenS == 0 {
  17280. if canChange {
  17281. if v == nil {
  17282. v = []float32{}
  17283. } else if len(v) != 0 {
  17284. v = v[:0]
  17285. }
  17286. changed = true
  17287. }
  17288. slh.End()
  17289. return v, changed
  17290. }
  17291. if containerLenS > 0 {
  17292. x2read := containerLenS
  17293. var xtrunc bool
  17294. if containerLenS > cap(v) {
  17295. if canChange {
  17296. var xlen int
  17297. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17298. if xtrunc {
  17299. if xlen <= cap(v) {
  17300. v = v[:xlen]
  17301. } else {
  17302. v = make([]float32, xlen)
  17303. }
  17304. } else {
  17305. v = make([]float32, xlen)
  17306. }
  17307. changed = true
  17308. } else {
  17309. d.arrayCannotExpand(len(v), containerLenS)
  17310. }
  17311. x2read = len(v)
  17312. } else if containerLenS != len(v) {
  17313. if canChange {
  17314. v = v[:containerLenS]
  17315. changed = true
  17316. }
  17317. }
  17318. j := 0
  17319. for ; j < x2read; j++ {
  17320. slh.ElemContainerState(j)
  17321. v[j] = float32(dd.DecodeFloat(true))
  17322. }
  17323. if xtrunc {
  17324. for ; j < containerLenS; j++ {
  17325. v = append(v, 0)
  17326. slh.ElemContainerState(j)
  17327. v[j] = float32(dd.DecodeFloat(true))
  17328. }
  17329. } else if !canChange {
  17330. for ; j < containerLenS; j++ {
  17331. slh.ElemContainerState(j)
  17332. d.swallow()
  17333. }
  17334. }
  17335. } else {
  17336. breakFound := dd.CheckBreak()
  17337. if breakFound {
  17338. if canChange {
  17339. if v == nil {
  17340. v = []float32{}
  17341. } else if len(v) != 0 {
  17342. v = v[:0]
  17343. }
  17344. changed = true
  17345. }
  17346. slh.End()
  17347. return v, changed
  17348. }
  17349. if cap(v) == 0 {
  17350. v = make([]float32, 1, 4)
  17351. changed = true
  17352. }
  17353. j := 0
  17354. for ; !breakFound; j++ {
  17355. if j >= len(v) {
  17356. if canChange {
  17357. v = append(v, 0)
  17358. changed = true
  17359. } else {
  17360. d.arrayCannotExpand(len(v), j+1)
  17361. }
  17362. }
  17363. slh.ElemContainerState(j)
  17364. if j < len(v) {
  17365. v[j] = float32(dd.DecodeFloat(true))
  17366. } else {
  17367. d.swallow()
  17368. }
  17369. breakFound = dd.CheckBreak()
  17370. }
  17371. if canChange && j < len(v) {
  17372. v = v[:j]
  17373. changed = true
  17374. }
  17375. }
  17376. slh.End()
  17377. return v, changed
  17378. }
  17379. func (f *decFnInfo) fastpathDecSliceFloat64R(rv reflect.Value) {
  17380. array := f.seq == seqTypeArray
  17381. if !array && rv.CanAddr() {
  17382. vp := rv.Addr().Interface().(*[]float64)
  17383. v, changed := fastpathTV.DecSliceFloat64V(*vp, fastpathCheckNilFalse, !array, f.d)
  17384. if changed {
  17385. *vp = v
  17386. }
  17387. } else {
  17388. v := rv.Interface().([]float64)
  17389. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, f.d)
  17390. }
  17391. }
  17392. func (f fastpathT) DecSliceFloat64X(vp *[]float64, checkNil bool, d *Decoder) {
  17393. v, changed := f.DecSliceFloat64V(*vp, checkNil, true, d)
  17394. if changed {
  17395. *vp = v
  17396. }
  17397. }
  17398. func (_ fastpathT) DecSliceFloat64V(v []float64, checkNil bool, canChange bool, d *Decoder) (_ []float64, changed bool) {
  17399. dd := d.d
  17400. if checkNil && dd.TryDecodeAsNil() {
  17401. if v != nil {
  17402. changed = true
  17403. }
  17404. return nil, changed
  17405. }
  17406. slh, containerLenS := d.decSliceHelperStart()
  17407. if containerLenS == 0 {
  17408. if canChange {
  17409. if v == nil {
  17410. v = []float64{}
  17411. } else if len(v) != 0 {
  17412. v = v[:0]
  17413. }
  17414. changed = true
  17415. }
  17416. slh.End()
  17417. return v, changed
  17418. }
  17419. if containerLenS > 0 {
  17420. x2read := containerLenS
  17421. var xtrunc bool
  17422. if containerLenS > cap(v) {
  17423. if canChange {
  17424. var xlen int
  17425. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17426. if xtrunc {
  17427. if xlen <= cap(v) {
  17428. v = v[:xlen]
  17429. } else {
  17430. v = make([]float64, xlen)
  17431. }
  17432. } else {
  17433. v = make([]float64, xlen)
  17434. }
  17435. changed = true
  17436. } else {
  17437. d.arrayCannotExpand(len(v), containerLenS)
  17438. }
  17439. x2read = len(v)
  17440. } else if containerLenS != len(v) {
  17441. if canChange {
  17442. v = v[:containerLenS]
  17443. changed = true
  17444. }
  17445. }
  17446. j := 0
  17447. for ; j < x2read; j++ {
  17448. slh.ElemContainerState(j)
  17449. v[j] = dd.DecodeFloat(false)
  17450. }
  17451. if xtrunc {
  17452. for ; j < containerLenS; j++ {
  17453. v = append(v, 0)
  17454. slh.ElemContainerState(j)
  17455. v[j] = dd.DecodeFloat(false)
  17456. }
  17457. } else if !canChange {
  17458. for ; j < containerLenS; j++ {
  17459. slh.ElemContainerState(j)
  17460. d.swallow()
  17461. }
  17462. }
  17463. } else {
  17464. breakFound := dd.CheckBreak()
  17465. if breakFound {
  17466. if canChange {
  17467. if v == nil {
  17468. v = []float64{}
  17469. } else if len(v) != 0 {
  17470. v = v[:0]
  17471. }
  17472. changed = true
  17473. }
  17474. slh.End()
  17475. return v, changed
  17476. }
  17477. if cap(v) == 0 {
  17478. v = make([]float64, 1, 4)
  17479. changed = true
  17480. }
  17481. j := 0
  17482. for ; !breakFound; j++ {
  17483. if j >= len(v) {
  17484. if canChange {
  17485. v = append(v, 0)
  17486. changed = true
  17487. } else {
  17488. d.arrayCannotExpand(len(v), j+1)
  17489. }
  17490. }
  17491. slh.ElemContainerState(j)
  17492. if j < len(v) {
  17493. v[j] = dd.DecodeFloat(false)
  17494. } else {
  17495. d.swallow()
  17496. }
  17497. breakFound = dd.CheckBreak()
  17498. }
  17499. if canChange && j < len(v) {
  17500. v = v[:j]
  17501. changed = true
  17502. }
  17503. }
  17504. slh.End()
  17505. return v, changed
  17506. }
  17507. func (f *decFnInfo) fastpathDecSliceUintR(rv reflect.Value) {
  17508. array := f.seq == seqTypeArray
  17509. if !array && rv.CanAddr() {
  17510. vp := rv.Addr().Interface().(*[]uint)
  17511. v, changed := fastpathTV.DecSliceUintV(*vp, fastpathCheckNilFalse, !array, f.d)
  17512. if changed {
  17513. *vp = v
  17514. }
  17515. } else {
  17516. v := rv.Interface().([]uint)
  17517. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, f.d)
  17518. }
  17519. }
  17520. func (f fastpathT) DecSliceUintX(vp *[]uint, checkNil bool, d *Decoder) {
  17521. v, changed := f.DecSliceUintV(*vp, checkNil, true, d)
  17522. if changed {
  17523. *vp = v
  17524. }
  17525. }
  17526. func (_ fastpathT) DecSliceUintV(v []uint, checkNil bool, canChange bool, d *Decoder) (_ []uint, changed bool) {
  17527. dd := d.d
  17528. if checkNil && dd.TryDecodeAsNil() {
  17529. if v != nil {
  17530. changed = true
  17531. }
  17532. return nil, changed
  17533. }
  17534. slh, containerLenS := d.decSliceHelperStart()
  17535. if containerLenS == 0 {
  17536. if canChange {
  17537. if v == nil {
  17538. v = []uint{}
  17539. } else if len(v) != 0 {
  17540. v = v[:0]
  17541. }
  17542. changed = true
  17543. }
  17544. slh.End()
  17545. return v, changed
  17546. }
  17547. if containerLenS > 0 {
  17548. x2read := containerLenS
  17549. var xtrunc bool
  17550. if containerLenS > cap(v) {
  17551. if canChange {
  17552. var xlen int
  17553. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17554. if xtrunc {
  17555. if xlen <= cap(v) {
  17556. v = v[:xlen]
  17557. } else {
  17558. v = make([]uint, xlen)
  17559. }
  17560. } else {
  17561. v = make([]uint, xlen)
  17562. }
  17563. changed = true
  17564. } else {
  17565. d.arrayCannotExpand(len(v), containerLenS)
  17566. }
  17567. x2read = len(v)
  17568. } else if containerLenS != len(v) {
  17569. if canChange {
  17570. v = v[:containerLenS]
  17571. changed = true
  17572. }
  17573. }
  17574. j := 0
  17575. for ; j < x2read; j++ {
  17576. slh.ElemContainerState(j)
  17577. v[j] = uint(dd.DecodeUint(uintBitsize))
  17578. }
  17579. if xtrunc {
  17580. for ; j < containerLenS; j++ {
  17581. v = append(v, 0)
  17582. slh.ElemContainerState(j)
  17583. v[j] = uint(dd.DecodeUint(uintBitsize))
  17584. }
  17585. } else if !canChange {
  17586. for ; j < containerLenS; j++ {
  17587. slh.ElemContainerState(j)
  17588. d.swallow()
  17589. }
  17590. }
  17591. } else {
  17592. breakFound := dd.CheckBreak()
  17593. if breakFound {
  17594. if canChange {
  17595. if v == nil {
  17596. v = []uint{}
  17597. } else if len(v) != 0 {
  17598. v = v[:0]
  17599. }
  17600. changed = true
  17601. }
  17602. slh.End()
  17603. return v, changed
  17604. }
  17605. if cap(v) == 0 {
  17606. v = make([]uint, 1, 4)
  17607. changed = true
  17608. }
  17609. j := 0
  17610. for ; !breakFound; j++ {
  17611. if j >= len(v) {
  17612. if canChange {
  17613. v = append(v, 0)
  17614. changed = true
  17615. } else {
  17616. d.arrayCannotExpand(len(v), j+1)
  17617. }
  17618. }
  17619. slh.ElemContainerState(j)
  17620. if j < len(v) {
  17621. v[j] = uint(dd.DecodeUint(uintBitsize))
  17622. } else {
  17623. d.swallow()
  17624. }
  17625. breakFound = dd.CheckBreak()
  17626. }
  17627. if canChange && j < len(v) {
  17628. v = v[:j]
  17629. changed = true
  17630. }
  17631. }
  17632. slh.End()
  17633. return v, changed
  17634. }
  17635. func (f *decFnInfo) fastpathDecSliceUint16R(rv reflect.Value) {
  17636. array := f.seq == seqTypeArray
  17637. if !array && rv.CanAddr() {
  17638. vp := rv.Addr().Interface().(*[]uint16)
  17639. v, changed := fastpathTV.DecSliceUint16V(*vp, fastpathCheckNilFalse, !array, f.d)
  17640. if changed {
  17641. *vp = v
  17642. }
  17643. } else {
  17644. v := rv.Interface().([]uint16)
  17645. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, f.d)
  17646. }
  17647. }
  17648. func (f fastpathT) DecSliceUint16X(vp *[]uint16, checkNil bool, d *Decoder) {
  17649. v, changed := f.DecSliceUint16V(*vp, checkNil, true, d)
  17650. if changed {
  17651. *vp = v
  17652. }
  17653. }
  17654. func (_ fastpathT) DecSliceUint16V(v []uint16, checkNil bool, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  17655. dd := d.d
  17656. if checkNil && dd.TryDecodeAsNil() {
  17657. if v != nil {
  17658. changed = true
  17659. }
  17660. return nil, changed
  17661. }
  17662. slh, containerLenS := d.decSliceHelperStart()
  17663. if containerLenS == 0 {
  17664. if canChange {
  17665. if v == nil {
  17666. v = []uint16{}
  17667. } else if len(v) != 0 {
  17668. v = v[:0]
  17669. }
  17670. changed = true
  17671. }
  17672. slh.End()
  17673. return v, changed
  17674. }
  17675. if containerLenS > 0 {
  17676. x2read := containerLenS
  17677. var xtrunc bool
  17678. if containerLenS > cap(v) {
  17679. if canChange {
  17680. var xlen int
  17681. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  17682. if xtrunc {
  17683. if xlen <= cap(v) {
  17684. v = v[:xlen]
  17685. } else {
  17686. v = make([]uint16, xlen)
  17687. }
  17688. } else {
  17689. v = make([]uint16, xlen)
  17690. }
  17691. changed = true
  17692. } else {
  17693. d.arrayCannotExpand(len(v), containerLenS)
  17694. }
  17695. x2read = len(v)
  17696. } else if containerLenS != len(v) {
  17697. if canChange {
  17698. v = v[:containerLenS]
  17699. changed = true
  17700. }
  17701. }
  17702. j := 0
  17703. for ; j < x2read; j++ {
  17704. slh.ElemContainerState(j)
  17705. v[j] = uint16(dd.DecodeUint(16))
  17706. }
  17707. if xtrunc {
  17708. for ; j < containerLenS; j++ {
  17709. v = append(v, 0)
  17710. slh.ElemContainerState(j)
  17711. v[j] = uint16(dd.DecodeUint(16))
  17712. }
  17713. } else if !canChange {
  17714. for ; j < containerLenS; j++ {
  17715. slh.ElemContainerState(j)
  17716. d.swallow()
  17717. }
  17718. }
  17719. } else {
  17720. breakFound := dd.CheckBreak()
  17721. if breakFound {
  17722. if canChange {
  17723. if v == nil {
  17724. v = []uint16{}
  17725. } else if len(v) != 0 {
  17726. v = v[:0]
  17727. }
  17728. changed = true
  17729. }
  17730. slh.End()
  17731. return v, changed
  17732. }
  17733. if cap(v) == 0 {
  17734. v = make([]uint16, 1, 4)
  17735. changed = true
  17736. }
  17737. j := 0
  17738. for ; !breakFound; j++ {
  17739. if j >= len(v) {
  17740. if canChange {
  17741. v = append(v, 0)
  17742. changed = true
  17743. } else {
  17744. d.arrayCannotExpand(len(v), j+1)
  17745. }
  17746. }
  17747. slh.ElemContainerState(j)
  17748. if j < len(v) {
  17749. v[j] = uint16(dd.DecodeUint(16))
  17750. } else {
  17751. d.swallow()
  17752. }
  17753. breakFound = dd.CheckBreak()
  17754. }
  17755. if canChange && j < len(v) {
  17756. v = v[:j]
  17757. changed = true
  17758. }
  17759. }
  17760. slh.End()
  17761. return v, changed
  17762. }
  17763. func (f *decFnInfo) fastpathDecSliceUint32R(rv reflect.Value) {
  17764. array := f.seq == seqTypeArray
  17765. if !array && rv.CanAddr() {
  17766. vp := rv.Addr().Interface().(*[]uint32)
  17767. v, changed := fastpathTV.DecSliceUint32V(*vp, fastpathCheckNilFalse, !array, f.d)
  17768. if changed {
  17769. *vp = v
  17770. }
  17771. } else {
  17772. v := rv.Interface().([]uint32)
  17773. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, f.d)
  17774. }
  17775. }
  17776. func (f fastpathT) DecSliceUint32X(vp *[]uint32, checkNil bool, d *Decoder) {
  17777. v, changed := f.DecSliceUint32V(*vp, checkNil, true, d)
  17778. if changed {
  17779. *vp = v
  17780. }
  17781. }
  17782. func (_ fastpathT) DecSliceUint32V(v []uint32, checkNil bool, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  17783. dd := d.d
  17784. if checkNil && dd.TryDecodeAsNil() {
  17785. if v != nil {
  17786. changed = true
  17787. }
  17788. return nil, changed
  17789. }
  17790. slh, containerLenS := d.decSliceHelperStart()
  17791. if containerLenS == 0 {
  17792. if canChange {
  17793. if v == nil {
  17794. v = []uint32{}
  17795. } else if len(v) != 0 {
  17796. v = v[:0]
  17797. }
  17798. changed = true
  17799. }
  17800. slh.End()
  17801. return v, changed
  17802. }
  17803. if containerLenS > 0 {
  17804. x2read := containerLenS
  17805. var xtrunc bool
  17806. if containerLenS > cap(v) {
  17807. if canChange {
  17808. var xlen int
  17809. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17810. if xtrunc {
  17811. if xlen <= cap(v) {
  17812. v = v[:xlen]
  17813. } else {
  17814. v = make([]uint32, xlen)
  17815. }
  17816. } else {
  17817. v = make([]uint32, xlen)
  17818. }
  17819. changed = true
  17820. } else {
  17821. d.arrayCannotExpand(len(v), containerLenS)
  17822. }
  17823. x2read = len(v)
  17824. } else if containerLenS != len(v) {
  17825. if canChange {
  17826. v = v[:containerLenS]
  17827. changed = true
  17828. }
  17829. }
  17830. j := 0
  17831. for ; j < x2read; j++ {
  17832. slh.ElemContainerState(j)
  17833. v[j] = uint32(dd.DecodeUint(32))
  17834. }
  17835. if xtrunc {
  17836. for ; j < containerLenS; j++ {
  17837. v = append(v, 0)
  17838. slh.ElemContainerState(j)
  17839. v[j] = uint32(dd.DecodeUint(32))
  17840. }
  17841. } else if !canChange {
  17842. for ; j < containerLenS; j++ {
  17843. slh.ElemContainerState(j)
  17844. d.swallow()
  17845. }
  17846. }
  17847. } else {
  17848. breakFound := dd.CheckBreak()
  17849. if breakFound {
  17850. if canChange {
  17851. if v == nil {
  17852. v = []uint32{}
  17853. } else if len(v) != 0 {
  17854. v = v[:0]
  17855. }
  17856. changed = true
  17857. }
  17858. slh.End()
  17859. return v, changed
  17860. }
  17861. if cap(v) == 0 {
  17862. v = make([]uint32, 1, 4)
  17863. changed = true
  17864. }
  17865. j := 0
  17866. for ; !breakFound; j++ {
  17867. if j >= len(v) {
  17868. if canChange {
  17869. v = append(v, 0)
  17870. changed = true
  17871. } else {
  17872. d.arrayCannotExpand(len(v), j+1)
  17873. }
  17874. }
  17875. slh.ElemContainerState(j)
  17876. if j < len(v) {
  17877. v[j] = uint32(dd.DecodeUint(32))
  17878. } else {
  17879. d.swallow()
  17880. }
  17881. breakFound = dd.CheckBreak()
  17882. }
  17883. if canChange && j < len(v) {
  17884. v = v[:j]
  17885. changed = true
  17886. }
  17887. }
  17888. slh.End()
  17889. return v, changed
  17890. }
  17891. func (f *decFnInfo) fastpathDecSliceUint64R(rv reflect.Value) {
  17892. array := f.seq == seqTypeArray
  17893. if !array && rv.CanAddr() {
  17894. vp := rv.Addr().Interface().(*[]uint64)
  17895. v, changed := fastpathTV.DecSliceUint64V(*vp, fastpathCheckNilFalse, !array, f.d)
  17896. if changed {
  17897. *vp = v
  17898. }
  17899. } else {
  17900. v := rv.Interface().([]uint64)
  17901. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, f.d)
  17902. }
  17903. }
  17904. func (f fastpathT) DecSliceUint64X(vp *[]uint64, checkNil bool, d *Decoder) {
  17905. v, changed := f.DecSliceUint64V(*vp, checkNil, true, d)
  17906. if changed {
  17907. *vp = v
  17908. }
  17909. }
  17910. func (_ fastpathT) DecSliceUint64V(v []uint64, checkNil bool, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  17911. dd := d.d
  17912. if checkNil && dd.TryDecodeAsNil() {
  17913. if v != nil {
  17914. changed = true
  17915. }
  17916. return nil, changed
  17917. }
  17918. slh, containerLenS := d.decSliceHelperStart()
  17919. if containerLenS == 0 {
  17920. if canChange {
  17921. if v == nil {
  17922. v = []uint64{}
  17923. } else if len(v) != 0 {
  17924. v = v[:0]
  17925. }
  17926. changed = true
  17927. }
  17928. slh.End()
  17929. return v, changed
  17930. }
  17931. if containerLenS > 0 {
  17932. x2read := containerLenS
  17933. var xtrunc bool
  17934. if containerLenS > cap(v) {
  17935. if canChange {
  17936. var xlen int
  17937. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17938. if xtrunc {
  17939. if xlen <= cap(v) {
  17940. v = v[:xlen]
  17941. } else {
  17942. v = make([]uint64, xlen)
  17943. }
  17944. } else {
  17945. v = make([]uint64, xlen)
  17946. }
  17947. changed = true
  17948. } else {
  17949. d.arrayCannotExpand(len(v), containerLenS)
  17950. }
  17951. x2read = len(v)
  17952. } else if containerLenS != len(v) {
  17953. if canChange {
  17954. v = v[:containerLenS]
  17955. changed = true
  17956. }
  17957. }
  17958. j := 0
  17959. for ; j < x2read; j++ {
  17960. slh.ElemContainerState(j)
  17961. v[j] = dd.DecodeUint(64)
  17962. }
  17963. if xtrunc {
  17964. for ; j < containerLenS; j++ {
  17965. v = append(v, 0)
  17966. slh.ElemContainerState(j)
  17967. v[j] = dd.DecodeUint(64)
  17968. }
  17969. } else if !canChange {
  17970. for ; j < containerLenS; j++ {
  17971. slh.ElemContainerState(j)
  17972. d.swallow()
  17973. }
  17974. }
  17975. } else {
  17976. breakFound := dd.CheckBreak()
  17977. if breakFound {
  17978. if canChange {
  17979. if v == nil {
  17980. v = []uint64{}
  17981. } else if len(v) != 0 {
  17982. v = v[:0]
  17983. }
  17984. changed = true
  17985. }
  17986. slh.End()
  17987. return v, changed
  17988. }
  17989. if cap(v) == 0 {
  17990. v = make([]uint64, 1, 4)
  17991. changed = true
  17992. }
  17993. j := 0
  17994. for ; !breakFound; j++ {
  17995. if j >= len(v) {
  17996. if canChange {
  17997. v = append(v, 0)
  17998. changed = true
  17999. } else {
  18000. d.arrayCannotExpand(len(v), j+1)
  18001. }
  18002. }
  18003. slh.ElemContainerState(j)
  18004. if j < len(v) {
  18005. v[j] = dd.DecodeUint(64)
  18006. } else {
  18007. d.swallow()
  18008. }
  18009. breakFound = dd.CheckBreak()
  18010. }
  18011. if canChange && j < len(v) {
  18012. v = v[:j]
  18013. changed = true
  18014. }
  18015. }
  18016. slh.End()
  18017. return v, changed
  18018. }
  18019. func (f *decFnInfo) fastpathDecSliceUintptrR(rv reflect.Value) {
  18020. array := f.seq == seqTypeArray
  18021. if !array && rv.CanAddr() {
  18022. vp := rv.Addr().Interface().(*[]uintptr)
  18023. v, changed := fastpathTV.DecSliceUintptrV(*vp, fastpathCheckNilFalse, !array, f.d)
  18024. if changed {
  18025. *vp = v
  18026. }
  18027. } else {
  18028. v := rv.Interface().([]uintptr)
  18029. fastpathTV.DecSliceUintptrV(v, fastpathCheckNilFalse, false, f.d)
  18030. }
  18031. }
  18032. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, checkNil bool, d *Decoder) {
  18033. v, changed := f.DecSliceUintptrV(*vp, checkNil, true, d)
  18034. if changed {
  18035. *vp = v
  18036. }
  18037. }
  18038. func (_ fastpathT) DecSliceUintptrV(v []uintptr, checkNil bool, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  18039. dd := d.d
  18040. if checkNil && dd.TryDecodeAsNil() {
  18041. if v != nil {
  18042. changed = true
  18043. }
  18044. return nil, changed
  18045. }
  18046. slh, containerLenS := d.decSliceHelperStart()
  18047. if containerLenS == 0 {
  18048. if canChange {
  18049. if v == nil {
  18050. v = []uintptr{}
  18051. } else if len(v) != 0 {
  18052. v = v[:0]
  18053. }
  18054. changed = true
  18055. }
  18056. slh.End()
  18057. return v, changed
  18058. }
  18059. if containerLenS > 0 {
  18060. x2read := containerLenS
  18061. var xtrunc bool
  18062. if containerLenS > cap(v) {
  18063. if canChange {
  18064. var xlen int
  18065. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18066. if xtrunc {
  18067. if xlen <= cap(v) {
  18068. v = v[:xlen]
  18069. } else {
  18070. v = make([]uintptr, xlen)
  18071. }
  18072. } else {
  18073. v = make([]uintptr, xlen)
  18074. }
  18075. changed = true
  18076. } else {
  18077. d.arrayCannotExpand(len(v), containerLenS)
  18078. }
  18079. x2read = len(v)
  18080. } else if containerLenS != len(v) {
  18081. if canChange {
  18082. v = v[:containerLenS]
  18083. changed = true
  18084. }
  18085. }
  18086. j := 0
  18087. for ; j < x2read; j++ {
  18088. slh.ElemContainerState(j)
  18089. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  18090. }
  18091. if xtrunc {
  18092. for ; j < containerLenS; j++ {
  18093. v = append(v, 0)
  18094. slh.ElemContainerState(j)
  18095. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  18096. }
  18097. } else if !canChange {
  18098. for ; j < containerLenS; j++ {
  18099. slh.ElemContainerState(j)
  18100. d.swallow()
  18101. }
  18102. }
  18103. } else {
  18104. breakFound := dd.CheckBreak()
  18105. if breakFound {
  18106. if canChange {
  18107. if v == nil {
  18108. v = []uintptr{}
  18109. } else if len(v) != 0 {
  18110. v = v[:0]
  18111. }
  18112. changed = true
  18113. }
  18114. slh.End()
  18115. return v, changed
  18116. }
  18117. if cap(v) == 0 {
  18118. v = make([]uintptr, 1, 4)
  18119. changed = true
  18120. }
  18121. j := 0
  18122. for ; !breakFound; j++ {
  18123. if j >= len(v) {
  18124. if canChange {
  18125. v = append(v, 0)
  18126. changed = true
  18127. } else {
  18128. d.arrayCannotExpand(len(v), j+1)
  18129. }
  18130. }
  18131. slh.ElemContainerState(j)
  18132. if j < len(v) {
  18133. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  18134. } else {
  18135. d.swallow()
  18136. }
  18137. breakFound = dd.CheckBreak()
  18138. }
  18139. if canChange && j < len(v) {
  18140. v = v[:j]
  18141. changed = true
  18142. }
  18143. }
  18144. slh.End()
  18145. return v, changed
  18146. }
  18147. func (f *decFnInfo) fastpathDecSliceIntR(rv reflect.Value) {
  18148. array := f.seq == seqTypeArray
  18149. if !array && rv.CanAddr() {
  18150. vp := rv.Addr().Interface().(*[]int)
  18151. v, changed := fastpathTV.DecSliceIntV(*vp, fastpathCheckNilFalse, !array, f.d)
  18152. if changed {
  18153. *vp = v
  18154. }
  18155. } else {
  18156. v := rv.Interface().([]int)
  18157. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, f.d)
  18158. }
  18159. }
  18160. func (f fastpathT) DecSliceIntX(vp *[]int, checkNil bool, d *Decoder) {
  18161. v, changed := f.DecSliceIntV(*vp, checkNil, true, d)
  18162. if changed {
  18163. *vp = v
  18164. }
  18165. }
  18166. func (_ fastpathT) DecSliceIntV(v []int, checkNil bool, canChange bool, d *Decoder) (_ []int, changed bool) {
  18167. dd := d.d
  18168. if checkNil && dd.TryDecodeAsNil() {
  18169. if v != nil {
  18170. changed = true
  18171. }
  18172. return nil, changed
  18173. }
  18174. slh, containerLenS := d.decSliceHelperStart()
  18175. if containerLenS == 0 {
  18176. if canChange {
  18177. if v == nil {
  18178. v = []int{}
  18179. } else if len(v) != 0 {
  18180. v = v[:0]
  18181. }
  18182. changed = true
  18183. }
  18184. slh.End()
  18185. return v, changed
  18186. }
  18187. if containerLenS > 0 {
  18188. x2read := containerLenS
  18189. var xtrunc bool
  18190. if containerLenS > cap(v) {
  18191. if canChange {
  18192. var xlen int
  18193. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18194. if xtrunc {
  18195. if xlen <= cap(v) {
  18196. v = v[:xlen]
  18197. } else {
  18198. v = make([]int, xlen)
  18199. }
  18200. } else {
  18201. v = make([]int, xlen)
  18202. }
  18203. changed = true
  18204. } else {
  18205. d.arrayCannotExpand(len(v), containerLenS)
  18206. }
  18207. x2read = len(v)
  18208. } else if containerLenS != len(v) {
  18209. if canChange {
  18210. v = v[:containerLenS]
  18211. changed = true
  18212. }
  18213. }
  18214. j := 0
  18215. for ; j < x2read; j++ {
  18216. slh.ElemContainerState(j)
  18217. v[j] = int(dd.DecodeInt(intBitsize))
  18218. }
  18219. if xtrunc {
  18220. for ; j < containerLenS; j++ {
  18221. v = append(v, 0)
  18222. slh.ElemContainerState(j)
  18223. v[j] = int(dd.DecodeInt(intBitsize))
  18224. }
  18225. } else if !canChange {
  18226. for ; j < containerLenS; j++ {
  18227. slh.ElemContainerState(j)
  18228. d.swallow()
  18229. }
  18230. }
  18231. } else {
  18232. breakFound := dd.CheckBreak()
  18233. if breakFound {
  18234. if canChange {
  18235. if v == nil {
  18236. v = []int{}
  18237. } else if len(v) != 0 {
  18238. v = v[:0]
  18239. }
  18240. changed = true
  18241. }
  18242. slh.End()
  18243. return v, changed
  18244. }
  18245. if cap(v) == 0 {
  18246. v = make([]int, 1, 4)
  18247. changed = true
  18248. }
  18249. j := 0
  18250. for ; !breakFound; j++ {
  18251. if j >= len(v) {
  18252. if canChange {
  18253. v = append(v, 0)
  18254. changed = true
  18255. } else {
  18256. d.arrayCannotExpand(len(v), j+1)
  18257. }
  18258. }
  18259. slh.ElemContainerState(j)
  18260. if j < len(v) {
  18261. v[j] = int(dd.DecodeInt(intBitsize))
  18262. } else {
  18263. d.swallow()
  18264. }
  18265. breakFound = dd.CheckBreak()
  18266. }
  18267. if canChange && j < len(v) {
  18268. v = v[:j]
  18269. changed = true
  18270. }
  18271. }
  18272. slh.End()
  18273. return v, changed
  18274. }
  18275. func (f *decFnInfo) fastpathDecSliceInt8R(rv reflect.Value) {
  18276. array := f.seq == seqTypeArray
  18277. if !array && rv.CanAddr() {
  18278. vp := rv.Addr().Interface().(*[]int8)
  18279. v, changed := fastpathTV.DecSliceInt8V(*vp, fastpathCheckNilFalse, !array, f.d)
  18280. if changed {
  18281. *vp = v
  18282. }
  18283. } else {
  18284. v := rv.Interface().([]int8)
  18285. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, f.d)
  18286. }
  18287. }
  18288. func (f fastpathT) DecSliceInt8X(vp *[]int8, checkNil bool, d *Decoder) {
  18289. v, changed := f.DecSliceInt8V(*vp, checkNil, true, d)
  18290. if changed {
  18291. *vp = v
  18292. }
  18293. }
  18294. func (_ fastpathT) DecSliceInt8V(v []int8, checkNil bool, canChange bool, d *Decoder) (_ []int8, changed bool) {
  18295. dd := d.d
  18296. if checkNil && dd.TryDecodeAsNil() {
  18297. if v != nil {
  18298. changed = true
  18299. }
  18300. return nil, changed
  18301. }
  18302. slh, containerLenS := d.decSliceHelperStart()
  18303. if containerLenS == 0 {
  18304. if canChange {
  18305. if v == nil {
  18306. v = []int8{}
  18307. } else if len(v) != 0 {
  18308. v = v[:0]
  18309. }
  18310. changed = true
  18311. }
  18312. slh.End()
  18313. return v, changed
  18314. }
  18315. if containerLenS > 0 {
  18316. x2read := containerLenS
  18317. var xtrunc bool
  18318. if containerLenS > cap(v) {
  18319. if canChange {
  18320. var xlen int
  18321. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18322. if xtrunc {
  18323. if xlen <= cap(v) {
  18324. v = v[:xlen]
  18325. } else {
  18326. v = make([]int8, xlen)
  18327. }
  18328. } else {
  18329. v = make([]int8, xlen)
  18330. }
  18331. changed = true
  18332. } else {
  18333. d.arrayCannotExpand(len(v), containerLenS)
  18334. }
  18335. x2read = len(v)
  18336. } else if containerLenS != len(v) {
  18337. if canChange {
  18338. v = v[:containerLenS]
  18339. changed = true
  18340. }
  18341. }
  18342. j := 0
  18343. for ; j < x2read; j++ {
  18344. slh.ElemContainerState(j)
  18345. v[j] = int8(dd.DecodeInt(8))
  18346. }
  18347. if xtrunc {
  18348. for ; j < containerLenS; j++ {
  18349. v = append(v, 0)
  18350. slh.ElemContainerState(j)
  18351. v[j] = int8(dd.DecodeInt(8))
  18352. }
  18353. } else if !canChange {
  18354. for ; j < containerLenS; j++ {
  18355. slh.ElemContainerState(j)
  18356. d.swallow()
  18357. }
  18358. }
  18359. } else {
  18360. breakFound := dd.CheckBreak()
  18361. if breakFound {
  18362. if canChange {
  18363. if v == nil {
  18364. v = []int8{}
  18365. } else if len(v) != 0 {
  18366. v = v[:0]
  18367. }
  18368. changed = true
  18369. }
  18370. slh.End()
  18371. return v, changed
  18372. }
  18373. if cap(v) == 0 {
  18374. v = make([]int8, 1, 4)
  18375. changed = true
  18376. }
  18377. j := 0
  18378. for ; !breakFound; j++ {
  18379. if j >= len(v) {
  18380. if canChange {
  18381. v = append(v, 0)
  18382. changed = true
  18383. } else {
  18384. d.arrayCannotExpand(len(v), j+1)
  18385. }
  18386. }
  18387. slh.ElemContainerState(j)
  18388. if j < len(v) {
  18389. v[j] = int8(dd.DecodeInt(8))
  18390. } else {
  18391. d.swallow()
  18392. }
  18393. breakFound = dd.CheckBreak()
  18394. }
  18395. if canChange && j < len(v) {
  18396. v = v[:j]
  18397. changed = true
  18398. }
  18399. }
  18400. slh.End()
  18401. return v, changed
  18402. }
  18403. func (f *decFnInfo) fastpathDecSliceInt16R(rv reflect.Value) {
  18404. array := f.seq == seqTypeArray
  18405. if !array && rv.CanAddr() {
  18406. vp := rv.Addr().Interface().(*[]int16)
  18407. v, changed := fastpathTV.DecSliceInt16V(*vp, fastpathCheckNilFalse, !array, f.d)
  18408. if changed {
  18409. *vp = v
  18410. }
  18411. } else {
  18412. v := rv.Interface().([]int16)
  18413. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, f.d)
  18414. }
  18415. }
  18416. func (f fastpathT) DecSliceInt16X(vp *[]int16, checkNil bool, d *Decoder) {
  18417. v, changed := f.DecSliceInt16V(*vp, checkNil, true, d)
  18418. if changed {
  18419. *vp = v
  18420. }
  18421. }
  18422. func (_ fastpathT) DecSliceInt16V(v []int16, checkNil bool, canChange bool, d *Decoder) (_ []int16, changed bool) {
  18423. dd := d.d
  18424. if checkNil && dd.TryDecodeAsNil() {
  18425. if v != nil {
  18426. changed = true
  18427. }
  18428. return nil, changed
  18429. }
  18430. slh, containerLenS := d.decSliceHelperStart()
  18431. if containerLenS == 0 {
  18432. if canChange {
  18433. if v == nil {
  18434. v = []int16{}
  18435. } else if len(v) != 0 {
  18436. v = v[:0]
  18437. }
  18438. changed = true
  18439. }
  18440. slh.End()
  18441. return v, changed
  18442. }
  18443. if containerLenS > 0 {
  18444. x2read := containerLenS
  18445. var xtrunc bool
  18446. if containerLenS > cap(v) {
  18447. if canChange {
  18448. var xlen int
  18449. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18450. if xtrunc {
  18451. if xlen <= cap(v) {
  18452. v = v[:xlen]
  18453. } else {
  18454. v = make([]int16, xlen)
  18455. }
  18456. } else {
  18457. v = make([]int16, xlen)
  18458. }
  18459. changed = true
  18460. } else {
  18461. d.arrayCannotExpand(len(v), containerLenS)
  18462. }
  18463. x2read = len(v)
  18464. } else if containerLenS != len(v) {
  18465. if canChange {
  18466. v = v[:containerLenS]
  18467. changed = true
  18468. }
  18469. }
  18470. j := 0
  18471. for ; j < x2read; j++ {
  18472. slh.ElemContainerState(j)
  18473. v[j] = int16(dd.DecodeInt(16))
  18474. }
  18475. if xtrunc {
  18476. for ; j < containerLenS; j++ {
  18477. v = append(v, 0)
  18478. slh.ElemContainerState(j)
  18479. v[j] = int16(dd.DecodeInt(16))
  18480. }
  18481. } else if !canChange {
  18482. for ; j < containerLenS; j++ {
  18483. slh.ElemContainerState(j)
  18484. d.swallow()
  18485. }
  18486. }
  18487. } else {
  18488. breakFound := dd.CheckBreak()
  18489. if breakFound {
  18490. if canChange {
  18491. if v == nil {
  18492. v = []int16{}
  18493. } else if len(v) != 0 {
  18494. v = v[:0]
  18495. }
  18496. changed = true
  18497. }
  18498. slh.End()
  18499. return v, changed
  18500. }
  18501. if cap(v) == 0 {
  18502. v = make([]int16, 1, 4)
  18503. changed = true
  18504. }
  18505. j := 0
  18506. for ; !breakFound; j++ {
  18507. if j >= len(v) {
  18508. if canChange {
  18509. v = append(v, 0)
  18510. changed = true
  18511. } else {
  18512. d.arrayCannotExpand(len(v), j+1)
  18513. }
  18514. }
  18515. slh.ElemContainerState(j)
  18516. if j < len(v) {
  18517. v[j] = int16(dd.DecodeInt(16))
  18518. } else {
  18519. d.swallow()
  18520. }
  18521. breakFound = dd.CheckBreak()
  18522. }
  18523. if canChange && j < len(v) {
  18524. v = v[:j]
  18525. changed = true
  18526. }
  18527. }
  18528. slh.End()
  18529. return v, changed
  18530. }
  18531. func (f *decFnInfo) fastpathDecSliceInt32R(rv reflect.Value) {
  18532. array := f.seq == seqTypeArray
  18533. if !array && rv.CanAddr() {
  18534. vp := rv.Addr().Interface().(*[]int32)
  18535. v, changed := fastpathTV.DecSliceInt32V(*vp, fastpathCheckNilFalse, !array, f.d)
  18536. if changed {
  18537. *vp = v
  18538. }
  18539. } else {
  18540. v := rv.Interface().([]int32)
  18541. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, f.d)
  18542. }
  18543. }
  18544. func (f fastpathT) DecSliceInt32X(vp *[]int32, checkNil bool, d *Decoder) {
  18545. v, changed := f.DecSliceInt32V(*vp, checkNil, true, d)
  18546. if changed {
  18547. *vp = v
  18548. }
  18549. }
  18550. func (_ fastpathT) DecSliceInt32V(v []int32, checkNil bool, canChange bool, d *Decoder) (_ []int32, changed bool) {
  18551. dd := d.d
  18552. if checkNil && dd.TryDecodeAsNil() {
  18553. if v != nil {
  18554. changed = true
  18555. }
  18556. return nil, changed
  18557. }
  18558. slh, containerLenS := d.decSliceHelperStart()
  18559. if containerLenS == 0 {
  18560. if canChange {
  18561. if v == nil {
  18562. v = []int32{}
  18563. } else if len(v) != 0 {
  18564. v = v[:0]
  18565. }
  18566. changed = true
  18567. }
  18568. slh.End()
  18569. return v, changed
  18570. }
  18571. if containerLenS > 0 {
  18572. x2read := containerLenS
  18573. var xtrunc bool
  18574. if containerLenS > cap(v) {
  18575. if canChange {
  18576. var xlen int
  18577. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18578. if xtrunc {
  18579. if xlen <= cap(v) {
  18580. v = v[:xlen]
  18581. } else {
  18582. v = make([]int32, xlen)
  18583. }
  18584. } else {
  18585. v = make([]int32, xlen)
  18586. }
  18587. changed = true
  18588. } else {
  18589. d.arrayCannotExpand(len(v), containerLenS)
  18590. }
  18591. x2read = len(v)
  18592. } else if containerLenS != len(v) {
  18593. if canChange {
  18594. v = v[:containerLenS]
  18595. changed = true
  18596. }
  18597. }
  18598. j := 0
  18599. for ; j < x2read; j++ {
  18600. slh.ElemContainerState(j)
  18601. v[j] = int32(dd.DecodeInt(32))
  18602. }
  18603. if xtrunc {
  18604. for ; j < containerLenS; j++ {
  18605. v = append(v, 0)
  18606. slh.ElemContainerState(j)
  18607. v[j] = int32(dd.DecodeInt(32))
  18608. }
  18609. } else if !canChange {
  18610. for ; j < containerLenS; j++ {
  18611. slh.ElemContainerState(j)
  18612. d.swallow()
  18613. }
  18614. }
  18615. } else {
  18616. breakFound := dd.CheckBreak()
  18617. if breakFound {
  18618. if canChange {
  18619. if v == nil {
  18620. v = []int32{}
  18621. } else if len(v) != 0 {
  18622. v = v[:0]
  18623. }
  18624. changed = true
  18625. }
  18626. slh.End()
  18627. return v, changed
  18628. }
  18629. if cap(v) == 0 {
  18630. v = make([]int32, 1, 4)
  18631. changed = true
  18632. }
  18633. j := 0
  18634. for ; !breakFound; j++ {
  18635. if j >= len(v) {
  18636. if canChange {
  18637. v = append(v, 0)
  18638. changed = true
  18639. } else {
  18640. d.arrayCannotExpand(len(v), j+1)
  18641. }
  18642. }
  18643. slh.ElemContainerState(j)
  18644. if j < len(v) {
  18645. v[j] = int32(dd.DecodeInt(32))
  18646. } else {
  18647. d.swallow()
  18648. }
  18649. breakFound = dd.CheckBreak()
  18650. }
  18651. if canChange && j < len(v) {
  18652. v = v[:j]
  18653. changed = true
  18654. }
  18655. }
  18656. slh.End()
  18657. return v, changed
  18658. }
  18659. func (f *decFnInfo) fastpathDecSliceInt64R(rv reflect.Value) {
  18660. array := f.seq == seqTypeArray
  18661. if !array && rv.CanAddr() {
  18662. vp := rv.Addr().Interface().(*[]int64)
  18663. v, changed := fastpathTV.DecSliceInt64V(*vp, fastpathCheckNilFalse, !array, f.d)
  18664. if changed {
  18665. *vp = v
  18666. }
  18667. } else {
  18668. v := rv.Interface().([]int64)
  18669. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, f.d)
  18670. }
  18671. }
  18672. func (f fastpathT) DecSliceInt64X(vp *[]int64, checkNil bool, d *Decoder) {
  18673. v, changed := f.DecSliceInt64V(*vp, checkNil, true, d)
  18674. if changed {
  18675. *vp = v
  18676. }
  18677. }
  18678. func (_ fastpathT) DecSliceInt64V(v []int64, checkNil bool, canChange bool, d *Decoder) (_ []int64, changed bool) {
  18679. dd := d.d
  18680. if checkNil && dd.TryDecodeAsNil() {
  18681. if v != nil {
  18682. changed = true
  18683. }
  18684. return nil, changed
  18685. }
  18686. slh, containerLenS := d.decSliceHelperStart()
  18687. if containerLenS == 0 {
  18688. if canChange {
  18689. if v == nil {
  18690. v = []int64{}
  18691. } else if len(v) != 0 {
  18692. v = v[:0]
  18693. }
  18694. changed = true
  18695. }
  18696. slh.End()
  18697. return v, changed
  18698. }
  18699. if containerLenS > 0 {
  18700. x2read := containerLenS
  18701. var xtrunc bool
  18702. if containerLenS > cap(v) {
  18703. if canChange {
  18704. var xlen int
  18705. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18706. if xtrunc {
  18707. if xlen <= cap(v) {
  18708. v = v[:xlen]
  18709. } else {
  18710. v = make([]int64, xlen)
  18711. }
  18712. } else {
  18713. v = make([]int64, xlen)
  18714. }
  18715. changed = true
  18716. } else {
  18717. d.arrayCannotExpand(len(v), containerLenS)
  18718. }
  18719. x2read = len(v)
  18720. } else if containerLenS != len(v) {
  18721. if canChange {
  18722. v = v[:containerLenS]
  18723. changed = true
  18724. }
  18725. }
  18726. j := 0
  18727. for ; j < x2read; j++ {
  18728. slh.ElemContainerState(j)
  18729. v[j] = dd.DecodeInt(64)
  18730. }
  18731. if xtrunc {
  18732. for ; j < containerLenS; j++ {
  18733. v = append(v, 0)
  18734. slh.ElemContainerState(j)
  18735. v[j] = dd.DecodeInt(64)
  18736. }
  18737. } else if !canChange {
  18738. for ; j < containerLenS; j++ {
  18739. slh.ElemContainerState(j)
  18740. d.swallow()
  18741. }
  18742. }
  18743. } else {
  18744. breakFound := dd.CheckBreak()
  18745. if breakFound {
  18746. if canChange {
  18747. if v == nil {
  18748. v = []int64{}
  18749. } else if len(v) != 0 {
  18750. v = v[:0]
  18751. }
  18752. changed = true
  18753. }
  18754. slh.End()
  18755. return v, changed
  18756. }
  18757. if cap(v) == 0 {
  18758. v = make([]int64, 1, 4)
  18759. changed = true
  18760. }
  18761. j := 0
  18762. for ; !breakFound; j++ {
  18763. if j >= len(v) {
  18764. if canChange {
  18765. v = append(v, 0)
  18766. changed = true
  18767. } else {
  18768. d.arrayCannotExpand(len(v), j+1)
  18769. }
  18770. }
  18771. slh.ElemContainerState(j)
  18772. if j < len(v) {
  18773. v[j] = dd.DecodeInt(64)
  18774. } else {
  18775. d.swallow()
  18776. }
  18777. breakFound = dd.CheckBreak()
  18778. }
  18779. if canChange && j < len(v) {
  18780. v = v[:j]
  18781. changed = true
  18782. }
  18783. }
  18784. slh.End()
  18785. return v, changed
  18786. }
  18787. func (f *decFnInfo) fastpathDecSliceBoolR(rv reflect.Value) {
  18788. array := f.seq == seqTypeArray
  18789. if !array && rv.CanAddr() {
  18790. vp := rv.Addr().Interface().(*[]bool)
  18791. v, changed := fastpathTV.DecSliceBoolV(*vp, fastpathCheckNilFalse, !array, f.d)
  18792. if changed {
  18793. *vp = v
  18794. }
  18795. } else {
  18796. v := rv.Interface().([]bool)
  18797. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, f.d)
  18798. }
  18799. }
  18800. func (f fastpathT) DecSliceBoolX(vp *[]bool, checkNil bool, d *Decoder) {
  18801. v, changed := f.DecSliceBoolV(*vp, checkNil, true, d)
  18802. if changed {
  18803. *vp = v
  18804. }
  18805. }
  18806. func (_ fastpathT) DecSliceBoolV(v []bool, checkNil bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  18807. dd := d.d
  18808. if checkNil && dd.TryDecodeAsNil() {
  18809. if v != nil {
  18810. changed = true
  18811. }
  18812. return nil, changed
  18813. }
  18814. slh, containerLenS := d.decSliceHelperStart()
  18815. if containerLenS == 0 {
  18816. if canChange {
  18817. if v == nil {
  18818. v = []bool{}
  18819. } else if len(v) != 0 {
  18820. v = v[:0]
  18821. }
  18822. changed = true
  18823. }
  18824. slh.End()
  18825. return v, changed
  18826. }
  18827. if containerLenS > 0 {
  18828. x2read := containerLenS
  18829. var xtrunc bool
  18830. if containerLenS > cap(v) {
  18831. if canChange {
  18832. var xlen int
  18833. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18834. if xtrunc {
  18835. if xlen <= cap(v) {
  18836. v = v[:xlen]
  18837. } else {
  18838. v = make([]bool, xlen)
  18839. }
  18840. } else {
  18841. v = make([]bool, xlen)
  18842. }
  18843. changed = true
  18844. } else {
  18845. d.arrayCannotExpand(len(v), containerLenS)
  18846. }
  18847. x2read = len(v)
  18848. } else if containerLenS != len(v) {
  18849. if canChange {
  18850. v = v[:containerLenS]
  18851. changed = true
  18852. }
  18853. }
  18854. j := 0
  18855. for ; j < x2read; j++ {
  18856. slh.ElemContainerState(j)
  18857. v[j] = dd.DecodeBool()
  18858. }
  18859. if xtrunc {
  18860. for ; j < containerLenS; j++ {
  18861. v = append(v, false)
  18862. slh.ElemContainerState(j)
  18863. v[j] = dd.DecodeBool()
  18864. }
  18865. } else if !canChange {
  18866. for ; j < containerLenS; j++ {
  18867. slh.ElemContainerState(j)
  18868. d.swallow()
  18869. }
  18870. }
  18871. } else {
  18872. breakFound := dd.CheckBreak()
  18873. if breakFound {
  18874. if canChange {
  18875. if v == nil {
  18876. v = []bool{}
  18877. } else if len(v) != 0 {
  18878. v = v[:0]
  18879. }
  18880. changed = true
  18881. }
  18882. slh.End()
  18883. return v, changed
  18884. }
  18885. if cap(v) == 0 {
  18886. v = make([]bool, 1, 4)
  18887. changed = true
  18888. }
  18889. j := 0
  18890. for ; !breakFound; j++ {
  18891. if j >= len(v) {
  18892. if canChange {
  18893. v = append(v, false)
  18894. changed = true
  18895. } else {
  18896. d.arrayCannotExpand(len(v), j+1)
  18897. }
  18898. }
  18899. slh.ElemContainerState(j)
  18900. if j < len(v) {
  18901. v[j] = dd.DecodeBool()
  18902. } else {
  18903. d.swallow()
  18904. }
  18905. breakFound = dd.CheckBreak()
  18906. }
  18907. if canChange && j < len(v) {
  18908. v = v[:j]
  18909. changed = true
  18910. }
  18911. }
  18912. slh.End()
  18913. return v, changed
  18914. }
  18915. func (f *decFnInfo) fastpathDecMapIntfIntfR(rv reflect.Value) {
  18916. if rv.CanAddr() {
  18917. vp := rv.Addr().Interface().(*map[interface{}]interface{})
  18918. v, changed := fastpathTV.DecMapIntfIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  18919. if changed {
  18920. *vp = v
  18921. }
  18922. } else {
  18923. v := rv.Interface().(map[interface{}]interface{})
  18924. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, f.d)
  18925. }
  18926. }
  18927. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, checkNil bool, d *Decoder) {
  18928. v, changed := f.DecMapIntfIntfV(*vp, checkNil, true, d)
  18929. if changed {
  18930. *vp = v
  18931. }
  18932. }
  18933. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, canChange bool,
  18934. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  18935. dd := d.d
  18936. cr := d.cr
  18937. if checkNil && dd.TryDecodeAsNil() {
  18938. if v != nil {
  18939. changed = true
  18940. }
  18941. return nil, changed
  18942. }
  18943. containerLen := dd.ReadMapStart()
  18944. if canChange && v == nil {
  18945. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18946. v = make(map[interface{}]interface{}, xlen)
  18947. changed = true
  18948. }
  18949. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  18950. var mk interface{}
  18951. var mv interface{}
  18952. if containerLen > 0 {
  18953. for j := 0; j < containerLen; j++ {
  18954. if cr != nil {
  18955. cr.sendContainerState(containerMapKey)
  18956. }
  18957. mk = nil
  18958. d.decode(&mk)
  18959. if bv, bok := mk.([]byte); bok {
  18960. mk = d.string(bv)
  18961. }
  18962. if cr != nil {
  18963. cr.sendContainerState(containerMapValue)
  18964. }
  18965. if mapGet {
  18966. mv = v[mk]
  18967. } else {
  18968. mv = nil
  18969. }
  18970. d.decode(&mv)
  18971. if v != nil {
  18972. v[mk] = mv
  18973. }
  18974. }
  18975. } else if containerLen < 0 {
  18976. for j := 0; !dd.CheckBreak(); j++ {
  18977. if cr != nil {
  18978. cr.sendContainerState(containerMapKey)
  18979. }
  18980. mk = nil
  18981. d.decode(&mk)
  18982. if bv, bok := mk.([]byte); bok {
  18983. mk = d.string(bv)
  18984. }
  18985. if cr != nil {
  18986. cr.sendContainerState(containerMapValue)
  18987. }
  18988. if mapGet {
  18989. mv = v[mk]
  18990. } else {
  18991. mv = nil
  18992. }
  18993. d.decode(&mv)
  18994. if v != nil {
  18995. v[mk] = mv
  18996. }
  18997. }
  18998. }
  18999. if cr != nil {
  19000. cr.sendContainerState(containerMapEnd)
  19001. }
  19002. return v, changed
  19003. }
  19004. func (f *decFnInfo) fastpathDecMapIntfStringR(rv reflect.Value) {
  19005. if rv.CanAddr() {
  19006. vp := rv.Addr().Interface().(*map[interface{}]string)
  19007. v, changed := fastpathTV.DecMapIntfStringV(*vp, fastpathCheckNilFalse, true, f.d)
  19008. if changed {
  19009. *vp = v
  19010. }
  19011. } else {
  19012. v := rv.Interface().(map[interface{}]string)
  19013. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, f.d)
  19014. }
  19015. }
  19016. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, checkNil bool, d *Decoder) {
  19017. v, changed := f.DecMapIntfStringV(*vp, checkNil, true, d)
  19018. if changed {
  19019. *vp = v
  19020. }
  19021. }
  19022. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, checkNil bool, canChange bool,
  19023. d *Decoder) (_ map[interface{}]string, changed bool) {
  19024. dd := d.d
  19025. cr := d.cr
  19026. if checkNil && dd.TryDecodeAsNil() {
  19027. if v != nil {
  19028. changed = true
  19029. }
  19030. return nil, changed
  19031. }
  19032. containerLen := dd.ReadMapStart()
  19033. if canChange && v == nil {
  19034. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  19035. v = make(map[interface{}]string, xlen)
  19036. changed = true
  19037. }
  19038. var mk interface{}
  19039. var mv string
  19040. if containerLen > 0 {
  19041. for j := 0; j < containerLen; j++ {
  19042. if cr != nil {
  19043. cr.sendContainerState(containerMapKey)
  19044. }
  19045. mk = nil
  19046. d.decode(&mk)
  19047. if bv, bok := mk.([]byte); bok {
  19048. mk = d.string(bv)
  19049. }
  19050. if cr != nil {
  19051. cr.sendContainerState(containerMapValue)
  19052. }
  19053. mv = dd.DecodeString()
  19054. if v != nil {
  19055. v[mk] = mv
  19056. }
  19057. }
  19058. } else if containerLen < 0 {
  19059. for j := 0; !dd.CheckBreak(); j++ {
  19060. if cr != nil {
  19061. cr.sendContainerState(containerMapKey)
  19062. }
  19063. mk = nil
  19064. d.decode(&mk)
  19065. if bv, bok := mk.([]byte); bok {
  19066. mk = d.string(bv)
  19067. }
  19068. if cr != nil {
  19069. cr.sendContainerState(containerMapValue)
  19070. }
  19071. mv = dd.DecodeString()
  19072. if v != nil {
  19073. v[mk] = mv
  19074. }
  19075. }
  19076. }
  19077. if cr != nil {
  19078. cr.sendContainerState(containerMapEnd)
  19079. }
  19080. return v, changed
  19081. }
  19082. func (f *decFnInfo) fastpathDecMapIntfUintR(rv reflect.Value) {
  19083. if rv.CanAddr() {
  19084. vp := rv.Addr().Interface().(*map[interface{}]uint)
  19085. v, changed := fastpathTV.DecMapIntfUintV(*vp, fastpathCheckNilFalse, true, f.d)
  19086. if changed {
  19087. *vp = v
  19088. }
  19089. } else {
  19090. v := rv.Interface().(map[interface{}]uint)
  19091. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, f.d)
  19092. }
  19093. }
  19094. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, checkNil bool, d *Decoder) {
  19095. v, changed := f.DecMapIntfUintV(*vp, checkNil, true, d)
  19096. if changed {
  19097. *vp = v
  19098. }
  19099. }
  19100. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, checkNil bool, canChange bool,
  19101. d *Decoder) (_ map[interface{}]uint, changed bool) {
  19102. dd := d.d
  19103. cr := d.cr
  19104. if checkNil && dd.TryDecodeAsNil() {
  19105. if v != nil {
  19106. changed = true
  19107. }
  19108. return nil, changed
  19109. }
  19110. containerLen := dd.ReadMapStart()
  19111. if canChange && v == nil {
  19112. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19113. v = make(map[interface{}]uint, xlen)
  19114. changed = true
  19115. }
  19116. var mk interface{}
  19117. var mv uint
  19118. if containerLen > 0 {
  19119. for j := 0; j < containerLen; j++ {
  19120. if cr != nil {
  19121. cr.sendContainerState(containerMapKey)
  19122. }
  19123. mk = nil
  19124. d.decode(&mk)
  19125. if bv, bok := mk.([]byte); bok {
  19126. mk = d.string(bv)
  19127. }
  19128. if cr != nil {
  19129. cr.sendContainerState(containerMapValue)
  19130. }
  19131. mv = uint(dd.DecodeUint(uintBitsize))
  19132. if v != nil {
  19133. v[mk] = mv
  19134. }
  19135. }
  19136. } else if containerLen < 0 {
  19137. for j := 0; !dd.CheckBreak(); j++ {
  19138. if cr != nil {
  19139. cr.sendContainerState(containerMapKey)
  19140. }
  19141. mk = nil
  19142. d.decode(&mk)
  19143. if bv, bok := mk.([]byte); bok {
  19144. mk = d.string(bv)
  19145. }
  19146. if cr != nil {
  19147. cr.sendContainerState(containerMapValue)
  19148. }
  19149. mv = uint(dd.DecodeUint(uintBitsize))
  19150. if v != nil {
  19151. v[mk] = mv
  19152. }
  19153. }
  19154. }
  19155. if cr != nil {
  19156. cr.sendContainerState(containerMapEnd)
  19157. }
  19158. return v, changed
  19159. }
  19160. func (f *decFnInfo) fastpathDecMapIntfUint8R(rv reflect.Value) {
  19161. if rv.CanAddr() {
  19162. vp := rv.Addr().Interface().(*map[interface{}]uint8)
  19163. v, changed := fastpathTV.DecMapIntfUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  19164. if changed {
  19165. *vp = v
  19166. }
  19167. } else {
  19168. v := rv.Interface().(map[interface{}]uint8)
  19169. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, f.d)
  19170. }
  19171. }
  19172. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, checkNil bool, d *Decoder) {
  19173. v, changed := f.DecMapIntfUint8V(*vp, checkNil, true, d)
  19174. if changed {
  19175. *vp = v
  19176. }
  19177. }
  19178. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, checkNil bool, canChange bool,
  19179. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  19180. dd := d.d
  19181. cr := d.cr
  19182. if checkNil && dd.TryDecodeAsNil() {
  19183. if v != nil {
  19184. changed = true
  19185. }
  19186. return nil, changed
  19187. }
  19188. containerLen := dd.ReadMapStart()
  19189. if canChange && v == nil {
  19190. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19191. v = make(map[interface{}]uint8, xlen)
  19192. changed = true
  19193. }
  19194. var mk interface{}
  19195. var mv uint8
  19196. if containerLen > 0 {
  19197. for j := 0; j < containerLen; j++ {
  19198. if cr != nil {
  19199. cr.sendContainerState(containerMapKey)
  19200. }
  19201. mk = nil
  19202. d.decode(&mk)
  19203. if bv, bok := mk.([]byte); bok {
  19204. mk = d.string(bv)
  19205. }
  19206. if cr != nil {
  19207. cr.sendContainerState(containerMapValue)
  19208. }
  19209. mv = uint8(dd.DecodeUint(8))
  19210. if v != nil {
  19211. v[mk] = mv
  19212. }
  19213. }
  19214. } else if containerLen < 0 {
  19215. for j := 0; !dd.CheckBreak(); j++ {
  19216. if cr != nil {
  19217. cr.sendContainerState(containerMapKey)
  19218. }
  19219. mk = nil
  19220. d.decode(&mk)
  19221. if bv, bok := mk.([]byte); bok {
  19222. mk = d.string(bv)
  19223. }
  19224. if cr != nil {
  19225. cr.sendContainerState(containerMapValue)
  19226. }
  19227. mv = uint8(dd.DecodeUint(8))
  19228. if v != nil {
  19229. v[mk] = mv
  19230. }
  19231. }
  19232. }
  19233. if cr != nil {
  19234. cr.sendContainerState(containerMapEnd)
  19235. }
  19236. return v, changed
  19237. }
  19238. func (f *decFnInfo) fastpathDecMapIntfUint16R(rv reflect.Value) {
  19239. if rv.CanAddr() {
  19240. vp := rv.Addr().Interface().(*map[interface{}]uint16)
  19241. v, changed := fastpathTV.DecMapIntfUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  19242. if changed {
  19243. *vp = v
  19244. }
  19245. } else {
  19246. v := rv.Interface().(map[interface{}]uint16)
  19247. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, f.d)
  19248. }
  19249. }
  19250. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, checkNil bool, d *Decoder) {
  19251. v, changed := f.DecMapIntfUint16V(*vp, checkNil, true, d)
  19252. if changed {
  19253. *vp = v
  19254. }
  19255. }
  19256. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, checkNil bool, canChange bool,
  19257. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  19258. dd := d.d
  19259. cr := d.cr
  19260. if checkNil && dd.TryDecodeAsNil() {
  19261. if v != nil {
  19262. changed = true
  19263. }
  19264. return nil, changed
  19265. }
  19266. containerLen := dd.ReadMapStart()
  19267. if canChange && v == nil {
  19268. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19269. v = make(map[interface{}]uint16, xlen)
  19270. changed = true
  19271. }
  19272. var mk interface{}
  19273. var mv uint16
  19274. if containerLen > 0 {
  19275. for j := 0; j < containerLen; j++ {
  19276. if cr != nil {
  19277. cr.sendContainerState(containerMapKey)
  19278. }
  19279. mk = nil
  19280. d.decode(&mk)
  19281. if bv, bok := mk.([]byte); bok {
  19282. mk = d.string(bv)
  19283. }
  19284. if cr != nil {
  19285. cr.sendContainerState(containerMapValue)
  19286. }
  19287. mv = uint16(dd.DecodeUint(16))
  19288. if v != nil {
  19289. v[mk] = mv
  19290. }
  19291. }
  19292. } else if containerLen < 0 {
  19293. for j := 0; !dd.CheckBreak(); j++ {
  19294. if cr != nil {
  19295. cr.sendContainerState(containerMapKey)
  19296. }
  19297. mk = nil
  19298. d.decode(&mk)
  19299. if bv, bok := mk.([]byte); bok {
  19300. mk = d.string(bv)
  19301. }
  19302. if cr != nil {
  19303. cr.sendContainerState(containerMapValue)
  19304. }
  19305. mv = uint16(dd.DecodeUint(16))
  19306. if v != nil {
  19307. v[mk] = mv
  19308. }
  19309. }
  19310. }
  19311. if cr != nil {
  19312. cr.sendContainerState(containerMapEnd)
  19313. }
  19314. return v, changed
  19315. }
  19316. func (f *decFnInfo) fastpathDecMapIntfUint32R(rv reflect.Value) {
  19317. if rv.CanAddr() {
  19318. vp := rv.Addr().Interface().(*map[interface{}]uint32)
  19319. v, changed := fastpathTV.DecMapIntfUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  19320. if changed {
  19321. *vp = v
  19322. }
  19323. } else {
  19324. v := rv.Interface().(map[interface{}]uint32)
  19325. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, f.d)
  19326. }
  19327. }
  19328. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, checkNil bool, d *Decoder) {
  19329. v, changed := f.DecMapIntfUint32V(*vp, checkNil, true, d)
  19330. if changed {
  19331. *vp = v
  19332. }
  19333. }
  19334. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, checkNil bool, canChange bool,
  19335. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  19336. dd := d.d
  19337. cr := d.cr
  19338. if checkNil && dd.TryDecodeAsNil() {
  19339. if v != nil {
  19340. changed = true
  19341. }
  19342. return nil, changed
  19343. }
  19344. containerLen := dd.ReadMapStart()
  19345. if canChange && v == nil {
  19346. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19347. v = make(map[interface{}]uint32, xlen)
  19348. changed = true
  19349. }
  19350. var mk interface{}
  19351. var mv uint32
  19352. if containerLen > 0 {
  19353. for j := 0; j < containerLen; j++ {
  19354. if cr != nil {
  19355. cr.sendContainerState(containerMapKey)
  19356. }
  19357. mk = nil
  19358. d.decode(&mk)
  19359. if bv, bok := mk.([]byte); bok {
  19360. mk = d.string(bv)
  19361. }
  19362. if cr != nil {
  19363. cr.sendContainerState(containerMapValue)
  19364. }
  19365. mv = uint32(dd.DecodeUint(32))
  19366. if v != nil {
  19367. v[mk] = mv
  19368. }
  19369. }
  19370. } else if containerLen < 0 {
  19371. for j := 0; !dd.CheckBreak(); j++ {
  19372. if cr != nil {
  19373. cr.sendContainerState(containerMapKey)
  19374. }
  19375. mk = nil
  19376. d.decode(&mk)
  19377. if bv, bok := mk.([]byte); bok {
  19378. mk = d.string(bv)
  19379. }
  19380. if cr != nil {
  19381. cr.sendContainerState(containerMapValue)
  19382. }
  19383. mv = uint32(dd.DecodeUint(32))
  19384. if v != nil {
  19385. v[mk] = mv
  19386. }
  19387. }
  19388. }
  19389. if cr != nil {
  19390. cr.sendContainerState(containerMapEnd)
  19391. }
  19392. return v, changed
  19393. }
  19394. func (f *decFnInfo) fastpathDecMapIntfUint64R(rv reflect.Value) {
  19395. if rv.CanAddr() {
  19396. vp := rv.Addr().Interface().(*map[interface{}]uint64)
  19397. v, changed := fastpathTV.DecMapIntfUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  19398. if changed {
  19399. *vp = v
  19400. }
  19401. } else {
  19402. v := rv.Interface().(map[interface{}]uint64)
  19403. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, f.d)
  19404. }
  19405. }
  19406. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, checkNil bool, d *Decoder) {
  19407. v, changed := f.DecMapIntfUint64V(*vp, checkNil, true, d)
  19408. if changed {
  19409. *vp = v
  19410. }
  19411. }
  19412. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, checkNil bool, canChange bool,
  19413. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  19414. dd := d.d
  19415. cr := d.cr
  19416. if checkNil && dd.TryDecodeAsNil() {
  19417. if v != nil {
  19418. changed = true
  19419. }
  19420. return nil, changed
  19421. }
  19422. containerLen := dd.ReadMapStart()
  19423. if canChange && v == nil {
  19424. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19425. v = make(map[interface{}]uint64, xlen)
  19426. changed = true
  19427. }
  19428. var mk interface{}
  19429. var mv uint64
  19430. if containerLen > 0 {
  19431. for j := 0; j < containerLen; j++ {
  19432. if cr != nil {
  19433. cr.sendContainerState(containerMapKey)
  19434. }
  19435. mk = nil
  19436. d.decode(&mk)
  19437. if bv, bok := mk.([]byte); bok {
  19438. mk = d.string(bv)
  19439. }
  19440. if cr != nil {
  19441. cr.sendContainerState(containerMapValue)
  19442. }
  19443. mv = dd.DecodeUint(64)
  19444. if v != nil {
  19445. v[mk] = mv
  19446. }
  19447. }
  19448. } else if containerLen < 0 {
  19449. for j := 0; !dd.CheckBreak(); j++ {
  19450. if cr != nil {
  19451. cr.sendContainerState(containerMapKey)
  19452. }
  19453. mk = nil
  19454. d.decode(&mk)
  19455. if bv, bok := mk.([]byte); bok {
  19456. mk = d.string(bv)
  19457. }
  19458. if cr != nil {
  19459. cr.sendContainerState(containerMapValue)
  19460. }
  19461. mv = dd.DecodeUint(64)
  19462. if v != nil {
  19463. v[mk] = mv
  19464. }
  19465. }
  19466. }
  19467. if cr != nil {
  19468. cr.sendContainerState(containerMapEnd)
  19469. }
  19470. return v, changed
  19471. }
  19472. func (f *decFnInfo) fastpathDecMapIntfUintptrR(rv reflect.Value) {
  19473. if rv.CanAddr() {
  19474. vp := rv.Addr().Interface().(*map[interface{}]uintptr)
  19475. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  19476. if changed {
  19477. *vp = v
  19478. }
  19479. } else {
  19480. v := rv.Interface().(map[interface{}]uintptr)
  19481. fastpathTV.DecMapIntfUintptrV(v, fastpathCheckNilFalse, false, f.d)
  19482. }
  19483. }
  19484. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, checkNil bool, d *Decoder) {
  19485. v, changed := f.DecMapIntfUintptrV(*vp, checkNil, true, d)
  19486. if changed {
  19487. *vp = v
  19488. }
  19489. }
  19490. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, checkNil bool, canChange bool,
  19491. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  19492. dd := d.d
  19493. cr := d.cr
  19494. if checkNil && dd.TryDecodeAsNil() {
  19495. if v != nil {
  19496. changed = true
  19497. }
  19498. return nil, changed
  19499. }
  19500. containerLen := dd.ReadMapStart()
  19501. if canChange && v == nil {
  19502. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19503. v = make(map[interface{}]uintptr, xlen)
  19504. changed = true
  19505. }
  19506. var mk interface{}
  19507. var mv uintptr
  19508. if containerLen > 0 {
  19509. for j := 0; j < containerLen; j++ {
  19510. if cr != nil {
  19511. cr.sendContainerState(containerMapKey)
  19512. }
  19513. mk = nil
  19514. d.decode(&mk)
  19515. if bv, bok := mk.([]byte); bok {
  19516. mk = d.string(bv)
  19517. }
  19518. if cr != nil {
  19519. cr.sendContainerState(containerMapValue)
  19520. }
  19521. mv = uintptr(dd.DecodeUint(uintBitsize))
  19522. if v != nil {
  19523. v[mk] = mv
  19524. }
  19525. }
  19526. } else if containerLen < 0 {
  19527. for j := 0; !dd.CheckBreak(); j++ {
  19528. if cr != nil {
  19529. cr.sendContainerState(containerMapKey)
  19530. }
  19531. mk = nil
  19532. d.decode(&mk)
  19533. if bv, bok := mk.([]byte); bok {
  19534. mk = d.string(bv)
  19535. }
  19536. if cr != nil {
  19537. cr.sendContainerState(containerMapValue)
  19538. }
  19539. mv = uintptr(dd.DecodeUint(uintBitsize))
  19540. if v != nil {
  19541. v[mk] = mv
  19542. }
  19543. }
  19544. }
  19545. if cr != nil {
  19546. cr.sendContainerState(containerMapEnd)
  19547. }
  19548. return v, changed
  19549. }
  19550. func (f *decFnInfo) fastpathDecMapIntfIntR(rv reflect.Value) {
  19551. if rv.CanAddr() {
  19552. vp := rv.Addr().Interface().(*map[interface{}]int)
  19553. v, changed := fastpathTV.DecMapIntfIntV(*vp, fastpathCheckNilFalse, true, f.d)
  19554. if changed {
  19555. *vp = v
  19556. }
  19557. } else {
  19558. v := rv.Interface().(map[interface{}]int)
  19559. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, f.d)
  19560. }
  19561. }
  19562. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, checkNil bool, d *Decoder) {
  19563. v, changed := f.DecMapIntfIntV(*vp, checkNil, true, d)
  19564. if changed {
  19565. *vp = v
  19566. }
  19567. }
  19568. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, checkNil bool, canChange bool,
  19569. d *Decoder) (_ map[interface{}]int, changed bool) {
  19570. dd := d.d
  19571. cr := d.cr
  19572. if checkNil && dd.TryDecodeAsNil() {
  19573. if v != nil {
  19574. changed = true
  19575. }
  19576. return nil, changed
  19577. }
  19578. containerLen := dd.ReadMapStart()
  19579. if canChange && v == nil {
  19580. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19581. v = make(map[interface{}]int, xlen)
  19582. changed = true
  19583. }
  19584. var mk interface{}
  19585. var mv int
  19586. if containerLen > 0 {
  19587. for j := 0; j < containerLen; j++ {
  19588. if cr != nil {
  19589. cr.sendContainerState(containerMapKey)
  19590. }
  19591. mk = nil
  19592. d.decode(&mk)
  19593. if bv, bok := mk.([]byte); bok {
  19594. mk = d.string(bv)
  19595. }
  19596. if cr != nil {
  19597. cr.sendContainerState(containerMapValue)
  19598. }
  19599. mv = int(dd.DecodeInt(intBitsize))
  19600. if v != nil {
  19601. v[mk] = mv
  19602. }
  19603. }
  19604. } else if containerLen < 0 {
  19605. for j := 0; !dd.CheckBreak(); j++ {
  19606. if cr != nil {
  19607. cr.sendContainerState(containerMapKey)
  19608. }
  19609. mk = nil
  19610. d.decode(&mk)
  19611. if bv, bok := mk.([]byte); bok {
  19612. mk = d.string(bv)
  19613. }
  19614. if cr != nil {
  19615. cr.sendContainerState(containerMapValue)
  19616. }
  19617. mv = int(dd.DecodeInt(intBitsize))
  19618. if v != nil {
  19619. v[mk] = mv
  19620. }
  19621. }
  19622. }
  19623. if cr != nil {
  19624. cr.sendContainerState(containerMapEnd)
  19625. }
  19626. return v, changed
  19627. }
  19628. func (f *decFnInfo) fastpathDecMapIntfInt8R(rv reflect.Value) {
  19629. if rv.CanAddr() {
  19630. vp := rv.Addr().Interface().(*map[interface{}]int8)
  19631. v, changed := fastpathTV.DecMapIntfInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  19632. if changed {
  19633. *vp = v
  19634. }
  19635. } else {
  19636. v := rv.Interface().(map[interface{}]int8)
  19637. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, f.d)
  19638. }
  19639. }
  19640. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, checkNil bool, d *Decoder) {
  19641. v, changed := f.DecMapIntfInt8V(*vp, checkNil, true, d)
  19642. if changed {
  19643. *vp = v
  19644. }
  19645. }
  19646. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, checkNil bool, canChange bool,
  19647. d *Decoder) (_ map[interface{}]int8, changed bool) {
  19648. dd := d.d
  19649. cr := d.cr
  19650. if checkNil && dd.TryDecodeAsNil() {
  19651. if v != nil {
  19652. changed = true
  19653. }
  19654. return nil, changed
  19655. }
  19656. containerLen := dd.ReadMapStart()
  19657. if canChange && v == nil {
  19658. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19659. v = make(map[interface{}]int8, xlen)
  19660. changed = true
  19661. }
  19662. var mk interface{}
  19663. var mv int8
  19664. if containerLen > 0 {
  19665. for j := 0; j < containerLen; j++ {
  19666. if cr != nil {
  19667. cr.sendContainerState(containerMapKey)
  19668. }
  19669. mk = nil
  19670. d.decode(&mk)
  19671. if bv, bok := mk.([]byte); bok {
  19672. mk = d.string(bv)
  19673. }
  19674. if cr != nil {
  19675. cr.sendContainerState(containerMapValue)
  19676. }
  19677. mv = int8(dd.DecodeInt(8))
  19678. if v != nil {
  19679. v[mk] = mv
  19680. }
  19681. }
  19682. } else if containerLen < 0 {
  19683. for j := 0; !dd.CheckBreak(); j++ {
  19684. if cr != nil {
  19685. cr.sendContainerState(containerMapKey)
  19686. }
  19687. mk = nil
  19688. d.decode(&mk)
  19689. if bv, bok := mk.([]byte); bok {
  19690. mk = d.string(bv)
  19691. }
  19692. if cr != nil {
  19693. cr.sendContainerState(containerMapValue)
  19694. }
  19695. mv = int8(dd.DecodeInt(8))
  19696. if v != nil {
  19697. v[mk] = mv
  19698. }
  19699. }
  19700. }
  19701. if cr != nil {
  19702. cr.sendContainerState(containerMapEnd)
  19703. }
  19704. return v, changed
  19705. }
  19706. func (f *decFnInfo) fastpathDecMapIntfInt16R(rv reflect.Value) {
  19707. if rv.CanAddr() {
  19708. vp := rv.Addr().Interface().(*map[interface{}]int16)
  19709. v, changed := fastpathTV.DecMapIntfInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  19710. if changed {
  19711. *vp = v
  19712. }
  19713. } else {
  19714. v := rv.Interface().(map[interface{}]int16)
  19715. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, f.d)
  19716. }
  19717. }
  19718. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, checkNil bool, d *Decoder) {
  19719. v, changed := f.DecMapIntfInt16V(*vp, checkNil, true, d)
  19720. if changed {
  19721. *vp = v
  19722. }
  19723. }
  19724. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, checkNil bool, canChange bool,
  19725. d *Decoder) (_ map[interface{}]int16, changed bool) {
  19726. dd := d.d
  19727. cr := d.cr
  19728. if checkNil && dd.TryDecodeAsNil() {
  19729. if v != nil {
  19730. changed = true
  19731. }
  19732. return nil, changed
  19733. }
  19734. containerLen := dd.ReadMapStart()
  19735. if canChange && v == nil {
  19736. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19737. v = make(map[interface{}]int16, xlen)
  19738. changed = true
  19739. }
  19740. var mk interface{}
  19741. var mv int16
  19742. if containerLen > 0 {
  19743. for j := 0; j < containerLen; j++ {
  19744. if cr != nil {
  19745. cr.sendContainerState(containerMapKey)
  19746. }
  19747. mk = nil
  19748. d.decode(&mk)
  19749. if bv, bok := mk.([]byte); bok {
  19750. mk = d.string(bv)
  19751. }
  19752. if cr != nil {
  19753. cr.sendContainerState(containerMapValue)
  19754. }
  19755. mv = int16(dd.DecodeInt(16))
  19756. if v != nil {
  19757. v[mk] = mv
  19758. }
  19759. }
  19760. } else if containerLen < 0 {
  19761. for j := 0; !dd.CheckBreak(); j++ {
  19762. if cr != nil {
  19763. cr.sendContainerState(containerMapKey)
  19764. }
  19765. mk = nil
  19766. d.decode(&mk)
  19767. if bv, bok := mk.([]byte); bok {
  19768. mk = d.string(bv)
  19769. }
  19770. if cr != nil {
  19771. cr.sendContainerState(containerMapValue)
  19772. }
  19773. mv = int16(dd.DecodeInt(16))
  19774. if v != nil {
  19775. v[mk] = mv
  19776. }
  19777. }
  19778. }
  19779. if cr != nil {
  19780. cr.sendContainerState(containerMapEnd)
  19781. }
  19782. return v, changed
  19783. }
  19784. func (f *decFnInfo) fastpathDecMapIntfInt32R(rv reflect.Value) {
  19785. if rv.CanAddr() {
  19786. vp := rv.Addr().Interface().(*map[interface{}]int32)
  19787. v, changed := fastpathTV.DecMapIntfInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  19788. if changed {
  19789. *vp = v
  19790. }
  19791. } else {
  19792. v := rv.Interface().(map[interface{}]int32)
  19793. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, f.d)
  19794. }
  19795. }
  19796. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, checkNil bool, d *Decoder) {
  19797. v, changed := f.DecMapIntfInt32V(*vp, checkNil, true, d)
  19798. if changed {
  19799. *vp = v
  19800. }
  19801. }
  19802. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, checkNil bool, canChange bool,
  19803. d *Decoder) (_ map[interface{}]int32, changed bool) {
  19804. dd := d.d
  19805. cr := d.cr
  19806. if checkNil && dd.TryDecodeAsNil() {
  19807. if v != nil {
  19808. changed = true
  19809. }
  19810. return nil, changed
  19811. }
  19812. containerLen := dd.ReadMapStart()
  19813. if canChange && v == nil {
  19814. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19815. v = make(map[interface{}]int32, xlen)
  19816. changed = true
  19817. }
  19818. var mk interface{}
  19819. var mv int32
  19820. if containerLen > 0 {
  19821. for j := 0; j < containerLen; j++ {
  19822. if cr != nil {
  19823. cr.sendContainerState(containerMapKey)
  19824. }
  19825. mk = nil
  19826. d.decode(&mk)
  19827. if bv, bok := mk.([]byte); bok {
  19828. mk = d.string(bv)
  19829. }
  19830. if cr != nil {
  19831. cr.sendContainerState(containerMapValue)
  19832. }
  19833. mv = int32(dd.DecodeInt(32))
  19834. if v != nil {
  19835. v[mk] = mv
  19836. }
  19837. }
  19838. } else if containerLen < 0 {
  19839. for j := 0; !dd.CheckBreak(); j++ {
  19840. if cr != nil {
  19841. cr.sendContainerState(containerMapKey)
  19842. }
  19843. mk = nil
  19844. d.decode(&mk)
  19845. if bv, bok := mk.([]byte); bok {
  19846. mk = d.string(bv)
  19847. }
  19848. if cr != nil {
  19849. cr.sendContainerState(containerMapValue)
  19850. }
  19851. mv = int32(dd.DecodeInt(32))
  19852. if v != nil {
  19853. v[mk] = mv
  19854. }
  19855. }
  19856. }
  19857. if cr != nil {
  19858. cr.sendContainerState(containerMapEnd)
  19859. }
  19860. return v, changed
  19861. }
  19862. func (f *decFnInfo) fastpathDecMapIntfInt64R(rv reflect.Value) {
  19863. if rv.CanAddr() {
  19864. vp := rv.Addr().Interface().(*map[interface{}]int64)
  19865. v, changed := fastpathTV.DecMapIntfInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  19866. if changed {
  19867. *vp = v
  19868. }
  19869. } else {
  19870. v := rv.Interface().(map[interface{}]int64)
  19871. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, f.d)
  19872. }
  19873. }
  19874. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, checkNil bool, d *Decoder) {
  19875. v, changed := f.DecMapIntfInt64V(*vp, checkNil, true, d)
  19876. if changed {
  19877. *vp = v
  19878. }
  19879. }
  19880. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, checkNil bool, canChange bool,
  19881. d *Decoder) (_ map[interface{}]int64, changed bool) {
  19882. dd := d.d
  19883. cr := d.cr
  19884. if checkNil && dd.TryDecodeAsNil() {
  19885. if v != nil {
  19886. changed = true
  19887. }
  19888. return nil, changed
  19889. }
  19890. containerLen := dd.ReadMapStart()
  19891. if canChange && v == nil {
  19892. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19893. v = make(map[interface{}]int64, xlen)
  19894. changed = true
  19895. }
  19896. var mk interface{}
  19897. var mv int64
  19898. if containerLen > 0 {
  19899. for j := 0; j < containerLen; j++ {
  19900. if cr != nil {
  19901. cr.sendContainerState(containerMapKey)
  19902. }
  19903. mk = nil
  19904. d.decode(&mk)
  19905. if bv, bok := mk.([]byte); bok {
  19906. mk = d.string(bv)
  19907. }
  19908. if cr != nil {
  19909. cr.sendContainerState(containerMapValue)
  19910. }
  19911. mv = dd.DecodeInt(64)
  19912. if v != nil {
  19913. v[mk] = mv
  19914. }
  19915. }
  19916. } else if containerLen < 0 {
  19917. for j := 0; !dd.CheckBreak(); j++ {
  19918. if cr != nil {
  19919. cr.sendContainerState(containerMapKey)
  19920. }
  19921. mk = nil
  19922. d.decode(&mk)
  19923. if bv, bok := mk.([]byte); bok {
  19924. mk = d.string(bv)
  19925. }
  19926. if cr != nil {
  19927. cr.sendContainerState(containerMapValue)
  19928. }
  19929. mv = dd.DecodeInt(64)
  19930. if v != nil {
  19931. v[mk] = mv
  19932. }
  19933. }
  19934. }
  19935. if cr != nil {
  19936. cr.sendContainerState(containerMapEnd)
  19937. }
  19938. return v, changed
  19939. }
  19940. func (f *decFnInfo) fastpathDecMapIntfFloat32R(rv reflect.Value) {
  19941. if rv.CanAddr() {
  19942. vp := rv.Addr().Interface().(*map[interface{}]float32)
  19943. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  19944. if changed {
  19945. *vp = v
  19946. }
  19947. } else {
  19948. v := rv.Interface().(map[interface{}]float32)
  19949. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, f.d)
  19950. }
  19951. }
  19952. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, checkNil bool, d *Decoder) {
  19953. v, changed := f.DecMapIntfFloat32V(*vp, checkNil, true, d)
  19954. if changed {
  19955. *vp = v
  19956. }
  19957. }
  19958. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, checkNil bool, canChange bool,
  19959. d *Decoder) (_ map[interface{}]float32, changed bool) {
  19960. dd := d.d
  19961. cr := d.cr
  19962. if checkNil && dd.TryDecodeAsNil() {
  19963. if v != nil {
  19964. changed = true
  19965. }
  19966. return nil, changed
  19967. }
  19968. containerLen := dd.ReadMapStart()
  19969. if canChange && v == nil {
  19970. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19971. v = make(map[interface{}]float32, xlen)
  19972. changed = true
  19973. }
  19974. var mk interface{}
  19975. var mv float32
  19976. if containerLen > 0 {
  19977. for j := 0; j < containerLen; j++ {
  19978. if cr != nil {
  19979. cr.sendContainerState(containerMapKey)
  19980. }
  19981. mk = nil
  19982. d.decode(&mk)
  19983. if bv, bok := mk.([]byte); bok {
  19984. mk = d.string(bv)
  19985. }
  19986. if cr != nil {
  19987. cr.sendContainerState(containerMapValue)
  19988. }
  19989. mv = float32(dd.DecodeFloat(true))
  19990. if v != nil {
  19991. v[mk] = mv
  19992. }
  19993. }
  19994. } else if containerLen < 0 {
  19995. for j := 0; !dd.CheckBreak(); j++ {
  19996. if cr != nil {
  19997. cr.sendContainerState(containerMapKey)
  19998. }
  19999. mk = nil
  20000. d.decode(&mk)
  20001. if bv, bok := mk.([]byte); bok {
  20002. mk = d.string(bv)
  20003. }
  20004. if cr != nil {
  20005. cr.sendContainerState(containerMapValue)
  20006. }
  20007. mv = float32(dd.DecodeFloat(true))
  20008. if v != nil {
  20009. v[mk] = mv
  20010. }
  20011. }
  20012. }
  20013. if cr != nil {
  20014. cr.sendContainerState(containerMapEnd)
  20015. }
  20016. return v, changed
  20017. }
  20018. func (f *decFnInfo) fastpathDecMapIntfFloat64R(rv reflect.Value) {
  20019. if rv.CanAddr() {
  20020. vp := rv.Addr().Interface().(*map[interface{}]float64)
  20021. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  20022. if changed {
  20023. *vp = v
  20024. }
  20025. } else {
  20026. v := rv.Interface().(map[interface{}]float64)
  20027. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, f.d)
  20028. }
  20029. }
  20030. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, checkNil bool, d *Decoder) {
  20031. v, changed := f.DecMapIntfFloat64V(*vp, checkNil, true, d)
  20032. if changed {
  20033. *vp = v
  20034. }
  20035. }
  20036. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, checkNil bool, canChange bool,
  20037. d *Decoder) (_ map[interface{}]float64, changed bool) {
  20038. dd := d.d
  20039. cr := d.cr
  20040. if checkNil && dd.TryDecodeAsNil() {
  20041. if v != nil {
  20042. changed = true
  20043. }
  20044. return nil, changed
  20045. }
  20046. containerLen := dd.ReadMapStart()
  20047. if canChange && v == nil {
  20048. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20049. v = make(map[interface{}]float64, xlen)
  20050. changed = true
  20051. }
  20052. var mk interface{}
  20053. var mv float64
  20054. if containerLen > 0 {
  20055. for j := 0; j < containerLen; j++ {
  20056. if cr != nil {
  20057. cr.sendContainerState(containerMapKey)
  20058. }
  20059. mk = nil
  20060. d.decode(&mk)
  20061. if bv, bok := mk.([]byte); bok {
  20062. mk = d.string(bv)
  20063. }
  20064. if cr != nil {
  20065. cr.sendContainerState(containerMapValue)
  20066. }
  20067. mv = dd.DecodeFloat(false)
  20068. if v != nil {
  20069. v[mk] = mv
  20070. }
  20071. }
  20072. } else if containerLen < 0 {
  20073. for j := 0; !dd.CheckBreak(); j++ {
  20074. if cr != nil {
  20075. cr.sendContainerState(containerMapKey)
  20076. }
  20077. mk = nil
  20078. d.decode(&mk)
  20079. if bv, bok := mk.([]byte); bok {
  20080. mk = d.string(bv)
  20081. }
  20082. if cr != nil {
  20083. cr.sendContainerState(containerMapValue)
  20084. }
  20085. mv = dd.DecodeFloat(false)
  20086. if v != nil {
  20087. v[mk] = mv
  20088. }
  20089. }
  20090. }
  20091. if cr != nil {
  20092. cr.sendContainerState(containerMapEnd)
  20093. }
  20094. return v, changed
  20095. }
  20096. func (f *decFnInfo) fastpathDecMapIntfBoolR(rv reflect.Value) {
  20097. if rv.CanAddr() {
  20098. vp := rv.Addr().Interface().(*map[interface{}]bool)
  20099. v, changed := fastpathTV.DecMapIntfBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  20100. if changed {
  20101. *vp = v
  20102. }
  20103. } else {
  20104. v := rv.Interface().(map[interface{}]bool)
  20105. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, f.d)
  20106. }
  20107. }
  20108. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, checkNil bool, d *Decoder) {
  20109. v, changed := f.DecMapIntfBoolV(*vp, checkNil, true, d)
  20110. if changed {
  20111. *vp = v
  20112. }
  20113. }
  20114. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, checkNil bool, canChange bool,
  20115. d *Decoder) (_ map[interface{}]bool, changed bool) {
  20116. dd := d.d
  20117. cr := d.cr
  20118. if checkNil && dd.TryDecodeAsNil() {
  20119. if v != nil {
  20120. changed = true
  20121. }
  20122. return nil, changed
  20123. }
  20124. containerLen := dd.ReadMapStart()
  20125. if canChange && v == nil {
  20126. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20127. v = make(map[interface{}]bool, xlen)
  20128. changed = true
  20129. }
  20130. var mk interface{}
  20131. var mv bool
  20132. if containerLen > 0 {
  20133. for j := 0; j < containerLen; j++ {
  20134. if cr != nil {
  20135. cr.sendContainerState(containerMapKey)
  20136. }
  20137. mk = nil
  20138. d.decode(&mk)
  20139. if bv, bok := mk.([]byte); bok {
  20140. mk = d.string(bv)
  20141. }
  20142. if cr != nil {
  20143. cr.sendContainerState(containerMapValue)
  20144. }
  20145. mv = dd.DecodeBool()
  20146. if v != nil {
  20147. v[mk] = mv
  20148. }
  20149. }
  20150. } else if containerLen < 0 {
  20151. for j := 0; !dd.CheckBreak(); j++ {
  20152. if cr != nil {
  20153. cr.sendContainerState(containerMapKey)
  20154. }
  20155. mk = nil
  20156. d.decode(&mk)
  20157. if bv, bok := mk.([]byte); bok {
  20158. mk = d.string(bv)
  20159. }
  20160. if cr != nil {
  20161. cr.sendContainerState(containerMapValue)
  20162. }
  20163. mv = dd.DecodeBool()
  20164. if v != nil {
  20165. v[mk] = mv
  20166. }
  20167. }
  20168. }
  20169. if cr != nil {
  20170. cr.sendContainerState(containerMapEnd)
  20171. }
  20172. return v, changed
  20173. }
  20174. func (f *decFnInfo) fastpathDecMapStringIntfR(rv reflect.Value) {
  20175. if rv.CanAddr() {
  20176. vp := rv.Addr().Interface().(*map[string]interface{})
  20177. v, changed := fastpathTV.DecMapStringIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  20178. if changed {
  20179. *vp = v
  20180. }
  20181. } else {
  20182. v := rv.Interface().(map[string]interface{})
  20183. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, f.d)
  20184. }
  20185. }
  20186. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, checkNil bool, d *Decoder) {
  20187. v, changed := f.DecMapStringIntfV(*vp, checkNil, true, d)
  20188. if changed {
  20189. *vp = v
  20190. }
  20191. }
  20192. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, checkNil bool, canChange bool,
  20193. d *Decoder) (_ map[string]interface{}, changed bool) {
  20194. dd := d.d
  20195. cr := d.cr
  20196. if checkNil && dd.TryDecodeAsNil() {
  20197. if v != nil {
  20198. changed = true
  20199. }
  20200. return nil, changed
  20201. }
  20202. containerLen := dd.ReadMapStart()
  20203. if canChange && v == nil {
  20204. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20205. v = make(map[string]interface{}, xlen)
  20206. changed = true
  20207. }
  20208. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  20209. var mk string
  20210. var mv interface{}
  20211. if containerLen > 0 {
  20212. for j := 0; j < containerLen; j++ {
  20213. if cr != nil {
  20214. cr.sendContainerState(containerMapKey)
  20215. }
  20216. mk = dd.DecodeString()
  20217. if cr != nil {
  20218. cr.sendContainerState(containerMapValue)
  20219. }
  20220. if mapGet {
  20221. mv = v[mk]
  20222. } else {
  20223. mv = nil
  20224. }
  20225. d.decode(&mv)
  20226. if v != nil {
  20227. v[mk] = mv
  20228. }
  20229. }
  20230. } else if containerLen < 0 {
  20231. for j := 0; !dd.CheckBreak(); j++ {
  20232. if cr != nil {
  20233. cr.sendContainerState(containerMapKey)
  20234. }
  20235. mk = dd.DecodeString()
  20236. if cr != nil {
  20237. cr.sendContainerState(containerMapValue)
  20238. }
  20239. if mapGet {
  20240. mv = v[mk]
  20241. } else {
  20242. mv = nil
  20243. }
  20244. d.decode(&mv)
  20245. if v != nil {
  20246. v[mk] = mv
  20247. }
  20248. }
  20249. }
  20250. if cr != nil {
  20251. cr.sendContainerState(containerMapEnd)
  20252. }
  20253. return v, changed
  20254. }
  20255. func (f *decFnInfo) fastpathDecMapStringStringR(rv reflect.Value) {
  20256. if rv.CanAddr() {
  20257. vp := rv.Addr().Interface().(*map[string]string)
  20258. v, changed := fastpathTV.DecMapStringStringV(*vp, fastpathCheckNilFalse, true, f.d)
  20259. if changed {
  20260. *vp = v
  20261. }
  20262. } else {
  20263. v := rv.Interface().(map[string]string)
  20264. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, f.d)
  20265. }
  20266. }
  20267. func (f fastpathT) DecMapStringStringX(vp *map[string]string, checkNil bool, d *Decoder) {
  20268. v, changed := f.DecMapStringStringV(*vp, checkNil, true, d)
  20269. if changed {
  20270. *vp = v
  20271. }
  20272. }
  20273. func (_ fastpathT) DecMapStringStringV(v map[string]string, checkNil bool, canChange bool,
  20274. d *Decoder) (_ map[string]string, changed bool) {
  20275. dd := d.d
  20276. cr := d.cr
  20277. if checkNil && dd.TryDecodeAsNil() {
  20278. if v != nil {
  20279. changed = true
  20280. }
  20281. return nil, changed
  20282. }
  20283. containerLen := dd.ReadMapStart()
  20284. if canChange && v == nil {
  20285. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20286. v = make(map[string]string, xlen)
  20287. changed = true
  20288. }
  20289. var mk string
  20290. var mv string
  20291. if containerLen > 0 {
  20292. for j := 0; j < containerLen; j++ {
  20293. if cr != nil {
  20294. cr.sendContainerState(containerMapKey)
  20295. }
  20296. mk = dd.DecodeString()
  20297. if cr != nil {
  20298. cr.sendContainerState(containerMapValue)
  20299. }
  20300. mv = dd.DecodeString()
  20301. if v != nil {
  20302. v[mk] = mv
  20303. }
  20304. }
  20305. } else if containerLen < 0 {
  20306. for j := 0; !dd.CheckBreak(); j++ {
  20307. if cr != nil {
  20308. cr.sendContainerState(containerMapKey)
  20309. }
  20310. mk = dd.DecodeString()
  20311. if cr != nil {
  20312. cr.sendContainerState(containerMapValue)
  20313. }
  20314. mv = dd.DecodeString()
  20315. if v != nil {
  20316. v[mk] = mv
  20317. }
  20318. }
  20319. }
  20320. if cr != nil {
  20321. cr.sendContainerState(containerMapEnd)
  20322. }
  20323. return v, changed
  20324. }
  20325. func (f *decFnInfo) fastpathDecMapStringUintR(rv reflect.Value) {
  20326. if rv.CanAddr() {
  20327. vp := rv.Addr().Interface().(*map[string]uint)
  20328. v, changed := fastpathTV.DecMapStringUintV(*vp, fastpathCheckNilFalse, true, f.d)
  20329. if changed {
  20330. *vp = v
  20331. }
  20332. } else {
  20333. v := rv.Interface().(map[string]uint)
  20334. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, f.d)
  20335. }
  20336. }
  20337. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, checkNil bool, d *Decoder) {
  20338. v, changed := f.DecMapStringUintV(*vp, checkNil, true, d)
  20339. if changed {
  20340. *vp = v
  20341. }
  20342. }
  20343. func (_ fastpathT) DecMapStringUintV(v map[string]uint, checkNil bool, canChange bool,
  20344. d *Decoder) (_ map[string]uint, changed bool) {
  20345. dd := d.d
  20346. cr := d.cr
  20347. if checkNil && dd.TryDecodeAsNil() {
  20348. if v != nil {
  20349. changed = true
  20350. }
  20351. return nil, changed
  20352. }
  20353. containerLen := dd.ReadMapStart()
  20354. if canChange && v == nil {
  20355. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20356. v = make(map[string]uint, xlen)
  20357. changed = true
  20358. }
  20359. var mk string
  20360. var mv uint
  20361. if containerLen > 0 {
  20362. for j := 0; j < containerLen; j++ {
  20363. if cr != nil {
  20364. cr.sendContainerState(containerMapKey)
  20365. }
  20366. mk = dd.DecodeString()
  20367. if cr != nil {
  20368. cr.sendContainerState(containerMapValue)
  20369. }
  20370. mv = uint(dd.DecodeUint(uintBitsize))
  20371. if v != nil {
  20372. v[mk] = mv
  20373. }
  20374. }
  20375. } else if containerLen < 0 {
  20376. for j := 0; !dd.CheckBreak(); j++ {
  20377. if cr != nil {
  20378. cr.sendContainerState(containerMapKey)
  20379. }
  20380. mk = dd.DecodeString()
  20381. if cr != nil {
  20382. cr.sendContainerState(containerMapValue)
  20383. }
  20384. mv = uint(dd.DecodeUint(uintBitsize))
  20385. if v != nil {
  20386. v[mk] = mv
  20387. }
  20388. }
  20389. }
  20390. if cr != nil {
  20391. cr.sendContainerState(containerMapEnd)
  20392. }
  20393. return v, changed
  20394. }
  20395. func (f *decFnInfo) fastpathDecMapStringUint8R(rv reflect.Value) {
  20396. if rv.CanAddr() {
  20397. vp := rv.Addr().Interface().(*map[string]uint8)
  20398. v, changed := fastpathTV.DecMapStringUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  20399. if changed {
  20400. *vp = v
  20401. }
  20402. } else {
  20403. v := rv.Interface().(map[string]uint8)
  20404. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, f.d)
  20405. }
  20406. }
  20407. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, checkNil bool, d *Decoder) {
  20408. v, changed := f.DecMapStringUint8V(*vp, checkNil, true, d)
  20409. if changed {
  20410. *vp = v
  20411. }
  20412. }
  20413. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, checkNil bool, canChange bool,
  20414. d *Decoder) (_ map[string]uint8, changed bool) {
  20415. dd := d.d
  20416. cr := d.cr
  20417. if checkNil && dd.TryDecodeAsNil() {
  20418. if v != nil {
  20419. changed = true
  20420. }
  20421. return nil, changed
  20422. }
  20423. containerLen := dd.ReadMapStart()
  20424. if canChange && v == nil {
  20425. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20426. v = make(map[string]uint8, xlen)
  20427. changed = true
  20428. }
  20429. var mk string
  20430. var mv uint8
  20431. if containerLen > 0 {
  20432. for j := 0; j < containerLen; j++ {
  20433. if cr != nil {
  20434. cr.sendContainerState(containerMapKey)
  20435. }
  20436. mk = dd.DecodeString()
  20437. if cr != nil {
  20438. cr.sendContainerState(containerMapValue)
  20439. }
  20440. mv = uint8(dd.DecodeUint(8))
  20441. if v != nil {
  20442. v[mk] = mv
  20443. }
  20444. }
  20445. } else if containerLen < 0 {
  20446. for j := 0; !dd.CheckBreak(); j++ {
  20447. if cr != nil {
  20448. cr.sendContainerState(containerMapKey)
  20449. }
  20450. mk = dd.DecodeString()
  20451. if cr != nil {
  20452. cr.sendContainerState(containerMapValue)
  20453. }
  20454. mv = uint8(dd.DecodeUint(8))
  20455. if v != nil {
  20456. v[mk] = mv
  20457. }
  20458. }
  20459. }
  20460. if cr != nil {
  20461. cr.sendContainerState(containerMapEnd)
  20462. }
  20463. return v, changed
  20464. }
  20465. func (f *decFnInfo) fastpathDecMapStringUint16R(rv reflect.Value) {
  20466. if rv.CanAddr() {
  20467. vp := rv.Addr().Interface().(*map[string]uint16)
  20468. v, changed := fastpathTV.DecMapStringUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  20469. if changed {
  20470. *vp = v
  20471. }
  20472. } else {
  20473. v := rv.Interface().(map[string]uint16)
  20474. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, f.d)
  20475. }
  20476. }
  20477. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, checkNil bool, d *Decoder) {
  20478. v, changed := f.DecMapStringUint16V(*vp, checkNil, true, d)
  20479. if changed {
  20480. *vp = v
  20481. }
  20482. }
  20483. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, checkNil bool, canChange bool,
  20484. d *Decoder) (_ map[string]uint16, changed bool) {
  20485. dd := d.d
  20486. cr := d.cr
  20487. if checkNil && dd.TryDecodeAsNil() {
  20488. if v != nil {
  20489. changed = true
  20490. }
  20491. return nil, changed
  20492. }
  20493. containerLen := dd.ReadMapStart()
  20494. if canChange && v == nil {
  20495. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20496. v = make(map[string]uint16, xlen)
  20497. changed = true
  20498. }
  20499. var mk string
  20500. var mv uint16
  20501. if containerLen > 0 {
  20502. for j := 0; j < containerLen; j++ {
  20503. if cr != nil {
  20504. cr.sendContainerState(containerMapKey)
  20505. }
  20506. mk = dd.DecodeString()
  20507. if cr != nil {
  20508. cr.sendContainerState(containerMapValue)
  20509. }
  20510. mv = uint16(dd.DecodeUint(16))
  20511. if v != nil {
  20512. v[mk] = mv
  20513. }
  20514. }
  20515. } else if containerLen < 0 {
  20516. for j := 0; !dd.CheckBreak(); j++ {
  20517. if cr != nil {
  20518. cr.sendContainerState(containerMapKey)
  20519. }
  20520. mk = dd.DecodeString()
  20521. if cr != nil {
  20522. cr.sendContainerState(containerMapValue)
  20523. }
  20524. mv = uint16(dd.DecodeUint(16))
  20525. if v != nil {
  20526. v[mk] = mv
  20527. }
  20528. }
  20529. }
  20530. if cr != nil {
  20531. cr.sendContainerState(containerMapEnd)
  20532. }
  20533. return v, changed
  20534. }
  20535. func (f *decFnInfo) fastpathDecMapStringUint32R(rv reflect.Value) {
  20536. if rv.CanAddr() {
  20537. vp := rv.Addr().Interface().(*map[string]uint32)
  20538. v, changed := fastpathTV.DecMapStringUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  20539. if changed {
  20540. *vp = v
  20541. }
  20542. } else {
  20543. v := rv.Interface().(map[string]uint32)
  20544. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, f.d)
  20545. }
  20546. }
  20547. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, checkNil bool, d *Decoder) {
  20548. v, changed := f.DecMapStringUint32V(*vp, checkNil, true, d)
  20549. if changed {
  20550. *vp = v
  20551. }
  20552. }
  20553. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, checkNil bool, canChange bool,
  20554. d *Decoder) (_ map[string]uint32, changed bool) {
  20555. dd := d.d
  20556. cr := d.cr
  20557. if checkNil && dd.TryDecodeAsNil() {
  20558. if v != nil {
  20559. changed = true
  20560. }
  20561. return nil, changed
  20562. }
  20563. containerLen := dd.ReadMapStart()
  20564. if canChange && v == nil {
  20565. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20566. v = make(map[string]uint32, xlen)
  20567. changed = true
  20568. }
  20569. var mk string
  20570. var mv uint32
  20571. if containerLen > 0 {
  20572. for j := 0; j < containerLen; j++ {
  20573. if cr != nil {
  20574. cr.sendContainerState(containerMapKey)
  20575. }
  20576. mk = dd.DecodeString()
  20577. if cr != nil {
  20578. cr.sendContainerState(containerMapValue)
  20579. }
  20580. mv = uint32(dd.DecodeUint(32))
  20581. if v != nil {
  20582. v[mk] = mv
  20583. }
  20584. }
  20585. } else if containerLen < 0 {
  20586. for j := 0; !dd.CheckBreak(); j++ {
  20587. if cr != nil {
  20588. cr.sendContainerState(containerMapKey)
  20589. }
  20590. mk = dd.DecodeString()
  20591. if cr != nil {
  20592. cr.sendContainerState(containerMapValue)
  20593. }
  20594. mv = uint32(dd.DecodeUint(32))
  20595. if v != nil {
  20596. v[mk] = mv
  20597. }
  20598. }
  20599. }
  20600. if cr != nil {
  20601. cr.sendContainerState(containerMapEnd)
  20602. }
  20603. return v, changed
  20604. }
  20605. func (f *decFnInfo) fastpathDecMapStringUint64R(rv reflect.Value) {
  20606. if rv.CanAddr() {
  20607. vp := rv.Addr().Interface().(*map[string]uint64)
  20608. v, changed := fastpathTV.DecMapStringUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  20609. if changed {
  20610. *vp = v
  20611. }
  20612. } else {
  20613. v := rv.Interface().(map[string]uint64)
  20614. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, f.d)
  20615. }
  20616. }
  20617. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, checkNil bool, d *Decoder) {
  20618. v, changed := f.DecMapStringUint64V(*vp, checkNil, true, d)
  20619. if changed {
  20620. *vp = v
  20621. }
  20622. }
  20623. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, checkNil bool, canChange bool,
  20624. d *Decoder) (_ map[string]uint64, changed bool) {
  20625. dd := d.d
  20626. cr := d.cr
  20627. if checkNil && dd.TryDecodeAsNil() {
  20628. if v != nil {
  20629. changed = true
  20630. }
  20631. return nil, changed
  20632. }
  20633. containerLen := dd.ReadMapStart()
  20634. if canChange && v == nil {
  20635. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20636. v = make(map[string]uint64, xlen)
  20637. changed = true
  20638. }
  20639. var mk string
  20640. var mv uint64
  20641. if containerLen > 0 {
  20642. for j := 0; j < containerLen; j++ {
  20643. if cr != nil {
  20644. cr.sendContainerState(containerMapKey)
  20645. }
  20646. mk = dd.DecodeString()
  20647. if cr != nil {
  20648. cr.sendContainerState(containerMapValue)
  20649. }
  20650. mv = dd.DecodeUint(64)
  20651. if v != nil {
  20652. v[mk] = mv
  20653. }
  20654. }
  20655. } else if containerLen < 0 {
  20656. for j := 0; !dd.CheckBreak(); j++ {
  20657. if cr != nil {
  20658. cr.sendContainerState(containerMapKey)
  20659. }
  20660. mk = dd.DecodeString()
  20661. if cr != nil {
  20662. cr.sendContainerState(containerMapValue)
  20663. }
  20664. mv = dd.DecodeUint(64)
  20665. if v != nil {
  20666. v[mk] = mv
  20667. }
  20668. }
  20669. }
  20670. if cr != nil {
  20671. cr.sendContainerState(containerMapEnd)
  20672. }
  20673. return v, changed
  20674. }
  20675. func (f *decFnInfo) fastpathDecMapStringUintptrR(rv reflect.Value) {
  20676. if rv.CanAddr() {
  20677. vp := rv.Addr().Interface().(*map[string]uintptr)
  20678. v, changed := fastpathTV.DecMapStringUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  20679. if changed {
  20680. *vp = v
  20681. }
  20682. } else {
  20683. v := rv.Interface().(map[string]uintptr)
  20684. fastpathTV.DecMapStringUintptrV(v, fastpathCheckNilFalse, false, f.d)
  20685. }
  20686. }
  20687. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, checkNil bool, d *Decoder) {
  20688. v, changed := f.DecMapStringUintptrV(*vp, checkNil, true, d)
  20689. if changed {
  20690. *vp = v
  20691. }
  20692. }
  20693. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, checkNil bool, canChange bool,
  20694. d *Decoder) (_ map[string]uintptr, changed bool) {
  20695. dd := d.d
  20696. cr := d.cr
  20697. if checkNil && dd.TryDecodeAsNil() {
  20698. if v != nil {
  20699. changed = true
  20700. }
  20701. return nil, changed
  20702. }
  20703. containerLen := dd.ReadMapStart()
  20704. if canChange && v == nil {
  20705. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20706. v = make(map[string]uintptr, xlen)
  20707. changed = true
  20708. }
  20709. var mk string
  20710. var mv uintptr
  20711. if containerLen > 0 {
  20712. for j := 0; j < containerLen; j++ {
  20713. if cr != nil {
  20714. cr.sendContainerState(containerMapKey)
  20715. }
  20716. mk = dd.DecodeString()
  20717. if cr != nil {
  20718. cr.sendContainerState(containerMapValue)
  20719. }
  20720. mv = uintptr(dd.DecodeUint(uintBitsize))
  20721. if v != nil {
  20722. v[mk] = mv
  20723. }
  20724. }
  20725. } else if containerLen < 0 {
  20726. for j := 0; !dd.CheckBreak(); j++ {
  20727. if cr != nil {
  20728. cr.sendContainerState(containerMapKey)
  20729. }
  20730. mk = dd.DecodeString()
  20731. if cr != nil {
  20732. cr.sendContainerState(containerMapValue)
  20733. }
  20734. mv = uintptr(dd.DecodeUint(uintBitsize))
  20735. if v != nil {
  20736. v[mk] = mv
  20737. }
  20738. }
  20739. }
  20740. if cr != nil {
  20741. cr.sendContainerState(containerMapEnd)
  20742. }
  20743. return v, changed
  20744. }
  20745. func (f *decFnInfo) fastpathDecMapStringIntR(rv reflect.Value) {
  20746. if rv.CanAddr() {
  20747. vp := rv.Addr().Interface().(*map[string]int)
  20748. v, changed := fastpathTV.DecMapStringIntV(*vp, fastpathCheckNilFalse, true, f.d)
  20749. if changed {
  20750. *vp = v
  20751. }
  20752. } else {
  20753. v := rv.Interface().(map[string]int)
  20754. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, f.d)
  20755. }
  20756. }
  20757. func (f fastpathT) DecMapStringIntX(vp *map[string]int, checkNil bool, d *Decoder) {
  20758. v, changed := f.DecMapStringIntV(*vp, checkNil, true, d)
  20759. if changed {
  20760. *vp = v
  20761. }
  20762. }
  20763. func (_ fastpathT) DecMapStringIntV(v map[string]int, checkNil bool, canChange bool,
  20764. d *Decoder) (_ map[string]int, changed bool) {
  20765. dd := d.d
  20766. cr := d.cr
  20767. if checkNil && dd.TryDecodeAsNil() {
  20768. if v != nil {
  20769. changed = true
  20770. }
  20771. return nil, changed
  20772. }
  20773. containerLen := dd.ReadMapStart()
  20774. if canChange && v == nil {
  20775. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20776. v = make(map[string]int, xlen)
  20777. changed = true
  20778. }
  20779. var mk string
  20780. var mv int
  20781. if containerLen > 0 {
  20782. for j := 0; j < containerLen; j++ {
  20783. if cr != nil {
  20784. cr.sendContainerState(containerMapKey)
  20785. }
  20786. mk = dd.DecodeString()
  20787. if cr != nil {
  20788. cr.sendContainerState(containerMapValue)
  20789. }
  20790. mv = int(dd.DecodeInt(intBitsize))
  20791. if v != nil {
  20792. v[mk] = mv
  20793. }
  20794. }
  20795. } else if containerLen < 0 {
  20796. for j := 0; !dd.CheckBreak(); j++ {
  20797. if cr != nil {
  20798. cr.sendContainerState(containerMapKey)
  20799. }
  20800. mk = dd.DecodeString()
  20801. if cr != nil {
  20802. cr.sendContainerState(containerMapValue)
  20803. }
  20804. mv = int(dd.DecodeInt(intBitsize))
  20805. if v != nil {
  20806. v[mk] = mv
  20807. }
  20808. }
  20809. }
  20810. if cr != nil {
  20811. cr.sendContainerState(containerMapEnd)
  20812. }
  20813. return v, changed
  20814. }
  20815. func (f *decFnInfo) fastpathDecMapStringInt8R(rv reflect.Value) {
  20816. if rv.CanAddr() {
  20817. vp := rv.Addr().Interface().(*map[string]int8)
  20818. v, changed := fastpathTV.DecMapStringInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  20819. if changed {
  20820. *vp = v
  20821. }
  20822. } else {
  20823. v := rv.Interface().(map[string]int8)
  20824. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, f.d)
  20825. }
  20826. }
  20827. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, checkNil bool, d *Decoder) {
  20828. v, changed := f.DecMapStringInt8V(*vp, checkNil, true, d)
  20829. if changed {
  20830. *vp = v
  20831. }
  20832. }
  20833. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, checkNil bool, canChange bool,
  20834. d *Decoder) (_ map[string]int8, changed bool) {
  20835. dd := d.d
  20836. cr := d.cr
  20837. if checkNil && dd.TryDecodeAsNil() {
  20838. if v != nil {
  20839. changed = true
  20840. }
  20841. return nil, changed
  20842. }
  20843. containerLen := dd.ReadMapStart()
  20844. if canChange && v == nil {
  20845. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20846. v = make(map[string]int8, xlen)
  20847. changed = true
  20848. }
  20849. var mk string
  20850. var mv int8
  20851. if containerLen > 0 {
  20852. for j := 0; j < containerLen; j++ {
  20853. if cr != nil {
  20854. cr.sendContainerState(containerMapKey)
  20855. }
  20856. mk = dd.DecodeString()
  20857. if cr != nil {
  20858. cr.sendContainerState(containerMapValue)
  20859. }
  20860. mv = int8(dd.DecodeInt(8))
  20861. if v != nil {
  20862. v[mk] = mv
  20863. }
  20864. }
  20865. } else if containerLen < 0 {
  20866. for j := 0; !dd.CheckBreak(); j++ {
  20867. if cr != nil {
  20868. cr.sendContainerState(containerMapKey)
  20869. }
  20870. mk = dd.DecodeString()
  20871. if cr != nil {
  20872. cr.sendContainerState(containerMapValue)
  20873. }
  20874. mv = int8(dd.DecodeInt(8))
  20875. if v != nil {
  20876. v[mk] = mv
  20877. }
  20878. }
  20879. }
  20880. if cr != nil {
  20881. cr.sendContainerState(containerMapEnd)
  20882. }
  20883. return v, changed
  20884. }
  20885. func (f *decFnInfo) fastpathDecMapStringInt16R(rv reflect.Value) {
  20886. if rv.CanAddr() {
  20887. vp := rv.Addr().Interface().(*map[string]int16)
  20888. v, changed := fastpathTV.DecMapStringInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  20889. if changed {
  20890. *vp = v
  20891. }
  20892. } else {
  20893. v := rv.Interface().(map[string]int16)
  20894. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, f.d)
  20895. }
  20896. }
  20897. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, checkNil bool, d *Decoder) {
  20898. v, changed := f.DecMapStringInt16V(*vp, checkNil, true, d)
  20899. if changed {
  20900. *vp = v
  20901. }
  20902. }
  20903. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, checkNil bool, canChange bool,
  20904. d *Decoder) (_ map[string]int16, changed bool) {
  20905. dd := d.d
  20906. cr := d.cr
  20907. if checkNil && dd.TryDecodeAsNil() {
  20908. if v != nil {
  20909. changed = true
  20910. }
  20911. return nil, changed
  20912. }
  20913. containerLen := dd.ReadMapStart()
  20914. if canChange && v == nil {
  20915. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20916. v = make(map[string]int16, xlen)
  20917. changed = true
  20918. }
  20919. var mk string
  20920. var mv int16
  20921. if containerLen > 0 {
  20922. for j := 0; j < containerLen; j++ {
  20923. if cr != nil {
  20924. cr.sendContainerState(containerMapKey)
  20925. }
  20926. mk = dd.DecodeString()
  20927. if cr != nil {
  20928. cr.sendContainerState(containerMapValue)
  20929. }
  20930. mv = int16(dd.DecodeInt(16))
  20931. if v != nil {
  20932. v[mk] = mv
  20933. }
  20934. }
  20935. } else if containerLen < 0 {
  20936. for j := 0; !dd.CheckBreak(); j++ {
  20937. if cr != nil {
  20938. cr.sendContainerState(containerMapKey)
  20939. }
  20940. mk = dd.DecodeString()
  20941. if cr != nil {
  20942. cr.sendContainerState(containerMapValue)
  20943. }
  20944. mv = int16(dd.DecodeInt(16))
  20945. if v != nil {
  20946. v[mk] = mv
  20947. }
  20948. }
  20949. }
  20950. if cr != nil {
  20951. cr.sendContainerState(containerMapEnd)
  20952. }
  20953. return v, changed
  20954. }
  20955. func (f *decFnInfo) fastpathDecMapStringInt32R(rv reflect.Value) {
  20956. if rv.CanAddr() {
  20957. vp := rv.Addr().Interface().(*map[string]int32)
  20958. v, changed := fastpathTV.DecMapStringInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  20959. if changed {
  20960. *vp = v
  20961. }
  20962. } else {
  20963. v := rv.Interface().(map[string]int32)
  20964. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, f.d)
  20965. }
  20966. }
  20967. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, checkNil bool, d *Decoder) {
  20968. v, changed := f.DecMapStringInt32V(*vp, checkNil, true, d)
  20969. if changed {
  20970. *vp = v
  20971. }
  20972. }
  20973. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, checkNil bool, canChange bool,
  20974. d *Decoder) (_ map[string]int32, changed bool) {
  20975. dd := d.d
  20976. cr := d.cr
  20977. if checkNil && dd.TryDecodeAsNil() {
  20978. if v != nil {
  20979. changed = true
  20980. }
  20981. return nil, changed
  20982. }
  20983. containerLen := dd.ReadMapStart()
  20984. if canChange && v == nil {
  20985. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20986. v = make(map[string]int32, xlen)
  20987. changed = true
  20988. }
  20989. var mk string
  20990. var mv int32
  20991. if containerLen > 0 {
  20992. for j := 0; j < containerLen; j++ {
  20993. if cr != nil {
  20994. cr.sendContainerState(containerMapKey)
  20995. }
  20996. mk = dd.DecodeString()
  20997. if cr != nil {
  20998. cr.sendContainerState(containerMapValue)
  20999. }
  21000. mv = int32(dd.DecodeInt(32))
  21001. if v != nil {
  21002. v[mk] = mv
  21003. }
  21004. }
  21005. } else if containerLen < 0 {
  21006. for j := 0; !dd.CheckBreak(); j++ {
  21007. if cr != nil {
  21008. cr.sendContainerState(containerMapKey)
  21009. }
  21010. mk = dd.DecodeString()
  21011. if cr != nil {
  21012. cr.sendContainerState(containerMapValue)
  21013. }
  21014. mv = int32(dd.DecodeInt(32))
  21015. if v != nil {
  21016. v[mk] = mv
  21017. }
  21018. }
  21019. }
  21020. if cr != nil {
  21021. cr.sendContainerState(containerMapEnd)
  21022. }
  21023. return v, changed
  21024. }
  21025. func (f *decFnInfo) fastpathDecMapStringInt64R(rv reflect.Value) {
  21026. if rv.CanAddr() {
  21027. vp := rv.Addr().Interface().(*map[string]int64)
  21028. v, changed := fastpathTV.DecMapStringInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  21029. if changed {
  21030. *vp = v
  21031. }
  21032. } else {
  21033. v := rv.Interface().(map[string]int64)
  21034. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, f.d)
  21035. }
  21036. }
  21037. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, checkNil bool, d *Decoder) {
  21038. v, changed := f.DecMapStringInt64V(*vp, checkNil, true, d)
  21039. if changed {
  21040. *vp = v
  21041. }
  21042. }
  21043. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, checkNil bool, canChange bool,
  21044. d *Decoder) (_ map[string]int64, changed bool) {
  21045. dd := d.d
  21046. cr := d.cr
  21047. if checkNil && dd.TryDecodeAsNil() {
  21048. if v != nil {
  21049. changed = true
  21050. }
  21051. return nil, changed
  21052. }
  21053. containerLen := dd.ReadMapStart()
  21054. if canChange && v == nil {
  21055. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21056. v = make(map[string]int64, xlen)
  21057. changed = true
  21058. }
  21059. var mk string
  21060. var mv int64
  21061. if containerLen > 0 {
  21062. for j := 0; j < containerLen; j++ {
  21063. if cr != nil {
  21064. cr.sendContainerState(containerMapKey)
  21065. }
  21066. mk = dd.DecodeString()
  21067. if cr != nil {
  21068. cr.sendContainerState(containerMapValue)
  21069. }
  21070. mv = dd.DecodeInt(64)
  21071. if v != nil {
  21072. v[mk] = mv
  21073. }
  21074. }
  21075. } else if containerLen < 0 {
  21076. for j := 0; !dd.CheckBreak(); j++ {
  21077. if cr != nil {
  21078. cr.sendContainerState(containerMapKey)
  21079. }
  21080. mk = dd.DecodeString()
  21081. if cr != nil {
  21082. cr.sendContainerState(containerMapValue)
  21083. }
  21084. mv = dd.DecodeInt(64)
  21085. if v != nil {
  21086. v[mk] = mv
  21087. }
  21088. }
  21089. }
  21090. if cr != nil {
  21091. cr.sendContainerState(containerMapEnd)
  21092. }
  21093. return v, changed
  21094. }
  21095. func (f *decFnInfo) fastpathDecMapStringFloat32R(rv reflect.Value) {
  21096. if rv.CanAddr() {
  21097. vp := rv.Addr().Interface().(*map[string]float32)
  21098. v, changed := fastpathTV.DecMapStringFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  21099. if changed {
  21100. *vp = v
  21101. }
  21102. } else {
  21103. v := rv.Interface().(map[string]float32)
  21104. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, f.d)
  21105. }
  21106. }
  21107. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, checkNil bool, d *Decoder) {
  21108. v, changed := f.DecMapStringFloat32V(*vp, checkNil, true, d)
  21109. if changed {
  21110. *vp = v
  21111. }
  21112. }
  21113. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, checkNil bool, canChange bool,
  21114. d *Decoder) (_ map[string]float32, changed bool) {
  21115. dd := d.d
  21116. cr := d.cr
  21117. if checkNil && dd.TryDecodeAsNil() {
  21118. if v != nil {
  21119. changed = true
  21120. }
  21121. return nil, changed
  21122. }
  21123. containerLen := dd.ReadMapStart()
  21124. if canChange && v == nil {
  21125. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21126. v = make(map[string]float32, xlen)
  21127. changed = true
  21128. }
  21129. var mk string
  21130. var mv float32
  21131. if containerLen > 0 {
  21132. for j := 0; j < containerLen; j++ {
  21133. if cr != nil {
  21134. cr.sendContainerState(containerMapKey)
  21135. }
  21136. mk = dd.DecodeString()
  21137. if cr != nil {
  21138. cr.sendContainerState(containerMapValue)
  21139. }
  21140. mv = float32(dd.DecodeFloat(true))
  21141. if v != nil {
  21142. v[mk] = mv
  21143. }
  21144. }
  21145. } else if containerLen < 0 {
  21146. for j := 0; !dd.CheckBreak(); j++ {
  21147. if cr != nil {
  21148. cr.sendContainerState(containerMapKey)
  21149. }
  21150. mk = dd.DecodeString()
  21151. if cr != nil {
  21152. cr.sendContainerState(containerMapValue)
  21153. }
  21154. mv = float32(dd.DecodeFloat(true))
  21155. if v != nil {
  21156. v[mk] = mv
  21157. }
  21158. }
  21159. }
  21160. if cr != nil {
  21161. cr.sendContainerState(containerMapEnd)
  21162. }
  21163. return v, changed
  21164. }
  21165. func (f *decFnInfo) fastpathDecMapStringFloat64R(rv reflect.Value) {
  21166. if rv.CanAddr() {
  21167. vp := rv.Addr().Interface().(*map[string]float64)
  21168. v, changed := fastpathTV.DecMapStringFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  21169. if changed {
  21170. *vp = v
  21171. }
  21172. } else {
  21173. v := rv.Interface().(map[string]float64)
  21174. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, f.d)
  21175. }
  21176. }
  21177. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, checkNil bool, d *Decoder) {
  21178. v, changed := f.DecMapStringFloat64V(*vp, checkNil, true, d)
  21179. if changed {
  21180. *vp = v
  21181. }
  21182. }
  21183. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, checkNil bool, canChange bool,
  21184. d *Decoder) (_ map[string]float64, changed bool) {
  21185. dd := d.d
  21186. cr := d.cr
  21187. if checkNil && dd.TryDecodeAsNil() {
  21188. if v != nil {
  21189. changed = true
  21190. }
  21191. return nil, changed
  21192. }
  21193. containerLen := dd.ReadMapStart()
  21194. if canChange && v == nil {
  21195. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21196. v = make(map[string]float64, xlen)
  21197. changed = true
  21198. }
  21199. var mk string
  21200. var mv float64
  21201. if containerLen > 0 {
  21202. for j := 0; j < containerLen; j++ {
  21203. if cr != nil {
  21204. cr.sendContainerState(containerMapKey)
  21205. }
  21206. mk = dd.DecodeString()
  21207. if cr != nil {
  21208. cr.sendContainerState(containerMapValue)
  21209. }
  21210. mv = dd.DecodeFloat(false)
  21211. if v != nil {
  21212. v[mk] = mv
  21213. }
  21214. }
  21215. } else if containerLen < 0 {
  21216. for j := 0; !dd.CheckBreak(); j++ {
  21217. if cr != nil {
  21218. cr.sendContainerState(containerMapKey)
  21219. }
  21220. mk = dd.DecodeString()
  21221. if cr != nil {
  21222. cr.sendContainerState(containerMapValue)
  21223. }
  21224. mv = dd.DecodeFloat(false)
  21225. if v != nil {
  21226. v[mk] = mv
  21227. }
  21228. }
  21229. }
  21230. if cr != nil {
  21231. cr.sendContainerState(containerMapEnd)
  21232. }
  21233. return v, changed
  21234. }
  21235. func (f *decFnInfo) fastpathDecMapStringBoolR(rv reflect.Value) {
  21236. if rv.CanAddr() {
  21237. vp := rv.Addr().Interface().(*map[string]bool)
  21238. v, changed := fastpathTV.DecMapStringBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  21239. if changed {
  21240. *vp = v
  21241. }
  21242. } else {
  21243. v := rv.Interface().(map[string]bool)
  21244. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, f.d)
  21245. }
  21246. }
  21247. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, checkNil bool, d *Decoder) {
  21248. v, changed := f.DecMapStringBoolV(*vp, checkNil, true, d)
  21249. if changed {
  21250. *vp = v
  21251. }
  21252. }
  21253. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, checkNil bool, canChange bool,
  21254. d *Decoder) (_ map[string]bool, changed bool) {
  21255. dd := d.d
  21256. cr := d.cr
  21257. if checkNil && dd.TryDecodeAsNil() {
  21258. if v != nil {
  21259. changed = true
  21260. }
  21261. return nil, changed
  21262. }
  21263. containerLen := dd.ReadMapStart()
  21264. if canChange && v == nil {
  21265. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  21266. v = make(map[string]bool, xlen)
  21267. changed = true
  21268. }
  21269. var mk string
  21270. var mv bool
  21271. if containerLen > 0 {
  21272. for j := 0; j < containerLen; j++ {
  21273. if cr != nil {
  21274. cr.sendContainerState(containerMapKey)
  21275. }
  21276. mk = dd.DecodeString()
  21277. if cr != nil {
  21278. cr.sendContainerState(containerMapValue)
  21279. }
  21280. mv = dd.DecodeBool()
  21281. if v != nil {
  21282. v[mk] = mv
  21283. }
  21284. }
  21285. } else if containerLen < 0 {
  21286. for j := 0; !dd.CheckBreak(); j++ {
  21287. if cr != nil {
  21288. cr.sendContainerState(containerMapKey)
  21289. }
  21290. mk = dd.DecodeString()
  21291. if cr != nil {
  21292. cr.sendContainerState(containerMapValue)
  21293. }
  21294. mv = dd.DecodeBool()
  21295. if v != nil {
  21296. v[mk] = mv
  21297. }
  21298. }
  21299. }
  21300. if cr != nil {
  21301. cr.sendContainerState(containerMapEnd)
  21302. }
  21303. return v, changed
  21304. }
  21305. func (f *decFnInfo) fastpathDecMapFloat32IntfR(rv reflect.Value) {
  21306. if rv.CanAddr() {
  21307. vp := rv.Addr().Interface().(*map[float32]interface{})
  21308. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  21309. if changed {
  21310. *vp = v
  21311. }
  21312. } else {
  21313. v := rv.Interface().(map[float32]interface{})
  21314. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, f.d)
  21315. }
  21316. }
  21317. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, checkNil bool, d *Decoder) {
  21318. v, changed := f.DecMapFloat32IntfV(*vp, checkNil, true, d)
  21319. if changed {
  21320. *vp = v
  21321. }
  21322. }
  21323. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, checkNil bool, canChange bool,
  21324. d *Decoder) (_ map[float32]interface{}, changed bool) {
  21325. dd := d.d
  21326. cr := d.cr
  21327. if checkNil && dd.TryDecodeAsNil() {
  21328. if v != nil {
  21329. changed = true
  21330. }
  21331. return nil, changed
  21332. }
  21333. containerLen := dd.ReadMapStart()
  21334. if canChange && v == nil {
  21335. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21336. v = make(map[float32]interface{}, xlen)
  21337. changed = true
  21338. }
  21339. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  21340. var mk float32
  21341. var mv interface{}
  21342. if containerLen > 0 {
  21343. for j := 0; j < containerLen; j++ {
  21344. if cr != nil {
  21345. cr.sendContainerState(containerMapKey)
  21346. }
  21347. mk = float32(dd.DecodeFloat(true))
  21348. if cr != nil {
  21349. cr.sendContainerState(containerMapValue)
  21350. }
  21351. if mapGet {
  21352. mv = v[mk]
  21353. } else {
  21354. mv = nil
  21355. }
  21356. d.decode(&mv)
  21357. if v != nil {
  21358. v[mk] = mv
  21359. }
  21360. }
  21361. } else if containerLen < 0 {
  21362. for j := 0; !dd.CheckBreak(); j++ {
  21363. if cr != nil {
  21364. cr.sendContainerState(containerMapKey)
  21365. }
  21366. mk = float32(dd.DecodeFloat(true))
  21367. if cr != nil {
  21368. cr.sendContainerState(containerMapValue)
  21369. }
  21370. if mapGet {
  21371. mv = v[mk]
  21372. } else {
  21373. mv = nil
  21374. }
  21375. d.decode(&mv)
  21376. if v != nil {
  21377. v[mk] = mv
  21378. }
  21379. }
  21380. }
  21381. if cr != nil {
  21382. cr.sendContainerState(containerMapEnd)
  21383. }
  21384. return v, changed
  21385. }
  21386. func (f *decFnInfo) fastpathDecMapFloat32StringR(rv reflect.Value) {
  21387. if rv.CanAddr() {
  21388. vp := rv.Addr().Interface().(*map[float32]string)
  21389. v, changed := fastpathTV.DecMapFloat32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  21390. if changed {
  21391. *vp = v
  21392. }
  21393. } else {
  21394. v := rv.Interface().(map[float32]string)
  21395. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, f.d)
  21396. }
  21397. }
  21398. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, checkNil bool, d *Decoder) {
  21399. v, changed := f.DecMapFloat32StringV(*vp, checkNil, true, d)
  21400. if changed {
  21401. *vp = v
  21402. }
  21403. }
  21404. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, checkNil bool, canChange bool,
  21405. d *Decoder) (_ map[float32]string, changed bool) {
  21406. dd := d.d
  21407. cr := d.cr
  21408. if checkNil && dd.TryDecodeAsNil() {
  21409. if v != nil {
  21410. changed = true
  21411. }
  21412. return nil, changed
  21413. }
  21414. containerLen := dd.ReadMapStart()
  21415. if canChange && v == nil {
  21416. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21417. v = make(map[float32]string, xlen)
  21418. changed = true
  21419. }
  21420. var mk float32
  21421. var mv string
  21422. if containerLen > 0 {
  21423. for j := 0; j < containerLen; j++ {
  21424. if cr != nil {
  21425. cr.sendContainerState(containerMapKey)
  21426. }
  21427. mk = float32(dd.DecodeFloat(true))
  21428. if cr != nil {
  21429. cr.sendContainerState(containerMapValue)
  21430. }
  21431. mv = dd.DecodeString()
  21432. if v != nil {
  21433. v[mk] = mv
  21434. }
  21435. }
  21436. } else if containerLen < 0 {
  21437. for j := 0; !dd.CheckBreak(); j++ {
  21438. if cr != nil {
  21439. cr.sendContainerState(containerMapKey)
  21440. }
  21441. mk = float32(dd.DecodeFloat(true))
  21442. if cr != nil {
  21443. cr.sendContainerState(containerMapValue)
  21444. }
  21445. mv = dd.DecodeString()
  21446. if v != nil {
  21447. v[mk] = mv
  21448. }
  21449. }
  21450. }
  21451. if cr != nil {
  21452. cr.sendContainerState(containerMapEnd)
  21453. }
  21454. return v, changed
  21455. }
  21456. func (f *decFnInfo) fastpathDecMapFloat32UintR(rv reflect.Value) {
  21457. if rv.CanAddr() {
  21458. vp := rv.Addr().Interface().(*map[float32]uint)
  21459. v, changed := fastpathTV.DecMapFloat32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  21460. if changed {
  21461. *vp = v
  21462. }
  21463. } else {
  21464. v := rv.Interface().(map[float32]uint)
  21465. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, f.d)
  21466. }
  21467. }
  21468. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, checkNil bool, d *Decoder) {
  21469. v, changed := f.DecMapFloat32UintV(*vp, checkNil, true, d)
  21470. if changed {
  21471. *vp = v
  21472. }
  21473. }
  21474. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, checkNil bool, canChange bool,
  21475. d *Decoder) (_ map[float32]uint, changed bool) {
  21476. dd := d.d
  21477. cr := d.cr
  21478. if checkNil && dd.TryDecodeAsNil() {
  21479. if v != nil {
  21480. changed = true
  21481. }
  21482. return nil, changed
  21483. }
  21484. containerLen := dd.ReadMapStart()
  21485. if canChange && v == nil {
  21486. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21487. v = make(map[float32]uint, xlen)
  21488. changed = true
  21489. }
  21490. var mk float32
  21491. var mv uint
  21492. if containerLen > 0 {
  21493. for j := 0; j < containerLen; j++ {
  21494. if cr != nil {
  21495. cr.sendContainerState(containerMapKey)
  21496. }
  21497. mk = float32(dd.DecodeFloat(true))
  21498. if cr != nil {
  21499. cr.sendContainerState(containerMapValue)
  21500. }
  21501. mv = uint(dd.DecodeUint(uintBitsize))
  21502. if v != nil {
  21503. v[mk] = mv
  21504. }
  21505. }
  21506. } else if containerLen < 0 {
  21507. for j := 0; !dd.CheckBreak(); j++ {
  21508. if cr != nil {
  21509. cr.sendContainerState(containerMapKey)
  21510. }
  21511. mk = float32(dd.DecodeFloat(true))
  21512. if cr != nil {
  21513. cr.sendContainerState(containerMapValue)
  21514. }
  21515. mv = uint(dd.DecodeUint(uintBitsize))
  21516. if v != nil {
  21517. v[mk] = mv
  21518. }
  21519. }
  21520. }
  21521. if cr != nil {
  21522. cr.sendContainerState(containerMapEnd)
  21523. }
  21524. return v, changed
  21525. }
  21526. func (f *decFnInfo) fastpathDecMapFloat32Uint8R(rv reflect.Value) {
  21527. if rv.CanAddr() {
  21528. vp := rv.Addr().Interface().(*map[float32]uint8)
  21529. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  21530. if changed {
  21531. *vp = v
  21532. }
  21533. } else {
  21534. v := rv.Interface().(map[float32]uint8)
  21535. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  21536. }
  21537. }
  21538. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, checkNil bool, d *Decoder) {
  21539. v, changed := f.DecMapFloat32Uint8V(*vp, checkNil, true, d)
  21540. if changed {
  21541. *vp = v
  21542. }
  21543. }
  21544. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, checkNil bool, canChange bool,
  21545. d *Decoder) (_ map[float32]uint8, changed bool) {
  21546. dd := d.d
  21547. cr := d.cr
  21548. if checkNil && dd.TryDecodeAsNil() {
  21549. if v != nil {
  21550. changed = true
  21551. }
  21552. return nil, changed
  21553. }
  21554. containerLen := dd.ReadMapStart()
  21555. if canChange && v == nil {
  21556. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21557. v = make(map[float32]uint8, xlen)
  21558. changed = true
  21559. }
  21560. var mk float32
  21561. var mv uint8
  21562. if containerLen > 0 {
  21563. for j := 0; j < containerLen; j++ {
  21564. if cr != nil {
  21565. cr.sendContainerState(containerMapKey)
  21566. }
  21567. mk = float32(dd.DecodeFloat(true))
  21568. if cr != nil {
  21569. cr.sendContainerState(containerMapValue)
  21570. }
  21571. mv = uint8(dd.DecodeUint(8))
  21572. if v != nil {
  21573. v[mk] = mv
  21574. }
  21575. }
  21576. } else if containerLen < 0 {
  21577. for j := 0; !dd.CheckBreak(); j++ {
  21578. if cr != nil {
  21579. cr.sendContainerState(containerMapKey)
  21580. }
  21581. mk = float32(dd.DecodeFloat(true))
  21582. if cr != nil {
  21583. cr.sendContainerState(containerMapValue)
  21584. }
  21585. mv = uint8(dd.DecodeUint(8))
  21586. if v != nil {
  21587. v[mk] = mv
  21588. }
  21589. }
  21590. }
  21591. if cr != nil {
  21592. cr.sendContainerState(containerMapEnd)
  21593. }
  21594. return v, changed
  21595. }
  21596. func (f *decFnInfo) fastpathDecMapFloat32Uint16R(rv reflect.Value) {
  21597. if rv.CanAddr() {
  21598. vp := rv.Addr().Interface().(*map[float32]uint16)
  21599. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  21600. if changed {
  21601. *vp = v
  21602. }
  21603. } else {
  21604. v := rv.Interface().(map[float32]uint16)
  21605. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  21606. }
  21607. }
  21608. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, checkNil bool, d *Decoder) {
  21609. v, changed := f.DecMapFloat32Uint16V(*vp, checkNil, true, d)
  21610. if changed {
  21611. *vp = v
  21612. }
  21613. }
  21614. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, checkNil bool, canChange bool,
  21615. d *Decoder) (_ map[float32]uint16, changed bool) {
  21616. dd := d.d
  21617. cr := d.cr
  21618. if checkNil && dd.TryDecodeAsNil() {
  21619. if v != nil {
  21620. changed = true
  21621. }
  21622. return nil, changed
  21623. }
  21624. containerLen := dd.ReadMapStart()
  21625. if canChange && v == nil {
  21626. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21627. v = make(map[float32]uint16, xlen)
  21628. changed = true
  21629. }
  21630. var mk float32
  21631. var mv uint16
  21632. if containerLen > 0 {
  21633. for j := 0; j < containerLen; j++ {
  21634. if cr != nil {
  21635. cr.sendContainerState(containerMapKey)
  21636. }
  21637. mk = float32(dd.DecodeFloat(true))
  21638. if cr != nil {
  21639. cr.sendContainerState(containerMapValue)
  21640. }
  21641. mv = uint16(dd.DecodeUint(16))
  21642. if v != nil {
  21643. v[mk] = mv
  21644. }
  21645. }
  21646. } else if containerLen < 0 {
  21647. for j := 0; !dd.CheckBreak(); j++ {
  21648. if cr != nil {
  21649. cr.sendContainerState(containerMapKey)
  21650. }
  21651. mk = float32(dd.DecodeFloat(true))
  21652. if cr != nil {
  21653. cr.sendContainerState(containerMapValue)
  21654. }
  21655. mv = uint16(dd.DecodeUint(16))
  21656. if v != nil {
  21657. v[mk] = mv
  21658. }
  21659. }
  21660. }
  21661. if cr != nil {
  21662. cr.sendContainerState(containerMapEnd)
  21663. }
  21664. return v, changed
  21665. }
  21666. func (f *decFnInfo) fastpathDecMapFloat32Uint32R(rv reflect.Value) {
  21667. if rv.CanAddr() {
  21668. vp := rv.Addr().Interface().(*map[float32]uint32)
  21669. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  21670. if changed {
  21671. *vp = v
  21672. }
  21673. } else {
  21674. v := rv.Interface().(map[float32]uint32)
  21675. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  21676. }
  21677. }
  21678. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, checkNil bool, d *Decoder) {
  21679. v, changed := f.DecMapFloat32Uint32V(*vp, checkNil, true, d)
  21680. if changed {
  21681. *vp = v
  21682. }
  21683. }
  21684. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, checkNil bool, canChange bool,
  21685. d *Decoder) (_ map[float32]uint32, changed bool) {
  21686. dd := d.d
  21687. cr := d.cr
  21688. if checkNil && dd.TryDecodeAsNil() {
  21689. if v != nil {
  21690. changed = true
  21691. }
  21692. return nil, changed
  21693. }
  21694. containerLen := dd.ReadMapStart()
  21695. if canChange && v == nil {
  21696. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21697. v = make(map[float32]uint32, xlen)
  21698. changed = true
  21699. }
  21700. var mk float32
  21701. var mv uint32
  21702. if containerLen > 0 {
  21703. for j := 0; j < containerLen; j++ {
  21704. if cr != nil {
  21705. cr.sendContainerState(containerMapKey)
  21706. }
  21707. mk = float32(dd.DecodeFloat(true))
  21708. if cr != nil {
  21709. cr.sendContainerState(containerMapValue)
  21710. }
  21711. mv = uint32(dd.DecodeUint(32))
  21712. if v != nil {
  21713. v[mk] = mv
  21714. }
  21715. }
  21716. } else if containerLen < 0 {
  21717. for j := 0; !dd.CheckBreak(); j++ {
  21718. if cr != nil {
  21719. cr.sendContainerState(containerMapKey)
  21720. }
  21721. mk = float32(dd.DecodeFloat(true))
  21722. if cr != nil {
  21723. cr.sendContainerState(containerMapValue)
  21724. }
  21725. mv = uint32(dd.DecodeUint(32))
  21726. if v != nil {
  21727. v[mk] = mv
  21728. }
  21729. }
  21730. }
  21731. if cr != nil {
  21732. cr.sendContainerState(containerMapEnd)
  21733. }
  21734. return v, changed
  21735. }
  21736. func (f *decFnInfo) fastpathDecMapFloat32Uint64R(rv reflect.Value) {
  21737. if rv.CanAddr() {
  21738. vp := rv.Addr().Interface().(*map[float32]uint64)
  21739. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  21740. if changed {
  21741. *vp = v
  21742. }
  21743. } else {
  21744. v := rv.Interface().(map[float32]uint64)
  21745. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  21746. }
  21747. }
  21748. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, checkNil bool, d *Decoder) {
  21749. v, changed := f.DecMapFloat32Uint64V(*vp, checkNil, true, d)
  21750. if changed {
  21751. *vp = v
  21752. }
  21753. }
  21754. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, checkNil bool, canChange bool,
  21755. d *Decoder) (_ map[float32]uint64, changed bool) {
  21756. dd := d.d
  21757. cr := d.cr
  21758. if checkNil && dd.TryDecodeAsNil() {
  21759. if v != nil {
  21760. changed = true
  21761. }
  21762. return nil, changed
  21763. }
  21764. containerLen := dd.ReadMapStart()
  21765. if canChange && v == nil {
  21766. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21767. v = make(map[float32]uint64, xlen)
  21768. changed = true
  21769. }
  21770. var mk float32
  21771. var mv uint64
  21772. if containerLen > 0 {
  21773. for j := 0; j < containerLen; j++ {
  21774. if cr != nil {
  21775. cr.sendContainerState(containerMapKey)
  21776. }
  21777. mk = float32(dd.DecodeFloat(true))
  21778. if cr != nil {
  21779. cr.sendContainerState(containerMapValue)
  21780. }
  21781. mv = dd.DecodeUint(64)
  21782. if v != nil {
  21783. v[mk] = mv
  21784. }
  21785. }
  21786. } else if containerLen < 0 {
  21787. for j := 0; !dd.CheckBreak(); j++ {
  21788. if cr != nil {
  21789. cr.sendContainerState(containerMapKey)
  21790. }
  21791. mk = float32(dd.DecodeFloat(true))
  21792. if cr != nil {
  21793. cr.sendContainerState(containerMapValue)
  21794. }
  21795. mv = dd.DecodeUint(64)
  21796. if v != nil {
  21797. v[mk] = mv
  21798. }
  21799. }
  21800. }
  21801. if cr != nil {
  21802. cr.sendContainerState(containerMapEnd)
  21803. }
  21804. return v, changed
  21805. }
  21806. func (f *decFnInfo) fastpathDecMapFloat32UintptrR(rv reflect.Value) {
  21807. if rv.CanAddr() {
  21808. vp := rv.Addr().Interface().(*map[float32]uintptr)
  21809. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  21810. if changed {
  21811. *vp = v
  21812. }
  21813. } else {
  21814. v := rv.Interface().(map[float32]uintptr)
  21815. fastpathTV.DecMapFloat32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  21816. }
  21817. }
  21818. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, checkNil bool, d *Decoder) {
  21819. v, changed := f.DecMapFloat32UintptrV(*vp, checkNil, true, d)
  21820. if changed {
  21821. *vp = v
  21822. }
  21823. }
  21824. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, checkNil bool, canChange bool,
  21825. d *Decoder) (_ map[float32]uintptr, changed bool) {
  21826. dd := d.d
  21827. cr := d.cr
  21828. if checkNil && dd.TryDecodeAsNil() {
  21829. if v != nil {
  21830. changed = true
  21831. }
  21832. return nil, changed
  21833. }
  21834. containerLen := dd.ReadMapStart()
  21835. if canChange && v == nil {
  21836. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21837. v = make(map[float32]uintptr, xlen)
  21838. changed = true
  21839. }
  21840. var mk float32
  21841. var mv uintptr
  21842. if containerLen > 0 {
  21843. for j := 0; j < containerLen; j++ {
  21844. if cr != nil {
  21845. cr.sendContainerState(containerMapKey)
  21846. }
  21847. mk = float32(dd.DecodeFloat(true))
  21848. if cr != nil {
  21849. cr.sendContainerState(containerMapValue)
  21850. }
  21851. mv = uintptr(dd.DecodeUint(uintBitsize))
  21852. if v != nil {
  21853. v[mk] = mv
  21854. }
  21855. }
  21856. } else if containerLen < 0 {
  21857. for j := 0; !dd.CheckBreak(); j++ {
  21858. if cr != nil {
  21859. cr.sendContainerState(containerMapKey)
  21860. }
  21861. mk = float32(dd.DecodeFloat(true))
  21862. if cr != nil {
  21863. cr.sendContainerState(containerMapValue)
  21864. }
  21865. mv = uintptr(dd.DecodeUint(uintBitsize))
  21866. if v != nil {
  21867. v[mk] = mv
  21868. }
  21869. }
  21870. }
  21871. if cr != nil {
  21872. cr.sendContainerState(containerMapEnd)
  21873. }
  21874. return v, changed
  21875. }
  21876. func (f *decFnInfo) fastpathDecMapFloat32IntR(rv reflect.Value) {
  21877. if rv.CanAddr() {
  21878. vp := rv.Addr().Interface().(*map[float32]int)
  21879. v, changed := fastpathTV.DecMapFloat32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  21880. if changed {
  21881. *vp = v
  21882. }
  21883. } else {
  21884. v := rv.Interface().(map[float32]int)
  21885. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, f.d)
  21886. }
  21887. }
  21888. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, checkNil bool, d *Decoder) {
  21889. v, changed := f.DecMapFloat32IntV(*vp, checkNil, true, d)
  21890. if changed {
  21891. *vp = v
  21892. }
  21893. }
  21894. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, checkNil bool, canChange bool,
  21895. d *Decoder) (_ map[float32]int, changed bool) {
  21896. dd := d.d
  21897. cr := d.cr
  21898. if checkNil && dd.TryDecodeAsNil() {
  21899. if v != nil {
  21900. changed = true
  21901. }
  21902. return nil, changed
  21903. }
  21904. containerLen := dd.ReadMapStart()
  21905. if canChange && v == nil {
  21906. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21907. v = make(map[float32]int, xlen)
  21908. changed = true
  21909. }
  21910. var mk float32
  21911. var mv int
  21912. if containerLen > 0 {
  21913. for j := 0; j < containerLen; j++ {
  21914. if cr != nil {
  21915. cr.sendContainerState(containerMapKey)
  21916. }
  21917. mk = float32(dd.DecodeFloat(true))
  21918. if cr != nil {
  21919. cr.sendContainerState(containerMapValue)
  21920. }
  21921. mv = int(dd.DecodeInt(intBitsize))
  21922. if v != nil {
  21923. v[mk] = mv
  21924. }
  21925. }
  21926. } else if containerLen < 0 {
  21927. for j := 0; !dd.CheckBreak(); j++ {
  21928. if cr != nil {
  21929. cr.sendContainerState(containerMapKey)
  21930. }
  21931. mk = float32(dd.DecodeFloat(true))
  21932. if cr != nil {
  21933. cr.sendContainerState(containerMapValue)
  21934. }
  21935. mv = int(dd.DecodeInt(intBitsize))
  21936. if v != nil {
  21937. v[mk] = mv
  21938. }
  21939. }
  21940. }
  21941. if cr != nil {
  21942. cr.sendContainerState(containerMapEnd)
  21943. }
  21944. return v, changed
  21945. }
  21946. func (f *decFnInfo) fastpathDecMapFloat32Int8R(rv reflect.Value) {
  21947. if rv.CanAddr() {
  21948. vp := rv.Addr().Interface().(*map[float32]int8)
  21949. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  21950. if changed {
  21951. *vp = v
  21952. }
  21953. } else {
  21954. v := rv.Interface().(map[float32]int8)
  21955. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, f.d)
  21956. }
  21957. }
  21958. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, checkNil bool, d *Decoder) {
  21959. v, changed := f.DecMapFloat32Int8V(*vp, checkNil, true, d)
  21960. if changed {
  21961. *vp = v
  21962. }
  21963. }
  21964. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, checkNil bool, canChange bool,
  21965. d *Decoder) (_ map[float32]int8, changed bool) {
  21966. dd := d.d
  21967. cr := d.cr
  21968. if checkNil && dd.TryDecodeAsNil() {
  21969. if v != nil {
  21970. changed = true
  21971. }
  21972. return nil, changed
  21973. }
  21974. containerLen := dd.ReadMapStart()
  21975. if canChange && v == nil {
  21976. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21977. v = make(map[float32]int8, xlen)
  21978. changed = true
  21979. }
  21980. var mk float32
  21981. var mv int8
  21982. if containerLen > 0 {
  21983. for j := 0; j < containerLen; j++ {
  21984. if cr != nil {
  21985. cr.sendContainerState(containerMapKey)
  21986. }
  21987. mk = float32(dd.DecodeFloat(true))
  21988. if cr != nil {
  21989. cr.sendContainerState(containerMapValue)
  21990. }
  21991. mv = int8(dd.DecodeInt(8))
  21992. if v != nil {
  21993. v[mk] = mv
  21994. }
  21995. }
  21996. } else if containerLen < 0 {
  21997. for j := 0; !dd.CheckBreak(); j++ {
  21998. if cr != nil {
  21999. cr.sendContainerState(containerMapKey)
  22000. }
  22001. mk = float32(dd.DecodeFloat(true))
  22002. if cr != nil {
  22003. cr.sendContainerState(containerMapValue)
  22004. }
  22005. mv = int8(dd.DecodeInt(8))
  22006. if v != nil {
  22007. v[mk] = mv
  22008. }
  22009. }
  22010. }
  22011. if cr != nil {
  22012. cr.sendContainerState(containerMapEnd)
  22013. }
  22014. return v, changed
  22015. }
  22016. func (f *decFnInfo) fastpathDecMapFloat32Int16R(rv reflect.Value) {
  22017. if rv.CanAddr() {
  22018. vp := rv.Addr().Interface().(*map[float32]int16)
  22019. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  22020. if changed {
  22021. *vp = v
  22022. }
  22023. } else {
  22024. v := rv.Interface().(map[float32]int16)
  22025. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, f.d)
  22026. }
  22027. }
  22028. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, checkNil bool, d *Decoder) {
  22029. v, changed := f.DecMapFloat32Int16V(*vp, checkNil, true, d)
  22030. if changed {
  22031. *vp = v
  22032. }
  22033. }
  22034. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, checkNil bool, canChange bool,
  22035. d *Decoder) (_ map[float32]int16, changed bool) {
  22036. dd := d.d
  22037. cr := d.cr
  22038. if checkNil && dd.TryDecodeAsNil() {
  22039. if v != nil {
  22040. changed = true
  22041. }
  22042. return nil, changed
  22043. }
  22044. containerLen := dd.ReadMapStart()
  22045. if canChange && v == nil {
  22046. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  22047. v = make(map[float32]int16, xlen)
  22048. changed = true
  22049. }
  22050. var mk float32
  22051. var mv int16
  22052. if containerLen > 0 {
  22053. for j := 0; j < containerLen; j++ {
  22054. if cr != nil {
  22055. cr.sendContainerState(containerMapKey)
  22056. }
  22057. mk = float32(dd.DecodeFloat(true))
  22058. if cr != nil {
  22059. cr.sendContainerState(containerMapValue)
  22060. }
  22061. mv = int16(dd.DecodeInt(16))
  22062. if v != nil {
  22063. v[mk] = mv
  22064. }
  22065. }
  22066. } else if containerLen < 0 {
  22067. for j := 0; !dd.CheckBreak(); j++ {
  22068. if cr != nil {
  22069. cr.sendContainerState(containerMapKey)
  22070. }
  22071. mk = float32(dd.DecodeFloat(true))
  22072. if cr != nil {
  22073. cr.sendContainerState(containerMapValue)
  22074. }
  22075. mv = int16(dd.DecodeInt(16))
  22076. if v != nil {
  22077. v[mk] = mv
  22078. }
  22079. }
  22080. }
  22081. if cr != nil {
  22082. cr.sendContainerState(containerMapEnd)
  22083. }
  22084. return v, changed
  22085. }
  22086. func (f *decFnInfo) fastpathDecMapFloat32Int32R(rv reflect.Value) {
  22087. if rv.CanAddr() {
  22088. vp := rv.Addr().Interface().(*map[float32]int32)
  22089. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  22090. if changed {
  22091. *vp = v
  22092. }
  22093. } else {
  22094. v := rv.Interface().(map[float32]int32)
  22095. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, f.d)
  22096. }
  22097. }
  22098. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, checkNil bool, d *Decoder) {
  22099. v, changed := f.DecMapFloat32Int32V(*vp, checkNil, true, d)
  22100. if changed {
  22101. *vp = v
  22102. }
  22103. }
  22104. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, checkNil bool, canChange bool,
  22105. d *Decoder) (_ map[float32]int32, changed bool) {
  22106. dd := d.d
  22107. cr := d.cr
  22108. if checkNil && dd.TryDecodeAsNil() {
  22109. if v != nil {
  22110. changed = true
  22111. }
  22112. return nil, changed
  22113. }
  22114. containerLen := dd.ReadMapStart()
  22115. if canChange && v == nil {
  22116. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  22117. v = make(map[float32]int32, xlen)
  22118. changed = true
  22119. }
  22120. var mk float32
  22121. var mv int32
  22122. if containerLen > 0 {
  22123. for j := 0; j < containerLen; j++ {
  22124. if cr != nil {
  22125. cr.sendContainerState(containerMapKey)
  22126. }
  22127. mk = float32(dd.DecodeFloat(true))
  22128. if cr != nil {
  22129. cr.sendContainerState(containerMapValue)
  22130. }
  22131. mv = int32(dd.DecodeInt(32))
  22132. if v != nil {
  22133. v[mk] = mv
  22134. }
  22135. }
  22136. } else if containerLen < 0 {
  22137. for j := 0; !dd.CheckBreak(); j++ {
  22138. if cr != nil {
  22139. cr.sendContainerState(containerMapKey)
  22140. }
  22141. mk = float32(dd.DecodeFloat(true))
  22142. if cr != nil {
  22143. cr.sendContainerState(containerMapValue)
  22144. }
  22145. mv = int32(dd.DecodeInt(32))
  22146. if v != nil {
  22147. v[mk] = mv
  22148. }
  22149. }
  22150. }
  22151. if cr != nil {
  22152. cr.sendContainerState(containerMapEnd)
  22153. }
  22154. return v, changed
  22155. }
  22156. func (f *decFnInfo) fastpathDecMapFloat32Int64R(rv reflect.Value) {
  22157. if rv.CanAddr() {
  22158. vp := rv.Addr().Interface().(*map[float32]int64)
  22159. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  22160. if changed {
  22161. *vp = v
  22162. }
  22163. } else {
  22164. v := rv.Interface().(map[float32]int64)
  22165. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, f.d)
  22166. }
  22167. }
  22168. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, checkNil bool, d *Decoder) {
  22169. v, changed := f.DecMapFloat32Int64V(*vp, checkNil, true, d)
  22170. if changed {
  22171. *vp = v
  22172. }
  22173. }
  22174. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, checkNil bool, canChange bool,
  22175. d *Decoder) (_ map[float32]int64, changed bool) {
  22176. dd := d.d
  22177. cr := d.cr
  22178. if checkNil && dd.TryDecodeAsNil() {
  22179. if v != nil {
  22180. changed = true
  22181. }
  22182. return nil, changed
  22183. }
  22184. containerLen := dd.ReadMapStart()
  22185. if canChange && v == nil {
  22186. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22187. v = make(map[float32]int64, xlen)
  22188. changed = true
  22189. }
  22190. var mk float32
  22191. var mv int64
  22192. if containerLen > 0 {
  22193. for j := 0; j < containerLen; j++ {
  22194. if cr != nil {
  22195. cr.sendContainerState(containerMapKey)
  22196. }
  22197. mk = float32(dd.DecodeFloat(true))
  22198. if cr != nil {
  22199. cr.sendContainerState(containerMapValue)
  22200. }
  22201. mv = dd.DecodeInt(64)
  22202. if v != nil {
  22203. v[mk] = mv
  22204. }
  22205. }
  22206. } else if containerLen < 0 {
  22207. for j := 0; !dd.CheckBreak(); j++ {
  22208. if cr != nil {
  22209. cr.sendContainerState(containerMapKey)
  22210. }
  22211. mk = float32(dd.DecodeFloat(true))
  22212. if cr != nil {
  22213. cr.sendContainerState(containerMapValue)
  22214. }
  22215. mv = dd.DecodeInt(64)
  22216. if v != nil {
  22217. v[mk] = mv
  22218. }
  22219. }
  22220. }
  22221. if cr != nil {
  22222. cr.sendContainerState(containerMapEnd)
  22223. }
  22224. return v, changed
  22225. }
  22226. func (f *decFnInfo) fastpathDecMapFloat32Float32R(rv reflect.Value) {
  22227. if rv.CanAddr() {
  22228. vp := rv.Addr().Interface().(*map[float32]float32)
  22229. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  22230. if changed {
  22231. *vp = v
  22232. }
  22233. } else {
  22234. v := rv.Interface().(map[float32]float32)
  22235. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, f.d)
  22236. }
  22237. }
  22238. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, checkNil bool, d *Decoder) {
  22239. v, changed := f.DecMapFloat32Float32V(*vp, checkNil, true, d)
  22240. if changed {
  22241. *vp = v
  22242. }
  22243. }
  22244. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, checkNil bool, canChange bool,
  22245. d *Decoder) (_ map[float32]float32, changed bool) {
  22246. dd := d.d
  22247. cr := d.cr
  22248. if checkNil && dd.TryDecodeAsNil() {
  22249. if v != nil {
  22250. changed = true
  22251. }
  22252. return nil, changed
  22253. }
  22254. containerLen := dd.ReadMapStart()
  22255. if canChange && v == nil {
  22256. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  22257. v = make(map[float32]float32, xlen)
  22258. changed = true
  22259. }
  22260. var mk float32
  22261. var mv float32
  22262. if containerLen > 0 {
  22263. for j := 0; j < containerLen; j++ {
  22264. if cr != nil {
  22265. cr.sendContainerState(containerMapKey)
  22266. }
  22267. mk = float32(dd.DecodeFloat(true))
  22268. if cr != nil {
  22269. cr.sendContainerState(containerMapValue)
  22270. }
  22271. mv = float32(dd.DecodeFloat(true))
  22272. if v != nil {
  22273. v[mk] = mv
  22274. }
  22275. }
  22276. } else if containerLen < 0 {
  22277. for j := 0; !dd.CheckBreak(); j++ {
  22278. if cr != nil {
  22279. cr.sendContainerState(containerMapKey)
  22280. }
  22281. mk = float32(dd.DecodeFloat(true))
  22282. if cr != nil {
  22283. cr.sendContainerState(containerMapValue)
  22284. }
  22285. mv = float32(dd.DecodeFloat(true))
  22286. if v != nil {
  22287. v[mk] = mv
  22288. }
  22289. }
  22290. }
  22291. if cr != nil {
  22292. cr.sendContainerState(containerMapEnd)
  22293. }
  22294. return v, changed
  22295. }
  22296. func (f *decFnInfo) fastpathDecMapFloat32Float64R(rv reflect.Value) {
  22297. if rv.CanAddr() {
  22298. vp := rv.Addr().Interface().(*map[float32]float64)
  22299. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  22300. if changed {
  22301. *vp = v
  22302. }
  22303. } else {
  22304. v := rv.Interface().(map[float32]float64)
  22305. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, f.d)
  22306. }
  22307. }
  22308. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, checkNil bool, d *Decoder) {
  22309. v, changed := f.DecMapFloat32Float64V(*vp, checkNil, true, d)
  22310. if changed {
  22311. *vp = v
  22312. }
  22313. }
  22314. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, checkNil bool, canChange bool,
  22315. d *Decoder) (_ map[float32]float64, changed bool) {
  22316. dd := d.d
  22317. cr := d.cr
  22318. if checkNil && dd.TryDecodeAsNil() {
  22319. if v != nil {
  22320. changed = true
  22321. }
  22322. return nil, changed
  22323. }
  22324. containerLen := dd.ReadMapStart()
  22325. if canChange && v == nil {
  22326. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22327. v = make(map[float32]float64, xlen)
  22328. changed = true
  22329. }
  22330. var mk float32
  22331. var mv float64
  22332. if containerLen > 0 {
  22333. for j := 0; j < containerLen; j++ {
  22334. if cr != nil {
  22335. cr.sendContainerState(containerMapKey)
  22336. }
  22337. mk = float32(dd.DecodeFloat(true))
  22338. if cr != nil {
  22339. cr.sendContainerState(containerMapValue)
  22340. }
  22341. mv = dd.DecodeFloat(false)
  22342. if v != nil {
  22343. v[mk] = mv
  22344. }
  22345. }
  22346. } else if containerLen < 0 {
  22347. for j := 0; !dd.CheckBreak(); j++ {
  22348. if cr != nil {
  22349. cr.sendContainerState(containerMapKey)
  22350. }
  22351. mk = float32(dd.DecodeFloat(true))
  22352. if cr != nil {
  22353. cr.sendContainerState(containerMapValue)
  22354. }
  22355. mv = dd.DecodeFloat(false)
  22356. if v != nil {
  22357. v[mk] = mv
  22358. }
  22359. }
  22360. }
  22361. if cr != nil {
  22362. cr.sendContainerState(containerMapEnd)
  22363. }
  22364. return v, changed
  22365. }
  22366. func (f *decFnInfo) fastpathDecMapFloat32BoolR(rv reflect.Value) {
  22367. if rv.CanAddr() {
  22368. vp := rv.Addr().Interface().(*map[float32]bool)
  22369. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  22370. if changed {
  22371. *vp = v
  22372. }
  22373. } else {
  22374. v := rv.Interface().(map[float32]bool)
  22375. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, f.d)
  22376. }
  22377. }
  22378. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, checkNil bool, d *Decoder) {
  22379. v, changed := f.DecMapFloat32BoolV(*vp, checkNil, true, d)
  22380. if changed {
  22381. *vp = v
  22382. }
  22383. }
  22384. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, checkNil bool, canChange bool,
  22385. d *Decoder) (_ map[float32]bool, changed bool) {
  22386. dd := d.d
  22387. cr := d.cr
  22388. if checkNil && dd.TryDecodeAsNil() {
  22389. if v != nil {
  22390. changed = true
  22391. }
  22392. return nil, changed
  22393. }
  22394. containerLen := dd.ReadMapStart()
  22395. if canChange && v == nil {
  22396. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  22397. v = make(map[float32]bool, xlen)
  22398. changed = true
  22399. }
  22400. var mk float32
  22401. var mv bool
  22402. if containerLen > 0 {
  22403. for j := 0; j < containerLen; j++ {
  22404. if cr != nil {
  22405. cr.sendContainerState(containerMapKey)
  22406. }
  22407. mk = float32(dd.DecodeFloat(true))
  22408. if cr != nil {
  22409. cr.sendContainerState(containerMapValue)
  22410. }
  22411. mv = dd.DecodeBool()
  22412. if v != nil {
  22413. v[mk] = mv
  22414. }
  22415. }
  22416. } else if containerLen < 0 {
  22417. for j := 0; !dd.CheckBreak(); j++ {
  22418. if cr != nil {
  22419. cr.sendContainerState(containerMapKey)
  22420. }
  22421. mk = float32(dd.DecodeFloat(true))
  22422. if cr != nil {
  22423. cr.sendContainerState(containerMapValue)
  22424. }
  22425. mv = dd.DecodeBool()
  22426. if v != nil {
  22427. v[mk] = mv
  22428. }
  22429. }
  22430. }
  22431. if cr != nil {
  22432. cr.sendContainerState(containerMapEnd)
  22433. }
  22434. return v, changed
  22435. }
  22436. func (f *decFnInfo) fastpathDecMapFloat64IntfR(rv reflect.Value) {
  22437. if rv.CanAddr() {
  22438. vp := rv.Addr().Interface().(*map[float64]interface{})
  22439. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  22440. if changed {
  22441. *vp = v
  22442. }
  22443. } else {
  22444. v := rv.Interface().(map[float64]interface{})
  22445. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, f.d)
  22446. }
  22447. }
  22448. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, checkNil bool, d *Decoder) {
  22449. v, changed := f.DecMapFloat64IntfV(*vp, checkNil, true, d)
  22450. if changed {
  22451. *vp = v
  22452. }
  22453. }
  22454. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, checkNil bool, canChange bool,
  22455. d *Decoder) (_ map[float64]interface{}, changed bool) {
  22456. dd := d.d
  22457. cr := d.cr
  22458. if checkNil && dd.TryDecodeAsNil() {
  22459. if v != nil {
  22460. changed = true
  22461. }
  22462. return nil, changed
  22463. }
  22464. containerLen := dd.ReadMapStart()
  22465. if canChange && v == nil {
  22466. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22467. v = make(map[float64]interface{}, xlen)
  22468. changed = true
  22469. }
  22470. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  22471. var mk float64
  22472. var mv interface{}
  22473. if containerLen > 0 {
  22474. for j := 0; j < containerLen; j++ {
  22475. if cr != nil {
  22476. cr.sendContainerState(containerMapKey)
  22477. }
  22478. mk = dd.DecodeFloat(false)
  22479. if cr != nil {
  22480. cr.sendContainerState(containerMapValue)
  22481. }
  22482. if mapGet {
  22483. mv = v[mk]
  22484. } else {
  22485. mv = nil
  22486. }
  22487. d.decode(&mv)
  22488. if v != nil {
  22489. v[mk] = mv
  22490. }
  22491. }
  22492. } else if containerLen < 0 {
  22493. for j := 0; !dd.CheckBreak(); j++ {
  22494. if cr != nil {
  22495. cr.sendContainerState(containerMapKey)
  22496. }
  22497. mk = dd.DecodeFloat(false)
  22498. if cr != nil {
  22499. cr.sendContainerState(containerMapValue)
  22500. }
  22501. if mapGet {
  22502. mv = v[mk]
  22503. } else {
  22504. mv = nil
  22505. }
  22506. d.decode(&mv)
  22507. if v != nil {
  22508. v[mk] = mv
  22509. }
  22510. }
  22511. }
  22512. if cr != nil {
  22513. cr.sendContainerState(containerMapEnd)
  22514. }
  22515. return v, changed
  22516. }
  22517. func (f *decFnInfo) fastpathDecMapFloat64StringR(rv reflect.Value) {
  22518. if rv.CanAddr() {
  22519. vp := rv.Addr().Interface().(*map[float64]string)
  22520. v, changed := fastpathTV.DecMapFloat64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  22521. if changed {
  22522. *vp = v
  22523. }
  22524. } else {
  22525. v := rv.Interface().(map[float64]string)
  22526. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, f.d)
  22527. }
  22528. }
  22529. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, checkNil bool, d *Decoder) {
  22530. v, changed := f.DecMapFloat64StringV(*vp, checkNil, true, d)
  22531. if changed {
  22532. *vp = v
  22533. }
  22534. }
  22535. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, checkNil bool, canChange bool,
  22536. d *Decoder) (_ map[float64]string, changed bool) {
  22537. dd := d.d
  22538. cr := d.cr
  22539. if checkNil && dd.TryDecodeAsNil() {
  22540. if v != nil {
  22541. changed = true
  22542. }
  22543. return nil, changed
  22544. }
  22545. containerLen := dd.ReadMapStart()
  22546. if canChange && v == nil {
  22547. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22548. v = make(map[float64]string, xlen)
  22549. changed = true
  22550. }
  22551. var mk float64
  22552. var mv string
  22553. if containerLen > 0 {
  22554. for j := 0; j < containerLen; j++ {
  22555. if cr != nil {
  22556. cr.sendContainerState(containerMapKey)
  22557. }
  22558. mk = dd.DecodeFloat(false)
  22559. if cr != nil {
  22560. cr.sendContainerState(containerMapValue)
  22561. }
  22562. mv = dd.DecodeString()
  22563. if v != nil {
  22564. v[mk] = mv
  22565. }
  22566. }
  22567. } else if containerLen < 0 {
  22568. for j := 0; !dd.CheckBreak(); j++ {
  22569. if cr != nil {
  22570. cr.sendContainerState(containerMapKey)
  22571. }
  22572. mk = dd.DecodeFloat(false)
  22573. if cr != nil {
  22574. cr.sendContainerState(containerMapValue)
  22575. }
  22576. mv = dd.DecodeString()
  22577. if v != nil {
  22578. v[mk] = mv
  22579. }
  22580. }
  22581. }
  22582. if cr != nil {
  22583. cr.sendContainerState(containerMapEnd)
  22584. }
  22585. return v, changed
  22586. }
  22587. func (f *decFnInfo) fastpathDecMapFloat64UintR(rv reflect.Value) {
  22588. if rv.CanAddr() {
  22589. vp := rv.Addr().Interface().(*map[float64]uint)
  22590. v, changed := fastpathTV.DecMapFloat64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  22591. if changed {
  22592. *vp = v
  22593. }
  22594. } else {
  22595. v := rv.Interface().(map[float64]uint)
  22596. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, f.d)
  22597. }
  22598. }
  22599. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, checkNil bool, d *Decoder) {
  22600. v, changed := f.DecMapFloat64UintV(*vp, checkNil, true, d)
  22601. if changed {
  22602. *vp = v
  22603. }
  22604. }
  22605. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, checkNil bool, canChange bool,
  22606. d *Decoder) (_ map[float64]uint, changed bool) {
  22607. dd := d.d
  22608. cr := d.cr
  22609. if checkNil && dd.TryDecodeAsNil() {
  22610. if v != nil {
  22611. changed = true
  22612. }
  22613. return nil, changed
  22614. }
  22615. containerLen := dd.ReadMapStart()
  22616. if canChange && v == nil {
  22617. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22618. v = make(map[float64]uint, xlen)
  22619. changed = true
  22620. }
  22621. var mk float64
  22622. var mv uint
  22623. if containerLen > 0 {
  22624. for j := 0; j < containerLen; j++ {
  22625. if cr != nil {
  22626. cr.sendContainerState(containerMapKey)
  22627. }
  22628. mk = dd.DecodeFloat(false)
  22629. if cr != nil {
  22630. cr.sendContainerState(containerMapValue)
  22631. }
  22632. mv = uint(dd.DecodeUint(uintBitsize))
  22633. if v != nil {
  22634. v[mk] = mv
  22635. }
  22636. }
  22637. } else if containerLen < 0 {
  22638. for j := 0; !dd.CheckBreak(); j++ {
  22639. if cr != nil {
  22640. cr.sendContainerState(containerMapKey)
  22641. }
  22642. mk = dd.DecodeFloat(false)
  22643. if cr != nil {
  22644. cr.sendContainerState(containerMapValue)
  22645. }
  22646. mv = uint(dd.DecodeUint(uintBitsize))
  22647. if v != nil {
  22648. v[mk] = mv
  22649. }
  22650. }
  22651. }
  22652. if cr != nil {
  22653. cr.sendContainerState(containerMapEnd)
  22654. }
  22655. return v, changed
  22656. }
  22657. func (f *decFnInfo) fastpathDecMapFloat64Uint8R(rv reflect.Value) {
  22658. if rv.CanAddr() {
  22659. vp := rv.Addr().Interface().(*map[float64]uint8)
  22660. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  22661. if changed {
  22662. *vp = v
  22663. }
  22664. } else {
  22665. v := rv.Interface().(map[float64]uint8)
  22666. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  22667. }
  22668. }
  22669. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, checkNil bool, d *Decoder) {
  22670. v, changed := f.DecMapFloat64Uint8V(*vp, checkNil, true, d)
  22671. if changed {
  22672. *vp = v
  22673. }
  22674. }
  22675. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, checkNil bool, canChange bool,
  22676. d *Decoder) (_ map[float64]uint8, changed bool) {
  22677. dd := d.d
  22678. cr := d.cr
  22679. if checkNil && dd.TryDecodeAsNil() {
  22680. if v != nil {
  22681. changed = true
  22682. }
  22683. return nil, changed
  22684. }
  22685. containerLen := dd.ReadMapStart()
  22686. if canChange && v == nil {
  22687. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22688. v = make(map[float64]uint8, xlen)
  22689. changed = true
  22690. }
  22691. var mk float64
  22692. var mv uint8
  22693. if containerLen > 0 {
  22694. for j := 0; j < containerLen; j++ {
  22695. if cr != nil {
  22696. cr.sendContainerState(containerMapKey)
  22697. }
  22698. mk = dd.DecodeFloat(false)
  22699. if cr != nil {
  22700. cr.sendContainerState(containerMapValue)
  22701. }
  22702. mv = uint8(dd.DecodeUint(8))
  22703. if v != nil {
  22704. v[mk] = mv
  22705. }
  22706. }
  22707. } else if containerLen < 0 {
  22708. for j := 0; !dd.CheckBreak(); j++ {
  22709. if cr != nil {
  22710. cr.sendContainerState(containerMapKey)
  22711. }
  22712. mk = dd.DecodeFloat(false)
  22713. if cr != nil {
  22714. cr.sendContainerState(containerMapValue)
  22715. }
  22716. mv = uint8(dd.DecodeUint(8))
  22717. if v != nil {
  22718. v[mk] = mv
  22719. }
  22720. }
  22721. }
  22722. if cr != nil {
  22723. cr.sendContainerState(containerMapEnd)
  22724. }
  22725. return v, changed
  22726. }
  22727. func (f *decFnInfo) fastpathDecMapFloat64Uint16R(rv reflect.Value) {
  22728. if rv.CanAddr() {
  22729. vp := rv.Addr().Interface().(*map[float64]uint16)
  22730. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  22731. if changed {
  22732. *vp = v
  22733. }
  22734. } else {
  22735. v := rv.Interface().(map[float64]uint16)
  22736. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  22737. }
  22738. }
  22739. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, checkNil bool, d *Decoder) {
  22740. v, changed := f.DecMapFloat64Uint16V(*vp, checkNil, true, d)
  22741. if changed {
  22742. *vp = v
  22743. }
  22744. }
  22745. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, checkNil bool, canChange bool,
  22746. d *Decoder) (_ map[float64]uint16, changed bool) {
  22747. dd := d.d
  22748. cr := d.cr
  22749. if checkNil && dd.TryDecodeAsNil() {
  22750. if v != nil {
  22751. changed = true
  22752. }
  22753. return nil, changed
  22754. }
  22755. containerLen := dd.ReadMapStart()
  22756. if canChange && v == nil {
  22757. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22758. v = make(map[float64]uint16, xlen)
  22759. changed = true
  22760. }
  22761. var mk float64
  22762. var mv uint16
  22763. if containerLen > 0 {
  22764. for j := 0; j < containerLen; j++ {
  22765. if cr != nil {
  22766. cr.sendContainerState(containerMapKey)
  22767. }
  22768. mk = dd.DecodeFloat(false)
  22769. if cr != nil {
  22770. cr.sendContainerState(containerMapValue)
  22771. }
  22772. mv = uint16(dd.DecodeUint(16))
  22773. if v != nil {
  22774. v[mk] = mv
  22775. }
  22776. }
  22777. } else if containerLen < 0 {
  22778. for j := 0; !dd.CheckBreak(); j++ {
  22779. if cr != nil {
  22780. cr.sendContainerState(containerMapKey)
  22781. }
  22782. mk = dd.DecodeFloat(false)
  22783. if cr != nil {
  22784. cr.sendContainerState(containerMapValue)
  22785. }
  22786. mv = uint16(dd.DecodeUint(16))
  22787. if v != nil {
  22788. v[mk] = mv
  22789. }
  22790. }
  22791. }
  22792. if cr != nil {
  22793. cr.sendContainerState(containerMapEnd)
  22794. }
  22795. return v, changed
  22796. }
  22797. func (f *decFnInfo) fastpathDecMapFloat64Uint32R(rv reflect.Value) {
  22798. if rv.CanAddr() {
  22799. vp := rv.Addr().Interface().(*map[float64]uint32)
  22800. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  22801. if changed {
  22802. *vp = v
  22803. }
  22804. } else {
  22805. v := rv.Interface().(map[float64]uint32)
  22806. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  22807. }
  22808. }
  22809. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, checkNil bool, d *Decoder) {
  22810. v, changed := f.DecMapFloat64Uint32V(*vp, checkNil, true, d)
  22811. if changed {
  22812. *vp = v
  22813. }
  22814. }
  22815. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, checkNil bool, canChange bool,
  22816. d *Decoder) (_ map[float64]uint32, changed bool) {
  22817. dd := d.d
  22818. cr := d.cr
  22819. if checkNil && dd.TryDecodeAsNil() {
  22820. if v != nil {
  22821. changed = true
  22822. }
  22823. return nil, changed
  22824. }
  22825. containerLen := dd.ReadMapStart()
  22826. if canChange && v == nil {
  22827. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22828. v = make(map[float64]uint32, xlen)
  22829. changed = true
  22830. }
  22831. var mk float64
  22832. var mv uint32
  22833. if containerLen > 0 {
  22834. for j := 0; j < containerLen; j++ {
  22835. if cr != nil {
  22836. cr.sendContainerState(containerMapKey)
  22837. }
  22838. mk = dd.DecodeFloat(false)
  22839. if cr != nil {
  22840. cr.sendContainerState(containerMapValue)
  22841. }
  22842. mv = uint32(dd.DecodeUint(32))
  22843. if v != nil {
  22844. v[mk] = mv
  22845. }
  22846. }
  22847. } else if containerLen < 0 {
  22848. for j := 0; !dd.CheckBreak(); j++ {
  22849. if cr != nil {
  22850. cr.sendContainerState(containerMapKey)
  22851. }
  22852. mk = dd.DecodeFloat(false)
  22853. if cr != nil {
  22854. cr.sendContainerState(containerMapValue)
  22855. }
  22856. mv = uint32(dd.DecodeUint(32))
  22857. if v != nil {
  22858. v[mk] = mv
  22859. }
  22860. }
  22861. }
  22862. if cr != nil {
  22863. cr.sendContainerState(containerMapEnd)
  22864. }
  22865. return v, changed
  22866. }
  22867. func (f *decFnInfo) fastpathDecMapFloat64Uint64R(rv reflect.Value) {
  22868. if rv.CanAddr() {
  22869. vp := rv.Addr().Interface().(*map[float64]uint64)
  22870. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  22871. if changed {
  22872. *vp = v
  22873. }
  22874. } else {
  22875. v := rv.Interface().(map[float64]uint64)
  22876. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  22877. }
  22878. }
  22879. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, checkNil bool, d *Decoder) {
  22880. v, changed := f.DecMapFloat64Uint64V(*vp, checkNil, true, d)
  22881. if changed {
  22882. *vp = v
  22883. }
  22884. }
  22885. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, checkNil bool, canChange bool,
  22886. d *Decoder) (_ map[float64]uint64, changed bool) {
  22887. dd := d.d
  22888. cr := d.cr
  22889. if checkNil && dd.TryDecodeAsNil() {
  22890. if v != nil {
  22891. changed = true
  22892. }
  22893. return nil, changed
  22894. }
  22895. containerLen := dd.ReadMapStart()
  22896. if canChange && v == nil {
  22897. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22898. v = make(map[float64]uint64, xlen)
  22899. changed = true
  22900. }
  22901. var mk float64
  22902. var mv uint64
  22903. if containerLen > 0 {
  22904. for j := 0; j < containerLen; j++ {
  22905. if cr != nil {
  22906. cr.sendContainerState(containerMapKey)
  22907. }
  22908. mk = dd.DecodeFloat(false)
  22909. if cr != nil {
  22910. cr.sendContainerState(containerMapValue)
  22911. }
  22912. mv = dd.DecodeUint(64)
  22913. if v != nil {
  22914. v[mk] = mv
  22915. }
  22916. }
  22917. } else if containerLen < 0 {
  22918. for j := 0; !dd.CheckBreak(); j++ {
  22919. if cr != nil {
  22920. cr.sendContainerState(containerMapKey)
  22921. }
  22922. mk = dd.DecodeFloat(false)
  22923. if cr != nil {
  22924. cr.sendContainerState(containerMapValue)
  22925. }
  22926. mv = dd.DecodeUint(64)
  22927. if v != nil {
  22928. v[mk] = mv
  22929. }
  22930. }
  22931. }
  22932. if cr != nil {
  22933. cr.sendContainerState(containerMapEnd)
  22934. }
  22935. return v, changed
  22936. }
  22937. func (f *decFnInfo) fastpathDecMapFloat64UintptrR(rv reflect.Value) {
  22938. if rv.CanAddr() {
  22939. vp := rv.Addr().Interface().(*map[float64]uintptr)
  22940. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  22941. if changed {
  22942. *vp = v
  22943. }
  22944. } else {
  22945. v := rv.Interface().(map[float64]uintptr)
  22946. fastpathTV.DecMapFloat64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  22947. }
  22948. }
  22949. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, checkNil bool, d *Decoder) {
  22950. v, changed := f.DecMapFloat64UintptrV(*vp, checkNil, true, d)
  22951. if changed {
  22952. *vp = v
  22953. }
  22954. }
  22955. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, checkNil bool, canChange bool,
  22956. d *Decoder) (_ map[float64]uintptr, changed bool) {
  22957. dd := d.d
  22958. cr := d.cr
  22959. if checkNil && dd.TryDecodeAsNil() {
  22960. if v != nil {
  22961. changed = true
  22962. }
  22963. return nil, changed
  22964. }
  22965. containerLen := dd.ReadMapStart()
  22966. if canChange && v == nil {
  22967. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22968. v = make(map[float64]uintptr, xlen)
  22969. changed = true
  22970. }
  22971. var mk float64
  22972. var mv uintptr
  22973. if containerLen > 0 {
  22974. for j := 0; j < containerLen; j++ {
  22975. if cr != nil {
  22976. cr.sendContainerState(containerMapKey)
  22977. }
  22978. mk = dd.DecodeFloat(false)
  22979. if cr != nil {
  22980. cr.sendContainerState(containerMapValue)
  22981. }
  22982. mv = uintptr(dd.DecodeUint(uintBitsize))
  22983. if v != nil {
  22984. v[mk] = mv
  22985. }
  22986. }
  22987. } else if containerLen < 0 {
  22988. for j := 0; !dd.CheckBreak(); j++ {
  22989. if cr != nil {
  22990. cr.sendContainerState(containerMapKey)
  22991. }
  22992. mk = dd.DecodeFloat(false)
  22993. if cr != nil {
  22994. cr.sendContainerState(containerMapValue)
  22995. }
  22996. mv = uintptr(dd.DecodeUint(uintBitsize))
  22997. if v != nil {
  22998. v[mk] = mv
  22999. }
  23000. }
  23001. }
  23002. if cr != nil {
  23003. cr.sendContainerState(containerMapEnd)
  23004. }
  23005. return v, changed
  23006. }
  23007. func (f *decFnInfo) fastpathDecMapFloat64IntR(rv reflect.Value) {
  23008. if rv.CanAddr() {
  23009. vp := rv.Addr().Interface().(*map[float64]int)
  23010. v, changed := fastpathTV.DecMapFloat64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  23011. if changed {
  23012. *vp = v
  23013. }
  23014. } else {
  23015. v := rv.Interface().(map[float64]int)
  23016. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, f.d)
  23017. }
  23018. }
  23019. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, checkNil bool, d *Decoder) {
  23020. v, changed := f.DecMapFloat64IntV(*vp, checkNil, true, d)
  23021. if changed {
  23022. *vp = v
  23023. }
  23024. }
  23025. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, checkNil bool, canChange bool,
  23026. d *Decoder) (_ map[float64]int, changed bool) {
  23027. dd := d.d
  23028. cr := d.cr
  23029. if checkNil && dd.TryDecodeAsNil() {
  23030. if v != nil {
  23031. changed = true
  23032. }
  23033. return nil, changed
  23034. }
  23035. containerLen := dd.ReadMapStart()
  23036. if canChange && v == nil {
  23037. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23038. v = make(map[float64]int, xlen)
  23039. changed = true
  23040. }
  23041. var mk float64
  23042. var mv int
  23043. if containerLen > 0 {
  23044. for j := 0; j < containerLen; j++ {
  23045. if cr != nil {
  23046. cr.sendContainerState(containerMapKey)
  23047. }
  23048. mk = dd.DecodeFloat(false)
  23049. if cr != nil {
  23050. cr.sendContainerState(containerMapValue)
  23051. }
  23052. mv = int(dd.DecodeInt(intBitsize))
  23053. if v != nil {
  23054. v[mk] = mv
  23055. }
  23056. }
  23057. } else if containerLen < 0 {
  23058. for j := 0; !dd.CheckBreak(); j++ {
  23059. if cr != nil {
  23060. cr.sendContainerState(containerMapKey)
  23061. }
  23062. mk = dd.DecodeFloat(false)
  23063. if cr != nil {
  23064. cr.sendContainerState(containerMapValue)
  23065. }
  23066. mv = int(dd.DecodeInt(intBitsize))
  23067. if v != nil {
  23068. v[mk] = mv
  23069. }
  23070. }
  23071. }
  23072. if cr != nil {
  23073. cr.sendContainerState(containerMapEnd)
  23074. }
  23075. return v, changed
  23076. }
  23077. func (f *decFnInfo) fastpathDecMapFloat64Int8R(rv reflect.Value) {
  23078. if rv.CanAddr() {
  23079. vp := rv.Addr().Interface().(*map[float64]int8)
  23080. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  23081. if changed {
  23082. *vp = v
  23083. }
  23084. } else {
  23085. v := rv.Interface().(map[float64]int8)
  23086. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, f.d)
  23087. }
  23088. }
  23089. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, checkNil bool, d *Decoder) {
  23090. v, changed := f.DecMapFloat64Int8V(*vp, checkNil, true, d)
  23091. if changed {
  23092. *vp = v
  23093. }
  23094. }
  23095. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, checkNil bool, canChange bool,
  23096. d *Decoder) (_ map[float64]int8, changed bool) {
  23097. dd := d.d
  23098. cr := d.cr
  23099. if checkNil && dd.TryDecodeAsNil() {
  23100. if v != nil {
  23101. changed = true
  23102. }
  23103. return nil, changed
  23104. }
  23105. containerLen := dd.ReadMapStart()
  23106. if canChange && v == nil {
  23107. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23108. v = make(map[float64]int8, xlen)
  23109. changed = true
  23110. }
  23111. var mk float64
  23112. var mv int8
  23113. if containerLen > 0 {
  23114. for j := 0; j < containerLen; j++ {
  23115. if cr != nil {
  23116. cr.sendContainerState(containerMapKey)
  23117. }
  23118. mk = dd.DecodeFloat(false)
  23119. if cr != nil {
  23120. cr.sendContainerState(containerMapValue)
  23121. }
  23122. mv = int8(dd.DecodeInt(8))
  23123. if v != nil {
  23124. v[mk] = mv
  23125. }
  23126. }
  23127. } else if containerLen < 0 {
  23128. for j := 0; !dd.CheckBreak(); j++ {
  23129. if cr != nil {
  23130. cr.sendContainerState(containerMapKey)
  23131. }
  23132. mk = dd.DecodeFloat(false)
  23133. if cr != nil {
  23134. cr.sendContainerState(containerMapValue)
  23135. }
  23136. mv = int8(dd.DecodeInt(8))
  23137. if v != nil {
  23138. v[mk] = mv
  23139. }
  23140. }
  23141. }
  23142. if cr != nil {
  23143. cr.sendContainerState(containerMapEnd)
  23144. }
  23145. return v, changed
  23146. }
  23147. func (f *decFnInfo) fastpathDecMapFloat64Int16R(rv reflect.Value) {
  23148. if rv.CanAddr() {
  23149. vp := rv.Addr().Interface().(*map[float64]int16)
  23150. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  23151. if changed {
  23152. *vp = v
  23153. }
  23154. } else {
  23155. v := rv.Interface().(map[float64]int16)
  23156. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, f.d)
  23157. }
  23158. }
  23159. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, checkNil bool, d *Decoder) {
  23160. v, changed := f.DecMapFloat64Int16V(*vp, checkNil, true, d)
  23161. if changed {
  23162. *vp = v
  23163. }
  23164. }
  23165. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, checkNil bool, canChange bool,
  23166. d *Decoder) (_ map[float64]int16, changed bool) {
  23167. dd := d.d
  23168. cr := d.cr
  23169. if checkNil && dd.TryDecodeAsNil() {
  23170. if v != nil {
  23171. changed = true
  23172. }
  23173. return nil, changed
  23174. }
  23175. containerLen := dd.ReadMapStart()
  23176. if canChange && v == nil {
  23177. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23178. v = make(map[float64]int16, xlen)
  23179. changed = true
  23180. }
  23181. var mk float64
  23182. var mv int16
  23183. if containerLen > 0 {
  23184. for j := 0; j < containerLen; j++ {
  23185. if cr != nil {
  23186. cr.sendContainerState(containerMapKey)
  23187. }
  23188. mk = dd.DecodeFloat(false)
  23189. if cr != nil {
  23190. cr.sendContainerState(containerMapValue)
  23191. }
  23192. mv = int16(dd.DecodeInt(16))
  23193. if v != nil {
  23194. v[mk] = mv
  23195. }
  23196. }
  23197. } else if containerLen < 0 {
  23198. for j := 0; !dd.CheckBreak(); j++ {
  23199. if cr != nil {
  23200. cr.sendContainerState(containerMapKey)
  23201. }
  23202. mk = dd.DecodeFloat(false)
  23203. if cr != nil {
  23204. cr.sendContainerState(containerMapValue)
  23205. }
  23206. mv = int16(dd.DecodeInt(16))
  23207. if v != nil {
  23208. v[mk] = mv
  23209. }
  23210. }
  23211. }
  23212. if cr != nil {
  23213. cr.sendContainerState(containerMapEnd)
  23214. }
  23215. return v, changed
  23216. }
  23217. func (f *decFnInfo) fastpathDecMapFloat64Int32R(rv reflect.Value) {
  23218. if rv.CanAddr() {
  23219. vp := rv.Addr().Interface().(*map[float64]int32)
  23220. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  23221. if changed {
  23222. *vp = v
  23223. }
  23224. } else {
  23225. v := rv.Interface().(map[float64]int32)
  23226. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, f.d)
  23227. }
  23228. }
  23229. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, checkNil bool, d *Decoder) {
  23230. v, changed := f.DecMapFloat64Int32V(*vp, checkNil, true, d)
  23231. if changed {
  23232. *vp = v
  23233. }
  23234. }
  23235. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, checkNil bool, canChange bool,
  23236. d *Decoder) (_ map[float64]int32, changed bool) {
  23237. dd := d.d
  23238. cr := d.cr
  23239. if checkNil && dd.TryDecodeAsNil() {
  23240. if v != nil {
  23241. changed = true
  23242. }
  23243. return nil, changed
  23244. }
  23245. containerLen := dd.ReadMapStart()
  23246. if canChange && v == nil {
  23247. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23248. v = make(map[float64]int32, xlen)
  23249. changed = true
  23250. }
  23251. var mk float64
  23252. var mv int32
  23253. if containerLen > 0 {
  23254. for j := 0; j < containerLen; j++ {
  23255. if cr != nil {
  23256. cr.sendContainerState(containerMapKey)
  23257. }
  23258. mk = dd.DecodeFloat(false)
  23259. if cr != nil {
  23260. cr.sendContainerState(containerMapValue)
  23261. }
  23262. mv = int32(dd.DecodeInt(32))
  23263. if v != nil {
  23264. v[mk] = mv
  23265. }
  23266. }
  23267. } else if containerLen < 0 {
  23268. for j := 0; !dd.CheckBreak(); j++ {
  23269. if cr != nil {
  23270. cr.sendContainerState(containerMapKey)
  23271. }
  23272. mk = dd.DecodeFloat(false)
  23273. if cr != nil {
  23274. cr.sendContainerState(containerMapValue)
  23275. }
  23276. mv = int32(dd.DecodeInt(32))
  23277. if v != nil {
  23278. v[mk] = mv
  23279. }
  23280. }
  23281. }
  23282. if cr != nil {
  23283. cr.sendContainerState(containerMapEnd)
  23284. }
  23285. return v, changed
  23286. }
  23287. func (f *decFnInfo) fastpathDecMapFloat64Int64R(rv reflect.Value) {
  23288. if rv.CanAddr() {
  23289. vp := rv.Addr().Interface().(*map[float64]int64)
  23290. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  23291. if changed {
  23292. *vp = v
  23293. }
  23294. } else {
  23295. v := rv.Interface().(map[float64]int64)
  23296. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, f.d)
  23297. }
  23298. }
  23299. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, checkNil bool, d *Decoder) {
  23300. v, changed := f.DecMapFloat64Int64V(*vp, checkNil, true, d)
  23301. if changed {
  23302. *vp = v
  23303. }
  23304. }
  23305. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, checkNil bool, canChange bool,
  23306. d *Decoder) (_ map[float64]int64, changed bool) {
  23307. dd := d.d
  23308. cr := d.cr
  23309. if checkNil && dd.TryDecodeAsNil() {
  23310. if v != nil {
  23311. changed = true
  23312. }
  23313. return nil, changed
  23314. }
  23315. containerLen := dd.ReadMapStart()
  23316. if canChange && v == nil {
  23317. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23318. v = make(map[float64]int64, xlen)
  23319. changed = true
  23320. }
  23321. var mk float64
  23322. var mv int64
  23323. if containerLen > 0 {
  23324. for j := 0; j < containerLen; j++ {
  23325. if cr != nil {
  23326. cr.sendContainerState(containerMapKey)
  23327. }
  23328. mk = dd.DecodeFloat(false)
  23329. if cr != nil {
  23330. cr.sendContainerState(containerMapValue)
  23331. }
  23332. mv = dd.DecodeInt(64)
  23333. if v != nil {
  23334. v[mk] = mv
  23335. }
  23336. }
  23337. } else if containerLen < 0 {
  23338. for j := 0; !dd.CheckBreak(); j++ {
  23339. if cr != nil {
  23340. cr.sendContainerState(containerMapKey)
  23341. }
  23342. mk = dd.DecodeFloat(false)
  23343. if cr != nil {
  23344. cr.sendContainerState(containerMapValue)
  23345. }
  23346. mv = dd.DecodeInt(64)
  23347. if v != nil {
  23348. v[mk] = mv
  23349. }
  23350. }
  23351. }
  23352. if cr != nil {
  23353. cr.sendContainerState(containerMapEnd)
  23354. }
  23355. return v, changed
  23356. }
  23357. func (f *decFnInfo) fastpathDecMapFloat64Float32R(rv reflect.Value) {
  23358. if rv.CanAddr() {
  23359. vp := rv.Addr().Interface().(*map[float64]float32)
  23360. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  23361. if changed {
  23362. *vp = v
  23363. }
  23364. } else {
  23365. v := rv.Interface().(map[float64]float32)
  23366. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, f.d)
  23367. }
  23368. }
  23369. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, checkNil bool, d *Decoder) {
  23370. v, changed := f.DecMapFloat64Float32V(*vp, checkNil, true, d)
  23371. if changed {
  23372. *vp = v
  23373. }
  23374. }
  23375. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, checkNil bool, canChange bool,
  23376. d *Decoder) (_ map[float64]float32, changed bool) {
  23377. dd := d.d
  23378. cr := d.cr
  23379. if checkNil && dd.TryDecodeAsNil() {
  23380. if v != nil {
  23381. changed = true
  23382. }
  23383. return nil, changed
  23384. }
  23385. containerLen := dd.ReadMapStart()
  23386. if canChange && v == nil {
  23387. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23388. v = make(map[float64]float32, xlen)
  23389. changed = true
  23390. }
  23391. var mk float64
  23392. var mv float32
  23393. if containerLen > 0 {
  23394. for j := 0; j < containerLen; j++ {
  23395. if cr != nil {
  23396. cr.sendContainerState(containerMapKey)
  23397. }
  23398. mk = dd.DecodeFloat(false)
  23399. if cr != nil {
  23400. cr.sendContainerState(containerMapValue)
  23401. }
  23402. mv = float32(dd.DecodeFloat(true))
  23403. if v != nil {
  23404. v[mk] = mv
  23405. }
  23406. }
  23407. } else if containerLen < 0 {
  23408. for j := 0; !dd.CheckBreak(); j++ {
  23409. if cr != nil {
  23410. cr.sendContainerState(containerMapKey)
  23411. }
  23412. mk = dd.DecodeFloat(false)
  23413. if cr != nil {
  23414. cr.sendContainerState(containerMapValue)
  23415. }
  23416. mv = float32(dd.DecodeFloat(true))
  23417. if v != nil {
  23418. v[mk] = mv
  23419. }
  23420. }
  23421. }
  23422. if cr != nil {
  23423. cr.sendContainerState(containerMapEnd)
  23424. }
  23425. return v, changed
  23426. }
  23427. func (f *decFnInfo) fastpathDecMapFloat64Float64R(rv reflect.Value) {
  23428. if rv.CanAddr() {
  23429. vp := rv.Addr().Interface().(*map[float64]float64)
  23430. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  23431. if changed {
  23432. *vp = v
  23433. }
  23434. } else {
  23435. v := rv.Interface().(map[float64]float64)
  23436. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, f.d)
  23437. }
  23438. }
  23439. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, checkNil bool, d *Decoder) {
  23440. v, changed := f.DecMapFloat64Float64V(*vp, checkNil, true, d)
  23441. if changed {
  23442. *vp = v
  23443. }
  23444. }
  23445. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, checkNil bool, canChange bool,
  23446. d *Decoder) (_ map[float64]float64, changed bool) {
  23447. dd := d.d
  23448. cr := d.cr
  23449. if checkNil && dd.TryDecodeAsNil() {
  23450. if v != nil {
  23451. changed = true
  23452. }
  23453. return nil, changed
  23454. }
  23455. containerLen := dd.ReadMapStart()
  23456. if canChange && v == nil {
  23457. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23458. v = make(map[float64]float64, xlen)
  23459. changed = true
  23460. }
  23461. var mk float64
  23462. var mv float64
  23463. if containerLen > 0 {
  23464. for j := 0; j < containerLen; j++ {
  23465. if cr != nil {
  23466. cr.sendContainerState(containerMapKey)
  23467. }
  23468. mk = dd.DecodeFloat(false)
  23469. if cr != nil {
  23470. cr.sendContainerState(containerMapValue)
  23471. }
  23472. mv = dd.DecodeFloat(false)
  23473. if v != nil {
  23474. v[mk] = mv
  23475. }
  23476. }
  23477. } else if containerLen < 0 {
  23478. for j := 0; !dd.CheckBreak(); j++ {
  23479. if cr != nil {
  23480. cr.sendContainerState(containerMapKey)
  23481. }
  23482. mk = dd.DecodeFloat(false)
  23483. if cr != nil {
  23484. cr.sendContainerState(containerMapValue)
  23485. }
  23486. mv = dd.DecodeFloat(false)
  23487. if v != nil {
  23488. v[mk] = mv
  23489. }
  23490. }
  23491. }
  23492. if cr != nil {
  23493. cr.sendContainerState(containerMapEnd)
  23494. }
  23495. return v, changed
  23496. }
  23497. func (f *decFnInfo) fastpathDecMapFloat64BoolR(rv reflect.Value) {
  23498. if rv.CanAddr() {
  23499. vp := rv.Addr().Interface().(*map[float64]bool)
  23500. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  23501. if changed {
  23502. *vp = v
  23503. }
  23504. } else {
  23505. v := rv.Interface().(map[float64]bool)
  23506. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, f.d)
  23507. }
  23508. }
  23509. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, checkNil bool, d *Decoder) {
  23510. v, changed := f.DecMapFloat64BoolV(*vp, checkNil, true, d)
  23511. if changed {
  23512. *vp = v
  23513. }
  23514. }
  23515. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, checkNil bool, canChange bool,
  23516. d *Decoder) (_ map[float64]bool, changed bool) {
  23517. dd := d.d
  23518. cr := d.cr
  23519. if checkNil && dd.TryDecodeAsNil() {
  23520. if v != nil {
  23521. changed = true
  23522. }
  23523. return nil, changed
  23524. }
  23525. containerLen := dd.ReadMapStart()
  23526. if canChange && v == nil {
  23527. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23528. v = make(map[float64]bool, xlen)
  23529. changed = true
  23530. }
  23531. var mk float64
  23532. var mv bool
  23533. if containerLen > 0 {
  23534. for j := 0; j < containerLen; j++ {
  23535. if cr != nil {
  23536. cr.sendContainerState(containerMapKey)
  23537. }
  23538. mk = dd.DecodeFloat(false)
  23539. if cr != nil {
  23540. cr.sendContainerState(containerMapValue)
  23541. }
  23542. mv = dd.DecodeBool()
  23543. if v != nil {
  23544. v[mk] = mv
  23545. }
  23546. }
  23547. } else if containerLen < 0 {
  23548. for j := 0; !dd.CheckBreak(); j++ {
  23549. if cr != nil {
  23550. cr.sendContainerState(containerMapKey)
  23551. }
  23552. mk = dd.DecodeFloat(false)
  23553. if cr != nil {
  23554. cr.sendContainerState(containerMapValue)
  23555. }
  23556. mv = dd.DecodeBool()
  23557. if v != nil {
  23558. v[mk] = mv
  23559. }
  23560. }
  23561. }
  23562. if cr != nil {
  23563. cr.sendContainerState(containerMapEnd)
  23564. }
  23565. return v, changed
  23566. }
  23567. func (f *decFnInfo) fastpathDecMapUintIntfR(rv reflect.Value) {
  23568. if rv.CanAddr() {
  23569. vp := rv.Addr().Interface().(*map[uint]interface{})
  23570. v, changed := fastpathTV.DecMapUintIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  23571. if changed {
  23572. *vp = v
  23573. }
  23574. } else {
  23575. v := rv.Interface().(map[uint]interface{})
  23576. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, f.d)
  23577. }
  23578. }
  23579. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, checkNil bool, d *Decoder) {
  23580. v, changed := f.DecMapUintIntfV(*vp, checkNil, true, d)
  23581. if changed {
  23582. *vp = v
  23583. }
  23584. }
  23585. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, checkNil bool, canChange bool,
  23586. d *Decoder) (_ map[uint]interface{}, changed bool) {
  23587. dd := d.d
  23588. cr := d.cr
  23589. if checkNil && dd.TryDecodeAsNil() {
  23590. if v != nil {
  23591. changed = true
  23592. }
  23593. return nil, changed
  23594. }
  23595. containerLen := dd.ReadMapStart()
  23596. if canChange && v == nil {
  23597. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23598. v = make(map[uint]interface{}, xlen)
  23599. changed = true
  23600. }
  23601. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  23602. var mk uint
  23603. var mv interface{}
  23604. if containerLen > 0 {
  23605. for j := 0; j < containerLen; j++ {
  23606. if cr != nil {
  23607. cr.sendContainerState(containerMapKey)
  23608. }
  23609. mk = uint(dd.DecodeUint(uintBitsize))
  23610. if cr != nil {
  23611. cr.sendContainerState(containerMapValue)
  23612. }
  23613. if mapGet {
  23614. mv = v[mk]
  23615. } else {
  23616. mv = nil
  23617. }
  23618. d.decode(&mv)
  23619. if v != nil {
  23620. v[mk] = mv
  23621. }
  23622. }
  23623. } else if containerLen < 0 {
  23624. for j := 0; !dd.CheckBreak(); j++ {
  23625. if cr != nil {
  23626. cr.sendContainerState(containerMapKey)
  23627. }
  23628. mk = uint(dd.DecodeUint(uintBitsize))
  23629. if cr != nil {
  23630. cr.sendContainerState(containerMapValue)
  23631. }
  23632. if mapGet {
  23633. mv = v[mk]
  23634. } else {
  23635. mv = nil
  23636. }
  23637. d.decode(&mv)
  23638. if v != nil {
  23639. v[mk] = mv
  23640. }
  23641. }
  23642. }
  23643. if cr != nil {
  23644. cr.sendContainerState(containerMapEnd)
  23645. }
  23646. return v, changed
  23647. }
  23648. func (f *decFnInfo) fastpathDecMapUintStringR(rv reflect.Value) {
  23649. if rv.CanAddr() {
  23650. vp := rv.Addr().Interface().(*map[uint]string)
  23651. v, changed := fastpathTV.DecMapUintStringV(*vp, fastpathCheckNilFalse, true, f.d)
  23652. if changed {
  23653. *vp = v
  23654. }
  23655. } else {
  23656. v := rv.Interface().(map[uint]string)
  23657. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, f.d)
  23658. }
  23659. }
  23660. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, checkNil bool, d *Decoder) {
  23661. v, changed := f.DecMapUintStringV(*vp, checkNil, true, d)
  23662. if changed {
  23663. *vp = v
  23664. }
  23665. }
  23666. func (_ fastpathT) DecMapUintStringV(v map[uint]string, checkNil bool, canChange bool,
  23667. d *Decoder) (_ map[uint]string, changed bool) {
  23668. dd := d.d
  23669. cr := d.cr
  23670. if checkNil && dd.TryDecodeAsNil() {
  23671. if v != nil {
  23672. changed = true
  23673. }
  23674. return nil, changed
  23675. }
  23676. containerLen := dd.ReadMapStart()
  23677. if canChange && v == nil {
  23678. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23679. v = make(map[uint]string, xlen)
  23680. changed = true
  23681. }
  23682. var mk uint
  23683. var mv string
  23684. if containerLen > 0 {
  23685. for j := 0; j < containerLen; j++ {
  23686. if cr != nil {
  23687. cr.sendContainerState(containerMapKey)
  23688. }
  23689. mk = uint(dd.DecodeUint(uintBitsize))
  23690. if cr != nil {
  23691. cr.sendContainerState(containerMapValue)
  23692. }
  23693. mv = dd.DecodeString()
  23694. if v != nil {
  23695. v[mk] = mv
  23696. }
  23697. }
  23698. } else if containerLen < 0 {
  23699. for j := 0; !dd.CheckBreak(); j++ {
  23700. if cr != nil {
  23701. cr.sendContainerState(containerMapKey)
  23702. }
  23703. mk = uint(dd.DecodeUint(uintBitsize))
  23704. if cr != nil {
  23705. cr.sendContainerState(containerMapValue)
  23706. }
  23707. mv = dd.DecodeString()
  23708. if v != nil {
  23709. v[mk] = mv
  23710. }
  23711. }
  23712. }
  23713. if cr != nil {
  23714. cr.sendContainerState(containerMapEnd)
  23715. }
  23716. return v, changed
  23717. }
  23718. func (f *decFnInfo) fastpathDecMapUintUintR(rv reflect.Value) {
  23719. if rv.CanAddr() {
  23720. vp := rv.Addr().Interface().(*map[uint]uint)
  23721. v, changed := fastpathTV.DecMapUintUintV(*vp, fastpathCheckNilFalse, true, f.d)
  23722. if changed {
  23723. *vp = v
  23724. }
  23725. } else {
  23726. v := rv.Interface().(map[uint]uint)
  23727. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, f.d)
  23728. }
  23729. }
  23730. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, checkNil bool, d *Decoder) {
  23731. v, changed := f.DecMapUintUintV(*vp, checkNil, true, d)
  23732. if changed {
  23733. *vp = v
  23734. }
  23735. }
  23736. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, checkNil bool, canChange bool,
  23737. d *Decoder) (_ map[uint]uint, changed bool) {
  23738. dd := d.d
  23739. cr := d.cr
  23740. if checkNil && dd.TryDecodeAsNil() {
  23741. if v != nil {
  23742. changed = true
  23743. }
  23744. return nil, changed
  23745. }
  23746. containerLen := dd.ReadMapStart()
  23747. if canChange && v == nil {
  23748. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23749. v = make(map[uint]uint, xlen)
  23750. changed = true
  23751. }
  23752. var mk uint
  23753. var mv uint
  23754. if containerLen > 0 {
  23755. for j := 0; j < containerLen; j++ {
  23756. if cr != nil {
  23757. cr.sendContainerState(containerMapKey)
  23758. }
  23759. mk = uint(dd.DecodeUint(uintBitsize))
  23760. if cr != nil {
  23761. cr.sendContainerState(containerMapValue)
  23762. }
  23763. mv = uint(dd.DecodeUint(uintBitsize))
  23764. if v != nil {
  23765. v[mk] = mv
  23766. }
  23767. }
  23768. } else if containerLen < 0 {
  23769. for j := 0; !dd.CheckBreak(); j++ {
  23770. if cr != nil {
  23771. cr.sendContainerState(containerMapKey)
  23772. }
  23773. mk = uint(dd.DecodeUint(uintBitsize))
  23774. if cr != nil {
  23775. cr.sendContainerState(containerMapValue)
  23776. }
  23777. mv = uint(dd.DecodeUint(uintBitsize))
  23778. if v != nil {
  23779. v[mk] = mv
  23780. }
  23781. }
  23782. }
  23783. if cr != nil {
  23784. cr.sendContainerState(containerMapEnd)
  23785. }
  23786. return v, changed
  23787. }
  23788. func (f *decFnInfo) fastpathDecMapUintUint8R(rv reflect.Value) {
  23789. if rv.CanAddr() {
  23790. vp := rv.Addr().Interface().(*map[uint]uint8)
  23791. v, changed := fastpathTV.DecMapUintUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  23792. if changed {
  23793. *vp = v
  23794. }
  23795. } else {
  23796. v := rv.Interface().(map[uint]uint8)
  23797. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, f.d)
  23798. }
  23799. }
  23800. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, checkNil bool, d *Decoder) {
  23801. v, changed := f.DecMapUintUint8V(*vp, checkNil, true, d)
  23802. if changed {
  23803. *vp = v
  23804. }
  23805. }
  23806. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, checkNil bool, canChange bool,
  23807. d *Decoder) (_ map[uint]uint8, changed bool) {
  23808. dd := d.d
  23809. cr := d.cr
  23810. if checkNil && dd.TryDecodeAsNil() {
  23811. if v != nil {
  23812. changed = true
  23813. }
  23814. return nil, changed
  23815. }
  23816. containerLen := dd.ReadMapStart()
  23817. if canChange && v == nil {
  23818. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23819. v = make(map[uint]uint8, xlen)
  23820. changed = true
  23821. }
  23822. var mk uint
  23823. var mv uint8
  23824. if containerLen > 0 {
  23825. for j := 0; j < containerLen; j++ {
  23826. if cr != nil {
  23827. cr.sendContainerState(containerMapKey)
  23828. }
  23829. mk = uint(dd.DecodeUint(uintBitsize))
  23830. if cr != nil {
  23831. cr.sendContainerState(containerMapValue)
  23832. }
  23833. mv = uint8(dd.DecodeUint(8))
  23834. if v != nil {
  23835. v[mk] = mv
  23836. }
  23837. }
  23838. } else if containerLen < 0 {
  23839. for j := 0; !dd.CheckBreak(); j++ {
  23840. if cr != nil {
  23841. cr.sendContainerState(containerMapKey)
  23842. }
  23843. mk = uint(dd.DecodeUint(uintBitsize))
  23844. if cr != nil {
  23845. cr.sendContainerState(containerMapValue)
  23846. }
  23847. mv = uint8(dd.DecodeUint(8))
  23848. if v != nil {
  23849. v[mk] = mv
  23850. }
  23851. }
  23852. }
  23853. if cr != nil {
  23854. cr.sendContainerState(containerMapEnd)
  23855. }
  23856. return v, changed
  23857. }
  23858. func (f *decFnInfo) fastpathDecMapUintUint16R(rv reflect.Value) {
  23859. if rv.CanAddr() {
  23860. vp := rv.Addr().Interface().(*map[uint]uint16)
  23861. v, changed := fastpathTV.DecMapUintUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  23862. if changed {
  23863. *vp = v
  23864. }
  23865. } else {
  23866. v := rv.Interface().(map[uint]uint16)
  23867. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, f.d)
  23868. }
  23869. }
  23870. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, checkNil bool, d *Decoder) {
  23871. v, changed := f.DecMapUintUint16V(*vp, checkNil, true, d)
  23872. if changed {
  23873. *vp = v
  23874. }
  23875. }
  23876. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, checkNil bool, canChange bool,
  23877. d *Decoder) (_ map[uint]uint16, changed bool) {
  23878. dd := d.d
  23879. cr := d.cr
  23880. if checkNil && dd.TryDecodeAsNil() {
  23881. if v != nil {
  23882. changed = true
  23883. }
  23884. return nil, changed
  23885. }
  23886. containerLen := dd.ReadMapStart()
  23887. if canChange && v == nil {
  23888. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23889. v = make(map[uint]uint16, xlen)
  23890. changed = true
  23891. }
  23892. var mk uint
  23893. var mv uint16
  23894. if containerLen > 0 {
  23895. for j := 0; j < containerLen; j++ {
  23896. if cr != nil {
  23897. cr.sendContainerState(containerMapKey)
  23898. }
  23899. mk = uint(dd.DecodeUint(uintBitsize))
  23900. if cr != nil {
  23901. cr.sendContainerState(containerMapValue)
  23902. }
  23903. mv = uint16(dd.DecodeUint(16))
  23904. if v != nil {
  23905. v[mk] = mv
  23906. }
  23907. }
  23908. } else if containerLen < 0 {
  23909. for j := 0; !dd.CheckBreak(); j++ {
  23910. if cr != nil {
  23911. cr.sendContainerState(containerMapKey)
  23912. }
  23913. mk = uint(dd.DecodeUint(uintBitsize))
  23914. if cr != nil {
  23915. cr.sendContainerState(containerMapValue)
  23916. }
  23917. mv = uint16(dd.DecodeUint(16))
  23918. if v != nil {
  23919. v[mk] = mv
  23920. }
  23921. }
  23922. }
  23923. if cr != nil {
  23924. cr.sendContainerState(containerMapEnd)
  23925. }
  23926. return v, changed
  23927. }
  23928. func (f *decFnInfo) fastpathDecMapUintUint32R(rv reflect.Value) {
  23929. if rv.CanAddr() {
  23930. vp := rv.Addr().Interface().(*map[uint]uint32)
  23931. v, changed := fastpathTV.DecMapUintUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  23932. if changed {
  23933. *vp = v
  23934. }
  23935. } else {
  23936. v := rv.Interface().(map[uint]uint32)
  23937. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, f.d)
  23938. }
  23939. }
  23940. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, checkNil bool, d *Decoder) {
  23941. v, changed := f.DecMapUintUint32V(*vp, checkNil, true, d)
  23942. if changed {
  23943. *vp = v
  23944. }
  23945. }
  23946. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, checkNil bool, canChange bool,
  23947. d *Decoder) (_ map[uint]uint32, changed bool) {
  23948. dd := d.d
  23949. cr := d.cr
  23950. if checkNil && dd.TryDecodeAsNil() {
  23951. if v != nil {
  23952. changed = true
  23953. }
  23954. return nil, changed
  23955. }
  23956. containerLen := dd.ReadMapStart()
  23957. if canChange && v == nil {
  23958. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23959. v = make(map[uint]uint32, xlen)
  23960. changed = true
  23961. }
  23962. var mk uint
  23963. var mv uint32
  23964. if containerLen > 0 {
  23965. for j := 0; j < containerLen; j++ {
  23966. if cr != nil {
  23967. cr.sendContainerState(containerMapKey)
  23968. }
  23969. mk = uint(dd.DecodeUint(uintBitsize))
  23970. if cr != nil {
  23971. cr.sendContainerState(containerMapValue)
  23972. }
  23973. mv = uint32(dd.DecodeUint(32))
  23974. if v != nil {
  23975. v[mk] = mv
  23976. }
  23977. }
  23978. } else if containerLen < 0 {
  23979. for j := 0; !dd.CheckBreak(); j++ {
  23980. if cr != nil {
  23981. cr.sendContainerState(containerMapKey)
  23982. }
  23983. mk = uint(dd.DecodeUint(uintBitsize))
  23984. if cr != nil {
  23985. cr.sendContainerState(containerMapValue)
  23986. }
  23987. mv = uint32(dd.DecodeUint(32))
  23988. if v != nil {
  23989. v[mk] = mv
  23990. }
  23991. }
  23992. }
  23993. if cr != nil {
  23994. cr.sendContainerState(containerMapEnd)
  23995. }
  23996. return v, changed
  23997. }
  23998. func (f *decFnInfo) fastpathDecMapUintUint64R(rv reflect.Value) {
  23999. if rv.CanAddr() {
  24000. vp := rv.Addr().Interface().(*map[uint]uint64)
  24001. v, changed := fastpathTV.DecMapUintUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  24002. if changed {
  24003. *vp = v
  24004. }
  24005. } else {
  24006. v := rv.Interface().(map[uint]uint64)
  24007. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, f.d)
  24008. }
  24009. }
  24010. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, checkNil bool, d *Decoder) {
  24011. v, changed := f.DecMapUintUint64V(*vp, checkNil, true, d)
  24012. if changed {
  24013. *vp = v
  24014. }
  24015. }
  24016. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, checkNil bool, canChange bool,
  24017. d *Decoder) (_ map[uint]uint64, changed bool) {
  24018. dd := d.d
  24019. cr := d.cr
  24020. if checkNil && dd.TryDecodeAsNil() {
  24021. if v != nil {
  24022. changed = true
  24023. }
  24024. return nil, changed
  24025. }
  24026. containerLen := dd.ReadMapStart()
  24027. if canChange && v == nil {
  24028. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24029. v = make(map[uint]uint64, xlen)
  24030. changed = true
  24031. }
  24032. var mk uint
  24033. var mv uint64
  24034. if containerLen > 0 {
  24035. for j := 0; j < containerLen; j++ {
  24036. if cr != nil {
  24037. cr.sendContainerState(containerMapKey)
  24038. }
  24039. mk = uint(dd.DecodeUint(uintBitsize))
  24040. if cr != nil {
  24041. cr.sendContainerState(containerMapValue)
  24042. }
  24043. mv = dd.DecodeUint(64)
  24044. if v != nil {
  24045. v[mk] = mv
  24046. }
  24047. }
  24048. } else if containerLen < 0 {
  24049. for j := 0; !dd.CheckBreak(); j++ {
  24050. if cr != nil {
  24051. cr.sendContainerState(containerMapKey)
  24052. }
  24053. mk = uint(dd.DecodeUint(uintBitsize))
  24054. if cr != nil {
  24055. cr.sendContainerState(containerMapValue)
  24056. }
  24057. mv = dd.DecodeUint(64)
  24058. if v != nil {
  24059. v[mk] = mv
  24060. }
  24061. }
  24062. }
  24063. if cr != nil {
  24064. cr.sendContainerState(containerMapEnd)
  24065. }
  24066. return v, changed
  24067. }
  24068. func (f *decFnInfo) fastpathDecMapUintUintptrR(rv reflect.Value) {
  24069. if rv.CanAddr() {
  24070. vp := rv.Addr().Interface().(*map[uint]uintptr)
  24071. v, changed := fastpathTV.DecMapUintUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  24072. if changed {
  24073. *vp = v
  24074. }
  24075. } else {
  24076. v := rv.Interface().(map[uint]uintptr)
  24077. fastpathTV.DecMapUintUintptrV(v, fastpathCheckNilFalse, false, f.d)
  24078. }
  24079. }
  24080. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, checkNil bool, d *Decoder) {
  24081. v, changed := f.DecMapUintUintptrV(*vp, checkNil, true, d)
  24082. if changed {
  24083. *vp = v
  24084. }
  24085. }
  24086. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, checkNil bool, canChange bool,
  24087. d *Decoder) (_ map[uint]uintptr, changed bool) {
  24088. dd := d.d
  24089. cr := d.cr
  24090. if checkNil && dd.TryDecodeAsNil() {
  24091. if v != nil {
  24092. changed = true
  24093. }
  24094. return nil, changed
  24095. }
  24096. containerLen := dd.ReadMapStart()
  24097. if canChange && v == nil {
  24098. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24099. v = make(map[uint]uintptr, xlen)
  24100. changed = true
  24101. }
  24102. var mk uint
  24103. var mv uintptr
  24104. if containerLen > 0 {
  24105. for j := 0; j < containerLen; j++ {
  24106. if cr != nil {
  24107. cr.sendContainerState(containerMapKey)
  24108. }
  24109. mk = uint(dd.DecodeUint(uintBitsize))
  24110. if cr != nil {
  24111. cr.sendContainerState(containerMapValue)
  24112. }
  24113. mv = uintptr(dd.DecodeUint(uintBitsize))
  24114. if v != nil {
  24115. v[mk] = mv
  24116. }
  24117. }
  24118. } else if containerLen < 0 {
  24119. for j := 0; !dd.CheckBreak(); j++ {
  24120. if cr != nil {
  24121. cr.sendContainerState(containerMapKey)
  24122. }
  24123. mk = uint(dd.DecodeUint(uintBitsize))
  24124. if cr != nil {
  24125. cr.sendContainerState(containerMapValue)
  24126. }
  24127. mv = uintptr(dd.DecodeUint(uintBitsize))
  24128. if v != nil {
  24129. v[mk] = mv
  24130. }
  24131. }
  24132. }
  24133. if cr != nil {
  24134. cr.sendContainerState(containerMapEnd)
  24135. }
  24136. return v, changed
  24137. }
  24138. func (f *decFnInfo) fastpathDecMapUintIntR(rv reflect.Value) {
  24139. if rv.CanAddr() {
  24140. vp := rv.Addr().Interface().(*map[uint]int)
  24141. v, changed := fastpathTV.DecMapUintIntV(*vp, fastpathCheckNilFalse, true, f.d)
  24142. if changed {
  24143. *vp = v
  24144. }
  24145. } else {
  24146. v := rv.Interface().(map[uint]int)
  24147. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, f.d)
  24148. }
  24149. }
  24150. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, checkNil bool, d *Decoder) {
  24151. v, changed := f.DecMapUintIntV(*vp, checkNil, true, d)
  24152. if changed {
  24153. *vp = v
  24154. }
  24155. }
  24156. func (_ fastpathT) DecMapUintIntV(v map[uint]int, checkNil bool, canChange bool,
  24157. d *Decoder) (_ map[uint]int, changed bool) {
  24158. dd := d.d
  24159. cr := d.cr
  24160. if checkNil && dd.TryDecodeAsNil() {
  24161. if v != nil {
  24162. changed = true
  24163. }
  24164. return nil, changed
  24165. }
  24166. containerLen := dd.ReadMapStart()
  24167. if canChange && v == nil {
  24168. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24169. v = make(map[uint]int, xlen)
  24170. changed = true
  24171. }
  24172. var mk uint
  24173. var mv int
  24174. if containerLen > 0 {
  24175. for j := 0; j < containerLen; j++ {
  24176. if cr != nil {
  24177. cr.sendContainerState(containerMapKey)
  24178. }
  24179. mk = uint(dd.DecodeUint(uintBitsize))
  24180. if cr != nil {
  24181. cr.sendContainerState(containerMapValue)
  24182. }
  24183. mv = int(dd.DecodeInt(intBitsize))
  24184. if v != nil {
  24185. v[mk] = mv
  24186. }
  24187. }
  24188. } else if containerLen < 0 {
  24189. for j := 0; !dd.CheckBreak(); j++ {
  24190. if cr != nil {
  24191. cr.sendContainerState(containerMapKey)
  24192. }
  24193. mk = uint(dd.DecodeUint(uintBitsize))
  24194. if cr != nil {
  24195. cr.sendContainerState(containerMapValue)
  24196. }
  24197. mv = int(dd.DecodeInt(intBitsize))
  24198. if v != nil {
  24199. v[mk] = mv
  24200. }
  24201. }
  24202. }
  24203. if cr != nil {
  24204. cr.sendContainerState(containerMapEnd)
  24205. }
  24206. return v, changed
  24207. }
  24208. func (f *decFnInfo) fastpathDecMapUintInt8R(rv reflect.Value) {
  24209. if rv.CanAddr() {
  24210. vp := rv.Addr().Interface().(*map[uint]int8)
  24211. v, changed := fastpathTV.DecMapUintInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  24212. if changed {
  24213. *vp = v
  24214. }
  24215. } else {
  24216. v := rv.Interface().(map[uint]int8)
  24217. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, f.d)
  24218. }
  24219. }
  24220. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, checkNil bool, d *Decoder) {
  24221. v, changed := f.DecMapUintInt8V(*vp, checkNil, true, d)
  24222. if changed {
  24223. *vp = v
  24224. }
  24225. }
  24226. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, checkNil bool, canChange bool,
  24227. d *Decoder) (_ map[uint]int8, changed bool) {
  24228. dd := d.d
  24229. cr := d.cr
  24230. if checkNil && dd.TryDecodeAsNil() {
  24231. if v != nil {
  24232. changed = true
  24233. }
  24234. return nil, changed
  24235. }
  24236. containerLen := dd.ReadMapStart()
  24237. if canChange && v == nil {
  24238. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24239. v = make(map[uint]int8, xlen)
  24240. changed = true
  24241. }
  24242. var mk uint
  24243. var mv int8
  24244. if containerLen > 0 {
  24245. for j := 0; j < containerLen; j++ {
  24246. if cr != nil {
  24247. cr.sendContainerState(containerMapKey)
  24248. }
  24249. mk = uint(dd.DecodeUint(uintBitsize))
  24250. if cr != nil {
  24251. cr.sendContainerState(containerMapValue)
  24252. }
  24253. mv = int8(dd.DecodeInt(8))
  24254. if v != nil {
  24255. v[mk] = mv
  24256. }
  24257. }
  24258. } else if containerLen < 0 {
  24259. for j := 0; !dd.CheckBreak(); j++ {
  24260. if cr != nil {
  24261. cr.sendContainerState(containerMapKey)
  24262. }
  24263. mk = uint(dd.DecodeUint(uintBitsize))
  24264. if cr != nil {
  24265. cr.sendContainerState(containerMapValue)
  24266. }
  24267. mv = int8(dd.DecodeInt(8))
  24268. if v != nil {
  24269. v[mk] = mv
  24270. }
  24271. }
  24272. }
  24273. if cr != nil {
  24274. cr.sendContainerState(containerMapEnd)
  24275. }
  24276. return v, changed
  24277. }
  24278. func (f *decFnInfo) fastpathDecMapUintInt16R(rv reflect.Value) {
  24279. if rv.CanAddr() {
  24280. vp := rv.Addr().Interface().(*map[uint]int16)
  24281. v, changed := fastpathTV.DecMapUintInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  24282. if changed {
  24283. *vp = v
  24284. }
  24285. } else {
  24286. v := rv.Interface().(map[uint]int16)
  24287. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, f.d)
  24288. }
  24289. }
  24290. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, checkNil bool, d *Decoder) {
  24291. v, changed := f.DecMapUintInt16V(*vp, checkNil, true, d)
  24292. if changed {
  24293. *vp = v
  24294. }
  24295. }
  24296. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, checkNil bool, canChange bool,
  24297. d *Decoder) (_ map[uint]int16, changed bool) {
  24298. dd := d.d
  24299. cr := d.cr
  24300. if checkNil && dd.TryDecodeAsNil() {
  24301. if v != nil {
  24302. changed = true
  24303. }
  24304. return nil, changed
  24305. }
  24306. containerLen := dd.ReadMapStart()
  24307. if canChange && v == nil {
  24308. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24309. v = make(map[uint]int16, xlen)
  24310. changed = true
  24311. }
  24312. var mk uint
  24313. var mv int16
  24314. if containerLen > 0 {
  24315. for j := 0; j < containerLen; j++ {
  24316. if cr != nil {
  24317. cr.sendContainerState(containerMapKey)
  24318. }
  24319. mk = uint(dd.DecodeUint(uintBitsize))
  24320. if cr != nil {
  24321. cr.sendContainerState(containerMapValue)
  24322. }
  24323. mv = int16(dd.DecodeInt(16))
  24324. if v != nil {
  24325. v[mk] = mv
  24326. }
  24327. }
  24328. } else if containerLen < 0 {
  24329. for j := 0; !dd.CheckBreak(); j++ {
  24330. if cr != nil {
  24331. cr.sendContainerState(containerMapKey)
  24332. }
  24333. mk = uint(dd.DecodeUint(uintBitsize))
  24334. if cr != nil {
  24335. cr.sendContainerState(containerMapValue)
  24336. }
  24337. mv = int16(dd.DecodeInt(16))
  24338. if v != nil {
  24339. v[mk] = mv
  24340. }
  24341. }
  24342. }
  24343. if cr != nil {
  24344. cr.sendContainerState(containerMapEnd)
  24345. }
  24346. return v, changed
  24347. }
  24348. func (f *decFnInfo) fastpathDecMapUintInt32R(rv reflect.Value) {
  24349. if rv.CanAddr() {
  24350. vp := rv.Addr().Interface().(*map[uint]int32)
  24351. v, changed := fastpathTV.DecMapUintInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  24352. if changed {
  24353. *vp = v
  24354. }
  24355. } else {
  24356. v := rv.Interface().(map[uint]int32)
  24357. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, f.d)
  24358. }
  24359. }
  24360. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, checkNil bool, d *Decoder) {
  24361. v, changed := f.DecMapUintInt32V(*vp, checkNil, true, d)
  24362. if changed {
  24363. *vp = v
  24364. }
  24365. }
  24366. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, checkNil bool, canChange bool,
  24367. d *Decoder) (_ map[uint]int32, changed bool) {
  24368. dd := d.d
  24369. cr := d.cr
  24370. if checkNil && dd.TryDecodeAsNil() {
  24371. if v != nil {
  24372. changed = true
  24373. }
  24374. return nil, changed
  24375. }
  24376. containerLen := dd.ReadMapStart()
  24377. if canChange && v == nil {
  24378. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24379. v = make(map[uint]int32, xlen)
  24380. changed = true
  24381. }
  24382. var mk uint
  24383. var mv int32
  24384. if containerLen > 0 {
  24385. for j := 0; j < containerLen; j++ {
  24386. if cr != nil {
  24387. cr.sendContainerState(containerMapKey)
  24388. }
  24389. mk = uint(dd.DecodeUint(uintBitsize))
  24390. if cr != nil {
  24391. cr.sendContainerState(containerMapValue)
  24392. }
  24393. mv = int32(dd.DecodeInt(32))
  24394. if v != nil {
  24395. v[mk] = mv
  24396. }
  24397. }
  24398. } else if containerLen < 0 {
  24399. for j := 0; !dd.CheckBreak(); j++ {
  24400. if cr != nil {
  24401. cr.sendContainerState(containerMapKey)
  24402. }
  24403. mk = uint(dd.DecodeUint(uintBitsize))
  24404. if cr != nil {
  24405. cr.sendContainerState(containerMapValue)
  24406. }
  24407. mv = int32(dd.DecodeInt(32))
  24408. if v != nil {
  24409. v[mk] = mv
  24410. }
  24411. }
  24412. }
  24413. if cr != nil {
  24414. cr.sendContainerState(containerMapEnd)
  24415. }
  24416. return v, changed
  24417. }
  24418. func (f *decFnInfo) fastpathDecMapUintInt64R(rv reflect.Value) {
  24419. if rv.CanAddr() {
  24420. vp := rv.Addr().Interface().(*map[uint]int64)
  24421. v, changed := fastpathTV.DecMapUintInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  24422. if changed {
  24423. *vp = v
  24424. }
  24425. } else {
  24426. v := rv.Interface().(map[uint]int64)
  24427. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, f.d)
  24428. }
  24429. }
  24430. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, checkNil bool, d *Decoder) {
  24431. v, changed := f.DecMapUintInt64V(*vp, checkNil, true, d)
  24432. if changed {
  24433. *vp = v
  24434. }
  24435. }
  24436. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, checkNil bool, canChange bool,
  24437. d *Decoder) (_ map[uint]int64, changed bool) {
  24438. dd := d.d
  24439. cr := d.cr
  24440. if checkNil && dd.TryDecodeAsNil() {
  24441. if v != nil {
  24442. changed = true
  24443. }
  24444. return nil, changed
  24445. }
  24446. containerLen := dd.ReadMapStart()
  24447. if canChange && v == nil {
  24448. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24449. v = make(map[uint]int64, xlen)
  24450. changed = true
  24451. }
  24452. var mk uint
  24453. var mv int64
  24454. if containerLen > 0 {
  24455. for j := 0; j < containerLen; j++ {
  24456. if cr != nil {
  24457. cr.sendContainerState(containerMapKey)
  24458. }
  24459. mk = uint(dd.DecodeUint(uintBitsize))
  24460. if cr != nil {
  24461. cr.sendContainerState(containerMapValue)
  24462. }
  24463. mv = dd.DecodeInt(64)
  24464. if v != nil {
  24465. v[mk] = mv
  24466. }
  24467. }
  24468. } else if containerLen < 0 {
  24469. for j := 0; !dd.CheckBreak(); j++ {
  24470. if cr != nil {
  24471. cr.sendContainerState(containerMapKey)
  24472. }
  24473. mk = uint(dd.DecodeUint(uintBitsize))
  24474. if cr != nil {
  24475. cr.sendContainerState(containerMapValue)
  24476. }
  24477. mv = dd.DecodeInt(64)
  24478. if v != nil {
  24479. v[mk] = mv
  24480. }
  24481. }
  24482. }
  24483. if cr != nil {
  24484. cr.sendContainerState(containerMapEnd)
  24485. }
  24486. return v, changed
  24487. }
  24488. func (f *decFnInfo) fastpathDecMapUintFloat32R(rv reflect.Value) {
  24489. if rv.CanAddr() {
  24490. vp := rv.Addr().Interface().(*map[uint]float32)
  24491. v, changed := fastpathTV.DecMapUintFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  24492. if changed {
  24493. *vp = v
  24494. }
  24495. } else {
  24496. v := rv.Interface().(map[uint]float32)
  24497. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, f.d)
  24498. }
  24499. }
  24500. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, checkNil bool, d *Decoder) {
  24501. v, changed := f.DecMapUintFloat32V(*vp, checkNil, true, d)
  24502. if changed {
  24503. *vp = v
  24504. }
  24505. }
  24506. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, checkNil bool, canChange bool,
  24507. d *Decoder) (_ map[uint]float32, changed bool) {
  24508. dd := d.d
  24509. cr := d.cr
  24510. if checkNil && dd.TryDecodeAsNil() {
  24511. if v != nil {
  24512. changed = true
  24513. }
  24514. return nil, changed
  24515. }
  24516. containerLen := dd.ReadMapStart()
  24517. if canChange && v == nil {
  24518. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24519. v = make(map[uint]float32, xlen)
  24520. changed = true
  24521. }
  24522. var mk uint
  24523. var mv float32
  24524. if containerLen > 0 {
  24525. for j := 0; j < containerLen; j++ {
  24526. if cr != nil {
  24527. cr.sendContainerState(containerMapKey)
  24528. }
  24529. mk = uint(dd.DecodeUint(uintBitsize))
  24530. if cr != nil {
  24531. cr.sendContainerState(containerMapValue)
  24532. }
  24533. mv = float32(dd.DecodeFloat(true))
  24534. if v != nil {
  24535. v[mk] = mv
  24536. }
  24537. }
  24538. } else if containerLen < 0 {
  24539. for j := 0; !dd.CheckBreak(); j++ {
  24540. if cr != nil {
  24541. cr.sendContainerState(containerMapKey)
  24542. }
  24543. mk = uint(dd.DecodeUint(uintBitsize))
  24544. if cr != nil {
  24545. cr.sendContainerState(containerMapValue)
  24546. }
  24547. mv = float32(dd.DecodeFloat(true))
  24548. if v != nil {
  24549. v[mk] = mv
  24550. }
  24551. }
  24552. }
  24553. if cr != nil {
  24554. cr.sendContainerState(containerMapEnd)
  24555. }
  24556. return v, changed
  24557. }
  24558. func (f *decFnInfo) fastpathDecMapUintFloat64R(rv reflect.Value) {
  24559. if rv.CanAddr() {
  24560. vp := rv.Addr().Interface().(*map[uint]float64)
  24561. v, changed := fastpathTV.DecMapUintFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  24562. if changed {
  24563. *vp = v
  24564. }
  24565. } else {
  24566. v := rv.Interface().(map[uint]float64)
  24567. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, f.d)
  24568. }
  24569. }
  24570. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, checkNil bool, d *Decoder) {
  24571. v, changed := f.DecMapUintFloat64V(*vp, checkNil, true, d)
  24572. if changed {
  24573. *vp = v
  24574. }
  24575. }
  24576. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, checkNil bool, canChange bool,
  24577. d *Decoder) (_ map[uint]float64, changed bool) {
  24578. dd := d.d
  24579. cr := d.cr
  24580. if checkNil && dd.TryDecodeAsNil() {
  24581. if v != nil {
  24582. changed = true
  24583. }
  24584. return nil, changed
  24585. }
  24586. containerLen := dd.ReadMapStart()
  24587. if canChange && v == nil {
  24588. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24589. v = make(map[uint]float64, xlen)
  24590. changed = true
  24591. }
  24592. var mk uint
  24593. var mv float64
  24594. if containerLen > 0 {
  24595. for j := 0; j < containerLen; j++ {
  24596. if cr != nil {
  24597. cr.sendContainerState(containerMapKey)
  24598. }
  24599. mk = uint(dd.DecodeUint(uintBitsize))
  24600. if cr != nil {
  24601. cr.sendContainerState(containerMapValue)
  24602. }
  24603. mv = dd.DecodeFloat(false)
  24604. if v != nil {
  24605. v[mk] = mv
  24606. }
  24607. }
  24608. } else if containerLen < 0 {
  24609. for j := 0; !dd.CheckBreak(); j++ {
  24610. if cr != nil {
  24611. cr.sendContainerState(containerMapKey)
  24612. }
  24613. mk = uint(dd.DecodeUint(uintBitsize))
  24614. if cr != nil {
  24615. cr.sendContainerState(containerMapValue)
  24616. }
  24617. mv = dd.DecodeFloat(false)
  24618. if v != nil {
  24619. v[mk] = mv
  24620. }
  24621. }
  24622. }
  24623. if cr != nil {
  24624. cr.sendContainerState(containerMapEnd)
  24625. }
  24626. return v, changed
  24627. }
  24628. func (f *decFnInfo) fastpathDecMapUintBoolR(rv reflect.Value) {
  24629. if rv.CanAddr() {
  24630. vp := rv.Addr().Interface().(*map[uint]bool)
  24631. v, changed := fastpathTV.DecMapUintBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  24632. if changed {
  24633. *vp = v
  24634. }
  24635. } else {
  24636. v := rv.Interface().(map[uint]bool)
  24637. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, f.d)
  24638. }
  24639. }
  24640. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, checkNil bool, d *Decoder) {
  24641. v, changed := f.DecMapUintBoolV(*vp, checkNil, true, d)
  24642. if changed {
  24643. *vp = v
  24644. }
  24645. }
  24646. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, checkNil bool, canChange bool,
  24647. d *Decoder) (_ map[uint]bool, changed bool) {
  24648. dd := d.d
  24649. cr := d.cr
  24650. if checkNil && dd.TryDecodeAsNil() {
  24651. if v != nil {
  24652. changed = true
  24653. }
  24654. return nil, changed
  24655. }
  24656. containerLen := dd.ReadMapStart()
  24657. if canChange && v == nil {
  24658. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24659. v = make(map[uint]bool, xlen)
  24660. changed = true
  24661. }
  24662. var mk uint
  24663. var mv bool
  24664. if containerLen > 0 {
  24665. for j := 0; j < containerLen; j++ {
  24666. if cr != nil {
  24667. cr.sendContainerState(containerMapKey)
  24668. }
  24669. mk = uint(dd.DecodeUint(uintBitsize))
  24670. if cr != nil {
  24671. cr.sendContainerState(containerMapValue)
  24672. }
  24673. mv = dd.DecodeBool()
  24674. if v != nil {
  24675. v[mk] = mv
  24676. }
  24677. }
  24678. } else if containerLen < 0 {
  24679. for j := 0; !dd.CheckBreak(); j++ {
  24680. if cr != nil {
  24681. cr.sendContainerState(containerMapKey)
  24682. }
  24683. mk = uint(dd.DecodeUint(uintBitsize))
  24684. if cr != nil {
  24685. cr.sendContainerState(containerMapValue)
  24686. }
  24687. mv = dd.DecodeBool()
  24688. if v != nil {
  24689. v[mk] = mv
  24690. }
  24691. }
  24692. }
  24693. if cr != nil {
  24694. cr.sendContainerState(containerMapEnd)
  24695. }
  24696. return v, changed
  24697. }
  24698. func (f *decFnInfo) fastpathDecMapUint8IntfR(rv reflect.Value) {
  24699. if rv.CanAddr() {
  24700. vp := rv.Addr().Interface().(*map[uint8]interface{})
  24701. v, changed := fastpathTV.DecMapUint8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  24702. if changed {
  24703. *vp = v
  24704. }
  24705. } else {
  24706. v := rv.Interface().(map[uint8]interface{})
  24707. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, f.d)
  24708. }
  24709. }
  24710. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, checkNil bool, d *Decoder) {
  24711. v, changed := f.DecMapUint8IntfV(*vp, checkNil, true, d)
  24712. if changed {
  24713. *vp = v
  24714. }
  24715. }
  24716. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, checkNil bool, canChange bool,
  24717. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  24718. dd := d.d
  24719. cr := d.cr
  24720. if checkNil && dd.TryDecodeAsNil() {
  24721. if v != nil {
  24722. changed = true
  24723. }
  24724. return nil, changed
  24725. }
  24726. containerLen := dd.ReadMapStart()
  24727. if canChange && v == nil {
  24728. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  24729. v = make(map[uint8]interface{}, xlen)
  24730. changed = true
  24731. }
  24732. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  24733. var mk uint8
  24734. var mv interface{}
  24735. if containerLen > 0 {
  24736. for j := 0; j < containerLen; j++ {
  24737. if cr != nil {
  24738. cr.sendContainerState(containerMapKey)
  24739. }
  24740. mk = uint8(dd.DecodeUint(8))
  24741. if cr != nil {
  24742. cr.sendContainerState(containerMapValue)
  24743. }
  24744. if mapGet {
  24745. mv = v[mk]
  24746. } else {
  24747. mv = nil
  24748. }
  24749. d.decode(&mv)
  24750. if v != nil {
  24751. v[mk] = mv
  24752. }
  24753. }
  24754. } else if containerLen < 0 {
  24755. for j := 0; !dd.CheckBreak(); j++ {
  24756. if cr != nil {
  24757. cr.sendContainerState(containerMapKey)
  24758. }
  24759. mk = uint8(dd.DecodeUint(8))
  24760. if cr != nil {
  24761. cr.sendContainerState(containerMapValue)
  24762. }
  24763. if mapGet {
  24764. mv = v[mk]
  24765. } else {
  24766. mv = nil
  24767. }
  24768. d.decode(&mv)
  24769. if v != nil {
  24770. v[mk] = mv
  24771. }
  24772. }
  24773. }
  24774. if cr != nil {
  24775. cr.sendContainerState(containerMapEnd)
  24776. }
  24777. return v, changed
  24778. }
  24779. func (f *decFnInfo) fastpathDecMapUint8StringR(rv reflect.Value) {
  24780. if rv.CanAddr() {
  24781. vp := rv.Addr().Interface().(*map[uint8]string)
  24782. v, changed := fastpathTV.DecMapUint8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  24783. if changed {
  24784. *vp = v
  24785. }
  24786. } else {
  24787. v := rv.Interface().(map[uint8]string)
  24788. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, f.d)
  24789. }
  24790. }
  24791. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, checkNil bool, d *Decoder) {
  24792. v, changed := f.DecMapUint8StringV(*vp, checkNil, true, d)
  24793. if changed {
  24794. *vp = v
  24795. }
  24796. }
  24797. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, checkNil bool, canChange bool,
  24798. d *Decoder) (_ map[uint8]string, changed bool) {
  24799. dd := d.d
  24800. cr := d.cr
  24801. if checkNil && dd.TryDecodeAsNil() {
  24802. if v != nil {
  24803. changed = true
  24804. }
  24805. return nil, changed
  24806. }
  24807. containerLen := dd.ReadMapStart()
  24808. if canChange && v == nil {
  24809. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  24810. v = make(map[uint8]string, xlen)
  24811. changed = true
  24812. }
  24813. var mk uint8
  24814. var mv string
  24815. if containerLen > 0 {
  24816. for j := 0; j < containerLen; j++ {
  24817. if cr != nil {
  24818. cr.sendContainerState(containerMapKey)
  24819. }
  24820. mk = uint8(dd.DecodeUint(8))
  24821. if cr != nil {
  24822. cr.sendContainerState(containerMapValue)
  24823. }
  24824. mv = dd.DecodeString()
  24825. if v != nil {
  24826. v[mk] = mv
  24827. }
  24828. }
  24829. } else if containerLen < 0 {
  24830. for j := 0; !dd.CheckBreak(); j++ {
  24831. if cr != nil {
  24832. cr.sendContainerState(containerMapKey)
  24833. }
  24834. mk = uint8(dd.DecodeUint(8))
  24835. if cr != nil {
  24836. cr.sendContainerState(containerMapValue)
  24837. }
  24838. mv = dd.DecodeString()
  24839. if v != nil {
  24840. v[mk] = mv
  24841. }
  24842. }
  24843. }
  24844. if cr != nil {
  24845. cr.sendContainerState(containerMapEnd)
  24846. }
  24847. return v, changed
  24848. }
  24849. func (f *decFnInfo) fastpathDecMapUint8UintR(rv reflect.Value) {
  24850. if rv.CanAddr() {
  24851. vp := rv.Addr().Interface().(*map[uint8]uint)
  24852. v, changed := fastpathTV.DecMapUint8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  24853. if changed {
  24854. *vp = v
  24855. }
  24856. } else {
  24857. v := rv.Interface().(map[uint8]uint)
  24858. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, f.d)
  24859. }
  24860. }
  24861. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, checkNil bool, d *Decoder) {
  24862. v, changed := f.DecMapUint8UintV(*vp, checkNil, true, d)
  24863. if changed {
  24864. *vp = v
  24865. }
  24866. }
  24867. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, checkNil bool, canChange bool,
  24868. d *Decoder) (_ map[uint8]uint, changed bool) {
  24869. dd := d.d
  24870. cr := d.cr
  24871. if checkNil && dd.TryDecodeAsNil() {
  24872. if v != nil {
  24873. changed = true
  24874. }
  24875. return nil, changed
  24876. }
  24877. containerLen := dd.ReadMapStart()
  24878. if canChange && v == nil {
  24879. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24880. v = make(map[uint8]uint, xlen)
  24881. changed = true
  24882. }
  24883. var mk uint8
  24884. var mv uint
  24885. if containerLen > 0 {
  24886. for j := 0; j < containerLen; j++ {
  24887. if cr != nil {
  24888. cr.sendContainerState(containerMapKey)
  24889. }
  24890. mk = uint8(dd.DecodeUint(8))
  24891. if cr != nil {
  24892. cr.sendContainerState(containerMapValue)
  24893. }
  24894. mv = uint(dd.DecodeUint(uintBitsize))
  24895. if v != nil {
  24896. v[mk] = mv
  24897. }
  24898. }
  24899. } else if containerLen < 0 {
  24900. for j := 0; !dd.CheckBreak(); j++ {
  24901. if cr != nil {
  24902. cr.sendContainerState(containerMapKey)
  24903. }
  24904. mk = uint8(dd.DecodeUint(8))
  24905. if cr != nil {
  24906. cr.sendContainerState(containerMapValue)
  24907. }
  24908. mv = uint(dd.DecodeUint(uintBitsize))
  24909. if v != nil {
  24910. v[mk] = mv
  24911. }
  24912. }
  24913. }
  24914. if cr != nil {
  24915. cr.sendContainerState(containerMapEnd)
  24916. }
  24917. return v, changed
  24918. }
  24919. func (f *decFnInfo) fastpathDecMapUint8Uint8R(rv reflect.Value) {
  24920. if rv.CanAddr() {
  24921. vp := rv.Addr().Interface().(*map[uint8]uint8)
  24922. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  24923. if changed {
  24924. *vp = v
  24925. }
  24926. } else {
  24927. v := rv.Interface().(map[uint8]uint8)
  24928. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  24929. }
  24930. }
  24931. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, checkNil bool, d *Decoder) {
  24932. v, changed := f.DecMapUint8Uint8V(*vp, checkNil, true, d)
  24933. if changed {
  24934. *vp = v
  24935. }
  24936. }
  24937. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, checkNil bool, canChange bool,
  24938. d *Decoder) (_ map[uint8]uint8, changed bool) {
  24939. dd := d.d
  24940. cr := d.cr
  24941. if checkNil && dd.TryDecodeAsNil() {
  24942. if v != nil {
  24943. changed = true
  24944. }
  24945. return nil, changed
  24946. }
  24947. containerLen := dd.ReadMapStart()
  24948. if canChange && v == nil {
  24949. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24950. v = make(map[uint8]uint8, xlen)
  24951. changed = true
  24952. }
  24953. var mk uint8
  24954. var mv uint8
  24955. if containerLen > 0 {
  24956. for j := 0; j < containerLen; j++ {
  24957. if cr != nil {
  24958. cr.sendContainerState(containerMapKey)
  24959. }
  24960. mk = uint8(dd.DecodeUint(8))
  24961. if cr != nil {
  24962. cr.sendContainerState(containerMapValue)
  24963. }
  24964. mv = uint8(dd.DecodeUint(8))
  24965. if v != nil {
  24966. v[mk] = mv
  24967. }
  24968. }
  24969. } else if containerLen < 0 {
  24970. for j := 0; !dd.CheckBreak(); j++ {
  24971. if cr != nil {
  24972. cr.sendContainerState(containerMapKey)
  24973. }
  24974. mk = uint8(dd.DecodeUint(8))
  24975. if cr != nil {
  24976. cr.sendContainerState(containerMapValue)
  24977. }
  24978. mv = uint8(dd.DecodeUint(8))
  24979. if v != nil {
  24980. v[mk] = mv
  24981. }
  24982. }
  24983. }
  24984. if cr != nil {
  24985. cr.sendContainerState(containerMapEnd)
  24986. }
  24987. return v, changed
  24988. }
  24989. func (f *decFnInfo) fastpathDecMapUint8Uint16R(rv reflect.Value) {
  24990. if rv.CanAddr() {
  24991. vp := rv.Addr().Interface().(*map[uint8]uint16)
  24992. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  24993. if changed {
  24994. *vp = v
  24995. }
  24996. } else {
  24997. v := rv.Interface().(map[uint8]uint16)
  24998. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  24999. }
  25000. }
  25001. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, checkNil bool, d *Decoder) {
  25002. v, changed := f.DecMapUint8Uint16V(*vp, checkNil, true, d)
  25003. if changed {
  25004. *vp = v
  25005. }
  25006. }
  25007. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, checkNil bool, canChange bool,
  25008. d *Decoder) (_ map[uint8]uint16, changed bool) {
  25009. dd := d.d
  25010. cr := d.cr
  25011. if checkNil && dd.TryDecodeAsNil() {
  25012. if v != nil {
  25013. changed = true
  25014. }
  25015. return nil, changed
  25016. }
  25017. containerLen := dd.ReadMapStart()
  25018. if canChange && v == nil {
  25019. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25020. v = make(map[uint8]uint16, xlen)
  25021. changed = true
  25022. }
  25023. var mk uint8
  25024. var mv uint16
  25025. if containerLen > 0 {
  25026. for j := 0; j < containerLen; j++ {
  25027. if cr != nil {
  25028. cr.sendContainerState(containerMapKey)
  25029. }
  25030. mk = uint8(dd.DecodeUint(8))
  25031. if cr != nil {
  25032. cr.sendContainerState(containerMapValue)
  25033. }
  25034. mv = uint16(dd.DecodeUint(16))
  25035. if v != nil {
  25036. v[mk] = mv
  25037. }
  25038. }
  25039. } else if containerLen < 0 {
  25040. for j := 0; !dd.CheckBreak(); j++ {
  25041. if cr != nil {
  25042. cr.sendContainerState(containerMapKey)
  25043. }
  25044. mk = uint8(dd.DecodeUint(8))
  25045. if cr != nil {
  25046. cr.sendContainerState(containerMapValue)
  25047. }
  25048. mv = uint16(dd.DecodeUint(16))
  25049. if v != nil {
  25050. v[mk] = mv
  25051. }
  25052. }
  25053. }
  25054. if cr != nil {
  25055. cr.sendContainerState(containerMapEnd)
  25056. }
  25057. return v, changed
  25058. }
  25059. func (f *decFnInfo) fastpathDecMapUint8Uint32R(rv reflect.Value) {
  25060. if rv.CanAddr() {
  25061. vp := rv.Addr().Interface().(*map[uint8]uint32)
  25062. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  25063. if changed {
  25064. *vp = v
  25065. }
  25066. } else {
  25067. v := rv.Interface().(map[uint8]uint32)
  25068. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  25069. }
  25070. }
  25071. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, checkNil bool, d *Decoder) {
  25072. v, changed := f.DecMapUint8Uint32V(*vp, checkNil, true, d)
  25073. if changed {
  25074. *vp = v
  25075. }
  25076. }
  25077. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, checkNil bool, canChange bool,
  25078. d *Decoder) (_ map[uint8]uint32, changed bool) {
  25079. dd := d.d
  25080. cr := d.cr
  25081. if checkNil && dd.TryDecodeAsNil() {
  25082. if v != nil {
  25083. changed = true
  25084. }
  25085. return nil, changed
  25086. }
  25087. containerLen := dd.ReadMapStart()
  25088. if canChange && v == nil {
  25089. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25090. v = make(map[uint8]uint32, xlen)
  25091. changed = true
  25092. }
  25093. var mk uint8
  25094. var mv uint32
  25095. if containerLen > 0 {
  25096. for j := 0; j < containerLen; j++ {
  25097. if cr != nil {
  25098. cr.sendContainerState(containerMapKey)
  25099. }
  25100. mk = uint8(dd.DecodeUint(8))
  25101. if cr != nil {
  25102. cr.sendContainerState(containerMapValue)
  25103. }
  25104. mv = uint32(dd.DecodeUint(32))
  25105. if v != nil {
  25106. v[mk] = mv
  25107. }
  25108. }
  25109. } else if containerLen < 0 {
  25110. for j := 0; !dd.CheckBreak(); j++ {
  25111. if cr != nil {
  25112. cr.sendContainerState(containerMapKey)
  25113. }
  25114. mk = uint8(dd.DecodeUint(8))
  25115. if cr != nil {
  25116. cr.sendContainerState(containerMapValue)
  25117. }
  25118. mv = uint32(dd.DecodeUint(32))
  25119. if v != nil {
  25120. v[mk] = mv
  25121. }
  25122. }
  25123. }
  25124. if cr != nil {
  25125. cr.sendContainerState(containerMapEnd)
  25126. }
  25127. return v, changed
  25128. }
  25129. func (f *decFnInfo) fastpathDecMapUint8Uint64R(rv reflect.Value) {
  25130. if rv.CanAddr() {
  25131. vp := rv.Addr().Interface().(*map[uint8]uint64)
  25132. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  25133. if changed {
  25134. *vp = v
  25135. }
  25136. } else {
  25137. v := rv.Interface().(map[uint8]uint64)
  25138. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  25139. }
  25140. }
  25141. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, checkNil bool, d *Decoder) {
  25142. v, changed := f.DecMapUint8Uint64V(*vp, checkNil, true, d)
  25143. if changed {
  25144. *vp = v
  25145. }
  25146. }
  25147. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, checkNil bool, canChange bool,
  25148. d *Decoder) (_ map[uint8]uint64, changed bool) {
  25149. dd := d.d
  25150. cr := d.cr
  25151. if checkNil && dd.TryDecodeAsNil() {
  25152. if v != nil {
  25153. changed = true
  25154. }
  25155. return nil, changed
  25156. }
  25157. containerLen := dd.ReadMapStart()
  25158. if canChange && v == nil {
  25159. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25160. v = make(map[uint8]uint64, xlen)
  25161. changed = true
  25162. }
  25163. var mk uint8
  25164. var mv uint64
  25165. if containerLen > 0 {
  25166. for j := 0; j < containerLen; j++ {
  25167. if cr != nil {
  25168. cr.sendContainerState(containerMapKey)
  25169. }
  25170. mk = uint8(dd.DecodeUint(8))
  25171. if cr != nil {
  25172. cr.sendContainerState(containerMapValue)
  25173. }
  25174. mv = dd.DecodeUint(64)
  25175. if v != nil {
  25176. v[mk] = mv
  25177. }
  25178. }
  25179. } else if containerLen < 0 {
  25180. for j := 0; !dd.CheckBreak(); j++ {
  25181. if cr != nil {
  25182. cr.sendContainerState(containerMapKey)
  25183. }
  25184. mk = uint8(dd.DecodeUint(8))
  25185. if cr != nil {
  25186. cr.sendContainerState(containerMapValue)
  25187. }
  25188. mv = dd.DecodeUint(64)
  25189. if v != nil {
  25190. v[mk] = mv
  25191. }
  25192. }
  25193. }
  25194. if cr != nil {
  25195. cr.sendContainerState(containerMapEnd)
  25196. }
  25197. return v, changed
  25198. }
  25199. func (f *decFnInfo) fastpathDecMapUint8UintptrR(rv reflect.Value) {
  25200. if rv.CanAddr() {
  25201. vp := rv.Addr().Interface().(*map[uint8]uintptr)
  25202. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  25203. if changed {
  25204. *vp = v
  25205. }
  25206. } else {
  25207. v := rv.Interface().(map[uint8]uintptr)
  25208. fastpathTV.DecMapUint8UintptrV(v, fastpathCheckNilFalse, false, f.d)
  25209. }
  25210. }
  25211. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, checkNil bool, d *Decoder) {
  25212. v, changed := f.DecMapUint8UintptrV(*vp, checkNil, true, d)
  25213. if changed {
  25214. *vp = v
  25215. }
  25216. }
  25217. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, checkNil bool, canChange bool,
  25218. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  25219. dd := d.d
  25220. cr := d.cr
  25221. if checkNil && dd.TryDecodeAsNil() {
  25222. if v != nil {
  25223. changed = true
  25224. }
  25225. return nil, changed
  25226. }
  25227. containerLen := dd.ReadMapStart()
  25228. if canChange && v == nil {
  25229. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25230. v = make(map[uint8]uintptr, xlen)
  25231. changed = true
  25232. }
  25233. var mk uint8
  25234. var mv uintptr
  25235. if containerLen > 0 {
  25236. for j := 0; j < containerLen; j++ {
  25237. if cr != nil {
  25238. cr.sendContainerState(containerMapKey)
  25239. }
  25240. mk = uint8(dd.DecodeUint(8))
  25241. if cr != nil {
  25242. cr.sendContainerState(containerMapValue)
  25243. }
  25244. mv = uintptr(dd.DecodeUint(uintBitsize))
  25245. if v != nil {
  25246. v[mk] = mv
  25247. }
  25248. }
  25249. } else if containerLen < 0 {
  25250. for j := 0; !dd.CheckBreak(); j++ {
  25251. if cr != nil {
  25252. cr.sendContainerState(containerMapKey)
  25253. }
  25254. mk = uint8(dd.DecodeUint(8))
  25255. if cr != nil {
  25256. cr.sendContainerState(containerMapValue)
  25257. }
  25258. mv = uintptr(dd.DecodeUint(uintBitsize))
  25259. if v != nil {
  25260. v[mk] = mv
  25261. }
  25262. }
  25263. }
  25264. if cr != nil {
  25265. cr.sendContainerState(containerMapEnd)
  25266. }
  25267. return v, changed
  25268. }
  25269. func (f *decFnInfo) fastpathDecMapUint8IntR(rv reflect.Value) {
  25270. if rv.CanAddr() {
  25271. vp := rv.Addr().Interface().(*map[uint8]int)
  25272. v, changed := fastpathTV.DecMapUint8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  25273. if changed {
  25274. *vp = v
  25275. }
  25276. } else {
  25277. v := rv.Interface().(map[uint8]int)
  25278. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, f.d)
  25279. }
  25280. }
  25281. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, checkNil bool, d *Decoder) {
  25282. v, changed := f.DecMapUint8IntV(*vp, checkNil, true, d)
  25283. if changed {
  25284. *vp = v
  25285. }
  25286. }
  25287. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, checkNil bool, canChange bool,
  25288. d *Decoder) (_ map[uint8]int, changed bool) {
  25289. dd := d.d
  25290. cr := d.cr
  25291. if checkNil && dd.TryDecodeAsNil() {
  25292. if v != nil {
  25293. changed = true
  25294. }
  25295. return nil, changed
  25296. }
  25297. containerLen := dd.ReadMapStart()
  25298. if canChange && v == nil {
  25299. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25300. v = make(map[uint8]int, xlen)
  25301. changed = true
  25302. }
  25303. var mk uint8
  25304. var mv int
  25305. if containerLen > 0 {
  25306. for j := 0; j < containerLen; j++ {
  25307. if cr != nil {
  25308. cr.sendContainerState(containerMapKey)
  25309. }
  25310. mk = uint8(dd.DecodeUint(8))
  25311. if cr != nil {
  25312. cr.sendContainerState(containerMapValue)
  25313. }
  25314. mv = int(dd.DecodeInt(intBitsize))
  25315. if v != nil {
  25316. v[mk] = mv
  25317. }
  25318. }
  25319. } else if containerLen < 0 {
  25320. for j := 0; !dd.CheckBreak(); j++ {
  25321. if cr != nil {
  25322. cr.sendContainerState(containerMapKey)
  25323. }
  25324. mk = uint8(dd.DecodeUint(8))
  25325. if cr != nil {
  25326. cr.sendContainerState(containerMapValue)
  25327. }
  25328. mv = int(dd.DecodeInt(intBitsize))
  25329. if v != nil {
  25330. v[mk] = mv
  25331. }
  25332. }
  25333. }
  25334. if cr != nil {
  25335. cr.sendContainerState(containerMapEnd)
  25336. }
  25337. return v, changed
  25338. }
  25339. func (f *decFnInfo) fastpathDecMapUint8Int8R(rv reflect.Value) {
  25340. if rv.CanAddr() {
  25341. vp := rv.Addr().Interface().(*map[uint8]int8)
  25342. v, changed := fastpathTV.DecMapUint8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  25343. if changed {
  25344. *vp = v
  25345. }
  25346. } else {
  25347. v := rv.Interface().(map[uint8]int8)
  25348. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, f.d)
  25349. }
  25350. }
  25351. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, checkNil bool, d *Decoder) {
  25352. v, changed := f.DecMapUint8Int8V(*vp, checkNil, true, d)
  25353. if changed {
  25354. *vp = v
  25355. }
  25356. }
  25357. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, checkNil bool, canChange bool,
  25358. d *Decoder) (_ map[uint8]int8, changed bool) {
  25359. dd := d.d
  25360. cr := d.cr
  25361. if checkNil && dd.TryDecodeAsNil() {
  25362. if v != nil {
  25363. changed = true
  25364. }
  25365. return nil, changed
  25366. }
  25367. containerLen := dd.ReadMapStart()
  25368. if canChange && v == nil {
  25369. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  25370. v = make(map[uint8]int8, xlen)
  25371. changed = true
  25372. }
  25373. var mk uint8
  25374. var mv int8
  25375. if containerLen > 0 {
  25376. for j := 0; j < containerLen; j++ {
  25377. if cr != nil {
  25378. cr.sendContainerState(containerMapKey)
  25379. }
  25380. mk = uint8(dd.DecodeUint(8))
  25381. if cr != nil {
  25382. cr.sendContainerState(containerMapValue)
  25383. }
  25384. mv = int8(dd.DecodeInt(8))
  25385. if v != nil {
  25386. v[mk] = mv
  25387. }
  25388. }
  25389. } else if containerLen < 0 {
  25390. for j := 0; !dd.CheckBreak(); j++ {
  25391. if cr != nil {
  25392. cr.sendContainerState(containerMapKey)
  25393. }
  25394. mk = uint8(dd.DecodeUint(8))
  25395. if cr != nil {
  25396. cr.sendContainerState(containerMapValue)
  25397. }
  25398. mv = int8(dd.DecodeInt(8))
  25399. if v != nil {
  25400. v[mk] = mv
  25401. }
  25402. }
  25403. }
  25404. if cr != nil {
  25405. cr.sendContainerState(containerMapEnd)
  25406. }
  25407. return v, changed
  25408. }
  25409. func (f *decFnInfo) fastpathDecMapUint8Int16R(rv reflect.Value) {
  25410. if rv.CanAddr() {
  25411. vp := rv.Addr().Interface().(*map[uint8]int16)
  25412. v, changed := fastpathTV.DecMapUint8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  25413. if changed {
  25414. *vp = v
  25415. }
  25416. } else {
  25417. v := rv.Interface().(map[uint8]int16)
  25418. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, f.d)
  25419. }
  25420. }
  25421. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, checkNil bool, d *Decoder) {
  25422. v, changed := f.DecMapUint8Int16V(*vp, checkNil, true, d)
  25423. if changed {
  25424. *vp = v
  25425. }
  25426. }
  25427. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, checkNil bool, canChange bool,
  25428. d *Decoder) (_ map[uint8]int16, changed bool) {
  25429. dd := d.d
  25430. cr := d.cr
  25431. if checkNil && dd.TryDecodeAsNil() {
  25432. if v != nil {
  25433. changed = true
  25434. }
  25435. return nil, changed
  25436. }
  25437. containerLen := dd.ReadMapStart()
  25438. if canChange && v == nil {
  25439. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25440. v = make(map[uint8]int16, xlen)
  25441. changed = true
  25442. }
  25443. var mk uint8
  25444. var mv int16
  25445. if containerLen > 0 {
  25446. for j := 0; j < containerLen; j++ {
  25447. if cr != nil {
  25448. cr.sendContainerState(containerMapKey)
  25449. }
  25450. mk = uint8(dd.DecodeUint(8))
  25451. if cr != nil {
  25452. cr.sendContainerState(containerMapValue)
  25453. }
  25454. mv = int16(dd.DecodeInt(16))
  25455. if v != nil {
  25456. v[mk] = mv
  25457. }
  25458. }
  25459. } else if containerLen < 0 {
  25460. for j := 0; !dd.CheckBreak(); j++ {
  25461. if cr != nil {
  25462. cr.sendContainerState(containerMapKey)
  25463. }
  25464. mk = uint8(dd.DecodeUint(8))
  25465. if cr != nil {
  25466. cr.sendContainerState(containerMapValue)
  25467. }
  25468. mv = int16(dd.DecodeInt(16))
  25469. if v != nil {
  25470. v[mk] = mv
  25471. }
  25472. }
  25473. }
  25474. if cr != nil {
  25475. cr.sendContainerState(containerMapEnd)
  25476. }
  25477. return v, changed
  25478. }
  25479. func (f *decFnInfo) fastpathDecMapUint8Int32R(rv reflect.Value) {
  25480. if rv.CanAddr() {
  25481. vp := rv.Addr().Interface().(*map[uint8]int32)
  25482. v, changed := fastpathTV.DecMapUint8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  25483. if changed {
  25484. *vp = v
  25485. }
  25486. } else {
  25487. v := rv.Interface().(map[uint8]int32)
  25488. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, f.d)
  25489. }
  25490. }
  25491. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, checkNil bool, d *Decoder) {
  25492. v, changed := f.DecMapUint8Int32V(*vp, checkNil, true, d)
  25493. if changed {
  25494. *vp = v
  25495. }
  25496. }
  25497. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, checkNil bool, canChange bool,
  25498. d *Decoder) (_ map[uint8]int32, changed bool) {
  25499. dd := d.d
  25500. cr := d.cr
  25501. if checkNil && dd.TryDecodeAsNil() {
  25502. if v != nil {
  25503. changed = true
  25504. }
  25505. return nil, changed
  25506. }
  25507. containerLen := dd.ReadMapStart()
  25508. if canChange && v == nil {
  25509. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25510. v = make(map[uint8]int32, xlen)
  25511. changed = true
  25512. }
  25513. var mk uint8
  25514. var mv int32
  25515. if containerLen > 0 {
  25516. for j := 0; j < containerLen; j++ {
  25517. if cr != nil {
  25518. cr.sendContainerState(containerMapKey)
  25519. }
  25520. mk = uint8(dd.DecodeUint(8))
  25521. if cr != nil {
  25522. cr.sendContainerState(containerMapValue)
  25523. }
  25524. mv = int32(dd.DecodeInt(32))
  25525. if v != nil {
  25526. v[mk] = mv
  25527. }
  25528. }
  25529. } else if containerLen < 0 {
  25530. for j := 0; !dd.CheckBreak(); j++ {
  25531. if cr != nil {
  25532. cr.sendContainerState(containerMapKey)
  25533. }
  25534. mk = uint8(dd.DecodeUint(8))
  25535. if cr != nil {
  25536. cr.sendContainerState(containerMapValue)
  25537. }
  25538. mv = int32(dd.DecodeInt(32))
  25539. if v != nil {
  25540. v[mk] = mv
  25541. }
  25542. }
  25543. }
  25544. if cr != nil {
  25545. cr.sendContainerState(containerMapEnd)
  25546. }
  25547. return v, changed
  25548. }
  25549. func (f *decFnInfo) fastpathDecMapUint8Int64R(rv reflect.Value) {
  25550. if rv.CanAddr() {
  25551. vp := rv.Addr().Interface().(*map[uint8]int64)
  25552. v, changed := fastpathTV.DecMapUint8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  25553. if changed {
  25554. *vp = v
  25555. }
  25556. } else {
  25557. v := rv.Interface().(map[uint8]int64)
  25558. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, f.d)
  25559. }
  25560. }
  25561. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, checkNil bool, d *Decoder) {
  25562. v, changed := f.DecMapUint8Int64V(*vp, checkNil, true, d)
  25563. if changed {
  25564. *vp = v
  25565. }
  25566. }
  25567. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, checkNil bool, canChange bool,
  25568. d *Decoder) (_ map[uint8]int64, changed bool) {
  25569. dd := d.d
  25570. cr := d.cr
  25571. if checkNil && dd.TryDecodeAsNil() {
  25572. if v != nil {
  25573. changed = true
  25574. }
  25575. return nil, changed
  25576. }
  25577. containerLen := dd.ReadMapStart()
  25578. if canChange && v == nil {
  25579. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25580. v = make(map[uint8]int64, xlen)
  25581. changed = true
  25582. }
  25583. var mk uint8
  25584. var mv int64
  25585. if containerLen > 0 {
  25586. for j := 0; j < containerLen; j++ {
  25587. if cr != nil {
  25588. cr.sendContainerState(containerMapKey)
  25589. }
  25590. mk = uint8(dd.DecodeUint(8))
  25591. if cr != nil {
  25592. cr.sendContainerState(containerMapValue)
  25593. }
  25594. mv = dd.DecodeInt(64)
  25595. if v != nil {
  25596. v[mk] = mv
  25597. }
  25598. }
  25599. } else if containerLen < 0 {
  25600. for j := 0; !dd.CheckBreak(); j++ {
  25601. if cr != nil {
  25602. cr.sendContainerState(containerMapKey)
  25603. }
  25604. mk = uint8(dd.DecodeUint(8))
  25605. if cr != nil {
  25606. cr.sendContainerState(containerMapValue)
  25607. }
  25608. mv = dd.DecodeInt(64)
  25609. if v != nil {
  25610. v[mk] = mv
  25611. }
  25612. }
  25613. }
  25614. if cr != nil {
  25615. cr.sendContainerState(containerMapEnd)
  25616. }
  25617. return v, changed
  25618. }
  25619. func (f *decFnInfo) fastpathDecMapUint8Float32R(rv reflect.Value) {
  25620. if rv.CanAddr() {
  25621. vp := rv.Addr().Interface().(*map[uint8]float32)
  25622. v, changed := fastpathTV.DecMapUint8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  25623. if changed {
  25624. *vp = v
  25625. }
  25626. } else {
  25627. v := rv.Interface().(map[uint8]float32)
  25628. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, f.d)
  25629. }
  25630. }
  25631. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, checkNil bool, d *Decoder) {
  25632. v, changed := f.DecMapUint8Float32V(*vp, checkNil, true, d)
  25633. if changed {
  25634. *vp = v
  25635. }
  25636. }
  25637. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, checkNil bool, canChange bool,
  25638. d *Decoder) (_ map[uint8]float32, changed bool) {
  25639. dd := d.d
  25640. cr := d.cr
  25641. if checkNil && dd.TryDecodeAsNil() {
  25642. if v != nil {
  25643. changed = true
  25644. }
  25645. return nil, changed
  25646. }
  25647. containerLen := dd.ReadMapStart()
  25648. if canChange && v == nil {
  25649. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25650. v = make(map[uint8]float32, xlen)
  25651. changed = true
  25652. }
  25653. var mk uint8
  25654. var mv float32
  25655. if containerLen > 0 {
  25656. for j := 0; j < containerLen; j++ {
  25657. if cr != nil {
  25658. cr.sendContainerState(containerMapKey)
  25659. }
  25660. mk = uint8(dd.DecodeUint(8))
  25661. if cr != nil {
  25662. cr.sendContainerState(containerMapValue)
  25663. }
  25664. mv = float32(dd.DecodeFloat(true))
  25665. if v != nil {
  25666. v[mk] = mv
  25667. }
  25668. }
  25669. } else if containerLen < 0 {
  25670. for j := 0; !dd.CheckBreak(); j++ {
  25671. if cr != nil {
  25672. cr.sendContainerState(containerMapKey)
  25673. }
  25674. mk = uint8(dd.DecodeUint(8))
  25675. if cr != nil {
  25676. cr.sendContainerState(containerMapValue)
  25677. }
  25678. mv = float32(dd.DecodeFloat(true))
  25679. if v != nil {
  25680. v[mk] = mv
  25681. }
  25682. }
  25683. }
  25684. if cr != nil {
  25685. cr.sendContainerState(containerMapEnd)
  25686. }
  25687. return v, changed
  25688. }
  25689. func (f *decFnInfo) fastpathDecMapUint8Float64R(rv reflect.Value) {
  25690. if rv.CanAddr() {
  25691. vp := rv.Addr().Interface().(*map[uint8]float64)
  25692. v, changed := fastpathTV.DecMapUint8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  25693. if changed {
  25694. *vp = v
  25695. }
  25696. } else {
  25697. v := rv.Interface().(map[uint8]float64)
  25698. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, f.d)
  25699. }
  25700. }
  25701. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, checkNil bool, d *Decoder) {
  25702. v, changed := f.DecMapUint8Float64V(*vp, checkNil, true, d)
  25703. if changed {
  25704. *vp = v
  25705. }
  25706. }
  25707. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, checkNil bool, canChange bool,
  25708. d *Decoder) (_ map[uint8]float64, changed bool) {
  25709. dd := d.d
  25710. cr := d.cr
  25711. if checkNil && dd.TryDecodeAsNil() {
  25712. if v != nil {
  25713. changed = true
  25714. }
  25715. return nil, changed
  25716. }
  25717. containerLen := dd.ReadMapStart()
  25718. if canChange && v == nil {
  25719. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25720. v = make(map[uint8]float64, xlen)
  25721. changed = true
  25722. }
  25723. var mk uint8
  25724. var mv float64
  25725. if containerLen > 0 {
  25726. for j := 0; j < containerLen; j++ {
  25727. if cr != nil {
  25728. cr.sendContainerState(containerMapKey)
  25729. }
  25730. mk = uint8(dd.DecodeUint(8))
  25731. if cr != nil {
  25732. cr.sendContainerState(containerMapValue)
  25733. }
  25734. mv = dd.DecodeFloat(false)
  25735. if v != nil {
  25736. v[mk] = mv
  25737. }
  25738. }
  25739. } else if containerLen < 0 {
  25740. for j := 0; !dd.CheckBreak(); j++ {
  25741. if cr != nil {
  25742. cr.sendContainerState(containerMapKey)
  25743. }
  25744. mk = uint8(dd.DecodeUint(8))
  25745. if cr != nil {
  25746. cr.sendContainerState(containerMapValue)
  25747. }
  25748. mv = dd.DecodeFloat(false)
  25749. if v != nil {
  25750. v[mk] = mv
  25751. }
  25752. }
  25753. }
  25754. if cr != nil {
  25755. cr.sendContainerState(containerMapEnd)
  25756. }
  25757. return v, changed
  25758. }
  25759. func (f *decFnInfo) fastpathDecMapUint8BoolR(rv reflect.Value) {
  25760. if rv.CanAddr() {
  25761. vp := rv.Addr().Interface().(*map[uint8]bool)
  25762. v, changed := fastpathTV.DecMapUint8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  25763. if changed {
  25764. *vp = v
  25765. }
  25766. } else {
  25767. v := rv.Interface().(map[uint8]bool)
  25768. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, f.d)
  25769. }
  25770. }
  25771. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, checkNil bool, d *Decoder) {
  25772. v, changed := f.DecMapUint8BoolV(*vp, checkNil, true, d)
  25773. if changed {
  25774. *vp = v
  25775. }
  25776. }
  25777. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, checkNil bool, canChange bool,
  25778. d *Decoder) (_ map[uint8]bool, changed bool) {
  25779. dd := d.d
  25780. cr := d.cr
  25781. if checkNil && dd.TryDecodeAsNil() {
  25782. if v != nil {
  25783. changed = true
  25784. }
  25785. return nil, changed
  25786. }
  25787. containerLen := dd.ReadMapStart()
  25788. if canChange && v == nil {
  25789. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  25790. v = make(map[uint8]bool, xlen)
  25791. changed = true
  25792. }
  25793. var mk uint8
  25794. var mv bool
  25795. if containerLen > 0 {
  25796. for j := 0; j < containerLen; j++ {
  25797. if cr != nil {
  25798. cr.sendContainerState(containerMapKey)
  25799. }
  25800. mk = uint8(dd.DecodeUint(8))
  25801. if cr != nil {
  25802. cr.sendContainerState(containerMapValue)
  25803. }
  25804. mv = dd.DecodeBool()
  25805. if v != nil {
  25806. v[mk] = mv
  25807. }
  25808. }
  25809. } else if containerLen < 0 {
  25810. for j := 0; !dd.CheckBreak(); j++ {
  25811. if cr != nil {
  25812. cr.sendContainerState(containerMapKey)
  25813. }
  25814. mk = uint8(dd.DecodeUint(8))
  25815. if cr != nil {
  25816. cr.sendContainerState(containerMapValue)
  25817. }
  25818. mv = dd.DecodeBool()
  25819. if v != nil {
  25820. v[mk] = mv
  25821. }
  25822. }
  25823. }
  25824. if cr != nil {
  25825. cr.sendContainerState(containerMapEnd)
  25826. }
  25827. return v, changed
  25828. }
  25829. func (f *decFnInfo) fastpathDecMapUint16IntfR(rv reflect.Value) {
  25830. if rv.CanAddr() {
  25831. vp := rv.Addr().Interface().(*map[uint16]interface{})
  25832. v, changed := fastpathTV.DecMapUint16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  25833. if changed {
  25834. *vp = v
  25835. }
  25836. } else {
  25837. v := rv.Interface().(map[uint16]interface{})
  25838. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, f.d)
  25839. }
  25840. }
  25841. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, checkNil bool, d *Decoder) {
  25842. v, changed := f.DecMapUint16IntfV(*vp, checkNil, true, d)
  25843. if changed {
  25844. *vp = v
  25845. }
  25846. }
  25847. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, checkNil bool, canChange bool,
  25848. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  25849. dd := d.d
  25850. cr := d.cr
  25851. if checkNil && dd.TryDecodeAsNil() {
  25852. if v != nil {
  25853. changed = true
  25854. }
  25855. return nil, changed
  25856. }
  25857. containerLen := dd.ReadMapStart()
  25858. if canChange && v == nil {
  25859. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  25860. v = make(map[uint16]interface{}, xlen)
  25861. changed = true
  25862. }
  25863. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  25864. var mk uint16
  25865. var mv interface{}
  25866. if containerLen > 0 {
  25867. for j := 0; j < containerLen; j++ {
  25868. if cr != nil {
  25869. cr.sendContainerState(containerMapKey)
  25870. }
  25871. mk = uint16(dd.DecodeUint(16))
  25872. if cr != nil {
  25873. cr.sendContainerState(containerMapValue)
  25874. }
  25875. if mapGet {
  25876. mv = v[mk]
  25877. } else {
  25878. mv = nil
  25879. }
  25880. d.decode(&mv)
  25881. if v != nil {
  25882. v[mk] = mv
  25883. }
  25884. }
  25885. } else if containerLen < 0 {
  25886. for j := 0; !dd.CheckBreak(); j++ {
  25887. if cr != nil {
  25888. cr.sendContainerState(containerMapKey)
  25889. }
  25890. mk = uint16(dd.DecodeUint(16))
  25891. if cr != nil {
  25892. cr.sendContainerState(containerMapValue)
  25893. }
  25894. if mapGet {
  25895. mv = v[mk]
  25896. } else {
  25897. mv = nil
  25898. }
  25899. d.decode(&mv)
  25900. if v != nil {
  25901. v[mk] = mv
  25902. }
  25903. }
  25904. }
  25905. if cr != nil {
  25906. cr.sendContainerState(containerMapEnd)
  25907. }
  25908. return v, changed
  25909. }
  25910. func (f *decFnInfo) fastpathDecMapUint16StringR(rv reflect.Value) {
  25911. if rv.CanAddr() {
  25912. vp := rv.Addr().Interface().(*map[uint16]string)
  25913. v, changed := fastpathTV.DecMapUint16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  25914. if changed {
  25915. *vp = v
  25916. }
  25917. } else {
  25918. v := rv.Interface().(map[uint16]string)
  25919. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, f.d)
  25920. }
  25921. }
  25922. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, checkNil bool, d *Decoder) {
  25923. v, changed := f.DecMapUint16StringV(*vp, checkNil, true, d)
  25924. if changed {
  25925. *vp = v
  25926. }
  25927. }
  25928. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, checkNil bool, canChange bool,
  25929. d *Decoder) (_ map[uint16]string, changed bool) {
  25930. dd := d.d
  25931. cr := d.cr
  25932. if checkNil && dd.TryDecodeAsNil() {
  25933. if v != nil {
  25934. changed = true
  25935. }
  25936. return nil, changed
  25937. }
  25938. containerLen := dd.ReadMapStart()
  25939. if canChange && v == nil {
  25940. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  25941. v = make(map[uint16]string, xlen)
  25942. changed = true
  25943. }
  25944. var mk uint16
  25945. var mv string
  25946. if containerLen > 0 {
  25947. for j := 0; j < containerLen; j++ {
  25948. if cr != nil {
  25949. cr.sendContainerState(containerMapKey)
  25950. }
  25951. mk = uint16(dd.DecodeUint(16))
  25952. if cr != nil {
  25953. cr.sendContainerState(containerMapValue)
  25954. }
  25955. mv = dd.DecodeString()
  25956. if v != nil {
  25957. v[mk] = mv
  25958. }
  25959. }
  25960. } else if containerLen < 0 {
  25961. for j := 0; !dd.CheckBreak(); j++ {
  25962. if cr != nil {
  25963. cr.sendContainerState(containerMapKey)
  25964. }
  25965. mk = uint16(dd.DecodeUint(16))
  25966. if cr != nil {
  25967. cr.sendContainerState(containerMapValue)
  25968. }
  25969. mv = dd.DecodeString()
  25970. if v != nil {
  25971. v[mk] = mv
  25972. }
  25973. }
  25974. }
  25975. if cr != nil {
  25976. cr.sendContainerState(containerMapEnd)
  25977. }
  25978. return v, changed
  25979. }
  25980. func (f *decFnInfo) fastpathDecMapUint16UintR(rv reflect.Value) {
  25981. if rv.CanAddr() {
  25982. vp := rv.Addr().Interface().(*map[uint16]uint)
  25983. v, changed := fastpathTV.DecMapUint16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  25984. if changed {
  25985. *vp = v
  25986. }
  25987. } else {
  25988. v := rv.Interface().(map[uint16]uint)
  25989. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, f.d)
  25990. }
  25991. }
  25992. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, checkNil bool, d *Decoder) {
  25993. v, changed := f.DecMapUint16UintV(*vp, checkNil, true, d)
  25994. if changed {
  25995. *vp = v
  25996. }
  25997. }
  25998. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, checkNil bool, canChange bool,
  25999. d *Decoder) (_ map[uint16]uint, changed bool) {
  26000. dd := d.d
  26001. cr := d.cr
  26002. if checkNil && dd.TryDecodeAsNil() {
  26003. if v != nil {
  26004. changed = true
  26005. }
  26006. return nil, changed
  26007. }
  26008. containerLen := dd.ReadMapStart()
  26009. if canChange && v == nil {
  26010. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26011. v = make(map[uint16]uint, xlen)
  26012. changed = true
  26013. }
  26014. var mk uint16
  26015. var mv uint
  26016. if containerLen > 0 {
  26017. for j := 0; j < containerLen; j++ {
  26018. if cr != nil {
  26019. cr.sendContainerState(containerMapKey)
  26020. }
  26021. mk = uint16(dd.DecodeUint(16))
  26022. if cr != nil {
  26023. cr.sendContainerState(containerMapValue)
  26024. }
  26025. mv = uint(dd.DecodeUint(uintBitsize))
  26026. if v != nil {
  26027. v[mk] = mv
  26028. }
  26029. }
  26030. } else if containerLen < 0 {
  26031. for j := 0; !dd.CheckBreak(); j++ {
  26032. if cr != nil {
  26033. cr.sendContainerState(containerMapKey)
  26034. }
  26035. mk = uint16(dd.DecodeUint(16))
  26036. if cr != nil {
  26037. cr.sendContainerState(containerMapValue)
  26038. }
  26039. mv = uint(dd.DecodeUint(uintBitsize))
  26040. if v != nil {
  26041. v[mk] = mv
  26042. }
  26043. }
  26044. }
  26045. if cr != nil {
  26046. cr.sendContainerState(containerMapEnd)
  26047. }
  26048. return v, changed
  26049. }
  26050. func (f *decFnInfo) fastpathDecMapUint16Uint8R(rv reflect.Value) {
  26051. if rv.CanAddr() {
  26052. vp := rv.Addr().Interface().(*map[uint16]uint8)
  26053. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  26054. if changed {
  26055. *vp = v
  26056. }
  26057. } else {
  26058. v := rv.Interface().(map[uint16]uint8)
  26059. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  26060. }
  26061. }
  26062. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, checkNil bool, d *Decoder) {
  26063. v, changed := f.DecMapUint16Uint8V(*vp, checkNil, true, d)
  26064. if changed {
  26065. *vp = v
  26066. }
  26067. }
  26068. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, checkNil bool, canChange bool,
  26069. d *Decoder) (_ map[uint16]uint8, changed bool) {
  26070. dd := d.d
  26071. cr := d.cr
  26072. if checkNil && dd.TryDecodeAsNil() {
  26073. if v != nil {
  26074. changed = true
  26075. }
  26076. return nil, changed
  26077. }
  26078. containerLen := dd.ReadMapStart()
  26079. if canChange && v == nil {
  26080. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26081. v = make(map[uint16]uint8, xlen)
  26082. changed = true
  26083. }
  26084. var mk uint16
  26085. var mv uint8
  26086. if containerLen > 0 {
  26087. for j := 0; j < containerLen; j++ {
  26088. if cr != nil {
  26089. cr.sendContainerState(containerMapKey)
  26090. }
  26091. mk = uint16(dd.DecodeUint(16))
  26092. if cr != nil {
  26093. cr.sendContainerState(containerMapValue)
  26094. }
  26095. mv = uint8(dd.DecodeUint(8))
  26096. if v != nil {
  26097. v[mk] = mv
  26098. }
  26099. }
  26100. } else if containerLen < 0 {
  26101. for j := 0; !dd.CheckBreak(); j++ {
  26102. if cr != nil {
  26103. cr.sendContainerState(containerMapKey)
  26104. }
  26105. mk = uint16(dd.DecodeUint(16))
  26106. if cr != nil {
  26107. cr.sendContainerState(containerMapValue)
  26108. }
  26109. mv = uint8(dd.DecodeUint(8))
  26110. if v != nil {
  26111. v[mk] = mv
  26112. }
  26113. }
  26114. }
  26115. if cr != nil {
  26116. cr.sendContainerState(containerMapEnd)
  26117. }
  26118. return v, changed
  26119. }
  26120. func (f *decFnInfo) fastpathDecMapUint16Uint16R(rv reflect.Value) {
  26121. if rv.CanAddr() {
  26122. vp := rv.Addr().Interface().(*map[uint16]uint16)
  26123. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  26124. if changed {
  26125. *vp = v
  26126. }
  26127. } else {
  26128. v := rv.Interface().(map[uint16]uint16)
  26129. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  26130. }
  26131. }
  26132. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, checkNil bool, d *Decoder) {
  26133. v, changed := f.DecMapUint16Uint16V(*vp, checkNil, true, d)
  26134. if changed {
  26135. *vp = v
  26136. }
  26137. }
  26138. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, checkNil bool, canChange bool,
  26139. d *Decoder) (_ map[uint16]uint16, changed bool) {
  26140. dd := d.d
  26141. cr := d.cr
  26142. if checkNil && dd.TryDecodeAsNil() {
  26143. if v != nil {
  26144. changed = true
  26145. }
  26146. return nil, changed
  26147. }
  26148. containerLen := dd.ReadMapStart()
  26149. if canChange && v == nil {
  26150. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  26151. v = make(map[uint16]uint16, xlen)
  26152. changed = true
  26153. }
  26154. var mk uint16
  26155. var mv uint16
  26156. if containerLen > 0 {
  26157. for j := 0; j < containerLen; j++ {
  26158. if cr != nil {
  26159. cr.sendContainerState(containerMapKey)
  26160. }
  26161. mk = uint16(dd.DecodeUint(16))
  26162. if cr != nil {
  26163. cr.sendContainerState(containerMapValue)
  26164. }
  26165. mv = uint16(dd.DecodeUint(16))
  26166. if v != nil {
  26167. v[mk] = mv
  26168. }
  26169. }
  26170. } else if containerLen < 0 {
  26171. for j := 0; !dd.CheckBreak(); j++ {
  26172. if cr != nil {
  26173. cr.sendContainerState(containerMapKey)
  26174. }
  26175. mk = uint16(dd.DecodeUint(16))
  26176. if cr != nil {
  26177. cr.sendContainerState(containerMapValue)
  26178. }
  26179. mv = uint16(dd.DecodeUint(16))
  26180. if v != nil {
  26181. v[mk] = mv
  26182. }
  26183. }
  26184. }
  26185. if cr != nil {
  26186. cr.sendContainerState(containerMapEnd)
  26187. }
  26188. return v, changed
  26189. }
  26190. func (f *decFnInfo) fastpathDecMapUint16Uint32R(rv reflect.Value) {
  26191. if rv.CanAddr() {
  26192. vp := rv.Addr().Interface().(*map[uint16]uint32)
  26193. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  26194. if changed {
  26195. *vp = v
  26196. }
  26197. } else {
  26198. v := rv.Interface().(map[uint16]uint32)
  26199. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  26200. }
  26201. }
  26202. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, checkNil bool, d *Decoder) {
  26203. v, changed := f.DecMapUint16Uint32V(*vp, checkNil, true, d)
  26204. if changed {
  26205. *vp = v
  26206. }
  26207. }
  26208. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, checkNil bool, canChange bool,
  26209. d *Decoder) (_ map[uint16]uint32, changed bool) {
  26210. dd := d.d
  26211. cr := d.cr
  26212. if checkNil && dd.TryDecodeAsNil() {
  26213. if v != nil {
  26214. changed = true
  26215. }
  26216. return nil, changed
  26217. }
  26218. containerLen := dd.ReadMapStart()
  26219. if canChange && v == nil {
  26220. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26221. v = make(map[uint16]uint32, xlen)
  26222. changed = true
  26223. }
  26224. var mk uint16
  26225. var mv uint32
  26226. if containerLen > 0 {
  26227. for j := 0; j < containerLen; j++ {
  26228. if cr != nil {
  26229. cr.sendContainerState(containerMapKey)
  26230. }
  26231. mk = uint16(dd.DecodeUint(16))
  26232. if cr != nil {
  26233. cr.sendContainerState(containerMapValue)
  26234. }
  26235. mv = uint32(dd.DecodeUint(32))
  26236. if v != nil {
  26237. v[mk] = mv
  26238. }
  26239. }
  26240. } else if containerLen < 0 {
  26241. for j := 0; !dd.CheckBreak(); j++ {
  26242. if cr != nil {
  26243. cr.sendContainerState(containerMapKey)
  26244. }
  26245. mk = uint16(dd.DecodeUint(16))
  26246. if cr != nil {
  26247. cr.sendContainerState(containerMapValue)
  26248. }
  26249. mv = uint32(dd.DecodeUint(32))
  26250. if v != nil {
  26251. v[mk] = mv
  26252. }
  26253. }
  26254. }
  26255. if cr != nil {
  26256. cr.sendContainerState(containerMapEnd)
  26257. }
  26258. return v, changed
  26259. }
  26260. func (f *decFnInfo) fastpathDecMapUint16Uint64R(rv reflect.Value) {
  26261. if rv.CanAddr() {
  26262. vp := rv.Addr().Interface().(*map[uint16]uint64)
  26263. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  26264. if changed {
  26265. *vp = v
  26266. }
  26267. } else {
  26268. v := rv.Interface().(map[uint16]uint64)
  26269. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  26270. }
  26271. }
  26272. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, checkNil bool, d *Decoder) {
  26273. v, changed := f.DecMapUint16Uint64V(*vp, checkNil, true, d)
  26274. if changed {
  26275. *vp = v
  26276. }
  26277. }
  26278. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, checkNil bool, canChange bool,
  26279. d *Decoder) (_ map[uint16]uint64, changed bool) {
  26280. dd := d.d
  26281. cr := d.cr
  26282. if checkNil && dd.TryDecodeAsNil() {
  26283. if v != nil {
  26284. changed = true
  26285. }
  26286. return nil, changed
  26287. }
  26288. containerLen := dd.ReadMapStart()
  26289. if canChange && v == nil {
  26290. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26291. v = make(map[uint16]uint64, xlen)
  26292. changed = true
  26293. }
  26294. var mk uint16
  26295. var mv uint64
  26296. if containerLen > 0 {
  26297. for j := 0; j < containerLen; j++ {
  26298. if cr != nil {
  26299. cr.sendContainerState(containerMapKey)
  26300. }
  26301. mk = uint16(dd.DecodeUint(16))
  26302. if cr != nil {
  26303. cr.sendContainerState(containerMapValue)
  26304. }
  26305. mv = dd.DecodeUint(64)
  26306. if v != nil {
  26307. v[mk] = mv
  26308. }
  26309. }
  26310. } else if containerLen < 0 {
  26311. for j := 0; !dd.CheckBreak(); j++ {
  26312. if cr != nil {
  26313. cr.sendContainerState(containerMapKey)
  26314. }
  26315. mk = uint16(dd.DecodeUint(16))
  26316. if cr != nil {
  26317. cr.sendContainerState(containerMapValue)
  26318. }
  26319. mv = dd.DecodeUint(64)
  26320. if v != nil {
  26321. v[mk] = mv
  26322. }
  26323. }
  26324. }
  26325. if cr != nil {
  26326. cr.sendContainerState(containerMapEnd)
  26327. }
  26328. return v, changed
  26329. }
  26330. func (f *decFnInfo) fastpathDecMapUint16UintptrR(rv reflect.Value) {
  26331. if rv.CanAddr() {
  26332. vp := rv.Addr().Interface().(*map[uint16]uintptr)
  26333. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  26334. if changed {
  26335. *vp = v
  26336. }
  26337. } else {
  26338. v := rv.Interface().(map[uint16]uintptr)
  26339. fastpathTV.DecMapUint16UintptrV(v, fastpathCheckNilFalse, false, f.d)
  26340. }
  26341. }
  26342. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, checkNil bool, d *Decoder) {
  26343. v, changed := f.DecMapUint16UintptrV(*vp, checkNil, true, d)
  26344. if changed {
  26345. *vp = v
  26346. }
  26347. }
  26348. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, checkNil bool, canChange bool,
  26349. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  26350. dd := d.d
  26351. cr := d.cr
  26352. if checkNil && dd.TryDecodeAsNil() {
  26353. if v != nil {
  26354. changed = true
  26355. }
  26356. return nil, changed
  26357. }
  26358. containerLen := dd.ReadMapStart()
  26359. if canChange && v == nil {
  26360. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26361. v = make(map[uint16]uintptr, xlen)
  26362. changed = true
  26363. }
  26364. var mk uint16
  26365. var mv uintptr
  26366. if containerLen > 0 {
  26367. for j := 0; j < containerLen; j++ {
  26368. if cr != nil {
  26369. cr.sendContainerState(containerMapKey)
  26370. }
  26371. mk = uint16(dd.DecodeUint(16))
  26372. if cr != nil {
  26373. cr.sendContainerState(containerMapValue)
  26374. }
  26375. mv = uintptr(dd.DecodeUint(uintBitsize))
  26376. if v != nil {
  26377. v[mk] = mv
  26378. }
  26379. }
  26380. } else if containerLen < 0 {
  26381. for j := 0; !dd.CheckBreak(); j++ {
  26382. if cr != nil {
  26383. cr.sendContainerState(containerMapKey)
  26384. }
  26385. mk = uint16(dd.DecodeUint(16))
  26386. if cr != nil {
  26387. cr.sendContainerState(containerMapValue)
  26388. }
  26389. mv = uintptr(dd.DecodeUint(uintBitsize))
  26390. if v != nil {
  26391. v[mk] = mv
  26392. }
  26393. }
  26394. }
  26395. if cr != nil {
  26396. cr.sendContainerState(containerMapEnd)
  26397. }
  26398. return v, changed
  26399. }
  26400. func (f *decFnInfo) fastpathDecMapUint16IntR(rv reflect.Value) {
  26401. if rv.CanAddr() {
  26402. vp := rv.Addr().Interface().(*map[uint16]int)
  26403. v, changed := fastpathTV.DecMapUint16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  26404. if changed {
  26405. *vp = v
  26406. }
  26407. } else {
  26408. v := rv.Interface().(map[uint16]int)
  26409. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, f.d)
  26410. }
  26411. }
  26412. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, checkNil bool, d *Decoder) {
  26413. v, changed := f.DecMapUint16IntV(*vp, checkNil, true, d)
  26414. if changed {
  26415. *vp = v
  26416. }
  26417. }
  26418. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, checkNil bool, canChange bool,
  26419. d *Decoder) (_ map[uint16]int, changed bool) {
  26420. dd := d.d
  26421. cr := d.cr
  26422. if checkNil && dd.TryDecodeAsNil() {
  26423. if v != nil {
  26424. changed = true
  26425. }
  26426. return nil, changed
  26427. }
  26428. containerLen := dd.ReadMapStart()
  26429. if canChange && v == nil {
  26430. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26431. v = make(map[uint16]int, xlen)
  26432. changed = true
  26433. }
  26434. var mk uint16
  26435. var mv int
  26436. if containerLen > 0 {
  26437. for j := 0; j < containerLen; j++ {
  26438. if cr != nil {
  26439. cr.sendContainerState(containerMapKey)
  26440. }
  26441. mk = uint16(dd.DecodeUint(16))
  26442. if cr != nil {
  26443. cr.sendContainerState(containerMapValue)
  26444. }
  26445. mv = int(dd.DecodeInt(intBitsize))
  26446. if v != nil {
  26447. v[mk] = mv
  26448. }
  26449. }
  26450. } else if containerLen < 0 {
  26451. for j := 0; !dd.CheckBreak(); j++ {
  26452. if cr != nil {
  26453. cr.sendContainerState(containerMapKey)
  26454. }
  26455. mk = uint16(dd.DecodeUint(16))
  26456. if cr != nil {
  26457. cr.sendContainerState(containerMapValue)
  26458. }
  26459. mv = int(dd.DecodeInt(intBitsize))
  26460. if v != nil {
  26461. v[mk] = mv
  26462. }
  26463. }
  26464. }
  26465. if cr != nil {
  26466. cr.sendContainerState(containerMapEnd)
  26467. }
  26468. return v, changed
  26469. }
  26470. func (f *decFnInfo) fastpathDecMapUint16Int8R(rv reflect.Value) {
  26471. if rv.CanAddr() {
  26472. vp := rv.Addr().Interface().(*map[uint16]int8)
  26473. v, changed := fastpathTV.DecMapUint16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  26474. if changed {
  26475. *vp = v
  26476. }
  26477. } else {
  26478. v := rv.Interface().(map[uint16]int8)
  26479. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, f.d)
  26480. }
  26481. }
  26482. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, checkNil bool, d *Decoder) {
  26483. v, changed := f.DecMapUint16Int8V(*vp, checkNil, true, d)
  26484. if changed {
  26485. *vp = v
  26486. }
  26487. }
  26488. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, checkNil bool, canChange bool,
  26489. d *Decoder) (_ map[uint16]int8, changed bool) {
  26490. dd := d.d
  26491. cr := d.cr
  26492. if checkNil && dd.TryDecodeAsNil() {
  26493. if v != nil {
  26494. changed = true
  26495. }
  26496. return nil, changed
  26497. }
  26498. containerLen := dd.ReadMapStart()
  26499. if canChange && v == nil {
  26500. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26501. v = make(map[uint16]int8, xlen)
  26502. changed = true
  26503. }
  26504. var mk uint16
  26505. var mv int8
  26506. if containerLen > 0 {
  26507. for j := 0; j < containerLen; j++ {
  26508. if cr != nil {
  26509. cr.sendContainerState(containerMapKey)
  26510. }
  26511. mk = uint16(dd.DecodeUint(16))
  26512. if cr != nil {
  26513. cr.sendContainerState(containerMapValue)
  26514. }
  26515. mv = int8(dd.DecodeInt(8))
  26516. if v != nil {
  26517. v[mk] = mv
  26518. }
  26519. }
  26520. } else if containerLen < 0 {
  26521. for j := 0; !dd.CheckBreak(); j++ {
  26522. if cr != nil {
  26523. cr.sendContainerState(containerMapKey)
  26524. }
  26525. mk = uint16(dd.DecodeUint(16))
  26526. if cr != nil {
  26527. cr.sendContainerState(containerMapValue)
  26528. }
  26529. mv = int8(dd.DecodeInt(8))
  26530. if v != nil {
  26531. v[mk] = mv
  26532. }
  26533. }
  26534. }
  26535. if cr != nil {
  26536. cr.sendContainerState(containerMapEnd)
  26537. }
  26538. return v, changed
  26539. }
  26540. func (f *decFnInfo) fastpathDecMapUint16Int16R(rv reflect.Value) {
  26541. if rv.CanAddr() {
  26542. vp := rv.Addr().Interface().(*map[uint16]int16)
  26543. v, changed := fastpathTV.DecMapUint16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  26544. if changed {
  26545. *vp = v
  26546. }
  26547. } else {
  26548. v := rv.Interface().(map[uint16]int16)
  26549. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, f.d)
  26550. }
  26551. }
  26552. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, checkNil bool, d *Decoder) {
  26553. v, changed := f.DecMapUint16Int16V(*vp, checkNil, true, d)
  26554. if changed {
  26555. *vp = v
  26556. }
  26557. }
  26558. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, checkNil bool, canChange bool,
  26559. d *Decoder) (_ map[uint16]int16, changed bool) {
  26560. dd := d.d
  26561. cr := d.cr
  26562. if checkNil && dd.TryDecodeAsNil() {
  26563. if v != nil {
  26564. changed = true
  26565. }
  26566. return nil, changed
  26567. }
  26568. containerLen := dd.ReadMapStart()
  26569. if canChange && v == nil {
  26570. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  26571. v = make(map[uint16]int16, xlen)
  26572. changed = true
  26573. }
  26574. var mk uint16
  26575. var mv int16
  26576. if containerLen > 0 {
  26577. for j := 0; j < containerLen; j++ {
  26578. if cr != nil {
  26579. cr.sendContainerState(containerMapKey)
  26580. }
  26581. mk = uint16(dd.DecodeUint(16))
  26582. if cr != nil {
  26583. cr.sendContainerState(containerMapValue)
  26584. }
  26585. mv = int16(dd.DecodeInt(16))
  26586. if v != nil {
  26587. v[mk] = mv
  26588. }
  26589. }
  26590. } else if containerLen < 0 {
  26591. for j := 0; !dd.CheckBreak(); j++ {
  26592. if cr != nil {
  26593. cr.sendContainerState(containerMapKey)
  26594. }
  26595. mk = uint16(dd.DecodeUint(16))
  26596. if cr != nil {
  26597. cr.sendContainerState(containerMapValue)
  26598. }
  26599. mv = int16(dd.DecodeInt(16))
  26600. if v != nil {
  26601. v[mk] = mv
  26602. }
  26603. }
  26604. }
  26605. if cr != nil {
  26606. cr.sendContainerState(containerMapEnd)
  26607. }
  26608. return v, changed
  26609. }
  26610. func (f *decFnInfo) fastpathDecMapUint16Int32R(rv reflect.Value) {
  26611. if rv.CanAddr() {
  26612. vp := rv.Addr().Interface().(*map[uint16]int32)
  26613. v, changed := fastpathTV.DecMapUint16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  26614. if changed {
  26615. *vp = v
  26616. }
  26617. } else {
  26618. v := rv.Interface().(map[uint16]int32)
  26619. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, f.d)
  26620. }
  26621. }
  26622. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, checkNil bool, d *Decoder) {
  26623. v, changed := f.DecMapUint16Int32V(*vp, checkNil, true, d)
  26624. if changed {
  26625. *vp = v
  26626. }
  26627. }
  26628. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, checkNil bool, canChange bool,
  26629. d *Decoder) (_ map[uint16]int32, changed bool) {
  26630. dd := d.d
  26631. cr := d.cr
  26632. if checkNil && dd.TryDecodeAsNil() {
  26633. if v != nil {
  26634. changed = true
  26635. }
  26636. return nil, changed
  26637. }
  26638. containerLen := dd.ReadMapStart()
  26639. if canChange && v == nil {
  26640. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26641. v = make(map[uint16]int32, xlen)
  26642. changed = true
  26643. }
  26644. var mk uint16
  26645. var mv int32
  26646. if containerLen > 0 {
  26647. for j := 0; j < containerLen; j++ {
  26648. if cr != nil {
  26649. cr.sendContainerState(containerMapKey)
  26650. }
  26651. mk = uint16(dd.DecodeUint(16))
  26652. if cr != nil {
  26653. cr.sendContainerState(containerMapValue)
  26654. }
  26655. mv = int32(dd.DecodeInt(32))
  26656. if v != nil {
  26657. v[mk] = mv
  26658. }
  26659. }
  26660. } else if containerLen < 0 {
  26661. for j := 0; !dd.CheckBreak(); j++ {
  26662. if cr != nil {
  26663. cr.sendContainerState(containerMapKey)
  26664. }
  26665. mk = uint16(dd.DecodeUint(16))
  26666. if cr != nil {
  26667. cr.sendContainerState(containerMapValue)
  26668. }
  26669. mv = int32(dd.DecodeInt(32))
  26670. if v != nil {
  26671. v[mk] = mv
  26672. }
  26673. }
  26674. }
  26675. if cr != nil {
  26676. cr.sendContainerState(containerMapEnd)
  26677. }
  26678. return v, changed
  26679. }
  26680. func (f *decFnInfo) fastpathDecMapUint16Int64R(rv reflect.Value) {
  26681. if rv.CanAddr() {
  26682. vp := rv.Addr().Interface().(*map[uint16]int64)
  26683. v, changed := fastpathTV.DecMapUint16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  26684. if changed {
  26685. *vp = v
  26686. }
  26687. } else {
  26688. v := rv.Interface().(map[uint16]int64)
  26689. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, f.d)
  26690. }
  26691. }
  26692. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, checkNil bool, d *Decoder) {
  26693. v, changed := f.DecMapUint16Int64V(*vp, checkNil, true, d)
  26694. if changed {
  26695. *vp = v
  26696. }
  26697. }
  26698. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, checkNil bool, canChange bool,
  26699. d *Decoder) (_ map[uint16]int64, changed bool) {
  26700. dd := d.d
  26701. cr := d.cr
  26702. if checkNil && dd.TryDecodeAsNil() {
  26703. if v != nil {
  26704. changed = true
  26705. }
  26706. return nil, changed
  26707. }
  26708. containerLen := dd.ReadMapStart()
  26709. if canChange && v == nil {
  26710. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26711. v = make(map[uint16]int64, xlen)
  26712. changed = true
  26713. }
  26714. var mk uint16
  26715. var mv int64
  26716. if containerLen > 0 {
  26717. for j := 0; j < containerLen; j++ {
  26718. if cr != nil {
  26719. cr.sendContainerState(containerMapKey)
  26720. }
  26721. mk = uint16(dd.DecodeUint(16))
  26722. if cr != nil {
  26723. cr.sendContainerState(containerMapValue)
  26724. }
  26725. mv = dd.DecodeInt(64)
  26726. if v != nil {
  26727. v[mk] = mv
  26728. }
  26729. }
  26730. } else if containerLen < 0 {
  26731. for j := 0; !dd.CheckBreak(); j++ {
  26732. if cr != nil {
  26733. cr.sendContainerState(containerMapKey)
  26734. }
  26735. mk = uint16(dd.DecodeUint(16))
  26736. if cr != nil {
  26737. cr.sendContainerState(containerMapValue)
  26738. }
  26739. mv = dd.DecodeInt(64)
  26740. if v != nil {
  26741. v[mk] = mv
  26742. }
  26743. }
  26744. }
  26745. if cr != nil {
  26746. cr.sendContainerState(containerMapEnd)
  26747. }
  26748. return v, changed
  26749. }
  26750. func (f *decFnInfo) fastpathDecMapUint16Float32R(rv reflect.Value) {
  26751. if rv.CanAddr() {
  26752. vp := rv.Addr().Interface().(*map[uint16]float32)
  26753. v, changed := fastpathTV.DecMapUint16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  26754. if changed {
  26755. *vp = v
  26756. }
  26757. } else {
  26758. v := rv.Interface().(map[uint16]float32)
  26759. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, f.d)
  26760. }
  26761. }
  26762. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, checkNil bool, d *Decoder) {
  26763. v, changed := f.DecMapUint16Float32V(*vp, checkNil, true, d)
  26764. if changed {
  26765. *vp = v
  26766. }
  26767. }
  26768. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, checkNil bool, canChange bool,
  26769. d *Decoder) (_ map[uint16]float32, changed bool) {
  26770. dd := d.d
  26771. cr := d.cr
  26772. if checkNil && dd.TryDecodeAsNil() {
  26773. if v != nil {
  26774. changed = true
  26775. }
  26776. return nil, changed
  26777. }
  26778. containerLen := dd.ReadMapStart()
  26779. if canChange && v == nil {
  26780. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26781. v = make(map[uint16]float32, xlen)
  26782. changed = true
  26783. }
  26784. var mk uint16
  26785. var mv float32
  26786. if containerLen > 0 {
  26787. for j := 0; j < containerLen; j++ {
  26788. if cr != nil {
  26789. cr.sendContainerState(containerMapKey)
  26790. }
  26791. mk = uint16(dd.DecodeUint(16))
  26792. if cr != nil {
  26793. cr.sendContainerState(containerMapValue)
  26794. }
  26795. mv = float32(dd.DecodeFloat(true))
  26796. if v != nil {
  26797. v[mk] = mv
  26798. }
  26799. }
  26800. } else if containerLen < 0 {
  26801. for j := 0; !dd.CheckBreak(); j++ {
  26802. if cr != nil {
  26803. cr.sendContainerState(containerMapKey)
  26804. }
  26805. mk = uint16(dd.DecodeUint(16))
  26806. if cr != nil {
  26807. cr.sendContainerState(containerMapValue)
  26808. }
  26809. mv = float32(dd.DecodeFloat(true))
  26810. if v != nil {
  26811. v[mk] = mv
  26812. }
  26813. }
  26814. }
  26815. if cr != nil {
  26816. cr.sendContainerState(containerMapEnd)
  26817. }
  26818. return v, changed
  26819. }
  26820. func (f *decFnInfo) fastpathDecMapUint16Float64R(rv reflect.Value) {
  26821. if rv.CanAddr() {
  26822. vp := rv.Addr().Interface().(*map[uint16]float64)
  26823. v, changed := fastpathTV.DecMapUint16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  26824. if changed {
  26825. *vp = v
  26826. }
  26827. } else {
  26828. v := rv.Interface().(map[uint16]float64)
  26829. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, f.d)
  26830. }
  26831. }
  26832. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, checkNil bool, d *Decoder) {
  26833. v, changed := f.DecMapUint16Float64V(*vp, checkNil, true, d)
  26834. if changed {
  26835. *vp = v
  26836. }
  26837. }
  26838. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, checkNil bool, canChange bool,
  26839. d *Decoder) (_ map[uint16]float64, changed bool) {
  26840. dd := d.d
  26841. cr := d.cr
  26842. if checkNil && dd.TryDecodeAsNil() {
  26843. if v != nil {
  26844. changed = true
  26845. }
  26846. return nil, changed
  26847. }
  26848. containerLen := dd.ReadMapStart()
  26849. if canChange && v == nil {
  26850. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26851. v = make(map[uint16]float64, xlen)
  26852. changed = true
  26853. }
  26854. var mk uint16
  26855. var mv float64
  26856. if containerLen > 0 {
  26857. for j := 0; j < containerLen; j++ {
  26858. if cr != nil {
  26859. cr.sendContainerState(containerMapKey)
  26860. }
  26861. mk = uint16(dd.DecodeUint(16))
  26862. if cr != nil {
  26863. cr.sendContainerState(containerMapValue)
  26864. }
  26865. mv = dd.DecodeFloat(false)
  26866. if v != nil {
  26867. v[mk] = mv
  26868. }
  26869. }
  26870. } else if containerLen < 0 {
  26871. for j := 0; !dd.CheckBreak(); j++ {
  26872. if cr != nil {
  26873. cr.sendContainerState(containerMapKey)
  26874. }
  26875. mk = uint16(dd.DecodeUint(16))
  26876. if cr != nil {
  26877. cr.sendContainerState(containerMapValue)
  26878. }
  26879. mv = dd.DecodeFloat(false)
  26880. if v != nil {
  26881. v[mk] = mv
  26882. }
  26883. }
  26884. }
  26885. if cr != nil {
  26886. cr.sendContainerState(containerMapEnd)
  26887. }
  26888. return v, changed
  26889. }
  26890. func (f *decFnInfo) fastpathDecMapUint16BoolR(rv reflect.Value) {
  26891. if rv.CanAddr() {
  26892. vp := rv.Addr().Interface().(*map[uint16]bool)
  26893. v, changed := fastpathTV.DecMapUint16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  26894. if changed {
  26895. *vp = v
  26896. }
  26897. } else {
  26898. v := rv.Interface().(map[uint16]bool)
  26899. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, f.d)
  26900. }
  26901. }
  26902. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, checkNil bool, d *Decoder) {
  26903. v, changed := f.DecMapUint16BoolV(*vp, checkNil, true, d)
  26904. if changed {
  26905. *vp = v
  26906. }
  26907. }
  26908. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, checkNil bool, canChange bool,
  26909. d *Decoder) (_ map[uint16]bool, changed bool) {
  26910. dd := d.d
  26911. cr := d.cr
  26912. if checkNil && dd.TryDecodeAsNil() {
  26913. if v != nil {
  26914. changed = true
  26915. }
  26916. return nil, changed
  26917. }
  26918. containerLen := dd.ReadMapStart()
  26919. if canChange && v == nil {
  26920. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26921. v = make(map[uint16]bool, xlen)
  26922. changed = true
  26923. }
  26924. var mk uint16
  26925. var mv bool
  26926. if containerLen > 0 {
  26927. for j := 0; j < containerLen; j++ {
  26928. if cr != nil {
  26929. cr.sendContainerState(containerMapKey)
  26930. }
  26931. mk = uint16(dd.DecodeUint(16))
  26932. if cr != nil {
  26933. cr.sendContainerState(containerMapValue)
  26934. }
  26935. mv = dd.DecodeBool()
  26936. if v != nil {
  26937. v[mk] = mv
  26938. }
  26939. }
  26940. } else if containerLen < 0 {
  26941. for j := 0; !dd.CheckBreak(); j++ {
  26942. if cr != nil {
  26943. cr.sendContainerState(containerMapKey)
  26944. }
  26945. mk = uint16(dd.DecodeUint(16))
  26946. if cr != nil {
  26947. cr.sendContainerState(containerMapValue)
  26948. }
  26949. mv = dd.DecodeBool()
  26950. if v != nil {
  26951. v[mk] = mv
  26952. }
  26953. }
  26954. }
  26955. if cr != nil {
  26956. cr.sendContainerState(containerMapEnd)
  26957. }
  26958. return v, changed
  26959. }
  26960. func (f *decFnInfo) fastpathDecMapUint32IntfR(rv reflect.Value) {
  26961. if rv.CanAddr() {
  26962. vp := rv.Addr().Interface().(*map[uint32]interface{})
  26963. v, changed := fastpathTV.DecMapUint32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  26964. if changed {
  26965. *vp = v
  26966. }
  26967. } else {
  26968. v := rv.Interface().(map[uint32]interface{})
  26969. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, f.d)
  26970. }
  26971. }
  26972. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, checkNil bool, d *Decoder) {
  26973. v, changed := f.DecMapUint32IntfV(*vp, checkNil, true, d)
  26974. if changed {
  26975. *vp = v
  26976. }
  26977. }
  26978. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, checkNil bool, canChange bool,
  26979. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  26980. dd := d.d
  26981. cr := d.cr
  26982. if checkNil && dd.TryDecodeAsNil() {
  26983. if v != nil {
  26984. changed = true
  26985. }
  26986. return nil, changed
  26987. }
  26988. containerLen := dd.ReadMapStart()
  26989. if canChange && v == nil {
  26990. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  26991. v = make(map[uint32]interface{}, xlen)
  26992. changed = true
  26993. }
  26994. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  26995. var mk uint32
  26996. var mv interface{}
  26997. if containerLen > 0 {
  26998. for j := 0; j < containerLen; j++ {
  26999. if cr != nil {
  27000. cr.sendContainerState(containerMapKey)
  27001. }
  27002. mk = uint32(dd.DecodeUint(32))
  27003. if cr != nil {
  27004. cr.sendContainerState(containerMapValue)
  27005. }
  27006. if mapGet {
  27007. mv = v[mk]
  27008. } else {
  27009. mv = nil
  27010. }
  27011. d.decode(&mv)
  27012. if v != nil {
  27013. v[mk] = mv
  27014. }
  27015. }
  27016. } else if containerLen < 0 {
  27017. for j := 0; !dd.CheckBreak(); j++ {
  27018. if cr != nil {
  27019. cr.sendContainerState(containerMapKey)
  27020. }
  27021. mk = uint32(dd.DecodeUint(32))
  27022. if cr != nil {
  27023. cr.sendContainerState(containerMapValue)
  27024. }
  27025. if mapGet {
  27026. mv = v[mk]
  27027. } else {
  27028. mv = nil
  27029. }
  27030. d.decode(&mv)
  27031. if v != nil {
  27032. v[mk] = mv
  27033. }
  27034. }
  27035. }
  27036. if cr != nil {
  27037. cr.sendContainerState(containerMapEnd)
  27038. }
  27039. return v, changed
  27040. }
  27041. func (f *decFnInfo) fastpathDecMapUint32StringR(rv reflect.Value) {
  27042. if rv.CanAddr() {
  27043. vp := rv.Addr().Interface().(*map[uint32]string)
  27044. v, changed := fastpathTV.DecMapUint32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  27045. if changed {
  27046. *vp = v
  27047. }
  27048. } else {
  27049. v := rv.Interface().(map[uint32]string)
  27050. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, f.d)
  27051. }
  27052. }
  27053. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, checkNil bool, d *Decoder) {
  27054. v, changed := f.DecMapUint32StringV(*vp, checkNil, true, d)
  27055. if changed {
  27056. *vp = v
  27057. }
  27058. }
  27059. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, checkNil bool, canChange bool,
  27060. d *Decoder) (_ map[uint32]string, changed bool) {
  27061. dd := d.d
  27062. cr := d.cr
  27063. if checkNil && dd.TryDecodeAsNil() {
  27064. if v != nil {
  27065. changed = true
  27066. }
  27067. return nil, changed
  27068. }
  27069. containerLen := dd.ReadMapStart()
  27070. if canChange && v == nil {
  27071. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  27072. v = make(map[uint32]string, xlen)
  27073. changed = true
  27074. }
  27075. var mk uint32
  27076. var mv string
  27077. if containerLen > 0 {
  27078. for j := 0; j < containerLen; j++ {
  27079. if cr != nil {
  27080. cr.sendContainerState(containerMapKey)
  27081. }
  27082. mk = uint32(dd.DecodeUint(32))
  27083. if cr != nil {
  27084. cr.sendContainerState(containerMapValue)
  27085. }
  27086. mv = dd.DecodeString()
  27087. if v != nil {
  27088. v[mk] = mv
  27089. }
  27090. }
  27091. } else if containerLen < 0 {
  27092. for j := 0; !dd.CheckBreak(); j++ {
  27093. if cr != nil {
  27094. cr.sendContainerState(containerMapKey)
  27095. }
  27096. mk = uint32(dd.DecodeUint(32))
  27097. if cr != nil {
  27098. cr.sendContainerState(containerMapValue)
  27099. }
  27100. mv = dd.DecodeString()
  27101. if v != nil {
  27102. v[mk] = mv
  27103. }
  27104. }
  27105. }
  27106. if cr != nil {
  27107. cr.sendContainerState(containerMapEnd)
  27108. }
  27109. return v, changed
  27110. }
  27111. func (f *decFnInfo) fastpathDecMapUint32UintR(rv reflect.Value) {
  27112. if rv.CanAddr() {
  27113. vp := rv.Addr().Interface().(*map[uint32]uint)
  27114. v, changed := fastpathTV.DecMapUint32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  27115. if changed {
  27116. *vp = v
  27117. }
  27118. } else {
  27119. v := rv.Interface().(map[uint32]uint)
  27120. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, f.d)
  27121. }
  27122. }
  27123. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, checkNil bool, d *Decoder) {
  27124. v, changed := f.DecMapUint32UintV(*vp, checkNil, true, d)
  27125. if changed {
  27126. *vp = v
  27127. }
  27128. }
  27129. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, checkNil bool, canChange bool,
  27130. d *Decoder) (_ map[uint32]uint, changed bool) {
  27131. dd := d.d
  27132. cr := d.cr
  27133. if checkNil && dd.TryDecodeAsNil() {
  27134. if v != nil {
  27135. changed = true
  27136. }
  27137. return nil, changed
  27138. }
  27139. containerLen := dd.ReadMapStart()
  27140. if canChange && v == nil {
  27141. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27142. v = make(map[uint32]uint, xlen)
  27143. changed = true
  27144. }
  27145. var mk uint32
  27146. var mv uint
  27147. if containerLen > 0 {
  27148. for j := 0; j < containerLen; j++ {
  27149. if cr != nil {
  27150. cr.sendContainerState(containerMapKey)
  27151. }
  27152. mk = uint32(dd.DecodeUint(32))
  27153. if cr != nil {
  27154. cr.sendContainerState(containerMapValue)
  27155. }
  27156. mv = uint(dd.DecodeUint(uintBitsize))
  27157. if v != nil {
  27158. v[mk] = mv
  27159. }
  27160. }
  27161. } else if containerLen < 0 {
  27162. for j := 0; !dd.CheckBreak(); j++ {
  27163. if cr != nil {
  27164. cr.sendContainerState(containerMapKey)
  27165. }
  27166. mk = uint32(dd.DecodeUint(32))
  27167. if cr != nil {
  27168. cr.sendContainerState(containerMapValue)
  27169. }
  27170. mv = uint(dd.DecodeUint(uintBitsize))
  27171. if v != nil {
  27172. v[mk] = mv
  27173. }
  27174. }
  27175. }
  27176. if cr != nil {
  27177. cr.sendContainerState(containerMapEnd)
  27178. }
  27179. return v, changed
  27180. }
  27181. func (f *decFnInfo) fastpathDecMapUint32Uint8R(rv reflect.Value) {
  27182. if rv.CanAddr() {
  27183. vp := rv.Addr().Interface().(*map[uint32]uint8)
  27184. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  27185. if changed {
  27186. *vp = v
  27187. }
  27188. } else {
  27189. v := rv.Interface().(map[uint32]uint8)
  27190. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  27191. }
  27192. }
  27193. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, checkNil bool, d *Decoder) {
  27194. v, changed := f.DecMapUint32Uint8V(*vp, checkNil, true, d)
  27195. if changed {
  27196. *vp = v
  27197. }
  27198. }
  27199. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, checkNil bool, canChange bool,
  27200. d *Decoder) (_ map[uint32]uint8, changed bool) {
  27201. dd := d.d
  27202. cr := d.cr
  27203. if checkNil && dd.TryDecodeAsNil() {
  27204. if v != nil {
  27205. changed = true
  27206. }
  27207. return nil, changed
  27208. }
  27209. containerLen := dd.ReadMapStart()
  27210. if canChange && v == nil {
  27211. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27212. v = make(map[uint32]uint8, xlen)
  27213. changed = true
  27214. }
  27215. var mk uint32
  27216. var mv uint8
  27217. if containerLen > 0 {
  27218. for j := 0; j < containerLen; j++ {
  27219. if cr != nil {
  27220. cr.sendContainerState(containerMapKey)
  27221. }
  27222. mk = uint32(dd.DecodeUint(32))
  27223. if cr != nil {
  27224. cr.sendContainerState(containerMapValue)
  27225. }
  27226. mv = uint8(dd.DecodeUint(8))
  27227. if v != nil {
  27228. v[mk] = mv
  27229. }
  27230. }
  27231. } else if containerLen < 0 {
  27232. for j := 0; !dd.CheckBreak(); j++ {
  27233. if cr != nil {
  27234. cr.sendContainerState(containerMapKey)
  27235. }
  27236. mk = uint32(dd.DecodeUint(32))
  27237. if cr != nil {
  27238. cr.sendContainerState(containerMapValue)
  27239. }
  27240. mv = uint8(dd.DecodeUint(8))
  27241. if v != nil {
  27242. v[mk] = mv
  27243. }
  27244. }
  27245. }
  27246. if cr != nil {
  27247. cr.sendContainerState(containerMapEnd)
  27248. }
  27249. return v, changed
  27250. }
  27251. func (f *decFnInfo) fastpathDecMapUint32Uint16R(rv reflect.Value) {
  27252. if rv.CanAddr() {
  27253. vp := rv.Addr().Interface().(*map[uint32]uint16)
  27254. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  27255. if changed {
  27256. *vp = v
  27257. }
  27258. } else {
  27259. v := rv.Interface().(map[uint32]uint16)
  27260. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  27261. }
  27262. }
  27263. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, checkNil bool, d *Decoder) {
  27264. v, changed := f.DecMapUint32Uint16V(*vp, checkNil, true, d)
  27265. if changed {
  27266. *vp = v
  27267. }
  27268. }
  27269. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, checkNil bool, canChange bool,
  27270. d *Decoder) (_ map[uint32]uint16, changed bool) {
  27271. dd := d.d
  27272. cr := d.cr
  27273. if checkNil && dd.TryDecodeAsNil() {
  27274. if v != nil {
  27275. changed = true
  27276. }
  27277. return nil, changed
  27278. }
  27279. containerLen := dd.ReadMapStart()
  27280. if canChange && v == nil {
  27281. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27282. v = make(map[uint32]uint16, xlen)
  27283. changed = true
  27284. }
  27285. var mk uint32
  27286. var mv uint16
  27287. if containerLen > 0 {
  27288. for j := 0; j < containerLen; j++ {
  27289. if cr != nil {
  27290. cr.sendContainerState(containerMapKey)
  27291. }
  27292. mk = uint32(dd.DecodeUint(32))
  27293. if cr != nil {
  27294. cr.sendContainerState(containerMapValue)
  27295. }
  27296. mv = uint16(dd.DecodeUint(16))
  27297. if v != nil {
  27298. v[mk] = mv
  27299. }
  27300. }
  27301. } else if containerLen < 0 {
  27302. for j := 0; !dd.CheckBreak(); j++ {
  27303. if cr != nil {
  27304. cr.sendContainerState(containerMapKey)
  27305. }
  27306. mk = uint32(dd.DecodeUint(32))
  27307. if cr != nil {
  27308. cr.sendContainerState(containerMapValue)
  27309. }
  27310. mv = uint16(dd.DecodeUint(16))
  27311. if v != nil {
  27312. v[mk] = mv
  27313. }
  27314. }
  27315. }
  27316. if cr != nil {
  27317. cr.sendContainerState(containerMapEnd)
  27318. }
  27319. return v, changed
  27320. }
  27321. func (f *decFnInfo) fastpathDecMapUint32Uint32R(rv reflect.Value) {
  27322. if rv.CanAddr() {
  27323. vp := rv.Addr().Interface().(*map[uint32]uint32)
  27324. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  27325. if changed {
  27326. *vp = v
  27327. }
  27328. } else {
  27329. v := rv.Interface().(map[uint32]uint32)
  27330. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  27331. }
  27332. }
  27333. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, checkNil bool, d *Decoder) {
  27334. v, changed := f.DecMapUint32Uint32V(*vp, checkNil, true, d)
  27335. if changed {
  27336. *vp = v
  27337. }
  27338. }
  27339. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, checkNil bool, canChange bool,
  27340. d *Decoder) (_ map[uint32]uint32, changed bool) {
  27341. dd := d.d
  27342. cr := d.cr
  27343. if checkNil && dd.TryDecodeAsNil() {
  27344. if v != nil {
  27345. changed = true
  27346. }
  27347. return nil, changed
  27348. }
  27349. containerLen := dd.ReadMapStart()
  27350. if canChange && v == nil {
  27351. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  27352. v = make(map[uint32]uint32, xlen)
  27353. changed = true
  27354. }
  27355. var mk uint32
  27356. var mv uint32
  27357. if containerLen > 0 {
  27358. for j := 0; j < containerLen; j++ {
  27359. if cr != nil {
  27360. cr.sendContainerState(containerMapKey)
  27361. }
  27362. mk = uint32(dd.DecodeUint(32))
  27363. if cr != nil {
  27364. cr.sendContainerState(containerMapValue)
  27365. }
  27366. mv = uint32(dd.DecodeUint(32))
  27367. if v != nil {
  27368. v[mk] = mv
  27369. }
  27370. }
  27371. } else if containerLen < 0 {
  27372. for j := 0; !dd.CheckBreak(); j++ {
  27373. if cr != nil {
  27374. cr.sendContainerState(containerMapKey)
  27375. }
  27376. mk = uint32(dd.DecodeUint(32))
  27377. if cr != nil {
  27378. cr.sendContainerState(containerMapValue)
  27379. }
  27380. mv = uint32(dd.DecodeUint(32))
  27381. if v != nil {
  27382. v[mk] = mv
  27383. }
  27384. }
  27385. }
  27386. if cr != nil {
  27387. cr.sendContainerState(containerMapEnd)
  27388. }
  27389. return v, changed
  27390. }
  27391. func (f *decFnInfo) fastpathDecMapUint32Uint64R(rv reflect.Value) {
  27392. if rv.CanAddr() {
  27393. vp := rv.Addr().Interface().(*map[uint32]uint64)
  27394. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  27395. if changed {
  27396. *vp = v
  27397. }
  27398. } else {
  27399. v := rv.Interface().(map[uint32]uint64)
  27400. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  27401. }
  27402. }
  27403. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, checkNil bool, d *Decoder) {
  27404. v, changed := f.DecMapUint32Uint64V(*vp, checkNil, true, d)
  27405. if changed {
  27406. *vp = v
  27407. }
  27408. }
  27409. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, checkNil bool, canChange bool,
  27410. d *Decoder) (_ map[uint32]uint64, changed bool) {
  27411. dd := d.d
  27412. cr := d.cr
  27413. if checkNil && dd.TryDecodeAsNil() {
  27414. if v != nil {
  27415. changed = true
  27416. }
  27417. return nil, changed
  27418. }
  27419. containerLen := dd.ReadMapStart()
  27420. if canChange && v == nil {
  27421. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27422. v = make(map[uint32]uint64, xlen)
  27423. changed = true
  27424. }
  27425. var mk uint32
  27426. var mv uint64
  27427. if containerLen > 0 {
  27428. for j := 0; j < containerLen; j++ {
  27429. if cr != nil {
  27430. cr.sendContainerState(containerMapKey)
  27431. }
  27432. mk = uint32(dd.DecodeUint(32))
  27433. if cr != nil {
  27434. cr.sendContainerState(containerMapValue)
  27435. }
  27436. mv = dd.DecodeUint(64)
  27437. if v != nil {
  27438. v[mk] = mv
  27439. }
  27440. }
  27441. } else if containerLen < 0 {
  27442. for j := 0; !dd.CheckBreak(); j++ {
  27443. if cr != nil {
  27444. cr.sendContainerState(containerMapKey)
  27445. }
  27446. mk = uint32(dd.DecodeUint(32))
  27447. if cr != nil {
  27448. cr.sendContainerState(containerMapValue)
  27449. }
  27450. mv = dd.DecodeUint(64)
  27451. if v != nil {
  27452. v[mk] = mv
  27453. }
  27454. }
  27455. }
  27456. if cr != nil {
  27457. cr.sendContainerState(containerMapEnd)
  27458. }
  27459. return v, changed
  27460. }
  27461. func (f *decFnInfo) fastpathDecMapUint32UintptrR(rv reflect.Value) {
  27462. if rv.CanAddr() {
  27463. vp := rv.Addr().Interface().(*map[uint32]uintptr)
  27464. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  27465. if changed {
  27466. *vp = v
  27467. }
  27468. } else {
  27469. v := rv.Interface().(map[uint32]uintptr)
  27470. fastpathTV.DecMapUint32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  27471. }
  27472. }
  27473. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, checkNil bool, d *Decoder) {
  27474. v, changed := f.DecMapUint32UintptrV(*vp, checkNil, true, d)
  27475. if changed {
  27476. *vp = v
  27477. }
  27478. }
  27479. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, checkNil bool, canChange bool,
  27480. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  27481. dd := d.d
  27482. cr := d.cr
  27483. if checkNil && dd.TryDecodeAsNil() {
  27484. if v != nil {
  27485. changed = true
  27486. }
  27487. return nil, changed
  27488. }
  27489. containerLen := dd.ReadMapStart()
  27490. if canChange && v == nil {
  27491. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27492. v = make(map[uint32]uintptr, xlen)
  27493. changed = true
  27494. }
  27495. var mk uint32
  27496. var mv uintptr
  27497. if containerLen > 0 {
  27498. for j := 0; j < containerLen; j++ {
  27499. if cr != nil {
  27500. cr.sendContainerState(containerMapKey)
  27501. }
  27502. mk = uint32(dd.DecodeUint(32))
  27503. if cr != nil {
  27504. cr.sendContainerState(containerMapValue)
  27505. }
  27506. mv = uintptr(dd.DecodeUint(uintBitsize))
  27507. if v != nil {
  27508. v[mk] = mv
  27509. }
  27510. }
  27511. } else if containerLen < 0 {
  27512. for j := 0; !dd.CheckBreak(); j++ {
  27513. if cr != nil {
  27514. cr.sendContainerState(containerMapKey)
  27515. }
  27516. mk = uint32(dd.DecodeUint(32))
  27517. if cr != nil {
  27518. cr.sendContainerState(containerMapValue)
  27519. }
  27520. mv = uintptr(dd.DecodeUint(uintBitsize))
  27521. if v != nil {
  27522. v[mk] = mv
  27523. }
  27524. }
  27525. }
  27526. if cr != nil {
  27527. cr.sendContainerState(containerMapEnd)
  27528. }
  27529. return v, changed
  27530. }
  27531. func (f *decFnInfo) fastpathDecMapUint32IntR(rv reflect.Value) {
  27532. if rv.CanAddr() {
  27533. vp := rv.Addr().Interface().(*map[uint32]int)
  27534. v, changed := fastpathTV.DecMapUint32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  27535. if changed {
  27536. *vp = v
  27537. }
  27538. } else {
  27539. v := rv.Interface().(map[uint32]int)
  27540. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, f.d)
  27541. }
  27542. }
  27543. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, checkNil bool, d *Decoder) {
  27544. v, changed := f.DecMapUint32IntV(*vp, checkNil, true, d)
  27545. if changed {
  27546. *vp = v
  27547. }
  27548. }
  27549. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, checkNil bool, canChange bool,
  27550. d *Decoder) (_ map[uint32]int, changed bool) {
  27551. dd := d.d
  27552. cr := d.cr
  27553. if checkNil && dd.TryDecodeAsNil() {
  27554. if v != nil {
  27555. changed = true
  27556. }
  27557. return nil, changed
  27558. }
  27559. containerLen := dd.ReadMapStart()
  27560. if canChange && v == nil {
  27561. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27562. v = make(map[uint32]int, xlen)
  27563. changed = true
  27564. }
  27565. var mk uint32
  27566. var mv int
  27567. if containerLen > 0 {
  27568. for j := 0; j < containerLen; j++ {
  27569. if cr != nil {
  27570. cr.sendContainerState(containerMapKey)
  27571. }
  27572. mk = uint32(dd.DecodeUint(32))
  27573. if cr != nil {
  27574. cr.sendContainerState(containerMapValue)
  27575. }
  27576. mv = int(dd.DecodeInt(intBitsize))
  27577. if v != nil {
  27578. v[mk] = mv
  27579. }
  27580. }
  27581. } else if containerLen < 0 {
  27582. for j := 0; !dd.CheckBreak(); j++ {
  27583. if cr != nil {
  27584. cr.sendContainerState(containerMapKey)
  27585. }
  27586. mk = uint32(dd.DecodeUint(32))
  27587. if cr != nil {
  27588. cr.sendContainerState(containerMapValue)
  27589. }
  27590. mv = int(dd.DecodeInt(intBitsize))
  27591. if v != nil {
  27592. v[mk] = mv
  27593. }
  27594. }
  27595. }
  27596. if cr != nil {
  27597. cr.sendContainerState(containerMapEnd)
  27598. }
  27599. return v, changed
  27600. }
  27601. func (f *decFnInfo) fastpathDecMapUint32Int8R(rv reflect.Value) {
  27602. if rv.CanAddr() {
  27603. vp := rv.Addr().Interface().(*map[uint32]int8)
  27604. v, changed := fastpathTV.DecMapUint32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  27605. if changed {
  27606. *vp = v
  27607. }
  27608. } else {
  27609. v := rv.Interface().(map[uint32]int8)
  27610. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, f.d)
  27611. }
  27612. }
  27613. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, checkNil bool, d *Decoder) {
  27614. v, changed := f.DecMapUint32Int8V(*vp, checkNil, true, d)
  27615. if changed {
  27616. *vp = v
  27617. }
  27618. }
  27619. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, checkNil bool, canChange bool,
  27620. d *Decoder) (_ map[uint32]int8, changed bool) {
  27621. dd := d.d
  27622. cr := d.cr
  27623. if checkNil && dd.TryDecodeAsNil() {
  27624. if v != nil {
  27625. changed = true
  27626. }
  27627. return nil, changed
  27628. }
  27629. containerLen := dd.ReadMapStart()
  27630. if canChange && v == nil {
  27631. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27632. v = make(map[uint32]int8, xlen)
  27633. changed = true
  27634. }
  27635. var mk uint32
  27636. var mv int8
  27637. if containerLen > 0 {
  27638. for j := 0; j < containerLen; j++ {
  27639. if cr != nil {
  27640. cr.sendContainerState(containerMapKey)
  27641. }
  27642. mk = uint32(dd.DecodeUint(32))
  27643. if cr != nil {
  27644. cr.sendContainerState(containerMapValue)
  27645. }
  27646. mv = int8(dd.DecodeInt(8))
  27647. if v != nil {
  27648. v[mk] = mv
  27649. }
  27650. }
  27651. } else if containerLen < 0 {
  27652. for j := 0; !dd.CheckBreak(); j++ {
  27653. if cr != nil {
  27654. cr.sendContainerState(containerMapKey)
  27655. }
  27656. mk = uint32(dd.DecodeUint(32))
  27657. if cr != nil {
  27658. cr.sendContainerState(containerMapValue)
  27659. }
  27660. mv = int8(dd.DecodeInt(8))
  27661. if v != nil {
  27662. v[mk] = mv
  27663. }
  27664. }
  27665. }
  27666. if cr != nil {
  27667. cr.sendContainerState(containerMapEnd)
  27668. }
  27669. return v, changed
  27670. }
  27671. func (f *decFnInfo) fastpathDecMapUint32Int16R(rv reflect.Value) {
  27672. if rv.CanAddr() {
  27673. vp := rv.Addr().Interface().(*map[uint32]int16)
  27674. v, changed := fastpathTV.DecMapUint32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  27675. if changed {
  27676. *vp = v
  27677. }
  27678. } else {
  27679. v := rv.Interface().(map[uint32]int16)
  27680. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, f.d)
  27681. }
  27682. }
  27683. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, checkNil bool, d *Decoder) {
  27684. v, changed := f.DecMapUint32Int16V(*vp, checkNil, true, d)
  27685. if changed {
  27686. *vp = v
  27687. }
  27688. }
  27689. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, checkNil bool, canChange bool,
  27690. d *Decoder) (_ map[uint32]int16, changed bool) {
  27691. dd := d.d
  27692. cr := d.cr
  27693. if checkNil && dd.TryDecodeAsNil() {
  27694. if v != nil {
  27695. changed = true
  27696. }
  27697. return nil, changed
  27698. }
  27699. containerLen := dd.ReadMapStart()
  27700. if canChange && v == nil {
  27701. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27702. v = make(map[uint32]int16, xlen)
  27703. changed = true
  27704. }
  27705. var mk uint32
  27706. var mv int16
  27707. if containerLen > 0 {
  27708. for j := 0; j < containerLen; j++ {
  27709. if cr != nil {
  27710. cr.sendContainerState(containerMapKey)
  27711. }
  27712. mk = uint32(dd.DecodeUint(32))
  27713. if cr != nil {
  27714. cr.sendContainerState(containerMapValue)
  27715. }
  27716. mv = int16(dd.DecodeInt(16))
  27717. if v != nil {
  27718. v[mk] = mv
  27719. }
  27720. }
  27721. } else if containerLen < 0 {
  27722. for j := 0; !dd.CheckBreak(); j++ {
  27723. if cr != nil {
  27724. cr.sendContainerState(containerMapKey)
  27725. }
  27726. mk = uint32(dd.DecodeUint(32))
  27727. if cr != nil {
  27728. cr.sendContainerState(containerMapValue)
  27729. }
  27730. mv = int16(dd.DecodeInt(16))
  27731. if v != nil {
  27732. v[mk] = mv
  27733. }
  27734. }
  27735. }
  27736. if cr != nil {
  27737. cr.sendContainerState(containerMapEnd)
  27738. }
  27739. return v, changed
  27740. }
  27741. func (f *decFnInfo) fastpathDecMapUint32Int32R(rv reflect.Value) {
  27742. if rv.CanAddr() {
  27743. vp := rv.Addr().Interface().(*map[uint32]int32)
  27744. v, changed := fastpathTV.DecMapUint32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  27745. if changed {
  27746. *vp = v
  27747. }
  27748. } else {
  27749. v := rv.Interface().(map[uint32]int32)
  27750. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, f.d)
  27751. }
  27752. }
  27753. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, checkNil bool, d *Decoder) {
  27754. v, changed := f.DecMapUint32Int32V(*vp, checkNil, true, d)
  27755. if changed {
  27756. *vp = v
  27757. }
  27758. }
  27759. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, checkNil bool, canChange bool,
  27760. d *Decoder) (_ map[uint32]int32, changed bool) {
  27761. dd := d.d
  27762. cr := d.cr
  27763. if checkNil && dd.TryDecodeAsNil() {
  27764. if v != nil {
  27765. changed = true
  27766. }
  27767. return nil, changed
  27768. }
  27769. containerLen := dd.ReadMapStart()
  27770. if canChange && v == nil {
  27771. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  27772. v = make(map[uint32]int32, xlen)
  27773. changed = true
  27774. }
  27775. var mk uint32
  27776. var mv int32
  27777. if containerLen > 0 {
  27778. for j := 0; j < containerLen; j++ {
  27779. if cr != nil {
  27780. cr.sendContainerState(containerMapKey)
  27781. }
  27782. mk = uint32(dd.DecodeUint(32))
  27783. if cr != nil {
  27784. cr.sendContainerState(containerMapValue)
  27785. }
  27786. mv = int32(dd.DecodeInt(32))
  27787. if v != nil {
  27788. v[mk] = mv
  27789. }
  27790. }
  27791. } else if containerLen < 0 {
  27792. for j := 0; !dd.CheckBreak(); j++ {
  27793. if cr != nil {
  27794. cr.sendContainerState(containerMapKey)
  27795. }
  27796. mk = uint32(dd.DecodeUint(32))
  27797. if cr != nil {
  27798. cr.sendContainerState(containerMapValue)
  27799. }
  27800. mv = int32(dd.DecodeInt(32))
  27801. if v != nil {
  27802. v[mk] = mv
  27803. }
  27804. }
  27805. }
  27806. if cr != nil {
  27807. cr.sendContainerState(containerMapEnd)
  27808. }
  27809. return v, changed
  27810. }
  27811. func (f *decFnInfo) fastpathDecMapUint32Int64R(rv reflect.Value) {
  27812. if rv.CanAddr() {
  27813. vp := rv.Addr().Interface().(*map[uint32]int64)
  27814. v, changed := fastpathTV.DecMapUint32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  27815. if changed {
  27816. *vp = v
  27817. }
  27818. } else {
  27819. v := rv.Interface().(map[uint32]int64)
  27820. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, f.d)
  27821. }
  27822. }
  27823. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, checkNil bool, d *Decoder) {
  27824. v, changed := f.DecMapUint32Int64V(*vp, checkNil, true, d)
  27825. if changed {
  27826. *vp = v
  27827. }
  27828. }
  27829. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, checkNil bool, canChange bool,
  27830. d *Decoder) (_ map[uint32]int64, changed bool) {
  27831. dd := d.d
  27832. cr := d.cr
  27833. if checkNil && dd.TryDecodeAsNil() {
  27834. if v != nil {
  27835. changed = true
  27836. }
  27837. return nil, changed
  27838. }
  27839. containerLen := dd.ReadMapStart()
  27840. if canChange && v == nil {
  27841. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27842. v = make(map[uint32]int64, xlen)
  27843. changed = true
  27844. }
  27845. var mk uint32
  27846. var mv int64
  27847. if containerLen > 0 {
  27848. for j := 0; j < containerLen; j++ {
  27849. if cr != nil {
  27850. cr.sendContainerState(containerMapKey)
  27851. }
  27852. mk = uint32(dd.DecodeUint(32))
  27853. if cr != nil {
  27854. cr.sendContainerState(containerMapValue)
  27855. }
  27856. mv = dd.DecodeInt(64)
  27857. if v != nil {
  27858. v[mk] = mv
  27859. }
  27860. }
  27861. } else if containerLen < 0 {
  27862. for j := 0; !dd.CheckBreak(); j++ {
  27863. if cr != nil {
  27864. cr.sendContainerState(containerMapKey)
  27865. }
  27866. mk = uint32(dd.DecodeUint(32))
  27867. if cr != nil {
  27868. cr.sendContainerState(containerMapValue)
  27869. }
  27870. mv = dd.DecodeInt(64)
  27871. if v != nil {
  27872. v[mk] = mv
  27873. }
  27874. }
  27875. }
  27876. if cr != nil {
  27877. cr.sendContainerState(containerMapEnd)
  27878. }
  27879. return v, changed
  27880. }
  27881. func (f *decFnInfo) fastpathDecMapUint32Float32R(rv reflect.Value) {
  27882. if rv.CanAddr() {
  27883. vp := rv.Addr().Interface().(*map[uint32]float32)
  27884. v, changed := fastpathTV.DecMapUint32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  27885. if changed {
  27886. *vp = v
  27887. }
  27888. } else {
  27889. v := rv.Interface().(map[uint32]float32)
  27890. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, f.d)
  27891. }
  27892. }
  27893. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, checkNil bool, d *Decoder) {
  27894. v, changed := f.DecMapUint32Float32V(*vp, checkNil, true, d)
  27895. if changed {
  27896. *vp = v
  27897. }
  27898. }
  27899. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, checkNil bool, canChange bool,
  27900. d *Decoder) (_ map[uint32]float32, changed bool) {
  27901. dd := d.d
  27902. cr := d.cr
  27903. if checkNil && dd.TryDecodeAsNil() {
  27904. if v != nil {
  27905. changed = true
  27906. }
  27907. return nil, changed
  27908. }
  27909. containerLen := dd.ReadMapStart()
  27910. if canChange && v == nil {
  27911. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  27912. v = make(map[uint32]float32, xlen)
  27913. changed = true
  27914. }
  27915. var mk uint32
  27916. var mv float32
  27917. if containerLen > 0 {
  27918. for j := 0; j < containerLen; j++ {
  27919. if cr != nil {
  27920. cr.sendContainerState(containerMapKey)
  27921. }
  27922. mk = uint32(dd.DecodeUint(32))
  27923. if cr != nil {
  27924. cr.sendContainerState(containerMapValue)
  27925. }
  27926. mv = float32(dd.DecodeFloat(true))
  27927. if v != nil {
  27928. v[mk] = mv
  27929. }
  27930. }
  27931. } else if containerLen < 0 {
  27932. for j := 0; !dd.CheckBreak(); j++ {
  27933. if cr != nil {
  27934. cr.sendContainerState(containerMapKey)
  27935. }
  27936. mk = uint32(dd.DecodeUint(32))
  27937. if cr != nil {
  27938. cr.sendContainerState(containerMapValue)
  27939. }
  27940. mv = float32(dd.DecodeFloat(true))
  27941. if v != nil {
  27942. v[mk] = mv
  27943. }
  27944. }
  27945. }
  27946. if cr != nil {
  27947. cr.sendContainerState(containerMapEnd)
  27948. }
  27949. return v, changed
  27950. }
  27951. func (f *decFnInfo) fastpathDecMapUint32Float64R(rv reflect.Value) {
  27952. if rv.CanAddr() {
  27953. vp := rv.Addr().Interface().(*map[uint32]float64)
  27954. v, changed := fastpathTV.DecMapUint32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  27955. if changed {
  27956. *vp = v
  27957. }
  27958. } else {
  27959. v := rv.Interface().(map[uint32]float64)
  27960. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, f.d)
  27961. }
  27962. }
  27963. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, checkNil bool, d *Decoder) {
  27964. v, changed := f.DecMapUint32Float64V(*vp, checkNil, true, d)
  27965. if changed {
  27966. *vp = v
  27967. }
  27968. }
  27969. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, checkNil bool, canChange bool,
  27970. d *Decoder) (_ map[uint32]float64, changed bool) {
  27971. dd := d.d
  27972. cr := d.cr
  27973. if checkNil && dd.TryDecodeAsNil() {
  27974. if v != nil {
  27975. changed = true
  27976. }
  27977. return nil, changed
  27978. }
  27979. containerLen := dd.ReadMapStart()
  27980. if canChange && v == nil {
  27981. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27982. v = make(map[uint32]float64, xlen)
  27983. changed = true
  27984. }
  27985. var mk uint32
  27986. var mv float64
  27987. if containerLen > 0 {
  27988. for j := 0; j < containerLen; j++ {
  27989. if cr != nil {
  27990. cr.sendContainerState(containerMapKey)
  27991. }
  27992. mk = uint32(dd.DecodeUint(32))
  27993. if cr != nil {
  27994. cr.sendContainerState(containerMapValue)
  27995. }
  27996. mv = dd.DecodeFloat(false)
  27997. if v != nil {
  27998. v[mk] = mv
  27999. }
  28000. }
  28001. } else if containerLen < 0 {
  28002. for j := 0; !dd.CheckBreak(); j++ {
  28003. if cr != nil {
  28004. cr.sendContainerState(containerMapKey)
  28005. }
  28006. mk = uint32(dd.DecodeUint(32))
  28007. if cr != nil {
  28008. cr.sendContainerState(containerMapValue)
  28009. }
  28010. mv = dd.DecodeFloat(false)
  28011. if v != nil {
  28012. v[mk] = mv
  28013. }
  28014. }
  28015. }
  28016. if cr != nil {
  28017. cr.sendContainerState(containerMapEnd)
  28018. }
  28019. return v, changed
  28020. }
  28021. func (f *decFnInfo) fastpathDecMapUint32BoolR(rv reflect.Value) {
  28022. if rv.CanAddr() {
  28023. vp := rv.Addr().Interface().(*map[uint32]bool)
  28024. v, changed := fastpathTV.DecMapUint32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  28025. if changed {
  28026. *vp = v
  28027. }
  28028. } else {
  28029. v := rv.Interface().(map[uint32]bool)
  28030. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, f.d)
  28031. }
  28032. }
  28033. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, checkNil bool, d *Decoder) {
  28034. v, changed := f.DecMapUint32BoolV(*vp, checkNil, true, d)
  28035. if changed {
  28036. *vp = v
  28037. }
  28038. }
  28039. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, checkNil bool, canChange bool,
  28040. d *Decoder) (_ map[uint32]bool, changed bool) {
  28041. dd := d.d
  28042. cr := d.cr
  28043. if checkNil && dd.TryDecodeAsNil() {
  28044. if v != nil {
  28045. changed = true
  28046. }
  28047. return nil, changed
  28048. }
  28049. containerLen := dd.ReadMapStart()
  28050. if canChange && v == nil {
  28051. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28052. v = make(map[uint32]bool, xlen)
  28053. changed = true
  28054. }
  28055. var mk uint32
  28056. var mv bool
  28057. if containerLen > 0 {
  28058. for j := 0; j < containerLen; j++ {
  28059. if cr != nil {
  28060. cr.sendContainerState(containerMapKey)
  28061. }
  28062. mk = uint32(dd.DecodeUint(32))
  28063. if cr != nil {
  28064. cr.sendContainerState(containerMapValue)
  28065. }
  28066. mv = dd.DecodeBool()
  28067. if v != nil {
  28068. v[mk] = mv
  28069. }
  28070. }
  28071. } else if containerLen < 0 {
  28072. for j := 0; !dd.CheckBreak(); j++ {
  28073. if cr != nil {
  28074. cr.sendContainerState(containerMapKey)
  28075. }
  28076. mk = uint32(dd.DecodeUint(32))
  28077. if cr != nil {
  28078. cr.sendContainerState(containerMapValue)
  28079. }
  28080. mv = dd.DecodeBool()
  28081. if v != nil {
  28082. v[mk] = mv
  28083. }
  28084. }
  28085. }
  28086. if cr != nil {
  28087. cr.sendContainerState(containerMapEnd)
  28088. }
  28089. return v, changed
  28090. }
  28091. func (f *decFnInfo) fastpathDecMapUint64IntfR(rv reflect.Value) {
  28092. if rv.CanAddr() {
  28093. vp := rv.Addr().Interface().(*map[uint64]interface{})
  28094. v, changed := fastpathTV.DecMapUint64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  28095. if changed {
  28096. *vp = v
  28097. }
  28098. } else {
  28099. v := rv.Interface().(map[uint64]interface{})
  28100. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, f.d)
  28101. }
  28102. }
  28103. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, checkNil bool, d *Decoder) {
  28104. v, changed := f.DecMapUint64IntfV(*vp, checkNil, true, d)
  28105. if changed {
  28106. *vp = v
  28107. }
  28108. }
  28109. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, checkNil bool, canChange bool,
  28110. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  28111. dd := d.d
  28112. cr := d.cr
  28113. if checkNil && dd.TryDecodeAsNil() {
  28114. if v != nil {
  28115. changed = true
  28116. }
  28117. return nil, changed
  28118. }
  28119. containerLen := dd.ReadMapStart()
  28120. if canChange && v == nil {
  28121. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28122. v = make(map[uint64]interface{}, xlen)
  28123. changed = true
  28124. }
  28125. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  28126. var mk uint64
  28127. var mv interface{}
  28128. if containerLen > 0 {
  28129. for j := 0; j < containerLen; j++ {
  28130. if cr != nil {
  28131. cr.sendContainerState(containerMapKey)
  28132. }
  28133. mk = dd.DecodeUint(64)
  28134. if cr != nil {
  28135. cr.sendContainerState(containerMapValue)
  28136. }
  28137. if mapGet {
  28138. mv = v[mk]
  28139. } else {
  28140. mv = nil
  28141. }
  28142. d.decode(&mv)
  28143. if v != nil {
  28144. v[mk] = mv
  28145. }
  28146. }
  28147. } else if containerLen < 0 {
  28148. for j := 0; !dd.CheckBreak(); j++ {
  28149. if cr != nil {
  28150. cr.sendContainerState(containerMapKey)
  28151. }
  28152. mk = dd.DecodeUint(64)
  28153. if cr != nil {
  28154. cr.sendContainerState(containerMapValue)
  28155. }
  28156. if mapGet {
  28157. mv = v[mk]
  28158. } else {
  28159. mv = nil
  28160. }
  28161. d.decode(&mv)
  28162. if v != nil {
  28163. v[mk] = mv
  28164. }
  28165. }
  28166. }
  28167. if cr != nil {
  28168. cr.sendContainerState(containerMapEnd)
  28169. }
  28170. return v, changed
  28171. }
  28172. func (f *decFnInfo) fastpathDecMapUint64StringR(rv reflect.Value) {
  28173. if rv.CanAddr() {
  28174. vp := rv.Addr().Interface().(*map[uint64]string)
  28175. v, changed := fastpathTV.DecMapUint64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  28176. if changed {
  28177. *vp = v
  28178. }
  28179. } else {
  28180. v := rv.Interface().(map[uint64]string)
  28181. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, f.d)
  28182. }
  28183. }
  28184. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, checkNil bool, d *Decoder) {
  28185. v, changed := f.DecMapUint64StringV(*vp, checkNil, true, d)
  28186. if changed {
  28187. *vp = v
  28188. }
  28189. }
  28190. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, checkNil bool, canChange bool,
  28191. d *Decoder) (_ map[uint64]string, changed bool) {
  28192. dd := d.d
  28193. cr := d.cr
  28194. if checkNil && dd.TryDecodeAsNil() {
  28195. if v != nil {
  28196. changed = true
  28197. }
  28198. return nil, changed
  28199. }
  28200. containerLen := dd.ReadMapStart()
  28201. if canChange && v == nil {
  28202. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28203. v = make(map[uint64]string, xlen)
  28204. changed = true
  28205. }
  28206. var mk uint64
  28207. var mv string
  28208. if containerLen > 0 {
  28209. for j := 0; j < containerLen; j++ {
  28210. if cr != nil {
  28211. cr.sendContainerState(containerMapKey)
  28212. }
  28213. mk = dd.DecodeUint(64)
  28214. if cr != nil {
  28215. cr.sendContainerState(containerMapValue)
  28216. }
  28217. mv = dd.DecodeString()
  28218. if v != nil {
  28219. v[mk] = mv
  28220. }
  28221. }
  28222. } else if containerLen < 0 {
  28223. for j := 0; !dd.CheckBreak(); j++ {
  28224. if cr != nil {
  28225. cr.sendContainerState(containerMapKey)
  28226. }
  28227. mk = dd.DecodeUint(64)
  28228. if cr != nil {
  28229. cr.sendContainerState(containerMapValue)
  28230. }
  28231. mv = dd.DecodeString()
  28232. if v != nil {
  28233. v[mk] = mv
  28234. }
  28235. }
  28236. }
  28237. if cr != nil {
  28238. cr.sendContainerState(containerMapEnd)
  28239. }
  28240. return v, changed
  28241. }
  28242. func (f *decFnInfo) fastpathDecMapUint64UintR(rv reflect.Value) {
  28243. if rv.CanAddr() {
  28244. vp := rv.Addr().Interface().(*map[uint64]uint)
  28245. v, changed := fastpathTV.DecMapUint64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  28246. if changed {
  28247. *vp = v
  28248. }
  28249. } else {
  28250. v := rv.Interface().(map[uint64]uint)
  28251. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, f.d)
  28252. }
  28253. }
  28254. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, checkNil bool, d *Decoder) {
  28255. v, changed := f.DecMapUint64UintV(*vp, checkNil, true, d)
  28256. if changed {
  28257. *vp = v
  28258. }
  28259. }
  28260. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, checkNil bool, canChange bool,
  28261. d *Decoder) (_ map[uint64]uint, changed bool) {
  28262. dd := d.d
  28263. cr := d.cr
  28264. if checkNil && dd.TryDecodeAsNil() {
  28265. if v != nil {
  28266. changed = true
  28267. }
  28268. return nil, changed
  28269. }
  28270. containerLen := dd.ReadMapStart()
  28271. if canChange && v == nil {
  28272. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28273. v = make(map[uint64]uint, xlen)
  28274. changed = true
  28275. }
  28276. var mk uint64
  28277. var mv uint
  28278. if containerLen > 0 {
  28279. for j := 0; j < containerLen; j++ {
  28280. if cr != nil {
  28281. cr.sendContainerState(containerMapKey)
  28282. }
  28283. mk = dd.DecodeUint(64)
  28284. if cr != nil {
  28285. cr.sendContainerState(containerMapValue)
  28286. }
  28287. mv = uint(dd.DecodeUint(uintBitsize))
  28288. if v != nil {
  28289. v[mk] = mv
  28290. }
  28291. }
  28292. } else if containerLen < 0 {
  28293. for j := 0; !dd.CheckBreak(); j++ {
  28294. if cr != nil {
  28295. cr.sendContainerState(containerMapKey)
  28296. }
  28297. mk = dd.DecodeUint(64)
  28298. if cr != nil {
  28299. cr.sendContainerState(containerMapValue)
  28300. }
  28301. mv = uint(dd.DecodeUint(uintBitsize))
  28302. if v != nil {
  28303. v[mk] = mv
  28304. }
  28305. }
  28306. }
  28307. if cr != nil {
  28308. cr.sendContainerState(containerMapEnd)
  28309. }
  28310. return v, changed
  28311. }
  28312. func (f *decFnInfo) fastpathDecMapUint64Uint8R(rv reflect.Value) {
  28313. if rv.CanAddr() {
  28314. vp := rv.Addr().Interface().(*map[uint64]uint8)
  28315. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  28316. if changed {
  28317. *vp = v
  28318. }
  28319. } else {
  28320. v := rv.Interface().(map[uint64]uint8)
  28321. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  28322. }
  28323. }
  28324. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, checkNil bool, d *Decoder) {
  28325. v, changed := f.DecMapUint64Uint8V(*vp, checkNil, true, d)
  28326. if changed {
  28327. *vp = v
  28328. }
  28329. }
  28330. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, checkNil bool, canChange bool,
  28331. d *Decoder) (_ map[uint64]uint8, changed bool) {
  28332. dd := d.d
  28333. cr := d.cr
  28334. if checkNil && dd.TryDecodeAsNil() {
  28335. if v != nil {
  28336. changed = true
  28337. }
  28338. return nil, changed
  28339. }
  28340. containerLen := dd.ReadMapStart()
  28341. if canChange && v == nil {
  28342. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28343. v = make(map[uint64]uint8, xlen)
  28344. changed = true
  28345. }
  28346. var mk uint64
  28347. var mv uint8
  28348. if containerLen > 0 {
  28349. for j := 0; j < containerLen; j++ {
  28350. if cr != nil {
  28351. cr.sendContainerState(containerMapKey)
  28352. }
  28353. mk = dd.DecodeUint(64)
  28354. if cr != nil {
  28355. cr.sendContainerState(containerMapValue)
  28356. }
  28357. mv = uint8(dd.DecodeUint(8))
  28358. if v != nil {
  28359. v[mk] = mv
  28360. }
  28361. }
  28362. } else if containerLen < 0 {
  28363. for j := 0; !dd.CheckBreak(); j++ {
  28364. if cr != nil {
  28365. cr.sendContainerState(containerMapKey)
  28366. }
  28367. mk = dd.DecodeUint(64)
  28368. if cr != nil {
  28369. cr.sendContainerState(containerMapValue)
  28370. }
  28371. mv = uint8(dd.DecodeUint(8))
  28372. if v != nil {
  28373. v[mk] = mv
  28374. }
  28375. }
  28376. }
  28377. if cr != nil {
  28378. cr.sendContainerState(containerMapEnd)
  28379. }
  28380. return v, changed
  28381. }
  28382. func (f *decFnInfo) fastpathDecMapUint64Uint16R(rv reflect.Value) {
  28383. if rv.CanAddr() {
  28384. vp := rv.Addr().Interface().(*map[uint64]uint16)
  28385. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  28386. if changed {
  28387. *vp = v
  28388. }
  28389. } else {
  28390. v := rv.Interface().(map[uint64]uint16)
  28391. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  28392. }
  28393. }
  28394. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, checkNil bool, d *Decoder) {
  28395. v, changed := f.DecMapUint64Uint16V(*vp, checkNil, true, d)
  28396. if changed {
  28397. *vp = v
  28398. }
  28399. }
  28400. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, checkNil bool, canChange bool,
  28401. d *Decoder) (_ map[uint64]uint16, changed bool) {
  28402. dd := d.d
  28403. cr := d.cr
  28404. if checkNil && dd.TryDecodeAsNil() {
  28405. if v != nil {
  28406. changed = true
  28407. }
  28408. return nil, changed
  28409. }
  28410. containerLen := dd.ReadMapStart()
  28411. if canChange && v == nil {
  28412. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28413. v = make(map[uint64]uint16, xlen)
  28414. changed = true
  28415. }
  28416. var mk uint64
  28417. var mv uint16
  28418. if containerLen > 0 {
  28419. for j := 0; j < containerLen; j++ {
  28420. if cr != nil {
  28421. cr.sendContainerState(containerMapKey)
  28422. }
  28423. mk = dd.DecodeUint(64)
  28424. if cr != nil {
  28425. cr.sendContainerState(containerMapValue)
  28426. }
  28427. mv = uint16(dd.DecodeUint(16))
  28428. if v != nil {
  28429. v[mk] = mv
  28430. }
  28431. }
  28432. } else if containerLen < 0 {
  28433. for j := 0; !dd.CheckBreak(); j++ {
  28434. if cr != nil {
  28435. cr.sendContainerState(containerMapKey)
  28436. }
  28437. mk = dd.DecodeUint(64)
  28438. if cr != nil {
  28439. cr.sendContainerState(containerMapValue)
  28440. }
  28441. mv = uint16(dd.DecodeUint(16))
  28442. if v != nil {
  28443. v[mk] = mv
  28444. }
  28445. }
  28446. }
  28447. if cr != nil {
  28448. cr.sendContainerState(containerMapEnd)
  28449. }
  28450. return v, changed
  28451. }
  28452. func (f *decFnInfo) fastpathDecMapUint64Uint32R(rv reflect.Value) {
  28453. if rv.CanAddr() {
  28454. vp := rv.Addr().Interface().(*map[uint64]uint32)
  28455. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  28456. if changed {
  28457. *vp = v
  28458. }
  28459. } else {
  28460. v := rv.Interface().(map[uint64]uint32)
  28461. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  28462. }
  28463. }
  28464. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, checkNil bool, d *Decoder) {
  28465. v, changed := f.DecMapUint64Uint32V(*vp, checkNil, true, d)
  28466. if changed {
  28467. *vp = v
  28468. }
  28469. }
  28470. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, checkNil bool, canChange bool,
  28471. d *Decoder) (_ map[uint64]uint32, changed bool) {
  28472. dd := d.d
  28473. cr := d.cr
  28474. if checkNil && dd.TryDecodeAsNil() {
  28475. if v != nil {
  28476. changed = true
  28477. }
  28478. return nil, changed
  28479. }
  28480. containerLen := dd.ReadMapStart()
  28481. if canChange && v == nil {
  28482. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28483. v = make(map[uint64]uint32, xlen)
  28484. changed = true
  28485. }
  28486. var mk uint64
  28487. var mv uint32
  28488. if containerLen > 0 {
  28489. for j := 0; j < containerLen; j++ {
  28490. if cr != nil {
  28491. cr.sendContainerState(containerMapKey)
  28492. }
  28493. mk = dd.DecodeUint(64)
  28494. if cr != nil {
  28495. cr.sendContainerState(containerMapValue)
  28496. }
  28497. mv = uint32(dd.DecodeUint(32))
  28498. if v != nil {
  28499. v[mk] = mv
  28500. }
  28501. }
  28502. } else if containerLen < 0 {
  28503. for j := 0; !dd.CheckBreak(); j++ {
  28504. if cr != nil {
  28505. cr.sendContainerState(containerMapKey)
  28506. }
  28507. mk = dd.DecodeUint(64)
  28508. if cr != nil {
  28509. cr.sendContainerState(containerMapValue)
  28510. }
  28511. mv = uint32(dd.DecodeUint(32))
  28512. if v != nil {
  28513. v[mk] = mv
  28514. }
  28515. }
  28516. }
  28517. if cr != nil {
  28518. cr.sendContainerState(containerMapEnd)
  28519. }
  28520. return v, changed
  28521. }
  28522. func (f *decFnInfo) fastpathDecMapUint64Uint64R(rv reflect.Value) {
  28523. if rv.CanAddr() {
  28524. vp := rv.Addr().Interface().(*map[uint64]uint64)
  28525. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  28526. if changed {
  28527. *vp = v
  28528. }
  28529. } else {
  28530. v := rv.Interface().(map[uint64]uint64)
  28531. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  28532. }
  28533. }
  28534. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, checkNil bool, d *Decoder) {
  28535. v, changed := f.DecMapUint64Uint64V(*vp, checkNil, true, d)
  28536. if changed {
  28537. *vp = v
  28538. }
  28539. }
  28540. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, checkNil bool, canChange bool,
  28541. d *Decoder) (_ map[uint64]uint64, changed bool) {
  28542. dd := d.d
  28543. cr := d.cr
  28544. if checkNil && dd.TryDecodeAsNil() {
  28545. if v != nil {
  28546. changed = true
  28547. }
  28548. return nil, changed
  28549. }
  28550. containerLen := dd.ReadMapStart()
  28551. if canChange && v == nil {
  28552. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28553. v = make(map[uint64]uint64, xlen)
  28554. changed = true
  28555. }
  28556. var mk uint64
  28557. var mv uint64
  28558. if containerLen > 0 {
  28559. for j := 0; j < containerLen; j++ {
  28560. if cr != nil {
  28561. cr.sendContainerState(containerMapKey)
  28562. }
  28563. mk = dd.DecodeUint(64)
  28564. if cr != nil {
  28565. cr.sendContainerState(containerMapValue)
  28566. }
  28567. mv = dd.DecodeUint(64)
  28568. if v != nil {
  28569. v[mk] = mv
  28570. }
  28571. }
  28572. } else if containerLen < 0 {
  28573. for j := 0; !dd.CheckBreak(); j++ {
  28574. if cr != nil {
  28575. cr.sendContainerState(containerMapKey)
  28576. }
  28577. mk = dd.DecodeUint(64)
  28578. if cr != nil {
  28579. cr.sendContainerState(containerMapValue)
  28580. }
  28581. mv = dd.DecodeUint(64)
  28582. if v != nil {
  28583. v[mk] = mv
  28584. }
  28585. }
  28586. }
  28587. if cr != nil {
  28588. cr.sendContainerState(containerMapEnd)
  28589. }
  28590. return v, changed
  28591. }
  28592. func (f *decFnInfo) fastpathDecMapUint64UintptrR(rv reflect.Value) {
  28593. if rv.CanAddr() {
  28594. vp := rv.Addr().Interface().(*map[uint64]uintptr)
  28595. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  28596. if changed {
  28597. *vp = v
  28598. }
  28599. } else {
  28600. v := rv.Interface().(map[uint64]uintptr)
  28601. fastpathTV.DecMapUint64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  28602. }
  28603. }
  28604. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, checkNil bool, d *Decoder) {
  28605. v, changed := f.DecMapUint64UintptrV(*vp, checkNil, true, d)
  28606. if changed {
  28607. *vp = v
  28608. }
  28609. }
  28610. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, checkNil bool, canChange bool,
  28611. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  28612. dd := d.d
  28613. cr := d.cr
  28614. if checkNil && dd.TryDecodeAsNil() {
  28615. if v != nil {
  28616. changed = true
  28617. }
  28618. return nil, changed
  28619. }
  28620. containerLen := dd.ReadMapStart()
  28621. if canChange && v == nil {
  28622. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28623. v = make(map[uint64]uintptr, xlen)
  28624. changed = true
  28625. }
  28626. var mk uint64
  28627. var mv uintptr
  28628. if containerLen > 0 {
  28629. for j := 0; j < containerLen; j++ {
  28630. if cr != nil {
  28631. cr.sendContainerState(containerMapKey)
  28632. }
  28633. mk = dd.DecodeUint(64)
  28634. if cr != nil {
  28635. cr.sendContainerState(containerMapValue)
  28636. }
  28637. mv = uintptr(dd.DecodeUint(uintBitsize))
  28638. if v != nil {
  28639. v[mk] = mv
  28640. }
  28641. }
  28642. } else if containerLen < 0 {
  28643. for j := 0; !dd.CheckBreak(); j++ {
  28644. if cr != nil {
  28645. cr.sendContainerState(containerMapKey)
  28646. }
  28647. mk = dd.DecodeUint(64)
  28648. if cr != nil {
  28649. cr.sendContainerState(containerMapValue)
  28650. }
  28651. mv = uintptr(dd.DecodeUint(uintBitsize))
  28652. if v != nil {
  28653. v[mk] = mv
  28654. }
  28655. }
  28656. }
  28657. if cr != nil {
  28658. cr.sendContainerState(containerMapEnd)
  28659. }
  28660. return v, changed
  28661. }
  28662. func (f *decFnInfo) fastpathDecMapUint64IntR(rv reflect.Value) {
  28663. if rv.CanAddr() {
  28664. vp := rv.Addr().Interface().(*map[uint64]int)
  28665. v, changed := fastpathTV.DecMapUint64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  28666. if changed {
  28667. *vp = v
  28668. }
  28669. } else {
  28670. v := rv.Interface().(map[uint64]int)
  28671. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, f.d)
  28672. }
  28673. }
  28674. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, checkNil bool, d *Decoder) {
  28675. v, changed := f.DecMapUint64IntV(*vp, checkNil, true, d)
  28676. if changed {
  28677. *vp = v
  28678. }
  28679. }
  28680. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, checkNil bool, canChange bool,
  28681. d *Decoder) (_ map[uint64]int, changed bool) {
  28682. dd := d.d
  28683. cr := d.cr
  28684. if checkNil && dd.TryDecodeAsNil() {
  28685. if v != nil {
  28686. changed = true
  28687. }
  28688. return nil, changed
  28689. }
  28690. containerLen := dd.ReadMapStart()
  28691. if canChange && v == nil {
  28692. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28693. v = make(map[uint64]int, xlen)
  28694. changed = true
  28695. }
  28696. var mk uint64
  28697. var mv int
  28698. if containerLen > 0 {
  28699. for j := 0; j < containerLen; j++ {
  28700. if cr != nil {
  28701. cr.sendContainerState(containerMapKey)
  28702. }
  28703. mk = dd.DecodeUint(64)
  28704. if cr != nil {
  28705. cr.sendContainerState(containerMapValue)
  28706. }
  28707. mv = int(dd.DecodeInt(intBitsize))
  28708. if v != nil {
  28709. v[mk] = mv
  28710. }
  28711. }
  28712. } else if containerLen < 0 {
  28713. for j := 0; !dd.CheckBreak(); j++ {
  28714. if cr != nil {
  28715. cr.sendContainerState(containerMapKey)
  28716. }
  28717. mk = dd.DecodeUint(64)
  28718. if cr != nil {
  28719. cr.sendContainerState(containerMapValue)
  28720. }
  28721. mv = int(dd.DecodeInt(intBitsize))
  28722. if v != nil {
  28723. v[mk] = mv
  28724. }
  28725. }
  28726. }
  28727. if cr != nil {
  28728. cr.sendContainerState(containerMapEnd)
  28729. }
  28730. return v, changed
  28731. }
  28732. func (f *decFnInfo) fastpathDecMapUint64Int8R(rv reflect.Value) {
  28733. if rv.CanAddr() {
  28734. vp := rv.Addr().Interface().(*map[uint64]int8)
  28735. v, changed := fastpathTV.DecMapUint64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  28736. if changed {
  28737. *vp = v
  28738. }
  28739. } else {
  28740. v := rv.Interface().(map[uint64]int8)
  28741. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, f.d)
  28742. }
  28743. }
  28744. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, checkNil bool, d *Decoder) {
  28745. v, changed := f.DecMapUint64Int8V(*vp, checkNil, true, d)
  28746. if changed {
  28747. *vp = v
  28748. }
  28749. }
  28750. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, checkNil bool, canChange bool,
  28751. d *Decoder) (_ map[uint64]int8, changed bool) {
  28752. dd := d.d
  28753. cr := d.cr
  28754. if checkNil && dd.TryDecodeAsNil() {
  28755. if v != nil {
  28756. changed = true
  28757. }
  28758. return nil, changed
  28759. }
  28760. containerLen := dd.ReadMapStart()
  28761. if canChange && v == nil {
  28762. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28763. v = make(map[uint64]int8, xlen)
  28764. changed = true
  28765. }
  28766. var mk uint64
  28767. var mv int8
  28768. if containerLen > 0 {
  28769. for j := 0; j < containerLen; j++ {
  28770. if cr != nil {
  28771. cr.sendContainerState(containerMapKey)
  28772. }
  28773. mk = dd.DecodeUint(64)
  28774. if cr != nil {
  28775. cr.sendContainerState(containerMapValue)
  28776. }
  28777. mv = int8(dd.DecodeInt(8))
  28778. if v != nil {
  28779. v[mk] = mv
  28780. }
  28781. }
  28782. } else if containerLen < 0 {
  28783. for j := 0; !dd.CheckBreak(); j++ {
  28784. if cr != nil {
  28785. cr.sendContainerState(containerMapKey)
  28786. }
  28787. mk = dd.DecodeUint(64)
  28788. if cr != nil {
  28789. cr.sendContainerState(containerMapValue)
  28790. }
  28791. mv = int8(dd.DecodeInt(8))
  28792. if v != nil {
  28793. v[mk] = mv
  28794. }
  28795. }
  28796. }
  28797. if cr != nil {
  28798. cr.sendContainerState(containerMapEnd)
  28799. }
  28800. return v, changed
  28801. }
  28802. func (f *decFnInfo) fastpathDecMapUint64Int16R(rv reflect.Value) {
  28803. if rv.CanAddr() {
  28804. vp := rv.Addr().Interface().(*map[uint64]int16)
  28805. v, changed := fastpathTV.DecMapUint64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  28806. if changed {
  28807. *vp = v
  28808. }
  28809. } else {
  28810. v := rv.Interface().(map[uint64]int16)
  28811. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, f.d)
  28812. }
  28813. }
  28814. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, checkNil bool, d *Decoder) {
  28815. v, changed := f.DecMapUint64Int16V(*vp, checkNil, true, d)
  28816. if changed {
  28817. *vp = v
  28818. }
  28819. }
  28820. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, checkNil bool, canChange bool,
  28821. d *Decoder) (_ map[uint64]int16, changed bool) {
  28822. dd := d.d
  28823. cr := d.cr
  28824. if checkNil && dd.TryDecodeAsNil() {
  28825. if v != nil {
  28826. changed = true
  28827. }
  28828. return nil, changed
  28829. }
  28830. containerLen := dd.ReadMapStart()
  28831. if canChange && v == nil {
  28832. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28833. v = make(map[uint64]int16, xlen)
  28834. changed = true
  28835. }
  28836. var mk uint64
  28837. var mv int16
  28838. if containerLen > 0 {
  28839. for j := 0; j < containerLen; j++ {
  28840. if cr != nil {
  28841. cr.sendContainerState(containerMapKey)
  28842. }
  28843. mk = dd.DecodeUint(64)
  28844. if cr != nil {
  28845. cr.sendContainerState(containerMapValue)
  28846. }
  28847. mv = int16(dd.DecodeInt(16))
  28848. if v != nil {
  28849. v[mk] = mv
  28850. }
  28851. }
  28852. } else if containerLen < 0 {
  28853. for j := 0; !dd.CheckBreak(); j++ {
  28854. if cr != nil {
  28855. cr.sendContainerState(containerMapKey)
  28856. }
  28857. mk = dd.DecodeUint(64)
  28858. if cr != nil {
  28859. cr.sendContainerState(containerMapValue)
  28860. }
  28861. mv = int16(dd.DecodeInt(16))
  28862. if v != nil {
  28863. v[mk] = mv
  28864. }
  28865. }
  28866. }
  28867. if cr != nil {
  28868. cr.sendContainerState(containerMapEnd)
  28869. }
  28870. return v, changed
  28871. }
  28872. func (f *decFnInfo) fastpathDecMapUint64Int32R(rv reflect.Value) {
  28873. if rv.CanAddr() {
  28874. vp := rv.Addr().Interface().(*map[uint64]int32)
  28875. v, changed := fastpathTV.DecMapUint64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  28876. if changed {
  28877. *vp = v
  28878. }
  28879. } else {
  28880. v := rv.Interface().(map[uint64]int32)
  28881. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, f.d)
  28882. }
  28883. }
  28884. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, checkNil bool, d *Decoder) {
  28885. v, changed := f.DecMapUint64Int32V(*vp, checkNil, true, d)
  28886. if changed {
  28887. *vp = v
  28888. }
  28889. }
  28890. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, checkNil bool, canChange bool,
  28891. d *Decoder) (_ map[uint64]int32, changed bool) {
  28892. dd := d.d
  28893. cr := d.cr
  28894. if checkNil && dd.TryDecodeAsNil() {
  28895. if v != nil {
  28896. changed = true
  28897. }
  28898. return nil, changed
  28899. }
  28900. containerLen := dd.ReadMapStart()
  28901. if canChange && v == nil {
  28902. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28903. v = make(map[uint64]int32, xlen)
  28904. changed = true
  28905. }
  28906. var mk uint64
  28907. var mv int32
  28908. if containerLen > 0 {
  28909. for j := 0; j < containerLen; j++ {
  28910. if cr != nil {
  28911. cr.sendContainerState(containerMapKey)
  28912. }
  28913. mk = dd.DecodeUint(64)
  28914. if cr != nil {
  28915. cr.sendContainerState(containerMapValue)
  28916. }
  28917. mv = int32(dd.DecodeInt(32))
  28918. if v != nil {
  28919. v[mk] = mv
  28920. }
  28921. }
  28922. } else if containerLen < 0 {
  28923. for j := 0; !dd.CheckBreak(); j++ {
  28924. if cr != nil {
  28925. cr.sendContainerState(containerMapKey)
  28926. }
  28927. mk = dd.DecodeUint(64)
  28928. if cr != nil {
  28929. cr.sendContainerState(containerMapValue)
  28930. }
  28931. mv = int32(dd.DecodeInt(32))
  28932. if v != nil {
  28933. v[mk] = mv
  28934. }
  28935. }
  28936. }
  28937. if cr != nil {
  28938. cr.sendContainerState(containerMapEnd)
  28939. }
  28940. return v, changed
  28941. }
  28942. func (f *decFnInfo) fastpathDecMapUint64Int64R(rv reflect.Value) {
  28943. if rv.CanAddr() {
  28944. vp := rv.Addr().Interface().(*map[uint64]int64)
  28945. v, changed := fastpathTV.DecMapUint64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  28946. if changed {
  28947. *vp = v
  28948. }
  28949. } else {
  28950. v := rv.Interface().(map[uint64]int64)
  28951. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, f.d)
  28952. }
  28953. }
  28954. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, checkNil bool, d *Decoder) {
  28955. v, changed := f.DecMapUint64Int64V(*vp, checkNil, true, d)
  28956. if changed {
  28957. *vp = v
  28958. }
  28959. }
  28960. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, checkNil bool, canChange bool,
  28961. d *Decoder) (_ map[uint64]int64, changed bool) {
  28962. dd := d.d
  28963. cr := d.cr
  28964. if checkNil && dd.TryDecodeAsNil() {
  28965. if v != nil {
  28966. changed = true
  28967. }
  28968. return nil, changed
  28969. }
  28970. containerLen := dd.ReadMapStart()
  28971. if canChange && v == nil {
  28972. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28973. v = make(map[uint64]int64, xlen)
  28974. changed = true
  28975. }
  28976. var mk uint64
  28977. var mv int64
  28978. if containerLen > 0 {
  28979. for j := 0; j < containerLen; j++ {
  28980. if cr != nil {
  28981. cr.sendContainerState(containerMapKey)
  28982. }
  28983. mk = dd.DecodeUint(64)
  28984. if cr != nil {
  28985. cr.sendContainerState(containerMapValue)
  28986. }
  28987. mv = dd.DecodeInt(64)
  28988. if v != nil {
  28989. v[mk] = mv
  28990. }
  28991. }
  28992. } else if containerLen < 0 {
  28993. for j := 0; !dd.CheckBreak(); j++ {
  28994. if cr != nil {
  28995. cr.sendContainerState(containerMapKey)
  28996. }
  28997. mk = dd.DecodeUint(64)
  28998. if cr != nil {
  28999. cr.sendContainerState(containerMapValue)
  29000. }
  29001. mv = dd.DecodeInt(64)
  29002. if v != nil {
  29003. v[mk] = mv
  29004. }
  29005. }
  29006. }
  29007. if cr != nil {
  29008. cr.sendContainerState(containerMapEnd)
  29009. }
  29010. return v, changed
  29011. }
  29012. func (f *decFnInfo) fastpathDecMapUint64Float32R(rv reflect.Value) {
  29013. if rv.CanAddr() {
  29014. vp := rv.Addr().Interface().(*map[uint64]float32)
  29015. v, changed := fastpathTV.DecMapUint64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  29016. if changed {
  29017. *vp = v
  29018. }
  29019. } else {
  29020. v := rv.Interface().(map[uint64]float32)
  29021. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, f.d)
  29022. }
  29023. }
  29024. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, checkNil bool, d *Decoder) {
  29025. v, changed := f.DecMapUint64Float32V(*vp, checkNil, true, d)
  29026. if changed {
  29027. *vp = v
  29028. }
  29029. }
  29030. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, checkNil bool, canChange bool,
  29031. d *Decoder) (_ map[uint64]float32, changed bool) {
  29032. dd := d.d
  29033. cr := d.cr
  29034. if checkNil && dd.TryDecodeAsNil() {
  29035. if v != nil {
  29036. changed = true
  29037. }
  29038. return nil, changed
  29039. }
  29040. containerLen := dd.ReadMapStart()
  29041. if canChange && v == nil {
  29042. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29043. v = make(map[uint64]float32, xlen)
  29044. changed = true
  29045. }
  29046. var mk uint64
  29047. var mv float32
  29048. if containerLen > 0 {
  29049. for j := 0; j < containerLen; j++ {
  29050. if cr != nil {
  29051. cr.sendContainerState(containerMapKey)
  29052. }
  29053. mk = dd.DecodeUint(64)
  29054. if cr != nil {
  29055. cr.sendContainerState(containerMapValue)
  29056. }
  29057. mv = float32(dd.DecodeFloat(true))
  29058. if v != nil {
  29059. v[mk] = mv
  29060. }
  29061. }
  29062. } else if containerLen < 0 {
  29063. for j := 0; !dd.CheckBreak(); j++ {
  29064. if cr != nil {
  29065. cr.sendContainerState(containerMapKey)
  29066. }
  29067. mk = dd.DecodeUint(64)
  29068. if cr != nil {
  29069. cr.sendContainerState(containerMapValue)
  29070. }
  29071. mv = float32(dd.DecodeFloat(true))
  29072. if v != nil {
  29073. v[mk] = mv
  29074. }
  29075. }
  29076. }
  29077. if cr != nil {
  29078. cr.sendContainerState(containerMapEnd)
  29079. }
  29080. return v, changed
  29081. }
  29082. func (f *decFnInfo) fastpathDecMapUint64Float64R(rv reflect.Value) {
  29083. if rv.CanAddr() {
  29084. vp := rv.Addr().Interface().(*map[uint64]float64)
  29085. v, changed := fastpathTV.DecMapUint64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  29086. if changed {
  29087. *vp = v
  29088. }
  29089. } else {
  29090. v := rv.Interface().(map[uint64]float64)
  29091. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, f.d)
  29092. }
  29093. }
  29094. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, checkNil bool, d *Decoder) {
  29095. v, changed := f.DecMapUint64Float64V(*vp, checkNil, true, d)
  29096. if changed {
  29097. *vp = v
  29098. }
  29099. }
  29100. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, checkNil bool, canChange bool,
  29101. d *Decoder) (_ map[uint64]float64, changed bool) {
  29102. dd := d.d
  29103. cr := d.cr
  29104. if checkNil && dd.TryDecodeAsNil() {
  29105. if v != nil {
  29106. changed = true
  29107. }
  29108. return nil, changed
  29109. }
  29110. containerLen := dd.ReadMapStart()
  29111. if canChange && v == nil {
  29112. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29113. v = make(map[uint64]float64, xlen)
  29114. changed = true
  29115. }
  29116. var mk uint64
  29117. var mv float64
  29118. if containerLen > 0 {
  29119. for j := 0; j < containerLen; j++ {
  29120. if cr != nil {
  29121. cr.sendContainerState(containerMapKey)
  29122. }
  29123. mk = dd.DecodeUint(64)
  29124. if cr != nil {
  29125. cr.sendContainerState(containerMapValue)
  29126. }
  29127. mv = dd.DecodeFloat(false)
  29128. if v != nil {
  29129. v[mk] = mv
  29130. }
  29131. }
  29132. } else if containerLen < 0 {
  29133. for j := 0; !dd.CheckBreak(); j++ {
  29134. if cr != nil {
  29135. cr.sendContainerState(containerMapKey)
  29136. }
  29137. mk = dd.DecodeUint(64)
  29138. if cr != nil {
  29139. cr.sendContainerState(containerMapValue)
  29140. }
  29141. mv = dd.DecodeFloat(false)
  29142. if v != nil {
  29143. v[mk] = mv
  29144. }
  29145. }
  29146. }
  29147. if cr != nil {
  29148. cr.sendContainerState(containerMapEnd)
  29149. }
  29150. return v, changed
  29151. }
  29152. func (f *decFnInfo) fastpathDecMapUint64BoolR(rv reflect.Value) {
  29153. if rv.CanAddr() {
  29154. vp := rv.Addr().Interface().(*map[uint64]bool)
  29155. v, changed := fastpathTV.DecMapUint64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  29156. if changed {
  29157. *vp = v
  29158. }
  29159. } else {
  29160. v := rv.Interface().(map[uint64]bool)
  29161. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, f.d)
  29162. }
  29163. }
  29164. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, checkNil bool, d *Decoder) {
  29165. v, changed := f.DecMapUint64BoolV(*vp, checkNil, true, d)
  29166. if changed {
  29167. *vp = v
  29168. }
  29169. }
  29170. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, checkNil bool, canChange bool,
  29171. d *Decoder) (_ map[uint64]bool, changed bool) {
  29172. dd := d.d
  29173. cr := d.cr
  29174. if checkNil && dd.TryDecodeAsNil() {
  29175. if v != nil {
  29176. changed = true
  29177. }
  29178. return nil, changed
  29179. }
  29180. containerLen := dd.ReadMapStart()
  29181. if canChange && v == nil {
  29182. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29183. v = make(map[uint64]bool, xlen)
  29184. changed = true
  29185. }
  29186. var mk uint64
  29187. var mv bool
  29188. if containerLen > 0 {
  29189. for j := 0; j < containerLen; j++ {
  29190. if cr != nil {
  29191. cr.sendContainerState(containerMapKey)
  29192. }
  29193. mk = dd.DecodeUint(64)
  29194. if cr != nil {
  29195. cr.sendContainerState(containerMapValue)
  29196. }
  29197. mv = dd.DecodeBool()
  29198. if v != nil {
  29199. v[mk] = mv
  29200. }
  29201. }
  29202. } else if containerLen < 0 {
  29203. for j := 0; !dd.CheckBreak(); j++ {
  29204. if cr != nil {
  29205. cr.sendContainerState(containerMapKey)
  29206. }
  29207. mk = dd.DecodeUint(64)
  29208. if cr != nil {
  29209. cr.sendContainerState(containerMapValue)
  29210. }
  29211. mv = dd.DecodeBool()
  29212. if v != nil {
  29213. v[mk] = mv
  29214. }
  29215. }
  29216. }
  29217. if cr != nil {
  29218. cr.sendContainerState(containerMapEnd)
  29219. }
  29220. return v, changed
  29221. }
  29222. func (f *decFnInfo) fastpathDecMapUintptrIntfR(rv reflect.Value) {
  29223. if rv.CanAddr() {
  29224. vp := rv.Addr().Interface().(*map[uintptr]interface{})
  29225. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  29226. if changed {
  29227. *vp = v
  29228. }
  29229. } else {
  29230. v := rv.Interface().(map[uintptr]interface{})
  29231. fastpathTV.DecMapUintptrIntfV(v, fastpathCheckNilFalse, false, f.d)
  29232. }
  29233. }
  29234. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, checkNil bool, d *Decoder) {
  29235. v, changed := f.DecMapUintptrIntfV(*vp, checkNil, true, d)
  29236. if changed {
  29237. *vp = v
  29238. }
  29239. }
  29240. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, checkNil bool, canChange bool,
  29241. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  29242. dd := d.d
  29243. cr := d.cr
  29244. if checkNil && dd.TryDecodeAsNil() {
  29245. if v != nil {
  29246. changed = true
  29247. }
  29248. return nil, changed
  29249. }
  29250. containerLen := dd.ReadMapStart()
  29251. if canChange && v == nil {
  29252. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  29253. v = make(map[uintptr]interface{}, xlen)
  29254. changed = true
  29255. }
  29256. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  29257. var mk uintptr
  29258. var mv interface{}
  29259. if containerLen > 0 {
  29260. for j := 0; j < containerLen; j++ {
  29261. if cr != nil {
  29262. cr.sendContainerState(containerMapKey)
  29263. }
  29264. mk = uintptr(dd.DecodeUint(uintBitsize))
  29265. if cr != nil {
  29266. cr.sendContainerState(containerMapValue)
  29267. }
  29268. if mapGet {
  29269. mv = v[mk]
  29270. } else {
  29271. mv = nil
  29272. }
  29273. d.decode(&mv)
  29274. if v != nil {
  29275. v[mk] = mv
  29276. }
  29277. }
  29278. } else if containerLen < 0 {
  29279. for j := 0; !dd.CheckBreak(); j++ {
  29280. if cr != nil {
  29281. cr.sendContainerState(containerMapKey)
  29282. }
  29283. mk = uintptr(dd.DecodeUint(uintBitsize))
  29284. if cr != nil {
  29285. cr.sendContainerState(containerMapValue)
  29286. }
  29287. if mapGet {
  29288. mv = v[mk]
  29289. } else {
  29290. mv = nil
  29291. }
  29292. d.decode(&mv)
  29293. if v != nil {
  29294. v[mk] = mv
  29295. }
  29296. }
  29297. }
  29298. if cr != nil {
  29299. cr.sendContainerState(containerMapEnd)
  29300. }
  29301. return v, changed
  29302. }
  29303. func (f *decFnInfo) fastpathDecMapUintptrStringR(rv reflect.Value) {
  29304. if rv.CanAddr() {
  29305. vp := rv.Addr().Interface().(*map[uintptr]string)
  29306. v, changed := fastpathTV.DecMapUintptrStringV(*vp, fastpathCheckNilFalse, true, f.d)
  29307. if changed {
  29308. *vp = v
  29309. }
  29310. } else {
  29311. v := rv.Interface().(map[uintptr]string)
  29312. fastpathTV.DecMapUintptrStringV(v, fastpathCheckNilFalse, false, f.d)
  29313. }
  29314. }
  29315. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, checkNil bool, d *Decoder) {
  29316. v, changed := f.DecMapUintptrStringV(*vp, checkNil, true, d)
  29317. if changed {
  29318. *vp = v
  29319. }
  29320. }
  29321. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, checkNil bool, canChange bool,
  29322. d *Decoder) (_ map[uintptr]string, changed bool) {
  29323. dd := d.d
  29324. cr := d.cr
  29325. if checkNil && dd.TryDecodeAsNil() {
  29326. if v != nil {
  29327. changed = true
  29328. }
  29329. return nil, changed
  29330. }
  29331. containerLen := dd.ReadMapStart()
  29332. if canChange && v == nil {
  29333. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  29334. v = make(map[uintptr]string, xlen)
  29335. changed = true
  29336. }
  29337. var mk uintptr
  29338. var mv string
  29339. if containerLen > 0 {
  29340. for j := 0; j < containerLen; j++ {
  29341. if cr != nil {
  29342. cr.sendContainerState(containerMapKey)
  29343. }
  29344. mk = uintptr(dd.DecodeUint(uintBitsize))
  29345. if cr != nil {
  29346. cr.sendContainerState(containerMapValue)
  29347. }
  29348. mv = dd.DecodeString()
  29349. if v != nil {
  29350. v[mk] = mv
  29351. }
  29352. }
  29353. } else if containerLen < 0 {
  29354. for j := 0; !dd.CheckBreak(); j++ {
  29355. if cr != nil {
  29356. cr.sendContainerState(containerMapKey)
  29357. }
  29358. mk = uintptr(dd.DecodeUint(uintBitsize))
  29359. if cr != nil {
  29360. cr.sendContainerState(containerMapValue)
  29361. }
  29362. mv = dd.DecodeString()
  29363. if v != nil {
  29364. v[mk] = mv
  29365. }
  29366. }
  29367. }
  29368. if cr != nil {
  29369. cr.sendContainerState(containerMapEnd)
  29370. }
  29371. return v, changed
  29372. }
  29373. func (f *decFnInfo) fastpathDecMapUintptrUintR(rv reflect.Value) {
  29374. if rv.CanAddr() {
  29375. vp := rv.Addr().Interface().(*map[uintptr]uint)
  29376. v, changed := fastpathTV.DecMapUintptrUintV(*vp, fastpathCheckNilFalse, true, f.d)
  29377. if changed {
  29378. *vp = v
  29379. }
  29380. } else {
  29381. v := rv.Interface().(map[uintptr]uint)
  29382. fastpathTV.DecMapUintptrUintV(v, fastpathCheckNilFalse, false, f.d)
  29383. }
  29384. }
  29385. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, checkNil bool, d *Decoder) {
  29386. v, changed := f.DecMapUintptrUintV(*vp, checkNil, true, d)
  29387. if changed {
  29388. *vp = v
  29389. }
  29390. }
  29391. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, checkNil bool, canChange bool,
  29392. d *Decoder) (_ map[uintptr]uint, changed bool) {
  29393. dd := d.d
  29394. cr := d.cr
  29395. if checkNil && dd.TryDecodeAsNil() {
  29396. if v != nil {
  29397. changed = true
  29398. }
  29399. return nil, changed
  29400. }
  29401. containerLen := dd.ReadMapStart()
  29402. if canChange && v == nil {
  29403. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29404. v = make(map[uintptr]uint, xlen)
  29405. changed = true
  29406. }
  29407. var mk uintptr
  29408. var mv uint
  29409. if containerLen > 0 {
  29410. for j := 0; j < containerLen; j++ {
  29411. if cr != nil {
  29412. cr.sendContainerState(containerMapKey)
  29413. }
  29414. mk = uintptr(dd.DecodeUint(uintBitsize))
  29415. if cr != nil {
  29416. cr.sendContainerState(containerMapValue)
  29417. }
  29418. mv = uint(dd.DecodeUint(uintBitsize))
  29419. if v != nil {
  29420. v[mk] = mv
  29421. }
  29422. }
  29423. } else if containerLen < 0 {
  29424. for j := 0; !dd.CheckBreak(); j++ {
  29425. if cr != nil {
  29426. cr.sendContainerState(containerMapKey)
  29427. }
  29428. mk = uintptr(dd.DecodeUint(uintBitsize))
  29429. if cr != nil {
  29430. cr.sendContainerState(containerMapValue)
  29431. }
  29432. mv = uint(dd.DecodeUint(uintBitsize))
  29433. if v != nil {
  29434. v[mk] = mv
  29435. }
  29436. }
  29437. }
  29438. if cr != nil {
  29439. cr.sendContainerState(containerMapEnd)
  29440. }
  29441. return v, changed
  29442. }
  29443. func (f *decFnInfo) fastpathDecMapUintptrUint8R(rv reflect.Value) {
  29444. if rv.CanAddr() {
  29445. vp := rv.Addr().Interface().(*map[uintptr]uint8)
  29446. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  29447. if changed {
  29448. *vp = v
  29449. }
  29450. } else {
  29451. v := rv.Interface().(map[uintptr]uint8)
  29452. fastpathTV.DecMapUintptrUint8V(v, fastpathCheckNilFalse, false, f.d)
  29453. }
  29454. }
  29455. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, checkNil bool, d *Decoder) {
  29456. v, changed := f.DecMapUintptrUint8V(*vp, checkNil, true, d)
  29457. if changed {
  29458. *vp = v
  29459. }
  29460. }
  29461. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, checkNil bool, canChange bool,
  29462. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  29463. dd := d.d
  29464. cr := d.cr
  29465. if checkNil && dd.TryDecodeAsNil() {
  29466. if v != nil {
  29467. changed = true
  29468. }
  29469. return nil, changed
  29470. }
  29471. containerLen := dd.ReadMapStart()
  29472. if canChange && v == nil {
  29473. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29474. v = make(map[uintptr]uint8, xlen)
  29475. changed = true
  29476. }
  29477. var mk uintptr
  29478. var mv uint8
  29479. if containerLen > 0 {
  29480. for j := 0; j < containerLen; j++ {
  29481. if cr != nil {
  29482. cr.sendContainerState(containerMapKey)
  29483. }
  29484. mk = uintptr(dd.DecodeUint(uintBitsize))
  29485. if cr != nil {
  29486. cr.sendContainerState(containerMapValue)
  29487. }
  29488. mv = uint8(dd.DecodeUint(8))
  29489. if v != nil {
  29490. v[mk] = mv
  29491. }
  29492. }
  29493. } else if containerLen < 0 {
  29494. for j := 0; !dd.CheckBreak(); j++ {
  29495. if cr != nil {
  29496. cr.sendContainerState(containerMapKey)
  29497. }
  29498. mk = uintptr(dd.DecodeUint(uintBitsize))
  29499. if cr != nil {
  29500. cr.sendContainerState(containerMapValue)
  29501. }
  29502. mv = uint8(dd.DecodeUint(8))
  29503. if v != nil {
  29504. v[mk] = mv
  29505. }
  29506. }
  29507. }
  29508. if cr != nil {
  29509. cr.sendContainerState(containerMapEnd)
  29510. }
  29511. return v, changed
  29512. }
  29513. func (f *decFnInfo) fastpathDecMapUintptrUint16R(rv reflect.Value) {
  29514. if rv.CanAddr() {
  29515. vp := rv.Addr().Interface().(*map[uintptr]uint16)
  29516. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  29517. if changed {
  29518. *vp = v
  29519. }
  29520. } else {
  29521. v := rv.Interface().(map[uintptr]uint16)
  29522. fastpathTV.DecMapUintptrUint16V(v, fastpathCheckNilFalse, false, f.d)
  29523. }
  29524. }
  29525. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, checkNil bool, d *Decoder) {
  29526. v, changed := f.DecMapUintptrUint16V(*vp, checkNil, true, d)
  29527. if changed {
  29528. *vp = v
  29529. }
  29530. }
  29531. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, checkNil bool, canChange bool,
  29532. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  29533. dd := d.d
  29534. cr := d.cr
  29535. if checkNil && dd.TryDecodeAsNil() {
  29536. if v != nil {
  29537. changed = true
  29538. }
  29539. return nil, changed
  29540. }
  29541. containerLen := dd.ReadMapStart()
  29542. if canChange && v == nil {
  29543. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29544. v = make(map[uintptr]uint16, xlen)
  29545. changed = true
  29546. }
  29547. var mk uintptr
  29548. var mv uint16
  29549. if containerLen > 0 {
  29550. for j := 0; j < containerLen; j++ {
  29551. if cr != nil {
  29552. cr.sendContainerState(containerMapKey)
  29553. }
  29554. mk = uintptr(dd.DecodeUint(uintBitsize))
  29555. if cr != nil {
  29556. cr.sendContainerState(containerMapValue)
  29557. }
  29558. mv = uint16(dd.DecodeUint(16))
  29559. if v != nil {
  29560. v[mk] = mv
  29561. }
  29562. }
  29563. } else if containerLen < 0 {
  29564. for j := 0; !dd.CheckBreak(); j++ {
  29565. if cr != nil {
  29566. cr.sendContainerState(containerMapKey)
  29567. }
  29568. mk = uintptr(dd.DecodeUint(uintBitsize))
  29569. if cr != nil {
  29570. cr.sendContainerState(containerMapValue)
  29571. }
  29572. mv = uint16(dd.DecodeUint(16))
  29573. if v != nil {
  29574. v[mk] = mv
  29575. }
  29576. }
  29577. }
  29578. if cr != nil {
  29579. cr.sendContainerState(containerMapEnd)
  29580. }
  29581. return v, changed
  29582. }
  29583. func (f *decFnInfo) fastpathDecMapUintptrUint32R(rv reflect.Value) {
  29584. if rv.CanAddr() {
  29585. vp := rv.Addr().Interface().(*map[uintptr]uint32)
  29586. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  29587. if changed {
  29588. *vp = v
  29589. }
  29590. } else {
  29591. v := rv.Interface().(map[uintptr]uint32)
  29592. fastpathTV.DecMapUintptrUint32V(v, fastpathCheckNilFalse, false, f.d)
  29593. }
  29594. }
  29595. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, checkNil bool, d *Decoder) {
  29596. v, changed := f.DecMapUintptrUint32V(*vp, checkNil, true, d)
  29597. if changed {
  29598. *vp = v
  29599. }
  29600. }
  29601. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, checkNil bool, canChange bool,
  29602. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  29603. dd := d.d
  29604. cr := d.cr
  29605. if checkNil && dd.TryDecodeAsNil() {
  29606. if v != nil {
  29607. changed = true
  29608. }
  29609. return nil, changed
  29610. }
  29611. containerLen := dd.ReadMapStart()
  29612. if canChange && v == nil {
  29613. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29614. v = make(map[uintptr]uint32, xlen)
  29615. changed = true
  29616. }
  29617. var mk uintptr
  29618. var mv uint32
  29619. if containerLen > 0 {
  29620. for j := 0; j < containerLen; j++ {
  29621. if cr != nil {
  29622. cr.sendContainerState(containerMapKey)
  29623. }
  29624. mk = uintptr(dd.DecodeUint(uintBitsize))
  29625. if cr != nil {
  29626. cr.sendContainerState(containerMapValue)
  29627. }
  29628. mv = uint32(dd.DecodeUint(32))
  29629. if v != nil {
  29630. v[mk] = mv
  29631. }
  29632. }
  29633. } else if containerLen < 0 {
  29634. for j := 0; !dd.CheckBreak(); j++ {
  29635. if cr != nil {
  29636. cr.sendContainerState(containerMapKey)
  29637. }
  29638. mk = uintptr(dd.DecodeUint(uintBitsize))
  29639. if cr != nil {
  29640. cr.sendContainerState(containerMapValue)
  29641. }
  29642. mv = uint32(dd.DecodeUint(32))
  29643. if v != nil {
  29644. v[mk] = mv
  29645. }
  29646. }
  29647. }
  29648. if cr != nil {
  29649. cr.sendContainerState(containerMapEnd)
  29650. }
  29651. return v, changed
  29652. }
  29653. func (f *decFnInfo) fastpathDecMapUintptrUint64R(rv reflect.Value) {
  29654. if rv.CanAddr() {
  29655. vp := rv.Addr().Interface().(*map[uintptr]uint64)
  29656. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  29657. if changed {
  29658. *vp = v
  29659. }
  29660. } else {
  29661. v := rv.Interface().(map[uintptr]uint64)
  29662. fastpathTV.DecMapUintptrUint64V(v, fastpathCheckNilFalse, false, f.d)
  29663. }
  29664. }
  29665. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, checkNil bool, d *Decoder) {
  29666. v, changed := f.DecMapUintptrUint64V(*vp, checkNil, true, d)
  29667. if changed {
  29668. *vp = v
  29669. }
  29670. }
  29671. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, checkNil bool, canChange bool,
  29672. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  29673. dd := d.d
  29674. cr := d.cr
  29675. if checkNil && dd.TryDecodeAsNil() {
  29676. if v != nil {
  29677. changed = true
  29678. }
  29679. return nil, changed
  29680. }
  29681. containerLen := dd.ReadMapStart()
  29682. if canChange && v == nil {
  29683. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29684. v = make(map[uintptr]uint64, xlen)
  29685. changed = true
  29686. }
  29687. var mk uintptr
  29688. var mv uint64
  29689. if containerLen > 0 {
  29690. for j := 0; j < containerLen; j++ {
  29691. if cr != nil {
  29692. cr.sendContainerState(containerMapKey)
  29693. }
  29694. mk = uintptr(dd.DecodeUint(uintBitsize))
  29695. if cr != nil {
  29696. cr.sendContainerState(containerMapValue)
  29697. }
  29698. mv = dd.DecodeUint(64)
  29699. if v != nil {
  29700. v[mk] = mv
  29701. }
  29702. }
  29703. } else if containerLen < 0 {
  29704. for j := 0; !dd.CheckBreak(); j++ {
  29705. if cr != nil {
  29706. cr.sendContainerState(containerMapKey)
  29707. }
  29708. mk = uintptr(dd.DecodeUint(uintBitsize))
  29709. if cr != nil {
  29710. cr.sendContainerState(containerMapValue)
  29711. }
  29712. mv = dd.DecodeUint(64)
  29713. if v != nil {
  29714. v[mk] = mv
  29715. }
  29716. }
  29717. }
  29718. if cr != nil {
  29719. cr.sendContainerState(containerMapEnd)
  29720. }
  29721. return v, changed
  29722. }
  29723. func (f *decFnInfo) fastpathDecMapUintptrUintptrR(rv reflect.Value) {
  29724. if rv.CanAddr() {
  29725. vp := rv.Addr().Interface().(*map[uintptr]uintptr)
  29726. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  29727. if changed {
  29728. *vp = v
  29729. }
  29730. } else {
  29731. v := rv.Interface().(map[uintptr]uintptr)
  29732. fastpathTV.DecMapUintptrUintptrV(v, fastpathCheckNilFalse, false, f.d)
  29733. }
  29734. }
  29735. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, checkNil bool, d *Decoder) {
  29736. v, changed := f.DecMapUintptrUintptrV(*vp, checkNil, true, d)
  29737. if changed {
  29738. *vp = v
  29739. }
  29740. }
  29741. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, checkNil bool, canChange bool,
  29742. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  29743. dd := d.d
  29744. cr := d.cr
  29745. if checkNil && dd.TryDecodeAsNil() {
  29746. if v != nil {
  29747. changed = true
  29748. }
  29749. return nil, changed
  29750. }
  29751. containerLen := dd.ReadMapStart()
  29752. if canChange && v == nil {
  29753. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29754. v = make(map[uintptr]uintptr, xlen)
  29755. changed = true
  29756. }
  29757. var mk uintptr
  29758. var mv uintptr
  29759. if containerLen > 0 {
  29760. for j := 0; j < containerLen; j++ {
  29761. if cr != nil {
  29762. cr.sendContainerState(containerMapKey)
  29763. }
  29764. mk = uintptr(dd.DecodeUint(uintBitsize))
  29765. if cr != nil {
  29766. cr.sendContainerState(containerMapValue)
  29767. }
  29768. mv = uintptr(dd.DecodeUint(uintBitsize))
  29769. if v != nil {
  29770. v[mk] = mv
  29771. }
  29772. }
  29773. } else if containerLen < 0 {
  29774. for j := 0; !dd.CheckBreak(); j++ {
  29775. if cr != nil {
  29776. cr.sendContainerState(containerMapKey)
  29777. }
  29778. mk = uintptr(dd.DecodeUint(uintBitsize))
  29779. if cr != nil {
  29780. cr.sendContainerState(containerMapValue)
  29781. }
  29782. mv = uintptr(dd.DecodeUint(uintBitsize))
  29783. if v != nil {
  29784. v[mk] = mv
  29785. }
  29786. }
  29787. }
  29788. if cr != nil {
  29789. cr.sendContainerState(containerMapEnd)
  29790. }
  29791. return v, changed
  29792. }
  29793. func (f *decFnInfo) fastpathDecMapUintptrIntR(rv reflect.Value) {
  29794. if rv.CanAddr() {
  29795. vp := rv.Addr().Interface().(*map[uintptr]int)
  29796. v, changed := fastpathTV.DecMapUintptrIntV(*vp, fastpathCheckNilFalse, true, f.d)
  29797. if changed {
  29798. *vp = v
  29799. }
  29800. } else {
  29801. v := rv.Interface().(map[uintptr]int)
  29802. fastpathTV.DecMapUintptrIntV(v, fastpathCheckNilFalse, false, f.d)
  29803. }
  29804. }
  29805. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, checkNil bool, d *Decoder) {
  29806. v, changed := f.DecMapUintptrIntV(*vp, checkNil, true, d)
  29807. if changed {
  29808. *vp = v
  29809. }
  29810. }
  29811. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, checkNil bool, canChange bool,
  29812. d *Decoder) (_ map[uintptr]int, changed bool) {
  29813. dd := d.d
  29814. cr := d.cr
  29815. if checkNil && dd.TryDecodeAsNil() {
  29816. if v != nil {
  29817. changed = true
  29818. }
  29819. return nil, changed
  29820. }
  29821. containerLen := dd.ReadMapStart()
  29822. if canChange && v == nil {
  29823. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29824. v = make(map[uintptr]int, xlen)
  29825. changed = true
  29826. }
  29827. var mk uintptr
  29828. var mv int
  29829. if containerLen > 0 {
  29830. for j := 0; j < containerLen; j++ {
  29831. if cr != nil {
  29832. cr.sendContainerState(containerMapKey)
  29833. }
  29834. mk = uintptr(dd.DecodeUint(uintBitsize))
  29835. if cr != nil {
  29836. cr.sendContainerState(containerMapValue)
  29837. }
  29838. mv = int(dd.DecodeInt(intBitsize))
  29839. if v != nil {
  29840. v[mk] = mv
  29841. }
  29842. }
  29843. } else if containerLen < 0 {
  29844. for j := 0; !dd.CheckBreak(); j++ {
  29845. if cr != nil {
  29846. cr.sendContainerState(containerMapKey)
  29847. }
  29848. mk = uintptr(dd.DecodeUint(uintBitsize))
  29849. if cr != nil {
  29850. cr.sendContainerState(containerMapValue)
  29851. }
  29852. mv = int(dd.DecodeInt(intBitsize))
  29853. if v != nil {
  29854. v[mk] = mv
  29855. }
  29856. }
  29857. }
  29858. if cr != nil {
  29859. cr.sendContainerState(containerMapEnd)
  29860. }
  29861. return v, changed
  29862. }
  29863. func (f *decFnInfo) fastpathDecMapUintptrInt8R(rv reflect.Value) {
  29864. if rv.CanAddr() {
  29865. vp := rv.Addr().Interface().(*map[uintptr]int8)
  29866. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  29867. if changed {
  29868. *vp = v
  29869. }
  29870. } else {
  29871. v := rv.Interface().(map[uintptr]int8)
  29872. fastpathTV.DecMapUintptrInt8V(v, fastpathCheckNilFalse, false, f.d)
  29873. }
  29874. }
  29875. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, checkNil bool, d *Decoder) {
  29876. v, changed := f.DecMapUintptrInt8V(*vp, checkNil, true, d)
  29877. if changed {
  29878. *vp = v
  29879. }
  29880. }
  29881. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, checkNil bool, canChange bool,
  29882. d *Decoder) (_ map[uintptr]int8, changed bool) {
  29883. dd := d.d
  29884. cr := d.cr
  29885. if checkNil && dd.TryDecodeAsNil() {
  29886. if v != nil {
  29887. changed = true
  29888. }
  29889. return nil, changed
  29890. }
  29891. containerLen := dd.ReadMapStart()
  29892. if canChange && v == nil {
  29893. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29894. v = make(map[uintptr]int8, xlen)
  29895. changed = true
  29896. }
  29897. var mk uintptr
  29898. var mv int8
  29899. if containerLen > 0 {
  29900. for j := 0; j < containerLen; j++ {
  29901. if cr != nil {
  29902. cr.sendContainerState(containerMapKey)
  29903. }
  29904. mk = uintptr(dd.DecodeUint(uintBitsize))
  29905. if cr != nil {
  29906. cr.sendContainerState(containerMapValue)
  29907. }
  29908. mv = int8(dd.DecodeInt(8))
  29909. if v != nil {
  29910. v[mk] = mv
  29911. }
  29912. }
  29913. } else if containerLen < 0 {
  29914. for j := 0; !dd.CheckBreak(); j++ {
  29915. if cr != nil {
  29916. cr.sendContainerState(containerMapKey)
  29917. }
  29918. mk = uintptr(dd.DecodeUint(uintBitsize))
  29919. if cr != nil {
  29920. cr.sendContainerState(containerMapValue)
  29921. }
  29922. mv = int8(dd.DecodeInt(8))
  29923. if v != nil {
  29924. v[mk] = mv
  29925. }
  29926. }
  29927. }
  29928. if cr != nil {
  29929. cr.sendContainerState(containerMapEnd)
  29930. }
  29931. return v, changed
  29932. }
  29933. func (f *decFnInfo) fastpathDecMapUintptrInt16R(rv reflect.Value) {
  29934. if rv.CanAddr() {
  29935. vp := rv.Addr().Interface().(*map[uintptr]int16)
  29936. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  29937. if changed {
  29938. *vp = v
  29939. }
  29940. } else {
  29941. v := rv.Interface().(map[uintptr]int16)
  29942. fastpathTV.DecMapUintptrInt16V(v, fastpathCheckNilFalse, false, f.d)
  29943. }
  29944. }
  29945. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, checkNil bool, d *Decoder) {
  29946. v, changed := f.DecMapUintptrInt16V(*vp, checkNil, true, d)
  29947. if changed {
  29948. *vp = v
  29949. }
  29950. }
  29951. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, checkNil bool, canChange bool,
  29952. d *Decoder) (_ map[uintptr]int16, changed bool) {
  29953. dd := d.d
  29954. cr := d.cr
  29955. if checkNil && dd.TryDecodeAsNil() {
  29956. if v != nil {
  29957. changed = true
  29958. }
  29959. return nil, changed
  29960. }
  29961. containerLen := dd.ReadMapStart()
  29962. if canChange && v == nil {
  29963. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29964. v = make(map[uintptr]int16, xlen)
  29965. changed = true
  29966. }
  29967. var mk uintptr
  29968. var mv int16
  29969. if containerLen > 0 {
  29970. for j := 0; j < containerLen; j++ {
  29971. if cr != nil {
  29972. cr.sendContainerState(containerMapKey)
  29973. }
  29974. mk = uintptr(dd.DecodeUint(uintBitsize))
  29975. if cr != nil {
  29976. cr.sendContainerState(containerMapValue)
  29977. }
  29978. mv = int16(dd.DecodeInt(16))
  29979. if v != nil {
  29980. v[mk] = mv
  29981. }
  29982. }
  29983. } else if containerLen < 0 {
  29984. for j := 0; !dd.CheckBreak(); j++ {
  29985. if cr != nil {
  29986. cr.sendContainerState(containerMapKey)
  29987. }
  29988. mk = uintptr(dd.DecodeUint(uintBitsize))
  29989. if cr != nil {
  29990. cr.sendContainerState(containerMapValue)
  29991. }
  29992. mv = int16(dd.DecodeInt(16))
  29993. if v != nil {
  29994. v[mk] = mv
  29995. }
  29996. }
  29997. }
  29998. if cr != nil {
  29999. cr.sendContainerState(containerMapEnd)
  30000. }
  30001. return v, changed
  30002. }
  30003. func (f *decFnInfo) fastpathDecMapUintptrInt32R(rv reflect.Value) {
  30004. if rv.CanAddr() {
  30005. vp := rv.Addr().Interface().(*map[uintptr]int32)
  30006. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  30007. if changed {
  30008. *vp = v
  30009. }
  30010. } else {
  30011. v := rv.Interface().(map[uintptr]int32)
  30012. fastpathTV.DecMapUintptrInt32V(v, fastpathCheckNilFalse, false, f.d)
  30013. }
  30014. }
  30015. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, checkNil bool, d *Decoder) {
  30016. v, changed := f.DecMapUintptrInt32V(*vp, checkNil, true, d)
  30017. if changed {
  30018. *vp = v
  30019. }
  30020. }
  30021. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, checkNil bool, canChange bool,
  30022. d *Decoder) (_ map[uintptr]int32, changed bool) {
  30023. dd := d.d
  30024. cr := d.cr
  30025. if checkNil && dd.TryDecodeAsNil() {
  30026. if v != nil {
  30027. changed = true
  30028. }
  30029. return nil, changed
  30030. }
  30031. containerLen := dd.ReadMapStart()
  30032. if canChange && v == nil {
  30033. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30034. v = make(map[uintptr]int32, xlen)
  30035. changed = true
  30036. }
  30037. var mk uintptr
  30038. var mv int32
  30039. if containerLen > 0 {
  30040. for j := 0; j < containerLen; j++ {
  30041. if cr != nil {
  30042. cr.sendContainerState(containerMapKey)
  30043. }
  30044. mk = uintptr(dd.DecodeUint(uintBitsize))
  30045. if cr != nil {
  30046. cr.sendContainerState(containerMapValue)
  30047. }
  30048. mv = int32(dd.DecodeInt(32))
  30049. if v != nil {
  30050. v[mk] = mv
  30051. }
  30052. }
  30053. } else if containerLen < 0 {
  30054. for j := 0; !dd.CheckBreak(); j++ {
  30055. if cr != nil {
  30056. cr.sendContainerState(containerMapKey)
  30057. }
  30058. mk = uintptr(dd.DecodeUint(uintBitsize))
  30059. if cr != nil {
  30060. cr.sendContainerState(containerMapValue)
  30061. }
  30062. mv = int32(dd.DecodeInt(32))
  30063. if v != nil {
  30064. v[mk] = mv
  30065. }
  30066. }
  30067. }
  30068. if cr != nil {
  30069. cr.sendContainerState(containerMapEnd)
  30070. }
  30071. return v, changed
  30072. }
  30073. func (f *decFnInfo) fastpathDecMapUintptrInt64R(rv reflect.Value) {
  30074. if rv.CanAddr() {
  30075. vp := rv.Addr().Interface().(*map[uintptr]int64)
  30076. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  30077. if changed {
  30078. *vp = v
  30079. }
  30080. } else {
  30081. v := rv.Interface().(map[uintptr]int64)
  30082. fastpathTV.DecMapUintptrInt64V(v, fastpathCheckNilFalse, false, f.d)
  30083. }
  30084. }
  30085. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, checkNil bool, d *Decoder) {
  30086. v, changed := f.DecMapUintptrInt64V(*vp, checkNil, true, d)
  30087. if changed {
  30088. *vp = v
  30089. }
  30090. }
  30091. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, checkNil bool, canChange bool,
  30092. d *Decoder) (_ map[uintptr]int64, changed bool) {
  30093. dd := d.d
  30094. cr := d.cr
  30095. if checkNil && dd.TryDecodeAsNil() {
  30096. if v != nil {
  30097. changed = true
  30098. }
  30099. return nil, changed
  30100. }
  30101. containerLen := dd.ReadMapStart()
  30102. if canChange && v == nil {
  30103. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30104. v = make(map[uintptr]int64, xlen)
  30105. changed = true
  30106. }
  30107. var mk uintptr
  30108. var mv int64
  30109. if containerLen > 0 {
  30110. for j := 0; j < containerLen; j++ {
  30111. if cr != nil {
  30112. cr.sendContainerState(containerMapKey)
  30113. }
  30114. mk = uintptr(dd.DecodeUint(uintBitsize))
  30115. if cr != nil {
  30116. cr.sendContainerState(containerMapValue)
  30117. }
  30118. mv = dd.DecodeInt(64)
  30119. if v != nil {
  30120. v[mk] = mv
  30121. }
  30122. }
  30123. } else if containerLen < 0 {
  30124. for j := 0; !dd.CheckBreak(); j++ {
  30125. if cr != nil {
  30126. cr.sendContainerState(containerMapKey)
  30127. }
  30128. mk = uintptr(dd.DecodeUint(uintBitsize))
  30129. if cr != nil {
  30130. cr.sendContainerState(containerMapValue)
  30131. }
  30132. mv = dd.DecodeInt(64)
  30133. if v != nil {
  30134. v[mk] = mv
  30135. }
  30136. }
  30137. }
  30138. if cr != nil {
  30139. cr.sendContainerState(containerMapEnd)
  30140. }
  30141. return v, changed
  30142. }
  30143. func (f *decFnInfo) fastpathDecMapUintptrFloat32R(rv reflect.Value) {
  30144. if rv.CanAddr() {
  30145. vp := rv.Addr().Interface().(*map[uintptr]float32)
  30146. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  30147. if changed {
  30148. *vp = v
  30149. }
  30150. } else {
  30151. v := rv.Interface().(map[uintptr]float32)
  30152. fastpathTV.DecMapUintptrFloat32V(v, fastpathCheckNilFalse, false, f.d)
  30153. }
  30154. }
  30155. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, checkNil bool, d *Decoder) {
  30156. v, changed := f.DecMapUintptrFloat32V(*vp, checkNil, true, d)
  30157. if changed {
  30158. *vp = v
  30159. }
  30160. }
  30161. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, checkNil bool, canChange bool,
  30162. d *Decoder) (_ map[uintptr]float32, changed bool) {
  30163. dd := d.d
  30164. cr := d.cr
  30165. if checkNil && dd.TryDecodeAsNil() {
  30166. if v != nil {
  30167. changed = true
  30168. }
  30169. return nil, changed
  30170. }
  30171. containerLen := dd.ReadMapStart()
  30172. if canChange && v == nil {
  30173. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30174. v = make(map[uintptr]float32, xlen)
  30175. changed = true
  30176. }
  30177. var mk uintptr
  30178. var mv float32
  30179. if containerLen > 0 {
  30180. for j := 0; j < containerLen; j++ {
  30181. if cr != nil {
  30182. cr.sendContainerState(containerMapKey)
  30183. }
  30184. mk = uintptr(dd.DecodeUint(uintBitsize))
  30185. if cr != nil {
  30186. cr.sendContainerState(containerMapValue)
  30187. }
  30188. mv = float32(dd.DecodeFloat(true))
  30189. if v != nil {
  30190. v[mk] = mv
  30191. }
  30192. }
  30193. } else if containerLen < 0 {
  30194. for j := 0; !dd.CheckBreak(); j++ {
  30195. if cr != nil {
  30196. cr.sendContainerState(containerMapKey)
  30197. }
  30198. mk = uintptr(dd.DecodeUint(uintBitsize))
  30199. if cr != nil {
  30200. cr.sendContainerState(containerMapValue)
  30201. }
  30202. mv = float32(dd.DecodeFloat(true))
  30203. if v != nil {
  30204. v[mk] = mv
  30205. }
  30206. }
  30207. }
  30208. if cr != nil {
  30209. cr.sendContainerState(containerMapEnd)
  30210. }
  30211. return v, changed
  30212. }
  30213. func (f *decFnInfo) fastpathDecMapUintptrFloat64R(rv reflect.Value) {
  30214. if rv.CanAddr() {
  30215. vp := rv.Addr().Interface().(*map[uintptr]float64)
  30216. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  30217. if changed {
  30218. *vp = v
  30219. }
  30220. } else {
  30221. v := rv.Interface().(map[uintptr]float64)
  30222. fastpathTV.DecMapUintptrFloat64V(v, fastpathCheckNilFalse, false, f.d)
  30223. }
  30224. }
  30225. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, checkNil bool, d *Decoder) {
  30226. v, changed := f.DecMapUintptrFloat64V(*vp, checkNil, true, d)
  30227. if changed {
  30228. *vp = v
  30229. }
  30230. }
  30231. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, checkNil bool, canChange bool,
  30232. d *Decoder) (_ map[uintptr]float64, changed bool) {
  30233. dd := d.d
  30234. cr := d.cr
  30235. if checkNil && dd.TryDecodeAsNil() {
  30236. if v != nil {
  30237. changed = true
  30238. }
  30239. return nil, changed
  30240. }
  30241. containerLen := dd.ReadMapStart()
  30242. if canChange && v == nil {
  30243. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30244. v = make(map[uintptr]float64, xlen)
  30245. changed = true
  30246. }
  30247. var mk uintptr
  30248. var mv float64
  30249. if containerLen > 0 {
  30250. for j := 0; j < containerLen; j++ {
  30251. if cr != nil {
  30252. cr.sendContainerState(containerMapKey)
  30253. }
  30254. mk = uintptr(dd.DecodeUint(uintBitsize))
  30255. if cr != nil {
  30256. cr.sendContainerState(containerMapValue)
  30257. }
  30258. mv = dd.DecodeFloat(false)
  30259. if v != nil {
  30260. v[mk] = mv
  30261. }
  30262. }
  30263. } else if containerLen < 0 {
  30264. for j := 0; !dd.CheckBreak(); j++ {
  30265. if cr != nil {
  30266. cr.sendContainerState(containerMapKey)
  30267. }
  30268. mk = uintptr(dd.DecodeUint(uintBitsize))
  30269. if cr != nil {
  30270. cr.sendContainerState(containerMapValue)
  30271. }
  30272. mv = dd.DecodeFloat(false)
  30273. if v != nil {
  30274. v[mk] = mv
  30275. }
  30276. }
  30277. }
  30278. if cr != nil {
  30279. cr.sendContainerState(containerMapEnd)
  30280. }
  30281. return v, changed
  30282. }
  30283. func (f *decFnInfo) fastpathDecMapUintptrBoolR(rv reflect.Value) {
  30284. if rv.CanAddr() {
  30285. vp := rv.Addr().Interface().(*map[uintptr]bool)
  30286. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  30287. if changed {
  30288. *vp = v
  30289. }
  30290. } else {
  30291. v := rv.Interface().(map[uintptr]bool)
  30292. fastpathTV.DecMapUintptrBoolV(v, fastpathCheckNilFalse, false, f.d)
  30293. }
  30294. }
  30295. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, checkNil bool, d *Decoder) {
  30296. v, changed := f.DecMapUintptrBoolV(*vp, checkNil, true, d)
  30297. if changed {
  30298. *vp = v
  30299. }
  30300. }
  30301. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, checkNil bool, canChange bool,
  30302. d *Decoder) (_ map[uintptr]bool, changed bool) {
  30303. dd := d.d
  30304. cr := d.cr
  30305. if checkNil && dd.TryDecodeAsNil() {
  30306. if v != nil {
  30307. changed = true
  30308. }
  30309. return nil, changed
  30310. }
  30311. containerLen := dd.ReadMapStart()
  30312. if canChange && v == nil {
  30313. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30314. v = make(map[uintptr]bool, xlen)
  30315. changed = true
  30316. }
  30317. var mk uintptr
  30318. var mv bool
  30319. if containerLen > 0 {
  30320. for j := 0; j < containerLen; j++ {
  30321. if cr != nil {
  30322. cr.sendContainerState(containerMapKey)
  30323. }
  30324. mk = uintptr(dd.DecodeUint(uintBitsize))
  30325. if cr != nil {
  30326. cr.sendContainerState(containerMapValue)
  30327. }
  30328. mv = dd.DecodeBool()
  30329. if v != nil {
  30330. v[mk] = mv
  30331. }
  30332. }
  30333. } else if containerLen < 0 {
  30334. for j := 0; !dd.CheckBreak(); j++ {
  30335. if cr != nil {
  30336. cr.sendContainerState(containerMapKey)
  30337. }
  30338. mk = uintptr(dd.DecodeUint(uintBitsize))
  30339. if cr != nil {
  30340. cr.sendContainerState(containerMapValue)
  30341. }
  30342. mv = dd.DecodeBool()
  30343. if v != nil {
  30344. v[mk] = mv
  30345. }
  30346. }
  30347. }
  30348. if cr != nil {
  30349. cr.sendContainerState(containerMapEnd)
  30350. }
  30351. return v, changed
  30352. }
  30353. func (f *decFnInfo) fastpathDecMapIntIntfR(rv reflect.Value) {
  30354. if rv.CanAddr() {
  30355. vp := rv.Addr().Interface().(*map[int]interface{})
  30356. v, changed := fastpathTV.DecMapIntIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  30357. if changed {
  30358. *vp = v
  30359. }
  30360. } else {
  30361. v := rv.Interface().(map[int]interface{})
  30362. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, f.d)
  30363. }
  30364. }
  30365. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, checkNil bool, d *Decoder) {
  30366. v, changed := f.DecMapIntIntfV(*vp, checkNil, true, d)
  30367. if changed {
  30368. *vp = v
  30369. }
  30370. }
  30371. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, checkNil bool, canChange bool,
  30372. d *Decoder) (_ map[int]interface{}, changed bool) {
  30373. dd := d.d
  30374. cr := d.cr
  30375. if checkNil && dd.TryDecodeAsNil() {
  30376. if v != nil {
  30377. changed = true
  30378. }
  30379. return nil, changed
  30380. }
  30381. containerLen := dd.ReadMapStart()
  30382. if canChange && v == nil {
  30383. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  30384. v = make(map[int]interface{}, xlen)
  30385. changed = true
  30386. }
  30387. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  30388. var mk int
  30389. var mv interface{}
  30390. if containerLen > 0 {
  30391. for j := 0; j < containerLen; j++ {
  30392. if cr != nil {
  30393. cr.sendContainerState(containerMapKey)
  30394. }
  30395. mk = int(dd.DecodeInt(intBitsize))
  30396. if cr != nil {
  30397. cr.sendContainerState(containerMapValue)
  30398. }
  30399. if mapGet {
  30400. mv = v[mk]
  30401. } else {
  30402. mv = nil
  30403. }
  30404. d.decode(&mv)
  30405. if v != nil {
  30406. v[mk] = mv
  30407. }
  30408. }
  30409. } else if containerLen < 0 {
  30410. for j := 0; !dd.CheckBreak(); j++ {
  30411. if cr != nil {
  30412. cr.sendContainerState(containerMapKey)
  30413. }
  30414. mk = int(dd.DecodeInt(intBitsize))
  30415. if cr != nil {
  30416. cr.sendContainerState(containerMapValue)
  30417. }
  30418. if mapGet {
  30419. mv = v[mk]
  30420. } else {
  30421. mv = nil
  30422. }
  30423. d.decode(&mv)
  30424. if v != nil {
  30425. v[mk] = mv
  30426. }
  30427. }
  30428. }
  30429. if cr != nil {
  30430. cr.sendContainerState(containerMapEnd)
  30431. }
  30432. return v, changed
  30433. }
  30434. func (f *decFnInfo) fastpathDecMapIntStringR(rv reflect.Value) {
  30435. if rv.CanAddr() {
  30436. vp := rv.Addr().Interface().(*map[int]string)
  30437. v, changed := fastpathTV.DecMapIntStringV(*vp, fastpathCheckNilFalse, true, f.d)
  30438. if changed {
  30439. *vp = v
  30440. }
  30441. } else {
  30442. v := rv.Interface().(map[int]string)
  30443. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, f.d)
  30444. }
  30445. }
  30446. func (f fastpathT) DecMapIntStringX(vp *map[int]string, checkNil bool, d *Decoder) {
  30447. v, changed := f.DecMapIntStringV(*vp, checkNil, true, d)
  30448. if changed {
  30449. *vp = v
  30450. }
  30451. }
  30452. func (_ fastpathT) DecMapIntStringV(v map[int]string, checkNil bool, canChange bool,
  30453. d *Decoder) (_ map[int]string, changed bool) {
  30454. dd := d.d
  30455. cr := d.cr
  30456. if checkNil && dd.TryDecodeAsNil() {
  30457. if v != nil {
  30458. changed = true
  30459. }
  30460. return nil, changed
  30461. }
  30462. containerLen := dd.ReadMapStart()
  30463. if canChange && v == nil {
  30464. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  30465. v = make(map[int]string, xlen)
  30466. changed = true
  30467. }
  30468. var mk int
  30469. var mv string
  30470. if containerLen > 0 {
  30471. for j := 0; j < containerLen; j++ {
  30472. if cr != nil {
  30473. cr.sendContainerState(containerMapKey)
  30474. }
  30475. mk = int(dd.DecodeInt(intBitsize))
  30476. if cr != nil {
  30477. cr.sendContainerState(containerMapValue)
  30478. }
  30479. mv = dd.DecodeString()
  30480. if v != nil {
  30481. v[mk] = mv
  30482. }
  30483. }
  30484. } else if containerLen < 0 {
  30485. for j := 0; !dd.CheckBreak(); j++ {
  30486. if cr != nil {
  30487. cr.sendContainerState(containerMapKey)
  30488. }
  30489. mk = int(dd.DecodeInt(intBitsize))
  30490. if cr != nil {
  30491. cr.sendContainerState(containerMapValue)
  30492. }
  30493. mv = dd.DecodeString()
  30494. if v != nil {
  30495. v[mk] = mv
  30496. }
  30497. }
  30498. }
  30499. if cr != nil {
  30500. cr.sendContainerState(containerMapEnd)
  30501. }
  30502. return v, changed
  30503. }
  30504. func (f *decFnInfo) fastpathDecMapIntUintR(rv reflect.Value) {
  30505. if rv.CanAddr() {
  30506. vp := rv.Addr().Interface().(*map[int]uint)
  30507. v, changed := fastpathTV.DecMapIntUintV(*vp, fastpathCheckNilFalse, true, f.d)
  30508. if changed {
  30509. *vp = v
  30510. }
  30511. } else {
  30512. v := rv.Interface().(map[int]uint)
  30513. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, f.d)
  30514. }
  30515. }
  30516. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, checkNil bool, d *Decoder) {
  30517. v, changed := f.DecMapIntUintV(*vp, checkNil, true, d)
  30518. if changed {
  30519. *vp = v
  30520. }
  30521. }
  30522. func (_ fastpathT) DecMapIntUintV(v map[int]uint, checkNil bool, canChange bool,
  30523. d *Decoder) (_ map[int]uint, changed bool) {
  30524. dd := d.d
  30525. cr := d.cr
  30526. if checkNil && dd.TryDecodeAsNil() {
  30527. if v != nil {
  30528. changed = true
  30529. }
  30530. return nil, changed
  30531. }
  30532. containerLen := dd.ReadMapStart()
  30533. if canChange && v == nil {
  30534. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30535. v = make(map[int]uint, xlen)
  30536. changed = true
  30537. }
  30538. var mk int
  30539. var mv uint
  30540. if containerLen > 0 {
  30541. for j := 0; j < containerLen; j++ {
  30542. if cr != nil {
  30543. cr.sendContainerState(containerMapKey)
  30544. }
  30545. mk = int(dd.DecodeInt(intBitsize))
  30546. if cr != nil {
  30547. cr.sendContainerState(containerMapValue)
  30548. }
  30549. mv = uint(dd.DecodeUint(uintBitsize))
  30550. if v != nil {
  30551. v[mk] = mv
  30552. }
  30553. }
  30554. } else if containerLen < 0 {
  30555. for j := 0; !dd.CheckBreak(); j++ {
  30556. if cr != nil {
  30557. cr.sendContainerState(containerMapKey)
  30558. }
  30559. mk = int(dd.DecodeInt(intBitsize))
  30560. if cr != nil {
  30561. cr.sendContainerState(containerMapValue)
  30562. }
  30563. mv = uint(dd.DecodeUint(uintBitsize))
  30564. if v != nil {
  30565. v[mk] = mv
  30566. }
  30567. }
  30568. }
  30569. if cr != nil {
  30570. cr.sendContainerState(containerMapEnd)
  30571. }
  30572. return v, changed
  30573. }
  30574. func (f *decFnInfo) fastpathDecMapIntUint8R(rv reflect.Value) {
  30575. if rv.CanAddr() {
  30576. vp := rv.Addr().Interface().(*map[int]uint8)
  30577. v, changed := fastpathTV.DecMapIntUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  30578. if changed {
  30579. *vp = v
  30580. }
  30581. } else {
  30582. v := rv.Interface().(map[int]uint8)
  30583. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, f.d)
  30584. }
  30585. }
  30586. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, checkNil bool, d *Decoder) {
  30587. v, changed := f.DecMapIntUint8V(*vp, checkNil, true, d)
  30588. if changed {
  30589. *vp = v
  30590. }
  30591. }
  30592. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, checkNil bool, canChange bool,
  30593. d *Decoder) (_ map[int]uint8, changed bool) {
  30594. dd := d.d
  30595. cr := d.cr
  30596. if checkNil && dd.TryDecodeAsNil() {
  30597. if v != nil {
  30598. changed = true
  30599. }
  30600. return nil, changed
  30601. }
  30602. containerLen := dd.ReadMapStart()
  30603. if canChange && v == nil {
  30604. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30605. v = make(map[int]uint8, xlen)
  30606. changed = true
  30607. }
  30608. var mk int
  30609. var mv uint8
  30610. if containerLen > 0 {
  30611. for j := 0; j < containerLen; j++ {
  30612. if cr != nil {
  30613. cr.sendContainerState(containerMapKey)
  30614. }
  30615. mk = int(dd.DecodeInt(intBitsize))
  30616. if cr != nil {
  30617. cr.sendContainerState(containerMapValue)
  30618. }
  30619. mv = uint8(dd.DecodeUint(8))
  30620. if v != nil {
  30621. v[mk] = mv
  30622. }
  30623. }
  30624. } else if containerLen < 0 {
  30625. for j := 0; !dd.CheckBreak(); j++ {
  30626. if cr != nil {
  30627. cr.sendContainerState(containerMapKey)
  30628. }
  30629. mk = int(dd.DecodeInt(intBitsize))
  30630. if cr != nil {
  30631. cr.sendContainerState(containerMapValue)
  30632. }
  30633. mv = uint8(dd.DecodeUint(8))
  30634. if v != nil {
  30635. v[mk] = mv
  30636. }
  30637. }
  30638. }
  30639. if cr != nil {
  30640. cr.sendContainerState(containerMapEnd)
  30641. }
  30642. return v, changed
  30643. }
  30644. func (f *decFnInfo) fastpathDecMapIntUint16R(rv reflect.Value) {
  30645. if rv.CanAddr() {
  30646. vp := rv.Addr().Interface().(*map[int]uint16)
  30647. v, changed := fastpathTV.DecMapIntUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  30648. if changed {
  30649. *vp = v
  30650. }
  30651. } else {
  30652. v := rv.Interface().(map[int]uint16)
  30653. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, f.d)
  30654. }
  30655. }
  30656. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, checkNil bool, d *Decoder) {
  30657. v, changed := f.DecMapIntUint16V(*vp, checkNil, true, d)
  30658. if changed {
  30659. *vp = v
  30660. }
  30661. }
  30662. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, checkNil bool, canChange bool,
  30663. d *Decoder) (_ map[int]uint16, changed bool) {
  30664. dd := d.d
  30665. cr := d.cr
  30666. if checkNil && dd.TryDecodeAsNil() {
  30667. if v != nil {
  30668. changed = true
  30669. }
  30670. return nil, changed
  30671. }
  30672. containerLen := dd.ReadMapStart()
  30673. if canChange && v == nil {
  30674. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30675. v = make(map[int]uint16, xlen)
  30676. changed = true
  30677. }
  30678. var mk int
  30679. var mv uint16
  30680. if containerLen > 0 {
  30681. for j := 0; j < containerLen; j++ {
  30682. if cr != nil {
  30683. cr.sendContainerState(containerMapKey)
  30684. }
  30685. mk = int(dd.DecodeInt(intBitsize))
  30686. if cr != nil {
  30687. cr.sendContainerState(containerMapValue)
  30688. }
  30689. mv = uint16(dd.DecodeUint(16))
  30690. if v != nil {
  30691. v[mk] = mv
  30692. }
  30693. }
  30694. } else if containerLen < 0 {
  30695. for j := 0; !dd.CheckBreak(); j++ {
  30696. if cr != nil {
  30697. cr.sendContainerState(containerMapKey)
  30698. }
  30699. mk = int(dd.DecodeInt(intBitsize))
  30700. if cr != nil {
  30701. cr.sendContainerState(containerMapValue)
  30702. }
  30703. mv = uint16(dd.DecodeUint(16))
  30704. if v != nil {
  30705. v[mk] = mv
  30706. }
  30707. }
  30708. }
  30709. if cr != nil {
  30710. cr.sendContainerState(containerMapEnd)
  30711. }
  30712. return v, changed
  30713. }
  30714. func (f *decFnInfo) fastpathDecMapIntUint32R(rv reflect.Value) {
  30715. if rv.CanAddr() {
  30716. vp := rv.Addr().Interface().(*map[int]uint32)
  30717. v, changed := fastpathTV.DecMapIntUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  30718. if changed {
  30719. *vp = v
  30720. }
  30721. } else {
  30722. v := rv.Interface().(map[int]uint32)
  30723. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, f.d)
  30724. }
  30725. }
  30726. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, checkNil bool, d *Decoder) {
  30727. v, changed := f.DecMapIntUint32V(*vp, checkNil, true, d)
  30728. if changed {
  30729. *vp = v
  30730. }
  30731. }
  30732. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, checkNil bool, canChange bool,
  30733. d *Decoder) (_ map[int]uint32, changed bool) {
  30734. dd := d.d
  30735. cr := d.cr
  30736. if checkNil && dd.TryDecodeAsNil() {
  30737. if v != nil {
  30738. changed = true
  30739. }
  30740. return nil, changed
  30741. }
  30742. containerLen := dd.ReadMapStart()
  30743. if canChange && v == nil {
  30744. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30745. v = make(map[int]uint32, xlen)
  30746. changed = true
  30747. }
  30748. var mk int
  30749. var mv uint32
  30750. if containerLen > 0 {
  30751. for j := 0; j < containerLen; j++ {
  30752. if cr != nil {
  30753. cr.sendContainerState(containerMapKey)
  30754. }
  30755. mk = int(dd.DecodeInt(intBitsize))
  30756. if cr != nil {
  30757. cr.sendContainerState(containerMapValue)
  30758. }
  30759. mv = uint32(dd.DecodeUint(32))
  30760. if v != nil {
  30761. v[mk] = mv
  30762. }
  30763. }
  30764. } else if containerLen < 0 {
  30765. for j := 0; !dd.CheckBreak(); j++ {
  30766. if cr != nil {
  30767. cr.sendContainerState(containerMapKey)
  30768. }
  30769. mk = int(dd.DecodeInt(intBitsize))
  30770. if cr != nil {
  30771. cr.sendContainerState(containerMapValue)
  30772. }
  30773. mv = uint32(dd.DecodeUint(32))
  30774. if v != nil {
  30775. v[mk] = mv
  30776. }
  30777. }
  30778. }
  30779. if cr != nil {
  30780. cr.sendContainerState(containerMapEnd)
  30781. }
  30782. return v, changed
  30783. }
  30784. func (f *decFnInfo) fastpathDecMapIntUint64R(rv reflect.Value) {
  30785. if rv.CanAddr() {
  30786. vp := rv.Addr().Interface().(*map[int]uint64)
  30787. v, changed := fastpathTV.DecMapIntUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  30788. if changed {
  30789. *vp = v
  30790. }
  30791. } else {
  30792. v := rv.Interface().(map[int]uint64)
  30793. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, f.d)
  30794. }
  30795. }
  30796. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, checkNil bool, d *Decoder) {
  30797. v, changed := f.DecMapIntUint64V(*vp, checkNil, true, d)
  30798. if changed {
  30799. *vp = v
  30800. }
  30801. }
  30802. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, checkNil bool, canChange bool,
  30803. d *Decoder) (_ map[int]uint64, changed bool) {
  30804. dd := d.d
  30805. cr := d.cr
  30806. if checkNil && dd.TryDecodeAsNil() {
  30807. if v != nil {
  30808. changed = true
  30809. }
  30810. return nil, changed
  30811. }
  30812. containerLen := dd.ReadMapStart()
  30813. if canChange && v == nil {
  30814. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30815. v = make(map[int]uint64, xlen)
  30816. changed = true
  30817. }
  30818. var mk int
  30819. var mv uint64
  30820. if containerLen > 0 {
  30821. for j := 0; j < containerLen; j++ {
  30822. if cr != nil {
  30823. cr.sendContainerState(containerMapKey)
  30824. }
  30825. mk = int(dd.DecodeInt(intBitsize))
  30826. if cr != nil {
  30827. cr.sendContainerState(containerMapValue)
  30828. }
  30829. mv = dd.DecodeUint(64)
  30830. if v != nil {
  30831. v[mk] = mv
  30832. }
  30833. }
  30834. } else if containerLen < 0 {
  30835. for j := 0; !dd.CheckBreak(); j++ {
  30836. if cr != nil {
  30837. cr.sendContainerState(containerMapKey)
  30838. }
  30839. mk = int(dd.DecodeInt(intBitsize))
  30840. if cr != nil {
  30841. cr.sendContainerState(containerMapValue)
  30842. }
  30843. mv = dd.DecodeUint(64)
  30844. if v != nil {
  30845. v[mk] = mv
  30846. }
  30847. }
  30848. }
  30849. if cr != nil {
  30850. cr.sendContainerState(containerMapEnd)
  30851. }
  30852. return v, changed
  30853. }
  30854. func (f *decFnInfo) fastpathDecMapIntUintptrR(rv reflect.Value) {
  30855. if rv.CanAddr() {
  30856. vp := rv.Addr().Interface().(*map[int]uintptr)
  30857. v, changed := fastpathTV.DecMapIntUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  30858. if changed {
  30859. *vp = v
  30860. }
  30861. } else {
  30862. v := rv.Interface().(map[int]uintptr)
  30863. fastpathTV.DecMapIntUintptrV(v, fastpathCheckNilFalse, false, f.d)
  30864. }
  30865. }
  30866. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, checkNil bool, d *Decoder) {
  30867. v, changed := f.DecMapIntUintptrV(*vp, checkNil, true, d)
  30868. if changed {
  30869. *vp = v
  30870. }
  30871. }
  30872. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, checkNil bool, canChange bool,
  30873. d *Decoder) (_ map[int]uintptr, changed bool) {
  30874. dd := d.d
  30875. cr := d.cr
  30876. if checkNil && dd.TryDecodeAsNil() {
  30877. if v != nil {
  30878. changed = true
  30879. }
  30880. return nil, changed
  30881. }
  30882. containerLen := dd.ReadMapStart()
  30883. if canChange && v == nil {
  30884. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30885. v = make(map[int]uintptr, xlen)
  30886. changed = true
  30887. }
  30888. var mk int
  30889. var mv uintptr
  30890. if containerLen > 0 {
  30891. for j := 0; j < containerLen; j++ {
  30892. if cr != nil {
  30893. cr.sendContainerState(containerMapKey)
  30894. }
  30895. mk = int(dd.DecodeInt(intBitsize))
  30896. if cr != nil {
  30897. cr.sendContainerState(containerMapValue)
  30898. }
  30899. mv = uintptr(dd.DecodeUint(uintBitsize))
  30900. if v != nil {
  30901. v[mk] = mv
  30902. }
  30903. }
  30904. } else if containerLen < 0 {
  30905. for j := 0; !dd.CheckBreak(); j++ {
  30906. if cr != nil {
  30907. cr.sendContainerState(containerMapKey)
  30908. }
  30909. mk = int(dd.DecodeInt(intBitsize))
  30910. if cr != nil {
  30911. cr.sendContainerState(containerMapValue)
  30912. }
  30913. mv = uintptr(dd.DecodeUint(uintBitsize))
  30914. if v != nil {
  30915. v[mk] = mv
  30916. }
  30917. }
  30918. }
  30919. if cr != nil {
  30920. cr.sendContainerState(containerMapEnd)
  30921. }
  30922. return v, changed
  30923. }
  30924. func (f *decFnInfo) fastpathDecMapIntIntR(rv reflect.Value) {
  30925. if rv.CanAddr() {
  30926. vp := rv.Addr().Interface().(*map[int]int)
  30927. v, changed := fastpathTV.DecMapIntIntV(*vp, fastpathCheckNilFalse, true, f.d)
  30928. if changed {
  30929. *vp = v
  30930. }
  30931. } else {
  30932. v := rv.Interface().(map[int]int)
  30933. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, f.d)
  30934. }
  30935. }
  30936. func (f fastpathT) DecMapIntIntX(vp *map[int]int, checkNil bool, d *Decoder) {
  30937. v, changed := f.DecMapIntIntV(*vp, checkNil, true, d)
  30938. if changed {
  30939. *vp = v
  30940. }
  30941. }
  30942. func (_ fastpathT) DecMapIntIntV(v map[int]int, checkNil bool, canChange bool,
  30943. d *Decoder) (_ map[int]int, changed bool) {
  30944. dd := d.d
  30945. cr := d.cr
  30946. if checkNil && dd.TryDecodeAsNil() {
  30947. if v != nil {
  30948. changed = true
  30949. }
  30950. return nil, changed
  30951. }
  30952. containerLen := dd.ReadMapStart()
  30953. if canChange && v == nil {
  30954. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30955. v = make(map[int]int, xlen)
  30956. changed = true
  30957. }
  30958. var mk int
  30959. var mv int
  30960. if containerLen > 0 {
  30961. for j := 0; j < containerLen; j++ {
  30962. if cr != nil {
  30963. cr.sendContainerState(containerMapKey)
  30964. }
  30965. mk = int(dd.DecodeInt(intBitsize))
  30966. if cr != nil {
  30967. cr.sendContainerState(containerMapValue)
  30968. }
  30969. mv = int(dd.DecodeInt(intBitsize))
  30970. if v != nil {
  30971. v[mk] = mv
  30972. }
  30973. }
  30974. } else if containerLen < 0 {
  30975. for j := 0; !dd.CheckBreak(); j++ {
  30976. if cr != nil {
  30977. cr.sendContainerState(containerMapKey)
  30978. }
  30979. mk = int(dd.DecodeInt(intBitsize))
  30980. if cr != nil {
  30981. cr.sendContainerState(containerMapValue)
  30982. }
  30983. mv = int(dd.DecodeInt(intBitsize))
  30984. if v != nil {
  30985. v[mk] = mv
  30986. }
  30987. }
  30988. }
  30989. if cr != nil {
  30990. cr.sendContainerState(containerMapEnd)
  30991. }
  30992. return v, changed
  30993. }
  30994. func (f *decFnInfo) fastpathDecMapIntInt8R(rv reflect.Value) {
  30995. if rv.CanAddr() {
  30996. vp := rv.Addr().Interface().(*map[int]int8)
  30997. v, changed := fastpathTV.DecMapIntInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  30998. if changed {
  30999. *vp = v
  31000. }
  31001. } else {
  31002. v := rv.Interface().(map[int]int8)
  31003. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, f.d)
  31004. }
  31005. }
  31006. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, checkNil bool, d *Decoder) {
  31007. v, changed := f.DecMapIntInt8V(*vp, checkNil, true, d)
  31008. if changed {
  31009. *vp = v
  31010. }
  31011. }
  31012. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, checkNil bool, canChange bool,
  31013. d *Decoder) (_ map[int]int8, changed bool) {
  31014. dd := d.d
  31015. cr := d.cr
  31016. if checkNil && dd.TryDecodeAsNil() {
  31017. if v != nil {
  31018. changed = true
  31019. }
  31020. return nil, changed
  31021. }
  31022. containerLen := dd.ReadMapStart()
  31023. if canChange && v == nil {
  31024. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31025. v = make(map[int]int8, xlen)
  31026. changed = true
  31027. }
  31028. var mk int
  31029. var mv int8
  31030. if containerLen > 0 {
  31031. for j := 0; j < containerLen; j++ {
  31032. if cr != nil {
  31033. cr.sendContainerState(containerMapKey)
  31034. }
  31035. mk = int(dd.DecodeInt(intBitsize))
  31036. if cr != nil {
  31037. cr.sendContainerState(containerMapValue)
  31038. }
  31039. mv = int8(dd.DecodeInt(8))
  31040. if v != nil {
  31041. v[mk] = mv
  31042. }
  31043. }
  31044. } else if containerLen < 0 {
  31045. for j := 0; !dd.CheckBreak(); j++ {
  31046. if cr != nil {
  31047. cr.sendContainerState(containerMapKey)
  31048. }
  31049. mk = int(dd.DecodeInt(intBitsize))
  31050. if cr != nil {
  31051. cr.sendContainerState(containerMapValue)
  31052. }
  31053. mv = int8(dd.DecodeInt(8))
  31054. if v != nil {
  31055. v[mk] = mv
  31056. }
  31057. }
  31058. }
  31059. if cr != nil {
  31060. cr.sendContainerState(containerMapEnd)
  31061. }
  31062. return v, changed
  31063. }
  31064. func (f *decFnInfo) fastpathDecMapIntInt16R(rv reflect.Value) {
  31065. if rv.CanAddr() {
  31066. vp := rv.Addr().Interface().(*map[int]int16)
  31067. v, changed := fastpathTV.DecMapIntInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  31068. if changed {
  31069. *vp = v
  31070. }
  31071. } else {
  31072. v := rv.Interface().(map[int]int16)
  31073. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, f.d)
  31074. }
  31075. }
  31076. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, checkNil bool, d *Decoder) {
  31077. v, changed := f.DecMapIntInt16V(*vp, checkNil, true, d)
  31078. if changed {
  31079. *vp = v
  31080. }
  31081. }
  31082. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, checkNil bool, canChange bool,
  31083. d *Decoder) (_ map[int]int16, changed bool) {
  31084. dd := d.d
  31085. cr := d.cr
  31086. if checkNil && dd.TryDecodeAsNil() {
  31087. if v != nil {
  31088. changed = true
  31089. }
  31090. return nil, changed
  31091. }
  31092. containerLen := dd.ReadMapStart()
  31093. if canChange && v == nil {
  31094. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31095. v = make(map[int]int16, xlen)
  31096. changed = true
  31097. }
  31098. var mk int
  31099. var mv int16
  31100. if containerLen > 0 {
  31101. for j := 0; j < containerLen; j++ {
  31102. if cr != nil {
  31103. cr.sendContainerState(containerMapKey)
  31104. }
  31105. mk = int(dd.DecodeInt(intBitsize))
  31106. if cr != nil {
  31107. cr.sendContainerState(containerMapValue)
  31108. }
  31109. mv = int16(dd.DecodeInt(16))
  31110. if v != nil {
  31111. v[mk] = mv
  31112. }
  31113. }
  31114. } else if containerLen < 0 {
  31115. for j := 0; !dd.CheckBreak(); j++ {
  31116. if cr != nil {
  31117. cr.sendContainerState(containerMapKey)
  31118. }
  31119. mk = int(dd.DecodeInt(intBitsize))
  31120. if cr != nil {
  31121. cr.sendContainerState(containerMapValue)
  31122. }
  31123. mv = int16(dd.DecodeInt(16))
  31124. if v != nil {
  31125. v[mk] = mv
  31126. }
  31127. }
  31128. }
  31129. if cr != nil {
  31130. cr.sendContainerState(containerMapEnd)
  31131. }
  31132. return v, changed
  31133. }
  31134. func (f *decFnInfo) fastpathDecMapIntInt32R(rv reflect.Value) {
  31135. if rv.CanAddr() {
  31136. vp := rv.Addr().Interface().(*map[int]int32)
  31137. v, changed := fastpathTV.DecMapIntInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  31138. if changed {
  31139. *vp = v
  31140. }
  31141. } else {
  31142. v := rv.Interface().(map[int]int32)
  31143. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, f.d)
  31144. }
  31145. }
  31146. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, checkNil bool, d *Decoder) {
  31147. v, changed := f.DecMapIntInt32V(*vp, checkNil, true, d)
  31148. if changed {
  31149. *vp = v
  31150. }
  31151. }
  31152. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, checkNil bool, canChange bool,
  31153. d *Decoder) (_ map[int]int32, changed bool) {
  31154. dd := d.d
  31155. cr := d.cr
  31156. if checkNil && dd.TryDecodeAsNil() {
  31157. if v != nil {
  31158. changed = true
  31159. }
  31160. return nil, changed
  31161. }
  31162. containerLen := dd.ReadMapStart()
  31163. if canChange && v == nil {
  31164. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31165. v = make(map[int]int32, xlen)
  31166. changed = true
  31167. }
  31168. var mk int
  31169. var mv int32
  31170. if containerLen > 0 {
  31171. for j := 0; j < containerLen; j++ {
  31172. if cr != nil {
  31173. cr.sendContainerState(containerMapKey)
  31174. }
  31175. mk = int(dd.DecodeInt(intBitsize))
  31176. if cr != nil {
  31177. cr.sendContainerState(containerMapValue)
  31178. }
  31179. mv = int32(dd.DecodeInt(32))
  31180. if v != nil {
  31181. v[mk] = mv
  31182. }
  31183. }
  31184. } else if containerLen < 0 {
  31185. for j := 0; !dd.CheckBreak(); j++ {
  31186. if cr != nil {
  31187. cr.sendContainerState(containerMapKey)
  31188. }
  31189. mk = int(dd.DecodeInt(intBitsize))
  31190. if cr != nil {
  31191. cr.sendContainerState(containerMapValue)
  31192. }
  31193. mv = int32(dd.DecodeInt(32))
  31194. if v != nil {
  31195. v[mk] = mv
  31196. }
  31197. }
  31198. }
  31199. if cr != nil {
  31200. cr.sendContainerState(containerMapEnd)
  31201. }
  31202. return v, changed
  31203. }
  31204. func (f *decFnInfo) fastpathDecMapIntInt64R(rv reflect.Value) {
  31205. if rv.CanAddr() {
  31206. vp := rv.Addr().Interface().(*map[int]int64)
  31207. v, changed := fastpathTV.DecMapIntInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  31208. if changed {
  31209. *vp = v
  31210. }
  31211. } else {
  31212. v := rv.Interface().(map[int]int64)
  31213. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, f.d)
  31214. }
  31215. }
  31216. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, checkNil bool, d *Decoder) {
  31217. v, changed := f.DecMapIntInt64V(*vp, checkNil, true, d)
  31218. if changed {
  31219. *vp = v
  31220. }
  31221. }
  31222. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, checkNil bool, canChange bool,
  31223. d *Decoder) (_ map[int]int64, changed bool) {
  31224. dd := d.d
  31225. cr := d.cr
  31226. if checkNil && dd.TryDecodeAsNil() {
  31227. if v != nil {
  31228. changed = true
  31229. }
  31230. return nil, changed
  31231. }
  31232. containerLen := dd.ReadMapStart()
  31233. if canChange && v == nil {
  31234. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31235. v = make(map[int]int64, xlen)
  31236. changed = true
  31237. }
  31238. var mk int
  31239. var mv int64
  31240. if containerLen > 0 {
  31241. for j := 0; j < containerLen; j++ {
  31242. if cr != nil {
  31243. cr.sendContainerState(containerMapKey)
  31244. }
  31245. mk = int(dd.DecodeInt(intBitsize))
  31246. if cr != nil {
  31247. cr.sendContainerState(containerMapValue)
  31248. }
  31249. mv = dd.DecodeInt(64)
  31250. if v != nil {
  31251. v[mk] = mv
  31252. }
  31253. }
  31254. } else if containerLen < 0 {
  31255. for j := 0; !dd.CheckBreak(); j++ {
  31256. if cr != nil {
  31257. cr.sendContainerState(containerMapKey)
  31258. }
  31259. mk = int(dd.DecodeInt(intBitsize))
  31260. if cr != nil {
  31261. cr.sendContainerState(containerMapValue)
  31262. }
  31263. mv = dd.DecodeInt(64)
  31264. if v != nil {
  31265. v[mk] = mv
  31266. }
  31267. }
  31268. }
  31269. if cr != nil {
  31270. cr.sendContainerState(containerMapEnd)
  31271. }
  31272. return v, changed
  31273. }
  31274. func (f *decFnInfo) fastpathDecMapIntFloat32R(rv reflect.Value) {
  31275. if rv.CanAddr() {
  31276. vp := rv.Addr().Interface().(*map[int]float32)
  31277. v, changed := fastpathTV.DecMapIntFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  31278. if changed {
  31279. *vp = v
  31280. }
  31281. } else {
  31282. v := rv.Interface().(map[int]float32)
  31283. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, f.d)
  31284. }
  31285. }
  31286. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, checkNil bool, d *Decoder) {
  31287. v, changed := f.DecMapIntFloat32V(*vp, checkNil, true, d)
  31288. if changed {
  31289. *vp = v
  31290. }
  31291. }
  31292. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, checkNil bool, canChange bool,
  31293. d *Decoder) (_ map[int]float32, changed bool) {
  31294. dd := d.d
  31295. cr := d.cr
  31296. if checkNil && dd.TryDecodeAsNil() {
  31297. if v != nil {
  31298. changed = true
  31299. }
  31300. return nil, changed
  31301. }
  31302. containerLen := dd.ReadMapStart()
  31303. if canChange && v == nil {
  31304. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31305. v = make(map[int]float32, xlen)
  31306. changed = true
  31307. }
  31308. var mk int
  31309. var mv float32
  31310. if containerLen > 0 {
  31311. for j := 0; j < containerLen; j++ {
  31312. if cr != nil {
  31313. cr.sendContainerState(containerMapKey)
  31314. }
  31315. mk = int(dd.DecodeInt(intBitsize))
  31316. if cr != nil {
  31317. cr.sendContainerState(containerMapValue)
  31318. }
  31319. mv = float32(dd.DecodeFloat(true))
  31320. if v != nil {
  31321. v[mk] = mv
  31322. }
  31323. }
  31324. } else if containerLen < 0 {
  31325. for j := 0; !dd.CheckBreak(); j++ {
  31326. if cr != nil {
  31327. cr.sendContainerState(containerMapKey)
  31328. }
  31329. mk = int(dd.DecodeInt(intBitsize))
  31330. if cr != nil {
  31331. cr.sendContainerState(containerMapValue)
  31332. }
  31333. mv = float32(dd.DecodeFloat(true))
  31334. if v != nil {
  31335. v[mk] = mv
  31336. }
  31337. }
  31338. }
  31339. if cr != nil {
  31340. cr.sendContainerState(containerMapEnd)
  31341. }
  31342. return v, changed
  31343. }
  31344. func (f *decFnInfo) fastpathDecMapIntFloat64R(rv reflect.Value) {
  31345. if rv.CanAddr() {
  31346. vp := rv.Addr().Interface().(*map[int]float64)
  31347. v, changed := fastpathTV.DecMapIntFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  31348. if changed {
  31349. *vp = v
  31350. }
  31351. } else {
  31352. v := rv.Interface().(map[int]float64)
  31353. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, f.d)
  31354. }
  31355. }
  31356. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, checkNil bool, d *Decoder) {
  31357. v, changed := f.DecMapIntFloat64V(*vp, checkNil, true, d)
  31358. if changed {
  31359. *vp = v
  31360. }
  31361. }
  31362. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, checkNil bool, canChange bool,
  31363. d *Decoder) (_ map[int]float64, changed bool) {
  31364. dd := d.d
  31365. cr := d.cr
  31366. if checkNil && dd.TryDecodeAsNil() {
  31367. if v != nil {
  31368. changed = true
  31369. }
  31370. return nil, changed
  31371. }
  31372. containerLen := dd.ReadMapStart()
  31373. if canChange && v == nil {
  31374. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31375. v = make(map[int]float64, xlen)
  31376. changed = true
  31377. }
  31378. var mk int
  31379. var mv float64
  31380. if containerLen > 0 {
  31381. for j := 0; j < containerLen; j++ {
  31382. if cr != nil {
  31383. cr.sendContainerState(containerMapKey)
  31384. }
  31385. mk = int(dd.DecodeInt(intBitsize))
  31386. if cr != nil {
  31387. cr.sendContainerState(containerMapValue)
  31388. }
  31389. mv = dd.DecodeFloat(false)
  31390. if v != nil {
  31391. v[mk] = mv
  31392. }
  31393. }
  31394. } else if containerLen < 0 {
  31395. for j := 0; !dd.CheckBreak(); j++ {
  31396. if cr != nil {
  31397. cr.sendContainerState(containerMapKey)
  31398. }
  31399. mk = int(dd.DecodeInt(intBitsize))
  31400. if cr != nil {
  31401. cr.sendContainerState(containerMapValue)
  31402. }
  31403. mv = dd.DecodeFloat(false)
  31404. if v != nil {
  31405. v[mk] = mv
  31406. }
  31407. }
  31408. }
  31409. if cr != nil {
  31410. cr.sendContainerState(containerMapEnd)
  31411. }
  31412. return v, changed
  31413. }
  31414. func (f *decFnInfo) fastpathDecMapIntBoolR(rv reflect.Value) {
  31415. if rv.CanAddr() {
  31416. vp := rv.Addr().Interface().(*map[int]bool)
  31417. v, changed := fastpathTV.DecMapIntBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  31418. if changed {
  31419. *vp = v
  31420. }
  31421. } else {
  31422. v := rv.Interface().(map[int]bool)
  31423. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, f.d)
  31424. }
  31425. }
  31426. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, checkNil bool, d *Decoder) {
  31427. v, changed := f.DecMapIntBoolV(*vp, checkNil, true, d)
  31428. if changed {
  31429. *vp = v
  31430. }
  31431. }
  31432. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, checkNil bool, canChange bool,
  31433. d *Decoder) (_ map[int]bool, changed bool) {
  31434. dd := d.d
  31435. cr := d.cr
  31436. if checkNil && dd.TryDecodeAsNil() {
  31437. if v != nil {
  31438. changed = true
  31439. }
  31440. return nil, changed
  31441. }
  31442. containerLen := dd.ReadMapStart()
  31443. if canChange && v == nil {
  31444. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31445. v = make(map[int]bool, xlen)
  31446. changed = true
  31447. }
  31448. var mk int
  31449. var mv bool
  31450. if containerLen > 0 {
  31451. for j := 0; j < containerLen; j++ {
  31452. if cr != nil {
  31453. cr.sendContainerState(containerMapKey)
  31454. }
  31455. mk = int(dd.DecodeInt(intBitsize))
  31456. if cr != nil {
  31457. cr.sendContainerState(containerMapValue)
  31458. }
  31459. mv = dd.DecodeBool()
  31460. if v != nil {
  31461. v[mk] = mv
  31462. }
  31463. }
  31464. } else if containerLen < 0 {
  31465. for j := 0; !dd.CheckBreak(); j++ {
  31466. if cr != nil {
  31467. cr.sendContainerState(containerMapKey)
  31468. }
  31469. mk = int(dd.DecodeInt(intBitsize))
  31470. if cr != nil {
  31471. cr.sendContainerState(containerMapValue)
  31472. }
  31473. mv = dd.DecodeBool()
  31474. if v != nil {
  31475. v[mk] = mv
  31476. }
  31477. }
  31478. }
  31479. if cr != nil {
  31480. cr.sendContainerState(containerMapEnd)
  31481. }
  31482. return v, changed
  31483. }
  31484. func (f *decFnInfo) fastpathDecMapInt8IntfR(rv reflect.Value) {
  31485. if rv.CanAddr() {
  31486. vp := rv.Addr().Interface().(*map[int8]interface{})
  31487. v, changed := fastpathTV.DecMapInt8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  31488. if changed {
  31489. *vp = v
  31490. }
  31491. } else {
  31492. v := rv.Interface().(map[int8]interface{})
  31493. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, f.d)
  31494. }
  31495. }
  31496. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, checkNil bool, d *Decoder) {
  31497. v, changed := f.DecMapInt8IntfV(*vp, checkNil, true, d)
  31498. if changed {
  31499. *vp = v
  31500. }
  31501. }
  31502. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, checkNil bool, canChange bool,
  31503. d *Decoder) (_ map[int8]interface{}, changed bool) {
  31504. dd := d.d
  31505. cr := d.cr
  31506. if checkNil && dd.TryDecodeAsNil() {
  31507. if v != nil {
  31508. changed = true
  31509. }
  31510. return nil, changed
  31511. }
  31512. containerLen := dd.ReadMapStart()
  31513. if canChange && v == nil {
  31514. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  31515. v = make(map[int8]interface{}, xlen)
  31516. changed = true
  31517. }
  31518. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  31519. var mk int8
  31520. var mv interface{}
  31521. if containerLen > 0 {
  31522. for j := 0; j < containerLen; j++ {
  31523. if cr != nil {
  31524. cr.sendContainerState(containerMapKey)
  31525. }
  31526. mk = int8(dd.DecodeInt(8))
  31527. if cr != nil {
  31528. cr.sendContainerState(containerMapValue)
  31529. }
  31530. if mapGet {
  31531. mv = v[mk]
  31532. } else {
  31533. mv = nil
  31534. }
  31535. d.decode(&mv)
  31536. if v != nil {
  31537. v[mk] = mv
  31538. }
  31539. }
  31540. } else if containerLen < 0 {
  31541. for j := 0; !dd.CheckBreak(); j++ {
  31542. if cr != nil {
  31543. cr.sendContainerState(containerMapKey)
  31544. }
  31545. mk = int8(dd.DecodeInt(8))
  31546. if cr != nil {
  31547. cr.sendContainerState(containerMapValue)
  31548. }
  31549. if mapGet {
  31550. mv = v[mk]
  31551. } else {
  31552. mv = nil
  31553. }
  31554. d.decode(&mv)
  31555. if v != nil {
  31556. v[mk] = mv
  31557. }
  31558. }
  31559. }
  31560. if cr != nil {
  31561. cr.sendContainerState(containerMapEnd)
  31562. }
  31563. return v, changed
  31564. }
  31565. func (f *decFnInfo) fastpathDecMapInt8StringR(rv reflect.Value) {
  31566. if rv.CanAddr() {
  31567. vp := rv.Addr().Interface().(*map[int8]string)
  31568. v, changed := fastpathTV.DecMapInt8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  31569. if changed {
  31570. *vp = v
  31571. }
  31572. } else {
  31573. v := rv.Interface().(map[int8]string)
  31574. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, f.d)
  31575. }
  31576. }
  31577. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, checkNil bool, d *Decoder) {
  31578. v, changed := f.DecMapInt8StringV(*vp, checkNil, true, d)
  31579. if changed {
  31580. *vp = v
  31581. }
  31582. }
  31583. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, checkNil bool, canChange bool,
  31584. d *Decoder) (_ map[int8]string, changed bool) {
  31585. dd := d.d
  31586. cr := d.cr
  31587. if checkNil && dd.TryDecodeAsNil() {
  31588. if v != nil {
  31589. changed = true
  31590. }
  31591. return nil, changed
  31592. }
  31593. containerLen := dd.ReadMapStart()
  31594. if canChange && v == nil {
  31595. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  31596. v = make(map[int8]string, xlen)
  31597. changed = true
  31598. }
  31599. var mk int8
  31600. var mv string
  31601. if containerLen > 0 {
  31602. for j := 0; j < containerLen; j++ {
  31603. if cr != nil {
  31604. cr.sendContainerState(containerMapKey)
  31605. }
  31606. mk = int8(dd.DecodeInt(8))
  31607. if cr != nil {
  31608. cr.sendContainerState(containerMapValue)
  31609. }
  31610. mv = dd.DecodeString()
  31611. if v != nil {
  31612. v[mk] = mv
  31613. }
  31614. }
  31615. } else if containerLen < 0 {
  31616. for j := 0; !dd.CheckBreak(); j++ {
  31617. if cr != nil {
  31618. cr.sendContainerState(containerMapKey)
  31619. }
  31620. mk = int8(dd.DecodeInt(8))
  31621. if cr != nil {
  31622. cr.sendContainerState(containerMapValue)
  31623. }
  31624. mv = dd.DecodeString()
  31625. if v != nil {
  31626. v[mk] = mv
  31627. }
  31628. }
  31629. }
  31630. if cr != nil {
  31631. cr.sendContainerState(containerMapEnd)
  31632. }
  31633. return v, changed
  31634. }
  31635. func (f *decFnInfo) fastpathDecMapInt8UintR(rv reflect.Value) {
  31636. if rv.CanAddr() {
  31637. vp := rv.Addr().Interface().(*map[int8]uint)
  31638. v, changed := fastpathTV.DecMapInt8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  31639. if changed {
  31640. *vp = v
  31641. }
  31642. } else {
  31643. v := rv.Interface().(map[int8]uint)
  31644. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, f.d)
  31645. }
  31646. }
  31647. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, checkNil bool, d *Decoder) {
  31648. v, changed := f.DecMapInt8UintV(*vp, checkNil, true, d)
  31649. if changed {
  31650. *vp = v
  31651. }
  31652. }
  31653. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, checkNil bool, canChange bool,
  31654. d *Decoder) (_ map[int8]uint, changed bool) {
  31655. dd := d.d
  31656. cr := d.cr
  31657. if checkNil && dd.TryDecodeAsNil() {
  31658. if v != nil {
  31659. changed = true
  31660. }
  31661. return nil, changed
  31662. }
  31663. containerLen := dd.ReadMapStart()
  31664. if canChange && v == nil {
  31665. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31666. v = make(map[int8]uint, xlen)
  31667. changed = true
  31668. }
  31669. var mk int8
  31670. var mv uint
  31671. if containerLen > 0 {
  31672. for j := 0; j < containerLen; j++ {
  31673. if cr != nil {
  31674. cr.sendContainerState(containerMapKey)
  31675. }
  31676. mk = int8(dd.DecodeInt(8))
  31677. if cr != nil {
  31678. cr.sendContainerState(containerMapValue)
  31679. }
  31680. mv = uint(dd.DecodeUint(uintBitsize))
  31681. if v != nil {
  31682. v[mk] = mv
  31683. }
  31684. }
  31685. } else if containerLen < 0 {
  31686. for j := 0; !dd.CheckBreak(); j++ {
  31687. if cr != nil {
  31688. cr.sendContainerState(containerMapKey)
  31689. }
  31690. mk = int8(dd.DecodeInt(8))
  31691. if cr != nil {
  31692. cr.sendContainerState(containerMapValue)
  31693. }
  31694. mv = uint(dd.DecodeUint(uintBitsize))
  31695. if v != nil {
  31696. v[mk] = mv
  31697. }
  31698. }
  31699. }
  31700. if cr != nil {
  31701. cr.sendContainerState(containerMapEnd)
  31702. }
  31703. return v, changed
  31704. }
  31705. func (f *decFnInfo) fastpathDecMapInt8Uint8R(rv reflect.Value) {
  31706. if rv.CanAddr() {
  31707. vp := rv.Addr().Interface().(*map[int8]uint8)
  31708. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  31709. if changed {
  31710. *vp = v
  31711. }
  31712. } else {
  31713. v := rv.Interface().(map[int8]uint8)
  31714. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  31715. }
  31716. }
  31717. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, checkNil bool, d *Decoder) {
  31718. v, changed := f.DecMapInt8Uint8V(*vp, checkNil, true, d)
  31719. if changed {
  31720. *vp = v
  31721. }
  31722. }
  31723. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, checkNil bool, canChange bool,
  31724. d *Decoder) (_ map[int8]uint8, changed bool) {
  31725. dd := d.d
  31726. cr := d.cr
  31727. if checkNil && dd.TryDecodeAsNil() {
  31728. if v != nil {
  31729. changed = true
  31730. }
  31731. return nil, changed
  31732. }
  31733. containerLen := dd.ReadMapStart()
  31734. if canChange && v == nil {
  31735. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  31736. v = make(map[int8]uint8, xlen)
  31737. changed = true
  31738. }
  31739. var mk int8
  31740. var mv uint8
  31741. if containerLen > 0 {
  31742. for j := 0; j < containerLen; j++ {
  31743. if cr != nil {
  31744. cr.sendContainerState(containerMapKey)
  31745. }
  31746. mk = int8(dd.DecodeInt(8))
  31747. if cr != nil {
  31748. cr.sendContainerState(containerMapValue)
  31749. }
  31750. mv = uint8(dd.DecodeUint(8))
  31751. if v != nil {
  31752. v[mk] = mv
  31753. }
  31754. }
  31755. } else if containerLen < 0 {
  31756. for j := 0; !dd.CheckBreak(); j++ {
  31757. if cr != nil {
  31758. cr.sendContainerState(containerMapKey)
  31759. }
  31760. mk = int8(dd.DecodeInt(8))
  31761. if cr != nil {
  31762. cr.sendContainerState(containerMapValue)
  31763. }
  31764. mv = uint8(dd.DecodeUint(8))
  31765. if v != nil {
  31766. v[mk] = mv
  31767. }
  31768. }
  31769. }
  31770. if cr != nil {
  31771. cr.sendContainerState(containerMapEnd)
  31772. }
  31773. return v, changed
  31774. }
  31775. func (f *decFnInfo) fastpathDecMapInt8Uint16R(rv reflect.Value) {
  31776. if rv.CanAddr() {
  31777. vp := rv.Addr().Interface().(*map[int8]uint16)
  31778. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  31779. if changed {
  31780. *vp = v
  31781. }
  31782. } else {
  31783. v := rv.Interface().(map[int8]uint16)
  31784. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  31785. }
  31786. }
  31787. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, checkNil bool, d *Decoder) {
  31788. v, changed := f.DecMapInt8Uint16V(*vp, checkNil, true, d)
  31789. if changed {
  31790. *vp = v
  31791. }
  31792. }
  31793. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, checkNil bool, canChange bool,
  31794. d *Decoder) (_ map[int8]uint16, changed bool) {
  31795. dd := d.d
  31796. cr := d.cr
  31797. if checkNil && dd.TryDecodeAsNil() {
  31798. if v != nil {
  31799. changed = true
  31800. }
  31801. return nil, changed
  31802. }
  31803. containerLen := dd.ReadMapStart()
  31804. if canChange && v == nil {
  31805. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31806. v = make(map[int8]uint16, xlen)
  31807. changed = true
  31808. }
  31809. var mk int8
  31810. var mv uint16
  31811. if containerLen > 0 {
  31812. for j := 0; j < containerLen; j++ {
  31813. if cr != nil {
  31814. cr.sendContainerState(containerMapKey)
  31815. }
  31816. mk = int8(dd.DecodeInt(8))
  31817. if cr != nil {
  31818. cr.sendContainerState(containerMapValue)
  31819. }
  31820. mv = uint16(dd.DecodeUint(16))
  31821. if v != nil {
  31822. v[mk] = mv
  31823. }
  31824. }
  31825. } else if containerLen < 0 {
  31826. for j := 0; !dd.CheckBreak(); j++ {
  31827. if cr != nil {
  31828. cr.sendContainerState(containerMapKey)
  31829. }
  31830. mk = int8(dd.DecodeInt(8))
  31831. if cr != nil {
  31832. cr.sendContainerState(containerMapValue)
  31833. }
  31834. mv = uint16(dd.DecodeUint(16))
  31835. if v != nil {
  31836. v[mk] = mv
  31837. }
  31838. }
  31839. }
  31840. if cr != nil {
  31841. cr.sendContainerState(containerMapEnd)
  31842. }
  31843. return v, changed
  31844. }
  31845. func (f *decFnInfo) fastpathDecMapInt8Uint32R(rv reflect.Value) {
  31846. if rv.CanAddr() {
  31847. vp := rv.Addr().Interface().(*map[int8]uint32)
  31848. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  31849. if changed {
  31850. *vp = v
  31851. }
  31852. } else {
  31853. v := rv.Interface().(map[int8]uint32)
  31854. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  31855. }
  31856. }
  31857. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, checkNil bool, d *Decoder) {
  31858. v, changed := f.DecMapInt8Uint32V(*vp, checkNil, true, d)
  31859. if changed {
  31860. *vp = v
  31861. }
  31862. }
  31863. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, checkNil bool, canChange bool,
  31864. d *Decoder) (_ map[int8]uint32, changed bool) {
  31865. dd := d.d
  31866. cr := d.cr
  31867. if checkNil && dd.TryDecodeAsNil() {
  31868. if v != nil {
  31869. changed = true
  31870. }
  31871. return nil, changed
  31872. }
  31873. containerLen := dd.ReadMapStart()
  31874. if canChange && v == nil {
  31875. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31876. v = make(map[int8]uint32, xlen)
  31877. changed = true
  31878. }
  31879. var mk int8
  31880. var mv uint32
  31881. if containerLen > 0 {
  31882. for j := 0; j < containerLen; j++ {
  31883. if cr != nil {
  31884. cr.sendContainerState(containerMapKey)
  31885. }
  31886. mk = int8(dd.DecodeInt(8))
  31887. if cr != nil {
  31888. cr.sendContainerState(containerMapValue)
  31889. }
  31890. mv = uint32(dd.DecodeUint(32))
  31891. if v != nil {
  31892. v[mk] = mv
  31893. }
  31894. }
  31895. } else if containerLen < 0 {
  31896. for j := 0; !dd.CheckBreak(); j++ {
  31897. if cr != nil {
  31898. cr.sendContainerState(containerMapKey)
  31899. }
  31900. mk = int8(dd.DecodeInt(8))
  31901. if cr != nil {
  31902. cr.sendContainerState(containerMapValue)
  31903. }
  31904. mv = uint32(dd.DecodeUint(32))
  31905. if v != nil {
  31906. v[mk] = mv
  31907. }
  31908. }
  31909. }
  31910. if cr != nil {
  31911. cr.sendContainerState(containerMapEnd)
  31912. }
  31913. return v, changed
  31914. }
  31915. func (f *decFnInfo) fastpathDecMapInt8Uint64R(rv reflect.Value) {
  31916. if rv.CanAddr() {
  31917. vp := rv.Addr().Interface().(*map[int8]uint64)
  31918. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  31919. if changed {
  31920. *vp = v
  31921. }
  31922. } else {
  31923. v := rv.Interface().(map[int8]uint64)
  31924. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  31925. }
  31926. }
  31927. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, checkNil bool, d *Decoder) {
  31928. v, changed := f.DecMapInt8Uint64V(*vp, checkNil, true, d)
  31929. if changed {
  31930. *vp = v
  31931. }
  31932. }
  31933. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, checkNil bool, canChange bool,
  31934. d *Decoder) (_ map[int8]uint64, changed bool) {
  31935. dd := d.d
  31936. cr := d.cr
  31937. if checkNil && dd.TryDecodeAsNil() {
  31938. if v != nil {
  31939. changed = true
  31940. }
  31941. return nil, changed
  31942. }
  31943. containerLen := dd.ReadMapStart()
  31944. if canChange && v == nil {
  31945. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31946. v = make(map[int8]uint64, xlen)
  31947. changed = true
  31948. }
  31949. var mk int8
  31950. var mv uint64
  31951. if containerLen > 0 {
  31952. for j := 0; j < containerLen; j++ {
  31953. if cr != nil {
  31954. cr.sendContainerState(containerMapKey)
  31955. }
  31956. mk = int8(dd.DecodeInt(8))
  31957. if cr != nil {
  31958. cr.sendContainerState(containerMapValue)
  31959. }
  31960. mv = dd.DecodeUint(64)
  31961. if v != nil {
  31962. v[mk] = mv
  31963. }
  31964. }
  31965. } else if containerLen < 0 {
  31966. for j := 0; !dd.CheckBreak(); j++ {
  31967. if cr != nil {
  31968. cr.sendContainerState(containerMapKey)
  31969. }
  31970. mk = int8(dd.DecodeInt(8))
  31971. if cr != nil {
  31972. cr.sendContainerState(containerMapValue)
  31973. }
  31974. mv = dd.DecodeUint(64)
  31975. if v != nil {
  31976. v[mk] = mv
  31977. }
  31978. }
  31979. }
  31980. if cr != nil {
  31981. cr.sendContainerState(containerMapEnd)
  31982. }
  31983. return v, changed
  31984. }
  31985. func (f *decFnInfo) fastpathDecMapInt8UintptrR(rv reflect.Value) {
  31986. if rv.CanAddr() {
  31987. vp := rv.Addr().Interface().(*map[int8]uintptr)
  31988. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  31989. if changed {
  31990. *vp = v
  31991. }
  31992. } else {
  31993. v := rv.Interface().(map[int8]uintptr)
  31994. fastpathTV.DecMapInt8UintptrV(v, fastpathCheckNilFalse, false, f.d)
  31995. }
  31996. }
  31997. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, checkNil bool, d *Decoder) {
  31998. v, changed := f.DecMapInt8UintptrV(*vp, checkNil, true, d)
  31999. if changed {
  32000. *vp = v
  32001. }
  32002. }
  32003. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, checkNil bool, canChange bool,
  32004. d *Decoder) (_ map[int8]uintptr, changed bool) {
  32005. dd := d.d
  32006. cr := d.cr
  32007. if checkNil && dd.TryDecodeAsNil() {
  32008. if v != nil {
  32009. changed = true
  32010. }
  32011. return nil, changed
  32012. }
  32013. containerLen := dd.ReadMapStart()
  32014. if canChange && v == nil {
  32015. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32016. v = make(map[int8]uintptr, xlen)
  32017. changed = true
  32018. }
  32019. var mk int8
  32020. var mv uintptr
  32021. if containerLen > 0 {
  32022. for j := 0; j < containerLen; j++ {
  32023. if cr != nil {
  32024. cr.sendContainerState(containerMapKey)
  32025. }
  32026. mk = int8(dd.DecodeInt(8))
  32027. if cr != nil {
  32028. cr.sendContainerState(containerMapValue)
  32029. }
  32030. mv = uintptr(dd.DecodeUint(uintBitsize))
  32031. if v != nil {
  32032. v[mk] = mv
  32033. }
  32034. }
  32035. } else if containerLen < 0 {
  32036. for j := 0; !dd.CheckBreak(); j++ {
  32037. if cr != nil {
  32038. cr.sendContainerState(containerMapKey)
  32039. }
  32040. mk = int8(dd.DecodeInt(8))
  32041. if cr != nil {
  32042. cr.sendContainerState(containerMapValue)
  32043. }
  32044. mv = uintptr(dd.DecodeUint(uintBitsize))
  32045. if v != nil {
  32046. v[mk] = mv
  32047. }
  32048. }
  32049. }
  32050. if cr != nil {
  32051. cr.sendContainerState(containerMapEnd)
  32052. }
  32053. return v, changed
  32054. }
  32055. func (f *decFnInfo) fastpathDecMapInt8IntR(rv reflect.Value) {
  32056. if rv.CanAddr() {
  32057. vp := rv.Addr().Interface().(*map[int8]int)
  32058. v, changed := fastpathTV.DecMapInt8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  32059. if changed {
  32060. *vp = v
  32061. }
  32062. } else {
  32063. v := rv.Interface().(map[int8]int)
  32064. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, f.d)
  32065. }
  32066. }
  32067. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, checkNil bool, d *Decoder) {
  32068. v, changed := f.DecMapInt8IntV(*vp, checkNil, true, d)
  32069. if changed {
  32070. *vp = v
  32071. }
  32072. }
  32073. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, checkNil bool, canChange bool,
  32074. d *Decoder) (_ map[int8]int, changed bool) {
  32075. dd := d.d
  32076. cr := d.cr
  32077. if checkNil && dd.TryDecodeAsNil() {
  32078. if v != nil {
  32079. changed = true
  32080. }
  32081. return nil, changed
  32082. }
  32083. containerLen := dd.ReadMapStart()
  32084. if canChange && v == nil {
  32085. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32086. v = make(map[int8]int, xlen)
  32087. changed = true
  32088. }
  32089. var mk int8
  32090. var mv int
  32091. if containerLen > 0 {
  32092. for j := 0; j < containerLen; j++ {
  32093. if cr != nil {
  32094. cr.sendContainerState(containerMapKey)
  32095. }
  32096. mk = int8(dd.DecodeInt(8))
  32097. if cr != nil {
  32098. cr.sendContainerState(containerMapValue)
  32099. }
  32100. mv = int(dd.DecodeInt(intBitsize))
  32101. if v != nil {
  32102. v[mk] = mv
  32103. }
  32104. }
  32105. } else if containerLen < 0 {
  32106. for j := 0; !dd.CheckBreak(); j++ {
  32107. if cr != nil {
  32108. cr.sendContainerState(containerMapKey)
  32109. }
  32110. mk = int8(dd.DecodeInt(8))
  32111. if cr != nil {
  32112. cr.sendContainerState(containerMapValue)
  32113. }
  32114. mv = int(dd.DecodeInt(intBitsize))
  32115. if v != nil {
  32116. v[mk] = mv
  32117. }
  32118. }
  32119. }
  32120. if cr != nil {
  32121. cr.sendContainerState(containerMapEnd)
  32122. }
  32123. return v, changed
  32124. }
  32125. func (f *decFnInfo) fastpathDecMapInt8Int8R(rv reflect.Value) {
  32126. if rv.CanAddr() {
  32127. vp := rv.Addr().Interface().(*map[int8]int8)
  32128. v, changed := fastpathTV.DecMapInt8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  32129. if changed {
  32130. *vp = v
  32131. }
  32132. } else {
  32133. v := rv.Interface().(map[int8]int8)
  32134. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, f.d)
  32135. }
  32136. }
  32137. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, checkNil bool, d *Decoder) {
  32138. v, changed := f.DecMapInt8Int8V(*vp, checkNil, true, d)
  32139. if changed {
  32140. *vp = v
  32141. }
  32142. }
  32143. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, checkNil bool, canChange bool,
  32144. d *Decoder) (_ map[int8]int8, changed bool) {
  32145. dd := d.d
  32146. cr := d.cr
  32147. if checkNil && dd.TryDecodeAsNil() {
  32148. if v != nil {
  32149. changed = true
  32150. }
  32151. return nil, changed
  32152. }
  32153. containerLen := dd.ReadMapStart()
  32154. if canChange && v == nil {
  32155. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  32156. v = make(map[int8]int8, xlen)
  32157. changed = true
  32158. }
  32159. var mk int8
  32160. var mv int8
  32161. if containerLen > 0 {
  32162. for j := 0; j < containerLen; j++ {
  32163. if cr != nil {
  32164. cr.sendContainerState(containerMapKey)
  32165. }
  32166. mk = int8(dd.DecodeInt(8))
  32167. if cr != nil {
  32168. cr.sendContainerState(containerMapValue)
  32169. }
  32170. mv = int8(dd.DecodeInt(8))
  32171. if v != nil {
  32172. v[mk] = mv
  32173. }
  32174. }
  32175. } else if containerLen < 0 {
  32176. for j := 0; !dd.CheckBreak(); j++ {
  32177. if cr != nil {
  32178. cr.sendContainerState(containerMapKey)
  32179. }
  32180. mk = int8(dd.DecodeInt(8))
  32181. if cr != nil {
  32182. cr.sendContainerState(containerMapValue)
  32183. }
  32184. mv = int8(dd.DecodeInt(8))
  32185. if v != nil {
  32186. v[mk] = mv
  32187. }
  32188. }
  32189. }
  32190. if cr != nil {
  32191. cr.sendContainerState(containerMapEnd)
  32192. }
  32193. return v, changed
  32194. }
  32195. func (f *decFnInfo) fastpathDecMapInt8Int16R(rv reflect.Value) {
  32196. if rv.CanAddr() {
  32197. vp := rv.Addr().Interface().(*map[int8]int16)
  32198. v, changed := fastpathTV.DecMapInt8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  32199. if changed {
  32200. *vp = v
  32201. }
  32202. } else {
  32203. v := rv.Interface().(map[int8]int16)
  32204. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, f.d)
  32205. }
  32206. }
  32207. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, checkNil bool, d *Decoder) {
  32208. v, changed := f.DecMapInt8Int16V(*vp, checkNil, true, d)
  32209. if changed {
  32210. *vp = v
  32211. }
  32212. }
  32213. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, checkNil bool, canChange bool,
  32214. d *Decoder) (_ map[int8]int16, changed bool) {
  32215. dd := d.d
  32216. cr := d.cr
  32217. if checkNil && dd.TryDecodeAsNil() {
  32218. if v != nil {
  32219. changed = true
  32220. }
  32221. return nil, changed
  32222. }
  32223. containerLen := dd.ReadMapStart()
  32224. if canChange && v == nil {
  32225. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  32226. v = make(map[int8]int16, xlen)
  32227. changed = true
  32228. }
  32229. var mk int8
  32230. var mv int16
  32231. if containerLen > 0 {
  32232. for j := 0; j < containerLen; j++ {
  32233. if cr != nil {
  32234. cr.sendContainerState(containerMapKey)
  32235. }
  32236. mk = int8(dd.DecodeInt(8))
  32237. if cr != nil {
  32238. cr.sendContainerState(containerMapValue)
  32239. }
  32240. mv = int16(dd.DecodeInt(16))
  32241. if v != nil {
  32242. v[mk] = mv
  32243. }
  32244. }
  32245. } else if containerLen < 0 {
  32246. for j := 0; !dd.CheckBreak(); j++ {
  32247. if cr != nil {
  32248. cr.sendContainerState(containerMapKey)
  32249. }
  32250. mk = int8(dd.DecodeInt(8))
  32251. if cr != nil {
  32252. cr.sendContainerState(containerMapValue)
  32253. }
  32254. mv = int16(dd.DecodeInt(16))
  32255. if v != nil {
  32256. v[mk] = mv
  32257. }
  32258. }
  32259. }
  32260. if cr != nil {
  32261. cr.sendContainerState(containerMapEnd)
  32262. }
  32263. return v, changed
  32264. }
  32265. func (f *decFnInfo) fastpathDecMapInt8Int32R(rv reflect.Value) {
  32266. if rv.CanAddr() {
  32267. vp := rv.Addr().Interface().(*map[int8]int32)
  32268. v, changed := fastpathTV.DecMapInt8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  32269. if changed {
  32270. *vp = v
  32271. }
  32272. } else {
  32273. v := rv.Interface().(map[int8]int32)
  32274. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, f.d)
  32275. }
  32276. }
  32277. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, checkNil bool, d *Decoder) {
  32278. v, changed := f.DecMapInt8Int32V(*vp, checkNil, true, d)
  32279. if changed {
  32280. *vp = v
  32281. }
  32282. }
  32283. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, checkNil bool, canChange bool,
  32284. d *Decoder) (_ map[int8]int32, changed bool) {
  32285. dd := d.d
  32286. cr := d.cr
  32287. if checkNil && dd.TryDecodeAsNil() {
  32288. if v != nil {
  32289. changed = true
  32290. }
  32291. return nil, changed
  32292. }
  32293. containerLen := dd.ReadMapStart()
  32294. if canChange && v == nil {
  32295. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32296. v = make(map[int8]int32, xlen)
  32297. changed = true
  32298. }
  32299. var mk int8
  32300. var mv int32
  32301. if containerLen > 0 {
  32302. for j := 0; j < containerLen; j++ {
  32303. if cr != nil {
  32304. cr.sendContainerState(containerMapKey)
  32305. }
  32306. mk = int8(dd.DecodeInt(8))
  32307. if cr != nil {
  32308. cr.sendContainerState(containerMapValue)
  32309. }
  32310. mv = int32(dd.DecodeInt(32))
  32311. if v != nil {
  32312. v[mk] = mv
  32313. }
  32314. }
  32315. } else if containerLen < 0 {
  32316. for j := 0; !dd.CheckBreak(); j++ {
  32317. if cr != nil {
  32318. cr.sendContainerState(containerMapKey)
  32319. }
  32320. mk = int8(dd.DecodeInt(8))
  32321. if cr != nil {
  32322. cr.sendContainerState(containerMapValue)
  32323. }
  32324. mv = int32(dd.DecodeInt(32))
  32325. if v != nil {
  32326. v[mk] = mv
  32327. }
  32328. }
  32329. }
  32330. if cr != nil {
  32331. cr.sendContainerState(containerMapEnd)
  32332. }
  32333. return v, changed
  32334. }
  32335. func (f *decFnInfo) fastpathDecMapInt8Int64R(rv reflect.Value) {
  32336. if rv.CanAddr() {
  32337. vp := rv.Addr().Interface().(*map[int8]int64)
  32338. v, changed := fastpathTV.DecMapInt8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  32339. if changed {
  32340. *vp = v
  32341. }
  32342. } else {
  32343. v := rv.Interface().(map[int8]int64)
  32344. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, f.d)
  32345. }
  32346. }
  32347. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, checkNil bool, d *Decoder) {
  32348. v, changed := f.DecMapInt8Int64V(*vp, checkNil, true, d)
  32349. if changed {
  32350. *vp = v
  32351. }
  32352. }
  32353. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, checkNil bool, canChange bool,
  32354. d *Decoder) (_ map[int8]int64, changed bool) {
  32355. dd := d.d
  32356. cr := d.cr
  32357. if checkNil && dd.TryDecodeAsNil() {
  32358. if v != nil {
  32359. changed = true
  32360. }
  32361. return nil, changed
  32362. }
  32363. containerLen := dd.ReadMapStart()
  32364. if canChange && v == nil {
  32365. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32366. v = make(map[int8]int64, xlen)
  32367. changed = true
  32368. }
  32369. var mk int8
  32370. var mv int64
  32371. if containerLen > 0 {
  32372. for j := 0; j < containerLen; j++ {
  32373. if cr != nil {
  32374. cr.sendContainerState(containerMapKey)
  32375. }
  32376. mk = int8(dd.DecodeInt(8))
  32377. if cr != nil {
  32378. cr.sendContainerState(containerMapValue)
  32379. }
  32380. mv = dd.DecodeInt(64)
  32381. if v != nil {
  32382. v[mk] = mv
  32383. }
  32384. }
  32385. } else if containerLen < 0 {
  32386. for j := 0; !dd.CheckBreak(); j++ {
  32387. if cr != nil {
  32388. cr.sendContainerState(containerMapKey)
  32389. }
  32390. mk = int8(dd.DecodeInt(8))
  32391. if cr != nil {
  32392. cr.sendContainerState(containerMapValue)
  32393. }
  32394. mv = dd.DecodeInt(64)
  32395. if v != nil {
  32396. v[mk] = mv
  32397. }
  32398. }
  32399. }
  32400. if cr != nil {
  32401. cr.sendContainerState(containerMapEnd)
  32402. }
  32403. return v, changed
  32404. }
  32405. func (f *decFnInfo) fastpathDecMapInt8Float32R(rv reflect.Value) {
  32406. if rv.CanAddr() {
  32407. vp := rv.Addr().Interface().(*map[int8]float32)
  32408. v, changed := fastpathTV.DecMapInt8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  32409. if changed {
  32410. *vp = v
  32411. }
  32412. } else {
  32413. v := rv.Interface().(map[int8]float32)
  32414. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, f.d)
  32415. }
  32416. }
  32417. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, checkNil bool, d *Decoder) {
  32418. v, changed := f.DecMapInt8Float32V(*vp, checkNil, true, d)
  32419. if changed {
  32420. *vp = v
  32421. }
  32422. }
  32423. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, checkNil bool, canChange bool,
  32424. d *Decoder) (_ map[int8]float32, changed bool) {
  32425. dd := d.d
  32426. cr := d.cr
  32427. if checkNil && dd.TryDecodeAsNil() {
  32428. if v != nil {
  32429. changed = true
  32430. }
  32431. return nil, changed
  32432. }
  32433. containerLen := dd.ReadMapStart()
  32434. if canChange && v == nil {
  32435. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32436. v = make(map[int8]float32, xlen)
  32437. changed = true
  32438. }
  32439. var mk int8
  32440. var mv float32
  32441. if containerLen > 0 {
  32442. for j := 0; j < containerLen; j++ {
  32443. if cr != nil {
  32444. cr.sendContainerState(containerMapKey)
  32445. }
  32446. mk = int8(dd.DecodeInt(8))
  32447. if cr != nil {
  32448. cr.sendContainerState(containerMapValue)
  32449. }
  32450. mv = float32(dd.DecodeFloat(true))
  32451. if v != nil {
  32452. v[mk] = mv
  32453. }
  32454. }
  32455. } else if containerLen < 0 {
  32456. for j := 0; !dd.CheckBreak(); j++ {
  32457. if cr != nil {
  32458. cr.sendContainerState(containerMapKey)
  32459. }
  32460. mk = int8(dd.DecodeInt(8))
  32461. if cr != nil {
  32462. cr.sendContainerState(containerMapValue)
  32463. }
  32464. mv = float32(dd.DecodeFloat(true))
  32465. if v != nil {
  32466. v[mk] = mv
  32467. }
  32468. }
  32469. }
  32470. if cr != nil {
  32471. cr.sendContainerState(containerMapEnd)
  32472. }
  32473. return v, changed
  32474. }
  32475. func (f *decFnInfo) fastpathDecMapInt8Float64R(rv reflect.Value) {
  32476. if rv.CanAddr() {
  32477. vp := rv.Addr().Interface().(*map[int8]float64)
  32478. v, changed := fastpathTV.DecMapInt8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  32479. if changed {
  32480. *vp = v
  32481. }
  32482. } else {
  32483. v := rv.Interface().(map[int8]float64)
  32484. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, f.d)
  32485. }
  32486. }
  32487. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, checkNil bool, d *Decoder) {
  32488. v, changed := f.DecMapInt8Float64V(*vp, checkNil, true, d)
  32489. if changed {
  32490. *vp = v
  32491. }
  32492. }
  32493. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, checkNil bool, canChange bool,
  32494. d *Decoder) (_ map[int8]float64, changed bool) {
  32495. dd := d.d
  32496. cr := d.cr
  32497. if checkNil && dd.TryDecodeAsNil() {
  32498. if v != nil {
  32499. changed = true
  32500. }
  32501. return nil, changed
  32502. }
  32503. containerLen := dd.ReadMapStart()
  32504. if canChange && v == nil {
  32505. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32506. v = make(map[int8]float64, xlen)
  32507. changed = true
  32508. }
  32509. var mk int8
  32510. var mv float64
  32511. if containerLen > 0 {
  32512. for j := 0; j < containerLen; j++ {
  32513. if cr != nil {
  32514. cr.sendContainerState(containerMapKey)
  32515. }
  32516. mk = int8(dd.DecodeInt(8))
  32517. if cr != nil {
  32518. cr.sendContainerState(containerMapValue)
  32519. }
  32520. mv = dd.DecodeFloat(false)
  32521. if v != nil {
  32522. v[mk] = mv
  32523. }
  32524. }
  32525. } else if containerLen < 0 {
  32526. for j := 0; !dd.CheckBreak(); j++ {
  32527. if cr != nil {
  32528. cr.sendContainerState(containerMapKey)
  32529. }
  32530. mk = int8(dd.DecodeInt(8))
  32531. if cr != nil {
  32532. cr.sendContainerState(containerMapValue)
  32533. }
  32534. mv = dd.DecodeFloat(false)
  32535. if v != nil {
  32536. v[mk] = mv
  32537. }
  32538. }
  32539. }
  32540. if cr != nil {
  32541. cr.sendContainerState(containerMapEnd)
  32542. }
  32543. return v, changed
  32544. }
  32545. func (f *decFnInfo) fastpathDecMapInt8BoolR(rv reflect.Value) {
  32546. if rv.CanAddr() {
  32547. vp := rv.Addr().Interface().(*map[int8]bool)
  32548. v, changed := fastpathTV.DecMapInt8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  32549. if changed {
  32550. *vp = v
  32551. }
  32552. } else {
  32553. v := rv.Interface().(map[int8]bool)
  32554. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, f.d)
  32555. }
  32556. }
  32557. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, checkNil bool, d *Decoder) {
  32558. v, changed := f.DecMapInt8BoolV(*vp, checkNil, true, d)
  32559. if changed {
  32560. *vp = v
  32561. }
  32562. }
  32563. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, checkNil bool, canChange bool,
  32564. d *Decoder) (_ map[int8]bool, changed bool) {
  32565. dd := d.d
  32566. cr := d.cr
  32567. if checkNil && dd.TryDecodeAsNil() {
  32568. if v != nil {
  32569. changed = true
  32570. }
  32571. return nil, changed
  32572. }
  32573. containerLen := dd.ReadMapStart()
  32574. if canChange && v == nil {
  32575. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  32576. v = make(map[int8]bool, xlen)
  32577. changed = true
  32578. }
  32579. var mk int8
  32580. var mv bool
  32581. if containerLen > 0 {
  32582. for j := 0; j < containerLen; j++ {
  32583. if cr != nil {
  32584. cr.sendContainerState(containerMapKey)
  32585. }
  32586. mk = int8(dd.DecodeInt(8))
  32587. if cr != nil {
  32588. cr.sendContainerState(containerMapValue)
  32589. }
  32590. mv = dd.DecodeBool()
  32591. if v != nil {
  32592. v[mk] = mv
  32593. }
  32594. }
  32595. } else if containerLen < 0 {
  32596. for j := 0; !dd.CheckBreak(); j++ {
  32597. if cr != nil {
  32598. cr.sendContainerState(containerMapKey)
  32599. }
  32600. mk = int8(dd.DecodeInt(8))
  32601. if cr != nil {
  32602. cr.sendContainerState(containerMapValue)
  32603. }
  32604. mv = dd.DecodeBool()
  32605. if v != nil {
  32606. v[mk] = mv
  32607. }
  32608. }
  32609. }
  32610. if cr != nil {
  32611. cr.sendContainerState(containerMapEnd)
  32612. }
  32613. return v, changed
  32614. }
  32615. func (f *decFnInfo) fastpathDecMapInt16IntfR(rv reflect.Value) {
  32616. if rv.CanAddr() {
  32617. vp := rv.Addr().Interface().(*map[int16]interface{})
  32618. v, changed := fastpathTV.DecMapInt16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  32619. if changed {
  32620. *vp = v
  32621. }
  32622. } else {
  32623. v := rv.Interface().(map[int16]interface{})
  32624. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, f.d)
  32625. }
  32626. }
  32627. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, checkNil bool, d *Decoder) {
  32628. v, changed := f.DecMapInt16IntfV(*vp, checkNil, true, d)
  32629. if changed {
  32630. *vp = v
  32631. }
  32632. }
  32633. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, checkNil bool, canChange bool,
  32634. d *Decoder) (_ map[int16]interface{}, changed bool) {
  32635. dd := d.d
  32636. cr := d.cr
  32637. if checkNil && dd.TryDecodeAsNil() {
  32638. if v != nil {
  32639. changed = true
  32640. }
  32641. return nil, changed
  32642. }
  32643. containerLen := dd.ReadMapStart()
  32644. if canChange && v == nil {
  32645. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  32646. v = make(map[int16]interface{}, xlen)
  32647. changed = true
  32648. }
  32649. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  32650. var mk int16
  32651. var mv interface{}
  32652. if containerLen > 0 {
  32653. for j := 0; j < containerLen; j++ {
  32654. if cr != nil {
  32655. cr.sendContainerState(containerMapKey)
  32656. }
  32657. mk = int16(dd.DecodeInt(16))
  32658. if cr != nil {
  32659. cr.sendContainerState(containerMapValue)
  32660. }
  32661. if mapGet {
  32662. mv = v[mk]
  32663. } else {
  32664. mv = nil
  32665. }
  32666. d.decode(&mv)
  32667. if v != nil {
  32668. v[mk] = mv
  32669. }
  32670. }
  32671. } else if containerLen < 0 {
  32672. for j := 0; !dd.CheckBreak(); j++ {
  32673. if cr != nil {
  32674. cr.sendContainerState(containerMapKey)
  32675. }
  32676. mk = int16(dd.DecodeInt(16))
  32677. if cr != nil {
  32678. cr.sendContainerState(containerMapValue)
  32679. }
  32680. if mapGet {
  32681. mv = v[mk]
  32682. } else {
  32683. mv = nil
  32684. }
  32685. d.decode(&mv)
  32686. if v != nil {
  32687. v[mk] = mv
  32688. }
  32689. }
  32690. }
  32691. if cr != nil {
  32692. cr.sendContainerState(containerMapEnd)
  32693. }
  32694. return v, changed
  32695. }
  32696. func (f *decFnInfo) fastpathDecMapInt16StringR(rv reflect.Value) {
  32697. if rv.CanAddr() {
  32698. vp := rv.Addr().Interface().(*map[int16]string)
  32699. v, changed := fastpathTV.DecMapInt16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  32700. if changed {
  32701. *vp = v
  32702. }
  32703. } else {
  32704. v := rv.Interface().(map[int16]string)
  32705. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, f.d)
  32706. }
  32707. }
  32708. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, checkNil bool, d *Decoder) {
  32709. v, changed := f.DecMapInt16StringV(*vp, checkNil, true, d)
  32710. if changed {
  32711. *vp = v
  32712. }
  32713. }
  32714. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, checkNil bool, canChange bool,
  32715. d *Decoder) (_ map[int16]string, changed bool) {
  32716. dd := d.d
  32717. cr := d.cr
  32718. if checkNil && dd.TryDecodeAsNil() {
  32719. if v != nil {
  32720. changed = true
  32721. }
  32722. return nil, changed
  32723. }
  32724. containerLen := dd.ReadMapStart()
  32725. if canChange && v == nil {
  32726. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  32727. v = make(map[int16]string, xlen)
  32728. changed = true
  32729. }
  32730. var mk int16
  32731. var mv string
  32732. if containerLen > 0 {
  32733. for j := 0; j < containerLen; j++ {
  32734. if cr != nil {
  32735. cr.sendContainerState(containerMapKey)
  32736. }
  32737. mk = int16(dd.DecodeInt(16))
  32738. if cr != nil {
  32739. cr.sendContainerState(containerMapValue)
  32740. }
  32741. mv = dd.DecodeString()
  32742. if v != nil {
  32743. v[mk] = mv
  32744. }
  32745. }
  32746. } else if containerLen < 0 {
  32747. for j := 0; !dd.CheckBreak(); j++ {
  32748. if cr != nil {
  32749. cr.sendContainerState(containerMapKey)
  32750. }
  32751. mk = int16(dd.DecodeInt(16))
  32752. if cr != nil {
  32753. cr.sendContainerState(containerMapValue)
  32754. }
  32755. mv = dd.DecodeString()
  32756. if v != nil {
  32757. v[mk] = mv
  32758. }
  32759. }
  32760. }
  32761. if cr != nil {
  32762. cr.sendContainerState(containerMapEnd)
  32763. }
  32764. return v, changed
  32765. }
  32766. func (f *decFnInfo) fastpathDecMapInt16UintR(rv reflect.Value) {
  32767. if rv.CanAddr() {
  32768. vp := rv.Addr().Interface().(*map[int16]uint)
  32769. v, changed := fastpathTV.DecMapInt16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  32770. if changed {
  32771. *vp = v
  32772. }
  32773. } else {
  32774. v := rv.Interface().(map[int16]uint)
  32775. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, f.d)
  32776. }
  32777. }
  32778. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, checkNil bool, d *Decoder) {
  32779. v, changed := f.DecMapInt16UintV(*vp, checkNil, true, d)
  32780. if changed {
  32781. *vp = v
  32782. }
  32783. }
  32784. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, checkNil bool, canChange bool,
  32785. d *Decoder) (_ map[int16]uint, changed bool) {
  32786. dd := d.d
  32787. cr := d.cr
  32788. if checkNil && dd.TryDecodeAsNil() {
  32789. if v != nil {
  32790. changed = true
  32791. }
  32792. return nil, changed
  32793. }
  32794. containerLen := dd.ReadMapStart()
  32795. if canChange && v == nil {
  32796. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32797. v = make(map[int16]uint, xlen)
  32798. changed = true
  32799. }
  32800. var mk int16
  32801. var mv uint
  32802. if containerLen > 0 {
  32803. for j := 0; j < containerLen; j++ {
  32804. if cr != nil {
  32805. cr.sendContainerState(containerMapKey)
  32806. }
  32807. mk = int16(dd.DecodeInt(16))
  32808. if cr != nil {
  32809. cr.sendContainerState(containerMapValue)
  32810. }
  32811. mv = uint(dd.DecodeUint(uintBitsize))
  32812. if v != nil {
  32813. v[mk] = mv
  32814. }
  32815. }
  32816. } else if containerLen < 0 {
  32817. for j := 0; !dd.CheckBreak(); j++ {
  32818. if cr != nil {
  32819. cr.sendContainerState(containerMapKey)
  32820. }
  32821. mk = int16(dd.DecodeInt(16))
  32822. if cr != nil {
  32823. cr.sendContainerState(containerMapValue)
  32824. }
  32825. mv = uint(dd.DecodeUint(uintBitsize))
  32826. if v != nil {
  32827. v[mk] = mv
  32828. }
  32829. }
  32830. }
  32831. if cr != nil {
  32832. cr.sendContainerState(containerMapEnd)
  32833. }
  32834. return v, changed
  32835. }
  32836. func (f *decFnInfo) fastpathDecMapInt16Uint8R(rv reflect.Value) {
  32837. if rv.CanAddr() {
  32838. vp := rv.Addr().Interface().(*map[int16]uint8)
  32839. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  32840. if changed {
  32841. *vp = v
  32842. }
  32843. } else {
  32844. v := rv.Interface().(map[int16]uint8)
  32845. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  32846. }
  32847. }
  32848. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, checkNil bool, d *Decoder) {
  32849. v, changed := f.DecMapInt16Uint8V(*vp, checkNil, true, d)
  32850. if changed {
  32851. *vp = v
  32852. }
  32853. }
  32854. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, checkNil bool, canChange bool,
  32855. d *Decoder) (_ map[int16]uint8, changed bool) {
  32856. dd := d.d
  32857. cr := d.cr
  32858. if checkNil && dd.TryDecodeAsNil() {
  32859. if v != nil {
  32860. changed = true
  32861. }
  32862. return nil, changed
  32863. }
  32864. containerLen := dd.ReadMapStart()
  32865. if canChange && v == nil {
  32866. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  32867. v = make(map[int16]uint8, xlen)
  32868. changed = true
  32869. }
  32870. var mk int16
  32871. var mv uint8
  32872. if containerLen > 0 {
  32873. for j := 0; j < containerLen; j++ {
  32874. if cr != nil {
  32875. cr.sendContainerState(containerMapKey)
  32876. }
  32877. mk = int16(dd.DecodeInt(16))
  32878. if cr != nil {
  32879. cr.sendContainerState(containerMapValue)
  32880. }
  32881. mv = uint8(dd.DecodeUint(8))
  32882. if v != nil {
  32883. v[mk] = mv
  32884. }
  32885. }
  32886. } else if containerLen < 0 {
  32887. for j := 0; !dd.CheckBreak(); j++ {
  32888. if cr != nil {
  32889. cr.sendContainerState(containerMapKey)
  32890. }
  32891. mk = int16(dd.DecodeInt(16))
  32892. if cr != nil {
  32893. cr.sendContainerState(containerMapValue)
  32894. }
  32895. mv = uint8(dd.DecodeUint(8))
  32896. if v != nil {
  32897. v[mk] = mv
  32898. }
  32899. }
  32900. }
  32901. if cr != nil {
  32902. cr.sendContainerState(containerMapEnd)
  32903. }
  32904. return v, changed
  32905. }
  32906. func (f *decFnInfo) fastpathDecMapInt16Uint16R(rv reflect.Value) {
  32907. if rv.CanAddr() {
  32908. vp := rv.Addr().Interface().(*map[int16]uint16)
  32909. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  32910. if changed {
  32911. *vp = v
  32912. }
  32913. } else {
  32914. v := rv.Interface().(map[int16]uint16)
  32915. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  32916. }
  32917. }
  32918. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, checkNil bool, d *Decoder) {
  32919. v, changed := f.DecMapInt16Uint16V(*vp, checkNil, true, d)
  32920. if changed {
  32921. *vp = v
  32922. }
  32923. }
  32924. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, checkNil bool, canChange bool,
  32925. d *Decoder) (_ map[int16]uint16, changed bool) {
  32926. dd := d.d
  32927. cr := d.cr
  32928. if checkNil && dd.TryDecodeAsNil() {
  32929. if v != nil {
  32930. changed = true
  32931. }
  32932. return nil, changed
  32933. }
  32934. containerLen := dd.ReadMapStart()
  32935. if canChange && v == nil {
  32936. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  32937. v = make(map[int16]uint16, xlen)
  32938. changed = true
  32939. }
  32940. var mk int16
  32941. var mv uint16
  32942. if containerLen > 0 {
  32943. for j := 0; j < containerLen; j++ {
  32944. if cr != nil {
  32945. cr.sendContainerState(containerMapKey)
  32946. }
  32947. mk = int16(dd.DecodeInt(16))
  32948. if cr != nil {
  32949. cr.sendContainerState(containerMapValue)
  32950. }
  32951. mv = uint16(dd.DecodeUint(16))
  32952. if v != nil {
  32953. v[mk] = mv
  32954. }
  32955. }
  32956. } else if containerLen < 0 {
  32957. for j := 0; !dd.CheckBreak(); j++ {
  32958. if cr != nil {
  32959. cr.sendContainerState(containerMapKey)
  32960. }
  32961. mk = int16(dd.DecodeInt(16))
  32962. if cr != nil {
  32963. cr.sendContainerState(containerMapValue)
  32964. }
  32965. mv = uint16(dd.DecodeUint(16))
  32966. if v != nil {
  32967. v[mk] = mv
  32968. }
  32969. }
  32970. }
  32971. if cr != nil {
  32972. cr.sendContainerState(containerMapEnd)
  32973. }
  32974. return v, changed
  32975. }
  32976. func (f *decFnInfo) fastpathDecMapInt16Uint32R(rv reflect.Value) {
  32977. if rv.CanAddr() {
  32978. vp := rv.Addr().Interface().(*map[int16]uint32)
  32979. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  32980. if changed {
  32981. *vp = v
  32982. }
  32983. } else {
  32984. v := rv.Interface().(map[int16]uint32)
  32985. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  32986. }
  32987. }
  32988. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, checkNil bool, d *Decoder) {
  32989. v, changed := f.DecMapInt16Uint32V(*vp, checkNil, true, d)
  32990. if changed {
  32991. *vp = v
  32992. }
  32993. }
  32994. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, checkNil bool, canChange bool,
  32995. d *Decoder) (_ map[int16]uint32, changed bool) {
  32996. dd := d.d
  32997. cr := d.cr
  32998. if checkNil && dd.TryDecodeAsNil() {
  32999. if v != nil {
  33000. changed = true
  33001. }
  33002. return nil, changed
  33003. }
  33004. containerLen := dd.ReadMapStart()
  33005. if canChange && v == nil {
  33006. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  33007. v = make(map[int16]uint32, xlen)
  33008. changed = true
  33009. }
  33010. var mk int16
  33011. var mv uint32
  33012. if containerLen > 0 {
  33013. for j := 0; j < containerLen; j++ {
  33014. if cr != nil {
  33015. cr.sendContainerState(containerMapKey)
  33016. }
  33017. mk = int16(dd.DecodeInt(16))
  33018. if cr != nil {
  33019. cr.sendContainerState(containerMapValue)
  33020. }
  33021. mv = uint32(dd.DecodeUint(32))
  33022. if v != nil {
  33023. v[mk] = mv
  33024. }
  33025. }
  33026. } else if containerLen < 0 {
  33027. for j := 0; !dd.CheckBreak(); j++ {
  33028. if cr != nil {
  33029. cr.sendContainerState(containerMapKey)
  33030. }
  33031. mk = int16(dd.DecodeInt(16))
  33032. if cr != nil {
  33033. cr.sendContainerState(containerMapValue)
  33034. }
  33035. mv = uint32(dd.DecodeUint(32))
  33036. if v != nil {
  33037. v[mk] = mv
  33038. }
  33039. }
  33040. }
  33041. if cr != nil {
  33042. cr.sendContainerState(containerMapEnd)
  33043. }
  33044. return v, changed
  33045. }
  33046. func (f *decFnInfo) fastpathDecMapInt16Uint64R(rv reflect.Value) {
  33047. if rv.CanAddr() {
  33048. vp := rv.Addr().Interface().(*map[int16]uint64)
  33049. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  33050. if changed {
  33051. *vp = v
  33052. }
  33053. } else {
  33054. v := rv.Interface().(map[int16]uint64)
  33055. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  33056. }
  33057. }
  33058. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, checkNil bool, d *Decoder) {
  33059. v, changed := f.DecMapInt16Uint64V(*vp, checkNil, true, d)
  33060. if changed {
  33061. *vp = v
  33062. }
  33063. }
  33064. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, checkNil bool, canChange bool,
  33065. d *Decoder) (_ map[int16]uint64, changed bool) {
  33066. dd := d.d
  33067. cr := d.cr
  33068. if checkNil && dd.TryDecodeAsNil() {
  33069. if v != nil {
  33070. changed = true
  33071. }
  33072. return nil, changed
  33073. }
  33074. containerLen := dd.ReadMapStart()
  33075. if canChange && v == nil {
  33076. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33077. v = make(map[int16]uint64, xlen)
  33078. changed = true
  33079. }
  33080. var mk int16
  33081. var mv uint64
  33082. if containerLen > 0 {
  33083. for j := 0; j < containerLen; j++ {
  33084. if cr != nil {
  33085. cr.sendContainerState(containerMapKey)
  33086. }
  33087. mk = int16(dd.DecodeInt(16))
  33088. if cr != nil {
  33089. cr.sendContainerState(containerMapValue)
  33090. }
  33091. mv = dd.DecodeUint(64)
  33092. if v != nil {
  33093. v[mk] = mv
  33094. }
  33095. }
  33096. } else if containerLen < 0 {
  33097. for j := 0; !dd.CheckBreak(); j++ {
  33098. if cr != nil {
  33099. cr.sendContainerState(containerMapKey)
  33100. }
  33101. mk = int16(dd.DecodeInt(16))
  33102. if cr != nil {
  33103. cr.sendContainerState(containerMapValue)
  33104. }
  33105. mv = dd.DecodeUint(64)
  33106. if v != nil {
  33107. v[mk] = mv
  33108. }
  33109. }
  33110. }
  33111. if cr != nil {
  33112. cr.sendContainerState(containerMapEnd)
  33113. }
  33114. return v, changed
  33115. }
  33116. func (f *decFnInfo) fastpathDecMapInt16UintptrR(rv reflect.Value) {
  33117. if rv.CanAddr() {
  33118. vp := rv.Addr().Interface().(*map[int16]uintptr)
  33119. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  33120. if changed {
  33121. *vp = v
  33122. }
  33123. } else {
  33124. v := rv.Interface().(map[int16]uintptr)
  33125. fastpathTV.DecMapInt16UintptrV(v, fastpathCheckNilFalse, false, f.d)
  33126. }
  33127. }
  33128. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, checkNil bool, d *Decoder) {
  33129. v, changed := f.DecMapInt16UintptrV(*vp, checkNil, true, d)
  33130. if changed {
  33131. *vp = v
  33132. }
  33133. }
  33134. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, checkNil bool, canChange bool,
  33135. d *Decoder) (_ map[int16]uintptr, changed bool) {
  33136. dd := d.d
  33137. cr := d.cr
  33138. if checkNil && dd.TryDecodeAsNil() {
  33139. if v != nil {
  33140. changed = true
  33141. }
  33142. return nil, changed
  33143. }
  33144. containerLen := dd.ReadMapStart()
  33145. if canChange && v == nil {
  33146. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33147. v = make(map[int16]uintptr, xlen)
  33148. changed = true
  33149. }
  33150. var mk int16
  33151. var mv uintptr
  33152. if containerLen > 0 {
  33153. for j := 0; j < containerLen; j++ {
  33154. if cr != nil {
  33155. cr.sendContainerState(containerMapKey)
  33156. }
  33157. mk = int16(dd.DecodeInt(16))
  33158. if cr != nil {
  33159. cr.sendContainerState(containerMapValue)
  33160. }
  33161. mv = uintptr(dd.DecodeUint(uintBitsize))
  33162. if v != nil {
  33163. v[mk] = mv
  33164. }
  33165. }
  33166. } else if containerLen < 0 {
  33167. for j := 0; !dd.CheckBreak(); j++ {
  33168. if cr != nil {
  33169. cr.sendContainerState(containerMapKey)
  33170. }
  33171. mk = int16(dd.DecodeInt(16))
  33172. if cr != nil {
  33173. cr.sendContainerState(containerMapValue)
  33174. }
  33175. mv = uintptr(dd.DecodeUint(uintBitsize))
  33176. if v != nil {
  33177. v[mk] = mv
  33178. }
  33179. }
  33180. }
  33181. if cr != nil {
  33182. cr.sendContainerState(containerMapEnd)
  33183. }
  33184. return v, changed
  33185. }
  33186. func (f *decFnInfo) fastpathDecMapInt16IntR(rv reflect.Value) {
  33187. if rv.CanAddr() {
  33188. vp := rv.Addr().Interface().(*map[int16]int)
  33189. v, changed := fastpathTV.DecMapInt16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  33190. if changed {
  33191. *vp = v
  33192. }
  33193. } else {
  33194. v := rv.Interface().(map[int16]int)
  33195. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, f.d)
  33196. }
  33197. }
  33198. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, checkNil bool, d *Decoder) {
  33199. v, changed := f.DecMapInt16IntV(*vp, checkNil, true, d)
  33200. if changed {
  33201. *vp = v
  33202. }
  33203. }
  33204. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, checkNil bool, canChange bool,
  33205. d *Decoder) (_ map[int16]int, changed bool) {
  33206. dd := d.d
  33207. cr := d.cr
  33208. if checkNil && dd.TryDecodeAsNil() {
  33209. if v != nil {
  33210. changed = true
  33211. }
  33212. return nil, changed
  33213. }
  33214. containerLen := dd.ReadMapStart()
  33215. if canChange && v == nil {
  33216. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33217. v = make(map[int16]int, xlen)
  33218. changed = true
  33219. }
  33220. var mk int16
  33221. var mv int
  33222. if containerLen > 0 {
  33223. for j := 0; j < containerLen; j++ {
  33224. if cr != nil {
  33225. cr.sendContainerState(containerMapKey)
  33226. }
  33227. mk = int16(dd.DecodeInt(16))
  33228. if cr != nil {
  33229. cr.sendContainerState(containerMapValue)
  33230. }
  33231. mv = int(dd.DecodeInt(intBitsize))
  33232. if v != nil {
  33233. v[mk] = mv
  33234. }
  33235. }
  33236. } else if containerLen < 0 {
  33237. for j := 0; !dd.CheckBreak(); j++ {
  33238. if cr != nil {
  33239. cr.sendContainerState(containerMapKey)
  33240. }
  33241. mk = int16(dd.DecodeInt(16))
  33242. if cr != nil {
  33243. cr.sendContainerState(containerMapValue)
  33244. }
  33245. mv = int(dd.DecodeInt(intBitsize))
  33246. if v != nil {
  33247. v[mk] = mv
  33248. }
  33249. }
  33250. }
  33251. if cr != nil {
  33252. cr.sendContainerState(containerMapEnd)
  33253. }
  33254. return v, changed
  33255. }
  33256. func (f *decFnInfo) fastpathDecMapInt16Int8R(rv reflect.Value) {
  33257. if rv.CanAddr() {
  33258. vp := rv.Addr().Interface().(*map[int16]int8)
  33259. v, changed := fastpathTV.DecMapInt16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  33260. if changed {
  33261. *vp = v
  33262. }
  33263. } else {
  33264. v := rv.Interface().(map[int16]int8)
  33265. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, f.d)
  33266. }
  33267. }
  33268. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, checkNil bool, d *Decoder) {
  33269. v, changed := f.DecMapInt16Int8V(*vp, checkNil, true, d)
  33270. if changed {
  33271. *vp = v
  33272. }
  33273. }
  33274. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, checkNil bool, canChange bool,
  33275. d *Decoder) (_ map[int16]int8, changed bool) {
  33276. dd := d.d
  33277. cr := d.cr
  33278. if checkNil && dd.TryDecodeAsNil() {
  33279. if v != nil {
  33280. changed = true
  33281. }
  33282. return nil, changed
  33283. }
  33284. containerLen := dd.ReadMapStart()
  33285. if canChange && v == nil {
  33286. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33287. v = make(map[int16]int8, xlen)
  33288. changed = true
  33289. }
  33290. var mk int16
  33291. var mv int8
  33292. if containerLen > 0 {
  33293. for j := 0; j < containerLen; j++ {
  33294. if cr != nil {
  33295. cr.sendContainerState(containerMapKey)
  33296. }
  33297. mk = int16(dd.DecodeInt(16))
  33298. if cr != nil {
  33299. cr.sendContainerState(containerMapValue)
  33300. }
  33301. mv = int8(dd.DecodeInt(8))
  33302. if v != nil {
  33303. v[mk] = mv
  33304. }
  33305. }
  33306. } else if containerLen < 0 {
  33307. for j := 0; !dd.CheckBreak(); j++ {
  33308. if cr != nil {
  33309. cr.sendContainerState(containerMapKey)
  33310. }
  33311. mk = int16(dd.DecodeInt(16))
  33312. if cr != nil {
  33313. cr.sendContainerState(containerMapValue)
  33314. }
  33315. mv = int8(dd.DecodeInt(8))
  33316. if v != nil {
  33317. v[mk] = mv
  33318. }
  33319. }
  33320. }
  33321. if cr != nil {
  33322. cr.sendContainerState(containerMapEnd)
  33323. }
  33324. return v, changed
  33325. }
  33326. func (f *decFnInfo) fastpathDecMapInt16Int16R(rv reflect.Value) {
  33327. if rv.CanAddr() {
  33328. vp := rv.Addr().Interface().(*map[int16]int16)
  33329. v, changed := fastpathTV.DecMapInt16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  33330. if changed {
  33331. *vp = v
  33332. }
  33333. } else {
  33334. v := rv.Interface().(map[int16]int16)
  33335. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, f.d)
  33336. }
  33337. }
  33338. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, checkNil bool, d *Decoder) {
  33339. v, changed := f.DecMapInt16Int16V(*vp, checkNil, true, d)
  33340. if changed {
  33341. *vp = v
  33342. }
  33343. }
  33344. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, checkNil bool, canChange bool,
  33345. d *Decoder) (_ map[int16]int16, changed bool) {
  33346. dd := d.d
  33347. cr := d.cr
  33348. if checkNil && dd.TryDecodeAsNil() {
  33349. if v != nil {
  33350. changed = true
  33351. }
  33352. return nil, changed
  33353. }
  33354. containerLen := dd.ReadMapStart()
  33355. if canChange && v == nil {
  33356. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  33357. v = make(map[int16]int16, xlen)
  33358. changed = true
  33359. }
  33360. var mk int16
  33361. var mv int16
  33362. if containerLen > 0 {
  33363. for j := 0; j < containerLen; j++ {
  33364. if cr != nil {
  33365. cr.sendContainerState(containerMapKey)
  33366. }
  33367. mk = int16(dd.DecodeInt(16))
  33368. if cr != nil {
  33369. cr.sendContainerState(containerMapValue)
  33370. }
  33371. mv = int16(dd.DecodeInt(16))
  33372. if v != nil {
  33373. v[mk] = mv
  33374. }
  33375. }
  33376. } else if containerLen < 0 {
  33377. for j := 0; !dd.CheckBreak(); j++ {
  33378. if cr != nil {
  33379. cr.sendContainerState(containerMapKey)
  33380. }
  33381. mk = int16(dd.DecodeInt(16))
  33382. if cr != nil {
  33383. cr.sendContainerState(containerMapValue)
  33384. }
  33385. mv = int16(dd.DecodeInt(16))
  33386. if v != nil {
  33387. v[mk] = mv
  33388. }
  33389. }
  33390. }
  33391. if cr != nil {
  33392. cr.sendContainerState(containerMapEnd)
  33393. }
  33394. return v, changed
  33395. }
  33396. func (f *decFnInfo) fastpathDecMapInt16Int32R(rv reflect.Value) {
  33397. if rv.CanAddr() {
  33398. vp := rv.Addr().Interface().(*map[int16]int32)
  33399. v, changed := fastpathTV.DecMapInt16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  33400. if changed {
  33401. *vp = v
  33402. }
  33403. } else {
  33404. v := rv.Interface().(map[int16]int32)
  33405. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, f.d)
  33406. }
  33407. }
  33408. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, checkNil bool, d *Decoder) {
  33409. v, changed := f.DecMapInt16Int32V(*vp, checkNil, true, d)
  33410. if changed {
  33411. *vp = v
  33412. }
  33413. }
  33414. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, checkNil bool, canChange bool,
  33415. d *Decoder) (_ map[int16]int32, changed bool) {
  33416. dd := d.d
  33417. cr := d.cr
  33418. if checkNil && dd.TryDecodeAsNil() {
  33419. if v != nil {
  33420. changed = true
  33421. }
  33422. return nil, changed
  33423. }
  33424. containerLen := dd.ReadMapStart()
  33425. if canChange && v == nil {
  33426. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  33427. v = make(map[int16]int32, xlen)
  33428. changed = true
  33429. }
  33430. var mk int16
  33431. var mv int32
  33432. if containerLen > 0 {
  33433. for j := 0; j < containerLen; j++ {
  33434. if cr != nil {
  33435. cr.sendContainerState(containerMapKey)
  33436. }
  33437. mk = int16(dd.DecodeInt(16))
  33438. if cr != nil {
  33439. cr.sendContainerState(containerMapValue)
  33440. }
  33441. mv = int32(dd.DecodeInt(32))
  33442. if v != nil {
  33443. v[mk] = mv
  33444. }
  33445. }
  33446. } else if containerLen < 0 {
  33447. for j := 0; !dd.CheckBreak(); j++ {
  33448. if cr != nil {
  33449. cr.sendContainerState(containerMapKey)
  33450. }
  33451. mk = int16(dd.DecodeInt(16))
  33452. if cr != nil {
  33453. cr.sendContainerState(containerMapValue)
  33454. }
  33455. mv = int32(dd.DecodeInt(32))
  33456. if v != nil {
  33457. v[mk] = mv
  33458. }
  33459. }
  33460. }
  33461. if cr != nil {
  33462. cr.sendContainerState(containerMapEnd)
  33463. }
  33464. return v, changed
  33465. }
  33466. func (f *decFnInfo) fastpathDecMapInt16Int64R(rv reflect.Value) {
  33467. if rv.CanAddr() {
  33468. vp := rv.Addr().Interface().(*map[int16]int64)
  33469. v, changed := fastpathTV.DecMapInt16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  33470. if changed {
  33471. *vp = v
  33472. }
  33473. } else {
  33474. v := rv.Interface().(map[int16]int64)
  33475. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, f.d)
  33476. }
  33477. }
  33478. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, checkNil bool, d *Decoder) {
  33479. v, changed := f.DecMapInt16Int64V(*vp, checkNil, true, d)
  33480. if changed {
  33481. *vp = v
  33482. }
  33483. }
  33484. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, checkNil bool, canChange bool,
  33485. d *Decoder) (_ map[int16]int64, changed bool) {
  33486. dd := d.d
  33487. cr := d.cr
  33488. if checkNil && dd.TryDecodeAsNil() {
  33489. if v != nil {
  33490. changed = true
  33491. }
  33492. return nil, changed
  33493. }
  33494. containerLen := dd.ReadMapStart()
  33495. if canChange && v == nil {
  33496. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33497. v = make(map[int16]int64, xlen)
  33498. changed = true
  33499. }
  33500. var mk int16
  33501. var mv int64
  33502. if containerLen > 0 {
  33503. for j := 0; j < containerLen; j++ {
  33504. if cr != nil {
  33505. cr.sendContainerState(containerMapKey)
  33506. }
  33507. mk = int16(dd.DecodeInt(16))
  33508. if cr != nil {
  33509. cr.sendContainerState(containerMapValue)
  33510. }
  33511. mv = dd.DecodeInt(64)
  33512. if v != nil {
  33513. v[mk] = mv
  33514. }
  33515. }
  33516. } else if containerLen < 0 {
  33517. for j := 0; !dd.CheckBreak(); j++ {
  33518. if cr != nil {
  33519. cr.sendContainerState(containerMapKey)
  33520. }
  33521. mk = int16(dd.DecodeInt(16))
  33522. if cr != nil {
  33523. cr.sendContainerState(containerMapValue)
  33524. }
  33525. mv = dd.DecodeInt(64)
  33526. if v != nil {
  33527. v[mk] = mv
  33528. }
  33529. }
  33530. }
  33531. if cr != nil {
  33532. cr.sendContainerState(containerMapEnd)
  33533. }
  33534. return v, changed
  33535. }
  33536. func (f *decFnInfo) fastpathDecMapInt16Float32R(rv reflect.Value) {
  33537. if rv.CanAddr() {
  33538. vp := rv.Addr().Interface().(*map[int16]float32)
  33539. v, changed := fastpathTV.DecMapInt16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  33540. if changed {
  33541. *vp = v
  33542. }
  33543. } else {
  33544. v := rv.Interface().(map[int16]float32)
  33545. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, f.d)
  33546. }
  33547. }
  33548. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, checkNil bool, d *Decoder) {
  33549. v, changed := f.DecMapInt16Float32V(*vp, checkNil, true, d)
  33550. if changed {
  33551. *vp = v
  33552. }
  33553. }
  33554. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, checkNil bool, canChange bool,
  33555. d *Decoder) (_ map[int16]float32, changed bool) {
  33556. dd := d.d
  33557. cr := d.cr
  33558. if checkNil && dd.TryDecodeAsNil() {
  33559. if v != nil {
  33560. changed = true
  33561. }
  33562. return nil, changed
  33563. }
  33564. containerLen := dd.ReadMapStart()
  33565. if canChange && v == nil {
  33566. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  33567. v = make(map[int16]float32, xlen)
  33568. changed = true
  33569. }
  33570. var mk int16
  33571. var mv float32
  33572. if containerLen > 0 {
  33573. for j := 0; j < containerLen; j++ {
  33574. if cr != nil {
  33575. cr.sendContainerState(containerMapKey)
  33576. }
  33577. mk = int16(dd.DecodeInt(16))
  33578. if cr != nil {
  33579. cr.sendContainerState(containerMapValue)
  33580. }
  33581. mv = float32(dd.DecodeFloat(true))
  33582. if v != nil {
  33583. v[mk] = mv
  33584. }
  33585. }
  33586. } else if containerLen < 0 {
  33587. for j := 0; !dd.CheckBreak(); j++ {
  33588. if cr != nil {
  33589. cr.sendContainerState(containerMapKey)
  33590. }
  33591. mk = int16(dd.DecodeInt(16))
  33592. if cr != nil {
  33593. cr.sendContainerState(containerMapValue)
  33594. }
  33595. mv = float32(dd.DecodeFloat(true))
  33596. if v != nil {
  33597. v[mk] = mv
  33598. }
  33599. }
  33600. }
  33601. if cr != nil {
  33602. cr.sendContainerState(containerMapEnd)
  33603. }
  33604. return v, changed
  33605. }
  33606. func (f *decFnInfo) fastpathDecMapInt16Float64R(rv reflect.Value) {
  33607. if rv.CanAddr() {
  33608. vp := rv.Addr().Interface().(*map[int16]float64)
  33609. v, changed := fastpathTV.DecMapInt16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  33610. if changed {
  33611. *vp = v
  33612. }
  33613. } else {
  33614. v := rv.Interface().(map[int16]float64)
  33615. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, f.d)
  33616. }
  33617. }
  33618. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, checkNil bool, d *Decoder) {
  33619. v, changed := f.DecMapInt16Float64V(*vp, checkNil, true, d)
  33620. if changed {
  33621. *vp = v
  33622. }
  33623. }
  33624. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, checkNil bool, canChange bool,
  33625. d *Decoder) (_ map[int16]float64, changed bool) {
  33626. dd := d.d
  33627. cr := d.cr
  33628. if checkNil && dd.TryDecodeAsNil() {
  33629. if v != nil {
  33630. changed = true
  33631. }
  33632. return nil, changed
  33633. }
  33634. containerLen := dd.ReadMapStart()
  33635. if canChange && v == nil {
  33636. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33637. v = make(map[int16]float64, xlen)
  33638. changed = true
  33639. }
  33640. var mk int16
  33641. var mv float64
  33642. if containerLen > 0 {
  33643. for j := 0; j < containerLen; j++ {
  33644. if cr != nil {
  33645. cr.sendContainerState(containerMapKey)
  33646. }
  33647. mk = int16(dd.DecodeInt(16))
  33648. if cr != nil {
  33649. cr.sendContainerState(containerMapValue)
  33650. }
  33651. mv = dd.DecodeFloat(false)
  33652. if v != nil {
  33653. v[mk] = mv
  33654. }
  33655. }
  33656. } else if containerLen < 0 {
  33657. for j := 0; !dd.CheckBreak(); j++ {
  33658. if cr != nil {
  33659. cr.sendContainerState(containerMapKey)
  33660. }
  33661. mk = int16(dd.DecodeInt(16))
  33662. if cr != nil {
  33663. cr.sendContainerState(containerMapValue)
  33664. }
  33665. mv = dd.DecodeFloat(false)
  33666. if v != nil {
  33667. v[mk] = mv
  33668. }
  33669. }
  33670. }
  33671. if cr != nil {
  33672. cr.sendContainerState(containerMapEnd)
  33673. }
  33674. return v, changed
  33675. }
  33676. func (f *decFnInfo) fastpathDecMapInt16BoolR(rv reflect.Value) {
  33677. if rv.CanAddr() {
  33678. vp := rv.Addr().Interface().(*map[int16]bool)
  33679. v, changed := fastpathTV.DecMapInt16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  33680. if changed {
  33681. *vp = v
  33682. }
  33683. } else {
  33684. v := rv.Interface().(map[int16]bool)
  33685. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, f.d)
  33686. }
  33687. }
  33688. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, checkNil bool, d *Decoder) {
  33689. v, changed := f.DecMapInt16BoolV(*vp, checkNil, true, d)
  33690. if changed {
  33691. *vp = v
  33692. }
  33693. }
  33694. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, checkNil bool, canChange bool,
  33695. d *Decoder) (_ map[int16]bool, changed bool) {
  33696. dd := d.d
  33697. cr := d.cr
  33698. if checkNil && dd.TryDecodeAsNil() {
  33699. if v != nil {
  33700. changed = true
  33701. }
  33702. return nil, changed
  33703. }
  33704. containerLen := dd.ReadMapStart()
  33705. if canChange && v == nil {
  33706. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33707. v = make(map[int16]bool, xlen)
  33708. changed = true
  33709. }
  33710. var mk int16
  33711. var mv bool
  33712. if containerLen > 0 {
  33713. for j := 0; j < containerLen; j++ {
  33714. if cr != nil {
  33715. cr.sendContainerState(containerMapKey)
  33716. }
  33717. mk = int16(dd.DecodeInt(16))
  33718. if cr != nil {
  33719. cr.sendContainerState(containerMapValue)
  33720. }
  33721. mv = dd.DecodeBool()
  33722. if v != nil {
  33723. v[mk] = mv
  33724. }
  33725. }
  33726. } else if containerLen < 0 {
  33727. for j := 0; !dd.CheckBreak(); j++ {
  33728. if cr != nil {
  33729. cr.sendContainerState(containerMapKey)
  33730. }
  33731. mk = int16(dd.DecodeInt(16))
  33732. if cr != nil {
  33733. cr.sendContainerState(containerMapValue)
  33734. }
  33735. mv = dd.DecodeBool()
  33736. if v != nil {
  33737. v[mk] = mv
  33738. }
  33739. }
  33740. }
  33741. if cr != nil {
  33742. cr.sendContainerState(containerMapEnd)
  33743. }
  33744. return v, changed
  33745. }
  33746. func (f *decFnInfo) fastpathDecMapInt32IntfR(rv reflect.Value) {
  33747. if rv.CanAddr() {
  33748. vp := rv.Addr().Interface().(*map[int32]interface{})
  33749. v, changed := fastpathTV.DecMapInt32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  33750. if changed {
  33751. *vp = v
  33752. }
  33753. } else {
  33754. v := rv.Interface().(map[int32]interface{})
  33755. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, f.d)
  33756. }
  33757. }
  33758. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, checkNil bool, d *Decoder) {
  33759. v, changed := f.DecMapInt32IntfV(*vp, checkNil, true, d)
  33760. if changed {
  33761. *vp = v
  33762. }
  33763. }
  33764. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, checkNil bool, canChange bool,
  33765. d *Decoder) (_ map[int32]interface{}, changed bool) {
  33766. dd := d.d
  33767. cr := d.cr
  33768. if checkNil && dd.TryDecodeAsNil() {
  33769. if v != nil {
  33770. changed = true
  33771. }
  33772. return nil, changed
  33773. }
  33774. containerLen := dd.ReadMapStart()
  33775. if canChange && v == nil {
  33776. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  33777. v = make(map[int32]interface{}, xlen)
  33778. changed = true
  33779. }
  33780. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  33781. var mk int32
  33782. var mv interface{}
  33783. if containerLen > 0 {
  33784. for j := 0; j < containerLen; j++ {
  33785. if cr != nil {
  33786. cr.sendContainerState(containerMapKey)
  33787. }
  33788. mk = int32(dd.DecodeInt(32))
  33789. if cr != nil {
  33790. cr.sendContainerState(containerMapValue)
  33791. }
  33792. if mapGet {
  33793. mv = v[mk]
  33794. } else {
  33795. mv = nil
  33796. }
  33797. d.decode(&mv)
  33798. if v != nil {
  33799. v[mk] = mv
  33800. }
  33801. }
  33802. } else if containerLen < 0 {
  33803. for j := 0; !dd.CheckBreak(); j++ {
  33804. if cr != nil {
  33805. cr.sendContainerState(containerMapKey)
  33806. }
  33807. mk = int32(dd.DecodeInt(32))
  33808. if cr != nil {
  33809. cr.sendContainerState(containerMapValue)
  33810. }
  33811. if mapGet {
  33812. mv = v[mk]
  33813. } else {
  33814. mv = nil
  33815. }
  33816. d.decode(&mv)
  33817. if v != nil {
  33818. v[mk] = mv
  33819. }
  33820. }
  33821. }
  33822. if cr != nil {
  33823. cr.sendContainerState(containerMapEnd)
  33824. }
  33825. return v, changed
  33826. }
  33827. func (f *decFnInfo) fastpathDecMapInt32StringR(rv reflect.Value) {
  33828. if rv.CanAddr() {
  33829. vp := rv.Addr().Interface().(*map[int32]string)
  33830. v, changed := fastpathTV.DecMapInt32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  33831. if changed {
  33832. *vp = v
  33833. }
  33834. } else {
  33835. v := rv.Interface().(map[int32]string)
  33836. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, f.d)
  33837. }
  33838. }
  33839. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, checkNil bool, d *Decoder) {
  33840. v, changed := f.DecMapInt32StringV(*vp, checkNil, true, d)
  33841. if changed {
  33842. *vp = v
  33843. }
  33844. }
  33845. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, checkNil bool, canChange bool,
  33846. d *Decoder) (_ map[int32]string, changed bool) {
  33847. dd := d.d
  33848. cr := d.cr
  33849. if checkNil && dd.TryDecodeAsNil() {
  33850. if v != nil {
  33851. changed = true
  33852. }
  33853. return nil, changed
  33854. }
  33855. containerLen := dd.ReadMapStart()
  33856. if canChange && v == nil {
  33857. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  33858. v = make(map[int32]string, xlen)
  33859. changed = true
  33860. }
  33861. var mk int32
  33862. var mv string
  33863. if containerLen > 0 {
  33864. for j := 0; j < containerLen; j++ {
  33865. if cr != nil {
  33866. cr.sendContainerState(containerMapKey)
  33867. }
  33868. mk = int32(dd.DecodeInt(32))
  33869. if cr != nil {
  33870. cr.sendContainerState(containerMapValue)
  33871. }
  33872. mv = dd.DecodeString()
  33873. if v != nil {
  33874. v[mk] = mv
  33875. }
  33876. }
  33877. } else if containerLen < 0 {
  33878. for j := 0; !dd.CheckBreak(); j++ {
  33879. if cr != nil {
  33880. cr.sendContainerState(containerMapKey)
  33881. }
  33882. mk = int32(dd.DecodeInt(32))
  33883. if cr != nil {
  33884. cr.sendContainerState(containerMapValue)
  33885. }
  33886. mv = dd.DecodeString()
  33887. if v != nil {
  33888. v[mk] = mv
  33889. }
  33890. }
  33891. }
  33892. if cr != nil {
  33893. cr.sendContainerState(containerMapEnd)
  33894. }
  33895. return v, changed
  33896. }
  33897. func (f *decFnInfo) fastpathDecMapInt32UintR(rv reflect.Value) {
  33898. if rv.CanAddr() {
  33899. vp := rv.Addr().Interface().(*map[int32]uint)
  33900. v, changed := fastpathTV.DecMapInt32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  33901. if changed {
  33902. *vp = v
  33903. }
  33904. } else {
  33905. v := rv.Interface().(map[int32]uint)
  33906. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, f.d)
  33907. }
  33908. }
  33909. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, checkNil bool, d *Decoder) {
  33910. v, changed := f.DecMapInt32UintV(*vp, checkNil, true, d)
  33911. if changed {
  33912. *vp = v
  33913. }
  33914. }
  33915. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, checkNil bool, canChange bool,
  33916. d *Decoder) (_ map[int32]uint, changed bool) {
  33917. dd := d.d
  33918. cr := d.cr
  33919. if checkNil && dd.TryDecodeAsNil() {
  33920. if v != nil {
  33921. changed = true
  33922. }
  33923. return nil, changed
  33924. }
  33925. containerLen := dd.ReadMapStart()
  33926. if canChange && v == nil {
  33927. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33928. v = make(map[int32]uint, xlen)
  33929. changed = true
  33930. }
  33931. var mk int32
  33932. var mv uint
  33933. if containerLen > 0 {
  33934. for j := 0; j < containerLen; j++ {
  33935. if cr != nil {
  33936. cr.sendContainerState(containerMapKey)
  33937. }
  33938. mk = int32(dd.DecodeInt(32))
  33939. if cr != nil {
  33940. cr.sendContainerState(containerMapValue)
  33941. }
  33942. mv = uint(dd.DecodeUint(uintBitsize))
  33943. if v != nil {
  33944. v[mk] = mv
  33945. }
  33946. }
  33947. } else if containerLen < 0 {
  33948. for j := 0; !dd.CheckBreak(); j++ {
  33949. if cr != nil {
  33950. cr.sendContainerState(containerMapKey)
  33951. }
  33952. mk = int32(dd.DecodeInt(32))
  33953. if cr != nil {
  33954. cr.sendContainerState(containerMapValue)
  33955. }
  33956. mv = uint(dd.DecodeUint(uintBitsize))
  33957. if v != nil {
  33958. v[mk] = mv
  33959. }
  33960. }
  33961. }
  33962. if cr != nil {
  33963. cr.sendContainerState(containerMapEnd)
  33964. }
  33965. return v, changed
  33966. }
  33967. func (f *decFnInfo) fastpathDecMapInt32Uint8R(rv reflect.Value) {
  33968. if rv.CanAddr() {
  33969. vp := rv.Addr().Interface().(*map[int32]uint8)
  33970. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  33971. if changed {
  33972. *vp = v
  33973. }
  33974. } else {
  33975. v := rv.Interface().(map[int32]uint8)
  33976. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  33977. }
  33978. }
  33979. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, checkNil bool, d *Decoder) {
  33980. v, changed := f.DecMapInt32Uint8V(*vp, checkNil, true, d)
  33981. if changed {
  33982. *vp = v
  33983. }
  33984. }
  33985. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, checkNil bool, canChange bool,
  33986. d *Decoder) (_ map[int32]uint8, changed bool) {
  33987. dd := d.d
  33988. cr := d.cr
  33989. if checkNil && dd.TryDecodeAsNil() {
  33990. if v != nil {
  33991. changed = true
  33992. }
  33993. return nil, changed
  33994. }
  33995. containerLen := dd.ReadMapStart()
  33996. if canChange && v == nil {
  33997. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33998. v = make(map[int32]uint8, xlen)
  33999. changed = true
  34000. }
  34001. var mk int32
  34002. var mv uint8
  34003. if containerLen > 0 {
  34004. for j := 0; j < containerLen; j++ {
  34005. if cr != nil {
  34006. cr.sendContainerState(containerMapKey)
  34007. }
  34008. mk = int32(dd.DecodeInt(32))
  34009. if cr != nil {
  34010. cr.sendContainerState(containerMapValue)
  34011. }
  34012. mv = uint8(dd.DecodeUint(8))
  34013. if v != nil {
  34014. v[mk] = mv
  34015. }
  34016. }
  34017. } else if containerLen < 0 {
  34018. for j := 0; !dd.CheckBreak(); j++ {
  34019. if cr != nil {
  34020. cr.sendContainerState(containerMapKey)
  34021. }
  34022. mk = int32(dd.DecodeInt(32))
  34023. if cr != nil {
  34024. cr.sendContainerState(containerMapValue)
  34025. }
  34026. mv = uint8(dd.DecodeUint(8))
  34027. if v != nil {
  34028. v[mk] = mv
  34029. }
  34030. }
  34031. }
  34032. if cr != nil {
  34033. cr.sendContainerState(containerMapEnd)
  34034. }
  34035. return v, changed
  34036. }
  34037. func (f *decFnInfo) fastpathDecMapInt32Uint16R(rv reflect.Value) {
  34038. if rv.CanAddr() {
  34039. vp := rv.Addr().Interface().(*map[int32]uint16)
  34040. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  34041. if changed {
  34042. *vp = v
  34043. }
  34044. } else {
  34045. v := rv.Interface().(map[int32]uint16)
  34046. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  34047. }
  34048. }
  34049. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, checkNil bool, d *Decoder) {
  34050. v, changed := f.DecMapInt32Uint16V(*vp, checkNil, true, d)
  34051. if changed {
  34052. *vp = v
  34053. }
  34054. }
  34055. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, checkNil bool, canChange bool,
  34056. d *Decoder) (_ map[int32]uint16, changed bool) {
  34057. dd := d.d
  34058. cr := d.cr
  34059. if checkNil && dd.TryDecodeAsNil() {
  34060. if v != nil {
  34061. changed = true
  34062. }
  34063. return nil, changed
  34064. }
  34065. containerLen := dd.ReadMapStart()
  34066. if canChange && v == nil {
  34067. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  34068. v = make(map[int32]uint16, xlen)
  34069. changed = true
  34070. }
  34071. var mk int32
  34072. var mv uint16
  34073. if containerLen > 0 {
  34074. for j := 0; j < containerLen; j++ {
  34075. if cr != nil {
  34076. cr.sendContainerState(containerMapKey)
  34077. }
  34078. mk = int32(dd.DecodeInt(32))
  34079. if cr != nil {
  34080. cr.sendContainerState(containerMapValue)
  34081. }
  34082. mv = uint16(dd.DecodeUint(16))
  34083. if v != nil {
  34084. v[mk] = mv
  34085. }
  34086. }
  34087. } else if containerLen < 0 {
  34088. for j := 0; !dd.CheckBreak(); j++ {
  34089. if cr != nil {
  34090. cr.sendContainerState(containerMapKey)
  34091. }
  34092. mk = int32(dd.DecodeInt(32))
  34093. if cr != nil {
  34094. cr.sendContainerState(containerMapValue)
  34095. }
  34096. mv = uint16(dd.DecodeUint(16))
  34097. if v != nil {
  34098. v[mk] = mv
  34099. }
  34100. }
  34101. }
  34102. if cr != nil {
  34103. cr.sendContainerState(containerMapEnd)
  34104. }
  34105. return v, changed
  34106. }
  34107. func (f *decFnInfo) fastpathDecMapInt32Uint32R(rv reflect.Value) {
  34108. if rv.CanAddr() {
  34109. vp := rv.Addr().Interface().(*map[int32]uint32)
  34110. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  34111. if changed {
  34112. *vp = v
  34113. }
  34114. } else {
  34115. v := rv.Interface().(map[int32]uint32)
  34116. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  34117. }
  34118. }
  34119. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, checkNil bool, d *Decoder) {
  34120. v, changed := f.DecMapInt32Uint32V(*vp, checkNil, true, d)
  34121. if changed {
  34122. *vp = v
  34123. }
  34124. }
  34125. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, checkNil bool, canChange bool,
  34126. d *Decoder) (_ map[int32]uint32, changed bool) {
  34127. dd := d.d
  34128. cr := d.cr
  34129. if checkNil && dd.TryDecodeAsNil() {
  34130. if v != nil {
  34131. changed = true
  34132. }
  34133. return nil, changed
  34134. }
  34135. containerLen := dd.ReadMapStart()
  34136. if canChange && v == nil {
  34137. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  34138. v = make(map[int32]uint32, xlen)
  34139. changed = true
  34140. }
  34141. var mk int32
  34142. var mv uint32
  34143. if containerLen > 0 {
  34144. for j := 0; j < containerLen; j++ {
  34145. if cr != nil {
  34146. cr.sendContainerState(containerMapKey)
  34147. }
  34148. mk = int32(dd.DecodeInt(32))
  34149. if cr != nil {
  34150. cr.sendContainerState(containerMapValue)
  34151. }
  34152. mv = uint32(dd.DecodeUint(32))
  34153. if v != nil {
  34154. v[mk] = mv
  34155. }
  34156. }
  34157. } else if containerLen < 0 {
  34158. for j := 0; !dd.CheckBreak(); j++ {
  34159. if cr != nil {
  34160. cr.sendContainerState(containerMapKey)
  34161. }
  34162. mk = int32(dd.DecodeInt(32))
  34163. if cr != nil {
  34164. cr.sendContainerState(containerMapValue)
  34165. }
  34166. mv = uint32(dd.DecodeUint(32))
  34167. if v != nil {
  34168. v[mk] = mv
  34169. }
  34170. }
  34171. }
  34172. if cr != nil {
  34173. cr.sendContainerState(containerMapEnd)
  34174. }
  34175. return v, changed
  34176. }
  34177. func (f *decFnInfo) fastpathDecMapInt32Uint64R(rv reflect.Value) {
  34178. if rv.CanAddr() {
  34179. vp := rv.Addr().Interface().(*map[int32]uint64)
  34180. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  34181. if changed {
  34182. *vp = v
  34183. }
  34184. } else {
  34185. v := rv.Interface().(map[int32]uint64)
  34186. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  34187. }
  34188. }
  34189. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, checkNil bool, d *Decoder) {
  34190. v, changed := f.DecMapInt32Uint64V(*vp, checkNil, true, d)
  34191. if changed {
  34192. *vp = v
  34193. }
  34194. }
  34195. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, checkNil bool, canChange bool,
  34196. d *Decoder) (_ map[int32]uint64, changed bool) {
  34197. dd := d.d
  34198. cr := d.cr
  34199. if checkNil && dd.TryDecodeAsNil() {
  34200. if v != nil {
  34201. changed = true
  34202. }
  34203. return nil, changed
  34204. }
  34205. containerLen := dd.ReadMapStart()
  34206. if canChange && v == nil {
  34207. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34208. v = make(map[int32]uint64, xlen)
  34209. changed = true
  34210. }
  34211. var mk int32
  34212. var mv uint64
  34213. if containerLen > 0 {
  34214. for j := 0; j < containerLen; j++ {
  34215. if cr != nil {
  34216. cr.sendContainerState(containerMapKey)
  34217. }
  34218. mk = int32(dd.DecodeInt(32))
  34219. if cr != nil {
  34220. cr.sendContainerState(containerMapValue)
  34221. }
  34222. mv = dd.DecodeUint(64)
  34223. if v != nil {
  34224. v[mk] = mv
  34225. }
  34226. }
  34227. } else if containerLen < 0 {
  34228. for j := 0; !dd.CheckBreak(); j++ {
  34229. if cr != nil {
  34230. cr.sendContainerState(containerMapKey)
  34231. }
  34232. mk = int32(dd.DecodeInt(32))
  34233. if cr != nil {
  34234. cr.sendContainerState(containerMapValue)
  34235. }
  34236. mv = dd.DecodeUint(64)
  34237. if v != nil {
  34238. v[mk] = mv
  34239. }
  34240. }
  34241. }
  34242. if cr != nil {
  34243. cr.sendContainerState(containerMapEnd)
  34244. }
  34245. return v, changed
  34246. }
  34247. func (f *decFnInfo) fastpathDecMapInt32UintptrR(rv reflect.Value) {
  34248. if rv.CanAddr() {
  34249. vp := rv.Addr().Interface().(*map[int32]uintptr)
  34250. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  34251. if changed {
  34252. *vp = v
  34253. }
  34254. } else {
  34255. v := rv.Interface().(map[int32]uintptr)
  34256. fastpathTV.DecMapInt32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  34257. }
  34258. }
  34259. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, checkNil bool, d *Decoder) {
  34260. v, changed := f.DecMapInt32UintptrV(*vp, checkNil, true, d)
  34261. if changed {
  34262. *vp = v
  34263. }
  34264. }
  34265. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, checkNil bool, canChange bool,
  34266. d *Decoder) (_ map[int32]uintptr, changed bool) {
  34267. dd := d.d
  34268. cr := d.cr
  34269. if checkNil && dd.TryDecodeAsNil() {
  34270. if v != nil {
  34271. changed = true
  34272. }
  34273. return nil, changed
  34274. }
  34275. containerLen := dd.ReadMapStart()
  34276. if canChange && v == nil {
  34277. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34278. v = make(map[int32]uintptr, xlen)
  34279. changed = true
  34280. }
  34281. var mk int32
  34282. var mv uintptr
  34283. if containerLen > 0 {
  34284. for j := 0; j < containerLen; j++ {
  34285. if cr != nil {
  34286. cr.sendContainerState(containerMapKey)
  34287. }
  34288. mk = int32(dd.DecodeInt(32))
  34289. if cr != nil {
  34290. cr.sendContainerState(containerMapValue)
  34291. }
  34292. mv = uintptr(dd.DecodeUint(uintBitsize))
  34293. if v != nil {
  34294. v[mk] = mv
  34295. }
  34296. }
  34297. } else if containerLen < 0 {
  34298. for j := 0; !dd.CheckBreak(); j++ {
  34299. if cr != nil {
  34300. cr.sendContainerState(containerMapKey)
  34301. }
  34302. mk = int32(dd.DecodeInt(32))
  34303. if cr != nil {
  34304. cr.sendContainerState(containerMapValue)
  34305. }
  34306. mv = uintptr(dd.DecodeUint(uintBitsize))
  34307. if v != nil {
  34308. v[mk] = mv
  34309. }
  34310. }
  34311. }
  34312. if cr != nil {
  34313. cr.sendContainerState(containerMapEnd)
  34314. }
  34315. return v, changed
  34316. }
  34317. func (f *decFnInfo) fastpathDecMapInt32IntR(rv reflect.Value) {
  34318. if rv.CanAddr() {
  34319. vp := rv.Addr().Interface().(*map[int32]int)
  34320. v, changed := fastpathTV.DecMapInt32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  34321. if changed {
  34322. *vp = v
  34323. }
  34324. } else {
  34325. v := rv.Interface().(map[int32]int)
  34326. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, f.d)
  34327. }
  34328. }
  34329. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, checkNil bool, d *Decoder) {
  34330. v, changed := f.DecMapInt32IntV(*vp, checkNil, true, d)
  34331. if changed {
  34332. *vp = v
  34333. }
  34334. }
  34335. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, checkNil bool, canChange bool,
  34336. d *Decoder) (_ map[int32]int, changed bool) {
  34337. dd := d.d
  34338. cr := d.cr
  34339. if checkNil && dd.TryDecodeAsNil() {
  34340. if v != nil {
  34341. changed = true
  34342. }
  34343. return nil, changed
  34344. }
  34345. containerLen := dd.ReadMapStart()
  34346. if canChange && v == nil {
  34347. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34348. v = make(map[int32]int, xlen)
  34349. changed = true
  34350. }
  34351. var mk int32
  34352. var mv int
  34353. if containerLen > 0 {
  34354. for j := 0; j < containerLen; j++ {
  34355. if cr != nil {
  34356. cr.sendContainerState(containerMapKey)
  34357. }
  34358. mk = int32(dd.DecodeInt(32))
  34359. if cr != nil {
  34360. cr.sendContainerState(containerMapValue)
  34361. }
  34362. mv = int(dd.DecodeInt(intBitsize))
  34363. if v != nil {
  34364. v[mk] = mv
  34365. }
  34366. }
  34367. } else if containerLen < 0 {
  34368. for j := 0; !dd.CheckBreak(); j++ {
  34369. if cr != nil {
  34370. cr.sendContainerState(containerMapKey)
  34371. }
  34372. mk = int32(dd.DecodeInt(32))
  34373. if cr != nil {
  34374. cr.sendContainerState(containerMapValue)
  34375. }
  34376. mv = int(dd.DecodeInt(intBitsize))
  34377. if v != nil {
  34378. v[mk] = mv
  34379. }
  34380. }
  34381. }
  34382. if cr != nil {
  34383. cr.sendContainerState(containerMapEnd)
  34384. }
  34385. return v, changed
  34386. }
  34387. func (f *decFnInfo) fastpathDecMapInt32Int8R(rv reflect.Value) {
  34388. if rv.CanAddr() {
  34389. vp := rv.Addr().Interface().(*map[int32]int8)
  34390. v, changed := fastpathTV.DecMapInt32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  34391. if changed {
  34392. *vp = v
  34393. }
  34394. } else {
  34395. v := rv.Interface().(map[int32]int8)
  34396. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, f.d)
  34397. }
  34398. }
  34399. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, checkNil bool, d *Decoder) {
  34400. v, changed := f.DecMapInt32Int8V(*vp, checkNil, true, d)
  34401. if changed {
  34402. *vp = v
  34403. }
  34404. }
  34405. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, checkNil bool, canChange bool,
  34406. d *Decoder) (_ map[int32]int8, changed bool) {
  34407. dd := d.d
  34408. cr := d.cr
  34409. if checkNil && dd.TryDecodeAsNil() {
  34410. if v != nil {
  34411. changed = true
  34412. }
  34413. return nil, changed
  34414. }
  34415. containerLen := dd.ReadMapStart()
  34416. if canChange && v == nil {
  34417. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34418. v = make(map[int32]int8, xlen)
  34419. changed = true
  34420. }
  34421. var mk int32
  34422. var mv int8
  34423. if containerLen > 0 {
  34424. for j := 0; j < containerLen; j++ {
  34425. if cr != nil {
  34426. cr.sendContainerState(containerMapKey)
  34427. }
  34428. mk = int32(dd.DecodeInt(32))
  34429. if cr != nil {
  34430. cr.sendContainerState(containerMapValue)
  34431. }
  34432. mv = int8(dd.DecodeInt(8))
  34433. if v != nil {
  34434. v[mk] = mv
  34435. }
  34436. }
  34437. } else if containerLen < 0 {
  34438. for j := 0; !dd.CheckBreak(); j++ {
  34439. if cr != nil {
  34440. cr.sendContainerState(containerMapKey)
  34441. }
  34442. mk = int32(dd.DecodeInt(32))
  34443. if cr != nil {
  34444. cr.sendContainerState(containerMapValue)
  34445. }
  34446. mv = int8(dd.DecodeInt(8))
  34447. if v != nil {
  34448. v[mk] = mv
  34449. }
  34450. }
  34451. }
  34452. if cr != nil {
  34453. cr.sendContainerState(containerMapEnd)
  34454. }
  34455. return v, changed
  34456. }
  34457. func (f *decFnInfo) fastpathDecMapInt32Int16R(rv reflect.Value) {
  34458. if rv.CanAddr() {
  34459. vp := rv.Addr().Interface().(*map[int32]int16)
  34460. v, changed := fastpathTV.DecMapInt32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  34461. if changed {
  34462. *vp = v
  34463. }
  34464. } else {
  34465. v := rv.Interface().(map[int32]int16)
  34466. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, f.d)
  34467. }
  34468. }
  34469. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, checkNil bool, d *Decoder) {
  34470. v, changed := f.DecMapInt32Int16V(*vp, checkNil, true, d)
  34471. if changed {
  34472. *vp = v
  34473. }
  34474. }
  34475. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, checkNil bool, canChange bool,
  34476. d *Decoder) (_ map[int32]int16, changed bool) {
  34477. dd := d.d
  34478. cr := d.cr
  34479. if checkNil && dd.TryDecodeAsNil() {
  34480. if v != nil {
  34481. changed = true
  34482. }
  34483. return nil, changed
  34484. }
  34485. containerLen := dd.ReadMapStart()
  34486. if canChange && v == nil {
  34487. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  34488. v = make(map[int32]int16, xlen)
  34489. changed = true
  34490. }
  34491. var mk int32
  34492. var mv int16
  34493. if containerLen > 0 {
  34494. for j := 0; j < containerLen; j++ {
  34495. if cr != nil {
  34496. cr.sendContainerState(containerMapKey)
  34497. }
  34498. mk = int32(dd.DecodeInt(32))
  34499. if cr != nil {
  34500. cr.sendContainerState(containerMapValue)
  34501. }
  34502. mv = int16(dd.DecodeInt(16))
  34503. if v != nil {
  34504. v[mk] = mv
  34505. }
  34506. }
  34507. } else if containerLen < 0 {
  34508. for j := 0; !dd.CheckBreak(); j++ {
  34509. if cr != nil {
  34510. cr.sendContainerState(containerMapKey)
  34511. }
  34512. mk = int32(dd.DecodeInt(32))
  34513. if cr != nil {
  34514. cr.sendContainerState(containerMapValue)
  34515. }
  34516. mv = int16(dd.DecodeInt(16))
  34517. if v != nil {
  34518. v[mk] = mv
  34519. }
  34520. }
  34521. }
  34522. if cr != nil {
  34523. cr.sendContainerState(containerMapEnd)
  34524. }
  34525. return v, changed
  34526. }
  34527. func (f *decFnInfo) fastpathDecMapInt32Int32R(rv reflect.Value) {
  34528. if rv.CanAddr() {
  34529. vp := rv.Addr().Interface().(*map[int32]int32)
  34530. v, changed := fastpathTV.DecMapInt32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  34531. if changed {
  34532. *vp = v
  34533. }
  34534. } else {
  34535. v := rv.Interface().(map[int32]int32)
  34536. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, f.d)
  34537. }
  34538. }
  34539. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, checkNil bool, d *Decoder) {
  34540. v, changed := f.DecMapInt32Int32V(*vp, checkNil, true, d)
  34541. if changed {
  34542. *vp = v
  34543. }
  34544. }
  34545. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, checkNil bool, canChange bool,
  34546. d *Decoder) (_ map[int32]int32, changed bool) {
  34547. dd := d.d
  34548. cr := d.cr
  34549. if checkNil && dd.TryDecodeAsNil() {
  34550. if v != nil {
  34551. changed = true
  34552. }
  34553. return nil, changed
  34554. }
  34555. containerLen := dd.ReadMapStart()
  34556. if canChange && v == nil {
  34557. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  34558. v = make(map[int32]int32, xlen)
  34559. changed = true
  34560. }
  34561. var mk int32
  34562. var mv int32
  34563. if containerLen > 0 {
  34564. for j := 0; j < containerLen; j++ {
  34565. if cr != nil {
  34566. cr.sendContainerState(containerMapKey)
  34567. }
  34568. mk = int32(dd.DecodeInt(32))
  34569. if cr != nil {
  34570. cr.sendContainerState(containerMapValue)
  34571. }
  34572. mv = int32(dd.DecodeInt(32))
  34573. if v != nil {
  34574. v[mk] = mv
  34575. }
  34576. }
  34577. } else if containerLen < 0 {
  34578. for j := 0; !dd.CheckBreak(); j++ {
  34579. if cr != nil {
  34580. cr.sendContainerState(containerMapKey)
  34581. }
  34582. mk = int32(dd.DecodeInt(32))
  34583. if cr != nil {
  34584. cr.sendContainerState(containerMapValue)
  34585. }
  34586. mv = int32(dd.DecodeInt(32))
  34587. if v != nil {
  34588. v[mk] = mv
  34589. }
  34590. }
  34591. }
  34592. if cr != nil {
  34593. cr.sendContainerState(containerMapEnd)
  34594. }
  34595. return v, changed
  34596. }
  34597. func (f *decFnInfo) fastpathDecMapInt32Int64R(rv reflect.Value) {
  34598. if rv.CanAddr() {
  34599. vp := rv.Addr().Interface().(*map[int32]int64)
  34600. v, changed := fastpathTV.DecMapInt32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  34601. if changed {
  34602. *vp = v
  34603. }
  34604. } else {
  34605. v := rv.Interface().(map[int32]int64)
  34606. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, f.d)
  34607. }
  34608. }
  34609. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, checkNil bool, d *Decoder) {
  34610. v, changed := f.DecMapInt32Int64V(*vp, checkNil, true, d)
  34611. if changed {
  34612. *vp = v
  34613. }
  34614. }
  34615. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, checkNil bool, canChange bool,
  34616. d *Decoder) (_ map[int32]int64, changed bool) {
  34617. dd := d.d
  34618. cr := d.cr
  34619. if checkNil && dd.TryDecodeAsNil() {
  34620. if v != nil {
  34621. changed = true
  34622. }
  34623. return nil, changed
  34624. }
  34625. containerLen := dd.ReadMapStart()
  34626. if canChange && v == nil {
  34627. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34628. v = make(map[int32]int64, xlen)
  34629. changed = true
  34630. }
  34631. var mk int32
  34632. var mv int64
  34633. if containerLen > 0 {
  34634. for j := 0; j < containerLen; j++ {
  34635. if cr != nil {
  34636. cr.sendContainerState(containerMapKey)
  34637. }
  34638. mk = int32(dd.DecodeInt(32))
  34639. if cr != nil {
  34640. cr.sendContainerState(containerMapValue)
  34641. }
  34642. mv = dd.DecodeInt(64)
  34643. if v != nil {
  34644. v[mk] = mv
  34645. }
  34646. }
  34647. } else if containerLen < 0 {
  34648. for j := 0; !dd.CheckBreak(); j++ {
  34649. if cr != nil {
  34650. cr.sendContainerState(containerMapKey)
  34651. }
  34652. mk = int32(dd.DecodeInt(32))
  34653. if cr != nil {
  34654. cr.sendContainerState(containerMapValue)
  34655. }
  34656. mv = dd.DecodeInt(64)
  34657. if v != nil {
  34658. v[mk] = mv
  34659. }
  34660. }
  34661. }
  34662. if cr != nil {
  34663. cr.sendContainerState(containerMapEnd)
  34664. }
  34665. return v, changed
  34666. }
  34667. func (f *decFnInfo) fastpathDecMapInt32Float32R(rv reflect.Value) {
  34668. if rv.CanAddr() {
  34669. vp := rv.Addr().Interface().(*map[int32]float32)
  34670. v, changed := fastpathTV.DecMapInt32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  34671. if changed {
  34672. *vp = v
  34673. }
  34674. } else {
  34675. v := rv.Interface().(map[int32]float32)
  34676. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, f.d)
  34677. }
  34678. }
  34679. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, checkNil bool, d *Decoder) {
  34680. v, changed := f.DecMapInt32Float32V(*vp, checkNil, true, d)
  34681. if changed {
  34682. *vp = v
  34683. }
  34684. }
  34685. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, checkNil bool, canChange bool,
  34686. d *Decoder) (_ map[int32]float32, changed bool) {
  34687. dd := d.d
  34688. cr := d.cr
  34689. if checkNil && dd.TryDecodeAsNil() {
  34690. if v != nil {
  34691. changed = true
  34692. }
  34693. return nil, changed
  34694. }
  34695. containerLen := dd.ReadMapStart()
  34696. if canChange && v == nil {
  34697. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  34698. v = make(map[int32]float32, xlen)
  34699. changed = true
  34700. }
  34701. var mk int32
  34702. var mv float32
  34703. if containerLen > 0 {
  34704. for j := 0; j < containerLen; j++ {
  34705. if cr != nil {
  34706. cr.sendContainerState(containerMapKey)
  34707. }
  34708. mk = int32(dd.DecodeInt(32))
  34709. if cr != nil {
  34710. cr.sendContainerState(containerMapValue)
  34711. }
  34712. mv = float32(dd.DecodeFloat(true))
  34713. if v != nil {
  34714. v[mk] = mv
  34715. }
  34716. }
  34717. } else if containerLen < 0 {
  34718. for j := 0; !dd.CheckBreak(); j++ {
  34719. if cr != nil {
  34720. cr.sendContainerState(containerMapKey)
  34721. }
  34722. mk = int32(dd.DecodeInt(32))
  34723. if cr != nil {
  34724. cr.sendContainerState(containerMapValue)
  34725. }
  34726. mv = float32(dd.DecodeFloat(true))
  34727. if v != nil {
  34728. v[mk] = mv
  34729. }
  34730. }
  34731. }
  34732. if cr != nil {
  34733. cr.sendContainerState(containerMapEnd)
  34734. }
  34735. return v, changed
  34736. }
  34737. func (f *decFnInfo) fastpathDecMapInt32Float64R(rv reflect.Value) {
  34738. if rv.CanAddr() {
  34739. vp := rv.Addr().Interface().(*map[int32]float64)
  34740. v, changed := fastpathTV.DecMapInt32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  34741. if changed {
  34742. *vp = v
  34743. }
  34744. } else {
  34745. v := rv.Interface().(map[int32]float64)
  34746. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, f.d)
  34747. }
  34748. }
  34749. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, checkNil bool, d *Decoder) {
  34750. v, changed := f.DecMapInt32Float64V(*vp, checkNil, true, d)
  34751. if changed {
  34752. *vp = v
  34753. }
  34754. }
  34755. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, checkNil bool, canChange bool,
  34756. d *Decoder) (_ map[int32]float64, changed bool) {
  34757. dd := d.d
  34758. cr := d.cr
  34759. if checkNil && dd.TryDecodeAsNil() {
  34760. if v != nil {
  34761. changed = true
  34762. }
  34763. return nil, changed
  34764. }
  34765. containerLen := dd.ReadMapStart()
  34766. if canChange && v == nil {
  34767. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34768. v = make(map[int32]float64, xlen)
  34769. changed = true
  34770. }
  34771. var mk int32
  34772. var mv float64
  34773. if containerLen > 0 {
  34774. for j := 0; j < containerLen; j++ {
  34775. if cr != nil {
  34776. cr.sendContainerState(containerMapKey)
  34777. }
  34778. mk = int32(dd.DecodeInt(32))
  34779. if cr != nil {
  34780. cr.sendContainerState(containerMapValue)
  34781. }
  34782. mv = dd.DecodeFloat(false)
  34783. if v != nil {
  34784. v[mk] = mv
  34785. }
  34786. }
  34787. } else if containerLen < 0 {
  34788. for j := 0; !dd.CheckBreak(); j++ {
  34789. if cr != nil {
  34790. cr.sendContainerState(containerMapKey)
  34791. }
  34792. mk = int32(dd.DecodeInt(32))
  34793. if cr != nil {
  34794. cr.sendContainerState(containerMapValue)
  34795. }
  34796. mv = dd.DecodeFloat(false)
  34797. if v != nil {
  34798. v[mk] = mv
  34799. }
  34800. }
  34801. }
  34802. if cr != nil {
  34803. cr.sendContainerState(containerMapEnd)
  34804. }
  34805. return v, changed
  34806. }
  34807. func (f *decFnInfo) fastpathDecMapInt32BoolR(rv reflect.Value) {
  34808. if rv.CanAddr() {
  34809. vp := rv.Addr().Interface().(*map[int32]bool)
  34810. v, changed := fastpathTV.DecMapInt32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  34811. if changed {
  34812. *vp = v
  34813. }
  34814. } else {
  34815. v := rv.Interface().(map[int32]bool)
  34816. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, f.d)
  34817. }
  34818. }
  34819. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, checkNil bool, d *Decoder) {
  34820. v, changed := f.DecMapInt32BoolV(*vp, checkNil, true, d)
  34821. if changed {
  34822. *vp = v
  34823. }
  34824. }
  34825. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, checkNil bool, canChange bool,
  34826. d *Decoder) (_ map[int32]bool, changed bool) {
  34827. dd := d.d
  34828. cr := d.cr
  34829. if checkNil && dd.TryDecodeAsNil() {
  34830. if v != nil {
  34831. changed = true
  34832. }
  34833. return nil, changed
  34834. }
  34835. containerLen := dd.ReadMapStart()
  34836. if canChange && v == nil {
  34837. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34838. v = make(map[int32]bool, xlen)
  34839. changed = true
  34840. }
  34841. var mk int32
  34842. var mv bool
  34843. if containerLen > 0 {
  34844. for j := 0; j < containerLen; j++ {
  34845. if cr != nil {
  34846. cr.sendContainerState(containerMapKey)
  34847. }
  34848. mk = int32(dd.DecodeInt(32))
  34849. if cr != nil {
  34850. cr.sendContainerState(containerMapValue)
  34851. }
  34852. mv = dd.DecodeBool()
  34853. if v != nil {
  34854. v[mk] = mv
  34855. }
  34856. }
  34857. } else if containerLen < 0 {
  34858. for j := 0; !dd.CheckBreak(); j++ {
  34859. if cr != nil {
  34860. cr.sendContainerState(containerMapKey)
  34861. }
  34862. mk = int32(dd.DecodeInt(32))
  34863. if cr != nil {
  34864. cr.sendContainerState(containerMapValue)
  34865. }
  34866. mv = dd.DecodeBool()
  34867. if v != nil {
  34868. v[mk] = mv
  34869. }
  34870. }
  34871. }
  34872. if cr != nil {
  34873. cr.sendContainerState(containerMapEnd)
  34874. }
  34875. return v, changed
  34876. }
  34877. func (f *decFnInfo) fastpathDecMapInt64IntfR(rv reflect.Value) {
  34878. if rv.CanAddr() {
  34879. vp := rv.Addr().Interface().(*map[int64]interface{})
  34880. v, changed := fastpathTV.DecMapInt64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  34881. if changed {
  34882. *vp = v
  34883. }
  34884. } else {
  34885. v := rv.Interface().(map[int64]interface{})
  34886. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, f.d)
  34887. }
  34888. }
  34889. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, checkNil bool, d *Decoder) {
  34890. v, changed := f.DecMapInt64IntfV(*vp, checkNil, true, d)
  34891. if changed {
  34892. *vp = v
  34893. }
  34894. }
  34895. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, checkNil bool, canChange bool,
  34896. d *Decoder) (_ map[int64]interface{}, changed bool) {
  34897. dd := d.d
  34898. cr := d.cr
  34899. if checkNil && dd.TryDecodeAsNil() {
  34900. if v != nil {
  34901. changed = true
  34902. }
  34903. return nil, changed
  34904. }
  34905. containerLen := dd.ReadMapStart()
  34906. if canChange && v == nil {
  34907. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  34908. v = make(map[int64]interface{}, xlen)
  34909. changed = true
  34910. }
  34911. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  34912. var mk int64
  34913. var mv interface{}
  34914. if containerLen > 0 {
  34915. for j := 0; j < containerLen; j++ {
  34916. if cr != nil {
  34917. cr.sendContainerState(containerMapKey)
  34918. }
  34919. mk = dd.DecodeInt(64)
  34920. if cr != nil {
  34921. cr.sendContainerState(containerMapValue)
  34922. }
  34923. if mapGet {
  34924. mv = v[mk]
  34925. } else {
  34926. mv = nil
  34927. }
  34928. d.decode(&mv)
  34929. if v != nil {
  34930. v[mk] = mv
  34931. }
  34932. }
  34933. } else if containerLen < 0 {
  34934. for j := 0; !dd.CheckBreak(); j++ {
  34935. if cr != nil {
  34936. cr.sendContainerState(containerMapKey)
  34937. }
  34938. mk = dd.DecodeInt(64)
  34939. if cr != nil {
  34940. cr.sendContainerState(containerMapValue)
  34941. }
  34942. if mapGet {
  34943. mv = v[mk]
  34944. } else {
  34945. mv = nil
  34946. }
  34947. d.decode(&mv)
  34948. if v != nil {
  34949. v[mk] = mv
  34950. }
  34951. }
  34952. }
  34953. if cr != nil {
  34954. cr.sendContainerState(containerMapEnd)
  34955. }
  34956. return v, changed
  34957. }
  34958. func (f *decFnInfo) fastpathDecMapInt64StringR(rv reflect.Value) {
  34959. if rv.CanAddr() {
  34960. vp := rv.Addr().Interface().(*map[int64]string)
  34961. v, changed := fastpathTV.DecMapInt64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  34962. if changed {
  34963. *vp = v
  34964. }
  34965. } else {
  34966. v := rv.Interface().(map[int64]string)
  34967. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, f.d)
  34968. }
  34969. }
  34970. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, checkNil bool, d *Decoder) {
  34971. v, changed := f.DecMapInt64StringV(*vp, checkNil, true, d)
  34972. if changed {
  34973. *vp = v
  34974. }
  34975. }
  34976. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, checkNil bool, canChange bool,
  34977. d *Decoder) (_ map[int64]string, changed bool) {
  34978. dd := d.d
  34979. cr := d.cr
  34980. if checkNil && dd.TryDecodeAsNil() {
  34981. if v != nil {
  34982. changed = true
  34983. }
  34984. return nil, changed
  34985. }
  34986. containerLen := dd.ReadMapStart()
  34987. if canChange && v == nil {
  34988. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  34989. v = make(map[int64]string, xlen)
  34990. changed = true
  34991. }
  34992. var mk int64
  34993. var mv string
  34994. if containerLen > 0 {
  34995. for j := 0; j < containerLen; j++ {
  34996. if cr != nil {
  34997. cr.sendContainerState(containerMapKey)
  34998. }
  34999. mk = dd.DecodeInt(64)
  35000. if cr != nil {
  35001. cr.sendContainerState(containerMapValue)
  35002. }
  35003. mv = dd.DecodeString()
  35004. if v != nil {
  35005. v[mk] = mv
  35006. }
  35007. }
  35008. } else if containerLen < 0 {
  35009. for j := 0; !dd.CheckBreak(); j++ {
  35010. if cr != nil {
  35011. cr.sendContainerState(containerMapKey)
  35012. }
  35013. mk = dd.DecodeInt(64)
  35014. if cr != nil {
  35015. cr.sendContainerState(containerMapValue)
  35016. }
  35017. mv = dd.DecodeString()
  35018. if v != nil {
  35019. v[mk] = mv
  35020. }
  35021. }
  35022. }
  35023. if cr != nil {
  35024. cr.sendContainerState(containerMapEnd)
  35025. }
  35026. return v, changed
  35027. }
  35028. func (f *decFnInfo) fastpathDecMapInt64UintR(rv reflect.Value) {
  35029. if rv.CanAddr() {
  35030. vp := rv.Addr().Interface().(*map[int64]uint)
  35031. v, changed := fastpathTV.DecMapInt64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  35032. if changed {
  35033. *vp = v
  35034. }
  35035. } else {
  35036. v := rv.Interface().(map[int64]uint)
  35037. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, f.d)
  35038. }
  35039. }
  35040. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, checkNil bool, d *Decoder) {
  35041. v, changed := f.DecMapInt64UintV(*vp, checkNil, true, d)
  35042. if changed {
  35043. *vp = v
  35044. }
  35045. }
  35046. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, checkNil bool, canChange bool,
  35047. d *Decoder) (_ map[int64]uint, changed bool) {
  35048. dd := d.d
  35049. cr := d.cr
  35050. if checkNil && dd.TryDecodeAsNil() {
  35051. if v != nil {
  35052. changed = true
  35053. }
  35054. return nil, changed
  35055. }
  35056. containerLen := dd.ReadMapStart()
  35057. if canChange && v == nil {
  35058. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35059. v = make(map[int64]uint, xlen)
  35060. changed = true
  35061. }
  35062. var mk int64
  35063. var mv uint
  35064. if containerLen > 0 {
  35065. for j := 0; j < containerLen; j++ {
  35066. if cr != nil {
  35067. cr.sendContainerState(containerMapKey)
  35068. }
  35069. mk = dd.DecodeInt(64)
  35070. if cr != nil {
  35071. cr.sendContainerState(containerMapValue)
  35072. }
  35073. mv = uint(dd.DecodeUint(uintBitsize))
  35074. if v != nil {
  35075. v[mk] = mv
  35076. }
  35077. }
  35078. } else if containerLen < 0 {
  35079. for j := 0; !dd.CheckBreak(); j++ {
  35080. if cr != nil {
  35081. cr.sendContainerState(containerMapKey)
  35082. }
  35083. mk = dd.DecodeInt(64)
  35084. if cr != nil {
  35085. cr.sendContainerState(containerMapValue)
  35086. }
  35087. mv = uint(dd.DecodeUint(uintBitsize))
  35088. if v != nil {
  35089. v[mk] = mv
  35090. }
  35091. }
  35092. }
  35093. if cr != nil {
  35094. cr.sendContainerState(containerMapEnd)
  35095. }
  35096. return v, changed
  35097. }
  35098. func (f *decFnInfo) fastpathDecMapInt64Uint8R(rv reflect.Value) {
  35099. if rv.CanAddr() {
  35100. vp := rv.Addr().Interface().(*map[int64]uint8)
  35101. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  35102. if changed {
  35103. *vp = v
  35104. }
  35105. } else {
  35106. v := rv.Interface().(map[int64]uint8)
  35107. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  35108. }
  35109. }
  35110. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, checkNil bool, d *Decoder) {
  35111. v, changed := f.DecMapInt64Uint8V(*vp, checkNil, true, d)
  35112. if changed {
  35113. *vp = v
  35114. }
  35115. }
  35116. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, checkNil bool, canChange bool,
  35117. d *Decoder) (_ map[int64]uint8, changed bool) {
  35118. dd := d.d
  35119. cr := d.cr
  35120. if checkNil && dd.TryDecodeAsNil() {
  35121. if v != nil {
  35122. changed = true
  35123. }
  35124. return nil, changed
  35125. }
  35126. containerLen := dd.ReadMapStart()
  35127. if canChange && v == nil {
  35128. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  35129. v = make(map[int64]uint8, xlen)
  35130. changed = true
  35131. }
  35132. var mk int64
  35133. var mv uint8
  35134. if containerLen > 0 {
  35135. for j := 0; j < containerLen; j++ {
  35136. if cr != nil {
  35137. cr.sendContainerState(containerMapKey)
  35138. }
  35139. mk = dd.DecodeInt(64)
  35140. if cr != nil {
  35141. cr.sendContainerState(containerMapValue)
  35142. }
  35143. mv = uint8(dd.DecodeUint(8))
  35144. if v != nil {
  35145. v[mk] = mv
  35146. }
  35147. }
  35148. } else if containerLen < 0 {
  35149. for j := 0; !dd.CheckBreak(); j++ {
  35150. if cr != nil {
  35151. cr.sendContainerState(containerMapKey)
  35152. }
  35153. mk = dd.DecodeInt(64)
  35154. if cr != nil {
  35155. cr.sendContainerState(containerMapValue)
  35156. }
  35157. mv = uint8(dd.DecodeUint(8))
  35158. if v != nil {
  35159. v[mk] = mv
  35160. }
  35161. }
  35162. }
  35163. if cr != nil {
  35164. cr.sendContainerState(containerMapEnd)
  35165. }
  35166. return v, changed
  35167. }
  35168. func (f *decFnInfo) fastpathDecMapInt64Uint16R(rv reflect.Value) {
  35169. if rv.CanAddr() {
  35170. vp := rv.Addr().Interface().(*map[int64]uint16)
  35171. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  35172. if changed {
  35173. *vp = v
  35174. }
  35175. } else {
  35176. v := rv.Interface().(map[int64]uint16)
  35177. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  35178. }
  35179. }
  35180. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, checkNil bool, d *Decoder) {
  35181. v, changed := f.DecMapInt64Uint16V(*vp, checkNil, true, d)
  35182. if changed {
  35183. *vp = v
  35184. }
  35185. }
  35186. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, checkNil bool, canChange bool,
  35187. d *Decoder) (_ map[int64]uint16, changed bool) {
  35188. dd := d.d
  35189. cr := d.cr
  35190. if checkNil && dd.TryDecodeAsNil() {
  35191. if v != nil {
  35192. changed = true
  35193. }
  35194. return nil, changed
  35195. }
  35196. containerLen := dd.ReadMapStart()
  35197. if canChange && v == nil {
  35198. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  35199. v = make(map[int64]uint16, xlen)
  35200. changed = true
  35201. }
  35202. var mk int64
  35203. var mv uint16
  35204. if containerLen > 0 {
  35205. for j := 0; j < containerLen; j++ {
  35206. if cr != nil {
  35207. cr.sendContainerState(containerMapKey)
  35208. }
  35209. mk = dd.DecodeInt(64)
  35210. if cr != nil {
  35211. cr.sendContainerState(containerMapValue)
  35212. }
  35213. mv = uint16(dd.DecodeUint(16))
  35214. if v != nil {
  35215. v[mk] = mv
  35216. }
  35217. }
  35218. } else if containerLen < 0 {
  35219. for j := 0; !dd.CheckBreak(); j++ {
  35220. if cr != nil {
  35221. cr.sendContainerState(containerMapKey)
  35222. }
  35223. mk = dd.DecodeInt(64)
  35224. if cr != nil {
  35225. cr.sendContainerState(containerMapValue)
  35226. }
  35227. mv = uint16(dd.DecodeUint(16))
  35228. if v != nil {
  35229. v[mk] = mv
  35230. }
  35231. }
  35232. }
  35233. if cr != nil {
  35234. cr.sendContainerState(containerMapEnd)
  35235. }
  35236. return v, changed
  35237. }
  35238. func (f *decFnInfo) fastpathDecMapInt64Uint32R(rv reflect.Value) {
  35239. if rv.CanAddr() {
  35240. vp := rv.Addr().Interface().(*map[int64]uint32)
  35241. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  35242. if changed {
  35243. *vp = v
  35244. }
  35245. } else {
  35246. v := rv.Interface().(map[int64]uint32)
  35247. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  35248. }
  35249. }
  35250. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, checkNil bool, d *Decoder) {
  35251. v, changed := f.DecMapInt64Uint32V(*vp, checkNil, true, d)
  35252. if changed {
  35253. *vp = v
  35254. }
  35255. }
  35256. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, checkNil bool, canChange bool,
  35257. d *Decoder) (_ map[int64]uint32, changed bool) {
  35258. dd := d.d
  35259. cr := d.cr
  35260. if checkNil && dd.TryDecodeAsNil() {
  35261. if v != nil {
  35262. changed = true
  35263. }
  35264. return nil, changed
  35265. }
  35266. containerLen := dd.ReadMapStart()
  35267. if canChange && v == nil {
  35268. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  35269. v = make(map[int64]uint32, xlen)
  35270. changed = true
  35271. }
  35272. var mk int64
  35273. var mv uint32
  35274. if containerLen > 0 {
  35275. for j := 0; j < containerLen; j++ {
  35276. if cr != nil {
  35277. cr.sendContainerState(containerMapKey)
  35278. }
  35279. mk = dd.DecodeInt(64)
  35280. if cr != nil {
  35281. cr.sendContainerState(containerMapValue)
  35282. }
  35283. mv = uint32(dd.DecodeUint(32))
  35284. if v != nil {
  35285. v[mk] = mv
  35286. }
  35287. }
  35288. } else if containerLen < 0 {
  35289. for j := 0; !dd.CheckBreak(); j++ {
  35290. if cr != nil {
  35291. cr.sendContainerState(containerMapKey)
  35292. }
  35293. mk = dd.DecodeInt(64)
  35294. if cr != nil {
  35295. cr.sendContainerState(containerMapValue)
  35296. }
  35297. mv = uint32(dd.DecodeUint(32))
  35298. if v != nil {
  35299. v[mk] = mv
  35300. }
  35301. }
  35302. }
  35303. if cr != nil {
  35304. cr.sendContainerState(containerMapEnd)
  35305. }
  35306. return v, changed
  35307. }
  35308. func (f *decFnInfo) fastpathDecMapInt64Uint64R(rv reflect.Value) {
  35309. if rv.CanAddr() {
  35310. vp := rv.Addr().Interface().(*map[int64]uint64)
  35311. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  35312. if changed {
  35313. *vp = v
  35314. }
  35315. } else {
  35316. v := rv.Interface().(map[int64]uint64)
  35317. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  35318. }
  35319. }
  35320. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, checkNil bool, d *Decoder) {
  35321. v, changed := f.DecMapInt64Uint64V(*vp, checkNil, true, d)
  35322. if changed {
  35323. *vp = v
  35324. }
  35325. }
  35326. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, checkNil bool, canChange bool,
  35327. d *Decoder) (_ map[int64]uint64, changed bool) {
  35328. dd := d.d
  35329. cr := d.cr
  35330. if checkNil && dd.TryDecodeAsNil() {
  35331. if v != nil {
  35332. changed = true
  35333. }
  35334. return nil, changed
  35335. }
  35336. containerLen := dd.ReadMapStart()
  35337. if canChange && v == nil {
  35338. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35339. v = make(map[int64]uint64, xlen)
  35340. changed = true
  35341. }
  35342. var mk int64
  35343. var mv uint64
  35344. if containerLen > 0 {
  35345. for j := 0; j < containerLen; j++ {
  35346. if cr != nil {
  35347. cr.sendContainerState(containerMapKey)
  35348. }
  35349. mk = dd.DecodeInt(64)
  35350. if cr != nil {
  35351. cr.sendContainerState(containerMapValue)
  35352. }
  35353. mv = dd.DecodeUint(64)
  35354. if v != nil {
  35355. v[mk] = mv
  35356. }
  35357. }
  35358. } else if containerLen < 0 {
  35359. for j := 0; !dd.CheckBreak(); j++ {
  35360. if cr != nil {
  35361. cr.sendContainerState(containerMapKey)
  35362. }
  35363. mk = dd.DecodeInt(64)
  35364. if cr != nil {
  35365. cr.sendContainerState(containerMapValue)
  35366. }
  35367. mv = dd.DecodeUint(64)
  35368. if v != nil {
  35369. v[mk] = mv
  35370. }
  35371. }
  35372. }
  35373. if cr != nil {
  35374. cr.sendContainerState(containerMapEnd)
  35375. }
  35376. return v, changed
  35377. }
  35378. func (f *decFnInfo) fastpathDecMapInt64UintptrR(rv reflect.Value) {
  35379. if rv.CanAddr() {
  35380. vp := rv.Addr().Interface().(*map[int64]uintptr)
  35381. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  35382. if changed {
  35383. *vp = v
  35384. }
  35385. } else {
  35386. v := rv.Interface().(map[int64]uintptr)
  35387. fastpathTV.DecMapInt64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  35388. }
  35389. }
  35390. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, checkNil bool, d *Decoder) {
  35391. v, changed := f.DecMapInt64UintptrV(*vp, checkNil, true, d)
  35392. if changed {
  35393. *vp = v
  35394. }
  35395. }
  35396. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, checkNil bool, canChange bool,
  35397. d *Decoder) (_ map[int64]uintptr, changed bool) {
  35398. dd := d.d
  35399. cr := d.cr
  35400. if checkNil && dd.TryDecodeAsNil() {
  35401. if v != nil {
  35402. changed = true
  35403. }
  35404. return nil, changed
  35405. }
  35406. containerLen := dd.ReadMapStart()
  35407. if canChange && v == nil {
  35408. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35409. v = make(map[int64]uintptr, xlen)
  35410. changed = true
  35411. }
  35412. var mk int64
  35413. var mv uintptr
  35414. if containerLen > 0 {
  35415. for j := 0; j < containerLen; j++ {
  35416. if cr != nil {
  35417. cr.sendContainerState(containerMapKey)
  35418. }
  35419. mk = dd.DecodeInt(64)
  35420. if cr != nil {
  35421. cr.sendContainerState(containerMapValue)
  35422. }
  35423. mv = uintptr(dd.DecodeUint(uintBitsize))
  35424. if v != nil {
  35425. v[mk] = mv
  35426. }
  35427. }
  35428. } else if containerLen < 0 {
  35429. for j := 0; !dd.CheckBreak(); j++ {
  35430. if cr != nil {
  35431. cr.sendContainerState(containerMapKey)
  35432. }
  35433. mk = dd.DecodeInt(64)
  35434. if cr != nil {
  35435. cr.sendContainerState(containerMapValue)
  35436. }
  35437. mv = uintptr(dd.DecodeUint(uintBitsize))
  35438. if v != nil {
  35439. v[mk] = mv
  35440. }
  35441. }
  35442. }
  35443. if cr != nil {
  35444. cr.sendContainerState(containerMapEnd)
  35445. }
  35446. return v, changed
  35447. }
  35448. func (f *decFnInfo) fastpathDecMapInt64IntR(rv reflect.Value) {
  35449. if rv.CanAddr() {
  35450. vp := rv.Addr().Interface().(*map[int64]int)
  35451. v, changed := fastpathTV.DecMapInt64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  35452. if changed {
  35453. *vp = v
  35454. }
  35455. } else {
  35456. v := rv.Interface().(map[int64]int)
  35457. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, f.d)
  35458. }
  35459. }
  35460. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, checkNil bool, d *Decoder) {
  35461. v, changed := f.DecMapInt64IntV(*vp, checkNil, true, d)
  35462. if changed {
  35463. *vp = v
  35464. }
  35465. }
  35466. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, checkNil bool, canChange bool,
  35467. d *Decoder) (_ map[int64]int, changed bool) {
  35468. dd := d.d
  35469. cr := d.cr
  35470. if checkNil && dd.TryDecodeAsNil() {
  35471. if v != nil {
  35472. changed = true
  35473. }
  35474. return nil, changed
  35475. }
  35476. containerLen := dd.ReadMapStart()
  35477. if canChange && v == nil {
  35478. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35479. v = make(map[int64]int, xlen)
  35480. changed = true
  35481. }
  35482. var mk int64
  35483. var mv int
  35484. if containerLen > 0 {
  35485. for j := 0; j < containerLen; j++ {
  35486. if cr != nil {
  35487. cr.sendContainerState(containerMapKey)
  35488. }
  35489. mk = dd.DecodeInt(64)
  35490. if cr != nil {
  35491. cr.sendContainerState(containerMapValue)
  35492. }
  35493. mv = int(dd.DecodeInt(intBitsize))
  35494. if v != nil {
  35495. v[mk] = mv
  35496. }
  35497. }
  35498. } else if containerLen < 0 {
  35499. for j := 0; !dd.CheckBreak(); j++ {
  35500. if cr != nil {
  35501. cr.sendContainerState(containerMapKey)
  35502. }
  35503. mk = dd.DecodeInt(64)
  35504. if cr != nil {
  35505. cr.sendContainerState(containerMapValue)
  35506. }
  35507. mv = int(dd.DecodeInt(intBitsize))
  35508. if v != nil {
  35509. v[mk] = mv
  35510. }
  35511. }
  35512. }
  35513. if cr != nil {
  35514. cr.sendContainerState(containerMapEnd)
  35515. }
  35516. return v, changed
  35517. }
  35518. func (f *decFnInfo) fastpathDecMapInt64Int8R(rv reflect.Value) {
  35519. if rv.CanAddr() {
  35520. vp := rv.Addr().Interface().(*map[int64]int8)
  35521. v, changed := fastpathTV.DecMapInt64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  35522. if changed {
  35523. *vp = v
  35524. }
  35525. } else {
  35526. v := rv.Interface().(map[int64]int8)
  35527. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, f.d)
  35528. }
  35529. }
  35530. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, checkNil bool, d *Decoder) {
  35531. v, changed := f.DecMapInt64Int8V(*vp, checkNil, true, d)
  35532. if changed {
  35533. *vp = v
  35534. }
  35535. }
  35536. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, checkNil bool, canChange bool,
  35537. d *Decoder) (_ map[int64]int8, changed bool) {
  35538. dd := d.d
  35539. cr := d.cr
  35540. if checkNil && dd.TryDecodeAsNil() {
  35541. if v != nil {
  35542. changed = true
  35543. }
  35544. return nil, changed
  35545. }
  35546. containerLen := dd.ReadMapStart()
  35547. if canChange && v == nil {
  35548. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  35549. v = make(map[int64]int8, xlen)
  35550. changed = true
  35551. }
  35552. var mk int64
  35553. var mv int8
  35554. if containerLen > 0 {
  35555. for j := 0; j < containerLen; j++ {
  35556. if cr != nil {
  35557. cr.sendContainerState(containerMapKey)
  35558. }
  35559. mk = dd.DecodeInt(64)
  35560. if cr != nil {
  35561. cr.sendContainerState(containerMapValue)
  35562. }
  35563. mv = int8(dd.DecodeInt(8))
  35564. if v != nil {
  35565. v[mk] = mv
  35566. }
  35567. }
  35568. } else if containerLen < 0 {
  35569. for j := 0; !dd.CheckBreak(); j++ {
  35570. if cr != nil {
  35571. cr.sendContainerState(containerMapKey)
  35572. }
  35573. mk = dd.DecodeInt(64)
  35574. if cr != nil {
  35575. cr.sendContainerState(containerMapValue)
  35576. }
  35577. mv = int8(dd.DecodeInt(8))
  35578. if v != nil {
  35579. v[mk] = mv
  35580. }
  35581. }
  35582. }
  35583. if cr != nil {
  35584. cr.sendContainerState(containerMapEnd)
  35585. }
  35586. return v, changed
  35587. }
  35588. func (f *decFnInfo) fastpathDecMapInt64Int16R(rv reflect.Value) {
  35589. if rv.CanAddr() {
  35590. vp := rv.Addr().Interface().(*map[int64]int16)
  35591. v, changed := fastpathTV.DecMapInt64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  35592. if changed {
  35593. *vp = v
  35594. }
  35595. } else {
  35596. v := rv.Interface().(map[int64]int16)
  35597. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, f.d)
  35598. }
  35599. }
  35600. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, checkNil bool, d *Decoder) {
  35601. v, changed := f.DecMapInt64Int16V(*vp, checkNil, true, d)
  35602. if changed {
  35603. *vp = v
  35604. }
  35605. }
  35606. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, checkNil bool, canChange bool,
  35607. d *Decoder) (_ map[int64]int16, changed bool) {
  35608. dd := d.d
  35609. cr := d.cr
  35610. if checkNil && dd.TryDecodeAsNil() {
  35611. if v != nil {
  35612. changed = true
  35613. }
  35614. return nil, changed
  35615. }
  35616. containerLen := dd.ReadMapStart()
  35617. if canChange && v == nil {
  35618. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  35619. v = make(map[int64]int16, xlen)
  35620. changed = true
  35621. }
  35622. var mk int64
  35623. var mv int16
  35624. if containerLen > 0 {
  35625. for j := 0; j < containerLen; j++ {
  35626. if cr != nil {
  35627. cr.sendContainerState(containerMapKey)
  35628. }
  35629. mk = dd.DecodeInt(64)
  35630. if cr != nil {
  35631. cr.sendContainerState(containerMapValue)
  35632. }
  35633. mv = int16(dd.DecodeInt(16))
  35634. if v != nil {
  35635. v[mk] = mv
  35636. }
  35637. }
  35638. } else if containerLen < 0 {
  35639. for j := 0; !dd.CheckBreak(); j++ {
  35640. if cr != nil {
  35641. cr.sendContainerState(containerMapKey)
  35642. }
  35643. mk = dd.DecodeInt(64)
  35644. if cr != nil {
  35645. cr.sendContainerState(containerMapValue)
  35646. }
  35647. mv = int16(dd.DecodeInt(16))
  35648. if v != nil {
  35649. v[mk] = mv
  35650. }
  35651. }
  35652. }
  35653. if cr != nil {
  35654. cr.sendContainerState(containerMapEnd)
  35655. }
  35656. return v, changed
  35657. }
  35658. func (f *decFnInfo) fastpathDecMapInt64Int32R(rv reflect.Value) {
  35659. if rv.CanAddr() {
  35660. vp := rv.Addr().Interface().(*map[int64]int32)
  35661. v, changed := fastpathTV.DecMapInt64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  35662. if changed {
  35663. *vp = v
  35664. }
  35665. } else {
  35666. v := rv.Interface().(map[int64]int32)
  35667. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, f.d)
  35668. }
  35669. }
  35670. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, checkNil bool, d *Decoder) {
  35671. v, changed := f.DecMapInt64Int32V(*vp, checkNil, true, d)
  35672. if changed {
  35673. *vp = v
  35674. }
  35675. }
  35676. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, checkNil bool, canChange bool,
  35677. d *Decoder) (_ map[int64]int32, changed bool) {
  35678. dd := d.d
  35679. cr := d.cr
  35680. if checkNil && dd.TryDecodeAsNil() {
  35681. if v != nil {
  35682. changed = true
  35683. }
  35684. return nil, changed
  35685. }
  35686. containerLen := dd.ReadMapStart()
  35687. if canChange && v == nil {
  35688. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  35689. v = make(map[int64]int32, xlen)
  35690. changed = true
  35691. }
  35692. var mk int64
  35693. var mv int32
  35694. if containerLen > 0 {
  35695. for j := 0; j < containerLen; j++ {
  35696. if cr != nil {
  35697. cr.sendContainerState(containerMapKey)
  35698. }
  35699. mk = dd.DecodeInt(64)
  35700. if cr != nil {
  35701. cr.sendContainerState(containerMapValue)
  35702. }
  35703. mv = int32(dd.DecodeInt(32))
  35704. if v != nil {
  35705. v[mk] = mv
  35706. }
  35707. }
  35708. } else if containerLen < 0 {
  35709. for j := 0; !dd.CheckBreak(); j++ {
  35710. if cr != nil {
  35711. cr.sendContainerState(containerMapKey)
  35712. }
  35713. mk = dd.DecodeInt(64)
  35714. if cr != nil {
  35715. cr.sendContainerState(containerMapValue)
  35716. }
  35717. mv = int32(dd.DecodeInt(32))
  35718. if v != nil {
  35719. v[mk] = mv
  35720. }
  35721. }
  35722. }
  35723. if cr != nil {
  35724. cr.sendContainerState(containerMapEnd)
  35725. }
  35726. return v, changed
  35727. }
  35728. func (f *decFnInfo) fastpathDecMapInt64Int64R(rv reflect.Value) {
  35729. if rv.CanAddr() {
  35730. vp := rv.Addr().Interface().(*map[int64]int64)
  35731. v, changed := fastpathTV.DecMapInt64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  35732. if changed {
  35733. *vp = v
  35734. }
  35735. } else {
  35736. v := rv.Interface().(map[int64]int64)
  35737. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, f.d)
  35738. }
  35739. }
  35740. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, checkNil bool, d *Decoder) {
  35741. v, changed := f.DecMapInt64Int64V(*vp, checkNil, true, d)
  35742. if changed {
  35743. *vp = v
  35744. }
  35745. }
  35746. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, checkNil bool, canChange bool,
  35747. d *Decoder) (_ map[int64]int64, changed bool) {
  35748. dd := d.d
  35749. cr := d.cr
  35750. if checkNil && dd.TryDecodeAsNil() {
  35751. if v != nil {
  35752. changed = true
  35753. }
  35754. return nil, changed
  35755. }
  35756. containerLen := dd.ReadMapStart()
  35757. if canChange && v == nil {
  35758. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35759. v = make(map[int64]int64, xlen)
  35760. changed = true
  35761. }
  35762. var mk int64
  35763. var mv int64
  35764. if containerLen > 0 {
  35765. for j := 0; j < containerLen; j++ {
  35766. if cr != nil {
  35767. cr.sendContainerState(containerMapKey)
  35768. }
  35769. mk = dd.DecodeInt(64)
  35770. if cr != nil {
  35771. cr.sendContainerState(containerMapValue)
  35772. }
  35773. mv = dd.DecodeInt(64)
  35774. if v != nil {
  35775. v[mk] = mv
  35776. }
  35777. }
  35778. } else if containerLen < 0 {
  35779. for j := 0; !dd.CheckBreak(); j++ {
  35780. if cr != nil {
  35781. cr.sendContainerState(containerMapKey)
  35782. }
  35783. mk = dd.DecodeInt(64)
  35784. if cr != nil {
  35785. cr.sendContainerState(containerMapValue)
  35786. }
  35787. mv = dd.DecodeInt(64)
  35788. if v != nil {
  35789. v[mk] = mv
  35790. }
  35791. }
  35792. }
  35793. if cr != nil {
  35794. cr.sendContainerState(containerMapEnd)
  35795. }
  35796. return v, changed
  35797. }
  35798. func (f *decFnInfo) fastpathDecMapInt64Float32R(rv reflect.Value) {
  35799. if rv.CanAddr() {
  35800. vp := rv.Addr().Interface().(*map[int64]float32)
  35801. v, changed := fastpathTV.DecMapInt64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  35802. if changed {
  35803. *vp = v
  35804. }
  35805. } else {
  35806. v := rv.Interface().(map[int64]float32)
  35807. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, f.d)
  35808. }
  35809. }
  35810. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, checkNil bool, d *Decoder) {
  35811. v, changed := f.DecMapInt64Float32V(*vp, checkNil, true, d)
  35812. if changed {
  35813. *vp = v
  35814. }
  35815. }
  35816. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, checkNil bool, canChange bool,
  35817. d *Decoder) (_ map[int64]float32, changed bool) {
  35818. dd := d.d
  35819. cr := d.cr
  35820. if checkNil && dd.TryDecodeAsNil() {
  35821. if v != nil {
  35822. changed = true
  35823. }
  35824. return nil, changed
  35825. }
  35826. containerLen := dd.ReadMapStart()
  35827. if canChange && v == nil {
  35828. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  35829. v = make(map[int64]float32, xlen)
  35830. changed = true
  35831. }
  35832. var mk int64
  35833. var mv float32
  35834. if containerLen > 0 {
  35835. for j := 0; j < containerLen; j++ {
  35836. if cr != nil {
  35837. cr.sendContainerState(containerMapKey)
  35838. }
  35839. mk = dd.DecodeInt(64)
  35840. if cr != nil {
  35841. cr.sendContainerState(containerMapValue)
  35842. }
  35843. mv = float32(dd.DecodeFloat(true))
  35844. if v != nil {
  35845. v[mk] = mv
  35846. }
  35847. }
  35848. } else if containerLen < 0 {
  35849. for j := 0; !dd.CheckBreak(); j++ {
  35850. if cr != nil {
  35851. cr.sendContainerState(containerMapKey)
  35852. }
  35853. mk = dd.DecodeInt(64)
  35854. if cr != nil {
  35855. cr.sendContainerState(containerMapValue)
  35856. }
  35857. mv = float32(dd.DecodeFloat(true))
  35858. if v != nil {
  35859. v[mk] = mv
  35860. }
  35861. }
  35862. }
  35863. if cr != nil {
  35864. cr.sendContainerState(containerMapEnd)
  35865. }
  35866. return v, changed
  35867. }
  35868. func (f *decFnInfo) fastpathDecMapInt64Float64R(rv reflect.Value) {
  35869. if rv.CanAddr() {
  35870. vp := rv.Addr().Interface().(*map[int64]float64)
  35871. v, changed := fastpathTV.DecMapInt64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  35872. if changed {
  35873. *vp = v
  35874. }
  35875. } else {
  35876. v := rv.Interface().(map[int64]float64)
  35877. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, f.d)
  35878. }
  35879. }
  35880. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, checkNil bool, d *Decoder) {
  35881. v, changed := f.DecMapInt64Float64V(*vp, checkNil, true, d)
  35882. if changed {
  35883. *vp = v
  35884. }
  35885. }
  35886. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, checkNil bool, canChange bool,
  35887. d *Decoder) (_ map[int64]float64, changed bool) {
  35888. dd := d.d
  35889. cr := d.cr
  35890. if checkNil && dd.TryDecodeAsNil() {
  35891. if v != nil {
  35892. changed = true
  35893. }
  35894. return nil, changed
  35895. }
  35896. containerLen := dd.ReadMapStart()
  35897. if canChange && v == nil {
  35898. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35899. v = make(map[int64]float64, xlen)
  35900. changed = true
  35901. }
  35902. var mk int64
  35903. var mv float64
  35904. if containerLen > 0 {
  35905. for j := 0; j < containerLen; j++ {
  35906. if cr != nil {
  35907. cr.sendContainerState(containerMapKey)
  35908. }
  35909. mk = dd.DecodeInt(64)
  35910. if cr != nil {
  35911. cr.sendContainerState(containerMapValue)
  35912. }
  35913. mv = dd.DecodeFloat(false)
  35914. if v != nil {
  35915. v[mk] = mv
  35916. }
  35917. }
  35918. } else if containerLen < 0 {
  35919. for j := 0; !dd.CheckBreak(); j++ {
  35920. if cr != nil {
  35921. cr.sendContainerState(containerMapKey)
  35922. }
  35923. mk = dd.DecodeInt(64)
  35924. if cr != nil {
  35925. cr.sendContainerState(containerMapValue)
  35926. }
  35927. mv = dd.DecodeFloat(false)
  35928. if v != nil {
  35929. v[mk] = mv
  35930. }
  35931. }
  35932. }
  35933. if cr != nil {
  35934. cr.sendContainerState(containerMapEnd)
  35935. }
  35936. return v, changed
  35937. }
  35938. func (f *decFnInfo) fastpathDecMapInt64BoolR(rv reflect.Value) {
  35939. if rv.CanAddr() {
  35940. vp := rv.Addr().Interface().(*map[int64]bool)
  35941. v, changed := fastpathTV.DecMapInt64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  35942. if changed {
  35943. *vp = v
  35944. }
  35945. } else {
  35946. v := rv.Interface().(map[int64]bool)
  35947. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, f.d)
  35948. }
  35949. }
  35950. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, checkNil bool, d *Decoder) {
  35951. v, changed := f.DecMapInt64BoolV(*vp, checkNil, true, d)
  35952. if changed {
  35953. *vp = v
  35954. }
  35955. }
  35956. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, checkNil bool, canChange bool,
  35957. d *Decoder) (_ map[int64]bool, changed bool) {
  35958. dd := d.d
  35959. cr := d.cr
  35960. if checkNil && dd.TryDecodeAsNil() {
  35961. if v != nil {
  35962. changed = true
  35963. }
  35964. return nil, changed
  35965. }
  35966. containerLen := dd.ReadMapStart()
  35967. if canChange && v == nil {
  35968. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  35969. v = make(map[int64]bool, xlen)
  35970. changed = true
  35971. }
  35972. var mk int64
  35973. var mv bool
  35974. if containerLen > 0 {
  35975. for j := 0; j < containerLen; j++ {
  35976. if cr != nil {
  35977. cr.sendContainerState(containerMapKey)
  35978. }
  35979. mk = dd.DecodeInt(64)
  35980. if cr != nil {
  35981. cr.sendContainerState(containerMapValue)
  35982. }
  35983. mv = dd.DecodeBool()
  35984. if v != nil {
  35985. v[mk] = mv
  35986. }
  35987. }
  35988. } else if containerLen < 0 {
  35989. for j := 0; !dd.CheckBreak(); j++ {
  35990. if cr != nil {
  35991. cr.sendContainerState(containerMapKey)
  35992. }
  35993. mk = dd.DecodeInt(64)
  35994. if cr != nil {
  35995. cr.sendContainerState(containerMapValue)
  35996. }
  35997. mv = dd.DecodeBool()
  35998. if v != nil {
  35999. v[mk] = mv
  36000. }
  36001. }
  36002. }
  36003. if cr != nil {
  36004. cr.sendContainerState(containerMapEnd)
  36005. }
  36006. return v, changed
  36007. }
  36008. func (f *decFnInfo) fastpathDecMapBoolIntfR(rv reflect.Value) {
  36009. if rv.CanAddr() {
  36010. vp := rv.Addr().Interface().(*map[bool]interface{})
  36011. v, changed := fastpathTV.DecMapBoolIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  36012. if changed {
  36013. *vp = v
  36014. }
  36015. } else {
  36016. v := rv.Interface().(map[bool]interface{})
  36017. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, f.d)
  36018. }
  36019. }
  36020. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, checkNil bool, d *Decoder) {
  36021. v, changed := f.DecMapBoolIntfV(*vp, checkNil, true, d)
  36022. if changed {
  36023. *vp = v
  36024. }
  36025. }
  36026. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, checkNil bool, canChange bool,
  36027. d *Decoder) (_ map[bool]interface{}, changed bool) {
  36028. dd := d.d
  36029. cr := d.cr
  36030. if checkNil && dd.TryDecodeAsNil() {
  36031. if v != nil {
  36032. changed = true
  36033. }
  36034. return nil, changed
  36035. }
  36036. containerLen := dd.ReadMapStart()
  36037. if canChange && v == nil {
  36038. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  36039. v = make(map[bool]interface{}, xlen)
  36040. changed = true
  36041. }
  36042. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  36043. var mk bool
  36044. var mv interface{}
  36045. if containerLen > 0 {
  36046. for j := 0; j < containerLen; j++ {
  36047. if cr != nil {
  36048. cr.sendContainerState(containerMapKey)
  36049. }
  36050. mk = dd.DecodeBool()
  36051. if cr != nil {
  36052. cr.sendContainerState(containerMapValue)
  36053. }
  36054. if mapGet {
  36055. mv = v[mk]
  36056. } else {
  36057. mv = nil
  36058. }
  36059. d.decode(&mv)
  36060. if v != nil {
  36061. v[mk] = mv
  36062. }
  36063. }
  36064. } else if containerLen < 0 {
  36065. for j := 0; !dd.CheckBreak(); j++ {
  36066. if cr != nil {
  36067. cr.sendContainerState(containerMapKey)
  36068. }
  36069. mk = dd.DecodeBool()
  36070. if cr != nil {
  36071. cr.sendContainerState(containerMapValue)
  36072. }
  36073. if mapGet {
  36074. mv = v[mk]
  36075. } else {
  36076. mv = nil
  36077. }
  36078. d.decode(&mv)
  36079. if v != nil {
  36080. v[mk] = mv
  36081. }
  36082. }
  36083. }
  36084. if cr != nil {
  36085. cr.sendContainerState(containerMapEnd)
  36086. }
  36087. return v, changed
  36088. }
  36089. func (f *decFnInfo) fastpathDecMapBoolStringR(rv reflect.Value) {
  36090. if rv.CanAddr() {
  36091. vp := rv.Addr().Interface().(*map[bool]string)
  36092. v, changed := fastpathTV.DecMapBoolStringV(*vp, fastpathCheckNilFalse, true, f.d)
  36093. if changed {
  36094. *vp = v
  36095. }
  36096. } else {
  36097. v := rv.Interface().(map[bool]string)
  36098. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, f.d)
  36099. }
  36100. }
  36101. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, checkNil bool, d *Decoder) {
  36102. v, changed := f.DecMapBoolStringV(*vp, checkNil, true, d)
  36103. if changed {
  36104. *vp = v
  36105. }
  36106. }
  36107. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, checkNil bool, canChange bool,
  36108. d *Decoder) (_ map[bool]string, changed bool) {
  36109. dd := d.d
  36110. cr := d.cr
  36111. if checkNil && dd.TryDecodeAsNil() {
  36112. if v != nil {
  36113. changed = true
  36114. }
  36115. return nil, changed
  36116. }
  36117. containerLen := dd.ReadMapStart()
  36118. if canChange && v == nil {
  36119. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  36120. v = make(map[bool]string, xlen)
  36121. changed = true
  36122. }
  36123. var mk bool
  36124. var mv string
  36125. if containerLen > 0 {
  36126. for j := 0; j < containerLen; j++ {
  36127. if cr != nil {
  36128. cr.sendContainerState(containerMapKey)
  36129. }
  36130. mk = dd.DecodeBool()
  36131. if cr != nil {
  36132. cr.sendContainerState(containerMapValue)
  36133. }
  36134. mv = dd.DecodeString()
  36135. if v != nil {
  36136. v[mk] = mv
  36137. }
  36138. }
  36139. } else if containerLen < 0 {
  36140. for j := 0; !dd.CheckBreak(); j++ {
  36141. if cr != nil {
  36142. cr.sendContainerState(containerMapKey)
  36143. }
  36144. mk = dd.DecodeBool()
  36145. if cr != nil {
  36146. cr.sendContainerState(containerMapValue)
  36147. }
  36148. mv = dd.DecodeString()
  36149. if v != nil {
  36150. v[mk] = mv
  36151. }
  36152. }
  36153. }
  36154. if cr != nil {
  36155. cr.sendContainerState(containerMapEnd)
  36156. }
  36157. return v, changed
  36158. }
  36159. func (f *decFnInfo) fastpathDecMapBoolUintR(rv reflect.Value) {
  36160. if rv.CanAddr() {
  36161. vp := rv.Addr().Interface().(*map[bool]uint)
  36162. v, changed := fastpathTV.DecMapBoolUintV(*vp, fastpathCheckNilFalse, true, f.d)
  36163. if changed {
  36164. *vp = v
  36165. }
  36166. } else {
  36167. v := rv.Interface().(map[bool]uint)
  36168. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, f.d)
  36169. }
  36170. }
  36171. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, checkNil bool, d *Decoder) {
  36172. v, changed := f.DecMapBoolUintV(*vp, checkNil, true, d)
  36173. if changed {
  36174. *vp = v
  36175. }
  36176. }
  36177. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, checkNil bool, canChange bool,
  36178. d *Decoder) (_ map[bool]uint, changed bool) {
  36179. dd := d.d
  36180. cr := d.cr
  36181. if checkNil && dd.TryDecodeAsNil() {
  36182. if v != nil {
  36183. changed = true
  36184. }
  36185. return nil, changed
  36186. }
  36187. containerLen := dd.ReadMapStart()
  36188. if canChange && v == nil {
  36189. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36190. v = make(map[bool]uint, xlen)
  36191. changed = true
  36192. }
  36193. var mk bool
  36194. var mv uint
  36195. if containerLen > 0 {
  36196. for j := 0; j < containerLen; j++ {
  36197. if cr != nil {
  36198. cr.sendContainerState(containerMapKey)
  36199. }
  36200. mk = dd.DecodeBool()
  36201. if cr != nil {
  36202. cr.sendContainerState(containerMapValue)
  36203. }
  36204. mv = uint(dd.DecodeUint(uintBitsize))
  36205. if v != nil {
  36206. v[mk] = mv
  36207. }
  36208. }
  36209. } else if containerLen < 0 {
  36210. for j := 0; !dd.CheckBreak(); j++ {
  36211. if cr != nil {
  36212. cr.sendContainerState(containerMapKey)
  36213. }
  36214. mk = dd.DecodeBool()
  36215. if cr != nil {
  36216. cr.sendContainerState(containerMapValue)
  36217. }
  36218. mv = uint(dd.DecodeUint(uintBitsize))
  36219. if v != nil {
  36220. v[mk] = mv
  36221. }
  36222. }
  36223. }
  36224. if cr != nil {
  36225. cr.sendContainerState(containerMapEnd)
  36226. }
  36227. return v, changed
  36228. }
  36229. func (f *decFnInfo) fastpathDecMapBoolUint8R(rv reflect.Value) {
  36230. if rv.CanAddr() {
  36231. vp := rv.Addr().Interface().(*map[bool]uint8)
  36232. v, changed := fastpathTV.DecMapBoolUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  36233. if changed {
  36234. *vp = v
  36235. }
  36236. } else {
  36237. v := rv.Interface().(map[bool]uint8)
  36238. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, f.d)
  36239. }
  36240. }
  36241. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, checkNil bool, d *Decoder) {
  36242. v, changed := f.DecMapBoolUint8V(*vp, checkNil, true, d)
  36243. if changed {
  36244. *vp = v
  36245. }
  36246. }
  36247. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, checkNil bool, canChange bool,
  36248. d *Decoder) (_ map[bool]uint8, changed bool) {
  36249. dd := d.d
  36250. cr := d.cr
  36251. if checkNil && dd.TryDecodeAsNil() {
  36252. if v != nil {
  36253. changed = true
  36254. }
  36255. return nil, changed
  36256. }
  36257. containerLen := dd.ReadMapStart()
  36258. if canChange && v == nil {
  36259. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  36260. v = make(map[bool]uint8, xlen)
  36261. changed = true
  36262. }
  36263. var mk bool
  36264. var mv uint8
  36265. if containerLen > 0 {
  36266. for j := 0; j < containerLen; j++ {
  36267. if cr != nil {
  36268. cr.sendContainerState(containerMapKey)
  36269. }
  36270. mk = dd.DecodeBool()
  36271. if cr != nil {
  36272. cr.sendContainerState(containerMapValue)
  36273. }
  36274. mv = uint8(dd.DecodeUint(8))
  36275. if v != nil {
  36276. v[mk] = mv
  36277. }
  36278. }
  36279. } else if containerLen < 0 {
  36280. for j := 0; !dd.CheckBreak(); j++ {
  36281. if cr != nil {
  36282. cr.sendContainerState(containerMapKey)
  36283. }
  36284. mk = dd.DecodeBool()
  36285. if cr != nil {
  36286. cr.sendContainerState(containerMapValue)
  36287. }
  36288. mv = uint8(dd.DecodeUint(8))
  36289. if v != nil {
  36290. v[mk] = mv
  36291. }
  36292. }
  36293. }
  36294. if cr != nil {
  36295. cr.sendContainerState(containerMapEnd)
  36296. }
  36297. return v, changed
  36298. }
  36299. func (f *decFnInfo) fastpathDecMapBoolUint16R(rv reflect.Value) {
  36300. if rv.CanAddr() {
  36301. vp := rv.Addr().Interface().(*map[bool]uint16)
  36302. v, changed := fastpathTV.DecMapBoolUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  36303. if changed {
  36304. *vp = v
  36305. }
  36306. } else {
  36307. v := rv.Interface().(map[bool]uint16)
  36308. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, f.d)
  36309. }
  36310. }
  36311. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, checkNil bool, d *Decoder) {
  36312. v, changed := f.DecMapBoolUint16V(*vp, checkNil, true, d)
  36313. if changed {
  36314. *vp = v
  36315. }
  36316. }
  36317. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, checkNil bool, canChange bool,
  36318. d *Decoder) (_ map[bool]uint16, changed bool) {
  36319. dd := d.d
  36320. cr := d.cr
  36321. if checkNil && dd.TryDecodeAsNil() {
  36322. if v != nil {
  36323. changed = true
  36324. }
  36325. return nil, changed
  36326. }
  36327. containerLen := dd.ReadMapStart()
  36328. if canChange && v == nil {
  36329. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  36330. v = make(map[bool]uint16, xlen)
  36331. changed = true
  36332. }
  36333. var mk bool
  36334. var mv uint16
  36335. if containerLen > 0 {
  36336. for j := 0; j < containerLen; j++ {
  36337. if cr != nil {
  36338. cr.sendContainerState(containerMapKey)
  36339. }
  36340. mk = dd.DecodeBool()
  36341. if cr != nil {
  36342. cr.sendContainerState(containerMapValue)
  36343. }
  36344. mv = uint16(dd.DecodeUint(16))
  36345. if v != nil {
  36346. v[mk] = mv
  36347. }
  36348. }
  36349. } else if containerLen < 0 {
  36350. for j := 0; !dd.CheckBreak(); j++ {
  36351. if cr != nil {
  36352. cr.sendContainerState(containerMapKey)
  36353. }
  36354. mk = dd.DecodeBool()
  36355. if cr != nil {
  36356. cr.sendContainerState(containerMapValue)
  36357. }
  36358. mv = uint16(dd.DecodeUint(16))
  36359. if v != nil {
  36360. v[mk] = mv
  36361. }
  36362. }
  36363. }
  36364. if cr != nil {
  36365. cr.sendContainerState(containerMapEnd)
  36366. }
  36367. return v, changed
  36368. }
  36369. func (f *decFnInfo) fastpathDecMapBoolUint32R(rv reflect.Value) {
  36370. if rv.CanAddr() {
  36371. vp := rv.Addr().Interface().(*map[bool]uint32)
  36372. v, changed := fastpathTV.DecMapBoolUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  36373. if changed {
  36374. *vp = v
  36375. }
  36376. } else {
  36377. v := rv.Interface().(map[bool]uint32)
  36378. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, f.d)
  36379. }
  36380. }
  36381. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, checkNil bool, d *Decoder) {
  36382. v, changed := f.DecMapBoolUint32V(*vp, checkNil, true, d)
  36383. if changed {
  36384. *vp = v
  36385. }
  36386. }
  36387. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, checkNil bool, canChange bool,
  36388. d *Decoder) (_ map[bool]uint32, changed bool) {
  36389. dd := d.d
  36390. cr := d.cr
  36391. if checkNil && dd.TryDecodeAsNil() {
  36392. if v != nil {
  36393. changed = true
  36394. }
  36395. return nil, changed
  36396. }
  36397. containerLen := dd.ReadMapStart()
  36398. if canChange && v == nil {
  36399. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  36400. v = make(map[bool]uint32, xlen)
  36401. changed = true
  36402. }
  36403. var mk bool
  36404. var mv uint32
  36405. if containerLen > 0 {
  36406. for j := 0; j < containerLen; j++ {
  36407. if cr != nil {
  36408. cr.sendContainerState(containerMapKey)
  36409. }
  36410. mk = dd.DecodeBool()
  36411. if cr != nil {
  36412. cr.sendContainerState(containerMapValue)
  36413. }
  36414. mv = uint32(dd.DecodeUint(32))
  36415. if v != nil {
  36416. v[mk] = mv
  36417. }
  36418. }
  36419. } else if containerLen < 0 {
  36420. for j := 0; !dd.CheckBreak(); j++ {
  36421. if cr != nil {
  36422. cr.sendContainerState(containerMapKey)
  36423. }
  36424. mk = dd.DecodeBool()
  36425. if cr != nil {
  36426. cr.sendContainerState(containerMapValue)
  36427. }
  36428. mv = uint32(dd.DecodeUint(32))
  36429. if v != nil {
  36430. v[mk] = mv
  36431. }
  36432. }
  36433. }
  36434. if cr != nil {
  36435. cr.sendContainerState(containerMapEnd)
  36436. }
  36437. return v, changed
  36438. }
  36439. func (f *decFnInfo) fastpathDecMapBoolUint64R(rv reflect.Value) {
  36440. if rv.CanAddr() {
  36441. vp := rv.Addr().Interface().(*map[bool]uint64)
  36442. v, changed := fastpathTV.DecMapBoolUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  36443. if changed {
  36444. *vp = v
  36445. }
  36446. } else {
  36447. v := rv.Interface().(map[bool]uint64)
  36448. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, f.d)
  36449. }
  36450. }
  36451. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, checkNil bool, d *Decoder) {
  36452. v, changed := f.DecMapBoolUint64V(*vp, checkNil, true, d)
  36453. if changed {
  36454. *vp = v
  36455. }
  36456. }
  36457. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, checkNil bool, canChange bool,
  36458. d *Decoder) (_ map[bool]uint64, changed bool) {
  36459. dd := d.d
  36460. cr := d.cr
  36461. if checkNil && dd.TryDecodeAsNil() {
  36462. if v != nil {
  36463. changed = true
  36464. }
  36465. return nil, changed
  36466. }
  36467. containerLen := dd.ReadMapStart()
  36468. if canChange && v == nil {
  36469. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36470. v = make(map[bool]uint64, xlen)
  36471. changed = true
  36472. }
  36473. var mk bool
  36474. var mv uint64
  36475. if containerLen > 0 {
  36476. for j := 0; j < containerLen; j++ {
  36477. if cr != nil {
  36478. cr.sendContainerState(containerMapKey)
  36479. }
  36480. mk = dd.DecodeBool()
  36481. if cr != nil {
  36482. cr.sendContainerState(containerMapValue)
  36483. }
  36484. mv = dd.DecodeUint(64)
  36485. if v != nil {
  36486. v[mk] = mv
  36487. }
  36488. }
  36489. } else if containerLen < 0 {
  36490. for j := 0; !dd.CheckBreak(); j++ {
  36491. if cr != nil {
  36492. cr.sendContainerState(containerMapKey)
  36493. }
  36494. mk = dd.DecodeBool()
  36495. if cr != nil {
  36496. cr.sendContainerState(containerMapValue)
  36497. }
  36498. mv = dd.DecodeUint(64)
  36499. if v != nil {
  36500. v[mk] = mv
  36501. }
  36502. }
  36503. }
  36504. if cr != nil {
  36505. cr.sendContainerState(containerMapEnd)
  36506. }
  36507. return v, changed
  36508. }
  36509. func (f *decFnInfo) fastpathDecMapBoolUintptrR(rv reflect.Value) {
  36510. if rv.CanAddr() {
  36511. vp := rv.Addr().Interface().(*map[bool]uintptr)
  36512. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  36513. if changed {
  36514. *vp = v
  36515. }
  36516. } else {
  36517. v := rv.Interface().(map[bool]uintptr)
  36518. fastpathTV.DecMapBoolUintptrV(v, fastpathCheckNilFalse, false, f.d)
  36519. }
  36520. }
  36521. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, checkNil bool, d *Decoder) {
  36522. v, changed := f.DecMapBoolUintptrV(*vp, checkNil, true, d)
  36523. if changed {
  36524. *vp = v
  36525. }
  36526. }
  36527. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, checkNil bool, canChange bool,
  36528. d *Decoder) (_ map[bool]uintptr, changed bool) {
  36529. dd := d.d
  36530. cr := d.cr
  36531. if checkNil && dd.TryDecodeAsNil() {
  36532. if v != nil {
  36533. changed = true
  36534. }
  36535. return nil, changed
  36536. }
  36537. containerLen := dd.ReadMapStart()
  36538. if canChange && v == nil {
  36539. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36540. v = make(map[bool]uintptr, xlen)
  36541. changed = true
  36542. }
  36543. var mk bool
  36544. var mv uintptr
  36545. if containerLen > 0 {
  36546. for j := 0; j < containerLen; j++ {
  36547. if cr != nil {
  36548. cr.sendContainerState(containerMapKey)
  36549. }
  36550. mk = dd.DecodeBool()
  36551. if cr != nil {
  36552. cr.sendContainerState(containerMapValue)
  36553. }
  36554. mv = uintptr(dd.DecodeUint(uintBitsize))
  36555. if v != nil {
  36556. v[mk] = mv
  36557. }
  36558. }
  36559. } else if containerLen < 0 {
  36560. for j := 0; !dd.CheckBreak(); j++ {
  36561. if cr != nil {
  36562. cr.sendContainerState(containerMapKey)
  36563. }
  36564. mk = dd.DecodeBool()
  36565. if cr != nil {
  36566. cr.sendContainerState(containerMapValue)
  36567. }
  36568. mv = uintptr(dd.DecodeUint(uintBitsize))
  36569. if v != nil {
  36570. v[mk] = mv
  36571. }
  36572. }
  36573. }
  36574. if cr != nil {
  36575. cr.sendContainerState(containerMapEnd)
  36576. }
  36577. return v, changed
  36578. }
  36579. func (f *decFnInfo) fastpathDecMapBoolIntR(rv reflect.Value) {
  36580. if rv.CanAddr() {
  36581. vp := rv.Addr().Interface().(*map[bool]int)
  36582. v, changed := fastpathTV.DecMapBoolIntV(*vp, fastpathCheckNilFalse, true, f.d)
  36583. if changed {
  36584. *vp = v
  36585. }
  36586. } else {
  36587. v := rv.Interface().(map[bool]int)
  36588. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, f.d)
  36589. }
  36590. }
  36591. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, checkNil bool, d *Decoder) {
  36592. v, changed := f.DecMapBoolIntV(*vp, checkNil, true, d)
  36593. if changed {
  36594. *vp = v
  36595. }
  36596. }
  36597. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, checkNil bool, canChange bool,
  36598. d *Decoder) (_ map[bool]int, changed bool) {
  36599. dd := d.d
  36600. cr := d.cr
  36601. if checkNil && dd.TryDecodeAsNil() {
  36602. if v != nil {
  36603. changed = true
  36604. }
  36605. return nil, changed
  36606. }
  36607. containerLen := dd.ReadMapStart()
  36608. if canChange && v == nil {
  36609. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36610. v = make(map[bool]int, xlen)
  36611. changed = true
  36612. }
  36613. var mk bool
  36614. var mv int
  36615. if containerLen > 0 {
  36616. for j := 0; j < containerLen; j++ {
  36617. if cr != nil {
  36618. cr.sendContainerState(containerMapKey)
  36619. }
  36620. mk = dd.DecodeBool()
  36621. if cr != nil {
  36622. cr.sendContainerState(containerMapValue)
  36623. }
  36624. mv = int(dd.DecodeInt(intBitsize))
  36625. if v != nil {
  36626. v[mk] = mv
  36627. }
  36628. }
  36629. } else if containerLen < 0 {
  36630. for j := 0; !dd.CheckBreak(); j++ {
  36631. if cr != nil {
  36632. cr.sendContainerState(containerMapKey)
  36633. }
  36634. mk = dd.DecodeBool()
  36635. if cr != nil {
  36636. cr.sendContainerState(containerMapValue)
  36637. }
  36638. mv = int(dd.DecodeInt(intBitsize))
  36639. if v != nil {
  36640. v[mk] = mv
  36641. }
  36642. }
  36643. }
  36644. if cr != nil {
  36645. cr.sendContainerState(containerMapEnd)
  36646. }
  36647. return v, changed
  36648. }
  36649. func (f *decFnInfo) fastpathDecMapBoolInt8R(rv reflect.Value) {
  36650. if rv.CanAddr() {
  36651. vp := rv.Addr().Interface().(*map[bool]int8)
  36652. v, changed := fastpathTV.DecMapBoolInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  36653. if changed {
  36654. *vp = v
  36655. }
  36656. } else {
  36657. v := rv.Interface().(map[bool]int8)
  36658. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, f.d)
  36659. }
  36660. }
  36661. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, checkNil bool, d *Decoder) {
  36662. v, changed := f.DecMapBoolInt8V(*vp, checkNil, true, d)
  36663. if changed {
  36664. *vp = v
  36665. }
  36666. }
  36667. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, checkNil bool, canChange bool,
  36668. d *Decoder) (_ map[bool]int8, changed bool) {
  36669. dd := d.d
  36670. cr := d.cr
  36671. if checkNil && dd.TryDecodeAsNil() {
  36672. if v != nil {
  36673. changed = true
  36674. }
  36675. return nil, changed
  36676. }
  36677. containerLen := dd.ReadMapStart()
  36678. if canChange && v == nil {
  36679. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  36680. v = make(map[bool]int8, xlen)
  36681. changed = true
  36682. }
  36683. var mk bool
  36684. var mv int8
  36685. if containerLen > 0 {
  36686. for j := 0; j < containerLen; j++ {
  36687. if cr != nil {
  36688. cr.sendContainerState(containerMapKey)
  36689. }
  36690. mk = dd.DecodeBool()
  36691. if cr != nil {
  36692. cr.sendContainerState(containerMapValue)
  36693. }
  36694. mv = int8(dd.DecodeInt(8))
  36695. if v != nil {
  36696. v[mk] = mv
  36697. }
  36698. }
  36699. } else if containerLen < 0 {
  36700. for j := 0; !dd.CheckBreak(); j++ {
  36701. if cr != nil {
  36702. cr.sendContainerState(containerMapKey)
  36703. }
  36704. mk = dd.DecodeBool()
  36705. if cr != nil {
  36706. cr.sendContainerState(containerMapValue)
  36707. }
  36708. mv = int8(dd.DecodeInt(8))
  36709. if v != nil {
  36710. v[mk] = mv
  36711. }
  36712. }
  36713. }
  36714. if cr != nil {
  36715. cr.sendContainerState(containerMapEnd)
  36716. }
  36717. return v, changed
  36718. }
  36719. func (f *decFnInfo) fastpathDecMapBoolInt16R(rv reflect.Value) {
  36720. if rv.CanAddr() {
  36721. vp := rv.Addr().Interface().(*map[bool]int16)
  36722. v, changed := fastpathTV.DecMapBoolInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  36723. if changed {
  36724. *vp = v
  36725. }
  36726. } else {
  36727. v := rv.Interface().(map[bool]int16)
  36728. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, f.d)
  36729. }
  36730. }
  36731. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, checkNil bool, d *Decoder) {
  36732. v, changed := f.DecMapBoolInt16V(*vp, checkNil, true, d)
  36733. if changed {
  36734. *vp = v
  36735. }
  36736. }
  36737. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, checkNil bool, canChange bool,
  36738. d *Decoder) (_ map[bool]int16, changed bool) {
  36739. dd := d.d
  36740. cr := d.cr
  36741. if checkNil && dd.TryDecodeAsNil() {
  36742. if v != nil {
  36743. changed = true
  36744. }
  36745. return nil, changed
  36746. }
  36747. containerLen := dd.ReadMapStart()
  36748. if canChange && v == nil {
  36749. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  36750. v = make(map[bool]int16, xlen)
  36751. changed = true
  36752. }
  36753. var mk bool
  36754. var mv int16
  36755. if containerLen > 0 {
  36756. for j := 0; j < containerLen; j++ {
  36757. if cr != nil {
  36758. cr.sendContainerState(containerMapKey)
  36759. }
  36760. mk = dd.DecodeBool()
  36761. if cr != nil {
  36762. cr.sendContainerState(containerMapValue)
  36763. }
  36764. mv = int16(dd.DecodeInt(16))
  36765. if v != nil {
  36766. v[mk] = mv
  36767. }
  36768. }
  36769. } else if containerLen < 0 {
  36770. for j := 0; !dd.CheckBreak(); j++ {
  36771. if cr != nil {
  36772. cr.sendContainerState(containerMapKey)
  36773. }
  36774. mk = dd.DecodeBool()
  36775. if cr != nil {
  36776. cr.sendContainerState(containerMapValue)
  36777. }
  36778. mv = int16(dd.DecodeInt(16))
  36779. if v != nil {
  36780. v[mk] = mv
  36781. }
  36782. }
  36783. }
  36784. if cr != nil {
  36785. cr.sendContainerState(containerMapEnd)
  36786. }
  36787. return v, changed
  36788. }
  36789. func (f *decFnInfo) fastpathDecMapBoolInt32R(rv reflect.Value) {
  36790. if rv.CanAddr() {
  36791. vp := rv.Addr().Interface().(*map[bool]int32)
  36792. v, changed := fastpathTV.DecMapBoolInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  36793. if changed {
  36794. *vp = v
  36795. }
  36796. } else {
  36797. v := rv.Interface().(map[bool]int32)
  36798. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, f.d)
  36799. }
  36800. }
  36801. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, checkNil bool, d *Decoder) {
  36802. v, changed := f.DecMapBoolInt32V(*vp, checkNil, true, d)
  36803. if changed {
  36804. *vp = v
  36805. }
  36806. }
  36807. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, checkNil bool, canChange bool,
  36808. d *Decoder) (_ map[bool]int32, changed bool) {
  36809. dd := d.d
  36810. cr := d.cr
  36811. if checkNil && dd.TryDecodeAsNil() {
  36812. if v != nil {
  36813. changed = true
  36814. }
  36815. return nil, changed
  36816. }
  36817. containerLen := dd.ReadMapStart()
  36818. if canChange && v == nil {
  36819. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  36820. v = make(map[bool]int32, xlen)
  36821. changed = true
  36822. }
  36823. var mk bool
  36824. var mv int32
  36825. if containerLen > 0 {
  36826. for j := 0; j < containerLen; j++ {
  36827. if cr != nil {
  36828. cr.sendContainerState(containerMapKey)
  36829. }
  36830. mk = dd.DecodeBool()
  36831. if cr != nil {
  36832. cr.sendContainerState(containerMapValue)
  36833. }
  36834. mv = int32(dd.DecodeInt(32))
  36835. if v != nil {
  36836. v[mk] = mv
  36837. }
  36838. }
  36839. } else if containerLen < 0 {
  36840. for j := 0; !dd.CheckBreak(); j++ {
  36841. if cr != nil {
  36842. cr.sendContainerState(containerMapKey)
  36843. }
  36844. mk = dd.DecodeBool()
  36845. if cr != nil {
  36846. cr.sendContainerState(containerMapValue)
  36847. }
  36848. mv = int32(dd.DecodeInt(32))
  36849. if v != nil {
  36850. v[mk] = mv
  36851. }
  36852. }
  36853. }
  36854. if cr != nil {
  36855. cr.sendContainerState(containerMapEnd)
  36856. }
  36857. return v, changed
  36858. }
  36859. func (f *decFnInfo) fastpathDecMapBoolInt64R(rv reflect.Value) {
  36860. if rv.CanAddr() {
  36861. vp := rv.Addr().Interface().(*map[bool]int64)
  36862. v, changed := fastpathTV.DecMapBoolInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  36863. if changed {
  36864. *vp = v
  36865. }
  36866. } else {
  36867. v := rv.Interface().(map[bool]int64)
  36868. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, f.d)
  36869. }
  36870. }
  36871. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, checkNil bool, d *Decoder) {
  36872. v, changed := f.DecMapBoolInt64V(*vp, checkNil, true, d)
  36873. if changed {
  36874. *vp = v
  36875. }
  36876. }
  36877. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, checkNil bool, canChange bool,
  36878. d *Decoder) (_ map[bool]int64, changed bool) {
  36879. dd := d.d
  36880. cr := d.cr
  36881. if checkNil && dd.TryDecodeAsNil() {
  36882. if v != nil {
  36883. changed = true
  36884. }
  36885. return nil, changed
  36886. }
  36887. containerLen := dd.ReadMapStart()
  36888. if canChange && v == nil {
  36889. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36890. v = make(map[bool]int64, xlen)
  36891. changed = true
  36892. }
  36893. var mk bool
  36894. var mv int64
  36895. if containerLen > 0 {
  36896. for j := 0; j < containerLen; j++ {
  36897. if cr != nil {
  36898. cr.sendContainerState(containerMapKey)
  36899. }
  36900. mk = dd.DecodeBool()
  36901. if cr != nil {
  36902. cr.sendContainerState(containerMapValue)
  36903. }
  36904. mv = dd.DecodeInt(64)
  36905. if v != nil {
  36906. v[mk] = mv
  36907. }
  36908. }
  36909. } else if containerLen < 0 {
  36910. for j := 0; !dd.CheckBreak(); j++ {
  36911. if cr != nil {
  36912. cr.sendContainerState(containerMapKey)
  36913. }
  36914. mk = dd.DecodeBool()
  36915. if cr != nil {
  36916. cr.sendContainerState(containerMapValue)
  36917. }
  36918. mv = dd.DecodeInt(64)
  36919. if v != nil {
  36920. v[mk] = mv
  36921. }
  36922. }
  36923. }
  36924. if cr != nil {
  36925. cr.sendContainerState(containerMapEnd)
  36926. }
  36927. return v, changed
  36928. }
  36929. func (f *decFnInfo) fastpathDecMapBoolFloat32R(rv reflect.Value) {
  36930. if rv.CanAddr() {
  36931. vp := rv.Addr().Interface().(*map[bool]float32)
  36932. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  36933. if changed {
  36934. *vp = v
  36935. }
  36936. } else {
  36937. v := rv.Interface().(map[bool]float32)
  36938. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, f.d)
  36939. }
  36940. }
  36941. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, checkNil bool, d *Decoder) {
  36942. v, changed := f.DecMapBoolFloat32V(*vp, checkNil, true, d)
  36943. if changed {
  36944. *vp = v
  36945. }
  36946. }
  36947. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, checkNil bool, canChange bool,
  36948. d *Decoder) (_ map[bool]float32, changed bool) {
  36949. dd := d.d
  36950. cr := d.cr
  36951. if checkNil && dd.TryDecodeAsNil() {
  36952. if v != nil {
  36953. changed = true
  36954. }
  36955. return nil, changed
  36956. }
  36957. containerLen := dd.ReadMapStart()
  36958. if canChange && v == nil {
  36959. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  36960. v = make(map[bool]float32, xlen)
  36961. changed = true
  36962. }
  36963. var mk bool
  36964. var mv float32
  36965. if containerLen > 0 {
  36966. for j := 0; j < containerLen; j++ {
  36967. if cr != nil {
  36968. cr.sendContainerState(containerMapKey)
  36969. }
  36970. mk = dd.DecodeBool()
  36971. if cr != nil {
  36972. cr.sendContainerState(containerMapValue)
  36973. }
  36974. mv = float32(dd.DecodeFloat(true))
  36975. if v != nil {
  36976. v[mk] = mv
  36977. }
  36978. }
  36979. } else if containerLen < 0 {
  36980. for j := 0; !dd.CheckBreak(); j++ {
  36981. if cr != nil {
  36982. cr.sendContainerState(containerMapKey)
  36983. }
  36984. mk = dd.DecodeBool()
  36985. if cr != nil {
  36986. cr.sendContainerState(containerMapValue)
  36987. }
  36988. mv = float32(dd.DecodeFloat(true))
  36989. if v != nil {
  36990. v[mk] = mv
  36991. }
  36992. }
  36993. }
  36994. if cr != nil {
  36995. cr.sendContainerState(containerMapEnd)
  36996. }
  36997. return v, changed
  36998. }
  36999. func (f *decFnInfo) fastpathDecMapBoolFloat64R(rv reflect.Value) {
  37000. if rv.CanAddr() {
  37001. vp := rv.Addr().Interface().(*map[bool]float64)
  37002. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  37003. if changed {
  37004. *vp = v
  37005. }
  37006. } else {
  37007. v := rv.Interface().(map[bool]float64)
  37008. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, f.d)
  37009. }
  37010. }
  37011. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, checkNil bool, d *Decoder) {
  37012. v, changed := f.DecMapBoolFloat64V(*vp, checkNil, true, d)
  37013. if changed {
  37014. *vp = v
  37015. }
  37016. }
  37017. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, checkNil bool, canChange bool,
  37018. d *Decoder) (_ map[bool]float64, changed bool) {
  37019. dd := d.d
  37020. cr := d.cr
  37021. if checkNil && dd.TryDecodeAsNil() {
  37022. if v != nil {
  37023. changed = true
  37024. }
  37025. return nil, changed
  37026. }
  37027. containerLen := dd.ReadMapStart()
  37028. if canChange && v == nil {
  37029. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  37030. v = make(map[bool]float64, xlen)
  37031. changed = true
  37032. }
  37033. var mk bool
  37034. var mv float64
  37035. if containerLen > 0 {
  37036. for j := 0; j < containerLen; j++ {
  37037. if cr != nil {
  37038. cr.sendContainerState(containerMapKey)
  37039. }
  37040. mk = dd.DecodeBool()
  37041. if cr != nil {
  37042. cr.sendContainerState(containerMapValue)
  37043. }
  37044. mv = dd.DecodeFloat(false)
  37045. if v != nil {
  37046. v[mk] = mv
  37047. }
  37048. }
  37049. } else if containerLen < 0 {
  37050. for j := 0; !dd.CheckBreak(); j++ {
  37051. if cr != nil {
  37052. cr.sendContainerState(containerMapKey)
  37053. }
  37054. mk = dd.DecodeBool()
  37055. if cr != nil {
  37056. cr.sendContainerState(containerMapValue)
  37057. }
  37058. mv = dd.DecodeFloat(false)
  37059. if v != nil {
  37060. v[mk] = mv
  37061. }
  37062. }
  37063. }
  37064. if cr != nil {
  37065. cr.sendContainerState(containerMapEnd)
  37066. }
  37067. return v, changed
  37068. }
  37069. func (f *decFnInfo) fastpathDecMapBoolBoolR(rv reflect.Value) {
  37070. if rv.CanAddr() {
  37071. vp := rv.Addr().Interface().(*map[bool]bool)
  37072. v, changed := fastpathTV.DecMapBoolBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  37073. if changed {
  37074. *vp = v
  37075. }
  37076. } else {
  37077. v := rv.Interface().(map[bool]bool)
  37078. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, f.d)
  37079. }
  37080. }
  37081. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, checkNil bool, d *Decoder) {
  37082. v, changed := f.DecMapBoolBoolV(*vp, checkNil, true, d)
  37083. if changed {
  37084. *vp = v
  37085. }
  37086. }
  37087. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, checkNil bool, canChange bool,
  37088. d *Decoder) (_ map[bool]bool, changed bool) {
  37089. dd := d.d
  37090. cr := d.cr
  37091. if checkNil && dd.TryDecodeAsNil() {
  37092. if v != nil {
  37093. changed = true
  37094. }
  37095. return nil, changed
  37096. }
  37097. containerLen := dd.ReadMapStart()
  37098. if canChange && v == nil {
  37099. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  37100. v = make(map[bool]bool, xlen)
  37101. changed = true
  37102. }
  37103. var mk bool
  37104. var mv bool
  37105. if containerLen > 0 {
  37106. for j := 0; j < containerLen; j++ {
  37107. if cr != nil {
  37108. cr.sendContainerState(containerMapKey)
  37109. }
  37110. mk = dd.DecodeBool()
  37111. if cr != nil {
  37112. cr.sendContainerState(containerMapValue)
  37113. }
  37114. mv = dd.DecodeBool()
  37115. if v != nil {
  37116. v[mk] = mv
  37117. }
  37118. }
  37119. } else if containerLen < 0 {
  37120. for j := 0; !dd.CheckBreak(); j++ {
  37121. if cr != nil {
  37122. cr.sendContainerState(containerMapKey)
  37123. }
  37124. mk = dd.DecodeBool()
  37125. if cr != nil {
  37126. cr.sendContainerState(containerMapValue)
  37127. }
  37128. mv = dd.DecodeBool()
  37129. if v != nil {
  37130. v[mk] = mv
  37131. }
  37132. }
  37133. }
  37134. if cr != nil {
  37135. cr.sendContainerState(containerMapEnd)
  37136. }
  37137. return v, changed
  37138. }