fast-path.generated.go 936 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365
  1. // +build !notfastpath
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // ************************************************************
  5. // DO NOT EDIT.
  6. // THIS FILE IS AUTO-GENERATED from fast-path.go.tmpl
  7. // ************************************************************
  8. package codec
  9. // Fast path functions try to create a fast path encode or decode implementation
  10. // for common maps and slices.
  11. //
  12. // We define the functions and register then in this single file
  13. // so as not to pollute the encode.go and decode.go, and create a dependency in there.
  14. // This file can be omitted without causing a build failure.
  15. //
  16. // The advantage of fast paths is:
  17. // - Many calls bypass reflection altogether
  18. //
  19. // Currently support
  20. // - slice of all builtin types,
  21. // - map of all builtin types to string or interface value
  22. // - symetrical maps of all builtin types (e.g. str-str, uint8-uint8)
  23. // This should provide adequate "typical" implementations.
  24. //
  25. // Note that fast track decode functions must handle values for which an address cannot be obtained.
  26. // For example:
  27. // m2 := map[string]int{}
  28. // p2 := []interface{}{m2}
  29. // // decoding into p2 will bomb if fast track functions do not treat like unaddressable.
  30. //
  31. import (
  32. "reflect"
  33. "sort"
  34. )
  35. const fastpathCheckNilFalse = false // for reflect
  36. const fastpathCheckNilTrue = true // for type switch
  37. type fastpathT struct{}
  38. var fastpathTV fastpathT
  39. type fastpathE struct {
  40. rtid uintptr
  41. rt reflect.Type
  42. encfn func(*encFnInfo, reflect.Value)
  43. decfn func(*decFnInfo, reflect.Value)
  44. }
  45. type fastpathA [271]fastpathE
  46. func (x *fastpathA) index(rtid uintptr) int {
  47. // use binary search to grab the index (adapted from sort/search.go)
  48. h, i, j := 0, 0, 271 // len(x)
  49. for i < j {
  50. h = i + (j-i)/2
  51. if x[h].rtid < rtid {
  52. i = h + 1
  53. } else {
  54. j = h
  55. }
  56. }
  57. if i < 271 && x[i].rtid == rtid {
  58. return i
  59. }
  60. return -1
  61. }
  62. type fastpathAslice []fastpathE
  63. func (x fastpathAslice) Len() int { return len(x) }
  64. func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
  65. func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
  66. var fastpathAV fastpathA
  67. // due to possible initialization loop error, make fastpath in an init()
  68. func init() {
  69. if !fastpathEnabled {
  70. return
  71. }
  72. i := 0
  73. fn := func(v interface{}, fe func(*encFnInfo, reflect.Value), fd func(*decFnInfo, reflect.Value)) (f fastpathE) {
  74. xrt := reflect.TypeOf(v)
  75. xptr := reflect.ValueOf(xrt).Pointer()
  76. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  77. i++
  78. return
  79. }
  80. fn([]interface{}(nil), (*encFnInfo).fastpathEncSliceIntfR, (*decFnInfo).fastpathDecSliceIntfR)
  81. fn([]string(nil), (*encFnInfo).fastpathEncSliceStringR, (*decFnInfo).fastpathDecSliceStringR)
  82. fn([]float32(nil), (*encFnInfo).fastpathEncSliceFloat32R, (*decFnInfo).fastpathDecSliceFloat32R)
  83. fn([]float64(nil), (*encFnInfo).fastpathEncSliceFloat64R, (*decFnInfo).fastpathDecSliceFloat64R)
  84. fn([]uint(nil), (*encFnInfo).fastpathEncSliceUintR, (*decFnInfo).fastpathDecSliceUintR)
  85. fn([]uint16(nil), (*encFnInfo).fastpathEncSliceUint16R, (*decFnInfo).fastpathDecSliceUint16R)
  86. fn([]uint32(nil), (*encFnInfo).fastpathEncSliceUint32R, (*decFnInfo).fastpathDecSliceUint32R)
  87. fn([]uint64(nil), (*encFnInfo).fastpathEncSliceUint64R, (*decFnInfo).fastpathDecSliceUint64R)
  88. fn([]uintptr(nil), (*encFnInfo).fastpathEncSliceUintptrR, (*decFnInfo).fastpathDecSliceUintptrR)
  89. fn([]int(nil), (*encFnInfo).fastpathEncSliceIntR, (*decFnInfo).fastpathDecSliceIntR)
  90. fn([]int8(nil), (*encFnInfo).fastpathEncSliceInt8R, (*decFnInfo).fastpathDecSliceInt8R)
  91. fn([]int16(nil), (*encFnInfo).fastpathEncSliceInt16R, (*decFnInfo).fastpathDecSliceInt16R)
  92. fn([]int32(nil), (*encFnInfo).fastpathEncSliceInt32R, (*decFnInfo).fastpathDecSliceInt32R)
  93. fn([]int64(nil), (*encFnInfo).fastpathEncSliceInt64R, (*decFnInfo).fastpathDecSliceInt64R)
  94. fn([]bool(nil), (*encFnInfo).fastpathEncSliceBoolR, (*decFnInfo).fastpathDecSliceBoolR)
  95. fn(map[interface{}]interface{}(nil), (*encFnInfo).fastpathEncMapIntfIntfR, (*decFnInfo).fastpathDecMapIntfIntfR)
  96. fn(map[interface{}]string(nil), (*encFnInfo).fastpathEncMapIntfStringR, (*decFnInfo).fastpathDecMapIntfStringR)
  97. fn(map[interface{}]uint(nil), (*encFnInfo).fastpathEncMapIntfUintR, (*decFnInfo).fastpathDecMapIntfUintR)
  98. fn(map[interface{}]uint8(nil), (*encFnInfo).fastpathEncMapIntfUint8R, (*decFnInfo).fastpathDecMapIntfUint8R)
  99. fn(map[interface{}]uint16(nil), (*encFnInfo).fastpathEncMapIntfUint16R, (*decFnInfo).fastpathDecMapIntfUint16R)
  100. fn(map[interface{}]uint32(nil), (*encFnInfo).fastpathEncMapIntfUint32R, (*decFnInfo).fastpathDecMapIntfUint32R)
  101. fn(map[interface{}]uint64(nil), (*encFnInfo).fastpathEncMapIntfUint64R, (*decFnInfo).fastpathDecMapIntfUint64R)
  102. fn(map[interface{}]uintptr(nil), (*encFnInfo).fastpathEncMapIntfUintptrR, (*decFnInfo).fastpathDecMapIntfUintptrR)
  103. fn(map[interface{}]int(nil), (*encFnInfo).fastpathEncMapIntfIntR, (*decFnInfo).fastpathDecMapIntfIntR)
  104. fn(map[interface{}]int8(nil), (*encFnInfo).fastpathEncMapIntfInt8R, (*decFnInfo).fastpathDecMapIntfInt8R)
  105. fn(map[interface{}]int16(nil), (*encFnInfo).fastpathEncMapIntfInt16R, (*decFnInfo).fastpathDecMapIntfInt16R)
  106. fn(map[interface{}]int32(nil), (*encFnInfo).fastpathEncMapIntfInt32R, (*decFnInfo).fastpathDecMapIntfInt32R)
  107. fn(map[interface{}]int64(nil), (*encFnInfo).fastpathEncMapIntfInt64R, (*decFnInfo).fastpathDecMapIntfInt64R)
  108. fn(map[interface{}]float32(nil), (*encFnInfo).fastpathEncMapIntfFloat32R, (*decFnInfo).fastpathDecMapIntfFloat32R)
  109. fn(map[interface{}]float64(nil), (*encFnInfo).fastpathEncMapIntfFloat64R, (*decFnInfo).fastpathDecMapIntfFloat64R)
  110. fn(map[interface{}]bool(nil), (*encFnInfo).fastpathEncMapIntfBoolR, (*decFnInfo).fastpathDecMapIntfBoolR)
  111. fn(map[string]interface{}(nil), (*encFnInfo).fastpathEncMapStringIntfR, (*decFnInfo).fastpathDecMapStringIntfR)
  112. fn(map[string]string(nil), (*encFnInfo).fastpathEncMapStringStringR, (*decFnInfo).fastpathDecMapStringStringR)
  113. fn(map[string]uint(nil), (*encFnInfo).fastpathEncMapStringUintR, (*decFnInfo).fastpathDecMapStringUintR)
  114. fn(map[string]uint8(nil), (*encFnInfo).fastpathEncMapStringUint8R, (*decFnInfo).fastpathDecMapStringUint8R)
  115. fn(map[string]uint16(nil), (*encFnInfo).fastpathEncMapStringUint16R, (*decFnInfo).fastpathDecMapStringUint16R)
  116. fn(map[string]uint32(nil), (*encFnInfo).fastpathEncMapStringUint32R, (*decFnInfo).fastpathDecMapStringUint32R)
  117. fn(map[string]uint64(nil), (*encFnInfo).fastpathEncMapStringUint64R, (*decFnInfo).fastpathDecMapStringUint64R)
  118. fn(map[string]uintptr(nil), (*encFnInfo).fastpathEncMapStringUintptrR, (*decFnInfo).fastpathDecMapStringUintptrR)
  119. fn(map[string]int(nil), (*encFnInfo).fastpathEncMapStringIntR, (*decFnInfo).fastpathDecMapStringIntR)
  120. fn(map[string]int8(nil), (*encFnInfo).fastpathEncMapStringInt8R, (*decFnInfo).fastpathDecMapStringInt8R)
  121. fn(map[string]int16(nil), (*encFnInfo).fastpathEncMapStringInt16R, (*decFnInfo).fastpathDecMapStringInt16R)
  122. fn(map[string]int32(nil), (*encFnInfo).fastpathEncMapStringInt32R, (*decFnInfo).fastpathDecMapStringInt32R)
  123. fn(map[string]int64(nil), (*encFnInfo).fastpathEncMapStringInt64R, (*decFnInfo).fastpathDecMapStringInt64R)
  124. fn(map[string]float32(nil), (*encFnInfo).fastpathEncMapStringFloat32R, (*decFnInfo).fastpathDecMapStringFloat32R)
  125. fn(map[string]float64(nil), (*encFnInfo).fastpathEncMapStringFloat64R, (*decFnInfo).fastpathDecMapStringFloat64R)
  126. fn(map[string]bool(nil), (*encFnInfo).fastpathEncMapStringBoolR, (*decFnInfo).fastpathDecMapStringBoolR)
  127. fn(map[float32]interface{}(nil), (*encFnInfo).fastpathEncMapFloat32IntfR, (*decFnInfo).fastpathDecMapFloat32IntfR)
  128. fn(map[float32]string(nil), (*encFnInfo).fastpathEncMapFloat32StringR, (*decFnInfo).fastpathDecMapFloat32StringR)
  129. fn(map[float32]uint(nil), (*encFnInfo).fastpathEncMapFloat32UintR, (*decFnInfo).fastpathDecMapFloat32UintR)
  130. fn(map[float32]uint8(nil), (*encFnInfo).fastpathEncMapFloat32Uint8R, (*decFnInfo).fastpathDecMapFloat32Uint8R)
  131. fn(map[float32]uint16(nil), (*encFnInfo).fastpathEncMapFloat32Uint16R, (*decFnInfo).fastpathDecMapFloat32Uint16R)
  132. fn(map[float32]uint32(nil), (*encFnInfo).fastpathEncMapFloat32Uint32R, (*decFnInfo).fastpathDecMapFloat32Uint32R)
  133. fn(map[float32]uint64(nil), (*encFnInfo).fastpathEncMapFloat32Uint64R, (*decFnInfo).fastpathDecMapFloat32Uint64R)
  134. fn(map[float32]uintptr(nil), (*encFnInfo).fastpathEncMapFloat32UintptrR, (*decFnInfo).fastpathDecMapFloat32UintptrR)
  135. fn(map[float32]int(nil), (*encFnInfo).fastpathEncMapFloat32IntR, (*decFnInfo).fastpathDecMapFloat32IntR)
  136. fn(map[float32]int8(nil), (*encFnInfo).fastpathEncMapFloat32Int8R, (*decFnInfo).fastpathDecMapFloat32Int8R)
  137. fn(map[float32]int16(nil), (*encFnInfo).fastpathEncMapFloat32Int16R, (*decFnInfo).fastpathDecMapFloat32Int16R)
  138. fn(map[float32]int32(nil), (*encFnInfo).fastpathEncMapFloat32Int32R, (*decFnInfo).fastpathDecMapFloat32Int32R)
  139. fn(map[float32]int64(nil), (*encFnInfo).fastpathEncMapFloat32Int64R, (*decFnInfo).fastpathDecMapFloat32Int64R)
  140. fn(map[float32]float32(nil), (*encFnInfo).fastpathEncMapFloat32Float32R, (*decFnInfo).fastpathDecMapFloat32Float32R)
  141. fn(map[float32]float64(nil), (*encFnInfo).fastpathEncMapFloat32Float64R, (*decFnInfo).fastpathDecMapFloat32Float64R)
  142. fn(map[float32]bool(nil), (*encFnInfo).fastpathEncMapFloat32BoolR, (*decFnInfo).fastpathDecMapFloat32BoolR)
  143. fn(map[float64]interface{}(nil), (*encFnInfo).fastpathEncMapFloat64IntfR, (*decFnInfo).fastpathDecMapFloat64IntfR)
  144. fn(map[float64]string(nil), (*encFnInfo).fastpathEncMapFloat64StringR, (*decFnInfo).fastpathDecMapFloat64StringR)
  145. fn(map[float64]uint(nil), (*encFnInfo).fastpathEncMapFloat64UintR, (*decFnInfo).fastpathDecMapFloat64UintR)
  146. fn(map[float64]uint8(nil), (*encFnInfo).fastpathEncMapFloat64Uint8R, (*decFnInfo).fastpathDecMapFloat64Uint8R)
  147. fn(map[float64]uint16(nil), (*encFnInfo).fastpathEncMapFloat64Uint16R, (*decFnInfo).fastpathDecMapFloat64Uint16R)
  148. fn(map[float64]uint32(nil), (*encFnInfo).fastpathEncMapFloat64Uint32R, (*decFnInfo).fastpathDecMapFloat64Uint32R)
  149. fn(map[float64]uint64(nil), (*encFnInfo).fastpathEncMapFloat64Uint64R, (*decFnInfo).fastpathDecMapFloat64Uint64R)
  150. fn(map[float64]uintptr(nil), (*encFnInfo).fastpathEncMapFloat64UintptrR, (*decFnInfo).fastpathDecMapFloat64UintptrR)
  151. fn(map[float64]int(nil), (*encFnInfo).fastpathEncMapFloat64IntR, (*decFnInfo).fastpathDecMapFloat64IntR)
  152. fn(map[float64]int8(nil), (*encFnInfo).fastpathEncMapFloat64Int8R, (*decFnInfo).fastpathDecMapFloat64Int8R)
  153. fn(map[float64]int16(nil), (*encFnInfo).fastpathEncMapFloat64Int16R, (*decFnInfo).fastpathDecMapFloat64Int16R)
  154. fn(map[float64]int32(nil), (*encFnInfo).fastpathEncMapFloat64Int32R, (*decFnInfo).fastpathDecMapFloat64Int32R)
  155. fn(map[float64]int64(nil), (*encFnInfo).fastpathEncMapFloat64Int64R, (*decFnInfo).fastpathDecMapFloat64Int64R)
  156. fn(map[float64]float32(nil), (*encFnInfo).fastpathEncMapFloat64Float32R, (*decFnInfo).fastpathDecMapFloat64Float32R)
  157. fn(map[float64]float64(nil), (*encFnInfo).fastpathEncMapFloat64Float64R, (*decFnInfo).fastpathDecMapFloat64Float64R)
  158. fn(map[float64]bool(nil), (*encFnInfo).fastpathEncMapFloat64BoolR, (*decFnInfo).fastpathDecMapFloat64BoolR)
  159. fn(map[uint]interface{}(nil), (*encFnInfo).fastpathEncMapUintIntfR, (*decFnInfo).fastpathDecMapUintIntfR)
  160. fn(map[uint]string(nil), (*encFnInfo).fastpathEncMapUintStringR, (*decFnInfo).fastpathDecMapUintStringR)
  161. fn(map[uint]uint(nil), (*encFnInfo).fastpathEncMapUintUintR, (*decFnInfo).fastpathDecMapUintUintR)
  162. fn(map[uint]uint8(nil), (*encFnInfo).fastpathEncMapUintUint8R, (*decFnInfo).fastpathDecMapUintUint8R)
  163. fn(map[uint]uint16(nil), (*encFnInfo).fastpathEncMapUintUint16R, (*decFnInfo).fastpathDecMapUintUint16R)
  164. fn(map[uint]uint32(nil), (*encFnInfo).fastpathEncMapUintUint32R, (*decFnInfo).fastpathDecMapUintUint32R)
  165. fn(map[uint]uint64(nil), (*encFnInfo).fastpathEncMapUintUint64R, (*decFnInfo).fastpathDecMapUintUint64R)
  166. fn(map[uint]uintptr(nil), (*encFnInfo).fastpathEncMapUintUintptrR, (*decFnInfo).fastpathDecMapUintUintptrR)
  167. fn(map[uint]int(nil), (*encFnInfo).fastpathEncMapUintIntR, (*decFnInfo).fastpathDecMapUintIntR)
  168. fn(map[uint]int8(nil), (*encFnInfo).fastpathEncMapUintInt8R, (*decFnInfo).fastpathDecMapUintInt8R)
  169. fn(map[uint]int16(nil), (*encFnInfo).fastpathEncMapUintInt16R, (*decFnInfo).fastpathDecMapUintInt16R)
  170. fn(map[uint]int32(nil), (*encFnInfo).fastpathEncMapUintInt32R, (*decFnInfo).fastpathDecMapUintInt32R)
  171. fn(map[uint]int64(nil), (*encFnInfo).fastpathEncMapUintInt64R, (*decFnInfo).fastpathDecMapUintInt64R)
  172. fn(map[uint]float32(nil), (*encFnInfo).fastpathEncMapUintFloat32R, (*decFnInfo).fastpathDecMapUintFloat32R)
  173. fn(map[uint]float64(nil), (*encFnInfo).fastpathEncMapUintFloat64R, (*decFnInfo).fastpathDecMapUintFloat64R)
  174. fn(map[uint]bool(nil), (*encFnInfo).fastpathEncMapUintBoolR, (*decFnInfo).fastpathDecMapUintBoolR)
  175. fn(map[uint8]interface{}(nil), (*encFnInfo).fastpathEncMapUint8IntfR, (*decFnInfo).fastpathDecMapUint8IntfR)
  176. fn(map[uint8]string(nil), (*encFnInfo).fastpathEncMapUint8StringR, (*decFnInfo).fastpathDecMapUint8StringR)
  177. fn(map[uint8]uint(nil), (*encFnInfo).fastpathEncMapUint8UintR, (*decFnInfo).fastpathDecMapUint8UintR)
  178. fn(map[uint8]uint8(nil), (*encFnInfo).fastpathEncMapUint8Uint8R, (*decFnInfo).fastpathDecMapUint8Uint8R)
  179. fn(map[uint8]uint16(nil), (*encFnInfo).fastpathEncMapUint8Uint16R, (*decFnInfo).fastpathDecMapUint8Uint16R)
  180. fn(map[uint8]uint32(nil), (*encFnInfo).fastpathEncMapUint8Uint32R, (*decFnInfo).fastpathDecMapUint8Uint32R)
  181. fn(map[uint8]uint64(nil), (*encFnInfo).fastpathEncMapUint8Uint64R, (*decFnInfo).fastpathDecMapUint8Uint64R)
  182. fn(map[uint8]uintptr(nil), (*encFnInfo).fastpathEncMapUint8UintptrR, (*decFnInfo).fastpathDecMapUint8UintptrR)
  183. fn(map[uint8]int(nil), (*encFnInfo).fastpathEncMapUint8IntR, (*decFnInfo).fastpathDecMapUint8IntR)
  184. fn(map[uint8]int8(nil), (*encFnInfo).fastpathEncMapUint8Int8R, (*decFnInfo).fastpathDecMapUint8Int8R)
  185. fn(map[uint8]int16(nil), (*encFnInfo).fastpathEncMapUint8Int16R, (*decFnInfo).fastpathDecMapUint8Int16R)
  186. fn(map[uint8]int32(nil), (*encFnInfo).fastpathEncMapUint8Int32R, (*decFnInfo).fastpathDecMapUint8Int32R)
  187. fn(map[uint8]int64(nil), (*encFnInfo).fastpathEncMapUint8Int64R, (*decFnInfo).fastpathDecMapUint8Int64R)
  188. fn(map[uint8]float32(nil), (*encFnInfo).fastpathEncMapUint8Float32R, (*decFnInfo).fastpathDecMapUint8Float32R)
  189. fn(map[uint8]float64(nil), (*encFnInfo).fastpathEncMapUint8Float64R, (*decFnInfo).fastpathDecMapUint8Float64R)
  190. fn(map[uint8]bool(nil), (*encFnInfo).fastpathEncMapUint8BoolR, (*decFnInfo).fastpathDecMapUint8BoolR)
  191. fn(map[uint16]interface{}(nil), (*encFnInfo).fastpathEncMapUint16IntfR, (*decFnInfo).fastpathDecMapUint16IntfR)
  192. fn(map[uint16]string(nil), (*encFnInfo).fastpathEncMapUint16StringR, (*decFnInfo).fastpathDecMapUint16StringR)
  193. fn(map[uint16]uint(nil), (*encFnInfo).fastpathEncMapUint16UintR, (*decFnInfo).fastpathDecMapUint16UintR)
  194. fn(map[uint16]uint8(nil), (*encFnInfo).fastpathEncMapUint16Uint8R, (*decFnInfo).fastpathDecMapUint16Uint8R)
  195. fn(map[uint16]uint16(nil), (*encFnInfo).fastpathEncMapUint16Uint16R, (*decFnInfo).fastpathDecMapUint16Uint16R)
  196. fn(map[uint16]uint32(nil), (*encFnInfo).fastpathEncMapUint16Uint32R, (*decFnInfo).fastpathDecMapUint16Uint32R)
  197. fn(map[uint16]uint64(nil), (*encFnInfo).fastpathEncMapUint16Uint64R, (*decFnInfo).fastpathDecMapUint16Uint64R)
  198. fn(map[uint16]uintptr(nil), (*encFnInfo).fastpathEncMapUint16UintptrR, (*decFnInfo).fastpathDecMapUint16UintptrR)
  199. fn(map[uint16]int(nil), (*encFnInfo).fastpathEncMapUint16IntR, (*decFnInfo).fastpathDecMapUint16IntR)
  200. fn(map[uint16]int8(nil), (*encFnInfo).fastpathEncMapUint16Int8R, (*decFnInfo).fastpathDecMapUint16Int8R)
  201. fn(map[uint16]int16(nil), (*encFnInfo).fastpathEncMapUint16Int16R, (*decFnInfo).fastpathDecMapUint16Int16R)
  202. fn(map[uint16]int32(nil), (*encFnInfo).fastpathEncMapUint16Int32R, (*decFnInfo).fastpathDecMapUint16Int32R)
  203. fn(map[uint16]int64(nil), (*encFnInfo).fastpathEncMapUint16Int64R, (*decFnInfo).fastpathDecMapUint16Int64R)
  204. fn(map[uint16]float32(nil), (*encFnInfo).fastpathEncMapUint16Float32R, (*decFnInfo).fastpathDecMapUint16Float32R)
  205. fn(map[uint16]float64(nil), (*encFnInfo).fastpathEncMapUint16Float64R, (*decFnInfo).fastpathDecMapUint16Float64R)
  206. fn(map[uint16]bool(nil), (*encFnInfo).fastpathEncMapUint16BoolR, (*decFnInfo).fastpathDecMapUint16BoolR)
  207. fn(map[uint32]interface{}(nil), (*encFnInfo).fastpathEncMapUint32IntfR, (*decFnInfo).fastpathDecMapUint32IntfR)
  208. fn(map[uint32]string(nil), (*encFnInfo).fastpathEncMapUint32StringR, (*decFnInfo).fastpathDecMapUint32StringR)
  209. fn(map[uint32]uint(nil), (*encFnInfo).fastpathEncMapUint32UintR, (*decFnInfo).fastpathDecMapUint32UintR)
  210. fn(map[uint32]uint8(nil), (*encFnInfo).fastpathEncMapUint32Uint8R, (*decFnInfo).fastpathDecMapUint32Uint8R)
  211. fn(map[uint32]uint16(nil), (*encFnInfo).fastpathEncMapUint32Uint16R, (*decFnInfo).fastpathDecMapUint32Uint16R)
  212. fn(map[uint32]uint32(nil), (*encFnInfo).fastpathEncMapUint32Uint32R, (*decFnInfo).fastpathDecMapUint32Uint32R)
  213. fn(map[uint32]uint64(nil), (*encFnInfo).fastpathEncMapUint32Uint64R, (*decFnInfo).fastpathDecMapUint32Uint64R)
  214. fn(map[uint32]uintptr(nil), (*encFnInfo).fastpathEncMapUint32UintptrR, (*decFnInfo).fastpathDecMapUint32UintptrR)
  215. fn(map[uint32]int(nil), (*encFnInfo).fastpathEncMapUint32IntR, (*decFnInfo).fastpathDecMapUint32IntR)
  216. fn(map[uint32]int8(nil), (*encFnInfo).fastpathEncMapUint32Int8R, (*decFnInfo).fastpathDecMapUint32Int8R)
  217. fn(map[uint32]int16(nil), (*encFnInfo).fastpathEncMapUint32Int16R, (*decFnInfo).fastpathDecMapUint32Int16R)
  218. fn(map[uint32]int32(nil), (*encFnInfo).fastpathEncMapUint32Int32R, (*decFnInfo).fastpathDecMapUint32Int32R)
  219. fn(map[uint32]int64(nil), (*encFnInfo).fastpathEncMapUint32Int64R, (*decFnInfo).fastpathDecMapUint32Int64R)
  220. fn(map[uint32]float32(nil), (*encFnInfo).fastpathEncMapUint32Float32R, (*decFnInfo).fastpathDecMapUint32Float32R)
  221. fn(map[uint32]float64(nil), (*encFnInfo).fastpathEncMapUint32Float64R, (*decFnInfo).fastpathDecMapUint32Float64R)
  222. fn(map[uint32]bool(nil), (*encFnInfo).fastpathEncMapUint32BoolR, (*decFnInfo).fastpathDecMapUint32BoolR)
  223. fn(map[uint64]interface{}(nil), (*encFnInfo).fastpathEncMapUint64IntfR, (*decFnInfo).fastpathDecMapUint64IntfR)
  224. fn(map[uint64]string(nil), (*encFnInfo).fastpathEncMapUint64StringR, (*decFnInfo).fastpathDecMapUint64StringR)
  225. fn(map[uint64]uint(nil), (*encFnInfo).fastpathEncMapUint64UintR, (*decFnInfo).fastpathDecMapUint64UintR)
  226. fn(map[uint64]uint8(nil), (*encFnInfo).fastpathEncMapUint64Uint8R, (*decFnInfo).fastpathDecMapUint64Uint8R)
  227. fn(map[uint64]uint16(nil), (*encFnInfo).fastpathEncMapUint64Uint16R, (*decFnInfo).fastpathDecMapUint64Uint16R)
  228. fn(map[uint64]uint32(nil), (*encFnInfo).fastpathEncMapUint64Uint32R, (*decFnInfo).fastpathDecMapUint64Uint32R)
  229. fn(map[uint64]uint64(nil), (*encFnInfo).fastpathEncMapUint64Uint64R, (*decFnInfo).fastpathDecMapUint64Uint64R)
  230. fn(map[uint64]uintptr(nil), (*encFnInfo).fastpathEncMapUint64UintptrR, (*decFnInfo).fastpathDecMapUint64UintptrR)
  231. fn(map[uint64]int(nil), (*encFnInfo).fastpathEncMapUint64IntR, (*decFnInfo).fastpathDecMapUint64IntR)
  232. fn(map[uint64]int8(nil), (*encFnInfo).fastpathEncMapUint64Int8R, (*decFnInfo).fastpathDecMapUint64Int8R)
  233. fn(map[uint64]int16(nil), (*encFnInfo).fastpathEncMapUint64Int16R, (*decFnInfo).fastpathDecMapUint64Int16R)
  234. fn(map[uint64]int32(nil), (*encFnInfo).fastpathEncMapUint64Int32R, (*decFnInfo).fastpathDecMapUint64Int32R)
  235. fn(map[uint64]int64(nil), (*encFnInfo).fastpathEncMapUint64Int64R, (*decFnInfo).fastpathDecMapUint64Int64R)
  236. fn(map[uint64]float32(nil), (*encFnInfo).fastpathEncMapUint64Float32R, (*decFnInfo).fastpathDecMapUint64Float32R)
  237. fn(map[uint64]float64(nil), (*encFnInfo).fastpathEncMapUint64Float64R, (*decFnInfo).fastpathDecMapUint64Float64R)
  238. fn(map[uint64]bool(nil), (*encFnInfo).fastpathEncMapUint64BoolR, (*decFnInfo).fastpathDecMapUint64BoolR)
  239. fn(map[uintptr]interface{}(nil), (*encFnInfo).fastpathEncMapUintptrIntfR, (*decFnInfo).fastpathDecMapUintptrIntfR)
  240. fn(map[uintptr]string(nil), (*encFnInfo).fastpathEncMapUintptrStringR, (*decFnInfo).fastpathDecMapUintptrStringR)
  241. fn(map[uintptr]uint(nil), (*encFnInfo).fastpathEncMapUintptrUintR, (*decFnInfo).fastpathDecMapUintptrUintR)
  242. fn(map[uintptr]uint8(nil), (*encFnInfo).fastpathEncMapUintptrUint8R, (*decFnInfo).fastpathDecMapUintptrUint8R)
  243. fn(map[uintptr]uint16(nil), (*encFnInfo).fastpathEncMapUintptrUint16R, (*decFnInfo).fastpathDecMapUintptrUint16R)
  244. fn(map[uintptr]uint32(nil), (*encFnInfo).fastpathEncMapUintptrUint32R, (*decFnInfo).fastpathDecMapUintptrUint32R)
  245. fn(map[uintptr]uint64(nil), (*encFnInfo).fastpathEncMapUintptrUint64R, (*decFnInfo).fastpathDecMapUintptrUint64R)
  246. fn(map[uintptr]uintptr(nil), (*encFnInfo).fastpathEncMapUintptrUintptrR, (*decFnInfo).fastpathDecMapUintptrUintptrR)
  247. fn(map[uintptr]int(nil), (*encFnInfo).fastpathEncMapUintptrIntR, (*decFnInfo).fastpathDecMapUintptrIntR)
  248. fn(map[uintptr]int8(nil), (*encFnInfo).fastpathEncMapUintptrInt8R, (*decFnInfo).fastpathDecMapUintptrInt8R)
  249. fn(map[uintptr]int16(nil), (*encFnInfo).fastpathEncMapUintptrInt16R, (*decFnInfo).fastpathDecMapUintptrInt16R)
  250. fn(map[uintptr]int32(nil), (*encFnInfo).fastpathEncMapUintptrInt32R, (*decFnInfo).fastpathDecMapUintptrInt32R)
  251. fn(map[uintptr]int64(nil), (*encFnInfo).fastpathEncMapUintptrInt64R, (*decFnInfo).fastpathDecMapUintptrInt64R)
  252. fn(map[uintptr]float32(nil), (*encFnInfo).fastpathEncMapUintptrFloat32R, (*decFnInfo).fastpathDecMapUintptrFloat32R)
  253. fn(map[uintptr]float64(nil), (*encFnInfo).fastpathEncMapUintptrFloat64R, (*decFnInfo).fastpathDecMapUintptrFloat64R)
  254. fn(map[uintptr]bool(nil), (*encFnInfo).fastpathEncMapUintptrBoolR, (*decFnInfo).fastpathDecMapUintptrBoolR)
  255. fn(map[int]interface{}(nil), (*encFnInfo).fastpathEncMapIntIntfR, (*decFnInfo).fastpathDecMapIntIntfR)
  256. fn(map[int]string(nil), (*encFnInfo).fastpathEncMapIntStringR, (*decFnInfo).fastpathDecMapIntStringR)
  257. fn(map[int]uint(nil), (*encFnInfo).fastpathEncMapIntUintR, (*decFnInfo).fastpathDecMapIntUintR)
  258. fn(map[int]uint8(nil), (*encFnInfo).fastpathEncMapIntUint8R, (*decFnInfo).fastpathDecMapIntUint8R)
  259. fn(map[int]uint16(nil), (*encFnInfo).fastpathEncMapIntUint16R, (*decFnInfo).fastpathDecMapIntUint16R)
  260. fn(map[int]uint32(nil), (*encFnInfo).fastpathEncMapIntUint32R, (*decFnInfo).fastpathDecMapIntUint32R)
  261. fn(map[int]uint64(nil), (*encFnInfo).fastpathEncMapIntUint64R, (*decFnInfo).fastpathDecMapIntUint64R)
  262. fn(map[int]uintptr(nil), (*encFnInfo).fastpathEncMapIntUintptrR, (*decFnInfo).fastpathDecMapIntUintptrR)
  263. fn(map[int]int(nil), (*encFnInfo).fastpathEncMapIntIntR, (*decFnInfo).fastpathDecMapIntIntR)
  264. fn(map[int]int8(nil), (*encFnInfo).fastpathEncMapIntInt8R, (*decFnInfo).fastpathDecMapIntInt8R)
  265. fn(map[int]int16(nil), (*encFnInfo).fastpathEncMapIntInt16R, (*decFnInfo).fastpathDecMapIntInt16R)
  266. fn(map[int]int32(nil), (*encFnInfo).fastpathEncMapIntInt32R, (*decFnInfo).fastpathDecMapIntInt32R)
  267. fn(map[int]int64(nil), (*encFnInfo).fastpathEncMapIntInt64R, (*decFnInfo).fastpathDecMapIntInt64R)
  268. fn(map[int]float32(nil), (*encFnInfo).fastpathEncMapIntFloat32R, (*decFnInfo).fastpathDecMapIntFloat32R)
  269. fn(map[int]float64(nil), (*encFnInfo).fastpathEncMapIntFloat64R, (*decFnInfo).fastpathDecMapIntFloat64R)
  270. fn(map[int]bool(nil), (*encFnInfo).fastpathEncMapIntBoolR, (*decFnInfo).fastpathDecMapIntBoolR)
  271. fn(map[int8]interface{}(nil), (*encFnInfo).fastpathEncMapInt8IntfR, (*decFnInfo).fastpathDecMapInt8IntfR)
  272. fn(map[int8]string(nil), (*encFnInfo).fastpathEncMapInt8StringR, (*decFnInfo).fastpathDecMapInt8StringR)
  273. fn(map[int8]uint(nil), (*encFnInfo).fastpathEncMapInt8UintR, (*decFnInfo).fastpathDecMapInt8UintR)
  274. fn(map[int8]uint8(nil), (*encFnInfo).fastpathEncMapInt8Uint8R, (*decFnInfo).fastpathDecMapInt8Uint8R)
  275. fn(map[int8]uint16(nil), (*encFnInfo).fastpathEncMapInt8Uint16R, (*decFnInfo).fastpathDecMapInt8Uint16R)
  276. fn(map[int8]uint32(nil), (*encFnInfo).fastpathEncMapInt8Uint32R, (*decFnInfo).fastpathDecMapInt8Uint32R)
  277. fn(map[int8]uint64(nil), (*encFnInfo).fastpathEncMapInt8Uint64R, (*decFnInfo).fastpathDecMapInt8Uint64R)
  278. fn(map[int8]uintptr(nil), (*encFnInfo).fastpathEncMapInt8UintptrR, (*decFnInfo).fastpathDecMapInt8UintptrR)
  279. fn(map[int8]int(nil), (*encFnInfo).fastpathEncMapInt8IntR, (*decFnInfo).fastpathDecMapInt8IntR)
  280. fn(map[int8]int8(nil), (*encFnInfo).fastpathEncMapInt8Int8R, (*decFnInfo).fastpathDecMapInt8Int8R)
  281. fn(map[int8]int16(nil), (*encFnInfo).fastpathEncMapInt8Int16R, (*decFnInfo).fastpathDecMapInt8Int16R)
  282. fn(map[int8]int32(nil), (*encFnInfo).fastpathEncMapInt8Int32R, (*decFnInfo).fastpathDecMapInt8Int32R)
  283. fn(map[int8]int64(nil), (*encFnInfo).fastpathEncMapInt8Int64R, (*decFnInfo).fastpathDecMapInt8Int64R)
  284. fn(map[int8]float32(nil), (*encFnInfo).fastpathEncMapInt8Float32R, (*decFnInfo).fastpathDecMapInt8Float32R)
  285. fn(map[int8]float64(nil), (*encFnInfo).fastpathEncMapInt8Float64R, (*decFnInfo).fastpathDecMapInt8Float64R)
  286. fn(map[int8]bool(nil), (*encFnInfo).fastpathEncMapInt8BoolR, (*decFnInfo).fastpathDecMapInt8BoolR)
  287. fn(map[int16]interface{}(nil), (*encFnInfo).fastpathEncMapInt16IntfR, (*decFnInfo).fastpathDecMapInt16IntfR)
  288. fn(map[int16]string(nil), (*encFnInfo).fastpathEncMapInt16StringR, (*decFnInfo).fastpathDecMapInt16StringR)
  289. fn(map[int16]uint(nil), (*encFnInfo).fastpathEncMapInt16UintR, (*decFnInfo).fastpathDecMapInt16UintR)
  290. fn(map[int16]uint8(nil), (*encFnInfo).fastpathEncMapInt16Uint8R, (*decFnInfo).fastpathDecMapInt16Uint8R)
  291. fn(map[int16]uint16(nil), (*encFnInfo).fastpathEncMapInt16Uint16R, (*decFnInfo).fastpathDecMapInt16Uint16R)
  292. fn(map[int16]uint32(nil), (*encFnInfo).fastpathEncMapInt16Uint32R, (*decFnInfo).fastpathDecMapInt16Uint32R)
  293. fn(map[int16]uint64(nil), (*encFnInfo).fastpathEncMapInt16Uint64R, (*decFnInfo).fastpathDecMapInt16Uint64R)
  294. fn(map[int16]uintptr(nil), (*encFnInfo).fastpathEncMapInt16UintptrR, (*decFnInfo).fastpathDecMapInt16UintptrR)
  295. fn(map[int16]int(nil), (*encFnInfo).fastpathEncMapInt16IntR, (*decFnInfo).fastpathDecMapInt16IntR)
  296. fn(map[int16]int8(nil), (*encFnInfo).fastpathEncMapInt16Int8R, (*decFnInfo).fastpathDecMapInt16Int8R)
  297. fn(map[int16]int16(nil), (*encFnInfo).fastpathEncMapInt16Int16R, (*decFnInfo).fastpathDecMapInt16Int16R)
  298. fn(map[int16]int32(nil), (*encFnInfo).fastpathEncMapInt16Int32R, (*decFnInfo).fastpathDecMapInt16Int32R)
  299. fn(map[int16]int64(nil), (*encFnInfo).fastpathEncMapInt16Int64R, (*decFnInfo).fastpathDecMapInt16Int64R)
  300. fn(map[int16]float32(nil), (*encFnInfo).fastpathEncMapInt16Float32R, (*decFnInfo).fastpathDecMapInt16Float32R)
  301. fn(map[int16]float64(nil), (*encFnInfo).fastpathEncMapInt16Float64R, (*decFnInfo).fastpathDecMapInt16Float64R)
  302. fn(map[int16]bool(nil), (*encFnInfo).fastpathEncMapInt16BoolR, (*decFnInfo).fastpathDecMapInt16BoolR)
  303. fn(map[int32]interface{}(nil), (*encFnInfo).fastpathEncMapInt32IntfR, (*decFnInfo).fastpathDecMapInt32IntfR)
  304. fn(map[int32]string(nil), (*encFnInfo).fastpathEncMapInt32StringR, (*decFnInfo).fastpathDecMapInt32StringR)
  305. fn(map[int32]uint(nil), (*encFnInfo).fastpathEncMapInt32UintR, (*decFnInfo).fastpathDecMapInt32UintR)
  306. fn(map[int32]uint8(nil), (*encFnInfo).fastpathEncMapInt32Uint8R, (*decFnInfo).fastpathDecMapInt32Uint8R)
  307. fn(map[int32]uint16(nil), (*encFnInfo).fastpathEncMapInt32Uint16R, (*decFnInfo).fastpathDecMapInt32Uint16R)
  308. fn(map[int32]uint32(nil), (*encFnInfo).fastpathEncMapInt32Uint32R, (*decFnInfo).fastpathDecMapInt32Uint32R)
  309. fn(map[int32]uint64(nil), (*encFnInfo).fastpathEncMapInt32Uint64R, (*decFnInfo).fastpathDecMapInt32Uint64R)
  310. fn(map[int32]uintptr(nil), (*encFnInfo).fastpathEncMapInt32UintptrR, (*decFnInfo).fastpathDecMapInt32UintptrR)
  311. fn(map[int32]int(nil), (*encFnInfo).fastpathEncMapInt32IntR, (*decFnInfo).fastpathDecMapInt32IntR)
  312. fn(map[int32]int8(nil), (*encFnInfo).fastpathEncMapInt32Int8R, (*decFnInfo).fastpathDecMapInt32Int8R)
  313. fn(map[int32]int16(nil), (*encFnInfo).fastpathEncMapInt32Int16R, (*decFnInfo).fastpathDecMapInt32Int16R)
  314. fn(map[int32]int32(nil), (*encFnInfo).fastpathEncMapInt32Int32R, (*decFnInfo).fastpathDecMapInt32Int32R)
  315. fn(map[int32]int64(nil), (*encFnInfo).fastpathEncMapInt32Int64R, (*decFnInfo).fastpathDecMapInt32Int64R)
  316. fn(map[int32]float32(nil), (*encFnInfo).fastpathEncMapInt32Float32R, (*decFnInfo).fastpathDecMapInt32Float32R)
  317. fn(map[int32]float64(nil), (*encFnInfo).fastpathEncMapInt32Float64R, (*decFnInfo).fastpathDecMapInt32Float64R)
  318. fn(map[int32]bool(nil), (*encFnInfo).fastpathEncMapInt32BoolR, (*decFnInfo).fastpathDecMapInt32BoolR)
  319. fn(map[int64]interface{}(nil), (*encFnInfo).fastpathEncMapInt64IntfR, (*decFnInfo).fastpathDecMapInt64IntfR)
  320. fn(map[int64]string(nil), (*encFnInfo).fastpathEncMapInt64StringR, (*decFnInfo).fastpathDecMapInt64StringR)
  321. fn(map[int64]uint(nil), (*encFnInfo).fastpathEncMapInt64UintR, (*decFnInfo).fastpathDecMapInt64UintR)
  322. fn(map[int64]uint8(nil), (*encFnInfo).fastpathEncMapInt64Uint8R, (*decFnInfo).fastpathDecMapInt64Uint8R)
  323. fn(map[int64]uint16(nil), (*encFnInfo).fastpathEncMapInt64Uint16R, (*decFnInfo).fastpathDecMapInt64Uint16R)
  324. fn(map[int64]uint32(nil), (*encFnInfo).fastpathEncMapInt64Uint32R, (*decFnInfo).fastpathDecMapInt64Uint32R)
  325. fn(map[int64]uint64(nil), (*encFnInfo).fastpathEncMapInt64Uint64R, (*decFnInfo).fastpathDecMapInt64Uint64R)
  326. fn(map[int64]uintptr(nil), (*encFnInfo).fastpathEncMapInt64UintptrR, (*decFnInfo).fastpathDecMapInt64UintptrR)
  327. fn(map[int64]int(nil), (*encFnInfo).fastpathEncMapInt64IntR, (*decFnInfo).fastpathDecMapInt64IntR)
  328. fn(map[int64]int8(nil), (*encFnInfo).fastpathEncMapInt64Int8R, (*decFnInfo).fastpathDecMapInt64Int8R)
  329. fn(map[int64]int16(nil), (*encFnInfo).fastpathEncMapInt64Int16R, (*decFnInfo).fastpathDecMapInt64Int16R)
  330. fn(map[int64]int32(nil), (*encFnInfo).fastpathEncMapInt64Int32R, (*decFnInfo).fastpathDecMapInt64Int32R)
  331. fn(map[int64]int64(nil), (*encFnInfo).fastpathEncMapInt64Int64R, (*decFnInfo).fastpathDecMapInt64Int64R)
  332. fn(map[int64]float32(nil), (*encFnInfo).fastpathEncMapInt64Float32R, (*decFnInfo).fastpathDecMapInt64Float32R)
  333. fn(map[int64]float64(nil), (*encFnInfo).fastpathEncMapInt64Float64R, (*decFnInfo).fastpathDecMapInt64Float64R)
  334. fn(map[int64]bool(nil), (*encFnInfo).fastpathEncMapInt64BoolR, (*decFnInfo).fastpathDecMapInt64BoolR)
  335. fn(map[bool]interface{}(nil), (*encFnInfo).fastpathEncMapBoolIntfR, (*decFnInfo).fastpathDecMapBoolIntfR)
  336. fn(map[bool]string(nil), (*encFnInfo).fastpathEncMapBoolStringR, (*decFnInfo).fastpathDecMapBoolStringR)
  337. fn(map[bool]uint(nil), (*encFnInfo).fastpathEncMapBoolUintR, (*decFnInfo).fastpathDecMapBoolUintR)
  338. fn(map[bool]uint8(nil), (*encFnInfo).fastpathEncMapBoolUint8R, (*decFnInfo).fastpathDecMapBoolUint8R)
  339. fn(map[bool]uint16(nil), (*encFnInfo).fastpathEncMapBoolUint16R, (*decFnInfo).fastpathDecMapBoolUint16R)
  340. fn(map[bool]uint32(nil), (*encFnInfo).fastpathEncMapBoolUint32R, (*decFnInfo).fastpathDecMapBoolUint32R)
  341. fn(map[bool]uint64(nil), (*encFnInfo).fastpathEncMapBoolUint64R, (*decFnInfo).fastpathDecMapBoolUint64R)
  342. fn(map[bool]uintptr(nil), (*encFnInfo).fastpathEncMapBoolUintptrR, (*decFnInfo).fastpathDecMapBoolUintptrR)
  343. fn(map[bool]int(nil), (*encFnInfo).fastpathEncMapBoolIntR, (*decFnInfo).fastpathDecMapBoolIntR)
  344. fn(map[bool]int8(nil), (*encFnInfo).fastpathEncMapBoolInt8R, (*decFnInfo).fastpathDecMapBoolInt8R)
  345. fn(map[bool]int16(nil), (*encFnInfo).fastpathEncMapBoolInt16R, (*decFnInfo).fastpathDecMapBoolInt16R)
  346. fn(map[bool]int32(nil), (*encFnInfo).fastpathEncMapBoolInt32R, (*decFnInfo).fastpathDecMapBoolInt32R)
  347. fn(map[bool]int64(nil), (*encFnInfo).fastpathEncMapBoolInt64R, (*decFnInfo).fastpathDecMapBoolInt64R)
  348. fn(map[bool]float32(nil), (*encFnInfo).fastpathEncMapBoolFloat32R, (*decFnInfo).fastpathDecMapBoolFloat32R)
  349. fn(map[bool]float64(nil), (*encFnInfo).fastpathEncMapBoolFloat64R, (*decFnInfo).fastpathDecMapBoolFloat64R)
  350. fn(map[bool]bool(nil), (*encFnInfo).fastpathEncMapBoolBoolR, (*decFnInfo).fastpathDecMapBoolBoolR)
  351. sort.Sort(fastpathAslice(fastpathAV[:]))
  352. }
  353. // -- encode
  354. // -- -- fast path type switch
  355. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  356. if !fastpathEnabled {
  357. return false
  358. }
  359. switch v := iv.(type) {
  360. case []interface{}:
  361. fastpathTV.EncSliceIntfV(v, fastpathCheckNilTrue, e)
  362. case *[]interface{}:
  363. fastpathTV.EncSliceIntfV(*v, fastpathCheckNilTrue, e)
  364. case map[interface{}]interface{}:
  365. fastpathTV.EncMapIntfIntfV(v, fastpathCheckNilTrue, e)
  366. case *map[interface{}]interface{}:
  367. fastpathTV.EncMapIntfIntfV(*v, fastpathCheckNilTrue, e)
  368. case map[interface{}]string:
  369. fastpathTV.EncMapIntfStringV(v, fastpathCheckNilTrue, e)
  370. case *map[interface{}]string:
  371. fastpathTV.EncMapIntfStringV(*v, fastpathCheckNilTrue, e)
  372. case map[interface{}]uint:
  373. fastpathTV.EncMapIntfUintV(v, fastpathCheckNilTrue, e)
  374. case *map[interface{}]uint:
  375. fastpathTV.EncMapIntfUintV(*v, fastpathCheckNilTrue, e)
  376. case map[interface{}]uint8:
  377. fastpathTV.EncMapIntfUint8V(v, fastpathCheckNilTrue, e)
  378. case *map[interface{}]uint8:
  379. fastpathTV.EncMapIntfUint8V(*v, fastpathCheckNilTrue, e)
  380. case map[interface{}]uint16:
  381. fastpathTV.EncMapIntfUint16V(v, fastpathCheckNilTrue, e)
  382. case *map[interface{}]uint16:
  383. fastpathTV.EncMapIntfUint16V(*v, fastpathCheckNilTrue, e)
  384. case map[interface{}]uint32:
  385. fastpathTV.EncMapIntfUint32V(v, fastpathCheckNilTrue, e)
  386. case *map[interface{}]uint32:
  387. fastpathTV.EncMapIntfUint32V(*v, fastpathCheckNilTrue, e)
  388. case map[interface{}]uint64:
  389. fastpathTV.EncMapIntfUint64V(v, fastpathCheckNilTrue, e)
  390. case *map[interface{}]uint64:
  391. fastpathTV.EncMapIntfUint64V(*v, fastpathCheckNilTrue, e)
  392. case map[interface{}]uintptr:
  393. fastpathTV.EncMapIntfUintptrV(v, fastpathCheckNilTrue, e)
  394. case *map[interface{}]uintptr:
  395. fastpathTV.EncMapIntfUintptrV(*v, fastpathCheckNilTrue, e)
  396. case map[interface{}]int:
  397. fastpathTV.EncMapIntfIntV(v, fastpathCheckNilTrue, e)
  398. case *map[interface{}]int:
  399. fastpathTV.EncMapIntfIntV(*v, fastpathCheckNilTrue, e)
  400. case map[interface{}]int8:
  401. fastpathTV.EncMapIntfInt8V(v, fastpathCheckNilTrue, e)
  402. case *map[interface{}]int8:
  403. fastpathTV.EncMapIntfInt8V(*v, fastpathCheckNilTrue, e)
  404. case map[interface{}]int16:
  405. fastpathTV.EncMapIntfInt16V(v, fastpathCheckNilTrue, e)
  406. case *map[interface{}]int16:
  407. fastpathTV.EncMapIntfInt16V(*v, fastpathCheckNilTrue, e)
  408. case map[interface{}]int32:
  409. fastpathTV.EncMapIntfInt32V(v, fastpathCheckNilTrue, e)
  410. case *map[interface{}]int32:
  411. fastpathTV.EncMapIntfInt32V(*v, fastpathCheckNilTrue, e)
  412. case map[interface{}]int64:
  413. fastpathTV.EncMapIntfInt64V(v, fastpathCheckNilTrue, e)
  414. case *map[interface{}]int64:
  415. fastpathTV.EncMapIntfInt64V(*v, fastpathCheckNilTrue, e)
  416. case map[interface{}]float32:
  417. fastpathTV.EncMapIntfFloat32V(v, fastpathCheckNilTrue, e)
  418. case *map[interface{}]float32:
  419. fastpathTV.EncMapIntfFloat32V(*v, fastpathCheckNilTrue, e)
  420. case map[interface{}]float64:
  421. fastpathTV.EncMapIntfFloat64V(v, fastpathCheckNilTrue, e)
  422. case *map[interface{}]float64:
  423. fastpathTV.EncMapIntfFloat64V(*v, fastpathCheckNilTrue, e)
  424. case map[interface{}]bool:
  425. fastpathTV.EncMapIntfBoolV(v, fastpathCheckNilTrue, e)
  426. case *map[interface{}]bool:
  427. fastpathTV.EncMapIntfBoolV(*v, fastpathCheckNilTrue, e)
  428. case []string:
  429. fastpathTV.EncSliceStringV(v, fastpathCheckNilTrue, e)
  430. case *[]string:
  431. fastpathTV.EncSliceStringV(*v, fastpathCheckNilTrue, e)
  432. case map[string]interface{}:
  433. fastpathTV.EncMapStringIntfV(v, fastpathCheckNilTrue, e)
  434. case *map[string]interface{}:
  435. fastpathTV.EncMapStringIntfV(*v, fastpathCheckNilTrue, e)
  436. case map[string]string:
  437. fastpathTV.EncMapStringStringV(v, fastpathCheckNilTrue, e)
  438. case *map[string]string:
  439. fastpathTV.EncMapStringStringV(*v, fastpathCheckNilTrue, e)
  440. case map[string]uint:
  441. fastpathTV.EncMapStringUintV(v, fastpathCheckNilTrue, e)
  442. case *map[string]uint:
  443. fastpathTV.EncMapStringUintV(*v, fastpathCheckNilTrue, e)
  444. case map[string]uint8:
  445. fastpathTV.EncMapStringUint8V(v, fastpathCheckNilTrue, e)
  446. case *map[string]uint8:
  447. fastpathTV.EncMapStringUint8V(*v, fastpathCheckNilTrue, e)
  448. case map[string]uint16:
  449. fastpathTV.EncMapStringUint16V(v, fastpathCheckNilTrue, e)
  450. case *map[string]uint16:
  451. fastpathTV.EncMapStringUint16V(*v, fastpathCheckNilTrue, e)
  452. case map[string]uint32:
  453. fastpathTV.EncMapStringUint32V(v, fastpathCheckNilTrue, e)
  454. case *map[string]uint32:
  455. fastpathTV.EncMapStringUint32V(*v, fastpathCheckNilTrue, e)
  456. case map[string]uint64:
  457. fastpathTV.EncMapStringUint64V(v, fastpathCheckNilTrue, e)
  458. case *map[string]uint64:
  459. fastpathTV.EncMapStringUint64V(*v, fastpathCheckNilTrue, e)
  460. case map[string]uintptr:
  461. fastpathTV.EncMapStringUintptrV(v, fastpathCheckNilTrue, e)
  462. case *map[string]uintptr:
  463. fastpathTV.EncMapStringUintptrV(*v, fastpathCheckNilTrue, e)
  464. case map[string]int:
  465. fastpathTV.EncMapStringIntV(v, fastpathCheckNilTrue, e)
  466. case *map[string]int:
  467. fastpathTV.EncMapStringIntV(*v, fastpathCheckNilTrue, e)
  468. case map[string]int8:
  469. fastpathTV.EncMapStringInt8V(v, fastpathCheckNilTrue, e)
  470. case *map[string]int8:
  471. fastpathTV.EncMapStringInt8V(*v, fastpathCheckNilTrue, e)
  472. case map[string]int16:
  473. fastpathTV.EncMapStringInt16V(v, fastpathCheckNilTrue, e)
  474. case *map[string]int16:
  475. fastpathTV.EncMapStringInt16V(*v, fastpathCheckNilTrue, e)
  476. case map[string]int32:
  477. fastpathTV.EncMapStringInt32V(v, fastpathCheckNilTrue, e)
  478. case *map[string]int32:
  479. fastpathTV.EncMapStringInt32V(*v, fastpathCheckNilTrue, e)
  480. case map[string]int64:
  481. fastpathTV.EncMapStringInt64V(v, fastpathCheckNilTrue, e)
  482. case *map[string]int64:
  483. fastpathTV.EncMapStringInt64V(*v, fastpathCheckNilTrue, e)
  484. case map[string]float32:
  485. fastpathTV.EncMapStringFloat32V(v, fastpathCheckNilTrue, e)
  486. case *map[string]float32:
  487. fastpathTV.EncMapStringFloat32V(*v, fastpathCheckNilTrue, e)
  488. case map[string]float64:
  489. fastpathTV.EncMapStringFloat64V(v, fastpathCheckNilTrue, e)
  490. case *map[string]float64:
  491. fastpathTV.EncMapStringFloat64V(*v, fastpathCheckNilTrue, e)
  492. case map[string]bool:
  493. fastpathTV.EncMapStringBoolV(v, fastpathCheckNilTrue, e)
  494. case *map[string]bool:
  495. fastpathTV.EncMapStringBoolV(*v, fastpathCheckNilTrue, e)
  496. case []float32:
  497. fastpathTV.EncSliceFloat32V(v, fastpathCheckNilTrue, e)
  498. case *[]float32:
  499. fastpathTV.EncSliceFloat32V(*v, fastpathCheckNilTrue, e)
  500. case map[float32]interface{}:
  501. fastpathTV.EncMapFloat32IntfV(v, fastpathCheckNilTrue, e)
  502. case *map[float32]interface{}:
  503. fastpathTV.EncMapFloat32IntfV(*v, fastpathCheckNilTrue, e)
  504. case map[float32]string:
  505. fastpathTV.EncMapFloat32StringV(v, fastpathCheckNilTrue, e)
  506. case *map[float32]string:
  507. fastpathTV.EncMapFloat32StringV(*v, fastpathCheckNilTrue, e)
  508. case map[float32]uint:
  509. fastpathTV.EncMapFloat32UintV(v, fastpathCheckNilTrue, e)
  510. case *map[float32]uint:
  511. fastpathTV.EncMapFloat32UintV(*v, fastpathCheckNilTrue, e)
  512. case map[float32]uint8:
  513. fastpathTV.EncMapFloat32Uint8V(v, fastpathCheckNilTrue, e)
  514. case *map[float32]uint8:
  515. fastpathTV.EncMapFloat32Uint8V(*v, fastpathCheckNilTrue, e)
  516. case map[float32]uint16:
  517. fastpathTV.EncMapFloat32Uint16V(v, fastpathCheckNilTrue, e)
  518. case *map[float32]uint16:
  519. fastpathTV.EncMapFloat32Uint16V(*v, fastpathCheckNilTrue, e)
  520. case map[float32]uint32:
  521. fastpathTV.EncMapFloat32Uint32V(v, fastpathCheckNilTrue, e)
  522. case *map[float32]uint32:
  523. fastpathTV.EncMapFloat32Uint32V(*v, fastpathCheckNilTrue, e)
  524. case map[float32]uint64:
  525. fastpathTV.EncMapFloat32Uint64V(v, fastpathCheckNilTrue, e)
  526. case *map[float32]uint64:
  527. fastpathTV.EncMapFloat32Uint64V(*v, fastpathCheckNilTrue, e)
  528. case map[float32]uintptr:
  529. fastpathTV.EncMapFloat32UintptrV(v, fastpathCheckNilTrue, e)
  530. case *map[float32]uintptr:
  531. fastpathTV.EncMapFloat32UintptrV(*v, fastpathCheckNilTrue, e)
  532. case map[float32]int:
  533. fastpathTV.EncMapFloat32IntV(v, fastpathCheckNilTrue, e)
  534. case *map[float32]int:
  535. fastpathTV.EncMapFloat32IntV(*v, fastpathCheckNilTrue, e)
  536. case map[float32]int8:
  537. fastpathTV.EncMapFloat32Int8V(v, fastpathCheckNilTrue, e)
  538. case *map[float32]int8:
  539. fastpathTV.EncMapFloat32Int8V(*v, fastpathCheckNilTrue, e)
  540. case map[float32]int16:
  541. fastpathTV.EncMapFloat32Int16V(v, fastpathCheckNilTrue, e)
  542. case *map[float32]int16:
  543. fastpathTV.EncMapFloat32Int16V(*v, fastpathCheckNilTrue, e)
  544. case map[float32]int32:
  545. fastpathTV.EncMapFloat32Int32V(v, fastpathCheckNilTrue, e)
  546. case *map[float32]int32:
  547. fastpathTV.EncMapFloat32Int32V(*v, fastpathCheckNilTrue, e)
  548. case map[float32]int64:
  549. fastpathTV.EncMapFloat32Int64V(v, fastpathCheckNilTrue, e)
  550. case *map[float32]int64:
  551. fastpathTV.EncMapFloat32Int64V(*v, fastpathCheckNilTrue, e)
  552. case map[float32]float32:
  553. fastpathTV.EncMapFloat32Float32V(v, fastpathCheckNilTrue, e)
  554. case *map[float32]float32:
  555. fastpathTV.EncMapFloat32Float32V(*v, fastpathCheckNilTrue, e)
  556. case map[float32]float64:
  557. fastpathTV.EncMapFloat32Float64V(v, fastpathCheckNilTrue, e)
  558. case *map[float32]float64:
  559. fastpathTV.EncMapFloat32Float64V(*v, fastpathCheckNilTrue, e)
  560. case map[float32]bool:
  561. fastpathTV.EncMapFloat32BoolV(v, fastpathCheckNilTrue, e)
  562. case *map[float32]bool:
  563. fastpathTV.EncMapFloat32BoolV(*v, fastpathCheckNilTrue, e)
  564. case []float64:
  565. fastpathTV.EncSliceFloat64V(v, fastpathCheckNilTrue, e)
  566. case *[]float64:
  567. fastpathTV.EncSliceFloat64V(*v, fastpathCheckNilTrue, e)
  568. case map[float64]interface{}:
  569. fastpathTV.EncMapFloat64IntfV(v, fastpathCheckNilTrue, e)
  570. case *map[float64]interface{}:
  571. fastpathTV.EncMapFloat64IntfV(*v, fastpathCheckNilTrue, e)
  572. case map[float64]string:
  573. fastpathTV.EncMapFloat64StringV(v, fastpathCheckNilTrue, e)
  574. case *map[float64]string:
  575. fastpathTV.EncMapFloat64StringV(*v, fastpathCheckNilTrue, e)
  576. case map[float64]uint:
  577. fastpathTV.EncMapFloat64UintV(v, fastpathCheckNilTrue, e)
  578. case *map[float64]uint:
  579. fastpathTV.EncMapFloat64UintV(*v, fastpathCheckNilTrue, e)
  580. case map[float64]uint8:
  581. fastpathTV.EncMapFloat64Uint8V(v, fastpathCheckNilTrue, e)
  582. case *map[float64]uint8:
  583. fastpathTV.EncMapFloat64Uint8V(*v, fastpathCheckNilTrue, e)
  584. case map[float64]uint16:
  585. fastpathTV.EncMapFloat64Uint16V(v, fastpathCheckNilTrue, e)
  586. case *map[float64]uint16:
  587. fastpathTV.EncMapFloat64Uint16V(*v, fastpathCheckNilTrue, e)
  588. case map[float64]uint32:
  589. fastpathTV.EncMapFloat64Uint32V(v, fastpathCheckNilTrue, e)
  590. case *map[float64]uint32:
  591. fastpathTV.EncMapFloat64Uint32V(*v, fastpathCheckNilTrue, e)
  592. case map[float64]uint64:
  593. fastpathTV.EncMapFloat64Uint64V(v, fastpathCheckNilTrue, e)
  594. case *map[float64]uint64:
  595. fastpathTV.EncMapFloat64Uint64V(*v, fastpathCheckNilTrue, e)
  596. case map[float64]uintptr:
  597. fastpathTV.EncMapFloat64UintptrV(v, fastpathCheckNilTrue, e)
  598. case *map[float64]uintptr:
  599. fastpathTV.EncMapFloat64UintptrV(*v, fastpathCheckNilTrue, e)
  600. case map[float64]int:
  601. fastpathTV.EncMapFloat64IntV(v, fastpathCheckNilTrue, e)
  602. case *map[float64]int:
  603. fastpathTV.EncMapFloat64IntV(*v, fastpathCheckNilTrue, e)
  604. case map[float64]int8:
  605. fastpathTV.EncMapFloat64Int8V(v, fastpathCheckNilTrue, e)
  606. case *map[float64]int8:
  607. fastpathTV.EncMapFloat64Int8V(*v, fastpathCheckNilTrue, e)
  608. case map[float64]int16:
  609. fastpathTV.EncMapFloat64Int16V(v, fastpathCheckNilTrue, e)
  610. case *map[float64]int16:
  611. fastpathTV.EncMapFloat64Int16V(*v, fastpathCheckNilTrue, e)
  612. case map[float64]int32:
  613. fastpathTV.EncMapFloat64Int32V(v, fastpathCheckNilTrue, e)
  614. case *map[float64]int32:
  615. fastpathTV.EncMapFloat64Int32V(*v, fastpathCheckNilTrue, e)
  616. case map[float64]int64:
  617. fastpathTV.EncMapFloat64Int64V(v, fastpathCheckNilTrue, e)
  618. case *map[float64]int64:
  619. fastpathTV.EncMapFloat64Int64V(*v, fastpathCheckNilTrue, e)
  620. case map[float64]float32:
  621. fastpathTV.EncMapFloat64Float32V(v, fastpathCheckNilTrue, e)
  622. case *map[float64]float32:
  623. fastpathTV.EncMapFloat64Float32V(*v, fastpathCheckNilTrue, e)
  624. case map[float64]float64:
  625. fastpathTV.EncMapFloat64Float64V(v, fastpathCheckNilTrue, e)
  626. case *map[float64]float64:
  627. fastpathTV.EncMapFloat64Float64V(*v, fastpathCheckNilTrue, e)
  628. case map[float64]bool:
  629. fastpathTV.EncMapFloat64BoolV(v, fastpathCheckNilTrue, e)
  630. case *map[float64]bool:
  631. fastpathTV.EncMapFloat64BoolV(*v, fastpathCheckNilTrue, e)
  632. case []uint:
  633. fastpathTV.EncSliceUintV(v, fastpathCheckNilTrue, e)
  634. case *[]uint:
  635. fastpathTV.EncSliceUintV(*v, fastpathCheckNilTrue, e)
  636. case map[uint]interface{}:
  637. fastpathTV.EncMapUintIntfV(v, fastpathCheckNilTrue, e)
  638. case *map[uint]interface{}:
  639. fastpathTV.EncMapUintIntfV(*v, fastpathCheckNilTrue, e)
  640. case map[uint]string:
  641. fastpathTV.EncMapUintStringV(v, fastpathCheckNilTrue, e)
  642. case *map[uint]string:
  643. fastpathTV.EncMapUintStringV(*v, fastpathCheckNilTrue, e)
  644. case map[uint]uint:
  645. fastpathTV.EncMapUintUintV(v, fastpathCheckNilTrue, e)
  646. case *map[uint]uint:
  647. fastpathTV.EncMapUintUintV(*v, fastpathCheckNilTrue, e)
  648. case map[uint]uint8:
  649. fastpathTV.EncMapUintUint8V(v, fastpathCheckNilTrue, e)
  650. case *map[uint]uint8:
  651. fastpathTV.EncMapUintUint8V(*v, fastpathCheckNilTrue, e)
  652. case map[uint]uint16:
  653. fastpathTV.EncMapUintUint16V(v, fastpathCheckNilTrue, e)
  654. case *map[uint]uint16:
  655. fastpathTV.EncMapUintUint16V(*v, fastpathCheckNilTrue, e)
  656. case map[uint]uint32:
  657. fastpathTV.EncMapUintUint32V(v, fastpathCheckNilTrue, e)
  658. case *map[uint]uint32:
  659. fastpathTV.EncMapUintUint32V(*v, fastpathCheckNilTrue, e)
  660. case map[uint]uint64:
  661. fastpathTV.EncMapUintUint64V(v, fastpathCheckNilTrue, e)
  662. case *map[uint]uint64:
  663. fastpathTV.EncMapUintUint64V(*v, fastpathCheckNilTrue, e)
  664. case map[uint]uintptr:
  665. fastpathTV.EncMapUintUintptrV(v, fastpathCheckNilTrue, e)
  666. case *map[uint]uintptr:
  667. fastpathTV.EncMapUintUintptrV(*v, fastpathCheckNilTrue, e)
  668. case map[uint]int:
  669. fastpathTV.EncMapUintIntV(v, fastpathCheckNilTrue, e)
  670. case *map[uint]int:
  671. fastpathTV.EncMapUintIntV(*v, fastpathCheckNilTrue, e)
  672. case map[uint]int8:
  673. fastpathTV.EncMapUintInt8V(v, fastpathCheckNilTrue, e)
  674. case *map[uint]int8:
  675. fastpathTV.EncMapUintInt8V(*v, fastpathCheckNilTrue, e)
  676. case map[uint]int16:
  677. fastpathTV.EncMapUintInt16V(v, fastpathCheckNilTrue, e)
  678. case *map[uint]int16:
  679. fastpathTV.EncMapUintInt16V(*v, fastpathCheckNilTrue, e)
  680. case map[uint]int32:
  681. fastpathTV.EncMapUintInt32V(v, fastpathCheckNilTrue, e)
  682. case *map[uint]int32:
  683. fastpathTV.EncMapUintInt32V(*v, fastpathCheckNilTrue, e)
  684. case map[uint]int64:
  685. fastpathTV.EncMapUintInt64V(v, fastpathCheckNilTrue, e)
  686. case *map[uint]int64:
  687. fastpathTV.EncMapUintInt64V(*v, fastpathCheckNilTrue, e)
  688. case map[uint]float32:
  689. fastpathTV.EncMapUintFloat32V(v, fastpathCheckNilTrue, e)
  690. case *map[uint]float32:
  691. fastpathTV.EncMapUintFloat32V(*v, fastpathCheckNilTrue, e)
  692. case map[uint]float64:
  693. fastpathTV.EncMapUintFloat64V(v, fastpathCheckNilTrue, e)
  694. case *map[uint]float64:
  695. fastpathTV.EncMapUintFloat64V(*v, fastpathCheckNilTrue, e)
  696. case map[uint]bool:
  697. fastpathTV.EncMapUintBoolV(v, fastpathCheckNilTrue, e)
  698. case *map[uint]bool:
  699. fastpathTV.EncMapUintBoolV(*v, fastpathCheckNilTrue, e)
  700. case map[uint8]interface{}:
  701. fastpathTV.EncMapUint8IntfV(v, fastpathCheckNilTrue, e)
  702. case *map[uint8]interface{}:
  703. fastpathTV.EncMapUint8IntfV(*v, fastpathCheckNilTrue, e)
  704. case map[uint8]string:
  705. fastpathTV.EncMapUint8StringV(v, fastpathCheckNilTrue, e)
  706. case *map[uint8]string:
  707. fastpathTV.EncMapUint8StringV(*v, fastpathCheckNilTrue, e)
  708. case map[uint8]uint:
  709. fastpathTV.EncMapUint8UintV(v, fastpathCheckNilTrue, e)
  710. case *map[uint8]uint:
  711. fastpathTV.EncMapUint8UintV(*v, fastpathCheckNilTrue, e)
  712. case map[uint8]uint8:
  713. fastpathTV.EncMapUint8Uint8V(v, fastpathCheckNilTrue, e)
  714. case *map[uint8]uint8:
  715. fastpathTV.EncMapUint8Uint8V(*v, fastpathCheckNilTrue, e)
  716. case map[uint8]uint16:
  717. fastpathTV.EncMapUint8Uint16V(v, fastpathCheckNilTrue, e)
  718. case *map[uint8]uint16:
  719. fastpathTV.EncMapUint8Uint16V(*v, fastpathCheckNilTrue, e)
  720. case map[uint8]uint32:
  721. fastpathTV.EncMapUint8Uint32V(v, fastpathCheckNilTrue, e)
  722. case *map[uint8]uint32:
  723. fastpathTV.EncMapUint8Uint32V(*v, fastpathCheckNilTrue, e)
  724. case map[uint8]uint64:
  725. fastpathTV.EncMapUint8Uint64V(v, fastpathCheckNilTrue, e)
  726. case *map[uint8]uint64:
  727. fastpathTV.EncMapUint8Uint64V(*v, fastpathCheckNilTrue, e)
  728. case map[uint8]uintptr:
  729. fastpathTV.EncMapUint8UintptrV(v, fastpathCheckNilTrue, e)
  730. case *map[uint8]uintptr:
  731. fastpathTV.EncMapUint8UintptrV(*v, fastpathCheckNilTrue, e)
  732. case map[uint8]int:
  733. fastpathTV.EncMapUint8IntV(v, fastpathCheckNilTrue, e)
  734. case *map[uint8]int:
  735. fastpathTV.EncMapUint8IntV(*v, fastpathCheckNilTrue, e)
  736. case map[uint8]int8:
  737. fastpathTV.EncMapUint8Int8V(v, fastpathCheckNilTrue, e)
  738. case *map[uint8]int8:
  739. fastpathTV.EncMapUint8Int8V(*v, fastpathCheckNilTrue, e)
  740. case map[uint8]int16:
  741. fastpathTV.EncMapUint8Int16V(v, fastpathCheckNilTrue, e)
  742. case *map[uint8]int16:
  743. fastpathTV.EncMapUint8Int16V(*v, fastpathCheckNilTrue, e)
  744. case map[uint8]int32:
  745. fastpathTV.EncMapUint8Int32V(v, fastpathCheckNilTrue, e)
  746. case *map[uint8]int32:
  747. fastpathTV.EncMapUint8Int32V(*v, fastpathCheckNilTrue, e)
  748. case map[uint8]int64:
  749. fastpathTV.EncMapUint8Int64V(v, fastpathCheckNilTrue, e)
  750. case *map[uint8]int64:
  751. fastpathTV.EncMapUint8Int64V(*v, fastpathCheckNilTrue, e)
  752. case map[uint8]float32:
  753. fastpathTV.EncMapUint8Float32V(v, fastpathCheckNilTrue, e)
  754. case *map[uint8]float32:
  755. fastpathTV.EncMapUint8Float32V(*v, fastpathCheckNilTrue, e)
  756. case map[uint8]float64:
  757. fastpathTV.EncMapUint8Float64V(v, fastpathCheckNilTrue, e)
  758. case *map[uint8]float64:
  759. fastpathTV.EncMapUint8Float64V(*v, fastpathCheckNilTrue, e)
  760. case map[uint8]bool:
  761. fastpathTV.EncMapUint8BoolV(v, fastpathCheckNilTrue, e)
  762. case *map[uint8]bool:
  763. fastpathTV.EncMapUint8BoolV(*v, fastpathCheckNilTrue, e)
  764. case []uint16:
  765. fastpathTV.EncSliceUint16V(v, fastpathCheckNilTrue, e)
  766. case *[]uint16:
  767. fastpathTV.EncSliceUint16V(*v, fastpathCheckNilTrue, e)
  768. case map[uint16]interface{}:
  769. fastpathTV.EncMapUint16IntfV(v, fastpathCheckNilTrue, e)
  770. case *map[uint16]interface{}:
  771. fastpathTV.EncMapUint16IntfV(*v, fastpathCheckNilTrue, e)
  772. case map[uint16]string:
  773. fastpathTV.EncMapUint16StringV(v, fastpathCheckNilTrue, e)
  774. case *map[uint16]string:
  775. fastpathTV.EncMapUint16StringV(*v, fastpathCheckNilTrue, e)
  776. case map[uint16]uint:
  777. fastpathTV.EncMapUint16UintV(v, fastpathCheckNilTrue, e)
  778. case *map[uint16]uint:
  779. fastpathTV.EncMapUint16UintV(*v, fastpathCheckNilTrue, e)
  780. case map[uint16]uint8:
  781. fastpathTV.EncMapUint16Uint8V(v, fastpathCheckNilTrue, e)
  782. case *map[uint16]uint8:
  783. fastpathTV.EncMapUint16Uint8V(*v, fastpathCheckNilTrue, e)
  784. case map[uint16]uint16:
  785. fastpathTV.EncMapUint16Uint16V(v, fastpathCheckNilTrue, e)
  786. case *map[uint16]uint16:
  787. fastpathTV.EncMapUint16Uint16V(*v, fastpathCheckNilTrue, e)
  788. case map[uint16]uint32:
  789. fastpathTV.EncMapUint16Uint32V(v, fastpathCheckNilTrue, e)
  790. case *map[uint16]uint32:
  791. fastpathTV.EncMapUint16Uint32V(*v, fastpathCheckNilTrue, e)
  792. case map[uint16]uint64:
  793. fastpathTV.EncMapUint16Uint64V(v, fastpathCheckNilTrue, e)
  794. case *map[uint16]uint64:
  795. fastpathTV.EncMapUint16Uint64V(*v, fastpathCheckNilTrue, e)
  796. case map[uint16]uintptr:
  797. fastpathTV.EncMapUint16UintptrV(v, fastpathCheckNilTrue, e)
  798. case *map[uint16]uintptr:
  799. fastpathTV.EncMapUint16UintptrV(*v, fastpathCheckNilTrue, e)
  800. case map[uint16]int:
  801. fastpathTV.EncMapUint16IntV(v, fastpathCheckNilTrue, e)
  802. case *map[uint16]int:
  803. fastpathTV.EncMapUint16IntV(*v, fastpathCheckNilTrue, e)
  804. case map[uint16]int8:
  805. fastpathTV.EncMapUint16Int8V(v, fastpathCheckNilTrue, e)
  806. case *map[uint16]int8:
  807. fastpathTV.EncMapUint16Int8V(*v, fastpathCheckNilTrue, e)
  808. case map[uint16]int16:
  809. fastpathTV.EncMapUint16Int16V(v, fastpathCheckNilTrue, e)
  810. case *map[uint16]int16:
  811. fastpathTV.EncMapUint16Int16V(*v, fastpathCheckNilTrue, e)
  812. case map[uint16]int32:
  813. fastpathTV.EncMapUint16Int32V(v, fastpathCheckNilTrue, e)
  814. case *map[uint16]int32:
  815. fastpathTV.EncMapUint16Int32V(*v, fastpathCheckNilTrue, e)
  816. case map[uint16]int64:
  817. fastpathTV.EncMapUint16Int64V(v, fastpathCheckNilTrue, e)
  818. case *map[uint16]int64:
  819. fastpathTV.EncMapUint16Int64V(*v, fastpathCheckNilTrue, e)
  820. case map[uint16]float32:
  821. fastpathTV.EncMapUint16Float32V(v, fastpathCheckNilTrue, e)
  822. case *map[uint16]float32:
  823. fastpathTV.EncMapUint16Float32V(*v, fastpathCheckNilTrue, e)
  824. case map[uint16]float64:
  825. fastpathTV.EncMapUint16Float64V(v, fastpathCheckNilTrue, e)
  826. case *map[uint16]float64:
  827. fastpathTV.EncMapUint16Float64V(*v, fastpathCheckNilTrue, e)
  828. case map[uint16]bool:
  829. fastpathTV.EncMapUint16BoolV(v, fastpathCheckNilTrue, e)
  830. case *map[uint16]bool:
  831. fastpathTV.EncMapUint16BoolV(*v, fastpathCheckNilTrue, e)
  832. case []uint32:
  833. fastpathTV.EncSliceUint32V(v, fastpathCheckNilTrue, e)
  834. case *[]uint32:
  835. fastpathTV.EncSliceUint32V(*v, fastpathCheckNilTrue, e)
  836. case map[uint32]interface{}:
  837. fastpathTV.EncMapUint32IntfV(v, fastpathCheckNilTrue, e)
  838. case *map[uint32]interface{}:
  839. fastpathTV.EncMapUint32IntfV(*v, fastpathCheckNilTrue, e)
  840. case map[uint32]string:
  841. fastpathTV.EncMapUint32StringV(v, fastpathCheckNilTrue, e)
  842. case *map[uint32]string:
  843. fastpathTV.EncMapUint32StringV(*v, fastpathCheckNilTrue, e)
  844. case map[uint32]uint:
  845. fastpathTV.EncMapUint32UintV(v, fastpathCheckNilTrue, e)
  846. case *map[uint32]uint:
  847. fastpathTV.EncMapUint32UintV(*v, fastpathCheckNilTrue, e)
  848. case map[uint32]uint8:
  849. fastpathTV.EncMapUint32Uint8V(v, fastpathCheckNilTrue, e)
  850. case *map[uint32]uint8:
  851. fastpathTV.EncMapUint32Uint8V(*v, fastpathCheckNilTrue, e)
  852. case map[uint32]uint16:
  853. fastpathTV.EncMapUint32Uint16V(v, fastpathCheckNilTrue, e)
  854. case *map[uint32]uint16:
  855. fastpathTV.EncMapUint32Uint16V(*v, fastpathCheckNilTrue, e)
  856. case map[uint32]uint32:
  857. fastpathTV.EncMapUint32Uint32V(v, fastpathCheckNilTrue, e)
  858. case *map[uint32]uint32:
  859. fastpathTV.EncMapUint32Uint32V(*v, fastpathCheckNilTrue, e)
  860. case map[uint32]uint64:
  861. fastpathTV.EncMapUint32Uint64V(v, fastpathCheckNilTrue, e)
  862. case *map[uint32]uint64:
  863. fastpathTV.EncMapUint32Uint64V(*v, fastpathCheckNilTrue, e)
  864. case map[uint32]uintptr:
  865. fastpathTV.EncMapUint32UintptrV(v, fastpathCheckNilTrue, e)
  866. case *map[uint32]uintptr:
  867. fastpathTV.EncMapUint32UintptrV(*v, fastpathCheckNilTrue, e)
  868. case map[uint32]int:
  869. fastpathTV.EncMapUint32IntV(v, fastpathCheckNilTrue, e)
  870. case *map[uint32]int:
  871. fastpathTV.EncMapUint32IntV(*v, fastpathCheckNilTrue, e)
  872. case map[uint32]int8:
  873. fastpathTV.EncMapUint32Int8V(v, fastpathCheckNilTrue, e)
  874. case *map[uint32]int8:
  875. fastpathTV.EncMapUint32Int8V(*v, fastpathCheckNilTrue, e)
  876. case map[uint32]int16:
  877. fastpathTV.EncMapUint32Int16V(v, fastpathCheckNilTrue, e)
  878. case *map[uint32]int16:
  879. fastpathTV.EncMapUint32Int16V(*v, fastpathCheckNilTrue, e)
  880. case map[uint32]int32:
  881. fastpathTV.EncMapUint32Int32V(v, fastpathCheckNilTrue, e)
  882. case *map[uint32]int32:
  883. fastpathTV.EncMapUint32Int32V(*v, fastpathCheckNilTrue, e)
  884. case map[uint32]int64:
  885. fastpathTV.EncMapUint32Int64V(v, fastpathCheckNilTrue, e)
  886. case *map[uint32]int64:
  887. fastpathTV.EncMapUint32Int64V(*v, fastpathCheckNilTrue, e)
  888. case map[uint32]float32:
  889. fastpathTV.EncMapUint32Float32V(v, fastpathCheckNilTrue, e)
  890. case *map[uint32]float32:
  891. fastpathTV.EncMapUint32Float32V(*v, fastpathCheckNilTrue, e)
  892. case map[uint32]float64:
  893. fastpathTV.EncMapUint32Float64V(v, fastpathCheckNilTrue, e)
  894. case *map[uint32]float64:
  895. fastpathTV.EncMapUint32Float64V(*v, fastpathCheckNilTrue, e)
  896. case map[uint32]bool:
  897. fastpathTV.EncMapUint32BoolV(v, fastpathCheckNilTrue, e)
  898. case *map[uint32]bool:
  899. fastpathTV.EncMapUint32BoolV(*v, fastpathCheckNilTrue, e)
  900. case []uint64:
  901. fastpathTV.EncSliceUint64V(v, fastpathCheckNilTrue, e)
  902. case *[]uint64:
  903. fastpathTV.EncSliceUint64V(*v, fastpathCheckNilTrue, e)
  904. case map[uint64]interface{}:
  905. fastpathTV.EncMapUint64IntfV(v, fastpathCheckNilTrue, e)
  906. case *map[uint64]interface{}:
  907. fastpathTV.EncMapUint64IntfV(*v, fastpathCheckNilTrue, e)
  908. case map[uint64]string:
  909. fastpathTV.EncMapUint64StringV(v, fastpathCheckNilTrue, e)
  910. case *map[uint64]string:
  911. fastpathTV.EncMapUint64StringV(*v, fastpathCheckNilTrue, e)
  912. case map[uint64]uint:
  913. fastpathTV.EncMapUint64UintV(v, fastpathCheckNilTrue, e)
  914. case *map[uint64]uint:
  915. fastpathTV.EncMapUint64UintV(*v, fastpathCheckNilTrue, e)
  916. case map[uint64]uint8:
  917. fastpathTV.EncMapUint64Uint8V(v, fastpathCheckNilTrue, e)
  918. case *map[uint64]uint8:
  919. fastpathTV.EncMapUint64Uint8V(*v, fastpathCheckNilTrue, e)
  920. case map[uint64]uint16:
  921. fastpathTV.EncMapUint64Uint16V(v, fastpathCheckNilTrue, e)
  922. case *map[uint64]uint16:
  923. fastpathTV.EncMapUint64Uint16V(*v, fastpathCheckNilTrue, e)
  924. case map[uint64]uint32:
  925. fastpathTV.EncMapUint64Uint32V(v, fastpathCheckNilTrue, e)
  926. case *map[uint64]uint32:
  927. fastpathTV.EncMapUint64Uint32V(*v, fastpathCheckNilTrue, e)
  928. case map[uint64]uint64:
  929. fastpathTV.EncMapUint64Uint64V(v, fastpathCheckNilTrue, e)
  930. case *map[uint64]uint64:
  931. fastpathTV.EncMapUint64Uint64V(*v, fastpathCheckNilTrue, e)
  932. case map[uint64]uintptr:
  933. fastpathTV.EncMapUint64UintptrV(v, fastpathCheckNilTrue, e)
  934. case *map[uint64]uintptr:
  935. fastpathTV.EncMapUint64UintptrV(*v, fastpathCheckNilTrue, e)
  936. case map[uint64]int:
  937. fastpathTV.EncMapUint64IntV(v, fastpathCheckNilTrue, e)
  938. case *map[uint64]int:
  939. fastpathTV.EncMapUint64IntV(*v, fastpathCheckNilTrue, e)
  940. case map[uint64]int8:
  941. fastpathTV.EncMapUint64Int8V(v, fastpathCheckNilTrue, e)
  942. case *map[uint64]int8:
  943. fastpathTV.EncMapUint64Int8V(*v, fastpathCheckNilTrue, e)
  944. case map[uint64]int16:
  945. fastpathTV.EncMapUint64Int16V(v, fastpathCheckNilTrue, e)
  946. case *map[uint64]int16:
  947. fastpathTV.EncMapUint64Int16V(*v, fastpathCheckNilTrue, e)
  948. case map[uint64]int32:
  949. fastpathTV.EncMapUint64Int32V(v, fastpathCheckNilTrue, e)
  950. case *map[uint64]int32:
  951. fastpathTV.EncMapUint64Int32V(*v, fastpathCheckNilTrue, e)
  952. case map[uint64]int64:
  953. fastpathTV.EncMapUint64Int64V(v, fastpathCheckNilTrue, e)
  954. case *map[uint64]int64:
  955. fastpathTV.EncMapUint64Int64V(*v, fastpathCheckNilTrue, e)
  956. case map[uint64]float32:
  957. fastpathTV.EncMapUint64Float32V(v, fastpathCheckNilTrue, e)
  958. case *map[uint64]float32:
  959. fastpathTV.EncMapUint64Float32V(*v, fastpathCheckNilTrue, e)
  960. case map[uint64]float64:
  961. fastpathTV.EncMapUint64Float64V(v, fastpathCheckNilTrue, e)
  962. case *map[uint64]float64:
  963. fastpathTV.EncMapUint64Float64V(*v, fastpathCheckNilTrue, e)
  964. case map[uint64]bool:
  965. fastpathTV.EncMapUint64BoolV(v, fastpathCheckNilTrue, e)
  966. case *map[uint64]bool:
  967. fastpathTV.EncMapUint64BoolV(*v, fastpathCheckNilTrue, e)
  968. case []uintptr:
  969. fastpathTV.EncSliceUintptrV(v, fastpathCheckNilTrue, e)
  970. case *[]uintptr:
  971. fastpathTV.EncSliceUintptrV(*v, fastpathCheckNilTrue, e)
  972. case map[uintptr]interface{}:
  973. fastpathTV.EncMapUintptrIntfV(v, fastpathCheckNilTrue, e)
  974. case *map[uintptr]interface{}:
  975. fastpathTV.EncMapUintptrIntfV(*v, fastpathCheckNilTrue, e)
  976. case map[uintptr]string:
  977. fastpathTV.EncMapUintptrStringV(v, fastpathCheckNilTrue, e)
  978. case *map[uintptr]string:
  979. fastpathTV.EncMapUintptrStringV(*v, fastpathCheckNilTrue, e)
  980. case map[uintptr]uint:
  981. fastpathTV.EncMapUintptrUintV(v, fastpathCheckNilTrue, e)
  982. case *map[uintptr]uint:
  983. fastpathTV.EncMapUintptrUintV(*v, fastpathCheckNilTrue, e)
  984. case map[uintptr]uint8:
  985. fastpathTV.EncMapUintptrUint8V(v, fastpathCheckNilTrue, e)
  986. case *map[uintptr]uint8:
  987. fastpathTV.EncMapUintptrUint8V(*v, fastpathCheckNilTrue, e)
  988. case map[uintptr]uint16:
  989. fastpathTV.EncMapUintptrUint16V(v, fastpathCheckNilTrue, e)
  990. case *map[uintptr]uint16:
  991. fastpathTV.EncMapUintptrUint16V(*v, fastpathCheckNilTrue, e)
  992. case map[uintptr]uint32:
  993. fastpathTV.EncMapUintptrUint32V(v, fastpathCheckNilTrue, e)
  994. case *map[uintptr]uint32:
  995. fastpathTV.EncMapUintptrUint32V(*v, fastpathCheckNilTrue, e)
  996. case map[uintptr]uint64:
  997. fastpathTV.EncMapUintptrUint64V(v, fastpathCheckNilTrue, e)
  998. case *map[uintptr]uint64:
  999. fastpathTV.EncMapUintptrUint64V(*v, fastpathCheckNilTrue, e)
  1000. case map[uintptr]uintptr:
  1001. fastpathTV.EncMapUintptrUintptrV(v, fastpathCheckNilTrue, e)
  1002. case *map[uintptr]uintptr:
  1003. fastpathTV.EncMapUintptrUintptrV(*v, fastpathCheckNilTrue, e)
  1004. case map[uintptr]int:
  1005. fastpathTV.EncMapUintptrIntV(v, fastpathCheckNilTrue, e)
  1006. case *map[uintptr]int:
  1007. fastpathTV.EncMapUintptrIntV(*v, fastpathCheckNilTrue, e)
  1008. case map[uintptr]int8:
  1009. fastpathTV.EncMapUintptrInt8V(v, fastpathCheckNilTrue, e)
  1010. case *map[uintptr]int8:
  1011. fastpathTV.EncMapUintptrInt8V(*v, fastpathCheckNilTrue, e)
  1012. case map[uintptr]int16:
  1013. fastpathTV.EncMapUintptrInt16V(v, fastpathCheckNilTrue, e)
  1014. case *map[uintptr]int16:
  1015. fastpathTV.EncMapUintptrInt16V(*v, fastpathCheckNilTrue, e)
  1016. case map[uintptr]int32:
  1017. fastpathTV.EncMapUintptrInt32V(v, fastpathCheckNilTrue, e)
  1018. case *map[uintptr]int32:
  1019. fastpathTV.EncMapUintptrInt32V(*v, fastpathCheckNilTrue, e)
  1020. case map[uintptr]int64:
  1021. fastpathTV.EncMapUintptrInt64V(v, fastpathCheckNilTrue, e)
  1022. case *map[uintptr]int64:
  1023. fastpathTV.EncMapUintptrInt64V(*v, fastpathCheckNilTrue, e)
  1024. case map[uintptr]float32:
  1025. fastpathTV.EncMapUintptrFloat32V(v, fastpathCheckNilTrue, e)
  1026. case *map[uintptr]float32:
  1027. fastpathTV.EncMapUintptrFloat32V(*v, fastpathCheckNilTrue, e)
  1028. case map[uintptr]float64:
  1029. fastpathTV.EncMapUintptrFloat64V(v, fastpathCheckNilTrue, e)
  1030. case *map[uintptr]float64:
  1031. fastpathTV.EncMapUintptrFloat64V(*v, fastpathCheckNilTrue, e)
  1032. case map[uintptr]bool:
  1033. fastpathTV.EncMapUintptrBoolV(v, fastpathCheckNilTrue, e)
  1034. case *map[uintptr]bool:
  1035. fastpathTV.EncMapUintptrBoolV(*v, fastpathCheckNilTrue, e)
  1036. case []int:
  1037. fastpathTV.EncSliceIntV(v, fastpathCheckNilTrue, e)
  1038. case *[]int:
  1039. fastpathTV.EncSliceIntV(*v, fastpathCheckNilTrue, e)
  1040. case map[int]interface{}:
  1041. fastpathTV.EncMapIntIntfV(v, fastpathCheckNilTrue, e)
  1042. case *map[int]interface{}:
  1043. fastpathTV.EncMapIntIntfV(*v, fastpathCheckNilTrue, e)
  1044. case map[int]string:
  1045. fastpathTV.EncMapIntStringV(v, fastpathCheckNilTrue, e)
  1046. case *map[int]string:
  1047. fastpathTV.EncMapIntStringV(*v, fastpathCheckNilTrue, e)
  1048. case map[int]uint:
  1049. fastpathTV.EncMapIntUintV(v, fastpathCheckNilTrue, e)
  1050. case *map[int]uint:
  1051. fastpathTV.EncMapIntUintV(*v, fastpathCheckNilTrue, e)
  1052. case map[int]uint8:
  1053. fastpathTV.EncMapIntUint8V(v, fastpathCheckNilTrue, e)
  1054. case *map[int]uint8:
  1055. fastpathTV.EncMapIntUint8V(*v, fastpathCheckNilTrue, e)
  1056. case map[int]uint16:
  1057. fastpathTV.EncMapIntUint16V(v, fastpathCheckNilTrue, e)
  1058. case *map[int]uint16:
  1059. fastpathTV.EncMapIntUint16V(*v, fastpathCheckNilTrue, e)
  1060. case map[int]uint32:
  1061. fastpathTV.EncMapIntUint32V(v, fastpathCheckNilTrue, e)
  1062. case *map[int]uint32:
  1063. fastpathTV.EncMapIntUint32V(*v, fastpathCheckNilTrue, e)
  1064. case map[int]uint64:
  1065. fastpathTV.EncMapIntUint64V(v, fastpathCheckNilTrue, e)
  1066. case *map[int]uint64:
  1067. fastpathTV.EncMapIntUint64V(*v, fastpathCheckNilTrue, e)
  1068. case map[int]uintptr:
  1069. fastpathTV.EncMapIntUintptrV(v, fastpathCheckNilTrue, e)
  1070. case *map[int]uintptr:
  1071. fastpathTV.EncMapIntUintptrV(*v, fastpathCheckNilTrue, e)
  1072. case map[int]int:
  1073. fastpathTV.EncMapIntIntV(v, fastpathCheckNilTrue, e)
  1074. case *map[int]int:
  1075. fastpathTV.EncMapIntIntV(*v, fastpathCheckNilTrue, e)
  1076. case map[int]int8:
  1077. fastpathTV.EncMapIntInt8V(v, fastpathCheckNilTrue, e)
  1078. case *map[int]int8:
  1079. fastpathTV.EncMapIntInt8V(*v, fastpathCheckNilTrue, e)
  1080. case map[int]int16:
  1081. fastpathTV.EncMapIntInt16V(v, fastpathCheckNilTrue, e)
  1082. case *map[int]int16:
  1083. fastpathTV.EncMapIntInt16V(*v, fastpathCheckNilTrue, e)
  1084. case map[int]int32:
  1085. fastpathTV.EncMapIntInt32V(v, fastpathCheckNilTrue, e)
  1086. case *map[int]int32:
  1087. fastpathTV.EncMapIntInt32V(*v, fastpathCheckNilTrue, e)
  1088. case map[int]int64:
  1089. fastpathTV.EncMapIntInt64V(v, fastpathCheckNilTrue, e)
  1090. case *map[int]int64:
  1091. fastpathTV.EncMapIntInt64V(*v, fastpathCheckNilTrue, e)
  1092. case map[int]float32:
  1093. fastpathTV.EncMapIntFloat32V(v, fastpathCheckNilTrue, e)
  1094. case *map[int]float32:
  1095. fastpathTV.EncMapIntFloat32V(*v, fastpathCheckNilTrue, e)
  1096. case map[int]float64:
  1097. fastpathTV.EncMapIntFloat64V(v, fastpathCheckNilTrue, e)
  1098. case *map[int]float64:
  1099. fastpathTV.EncMapIntFloat64V(*v, fastpathCheckNilTrue, e)
  1100. case map[int]bool:
  1101. fastpathTV.EncMapIntBoolV(v, fastpathCheckNilTrue, e)
  1102. case *map[int]bool:
  1103. fastpathTV.EncMapIntBoolV(*v, fastpathCheckNilTrue, e)
  1104. case []int8:
  1105. fastpathTV.EncSliceInt8V(v, fastpathCheckNilTrue, e)
  1106. case *[]int8:
  1107. fastpathTV.EncSliceInt8V(*v, fastpathCheckNilTrue, e)
  1108. case map[int8]interface{}:
  1109. fastpathTV.EncMapInt8IntfV(v, fastpathCheckNilTrue, e)
  1110. case *map[int8]interface{}:
  1111. fastpathTV.EncMapInt8IntfV(*v, fastpathCheckNilTrue, e)
  1112. case map[int8]string:
  1113. fastpathTV.EncMapInt8StringV(v, fastpathCheckNilTrue, e)
  1114. case *map[int8]string:
  1115. fastpathTV.EncMapInt8StringV(*v, fastpathCheckNilTrue, e)
  1116. case map[int8]uint:
  1117. fastpathTV.EncMapInt8UintV(v, fastpathCheckNilTrue, e)
  1118. case *map[int8]uint:
  1119. fastpathTV.EncMapInt8UintV(*v, fastpathCheckNilTrue, e)
  1120. case map[int8]uint8:
  1121. fastpathTV.EncMapInt8Uint8V(v, fastpathCheckNilTrue, e)
  1122. case *map[int8]uint8:
  1123. fastpathTV.EncMapInt8Uint8V(*v, fastpathCheckNilTrue, e)
  1124. case map[int8]uint16:
  1125. fastpathTV.EncMapInt8Uint16V(v, fastpathCheckNilTrue, e)
  1126. case *map[int8]uint16:
  1127. fastpathTV.EncMapInt8Uint16V(*v, fastpathCheckNilTrue, e)
  1128. case map[int8]uint32:
  1129. fastpathTV.EncMapInt8Uint32V(v, fastpathCheckNilTrue, e)
  1130. case *map[int8]uint32:
  1131. fastpathTV.EncMapInt8Uint32V(*v, fastpathCheckNilTrue, e)
  1132. case map[int8]uint64:
  1133. fastpathTV.EncMapInt8Uint64V(v, fastpathCheckNilTrue, e)
  1134. case *map[int8]uint64:
  1135. fastpathTV.EncMapInt8Uint64V(*v, fastpathCheckNilTrue, e)
  1136. case map[int8]uintptr:
  1137. fastpathTV.EncMapInt8UintptrV(v, fastpathCheckNilTrue, e)
  1138. case *map[int8]uintptr:
  1139. fastpathTV.EncMapInt8UintptrV(*v, fastpathCheckNilTrue, e)
  1140. case map[int8]int:
  1141. fastpathTV.EncMapInt8IntV(v, fastpathCheckNilTrue, e)
  1142. case *map[int8]int:
  1143. fastpathTV.EncMapInt8IntV(*v, fastpathCheckNilTrue, e)
  1144. case map[int8]int8:
  1145. fastpathTV.EncMapInt8Int8V(v, fastpathCheckNilTrue, e)
  1146. case *map[int8]int8:
  1147. fastpathTV.EncMapInt8Int8V(*v, fastpathCheckNilTrue, e)
  1148. case map[int8]int16:
  1149. fastpathTV.EncMapInt8Int16V(v, fastpathCheckNilTrue, e)
  1150. case *map[int8]int16:
  1151. fastpathTV.EncMapInt8Int16V(*v, fastpathCheckNilTrue, e)
  1152. case map[int8]int32:
  1153. fastpathTV.EncMapInt8Int32V(v, fastpathCheckNilTrue, e)
  1154. case *map[int8]int32:
  1155. fastpathTV.EncMapInt8Int32V(*v, fastpathCheckNilTrue, e)
  1156. case map[int8]int64:
  1157. fastpathTV.EncMapInt8Int64V(v, fastpathCheckNilTrue, e)
  1158. case *map[int8]int64:
  1159. fastpathTV.EncMapInt8Int64V(*v, fastpathCheckNilTrue, e)
  1160. case map[int8]float32:
  1161. fastpathTV.EncMapInt8Float32V(v, fastpathCheckNilTrue, e)
  1162. case *map[int8]float32:
  1163. fastpathTV.EncMapInt8Float32V(*v, fastpathCheckNilTrue, e)
  1164. case map[int8]float64:
  1165. fastpathTV.EncMapInt8Float64V(v, fastpathCheckNilTrue, e)
  1166. case *map[int8]float64:
  1167. fastpathTV.EncMapInt8Float64V(*v, fastpathCheckNilTrue, e)
  1168. case map[int8]bool:
  1169. fastpathTV.EncMapInt8BoolV(v, fastpathCheckNilTrue, e)
  1170. case *map[int8]bool:
  1171. fastpathTV.EncMapInt8BoolV(*v, fastpathCheckNilTrue, e)
  1172. case []int16:
  1173. fastpathTV.EncSliceInt16V(v, fastpathCheckNilTrue, e)
  1174. case *[]int16:
  1175. fastpathTV.EncSliceInt16V(*v, fastpathCheckNilTrue, e)
  1176. case map[int16]interface{}:
  1177. fastpathTV.EncMapInt16IntfV(v, fastpathCheckNilTrue, e)
  1178. case *map[int16]interface{}:
  1179. fastpathTV.EncMapInt16IntfV(*v, fastpathCheckNilTrue, e)
  1180. case map[int16]string:
  1181. fastpathTV.EncMapInt16StringV(v, fastpathCheckNilTrue, e)
  1182. case *map[int16]string:
  1183. fastpathTV.EncMapInt16StringV(*v, fastpathCheckNilTrue, e)
  1184. case map[int16]uint:
  1185. fastpathTV.EncMapInt16UintV(v, fastpathCheckNilTrue, e)
  1186. case *map[int16]uint:
  1187. fastpathTV.EncMapInt16UintV(*v, fastpathCheckNilTrue, e)
  1188. case map[int16]uint8:
  1189. fastpathTV.EncMapInt16Uint8V(v, fastpathCheckNilTrue, e)
  1190. case *map[int16]uint8:
  1191. fastpathTV.EncMapInt16Uint8V(*v, fastpathCheckNilTrue, e)
  1192. case map[int16]uint16:
  1193. fastpathTV.EncMapInt16Uint16V(v, fastpathCheckNilTrue, e)
  1194. case *map[int16]uint16:
  1195. fastpathTV.EncMapInt16Uint16V(*v, fastpathCheckNilTrue, e)
  1196. case map[int16]uint32:
  1197. fastpathTV.EncMapInt16Uint32V(v, fastpathCheckNilTrue, e)
  1198. case *map[int16]uint32:
  1199. fastpathTV.EncMapInt16Uint32V(*v, fastpathCheckNilTrue, e)
  1200. case map[int16]uint64:
  1201. fastpathTV.EncMapInt16Uint64V(v, fastpathCheckNilTrue, e)
  1202. case *map[int16]uint64:
  1203. fastpathTV.EncMapInt16Uint64V(*v, fastpathCheckNilTrue, e)
  1204. case map[int16]uintptr:
  1205. fastpathTV.EncMapInt16UintptrV(v, fastpathCheckNilTrue, e)
  1206. case *map[int16]uintptr:
  1207. fastpathTV.EncMapInt16UintptrV(*v, fastpathCheckNilTrue, e)
  1208. case map[int16]int:
  1209. fastpathTV.EncMapInt16IntV(v, fastpathCheckNilTrue, e)
  1210. case *map[int16]int:
  1211. fastpathTV.EncMapInt16IntV(*v, fastpathCheckNilTrue, e)
  1212. case map[int16]int8:
  1213. fastpathTV.EncMapInt16Int8V(v, fastpathCheckNilTrue, e)
  1214. case *map[int16]int8:
  1215. fastpathTV.EncMapInt16Int8V(*v, fastpathCheckNilTrue, e)
  1216. case map[int16]int16:
  1217. fastpathTV.EncMapInt16Int16V(v, fastpathCheckNilTrue, e)
  1218. case *map[int16]int16:
  1219. fastpathTV.EncMapInt16Int16V(*v, fastpathCheckNilTrue, e)
  1220. case map[int16]int32:
  1221. fastpathTV.EncMapInt16Int32V(v, fastpathCheckNilTrue, e)
  1222. case *map[int16]int32:
  1223. fastpathTV.EncMapInt16Int32V(*v, fastpathCheckNilTrue, e)
  1224. case map[int16]int64:
  1225. fastpathTV.EncMapInt16Int64V(v, fastpathCheckNilTrue, e)
  1226. case *map[int16]int64:
  1227. fastpathTV.EncMapInt16Int64V(*v, fastpathCheckNilTrue, e)
  1228. case map[int16]float32:
  1229. fastpathTV.EncMapInt16Float32V(v, fastpathCheckNilTrue, e)
  1230. case *map[int16]float32:
  1231. fastpathTV.EncMapInt16Float32V(*v, fastpathCheckNilTrue, e)
  1232. case map[int16]float64:
  1233. fastpathTV.EncMapInt16Float64V(v, fastpathCheckNilTrue, e)
  1234. case *map[int16]float64:
  1235. fastpathTV.EncMapInt16Float64V(*v, fastpathCheckNilTrue, e)
  1236. case map[int16]bool:
  1237. fastpathTV.EncMapInt16BoolV(v, fastpathCheckNilTrue, e)
  1238. case *map[int16]bool:
  1239. fastpathTV.EncMapInt16BoolV(*v, fastpathCheckNilTrue, e)
  1240. case []int32:
  1241. fastpathTV.EncSliceInt32V(v, fastpathCheckNilTrue, e)
  1242. case *[]int32:
  1243. fastpathTV.EncSliceInt32V(*v, fastpathCheckNilTrue, e)
  1244. case map[int32]interface{}:
  1245. fastpathTV.EncMapInt32IntfV(v, fastpathCheckNilTrue, e)
  1246. case *map[int32]interface{}:
  1247. fastpathTV.EncMapInt32IntfV(*v, fastpathCheckNilTrue, e)
  1248. case map[int32]string:
  1249. fastpathTV.EncMapInt32StringV(v, fastpathCheckNilTrue, e)
  1250. case *map[int32]string:
  1251. fastpathTV.EncMapInt32StringV(*v, fastpathCheckNilTrue, e)
  1252. case map[int32]uint:
  1253. fastpathTV.EncMapInt32UintV(v, fastpathCheckNilTrue, e)
  1254. case *map[int32]uint:
  1255. fastpathTV.EncMapInt32UintV(*v, fastpathCheckNilTrue, e)
  1256. case map[int32]uint8:
  1257. fastpathTV.EncMapInt32Uint8V(v, fastpathCheckNilTrue, e)
  1258. case *map[int32]uint8:
  1259. fastpathTV.EncMapInt32Uint8V(*v, fastpathCheckNilTrue, e)
  1260. case map[int32]uint16:
  1261. fastpathTV.EncMapInt32Uint16V(v, fastpathCheckNilTrue, e)
  1262. case *map[int32]uint16:
  1263. fastpathTV.EncMapInt32Uint16V(*v, fastpathCheckNilTrue, e)
  1264. case map[int32]uint32:
  1265. fastpathTV.EncMapInt32Uint32V(v, fastpathCheckNilTrue, e)
  1266. case *map[int32]uint32:
  1267. fastpathTV.EncMapInt32Uint32V(*v, fastpathCheckNilTrue, e)
  1268. case map[int32]uint64:
  1269. fastpathTV.EncMapInt32Uint64V(v, fastpathCheckNilTrue, e)
  1270. case *map[int32]uint64:
  1271. fastpathTV.EncMapInt32Uint64V(*v, fastpathCheckNilTrue, e)
  1272. case map[int32]uintptr:
  1273. fastpathTV.EncMapInt32UintptrV(v, fastpathCheckNilTrue, e)
  1274. case *map[int32]uintptr:
  1275. fastpathTV.EncMapInt32UintptrV(*v, fastpathCheckNilTrue, e)
  1276. case map[int32]int:
  1277. fastpathTV.EncMapInt32IntV(v, fastpathCheckNilTrue, e)
  1278. case *map[int32]int:
  1279. fastpathTV.EncMapInt32IntV(*v, fastpathCheckNilTrue, e)
  1280. case map[int32]int8:
  1281. fastpathTV.EncMapInt32Int8V(v, fastpathCheckNilTrue, e)
  1282. case *map[int32]int8:
  1283. fastpathTV.EncMapInt32Int8V(*v, fastpathCheckNilTrue, e)
  1284. case map[int32]int16:
  1285. fastpathTV.EncMapInt32Int16V(v, fastpathCheckNilTrue, e)
  1286. case *map[int32]int16:
  1287. fastpathTV.EncMapInt32Int16V(*v, fastpathCheckNilTrue, e)
  1288. case map[int32]int32:
  1289. fastpathTV.EncMapInt32Int32V(v, fastpathCheckNilTrue, e)
  1290. case *map[int32]int32:
  1291. fastpathTV.EncMapInt32Int32V(*v, fastpathCheckNilTrue, e)
  1292. case map[int32]int64:
  1293. fastpathTV.EncMapInt32Int64V(v, fastpathCheckNilTrue, e)
  1294. case *map[int32]int64:
  1295. fastpathTV.EncMapInt32Int64V(*v, fastpathCheckNilTrue, e)
  1296. case map[int32]float32:
  1297. fastpathTV.EncMapInt32Float32V(v, fastpathCheckNilTrue, e)
  1298. case *map[int32]float32:
  1299. fastpathTV.EncMapInt32Float32V(*v, fastpathCheckNilTrue, e)
  1300. case map[int32]float64:
  1301. fastpathTV.EncMapInt32Float64V(v, fastpathCheckNilTrue, e)
  1302. case *map[int32]float64:
  1303. fastpathTV.EncMapInt32Float64V(*v, fastpathCheckNilTrue, e)
  1304. case map[int32]bool:
  1305. fastpathTV.EncMapInt32BoolV(v, fastpathCheckNilTrue, e)
  1306. case *map[int32]bool:
  1307. fastpathTV.EncMapInt32BoolV(*v, fastpathCheckNilTrue, e)
  1308. case []int64:
  1309. fastpathTV.EncSliceInt64V(v, fastpathCheckNilTrue, e)
  1310. case *[]int64:
  1311. fastpathTV.EncSliceInt64V(*v, fastpathCheckNilTrue, e)
  1312. case map[int64]interface{}:
  1313. fastpathTV.EncMapInt64IntfV(v, fastpathCheckNilTrue, e)
  1314. case *map[int64]interface{}:
  1315. fastpathTV.EncMapInt64IntfV(*v, fastpathCheckNilTrue, e)
  1316. case map[int64]string:
  1317. fastpathTV.EncMapInt64StringV(v, fastpathCheckNilTrue, e)
  1318. case *map[int64]string:
  1319. fastpathTV.EncMapInt64StringV(*v, fastpathCheckNilTrue, e)
  1320. case map[int64]uint:
  1321. fastpathTV.EncMapInt64UintV(v, fastpathCheckNilTrue, e)
  1322. case *map[int64]uint:
  1323. fastpathTV.EncMapInt64UintV(*v, fastpathCheckNilTrue, e)
  1324. case map[int64]uint8:
  1325. fastpathTV.EncMapInt64Uint8V(v, fastpathCheckNilTrue, e)
  1326. case *map[int64]uint8:
  1327. fastpathTV.EncMapInt64Uint8V(*v, fastpathCheckNilTrue, e)
  1328. case map[int64]uint16:
  1329. fastpathTV.EncMapInt64Uint16V(v, fastpathCheckNilTrue, e)
  1330. case *map[int64]uint16:
  1331. fastpathTV.EncMapInt64Uint16V(*v, fastpathCheckNilTrue, e)
  1332. case map[int64]uint32:
  1333. fastpathTV.EncMapInt64Uint32V(v, fastpathCheckNilTrue, e)
  1334. case *map[int64]uint32:
  1335. fastpathTV.EncMapInt64Uint32V(*v, fastpathCheckNilTrue, e)
  1336. case map[int64]uint64:
  1337. fastpathTV.EncMapInt64Uint64V(v, fastpathCheckNilTrue, e)
  1338. case *map[int64]uint64:
  1339. fastpathTV.EncMapInt64Uint64V(*v, fastpathCheckNilTrue, e)
  1340. case map[int64]uintptr:
  1341. fastpathTV.EncMapInt64UintptrV(v, fastpathCheckNilTrue, e)
  1342. case *map[int64]uintptr:
  1343. fastpathTV.EncMapInt64UintptrV(*v, fastpathCheckNilTrue, e)
  1344. case map[int64]int:
  1345. fastpathTV.EncMapInt64IntV(v, fastpathCheckNilTrue, e)
  1346. case *map[int64]int:
  1347. fastpathTV.EncMapInt64IntV(*v, fastpathCheckNilTrue, e)
  1348. case map[int64]int8:
  1349. fastpathTV.EncMapInt64Int8V(v, fastpathCheckNilTrue, e)
  1350. case *map[int64]int8:
  1351. fastpathTV.EncMapInt64Int8V(*v, fastpathCheckNilTrue, e)
  1352. case map[int64]int16:
  1353. fastpathTV.EncMapInt64Int16V(v, fastpathCheckNilTrue, e)
  1354. case *map[int64]int16:
  1355. fastpathTV.EncMapInt64Int16V(*v, fastpathCheckNilTrue, e)
  1356. case map[int64]int32:
  1357. fastpathTV.EncMapInt64Int32V(v, fastpathCheckNilTrue, e)
  1358. case *map[int64]int32:
  1359. fastpathTV.EncMapInt64Int32V(*v, fastpathCheckNilTrue, e)
  1360. case map[int64]int64:
  1361. fastpathTV.EncMapInt64Int64V(v, fastpathCheckNilTrue, e)
  1362. case *map[int64]int64:
  1363. fastpathTV.EncMapInt64Int64V(*v, fastpathCheckNilTrue, e)
  1364. case map[int64]float32:
  1365. fastpathTV.EncMapInt64Float32V(v, fastpathCheckNilTrue, e)
  1366. case *map[int64]float32:
  1367. fastpathTV.EncMapInt64Float32V(*v, fastpathCheckNilTrue, e)
  1368. case map[int64]float64:
  1369. fastpathTV.EncMapInt64Float64V(v, fastpathCheckNilTrue, e)
  1370. case *map[int64]float64:
  1371. fastpathTV.EncMapInt64Float64V(*v, fastpathCheckNilTrue, e)
  1372. case map[int64]bool:
  1373. fastpathTV.EncMapInt64BoolV(v, fastpathCheckNilTrue, e)
  1374. case *map[int64]bool:
  1375. fastpathTV.EncMapInt64BoolV(*v, fastpathCheckNilTrue, e)
  1376. case []bool:
  1377. fastpathTV.EncSliceBoolV(v, fastpathCheckNilTrue, e)
  1378. case *[]bool:
  1379. fastpathTV.EncSliceBoolV(*v, fastpathCheckNilTrue, e)
  1380. case map[bool]interface{}:
  1381. fastpathTV.EncMapBoolIntfV(v, fastpathCheckNilTrue, e)
  1382. case *map[bool]interface{}:
  1383. fastpathTV.EncMapBoolIntfV(*v, fastpathCheckNilTrue, e)
  1384. case map[bool]string:
  1385. fastpathTV.EncMapBoolStringV(v, fastpathCheckNilTrue, e)
  1386. case *map[bool]string:
  1387. fastpathTV.EncMapBoolStringV(*v, fastpathCheckNilTrue, e)
  1388. case map[bool]uint:
  1389. fastpathTV.EncMapBoolUintV(v, fastpathCheckNilTrue, e)
  1390. case *map[bool]uint:
  1391. fastpathTV.EncMapBoolUintV(*v, fastpathCheckNilTrue, e)
  1392. case map[bool]uint8:
  1393. fastpathTV.EncMapBoolUint8V(v, fastpathCheckNilTrue, e)
  1394. case *map[bool]uint8:
  1395. fastpathTV.EncMapBoolUint8V(*v, fastpathCheckNilTrue, e)
  1396. case map[bool]uint16:
  1397. fastpathTV.EncMapBoolUint16V(v, fastpathCheckNilTrue, e)
  1398. case *map[bool]uint16:
  1399. fastpathTV.EncMapBoolUint16V(*v, fastpathCheckNilTrue, e)
  1400. case map[bool]uint32:
  1401. fastpathTV.EncMapBoolUint32V(v, fastpathCheckNilTrue, e)
  1402. case *map[bool]uint32:
  1403. fastpathTV.EncMapBoolUint32V(*v, fastpathCheckNilTrue, e)
  1404. case map[bool]uint64:
  1405. fastpathTV.EncMapBoolUint64V(v, fastpathCheckNilTrue, e)
  1406. case *map[bool]uint64:
  1407. fastpathTV.EncMapBoolUint64V(*v, fastpathCheckNilTrue, e)
  1408. case map[bool]uintptr:
  1409. fastpathTV.EncMapBoolUintptrV(v, fastpathCheckNilTrue, e)
  1410. case *map[bool]uintptr:
  1411. fastpathTV.EncMapBoolUintptrV(*v, fastpathCheckNilTrue, e)
  1412. case map[bool]int:
  1413. fastpathTV.EncMapBoolIntV(v, fastpathCheckNilTrue, e)
  1414. case *map[bool]int:
  1415. fastpathTV.EncMapBoolIntV(*v, fastpathCheckNilTrue, e)
  1416. case map[bool]int8:
  1417. fastpathTV.EncMapBoolInt8V(v, fastpathCheckNilTrue, e)
  1418. case *map[bool]int8:
  1419. fastpathTV.EncMapBoolInt8V(*v, fastpathCheckNilTrue, e)
  1420. case map[bool]int16:
  1421. fastpathTV.EncMapBoolInt16V(v, fastpathCheckNilTrue, e)
  1422. case *map[bool]int16:
  1423. fastpathTV.EncMapBoolInt16V(*v, fastpathCheckNilTrue, e)
  1424. case map[bool]int32:
  1425. fastpathTV.EncMapBoolInt32V(v, fastpathCheckNilTrue, e)
  1426. case *map[bool]int32:
  1427. fastpathTV.EncMapBoolInt32V(*v, fastpathCheckNilTrue, e)
  1428. case map[bool]int64:
  1429. fastpathTV.EncMapBoolInt64V(v, fastpathCheckNilTrue, e)
  1430. case *map[bool]int64:
  1431. fastpathTV.EncMapBoolInt64V(*v, fastpathCheckNilTrue, e)
  1432. case map[bool]float32:
  1433. fastpathTV.EncMapBoolFloat32V(v, fastpathCheckNilTrue, e)
  1434. case *map[bool]float32:
  1435. fastpathTV.EncMapBoolFloat32V(*v, fastpathCheckNilTrue, e)
  1436. case map[bool]float64:
  1437. fastpathTV.EncMapBoolFloat64V(v, fastpathCheckNilTrue, e)
  1438. case *map[bool]float64:
  1439. fastpathTV.EncMapBoolFloat64V(*v, fastpathCheckNilTrue, e)
  1440. case map[bool]bool:
  1441. fastpathTV.EncMapBoolBoolV(v, fastpathCheckNilTrue, e)
  1442. case *map[bool]bool:
  1443. fastpathTV.EncMapBoolBoolV(*v, fastpathCheckNilTrue, e)
  1444. default:
  1445. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1446. return false
  1447. }
  1448. return true
  1449. }
  1450. func fastpathEncodeTypeSwitchSlice(iv interface{}, e *Encoder) bool {
  1451. if !fastpathEnabled {
  1452. return false
  1453. }
  1454. switch v := iv.(type) {
  1455. case []interface{}:
  1456. fastpathTV.EncSliceIntfV(v, fastpathCheckNilTrue, e)
  1457. case *[]interface{}:
  1458. fastpathTV.EncSliceIntfV(*v, fastpathCheckNilTrue, e)
  1459. case []string:
  1460. fastpathTV.EncSliceStringV(v, fastpathCheckNilTrue, e)
  1461. case *[]string:
  1462. fastpathTV.EncSliceStringV(*v, fastpathCheckNilTrue, e)
  1463. case []float32:
  1464. fastpathTV.EncSliceFloat32V(v, fastpathCheckNilTrue, e)
  1465. case *[]float32:
  1466. fastpathTV.EncSliceFloat32V(*v, fastpathCheckNilTrue, e)
  1467. case []float64:
  1468. fastpathTV.EncSliceFloat64V(v, fastpathCheckNilTrue, e)
  1469. case *[]float64:
  1470. fastpathTV.EncSliceFloat64V(*v, fastpathCheckNilTrue, e)
  1471. case []uint:
  1472. fastpathTV.EncSliceUintV(v, fastpathCheckNilTrue, e)
  1473. case *[]uint:
  1474. fastpathTV.EncSliceUintV(*v, fastpathCheckNilTrue, e)
  1475. case []uint16:
  1476. fastpathTV.EncSliceUint16V(v, fastpathCheckNilTrue, e)
  1477. case *[]uint16:
  1478. fastpathTV.EncSliceUint16V(*v, fastpathCheckNilTrue, e)
  1479. case []uint32:
  1480. fastpathTV.EncSliceUint32V(v, fastpathCheckNilTrue, e)
  1481. case *[]uint32:
  1482. fastpathTV.EncSliceUint32V(*v, fastpathCheckNilTrue, e)
  1483. case []uint64:
  1484. fastpathTV.EncSliceUint64V(v, fastpathCheckNilTrue, e)
  1485. case *[]uint64:
  1486. fastpathTV.EncSliceUint64V(*v, fastpathCheckNilTrue, e)
  1487. case []uintptr:
  1488. fastpathTV.EncSliceUintptrV(v, fastpathCheckNilTrue, e)
  1489. case *[]uintptr:
  1490. fastpathTV.EncSliceUintptrV(*v, fastpathCheckNilTrue, e)
  1491. case []int:
  1492. fastpathTV.EncSliceIntV(v, fastpathCheckNilTrue, e)
  1493. case *[]int:
  1494. fastpathTV.EncSliceIntV(*v, fastpathCheckNilTrue, e)
  1495. case []int8:
  1496. fastpathTV.EncSliceInt8V(v, fastpathCheckNilTrue, e)
  1497. case *[]int8:
  1498. fastpathTV.EncSliceInt8V(*v, fastpathCheckNilTrue, e)
  1499. case []int16:
  1500. fastpathTV.EncSliceInt16V(v, fastpathCheckNilTrue, e)
  1501. case *[]int16:
  1502. fastpathTV.EncSliceInt16V(*v, fastpathCheckNilTrue, e)
  1503. case []int32:
  1504. fastpathTV.EncSliceInt32V(v, fastpathCheckNilTrue, e)
  1505. case *[]int32:
  1506. fastpathTV.EncSliceInt32V(*v, fastpathCheckNilTrue, e)
  1507. case []int64:
  1508. fastpathTV.EncSliceInt64V(v, fastpathCheckNilTrue, e)
  1509. case *[]int64:
  1510. fastpathTV.EncSliceInt64V(*v, fastpathCheckNilTrue, e)
  1511. case []bool:
  1512. fastpathTV.EncSliceBoolV(v, fastpathCheckNilTrue, e)
  1513. case *[]bool:
  1514. fastpathTV.EncSliceBoolV(*v, fastpathCheckNilTrue, e)
  1515. default:
  1516. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1517. return false
  1518. }
  1519. return true
  1520. }
  1521. func fastpathEncodeTypeSwitchMap(iv interface{}, e *Encoder) bool {
  1522. if !fastpathEnabled {
  1523. return false
  1524. }
  1525. switch v := iv.(type) {
  1526. case map[interface{}]interface{}:
  1527. fastpathTV.EncMapIntfIntfV(v, fastpathCheckNilTrue, e)
  1528. case *map[interface{}]interface{}:
  1529. fastpathTV.EncMapIntfIntfV(*v, fastpathCheckNilTrue, e)
  1530. case map[interface{}]string:
  1531. fastpathTV.EncMapIntfStringV(v, fastpathCheckNilTrue, e)
  1532. case *map[interface{}]string:
  1533. fastpathTV.EncMapIntfStringV(*v, fastpathCheckNilTrue, e)
  1534. case map[interface{}]uint:
  1535. fastpathTV.EncMapIntfUintV(v, fastpathCheckNilTrue, e)
  1536. case *map[interface{}]uint:
  1537. fastpathTV.EncMapIntfUintV(*v, fastpathCheckNilTrue, e)
  1538. case map[interface{}]uint8:
  1539. fastpathTV.EncMapIntfUint8V(v, fastpathCheckNilTrue, e)
  1540. case *map[interface{}]uint8:
  1541. fastpathTV.EncMapIntfUint8V(*v, fastpathCheckNilTrue, e)
  1542. case map[interface{}]uint16:
  1543. fastpathTV.EncMapIntfUint16V(v, fastpathCheckNilTrue, e)
  1544. case *map[interface{}]uint16:
  1545. fastpathTV.EncMapIntfUint16V(*v, fastpathCheckNilTrue, e)
  1546. case map[interface{}]uint32:
  1547. fastpathTV.EncMapIntfUint32V(v, fastpathCheckNilTrue, e)
  1548. case *map[interface{}]uint32:
  1549. fastpathTV.EncMapIntfUint32V(*v, fastpathCheckNilTrue, e)
  1550. case map[interface{}]uint64:
  1551. fastpathTV.EncMapIntfUint64V(v, fastpathCheckNilTrue, e)
  1552. case *map[interface{}]uint64:
  1553. fastpathTV.EncMapIntfUint64V(*v, fastpathCheckNilTrue, e)
  1554. case map[interface{}]uintptr:
  1555. fastpathTV.EncMapIntfUintptrV(v, fastpathCheckNilTrue, e)
  1556. case *map[interface{}]uintptr:
  1557. fastpathTV.EncMapIntfUintptrV(*v, fastpathCheckNilTrue, e)
  1558. case map[interface{}]int:
  1559. fastpathTV.EncMapIntfIntV(v, fastpathCheckNilTrue, e)
  1560. case *map[interface{}]int:
  1561. fastpathTV.EncMapIntfIntV(*v, fastpathCheckNilTrue, e)
  1562. case map[interface{}]int8:
  1563. fastpathTV.EncMapIntfInt8V(v, fastpathCheckNilTrue, e)
  1564. case *map[interface{}]int8:
  1565. fastpathTV.EncMapIntfInt8V(*v, fastpathCheckNilTrue, e)
  1566. case map[interface{}]int16:
  1567. fastpathTV.EncMapIntfInt16V(v, fastpathCheckNilTrue, e)
  1568. case *map[interface{}]int16:
  1569. fastpathTV.EncMapIntfInt16V(*v, fastpathCheckNilTrue, e)
  1570. case map[interface{}]int32:
  1571. fastpathTV.EncMapIntfInt32V(v, fastpathCheckNilTrue, e)
  1572. case *map[interface{}]int32:
  1573. fastpathTV.EncMapIntfInt32V(*v, fastpathCheckNilTrue, e)
  1574. case map[interface{}]int64:
  1575. fastpathTV.EncMapIntfInt64V(v, fastpathCheckNilTrue, e)
  1576. case *map[interface{}]int64:
  1577. fastpathTV.EncMapIntfInt64V(*v, fastpathCheckNilTrue, e)
  1578. case map[interface{}]float32:
  1579. fastpathTV.EncMapIntfFloat32V(v, fastpathCheckNilTrue, e)
  1580. case *map[interface{}]float32:
  1581. fastpathTV.EncMapIntfFloat32V(*v, fastpathCheckNilTrue, e)
  1582. case map[interface{}]float64:
  1583. fastpathTV.EncMapIntfFloat64V(v, fastpathCheckNilTrue, e)
  1584. case *map[interface{}]float64:
  1585. fastpathTV.EncMapIntfFloat64V(*v, fastpathCheckNilTrue, e)
  1586. case map[interface{}]bool:
  1587. fastpathTV.EncMapIntfBoolV(v, fastpathCheckNilTrue, e)
  1588. case *map[interface{}]bool:
  1589. fastpathTV.EncMapIntfBoolV(*v, fastpathCheckNilTrue, e)
  1590. case map[string]interface{}:
  1591. fastpathTV.EncMapStringIntfV(v, fastpathCheckNilTrue, e)
  1592. case *map[string]interface{}:
  1593. fastpathTV.EncMapStringIntfV(*v, fastpathCheckNilTrue, e)
  1594. case map[string]string:
  1595. fastpathTV.EncMapStringStringV(v, fastpathCheckNilTrue, e)
  1596. case *map[string]string:
  1597. fastpathTV.EncMapStringStringV(*v, fastpathCheckNilTrue, e)
  1598. case map[string]uint:
  1599. fastpathTV.EncMapStringUintV(v, fastpathCheckNilTrue, e)
  1600. case *map[string]uint:
  1601. fastpathTV.EncMapStringUintV(*v, fastpathCheckNilTrue, e)
  1602. case map[string]uint8:
  1603. fastpathTV.EncMapStringUint8V(v, fastpathCheckNilTrue, e)
  1604. case *map[string]uint8:
  1605. fastpathTV.EncMapStringUint8V(*v, fastpathCheckNilTrue, e)
  1606. case map[string]uint16:
  1607. fastpathTV.EncMapStringUint16V(v, fastpathCheckNilTrue, e)
  1608. case *map[string]uint16:
  1609. fastpathTV.EncMapStringUint16V(*v, fastpathCheckNilTrue, e)
  1610. case map[string]uint32:
  1611. fastpathTV.EncMapStringUint32V(v, fastpathCheckNilTrue, e)
  1612. case *map[string]uint32:
  1613. fastpathTV.EncMapStringUint32V(*v, fastpathCheckNilTrue, e)
  1614. case map[string]uint64:
  1615. fastpathTV.EncMapStringUint64V(v, fastpathCheckNilTrue, e)
  1616. case *map[string]uint64:
  1617. fastpathTV.EncMapStringUint64V(*v, fastpathCheckNilTrue, e)
  1618. case map[string]uintptr:
  1619. fastpathTV.EncMapStringUintptrV(v, fastpathCheckNilTrue, e)
  1620. case *map[string]uintptr:
  1621. fastpathTV.EncMapStringUintptrV(*v, fastpathCheckNilTrue, e)
  1622. case map[string]int:
  1623. fastpathTV.EncMapStringIntV(v, fastpathCheckNilTrue, e)
  1624. case *map[string]int:
  1625. fastpathTV.EncMapStringIntV(*v, fastpathCheckNilTrue, e)
  1626. case map[string]int8:
  1627. fastpathTV.EncMapStringInt8V(v, fastpathCheckNilTrue, e)
  1628. case *map[string]int8:
  1629. fastpathTV.EncMapStringInt8V(*v, fastpathCheckNilTrue, e)
  1630. case map[string]int16:
  1631. fastpathTV.EncMapStringInt16V(v, fastpathCheckNilTrue, e)
  1632. case *map[string]int16:
  1633. fastpathTV.EncMapStringInt16V(*v, fastpathCheckNilTrue, e)
  1634. case map[string]int32:
  1635. fastpathTV.EncMapStringInt32V(v, fastpathCheckNilTrue, e)
  1636. case *map[string]int32:
  1637. fastpathTV.EncMapStringInt32V(*v, fastpathCheckNilTrue, e)
  1638. case map[string]int64:
  1639. fastpathTV.EncMapStringInt64V(v, fastpathCheckNilTrue, e)
  1640. case *map[string]int64:
  1641. fastpathTV.EncMapStringInt64V(*v, fastpathCheckNilTrue, e)
  1642. case map[string]float32:
  1643. fastpathTV.EncMapStringFloat32V(v, fastpathCheckNilTrue, e)
  1644. case *map[string]float32:
  1645. fastpathTV.EncMapStringFloat32V(*v, fastpathCheckNilTrue, e)
  1646. case map[string]float64:
  1647. fastpathTV.EncMapStringFloat64V(v, fastpathCheckNilTrue, e)
  1648. case *map[string]float64:
  1649. fastpathTV.EncMapStringFloat64V(*v, fastpathCheckNilTrue, e)
  1650. case map[string]bool:
  1651. fastpathTV.EncMapStringBoolV(v, fastpathCheckNilTrue, e)
  1652. case *map[string]bool:
  1653. fastpathTV.EncMapStringBoolV(*v, fastpathCheckNilTrue, e)
  1654. case map[float32]interface{}:
  1655. fastpathTV.EncMapFloat32IntfV(v, fastpathCheckNilTrue, e)
  1656. case *map[float32]interface{}:
  1657. fastpathTV.EncMapFloat32IntfV(*v, fastpathCheckNilTrue, e)
  1658. case map[float32]string:
  1659. fastpathTV.EncMapFloat32StringV(v, fastpathCheckNilTrue, e)
  1660. case *map[float32]string:
  1661. fastpathTV.EncMapFloat32StringV(*v, fastpathCheckNilTrue, e)
  1662. case map[float32]uint:
  1663. fastpathTV.EncMapFloat32UintV(v, fastpathCheckNilTrue, e)
  1664. case *map[float32]uint:
  1665. fastpathTV.EncMapFloat32UintV(*v, fastpathCheckNilTrue, e)
  1666. case map[float32]uint8:
  1667. fastpathTV.EncMapFloat32Uint8V(v, fastpathCheckNilTrue, e)
  1668. case *map[float32]uint8:
  1669. fastpathTV.EncMapFloat32Uint8V(*v, fastpathCheckNilTrue, e)
  1670. case map[float32]uint16:
  1671. fastpathTV.EncMapFloat32Uint16V(v, fastpathCheckNilTrue, e)
  1672. case *map[float32]uint16:
  1673. fastpathTV.EncMapFloat32Uint16V(*v, fastpathCheckNilTrue, e)
  1674. case map[float32]uint32:
  1675. fastpathTV.EncMapFloat32Uint32V(v, fastpathCheckNilTrue, e)
  1676. case *map[float32]uint32:
  1677. fastpathTV.EncMapFloat32Uint32V(*v, fastpathCheckNilTrue, e)
  1678. case map[float32]uint64:
  1679. fastpathTV.EncMapFloat32Uint64V(v, fastpathCheckNilTrue, e)
  1680. case *map[float32]uint64:
  1681. fastpathTV.EncMapFloat32Uint64V(*v, fastpathCheckNilTrue, e)
  1682. case map[float32]uintptr:
  1683. fastpathTV.EncMapFloat32UintptrV(v, fastpathCheckNilTrue, e)
  1684. case *map[float32]uintptr:
  1685. fastpathTV.EncMapFloat32UintptrV(*v, fastpathCheckNilTrue, e)
  1686. case map[float32]int:
  1687. fastpathTV.EncMapFloat32IntV(v, fastpathCheckNilTrue, e)
  1688. case *map[float32]int:
  1689. fastpathTV.EncMapFloat32IntV(*v, fastpathCheckNilTrue, e)
  1690. case map[float32]int8:
  1691. fastpathTV.EncMapFloat32Int8V(v, fastpathCheckNilTrue, e)
  1692. case *map[float32]int8:
  1693. fastpathTV.EncMapFloat32Int8V(*v, fastpathCheckNilTrue, e)
  1694. case map[float32]int16:
  1695. fastpathTV.EncMapFloat32Int16V(v, fastpathCheckNilTrue, e)
  1696. case *map[float32]int16:
  1697. fastpathTV.EncMapFloat32Int16V(*v, fastpathCheckNilTrue, e)
  1698. case map[float32]int32:
  1699. fastpathTV.EncMapFloat32Int32V(v, fastpathCheckNilTrue, e)
  1700. case *map[float32]int32:
  1701. fastpathTV.EncMapFloat32Int32V(*v, fastpathCheckNilTrue, e)
  1702. case map[float32]int64:
  1703. fastpathTV.EncMapFloat32Int64V(v, fastpathCheckNilTrue, e)
  1704. case *map[float32]int64:
  1705. fastpathTV.EncMapFloat32Int64V(*v, fastpathCheckNilTrue, e)
  1706. case map[float32]float32:
  1707. fastpathTV.EncMapFloat32Float32V(v, fastpathCheckNilTrue, e)
  1708. case *map[float32]float32:
  1709. fastpathTV.EncMapFloat32Float32V(*v, fastpathCheckNilTrue, e)
  1710. case map[float32]float64:
  1711. fastpathTV.EncMapFloat32Float64V(v, fastpathCheckNilTrue, e)
  1712. case *map[float32]float64:
  1713. fastpathTV.EncMapFloat32Float64V(*v, fastpathCheckNilTrue, e)
  1714. case map[float32]bool:
  1715. fastpathTV.EncMapFloat32BoolV(v, fastpathCheckNilTrue, e)
  1716. case *map[float32]bool:
  1717. fastpathTV.EncMapFloat32BoolV(*v, fastpathCheckNilTrue, e)
  1718. case map[float64]interface{}:
  1719. fastpathTV.EncMapFloat64IntfV(v, fastpathCheckNilTrue, e)
  1720. case *map[float64]interface{}:
  1721. fastpathTV.EncMapFloat64IntfV(*v, fastpathCheckNilTrue, e)
  1722. case map[float64]string:
  1723. fastpathTV.EncMapFloat64StringV(v, fastpathCheckNilTrue, e)
  1724. case *map[float64]string:
  1725. fastpathTV.EncMapFloat64StringV(*v, fastpathCheckNilTrue, e)
  1726. case map[float64]uint:
  1727. fastpathTV.EncMapFloat64UintV(v, fastpathCheckNilTrue, e)
  1728. case *map[float64]uint:
  1729. fastpathTV.EncMapFloat64UintV(*v, fastpathCheckNilTrue, e)
  1730. case map[float64]uint8:
  1731. fastpathTV.EncMapFloat64Uint8V(v, fastpathCheckNilTrue, e)
  1732. case *map[float64]uint8:
  1733. fastpathTV.EncMapFloat64Uint8V(*v, fastpathCheckNilTrue, e)
  1734. case map[float64]uint16:
  1735. fastpathTV.EncMapFloat64Uint16V(v, fastpathCheckNilTrue, e)
  1736. case *map[float64]uint16:
  1737. fastpathTV.EncMapFloat64Uint16V(*v, fastpathCheckNilTrue, e)
  1738. case map[float64]uint32:
  1739. fastpathTV.EncMapFloat64Uint32V(v, fastpathCheckNilTrue, e)
  1740. case *map[float64]uint32:
  1741. fastpathTV.EncMapFloat64Uint32V(*v, fastpathCheckNilTrue, e)
  1742. case map[float64]uint64:
  1743. fastpathTV.EncMapFloat64Uint64V(v, fastpathCheckNilTrue, e)
  1744. case *map[float64]uint64:
  1745. fastpathTV.EncMapFloat64Uint64V(*v, fastpathCheckNilTrue, e)
  1746. case map[float64]uintptr:
  1747. fastpathTV.EncMapFloat64UintptrV(v, fastpathCheckNilTrue, e)
  1748. case *map[float64]uintptr:
  1749. fastpathTV.EncMapFloat64UintptrV(*v, fastpathCheckNilTrue, e)
  1750. case map[float64]int:
  1751. fastpathTV.EncMapFloat64IntV(v, fastpathCheckNilTrue, e)
  1752. case *map[float64]int:
  1753. fastpathTV.EncMapFloat64IntV(*v, fastpathCheckNilTrue, e)
  1754. case map[float64]int8:
  1755. fastpathTV.EncMapFloat64Int8V(v, fastpathCheckNilTrue, e)
  1756. case *map[float64]int8:
  1757. fastpathTV.EncMapFloat64Int8V(*v, fastpathCheckNilTrue, e)
  1758. case map[float64]int16:
  1759. fastpathTV.EncMapFloat64Int16V(v, fastpathCheckNilTrue, e)
  1760. case *map[float64]int16:
  1761. fastpathTV.EncMapFloat64Int16V(*v, fastpathCheckNilTrue, e)
  1762. case map[float64]int32:
  1763. fastpathTV.EncMapFloat64Int32V(v, fastpathCheckNilTrue, e)
  1764. case *map[float64]int32:
  1765. fastpathTV.EncMapFloat64Int32V(*v, fastpathCheckNilTrue, e)
  1766. case map[float64]int64:
  1767. fastpathTV.EncMapFloat64Int64V(v, fastpathCheckNilTrue, e)
  1768. case *map[float64]int64:
  1769. fastpathTV.EncMapFloat64Int64V(*v, fastpathCheckNilTrue, e)
  1770. case map[float64]float32:
  1771. fastpathTV.EncMapFloat64Float32V(v, fastpathCheckNilTrue, e)
  1772. case *map[float64]float32:
  1773. fastpathTV.EncMapFloat64Float32V(*v, fastpathCheckNilTrue, e)
  1774. case map[float64]float64:
  1775. fastpathTV.EncMapFloat64Float64V(v, fastpathCheckNilTrue, e)
  1776. case *map[float64]float64:
  1777. fastpathTV.EncMapFloat64Float64V(*v, fastpathCheckNilTrue, e)
  1778. case map[float64]bool:
  1779. fastpathTV.EncMapFloat64BoolV(v, fastpathCheckNilTrue, e)
  1780. case *map[float64]bool:
  1781. fastpathTV.EncMapFloat64BoolV(*v, fastpathCheckNilTrue, e)
  1782. case map[uint]interface{}:
  1783. fastpathTV.EncMapUintIntfV(v, fastpathCheckNilTrue, e)
  1784. case *map[uint]interface{}:
  1785. fastpathTV.EncMapUintIntfV(*v, fastpathCheckNilTrue, e)
  1786. case map[uint]string:
  1787. fastpathTV.EncMapUintStringV(v, fastpathCheckNilTrue, e)
  1788. case *map[uint]string:
  1789. fastpathTV.EncMapUintStringV(*v, fastpathCheckNilTrue, e)
  1790. case map[uint]uint:
  1791. fastpathTV.EncMapUintUintV(v, fastpathCheckNilTrue, e)
  1792. case *map[uint]uint:
  1793. fastpathTV.EncMapUintUintV(*v, fastpathCheckNilTrue, e)
  1794. case map[uint]uint8:
  1795. fastpathTV.EncMapUintUint8V(v, fastpathCheckNilTrue, e)
  1796. case *map[uint]uint8:
  1797. fastpathTV.EncMapUintUint8V(*v, fastpathCheckNilTrue, e)
  1798. case map[uint]uint16:
  1799. fastpathTV.EncMapUintUint16V(v, fastpathCheckNilTrue, e)
  1800. case *map[uint]uint16:
  1801. fastpathTV.EncMapUintUint16V(*v, fastpathCheckNilTrue, e)
  1802. case map[uint]uint32:
  1803. fastpathTV.EncMapUintUint32V(v, fastpathCheckNilTrue, e)
  1804. case *map[uint]uint32:
  1805. fastpathTV.EncMapUintUint32V(*v, fastpathCheckNilTrue, e)
  1806. case map[uint]uint64:
  1807. fastpathTV.EncMapUintUint64V(v, fastpathCheckNilTrue, e)
  1808. case *map[uint]uint64:
  1809. fastpathTV.EncMapUintUint64V(*v, fastpathCheckNilTrue, e)
  1810. case map[uint]uintptr:
  1811. fastpathTV.EncMapUintUintptrV(v, fastpathCheckNilTrue, e)
  1812. case *map[uint]uintptr:
  1813. fastpathTV.EncMapUintUintptrV(*v, fastpathCheckNilTrue, e)
  1814. case map[uint]int:
  1815. fastpathTV.EncMapUintIntV(v, fastpathCheckNilTrue, e)
  1816. case *map[uint]int:
  1817. fastpathTV.EncMapUintIntV(*v, fastpathCheckNilTrue, e)
  1818. case map[uint]int8:
  1819. fastpathTV.EncMapUintInt8V(v, fastpathCheckNilTrue, e)
  1820. case *map[uint]int8:
  1821. fastpathTV.EncMapUintInt8V(*v, fastpathCheckNilTrue, e)
  1822. case map[uint]int16:
  1823. fastpathTV.EncMapUintInt16V(v, fastpathCheckNilTrue, e)
  1824. case *map[uint]int16:
  1825. fastpathTV.EncMapUintInt16V(*v, fastpathCheckNilTrue, e)
  1826. case map[uint]int32:
  1827. fastpathTV.EncMapUintInt32V(v, fastpathCheckNilTrue, e)
  1828. case *map[uint]int32:
  1829. fastpathTV.EncMapUintInt32V(*v, fastpathCheckNilTrue, e)
  1830. case map[uint]int64:
  1831. fastpathTV.EncMapUintInt64V(v, fastpathCheckNilTrue, e)
  1832. case *map[uint]int64:
  1833. fastpathTV.EncMapUintInt64V(*v, fastpathCheckNilTrue, e)
  1834. case map[uint]float32:
  1835. fastpathTV.EncMapUintFloat32V(v, fastpathCheckNilTrue, e)
  1836. case *map[uint]float32:
  1837. fastpathTV.EncMapUintFloat32V(*v, fastpathCheckNilTrue, e)
  1838. case map[uint]float64:
  1839. fastpathTV.EncMapUintFloat64V(v, fastpathCheckNilTrue, e)
  1840. case *map[uint]float64:
  1841. fastpathTV.EncMapUintFloat64V(*v, fastpathCheckNilTrue, e)
  1842. case map[uint]bool:
  1843. fastpathTV.EncMapUintBoolV(v, fastpathCheckNilTrue, e)
  1844. case *map[uint]bool:
  1845. fastpathTV.EncMapUintBoolV(*v, fastpathCheckNilTrue, e)
  1846. case map[uint8]interface{}:
  1847. fastpathTV.EncMapUint8IntfV(v, fastpathCheckNilTrue, e)
  1848. case *map[uint8]interface{}:
  1849. fastpathTV.EncMapUint8IntfV(*v, fastpathCheckNilTrue, e)
  1850. case map[uint8]string:
  1851. fastpathTV.EncMapUint8StringV(v, fastpathCheckNilTrue, e)
  1852. case *map[uint8]string:
  1853. fastpathTV.EncMapUint8StringV(*v, fastpathCheckNilTrue, e)
  1854. case map[uint8]uint:
  1855. fastpathTV.EncMapUint8UintV(v, fastpathCheckNilTrue, e)
  1856. case *map[uint8]uint:
  1857. fastpathTV.EncMapUint8UintV(*v, fastpathCheckNilTrue, e)
  1858. case map[uint8]uint8:
  1859. fastpathTV.EncMapUint8Uint8V(v, fastpathCheckNilTrue, e)
  1860. case *map[uint8]uint8:
  1861. fastpathTV.EncMapUint8Uint8V(*v, fastpathCheckNilTrue, e)
  1862. case map[uint8]uint16:
  1863. fastpathTV.EncMapUint8Uint16V(v, fastpathCheckNilTrue, e)
  1864. case *map[uint8]uint16:
  1865. fastpathTV.EncMapUint8Uint16V(*v, fastpathCheckNilTrue, e)
  1866. case map[uint8]uint32:
  1867. fastpathTV.EncMapUint8Uint32V(v, fastpathCheckNilTrue, e)
  1868. case *map[uint8]uint32:
  1869. fastpathTV.EncMapUint8Uint32V(*v, fastpathCheckNilTrue, e)
  1870. case map[uint8]uint64:
  1871. fastpathTV.EncMapUint8Uint64V(v, fastpathCheckNilTrue, e)
  1872. case *map[uint8]uint64:
  1873. fastpathTV.EncMapUint8Uint64V(*v, fastpathCheckNilTrue, e)
  1874. case map[uint8]uintptr:
  1875. fastpathTV.EncMapUint8UintptrV(v, fastpathCheckNilTrue, e)
  1876. case *map[uint8]uintptr:
  1877. fastpathTV.EncMapUint8UintptrV(*v, fastpathCheckNilTrue, e)
  1878. case map[uint8]int:
  1879. fastpathTV.EncMapUint8IntV(v, fastpathCheckNilTrue, e)
  1880. case *map[uint8]int:
  1881. fastpathTV.EncMapUint8IntV(*v, fastpathCheckNilTrue, e)
  1882. case map[uint8]int8:
  1883. fastpathTV.EncMapUint8Int8V(v, fastpathCheckNilTrue, e)
  1884. case *map[uint8]int8:
  1885. fastpathTV.EncMapUint8Int8V(*v, fastpathCheckNilTrue, e)
  1886. case map[uint8]int16:
  1887. fastpathTV.EncMapUint8Int16V(v, fastpathCheckNilTrue, e)
  1888. case *map[uint8]int16:
  1889. fastpathTV.EncMapUint8Int16V(*v, fastpathCheckNilTrue, e)
  1890. case map[uint8]int32:
  1891. fastpathTV.EncMapUint8Int32V(v, fastpathCheckNilTrue, e)
  1892. case *map[uint8]int32:
  1893. fastpathTV.EncMapUint8Int32V(*v, fastpathCheckNilTrue, e)
  1894. case map[uint8]int64:
  1895. fastpathTV.EncMapUint8Int64V(v, fastpathCheckNilTrue, e)
  1896. case *map[uint8]int64:
  1897. fastpathTV.EncMapUint8Int64V(*v, fastpathCheckNilTrue, e)
  1898. case map[uint8]float32:
  1899. fastpathTV.EncMapUint8Float32V(v, fastpathCheckNilTrue, e)
  1900. case *map[uint8]float32:
  1901. fastpathTV.EncMapUint8Float32V(*v, fastpathCheckNilTrue, e)
  1902. case map[uint8]float64:
  1903. fastpathTV.EncMapUint8Float64V(v, fastpathCheckNilTrue, e)
  1904. case *map[uint8]float64:
  1905. fastpathTV.EncMapUint8Float64V(*v, fastpathCheckNilTrue, e)
  1906. case map[uint8]bool:
  1907. fastpathTV.EncMapUint8BoolV(v, fastpathCheckNilTrue, e)
  1908. case *map[uint8]bool:
  1909. fastpathTV.EncMapUint8BoolV(*v, fastpathCheckNilTrue, e)
  1910. case map[uint16]interface{}:
  1911. fastpathTV.EncMapUint16IntfV(v, fastpathCheckNilTrue, e)
  1912. case *map[uint16]interface{}:
  1913. fastpathTV.EncMapUint16IntfV(*v, fastpathCheckNilTrue, e)
  1914. case map[uint16]string:
  1915. fastpathTV.EncMapUint16StringV(v, fastpathCheckNilTrue, e)
  1916. case *map[uint16]string:
  1917. fastpathTV.EncMapUint16StringV(*v, fastpathCheckNilTrue, e)
  1918. case map[uint16]uint:
  1919. fastpathTV.EncMapUint16UintV(v, fastpathCheckNilTrue, e)
  1920. case *map[uint16]uint:
  1921. fastpathTV.EncMapUint16UintV(*v, fastpathCheckNilTrue, e)
  1922. case map[uint16]uint8:
  1923. fastpathTV.EncMapUint16Uint8V(v, fastpathCheckNilTrue, e)
  1924. case *map[uint16]uint8:
  1925. fastpathTV.EncMapUint16Uint8V(*v, fastpathCheckNilTrue, e)
  1926. case map[uint16]uint16:
  1927. fastpathTV.EncMapUint16Uint16V(v, fastpathCheckNilTrue, e)
  1928. case *map[uint16]uint16:
  1929. fastpathTV.EncMapUint16Uint16V(*v, fastpathCheckNilTrue, e)
  1930. case map[uint16]uint32:
  1931. fastpathTV.EncMapUint16Uint32V(v, fastpathCheckNilTrue, e)
  1932. case *map[uint16]uint32:
  1933. fastpathTV.EncMapUint16Uint32V(*v, fastpathCheckNilTrue, e)
  1934. case map[uint16]uint64:
  1935. fastpathTV.EncMapUint16Uint64V(v, fastpathCheckNilTrue, e)
  1936. case *map[uint16]uint64:
  1937. fastpathTV.EncMapUint16Uint64V(*v, fastpathCheckNilTrue, e)
  1938. case map[uint16]uintptr:
  1939. fastpathTV.EncMapUint16UintptrV(v, fastpathCheckNilTrue, e)
  1940. case *map[uint16]uintptr:
  1941. fastpathTV.EncMapUint16UintptrV(*v, fastpathCheckNilTrue, e)
  1942. case map[uint16]int:
  1943. fastpathTV.EncMapUint16IntV(v, fastpathCheckNilTrue, e)
  1944. case *map[uint16]int:
  1945. fastpathTV.EncMapUint16IntV(*v, fastpathCheckNilTrue, e)
  1946. case map[uint16]int8:
  1947. fastpathTV.EncMapUint16Int8V(v, fastpathCheckNilTrue, e)
  1948. case *map[uint16]int8:
  1949. fastpathTV.EncMapUint16Int8V(*v, fastpathCheckNilTrue, e)
  1950. case map[uint16]int16:
  1951. fastpathTV.EncMapUint16Int16V(v, fastpathCheckNilTrue, e)
  1952. case *map[uint16]int16:
  1953. fastpathTV.EncMapUint16Int16V(*v, fastpathCheckNilTrue, e)
  1954. case map[uint16]int32:
  1955. fastpathTV.EncMapUint16Int32V(v, fastpathCheckNilTrue, e)
  1956. case *map[uint16]int32:
  1957. fastpathTV.EncMapUint16Int32V(*v, fastpathCheckNilTrue, e)
  1958. case map[uint16]int64:
  1959. fastpathTV.EncMapUint16Int64V(v, fastpathCheckNilTrue, e)
  1960. case *map[uint16]int64:
  1961. fastpathTV.EncMapUint16Int64V(*v, fastpathCheckNilTrue, e)
  1962. case map[uint16]float32:
  1963. fastpathTV.EncMapUint16Float32V(v, fastpathCheckNilTrue, e)
  1964. case *map[uint16]float32:
  1965. fastpathTV.EncMapUint16Float32V(*v, fastpathCheckNilTrue, e)
  1966. case map[uint16]float64:
  1967. fastpathTV.EncMapUint16Float64V(v, fastpathCheckNilTrue, e)
  1968. case *map[uint16]float64:
  1969. fastpathTV.EncMapUint16Float64V(*v, fastpathCheckNilTrue, e)
  1970. case map[uint16]bool:
  1971. fastpathTV.EncMapUint16BoolV(v, fastpathCheckNilTrue, e)
  1972. case *map[uint16]bool:
  1973. fastpathTV.EncMapUint16BoolV(*v, fastpathCheckNilTrue, e)
  1974. case map[uint32]interface{}:
  1975. fastpathTV.EncMapUint32IntfV(v, fastpathCheckNilTrue, e)
  1976. case *map[uint32]interface{}:
  1977. fastpathTV.EncMapUint32IntfV(*v, fastpathCheckNilTrue, e)
  1978. case map[uint32]string:
  1979. fastpathTV.EncMapUint32StringV(v, fastpathCheckNilTrue, e)
  1980. case *map[uint32]string:
  1981. fastpathTV.EncMapUint32StringV(*v, fastpathCheckNilTrue, e)
  1982. case map[uint32]uint:
  1983. fastpathTV.EncMapUint32UintV(v, fastpathCheckNilTrue, e)
  1984. case *map[uint32]uint:
  1985. fastpathTV.EncMapUint32UintV(*v, fastpathCheckNilTrue, e)
  1986. case map[uint32]uint8:
  1987. fastpathTV.EncMapUint32Uint8V(v, fastpathCheckNilTrue, e)
  1988. case *map[uint32]uint8:
  1989. fastpathTV.EncMapUint32Uint8V(*v, fastpathCheckNilTrue, e)
  1990. case map[uint32]uint16:
  1991. fastpathTV.EncMapUint32Uint16V(v, fastpathCheckNilTrue, e)
  1992. case *map[uint32]uint16:
  1993. fastpathTV.EncMapUint32Uint16V(*v, fastpathCheckNilTrue, e)
  1994. case map[uint32]uint32:
  1995. fastpathTV.EncMapUint32Uint32V(v, fastpathCheckNilTrue, e)
  1996. case *map[uint32]uint32:
  1997. fastpathTV.EncMapUint32Uint32V(*v, fastpathCheckNilTrue, e)
  1998. case map[uint32]uint64:
  1999. fastpathTV.EncMapUint32Uint64V(v, fastpathCheckNilTrue, e)
  2000. case *map[uint32]uint64:
  2001. fastpathTV.EncMapUint32Uint64V(*v, fastpathCheckNilTrue, e)
  2002. case map[uint32]uintptr:
  2003. fastpathTV.EncMapUint32UintptrV(v, fastpathCheckNilTrue, e)
  2004. case *map[uint32]uintptr:
  2005. fastpathTV.EncMapUint32UintptrV(*v, fastpathCheckNilTrue, e)
  2006. case map[uint32]int:
  2007. fastpathTV.EncMapUint32IntV(v, fastpathCheckNilTrue, e)
  2008. case *map[uint32]int:
  2009. fastpathTV.EncMapUint32IntV(*v, fastpathCheckNilTrue, e)
  2010. case map[uint32]int8:
  2011. fastpathTV.EncMapUint32Int8V(v, fastpathCheckNilTrue, e)
  2012. case *map[uint32]int8:
  2013. fastpathTV.EncMapUint32Int8V(*v, fastpathCheckNilTrue, e)
  2014. case map[uint32]int16:
  2015. fastpathTV.EncMapUint32Int16V(v, fastpathCheckNilTrue, e)
  2016. case *map[uint32]int16:
  2017. fastpathTV.EncMapUint32Int16V(*v, fastpathCheckNilTrue, e)
  2018. case map[uint32]int32:
  2019. fastpathTV.EncMapUint32Int32V(v, fastpathCheckNilTrue, e)
  2020. case *map[uint32]int32:
  2021. fastpathTV.EncMapUint32Int32V(*v, fastpathCheckNilTrue, e)
  2022. case map[uint32]int64:
  2023. fastpathTV.EncMapUint32Int64V(v, fastpathCheckNilTrue, e)
  2024. case *map[uint32]int64:
  2025. fastpathTV.EncMapUint32Int64V(*v, fastpathCheckNilTrue, e)
  2026. case map[uint32]float32:
  2027. fastpathTV.EncMapUint32Float32V(v, fastpathCheckNilTrue, e)
  2028. case *map[uint32]float32:
  2029. fastpathTV.EncMapUint32Float32V(*v, fastpathCheckNilTrue, e)
  2030. case map[uint32]float64:
  2031. fastpathTV.EncMapUint32Float64V(v, fastpathCheckNilTrue, e)
  2032. case *map[uint32]float64:
  2033. fastpathTV.EncMapUint32Float64V(*v, fastpathCheckNilTrue, e)
  2034. case map[uint32]bool:
  2035. fastpathTV.EncMapUint32BoolV(v, fastpathCheckNilTrue, e)
  2036. case *map[uint32]bool:
  2037. fastpathTV.EncMapUint32BoolV(*v, fastpathCheckNilTrue, e)
  2038. case map[uint64]interface{}:
  2039. fastpathTV.EncMapUint64IntfV(v, fastpathCheckNilTrue, e)
  2040. case *map[uint64]interface{}:
  2041. fastpathTV.EncMapUint64IntfV(*v, fastpathCheckNilTrue, e)
  2042. case map[uint64]string:
  2043. fastpathTV.EncMapUint64StringV(v, fastpathCheckNilTrue, e)
  2044. case *map[uint64]string:
  2045. fastpathTV.EncMapUint64StringV(*v, fastpathCheckNilTrue, e)
  2046. case map[uint64]uint:
  2047. fastpathTV.EncMapUint64UintV(v, fastpathCheckNilTrue, e)
  2048. case *map[uint64]uint:
  2049. fastpathTV.EncMapUint64UintV(*v, fastpathCheckNilTrue, e)
  2050. case map[uint64]uint8:
  2051. fastpathTV.EncMapUint64Uint8V(v, fastpathCheckNilTrue, e)
  2052. case *map[uint64]uint8:
  2053. fastpathTV.EncMapUint64Uint8V(*v, fastpathCheckNilTrue, e)
  2054. case map[uint64]uint16:
  2055. fastpathTV.EncMapUint64Uint16V(v, fastpathCheckNilTrue, e)
  2056. case *map[uint64]uint16:
  2057. fastpathTV.EncMapUint64Uint16V(*v, fastpathCheckNilTrue, e)
  2058. case map[uint64]uint32:
  2059. fastpathTV.EncMapUint64Uint32V(v, fastpathCheckNilTrue, e)
  2060. case *map[uint64]uint32:
  2061. fastpathTV.EncMapUint64Uint32V(*v, fastpathCheckNilTrue, e)
  2062. case map[uint64]uint64:
  2063. fastpathTV.EncMapUint64Uint64V(v, fastpathCheckNilTrue, e)
  2064. case *map[uint64]uint64:
  2065. fastpathTV.EncMapUint64Uint64V(*v, fastpathCheckNilTrue, e)
  2066. case map[uint64]uintptr:
  2067. fastpathTV.EncMapUint64UintptrV(v, fastpathCheckNilTrue, e)
  2068. case *map[uint64]uintptr:
  2069. fastpathTV.EncMapUint64UintptrV(*v, fastpathCheckNilTrue, e)
  2070. case map[uint64]int:
  2071. fastpathTV.EncMapUint64IntV(v, fastpathCheckNilTrue, e)
  2072. case *map[uint64]int:
  2073. fastpathTV.EncMapUint64IntV(*v, fastpathCheckNilTrue, e)
  2074. case map[uint64]int8:
  2075. fastpathTV.EncMapUint64Int8V(v, fastpathCheckNilTrue, e)
  2076. case *map[uint64]int8:
  2077. fastpathTV.EncMapUint64Int8V(*v, fastpathCheckNilTrue, e)
  2078. case map[uint64]int16:
  2079. fastpathTV.EncMapUint64Int16V(v, fastpathCheckNilTrue, e)
  2080. case *map[uint64]int16:
  2081. fastpathTV.EncMapUint64Int16V(*v, fastpathCheckNilTrue, e)
  2082. case map[uint64]int32:
  2083. fastpathTV.EncMapUint64Int32V(v, fastpathCheckNilTrue, e)
  2084. case *map[uint64]int32:
  2085. fastpathTV.EncMapUint64Int32V(*v, fastpathCheckNilTrue, e)
  2086. case map[uint64]int64:
  2087. fastpathTV.EncMapUint64Int64V(v, fastpathCheckNilTrue, e)
  2088. case *map[uint64]int64:
  2089. fastpathTV.EncMapUint64Int64V(*v, fastpathCheckNilTrue, e)
  2090. case map[uint64]float32:
  2091. fastpathTV.EncMapUint64Float32V(v, fastpathCheckNilTrue, e)
  2092. case *map[uint64]float32:
  2093. fastpathTV.EncMapUint64Float32V(*v, fastpathCheckNilTrue, e)
  2094. case map[uint64]float64:
  2095. fastpathTV.EncMapUint64Float64V(v, fastpathCheckNilTrue, e)
  2096. case *map[uint64]float64:
  2097. fastpathTV.EncMapUint64Float64V(*v, fastpathCheckNilTrue, e)
  2098. case map[uint64]bool:
  2099. fastpathTV.EncMapUint64BoolV(v, fastpathCheckNilTrue, e)
  2100. case *map[uint64]bool:
  2101. fastpathTV.EncMapUint64BoolV(*v, fastpathCheckNilTrue, e)
  2102. case map[uintptr]interface{}:
  2103. fastpathTV.EncMapUintptrIntfV(v, fastpathCheckNilTrue, e)
  2104. case *map[uintptr]interface{}:
  2105. fastpathTV.EncMapUintptrIntfV(*v, fastpathCheckNilTrue, e)
  2106. case map[uintptr]string:
  2107. fastpathTV.EncMapUintptrStringV(v, fastpathCheckNilTrue, e)
  2108. case *map[uintptr]string:
  2109. fastpathTV.EncMapUintptrStringV(*v, fastpathCheckNilTrue, e)
  2110. case map[uintptr]uint:
  2111. fastpathTV.EncMapUintptrUintV(v, fastpathCheckNilTrue, e)
  2112. case *map[uintptr]uint:
  2113. fastpathTV.EncMapUintptrUintV(*v, fastpathCheckNilTrue, e)
  2114. case map[uintptr]uint8:
  2115. fastpathTV.EncMapUintptrUint8V(v, fastpathCheckNilTrue, e)
  2116. case *map[uintptr]uint8:
  2117. fastpathTV.EncMapUintptrUint8V(*v, fastpathCheckNilTrue, e)
  2118. case map[uintptr]uint16:
  2119. fastpathTV.EncMapUintptrUint16V(v, fastpathCheckNilTrue, e)
  2120. case *map[uintptr]uint16:
  2121. fastpathTV.EncMapUintptrUint16V(*v, fastpathCheckNilTrue, e)
  2122. case map[uintptr]uint32:
  2123. fastpathTV.EncMapUintptrUint32V(v, fastpathCheckNilTrue, e)
  2124. case *map[uintptr]uint32:
  2125. fastpathTV.EncMapUintptrUint32V(*v, fastpathCheckNilTrue, e)
  2126. case map[uintptr]uint64:
  2127. fastpathTV.EncMapUintptrUint64V(v, fastpathCheckNilTrue, e)
  2128. case *map[uintptr]uint64:
  2129. fastpathTV.EncMapUintptrUint64V(*v, fastpathCheckNilTrue, e)
  2130. case map[uintptr]uintptr:
  2131. fastpathTV.EncMapUintptrUintptrV(v, fastpathCheckNilTrue, e)
  2132. case *map[uintptr]uintptr:
  2133. fastpathTV.EncMapUintptrUintptrV(*v, fastpathCheckNilTrue, e)
  2134. case map[uintptr]int:
  2135. fastpathTV.EncMapUintptrIntV(v, fastpathCheckNilTrue, e)
  2136. case *map[uintptr]int:
  2137. fastpathTV.EncMapUintptrIntV(*v, fastpathCheckNilTrue, e)
  2138. case map[uintptr]int8:
  2139. fastpathTV.EncMapUintptrInt8V(v, fastpathCheckNilTrue, e)
  2140. case *map[uintptr]int8:
  2141. fastpathTV.EncMapUintptrInt8V(*v, fastpathCheckNilTrue, e)
  2142. case map[uintptr]int16:
  2143. fastpathTV.EncMapUintptrInt16V(v, fastpathCheckNilTrue, e)
  2144. case *map[uintptr]int16:
  2145. fastpathTV.EncMapUintptrInt16V(*v, fastpathCheckNilTrue, e)
  2146. case map[uintptr]int32:
  2147. fastpathTV.EncMapUintptrInt32V(v, fastpathCheckNilTrue, e)
  2148. case *map[uintptr]int32:
  2149. fastpathTV.EncMapUintptrInt32V(*v, fastpathCheckNilTrue, e)
  2150. case map[uintptr]int64:
  2151. fastpathTV.EncMapUintptrInt64V(v, fastpathCheckNilTrue, e)
  2152. case *map[uintptr]int64:
  2153. fastpathTV.EncMapUintptrInt64V(*v, fastpathCheckNilTrue, e)
  2154. case map[uintptr]float32:
  2155. fastpathTV.EncMapUintptrFloat32V(v, fastpathCheckNilTrue, e)
  2156. case *map[uintptr]float32:
  2157. fastpathTV.EncMapUintptrFloat32V(*v, fastpathCheckNilTrue, e)
  2158. case map[uintptr]float64:
  2159. fastpathTV.EncMapUintptrFloat64V(v, fastpathCheckNilTrue, e)
  2160. case *map[uintptr]float64:
  2161. fastpathTV.EncMapUintptrFloat64V(*v, fastpathCheckNilTrue, e)
  2162. case map[uintptr]bool:
  2163. fastpathTV.EncMapUintptrBoolV(v, fastpathCheckNilTrue, e)
  2164. case *map[uintptr]bool:
  2165. fastpathTV.EncMapUintptrBoolV(*v, fastpathCheckNilTrue, e)
  2166. case map[int]interface{}:
  2167. fastpathTV.EncMapIntIntfV(v, fastpathCheckNilTrue, e)
  2168. case *map[int]interface{}:
  2169. fastpathTV.EncMapIntIntfV(*v, fastpathCheckNilTrue, e)
  2170. case map[int]string:
  2171. fastpathTV.EncMapIntStringV(v, fastpathCheckNilTrue, e)
  2172. case *map[int]string:
  2173. fastpathTV.EncMapIntStringV(*v, fastpathCheckNilTrue, e)
  2174. case map[int]uint:
  2175. fastpathTV.EncMapIntUintV(v, fastpathCheckNilTrue, e)
  2176. case *map[int]uint:
  2177. fastpathTV.EncMapIntUintV(*v, fastpathCheckNilTrue, e)
  2178. case map[int]uint8:
  2179. fastpathTV.EncMapIntUint8V(v, fastpathCheckNilTrue, e)
  2180. case *map[int]uint8:
  2181. fastpathTV.EncMapIntUint8V(*v, fastpathCheckNilTrue, e)
  2182. case map[int]uint16:
  2183. fastpathTV.EncMapIntUint16V(v, fastpathCheckNilTrue, e)
  2184. case *map[int]uint16:
  2185. fastpathTV.EncMapIntUint16V(*v, fastpathCheckNilTrue, e)
  2186. case map[int]uint32:
  2187. fastpathTV.EncMapIntUint32V(v, fastpathCheckNilTrue, e)
  2188. case *map[int]uint32:
  2189. fastpathTV.EncMapIntUint32V(*v, fastpathCheckNilTrue, e)
  2190. case map[int]uint64:
  2191. fastpathTV.EncMapIntUint64V(v, fastpathCheckNilTrue, e)
  2192. case *map[int]uint64:
  2193. fastpathTV.EncMapIntUint64V(*v, fastpathCheckNilTrue, e)
  2194. case map[int]uintptr:
  2195. fastpathTV.EncMapIntUintptrV(v, fastpathCheckNilTrue, e)
  2196. case *map[int]uintptr:
  2197. fastpathTV.EncMapIntUintptrV(*v, fastpathCheckNilTrue, e)
  2198. case map[int]int:
  2199. fastpathTV.EncMapIntIntV(v, fastpathCheckNilTrue, e)
  2200. case *map[int]int:
  2201. fastpathTV.EncMapIntIntV(*v, fastpathCheckNilTrue, e)
  2202. case map[int]int8:
  2203. fastpathTV.EncMapIntInt8V(v, fastpathCheckNilTrue, e)
  2204. case *map[int]int8:
  2205. fastpathTV.EncMapIntInt8V(*v, fastpathCheckNilTrue, e)
  2206. case map[int]int16:
  2207. fastpathTV.EncMapIntInt16V(v, fastpathCheckNilTrue, e)
  2208. case *map[int]int16:
  2209. fastpathTV.EncMapIntInt16V(*v, fastpathCheckNilTrue, e)
  2210. case map[int]int32:
  2211. fastpathTV.EncMapIntInt32V(v, fastpathCheckNilTrue, e)
  2212. case *map[int]int32:
  2213. fastpathTV.EncMapIntInt32V(*v, fastpathCheckNilTrue, e)
  2214. case map[int]int64:
  2215. fastpathTV.EncMapIntInt64V(v, fastpathCheckNilTrue, e)
  2216. case *map[int]int64:
  2217. fastpathTV.EncMapIntInt64V(*v, fastpathCheckNilTrue, e)
  2218. case map[int]float32:
  2219. fastpathTV.EncMapIntFloat32V(v, fastpathCheckNilTrue, e)
  2220. case *map[int]float32:
  2221. fastpathTV.EncMapIntFloat32V(*v, fastpathCheckNilTrue, e)
  2222. case map[int]float64:
  2223. fastpathTV.EncMapIntFloat64V(v, fastpathCheckNilTrue, e)
  2224. case *map[int]float64:
  2225. fastpathTV.EncMapIntFloat64V(*v, fastpathCheckNilTrue, e)
  2226. case map[int]bool:
  2227. fastpathTV.EncMapIntBoolV(v, fastpathCheckNilTrue, e)
  2228. case *map[int]bool:
  2229. fastpathTV.EncMapIntBoolV(*v, fastpathCheckNilTrue, e)
  2230. case map[int8]interface{}:
  2231. fastpathTV.EncMapInt8IntfV(v, fastpathCheckNilTrue, e)
  2232. case *map[int8]interface{}:
  2233. fastpathTV.EncMapInt8IntfV(*v, fastpathCheckNilTrue, e)
  2234. case map[int8]string:
  2235. fastpathTV.EncMapInt8StringV(v, fastpathCheckNilTrue, e)
  2236. case *map[int8]string:
  2237. fastpathTV.EncMapInt8StringV(*v, fastpathCheckNilTrue, e)
  2238. case map[int8]uint:
  2239. fastpathTV.EncMapInt8UintV(v, fastpathCheckNilTrue, e)
  2240. case *map[int8]uint:
  2241. fastpathTV.EncMapInt8UintV(*v, fastpathCheckNilTrue, e)
  2242. case map[int8]uint8:
  2243. fastpathTV.EncMapInt8Uint8V(v, fastpathCheckNilTrue, e)
  2244. case *map[int8]uint8:
  2245. fastpathTV.EncMapInt8Uint8V(*v, fastpathCheckNilTrue, e)
  2246. case map[int8]uint16:
  2247. fastpathTV.EncMapInt8Uint16V(v, fastpathCheckNilTrue, e)
  2248. case *map[int8]uint16:
  2249. fastpathTV.EncMapInt8Uint16V(*v, fastpathCheckNilTrue, e)
  2250. case map[int8]uint32:
  2251. fastpathTV.EncMapInt8Uint32V(v, fastpathCheckNilTrue, e)
  2252. case *map[int8]uint32:
  2253. fastpathTV.EncMapInt8Uint32V(*v, fastpathCheckNilTrue, e)
  2254. case map[int8]uint64:
  2255. fastpathTV.EncMapInt8Uint64V(v, fastpathCheckNilTrue, e)
  2256. case *map[int8]uint64:
  2257. fastpathTV.EncMapInt8Uint64V(*v, fastpathCheckNilTrue, e)
  2258. case map[int8]uintptr:
  2259. fastpathTV.EncMapInt8UintptrV(v, fastpathCheckNilTrue, e)
  2260. case *map[int8]uintptr:
  2261. fastpathTV.EncMapInt8UintptrV(*v, fastpathCheckNilTrue, e)
  2262. case map[int8]int:
  2263. fastpathTV.EncMapInt8IntV(v, fastpathCheckNilTrue, e)
  2264. case *map[int8]int:
  2265. fastpathTV.EncMapInt8IntV(*v, fastpathCheckNilTrue, e)
  2266. case map[int8]int8:
  2267. fastpathTV.EncMapInt8Int8V(v, fastpathCheckNilTrue, e)
  2268. case *map[int8]int8:
  2269. fastpathTV.EncMapInt8Int8V(*v, fastpathCheckNilTrue, e)
  2270. case map[int8]int16:
  2271. fastpathTV.EncMapInt8Int16V(v, fastpathCheckNilTrue, e)
  2272. case *map[int8]int16:
  2273. fastpathTV.EncMapInt8Int16V(*v, fastpathCheckNilTrue, e)
  2274. case map[int8]int32:
  2275. fastpathTV.EncMapInt8Int32V(v, fastpathCheckNilTrue, e)
  2276. case *map[int8]int32:
  2277. fastpathTV.EncMapInt8Int32V(*v, fastpathCheckNilTrue, e)
  2278. case map[int8]int64:
  2279. fastpathTV.EncMapInt8Int64V(v, fastpathCheckNilTrue, e)
  2280. case *map[int8]int64:
  2281. fastpathTV.EncMapInt8Int64V(*v, fastpathCheckNilTrue, e)
  2282. case map[int8]float32:
  2283. fastpathTV.EncMapInt8Float32V(v, fastpathCheckNilTrue, e)
  2284. case *map[int8]float32:
  2285. fastpathTV.EncMapInt8Float32V(*v, fastpathCheckNilTrue, e)
  2286. case map[int8]float64:
  2287. fastpathTV.EncMapInt8Float64V(v, fastpathCheckNilTrue, e)
  2288. case *map[int8]float64:
  2289. fastpathTV.EncMapInt8Float64V(*v, fastpathCheckNilTrue, e)
  2290. case map[int8]bool:
  2291. fastpathTV.EncMapInt8BoolV(v, fastpathCheckNilTrue, e)
  2292. case *map[int8]bool:
  2293. fastpathTV.EncMapInt8BoolV(*v, fastpathCheckNilTrue, e)
  2294. case map[int16]interface{}:
  2295. fastpathTV.EncMapInt16IntfV(v, fastpathCheckNilTrue, e)
  2296. case *map[int16]interface{}:
  2297. fastpathTV.EncMapInt16IntfV(*v, fastpathCheckNilTrue, e)
  2298. case map[int16]string:
  2299. fastpathTV.EncMapInt16StringV(v, fastpathCheckNilTrue, e)
  2300. case *map[int16]string:
  2301. fastpathTV.EncMapInt16StringV(*v, fastpathCheckNilTrue, e)
  2302. case map[int16]uint:
  2303. fastpathTV.EncMapInt16UintV(v, fastpathCheckNilTrue, e)
  2304. case *map[int16]uint:
  2305. fastpathTV.EncMapInt16UintV(*v, fastpathCheckNilTrue, e)
  2306. case map[int16]uint8:
  2307. fastpathTV.EncMapInt16Uint8V(v, fastpathCheckNilTrue, e)
  2308. case *map[int16]uint8:
  2309. fastpathTV.EncMapInt16Uint8V(*v, fastpathCheckNilTrue, e)
  2310. case map[int16]uint16:
  2311. fastpathTV.EncMapInt16Uint16V(v, fastpathCheckNilTrue, e)
  2312. case *map[int16]uint16:
  2313. fastpathTV.EncMapInt16Uint16V(*v, fastpathCheckNilTrue, e)
  2314. case map[int16]uint32:
  2315. fastpathTV.EncMapInt16Uint32V(v, fastpathCheckNilTrue, e)
  2316. case *map[int16]uint32:
  2317. fastpathTV.EncMapInt16Uint32V(*v, fastpathCheckNilTrue, e)
  2318. case map[int16]uint64:
  2319. fastpathTV.EncMapInt16Uint64V(v, fastpathCheckNilTrue, e)
  2320. case *map[int16]uint64:
  2321. fastpathTV.EncMapInt16Uint64V(*v, fastpathCheckNilTrue, e)
  2322. case map[int16]uintptr:
  2323. fastpathTV.EncMapInt16UintptrV(v, fastpathCheckNilTrue, e)
  2324. case *map[int16]uintptr:
  2325. fastpathTV.EncMapInt16UintptrV(*v, fastpathCheckNilTrue, e)
  2326. case map[int16]int:
  2327. fastpathTV.EncMapInt16IntV(v, fastpathCheckNilTrue, e)
  2328. case *map[int16]int:
  2329. fastpathTV.EncMapInt16IntV(*v, fastpathCheckNilTrue, e)
  2330. case map[int16]int8:
  2331. fastpathTV.EncMapInt16Int8V(v, fastpathCheckNilTrue, e)
  2332. case *map[int16]int8:
  2333. fastpathTV.EncMapInt16Int8V(*v, fastpathCheckNilTrue, e)
  2334. case map[int16]int16:
  2335. fastpathTV.EncMapInt16Int16V(v, fastpathCheckNilTrue, e)
  2336. case *map[int16]int16:
  2337. fastpathTV.EncMapInt16Int16V(*v, fastpathCheckNilTrue, e)
  2338. case map[int16]int32:
  2339. fastpathTV.EncMapInt16Int32V(v, fastpathCheckNilTrue, e)
  2340. case *map[int16]int32:
  2341. fastpathTV.EncMapInt16Int32V(*v, fastpathCheckNilTrue, e)
  2342. case map[int16]int64:
  2343. fastpathTV.EncMapInt16Int64V(v, fastpathCheckNilTrue, e)
  2344. case *map[int16]int64:
  2345. fastpathTV.EncMapInt16Int64V(*v, fastpathCheckNilTrue, e)
  2346. case map[int16]float32:
  2347. fastpathTV.EncMapInt16Float32V(v, fastpathCheckNilTrue, e)
  2348. case *map[int16]float32:
  2349. fastpathTV.EncMapInt16Float32V(*v, fastpathCheckNilTrue, e)
  2350. case map[int16]float64:
  2351. fastpathTV.EncMapInt16Float64V(v, fastpathCheckNilTrue, e)
  2352. case *map[int16]float64:
  2353. fastpathTV.EncMapInt16Float64V(*v, fastpathCheckNilTrue, e)
  2354. case map[int16]bool:
  2355. fastpathTV.EncMapInt16BoolV(v, fastpathCheckNilTrue, e)
  2356. case *map[int16]bool:
  2357. fastpathTV.EncMapInt16BoolV(*v, fastpathCheckNilTrue, e)
  2358. case map[int32]interface{}:
  2359. fastpathTV.EncMapInt32IntfV(v, fastpathCheckNilTrue, e)
  2360. case *map[int32]interface{}:
  2361. fastpathTV.EncMapInt32IntfV(*v, fastpathCheckNilTrue, e)
  2362. case map[int32]string:
  2363. fastpathTV.EncMapInt32StringV(v, fastpathCheckNilTrue, e)
  2364. case *map[int32]string:
  2365. fastpathTV.EncMapInt32StringV(*v, fastpathCheckNilTrue, e)
  2366. case map[int32]uint:
  2367. fastpathTV.EncMapInt32UintV(v, fastpathCheckNilTrue, e)
  2368. case *map[int32]uint:
  2369. fastpathTV.EncMapInt32UintV(*v, fastpathCheckNilTrue, e)
  2370. case map[int32]uint8:
  2371. fastpathTV.EncMapInt32Uint8V(v, fastpathCheckNilTrue, e)
  2372. case *map[int32]uint8:
  2373. fastpathTV.EncMapInt32Uint8V(*v, fastpathCheckNilTrue, e)
  2374. case map[int32]uint16:
  2375. fastpathTV.EncMapInt32Uint16V(v, fastpathCheckNilTrue, e)
  2376. case *map[int32]uint16:
  2377. fastpathTV.EncMapInt32Uint16V(*v, fastpathCheckNilTrue, e)
  2378. case map[int32]uint32:
  2379. fastpathTV.EncMapInt32Uint32V(v, fastpathCheckNilTrue, e)
  2380. case *map[int32]uint32:
  2381. fastpathTV.EncMapInt32Uint32V(*v, fastpathCheckNilTrue, e)
  2382. case map[int32]uint64:
  2383. fastpathTV.EncMapInt32Uint64V(v, fastpathCheckNilTrue, e)
  2384. case *map[int32]uint64:
  2385. fastpathTV.EncMapInt32Uint64V(*v, fastpathCheckNilTrue, e)
  2386. case map[int32]uintptr:
  2387. fastpathTV.EncMapInt32UintptrV(v, fastpathCheckNilTrue, e)
  2388. case *map[int32]uintptr:
  2389. fastpathTV.EncMapInt32UintptrV(*v, fastpathCheckNilTrue, e)
  2390. case map[int32]int:
  2391. fastpathTV.EncMapInt32IntV(v, fastpathCheckNilTrue, e)
  2392. case *map[int32]int:
  2393. fastpathTV.EncMapInt32IntV(*v, fastpathCheckNilTrue, e)
  2394. case map[int32]int8:
  2395. fastpathTV.EncMapInt32Int8V(v, fastpathCheckNilTrue, e)
  2396. case *map[int32]int8:
  2397. fastpathTV.EncMapInt32Int8V(*v, fastpathCheckNilTrue, e)
  2398. case map[int32]int16:
  2399. fastpathTV.EncMapInt32Int16V(v, fastpathCheckNilTrue, e)
  2400. case *map[int32]int16:
  2401. fastpathTV.EncMapInt32Int16V(*v, fastpathCheckNilTrue, e)
  2402. case map[int32]int32:
  2403. fastpathTV.EncMapInt32Int32V(v, fastpathCheckNilTrue, e)
  2404. case *map[int32]int32:
  2405. fastpathTV.EncMapInt32Int32V(*v, fastpathCheckNilTrue, e)
  2406. case map[int32]int64:
  2407. fastpathTV.EncMapInt32Int64V(v, fastpathCheckNilTrue, e)
  2408. case *map[int32]int64:
  2409. fastpathTV.EncMapInt32Int64V(*v, fastpathCheckNilTrue, e)
  2410. case map[int32]float32:
  2411. fastpathTV.EncMapInt32Float32V(v, fastpathCheckNilTrue, e)
  2412. case *map[int32]float32:
  2413. fastpathTV.EncMapInt32Float32V(*v, fastpathCheckNilTrue, e)
  2414. case map[int32]float64:
  2415. fastpathTV.EncMapInt32Float64V(v, fastpathCheckNilTrue, e)
  2416. case *map[int32]float64:
  2417. fastpathTV.EncMapInt32Float64V(*v, fastpathCheckNilTrue, e)
  2418. case map[int32]bool:
  2419. fastpathTV.EncMapInt32BoolV(v, fastpathCheckNilTrue, e)
  2420. case *map[int32]bool:
  2421. fastpathTV.EncMapInt32BoolV(*v, fastpathCheckNilTrue, e)
  2422. case map[int64]interface{}:
  2423. fastpathTV.EncMapInt64IntfV(v, fastpathCheckNilTrue, e)
  2424. case *map[int64]interface{}:
  2425. fastpathTV.EncMapInt64IntfV(*v, fastpathCheckNilTrue, e)
  2426. case map[int64]string:
  2427. fastpathTV.EncMapInt64StringV(v, fastpathCheckNilTrue, e)
  2428. case *map[int64]string:
  2429. fastpathTV.EncMapInt64StringV(*v, fastpathCheckNilTrue, e)
  2430. case map[int64]uint:
  2431. fastpathTV.EncMapInt64UintV(v, fastpathCheckNilTrue, e)
  2432. case *map[int64]uint:
  2433. fastpathTV.EncMapInt64UintV(*v, fastpathCheckNilTrue, e)
  2434. case map[int64]uint8:
  2435. fastpathTV.EncMapInt64Uint8V(v, fastpathCheckNilTrue, e)
  2436. case *map[int64]uint8:
  2437. fastpathTV.EncMapInt64Uint8V(*v, fastpathCheckNilTrue, e)
  2438. case map[int64]uint16:
  2439. fastpathTV.EncMapInt64Uint16V(v, fastpathCheckNilTrue, e)
  2440. case *map[int64]uint16:
  2441. fastpathTV.EncMapInt64Uint16V(*v, fastpathCheckNilTrue, e)
  2442. case map[int64]uint32:
  2443. fastpathTV.EncMapInt64Uint32V(v, fastpathCheckNilTrue, e)
  2444. case *map[int64]uint32:
  2445. fastpathTV.EncMapInt64Uint32V(*v, fastpathCheckNilTrue, e)
  2446. case map[int64]uint64:
  2447. fastpathTV.EncMapInt64Uint64V(v, fastpathCheckNilTrue, e)
  2448. case *map[int64]uint64:
  2449. fastpathTV.EncMapInt64Uint64V(*v, fastpathCheckNilTrue, e)
  2450. case map[int64]uintptr:
  2451. fastpathTV.EncMapInt64UintptrV(v, fastpathCheckNilTrue, e)
  2452. case *map[int64]uintptr:
  2453. fastpathTV.EncMapInt64UintptrV(*v, fastpathCheckNilTrue, e)
  2454. case map[int64]int:
  2455. fastpathTV.EncMapInt64IntV(v, fastpathCheckNilTrue, e)
  2456. case *map[int64]int:
  2457. fastpathTV.EncMapInt64IntV(*v, fastpathCheckNilTrue, e)
  2458. case map[int64]int8:
  2459. fastpathTV.EncMapInt64Int8V(v, fastpathCheckNilTrue, e)
  2460. case *map[int64]int8:
  2461. fastpathTV.EncMapInt64Int8V(*v, fastpathCheckNilTrue, e)
  2462. case map[int64]int16:
  2463. fastpathTV.EncMapInt64Int16V(v, fastpathCheckNilTrue, e)
  2464. case *map[int64]int16:
  2465. fastpathTV.EncMapInt64Int16V(*v, fastpathCheckNilTrue, e)
  2466. case map[int64]int32:
  2467. fastpathTV.EncMapInt64Int32V(v, fastpathCheckNilTrue, e)
  2468. case *map[int64]int32:
  2469. fastpathTV.EncMapInt64Int32V(*v, fastpathCheckNilTrue, e)
  2470. case map[int64]int64:
  2471. fastpathTV.EncMapInt64Int64V(v, fastpathCheckNilTrue, e)
  2472. case *map[int64]int64:
  2473. fastpathTV.EncMapInt64Int64V(*v, fastpathCheckNilTrue, e)
  2474. case map[int64]float32:
  2475. fastpathTV.EncMapInt64Float32V(v, fastpathCheckNilTrue, e)
  2476. case *map[int64]float32:
  2477. fastpathTV.EncMapInt64Float32V(*v, fastpathCheckNilTrue, e)
  2478. case map[int64]float64:
  2479. fastpathTV.EncMapInt64Float64V(v, fastpathCheckNilTrue, e)
  2480. case *map[int64]float64:
  2481. fastpathTV.EncMapInt64Float64V(*v, fastpathCheckNilTrue, e)
  2482. case map[int64]bool:
  2483. fastpathTV.EncMapInt64BoolV(v, fastpathCheckNilTrue, e)
  2484. case *map[int64]bool:
  2485. fastpathTV.EncMapInt64BoolV(*v, fastpathCheckNilTrue, e)
  2486. case map[bool]interface{}:
  2487. fastpathTV.EncMapBoolIntfV(v, fastpathCheckNilTrue, e)
  2488. case *map[bool]interface{}:
  2489. fastpathTV.EncMapBoolIntfV(*v, fastpathCheckNilTrue, e)
  2490. case map[bool]string:
  2491. fastpathTV.EncMapBoolStringV(v, fastpathCheckNilTrue, e)
  2492. case *map[bool]string:
  2493. fastpathTV.EncMapBoolStringV(*v, fastpathCheckNilTrue, e)
  2494. case map[bool]uint:
  2495. fastpathTV.EncMapBoolUintV(v, fastpathCheckNilTrue, e)
  2496. case *map[bool]uint:
  2497. fastpathTV.EncMapBoolUintV(*v, fastpathCheckNilTrue, e)
  2498. case map[bool]uint8:
  2499. fastpathTV.EncMapBoolUint8V(v, fastpathCheckNilTrue, e)
  2500. case *map[bool]uint8:
  2501. fastpathTV.EncMapBoolUint8V(*v, fastpathCheckNilTrue, e)
  2502. case map[bool]uint16:
  2503. fastpathTV.EncMapBoolUint16V(v, fastpathCheckNilTrue, e)
  2504. case *map[bool]uint16:
  2505. fastpathTV.EncMapBoolUint16V(*v, fastpathCheckNilTrue, e)
  2506. case map[bool]uint32:
  2507. fastpathTV.EncMapBoolUint32V(v, fastpathCheckNilTrue, e)
  2508. case *map[bool]uint32:
  2509. fastpathTV.EncMapBoolUint32V(*v, fastpathCheckNilTrue, e)
  2510. case map[bool]uint64:
  2511. fastpathTV.EncMapBoolUint64V(v, fastpathCheckNilTrue, e)
  2512. case *map[bool]uint64:
  2513. fastpathTV.EncMapBoolUint64V(*v, fastpathCheckNilTrue, e)
  2514. case map[bool]uintptr:
  2515. fastpathTV.EncMapBoolUintptrV(v, fastpathCheckNilTrue, e)
  2516. case *map[bool]uintptr:
  2517. fastpathTV.EncMapBoolUintptrV(*v, fastpathCheckNilTrue, e)
  2518. case map[bool]int:
  2519. fastpathTV.EncMapBoolIntV(v, fastpathCheckNilTrue, e)
  2520. case *map[bool]int:
  2521. fastpathTV.EncMapBoolIntV(*v, fastpathCheckNilTrue, e)
  2522. case map[bool]int8:
  2523. fastpathTV.EncMapBoolInt8V(v, fastpathCheckNilTrue, e)
  2524. case *map[bool]int8:
  2525. fastpathTV.EncMapBoolInt8V(*v, fastpathCheckNilTrue, e)
  2526. case map[bool]int16:
  2527. fastpathTV.EncMapBoolInt16V(v, fastpathCheckNilTrue, e)
  2528. case *map[bool]int16:
  2529. fastpathTV.EncMapBoolInt16V(*v, fastpathCheckNilTrue, e)
  2530. case map[bool]int32:
  2531. fastpathTV.EncMapBoolInt32V(v, fastpathCheckNilTrue, e)
  2532. case *map[bool]int32:
  2533. fastpathTV.EncMapBoolInt32V(*v, fastpathCheckNilTrue, e)
  2534. case map[bool]int64:
  2535. fastpathTV.EncMapBoolInt64V(v, fastpathCheckNilTrue, e)
  2536. case *map[bool]int64:
  2537. fastpathTV.EncMapBoolInt64V(*v, fastpathCheckNilTrue, e)
  2538. case map[bool]float32:
  2539. fastpathTV.EncMapBoolFloat32V(v, fastpathCheckNilTrue, e)
  2540. case *map[bool]float32:
  2541. fastpathTV.EncMapBoolFloat32V(*v, fastpathCheckNilTrue, e)
  2542. case map[bool]float64:
  2543. fastpathTV.EncMapBoolFloat64V(v, fastpathCheckNilTrue, e)
  2544. case *map[bool]float64:
  2545. fastpathTV.EncMapBoolFloat64V(*v, fastpathCheckNilTrue, e)
  2546. case map[bool]bool:
  2547. fastpathTV.EncMapBoolBoolV(v, fastpathCheckNilTrue, e)
  2548. case *map[bool]bool:
  2549. fastpathTV.EncMapBoolBoolV(*v, fastpathCheckNilTrue, e)
  2550. default:
  2551. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  2552. return false
  2553. }
  2554. return true
  2555. }
  2556. // -- -- fast path functions
  2557. func (f *encFnInfo) fastpathEncSliceIntfR(rv reflect.Value) {
  2558. if f.ti.mbs {
  2559. fastpathTV.EncAsMapSliceIntfV(rv.Interface().([]interface{}), fastpathCheckNilFalse, f.e)
  2560. } else {
  2561. fastpathTV.EncSliceIntfV(rv.Interface().([]interface{}), fastpathCheckNilFalse, f.e)
  2562. }
  2563. }
  2564. func (_ fastpathT) EncSliceIntfV(v []interface{}, checkNil bool, e *Encoder) {
  2565. ee := e.e
  2566. cr := e.cr
  2567. if checkNil && v == nil {
  2568. ee.EncodeNil()
  2569. return
  2570. }
  2571. ee.EncodeArrayStart(len(v))
  2572. for _, v2 := range v {
  2573. if cr != nil {
  2574. cr.sendContainerState(containerArrayElem)
  2575. }
  2576. e.encode(v2)
  2577. }
  2578. if cr != nil {
  2579. cr.sendContainerState(containerArrayEnd)
  2580. }
  2581. }
  2582. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, checkNil bool, e *Encoder) {
  2583. ee := e.e
  2584. cr := e.cr
  2585. if checkNil && v == nil {
  2586. ee.EncodeNil()
  2587. return
  2588. }
  2589. if len(v)%2 == 1 {
  2590. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2591. return
  2592. }
  2593. ee.EncodeMapStart(len(v) / 2)
  2594. for j, v2 := range v {
  2595. if cr != nil {
  2596. if j%2 == 0 {
  2597. cr.sendContainerState(containerMapKey)
  2598. } else {
  2599. cr.sendContainerState(containerMapValue)
  2600. }
  2601. }
  2602. e.encode(v2)
  2603. }
  2604. if cr != nil {
  2605. cr.sendContainerState(containerMapEnd)
  2606. }
  2607. }
  2608. func (f *encFnInfo) fastpathEncSliceStringR(rv reflect.Value) {
  2609. if f.ti.mbs {
  2610. fastpathTV.EncAsMapSliceStringV(rv.Interface().([]string), fastpathCheckNilFalse, f.e)
  2611. } else {
  2612. fastpathTV.EncSliceStringV(rv.Interface().([]string), fastpathCheckNilFalse, f.e)
  2613. }
  2614. }
  2615. func (_ fastpathT) EncSliceStringV(v []string, checkNil bool, e *Encoder) {
  2616. ee := e.e
  2617. cr := e.cr
  2618. if checkNil && v == nil {
  2619. ee.EncodeNil()
  2620. return
  2621. }
  2622. ee.EncodeArrayStart(len(v))
  2623. for _, v2 := range v {
  2624. if cr != nil {
  2625. cr.sendContainerState(containerArrayElem)
  2626. }
  2627. ee.EncodeString(c_UTF8, v2)
  2628. }
  2629. if cr != nil {
  2630. cr.sendContainerState(containerArrayEnd)
  2631. }
  2632. }
  2633. func (_ fastpathT) EncAsMapSliceStringV(v []string, checkNil bool, e *Encoder) {
  2634. ee := e.e
  2635. cr := e.cr
  2636. if checkNil && v == nil {
  2637. ee.EncodeNil()
  2638. return
  2639. }
  2640. if len(v)%2 == 1 {
  2641. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2642. return
  2643. }
  2644. ee.EncodeMapStart(len(v) / 2)
  2645. for j, v2 := range v {
  2646. if cr != nil {
  2647. if j%2 == 0 {
  2648. cr.sendContainerState(containerMapKey)
  2649. } else {
  2650. cr.sendContainerState(containerMapValue)
  2651. }
  2652. }
  2653. ee.EncodeString(c_UTF8, v2)
  2654. }
  2655. if cr != nil {
  2656. cr.sendContainerState(containerMapEnd)
  2657. }
  2658. }
  2659. func (f *encFnInfo) fastpathEncSliceFloat32R(rv reflect.Value) {
  2660. if f.ti.mbs {
  2661. fastpathTV.EncAsMapSliceFloat32V(rv.Interface().([]float32), fastpathCheckNilFalse, f.e)
  2662. } else {
  2663. fastpathTV.EncSliceFloat32V(rv.Interface().([]float32), fastpathCheckNilFalse, f.e)
  2664. }
  2665. }
  2666. func (_ fastpathT) EncSliceFloat32V(v []float32, checkNil bool, e *Encoder) {
  2667. ee := e.e
  2668. cr := e.cr
  2669. if checkNil && v == nil {
  2670. ee.EncodeNil()
  2671. return
  2672. }
  2673. ee.EncodeArrayStart(len(v))
  2674. for _, v2 := range v {
  2675. if cr != nil {
  2676. cr.sendContainerState(containerArrayElem)
  2677. }
  2678. ee.EncodeFloat32(v2)
  2679. }
  2680. if cr != nil {
  2681. cr.sendContainerState(containerArrayEnd)
  2682. }
  2683. }
  2684. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, checkNil bool, e *Encoder) {
  2685. ee := e.e
  2686. cr := e.cr
  2687. if checkNil && v == nil {
  2688. ee.EncodeNil()
  2689. return
  2690. }
  2691. if len(v)%2 == 1 {
  2692. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2693. return
  2694. }
  2695. ee.EncodeMapStart(len(v) / 2)
  2696. for j, v2 := range v {
  2697. if cr != nil {
  2698. if j%2 == 0 {
  2699. cr.sendContainerState(containerMapKey)
  2700. } else {
  2701. cr.sendContainerState(containerMapValue)
  2702. }
  2703. }
  2704. ee.EncodeFloat32(v2)
  2705. }
  2706. if cr != nil {
  2707. cr.sendContainerState(containerMapEnd)
  2708. }
  2709. }
  2710. func (f *encFnInfo) fastpathEncSliceFloat64R(rv reflect.Value) {
  2711. if f.ti.mbs {
  2712. fastpathTV.EncAsMapSliceFloat64V(rv.Interface().([]float64), fastpathCheckNilFalse, f.e)
  2713. } else {
  2714. fastpathTV.EncSliceFloat64V(rv.Interface().([]float64), fastpathCheckNilFalse, f.e)
  2715. }
  2716. }
  2717. func (_ fastpathT) EncSliceFloat64V(v []float64, checkNil bool, e *Encoder) {
  2718. ee := e.e
  2719. cr := e.cr
  2720. if checkNil && v == nil {
  2721. ee.EncodeNil()
  2722. return
  2723. }
  2724. ee.EncodeArrayStart(len(v))
  2725. for _, v2 := range v {
  2726. if cr != nil {
  2727. cr.sendContainerState(containerArrayElem)
  2728. }
  2729. ee.EncodeFloat64(v2)
  2730. }
  2731. if cr != nil {
  2732. cr.sendContainerState(containerArrayEnd)
  2733. }
  2734. }
  2735. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, checkNil bool, e *Encoder) {
  2736. ee := e.e
  2737. cr := e.cr
  2738. if checkNil && v == nil {
  2739. ee.EncodeNil()
  2740. return
  2741. }
  2742. if len(v)%2 == 1 {
  2743. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2744. return
  2745. }
  2746. ee.EncodeMapStart(len(v) / 2)
  2747. for j, v2 := range v {
  2748. if cr != nil {
  2749. if j%2 == 0 {
  2750. cr.sendContainerState(containerMapKey)
  2751. } else {
  2752. cr.sendContainerState(containerMapValue)
  2753. }
  2754. }
  2755. ee.EncodeFloat64(v2)
  2756. }
  2757. if cr != nil {
  2758. cr.sendContainerState(containerMapEnd)
  2759. }
  2760. }
  2761. func (f *encFnInfo) fastpathEncSliceUintR(rv reflect.Value) {
  2762. if f.ti.mbs {
  2763. fastpathTV.EncAsMapSliceUintV(rv.Interface().([]uint), fastpathCheckNilFalse, f.e)
  2764. } else {
  2765. fastpathTV.EncSliceUintV(rv.Interface().([]uint), fastpathCheckNilFalse, f.e)
  2766. }
  2767. }
  2768. func (_ fastpathT) EncSliceUintV(v []uint, checkNil bool, e *Encoder) {
  2769. ee := e.e
  2770. cr := e.cr
  2771. if checkNil && v == nil {
  2772. ee.EncodeNil()
  2773. return
  2774. }
  2775. ee.EncodeArrayStart(len(v))
  2776. for _, v2 := range v {
  2777. if cr != nil {
  2778. cr.sendContainerState(containerArrayElem)
  2779. }
  2780. ee.EncodeUint(uint64(v2))
  2781. }
  2782. if cr != nil {
  2783. cr.sendContainerState(containerArrayEnd)
  2784. }
  2785. }
  2786. func (_ fastpathT) EncAsMapSliceUintV(v []uint, checkNil bool, e *Encoder) {
  2787. ee := e.e
  2788. cr := e.cr
  2789. if checkNil && v == nil {
  2790. ee.EncodeNil()
  2791. return
  2792. }
  2793. if len(v)%2 == 1 {
  2794. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2795. return
  2796. }
  2797. ee.EncodeMapStart(len(v) / 2)
  2798. for j, v2 := range v {
  2799. if cr != nil {
  2800. if j%2 == 0 {
  2801. cr.sendContainerState(containerMapKey)
  2802. } else {
  2803. cr.sendContainerState(containerMapValue)
  2804. }
  2805. }
  2806. ee.EncodeUint(uint64(v2))
  2807. }
  2808. if cr != nil {
  2809. cr.sendContainerState(containerMapEnd)
  2810. }
  2811. }
  2812. func (f *encFnInfo) fastpathEncSliceUint16R(rv reflect.Value) {
  2813. if f.ti.mbs {
  2814. fastpathTV.EncAsMapSliceUint16V(rv.Interface().([]uint16), fastpathCheckNilFalse, f.e)
  2815. } else {
  2816. fastpathTV.EncSliceUint16V(rv.Interface().([]uint16), fastpathCheckNilFalse, f.e)
  2817. }
  2818. }
  2819. func (_ fastpathT) EncSliceUint16V(v []uint16, checkNil bool, e *Encoder) {
  2820. ee := e.e
  2821. cr := e.cr
  2822. if checkNil && v == nil {
  2823. ee.EncodeNil()
  2824. return
  2825. }
  2826. ee.EncodeArrayStart(len(v))
  2827. for _, v2 := range v {
  2828. if cr != nil {
  2829. cr.sendContainerState(containerArrayElem)
  2830. }
  2831. ee.EncodeUint(uint64(v2))
  2832. }
  2833. if cr != nil {
  2834. cr.sendContainerState(containerArrayEnd)
  2835. }
  2836. }
  2837. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, checkNil bool, e *Encoder) {
  2838. ee := e.e
  2839. cr := e.cr
  2840. if checkNil && v == nil {
  2841. ee.EncodeNil()
  2842. return
  2843. }
  2844. if len(v)%2 == 1 {
  2845. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2846. return
  2847. }
  2848. ee.EncodeMapStart(len(v) / 2)
  2849. for j, v2 := range v {
  2850. if cr != nil {
  2851. if j%2 == 0 {
  2852. cr.sendContainerState(containerMapKey)
  2853. } else {
  2854. cr.sendContainerState(containerMapValue)
  2855. }
  2856. }
  2857. ee.EncodeUint(uint64(v2))
  2858. }
  2859. if cr != nil {
  2860. cr.sendContainerState(containerMapEnd)
  2861. }
  2862. }
  2863. func (f *encFnInfo) fastpathEncSliceUint32R(rv reflect.Value) {
  2864. if f.ti.mbs {
  2865. fastpathTV.EncAsMapSliceUint32V(rv.Interface().([]uint32), fastpathCheckNilFalse, f.e)
  2866. } else {
  2867. fastpathTV.EncSliceUint32V(rv.Interface().([]uint32), fastpathCheckNilFalse, f.e)
  2868. }
  2869. }
  2870. func (_ fastpathT) EncSliceUint32V(v []uint32, checkNil bool, e *Encoder) {
  2871. ee := e.e
  2872. cr := e.cr
  2873. if checkNil && v == nil {
  2874. ee.EncodeNil()
  2875. return
  2876. }
  2877. ee.EncodeArrayStart(len(v))
  2878. for _, v2 := range v {
  2879. if cr != nil {
  2880. cr.sendContainerState(containerArrayElem)
  2881. }
  2882. ee.EncodeUint(uint64(v2))
  2883. }
  2884. if cr != nil {
  2885. cr.sendContainerState(containerArrayEnd)
  2886. }
  2887. }
  2888. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, checkNil bool, e *Encoder) {
  2889. ee := e.e
  2890. cr := e.cr
  2891. if checkNil && v == nil {
  2892. ee.EncodeNil()
  2893. return
  2894. }
  2895. if len(v)%2 == 1 {
  2896. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2897. return
  2898. }
  2899. ee.EncodeMapStart(len(v) / 2)
  2900. for j, v2 := range v {
  2901. if cr != nil {
  2902. if j%2 == 0 {
  2903. cr.sendContainerState(containerMapKey)
  2904. } else {
  2905. cr.sendContainerState(containerMapValue)
  2906. }
  2907. }
  2908. ee.EncodeUint(uint64(v2))
  2909. }
  2910. if cr != nil {
  2911. cr.sendContainerState(containerMapEnd)
  2912. }
  2913. }
  2914. func (f *encFnInfo) fastpathEncSliceUint64R(rv reflect.Value) {
  2915. if f.ti.mbs {
  2916. fastpathTV.EncAsMapSliceUint64V(rv.Interface().([]uint64), fastpathCheckNilFalse, f.e)
  2917. } else {
  2918. fastpathTV.EncSliceUint64V(rv.Interface().([]uint64), fastpathCheckNilFalse, f.e)
  2919. }
  2920. }
  2921. func (_ fastpathT) EncSliceUint64V(v []uint64, checkNil bool, e *Encoder) {
  2922. ee := e.e
  2923. cr := e.cr
  2924. if checkNil && v == nil {
  2925. ee.EncodeNil()
  2926. return
  2927. }
  2928. ee.EncodeArrayStart(len(v))
  2929. for _, v2 := range v {
  2930. if cr != nil {
  2931. cr.sendContainerState(containerArrayElem)
  2932. }
  2933. ee.EncodeUint(uint64(v2))
  2934. }
  2935. if cr != nil {
  2936. cr.sendContainerState(containerArrayEnd)
  2937. }
  2938. }
  2939. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, checkNil bool, e *Encoder) {
  2940. ee := e.e
  2941. cr := e.cr
  2942. if checkNil && v == nil {
  2943. ee.EncodeNil()
  2944. return
  2945. }
  2946. if len(v)%2 == 1 {
  2947. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2948. return
  2949. }
  2950. ee.EncodeMapStart(len(v) / 2)
  2951. for j, v2 := range v {
  2952. if cr != nil {
  2953. if j%2 == 0 {
  2954. cr.sendContainerState(containerMapKey)
  2955. } else {
  2956. cr.sendContainerState(containerMapValue)
  2957. }
  2958. }
  2959. ee.EncodeUint(uint64(v2))
  2960. }
  2961. if cr != nil {
  2962. cr.sendContainerState(containerMapEnd)
  2963. }
  2964. }
  2965. func (f *encFnInfo) fastpathEncSliceUintptrR(rv reflect.Value) {
  2966. if f.ti.mbs {
  2967. fastpathTV.EncAsMapSliceUintptrV(rv.Interface().([]uintptr), fastpathCheckNilFalse, f.e)
  2968. } else {
  2969. fastpathTV.EncSliceUintptrV(rv.Interface().([]uintptr), fastpathCheckNilFalse, f.e)
  2970. }
  2971. }
  2972. func (_ fastpathT) EncSliceUintptrV(v []uintptr, checkNil bool, e *Encoder) {
  2973. ee := e.e
  2974. cr := e.cr
  2975. if checkNil && v == nil {
  2976. ee.EncodeNil()
  2977. return
  2978. }
  2979. ee.EncodeArrayStart(len(v))
  2980. for _, v2 := range v {
  2981. if cr != nil {
  2982. cr.sendContainerState(containerArrayElem)
  2983. }
  2984. e.encode(v2)
  2985. }
  2986. if cr != nil {
  2987. cr.sendContainerState(containerArrayEnd)
  2988. }
  2989. }
  2990. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, checkNil bool, e *Encoder) {
  2991. ee := e.e
  2992. cr := e.cr
  2993. if checkNil && v == nil {
  2994. ee.EncodeNil()
  2995. return
  2996. }
  2997. if len(v)%2 == 1 {
  2998. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2999. return
  3000. }
  3001. ee.EncodeMapStart(len(v) / 2)
  3002. for j, v2 := range v {
  3003. if cr != nil {
  3004. if j%2 == 0 {
  3005. cr.sendContainerState(containerMapKey)
  3006. } else {
  3007. cr.sendContainerState(containerMapValue)
  3008. }
  3009. }
  3010. e.encode(v2)
  3011. }
  3012. if cr != nil {
  3013. cr.sendContainerState(containerMapEnd)
  3014. }
  3015. }
  3016. func (f *encFnInfo) fastpathEncSliceIntR(rv reflect.Value) {
  3017. if f.ti.mbs {
  3018. fastpathTV.EncAsMapSliceIntV(rv.Interface().([]int), fastpathCheckNilFalse, f.e)
  3019. } else {
  3020. fastpathTV.EncSliceIntV(rv.Interface().([]int), fastpathCheckNilFalse, f.e)
  3021. }
  3022. }
  3023. func (_ fastpathT) EncSliceIntV(v []int, checkNil bool, e *Encoder) {
  3024. ee := e.e
  3025. cr := e.cr
  3026. if checkNil && v == nil {
  3027. ee.EncodeNil()
  3028. return
  3029. }
  3030. ee.EncodeArrayStart(len(v))
  3031. for _, v2 := range v {
  3032. if cr != nil {
  3033. cr.sendContainerState(containerArrayElem)
  3034. }
  3035. ee.EncodeInt(int64(v2))
  3036. }
  3037. if cr != nil {
  3038. cr.sendContainerState(containerArrayEnd)
  3039. }
  3040. }
  3041. func (_ fastpathT) EncAsMapSliceIntV(v []int, checkNil bool, e *Encoder) {
  3042. ee := e.e
  3043. cr := e.cr
  3044. if checkNil && v == nil {
  3045. ee.EncodeNil()
  3046. return
  3047. }
  3048. if len(v)%2 == 1 {
  3049. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3050. return
  3051. }
  3052. ee.EncodeMapStart(len(v) / 2)
  3053. for j, v2 := range v {
  3054. if cr != nil {
  3055. if j%2 == 0 {
  3056. cr.sendContainerState(containerMapKey)
  3057. } else {
  3058. cr.sendContainerState(containerMapValue)
  3059. }
  3060. }
  3061. ee.EncodeInt(int64(v2))
  3062. }
  3063. if cr != nil {
  3064. cr.sendContainerState(containerMapEnd)
  3065. }
  3066. }
  3067. func (f *encFnInfo) fastpathEncSliceInt8R(rv reflect.Value) {
  3068. if f.ti.mbs {
  3069. fastpathTV.EncAsMapSliceInt8V(rv.Interface().([]int8), fastpathCheckNilFalse, f.e)
  3070. } else {
  3071. fastpathTV.EncSliceInt8V(rv.Interface().([]int8), fastpathCheckNilFalse, f.e)
  3072. }
  3073. }
  3074. func (_ fastpathT) EncSliceInt8V(v []int8, checkNil bool, e *Encoder) {
  3075. ee := e.e
  3076. cr := e.cr
  3077. if checkNil && v == nil {
  3078. ee.EncodeNil()
  3079. return
  3080. }
  3081. ee.EncodeArrayStart(len(v))
  3082. for _, v2 := range v {
  3083. if cr != nil {
  3084. cr.sendContainerState(containerArrayElem)
  3085. }
  3086. ee.EncodeInt(int64(v2))
  3087. }
  3088. if cr != nil {
  3089. cr.sendContainerState(containerArrayEnd)
  3090. }
  3091. }
  3092. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, checkNil bool, e *Encoder) {
  3093. ee := e.e
  3094. cr := e.cr
  3095. if checkNil && v == nil {
  3096. ee.EncodeNil()
  3097. return
  3098. }
  3099. if len(v)%2 == 1 {
  3100. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3101. return
  3102. }
  3103. ee.EncodeMapStart(len(v) / 2)
  3104. for j, v2 := range v {
  3105. if cr != nil {
  3106. if j%2 == 0 {
  3107. cr.sendContainerState(containerMapKey)
  3108. } else {
  3109. cr.sendContainerState(containerMapValue)
  3110. }
  3111. }
  3112. ee.EncodeInt(int64(v2))
  3113. }
  3114. if cr != nil {
  3115. cr.sendContainerState(containerMapEnd)
  3116. }
  3117. }
  3118. func (f *encFnInfo) fastpathEncSliceInt16R(rv reflect.Value) {
  3119. if f.ti.mbs {
  3120. fastpathTV.EncAsMapSliceInt16V(rv.Interface().([]int16), fastpathCheckNilFalse, f.e)
  3121. } else {
  3122. fastpathTV.EncSliceInt16V(rv.Interface().([]int16), fastpathCheckNilFalse, f.e)
  3123. }
  3124. }
  3125. func (_ fastpathT) EncSliceInt16V(v []int16, checkNil bool, e *Encoder) {
  3126. ee := e.e
  3127. cr := e.cr
  3128. if checkNil && v == nil {
  3129. ee.EncodeNil()
  3130. return
  3131. }
  3132. ee.EncodeArrayStart(len(v))
  3133. for _, v2 := range v {
  3134. if cr != nil {
  3135. cr.sendContainerState(containerArrayElem)
  3136. }
  3137. ee.EncodeInt(int64(v2))
  3138. }
  3139. if cr != nil {
  3140. cr.sendContainerState(containerArrayEnd)
  3141. }
  3142. }
  3143. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, checkNil bool, e *Encoder) {
  3144. ee := e.e
  3145. cr := e.cr
  3146. if checkNil && v == nil {
  3147. ee.EncodeNil()
  3148. return
  3149. }
  3150. if len(v)%2 == 1 {
  3151. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3152. return
  3153. }
  3154. ee.EncodeMapStart(len(v) / 2)
  3155. for j, v2 := range v {
  3156. if cr != nil {
  3157. if j%2 == 0 {
  3158. cr.sendContainerState(containerMapKey)
  3159. } else {
  3160. cr.sendContainerState(containerMapValue)
  3161. }
  3162. }
  3163. ee.EncodeInt(int64(v2))
  3164. }
  3165. if cr != nil {
  3166. cr.sendContainerState(containerMapEnd)
  3167. }
  3168. }
  3169. func (f *encFnInfo) fastpathEncSliceInt32R(rv reflect.Value) {
  3170. if f.ti.mbs {
  3171. fastpathTV.EncAsMapSliceInt32V(rv.Interface().([]int32), fastpathCheckNilFalse, f.e)
  3172. } else {
  3173. fastpathTV.EncSliceInt32V(rv.Interface().([]int32), fastpathCheckNilFalse, f.e)
  3174. }
  3175. }
  3176. func (_ fastpathT) EncSliceInt32V(v []int32, checkNil bool, e *Encoder) {
  3177. ee := e.e
  3178. cr := e.cr
  3179. if checkNil && v == nil {
  3180. ee.EncodeNil()
  3181. return
  3182. }
  3183. ee.EncodeArrayStart(len(v))
  3184. for _, v2 := range v {
  3185. if cr != nil {
  3186. cr.sendContainerState(containerArrayElem)
  3187. }
  3188. ee.EncodeInt(int64(v2))
  3189. }
  3190. if cr != nil {
  3191. cr.sendContainerState(containerArrayEnd)
  3192. }
  3193. }
  3194. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, checkNil bool, e *Encoder) {
  3195. ee := e.e
  3196. cr := e.cr
  3197. if checkNil && v == nil {
  3198. ee.EncodeNil()
  3199. return
  3200. }
  3201. if len(v)%2 == 1 {
  3202. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3203. return
  3204. }
  3205. ee.EncodeMapStart(len(v) / 2)
  3206. for j, v2 := range v {
  3207. if cr != nil {
  3208. if j%2 == 0 {
  3209. cr.sendContainerState(containerMapKey)
  3210. } else {
  3211. cr.sendContainerState(containerMapValue)
  3212. }
  3213. }
  3214. ee.EncodeInt(int64(v2))
  3215. }
  3216. if cr != nil {
  3217. cr.sendContainerState(containerMapEnd)
  3218. }
  3219. }
  3220. func (f *encFnInfo) fastpathEncSliceInt64R(rv reflect.Value) {
  3221. if f.ti.mbs {
  3222. fastpathTV.EncAsMapSliceInt64V(rv.Interface().([]int64), fastpathCheckNilFalse, f.e)
  3223. } else {
  3224. fastpathTV.EncSliceInt64V(rv.Interface().([]int64), fastpathCheckNilFalse, f.e)
  3225. }
  3226. }
  3227. func (_ fastpathT) EncSliceInt64V(v []int64, checkNil bool, e *Encoder) {
  3228. ee := e.e
  3229. cr := e.cr
  3230. if checkNil && v == nil {
  3231. ee.EncodeNil()
  3232. return
  3233. }
  3234. ee.EncodeArrayStart(len(v))
  3235. for _, v2 := range v {
  3236. if cr != nil {
  3237. cr.sendContainerState(containerArrayElem)
  3238. }
  3239. ee.EncodeInt(int64(v2))
  3240. }
  3241. if cr != nil {
  3242. cr.sendContainerState(containerArrayEnd)
  3243. }
  3244. }
  3245. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, checkNil bool, e *Encoder) {
  3246. ee := e.e
  3247. cr := e.cr
  3248. if checkNil && v == nil {
  3249. ee.EncodeNil()
  3250. return
  3251. }
  3252. if len(v)%2 == 1 {
  3253. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3254. return
  3255. }
  3256. ee.EncodeMapStart(len(v) / 2)
  3257. for j, v2 := range v {
  3258. if cr != nil {
  3259. if j%2 == 0 {
  3260. cr.sendContainerState(containerMapKey)
  3261. } else {
  3262. cr.sendContainerState(containerMapValue)
  3263. }
  3264. }
  3265. ee.EncodeInt(int64(v2))
  3266. }
  3267. if cr != nil {
  3268. cr.sendContainerState(containerMapEnd)
  3269. }
  3270. }
  3271. func (f *encFnInfo) fastpathEncSliceBoolR(rv reflect.Value) {
  3272. if f.ti.mbs {
  3273. fastpathTV.EncAsMapSliceBoolV(rv.Interface().([]bool), fastpathCheckNilFalse, f.e)
  3274. } else {
  3275. fastpathTV.EncSliceBoolV(rv.Interface().([]bool), fastpathCheckNilFalse, f.e)
  3276. }
  3277. }
  3278. func (_ fastpathT) EncSliceBoolV(v []bool, checkNil bool, e *Encoder) {
  3279. ee := e.e
  3280. cr := e.cr
  3281. if checkNil && v == nil {
  3282. ee.EncodeNil()
  3283. return
  3284. }
  3285. ee.EncodeArrayStart(len(v))
  3286. for _, v2 := range v {
  3287. if cr != nil {
  3288. cr.sendContainerState(containerArrayElem)
  3289. }
  3290. ee.EncodeBool(v2)
  3291. }
  3292. if cr != nil {
  3293. cr.sendContainerState(containerArrayEnd)
  3294. }
  3295. }
  3296. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, checkNil bool, e *Encoder) {
  3297. ee := e.e
  3298. cr := e.cr
  3299. if checkNil && v == nil {
  3300. ee.EncodeNil()
  3301. return
  3302. }
  3303. if len(v)%2 == 1 {
  3304. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3305. return
  3306. }
  3307. ee.EncodeMapStart(len(v) / 2)
  3308. for j, v2 := range v {
  3309. if cr != nil {
  3310. if j%2 == 0 {
  3311. cr.sendContainerState(containerMapKey)
  3312. } else {
  3313. cr.sendContainerState(containerMapValue)
  3314. }
  3315. }
  3316. ee.EncodeBool(v2)
  3317. }
  3318. if cr != nil {
  3319. cr.sendContainerState(containerMapEnd)
  3320. }
  3321. }
  3322. func (f *encFnInfo) fastpathEncMapIntfIntfR(rv reflect.Value) {
  3323. fastpathTV.EncMapIntfIntfV(rv.Interface().(map[interface{}]interface{}), fastpathCheckNilFalse, f.e)
  3324. }
  3325. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, e *Encoder) {
  3326. ee := e.e
  3327. cr := e.cr
  3328. if checkNil && v == nil {
  3329. ee.EncodeNil()
  3330. return
  3331. }
  3332. ee.EncodeMapStart(len(v))
  3333. if e.h.Canonical {
  3334. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3335. e2 := NewEncoderBytes(&mksv, e.hh)
  3336. v2 := make([]bytesI, len(v))
  3337. var i, l int
  3338. var vp *bytesI
  3339. for k2, _ := range v {
  3340. l = len(mksv)
  3341. e2.MustEncode(k2)
  3342. vp = &v2[i]
  3343. vp.v = mksv[l:]
  3344. vp.i = k2
  3345. i++
  3346. }
  3347. sort.Sort(bytesISlice(v2))
  3348. for j := range v2 {
  3349. if cr != nil {
  3350. cr.sendContainerState(containerMapKey)
  3351. }
  3352. e.asis(v2[j].v)
  3353. if cr != nil {
  3354. cr.sendContainerState(containerMapValue)
  3355. }
  3356. e.encode(v[v2[j].i])
  3357. }
  3358. } else {
  3359. for k2, v2 := range v {
  3360. if cr != nil {
  3361. cr.sendContainerState(containerMapKey)
  3362. }
  3363. e.encode(k2)
  3364. if cr != nil {
  3365. cr.sendContainerState(containerMapValue)
  3366. }
  3367. e.encode(v2)
  3368. }
  3369. }
  3370. if cr != nil {
  3371. cr.sendContainerState(containerMapEnd)
  3372. }
  3373. }
  3374. func (f *encFnInfo) fastpathEncMapIntfStringR(rv reflect.Value) {
  3375. fastpathTV.EncMapIntfStringV(rv.Interface().(map[interface{}]string), fastpathCheckNilFalse, f.e)
  3376. }
  3377. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, checkNil bool, e *Encoder) {
  3378. ee := e.e
  3379. cr := e.cr
  3380. if checkNil && v == nil {
  3381. ee.EncodeNil()
  3382. return
  3383. }
  3384. ee.EncodeMapStart(len(v))
  3385. if e.h.Canonical {
  3386. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3387. e2 := NewEncoderBytes(&mksv, e.hh)
  3388. v2 := make([]bytesI, len(v))
  3389. var i, l int
  3390. var vp *bytesI
  3391. for k2, _ := range v {
  3392. l = len(mksv)
  3393. e2.MustEncode(k2)
  3394. vp = &v2[i]
  3395. vp.v = mksv[l:]
  3396. vp.i = k2
  3397. i++
  3398. }
  3399. sort.Sort(bytesISlice(v2))
  3400. for j := range v2 {
  3401. if cr != nil {
  3402. cr.sendContainerState(containerMapKey)
  3403. }
  3404. e.asis(v2[j].v)
  3405. if cr != nil {
  3406. cr.sendContainerState(containerMapValue)
  3407. }
  3408. e.encode(v[v2[j].i])
  3409. }
  3410. } else {
  3411. for k2, v2 := range v {
  3412. if cr != nil {
  3413. cr.sendContainerState(containerMapKey)
  3414. }
  3415. e.encode(k2)
  3416. if cr != nil {
  3417. cr.sendContainerState(containerMapValue)
  3418. }
  3419. ee.EncodeString(c_UTF8, v2)
  3420. }
  3421. }
  3422. if cr != nil {
  3423. cr.sendContainerState(containerMapEnd)
  3424. }
  3425. }
  3426. func (f *encFnInfo) fastpathEncMapIntfUintR(rv reflect.Value) {
  3427. fastpathTV.EncMapIntfUintV(rv.Interface().(map[interface{}]uint), fastpathCheckNilFalse, f.e)
  3428. }
  3429. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, checkNil bool, e *Encoder) {
  3430. ee := e.e
  3431. cr := e.cr
  3432. if checkNil && v == nil {
  3433. ee.EncodeNil()
  3434. return
  3435. }
  3436. ee.EncodeMapStart(len(v))
  3437. if e.h.Canonical {
  3438. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3439. e2 := NewEncoderBytes(&mksv, e.hh)
  3440. v2 := make([]bytesI, len(v))
  3441. var i, l int
  3442. var vp *bytesI
  3443. for k2, _ := range v {
  3444. l = len(mksv)
  3445. e2.MustEncode(k2)
  3446. vp = &v2[i]
  3447. vp.v = mksv[l:]
  3448. vp.i = k2
  3449. i++
  3450. }
  3451. sort.Sort(bytesISlice(v2))
  3452. for j := range v2 {
  3453. if cr != nil {
  3454. cr.sendContainerState(containerMapKey)
  3455. }
  3456. e.asis(v2[j].v)
  3457. if cr != nil {
  3458. cr.sendContainerState(containerMapValue)
  3459. }
  3460. e.encode(v[v2[j].i])
  3461. }
  3462. } else {
  3463. for k2, v2 := range v {
  3464. if cr != nil {
  3465. cr.sendContainerState(containerMapKey)
  3466. }
  3467. e.encode(k2)
  3468. if cr != nil {
  3469. cr.sendContainerState(containerMapValue)
  3470. }
  3471. ee.EncodeUint(uint64(v2))
  3472. }
  3473. }
  3474. if cr != nil {
  3475. cr.sendContainerState(containerMapEnd)
  3476. }
  3477. }
  3478. func (f *encFnInfo) fastpathEncMapIntfUint8R(rv reflect.Value) {
  3479. fastpathTV.EncMapIntfUint8V(rv.Interface().(map[interface{}]uint8), fastpathCheckNilFalse, f.e)
  3480. }
  3481. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, checkNil bool, e *Encoder) {
  3482. ee := e.e
  3483. cr := e.cr
  3484. if checkNil && v == nil {
  3485. ee.EncodeNil()
  3486. return
  3487. }
  3488. ee.EncodeMapStart(len(v))
  3489. if e.h.Canonical {
  3490. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3491. e2 := NewEncoderBytes(&mksv, e.hh)
  3492. v2 := make([]bytesI, len(v))
  3493. var i, l int
  3494. var vp *bytesI
  3495. for k2, _ := range v {
  3496. l = len(mksv)
  3497. e2.MustEncode(k2)
  3498. vp = &v2[i]
  3499. vp.v = mksv[l:]
  3500. vp.i = k2
  3501. i++
  3502. }
  3503. sort.Sort(bytesISlice(v2))
  3504. for j := range v2 {
  3505. if cr != nil {
  3506. cr.sendContainerState(containerMapKey)
  3507. }
  3508. e.asis(v2[j].v)
  3509. if cr != nil {
  3510. cr.sendContainerState(containerMapValue)
  3511. }
  3512. e.encode(v[v2[j].i])
  3513. }
  3514. } else {
  3515. for k2, v2 := range v {
  3516. if cr != nil {
  3517. cr.sendContainerState(containerMapKey)
  3518. }
  3519. e.encode(k2)
  3520. if cr != nil {
  3521. cr.sendContainerState(containerMapValue)
  3522. }
  3523. ee.EncodeUint(uint64(v2))
  3524. }
  3525. }
  3526. if cr != nil {
  3527. cr.sendContainerState(containerMapEnd)
  3528. }
  3529. }
  3530. func (f *encFnInfo) fastpathEncMapIntfUint16R(rv reflect.Value) {
  3531. fastpathTV.EncMapIntfUint16V(rv.Interface().(map[interface{}]uint16), fastpathCheckNilFalse, f.e)
  3532. }
  3533. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, checkNil bool, e *Encoder) {
  3534. ee := e.e
  3535. cr := e.cr
  3536. if checkNil && v == nil {
  3537. ee.EncodeNil()
  3538. return
  3539. }
  3540. ee.EncodeMapStart(len(v))
  3541. if e.h.Canonical {
  3542. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3543. e2 := NewEncoderBytes(&mksv, e.hh)
  3544. v2 := make([]bytesI, len(v))
  3545. var i, l int
  3546. var vp *bytesI
  3547. for k2, _ := range v {
  3548. l = len(mksv)
  3549. e2.MustEncode(k2)
  3550. vp = &v2[i]
  3551. vp.v = mksv[l:]
  3552. vp.i = k2
  3553. i++
  3554. }
  3555. sort.Sort(bytesISlice(v2))
  3556. for j := range v2 {
  3557. if cr != nil {
  3558. cr.sendContainerState(containerMapKey)
  3559. }
  3560. e.asis(v2[j].v)
  3561. if cr != nil {
  3562. cr.sendContainerState(containerMapValue)
  3563. }
  3564. e.encode(v[v2[j].i])
  3565. }
  3566. } else {
  3567. for k2, v2 := range v {
  3568. if cr != nil {
  3569. cr.sendContainerState(containerMapKey)
  3570. }
  3571. e.encode(k2)
  3572. if cr != nil {
  3573. cr.sendContainerState(containerMapValue)
  3574. }
  3575. ee.EncodeUint(uint64(v2))
  3576. }
  3577. }
  3578. if cr != nil {
  3579. cr.sendContainerState(containerMapEnd)
  3580. }
  3581. }
  3582. func (f *encFnInfo) fastpathEncMapIntfUint32R(rv reflect.Value) {
  3583. fastpathTV.EncMapIntfUint32V(rv.Interface().(map[interface{}]uint32), fastpathCheckNilFalse, f.e)
  3584. }
  3585. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, checkNil bool, e *Encoder) {
  3586. ee := e.e
  3587. cr := e.cr
  3588. if checkNil && v == nil {
  3589. ee.EncodeNil()
  3590. return
  3591. }
  3592. ee.EncodeMapStart(len(v))
  3593. if e.h.Canonical {
  3594. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3595. e2 := NewEncoderBytes(&mksv, e.hh)
  3596. v2 := make([]bytesI, len(v))
  3597. var i, l int
  3598. var vp *bytesI
  3599. for k2, _ := range v {
  3600. l = len(mksv)
  3601. e2.MustEncode(k2)
  3602. vp = &v2[i]
  3603. vp.v = mksv[l:]
  3604. vp.i = k2
  3605. i++
  3606. }
  3607. sort.Sort(bytesISlice(v2))
  3608. for j := range v2 {
  3609. if cr != nil {
  3610. cr.sendContainerState(containerMapKey)
  3611. }
  3612. e.asis(v2[j].v)
  3613. if cr != nil {
  3614. cr.sendContainerState(containerMapValue)
  3615. }
  3616. e.encode(v[v2[j].i])
  3617. }
  3618. } else {
  3619. for k2, v2 := range v {
  3620. if cr != nil {
  3621. cr.sendContainerState(containerMapKey)
  3622. }
  3623. e.encode(k2)
  3624. if cr != nil {
  3625. cr.sendContainerState(containerMapValue)
  3626. }
  3627. ee.EncodeUint(uint64(v2))
  3628. }
  3629. }
  3630. if cr != nil {
  3631. cr.sendContainerState(containerMapEnd)
  3632. }
  3633. }
  3634. func (f *encFnInfo) fastpathEncMapIntfUint64R(rv reflect.Value) {
  3635. fastpathTV.EncMapIntfUint64V(rv.Interface().(map[interface{}]uint64), fastpathCheckNilFalse, f.e)
  3636. }
  3637. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, checkNil bool, e *Encoder) {
  3638. ee := e.e
  3639. cr := e.cr
  3640. if checkNil && v == nil {
  3641. ee.EncodeNil()
  3642. return
  3643. }
  3644. ee.EncodeMapStart(len(v))
  3645. if e.h.Canonical {
  3646. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3647. e2 := NewEncoderBytes(&mksv, e.hh)
  3648. v2 := make([]bytesI, len(v))
  3649. var i, l int
  3650. var vp *bytesI
  3651. for k2, _ := range v {
  3652. l = len(mksv)
  3653. e2.MustEncode(k2)
  3654. vp = &v2[i]
  3655. vp.v = mksv[l:]
  3656. vp.i = k2
  3657. i++
  3658. }
  3659. sort.Sort(bytesISlice(v2))
  3660. for j := range v2 {
  3661. if cr != nil {
  3662. cr.sendContainerState(containerMapKey)
  3663. }
  3664. e.asis(v2[j].v)
  3665. if cr != nil {
  3666. cr.sendContainerState(containerMapValue)
  3667. }
  3668. e.encode(v[v2[j].i])
  3669. }
  3670. } else {
  3671. for k2, v2 := range v {
  3672. if cr != nil {
  3673. cr.sendContainerState(containerMapKey)
  3674. }
  3675. e.encode(k2)
  3676. if cr != nil {
  3677. cr.sendContainerState(containerMapValue)
  3678. }
  3679. ee.EncodeUint(uint64(v2))
  3680. }
  3681. }
  3682. if cr != nil {
  3683. cr.sendContainerState(containerMapEnd)
  3684. }
  3685. }
  3686. func (f *encFnInfo) fastpathEncMapIntfUintptrR(rv reflect.Value) {
  3687. fastpathTV.EncMapIntfUintptrV(rv.Interface().(map[interface{}]uintptr), fastpathCheckNilFalse, f.e)
  3688. }
  3689. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, checkNil bool, e *Encoder) {
  3690. ee := e.e
  3691. cr := e.cr
  3692. if checkNil && v == nil {
  3693. ee.EncodeNil()
  3694. return
  3695. }
  3696. ee.EncodeMapStart(len(v))
  3697. if e.h.Canonical {
  3698. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3699. e2 := NewEncoderBytes(&mksv, e.hh)
  3700. v2 := make([]bytesI, len(v))
  3701. var i, l int
  3702. var vp *bytesI
  3703. for k2, _ := range v {
  3704. l = len(mksv)
  3705. e2.MustEncode(k2)
  3706. vp = &v2[i]
  3707. vp.v = mksv[l:]
  3708. vp.i = k2
  3709. i++
  3710. }
  3711. sort.Sort(bytesISlice(v2))
  3712. for j := range v2 {
  3713. if cr != nil {
  3714. cr.sendContainerState(containerMapKey)
  3715. }
  3716. e.asis(v2[j].v)
  3717. if cr != nil {
  3718. cr.sendContainerState(containerMapValue)
  3719. }
  3720. e.encode(v[v2[j].i])
  3721. }
  3722. } else {
  3723. for k2, v2 := range v {
  3724. if cr != nil {
  3725. cr.sendContainerState(containerMapKey)
  3726. }
  3727. e.encode(k2)
  3728. if cr != nil {
  3729. cr.sendContainerState(containerMapValue)
  3730. }
  3731. e.encode(v2)
  3732. }
  3733. }
  3734. if cr != nil {
  3735. cr.sendContainerState(containerMapEnd)
  3736. }
  3737. }
  3738. func (f *encFnInfo) fastpathEncMapIntfIntR(rv reflect.Value) {
  3739. fastpathTV.EncMapIntfIntV(rv.Interface().(map[interface{}]int), fastpathCheckNilFalse, f.e)
  3740. }
  3741. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, checkNil bool, e *Encoder) {
  3742. ee := e.e
  3743. cr := e.cr
  3744. if checkNil && v == nil {
  3745. ee.EncodeNil()
  3746. return
  3747. }
  3748. ee.EncodeMapStart(len(v))
  3749. if e.h.Canonical {
  3750. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3751. e2 := NewEncoderBytes(&mksv, e.hh)
  3752. v2 := make([]bytesI, len(v))
  3753. var i, l int
  3754. var vp *bytesI
  3755. for k2, _ := range v {
  3756. l = len(mksv)
  3757. e2.MustEncode(k2)
  3758. vp = &v2[i]
  3759. vp.v = mksv[l:]
  3760. vp.i = k2
  3761. i++
  3762. }
  3763. sort.Sort(bytesISlice(v2))
  3764. for j := range v2 {
  3765. if cr != nil {
  3766. cr.sendContainerState(containerMapKey)
  3767. }
  3768. e.asis(v2[j].v)
  3769. if cr != nil {
  3770. cr.sendContainerState(containerMapValue)
  3771. }
  3772. e.encode(v[v2[j].i])
  3773. }
  3774. } else {
  3775. for k2, v2 := range v {
  3776. if cr != nil {
  3777. cr.sendContainerState(containerMapKey)
  3778. }
  3779. e.encode(k2)
  3780. if cr != nil {
  3781. cr.sendContainerState(containerMapValue)
  3782. }
  3783. ee.EncodeInt(int64(v2))
  3784. }
  3785. }
  3786. if cr != nil {
  3787. cr.sendContainerState(containerMapEnd)
  3788. }
  3789. }
  3790. func (f *encFnInfo) fastpathEncMapIntfInt8R(rv reflect.Value) {
  3791. fastpathTV.EncMapIntfInt8V(rv.Interface().(map[interface{}]int8), fastpathCheckNilFalse, f.e)
  3792. }
  3793. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, checkNil bool, e *Encoder) {
  3794. ee := e.e
  3795. cr := e.cr
  3796. if checkNil && v == nil {
  3797. ee.EncodeNil()
  3798. return
  3799. }
  3800. ee.EncodeMapStart(len(v))
  3801. if e.h.Canonical {
  3802. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3803. e2 := NewEncoderBytes(&mksv, e.hh)
  3804. v2 := make([]bytesI, len(v))
  3805. var i, l int
  3806. var vp *bytesI
  3807. for k2, _ := range v {
  3808. l = len(mksv)
  3809. e2.MustEncode(k2)
  3810. vp = &v2[i]
  3811. vp.v = mksv[l:]
  3812. vp.i = k2
  3813. i++
  3814. }
  3815. sort.Sort(bytesISlice(v2))
  3816. for j := range v2 {
  3817. if cr != nil {
  3818. cr.sendContainerState(containerMapKey)
  3819. }
  3820. e.asis(v2[j].v)
  3821. if cr != nil {
  3822. cr.sendContainerState(containerMapValue)
  3823. }
  3824. e.encode(v[v2[j].i])
  3825. }
  3826. } else {
  3827. for k2, v2 := range v {
  3828. if cr != nil {
  3829. cr.sendContainerState(containerMapKey)
  3830. }
  3831. e.encode(k2)
  3832. if cr != nil {
  3833. cr.sendContainerState(containerMapValue)
  3834. }
  3835. ee.EncodeInt(int64(v2))
  3836. }
  3837. }
  3838. if cr != nil {
  3839. cr.sendContainerState(containerMapEnd)
  3840. }
  3841. }
  3842. func (f *encFnInfo) fastpathEncMapIntfInt16R(rv reflect.Value) {
  3843. fastpathTV.EncMapIntfInt16V(rv.Interface().(map[interface{}]int16), fastpathCheckNilFalse, f.e)
  3844. }
  3845. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, checkNil bool, e *Encoder) {
  3846. ee := e.e
  3847. cr := e.cr
  3848. if checkNil && v == nil {
  3849. ee.EncodeNil()
  3850. return
  3851. }
  3852. ee.EncodeMapStart(len(v))
  3853. if e.h.Canonical {
  3854. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3855. e2 := NewEncoderBytes(&mksv, e.hh)
  3856. v2 := make([]bytesI, len(v))
  3857. var i, l int
  3858. var vp *bytesI
  3859. for k2, _ := range v {
  3860. l = len(mksv)
  3861. e2.MustEncode(k2)
  3862. vp = &v2[i]
  3863. vp.v = mksv[l:]
  3864. vp.i = k2
  3865. i++
  3866. }
  3867. sort.Sort(bytesISlice(v2))
  3868. for j := range v2 {
  3869. if cr != nil {
  3870. cr.sendContainerState(containerMapKey)
  3871. }
  3872. e.asis(v2[j].v)
  3873. if cr != nil {
  3874. cr.sendContainerState(containerMapValue)
  3875. }
  3876. e.encode(v[v2[j].i])
  3877. }
  3878. } else {
  3879. for k2, v2 := range v {
  3880. if cr != nil {
  3881. cr.sendContainerState(containerMapKey)
  3882. }
  3883. e.encode(k2)
  3884. if cr != nil {
  3885. cr.sendContainerState(containerMapValue)
  3886. }
  3887. ee.EncodeInt(int64(v2))
  3888. }
  3889. }
  3890. if cr != nil {
  3891. cr.sendContainerState(containerMapEnd)
  3892. }
  3893. }
  3894. func (f *encFnInfo) fastpathEncMapIntfInt32R(rv reflect.Value) {
  3895. fastpathTV.EncMapIntfInt32V(rv.Interface().(map[interface{}]int32), fastpathCheckNilFalse, f.e)
  3896. }
  3897. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, checkNil bool, e *Encoder) {
  3898. ee := e.e
  3899. cr := e.cr
  3900. if checkNil && v == nil {
  3901. ee.EncodeNil()
  3902. return
  3903. }
  3904. ee.EncodeMapStart(len(v))
  3905. if e.h.Canonical {
  3906. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3907. e2 := NewEncoderBytes(&mksv, e.hh)
  3908. v2 := make([]bytesI, len(v))
  3909. var i, l int
  3910. var vp *bytesI
  3911. for k2, _ := range v {
  3912. l = len(mksv)
  3913. e2.MustEncode(k2)
  3914. vp = &v2[i]
  3915. vp.v = mksv[l:]
  3916. vp.i = k2
  3917. i++
  3918. }
  3919. sort.Sort(bytesISlice(v2))
  3920. for j := range v2 {
  3921. if cr != nil {
  3922. cr.sendContainerState(containerMapKey)
  3923. }
  3924. e.asis(v2[j].v)
  3925. if cr != nil {
  3926. cr.sendContainerState(containerMapValue)
  3927. }
  3928. e.encode(v[v2[j].i])
  3929. }
  3930. } else {
  3931. for k2, v2 := range v {
  3932. if cr != nil {
  3933. cr.sendContainerState(containerMapKey)
  3934. }
  3935. e.encode(k2)
  3936. if cr != nil {
  3937. cr.sendContainerState(containerMapValue)
  3938. }
  3939. ee.EncodeInt(int64(v2))
  3940. }
  3941. }
  3942. if cr != nil {
  3943. cr.sendContainerState(containerMapEnd)
  3944. }
  3945. }
  3946. func (f *encFnInfo) fastpathEncMapIntfInt64R(rv reflect.Value) {
  3947. fastpathTV.EncMapIntfInt64V(rv.Interface().(map[interface{}]int64), fastpathCheckNilFalse, f.e)
  3948. }
  3949. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, checkNil bool, e *Encoder) {
  3950. ee := e.e
  3951. cr := e.cr
  3952. if checkNil && v == nil {
  3953. ee.EncodeNil()
  3954. return
  3955. }
  3956. ee.EncodeMapStart(len(v))
  3957. if e.h.Canonical {
  3958. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3959. e2 := NewEncoderBytes(&mksv, e.hh)
  3960. v2 := make([]bytesI, len(v))
  3961. var i, l int
  3962. var vp *bytesI
  3963. for k2, _ := range v {
  3964. l = len(mksv)
  3965. e2.MustEncode(k2)
  3966. vp = &v2[i]
  3967. vp.v = mksv[l:]
  3968. vp.i = k2
  3969. i++
  3970. }
  3971. sort.Sort(bytesISlice(v2))
  3972. for j := range v2 {
  3973. if cr != nil {
  3974. cr.sendContainerState(containerMapKey)
  3975. }
  3976. e.asis(v2[j].v)
  3977. if cr != nil {
  3978. cr.sendContainerState(containerMapValue)
  3979. }
  3980. e.encode(v[v2[j].i])
  3981. }
  3982. } else {
  3983. for k2, v2 := range v {
  3984. if cr != nil {
  3985. cr.sendContainerState(containerMapKey)
  3986. }
  3987. e.encode(k2)
  3988. if cr != nil {
  3989. cr.sendContainerState(containerMapValue)
  3990. }
  3991. ee.EncodeInt(int64(v2))
  3992. }
  3993. }
  3994. if cr != nil {
  3995. cr.sendContainerState(containerMapEnd)
  3996. }
  3997. }
  3998. func (f *encFnInfo) fastpathEncMapIntfFloat32R(rv reflect.Value) {
  3999. fastpathTV.EncMapIntfFloat32V(rv.Interface().(map[interface{}]float32), fastpathCheckNilFalse, f.e)
  4000. }
  4001. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, checkNil bool, e *Encoder) {
  4002. ee := e.e
  4003. cr := e.cr
  4004. if checkNil && v == nil {
  4005. ee.EncodeNil()
  4006. return
  4007. }
  4008. ee.EncodeMapStart(len(v))
  4009. if e.h.Canonical {
  4010. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  4011. e2 := NewEncoderBytes(&mksv, e.hh)
  4012. v2 := make([]bytesI, len(v))
  4013. var i, l int
  4014. var vp *bytesI
  4015. for k2, _ := range v {
  4016. l = len(mksv)
  4017. e2.MustEncode(k2)
  4018. vp = &v2[i]
  4019. vp.v = mksv[l:]
  4020. vp.i = k2
  4021. i++
  4022. }
  4023. sort.Sort(bytesISlice(v2))
  4024. for j := range v2 {
  4025. if cr != nil {
  4026. cr.sendContainerState(containerMapKey)
  4027. }
  4028. e.asis(v2[j].v)
  4029. if cr != nil {
  4030. cr.sendContainerState(containerMapValue)
  4031. }
  4032. e.encode(v[v2[j].i])
  4033. }
  4034. } else {
  4035. for k2, v2 := range v {
  4036. if cr != nil {
  4037. cr.sendContainerState(containerMapKey)
  4038. }
  4039. e.encode(k2)
  4040. if cr != nil {
  4041. cr.sendContainerState(containerMapValue)
  4042. }
  4043. ee.EncodeFloat32(v2)
  4044. }
  4045. }
  4046. if cr != nil {
  4047. cr.sendContainerState(containerMapEnd)
  4048. }
  4049. }
  4050. func (f *encFnInfo) fastpathEncMapIntfFloat64R(rv reflect.Value) {
  4051. fastpathTV.EncMapIntfFloat64V(rv.Interface().(map[interface{}]float64), fastpathCheckNilFalse, f.e)
  4052. }
  4053. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, checkNil bool, e *Encoder) {
  4054. ee := e.e
  4055. cr := e.cr
  4056. if checkNil && v == nil {
  4057. ee.EncodeNil()
  4058. return
  4059. }
  4060. ee.EncodeMapStart(len(v))
  4061. if e.h.Canonical {
  4062. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  4063. e2 := NewEncoderBytes(&mksv, e.hh)
  4064. v2 := make([]bytesI, len(v))
  4065. var i, l int
  4066. var vp *bytesI
  4067. for k2, _ := range v {
  4068. l = len(mksv)
  4069. e2.MustEncode(k2)
  4070. vp = &v2[i]
  4071. vp.v = mksv[l:]
  4072. vp.i = k2
  4073. i++
  4074. }
  4075. sort.Sort(bytesISlice(v2))
  4076. for j := range v2 {
  4077. if cr != nil {
  4078. cr.sendContainerState(containerMapKey)
  4079. }
  4080. e.asis(v2[j].v)
  4081. if cr != nil {
  4082. cr.sendContainerState(containerMapValue)
  4083. }
  4084. e.encode(v[v2[j].i])
  4085. }
  4086. } else {
  4087. for k2, v2 := range v {
  4088. if cr != nil {
  4089. cr.sendContainerState(containerMapKey)
  4090. }
  4091. e.encode(k2)
  4092. if cr != nil {
  4093. cr.sendContainerState(containerMapValue)
  4094. }
  4095. ee.EncodeFloat64(v2)
  4096. }
  4097. }
  4098. if cr != nil {
  4099. cr.sendContainerState(containerMapEnd)
  4100. }
  4101. }
  4102. func (f *encFnInfo) fastpathEncMapIntfBoolR(rv reflect.Value) {
  4103. fastpathTV.EncMapIntfBoolV(rv.Interface().(map[interface{}]bool), fastpathCheckNilFalse, f.e)
  4104. }
  4105. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, checkNil bool, e *Encoder) {
  4106. ee := e.e
  4107. cr := e.cr
  4108. if checkNil && v == nil {
  4109. ee.EncodeNil()
  4110. return
  4111. }
  4112. ee.EncodeMapStart(len(v))
  4113. if e.h.Canonical {
  4114. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  4115. e2 := NewEncoderBytes(&mksv, e.hh)
  4116. v2 := make([]bytesI, len(v))
  4117. var i, l int
  4118. var vp *bytesI
  4119. for k2, _ := range v {
  4120. l = len(mksv)
  4121. e2.MustEncode(k2)
  4122. vp = &v2[i]
  4123. vp.v = mksv[l:]
  4124. vp.i = k2
  4125. i++
  4126. }
  4127. sort.Sort(bytesISlice(v2))
  4128. for j := range v2 {
  4129. if cr != nil {
  4130. cr.sendContainerState(containerMapKey)
  4131. }
  4132. e.asis(v2[j].v)
  4133. if cr != nil {
  4134. cr.sendContainerState(containerMapValue)
  4135. }
  4136. e.encode(v[v2[j].i])
  4137. }
  4138. } else {
  4139. for k2, v2 := range v {
  4140. if cr != nil {
  4141. cr.sendContainerState(containerMapKey)
  4142. }
  4143. e.encode(k2)
  4144. if cr != nil {
  4145. cr.sendContainerState(containerMapValue)
  4146. }
  4147. ee.EncodeBool(v2)
  4148. }
  4149. }
  4150. if cr != nil {
  4151. cr.sendContainerState(containerMapEnd)
  4152. }
  4153. }
  4154. func (f *encFnInfo) fastpathEncMapStringIntfR(rv reflect.Value) {
  4155. fastpathTV.EncMapStringIntfV(rv.Interface().(map[string]interface{}), fastpathCheckNilFalse, f.e)
  4156. }
  4157. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, checkNil bool, e *Encoder) {
  4158. ee := e.e
  4159. cr := e.cr
  4160. if checkNil && v == nil {
  4161. ee.EncodeNil()
  4162. return
  4163. }
  4164. ee.EncodeMapStart(len(v))
  4165. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4166. if e.h.Canonical {
  4167. v2 := make([]string, len(v))
  4168. var i int
  4169. for k, _ := range v {
  4170. v2[i] = string(k)
  4171. i++
  4172. }
  4173. sort.Sort(stringSlice(v2))
  4174. for _, k2 := range v2 {
  4175. if cr != nil {
  4176. cr.sendContainerState(containerMapKey)
  4177. }
  4178. if asSymbols {
  4179. ee.EncodeSymbol(k2)
  4180. } else {
  4181. ee.EncodeString(c_UTF8, k2)
  4182. }
  4183. if cr != nil {
  4184. cr.sendContainerState(containerMapValue)
  4185. }
  4186. e.encode(v[string(k2)])
  4187. }
  4188. } else {
  4189. for k2, v2 := range v {
  4190. if cr != nil {
  4191. cr.sendContainerState(containerMapKey)
  4192. }
  4193. if asSymbols {
  4194. ee.EncodeSymbol(k2)
  4195. } else {
  4196. ee.EncodeString(c_UTF8, k2)
  4197. }
  4198. if cr != nil {
  4199. cr.sendContainerState(containerMapValue)
  4200. }
  4201. e.encode(v2)
  4202. }
  4203. }
  4204. if cr != nil {
  4205. cr.sendContainerState(containerMapEnd)
  4206. }
  4207. }
  4208. func (f *encFnInfo) fastpathEncMapStringStringR(rv reflect.Value) {
  4209. fastpathTV.EncMapStringStringV(rv.Interface().(map[string]string), fastpathCheckNilFalse, f.e)
  4210. }
  4211. func (_ fastpathT) EncMapStringStringV(v map[string]string, checkNil bool, e *Encoder) {
  4212. ee := e.e
  4213. cr := e.cr
  4214. if checkNil && v == nil {
  4215. ee.EncodeNil()
  4216. return
  4217. }
  4218. ee.EncodeMapStart(len(v))
  4219. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4220. if e.h.Canonical {
  4221. v2 := make([]string, len(v))
  4222. var i int
  4223. for k, _ := range v {
  4224. v2[i] = string(k)
  4225. i++
  4226. }
  4227. sort.Sort(stringSlice(v2))
  4228. for _, k2 := range v2 {
  4229. if cr != nil {
  4230. cr.sendContainerState(containerMapKey)
  4231. }
  4232. if asSymbols {
  4233. ee.EncodeSymbol(k2)
  4234. } else {
  4235. ee.EncodeString(c_UTF8, k2)
  4236. }
  4237. if cr != nil {
  4238. cr.sendContainerState(containerMapValue)
  4239. }
  4240. ee.EncodeString(c_UTF8, v[string(k2)])
  4241. }
  4242. } else {
  4243. for k2, v2 := range v {
  4244. if cr != nil {
  4245. cr.sendContainerState(containerMapKey)
  4246. }
  4247. if asSymbols {
  4248. ee.EncodeSymbol(k2)
  4249. } else {
  4250. ee.EncodeString(c_UTF8, k2)
  4251. }
  4252. if cr != nil {
  4253. cr.sendContainerState(containerMapValue)
  4254. }
  4255. ee.EncodeString(c_UTF8, v2)
  4256. }
  4257. }
  4258. if cr != nil {
  4259. cr.sendContainerState(containerMapEnd)
  4260. }
  4261. }
  4262. func (f *encFnInfo) fastpathEncMapStringUintR(rv reflect.Value) {
  4263. fastpathTV.EncMapStringUintV(rv.Interface().(map[string]uint), fastpathCheckNilFalse, f.e)
  4264. }
  4265. func (_ fastpathT) EncMapStringUintV(v map[string]uint, checkNil bool, e *Encoder) {
  4266. ee := e.e
  4267. cr := e.cr
  4268. if checkNil && v == nil {
  4269. ee.EncodeNil()
  4270. return
  4271. }
  4272. ee.EncodeMapStart(len(v))
  4273. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4274. if e.h.Canonical {
  4275. v2 := make([]string, len(v))
  4276. var i int
  4277. for k, _ := range v {
  4278. v2[i] = string(k)
  4279. i++
  4280. }
  4281. sort.Sort(stringSlice(v2))
  4282. for _, k2 := range v2 {
  4283. if cr != nil {
  4284. cr.sendContainerState(containerMapKey)
  4285. }
  4286. if asSymbols {
  4287. ee.EncodeSymbol(k2)
  4288. } else {
  4289. ee.EncodeString(c_UTF8, k2)
  4290. }
  4291. if cr != nil {
  4292. cr.sendContainerState(containerMapValue)
  4293. }
  4294. ee.EncodeUint(uint64(v[string(k2)]))
  4295. }
  4296. } else {
  4297. for k2, v2 := range v {
  4298. if cr != nil {
  4299. cr.sendContainerState(containerMapKey)
  4300. }
  4301. if asSymbols {
  4302. ee.EncodeSymbol(k2)
  4303. } else {
  4304. ee.EncodeString(c_UTF8, k2)
  4305. }
  4306. if cr != nil {
  4307. cr.sendContainerState(containerMapValue)
  4308. }
  4309. ee.EncodeUint(uint64(v2))
  4310. }
  4311. }
  4312. if cr != nil {
  4313. cr.sendContainerState(containerMapEnd)
  4314. }
  4315. }
  4316. func (f *encFnInfo) fastpathEncMapStringUint8R(rv reflect.Value) {
  4317. fastpathTV.EncMapStringUint8V(rv.Interface().(map[string]uint8), fastpathCheckNilFalse, f.e)
  4318. }
  4319. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, checkNil bool, e *Encoder) {
  4320. ee := e.e
  4321. cr := e.cr
  4322. if checkNil && v == nil {
  4323. ee.EncodeNil()
  4324. return
  4325. }
  4326. ee.EncodeMapStart(len(v))
  4327. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4328. if e.h.Canonical {
  4329. v2 := make([]string, len(v))
  4330. var i int
  4331. for k, _ := range v {
  4332. v2[i] = string(k)
  4333. i++
  4334. }
  4335. sort.Sort(stringSlice(v2))
  4336. for _, k2 := range v2 {
  4337. if cr != nil {
  4338. cr.sendContainerState(containerMapKey)
  4339. }
  4340. if asSymbols {
  4341. ee.EncodeSymbol(k2)
  4342. } else {
  4343. ee.EncodeString(c_UTF8, k2)
  4344. }
  4345. if cr != nil {
  4346. cr.sendContainerState(containerMapValue)
  4347. }
  4348. ee.EncodeUint(uint64(v[string(k2)]))
  4349. }
  4350. } else {
  4351. for k2, v2 := range v {
  4352. if cr != nil {
  4353. cr.sendContainerState(containerMapKey)
  4354. }
  4355. if asSymbols {
  4356. ee.EncodeSymbol(k2)
  4357. } else {
  4358. ee.EncodeString(c_UTF8, k2)
  4359. }
  4360. if cr != nil {
  4361. cr.sendContainerState(containerMapValue)
  4362. }
  4363. ee.EncodeUint(uint64(v2))
  4364. }
  4365. }
  4366. if cr != nil {
  4367. cr.sendContainerState(containerMapEnd)
  4368. }
  4369. }
  4370. func (f *encFnInfo) fastpathEncMapStringUint16R(rv reflect.Value) {
  4371. fastpathTV.EncMapStringUint16V(rv.Interface().(map[string]uint16), fastpathCheckNilFalse, f.e)
  4372. }
  4373. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, checkNil bool, e *Encoder) {
  4374. ee := e.e
  4375. cr := e.cr
  4376. if checkNil && v == nil {
  4377. ee.EncodeNil()
  4378. return
  4379. }
  4380. ee.EncodeMapStart(len(v))
  4381. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4382. if e.h.Canonical {
  4383. v2 := make([]string, len(v))
  4384. var i int
  4385. for k, _ := range v {
  4386. v2[i] = string(k)
  4387. i++
  4388. }
  4389. sort.Sort(stringSlice(v2))
  4390. for _, k2 := range v2 {
  4391. if cr != nil {
  4392. cr.sendContainerState(containerMapKey)
  4393. }
  4394. if asSymbols {
  4395. ee.EncodeSymbol(k2)
  4396. } else {
  4397. ee.EncodeString(c_UTF8, k2)
  4398. }
  4399. if cr != nil {
  4400. cr.sendContainerState(containerMapValue)
  4401. }
  4402. ee.EncodeUint(uint64(v[string(k2)]))
  4403. }
  4404. } else {
  4405. for k2, v2 := range v {
  4406. if cr != nil {
  4407. cr.sendContainerState(containerMapKey)
  4408. }
  4409. if asSymbols {
  4410. ee.EncodeSymbol(k2)
  4411. } else {
  4412. ee.EncodeString(c_UTF8, k2)
  4413. }
  4414. if cr != nil {
  4415. cr.sendContainerState(containerMapValue)
  4416. }
  4417. ee.EncodeUint(uint64(v2))
  4418. }
  4419. }
  4420. if cr != nil {
  4421. cr.sendContainerState(containerMapEnd)
  4422. }
  4423. }
  4424. func (f *encFnInfo) fastpathEncMapStringUint32R(rv reflect.Value) {
  4425. fastpathTV.EncMapStringUint32V(rv.Interface().(map[string]uint32), fastpathCheckNilFalse, f.e)
  4426. }
  4427. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, checkNil bool, e *Encoder) {
  4428. ee := e.e
  4429. cr := e.cr
  4430. if checkNil && v == nil {
  4431. ee.EncodeNil()
  4432. return
  4433. }
  4434. ee.EncodeMapStart(len(v))
  4435. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4436. if e.h.Canonical {
  4437. v2 := make([]string, len(v))
  4438. var i int
  4439. for k, _ := range v {
  4440. v2[i] = string(k)
  4441. i++
  4442. }
  4443. sort.Sort(stringSlice(v2))
  4444. for _, k2 := range v2 {
  4445. if cr != nil {
  4446. cr.sendContainerState(containerMapKey)
  4447. }
  4448. if asSymbols {
  4449. ee.EncodeSymbol(k2)
  4450. } else {
  4451. ee.EncodeString(c_UTF8, k2)
  4452. }
  4453. if cr != nil {
  4454. cr.sendContainerState(containerMapValue)
  4455. }
  4456. ee.EncodeUint(uint64(v[string(k2)]))
  4457. }
  4458. } else {
  4459. for k2, v2 := range v {
  4460. if cr != nil {
  4461. cr.sendContainerState(containerMapKey)
  4462. }
  4463. if asSymbols {
  4464. ee.EncodeSymbol(k2)
  4465. } else {
  4466. ee.EncodeString(c_UTF8, k2)
  4467. }
  4468. if cr != nil {
  4469. cr.sendContainerState(containerMapValue)
  4470. }
  4471. ee.EncodeUint(uint64(v2))
  4472. }
  4473. }
  4474. if cr != nil {
  4475. cr.sendContainerState(containerMapEnd)
  4476. }
  4477. }
  4478. func (f *encFnInfo) fastpathEncMapStringUint64R(rv reflect.Value) {
  4479. fastpathTV.EncMapStringUint64V(rv.Interface().(map[string]uint64), fastpathCheckNilFalse, f.e)
  4480. }
  4481. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, checkNil bool, e *Encoder) {
  4482. ee := e.e
  4483. cr := e.cr
  4484. if checkNil && v == nil {
  4485. ee.EncodeNil()
  4486. return
  4487. }
  4488. ee.EncodeMapStart(len(v))
  4489. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4490. if e.h.Canonical {
  4491. v2 := make([]string, len(v))
  4492. var i int
  4493. for k, _ := range v {
  4494. v2[i] = string(k)
  4495. i++
  4496. }
  4497. sort.Sort(stringSlice(v2))
  4498. for _, k2 := range v2 {
  4499. if cr != nil {
  4500. cr.sendContainerState(containerMapKey)
  4501. }
  4502. if asSymbols {
  4503. ee.EncodeSymbol(k2)
  4504. } else {
  4505. ee.EncodeString(c_UTF8, k2)
  4506. }
  4507. if cr != nil {
  4508. cr.sendContainerState(containerMapValue)
  4509. }
  4510. ee.EncodeUint(uint64(v[string(k2)]))
  4511. }
  4512. } else {
  4513. for k2, v2 := range v {
  4514. if cr != nil {
  4515. cr.sendContainerState(containerMapKey)
  4516. }
  4517. if asSymbols {
  4518. ee.EncodeSymbol(k2)
  4519. } else {
  4520. ee.EncodeString(c_UTF8, k2)
  4521. }
  4522. if cr != nil {
  4523. cr.sendContainerState(containerMapValue)
  4524. }
  4525. ee.EncodeUint(uint64(v2))
  4526. }
  4527. }
  4528. if cr != nil {
  4529. cr.sendContainerState(containerMapEnd)
  4530. }
  4531. }
  4532. func (f *encFnInfo) fastpathEncMapStringUintptrR(rv reflect.Value) {
  4533. fastpathTV.EncMapStringUintptrV(rv.Interface().(map[string]uintptr), fastpathCheckNilFalse, f.e)
  4534. }
  4535. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, checkNil bool, e *Encoder) {
  4536. ee := e.e
  4537. cr := e.cr
  4538. if checkNil && v == nil {
  4539. ee.EncodeNil()
  4540. return
  4541. }
  4542. ee.EncodeMapStart(len(v))
  4543. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4544. if e.h.Canonical {
  4545. v2 := make([]string, len(v))
  4546. var i int
  4547. for k, _ := range v {
  4548. v2[i] = string(k)
  4549. i++
  4550. }
  4551. sort.Sort(stringSlice(v2))
  4552. for _, k2 := range v2 {
  4553. if cr != nil {
  4554. cr.sendContainerState(containerMapKey)
  4555. }
  4556. if asSymbols {
  4557. ee.EncodeSymbol(k2)
  4558. } else {
  4559. ee.EncodeString(c_UTF8, k2)
  4560. }
  4561. if cr != nil {
  4562. cr.sendContainerState(containerMapValue)
  4563. }
  4564. e.encode(v[string(k2)])
  4565. }
  4566. } else {
  4567. for k2, v2 := range v {
  4568. if cr != nil {
  4569. cr.sendContainerState(containerMapKey)
  4570. }
  4571. if asSymbols {
  4572. ee.EncodeSymbol(k2)
  4573. } else {
  4574. ee.EncodeString(c_UTF8, k2)
  4575. }
  4576. if cr != nil {
  4577. cr.sendContainerState(containerMapValue)
  4578. }
  4579. e.encode(v2)
  4580. }
  4581. }
  4582. if cr != nil {
  4583. cr.sendContainerState(containerMapEnd)
  4584. }
  4585. }
  4586. func (f *encFnInfo) fastpathEncMapStringIntR(rv reflect.Value) {
  4587. fastpathTV.EncMapStringIntV(rv.Interface().(map[string]int), fastpathCheckNilFalse, f.e)
  4588. }
  4589. func (_ fastpathT) EncMapStringIntV(v map[string]int, checkNil bool, e *Encoder) {
  4590. ee := e.e
  4591. cr := e.cr
  4592. if checkNil && v == nil {
  4593. ee.EncodeNil()
  4594. return
  4595. }
  4596. ee.EncodeMapStart(len(v))
  4597. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4598. if e.h.Canonical {
  4599. v2 := make([]string, len(v))
  4600. var i int
  4601. for k, _ := range v {
  4602. v2[i] = string(k)
  4603. i++
  4604. }
  4605. sort.Sort(stringSlice(v2))
  4606. for _, k2 := range v2 {
  4607. if cr != nil {
  4608. cr.sendContainerState(containerMapKey)
  4609. }
  4610. if asSymbols {
  4611. ee.EncodeSymbol(k2)
  4612. } else {
  4613. ee.EncodeString(c_UTF8, k2)
  4614. }
  4615. if cr != nil {
  4616. cr.sendContainerState(containerMapValue)
  4617. }
  4618. ee.EncodeInt(int64(v[string(k2)]))
  4619. }
  4620. } else {
  4621. for k2, v2 := range v {
  4622. if cr != nil {
  4623. cr.sendContainerState(containerMapKey)
  4624. }
  4625. if asSymbols {
  4626. ee.EncodeSymbol(k2)
  4627. } else {
  4628. ee.EncodeString(c_UTF8, k2)
  4629. }
  4630. if cr != nil {
  4631. cr.sendContainerState(containerMapValue)
  4632. }
  4633. ee.EncodeInt(int64(v2))
  4634. }
  4635. }
  4636. if cr != nil {
  4637. cr.sendContainerState(containerMapEnd)
  4638. }
  4639. }
  4640. func (f *encFnInfo) fastpathEncMapStringInt8R(rv reflect.Value) {
  4641. fastpathTV.EncMapStringInt8V(rv.Interface().(map[string]int8), fastpathCheckNilFalse, f.e)
  4642. }
  4643. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, checkNil bool, e *Encoder) {
  4644. ee := e.e
  4645. cr := e.cr
  4646. if checkNil && v == nil {
  4647. ee.EncodeNil()
  4648. return
  4649. }
  4650. ee.EncodeMapStart(len(v))
  4651. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4652. if e.h.Canonical {
  4653. v2 := make([]string, len(v))
  4654. var i int
  4655. for k, _ := range v {
  4656. v2[i] = string(k)
  4657. i++
  4658. }
  4659. sort.Sort(stringSlice(v2))
  4660. for _, k2 := range v2 {
  4661. if cr != nil {
  4662. cr.sendContainerState(containerMapKey)
  4663. }
  4664. if asSymbols {
  4665. ee.EncodeSymbol(k2)
  4666. } else {
  4667. ee.EncodeString(c_UTF8, k2)
  4668. }
  4669. if cr != nil {
  4670. cr.sendContainerState(containerMapValue)
  4671. }
  4672. ee.EncodeInt(int64(v[string(k2)]))
  4673. }
  4674. } else {
  4675. for k2, v2 := range v {
  4676. if cr != nil {
  4677. cr.sendContainerState(containerMapKey)
  4678. }
  4679. if asSymbols {
  4680. ee.EncodeSymbol(k2)
  4681. } else {
  4682. ee.EncodeString(c_UTF8, k2)
  4683. }
  4684. if cr != nil {
  4685. cr.sendContainerState(containerMapValue)
  4686. }
  4687. ee.EncodeInt(int64(v2))
  4688. }
  4689. }
  4690. if cr != nil {
  4691. cr.sendContainerState(containerMapEnd)
  4692. }
  4693. }
  4694. func (f *encFnInfo) fastpathEncMapStringInt16R(rv reflect.Value) {
  4695. fastpathTV.EncMapStringInt16V(rv.Interface().(map[string]int16), fastpathCheckNilFalse, f.e)
  4696. }
  4697. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, checkNil bool, e *Encoder) {
  4698. ee := e.e
  4699. cr := e.cr
  4700. if checkNil && v == nil {
  4701. ee.EncodeNil()
  4702. return
  4703. }
  4704. ee.EncodeMapStart(len(v))
  4705. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4706. if e.h.Canonical {
  4707. v2 := make([]string, len(v))
  4708. var i int
  4709. for k, _ := range v {
  4710. v2[i] = string(k)
  4711. i++
  4712. }
  4713. sort.Sort(stringSlice(v2))
  4714. for _, k2 := range v2 {
  4715. if cr != nil {
  4716. cr.sendContainerState(containerMapKey)
  4717. }
  4718. if asSymbols {
  4719. ee.EncodeSymbol(k2)
  4720. } else {
  4721. ee.EncodeString(c_UTF8, k2)
  4722. }
  4723. if cr != nil {
  4724. cr.sendContainerState(containerMapValue)
  4725. }
  4726. ee.EncodeInt(int64(v[string(k2)]))
  4727. }
  4728. } else {
  4729. for k2, v2 := range v {
  4730. if cr != nil {
  4731. cr.sendContainerState(containerMapKey)
  4732. }
  4733. if asSymbols {
  4734. ee.EncodeSymbol(k2)
  4735. } else {
  4736. ee.EncodeString(c_UTF8, k2)
  4737. }
  4738. if cr != nil {
  4739. cr.sendContainerState(containerMapValue)
  4740. }
  4741. ee.EncodeInt(int64(v2))
  4742. }
  4743. }
  4744. if cr != nil {
  4745. cr.sendContainerState(containerMapEnd)
  4746. }
  4747. }
  4748. func (f *encFnInfo) fastpathEncMapStringInt32R(rv reflect.Value) {
  4749. fastpathTV.EncMapStringInt32V(rv.Interface().(map[string]int32), fastpathCheckNilFalse, f.e)
  4750. }
  4751. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, checkNil bool, e *Encoder) {
  4752. ee := e.e
  4753. cr := e.cr
  4754. if checkNil && v == nil {
  4755. ee.EncodeNil()
  4756. return
  4757. }
  4758. ee.EncodeMapStart(len(v))
  4759. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4760. if e.h.Canonical {
  4761. v2 := make([]string, len(v))
  4762. var i int
  4763. for k, _ := range v {
  4764. v2[i] = string(k)
  4765. i++
  4766. }
  4767. sort.Sort(stringSlice(v2))
  4768. for _, k2 := range v2 {
  4769. if cr != nil {
  4770. cr.sendContainerState(containerMapKey)
  4771. }
  4772. if asSymbols {
  4773. ee.EncodeSymbol(k2)
  4774. } else {
  4775. ee.EncodeString(c_UTF8, k2)
  4776. }
  4777. if cr != nil {
  4778. cr.sendContainerState(containerMapValue)
  4779. }
  4780. ee.EncodeInt(int64(v[string(k2)]))
  4781. }
  4782. } else {
  4783. for k2, v2 := range v {
  4784. if cr != nil {
  4785. cr.sendContainerState(containerMapKey)
  4786. }
  4787. if asSymbols {
  4788. ee.EncodeSymbol(k2)
  4789. } else {
  4790. ee.EncodeString(c_UTF8, k2)
  4791. }
  4792. if cr != nil {
  4793. cr.sendContainerState(containerMapValue)
  4794. }
  4795. ee.EncodeInt(int64(v2))
  4796. }
  4797. }
  4798. if cr != nil {
  4799. cr.sendContainerState(containerMapEnd)
  4800. }
  4801. }
  4802. func (f *encFnInfo) fastpathEncMapStringInt64R(rv reflect.Value) {
  4803. fastpathTV.EncMapStringInt64V(rv.Interface().(map[string]int64), fastpathCheckNilFalse, f.e)
  4804. }
  4805. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, checkNil bool, e *Encoder) {
  4806. ee := e.e
  4807. cr := e.cr
  4808. if checkNil && v == nil {
  4809. ee.EncodeNil()
  4810. return
  4811. }
  4812. ee.EncodeMapStart(len(v))
  4813. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4814. if e.h.Canonical {
  4815. v2 := make([]string, len(v))
  4816. var i int
  4817. for k, _ := range v {
  4818. v2[i] = string(k)
  4819. i++
  4820. }
  4821. sort.Sort(stringSlice(v2))
  4822. for _, k2 := range v2 {
  4823. if cr != nil {
  4824. cr.sendContainerState(containerMapKey)
  4825. }
  4826. if asSymbols {
  4827. ee.EncodeSymbol(k2)
  4828. } else {
  4829. ee.EncodeString(c_UTF8, k2)
  4830. }
  4831. if cr != nil {
  4832. cr.sendContainerState(containerMapValue)
  4833. }
  4834. ee.EncodeInt(int64(v[string(k2)]))
  4835. }
  4836. } else {
  4837. for k2, v2 := range v {
  4838. if cr != nil {
  4839. cr.sendContainerState(containerMapKey)
  4840. }
  4841. if asSymbols {
  4842. ee.EncodeSymbol(k2)
  4843. } else {
  4844. ee.EncodeString(c_UTF8, k2)
  4845. }
  4846. if cr != nil {
  4847. cr.sendContainerState(containerMapValue)
  4848. }
  4849. ee.EncodeInt(int64(v2))
  4850. }
  4851. }
  4852. if cr != nil {
  4853. cr.sendContainerState(containerMapEnd)
  4854. }
  4855. }
  4856. func (f *encFnInfo) fastpathEncMapStringFloat32R(rv reflect.Value) {
  4857. fastpathTV.EncMapStringFloat32V(rv.Interface().(map[string]float32), fastpathCheckNilFalse, f.e)
  4858. }
  4859. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, checkNil bool, e *Encoder) {
  4860. ee := e.e
  4861. cr := e.cr
  4862. if checkNil && v == nil {
  4863. ee.EncodeNil()
  4864. return
  4865. }
  4866. ee.EncodeMapStart(len(v))
  4867. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4868. if e.h.Canonical {
  4869. v2 := make([]string, len(v))
  4870. var i int
  4871. for k, _ := range v {
  4872. v2[i] = string(k)
  4873. i++
  4874. }
  4875. sort.Sort(stringSlice(v2))
  4876. for _, k2 := range v2 {
  4877. if cr != nil {
  4878. cr.sendContainerState(containerMapKey)
  4879. }
  4880. if asSymbols {
  4881. ee.EncodeSymbol(k2)
  4882. } else {
  4883. ee.EncodeString(c_UTF8, k2)
  4884. }
  4885. if cr != nil {
  4886. cr.sendContainerState(containerMapValue)
  4887. }
  4888. ee.EncodeFloat32(v[string(k2)])
  4889. }
  4890. } else {
  4891. for k2, v2 := range v {
  4892. if cr != nil {
  4893. cr.sendContainerState(containerMapKey)
  4894. }
  4895. if asSymbols {
  4896. ee.EncodeSymbol(k2)
  4897. } else {
  4898. ee.EncodeString(c_UTF8, k2)
  4899. }
  4900. if cr != nil {
  4901. cr.sendContainerState(containerMapValue)
  4902. }
  4903. ee.EncodeFloat32(v2)
  4904. }
  4905. }
  4906. if cr != nil {
  4907. cr.sendContainerState(containerMapEnd)
  4908. }
  4909. }
  4910. func (f *encFnInfo) fastpathEncMapStringFloat64R(rv reflect.Value) {
  4911. fastpathTV.EncMapStringFloat64V(rv.Interface().(map[string]float64), fastpathCheckNilFalse, f.e)
  4912. }
  4913. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, checkNil bool, e *Encoder) {
  4914. ee := e.e
  4915. cr := e.cr
  4916. if checkNil && v == nil {
  4917. ee.EncodeNil()
  4918. return
  4919. }
  4920. ee.EncodeMapStart(len(v))
  4921. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4922. if e.h.Canonical {
  4923. v2 := make([]string, len(v))
  4924. var i int
  4925. for k, _ := range v {
  4926. v2[i] = string(k)
  4927. i++
  4928. }
  4929. sort.Sort(stringSlice(v2))
  4930. for _, k2 := range v2 {
  4931. if cr != nil {
  4932. cr.sendContainerState(containerMapKey)
  4933. }
  4934. if asSymbols {
  4935. ee.EncodeSymbol(k2)
  4936. } else {
  4937. ee.EncodeString(c_UTF8, k2)
  4938. }
  4939. if cr != nil {
  4940. cr.sendContainerState(containerMapValue)
  4941. }
  4942. ee.EncodeFloat64(v[string(k2)])
  4943. }
  4944. } else {
  4945. for k2, v2 := range v {
  4946. if cr != nil {
  4947. cr.sendContainerState(containerMapKey)
  4948. }
  4949. if asSymbols {
  4950. ee.EncodeSymbol(k2)
  4951. } else {
  4952. ee.EncodeString(c_UTF8, k2)
  4953. }
  4954. if cr != nil {
  4955. cr.sendContainerState(containerMapValue)
  4956. }
  4957. ee.EncodeFloat64(v2)
  4958. }
  4959. }
  4960. if cr != nil {
  4961. cr.sendContainerState(containerMapEnd)
  4962. }
  4963. }
  4964. func (f *encFnInfo) fastpathEncMapStringBoolR(rv reflect.Value) {
  4965. fastpathTV.EncMapStringBoolV(rv.Interface().(map[string]bool), fastpathCheckNilFalse, f.e)
  4966. }
  4967. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, checkNil bool, e *Encoder) {
  4968. ee := e.e
  4969. cr := e.cr
  4970. if checkNil && v == nil {
  4971. ee.EncodeNil()
  4972. return
  4973. }
  4974. ee.EncodeMapStart(len(v))
  4975. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4976. if e.h.Canonical {
  4977. v2 := make([]string, len(v))
  4978. var i int
  4979. for k, _ := range v {
  4980. v2[i] = string(k)
  4981. i++
  4982. }
  4983. sort.Sort(stringSlice(v2))
  4984. for _, k2 := range v2 {
  4985. if cr != nil {
  4986. cr.sendContainerState(containerMapKey)
  4987. }
  4988. if asSymbols {
  4989. ee.EncodeSymbol(k2)
  4990. } else {
  4991. ee.EncodeString(c_UTF8, k2)
  4992. }
  4993. if cr != nil {
  4994. cr.sendContainerState(containerMapValue)
  4995. }
  4996. ee.EncodeBool(v[string(k2)])
  4997. }
  4998. } else {
  4999. for k2, v2 := range v {
  5000. if cr != nil {
  5001. cr.sendContainerState(containerMapKey)
  5002. }
  5003. if asSymbols {
  5004. ee.EncodeSymbol(k2)
  5005. } else {
  5006. ee.EncodeString(c_UTF8, k2)
  5007. }
  5008. if cr != nil {
  5009. cr.sendContainerState(containerMapValue)
  5010. }
  5011. ee.EncodeBool(v2)
  5012. }
  5013. }
  5014. if cr != nil {
  5015. cr.sendContainerState(containerMapEnd)
  5016. }
  5017. }
  5018. func (f *encFnInfo) fastpathEncMapFloat32IntfR(rv reflect.Value) {
  5019. fastpathTV.EncMapFloat32IntfV(rv.Interface().(map[float32]interface{}), fastpathCheckNilFalse, f.e)
  5020. }
  5021. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, checkNil bool, e *Encoder) {
  5022. ee := e.e
  5023. cr := e.cr
  5024. if checkNil && v == nil {
  5025. ee.EncodeNil()
  5026. return
  5027. }
  5028. ee.EncodeMapStart(len(v))
  5029. if e.h.Canonical {
  5030. v2 := make([]float64, len(v))
  5031. var i int
  5032. for k, _ := range v {
  5033. v2[i] = float64(k)
  5034. i++
  5035. }
  5036. sort.Sort(floatSlice(v2))
  5037. for _, k2 := range v2 {
  5038. if cr != nil {
  5039. cr.sendContainerState(containerMapKey)
  5040. }
  5041. ee.EncodeFloat32(float32(k2))
  5042. if cr != nil {
  5043. cr.sendContainerState(containerMapValue)
  5044. }
  5045. e.encode(v[float32(k2)])
  5046. }
  5047. } else {
  5048. for k2, v2 := range v {
  5049. if cr != nil {
  5050. cr.sendContainerState(containerMapKey)
  5051. }
  5052. ee.EncodeFloat32(k2)
  5053. if cr != nil {
  5054. cr.sendContainerState(containerMapValue)
  5055. }
  5056. e.encode(v2)
  5057. }
  5058. }
  5059. if cr != nil {
  5060. cr.sendContainerState(containerMapEnd)
  5061. }
  5062. }
  5063. func (f *encFnInfo) fastpathEncMapFloat32StringR(rv reflect.Value) {
  5064. fastpathTV.EncMapFloat32StringV(rv.Interface().(map[float32]string), fastpathCheckNilFalse, f.e)
  5065. }
  5066. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, checkNil bool, e *Encoder) {
  5067. ee := e.e
  5068. cr := e.cr
  5069. if checkNil && v == nil {
  5070. ee.EncodeNil()
  5071. return
  5072. }
  5073. ee.EncodeMapStart(len(v))
  5074. if e.h.Canonical {
  5075. v2 := make([]float64, len(v))
  5076. var i int
  5077. for k, _ := range v {
  5078. v2[i] = float64(k)
  5079. i++
  5080. }
  5081. sort.Sort(floatSlice(v2))
  5082. for _, k2 := range v2 {
  5083. if cr != nil {
  5084. cr.sendContainerState(containerMapKey)
  5085. }
  5086. ee.EncodeFloat32(float32(k2))
  5087. if cr != nil {
  5088. cr.sendContainerState(containerMapValue)
  5089. }
  5090. ee.EncodeString(c_UTF8, v[float32(k2)])
  5091. }
  5092. } else {
  5093. for k2, v2 := range v {
  5094. if cr != nil {
  5095. cr.sendContainerState(containerMapKey)
  5096. }
  5097. ee.EncodeFloat32(k2)
  5098. if cr != nil {
  5099. cr.sendContainerState(containerMapValue)
  5100. }
  5101. ee.EncodeString(c_UTF8, v2)
  5102. }
  5103. }
  5104. if cr != nil {
  5105. cr.sendContainerState(containerMapEnd)
  5106. }
  5107. }
  5108. func (f *encFnInfo) fastpathEncMapFloat32UintR(rv reflect.Value) {
  5109. fastpathTV.EncMapFloat32UintV(rv.Interface().(map[float32]uint), fastpathCheckNilFalse, f.e)
  5110. }
  5111. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, checkNil bool, e *Encoder) {
  5112. ee := e.e
  5113. cr := e.cr
  5114. if checkNil && v == nil {
  5115. ee.EncodeNil()
  5116. return
  5117. }
  5118. ee.EncodeMapStart(len(v))
  5119. if e.h.Canonical {
  5120. v2 := make([]float64, len(v))
  5121. var i int
  5122. for k, _ := range v {
  5123. v2[i] = float64(k)
  5124. i++
  5125. }
  5126. sort.Sort(floatSlice(v2))
  5127. for _, k2 := range v2 {
  5128. if cr != nil {
  5129. cr.sendContainerState(containerMapKey)
  5130. }
  5131. ee.EncodeFloat32(float32(k2))
  5132. if cr != nil {
  5133. cr.sendContainerState(containerMapValue)
  5134. }
  5135. ee.EncodeUint(uint64(v[float32(k2)]))
  5136. }
  5137. } else {
  5138. for k2, v2 := range v {
  5139. if cr != nil {
  5140. cr.sendContainerState(containerMapKey)
  5141. }
  5142. ee.EncodeFloat32(k2)
  5143. if cr != nil {
  5144. cr.sendContainerState(containerMapValue)
  5145. }
  5146. ee.EncodeUint(uint64(v2))
  5147. }
  5148. }
  5149. if cr != nil {
  5150. cr.sendContainerState(containerMapEnd)
  5151. }
  5152. }
  5153. func (f *encFnInfo) fastpathEncMapFloat32Uint8R(rv reflect.Value) {
  5154. fastpathTV.EncMapFloat32Uint8V(rv.Interface().(map[float32]uint8), fastpathCheckNilFalse, f.e)
  5155. }
  5156. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, checkNil bool, e *Encoder) {
  5157. ee := e.e
  5158. cr := e.cr
  5159. if checkNil && v == nil {
  5160. ee.EncodeNil()
  5161. return
  5162. }
  5163. ee.EncodeMapStart(len(v))
  5164. if e.h.Canonical {
  5165. v2 := make([]float64, len(v))
  5166. var i int
  5167. for k, _ := range v {
  5168. v2[i] = float64(k)
  5169. i++
  5170. }
  5171. sort.Sort(floatSlice(v2))
  5172. for _, k2 := range v2 {
  5173. if cr != nil {
  5174. cr.sendContainerState(containerMapKey)
  5175. }
  5176. ee.EncodeFloat32(float32(k2))
  5177. if cr != nil {
  5178. cr.sendContainerState(containerMapValue)
  5179. }
  5180. ee.EncodeUint(uint64(v[float32(k2)]))
  5181. }
  5182. } else {
  5183. for k2, v2 := range v {
  5184. if cr != nil {
  5185. cr.sendContainerState(containerMapKey)
  5186. }
  5187. ee.EncodeFloat32(k2)
  5188. if cr != nil {
  5189. cr.sendContainerState(containerMapValue)
  5190. }
  5191. ee.EncodeUint(uint64(v2))
  5192. }
  5193. }
  5194. if cr != nil {
  5195. cr.sendContainerState(containerMapEnd)
  5196. }
  5197. }
  5198. func (f *encFnInfo) fastpathEncMapFloat32Uint16R(rv reflect.Value) {
  5199. fastpathTV.EncMapFloat32Uint16V(rv.Interface().(map[float32]uint16), fastpathCheckNilFalse, f.e)
  5200. }
  5201. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, checkNil bool, e *Encoder) {
  5202. ee := e.e
  5203. cr := e.cr
  5204. if checkNil && v == nil {
  5205. ee.EncodeNil()
  5206. return
  5207. }
  5208. ee.EncodeMapStart(len(v))
  5209. if e.h.Canonical {
  5210. v2 := make([]float64, len(v))
  5211. var i int
  5212. for k, _ := range v {
  5213. v2[i] = float64(k)
  5214. i++
  5215. }
  5216. sort.Sort(floatSlice(v2))
  5217. for _, k2 := range v2 {
  5218. if cr != nil {
  5219. cr.sendContainerState(containerMapKey)
  5220. }
  5221. ee.EncodeFloat32(float32(k2))
  5222. if cr != nil {
  5223. cr.sendContainerState(containerMapValue)
  5224. }
  5225. ee.EncodeUint(uint64(v[float32(k2)]))
  5226. }
  5227. } else {
  5228. for k2, v2 := range v {
  5229. if cr != nil {
  5230. cr.sendContainerState(containerMapKey)
  5231. }
  5232. ee.EncodeFloat32(k2)
  5233. if cr != nil {
  5234. cr.sendContainerState(containerMapValue)
  5235. }
  5236. ee.EncodeUint(uint64(v2))
  5237. }
  5238. }
  5239. if cr != nil {
  5240. cr.sendContainerState(containerMapEnd)
  5241. }
  5242. }
  5243. func (f *encFnInfo) fastpathEncMapFloat32Uint32R(rv reflect.Value) {
  5244. fastpathTV.EncMapFloat32Uint32V(rv.Interface().(map[float32]uint32), fastpathCheckNilFalse, f.e)
  5245. }
  5246. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, checkNil bool, e *Encoder) {
  5247. ee := e.e
  5248. cr := e.cr
  5249. if checkNil && v == nil {
  5250. ee.EncodeNil()
  5251. return
  5252. }
  5253. ee.EncodeMapStart(len(v))
  5254. if e.h.Canonical {
  5255. v2 := make([]float64, len(v))
  5256. var i int
  5257. for k, _ := range v {
  5258. v2[i] = float64(k)
  5259. i++
  5260. }
  5261. sort.Sort(floatSlice(v2))
  5262. for _, k2 := range v2 {
  5263. if cr != nil {
  5264. cr.sendContainerState(containerMapKey)
  5265. }
  5266. ee.EncodeFloat32(float32(k2))
  5267. if cr != nil {
  5268. cr.sendContainerState(containerMapValue)
  5269. }
  5270. ee.EncodeUint(uint64(v[float32(k2)]))
  5271. }
  5272. } else {
  5273. for k2, v2 := range v {
  5274. if cr != nil {
  5275. cr.sendContainerState(containerMapKey)
  5276. }
  5277. ee.EncodeFloat32(k2)
  5278. if cr != nil {
  5279. cr.sendContainerState(containerMapValue)
  5280. }
  5281. ee.EncodeUint(uint64(v2))
  5282. }
  5283. }
  5284. if cr != nil {
  5285. cr.sendContainerState(containerMapEnd)
  5286. }
  5287. }
  5288. func (f *encFnInfo) fastpathEncMapFloat32Uint64R(rv reflect.Value) {
  5289. fastpathTV.EncMapFloat32Uint64V(rv.Interface().(map[float32]uint64), fastpathCheckNilFalse, f.e)
  5290. }
  5291. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, checkNil bool, e *Encoder) {
  5292. ee := e.e
  5293. cr := e.cr
  5294. if checkNil && v == nil {
  5295. ee.EncodeNil()
  5296. return
  5297. }
  5298. ee.EncodeMapStart(len(v))
  5299. if e.h.Canonical {
  5300. v2 := make([]float64, len(v))
  5301. var i int
  5302. for k, _ := range v {
  5303. v2[i] = float64(k)
  5304. i++
  5305. }
  5306. sort.Sort(floatSlice(v2))
  5307. for _, k2 := range v2 {
  5308. if cr != nil {
  5309. cr.sendContainerState(containerMapKey)
  5310. }
  5311. ee.EncodeFloat32(float32(k2))
  5312. if cr != nil {
  5313. cr.sendContainerState(containerMapValue)
  5314. }
  5315. ee.EncodeUint(uint64(v[float32(k2)]))
  5316. }
  5317. } else {
  5318. for k2, v2 := range v {
  5319. if cr != nil {
  5320. cr.sendContainerState(containerMapKey)
  5321. }
  5322. ee.EncodeFloat32(k2)
  5323. if cr != nil {
  5324. cr.sendContainerState(containerMapValue)
  5325. }
  5326. ee.EncodeUint(uint64(v2))
  5327. }
  5328. }
  5329. if cr != nil {
  5330. cr.sendContainerState(containerMapEnd)
  5331. }
  5332. }
  5333. func (f *encFnInfo) fastpathEncMapFloat32UintptrR(rv reflect.Value) {
  5334. fastpathTV.EncMapFloat32UintptrV(rv.Interface().(map[float32]uintptr), fastpathCheckNilFalse, f.e)
  5335. }
  5336. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, checkNil bool, e *Encoder) {
  5337. ee := e.e
  5338. cr := e.cr
  5339. if checkNil && v == nil {
  5340. ee.EncodeNil()
  5341. return
  5342. }
  5343. ee.EncodeMapStart(len(v))
  5344. if e.h.Canonical {
  5345. v2 := make([]float64, len(v))
  5346. var i int
  5347. for k, _ := range v {
  5348. v2[i] = float64(k)
  5349. i++
  5350. }
  5351. sort.Sort(floatSlice(v2))
  5352. for _, k2 := range v2 {
  5353. if cr != nil {
  5354. cr.sendContainerState(containerMapKey)
  5355. }
  5356. ee.EncodeFloat32(float32(k2))
  5357. if cr != nil {
  5358. cr.sendContainerState(containerMapValue)
  5359. }
  5360. e.encode(v[float32(k2)])
  5361. }
  5362. } else {
  5363. for k2, v2 := range v {
  5364. if cr != nil {
  5365. cr.sendContainerState(containerMapKey)
  5366. }
  5367. ee.EncodeFloat32(k2)
  5368. if cr != nil {
  5369. cr.sendContainerState(containerMapValue)
  5370. }
  5371. e.encode(v2)
  5372. }
  5373. }
  5374. if cr != nil {
  5375. cr.sendContainerState(containerMapEnd)
  5376. }
  5377. }
  5378. func (f *encFnInfo) fastpathEncMapFloat32IntR(rv reflect.Value) {
  5379. fastpathTV.EncMapFloat32IntV(rv.Interface().(map[float32]int), fastpathCheckNilFalse, f.e)
  5380. }
  5381. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, checkNil bool, e *Encoder) {
  5382. ee := e.e
  5383. cr := e.cr
  5384. if checkNil && v == nil {
  5385. ee.EncodeNil()
  5386. return
  5387. }
  5388. ee.EncodeMapStart(len(v))
  5389. if e.h.Canonical {
  5390. v2 := make([]float64, len(v))
  5391. var i int
  5392. for k, _ := range v {
  5393. v2[i] = float64(k)
  5394. i++
  5395. }
  5396. sort.Sort(floatSlice(v2))
  5397. for _, k2 := range v2 {
  5398. if cr != nil {
  5399. cr.sendContainerState(containerMapKey)
  5400. }
  5401. ee.EncodeFloat32(float32(k2))
  5402. if cr != nil {
  5403. cr.sendContainerState(containerMapValue)
  5404. }
  5405. ee.EncodeInt(int64(v[float32(k2)]))
  5406. }
  5407. } else {
  5408. for k2, v2 := range v {
  5409. if cr != nil {
  5410. cr.sendContainerState(containerMapKey)
  5411. }
  5412. ee.EncodeFloat32(k2)
  5413. if cr != nil {
  5414. cr.sendContainerState(containerMapValue)
  5415. }
  5416. ee.EncodeInt(int64(v2))
  5417. }
  5418. }
  5419. if cr != nil {
  5420. cr.sendContainerState(containerMapEnd)
  5421. }
  5422. }
  5423. func (f *encFnInfo) fastpathEncMapFloat32Int8R(rv reflect.Value) {
  5424. fastpathTV.EncMapFloat32Int8V(rv.Interface().(map[float32]int8), fastpathCheckNilFalse, f.e)
  5425. }
  5426. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, checkNil bool, e *Encoder) {
  5427. ee := e.e
  5428. cr := e.cr
  5429. if checkNil && v == nil {
  5430. ee.EncodeNil()
  5431. return
  5432. }
  5433. ee.EncodeMapStart(len(v))
  5434. if e.h.Canonical {
  5435. v2 := make([]float64, len(v))
  5436. var i int
  5437. for k, _ := range v {
  5438. v2[i] = float64(k)
  5439. i++
  5440. }
  5441. sort.Sort(floatSlice(v2))
  5442. for _, k2 := range v2 {
  5443. if cr != nil {
  5444. cr.sendContainerState(containerMapKey)
  5445. }
  5446. ee.EncodeFloat32(float32(k2))
  5447. if cr != nil {
  5448. cr.sendContainerState(containerMapValue)
  5449. }
  5450. ee.EncodeInt(int64(v[float32(k2)]))
  5451. }
  5452. } else {
  5453. for k2, v2 := range v {
  5454. if cr != nil {
  5455. cr.sendContainerState(containerMapKey)
  5456. }
  5457. ee.EncodeFloat32(k2)
  5458. if cr != nil {
  5459. cr.sendContainerState(containerMapValue)
  5460. }
  5461. ee.EncodeInt(int64(v2))
  5462. }
  5463. }
  5464. if cr != nil {
  5465. cr.sendContainerState(containerMapEnd)
  5466. }
  5467. }
  5468. func (f *encFnInfo) fastpathEncMapFloat32Int16R(rv reflect.Value) {
  5469. fastpathTV.EncMapFloat32Int16V(rv.Interface().(map[float32]int16), fastpathCheckNilFalse, f.e)
  5470. }
  5471. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, checkNil bool, e *Encoder) {
  5472. ee := e.e
  5473. cr := e.cr
  5474. if checkNil && v == nil {
  5475. ee.EncodeNil()
  5476. return
  5477. }
  5478. ee.EncodeMapStart(len(v))
  5479. if e.h.Canonical {
  5480. v2 := make([]float64, len(v))
  5481. var i int
  5482. for k, _ := range v {
  5483. v2[i] = float64(k)
  5484. i++
  5485. }
  5486. sort.Sort(floatSlice(v2))
  5487. for _, k2 := range v2 {
  5488. if cr != nil {
  5489. cr.sendContainerState(containerMapKey)
  5490. }
  5491. ee.EncodeFloat32(float32(k2))
  5492. if cr != nil {
  5493. cr.sendContainerState(containerMapValue)
  5494. }
  5495. ee.EncodeInt(int64(v[float32(k2)]))
  5496. }
  5497. } else {
  5498. for k2, v2 := range v {
  5499. if cr != nil {
  5500. cr.sendContainerState(containerMapKey)
  5501. }
  5502. ee.EncodeFloat32(k2)
  5503. if cr != nil {
  5504. cr.sendContainerState(containerMapValue)
  5505. }
  5506. ee.EncodeInt(int64(v2))
  5507. }
  5508. }
  5509. if cr != nil {
  5510. cr.sendContainerState(containerMapEnd)
  5511. }
  5512. }
  5513. func (f *encFnInfo) fastpathEncMapFloat32Int32R(rv reflect.Value) {
  5514. fastpathTV.EncMapFloat32Int32V(rv.Interface().(map[float32]int32), fastpathCheckNilFalse, f.e)
  5515. }
  5516. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, checkNil bool, e *Encoder) {
  5517. ee := e.e
  5518. cr := e.cr
  5519. if checkNil && v == nil {
  5520. ee.EncodeNil()
  5521. return
  5522. }
  5523. ee.EncodeMapStart(len(v))
  5524. if e.h.Canonical {
  5525. v2 := make([]float64, len(v))
  5526. var i int
  5527. for k, _ := range v {
  5528. v2[i] = float64(k)
  5529. i++
  5530. }
  5531. sort.Sort(floatSlice(v2))
  5532. for _, k2 := range v2 {
  5533. if cr != nil {
  5534. cr.sendContainerState(containerMapKey)
  5535. }
  5536. ee.EncodeFloat32(float32(k2))
  5537. if cr != nil {
  5538. cr.sendContainerState(containerMapValue)
  5539. }
  5540. ee.EncodeInt(int64(v[float32(k2)]))
  5541. }
  5542. } else {
  5543. for k2, v2 := range v {
  5544. if cr != nil {
  5545. cr.sendContainerState(containerMapKey)
  5546. }
  5547. ee.EncodeFloat32(k2)
  5548. if cr != nil {
  5549. cr.sendContainerState(containerMapValue)
  5550. }
  5551. ee.EncodeInt(int64(v2))
  5552. }
  5553. }
  5554. if cr != nil {
  5555. cr.sendContainerState(containerMapEnd)
  5556. }
  5557. }
  5558. func (f *encFnInfo) fastpathEncMapFloat32Int64R(rv reflect.Value) {
  5559. fastpathTV.EncMapFloat32Int64V(rv.Interface().(map[float32]int64), fastpathCheckNilFalse, f.e)
  5560. }
  5561. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, checkNil bool, e *Encoder) {
  5562. ee := e.e
  5563. cr := e.cr
  5564. if checkNil && v == nil {
  5565. ee.EncodeNil()
  5566. return
  5567. }
  5568. ee.EncodeMapStart(len(v))
  5569. if e.h.Canonical {
  5570. v2 := make([]float64, len(v))
  5571. var i int
  5572. for k, _ := range v {
  5573. v2[i] = float64(k)
  5574. i++
  5575. }
  5576. sort.Sort(floatSlice(v2))
  5577. for _, k2 := range v2 {
  5578. if cr != nil {
  5579. cr.sendContainerState(containerMapKey)
  5580. }
  5581. ee.EncodeFloat32(float32(k2))
  5582. if cr != nil {
  5583. cr.sendContainerState(containerMapValue)
  5584. }
  5585. ee.EncodeInt(int64(v[float32(k2)]))
  5586. }
  5587. } else {
  5588. for k2, v2 := range v {
  5589. if cr != nil {
  5590. cr.sendContainerState(containerMapKey)
  5591. }
  5592. ee.EncodeFloat32(k2)
  5593. if cr != nil {
  5594. cr.sendContainerState(containerMapValue)
  5595. }
  5596. ee.EncodeInt(int64(v2))
  5597. }
  5598. }
  5599. if cr != nil {
  5600. cr.sendContainerState(containerMapEnd)
  5601. }
  5602. }
  5603. func (f *encFnInfo) fastpathEncMapFloat32Float32R(rv reflect.Value) {
  5604. fastpathTV.EncMapFloat32Float32V(rv.Interface().(map[float32]float32), fastpathCheckNilFalse, f.e)
  5605. }
  5606. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, checkNil bool, e *Encoder) {
  5607. ee := e.e
  5608. cr := e.cr
  5609. if checkNil && v == nil {
  5610. ee.EncodeNil()
  5611. return
  5612. }
  5613. ee.EncodeMapStart(len(v))
  5614. if e.h.Canonical {
  5615. v2 := make([]float64, len(v))
  5616. var i int
  5617. for k, _ := range v {
  5618. v2[i] = float64(k)
  5619. i++
  5620. }
  5621. sort.Sort(floatSlice(v2))
  5622. for _, k2 := range v2 {
  5623. if cr != nil {
  5624. cr.sendContainerState(containerMapKey)
  5625. }
  5626. ee.EncodeFloat32(float32(k2))
  5627. if cr != nil {
  5628. cr.sendContainerState(containerMapValue)
  5629. }
  5630. ee.EncodeFloat32(v[float32(k2)])
  5631. }
  5632. } else {
  5633. for k2, v2 := range v {
  5634. if cr != nil {
  5635. cr.sendContainerState(containerMapKey)
  5636. }
  5637. ee.EncodeFloat32(k2)
  5638. if cr != nil {
  5639. cr.sendContainerState(containerMapValue)
  5640. }
  5641. ee.EncodeFloat32(v2)
  5642. }
  5643. }
  5644. if cr != nil {
  5645. cr.sendContainerState(containerMapEnd)
  5646. }
  5647. }
  5648. func (f *encFnInfo) fastpathEncMapFloat32Float64R(rv reflect.Value) {
  5649. fastpathTV.EncMapFloat32Float64V(rv.Interface().(map[float32]float64), fastpathCheckNilFalse, f.e)
  5650. }
  5651. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, checkNil bool, e *Encoder) {
  5652. ee := e.e
  5653. cr := e.cr
  5654. if checkNil && v == nil {
  5655. ee.EncodeNil()
  5656. return
  5657. }
  5658. ee.EncodeMapStart(len(v))
  5659. if e.h.Canonical {
  5660. v2 := make([]float64, len(v))
  5661. var i int
  5662. for k, _ := range v {
  5663. v2[i] = float64(k)
  5664. i++
  5665. }
  5666. sort.Sort(floatSlice(v2))
  5667. for _, k2 := range v2 {
  5668. if cr != nil {
  5669. cr.sendContainerState(containerMapKey)
  5670. }
  5671. ee.EncodeFloat32(float32(k2))
  5672. if cr != nil {
  5673. cr.sendContainerState(containerMapValue)
  5674. }
  5675. ee.EncodeFloat64(v[float32(k2)])
  5676. }
  5677. } else {
  5678. for k2, v2 := range v {
  5679. if cr != nil {
  5680. cr.sendContainerState(containerMapKey)
  5681. }
  5682. ee.EncodeFloat32(k2)
  5683. if cr != nil {
  5684. cr.sendContainerState(containerMapValue)
  5685. }
  5686. ee.EncodeFloat64(v2)
  5687. }
  5688. }
  5689. if cr != nil {
  5690. cr.sendContainerState(containerMapEnd)
  5691. }
  5692. }
  5693. func (f *encFnInfo) fastpathEncMapFloat32BoolR(rv reflect.Value) {
  5694. fastpathTV.EncMapFloat32BoolV(rv.Interface().(map[float32]bool), fastpathCheckNilFalse, f.e)
  5695. }
  5696. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, checkNil bool, e *Encoder) {
  5697. ee := e.e
  5698. cr := e.cr
  5699. if checkNil && v == nil {
  5700. ee.EncodeNil()
  5701. return
  5702. }
  5703. ee.EncodeMapStart(len(v))
  5704. if e.h.Canonical {
  5705. v2 := make([]float64, len(v))
  5706. var i int
  5707. for k, _ := range v {
  5708. v2[i] = float64(k)
  5709. i++
  5710. }
  5711. sort.Sort(floatSlice(v2))
  5712. for _, k2 := range v2 {
  5713. if cr != nil {
  5714. cr.sendContainerState(containerMapKey)
  5715. }
  5716. ee.EncodeFloat32(float32(k2))
  5717. if cr != nil {
  5718. cr.sendContainerState(containerMapValue)
  5719. }
  5720. ee.EncodeBool(v[float32(k2)])
  5721. }
  5722. } else {
  5723. for k2, v2 := range v {
  5724. if cr != nil {
  5725. cr.sendContainerState(containerMapKey)
  5726. }
  5727. ee.EncodeFloat32(k2)
  5728. if cr != nil {
  5729. cr.sendContainerState(containerMapValue)
  5730. }
  5731. ee.EncodeBool(v2)
  5732. }
  5733. }
  5734. if cr != nil {
  5735. cr.sendContainerState(containerMapEnd)
  5736. }
  5737. }
  5738. func (f *encFnInfo) fastpathEncMapFloat64IntfR(rv reflect.Value) {
  5739. fastpathTV.EncMapFloat64IntfV(rv.Interface().(map[float64]interface{}), fastpathCheckNilFalse, f.e)
  5740. }
  5741. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, checkNil bool, e *Encoder) {
  5742. ee := e.e
  5743. cr := e.cr
  5744. if checkNil && v == nil {
  5745. ee.EncodeNil()
  5746. return
  5747. }
  5748. ee.EncodeMapStart(len(v))
  5749. if e.h.Canonical {
  5750. v2 := make([]float64, len(v))
  5751. var i int
  5752. for k, _ := range v {
  5753. v2[i] = float64(k)
  5754. i++
  5755. }
  5756. sort.Sort(floatSlice(v2))
  5757. for _, k2 := range v2 {
  5758. if cr != nil {
  5759. cr.sendContainerState(containerMapKey)
  5760. }
  5761. ee.EncodeFloat64(float64(k2))
  5762. if cr != nil {
  5763. cr.sendContainerState(containerMapValue)
  5764. }
  5765. e.encode(v[float64(k2)])
  5766. }
  5767. } else {
  5768. for k2, v2 := range v {
  5769. if cr != nil {
  5770. cr.sendContainerState(containerMapKey)
  5771. }
  5772. ee.EncodeFloat64(k2)
  5773. if cr != nil {
  5774. cr.sendContainerState(containerMapValue)
  5775. }
  5776. e.encode(v2)
  5777. }
  5778. }
  5779. if cr != nil {
  5780. cr.sendContainerState(containerMapEnd)
  5781. }
  5782. }
  5783. func (f *encFnInfo) fastpathEncMapFloat64StringR(rv reflect.Value) {
  5784. fastpathTV.EncMapFloat64StringV(rv.Interface().(map[float64]string), fastpathCheckNilFalse, f.e)
  5785. }
  5786. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, checkNil bool, e *Encoder) {
  5787. ee := e.e
  5788. cr := e.cr
  5789. if checkNil && v == nil {
  5790. ee.EncodeNil()
  5791. return
  5792. }
  5793. ee.EncodeMapStart(len(v))
  5794. if e.h.Canonical {
  5795. v2 := make([]float64, len(v))
  5796. var i int
  5797. for k, _ := range v {
  5798. v2[i] = float64(k)
  5799. i++
  5800. }
  5801. sort.Sort(floatSlice(v2))
  5802. for _, k2 := range v2 {
  5803. if cr != nil {
  5804. cr.sendContainerState(containerMapKey)
  5805. }
  5806. ee.EncodeFloat64(float64(k2))
  5807. if cr != nil {
  5808. cr.sendContainerState(containerMapValue)
  5809. }
  5810. ee.EncodeString(c_UTF8, v[float64(k2)])
  5811. }
  5812. } else {
  5813. for k2, v2 := range v {
  5814. if cr != nil {
  5815. cr.sendContainerState(containerMapKey)
  5816. }
  5817. ee.EncodeFloat64(k2)
  5818. if cr != nil {
  5819. cr.sendContainerState(containerMapValue)
  5820. }
  5821. ee.EncodeString(c_UTF8, v2)
  5822. }
  5823. }
  5824. if cr != nil {
  5825. cr.sendContainerState(containerMapEnd)
  5826. }
  5827. }
  5828. func (f *encFnInfo) fastpathEncMapFloat64UintR(rv reflect.Value) {
  5829. fastpathTV.EncMapFloat64UintV(rv.Interface().(map[float64]uint), fastpathCheckNilFalse, f.e)
  5830. }
  5831. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, checkNil bool, e *Encoder) {
  5832. ee := e.e
  5833. cr := e.cr
  5834. if checkNil && v == nil {
  5835. ee.EncodeNil()
  5836. return
  5837. }
  5838. ee.EncodeMapStart(len(v))
  5839. if e.h.Canonical {
  5840. v2 := make([]float64, len(v))
  5841. var i int
  5842. for k, _ := range v {
  5843. v2[i] = float64(k)
  5844. i++
  5845. }
  5846. sort.Sort(floatSlice(v2))
  5847. for _, k2 := range v2 {
  5848. if cr != nil {
  5849. cr.sendContainerState(containerMapKey)
  5850. }
  5851. ee.EncodeFloat64(float64(k2))
  5852. if cr != nil {
  5853. cr.sendContainerState(containerMapValue)
  5854. }
  5855. ee.EncodeUint(uint64(v[float64(k2)]))
  5856. }
  5857. } else {
  5858. for k2, v2 := range v {
  5859. if cr != nil {
  5860. cr.sendContainerState(containerMapKey)
  5861. }
  5862. ee.EncodeFloat64(k2)
  5863. if cr != nil {
  5864. cr.sendContainerState(containerMapValue)
  5865. }
  5866. ee.EncodeUint(uint64(v2))
  5867. }
  5868. }
  5869. if cr != nil {
  5870. cr.sendContainerState(containerMapEnd)
  5871. }
  5872. }
  5873. func (f *encFnInfo) fastpathEncMapFloat64Uint8R(rv reflect.Value) {
  5874. fastpathTV.EncMapFloat64Uint8V(rv.Interface().(map[float64]uint8), fastpathCheckNilFalse, f.e)
  5875. }
  5876. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, checkNil bool, e *Encoder) {
  5877. ee := e.e
  5878. cr := e.cr
  5879. if checkNil && v == nil {
  5880. ee.EncodeNil()
  5881. return
  5882. }
  5883. ee.EncodeMapStart(len(v))
  5884. if e.h.Canonical {
  5885. v2 := make([]float64, len(v))
  5886. var i int
  5887. for k, _ := range v {
  5888. v2[i] = float64(k)
  5889. i++
  5890. }
  5891. sort.Sort(floatSlice(v2))
  5892. for _, k2 := range v2 {
  5893. if cr != nil {
  5894. cr.sendContainerState(containerMapKey)
  5895. }
  5896. ee.EncodeFloat64(float64(k2))
  5897. if cr != nil {
  5898. cr.sendContainerState(containerMapValue)
  5899. }
  5900. ee.EncodeUint(uint64(v[float64(k2)]))
  5901. }
  5902. } else {
  5903. for k2, v2 := range v {
  5904. if cr != nil {
  5905. cr.sendContainerState(containerMapKey)
  5906. }
  5907. ee.EncodeFloat64(k2)
  5908. if cr != nil {
  5909. cr.sendContainerState(containerMapValue)
  5910. }
  5911. ee.EncodeUint(uint64(v2))
  5912. }
  5913. }
  5914. if cr != nil {
  5915. cr.sendContainerState(containerMapEnd)
  5916. }
  5917. }
  5918. func (f *encFnInfo) fastpathEncMapFloat64Uint16R(rv reflect.Value) {
  5919. fastpathTV.EncMapFloat64Uint16V(rv.Interface().(map[float64]uint16), fastpathCheckNilFalse, f.e)
  5920. }
  5921. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, checkNil bool, e *Encoder) {
  5922. ee := e.e
  5923. cr := e.cr
  5924. if checkNil && v == nil {
  5925. ee.EncodeNil()
  5926. return
  5927. }
  5928. ee.EncodeMapStart(len(v))
  5929. if e.h.Canonical {
  5930. v2 := make([]float64, len(v))
  5931. var i int
  5932. for k, _ := range v {
  5933. v2[i] = float64(k)
  5934. i++
  5935. }
  5936. sort.Sort(floatSlice(v2))
  5937. for _, k2 := range v2 {
  5938. if cr != nil {
  5939. cr.sendContainerState(containerMapKey)
  5940. }
  5941. ee.EncodeFloat64(float64(k2))
  5942. if cr != nil {
  5943. cr.sendContainerState(containerMapValue)
  5944. }
  5945. ee.EncodeUint(uint64(v[float64(k2)]))
  5946. }
  5947. } else {
  5948. for k2, v2 := range v {
  5949. if cr != nil {
  5950. cr.sendContainerState(containerMapKey)
  5951. }
  5952. ee.EncodeFloat64(k2)
  5953. if cr != nil {
  5954. cr.sendContainerState(containerMapValue)
  5955. }
  5956. ee.EncodeUint(uint64(v2))
  5957. }
  5958. }
  5959. if cr != nil {
  5960. cr.sendContainerState(containerMapEnd)
  5961. }
  5962. }
  5963. func (f *encFnInfo) fastpathEncMapFloat64Uint32R(rv reflect.Value) {
  5964. fastpathTV.EncMapFloat64Uint32V(rv.Interface().(map[float64]uint32), fastpathCheckNilFalse, f.e)
  5965. }
  5966. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, checkNil bool, e *Encoder) {
  5967. ee := e.e
  5968. cr := e.cr
  5969. if checkNil && v == nil {
  5970. ee.EncodeNil()
  5971. return
  5972. }
  5973. ee.EncodeMapStart(len(v))
  5974. if e.h.Canonical {
  5975. v2 := make([]float64, len(v))
  5976. var i int
  5977. for k, _ := range v {
  5978. v2[i] = float64(k)
  5979. i++
  5980. }
  5981. sort.Sort(floatSlice(v2))
  5982. for _, k2 := range v2 {
  5983. if cr != nil {
  5984. cr.sendContainerState(containerMapKey)
  5985. }
  5986. ee.EncodeFloat64(float64(k2))
  5987. if cr != nil {
  5988. cr.sendContainerState(containerMapValue)
  5989. }
  5990. ee.EncodeUint(uint64(v[float64(k2)]))
  5991. }
  5992. } else {
  5993. for k2, v2 := range v {
  5994. if cr != nil {
  5995. cr.sendContainerState(containerMapKey)
  5996. }
  5997. ee.EncodeFloat64(k2)
  5998. if cr != nil {
  5999. cr.sendContainerState(containerMapValue)
  6000. }
  6001. ee.EncodeUint(uint64(v2))
  6002. }
  6003. }
  6004. if cr != nil {
  6005. cr.sendContainerState(containerMapEnd)
  6006. }
  6007. }
  6008. func (f *encFnInfo) fastpathEncMapFloat64Uint64R(rv reflect.Value) {
  6009. fastpathTV.EncMapFloat64Uint64V(rv.Interface().(map[float64]uint64), fastpathCheckNilFalse, f.e)
  6010. }
  6011. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, checkNil bool, e *Encoder) {
  6012. ee := e.e
  6013. cr := e.cr
  6014. if checkNil && v == nil {
  6015. ee.EncodeNil()
  6016. return
  6017. }
  6018. ee.EncodeMapStart(len(v))
  6019. if e.h.Canonical {
  6020. v2 := make([]float64, len(v))
  6021. var i int
  6022. for k, _ := range v {
  6023. v2[i] = float64(k)
  6024. i++
  6025. }
  6026. sort.Sort(floatSlice(v2))
  6027. for _, k2 := range v2 {
  6028. if cr != nil {
  6029. cr.sendContainerState(containerMapKey)
  6030. }
  6031. ee.EncodeFloat64(float64(k2))
  6032. if cr != nil {
  6033. cr.sendContainerState(containerMapValue)
  6034. }
  6035. ee.EncodeUint(uint64(v[float64(k2)]))
  6036. }
  6037. } else {
  6038. for k2, v2 := range v {
  6039. if cr != nil {
  6040. cr.sendContainerState(containerMapKey)
  6041. }
  6042. ee.EncodeFloat64(k2)
  6043. if cr != nil {
  6044. cr.sendContainerState(containerMapValue)
  6045. }
  6046. ee.EncodeUint(uint64(v2))
  6047. }
  6048. }
  6049. if cr != nil {
  6050. cr.sendContainerState(containerMapEnd)
  6051. }
  6052. }
  6053. func (f *encFnInfo) fastpathEncMapFloat64UintptrR(rv reflect.Value) {
  6054. fastpathTV.EncMapFloat64UintptrV(rv.Interface().(map[float64]uintptr), fastpathCheckNilFalse, f.e)
  6055. }
  6056. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, checkNil bool, e *Encoder) {
  6057. ee := e.e
  6058. cr := e.cr
  6059. if checkNil && v == nil {
  6060. ee.EncodeNil()
  6061. return
  6062. }
  6063. ee.EncodeMapStart(len(v))
  6064. if e.h.Canonical {
  6065. v2 := make([]float64, len(v))
  6066. var i int
  6067. for k, _ := range v {
  6068. v2[i] = float64(k)
  6069. i++
  6070. }
  6071. sort.Sort(floatSlice(v2))
  6072. for _, k2 := range v2 {
  6073. if cr != nil {
  6074. cr.sendContainerState(containerMapKey)
  6075. }
  6076. ee.EncodeFloat64(float64(k2))
  6077. if cr != nil {
  6078. cr.sendContainerState(containerMapValue)
  6079. }
  6080. e.encode(v[float64(k2)])
  6081. }
  6082. } else {
  6083. for k2, v2 := range v {
  6084. if cr != nil {
  6085. cr.sendContainerState(containerMapKey)
  6086. }
  6087. ee.EncodeFloat64(k2)
  6088. if cr != nil {
  6089. cr.sendContainerState(containerMapValue)
  6090. }
  6091. e.encode(v2)
  6092. }
  6093. }
  6094. if cr != nil {
  6095. cr.sendContainerState(containerMapEnd)
  6096. }
  6097. }
  6098. func (f *encFnInfo) fastpathEncMapFloat64IntR(rv reflect.Value) {
  6099. fastpathTV.EncMapFloat64IntV(rv.Interface().(map[float64]int), fastpathCheckNilFalse, f.e)
  6100. }
  6101. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, checkNil bool, e *Encoder) {
  6102. ee := e.e
  6103. cr := e.cr
  6104. if checkNil && v == nil {
  6105. ee.EncodeNil()
  6106. return
  6107. }
  6108. ee.EncodeMapStart(len(v))
  6109. if e.h.Canonical {
  6110. v2 := make([]float64, len(v))
  6111. var i int
  6112. for k, _ := range v {
  6113. v2[i] = float64(k)
  6114. i++
  6115. }
  6116. sort.Sort(floatSlice(v2))
  6117. for _, k2 := range v2 {
  6118. if cr != nil {
  6119. cr.sendContainerState(containerMapKey)
  6120. }
  6121. ee.EncodeFloat64(float64(k2))
  6122. if cr != nil {
  6123. cr.sendContainerState(containerMapValue)
  6124. }
  6125. ee.EncodeInt(int64(v[float64(k2)]))
  6126. }
  6127. } else {
  6128. for k2, v2 := range v {
  6129. if cr != nil {
  6130. cr.sendContainerState(containerMapKey)
  6131. }
  6132. ee.EncodeFloat64(k2)
  6133. if cr != nil {
  6134. cr.sendContainerState(containerMapValue)
  6135. }
  6136. ee.EncodeInt(int64(v2))
  6137. }
  6138. }
  6139. if cr != nil {
  6140. cr.sendContainerState(containerMapEnd)
  6141. }
  6142. }
  6143. func (f *encFnInfo) fastpathEncMapFloat64Int8R(rv reflect.Value) {
  6144. fastpathTV.EncMapFloat64Int8V(rv.Interface().(map[float64]int8), fastpathCheckNilFalse, f.e)
  6145. }
  6146. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, checkNil bool, e *Encoder) {
  6147. ee := e.e
  6148. cr := e.cr
  6149. if checkNil && v == nil {
  6150. ee.EncodeNil()
  6151. return
  6152. }
  6153. ee.EncodeMapStart(len(v))
  6154. if e.h.Canonical {
  6155. v2 := make([]float64, len(v))
  6156. var i int
  6157. for k, _ := range v {
  6158. v2[i] = float64(k)
  6159. i++
  6160. }
  6161. sort.Sort(floatSlice(v2))
  6162. for _, k2 := range v2 {
  6163. if cr != nil {
  6164. cr.sendContainerState(containerMapKey)
  6165. }
  6166. ee.EncodeFloat64(float64(k2))
  6167. if cr != nil {
  6168. cr.sendContainerState(containerMapValue)
  6169. }
  6170. ee.EncodeInt(int64(v[float64(k2)]))
  6171. }
  6172. } else {
  6173. for k2, v2 := range v {
  6174. if cr != nil {
  6175. cr.sendContainerState(containerMapKey)
  6176. }
  6177. ee.EncodeFloat64(k2)
  6178. if cr != nil {
  6179. cr.sendContainerState(containerMapValue)
  6180. }
  6181. ee.EncodeInt(int64(v2))
  6182. }
  6183. }
  6184. if cr != nil {
  6185. cr.sendContainerState(containerMapEnd)
  6186. }
  6187. }
  6188. func (f *encFnInfo) fastpathEncMapFloat64Int16R(rv reflect.Value) {
  6189. fastpathTV.EncMapFloat64Int16V(rv.Interface().(map[float64]int16), fastpathCheckNilFalse, f.e)
  6190. }
  6191. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, checkNil bool, e *Encoder) {
  6192. ee := e.e
  6193. cr := e.cr
  6194. if checkNil && v == nil {
  6195. ee.EncodeNil()
  6196. return
  6197. }
  6198. ee.EncodeMapStart(len(v))
  6199. if e.h.Canonical {
  6200. v2 := make([]float64, len(v))
  6201. var i int
  6202. for k, _ := range v {
  6203. v2[i] = float64(k)
  6204. i++
  6205. }
  6206. sort.Sort(floatSlice(v2))
  6207. for _, k2 := range v2 {
  6208. if cr != nil {
  6209. cr.sendContainerState(containerMapKey)
  6210. }
  6211. ee.EncodeFloat64(float64(k2))
  6212. if cr != nil {
  6213. cr.sendContainerState(containerMapValue)
  6214. }
  6215. ee.EncodeInt(int64(v[float64(k2)]))
  6216. }
  6217. } else {
  6218. for k2, v2 := range v {
  6219. if cr != nil {
  6220. cr.sendContainerState(containerMapKey)
  6221. }
  6222. ee.EncodeFloat64(k2)
  6223. if cr != nil {
  6224. cr.sendContainerState(containerMapValue)
  6225. }
  6226. ee.EncodeInt(int64(v2))
  6227. }
  6228. }
  6229. if cr != nil {
  6230. cr.sendContainerState(containerMapEnd)
  6231. }
  6232. }
  6233. func (f *encFnInfo) fastpathEncMapFloat64Int32R(rv reflect.Value) {
  6234. fastpathTV.EncMapFloat64Int32V(rv.Interface().(map[float64]int32), fastpathCheckNilFalse, f.e)
  6235. }
  6236. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, checkNil bool, e *Encoder) {
  6237. ee := e.e
  6238. cr := e.cr
  6239. if checkNil && v == nil {
  6240. ee.EncodeNil()
  6241. return
  6242. }
  6243. ee.EncodeMapStart(len(v))
  6244. if e.h.Canonical {
  6245. v2 := make([]float64, len(v))
  6246. var i int
  6247. for k, _ := range v {
  6248. v2[i] = float64(k)
  6249. i++
  6250. }
  6251. sort.Sort(floatSlice(v2))
  6252. for _, k2 := range v2 {
  6253. if cr != nil {
  6254. cr.sendContainerState(containerMapKey)
  6255. }
  6256. ee.EncodeFloat64(float64(k2))
  6257. if cr != nil {
  6258. cr.sendContainerState(containerMapValue)
  6259. }
  6260. ee.EncodeInt(int64(v[float64(k2)]))
  6261. }
  6262. } else {
  6263. for k2, v2 := range v {
  6264. if cr != nil {
  6265. cr.sendContainerState(containerMapKey)
  6266. }
  6267. ee.EncodeFloat64(k2)
  6268. if cr != nil {
  6269. cr.sendContainerState(containerMapValue)
  6270. }
  6271. ee.EncodeInt(int64(v2))
  6272. }
  6273. }
  6274. if cr != nil {
  6275. cr.sendContainerState(containerMapEnd)
  6276. }
  6277. }
  6278. func (f *encFnInfo) fastpathEncMapFloat64Int64R(rv reflect.Value) {
  6279. fastpathTV.EncMapFloat64Int64V(rv.Interface().(map[float64]int64), fastpathCheckNilFalse, f.e)
  6280. }
  6281. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, checkNil bool, e *Encoder) {
  6282. ee := e.e
  6283. cr := e.cr
  6284. if checkNil && v == nil {
  6285. ee.EncodeNil()
  6286. return
  6287. }
  6288. ee.EncodeMapStart(len(v))
  6289. if e.h.Canonical {
  6290. v2 := make([]float64, len(v))
  6291. var i int
  6292. for k, _ := range v {
  6293. v2[i] = float64(k)
  6294. i++
  6295. }
  6296. sort.Sort(floatSlice(v2))
  6297. for _, k2 := range v2 {
  6298. if cr != nil {
  6299. cr.sendContainerState(containerMapKey)
  6300. }
  6301. ee.EncodeFloat64(float64(k2))
  6302. if cr != nil {
  6303. cr.sendContainerState(containerMapValue)
  6304. }
  6305. ee.EncodeInt(int64(v[float64(k2)]))
  6306. }
  6307. } else {
  6308. for k2, v2 := range v {
  6309. if cr != nil {
  6310. cr.sendContainerState(containerMapKey)
  6311. }
  6312. ee.EncodeFloat64(k2)
  6313. if cr != nil {
  6314. cr.sendContainerState(containerMapValue)
  6315. }
  6316. ee.EncodeInt(int64(v2))
  6317. }
  6318. }
  6319. if cr != nil {
  6320. cr.sendContainerState(containerMapEnd)
  6321. }
  6322. }
  6323. func (f *encFnInfo) fastpathEncMapFloat64Float32R(rv reflect.Value) {
  6324. fastpathTV.EncMapFloat64Float32V(rv.Interface().(map[float64]float32), fastpathCheckNilFalse, f.e)
  6325. }
  6326. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, checkNil bool, e *Encoder) {
  6327. ee := e.e
  6328. cr := e.cr
  6329. if checkNil && v == nil {
  6330. ee.EncodeNil()
  6331. return
  6332. }
  6333. ee.EncodeMapStart(len(v))
  6334. if e.h.Canonical {
  6335. v2 := make([]float64, len(v))
  6336. var i int
  6337. for k, _ := range v {
  6338. v2[i] = float64(k)
  6339. i++
  6340. }
  6341. sort.Sort(floatSlice(v2))
  6342. for _, k2 := range v2 {
  6343. if cr != nil {
  6344. cr.sendContainerState(containerMapKey)
  6345. }
  6346. ee.EncodeFloat64(float64(k2))
  6347. if cr != nil {
  6348. cr.sendContainerState(containerMapValue)
  6349. }
  6350. ee.EncodeFloat32(v[float64(k2)])
  6351. }
  6352. } else {
  6353. for k2, v2 := range v {
  6354. if cr != nil {
  6355. cr.sendContainerState(containerMapKey)
  6356. }
  6357. ee.EncodeFloat64(k2)
  6358. if cr != nil {
  6359. cr.sendContainerState(containerMapValue)
  6360. }
  6361. ee.EncodeFloat32(v2)
  6362. }
  6363. }
  6364. if cr != nil {
  6365. cr.sendContainerState(containerMapEnd)
  6366. }
  6367. }
  6368. func (f *encFnInfo) fastpathEncMapFloat64Float64R(rv reflect.Value) {
  6369. fastpathTV.EncMapFloat64Float64V(rv.Interface().(map[float64]float64), fastpathCheckNilFalse, f.e)
  6370. }
  6371. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, checkNil bool, e *Encoder) {
  6372. ee := e.e
  6373. cr := e.cr
  6374. if checkNil && v == nil {
  6375. ee.EncodeNil()
  6376. return
  6377. }
  6378. ee.EncodeMapStart(len(v))
  6379. if e.h.Canonical {
  6380. v2 := make([]float64, len(v))
  6381. var i int
  6382. for k, _ := range v {
  6383. v2[i] = float64(k)
  6384. i++
  6385. }
  6386. sort.Sort(floatSlice(v2))
  6387. for _, k2 := range v2 {
  6388. if cr != nil {
  6389. cr.sendContainerState(containerMapKey)
  6390. }
  6391. ee.EncodeFloat64(float64(k2))
  6392. if cr != nil {
  6393. cr.sendContainerState(containerMapValue)
  6394. }
  6395. ee.EncodeFloat64(v[float64(k2)])
  6396. }
  6397. } else {
  6398. for k2, v2 := range v {
  6399. if cr != nil {
  6400. cr.sendContainerState(containerMapKey)
  6401. }
  6402. ee.EncodeFloat64(k2)
  6403. if cr != nil {
  6404. cr.sendContainerState(containerMapValue)
  6405. }
  6406. ee.EncodeFloat64(v2)
  6407. }
  6408. }
  6409. if cr != nil {
  6410. cr.sendContainerState(containerMapEnd)
  6411. }
  6412. }
  6413. func (f *encFnInfo) fastpathEncMapFloat64BoolR(rv reflect.Value) {
  6414. fastpathTV.EncMapFloat64BoolV(rv.Interface().(map[float64]bool), fastpathCheckNilFalse, f.e)
  6415. }
  6416. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, checkNil bool, e *Encoder) {
  6417. ee := e.e
  6418. cr := e.cr
  6419. if checkNil && v == nil {
  6420. ee.EncodeNil()
  6421. return
  6422. }
  6423. ee.EncodeMapStart(len(v))
  6424. if e.h.Canonical {
  6425. v2 := make([]float64, len(v))
  6426. var i int
  6427. for k, _ := range v {
  6428. v2[i] = float64(k)
  6429. i++
  6430. }
  6431. sort.Sort(floatSlice(v2))
  6432. for _, k2 := range v2 {
  6433. if cr != nil {
  6434. cr.sendContainerState(containerMapKey)
  6435. }
  6436. ee.EncodeFloat64(float64(k2))
  6437. if cr != nil {
  6438. cr.sendContainerState(containerMapValue)
  6439. }
  6440. ee.EncodeBool(v[float64(k2)])
  6441. }
  6442. } else {
  6443. for k2, v2 := range v {
  6444. if cr != nil {
  6445. cr.sendContainerState(containerMapKey)
  6446. }
  6447. ee.EncodeFloat64(k2)
  6448. if cr != nil {
  6449. cr.sendContainerState(containerMapValue)
  6450. }
  6451. ee.EncodeBool(v2)
  6452. }
  6453. }
  6454. if cr != nil {
  6455. cr.sendContainerState(containerMapEnd)
  6456. }
  6457. }
  6458. func (f *encFnInfo) fastpathEncMapUintIntfR(rv reflect.Value) {
  6459. fastpathTV.EncMapUintIntfV(rv.Interface().(map[uint]interface{}), fastpathCheckNilFalse, f.e)
  6460. }
  6461. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, checkNil bool, e *Encoder) {
  6462. ee := e.e
  6463. cr := e.cr
  6464. if checkNil && v == nil {
  6465. ee.EncodeNil()
  6466. return
  6467. }
  6468. ee.EncodeMapStart(len(v))
  6469. if e.h.Canonical {
  6470. v2 := make([]uint64, len(v))
  6471. var i int
  6472. for k, _ := range v {
  6473. v2[i] = uint64(k)
  6474. i++
  6475. }
  6476. sort.Sort(uintSlice(v2))
  6477. for _, k2 := range v2 {
  6478. if cr != nil {
  6479. cr.sendContainerState(containerMapKey)
  6480. }
  6481. ee.EncodeUint(uint64(uint(k2)))
  6482. if cr != nil {
  6483. cr.sendContainerState(containerMapValue)
  6484. }
  6485. e.encode(v[uint(k2)])
  6486. }
  6487. } else {
  6488. for k2, v2 := range v {
  6489. if cr != nil {
  6490. cr.sendContainerState(containerMapKey)
  6491. }
  6492. ee.EncodeUint(uint64(k2))
  6493. if cr != nil {
  6494. cr.sendContainerState(containerMapValue)
  6495. }
  6496. e.encode(v2)
  6497. }
  6498. }
  6499. if cr != nil {
  6500. cr.sendContainerState(containerMapEnd)
  6501. }
  6502. }
  6503. func (f *encFnInfo) fastpathEncMapUintStringR(rv reflect.Value) {
  6504. fastpathTV.EncMapUintStringV(rv.Interface().(map[uint]string), fastpathCheckNilFalse, f.e)
  6505. }
  6506. func (_ fastpathT) EncMapUintStringV(v map[uint]string, checkNil bool, e *Encoder) {
  6507. ee := e.e
  6508. cr := e.cr
  6509. if checkNil && v == nil {
  6510. ee.EncodeNil()
  6511. return
  6512. }
  6513. ee.EncodeMapStart(len(v))
  6514. if e.h.Canonical {
  6515. v2 := make([]uint64, len(v))
  6516. var i int
  6517. for k, _ := range v {
  6518. v2[i] = uint64(k)
  6519. i++
  6520. }
  6521. sort.Sort(uintSlice(v2))
  6522. for _, k2 := range v2 {
  6523. if cr != nil {
  6524. cr.sendContainerState(containerMapKey)
  6525. }
  6526. ee.EncodeUint(uint64(uint(k2)))
  6527. if cr != nil {
  6528. cr.sendContainerState(containerMapValue)
  6529. }
  6530. ee.EncodeString(c_UTF8, v[uint(k2)])
  6531. }
  6532. } else {
  6533. for k2, v2 := range v {
  6534. if cr != nil {
  6535. cr.sendContainerState(containerMapKey)
  6536. }
  6537. ee.EncodeUint(uint64(k2))
  6538. if cr != nil {
  6539. cr.sendContainerState(containerMapValue)
  6540. }
  6541. ee.EncodeString(c_UTF8, v2)
  6542. }
  6543. }
  6544. if cr != nil {
  6545. cr.sendContainerState(containerMapEnd)
  6546. }
  6547. }
  6548. func (f *encFnInfo) fastpathEncMapUintUintR(rv reflect.Value) {
  6549. fastpathTV.EncMapUintUintV(rv.Interface().(map[uint]uint), fastpathCheckNilFalse, f.e)
  6550. }
  6551. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, checkNil bool, e *Encoder) {
  6552. ee := e.e
  6553. cr := e.cr
  6554. if checkNil && v == nil {
  6555. ee.EncodeNil()
  6556. return
  6557. }
  6558. ee.EncodeMapStart(len(v))
  6559. if e.h.Canonical {
  6560. v2 := make([]uint64, len(v))
  6561. var i int
  6562. for k, _ := range v {
  6563. v2[i] = uint64(k)
  6564. i++
  6565. }
  6566. sort.Sort(uintSlice(v2))
  6567. for _, k2 := range v2 {
  6568. if cr != nil {
  6569. cr.sendContainerState(containerMapKey)
  6570. }
  6571. ee.EncodeUint(uint64(uint(k2)))
  6572. if cr != nil {
  6573. cr.sendContainerState(containerMapValue)
  6574. }
  6575. ee.EncodeUint(uint64(v[uint(k2)]))
  6576. }
  6577. } else {
  6578. for k2, v2 := range v {
  6579. if cr != nil {
  6580. cr.sendContainerState(containerMapKey)
  6581. }
  6582. ee.EncodeUint(uint64(k2))
  6583. if cr != nil {
  6584. cr.sendContainerState(containerMapValue)
  6585. }
  6586. ee.EncodeUint(uint64(v2))
  6587. }
  6588. }
  6589. if cr != nil {
  6590. cr.sendContainerState(containerMapEnd)
  6591. }
  6592. }
  6593. func (f *encFnInfo) fastpathEncMapUintUint8R(rv reflect.Value) {
  6594. fastpathTV.EncMapUintUint8V(rv.Interface().(map[uint]uint8), fastpathCheckNilFalse, f.e)
  6595. }
  6596. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, checkNil bool, e *Encoder) {
  6597. ee := e.e
  6598. cr := e.cr
  6599. if checkNil && v == nil {
  6600. ee.EncodeNil()
  6601. return
  6602. }
  6603. ee.EncodeMapStart(len(v))
  6604. if e.h.Canonical {
  6605. v2 := make([]uint64, len(v))
  6606. var i int
  6607. for k, _ := range v {
  6608. v2[i] = uint64(k)
  6609. i++
  6610. }
  6611. sort.Sort(uintSlice(v2))
  6612. for _, k2 := range v2 {
  6613. if cr != nil {
  6614. cr.sendContainerState(containerMapKey)
  6615. }
  6616. ee.EncodeUint(uint64(uint(k2)))
  6617. if cr != nil {
  6618. cr.sendContainerState(containerMapValue)
  6619. }
  6620. ee.EncodeUint(uint64(v[uint(k2)]))
  6621. }
  6622. } else {
  6623. for k2, v2 := range v {
  6624. if cr != nil {
  6625. cr.sendContainerState(containerMapKey)
  6626. }
  6627. ee.EncodeUint(uint64(k2))
  6628. if cr != nil {
  6629. cr.sendContainerState(containerMapValue)
  6630. }
  6631. ee.EncodeUint(uint64(v2))
  6632. }
  6633. }
  6634. if cr != nil {
  6635. cr.sendContainerState(containerMapEnd)
  6636. }
  6637. }
  6638. func (f *encFnInfo) fastpathEncMapUintUint16R(rv reflect.Value) {
  6639. fastpathTV.EncMapUintUint16V(rv.Interface().(map[uint]uint16), fastpathCheckNilFalse, f.e)
  6640. }
  6641. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, checkNil bool, e *Encoder) {
  6642. ee := e.e
  6643. cr := e.cr
  6644. if checkNil && v == nil {
  6645. ee.EncodeNil()
  6646. return
  6647. }
  6648. ee.EncodeMapStart(len(v))
  6649. if e.h.Canonical {
  6650. v2 := make([]uint64, len(v))
  6651. var i int
  6652. for k, _ := range v {
  6653. v2[i] = uint64(k)
  6654. i++
  6655. }
  6656. sort.Sort(uintSlice(v2))
  6657. for _, k2 := range v2 {
  6658. if cr != nil {
  6659. cr.sendContainerState(containerMapKey)
  6660. }
  6661. ee.EncodeUint(uint64(uint(k2)))
  6662. if cr != nil {
  6663. cr.sendContainerState(containerMapValue)
  6664. }
  6665. ee.EncodeUint(uint64(v[uint(k2)]))
  6666. }
  6667. } else {
  6668. for k2, v2 := range v {
  6669. if cr != nil {
  6670. cr.sendContainerState(containerMapKey)
  6671. }
  6672. ee.EncodeUint(uint64(k2))
  6673. if cr != nil {
  6674. cr.sendContainerState(containerMapValue)
  6675. }
  6676. ee.EncodeUint(uint64(v2))
  6677. }
  6678. }
  6679. if cr != nil {
  6680. cr.sendContainerState(containerMapEnd)
  6681. }
  6682. }
  6683. func (f *encFnInfo) fastpathEncMapUintUint32R(rv reflect.Value) {
  6684. fastpathTV.EncMapUintUint32V(rv.Interface().(map[uint]uint32), fastpathCheckNilFalse, f.e)
  6685. }
  6686. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, checkNil bool, e *Encoder) {
  6687. ee := e.e
  6688. cr := e.cr
  6689. if checkNil && v == nil {
  6690. ee.EncodeNil()
  6691. return
  6692. }
  6693. ee.EncodeMapStart(len(v))
  6694. if e.h.Canonical {
  6695. v2 := make([]uint64, len(v))
  6696. var i int
  6697. for k, _ := range v {
  6698. v2[i] = uint64(k)
  6699. i++
  6700. }
  6701. sort.Sort(uintSlice(v2))
  6702. for _, k2 := range v2 {
  6703. if cr != nil {
  6704. cr.sendContainerState(containerMapKey)
  6705. }
  6706. ee.EncodeUint(uint64(uint(k2)))
  6707. if cr != nil {
  6708. cr.sendContainerState(containerMapValue)
  6709. }
  6710. ee.EncodeUint(uint64(v[uint(k2)]))
  6711. }
  6712. } else {
  6713. for k2, v2 := range v {
  6714. if cr != nil {
  6715. cr.sendContainerState(containerMapKey)
  6716. }
  6717. ee.EncodeUint(uint64(k2))
  6718. if cr != nil {
  6719. cr.sendContainerState(containerMapValue)
  6720. }
  6721. ee.EncodeUint(uint64(v2))
  6722. }
  6723. }
  6724. if cr != nil {
  6725. cr.sendContainerState(containerMapEnd)
  6726. }
  6727. }
  6728. func (f *encFnInfo) fastpathEncMapUintUint64R(rv reflect.Value) {
  6729. fastpathTV.EncMapUintUint64V(rv.Interface().(map[uint]uint64), fastpathCheckNilFalse, f.e)
  6730. }
  6731. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, checkNil bool, e *Encoder) {
  6732. ee := e.e
  6733. cr := e.cr
  6734. if checkNil && v == nil {
  6735. ee.EncodeNil()
  6736. return
  6737. }
  6738. ee.EncodeMapStart(len(v))
  6739. if e.h.Canonical {
  6740. v2 := make([]uint64, len(v))
  6741. var i int
  6742. for k, _ := range v {
  6743. v2[i] = uint64(k)
  6744. i++
  6745. }
  6746. sort.Sort(uintSlice(v2))
  6747. for _, k2 := range v2 {
  6748. if cr != nil {
  6749. cr.sendContainerState(containerMapKey)
  6750. }
  6751. ee.EncodeUint(uint64(uint(k2)))
  6752. if cr != nil {
  6753. cr.sendContainerState(containerMapValue)
  6754. }
  6755. ee.EncodeUint(uint64(v[uint(k2)]))
  6756. }
  6757. } else {
  6758. for k2, v2 := range v {
  6759. if cr != nil {
  6760. cr.sendContainerState(containerMapKey)
  6761. }
  6762. ee.EncodeUint(uint64(k2))
  6763. if cr != nil {
  6764. cr.sendContainerState(containerMapValue)
  6765. }
  6766. ee.EncodeUint(uint64(v2))
  6767. }
  6768. }
  6769. if cr != nil {
  6770. cr.sendContainerState(containerMapEnd)
  6771. }
  6772. }
  6773. func (f *encFnInfo) fastpathEncMapUintUintptrR(rv reflect.Value) {
  6774. fastpathTV.EncMapUintUintptrV(rv.Interface().(map[uint]uintptr), fastpathCheckNilFalse, f.e)
  6775. }
  6776. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, checkNil bool, e *Encoder) {
  6777. ee := e.e
  6778. cr := e.cr
  6779. if checkNil && v == nil {
  6780. ee.EncodeNil()
  6781. return
  6782. }
  6783. ee.EncodeMapStart(len(v))
  6784. if e.h.Canonical {
  6785. v2 := make([]uint64, len(v))
  6786. var i int
  6787. for k, _ := range v {
  6788. v2[i] = uint64(k)
  6789. i++
  6790. }
  6791. sort.Sort(uintSlice(v2))
  6792. for _, k2 := range v2 {
  6793. if cr != nil {
  6794. cr.sendContainerState(containerMapKey)
  6795. }
  6796. ee.EncodeUint(uint64(uint(k2)))
  6797. if cr != nil {
  6798. cr.sendContainerState(containerMapValue)
  6799. }
  6800. e.encode(v[uint(k2)])
  6801. }
  6802. } else {
  6803. for k2, v2 := range v {
  6804. if cr != nil {
  6805. cr.sendContainerState(containerMapKey)
  6806. }
  6807. ee.EncodeUint(uint64(k2))
  6808. if cr != nil {
  6809. cr.sendContainerState(containerMapValue)
  6810. }
  6811. e.encode(v2)
  6812. }
  6813. }
  6814. if cr != nil {
  6815. cr.sendContainerState(containerMapEnd)
  6816. }
  6817. }
  6818. func (f *encFnInfo) fastpathEncMapUintIntR(rv reflect.Value) {
  6819. fastpathTV.EncMapUintIntV(rv.Interface().(map[uint]int), fastpathCheckNilFalse, f.e)
  6820. }
  6821. func (_ fastpathT) EncMapUintIntV(v map[uint]int, checkNil bool, e *Encoder) {
  6822. ee := e.e
  6823. cr := e.cr
  6824. if checkNil && v == nil {
  6825. ee.EncodeNil()
  6826. return
  6827. }
  6828. ee.EncodeMapStart(len(v))
  6829. if e.h.Canonical {
  6830. v2 := make([]uint64, len(v))
  6831. var i int
  6832. for k, _ := range v {
  6833. v2[i] = uint64(k)
  6834. i++
  6835. }
  6836. sort.Sort(uintSlice(v2))
  6837. for _, k2 := range v2 {
  6838. if cr != nil {
  6839. cr.sendContainerState(containerMapKey)
  6840. }
  6841. ee.EncodeUint(uint64(uint(k2)))
  6842. if cr != nil {
  6843. cr.sendContainerState(containerMapValue)
  6844. }
  6845. ee.EncodeInt(int64(v[uint(k2)]))
  6846. }
  6847. } else {
  6848. for k2, v2 := range v {
  6849. if cr != nil {
  6850. cr.sendContainerState(containerMapKey)
  6851. }
  6852. ee.EncodeUint(uint64(k2))
  6853. if cr != nil {
  6854. cr.sendContainerState(containerMapValue)
  6855. }
  6856. ee.EncodeInt(int64(v2))
  6857. }
  6858. }
  6859. if cr != nil {
  6860. cr.sendContainerState(containerMapEnd)
  6861. }
  6862. }
  6863. func (f *encFnInfo) fastpathEncMapUintInt8R(rv reflect.Value) {
  6864. fastpathTV.EncMapUintInt8V(rv.Interface().(map[uint]int8), fastpathCheckNilFalse, f.e)
  6865. }
  6866. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, checkNil bool, e *Encoder) {
  6867. ee := e.e
  6868. cr := e.cr
  6869. if checkNil && v == nil {
  6870. ee.EncodeNil()
  6871. return
  6872. }
  6873. ee.EncodeMapStart(len(v))
  6874. if e.h.Canonical {
  6875. v2 := make([]uint64, len(v))
  6876. var i int
  6877. for k, _ := range v {
  6878. v2[i] = uint64(k)
  6879. i++
  6880. }
  6881. sort.Sort(uintSlice(v2))
  6882. for _, k2 := range v2 {
  6883. if cr != nil {
  6884. cr.sendContainerState(containerMapKey)
  6885. }
  6886. ee.EncodeUint(uint64(uint(k2)))
  6887. if cr != nil {
  6888. cr.sendContainerState(containerMapValue)
  6889. }
  6890. ee.EncodeInt(int64(v[uint(k2)]))
  6891. }
  6892. } else {
  6893. for k2, v2 := range v {
  6894. if cr != nil {
  6895. cr.sendContainerState(containerMapKey)
  6896. }
  6897. ee.EncodeUint(uint64(k2))
  6898. if cr != nil {
  6899. cr.sendContainerState(containerMapValue)
  6900. }
  6901. ee.EncodeInt(int64(v2))
  6902. }
  6903. }
  6904. if cr != nil {
  6905. cr.sendContainerState(containerMapEnd)
  6906. }
  6907. }
  6908. func (f *encFnInfo) fastpathEncMapUintInt16R(rv reflect.Value) {
  6909. fastpathTV.EncMapUintInt16V(rv.Interface().(map[uint]int16), fastpathCheckNilFalse, f.e)
  6910. }
  6911. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, checkNil bool, e *Encoder) {
  6912. ee := e.e
  6913. cr := e.cr
  6914. if checkNil && v == nil {
  6915. ee.EncodeNil()
  6916. return
  6917. }
  6918. ee.EncodeMapStart(len(v))
  6919. if e.h.Canonical {
  6920. v2 := make([]uint64, len(v))
  6921. var i int
  6922. for k, _ := range v {
  6923. v2[i] = uint64(k)
  6924. i++
  6925. }
  6926. sort.Sort(uintSlice(v2))
  6927. for _, k2 := range v2 {
  6928. if cr != nil {
  6929. cr.sendContainerState(containerMapKey)
  6930. }
  6931. ee.EncodeUint(uint64(uint(k2)))
  6932. if cr != nil {
  6933. cr.sendContainerState(containerMapValue)
  6934. }
  6935. ee.EncodeInt(int64(v[uint(k2)]))
  6936. }
  6937. } else {
  6938. for k2, v2 := range v {
  6939. if cr != nil {
  6940. cr.sendContainerState(containerMapKey)
  6941. }
  6942. ee.EncodeUint(uint64(k2))
  6943. if cr != nil {
  6944. cr.sendContainerState(containerMapValue)
  6945. }
  6946. ee.EncodeInt(int64(v2))
  6947. }
  6948. }
  6949. if cr != nil {
  6950. cr.sendContainerState(containerMapEnd)
  6951. }
  6952. }
  6953. func (f *encFnInfo) fastpathEncMapUintInt32R(rv reflect.Value) {
  6954. fastpathTV.EncMapUintInt32V(rv.Interface().(map[uint]int32), fastpathCheckNilFalse, f.e)
  6955. }
  6956. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, checkNil bool, e *Encoder) {
  6957. ee := e.e
  6958. cr := e.cr
  6959. if checkNil && v == nil {
  6960. ee.EncodeNil()
  6961. return
  6962. }
  6963. ee.EncodeMapStart(len(v))
  6964. if e.h.Canonical {
  6965. v2 := make([]uint64, len(v))
  6966. var i int
  6967. for k, _ := range v {
  6968. v2[i] = uint64(k)
  6969. i++
  6970. }
  6971. sort.Sort(uintSlice(v2))
  6972. for _, k2 := range v2 {
  6973. if cr != nil {
  6974. cr.sendContainerState(containerMapKey)
  6975. }
  6976. ee.EncodeUint(uint64(uint(k2)))
  6977. if cr != nil {
  6978. cr.sendContainerState(containerMapValue)
  6979. }
  6980. ee.EncodeInt(int64(v[uint(k2)]))
  6981. }
  6982. } else {
  6983. for k2, v2 := range v {
  6984. if cr != nil {
  6985. cr.sendContainerState(containerMapKey)
  6986. }
  6987. ee.EncodeUint(uint64(k2))
  6988. if cr != nil {
  6989. cr.sendContainerState(containerMapValue)
  6990. }
  6991. ee.EncodeInt(int64(v2))
  6992. }
  6993. }
  6994. if cr != nil {
  6995. cr.sendContainerState(containerMapEnd)
  6996. }
  6997. }
  6998. func (f *encFnInfo) fastpathEncMapUintInt64R(rv reflect.Value) {
  6999. fastpathTV.EncMapUintInt64V(rv.Interface().(map[uint]int64), fastpathCheckNilFalse, f.e)
  7000. }
  7001. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, checkNil bool, e *Encoder) {
  7002. ee := e.e
  7003. cr := e.cr
  7004. if checkNil && v == nil {
  7005. ee.EncodeNil()
  7006. return
  7007. }
  7008. ee.EncodeMapStart(len(v))
  7009. if e.h.Canonical {
  7010. v2 := make([]uint64, len(v))
  7011. var i int
  7012. for k, _ := range v {
  7013. v2[i] = uint64(k)
  7014. i++
  7015. }
  7016. sort.Sort(uintSlice(v2))
  7017. for _, k2 := range v2 {
  7018. if cr != nil {
  7019. cr.sendContainerState(containerMapKey)
  7020. }
  7021. ee.EncodeUint(uint64(uint(k2)))
  7022. if cr != nil {
  7023. cr.sendContainerState(containerMapValue)
  7024. }
  7025. ee.EncodeInt(int64(v[uint(k2)]))
  7026. }
  7027. } else {
  7028. for k2, v2 := range v {
  7029. if cr != nil {
  7030. cr.sendContainerState(containerMapKey)
  7031. }
  7032. ee.EncodeUint(uint64(k2))
  7033. if cr != nil {
  7034. cr.sendContainerState(containerMapValue)
  7035. }
  7036. ee.EncodeInt(int64(v2))
  7037. }
  7038. }
  7039. if cr != nil {
  7040. cr.sendContainerState(containerMapEnd)
  7041. }
  7042. }
  7043. func (f *encFnInfo) fastpathEncMapUintFloat32R(rv reflect.Value) {
  7044. fastpathTV.EncMapUintFloat32V(rv.Interface().(map[uint]float32), fastpathCheckNilFalse, f.e)
  7045. }
  7046. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, checkNil bool, e *Encoder) {
  7047. ee := e.e
  7048. cr := e.cr
  7049. if checkNil && v == nil {
  7050. ee.EncodeNil()
  7051. return
  7052. }
  7053. ee.EncodeMapStart(len(v))
  7054. if e.h.Canonical {
  7055. v2 := make([]uint64, len(v))
  7056. var i int
  7057. for k, _ := range v {
  7058. v2[i] = uint64(k)
  7059. i++
  7060. }
  7061. sort.Sort(uintSlice(v2))
  7062. for _, k2 := range v2 {
  7063. if cr != nil {
  7064. cr.sendContainerState(containerMapKey)
  7065. }
  7066. ee.EncodeUint(uint64(uint(k2)))
  7067. if cr != nil {
  7068. cr.sendContainerState(containerMapValue)
  7069. }
  7070. ee.EncodeFloat32(v[uint(k2)])
  7071. }
  7072. } else {
  7073. for k2, v2 := range v {
  7074. if cr != nil {
  7075. cr.sendContainerState(containerMapKey)
  7076. }
  7077. ee.EncodeUint(uint64(k2))
  7078. if cr != nil {
  7079. cr.sendContainerState(containerMapValue)
  7080. }
  7081. ee.EncodeFloat32(v2)
  7082. }
  7083. }
  7084. if cr != nil {
  7085. cr.sendContainerState(containerMapEnd)
  7086. }
  7087. }
  7088. func (f *encFnInfo) fastpathEncMapUintFloat64R(rv reflect.Value) {
  7089. fastpathTV.EncMapUintFloat64V(rv.Interface().(map[uint]float64), fastpathCheckNilFalse, f.e)
  7090. }
  7091. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, checkNil bool, e *Encoder) {
  7092. ee := e.e
  7093. cr := e.cr
  7094. if checkNil && v == nil {
  7095. ee.EncodeNil()
  7096. return
  7097. }
  7098. ee.EncodeMapStart(len(v))
  7099. if e.h.Canonical {
  7100. v2 := make([]uint64, len(v))
  7101. var i int
  7102. for k, _ := range v {
  7103. v2[i] = uint64(k)
  7104. i++
  7105. }
  7106. sort.Sort(uintSlice(v2))
  7107. for _, k2 := range v2 {
  7108. if cr != nil {
  7109. cr.sendContainerState(containerMapKey)
  7110. }
  7111. ee.EncodeUint(uint64(uint(k2)))
  7112. if cr != nil {
  7113. cr.sendContainerState(containerMapValue)
  7114. }
  7115. ee.EncodeFloat64(v[uint(k2)])
  7116. }
  7117. } else {
  7118. for k2, v2 := range v {
  7119. if cr != nil {
  7120. cr.sendContainerState(containerMapKey)
  7121. }
  7122. ee.EncodeUint(uint64(k2))
  7123. if cr != nil {
  7124. cr.sendContainerState(containerMapValue)
  7125. }
  7126. ee.EncodeFloat64(v2)
  7127. }
  7128. }
  7129. if cr != nil {
  7130. cr.sendContainerState(containerMapEnd)
  7131. }
  7132. }
  7133. func (f *encFnInfo) fastpathEncMapUintBoolR(rv reflect.Value) {
  7134. fastpathTV.EncMapUintBoolV(rv.Interface().(map[uint]bool), fastpathCheckNilFalse, f.e)
  7135. }
  7136. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, checkNil bool, e *Encoder) {
  7137. ee := e.e
  7138. cr := e.cr
  7139. if checkNil && v == nil {
  7140. ee.EncodeNil()
  7141. return
  7142. }
  7143. ee.EncodeMapStart(len(v))
  7144. if e.h.Canonical {
  7145. v2 := make([]uint64, len(v))
  7146. var i int
  7147. for k, _ := range v {
  7148. v2[i] = uint64(k)
  7149. i++
  7150. }
  7151. sort.Sort(uintSlice(v2))
  7152. for _, k2 := range v2 {
  7153. if cr != nil {
  7154. cr.sendContainerState(containerMapKey)
  7155. }
  7156. ee.EncodeUint(uint64(uint(k2)))
  7157. if cr != nil {
  7158. cr.sendContainerState(containerMapValue)
  7159. }
  7160. ee.EncodeBool(v[uint(k2)])
  7161. }
  7162. } else {
  7163. for k2, v2 := range v {
  7164. if cr != nil {
  7165. cr.sendContainerState(containerMapKey)
  7166. }
  7167. ee.EncodeUint(uint64(k2))
  7168. if cr != nil {
  7169. cr.sendContainerState(containerMapValue)
  7170. }
  7171. ee.EncodeBool(v2)
  7172. }
  7173. }
  7174. if cr != nil {
  7175. cr.sendContainerState(containerMapEnd)
  7176. }
  7177. }
  7178. func (f *encFnInfo) fastpathEncMapUint8IntfR(rv reflect.Value) {
  7179. fastpathTV.EncMapUint8IntfV(rv.Interface().(map[uint8]interface{}), fastpathCheckNilFalse, f.e)
  7180. }
  7181. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, checkNil bool, e *Encoder) {
  7182. ee := e.e
  7183. cr := e.cr
  7184. if checkNil && v == nil {
  7185. ee.EncodeNil()
  7186. return
  7187. }
  7188. ee.EncodeMapStart(len(v))
  7189. if e.h.Canonical {
  7190. v2 := make([]uint64, len(v))
  7191. var i int
  7192. for k, _ := range v {
  7193. v2[i] = uint64(k)
  7194. i++
  7195. }
  7196. sort.Sort(uintSlice(v2))
  7197. for _, k2 := range v2 {
  7198. if cr != nil {
  7199. cr.sendContainerState(containerMapKey)
  7200. }
  7201. ee.EncodeUint(uint64(uint8(k2)))
  7202. if cr != nil {
  7203. cr.sendContainerState(containerMapValue)
  7204. }
  7205. e.encode(v[uint8(k2)])
  7206. }
  7207. } else {
  7208. for k2, v2 := range v {
  7209. if cr != nil {
  7210. cr.sendContainerState(containerMapKey)
  7211. }
  7212. ee.EncodeUint(uint64(k2))
  7213. if cr != nil {
  7214. cr.sendContainerState(containerMapValue)
  7215. }
  7216. e.encode(v2)
  7217. }
  7218. }
  7219. if cr != nil {
  7220. cr.sendContainerState(containerMapEnd)
  7221. }
  7222. }
  7223. func (f *encFnInfo) fastpathEncMapUint8StringR(rv reflect.Value) {
  7224. fastpathTV.EncMapUint8StringV(rv.Interface().(map[uint8]string), fastpathCheckNilFalse, f.e)
  7225. }
  7226. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, checkNil bool, e *Encoder) {
  7227. ee := e.e
  7228. cr := e.cr
  7229. if checkNil && v == nil {
  7230. ee.EncodeNil()
  7231. return
  7232. }
  7233. ee.EncodeMapStart(len(v))
  7234. if e.h.Canonical {
  7235. v2 := make([]uint64, len(v))
  7236. var i int
  7237. for k, _ := range v {
  7238. v2[i] = uint64(k)
  7239. i++
  7240. }
  7241. sort.Sort(uintSlice(v2))
  7242. for _, k2 := range v2 {
  7243. if cr != nil {
  7244. cr.sendContainerState(containerMapKey)
  7245. }
  7246. ee.EncodeUint(uint64(uint8(k2)))
  7247. if cr != nil {
  7248. cr.sendContainerState(containerMapValue)
  7249. }
  7250. ee.EncodeString(c_UTF8, v[uint8(k2)])
  7251. }
  7252. } else {
  7253. for k2, v2 := range v {
  7254. if cr != nil {
  7255. cr.sendContainerState(containerMapKey)
  7256. }
  7257. ee.EncodeUint(uint64(k2))
  7258. if cr != nil {
  7259. cr.sendContainerState(containerMapValue)
  7260. }
  7261. ee.EncodeString(c_UTF8, v2)
  7262. }
  7263. }
  7264. if cr != nil {
  7265. cr.sendContainerState(containerMapEnd)
  7266. }
  7267. }
  7268. func (f *encFnInfo) fastpathEncMapUint8UintR(rv reflect.Value) {
  7269. fastpathTV.EncMapUint8UintV(rv.Interface().(map[uint8]uint), fastpathCheckNilFalse, f.e)
  7270. }
  7271. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, checkNil bool, e *Encoder) {
  7272. ee := e.e
  7273. cr := e.cr
  7274. if checkNil && v == nil {
  7275. ee.EncodeNil()
  7276. return
  7277. }
  7278. ee.EncodeMapStart(len(v))
  7279. if e.h.Canonical {
  7280. v2 := make([]uint64, len(v))
  7281. var i int
  7282. for k, _ := range v {
  7283. v2[i] = uint64(k)
  7284. i++
  7285. }
  7286. sort.Sort(uintSlice(v2))
  7287. for _, k2 := range v2 {
  7288. if cr != nil {
  7289. cr.sendContainerState(containerMapKey)
  7290. }
  7291. ee.EncodeUint(uint64(uint8(k2)))
  7292. if cr != nil {
  7293. cr.sendContainerState(containerMapValue)
  7294. }
  7295. ee.EncodeUint(uint64(v[uint8(k2)]))
  7296. }
  7297. } else {
  7298. for k2, v2 := range v {
  7299. if cr != nil {
  7300. cr.sendContainerState(containerMapKey)
  7301. }
  7302. ee.EncodeUint(uint64(k2))
  7303. if cr != nil {
  7304. cr.sendContainerState(containerMapValue)
  7305. }
  7306. ee.EncodeUint(uint64(v2))
  7307. }
  7308. }
  7309. if cr != nil {
  7310. cr.sendContainerState(containerMapEnd)
  7311. }
  7312. }
  7313. func (f *encFnInfo) fastpathEncMapUint8Uint8R(rv reflect.Value) {
  7314. fastpathTV.EncMapUint8Uint8V(rv.Interface().(map[uint8]uint8), fastpathCheckNilFalse, f.e)
  7315. }
  7316. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, checkNil bool, e *Encoder) {
  7317. ee := e.e
  7318. cr := e.cr
  7319. if checkNil && v == nil {
  7320. ee.EncodeNil()
  7321. return
  7322. }
  7323. ee.EncodeMapStart(len(v))
  7324. if e.h.Canonical {
  7325. v2 := make([]uint64, len(v))
  7326. var i int
  7327. for k, _ := range v {
  7328. v2[i] = uint64(k)
  7329. i++
  7330. }
  7331. sort.Sort(uintSlice(v2))
  7332. for _, k2 := range v2 {
  7333. if cr != nil {
  7334. cr.sendContainerState(containerMapKey)
  7335. }
  7336. ee.EncodeUint(uint64(uint8(k2)))
  7337. if cr != nil {
  7338. cr.sendContainerState(containerMapValue)
  7339. }
  7340. ee.EncodeUint(uint64(v[uint8(k2)]))
  7341. }
  7342. } else {
  7343. for k2, v2 := range v {
  7344. if cr != nil {
  7345. cr.sendContainerState(containerMapKey)
  7346. }
  7347. ee.EncodeUint(uint64(k2))
  7348. if cr != nil {
  7349. cr.sendContainerState(containerMapValue)
  7350. }
  7351. ee.EncodeUint(uint64(v2))
  7352. }
  7353. }
  7354. if cr != nil {
  7355. cr.sendContainerState(containerMapEnd)
  7356. }
  7357. }
  7358. func (f *encFnInfo) fastpathEncMapUint8Uint16R(rv reflect.Value) {
  7359. fastpathTV.EncMapUint8Uint16V(rv.Interface().(map[uint8]uint16), fastpathCheckNilFalse, f.e)
  7360. }
  7361. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, checkNil bool, e *Encoder) {
  7362. ee := e.e
  7363. cr := e.cr
  7364. if checkNil && v == nil {
  7365. ee.EncodeNil()
  7366. return
  7367. }
  7368. ee.EncodeMapStart(len(v))
  7369. if e.h.Canonical {
  7370. v2 := make([]uint64, len(v))
  7371. var i int
  7372. for k, _ := range v {
  7373. v2[i] = uint64(k)
  7374. i++
  7375. }
  7376. sort.Sort(uintSlice(v2))
  7377. for _, k2 := range v2 {
  7378. if cr != nil {
  7379. cr.sendContainerState(containerMapKey)
  7380. }
  7381. ee.EncodeUint(uint64(uint8(k2)))
  7382. if cr != nil {
  7383. cr.sendContainerState(containerMapValue)
  7384. }
  7385. ee.EncodeUint(uint64(v[uint8(k2)]))
  7386. }
  7387. } else {
  7388. for k2, v2 := range v {
  7389. if cr != nil {
  7390. cr.sendContainerState(containerMapKey)
  7391. }
  7392. ee.EncodeUint(uint64(k2))
  7393. if cr != nil {
  7394. cr.sendContainerState(containerMapValue)
  7395. }
  7396. ee.EncodeUint(uint64(v2))
  7397. }
  7398. }
  7399. if cr != nil {
  7400. cr.sendContainerState(containerMapEnd)
  7401. }
  7402. }
  7403. func (f *encFnInfo) fastpathEncMapUint8Uint32R(rv reflect.Value) {
  7404. fastpathTV.EncMapUint8Uint32V(rv.Interface().(map[uint8]uint32), fastpathCheckNilFalse, f.e)
  7405. }
  7406. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, checkNil bool, e *Encoder) {
  7407. ee := e.e
  7408. cr := e.cr
  7409. if checkNil && v == nil {
  7410. ee.EncodeNil()
  7411. return
  7412. }
  7413. ee.EncodeMapStart(len(v))
  7414. if e.h.Canonical {
  7415. v2 := make([]uint64, len(v))
  7416. var i int
  7417. for k, _ := range v {
  7418. v2[i] = uint64(k)
  7419. i++
  7420. }
  7421. sort.Sort(uintSlice(v2))
  7422. for _, k2 := range v2 {
  7423. if cr != nil {
  7424. cr.sendContainerState(containerMapKey)
  7425. }
  7426. ee.EncodeUint(uint64(uint8(k2)))
  7427. if cr != nil {
  7428. cr.sendContainerState(containerMapValue)
  7429. }
  7430. ee.EncodeUint(uint64(v[uint8(k2)]))
  7431. }
  7432. } else {
  7433. for k2, v2 := range v {
  7434. if cr != nil {
  7435. cr.sendContainerState(containerMapKey)
  7436. }
  7437. ee.EncodeUint(uint64(k2))
  7438. if cr != nil {
  7439. cr.sendContainerState(containerMapValue)
  7440. }
  7441. ee.EncodeUint(uint64(v2))
  7442. }
  7443. }
  7444. if cr != nil {
  7445. cr.sendContainerState(containerMapEnd)
  7446. }
  7447. }
  7448. func (f *encFnInfo) fastpathEncMapUint8Uint64R(rv reflect.Value) {
  7449. fastpathTV.EncMapUint8Uint64V(rv.Interface().(map[uint8]uint64), fastpathCheckNilFalse, f.e)
  7450. }
  7451. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, checkNil bool, e *Encoder) {
  7452. ee := e.e
  7453. cr := e.cr
  7454. if checkNil && v == nil {
  7455. ee.EncodeNil()
  7456. return
  7457. }
  7458. ee.EncodeMapStart(len(v))
  7459. if e.h.Canonical {
  7460. v2 := make([]uint64, len(v))
  7461. var i int
  7462. for k, _ := range v {
  7463. v2[i] = uint64(k)
  7464. i++
  7465. }
  7466. sort.Sort(uintSlice(v2))
  7467. for _, k2 := range v2 {
  7468. if cr != nil {
  7469. cr.sendContainerState(containerMapKey)
  7470. }
  7471. ee.EncodeUint(uint64(uint8(k2)))
  7472. if cr != nil {
  7473. cr.sendContainerState(containerMapValue)
  7474. }
  7475. ee.EncodeUint(uint64(v[uint8(k2)]))
  7476. }
  7477. } else {
  7478. for k2, v2 := range v {
  7479. if cr != nil {
  7480. cr.sendContainerState(containerMapKey)
  7481. }
  7482. ee.EncodeUint(uint64(k2))
  7483. if cr != nil {
  7484. cr.sendContainerState(containerMapValue)
  7485. }
  7486. ee.EncodeUint(uint64(v2))
  7487. }
  7488. }
  7489. if cr != nil {
  7490. cr.sendContainerState(containerMapEnd)
  7491. }
  7492. }
  7493. func (f *encFnInfo) fastpathEncMapUint8UintptrR(rv reflect.Value) {
  7494. fastpathTV.EncMapUint8UintptrV(rv.Interface().(map[uint8]uintptr), fastpathCheckNilFalse, f.e)
  7495. }
  7496. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, checkNil bool, e *Encoder) {
  7497. ee := e.e
  7498. cr := e.cr
  7499. if checkNil && v == nil {
  7500. ee.EncodeNil()
  7501. return
  7502. }
  7503. ee.EncodeMapStart(len(v))
  7504. if e.h.Canonical {
  7505. v2 := make([]uint64, len(v))
  7506. var i int
  7507. for k, _ := range v {
  7508. v2[i] = uint64(k)
  7509. i++
  7510. }
  7511. sort.Sort(uintSlice(v2))
  7512. for _, k2 := range v2 {
  7513. if cr != nil {
  7514. cr.sendContainerState(containerMapKey)
  7515. }
  7516. ee.EncodeUint(uint64(uint8(k2)))
  7517. if cr != nil {
  7518. cr.sendContainerState(containerMapValue)
  7519. }
  7520. e.encode(v[uint8(k2)])
  7521. }
  7522. } else {
  7523. for k2, v2 := range v {
  7524. if cr != nil {
  7525. cr.sendContainerState(containerMapKey)
  7526. }
  7527. ee.EncodeUint(uint64(k2))
  7528. if cr != nil {
  7529. cr.sendContainerState(containerMapValue)
  7530. }
  7531. e.encode(v2)
  7532. }
  7533. }
  7534. if cr != nil {
  7535. cr.sendContainerState(containerMapEnd)
  7536. }
  7537. }
  7538. func (f *encFnInfo) fastpathEncMapUint8IntR(rv reflect.Value) {
  7539. fastpathTV.EncMapUint8IntV(rv.Interface().(map[uint8]int), fastpathCheckNilFalse, f.e)
  7540. }
  7541. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, checkNil bool, e *Encoder) {
  7542. ee := e.e
  7543. cr := e.cr
  7544. if checkNil && v == nil {
  7545. ee.EncodeNil()
  7546. return
  7547. }
  7548. ee.EncodeMapStart(len(v))
  7549. if e.h.Canonical {
  7550. v2 := make([]uint64, len(v))
  7551. var i int
  7552. for k, _ := range v {
  7553. v2[i] = uint64(k)
  7554. i++
  7555. }
  7556. sort.Sort(uintSlice(v2))
  7557. for _, k2 := range v2 {
  7558. if cr != nil {
  7559. cr.sendContainerState(containerMapKey)
  7560. }
  7561. ee.EncodeUint(uint64(uint8(k2)))
  7562. if cr != nil {
  7563. cr.sendContainerState(containerMapValue)
  7564. }
  7565. ee.EncodeInt(int64(v[uint8(k2)]))
  7566. }
  7567. } else {
  7568. for k2, v2 := range v {
  7569. if cr != nil {
  7570. cr.sendContainerState(containerMapKey)
  7571. }
  7572. ee.EncodeUint(uint64(k2))
  7573. if cr != nil {
  7574. cr.sendContainerState(containerMapValue)
  7575. }
  7576. ee.EncodeInt(int64(v2))
  7577. }
  7578. }
  7579. if cr != nil {
  7580. cr.sendContainerState(containerMapEnd)
  7581. }
  7582. }
  7583. func (f *encFnInfo) fastpathEncMapUint8Int8R(rv reflect.Value) {
  7584. fastpathTV.EncMapUint8Int8V(rv.Interface().(map[uint8]int8), fastpathCheckNilFalse, f.e)
  7585. }
  7586. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, checkNil bool, e *Encoder) {
  7587. ee := e.e
  7588. cr := e.cr
  7589. if checkNil && v == nil {
  7590. ee.EncodeNil()
  7591. return
  7592. }
  7593. ee.EncodeMapStart(len(v))
  7594. if e.h.Canonical {
  7595. v2 := make([]uint64, len(v))
  7596. var i int
  7597. for k, _ := range v {
  7598. v2[i] = uint64(k)
  7599. i++
  7600. }
  7601. sort.Sort(uintSlice(v2))
  7602. for _, k2 := range v2 {
  7603. if cr != nil {
  7604. cr.sendContainerState(containerMapKey)
  7605. }
  7606. ee.EncodeUint(uint64(uint8(k2)))
  7607. if cr != nil {
  7608. cr.sendContainerState(containerMapValue)
  7609. }
  7610. ee.EncodeInt(int64(v[uint8(k2)]))
  7611. }
  7612. } else {
  7613. for k2, v2 := range v {
  7614. if cr != nil {
  7615. cr.sendContainerState(containerMapKey)
  7616. }
  7617. ee.EncodeUint(uint64(k2))
  7618. if cr != nil {
  7619. cr.sendContainerState(containerMapValue)
  7620. }
  7621. ee.EncodeInt(int64(v2))
  7622. }
  7623. }
  7624. if cr != nil {
  7625. cr.sendContainerState(containerMapEnd)
  7626. }
  7627. }
  7628. func (f *encFnInfo) fastpathEncMapUint8Int16R(rv reflect.Value) {
  7629. fastpathTV.EncMapUint8Int16V(rv.Interface().(map[uint8]int16), fastpathCheckNilFalse, f.e)
  7630. }
  7631. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, checkNil bool, e *Encoder) {
  7632. ee := e.e
  7633. cr := e.cr
  7634. if checkNil && v == nil {
  7635. ee.EncodeNil()
  7636. return
  7637. }
  7638. ee.EncodeMapStart(len(v))
  7639. if e.h.Canonical {
  7640. v2 := make([]uint64, len(v))
  7641. var i int
  7642. for k, _ := range v {
  7643. v2[i] = uint64(k)
  7644. i++
  7645. }
  7646. sort.Sort(uintSlice(v2))
  7647. for _, k2 := range v2 {
  7648. if cr != nil {
  7649. cr.sendContainerState(containerMapKey)
  7650. }
  7651. ee.EncodeUint(uint64(uint8(k2)))
  7652. if cr != nil {
  7653. cr.sendContainerState(containerMapValue)
  7654. }
  7655. ee.EncodeInt(int64(v[uint8(k2)]))
  7656. }
  7657. } else {
  7658. for k2, v2 := range v {
  7659. if cr != nil {
  7660. cr.sendContainerState(containerMapKey)
  7661. }
  7662. ee.EncodeUint(uint64(k2))
  7663. if cr != nil {
  7664. cr.sendContainerState(containerMapValue)
  7665. }
  7666. ee.EncodeInt(int64(v2))
  7667. }
  7668. }
  7669. if cr != nil {
  7670. cr.sendContainerState(containerMapEnd)
  7671. }
  7672. }
  7673. func (f *encFnInfo) fastpathEncMapUint8Int32R(rv reflect.Value) {
  7674. fastpathTV.EncMapUint8Int32V(rv.Interface().(map[uint8]int32), fastpathCheckNilFalse, f.e)
  7675. }
  7676. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, checkNil bool, e *Encoder) {
  7677. ee := e.e
  7678. cr := e.cr
  7679. if checkNil && v == nil {
  7680. ee.EncodeNil()
  7681. return
  7682. }
  7683. ee.EncodeMapStart(len(v))
  7684. if e.h.Canonical {
  7685. v2 := make([]uint64, len(v))
  7686. var i int
  7687. for k, _ := range v {
  7688. v2[i] = uint64(k)
  7689. i++
  7690. }
  7691. sort.Sort(uintSlice(v2))
  7692. for _, k2 := range v2 {
  7693. if cr != nil {
  7694. cr.sendContainerState(containerMapKey)
  7695. }
  7696. ee.EncodeUint(uint64(uint8(k2)))
  7697. if cr != nil {
  7698. cr.sendContainerState(containerMapValue)
  7699. }
  7700. ee.EncodeInt(int64(v[uint8(k2)]))
  7701. }
  7702. } else {
  7703. for k2, v2 := range v {
  7704. if cr != nil {
  7705. cr.sendContainerState(containerMapKey)
  7706. }
  7707. ee.EncodeUint(uint64(k2))
  7708. if cr != nil {
  7709. cr.sendContainerState(containerMapValue)
  7710. }
  7711. ee.EncodeInt(int64(v2))
  7712. }
  7713. }
  7714. if cr != nil {
  7715. cr.sendContainerState(containerMapEnd)
  7716. }
  7717. }
  7718. func (f *encFnInfo) fastpathEncMapUint8Int64R(rv reflect.Value) {
  7719. fastpathTV.EncMapUint8Int64V(rv.Interface().(map[uint8]int64), fastpathCheckNilFalse, f.e)
  7720. }
  7721. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, checkNil bool, e *Encoder) {
  7722. ee := e.e
  7723. cr := e.cr
  7724. if checkNil && v == nil {
  7725. ee.EncodeNil()
  7726. return
  7727. }
  7728. ee.EncodeMapStart(len(v))
  7729. if e.h.Canonical {
  7730. v2 := make([]uint64, len(v))
  7731. var i int
  7732. for k, _ := range v {
  7733. v2[i] = uint64(k)
  7734. i++
  7735. }
  7736. sort.Sort(uintSlice(v2))
  7737. for _, k2 := range v2 {
  7738. if cr != nil {
  7739. cr.sendContainerState(containerMapKey)
  7740. }
  7741. ee.EncodeUint(uint64(uint8(k2)))
  7742. if cr != nil {
  7743. cr.sendContainerState(containerMapValue)
  7744. }
  7745. ee.EncodeInt(int64(v[uint8(k2)]))
  7746. }
  7747. } else {
  7748. for k2, v2 := range v {
  7749. if cr != nil {
  7750. cr.sendContainerState(containerMapKey)
  7751. }
  7752. ee.EncodeUint(uint64(k2))
  7753. if cr != nil {
  7754. cr.sendContainerState(containerMapValue)
  7755. }
  7756. ee.EncodeInt(int64(v2))
  7757. }
  7758. }
  7759. if cr != nil {
  7760. cr.sendContainerState(containerMapEnd)
  7761. }
  7762. }
  7763. func (f *encFnInfo) fastpathEncMapUint8Float32R(rv reflect.Value) {
  7764. fastpathTV.EncMapUint8Float32V(rv.Interface().(map[uint8]float32), fastpathCheckNilFalse, f.e)
  7765. }
  7766. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, checkNil bool, e *Encoder) {
  7767. ee := e.e
  7768. cr := e.cr
  7769. if checkNil && v == nil {
  7770. ee.EncodeNil()
  7771. return
  7772. }
  7773. ee.EncodeMapStart(len(v))
  7774. if e.h.Canonical {
  7775. v2 := make([]uint64, len(v))
  7776. var i int
  7777. for k, _ := range v {
  7778. v2[i] = uint64(k)
  7779. i++
  7780. }
  7781. sort.Sort(uintSlice(v2))
  7782. for _, k2 := range v2 {
  7783. if cr != nil {
  7784. cr.sendContainerState(containerMapKey)
  7785. }
  7786. ee.EncodeUint(uint64(uint8(k2)))
  7787. if cr != nil {
  7788. cr.sendContainerState(containerMapValue)
  7789. }
  7790. ee.EncodeFloat32(v[uint8(k2)])
  7791. }
  7792. } else {
  7793. for k2, v2 := range v {
  7794. if cr != nil {
  7795. cr.sendContainerState(containerMapKey)
  7796. }
  7797. ee.EncodeUint(uint64(k2))
  7798. if cr != nil {
  7799. cr.sendContainerState(containerMapValue)
  7800. }
  7801. ee.EncodeFloat32(v2)
  7802. }
  7803. }
  7804. if cr != nil {
  7805. cr.sendContainerState(containerMapEnd)
  7806. }
  7807. }
  7808. func (f *encFnInfo) fastpathEncMapUint8Float64R(rv reflect.Value) {
  7809. fastpathTV.EncMapUint8Float64V(rv.Interface().(map[uint8]float64), fastpathCheckNilFalse, f.e)
  7810. }
  7811. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, checkNil bool, e *Encoder) {
  7812. ee := e.e
  7813. cr := e.cr
  7814. if checkNil && v == nil {
  7815. ee.EncodeNil()
  7816. return
  7817. }
  7818. ee.EncodeMapStart(len(v))
  7819. if e.h.Canonical {
  7820. v2 := make([]uint64, len(v))
  7821. var i int
  7822. for k, _ := range v {
  7823. v2[i] = uint64(k)
  7824. i++
  7825. }
  7826. sort.Sort(uintSlice(v2))
  7827. for _, k2 := range v2 {
  7828. if cr != nil {
  7829. cr.sendContainerState(containerMapKey)
  7830. }
  7831. ee.EncodeUint(uint64(uint8(k2)))
  7832. if cr != nil {
  7833. cr.sendContainerState(containerMapValue)
  7834. }
  7835. ee.EncodeFloat64(v[uint8(k2)])
  7836. }
  7837. } else {
  7838. for k2, v2 := range v {
  7839. if cr != nil {
  7840. cr.sendContainerState(containerMapKey)
  7841. }
  7842. ee.EncodeUint(uint64(k2))
  7843. if cr != nil {
  7844. cr.sendContainerState(containerMapValue)
  7845. }
  7846. ee.EncodeFloat64(v2)
  7847. }
  7848. }
  7849. if cr != nil {
  7850. cr.sendContainerState(containerMapEnd)
  7851. }
  7852. }
  7853. func (f *encFnInfo) fastpathEncMapUint8BoolR(rv reflect.Value) {
  7854. fastpathTV.EncMapUint8BoolV(rv.Interface().(map[uint8]bool), fastpathCheckNilFalse, f.e)
  7855. }
  7856. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, checkNil bool, e *Encoder) {
  7857. ee := e.e
  7858. cr := e.cr
  7859. if checkNil && v == nil {
  7860. ee.EncodeNil()
  7861. return
  7862. }
  7863. ee.EncodeMapStart(len(v))
  7864. if e.h.Canonical {
  7865. v2 := make([]uint64, len(v))
  7866. var i int
  7867. for k, _ := range v {
  7868. v2[i] = uint64(k)
  7869. i++
  7870. }
  7871. sort.Sort(uintSlice(v2))
  7872. for _, k2 := range v2 {
  7873. if cr != nil {
  7874. cr.sendContainerState(containerMapKey)
  7875. }
  7876. ee.EncodeUint(uint64(uint8(k2)))
  7877. if cr != nil {
  7878. cr.sendContainerState(containerMapValue)
  7879. }
  7880. ee.EncodeBool(v[uint8(k2)])
  7881. }
  7882. } else {
  7883. for k2, v2 := range v {
  7884. if cr != nil {
  7885. cr.sendContainerState(containerMapKey)
  7886. }
  7887. ee.EncodeUint(uint64(k2))
  7888. if cr != nil {
  7889. cr.sendContainerState(containerMapValue)
  7890. }
  7891. ee.EncodeBool(v2)
  7892. }
  7893. }
  7894. if cr != nil {
  7895. cr.sendContainerState(containerMapEnd)
  7896. }
  7897. }
  7898. func (f *encFnInfo) fastpathEncMapUint16IntfR(rv reflect.Value) {
  7899. fastpathTV.EncMapUint16IntfV(rv.Interface().(map[uint16]interface{}), fastpathCheckNilFalse, f.e)
  7900. }
  7901. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, checkNil bool, e *Encoder) {
  7902. ee := e.e
  7903. cr := e.cr
  7904. if checkNil && v == nil {
  7905. ee.EncodeNil()
  7906. return
  7907. }
  7908. ee.EncodeMapStart(len(v))
  7909. if e.h.Canonical {
  7910. v2 := make([]uint64, len(v))
  7911. var i int
  7912. for k, _ := range v {
  7913. v2[i] = uint64(k)
  7914. i++
  7915. }
  7916. sort.Sort(uintSlice(v2))
  7917. for _, k2 := range v2 {
  7918. if cr != nil {
  7919. cr.sendContainerState(containerMapKey)
  7920. }
  7921. ee.EncodeUint(uint64(uint16(k2)))
  7922. if cr != nil {
  7923. cr.sendContainerState(containerMapValue)
  7924. }
  7925. e.encode(v[uint16(k2)])
  7926. }
  7927. } else {
  7928. for k2, v2 := range v {
  7929. if cr != nil {
  7930. cr.sendContainerState(containerMapKey)
  7931. }
  7932. ee.EncodeUint(uint64(k2))
  7933. if cr != nil {
  7934. cr.sendContainerState(containerMapValue)
  7935. }
  7936. e.encode(v2)
  7937. }
  7938. }
  7939. if cr != nil {
  7940. cr.sendContainerState(containerMapEnd)
  7941. }
  7942. }
  7943. func (f *encFnInfo) fastpathEncMapUint16StringR(rv reflect.Value) {
  7944. fastpathTV.EncMapUint16StringV(rv.Interface().(map[uint16]string), fastpathCheckNilFalse, f.e)
  7945. }
  7946. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, checkNil bool, e *Encoder) {
  7947. ee := e.e
  7948. cr := e.cr
  7949. if checkNil && v == nil {
  7950. ee.EncodeNil()
  7951. return
  7952. }
  7953. ee.EncodeMapStart(len(v))
  7954. if e.h.Canonical {
  7955. v2 := make([]uint64, len(v))
  7956. var i int
  7957. for k, _ := range v {
  7958. v2[i] = uint64(k)
  7959. i++
  7960. }
  7961. sort.Sort(uintSlice(v2))
  7962. for _, k2 := range v2 {
  7963. if cr != nil {
  7964. cr.sendContainerState(containerMapKey)
  7965. }
  7966. ee.EncodeUint(uint64(uint16(k2)))
  7967. if cr != nil {
  7968. cr.sendContainerState(containerMapValue)
  7969. }
  7970. ee.EncodeString(c_UTF8, v[uint16(k2)])
  7971. }
  7972. } else {
  7973. for k2, v2 := range v {
  7974. if cr != nil {
  7975. cr.sendContainerState(containerMapKey)
  7976. }
  7977. ee.EncodeUint(uint64(k2))
  7978. if cr != nil {
  7979. cr.sendContainerState(containerMapValue)
  7980. }
  7981. ee.EncodeString(c_UTF8, v2)
  7982. }
  7983. }
  7984. if cr != nil {
  7985. cr.sendContainerState(containerMapEnd)
  7986. }
  7987. }
  7988. func (f *encFnInfo) fastpathEncMapUint16UintR(rv reflect.Value) {
  7989. fastpathTV.EncMapUint16UintV(rv.Interface().(map[uint16]uint), fastpathCheckNilFalse, f.e)
  7990. }
  7991. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, checkNil bool, e *Encoder) {
  7992. ee := e.e
  7993. cr := e.cr
  7994. if checkNil && v == nil {
  7995. ee.EncodeNil()
  7996. return
  7997. }
  7998. ee.EncodeMapStart(len(v))
  7999. if e.h.Canonical {
  8000. v2 := make([]uint64, len(v))
  8001. var i int
  8002. for k, _ := range v {
  8003. v2[i] = uint64(k)
  8004. i++
  8005. }
  8006. sort.Sort(uintSlice(v2))
  8007. for _, k2 := range v2 {
  8008. if cr != nil {
  8009. cr.sendContainerState(containerMapKey)
  8010. }
  8011. ee.EncodeUint(uint64(uint16(k2)))
  8012. if cr != nil {
  8013. cr.sendContainerState(containerMapValue)
  8014. }
  8015. ee.EncodeUint(uint64(v[uint16(k2)]))
  8016. }
  8017. } else {
  8018. for k2, v2 := range v {
  8019. if cr != nil {
  8020. cr.sendContainerState(containerMapKey)
  8021. }
  8022. ee.EncodeUint(uint64(k2))
  8023. if cr != nil {
  8024. cr.sendContainerState(containerMapValue)
  8025. }
  8026. ee.EncodeUint(uint64(v2))
  8027. }
  8028. }
  8029. if cr != nil {
  8030. cr.sendContainerState(containerMapEnd)
  8031. }
  8032. }
  8033. func (f *encFnInfo) fastpathEncMapUint16Uint8R(rv reflect.Value) {
  8034. fastpathTV.EncMapUint16Uint8V(rv.Interface().(map[uint16]uint8), fastpathCheckNilFalse, f.e)
  8035. }
  8036. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, checkNil bool, e *Encoder) {
  8037. ee := e.e
  8038. cr := e.cr
  8039. if checkNil && v == nil {
  8040. ee.EncodeNil()
  8041. return
  8042. }
  8043. ee.EncodeMapStart(len(v))
  8044. if e.h.Canonical {
  8045. v2 := make([]uint64, len(v))
  8046. var i int
  8047. for k, _ := range v {
  8048. v2[i] = uint64(k)
  8049. i++
  8050. }
  8051. sort.Sort(uintSlice(v2))
  8052. for _, k2 := range v2 {
  8053. if cr != nil {
  8054. cr.sendContainerState(containerMapKey)
  8055. }
  8056. ee.EncodeUint(uint64(uint16(k2)))
  8057. if cr != nil {
  8058. cr.sendContainerState(containerMapValue)
  8059. }
  8060. ee.EncodeUint(uint64(v[uint16(k2)]))
  8061. }
  8062. } else {
  8063. for k2, v2 := range v {
  8064. if cr != nil {
  8065. cr.sendContainerState(containerMapKey)
  8066. }
  8067. ee.EncodeUint(uint64(k2))
  8068. if cr != nil {
  8069. cr.sendContainerState(containerMapValue)
  8070. }
  8071. ee.EncodeUint(uint64(v2))
  8072. }
  8073. }
  8074. if cr != nil {
  8075. cr.sendContainerState(containerMapEnd)
  8076. }
  8077. }
  8078. func (f *encFnInfo) fastpathEncMapUint16Uint16R(rv reflect.Value) {
  8079. fastpathTV.EncMapUint16Uint16V(rv.Interface().(map[uint16]uint16), fastpathCheckNilFalse, f.e)
  8080. }
  8081. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, checkNil bool, e *Encoder) {
  8082. ee := e.e
  8083. cr := e.cr
  8084. if checkNil && v == nil {
  8085. ee.EncodeNil()
  8086. return
  8087. }
  8088. ee.EncodeMapStart(len(v))
  8089. if e.h.Canonical {
  8090. v2 := make([]uint64, len(v))
  8091. var i int
  8092. for k, _ := range v {
  8093. v2[i] = uint64(k)
  8094. i++
  8095. }
  8096. sort.Sort(uintSlice(v2))
  8097. for _, k2 := range v2 {
  8098. if cr != nil {
  8099. cr.sendContainerState(containerMapKey)
  8100. }
  8101. ee.EncodeUint(uint64(uint16(k2)))
  8102. if cr != nil {
  8103. cr.sendContainerState(containerMapValue)
  8104. }
  8105. ee.EncodeUint(uint64(v[uint16(k2)]))
  8106. }
  8107. } else {
  8108. for k2, v2 := range v {
  8109. if cr != nil {
  8110. cr.sendContainerState(containerMapKey)
  8111. }
  8112. ee.EncodeUint(uint64(k2))
  8113. if cr != nil {
  8114. cr.sendContainerState(containerMapValue)
  8115. }
  8116. ee.EncodeUint(uint64(v2))
  8117. }
  8118. }
  8119. if cr != nil {
  8120. cr.sendContainerState(containerMapEnd)
  8121. }
  8122. }
  8123. func (f *encFnInfo) fastpathEncMapUint16Uint32R(rv reflect.Value) {
  8124. fastpathTV.EncMapUint16Uint32V(rv.Interface().(map[uint16]uint32), fastpathCheckNilFalse, f.e)
  8125. }
  8126. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, checkNil bool, e *Encoder) {
  8127. ee := e.e
  8128. cr := e.cr
  8129. if checkNil && v == nil {
  8130. ee.EncodeNil()
  8131. return
  8132. }
  8133. ee.EncodeMapStart(len(v))
  8134. if e.h.Canonical {
  8135. v2 := make([]uint64, len(v))
  8136. var i int
  8137. for k, _ := range v {
  8138. v2[i] = uint64(k)
  8139. i++
  8140. }
  8141. sort.Sort(uintSlice(v2))
  8142. for _, k2 := range v2 {
  8143. if cr != nil {
  8144. cr.sendContainerState(containerMapKey)
  8145. }
  8146. ee.EncodeUint(uint64(uint16(k2)))
  8147. if cr != nil {
  8148. cr.sendContainerState(containerMapValue)
  8149. }
  8150. ee.EncodeUint(uint64(v[uint16(k2)]))
  8151. }
  8152. } else {
  8153. for k2, v2 := range v {
  8154. if cr != nil {
  8155. cr.sendContainerState(containerMapKey)
  8156. }
  8157. ee.EncodeUint(uint64(k2))
  8158. if cr != nil {
  8159. cr.sendContainerState(containerMapValue)
  8160. }
  8161. ee.EncodeUint(uint64(v2))
  8162. }
  8163. }
  8164. if cr != nil {
  8165. cr.sendContainerState(containerMapEnd)
  8166. }
  8167. }
  8168. func (f *encFnInfo) fastpathEncMapUint16Uint64R(rv reflect.Value) {
  8169. fastpathTV.EncMapUint16Uint64V(rv.Interface().(map[uint16]uint64), fastpathCheckNilFalse, f.e)
  8170. }
  8171. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, checkNil bool, e *Encoder) {
  8172. ee := e.e
  8173. cr := e.cr
  8174. if checkNil && v == nil {
  8175. ee.EncodeNil()
  8176. return
  8177. }
  8178. ee.EncodeMapStart(len(v))
  8179. if e.h.Canonical {
  8180. v2 := make([]uint64, len(v))
  8181. var i int
  8182. for k, _ := range v {
  8183. v2[i] = uint64(k)
  8184. i++
  8185. }
  8186. sort.Sort(uintSlice(v2))
  8187. for _, k2 := range v2 {
  8188. if cr != nil {
  8189. cr.sendContainerState(containerMapKey)
  8190. }
  8191. ee.EncodeUint(uint64(uint16(k2)))
  8192. if cr != nil {
  8193. cr.sendContainerState(containerMapValue)
  8194. }
  8195. ee.EncodeUint(uint64(v[uint16(k2)]))
  8196. }
  8197. } else {
  8198. for k2, v2 := range v {
  8199. if cr != nil {
  8200. cr.sendContainerState(containerMapKey)
  8201. }
  8202. ee.EncodeUint(uint64(k2))
  8203. if cr != nil {
  8204. cr.sendContainerState(containerMapValue)
  8205. }
  8206. ee.EncodeUint(uint64(v2))
  8207. }
  8208. }
  8209. if cr != nil {
  8210. cr.sendContainerState(containerMapEnd)
  8211. }
  8212. }
  8213. func (f *encFnInfo) fastpathEncMapUint16UintptrR(rv reflect.Value) {
  8214. fastpathTV.EncMapUint16UintptrV(rv.Interface().(map[uint16]uintptr), fastpathCheckNilFalse, f.e)
  8215. }
  8216. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, checkNil bool, e *Encoder) {
  8217. ee := e.e
  8218. cr := e.cr
  8219. if checkNil && v == nil {
  8220. ee.EncodeNil()
  8221. return
  8222. }
  8223. ee.EncodeMapStart(len(v))
  8224. if e.h.Canonical {
  8225. v2 := make([]uint64, len(v))
  8226. var i int
  8227. for k, _ := range v {
  8228. v2[i] = uint64(k)
  8229. i++
  8230. }
  8231. sort.Sort(uintSlice(v2))
  8232. for _, k2 := range v2 {
  8233. if cr != nil {
  8234. cr.sendContainerState(containerMapKey)
  8235. }
  8236. ee.EncodeUint(uint64(uint16(k2)))
  8237. if cr != nil {
  8238. cr.sendContainerState(containerMapValue)
  8239. }
  8240. e.encode(v[uint16(k2)])
  8241. }
  8242. } else {
  8243. for k2, v2 := range v {
  8244. if cr != nil {
  8245. cr.sendContainerState(containerMapKey)
  8246. }
  8247. ee.EncodeUint(uint64(k2))
  8248. if cr != nil {
  8249. cr.sendContainerState(containerMapValue)
  8250. }
  8251. e.encode(v2)
  8252. }
  8253. }
  8254. if cr != nil {
  8255. cr.sendContainerState(containerMapEnd)
  8256. }
  8257. }
  8258. func (f *encFnInfo) fastpathEncMapUint16IntR(rv reflect.Value) {
  8259. fastpathTV.EncMapUint16IntV(rv.Interface().(map[uint16]int), fastpathCheckNilFalse, f.e)
  8260. }
  8261. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, checkNil bool, e *Encoder) {
  8262. ee := e.e
  8263. cr := e.cr
  8264. if checkNil && v == nil {
  8265. ee.EncodeNil()
  8266. return
  8267. }
  8268. ee.EncodeMapStart(len(v))
  8269. if e.h.Canonical {
  8270. v2 := make([]uint64, len(v))
  8271. var i int
  8272. for k, _ := range v {
  8273. v2[i] = uint64(k)
  8274. i++
  8275. }
  8276. sort.Sort(uintSlice(v2))
  8277. for _, k2 := range v2 {
  8278. if cr != nil {
  8279. cr.sendContainerState(containerMapKey)
  8280. }
  8281. ee.EncodeUint(uint64(uint16(k2)))
  8282. if cr != nil {
  8283. cr.sendContainerState(containerMapValue)
  8284. }
  8285. ee.EncodeInt(int64(v[uint16(k2)]))
  8286. }
  8287. } else {
  8288. for k2, v2 := range v {
  8289. if cr != nil {
  8290. cr.sendContainerState(containerMapKey)
  8291. }
  8292. ee.EncodeUint(uint64(k2))
  8293. if cr != nil {
  8294. cr.sendContainerState(containerMapValue)
  8295. }
  8296. ee.EncodeInt(int64(v2))
  8297. }
  8298. }
  8299. if cr != nil {
  8300. cr.sendContainerState(containerMapEnd)
  8301. }
  8302. }
  8303. func (f *encFnInfo) fastpathEncMapUint16Int8R(rv reflect.Value) {
  8304. fastpathTV.EncMapUint16Int8V(rv.Interface().(map[uint16]int8), fastpathCheckNilFalse, f.e)
  8305. }
  8306. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, checkNil bool, e *Encoder) {
  8307. ee := e.e
  8308. cr := e.cr
  8309. if checkNil && v == nil {
  8310. ee.EncodeNil()
  8311. return
  8312. }
  8313. ee.EncodeMapStart(len(v))
  8314. if e.h.Canonical {
  8315. v2 := make([]uint64, len(v))
  8316. var i int
  8317. for k, _ := range v {
  8318. v2[i] = uint64(k)
  8319. i++
  8320. }
  8321. sort.Sort(uintSlice(v2))
  8322. for _, k2 := range v2 {
  8323. if cr != nil {
  8324. cr.sendContainerState(containerMapKey)
  8325. }
  8326. ee.EncodeUint(uint64(uint16(k2)))
  8327. if cr != nil {
  8328. cr.sendContainerState(containerMapValue)
  8329. }
  8330. ee.EncodeInt(int64(v[uint16(k2)]))
  8331. }
  8332. } else {
  8333. for k2, v2 := range v {
  8334. if cr != nil {
  8335. cr.sendContainerState(containerMapKey)
  8336. }
  8337. ee.EncodeUint(uint64(k2))
  8338. if cr != nil {
  8339. cr.sendContainerState(containerMapValue)
  8340. }
  8341. ee.EncodeInt(int64(v2))
  8342. }
  8343. }
  8344. if cr != nil {
  8345. cr.sendContainerState(containerMapEnd)
  8346. }
  8347. }
  8348. func (f *encFnInfo) fastpathEncMapUint16Int16R(rv reflect.Value) {
  8349. fastpathTV.EncMapUint16Int16V(rv.Interface().(map[uint16]int16), fastpathCheckNilFalse, f.e)
  8350. }
  8351. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, checkNil bool, e *Encoder) {
  8352. ee := e.e
  8353. cr := e.cr
  8354. if checkNil && v == nil {
  8355. ee.EncodeNil()
  8356. return
  8357. }
  8358. ee.EncodeMapStart(len(v))
  8359. if e.h.Canonical {
  8360. v2 := make([]uint64, len(v))
  8361. var i int
  8362. for k, _ := range v {
  8363. v2[i] = uint64(k)
  8364. i++
  8365. }
  8366. sort.Sort(uintSlice(v2))
  8367. for _, k2 := range v2 {
  8368. if cr != nil {
  8369. cr.sendContainerState(containerMapKey)
  8370. }
  8371. ee.EncodeUint(uint64(uint16(k2)))
  8372. if cr != nil {
  8373. cr.sendContainerState(containerMapValue)
  8374. }
  8375. ee.EncodeInt(int64(v[uint16(k2)]))
  8376. }
  8377. } else {
  8378. for k2, v2 := range v {
  8379. if cr != nil {
  8380. cr.sendContainerState(containerMapKey)
  8381. }
  8382. ee.EncodeUint(uint64(k2))
  8383. if cr != nil {
  8384. cr.sendContainerState(containerMapValue)
  8385. }
  8386. ee.EncodeInt(int64(v2))
  8387. }
  8388. }
  8389. if cr != nil {
  8390. cr.sendContainerState(containerMapEnd)
  8391. }
  8392. }
  8393. func (f *encFnInfo) fastpathEncMapUint16Int32R(rv reflect.Value) {
  8394. fastpathTV.EncMapUint16Int32V(rv.Interface().(map[uint16]int32), fastpathCheckNilFalse, f.e)
  8395. }
  8396. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, checkNil bool, e *Encoder) {
  8397. ee := e.e
  8398. cr := e.cr
  8399. if checkNil && v == nil {
  8400. ee.EncodeNil()
  8401. return
  8402. }
  8403. ee.EncodeMapStart(len(v))
  8404. if e.h.Canonical {
  8405. v2 := make([]uint64, len(v))
  8406. var i int
  8407. for k, _ := range v {
  8408. v2[i] = uint64(k)
  8409. i++
  8410. }
  8411. sort.Sort(uintSlice(v2))
  8412. for _, k2 := range v2 {
  8413. if cr != nil {
  8414. cr.sendContainerState(containerMapKey)
  8415. }
  8416. ee.EncodeUint(uint64(uint16(k2)))
  8417. if cr != nil {
  8418. cr.sendContainerState(containerMapValue)
  8419. }
  8420. ee.EncodeInt(int64(v[uint16(k2)]))
  8421. }
  8422. } else {
  8423. for k2, v2 := range v {
  8424. if cr != nil {
  8425. cr.sendContainerState(containerMapKey)
  8426. }
  8427. ee.EncodeUint(uint64(k2))
  8428. if cr != nil {
  8429. cr.sendContainerState(containerMapValue)
  8430. }
  8431. ee.EncodeInt(int64(v2))
  8432. }
  8433. }
  8434. if cr != nil {
  8435. cr.sendContainerState(containerMapEnd)
  8436. }
  8437. }
  8438. func (f *encFnInfo) fastpathEncMapUint16Int64R(rv reflect.Value) {
  8439. fastpathTV.EncMapUint16Int64V(rv.Interface().(map[uint16]int64), fastpathCheckNilFalse, f.e)
  8440. }
  8441. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, checkNil bool, e *Encoder) {
  8442. ee := e.e
  8443. cr := e.cr
  8444. if checkNil && v == nil {
  8445. ee.EncodeNil()
  8446. return
  8447. }
  8448. ee.EncodeMapStart(len(v))
  8449. if e.h.Canonical {
  8450. v2 := make([]uint64, len(v))
  8451. var i int
  8452. for k, _ := range v {
  8453. v2[i] = uint64(k)
  8454. i++
  8455. }
  8456. sort.Sort(uintSlice(v2))
  8457. for _, k2 := range v2 {
  8458. if cr != nil {
  8459. cr.sendContainerState(containerMapKey)
  8460. }
  8461. ee.EncodeUint(uint64(uint16(k2)))
  8462. if cr != nil {
  8463. cr.sendContainerState(containerMapValue)
  8464. }
  8465. ee.EncodeInt(int64(v[uint16(k2)]))
  8466. }
  8467. } else {
  8468. for k2, v2 := range v {
  8469. if cr != nil {
  8470. cr.sendContainerState(containerMapKey)
  8471. }
  8472. ee.EncodeUint(uint64(k2))
  8473. if cr != nil {
  8474. cr.sendContainerState(containerMapValue)
  8475. }
  8476. ee.EncodeInt(int64(v2))
  8477. }
  8478. }
  8479. if cr != nil {
  8480. cr.sendContainerState(containerMapEnd)
  8481. }
  8482. }
  8483. func (f *encFnInfo) fastpathEncMapUint16Float32R(rv reflect.Value) {
  8484. fastpathTV.EncMapUint16Float32V(rv.Interface().(map[uint16]float32), fastpathCheckNilFalse, f.e)
  8485. }
  8486. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, checkNil bool, e *Encoder) {
  8487. ee := e.e
  8488. cr := e.cr
  8489. if checkNil && v == nil {
  8490. ee.EncodeNil()
  8491. return
  8492. }
  8493. ee.EncodeMapStart(len(v))
  8494. if e.h.Canonical {
  8495. v2 := make([]uint64, len(v))
  8496. var i int
  8497. for k, _ := range v {
  8498. v2[i] = uint64(k)
  8499. i++
  8500. }
  8501. sort.Sort(uintSlice(v2))
  8502. for _, k2 := range v2 {
  8503. if cr != nil {
  8504. cr.sendContainerState(containerMapKey)
  8505. }
  8506. ee.EncodeUint(uint64(uint16(k2)))
  8507. if cr != nil {
  8508. cr.sendContainerState(containerMapValue)
  8509. }
  8510. ee.EncodeFloat32(v[uint16(k2)])
  8511. }
  8512. } else {
  8513. for k2, v2 := range v {
  8514. if cr != nil {
  8515. cr.sendContainerState(containerMapKey)
  8516. }
  8517. ee.EncodeUint(uint64(k2))
  8518. if cr != nil {
  8519. cr.sendContainerState(containerMapValue)
  8520. }
  8521. ee.EncodeFloat32(v2)
  8522. }
  8523. }
  8524. if cr != nil {
  8525. cr.sendContainerState(containerMapEnd)
  8526. }
  8527. }
  8528. func (f *encFnInfo) fastpathEncMapUint16Float64R(rv reflect.Value) {
  8529. fastpathTV.EncMapUint16Float64V(rv.Interface().(map[uint16]float64), fastpathCheckNilFalse, f.e)
  8530. }
  8531. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, checkNil bool, e *Encoder) {
  8532. ee := e.e
  8533. cr := e.cr
  8534. if checkNil && v == nil {
  8535. ee.EncodeNil()
  8536. return
  8537. }
  8538. ee.EncodeMapStart(len(v))
  8539. if e.h.Canonical {
  8540. v2 := make([]uint64, len(v))
  8541. var i int
  8542. for k, _ := range v {
  8543. v2[i] = uint64(k)
  8544. i++
  8545. }
  8546. sort.Sort(uintSlice(v2))
  8547. for _, k2 := range v2 {
  8548. if cr != nil {
  8549. cr.sendContainerState(containerMapKey)
  8550. }
  8551. ee.EncodeUint(uint64(uint16(k2)))
  8552. if cr != nil {
  8553. cr.sendContainerState(containerMapValue)
  8554. }
  8555. ee.EncodeFloat64(v[uint16(k2)])
  8556. }
  8557. } else {
  8558. for k2, v2 := range v {
  8559. if cr != nil {
  8560. cr.sendContainerState(containerMapKey)
  8561. }
  8562. ee.EncodeUint(uint64(k2))
  8563. if cr != nil {
  8564. cr.sendContainerState(containerMapValue)
  8565. }
  8566. ee.EncodeFloat64(v2)
  8567. }
  8568. }
  8569. if cr != nil {
  8570. cr.sendContainerState(containerMapEnd)
  8571. }
  8572. }
  8573. func (f *encFnInfo) fastpathEncMapUint16BoolR(rv reflect.Value) {
  8574. fastpathTV.EncMapUint16BoolV(rv.Interface().(map[uint16]bool), fastpathCheckNilFalse, f.e)
  8575. }
  8576. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, checkNil bool, e *Encoder) {
  8577. ee := e.e
  8578. cr := e.cr
  8579. if checkNil && v == nil {
  8580. ee.EncodeNil()
  8581. return
  8582. }
  8583. ee.EncodeMapStart(len(v))
  8584. if e.h.Canonical {
  8585. v2 := make([]uint64, len(v))
  8586. var i int
  8587. for k, _ := range v {
  8588. v2[i] = uint64(k)
  8589. i++
  8590. }
  8591. sort.Sort(uintSlice(v2))
  8592. for _, k2 := range v2 {
  8593. if cr != nil {
  8594. cr.sendContainerState(containerMapKey)
  8595. }
  8596. ee.EncodeUint(uint64(uint16(k2)))
  8597. if cr != nil {
  8598. cr.sendContainerState(containerMapValue)
  8599. }
  8600. ee.EncodeBool(v[uint16(k2)])
  8601. }
  8602. } else {
  8603. for k2, v2 := range v {
  8604. if cr != nil {
  8605. cr.sendContainerState(containerMapKey)
  8606. }
  8607. ee.EncodeUint(uint64(k2))
  8608. if cr != nil {
  8609. cr.sendContainerState(containerMapValue)
  8610. }
  8611. ee.EncodeBool(v2)
  8612. }
  8613. }
  8614. if cr != nil {
  8615. cr.sendContainerState(containerMapEnd)
  8616. }
  8617. }
  8618. func (f *encFnInfo) fastpathEncMapUint32IntfR(rv reflect.Value) {
  8619. fastpathTV.EncMapUint32IntfV(rv.Interface().(map[uint32]interface{}), fastpathCheckNilFalse, f.e)
  8620. }
  8621. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, checkNil bool, e *Encoder) {
  8622. ee := e.e
  8623. cr := e.cr
  8624. if checkNil && v == nil {
  8625. ee.EncodeNil()
  8626. return
  8627. }
  8628. ee.EncodeMapStart(len(v))
  8629. if e.h.Canonical {
  8630. v2 := make([]uint64, len(v))
  8631. var i int
  8632. for k, _ := range v {
  8633. v2[i] = uint64(k)
  8634. i++
  8635. }
  8636. sort.Sort(uintSlice(v2))
  8637. for _, k2 := range v2 {
  8638. if cr != nil {
  8639. cr.sendContainerState(containerMapKey)
  8640. }
  8641. ee.EncodeUint(uint64(uint32(k2)))
  8642. if cr != nil {
  8643. cr.sendContainerState(containerMapValue)
  8644. }
  8645. e.encode(v[uint32(k2)])
  8646. }
  8647. } else {
  8648. for k2, v2 := range v {
  8649. if cr != nil {
  8650. cr.sendContainerState(containerMapKey)
  8651. }
  8652. ee.EncodeUint(uint64(k2))
  8653. if cr != nil {
  8654. cr.sendContainerState(containerMapValue)
  8655. }
  8656. e.encode(v2)
  8657. }
  8658. }
  8659. if cr != nil {
  8660. cr.sendContainerState(containerMapEnd)
  8661. }
  8662. }
  8663. func (f *encFnInfo) fastpathEncMapUint32StringR(rv reflect.Value) {
  8664. fastpathTV.EncMapUint32StringV(rv.Interface().(map[uint32]string), fastpathCheckNilFalse, f.e)
  8665. }
  8666. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, checkNil bool, e *Encoder) {
  8667. ee := e.e
  8668. cr := e.cr
  8669. if checkNil && v == nil {
  8670. ee.EncodeNil()
  8671. return
  8672. }
  8673. ee.EncodeMapStart(len(v))
  8674. if e.h.Canonical {
  8675. v2 := make([]uint64, len(v))
  8676. var i int
  8677. for k, _ := range v {
  8678. v2[i] = uint64(k)
  8679. i++
  8680. }
  8681. sort.Sort(uintSlice(v2))
  8682. for _, k2 := range v2 {
  8683. if cr != nil {
  8684. cr.sendContainerState(containerMapKey)
  8685. }
  8686. ee.EncodeUint(uint64(uint32(k2)))
  8687. if cr != nil {
  8688. cr.sendContainerState(containerMapValue)
  8689. }
  8690. ee.EncodeString(c_UTF8, v[uint32(k2)])
  8691. }
  8692. } else {
  8693. for k2, v2 := range v {
  8694. if cr != nil {
  8695. cr.sendContainerState(containerMapKey)
  8696. }
  8697. ee.EncodeUint(uint64(k2))
  8698. if cr != nil {
  8699. cr.sendContainerState(containerMapValue)
  8700. }
  8701. ee.EncodeString(c_UTF8, v2)
  8702. }
  8703. }
  8704. if cr != nil {
  8705. cr.sendContainerState(containerMapEnd)
  8706. }
  8707. }
  8708. func (f *encFnInfo) fastpathEncMapUint32UintR(rv reflect.Value) {
  8709. fastpathTV.EncMapUint32UintV(rv.Interface().(map[uint32]uint), fastpathCheckNilFalse, f.e)
  8710. }
  8711. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, checkNil bool, e *Encoder) {
  8712. ee := e.e
  8713. cr := e.cr
  8714. if checkNil && v == nil {
  8715. ee.EncodeNil()
  8716. return
  8717. }
  8718. ee.EncodeMapStart(len(v))
  8719. if e.h.Canonical {
  8720. v2 := make([]uint64, len(v))
  8721. var i int
  8722. for k, _ := range v {
  8723. v2[i] = uint64(k)
  8724. i++
  8725. }
  8726. sort.Sort(uintSlice(v2))
  8727. for _, k2 := range v2 {
  8728. if cr != nil {
  8729. cr.sendContainerState(containerMapKey)
  8730. }
  8731. ee.EncodeUint(uint64(uint32(k2)))
  8732. if cr != nil {
  8733. cr.sendContainerState(containerMapValue)
  8734. }
  8735. ee.EncodeUint(uint64(v[uint32(k2)]))
  8736. }
  8737. } else {
  8738. for k2, v2 := range v {
  8739. if cr != nil {
  8740. cr.sendContainerState(containerMapKey)
  8741. }
  8742. ee.EncodeUint(uint64(k2))
  8743. if cr != nil {
  8744. cr.sendContainerState(containerMapValue)
  8745. }
  8746. ee.EncodeUint(uint64(v2))
  8747. }
  8748. }
  8749. if cr != nil {
  8750. cr.sendContainerState(containerMapEnd)
  8751. }
  8752. }
  8753. func (f *encFnInfo) fastpathEncMapUint32Uint8R(rv reflect.Value) {
  8754. fastpathTV.EncMapUint32Uint8V(rv.Interface().(map[uint32]uint8), fastpathCheckNilFalse, f.e)
  8755. }
  8756. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, checkNil bool, e *Encoder) {
  8757. ee := e.e
  8758. cr := e.cr
  8759. if checkNil && v == nil {
  8760. ee.EncodeNil()
  8761. return
  8762. }
  8763. ee.EncodeMapStart(len(v))
  8764. if e.h.Canonical {
  8765. v2 := make([]uint64, len(v))
  8766. var i int
  8767. for k, _ := range v {
  8768. v2[i] = uint64(k)
  8769. i++
  8770. }
  8771. sort.Sort(uintSlice(v2))
  8772. for _, k2 := range v2 {
  8773. if cr != nil {
  8774. cr.sendContainerState(containerMapKey)
  8775. }
  8776. ee.EncodeUint(uint64(uint32(k2)))
  8777. if cr != nil {
  8778. cr.sendContainerState(containerMapValue)
  8779. }
  8780. ee.EncodeUint(uint64(v[uint32(k2)]))
  8781. }
  8782. } else {
  8783. for k2, v2 := range v {
  8784. if cr != nil {
  8785. cr.sendContainerState(containerMapKey)
  8786. }
  8787. ee.EncodeUint(uint64(k2))
  8788. if cr != nil {
  8789. cr.sendContainerState(containerMapValue)
  8790. }
  8791. ee.EncodeUint(uint64(v2))
  8792. }
  8793. }
  8794. if cr != nil {
  8795. cr.sendContainerState(containerMapEnd)
  8796. }
  8797. }
  8798. func (f *encFnInfo) fastpathEncMapUint32Uint16R(rv reflect.Value) {
  8799. fastpathTV.EncMapUint32Uint16V(rv.Interface().(map[uint32]uint16), fastpathCheckNilFalse, f.e)
  8800. }
  8801. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, checkNil bool, e *Encoder) {
  8802. ee := e.e
  8803. cr := e.cr
  8804. if checkNil && v == nil {
  8805. ee.EncodeNil()
  8806. return
  8807. }
  8808. ee.EncodeMapStart(len(v))
  8809. if e.h.Canonical {
  8810. v2 := make([]uint64, len(v))
  8811. var i int
  8812. for k, _ := range v {
  8813. v2[i] = uint64(k)
  8814. i++
  8815. }
  8816. sort.Sort(uintSlice(v2))
  8817. for _, k2 := range v2 {
  8818. if cr != nil {
  8819. cr.sendContainerState(containerMapKey)
  8820. }
  8821. ee.EncodeUint(uint64(uint32(k2)))
  8822. if cr != nil {
  8823. cr.sendContainerState(containerMapValue)
  8824. }
  8825. ee.EncodeUint(uint64(v[uint32(k2)]))
  8826. }
  8827. } else {
  8828. for k2, v2 := range v {
  8829. if cr != nil {
  8830. cr.sendContainerState(containerMapKey)
  8831. }
  8832. ee.EncodeUint(uint64(k2))
  8833. if cr != nil {
  8834. cr.sendContainerState(containerMapValue)
  8835. }
  8836. ee.EncodeUint(uint64(v2))
  8837. }
  8838. }
  8839. if cr != nil {
  8840. cr.sendContainerState(containerMapEnd)
  8841. }
  8842. }
  8843. func (f *encFnInfo) fastpathEncMapUint32Uint32R(rv reflect.Value) {
  8844. fastpathTV.EncMapUint32Uint32V(rv.Interface().(map[uint32]uint32), fastpathCheckNilFalse, f.e)
  8845. }
  8846. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, checkNil bool, e *Encoder) {
  8847. ee := e.e
  8848. cr := e.cr
  8849. if checkNil && v == nil {
  8850. ee.EncodeNil()
  8851. return
  8852. }
  8853. ee.EncodeMapStart(len(v))
  8854. if e.h.Canonical {
  8855. v2 := make([]uint64, len(v))
  8856. var i int
  8857. for k, _ := range v {
  8858. v2[i] = uint64(k)
  8859. i++
  8860. }
  8861. sort.Sort(uintSlice(v2))
  8862. for _, k2 := range v2 {
  8863. if cr != nil {
  8864. cr.sendContainerState(containerMapKey)
  8865. }
  8866. ee.EncodeUint(uint64(uint32(k2)))
  8867. if cr != nil {
  8868. cr.sendContainerState(containerMapValue)
  8869. }
  8870. ee.EncodeUint(uint64(v[uint32(k2)]))
  8871. }
  8872. } else {
  8873. for k2, v2 := range v {
  8874. if cr != nil {
  8875. cr.sendContainerState(containerMapKey)
  8876. }
  8877. ee.EncodeUint(uint64(k2))
  8878. if cr != nil {
  8879. cr.sendContainerState(containerMapValue)
  8880. }
  8881. ee.EncodeUint(uint64(v2))
  8882. }
  8883. }
  8884. if cr != nil {
  8885. cr.sendContainerState(containerMapEnd)
  8886. }
  8887. }
  8888. func (f *encFnInfo) fastpathEncMapUint32Uint64R(rv reflect.Value) {
  8889. fastpathTV.EncMapUint32Uint64V(rv.Interface().(map[uint32]uint64), fastpathCheckNilFalse, f.e)
  8890. }
  8891. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, checkNil bool, e *Encoder) {
  8892. ee := e.e
  8893. cr := e.cr
  8894. if checkNil && v == nil {
  8895. ee.EncodeNil()
  8896. return
  8897. }
  8898. ee.EncodeMapStart(len(v))
  8899. if e.h.Canonical {
  8900. v2 := make([]uint64, len(v))
  8901. var i int
  8902. for k, _ := range v {
  8903. v2[i] = uint64(k)
  8904. i++
  8905. }
  8906. sort.Sort(uintSlice(v2))
  8907. for _, k2 := range v2 {
  8908. if cr != nil {
  8909. cr.sendContainerState(containerMapKey)
  8910. }
  8911. ee.EncodeUint(uint64(uint32(k2)))
  8912. if cr != nil {
  8913. cr.sendContainerState(containerMapValue)
  8914. }
  8915. ee.EncodeUint(uint64(v[uint32(k2)]))
  8916. }
  8917. } else {
  8918. for k2, v2 := range v {
  8919. if cr != nil {
  8920. cr.sendContainerState(containerMapKey)
  8921. }
  8922. ee.EncodeUint(uint64(k2))
  8923. if cr != nil {
  8924. cr.sendContainerState(containerMapValue)
  8925. }
  8926. ee.EncodeUint(uint64(v2))
  8927. }
  8928. }
  8929. if cr != nil {
  8930. cr.sendContainerState(containerMapEnd)
  8931. }
  8932. }
  8933. func (f *encFnInfo) fastpathEncMapUint32UintptrR(rv reflect.Value) {
  8934. fastpathTV.EncMapUint32UintptrV(rv.Interface().(map[uint32]uintptr), fastpathCheckNilFalse, f.e)
  8935. }
  8936. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, checkNil bool, e *Encoder) {
  8937. ee := e.e
  8938. cr := e.cr
  8939. if checkNil && v == nil {
  8940. ee.EncodeNil()
  8941. return
  8942. }
  8943. ee.EncodeMapStart(len(v))
  8944. if e.h.Canonical {
  8945. v2 := make([]uint64, len(v))
  8946. var i int
  8947. for k, _ := range v {
  8948. v2[i] = uint64(k)
  8949. i++
  8950. }
  8951. sort.Sort(uintSlice(v2))
  8952. for _, k2 := range v2 {
  8953. if cr != nil {
  8954. cr.sendContainerState(containerMapKey)
  8955. }
  8956. ee.EncodeUint(uint64(uint32(k2)))
  8957. if cr != nil {
  8958. cr.sendContainerState(containerMapValue)
  8959. }
  8960. e.encode(v[uint32(k2)])
  8961. }
  8962. } else {
  8963. for k2, v2 := range v {
  8964. if cr != nil {
  8965. cr.sendContainerState(containerMapKey)
  8966. }
  8967. ee.EncodeUint(uint64(k2))
  8968. if cr != nil {
  8969. cr.sendContainerState(containerMapValue)
  8970. }
  8971. e.encode(v2)
  8972. }
  8973. }
  8974. if cr != nil {
  8975. cr.sendContainerState(containerMapEnd)
  8976. }
  8977. }
  8978. func (f *encFnInfo) fastpathEncMapUint32IntR(rv reflect.Value) {
  8979. fastpathTV.EncMapUint32IntV(rv.Interface().(map[uint32]int), fastpathCheckNilFalse, f.e)
  8980. }
  8981. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, checkNil bool, e *Encoder) {
  8982. ee := e.e
  8983. cr := e.cr
  8984. if checkNil && v == nil {
  8985. ee.EncodeNil()
  8986. return
  8987. }
  8988. ee.EncodeMapStart(len(v))
  8989. if e.h.Canonical {
  8990. v2 := make([]uint64, len(v))
  8991. var i int
  8992. for k, _ := range v {
  8993. v2[i] = uint64(k)
  8994. i++
  8995. }
  8996. sort.Sort(uintSlice(v2))
  8997. for _, k2 := range v2 {
  8998. if cr != nil {
  8999. cr.sendContainerState(containerMapKey)
  9000. }
  9001. ee.EncodeUint(uint64(uint32(k2)))
  9002. if cr != nil {
  9003. cr.sendContainerState(containerMapValue)
  9004. }
  9005. ee.EncodeInt(int64(v[uint32(k2)]))
  9006. }
  9007. } else {
  9008. for k2, v2 := range v {
  9009. if cr != nil {
  9010. cr.sendContainerState(containerMapKey)
  9011. }
  9012. ee.EncodeUint(uint64(k2))
  9013. if cr != nil {
  9014. cr.sendContainerState(containerMapValue)
  9015. }
  9016. ee.EncodeInt(int64(v2))
  9017. }
  9018. }
  9019. if cr != nil {
  9020. cr.sendContainerState(containerMapEnd)
  9021. }
  9022. }
  9023. func (f *encFnInfo) fastpathEncMapUint32Int8R(rv reflect.Value) {
  9024. fastpathTV.EncMapUint32Int8V(rv.Interface().(map[uint32]int8), fastpathCheckNilFalse, f.e)
  9025. }
  9026. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, checkNil bool, e *Encoder) {
  9027. ee := e.e
  9028. cr := e.cr
  9029. if checkNil && v == nil {
  9030. ee.EncodeNil()
  9031. return
  9032. }
  9033. ee.EncodeMapStart(len(v))
  9034. if e.h.Canonical {
  9035. v2 := make([]uint64, len(v))
  9036. var i int
  9037. for k, _ := range v {
  9038. v2[i] = uint64(k)
  9039. i++
  9040. }
  9041. sort.Sort(uintSlice(v2))
  9042. for _, k2 := range v2 {
  9043. if cr != nil {
  9044. cr.sendContainerState(containerMapKey)
  9045. }
  9046. ee.EncodeUint(uint64(uint32(k2)))
  9047. if cr != nil {
  9048. cr.sendContainerState(containerMapValue)
  9049. }
  9050. ee.EncodeInt(int64(v[uint32(k2)]))
  9051. }
  9052. } else {
  9053. for k2, v2 := range v {
  9054. if cr != nil {
  9055. cr.sendContainerState(containerMapKey)
  9056. }
  9057. ee.EncodeUint(uint64(k2))
  9058. if cr != nil {
  9059. cr.sendContainerState(containerMapValue)
  9060. }
  9061. ee.EncodeInt(int64(v2))
  9062. }
  9063. }
  9064. if cr != nil {
  9065. cr.sendContainerState(containerMapEnd)
  9066. }
  9067. }
  9068. func (f *encFnInfo) fastpathEncMapUint32Int16R(rv reflect.Value) {
  9069. fastpathTV.EncMapUint32Int16V(rv.Interface().(map[uint32]int16), fastpathCheckNilFalse, f.e)
  9070. }
  9071. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, checkNil bool, e *Encoder) {
  9072. ee := e.e
  9073. cr := e.cr
  9074. if checkNil && v == nil {
  9075. ee.EncodeNil()
  9076. return
  9077. }
  9078. ee.EncodeMapStart(len(v))
  9079. if e.h.Canonical {
  9080. v2 := make([]uint64, len(v))
  9081. var i int
  9082. for k, _ := range v {
  9083. v2[i] = uint64(k)
  9084. i++
  9085. }
  9086. sort.Sort(uintSlice(v2))
  9087. for _, k2 := range v2 {
  9088. if cr != nil {
  9089. cr.sendContainerState(containerMapKey)
  9090. }
  9091. ee.EncodeUint(uint64(uint32(k2)))
  9092. if cr != nil {
  9093. cr.sendContainerState(containerMapValue)
  9094. }
  9095. ee.EncodeInt(int64(v[uint32(k2)]))
  9096. }
  9097. } else {
  9098. for k2, v2 := range v {
  9099. if cr != nil {
  9100. cr.sendContainerState(containerMapKey)
  9101. }
  9102. ee.EncodeUint(uint64(k2))
  9103. if cr != nil {
  9104. cr.sendContainerState(containerMapValue)
  9105. }
  9106. ee.EncodeInt(int64(v2))
  9107. }
  9108. }
  9109. if cr != nil {
  9110. cr.sendContainerState(containerMapEnd)
  9111. }
  9112. }
  9113. func (f *encFnInfo) fastpathEncMapUint32Int32R(rv reflect.Value) {
  9114. fastpathTV.EncMapUint32Int32V(rv.Interface().(map[uint32]int32), fastpathCheckNilFalse, f.e)
  9115. }
  9116. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, checkNil bool, e *Encoder) {
  9117. ee := e.e
  9118. cr := e.cr
  9119. if checkNil && v == nil {
  9120. ee.EncodeNil()
  9121. return
  9122. }
  9123. ee.EncodeMapStart(len(v))
  9124. if e.h.Canonical {
  9125. v2 := make([]uint64, len(v))
  9126. var i int
  9127. for k, _ := range v {
  9128. v2[i] = uint64(k)
  9129. i++
  9130. }
  9131. sort.Sort(uintSlice(v2))
  9132. for _, k2 := range v2 {
  9133. if cr != nil {
  9134. cr.sendContainerState(containerMapKey)
  9135. }
  9136. ee.EncodeUint(uint64(uint32(k2)))
  9137. if cr != nil {
  9138. cr.sendContainerState(containerMapValue)
  9139. }
  9140. ee.EncodeInt(int64(v[uint32(k2)]))
  9141. }
  9142. } else {
  9143. for k2, v2 := range v {
  9144. if cr != nil {
  9145. cr.sendContainerState(containerMapKey)
  9146. }
  9147. ee.EncodeUint(uint64(k2))
  9148. if cr != nil {
  9149. cr.sendContainerState(containerMapValue)
  9150. }
  9151. ee.EncodeInt(int64(v2))
  9152. }
  9153. }
  9154. if cr != nil {
  9155. cr.sendContainerState(containerMapEnd)
  9156. }
  9157. }
  9158. func (f *encFnInfo) fastpathEncMapUint32Int64R(rv reflect.Value) {
  9159. fastpathTV.EncMapUint32Int64V(rv.Interface().(map[uint32]int64), fastpathCheckNilFalse, f.e)
  9160. }
  9161. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, checkNil bool, e *Encoder) {
  9162. ee := e.e
  9163. cr := e.cr
  9164. if checkNil && v == nil {
  9165. ee.EncodeNil()
  9166. return
  9167. }
  9168. ee.EncodeMapStart(len(v))
  9169. if e.h.Canonical {
  9170. v2 := make([]uint64, len(v))
  9171. var i int
  9172. for k, _ := range v {
  9173. v2[i] = uint64(k)
  9174. i++
  9175. }
  9176. sort.Sort(uintSlice(v2))
  9177. for _, k2 := range v2 {
  9178. if cr != nil {
  9179. cr.sendContainerState(containerMapKey)
  9180. }
  9181. ee.EncodeUint(uint64(uint32(k2)))
  9182. if cr != nil {
  9183. cr.sendContainerState(containerMapValue)
  9184. }
  9185. ee.EncodeInt(int64(v[uint32(k2)]))
  9186. }
  9187. } else {
  9188. for k2, v2 := range v {
  9189. if cr != nil {
  9190. cr.sendContainerState(containerMapKey)
  9191. }
  9192. ee.EncodeUint(uint64(k2))
  9193. if cr != nil {
  9194. cr.sendContainerState(containerMapValue)
  9195. }
  9196. ee.EncodeInt(int64(v2))
  9197. }
  9198. }
  9199. if cr != nil {
  9200. cr.sendContainerState(containerMapEnd)
  9201. }
  9202. }
  9203. func (f *encFnInfo) fastpathEncMapUint32Float32R(rv reflect.Value) {
  9204. fastpathTV.EncMapUint32Float32V(rv.Interface().(map[uint32]float32), fastpathCheckNilFalse, f.e)
  9205. }
  9206. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, checkNil bool, e *Encoder) {
  9207. ee := e.e
  9208. cr := e.cr
  9209. if checkNil && v == nil {
  9210. ee.EncodeNil()
  9211. return
  9212. }
  9213. ee.EncodeMapStart(len(v))
  9214. if e.h.Canonical {
  9215. v2 := make([]uint64, len(v))
  9216. var i int
  9217. for k, _ := range v {
  9218. v2[i] = uint64(k)
  9219. i++
  9220. }
  9221. sort.Sort(uintSlice(v2))
  9222. for _, k2 := range v2 {
  9223. if cr != nil {
  9224. cr.sendContainerState(containerMapKey)
  9225. }
  9226. ee.EncodeUint(uint64(uint32(k2)))
  9227. if cr != nil {
  9228. cr.sendContainerState(containerMapValue)
  9229. }
  9230. ee.EncodeFloat32(v[uint32(k2)])
  9231. }
  9232. } else {
  9233. for k2, v2 := range v {
  9234. if cr != nil {
  9235. cr.sendContainerState(containerMapKey)
  9236. }
  9237. ee.EncodeUint(uint64(k2))
  9238. if cr != nil {
  9239. cr.sendContainerState(containerMapValue)
  9240. }
  9241. ee.EncodeFloat32(v2)
  9242. }
  9243. }
  9244. if cr != nil {
  9245. cr.sendContainerState(containerMapEnd)
  9246. }
  9247. }
  9248. func (f *encFnInfo) fastpathEncMapUint32Float64R(rv reflect.Value) {
  9249. fastpathTV.EncMapUint32Float64V(rv.Interface().(map[uint32]float64), fastpathCheckNilFalse, f.e)
  9250. }
  9251. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, checkNil bool, e *Encoder) {
  9252. ee := e.e
  9253. cr := e.cr
  9254. if checkNil && v == nil {
  9255. ee.EncodeNil()
  9256. return
  9257. }
  9258. ee.EncodeMapStart(len(v))
  9259. if e.h.Canonical {
  9260. v2 := make([]uint64, len(v))
  9261. var i int
  9262. for k, _ := range v {
  9263. v2[i] = uint64(k)
  9264. i++
  9265. }
  9266. sort.Sort(uintSlice(v2))
  9267. for _, k2 := range v2 {
  9268. if cr != nil {
  9269. cr.sendContainerState(containerMapKey)
  9270. }
  9271. ee.EncodeUint(uint64(uint32(k2)))
  9272. if cr != nil {
  9273. cr.sendContainerState(containerMapValue)
  9274. }
  9275. ee.EncodeFloat64(v[uint32(k2)])
  9276. }
  9277. } else {
  9278. for k2, v2 := range v {
  9279. if cr != nil {
  9280. cr.sendContainerState(containerMapKey)
  9281. }
  9282. ee.EncodeUint(uint64(k2))
  9283. if cr != nil {
  9284. cr.sendContainerState(containerMapValue)
  9285. }
  9286. ee.EncodeFloat64(v2)
  9287. }
  9288. }
  9289. if cr != nil {
  9290. cr.sendContainerState(containerMapEnd)
  9291. }
  9292. }
  9293. func (f *encFnInfo) fastpathEncMapUint32BoolR(rv reflect.Value) {
  9294. fastpathTV.EncMapUint32BoolV(rv.Interface().(map[uint32]bool), fastpathCheckNilFalse, f.e)
  9295. }
  9296. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, checkNil bool, e *Encoder) {
  9297. ee := e.e
  9298. cr := e.cr
  9299. if checkNil && v == nil {
  9300. ee.EncodeNil()
  9301. return
  9302. }
  9303. ee.EncodeMapStart(len(v))
  9304. if e.h.Canonical {
  9305. v2 := make([]uint64, len(v))
  9306. var i int
  9307. for k, _ := range v {
  9308. v2[i] = uint64(k)
  9309. i++
  9310. }
  9311. sort.Sort(uintSlice(v2))
  9312. for _, k2 := range v2 {
  9313. if cr != nil {
  9314. cr.sendContainerState(containerMapKey)
  9315. }
  9316. ee.EncodeUint(uint64(uint32(k2)))
  9317. if cr != nil {
  9318. cr.sendContainerState(containerMapValue)
  9319. }
  9320. ee.EncodeBool(v[uint32(k2)])
  9321. }
  9322. } else {
  9323. for k2, v2 := range v {
  9324. if cr != nil {
  9325. cr.sendContainerState(containerMapKey)
  9326. }
  9327. ee.EncodeUint(uint64(k2))
  9328. if cr != nil {
  9329. cr.sendContainerState(containerMapValue)
  9330. }
  9331. ee.EncodeBool(v2)
  9332. }
  9333. }
  9334. if cr != nil {
  9335. cr.sendContainerState(containerMapEnd)
  9336. }
  9337. }
  9338. func (f *encFnInfo) fastpathEncMapUint64IntfR(rv reflect.Value) {
  9339. fastpathTV.EncMapUint64IntfV(rv.Interface().(map[uint64]interface{}), fastpathCheckNilFalse, f.e)
  9340. }
  9341. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, checkNil bool, e *Encoder) {
  9342. ee := e.e
  9343. cr := e.cr
  9344. if checkNil && v == nil {
  9345. ee.EncodeNil()
  9346. return
  9347. }
  9348. ee.EncodeMapStart(len(v))
  9349. if e.h.Canonical {
  9350. v2 := make([]uint64, len(v))
  9351. var i int
  9352. for k, _ := range v {
  9353. v2[i] = uint64(k)
  9354. i++
  9355. }
  9356. sort.Sort(uintSlice(v2))
  9357. for _, k2 := range v2 {
  9358. if cr != nil {
  9359. cr.sendContainerState(containerMapKey)
  9360. }
  9361. ee.EncodeUint(uint64(uint64(k2)))
  9362. if cr != nil {
  9363. cr.sendContainerState(containerMapValue)
  9364. }
  9365. e.encode(v[uint64(k2)])
  9366. }
  9367. } else {
  9368. for k2, v2 := range v {
  9369. if cr != nil {
  9370. cr.sendContainerState(containerMapKey)
  9371. }
  9372. ee.EncodeUint(uint64(k2))
  9373. if cr != nil {
  9374. cr.sendContainerState(containerMapValue)
  9375. }
  9376. e.encode(v2)
  9377. }
  9378. }
  9379. if cr != nil {
  9380. cr.sendContainerState(containerMapEnd)
  9381. }
  9382. }
  9383. func (f *encFnInfo) fastpathEncMapUint64StringR(rv reflect.Value) {
  9384. fastpathTV.EncMapUint64StringV(rv.Interface().(map[uint64]string), fastpathCheckNilFalse, f.e)
  9385. }
  9386. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, checkNil bool, e *Encoder) {
  9387. ee := e.e
  9388. cr := e.cr
  9389. if checkNil && v == nil {
  9390. ee.EncodeNil()
  9391. return
  9392. }
  9393. ee.EncodeMapStart(len(v))
  9394. if e.h.Canonical {
  9395. v2 := make([]uint64, len(v))
  9396. var i int
  9397. for k, _ := range v {
  9398. v2[i] = uint64(k)
  9399. i++
  9400. }
  9401. sort.Sort(uintSlice(v2))
  9402. for _, k2 := range v2 {
  9403. if cr != nil {
  9404. cr.sendContainerState(containerMapKey)
  9405. }
  9406. ee.EncodeUint(uint64(uint64(k2)))
  9407. if cr != nil {
  9408. cr.sendContainerState(containerMapValue)
  9409. }
  9410. ee.EncodeString(c_UTF8, v[uint64(k2)])
  9411. }
  9412. } else {
  9413. for k2, v2 := range v {
  9414. if cr != nil {
  9415. cr.sendContainerState(containerMapKey)
  9416. }
  9417. ee.EncodeUint(uint64(k2))
  9418. if cr != nil {
  9419. cr.sendContainerState(containerMapValue)
  9420. }
  9421. ee.EncodeString(c_UTF8, v2)
  9422. }
  9423. }
  9424. if cr != nil {
  9425. cr.sendContainerState(containerMapEnd)
  9426. }
  9427. }
  9428. func (f *encFnInfo) fastpathEncMapUint64UintR(rv reflect.Value) {
  9429. fastpathTV.EncMapUint64UintV(rv.Interface().(map[uint64]uint), fastpathCheckNilFalse, f.e)
  9430. }
  9431. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, checkNil bool, e *Encoder) {
  9432. ee := e.e
  9433. cr := e.cr
  9434. if checkNil && v == nil {
  9435. ee.EncodeNil()
  9436. return
  9437. }
  9438. ee.EncodeMapStart(len(v))
  9439. if e.h.Canonical {
  9440. v2 := make([]uint64, len(v))
  9441. var i int
  9442. for k, _ := range v {
  9443. v2[i] = uint64(k)
  9444. i++
  9445. }
  9446. sort.Sort(uintSlice(v2))
  9447. for _, k2 := range v2 {
  9448. if cr != nil {
  9449. cr.sendContainerState(containerMapKey)
  9450. }
  9451. ee.EncodeUint(uint64(uint64(k2)))
  9452. if cr != nil {
  9453. cr.sendContainerState(containerMapValue)
  9454. }
  9455. ee.EncodeUint(uint64(v[uint64(k2)]))
  9456. }
  9457. } else {
  9458. for k2, v2 := range v {
  9459. if cr != nil {
  9460. cr.sendContainerState(containerMapKey)
  9461. }
  9462. ee.EncodeUint(uint64(k2))
  9463. if cr != nil {
  9464. cr.sendContainerState(containerMapValue)
  9465. }
  9466. ee.EncodeUint(uint64(v2))
  9467. }
  9468. }
  9469. if cr != nil {
  9470. cr.sendContainerState(containerMapEnd)
  9471. }
  9472. }
  9473. func (f *encFnInfo) fastpathEncMapUint64Uint8R(rv reflect.Value) {
  9474. fastpathTV.EncMapUint64Uint8V(rv.Interface().(map[uint64]uint8), fastpathCheckNilFalse, f.e)
  9475. }
  9476. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, checkNil bool, e *Encoder) {
  9477. ee := e.e
  9478. cr := e.cr
  9479. if checkNil && v == nil {
  9480. ee.EncodeNil()
  9481. return
  9482. }
  9483. ee.EncodeMapStart(len(v))
  9484. if e.h.Canonical {
  9485. v2 := make([]uint64, len(v))
  9486. var i int
  9487. for k, _ := range v {
  9488. v2[i] = uint64(k)
  9489. i++
  9490. }
  9491. sort.Sort(uintSlice(v2))
  9492. for _, k2 := range v2 {
  9493. if cr != nil {
  9494. cr.sendContainerState(containerMapKey)
  9495. }
  9496. ee.EncodeUint(uint64(uint64(k2)))
  9497. if cr != nil {
  9498. cr.sendContainerState(containerMapValue)
  9499. }
  9500. ee.EncodeUint(uint64(v[uint64(k2)]))
  9501. }
  9502. } else {
  9503. for k2, v2 := range v {
  9504. if cr != nil {
  9505. cr.sendContainerState(containerMapKey)
  9506. }
  9507. ee.EncodeUint(uint64(k2))
  9508. if cr != nil {
  9509. cr.sendContainerState(containerMapValue)
  9510. }
  9511. ee.EncodeUint(uint64(v2))
  9512. }
  9513. }
  9514. if cr != nil {
  9515. cr.sendContainerState(containerMapEnd)
  9516. }
  9517. }
  9518. func (f *encFnInfo) fastpathEncMapUint64Uint16R(rv reflect.Value) {
  9519. fastpathTV.EncMapUint64Uint16V(rv.Interface().(map[uint64]uint16), fastpathCheckNilFalse, f.e)
  9520. }
  9521. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, checkNil bool, e *Encoder) {
  9522. ee := e.e
  9523. cr := e.cr
  9524. if checkNil && v == nil {
  9525. ee.EncodeNil()
  9526. return
  9527. }
  9528. ee.EncodeMapStart(len(v))
  9529. if e.h.Canonical {
  9530. v2 := make([]uint64, len(v))
  9531. var i int
  9532. for k, _ := range v {
  9533. v2[i] = uint64(k)
  9534. i++
  9535. }
  9536. sort.Sort(uintSlice(v2))
  9537. for _, k2 := range v2 {
  9538. if cr != nil {
  9539. cr.sendContainerState(containerMapKey)
  9540. }
  9541. ee.EncodeUint(uint64(uint64(k2)))
  9542. if cr != nil {
  9543. cr.sendContainerState(containerMapValue)
  9544. }
  9545. ee.EncodeUint(uint64(v[uint64(k2)]))
  9546. }
  9547. } else {
  9548. for k2, v2 := range v {
  9549. if cr != nil {
  9550. cr.sendContainerState(containerMapKey)
  9551. }
  9552. ee.EncodeUint(uint64(k2))
  9553. if cr != nil {
  9554. cr.sendContainerState(containerMapValue)
  9555. }
  9556. ee.EncodeUint(uint64(v2))
  9557. }
  9558. }
  9559. if cr != nil {
  9560. cr.sendContainerState(containerMapEnd)
  9561. }
  9562. }
  9563. func (f *encFnInfo) fastpathEncMapUint64Uint32R(rv reflect.Value) {
  9564. fastpathTV.EncMapUint64Uint32V(rv.Interface().(map[uint64]uint32), fastpathCheckNilFalse, f.e)
  9565. }
  9566. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, checkNil bool, e *Encoder) {
  9567. ee := e.e
  9568. cr := e.cr
  9569. if checkNil && v == nil {
  9570. ee.EncodeNil()
  9571. return
  9572. }
  9573. ee.EncodeMapStart(len(v))
  9574. if e.h.Canonical {
  9575. v2 := make([]uint64, len(v))
  9576. var i int
  9577. for k, _ := range v {
  9578. v2[i] = uint64(k)
  9579. i++
  9580. }
  9581. sort.Sort(uintSlice(v2))
  9582. for _, k2 := range v2 {
  9583. if cr != nil {
  9584. cr.sendContainerState(containerMapKey)
  9585. }
  9586. ee.EncodeUint(uint64(uint64(k2)))
  9587. if cr != nil {
  9588. cr.sendContainerState(containerMapValue)
  9589. }
  9590. ee.EncodeUint(uint64(v[uint64(k2)]))
  9591. }
  9592. } else {
  9593. for k2, v2 := range v {
  9594. if cr != nil {
  9595. cr.sendContainerState(containerMapKey)
  9596. }
  9597. ee.EncodeUint(uint64(k2))
  9598. if cr != nil {
  9599. cr.sendContainerState(containerMapValue)
  9600. }
  9601. ee.EncodeUint(uint64(v2))
  9602. }
  9603. }
  9604. if cr != nil {
  9605. cr.sendContainerState(containerMapEnd)
  9606. }
  9607. }
  9608. func (f *encFnInfo) fastpathEncMapUint64Uint64R(rv reflect.Value) {
  9609. fastpathTV.EncMapUint64Uint64V(rv.Interface().(map[uint64]uint64), fastpathCheckNilFalse, f.e)
  9610. }
  9611. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, checkNil bool, e *Encoder) {
  9612. ee := e.e
  9613. cr := e.cr
  9614. if checkNil && v == nil {
  9615. ee.EncodeNil()
  9616. return
  9617. }
  9618. ee.EncodeMapStart(len(v))
  9619. if e.h.Canonical {
  9620. v2 := make([]uint64, len(v))
  9621. var i int
  9622. for k, _ := range v {
  9623. v2[i] = uint64(k)
  9624. i++
  9625. }
  9626. sort.Sort(uintSlice(v2))
  9627. for _, k2 := range v2 {
  9628. if cr != nil {
  9629. cr.sendContainerState(containerMapKey)
  9630. }
  9631. ee.EncodeUint(uint64(uint64(k2)))
  9632. if cr != nil {
  9633. cr.sendContainerState(containerMapValue)
  9634. }
  9635. ee.EncodeUint(uint64(v[uint64(k2)]))
  9636. }
  9637. } else {
  9638. for k2, v2 := range v {
  9639. if cr != nil {
  9640. cr.sendContainerState(containerMapKey)
  9641. }
  9642. ee.EncodeUint(uint64(k2))
  9643. if cr != nil {
  9644. cr.sendContainerState(containerMapValue)
  9645. }
  9646. ee.EncodeUint(uint64(v2))
  9647. }
  9648. }
  9649. if cr != nil {
  9650. cr.sendContainerState(containerMapEnd)
  9651. }
  9652. }
  9653. func (f *encFnInfo) fastpathEncMapUint64UintptrR(rv reflect.Value) {
  9654. fastpathTV.EncMapUint64UintptrV(rv.Interface().(map[uint64]uintptr), fastpathCheckNilFalse, f.e)
  9655. }
  9656. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, checkNil bool, e *Encoder) {
  9657. ee := e.e
  9658. cr := e.cr
  9659. if checkNil && v == nil {
  9660. ee.EncodeNil()
  9661. return
  9662. }
  9663. ee.EncodeMapStart(len(v))
  9664. if e.h.Canonical {
  9665. v2 := make([]uint64, len(v))
  9666. var i int
  9667. for k, _ := range v {
  9668. v2[i] = uint64(k)
  9669. i++
  9670. }
  9671. sort.Sort(uintSlice(v2))
  9672. for _, k2 := range v2 {
  9673. if cr != nil {
  9674. cr.sendContainerState(containerMapKey)
  9675. }
  9676. ee.EncodeUint(uint64(uint64(k2)))
  9677. if cr != nil {
  9678. cr.sendContainerState(containerMapValue)
  9679. }
  9680. e.encode(v[uint64(k2)])
  9681. }
  9682. } else {
  9683. for k2, v2 := range v {
  9684. if cr != nil {
  9685. cr.sendContainerState(containerMapKey)
  9686. }
  9687. ee.EncodeUint(uint64(k2))
  9688. if cr != nil {
  9689. cr.sendContainerState(containerMapValue)
  9690. }
  9691. e.encode(v2)
  9692. }
  9693. }
  9694. if cr != nil {
  9695. cr.sendContainerState(containerMapEnd)
  9696. }
  9697. }
  9698. func (f *encFnInfo) fastpathEncMapUint64IntR(rv reflect.Value) {
  9699. fastpathTV.EncMapUint64IntV(rv.Interface().(map[uint64]int), fastpathCheckNilFalse, f.e)
  9700. }
  9701. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, checkNil bool, e *Encoder) {
  9702. ee := e.e
  9703. cr := e.cr
  9704. if checkNil && v == nil {
  9705. ee.EncodeNil()
  9706. return
  9707. }
  9708. ee.EncodeMapStart(len(v))
  9709. if e.h.Canonical {
  9710. v2 := make([]uint64, len(v))
  9711. var i int
  9712. for k, _ := range v {
  9713. v2[i] = uint64(k)
  9714. i++
  9715. }
  9716. sort.Sort(uintSlice(v2))
  9717. for _, k2 := range v2 {
  9718. if cr != nil {
  9719. cr.sendContainerState(containerMapKey)
  9720. }
  9721. ee.EncodeUint(uint64(uint64(k2)))
  9722. if cr != nil {
  9723. cr.sendContainerState(containerMapValue)
  9724. }
  9725. ee.EncodeInt(int64(v[uint64(k2)]))
  9726. }
  9727. } else {
  9728. for k2, v2 := range v {
  9729. if cr != nil {
  9730. cr.sendContainerState(containerMapKey)
  9731. }
  9732. ee.EncodeUint(uint64(k2))
  9733. if cr != nil {
  9734. cr.sendContainerState(containerMapValue)
  9735. }
  9736. ee.EncodeInt(int64(v2))
  9737. }
  9738. }
  9739. if cr != nil {
  9740. cr.sendContainerState(containerMapEnd)
  9741. }
  9742. }
  9743. func (f *encFnInfo) fastpathEncMapUint64Int8R(rv reflect.Value) {
  9744. fastpathTV.EncMapUint64Int8V(rv.Interface().(map[uint64]int8), fastpathCheckNilFalse, f.e)
  9745. }
  9746. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, checkNil bool, e *Encoder) {
  9747. ee := e.e
  9748. cr := e.cr
  9749. if checkNil && v == nil {
  9750. ee.EncodeNil()
  9751. return
  9752. }
  9753. ee.EncodeMapStart(len(v))
  9754. if e.h.Canonical {
  9755. v2 := make([]uint64, len(v))
  9756. var i int
  9757. for k, _ := range v {
  9758. v2[i] = uint64(k)
  9759. i++
  9760. }
  9761. sort.Sort(uintSlice(v2))
  9762. for _, k2 := range v2 {
  9763. if cr != nil {
  9764. cr.sendContainerState(containerMapKey)
  9765. }
  9766. ee.EncodeUint(uint64(uint64(k2)))
  9767. if cr != nil {
  9768. cr.sendContainerState(containerMapValue)
  9769. }
  9770. ee.EncodeInt(int64(v[uint64(k2)]))
  9771. }
  9772. } else {
  9773. for k2, v2 := range v {
  9774. if cr != nil {
  9775. cr.sendContainerState(containerMapKey)
  9776. }
  9777. ee.EncodeUint(uint64(k2))
  9778. if cr != nil {
  9779. cr.sendContainerState(containerMapValue)
  9780. }
  9781. ee.EncodeInt(int64(v2))
  9782. }
  9783. }
  9784. if cr != nil {
  9785. cr.sendContainerState(containerMapEnd)
  9786. }
  9787. }
  9788. func (f *encFnInfo) fastpathEncMapUint64Int16R(rv reflect.Value) {
  9789. fastpathTV.EncMapUint64Int16V(rv.Interface().(map[uint64]int16), fastpathCheckNilFalse, f.e)
  9790. }
  9791. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, checkNil bool, e *Encoder) {
  9792. ee := e.e
  9793. cr := e.cr
  9794. if checkNil && v == nil {
  9795. ee.EncodeNil()
  9796. return
  9797. }
  9798. ee.EncodeMapStart(len(v))
  9799. if e.h.Canonical {
  9800. v2 := make([]uint64, len(v))
  9801. var i int
  9802. for k, _ := range v {
  9803. v2[i] = uint64(k)
  9804. i++
  9805. }
  9806. sort.Sort(uintSlice(v2))
  9807. for _, k2 := range v2 {
  9808. if cr != nil {
  9809. cr.sendContainerState(containerMapKey)
  9810. }
  9811. ee.EncodeUint(uint64(uint64(k2)))
  9812. if cr != nil {
  9813. cr.sendContainerState(containerMapValue)
  9814. }
  9815. ee.EncodeInt(int64(v[uint64(k2)]))
  9816. }
  9817. } else {
  9818. for k2, v2 := range v {
  9819. if cr != nil {
  9820. cr.sendContainerState(containerMapKey)
  9821. }
  9822. ee.EncodeUint(uint64(k2))
  9823. if cr != nil {
  9824. cr.sendContainerState(containerMapValue)
  9825. }
  9826. ee.EncodeInt(int64(v2))
  9827. }
  9828. }
  9829. if cr != nil {
  9830. cr.sendContainerState(containerMapEnd)
  9831. }
  9832. }
  9833. func (f *encFnInfo) fastpathEncMapUint64Int32R(rv reflect.Value) {
  9834. fastpathTV.EncMapUint64Int32V(rv.Interface().(map[uint64]int32), fastpathCheckNilFalse, f.e)
  9835. }
  9836. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, checkNil bool, e *Encoder) {
  9837. ee := e.e
  9838. cr := e.cr
  9839. if checkNil && v == nil {
  9840. ee.EncodeNil()
  9841. return
  9842. }
  9843. ee.EncodeMapStart(len(v))
  9844. if e.h.Canonical {
  9845. v2 := make([]uint64, len(v))
  9846. var i int
  9847. for k, _ := range v {
  9848. v2[i] = uint64(k)
  9849. i++
  9850. }
  9851. sort.Sort(uintSlice(v2))
  9852. for _, k2 := range v2 {
  9853. if cr != nil {
  9854. cr.sendContainerState(containerMapKey)
  9855. }
  9856. ee.EncodeUint(uint64(uint64(k2)))
  9857. if cr != nil {
  9858. cr.sendContainerState(containerMapValue)
  9859. }
  9860. ee.EncodeInt(int64(v[uint64(k2)]))
  9861. }
  9862. } else {
  9863. for k2, v2 := range v {
  9864. if cr != nil {
  9865. cr.sendContainerState(containerMapKey)
  9866. }
  9867. ee.EncodeUint(uint64(k2))
  9868. if cr != nil {
  9869. cr.sendContainerState(containerMapValue)
  9870. }
  9871. ee.EncodeInt(int64(v2))
  9872. }
  9873. }
  9874. if cr != nil {
  9875. cr.sendContainerState(containerMapEnd)
  9876. }
  9877. }
  9878. func (f *encFnInfo) fastpathEncMapUint64Int64R(rv reflect.Value) {
  9879. fastpathTV.EncMapUint64Int64V(rv.Interface().(map[uint64]int64), fastpathCheckNilFalse, f.e)
  9880. }
  9881. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, checkNil bool, e *Encoder) {
  9882. ee := e.e
  9883. cr := e.cr
  9884. if checkNil && v == nil {
  9885. ee.EncodeNil()
  9886. return
  9887. }
  9888. ee.EncodeMapStart(len(v))
  9889. if e.h.Canonical {
  9890. v2 := make([]uint64, len(v))
  9891. var i int
  9892. for k, _ := range v {
  9893. v2[i] = uint64(k)
  9894. i++
  9895. }
  9896. sort.Sort(uintSlice(v2))
  9897. for _, k2 := range v2 {
  9898. if cr != nil {
  9899. cr.sendContainerState(containerMapKey)
  9900. }
  9901. ee.EncodeUint(uint64(uint64(k2)))
  9902. if cr != nil {
  9903. cr.sendContainerState(containerMapValue)
  9904. }
  9905. ee.EncodeInt(int64(v[uint64(k2)]))
  9906. }
  9907. } else {
  9908. for k2, v2 := range v {
  9909. if cr != nil {
  9910. cr.sendContainerState(containerMapKey)
  9911. }
  9912. ee.EncodeUint(uint64(k2))
  9913. if cr != nil {
  9914. cr.sendContainerState(containerMapValue)
  9915. }
  9916. ee.EncodeInt(int64(v2))
  9917. }
  9918. }
  9919. if cr != nil {
  9920. cr.sendContainerState(containerMapEnd)
  9921. }
  9922. }
  9923. func (f *encFnInfo) fastpathEncMapUint64Float32R(rv reflect.Value) {
  9924. fastpathTV.EncMapUint64Float32V(rv.Interface().(map[uint64]float32), fastpathCheckNilFalse, f.e)
  9925. }
  9926. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, checkNil bool, e *Encoder) {
  9927. ee := e.e
  9928. cr := e.cr
  9929. if checkNil && v == nil {
  9930. ee.EncodeNil()
  9931. return
  9932. }
  9933. ee.EncodeMapStart(len(v))
  9934. if e.h.Canonical {
  9935. v2 := make([]uint64, len(v))
  9936. var i int
  9937. for k, _ := range v {
  9938. v2[i] = uint64(k)
  9939. i++
  9940. }
  9941. sort.Sort(uintSlice(v2))
  9942. for _, k2 := range v2 {
  9943. if cr != nil {
  9944. cr.sendContainerState(containerMapKey)
  9945. }
  9946. ee.EncodeUint(uint64(uint64(k2)))
  9947. if cr != nil {
  9948. cr.sendContainerState(containerMapValue)
  9949. }
  9950. ee.EncodeFloat32(v[uint64(k2)])
  9951. }
  9952. } else {
  9953. for k2, v2 := range v {
  9954. if cr != nil {
  9955. cr.sendContainerState(containerMapKey)
  9956. }
  9957. ee.EncodeUint(uint64(k2))
  9958. if cr != nil {
  9959. cr.sendContainerState(containerMapValue)
  9960. }
  9961. ee.EncodeFloat32(v2)
  9962. }
  9963. }
  9964. if cr != nil {
  9965. cr.sendContainerState(containerMapEnd)
  9966. }
  9967. }
  9968. func (f *encFnInfo) fastpathEncMapUint64Float64R(rv reflect.Value) {
  9969. fastpathTV.EncMapUint64Float64V(rv.Interface().(map[uint64]float64), fastpathCheckNilFalse, f.e)
  9970. }
  9971. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, checkNil bool, e *Encoder) {
  9972. ee := e.e
  9973. cr := e.cr
  9974. if checkNil && v == nil {
  9975. ee.EncodeNil()
  9976. return
  9977. }
  9978. ee.EncodeMapStart(len(v))
  9979. if e.h.Canonical {
  9980. v2 := make([]uint64, len(v))
  9981. var i int
  9982. for k, _ := range v {
  9983. v2[i] = uint64(k)
  9984. i++
  9985. }
  9986. sort.Sort(uintSlice(v2))
  9987. for _, k2 := range v2 {
  9988. if cr != nil {
  9989. cr.sendContainerState(containerMapKey)
  9990. }
  9991. ee.EncodeUint(uint64(uint64(k2)))
  9992. if cr != nil {
  9993. cr.sendContainerState(containerMapValue)
  9994. }
  9995. ee.EncodeFloat64(v[uint64(k2)])
  9996. }
  9997. } else {
  9998. for k2, v2 := range v {
  9999. if cr != nil {
  10000. cr.sendContainerState(containerMapKey)
  10001. }
  10002. ee.EncodeUint(uint64(k2))
  10003. if cr != nil {
  10004. cr.sendContainerState(containerMapValue)
  10005. }
  10006. ee.EncodeFloat64(v2)
  10007. }
  10008. }
  10009. if cr != nil {
  10010. cr.sendContainerState(containerMapEnd)
  10011. }
  10012. }
  10013. func (f *encFnInfo) fastpathEncMapUint64BoolR(rv reflect.Value) {
  10014. fastpathTV.EncMapUint64BoolV(rv.Interface().(map[uint64]bool), fastpathCheckNilFalse, f.e)
  10015. }
  10016. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, checkNil bool, e *Encoder) {
  10017. ee := e.e
  10018. cr := e.cr
  10019. if checkNil && v == nil {
  10020. ee.EncodeNil()
  10021. return
  10022. }
  10023. ee.EncodeMapStart(len(v))
  10024. if e.h.Canonical {
  10025. v2 := make([]uint64, len(v))
  10026. var i int
  10027. for k, _ := range v {
  10028. v2[i] = uint64(k)
  10029. i++
  10030. }
  10031. sort.Sort(uintSlice(v2))
  10032. for _, k2 := range v2 {
  10033. if cr != nil {
  10034. cr.sendContainerState(containerMapKey)
  10035. }
  10036. ee.EncodeUint(uint64(uint64(k2)))
  10037. if cr != nil {
  10038. cr.sendContainerState(containerMapValue)
  10039. }
  10040. ee.EncodeBool(v[uint64(k2)])
  10041. }
  10042. } else {
  10043. for k2, v2 := range v {
  10044. if cr != nil {
  10045. cr.sendContainerState(containerMapKey)
  10046. }
  10047. ee.EncodeUint(uint64(k2))
  10048. if cr != nil {
  10049. cr.sendContainerState(containerMapValue)
  10050. }
  10051. ee.EncodeBool(v2)
  10052. }
  10053. }
  10054. if cr != nil {
  10055. cr.sendContainerState(containerMapEnd)
  10056. }
  10057. }
  10058. func (f *encFnInfo) fastpathEncMapUintptrIntfR(rv reflect.Value) {
  10059. fastpathTV.EncMapUintptrIntfV(rv.Interface().(map[uintptr]interface{}), fastpathCheckNilFalse, f.e)
  10060. }
  10061. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, checkNil bool, e *Encoder) {
  10062. ee := e.e
  10063. cr := e.cr
  10064. if checkNil && v == nil {
  10065. ee.EncodeNil()
  10066. return
  10067. }
  10068. ee.EncodeMapStart(len(v))
  10069. if e.h.Canonical {
  10070. v2 := make([]uint64, len(v))
  10071. var i int
  10072. for k, _ := range v {
  10073. v2[i] = uint64(k)
  10074. i++
  10075. }
  10076. sort.Sort(uintSlice(v2))
  10077. for _, k2 := range v2 {
  10078. if cr != nil {
  10079. cr.sendContainerState(containerMapKey)
  10080. }
  10081. e.encode(uintptr(k2))
  10082. if cr != nil {
  10083. cr.sendContainerState(containerMapValue)
  10084. }
  10085. e.encode(v[uintptr(k2)])
  10086. }
  10087. } else {
  10088. for k2, v2 := range v {
  10089. if cr != nil {
  10090. cr.sendContainerState(containerMapKey)
  10091. }
  10092. e.encode(k2)
  10093. if cr != nil {
  10094. cr.sendContainerState(containerMapValue)
  10095. }
  10096. e.encode(v2)
  10097. }
  10098. }
  10099. if cr != nil {
  10100. cr.sendContainerState(containerMapEnd)
  10101. }
  10102. }
  10103. func (f *encFnInfo) fastpathEncMapUintptrStringR(rv reflect.Value) {
  10104. fastpathTV.EncMapUintptrStringV(rv.Interface().(map[uintptr]string), fastpathCheckNilFalse, f.e)
  10105. }
  10106. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, checkNil bool, e *Encoder) {
  10107. ee := e.e
  10108. cr := e.cr
  10109. if checkNil && v == nil {
  10110. ee.EncodeNil()
  10111. return
  10112. }
  10113. ee.EncodeMapStart(len(v))
  10114. if e.h.Canonical {
  10115. v2 := make([]uint64, len(v))
  10116. var i int
  10117. for k, _ := range v {
  10118. v2[i] = uint64(k)
  10119. i++
  10120. }
  10121. sort.Sort(uintSlice(v2))
  10122. for _, k2 := range v2 {
  10123. if cr != nil {
  10124. cr.sendContainerState(containerMapKey)
  10125. }
  10126. e.encode(uintptr(k2))
  10127. if cr != nil {
  10128. cr.sendContainerState(containerMapValue)
  10129. }
  10130. ee.EncodeString(c_UTF8, v[uintptr(k2)])
  10131. }
  10132. } else {
  10133. for k2, v2 := range v {
  10134. if cr != nil {
  10135. cr.sendContainerState(containerMapKey)
  10136. }
  10137. e.encode(k2)
  10138. if cr != nil {
  10139. cr.sendContainerState(containerMapValue)
  10140. }
  10141. ee.EncodeString(c_UTF8, v2)
  10142. }
  10143. }
  10144. if cr != nil {
  10145. cr.sendContainerState(containerMapEnd)
  10146. }
  10147. }
  10148. func (f *encFnInfo) fastpathEncMapUintptrUintR(rv reflect.Value) {
  10149. fastpathTV.EncMapUintptrUintV(rv.Interface().(map[uintptr]uint), fastpathCheckNilFalse, f.e)
  10150. }
  10151. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, checkNil bool, e *Encoder) {
  10152. ee := e.e
  10153. cr := e.cr
  10154. if checkNil && v == nil {
  10155. ee.EncodeNil()
  10156. return
  10157. }
  10158. ee.EncodeMapStart(len(v))
  10159. if e.h.Canonical {
  10160. v2 := make([]uint64, len(v))
  10161. var i int
  10162. for k, _ := range v {
  10163. v2[i] = uint64(k)
  10164. i++
  10165. }
  10166. sort.Sort(uintSlice(v2))
  10167. for _, k2 := range v2 {
  10168. if cr != nil {
  10169. cr.sendContainerState(containerMapKey)
  10170. }
  10171. e.encode(uintptr(k2))
  10172. if cr != nil {
  10173. cr.sendContainerState(containerMapValue)
  10174. }
  10175. ee.EncodeUint(uint64(v[uintptr(k2)]))
  10176. }
  10177. } else {
  10178. for k2, v2 := range v {
  10179. if cr != nil {
  10180. cr.sendContainerState(containerMapKey)
  10181. }
  10182. e.encode(k2)
  10183. if cr != nil {
  10184. cr.sendContainerState(containerMapValue)
  10185. }
  10186. ee.EncodeUint(uint64(v2))
  10187. }
  10188. }
  10189. if cr != nil {
  10190. cr.sendContainerState(containerMapEnd)
  10191. }
  10192. }
  10193. func (f *encFnInfo) fastpathEncMapUintptrUint8R(rv reflect.Value) {
  10194. fastpathTV.EncMapUintptrUint8V(rv.Interface().(map[uintptr]uint8), fastpathCheckNilFalse, f.e)
  10195. }
  10196. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, checkNil bool, e *Encoder) {
  10197. ee := e.e
  10198. cr := e.cr
  10199. if checkNil && v == nil {
  10200. ee.EncodeNil()
  10201. return
  10202. }
  10203. ee.EncodeMapStart(len(v))
  10204. if e.h.Canonical {
  10205. v2 := make([]uint64, len(v))
  10206. var i int
  10207. for k, _ := range v {
  10208. v2[i] = uint64(k)
  10209. i++
  10210. }
  10211. sort.Sort(uintSlice(v2))
  10212. for _, k2 := range v2 {
  10213. if cr != nil {
  10214. cr.sendContainerState(containerMapKey)
  10215. }
  10216. e.encode(uintptr(k2))
  10217. if cr != nil {
  10218. cr.sendContainerState(containerMapValue)
  10219. }
  10220. ee.EncodeUint(uint64(v[uintptr(k2)]))
  10221. }
  10222. } else {
  10223. for k2, v2 := range v {
  10224. if cr != nil {
  10225. cr.sendContainerState(containerMapKey)
  10226. }
  10227. e.encode(k2)
  10228. if cr != nil {
  10229. cr.sendContainerState(containerMapValue)
  10230. }
  10231. ee.EncodeUint(uint64(v2))
  10232. }
  10233. }
  10234. if cr != nil {
  10235. cr.sendContainerState(containerMapEnd)
  10236. }
  10237. }
  10238. func (f *encFnInfo) fastpathEncMapUintptrUint16R(rv reflect.Value) {
  10239. fastpathTV.EncMapUintptrUint16V(rv.Interface().(map[uintptr]uint16), fastpathCheckNilFalse, f.e)
  10240. }
  10241. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, checkNil bool, e *Encoder) {
  10242. ee := e.e
  10243. cr := e.cr
  10244. if checkNil && v == nil {
  10245. ee.EncodeNil()
  10246. return
  10247. }
  10248. ee.EncodeMapStart(len(v))
  10249. if e.h.Canonical {
  10250. v2 := make([]uint64, len(v))
  10251. var i int
  10252. for k, _ := range v {
  10253. v2[i] = uint64(k)
  10254. i++
  10255. }
  10256. sort.Sort(uintSlice(v2))
  10257. for _, k2 := range v2 {
  10258. if cr != nil {
  10259. cr.sendContainerState(containerMapKey)
  10260. }
  10261. e.encode(uintptr(k2))
  10262. if cr != nil {
  10263. cr.sendContainerState(containerMapValue)
  10264. }
  10265. ee.EncodeUint(uint64(v[uintptr(k2)]))
  10266. }
  10267. } else {
  10268. for k2, v2 := range v {
  10269. if cr != nil {
  10270. cr.sendContainerState(containerMapKey)
  10271. }
  10272. e.encode(k2)
  10273. if cr != nil {
  10274. cr.sendContainerState(containerMapValue)
  10275. }
  10276. ee.EncodeUint(uint64(v2))
  10277. }
  10278. }
  10279. if cr != nil {
  10280. cr.sendContainerState(containerMapEnd)
  10281. }
  10282. }
  10283. func (f *encFnInfo) fastpathEncMapUintptrUint32R(rv reflect.Value) {
  10284. fastpathTV.EncMapUintptrUint32V(rv.Interface().(map[uintptr]uint32), fastpathCheckNilFalse, f.e)
  10285. }
  10286. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, checkNil bool, e *Encoder) {
  10287. ee := e.e
  10288. cr := e.cr
  10289. if checkNil && v == nil {
  10290. ee.EncodeNil()
  10291. return
  10292. }
  10293. ee.EncodeMapStart(len(v))
  10294. if e.h.Canonical {
  10295. v2 := make([]uint64, len(v))
  10296. var i int
  10297. for k, _ := range v {
  10298. v2[i] = uint64(k)
  10299. i++
  10300. }
  10301. sort.Sort(uintSlice(v2))
  10302. for _, k2 := range v2 {
  10303. if cr != nil {
  10304. cr.sendContainerState(containerMapKey)
  10305. }
  10306. e.encode(uintptr(k2))
  10307. if cr != nil {
  10308. cr.sendContainerState(containerMapValue)
  10309. }
  10310. ee.EncodeUint(uint64(v[uintptr(k2)]))
  10311. }
  10312. } else {
  10313. for k2, v2 := range v {
  10314. if cr != nil {
  10315. cr.sendContainerState(containerMapKey)
  10316. }
  10317. e.encode(k2)
  10318. if cr != nil {
  10319. cr.sendContainerState(containerMapValue)
  10320. }
  10321. ee.EncodeUint(uint64(v2))
  10322. }
  10323. }
  10324. if cr != nil {
  10325. cr.sendContainerState(containerMapEnd)
  10326. }
  10327. }
  10328. func (f *encFnInfo) fastpathEncMapUintptrUint64R(rv reflect.Value) {
  10329. fastpathTV.EncMapUintptrUint64V(rv.Interface().(map[uintptr]uint64), fastpathCheckNilFalse, f.e)
  10330. }
  10331. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, checkNil bool, e *Encoder) {
  10332. ee := e.e
  10333. cr := e.cr
  10334. if checkNil && v == nil {
  10335. ee.EncodeNil()
  10336. return
  10337. }
  10338. ee.EncodeMapStart(len(v))
  10339. if e.h.Canonical {
  10340. v2 := make([]uint64, len(v))
  10341. var i int
  10342. for k, _ := range v {
  10343. v2[i] = uint64(k)
  10344. i++
  10345. }
  10346. sort.Sort(uintSlice(v2))
  10347. for _, k2 := range v2 {
  10348. if cr != nil {
  10349. cr.sendContainerState(containerMapKey)
  10350. }
  10351. e.encode(uintptr(k2))
  10352. if cr != nil {
  10353. cr.sendContainerState(containerMapValue)
  10354. }
  10355. ee.EncodeUint(uint64(v[uintptr(k2)]))
  10356. }
  10357. } else {
  10358. for k2, v2 := range v {
  10359. if cr != nil {
  10360. cr.sendContainerState(containerMapKey)
  10361. }
  10362. e.encode(k2)
  10363. if cr != nil {
  10364. cr.sendContainerState(containerMapValue)
  10365. }
  10366. ee.EncodeUint(uint64(v2))
  10367. }
  10368. }
  10369. if cr != nil {
  10370. cr.sendContainerState(containerMapEnd)
  10371. }
  10372. }
  10373. func (f *encFnInfo) fastpathEncMapUintptrUintptrR(rv reflect.Value) {
  10374. fastpathTV.EncMapUintptrUintptrV(rv.Interface().(map[uintptr]uintptr), fastpathCheckNilFalse, f.e)
  10375. }
  10376. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, checkNil bool, e *Encoder) {
  10377. ee := e.e
  10378. cr := e.cr
  10379. if checkNil && v == nil {
  10380. ee.EncodeNil()
  10381. return
  10382. }
  10383. ee.EncodeMapStart(len(v))
  10384. if e.h.Canonical {
  10385. v2 := make([]uint64, len(v))
  10386. var i int
  10387. for k, _ := range v {
  10388. v2[i] = uint64(k)
  10389. i++
  10390. }
  10391. sort.Sort(uintSlice(v2))
  10392. for _, k2 := range v2 {
  10393. if cr != nil {
  10394. cr.sendContainerState(containerMapKey)
  10395. }
  10396. e.encode(uintptr(k2))
  10397. if cr != nil {
  10398. cr.sendContainerState(containerMapValue)
  10399. }
  10400. e.encode(v[uintptr(k2)])
  10401. }
  10402. } else {
  10403. for k2, v2 := range v {
  10404. if cr != nil {
  10405. cr.sendContainerState(containerMapKey)
  10406. }
  10407. e.encode(k2)
  10408. if cr != nil {
  10409. cr.sendContainerState(containerMapValue)
  10410. }
  10411. e.encode(v2)
  10412. }
  10413. }
  10414. if cr != nil {
  10415. cr.sendContainerState(containerMapEnd)
  10416. }
  10417. }
  10418. func (f *encFnInfo) fastpathEncMapUintptrIntR(rv reflect.Value) {
  10419. fastpathTV.EncMapUintptrIntV(rv.Interface().(map[uintptr]int), fastpathCheckNilFalse, f.e)
  10420. }
  10421. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, checkNil bool, e *Encoder) {
  10422. ee := e.e
  10423. cr := e.cr
  10424. if checkNil && v == nil {
  10425. ee.EncodeNil()
  10426. return
  10427. }
  10428. ee.EncodeMapStart(len(v))
  10429. if e.h.Canonical {
  10430. v2 := make([]uint64, len(v))
  10431. var i int
  10432. for k, _ := range v {
  10433. v2[i] = uint64(k)
  10434. i++
  10435. }
  10436. sort.Sort(uintSlice(v2))
  10437. for _, k2 := range v2 {
  10438. if cr != nil {
  10439. cr.sendContainerState(containerMapKey)
  10440. }
  10441. e.encode(uintptr(k2))
  10442. if cr != nil {
  10443. cr.sendContainerState(containerMapValue)
  10444. }
  10445. ee.EncodeInt(int64(v[uintptr(k2)]))
  10446. }
  10447. } else {
  10448. for k2, v2 := range v {
  10449. if cr != nil {
  10450. cr.sendContainerState(containerMapKey)
  10451. }
  10452. e.encode(k2)
  10453. if cr != nil {
  10454. cr.sendContainerState(containerMapValue)
  10455. }
  10456. ee.EncodeInt(int64(v2))
  10457. }
  10458. }
  10459. if cr != nil {
  10460. cr.sendContainerState(containerMapEnd)
  10461. }
  10462. }
  10463. func (f *encFnInfo) fastpathEncMapUintptrInt8R(rv reflect.Value) {
  10464. fastpathTV.EncMapUintptrInt8V(rv.Interface().(map[uintptr]int8), fastpathCheckNilFalse, f.e)
  10465. }
  10466. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, checkNil bool, e *Encoder) {
  10467. ee := e.e
  10468. cr := e.cr
  10469. if checkNil && v == nil {
  10470. ee.EncodeNil()
  10471. return
  10472. }
  10473. ee.EncodeMapStart(len(v))
  10474. if e.h.Canonical {
  10475. v2 := make([]uint64, len(v))
  10476. var i int
  10477. for k, _ := range v {
  10478. v2[i] = uint64(k)
  10479. i++
  10480. }
  10481. sort.Sort(uintSlice(v2))
  10482. for _, k2 := range v2 {
  10483. if cr != nil {
  10484. cr.sendContainerState(containerMapKey)
  10485. }
  10486. e.encode(uintptr(k2))
  10487. if cr != nil {
  10488. cr.sendContainerState(containerMapValue)
  10489. }
  10490. ee.EncodeInt(int64(v[uintptr(k2)]))
  10491. }
  10492. } else {
  10493. for k2, v2 := range v {
  10494. if cr != nil {
  10495. cr.sendContainerState(containerMapKey)
  10496. }
  10497. e.encode(k2)
  10498. if cr != nil {
  10499. cr.sendContainerState(containerMapValue)
  10500. }
  10501. ee.EncodeInt(int64(v2))
  10502. }
  10503. }
  10504. if cr != nil {
  10505. cr.sendContainerState(containerMapEnd)
  10506. }
  10507. }
  10508. func (f *encFnInfo) fastpathEncMapUintptrInt16R(rv reflect.Value) {
  10509. fastpathTV.EncMapUintptrInt16V(rv.Interface().(map[uintptr]int16), fastpathCheckNilFalse, f.e)
  10510. }
  10511. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, checkNil bool, e *Encoder) {
  10512. ee := e.e
  10513. cr := e.cr
  10514. if checkNil && v == nil {
  10515. ee.EncodeNil()
  10516. return
  10517. }
  10518. ee.EncodeMapStart(len(v))
  10519. if e.h.Canonical {
  10520. v2 := make([]uint64, len(v))
  10521. var i int
  10522. for k, _ := range v {
  10523. v2[i] = uint64(k)
  10524. i++
  10525. }
  10526. sort.Sort(uintSlice(v2))
  10527. for _, k2 := range v2 {
  10528. if cr != nil {
  10529. cr.sendContainerState(containerMapKey)
  10530. }
  10531. e.encode(uintptr(k2))
  10532. if cr != nil {
  10533. cr.sendContainerState(containerMapValue)
  10534. }
  10535. ee.EncodeInt(int64(v[uintptr(k2)]))
  10536. }
  10537. } else {
  10538. for k2, v2 := range v {
  10539. if cr != nil {
  10540. cr.sendContainerState(containerMapKey)
  10541. }
  10542. e.encode(k2)
  10543. if cr != nil {
  10544. cr.sendContainerState(containerMapValue)
  10545. }
  10546. ee.EncodeInt(int64(v2))
  10547. }
  10548. }
  10549. if cr != nil {
  10550. cr.sendContainerState(containerMapEnd)
  10551. }
  10552. }
  10553. func (f *encFnInfo) fastpathEncMapUintptrInt32R(rv reflect.Value) {
  10554. fastpathTV.EncMapUintptrInt32V(rv.Interface().(map[uintptr]int32), fastpathCheckNilFalse, f.e)
  10555. }
  10556. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, checkNil bool, e *Encoder) {
  10557. ee := e.e
  10558. cr := e.cr
  10559. if checkNil && v == nil {
  10560. ee.EncodeNil()
  10561. return
  10562. }
  10563. ee.EncodeMapStart(len(v))
  10564. if e.h.Canonical {
  10565. v2 := make([]uint64, len(v))
  10566. var i int
  10567. for k, _ := range v {
  10568. v2[i] = uint64(k)
  10569. i++
  10570. }
  10571. sort.Sort(uintSlice(v2))
  10572. for _, k2 := range v2 {
  10573. if cr != nil {
  10574. cr.sendContainerState(containerMapKey)
  10575. }
  10576. e.encode(uintptr(k2))
  10577. if cr != nil {
  10578. cr.sendContainerState(containerMapValue)
  10579. }
  10580. ee.EncodeInt(int64(v[uintptr(k2)]))
  10581. }
  10582. } else {
  10583. for k2, v2 := range v {
  10584. if cr != nil {
  10585. cr.sendContainerState(containerMapKey)
  10586. }
  10587. e.encode(k2)
  10588. if cr != nil {
  10589. cr.sendContainerState(containerMapValue)
  10590. }
  10591. ee.EncodeInt(int64(v2))
  10592. }
  10593. }
  10594. if cr != nil {
  10595. cr.sendContainerState(containerMapEnd)
  10596. }
  10597. }
  10598. func (f *encFnInfo) fastpathEncMapUintptrInt64R(rv reflect.Value) {
  10599. fastpathTV.EncMapUintptrInt64V(rv.Interface().(map[uintptr]int64), fastpathCheckNilFalse, f.e)
  10600. }
  10601. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, checkNil bool, e *Encoder) {
  10602. ee := e.e
  10603. cr := e.cr
  10604. if checkNil && v == nil {
  10605. ee.EncodeNil()
  10606. return
  10607. }
  10608. ee.EncodeMapStart(len(v))
  10609. if e.h.Canonical {
  10610. v2 := make([]uint64, len(v))
  10611. var i int
  10612. for k, _ := range v {
  10613. v2[i] = uint64(k)
  10614. i++
  10615. }
  10616. sort.Sort(uintSlice(v2))
  10617. for _, k2 := range v2 {
  10618. if cr != nil {
  10619. cr.sendContainerState(containerMapKey)
  10620. }
  10621. e.encode(uintptr(k2))
  10622. if cr != nil {
  10623. cr.sendContainerState(containerMapValue)
  10624. }
  10625. ee.EncodeInt(int64(v[uintptr(k2)]))
  10626. }
  10627. } else {
  10628. for k2, v2 := range v {
  10629. if cr != nil {
  10630. cr.sendContainerState(containerMapKey)
  10631. }
  10632. e.encode(k2)
  10633. if cr != nil {
  10634. cr.sendContainerState(containerMapValue)
  10635. }
  10636. ee.EncodeInt(int64(v2))
  10637. }
  10638. }
  10639. if cr != nil {
  10640. cr.sendContainerState(containerMapEnd)
  10641. }
  10642. }
  10643. func (f *encFnInfo) fastpathEncMapUintptrFloat32R(rv reflect.Value) {
  10644. fastpathTV.EncMapUintptrFloat32V(rv.Interface().(map[uintptr]float32), fastpathCheckNilFalse, f.e)
  10645. }
  10646. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, checkNil bool, e *Encoder) {
  10647. ee := e.e
  10648. cr := e.cr
  10649. if checkNil && v == nil {
  10650. ee.EncodeNil()
  10651. return
  10652. }
  10653. ee.EncodeMapStart(len(v))
  10654. if e.h.Canonical {
  10655. v2 := make([]uint64, len(v))
  10656. var i int
  10657. for k, _ := range v {
  10658. v2[i] = uint64(k)
  10659. i++
  10660. }
  10661. sort.Sort(uintSlice(v2))
  10662. for _, k2 := range v2 {
  10663. if cr != nil {
  10664. cr.sendContainerState(containerMapKey)
  10665. }
  10666. e.encode(uintptr(k2))
  10667. if cr != nil {
  10668. cr.sendContainerState(containerMapValue)
  10669. }
  10670. ee.EncodeFloat32(v[uintptr(k2)])
  10671. }
  10672. } else {
  10673. for k2, v2 := range v {
  10674. if cr != nil {
  10675. cr.sendContainerState(containerMapKey)
  10676. }
  10677. e.encode(k2)
  10678. if cr != nil {
  10679. cr.sendContainerState(containerMapValue)
  10680. }
  10681. ee.EncodeFloat32(v2)
  10682. }
  10683. }
  10684. if cr != nil {
  10685. cr.sendContainerState(containerMapEnd)
  10686. }
  10687. }
  10688. func (f *encFnInfo) fastpathEncMapUintptrFloat64R(rv reflect.Value) {
  10689. fastpathTV.EncMapUintptrFloat64V(rv.Interface().(map[uintptr]float64), fastpathCheckNilFalse, f.e)
  10690. }
  10691. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, checkNil bool, e *Encoder) {
  10692. ee := e.e
  10693. cr := e.cr
  10694. if checkNil && v == nil {
  10695. ee.EncodeNil()
  10696. return
  10697. }
  10698. ee.EncodeMapStart(len(v))
  10699. if e.h.Canonical {
  10700. v2 := make([]uint64, len(v))
  10701. var i int
  10702. for k, _ := range v {
  10703. v2[i] = uint64(k)
  10704. i++
  10705. }
  10706. sort.Sort(uintSlice(v2))
  10707. for _, k2 := range v2 {
  10708. if cr != nil {
  10709. cr.sendContainerState(containerMapKey)
  10710. }
  10711. e.encode(uintptr(k2))
  10712. if cr != nil {
  10713. cr.sendContainerState(containerMapValue)
  10714. }
  10715. ee.EncodeFloat64(v[uintptr(k2)])
  10716. }
  10717. } else {
  10718. for k2, v2 := range v {
  10719. if cr != nil {
  10720. cr.sendContainerState(containerMapKey)
  10721. }
  10722. e.encode(k2)
  10723. if cr != nil {
  10724. cr.sendContainerState(containerMapValue)
  10725. }
  10726. ee.EncodeFloat64(v2)
  10727. }
  10728. }
  10729. if cr != nil {
  10730. cr.sendContainerState(containerMapEnd)
  10731. }
  10732. }
  10733. func (f *encFnInfo) fastpathEncMapUintptrBoolR(rv reflect.Value) {
  10734. fastpathTV.EncMapUintptrBoolV(rv.Interface().(map[uintptr]bool), fastpathCheckNilFalse, f.e)
  10735. }
  10736. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, checkNil bool, e *Encoder) {
  10737. ee := e.e
  10738. cr := e.cr
  10739. if checkNil && v == nil {
  10740. ee.EncodeNil()
  10741. return
  10742. }
  10743. ee.EncodeMapStart(len(v))
  10744. if e.h.Canonical {
  10745. v2 := make([]uint64, len(v))
  10746. var i int
  10747. for k, _ := range v {
  10748. v2[i] = uint64(k)
  10749. i++
  10750. }
  10751. sort.Sort(uintSlice(v2))
  10752. for _, k2 := range v2 {
  10753. if cr != nil {
  10754. cr.sendContainerState(containerMapKey)
  10755. }
  10756. e.encode(uintptr(k2))
  10757. if cr != nil {
  10758. cr.sendContainerState(containerMapValue)
  10759. }
  10760. ee.EncodeBool(v[uintptr(k2)])
  10761. }
  10762. } else {
  10763. for k2, v2 := range v {
  10764. if cr != nil {
  10765. cr.sendContainerState(containerMapKey)
  10766. }
  10767. e.encode(k2)
  10768. if cr != nil {
  10769. cr.sendContainerState(containerMapValue)
  10770. }
  10771. ee.EncodeBool(v2)
  10772. }
  10773. }
  10774. if cr != nil {
  10775. cr.sendContainerState(containerMapEnd)
  10776. }
  10777. }
  10778. func (f *encFnInfo) fastpathEncMapIntIntfR(rv reflect.Value) {
  10779. fastpathTV.EncMapIntIntfV(rv.Interface().(map[int]interface{}), fastpathCheckNilFalse, f.e)
  10780. }
  10781. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, checkNil bool, e *Encoder) {
  10782. ee := e.e
  10783. cr := e.cr
  10784. if checkNil && v == nil {
  10785. ee.EncodeNil()
  10786. return
  10787. }
  10788. ee.EncodeMapStart(len(v))
  10789. if e.h.Canonical {
  10790. v2 := make([]int64, len(v))
  10791. var i int
  10792. for k, _ := range v {
  10793. v2[i] = int64(k)
  10794. i++
  10795. }
  10796. sort.Sort(intSlice(v2))
  10797. for _, k2 := range v2 {
  10798. if cr != nil {
  10799. cr.sendContainerState(containerMapKey)
  10800. }
  10801. ee.EncodeInt(int64(int(k2)))
  10802. if cr != nil {
  10803. cr.sendContainerState(containerMapValue)
  10804. }
  10805. e.encode(v[int(k2)])
  10806. }
  10807. } else {
  10808. for k2, v2 := range v {
  10809. if cr != nil {
  10810. cr.sendContainerState(containerMapKey)
  10811. }
  10812. ee.EncodeInt(int64(k2))
  10813. if cr != nil {
  10814. cr.sendContainerState(containerMapValue)
  10815. }
  10816. e.encode(v2)
  10817. }
  10818. }
  10819. if cr != nil {
  10820. cr.sendContainerState(containerMapEnd)
  10821. }
  10822. }
  10823. func (f *encFnInfo) fastpathEncMapIntStringR(rv reflect.Value) {
  10824. fastpathTV.EncMapIntStringV(rv.Interface().(map[int]string), fastpathCheckNilFalse, f.e)
  10825. }
  10826. func (_ fastpathT) EncMapIntStringV(v map[int]string, checkNil bool, e *Encoder) {
  10827. ee := e.e
  10828. cr := e.cr
  10829. if checkNil && v == nil {
  10830. ee.EncodeNil()
  10831. return
  10832. }
  10833. ee.EncodeMapStart(len(v))
  10834. if e.h.Canonical {
  10835. v2 := make([]int64, len(v))
  10836. var i int
  10837. for k, _ := range v {
  10838. v2[i] = int64(k)
  10839. i++
  10840. }
  10841. sort.Sort(intSlice(v2))
  10842. for _, k2 := range v2 {
  10843. if cr != nil {
  10844. cr.sendContainerState(containerMapKey)
  10845. }
  10846. ee.EncodeInt(int64(int(k2)))
  10847. if cr != nil {
  10848. cr.sendContainerState(containerMapValue)
  10849. }
  10850. ee.EncodeString(c_UTF8, v[int(k2)])
  10851. }
  10852. } else {
  10853. for k2, v2 := range v {
  10854. if cr != nil {
  10855. cr.sendContainerState(containerMapKey)
  10856. }
  10857. ee.EncodeInt(int64(k2))
  10858. if cr != nil {
  10859. cr.sendContainerState(containerMapValue)
  10860. }
  10861. ee.EncodeString(c_UTF8, v2)
  10862. }
  10863. }
  10864. if cr != nil {
  10865. cr.sendContainerState(containerMapEnd)
  10866. }
  10867. }
  10868. func (f *encFnInfo) fastpathEncMapIntUintR(rv reflect.Value) {
  10869. fastpathTV.EncMapIntUintV(rv.Interface().(map[int]uint), fastpathCheckNilFalse, f.e)
  10870. }
  10871. func (_ fastpathT) EncMapIntUintV(v map[int]uint, checkNil bool, e *Encoder) {
  10872. ee := e.e
  10873. cr := e.cr
  10874. if checkNil && v == nil {
  10875. ee.EncodeNil()
  10876. return
  10877. }
  10878. ee.EncodeMapStart(len(v))
  10879. if e.h.Canonical {
  10880. v2 := make([]int64, len(v))
  10881. var i int
  10882. for k, _ := range v {
  10883. v2[i] = int64(k)
  10884. i++
  10885. }
  10886. sort.Sort(intSlice(v2))
  10887. for _, k2 := range v2 {
  10888. if cr != nil {
  10889. cr.sendContainerState(containerMapKey)
  10890. }
  10891. ee.EncodeInt(int64(int(k2)))
  10892. if cr != nil {
  10893. cr.sendContainerState(containerMapValue)
  10894. }
  10895. ee.EncodeUint(uint64(v[int(k2)]))
  10896. }
  10897. } else {
  10898. for k2, v2 := range v {
  10899. if cr != nil {
  10900. cr.sendContainerState(containerMapKey)
  10901. }
  10902. ee.EncodeInt(int64(k2))
  10903. if cr != nil {
  10904. cr.sendContainerState(containerMapValue)
  10905. }
  10906. ee.EncodeUint(uint64(v2))
  10907. }
  10908. }
  10909. if cr != nil {
  10910. cr.sendContainerState(containerMapEnd)
  10911. }
  10912. }
  10913. func (f *encFnInfo) fastpathEncMapIntUint8R(rv reflect.Value) {
  10914. fastpathTV.EncMapIntUint8V(rv.Interface().(map[int]uint8), fastpathCheckNilFalse, f.e)
  10915. }
  10916. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, checkNil bool, e *Encoder) {
  10917. ee := e.e
  10918. cr := e.cr
  10919. if checkNil && v == nil {
  10920. ee.EncodeNil()
  10921. return
  10922. }
  10923. ee.EncodeMapStart(len(v))
  10924. if e.h.Canonical {
  10925. v2 := make([]int64, len(v))
  10926. var i int
  10927. for k, _ := range v {
  10928. v2[i] = int64(k)
  10929. i++
  10930. }
  10931. sort.Sort(intSlice(v2))
  10932. for _, k2 := range v2 {
  10933. if cr != nil {
  10934. cr.sendContainerState(containerMapKey)
  10935. }
  10936. ee.EncodeInt(int64(int(k2)))
  10937. if cr != nil {
  10938. cr.sendContainerState(containerMapValue)
  10939. }
  10940. ee.EncodeUint(uint64(v[int(k2)]))
  10941. }
  10942. } else {
  10943. for k2, v2 := range v {
  10944. if cr != nil {
  10945. cr.sendContainerState(containerMapKey)
  10946. }
  10947. ee.EncodeInt(int64(k2))
  10948. if cr != nil {
  10949. cr.sendContainerState(containerMapValue)
  10950. }
  10951. ee.EncodeUint(uint64(v2))
  10952. }
  10953. }
  10954. if cr != nil {
  10955. cr.sendContainerState(containerMapEnd)
  10956. }
  10957. }
  10958. func (f *encFnInfo) fastpathEncMapIntUint16R(rv reflect.Value) {
  10959. fastpathTV.EncMapIntUint16V(rv.Interface().(map[int]uint16), fastpathCheckNilFalse, f.e)
  10960. }
  10961. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, checkNil bool, e *Encoder) {
  10962. ee := e.e
  10963. cr := e.cr
  10964. if checkNil && v == nil {
  10965. ee.EncodeNil()
  10966. return
  10967. }
  10968. ee.EncodeMapStart(len(v))
  10969. if e.h.Canonical {
  10970. v2 := make([]int64, len(v))
  10971. var i int
  10972. for k, _ := range v {
  10973. v2[i] = int64(k)
  10974. i++
  10975. }
  10976. sort.Sort(intSlice(v2))
  10977. for _, k2 := range v2 {
  10978. if cr != nil {
  10979. cr.sendContainerState(containerMapKey)
  10980. }
  10981. ee.EncodeInt(int64(int(k2)))
  10982. if cr != nil {
  10983. cr.sendContainerState(containerMapValue)
  10984. }
  10985. ee.EncodeUint(uint64(v[int(k2)]))
  10986. }
  10987. } else {
  10988. for k2, v2 := range v {
  10989. if cr != nil {
  10990. cr.sendContainerState(containerMapKey)
  10991. }
  10992. ee.EncodeInt(int64(k2))
  10993. if cr != nil {
  10994. cr.sendContainerState(containerMapValue)
  10995. }
  10996. ee.EncodeUint(uint64(v2))
  10997. }
  10998. }
  10999. if cr != nil {
  11000. cr.sendContainerState(containerMapEnd)
  11001. }
  11002. }
  11003. func (f *encFnInfo) fastpathEncMapIntUint32R(rv reflect.Value) {
  11004. fastpathTV.EncMapIntUint32V(rv.Interface().(map[int]uint32), fastpathCheckNilFalse, f.e)
  11005. }
  11006. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, checkNil bool, e *Encoder) {
  11007. ee := e.e
  11008. cr := e.cr
  11009. if checkNil && v == nil {
  11010. ee.EncodeNil()
  11011. return
  11012. }
  11013. ee.EncodeMapStart(len(v))
  11014. if e.h.Canonical {
  11015. v2 := make([]int64, len(v))
  11016. var i int
  11017. for k, _ := range v {
  11018. v2[i] = int64(k)
  11019. i++
  11020. }
  11021. sort.Sort(intSlice(v2))
  11022. for _, k2 := range v2 {
  11023. if cr != nil {
  11024. cr.sendContainerState(containerMapKey)
  11025. }
  11026. ee.EncodeInt(int64(int(k2)))
  11027. if cr != nil {
  11028. cr.sendContainerState(containerMapValue)
  11029. }
  11030. ee.EncodeUint(uint64(v[int(k2)]))
  11031. }
  11032. } else {
  11033. for k2, v2 := range v {
  11034. if cr != nil {
  11035. cr.sendContainerState(containerMapKey)
  11036. }
  11037. ee.EncodeInt(int64(k2))
  11038. if cr != nil {
  11039. cr.sendContainerState(containerMapValue)
  11040. }
  11041. ee.EncodeUint(uint64(v2))
  11042. }
  11043. }
  11044. if cr != nil {
  11045. cr.sendContainerState(containerMapEnd)
  11046. }
  11047. }
  11048. func (f *encFnInfo) fastpathEncMapIntUint64R(rv reflect.Value) {
  11049. fastpathTV.EncMapIntUint64V(rv.Interface().(map[int]uint64), fastpathCheckNilFalse, f.e)
  11050. }
  11051. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, checkNil bool, e *Encoder) {
  11052. ee := e.e
  11053. cr := e.cr
  11054. if checkNil && v == nil {
  11055. ee.EncodeNil()
  11056. return
  11057. }
  11058. ee.EncodeMapStart(len(v))
  11059. if e.h.Canonical {
  11060. v2 := make([]int64, len(v))
  11061. var i int
  11062. for k, _ := range v {
  11063. v2[i] = int64(k)
  11064. i++
  11065. }
  11066. sort.Sort(intSlice(v2))
  11067. for _, k2 := range v2 {
  11068. if cr != nil {
  11069. cr.sendContainerState(containerMapKey)
  11070. }
  11071. ee.EncodeInt(int64(int(k2)))
  11072. if cr != nil {
  11073. cr.sendContainerState(containerMapValue)
  11074. }
  11075. ee.EncodeUint(uint64(v[int(k2)]))
  11076. }
  11077. } else {
  11078. for k2, v2 := range v {
  11079. if cr != nil {
  11080. cr.sendContainerState(containerMapKey)
  11081. }
  11082. ee.EncodeInt(int64(k2))
  11083. if cr != nil {
  11084. cr.sendContainerState(containerMapValue)
  11085. }
  11086. ee.EncodeUint(uint64(v2))
  11087. }
  11088. }
  11089. if cr != nil {
  11090. cr.sendContainerState(containerMapEnd)
  11091. }
  11092. }
  11093. func (f *encFnInfo) fastpathEncMapIntUintptrR(rv reflect.Value) {
  11094. fastpathTV.EncMapIntUintptrV(rv.Interface().(map[int]uintptr), fastpathCheckNilFalse, f.e)
  11095. }
  11096. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, checkNil bool, e *Encoder) {
  11097. ee := e.e
  11098. cr := e.cr
  11099. if checkNil && v == nil {
  11100. ee.EncodeNil()
  11101. return
  11102. }
  11103. ee.EncodeMapStart(len(v))
  11104. if e.h.Canonical {
  11105. v2 := make([]int64, len(v))
  11106. var i int
  11107. for k, _ := range v {
  11108. v2[i] = int64(k)
  11109. i++
  11110. }
  11111. sort.Sort(intSlice(v2))
  11112. for _, k2 := range v2 {
  11113. if cr != nil {
  11114. cr.sendContainerState(containerMapKey)
  11115. }
  11116. ee.EncodeInt(int64(int(k2)))
  11117. if cr != nil {
  11118. cr.sendContainerState(containerMapValue)
  11119. }
  11120. e.encode(v[int(k2)])
  11121. }
  11122. } else {
  11123. for k2, v2 := range v {
  11124. if cr != nil {
  11125. cr.sendContainerState(containerMapKey)
  11126. }
  11127. ee.EncodeInt(int64(k2))
  11128. if cr != nil {
  11129. cr.sendContainerState(containerMapValue)
  11130. }
  11131. e.encode(v2)
  11132. }
  11133. }
  11134. if cr != nil {
  11135. cr.sendContainerState(containerMapEnd)
  11136. }
  11137. }
  11138. func (f *encFnInfo) fastpathEncMapIntIntR(rv reflect.Value) {
  11139. fastpathTV.EncMapIntIntV(rv.Interface().(map[int]int), fastpathCheckNilFalse, f.e)
  11140. }
  11141. func (_ fastpathT) EncMapIntIntV(v map[int]int, checkNil bool, e *Encoder) {
  11142. ee := e.e
  11143. cr := e.cr
  11144. if checkNil && v == nil {
  11145. ee.EncodeNil()
  11146. return
  11147. }
  11148. ee.EncodeMapStart(len(v))
  11149. if e.h.Canonical {
  11150. v2 := make([]int64, len(v))
  11151. var i int
  11152. for k, _ := range v {
  11153. v2[i] = int64(k)
  11154. i++
  11155. }
  11156. sort.Sort(intSlice(v2))
  11157. for _, k2 := range v2 {
  11158. if cr != nil {
  11159. cr.sendContainerState(containerMapKey)
  11160. }
  11161. ee.EncodeInt(int64(int(k2)))
  11162. if cr != nil {
  11163. cr.sendContainerState(containerMapValue)
  11164. }
  11165. ee.EncodeInt(int64(v[int(k2)]))
  11166. }
  11167. } else {
  11168. for k2, v2 := range v {
  11169. if cr != nil {
  11170. cr.sendContainerState(containerMapKey)
  11171. }
  11172. ee.EncodeInt(int64(k2))
  11173. if cr != nil {
  11174. cr.sendContainerState(containerMapValue)
  11175. }
  11176. ee.EncodeInt(int64(v2))
  11177. }
  11178. }
  11179. if cr != nil {
  11180. cr.sendContainerState(containerMapEnd)
  11181. }
  11182. }
  11183. func (f *encFnInfo) fastpathEncMapIntInt8R(rv reflect.Value) {
  11184. fastpathTV.EncMapIntInt8V(rv.Interface().(map[int]int8), fastpathCheckNilFalse, f.e)
  11185. }
  11186. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, checkNil bool, e *Encoder) {
  11187. ee := e.e
  11188. cr := e.cr
  11189. if checkNil && v == nil {
  11190. ee.EncodeNil()
  11191. return
  11192. }
  11193. ee.EncodeMapStart(len(v))
  11194. if e.h.Canonical {
  11195. v2 := make([]int64, len(v))
  11196. var i int
  11197. for k, _ := range v {
  11198. v2[i] = int64(k)
  11199. i++
  11200. }
  11201. sort.Sort(intSlice(v2))
  11202. for _, k2 := range v2 {
  11203. if cr != nil {
  11204. cr.sendContainerState(containerMapKey)
  11205. }
  11206. ee.EncodeInt(int64(int(k2)))
  11207. if cr != nil {
  11208. cr.sendContainerState(containerMapValue)
  11209. }
  11210. ee.EncodeInt(int64(v[int(k2)]))
  11211. }
  11212. } else {
  11213. for k2, v2 := range v {
  11214. if cr != nil {
  11215. cr.sendContainerState(containerMapKey)
  11216. }
  11217. ee.EncodeInt(int64(k2))
  11218. if cr != nil {
  11219. cr.sendContainerState(containerMapValue)
  11220. }
  11221. ee.EncodeInt(int64(v2))
  11222. }
  11223. }
  11224. if cr != nil {
  11225. cr.sendContainerState(containerMapEnd)
  11226. }
  11227. }
  11228. func (f *encFnInfo) fastpathEncMapIntInt16R(rv reflect.Value) {
  11229. fastpathTV.EncMapIntInt16V(rv.Interface().(map[int]int16), fastpathCheckNilFalse, f.e)
  11230. }
  11231. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, checkNil bool, e *Encoder) {
  11232. ee := e.e
  11233. cr := e.cr
  11234. if checkNil && v == nil {
  11235. ee.EncodeNil()
  11236. return
  11237. }
  11238. ee.EncodeMapStart(len(v))
  11239. if e.h.Canonical {
  11240. v2 := make([]int64, len(v))
  11241. var i int
  11242. for k, _ := range v {
  11243. v2[i] = int64(k)
  11244. i++
  11245. }
  11246. sort.Sort(intSlice(v2))
  11247. for _, k2 := range v2 {
  11248. if cr != nil {
  11249. cr.sendContainerState(containerMapKey)
  11250. }
  11251. ee.EncodeInt(int64(int(k2)))
  11252. if cr != nil {
  11253. cr.sendContainerState(containerMapValue)
  11254. }
  11255. ee.EncodeInt(int64(v[int(k2)]))
  11256. }
  11257. } else {
  11258. for k2, v2 := range v {
  11259. if cr != nil {
  11260. cr.sendContainerState(containerMapKey)
  11261. }
  11262. ee.EncodeInt(int64(k2))
  11263. if cr != nil {
  11264. cr.sendContainerState(containerMapValue)
  11265. }
  11266. ee.EncodeInt(int64(v2))
  11267. }
  11268. }
  11269. if cr != nil {
  11270. cr.sendContainerState(containerMapEnd)
  11271. }
  11272. }
  11273. func (f *encFnInfo) fastpathEncMapIntInt32R(rv reflect.Value) {
  11274. fastpathTV.EncMapIntInt32V(rv.Interface().(map[int]int32), fastpathCheckNilFalse, f.e)
  11275. }
  11276. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, checkNil bool, e *Encoder) {
  11277. ee := e.e
  11278. cr := e.cr
  11279. if checkNil && v == nil {
  11280. ee.EncodeNil()
  11281. return
  11282. }
  11283. ee.EncodeMapStart(len(v))
  11284. if e.h.Canonical {
  11285. v2 := make([]int64, len(v))
  11286. var i int
  11287. for k, _ := range v {
  11288. v2[i] = int64(k)
  11289. i++
  11290. }
  11291. sort.Sort(intSlice(v2))
  11292. for _, k2 := range v2 {
  11293. if cr != nil {
  11294. cr.sendContainerState(containerMapKey)
  11295. }
  11296. ee.EncodeInt(int64(int(k2)))
  11297. if cr != nil {
  11298. cr.sendContainerState(containerMapValue)
  11299. }
  11300. ee.EncodeInt(int64(v[int(k2)]))
  11301. }
  11302. } else {
  11303. for k2, v2 := range v {
  11304. if cr != nil {
  11305. cr.sendContainerState(containerMapKey)
  11306. }
  11307. ee.EncodeInt(int64(k2))
  11308. if cr != nil {
  11309. cr.sendContainerState(containerMapValue)
  11310. }
  11311. ee.EncodeInt(int64(v2))
  11312. }
  11313. }
  11314. if cr != nil {
  11315. cr.sendContainerState(containerMapEnd)
  11316. }
  11317. }
  11318. func (f *encFnInfo) fastpathEncMapIntInt64R(rv reflect.Value) {
  11319. fastpathTV.EncMapIntInt64V(rv.Interface().(map[int]int64), fastpathCheckNilFalse, f.e)
  11320. }
  11321. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, checkNil bool, e *Encoder) {
  11322. ee := e.e
  11323. cr := e.cr
  11324. if checkNil && v == nil {
  11325. ee.EncodeNil()
  11326. return
  11327. }
  11328. ee.EncodeMapStart(len(v))
  11329. if e.h.Canonical {
  11330. v2 := make([]int64, len(v))
  11331. var i int
  11332. for k, _ := range v {
  11333. v2[i] = int64(k)
  11334. i++
  11335. }
  11336. sort.Sort(intSlice(v2))
  11337. for _, k2 := range v2 {
  11338. if cr != nil {
  11339. cr.sendContainerState(containerMapKey)
  11340. }
  11341. ee.EncodeInt(int64(int(k2)))
  11342. if cr != nil {
  11343. cr.sendContainerState(containerMapValue)
  11344. }
  11345. ee.EncodeInt(int64(v[int(k2)]))
  11346. }
  11347. } else {
  11348. for k2, v2 := range v {
  11349. if cr != nil {
  11350. cr.sendContainerState(containerMapKey)
  11351. }
  11352. ee.EncodeInt(int64(k2))
  11353. if cr != nil {
  11354. cr.sendContainerState(containerMapValue)
  11355. }
  11356. ee.EncodeInt(int64(v2))
  11357. }
  11358. }
  11359. if cr != nil {
  11360. cr.sendContainerState(containerMapEnd)
  11361. }
  11362. }
  11363. func (f *encFnInfo) fastpathEncMapIntFloat32R(rv reflect.Value) {
  11364. fastpathTV.EncMapIntFloat32V(rv.Interface().(map[int]float32), fastpathCheckNilFalse, f.e)
  11365. }
  11366. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, checkNil bool, e *Encoder) {
  11367. ee := e.e
  11368. cr := e.cr
  11369. if checkNil && v == nil {
  11370. ee.EncodeNil()
  11371. return
  11372. }
  11373. ee.EncodeMapStart(len(v))
  11374. if e.h.Canonical {
  11375. v2 := make([]int64, len(v))
  11376. var i int
  11377. for k, _ := range v {
  11378. v2[i] = int64(k)
  11379. i++
  11380. }
  11381. sort.Sort(intSlice(v2))
  11382. for _, k2 := range v2 {
  11383. if cr != nil {
  11384. cr.sendContainerState(containerMapKey)
  11385. }
  11386. ee.EncodeInt(int64(int(k2)))
  11387. if cr != nil {
  11388. cr.sendContainerState(containerMapValue)
  11389. }
  11390. ee.EncodeFloat32(v[int(k2)])
  11391. }
  11392. } else {
  11393. for k2, v2 := range v {
  11394. if cr != nil {
  11395. cr.sendContainerState(containerMapKey)
  11396. }
  11397. ee.EncodeInt(int64(k2))
  11398. if cr != nil {
  11399. cr.sendContainerState(containerMapValue)
  11400. }
  11401. ee.EncodeFloat32(v2)
  11402. }
  11403. }
  11404. if cr != nil {
  11405. cr.sendContainerState(containerMapEnd)
  11406. }
  11407. }
  11408. func (f *encFnInfo) fastpathEncMapIntFloat64R(rv reflect.Value) {
  11409. fastpathTV.EncMapIntFloat64V(rv.Interface().(map[int]float64), fastpathCheckNilFalse, f.e)
  11410. }
  11411. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, checkNil bool, e *Encoder) {
  11412. ee := e.e
  11413. cr := e.cr
  11414. if checkNil && v == nil {
  11415. ee.EncodeNil()
  11416. return
  11417. }
  11418. ee.EncodeMapStart(len(v))
  11419. if e.h.Canonical {
  11420. v2 := make([]int64, len(v))
  11421. var i int
  11422. for k, _ := range v {
  11423. v2[i] = int64(k)
  11424. i++
  11425. }
  11426. sort.Sort(intSlice(v2))
  11427. for _, k2 := range v2 {
  11428. if cr != nil {
  11429. cr.sendContainerState(containerMapKey)
  11430. }
  11431. ee.EncodeInt(int64(int(k2)))
  11432. if cr != nil {
  11433. cr.sendContainerState(containerMapValue)
  11434. }
  11435. ee.EncodeFloat64(v[int(k2)])
  11436. }
  11437. } else {
  11438. for k2, v2 := range v {
  11439. if cr != nil {
  11440. cr.sendContainerState(containerMapKey)
  11441. }
  11442. ee.EncodeInt(int64(k2))
  11443. if cr != nil {
  11444. cr.sendContainerState(containerMapValue)
  11445. }
  11446. ee.EncodeFloat64(v2)
  11447. }
  11448. }
  11449. if cr != nil {
  11450. cr.sendContainerState(containerMapEnd)
  11451. }
  11452. }
  11453. func (f *encFnInfo) fastpathEncMapIntBoolR(rv reflect.Value) {
  11454. fastpathTV.EncMapIntBoolV(rv.Interface().(map[int]bool), fastpathCheckNilFalse, f.e)
  11455. }
  11456. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, checkNil bool, e *Encoder) {
  11457. ee := e.e
  11458. cr := e.cr
  11459. if checkNil && v == nil {
  11460. ee.EncodeNil()
  11461. return
  11462. }
  11463. ee.EncodeMapStart(len(v))
  11464. if e.h.Canonical {
  11465. v2 := make([]int64, len(v))
  11466. var i int
  11467. for k, _ := range v {
  11468. v2[i] = int64(k)
  11469. i++
  11470. }
  11471. sort.Sort(intSlice(v2))
  11472. for _, k2 := range v2 {
  11473. if cr != nil {
  11474. cr.sendContainerState(containerMapKey)
  11475. }
  11476. ee.EncodeInt(int64(int(k2)))
  11477. if cr != nil {
  11478. cr.sendContainerState(containerMapValue)
  11479. }
  11480. ee.EncodeBool(v[int(k2)])
  11481. }
  11482. } else {
  11483. for k2, v2 := range v {
  11484. if cr != nil {
  11485. cr.sendContainerState(containerMapKey)
  11486. }
  11487. ee.EncodeInt(int64(k2))
  11488. if cr != nil {
  11489. cr.sendContainerState(containerMapValue)
  11490. }
  11491. ee.EncodeBool(v2)
  11492. }
  11493. }
  11494. if cr != nil {
  11495. cr.sendContainerState(containerMapEnd)
  11496. }
  11497. }
  11498. func (f *encFnInfo) fastpathEncMapInt8IntfR(rv reflect.Value) {
  11499. fastpathTV.EncMapInt8IntfV(rv.Interface().(map[int8]interface{}), fastpathCheckNilFalse, f.e)
  11500. }
  11501. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, checkNil bool, e *Encoder) {
  11502. ee := e.e
  11503. cr := e.cr
  11504. if checkNil && v == nil {
  11505. ee.EncodeNil()
  11506. return
  11507. }
  11508. ee.EncodeMapStart(len(v))
  11509. if e.h.Canonical {
  11510. v2 := make([]int64, len(v))
  11511. var i int
  11512. for k, _ := range v {
  11513. v2[i] = int64(k)
  11514. i++
  11515. }
  11516. sort.Sort(intSlice(v2))
  11517. for _, k2 := range v2 {
  11518. if cr != nil {
  11519. cr.sendContainerState(containerMapKey)
  11520. }
  11521. ee.EncodeInt(int64(int8(k2)))
  11522. if cr != nil {
  11523. cr.sendContainerState(containerMapValue)
  11524. }
  11525. e.encode(v[int8(k2)])
  11526. }
  11527. } else {
  11528. for k2, v2 := range v {
  11529. if cr != nil {
  11530. cr.sendContainerState(containerMapKey)
  11531. }
  11532. ee.EncodeInt(int64(k2))
  11533. if cr != nil {
  11534. cr.sendContainerState(containerMapValue)
  11535. }
  11536. e.encode(v2)
  11537. }
  11538. }
  11539. if cr != nil {
  11540. cr.sendContainerState(containerMapEnd)
  11541. }
  11542. }
  11543. func (f *encFnInfo) fastpathEncMapInt8StringR(rv reflect.Value) {
  11544. fastpathTV.EncMapInt8StringV(rv.Interface().(map[int8]string), fastpathCheckNilFalse, f.e)
  11545. }
  11546. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, checkNil bool, e *Encoder) {
  11547. ee := e.e
  11548. cr := e.cr
  11549. if checkNil && v == nil {
  11550. ee.EncodeNil()
  11551. return
  11552. }
  11553. ee.EncodeMapStart(len(v))
  11554. if e.h.Canonical {
  11555. v2 := make([]int64, len(v))
  11556. var i int
  11557. for k, _ := range v {
  11558. v2[i] = int64(k)
  11559. i++
  11560. }
  11561. sort.Sort(intSlice(v2))
  11562. for _, k2 := range v2 {
  11563. if cr != nil {
  11564. cr.sendContainerState(containerMapKey)
  11565. }
  11566. ee.EncodeInt(int64(int8(k2)))
  11567. if cr != nil {
  11568. cr.sendContainerState(containerMapValue)
  11569. }
  11570. ee.EncodeString(c_UTF8, v[int8(k2)])
  11571. }
  11572. } else {
  11573. for k2, v2 := range v {
  11574. if cr != nil {
  11575. cr.sendContainerState(containerMapKey)
  11576. }
  11577. ee.EncodeInt(int64(k2))
  11578. if cr != nil {
  11579. cr.sendContainerState(containerMapValue)
  11580. }
  11581. ee.EncodeString(c_UTF8, v2)
  11582. }
  11583. }
  11584. if cr != nil {
  11585. cr.sendContainerState(containerMapEnd)
  11586. }
  11587. }
  11588. func (f *encFnInfo) fastpathEncMapInt8UintR(rv reflect.Value) {
  11589. fastpathTV.EncMapInt8UintV(rv.Interface().(map[int8]uint), fastpathCheckNilFalse, f.e)
  11590. }
  11591. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, checkNil bool, e *Encoder) {
  11592. ee := e.e
  11593. cr := e.cr
  11594. if checkNil && v == nil {
  11595. ee.EncodeNil()
  11596. return
  11597. }
  11598. ee.EncodeMapStart(len(v))
  11599. if e.h.Canonical {
  11600. v2 := make([]int64, len(v))
  11601. var i int
  11602. for k, _ := range v {
  11603. v2[i] = int64(k)
  11604. i++
  11605. }
  11606. sort.Sort(intSlice(v2))
  11607. for _, k2 := range v2 {
  11608. if cr != nil {
  11609. cr.sendContainerState(containerMapKey)
  11610. }
  11611. ee.EncodeInt(int64(int8(k2)))
  11612. if cr != nil {
  11613. cr.sendContainerState(containerMapValue)
  11614. }
  11615. ee.EncodeUint(uint64(v[int8(k2)]))
  11616. }
  11617. } else {
  11618. for k2, v2 := range v {
  11619. if cr != nil {
  11620. cr.sendContainerState(containerMapKey)
  11621. }
  11622. ee.EncodeInt(int64(k2))
  11623. if cr != nil {
  11624. cr.sendContainerState(containerMapValue)
  11625. }
  11626. ee.EncodeUint(uint64(v2))
  11627. }
  11628. }
  11629. if cr != nil {
  11630. cr.sendContainerState(containerMapEnd)
  11631. }
  11632. }
  11633. func (f *encFnInfo) fastpathEncMapInt8Uint8R(rv reflect.Value) {
  11634. fastpathTV.EncMapInt8Uint8V(rv.Interface().(map[int8]uint8), fastpathCheckNilFalse, f.e)
  11635. }
  11636. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, checkNil bool, e *Encoder) {
  11637. ee := e.e
  11638. cr := e.cr
  11639. if checkNil && v == nil {
  11640. ee.EncodeNil()
  11641. return
  11642. }
  11643. ee.EncodeMapStart(len(v))
  11644. if e.h.Canonical {
  11645. v2 := make([]int64, len(v))
  11646. var i int
  11647. for k, _ := range v {
  11648. v2[i] = int64(k)
  11649. i++
  11650. }
  11651. sort.Sort(intSlice(v2))
  11652. for _, k2 := range v2 {
  11653. if cr != nil {
  11654. cr.sendContainerState(containerMapKey)
  11655. }
  11656. ee.EncodeInt(int64(int8(k2)))
  11657. if cr != nil {
  11658. cr.sendContainerState(containerMapValue)
  11659. }
  11660. ee.EncodeUint(uint64(v[int8(k2)]))
  11661. }
  11662. } else {
  11663. for k2, v2 := range v {
  11664. if cr != nil {
  11665. cr.sendContainerState(containerMapKey)
  11666. }
  11667. ee.EncodeInt(int64(k2))
  11668. if cr != nil {
  11669. cr.sendContainerState(containerMapValue)
  11670. }
  11671. ee.EncodeUint(uint64(v2))
  11672. }
  11673. }
  11674. if cr != nil {
  11675. cr.sendContainerState(containerMapEnd)
  11676. }
  11677. }
  11678. func (f *encFnInfo) fastpathEncMapInt8Uint16R(rv reflect.Value) {
  11679. fastpathTV.EncMapInt8Uint16V(rv.Interface().(map[int8]uint16), fastpathCheckNilFalse, f.e)
  11680. }
  11681. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, checkNil bool, e *Encoder) {
  11682. ee := e.e
  11683. cr := e.cr
  11684. if checkNil && v == nil {
  11685. ee.EncodeNil()
  11686. return
  11687. }
  11688. ee.EncodeMapStart(len(v))
  11689. if e.h.Canonical {
  11690. v2 := make([]int64, len(v))
  11691. var i int
  11692. for k, _ := range v {
  11693. v2[i] = int64(k)
  11694. i++
  11695. }
  11696. sort.Sort(intSlice(v2))
  11697. for _, k2 := range v2 {
  11698. if cr != nil {
  11699. cr.sendContainerState(containerMapKey)
  11700. }
  11701. ee.EncodeInt(int64(int8(k2)))
  11702. if cr != nil {
  11703. cr.sendContainerState(containerMapValue)
  11704. }
  11705. ee.EncodeUint(uint64(v[int8(k2)]))
  11706. }
  11707. } else {
  11708. for k2, v2 := range v {
  11709. if cr != nil {
  11710. cr.sendContainerState(containerMapKey)
  11711. }
  11712. ee.EncodeInt(int64(k2))
  11713. if cr != nil {
  11714. cr.sendContainerState(containerMapValue)
  11715. }
  11716. ee.EncodeUint(uint64(v2))
  11717. }
  11718. }
  11719. if cr != nil {
  11720. cr.sendContainerState(containerMapEnd)
  11721. }
  11722. }
  11723. func (f *encFnInfo) fastpathEncMapInt8Uint32R(rv reflect.Value) {
  11724. fastpathTV.EncMapInt8Uint32V(rv.Interface().(map[int8]uint32), fastpathCheckNilFalse, f.e)
  11725. }
  11726. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, checkNil bool, e *Encoder) {
  11727. ee := e.e
  11728. cr := e.cr
  11729. if checkNil && v == nil {
  11730. ee.EncodeNil()
  11731. return
  11732. }
  11733. ee.EncodeMapStart(len(v))
  11734. if e.h.Canonical {
  11735. v2 := make([]int64, len(v))
  11736. var i int
  11737. for k, _ := range v {
  11738. v2[i] = int64(k)
  11739. i++
  11740. }
  11741. sort.Sort(intSlice(v2))
  11742. for _, k2 := range v2 {
  11743. if cr != nil {
  11744. cr.sendContainerState(containerMapKey)
  11745. }
  11746. ee.EncodeInt(int64(int8(k2)))
  11747. if cr != nil {
  11748. cr.sendContainerState(containerMapValue)
  11749. }
  11750. ee.EncodeUint(uint64(v[int8(k2)]))
  11751. }
  11752. } else {
  11753. for k2, v2 := range v {
  11754. if cr != nil {
  11755. cr.sendContainerState(containerMapKey)
  11756. }
  11757. ee.EncodeInt(int64(k2))
  11758. if cr != nil {
  11759. cr.sendContainerState(containerMapValue)
  11760. }
  11761. ee.EncodeUint(uint64(v2))
  11762. }
  11763. }
  11764. if cr != nil {
  11765. cr.sendContainerState(containerMapEnd)
  11766. }
  11767. }
  11768. func (f *encFnInfo) fastpathEncMapInt8Uint64R(rv reflect.Value) {
  11769. fastpathTV.EncMapInt8Uint64V(rv.Interface().(map[int8]uint64), fastpathCheckNilFalse, f.e)
  11770. }
  11771. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, checkNil bool, e *Encoder) {
  11772. ee := e.e
  11773. cr := e.cr
  11774. if checkNil && v == nil {
  11775. ee.EncodeNil()
  11776. return
  11777. }
  11778. ee.EncodeMapStart(len(v))
  11779. if e.h.Canonical {
  11780. v2 := make([]int64, len(v))
  11781. var i int
  11782. for k, _ := range v {
  11783. v2[i] = int64(k)
  11784. i++
  11785. }
  11786. sort.Sort(intSlice(v2))
  11787. for _, k2 := range v2 {
  11788. if cr != nil {
  11789. cr.sendContainerState(containerMapKey)
  11790. }
  11791. ee.EncodeInt(int64(int8(k2)))
  11792. if cr != nil {
  11793. cr.sendContainerState(containerMapValue)
  11794. }
  11795. ee.EncodeUint(uint64(v[int8(k2)]))
  11796. }
  11797. } else {
  11798. for k2, v2 := range v {
  11799. if cr != nil {
  11800. cr.sendContainerState(containerMapKey)
  11801. }
  11802. ee.EncodeInt(int64(k2))
  11803. if cr != nil {
  11804. cr.sendContainerState(containerMapValue)
  11805. }
  11806. ee.EncodeUint(uint64(v2))
  11807. }
  11808. }
  11809. if cr != nil {
  11810. cr.sendContainerState(containerMapEnd)
  11811. }
  11812. }
  11813. func (f *encFnInfo) fastpathEncMapInt8UintptrR(rv reflect.Value) {
  11814. fastpathTV.EncMapInt8UintptrV(rv.Interface().(map[int8]uintptr), fastpathCheckNilFalse, f.e)
  11815. }
  11816. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, checkNil bool, e *Encoder) {
  11817. ee := e.e
  11818. cr := e.cr
  11819. if checkNil && v == nil {
  11820. ee.EncodeNil()
  11821. return
  11822. }
  11823. ee.EncodeMapStart(len(v))
  11824. if e.h.Canonical {
  11825. v2 := make([]int64, len(v))
  11826. var i int
  11827. for k, _ := range v {
  11828. v2[i] = int64(k)
  11829. i++
  11830. }
  11831. sort.Sort(intSlice(v2))
  11832. for _, k2 := range v2 {
  11833. if cr != nil {
  11834. cr.sendContainerState(containerMapKey)
  11835. }
  11836. ee.EncodeInt(int64(int8(k2)))
  11837. if cr != nil {
  11838. cr.sendContainerState(containerMapValue)
  11839. }
  11840. e.encode(v[int8(k2)])
  11841. }
  11842. } else {
  11843. for k2, v2 := range v {
  11844. if cr != nil {
  11845. cr.sendContainerState(containerMapKey)
  11846. }
  11847. ee.EncodeInt(int64(k2))
  11848. if cr != nil {
  11849. cr.sendContainerState(containerMapValue)
  11850. }
  11851. e.encode(v2)
  11852. }
  11853. }
  11854. if cr != nil {
  11855. cr.sendContainerState(containerMapEnd)
  11856. }
  11857. }
  11858. func (f *encFnInfo) fastpathEncMapInt8IntR(rv reflect.Value) {
  11859. fastpathTV.EncMapInt8IntV(rv.Interface().(map[int8]int), fastpathCheckNilFalse, f.e)
  11860. }
  11861. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, checkNil bool, e *Encoder) {
  11862. ee := e.e
  11863. cr := e.cr
  11864. if checkNil && v == nil {
  11865. ee.EncodeNil()
  11866. return
  11867. }
  11868. ee.EncodeMapStart(len(v))
  11869. if e.h.Canonical {
  11870. v2 := make([]int64, len(v))
  11871. var i int
  11872. for k, _ := range v {
  11873. v2[i] = int64(k)
  11874. i++
  11875. }
  11876. sort.Sort(intSlice(v2))
  11877. for _, k2 := range v2 {
  11878. if cr != nil {
  11879. cr.sendContainerState(containerMapKey)
  11880. }
  11881. ee.EncodeInt(int64(int8(k2)))
  11882. if cr != nil {
  11883. cr.sendContainerState(containerMapValue)
  11884. }
  11885. ee.EncodeInt(int64(v[int8(k2)]))
  11886. }
  11887. } else {
  11888. for k2, v2 := range v {
  11889. if cr != nil {
  11890. cr.sendContainerState(containerMapKey)
  11891. }
  11892. ee.EncodeInt(int64(k2))
  11893. if cr != nil {
  11894. cr.sendContainerState(containerMapValue)
  11895. }
  11896. ee.EncodeInt(int64(v2))
  11897. }
  11898. }
  11899. if cr != nil {
  11900. cr.sendContainerState(containerMapEnd)
  11901. }
  11902. }
  11903. func (f *encFnInfo) fastpathEncMapInt8Int8R(rv reflect.Value) {
  11904. fastpathTV.EncMapInt8Int8V(rv.Interface().(map[int8]int8), fastpathCheckNilFalse, f.e)
  11905. }
  11906. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, checkNil bool, e *Encoder) {
  11907. ee := e.e
  11908. cr := e.cr
  11909. if checkNil && v == nil {
  11910. ee.EncodeNil()
  11911. return
  11912. }
  11913. ee.EncodeMapStart(len(v))
  11914. if e.h.Canonical {
  11915. v2 := make([]int64, len(v))
  11916. var i int
  11917. for k, _ := range v {
  11918. v2[i] = int64(k)
  11919. i++
  11920. }
  11921. sort.Sort(intSlice(v2))
  11922. for _, k2 := range v2 {
  11923. if cr != nil {
  11924. cr.sendContainerState(containerMapKey)
  11925. }
  11926. ee.EncodeInt(int64(int8(k2)))
  11927. if cr != nil {
  11928. cr.sendContainerState(containerMapValue)
  11929. }
  11930. ee.EncodeInt(int64(v[int8(k2)]))
  11931. }
  11932. } else {
  11933. for k2, v2 := range v {
  11934. if cr != nil {
  11935. cr.sendContainerState(containerMapKey)
  11936. }
  11937. ee.EncodeInt(int64(k2))
  11938. if cr != nil {
  11939. cr.sendContainerState(containerMapValue)
  11940. }
  11941. ee.EncodeInt(int64(v2))
  11942. }
  11943. }
  11944. if cr != nil {
  11945. cr.sendContainerState(containerMapEnd)
  11946. }
  11947. }
  11948. func (f *encFnInfo) fastpathEncMapInt8Int16R(rv reflect.Value) {
  11949. fastpathTV.EncMapInt8Int16V(rv.Interface().(map[int8]int16), fastpathCheckNilFalse, f.e)
  11950. }
  11951. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, checkNil bool, e *Encoder) {
  11952. ee := e.e
  11953. cr := e.cr
  11954. if checkNil && v == nil {
  11955. ee.EncodeNil()
  11956. return
  11957. }
  11958. ee.EncodeMapStart(len(v))
  11959. if e.h.Canonical {
  11960. v2 := make([]int64, len(v))
  11961. var i int
  11962. for k, _ := range v {
  11963. v2[i] = int64(k)
  11964. i++
  11965. }
  11966. sort.Sort(intSlice(v2))
  11967. for _, k2 := range v2 {
  11968. if cr != nil {
  11969. cr.sendContainerState(containerMapKey)
  11970. }
  11971. ee.EncodeInt(int64(int8(k2)))
  11972. if cr != nil {
  11973. cr.sendContainerState(containerMapValue)
  11974. }
  11975. ee.EncodeInt(int64(v[int8(k2)]))
  11976. }
  11977. } else {
  11978. for k2, v2 := range v {
  11979. if cr != nil {
  11980. cr.sendContainerState(containerMapKey)
  11981. }
  11982. ee.EncodeInt(int64(k2))
  11983. if cr != nil {
  11984. cr.sendContainerState(containerMapValue)
  11985. }
  11986. ee.EncodeInt(int64(v2))
  11987. }
  11988. }
  11989. if cr != nil {
  11990. cr.sendContainerState(containerMapEnd)
  11991. }
  11992. }
  11993. func (f *encFnInfo) fastpathEncMapInt8Int32R(rv reflect.Value) {
  11994. fastpathTV.EncMapInt8Int32V(rv.Interface().(map[int8]int32), fastpathCheckNilFalse, f.e)
  11995. }
  11996. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, checkNil bool, e *Encoder) {
  11997. ee := e.e
  11998. cr := e.cr
  11999. if checkNil && v == nil {
  12000. ee.EncodeNil()
  12001. return
  12002. }
  12003. ee.EncodeMapStart(len(v))
  12004. if e.h.Canonical {
  12005. v2 := make([]int64, len(v))
  12006. var i int
  12007. for k, _ := range v {
  12008. v2[i] = int64(k)
  12009. i++
  12010. }
  12011. sort.Sort(intSlice(v2))
  12012. for _, k2 := range v2 {
  12013. if cr != nil {
  12014. cr.sendContainerState(containerMapKey)
  12015. }
  12016. ee.EncodeInt(int64(int8(k2)))
  12017. if cr != nil {
  12018. cr.sendContainerState(containerMapValue)
  12019. }
  12020. ee.EncodeInt(int64(v[int8(k2)]))
  12021. }
  12022. } else {
  12023. for k2, v2 := range v {
  12024. if cr != nil {
  12025. cr.sendContainerState(containerMapKey)
  12026. }
  12027. ee.EncodeInt(int64(k2))
  12028. if cr != nil {
  12029. cr.sendContainerState(containerMapValue)
  12030. }
  12031. ee.EncodeInt(int64(v2))
  12032. }
  12033. }
  12034. if cr != nil {
  12035. cr.sendContainerState(containerMapEnd)
  12036. }
  12037. }
  12038. func (f *encFnInfo) fastpathEncMapInt8Int64R(rv reflect.Value) {
  12039. fastpathTV.EncMapInt8Int64V(rv.Interface().(map[int8]int64), fastpathCheckNilFalse, f.e)
  12040. }
  12041. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, checkNil bool, e *Encoder) {
  12042. ee := e.e
  12043. cr := e.cr
  12044. if checkNil && v == nil {
  12045. ee.EncodeNil()
  12046. return
  12047. }
  12048. ee.EncodeMapStart(len(v))
  12049. if e.h.Canonical {
  12050. v2 := make([]int64, len(v))
  12051. var i int
  12052. for k, _ := range v {
  12053. v2[i] = int64(k)
  12054. i++
  12055. }
  12056. sort.Sort(intSlice(v2))
  12057. for _, k2 := range v2 {
  12058. if cr != nil {
  12059. cr.sendContainerState(containerMapKey)
  12060. }
  12061. ee.EncodeInt(int64(int8(k2)))
  12062. if cr != nil {
  12063. cr.sendContainerState(containerMapValue)
  12064. }
  12065. ee.EncodeInt(int64(v[int8(k2)]))
  12066. }
  12067. } else {
  12068. for k2, v2 := range v {
  12069. if cr != nil {
  12070. cr.sendContainerState(containerMapKey)
  12071. }
  12072. ee.EncodeInt(int64(k2))
  12073. if cr != nil {
  12074. cr.sendContainerState(containerMapValue)
  12075. }
  12076. ee.EncodeInt(int64(v2))
  12077. }
  12078. }
  12079. if cr != nil {
  12080. cr.sendContainerState(containerMapEnd)
  12081. }
  12082. }
  12083. func (f *encFnInfo) fastpathEncMapInt8Float32R(rv reflect.Value) {
  12084. fastpathTV.EncMapInt8Float32V(rv.Interface().(map[int8]float32), fastpathCheckNilFalse, f.e)
  12085. }
  12086. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, checkNil bool, e *Encoder) {
  12087. ee := e.e
  12088. cr := e.cr
  12089. if checkNil && v == nil {
  12090. ee.EncodeNil()
  12091. return
  12092. }
  12093. ee.EncodeMapStart(len(v))
  12094. if e.h.Canonical {
  12095. v2 := make([]int64, len(v))
  12096. var i int
  12097. for k, _ := range v {
  12098. v2[i] = int64(k)
  12099. i++
  12100. }
  12101. sort.Sort(intSlice(v2))
  12102. for _, k2 := range v2 {
  12103. if cr != nil {
  12104. cr.sendContainerState(containerMapKey)
  12105. }
  12106. ee.EncodeInt(int64(int8(k2)))
  12107. if cr != nil {
  12108. cr.sendContainerState(containerMapValue)
  12109. }
  12110. ee.EncodeFloat32(v[int8(k2)])
  12111. }
  12112. } else {
  12113. for k2, v2 := range v {
  12114. if cr != nil {
  12115. cr.sendContainerState(containerMapKey)
  12116. }
  12117. ee.EncodeInt(int64(k2))
  12118. if cr != nil {
  12119. cr.sendContainerState(containerMapValue)
  12120. }
  12121. ee.EncodeFloat32(v2)
  12122. }
  12123. }
  12124. if cr != nil {
  12125. cr.sendContainerState(containerMapEnd)
  12126. }
  12127. }
  12128. func (f *encFnInfo) fastpathEncMapInt8Float64R(rv reflect.Value) {
  12129. fastpathTV.EncMapInt8Float64V(rv.Interface().(map[int8]float64), fastpathCheckNilFalse, f.e)
  12130. }
  12131. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, checkNil bool, e *Encoder) {
  12132. ee := e.e
  12133. cr := e.cr
  12134. if checkNil && v == nil {
  12135. ee.EncodeNil()
  12136. return
  12137. }
  12138. ee.EncodeMapStart(len(v))
  12139. if e.h.Canonical {
  12140. v2 := make([]int64, len(v))
  12141. var i int
  12142. for k, _ := range v {
  12143. v2[i] = int64(k)
  12144. i++
  12145. }
  12146. sort.Sort(intSlice(v2))
  12147. for _, k2 := range v2 {
  12148. if cr != nil {
  12149. cr.sendContainerState(containerMapKey)
  12150. }
  12151. ee.EncodeInt(int64(int8(k2)))
  12152. if cr != nil {
  12153. cr.sendContainerState(containerMapValue)
  12154. }
  12155. ee.EncodeFloat64(v[int8(k2)])
  12156. }
  12157. } else {
  12158. for k2, v2 := range v {
  12159. if cr != nil {
  12160. cr.sendContainerState(containerMapKey)
  12161. }
  12162. ee.EncodeInt(int64(k2))
  12163. if cr != nil {
  12164. cr.sendContainerState(containerMapValue)
  12165. }
  12166. ee.EncodeFloat64(v2)
  12167. }
  12168. }
  12169. if cr != nil {
  12170. cr.sendContainerState(containerMapEnd)
  12171. }
  12172. }
  12173. func (f *encFnInfo) fastpathEncMapInt8BoolR(rv reflect.Value) {
  12174. fastpathTV.EncMapInt8BoolV(rv.Interface().(map[int8]bool), fastpathCheckNilFalse, f.e)
  12175. }
  12176. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, checkNil bool, e *Encoder) {
  12177. ee := e.e
  12178. cr := e.cr
  12179. if checkNil && v == nil {
  12180. ee.EncodeNil()
  12181. return
  12182. }
  12183. ee.EncodeMapStart(len(v))
  12184. if e.h.Canonical {
  12185. v2 := make([]int64, len(v))
  12186. var i int
  12187. for k, _ := range v {
  12188. v2[i] = int64(k)
  12189. i++
  12190. }
  12191. sort.Sort(intSlice(v2))
  12192. for _, k2 := range v2 {
  12193. if cr != nil {
  12194. cr.sendContainerState(containerMapKey)
  12195. }
  12196. ee.EncodeInt(int64(int8(k2)))
  12197. if cr != nil {
  12198. cr.sendContainerState(containerMapValue)
  12199. }
  12200. ee.EncodeBool(v[int8(k2)])
  12201. }
  12202. } else {
  12203. for k2, v2 := range v {
  12204. if cr != nil {
  12205. cr.sendContainerState(containerMapKey)
  12206. }
  12207. ee.EncodeInt(int64(k2))
  12208. if cr != nil {
  12209. cr.sendContainerState(containerMapValue)
  12210. }
  12211. ee.EncodeBool(v2)
  12212. }
  12213. }
  12214. if cr != nil {
  12215. cr.sendContainerState(containerMapEnd)
  12216. }
  12217. }
  12218. func (f *encFnInfo) fastpathEncMapInt16IntfR(rv reflect.Value) {
  12219. fastpathTV.EncMapInt16IntfV(rv.Interface().(map[int16]interface{}), fastpathCheckNilFalse, f.e)
  12220. }
  12221. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, checkNil bool, e *Encoder) {
  12222. ee := e.e
  12223. cr := e.cr
  12224. if checkNil && v == nil {
  12225. ee.EncodeNil()
  12226. return
  12227. }
  12228. ee.EncodeMapStart(len(v))
  12229. if e.h.Canonical {
  12230. v2 := make([]int64, len(v))
  12231. var i int
  12232. for k, _ := range v {
  12233. v2[i] = int64(k)
  12234. i++
  12235. }
  12236. sort.Sort(intSlice(v2))
  12237. for _, k2 := range v2 {
  12238. if cr != nil {
  12239. cr.sendContainerState(containerMapKey)
  12240. }
  12241. ee.EncodeInt(int64(int16(k2)))
  12242. if cr != nil {
  12243. cr.sendContainerState(containerMapValue)
  12244. }
  12245. e.encode(v[int16(k2)])
  12246. }
  12247. } else {
  12248. for k2, v2 := range v {
  12249. if cr != nil {
  12250. cr.sendContainerState(containerMapKey)
  12251. }
  12252. ee.EncodeInt(int64(k2))
  12253. if cr != nil {
  12254. cr.sendContainerState(containerMapValue)
  12255. }
  12256. e.encode(v2)
  12257. }
  12258. }
  12259. if cr != nil {
  12260. cr.sendContainerState(containerMapEnd)
  12261. }
  12262. }
  12263. func (f *encFnInfo) fastpathEncMapInt16StringR(rv reflect.Value) {
  12264. fastpathTV.EncMapInt16StringV(rv.Interface().(map[int16]string), fastpathCheckNilFalse, f.e)
  12265. }
  12266. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, checkNil bool, e *Encoder) {
  12267. ee := e.e
  12268. cr := e.cr
  12269. if checkNil && v == nil {
  12270. ee.EncodeNil()
  12271. return
  12272. }
  12273. ee.EncodeMapStart(len(v))
  12274. if e.h.Canonical {
  12275. v2 := make([]int64, len(v))
  12276. var i int
  12277. for k, _ := range v {
  12278. v2[i] = int64(k)
  12279. i++
  12280. }
  12281. sort.Sort(intSlice(v2))
  12282. for _, k2 := range v2 {
  12283. if cr != nil {
  12284. cr.sendContainerState(containerMapKey)
  12285. }
  12286. ee.EncodeInt(int64(int16(k2)))
  12287. if cr != nil {
  12288. cr.sendContainerState(containerMapValue)
  12289. }
  12290. ee.EncodeString(c_UTF8, v[int16(k2)])
  12291. }
  12292. } else {
  12293. for k2, v2 := range v {
  12294. if cr != nil {
  12295. cr.sendContainerState(containerMapKey)
  12296. }
  12297. ee.EncodeInt(int64(k2))
  12298. if cr != nil {
  12299. cr.sendContainerState(containerMapValue)
  12300. }
  12301. ee.EncodeString(c_UTF8, v2)
  12302. }
  12303. }
  12304. if cr != nil {
  12305. cr.sendContainerState(containerMapEnd)
  12306. }
  12307. }
  12308. func (f *encFnInfo) fastpathEncMapInt16UintR(rv reflect.Value) {
  12309. fastpathTV.EncMapInt16UintV(rv.Interface().(map[int16]uint), fastpathCheckNilFalse, f.e)
  12310. }
  12311. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, checkNil bool, e *Encoder) {
  12312. ee := e.e
  12313. cr := e.cr
  12314. if checkNil && v == nil {
  12315. ee.EncodeNil()
  12316. return
  12317. }
  12318. ee.EncodeMapStart(len(v))
  12319. if e.h.Canonical {
  12320. v2 := make([]int64, len(v))
  12321. var i int
  12322. for k, _ := range v {
  12323. v2[i] = int64(k)
  12324. i++
  12325. }
  12326. sort.Sort(intSlice(v2))
  12327. for _, k2 := range v2 {
  12328. if cr != nil {
  12329. cr.sendContainerState(containerMapKey)
  12330. }
  12331. ee.EncodeInt(int64(int16(k2)))
  12332. if cr != nil {
  12333. cr.sendContainerState(containerMapValue)
  12334. }
  12335. ee.EncodeUint(uint64(v[int16(k2)]))
  12336. }
  12337. } else {
  12338. for k2, v2 := range v {
  12339. if cr != nil {
  12340. cr.sendContainerState(containerMapKey)
  12341. }
  12342. ee.EncodeInt(int64(k2))
  12343. if cr != nil {
  12344. cr.sendContainerState(containerMapValue)
  12345. }
  12346. ee.EncodeUint(uint64(v2))
  12347. }
  12348. }
  12349. if cr != nil {
  12350. cr.sendContainerState(containerMapEnd)
  12351. }
  12352. }
  12353. func (f *encFnInfo) fastpathEncMapInt16Uint8R(rv reflect.Value) {
  12354. fastpathTV.EncMapInt16Uint8V(rv.Interface().(map[int16]uint8), fastpathCheckNilFalse, f.e)
  12355. }
  12356. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, checkNil bool, e *Encoder) {
  12357. ee := e.e
  12358. cr := e.cr
  12359. if checkNil && v == nil {
  12360. ee.EncodeNil()
  12361. return
  12362. }
  12363. ee.EncodeMapStart(len(v))
  12364. if e.h.Canonical {
  12365. v2 := make([]int64, len(v))
  12366. var i int
  12367. for k, _ := range v {
  12368. v2[i] = int64(k)
  12369. i++
  12370. }
  12371. sort.Sort(intSlice(v2))
  12372. for _, k2 := range v2 {
  12373. if cr != nil {
  12374. cr.sendContainerState(containerMapKey)
  12375. }
  12376. ee.EncodeInt(int64(int16(k2)))
  12377. if cr != nil {
  12378. cr.sendContainerState(containerMapValue)
  12379. }
  12380. ee.EncodeUint(uint64(v[int16(k2)]))
  12381. }
  12382. } else {
  12383. for k2, v2 := range v {
  12384. if cr != nil {
  12385. cr.sendContainerState(containerMapKey)
  12386. }
  12387. ee.EncodeInt(int64(k2))
  12388. if cr != nil {
  12389. cr.sendContainerState(containerMapValue)
  12390. }
  12391. ee.EncodeUint(uint64(v2))
  12392. }
  12393. }
  12394. if cr != nil {
  12395. cr.sendContainerState(containerMapEnd)
  12396. }
  12397. }
  12398. func (f *encFnInfo) fastpathEncMapInt16Uint16R(rv reflect.Value) {
  12399. fastpathTV.EncMapInt16Uint16V(rv.Interface().(map[int16]uint16), fastpathCheckNilFalse, f.e)
  12400. }
  12401. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, checkNil bool, e *Encoder) {
  12402. ee := e.e
  12403. cr := e.cr
  12404. if checkNil && v == nil {
  12405. ee.EncodeNil()
  12406. return
  12407. }
  12408. ee.EncodeMapStart(len(v))
  12409. if e.h.Canonical {
  12410. v2 := make([]int64, len(v))
  12411. var i int
  12412. for k, _ := range v {
  12413. v2[i] = int64(k)
  12414. i++
  12415. }
  12416. sort.Sort(intSlice(v2))
  12417. for _, k2 := range v2 {
  12418. if cr != nil {
  12419. cr.sendContainerState(containerMapKey)
  12420. }
  12421. ee.EncodeInt(int64(int16(k2)))
  12422. if cr != nil {
  12423. cr.sendContainerState(containerMapValue)
  12424. }
  12425. ee.EncodeUint(uint64(v[int16(k2)]))
  12426. }
  12427. } else {
  12428. for k2, v2 := range v {
  12429. if cr != nil {
  12430. cr.sendContainerState(containerMapKey)
  12431. }
  12432. ee.EncodeInt(int64(k2))
  12433. if cr != nil {
  12434. cr.sendContainerState(containerMapValue)
  12435. }
  12436. ee.EncodeUint(uint64(v2))
  12437. }
  12438. }
  12439. if cr != nil {
  12440. cr.sendContainerState(containerMapEnd)
  12441. }
  12442. }
  12443. func (f *encFnInfo) fastpathEncMapInt16Uint32R(rv reflect.Value) {
  12444. fastpathTV.EncMapInt16Uint32V(rv.Interface().(map[int16]uint32), fastpathCheckNilFalse, f.e)
  12445. }
  12446. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, checkNil bool, e *Encoder) {
  12447. ee := e.e
  12448. cr := e.cr
  12449. if checkNil && v == nil {
  12450. ee.EncodeNil()
  12451. return
  12452. }
  12453. ee.EncodeMapStart(len(v))
  12454. if e.h.Canonical {
  12455. v2 := make([]int64, len(v))
  12456. var i int
  12457. for k, _ := range v {
  12458. v2[i] = int64(k)
  12459. i++
  12460. }
  12461. sort.Sort(intSlice(v2))
  12462. for _, k2 := range v2 {
  12463. if cr != nil {
  12464. cr.sendContainerState(containerMapKey)
  12465. }
  12466. ee.EncodeInt(int64(int16(k2)))
  12467. if cr != nil {
  12468. cr.sendContainerState(containerMapValue)
  12469. }
  12470. ee.EncodeUint(uint64(v[int16(k2)]))
  12471. }
  12472. } else {
  12473. for k2, v2 := range v {
  12474. if cr != nil {
  12475. cr.sendContainerState(containerMapKey)
  12476. }
  12477. ee.EncodeInt(int64(k2))
  12478. if cr != nil {
  12479. cr.sendContainerState(containerMapValue)
  12480. }
  12481. ee.EncodeUint(uint64(v2))
  12482. }
  12483. }
  12484. if cr != nil {
  12485. cr.sendContainerState(containerMapEnd)
  12486. }
  12487. }
  12488. func (f *encFnInfo) fastpathEncMapInt16Uint64R(rv reflect.Value) {
  12489. fastpathTV.EncMapInt16Uint64V(rv.Interface().(map[int16]uint64), fastpathCheckNilFalse, f.e)
  12490. }
  12491. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, checkNil bool, e *Encoder) {
  12492. ee := e.e
  12493. cr := e.cr
  12494. if checkNil && v == nil {
  12495. ee.EncodeNil()
  12496. return
  12497. }
  12498. ee.EncodeMapStart(len(v))
  12499. if e.h.Canonical {
  12500. v2 := make([]int64, len(v))
  12501. var i int
  12502. for k, _ := range v {
  12503. v2[i] = int64(k)
  12504. i++
  12505. }
  12506. sort.Sort(intSlice(v2))
  12507. for _, k2 := range v2 {
  12508. if cr != nil {
  12509. cr.sendContainerState(containerMapKey)
  12510. }
  12511. ee.EncodeInt(int64(int16(k2)))
  12512. if cr != nil {
  12513. cr.sendContainerState(containerMapValue)
  12514. }
  12515. ee.EncodeUint(uint64(v[int16(k2)]))
  12516. }
  12517. } else {
  12518. for k2, v2 := range v {
  12519. if cr != nil {
  12520. cr.sendContainerState(containerMapKey)
  12521. }
  12522. ee.EncodeInt(int64(k2))
  12523. if cr != nil {
  12524. cr.sendContainerState(containerMapValue)
  12525. }
  12526. ee.EncodeUint(uint64(v2))
  12527. }
  12528. }
  12529. if cr != nil {
  12530. cr.sendContainerState(containerMapEnd)
  12531. }
  12532. }
  12533. func (f *encFnInfo) fastpathEncMapInt16UintptrR(rv reflect.Value) {
  12534. fastpathTV.EncMapInt16UintptrV(rv.Interface().(map[int16]uintptr), fastpathCheckNilFalse, f.e)
  12535. }
  12536. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, checkNil bool, e *Encoder) {
  12537. ee := e.e
  12538. cr := e.cr
  12539. if checkNil && v == nil {
  12540. ee.EncodeNil()
  12541. return
  12542. }
  12543. ee.EncodeMapStart(len(v))
  12544. if e.h.Canonical {
  12545. v2 := make([]int64, len(v))
  12546. var i int
  12547. for k, _ := range v {
  12548. v2[i] = int64(k)
  12549. i++
  12550. }
  12551. sort.Sort(intSlice(v2))
  12552. for _, k2 := range v2 {
  12553. if cr != nil {
  12554. cr.sendContainerState(containerMapKey)
  12555. }
  12556. ee.EncodeInt(int64(int16(k2)))
  12557. if cr != nil {
  12558. cr.sendContainerState(containerMapValue)
  12559. }
  12560. e.encode(v[int16(k2)])
  12561. }
  12562. } else {
  12563. for k2, v2 := range v {
  12564. if cr != nil {
  12565. cr.sendContainerState(containerMapKey)
  12566. }
  12567. ee.EncodeInt(int64(k2))
  12568. if cr != nil {
  12569. cr.sendContainerState(containerMapValue)
  12570. }
  12571. e.encode(v2)
  12572. }
  12573. }
  12574. if cr != nil {
  12575. cr.sendContainerState(containerMapEnd)
  12576. }
  12577. }
  12578. func (f *encFnInfo) fastpathEncMapInt16IntR(rv reflect.Value) {
  12579. fastpathTV.EncMapInt16IntV(rv.Interface().(map[int16]int), fastpathCheckNilFalse, f.e)
  12580. }
  12581. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, checkNil bool, e *Encoder) {
  12582. ee := e.e
  12583. cr := e.cr
  12584. if checkNil && v == nil {
  12585. ee.EncodeNil()
  12586. return
  12587. }
  12588. ee.EncodeMapStart(len(v))
  12589. if e.h.Canonical {
  12590. v2 := make([]int64, len(v))
  12591. var i int
  12592. for k, _ := range v {
  12593. v2[i] = int64(k)
  12594. i++
  12595. }
  12596. sort.Sort(intSlice(v2))
  12597. for _, k2 := range v2 {
  12598. if cr != nil {
  12599. cr.sendContainerState(containerMapKey)
  12600. }
  12601. ee.EncodeInt(int64(int16(k2)))
  12602. if cr != nil {
  12603. cr.sendContainerState(containerMapValue)
  12604. }
  12605. ee.EncodeInt(int64(v[int16(k2)]))
  12606. }
  12607. } else {
  12608. for k2, v2 := range v {
  12609. if cr != nil {
  12610. cr.sendContainerState(containerMapKey)
  12611. }
  12612. ee.EncodeInt(int64(k2))
  12613. if cr != nil {
  12614. cr.sendContainerState(containerMapValue)
  12615. }
  12616. ee.EncodeInt(int64(v2))
  12617. }
  12618. }
  12619. if cr != nil {
  12620. cr.sendContainerState(containerMapEnd)
  12621. }
  12622. }
  12623. func (f *encFnInfo) fastpathEncMapInt16Int8R(rv reflect.Value) {
  12624. fastpathTV.EncMapInt16Int8V(rv.Interface().(map[int16]int8), fastpathCheckNilFalse, f.e)
  12625. }
  12626. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, checkNil bool, e *Encoder) {
  12627. ee := e.e
  12628. cr := e.cr
  12629. if checkNil && v == nil {
  12630. ee.EncodeNil()
  12631. return
  12632. }
  12633. ee.EncodeMapStart(len(v))
  12634. if e.h.Canonical {
  12635. v2 := make([]int64, len(v))
  12636. var i int
  12637. for k, _ := range v {
  12638. v2[i] = int64(k)
  12639. i++
  12640. }
  12641. sort.Sort(intSlice(v2))
  12642. for _, k2 := range v2 {
  12643. if cr != nil {
  12644. cr.sendContainerState(containerMapKey)
  12645. }
  12646. ee.EncodeInt(int64(int16(k2)))
  12647. if cr != nil {
  12648. cr.sendContainerState(containerMapValue)
  12649. }
  12650. ee.EncodeInt(int64(v[int16(k2)]))
  12651. }
  12652. } else {
  12653. for k2, v2 := range v {
  12654. if cr != nil {
  12655. cr.sendContainerState(containerMapKey)
  12656. }
  12657. ee.EncodeInt(int64(k2))
  12658. if cr != nil {
  12659. cr.sendContainerState(containerMapValue)
  12660. }
  12661. ee.EncodeInt(int64(v2))
  12662. }
  12663. }
  12664. if cr != nil {
  12665. cr.sendContainerState(containerMapEnd)
  12666. }
  12667. }
  12668. func (f *encFnInfo) fastpathEncMapInt16Int16R(rv reflect.Value) {
  12669. fastpathTV.EncMapInt16Int16V(rv.Interface().(map[int16]int16), fastpathCheckNilFalse, f.e)
  12670. }
  12671. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, checkNil bool, e *Encoder) {
  12672. ee := e.e
  12673. cr := e.cr
  12674. if checkNil && v == nil {
  12675. ee.EncodeNil()
  12676. return
  12677. }
  12678. ee.EncodeMapStart(len(v))
  12679. if e.h.Canonical {
  12680. v2 := make([]int64, len(v))
  12681. var i int
  12682. for k, _ := range v {
  12683. v2[i] = int64(k)
  12684. i++
  12685. }
  12686. sort.Sort(intSlice(v2))
  12687. for _, k2 := range v2 {
  12688. if cr != nil {
  12689. cr.sendContainerState(containerMapKey)
  12690. }
  12691. ee.EncodeInt(int64(int16(k2)))
  12692. if cr != nil {
  12693. cr.sendContainerState(containerMapValue)
  12694. }
  12695. ee.EncodeInt(int64(v[int16(k2)]))
  12696. }
  12697. } else {
  12698. for k2, v2 := range v {
  12699. if cr != nil {
  12700. cr.sendContainerState(containerMapKey)
  12701. }
  12702. ee.EncodeInt(int64(k2))
  12703. if cr != nil {
  12704. cr.sendContainerState(containerMapValue)
  12705. }
  12706. ee.EncodeInt(int64(v2))
  12707. }
  12708. }
  12709. if cr != nil {
  12710. cr.sendContainerState(containerMapEnd)
  12711. }
  12712. }
  12713. func (f *encFnInfo) fastpathEncMapInt16Int32R(rv reflect.Value) {
  12714. fastpathTV.EncMapInt16Int32V(rv.Interface().(map[int16]int32), fastpathCheckNilFalse, f.e)
  12715. }
  12716. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, checkNil bool, e *Encoder) {
  12717. ee := e.e
  12718. cr := e.cr
  12719. if checkNil && v == nil {
  12720. ee.EncodeNil()
  12721. return
  12722. }
  12723. ee.EncodeMapStart(len(v))
  12724. if e.h.Canonical {
  12725. v2 := make([]int64, len(v))
  12726. var i int
  12727. for k, _ := range v {
  12728. v2[i] = int64(k)
  12729. i++
  12730. }
  12731. sort.Sort(intSlice(v2))
  12732. for _, k2 := range v2 {
  12733. if cr != nil {
  12734. cr.sendContainerState(containerMapKey)
  12735. }
  12736. ee.EncodeInt(int64(int16(k2)))
  12737. if cr != nil {
  12738. cr.sendContainerState(containerMapValue)
  12739. }
  12740. ee.EncodeInt(int64(v[int16(k2)]))
  12741. }
  12742. } else {
  12743. for k2, v2 := range v {
  12744. if cr != nil {
  12745. cr.sendContainerState(containerMapKey)
  12746. }
  12747. ee.EncodeInt(int64(k2))
  12748. if cr != nil {
  12749. cr.sendContainerState(containerMapValue)
  12750. }
  12751. ee.EncodeInt(int64(v2))
  12752. }
  12753. }
  12754. if cr != nil {
  12755. cr.sendContainerState(containerMapEnd)
  12756. }
  12757. }
  12758. func (f *encFnInfo) fastpathEncMapInt16Int64R(rv reflect.Value) {
  12759. fastpathTV.EncMapInt16Int64V(rv.Interface().(map[int16]int64), fastpathCheckNilFalse, f.e)
  12760. }
  12761. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, checkNil bool, e *Encoder) {
  12762. ee := e.e
  12763. cr := e.cr
  12764. if checkNil && v == nil {
  12765. ee.EncodeNil()
  12766. return
  12767. }
  12768. ee.EncodeMapStart(len(v))
  12769. if e.h.Canonical {
  12770. v2 := make([]int64, len(v))
  12771. var i int
  12772. for k, _ := range v {
  12773. v2[i] = int64(k)
  12774. i++
  12775. }
  12776. sort.Sort(intSlice(v2))
  12777. for _, k2 := range v2 {
  12778. if cr != nil {
  12779. cr.sendContainerState(containerMapKey)
  12780. }
  12781. ee.EncodeInt(int64(int16(k2)))
  12782. if cr != nil {
  12783. cr.sendContainerState(containerMapValue)
  12784. }
  12785. ee.EncodeInt(int64(v[int16(k2)]))
  12786. }
  12787. } else {
  12788. for k2, v2 := range v {
  12789. if cr != nil {
  12790. cr.sendContainerState(containerMapKey)
  12791. }
  12792. ee.EncodeInt(int64(k2))
  12793. if cr != nil {
  12794. cr.sendContainerState(containerMapValue)
  12795. }
  12796. ee.EncodeInt(int64(v2))
  12797. }
  12798. }
  12799. if cr != nil {
  12800. cr.sendContainerState(containerMapEnd)
  12801. }
  12802. }
  12803. func (f *encFnInfo) fastpathEncMapInt16Float32R(rv reflect.Value) {
  12804. fastpathTV.EncMapInt16Float32V(rv.Interface().(map[int16]float32), fastpathCheckNilFalse, f.e)
  12805. }
  12806. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, checkNil bool, e *Encoder) {
  12807. ee := e.e
  12808. cr := e.cr
  12809. if checkNil && v == nil {
  12810. ee.EncodeNil()
  12811. return
  12812. }
  12813. ee.EncodeMapStart(len(v))
  12814. if e.h.Canonical {
  12815. v2 := make([]int64, len(v))
  12816. var i int
  12817. for k, _ := range v {
  12818. v2[i] = int64(k)
  12819. i++
  12820. }
  12821. sort.Sort(intSlice(v2))
  12822. for _, k2 := range v2 {
  12823. if cr != nil {
  12824. cr.sendContainerState(containerMapKey)
  12825. }
  12826. ee.EncodeInt(int64(int16(k2)))
  12827. if cr != nil {
  12828. cr.sendContainerState(containerMapValue)
  12829. }
  12830. ee.EncodeFloat32(v[int16(k2)])
  12831. }
  12832. } else {
  12833. for k2, v2 := range v {
  12834. if cr != nil {
  12835. cr.sendContainerState(containerMapKey)
  12836. }
  12837. ee.EncodeInt(int64(k2))
  12838. if cr != nil {
  12839. cr.sendContainerState(containerMapValue)
  12840. }
  12841. ee.EncodeFloat32(v2)
  12842. }
  12843. }
  12844. if cr != nil {
  12845. cr.sendContainerState(containerMapEnd)
  12846. }
  12847. }
  12848. func (f *encFnInfo) fastpathEncMapInt16Float64R(rv reflect.Value) {
  12849. fastpathTV.EncMapInt16Float64V(rv.Interface().(map[int16]float64), fastpathCheckNilFalse, f.e)
  12850. }
  12851. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, checkNil bool, e *Encoder) {
  12852. ee := e.e
  12853. cr := e.cr
  12854. if checkNil && v == nil {
  12855. ee.EncodeNil()
  12856. return
  12857. }
  12858. ee.EncodeMapStart(len(v))
  12859. if e.h.Canonical {
  12860. v2 := make([]int64, len(v))
  12861. var i int
  12862. for k, _ := range v {
  12863. v2[i] = int64(k)
  12864. i++
  12865. }
  12866. sort.Sort(intSlice(v2))
  12867. for _, k2 := range v2 {
  12868. if cr != nil {
  12869. cr.sendContainerState(containerMapKey)
  12870. }
  12871. ee.EncodeInt(int64(int16(k2)))
  12872. if cr != nil {
  12873. cr.sendContainerState(containerMapValue)
  12874. }
  12875. ee.EncodeFloat64(v[int16(k2)])
  12876. }
  12877. } else {
  12878. for k2, v2 := range v {
  12879. if cr != nil {
  12880. cr.sendContainerState(containerMapKey)
  12881. }
  12882. ee.EncodeInt(int64(k2))
  12883. if cr != nil {
  12884. cr.sendContainerState(containerMapValue)
  12885. }
  12886. ee.EncodeFloat64(v2)
  12887. }
  12888. }
  12889. if cr != nil {
  12890. cr.sendContainerState(containerMapEnd)
  12891. }
  12892. }
  12893. func (f *encFnInfo) fastpathEncMapInt16BoolR(rv reflect.Value) {
  12894. fastpathTV.EncMapInt16BoolV(rv.Interface().(map[int16]bool), fastpathCheckNilFalse, f.e)
  12895. }
  12896. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, checkNil bool, e *Encoder) {
  12897. ee := e.e
  12898. cr := e.cr
  12899. if checkNil && v == nil {
  12900. ee.EncodeNil()
  12901. return
  12902. }
  12903. ee.EncodeMapStart(len(v))
  12904. if e.h.Canonical {
  12905. v2 := make([]int64, len(v))
  12906. var i int
  12907. for k, _ := range v {
  12908. v2[i] = int64(k)
  12909. i++
  12910. }
  12911. sort.Sort(intSlice(v2))
  12912. for _, k2 := range v2 {
  12913. if cr != nil {
  12914. cr.sendContainerState(containerMapKey)
  12915. }
  12916. ee.EncodeInt(int64(int16(k2)))
  12917. if cr != nil {
  12918. cr.sendContainerState(containerMapValue)
  12919. }
  12920. ee.EncodeBool(v[int16(k2)])
  12921. }
  12922. } else {
  12923. for k2, v2 := range v {
  12924. if cr != nil {
  12925. cr.sendContainerState(containerMapKey)
  12926. }
  12927. ee.EncodeInt(int64(k2))
  12928. if cr != nil {
  12929. cr.sendContainerState(containerMapValue)
  12930. }
  12931. ee.EncodeBool(v2)
  12932. }
  12933. }
  12934. if cr != nil {
  12935. cr.sendContainerState(containerMapEnd)
  12936. }
  12937. }
  12938. func (f *encFnInfo) fastpathEncMapInt32IntfR(rv reflect.Value) {
  12939. fastpathTV.EncMapInt32IntfV(rv.Interface().(map[int32]interface{}), fastpathCheckNilFalse, f.e)
  12940. }
  12941. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, checkNil bool, e *Encoder) {
  12942. ee := e.e
  12943. cr := e.cr
  12944. if checkNil && v == nil {
  12945. ee.EncodeNil()
  12946. return
  12947. }
  12948. ee.EncodeMapStart(len(v))
  12949. if e.h.Canonical {
  12950. v2 := make([]int64, len(v))
  12951. var i int
  12952. for k, _ := range v {
  12953. v2[i] = int64(k)
  12954. i++
  12955. }
  12956. sort.Sort(intSlice(v2))
  12957. for _, k2 := range v2 {
  12958. if cr != nil {
  12959. cr.sendContainerState(containerMapKey)
  12960. }
  12961. ee.EncodeInt(int64(int32(k2)))
  12962. if cr != nil {
  12963. cr.sendContainerState(containerMapValue)
  12964. }
  12965. e.encode(v[int32(k2)])
  12966. }
  12967. } else {
  12968. for k2, v2 := range v {
  12969. if cr != nil {
  12970. cr.sendContainerState(containerMapKey)
  12971. }
  12972. ee.EncodeInt(int64(k2))
  12973. if cr != nil {
  12974. cr.sendContainerState(containerMapValue)
  12975. }
  12976. e.encode(v2)
  12977. }
  12978. }
  12979. if cr != nil {
  12980. cr.sendContainerState(containerMapEnd)
  12981. }
  12982. }
  12983. func (f *encFnInfo) fastpathEncMapInt32StringR(rv reflect.Value) {
  12984. fastpathTV.EncMapInt32StringV(rv.Interface().(map[int32]string), fastpathCheckNilFalse, f.e)
  12985. }
  12986. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, checkNil bool, e *Encoder) {
  12987. ee := e.e
  12988. cr := e.cr
  12989. if checkNil && v == nil {
  12990. ee.EncodeNil()
  12991. return
  12992. }
  12993. ee.EncodeMapStart(len(v))
  12994. if e.h.Canonical {
  12995. v2 := make([]int64, len(v))
  12996. var i int
  12997. for k, _ := range v {
  12998. v2[i] = int64(k)
  12999. i++
  13000. }
  13001. sort.Sort(intSlice(v2))
  13002. for _, k2 := range v2 {
  13003. if cr != nil {
  13004. cr.sendContainerState(containerMapKey)
  13005. }
  13006. ee.EncodeInt(int64(int32(k2)))
  13007. if cr != nil {
  13008. cr.sendContainerState(containerMapValue)
  13009. }
  13010. ee.EncodeString(c_UTF8, v[int32(k2)])
  13011. }
  13012. } else {
  13013. for k2, v2 := range v {
  13014. if cr != nil {
  13015. cr.sendContainerState(containerMapKey)
  13016. }
  13017. ee.EncodeInt(int64(k2))
  13018. if cr != nil {
  13019. cr.sendContainerState(containerMapValue)
  13020. }
  13021. ee.EncodeString(c_UTF8, v2)
  13022. }
  13023. }
  13024. if cr != nil {
  13025. cr.sendContainerState(containerMapEnd)
  13026. }
  13027. }
  13028. func (f *encFnInfo) fastpathEncMapInt32UintR(rv reflect.Value) {
  13029. fastpathTV.EncMapInt32UintV(rv.Interface().(map[int32]uint), fastpathCheckNilFalse, f.e)
  13030. }
  13031. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, checkNil bool, e *Encoder) {
  13032. ee := e.e
  13033. cr := e.cr
  13034. if checkNil && v == nil {
  13035. ee.EncodeNil()
  13036. return
  13037. }
  13038. ee.EncodeMapStart(len(v))
  13039. if e.h.Canonical {
  13040. v2 := make([]int64, len(v))
  13041. var i int
  13042. for k, _ := range v {
  13043. v2[i] = int64(k)
  13044. i++
  13045. }
  13046. sort.Sort(intSlice(v2))
  13047. for _, k2 := range v2 {
  13048. if cr != nil {
  13049. cr.sendContainerState(containerMapKey)
  13050. }
  13051. ee.EncodeInt(int64(int32(k2)))
  13052. if cr != nil {
  13053. cr.sendContainerState(containerMapValue)
  13054. }
  13055. ee.EncodeUint(uint64(v[int32(k2)]))
  13056. }
  13057. } else {
  13058. for k2, v2 := range v {
  13059. if cr != nil {
  13060. cr.sendContainerState(containerMapKey)
  13061. }
  13062. ee.EncodeInt(int64(k2))
  13063. if cr != nil {
  13064. cr.sendContainerState(containerMapValue)
  13065. }
  13066. ee.EncodeUint(uint64(v2))
  13067. }
  13068. }
  13069. if cr != nil {
  13070. cr.sendContainerState(containerMapEnd)
  13071. }
  13072. }
  13073. func (f *encFnInfo) fastpathEncMapInt32Uint8R(rv reflect.Value) {
  13074. fastpathTV.EncMapInt32Uint8V(rv.Interface().(map[int32]uint8), fastpathCheckNilFalse, f.e)
  13075. }
  13076. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, checkNil bool, e *Encoder) {
  13077. ee := e.e
  13078. cr := e.cr
  13079. if checkNil && v == nil {
  13080. ee.EncodeNil()
  13081. return
  13082. }
  13083. ee.EncodeMapStart(len(v))
  13084. if e.h.Canonical {
  13085. v2 := make([]int64, len(v))
  13086. var i int
  13087. for k, _ := range v {
  13088. v2[i] = int64(k)
  13089. i++
  13090. }
  13091. sort.Sort(intSlice(v2))
  13092. for _, k2 := range v2 {
  13093. if cr != nil {
  13094. cr.sendContainerState(containerMapKey)
  13095. }
  13096. ee.EncodeInt(int64(int32(k2)))
  13097. if cr != nil {
  13098. cr.sendContainerState(containerMapValue)
  13099. }
  13100. ee.EncodeUint(uint64(v[int32(k2)]))
  13101. }
  13102. } else {
  13103. for k2, v2 := range v {
  13104. if cr != nil {
  13105. cr.sendContainerState(containerMapKey)
  13106. }
  13107. ee.EncodeInt(int64(k2))
  13108. if cr != nil {
  13109. cr.sendContainerState(containerMapValue)
  13110. }
  13111. ee.EncodeUint(uint64(v2))
  13112. }
  13113. }
  13114. if cr != nil {
  13115. cr.sendContainerState(containerMapEnd)
  13116. }
  13117. }
  13118. func (f *encFnInfo) fastpathEncMapInt32Uint16R(rv reflect.Value) {
  13119. fastpathTV.EncMapInt32Uint16V(rv.Interface().(map[int32]uint16), fastpathCheckNilFalse, f.e)
  13120. }
  13121. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, checkNil bool, e *Encoder) {
  13122. ee := e.e
  13123. cr := e.cr
  13124. if checkNil && v == nil {
  13125. ee.EncodeNil()
  13126. return
  13127. }
  13128. ee.EncodeMapStart(len(v))
  13129. if e.h.Canonical {
  13130. v2 := make([]int64, len(v))
  13131. var i int
  13132. for k, _ := range v {
  13133. v2[i] = int64(k)
  13134. i++
  13135. }
  13136. sort.Sort(intSlice(v2))
  13137. for _, k2 := range v2 {
  13138. if cr != nil {
  13139. cr.sendContainerState(containerMapKey)
  13140. }
  13141. ee.EncodeInt(int64(int32(k2)))
  13142. if cr != nil {
  13143. cr.sendContainerState(containerMapValue)
  13144. }
  13145. ee.EncodeUint(uint64(v[int32(k2)]))
  13146. }
  13147. } else {
  13148. for k2, v2 := range v {
  13149. if cr != nil {
  13150. cr.sendContainerState(containerMapKey)
  13151. }
  13152. ee.EncodeInt(int64(k2))
  13153. if cr != nil {
  13154. cr.sendContainerState(containerMapValue)
  13155. }
  13156. ee.EncodeUint(uint64(v2))
  13157. }
  13158. }
  13159. if cr != nil {
  13160. cr.sendContainerState(containerMapEnd)
  13161. }
  13162. }
  13163. func (f *encFnInfo) fastpathEncMapInt32Uint32R(rv reflect.Value) {
  13164. fastpathTV.EncMapInt32Uint32V(rv.Interface().(map[int32]uint32), fastpathCheckNilFalse, f.e)
  13165. }
  13166. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, checkNil bool, e *Encoder) {
  13167. ee := e.e
  13168. cr := e.cr
  13169. if checkNil && v == nil {
  13170. ee.EncodeNil()
  13171. return
  13172. }
  13173. ee.EncodeMapStart(len(v))
  13174. if e.h.Canonical {
  13175. v2 := make([]int64, len(v))
  13176. var i int
  13177. for k, _ := range v {
  13178. v2[i] = int64(k)
  13179. i++
  13180. }
  13181. sort.Sort(intSlice(v2))
  13182. for _, k2 := range v2 {
  13183. if cr != nil {
  13184. cr.sendContainerState(containerMapKey)
  13185. }
  13186. ee.EncodeInt(int64(int32(k2)))
  13187. if cr != nil {
  13188. cr.sendContainerState(containerMapValue)
  13189. }
  13190. ee.EncodeUint(uint64(v[int32(k2)]))
  13191. }
  13192. } else {
  13193. for k2, v2 := range v {
  13194. if cr != nil {
  13195. cr.sendContainerState(containerMapKey)
  13196. }
  13197. ee.EncodeInt(int64(k2))
  13198. if cr != nil {
  13199. cr.sendContainerState(containerMapValue)
  13200. }
  13201. ee.EncodeUint(uint64(v2))
  13202. }
  13203. }
  13204. if cr != nil {
  13205. cr.sendContainerState(containerMapEnd)
  13206. }
  13207. }
  13208. func (f *encFnInfo) fastpathEncMapInt32Uint64R(rv reflect.Value) {
  13209. fastpathTV.EncMapInt32Uint64V(rv.Interface().(map[int32]uint64), fastpathCheckNilFalse, f.e)
  13210. }
  13211. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, checkNil bool, e *Encoder) {
  13212. ee := e.e
  13213. cr := e.cr
  13214. if checkNil && v == nil {
  13215. ee.EncodeNil()
  13216. return
  13217. }
  13218. ee.EncodeMapStart(len(v))
  13219. if e.h.Canonical {
  13220. v2 := make([]int64, len(v))
  13221. var i int
  13222. for k, _ := range v {
  13223. v2[i] = int64(k)
  13224. i++
  13225. }
  13226. sort.Sort(intSlice(v2))
  13227. for _, k2 := range v2 {
  13228. if cr != nil {
  13229. cr.sendContainerState(containerMapKey)
  13230. }
  13231. ee.EncodeInt(int64(int32(k2)))
  13232. if cr != nil {
  13233. cr.sendContainerState(containerMapValue)
  13234. }
  13235. ee.EncodeUint(uint64(v[int32(k2)]))
  13236. }
  13237. } else {
  13238. for k2, v2 := range v {
  13239. if cr != nil {
  13240. cr.sendContainerState(containerMapKey)
  13241. }
  13242. ee.EncodeInt(int64(k2))
  13243. if cr != nil {
  13244. cr.sendContainerState(containerMapValue)
  13245. }
  13246. ee.EncodeUint(uint64(v2))
  13247. }
  13248. }
  13249. if cr != nil {
  13250. cr.sendContainerState(containerMapEnd)
  13251. }
  13252. }
  13253. func (f *encFnInfo) fastpathEncMapInt32UintptrR(rv reflect.Value) {
  13254. fastpathTV.EncMapInt32UintptrV(rv.Interface().(map[int32]uintptr), fastpathCheckNilFalse, f.e)
  13255. }
  13256. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, checkNil bool, e *Encoder) {
  13257. ee := e.e
  13258. cr := e.cr
  13259. if checkNil && v == nil {
  13260. ee.EncodeNil()
  13261. return
  13262. }
  13263. ee.EncodeMapStart(len(v))
  13264. if e.h.Canonical {
  13265. v2 := make([]int64, len(v))
  13266. var i int
  13267. for k, _ := range v {
  13268. v2[i] = int64(k)
  13269. i++
  13270. }
  13271. sort.Sort(intSlice(v2))
  13272. for _, k2 := range v2 {
  13273. if cr != nil {
  13274. cr.sendContainerState(containerMapKey)
  13275. }
  13276. ee.EncodeInt(int64(int32(k2)))
  13277. if cr != nil {
  13278. cr.sendContainerState(containerMapValue)
  13279. }
  13280. e.encode(v[int32(k2)])
  13281. }
  13282. } else {
  13283. for k2, v2 := range v {
  13284. if cr != nil {
  13285. cr.sendContainerState(containerMapKey)
  13286. }
  13287. ee.EncodeInt(int64(k2))
  13288. if cr != nil {
  13289. cr.sendContainerState(containerMapValue)
  13290. }
  13291. e.encode(v2)
  13292. }
  13293. }
  13294. if cr != nil {
  13295. cr.sendContainerState(containerMapEnd)
  13296. }
  13297. }
  13298. func (f *encFnInfo) fastpathEncMapInt32IntR(rv reflect.Value) {
  13299. fastpathTV.EncMapInt32IntV(rv.Interface().(map[int32]int), fastpathCheckNilFalse, f.e)
  13300. }
  13301. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, checkNil bool, e *Encoder) {
  13302. ee := e.e
  13303. cr := e.cr
  13304. if checkNil && v == nil {
  13305. ee.EncodeNil()
  13306. return
  13307. }
  13308. ee.EncodeMapStart(len(v))
  13309. if e.h.Canonical {
  13310. v2 := make([]int64, len(v))
  13311. var i int
  13312. for k, _ := range v {
  13313. v2[i] = int64(k)
  13314. i++
  13315. }
  13316. sort.Sort(intSlice(v2))
  13317. for _, k2 := range v2 {
  13318. if cr != nil {
  13319. cr.sendContainerState(containerMapKey)
  13320. }
  13321. ee.EncodeInt(int64(int32(k2)))
  13322. if cr != nil {
  13323. cr.sendContainerState(containerMapValue)
  13324. }
  13325. ee.EncodeInt(int64(v[int32(k2)]))
  13326. }
  13327. } else {
  13328. for k2, v2 := range v {
  13329. if cr != nil {
  13330. cr.sendContainerState(containerMapKey)
  13331. }
  13332. ee.EncodeInt(int64(k2))
  13333. if cr != nil {
  13334. cr.sendContainerState(containerMapValue)
  13335. }
  13336. ee.EncodeInt(int64(v2))
  13337. }
  13338. }
  13339. if cr != nil {
  13340. cr.sendContainerState(containerMapEnd)
  13341. }
  13342. }
  13343. func (f *encFnInfo) fastpathEncMapInt32Int8R(rv reflect.Value) {
  13344. fastpathTV.EncMapInt32Int8V(rv.Interface().(map[int32]int8), fastpathCheckNilFalse, f.e)
  13345. }
  13346. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, checkNil bool, e *Encoder) {
  13347. ee := e.e
  13348. cr := e.cr
  13349. if checkNil && v == nil {
  13350. ee.EncodeNil()
  13351. return
  13352. }
  13353. ee.EncodeMapStart(len(v))
  13354. if e.h.Canonical {
  13355. v2 := make([]int64, len(v))
  13356. var i int
  13357. for k, _ := range v {
  13358. v2[i] = int64(k)
  13359. i++
  13360. }
  13361. sort.Sort(intSlice(v2))
  13362. for _, k2 := range v2 {
  13363. if cr != nil {
  13364. cr.sendContainerState(containerMapKey)
  13365. }
  13366. ee.EncodeInt(int64(int32(k2)))
  13367. if cr != nil {
  13368. cr.sendContainerState(containerMapValue)
  13369. }
  13370. ee.EncodeInt(int64(v[int32(k2)]))
  13371. }
  13372. } else {
  13373. for k2, v2 := range v {
  13374. if cr != nil {
  13375. cr.sendContainerState(containerMapKey)
  13376. }
  13377. ee.EncodeInt(int64(k2))
  13378. if cr != nil {
  13379. cr.sendContainerState(containerMapValue)
  13380. }
  13381. ee.EncodeInt(int64(v2))
  13382. }
  13383. }
  13384. if cr != nil {
  13385. cr.sendContainerState(containerMapEnd)
  13386. }
  13387. }
  13388. func (f *encFnInfo) fastpathEncMapInt32Int16R(rv reflect.Value) {
  13389. fastpathTV.EncMapInt32Int16V(rv.Interface().(map[int32]int16), fastpathCheckNilFalse, f.e)
  13390. }
  13391. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, checkNil bool, e *Encoder) {
  13392. ee := e.e
  13393. cr := e.cr
  13394. if checkNil && v == nil {
  13395. ee.EncodeNil()
  13396. return
  13397. }
  13398. ee.EncodeMapStart(len(v))
  13399. if e.h.Canonical {
  13400. v2 := make([]int64, len(v))
  13401. var i int
  13402. for k, _ := range v {
  13403. v2[i] = int64(k)
  13404. i++
  13405. }
  13406. sort.Sort(intSlice(v2))
  13407. for _, k2 := range v2 {
  13408. if cr != nil {
  13409. cr.sendContainerState(containerMapKey)
  13410. }
  13411. ee.EncodeInt(int64(int32(k2)))
  13412. if cr != nil {
  13413. cr.sendContainerState(containerMapValue)
  13414. }
  13415. ee.EncodeInt(int64(v[int32(k2)]))
  13416. }
  13417. } else {
  13418. for k2, v2 := range v {
  13419. if cr != nil {
  13420. cr.sendContainerState(containerMapKey)
  13421. }
  13422. ee.EncodeInt(int64(k2))
  13423. if cr != nil {
  13424. cr.sendContainerState(containerMapValue)
  13425. }
  13426. ee.EncodeInt(int64(v2))
  13427. }
  13428. }
  13429. if cr != nil {
  13430. cr.sendContainerState(containerMapEnd)
  13431. }
  13432. }
  13433. func (f *encFnInfo) fastpathEncMapInt32Int32R(rv reflect.Value) {
  13434. fastpathTV.EncMapInt32Int32V(rv.Interface().(map[int32]int32), fastpathCheckNilFalse, f.e)
  13435. }
  13436. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, checkNil bool, e *Encoder) {
  13437. ee := e.e
  13438. cr := e.cr
  13439. if checkNil && v == nil {
  13440. ee.EncodeNil()
  13441. return
  13442. }
  13443. ee.EncodeMapStart(len(v))
  13444. if e.h.Canonical {
  13445. v2 := make([]int64, len(v))
  13446. var i int
  13447. for k, _ := range v {
  13448. v2[i] = int64(k)
  13449. i++
  13450. }
  13451. sort.Sort(intSlice(v2))
  13452. for _, k2 := range v2 {
  13453. if cr != nil {
  13454. cr.sendContainerState(containerMapKey)
  13455. }
  13456. ee.EncodeInt(int64(int32(k2)))
  13457. if cr != nil {
  13458. cr.sendContainerState(containerMapValue)
  13459. }
  13460. ee.EncodeInt(int64(v[int32(k2)]))
  13461. }
  13462. } else {
  13463. for k2, v2 := range v {
  13464. if cr != nil {
  13465. cr.sendContainerState(containerMapKey)
  13466. }
  13467. ee.EncodeInt(int64(k2))
  13468. if cr != nil {
  13469. cr.sendContainerState(containerMapValue)
  13470. }
  13471. ee.EncodeInt(int64(v2))
  13472. }
  13473. }
  13474. if cr != nil {
  13475. cr.sendContainerState(containerMapEnd)
  13476. }
  13477. }
  13478. func (f *encFnInfo) fastpathEncMapInt32Int64R(rv reflect.Value) {
  13479. fastpathTV.EncMapInt32Int64V(rv.Interface().(map[int32]int64), fastpathCheckNilFalse, f.e)
  13480. }
  13481. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, checkNil bool, e *Encoder) {
  13482. ee := e.e
  13483. cr := e.cr
  13484. if checkNil && v == nil {
  13485. ee.EncodeNil()
  13486. return
  13487. }
  13488. ee.EncodeMapStart(len(v))
  13489. if e.h.Canonical {
  13490. v2 := make([]int64, len(v))
  13491. var i int
  13492. for k, _ := range v {
  13493. v2[i] = int64(k)
  13494. i++
  13495. }
  13496. sort.Sort(intSlice(v2))
  13497. for _, k2 := range v2 {
  13498. if cr != nil {
  13499. cr.sendContainerState(containerMapKey)
  13500. }
  13501. ee.EncodeInt(int64(int32(k2)))
  13502. if cr != nil {
  13503. cr.sendContainerState(containerMapValue)
  13504. }
  13505. ee.EncodeInt(int64(v[int32(k2)]))
  13506. }
  13507. } else {
  13508. for k2, v2 := range v {
  13509. if cr != nil {
  13510. cr.sendContainerState(containerMapKey)
  13511. }
  13512. ee.EncodeInt(int64(k2))
  13513. if cr != nil {
  13514. cr.sendContainerState(containerMapValue)
  13515. }
  13516. ee.EncodeInt(int64(v2))
  13517. }
  13518. }
  13519. if cr != nil {
  13520. cr.sendContainerState(containerMapEnd)
  13521. }
  13522. }
  13523. func (f *encFnInfo) fastpathEncMapInt32Float32R(rv reflect.Value) {
  13524. fastpathTV.EncMapInt32Float32V(rv.Interface().(map[int32]float32), fastpathCheckNilFalse, f.e)
  13525. }
  13526. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, checkNil bool, e *Encoder) {
  13527. ee := e.e
  13528. cr := e.cr
  13529. if checkNil && v == nil {
  13530. ee.EncodeNil()
  13531. return
  13532. }
  13533. ee.EncodeMapStart(len(v))
  13534. if e.h.Canonical {
  13535. v2 := make([]int64, len(v))
  13536. var i int
  13537. for k, _ := range v {
  13538. v2[i] = int64(k)
  13539. i++
  13540. }
  13541. sort.Sort(intSlice(v2))
  13542. for _, k2 := range v2 {
  13543. if cr != nil {
  13544. cr.sendContainerState(containerMapKey)
  13545. }
  13546. ee.EncodeInt(int64(int32(k2)))
  13547. if cr != nil {
  13548. cr.sendContainerState(containerMapValue)
  13549. }
  13550. ee.EncodeFloat32(v[int32(k2)])
  13551. }
  13552. } else {
  13553. for k2, v2 := range v {
  13554. if cr != nil {
  13555. cr.sendContainerState(containerMapKey)
  13556. }
  13557. ee.EncodeInt(int64(k2))
  13558. if cr != nil {
  13559. cr.sendContainerState(containerMapValue)
  13560. }
  13561. ee.EncodeFloat32(v2)
  13562. }
  13563. }
  13564. if cr != nil {
  13565. cr.sendContainerState(containerMapEnd)
  13566. }
  13567. }
  13568. func (f *encFnInfo) fastpathEncMapInt32Float64R(rv reflect.Value) {
  13569. fastpathTV.EncMapInt32Float64V(rv.Interface().(map[int32]float64), fastpathCheckNilFalse, f.e)
  13570. }
  13571. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, checkNil bool, e *Encoder) {
  13572. ee := e.e
  13573. cr := e.cr
  13574. if checkNil && v == nil {
  13575. ee.EncodeNil()
  13576. return
  13577. }
  13578. ee.EncodeMapStart(len(v))
  13579. if e.h.Canonical {
  13580. v2 := make([]int64, len(v))
  13581. var i int
  13582. for k, _ := range v {
  13583. v2[i] = int64(k)
  13584. i++
  13585. }
  13586. sort.Sort(intSlice(v2))
  13587. for _, k2 := range v2 {
  13588. if cr != nil {
  13589. cr.sendContainerState(containerMapKey)
  13590. }
  13591. ee.EncodeInt(int64(int32(k2)))
  13592. if cr != nil {
  13593. cr.sendContainerState(containerMapValue)
  13594. }
  13595. ee.EncodeFloat64(v[int32(k2)])
  13596. }
  13597. } else {
  13598. for k2, v2 := range v {
  13599. if cr != nil {
  13600. cr.sendContainerState(containerMapKey)
  13601. }
  13602. ee.EncodeInt(int64(k2))
  13603. if cr != nil {
  13604. cr.sendContainerState(containerMapValue)
  13605. }
  13606. ee.EncodeFloat64(v2)
  13607. }
  13608. }
  13609. if cr != nil {
  13610. cr.sendContainerState(containerMapEnd)
  13611. }
  13612. }
  13613. func (f *encFnInfo) fastpathEncMapInt32BoolR(rv reflect.Value) {
  13614. fastpathTV.EncMapInt32BoolV(rv.Interface().(map[int32]bool), fastpathCheckNilFalse, f.e)
  13615. }
  13616. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, checkNil bool, e *Encoder) {
  13617. ee := e.e
  13618. cr := e.cr
  13619. if checkNil && v == nil {
  13620. ee.EncodeNil()
  13621. return
  13622. }
  13623. ee.EncodeMapStart(len(v))
  13624. if e.h.Canonical {
  13625. v2 := make([]int64, len(v))
  13626. var i int
  13627. for k, _ := range v {
  13628. v2[i] = int64(k)
  13629. i++
  13630. }
  13631. sort.Sort(intSlice(v2))
  13632. for _, k2 := range v2 {
  13633. if cr != nil {
  13634. cr.sendContainerState(containerMapKey)
  13635. }
  13636. ee.EncodeInt(int64(int32(k2)))
  13637. if cr != nil {
  13638. cr.sendContainerState(containerMapValue)
  13639. }
  13640. ee.EncodeBool(v[int32(k2)])
  13641. }
  13642. } else {
  13643. for k2, v2 := range v {
  13644. if cr != nil {
  13645. cr.sendContainerState(containerMapKey)
  13646. }
  13647. ee.EncodeInt(int64(k2))
  13648. if cr != nil {
  13649. cr.sendContainerState(containerMapValue)
  13650. }
  13651. ee.EncodeBool(v2)
  13652. }
  13653. }
  13654. if cr != nil {
  13655. cr.sendContainerState(containerMapEnd)
  13656. }
  13657. }
  13658. func (f *encFnInfo) fastpathEncMapInt64IntfR(rv reflect.Value) {
  13659. fastpathTV.EncMapInt64IntfV(rv.Interface().(map[int64]interface{}), fastpathCheckNilFalse, f.e)
  13660. }
  13661. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, checkNil bool, e *Encoder) {
  13662. ee := e.e
  13663. cr := e.cr
  13664. if checkNil && v == nil {
  13665. ee.EncodeNil()
  13666. return
  13667. }
  13668. ee.EncodeMapStart(len(v))
  13669. if e.h.Canonical {
  13670. v2 := make([]int64, len(v))
  13671. var i int
  13672. for k, _ := range v {
  13673. v2[i] = int64(k)
  13674. i++
  13675. }
  13676. sort.Sort(intSlice(v2))
  13677. for _, k2 := range v2 {
  13678. if cr != nil {
  13679. cr.sendContainerState(containerMapKey)
  13680. }
  13681. ee.EncodeInt(int64(int64(k2)))
  13682. if cr != nil {
  13683. cr.sendContainerState(containerMapValue)
  13684. }
  13685. e.encode(v[int64(k2)])
  13686. }
  13687. } else {
  13688. for k2, v2 := range v {
  13689. if cr != nil {
  13690. cr.sendContainerState(containerMapKey)
  13691. }
  13692. ee.EncodeInt(int64(k2))
  13693. if cr != nil {
  13694. cr.sendContainerState(containerMapValue)
  13695. }
  13696. e.encode(v2)
  13697. }
  13698. }
  13699. if cr != nil {
  13700. cr.sendContainerState(containerMapEnd)
  13701. }
  13702. }
  13703. func (f *encFnInfo) fastpathEncMapInt64StringR(rv reflect.Value) {
  13704. fastpathTV.EncMapInt64StringV(rv.Interface().(map[int64]string), fastpathCheckNilFalse, f.e)
  13705. }
  13706. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, checkNil bool, e *Encoder) {
  13707. ee := e.e
  13708. cr := e.cr
  13709. if checkNil && v == nil {
  13710. ee.EncodeNil()
  13711. return
  13712. }
  13713. ee.EncodeMapStart(len(v))
  13714. if e.h.Canonical {
  13715. v2 := make([]int64, len(v))
  13716. var i int
  13717. for k, _ := range v {
  13718. v2[i] = int64(k)
  13719. i++
  13720. }
  13721. sort.Sort(intSlice(v2))
  13722. for _, k2 := range v2 {
  13723. if cr != nil {
  13724. cr.sendContainerState(containerMapKey)
  13725. }
  13726. ee.EncodeInt(int64(int64(k2)))
  13727. if cr != nil {
  13728. cr.sendContainerState(containerMapValue)
  13729. }
  13730. ee.EncodeString(c_UTF8, v[int64(k2)])
  13731. }
  13732. } else {
  13733. for k2, v2 := range v {
  13734. if cr != nil {
  13735. cr.sendContainerState(containerMapKey)
  13736. }
  13737. ee.EncodeInt(int64(k2))
  13738. if cr != nil {
  13739. cr.sendContainerState(containerMapValue)
  13740. }
  13741. ee.EncodeString(c_UTF8, v2)
  13742. }
  13743. }
  13744. if cr != nil {
  13745. cr.sendContainerState(containerMapEnd)
  13746. }
  13747. }
  13748. func (f *encFnInfo) fastpathEncMapInt64UintR(rv reflect.Value) {
  13749. fastpathTV.EncMapInt64UintV(rv.Interface().(map[int64]uint), fastpathCheckNilFalse, f.e)
  13750. }
  13751. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, checkNil bool, e *Encoder) {
  13752. ee := e.e
  13753. cr := e.cr
  13754. if checkNil && v == nil {
  13755. ee.EncodeNil()
  13756. return
  13757. }
  13758. ee.EncodeMapStart(len(v))
  13759. if e.h.Canonical {
  13760. v2 := make([]int64, len(v))
  13761. var i int
  13762. for k, _ := range v {
  13763. v2[i] = int64(k)
  13764. i++
  13765. }
  13766. sort.Sort(intSlice(v2))
  13767. for _, k2 := range v2 {
  13768. if cr != nil {
  13769. cr.sendContainerState(containerMapKey)
  13770. }
  13771. ee.EncodeInt(int64(int64(k2)))
  13772. if cr != nil {
  13773. cr.sendContainerState(containerMapValue)
  13774. }
  13775. ee.EncodeUint(uint64(v[int64(k2)]))
  13776. }
  13777. } else {
  13778. for k2, v2 := range v {
  13779. if cr != nil {
  13780. cr.sendContainerState(containerMapKey)
  13781. }
  13782. ee.EncodeInt(int64(k2))
  13783. if cr != nil {
  13784. cr.sendContainerState(containerMapValue)
  13785. }
  13786. ee.EncodeUint(uint64(v2))
  13787. }
  13788. }
  13789. if cr != nil {
  13790. cr.sendContainerState(containerMapEnd)
  13791. }
  13792. }
  13793. func (f *encFnInfo) fastpathEncMapInt64Uint8R(rv reflect.Value) {
  13794. fastpathTV.EncMapInt64Uint8V(rv.Interface().(map[int64]uint8), fastpathCheckNilFalse, f.e)
  13795. }
  13796. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, checkNil bool, e *Encoder) {
  13797. ee := e.e
  13798. cr := e.cr
  13799. if checkNil && v == nil {
  13800. ee.EncodeNil()
  13801. return
  13802. }
  13803. ee.EncodeMapStart(len(v))
  13804. if e.h.Canonical {
  13805. v2 := make([]int64, len(v))
  13806. var i int
  13807. for k, _ := range v {
  13808. v2[i] = int64(k)
  13809. i++
  13810. }
  13811. sort.Sort(intSlice(v2))
  13812. for _, k2 := range v2 {
  13813. if cr != nil {
  13814. cr.sendContainerState(containerMapKey)
  13815. }
  13816. ee.EncodeInt(int64(int64(k2)))
  13817. if cr != nil {
  13818. cr.sendContainerState(containerMapValue)
  13819. }
  13820. ee.EncodeUint(uint64(v[int64(k2)]))
  13821. }
  13822. } else {
  13823. for k2, v2 := range v {
  13824. if cr != nil {
  13825. cr.sendContainerState(containerMapKey)
  13826. }
  13827. ee.EncodeInt(int64(k2))
  13828. if cr != nil {
  13829. cr.sendContainerState(containerMapValue)
  13830. }
  13831. ee.EncodeUint(uint64(v2))
  13832. }
  13833. }
  13834. if cr != nil {
  13835. cr.sendContainerState(containerMapEnd)
  13836. }
  13837. }
  13838. func (f *encFnInfo) fastpathEncMapInt64Uint16R(rv reflect.Value) {
  13839. fastpathTV.EncMapInt64Uint16V(rv.Interface().(map[int64]uint16), fastpathCheckNilFalse, f.e)
  13840. }
  13841. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, checkNil bool, e *Encoder) {
  13842. ee := e.e
  13843. cr := e.cr
  13844. if checkNil && v == nil {
  13845. ee.EncodeNil()
  13846. return
  13847. }
  13848. ee.EncodeMapStart(len(v))
  13849. if e.h.Canonical {
  13850. v2 := make([]int64, len(v))
  13851. var i int
  13852. for k, _ := range v {
  13853. v2[i] = int64(k)
  13854. i++
  13855. }
  13856. sort.Sort(intSlice(v2))
  13857. for _, k2 := range v2 {
  13858. if cr != nil {
  13859. cr.sendContainerState(containerMapKey)
  13860. }
  13861. ee.EncodeInt(int64(int64(k2)))
  13862. if cr != nil {
  13863. cr.sendContainerState(containerMapValue)
  13864. }
  13865. ee.EncodeUint(uint64(v[int64(k2)]))
  13866. }
  13867. } else {
  13868. for k2, v2 := range v {
  13869. if cr != nil {
  13870. cr.sendContainerState(containerMapKey)
  13871. }
  13872. ee.EncodeInt(int64(k2))
  13873. if cr != nil {
  13874. cr.sendContainerState(containerMapValue)
  13875. }
  13876. ee.EncodeUint(uint64(v2))
  13877. }
  13878. }
  13879. if cr != nil {
  13880. cr.sendContainerState(containerMapEnd)
  13881. }
  13882. }
  13883. func (f *encFnInfo) fastpathEncMapInt64Uint32R(rv reflect.Value) {
  13884. fastpathTV.EncMapInt64Uint32V(rv.Interface().(map[int64]uint32), fastpathCheckNilFalse, f.e)
  13885. }
  13886. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, checkNil bool, e *Encoder) {
  13887. ee := e.e
  13888. cr := e.cr
  13889. if checkNil && v == nil {
  13890. ee.EncodeNil()
  13891. return
  13892. }
  13893. ee.EncodeMapStart(len(v))
  13894. if e.h.Canonical {
  13895. v2 := make([]int64, len(v))
  13896. var i int
  13897. for k, _ := range v {
  13898. v2[i] = int64(k)
  13899. i++
  13900. }
  13901. sort.Sort(intSlice(v2))
  13902. for _, k2 := range v2 {
  13903. if cr != nil {
  13904. cr.sendContainerState(containerMapKey)
  13905. }
  13906. ee.EncodeInt(int64(int64(k2)))
  13907. if cr != nil {
  13908. cr.sendContainerState(containerMapValue)
  13909. }
  13910. ee.EncodeUint(uint64(v[int64(k2)]))
  13911. }
  13912. } else {
  13913. for k2, v2 := range v {
  13914. if cr != nil {
  13915. cr.sendContainerState(containerMapKey)
  13916. }
  13917. ee.EncodeInt(int64(k2))
  13918. if cr != nil {
  13919. cr.sendContainerState(containerMapValue)
  13920. }
  13921. ee.EncodeUint(uint64(v2))
  13922. }
  13923. }
  13924. if cr != nil {
  13925. cr.sendContainerState(containerMapEnd)
  13926. }
  13927. }
  13928. func (f *encFnInfo) fastpathEncMapInt64Uint64R(rv reflect.Value) {
  13929. fastpathTV.EncMapInt64Uint64V(rv.Interface().(map[int64]uint64), fastpathCheckNilFalse, f.e)
  13930. }
  13931. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, checkNil bool, e *Encoder) {
  13932. ee := e.e
  13933. cr := e.cr
  13934. if checkNil && v == nil {
  13935. ee.EncodeNil()
  13936. return
  13937. }
  13938. ee.EncodeMapStart(len(v))
  13939. if e.h.Canonical {
  13940. v2 := make([]int64, len(v))
  13941. var i int
  13942. for k, _ := range v {
  13943. v2[i] = int64(k)
  13944. i++
  13945. }
  13946. sort.Sort(intSlice(v2))
  13947. for _, k2 := range v2 {
  13948. if cr != nil {
  13949. cr.sendContainerState(containerMapKey)
  13950. }
  13951. ee.EncodeInt(int64(int64(k2)))
  13952. if cr != nil {
  13953. cr.sendContainerState(containerMapValue)
  13954. }
  13955. ee.EncodeUint(uint64(v[int64(k2)]))
  13956. }
  13957. } else {
  13958. for k2, v2 := range v {
  13959. if cr != nil {
  13960. cr.sendContainerState(containerMapKey)
  13961. }
  13962. ee.EncodeInt(int64(k2))
  13963. if cr != nil {
  13964. cr.sendContainerState(containerMapValue)
  13965. }
  13966. ee.EncodeUint(uint64(v2))
  13967. }
  13968. }
  13969. if cr != nil {
  13970. cr.sendContainerState(containerMapEnd)
  13971. }
  13972. }
  13973. func (f *encFnInfo) fastpathEncMapInt64UintptrR(rv reflect.Value) {
  13974. fastpathTV.EncMapInt64UintptrV(rv.Interface().(map[int64]uintptr), fastpathCheckNilFalse, f.e)
  13975. }
  13976. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, checkNil bool, e *Encoder) {
  13977. ee := e.e
  13978. cr := e.cr
  13979. if checkNil && v == nil {
  13980. ee.EncodeNil()
  13981. return
  13982. }
  13983. ee.EncodeMapStart(len(v))
  13984. if e.h.Canonical {
  13985. v2 := make([]int64, len(v))
  13986. var i int
  13987. for k, _ := range v {
  13988. v2[i] = int64(k)
  13989. i++
  13990. }
  13991. sort.Sort(intSlice(v2))
  13992. for _, k2 := range v2 {
  13993. if cr != nil {
  13994. cr.sendContainerState(containerMapKey)
  13995. }
  13996. ee.EncodeInt(int64(int64(k2)))
  13997. if cr != nil {
  13998. cr.sendContainerState(containerMapValue)
  13999. }
  14000. e.encode(v[int64(k2)])
  14001. }
  14002. } else {
  14003. for k2, v2 := range v {
  14004. if cr != nil {
  14005. cr.sendContainerState(containerMapKey)
  14006. }
  14007. ee.EncodeInt(int64(k2))
  14008. if cr != nil {
  14009. cr.sendContainerState(containerMapValue)
  14010. }
  14011. e.encode(v2)
  14012. }
  14013. }
  14014. if cr != nil {
  14015. cr.sendContainerState(containerMapEnd)
  14016. }
  14017. }
  14018. func (f *encFnInfo) fastpathEncMapInt64IntR(rv reflect.Value) {
  14019. fastpathTV.EncMapInt64IntV(rv.Interface().(map[int64]int), fastpathCheckNilFalse, f.e)
  14020. }
  14021. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, checkNil bool, e *Encoder) {
  14022. ee := e.e
  14023. cr := e.cr
  14024. if checkNil && v == nil {
  14025. ee.EncodeNil()
  14026. return
  14027. }
  14028. ee.EncodeMapStart(len(v))
  14029. if e.h.Canonical {
  14030. v2 := make([]int64, len(v))
  14031. var i int
  14032. for k, _ := range v {
  14033. v2[i] = int64(k)
  14034. i++
  14035. }
  14036. sort.Sort(intSlice(v2))
  14037. for _, k2 := range v2 {
  14038. if cr != nil {
  14039. cr.sendContainerState(containerMapKey)
  14040. }
  14041. ee.EncodeInt(int64(int64(k2)))
  14042. if cr != nil {
  14043. cr.sendContainerState(containerMapValue)
  14044. }
  14045. ee.EncodeInt(int64(v[int64(k2)]))
  14046. }
  14047. } else {
  14048. for k2, v2 := range v {
  14049. if cr != nil {
  14050. cr.sendContainerState(containerMapKey)
  14051. }
  14052. ee.EncodeInt(int64(k2))
  14053. if cr != nil {
  14054. cr.sendContainerState(containerMapValue)
  14055. }
  14056. ee.EncodeInt(int64(v2))
  14057. }
  14058. }
  14059. if cr != nil {
  14060. cr.sendContainerState(containerMapEnd)
  14061. }
  14062. }
  14063. func (f *encFnInfo) fastpathEncMapInt64Int8R(rv reflect.Value) {
  14064. fastpathTV.EncMapInt64Int8V(rv.Interface().(map[int64]int8), fastpathCheckNilFalse, f.e)
  14065. }
  14066. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, checkNil bool, e *Encoder) {
  14067. ee := e.e
  14068. cr := e.cr
  14069. if checkNil && v == nil {
  14070. ee.EncodeNil()
  14071. return
  14072. }
  14073. ee.EncodeMapStart(len(v))
  14074. if e.h.Canonical {
  14075. v2 := make([]int64, len(v))
  14076. var i int
  14077. for k, _ := range v {
  14078. v2[i] = int64(k)
  14079. i++
  14080. }
  14081. sort.Sort(intSlice(v2))
  14082. for _, k2 := range v2 {
  14083. if cr != nil {
  14084. cr.sendContainerState(containerMapKey)
  14085. }
  14086. ee.EncodeInt(int64(int64(k2)))
  14087. if cr != nil {
  14088. cr.sendContainerState(containerMapValue)
  14089. }
  14090. ee.EncodeInt(int64(v[int64(k2)]))
  14091. }
  14092. } else {
  14093. for k2, v2 := range v {
  14094. if cr != nil {
  14095. cr.sendContainerState(containerMapKey)
  14096. }
  14097. ee.EncodeInt(int64(k2))
  14098. if cr != nil {
  14099. cr.sendContainerState(containerMapValue)
  14100. }
  14101. ee.EncodeInt(int64(v2))
  14102. }
  14103. }
  14104. if cr != nil {
  14105. cr.sendContainerState(containerMapEnd)
  14106. }
  14107. }
  14108. func (f *encFnInfo) fastpathEncMapInt64Int16R(rv reflect.Value) {
  14109. fastpathTV.EncMapInt64Int16V(rv.Interface().(map[int64]int16), fastpathCheckNilFalse, f.e)
  14110. }
  14111. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, checkNil bool, e *Encoder) {
  14112. ee := e.e
  14113. cr := e.cr
  14114. if checkNil && v == nil {
  14115. ee.EncodeNil()
  14116. return
  14117. }
  14118. ee.EncodeMapStart(len(v))
  14119. if e.h.Canonical {
  14120. v2 := make([]int64, len(v))
  14121. var i int
  14122. for k, _ := range v {
  14123. v2[i] = int64(k)
  14124. i++
  14125. }
  14126. sort.Sort(intSlice(v2))
  14127. for _, k2 := range v2 {
  14128. if cr != nil {
  14129. cr.sendContainerState(containerMapKey)
  14130. }
  14131. ee.EncodeInt(int64(int64(k2)))
  14132. if cr != nil {
  14133. cr.sendContainerState(containerMapValue)
  14134. }
  14135. ee.EncodeInt(int64(v[int64(k2)]))
  14136. }
  14137. } else {
  14138. for k2, v2 := range v {
  14139. if cr != nil {
  14140. cr.sendContainerState(containerMapKey)
  14141. }
  14142. ee.EncodeInt(int64(k2))
  14143. if cr != nil {
  14144. cr.sendContainerState(containerMapValue)
  14145. }
  14146. ee.EncodeInt(int64(v2))
  14147. }
  14148. }
  14149. if cr != nil {
  14150. cr.sendContainerState(containerMapEnd)
  14151. }
  14152. }
  14153. func (f *encFnInfo) fastpathEncMapInt64Int32R(rv reflect.Value) {
  14154. fastpathTV.EncMapInt64Int32V(rv.Interface().(map[int64]int32), fastpathCheckNilFalse, f.e)
  14155. }
  14156. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, checkNil bool, e *Encoder) {
  14157. ee := e.e
  14158. cr := e.cr
  14159. if checkNil && v == nil {
  14160. ee.EncodeNil()
  14161. return
  14162. }
  14163. ee.EncodeMapStart(len(v))
  14164. if e.h.Canonical {
  14165. v2 := make([]int64, len(v))
  14166. var i int
  14167. for k, _ := range v {
  14168. v2[i] = int64(k)
  14169. i++
  14170. }
  14171. sort.Sort(intSlice(v2))
  14172. for _, k2 := range v2 {
  14173. if cr != nil {
  14174. cr.sendContainerState(containerMapKey)
  14175. }
  14176. ee.EncodeInt(int64(int64(k2)))
  14177. if cr != nil {
  14178. cr.sendContainerState(containerMapValue)
  14179. }
  14180. ee.EncodeInt(int64(v[int64(k2)]))
  14181. }
  14182. } else {
  14183. for k2, v2 := range v {
  14184. if cr != nil {
  14185. cr.sendContainerState(containerMapKey)
  14186. }
  14187. ee.EncodeInt(int64(k2))
  14188. if cr != nil {
  14189. cr.sendContainerState(containerMapValue)
  14190. }
  14191. ee.EncodeInt(int64(v2))
  14192. }
  14193. }
  14194. if cr != nil {
  14195. cr.sendContainerState(containerMapEnd)
  14196. }
  14197. }
  14198. func (f *encFnInfo) fastpathEncMapInt64Int64R(rv reflect.Value) {
  14199. fastpathTV.EncMapInt64Int64V(rv.Interface().(map[int64]int64), fastpathCheckNilFalse, f.e)
  14200. }
  14201. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, checkNil bool, e *Encoder) {
  14202. ee := e.e
  14203. cr := e.cr
  14204. if checkNil && v == nil {
  14205. ee.EncodeNil()
  14206. return
  14207. }
  14208. ee.EncodeMapStart(len(v))
  14209. if e.h.Canonical {
  14210. v2 := make([]int64, len(v))
  14211. var i int
  14212. for k, _ := range v {
  14213. v2[i] = int64(k)
  14214. i++
  14215. }
  14216. sort.Sort(intSlice(v2))
  14217. for _, k2 := range v2 {
  14218. if cr != nil {
  14219. cr.sendContainerState(containerMapKey)
  14220. }
  14221. ee.EncodeInt(int64(int64(k2)))
  14222. if cr != nil {
  14223. cr.sendContainerState(containerMapValue)
  14224. }
  14225. ee.EncodeInt(int64(v[int64(k2)]))
  14226. }
  14227. } else {
  14228. for k2, v2 := range v {
  14229. if cr != nil {
  14230. cr.sendContainerState(containerMapKey)
  14231. }
  14232. ee.EncodeInt(int64(k2))
  14233. if cr != nil {
  14234. cr.sendContainerState(containerMapValue)
  14235. }
  14236. ee.EncodeInt(int64(v2))
  14237. }
  14238. }
  14239. if cr != nil {
  14240. cr.sendContainerState(containerMapEnd)
  14241. }
  14242. }
  14243. func (f *encFnInfo) fastpathEncMapInt64Float32R(rv reflect.Value) {
  14244. fastpathTV.EncMapInt64Float32V(rv.Interface().(map[int64]float32), fastpathCheckNilFalse, f.e)
  14245. }
  14246. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, checkNil bool, e *Encoder) {
  14247. ee := e.e
  14248. cr := e.cr
  14249. if checkNil && v == nil {
  14250. ee.EncodeNil()
  14251. return
  14252. }
  14253. ee.EncodeMapStart(len(v))
  14254. if e.h.Canonical {
  14255. v2 := make([]int64, len(v))
  14256. var i int
  14257. for k, _ := range v {
  14258. v2[i] = int64(k)
  14259. i++
  14260. }
  14261. sort.Sort(intSlice(v2))
  14262. for _, k2 := range v2 {
  14263. if cr != nil {
  14264. cr.sendContainerState(containerMapKey)
  14265. }
  14266. ee.EncodeInt(int64(int64(k2)))
  14267. if cr != nil {
  14268. cr.sendContainerState(containerMapValue)
  14269. }
  14270. ee.EncodeFloat32(v[int64(k2)])
  14271. }
  14272. } else {
  14273. for k2, v2 := range v {
  14274. if cr != nil {
  14275. cr.sendContainerState(containerMapKey)
  14276. }
  14277. ee.EncodeInt(int64(k2))
  14278. if cr != nil {
  14279. cr.sendContainerState(containerMapValue)
  14280. }
  14281. ee.EncodeFloat32(v2)
  14282. }
  14283. }
  14284. if cr != nil {
  14285. cr.sendContainerState(containerMapEnd)
  14286. }
  14287. }
  14288. func (f *encFnInfo) fastpathEncMapInt64Float64R(rv reflect.Value) {
  14289. fastpathTV.EncMapInt64Float64V(rv.Interface().(map[int64]float64), fastpathCheckNilFalse, f.e)
  14290. }
  14291. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, checkNil bool, e *Encoder) {
  14292. ee := e.e
  14293. cr := e.cr
  14294. if checkNil && v == nil {
  14295. ee.EncodeNil()
  14296. return
  14297. }
  14298. ee.EncodeMapStart(len(v))
  14299. if e.h.Canonical {
  14300. v2 := make([]int64, len(v))
  14301. var i int
  14302. for k, _ := range v {
  14303. v2[i] = int64(k)
  14304. i++
  14305. }
  14306. sort.Sort(intSlice(v2))
  14307. for _, k2 := range v2 {
  14308. if cr != nil {
  14309. cr.sendContainerState(containerMapKey)
  14310. }
  14311. ee.EncodeInt(int64(int64(k2)))
  14312. if cr != nil {
  14313. cr.sendContainerState(containerMapValue)
  14314. }
  14315. ee.EncodeFloat64(v[int64(k2)])
  14316. }
  14317. } else {
  14318. for k2, v2 := range v {
  14319. if cr != nil {
  14320. cr.sendContainerState(containerMapKey)
  14321. }
  14322. ee.EncodeInt(int64(k2))
  14323. if cr != nil {
  14324. cr.sendContainerState(containerMapValue)
  14325. }
  14326. ee.EncodeFloat64(v2)
  14327. }
  14328. }
  14329. if cr != nil {
  14330. cr.sendContainerState(containerMapEnd)
  14331. }
  14332. }
  14333. func (f *encFnInfo) fastpathEncMapInt64BoolR(rv reflect.Value) {
  14334. fastpathTV.EncMapInt64BoolV(rv.Interface().(map[int64]bool), fastpathCheckNilFalse, f.e)
  14335. }
  14336. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, checkNil bool, e *Encoder) {
  14337. ee := e.e
  14338. cr := e.cr
  14339. if checkNil && v == nil {
  14340. ee.EncodeNil()
  14341. return
  14342. }
  14343. ee.EncodeMapStart(len(v))
  14344. if e.h.Canonical {
  14345. v2 := make([]int64, len(v))
  14346. var i int
  14347. for k, _ := range v {
  14348. v2[i] = int64(k)
  14349. i++
  14350. }
  14351. sort.Sort(intSlice(v2))
  14352. for _, k2 := range v2 {
  14353. if cr != nil {
  14354. cr.sendContainerState(containerMapKey)
  14355. }
  14356. ee.EncodeInt(int64(int64(k2)))
  14357. if cr != nil {
  14358. cr.sendContainerState(containerMapValue)
  14359. }
  14360. ee.EncodeBool(v[int64(k2)])
  14361. }
  14362. } else {
  14363. for k2, v2 := range v {
  14364. if cr != nil {
  14365. cr.sendContainerState(containerMapKey)
  14366. }
  14367. ee.EncodeInt(int64(k2))
  14368. if cr != nil {
  14369. cr.sendContainerState(containerMapValue)
  14370. }
  14371. ee.EncodeBool(v2)
  14372. }
  14373. }
  14374. if cr != nil {
  14375. cr.sendContainerState(containerMapEnd)
  14376. }
  14377. }
  14378. func (f *encFnInfo) fastpathEncMapBoolIntfR(rv reflect.Value) {
  14379. fastpathTV.EncMapBoolIntfV(rv.Interface().(map[bool]interface{}), fastpathCheckNilFalse, f.e)
  14380. }
  14381. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, checkNil bool, e *Encoder) {
  14382. ee := e.e
  14383. cr := e.cr
  14384. if checkNil && v == nil {
  14385. ee.EncodeNil()
  14386. return
  14387. }
  14388. ee.EncodeMapStart(len(v))
  14389. if e.h.Canonical {
  14390. v2 := make([]bool, len(v))
  14391. var i int
  14392. for k, _ := range v {
  14393. v2[i] = bool(k)
  14394. i++
  14395. }
  14396. sort.Sort(boolSlice(v2))
  14397. for _, k2 := range v2 {
  14398. if cr != nil {
  14399. cr.sendContainerState(containerMapKey)
  14400. }
  14401. ee.EncodeBool(bool(k2))
  14402. if cr != nil {
  14403. cr.sendContainerState(containerMapValue)
  14404. }
  14405. e.encode(v[bool(k2)])
  14406. }
  14407. } else {
  14408. for k2, v2 := range v {
  14409. if cr != nil {
  14410. cr.sendContainerState(containerMapKey)
  14411. }
  14412. ee.EncodeBool(k2)
  14413. if cr != nil {
  14414. cr.sendContainerState(containerMapValue)
  14415. }
  14416. e.encode(v2)
  14417. }
  14418. }
  14419. if cr != nil {
  14420. cr.sendContainerState(containerMapEnd)
  14421. }
  14422. }
  14423. func (f *encFnInfo) fastpathEncMapBoolStringR(rv reflect.Value) {
  14424. fastpathTV.EncMapBoolStringV(rv.Interface().(map[bool]string), fastpathCheckNilFalse, f.e)
  14425. }
  14426. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, checkNil bool, e *Encoder) {
  14427. ee := e.e
  14428. cr := e.cr
  14429. if checkNil && v == nil {
  14430. ee.EncodeNil()
  14431. return
  14432. }
  14433. ee.EncodeMapStart(len(v))
  14434. if e.h.Canonical {
  14435. v2 := make([]bool, len(v))
  14436. var i int
  14437. for k, _ := range v {
  14438. v2[i] = bool(k)
  14439. i++
  14440. }
  14441. sort.Sort(boolSlice(v2))
  14442. for _, k2 := range v2 {
  14443. if cr != nil {
  14444. cr.sendContainerState(containerMapKey)
  14445. }
  14446. ee.EncodeBool(bool(k2))
  14447. if cr != nil {
  14448. cr.sendContainerState(containerMapValue)
  14449. }
  14450. ee.EncodeString(c_UTF8, v[bool(k2)])
  14451. }
  14452. } else {
  14453. for k2, v2 := range v {
  14454. if cr != nil {
  14455. cr.sendContainerState(containerMapKey)
  14456. }
  14457. ee.EncodeBool(k2)
  14458. if cr != nil {
  14459. cr.sendContainerState(containerMapValue)
  14460. }
  14461. ee.EncodeString(c_UTF8, v2)
  14462. }
  14463. }
  14464. if cr != nil {
  14465. cr.sendContainerState(containerMapEnd)
  14466. }
  14467. }
  14468. func (f *encFnInfo) fastpathEncMapBoolUintR(rv reflect.Value) {
  14469. fastpathTV.EncMapBoolUintV(rv.Interface().(map[bool]uint), fastpathCheckNilFalse, f.e)
  14470. }
  14471. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, checkNil bool, e *Encoder) {
  14472. ee := e.e
  14473. cr := e.cr
  14474. if checkNil && v == nil {
  14475. ee.EncodeNil()
  14476. return
  14477. }
  14478. ee.EncodeMapStart(len(v))
  14479. if e.h.Canonical {
  14480. v2 := make([]bool, len(v))
  14481. var i int
  14482. for k, _ := range v {
  14483. v2[i] = bool(k)
  14484. i++
  14485. }
  14486. sort.Sort(boolSlice(v2))
  14487. for _, k2 := range v2 {
  14488. if cr != nil {
  14489. cr.sendContainerState(containerMapKey)
  14490. }
  14491. ee.EncodeBool(bool(k2))
  14492. if cr != nil {
  14493. cr.sendContainerState(containerMapValue)
  14494. }
  14495. ee.EncodeUint(uint64(v[bool(k2)]))
  14496. }
  14497. } else {
  14498. for k2, v2 := range v {
  14499. if cr != nil {
  14500. cr.sendContainerState(containerMapKey)
  14501. }
  14502. ee.EncodeBool(k2)
  14503. if cr != nil {
  14504. cr.sendContainerState(containerMapValue)
  14505. }
  14506. ee.EncodeUint(uint64(v2))
  14507. }
  14508. }
  14509. if cr != nil {
  14510. cr.sendContainerState(containerMapEnd)
  14511. }
  14512. }
  14513. func (f *encFnInfo) fastpathEncMapBoolUint8R(rv reflect.Value) {
  14514. fastpathTV.EncMapBoolUint8V(rv.Interface().(map[bool]uint8), fastpathCheckNilFalse, f.e)
  14515. }
  14516. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, checkNil bool, e *Encoder) {
  14517. ee := e.e
  14518. cr := e.cr
  14519. if checkNil && v == nil {
  14520. ee.EncodeNil()
  14521. return
  14522. }
  14523. ee.EncodeMapStart(len(v))
  14524. if e.h.Canonical {
  14525. v2 := make([]bool, len(v))
  14526. var i int
  14527. for k, _ := range v {
  14528. v2[i] = bool(k)
  14529. i++
  14530. }
  14531. sort.Sort(boolSlice(v2))
  14532. for _, k2 := range v2 {
  14533. if cr != nil {
  14534. cr.sendContainerState(containerMapKey)
  14535. }
  14536. ee.EncodeBool(bool(k2))
  14537. if cr != nil {
  14538. cr.sendContainerState(containerMapValue)
  14539. }
  14540. ee.EncodeUint(uint64(v[bool(k2)]))
  14541. }
  14542. } else {
  14543. for k2, v2 := range v {
  14544. if cr != nil {
  14545. cr.sendContainerState(containerMapKey)
  14546. }
  14547. ee.EncodeBool(k2)
  14548. if cr != nil {
  14549. cr.sendContainerState(containerMapValue)
  14550. }
  14551. ee.EncodeUint(uint64(v2))
  14552. }
  14553. }
  14554. if cr != nil {
  14555. cr.sendContainerState(containerMapEnd)
  14556. }
  14557. }
  14558. func (f *encFnInfo) fastpathEncMapBoolUint16R(rv reflect.Value) {
  14559. fastpathTV.EncMapBoolUint16V(rv.Interface().(map[bool]uint16), fastpathCheckNilFalse, f.e)
  14560. }
  14561. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, checkNil bool, e *Encoder) {
  14562. ee := e.e
  14563. cr := e.cr
  14564. if checkNil && v == nil {
  14565. ee.EncodeNil()
  14566. return
  14567. }
  14568. ee.EncodeMapStart(len(v))
  14569. if e.h.Canonical {
  14570. v2 := make([]bool, len(v))
  14571. var i int
  14572. for k, _ := range v {
  14573. v2[i] = bool(k)
  14574. i++
  14575. }
  14576. sort.Sort(boolSlice(v2))
  14577. for _, k2 := range v2 {
  14578. if cr != nil {
  14579. cr.sendContainerState(containerMapKey)
  14580. }
  14581. ee.EncodeBool(bool(k2))
  14582. if cr != nil {
  14583. cr.sendContainerState(containerMapValue)
  14584. }
  14585. ee.EncodeUint(uint64(v[bool(k2)]))
  14586. }
  14587. } else {
  14588. for k2, v2 := range v {
  14589. if cr != nil {
  14590. cr.sendContainerState(containerMapKey)
  14591. }
  14592. ee.EncodeBool(k2)
  14593. if cr != nil {
  14594. cr.sendContainerState(containerMapValue)
  14595. }
  14596. ee.EncodeUint(uint64(v2))
  14597. }
  14598. }
  14599. if cr != nil {
  14600. cr.sendContainerState(containerMapEnd)
  14601. }
  14602. }
  14603. func (f *encFnInfo) fastpathEncMapBoolUint32R(rv reflect.Value) {
  14604. fastpathTV.EncMapBoolUint32V(rv.Interface().(map[bool]uint32), fastpathCheckNilFalse, f.e)
  14605. }
  14606. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, checkNil bool, e *Encoder) {
  14607. ee := e.e
  14608. cr := e.cr
  14609. if checkNil && v == nil {
  14610. ee.EncodeNil()
  14611. return
  14612. }
  14613. ee.EncodeMapStart(len(v))
  14614. if e.h.Canonical {
  14615. v2 := make([]bool, len(v))
  14616. var i int
  14617. for k, _ := range v {
  14618. v2[i] = bool(k)
  14619. i++
  14620. }
  14621. sort.Sort(boolSlice(v2))
  14622. for _, k2 := range v2 {
  14623. if cr != nil {
  14624. cr.sendContainerState(containerMapKey)
  14625. }
  14626. ee.EncodeBool(bool(k2))
  14627. if cr != nil {
  14628. cr.sendContainerState(containerMapValue)
  14629. }
  14630. ee.EncodeUint(uint64(v[bool(k2)]))
  14631. }
  14632. } else {
  14633. for k2, v2 := range v {
  14634. if cr != nil {
  14635. cr.sendContainerState(containerMapKey)
  14636. }
  14637. ee.EncodeBool(k2)
  14638. if cr != nil {
  14639. cr.sendContainerState(containerMapValue)
  14640. }
  14641. ee.EncodeUint(uint64(v2))
  14642. }
  14643. }
  14644. if cr != nil {
  14645. cr.sendContainerState(containerMapEnd)
  14646. }
  14647. }
  14648. func (f *encFnInfo) fastpathEncMapBoolUint64R(rv reflect.Value) {
  14649. fastpathTV.EncMapBoolUint64V(rv.Interface().(map[bool]uint64), fastpathCheckNilFalse, f.e)
  14650. }
  14651. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, checkNil bool, e *Encoder) {
  14652. ee := e.e
  14653. cr := e.cr
  14654. if checkNil && v == nil {
  14655. ee.EncodeNil()
  14656. return
  14657. }
  14658. ee.EncodeMapStart(len(v))
  14659. if e.h.Canonical {
  14660. v2 := make([]bool, len(v))
  14661. var i int
  14662. for k, _ := range v {
  14663. v2[i] = bool(k)
  14664. i++
  14665. }
  14666. sort.Sort(boolSlice(v2))
  14667. for _, k2 := range v2 {
  14668. if cr != nil {
  14669. cr.sendContainerState(containerMapKey)
  14670. }
  14671. ee.EncodeBool(bool(k2))
  14672. if cr != nil {
  14673. cr.sendContainerState(containerMapValue)
  14674. }
  14675. ee.EncodeUint(uint64(v[bool(k2)]))
  14676. }
  14677. } else {
  14678. for k2, v2 := range v {
  14679. if cr != nil {
  14680. cr.sendContainerState(containerMapKey)
  14681. }
  14682. ee.EncodeBool(k2)
  14683. if cr != nil {
  14684. cr.sendContainerState(containerMapValue)
  14685. }
  14686. ee.EncodeUint(uint64(v2))
  14687. }
  14688. }
  14689. if cr != nil {
  14690. cr.sendContainerState(containerMapEnd)
  14691. }
  14692. }
  14693. func (f *encFnInfo) fastpathEncMapBoolUintptrR(rv reflect.Value) {
  14694. fastpathTV.EncMapBoolUintptrV(rv.Interface().(map[bool]uintptr), fastpathCheckNilFalse, f.e)
  14695. }
  14696. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, checkNil bool, e *Encoder) {
  14697. ee := e.e
  14698. cr := e.cr
  14699. if checkNil && v == nil {
  14700. ee.EncodeNil()
  14701. return
  14702. }
  14703. ee.EncodeMapStart(len(v))
  14704. if e.h.Canonical {
  14705. v2 := make([]bool, len(v))
  14706. var i int
  14707. for k, _ := range v {
  14708. v2[i] = bool(k)
  14709. i++
  14710. }
  14711. sort.Sort(boolSlice(v2))
  14712. for _, k2 := range v2 {
  14713. if cr != nil {
  14714. cr.sendContainerState(containerMapKey)
  14715. }
  14716. ee.EncodeBool(bool(k2))
  14717. if cr != nil {
  14718. cr.sendContainerState(containerMapValue)
  14719. }
  14720. e.encode(v[bool(k2)])
  14721. }
  14722. } else {
  14723. for k2, v2 := range v {
  14724. if cr != nil {
  14725. cr.sendContainerState(containerMapKey)
  14726. }
  14727. ee.EncodeBool(k2)
  14728. if cr != nil {
  14729. cr.sendContainerState(containerMapValue)
  14730. }
  14731. e.encode(v2)
  14732. }
  14733. }
  14734. if cr != nil {
  14735. cr.sendContainerState(containerMapEnd)
  14736. }
  14737. }
  14738. func (f *encFnInfo) fastpathEncMapBoolIntR(rv reflect.Value) {
  14739. fastpathTV.EncMapBoolIntV(rv.Interface().(map[bool]int), fastpathCheckNilFalse, f.e)
  14740. }
  14741. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, checkNil bool, e *Encoder) {
  14742. ee := e.e
  14743. cr := e.cr
  14744. if checkNil && v == nil {
  14745. ee.EncodeNil()
  14746. return
  14747. }
  14748. ee.EncodeMapStart(len(v))
  14749. if e.h.Canonical {
  14750. v2 := make([]bool, len(v))
  14751. var i int
  14752. for k, _ := range v {
  14753. v2[i] = bool(k)
  14754. i++
  14755. }
  14756. sort.Sort(boolSlice(v2))
  14757. for _, k2 := range v2 {
  14758. if cr != nil {
  14759. cr.sendContainerState(containerMapKey)
  14760. }
  14761. ee.EncodeBool(bool(k2))
  14762. if cr != nil {
  14763. cr.sendContainerState(containerMapValue)
  14764. }
  14765. ee.EncodeInt(int64(v[bool(k2)]))
  14766. }
  14767. } else {
  14768. for k2, v2 := range v {
  14769. if cr != nil {
  14770. cr.sendContainerState(containerMapKey)
  14771. }
  14772. ee.EncodeBool(k2)
  14773. if cr != nil {
  14774. cr.sendContainerState(containerMapValue)
  14775. }
  14776. ee.EncodeInt(int64(v2))
  14777. }
  14778. }
  14779. if cr != nil {
  14780. cr.sendContainerState(containerMapEnd)
  14781. }
  14782. }
  14783. func (f *encFnInfo) fastpathEncMapBoolInt8R(rv reflect.Value) {
  14784. fastpathTV.EncMapBoolInt8V(rv.Interface().(map[bool]int8), fastpathCheckNilFalse, f.e)
  14785. }
  14786. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, checkNil bool, e *Encoder) {
  14787. ee := e.e
  14788. cr := e.cr
  14789. if checkNil && v == nil {
  14790. ee.EncodeNil()
  14791. return
  14792. }
  14793. ee.EncodeMapStart(len(v))
  14794. if e.h.Canonical {
  14795. v2 := make([]bool, len(v))
  14796. var i int
  14797. for k, _ := range v {
  14798. v2[i] = bool(k)
  14799. i++
  14800. }
  14801. sort.Sort(boolSlice(v2))
  14802. for _, k2 := range v2 {
  14803. if cr != nil {
  14804. cr.sendContainerState(containerMapKey)
  14805. }
  14806. ee.EncodeBool(bool(k2))
  14807. if cr != nil {
  14808. cr.sendContainerState(containerMapValue)
  14809. }
  14810. ee.EncodeInt(int64(v[bool(k2)]))
  14811. }
  14812. } else {
  14813. for k2, v2 := range v {
  14814. if cr != nil {
  14815. cr.sendContainerState(containerMapKey)
  14816. }
  14817. ee.EncodeBool(k2)
  14818. if cr != nil {
  14819. cr.sendContainerState(containerMapValue)
  14820. }
  14821. ee.EncodeInt(int64(v2))
  14822. }
  14823. }
  14824. if cr != nil {
  14825. cr.sendContainerState(containerMapEnd)
  14826. }
  14827. }
  14828. func (f *encFnInfo) fastpathEncMapBoolInt16R(rv reflect.Value) {
  14829. fastpathTV.EncMapBoolInt16V(rv.Interface().(map[bool]int16), fastpathCheckNilFalse, f.e)
  14830. }
  14831. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, checkNil bool, e *Encoder) {
  14832. ee := e.e
  14833. cr := e.cr
  14834. if checkNil && v == nil {
  14835. ee.EncodeNil()
  14836. return
  14837. }
  14838. ee.EncodeMapStart(len(v))
  14839. if e.h.Canonical {
  14840. v2 := make([]bool, len(v))
  14841. var i int
  14842. for k, _ := range v {
  14843. v2[i] = bool(k)
  14844. i++
  14845. }
  14846. sort.Sort(boolSlice(v2))
  14847. for _, k2 := range v2 {
  14848. if cr != nil {
  14849. cr.sendContainerState(containerMapKey)
  14850. }
  14851. ee.EncodeBool(bool(k2))
  14852. if cr != nil {
  14853. cr.sendContainerState(containerMapValue)
  14854. }
  14855. ee.EncodeInt(int64(v[bool(k2)]))
  14856. }
  14857. } else {
  14858. for k2, v2 := range v {
  14859. if cr != nil {
  14860. cr.sendContainerState(containerMapKey)
  14861. }
  14862. ee.EncodeBool(k2)
  14863. if cr != nil {
  14864. cr.sendContainerState(containerMapValue)
  14865. }
  14866. ee.EncodeInt(int64(v2))
  14867. }
  14868. }
  14869. if cr != nil {
  14870. cr.sendContainerState(containerMapEnd)
  14871. }
  14872. }
  14873. func (f *encFnInfo) fastpathEncMapBoolInt32R(rv reflect.Value) {
  14874. fastpathTV.EncMapBoolInt32V(rv.Interface().(map[bool]int32), fastpathCheckNilFalse, f.e)
  14875. }
  14876. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, checkNil bool, e *Encoder) {
  14877. ee := e.e
  14878. cr := e.cr
  14879. if checkNil && v == nil {
  14880. ee.EncodeNil()
  14881. return
  14882. }
  14883. ee.EncodeMapStart(len(v))
  14884. if e.h.Canonical {
  14885. v2 := make([]bool, len(v))
  14886. var i int
  14887. for k, _ := range v {
  14888. v2[i] = bool(k)
  14889. i++
  14890. }
  14891. sort.Sort(boolSlice(v2))
  14892. for _, k2 := range v2 {
  14893. if cr != nil {
  14894. cr.sendContainerState(containerMapKey)
  14895. }
  14896. ee.EncodeBool(bool(k2))
  14897. if cr != nil {
  14898. cr.sendContainerState(containerMapValue)
  14899. }
  14900. ee.EncodeInt(int64(v[bool(k2)]))
  14901. }
  14902. } else {
  14903. for k2, v2 := range v {
  14904. if cr != nil {
  14905. cr.sendContainerState(containerMapKey)
  14906. }
  14907. ee.EncodeBool(k2)
  14908. if cr != nil {
  14909. cr.sendContainerState(containerMapValue)
  14910. }
  14911. ee.EncodeInt(int64(v2))
  14912. }
  14913. }
  14914. if cr != nil {
  14915. cr.sendContainerState(containerMapEnd)
  14916. }
  14917. }
  14918. func (f *encFnInfo) fastpathEncMapBoolInt64R(rv reflect.Value) {
  14919. fastpathTV.EncMapBoolInt64V(rv.Interface().(map[bool]int64), fastpathCheckNilFalse, f.e)
  14920. }
  14921. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, checkNil bool, e *Encoder) {
  14922. ee := e.e
  14923. cr := e.cr
  14924. if checkNil && v == nil {
  14925. ee.EncodeNil()
  14926. return
  14927. }
  14928. ee.EncodeMapStart(len(v))
  14929. if e.h.Canonical {
  14930. v2 := make([]bool, len(v))
  14931. var i int
  14932. for k, _ := range v {
  14933. v2[i] = bool(k)
  14934. i++
  14935. }
  14936. sort.Sort(boolSlice(v2))
  14937. for _, k2 := range v2 {
  14938. if cr != nil {
  14939. cr.sendContainerState(containerMapKey)
  14940. }
  14941. ee.EncodeBool(bool(k2))
  14942. if cr != nil {
  14943. cr.sendContainerState(containerMapValue)
  14944. }
  14945. ee.EncodeInt(int64(v[bool(k2)]))
  14946. }
  14947. } else {
  14948. for k2, v2 := range v {
  14949. if cr != nil {
  14950. cr.sendContainerState(containerMapKey)
  14951. }
  14952. ee.EncodeBool(k2)
  14953. if cr != nil {
  14954. cr.sendContainerState(containerMapValue)
  14955. }
  14956. ee.EncodeInt(int64(v2))
  14957. }
  14958. }
  14959. if cr != nil {
  14960. cr.sendContainerState(containerMapEnd)
  14961. }
  14962. }
  14963. func (f *encFnInfo) fastpathEncMapBoolFloat32R(rv reflect.Value) {
  14964. fastpathTV.EncMapBoolFloat32V(rv.Interface().(map[bool]float32), fastpathCheckNilFalse, f.e)
  14965. }
  14966. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, checkNil bool, e *Encoder) {
  14967. ee := e.e
  14968. cr := e.cr
  14969. if checkNil && v == nil {
  14970. ee.EncodeNil()
  14971. return
  14972. }
  14973. ee.EncodeMapStart(len(v))
  14974. if e.h.Canonical {
  14975. v2 := make([]bool, len(v))
  14976. var i int
  14977. for k, _ := range v {
  14978. v2[i] = bool(k)
  14979. i++
  14980. }
  14981. sort.Sort(boolSlice(v2))
  14982. for _, k2 := range v2 {
  14983. if cr != nil {
  14984. cr.sendContainerState(containerMapKey)
  14985. }
  14986. ee.EncodeBool(bool(k2))
  14987. if cr != nil {
  14988. cr.sendContainerState(containerMapValue)
  14989. }
  14990. ee.EncodeFloat32(v[bool(k2)])
  14991. }
  14992. } else {
  14993. for k2, v2 := range v {
  14994. if cr != nil {
  14995. cr.sendContainerState(containerMapKey)
  14996. }
  14997. ee.EncodeBool(k2)
  14998. if cr != nil {
  14999. cr.sendContainerState(containerMapValue)
  15000. }
  15001. ee.EncodeFloat32(v2)
  15002. }
  15003. }
  15004. if cr != nil {
  15005. cr.sendContainerState(containerMapEnd)
  15006. }
  15007. }
  15008. func (f *encFnInfo) fastpathEncMapBoolFloat64R(rv reflect.Value) {
  15009. fastpathTV.EncMapBoolFloat64V(rv.Interface().(map[bool]float64), fastpathCheckNilFalse, f.e)
  15010. }
  15011. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, checkNil bool, e *Encoder) {
  15012. ee := e.e
  15013. cr := e.cr
  15014. if checkNil && v == nil {
  15015. ee.EncodeNil()
  15016. return
  15017. }
  15018. ee.EncodeMapStart(len(v))
  15019. if e.h.Canonical {
  15020. v2 := make([]bool, len(v))
  15021. var i int
  15022. for k, _ := range v {
  15023. v2[i] = bool(k)
  15024. i++
  15025. }
  15026. sort.Sort(boolSlice(v2))
  15027. for _, k2 := range v2 {
  15028. if cr != nil {
  15029. cr.sendContainerState(containerMapKey)
  15030. }
  15031. ee.EncodeBool(bool(k2))
  15032. if cr != nil {
  15033. cr.sendContainerState(containerMapValue)
  15034. }
  15035. ee.EncodeFloat64(v[bool(k2)])
  15036. }
  15037. } else {
  15038. for k2, v2 := range v {
  15039. if cr != nil {
  15040. cr.sendContainerState(containerMapKey)
  15041. }
  15042. ee.EncodeBool(k2)
  15043. if cr != nil {
  15044. cr.sendContainerState(containerMapValue)
  15045. }
  15046. ee.EncodeFloat64(v2)
  15047. }
  15048. }
  15049. if cr != nil {
  15050. cr.sendContainerState(containerMapEnd)
  15051. }
  15052. }
  15053. func (f *encFnInfo) fastpathEncMapBoolBoolR(rv reflect.Value) {
  15054. fastpathTV.EncMapBoolBoolV(rv.Interface().(map[bool]bool), fastpathCheckNilFalse, f.e)
  15055. }
  15056. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, checkNil bool, e *Encoder) {
  15057. ee := e.e
  15058. cr := e.cr
  15059. if checkNil && v == nil {
  15060. ee.EncodeNil()
  15061. return
  15062. }
  15063. ee.EncodeMapStart(len(v))
  15064. if e.h.Canonical {
  15065. v2 := make([]bool, len(v))
  15066. var i int
  15067. for k, _ := range v {
  15068. v2[i] = bool(k)
  15069. i++
  15070. }
  15071. sort.Sort(boolSlice(v2))
  15072. for _, k2 := range v2 {
  15073. if cr != nil {
  15074. cr.sendContainerState(containerMapKey)
  15075. }
  15076. ee.EncodeBool(bool(k2))
  15077. if cr != nil {
  15078. cr.sendContainerState(containerMapValue)
  15079. }
  15080. ee.EncodeBool(v[bool(k2)])
  15081. }
  15082. } else {
  15083. for k2, v2 := range v {
  15084. if cr != nil {
  15085. cr.sendContainerState(containerMapKey)
  15086. }
  15087. ee.EncodeBool(k2)
  15088. if cr != nil {
  15089. cr.sendContainerState(containerMapValue)
  15090. }
  15091. ee.EncodeBool(v2)
  15092. }
  15093. }
  15094. if cr != nil {
  15095. cr.sendContainerState(containerMapEnd)
  15096. }
  15097. }
  15098. // -- decode
  15099. // -- -- fast path type switch
  15100. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  15101. if !fastpathEnabled {
  15102. return false
  15103. }
  15104. switch v := iv.(type) {
  15105. case []interface{}:
  15106. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, d)
  15107. case *[]interface{}:
  15108. v2, changed2 := fastpathTV.DecSliceIntfV(*v, fastpathCheckNilFalse, true, d)
  15109. if changed2 {
  15110. *v = v2
  15111. }
  15112. case map[interface{}]interface{}:
  15113. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, d)
  15114. case *map[interface{}]interface{}:
  15115. v2, changed2 := fastpathTV.DecMapIntfIntfV(*v, fastpathCheckNilFalse, true, d)
  15116. if changed2 {
  15117. *v = v2
  15118. }
  15119. case map[interface{}]string:
  15120. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, d)
  15121. case *map[interface{}]string:
  15122. v2, changed2 := fastpathTV.DecMapIntfStringV(*v, fastpathCheckNilFalse, true, d)
  15123. if changed2 {
  15124. *v = v2
  15125. }
  15126. case map[interface{}]uint:
  15127. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, d)
  15128. case *map[interface{}]uint:
  15129. v2, changed2 := fastpathTV.DecMapIntfUintV(*v, fastpathCheckNilFalse, true, d)
  15130. if changed2 {
  15131. *v = v2
  15132. }
  15133. case map[interface{}]uint8:
  15134. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, d)
  15135. case *map[interface{}]uint8:
  15136. v2, changed2 := fastpathTV.DecMapIntfUint8V(*v, fastpathCheckNilFalse, true, d)
  15137. if changed2 {
  15138. *v = v2
  15139. }
  15140. case map[interface{}]uint16:
  15141. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, d)
  15142. case *map[interface{}]uint16:
  15143. v2, changed2 := fastpathTV.DecMapIntfUint16V(*v, fastpathCheckNilFalse, true, d)
  15144. if changed2 {
  15145. *v = v2
  15146. }
  15147. case map[interface{}]uint32:
  15148. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, d)
  15149. case *map[interface{}]uint32:
  15150. v2, changed2 := fastpathTV.DecMapIntfUint32V(*v, fastpathCheckNilFalse, true, d)
  15151. if changed2 {
  15152. *v = v2
  15153. }
  15154. case map[interface{}]uint64:
  15155. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, d)
  15156. case *map[interface{}]uint64:
  15157. v2, changed2 := fastpathTV.DecMapIntfUint64V(*v, fastpathCheckNilFalse, true, d)
  15158. if changed2 {
  15159. *v = v2
  15160. }
  15161. case map[interface{}]uintptr:
  15162. fastpathTV.DecMapIntfUintptrV(v, fastpathCheckNilFalse, false, d)
  15163. case *map[interface{}]uintptr:
  15164. v2, changed2 := fastpathTV.DecMapIntfUintptrV(*v, fastpathCheckNilFalse, true, d)
  15165. if changed2 {
  15166. *v = v2
  15167. }
  15168. case map[interface{}]int:
  15169. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, d)
  15170. case *map[interface{}]int:
  15171. v2, changed2 := fastpathTV.DecMapIntfIntV(*v, fastpathCheckNilFalse, true, d)
  15172. if changed2 {
  15173. *v = v2
  15174. }
  15175. case map[interface{}]int8:
  15176. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, d)
  15177. case *map[interface{}]int8:
  15178. v2, changed2 := fastpathTV.DecMapIntfInt8V(*v, fastpathCheckNilFalse, true, d)
  15179. if changed2 {
  15180. *v = v2
  15181. }
  15182. case map[interface{}]int16:
  15183. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, d)
  15184. case *map[interface{}]int16:
  15185. v2, changed2 := fastpathTV.DecMapIntfInt16V(*v, fastpathCheckNilFalse, true, d)
  15186. if changed2 {
  15187. *v = v2
  15188. }
  15189. case map[interface{}]int32:
  15190. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, d)
  15191. case *map[interface{}]int32:
  15192. v2, changed2 := fastpathTV.DecMapIntfInt32V(*v, fastpathCheckNilFalse, true, d)
  15193. if changed2 {
  15194. *v = v2
  15195. }
  15196. case map[interface{}]int64:
  15197. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, d)
  15198. case *map[interface{}]int64:
  15199. v2, changed2 := fastpathTV.DecMapIntfInt64V(*v, fastpathCheckNilFalse, true, d)
  15200. if changed2 {
  15201. *v = v2
  15202. }
  15203. case map[interface{}]float32:
  15204. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, d)
  15205. case *map[interface{}]float32:
  15206. v2, changed2 := fastpathTV.DecMapIntfFloat32V(*v, fastpathCheckNilFalse, true, d)
  15207. if changed2 {
  15208. *v = v2
  15209. }
  15210. case map[interface{}]float64:
  15211. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, d)
  15212. case *map[interface{}]float64:
  15213. v2, changed2 := fastpathTV.DecMapIntfFloat64V(*v, fastpathCheckNilFalse, true, d)
  15214. if changed2 {
  15215. *v = v2
  15216. }
  15217. case map[interface{}]bool:
  15218. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, d)
  15219. case *map[interface{}]bool:
  15220. v2, changed2 := fastpathTV.DecMapIntfBoolV(*v, fastpathCheckNilFalse, true, d)
  15221. if changed2 {
  15222. *v = v2
  15223. }
  15224. case []string:
  15225. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, d)
  15226. case *[]string:
  15227. v2, changed2 := fastpathTV.DecSliceStringV(*v, fastpathCheckNilFalse, true, d)
  15228. if changed2 {
  15229. *v = v2
  15230. }
  15231. case map[string]interface{}:
  15232. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, d)
  15233. case *map[string]interface{}:
  15234. v2, changed2 := fastpathTV.DecMapStringIntfV(*v, fastpathCheckNilFalse, true, d)
  15235. if changed2 {
  15236. *v = v2
  15237. }
  15238. case map[string]string:
  15239. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, d)
  15240. case *map[string]string:
  15241. v2, changed2 := fastpathTV.DecMapStringStringV(*v, fastpathCheckNilFalse, true, d)
  15242. if changed2 {
  15243. *v = v2
  15244. }
  15245. case map[string]uint:
  15246. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, d)
  15247. case *map[string]uint:
  15248. v2, changed2 := fastpathTV.DecMapStringUintV(*v, fastpathCheckNilFalse, true, d)
  15249. if changed2 {
  15250. *v = v2
  15251. }
  15252. case map[string]uint8:
  15253. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, d)
  15254. case *map[string]uint8:
  15255. v2, changed2 := fastpathTV.DecMapStringUint8V(*v, fastpathCheckNilFalse, true, d)
  15256. if changed2 {
  15257. *v = v2
  15258. }
  15259. case map[string]uint16:
  15260. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, d)
  15261. case *map[string]uint16:
  15262. v2, changed2 := fastpathTV.DecMapStringUint16V(*v, fastpathCheckNilFalse, true, d)
  15263. if changed2 {
  15264. *v = v2
  15265. }
  15266. case map[string]uint32:
  15267. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, d)
  15268. case *map[string]uint32:
  15269. v2, changed2 := fastpathTV.DecMapStringUint32V(*v, fastpathCheckNilFalse, true, d)
  15270. if changed2 {
  15271. *v = v2
  15272. }
  15273. case map[string]uint64:
  15274. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, d)
  15275. case *map[string]uint64:
  15276. v2, changed2 := fastpathTV.DecMapStringUint64V(*v, fastpathCheckNilFalse, true, d)
  15277. if changed2 {
  15278. *v = v2
  15279. }
  15280. case map[string]uintptr:
  15281. fastpathTV.DecMapStringUintptrV(v, fastpathCheckNilFalse, false, d)
  15282. case *map[string]uintptr:
  15283. v2, changed2 := fastpathTV.DecMapStringUintptrV(*v, fastpathCheckNilFalse, true, d)
  15284. if changed2 {
  15285. *v = v2
  15286. }
  15287. case map[string]int:
  15288. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, d)
  15289. case *map[string]int:
  15290. v2, changed2 := fastpathTV.DecMapStringIntV(*v, fastpathCheckNilFalse, true, d)
  15291. if changed2 {
  15292. *v = v2
  15293. }
  15294. case map[string]int8:
  15295. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, d)
  15296. case *map[string]int8:
  15297. v2, changed2 := fastpathTV.DecMapStringInt8V(*v, fastpathCheckNilFalse, true, d)
  15298. if changed2 {
  15299. *v = v2
  15300. }
  15301. case map[string]int16:
  15302. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, d)
  15303. case *map[string]int16:
  15304. v2, changed2 := fastpathTV.DecMapStringInt16V(*v, fastpathCheckNilFalse, true, d)
  15305. if changed2 {
  15306. *v = v2
  15307. }
  15308. case map[string]int32:
  15309. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, d)
  15310. case *map[string]int32:
  15311. v2, changed2 := fastpathTV.DecMapStringInt32V(*v, fastpathCheckNilFalse, true, d)
  15312. if changed2 {
  15313. *v = v2
  15314. }
  15315. case map[string]int64:
  15316. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, d)
  15317. case *map[string]int64:
  15318. v2, changed2 := fastpathTV.DecMapStringInt64V(*v, fastpathCheckNilFalse, true, d)
  15319. if changed2 {
  15320. *v = v2
  15321. }
  15322. case map[string]float32:
  15323. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, d)
  15324. case *map[string]float32:
  15325. v2, changed2 := fastpathTV.DecMapStringFloat32V(*v, fastpathCheckNilFalse, true, d)
  15326. if changed2 {
  15327. *v = v2
  15328. }
  15329. case map[string]float64:
  15330. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, d)
  15331. case *map[string]float64:
  15332. v2, changed2 := fastpathTV.DecMapStringFloat64V(*v, fastpathCheckNilFalse, true, d)
  15333. if changed2 {
  15334. *v = v2
  15335. }
  15336. case map[string]bool:
  15337. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, d)
  15338. case *map[string]bool:
  15339. v2, changed2 := fastpathTV.DecMapStringBoolV(*v, fastpathCheckNilFalse, true, d)
  15340. if changed2 {
  15341. *v = v2
  15342. }
  15343. case []float32:
  15344. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, d)
  15345. case *[]float32:
  15346. v2, changed2 := fastpathTV.DecSliceFloat32V(*v, fastpathCheckNilFalse, true, d)
  15347. if changed2 {
  15348. *v = v2
  15349. }
  15350. case map[float32]interface{}:
  15351. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, d)
  15352. case *map[float32]interface{}:
  15353. v2, changed2 := fastpathTV.DecMapFloat32IntfV(*v, fastpathCheckNilFalse, true, d)
  15354. if changed2 {
  15355. *v = v2
  15356. }
  15357. case map[float32]string:
  15358. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, d)
  15359. case *map[float32]string:
  15360. v2, changed2 := fastpathTV.DecMapFloat32StringV(*v, fastpathCheckNilFalse, true, d)
  15361. if changed2 {
  15362. *v = v2
  15363. }
  15364. case map[float32]uint:
  15365. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, d)
  15366. case *map[float32]uint:
  15367. v2, changed2 := fastpathTV.DecMapFloat32UintV(*v, fastpathCheckNilFalse, true, d)
  15368. if changed2 {
  15369. *v = v2
  15370. }
  15371. case map[float32]uint8:
  15372. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, d)
  15373. case *map[float32]uint8:
  15374. v2, changed2 := fastpathTV.DecMapFloat32Uint8V(*v, fastpathCheckNilFalse, true, d)
  15375. if changed2 {
  15376. *v = v2
  15377. }
  15378. case map[float32]uint16:
  15379. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, d)
  15380. case *map[float32]uint16:
  15381. v2, changed2 := fastpathTV.DecMapFloat32Uint16V(*v, fastpathCheckNilFalse, true, d)
  15382. if changed2 {
  15383. *v = v2
  15384. }
  15385. case map[float32]uint32:
  15386. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, d)
  15387. case *map[float32]uint32:
  15388. v2, changed2 := fastpathTV.DecMapFloat32Uint32V(*v, fastpathCheckNilFalse, true, d)
  15389. if changed2 {
  15390. *v = v2
  15391. }
  15392. case map[float32]uint64:
  15393. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, d)
  15394. case *map[float32]uint64:
  15395. v2, changed2 := fastpathTV.DecMapFloat32Uint64V(*v, fastpathCheckNilFalse, true, d)
  15396. if changed2 {
  15397. *v = v2
  15398. }
  15399. case map[float32]uintptr:
  15400. fastpathTV.DecMapFloat32UintptrV(v, fastpathCheckNilFalse, false, d)
  15401. case *map[float32]uintptr:
  15402. v2, changed2 := fastpathTV.DecMapFloat32UintptrV(*v, fastpathCheckNilFalse, true, d)
  15403. if changed2 {
  15404. *v = v2
  15405. }
  15406. case map[float32]int:
  15407. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, d)
  15408. case *map[float32]int:
  15409. v2, changed2 := fastpathTV.DecMapFloat32IntV(*v, fastpathCheckNilFalse, true, d)
  15410. if changed2 {
  15411. *v = v2
  15412. }
  15413. case map[float32]int8:
  15414. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, d)
  15415. case *map[float32]int8:
  15416. v2, changed2 := fastpathTV.DecMapFloat32Int8V(*v, fastpathCheckNilFalse, true, d)
  15417. if changed2 {
  15418. *v = v2
  15419. }
  15420. case map[float32]int16:
  15421. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, d)
  15422. case *map[float32]int16:
  15423. v2, changed2 := fastpathTV.DecMapFloat32Int16V(*v, fastpathCheckNilFalse, true, d)
  15424. if changed2 {
  15425. *v = v2
  15426. }
  15427. case map[float32]int32:
  15428. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, d)
  15429. case *map[float32]int32:
  15430. v2, changed2 := fastpathTV.DecMapFloat32Int32V(*v, fastpathCheckNilFalse, true, d)
  15431. if changed2 {
  15432. *v = v2
  15433. }
  15434. case map[float32]int64:
  15435. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, d)
  15436. case *map[float32]int64:
  15437. v2, changed2 := fastpathTV.DecMapFloat32Int64V(*v, fastpathCheckNilFalse, true, d)
  15438. if changed2 {
  15439. *v = v2
  15440. }
  15441. case map[float32]float32:
  15442. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, d)
  15443. case *map[float32]float32:
  15444. v2, changed2 := fastpathTV.DecMapFloat32Float32V(*v, fastpathCheckNilFalse, true, d)
  15445. if changed2 {
  15446. *v = v2
  15447. }
  15448. case map[float32]float64:
  15449. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, d)
  15450. case *map[float32]float64:
  15451. v2, changed2 := fastpathTV.DecMapFloat32Float64V(*v, fastpathCheckNilFalse, true, d)
  15452. if changed2 {
  15453. *v = v2
  15454. }
  15455. case map[float32]bool:
  15456. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, d)
  15457. case *map[float32]bool:
  15458. v2, changed2 := fastpathTV.DecMapFloat32BoolV(*v, fastpathCheckNilFalse, true, d)
  15459. if changed2 {
  15460. *v = v2
  15461. }
  15462. case []float64:
  15463. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, d)
  15464. case *[]float64:
  15465. v2, changed2 := fastpathTV.DecSliceFloat64V(*v, fastpathCheckNilFalse, true, d)
  15466. if changed2 {
  15467. *v = v2
  15468. }
  15469. case map[float64]interface{}:
  15470. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, d)
  15471. case *map[float64]interface{}:
  15472. v2, changed2 := fastpathTV.DecMapFloat64IntfV(*v, fastpathCheckNilFalse, true, d)
  15473. if changed2 {
  15474. *v = v2
  15475. }
  15476. case map[float64]string:
  15477. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, d)
  15478. case *map[float64]string:
  15479. v2, changed2 := fastpathTV.DecMapFloat64StringV(*v, fastpathCheckNilFalse, true, d)
  15480. if changed2 {
  15481. *v = v2
  15482. }
  15483. case map[float64]uint:
  15484. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, d)
  15485. case *map[float64]uint:
  15486. v2, changed2 := fastpathTV.DecMapFloat64UintV(*v, fastpathCheckNilFalse, true, d)
  15487. if changed2 {
  15488. *v = v2
  15489. }
  15490. case map[float64]uint8:
  15491. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, d)
  15492. case *map[float64]uint8:
  15493. v2, changed2 := fastpathTV.DecMapFloat64Uint8V(*v, fastpathCheckNilFalse, true, d)
  15494. if changed2 {
  15495. *v = v2
  15496. }
  15497. case map[float64]uint16:
  15498. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, d)
  15499. case *map[float64]uint16:
  15500. v2, changed2 := fastpathTV.DecMapFloat64Uint16V(*v, fastpathCheckNilFalse, true, d)
  15501. if changed2 {
  15502. *v = v2
  15503. }
  15504. case map[float64]uint32:
  15505. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, d)
  15506. case *map[float64]uint32:
  15507. v2, changed2 := fastpathTV.DecMapFloat64Uint32V(*v, fastpathCheckNilFalse, true, d)
  15508. if changed2 {
  15509. *v = v2
  15510. }
  15511. case map[float64]uint64:
  15512. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, d)
  15513. case *map[float64]uint64:
  15514. v2, changed2 := fastpathTV.DecMapFloat64Uint64V(*v, fastpathCheckNilFalse, true, d)
  15515. if changed2 {
  15516. *v = v2
  15517. }
  15518. case map[float64]uintptr:
  15519. fastpathTV.DecMapFloat64UintptrV(v, fastpathCheckNilFalse, false, d)
  15520. case *map[float64]uintptr:
  15521. v2, changed2 := fastpathTV.DecMapFloat64UintptrV(*v, fastpathCheckNilFalse, true, d)
  15522. if changed2 {
  15523. *v = v2
  15524. }
  15525. case map[float64]int:
  15526. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, d)
  15527. case *map[float64]int:
  15528. v2, changed2 := fastpathTV.DecMapFloat64IntV(*v, fastpathCheckNilFalse, true, d)
  15529. if changed2 {
  15530. *v = v2
  15531. }
  15532. case map[float64]int8:
  15533. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, d)
  15534. case *map[float64]int8:
  15535. v2, changed2 := fastpathTV.DecMapFloat64Int8V(*v, fastpathCheckNilFalse, true, d)
  15536. if changed2 {
  15537. *v = v2
  15538. }
  15539. case map[float64]int16:
  15540. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, d)
  15541. case *map[float64]int16:
  15542. v2, changed2 := fastpathTV.DecMapFloat64Int16V(*v, fastpathCheckNilFalse, true, d)
  15543. if changed2 {
  15544. *v = v2
  15545. }
  15546. case map[float64]int32:
  15547. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, d)
  15548. case *map[float64]int32:
  15549. v2, changed2 := fastpathTV.DecMapFloat64Int32V(*v, fastpathCheckNilFalse, true, d)
  15550. if changed2 {
  15551. *v = v2
  15552. }
  15553. case map[float64]int64:
  15554. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, d)
  15555. case *map[float64]int64:
  15556. v2, changed2 := fastpathTV.DecMapFloat64Int64V(*v, fastpathCheckNilFalse, true, d)
  15557. if changed2 {
  15558. *v = v2
  15559. }
  15560. case map[float64]float32:
  15561. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, d)
  15562. case *map[float64]float32:
  15563. v2, changed2 := fastpathTV.DecMapFloat64Float32V(*v, fastpathCheckNilFalse, true, d)
  15564. if changed2 {
  15565. *v = v2
  15566. }
  15567. case map[float64]float64:
  15568. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, d)
  15569. case *map[float64]float64:
  15570. v2, changed2 := fastpathTV.DecMapFloat64Float64V(*v, fastpathCheckNilFalse, true, d)
  15571. if changed2 {
  15572. *v = v2
  15573. }
  15574. case map[float64]bool:
  15575. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, d)
  15576. case *map[float64]bool:
  15577. v2, changed2 := fastpathTV.DecMapFloat64BoolV(*v, fastpathCheckNilFalse, true, d)
  15578. if changed2 {
  15579. *v = v2
  15580. }
  15581. case []uint:
  15582. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, d)
  15583. case *[]uint:
  15584. v2, changed2 := fastpathTV.DecSliceUintV(*v, fastpathCheckNilFalse, true, d)
  15585. if changed2 {
  15586. *v = v2
  15587. }
  15588. case map[uint]interface{}:
  15589. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, d)
  15590. case *map[uint]interface{}:
  15591. v2, changed2 := fastpathTV.DecMapUintIntfV(*v, fastpathCheckNilFalse, true, d)
  15592. if changed2 {
  15593. *v = v2
  15594. }
  15595. case map[uint]string:
  15596. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, d)
  15597. case *map[uint]string:
  15598. v2, changed2 := fastpathTV.DecMapUintStringV(*v, fastpathCheckNilFalse, true, d)
  15599. if changed2 {
  15600. *v = v2
  15601. }
  15602. case map[uint]uint:
  15603. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, d)
  15604. case *map[uint]uint:
  15605. v2, changed2 := fastpathTV.DecMapUintUintV(*v, fastpathCheckNilFalse, true, d)
  15606. if changed2 {
  15607. *v = v2
  15608. }
  15609. case map[uint]uint8:
  15610. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, d)
  15611. case *map[uint]uint8:
  15612. v2, changed2 := fastpathTV.DecMapUintUint8V(*v, fastpathCheckNilFalse, true, d)
  15613. if changed2 {
  15614. *v = v2
  15615. }
  15616. case map[uint]uint16:
  15617. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, d)
  15618. case *map[uint]uint16:
  15619. v2, changed2 := fastpathTV.DecMapUintUint16V(*v, fastpathCheckNilFalse, true, d)
  15620. if changed2 {
  15621. *v = v2
  15622. }
  15623. case map[uint]uint32:
  15624. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, d)
  15625. case *map[uint]uint32:
  15626. v2, changed2 := fastpathTV.DecMapUintUint32V(*v, fastpathCheckNilFalse, true, d)
  15627. if changed2 {
  15628. *v = v2
  15629. }
  15630. case map[uint]uint64:
  15631. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, d)
  15632. case *map[uint]uint64:
  15633. v2, changed2 := fastpathTV.DecMapUintUint64V(*v, fastpathCheckNilFalse, true, d)
  15634. if changed2 {
  15635. *v = v2
  15636. }
  15637. case map[uint]uintptr:
  15638. fastpathTV.DecMapUintUintptrV(v, fastpathCheckNilFalse, false, d)
  15639. case *map[uint]uintptr:
  15640. v2, changed2 := fastpathTV.DecMapUintUintptrV(*v, fastpathCheckNilFalse, true, d)
  15641. if changed2 {
  15642. *v = v2
  15643. }
  15644. case map[uint]int:
  15645. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, d)
  15646. case *map[uint]int:
  15647. v2, changed2 := fastpathTV.DecMapUintIntV(*v, fastpathCheckNilFalse, true, d)
  15648. if changed2 {
  15649. *v = v2
  15650. }
  15651. case map[uint]int8:
  15652. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, d)
  15653. case *map[uint]int8:
  15654. v2, changed2 := fastpathTV.DecMapUintInt8V(*v, fastpathCheckNilFalse, true, d)
  15655. if changed2 {
  15656. *v = v2
  15657. }
  15658. case map[uint]int16:
  15659. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, d)
  15660. case *map[uint]int16:
  15661. v2, changed2 := fastpathTV.DecMapUintInt16V(*v, fastpathCheckNilFalse, true, d)
  15662. if changed2 {
  15663. *v = v2
  15664. }
  15665. case map[uint]int32:
  15666. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, d)
  15667. case *map[uint]int32:
  15668. v2, changed2 := fastpathTV.DecMapUintInt32V(*v, fastpathCheckNilFalse, true, d)
  15669. if changed2 {
  15670. *v = v2
  15671. }
  15672. case map[uint]int64:
  15673. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, d)
  15674. case *map[uint]int64:
  15675. v2, changed2 := fastpathTV.DecMapUintInt64V(*v, fastpathCheckNilFalse, true, d)
  15676. if changed2 {
  15677. *v = v2
  15678. }
  15679. case map[uint]float32:
  15680. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, d)
  15681. case *map[uint]float32:
  15682. v2, changed2 := fastpathTV.DecMapUintFloat32V(*v, fastpathCheckNilFalse, true, d)
  15683. if changed2 {
  15684. *v = v2
  15685. }
  15686. case map[uint]float64:
  15687. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, d)
  15688. case *map[uint]float64:
  15689. v2, changed2 := fastpathTV.DecMapUintFloat64V(*v, fastpathCheckNilFalse, true, d)
  15690. if changed2 {
  15691. *v = v2
  15692. }
  15693. case map[uint]bool:
  15694. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, d)
  15695. case *map[uint]bool:
  15696. v2, changed2 := fastpathTV.DecMapUintBoolV(*v, fastpathCheckNilFalse, true, d)
  15697. if changed2 {
  15698. *v = v2
  15699. }
  15700. case map[uint8]interface{}:
  15701. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, d)
  15702. case *map[uint8]interface{}:
  15703. v2, changed2 := fastpathTV.DecMapUint8IntfV(*v, fastpathCheckNilFalse, true, d)
  15704. if changed2 {
  15705. *v = v2
  15706. }
  15707. case map[uint8]string:
  15708. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, d)
  15709. case *map[uint8]string:
  15710. v2, changed2 := fastpathTV.DecMapUint8StringV(*v, fastpathCheckNilFalse, true, d)
  15711. if changed2 {
  15712. *v = v2
  15713. }
  15714. case map[uint8]uint:
  15715. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, d)
  15716. case *map[uint8]uint:
  15717. v2, changed2 := fastpathTV.DecMapUint8UintV(*v, fastpathCheckNilFalse, true, d)
  15718. if changed2 {
  15719. *v = v2
  15720. }
  15721. case map[uint8]uint8:
  15722. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, d)
  15723. case *map[uint8]uint8:
  15724. v2, changed2 := fastpathTV.DecMapUint8Uint8V(*v, fastpathCheckNilFalse, true, d)
  15725. if changed2 {
  15726. *v = v2
  15727. }
  15728. case map[uint8]uint16:
  15729. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, d)
  15730. case *map[uint8]uint16:
  15731. v2, changed2 := fastpathTV.DecMapUint8Uint16V(*v, fastpathCheckNilFalse, true, d)
  15732. if changed2 {
  15733. *v = v2
  15734. }
  15735. case map[uint8]uint32:
  15736. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, d)
  15737. case *map[uint8]uint32:
  15738. v2, changed2 := fastpathTV.DecMapUint8Uint32V(*v, fastpathCheckNilFalse, true, d)
  15739. if changed2 {
  15740. *v = v2
  15741. }
  15742. case map[uint8]uint64:
  15743. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, d)
  15744. case *map[uint8]uint64:
  15745. v2, changed2 := fastpathTV.DecMapUint8Uint64V(*v, fastpathCheckNilFalse, true, d)
  15746. if changed2 {
  15747. *v = v2
  15748. }
  15749. case map[uint8]uintptr:
  15750. fastpathTV.DecMapUint8UintptrV(v, fastpathCheckNilFalse, false, d)
  15751. case *map[uint8]uintptr:
  15752. v2, changed2 := fastpathTV.DecMapUint8UintptrV(*v, fastpathCheckNilFalse, true, d)
  15753. if changed2 {
  15754. *v = v2
  15755. }
  15756. case map[uint8]int:
  15757. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, d)
  15758. case *map[uint8]int:
  15759. v2, changed2 := fastpathTV.DecMapUint8IntV(*v, fastpathCheckNilFalse, true, d)
  15760. if changed2 {
  15761. *v = v2
  15762. }
  15763. case map[uint8]int8:
  15764. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, d)
  15765. case *map[uint8]int8:
  15766. v2, changed2 := fastpathTV.DecMapUint8Int8V(*v, fastpathCheckNilFalse, true, d)
  15767. if changed2 {
  15768. *v = v2
  15769. }
  15770. case map[uint8]int16:
  15771. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, d)
  15772. case *map[uint8]int16:
  15773. v2, changed2 := fastpathTV.DecMapUint8Int16V(*v, fastpathCheckNilFalse, true, d)
  15774. if changed2 {
  15775. *v = v2
  15776. }
  15777. case map[uint8]int32:
  15778. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, d)
  15779. case *map[uint8]int32:
  15780. v2, changed2 := fastpathTV.DecMapUint8Int32V(*v, fastpathCheckNilFalse, true, d)
  15781. if changed2 {
  15782. *v = v2
  15783. }
  15784. case map[uint8]int64:
  15785. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, d)
  15786. case *map[uint8]int64:
  15787. v2, changed2 := fastpathTV.DecMapUint8Int64V(*v, fastpathCheckNilFalse, true, d)
  15788. if changed2 {
  15789. *v = v2
  15790. }
  15791. case map[uint8]float32:
  15792. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, d)
  15793. case *map[uint8]float32:
  15794. v2, changed2 := fastpathTV.DecMapUint8Float32V(*v, fastpathCheckNilFalse, true, d)
  15795. if changed2 {
  15796. *v = v2
  15797. }
  15798. case map[uint8]float64:
  15799. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, d)
  15800. case *map[uint8]float64:
  15801. v2, changed2 := fastpathTV.DecMapUint8Float64V(*v, fastpathCheckNilFalse, true, d)
  15802. if changed2 {
  15803. *v = v2
  15804. }
  15805. case map[uint8]bool:
  15806. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, d)
  15807. case *map[uint8]bool:
  15808. v2, changed2 := fastpathTV.DecMapUint8BoolV(*v, fastpathCheckNilFalse, true, d)
  15809. if changed2 {
  15810. *v = v2
  15811. }
  15812. case []uint16:
  15813. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, d)
  15814. case *[]uint16:
  15815. v2, changed2 := fastpathTV.DecSliceUint16V(*v, fastpathCheckNilFalse, true, d)
  15816. if changed2 {
  15817. *v = v2
  15818. }
  15819. case map[uint16]interface{}:
  15820. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, d)
  15821. case *map[uint16]interface{}:
  15822. v2, changed2 := fastpathTV.DecMapUint16IntfV(*v, fastpathCheckNilFalse, true, d)
  15823. if changed2 {
  15824. *v = v2
  15825. }
  15826. case map[uint16]string:
  15827. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, d)
  15828. case *map[uint16]string:
  15829. v2, changed2 := fastpathTV.DecMapUint16StringV(*v, fastpathCheckNilFalse, true, d)
  15830. if changed2 {
  15831. *v = v2
  15832. }
  15833. case map[uint16]uint:
  15834. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, d)
  15835. case *map[uint16]uint:
  15836. v2, changed2 := fastpathTV.DecMapUint16UintV(*v, fastpathCheckNilFalse, true, d)
  15837. if changed2 {
  15838. *v = v2
  15839. }
  15840. case map[uint16]uint8:
  15841. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, d)
  15842. case *map[uint16]uint8:
  15843. v2, changed2 := fastpathTV.DecMapUint16Uint8V(*v, fastpathCheckNilFalse, true, d)
  15844. if changed2 {
  15845. *v = v2
  15846. }
  15847. case map[uint16]uint16:
  15848. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, d)
  15849. case *map[uint16]uint16:
  15850. v2, changed2 := fastpathTV.DecMapUint16Uint16V(*v, fastpathCheckNilFalse, true, d)
  15851. if changed2 {
  15852. *v = v2
  15853. }
  15854. case map[uint16]uint32:
  15855. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, d)
  15856. case *map[uint16]uint32:
  15857. v2, changed2 := fastpathTV.DecMapUint16Uint32V(*v, fastpathCheckNilFalse, true, d)
  15858. if changed2 {
  15859. *v = v2
  15860. }
  15861. case map[uint16]uint64:
  15862. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, d)
  15863. case *map[uint16]uint64:
  15864. v2, changed2 := fastpathTV.DecMapUint16Uint64V(*v, fastpathCheckNilFalse, true, d)
  15865. if changed2 {
  15866. *v = v2
  15867. }
  15868. case map[uint16]uintptr:
  15869. fastpathTV.DecMapUint16UintptrV(v, fastpathCheckNilFalse, false, d)
  15870. case *map[uint16]uintptr:
  15871. v2, changed2 := fastpathTV.DecMapUint16UintptrV(*v, fastpathCheckNilFalse, true, d)
  15872. if changed2 {
  15873. *v = v2
  15874. }
  15875. case map[uint16]int:
  15876. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, d)
  15877. case *map[uint16]int:
  15878. v2, changed2 := fastpathTV.DecMapUint16IntV(*v, fastpathCheckNilFalse, true, d)
  15879. if changed2 {
  15880. *v = v2
  15881. }
  15882. case map[uint16]int8:
  15883. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, d)
  15884. case *map[uint16]int8:
  15885. v2, changed2 := fastpathTV.DecMapUint16Int8V(*v, fastpathCheckNilFalse, true, d)
  15886. if changed2 {
  15887. *v = v2
  15888. }
  15889. case map[uint16]int16:
  15890. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, d)
  15891. case *map[uint16]int16:
  15892. v2, changed2 := fastpathTV.DecMapUint16Int16V(*v, fastpathCheckNilFalse, true, d)
  15893. if changed2 {
  15894. *v = v2
  15895. }
  15896. case map[uint16]int32:
  15897. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, d)
  15898. case *map[uint16]int32:
  15899. v2, changed2 := fastpathTV.DecMapUint16Int32V(*v, fastpathCheckNilFalse, true, d)
  15900. if changed2 {
  15901. *v = v2
  15902. }
  15903. case map[uint16]int64:
  15904. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, d)
  15905. case *map[uint16]int64:
  15906. v2, changed2 := fastpathTV.DecMapUint16Int64V(*v, fastpathCheckNilFalse, true, d)
  15907. if changed2 {
  15908. *v = v2
  15909. }
  15910. case map[uint16]float32:
  15911. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, d)
  15912. case *map[uint16]float32:
  15913. v2, changed2 := fastpathTV.DecMapUint16Float32V(*v, fastpathCheckNilFalse, true, d)
  15914. if changed2 {
  15915. *v = v2
  15916. }
  15917. case map[uint16]float64:
  15918. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, d)
  15919. case *map[uint16]float64:
  15920. v2, changed2 := fastpathTV.DecMapUint16Float64V(*v, fastpathCheckNilFalse, true, d)
  15921. if changed2 {
  15922. *v = v2
  15923. }
  15924. case map[uint16]bool:
  15925. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, d)
  15926. case *map[uint16]bool:
  15927. v2, changed2 := fastpathTV.DecMapUint16BoolV(*v, fastpathCheckNilFalse, true, d)
  15928. if changed2 {
  15929. *v = v2
  15930. }
  15931. case []uint32:
  15932. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, d)
  15933. case *[]uint32:
  15934. v2, changed2 := fastpathTV.DecSliceUint32V(*v, fastpathCheckNilFalse, true, d)
  15935. if changed2 {
  15936. *v = v2
  15937. }
  15938. case map[uint32]interface{}:
  15939. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, d)
  15940. case *map[uint32]interface{}:
  15941. v2, changed2 := fastpathTV.DecMapUint32IntfV(*v, fastpathCheckNilFalse, true, d)
  15942. if changed2 {
  15943. *v = v2
  15944. }
  15945. case map[uint32]string:
  15946. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, d)
  15947. case *map[uint32]string:
  15948. v2, changed2 := fastpathTV.DecMapUint32StringV(*v, fastpathCheckNilFalse, true, d)
  15949. if changed2 {
  15950. *v = v2
  15951. }
  15952. case map[uint32]uint:
  15953. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, d)
  15954. case *map[uint32]uint:
  15955. v2, changed2 := fastpathTV.DecMapUint32UintV(*v, fastpathCheckNilFalse, true, d)
  15956. if changed2 {
  15957. *v = v2
  15958. }
  15959. case map[uint32]uint8:
  15960. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, d)
  15961. case *map[uint32]uint8:
  15962. v2, changed2 := fastpathTV.DecMapUint32Uint8V(*v, fastpathCheckNilFalse, true, d)
  15963. if changed2 {
  15964. *v = v2
  15965. }
  15966. case map[uint32]uint16:
  15967. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, d)
  15968. case *map[uint32]uint16:
  15969. v2, changed2 := fastpathTV.DecMapUint32Uint16V(*v, fastpathCheckNilFalse, true, d)
  15970. if changed2 {
  15971. *v = v2
  15972. }
  15973. case map[uint32]uint32:
  15974. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, d)
  15975. case *map[uint32]uint32:
  15976. v2, changed2 := fastpathTV.DecMapUint32Uint32V(*v, fastpathCheckNilFalse, true, d)
  15977. if changed2 {
  15978. *v = v2
  15979. }
  15980. case map[uint32]uint64:
  15981. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, d)
  15982. case *map[uint32]uint64:
  15983. v2, changed2 := fastpathTV.DecMapUint32Uint64V(*v, fastpathCheckNilFalse, true, d)
  15984. if changed2 {
  15985. *v = v2
  15986. }
  15987. case map[uint32]uintptr:
  15988. fastpathTV.DecMapUint32UintptrV(v, fastpathCheckNilFalse, false, d)
  15989. case *map[uint32]uintptr:
  15990. v2, changed2 := fastpathTV.DecMapUint32UintptrV(*v, fastpathCheckNilFalse, true, d)
  15991. if changed2 {
  15992. *v = v2
  15993. }
  15994. case map[uint32]int:
  15995. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, d)
  15996. case *map[uint32]int:
  15997. v2, changed2 := fastpathTV.DecMapUint32IntV(*v, fastpathCheckNilFalse, true, d)
  15998. if changed2 {
  15999. *v = v2
  16000. }
  16001. case map[uint32]int8:
  16002. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, d)
  16003. case *map[uint32]int8:
  16004. v2, changed2 := fastpathTV.DecMapUint32Int8V(*v, fastpathCheckNilFalse, true, d)
  16005. if changed2 {
  16006. *v = v2
  16007. }
  16008. case map[uint32]int16:
  16009. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, d)
  16010. case *map[uint32]int16:
  16011. v2, changed2 := fastpathTV.DecMapUint32Int16V(*v, fastpathCheckNilFalse, true, d)
  16012. if changed2 {
  16013. *v = v2
  16014. }
  16015. case map[uint32]int32:
  16016. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, d)
  16017. case *map[uint32]int32:
  16018. v2, changed2 := fastpathTV.DecMapUint32Int32V(*v, fastpathCheckNilFalse, true, d)
  16019. if changed2 {
  16020. *v = v2
  16021. }
  16022. case map[uint32]int64:
  16023. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, d)
  16024. case *map[uint32]int64:
  16025. v2, changed2 := fastpathTV.DecMapUint32Int64V(*v, fastpathCheckNilFalse, true, d)
  16026. if changed2 {
  16027. *v = v2
  16028. }
  16029. case map[uint32]float32:
  16030. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, d)
  16031. case *map[uint32]float32:
  16032. v2, changed2 := fastpathTV.DecMapUint32Float32V(*v, fastpathCheckNilFalse, true, d)
  16033. if changed2 {
  16034. *v = v2
  16035. }
  16036. case map[uint32]float64:
  16037. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, d)
  16038. case *map[uint32]float64:
  16039. v2, changed2 := fastpathTV.DecMapUint32Float64V(*v, fastpathCheckNilFalse, true, d)
  16040. if changed2 {
  16041. *v = v2
  16042. }
  16043. case map[uint32]bool:
  16044. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, d)
  16045. case *map[uint32]bool:
  16046. v2, changed2 := fastpathTV.DecMapUint32BoolV(*v, fastpathCheckNilFalse, true, d)
  16047. if changed2 {
  16048. *v = v2
  16049. }
  16050. case []uint64:
  16051. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, d)
  16052. case *[]uint64:
  16053. v2, changed2 := fastpathTV.DecSliceUint64V(*v, fastpathCheckNilFalse, true, d)
  16054. if changed2 {
  16055. *v = v2
  16056. }
  16057. case map[uint64]interface{}:
  16058. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, d)
  16059. case *map[uint64]interface{}:
  16060. v2, changed2 := fastpathTV.DecMapUint64IntfV(*v, fastpathCheckNilFalse, true, d)
  16061. if changed2 {
  16062. *v = v2
  16063. }
  16064. case map[uint64]string:
  16065. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, d)
  16066. case *map[uint64]string:
  16067. v2, changed2 := fastpathTV.DecMapUint64StringV(*v, fastpathCheckNilFalse, true, d)
  16068. if changed2 {
  16069. *v = v2
  16070. }
  16071. case map[uint64]uint:
  16072. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, d)
  16073. case *map[uint64]uint:
  16074. v2, changed2 := fastpathTV.DecMapUint64UintV(*v, fastpathCheckNilFalse, true, d)
  16075. if changed2 {
  16076. *v = v2
  16077. }
  16078. case map[uint64]uint8:
  16079. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, d)
  16080. case *map[uint64]uint8:
  16081. v2, changed2 := fastpathTV.DecMapUint64Uint8V(*v, fastpathCheckNilFalse, true, d)
  16082. if changed2 {
  16083. *v = v2
  16084. }
  16085. case map[uint64]uint16:
  16086. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, d)
  16087. case *map[uint64]uint16:
  16088. v2, changed2 := fastpathTV.DecMapUint64Uint16V(*v, fastpathCheckNilFalse, true, d)
  16089. if changed2 {
  16090. *v = v2
  16091. }
  16092. case map[uint64]uint32:
  16093. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, d)
  16094. case *map[uint64]uint32:
  16095. v2, changed2 := fastpathTV.DecMapUint64Uint32V(*v, fastpathCheckNilFalse, true, d)
  16096. if changed2 {
  16097. *v = v2
  16098. }
  16099. case map[uint64]uint64:
  16100. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, d)
  16101. case *map[uint64]uint64:
  16102. v2, changed2 := fastpathTV.DecMapUint64Uint64V(*v, fastpathCheckNilFalse, true, d)
  16103. if changed2 {
  16104. *v = v2
  16105. }
  16106. case map[uint64]uintptr:
  16107. fastpathTV.DecMapUint64UintptrV(v, fastpathCheckNilFalse, false, d)
  16108. case *map[uint64]uintptr:
  16109. v2, changed2 := fastpathTV.DecMapUint64UintptrV(*v, fastpathCheckNilFalse, true, d)
  16110. if changed2 {
  16111. *v = v2
  16112. }
  16113. case map[uint64]int:
  16114. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, d)
  16115. case *map[uint64]int:
  16116. v2, changed2 := fastpathTV.DecMapUint64IntV(*v, fastpathCheckNilFalse, true, d)
  16117. if changed2 {
  16118. *v = v2
  16119. }
  16120. case map[uint64]int8:
  16121. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, d)
  16122. case *map[uint64]int8:
  16123. v2, changed2 := fastpathTV.DecMapUint64Int8V(*v, fastpathCheckNilFalse, true, d)
  16124. if changed2 {
  16125. *v = v2
  16126. }
  16127. case map[uint64]int16:
  16128. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, d)
  16129. case *map[uint64]int16:
  16130. v2, changed2 := fastpathTV.DecMapUint64Int16V(*v, fastpathCheckNilFalse, true, d)
  16131. if changed2 {
  16132. *v = v2
  16133. }
  16134. case map[uint64]int32:
  16135. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, d)
  16136. case *map[uint64]int32:
  16137. v2, changed2 := fastpathTV.DecMapUint64Int32V(*v, fastpathCheckNilFalse, true, d)
  16138. if changed2 {
  16139. *v = v2
  16140. }
  16141. case map[uint64]int64:
  16142. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, d)
  16143. case *map[uint64]int64:
  16144. v2, changed2 := fastpathTV.DecMapUint64Int64V(*v, fastpathCheckNilFalse, true, d)
  16145. if changed2 {
  16146. *v = v2
  16147. }
  16148. case map[uint64]float32:
  16149. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, d)
  16150. case *map[uint64]float32:
  16151. v2, changed2 := fastpathTV.DecMapUint64Float32V(*v, fastpathCheckNilFalse, true, d)
  16152. if changed2 {
  16153. *v = v2
  16154. }
  16155. case map[uint64]float64:
  16156. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, d)
  16157. case *map[uint64]float64:
  16158. v2, changed2 := fastpathTV.DecMapUint64Float64V(*v, fastpathCheckNilFalse, true, d)
  16159. if changed2 {
  16160. *v = v2
  16161. }
  16162. case map[uint64]bool:
  16163. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, d)
  16164. case *map[uint64]bool:
  16165. v2, changed2 := fastpathTV.DecMapUint64BoolV(*v, fastpathCheckNilFalse, true, d)
  16166. if changed2 {
  16167. *v = v2
  16168. }
  16169. case []uintptr:
  16170. fastpathTV.DecSliceUintptrV(v, fastpathCheckNilFalse, false, d)
  16171. case *[]uintptr:
  16172. v2, changed2 := fastpathTV.DecSliceUintptrV(*v, fastpathCheckNilFalse, true, d)
  16173. if changed2 {
  16174. *v = v2
  16175. }
  16176. case map[uintptr]interface{}:
  16177. fastpathTV.DecMapUintptrIntfV(v, fastpathCheckNilFalse, false, d)
  16178. case *map[uintptr]interface{}:
  16179. v2, changed2 := fastpathTV.DecMapUintptrIntfV(*v, fastpathCheckNilFalse, true, d)
  16180. if changed2 {
  16181. *v = v2
  16182. }
  16183. case map[uintptr]string:
  16184. fastpathTV.DecMapUintptrStringV(v, fastpathCheckNilFalse, false, d)
  16185. case *map[uintptr]string:
  16186. v2, changed2 := fastpathTV.DecMapUintptrStringV(*v, fastpathCheckNilFalse, true, d)
  16187. if changed2 {
  16188. *v = v2
  16189. }
  16190. case map[uintptr]uint:
  16191. fastpathTV.DecMapUintptrUintV(v, fastpathCheckNilFalse, false, d)
  16192. case *map[uintptr]uint:
  16193. v2, changed2 := fastpathTV.DecMapUintptrUintV(*v, fastpathCheckNilFalse, true, d)
  16194. if changed2 {
  16195. *v = v2
  16196. }
  16197. case map[uintptr]uint8:
  16198. fastpathTV.DecMapUintptrUint8V(v, fastpathCheckNilFalse, false, d)
  16199. case *map[uintptr]uint8:
  16200. v2, changed2 := fastpathTV.DecMapUintptrUint8V(*v, fastpathCheckNilFalse, true, d)
  16201. if changed2 {
  16202. *v = v2
  16203. }
  16204. case map[uintptr]uint16:
  16205. fastpathTV.DecMapUintptrUint16V(v, fastpathCheckNilFalse, false, d)
  16206. case *map[uintptr]uint16:
  16207. v2, changed2 := fastpathTV.DecMapUintptrUint16V(*v, fastpathCheckNilFalse, true, d)
  16208. if changed2 {
  16209. *v = v2
  16210. }
  16211. case map[uintptr]uint32:
  16212. fastpathTV.DecMapUintptrUint32V(v, fastpathCheckNilFalse, false, d)
  16213. case *map[uintptr]uint32:
  16214. v2, changed2 := fastpathTV.DecMapUintptrUint32V(*v, fastpathCheckNilFalse, true, d)
  16215. if changed2 {
  16216. *v = v2
  16217. }
  16218. case map[uintptr]uint64:
  16219. fastpathTV.DecMapUintptrUint64V(v, fastpathCheckNilFalse, false, d)
  16220. case *map[uintptr]uint64:
  16221. v2, changed2 := fastpathTV.DecMapUintptrUint64V(*v, fastpathCheckNilFalse, true, d)
  16222. if changed2 {
  16223. *v = v2
  16224. }
  16225. case map[uintptr]uintptr:
  16226. fastpathTV.DecMapUintptrUintptrV(v, fastpathCheckNilFalse, false, d)
  16227. case *map[uintptr]uintptr:
  16228. v2, changed2 := fastpathTV.DecMapUintptrUintptrV(*v, fastpathCheckNilFalse, true, d)
  16229. if changed2 {
  16230. *v = v2
  16231. }
  16232. case map[uintptr]int:
  16233. fastpathTV.DecMapUintptrIntV(v, fastpathCheckNilFalse, false, d)
  16234. case *map[uintptr]int:
  16235. v2, changed2 := fastpathTV.DecMapUintptrIntV(*v, fastpathCheckNilFalse, true, d)
  16236. if changed2 {
  16237. *v = v2
  16238. }
  16239. case map[uintptr]int8:
  16240. fastpathTV.DecMapUintptrInt8V(v, fastpathCheckNilFalse, false, d)
  16241. case *map[uintptr]int8:
  16242. v2, changed2 := fastpathTV.DecMapUintptrInt8V(*v, fastpathCheckNilFalse, true, d)
  16243. if changed2 {
  16244. *v = v2
  16245. }
  16246. case map[uintptr]int16:
  16247. fastpathTV.DecMapUintptrInt16V(v, fastpathCheckNilFalse, false, d)
  16248. case *map[uintptr]int16:
  16249. v2, changed2 := fastpathTV.DecMapUintptrInt16V(*v, fastpathCheckNilFalse, true, d)
  16250. if changed2 {
  16251. *v = v2
  16252. }
  16253. case map[uintptr]int32:
  16254. fastpathTV.DecMapUintptrInt32V(v, fastpathCheckNilFalse, false, d)
  16255. case *map[uintptr]int32:
  16256. v2, changed2 := fastpathTV.DecMapUintptrInt32V(*v, fastpathCheckNilFalse, true, d)
  16257. if changed2 {
  16258. *v = v2
  16259. }
  16260. case map[uintptr]int64:
  16261. fastpathTV.DecMapUintptrInt64V(v, fastpathCheckNilFalse, false, d)
  16262. case *map[uintptr]int64:
  16263. v2, changed2 := fastpathTV.DecMapUintptrInt64V(*v, fastpathCheckNilFalse, true, d)
  16264. if changed2 {
  16265. *v = v2
  16266. }
  16267. case map[uintptr]float32:
  16268. fastpathTV.DecMapUintptrFloat32V(v, fastpathCheckNilFalse, false, d)
  16269. case *map[uintptr]float32:
  16270. v2, changed2 := fastpathTV.DecMapUintptrFloat32V(*v, fastpathCheckNilFalse, true, d)
  16271. if changed2 {
  16272. *v = v2
  16273. }
  16274. case map[uintptr]float64:
  16275. fastpathTV.DecMapUintptrFloat64V(v, fastpathCheckNilFalse, false, d)
  16276. case *map[uintptr]float64:
  16277. v2, changed2 := fastpathTV.DecMapUintptrFloat64V(*v, fastpathCheckNilFalse, true, d)
  16278. if changed2 {
  16279. *v = v2
  16280. }
  16281. case map[uintptr]bool:
  16282. fastpathTV.DecMapUintptrBoolV(v, fastpathCheckNilFalse, false, d)
  16283. case *map[uintptr]bool:
  16284. v2, changed2 := fastpathTV.DecMapUintptrBoolV(*v, fastpathCheckNilFalse, true, d)
  16285. if changed2 {
  16286. *v = v2
  16287. }
  16288. case []int:
  16289. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, d)
  16290. case *[]int:
  16291. v2, changed2 := fastpathTV.DecSliceIntV(*v, fastpathCheckNilFalse, true, d)
  16292. if changed2 {
  16293. *v = v2
  16294. }
  16295. case map[int]interface{}:
  16296. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, d)
  16297. case *map[int]interface{}:
  16298. v2, changed2 := fastpathTV.DecMapIntIntfV(*v, fastpathCheckNilFalse, true, d)
  16299. if changed2 {
  16300. *v = v2
  16301. }
  16302. case map[int]string:
  16303. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, d)
  16304. case *map[int]string:
  16305. v2, changed2 := fastpathTV.DecMapIntStringV(*v, fastpathCheckNilFalse, true, d)
  16306. if changed2 {
  16307. *v = v2
  16308. }
  16309. case map[int]uint:
  16310. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, d)
  16311. case *map[int]uint:
  16312. v2, changed2 := fastpathTV.DecMapIntUintV(*v, fastpathCheckNilFalse, true, d)
  16313. if changed2 {
  16314. *v = v2
  16315. }
  16316. case map[int]uint8:
  16317. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, d)
  16318. case *map[int]uint8:
  16319. v2, changed2 := fastpathTV.DecMapIntUint8V(*v, fastpathCheckNilFalse, true, d)
  16320. if changed2 {
  16321. *v = v2
  16322. }
  16323. case map[int]uint16:
  16324. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, d)
  16325. case *map[int]uint16:
  16326. v2, changed2 := fastpathTV.DecMapIntUint16V(*v, fastpathCheckNilFalse, true, d)
  16327. if changed2 {
  16328. *v = v2
  16329. }
  16330. case map[int]uint32:
  16331. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, d)
  16332. case *map[int]uint32:
  16333. v2, changed2 := fastpathTV.DecMapIntUint32V(*v, fastpathCheckNilFalse, true, d)
  16334. if changed2 {
  16335. *v = v2
  16336. }
  16337. case map[int]uint64:
  16338. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, d)
  16339. case *map[int]uint64:
  16340. v2, changed2 := fastpathTV.DecMapIntUint64V(*v, fastpathCheckNilFalse, true, d)
  16341. if changed2 {
  16342. *v = v2
  16343. }
  16344. case map[int]uintptr:
  16345. fastpathTV.DecMapIntUintptrV(v, fastpathCheckNilFalse, false, d)
  16346. case *map[int]uintptr:
  16347. v2, changed2 := fastpathTV.DecMapIntUintptrV(*v, fastpathCheckNilFalse, true, d)
  16348. if changed2 {
  16349. *v = v2
  16350. }
  16351. case map[int]int:
  16352. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, d)
  16353. case *map[int]int:
  16354. v2, changed2 := fastpathTV.DecMapIntIntV(*v, fastpathCheckNilFalse, true, d)
  16355. if changed2 {
  16356. *v = v2
  16357. }
  16358. case map[int]int8:
  16359. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, d)
  16360. case *map[int]int8:
  16361. v2, changed2 := fastpathTV.DecMapIntInt8V(*v, fastpathCheckNilFalse, true, d)
  16362. if changed2 {
  16363. *v = v2
  16364. }
  16365. case map[int]int16:
  16366. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, d)
  16367. case *map[int]int16:
  16368. v2, changed2 := fastpathTV.DecMapIntInt16V(*v, fastpathCheckNilFalse, true, d)
  16369. if changed2 {
  16370. *v = v2
  16371. }
  16372. case map[int]int32:
  16373. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, d)
  16374. case *map[int]int32:
  16375. v2, changed2 := fastpathTV.DecMapIntInt32V(*v, fastpathCheckNilFalse, true, d)
  16376. if changed2 {
  16377. *v = v2
  16378. }
  16379. case map[int]int64:
  16380. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, d)
  16381. case *map[int]int64:
  16382. v2, changed2 := fastpathTV.DecMapIntInt64V(*v, fastpathCheckNilFalse, true, d)
  16383. if changed2 {
  16384. *v = v2
  16385. }
  16386. case map[int]float32:
  16387. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, d)
  16388. case *map[int]float32:
  16389. v2, changed2 := fastpathTV.DecMapIntFloat32V(*v, fastpathCheckNilFalse, true, d)
  16390. if changed2 {
  16391. *v = v2
  16392. }
  16393. case map[int]float64:
  16394. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, d)
  16395. case *map[int]float64:
  16396. v2, changed2 := fastpathTV.DecMapIntFloat64V(*v, fastpathCheckNilFalse, true, d)
  16397. if changed2 {
  16398. *v = v2
  16399. }
  16400. case map[int]bool:
  16401. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, d)
  16402. case *map[int]bool:
  16403. v2, changed2 := fastpathTV.DecMapIntBoolV(*v, fastpathCheckNilFalse, true, d)
  16404. if changed2 {
  16405. *v = v2
  16406. }
  16407. case []int8:
  16408. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, d)
  16409. case *[]int8:
  16410. v2, changed2 := fastpathTV.DecSliceInt8V(*v, fastpathCheckNilFalse, true, d)
  16411. if changed2 {
  16412. *v = v2
  16413. }
  16414. case map[int8]interface{}:
  16415. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, d)
  16416. case *map[int8]interface{}:
  16417. v2, changed2 := fastpathTV.DecMapInt8IntfV(*v, fastpathCheckNilFalse, true, d)
  16418. if changed2 {
  16419. *v = v2
  16420. }
  16421. case map[int8]string:
  16422. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, d)
  16423. case *map[int8]string:
  16424. v2, changed2 := fastpathTV.DecMapInt8StringV(*v, fastpathCheckNilFalse, true, d)
  16425. if changed2 {
  16426. *v = v2
  16427. }
  16428. case map[int8]uint:
  16429. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, d)
  16430. case *map[int8]uint:
  16431. v2, changed2 := fastpathTV.DecMapInt8UintV(*v, fastpathCheckNilFalse, true, d)
  16432. if changed2 {
  16433. *v = v2
  16434. }
  16435. case map[int8]uint8:
  16436. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, d)
  16437. case *map[int8]uint8:
  16438. v2, changed2 := fastpathTV.DecMapInt8Uint8V(*v, fastpathCheckNilFalse, true, d)
  16439. if changed2 {
  16440. *v = v2
  16441. }
  16442. case map[int8]uint16:
  16443. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, d)
  16444. case *map[int8]uint16:
  16445. v2, changed2 := fastpathTV.DecMapInt8Uint16V(*v, fastpathCheckNilFalse, true, d)
  16446. if changed2 {
  16447. *v = v2
  16448. }
  16449. case map[int8]uint32:
  16450. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, d)
  16451. case *map[int8]uint32:
  16452. v2, changed2 := fastpathTV.DecMapInt8Uint32V(*v, fastpathCheckNilFalse, true, d)
  16453. if changed2 {
  16454. *v = v2
  16455. }
  16456. case map[int8]uint64:
  16457. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, d)
  16458. case *map[int8]uint64:
  16459. v2, changed2 := fastpathTV.DecMapInt8Uint64V(*v, fastpathCheckNilFalse, true, d)
  16460. if changed2 {
  16461. *v = v2
  16462. }
  16463. case map[int8]uintptr:
  16464. fastpathTV.DecMapInt8UintptrV(v, fastpathCheckNilFalse, false, d)
  16465. case *map[int8]uintptr:
  16466. v2, changed2 := fastpathTV.DecMapInt8UintptrV(*v, fastpathCheckNilFalse, true, d)
  16467. if changed2 {
  16468. *v = v2
  16469. }
  16470. case map[int8]int:
  16471. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, d)
  16472. case *map[int8]int:
  16473. v2, changed2 := fastpathTV.DecMapInt8IntV(*v, fastpathCheckNilFalse, true, d)
  16474. if changed2 {
  16475. *v = v2
  16476. }
  16477. case map[int8]int8:
  16478. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, d)
  16479. case *map[int8]int8:
  16480. v2, changed2 := fastpathTV.DecMapInt8Int8V(*v, fastpathCheckNilFalse, true, d)
  16481. if changed2 {
  16482. *v = v2
  16483. }
  16484. case map[int8]int16:
  16485. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, d)
  16486. case *map[int8]int16:
  16487. v2, changed2 := fastpathTV.DecMapInt8Int16V(*v, fastpathCheckNilFalse, true, d)
  16488. if changed2 {
  16489. *v = v2
  16490. }
  16491. case map[int8]int32:
  16492. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, d)
  16493. case *map[int8]int32:
  16494. v2, changed2 := fastpathTV.DecMapInt8Int32V(*v, fastpathCheckNilFalse, true, d)
  16495. if changed2 {
  16496. *v = v2
  16497. }
  16498. case map[int8]int64:
  16499. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, d)
  16500. case *map[int8]int64:
  16501. v2, changed2 := fastpathTV.DecMapInt8Int64V(*v, fastpathCheckNilFalse, true, d)
  16502. if changed2 {
  16503. *v = v2
  16504. }
  16505. case map[int8]float32:
  16506. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, d)
  16507. case *map[int8]float32:
  16508. v2, changed2 := fastpathTV.DecMapInt8Float32V(*v, fastpathCheckNilFalse, true, d)
  16509. if changed2 {
  16510. *v = v2
  16511. }
  16512. case map[int8]float64:
  16513. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, d)
  16514. case *map[int8]float64:
  16515. v2, changed2 := fastpathTV.DecMapInt8Float64V(*v, fastpathCheckNilFalse, true, d)
  16516. if changed2 {
  16517. *v = v2
  16518. }
  16519. case map[int8]bool:
  16520. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, d)
  16521. case *map[int8]bool:
  16522. v2, changed2 := fastpathTV.DecMapInt8BoolV(*v, fastpathCheckNilFalse, true, d)
  16523. if changed2 {
  16524. *v = v2
  16525. }
  16526. case []int16:
  16527. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, d)
  16528. case *[]int16:
  16529. v2, changed2 := fastpathTV.DecSliceInt16V(*v, fastpathCheckNilFalse, true, d)
  16530. if changed2 {
  16531. *v = v2
  16532. }
  16533. case map[int16]interface{}:
  16534. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, d)
  16535. case *map[int16]interface{}:
  16536. v2, changed2 := fastpathTV.DecMapInt16IntfV(*v, fastpathCheckNilFalse, true, d)
  16537. if changed2 {
  16538. *v = v2
  16539. }
  16540. case map[int16]string:
  16541. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, d)
  16542. case *map[int16]string:
  16543. v2, changed2 := fastpathTV.DecMapInt16StringV(*v, fastpathCheckNilFalse, true, d)
  16544. if changed2 {
  16545. *v = v2
  16546. }
  16547. case map[int16]uint:
  16548. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, d)
  16549. case *map[int16]uint:
  16550. v2, changed2 := fastpathTV.DecMapInt16UintV(*v, fastpathCheckNilFalse, true, d)
  16551. if changed2 {
  16552. *v = v2
  16553. }
  16554. case map[int16]uint8:
  16555. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, d)
  16556. case *map[int16]uint8:
  16557. v2, changed2 := fastpathTV.DecMapInt16Uint8V(*v, fastpathCheckNilFalse, true, d)
  16558. if changed2 {
  16559. *v = v2
  16560. }
  16561. case map[int16]uint16:
  16562. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, d)
  16563. case *map[int16]uint16:
  16564. v2, changed2 := fastpathTV.DecMapInt16Uint16V(*v, fastpathCheckNilFalse, true, d)
  16565. if changed2 {
  16566. *v = v2
  16567. }
  16568. case map[int16]uint32:
  16569. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, d)
  16570. case *map[int16]uint32:
  16571. v2, changed2 := fastpathTV.DecMapInt16Uint32V(*v, fastpathCheckNilFalse, true, d)
  16572. if changed2 {
  16573. *v = v2
  16574. }
  16575. case map[int16]uint64:
  16576. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, d)
  16577. case *map[int16]uint64:
  16578. v2, changed2 := fastpathTV.DecMapInt16Uint64V(*v, fastpathCheckNilFalse, true, d)
  16579. if changed2 {
  16580. *v = v2
  16581. }
  16582. case map[int16]uintptr:
  16583. fastpathTV.DecMapInt16UintptrV(v, fastpathCheckNilFalse, false, d)
  16584. case *map[int16]uintptr:
  16585. v2, changed2 := fastpathTV.DecMapInt16UintptrV(*v, fastpathCheckNilFalse, true, d)
  16586. if changed2 {
  16587. *v = v2
  16588. }
  16589. case map[int16]int:
  16590. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, d)
  16591. case *map[int16]int:
  16592. v2, changed2 := fastpathTV.DecMapInt16IntV(*v, fastpathCheckNilFalse, true, d)
  16593. if changed2 {
  16594. *v = v2
  16595. }
  16596. case map[int16]int8:
  16597. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, d)
  16598. case *map[int16]int8:
  16599. v2, changed2 := fastpathTV.DecMapInt16Int8V(*v, fastpathCheckNilFalse, true, d)
  16600. if changed2 {
  16601. *v = v2
  16602. }
  16603. case map[int16]int16:
  16604. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, d)
  16605. case *map[int16]int16:
  16606. v2, changed2 := fastpathTV.DecMapInt16Int16V(*v, fastpathCheckNilFalse, true, d)
  16607. if changed2 {
  16608. *v = v2
  16609. }
  16610. case map[int16]int32:
  16611. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, d)
  16612. case *map[int16]int32:
  16613. v2, changed2 := fastpathTV.DecMapInt16Int32V(*v, fastpathCheckNilFalse, true, d)
  16614. if changed2 {
  16615. *v = v2
  16616. }
  16617. case map[int16]int64:
  16618. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, d)
  16619. case *map[int16]int64:
  16620. v2, changed2 := fastpathTV.DecMapInt16Int64V(*v, fastpathCheckNilFalse, true, d)
  16621. if changed2 {
  16622. *v = v2
  16623. }
  16624. case map[int16]float32:
  16625. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, d)
  16626. case *map[int16]float32:
  16627. v2, changed2 := fastpathTV.DecMapInt16Float32V(*v, fastpathCheckNilFalse, true, d)
  16628. if changed2 {
  16629. *v = v2
  16630. }
  16631. case map[int16]float64:
  16632. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, d)
  16633. case *map[int16]float64:
  16634. v2, changed2 := fastpathTV.DecMapInt16Float64V(*v, fastpathCheckNilFalse, true, d)
  16635. if changed2 {
  16636. *v = v2
  16637. }
  16638. case map[int16]bool:
  16639. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, d)
  16640. case *map[int16]bool:
  16641. v2, changed2 := fastpathTV.DecMapInt16BoolV(*v, fastpathCheckNilFalse, true, d)
  16642. if changed2 {
  16643. *v = v2
  16644. }
  16645. case []int32:
  16646. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, d)
  16647. case *[]int32:
  16648. v2, changed2 := fastpathTV.DecSliceInt32V(*v, fastpathCheckNilFalse, true, d)
  16649. if changed2 {
  16650. *v = v2
  16651. }
  16652. case map[int32]interface{}:
  16653. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, d)
  16654. case *map[int32]interface{}:
  16655. v2, changed2 := fastpathTV.DecMapInt32IntfV(*v, fastpathCheckNilFalse, true, d)
  16656. if changed2 {
  16657. *v = v2
  16658. }
  16659. case map[int32]string:
  16660. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, d)
  16661. case *map[int32]string:
  16662. v2, changed2 := fastpathTV.DecMapInt32StringV(*v, fastpathCheckNilFalse, true, d)
  16663. if changed2 {
  16664. *v = v2
  16665. }
  16666. case map[int32]uint:
  16667. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, d)
  16668. case *map[int32]uint:
  16669. v2, changed2 := fastpathTV.DecMapInt32UintV(*v, fastpathCheckNilFalse, true, d)
  16670. if changed2 {
  16671. *v = v2
  16672. }
  16673. case map[int32]uint8:
  16674. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, d)
  16675. case *map[int32]uint8:
  16676. v2, changed2 := fastpathTV.DecMapInt32Uint8V(*v, fastpathCheckNilFalse, true, d)
  16677. if changed2 {
  16678. *v = v2
  16679. }
  16680. case map[int32]uint16:
  16681. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, d)
  16682. case *map[int32]uint16:
  16683. v2, changed2 := fastpathTV.DecMapInt32Uint16V(*v, fastpathCheckNilFalse, true, d)
  16684. if changed2 {
  16685. *v = v2
  16686. }
  16687. case map[int32]uint32:
  16688. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, d)
  16689. case *map[int32]uint32:
  16690. v2, changed2 := fastpathTV.DecMapInt32Uint32V(*v, fastpathCheckNilFalse, true, d)
  16691. if changed2 {
  16692. *v = v2
  16693. }
  16694. case map[int32]uint64:
  16695. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, d)
  16696. case *map[int32]uint64:
  16697. v2, changed2 := fastpathTV.DecMapInt32Uint64V(*v, fastpathCheckNilFalse, true, d)
  16698. if changed2 {
  16699. *v = v2
  16700. }
  16701. case map[int32]uintptr:
  16702. fastpathTV.DecMapInt32UintptrV(v, fastpathCheckNilFalse, false, d)
  16703. case *map[int32]uintptr:
  16704. v2, changed2 := fastpathTV.DecMapInt32UintptrV(*v, fastpathCheckNilFalse, true, d)
  16705. if changed2 {
  16706. *v = v2
  16707. }
  16708. case map[int32]int:
  16709. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, d)
  16710. case *map[int32]int:
  16711. v2, changed2 := fastpathTV.DecMapInt32IntV(*v, fastpathCheckNilFalse, true, d)
  16712. if changed2 {
  16713. *v = v2
  16714. }
  16715. case map[int32]int8:
  16716. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, d)
  16717. case *map[int32]int8:
  16718. v2, changed2 := fastpathTV.DecMapInt32Int8V(*v, fastpathCheckNilFalse, true, d)
  16719. if changed2 {
  16720. *v = v2
  16721. }
  16722. case map[int32]int16:
  16723. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, d)
  16724. case *map[int32]int16:
  16725. v2, changed2 := fastpathTV.DecMapInt32Int16V(*v, fastpathCheckNilFalse, true, d)
  16726. if changed2 {
  16727. *v = v2
  16728. }
  16729. case map[int32]int32:
  16730. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, d)
  16731. case *map[int32]int32:
  16732. v2, changed2 := fastpathTV.DecMapInt32Int32V(*v, fastpathCheckNilFalse, true, d)
  16733. if changed2 {
  16734. *v = v2
  16735. }
  16736. case map[int32]int64:
  16737. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, d)
  16738. case *map[int32]int64:
  16739. v2, changed2 := fastpathTV.DecMapInt32Int64V(*v, fastpathCheckNilFalse, true, d)
  16740. if changed2 {
  16741. *v = v2
  16742. }
  16743. case map[int32]float32:
  16744. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, d)
  16745. case *map[int32]float32:
  16746. v2, changed2 := fastpathTV.DecMapInt32Float32V(*v, fastpathCheckNilFalse, true, d)
  16747. if changed2 {
  16748. *v = v2
  16749. }
  16750. case map[int32]float64:
  16751. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, d)
  16752. case *map[int32]float64:
  16753. v2, changed2 := fastpathTV.DecMapInt32Float64V(*v, fastpathCheckNilFalse, true, d)
  16754. if changed2 {
  16755. *v = v2
  16756. }
  16757. case map[int32]bool:
  16758. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, d)
  16759. case *map[int32]bool:
  16760. v2, changed2 := fastpathTV.DecMapInt32BoolV(*v, fastpathCheckNilFalse, true, d)
  16761. if changed2 {
  16762. *v = v2
  16763. }
  16764. case []int64:
  16765. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, d)
  16766. case *[]int64:
  16767. v2, changed2 := fastpathTV.DecSliceInt64V(*v, fastpathCheckNilFalse, true, d)
  16768. if changed2 {
  16769. *v = v2
  16770. }
  16771. case map[int64]interface{}:
  16772. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, d)
  16773. case *map[int64]interface{}:
  16774. v2, changed2 := fastpathTV.DecMapInt64IntfV(*v, fastpathCheckNilFalse, true, d)
  16775. if changed2 {
  16776. *v = v2
  16777. }
  16778. case map[int64]string:
  16779. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, d)
  16780. case *map[int64]string:
  16781. v2, changed2 := fastpathTV.DecMapInt64StringV(*v, fastpathCheckNilFalse, true, d)
  16782. if changed2 {
  16783. *v = v2
  16784. }
  16785. case map[int64]uint:
  16786. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, d)
  16787. case *map[int64]uint:
  16788. v2, changed2 := fastpathTV.DecMapInt64UintV(*v, fastpathCheckNilFalse, true, d)
  16789. if changed2 {
  16790. *v = v2
  16791. }
  16792. case map[int64]uint8:
  16793. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, d)
  16794. case *map[int64]uint8:
  16795. v2, changed2 := fastpathTV.DecMapInt64Uint8V(*v, fastpathCheckNilFalse, true, d)
  16796. if changed2 {
  16797. *v = v2
  16798. }
  16799. case map[int64]uint16:
  16800. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, d)
  16801. case *map[int64]uint16:
  16802. v2, changed2 := fastpathTV.DecMapInt64Uint16V(*v, fastpathCheckNilFalse, true, d)
  16803. if changed2 {
  16804. *v = v2
  16805. }
  16806. case map[int64]uint32:
  16807. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, d)
  16808. case *map[int64]uint32:
  16809. v2, changed2 := fastpathTV.DecMapInt64Uint32V(*v, fastpathCheckNilFalse, true, d)
  16810. if changed2 {
  16811. *v = v2
  16812. }
  16813. case map[int64]uint64:
  16814. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, d)
  16815. case *map[int64]uint64:
  16816. v2, changed2 := fastpathTV.DecMapInt64Uint64V(*v, fastpathCheckNilFalse, true, d)
  16817. if changed2 {
  16818. *v = v2
  16819. }
  16820. case map[int64]uintptr:
  16821. fastpathTV.DecMapInt64UintptrV(v, fastpathCheckNilFalse, false, d)
  16822. case *map[int64]uintptr:
  16823. v2, changed2 := fastpathTV.DecMapInt64UintptrV(*v, fastpathCheckNilFalse, true, d)
  16824. if changed2 {
  16825. *v = v2
  16826. }
  16827. case map[int64]int:
  16828. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, d)
  16829. case *map[int64]int:
  16830. v2, changed2 := fastpathTV.DecMapInt64IntV(*v, fastpathCheckNilFalse, true, d)
  16831. if changed2 {
  16832. *v = v2
  16833. }
  16834. case map[int64]int8:
  16835. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, d)
  16836. case *map[int64]int8:
  16837. v2, changed2 := fastpathTV.DecMapInt64Int8V(*v, fastpathCheckNilFalse, true, d)
  16838. if changed2 {
  16839. *v = v2
  16840. }
  16841. case map[int64]int16:
  16842. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, d)
  16843. case *map[int64]int16:
  16844. v2, changed2 := fastpathTV.DecMapInt64Int16V(*v, fastpathCheckNilFalse, true, d)
  16845. if changed2 {
  16846. *v = v2
  16847. }
  16848. case map[int64]int32:
  16849. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, d)
  16850. case *map[int64]int32:
  16851. v2, changed2 := fastpathTV.DecMapInt64Int32V(*v, fastpathCheckNilFalse, true, d)
  16852. if changed2 {
  16853. *v = v2
  16854. }
  16855. case map[int64]int64:
  16856. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, d)
  16857. case *map[int64]int64:
  16858. v2, changed2 := fastpathTV.DecMapInt64Int64V(*v, fastpathCheckNilFalse, true, d)
  16859. if changed2 {
  16860. *v = v2
  16861. }
  16862. case map[int64]float32:
  16863. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, d)
  16864. case *map[int64]float32:
  16865. v2, changed2 := fastpathTV.DecMapInt64Float32V(*v, fastpathCheckNilFalse, true, d)
  16866. if changed2 {
  16867. *v = v2
  16868. }
  16869. case map[int64]float64:
  16870. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, d)
  16871. case *map[int64]float64:
  16872. v2, changed2 := fastpathTV.DecMapInt64Float64V(*v, fastpathCheckNilFalse, true, d)
  16873. if changed2 {
  16874. *v = v2
  16875. }
  16876. case map[int64]bool:
  16877. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, d)
  16878. case *map[int64]bool:
  16879. v2, changed2 := fastpathTV.DecMapInt64BoolV(*v, fastpathCheckNilFalse, true, d)
  16880. if changed2 {
  16881. *v = v2
  16882. }
  16883. case []bool:
  16884. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, d)
  16885. case *[]bool:
  16886. v2, changed2 := fastpathTV.DecSliceBoolV(*v, fastpathCheckNilFalse, true, d)
  16887. if changed2 {
  16888. *v = v2
  16889. }
  16890. case map[bool]interface{}:
  16891. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, d)
  16892. case *map[bool]interface{}:
  16893. v2, changed2 := fastpathTV.DecMapBoolIntfV(*v, fastpathCheckNilFalse, true, d)
  16894. if changed2 {
  16895. *v = v2
  16896. }
  16897. case map[bool]string:
  16898. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, d)
  16899. case *map[bool]string:
  16900. v2, changed2 := fastpathTV.DecMapBoolStringV(*v, fastpathCheckNilFalse, true, d)
  16901. if changed2 {
  16902. *v = v2
  16903. }
  16904. case map[bool]uint:
  16905. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, d)
  16906. case *map[bool]uint:
  16907. v2, changed2 := fastpathTV.DecMapBoolUintV(*v, fastpathCheckNilFalse, true, d)
  16908. if changed2 {
  16909. *v = v2
  16910. }
  16911. case map[bool]uint8:
  16912. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, d)
  16913. case *map[bool]uint8:
  16914. v2, changed2 := fastpathTV.DecMapBoolUint8V(*v, fastpathCheckNilFalse, true, d)
  16915. if changed2 {
  16916. *v = v2
  16917. }
  16918. case map[bool]uint16:
  16919. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, d)
  16920. case *map[bool]uint16:
  16921. v2, changed2 := fastpathTV.DecMapBoolUint16V(*v, fastpathCheckNilFalse, true, d)
  16922. if changed2 {
  16923. *v = v2
  16924. }
  16925. case map[bool]uint32:
  16926. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, d)
  16927. case *map[bool]uint32:
  16928. v2, changed2 := fastpathTV.DecMapBoolUint32V(*v, fastpathCheckNilFalse, true, d)
  16929. if changed2 {
  16930. *v = v2
  16931. }
  16932. case map[bool]uint64:
  16933. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, d)
  16934. case *map[bool]uint64:
  16935. v2, changed2 := fastpathTV.DecMapBoolUint64V(*v, fastpathCheckNilFalse, true, d)
  16936. if changed2 {
  16937. *v = v2
  16938. }
  16939. case map[bool]uintptr:
  16940. fastpathTV.DecMapBoolUintptrV(v, fastpathCheckNilFalse, false, d)
  16941. case *map[bool]uintptr:
  16942. v2, changed2 := fastpathTV.DecMapBoolUintptrV(*v, fastpathCheckNilFalse, true, d)
  16943. if changed2 {
  16944. *v = v2
  16945. }
  16946. case map[bool]int:
  16947. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, d)
  16948. case *map[bool]int:
  16949. v2, changed2 := fastpathTV.DecMapBoolIntV(*v, fastpathCheckNilFalse, true, d)
  16950. if changed2 {
  16951. *v = v2
  16952. }
  16953. case map[bool]int8:
  16954. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, d)
  16955. case *map[bool]int8:
  16956. v2, changed2 := fastpathTV.DecMapBoolInt8V(*v, fastpathCheckNilFalse, true, d)
  16957. if changed2 {
  16958. *v = v2
  16959. }
  16960. case map[bool]int16:
  16961. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, d)
  16962. case *map[bool]int16:
  16963. v2, changed2 := fastpathTV.DecMapBoolInt16V(*v, fastpathCheckNilFalse, true, d)
  16964. if changed2 {
  16965. *v = v2
  16966. }
  16967. case map[bool]int32:
  16968. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, d)
  16969. case *map[bool]int32:
  16970. v2, changed2 := fastpathTV.DecMapBoolInt32V(*v, fastpathCheckNilFalse, true, d)
  16971. if changed2 {
  16972. *v = v2
  16973. }
  16974. case map[bool]int64:
  16975. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, d)
  16976. case *map[bool]int64:
  16977. v2, changed2 := fastpathTV.DecMapBoolInt64V(*v, fastpathCheckNilFalse, true, d)
  16978. if changed2 {
  16979. *v = v2
  16980. }
  16981. case map[bool]float32:
  16982. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, d)
  16983. case *map[bool]float32:
  16984. v2, changed2 := fastpathTV.DecMapBoolFloat32V(*v, fastpathCheckNilFalse, true, d)
  16985. if changed2 {
  16986. *v = v2
  16987. }
  16988. case map[bool]float64:
  16989. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, d)
  16990. case *map[bool]float64:
  16991. v2, changed2 := fastpathTV.DecMapBoolFloat64V(*v, fastpathCheckNilFalse, true, d)
  16992. if changed2 {
  16993. *v = v2
  16994. }
  16995. case map[bool]bool:
  16996. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, d)
  16997. case *map[bool]bool:
  16998. v2, changed2 := fastpathTV.DecMapBoolBoolV(*v, fastpathCheckNilFalse, true, d)
  16999. if changed2 {
  17000. *v = v2
  17001. }
  17002. default:
  17003. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  17004. return false
  17005. }
  17006. return true
  17007. }
  17008. // -- -- fast path functions
  17009. func (f *decFnInfo) fastpathDecSliceIntfR(rv reflect.Value) {
  17010. array := f.seq == seqTypeArray
  17011. if !array && rv.CanAddr() {
  17012. vp := rv.Addr().Interface().(*[]interface{})
  17013. v, changed := fastpathTV.DecSliceIntfV(*vp, fastpathCheckNilFalse, !array, f.d)
  17014. if changed {
  17015. *vp = v
  17016. }
  17017. } else {
  17018. v := rv.Interface().([]interface{})
  17019. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, f.d)
  17020. }
  17021. }
  17022. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, checkNil bool, d *Decoder) {
  17023. v, changed := f.DecSliceIntfV(*vp, checkNil, true, d)
  17024. if changed {
  17025. *vp = v
  17026. }
  17027. }
  17028. func (_ fastpathT) DecSliceIntfV(v []interface{}, checkNil bool, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  17029. dd := d.d
  17030. if checkNil && dd.TryDecodeAsNil() {
  17031. if v != nil {
  17032. changed = true
  17033. }
  17034. return nil, changed
  17035. }
  17036. slh, containerLenS := d.decSliceHelperStart()
  17037. if containerLenS == 0 {
  17038. if canChange {
  17039. if v == nil {
  17040. v = []interface{}{}
  17041. } else if len(v) != 0 {
  17042. v = v[:0]
  17043. }
  17044. changed = true
  17045. }
  17046. slh.End()
  17047. return v, changed
  17048. }
  17049. if containerLenS > 0 {
  17050. x2read := containerLenS
  17051. var xtrunc bool
  17052. if containerLenS > cap(v) {
  17053. if canChange {
  17054. var xlen int
  17055. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17056. if xtrunc {
  17057. if xlen <= cap(v) {
  17058. v = v[:xlen]
  17059. } else {
  17060. v = make([]interface{}, xlen)
  17061. }
  17062. } else {
  17063. v = make([]interface{}, xlen)
  17064. }
  17065. changed = true
  17066. } else {
  17067. d.arrayCannotExpand(len(v), containerLenS)
  17068. }
  17069. x2read = len(v)
  17070. } else if containerLenS != len(v) {
  17071. if canChange {
  17072. v = v[:containerLenS]
  17073. changed = true
  17074. }
  17075. }
  17076. j := 0
  17077. for ; j < x2read; j++ {
  17078. slh.ElemContainerState(j)
  17079. d.decode(&v[j])
  17080. }
  17081. if xtrunc {
  17082. for ; j < containerLenS; j++ {
  17083. v = append(v, nil)
  17084. slh.ElemContainerState(j)
  17085. d.decode(&v[j])
  17086. }
  17087. } else if !canChange {
  17088. for ; j < containerLenS; j++ {
  17089. slh.ElemContainerState(j)
  17090. d.swallow()
  17091. }
  17092. }
  17093. } else {
  17094. breakFound := dd.CheckBreak()
  17095. if breakFound {
  17096. if canChange {
  17097. if v == nil {
  17098. v = []interface{}{}
  17099. } else if len(v) != 0 {
  17100. v = v[:0]
  17101. }
  17102. changed = true
  17103. }
  17104. slh.End()
  17105. return v, changed
  17106. }
  17107. if cap(v) == 0 {
  17108. v = make([]interface{}, 1, 4)
  17109. changed = true
  17110. }
  17111. j := 0
  17112. for ; !breakFound; j++ {
  17113. if j >= len(v) {
  17114. if canChange {
  17115. v = append(v, nil)
  17116. changed = true
  17117. } else {
  17118. d.arrayCannotExpand(len(v), j+1)
  17119. }
  17120. }
  17121. slh.ElemContainerState(j)
  17122. if j < len(v) {
  17123. d.decode(&v[j])
  17124. } else {
  17125. d.swallow()
  17126. }
  17127. breakFound = dd.CheckBreak()
  17128. }
  17129. if canChange && j < len(v) {
  17130. v = v[:j]
  17131. changed = true
  17132. }
  17133. }
  17134. slh.End()
  17135. return v, changed
  17136. }
  17137. func (f *decFnInfo) fastpathDecSliceStringR(rv reflect.Value) {
  17138. array := f.seq == seqTypeArray
  17139. if !array && rv.CanAddr() {
  17140. vp := rv.Addr().Interface().(*[]string)
  17141. v, changed := fastpathTV.DecSliceStringV(*vp, fastpathCheckNilFalse, !array, f.d)
  17142. if changed {
  17143. *vp = v
  17144. }
  17145. } else {
  17146. v := rv.Interface().([]string)
  17147. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, f.d)
  17148. }
  17149. }
  17150. func (f fastpathT) DecSliceStringX(vp *[]string, checkNil bool, d *Decoder) {
  17151. v, changed := f.DecSliceStringV(*vp, checkNil, true, d)
  17152. if changed {
  17153. *vp = v
  17154. }
  17155. }
  17156. func (_ fastpathT) DecSliceStringV(v []string, checkNil bool, canChange bool, d *Decoder) (_ []string, changed bool) {
  17157. dd := d.d
  17158. if checkNil && dd.TryDecodeAsNil() {
  17159. if v != nil {
  17160. changed = true
  17161. }
  17162. return nil, changed
  17163. }
  17164. slh, containerLenS := d.decSliceHelperStart()
  17165. if containerLenS == 0 {
  17166. if canChange {
  17167. if v == nil {
  17168. v = []string{}
  17169. } else if len(v) != 0 {
  17170. v = v[:0]
  17171. }
  17172. changed = true
  17173. }
  17174. slh.End()
  17175. return v, changed
  17176. }
  17177. if containerLenS > 0 {
  17178. x2read := containerLenS
  17179. var xtrunc bool
  17180. if containerLenS > cap(v) {
  17181. if canChange {
  17182. var xlen int
  17183. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17184. if xtrunc {
  17185. if xlen <= cap(v) {
  17186. v = v[:xlen]
  17187. } else {
  17188. v = make([]string, xlen)
  17189. }
  17190. } else {
  17191. v = make([]string, xlen)
  17192. }
  17193. changed = true
  17194. } else {
  17195. d.arrayCannotExpand(len(v), containerLenS)
  17196. }
  17197. x2read = len(v)
  17198. } else if containerLenS != len(v) {
  17199. if canChange {
  17200. v = v[:containerLenS]
  17201. changed = true
  17202. }
  17203. }
  17204. j := 0
  17205. for ; j < x2read; j++ {
  17206. slh.ElemContainerState(j)
  17207. v[j] = dd.DecodeString()
  17208. }
  17209. if xtrunc {
  17210. for ; j < containerLenS; j++ {
  17211. v = append(v, "")
  17212. slh.ElemContainerState(j)
  17213. v[j] = dd.DecodeString()
  17214. }
  17215. } else if !canChange {
  17216. for ; j < containerLenS; j++ {
  17217. slh.ElemContainerState(j)
  17218. d.swallow()
  17219. }
  17220. }
  17221. } else {
  17222. breakFound := dd.CheckBreak()
  17223. if breakFound {
  17224. if canChange {
  17225. if v == nil {
  17226. v = []string{}
  17227. } else if len(v) != 0 {
  17228. v = v[:0]
  17229. }
  17230. changed = true
  17231. }
  17232. slh.End()
  17233. return v, changed
  17234. }
  17235. if cap(v) == 0 {
  17236. v = make([]string, 1, 4)
  17237. changed = true
  17238. }
  17239. j := 0
  17240. for ; !breakFound; j++ {
  17241. if j >= len(v) {
  17242. if canChange {
  17243. v = append(v, "")
  17244. changed = true
  17245. } else {
  17246. d.arrayCannotExpand(len(v), j+1)
  17247. }
  17248. }
  17249. slh.ElemContainerState(j)
  17250. if j < len(v) {
  17251. v[j] = dd.DecodeString()
  17252. } else {
  17253. d.swallow()
  17254. }
  17255. breakFound = dd.CheckBreak()
  17256. }
  17257. if canChange && j < len(v) {
  17258. v = v[:j]
  17259. changed = true
  17260. }
  17261. }
  17262. slh.End()
  17263. return v, changed
  17264. }
  17265. func (f *decFnInfo) fastpathDecSliceFloat32R(rv reflect.Value) {
  17266. array := f.seq == seqTypeArray
  17267. if !array && rv.CanAddr() {
  17268. vp := rv.Addr().Interface().(*[]float32)
  17269. v, changed := fastpathTV.DecSliceFloat32V(*vp, fastpathCheckNilFalse, !array, f.d)
  17270. if changed {
  17271. *vp = v
  17272. }
  17273. } else {
  17274. v := rv.Interface().([]float32)
  17275. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, f.d)
  17276. }
  17277. }
  17278. func (f fastpathT) DecSliceFloat32X(vp *[]float32, checkNil bool, d *Decoder) {
  17279. v, changed := f.DecSliceFloat32V(*vp, checkNil, true, d)
  17280. if changed {
  17281. *vp = v
  17282. }
  17283. }
  17284. func (_ fastpathT) DecSliceFloat32V(v []float32, checkNil bool, canChange bool, d *Decoder) (_ []float32, changed bool) {
  17285. dd := d.d
  17286. if checkNil && dd.TryDecodeAsNil() {
  17287. if v != nil {
  17288. changed = true
  17289. }
  17290. return nil, changed
  17291. }
  17292. slh, containerLenS := d.decSliceHelperStart()
  17293. if containerLenS == 0 {
  17294. if canChange {
  17295. if v == nil {
  17296. v = []float32{}
  17297. } else if len(v) != 0 {
  17298. v = v[:0]
  17299. }
  17300. changed = true
  17301. }
  17302. slh.End()
  17303. return v, changed
  17304. }
  17305. if containerLenS > 0 {
  17306. x2read := containerLenS
  17307. var xtrunc bool
  17308. if containerLenS > cap(v) {
  17309. if canChange {
  17310. var xlen int
  17311. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17312. if xtrunc {
  17313. if xlen <= cap(v) {
  17314. v = v[:xlen]
  17315. } else {
  17316. v = make([]float32, xlen)
  17317. }
  17318. } else {
  17319. v = make([]float32, xlen)
  17320. }
  17321. changed = true
  17322. } else {
  17323. d.arrayCannotExpand(len(v), containerLenS)
  17324. }
  17325. x2read = len(v)
  17326. } else if containerLenS != len(v) {
  17327. if canChange {
  17328. v = v[:containerLenS]
  17329. changed = true
  17330. }
  17331. }
  17332. j := 0
  17333. for ; j < x2read; j++ {
  17334. slh.ElemContainerState(j)
  17335. v[j] = float32(dd.DecodeFloat(true))
  17336. }
  17337. if xtrunc {
  17338. for ; j < containerLenS; j++ {
  17339. v = append(v, 0)
  17340. slh.ElemContainerState(j)
  17341. v[j] = float32(dd.DecodeFloat(true))
  17342. }
  17343. } else if !canChange {
  17344. for ; j < containerLenS; j++ {
  17345. slh.ElemContainerState(j)
  17346. d.swallow()
  17347. }
  17348. }
  17349. } else {
  17350. breakFound := dd.CheckBreak()
  17351. if breakFound {
  17352. if canChange {
  17353. if v == nil {
  17354. v = []float32{}
  17355. } else if len(v) != 0 {
  17356. v = v[:0]
  17357. }
  17358. changed = true
  17359. }
  17360. slh.End()
  17361. return v, changed
  17362. }
  17363. if cap(v) == 0 {
  17364. v = make([]float32, 1, 4)
  17365. changed = true
  17366. }
  17367. j := 0
  17368. for ; !breakFound; j++ {
  17369. if j >= len(v) {
  17370. if canChange {
  17371. v = append(v, 0)
  17372. changed = true
  17373. } else {
  17374. d.arrayCannotExpand(len(v), j+1)
  17375. }
  17376. }
  17377. slh.ElemContainerState(j)
  17378. if j < len(v) {
  17379. v[j] = float32(dd.DecodeFloat(true))
  17380. } else {
  17381. d.swallow()
  17382. }
  17383. breakFound = dd.CheckBreak()
  17384. }
  17385. if canChange && j < len(v) {
  17386. v = v[:j]
  17387. changed = true
  17388. }
  17389. }
  17390. slh.End()
  17391. return v, changed
  17392. }
  17393. func (f *decFnInfo) fastpathDecSliceFloat64R(rv reflect.Value) {
  17394. array := f.seq == seqTypeArray
  17395. if !array && rv.CanAddr() {
  17396. vp := rv.Addr().Interface().(*[]float64)
  17397. v, changed := fastpathTV.DecSliceFloat64V(*vp, fastpathCheckNilFalse, !array, f.d)
  17398. if changed {
  17399. *vp = v
  17400. }
  17401. } else {
  17402. v := rv.Interface().([]float64)
  17403. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, f.d)
  17404. }
  17405. }
  17406. func (f fastpathT) DecSliceFloat64X(vp *[]float64, checkNil bool, d *Decoder) {
  17407. v, changed := f.DecSliceFloat64V(*vp, checkNil, true, d)
  17408. if changed {
  17409. *vp = v
  17410. }
  17411. }
  17412. func (_ fastpathT) DecSliceFloat64V(v []float64, checkNil bool, canChange bool, d *Decoder) (_ []float64, changed bool) {
  17413. dd := d.d
  17414. if checkNil && dd.TryDecodeAsNil() {
  17415. if v != nil {
  17416. changed = true
  17417. }
  17418. return nil, changed
  17419. }
  17420. slh, containerLenS := d.decSliceHelperStart()
  17421. if containerLenS == 0 {
  17422. if canChange {
  17423. if v == nil {
  17424. v = []float64{}
  17425. } else if len(v) != 0 {
  17426. v = v[:0]
  17427. }
  17428. changed = true
  17429. }
  17430. slh.End()
  17431. return v, changed
  17432. }
  17433. if containerLenS > 0 {
  17434. x2read := containerLenS
  17435. var xtrunc bool
  17436. if containerLenS > cap(v) {
  17437. if canChange {
  17438. var xlen int
  17439. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17440. if xtrunc {
  17441. if xlen <= cap(v) {
  17442. v = v[:xlen]
  17443. } else {
  17444. v = make([]float64, xlen)
  17445. }
  17446. } else {
  17447. v = make([]float64, xlen)
  17448. }
  17449. changed = true
  17450. } else {
  17451. d.arrayCannotExpand(len(v), containerLenS)
  17452. }
  17453. x2read = len(v)
  17454. } else if containerLenS != len(v) {
  17455. if canChange {
  17456. v = v[:containerLenS]
  17457. changed = true
  17458. }
  17459. }
  17460. j := 0
  17461. for ; j < x2read; j++ {
  17462. slh.ElemContainerState(j)
  17463. v[j] = dd.DecodeFloat(false)
  17464. }
  17465. if xtrunc {
  17466. for ; j < containerLenS; j++ {
  17467. v = append(v, 0)
  17468. slh.ElemContainerState(j)
  17469. v[j] = dd.DecodeFloat(false)
  17470. }
  17471. } else if !canChange {
  17472. for ; j < containerLenS; j++ {
  17473. slh.ElemContainerState(j)
  17474. d.swallow()
  17475. }
  17476. }
  17477. } else {
  17478. breakFound := dd.CheckBreak()
  17479. if breakFound {
  17480. if canChange {
  17481. if v == nil {
  17482. v = []float64{}
  17483. } else if len(v) != 0 {
  17484. v = v[:0]
  17485. }
  17486. changed = true
  17487. }
  17488. slh.End()
  17489. return v, changed
  17490. }
  17491. if cap(v) == 0 {
  17492. v = make([]float64, 1, 4)
  17493. changed = true
  17494. }
  17495. j := 0
  17496. for ; !breakFound; j++ {
  17497. if j >= len(v) {
  17498. if canChange {
  17499. v = append(v, 0)
  17500. changed = true
  17501. } else {
  17502. d.arrayCannotExpand(len(v), j+1)
  17503. }
  17504. }
  17505. slh.ElemContainerState(j)
  17506. if j < len(v) {
  17507. v[j] = dd.DecodeFloat(false)
  17508. } else {
  17509. d.swallow()
  17510. }
  17511. breakFound = dd.CheckBreak()
  17512. }
  17513. if canChange && j < len(v) {
  17514. v = v[:j]
  17515. changed = true
  17516. }
  17517. }
  17518. slh.End()
  17519. return v, changed
  17520. }
  17521. func (f *decFnInfo) fastpathDecSliceUintR(rv reflect.Value) {
  17522. array := f.seq == seqTypeArray
  17523. if !array && rv.CanAddr() {
  17524. vp := rv.Addr().Interface().(*[]uint)
  17525. v, changed := fastpathTV.DecSliceUintV(*vp, fastpathCheckNilFalse, !array, f.d)
  17526. if changed {
  17527. *vp = v
  17528. }
  17529. } else {
  17530. v := rv.Interface().([]uint)
  17531. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, f.d)
  17532. }
  17533. }
  17534. func (f fastpathT) DecSliceUintX(vp *[]uint, checkNil bool, d *Decoder) {
  17535. v, changed := f.DecSliceUintV(*vp, checkNil, true, d)
  17536. if changed {
  17537. *vp = v
  17538. }
  17539. }
  17540. func (_ fastpathT) DecSliceUintV(v []uint, checkNil bool, canChange bool, d *Decoder) (_ []uint, changed bool) {
  17541. dd := d.d
  17542. if checkNil && dd.TryDecodeAsNil() {
  17543. if v != nil {
  17544. changed = true
  17545. }
  17546. return nil, changed
  17547. }
  17548. slh, containerLenS := d.decSliceHelperStart()
  17549. if containerLenS == 0 {
  17550. if canChange {
  17551. if v == nil {
  17552. v = []uint{}
  17553. } else if len(v) != 0 {
  17554. v = v[:0]
  17555. }
  17556. changed = true
  17557. }
  17558. slh.End()
  17559. return v, changed
  17560. }
  17561. if containerLenS > 0 {
  17562. x2read := containerLenS
  17563. var xtrunc bool
  17564. if containerLenS > cap(v) {
  17565. if canChange {
  17566. var xlen int
  17567. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17568. if xtrunc {
  17569. if xlen <= cap(v) {
  17570. v = v[:xlen]
  17571. } else {
  17572. v = make([]uint, xlen)
  17573. }
  17574. } else {
  17575. v = make([]uint, xlen)
  17576. }
  17577. changed = true
  17578. } else {
  17579. d.arrayCannotExpand(len(v), containerLenS)
  17580. }
  17581. x2read = len(v)
  17582. } else if containerLenS != len(v) {
  17583. if canChange {
  17584. v = v[:containerLenS]
  17585. changed = true
  17586. }
  17587. }
  17588. j := 0
  17589. for ; j < x2read; j++ {
  17590. slh.ElemContainerState(j)
  17591. v[j] = uint(dd.DecodeUint(uintBitsize))
  17592. }
  17593. if xtrunc {
  17594. for ; j < containerLenS; j++ {
  17595. v = append(v, 0)
  17596. slh.ElemContainerState(j)
  17597. v[j] = uint(dd.DecodeUint(uintBitsize))
  17598. }
  17599. } else if !canChange {
  17600. for ; j < containerLenS; j++ {
  17601. slh.ElemContainerState(j)
  17602. d.swallow()
  17603. }
  17604. }
  17605. } else {
  17606. breakFound := dd.CheckBreak()
  17607. if breakFound {
  17608. if canChange {
  17609. if v == nil {
  17610. v = []uint{}
  17611. } else if len(v) != 0 {
  17612. v = v[:0]
  17613. }
  17614. changed = true
  17615. }
  17616. slh.End()
  17617. return v, changed
  17618. }
  17619. if cap(v) == 0 {
  17620. v = make([]uint, 1, 4)
  17621. changed = true
  17622. }
  17623. j := 0
  17624. for ; !breakFound; j++ {
  17625. if j >= len(v) {
  17626. if canChange {
  17627. v = append(v, 0)
  17628. changed = true
  17629. } else {
  17630. d.arrayCannotExpand(len(v), j+1)
  17631. }
  17632. }
  17633. slh.ElemContainerState(j)
  17634. if j < len(v) {
  17635. v[j] = uint(dd.DecodeUint(uintBitsize))
  17636. } else {
  17637. d.swallow()
  17638. }
  17639. breakFound = dd.CheckBreak()
  17640. }
  17641. if canChange && j < len(v) {
  17642. v = v[:j]
  17643. changed = true
  17644. }
  17645. }
  17646. slh.End()
  17647. return v, changed
  17648. }
  17649. func (f *decFnInfo) fastpathDecSliceUint16R(rv reflect.Value) {
  17650. array := f.seq == seqTypeArray
  17651. if !array && rv.CanAddr() {
  17652. vp := rv.Addr().Interface().(*[]uint16)
  17653. v, changed := fastpathTV.DecSliceUint16V(*vp, fastpathCheckNilFalse, !array, f.d)
  17654. if changed {
  17655. *vp = v
  17656. }
  17657. } else {
  17658. v := rv.Interface().([]uint16)
  17659. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, f.d)
  17660. }
  17661. }
  17662. func (f fastpathT) DecSliceUint16X(vp *[]uint16, checkNil bool, d *Decoder) {
  17663. v, changed := f.DecSliceUint16V(*vp, checkNil, true, d)
  17664. if changed {
  17665. *vp = v
  17666. }
  17667. }
  17668. func (_ fastpathT) DecSliceUint16V(v []uint16, checkNil bool, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  17669. dd := d.d
  17670. if checkNil && dd.TryDecodeAsNil() {
  17671. if v != nil {
  17672. changed = true
  17673. }
  17674. return nil, changed
  17675. }
  17676. slh, containerLenS := d.decSliceHelperStart()
  17677. if containerLenS == 0 {
  17678. if canChange {
  17679. if v == nil {
  17680. v = []uint16{}
  17681. } else if len(v) != 0 {
  17682. v = v[:0]
  17683. }
  17684. changed = true
  17685. }
  17686. slh.End()
  17687. return v, changed
  17688. }
  17689. if containerLenS > 0 {
  17690. x2read := containerLenS
  17691. var xtrunc bool
  17692. if containerLenS > cap(v) {
  17693. if canChange {
  17694. var xlen int
  17695. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  17696. if xtrunc {
  17697. if xlen <= cap(v) {
  17698. v = v[:xlen]
  17699. } else {
  17700. v = make([]uint16, xlen)
  17701. }
  17702. } else {
  17703. v = make([]uint16, xlen)
  17704. }
  17705. changed = true
  17706. } else {
  17707. d.arrayCannotExpand(len(v), containerLenS)
  17708. }
  17709. x2read = len(v)
  17710. } else if containerLenS != len(v) {
  17711. if canChange {
  17712. v = v[:containerLenS]
  17713. changed = true
  17714. }
  17715. }
  17716. j := 0
  17717. for ; j < x2read; j++ {
  17718. slh.ElemContainerState(j)
  17719. v[j] = uint16(dd.DecodeUint(16))
  17720. }
  17721. if xtrunc {
  17722. for ; j < containerLenS; j++ {
  17723. v = append(v, 0)
  17724. slh.ElemContainerState(j)
  17725. v[j] = uint16(dd.DecodeUint(16))
  17726. }
  17727. } else if !canChange {
  17728. for ; j < containerLenS; j++ {
  17729. slh.ElemContainerState(j)
  17730. d.swallow()
  17731. }
  17732. }
  17733. } else {
  17734. breakFound := dd.CheckBreak()
  17735. if breakFound {
  17736. if canChange {
  17737. if v == nil {
  17738. v = []uint16{}
  17739. } else if len(v) != 0 {
  17740. v = v[:0]
  17741. }
  17742. changed = true
  17743. }
  17744. slh.End()
  17745. return v, changed
  17746. }
  17747. if cap(v) == 0 {
  17748. v = make([]uint16, 1, 4)
  17749. changed = true
  17750. }
  17751. j := 0
  17752. for ; !breakFound; j++ {
  17753. if j >= len(v) {
  17754. if canChange {
  17755. v = append(v, 0)
  17756. changed = true
  17757. } else {
  17758. d.arrayCannotExpand(len(v), j+1)
  17759. }
  17760. }
  17761. slh.ElemContainerState(j)
  17762. if j < len(v) {
  17763. v[j] = uint16(dd.DecodeUint(16))
  17764. } else {
  17765. d.swallow()
  17766. }
  17767. breakFound = dd.CheckBreak()
  17768. }
  17769. if canChange && j < len(v) {
  17770. v = v[:j]
  17771. changed = true
  17772. }
  17773. }
  17774. slh.End()
  17775. return v, changed
  17776. }
  17777. func (f *decFnInfo) fastpathDecSliceUint32R(rv reflect.Value) {
  17778. array := f.seq == seqTypeArray
  17779. if !array && rv.CanAddr() {
  17780. vp := rv.Addr().Interface().(*[]uint32)
  17781. v, changed := fastpathTV.DecSliceUint32V(*vp, fastpathCheckNilFalse, !array, f.d)
  17782. if changed {
  17783. *vp = v
  17784. }
  17785. } else {
  17786. v := rv.Interface().([]uint32)
  17787. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, f.d)
  17788. }
  17789. }
  17790. func (f fastpathT) DecSliceUint32X(vp *[]uint32, checkNil bool, d *Decoder) {
  17791. v, changed := f.DecSliceUint32V(*vp, checkNil, true, d)
  17792. if changed {
  17793. *vp = v
  17794. }
  17795. }
  17796. func (_ fastpathT) DecSliceUint32V(v []uint32, checkNil bool, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  17797. dd := d.d
  17798. if checkNil && dd.TryDecodeAsNil() {
  17799. if v != nil {
  17800. changed = true
  17801. }
  17802. return nil, changed
  17803. }
  17804. slh, containerLenS := d.decSliceHelperStart()
  17805. if containerLenS == 0 {
  17806. if canChange {
  17807. if v == nil {
  17808. v = []uint32{}
  17809. } else if len(v) != 0 {
  17810. v = v[:0]
  17811. }
  17812. changed = true
  17813. }
  17814. slh.End()
  17815. return v, changed
  17816. }
  17817. if containerLenS > 0 {
  17818. x2read := containerLenS
  17819. var xtrunc bool
  17820. if containerLenS > cap(v) {
  17821. if canChange {
  17822. var xlen int
  17823. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17824. if xtrunc {
  17825. if xlen <= cap(v) {
  17826. v = v[:xlen]
  17827. } else {
  17828. v = make([]uint32, xlen)
  17829. }
  17830. } else {
  17831. v = make([]uint32, xlen)
  17832. }
  17833. changed = true
  17834. } else {
  17835. d.arrayCannotExpand(len(v), containerLenS)
  17836. }
  17837. x2read = len(v)
  17838. } else if containerLenS != len(v) {
  17839. if canChange {
  17840. v = v[:containerLenS]
  17841. changed = true
  17842. }
  17843. }
  17844. j := 0
  17845. for ; j < x2read; j++ {
  17846. slh.ElemContainerState(j)
  17847. v[j] = uint32(dd.DecodeUint(32))
  17848. }
  17849. if xtrunc {
  17850. for ; j < containerLenS; j++ {
  17851. v = append(v, 0)
  17852. slh.ElemContainerState(j)
  17853. v[j] = uint32(dd.DecodeUint(32))
  17854. }
  17855. } else if !canChange {
  17856. for ; j < containerLenS; j++ {
  17857. slh.ElemContainerState(j)
  17858. d.swallow()
  17859. }
  17860. }
  17861. } else {
  17862. breakFound := dd.CheckBreak()
  17863. if breakFound {
  17864. if canChange {
  17865. if v == nil {
  17866. v = []uint32{}
  17867. } else if len(v) != 0 {
  17868. v = v[:0]
  17869. }
  17870. changed = true
  17871. }
  17872. slh.End()
  17873. return v, changed
  17874. }
  17875. if cap(v) == 0 {
  17876. v = make([]uint32, 1, 4)
  17877. changed = true
  17878. }
  17879. j := 0
  17880. for ; !breakFound; j++ {
  17881. if j >= len(v) {
  17882. if canChange {
  17883. v = append(v, 0)
  17884. changed = true
  17885. } else {
  17886. d.arrayCannotExpand(len(v), j+1)
  17887. }
  17888. }
  17889. slh.ElemContainerState(j)
  17890. if j < len(v) {
  17891. v[j] = uint32(dd.DecodeUint(32))
  17892. } else {
  17893. d.swallow()
  17894. }
  17895. breakFound = dd.CheckBreak()
  17896. }
  17897. if canChange && j < len(v) {
  17898. v = v[:j]
  17899. changed = true
  17900. }
  17901. }
  17902. slh.End()
  17903. return v, changed
  17904. }
  17905. func (f *decFnInfo) fastpathDecSliceUint64R(rv reflect.Value) {
  17906. array := f.seq == seqTypeArray
  17907. if !array && rv.CanAddr() {
  17908. vp := rv.Addr().Interface().(*[]uint64)
  17909. v, changed := fastpathTV.DecSliceUint64V(*vp, fastpathCheckNilFalse, !array, f.d)
  17910. if changed {
  17911. *vp = v
  17912. }
  17913. } else {
  17914. v := rv.Interface().([]uint64)
  17915. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, f.d)
  17916. }
  17917. }
  17918. func (f fastpathT) DecSliceUint64X(vp *[]uint64, checkNil bool, d *Decoder) {
  17919. v, changed := f.DecSliceUint64V(*vp, checkNil, true, d)
  17920. if changed {
  17921. *vp = v
  17922. }
  17923. }
  17924. func (_ fastpathT) DecSliceUint64V(v []uint64, checkNil bool, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  17925. dd := d.d
  17926. if checkNil && dd.TryDecodeAsNil() {
  17927. if v != nil {
  17928. changed = true
  17929. }
  17930. return nil, changed
  17931. }
  17932. slh, containerLenS := d.decSliceHelperStart()
  17933. if containerLenS == 0 {
  17934. if canChange {
  17935. if v == nil {
  17936. v = []uint64{}
  17937. } else if len(v) != 0 {
  17938. v = v[:0]
  17939. }
  17940. changed = true
  17941. }
  17942. slh.End()
  17943. return v, changed
  17944. }
  17945. if containerLenS > 0 {
  17946. x2read := containerLenS
  17947. var xtrunc bool
  17948. if containerLenS > cap(v) {
  17949. if canChange {
  17950. var xlen int
  17951. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17952. if xtrunc {
  17953. if xlen <= cap(v) {
  17954. v = v[:xlen]
  17955. } else {
  17956. v = make([]uint64, xlen)
  17957. }
  17958. } else {
  17959. v = make([]uint64, xlen)
  17960. }
  17961. changed = true
  17962. } else {
  17963. d.arrayCannotExpand(len(v), containerLenS)
  17964. }
  17965. x2read = len(v)
  17966. } else if containerLenS != len(v) {
  17967. if canChange {
  17968. v = v[:containerLenS]
  17969. changed = true
  17970. }
  17971. }
  17972. j := 0
  17973. for ; j < x2read; j++ {
  17974. slh.ElemContainerState(j)
  17975. v[j] = dd.DecodeUint(64)
  17976. }
  17977. if xtrunc {
  17978. for ; j < containerLenS; j++ {
  17979. v = append(v, 0)
  17980. slh.ElemContainerState(j)
  17981. v[j] = dd.DecodeUint(64)
  17982. }
  17983. } else if !canChange {
  17984. for ; j < containerLenS; j++ {
  17985. slh.ElemContainerState(j)
  17986. d.swallow()
  17987. }
  17988. }
  17989. } else {
  17990. breakFound := dd.CheckBreak()
  17991. if breakFound {
  17992. if canChange {
  17993. if v == nil {
  17994. v = []uint64{}
  17995. } else if len(v) != 0 {
  17996. v = v[:0]
  17997. }
  17998. changed = true
  17999. }
  18000. slh.End()
  18001. return v, changed
  18002. }
  18003. if cap(v) == 0 {
  18004. v = make([]uint64, 1, 4)
  18005. changed = true
  18006. }
  18007. j := 0
  18008. for ; !breakFound; j++ {
  18009. if j >= len(v) {
  18010. if canChange {
  18011. v = append(v, 0)
  18012. changed = true
  18013. } else {
  18014. d.arrayCannotExpand(len(v), j+1)
  18015. }
  18016. }
  18017. slh.ElemContainerState(j)
  18018. if j < len(v) {
  18019. v[j] = dd.DecodeUint(64)
  18020. } else {
  18021. d.swallow()
  18022. }
  18023. breakFound = dd.CheckBreak()
  18024. }
  18025. if canChange && j < len(v) {
  18026. v = v[:j]
  18027. changed = true
  18028. }
  18029. }
  18030. slh.End()
  18031. return v, changed
  18032. }
  18033. func (f *decFnInfo) fastpathDecSliceUintptrR(rv reflect.Value) {
  18034. array := f.seq == seqTypeArray
  18035. if !array && rv.CanAddr() {
  18036. vp := rv.Addr().Interface().(*[]uintptr)
  18037. v, changed := fastpathTV.DecSliceUintptrV(*vp, fastpathCheckNilFalse, !array, f.d)
  18038. if changed {
  18039. *vp = v
  18040. }
  18041. } else {
  18042. v := rv.Interface().([]uintptr)
  18043. fastpathTV.DecSliceUintptrV(v, fastpathCheckNilFalse, false, f.d)
  18044. }
  18045. }
  18046. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, checkNil bool, d *Decoder) {
  18047. v, changed := f.DecSliceUintptrV(*vp, checkNil, true, d)
  18048. if changed {
  18049. *vp = v
  18050. }
  18051. }
  18052. func (_ fastpathT) DecSliceUintptrV(v []uintptr, checkNil bool, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  18053. dd := d.d
  18054. if checkNil && dd.TryDecodeAsNil() {
  18055. if v != nil {
  18056. changed = true
  18057. }
  18058. return nil, changed
  18059. }
  18060. slh, containerLenS := d.decSliceHelperStart()
  18061. if containerLenS == 0 {
  18062. if canChange {
  18063. if v == nil {
  18064. v = []uintptr{}
  18065. } else if len(v) != 0 {
  18066. v = v[:0]
  18067. }
  18068. changed = true
  18069. }
  18070. slh.End()
  18071. return v, changed
  18072. }
  18073. if containerLenS > 0 {
  18074. x2read := containerLenS
  18075. var xtrunc bool
  18076. if containerLenS > cap(v) {
  18077. if canChange {
  18078. var xlen int
  18079. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18080. if xtrunc {
  18081. if xlen <= cap(v) {
  18082. v = v[:xlen]
  18083. } else {
  18084. v = make([]uintptr, xlen)
  18085. }
  18086. } else {
  18087. v = make([]uintptr, xlen)
  18088. }
  18089. changed = true
  18090. } else {
  18091. d.arrayCannotExpand(len(v), containerLenS)
  18092. }
  18093. x2read = len(v)
  18094. } else if containerLenS != len(v) {
  18095. if canChange {
  18096. v = v[:containerLenS]
  18097. changed = true
  18098. }
  18099. }
  18100. j := 0
  18101. for ; j < x2read; j++ {
  18102. slh.ElemContainerState(j)
  18103. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  18104. }
  18105. if xtrunc {
  18106. for ; j < containerLenS; j++ {
  18107. v = append(v, 0)
  18108. slh.ElemContainerState(j)
  18109. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  18110. }
  18111. } else if !canChange {
  18112. for ; j < containerLenS; j++ {
  18113. slh.ElemContainerState(j)
  18114. d.swallow()
  18115. }
  18116. }
  18117. } else {
  18118. breakFound := dd.CheckBreak()
  18119. if breakFound {
  18120. if canChange {
  18121. if v == nil {
  18122. v = []uintptr{}
  18123. } else if len(v) != 0 {
  18124. v = v[:0]
  18125. }
  18126. changed = true
  18127. }
  18128. slh.End()
  18129. return v, changed
  18130. }
  18131. if cap(v) == 0 {
  18132. v = make([]uintptr, 1, 4)
  18133. changed = true
  18134. }
  18135. j := 0
  18136. for ; !breakFound; j++ {
  18137. if j >= len(v) {
  18138. if canChange {
  18139. v = append(v, 0)
  18140. changed = true
  18141. } else {
  18142. d.arrayCannotExpand(len(v), j+1)
  18143. }
  18144. }
  18145. slh.ElemContainerState(j)
  18146. if j < len(v) {
  18147. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  18148. } else {
  18149. d.swallow()
  18150. }
  18151. breakFound = dd.CheckBreak()
  18152. }
  18153. if canChange && j < len(v) {
  18154. v = v[:j]
  18155. changed = true
  18156. }
  18157. }
  18158. slh.End()
  18159. return v, changed
  18160. }
  18161. func (f *decFnInfo) fastpathDecSliceIntR(rv reflect.Value) {
  18162. array := f.seq == seqTypeArray
  18163. if !array && rv.CanAddr() {
  18164. vp := rv.Addr().Interface().(*[]int)
  18165. v, changed := fastpathTV.DecSliceIntV(*vp, fastpathCheckNilFalse, !array, f.d)
  18166. if changed {
  18167. *vp = v
  18168. }
  18169. } else {
  18170. v := rv.Interface().([]int)
  18171. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, f.d)
  18172. }
  18173. }
  18174. func (f fastpathT) DecSliceIntX(vp *[]int, checkNil bool, d *Decoder) {
  18175. v, changed := f.DecSliceIntV(*vp, checkNil, true, d)
  18176. if changed {
  18177. *vp = v
  18178. }
  18179. }
  18180. func (_ fastpathT) DecSliceIntV(v []int, checkNil bool, canChange bool, d *Decoder) (_ []int, changed bool) {
  18181. dd := d.d
  18182. if checkNil && dd.TryDecodeAsNil() {
  18183. if v != nil {
  18184. changed = true
  18185. }
  18186. return nil, changed
  18187. }
  18188. slh, containerLenS := d.decSliceHelperStart()
  18189. if containerLenS == 0 {
  18190. if canChange {
  18191. if v == nil {
  18192. v = []int{}
  18193. } else if len(v) != 0 {
  18194. v = v[:0]
  18195. }
  18196. changed = true
  18197. }
  18198. slh.End()
  18199. return v, changed
  18200. }
  18201. if containerLenS > 0 {
  18202. x2read := containerLenS
  18203. var xtrunc bool
  18204. if containerLenS > cap(v) {
  18205. if canChange {
  18206. var xlen int
  18207. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18208. if xtrunc {
  18209. if xlen <= cap(v) {
  18210. v = v[:xlen]
  18211. } else {
  18212. v = make([]int, xlen)
  18213. }
  18214. } else {
  18215. v = make([]int, xlen)
  18216. }
  18217. changed = true
  18218. } else {
  18219. d.arrayCannotExpand(len(v), containerLenS)
  18220. }
  18221. x2read = len(v)
  18222. } else if containerLenS != len(v) {
  18223. if canChange {
  18224. v = v[:containerLenS]
  18225. changed = true
  18226. }
  18227. }
  18228. j := 0
  18229. for ; j < x2read; j++ {
  18230. slh.ElemContainerState(j)
  18231. v[j] = int(dd.DecodeInt(intBitsize))
  18232. }
  18233. if xtrunc {
  18234. for ; j < containerLenS; j++ {
  18235. v = append(v, 0)
  18236. slh.ElemContainerState(j)
  18237. v[j] = int(dd.DecodeInt(intBitsize))
  18238. }
  18239. } else if !canChange {
  18240. for ; j < containerLenS; j++ {
  18241. slh.ElemContainerState(j)
  18242. d.swallow()
  18243. }
  18244. }
  18245. } else {
  18246. breakFound := dd.CheckBreak()
  18247. if breakFound {
  18248. if canChange {
  18249. if v == nil {
  18250. v = []int{}
  18251. } else if len(v) != 0 {
  18252. v = v[:0]
  18253. }
  18254. changed = true
  18255. }
  18256. slh.End()
  18257. return v, changed
  18258. }
  18259. if cap(v) == 0 {
  18260. v = make([]int, 1, 4)
  18261. changed = true
  18262. }
  18263. j := 0
  18264. for ; !breakFound; j++ {
  18265. if j >= len(v) {
  18266. if canChange {
  18267. v = append(v, 0)
  18268. changed = true
  18269. } else {
  18270. d.arrayCannotExpand(len(v), j+1)
  18271. }
  18272. }
  18273. slh.ElemContainerState(j)
  18274. if j < len(v) {
  18275. v[j] = int(dd.DecodeInt(intBitsize))
  18276. } else {
  18277. d.swallow()
  18278. }
  18279. breakFound = dd.CheckBreak()
  18280. }
  18281. if canChange && j < len(v) {
  18282. v = v[:j]
  18283. changed = true
  18284. }
  18285. }
  18286. slh.End()
  18287. return v, changed
  18288. }
  18289. func (f *decFnInfo) fastpathDecSliceInt8R(rv reflect.Value) {
  18290. array := f.seq == seqTypeArray
  18291. if !array && rv.CanAddr() {
  18292. vp := rv.Addr().Interface().(*[]int8)
  18293. v, changed := fastpathTV.DecSliceInt8V(*vp, fastpathCheckNilFalse, !array, f.d)
  18294. if changed {
  18295. *vp = v
  18296. }
  18297. } else {
  18298. v := rv.Interface().([]int8)
  18299. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, f.d)
  18300. }
  18301. }
  18302. func (f fastpathT) DecSliceInt8X(vp *[]int8, checkNil bool, d *Decoder) {
  18303. v, changed := f.DecSliceInt8V(*vp, checkNil, true, d)
  18304. if changed {
  18305. *vp = v
  18306. }
  18307. }
  18308. func (_ fastpathT) DecSliceInt8V(v []int8, checkNil bool, canChange bool, d *Decoder) (_ []int8, changed bool) {
  18309. dd := d.d
  18310. if checkNil && dd.TryDecodeAsNil() {
  18311. if v != nil {
  18312. changed = true
  18313. }
  18314. return nil, changed
  18315. }
  18316. slh, containerLenS := d.decSliceHelperStart()
  18317. if containerLenS == 0 {
  18318. if canChange {
  18319. if v == nil {
  18320. v = []int8{}
  18321. } else if len(v) != 0 {
  18322. v = v[:0]
  18323. }
  18324. changed = true
  18325. }
  18326. slh.End()
  18327. return v, changed
  18328. }
  18329. if containerLenS > 0 {
  18330. x2read := containerLenS
  18331. var xtrunc bool
  18332. if containerLenS > cap(v) {
  18333. if canChange {
  18334. var xlen int
  18335. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18336. if xtrunc {
  18337. if xlen <= cap(v) {
  18338. v = v[:xlen]
  18339. } else {
  18340. v = make([]int8, xlen)
  18341. }
  18342. } else {
  18343. v = make([]int8, xlen)
  18344. }
  18345. changed = true
  18346. } else {
  18347. d.arrayCannotExpand(len(v), containerLenS)
  18348. }
  18349. x2read = len(v)
  18350. } else if containerLenS != len(v) {
  18351. if canChange {
  18352. v = v[:containerLenS]
  18353. changed = true
  18354. }
  18355. }
  18356. j := 0
  18357. for ; j < x2read; j++ {
  18358. slh.ElemContainerState(j)
  18359. v[j] = int8(dd.DecodeInt(8))
  18360. }
  18361. if xtrunc {
  18362. for ; j < containerLenS; j++ {
  18363. v = append(v, 0)
  18364. slh.ElemContainerState(j)
  18365. v[j] = int8(dd.DecodeInt(8))
  18366. }
  18367. } else if !canChange {
  18368. for ; j < containerLenS; j++ {
  18369. slh.ElemContainerState(j)
  18370. d.swallow()
  18371. }
  18372. }
  18373. } else {
  18374. breakFound := dd.CheckBreak()
  18375. if breakFound {
  18376. if canChange {
  18377. if v == nil {
  18378. v = []int8{}
  18379. } else if len(v) != 0 {
  18380. v = v[:0]
  18381. }
  18382. changed = true
  18383. }
  18384. slh.End()
  18385. return v, changed
  18386. }
  18387. if cap(v) == 0 {
  18388. v = make([]int8, 1, 4)
  18389. changed = true
  18390. }
  18391. j := 0
  18392. for ; !breakFound; j++ {
  18393. if j >= len(v) {
  18394. if canChange {
  18395. v = append(v, 0)
  18396. changed = true
  18397. } else {
  18398. d.arrayCannotExpand(len(v), j+1)
  18399. }
  18400. }
  18401. slh.ElemContainerState(j)
  18402. if j < len(v) {
  18403. v[j] = int8(dd.DecodeInt(8))
  18404. } else {
  18405. d.swallow()
  18406. }
  18407. breakFound = dd.CheckBreak()
  18408. }
  18409. if canChange && j < len(v) {
  18410. v = v[:j]
  18411. changed = true
  18412. }
  18413. }
  18414. slh.End()
  18415. return v, changed
  18416. }
  18417. func (f *decFnInfo) fastpathDecSliceInt16R(rv reflect.Value) {
  18418. array := f.seq == seqTypeArray
  18419. if !array && rv.CanAddr() {
  18420. vp := rv.Addr().Interface().(*[]int16)
  18421. v, changed := fastpathTV.DecSliceInt16V(*vp, fastpathCheckNilFalse, !array, f.d)
  18422. if changed {
  18423. *vp = v
  18424. }
  18425. } else {
  18426. v := rv.Interface().([]int16)
  18427. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, f.d)
  18428. }
  18429. }
  18430. func (f fastpathT) DecSliceInt16X(vp *[]int16, checkNil bool, d *Decoder) {
  18431. v, changed := f.DecSliceInt16V(*vp, checkNil, true, d)
  18432. if changed {
  18433. *vp = v
  18434. }
  18435. }
  18436. func (_ fastpathT) DecSliceInt16V(v []int16, checkNil bool, canChange bool, d *Decoder) (_ []int16, changed bool) {
  18437. dd := d.d
  18438. if checkNil && dd.TryDecodeAsNil() {
  18439. if v != nil {
  18440. changed = true
  18441. }
  18442. return nil, changed
  18443. }
  18444. slh, containerLenS := d.decSliceHelperStart()
  18445. if containerLenS == 0 {
  18446. if canChange {
  18447. if v == nil {
  18448. v = []int16{}
  18449. } else if len(v) != 0 {
  18450. v = v[:0]
  18451. }
  18452. changed = true
  18453. }
  18454. slh.End()
  18455. return v, changed
  18456. }
  18457. if containerLenS > 0 {
  18458. x2read := containerLenS
  18459. var xtrunc bool
  18460. if containerLenS > cap(v) {
  18461. if canChange {
  18462. var xlen int
  18463. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18464. if xtrunc {
  18465. if xlen <= cap(v) {
  18466. v = v[:xlen]
  18467. } else {
  18468. v = make([]int16, xlen)
  18469. }
  18470. } else {
  18471. v = make([]int16, xlen)
  18472. }
  18473. changed = true
  18474. } else {
  18475. d.arrayCannotExpand(len(v), containerLenS)
  18476. }
  18477. x2read = len(v)
  18478. } else if containerLenS != len(v) {
  18479. if canChange {
  18480. v = v[:containerLenS]
  18481. changed = true
  18482. }
  18483. }
  18484. j := 0
  18485. for ; j < x2read; j++ {
  18486. slh.ElemContainerState(j)
  18487. v[j] = int16(dd.DecodeInt(16))
  18488. }
  18489. if xtrunc {
  18490. for ; j < containerLenS; j++ {
  18491. v = append(v, 0)
  18492. slh.ElemContainerState(j)
  18493. v[j] = int16(dd.DecodeInt(16))
  18494. }
  18495. } else if !canChange {
  18496. for ; j < containerLenS; j++ {
  18497. slh.ElemContainerState(j)
  18498. d.swallow()
  18499. }
  18500. }
  18501. } else {
  18502. breakFound := dd.CheckBreak()
  18503. if breakFound {
  18504. if canChange {
  18505. if v == nil {
  18506. v = []int16{}
  18507. } else if len(v) != 0 {
  18508. v = v[:0]
  18509. }
  18510. changed = true
  18511. }
  18512. slh.End()
  18513. return v, changed
  18514. }
  18515. if cap(v) == 0 {
  18516. v = make([]int16, 1, 4)
  18517. changed = true
  18518. }
  18519. j := 0
  18520. for ; !breakFound; j++ {
  18521. if j >= len(v) {
  18522. if canChange {
  18523. v = append(v, 0)
  18524. changed = true
  18525. } else {
  18526. d.arrayCannotExpand(len(v), j+1)
  18527. }
  18528. }
  18529. slh.ElemContainerState(j)
  18530. if j < len(v) {
  18531. v[j] = int16(dd.DecodeInt(16))
  18532. } else {
  18533. d.swallow()
  18534. }
  18535. breakFound = dd.CheckBreak()
  18536. }
  18537. if canChange && j < len(v) {
  18538. v = v[:j]
  18539. changed = true
  18540. }
  18541. }
  18542. slh.End()
  18543. return v, changed
  18544. }
  18545. func (f *decFnInfo) fastpathDecSliceInt32R(rv reflect.Value) {
  18546. array := f.seq == seqTypeArray
  18547. if !array && rv.CanAddr() {
  18548. vp := rv.Addr().Interface().(*[]int32)
  18549. v, changed := fastpathTV.DecSliceInt32V(*vp, fastpathCheckNilFalse, !array, f.d)
  18550. if changed {
  18551. *vp = v
  18552. }
  18553. } else {
  18554. v := rv.Interface().([]int32)
  18555. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, f.d)
  18556. }
  18557. }
  18558. func (f fastpathT) DecSliceInt32X(vp *[]int32, checkNil bool, d *Decoder) {
  18559. v, changed := f.DecSliceInt32V(*vp, checkNil, true, d)
  18560. if changed {
  18561. *vp = v
  18562. }
  18563. }
  18564. func (_ fastpathT) DecSliceInt32V(v []int32, checkNil bool, canChange bool, d *Decoder) (_ []int32, changed bool) {
  18565. dd := d.d
  18566. if checkNil && dd.TryDecodeAsNil() {
  18567. if v != nil {
  18568. changed = true
  18569. }
  18570. return nil, changed
  18571. }
  18572. slh, containerLenS := d.decSliceHelperStart()
  18573. if containerLenS == 0 {
  18574. if canChange {
  18575. if v == nil {
  18576. v = []int32{}
  18577. } else if len(v) != 0 {
  18578. v = v[:0]
  18579. }
  18580. changed = true
  18581. }
  18582. slh.End()
  18583. return v, changed
  18584. }
  18585. if containerLenS > 0 {
  18586. x2read := containerLenS
  18587. var xtrunc bool
  18588. if containerLenS > cap(v) {
  18589. if canChange {
  18590. var xlen int
  18591. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18592. if xtrunc {
  18593. if xlen <= cap(v) {
  18594. v = v[:xlen]
  18595. } else {
  18596. v = make([]int32, xlen)
  18597. }
  18598. } else {
  18599. v = make([]int32, xlen)
  18600. }
  18601. changed = true
  18602. } else {
  18603. d.arrayCannotExpand(len(v), containerLenS)
  18604. }
  18605. x2read = len(v)
  18606. } else if containerLenS != len(v) {
  18607. if canChange {
  18608. v = v[:containerLenS]
  18609. changed = true
  18610. }
  18611. }
  18612. j := 0
  18613. for ; j < x2read; j++ {
  18614. slh.ElemContainerState(j)
  18615. v[j] = int32(dd.DecodeInt(32))
  18616. }
  18617. if xtrunc {
  18618. for ; j < containerLenS; j++ {
  18619. v = append(v, 0)
  18620. slh.ElemContainerState(j)
  18621. v[j] = int32(dd.DecodeInt(32))
  18622. }
  18623. } else if !canChange {
  18624. for ; j < containerLenS; j++ {
  18625. slh.ElemContainerState(j)
  18626. d.swallow()
  18627. }
  18628. }
  18629. } else {
  18630. breakFound := dd.CheckBreak()
  18631. if breakFound {
  18632. if canChange {
  18633. if v == nil {
  18634. v = []int32{}
  18635. } else if len(v) != 0 {
  18636. v = v[:0]
  18637. }
  18638. changed = true
  18639. }
  18640. slh.End()
  18641. return v, changed
  18642. }
  18643. if cap(v) == 0 {
  18644. v = make([]int32, 1, 4)
  18645. changed = true
  18646. }
  18647. j := 0
  18648. for ; !breakFound; j++ {
  18649. if j >= len(v) {
  18650. if canChange {
  18651. v = append(v, 0)
  18652. changed = true
  18653. } else {
  18654. d.arrayCannotExpand(len(v), j+1)
  18655. }
  18656. }
  18657. slh.ElemContainerState(j)
  18658. if j < len(v) {
  18659. v[j] = int32(dd.DecodeInt(32))
  18660. } else {
  18661. d.swallow()
  18662. }
  18663. breakFound = dd.CheckBreak()
  18664. }
  18665. if canChange && j < len(v) {
  18666. v = v[:j]
  18667. changed = true
  18668. }
  18669. }
  18670. slh.End()
  18671. return v, changed
  18672. }
  18673. func (f *decFnInfo) fastpathDecSliceInt64R(rv reflect.Value) {
  18674. array := f.seq == seqTypeArray
  18675. if !array && rv.CanAddr() {
  18676. vp := rv.Addr().Interface().(*[]int64)
  18677. v, changed := fastpathTV.DecSliceInt64V(*vp, fastpathCheckNilFalse, !array, f.d)
  18678. if changed {
  18679. *vp = v
  18680. }
  18681. } else {
  18682. v := rv.Interface().([]int64)
  18683. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, f.d)
  18684. }
  18685. }
  18686. func (f fastpathT) DecSliceInt64X(vp *[]int64, checkNil bool, d *Decoder) {
  18687. v, changed := f.DecSliceInt64V(*vp, checkNil, true, d)
  18688. if changed {
  18689. *vp = v
  18690. }
  18691. }
  18692. func (_ fastpathT) DecSliceInt64V(v []int64, checkNil bool, canChange bool, d *Decoder) (_ []int64, changed bool) {
  18693. dd := d.d
  18694. if checkNil && dd.TryDecodeAsNil() {
  18695. if v != nil {
  18696. changed = true
  18697. }
  18698. return nil, changed
  18699. }
  18700. slh, containerLenS := d.decSliceHelperStart()
  18701. if containerLenS == 0 {
  18702. if canChange {
  18703. if v == nil {
  18704. v = []int64{}
  18705. } else if len(v) != 0 {
  18706. v = v[:0]
  18707. }
  18708. changed = true
  18709. }
  18710. slh.End()
  18711. return v, changed
  18712. }
  18713. if containerLenS > 0 {
  18714. x2read := containerLenS
  18715. var xtrunc bool
  18716. if containerLenS > cap(v) {
  18717. if canChange {
  18718. var xlen int
  18719. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18720. if xtrunc {
  18721. if xlen <= cap(v) {
  18722. v = v[:xlen]
  18723. } else {
  18724. v = make([]int64, xlen)
  18725. }
  18726. } else {
  18727. v = make([]int64, xlen)
  18728. }
  18729. changed = true
  18730. } else {
  18731. d.arrayCannotExpand(len(v), containerLenS)
  18732. }
  18733. x2read = len(v)
  18734. } else if containerLenS != len(v) {
  18735. if canChange {
  18736. v = v[:containerLenS]
  18737. changed = true
  18738. }
  18739. }
  18740. j := 0
  18741. for ; j < x2read; j++ {
  18742. slh.ElemContainerState(j)
  18743. v[j] = dd.DecodeInt(64)
  18744. }
  18745. if xtrunc {
  18746. for ; j < containerLenS; j++ {
  18747. v = append(v, 0)
  18748. slh.ElemContainerState(j)
  18749. v[j] = dd.DecodeInt(64)
  18750. }
  18751. } else if !canChange {
  18752. for ; j < containerLenS; j++ {
  18753. slh.ElemContainerState(j)
  18754. d.swallow()
  18755. }
  18756. }
  18757. } else {
  18758. breakFound := dd.CheckBreak()
  18759. if breakFound {
  18760. if canChange {
  18761. if v == nil {
  18762. v = []int64{}
  18763. } else if len(v) != 0 {
  18764. v = v[:0]
  18765. }
  18766. changed = true
  18767. }
  18768. slh.End()
  18769. return v, changed
  18770. }
  18771. if cap(v) == 0 {
  18772. v = make([]int64, 1, 4)
  18773. changed = true
  18774. }
  18775. j := 0
  18776. for ; !breakFound; j++ {
  18777. if j >= len(v) {
  18778. if canChange {
  18779. v = append(v, 0)
  18780. changed = true
  18781. } else {
  18782. d.arrayCannotExpand(len(v), j+1)
  18783. }
  18784. }
  18785. slh.ElemContainerState(j)
  18786. if j < len(v) {
  18787. v[j] = dd.DecodeInt(64)
  18788. } else {
  18789. d.swallow()
  18790. }
  18791. breakFound = dd.CheckBreak()
  18792. }
  18793. if canChange && j < len(v) {
  18794. v = v[:j]
  18795. changed = true
  18796. }
  18797. }
  18798. slh.End()
  18799. return v, changed
  18800. }
  18801. func (f *decFnInfo) fastpathDecSliceBoolR(rv reflect.Value) {
  18802. array := f.seq == seqTypeArray
  18803. if !array && rv.CanAddr() {
  18804. vp := rv.Addr().Interface().(*[]bool)
  18805. v, changed := fastpathTV.DecSliceBoolV(*vp, fastpathCheckNilFalse, !array, f.d)
  18806. if changed {
  18807. *vp = v
  18808. }
  18809. } else {
  18810. v := rv.Interface().([]bool)
  18811. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, f.d)
  18812. }
  18813. }
  18814. func (f fastpathT) DecSliceBoolX(vp *[]bool, checkNil bool, d *Decoder) {
  18815. v, changed := f.DecSliceBoolV(*vp, checkNil, true, d)
  18816. if changed {
  18817. *vp = v
  18818. }
  18819. }
  18820. func (_ fastpathT) DecSliceBoolV(v []bool, checkNil bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  18821. dd := d.d
  18822. if checkNil && dd.TryDecodeAsNil() {
  18823. if v != nil {
  18824. changed = true
  18825. }
  18826. return nil, changed
  18827. }
  18828. slh, containerLenS := d.decSliceHelperStart()
  18829. if containerLenS == 0 {
  18830. if canChange {
  18831. if v == nil {
  18832. v = []bool{}
  18833. } else if len(v) != 0 {
  18834. v = v[:0]
  18835. }
  18836. changed = true
  18837. }
  18838. slh.End()
  18839. return v, changed
  18840. }
  18841. if containerLenS > 0 {
  18842. x2read := containerLenS
  18843. var xtrunc bool
  18844. if containerLenS > cap(v) {
  18845. if canChange {
  18846. var xlen int
  18847. xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18848. if xtrunc {
  18849. if xlen <= cap(v) {
  18850. v = v[:xlen]
  18851. } else {
  18852. v = make([]bool, xlen)
  18853. }
  18854. } else {
  18855. v = make([]bool, xlen)
  18856. }
  18857. changed = true
  18858. } else {
  18859. d.arrayCannotExpand(len(v), containerLenS)
  18860. }
  18861. x2read = len(v)
  18862. } else if containerLenS != len(v) {
  18863. if canChange {
  18864. v = v[:containerLenS]
  18865. changed = true
  18866. }
  18867. }
  18868. j := 0
  18869. for ; j < x2read; j++ {
  18870. slh.ElemContainerState(j)
  18871. v[j] = dd.DecodeBool()
  18872. }
  18873. if xtrunc {
  18874. for ; j < containerLenS; j++ {
  18875. v = append(v, false)
  18876. slh.ElemContainerState(j)
  18877. v[j] = dd.DecodeBool()
  18878. }
  18879. } else if !canChange {
  18880. for ; j < containerLenS; j++ {
  18881. slh.ElemContainerState(j)
  18882. d.swallow()
  18883. }
  18884. }
  18885. } else {
  18886. breakFound := dd.CheckBreak()
  18887. if breakFound {
  18888. if canChange {
  18889. if v == nil {
  18890. v = []bool{}
  18891. } else if len(v) != 0 {
  18892. v = v[:0]
  18893. }
  18894. changed = true
  18895. }
  18896. slh.End()
  18897. return v, changed
  18898. }
  18899. if cap(v) == 0 {
  18900. v = make([]bool, 1, 4)
  18901. changed = true
  18902. }
  18903. j := 0
  18904. for ; !breakFound; j++ {
  18905. if j >= len(v) {
  18906. if canChange {
  18907. v = append(v, false)
  18908. changed = true
  18909. } else {
  18910. d.arrayCannotExpand(len(v), j+1)
  18911. }
  18912. }
  18913. slh.ElemContainerState(j)
  18914. if j < len(v) {
  18915. v[j] = dd.DecodeBool()
  18916. } else {
  18917. d.swallow()
  18918. }
  18919. breakFound = dd.CheckBreak()
  18920. }
  18921. if canChange && j < len(v) {
  18922. v = v[:j]
  18923. changed = true
  18924. }
  18925. }
  18926. slh.End()
  18927. return v, changed
  18928. }
  18929. func (f *decFnInfo) fastpathDecMapIntfIntfR(rv reflect.Value) {
  18930. if rv.CanAddr() {
  18931. vp := rv.Addr().Interface().(*map[interface{}]interface{})
  18932. v, changed := fastpathTV.DecMapIntfIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  18933. if changed {
  18934. *vp = v
  18935. }
  18936. } else {
  18937. v := rv.Interface().(map[interface{}]interface{})
  18938. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, f.d)
  18939. }
  18940. }
  18941. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, checkNil bool, d *Decoder) {
  18942. v, changed := f.DecMapIntfIntfV(*vp, checkNil, true, d)
  18943. if changed {
  18944. *vp = v
  18945. }
  18946. }
  18947. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, canChange bool,
  18948. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  18949. dd := d.d
  18950. cr := d.cr
  18951. if checkNil && dd.TryDecodeAsNil() {
  18952. if v != nil {
  18953. changed = true
  18954. }
  18955. return nil, changed
  18956. }
  18957. containerLen := dd.ReadMapStart()
  18958. if canChange && v == nil {
  18959. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18960. v = make(map[interface{}]interface{}, xlen)
  18961. changed = true
  18962. }
  18963. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  18964. var mk interface{}
  18965. var mv interface{}
  18966. if containerLen > 0 {
  18967. for j := 0; j < containerLen; j++ {
  18968. if cr != nil {
  18969. cr.sendContainerState(containerMapKey)
  18970. }
  18971. mk = nil
  18972. d.decode(&mk)
  18973. if bv, bok := mk.([]byte); bok {
  18974. mk = d.string(bv)
  18975. }
  18976. if cr != nil {
  18977. cr.sendContainerState(containerMapValue)
  18978. }
  18979. if mapGet {
  18980. mv = v[mk]
  18981. } else {
  18982. mv = nil
  18983. }
  18984. d.decode(&mv)
  18985. if v != nil {
  18986. v[mk] = mv
  18987. }
  18988. }
  18989. } else if containerLen < 0 {
  18990. for j := 0; !dd.CheckBreak(); j++ {
  18991. if cr != nil {
  18992. cr.sendContainerState(containerMapKey)
  18993. }
  18994. mk = nil
  18995. d.decode(&mk)
  18996. if bv, bok := mk.([]byte); bok {
  18997. mk = d.string(bv)
  18998. }
  18999. if cr != nil {
  19000. cr.sendContainerState(containerMapValue)
  19001. }
  19002. if mapGet {
  19003. mv = v[mk]
  19004. } else {
  19005. mv = nil
  19006. }
  19007. d.decode(&mv)
  19008. if v != nil {
  19009. v[mk] = mv
  19010. }
  19011. }
  19012. }
  19013. if cr != nil {
  19014. cr.sendContainerState(containerMapEnd)
  19015. }
  19016. return v, changed
  19017. }
  19018. func (f *decFnInfo) fastpathDecMapIntfStringR(rv reflect.Value) {
  19019. if rv.CanAddr() {
  19020. vp := rv.Addr().Interface().(*map[interface{}]string)
  19021. v, changed := fastpathTV.DecMapIntfStringV(*vp, fastpathCheckNilFalse, true, f.d)
  19022. if changed {
  19023. *vp = v
  19024. }
  19025. } else {
  19026. v := rv.Interface().(map[interface{}]string)
  19027. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, f.d)
  19028. }
  19029. }
  19030. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, checkNil bool, d *Decoder) {
  19031. v, changed := f.DecMapIntfStringV(*vp, checkNil, true, d)
  19032. if changed {
  19033. *vp = v
  19034. }
  19035. }
  19036. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, checkNil bool, canChange bool,
  19037. d *Decoder) (_ map[interface{}]string, changed bool) {
  19038. dd := d.d
  19039. cr := d.cr
  19040. if checkNil && dd.TryDecodeAsNil() {
  19041. if v != nil {
  19042. changed = true
  19043. }
  19044. return nil, changed
  19045. }
  19046. containerLen := dd.ReadMapStart()
  19047. if canChange && v == nil {
  19048. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  19049. v = make(map[interface{}]string, xlen)
  19050. changed = true
  19051. }
  19052. var mk interface{}
  19053. var mv string
  19054. if containerLen > 0 {
  19055. for j := 0; j < containerLen; j++ {
  19056. if cr != nil {
  19057. cr.sendContainerState(containerMapKey)
  19058. }
  19059. mk = nil
  19060. d.decode(&mk)
  19061. if bv, bok := mk.([]byte); bok {
  19062. mk = d.string(bv)
  19063. }
  19064. if cr != nil {
  19065. cr.sendContainerState(containerMapValue)
  19066. }
  19067. mv = dd.DecodeString()
  19068. if v != nil {
  19069. v[mk] = mv
  19070. }
  19071. }
  19072. } else if containerLen < 0 {
  19073. for j := 0; !dd.CheckBreak(); j++ {
  19074. if cr != nil {
  19075. cr.sendContainerState(containerMapKey)
  19076. }
  19077. mk = nil
  19078. d.decode(&mk)
  19079. if bv, bok := mk.([]byte); bok {
  19080. mk = d.string(bv)
  19081. }
  19082. if cr != nil {
  19083. cr.sendContainerState(containerMapValue)
  19084. }
  19085. mv = dd.DecodeString()
  19086. if v != nil {
  19087. v[mk] = mv
  19088. }
  19089. }
  19090. }
  19091. if cr != nil {
  19092. cr.sendContainerState(containerMapEnd)
  19093. }
  19094. return v, changed
  19095. }
  19096. func (f *decFnInfo) fastpathDecMapIntfUintR(rv reflect.Value) {
  19097. if rv.CanAddr() {
  19098. vp := rv.Addr().Interface().(*map[interface{}]uint)
  19099. v, changed := fastpathTV.DecMapIntfUintV(*vp, fastpathCheckNilFalse, true, f.d)
  19100. if changed {
  19101. *vp = v
  19102. }
  19103. } else {
  19104. v := rv.Interface().(map[interface{}]uint)
  19105. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, f.d)
  19106. }
  19107. }
  19108. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, checkNil bool, d *Decoder) {
  19109. v, changed := f.DecMapIntfUintV(*vp, checkNil, true, d)
  19110. if changed {
  19111. *vp = v
  19112. }
  19113. }
  19114. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, checkNil bool, canChange bool,
  19115. d *Decoder) (_ map[interface{}]uint, changed bool) {
  19116. dd := d.d
  19117. cr := d.cr
  19118. if checkNil && dd.TryDecodeAsNil() {
  19119. if v != nil {
  19120. changed = true
  19121. }
  19122. return nil, changed
  19123. }
  19124. containerLen := dd.ReadMapStart()
  19125. if canChange && v == nil {
  19126. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19127. v = make(map[interface{}]uint, xlen)
  19128. changed = true
  19129. }
  19130. var mk interface{}
  19131. var mv uint
  19132. if containerLen > 0 {
  19133. for j := 0; j < containerLen; j++ {
  19134. if cr != nil {
  19135. cr.sendContainerState(containerMapKey)
  19136. }
  19137. mk = nil
  19138. d.decode(&mk)
  19139. if bv, bok := mk.([]byte); bok {
  19140. mk = d.string(bv)
  19141. }
  19142. if cr != nil {
  19143. cr.sendContainerState(containerMapValue)
  19144. }
  19145. mv = uint(dd.DecodeUint(uintBitsize))
  19146. if v != nil {
  19147. v[mk] = mv
  19148. }
  19149. }
  19150. } else if containerLen < 0 {
  19151. for j := 0; !dd.CheckBreak(); j++ {
  19152. if cr != nil {
  19153. cr.sendContainerState(containerMapKey)
  19154. }
  19155. mk = nil
  19156. d.decode(&mk)
  19157. if bv, bok := mk.([]byte); bok {
  19158. mk = d.string(bv)
  19159. }
  19160. if cr != nil {
  19161. cr.sendContainerState(containerMapValue)
  19162. }
  19163. mv = uint(dd.DecodeUint(uintBitsize))
  19164. if v != nil {
  19165. v[mk] = mv
  19166. }
  19167. }
  19168. }
  19169. if cr != nil {
  19170. cr.sendContainerState(containerMapEnd)
  19171. }
  19172. return v, changed
  19173. }
  19174. func (f *decFnInfo) fastpathDecMapIntfUint8R(rv reflect.Value) {
  19175. if rv.CanAddr() {
  19176. vp := rv.Addr().Interface().(*map[interface{}]uint8)
  19177. v, changed := fastpathTV.DecMapIntfUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  19178. if changed {
  19179. *vp = v
  19180. }
  19181. } else {
  19182. v := rv.Interface().(map[interface{}]uint8)
  19183. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, f.d)
  19184. }
  19185. }
  19186. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, checkNil bool, d *Decoder) {
  19187. v, changed := f.DecMapIntfUint8V(*vp, checkNil, true, d)
  19188. if changed {
  19189. *vp = v
  19190. }
  19191. }
  19192. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, checkNil bool, canChange bool,
  19193. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  19194. dd := d.d
  19195. cr := d.cr
  19196. if checkNil && dd.TryDecodeAsNil() {
  19197. if v != nil {
  19198. changed = true
  19199. }
  19200. return nil, changed
  19201. }
  19202. containerLen := dd.ReadMapStart()
  19203. if canChange && v == nil {
  19204. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19205. v = make(map[interface{}]uint8, xlen)
  19206. changed = true
  19207. }
  19208. var mk interface{}
  19209. var mv uint8
  19210. if containerLen > 0 {
  19211. for j := 0; j < containerLen; j++ {
  19212. if cr != nil {
  19213. cr.sendContainerState(containerMapKey)
  19214. }
  19215. mk = nil
  19216. d.decode(&mk)
  19217. if bv, bok := mk.([]byte); bok {
  19218. mk = d.string(bv)
  19219. }
  19220. if cr != nil {
  19221. cr.sendContainerState(containerMapValue)
  19222. }
  19223. mv = uint8(dd.DecodeUint(8))
  19224. if v != nil {
  19225. v[mk] = mv
  19226. }
  19227. }
  19228. } else if containerLen < 0 {
  19229. for j := 0; !dd.CheckBreak(); j++ {
  19230. if cr != nil {
  19231. cr.sendContainerState(containerMapKey)
  19232. }
  19233. mk = nil
  19234. d.decode(&mk)
  19235. if bv, bok := mk.([]byte); bok {
  19236. mk = d.string(bv)
  19237. }
  19238. if cr != nil {
  19239. cr.sendContainerState(containerMapValue)
  19240. }
  19241. mv = uint8(dd.DecodeUint(8))
  19242. if v != nil {
  19243. v[mk] = mv
  19244. }
  19245. }
  19246. }
  19247. if cr != nil {
  19248. cr.sendContainerState(containerMapEnd)
  19249. }
  19250. return v, changed
  19251. }
  19252. func (f *decFnInfo) fastpathDecMapIntfUint16R(rv reflect.Value) {
  19253. if rv.CanAddr() {
  19254. vp := rv.Addr().Interface().(*map[interface{}]uint16)
  19255. v, changed := fastpathTV.DecMapIntfUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  19256. if changed {
  19257. *vp = v
  19258. }
  19259. } else {
  19260. v := rv.Interface().(map[interface{}]uint16)
  19261. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, f.d)
  19262. }
  19263. }
  19264. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, checkNil bool, d *Decoder) {
  19265. v, changed := f.DecMapIntfUint16V(*vp, checkNil, true, d)
  19266. if changed {
  19267. *vp = v
  19268. }
  19269. }
  19270. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, checkNil bool, canChange bool,
  19271. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  19272. dd := d.d
  19273. cr := d.cr
  19274. if checkNil && dd.TryDecodeAsNil() {
  19275. if v != nil {
  19276. changed = true
  19277. }
  19278. return nil, changed
  19279. }
  19280. containerLen := dd.ReadMapStart()
  19281. if canChange && v == nil {
  19282. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19283. v = make(map[interface{}]uint16, xlen)
  19284. changed = true
  19285. }
  19286. var mk interface{}
  19287. var mv uint16
  19288. if containerLen > 0 {
  19289. for j := 0; j < containerLen; j++ {
  19290. if cr != nil {
  19291. cr.sendContainerState(containerMapKey)
  19292. }
  19293. mk = nil
  19294. d.decode(&mk)
  19295. if bv, bok := mk.([]byte); bok {
  19296. mk = d.string(bv)
  19297. }
  19298. if cr != nil {
  19299. cr.sendContainerState(containerMapValue)
  19300. }
  19301. mv = uint16(dd.DecodeUint(16))
  19302. if v != nil {
  19303. v[mk] = mv
  19304. }
  19305. }
  19306. } else if containerLen < 0 {
  19307. for j := 0; !dd.CheckBreak(); j++ {
  19308. if cr != nil {
  19309. cr.sendContainerState(containerMapKey)
  19310. }
  19311. mk = nil
  19312. d.decode(&mk)
  19313. if bv, bok := mk.([]byte); bok {
  19314. mk = d.string(bv)
  19315. }
  19316. if cr != nil {
  19317. cr.sendContainerState(containerMapValue)
  19318. }
  19319. mv = uint16(dd.DecodeUint(16))
  19320. if v != nil {
  19321. v[mk] = mv
  19322. }
  19323. }
  19324. }
  19325. if cr != nil {
  19326. cr.sendContainerState(containerMapEnd)
  19327. }
  19328. return v, changed
  19329. }
  19330. func (f *decFnInfo) fastpathDecMapIntfUint32R(rv reflect.Value) {
  19331. if rv.CanAddr() {
  19332. vp := rv.Addr().Interface().(*map[interface{}]uint32)
  19333. v, changed := fastpathTV.DecMapIntfUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  19334. if changed {
  19335. *vp = v
  19336. }
  19337. } else {
  19338. v := rv.Interface().(map[interface{}]uint32)
  19339. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, f.d)
  19340. }
  19341. }
  19342. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, checkNil bool, d *Decoder) {
  19343. v, changed := f.DecMapIntfUint32V(*vp, checkNil, true, d)
  19344. if changed {
  19345. *vp = v
  19346. }
  19347. }
  19348. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, checkNil bool, canChange bool,
  19349. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  19350. dd := d.d
  19351. cr := d.cr
  19352. if checkNil && dd.TryDecodeAsNil() {
  19353. if v != nil {
  19354. changed = true
  19355. }
  19356. return nil, changed
  19357. }
  19358. containerLen := dd.ReadMapStart()
  19359. if canChange && v == nil {
  19360. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19361. v = make(map[interface{}]uint32, xlen)
  19362. changed = true
  19363. }
  19364. var mk interface{}
  19365. var mv uint32
  19366. if containerLen > 0 {
  19367. for j := 0; j < containerLen; j++ {
  19368. if cr != nil {
  19369. cr.sendContainerState(containerMapKey)
  19370. }
  19371. mk = nil
  19372. d.decode(&mk)
  19373. if bv, bok := mk.([]byte); bok {
  19374. mk = d.string(bv)
  19375. }
  19376. if cr != nil {
  19377. cr.sendContainerState(containerMapValue)
  19378. }
  19379. mv = uint32(dd.DecodeUint(32))
  19380. if v != nil {
  19381. v[mk] = mv
  19382. }
  19383. }
  19384. } else if containerLen < 0 {
  19385. for j := 0; !dd.CheckBreak(); j++ {
  19386. if cr != nil {
  19387. cr.sendContainerState(containerMapKey)
  19388. }
  19389. mk = nil
  19390. d.decode(&mk)
  19391. if bv, bok := mk.([]byte); bok {
  19392. mk = d.string(bv)
  19393. }
  19394. if cr != nil {
  19395. cr.sendContainerState(containerMapValue)
  19396. }
  19397. mv = uint32(dd.DecodeUint(32))
  19398. if v != nil {
  19399. v[mk] = mv
  19400. }
  19401. }
  19402. }
  19403. if cr != nil {
  19404. cr.sendContainerState(containerMapEnd)
  19405. }
  19406. return v, changed
  19407. }
  19408. func (f *decFnInfo) fastpathDecMapIntfUint64R(rv reflect.Value) {
  19409. if rv.CanAddr() {
  19410. vp := rv.Addr().Interface().(*map[interface{}]uint64)
  19411. v, changed := fastpathTV.DecMapIntfUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  19412. if changed {
  19413. *vp = v
  19414. }
  19415. } else {
  19416. v := rv.Interface().(map[interface{}]uint64)
  19417. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, f.d)
  19418. }
  19419. }
  19420. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, checkNil bool, d *Decoder) {
  19421. v, changed := f.DecMapIntfUint64V(*vp, checkNil, true, d)
  19422. if changed {
  19423. *vp = v
  19424. }
  19425. }
  19426. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, checkNil bool, canChange bool,
  19427. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  19428. dd := d.d
  19429. cr := d.cr
  19430. if checkNil && dd.TryDecodeAsNil() {
  19431. if v != nil {
  19432. changed = true
  19433. }
  19434. return nil, changed
  19435. }
  19436. containerLen := dd.ReadMapStart()
  19437. if canChange && v == nil {
  19438. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19439. v = make(map[interface{}]uint64, xlen)
  19440. changed = true
  19441. }
  19442. var mk interface{}
  19443. var mv uint64
  19444. if containerLen > 0 {
  19445. for j := 0; j < containerLen; j++ {
  19446. if cr != nil {
  19447. cr.sendContainerState(containerMapKey)
  19448. }
  19449. mk = nil
  19450. d.decode(&mk)
  19451. if bv, bok := mk.([]byte); bok {
  19452. mk = d.string(bv)
  19453. }
  19454. if cr != nil {
  19455. cr.sendContainerState(containerMapValue)
  19456. }
  19457. mv = dd.DecodeUint(64)
  19458. if v != nil {
  19459. v[mk] = mv
  19460. }
  19461. }
  19462. } else if containerLen < 0 {
  19463. for j := 0; !dd.CheckBreak(); j++ {
  19464. if cr != nil {
  19465. cr.sendContainerState(containerMapKey)
  19466. }
  19467. mk = nil
  19468. d.decode(&mk)
  19469. if bv, bok := mk.([]byte); bok {
  19470. mk = d.string(bv)
  19471. }
  19472. if cr != nil {
  19473. cr.sendContainerState(containerMapValue)
  19474. }
  19475. mv = dd.DecodeUint(64)
  19476. if v != nil {
  19477. v[mk] = mv
  19478. }
  19479. }
  19480. }
  19481. if cr != nil {
  19482. cr.sendContainerState(containerMapEnd)
  19483. }
  19484. return v, changed
  19485. }
  19486. func (f *decFnInfo) fastpathDecMapIntfUintptrR(rv reflect.Value) {
  19487. if rv.CanAddr() {
  19488. vp := rv.Addr().Interface().(*map[interface{}]uintptr)
  19489. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  19490. if changed {
  19491. *vp = v
  19492. }
  19493. } else {
  19494. v := rv.Interface().(map[interface{}]uintptr)
  19495. fastpathTV.DecMapIntfUintptrV(v, fastpathCheckNilFalse, false, f.d)
  19496. }
  19497. }
  19498. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, checkNil bool, d *Decoder) {
  19499. v, changed := f.DecMapIntfUintptrV(*vp, checkNil, true, d)
  19500. if changed {
  19501. *vp = v
  19502. }
  19503. }
  19504. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, checkNil bool, canChange bool,
  19505. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  19506. dd := d.d
  19507. cr := d.cr
  19508. if checkNil && dd.TryDecodeAsNil() {
  19509. if v != nil {
  19510. changed = true
  19511. }
  19512. return nil, changed
  19513. }
  19514. containerLen := dd.ReadMapStart()
  19515. if canChange && v == nil {
  19516. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19517. v = make(map[interface{}]uintptr, xlen)
  19518. changed = true
  19519. }
  19520. var mk interface{}
  19521. var mv uintptr
  19522. if containerLen > 0 {
  19523. for j := 0; j < containerLen; j++ {
  19524. if cr != nil {
  19525. cr.sendContainerState(containerMapKey)
  19526. }
  19527. mk = nil
  19528. d.decode(&mk)
  19529. if bv, bok := mk.([]byte); bok {
  19530. mk = d.string(bv)
  19531. }
  19532. if cr != nil {
  19533. cr.sendContainerState(containerMapValue)
  19534. }
  19535. mv = uintptr(dd.DecodeUint(uintBitsize))
  19536. if v != nil {
  19537. v[mk] = mv
  19538. }
  19539. }
  19540. } else if containerLen < 0 {
  19541. for j := 0; !dd.CheckBreak(); j++ {
  19542. if cr != nil {
  19543. cr.sendContainerState(containerMapKey)
  19544. }
  19545. mk = nil
  19546. d.decode(&mk)
  19547. if bv, bok := mk.([]byte); bok {
  19548. mk = d.string(bv)
  19549. }
  19550. if cr != nil {
  19551. cr.sendContainerState(containerMapValue)
  19552. }
  19553. mv = uintptr(dd.DecodeUint(uintBitsize))
  19554. if v != nil {
  19555. v[mk] = mv
  19556. }
  19557. }
  19558. }
  19559. if cr != nil {
  19560. cr.sendContainerState(containerMapEnd)
  19561. }
  19562. return v, changed
  19563. }
  19564. func (f *decFnInfo) fastpathDecMapIntfIntR(rv reflect.Value) {
  19565. if rv.CanAddr() {
  19566. vp := rv.Addr().Interface().(*map[interface{}]int)
  19567. v, changed := fastpathTV.DecMapIntfIntV(*vp, fastpathCheckNilFalse, true, f.d)
  19568. if changed {
  19569. *vp = v
  19570. }
  19571. } else {
  19572. v := rv.Interface().(map[interface{}]int)
  19573. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, f.d)
  19574. }
  19575. }
  19576. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, checkNil bool, d *Decoder) {
  19577. v, changed := f.DecMapIntfIntV(*vp, checkNil, true, d)
  19578. if changed {
  19579. *vp = v
  19580. }
  19581. }
  19582. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, checkNil bool, canChange bool,
  19583. d *Decoder) (_ map[interface{}]int, changed bool) {
  19584. dd := d.d
  19585. cr := d.cr
  19586. if checkNil && dd.TryDecodeAsNil() {
  19587. if v != nil {
  19588. changed = true
  19589. }
  19590. return nil, changed
  19591. }
  19592. containerLen := dd.ReadMapStart()
  19593. if canChange && v == nil {
  19594. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19595. v = make(map[interface{}]int, xlen)
  19596. changed = true
  19597. }
  19598. var mk interface{}
  19599. var mv int
  19600. if containerLen > 0 {
  19601. for j := 0; j < containerLen; j++ {
  19602. if cr != nil {
  19603. cr.sendContainerState(containerMapKey)
  19604. }
  19605. mk = nil
  19606. d.decode(&mk)
  19607. if bv, bok := mk.([]byte); bok {
  19608. mk = d.string(bv)
  19609. }
  19610. if cr != nil {
  19611. cr.sendContainerState(containerMapValue)
  19612. }
  19613. mv = int(dd.DecodeInt(intBitsize))
  19614. if v != nil {
  19615. v[mk] = mv
  19616. }
  19617. }
  19618. } else if containerLen < 0 {
  19619. for j := 0; !dd.CheckBreak(); j++ {
  19620. if cr != nil {
  19621. cr.sendContainerState(containerMapKey)
  19622. }
  19623. mk = nil
  19624. d.decode(&mk)
  19625. if bv, bok := mk.([]byte); bok {
  19626. mk = d.string(bv)
  19627. }
  19628. if cr != nil {
  19629. cr.sendContainerState(containerMapValue)
  19630. }
  19631. mv = int(dd.DecodeInt(intBitsize))
  19632. if v != nil {
  19633. v[mk] = mv
  19634. }
  19635. }
  19636. }
  19637. if cr != nil {
  19638. cr.sendContainerState(containerMapEnd)
  19639. }
  19640. return v, changed
  19641. }
  19642. func (f *decFnInfo) fastpathDecMapIntfInt8R(rv reflect.Value) {
  19643. if rv.CanAddr() {
  19644. vp := rv.Addr().Interface().(*map[interface{}]int8)
  19645. v, changed := fastpathTV.DecMapIntfInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  19646. if changed {
  19647. *vp = v
  19648. }
  19649. } else {
  19650. v := rv.Interface().(map[interface{}]int8)
  19651. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, f.d)
  19652. }
  19653. }
  19654. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, checkNil bool, d *Decoder) {
  19655. v, changed := f.DecMapIntfInt8V(*vp, checkNil, true, d)
  19656. if changed {
  19657. *vp = v
  19658. }
  19659. }
  19660. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, checkNil bool, canChange bool,
  19661. d *Decoder) (_ map[interface{}]int8, changed bool) {
  19662. dd := d.d
  19663. cr := d.cr
  19664. if checkNil && dd.TryDecodeAsNil() {
  19665. if v != nil {
  19666. changed = true
  19667. }
  19668. return nil, changed
  19669. }
  19670. containerLen := dd.ReadMapStart()
  19671. if canChange && v == nil {
  19672. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19673. v = make(map[interface{}]int8, xlen)
  19674. changed = true
  19675. }
  19676. var mk interface{}
  19677. var mv int8
  19678. if containerLen > 0 {
  19679. for j := 0; j < containerLen; j++ {
  19680. if cr != nil {
  19681. cr.sendContainerState(containerMapKey)
  19682. }
  19683. mk = nil
  19684. d.decode(&mk)
  19685. if bv, bok := mk.([]byte); bok {
  19686. mk = d.string(bv)
  19687. }
  19688. if cr != nil {
  19689. cr.sendContainerState(containerMapValue)
  19690. }
  19691. mv = int8(dd.DecodeInt(8))
  19692. if v != nil {
  19693. v[mk] = mv
  19694. }
  19695. }
  19696. } else if containerLen < 0 {
  19697. for j := 0; !dd.CheckBreak(); j++ {
  19698. if cr != nil {
  19699. cr.sendContainerState(containerMapKey)
  19700. }
  19701. mk = nil
  19702. d.decode(&mk)
  19703. if bv, bok := mk.([]byte); bok {
  19704. mk = d.string(bv)
  19705. }
  19706. if cr != nil {
  19707. cr.sendContainerState(containerMapValue)
  19708. }
  19709. mv = int8(dd.DecodeInt(8))
  19710. if v != nil {
  19711. v[mk] = mv
  19712. }
  19713. }
  19714. }
  19715. if cr != nil {
  19716. cr.sendContainerState(containerMapEnd)
  19717. }
  19718. return v, changed
  19719. }
  19720. func (f *decFnInfo) fastpathDecMapIntfInt16R(rv reflect.Value) {
  19721. if rv.CanAddr() {
  19722. vp := rv.Addr().Interface().(*map[interface{}]int16)
  19723. v, changed := fastpathTV.DecMapIntfInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  19724. if changed {
  19725. *vp = v
  19726. }
  19727. } else {
  19728. v := rv.Interface().(map[interface{}]int16)
  19729. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, f.d)
  19730. }
  19731. }
  19732. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, checkNil bool, d *Decoder) {
  19733. v, changed := f.DecMapIntfInt16V(*vp, checkNil, true, d)
  19734. if changed {
  19735. *vp = v
  19736. }
  19737. }
  19738. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, checkNil bool, canChange bool,
  19739. d *Decoder) (_ map[interface{}]int16, changed bool) {
  19740. dd := d.d
  19741. cr := d.cr
  19742. if checkNil && dd.TryDecodeAsNil() {
  19743. if v != nil {
  19744. changed = true
  19745. }
  19746. return nil, changed
  19747. }
  19748. containerLen := dd.ReadMapStart()
  19749. if canChange && v == nil {
  19750. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19751. v = make(map[interface{}]int16, xlen)
  19752. changed = true
  19753. }
  19754. var mk interface{}
  19755. var mv int16
  19756. if containerLen > 0 {
  19757. for j := 0; j < containerLen; j++ {
  19758. if cr != nil {
  19759. cr.sendContainerState(containerMapKey)
  19760. }
  19761. mk = nil
  19762. d.decode(&mk)
  19763. if bv, bok := mk.([]byte); bok {
  19764. mk = d.string(bv)
  19765. }
  19766. if cr != nil {
  19767. cr.sendContainerState(containerMapValue)
  19768. }
  19769. mv = int16(dd.DecodeInt(16))
  19770. if v != nil {
  19771. v[mk] = mv
  19772. }
  19773. }
  19774. } else if containerLen < 0 {
  19775. for j := 0; !dd.CheckBreak(); j++ {
  19776. if cr != nil {
  19777. cr.sendContainerState(containerMapKey)
  19778. }
  19779. mk = nil
  19780. d.decode(&mk)
  19781. if bv, bok := mk.([]byte); bok {
  19782. mk = d.string(bv)
  19783. }
  19784. if cr != nil {
  19785. cr.sendContainerState(containerMapValue)
  19786. }
  19787. mv = int16(dd.DecodeInt(16))
  19788. if v != nil {
  19789. v[mk] = mv
  19790. }
  19791. }
  19792. }
  19793. if cr != nil {
  19794. cr.sendContainerState(containerMapEnd)
  19795. }
  19796. return v, changed
  19797. }
  19798. func (f *decFnInfo) fastpathDecMapIntfInt32R(rv reflect.Value) {
  19799. if rv.CanAddr() {
  19800. vp := rv.Addr().Interface().(*map[interface{}]int32)
  19801. v, changed := fastpathTV.DecMapIntfInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  19802. if changed {
  19803. *vp = v
  19804. }
  19805. } else {
  19806. v := rv.Interface().(map[interface{}]int32)
  19807. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, f.d)
  19808. }
  19809. }
  19810. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, checkNil bool, d *Decoder) {
  19811. v, changed := f.DecMapIntfInt32V(*vp, checkNil, true, d)
  19812. if changed {
  19813. *vp = v
  19814. }
  19815. }
  19816. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, checkNil bool, canChange bool,
  19817. d *Decoder) (_ map[interface{}]int32, changed bool) {
  19818. dd := d.d
  19819. cr := d.cr
  19820. if checkNil && dd.TryDecodeAsNil() {
  19821. if v != nil {
  19822. changed = true
  19823. }
  19824. return nil, changed
  19825. }
  19826. containerLen := dd.ReadMapStart()
  19827. if canChange && v == nil {
  19828. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19829. v = make(map[interface{}]int32, xlen)
  19830. changed = true
  19831. }
  19832. var mk interface{}
  19833. var mv int32
  19834. if containerLen > 0 {
  19835. for j := 0; j < containerLen; j++ {
  19836. if cr != nil {
  19837. cr.sendContainerState(containerMapKey)
  19838. }
  19839. mk = nil
  19840. d.decode(&mk)
  19841. if bv, bok := mk.([]byte); bok {
  19842. mk = d.string(bv)
  19843. }
  19844. if cr != nil {
  19845. cr.sendContainerState(containerMapValue)
  19846. }
  19847. mv = int32(dd.DecodeInt(32))
  19848. if v != nil {
  19849. v[mk] = mv
  19850. }
  19851. }
  19852. } else if containerLen < 0 {
  19853. for j := 0; !dd.CheckBreak(); j++ {
  19854. if cr != nil {
  19855. cr.sendContainerState(containerMapKey)
  19856. }
  19857. mk = nil
  19858. d.decode(&mk)
  19859. if bv, bok := mk.([]byte); bok {
  19860. mk = d.string(bv)
  19861. }
  19862. if cr != nil {
  19863. cr.sendContainerState(containerMapValue)
  19864. }
  19865. mv = int32(dd.DecodeInt(32))
  19866. if v != nil {
  19867. v[mk] = mv
  19868. }
  19869. }
  19870. }
  19871. if cr != nil {
  19872. cr.sendContainerState(containerMapEnd)
  19873. }
  19874. return v, changed
  19875. }
  19876. func (f *decFnInfo) fastpathDecMapIntfInt64R(rv reflect.Value) {
  19877. if rv.CanAddr() {
  19878. vp := rv.Addr().Interface().(*map[interface{}]int64)
  19879. v, changed := fastpathTV.DecMapIntfInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  19880. if changed {
  19881. *vp = v
  19882. }
  19883. } else {
  19884. v := rv.Interface().(map[interface{}]int64)
  19885. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, f.d)
  19886. }
  19887. }
  19888. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, checkNil bool, d *Decoder) {
  19889. v, changed := f.DecMapIntfInt64V(*vp, checkNil, true, d)
  19890. if changed {
  19891. *vp = v
  19892. }
  19893. }
  19894. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, checkNil bool, canChange bool,
  19895. d *Decoder) (_ map[interface{}]int64, changed bool) {
  19896. dd := d.d
  19897. cr := d.cr
  19898. if checkNil && dd.TryDecodeAsNil() {
  19899. if v != nil {
  19900. changed = true
  19901. }
  19902. return nil, changed
  19903. }
  19904. containerLen := dd.ReadMapStart()
  19905. if canChange && v == nil {
  19906. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19907. v = make(map[interface{}]int64, xlen)
  19908. changed = true
  19909. }
  19910. var mk interface{}
  19911. var mv int64
  19912. if containerLen > 0 {
  19913. for j := 0; j < containerLen; j++ {
  19914. if cr != nil {
  19915. cr.sendContainerState(containerMapKey)
  19916. }
  19917. mk = nil
  19918. d.decode(&mk)
  19919. if bv, bok := mk.([]byte); bok {
  19920. mk = d.string(bv)
  19921. }
  19922. if cr != nil {
  19923. cr.sendContainerState(containerMapValue)
  19924. }
  19925. mv = dd.DecodeInt(64)
  19926. if v != nil {
  19927. v[mk] = mv
  19928. }
  19929. }
  19930. } else if containerLen < 0 {
  19931. for j := 0; !dd.CheckBreak(); j++ {
  19932. if cr != nil {
  19933. cr.sendContainerState(containerMapKey)
  19934. }
  19935. mk = nil
  19936. d.decode(&mk)
  19937. if bv, bok := mk.([]byte); bok {
  19938. mk = d.string(bv)
  19939. }
  19940. if cr != nil {
  19941. cr.sendContainerState(containerMapValue)
  19942. }
  19943. mv = dd.DecodeInt(64)
  19944. if v != nil {
  19945. v[mk] = mv
  19946. }
  19947. }
  19948. }
  19949. if cr != nil {
  19950. cr.sendContainerState(containerMapEnd)
  19951. }
  19952. return v, changed
  19953. }
  19954. func (f *decFnInfo) fastpathDecMapIntfFloat32R(rv reflect.Value) {
  19955. if rv.CanAddr() {
  19956. vp := rv.Addr().Interface().(*map[interface{}]float32)
  19957. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  19958. if changed {
  19959. *vp = v
  19960. }
  19961. } else {
  19962. v := rv.Interface().(map[interface{}]float32)
  19963. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, f.d)
  19964. }
  19965. }
  19966. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, checkNil bool, d *Decoder) {
  19967. v, changed := f.DecMapIntfFloat32V(*vp, checkNil, true, d)
  19968. if changed {
  19969. *vp = v
  19970. }
  19971. }
  19972. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, checkNil bool, canChange bool,
  19973. d *Decoder) (_ map[interface{}]float32, changed bool) {
  19974. dd := d.d
  19975. cr := d.cr
  19976. if checkNil && dd.TryDecodeAsNil() {
  19977. if v != nil {
  19978. changed = true
  19979. }
  19980. return nil, changed
  19981. }
  19982. containerLen := dd.ReadMapStart()
  19983. if canChange && v == nil {
  19984. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19985. v = make(map[interface{}]float32, xlen)
  19986. changed = true
  19987. }
  19988. var mk interface{}
  19989. var mv float32
  19990. if containerLen > 0 {
  19991. for j := 0; j < containerLen; j++ {
  19992. if cr != nil {
  19993. cr.sendContainerState(containerMapKey)
  19994. }
  19995. mk = nil
  19996. d.decode(&mk)
  19997. if bv, bok := mk.([]byte); bok {
  19998. mk = d.string(bv)
  19999. }
  20000. if cr != nil {
  20001. cr.sendContainerState(containerMapValue)
  20002. }
  20003. mv = float32(dd.DecodeFloat(true))
  20004. if v != nil {
  20005. v[mk] = mv
  20006. }
  20007. }
  20008. } else if containerLen < 0 {
  20009. for j := 0; !dd.CheckBreak(); j++ {
  20010. if cr != nil {
  20011. cr.sendContainerState(containerMapKey)
  20012. }
  20013. mk = nil
  20014. d.decode(&mk)
  20015. if bv, bok := mk.([]byte); bok {
  20016. mk = d.string(bv)
  20017. }
  20018. if cr != nil {
  20019. cr.sendContainerState(containerMapValue)
  20020. }
  20021. mv = float32(dd.DecodeFloat(true))
  20022. if v != nil {
  20023. v[mk] = mv
  20024. }
  20025. }
  20026. }
  20027. if cr != nil {
  20028. cr.sendContainerState(containerMapEnd)
  20029. }
  20030. return v, changed
  20031. }
  20032. func (f *decFnInfo) fastpathDecMapIntfFloat64R(rv reflect.Value) {
  20033. if rv.CanAddr() {
  20034. vp := rv.Addr().Interface().(*map[interface{}]float64)
  20035. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  20036. if changed {
  20037. *vp = v
  20038. }
  20039. } else {
  20040. v := rv.Interface().(map[interface{}]float64)
  20041. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, f.d)
  20042. }
  20043. }
  20044. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, checkNil bool, d *Decoder) {
  20045. v, changed := f.DecMapIntfFloat64V(*vp, checkNil, true, d)
  20046. if changed {
  20047. *vp = v
  20048. }
  20049. }
  20050. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, checkNil bool, canChange bool,
  20051. d *Decoder) (_ map[interface{}]float64, changed bool) {
  20052. dd := d.d
  20053. cr := d.cr
  20054. if checkNil && dd.TryDecodeAsNil() {
  20055. if v != nil {
  20056. changed = true
  20057. }
  20058. return nil, changed
  20059. }
  20060. containerLen := dd.ReadMapStart()
  20061. if canChange && v == nil {
  20062. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20063. v = make(map[interface{}]float64, xlen)
  20064. changed = true
  20065. }
  20066. var mk interface{}
  20067. var mv float64
  20068. if containerLen > 0 {
  20069. for j := 0; j < containerLen; j++ {
  20070. if cr != nil {
  20071. cr.sendContainerState(containerMapKey)
  20072. }
  20073. mk = nil
  20074. d.decode(&mk)
  20075. if bv, bok := mk.([]byte); bok {
  20076. mk = d.string(bv)
  20077. }
  20078. if cr != nil {
  20079. cr.sendContainerState(containerMapValue)
  20080. }
  20081. mv = dd.DecodeFloat(false)
  20082. if v != nil {
  20083. v[mk] = mv
  20084. }
  20085. }
  20086. } else if containerLen < 0 {
  20087. for j := 0; !dd.CheckBreak(); j++ {
  20088. if cr != nil {
  20089. cr.sendContainerState(containerMapKey)
  20090. }
  20091. mk = nil
  20092. d.decode(&mk)
  20093. if bv, bok := mk.([]byte); bok {
  20094. mk = d.string(bv)
  20095. }
  20096. if cr != nil {
  20097. cr.sendContainerState(containerMapValue)
  20098. }
  20099. mv = dd.DecodeFloat(false)
  20100. if v != nil {
  20101. v[mk] = mv
  20102. }
  20103. }
  20104. }
  20105. if cr != nil {
  20106. cr.sendContainerState(containerMapEnd)
  20107. }
  20108. return v, changed
  20109. }
  20110. func (f *decFnInfo) fastpathDecMapIntfBoolR(rv reflect.Value) {
  20111. if rv.CanAddr() {
  20112. vp := rv.Addr().Interface().(*map[interface{}]bool)
  20113. v, changed := fastpathTV.DecMapIntfBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  20114. if changed {
  20115. *vp = v
  20116. }
  20117. } else {
  20118. v := rv.Interface().(map[interface{}]bool)
  20119. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, f.d)
  20120. }
  20121. }
  20122. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, checkNil bool, d *Decoder) {
  20123. v, changed := f.DecMapIntfBoolV(*vp, checkNil, true, d)
  20124. if changed {
  20125. *vp = v
  20126. }
  20127. }
  20128. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, checkNil bool, canChange bool,
  20129. d *Decoder) (_ map[interface{}]bool, changed bool) {
  20130. dd := d.d
  20131. cr := d.cr
  20132. if checkNil && dd.TryDecodeAsNil() {
  20133. if v != nil {
  20134. changed = true
  20135. }
  20136. return nil, changed
  20137. }
  20138. containerLen := dd.ReadMapStart()
  20139. if canChange && v == nil {
  20140. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20141. v = make(map[interface{}]bool, xlen)
  20142. changed = true
  20143. }
  20144. var mk interface{}
  20145. var mv bool
  20146. if containerLen > 0 {
  20147. for j := 0; j < containerLen; j++ {
  20148. if cr != nil {
  20149. cr.sendContainerState(containerMapKey)
  20150. }
  20151. mk = nil
  20152. d.decode(&mk)
  20153. if bv, bok := mk.([]byte); bok {
  20154. mk = d.string(bv)
  20155. }
  20156. if cr != nil {
  20157. cr.sendContainerState(containerMapValue)
  20158. }
  20159. mv = dd.DecodeBool()
  20160. if v != nil {
  20161. v[mk] = mv
  20162. }
  20163. }
  20164. } else if containerLen < 0 {
  20165. for j := 0; !dd.CheckBreak(); j++ {
  20166. if cr != nil {
  20167. cr.sendContainerState(containerMapKey)
  20168. }
  20169. mk = nil
  20170. d.decode(&mk)
  20171. if bv, bok := mk.([]byte); bok {
  20172. mk = d.string(bv)
  20173. }
  20174. if cr != nil {
  20175. cr.sendContainerState(containerMapValue)
  20176. }
  20177. mv = dd.DecodeBool()
  20178. if v != nil {
  20179. v[mk] = mv
  20180. }
  20181. }
  20182. }
  20183. if cr != nil {
  20184. cr.sendContainerState(containerMapEnd)
  20185. }
  20186. return v, changed
  20187. }
  20188. func (f *decFnInfo) fastpathDecMapStringIntfR(rv reflect.Value) {
  20189. if rv.CanAddr() {
  20190. vp := rv.Addr().Interface().(*map[string]interface{})
  20191. v, changed := fastpathTV.DecMapStringIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  20192. if changed {
  20193. *vp = v
  20194. }
  20195. } else {
  20196. v := rv.Interface().(map[string]interface{})
  20197. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, f.d)
  20198. }
  20199. }
  20200. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, checkNil bool, d *Decoder) {
  20201. v, changed := f.DecMapStringIntfV(*vp, checkNil, true, d)
  20202. if changed {
  20203. *vp = v
  20204. }
  20205. }
  20206. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, checkNil bool, canChange bool,
  20207. d *Decoder) (_ map[string]interface{}, changed bool) {
  20208. dd := d.d
  20209. cr := d.cr
  20210. if checkNil && dd.TryDecodeAsNil() {
  20211. if v != nil {
  20212. changed = true
  20213. }
  20214. return nil, changed
  20215. }
  20216. containerLen := dd.ReadMapStart()
  20217. if canChange && v == nil {
  20218. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20219. v = make(map[string]interface{}, xlen)
  20220. changed = true
  20221. }
  20222. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  20223. var mk string
  20224. var mv interface{}
  20225. if containerLen > 0 {
  20226. for j := 0; j < containerLen; j++ {
  20227. if cr != nil {
  20228. cr.sendContainerState(containerMapKey)
  20229. }
  20230. mk = dd.DecodeString()
  20231. if cr != nil {
  20232. cr.sendContainerState(containerMapValue)
  20233. }
  20234. if mapGet {
  20235. mv = v[mk]
  20236. } else {
  20237. mv = nil
  20238. }
  20239. d.decode(&mv)
  20240. if v != nil {
  20241. v[mk] = mv
  20242. }
  20243. }
  20244. } else if containerLen < 0 {
  20245. for j := 0; !dd.CheckBreak(); j++ {
  20246. if cr != nil {
  20247. cr.sendContainerState(containerMapKey)
  20248. }
  20249. mk = dd.DecodeString()
  20250. if cr != nil {
  20251. cr.sendContainerState(containerMapValue)
  20252. }
  20253. if mapGet {
  20254. mv = v[mk]
  20255. } else {
  20256. mv = nil
  20257. }
  20258. d.decode(&mv)
  20259. if v != nil {
  20260. v[mk] = mv
  20261. }
  20262. }
  20263. }
  20264. if cr != nil {
  20265. cr.sendContainerState(containerMapEnd)
  20266. }
  20267. return v, changed
  20268. }
  20269. func (f *decFnInfo) fastpathDecMapStringStringR(rv reflect.Value) {
  20270. if rv.CanAddr() {
  20271. vp := rv.Addr().Interface().(*map[string]string)
  20272. v, changed := fastpathTV.DecMapStringStringV(*vp, fastpathCheckNilFalse, true, f.d)
  20273. if changed {
  20274. *vp = v
  20275. }
  20276. } else {
  20277. v := rv.Interface().(map[string]string)
  20278. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, f.d)
  20279. }
  20280. }
  20281. func (f fastpathT) DecMapStringStringX(vp *map[string]string, checkNil bool, d *Decoder) {
  20282. v, changed := f.DecMapStringStringV(*vp, checkNil, true, d)
  20283. if changed {
  20284. *vp = v
  20285. }
  20286. }
  20287. func (_ fastpathT) DecMapStringStringV(v map[string]string, checkNil bool, canChange bool,
  20288. d *Decoder) (_ map[string]string, changed bool) {
  20289. dd := d.d
  20290. cr := d.cr
  20291. if checkNil && dd.TryDecodeAsNil() {
  20292. if v != nil {
  20293. changed = true
  20294. }
  20295. return nil, changed
  20296. }
  20297. containerLen := dd.ReadMapStart()
  20298. if canChange && v == nil {
  20299. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20300. v = make(map[string]string, xlen)
  20301. changed = true
  20302. }
  20303. var mk string
  20304. var mv string
  20305. if containerLen > 0 {
  20306. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  20320. for j := 0; !dd.CheckBreak(); j++ {
  20321. if cr != nil {
  20322. cr.sendContainerState(containerMapKey)
  20323. }
  20324. mk = dd.DecodeString()
  20325. if cr != nil {
  20326. cr.sendContainerState(containerMapValue)
  20327. }
  20328. mv = dd.DecodeString()
  20329. if v != nil {
  20330. v[mk] = mv
  20331. }
  20332. }
  20333. }
  20334. if cr != nil {
  20335. cr.sendContainerState(containerMapEnd)
  20336. }
  20337. return v, changed
  20338. }
  20339. func (f *decFnInfo) fastpathDecMapStringUintR(rv reflect.Value) {
  20340. if rv.CanAddr() {
  20341. vp := rv.Addr().Interface().(*map[string]uint)
  20342. v, changed := fastpathTV.DecMapStringUintV(*vp, fastpathCheckNilFalse, true, f.d)
  20343. if changed {
  20344. *vp = v
  20345. }
  20346. } else {
  20347. v := rv.Interface().(map[string]uint)
  20348. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, f.d)
  20349. }
  20350. }
  20351. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, checkNil bool, d *Decoder) {
  20352. v, changed := f.DecMapStringUintV(*vp, checkNil, true, d)
  20353. if changed {
  20354. *vp = v
  20355. }
  20356. }
  20357. func (_ fastpathT) DecMapStringUintV(v map[string]uint, checkNil bool, canChange bool,
  20358. d *Decoder) (_ map[string]uint, changed bool) {
  20359. dd := d.d
  20360. cr := d.cr
  20361. if checkNil && dd.TryDecodeAsNil() {
  20362. if v != nil {
  20363. changed = true
  20364. }
  20365. return nil, changed
  20366. }
  20367. containerLen := dd.ReadMapStart()
  20368. if canChange && v == nil {
  20369. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20370. v = make(map[string]uint, xlen)
  20371. changed = true
  20372. }
  20373. var mk string
  20374. var mv uint
  20375. if containerLen > 0 {
  20376. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  20390. for j := 0; !dd.CheckBreak(); j++ {
  20391. if cr != nil {
  20392. cr.sendContainerState(containerMapKey)
  20393. }
  20394. mk = dd.DecodeString()
  20395. if cr != nil {
  20396. cr.sendContainerState(containerMapValue)
  20397. }
  20398. mv = uint(dd.DecodeUint(uintBitsize))
  20399. if v != nil {
  20400. v[mk] = mv
  20401. }
  20402. }
  20403. }
  20404. if cr != nil {
  20405. cr.sendContainerState(containerMapEnd)
  20406. }
  20407. return v, changed
  20408. }
  20409. func (f *decFnInfo) fastpathDecMapStringUint8R(rv reflect.Value) {
  20410. if rv.CanAddr() {
  20411. vp := rv.Addr().Interface().(*map[string]uint8)
  20412. v, changed := fastpathTV.DecMapStringUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  20413. if changed {
  20414. *vp = v
  20415. }
  20416. } else {
  20417. v := rv.Interface().(map[string]uint8)
  20418. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, f.d)
  20419. }
  20420. }
  20421. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, checkNil bool, d *Decoder) {
  20422. v, changed := f.DecMapStringUint8V(*vp, checkNil, true, d)
  20423. if changed {
  20424. *vp = v
  20425. }
  20426. }
  20427. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, checkNil bool, canChange bool,
  20428. d *Decoder) (_ map[string]uint8, changed bool) {
  20429. dd := d.d
  20430. cr := d.cr
  20431. if checkNil && dd.TryDecodeAsNil() {
  20432. if v != nil {
  20433. changed = true
  20434. }
  20435. return nil, changed
  20436. }
  20437. containerLen := dd.ReadMapStart()
  20438. if canChange && v == nil {
  20439. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20440. v = make(map[string]uint8, xlen)
  20441. changed = true
  20442. }
  20443. var mk string
  20444. var mv uint8
  20445. if containerLen > 0 {
  20446. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  20460. for j := 0; !dd.CheckBreak(); j++ {
  20461. if cr != nil {
  20462. cr.sendContainerState(containerMapKey)
  20463. }
  20464. mk = dd.DecodeString()
  20465. if cr != nil {
  20466. cr.sendContainerState(containerMapValue)
  20467. }
  20468. mv = uint8(dd.DecodeUint(8))
  20469. if v != nil {
  20470. v[mk] = mv
  20471. }
  20472. }
  20473. }
  20474. if cr != nil {
  20475. cr.sendContainerState(containerMapEnd)
  20476. }
  20477. return v, changed
  20478. }
  20479. func (f *decFnInfo) fastpathDecMapStringUint16R(rv reflect.Value) {
  20480. if rv.CanAddr() {
  20481. vp := rv.Addr().Interface().(*map[string]uint16)
  20482. v, changed := fastpathTV.DecMapStringUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  20483. if changed {
  20484. *vp = v
  20485. }
  20486. } else {
  20487. v := rv.Interface().(map[string]uint16)
  20488. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, f.d)
  20489. }
  20490. }
  20491. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, checkNil bool, d *Decoder) {
  20492. v, changed := f.DecMapStringUint16V(*vp, checkNil, true, d)
  20493. if changed {
  20494. *vp = v
  20495. }
  20496. }
  20497. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, checkNil bool, canChange bool,
  20498. d *Decoder) (_ map[string]uint16, changed bool) {
  20499. dd := d.d
  20500. cr := d.cr
  20501. if checkNil && dd.TryDecodeAsNil() {
  20502. if v != nil {
  20503. changed = true
  20504. }
  20505. return nil, changed
  20506. }
  20507. containerLen := dd.ReadMapStart()
  20508. if canChange && v == nil {
  20509. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20510. v = make(map[string]uint16, xlen)
  20511. changed = true
  20512. }
  20513. var mk string
  20514. var mv uint16
  20515. if containerLen > 0 {
  20516. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  20530. for j := 0; !dd.CheckBreak(); j++ {
  20531. if cr != nil {
  20532. cr.sendContainerState(containerMapKey)
  20533. }
  20534. mk = dd.DecodeString()
  20535. if cr != nil {
  20536. cr.sendContainerState(containerMapValue)
  20537. }
  20538. mv = uint16(dd.DecodeUint(16))
  20539. if v != nil {
  20540. v[mk] = mv
  20541. }
  20542. }
  20543. }
  20544. if cr != nil {
  20545. cr.sendContainerState(containerMapEnd)
  20546. }
  20547. return v, changed
  20548. }
  20549. func (f *decFnInfo) fastpathDecMapStringUint32R(rv reflect.Value) {
  20550. if rv.CanAddr() {
  20551. vp := rv.Addr().Interface().(*map[string]uint32)
  20552. v, changed := fastpathTV.DecMapStringUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  20553. if changed {
  20554. *vp = v
  20555. }
  20556. } else {
  20557. v := rv.Interface().(map[string]uint32)
  20558. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, f.d)
  20559. }
  20560. }
  20561. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, checkNil bool, d *Decoder) {
  20562. v, changed := f.DecMapStringUint32V(*vp, checkNil, true, d)
  20563. if changed {
  20564. *vp = v
  20565. }
  20566. }
  20567. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, checkNil bool, canChange bool,
  20568. d *Decoder) (_ map[string]uint32, changed bool) {
  20569. dd := d.d
  20570. cr := d.cr
  20571. if checkNil && dd.TryDecodeAsNil() {
  20572. if v != nil {
  20573. changed = true
  20574. }
  20575. return nil, changed
  20576. }
  20577. containerLen := dd.ReadMapStart()
  20578. if canChange && v == nil {
  20579. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20580. v = make(map[string]uint32, xlen)
  20581. changed = true
  20582. }
  20583. var mk string
  20584. var mv uint32
  20585. if containerLen > 0 {
  20586. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  20600. for j := 0; !dd.CheckBreak(); j++ {
  20601. if cr != nil {
  20602. cr.sendContainerState(containerMapKey)
  20603. }
  20604. mk = dd.DecodeString()
  20605. if cr != nil {
  20606. cr.sendContainerState(containerMapValue)
  20607. }
  20608. mv = uint32(dd.DecodeUint(32))
  20609. if v != nil {
  20610. v[mk] = mv
  20611. }
  20612. }
  20613. }
  20614. if cr != nil {
  20615. cr.sendContainerState(containerMapEnd)
  20616. }
  20617. return v, changed
  20618. }
  20619. func (f *decFnInfo) fastpathDecMapStringUint64R(rv reflect.Value) {
  20620. if rv.CanAddr() {
  20621. vp := rv.Addr().Interface().(*map[string]uint64)
  20622. v, changed := fastpathTV.DecMapStringUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  20623. if changed {
  20624. *vp = v
  20625. }
  20626. } else {
  20627. v := rv.Interface().(map[string]uint64)
  20628. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, f.d)
  20629. }
  20630. }
  20631. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, checkNil bool, d *Decoder) {
  20632. v, changed := f.DecMapStringUint64V(*vp, checkNil, true, d)
  20633. if changed {
  20634. *vp = v
  20635. }
  20636. }
  20637. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, checkNil bool, canChange bool,
  20638. d *Decoder) (_ map[string]uint64, changed bool) {
  20639. dd := d.d
  20640. cr := d.cr
  20641. if checkNil && dd.TryDecodeAsNil() {
  20642. if v != nil {
  20643. changed = true
  20644. }
  20645. return nil, changed
  20646. }
  20647. containerLen := dd.ReadMapStart()
  20648. if canChange && v == nil {
  20649. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20650. v = make(map[string]uint64, xlen)
  20651. changed = true
  20652. }
  20653. var mk string
  20654. var mv uint64
  20655. if containerLen > 0 {
  20656. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  20670. for j := 0; !dd.CheckBreak(); j++ {
  20671. if cr != nil {
  20672. cr.sendContainerState(containerMapKey)
  20673. }
  20674. mk = dd.DecodeString()
  20675. if cr != nil {
  20676. cr.sendContainerState(containerMapValue)
  20677. }
  20678. mv = dd.DecodeUint(64)
  20679. if v != nil {
  20680. v[mk] = mv
  20681. }
  20682. }
  20683. }
  20684. if cr != nil {
  20685. cr.sendContainerState(containerMapEnd)
  20686. }
  20687. return v, changed
  20688. }
  20689. func (f *decFnInfo) fastpathDecMapStringUintptrR(rv reflect.Value) {
  20690. if rv.CanAddr() {
  20691. vp := rv.Addr().Interface().(*map[string]uintptr)
  20692. v, changed := fastpathTV.DecMapStringUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  20693. if changed {
  20694. *vp = v
  20695. }
  20696. } else {
  20697. v := rv.Interface().(map[string]uintptr)
  20698. fastpathTV.DecMapStringUintptrV(v, fastpathCheckNilFalse, false, f.d)
  20699. }
  20700. }
  20701. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, checkNil bool, d *Decoder) {
  20702. v, changed := f.DecMapStringUintptrV(*vp, checkNil, true, d)
  20703. if changed {
  20704. *vp = v
  20705. }
  20706. }
  20707. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, checkNil bool, canChange bool,
  20708. d *Decoder) (_ map[string]uintptr, changed bool) {
  20709. dd := d.d
  20710. cr := d.cr
  20711. if checkNil && dd.TryDecodeAsNil() {
  20712. if v != nil {
  20713. changed = true
  20714. }
  20715. return nil, changed
  20716. }
  20717. containerLen := dd.ReadMapStart()
  20718. if canChange && v == nil {
  20719. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20720. v = make(map[string]uintptr, xlen)
  20721. changed = true
  20722. }
  20723. var mk string
  20724. var mv uintptr
  20725. if containerLen > 0 {
  20726. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  20740. for j := 0; !dd.CheckBreak(); j++ {
  20741. if cr != nil {
  20742. cr.sendContainerState(containerMapKey)
  20743. }
  20744. mk = dd.DecodeString()
  20745. if cr != nil {
  20746. cr.sendContainerState(containerMapValue)
  20747. }
  20748. mv = uintptr(dd.DecodeUint(uintBitsize))
  20749. if v != nil {
  20750. v[mk] = mv
  20751. }
  20752. }
  20753. }
  20754. if cr != nil {
  20755. cr.sendContainerState(containerMapEnd)
  20756. }
  20757. return v, changed
  20758. }
  20759. func (f *decFnInfo) fastpathDecMapStringIntR(rv reflect.Value) {
  20760. if rv.CanAddr() {
  20761. vp := rv.Addr().Interface().(*map[string]int)
  20762. v, changed := fastpathTV.DecMapStringIntV(*vp, fastpathCheckNilFalse, true, f.d)
  20763. if changed {
  20764. *vp = v
  20765. }
  20766. } else {
  20767. v := rv.Interface().(map[string]int)
  20768. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, f.d)
  20769. }
  20770. }
  20771. func (f fastpathT) DecMapStringIntX(vp *map[string]int, checkNil bool, d *Decoder) {
  20772. v, changed := f.DecMapStringIntV(*vp, checkNil, true, d)
  20773. if changed {
  20774. *vp = v
  20775. }
  20776. }
  20777. func (_ fastpathT) DecMapStringIntV(v map[string]int, checkNil bool, canChange bool,
  20778. d *Decoder) (_ map[string]int, changed bool) {
  20779. dd := d.d
  20780. cr := d.cr
  20781. if checkNil && dd.TryDecodeAsNil() {
  20782. if v != nil {
  20783. changed = true
  20784. }
  20785. return nil, changed
  20786. }
  20787. containerLen := dd.ReadMapStart()
  20788. if canChange && v == nil {
  20789. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20790. v = make(map[string]int, xlen)
  20791. changed = true
  20792. }
  20793. var mk string
  20794. var mv int
  20795. if containerLen > 0 {
  20796. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  20810. for j := 0; !dd.CheckBreak(); j++ {
  20811. if cr != nil {
  20812. cr.sendContainerState(containerMapKey)
  20813. }
  20814. mk = dd.DecodeString()
  20815. if cr != nil {
  20816. cr.sendContainerState(containerMapValue)
  20817. }
  20818. mv = int(dd.DecodeInt(intBitsize))
  20819. if v != nil {
  20820. v[mk] = mv
  20821. }
  20822. }
  20823. }
  20824. if cr != nil {
  20825. cr.sendContainerState(containerMapEnd)
  20826. }
  20827. return v, changed
  20828. }
  20829. func (f *decFnInfo) fastpathDecMapStringInt8R(rv reflect.Value) {
  20830. if rv.CanAddr() {
  20831. vp := rv.Addr().Interface().(*map[string]int8)
  20832. v, changed := fastpathTV.DecMapStringInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  20833. if changed {
  20834. *vp = v
  20835. }
  20836. } else {
  20837. v := rv.Interface().(map[string]int8)
  20838. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, f.d)
  20839. }
  20840. }
  20841. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, checkNil bool, d *Decoder) {
  20842. v, changed := f.DecMapStringInt8V(*vp, checkNil, true, d)
  20843. if changed {
  20844. *vp = v
  20845. }
  20846. }
  20847. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, checkNil bool, canChange bool,
  20848. d *Decoder) (_ map[string]int8, changed bool) {
  20849. dd := d.d
  20850. cr := d.cr
  20851. if checkNil && dd.TryDecodeAsNil() {
  20852. if v != nil {
  20853. changed = true
  20854. }
  20855. return nil, changed
  20856. }
  20857. containerLen := dd.ReadMapStart()
  20858. if canChange && v == nil {
  20859. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20860. v = make(map[string]int8, xlen)
  20861. changed = true
  20862. }
  20863. var mk string
  20864. var mv int8
  20865. if containerLen > 0 {
  20866. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  20880. for j := 0; !dd.CheckBreak(); j++ {
  20881. if cr != nil {
  20882. cr.sendContainerState(containerMapKey)
  20883. }
  20884. mk = dd.DecodeString()
  20885. if cr != nil {
  20886. cr.sendContainerState(containerMapValue)
  20887. }
  20888. mv = int8(dd.DecodeInt(8))
  20889. if v != nil {
  20890. v[mk] = mv
  20891. }
  20892. }
  20893. }
  20894. if cr != nil {
  20895. cr.sendContainerState(containerMapEnd)
  20896. }
  20897. return v, changed
  20898. }
  20899. func (f *decFnInfo) fastpathDecMapStringInt16R(rv reflect.Value) {
  20900. if rv.CanAddr() {
  20901. vp := rv.Addr().Interface().(*map[string]int16)
  20902. v, changed := fastpathTV.DecMapStringInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  20903. if changed {
  20904. *vp = v
  20905. }
  20906. } else {
  20907. v := rv.Interface().(map[string]int16)
  20908. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, f.d)
  20909. }
  20910. }
  20911. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, checkNil bool, d *Decoder) {
  20912. v, changed := f.DecMapStringInt16V(*vp, checkNil, true, d)
  20913. if changed {
  20914. *vp = v
  20915. }
  20916. }
  20917. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, checkNil bool, canChange bool,
  20918. d *Decoder) (_ map[string]int16, changed bool) {
  20919. dd := d.d
  20920. cr := d.cr
  20921. if checkNil && dd.TryDecodeAsNil() {
  20922. if v != nil {
  20923. changed = true
  20924. }
  20925. return nil, changed
  20926. }
  20927. containerLen := dd.ReadMapStart()
  20928. if canChange && v == nil {
  20929. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20930. v = make(map[string]int16, xlen)
  20931. changed = true
  20932. }
  20933. var mk string
  20934. var mv int16
  20935. if containerLen > 0 {
  20936. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  20950. for j := 0; !dd.CheckBreak(); j++ {
  20951. if cr != nil {
  20952. cr.sendContainerState(containerMapKey)
  20953. }
  20954. mk = dd.DecodeString()
  20955. if cr != nil {
  20956. cr.sendContainerState(containerMapValue)
  20957. }
  20958. mv = int16(dd.DecodeInt(16))
  20959. if v != nil {
  20960. v[mk] = mv
  20961. }
  20962. }
  20963. }
  20964. if cr != nil {
  20965. cr.sendContainerState(containerMapEnd)
  20966. }
  20967. return v, changed
  20968. }
  20969. func (f *decFnInfo) fastpathDecMapStringInt32R(rv reflect.Value) {
  20970. if rv.CanAddr() {
  20971. vp := rv.Addr().Interface().(*map[string]int32)
  20972. v, changed := fastpathTV.DecMapStringInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  20973. if changed {
  20974. *vp = v
  20975. }
  20976. } else {
  20977. v := rv.Interface().(map[string]int32)
  20978. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, f.d)
  20979. }
  20980. }
  20981. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, checkNil bool, d *Decoder) {
  20982. v, changed := f.DecMapStringInt32V(*vp, checkNil, true, d)
  20983. if changed {
  20984. *vp = v
  20985. }
  20986. }
  20987. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, checkNil bool, canChange bool,
  20988. d *Decoder) (_ map[string]int32, changed bool) {
  20989. dd := d.d
  20990. cr := d.cr
  20991. if checkNil && dd.TryDecodeAsNil() {
  20992. if v != nil {
  20993. changed = true
  20994. }
  20995. return nil, changed
  20996. }
  20997. containerLen := dd.ReadMapStart()
  20998. if canChange && v == nil {
  20999. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21000. v = make(map[string]int32, xlen)
  21001. changed = true
  21002. }
  21003. var mk string
  21004. var mv int32
  21005. if containerLen > 0 {
  21006. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21020. for j := 0; !dd.CheckBreak(); j++ {
  21021. if cr != nil {
  21022. cr.sendContainerState(containerMapKey)
  21023. }
  21024. mk = dd.DecodeString()
  21025. if cr != nil {
  21026. cr.sendContainerState(containerMapValue)
  21027. }
  21028. mv = int32(dd.DecodeInt(32))
  21029. if v != nil {
  21030. v[mk] = mv
  21031. }
  21032. }
  21033. }
  21034. if cr != nil {
  21035. cr.sendContainerState(containerMapEnd)
  21036. }
  21037. return v, changed
  21038. }
  21039. func (f *decFnInfo) fastpathDecMapStringInt64R(rv reflect.Value) {
  21040. if rv.CanAddr() {
  21041. vp := rv.Addr().Interface().(*map[string]int64)
  21042. v, changed := fastpathTV.DecMapStringInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  21043. if changed {
  21044. *vp = v
  21045. }
  21046. } else {
  21047. v := rv.Interface().(map[string]int64)
  21048. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, f.d)
  21049. }
  21050. }
  21051. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, checkNil bool, d *Decoder) {
  21052. v, changed := f.DecMapStringInt64V(*vp, checkNil, true, d)
  21053. if changed {
  21054. *vp = v
  21055. }
  21056. }
  21057. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, checkNil bool, canChange bool,
  21058. d *Decoder) (_ map[string]int64, changed bool) {
  21059. dd := d.d
  21060. cr := d.cr
  21061. if checkNil && dd.TryDecodeAsNil() {
  21062. if v != nil {
  21063. changed = true
  21064. }
  21065. return nil, changed
  21066. }
  21067. containerLen := dd.ReadMapStart()
  21068. if canChange && v == nil {
  21069. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21070. v = make(map[string]int64, xlen)
  21071. changed = true
  21072. }
  21073. var mk string
  21074. var mv int64
  21075. if containerLen > 0 {
  21076. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21090. for j := 0; !dd.CheckBreak(); j++ {
  21091. if cr != nil {
  21092. cr.sendContainerState(containerMapKey)
  21093. }
  21094. mk = dd.DecodeString()
  21095. if cr != nil {
  21096. cr.sendContainerState(containerMapValue)
  21097. }
  21098. mv = dd.DecodeInt(64)
  21099. if v != nil {
  21100. v[mk] = mv
  21101. }
  21102. }
  21103. }
  21104. if cr != nil {
  21105. cr.sendContainerState(containerMapEnd)
  21106. }
  21107. return v, changed
  21108. }
  21109. func (f *decFnInfo) fastpathDecMapStringFloat32R(rv reflect.Value) {
  21110. if rv.CanAddr() {
  21111. vp := rv.Addr().Interface().(*map[string]float32)
  21112. v, changed := fastpathTV.DecMapStringFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  21113. if changed {
  21114. *vp = v
  21115. }
  21116. } else {
  21117. v := rv.Interface().(map[string]float32)
  21118. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, f.d)
  21119. }
  21120. }
  21121. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, checkNil bool, d *Decoder) {
  21122. v, changed := f.DecMapStringFloat32V(*vp, checkNil, true, d)
  21123. if changed {
  21124. *vp = v
  21125. }
  21126. }
  21127. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, checkNil bool, canChange bool,
  21128. d *Decoder) (_ map[string]float32, changed bool) {
  21129. dd := d.d
  21130. cr := d.cr
  21131. if checkNil && dd.TryDecodeAsNil() {
  21132. if v != nil {
  21133. changed = true
  21134. }
  21135. return nil, changed
  21136. }
  21137. containerLen := dd.ReadMapStart()
  21138. if canChange && v == nil {
  21139. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21140. v = make(map[string]float32, xlen)
  21141. changed = true
  21142. }
  21143. var mk string
  21144. var mv float32
  21145. if containerLen > 0 {
  21146. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21160. for j := 0; !dd.CheckBreak(); j++ {
  21161. if cr != nil {
  21162. cr.sendContainerState(containerMapKey)
  21163. }
  21164. mk = dd.DecodeString()
  21165. if cr != nil {
  21166. cr.sendContainerState(containerMapValue)
  21167. }
  21168. mv = float32(dd.DecodeFloat(true))
  21169. if v != nil {
  21170. v[mk] = mv
  21171. }
  21172. }
  21173. }
  21174. if cr != nil {
  21175. cr.sendContainerState(containerMapEnd)
  21176. }
  21177. return v, changed
  21178. }
  21179. func (f *decFnInfo) fastpathDecMapStringFloat64R(rv reflect.Value) {
  21180. if rv.CanAddr() {
  21181. vp := rv.Addr().Interface().(*map[string]float64)
  21182. v, changed := fastpathTV.DecMapStringFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  21183. if changed {
  21184. *vp = v
  21185. }
  21186. } else {
  21187. v := rv.Interface().(map[string]float64)
  21188. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, f.d)
  21189. }
  21190. }
  21191. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, checkNil bool, d *Decoder) {
  21192. v, changed := f.DecMapStringFloat64V(*vp, checkNil, true, d)
  21193. if changed {
  21194. *vp = v
  21195. }
  21196. }
  21197. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, checkNil bool, canChange bool,
  21198. d *Decoder) (_ map[string]float64, changed bool) {
  21199. dd := d.d
  21200. cr := d.cr
  21201. if checkNil && dd.TryDecodeAsNil() {
  21202. if v != nil {
  21203. changed = true
  21204. }
  21205. return nil, changed
  21206. }
  21207. containerLen := dd.ReadMapStart()
  21208. if canChange && v == nil {
  21209. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21210. v = make(map[string]float64, xlen)
  21211. changed = true
  21212. }
  21213. var mk string
  21214. var mv float64
  21215. if containerLen > 0 {
  21216. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21230. for j := 0; !dd.CheckBreak(); j++ {
  21231. if cr != nil {
  21232. cr.sendContainerState(containerMapKey)
  21233. }
  21234. mk = dd.DecodeString()
  21235. if cr != nil {
  21236. cr.sendContainerState(containerMapValue)
  21237. }
  21238. mv = dd.DecodeFloat(false)
  21239. if v != nil {
  21240. v[mk] = mv
  21241. }
  21242. }
  21243. }
  21244. if cr != nil {
  21245. cr.sendContainerState(containerMapEnd)
  21246. }
  21247. return v, changed
  21248. }
  21249. func (f *decFnInfo) fastpathDecMapStringBoolR(rv reflect.Value) {
  21250. if rv.CanAddr() {
  21251. vp := rv.Addr().Interface().(*map[string]bool)
  21252. v, changed := fastpathTV.DecMapStringBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  21253. if changed {
  21254. *vp = v
  21255. }
  21256. } else {
  21257. v := rv.Interface().(map[string]bool)
  21258. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, f.d)
  21259. }
  21260. }
  21261. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, checkNil bool, d *Decoder) {
  21262. v, changed := f.DecMapStringBoolV(*vp, checkNil, true, d)
  21263. if changed {
  21264. *vp = v
  21265. }
  21266. }
  21267. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, checkNil bool, canChange bool,
  21268. d *Decoder) (_ map[string]bool, changed bool) {
  21269. dd := d.d
  21270. cr := d.cr
  21271. if checkNil && dd.TryDecodeAsNil() {
  21272. if v != nil {
  21273. changed = true
  21274. }
  21275. return nil, changed
  21276. }
  21277. containerLen := dd.ReadMapStart()
  21278. if canChange && v == nil {
  21279. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  21280. v = make(map[string]bool, xlen)
  21281. changed = true
  21282. }
  21283. var mk string
  21284. var mv bool
  21285. if containerLen > 0 {
  21286. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21300. for j := 0; !dd.CheckBreak(); j++ {
  21301. if cr != nil {
  21302. cr.sendContainerState(containerMapKey)
  21303. }
  21304. mk = dd.DecodeString()
  21305. if cr != nil {
  21306. cr.sendContainerState(containerMapValue)
  21307. }
  21308. mv = dd.DecodeBool()
  21309. if v != nil {
  21310. v[mk] = mv
  21311. }
  21312. }
  21313. }
  21314. if cr != nil {
  21315. cr.sendContainerState(containerMapEnd)
  21316. }
  21317. return v, changed
  21318. }
  21319. func (f *decFnInfo) fastpathDecMapFloat32IntfR(rv reflect.Value) {
  21320. if rv.CanAddr() {
  21321. vp := rv.Addr().Interface().(*map[float32]interface{})
  21322. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  21323. if changed {
  21324. *vp = v
  21325. }
  21326. } else {
  21327. v := rv.Interface().(map[float32]interface{})
  21328. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, f.d)
  21329. }
  21330. }
  21331. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, checkNil bool, d *Decoder) {
  21332. v, changed := f.DecMapFloat32IntfV(*vp, checkNil, true, d)
  21333. if changed {
  21334. *vp = v
  21335. }
  21336. }
  21337. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, checkNil bool, canChange bool,
  21338. d *Decoder) (_ map[float32]interface{}, changed bool) {
  21339. dd := d.d
  21340. cr := d.cr
  21341. if checkNil && dd.TryDecodeAsNil() {
  21342. if v != nil {
  21343. changed = true
  21344. }
  21345. return nil, changed
  21346. }
  21347. containerLen := dd.ReadMapStart()
  21348. if canChange && v == nil {
  21349. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21350. v = make(map[float32]interface{}, xlen)
  21351. changed = true
  21352. }
  21353. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  21354. var mk float32
  21355. var mv interface{}
  21356. if containerLen > 0 {
  21357. for j := 0; j < containerLen; j++ {
  21358. if cr != nil {
  21359. cr.sendContainerState(containerMapKey)
  21360. }
  21361. mk = float32(dd.DecodeFloat(true))
  21362. if cr != nil {
  21363. cr.sendContainerState(containerMapValue)
  21364. }
  21365. if mapGet {
  21366. mv = v[mk]
  21367. } else {
  21368. mv = nil
  21369. }
  21370. d.decode(&mv)
  21371. if v != nil {
  21372. v[mk] = mv
  21373. }
  21374. }
  21375. } else if containerLen < 0 {
  21376. for j := 0; !dd.CheckBreak(); j++ {
  21377. if cr != nil {
  21378. cr.sendContainerState(containerMapKey)
  21379. }
  21380. mk = float32(dd.DecodeFloat(true))
  21381. if cr != nil {
  21382. cr.sendContainerState(containerMapValue)
  21383. }
  21384. if mapGet {
  21385. mv = v[mk]
  21386. } else {
  21387. mv = nil
  21388. }
  21389. d.decode(&mv)
  21390. if v != nil {
  21391. v[mk] = mv
  21392. }
  21393. }
  21394. }
  21395. if cr != nil {
  21396. cr.sendContainerState(containerMapEnd)
  21397. }
  21398. return v, changed
  21399. }
  21400. func (f *decFnInfo) fastpathDecMapFloat32StringR(rv reflect.Value) {
  21401. if rv.CanAddr() {
  21402. vp := rv.Addr().Interface().(*map[float32]string)
  21403. v, changed := fastpathTV.DecMapFloat32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  21404. if changed {
  21405. *vp = v
  21406. }
  21407. } else {
  21408. v := rv.Interface().(map[float32]string)
  21409. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, f.d)
  21410. }
  21411. }
  21412. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, checkNil bool, d *Decoder) {
  21413. v, changed := f.DecMapFloat32StringV(*vp, checkNil, true, d)
  21414. if changed {
  21415. *vp = v
  21416. }
  21417. }
  21418. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, checkNil bool, canChange bool,
  21419. d *Decoder) (_ map[float32]string, changed bool) {
  21420. dd := d.d
  21421. cr := d.cr
  21422. if checkNil && dd.TryDecodeAsNil() {
  21423. if v != nil {
  21424. changed = true
  21425. }
  21426. return nil, changed
  21427. }
  21428. containerLen := dd.ReadMapStart()
  21429. if canChange && v == nil {
  21430. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21431. v = make(map[float32]string, xlen)
  21432. changed = true
  21433. }
  21434. var mk float32
  21435. var mv string
  21436. if containerLen > 0 {
  21437. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21451. for j := 0; !dd.CheckBreak(); j++ {
  21452. if cr != nil {
  21453. cr.sendContainerState(containerMapKey)
  21454. }
  21455. mk = float32(dd.DecodeFloat(true))
  21456. if cr != nil {
  21457. cr.sendContainerState(containerMapValue)
  21458. }
  21459. mv = dd.DecodeString()
  21460. if v != nil {
  21461. v[mk] = mv
  21462. }
  21463. }
  21464. }
  21465. if cr != nil {
  21466. cr.sendContainerState(containerMapEnd)
  21467. }
  21468. return v, changed
  21469. }
  21470. func (f *decFnInfo) fastpathDecMapFloat32UintR(rv reflect.Value) {
  21471. if rv.CanAddr() {
  21472. vp := rv.Addr().Interface().(*map[float32]uint)
  21473. v, changed := fastpathTV.DecMapFloat32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  21474. if changed {
  21475. *vp = v
  21476. }
  21477. } else {
  21478. v := rv.Interface().(map[float32]uint)
  21479. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, f.d)
  21480. }
  21481. }
  21482. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, checkNil bool, d *Decoder) {
  21483. v, changed := f.DecMapFloat32UintV(*vp, checkNil, true, d)
  21484. if changed {
  21485. *vp = v
  21486. }
  21487. }
  21488. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, checkNil bool, canChange bool,
  21489. d *Decoder) (_ map[float32]uint, changed bool) {
  21490. dd := d.d
  21491. cr := d.cr
  21492. if checkNil && dd.TryDecodeAsNil() {
  21493. if v != nil {
  21494. changed = true
  21495. }
  21496. return nil, changed
  21497. }
  21498. containerLen := dd.ReadMapStart()
  21499. if canChange && v == nil {
  21500. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21501. v = make(map[float32]uint, xlen)
  21502. changed = true
  21503. }
  21504. var mk float32
  21505. var mv uint
  21506. if containerLen > 0 {
  21507. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21521. for j := 0; !dd.CheckBreak(); j++ {
  21522. if cr != nil {
  21523. cr.sendContainerState(containerMapKey)
  21524. }
  21525. mk = float32(dd.DecodeFloat(true))
  21526. if cr != nil {
  21527. cr.sendContainerState(containerMapValue)
  21528. }
  21529. mv = uint(dd.DecodeUint(uintBitsize))
  21530. if v != nil {
  21531. v[mk] = mv
  21532. }
  21533. }
  21534. }
  21535. if cr != nil {
  21536. cr.sendContainerState(containerMapEnd)
  21537. }
  21538. return v, changed
  21539. }
  21540. func (f *decFnInfo) fastpathDecMapFloat32Uint8R(rv reflect.Value) {
  21541. if rv.CanAddr() {
  21542. vp := rv.Addr().Interface().(*map[float32]uint8)
  21543. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  21544. if changed {
  21545. *vp = v
  21546. }
  21547. } else {
  21548. v := rv.Interface().(map[float32]uint8)
  21549. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  21550. }
  21551. }
  21552. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, checkNil bool, d *Decoder) {
  21553. v, changed := f.DecMapFloat32Uint8V(*vp, checkNil, true, d)
  21554. if changed {
  21555. *vp = v
  21556. }
  21557. }
  21558. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, checkNil bool, canChange bool,
  21559. d *Decoder) (_ map[float32]uint8, changed bool) {
  21560. dd := d.d
  21561. cr := d.cr
  21562. if checkNil && dd.TryDecodeAsNil() {
  21563. if v != nil {
  21564. changed = true
  21565. }
  21566. return nil, changed
  21567. }
  21568. containerLen := dd.ReadMapStart()
  21569. if canChange && v == nil {
  21570. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21571. v = make(map[float32]uint8, xlen)
  21572. changed = true
  21573. }
  21574. var mk float32
  21575. var mv uint8
  21576. if containerLen > 0 {
  21577. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21591. for j := 0; !dd.CheckBreak(); j++ {
  21592. if cr != nil {
  21593. cr.sendContainerState(containerMapKey)
  21594. }
  21595. mk = float32(dd.DecodeFloat(true))
  21596. if cr != nil {
  21597. cr.sendContainerState(containerMapValue)
  21598. }
  21599. mv = uint8(dd.DecodeUint(8))
  21600. if v != nil {
  21601. v[mk] = mv
  21602. }
  21603. }
  21604. }
  21605. if cr != nil {
  21606. cr.sendContainerState(containerMapEnd)
  21607. }
  21608. return v, changed
  21609. }
  21610. func (f *decFnInfo) fastpathDecMapFloat32Uint16R(rv reflect.Value) {
  21611. if rv.CanAddr() {
  21612. vp := rv.Addr().Interface().(*map[float32]uint16)
  21613. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  21614. if changed {
  21615. *vp = v
  21616. }
  21617. } else {
  21618. v := rv.Interface().(map[float32]uint16)
  21619. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  21620. }
  21621. }
  21622. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, checkNil bool, d *Decoder) {
  21623. v, changed := f.DecMapFloat32Uint16V(*vp, checkNil, true, d)
  21624. if changed {
  21625. *vp = v
  21626. }
  21627. }
  21628. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, checkNil bool, canChange bool,
  21629. d *Decoder) (_ map[float32]uint16, changed bool) {
  21630. dd := d.d
  21631. cr := d.cr
  21632. if checkNil && dd.TryDecodeAsNil() {
  21633. if v != nil {
  21634. changed = true
  21635. }
  21636. return nil, changed
  21637. }
  21638. containerLen := dd.ReadMapStart()
  21639. if canChange && v == nil {
  21640. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21641. v = make(map[float32]uint16, xlen)
  21642. changed = true
  21643. }
  21644. var mk float32
  21645. var mv uint16
  21646. if containerLen > 0 {
  21647. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21661. for j := 0; !dd.CheckBreak(); j++ {
  21662. if cr != nil {
  21663. cr.sendContainerState(containerMapKey)
  21664. }
  21665. mk = float32(dd.DecodeFloat(true))
  21666. if cr != nil {
  21667. cr.sendContainerState(containerMapValue)
  21668. }
  21669. mv = uint16(dd.DecodeUint(16))
  21670. if v != nil {
  21671. v[mk] = mv
  21672. }
  21673. }
  21674. }
  21675. if cr != nil {
  21676. cr.sendContainerState(containerMapEnd)
  21677. }
  21678. return v, changed
  21679. }
  21680. func (f *decFnInfo) fastpathDecMapFloat32Uint32R(rv reflect.Value) {
  21681. if rv.CanAddr() {
  21682. vp := rv.Addr().Interface().(*map[float32]uint32)
  21683. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  21684. if changed {
  21685. *vp = v
  21686. }
  21687. } else {
  21688. v := rv.Interface().(map[float32]uint32)
  21689. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  21690. }
  21691. }
  21692. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, checkNil bool, d *Decoder) {
  21693. v, changed := f.DecMapFloat32Uint32V(*vp, checkNil, true, d)
  21694. if changed {
  21695. *vp = v
  21696. }
  21697. }
  21698. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, checkNil bool, canChange bool,
  21699. d *Decoder) (_ map[float32]uint32, changed bool) {
  21700. dd := d.d
  21701. cr := d.cr
  21702. if checkNil && dd.TryDecodeAsNil() {
  21703. if v != nil {
  21704. changed = true
  21705. }
  21706. return nil, changed
  21707. }
  21708. containerLen := dd.ReadMapStart()
  21709. if canChange && v == nil {
  21710. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21711. v = make(map[float32]uint32, xlen)
  21712. changed = true
  21713. }
  21714. var mk float32
  21715. var mv uint32
  21716. if containerLen > 0 {
  21717. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21731. for j := 0; !dd.CheckBreak(); j++ {
  21732. if cr != nil {
  21733. cr.sendContainerState(containerMapKey)
  21734. }
  21735. mk = float32(dd.DecodeFloat(true))
  21736. if cr != nil {
  21737. cr.sendContainerState(containerMapValue)
  21738. }
  21739. mv = uint32(dd.DecodeUint(32))
  21740. if v != nil {
  21741. v[mk] = mv
  21742. }
  21743. }
  21744. }
  21745. if cr != nil {
  21746. cr.sendContainerState(containerMapEnd)
  21747. }
  21748. return v, changed
  21749. }
  21750. func (f *decFnInfo) fastpathDecMapFloat32Uint64R(rv reflect.Value) {
  21751. if rv.CanAddr() {
  21752. vp := rv.Addr().Interface().(*map[float32]uint64)
  21753. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  21754. if changed {
  21755. *vp = v
  21756. }
  21757. } else {
  21758. v := rv.Interface().(map[float32]uint64)
  21759. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  21760. }
  21761. }
  21762. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, checkNil bool, d *Decoder) {
  21763. v, changed := f.DecMapFloat32Uint64V(*vp, checkNil, true, d)
  21764. if changed {
  21765. *vp = v
  21766. }
  21767. }
  21768. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, checkNil bool, canChange bool,
  21769. d *Decoder) (_ map[float32]uint64, changed bool) {
  21770. dd := d.d
  21771. cr := d.cr
  21772. if checkNil && dd.TryDecodeAsNil() {
  21773. if v != nil {
  21774. changed = true
  21775. }
  21776. return nil, changed
  21777. }
  21778. containerLen := dd.ReadMapStart()
  21779. if canChange && v == nil {
  21780. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21781. v = make(map[float32]uint64, xlen)
  21782. changed = true
  21783. }
  21784. var mk float32
  21785. var mv uint64
  21786. if containerLen > 0 {
  21787. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21801. for j := 0; !dd.CheckBreak(); j++ {
  21802. if cr != nil {
  21803. cr.sendContainerState(containerMapKey)
  21804. }
  21805. mk = float32(dd.DecodeFloat(true))
  21806. if cr != nil {
  21807. cr.sendContainerState(containerMapValue)
  21808. }
  21809. mv = dd.DecodeUint(64)
  21810. if v != nil {
  21811. v[mk] = mv
  21812. }
  21813. }
  21814. }
  21815. if cr != nil {
  21816. cr.sendContainerState(containerMapEnd)
  21817. }
  21818. return v, changed
  21819. }
  21820. func (f *decFnInfo) fastpathDecMapFloat32UintptrR(rv reflect.Value) {
  21821. if rv.CanAddr() {
  21822. vp := rv.Addr().Interface().(*map[float32]uintptr)
  21823. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  21824. if changed {
  21825. *vp = v
  21826. }
  21827. } else {
  21828. v := rv.Interface().(map[float32]uintptr)
  21829. fastpathTV.DecMapFloat32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  21830. }
  21831. }
  21832. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, checkNil bool, d *Decoder) {
  21833. v, changed := f.DecMapFloat32UintptrV(*vp, checkNil, true, d)
  21834. if changed {
  21835. *vp = v
  21836. }
  21837. }
  21838. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, checkNil bool, canChange bool,
  21839. d *Decoder) (_ map[float32]uintptr, changed bool) {
  21840. dd := d.d
  21841. cr := d.cr
  21842. if checkNil && dd.TryDecodeAsNil() {
  21843. if v != nil {
  21844. changed = true
  21845. }
  21846. return nil, changed
  21847. }
  21848. containerLen := dd.ReadMapStart()
  21849. if canChange && v == nil {
  21850. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21851. v = make(map[float32]uintptr, xlen)
  21852. changed = true
  21853. }
  21854. var mk float32
  21855. var mv uintptr
  21856. if containerLen > 0 {
  21857. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21871. for j := 0; !dd.CheckBreak(); j++ {
  21872. if cr != nil {
  21873. cr.sendContainerState(containerMapKey)
  21874. }
  21875. mk = float32(dd.DecodeFloat(true))
  21876. if cr != nil {
  21877. cr.sendContainerState(containerMapValue)
  21878. }
  21879. mv = uintptr(dd.DecodeUint(uintBitsize))
  21880. if v != nil {
  21881. v[mk] = mv
  21882. }
  21883. }
  21884. }
  21885. if cr != nil {
  21886. cr.sendContainerState(containerMapEnd)
  21887. }
  21888. return v, changed
  21889. }
  21890. func (f *decFnInfo) fastpathDecMapFloat32IntR(rv reflect.Value) {
  21891. if rv.CanAddr() {
  21892. vp := rv.Addr().Interface().(*map[float32]int)
  21893. v, changed := fastpathTV.DecMapFloat32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  21894. if changed {
  21895. *vp = v
  21896. }
  21897. } else {
  21898. v := rv.Interface().(map[float32]int)
  21899. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, f.d)
  21900. }
  21901. }
  21902. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, checkNil bool, d *Decoder) {
  21903. v, changed := f.DecMapFloat32IntV(*vp, checkNil, true, d)
  21904. if changed {
  21905. *vp = v
  21906. }
  21907. }
  21908. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, checkNil bool, canChange bool,
  21909. d *Decoder) (_ map[float32]int, changed bool) {
  21910. dd := d.d
  21911. cr := d.cr
  21912. if checkNil && dd.TryDecodeAsNil() {
  21913. if v != nil {
  21914. changed = true
  21915. }
  21916. return nil, changed
  21917. }
  21918. containerLen := dd.ReadMapStart()
  21919. if canChange && v == nil {
  21920. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21921. v = make(map[float32]int, xlen)
  21922. changed = true
  21923. }
  21924. var mk float32
  21925. var mv int
  21926. if containerLen > 0 {
  21927. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  21941. for j := 0; !dd.CheckBreak(); j++ {
  21942. if cr != nil {
  21943. cr.sendContainerState(containerMapKey)
  21944. }
  21945. mk = float32(dd.DecodeFloat(true))
  21946. if cr != nil {
  21947. cr.sendContainerState(containerMapValue)
  21948. }
  21949. mv = int(dd.DecodeInt(intBitsize))
  21950. if v != nil {
  21951. v[mk] = mv
  21952. }
  21953. }
  21954. }
  21955. if cr != nil {
  21956. cr.sendContainerState(containerMapEnd)
  21957. }
  21958. return v, changed
  21959. }
  21960. func (f *decFnInfo) fastpathDecMapFloat32Int8R(rv reflect.Value) {
  21961. if rv.CanAddr() {
  21962. vp := rv.Addr().Interface().(*map[float32]int8)
  21963. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  21964. if changed {
  21965. *vp = v
  21966. }
  21967. } else {
  21968. v := rv.Interface().(map[float32]int8)
  21969. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, f.d)
  21970. }
  21971. }
  21972. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, checkNil bool, d *Decoder) {
  21973. v, changed := f.DecMapFloat32Int8V(*vp, checkNil, true, d)
  21974. if changed {
  21975. *vp = v
  21976. }
  21977. }
  21978. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, checkNil bool, canChange bool,
  21979. d *Decoder) (_ map[float32]int8, changed bool) {
  21980. dd := d.d
  21981. cr := d.cr
  21982. if checkNil && dd.TryDecodeAsNil() {
  21983. if v != nil {
  21984. changed = true
  21985. }
  21986. return nil, changed
  21987. }
  21988. containerLen := dd.ReadMapStart()
  21989. if canChange && v == nil {
  21990. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21991. v = make(map[float32]int8, xlen)
  21992. changed = true
  21993. }
  21994. var mk float32
  21995. var mv int8
  21996. if containerLen > 0 {
  21997. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22011. for j := 0; !dd.CheckBreak(); j++ {
  22012. if cr != nil {
  22013. cr.sendContainerState(containerMapKey)
  22014. }
  22015. mk = float32(dd.DecodeFloat(true))
  22016. if cr != nil {
  22017. cr.sendContainerState(containerMapValue)
  22018. }
  22019. mv = int8(dd.DecodeInt(8))
  22020. if v != nil {
  22021. v[mk] = mv
  22022. }
  22023. }
  22024. }
  22025. if cr != nil {
  22026. cr.sendContainerState(containerMapEnd)
  22027. }
  22028. return v, changed
  22029. }
  22030. func (f *decFnInfo) fastpathDecMapFloat32Int16R(rv reflect.Value) {
  22031. if rv.CanAddr() {
  22032. vp := rv.Addr().Interface().(*map[float32]int16)
  22033. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  22034. if changed {
  22035. *vp = v
  22036. }
  22037. } else {
  22038. v := rv.Interface().(map[float32]int16)
  22039. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, f.d)
  22040. }
  22041. }
  22042. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, checkNil bool, d *Decoder) {
  22043. v, changed := f.DecMapFloat32Int16V(*vp, checkNil, true, d)
  22044. if changed {
  22045. *vp = v
  22046. }
  22047. }
  22048. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, checkNil bool, canChange bool,
  22049. d *Decoder) (_ map[float32]int16, changed bool) {
  22050. dd := d.d
  22051. cr := d.cr
  22052. if checkNil && dd.TryDecodeAsNil() {
  22053. if v != nil {
  22054. changed = true
  22055. }
  22056. return nil, changed
  22057. }
  22058. containerLen := dd.ReadMapStart()
  22059. if canChange && v == nil {
  22060. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  22061. v = make(map[float32]int16, xlen)
  22062. changed = true
  22063. }
  22064. var mk float32
  22065. var mv int16
  22066. if containerLen > 0 {
  22067. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22081. for j := 0; !dd.CheckBreak(); j++ {
  22082. if cr != nil {
  22083. cr.sendContainerState(containerMapKey)
  22084. }
  22085. mk = float32(dd.DecodeFloat(true))
  22086. if cr != nil {
  22087. cr.sendContainerState(containerMapValue)
  22088. }
  22089. mv = int16(dd.DecodeInt(16))
  22090. if v != nil {
  22091. v[mk] = mv
  22092. }
  22093. }
  22094. }
  22095. if cr != nil {
  22096. cr.sendContainerState(containerMapEnd)
  22097. }
  22098. return v, changed
  22099. }
  22100. func (f *decFnInfo) fastpathDecMapFloat32Int32R(rv reflect.Value) {
  22101. if rv.CanAddr() {
  22102. vp := rv.Addr().Interface().(*map[float32]int32)
  22103. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  22104. if changed {
  22105. *vp = v
  22106. }
  22107. } else {
  22108. v := rv.Interface().(map[float32]int32)
  22109. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, f.d)
  22110. }
  22111. }
  22112. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, checkNil bool, d *Decoder) {
  22113. v, changed := f.DecMapFloat32Int32V(*vp, checkNil, true, d)
  22114. if changed {
  22115. *vp = v
  22116. }
  22117. }
  22118. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, checkNil bool, canChange bool,
  22119. d *Decoder) (_ map[float32]int32, changed bool) {
  22120. dd := d.d
  22121. cr := d.cr
  22122. if checkNil && dd.TryDecodeAsNil() {
  22123. if v != nil {
  22124. changed = true
  22125. }
  22126. return nil, changed
  22127. }
  22128. containerLen := dd.ReadMapStart()
  22129. if canChange && v == nil {
  22130. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  22131. v = make(map[float32]int32, xlen)
  22132. changed = true
  22133. }
  22134. var mk float32
  22135. var mv int32
  22136. if containerLen > 0 {
  22137. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22151. for j := 0; !dd.CheckBreak(); j++ {
  22152. if cr != nil {
  22153. cr.sendContainerState(containerMapKey)
  22154. }
  22155. mk = float32(dd.DecodeFloat(true))
  22156. if cr != nil {
  22157. cr.sendContainerState(containerMapValue)
  22158. }
  22159. mv = int32(dd.DecodeInt(32))
  22160. if v != nil {
  22161. v[mk] = mv
  22162. }
  22163. }
  22164. }
  22165. if cr != nil {
  22166. cr.sendContainerState(containerMapEnd)
  22167. }
  22168. return v, changed
  22169. }
  22170. func (f *decFnInfo) fastpathDecMapFloat32Int64R(rv reflect.Value) {
  22171. if rv.CanAddr() {
  22172. vp := rv.Addr().Interface().(*map[float32]int64)
  22173. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  22174. if changed {
  22175. *vp = v
  22176. }
  22177. } else {
  22178. v := rv.Interface().(map[float32]int64)
  22179. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, f.d)
  22180. }
  22181. }
  22182. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, checkNil bool, d *Decoder) {
  22183. v, changed := f.DecMapFloat32Int64V(*vp, checkNil, true, d)
  22184. if changed {
  22185. *vp = v
  22186. }
  22187. }
  22188. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, checkNil bool, canChange bool,
  22189. d *Decoder) (_ map[float32]int64, changed bool) {
  22190. dd := d.d
  22191. cr := d.cr
  22192. if checkNil && dd.TryDecodeAsNil() {
  22193. if v != nil {
  22194. changed = true
  22195. }
  22196. return nil, changed
  22197. }
  22198. containerLen := dd.ReadMapStart()
  22199. if canChange && v == nil {
  22200. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22201. v = make(map[float32]int64, xlen)
  22202. changed = true
  22203. }
  22204. var mk float32
  22205. var mv int64
  22206. if containerLen > 0 {
  22207. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22221. for j := 0; !dd.CheckBreak(); j++ {
  22222. if cr != nil {
  22223. cr.sendContainerState(containerMapKey)
  22224. }
  22225. mk = float32(dd.DecodeFloat(true))
  22226. if cr != nil {
  22227. cr.sendContainerState(containerMapValue)
  22228. }
  22229. mv = dd.DecodeInt(64)
  22230. if v != nil {
  22231. v[mk] = mv
  22232. }
  22233. }
  22234. }
  22235. if cr != nil {
  22236. cr.sendContainerState(containerMapEnd)
  22237. }
  22238. return v, changed
  22239. }
  22240. func (f *decFnInfo) fastpathDecMapFloat32Float32R(rv reflect.Value) {
  22241. if rv.CanAddr() {
  22242. vp := rv.Addr().Interface().(*map[float32]float32)
  22243. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  22244. if changed {
  22245. *vp = v
  22246. }
  22247. } else {
  22248. v := rv.Interface().(map[float32]float32)
  22249. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, f.d)
  22250. }
  22251. }
  22252. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, checkNil bool, d *Decoder) {
  22253. v, changed := f.DecMapFloat32Float32V(*vp, checkNil, true, d)
  22254. if changed {
  22255. *vp = v
  22256. }
  22257. }
  22258. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, checkNil bool, canChange bool,
  22259. d *Decoder) (_ map[float32]float32, changed bool) {
  22260. dd := d.d
  22261. cr := d.cr
  22262. if checkNil && dd.TryDecodeAsNil() {
  22263. if v != nil {
  22264. changed = true
  22265. }
  22266. return nil, changed
  22267. }
  22268. containerLen := dd.ReadMapStart()
  22269. if canChange && v == nil {
  22270. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  22271. v = make(map[float32]float32, xlen)
  22272. changed = true
  22273. }
  22274. var mk float32
  22275. var mv float32
  22276. if containerLen > 0 {
  22277. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22291. for j := 0; !dd.CheckBreak(); j++ {
  22292. if cr != nil {
  22293. cr.sendContainerState(containerMapKey)
  22294. }
  22295. mk = float32(dd.DecodeFloat(true))
  22296. if cr != nil {
  22297. cr.sendContainerState(containerMapValue)
  22298. }
  22299. mv = float32(dd.DecodeFloat(true))
  22300. if v != nil {
  22301. v[mk] = mv
  22302. }
  22303. }
  22304. }
  22305. if cr != nil {
  22306. cr.sendContainerState(containerMapEnd)
  22307. }
  22308. return v, changed
  22309. }
  22310. func (f *decFnInfo) fastpathDecMapFloat32Float64R(rv reflect.Value) {
  22311. if rv.CanAddr() {
  22312. vp := rv.Addr().Interface().(*map[float32]float64)
  22313. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  22314. if changed {
  22315. *vp = v
  22316. }
  22317. } else {
  22318. v := rv.Interface().(map[float32]float64)
  22319. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, f.d)
  22320. }
  22321. }
  22322. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, checkNil bool, d *Decoder) {
  22323. v, changed := f.DecMapFloat32Float64V(*vp, checkNil, true, d)
  22324. if changed {
  22325. *vp = v
  22326. }
  22327. }
  22328. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, checkNil bool, canChange bool,
  22329. d *Decoder) (_ map[float32]float64, changed bool) {
  22330. dd := d.d
  22331. cr := d.cr
  22332. if checkNil && dd.TryDecodeAsNil() {
  22333. if v != nil {
  22334. changed = true
  22335. }
  22336. return nil, changed
  22337. }
  22338. containerLen := dd.ReadMapStart()
  22339. if canChange && v == nil {
  22340. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22341. v = make(map[float32]float64, xlen)
  22342. changed = true
  22343. }
  22344. var mk float32
  22345. var mv float64
  22346. if containerLen > 0 {
  22347. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22361. for j := 0; !dd.CheckBreak(); j++ {
  22362. if cr != nil {
  22363. cr.sendContainerState(containerMapKey)
  22364. }
  22365. mk = float32(dd.DecodeFloat(true))
  22366. if cr != nil {
  22367. cr.sendContainerState(containerMapValue)
  22368. }
  22369. mv = dd.DecodeFloat(false)
  22370. if v != nil {
  22371. v[mk] = mv
  22372. }
  22373. }
  22374. }
  22375. if cr != nil {
  22376. cr.sendContainerState(containerMapEnd)
  22377. }
  22378. return v, changed
  22379. }
  22380. func (f *decFnInfo) fastpathDecMapFloat32BoolR(rv reflect.Value) {
  22381. if rv.CanAddr() {
  22382. vp := rv.Addr().Interface().(*map[float32]bool)
  22383. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  22384. if changed {
  22385. *vp = v
  22386. }
  22387. } else {
  22388. v := rv.Interface().(map[float32]bool)
  22389. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, f.d)
  22390. }
  22391. }
  22392. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, checkNil bool, d *Decoder) {
  22393. v, changed := f.DecMapFloat32BoolV(*vp, checkNil, true, d)
  22394. if changed {
  22395. *vp = v
  22396. }
  22397. }
  22398. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, checkNil bool, canChange bool,
  22399. d *Decoder) (_ map[float32]bool, changed bool) {
  22400. dd := d.d
  22401. cr := d.cr
  22402. if checkNil && dd.TryDecodeAsNil() {
  22403. if v != nil {
  22404. changed = true
  22405. }
  22406. return nil, changed
  22407. }
  22408. containerLen := dd.ReadMapStart()
  22409. if canChange && v == nil {
  22410. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  22411. v = make(map[float32]bool, xlen)
  22412. changed = true
  22413. }
  22414. var mk float32
  22415. var mv bool
  22416. if containerLen > 0 {
  22417. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22431. for j := 0; !dd.CheckBreak(); j++ {
  22432. if cr != nil {
  22433. cr.sendContainerState(containerMapKey)
  22434. }
  22435. mk = float32(dd.DecodeFloat(true))
  22436. if cr != nil {
  22437. cr.sendContainerState(containerMapValue)
  22438. }
  22439. mv = dd.DecodeBool()
  22440. if v != nil {
  22441. v[mk] = mv
  22442. }
  22443. }
  22444. }
  22445. if cr != nil {
  22446. cr.sendContainerState(containerMapEnd)
  22447. }
  22448. return v, changed
  22449. }
  22450. func (f *decFnInfo) fastpathDecMapFloat64IntfR(rv reflect.Value) {
  22451. if rv.CanAddr() {
  22452. vp := rv.Addr().Interface().(*map[float64]interface{})
  22453. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  22454. if changed {
  22455. *vp = v
  22456. }
  22457. } else {
  22458. v := rv.Interface().(map[float64]interface{})
  22459. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, f.d)
  22460. }
  22461. }
  22462. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, checkNil bool, d *Decoder) {
  22463. v, changed := f.DecMapFloat64IntfV(*vp, checkNil, true, d)
  22464. if changed {
  22465. *vp = v
  22466. }
  22467. }
  22468. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, checkNil bool, canChange bool,
  22469. d *Decoder) (_ map[float64]interface{}, changed bool) {
  22470. dd := d.d
  22471. cr := d.cr
  22472. if checkNil && dd.TryDecodeAsNil() {
  22473. if v != nil {
  22474. changed = true
  22475. }
  22476. return nil, changed
  22477. }
  22478. containerLen := dd.ReadMapStart()
  22479. if canChange && v == nil {
  22480. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22481. v = make(map[float64]interface{}, xlen)
  22482. changed = true
  22483. }
  22484. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  22485. var mk float64
  22486. var mv interface{}
  22487. if containerLen > 0 {
  22488. for j := 0; j < containerLen; j++ {
  22489. if cr != nil {
  22490. cr.sendContainerState(containerMapKey)
  22491. }
  22492. mk = dd.DecodeFloat(false)
  22493. if cr != nil {
  22494. cr.sendContainerState(containerMapValue)
  22495. }
  22496. if mapGet {
  22497. mv = v[mk]
  22498. } else {
  22499. mv = nil
  22500. }
  22501. d.decode(&mv)
  22502. if v != nil {
  22503. v[mk] = mv
  22504. }
  22505. }
  22506. } else if containerLen < 0 {
  22507. for j := 0; !dd.CheckBreak(); j++ {
  22508. if cr != nil {
  22509. cr.sendContainerState(containerMapKey)
  22510. }
  22511. mk = dd.DecodeFloat(false)
  22512. if cr != nil {
  22513. cr.sendContainerState(containerMapValue)
  22514. }
  22515. if mapGet {
  22516. mv = v[mk]
  22517. } else {
  22518. mv = nil
  22519. }
  22520. d.decode(&mv)
  22521. if v != nil {
  22522. v[mk] = mv
  22523. }
  22524. }
  22525. }
  22526. if cr != nil {
  22527. cr.sendContainerState(containerMapEnd)
  22528. }
  22529. return v, changed
  22530. }
  22531. func (f *decFnInfo) fastpathDecMapFloat64StringR(rv reflect.Value) {
  22532. if rv.CanAddr() {
  22533. vp := rv.Addr().Interface().(*map[float64]string)
  22534. v, changed := fastpathTV.DecMapFloat64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  22535. if changed {
  22536. *vp = v
  22537. }
  22538. } else {
  22539. v := rv.Interface().(map[float64]string)
  22540. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, f.d)
  22541. }
  22542. }
  22543. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, checkNil bool, d *Decoder) {
  22544. v, changed := f.DecMapFloat64StringV(*vp, checkNil, true, d)
  22545. if changed {
  22546. *vp = v
  22547. }
  22548. }
  22549. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, checkNil bool, canChange bool,
  22550. d *Decoder) (_ map[float64]string, changed bool) {
  22551. dd := d.d
  22552. cr := d.cr
  22553. if checkNil && dd.TryDecodeAsNil() {
  22554. if v != nil {
  22555. changed = true
  22556. }
  22557. return nil, changed
  22558. }
  22559. containerLen := dd.ReadMapStart()
  22560. if canChange && v == nil {
  22561. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22562. v = make(map[float64]string, xlen)
  22563. changed = true
  22564. }
  22565. var mk float64
  22566. var mv string
  22567. if containerLen > 0 {
  22568. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22582. for j := 0; !dd.CheckBreak(); j++ {
  22583. if cr != nil {
  22584. cr.sendContainerState(containerMapKey)
  22585. }
  22586. mk = dd.DecodeFloat(false)
  22587. if cr != nil {
  22588. cr.sendContainerState(containerMapValue)
  22589. }
  22590. mv = dd.DecodeString()
  22591. if v != nil {
  22592. v[mk] = mv
  22593. }
  22594. }
  22595. }
  22596. if cr != nil {
  22597. cr.sendContainerState(containerMapEnd)
  22598. }
  22599. return v, changed
  22600. }
  22601. func (f *decFnInfo) fastpathDecMapFloat64UintR(rv reflect.Value) {
  22602. if rv.CanAddr() {
  22603. vp := rv.Addr().Interface().(*map[float64]uint)
  22604. v, changed := fastpathTV.DecMapFloat64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  22605. if changed {
  22606. *vp = v
  22607. }
  22608. } else {
  22609. v := rv.Interface().(map[float64]uint)
  22610. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, f.d)
  22611. }
  22612. }
  22613. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, checkNil bool, d *Decoder) {
  22614. v, changed := f.DecMapFloat64UintV(*vp, checkNil, true, d)
  22615. if changed {
  22616. *vp = v
  22617. }
  22618. }
  22619. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, checkNil bool, canChange bool,
  22620. d *Decoder) (_ map[float64]uint, changed bool) {
  22621. dd := d.d
  22622. cr := d.cr
  22623. if checkNil && dd.TryDecodeAsNil() {
  22624. if v != nil {
  22625. changed = true
  22626. }
  22627. return nil, changed
  22628. }
  22629. containerLen := dd.ReadMapStart()
  22630. if canChange && v == nil {
  22631. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22632. v = make(map[float64]uint, xlen)
  22633. changed = true
  22634. }
  22635. var mk float64
  22636. var mv uint
  22637. if containerLen > 0 {
  22638. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22652. for j := 0; !dd.CheckBreak(); j++ {
  22653. if cr != nil {
  22654. cr.sendContainerState(containerMapKey)
  22655. }
  22656. mk = dd.DecodeFloat(false)
  22657. if cr != nil {
  22658. cr.sendContainerState(containerMapValue)
  22659. }
  22660. mv = uint(dd.DecodeUint(uintBitsize))
  22661. if v != nil {
  22662. v[mk] = mv
  22663. }
  22664. }
  22665. }
  22666. if cr != nil {
  22667. cr.sendContainerState(containerMapEnd)
  22668. }
  22669. return v, changed
  22670. }
  22671. func (f *decFnInfo) fastpathDecMapFloat64Uint8R(rv reflect.Value) {
  22672. if rv.CanAddr() {
  22673. vp := rv.Addr().Interface().(*map[float64]uint8)
  22674. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  22675. if changed {
  22676. *vp = v
  22677. }
  22678. } else {
  22679. v := rv.Interface().(map[float64]uint8)
  22680. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  22681. }
  22682. }
  22683. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, checkNil bool, d *Decoder) {
  22684. v, changed := f.DecMapFloat64Uint8V(*vp, checkNil, true, d)
  22685. if changed {
  22686. *vp = v
  22687. }
  22688. }
  22689. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, checkNil bool, canChange bool,
  22690. d *Decoder) (_ map[float64]uint8, changed bool) {
  22691. dd := d.d
  22692. cr := d.cr
  22693. if checkNil && dd.TryDecodeAsNil() {
  22694. if v != nil {
  22695. changed = true
  22696. }
  22697. return nil, changed
  22698. }
  22699. containerLen := dd.ReadMapStart()
  22700. if canChange && v == nil {
  22701. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22702. v = make(map[float64]uint8, xlen)
  22703. changed = true
  22704. }
  22705. var mk float64
  22706. var mv uint8
  22707. if containerLen > 0 {
  22708. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22722. for j := 0; !dd.CheckBreak(); j++ {
  22723. if cr != nil {
  22724. cr.sendContainerState(containerMapKey)
  22725. }
  22726. mk = dd.DecodeFloat(false)
  22727. if cr != nil {
  22728. cr.sendContainerState(containerMapValue)
  22729. }
  22730. mv = uint8(dd.DecodeUint(8))
  22731. if v != nil {
  22732. v[mk] = mv
  22733. }
  22734. }
  22735. }
  22736. if cr != nil {
  22737. cr.sendContainerState(containerMapEnd)
  22738. }
  22739. return v, changed
  22740. }
  22741. func (f *decFnInfo) fastpathDecMapFloat64Uint16R(rv reflect.Value) {
  22742. if rv.CanAddr() {
  22743. vp := rv.Addr().Interface().(*map[float64]uint16)
  22744. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  22745. if changed {
  22746. *vp = v
  22747. }
  22748. } else {
  22749. v := rv.Interface().(map[float64]uint16)
  22750. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  22751. }
  22752. }
  22753. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, checkNil bool, d *Decoder) {
  22754. v, changed := f.DecMapFloat64Uint16V(*vp, checkNil, true, d)
  22755. if changed {
  22756. *vp = v
  22757. }
  22758. }
  22759. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, checkNil bool, canChange bool,
  22760. d *Decoder) (_ map[float64]uint16, changed bool) {
  22761. dd := d.d
  22762. cr := d.cr
  22763. if checkNil && dd.TryDecodeAsNil() {
  22764. if v != nil {
  22765. changed = true
  22766. }
  22767. return nil, changed
  22768. }
  22769. containerLen := dd.ReadMapStart()
  22770. if canChange && v == nil {
  22771. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22772. v = make(map[float64]uint16, xlen)
  22773. changed = true
  22774. }
  22775. var mk float64
  22776. var mv uint16
  22777. if containerLen > 0 {
  22778. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22792. for j := 0; !dd.CheckBreak(); j++ {
  22793. if cr != nil {
  22794. cr.sendContainerState(containerMapKey)
  22795. }
  22796. mk = dd.DecodeFloat(false)
  22797. if cr != nil {
  22798. cr.sendContainerState(containerMapValue)
  22799. }
  22800. mv = uint16(dd.DecodeUint(16))
  22801. if v != nil {
  22802. v[mk] = mv
  22803. }
  22804. }
  22805. }
  22806. if cr != nil {
  22807. cr.sendContainerState(containerMapEnd)
  22808. }
  22809. return v, changed
  22810. }
  22811. func (f *decFnInfo) fastpathDecMapFloat64Uint32R(rv reflect.Value) {
  22812. if rv.CanAddr() {
  22813. vp := rv.Addr().Interface().(*map[float64]uint32)
  22814. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  22815. if changed {
  22816. *vp = v
  22817. }
  22818. } else {
  22819. v := rv.Interface().(map[float64]uint32)
  22820. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  22821. }
  22822. }
  22823. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, checkNil bool, d *Decoder) {
  22824. v, changed := f.DecMapFloat64Uint32V(*vp, checkNil, true, d)
  22825. if changed {
  22826. *vp = v
  22827. }
  22828. }
  22829. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, checkNil bool, canChange bool,
  22830. d *Decoder) (_ map[float64]uint32, changed bool) {
  22831. dd := d.d
  22832. cr := d.cr
  22833. if checkNil && dd.TryDecodeAsNil() {
  22834. if v != nil {
  22835. changed = true
  22836. }
  22837. return nil, changed
  22838. }
  22839. containerLen := dd.ReadMapStart()
  22840. if canChange && v == nil {
  22841. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22842. v = make(map[float64]uint32, xlen)
  22843. changed = true
  22844. }
  22845. var mk float64
  22846. var mv uint32
  22847. if containerLen > 0 {
  22848. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22862. for j := 0; !dd.CheckBreak(); j++ {
  22863. if cr != nil {
  22864. cr.sendContainerState(containerMapKey)
  22865. }
  22866. mk = dd.DecodeFloat(false)
  22867. if cr != nil {
  22868. cr.sendContainerState(containerMapValue)
  22869. }
  22870. mv = uint32(dd.DecodeUint(32))
  22871. if v != nil {
  22872. v[mk] = mv
  22873. }
  22874. }
  22875. }
  22876. if cr != nil {
  22877. cr.sendContainerState(containerMapEnd)
  22878. }
  22879. return v, changed
  22880. }
  22881. func (f *decFnInfo) fastpathDecMapFloat64Uint64R(rv reflect.Value) {
  22882. if rv.CanAddr() {
  22883. vp := rv.Addr().Interface().(*map[float64]uint64)
  22884. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  22885. if changed {
  22886. *vp = v
  22887. }
  22888. } else {
  22889. v := rv.Interface().(map[float64]uint64)
  22890. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  22891. }
  22892. }
  22893. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, checkNil bool, d *Decoder) {
  22894. v, changed := f.DecMapFloat64Uint64V(*vp, checkNil, true, d)
  22895. if changed {
  22896. *vp = v
  22897. }
  22898. }
  22899. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, checkNil bool, canChange bool,
  22900. d *Decoder) (_ map[float64]uint64, changed bool) {
  22901. dd := d.d
  22902. cr := d.cr
  22903. if checkNil && dd.TryDecodeAsNil() {
  22904. if v != nil {
  22905. changed = true
  22906. }
  22907. return nil, changed
  22908. }
  22909. containerLen := dd.ReadMapStart()
  22910. if canChange && v == nil {
  22911. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22912. v = make(map[float64]uint64, xlen)
  22913. changed = true
  22914. }
  22915. var mk float64
  22916. var mv uint64
  22917. if containerLen > 0 {
  22918. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  22932. for j := 0; !dd.CheckBreak(); j++ {
  22933. if cr != nil {
  22934. cr.sendContainerState(containerMapKey)
  22935. }
  22936. mk = dd.DecodeFloat(false)
  22937. if cr != nil {
  22938. cr.sendContainerState(containerMapValue)
  22939. }
  22940. mv = dd.DecodeUint(64)
  22941. if v != nil {
  22942. v[mk] = mv
  22943. }
  22944. }
  22945. }
  22946. if cr != nil {
  22947. cr.sendContainerState(containerMapEnd)
  22948. }
  22949. return v, changed
  22950. }
  22951. func (f *decFnInfo) fastpathDecMapFloat64UintptrR(rv reflect.Value) {
  22952. if rv.CanAddr() {
  22953. vp := rv.Addr().Interface().(*map[float64]uintptr)
  22954. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  22955. if changed {
  22956. *vp = v
  22957. }
  22958. } else {
  22959. v := rv.Interface().(map[float64]uintptr)
  22960. fastpathTV.DecMapFloat64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  22961. }
  22962. }
  22963. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, checkNil bool, d *Decoder) {
  22964. v, changed := f.DecMapFloat64UintptrV(*vp, checkNil, true, d)
  22965. if changed {
  22966. *vp = v
  22967. }
  22968. }
  22969. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, checkNil bool, canChange bool,
  22970. d *Decoder) (_ map[float64]uintptr, changed bool) {
  22971. dd := d.d
  22972. cr := d.cr
  22973. if checkNil && dd.TryDecodeAsNil() {
  22974. if v != nil {
  22975. changed = true
  22976. }
  22977. return nil, changed
  22978. }
  22979. containerLen := dd.ReadMapStart()
  22980. if canChange && v == nil {
  22981. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22982. v = make(map[float64]uintptr, xlen)
  22983. changed = true
  22984. }
  22985. var mk float64
  22986. var mv uintptr
  22987. if containerLen > 0 {
  22988. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23002. for j := 0; !dd.CheckBreak(); j++ {
  23003. if cr != nil {
  23004. cr.sendContainerState(containerMapKey)
  23005. }
  23006. mk = dd.DecodeFloat(false)
  23007. if cr != nil {
  23008. cr.sendContainerState(containerMapValue)
  23009. }
  23010. mv = uintptr(dd.DecodeUint(uintBitsize))
  23011. if v != nil {
  23012. v[mk] = mv
  23013. }
  23014. }
  23015. }
  23016. if cr != nil {
  23017. cr.sendContainerState(containerMapEnd)
  23018. }
  23019. return v, changed
  23020. }
  23021. func (f *decFnInfo) fastpathDecMapFloat64IntR(rv reflect.Value) {
  23022. if rv.CanAddr() {
  23023. vp := rv.Addr().Interface().(*map[float64]int)
  23024. v, changed := fastpathTV.DecMapFloat64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  23025. if changed {
  23026. *vp = v
  23027. }
  23028. } else {
  23029. v := rv.Interface().(map[float64]int)
  23030. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, f.d)
  23031. }
  23032. }
  23033. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, checkNil bool, d *Decoder) {
  23034. v, changed := f.DecMapFloat64IntV(*vp, checkNil, true, d)
  23035. if changed {
  23036. *vp = v
  23037. }
  23038. }
  23039. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, checkNil bool, canChange bool,
  23040. d *Decoder) (_ map[float64]int, changed bool) {
  23041. dd := d.d
  23042. cr := d.cr
  23043. if checkNil && dd.TryDecodeAsNil() {
  23044. if v != nil {
  23045. changed = true
  23046. }
  23047. return nil, changed
  23048. }
  23049. containerLen := dd.ReadMapStart()
  23050. if canChange && v == nil {
  23051. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23052. v = make(map[float64]int, xlen)
  23053. changed = true
  23054. }
  23055. var mk float64
  23056. var mv int
  23057. if containerLen > 0 {
  23058. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23072. for j := 0; !dd.CheckBreak(); j++ {
  23073. if cr != nil {
  23074. cr.sendContainerState(containerMapKey)
  23075. }
  23076. mk = dd.DecodeFloat(false)
  23077. if cr != nil {
  23078. cr.sendContainerState(containerMapValue)
  23079. }
  23080. mv = int(dd.DecodeInt(intBitsize))
  23081. if v != nil {
  23082. v[mk] = mv
  23083. }
  23084. }
  23085. }
  23086. if cr != nil {
  23087. cr.sendContainerState(containerMapEnd)
  23088. }
  23089. return v, changed
  23090. }
  23091. func (f *decFnInfo) fastpathDecMapFloat64Int8R(rv reflect.Value) {
  23092. if rv.CanAddr() {
  23093. vp := rv.Addr().Interface().(*map[float64]int8)
  23094. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  23095. if changed {
  23096. *vp = v
  23097. }
  23098. } else {
  23099. v := rv.Interface().(map[float64]int8)
  23100. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, f.d)
  23101. }
  23102. }
  23103. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, checkNil bool, d *Decoder) {
  23104. v, changed := f.DecMapFloat64Int8V(*vp, checkNil, true, d)
  23105. if changed {
  23106. *vp = v
  23107. }
  23108. }
  23109. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, checkNil bool, canChange bool,
  23110. d *Decoder) (_ map[float64]int8, changed bool) {
  23111. dd := d.d
  23112. cr := d.cr
  23113. if checkNil && dd.TryDecodeAsNil() {
  23114. if v != nil {
  23115. changed = true
  23116. }
  23117. return nil, changed
  23118. }
  23119. containerLen := dd.ReadMapStart()
  23120. if canChange && v == nil {
  23121. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23122. v = make(map[float64]int8, xlen)
  23123. changed = true
  23124. }
  23125. var mk float64
  23126. var mv int8
  23127. if containerLen > 0 {
  23128. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23142. for j := 0; !dd.CheckBreak(); j++ {
  23143. if cr != nil {
  23144. cr.sendContainerState(containerMapKey)
  23145. }
  23146. mk = dd.DecodeFloat(false)
  23147. if cr != nil {
  23148. cr.sendContainerState(containerMapValue)
  23149. }
  23150. mv = int8(dd.DecodeInt(8))
  23151. if v != nil {
  23152. v[mk] = mv
  23153. }
  23154. }
  23155. }
  23156. if cr != nil {
  23157. cr.sendContainerState(containerMapEnd)
  23158. }
  23159. return v, changed
  23160. }
  23161. func (f *decFnInfo) fastpathDecMapFloat64Int16R(rv reflect.Value) {
  23162. if rv.CanAddr() {
  23163. vp := rv.Addr().Interface().(*map[float64]int16)
  23164. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  23165. if changed {
  23166. *vp = v
  23167. }
  23168. } else {
  23169. v := rv.Interface().(map[float64]int16)
  23170. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, f.d)
  23171. }
  23172. }
  23173. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, checkNil bool, d *Decoder) {
  23174. v, changed := f.DecMapFloat64Int16V(*vp, checkNil, true, d)
  23175. if changed {
  23176. *vp = v
  23177. }
  23178. }
  23179. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, checkNil bool, canChange bool,
  23180. d *Decoder) (_ map[float64]int16, changed bool) {
  23181. dd := d.d
  23182. cr := d.cr
  23183. if checkNil && dd.TryDecodeAsNil() {
  23184. if v != nil {
  23185. changed = true
  23186. }
  23187. return nil, changed
  23188. }
  23189. containerLen := dd.ReadMapStart()
  23190. if canChange && v == nil {
  23191. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23192. v = make(map[float64]int16, xlen)
  23193. changed = true
  23194. }
  23195. var mk float64
  23196. var mv int16
  23197. if containerLen > 0 {
  23198. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23212. for j := 0; !dd.CheckBreak(); j++ {
  23213. if cr != nil {
  23214. cr.sendContainerState(containerMapKey)
  23215. }
  23216. mk = dd.DecodeFloat(false)
  23217. if cr != nil {
  23218. cr.sendContainerState(containerMapValue)
  23219. }
  23220. mv = int16(dd.DecodeInt(16))
  23221. if v != nil {
  23222. v[mk] = mv
  23223. }
  23224. }
  23225. }
  23226. if cr != nil {
  23227. cr.sendContainerState(containerMapEnd)
  23228. }
  23229. return v, changed
  23230. }
  23231. func (f *decFnInfo) fastpathDecMapFloat64Int32R(rv reflect.Value) {
  23232. if rv.CanAddr() {
  23233. vp := rv.Addr().Interface().(*map[float64]int32)
  23234. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  23235. if changed {
  23236. *vp = v
  23237. }
  23238. } else {
  23239. v := rv.Interface().(map[float64]int32)
  23240. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, f.d)
  23241. }
  23242. }
  23243. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, checkNil bool, d *Decoder) {
  23244. v, changed := f.DecMapFloat64Int32V(*vp, checkNil, true, d)
  23245. if changed {
  23246. *vp = v
  23247. }
  23248. }
  23249. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, checkNil bool, canChange bool,
  23250. d *Decoder) (_ map[float64]int32, changed bool) {
  23251. dd := d.d
  23252. cr := d.cr
  23253. if checkNil && dd.TryDecodeAsNil() {
  23254. if v != nil {
  23255. changed = true
  23256. }
  23257. return nil, changed
  23258. }
  23259. containerLen := dd.ReadMapStart()
  23260. if canChange && v == nil {
  23261. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23262. v = make(map[float64]int32, xlen)
  23263. changed = true
  23264. }
  23265. var mk float64
  23266. var mv int32
  23267. if containerLen > 0 {
  23268. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23282. for j := 0; !dd.CheckBreak(); j++ {
  23283. if cr != nil {
  23284. cr.sendContainerState(containerMapKey)
  23285. }
  23286. mk = dd.DecodeFloat(false)
  23287. if cr != nil {
  23288. cr.sendContainerState(containerMapValue)
  23289. }
  23290. mv = int32(dd.DecodeInt(32))
  23291. if v != nil {
  23292. v[mk] = mv
  23293. }
  23294. }
  23295. }
  23296. if cr != nil {
  23297. cr.sendContainerState(containerMapEnd)
  23298. }
  23299. return v, changed
  23300. }
  23301. func (f *decFnInfo) fastpathDecMapFloat64Int64R(rv reflect.Value) {
  23302. if rv.CanAddr() {
  23303. vp := rv.Addr().Interface().(*map[float64]int64)
  23304. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  23305. if changed {
  23306. *vp = v
  23307. }
  23308. } else {
  23309. v := rv.Interface().(map[float64]int64)
  23310. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, f.d)
  23311. }
  23312. }
  23313. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, checkNil bool, d *Decoder) {
  23314. v, changed := f.DecMapFloat64Int64V(*vp, checkNil, true, d)
  23315. if changed {
  23316. *vp = v
  23317. }
  23318. }
  23319. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, checkNil bool, canChange bool,
  23320. d *Decoder) (_ map[float64]int64, changed bool) {
  23321. dd := d.d
  23322. cr := d.cr
  23323. if checkNil && dd.TryDecodeAsNil() {
  23324. if v != nil {
  23325. changed = true
  23326. }
  23327. return nil, changed
  23328. }
  23329. containerLen := dd.ReadMapStart()
  23330. if canChange && v == nil {
  23331. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23332. v = make(map[float64]int64, xlen)
  23333. changed = true
  23334. }
  23335. var mk float64
  23336. var mv int64
  23337. if containerLen > 0 {
  23338. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23352. for j := 0; !dd.CheckBreak(); j++ {
  23353. if cr != nil {
  23354. cr.sendContainerState(containerMapKey)
  23355. }
  23356. mk = dd.DecodeFloat(false)
  23357. if cr != nil {
  23358. cr.sendContainerState(containerMapValue)
  23359. }
  23360. mv = dd.DecodeInt(64)
  23361. if v != nil {
  23362. v[mk] = mv
  23363. }
  23364. }
  23365. }
  23366. if cr != nil {
  23367. cr.sendContainerState(containerMapEnd)
  23368. }
  23369. return v, changed
  23370. }
  23371. func (f *decFnInfo) fastpathDecMapFloat64Float32R(rv reflect.Value) {
  23372. if rv.CanAddr() {
  23373. vp := rv.Addr().Interface().(*map[float64]float32)
  23374. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  23375. if changed {
  23376. *vp = v
  23377. }
  23378. } else {
  23379. v := rv.Interface().(map[float64]float32)
  23380. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, f.d)
  23381. }
  23382. }
  23383. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, checkNil bool, d *Decoder) {
  23384. v, changed := f.DecMapFloat64Float32V(*vp, checkNil, true, d)
  23385. if changed {
  23386. *vp = v
  23387. }
  23388. }
  23389. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, checkNil bool, canChange bool,
  23390. d *Decoder) (_ map[float64]float32, changed bool) {
  23391. dd := d.d
  23392. cr := d.cr
  23393. if checkNil && dd.TryDecodeAsNil() {
  23394. if v != nil {
  23395. changed = true
  23396. }
  23397. return nil, changed
  23398. }
  23399. containerLen := dd.ReadMapStart()
  23400. if canChange && v == nil {
  23401. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23402. v = make(map[float64]float32, xlen)
  23403. changed = true
  23404. }
  23405. var mk float64
  23406. var mv float32
  23407. if containerLen > 0 {
  23408. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23422. for j := 0; !dd.CheckBreak(); j++ {
  23423. if cr != nil {
  23424. cr.sendContainerState(containerMapKey)
  23425. }
  23426. mk = dd.DecodeFloat(false)
  23427. if cr != nil {
  23428. cr.sendContainerState(containerMapValue)
  23429. }
  23430. mv = float32(dd.DecodeFloat(true))
  23431. if v != nil {
  23432. v[mk] = mv
  23433. }
  23434. }
  23435. }
  23436. if cr != nil {
  23437. cr.sendContainerState(containerMapEnd)
  23438. }
  23439. return v, changed
  23440. }
  23441. func (f *decFnInfo) fastpathDecMapFloat64Float64R(rv reflect.Value) {
  23442. if rv.CanAddr() {
  23443. vp := rv.Addr().Interface().(*map[float64]float64)
  23444. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  23445. if changed {
  23446. *vp = v
  23447. }
  23448. } else {
  23449. v := rv.Interface().(map[float64]float64)
  23450. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, f.d)
  23451. }
  23452. }
  23453. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, checkNil bool, d *Decoder) {
  23454. v, changed := f.DecMapFloat64Float64V(*vp, checkNil, true, d)
  23455. if changed {
  23456. *vp = v
  23457. }
  23458. }
  23459. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, checkNil bool, canChange bool,
  23460. d *Decoder) (_ map[float64]float64, changed bool) {
  23461. dd := d.d
  23462. cr := d.cr
  23463. if checkNil && dd.TryDecodeAsNil() {
  23464. if v != nil {
  23465. changed = true
  23466. }
  23467. return nil, changed
  23468. }
  23469. containerLen := dd.ReadMapStart()
  23470. if canChange && v == nil {
  23471. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23472. v = make(map[float64]float64, xlen)
  23473. changed = true
  23474. }
  23475. var mk float64
  23476. var mv float64
  23477. if containerLen > 0 {
  23478. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23492. for j := 0; !dd.CheckBreak(); j++ {
  23493. if cr != nil {
  23494. cr.sendContainerState(containerMapKey)
  23495. }
  23496. mk = dd.DecodeFloat(false)
  23497. if cr != nil {
  23498. cr.sendContainerState(containerMapValue)
  23499. }
  23500. mv = dd.DecodeFloat(false)
  23501. if v != nil {
  23502. v[mk] = mv
  23503. }
  23504. }
  23505. }
  23506. if cr != nil {
  23507. cr.sendContainerState(containerMapEnd)
  23508. }
  23509. return v, changed
  23510. }
  23511. func (f *decFnInfo) fastpathDecMapFloat64BoolR(rv reflect.Value) {
  23512. if rv.CanAddr() {
  23513. vp := rv.Addr().Interface().(*map[float64]bool)
  23514. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  23515. if changed {
  23516. *vp = v
  23517. }
  23518. } else {
  23519. v := rv.Interface().(map[float64]bool)
  23520. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, f.d)
  23521. }
  23522. }
  23523. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, checkNil bool, d *Decoder) {
  23524. v, changed := f.DecMapFloat64BoolV(*vp, checkNil, true, d)
  23525. if changed {
  23526. *vp = v
  23527. }
  23528. }
  23529. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, checkNil bool, canChange bool,
  23530. d *Decoder) (_ map[float64]bool, changed bool) {
  23531. dd := d.d
  23532. cr := d.cr
  23533. if checkNil && dd.TryDecodeAsNil() {
  23534. if v != nil {
  23535. changed = true
  23536. }
  23537. return nil, changed
  23538. }
  23539. containerLen := dd.ReadMapStart()
  23540. if canChange && v == nil {
  23541. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23542. v = make(map[float64]bool, xlen)
  23543. changed = true
  23544. }
  23545. var mk float64
  23546. var mv bool
  23547. if containerLen > 0 {
  23548. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23562. for j := 0; !dd.CheckBreak(); j++ {
  23563. if cr != nil {
  23564. cr.sendContainerState(containerMapKey)
  23565. }
  23566. mk = dd.DecodeFloat(false)
  23567. if cr != nil {
  23568. cr.sendContainerState(containerMapValue)
  23569. }
  23570. mv = dd.DecodeBool()
  23571. if v != nil {
  23572. v[mk] = mv
  23573. }
  23574. }
  23575. }
  23576. if cr != nil {
  23577. cr.sendContainerState(containerMapEnd)
  23578. }
  23579. return v, changed
  23580. }
  23581. func (f *decFnInfo) fastpathDecMapUintIntfR(rv reflect.Value) {
  23582. if rv.CanAddr() {
  23583. vp := rv.Addr().Interface().(*map[uint]interface{})
  23584. v, changed := fastpathTV.DecMapUintIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  23585. if changed {
  23586. *vp = v
  23587. }
  23588. } else {
  23589. v := rv.Interface().(map[uint]interface{})
  23590. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, f.d)
  23591. }
  23592. }
  23593. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, checkNil bool, d *Decoder) {
  23594. v, changed := f.DecMapUintIntfV(*vp, checkNil, true, d)
  23595. if changed {
  23596. *vp = v
  23597. }
  23598. }
  23599. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, checkNil bool, canChange bool,
  23600. d *Decoder) (_ map[uint]interface{}, changed bool) {
  23601. dd := d.d
  23602. cr := d.cr
  23603. if checkNil && dd.TryDecodeAsNil() {
  23604. if v != nil {
  23605. changed = true
  23606. }
  23607. return nil, changed
  23608. }
  23609. containerLen := dd.ReadMapStart()
  23610. if canChange && v == nil {
  23611. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23612. v = make(map[uint]interface{}, xlen)
  23613. changed = true
  23614. }
  23615. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  23616. var mk uint
  23617. var mv interface{}
  23618. if containerLen > 0 {
  23619. for j := 0; j < containerLen; j++ {
  23620. if cr != nil {
  23621. cr.sendContainerState(containerMapKey)
  23622. }
  23623. mk = uint(dd.DecodeUint(uintBitsize))
  23624. if cr != nil {
  23625. cr.sendContainerState(containerMapValue)
  23626. }
  23627. if mapGet {
  23628. mv = v[mk]
  23629. } else {
  23630. mv = nil
  23631. }
  23632. d.decode(&mv)
  23633. if v != nil {
  23634. v[mk] = mv
  23635. }
  23636. }
  23637. } else if containerLen < 0 {
  23638. for j := 0; !dd.CheckBreak(); j++ {
  23639. if cr != nil {
  23640. cr.sendContainerState(containerMapKey)
  23641. }
  23642. mk = uint(dd.DecodeUint(uintBitsize))
  23643. if cr != nil {
  23644. cr.sendContainerState(containerMapValue)
  23645. }
  23646. if mapGet {
  23647. mv = v[mk]
  23648. } else {
  23649. mv = nil
  23650. }
  23651. d.decode(&mv)
  23652. if v != nil {
  23653. v[mk] = mv
  23654. }
  23655. }
  23656. }
  23657. if cr != nil {
  23658. cr.sendContainerState(containerMapEnd)
  23659. }
  23660. return v, changed
  23661. }
  23662. func (f *decFnInfo) fastpathDecMapUintStringR(rv reflect.Value) {
  23663. if rv.CanAddr() {
  23664. vp := rv.Addr().Interface().(*map[uint]string)
  23665. v, changed := fastpathTV.DecMapUintStringV(*vp, fastpathCheckNilFalse, true, f.d)
  23666. if changed {
  23667. *vp = v
  23668. }
  23669. } else {
  23670. v := rv.Interface().(map[uint]string)
  23671. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, f.d)
  23672. }
  23673. }
  23674. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, checkNil bool, d *Decoder) {
  23675. v, changed := f.DecMapUintStringV(*vp, checkNil, true, d)
  23676. if changed {
  23677. *vp = v
  23678. }
  23679. }
  23680. func (_ fastpathT) DecMapUintStringV(v map[uint]string, checkNil bool, canChange bool,
  23681. d *Decoder) (_ map[uint]string, changed bool) {
  23682. dd := d.d
  23683. cr := d.cr
  23684. if checkNil && dd.TryDecodeAsNil() {
  23685. if v != nil {
  23686. changed = true
  23687. }
  23688. return nil, changed
  23689. }
  23690. containerLen := dd.ReadMapStart()
  23691. if canChange && v == nil {
  23692. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23693. v = make(map[uint]string, xlen)
  23694. changed = true
  23695. }
  23696. var mk uint
  23697. var mv string
  23698. if containerLen > 0 {
  23699. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23713. for j := 0; !dd.CheckBreak(); j++ {
  23714. if cr != nil {
  23715. cr.sendContainerState(containerMapKey)
  23716. }
  23717. mk = uint(dd.DecodeUint(uintBitsize))
  23718. if cr != nil {
  23719. cr.sendContainerState(containerMapValue)
  23720. }
  23721. mv = dd.DecodeString()
  23722. if v != nil {
  23723. v[mk] = mv
  23724. }
  23725. }
  23726. }
  23727. if cr != nil {
  23728. cr.sendContainerState(containerMapEnd)
  23729. }
  23730. return v, changed
  23731. }
  23732. func (f *decFnInfo) fastpathDecMapUintUintR(rv reflect.Value) {
  23733. if rv.CanAddr() {
  23734. vp := rv.Addr().Interface().(*map[uint]uint)
  23735. v, changed := fastpathTV.DecMapUintUintV(*vp, fastpathCheckNilFalse, true, f.d)
  23736. if changed {
  23737. *vp = v
  23738. }
  23739. } else {
  23740. v := rv.Interface().(map[uint]uint)
  23741. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, f.d)
  23742. }
  23743. }
  23744. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, checkNil bool, d *Decoder) {
  23745. v, changed := f.DecMapUintUintV(*vp, checkNil, true, d)
  23746. if changed {
  23747. *vp = v
  23748. }
  23749. }
  23750. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, checkNil bool, canChange bool,
  23751. d *Decoder) (_ map[uint]uint, changed bool) {
  23752. dd := d.d
  23753. cr := d.cr
  23754. if checkNil && dd.TryDecodeAsNil() {
  23755. if v != nil {
  23756. changed = true
  23757. }
  23758. return nil, changed
  23759. }
  23760. containerLen := dd.ReadMapStart()
  23761. if canChange && v == nil {
  23762. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23763. v = make(map[uint]uint, xlen)
  23764. changed = true
  23765. }
  23766. var mk uint
  23767. var mv uint
  23768. if containerLen > 0 {
  23769. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23783. for j := 0; !dd.CheckBreak(); j++ {
  23784. if cr != nil {
  23785. cr.sendContainerState(containerMapKey)
  23786. }
  23787. mk = uint(dd.DecodeUint(uintBitsize))
  23788. if cr != nil {
  23789. cr.sendContainerState(containerMapValue)
  23790. }
  23791. mv = uint(dd.DecodeUint(uintBitsize))
  23792. if v != nil {
  23793. v[mk] = mv
  23794. }
  23795. }
  23796. }
  23797. if cr != nil {
  23798. cr.sendContainerState(containerMapEnd)
  23799. }
  23800. return v, changed
  23801. }
  23802. func (f *decFnInfo) fastpathDecMapUintUint8R(rv reflect.Value) {
  23803. if rv.CanAddr() {
  23804. vp := rv.Addr().Interface().(*map[uint]uint8)
  23805. v, changed := fastpathTV.DecMapUintUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  23806. if changed {
  23807. *vp = v
  23808. }
  23809. } else {
  23810. v := rv.Interface().(map[uint]uint8)
  23811. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, f.d)
  23812. }
  23813. }
  23814. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, checkNil bool, d *Decoder) {
  23815. v, changed := f.DecMapUintUint8V(*vp, checkNil, true, d)
  23816. if changed {
  23817. *vp = v
  23818. }
  23819. }
  23820. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, checkNil bool, canChange bool,
  23821. d *Decoder) (_ map[uint]uint8, changed bool) {
  23822. dd := d.d
  23823. cr := d.cr
  23824. if checkNil && dd.TryDecodeAsNil() {
  23825. if v != nil {
  23826. changed = true
  23827. }
  23828. return nil, changed
  23829. }
  23830. containerLen := dd.ReadMapStart()
  23831. if canChange && v == nil {
  23832. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23833. v = make(map[uint]uint8, xlen)
  23834. changed = true
  23835. }
  23836. var mk uint
  23837. var mv uint8
  23838. if containerLen > 0 {
  23839. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23853. for j := 0; !dd.CheckBreak(); j++ {
  23854. if cr != nil {
  23855. cr.sendContainerState(containerMapKey)
  23856. }
  23857. mk = uint(dd.DecodeUint(uintBitsize))
  23858. if cr != nil {
  23859. cr.sendContainerState(containerMapValue)
  23860. }
  23861. mv = uint8(dd.DecodeUint(8))
  23862. if v != nil {
  23863. v[mk] = mv
  23864. }
  23865. }
  23866. }
  23867. if cr != nil {
  23868. cr.sendContainerState(containerMapEnd)
  23869. }
  23870. return v, changed
  23871. }
  23872. func (f *decFnInfo) fastpathDecMapUintUint16R(rv reflect.Value) {
  23873. if rv.CanAddr() {
  23874. vp := rv.Addr().Interface().(*map[uint]uint16)
  23875. v, changed := fastpathTV.DecMapUintUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  23876. if changed {
  23877. *vp = v
  23878. }
  23879. } else {
  23880. v := rv.Interface().(map[uint]uint16)
  23881. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, f.d)
  23882. }
  23883. }
  23884. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, checkNil bool, d *Decoder) {
  23885. v, changed := f.DecMapUintUint16V(*vp, checkNil, true, d)
  23886. if changed {
  23887. *vp = v
  23888. }
  23889. }
  23890. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, checkNil bool, canChange bool,
  23891. d *Decoder) (_ map[uint]uint16, changed bool) {
  23892. dd := d.d
  23893. cr := d.cr
  23894. if checkNil && dd.TryDecodeAsNil() {
  23895. if v != nil {
  23896. changed = true
  23897. }
  23898. return nil, changed
  23899. }
  23900. containerLen := dd.ReadMapStart()
  23901. if canChange && v == nil {
  23902. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23903. v = make(map[uint]uint16, xlen)
  23904. changed = true
  23905. }
  23906. var mk uint
  23907. var mv uint16
  23908. if containerLen > 0 {
  23909. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23923. for j := 0; !dd.CheckBreak(); j++ {
  23924. if cr != nil {
  23925. cr.sendContainerState(containerMapKey)
  23926. }
  23927. mk = uint(dd.DecodeUint(uintBitsize))
  23928. if cr != nil {
  23929. cr.sendContainerState(containerMapValue)
  23930. }
  23931. mv = uint16(dd.DecodeUint(16))
  23932. if v != nil {
  23933. v[mk] = mv
  23934. }
  23935. }
  23936. }
  23937. if cr != nil {
  23938. cr.sendContainerState(containerMapEnd)
  23939. }
  23940. return v, changed
  23941. }
  23942. func (f *decFnInfo) fastpathDecMapUintUint32R(rv reflect.Value) {
  23943. if rv.CanAddr() {
  23944. vp := rv.Addr().Interface().(*map[uint]uint32)
  23945. v, changed := fastpathTV.DecMapUintUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  23946. if changed {
  23947. *vp = v
  23948. }
  23949. } else {
  23950. v := rv.Interface().(map[uint]uint32)
  23951. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, f.d)
  23952. }
  23953. }
  23954. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, checkNil bool, d *Decoder) {
  23955. v, changed := f.DecMapUintUint32V(*vp, checkNil, true, d)
  23956. if changed {
  23957. *vp = v
  23958. }
  23959. }
  23960. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, checkNil bool, canChange bool,
  23961. d *Decoder) (_ map[uint]uint32, changed bool) {
  23962. dd := d.d
  23963. cr := d.cr
  23964. if checkNil && dd.TryDecodeAsNil() {
  23965. if v != nil {
  23966. changed = true
  23967. }
  23968. return nil, changed
  23969. }
  23970. containerLen := dd.ReadMapStart()
  23971. if canChange && v == nil {
  23972. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23973. v = make(map[uint]uint32, xlen)
  23974. changed = true
  23975. }
  23976. var mk uint
  23977. var mv uint32
  23978. if containerLen > 0 {
  23979. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  23993. for j := 0; !dd.CheckBreak(); j++ {
  23994. if cr != nil {
  23995. cr.sendContainerState(containerMapKey)
  23996. }
  23997. mk = uint(dd.DecodeUint(uintBitsize))
  23998. if cr != nil {
  23999. cr.sendContainerState(containerMapValue)
  24000. }
  24001. mv = uint32(dd.DecodeUint(32))
  24002. if v != nil {
  24003. v[mk] = mv
  24004. }
  24005. }
  24006. }
  24007. if cr != nil {
  24008. cr.sendContainerState(containerMapEnd)
  24009. }
  24010. return v, changed
  24011. }
  24012. func (f *decFnInfo) fastpathDecMapUintUint64R(rv reflect.Value) {
  24013. if rv.CanAddr() {
  24014. vp := rv.Addr().Interface().(*map[uint]uint64)
  24015. v, changed := fastpathTV.DecMapUintUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  24016. if changed {
  24017. *vp = v
  24018. }
  24019. } else {
  24020. v := rv.Interface().(map[uint]uint64)
  24021. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, f.d)
  24022. }
  24023. }
  24024. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, checkNil bool, d *Decoder) {
  24025. v, changed := f.DecMapUintUint64V(*vp, checkNil, true, d)
  24026. if changed {
  24027. *vp = v
  24028. }
  24029. }
  24030. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, checkNil bool, canChange bool,
  24031. d *Decoder) (_ map[uint]uint64, changed bool) {
  24032. dd := d.d
  24033. cr := d.cr
  24034. if checkNil && dd.TryDecodeAsNil() {
  24035. if v != nil {
  24036. changed = true
  24037. }
  24038. return nil, changed
  24039. }
  24040. containerLen := dd.ReadMapStart()
  24041. if canChange && v == nil {
  24042. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24043. v = make(map[uint]uint64, xlen)
  24044. changed = true
  24045. }
  24046. var mk uint
  24047. var mv uint64
  24048. if containerLen > 0 {
  24049. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24063. for j := 0; !dd.CheckBreak(); j++ {
  24064. if cr != nil {
  24065. cr.sendContainerState(containerMapKey)
  24066. }
  24067. mk = uint(dd.DecodeUint(uintBitsize))
  24068. if cr != nil {
  24069. cr.sendContainerState(containerMapValue)
  24070. }
  24071. mv = dd.DecodeUint(64)
  24072. if v != nil {
  24073. v[mk] = mv
  24074. }
  24075. }
  24076. }
  24077. if cr != nil {
  24078. cr.sendContainerState(containerMapEnd)
  24079. }
  24080. return v, changed
  24081. }
  24082. func (f *decFnInfo) fastpathDecMapUintUintptrR(rv reflect.Value) {
  24083. if rv.CanAddr() {
  24084. vp := rv.Addr().Interface().(*map[uint]uintptr)
  24085. v, changed := fastpathTV.DecMapUintUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  24086. if changed {
  24087. *vp = v
  24088. }
  24089. } else {
  24090. v := rv.Interface().(map[uint]uintptr)
  24091. fastpathTV.DecMapUintUintptrV(v, fastpathCheckNilFalse, false, f.d)
  24092. }
  24093. }
  24094. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, checkNil bool, d *Decoder) {
  24095. v, changed := f.DecMapUintUintptrV(*vp, checkNil, true, d)
  24096. if changed {
  24097. *vp = v
  24098. }
  24099. }
  24100. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, checkNil bool, canChange bool,
  24101. d *Decoder) (_ map[uint]uintptr, changed bool) {
  24102. dd := d.d
  24103. cr := d.cr
  24104. if checkNil && dd.TryDecodeAsNil() {
  24105. if v != nil {
  24106. changed = true
  24107. }
  24108. return nil, changed
  24109. }
  24110. containerLen := dd.ReadMapStart()
  24111. if canChange && v == nil {
  24112. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24113. v = make(map[uint]uintptr, xlen)
  24114. changed = true
  24115. }
  24116. var mk uint
  24117. var mv uintptr
  24118. if containerLen > 0 {
  24119. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24133. for j := 0; !dd.CheckBreak(); j++ {
  24134. if cr != nil {
  24135. cr.sendContainerState(containerMapKey)
  24136. }
  24137. mk = uint(dd.DecodeUint(uintBitsize))
  24138. if cr != nil {
  24139. cr.sendContainerState(containerMapValue)
  24140. }
  24141. mv = uintptr(dd.DecodeUint(uintBitsize))
  24142. if v != nil {
  24143. v[mk] = mv
  24144. }
  24145. }
  24146. }
  24147. if cr != nil {
  24148. cr.sendContainerState(containerMapEnd)
  24149. }
  24150. return v, changed
  24151. }
  24152. func (f *decFnInfo) fastpathDecMapUintIntR(rv reflect.Value) {
  24153. if rv.CanAddr() {
  24154. vp := rv.Addr().Interface().(*map[uint]int)
  24155. v, changed := fastpathTV.DecMapUintIntV(*vp, fastpathCheckNilFalse, true, f.d)
  24156. if changed {
  24157. *vp = v
  24158. }
  24159. } else {
  24160. v := rv.Interface().(map[uint]int)
  24161. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, f.d)
  24162. }
  24163. }
  24164. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, checkNil bool, d *Decoder) {
  24165. v, changed := f.DecMapUintIntV(*vp, checkNil, true, d)
  24166. if changed {
  24167. *vp = v
  24168. }
  24169. }
  24170. func (_ fastpathT) DecMapUintIntV(v map[uint]int, checkNil bool, canChange bool,
  24171. d *Decoder) (_ map[uint]int, changed bool) {
  24172. dd := d.d
  24173. cr := d.cr
  24174. if checkNil && dd.TryDecodeAsNil() {
  24175. if v != nil {
  24176. changed = true
  24177. }
  24178. return nil, changed
  24179. }
  24180. containerLen := dd.ReadMapStart()
  24181. if canChange && v == nil {
  24182. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24183. v = make(map[uint]int, xlen)
  24184. changed = true
  24185. }
  24186. var mk uint
  24187. var mv int
  24188. if containerLen > 0 {
  24189. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24203. for j := 0; !dd.CheckBreak(); j++ {
  24204. if cr != nil {
  24205. cr.sendContainerState(containerMapKey)
  24206. }
  24207. mk = uint(dd.DecodeUint(uintBitsize))
  24208. if cr != nil {
  24209. cr.sendContainerState(containerMapValue)
  24210. }
  24211. mv = int(dd.DecodeInt(intBitsize))
  24212. if v != nil {
  24213. v[mk] = mv
  24214. }
  24215. }
  24216. }
  24217. if cr != nil {
  24218. cr.sendContainerState(containerMapEnd)
  24219. }
  24220. return v, changed
  24221. }
  24222. func (f *decFnInfo) fastpathDecMapUintInt8R(rv reflect.Value) {
  24223. if rv.CanAddr() {
  24224. vp := rv.Addr().Interface().(*map[uint]int8)
  24225. v, changed := fastpathTV.DecMapUintInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  24226. if changed {
  24227. *vp = v
  24228. }
  24229. } else {
  24230. v := rv.Interface().(map[uint]int8)
  24231. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, f.d)
  24232. }
  24233. }
  24234. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, checkNil bool, d *Decoder) {
  24235. v, changed := f.DecMapUintInt8V(*vp, checkNil, true, d)
  24236. if changed {
  24237. *vp = v
  24238. }
  24239. }
  24240. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, checkNil bool, canChange bool,
  24241. d *Decoder) (_ map[uint]int8, changed bool) {
  24242. dd := d.d
  24243. cr := d.cr
  24244. if checkNil && dd.TryDecodeAsNil() {
  24245. if v != nil {
  24246. changed = true
  24247. }
  24248. return nil, changed
  24249. }
  24250. containerLen := dd.ReadMapStart()
  24251. if canChange && v == nil {
  24252. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24253. v = make(map[uint]int8, xlen)
  24254. changed = true
  24255. }
  24256. var mk uint
  24257. var mv int8
  24258. if containerLen > 0 {
  24259. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24273. for j := 0; !dd.CheckBreak(); j++ {
  24274. if cr != nil {
  24275. cr.sendContainerState(containerMapKey)
  24276. }
  24277. mk = uint(dd.DecodeUint(uintBitsize))
  24278. if cr != nil {
  24279. cr.sendContainerState(containerMapValue)
  24280. }
  24281. mv = int8(dd.DecodeInt(8))
  24282. if v != nil {
  24283. v[mk] = mv
  24284. }
  24285. }
  24286. }
  24287. if cr != nil {
  24288. cr.sendContainerState(containerMapEnd)
  24289. }
  24290. return v, changed
  24291. }
  24292. func (f *decFnInfo) fastpathDecMapUintInt16R(rv reflect.Value) {
  24293. if rv.CanAddr() {
  24294. vp := rv.Addr().Interface().(*map[uint]int16)
  24295. v, changed := fastpathTV.DecMapUintInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  24296. if changed {
  24297. *vp = v
  24298. }
  24299. } else {
  24300. v := rv.Interface().(map[uint]int16)
  24301. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, f.d)
  24302. }
  24303. }
  24304. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, checkNil bool, d *Decoder) {
  24305. v, changed := f.DecMapUintInt16V(*vp, checkNil, true, d)
  24306. if changed {
  24307. *vp = v
  24308. }
  24309. }
  24310. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, checkNil bool, canChange bool,
  24311. d *Decoder) (_ map[uint]int16, changed bool) {
  24312. dd := d.d
  24313. cr := d.cr
  24314. if checkNil && dd.TryDecodeAsNil() {
  24315. if v != nil {
  24316. changed = true
  24317. }
  24318. return nil, changed
  24319. }
  24320. containerLen := dd.ReadMapStart()
  24321. if canChange && v == nil {
  24322. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24323. v = make(map[uint]int16, xlen)
  24324. changed = true
  24325. }
  24326. var mk uint
  24327. var mv int16
  24328. if containerLen > 0 {
  24329. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24343. for j := 0; !dd.CheckBreak(); j++ {
  24344. if cr != nil {
  24345. cr.sendContainerState(containerMapKey)
  24346. }
  24347. mk = uint(dd.DecodeUint(uintBitsize))
  24348. if cr != nil {
  24349. cr.sendContainerState(containerMapValue)
  24350. }
  24351. mv = int16(dd.DecodeInt(16))
  24352. if v != nil {
  24353. v[mk] = mv
  24354. }
  24355. }
  24356. }
  24357. if cr != nil {
  24358. cr.sendContainerState(containerMapEnd)
  24359. }
  24360. return v, changed
  24361. }
  24362. func (f *decFnInfo) fastpathDecMapUintInt32R(rv reflect.Value) {
  24363. if rv.CanAddr() {
  24364. vp := rv.Addr().Interface().(*map[uint]int32)
  24365. v, changed := fastpathTV.DecMapUintInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  24366. if changed {
  24367. *vp = v
  24368. }
  24369. } else {
  24370. v := rv.Interface().(map[uint]int32)
  24371. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, f.d)
  24372. }
  24373. }
  24374. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, checkNil bool, d *Decoder) {
  24375. v, changed := f.DecMapUintInt32V(*vp, checkNil, true, d)
  24376. if changed {
  24377. *vp = v
  24378. }
  24379. }
  24380. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, checkNil bool, canChange bool,
  24381. d *Decoder) (_ map[uint]int32, changed bool) {
  24382. dd := d.d
  24383. cr := d.cr
  24384. if checkNil && dd.TryDecodeAsNil() {
  24385. if v != nil {
  24386. changed = true
  24387. }
  24388. return nil, changed
  24389. }
  24390. containerLen := dd.ReadMapStart()
  24391. if canChange && v == nil {
  24392. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24393. v = make(map[uint]int32, xlen)
  24394. changed = true
  24395. }
  24396. var mk uint
  24397. var mv int32
  24398. if containerLen > 0 {
  24399. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24413. for j := 0; !dd.CheckBreak(); j++ {
  24414. if cr != nil {
  24415. cr.sendContainerState(containerMapKey)
  24416. }
  24417. mk = uint(dd.DecodeUint(uintBitsize))
  24418. if cr != nil {
  24419. cr.sendContainerState(containerMapValue)
  24420. }
  24421. mv = int32(dd.DecodeInt(32))
  24422. if v != nil {
  24423. v[mk] = mv
  24424. }
  24425. }
  24426. }
  24427. if cr != nil {
  24428. cr.sendContainerState(containerMapEnd)
  24429. }
  24430. return v, changed
  24431. }
  24432. func (f *decFnInfo) fastpathDecMapUintInt64R(rv reflect.Value) {
  24433. if rv.CanAddr() {
  24434. vp := rv.Addr().Interface().(*map[uint]int64)
  24435. v, changed := fastpathTV.DecMapUintInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  24436. if changed {
  24437. *vp = v
  24438. }
  24439. } else {
  24440. v := rv.Interface().(map[uint]int64)
  24441. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, f.d)
  24442. }
  24443. }
  24444. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, checkNil bool, d *Decoder) {
  24445. v, changed := f.DecMapUintInt64V(*vp, checkNil, true, d)
  24446. if changed {
  24447. *vp = v
  24448. }
  24449. }
  24450. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, checkNil bool, canChange bool,
  24451. d *Decoder) (_ map[uint]int64, changed bool) {
  24452. dd := d.d
  24453. cr := d.cr
  24454. if checkNil && dd.TryDecodeAsNil() {
  24455. if v != nil {
  24456. changed = true
  24457. }
  24458. return nil, changed
  24459. }
  24460. containerLen := dd.ReadMapStart()
  24461. if canChange && v == nil {
  24462. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24463. v = make(map[uint]int64, xlen)
  24464. changed = true
  24465. }
  24466. var mk uint
  24467. var mv int64
  24468. if containerLen > 0 {
  24469. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24483. for j := 0; !dd.CheckBreak(); j++ {
  24484. if cr != nil {
  24485. cr.sendContainerState(containerMapKey)
  24486. }
  24487. mk = uint(dd.DecodeUint(uintBitsize))
  24488. if cr != nil {
  24489. cr.sendContainerState(containerMapValue)
  24490. }
  24491. mv = dd.DecodeInt(64)
  24492. if v != nil {
  24493. v[mk] = mv
  24494. }
  24495. }
  24496. }
  24497. if cr != nil {
  24498. cr.sendContainerState(containerMapEnd)
  24499. }
  24500. return v, changed
  24501. }
  24502. func (f *decFnInfo) fastpathDecMapUintFloat32R(rv reflect.Value) {
  24503. if rv.CanAddr() {
  24504. vp := rv.Addr().Interface().(*map[uint]float32)
  24505. v, changed := fastpathTV.DecMapUintFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  24506. if changed {
  24507. *vp = v
  24508. }
  24509. } else {
  24510. v := rv.Interface().(map[uint]float32)
  24511. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, f.d)
  24512. }
  24513. }
  24514. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, checkNil bool, d *Decoder) {
  24515. v, changed := f.DecMapUintFloat32V(*vp, checkNil, true, d)
  24516. if changed {
  24517. *vp = v
  24518. }
  24519. }
  24520. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, checkNil bool, canChange bool,
  24521. d *Decoder) (_ map[uint]float32, changed bool) {
  24522. dd := d.d
  24523. cr := d.cr
  24524. if checkNil && dd.TryDecodeAsNil() {
  24525. if v != nil {
  24526. changed = true
  24527. }
  24528. return nil, changed
  24529. }
  24530. containerLen := dd.ReadMapStart()
  24531. if canChange && v == nil {
  24532. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24533. v = make(map[uint]float32, xlen)
  24534. changed = true
  24535. }
  24536. var mk uint
  24537. var mv float32
  24538. if containerLen > 0 {
  24539. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24553. for j := 0; !dd.CheckBreak(); j++ {
  24554. if cr != nil {
  24555. cr.sendContainerState(containerMapKey)
  24556. }
  24557. mk = uint(dd.DecodeUint(uintBitsize))
  24558. if cr != nil {
  24559. cr.sendContainerState(containerMapValue)
  24560. }
  24561. mv = float32(dd.DecodeFloat(true))
  24562. if v != nil {
  24563. v[mk] = mv
  24564. }
  24565. }
  24566. }
  24567. if cr != nil {
  24568. cr.sendContainerState(containerMapEnd)
  24569. }
  24570. return v, changed
  24571. }
  24572. func (f *decFnInfo) fastpathDecMapUintFloat64R(rv reflect.Value) {
  24573. if rv.CanAddr() {
  24574. vp := rv.Addr().Interface().(*map[uint]float64)
  24575. v, changed := fastpathTV.DecMapUintFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  24576. if changed {
  24577. *vp = v
  24578. }
  24579. } else {
  24580. v := rv.Interface().(map[uint]float64)
  24581. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, f.d)
  24582. }
  24583. }
  24584. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, checkNil bool, d *Decoder) {
  24585. v, changed := f.DecMapUintFloat64V(*vp, checkNil, true, d)
  24586. if changed {
  24587. *vp = v
  24588. }
  24589. }
  24590. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, checkNil bool, canChange bool,
  24591. d *Decoder) (_ map[uint]float64, changed bool) {
  24592. dd := d.d
  24593. cr := d.cr
  24594. if checkNil && dd.TryDecodeAsNil() {
  24595. if v != nil {
  24596. changed = true
  24597. }
  24598. return nil, changed
  24599. }
  24600. containerLen := dd.ReadMapStart()
  24601. if canChange && v == nil {
  24602. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24603. v = make(map[uint]float64, xlen)
  24604. changed = true
  24605. }
  24606. var mk uint
  24607. var mv float64
  24608. if containerLen > 0 {
  24609. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24623. for j := 0; !dd.CheckBreak(); j++ {
  24624. if cr != nil {
  24625. cr.sendContainerState(containerMapKey)
  24626. }
  24627. mk = uint(dd.DecodeUint(uintBitsize))
  24628. if cr != nil {
  24629. cr.sendContainerState(containerMapValue)
  24630. }
  24631. mv = dd.DecodeFloat(false)
  24632. if v != nil {
  24633. v[mk] = mv
  24634. }
  24635. }
  24636. }
  24637. if cr != nil {
  24638. cr.sendContainerState(containerMapEnd)
  24639. }
  24640. return v, changed
  24641. }
  24642. func (f *decFnInfo) fastpathDecMapUintBoolR(rv reflect.Value) {
  24643. if rv.CanAddr() {
  24644. vp := rv.Addr().Interface().(*map[uint]bool)
  24645. v, changed := fastpathTV.DecMapUintBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  24646. if changed {
  24647. *vp = v
  24648. }
  24649. } else {
  24650. v := rv.Interface().(map[uint]bool)
  24651. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, f.d)
  24652. }
  24653. }
  24654. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, checkNil bool, d *Decoder) {
  24655. v, changed := f.DecMapUintBoolV(*vp, checkNil, true, d)
  24656. if changed {
  24657. *vp = v
  24658. }
  24659. }
  24660. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, checkNil bool, canChange bool,
  24661. d *Decoder) (_ map[uint]bool, changed bool) {
  24662. dd := d.d
  24663. cr := d.cr
  24664. if checkNil && dd.TryDecodeAsNil() {
  24665. if v != nil {
  24666. changed = true
  24667. }
  24668. return nil, changed
  24669. }
  24670. containerLen := dd.ReadMapStart()
  24671. if canChange && v == nil {
  24672. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24673. v = make(map[uint]bool, xlen)
  24674. changed = true
  24675. }
  24676. var mk uint
  24677. var mv bool
  24678. if containerLen > 0 {
  24679. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24693. for j := 0; !dd.CheckBreak(); j++ {
  24694. if cr != nil {
  24695. cr.sendContainerState(containerMapKey)
  24696. }
  24697. mk = uint(dd.DecodeUint(uintBitsize))
  24698. if cr != nil {
  24699. cr.sendContainerState(containerMapValue)
  24700. }
  24701. mv = dd.DecodeBool()
  24702. if v != nil {
  24703. v[mk] = mv
  24704. }
  24705. }
  24706. }
  24707. if cr != nil {
  24708. cr.sendContainerState(containerMapEnd)
  24709. }
  24710. return v, changed
  24711. }
  24712. func (f *decFnInfo) fastpathDecMapUint8IntfR(rv reflect.Value) {
  24713. if rv.CanAddr() {
  24714. vp := rv.Addr().Interface().(*map[uint8]interface{})
  24715. v, changed := fastpathTV.DecMapUint8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  24716. if changed {
  24717. *vp = v
  24718. }
  24719. } else {
  24720. v := rv.Interface().(map[uint8]interface{})
  24721. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, f.d)
  24722. }
  24723. }
  24724. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, checkNil bool, d *Decoder) {
  24725. v, changed := f.DecMapUint8IntfV(*vp, checkNil, true, d)
  24726. if changed {
  24727. *vp = v
  24728. }
  24729. }
  24730. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, checkNil bool, canChange bool,
  24731. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  24732. dd := d.d
  24733. cr := d.cr
  24734. if checkNil && dd.TryDecodeAsNil() {
  24735. if v != nil {
  24736. changed = true
  24737. }
  24738. return nil, changed
  24739. }
  24740. containerLen := dd.ReadMapStart()
  24741. if canChange && v == nil {
  24742. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  24743. v = make(map[uint8]interface{}, xlen)
  24744. changed = true
  24745. }
  24746. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  24747. var mk uint8
  24748. var mv interface{}
  24749. if containerLen > 0 {
  24750. for j := 0; j < containerLen; j++ {
  24751. if cr != nil {
  24752. cr.sendContainerState(containerMapKey)
  24753. }
  24754. mk = uint8(dd.DecodeUint(8))
  24755. if cr != nil {
  24756. cr.sendContainerState(containerMapValue)
  24757. }
  24758. if mapGet {
  24759. mv = v[mk]
  24760. } else {
  24761. mv = nil
  24762. }
  24763. d.decode(&mv)
  24764. if v != nil {
  24765. v[mk] = mv
  24766. }
  24767. }
  24768. } else if containerLen < 0 {
  24769. for j := 0; !dd.CheckBreak(); j++ {
  24770. if cr != nil {
  24771. cr.sendContainerState(containerMapKey)
  24772. }
  24773. mk = uint8(dd.DecodeUint(8))
  24774. if cr != nil {
  24775. cr.sendContainerState(containerMapValue)
  24776. }
  24777. if mapGet {
  24778. mv = v[mk]
  24779. } else {
  24780. mv = nil
  24781. }
  24782. d.decode(&mv)
  24783. if v != nil {
  24784. v[mk] = mv
  24785. }
  24786. }
  24787. }
  24788. if cr != nil {
  24789. cr.sendContainerState(containerMapEnd)
  24790. }
  24791. return v, changed
  24792. }
  24793. func (f *decFnInfo) fastpathDecMapUint8StringR(rv reflect.Value) {
  24794. if rv.CanAddr() {
  24795. vp := rv.Addr().Interface().(*map[uint8]string)
  24796. v, changed := fastpathTV.DecMapUint8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  24797. if changed {
  24798. *vp = v
  24799. }
  24800. } else {
  24801. v := rv.Interface().(map[uint8]string)
  24802. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, f.d)
  24803. }
  24804. }
  24805. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, checkNil bool, d *Decoder) {
  24806. v, changed := f.DecMapUint8StringV(*vp, checkNil, true, d)
  24807. if changed {
  24808. *vp = v
  24809. }
  24810. }
  24811. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, checkNil bool, canChange bool,
  24812. d *Decoder) (_ map[uint8]string, changed bool) {
  24813. dd := d.d
  24814. cr := d.cr
  24815. if checkNil && dd.TryDecodeAsNil() {
  24816. if v != nil {
  24817. changed = true
  24818. }
  24819. return nil, changed
  24820. }
  24821. containerLen := dd.ReadMapStart()
  24822. if canChange && v == nil {
  24823. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  24824. v = make(map[uint8]string, xlen)
  24825. changed = true
  24826. }
  24827. var mk uint8
  24828. var mv string
  24829. if containerLen > 0 {
  24830. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24844. for j := 0; !dd.CheckBreak(); j++ {
  24845. if cr != nil {
  24846. cr.sendContainerState(containerMapKey)
  24847. }
  24848. mk = uint8(dd.DecodeUint(8))
  24849. if cr != nil {
  24850. cr.sendContainerState(containerMapValue)
  24851. }
  24852. mv = dd.DecodeString()
  24853. if v != nil {
  24854. v[mk] = mv
  24855. }
  24856. }
  24857. }
  24858. if cr != nil {
  24859. cr.sendContainerState(containerMapEnd)
  24860. }
  24861. return v, changed
  24862. }
  24863. func (f *decFnInfo) fastpathDecMapUint8UintR(rv reflect.Value) {
  24864. if rv.CanAddr() {
  24865. vp := rv.Addr().Interface().(*map[uint8]uint)
  24866. v, changed := fastpathTV.DecMapUint8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  24867. if changed {
  24868. *vp = v
  24869. }
  24870. } else {
  24871. v := rv.Interface().(map[uint8]uint)
  24872. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, f.d)
  24873. }
  24874. }
  24875. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, checkNil bool, d *Decoder) {
  24876. v, changed := f.DecMapUint8UintV(*vp, checkNil, true, d)
  24877. if changed {
  24878. *vp = v
  24879. }
  24880. }
  24881. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, checkNil bool, canChange bool,
  24882. d *Decoder) (_ map[uint8]uint, changed bool) {
  24883. dd := d.d
  24884. cr := d.cr
  24885. if checkNil && dd.TryDecodeAsNil() {
  24886. if v != nil {
  24887. changed = true
  24888. }
  24889. return nil, changed
  24890. }
  24891. containerLen := dd.ReadMapStart()
  24892. if canChange && v == nil {
  24893. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24894. v = make(map[uint8]uint, xlen)
  24895. changed = true
  24896. }
  24897. var mk uint8
  24898. var mv uint
  24899. if containerLen > 0 {
  24900. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24914. for j := 0; !dd.CheckBreak(); j++ {
  24915. if cr != nil {
  24916. cr.sendContainerState(containerMapKey)
  24917. }
  24918. mk = uint8(dd.DecodeUint(8))
  24919. if cr != nil {
  24920. cr.sendContainerState(containerMapValue)
  24921. }
  24922. mv = uint(dd.DecodeUint(uintBitsize))
  24923. if v != nil {
  24924. v[mk] = mv
  24925. }
  24926. }
  24927. }
  24928. if cr != nil {
  24929. cr.sendContainerState(containerMapEnd)
  24930. }
  24931. return v, changed
  24932. }
  24933. func (f *decFnInfo) fastpathDecMapUint8Uint8R(rv reflect.Value) {
  24934. if rv.CanAddr() {
  24935. vp := rv.Addr().Interface().(*map[uint8]uint8)
  24936. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  24937. if changed {
  24938. *vp = v
  24939. }
  24940. } else {
  24941. v := rv.Interface().(map[uint8]uint8)
  24942. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  24943. }
  24944. }
  24945. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, checkNil bool, d *Decoder) {
  24946. v, changed := f.DecMapUint8Uint8V(*vp, checkNil, true, d)
  24947. if changed {
  24948. *vp = v
  24949. }
  24950. }
  24951. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, checkNil bool, canChange bool,
  24952. d *Decoder) (_ map[uint8]uint8, changed bool) {
  24953. dd := d.d
  24954. cr := d.cr
  24955. if checkNil && dd.TryDecodeAsNil() {
  24956. if v != nil {
  24957. changed = true
  24958. }
  24959. return nil, changed
  24960. }
  24961. containerLen := dd.ReadMapStart()
  24962. if canChange && v == nil {
  24963. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24964. v = make(map[uint8]uint8, xlen)
  24965. changed = true
  24966. }
  24967. var mk uint8
  24968. var mv uint8
  24969. if containerLen > 0 {
  24970. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  24984. for j := 0; !dd.CheckBreak(); j++ {
  24985. if cr != nil {
  24986. cr.sendContainerState(containerMapKey)
  24987. }
  24988. mk = uint8(dd.DecodeUint(8))
  24989. if cr != nil {
  24990. cr.sendContainerState(containerMapValue)
  24991. }
  24992. mv = uint8(dd.DecodeUint(8))
  24993. if v != nil {
  24994. v[mk] = mv
  24995. }
  24996. }
  24997. }
  24998. if cr != nil {
  24999. cr.sendContainerState(containerMapEnd)
  25000. }
  25001. return v, changed
  25002. }
  25003. func (f *decFnInfo) fastpathDecMapUint8Uint16R(rv reflect.Value) {
  25004. if rv.CanAddr() {
  25005. vp := rv.Addr().Interface().(*map[uint8]uint16)
  25006. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  25007. if changed {
  25008. *vp = v
  25009. }
  25010. } else {
  25011. v := rv.Interface().(map[uint8]uint16)
  25012. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  25013. }
  25014. }
  25015. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, checkNil bool, d *Decoder) {
  25016. v, changed := f.DecMapUint8Uint16V(*vp, checkNil, true, d)
  25017. if changed {
  25018. *vp = v
  25019. }
  25020. }
  25021. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, checkNil bool, canChange bool,
  25022. d *Decoder) (_ map[uint8]uint16, changed bool) {
  25023. dd := d.d
  25024. cr := d.cr
  25025. if checkNil && dd.TryDecodeAsNil() {
  25026. if v != nil {
  25027. changed = true
  25028. }
  25029. return nil, changed
  25030. }
  25031. containerLen := dd.ReadMapStart()
  25032. if canChange && v == nil {
  25033. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25034. v = make(map[uint8]uint16, xlen)
  25035. changed = true
  25036. }
  25037. var mk uint8
  25038. var mv uint16
  25039. if containerLen > 0 {
  25040. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25054. for j := 0; !dd.CheckBreak(); j++ {
  25055. if cr != nil {
  25056. cr.sendContainerState(containerMapKey)
  25057. }
  25058. mk = uint8(dd.DecodeUint(8))
  25059. if cr != nil {
  25060. cr.sendContainerState(containerMapValue)
  25061. }
  25062. mv = uint16(dd.DecodeUint(16))
  25063. if v != nil {
  25064. v[mk] = mv
  25065. }
  25066. }
  25067. }
  25068. if cr != nil {
  25069. cr.sendContainerState(containerMapEnd)
  25070. }
  25071. return v, changed
  25072. }
  25073. func (f *decFnInfo) fastpathDecMapUint8Uint32R(rv reflect.Value) {
  25074. if rv.CanAddr() {
  25075. vp := rv.Addr().Interface().(*map[uint8]uint32)
  25076. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  25077. if changed {
  25078. *vp = v
  25079. }
  25080. } else {
  25081. v := rv.Interface().(map[uint8]uint32)
  25082. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  25083. }
  25084. }
  25085. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, checkNil bool, d *Decoder) {
  25086. v, changed := f.DecMapUint8Uint32V(*vp, checkNil, true, d)
  25087. if changed {
  25088. *vp = v
  25089. }
  25090. }
  25091. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, checkNil bool, canChange bool,
  25092. d *Decoder) (_ map[uint8]uint32, changed bool) {
  25093. dd := d.d
  25094. cr := d.cr
  25095. if checkNil && dd.TryDecodeAsNil() {
  25096. if v != nil {
  25097. changed = true
  25098. }
  25099. return nil, changed
  25100. }
  25101. containerLen := dd.ReadMapStart()
  25102. if canChange && v == nil {
  25103. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25104. v = make(map[uint8]uint32, xlen)
  25105. changed = true
  25106. }
  25107. var mk uint8
  25108. var mv uint32
  25109. if containerLen > 0 {
  25110. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25124. for j := 0; !dd.CheckBreak(); j++ {
  25125. if cr != nil {
  25126. cr.sendContainerState(containerMapKey)
  25127. }
  25128. mk = uint8(dd.DecodeUint(8))
  25129. if cr != nil {
  25130. cr.sendContainerState(containerMapValue)
  25131. }
  25132. mv = uint32(dd.DecodeUint(32))
  25133. if v != nil {
  25134. v[mk] = mv
  25135. }
  25136. }
  25137. }
  25138. if cr != nil {
  25139. cr.sendContainerState(containerMapEnd)
  25140. }
  25141. return v, changed
  25142. }
  25143. func (f *decFnInfo) fastpathDecMapUint8Uint64R(rv reflect.Value) {
  25144. if rv.CanAddr() {
  25145. vp := rv.Addr().Interface().(*map[uint8]uint64)
  25146. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  25147. if changed {
  25148. *vp = v
  25149. }
  25150. } else {
  25151. v := rv.Interface().(map[uint8]uint64)
  25152. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  25153. }
  25154. }
  25155. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, checkNil bool, d *Decoder) {
  25156. v, changed := f.DecMapUint8Uint64V(*vp, checkNil, true, d)
  25157. if changed {
  25158. *vp = v
  25159. }
  25160. }
  25161. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, checkNil bool, canChange bool,
  25162. d *Decoder) (_ map[uint8]uint64, changed bool) {
  25163. dd := d.d
  25164. cr := d.cr
  25165. if checkNil && dd.TryDecodeAsNil() {
  25166. if v != nil {
  25167. changed = true
  25168. }
  25169. return nil, changed
  25170. }
  25171. containerLen := dd.ReadMapStart()
  25172. if canChange && v == nil {
  25173. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25174. v = make(map[uint8]uint64, xlen)
  25175. changed = true
  25176. }
  25177. var mk uint8
  25178. var mv uint64
  25179. if containerLen > 0 {
  25180. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25194. for j := 0; !dd.CheckBreak(); j++ {
  25195. if cr != nil {
  25196. cr.sendContainerState(containerMapKey)
  25197. }
  25198. mk = uint8(dd.DecodeUint(8))
  25199. if cr != nil {
  25200. cr.sendContainerState(containerMapValue)
  25201. }
  25202. mv = dd.DecodeUint(64)
  25203. if v != nil {
  25204. v[mk] = mv
  25205. }
  25206. }
  25207. }
  25208. if cr != nil {
  25209. cr.sendContainerState(containerMapEnd)
  25210. }
  25211. return v, changed
  25212. }
  25213. func (f *decFnInfo) fastpathDecMapUint8UintptrR(rv reflect.Value) {
  25214. if rv.CanAddr() {
  25215. vp := rv.Addr().Interface().(*map[uint8]uintptr)
  25216. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  25217. if changed {
  25218. *vp = v
  25219. }
  25220. } else {
  25221. v := rv.Interface().(map[uint8]uintptr)
  25222. fastpathTV.DecMapUint8UintptrV(v, fastpathCheckNilFalse, false, f.d)
  25223. }
  25224. }
  25225. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, checkNil bool, d *Decoder) {
  25226. v, changed := f.DecMapUint8UintptrV(*vp, checkNil, true, d)
  25227. if changed {
  25228. *vp = v
  25229. }
  25230. }
  25231. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, checkNil bool, canChange bool,
  25232. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  25233. dd := d.d
  25234. cr := d.cr
  25235. if checkNil && dd.TryDecodeAsNil() {
  25236. if v != nil {
  25237. changed = true
  25238. }
  25239. return nil, changed
  25240. }
  25241. containerLen := dd.ReadMapStart()
  25242. if canChange && v == nil {
  25243. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25244. v = make(map[uint8]uintptr, xlen)
  25245. changed = true
  25246. }
  25247. var mk uint8
  25248. var mv uintptr
  25249. if containerLen > 0 {
  25250. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25264. for j := 0; !dd.CheckBreak(); j++ {
  25265. if cr != nil {
  25266. cr.sendContainerState(containerMapKey)
  25267. }
  25268. mk = uint8(dd.DecodeUint(8))
  25269. if cr != nil {
  25270. cr.sendContainerState(containerMapValue)
  25271. }
  25272. mv = uintptr(dd.DecodeUint(uintBitsize))
  25273. if v != nil {
  25274. v[mk] = mv
  25275. }
  25276. }
  25277. }
  25278. if cr != nil {
  25279. cr.sendContainerState(containerMapEnd)
  25280. }
  25281. return v, changed
  25282. }
  25283. func (f *decFnInfo) fastpathDecMapUint8IntR(rv reflect.Value) {
  25284. if rv.CanAddr() {
  25285. vp := rv.Addr().Interface().(*map[uint8]int)
  25286. v, changed := fastpathTV.DecMapUint8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  25287. if changed {
  25288. *vp = v
  25289. }
  25290. } else {
  25291. v := rv.Interface().(map[uint8]int)
  25292. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, f.d)
  25293. }
  25294. }
  25295. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, checkNil bool, d *Decoder) {
  25296. v, changed := f.DecMapUint8IntV(*vp, checkNil, true, d)
  25297. if changed {
  25298. *vp = v
  25299. }
  25300. }
  25301. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, checkNil bool, canChange bool,
  25302. d *Decoder) (_ map[uint8]int, changed bool) {
  25303. dd := d.d
  25304. cr := d.cr
  25305. if checkNil && dd.TryDecodeAsNil() {
  25306. if v != nil {
  25307. changed = true
  25308. }
  25309. return nil, changed
  25310. }
  25311. containerLen := dd.ReadMapStart()
  25312. if canChange && v == nil {
  25313. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25314. v = make(map[uint8]int, xlen)
  25315. changed = true
  25316. }
  25317. var mk uint8
  25318. var mv int
  25319. if containerLen > 0 {
  25320. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25334. for j := 0; !dd.CheckBreak(); j++ {
  25335. if cr != nil {
  25336. cr.sendContainerState(containerMapKey)
  25337. }
  25338. mk = uint8(dd.DecodeUint(8))
  25339. if cr != nil {
  25340. cr.sendContainerState(containerMapValue)
  25341. }
  25342. mv = int(dd.DecodeInt(intBitsize))
  25343. if v != nil {
  25344. v[mk] = mv
  25345. }
  25346. }
  25347. }
  25348. if cr != nil {
  25349. cr.sendContainerState(containerMapEnd)
  25350. }
  25351. return v, changed
  25352. }
  25353. func (f *decFnInfo) fastpathDecMapUint8Int8R(rv reflect.Value) {
  25354. if rv.CanAddr() {
  25355. vp := rv.Addr().Interface().(*map[uint8]int8)
  25356. v, changed := fastpathTV.DecMapUint8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  25357. if changed {
  25358. *vp = v
  25359. }
  25360. } else {
  25361. v := rv.Interface().(map[uint8]int8)
  25362. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, f.d)
  25363. }
  25364. }
  25365. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, checkNil bool, d *Decoder) {
  25366. v, changed := f.DecMapUint8Int8V(*vp, checkNil, true, d)
  25367. if changed {
  25368. *vp = v
  25369. }
  25370. }
  25371. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, checkNil bool, canChange bool,
  25372. d *Decoder) (_ map[uint8]int8, changed bool) {
  25373. dd := d.d
  25374. cr := d.cr
  25375. if checkNil && dd.TryDecodeAsNil() {
  25376. if v != nil {
  25377. changed = true
  25378. }
  25379. return nil, changed
  25380. }
  25381. containerLen := dd.ReadMapStart()
  25382. if canChange && v == nil {
  25383. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  25384. v = make(map[uint8]int8, xlen)
  25385. changed = true
  25386. }
  25387. var mk uint8
  25388. var mv int8
  25389. if containerLen > 0 {
  25390. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25404. for j := 0; !dd.CheckBreak(); j++ {
  25405. if cr != nil {
  25406. cr.sendContainerState(containerMapKey)
  25407. }
  25408. mk = uint8(dd.DecodeUint(8))
  25409. if cr != nil {
  25410. cr.sendContainerState(containerMapValue)
  25411. }
  25412. mv = int8(dd.DecodeInt(8))
  25413. if v != nil {
  25414. v[mk] = mv
  25415. }
  25416. }
  25417. }
  25418. if cr != nil {
  25419. cr.sendContainerState(containerMapEnd)
  25420. }
  25421. return v, changed
  25422. }
  25423. func (f *decFnInfo) fastpathDecMapUint8Int16R(rv reflect.Value) {
  25424. if rv.CanAddr() {
  25425. vp := rv.Addr().Interface().(*map[uint8]int16)
  25426. v, changed := fastpathTV.DecMapUint8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  25427. if changed {
  25428. *vp = v
  25429. }
  25430. } else {
  25431. v := rv.Interface().(map[uint8]int16)
  25432. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, f.d)
  25433. }
  25434. }
  25435. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, checkNil bool, d *Decoder) {
  25436. v, changed := f.DecMapUint8Int16V(*vp, checkNil, true, d)
  25437. if changed {
  25438. *vp = v
  25439. }
  25440. }
  25441. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, checkNil bool, canChange bool,
  25442. d *Decoder) (_ map[uint8]int16, changed bool) {
  25443. dd := d.d
  25444. cr := d.cr
  25445. if checkNil && dd.TryDecodeAsNil() {
  25446. if v != nil {
  25447. changed = true
  25448. }
  25449. return nil, changed
  25450. }
  25451. containerLen := dd.ReadMapStart()
  25452. if canChange && v == nil {
  25453. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25454. v = make(map[uint8]int16, xlen)
  25455. changed = true
  25456. }
  25457. var mk uint8
  25458. var mv int16
  25459. if containerLen > 0 {
  25460. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25474. for j := 0; !dd.CheckBreak(); j++ {
  25475. if cr != nil {
  25476. cr.sendContainerState(containerMapKey)
  25477. }
  25478. mk = uint8(dd.DecodeUint(8))
  25479. if cr != nil {
  25480. cr.sendContainerState(containerMapValue)
  25481. }
  25482. mv = int16(dd.DecodeInt(16))
  25483. if v != nil {
  25484. v[mk] = mv
  25485. }
  25486. }
  25487. }
  25488. if cr != nil {
  25489. cr.sendContainerState(containerMapEnd)
  25490. }
  25491. return v, changed
  25492. }
  25493. func (f *decFnInfo) fastpathDecMapUint8Int32R(rv reflect.Value) {
  25494. if rv.CanAddr() {
  25495. vp := rv.Addr().Interface().(*map[uint8]int32)
  25496. v, changed := fastpathTV.DecMapUint8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  25497. if changed {
  25498. *vp = v
  25499. }
  25500. } else {
  25501. v := rv.Interface().(map[uint8]int32)
  25502. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, f.d)
  25503. }
  25504. }
  25505. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, checkNil bool, d *Decoder) {
  25506. v, changed := f.DecMapUint8Int32V(*vp, checkNil, true, d)
  25507. if changed {
  25508. *vp = v
  25509. }
  25510. }
  25511. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, checkNil bool, canChange bool,
  25512. d *Decoder) (_ map[uint8]int32, changed bool) {
  25513. dd := d.d
  25514. cr := d.cr
  25515. if checkNil && dd.TryDecodeAsNil() {
  25516. if v != nil {
  25517. changed = true
  25518. }
  25519. return nil, changed
  25520. }
  25521. containerLen := dd.ReadMapStart()
  25522. if canChange && v == nil {
  25523. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25524. v = make(map[uint8]int32, xlen)
  25525. changed = true
  25526. }
  25527. var mk uint8
  25528. var mv int32
  25529. if containerLen > 0 {
  25530. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25544. for j := 0; !dd.CheckBreak(); j++ {
  25545. if cr != nil {
  25546. cr.sendContainerState(containerMapKey)
  25547. }
  25548. mk = uint8(dd.DecodeUint(8))
  25549. if cr != nil {
  25550. cr.sendContainerState(containerMapValue)
  25551. }
  25552. mv = int32(dd.DecodeInt(32))
  25553. if v != nil {
  25554. v[mk] = mv
  25555. }
  25556. }
  25557. }
  25558. if cr != nil {
  25559. cr.sendContainerState(containerMapEnd)
  25560. }
  25561. return v, changed
  25562. }
  25563. func (f *decFnInfo) fastpathDecMapUint8Int64R(rv reflect.Value) {
  25564. if rv.CanAddr() {
  25565. vp := rv.Addr().Interface().(*map[uint8]int64)
  25566. v, changed := fastpathTV.DecMapUint8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  25567. if changed {
  25568. *vp = v
  25569. }
  25570. } else {
  25571. v := rv.Interface().(map[uint8]int64)
  25572. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, f.d)
  25573. }
  25574. }
  25575. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, checkNil bool, d *Decoder) {
  25576. v, changed := f.DecMapUint8Int64V(*vp, checkNil, true, d)
  25577. if changed {
  25578. *vp = v
  25579. }
  25580. }
  25581. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, checkNil bool, canChange bool,
  25582. d *Decoder) (_ map[uint8]int64, changed bool) {
  25583. dd := d.d
  25584. cr := d.cr
  25585. if checkNil && dd.TryDecodeAsNil() {
  25586. if v != nil {
  25587. changed = true
  25588. }
  25589. return nil, changed
  25590. }
  25591. containerLen := dd.ReadMapStart()
  25592. if canChange && v == nil {
  25593. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25594. v = make(map[uint8]int64, xlen)
  25595. changed = true
  25596. }
  25597. var mk uint8
  25598. var mv int64
  25599. if containerLen > 0 {
  25600. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25614. for j := 0; !dd.CheckBreak(); j++ {
  25615. if cr != nil {
  25616. cr.sendContainerState(containerMapKey)
  25617. }
  25618. mk = uint8(dd.DecodeUint(8))
  25619. if cr != nil {
  25620. cr.sendContainerState(containerMapValue)
  25621. }
  25622. mv = dd.DecodeInt(64)
  25623. if v != nil {
  25624. v[mk] = mv
  25625. }
  25626. }
  25627. }
  25628. if cr != nil {
  25629. cr.sendContainerState(containerMapEnd)
  25630. }
  25631. return v, changed
  25632. }
  25633. func (f *decFnInfo) fastpathDecMapUint8Float32R(rv reflect.Value) {
  25634. if rv.CanAddr() {
  25635. vp := rv.Addr().Interface().(*map[uint8]float32)
  25636. v, changed := fastpathTV.DecMapUint8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  25637. if changed {
  25638. *vp = v
  25639. }
  25640. } else {
  25641. v := rv.Interface().(map[uint8]float32)
  25642. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, f.d)
  25643. }
  25644. }
  25645. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, checkNil bool, d *Decoder) {
  25646. v, changed := f.DecMapUint8Float32V(*vp, checkNil, true, d)
  25647. if changed {
  25648. *vp = v
  25649. }
  25650. }
  25651. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, checkNil bool, canChange bool,
  25652. d *Decoder) (_ map[uint8]float32, changed bool) {
  25653. dd := d.d
  25654. cr := d.cr
  25655. if checkNil && dd.TryDecodeAsNil() {
  25656. if v != nil {
  25657. changed = true
  25658. }
  25659. return nil, changed
  25660. }
  25661. containerLen := dd.ReadMapStart()
  25662. if canChange && v == nil {
  25663. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25664. v = make(map[uint8]float32, xlen)
  25665. changed = true
  25666. }
  25667. var mk uint8
  25668. var mv float32
  25669. if containerLen > 0 {
  25670. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25684. for j := 0; !dd.CheckBreak(); j++ {
  25685. if cr != nil {
  25686. cr.sendContainerState(containerMapKey)
  25687. }
  25688. mk = uint8(dd.DecodeUint(8))
  25689. if cr != nil {
  25690. cr.sendContainerState(containerMapValue)
  25691. }
  25692. mv = float32(dd.DecodeFloat(true))
  25693. if v != nil {
  25694. v[mk] = mv
  25695. }
  25696. }
  25697. }
  25698. if cr != nil {
  25699. cr.sendContainerState(containerMapEnd)
  25700. }
  25701. return v, changed
  25702. }
  25703. func (f *decFnInfo) fastpathDecMapUint8Float64R(rv reflect.Value) {
  25704. if rv.CanAddr() {
  25705. vp := rv.Addr().Interface().(*map[uint8]float64)
  25706. v, changed := fastpathTV.DecMapUint8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  25707. if changed {
  25708. *vp = v
  25709. }
  25710. } else {
  25711. v := rv.Interface().(map[uint8]float64)
  25712. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, f.d)
  25713. }
  25714. }
  25715. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, checkNil bool, d *Decoder) {
  25716. v, changed := f.DecMapUint8Float64V(*vp, checkNil, true, d)
  25717. if changed {
  25718. *vp = v
  25719. }
  25720. }
  25721. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, checkNil bool, canChange bool,
  25722. d *Decoder) (_ map[uint8]float64, changed bool) {
  25723. dd := d.d
  25724. cr := d.cr
  25725. if checkNil && dd.TryDecodeAsNil() {
  25726. if v != nil {
  25727. changed = true
  25728. }
  25729. return nil, changed
  25730. }
  25731. containerLen := dd.ReadMapStart()
  25732. if canChange && v == nil {
  25733. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25734. v = make(map[uint8]float64, xlen)
  25735. changed = true
  25736. }
  25737. var mk uint8
  25738. var mv float64
  25739. if containerLen > 0 {
  25740. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25754. for j := 0; !dd.CheckBreak(); j++ {
  25755. if cr != nil {
  25756. cr.sendContainerState(containerMapKey)
  25757. }
  25758. mk = uint8(dd.DecodeUint(8))
  25759. if cr != nil {
  25760. cr.sendContainerState(containerMapValue)
  25761. }
  25762. mv = dd.DecodeFloat(false)
  25763. if v != nil {
  25764. v[mk] = mv
  25765. }
  25766. }
  25767. }
  25768. if cr != nil {
  25769. cr.sendContainerState(containerMapEnd)
  25770. }
  25771. return v, changed
  25772. }
  25773. func (f *decFnInfo) fastpathDecMapUint8BoolR(rv reflect.Value) {
  25774. if rv.CanAddr() {
  25775. vp := rv.Addr().Interface().(*map[uint8]bool)
  25776. v, changed := fastpathTV.DecMapUint8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  25777. if changed {
  25778. *vp = v
  25779. }
  25780. } else {
  25781. v := rv.Interface().(map[uint8]bool)
  25782. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, f.d)
  25783. }
  25784. }
  25785. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, checkNil bool, d *Decoder) {
  25786. v, changed := f.DecMapUint8BoolV(*vp, checkNil, true, d)
  25787. if changed {
  25788. *vp = v
  25789. }
  25790. }
  25791. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, checkNil bool, canChange bool,
  25792. d *Decoder) (_ map[uint8]bool, changed bool) {
  25793. dd := d.d
  25794. cr := d.cr
  25795. if checkNil && dd.TryDecodeAsNil() {
  25796. if v != nil {
  25797. changed = true
  25798. }
  25799. return nil, changed
  25800. }
  25801. containerLen := dd.ReadMapStart()
  25802. if canChange && v == nil {
  25803. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  25804. v = make(map[uint8]bool, xlen)
  25805. changed = true
  25806. }
  25807. var mk uint8
  25808. var mv bool
  25809. if containerLen > 0 {
  25810. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25824. for j := 0; !dd.CheckBreak(); j++ {
  25825. if cr != nil {
  25826. cr.sendContainerState(containerMapKey)
  25827. }
  25828. mk = uint8(dd.DecodeUint(8))
  25829. if cr != nil {
  25830. cr.sendContainerState(containerMapValue)
  25831. }
  25832. mv = dd.DecodeBool()
  25833. if v != nil {
  25834. v[mk] = mv
  25835. }
  25836. }
  25837. }
  25838. if cr != nil {
  25839. cr.sendContainerState(containerMapEnd)
  25840. }
  25841. return v, changed
  25842. }
  25843. func (f *decFnInfo) fastpathDecMapUint16IntfR(rv reflect.Value) {
  25844. if rv.CanAddr() {
  25845. vp := rv.Addr().Interface().(*map[uint16]interface{})
  25846. v, changed := fastpathTV.DecMapUint16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  25847. if changed {
  25848. *vp = v
  25849. }
  25850. } else {
  25851. v := rv.Interface().(map[uint16]interface{})
  25852. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, f.d)
  25853. }
  25854. }
  25855. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, checkNil bool, d *Decoder) {
  25856. v, changed := f.DecMapUint16IntfV(*vp, checkNil, true, d)
  25857. if changed {
  25858. *vp = v
  25859. }
  25860. }
  25861. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, checkNil bool, canChange bool,
  25862. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  25863. dd := d.d
  25864. cr := d.cr
  25865. if checkNil && dd.TryDecodeAsNil() {
  25866. if v != nil {
  25867. changed = true
  25868. }
  25869. return nil, changed
  25870. }
  25871. containerLen := dd.ReadMapStart()
  25872. if canChange && v == nil {
  25873. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  25874. v = make(map[uint16]interface{}, xlen)
  25875. changed = true
  25876. }
  25877. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  25878. var mk uint16
  25879. var mv interface{}
  25880. if containerLen > 0 {
  25881. for j := 0; j < containerLen; j++ {
  25882. if cr != nil {
  25883. cr.sendContainerState(containerMapKey)
  25884. }
  25885. mk = uint16(dd.DecodeUint(16))
  25886. if cr != nil {
  25887. cr.sendContainerState(containerMapValue)
  25888. }
  25889. if mapGet {
  25890. mv = v[mk]
  25891. } else {
  25892. mv = nil
  25893. }
  25894. d.decode(&mv)
  25895. if v != nil {
  25896. v[mk] = mv
  25897. }
  25898. }
  25899. } else if containerLen < 0 {
  25900. for j := 0; !dd.CheckBreak(); j++ {
  25901. if cr != nil {
  25902. cr.sendContainerState(containerMapKey)
  25903. }
  25904. mk = uint16(dd.DecodeUint(16))
  25905. if cr != nil {
  25906. cr.sendContainerState(containerMapValue)
  25907. }
  25908. if mapGet {
  25909. mv = v[mk]
  25910. } else {
  25911. mv = nil
  25912. }
  25913. d.decode(&mv)
  25914. if v != nil {
  25915. v[mk] = mv
  25916. }
  25917. }
  25918. }
  25919. if cr != nil {
  25920. cr.sendContainerState(containerMapEnd)
  25921. }
  25922. return v, changed
  25923. }
  25924. func (f *decFnInfo) fastpathDecMapUint16StringR(rv reflect.Value) {
  25925. if rv.CanAddr() {
  25926. vp := rv.Addr().Interface().(*map[uint16]string)
  25927. v, changed := fastpathTV.DecMapUint16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  25928. if changed {
  25929. *vp = v
  25930. }
  25931. } else {
  25932. v := rv.Interface().(map[uint16]string)
  25933. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, f.d)
  25934. }
  25935. }
  25936. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, checkNil bool, d *Decoder) {
  25937. v, changed := f.DecMapUint16StringV(*vp, checkNil, true, d)
  25938. if changed {
  25939. *vp = v
  25940. }
  25941. }
  25942. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, checkNil bool, canChange bool,
  25943. d *Decoder) (_ map[uint16]string, changed bool) {
  25944. dd := d.d
  25945. cr := d.cr
  25946. if checkNil && dd.TryDecodeAsNil() {
  25947. if v != nil {
  25948. changed = true
  25949. }
  25950. return nil, changed
  25951. }
  25952. containerLen := dd.ReadMapStart()
  25953. if canChange && v == nil {
  25954. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  25955. v = make(map[uint16]string, xlen)
  25956. changed = true
  25957. }
  25958. var mk uint16
  25959. var mv string
  25960. if containerLen > 0 {
  25961. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  25975. for j := 0; !dd.CheckBreak(); j++ {
  25976. if cr != nil {
  25977. cr.sendContainerState(containerMapKey)
  25978. }
  25979. mk = uint16(dd.DecodeUint(16))
  25980. if cr != nil {
  25981. cr.sendContainerState(containerMapValue)
  25982. }
  25983. mv = dd.DecodeString()
  25984. if v != nil {
  25985. v[mk] = mv
  25986. }
  25987. }
  25988. }
  25989. if cr != nil {
  25990. cr.sendContainerState(containerMapEnd)
  25991. }
  25992. return v, changed
  25993. }
  25994. func (f *decFnInfo) fastpathDecMapUint16UintR(rv reflect.Value) {
  25995. if rv.CanAddr() {
  25996. vp := rv.Addr().Interface().(*map[uint16]uint)
  25997. v, changed := fastpathTV.DecMapUint16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  25998. if changed {
  25999. *vp = v
  26000. }
  26001. } else {
  26002. v := rv.Interface().(map[uint16]uint)
  26003. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, f.d)
  26004. }
  26005. }
  26006. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, checkNil bool, d *Decoder) {
  26007. v, changed := f.DecMapUint16UintV(*vp, checkNil, true, d)
  26008. if changed {
  26009. *vp = v
  26010. }
  26011. }
  26012. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, checkNil bool, canChange bool,
  26013. d *Decoder) (_ map[uint16]uint, changed bool) {
  26014. dd := d.d
  26015. cr := d.cr
  26016. if checkNil && dd.TryDecodeAsNil() {
  26017. if v != nil {
  26018. changed = true
  26019. }
  26020. return nil, changed
  26021. }
  26022. containerLen := dd.ReadMapStart()
  26023. if canChange && v == nil {
  26024. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26025. v = make(map[uint16]uint, xlen)
  26026. changed = true
  26027. }
  26028. var mk uint16
  26029. var mv uint
  26030. if containerLen > 0 {
  26031. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26045. for j := 0; !dd.CheckBreak(); j++ {
  26046. if cr != nil {
  26047. cr.sendContainerState(containerMapKey)
  26048. }
  26049. mk = uint16(dd.DecodeUint(16))
  26050. if cr != nil {
  26051. cr.sendContainerState(containerMapValue)
  26052. }
  26053. mv = uint(dd.DecodeUint(uintBitsize))
  26054. if v != nil {
  26055. v[mk] = mv
  26056. }
  26057. }
  26058. }
  26059. if cr != nil {
  26060. cr.sendContainerState(containerMapEnd)
  26061. }
  26062. return v, changed
  26063. }
  26064. func (f *decFnInfo) fastpathDecMapUint16Uint8R(rv reflect.Value) {
  26065. if rv.CanAddr() {
  26066. vp := rv.Addr().Interface().(*map[uint16]uint8)
  26067. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  26068. if changed {
  26069. *vp = v
  26070. }
  26071. } else {
  26072. v := rv.Interface().(map[uint16]uint8)
  26073. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  26074. }
  26075. }
  26076. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, checkNil bool, d *Decoder) {
  26077. v, changed := f.DecMapUint16Uint8V(*vp, checkNil, true, d)
  26078. if changed {
  26079. *vp = v
  26080. }
  26081. }
  26082. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, checkNil bool, canChange bool,
  26083. d *Decoder) (_ map[uint16]uint8, changed bool) {
  26084. dd := d.d
  26085. cr := d.cr
  26086. if checkNil && dd.TryDecodeAsNil() {
  26087. if v != nil {
  26088. changed = true
  26089. }
  26090. return nil, changed
  26091. }
  26092. containerLen := dd.ReadMapStart()
  26093. if canChange && v == nil {
  26094. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26095. v = make(map[uint16]uint8, xlen)
  26096. changed = true
  26097. }
  26098. var mk uint16
  26099. var mv uint8
  26100. if containerLen > 0 {
  26101. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26115. for j := 0; !dd.CheckBreak(); j++ {
  26116. if cr != nil {
  26117. cr.sendContainerState(containerMapKey)
  26118. }
  26119. mk = uint16(dd.DecodeUint(16))
  26120. if cr != nil {
  26121. cr.sendContainerState(containerMapValue)
  26122. }
  26123. mv = uint8(dd.DecodeUint(8))
  26124. if v != nil {
  26125. v[mk] = mv
  26126. }
  26127. }
  26128. }
  26129. if cr != nil {
  26130. cr.sendContainerState(containerMapEnd)
  26131. }
  26132. return v, changed
  26133. }
  26134. func (f *decFnInfo) fastpathDecMapUint16Uint16R(rv reflect.Value) {
  26135. if rv.CanAddr() {
  26136. vp := rv.Addr().Interface().(*map[uint16]uint16)
  26137. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  26138. if changed {
  26139. *vp = v
  26140. }
  26141. } else {
  26142. v := rv.Interface().(map[uint16]uint16)
  26143. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  26144. }
  26145. }
  26146. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, checkNil bool, d *Decoder) {
  26147. v, changed := f.DecMapUint16Uint16V(*vp, checkNil, true, d)
  26148. if changed {
  26149. *vp = v
  26150. }
  26151. }
  26152. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, checkNil bool, canChange bool,
  26153. d *Decoder) (_ map[uint16]uint16, changed bool) {
  26154. dd := d.d
  26155. cr := d.cr
  26156. if checkNil && dd.TryDecodeAsNil() {
  26157. if v != nil {
  26158. changed = true
  26159. }
  26160. return nil, changed
  26161. }
  26162. containerLen := dd.ReadMapStart()
  26163. if canChange && v == nil {
  26164. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  26165. v = make(map[uint16]uint16, xlen)
  26166. changed = true
  26167. }
  26168. var mk uint16
  26169. var mv uint16
  26170. if containerLen > 0 {
  26171. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26185. for j := 0; !dd.CheckBreak(); j++ {
  26186. if cr != nil {
  26187. cr.sendContainerState(containerMapKey)
  26188. }
  26189. mk = uint16(dd.DecodeUint(16))
  26190. if cr != nil {
  26191. cr.sendContainerState(containerMapValue)
  26192. }
  26193. mv = uint16(dd.DecodeUint(16))
  26194. if v != nil {
  26195. v[mk] = mv
  26196. }
  26197. }
  26198. }
  26199. if cr != nil {
  26200. cr.sendContainerState(containerMapEnd)
  26201. }
  26202. return v, changed
  26203. }
  26204. func (f *decFnInfo) fastpathDecMapUint16Uint32R(rv reflect.Value) {
  26205. if rv.CanAddr() {
  26206. vp := rv.Addr().Interface().(*map[uint16]uint32)
  26207. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  26208. if changed {
  26209. *vp = v
  26210. }
  26211. } else {
  26212. v := rv.Interface().(map[uint16]uint32)
  26213. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  26214. }
  26215. }
  26216. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, checkNil bool, d *Decoder) {
  26217. v, changed := f.DecMapUint16Uint32V(*vp, checkNil, true, d)
  26218. if changed {
  26219. *vp = v
  26220. }
  26221. }
  26222. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, checkNil bool, canChange bool,
  26223. d *Decoder) (_ map[uint16]uint32, changed bool) {
  26224. dd := d.d
  26225. cr := d.cr
  26226. if checkNil && dd.TryDecodeAsNil() {
  26227. if v != nil {
  26228. changed = true
  26229. }
  26230. return nil, changed
  26231. }
  26232. containerLen := dd.ReadMapStart()
  26233. if canChange && v == nil {
  26234. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26235. v = make(map[uint16]uint32, xlen)
  26236. changed = true
  26237. }
  26238. var mk uint16
  26239. var mv uint32
  26240. if containerLen > 0 {
  26241. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26255. for j := 0; !dd.CheckBreak(); j++ {
  26256. if cr != nil {
  26257. cr.sendContainerState(containerMapKey)
  26258. }
  26259. mk = uint16(dd.DecodeUint(16))
  26260. if cr != nil {
  26261. cr.sendContainerState(containerMapValue)
  26262. }
  26263. mv = uint32(dd.DecodeUint(32))
  26264. if v != nil {
  26265. v[mk] = mv
  26266. }
  26267. }
  26268. }
  26269. if cr != nil {
  26270. cr.sendContainerState(containerMapEnd)
  26271. }
  26272. return v, changed
  26273. }
  26274. func (f *decFnInfo) fastpathDecMapUint16Uint64R(rv reflect.Value) {
  26275. if rv.CanAddr() {
  26276. vp := rv.Addr().Interface().(*map[uint16]uint64)
  26277. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  26278. if changed {
  26279. *vp = v
  26280. }
  26281. } else {
  26282. v := rv.Interface().(map[uint16]uint64)
  26283. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  26284. }
  26285. }
  26286. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, checkNil bool, d *Decoder) {
  26287. v, changed := f.DecMapUint16Uint64V(*vp, checkNil, true, d)
  26288. if changed {
  26289. *vp = v
  26290. }
  26291. }
  26292. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, checkNil bool, canChange bool,
  26293. d *Decoder) (_ map[uint16]uint64, changed bool) {
  26294. dd := d.d
  26295. cr := d.cr
  26296. if checkNil && dd.TryDecodeAsNil() {
  26297. if v != nil {
  26298. changed = true
  26299. }
  26300. return nil, changed
  26301. }
  26302. containerLen := dd.ReadMapStart()
  26303. if canChange && v == nil {
  26304. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26305. v = make(map[uint16]uint64, xlen)
  26306. changed = true
  26307. }
  26308. var mk uint16
  26309. var mv uint64
  26310. if containerLen > 0 {
  26311. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26325. for j := 0; !dd.CheckBreak(); j++ {
  26326. if cr != nil {
  26327. cr.sendContainerState(containerMapKey)
  26328. }
  26329. mk = uint16(dd.DecodeUint(16))
  26330. if cr != nil {
  26331. cr.sendContainerState(containerMapValue)
  26332. }
  26333. mv = dd.DecodeUint(64)
  26334. if v != nil {
  26335. v[mk] = mv
  26336. }
  26337. }
  26338. }
  26339. if cr != nil {
  26340. cr.sendContainerState(containerMapEnd)
  26341. }
  26342. return v, changed
  26343. }
  26344. func (f *decFnInfo) fastpathDecMapUint16UintptrR(rv reflect.Value) {
  26345. if rv.CanAddr() {
  26346. vp := rv.Addr().Interface().(*map[uint16]uintptr)
  26347. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  26348. if changed {
  26349. *vp = v
  26350. }
  26351. } else {
  26352. v := rv.Interface().(map[uint16]uintptr)
  26353. fastpathTV.DecMapUint16UintptrV(v, fastpathCheckNilFalse, false, f.d)
  26354. }
  26355. }
  26356. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, checkNil bool, d *Decoder) {
  26357. v, changed := f.DecMapUint16UintptrV(*vp, checkNil, true, d)
  26358. if changed {
  26359. *vp = v
  26360. }
  26361. }
  26362. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, checkNil bool, canChange bool,
  26363. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  26364. dd := d.d
  26365. cr := d.cr
  26366. if checkNil && dd.TryDecodeAsNil() {
  26367. if v != nil {
  26368. changed = true
  26369. }
  26370. return nil, changed
  26371. }
  26372. containerLen := dd.ReadMapStart()
  26373. if canChange && v == nil {
  26374. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26375. v = make(map[uint16]uintptr, xlen)
  26376. changed = true
  26377. }
  26378. var mk uint16
  26379. var mv uintptr
  26380. if containerLen > 0 {
  26381. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26395. for j := 0; !dd.CheckBreak(); j++ {
  26396. if cr != nil {
  26397. cr.sendContainerState(containerMapKey)
  26398. }
  26399. mk = uint16(dd.DecodeUint(16))
  26400. if cr != nil {
  26401. cr.sendContainerState(containerMapValue)
  26402. }
  26403. mv = uintptr(dd.DecodeUint(uintBitsize))
  26404. if v != nil {
  26405. v[mk] = mv
  26406. }
  26407. }
  26408. }
  26409. if cr != nil {
  26410. cr.sendContainerState(containerMapEnd)
  26411. }
  26412. return v, changed
  26413. }
  26414. func (f *decFnInfo) fastpathDecMapUint16IntR(rv reflect.Value) {
  26415. if rv.CanAddr() {
  26416. vp := rv.Addr().Interface().(*map[uint16]int)
  26417. v, changed := fastpathTV.DecMapUint16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  26418. if changed {
  26419. *vp = v
  26420. }
  26421. } else {
  26422. v := rv.Interface().(map[uint16]int)
  26423. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, f.d)
  26424. }
  26425. }
  26426. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, checkNil bool, d *Decoder) {
  26427. v, changed := f.DecMapUint16IntV(*vp, checkNil, true, d)
  26428. if changed {
  26429. *vp = v
  26430. }
  26431. }
  26432. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, checkNil bool, canChange bool,
  26433. d *Decoder) (_ map[uint16]int, changed bool) {
  26434. dd := d.d
  26435. cr := d.cr
  26436. if checkNil && dd.TryDecodeAsNil() {
  26437. if v != nil {
  26438. changed = true
  26439. }
  26440. return nil, changed
  26441. }
  26442. containerLen := dd.ReadMapStart()
  26443. if canChange && v == nil {
  26444. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26445. v = make(map[uint16]int, xlen)
  26446. changed = true
  26447. }
  26448. var mk uint16
  26449. var mv int
  26450. if containerLen > 0 {
  26451. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26465. for j := 0; !dd.CheckBreak(); j++ {
  26466. if cr != nil {
  26467. cr.sendContainerState(containerMapKey)
  26468. }
  26469. mk = uint16(dd.DecodeUint(16))
  26470. if cr != nil {
  26471. cr.sendContainerState(containerMapValue)
  26472. }
  26473. mv = int(dd.DecodeInt(intBitsize))
  26474. if v != nil {
  26475. v[mk] = mv
  26476. }
  26477. }
  26478. }
  26479. if cr != nil {
  26480. cr.sendContainerState(containerMapEnd)
  26481. }
  26482. return v, changed
  26483. }
  26484. func (f *decFnInfo) fastpathDecMapUint16Int8R(rv reflect.Value) {
  26485. if rv.CanAddr() {
  26486. vp := rv.Addr().Interface().(*map[uint16]int8)
  26487. v, changed := fastpathTV.DecMapUint16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  26488. if changed {
  26489. *vp = v
  26490. }
  26491. } else {
  26492. v := rv.Interface().(map[uint16]int8)
  26493. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, f.d)
  26494. }
  26495. }
  26496. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, checkNil bool, d *Decoder) {
  26497. v, changed := f.DecMapUint16Int8V(*vp, checkNil, true, d)
  26498. if changed {
  26499. *vp = v
  26500. }
  26501. }
  26502. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, checkNil bool, canChange bool,
  26503. d *Decoder) (_ map[uint16]int8, changed bool) {
  26504. dd := d.d
  26505. cr := d.cr
  26506. if checkNil && dd.TryDecodeAsNil() {
  26507. if v != nil {
  26508. changed = true
  26509. }
  26510. return nil, changed
  26511. }
  26512. containerLen := dd.ReadMapStart()
  26513. if canChange && v == nil {
  26514. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26515. v = make(map[uint16]int8, xlen)
  26516. changed = true
  26517. }
  26518. var mk uint16
  26519. var mv int8
  26520. if containerLen > 0 {
  26521. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26535. for j := 0; !dd.CheckBreak(); j++ {
  26536. if cr != nil {
  26537. cr.sendContainerState(containerMapKey)
  26538. }
  26539. mk = uint16(dd.DecodeUint(16))
  26540. if cr != nil {
  26541. cr.sendContainerState(containerMapValue)
  26542. }
  26543. mv = int8(dd.DecodeInt(8))
  26544. if v != nil {
  26545. v[mk] = mv
  26546. }
  26547. }
  26548. }
  26549. if cr != nil {
  26550. cr.sendContainerState(containerMapEnd)
  26551. }
  26552. return v, changed
  26553. }
  26554. func (f *decFnInfo) fastpathDecMapUint16Int16R(rv reflect.Value) {
  26555. if rv.CanAddr() {
  26556. vp := rv.Addr().Interface().(*map[uint16]int16)
  26557. v, changed := fastpathTV.DecMapUint16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  26558. if changed {
  26559. *vp = v
  26560. }
  26561. } else {
  26562. v := rv.Interface().(map[uint16]int16)
  26563. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, f.d)
  26564. }
  26565. }
  26566. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, checkNil bool, d *Decoder) {
  26567. v, changed := f.DecMapUint16Int16V(*vp, checkNil, true, d)
  26568. if changed {
  26569. *vp = v
  26570. }
  26571. }
  26572. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, checkNil bool, canChange bool,
  26573. d *Decoder) (_ map[uint16]int16, changed bool) {
  26574. dd := d.d
  26575. cr := d.cr
  26576. if checkNil && dd.TryDecodeAsNil() {
  26577. if v != nil {
  26578. changed = true
  26579. }
  26580. return nil, changed
  26581. }
  26582. containerLen := dd.ReadMapStart()
  26583. if canChange && v == nil {
  26584. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  26585. v = make(map[uint16]int16, xlen)
  26586. changed = true
  26587. }
  26588. var mk uint16
  26589. var mv int16
  26590. if containerLen > 0 {
  26591. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26605. for j := 0; !dd.CheckBreak(); j++ {
  26606. if cr != nil {
  26607. cr.sendContainerState(containerMapKey)
  26608. }
  26609. mk = uint16(dd.DecodeUint(16))
  26610. if cr != nil {
  26611. cr.sendContainerState(containerMapValue)
  26612. }
  26613. mv = int16(dd.DecodeInt(16))
  26614. if v != nil {
  26615. v[mk] = mv
  26616. }
  26617. }
  26618. }
  26619. if cr != nil {
  26620. cr.sendContainerState(containerMapEnd)
  26621. }
  26622. return v, changed
  26623. }
  26624. func (f *decFnInfo) fastpathDecMapUint16Int32R(rv reflect.Value) {
  26625. if rv.CanAddr() {
  26626. vp := rv.Addr().Interface().(*map[uint16]int32)
  26627. v, changed := fastpathTV.DecMapUint16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  26628. if changed {
  26629. *vp = v
  26630. }
  26631. } else {
  26632. v := rv.Interface().(map[uint16]int32)
  26633. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, f.d)
  26634. }
  26635. }
  26636. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, checkNil bool, d *Decoder) {
  26637. v, changed := f.DecMapUint16Int32V(*vp, checkNil, true, d)
  26638. if changed {
  26639. *vp = v
  26640. }
  26641. }
  26642. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, checkNil bool, canChange bool,
  26643. d *Decoder) (_ map[uint16]int32, changed bool) {
  26644. dd := d.d
  26645. cr := d.cr
  26646. if checkNil && dd.TryDecodeAsNil() {
  26647. if v != nil {
  26648. changed = true
  26649. }
  26650. return nil, changed
  26651. }
  26652. containerLen := dd.ReadMapStart()
  26653. if canChange && v == nil {
  26654. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26655. v = make(map[uint16]int32, xlen)
  26656. changed = true
  26657. }
  26658. var mk uint16
  26659. var mv int32
  26660. if containerLen > 0 {
  26661. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26675. for j := 0; !dd.CheckBreak(); j++ {
  26676. if cr != nil {
  26677. cr.sendContainerState(containerMapKey)
  26678. }
  26679. mk = uint16(dd.DecodeUint(16))
  26680. if cr != nil {
  26681. cr.sendContainerState(containerMapValue)
  26682. }
  26683. mv = int32(dd.DecodeInt(32))
  26684. if v != nil {
  26685. v[mk] = mv
  26686. }
  26687. }
  26688. }
  26689. if cr != nil {
  26690. cr.sendContainerState(containerMapEnd)
  26691. }
  26692. return v, changed
  26693. }
  26694. func (f *decFnInfo) fastpathDecMapUint16Int64R(rv reflect.Value) {
  26695. if rv.CanAddr() {
  26696. vp := rv.Addr().Interface().(*map[uint16]int64)
  26697. v, changed := fastpathTV.DecMapUint16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  26698. if changed {
  26699. *vp = v
  26700. }
  26701. } else {
  26702. v := rv.Interface().(map[uint16]int64)
  26703. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, f.d)
  26704. }
  26705. }
  26706. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, checkNil bool, d *Decoder) {
  26707. v, changed := f.DecMapUint16Int64V(*vp, checkNil, true, d)
  26708. if changed {
  26709. *vp = v
  26710. }
  26711. }
  26712. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, checkNil bool, canChange bool,
  26713. d *Decoder) (_ map[uint16]int64, changed bool) {
  26714. dd := d.d
  26715. cr := d.cr
  26716. if checkNil && dd.TryDecodeAsNil() {
  26717. if v != nil {
  26718. changed = true
  26719. }
  26720. return nil, changed
  26721. }
  26722. containerLen := dd.ReadMapStart()
  26723. if canChange && v == nil {
  26724. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26725. v = make(map[uint16]int64, xlen)
  26726. changed = true
  26727. }
  26728. var mk uint16
  26729. var mv int64
  26730. if containerLen > 0 {
  26731. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26745. for j := 0; !dd.CheckBreak(); j++ {
  26746. if cr != nil {
  26747. cr.sendContainerState(containerMapKey)
  26748. }
  26749. mk = uint16(dd.DecodeUint(16))
  26750. if cr != nil {
  26751. cr.sendContainerState(containerMapValue)
  26752. }
  26753. mv = dd.DecodeInt(64)
  26754. if v != nil {
  26755. v[mk] = mv
  26756. }
  26757. }
  26758. }
  26759. if cr != nil {
  26760. cr.sendContainerState(containerMapEnd)
  26761. }
  26762. return v, changed
  26763. }
  26764. func (f *decFnInfo) fastpathDecMapUint16Float32R(rv reflect.Value) {
  26765. if rv.CanAddr() {
  26766. vp := rv.Addr().Interface().(*map[uint16]float32)
  26767. v, changed := fastpathTV.DecMapUint16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  26768. if changed {
  26769. *vp = v
  26770. }
  26771. } else {
  26772. v := rv.Interface().(map[uint16]float32)
  26773. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, f.d)
  26774. }
  26775. }
  26776. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, checkNil bool, d *Decoder) {
  26777. v, changed := f.DecMapUint16Float32V(*vp, checkNil, true, d)
  26778. if changed {
  26779. *vp = v
  26780. }
  26781. }
  26782. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, checkNil bool, canChange bool,
  26783. d *Decoder) (_ map[uint16]float32, changed bool) {
  26784. dd := d.d
  26785. cr := d.cr
  26786. if checkNil && dd.TryDecodeAsNil() {
  26787. if v != nil {
  26788. changed = true
  26789. }
  26790. return nil, changed
  26791. }
  26792. containerLen := dd.ReadMapStart()
  26793. if canChange && v == nil {
  26794. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26795. v = make(map[uint16]float32, xlen)
  26796. changed = true
  26797. }
  26798. var mk uint16
  26799. var mv float32
  26800. if containerLen > 0 {
  26801. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26815. for j := 0; !dd.CheckBreak(); j++ {
  26816. if cr != nil {
  26817. cr.sendContainerState(containerMapKey)
  26818. }
  26819. mk = uint16(dd.DecodeUint(16))
  26820. if cr != nil {
  26821. cr.sendContainerState(containerMapValue)
  26822. }
  26823. mv = float32(dd.DecodeFloat(true))
  26824. if v != nil {
  26825. v[mk] = mv
  26826. }
  26827. }
  26828. }
  26829. if cr != nil {
  26830. cr.sendContainerState(containerMapEnd)
  26831. }
  26832. return v, changed
  26833. }
  26834. func (f *decFnInfo) fastpathDecMapUint16Float64R(rv reflect.Value) {
  26835. if rv.CanAddr() {
  26836. vp := rv.Addr().Interface().(*map[uint16]float64)
  26837. v, changed := fastpathTV.DecMapUint16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  26838. if changed {
  26839. *vp = v
  26840. }
  26841. } else {
  26842. v := rv.Interface().(map[uint16]float64)
  26843. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, f.d)
  26844. }
  26845. }
  26846. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, checkNil bool, d *Decoder) {
  26847. v, changed := f.DecMapUint16Float64V(*vp, checkNil, true, d)
  26848. if changed {
  26849. *vp = v
  26850. }
  26851. }
  26852. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, checkNil bool, canChange bool,
  26853. d *Decoder) (_ map[uint16]float64, changed bool) {
  26854. dd := d.d
  26855. cr := d.cr
  26856. if checkNil && dd.TryDecodeAsNil() {
  26857. if v != nil {
  26858. changed = true
  26859. }
  26860. return nil, changed
  26861. }
  26862. containerLen := dd.ReadMapStart()
  26863. if canChange && v == nil {
  26864. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26865. v = make(map[uint16]float64, xlen)
  26866. changed = true
  26867. }
  26868. var mk uint16
  26869. var mv float64
  26870. if containerLen > 0 {
  26871. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26885. for j := 0; !dd.CheckBreak(); j++ {
  26886. if cr != nil {
  26887. cr.sendContainerState(containerMapKey)
  26888. }
  26889. mk = uint16(dd.DecodeUint(16))
  26890. if cr != nil {
  26891. cr.sendContainerState(containerMapValue)
  26892. }
  26893. mv = dd.DecodeFloat(false)
  26894. if v != nil {
  26895. v[mk] = mv
  26896. }
  26897. }
  26898. }
  26899. if cr != nil {
  26900. cr.sendContainerState(containerMapEnd)
  26901. }
  26902. return v, changed
  26903. }
  26904. func (f *decFnInfo) fastpathDecMapUint16BoolR(rv reflect.Value) {
  26905. if rv.CanAddr() {
  26906. vp := rv.Addr().Interface().(*map[uint16]bool)
  26907. v, changed := fastpathTV.DecMapUint16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  26908. if changed {
  26909. *vp = v
  26910. }
  26911. } else {
  26912. v := rv.Interface().(map[uint16]bool)
  26913. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, f.d)
  26914. }
  26915. }
  26916. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, checkNil bool, d *Decoder) {
  26917. v, changed := f.DecMapUint16BoolV(*vp, checkNil, true, d)
  26918. if changed {
  26919. *vp = v
  26920. }
  26921. }
  26922. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, checkNil bool, canChange bool,
  26923. d *Decoder) (_ map[uint16]bool, changed bool) {
  26924. dd := d.d
  26925. cr := d.cr
  26926. if checkNil && dd.TryDecodeAsNil() {
  26927. if v != nil {
  26928. changed = true
  26929. }
  26930. return nil, changed
  26931. }
  26932. containerLen := dd.ReadMapStart()
  26933. if canChange && v == nil {
  26934. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  26935. v = make(map[uint16]bool, xlen)
  26936. changed = true
  26937. }
  26938. var mk uint16
  26939. var mv bool
  26940. if containerLen > 0 {
  26941. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  26955. for j := 0; !dd.CheckBreak(); j++ {
  26956. if cr != nil {
  26957. cr.sendContainerState(containerMapKey)
  26958. }
  26959. mk = uint16(dd.DecodeUint(16))
  26960. if cr != nil {
  26961. cr.sendContainerState(containerMapValue)
  26962. }
  26963. mv = dd.DecodeBool()
  26964. if v != nil {
  26965. v[mk] = mv
  26966. }
  26967. }
  26968. }
  26969. if cr != nil {
  26970. cr.sendContainerState(containerMapEnd)
  26971. }
  26972. return v, changed
  26973. }
  26974. func (f *decFnInfo) fastpathDecMapUint32IntfR(rv reflect.Value) {
  26975. if rv.CanAddr() {
  26976. vp := rv.Addr().Interface().(*map[uint32]interface{})
  26977. v, changed := fastpathTV.DecMapUint32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  26978. if changed {
  26979. *vp = v
  26980. }
  26981. } else {
  26982. v := rv.Interface().(map[uint32]interface{})
  26983. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, f.d)
  26984. }
  26985. }
  26986. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, checkNil bool, d *Decoder) {
  26987. v, changed := f.DecMapUint32IntfV(*vp, checkNil, true, d)
  26988. if changed {
  26989. *vp = v
  26990. }
  26991. }
  26992. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, checkNil bool, canChange bool,
  26993. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  26994. dd := d.d
  26995. cr := d.cr
  26996. if checkNil && dd.TryDecodeAsNil() {
  26997. if v != nil {
  26998. changed = true
  26999. }
  27000. return nil, changed
  27001. }
  27002. containerLen := dd.ReadMapStart()
  27003. if canChange && v == nil {
  27004. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  27005. v = make(map[uint32]interface{}, xlen)
  27006. changed = true
  27007. }
  27008. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  27009. var mk uint32
  27010. var mv interface{}
  27011. if containerLen > 0 {
  27012. for j := 0; j < containerLen; j++ {
  27013. if cr != nil {
  27014. cr.sendContainerState(containerMapKey)
  27015. }
  27016. mk = uint32(dd.DecodeUint(32))
  27017. if cr != nil {
  27018. cr.sendContainerState(containerMapValue)
  27019. }
  27020. if mapGet {
  27021. mv = v[mk]
  27022. } else {
  27023. mv = nil
  27024. }
  27025. d.decode(&mv)
  27026. if v != nil {
  27027. v[mk] = mv
  27028. }
  27029. }
  27030. } else if containerLen < 0 {
  27031. for j := 0; !dd.CheckBreak(); j++ {
  27032. if cr != nil {
  27033. cr.sendContainerState(containerMapKey)
  27034. }
  27035. mk = uint32(dd.DecodeUint(32))
  27036. if cr != nil {
  27037. cr.sendContainerState(containerMapValue)
  27038. }
  27039. if mapGet {
  27040. mv = v[mk]
  27041. } else {
  27042. mv = nil
  27043. }
  27044. d.decode(&mv)
  27045. if v != nil {
  27046. v[mk] = mv
  27047. }
  27048. }
  27049. }
  27050. if cr != nil {
  27051. cr.sendContainerState(containerMapEnd)
  27052. }
  27053. return v, changed
  27054. }
  27055. func (f *decFnInfo) fastpathDecMapUint32StringR(rv reflect.Value) {
  27056. if rv.CanAddr() {
  27057. vp := rv.Addr().Interface().(*map[uint32]string)
  27058. v, changed := fastpathTV.DecMapUint32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  27059. if changed {
  27060. *vp = v
  27061. }
  27062. } else {
  27063. v := rv.Interface().(map[uint32]string)
  27064. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, f.d)
  27065. }
  27066. }
  27067. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, checkNil bool, d *Decoder) {
  27068. v, changed := f.DecMapUint32StringV(*vp, checkNil, true, d)
  27069. if changed {
  27070. *vp = v
  27071. }
  27072. }
  27073. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, checkNil bool, canChange bool,
  27074. d *Decoder) (_ map[uint32]string, changed bool) {
  27075. dd := d.d
  27076. cr := d.cr
  27077. if checkNil && dd.TryDecodeAsNil() {
  27078. if v != nil {
  27079. changed = true
  27080. }
  27081. return nil, changed
  27082. }
  27083. containerLen := dd.ReadMapStart()
  27084. if canChange && v == nil {
  27085. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  27086. v = make(map[uint32]string, xlen)
  27087. changed = true
  27088. }
  27089. var mk uint32
  27090. var mv string
  27091. if containerLen > 0 {
  27092. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27106. for j := 0; !dd.CheckBreak(); j++ {
  27107. if cr != nil {
  27108. cr.sendContainerState(containerMapKey)
  27109. }
  27110. mk = uint32(dd.DecodeUint(32))
  27111. if cr != nil {
  27112. cr.sendContainerState(containerMapValue)
  27113. }
  27114. mv = dd.DecodeString()
  27115. if v != nil {
  27116. v[mk] = mv
  27117. }
  27118. }
  27119. }
  27120. if cr != nil {
  27121. cr.sendContainerState(containerMapEnd)
  27122. }
  27123. return v, changed
  27124. }
  27125. func (f *decFnInfo) fastpathDecMapUint32UintR(rv reflect.Value) {
  27126. if rv.CanAddr() {
  27127. vp := rv.Addr().Interface().(*map[uint32]uint)
  27128. v, changed := fastpathTV.DecMapUint32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  27129. if changed {
  27130. *vp = v
  27131. }
  27132. } else {
  27133. v := rv.Interface().(map[uint32]uint)
  27134. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, f.d)
  27135. }
  27136. }
  27137. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, checkNil bool, d *Decoder) {
  27138. v, changed := f.DecMapUint32UintV(*vp, checkNil, true, d)
  27139. if changed {
  27140. *vp = v
  27141. }
  27142. }
  27143. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, checkNil bool, canChange bool,
  27144. d *Decoder) (_ map[uint32]uint, changed bool) {
  27145. dd := d.d
  27146. cr := d.cr
  27147. if checkNil && dd.TryDecodeAsNil() {
  27148. if v != nil {
  27149. changed = true
  27150. }
  27151. return nil, changed
  27152. }
  27153. containerLen := dd.ReadMapStart()
  27154. if canChange && v == nil {
  27155. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27156. v = make(map[uint32]uint, xlen)
  27157. changed = true
  27158. }
  27159. var mk uint32
  27160. var mv uint
  27161. if containerLen > 0 {
  27162. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27176. for j := 0; !dd.CheckBreak(); j++ {
  27177. if cr != nil {
  27178. cr.sendContainerState(containerMapKey)
  27179. }
  27180. mk = uint32(dd.DecodeUint(32))
  27181. if cr != nil {
  27182. cr.sendContainerState(containerMapValue)
  27183. }
  27184. mv = uint(dd.DecodeUint(uintBitsize))
  27185. if v != nil {
  27186. v[mk] = mv
  27187. }
  27188. }
  27189. }
  27190. if cr != nil {
  27191. cr.sendContainerState(containerMapEnd)
  27192. }
  27193. return v, changed
  27194. }
  27195. func (f *decFnInfo) fastpathDecMapUint32Uint8R(rv reflect.Value) {
  27196. if rv.CanAddr() {
  27197. vp := rv.Addr().Interface().(*map[uint32]uint8)
  27198. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  27199. if changed {
  27200. *vp = v
  27201. }
  27202. } else {
  27203. v := rv.Interface().(map[uint32]uint8)
  27204. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  27205. }
  27206. }
  27207. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, checkNil bool, d *Decoder) {
  27208. v, changed := f.DecMapUint32Uint8V(*vp, checkNil, true, d)
  27209. if changed {
  27210. *vp = v
  27211. }
  27212. }
  27213. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, checkNil bool, canChange bool,
  27214. d *Decoder) (_ map[uint32]uint8, changed bool) {
  27215. dd := d.d
  27216. cr := d.cr
  27217. if checkNil && dd.TryDecodeAsNil() {
  27218. if v != nil {
  27219. changed = true
  27220. }
  27221. return nil, changed
  27222. }
  27223. containerLen := dd.ReadMapStart()
  27224. if canChange && v == nil {
  27225. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27226. v = make(map[uint32]uint8, xlen)
  27227. changed = true
  27228. }
  27229. var mk uint32
  27230. var mv uint8
  27231. if containerLen > 0 {
  27232. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27246. for j := 0; !dd.CheckBreak(); j++ {
  27247. if cr != nil {
  27248. cr.sendContainerState(containerMapKey)
  27249. }
  27250. mk = uint32(dd.DecodeUint(32))
  27251. if cr != nil {
  27252. cr.sendContainerState(containerMapValue)
  27253. }
  27254. mv = uint8(dd.DecodeUint(8))
  27255. if v != nil {
  27256. v[mk] = mv
  27257. }
  27258. }
  27259. }
  27260. if cr != nil {
  27261. cr.sendContainerState(containerMapEnd)
  27262. }
  27263. return v, changed
  27264. }
  27265. func (f *decFnInfo) fastpathDecMapUint32Uint16R(rv reflect.Value) {
  27266. if rv.CanAddr() {
  27267. vp := rv.Addr().Interface().(*map[uint32]uint16)
  27268. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  27269. if changed {
  27270. *vp = v
  27271. }
  27272. } else {
  27273. v := rv.Interface().(map[uint32]uint16)
  27274. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  27275. }
  27276. }
  27277. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, checkNil bool, d *Decoder) {
  27278. v, changed := f.DecMapUint32Uint16V(*vp, checkNil, true, d)
  27279. if changed {
  27280. *vp = v
  27281. }
  27282. }
  27283. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, checkNil bool, canChange bool,
  27284. d *Decoder) (_ map[uint32]uint16, changed bool) {
  27285. dd := d.d
  27286. cr := d.cr
  27287. if checkNil && dd.TryDecodeAsNil() {
  27288. if v != nil {
  27289. changed = true
  27290. }
  27291. return nil, changed
  27292. }
  27293. containerLen := dd.ReadMapStart()
  27294. if canChange && v == nil {
  27295. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27296. v = make(map[uint32]uint16, xlen)
  27297. changed = true
  27298. }
  27299. var mk uint32
  27300. var mv uint16
  27301. if containerLen > 0 {
  27302. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27316. for j := 0; !dd.CheckBreak(); j++ {
  27317. if cr != nil {
  27318. cr.sendContainerState(containerMapKey)
  27319. }
  27320. mk = uint32(dd.DecodeUint(32))
  27321. if cr != nil {
  27322. cr.sendContainerState(containerMapValue)
  27323. }
  27324. mv = uint16(dd.DecodeUint(16))
  27325. if v != nil {
  27326. v[mk] = mv
  27327. }
  27328. }
  27329. }
  27330. if cr != nil {
  27331. cr.sendContainerState(containerMapEnd)
  27332. }
  27333. return v, changed
  27334. }
  27335. func (f *decFnInfo) fastpathDecMapUint32Uint32R(rv reflect.Value) {
  27336. if rv.CanAddr() {
  27337. vp := rv.Addr().Interface().(*map[uint32]uint32)
  27338. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  27339. if changed {
  27340. *vp = v
  27341. }
  27342. } else {
  27343. v := rv.Interface().(map[uint32]uint32)
  27344. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  27345. }
  27346. }
  27347. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, checkNil bool, d *Decoder) {
  27348. v, changed := f.DecMapUint32Uint32V(*vp, checkNil, true, d)
  27349. if changed {
  27350. *vp = v
  27351. }
  27352. }
  27353. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, checkNil bool, canChange bool,
  27354. d *Decoder) (_ map[uint32]uint32, changed bool) {
  27355. dd := d.d
  27356. cr := d.cr
  27357. if checkNil && dd.TryDecodeAsNil() {
  27358. if v != nil {
  27359. changed = true
  27360. }
  27361. return nil, changed
  27362. }
  27363. containerLen := dd.ReadMapStart()
  27364. if canChange && v == nil {
  27365. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  27366. v = make(map[uint32]uint32, xlen)
  27367. changed = true
  27368. }
  27369. var mk uint32
  27370. var mv uint32
  27371. if containerLen > 0 {
  27372. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27386. for j := 0; !dd.CheckBreak(); j++ {
  27387. if cr != nil {
  27388. cr.sendContainerState(containerMapKey)
  27389. }
  27390. mk = uint32(dd.DecodeUint(32))
  27391. if cr != nil {
  27392. cr.sendContainerState(containerMapValue)
  27393. }
  27394. mv = uint32(dd.DecodeUint(32))
  27395. if v != nil {
  27396. v[mk] = mv
  27397. }
  27398. }
  27399. }
  27400. if cr != nil {
  27401. cr.sendContainerState(containerMapEnd)
  27402. }
  27403. return v, changed
  27404. }
  27405. func (f *decFnInfo) fastpathDecMapUint32Uint64R(rv reflect.Value) {
  27406. if rv.CanAddr() {
  27407. vp := rv.Addr().Interface().(*map[uint32]uint64)
  27408. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  27409. if changed {
  27410. *vp = v
  27411. }
  27412. } else {
  27413. v := rv.Interface().(map[uint32]uint64)
  27414. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  27415. }
  27416. }
  27417. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, checkNil bool, d *Decoder) {
  27418. v, changed := f.DecMapUint32Uint64V(*vp, checkNil, true, d)
  27419. if changed {
  27420. *vp = v
  27421. }
  27422. }
  27423. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, checkNil bool, canChange bool,
  27424. d *Decoder) (_ map[uint32]uint64, changed bool) {
  27425. dd := d.d
  27426. cr := d.cr
  27427. if checkNil && dd.TryDecodeAsNil() {
  27428. if v != nil {
  27429. changed = true
  27430. }
  27431. return nil, changed
  27432. }
  27433. containerLen := dd.ReadMapStart()
  27434. if canChange && v == nil {
  27435. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27436. v = make(map[uint32]uint64, xlen)
  27437. changed = true
  27438. }
  27439. var mk uint32
  27440. var mv uint64
  27441. if containerLen > 0 {
  27442. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27456. for j := 0; !dd.CheckBreak(); j++ {
  27457. if cr != nil {
  27458. cr.sendContainerState(containerMapKey)
  27459. }
  27460. mk = uint32(dd.DecodeUint(32))
  27461. if cr != nil {
  27462. cr.sendContainerState(containerMapValue)
  27463. }
  27464. mv = dd.DecodeUint(64)
  27465. if v != nil {
  27466. v[mk] = mv
  27467. }
  27468. }
  27469. }
  27470. if cr != nil {
  27471. cr.sendContainerState(containerMapEnd)
  27472. }
  27473. return v, changed
  27474. }
  27475. func (f *decFnInfo) fastpathDecMapUint32UintptrR(rv reflect.Value) {
  27476. if rv.CanAddr() {
  27477. vp := rv.Addr().Interface().(*map[uint32]uintptr)
  27478. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  27479. if changed {
  27480. *vp = v
  27481. }
  27482. } else {
  27483. v := rv.Interface().(map[uint32]uintptr)
  27484. fastpathTV.DecMapUint32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  27485. }
  27486. }
  27487. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, checkNil bool, d *Decoder) {
  27488. v, changed := f.DecMapUint32UintptrV(*vp, checkNil, true, d)
  27489. if changed {
  27490. *vp = v
  27491. }
  27492. }
  27493. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, checkNil bool, canChange bool,
  27494. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  27495. dd := d.d
  27496. cr := d.cr
  27497. if checkNil && dd.TryDecodeAsNil() {
  27498. if v != nil {
  27499. changed = true
  27500. }
  27501. return nil, changed
  27502. }
  27503. containerLen := dd.ReadMapStart()
  27504. if canChange && v == nil {
  27505. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27506. v = make(map[uint32]uintptr, xlen)
  27507. changed = true
  27508. }
  27509. var mk uint32
  27510. var mv uintptr
  27511. if containerLen > 0 {
  27512. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27526. for j := 0; !dd.CheckBreak(); j++ {
  27527. if cr != nil {
  27528. cr.sendContainerState(containerMapKey)
  27529. }
  27530. mk = uint32(dd.DecodeUint(32))
  27531. if cr != nil {
  27532. cr.sendContainerState(containerMapValue)
  27533. }
  27534. mv = uintptr(dd.DecodeUint(uintBitsize))
  27535. if v != nil {
  27536. v[mk] = mv
  27537. }
  27538. }
  27539. }
  27540. if cr != nil {
  27541. cr.sendContainerState(containerMapEnd)
  27542. }
  27543. return v, changed
  27544. }
  27545. func (f *decFnInfo) fastpathDecMapUint32IntR(rv reflect.Value) {
  27546. if rv.CanAddr() {
  27547. vp := rv.Addr().Interface().(*map[uint32]int)
  27548. v, changed := fastpathTV.DecMapUint32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  27549. if changed {
  27550. *vp = v
  27551. }
  27552. } else {
  27553. v := rv.Interface().(map[uint32]int)
  27554. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, f.d)
  27555. }
  27556. }
  27557. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, checkNil bool, d *Decoder) {
  27558. v, changed := f.DecMapUint32IntV(*vp, checkNil, true, d)
  27559. if changed {
  27560. *vp = v
  27561. }
  27562. }
  27563. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, checkNil bool, canChange bool,
  27564. d *Decoder) (_ map[uint32]int, changed bool) {
  27565. dd := d.d
  27566. cr := d.cr
  27567. if checkNil && dd.TryDecodeAsNil() {
  27568. if v != nil {
  27569. changed = true
  27570. }
  27571. return nil, changed
  27572. }
  27573. containerLen := dd.ReadMapStart()
  27574. if canChange && v == nil {
  27575. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27576. v = make(map[uint32]int, xlen)
  27577. changed = true
  27578. }
  27579. var mk uint32
  27580. var mv int
  27581. if containerLen > 0 {
  27582. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27596. for j := 0; !dd.CheckBreak(); j++ {
  27597. if cr != nil {
  27598. cr.sendContainerState(containerMapKey)
  27599. }
  27600. mk = uint32(dd.DecodeUint(32))
  27601. if cr != nil {
  27602. cr.sendContainerState(containerMapValue)
  27603. }
  27604. mv = int(dd.DecodeInt(intBitsize))
  27605. if v != nil {
  27606. v[mk] = mv
  27607. }
  27608. }
  27609. }
  27610. if cr != nil {
  27611. cr.sendContainerState(containerMapEnd)
  27612. }
  27613. return v, changed
  27614. }
  27615. func (f *decFnInfo) fastpathDecMapUint32Int8R(rv reflect.Value) {
  27616. if rv.CanAddr() {
  27617. vp := rv.Addr().Interface().(*map[uint32]int8)
  27618. v, changed := fastpathTV.DecMapUint32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  27619. if changed {
  27620. *vp = v
  27621. }
  27622. } else {
  27623. v := rv.Interface().(map[uint32]int8)
  27624. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, f.d)
  27625. }
  27626. }
  27627. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, checkNil bool, d *Decoder) {
  27628. v, changed := f.DecMapUint32Int8V(*vp, checkNil, true, d)
  27629. if changed {
  27630. *vp = v
  27631. }
  27632. }
  27633. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, checkNil bool, canChange bool,
  27634. d *Decoder) (_ map[uint32]int8, changed bool) {
  27635. dd := d.d
  27636. cr := d.cr
  27637. if checkNil && dd.TryDecodeAsNil() {
  27638. if v != nil {
  27639. changed = true
  27640. }
  27641. return nil, changed
  27642. }
  27643. containerLen := dd.ReadMapStart()
  27644. if canChange && v == nil {
  27645. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27646. v = make(map[uint32]int8, xlen)
  27647. changed = true
  27648. }
  27649. var mk uint32
  27650. var mv int8
  27651. if containerLen > 0 {
  27652. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27666. for j := 0; !dd.CheckBreak(); j++ {
  27667. if cr != nil {
  27668. cr.sendContainerState(containerMapKey)
  27669. }
  27670. mk = uint32(dd.DecodeUint(32))
  27671. if cr != nil {
  27672. cr.sendContainerState(containerMapValue)
  27673. }
  27674. mv = int8(dd.DecodeInt(8))
  27675. if v != nil {
  27676. v[mk] = mv
  27677. }
  27678. }
  27679. }
  27680. if cr != nil {
  27681. cr.sendContainerState(containerMapEnd)
  27682. }
  27683. return v, changed
  27684. }
  27685. func (f *decFnInfo) fastpathDecMapUint32Int16R(rv reflect.Value) {
  27686. if rv.CanAddr() {
  27687. vp := rv.Addr().Interface().(*map[uint32]int16)
  27688. v, changed := fastpathTV.DecMapUint32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  27689. if changed {
  27690. *vp = v
  27691. }
  27692. } else {
  27693. v := rv.Interface().(map[uint32]int16)
  27694. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, f.d)
  27695. }
  27696. }
  27697. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, checkNil bool, d *Decoder) {
  27698. v, changed := f.DecMapUint32Int16V(*vp, checkNil, true, d)
  27699. if changed {
  27700. *vp = v
  27701. }
  27702. }
  27703. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, checkNil bool, canChange bool,
  27704. d *Decoder) (_ map[uint32]int16, changed bool) {
  27705. dd := d.d
  27706. cr := d.cr
  27707. if checkNil && dd.TryDecodeAsNil() {
  27708. if v != nil {
  27709. changed = true
  27710. }
  27711. return nil, changed
  27712. }
  27713. containerLen := dd.ReadMapStart()
  27714. if canChange && v == nil {
  27715. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  27716. v = make(map[uint32]int16, xlen)
  27717. changed = true
  27718. }
  27719. var mk uint32
  27720. var mv int16
  27721. if containerLen > 0 {
  27722. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27736. for j := 0; !dd.CheckBreak(); j++ {
  27737. if cr != nil {
  27738. cr.sendContainerState(containerMapKey)
  27739. }
  27740. mk = uint32(dd.DecodeUint(32))
  27741. if cr != nil {
  27742. cr.sendContainerState(containerMapValue)
  27743. }
  27744. mv = int16(dd.DecodeInt(16))
  27745. if v != nil {
  27746. v[mk] = mv
  27747. }
  27748. }
  27749. }
  27750. if cr != nil {
  27751. cr.sendContainerState(containerMapEnd)
  27752. }
  27753. return v, changed
  27754. }
  27755. func (f *decFnInfo) fastpathDecMapUint32Int32R(rv reflect.Value) {
  27756. if rv.CanAddr() {
  27757. vp := rv.Addr().Interface().(*map[uint32]int32)
  27758. v, changed := fastpathTV.DecMapUint32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  27759. if changed {
  27760. *vp = v
  27761. }
  27762. } else {
  27763. v := rv.Interface().(map[uint32]int32)
  27764. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, f.d)
  27765. }
  27766. }
  27767. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, checkNil bool, d *Decoder) {
  27768. v, changed := f.DecMapUint32Int32V(*vp, checkNil, true, d)
  27769. if changed {
  27770. *vp = v
  27771. }
  27772. }
  27773. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, checkNil bool, canChange bool,
  27774. d *Decoder) (_ map[uint32]int32, changed bool) {
  27775. dd := d.d
  27776. cr := d.cr
  27777. if checkNil && dd.TryDecodeAsNil() {
  27778. if v != nil {
  27779. changed = true
  27780. }
  27781. return nil, changed
  27782. }
  27783. containerLen := dd.ReadMapStart()
  27784. if canChange && v == nil {
  27785. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  27786. v = make(map[uint32]int32, xlen)
  27787. changed = true
  27788. }
  27789. var mk uint32
  27790. var mv int32
  27791. if containerLen > 0 {
  27792. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27806. for j := 0; !dd.CheckBreak(); j++ {
  27807. if cr != nil {
  27808. cr.sendContainerState(containerMapKey)
  27809. }
  27810. mk = uint32(dd.DecodeUint(32))
  27811. if cr != nil {
  27812. cr.sendContainerState(containerMapValue)
  27813. }
  27814. mv = int32(dd.DecodeInt(32))
  27815. if v != nil {
  27816. v[mk] = mv
  27817. }
  27818. }
  27819. }
  27820. if cr != nil {
  27821. cr.sendContainerState(containerMapEnd)
  27822. }
  27823. return v, changed
  27824. }
  27825. func (f *decFnInfo) fastpathDecMapUint32Int64R(rv reflect.Value) {
  27826. if rv.CanAddr() {
  27827. vp := rv.Addr().Interface().(*map[uint32]int64)
  27828. v, changed := fastpathTV.DecMapUint32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  27829. if changed {
  27830. *vp = v
  27831. }
  27832. } else {
  27833. v := rv.Interface().(map[uint32]int64)
  27834. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, f.d)
  27835. }
  27836. }
  27837. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, checkNil bool, d *Decoder) {
  27838. v, changed := f.DecMapUint32Int64V(*vp, checkNil, true, d)
  27839. if changed {
  27840. *vp = v
  27841. }
  27842. }
  27843. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, checkNil bool, canChange bool,
  27844. d *Decoder) (_ map[uint32]int64, changed bool) {
  27845. dd := d.d
  27846. cr := d.cr
  27847. if checkNil && dd.TryDecodeAsNil() {
  27848. if v != nil {
  27849. changed = true
  27850. }
  27851. return nil, changed
  27852. }
  27853. containerLen := dd.ReadMapStart()
  27854. if canChange && v == nil {
  27855. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27856. v = make(map[uint32]int64, xlen)
  27857. changed = true
  27858. }
  27859. var mk uint32
  27860. var mv int64
  27861. if containerLen > 0 {
  27862. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27876. for j := 0; !dd.CheckBreak(); j++ {
  27877. if cr != nil {
  27878. cr.sendContainerState(containerMapKey)
  27879. }
  27880. mk = uint32(dd.DecodeUint(32))
  27881. if cr != nil {
  27882. cr.sendContainerState(containerMapValue)
  27883. }
  27884. mv = dd.DecodeInt(64)
  27885. if v != nil {
  27886. v[mk] = mv
  27887. }
  27888. }
  27889. }
  27890. if cr != nil {
  27891. cr.sendContainerState(containerMapEnd)
  27892. }
  27893. return v, changed
  27894. }
  27895. func (f *decFnInfo) fastpathDecMapUint32Float32R(rv reflect.Value) {
  27896. if rv.CanAddr() {
  27897. vp := rv.Addr().Interface().(*map[uint32]float32)
  27898. v, changed := fastpathTV.DecMapUint32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  27899. if changed {
  27900. *vp = v
  27901. }
  27902. } else {
  27903. v := rv.Interface().(map[uint32]float32)
  27904. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, f.d)
  27905. }
  27906. }
  27907. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, checkNil bool, d *Decoder) {
  27908. v, changed := f.DecMapUint32Float32V(*vp, checkNil, true, d)
  27909. if changed {
  27910. *vp = v
  27911. }
  27912. }
  27913. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, checkNil bool, canChange bool,
  27914. d *Decoder) (_ map[uint32]float32, changed bool) {
  27915. dd := d.d
  27916. cr := d.cr
  27917. if checkNil && dd.TryDecodeAsNil() {
  27918. if v != nil {
  27919. changed = true
  27920. }
  27921. return nil, changed
  27922. }
  27923. containerLen := dd.ReadMapStart()
  27924. if canChange && v == nil {
  27925. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  27926. v = make(map[uint32]float32, xlen)
  27927. changed = true
  27928. }
  27929. var mk uint32
  27930. var mv float32
  27931. if containerLen > 0 {
  27932. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  27946. for j := 0; !dd.CheckBreak(); j++ {
  27947. if cr != nil {
  27948. cr.sendContainerState(containerMapKey)
  27949. }
  27950. mk = uint32(dd.DecodeUint(32))
  27951. if cr != nil {
  27952. cr.sendContainerState(containerMapValue)
  27953. }
  27954. mv = float32(dd.DecodeFloat(true))
  27955. if v != nil {
  27956. v[mk] = mv
  27957. }
  27958. }
  27959. }
  27960. if cr != nil {
  27961. cr.sendContainerState(containerMapEnd)
  27962. }
  27963. return v, changed
  27964. }
  27965. func (f *decFnInfo) fastpathDecMapUint32Float64R(rv reflect.Value) {
  27966. if rv.CanAddr() {
  27967. vp := rv.Addr().Interface().(*map[uint32]float64)
  27968. v, changed := fastpathTV.DecMapUint32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  27969. if changed {
  27970. *vp = v
  27971. }
  27972. } else {
  27973. v := rv.Interface().(map[uint32]float64)
  27974. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, f.d)
  27975. }
  27976. }
  27977. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, checkNil bool, d *Decoder) {
  27978. v, changed := f.DecMapUint32Float64V(*vp, checkNil, true, d)
  27979. if changed {
  27980. *vp = v
  27981. }
  27982. }
  27983. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, checkNil bool, canChange bool,
  27984. d *Decoder) (_ map[uint32]float64, changed bool) {
  27985. dd := d.d
  27986. cr := d.cr
  27987. if checkNil && dd.TryDecodeAsNil() {
  27988. if v != nil {
  27989. changed = true
  27990. }
  27991. return nil, changed
  27992. }
  27993. containerLen := dd.ReadMapStart()
  27994. if canChange && v == nil {
  27995. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27996. v = make(map[uint32]float64, xlen)
  27997. changed = true
  27998. }
  27999. var mk uint32
  28000. var mv float64
  28001. if containerLen > 0 {
  28002. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28016. for j := 0; !dd.CheckBreak(); j++ {
  28017. if cr != nil {
  28018. cr.sendContainerState(containerMapKey)
  28019. }
  28020. mk = uint32(dd.DecodeUint(32))
  28021. if cr != nil {
  28022. cr.sendContainerState(containerMapValue)
  28023. }
  28024. mv = dd.DecodeFloat(false)
  28025. if v != nil {
  28026. v[mk] = mv
  28027. }
  28028. }
  28029. }
  28030. if cr != nil {
  28031. cr.sendContainerState(containerMapEnd)
  28032. }
  28033. return v, changed
  28034. }
  28035. func (f *decFnInfo) fastpathDecMapUint32BoolR(rv reflect.Value) {
  28036. if rv.CanAddr() {
  28037. vp := rv.Addr().Interface().(*map[uint32]bool)
  28038. v, changed := fastpathTV.DecMapUint32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  28039. if changed {
  28040. *vp = v
  28041. }
  28042. } else {
  28043. v := rv.Interface().(map[uint32]bool)
  28044. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, f.d)
  28045. }
  28046. }
  28047. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, checkNil bool, d *Decoder) {
  28048. v, changed := f.DecMapUint32BoolV(*vp, checkNil, true, d)
  28049. if changed {
  28050. *vp = v
  28051. }
  28052. }
  28053. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, checkNil bool, canChange bool,
  28054. d *Decoder) (_ map[uint32]bool, changed bool) {
  28055. dd := d.d
  28056. cr := d.cr
  28057. if checkNil && dd.TryDecodeAsNil() {
  28058. if v != nil {
  28059. changed = true
  28060. }
  28061. return nil, changed
  28062. }
  28063. containerLen := dd.ReadMapStart()
  28064. if canChange && v == nil {
  28065. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28066. v = make(map[uint32]bool, xlen)
  28067. changed = true
  28068. }
  28069. var mk uint32
  28070. var mv bool
  28071. if containerLen > 0 {
  28072. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28086. for j := 0; !dd.CheckBreak(); j++ {
  28087. if cr != nil {
  28088. cr.sendContainerState(containerMapKey)
  28089. }
  28090. mk = uint32(dd.DecodeUint(32))
  28091. if cr != nil {
  28092. cr.sendContainerState(containerMapValue)
  28093. }
  28094. mv = dd.DecodeBool()
  28095. if v != nil {
  28096. v[mk] = mv
  28097. }
  28098. }
  28099. }
  28100. if cr != nil {
  28101. cr.sendContainerState(containerMapEnd)
  28102. }
  28103. return v, changed
  28104. }
  28105. func (f *decFnInfo) fastpathDecMapUint64IntfR(rv reflect.Value) {
  28106. if rv.CanAddr() {
  28107. vp := rv.Addr().Interface().(*map[uint64]interface{})
  28108. v, changed := fastpathTV.DecMapUint64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  28109. if changed {
  28110. *vp = v
  28111. }
  28112. } else {
  28113. v := rv.Interface().(map[uint64]interface{})
  28114. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, f.d)
  28115. }
  28116. }
  28117. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, checkNil bool, d *Decoder) {
  28118. v, changed := f.DecMapUint64IntfV(*vp, checkNil, true, d)
  28119. if changed {
  28120. *vp = v
  28121. }
  28122. }
  28123. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, checkNil bool, canChange bool,
  28124. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  28125. dd := d.d
  28126. cr := d.cr
  28127. if checkNil && dd.TryDecodeAsNil() {
  28128. if v != nil {
  28129. changed = true
  28130. }
  28131. return nil, changed
  28132. }
  28133. containerLen := dd.ReadMapStart()
  28134. if canChange && v == nil {
  28135. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28136. v = make(map[uint64]interface{}, xlen)
  28137. changed = true
  28138. }
  28139. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  28140. var mk uint64
  28141. var mv interface{}
  28142. if containerLen > 0 {
  28143. for j := 0; j < containerLen; j++ {
  28144. if cr != nil {
  28145. cr.sendContainerState(containerMapKey)
  28146. }
  28147. mk = dd.DecodeUint(64)
  28148. if cr != nil {
  28149. cr.sendContainerState(containerMapValue)
  28150. }
  28151. if mapGet {
  28152. mv = v[mk]
  28153. } else {
  28154. mv = nil
  28155. }
  28156. d.decode(&mv)
  28157. if v != nil {
  28158. v[mk] = mv
  28159. }
  28160. }
  28161. } else if containerLen < 0 {
  28162. for j := 0; !dd.CheckBreak(); j++ {
  28163. if cr != nil {
  28164. cr.sendContainerState(containerMapKey)
  28165. }
  28166. mk = dd.DecodeUint(64)
  28167. if cr != nil {
  28168. cr.sendContainerState(containerMapValue)
  28169. }
  28170. if mapGet {
  28171. mv = v[mk]
  28172. } else {
  28173. mv = nil
  28174. }
  28175. d.decode(&mv)
  28176. if v != nil {
  28177. v[mk] = mv
  28178. }
  28179. }
  28180. }
  28181. if cr != nil {
  28182. cr.sendContainerState(containerMapEnd)
  28183. }
  28184. return v, changed
  28185. }
  28186. func (f *decFnInfo) fastpathDecMapUint64StringR(rv reflect.Value) {
  28187. if rv.CanAddr() {
  28188. vp := rv.Addr().Interface().(*map[uint64]string)
  28189. v, changed := fastpathTV.DecMapUint64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  28190. if changed {
  28191. *vp = v
  28192. }
  28193. } else {
  28194. v := rv.Interface().(map[uint64]string)
  28195. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, f.d)
  28196. }
  28197. }
  28198. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, checkNil bool, d *Decoder) {
  28199. v, changed := f.DecMapUint64StringV(*vp, checkNil, true, d)
  28200. if changed {
  28201. *vp = v
  28202. }
  28203. }
  28204. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, checkNil bool, canChange bool,
  28205. d *Decoder) (_ map[uint64]string, changed bool) {
  28206. dd := d.d
  28207. cr := d.cr
  28208. if checkNil && dd.TryDecodeAsNil() {
  28209. if v != nil {
  28210. changed = true
  28211. }
  28212. return nil, changed
  28213. }
  28214. containerLen := dd.ReadMapStart()
  28215. if canChange && v == nil {
  28216. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28217. v = make(map[uint64]string, xlen)
  28218. changed = true
  28219. }
  28220. var mk uint64
  28221. var mv string
  28222. if containerLen > 0 {
  28223. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28237. for j := 0; !dd.CheckBreak(); j++ {
  28238. if cr != nil {
  28239. cr.sendContainerState(containerMapKey)
  28240. }
  28241. mk = dd.DecodeUint(64)
  28242. if cr != nil {
  28243. cr.sendContainerState(containerMapValue)
  28244. }
  28245. mv = dd.DecodeString()
  28246. if v != nil {
  28247. v[mk] = mv
  28248. }
  28249. }
  28250. }
  28251. if cr != nil {
  28252. cr.sendContainerState(containerMapEnd)
  28253. }
  28254. return v, changed
  28255. }
  28256. func (f *decFnInfo) fastpathDecMapUint64UintR(rv reflect.Value) {
  28257. if rv.CanAddr() {
  28258. vp := rv.Addr().Interface().(*map[uint64]uint)
  28259. v, changed := fastpathTV.DecMapUint64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  28260. if changed {
  28261. *vp = v
  28262. }
  28263. } else {
  28264. v := rv.Interface().(map[uint64]uint)
  28265. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, f.d)
  28266. }
  28267. }
  28268. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, checkNil bool, d *Decoder) {
  28269. v, changed := f.DecMapUint64UintV(*vp, checkNil, true, d)
  28270. if changed {
  28271. *vp = v
  28272. }
  28273. }
  28274. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, checkNil bool, canChange bool,
  28275. d *Decoder) (_ map[uint64]uint, changed bool) {
  28276. dd := d.d
  28277. cr := d.cr
  28278. if checkNil && dd.TryDecodeAsNil() {
  28279. if v != nil {
  28280. changed = true
  28281. }
  28282. return nil, changed
  28283. }
  28284. containerLen := dd.ReadMapStart()
  28285. if canChange && v == nil {
  28286. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28287. v = make(map[uint64]uint, xlen)
  28288. changed = true
  28289. }
  28290. var mk uint64
  28291. var mv uint
  28292. if containerLen > 0 {
  28293. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28307. for j := 0; !dd.CheckBreak(); j++ {
  28308. if cr != nil {
  28309. cr.sendContainerState(containerMapKey)
  28310. }
  28311. mk = dd.DecodeUint(64)
  28312. if cr != nil {
  28313. cr.sendContainerState(containerMapValue)
  28314. }
  28315. mv = uint(dd.DecodeUint(uintBitsize))
  28316. if v != nil {
  28317. v[mk] = mv
  28318. }
  28319. }
  28320. }
  28321. if cr != nil {
  28322. cr.sendContainerState(containerMapEnd)
  28323. }
  28324. return v, changed
  28325. }
  28326. func (f *decFnInfo) fastpathDecMapUint64Uint8R(rv reflect.Value) {
  28327. if rv.CanAddr() {
  28328. vp := rv.Addr().Interface().(*map[uint64]uint8)
  28329. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  28330. if changed {
  28331. *vp = v
  28332. }
  28333. } else {
  28334. v := rv.Interface().(map[uint64]uint8)
  28335. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  28336. }
  28337. }
  28338. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, checkNil bool, d *Decoder) {
  28339. v, changed := f.DecMapUint64Uint8V(*vp, checkNil, true, d)
  28340. if changed {
  28341. *vp = v
  28342. }
  28343. }
  28344. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, checkNil bool, canChange bool,
  28345. d *Decoder) (_ map[uint64]uint8, changed bool) {
  28346. dd := d.d
  28347. cr := d.cr
  28348. if checkNil && dd.TryDecodeAsNil() {
  28349. if v != nil {
  28350. changed = true
  28351. }
  28352. return nil, changed
  28353. }
  28354. containerLen := dd.ReadMapStart()
  28355. if canChange && v == nil {
  28356. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28357. v = make(map[uint64]uint8, xlen)
  28358. changed = true
  28359. }
  28360. var mk uint64
  28361. var mv uint8
  28362. if containerLen > 0 {
  28363. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28377. for j := 0; !dd.CheckBreak(); j++ {
  28378. if cr != nil {
  28379. cr.sendContainerState(containerMapKey)
  28380. }
  28381. mk = dd.DecodeUint(64)
  28382. if cr != nil {
  28383. cr.sendContainerState(containerMapValue)
  28384. }
  28385. mv = uint8(dd.DecodeUint(8))
  28386. if v != nil {
  28387. v[mk] = mv
  28388. }
  28389. }
  28390. }
  28391. if cr != nil {
  28392. cr.sendContainerState(containerMapEnd)
  28393. }
  28394. return v, changed
  28395. }
  28396. func (f *decFnInfo) fastpathDecMapUint64Uint16R(rv reflect.Value) {
  28397. if rv.CanAddr() {
  28398. vp := rv.Addr().Interface().(*map[uint64]uint16)
  28399. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  28400. if changed {
  28401. *vp = v
  28402. }
  28403. } else {
  28404. v := rv.Interface().(map[uint64]uint16)
  28405. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  28406. }
  28407. }
  28408. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, checkNil bool, d *Decoder) {
  28409. v, changed := f.DecMapUint64Uint16V(*vp, checkNil, true, d)
  28410. if changed {
  28411. *vp = v
  28412. }
  28413. }
  28414. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, checkNil bool, canChange bool,
  28415. d *Decoder) (_ map[uint64]uint16, changed bool) {
  28416. dd := d.d
  28417. cr := d.cr
  28418. if checkNil && dd.TryDecodeAsNil() {
  28419. if v != nil {
  28420. changed = true
  28421. }
  28422. return nil, changed
  28423. }
  28424. containerLen := dd.ReadMapStart()
  28425. if canChange && v == nil {
  28426. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28427. v = make(map[uint64]uint16, xlen)
  28428. changed = true
  28429. }
  28430. var mk uint64
  28431. var mv uint16
  28432. if containerLen > 0 {
  28433. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28447. for j := 0; !dd.CheckBreak(); j++ {
  28448. if cr != nil {
  28449. cr.sendContainerState(containerMapKey)
  28450. }
  28451. mk = dd.DecodeUint(64)
  28452. if cr != nil {
  28453. cr.sendContainerState(containerMapValue)
  28454. }
  28455. mv = uint16(dd.DecodeUint(16))
  28456. if v != nil {
  28457. v[mk] = mv
  28458. }
  28459. }
  28460. }
  28461. if cr != nil {
  28462. cr.sendContainerState(containerMapEnd)
  28463. }
  28464. return v, changed
  28465. }
  28466. func (f *decFnInfo) fastpathDecMapUint64Uint32R(rv reflect.Value) {
  28467. if rv.CanAddr() {
  28468. vp := rv.Addr().Interface().(*map[uint64]uint32)
  28469. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  28470. if changed {
  28471. *vp = v
  28472. }
  28473. } else {
  28474. v := rv.Interface().(map[uint64]uint32)
  28475. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  28476. }
  28477. }
  28478. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, checkNil bool, d *Decoder) {
  28479. v, changed := f.DecMapUint64Uint32V(*vp, checkNil, true, d)
  28480. if changed {
  28481. *vp = v
  28482. }
  28483. }
  28484. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, checkNil bool, canChange bool,
  28485. d *Decoder) (_ map[uint64]uint32, changed bool) {
  28486. dd := d.d
  28487. cr := d.cr
  28488. if checkNil && dd.TryDecodeAsNil() {
  28489. if v != nil {
  28490. changed = true
  28491. }
  28492. return nil, changed
  28493. }
  28494. containerLen := dd.ReadMapStart()
  28495. if canChange && v == nil {
  28496. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28497. v = make(map[uint64]uint32, xlen)
  28498. changed = true
  28499. }
  28500. var mk uint64
  28501. var mv uint32
  28502. if containerLen > 0 {
  28503. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28517. for j := 0; !dd.CheckBreak(); j++ {
  28518. if cr != nil {
  28519. cr.sendContainerState(containerMapKey)
  28520. }
  28521. mk = dd.DecodeUint(64)
  28522. if cr != nil {
  28523. cr.sendContainerState(containerMapValue)
  28524. }
  28525. mv = uint32(dd.DecodeUint(32))
  28526. if v != nil {
  28527. v[mk] = mv
  28528. }
  28529. }
  28530. }
  28531. if cr != nil {
  28532. cr.sendContainerState(containerMapEnd)
  28533. }
  28534. return v, changed
  28535. }
  28536. func (f *decFnInfo) fastpathDecMapUint64Uint64R(rv reflect.Value) {
  28537. if rv.CanAddr() {
  28538. vp := rv.Addr().Interface().(*map[uint64]uint64)
  28539. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  28540. if changed {
  28541. *vp = v
  28542. }
  28543. } else {
  28544. v := rv.Interface().(map[uint64]uint64)
  28545. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  28546. }
  28547. }
  28548. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, checkNil bool, d *Decoder) {
  28549. v, changed := f.DecMapUint64Uint64V(*vp, checkNil, true, d)
  28550. if changed {
  28551. *vp = v
  28552. }
  28553. }
  28554. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, checkNil bool, canChange bool,
  28555. d *Decoder) (_ map[uint64]uint64, changed bool) {
  28556. dd := d.d
  28557. cr := d.cr
  28558. if checkNil && dd.TryDecodeAsNil() {
  28559. if v != nil {
  28560. changed = true
  28561. }
  28562. return nil, changed
  28563. }
  28564. containerLen := dd.ReadMapStart()
  28565. if canChange && v == nil {
  28566. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28567. v = make(map[uint64]uint64, xlen)
  28568. changed = true
  28569. }
  28570. var mk uint64
  28571. var mv uint64
  28572. if containerLen > 0 {
  28573. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28587. for j := 0; !dd.CheckBreak(); j++ {
  28588. if cr != nil {
  28589. cr.sendContainerState(containerMapKey)
  28590. }
  28591. mk = dd.DecodeUint(64)
  28592. if cr != nil {
  28593. cr.sendContainerState(containerMapValue)
  28594. }
  28595. mv = dd.DecodeUint(64)
  28596. if v != nil {
  28597. v[mk] = mv
  28598. }
  28599. }
  28600. }
  28601. if cr != nil {
  28602. cr.sendContainerState(containerMapEnd)
  28603. }
  28604. return v, changed
  28605. }
  28606. func (f *decFnInfo) fastpathDecMapUint64UintptrR(rv reflect.Value) {
  28607. if rv.CanAddr() {
  28608. vp := rv.Addr().Interface().(*map[uint64]uintptr)
  28609. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  28610. if changed {
  28611. *vp = v
  28612. }
  28613. } else {
  28614. v := rv.Interface().(map[uint64]uintptr)
  28615. fastpathTV.DecMapUint64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  28616. }
  28617. }
  28618. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, checkNil bool, d *Decoder) {
  28619. v, changed := f.DecMapUint64UintptrV(*vp, checkNil, true, d)
  28620. if changed {
  28621. *vp = v
  28622. }
  28623. }
  28624. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, checkNil bool, canChange bool,
  28625. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  28626. dd := d.d
  28627. cr := d.cr
  28628. if checkNil && dd.TryDecodeAsNil() {
  28629. if v != nil {
  28630. changed = true
  28631. }
  28632. return nil, changed
  28633. }
  28634. containerLen := dd.ReadMapStart()
  28635. if canChange && v == nil {
  28636. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28637. v = make(map[uint64]uintptr, xlen)
  28638. changed = true
  28639. }
  28640. var mk uint64
  28641. var mv uintptr
  28642. if containerLen > 0 {
  28643. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28657. for j := 0; !dd.CheckBreak(); j++ {
  28658. if cr != nil {
  28659. cr.sendContainerState(containerMapKey)
  28660. }
  28661. mk = dd.DecodeUint(64)
  28662. if cr != nil {
  28663. cr.sendContainerState(containerMapValue)
  28664. }
  28665. mv = uintptr(dd.DecodeUint(uintBitsize))
  28666. if v != nil {
  28667. v[mk] = mv
  28668. }
  28669. }
  28670. }
  28671. if cr != nil {
  28672. cr.sendContainerState(containerMapEnd)
  28673. }
  28674. return v, changed
  28675. }
  28676. func (f *decFnInfo) fastpathDecMapUint64IntR(rv reflect.Value) {
  28677. if rv.CanAddr() {
  28678. vp := rv.Addr().Interface().(*map[uint64]int)
  28679. v, changed := fastpathTV.DecMapUint64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  28680. if changed {
  28681. *vp = v
  28682. }
  28683. } else {
  28684. v := rv.Interface().(map[uint64]int)
  28685. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, f.d)
  28686. }
  28687. }
  28688. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, checkNil bool, d *Decoder) {
  28689. v, changed := f.DecMapUint64IntV(*vp, checkNil, true, d)
  28690. if changed {
  28691. *vp = v
  28692. }
  28693. }
  28694. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, checkNil bool, canChange bool,
  28695. d *Decoder) (_ map[uint64]int, changed bool) {
  28696. dd := d.d
  28697. cr := d.cr
  28698. if checkNil && dd.TryDecodeAsNil() {
  28699. if v != nil {
  28700. changed = true
  28701. }
  28702. return nil, changed
  28703. }
  28704. containerLen := dd.ReadMapStart()
  28705. if canChange && v == nil {
  28706. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28707. v = make(map[uint64]int, xlen)
  28708. changed = true
  28709. }
  28710. var mk uint64
  28711. var mv int
  28712. if containerLen > 0 {
  28713. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28727. for j := 0; !dd.CheckBreak(); j++ {
  28728. if cr != nil {
  28729. cr.sendContainerState(containerMapKey)
  28730. }
  28731. mk = dd.DecodeUint(64)
  28732. if cr != nil {
  28733. cr.sendContainerState(containerMapValue)
  28734. }
  28735. mv = int(dd.DecodeInt(intBitsize))
  28736. if v != nil {
  28737. v[mk] = mv
  28738. }
  28739. }
  28740. }
  28741. if cr != nil {
  28742. cr.sendContainerState(containerMapEnd)
  28743. }
  28744. return v, changed
  28745. }
  28746. func (f *decFnInfo) fastpathDecMapUint64Int8R(rv reflect.Value) {
  28747. if rv.CanAddr() {
  28748. vp := rv.Addr().Interface().(*map[uint64]int8)
  28749. v, changed := fastpathTV.DecMapUint64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  28750. if changed {
  28751. *vp = v
  28752. }
  28753. } else {
  28754. v := rv.Interface().(map[uint64]int8)
  28755. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, f.d)
  28756. }
  28757. }
  28758. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, checkNil bool, d *Decoder) {
  28759. v, changed := f.DecMapUint64Int8V(*vp, checkNil, true, d)
  28760. if changed {
  28761. *vp = v
  28762. }
  28763. }
  28764. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, checkNil bool, canChange bool,
  28765. d *Decoder) (_ map[uint64]int8, changed bool) {
  28766. dd := d.d
  28767. cr := d.cr
  28768. if checkNil && dd.TryDecodeAsNil() {
  28769. if v != nil {
  28770. changed = true
  28771. }
  28772. return nil, changed
  28773. }
  28774. containerLen := dd.ReadMapStart()
  28775. if canChange && v == nil {
  28776. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28777. v = make(map[uint64]int8, xlen)
  28778. changed = true
  28779. }
  28780. var mk uint64
  28781. var mv int8
  28782. if containerLen > 0 {
  28783. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28797. for j := 0; !dd.CheckBreak(); j++ {
  28798. if cr != nil {
  28799. cr.sendContainerState(containerMapKey)
  28800. }
  28801. mk = dd.DecodeUint(64)
  28802. if cr != nil {
  28803. cr.sendContainerState(containerMapValue)
  28804. }
  28805. mv = int8(dd.DecodeInt(8))
  28806. if v != nil {
  28807. v[mk] = mv
  28808. }
  28809. }
  28810. }
  28811. if cr != nil {
  28812. cr.sendContainerState(containerMapEnd)
  28813. }
  28814. return v, changed
  28815. }
  28816. func (f *decFnInfo) fastpathDecMapUint64Int16R(rv reflect.Value) {
  28817. if rv.CanAddr() {
  28818. vp := rv.Addr().Interface().(*map[uint64]int16)
  28819. v, changed := fastpathTV.DecMapUint64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  28820. if changed {
  28821. *vp = v
  28822. }
  28823. } else {
  28824. v := rv.Interface().(map[uint64]int16)
  28825. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, f.d)
  28826. }
  28827. }
  28828. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, checkNil bool, d *Decoder) {
  28829. v, changed := f.DecMapUint64Int16V(*vp, checkNil, true, d)
  28830. if changed {
  28831. *vp = v
  28832. }
  28833. }
  28834. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, checkNil bool, canChange bool,
  28835. d *Decoder) (_ map[uint64]int16, changed bool) {
  28836. dd := d.d
  28837. cr := d.cr
  28838. if checkNil && dd.TryDecodeAsNil() {
  28839. if v != nil {
  28840. changed = true
  28841. }
  28842. return nil, changed
  28843. }
  28844. containerLen := dd.ReadMapStart()
  28845. if canChange && v == nil {
  28846. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28847. v = make(map[uint64]int16, xlen)
  28848. changed = true
  28849. }
  28850. var mk uint64
  28851. var mv int16
  28852. if containerLen > 0 {
  28853. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28867. for j := 0; !dd.CheckBreak(); j++ {
  28868. if cr != nil {
  28869. cr.sendContainerState(containerMapKey)
  28870. }
  28871. mk = dd.DecodeUint(64)
  28872. if cr != nil {
  28873. cr.sendContainerState(containerMapValue)
  28874. }
  28875. mv = int16(dd.DecodeInt(16))
  28876. if v != nil {
  28877. v[mk] = mv
  28878. }
  28879. }
  28880. }
  28881. if cr != nil {
  28882. cr.sendContainerState(containerMapEnd)
  28883. }
  28884. return v, changed
  28885. }
  28886. func (f *decFnInfo) fastpathDecMapUint64Int32R(rv reflect.Value) {
  28887. if rv.CanAddr() {
  28888. vp := rv.Addr().Interface().(*map[uint64]int32)
  28889. v, changed := fastpathTV.DecMapUint64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  28890. if changed {
  28891. *vp = v
  28892. }
  28893. } else {
  28894. v := rv.Interface().(map[uint64]int32)
  28895. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, f.d)
  28896. }
  28897. }
  28898. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, checkNil bool, d *Decoder) {
  28899. v, changed := f.DecMapUint64Int32V(*vp, checkNil, true, d)
  28900. if changed {
  28901. *vp = v
  28902. }
  28903. }
  28904. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, checkNil bool, canChange bool,
  28905. d *Decoder) (_ map[uint64]int32, changed bool) {
  28906. dd := d.d
  28907. cr := d.cr
  28908. if checkNil && dd.TryDecodeAsNil() {
  28909. if v != nil {
  28910. changed = true
  28911. }
  28912. return nil, changed
  28913. }
  28914. containerLen := dd.ReadMapStart()
  28915. if canChange && v == nil {
  28916. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28917. v = make(map[uint64]int32, xlen)
  28918. changed = true
  28919. }
  28920. var mk uint64
  28921. var mv int32
  28922. if containerLen > 0 {
  28923. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  28937. for j := 0; !dd.CheckBreak(); j++ {
  28938. if cr != nil {
  28939. cr.sendContainerState(containerMapKey)
  28940. }
  28941. mk = dd.DecodeUint(64)
  28942. if cr != nil {
  28943. cr.sendContainerState(containerMapValue)
  28944. }
  28945. mv = int32(dd.DecodeInt(32))
  28946. if v != nil {
  28947. v[mk] = mv
  28948. }
  28949. }
  28950. }
  28951. if cr != nil {
  28952. cr.sendContainerState(containerMapEnd)
  28953. }
  28954. return v, changed
  28955. }
  28956. func (f *decFnInfo) fastpathDecMapUint64Int64R(rv reflect.Value) {
  28957. if rv.CanAddr() {
  28958. vp := rv.Addr().Interface().(*map[uint64]int64)
  28959. v, changed := fastpathTV.DecMapUint64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  28960. if changed {
  28961. *vp = v
  28962. }
  28963. } else {
  28964. v := rv.Interface().(map[uint64]int64)
  28965. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, f.d)
  28966. }
  28967. }
  28968. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, checkNil bool, d *Decoder) {
  28969. v, changed := f.DecMapUint64Int64V(*vp, checkNil, true, d)
  28970. if changed {
  28971. *vp = v
  28972. }
  28973. }
  28974. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, checkNil bool, canChange bool,
  28975. d *Decoder) (_ map[uint64]int64, changed bool) {
  28976. dd := d.d
  28977. cr := d.cr
  28978. if checkNil && dd.TryDecodeAsNil() {
  28979. if v != nil {
  28980. changed = true
  28981. }
  28982. return nil, changed
  28983. }
  28984. containerLen := dd.ReadMapStart()
  28985. if canChange && v == nil {
  28986. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28987. v = make(map[uint64]int64, xlen)
  28988. changed = true
  28989. }
  28990. var mk uint64
  28991. var mv int64
  28992. if containerLen > 0 {
  28993. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29007. for j := 0; !dd.CheckBreak(); j++ {
  29008. if cr != nil {
  29009. cr.sendContainerState(containerMapKey)
  29010. }
  29011. mk = dd.DecodeUint(64)
  29012. if cr != nil {
  29013. cr.sendContainerState(containerMapValue)
  29014. }
  29015. mv = dd.DecodeInt(64)
  29016. if v != nil {
  29017. v[mk] = mv
  29018. }
  29019. }
  29020. }
  29021. if cr != nil {
  29022. cr.sendContainerState(containerMapEnd)
  29023. }
  29024. return v, changed
  29025. }
  29026. func (f *decFnInfo) fastpathDecMapUint64Float32R(rv reflect.Value) {
  29027. if rv.CanAddr() {
  29028. vp := rv.Addr().Interface().(*map[uint64]float32)
  29029. v, changed := fastpathTV.DecMapUint64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  29030. if changed {
  29031. *vp = v
  29032. }
  29033. } else {
  29034. v := rv.Interface().(map[uint64]float32)
  29035. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, f.d)
  29036. }
  29037. }
  29038. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, checkNil bool, d *Decoder) {
  29039. v, changed := f.DecMapUint64Float32V(*vp, checkNil, true, d)
  29040. if changed {
  29041. *vp = v
  29042. }
  29043. }
  29044. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, checkNil bool, canChange bool,
  29045. d *Decoder) (_ map[uint64]float32, changed bool) {
  29046. dd := d.d
  29047. cr := d.cr
  29048. if checkNil && dd.TryDecodeAsNil() {
  29049. if v != nil {
  29050. changed = true
  29051. }
  29052. return nil, changed
  29053. }
  29054. containerLen := dd.ReadMapStart()
  29055. if canChange && v == nil {
  29056. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29057. v = make(map[uint64]float32, xlen)
  29058. changed = true
  29059. }
  29060. var mk uint64
  29061. var mv float32
  29062. if containerLen > 0 {
  29063. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29077. for j := 0; !dd.CheckBreak(); j++ {
  29078. if cr != nil {
  29079. cr.sendContainerState(containerMapKey)
  29080. }
  29081. mk = dd.DecodeUint(64)
  29082. if cr != nil {
  29083. cr.sendContainerState(containerMapValue)
  29084. }
  29085. mv = float32(dd.DecodeFloat(true))
  29086. if v != nil {
  29087. v[mk] = mv
  29088. }
  29089. }
  29090. }
  29091. if cr != nil {
  29092. cr.sendContainerState(containerMapEnd)
  29093. }
  29094. return v, changed
  29095. }
  29096. func (f *decFnInfo) fastpathDecMapUint64Float64R(rv reflect.Value) {
  29097. if rv.CanAddr() {
  29098. vp := rv.Addr().Interface().(*map[uint64]float64)
  29099. v, changed := fastpathTV.DecMapUint64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  29100. if changed {
  29101. *vp = v
  29102. }
  29103. } else {
  29104. v := rv.Interface().(map[uint64]float64)
  29105. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, f.d)
  29106. }
  29107. }
  29108. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, checkNil bool, d *Decoder) {
  29109. v, changed := f.DecMapUint64Float64V(*vp, checkNil, true, d)
  29110. if changed {
  29111. *vp = v
  29112. }
  29113. }
  29114. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, checkNil bool, canChange bool,
  29115. d *Decoder) (_ map[uint64]float64, changed bool) {
  29116. dd := d.d
  29117. cr := d.cr
  29118. if checkNil && dd.TryDecodeAsNil() {
  29119. if v != nil {
  29120. changed = true
  29121. }
  29122. return nil, changed
  29123. }
  29124. containerLen := dd.ReadMapStart()
  29125. if canChange && v == nil {
  29126. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29127. v = make(map[uint64]float64, xlen)
  29128. changed = true
  29129. }
  29130. var mk uint64
  29131. var mv float64
  29132. if containerLen > 0 {
  29133. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29147. for j := 0; !dd.CheckBreak(); j++ {
  29148. if cr != nil {
  29149. cr.sendContainerState(containerMapKey)
  29150. }
  29151. mk = dd.DecodeUint(64)
  29152. if cr != nil {
  29153. cr.sendContainerState(containerMapValue)
  29154. }
  29155. mv = dd.DecodeFloat(false)
  29156. if v != nil {
  29157. v[mk] = mv
  29158. }
  29159. }
  29160. }
  29161. if cr != nil {
  29162. cr.sendContainerState(containerMapEnd)
  29163. }
  29164. return v, changed
  29165. }
  29166. func (f *decFnInfo) fastpathDecMapUint64BoolR(rv reflect.Value) {
  29167. if rv.CanAddr() {
  29168. vp := rv.Addr().Interface().(*map[uint64]bool)
  29169. v, changed := fastpathTV.DecMapUint64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  29170. if changed {
  29171. *vp = v
  29172. }
  29173. } else {
  29174. v := rv.Interface().(map[uint64]bool)
  29175. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, f.d)
  29176. }
  29177. }
  29178. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, checkNil bool, d *Decoder) {
  29179. v, changed := f.DecMapUint64BoolV(*vp, checkNil, true, d)
  29180. if changed {
  29181. *vp = v
  29182. }
  29183. }
  29184. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, checkNil bool, canChange bool,
  29185. d *Decoder) (_ map[uint64]bool, changed bool) {
  29186. dd := d.d
  29187. cr := d.cr
  29188. if checkNil && dd.TryDecodeAsNil() {
  29189. if v != nil {
  29190. changed = true
  29191. }
  29192. return nil, changed
  29193. }
  29194. containerLen := dd.ReadMapStart()
  29195. if canChange && v == nil {
  29196. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29197. v = make(map[uint64]bool, xlen)
  29198. changed = true
  29199. }
  29200. var mk uint64
  29201. var mv bool
  29202. if containerLen > 0 {
  29203. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29217. for j := 0; !dd.CheckBreak(); j++ {
  29218. if cr != nil {
  29219. cr.sendContainerState(containerMapKey)
  29220. }
  29221. mk = dd.DecodeUint(64)
  29222. if cr != nil {
  29223. cr.sendContainerState(containerMapValue)
  29224. }
  29225. mv = dd.DecodeBool()
  29226. if v != nil {
  29227. v[mk] = mv
  29228. }
  29229. }
  29230. }
  29231. if cr != nil {
  29232. cr.sendContainerState(containerMapEnd)
  29233. }
  29234. return v, changed
  29235. }
  29236. func (f *decFnInfo) fastpathDecMapUintptrIntfR(rv reflect.Value) {
  29237. if rv.CanAddr() {
  29238. vp := rv.Addr().Interface().(*map[uintptr]interface{})
  29239. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  29240. if changed {
  29241. *vp = v
  29242. }
  29243. } else {
  29244. v := rv.Interface().(map[uintptr]interface{})
  29245. fastpathTV.DecMapUintptrIntfV(v, fastpathCheckNilFalse, false, f.d)
  29246. }
  29247. }
  29248. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, checkNil bool, d *Decoder) {
  29249. v, changed := f.DecMapUintptrIntfV(*vp, checkNil, true, d)
  29250. if changed {
  29251. *vp = v
  29252. }
  29253. }
  29254. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, checkNil bool, canChange bool,
  29255. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  29256. dd := d.d
  29257. cr := d.cr
  29258. if checkNil && dd.TryDecodeAsNil() {
  29259. if v != nil {
  29260. changed = true
  29261. }
  29262. return nil, changed
  29263. }
  29264. containerLen := dd.ReadMapStart()
  29265. if canChange && v == nil {
  29266. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  29267. v = make(map[uintptr]interface{}, xlen)
  29268. changed = true
  29269. }
  29270. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  29271. var mk uintptr
  29272. var mv interface{}
  29273. if containerLen > 0 {
  29274. for j := 0; j < containerLen; j++ {
  29275. if cr != nil {
  29276. cr.sendContainerState(containerMapKey)
  29277. }
  29278. mk = uintptr(dd.DecodeUint(uintBitsize))
  29279. if cr != nil {
  29280. cr.sendContainerState(containerMapValue)
  29281. }
  29282. if mapGet {
  29283. mv = v[mk]
  29284. } else {
  29285. mv = nil
  29286. }
  29287. d.decode(&mv)
  29288. if v != nil {
  29289. v[mk] = mv
  29290. }
  29291. }
  29292. } else if containerLen < 0 {
  29293. for j := 0; !dd.CheckBreak(); j++ {
  29294. if cr != nil {
  29295. cr.sendContainerState(containerMapKey)
  29296. }
  29297. mk = uintptr(dd.DecodeUint(uintBitsize))
  29298. if cr != nil {
  29299. cr.sendContainerState(containerMapValue)
  29300. }
  29301. if mapGet {
  29302. mv = v[mk]
  29303. } else {
  29304. mv = nil
  29305. }
  29306. d.decode(&mv)
  29307. if v != nil {
  29308. v[mk] = mv
  29309. }
  29310. }
  29311. }
  29312. if cr != nil {
  29313. cr.sendContainerState(containerMapEnd)
  29314. }
  29315. return v, changed
  29316. }
  29317. func (f *decFnInfo) fastpathDecMapUintptrStringR(rv reflect.Value) {
  29318. if rv.CanAddr() {
  29319. vp := rv.Addr().Interface().(*map[uintptr]string)
  29320. v, changed := fastpathTV.DecMapUintptrStringV(*vp, fastpathCheckNilFalse, true, f.d)
  29321. if changed {
  29322. *vp = v
  29323. }
  29324. } else {
  29325. v := rv.Interface().(map[uintptr]string)
  29326. fastpathTV.DecMapUintptrStringV(v, fastpathCheckNilFalse, false, f.d)
  29327. }
  29328. }
  29329. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, checkNil bool, d *Decoder) {
  29330. v, changed := f.DecMapUintptrStringV(*vp, checkNil, true, d)
  29331. if changed {
  29332. *vp = v
  29333. }
  29334. }
  29335. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, checkNil bool, canChange bool,
  29336. d *Decoder) (_ map[uintptr]string, changed bool) {
  29337. dd := d.d
  29338. cr := d.cr
  29339. if checkNil && dd.TryDecodeAsNil() {
  29340. if v != nil {
  29341. changed = true
  29342. }
  29343. return nil, changed
  29344. }
  29345. containerLen := dd.ReadMapStart()
  29346. if canChange && v == nil {
  29347. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  29348. v = make(map[uintptr]string, xlen)
  29349. changed = true
  29350. }
  29351. var mk uintptr
  29352. var mv string
  29353. if containerLen > 0 {
  29354. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29368. for j := 0; !dd.CheckBreak(); j++ {
  29369. if cr != nil {
  29370. cr.sendContainerState(containerMapKey)
  29371. }
  29372. mk = uintptr(dd.DecodeUint(uintBitsize))
  29373. if cr != nil {
  29374. cr.sendContainerState(containerMapValue)
  29375. }
  29376. mv = dd.DecodeString()
  29377. if v != nil {
  29378. v[mk] = mv
  29379. }
  29380. }
  29381. }
  29382. if cr != nil {
  29383. cr.sendContainerState(containerMapEnd)
  29384. }
  29385. return v, changed
  29386. }
  29387. func (f *decFnInfo) fastpathDecMapUintptrUintR(rv reflect.Value) {
  29388. if rv.CanAddr() {
  29389. vp := rv.Addr().Interface().(*map[uintptr]uint)
  29390. v, changed := fastpathTV.DecMapUintptrUintV(*vp, fastpathCheckNilFalse, true, f.d)
  29391. if changed {
  29392. *vp = v
  29393. }
  29394. } else {
  29395. v := rv.Interface().(map[uintptr]uint)
  29396. fastpathTV.DecMapUintptrUintV(v, fastpathCheckNilFalse, false, f.d)
  29397. }
  29398. }
  29399. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, checkNil bool, d *Decoder) {
  29400. v, changed := f.DecMapUintptrUintV(*vp, checkNil, true, d)
  29401. if changed {
  29402. *vp = v
  29403. }
  29404. }
  29405. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, checkNil bool, canChange bool,
  29406. d *Decoder) (_ map[uintptr]uint, changed bool) {
  29407. dd := d.d
  29408. cr := d.cr
  29409. if checkNil && dd.TryDecodeAsNil() {
  29410. if v != nil {
  29411. changed = true
  29412. }
  29413. return nil, changed
  29414. }
  29415. containerLen := dd.ReadMapStart()
  29416. if canChange && v == nil {
  29417. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29418. v = make(map[uintptr]uint, xlen)
  29419. changed = true
  29420. }
  29421. var mk uintptr
  29422. var mv uint
  29423. if containerLen > 0 {
  29424. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29438. for j := 0; !dd.CheckBreak(); j++ {
  29439. if cr != nil {
  29440. cr.sendContainerState(containerMapKey)
  29441. }
  29442. mk = uintptr(dd.DecodeUint(uintBitsize))
  29443. if cr != nil {
  29444. cr.sendContainerState(containerMapValue)
  29445. }
  29446. mv = uint(dd.DecodeUint(uintBitsize))
  29447. if v != nil {
  29448. v[mk] = mv
  29449. }
  29450. }
  29451. }
  29452. if cr != nil {
  29453. cr.sendContainerState(containerMapEnd)
  29454. }
  29455. return v, changed
  29456. }
  29457. func (f *decFnInfo) fastpathDecMapUintptrUint8R(rv reflect.Value) {
  29458. if rv.CanAddr() {
  29459. vp := rv.Addr().Interface().(*map[uintptr]uint8)
  29460. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  29461. if changed {
  29462. *vp = v
  29463. }
  29464. } else {
  29465. v := rv.Interface().(map[uintptr]uint8)
  29466. fastpathTV.DecMapUintptrUint8V(v, fastpathCheckNilFalse, false, f.d)
  29467. }
  29468. }
  29469. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, checkNil bool, d *Decoder) {
  29470. v, changed := f.DecMapUintptrUint8V(*vp, checkNil, true, d)
  29471. if changed {
  29472. *vp = v
  29473. }
  29474. }
  29475. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, checkNil bool, canChange bool,
  29476. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  29477. dd := d.d
  29478. cr := d.cr
  29479. if checkNil && dd.TryDecodeAsNil() {
  29480. if v != nil {
  29481. changed = true
  29482. }
  29483. return nil, changed
  29484. }
  29485. containerLen := dd.ReadMapStart()
  29486. if canChange && v == nil {
  29487. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29488. v = make(map[uintptr]uint8, xlen)
  29489. changed = true
  29490. }
  29491. var mk uintptr
  29492. var mv uint8
  29493. if containerLen > 0 {
  29494. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29508. for j := 0; !dd.CheckBreak(); j++ {
  29509. if cr != nil {
  29510. cr.sendContainerState(containerMapKey)
  29511. }
  29512. mk = uintptr(dd.DecodeUint(uintBitsize))
  29513. if cr != nil {
  29514. cr.sendContainerState(containerMapValue)
  29515. }
  29516. mv = uint8(dd.DecodeUint(8))
  29517. if v != nil {
  29518. v[mk] = mv
  29519. }
  29520. }
  29521. }
  29522. if cr != nil {
  29523. cr.sendContainerState(containerMapEnd)
  29524. }
  29525. return v, changed
  29526. }
  29527. func (f *decFnInfo) fastpathDecMapUintptrUint16R(rv reflect.Value) {
  29528. if rv.CanAddr() {
  29529. vp := rv.Addr().Interface().(*map[uintptr]uint16)
  29530. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  29531. if changed {
  29532. *vp = v
  29533. }
  29534. } else {
  29535. v := rv.Interface().(map[uintptr]uint16)
  29536. fastpathTV.DecMapUintptrUint16V(v, fastpathCheckNilFalse, false, f.d)
  29537. }
  29538. }
  29539. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, checkNil bool, d *Decoder) {
  29540. v, changed := f.DecMapUintptrUint16V(*vp, checkNil, true, d)
  29541. if changed {
  29542. *vp = v
  29543. }
  29544. }
  29545. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, checkNil bool, canChange bool,
  29546. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  29547. dd := d.d
  29548. cr := d.cr
  29549. if checkNil && dd.TryDecodeAsNil() {
  29550. if v != nil {
  29551. changed = true
  29552. }
  29553. return nil, changed
  29554. }
  29555. containerLen := dd.ReadMapStart()
  29556. if canChange && v == nil {
  29557. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29558. v = make(map[uintptr]uint16, xlen)
  29559. changed = true
  29560. }
  29561. var mk uintptr
  29562. var mv uint16
  29563. if containerLen > 0 {
  29564. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29578. for j := 0; !dd.CheckBreak(); j++ {
  29579. if cr != nil {
  29580. cr.sendContainerState(containerMapKey)
  29581. }
  29582. mk = uintptr(dd.DecodeUint(uintBitsize))
  29583. if cr != nil {
  29584. cr.sendContainerState(containerMapValue)
  29585. }
  29586. mv = uint16(dd.DecodeUint(16))
  29587. if v != nil {
  29588. v[mk] = mv
  29589. }
  29590. }
  29591. }
  29592. if cr != nil {
  29593. cr.sendContainerState(containerMapEnd)
  29594. }
  29595. return v, changed
  29596. }
  29597. func (f *decFnInfo) fastpathDecMapUintptrUint32R(rv reflect.Value) {
  29598. if rv.CanAddr() {
  29599. vp := rv.Addr().Interface().(*map[uintptr]uint32)
  29600. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  29601. if changed {
  29602. *vp = v
  29603. }
  29604. } else {
  29605. v := rv.Interface().(map[uintptr]uint32)
  29606. fastpathTV.DecMapUintptrUint32V(v, fastpathCheckNilFalse, false, f.d)
  29607. }
  29608. }
  29609. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, checkNil bool, d *Decoder) {
  29610. v, changed := f.DecMapUintptrUint32V(*vp, checkNil, true, d)
  29611. if changed {
  29612. *vp = v
  29613. }
  29614. }
  29615. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, checkNil bool, canChange bool,
  29616. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  29617. dd := d.d
  29618. cr := d.cr
  29619. if checkNil && dd.TryDecodeAsNil() {
  29620. if v != nil {
  29621. changed = true
  29622. }
  29623. return nil, changed
  29624. }
  29625. containerLen := dd.ReadMapStart()
  29626. if canChange && v == nil {
  29627. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29628. v = make(map[uintptr]uint32, xlen)
  29629. changed = true
  29630. }
  29631. var mk uintptr
  29632. var mv uint32
  29633. if containerLen > 0 {
  29634. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29648. for j := 0; !dd.CheckBreak(); j++ {
  29649. if cr != nil {
  29650. cr.sendContainerState(containerMapKey)
  29651. }
  29652. mk = uintptr(dd.DecodeUint(uintBitsize))
  29653. if cr != nil {
  29654. cr.sendContainerState(containerMapValue)
  29655. }
  29656. mv = uint32(dd.DecodeUint(32))
  29657. if v != nil {
  29658. v[mk] = mv
  29659. }
  29660. }
  29661. }
  29662. if cr != nil {
  29663. cr.sendContainerState(containerMapEnd)
  29664. }
  29665. return v, changed
  29666. }
  29667. func (f *decFnInfo) fastpathDecMapUintptrUint64R(rv reflect.Value) {
  29668. if rv.CanAddr() {
  29669. vp := rv.Addr().Interface().(*map[uintptr]uint64)
  29670. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  29671. if changed {
  29672. *vp = v
  29673. }
  29674. } else {
  29675. v := rv.Interface().(map[uintptr]uint64)
  29676. fastpathTV.DecMapUintptrUint64V(v, fastpathCheckNilFalse, false, f.d)
  29677. }
  29678. }
  29679. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, checkNil bool, d *Decoder) {
  29680. v, changed := f.DecMapUintptrUint64V(*vp, checkNil, true, d)
  29681. if changed {
  29682. *vp = v
  29683. }
  29684. }
  29685. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, checkNil bool, canChange bool,
  29686. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  29687. dd := d.d
  29688. cr := d.cr
  29689. if checkNil && dd.TryDecodeAsNil() {
  29690. if v != nil {
  29691. changed = true
  29692. }
  29693. return nil, changed
  29694. }
  29695. containerLen := dd.ReadMapStart()
  29696. if canChange && v == nil {
  29697. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29698. v = make(map[uintptr]uint64, xlen)
  29699. changed = true
  29700. }
  29701. var mk uintptr
  29702. var mv uint64
  29703. if containerLen > 0 {
  29704. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29718. for j := 0; !dd.CheckBreak(); j++ {
  29719. if cr != nil {
  29720. cr.sendContainerState(containerMapKey)
  29721. }
  29722. mk = uintptr(dd.DecodeUint(uintBitsize))
  29723. if cr != nil {
  29724. cr.sendContainerState(containerMapValue)
  29725. }
  29726. mv = dd.DecodeUint(64)
  29727. if v != nil {
  29728. v[mk] = mv
  29729. }
  29730. }
  29731. }
  29732. if cr != nil {
  29733. cr.sendContainerState(containerMapEnd)
  29734. }
  29735. return v, changed
  29736. }
  29737. func (f *decFnInfo) fastpathDecMapUintptrUintptrR(rv reflect.Value) {
  29738. if rv.CanAddr() {
  29739. vp := rv.Addr().Interface().(*map[uintptr]uintptr)
  29740. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  29741. if changed {
  29742. *vp = v
  29743. }
  29744. } else {
  29745. v := rv.Interface().(map[uintptr]uintptr)
  29746. fastpathTV.DecMapUintptrUintptrV(v, fastpathCheckNilFalse, false, f.d)
  29747. }
  29748. }
  29749. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, checkNil bool, d *Decoder) {
  29750. v, changed := f.DecMapUintptrUintptrV(*vp, checkNil, true, d)
  29751. if changed {
  29752. *vp = v
  29753. }
  29754. }
  29755. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, checkNil bool, canChange bool,
  29756. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  29757. dd := d.d
  29758. cr := d.cr
  29759. if checkNil && dd.TryDecodeAsNil() {
  29760. if v != nil {
  29761. changed = true
  29762. }
  29763. return nil, changed
  29764. }
  29765. containerLen := dd.ReadMapStart()
  29766. if canChange && v == nil {
  29767. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29768. v = make(map[uintptr]uintptr, xlen)
  29769. changed = true
  29770. }
  29771. var mk uintptr
  29772. var mv uintptr
  29773. if containerLen > 0 {
  29774. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29788. for j := 0; !dd.CheckBreak(); j++ {
  29789. if cr != nil {
  29790. cr.sendContainerState(containerMapKey)
  29791. }
  29792. mk = uintptr(dd.DecodeUint(uintBitsize))
  29793. if cr != nil {
  29794. cr.sendContainerState(containerMapValue)
  29795. }
  29796. mv = uintptr(dd.DecodeUint(uintBitsize))
  29797. if v != nil {
  29798. v[mk] = mv
  29799. }
  29800. }
  29801. }
  29802. if cr != nil {
  29803. cr.sendContainerState(containerMapEnd)
  29804. }
  29805. return v, changed
  29806. }
  29807. func (f *decFnInfo) fastpathDecMapUintptrIntR(rv reflect.Value) {
  29808. if rv.CanAddr() {
  29809. vp := rv.Addr().Interface().(*map[uintptr]int)
  29810. v, changed := fastpathTV.DecMapUintptrIntV(*vp, fastpathCheckNilFalse, true, f.d)
  29811. if changed {
  29812. *vp = v
  29813. }
  29814. } else {
  29815. v := rv.Interface().(map[uintptr]int)
  29816. fastpathTV.DecMapUintptrIntV(v, fastpathCheckNilFalse, false, f.d)
  29817. }
  29818. }
  29819. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, checkNil bool, d *Decoder) {
  29820. v, changed := f.DecMapUintptrIntV(*vp, checkNil, true, d)
  29821. if changed {
  29822. *vp = v
  29823. }
  29824. }
  29825. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, checkNil bool, canChange bool,
  29826. d *Decoder) (_ map[uintptr]int, changed bool) {
  29827. dd := d.d
  29828. cr := d.cr
  29829. if checkNil && dd.TryDecodeAsNil() {
  29830. if v != nil {
  29831. changed = true
  29832. }
  29833. return nil, changed
  29834. }
  29835. containerLen := dd.ReadMapStart()
  29836. if canChange && v == nil {
  29837. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29838. v = make(map[uintptr]int, xlen)
  29839. changed = true
  29840. }
  29841. var mk uintptr
  29842. var mv int
  29843. if containerLen > 0 {
  29844. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29858. for j := 0; !dd.CheckBreak(); j++ {
  29859. if cr != nil {
  29860. cr.sendContainerState(containerMapKey)
  29861. }
  29862. mk = uintptr(dd.DecodeUint(uintBitsize))
  29863. if cr != nil {
  29864. cr.sendContainerState(containerMapValue)
  29865. }
  29866. mv = int(dd.DecodeInt(intBitsize))
  29867. if v != nil {
  29868. v[mk] = mv
  29869. }
  29870. }
  29871. }
  29872. if cr != nil {
  29873. cr.sendContainerState(containerMapEnd)
  29874. }
  29875. return v, changed
  29876. }
  29877. func (f *decFnInfo) fastpathDecMapUintptrInt8R(rv reflect.Value) {
  29878. if rv.CanAddr() {
  29879. vp := rv.Addr().Interface().(*map[uintptr]int8)
  29880. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  29881. if changed {
  29882. *vp = v
  29883. }
  29884. } else {
  29885. v := rv.Interface().(map[uintptr]int8)
  29886. fastpathTV.DecMapUintptrInt8V(v, fastpathCheckNilFalse, false, f.d)
  29887. }
  29888. }
  29889. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, checkNil bool, d *Decoder) {
  29890. v, changed := f.DecMapUintptrInt8V(*vp, checkNil, true, d)
  29891. if changed {
  29892. *vp = v
  29893. }
  29894. }
  29895. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, checkNil bool, canChange bool,
  29896. d *Decoder) (_ map[uintptr]int8, changed bool) {
  29897. dd := d.d
  29898. cr := d.cr
  29899. if checkNil && dd.TryDecodeAsNil() {
  29900. if v != nil {
  29901. changed = true
  29902. }
  29903. return nil, changed
  29904. }
  29905. containerLen := dd.ReadMapStart()
  29906. if canChange && v == nil {
  29907. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29908. v = make(map[uintptr]int8, xlen)
  29909. changed = true
  29910. }
  29911. var mk uintptr
  29912. var mv int8
  29913. if containerLen > 0 {
  29914. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29928. for j := 0; !dd.CheckBreak(); j++ {
  29929. if cr != nil {
  29930. cr.sendContainerState(containerMapKey)
  29931. }
  29932. mk = uintptr(dd.DecodeUint(uintBitsize))
  29933. if cr != nil {
  29934. cr.sendContainerState(containerMapValue)
  29935. }
  29936. mv = int8(dd.DecodeInt(8))
  29937. if v != nil {
  29938. v[mk] = mv
  29939. }
  29940. }
  29941. }
  29942. if cr != nil {
  29943. cr.sendContainerState(containerMapEnd)
  29944. }
  29945. return v, changed
  29946. }
  29947. func (f *decFnInfo) fastpathDecMapUintptrInt16R(rv reflect.Value) {
  29948. if rv.CanAddr() {
  29949. vp := rv.Addr().Interface().(*map[uintptr]int16)
  29950. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  29951. if changed {
  29952. *vp = v
  29953. }
  29954. } else {
  29955. v := rv.Interface().(map[uintptr]int16)
  29956. fastpathTV.DecMapUintptrInt16V(v, fastpathCheckNilFalse, false, f.d)
  29957. }
  29958. }
  29959. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, checkNil bool, d *Decoder) {
  29960. v, changed := f.DecMapUintptrInt16V(*vp, checkNil, true, d)
  29961. if changed {
  29962. *vp = v
  29963. }
  29964. }
  29965. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, checkNil bool, canChange bool,
  29966. d *Decoder) (_ map[uintptr]int16, changed bool) {
  29967. dd := d.d
  29968. cr := d.cr
  29969. if checkNil && dd.TryDecodeAsNil() {
  29970. if v != nil {
  29971. changed = true
  29972. }
  29973. return nil, changed
  29974. }
  29975. containerLen := dd.ReadMapStart()
  29976. if canChange && v == nil {
  29977. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29978. v = make(map[uintptr]int16, xlen)
  29979. changed = true
  29980. }
  29981. var mk uintptr
  29982. var mv int16
  29983. if containerLen > 0 {
  29984. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  29998. for j := 0; !dd.CheckBreak(); j++ {
  29999. if cr != nil {
  30000. cr.sendContainerState(containerMapKey)
  30001. }
  30002. mk = uintptr(dd.DecodeUint(uintBitsize))
  30003. if cr != nil {
  30004. cr.sendContainerState(containerMapValue)
  30005. }
  30006. mv = int16(dd.DecodeInt(16))
  30007. if v != nil {
  30008. v[mk] = mv
  30009. }
  30010. }
  30011. }
  30012. if cr != nil {
  30013. cr.sendContainerState(containerMapEnd)
  30014. }
  30015. return v, changed
  30016. }
  30017. func (f *decFnInfo) fastpathDecMapUintptrInt32R(rv reflect.Value) {
  30018. if rv.CanAddr() {
  30019. vp := rv.Addr().Interface().(*map[uintptr]int32)
  30020. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  30021. if changed {
  30022. *vp = v
  30023. }
  30024. } else {
  30025. v := rv.Interface().(map[uintptr]int32)
  30026. fastpathTV.DecMapUintptrInt32V(v, fastpathCheckNilFalse, false, f.d)
  30027. }
  30028. }
  30029. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, checkNil bool, d *Decoder) {
  30030. v, changed := f.DecMapUintptrInt32V(*vp, checkNil, true, d)
  30031. if changed {
  30032. *vp = v
  30033. }
  30034. }
  30035. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, checkNil bool, canChange bool,
  30036. d *Decoder) (_ map[uintptr]int32, changed bool) {
  30037. dd := d.d
  30038. cr := d.cr
  30039. if checkNil && dd.TryDecodeAsNil() {
  30040. if v != nil {
  30041. changed = true
  30042. }
  30043. return nil, changed
  30044. }
  30045. containerLen := dd.ReadMapStart()
  30046. if canChange && v == nil {
  30047. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30048. v = make(map[uintptr]int32, xlen)
  30049. changed = true
  30050. }
  30051. var mk uintptr
  30052. var mv int32
  30053. if containerLen > 0 {
  30054. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30068. for j := 0; !dd.CheckBreak(); j++ {
  30069. if cr != nil {
  30070. cr.sendContainerState(containerMapKey)
  30071. }
  30072. mk = uintptr(dd.DecodeUint(uintBitsize))
  30073. if cr != nil {
  30074. cr.sendContainerState(containerMapValue)
  30075. }
  30076. mv = int32(dd.DecodeInt(32))
  30077. if v != nil {
  30078. v[mk] = mv
  30079. }
  30080. }
  30081. }
  30082. if cr != nil {
  30083. cr.sendContainerState(containerMapEnd)
  30084. }
  30085. return v, changed
  30086. }
  30087. func (f *decFnInfo) fastpathDecMapUintptrInt64R(rv reflect.Value) {
  30088. if rv.CanAddr() {
  30089. vp := rv.Addr().Interface().(*map[uintptr]int64)
  30090. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  30091. if changed {
  30092. *vp = v
  30093. }
  30094. } else {
  30095. v := rv.Interface().(map[uintptr]int64)
  30096. fastpathTV.DecMapUintptrInt64V(v, fastpathCheckNilFalse, false, f.d)
  30097. }
  30098. }
  30099. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, checkNil bool, d *Decoder) {
  30100. v, changed := f.DecMapUintptrInt64V(*vp, checkNil, true, d)
  30101. if changed {
  30102. *vp = v
  30103. }
  30104. }
  30105. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, checkNil bool, canChange bool,
  30106. d *Decoder) (_ map[uintptr]int64, changed bool) {
  30107. dd := d.d
  30108. cr := d.cr
  30109. if checkNil && dd.TryDecodeAsNil() {
  30110. if v != nil {
  30111. changed = true
  30112. }
  30113. return nil, changed
  30114. }
  30115. containerLen := dd.ReadMapStart()
  30116. if canChange && v == nil {
  30117. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30118. v = make(map[uintptr]int64, xlen)
  30119. changed = true
  30120. }
  30121. var mk uintptr
  30122. var mv int64
  30123. if containerLen > 0 {
  30124. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30138. for j := 0; !dd.CheckBreak(); j++ {
  30139. if cr != nil {
  30140. cr.sendContainerState(containerMapKey)
  30141. }
  30142. mk = uintptr(dd.DecodeUint(uintBitsize))
  30143. if cr != nil {
  30144. cr.sendContainerState(containerMapValue)
  30145. }
  30146. mv = dd.DecodeInt(64)
  30147. if v != nil {
  30148. v[mk] = mv
  30149. }
  30150. }
  30151. }
  30152. if cr != nil {
  30153. cr.sendContainerState(containerMapEnd)
  30154. }
  30155. return v, changed
  30156. }
  30157. func (f *decFnInfo) fastpathDecMapUintptrFloat32R(rv reflect.Value) {
  30158. if rv.CanAddr() {
  30159. vp := rv.Addr().Interface().(*map[uintptr]float32)
  30160. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  30161. if changed {
  30162. *vp = v
  30163. }
  30164. } else {
  30165. v := rv.Interface().(map[uintptr]float32)
  30166. fastpathTV.DecMapUintptrFloat32V(v, fastpathCheckNilFalse, false, f.d)
  30167. }
  30168. }
  30169. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, checkNil bool, d *Decoder) {
  30170. v, changed := f.DecMapUintptrFloat32V(*vp, checkNil, true, d)
  30171. if changed {
  30172. *vp = v
  30173. }
  30174. }
  30175. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, checkNil bool, canChange bool,
  30176. d *Decoder) (_ map[uintptr]float32, changed bool) {
  30177. dd := d.d
  30178. cr := d.cr
  30179. if checkNil && dd.TryDecodeAsNil() {
  30180. if v != nil {
  30181. changed = true
  30182. }
  30183. return nil, changed
  30184. }
  30185. containerLen := dd.ReadMapStart()
  30186. if canChange && v == nil {
  30187. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30188. v = make(map[uintptr]float32, xlen)
  30189. changed = true
  30190. }
  30191. var mk uintptr
  30192. var mv float32
  30193. if containerLen > 0 {
  30194. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30208. for j := 0; !dd.CheckBreak(); j++ {
  30209. if cr != nil {
  30210. cr.sendContainerState(containerMapKey)
  30211. }
  30212. mk = uintptr(dd.DecodeUint(uintBitsize))
  30213. if cr != nil {
  30214. cr.sendContainerState(containerMapValue)
  30215. }
  30216. mv = float32(dd.DecodeFloat(true))
  30217. if v != nil {
  30218. v[mk] = mv
  30219. }
  30220. }
  30221. }
  30222. if cr != nil {
  30223. cr.sendContainerState(containerMapEnd)
  30224. }
  30225. return v, changed
  30226. }
  30227. func (f *decFnInfo) fastpathDecMapUintptrFloat64R(rv reflect.Value) {
  30228. if rv.CanAddr() {
  30229. vp := rv.Addr().Interface().(*map[uintptr]float64)
  30230. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  30231. if changed {
  30232. *vp = v
  30233. }
  30234. } else {
  30235. v := rv.Interface().(map[uintptr]float64)
  30236. fastpathTV.DecMapUintptrFloat64V(v, fastpathCheckNilFalse, false, f.d)
  30237. }
  30238. }
  30239. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, checkNil bool, d *Decoder) {
  30240. v, changed := f.DecMapUintptrFloat64V(*vp, checkNil, true, d)
  30241. if changed {
  30242. *vp = v
  30243. }
  30244. }
  30245. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, checkNil bool, canChange bool,
  30246. d *Decoder) (_ map[uintptr]float64, changed bool) {
  30247. dd := d.d
  30248. cr := d.cr
  30249. if checkNil && dd.TryDecodeAsNil() {
  30250. if v != nil {
  30251. changed = true
  30252. }
  30253. return nil, changed
  30254. }
  30255. containerLen := dd.ReadMapStart()
  30256. if canChange && v == nil {
  30257. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30258. v = make(map[uintptr]float64, xlen)
  30259. changed = true
  30260. }
  30261. var mk uintptr
  30262. var mv float64
  30263. if containerLen > 0 {
  30264. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30278. for j := 0; !dd.CheckBreak(); j++ {
  30279. if cr != nil {
  30280. cr.sendContainerState(containerMapKey)
  30281. }
  30282. mk = uintptr(dd.DecodeUint(uintBitsize))
  30283. if cr != nil {
  30284. cr.sendContainerState(containerMapValue)
  30285. }
  30286. mv = dd.DecodeFloat(false)
  30287. if v != nil {
  30288. v[mk] = mv
  30289. }
  30290. }
  30291. }
  30292. if cr != nil {
  30293. cr.sendContainerState(containerMapEnd)
  30294. }
  30295. return v, changed
  30296. }
  30297. func (f *decFnInfo) fastpathDecMapUintptrBoolR(rv reflect.Value) {
  30298. if rv.CanAddr() {
  30299. vp := rv.Addr().Interface().(*map[uintptr]bool)
  30300. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  30301. if changed {
  30302. *vp = v
  30303. }
  30304. } else {
  30305. v := rv.Interface().(map[uintptr]bool)
  30306. fastpathTV.DecMapUintptrBoolV(v, fastpathCheckNilFalse, false, f.d)
  30307. }
  30308. }
  30309. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, checkNil bool, d *Decoder) {
  30310. v, changed := f.DecMapUintptrBoolV(*vp, checkNil, true, d)
  30311. if changed {
  30312. *vp = v
  30313. }
  30314. }
  30315. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, checkNil bool, canChange bool,
  30316. d *Decoder) (_ map[uintptr]bool, changed bool) {
  30317. dd := d.d
  30318. cr := d.cr
  30319. if checkNil && dd.TryDecodeAsNil() {
  30320. if v != nil {
  30321. changed = true
  30322. }
  30323. return nil, changed
  30324. }
  30325. containerLen := dd.ReadMapStart()
  30326. if canChange && v == nil {
  30327. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30328. v = make(map[uintptr]bool, xlen)
  30329. changed = true
  30330. }
  30331. var mk uintptr
  30332. var mv bool
  30333. if containerLen > 0 {
  30334. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30348. for j := 0; !dd.CheckBreak(); j++ {
  30349. if cr != nil {
  30350. cr.sendContainerState(containerMapKey)
  30351. }
  30352. mk = uintptr(dd.DecodeUint(uintBitsize))
  30353. if cr != nil {
  30354. cr.sendContainerState(containerMapValue)
  30355. }
  30356. mv = dd.DecodeBool()
  30357. if v != nil {
  30358. v[mk] = mv
  30359. }
  30360. }
  30361. }
  30362. if cr != nil {
  30363. cr.sendContainerState(containerMapEnd)
  30364. }
  30365. return v, changed
  30366. }
  30367. func (f *decFnInfo) fastpathDecMapIntIntfR(rv reflect.Value) {
  30368. if rv.CanAddr() {
  30369. vp := rv.Addr().Interface().(*map[int]interface{})
  30370. v, changed := fastpathTV.DecMapIntIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  30371. if changed {
  30372. *vp = v
  30373. }
  30374. } else {
  30375. v := rv.Interface().(map[int]interface{})
  30376. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, f.d)
  30377. }
  30378. }
  30379. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, checkNil bool, d *Decoder) {
  30380. v, changed := f.DecMapIntIntfV(*vp, checkNil, true, d)
  30381. if changed {
  30382. *vp = v
  30383. }
  30384. }
  30385. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, checkNil bool, canChange bool,
  30386. d *Decoder) (_ map[int]interface{}, changed bool) {
  30387. dd := d.d
  30388. cr := d.cr
  30389. if checkNil && dd.TryDecodeAsNil() {
  30390. if v != nil {
  30391. changed = true
  30392. }
  30393. return nil, changed
  30394. }
  30395. containerLen := dd.ReadMapStart()
  30396. if canChange && v == nil {
  30397. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  30398. v = make(map[int]interface{}, xlen)
  30399. changed = true
  30400. }
  30401. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  30402. var mk int
  30403. var mv interface{}
  30404. if containerLen > 0 {
  30405. for j := 0; j < containerLen; j++ {
  30406. if cr != nil {
  30407. cr.sendContainerState(containerMapKey)
  30408. }
  30409. mk = int(dd.DecodeInt(intBitsize))
  30410. if cr != nil {
  30411. cr.sendContainerState(containerMapValue)
  30412. }
  30413. if mapGet {
  30414. mv = v[mk]
  30415. } else {
  30416. mv = nil
  30417. }
  30418. d.decode(&mv)
  30419. if v != nil {
  30420. v[mk] = mv
  30421. }
  30422. }
  30423. } else if containerLen < 0 {
  30424. for j := 0; !dd.CheckBreak(); j++ {
  30425. if cr != nil {
  30426. cr.sendContainerState(containerMapKey)
  30427. }
  30428. mk = int(dd.DecodeInt(intBitsize))
  30429. if cr != nil {
  30430. cr.sendContainerState(containerMapValue)
  30431. }
  30432. if mapGet {
  30433. mv = v[mk]
  30434. } else {
  30435. mv = nil
  30436. }
  30437. d.decode(&mv)
  30438. if v != nil {
  30439. v[mk] = mv
  30440. }
  30441. }
  30442. }
  30443. if cr != nil {
  30444. cr.sendContainerState(containerMapEnd)
  30445. }
  30446. return v, changed
  30447. }
  30448. func (f *decFnInfo) fastpathDecMapIntStringR(rv reflect.Value) {
  30449. if rv.CanAddr() {
  30450. vp := rv.Addr().Interface().(*map[int]string)
  30451. v, changed := fastpathTV.DecMapIntStringV(*vp, fastpathCheckNilFalse, true, f.d)
  30452. if changed {
  30453. *vp = v
  30454. }
  30455. } else {
  30456. v := rv.Interface().(map[int]string)
  30457. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, f.d)
  30458. }
  30459. }
  30460. func (f fastpathT) DecMapIntStringX(vp *map[int]string, checkNil bool, d *Decoder) {
  30461. v, changed := f.DecMapIntStringV(*vp, checkNil, true, d)
  30462. if changed {
  30463. *vp = v
  30464. }
  30465. }
  30466. func (_ fastpathT) DecMapIntStringV(v map[int]string, checkNil bool, canChange bool,
  30467. d *Decoder) (_ map[int]string, changed bool) {
  30468. dd := d.d
  30469. cr := d.cr
  30470. if checkNil && dd.TryDecodeAsNil() {
  30471. if v != nil {
  30472. changed = true
  30473. }
  30474. return nil, changed
  30475. }
  30476. containerLen := dd.ReadMapStart()
  30477. if canChange && v == nil {
  30478. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  30479. v = make(map[int]string, xlen)
  30480. changed = true
  30481. }
  30482. var mk int
  30483. var mv string
  30484. if containerLen > 0 {
  30485. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30499. for j := 0; !dd.CheckBreak(); j++ {
  30500. if cr != nil {
  30501. cr.sendContainerState(containerMapKey)
  30502. }
  30503. mk = int(dd.DecodeInt(intBitsize))
  30504. if cr != nil {
  30505. cr.sendContainerState(containerMapValue)
  30506. }
  30507. mv = dd.DecodeString()
  30508. if v != nil {
  30509. v[mk] = mv
  30510. }
  30511. }
  30512. }
  30513. if cr != nil {
  30514. cr.sendContainerState(containerMapEnd)
  30515. }
  30516. return v, changed
  30517. }
  30518. func (f *decFnInfo) fastpathDecMapIntUintR(rv reflect.Value) {
  30519. if rv.CanAddr() {
  30520. vp := rv.Addr().Interface().(*map[int]uint)
  30521. v, changed := fastpathTV.DecMapIntUintV(*vp, fastpathCheckNilFalse, true, f.d)
  30522. if changed {
  30523. *vp = v
  30524. }
  30525. } else {
  30526. v := rv.Interface().(map[int]uint)
  30527. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, f.d)
  30528. }
  30529. }
  30530. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, checkNil bool, d *Decoder) {
  30531. v, changed := f.DecMapIntUintV(*vp, checkNil, true, d)
  30532. if changed {
  30533. *vp = v
  30534. }
  30535. }
  30536. func (_ fastpathT) DecMapIntUintV(v map[int]uint, checkNil bool, canChange bool,
  30537. d *Decoder) (_ map[int]uint, changed bool) {
  30538. dd := d.d
  30539. cr := d.cr
  30540. if checkNil && dd.TryDecodeAsNil() {
  30541. if v != nil {
  30542. changed = true
  30543. }
  30544. return nil, changed
  30545. }
  30546. containerLen := dd.ReadMapStart()
  30547. if canChange && v == nil {
  30548. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30549. v = make(map[int]uint, xlen)
  30550. changed = true
  30551. }
  30552. var mk int
  30553. var mv uint
  30554. if containerLen > 0 {
  30555. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30569. for j := 0; !dd.CheckBreak(); j++ {
  30570. if cr != nil {
  30571. cr.sendContainerState(containerMapKey)
  30572. }
  30573. mk = int(dd.DecodeInt(intBitsize))
  30574. if cr != nil {
  30575. cr.sendContainerState(containerMapValue)
  30576. }
  30577. mv = uint(dd.DecodeUint(uintBitsize))
  30578. if v != nil {
  30579. v[mk] = mv
  30580. }
  30581. }
  30582. }
  30583. if cr != nil {
  30584. cr.sendContainerState(containerMapEnd)
  30585. }
  30586. return v, changed
  30587. }
  30588. func (f *decFnInfo) fastpathDecMapIntUint8R(rv reflect.Value) {
  30589. if rv.CanAddr() {
  30590. vp := rv.Addr().Interface().(*map[int]uint8)
  30591. v, changed := fastpathTV.DecMapIntUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  30592. if changed {
  30593. *vp = v
  30594. }
  30595. } else {
  30596. v := rv.Interface().(map[int]uint8)
  30597. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, f.d)
  30598. }
  30599. }
  30600. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, checkNil bool, d *Decoder) {
  30601. v, changed := f.DecMapIntUint8V(*vp, checkNil, true, d)
  30602. if changed {
  30603. *vp = v
  30604. }
  30605. }
  30606. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, checkNil bool, canChange bool,
  30607. d *Decoder) (_ map[int]uint8, changed bool) {
  30608. dd := d.d
  30609. cr := d.cr
  30610. if checkNil && dd.TryDecodeAsNil() {
  30611. if v != nil {
  30612. changed = true
  30613. }
  30614. return nil, changed
  30615. }
  30616. containerLen := dd.ReadMapStart()
  30617. if canChange && v == nil {
  30618. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30619. v = make(map[int]uint8, xlen)
  30620. changed = true
  30621. }
  30622. var mk int
  30623. var mv uint8
  30624. if containerLen > 0 {
  30625. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30639. for j := 0; !dd.CheckBreak(); j++ {
  30640. if cr != nil {
  30641. cr.sendContainerState(containerMapKey)
  30642. }
  30643. mk = int(dd.DecodeInt(intBitsize))
  30644. if cr != nil {
  30645. cr.sendContainerState(containerMapValue)
  30646. }
  30647. mv = uint8(dd.DecodeUint(8))
  30648. if v != nil {
  30649. v[mk] = mv
  30650. }
  30651. }
  30652. }
  30653. if cr != nil {
  30654. cr.sendContainerState(containerMapEnd)
  30655. }
  30656. return v, changed
  30657. }
  30658. func (f *decFnInfo) fastpathDecMapIntUint16R(rv reflect.Value) {
  30659. if rv.CanAddr() {
  30660. vp := rv.Addr().Interface().(*map[int]uint16)
  30661. v, changed := fastpathTV.DecMapIntUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  30662. if changed {
  30663. *vp = v
  30664. }
  30665. } else {
  30666. v := rv.Interface().(map[int]uint16)
  30667. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, f.d)
  30668. }
  30669. }
  30670. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, checkNil bool, d *Decoder) {
  30671. v, changed := f.DecMapIntUint16V(*vp, checkNil, true, d)
  30672. if changed {
  30673. *vp = v
  30674. }
  30675. }
  30676. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, checkNil bool, canChange bool,
  30677. d *Decoder) (_ map[int]uint16, changed bool) {
  30678. dd := d.d
  30679. cr := d.cr
  30680. if checkNil && dd.TryDecodeAsNil() {
  30681. if v != nil {
  30682. changed = true
  30683. }
  30684. return nil, changed
  30685. }
  30686. containerLen := dd.ReadMapStart()
  30687. if canChange && v == nil {
  30688. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30689. v = make(map[int]uint16, xlen)
  30690. changed = true
  30691. }
  30692. var mk int
  30693. var mv uint16
  30694. if containerLen > 0 {
  30695. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30709. for j := 0; !dd.CheckBreak(); j++ {
  30710. if cr != nil {
  30711. cr.sendContainerState(containerMapKey)
  30712. }
  30713. mk = int(dd.DecodeInt(intBitsize))
  30714. if cr != nil {
  30715. cr.sendContainerState(containerMapValue)
  30716. }
  30717. mv = uint16(dd.DecodeUint(16))
  30718. if v != nil {
  30719. v[mk] = mv
  30720. }
  30721. }
  30722. }
  30723. if cr != nil {
  30724. cr.sendContainerState(containerMapEnd)
  30725. }
  30726. return v, changed
  30727. }
  30728. func (f *decFnInfo) fastpathDecMapIntUint32R(rv reflect.Value) {
  30729. if rv.CanAddr() {
  30730. vp := rv.Addr().Interface().(*map[int]uint32)
  30731. v, changed := fastpathTV.DecMapIntUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  30732. if changed {
  30733. *vp = v
  30734. }
  30735. } else {
  30736. v := rv.Interface().(map[int]uint32)
  30737. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, f.d)
  30738. }
  30739. }
  30740. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, checkNil bool, d *Decoder) {
  30741. v, changed := f.DecMapIntUint32V(*vp, checkNil, true, d)
  30742. if changed {
  30743. *vp = v
  30744. }
  30745. }
  30746. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, checkNil bool, canChange bool,
  30747. d *Decoder) (_ map[int]uint32, changed bool) {
  30748. dd := d.d
  30749. cr := d.cr
  30750. if checkNil && dd.TryDecodeAsNil() {
  30751. if v != nil {
  30752. changed = true
  30753. }
  30754. return nil, changed
  30755. }
  30756. containerLen := dd.ReadMapStart()
  30757. if canChange && v == nil {
  30758. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30759. v = make(map[int]uint32, xlen)
  30760. changed = true
  30761. }
  30762. var mk int
  30763. var mv uint32
  30764. if containerLen > 0 {
  30765. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30779. for j := 0; !dd.CheckBreak(); j++ {
  30780. if cr != nil {
  30781. cr.sendContainerState(containerMapKey)
  30782. }
  30783. mk = int(dd.DecodeInt(intBitsize))
  30784. if cr != nil {
  30785. cr.sendContainerState(containerMapValue)
  30786. }
  30787. mv = uint32(dd.DecodeUint(32))
  30788. if v != nil {
  30789. v[mk] = mv
  30790. }
  30791. }
  30792. }
  30793. if cr != nil {
  30794. cr.sendContainerState(containerMapEnd)
  30795. }
  30796. return v, changed
  30797. }
  30798. func (f *decFnInfo) fastpathDecMapIntUint64R(rv reflect.Value) {
  30799. if rv.CanAddr() {
  30800. vp := rv.Addr().Interface().(*map[int]uint64)
  30801. v, changed := fastpathTV.DecMapIntUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  30802. if changed {
  30803. *vp = v
  30804. }
  30805. } else {
  30806. v := rv.Interface().(map[int]uint64)
  30807. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, f.d)
  30808. }
  30809. }
  30810. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, checkNil bool, d *Decoder) {
  30811. v, changed := f.DecMapIntUint64V(*vp, checkNil, true, d)
  30812. if changed {
  30813. *vp = v
  30814. }
  30815. }
  30816. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, checkNil bool, canChange bool,
  30817. d *Decoder) (_ map[int]uint64, changed bool) {
  30818. dd := d.d
  30819. cr := d.cr
  30820. if checkNil && dd.TryDecodeAsNil() {
  30821. if v != nil {
  30822. changed = true
  30823. }
  30824. return nil, changed
  30825. }
  30826. containerLen := dd.ReadMapStart()
  30827. if canChange && v == nil {
  30828. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30829. v = make(map[int]uint64, xlen)
  30830. changed = true
  30831. }
  30832. var mk int
  30833. var mv uint64
  30834. if containerLen > 0 {
  30835. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30849. for j := 0; !dd.CheckBreak(); j++ {
  30850. if cr != nil {
  30851. cr.sendContainerState(containerMapKey)
  30852. }
  30853. mk = int(dd.DecodeInt(intBitsize))
  30854. if cr != nil {
  30855. cr.sendContainerState(containerMapValue)
  30856. }
  30857. mv = dd.DecodeUint(64)
  30858. if v != nil {
  30859. v[mk] = mv
  30860. }
  30861. }
  30862. }
  30863. if cr != nil {
  30864. cr.sendContainerState(containerMapEnd)
  30865. }
  30866. return v, changed
  30867. }
  30868. func (f *decFnInfo) fastpathDecMapIntUintptrR(rv reflect.Value) {
  30869. if rv.CanAddr() {
  30870. vp := rv.Addr().Interface().(*map[int]uintptr)
  30871. v, changed := fastpathTV.DecMapIntUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  30872. if changed {
  30873. *vp = v
  30874. }
  30875. } else {
  30876. v := rv.Interface().(map[int]uintptr)
  30877. fastpathTV.DecMapIntUintptrV(v, fastpathCheckNilFalse, false, f.d)
  30878. }
  30879. }
  30880. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, checkNil bool, d *Decoder) {
  30881. v, changed := f.DecMapIntUintptrV(*vp, checkNil, true, d)
  30882. if changed {
  30883. *vp = v
  30884. }
  30885. }
  30886. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, checkNil bool, canChange bool,
  30887. d *Decoder) (_ map[int]uintptr, changed bool) {
  30888. dd := d.d
  30889. cr := d.cr
  30890. if checkNil && dd.TryDecodeAsNil() {
  30891. if v != nil {
  30892. changed = true
  30893. }
  30894. return nil, changed
  30895. }
  30896. containerLen := dd.ReadMapStart()
  30897. if canChange && v == nil {
  30898. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30899. v = make(map[int]uintptr, xlen)
  30900. changed = true
  30901. }
  30902. var mk int
  30903. var mv uintptr
  30904. if containerLen > 0 {
  30905. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30919. for j := 0; !dd.CheckBreak(); j++ {
  30920. if cr != nil {
  30921. cr.sendContainerState(containerMapKey)
  30922. }
  30923. mk = int(dd.DecodeInt(intBitsize))
  30924. if cr != nil {
  30925. cr.sendContainerState(containerMapValue)
  30926. }
  30927. mv = uintptr(dd.DecodeUint(uintBitsize))
  30928. if v != nil {
  30929. v[mk] = mv
  30930. }
  30931. }
  30932. }
  30933. if cr != nil {
  30934. cr.sendContainerState(containerMapEnd)
  30935. }
  30936. return v, changed
  30937. }
  30938. func (f *decFnInfo) fastpathDecMapIntIntR(rv reflect.Value) {
  30939. if rv.CanAddr() {
  30940. vp := rv.Addr().Interface().(*map[int]int)
  30941. v, changed := fastpathTV.DecMapIntIntV(*vp, fastpathCheckNilFalse, true, f.d)
  30942. if changed {
  30943. *vp = v
  30944. }
  30945. } else {
  30946. v := rv.Interface().(map[int]int)
  30947. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, f.d)
  30948. }
  30949. }
  30950. func (f fastpathT) DecMapIntIntX(vp *map[int]int, checkNil bool, d *Decoder) {
  30951. v, changed := f.DecMapIntIntV(*vp, checkNil, true, d)
  30952. if changed {
  30953. *vp = v
  30954. }
  30955. }
  30956. func (_ fastpathT) DecMapIntIntV(v map[int]int, checkNil bool, canChange bool,
  30957. d *Decoder) (_ map[int]int, changed bool) {
  30958. dd := d.d
  30959. cr := d.cr
  30960. if checkNil && dd.TryDecodeAsNil() {
  30961. if v != nil {
  30962. changed = true
  30963. }
  30964. return nil, changed
  30965. }
  30966. containerLen := dd.ReadMapStart()
  30967. if canChange && v == nil {
  30968. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30969. v = make(map[int]int, xlen)
  30970. changed = true
  30971. }
  30972. var mk int
  30973. var mv int
  30974. if containerLen > 0 {
  30975. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  30989. for j := 0; !dd.CheckBreak(); j++ {
  30990. if cr != nil {
  30991. cr.sendContainerState(containerMapKey)
  30992. }
  30993. mk = int(dd.DecodeInt(intBitsize))
  30994. if cr != nil {
  30995. cr.sendContainerState(containerMapValue)
  30996. }
  30997. mv = int(dd.DecodeInt(intBitsize))
  30998. if v != nil {
  30999. v[mk] = mv
  31000. }
  31001. }
  31002. }
  31003. if cr != nil {
  31004. cr.sendContainerState(containerMapEnd)
  31005. }
  31006. return v, changed
  31007. }
  31008. func (f *decFnInfo) fastpathDecMapIntInt8R(rv reflect.Value) {
  31009. if rv.CanAddr() {
  31010. vp := rv.Addr().Interface().(*map[int]int8)
  31011. v, changed := fastpathTV.DecMapIntInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  31012. if changed {
  31013. *vp = v
  31014. }
  31015. } else {
  31016. v := rv.Interface().(map[int]int8)
  31017. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, f.d)
  31018. }
  31019. }
  31020. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, checkNil bool, d *Decoder) {
  31021. v, changed := f.DecMapIntInt8V(*vp, checkNil, true, d)
  31022. if changed {
  31023. *vp = v
  31024. }
  31025. }
  31026. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, checkNil bool, canChange bool,
  31027. d *Decoder) (_ map[int]int8, changed bool) {
  31028. dd := d.d
  31029. cr := d.cr
  31030. if checkNil && dd.TryDecodeAsNil() {
  31031. if v != nil {
  31032. changed = true
  31033. }
  31034. return nil, changed
  31035. }
  31036. containerLen := dd.ReadMapStart()
  31037. if canChange && v == nil {
  31038. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31039. v = make(map[int]int8, xlen)
  31040. changed = true
  31041. }
  31042. var mk int
  31043. var mv int8
  31044. if containerLen > 0 {
  31045. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31059. for j := 0; !dd.CheckBreak(); j++ {
  31060. if cr != nil {
  31061. cr.sendContainerState(containerMapKey)
  31062. }
  31063. mk = int(dd.DecodeInt(intBitsize))
  31064. if cr != nil {
  31065. cr.sendContainerState(containerMapValue)
  31066. }
  31067. mv = int8(dd.DecodeInt(8))
  31068. if v != nil {
  31069. v[mk] = mv
  31070. }
  31071. }
  31072. }
  31073. if cr != nil {
  31074. cr.sendContainerState(containerMapEnd)
  31075. }
  31076. return v, changed
  31077. }
  31078. func (f *decFnInfo) fastpathDecMapIntInt16R(rv reflect.Value) {
  31079. if rv.CanAddr() {
  31080. vp := rv.Addr().Interface().(*map[int]int16)
  31081. v, changed := fastpathTV.DecMapIntInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  31082. if changed {
  31083. *vp = v
  31084. }
  31085. } else {
  31086. v := rv.Interface().(map[int]int16)
  31087. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, f.d)
  31088. }
  31089. }
  31090. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, checkNil bool, d *Decoder) {
  31091. v, changed := f.DecMapIntInt16V(*vp, checkNil, true, d)
  31092. if changed {
  31093. *vp = v
  31094. }
  31095. }
  31096. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, checkNil bool, canChange bool,
  31097. d *Decoder) (_ map[int]int16, changed bool) {
  31098. dd := d.d
  31099. cr := d.cr
  31100. if checkNil && dd.TryDecodeAsNil() {
  31101. if v != nil {
  31102. changed = true
  31103. }
  31104. return nil, changed
  31105. }
  31106. containerLen := dd.ReadMapStart()
  31107. if canChange && v == nil {
  31108. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31109. v = make(map[int]int16, xlen)
  31110. changed = true
  31111. }
  31112. var mk int
  31113. var mv int16
  31114. if containerLen > 0 {
  31115. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31129. for j := 0; !dd.CheckBreak(); j++ {
  31130. if cr != nil {
  31131. cr.sendContainerState(containerMapKey)
  31132. }
  31133. mk = int(dd.DecodeInt(intBitsize))
  31134. if cr != nil {
  31135. cr.sendContainerState(containerMapValue)
  31136. }
  31137. mv = int16(dd.DecodeInt(16))
  31138. if v != nil {
  31139. v[mk] = mv
  31140. }
  31141. }
  31142. }
  31143. if cr != nil {
  31144. cr.sendContainerState(containerMapEnd)
  31145. }
  31146. return v, changed
  31147. }
  31148. func (f *decFnInfo) fastpathDecMapIntInt32R(rv reflect.Value) {
  31149. if rv.CanAddr() {
  31150. vp := rv.Addr().Interface().(*map[int]int32)
  31151. v, changed := fastpathTV.DecMapIntInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  31152. if changed {
  31153. *vp = v
  31154. }
  31155. } else {
  31156. v := rv.Interface().(map[int]int32)
  31157. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, f.d)
  31158. }
  31159. }
  31160. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, checkNil bool, d *Decoder) {
  31161. v, changed := f.DecMapIntInt32V(*vp, checkNil, true, d)
  31162. if changed {
  31163. *vp = v
  31164. }
  31165. }
  31166. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, checkNil bool, canChange bool,
  31167. d *Decoder) (_ map[int]int32, changed bool) {
  31168. dd := d.d
  31169. cr := d.cr
  31170. if checkNil && dd.TryDecodeAsNil() {
  31171. if v != nil {
  31172. changed = true
  31173. }
  31174. return nil, changed
  31175. }
  31176. containerLen := dd.ReadMapStart()
  31177. if canChange && v == nil {
  31178. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31179. v = make(map[int]int32, xlen)
  31180. changed = true
  31181. }
  31182. var mk int
  31183. var mv int32
  31184. if containerLen > 0 {
  31185. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31199. for j := 0; !dd.CheckBreak(); j++ {
  31200. if cr != nil {
  31201. cr.sendContainerState(containerMapKey)
  31202. }
  31203. mk = int(dd.DecodeInt(intBitsize))
  31204. if cr != nil {
  31205. cr.sendContainerState(containerMapValue)
  31206. }
  31207. mv = int32(dd.DecodeInt(32))
  31208. if v != nil {
  31209. v[mk] = mv
  31210. }
  31211. }
  31212. }
  31213. if cr != nil {
  31214. cr.sendContainerState(containerMapEnd)
  31215. }
  31216. return v, changed
  31217. }
  31218. func (f *decFnInfo) fastpathDecMapIntInt64R(rv reflect.Value) {
  31219. if rv.CanAddr() {
  31220. vp := rv.Addr().Interface().(*map[int]int64)
  31221. v, changed := fastpathTV.DecMapIntInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  31222. if changed {
  31223. *vp = v
  31224. }
  31225. } else {
  31226. v := rv.Interface().(map[int]int64)
  31227. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, f.d)
  31228. }
  31229. }
  31230. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, checkNil bool, d *Decoder) {
  31231. v, changed := f.DecMapIntInt64V(*vp, checkNil, true, d)
  31232. if changed {
  31233. *vp = v
  31234. }
  31235. }
  31236. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, checkNil bool, canChange bool,
  31237. d *Decoder) (_ map[int]int64, changed bool) {
  31238. dd := d.d
  31239. cr := d.cr
  31240. if checkNil && dd.TryDecodeAsNil() {
  31241. if v != nil {
  31242. changed = true
  31243. }
  31244. return nil, changed
  31245. }
  31246. containerLen := dd.ReadMapStart()
  31247. if canChange && v == nil {
  31248. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31249. v = make(map[int]int64, xlen)
  31250. changed = true
  31251. }
  31252. var mk int
  31253. var mv int64
  31254. if containerLen > 0 {
  31255. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31269. for j := 0; !dd.CheckBreak(); j++ {
  31270. if cr != nil {
  31271. cr.sendContainerState(containerMapKey)
  31272. }
  31273. mk = int(dd.DecodeInt(intBitsize))
  31274. if cr != nil {
  31275. cr.sendContainerState(containerMapValue)
  31276. }
  31277. mv = dd.DecodeInt(64)
  31278. if v != nil {
  31279. v[mk] = mv
  31280. }
  31281. }
  31282. }
  31283. if cr != nil {
  31284. cr.sendContainerState(containerMapEnd)
  31285. }
  31286. return v, changed
  31287. }
  31288. func (f *decFnInfo) fastpathDecMapIntFloat32R(rv reflect.Value) {
  31289. if rv.CanAddr() {
  31290. vp := rv.Addr().Interface().(*map[int]float32)
  31291. v, changed := fastpathTV.DecMapIntFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  31292. if changed {
  31293. *vp = v
  31294. }
  31295. } else {
  31296. v := rv.Interface().(map[int]float32)
  31297. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, f.d)
  31298. }
  31299. }
  31300. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, checkNil bool, d *Decoder) {
  31301. v, changed := f.DecMapIntFloat32V(*vp, checkNil, true, d)
  31302. if changed {
  31303. *vp = v
  31304. }
  31305. }
  31306. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, checkNil bool, canChange bool,
  31307. d *Decoder) (_ map[int]float32, changed bool) {
  31308. dd := d.d
  31309. cr := d.cr
  31310. if checkNil && dd.TryDecodeAsNil() {
  31311. if v != nil {
  31312. changed = true
  31313. }
  31314. return nil, changed
  31315. }
  31316. containerLen := dd.ReadMapStart()
  31317. if canChange && v == nil {
  31318. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31319. v = make(map[int]float32, xlen)
  31320. changed = true
  31321. }
  31322. var mk int
  31323. var mv float32
  31324. if containerLen > 0 {
  31325. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31339. for j := 0; !dd.CheckBreak(); j++ {
  31340. if cr != nil {
  31341. cr.sendContainerState(containerMapKey)
  31342. }
  31343. mk = int(dd.DecodeInt(intBitsize))
  31344. if cr != nil {
  31345. cr.sendContainerState(containerMapValue)
  31346. }
  31347. mv = float32(dd.DecodeFloat(true))
  31348. if v != nil {
  31349. v[mk] = mv
  31350. }
  31351. }
  31352. }
  31353. if cr != nil {
  31354. cr.sendContainerState(containerMapEnd)
  31355. }
  31356. return v, changed
  31357. }
  31358. func (f *decFnInfo) fastpathDecMapIntFloat64R(rv reflect.Value) {
  31359. if rv.CanAddr() {
  31360. vp := rv.Addr().Interface().(*map[int]float64)
  31361. v, changed := fastpathTV.DecMapIntFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  31362. if changed {
  31363. *vp = v
  31364. }
  31365. } else {
  31366. v := rv.Interface().(map[int]float64)
  31367. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, f.d)
  31368. }
  31369. }
  31370. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, checkNil bool, d *Decoder) {
  31371. v, changed := f.DecMapIntFloat64V(*vp, checkNil, true, d)
  31372. if changed {
  31373. *vp = v
  31374. }
  31375. }
  31376. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, checkNil bool, canChange bool,
  31377. d *Decoder) (_ map[int]float64, changed bool) {
  31378. dd := d.d
  31379. cr := d.cr
  31380. if checkNil && dd.TryDecodeAsNil() {
  31381. if v != nil {
  31382. changed = true
  31383. }
  31384. return nil, changed
  31385. }
  31386. containerLen := dd.ReadMapStart()
  31387. if canChange && v == nil {
  31388. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31389. v = make(map[int]float64, xlen)
  31390. changed = true
  31391. }
  31392. var mk int
  31393. var mv float64
  31394. if containerLen > 0 {
  31395. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31409. for j := 0; !dd.CheckBreak(); j++ {
  31410. if cr != nil {
  31411. cr.sendContainerState(containerMapKey)
  31412. }
  31413. mk = int(dd.DecodeInt(intBitsize))
  31414. if cr != nil {
  31415. cr.sendContainerState(containerMapValue)
  31416. }
  31417. mv = dd.DecodeFloat(false)
  31418. if v != nil {
  31419. v[mk] = mv
  31420. }
  31421. }
  31422. }
  31423. if cr != nil {
  31424. cr.sendContainerState(containerMapEnd)
  31425. }
  31426. return v, changed
  31427. }
  31428. func (f *decFnInfo) fastpathDecMapIntBoolR(rv reflect.Value) {
  31429. if rv.CanAddr() {
  31430. vp := rv.Addr().Interface().(*map[int]bool)
  31431. v, changed := fastpathTV.DecMapIntBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  31432. if changed {
  31433. *vp = v
  31434. }
  31435. } else {
  31436. v := rv.Interface().(map[int]bool)
  31437. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, f.d)
  31438. }
  31439. }
  31440. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, checkNil bool, d *Decoder) {
  31441. v, changed := f.DecMapIntBoolV(*vp, checkNil, true, d)
  31442. if changed {
  31443. *vp = v
  31444. }
  31445. }
  31446. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, checkNil bool, canChange bool,
  31447. d *Decoder) (_ map[int]bool, changed bool) {
  31448. dd := d.d
  31449. cr := d.cr
  31450. if checkNil && dd.TryDecodeAsNil() {
  31451. if v != nil {
  31452. changed = true
  31453. }
  31454. return nil, changed
  31455. }
  31456. containerLen := dd.ReadMapStart()
  31457. if canChange && v == nil {
  31458. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31459. v = make(map[int]bool, xlen)
  31460. changed = true
  31461. }
  31462. var mk int
  31463. var mv bool
  31464. if containerLen > 0 {
  31465. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31479. for j := 0; !dd.CheckBreak(); j++ {
  31480. if cr != nil {
  31481. cr.sendContainerState(containerMapKey)
  31482. }
  31483. mk = int(dd.DecodeInt(intBitsize))
  31484. if cr != nil {
  31485. cr.sendContainerState(containerMapValue)
  31486. }
  31487. mv = dd.DecodeBool()
  31488. if v != nil {
  31489. v[mk] = mv
  31490. }
  31491. }
  31492. }
  31493. if cr != nil {
  31494. cr.sendContainerState(containerMapEnd)
  31495. }
  31496. return v, changed
  31497. }
  31498. func (f *decFnInfo) fastpathDecMapInt8IntfR(rv reflect.Value) {
  31499. if rv.CanAddr() {
  31500. vp := rv.Addr().Interface().(*map[int8]interface{})
  31501. v, changed := fastpathTV.DecMapInt8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  31502. if changed {
  31503. *vp = v
  31504. }
  31505. } else {
  31506. v := rv.Interface().(map[int8]interface{})
  31507. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, f.d)
  31508. }
  31509. }
  31510. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, checkNil bool, d *Decoder) {
  31511. v, changed := f.DecMapInt8IntfV(*vp, checkNil, true, d)
  31512. if changed {
  31513. *vp = v
  31514. }
  31515. }
  31516. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, checkNil bool, canChange bool,
  31517. d *Decoder) (_ map[int8]interface{}, changed bool) {
  31518. dd := d.d
  31519. cr := d.cr
  31520. if checkNil && dd.TryDecodeAsNil() {
  31521. if v != nil {
  31522. changed = true
  31523. }
  31524. return nil, changed
  31525. }
  31526. containerLen := dd.ReadMapStart()
  31527. if canChange && v == nil {
  31528. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  31529. v = make(map[int8]interface{}, xlen)
  31530. changed = true
  31531. }
  31532. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  31533. var mk int8
  31534. var mv interface{}
  31535. if containerLen > 0 {
  31536. for j := 0; j < containerLen; j++ {
  31537. if cr != nil {
  31538. cr.sendContainerState(containerMapKey)
  31539. }
  31540. mk = int8(dd.DecodeInt(8))
  31541. if cr != nil {
  31542. cr.sendContainerState(containerMapValue)
  31543. }
  31544. if mapGet {
  31545. mv = v[mk]
  31546. } else {
  31547. mv = nil
  31548. }
  31549. d.decode(&mv)
  31550. if v != nil {
  31551. v[mk] = mv
  31552. }
  31553. }
  31554. } else if containerLen < 0 {
  31555. for j := 0; !dd.CheckBreak(); j++ {
  31556. if cr != nil {
  31557. cr.sendContainerState(containerMapKey)
  31558. }
  31559. mk = int8(dd.DecodeInt(8))
  31560. if cr != nil {
  31561. cr.sendContainerState(containerMapValue)
  31562. }
  31563. if mapGet {
  31564. mv = v[mk]
  31565. } else {
  31566. mv = nil
  31567. }
  31568. d.decode(&mv)
  31569. if v != nil {
  31570. v[mk] = mv
  31571. }
  31572. }
  31573. }
  31574. if cr != nil {
  31575. cr.sendContainerState(containerMapEnd)
  31576. }
  31577. return v, changed
  31578. }
  31579. func (f *decFnInfo) fastpathDecMapInt8StringR(rv reflect.Value) {
  31580. if rv.CanAddr() {
  31581. vp := rv.Addr().Interface().(*map[int8]string)
  31582. v, changed := fastpathTV.DecMapInt8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  31583. if changed {
  31584. *vp = v
  31585. }
  31586. } else {
  31587. v := rv.Interface().(map[int8]string)
  31588. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, f.d)
  31589. }
  31590. }
  31591. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, checkNil bool, d *Decoder) {
  31592. v, changed := f.DecMapInt8StringV(*vp, checkNil, true, d)
  31593. if changed {
  31594. *vp = v
  31595. }
  31596. }
  31597. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, checkNil bool, canChange bool,
  31598. d *Decoder) (_ map[int8]string, changed bool) {
  31599. dd := d.d
  31600. cr := d.cr
  31601. if checkNil && dd.TryDecodeAsNil() {
  31602. if v != nil {
  31603. changed = true
  31604. }
  31605. return nil, changed
  31606. }
  31607. containerLen := dd.ReadMapStart()
  31608. if canChange && v == nil {
  31609. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  31610. v = make(map[int8]string, xlen)
  31611. changed = true
  31612. }
  31613. var mk int8
  31614. var mv string
  31615. if containerLen > 0 {
  31616. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31630. for j := 0; !dd.CheckBreak(); j++ {
  31631. if cr != nil {
  31632. cr.sendContainerState(containerMapKey)
  31633. }
  31634. mk = int8(dd.DecodeInt(8))
  31635. if cr != nil {
  31636. cr.sendContainerState(containerMapValue)
  31637. }
  31638. mv = dd.DecodeString()
  31639. if v != nil {
  31640. v[mk] = mv
  31641. }
  31642. }
  31643. }
  31644. if cr != nil {
  31645. cr.sendContainerState(containerMapEnd)
  31646. }
  31647. return v, changed
  31648. }
  31649. func (f *decFnInfo) fastpathDecMapInt8UintR(rv reflect.Value) {
  31650. if rv.CanAddr() {
  31651. vp := rv.Addr().Interface().(*map[int8]uint)
  31652. v, changed := fastpathTV.DecMapInt8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  31653. if changed {
  31654. *vp = v
  31655. }
  31656. } else {
  31657. v := rv.Interface().(map[int8]uint)
  31658. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, f.d)
  31659. }
  31660. }
  31661. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, checkNil bool, d *Decoder) {
  31662. v, changed := f.DecMapInt8UintV(*vp, checkNil, true, d)
  31663. if changed {
  31664. *vp = v
  31665. }
  31666. }
  31667. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, checkNil bool, canChange bool,
  31668. d *Decoder) (_ map[int8]uint, changed bool) {
  31669. dd := d.d
  31670. cr := d.cr
  31671. if checkNil && dd.TryDecodeAsNil() {
  31672. if v != nil {
  31673. changed = true
  31674. }
  31675. return nil, changed
  31676. }
  31677. containerLen := dd.ReadMapStart()
  31678. if canChange && v == nil {
  31679. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31680. v = make(map[int8]uint, xlen)
  31681. changed = true
  31682. }
  31683. var mk int8
  31684. var mv uint
  31685. if containerLen > 0 {
  31686. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31700. for j := 0; !dd.CheckBreak(); j++ {
  31701. if cr != nil {
  31702. cr.sendContainerState(containerMapKey)
  31703. }
  31704. mk = int8(dd.DecodeInt(8))
  31705. if cr != nil {
  31706. cr.sendContainerState(containerMapValue)
  31707. }
  31708. mv = uint(dd.DecodeUint(uintBitsize))
  31709. if v != nil {
  31710. v[mk] = mv
  31711. }
  31712. }
  31713. }
  31714. if cr != nil {
  31715. cr.sendContainerState(containerMapEnd)
  31716. }
  31717. return v, changed
  31718. }
  31719. func (f *decFnInfo) fastpathDecMapInt8Uint8R(rv reflect.Value) {
  31720. if rv.CanAddr() {
  31721. vp := rv.Addr().Interface().(*map[int8]uint8)
  31722. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  31723. if changed {
  31724. *vp = v
  31725. }
  31726. } else {
  31727. v := rv.Interface().(map[int8]uint8)
  31728. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  31729. }
  31730. }
  31731. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, checkNil bool, d *Decoder) {
  31732. v, changed := f.DecMapInt8Uint8V(*vp, checkNil, true, d)
  31733. if changed {
  31734. *vp = v
  31735. }
  31736. }
  31737. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, checkNil bool, canChange bool,
  31738. d *Decoder) (_ map[int8]uint8, changed bool) {
  31739. dd := d.d
  31740. cr := d.cr
  31741. if checkNil && dd.TryDecodeAsNil() {
  31742. if v != nil {
  31743. changed = true
  31744. }
  31745. return nil, changed
  31746. }
  31747. containerLen := dd.ReadMapStart()
  31748. if canChange && v == nil {
  31749. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  31750. v = make(map[int8]uint8, xlen)
  31751. changed = true
  31752. }
  31753. var mk int8
  31754. var mv uint8
  31755. if containerLen > 0 {
  31756. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31770. for j := 0; !dd.CheckBreak(); j++ {
  31771. if cr != nil {
  31772. cr.sendContainerState(containerMapKey)
  31773. }
  31774. mk = int8(dd.DecodeInt(8))
  31775. if cr != nil {
  31776. cr.sendContainerState(containerMapValue)
  31777. }
  31778. mv = uint8(dd.DecodeUint(8))
  31779. if v != nil {
  31780. v[mk] = mv
  31781. }
  31782. }
  31783. }
  31784. if cr != nil {
  31785. cr.sendContainerState(containerMapEnd)
  31786. }
  31787. return v, changed
  31788. }
  31789. func (f *decFnInfo) fastpathDecMapInt8Uint16R(rv reflect.Value) {
  31790. if rv.CanAddr() {
  31791. vp := rv.Addr().Interface().(*map[int8]uint16)
  31792. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  31793. if changed {
  31794. *vp = v
  31795. }
  31796. } else {
  31797. v := rv.Interface().(map[int8]uint16)
  31798. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  31799. }
  31800. }
  31801. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, checkNil bool, d *Decoder) {
  31802. v, changed := f.DecMapInt8Uint16V(*vp, checkNil, true, d)
  31803. if changed {
  31804. *vp = v
  31805. }
  31806. }
  31807. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, checkNil bool, canChange bool,
  31808. d *Decoder) (_ map[int8]uint16, changed bool) {
  31809. dd := d.d
  31810. cr := d.cr
  31811. if checkNil && dd.TryDecodeAsNil() {
  31812. if v != nil {
  31813. changed = true
  31814. }
  31815. return nil, changed
  31816. }
  31817. containerLen := dd.ReadMapStart()
  31818. if canChange && v == nil {
  31819. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31820. v = make(map[int8]uint16, xlen)
  31821. changed = true
  31822. }
  31823. var mk int8
  31824. var mv uint16
  31825. if containerLen > 0 {
  31826. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31840. for j := 0; !dd.CheckBreak(); j++ {
  31841. if cr != nil {
  31842. cr.sendContainerState(containerMapKey)
  31843. }
  31844. mk = int8(dd.DecodeInt(8))
  31845. if cr != nil {
  31846. cr.sendContainerState(containerMapValue)
  31847. }
  31848. mv = uint16(dd.DecodeUint(16))
  31849. if v != nil {
  31850. v[mk] = mv
  31851. }
  31852. }
  31853. }
  31854. if cr != nil {
  31855. cr.sendContainerState(containerMapEnd)
  31856. }
  31857. return v, changed
  31858. }
  31859. func (f *decFnInfo) fastpathDecMapInt8Uint32R(rv reflect.Value) {
  31860. if rv.CanAddr() {
  31861. vp := rv.Addr().Interface().(*map[int8]uint32)
  31862. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  31863. if changed {
  31864. *vp = v
  31865. }
  31866. } else {
  31867. v := rv.Interface().(map[int8]uint32)
  31868. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  31869. }
  31870. }
  31871. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, checkNil bool, d *Decoder) {
  31872. v, changed := f.DecMapInt8Uint32V(*vp, checkNil, true, d)
  31873. if changed {
  31874. *vp = v
  31875. }
  31876. }
  31877. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, checkNil bool, canChange bool,
  31878. d *Decoder) (_ map[int8]uint32, changed bool) {
  31879. dd := d.d
  31880. cr := d.cr
  31881. if checkNil && dd.TryDecodeAsNil() {
  31882. if v != nil {
  31883. changed = true
  31884. }
  31885. return nil, changed
  31886. }
  31887. containerLen := dd.ReadMapStart()
  31888. if canChange && v == nil {
  31889. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31890. v = make(map[int8]uint32, xlen)
  31891. changed = true
  31892. }
  31893. var mk int8
  31894. var mv uint32
  31895. if containerLen > 0 {
  31896. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31910. for j := 0; !dd.CheckBreak(); j++ {
  31911. if cr != nil {
  31912. cr.sendContainerState(containerMapKey)
  31913. }
  31914. mk = int8(dd.DecodeInt(8))
  31915. if cr != nil {
  31916. cr.sendContainerState(containerMapValue)
  31917. }
  31918. mv = uint32(dd.DecodeUint(32))
  31919. if v != nil {
  31920. v[mk] = mv
  31921. }
  31922. }
  31923. }
  31924. if cr != nil {
  31925. cr.sendContainerState(containerMapEnd)
  31926. }
  31927. return v, changed
  31928. }
  31929. func (f *decFnInfo) fastpathDecMapInt8Uint64R(rv reflect.Value) {
  31930. if rv.CanAddr() {
  31931. vp := rv.Addr().Interface().(*map[int8]uint64)
  31932. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  31933. if changed {
  31934. *vp = v
  31935. }
  31936. } else {
  31937. v := rv.Interface().(map[int8]uint64)
  31938. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  31939. }
  31940. }
  31941. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, checkNil bool, d *Decoder) {
  31942. v, changed := f.DecMapInt8Uint64V(*vp, checkNil, true, d)
  31943. if changed {
  31944. *vp = v
  31945. }
  31946. }
  31947. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, checkNil bool, canChange bool,
  31948. d *Decoder) (_ map[int8]uint64, changed bool) {
  31949. dd := d.d
  31950. cr := d.cr
  31951. if checkNil && dd.TryDecodeAsNil() {
  31952. if v != nil {
  31953. changed = true
  31954. }
  31955. return nil, changed
  31956. }
  31957. containerLen := dd.ReadMapStart()
  31958. if canChange && v == nil {
  31959. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31960. v = make(map[int8]uint64, xlen)
  31961. changed = true
  31962. }
  31963. var mk int8
  31964. var mv uint64
  31965. if containerLen > 0 {
  31966. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  31980. for j := 0; !dd.CheckBreak(); j++ {
  31981. if cr != nil {
  31982. cr.sendContainerState(containerMapKey)
  31983. }
  31984. mk = int8(dd.DecodeInt(8))
  31985. if cr != nil {
  31986. cr.sendContainerState(containerMapValue)
  31987. }
  31988. mv = dd.DecodeUint(64)
  31989. if v != nil {
  31990. v[mk] = mv
  31991. }
  31992. }
  31993. }
  31994. if cr != nil {
  31995. cr.sendContainerState(containerMapEnd)
  31996. }
  31997. return v, changed
  31998. }
  31999. func (f *decFnInfo) fastpathDecMapInt8UintptrR(rv reflect.Value) {
  32000. if rv.CanAddr() {
  32001. vp := rv.Addr().Interface().(*map[int8]uintptr)
  32002. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  32003. if changed {
  32004. *vp = v
  32005. }
  32006. } else {
  32007. v := rv.Interface().(map[int8]uintptr)
  32008. fastpathTV.DecMapInt8UintptrV(v, fastpathCheckNilFalse, false, f.d)
  32009. }
  32010. }
  32011. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, checkNil bool, d *Decoder) {
  32012. v, changed := f.DecMapInt8UintptrV(*vp, checkNil, true, d)
  32013. if changed {
  32014. *vp = v
  32015. }
  32016. }
  32017. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, checkNil bool, canChange bool,
  32018. d *Decoder) (_ map[int8]uintptr, changed bool) {
  32019. dd := d.d
  32020. cr := d.cr
  32021. if checkNil && dd.TryDecodeAsNil() {
  32022. if v != nil {
  32023. changed = true
  32024. }
  32025. return nil, changed
  32026. }
  32027. containerLen := dd.ReadMapStart()
  32028. if canChange && v == nil {
  32029. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32030. v = make(map[int8]uintptr, xlen)
  32031. changed = true
  32032. }
  32033. var mk int8
  32034. var mv uintptr
  32035. if containerLen > 0 {
  32036. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32050. for j := 0; !dd.CheckBreak(); j++ {
  32051. if cr != nil {
  32052. cr.sendContainerState(containerMapKey)
  32053. }
  32054. mk = int8(dd.DecodeInt(8))
  32055. if cr != nil {
  32056. cr.sendContainerState(containerMapValue)
  32057. }
  32058. mv = uintptr(dd.DecodeUint(uintBitsize))
  32059. if v != nil {
  32060. v[mk] = mv
  32061. }
  32062. }
  32063. }
  32064. if cr != nil {
  32065. cr.sendContainerState(containerMapEnd)
  32066. }
  32067. return v, changed
  32068. }
  32069. func (f *decFnInfo) fastpathDecMapInt8IntR(rv reflect.Value) {
  32070. if rv.CanAddr() {
  32071. vp := rv.Addr().Interface().(*map[int8]int)
  32072. v, changed := fastpathTV.DecMapInt8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  32073. if changed {
  32074. *vp = v
  32075. }
  32076. } else {
  32077. v := rv.Interface().(map[int8]int)
  32078. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, f.d)
  32079. }
  32080. }
  32081. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, checkNil bool, d *Decoder) {
  32082. v, changed := f.DecMapInt8IntV(*vp, checkNil, true, d)
  32083. if changed {
  32084. *vp = v
  32085. }
  32086. }
  32087. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, checkNil bool, canChange bool,
  32088. d *Decoder) (_ map[int8]int, changed bool) {
  32089. dd := d.d
  32090. cr := d.cr
  32091. if checkNil && dd.TryDecodeAsNil() {
  32092. if v != nil {
  32093. changed = true
  32094. }
  32095. return nil, changed
  32096. }
  32097. containerLen := dd.ReadMapStart()
  32098. if canChange && v == nil {
  32099. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32100. v = make(map[int8]int, xlen)
  32101. changed = true
  32102. }
  32103. var mk int8
  32104. var mv int
  32105. if containerLen > 0 {
  32106. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32120. for j := 0; !dd.CheckBreak(); j++ {
  32121. if cr != nil {
  32122. cr.sendContainerState(containerMapKey)
  32123. }
  32124. mk = int8(dd.DecodeInt(8))
  32125. if cr != nil {
  32126. cr.sendContainerState(containerMapValue)
  32127. }
  32128. mv = int(dd.DecodeInt(intBitsize))
  32129. if v != nil {
  32130. v[mk] = mv
  32131. }
  32132. }
  32133. }
  32134. if cr != nil {
  32135. cr.sendContainerState(containerMapEnd)
  32136. }
  32137. return v, changed
  32138. }
  32139. func (f *decFnInfo) fastpathDecMapInt8Int8R(rv reflect.Value) {
  32140. if rv.CanAddr() {
  32141. vp := rv.Addr().Interface().(*map[int8]int8)
  32142. v, changed := fastpathTV.DecMapInt8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  32143. if changed {
  32144. *vp = v
  32145. }
  32146. } else {
  32147. v := rv.Interface().(map[int8]int8)
  32148. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, f.d)
  32149. }
  32150. }
  32151. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, checkNil bool, d *Decoder) {
  32152. v, changed := f.DecMapInt8Int8V(*vp, checkNil, true, d)
  32153. if changed {
  32154. *vp = v
  32155. }
  32156. }
  32157. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, checkNil bool, canChange bool,
  32158. d *Decoder) (_ map[int8]int8, changed bool) {
  32159. dd := d.d
  32160. cr := d.cr
  32161. if checkNil && dd.TryDecodeAsNil() {
  32162. if v != nil {
  32163. changed = true
  32164. }
  32165. return nil, changed
  32166. }
  32167. containerLen := dd.ReadMapStart()
  32168. if canChange && v == nil {
  32169. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  32170. v = make(map[int8]int8, xlen)
  32171. changed = true
  32172. }
  32173. var mk int8
  32174. var mv int8
  32175. if containerLen > 0 {
  32176. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32190. for j := 0; !dd.CheckBreak(); j++ {
  32191. if cr != nil {
  32192. cr.sendContainerState(containerMapKey)
  32193. }
  32194. mk = int8(dd.DecodeInt(8))
  32195. if cr != nil {
  32196. cr.sendContainerState(containerMapValue)
  32197. }
  32198. mv = int8(dd.DecodeInt(8))
  32199. if v != nil {
  32200. v[mk] = mv
  32201. }
  32202. }
  32203. }
  32204. if cr != nil {
  32205. cr.sendContainerState(containerMapEnd)
  32206. }
  32207. return v, changed
  32208. }
  32209. func (f *decFnInfo) fastpathDecMapInt8Int16R(rv reflect.Value) {
  32210. if rv.CanAddr() {
  32211. vp := rv.Addr().Interface().(*map[int8]int16)
  32212. v, changed := fastpathTV.DecMapInt8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  32213. if changed {
  32214. *vp = v
  32215. }
  32216. } else {
  32217. v := rv.Interface().(map[int8]int16)
  32218. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, f.d)
  32219. }
  32220. }
  32221. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, checkNil bool, d *Decoder) {
  32222. v, changed := f.DecMapInt8Int16V(*vp, checkNil, true, d)
  32223. if changed {
  32224. *vp = v
  32225. }
  32226. }
  32227. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, checkNil bool, canChange bool,
  32228. d *Decoder) (_ map[int8]int16, changed bool) {
  32229. dd := d.d
  32230. cr := d.cr
  32231. if checkNil && dd.TryDecodeAsNil() {
  32232. if v != nil {
  32233. changed = true
  32234. }
  32235. return nil, changed
  32236. }
  32237. containerLen := dd.ReadMapStart()
  32238. if canChange && v == nil {
  32239. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  32240. v = make(map[int8]int16, xlen)
  32241. changed = true
  32242. }
  32243. var mk int8
  32244. var mv int16
  32245. if containerLen > 0 {
  32246. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32260. for j := 0; !dd.CheckBreak(); j++ {
  32261. if cr != nil {
  32262. cr.sendContainerState(containerMapKey)
  32263. }
  32264. mk = int8(dd.DecodeInt(8))
  32265. if cr != nil {
  32266. cr.sendContainerState(containerMapValue)
  32267. }
  32268. mv = int16(dd.DecodeInt(16))
  32269. if v != nil {
  32270. v[mk] = mv
  32271. }
  32272. }
  32273. }
  32274. if cr != nil {
  32275. cr.sendContainerState(containerMapEnd)
  32276. }
  32277. return v, changed
  32278. }
  32279. func (f *decFnInfo) fastpathDecMapInt8Int32R(rv reflect.Value) {
  32280. if rv.CanAddr() {
  32281. vp := rv.Addr().Interface().(*map[int8]int32)
  32282. v, changed := fastpathTV.DecMapInt8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  32283. if changed {
  32284. *vp = v
  32285. }
  32286. } else {
  32287. v := rv.Interface().(map[int8]int32)
  32288. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, f.d)
  32289. }
  32290. }
  32291. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, checkNil bool, d *Decoder) {
  32292. v, changed := f.DecMapInt8Int32V(*vp, checkNil, true, d)
  32293. if changed {
  32294. *vp = v
  32295. }
  32296. }
  32297. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, checkNil bool, canChange bool,
  32298. d *Decoder) (_ map[int8]int32, changed bool) {
  32299. dd := d.d
  32300. cr := d.cr
  32301. if checkNil && dd.TryDecodeAsNil() {
  32302. if v != nil {
  32303. changed = true
  32304. }
  32305. return nil, changed
  32306. }
  32307. containerLen := dd.ReadMapStart()
  32308. if canChange && v == nil {
  32309. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32310. v = make(map[int8]int32, xlen)
  32311. changed = true
  32312. }
  32313. var mk int8
  32314. var mv int32
  32315. if containerLen > 0 {
  32316. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32330. for j := 0; !dd.CheckBreak(); j++ {
  32331. if cr != nil {
  32332. cr.sendContainerState(containerMapKey)
  32333. }
  32334. mk = int8(dd.DecodeInt(8))
  32335. if cr != nil {
  32336. cr.sendContainerState(containerMapValue)
  32337. }
  32338. mv = int32(dd.DecodeInt(32))
  32339. if v != nil {
  32340. v[mk] = mv
  32341. }
  32342. }
  32343. }
  32344. if cr != nil {
  32345. cr.sendContainerState(containerMapEnd)
  32346. }
  32347. return v, changed
  32348. }
  32349. func (f *decFnInfo) fastpathDecMapInt8Int64R(rv reflect.Value) {
  32350. if rv.CanAddr() {
  32351. vp := rv.Addr().Interface().(*map[int8]int64)
  32352. v, changed := fastpathTV.DecMapInt8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  32353. if changed {
  32354. *vp = v
  32355. }
  32356. } else {
  32357. v := rv.Interface().(map[int8]int64)
  32358. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, f.d)
  32359. }
  32360. }
  32361. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, checkNil bool, d *Decoder) {
  32362. v, changed := f.DecMapInt8Int64V(*vp, checkNil, true, d)
  32363. if changed {
  32364. *vp = v
  32365. }
  32366. }
  32367. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, checkNil bool, canChange bool,
  32368. d *Decoder) (_ map[int8]int64, changed bool) {
  32369. dd := d.d
  32370. cr := d.cr
  32371. if checkNil && dd.TryDecodeAsNil() {
  32372. if v != nil {
  32373. changed = true
  32374. }
  32375. return nil, changed
  32376. }
  32377. containerLen := dd.ReadMapStart()
  32378. if canChange && v == nil {
  32379. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32380. v = make(map[int8]int64, xlen)
  32381. changed = true
  32382. }
  32383. var mk int8
  32384. var mv int64
  32385. if containerLen > 0 {
  32386. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32400. for j := 0; !dd.CheckBreak(); j++ {
  32401. if cr != nil {
  32402. cr.sendContainerState(containerMapKey)
  32403. }
  32404. mk = int8(dd.DecodeInt(8))
  32405. if cr != nil {
  32406. cr.sendContainerState(containerMapValue)
  32407. }
  32408. mv = dd.DecodeInt(64)
  32409. if v != nil {
  32410. v[mk] = mv
  32411. }
  32412. }
  32413. }
  32414. if cr != nil {
  32415. cr.sendContainerState(containerMapEnd)
  32416. }
  32417. return v, changed
  32418. }
  32419. func (f *decFnInfo) fastpathDecMapInt8Float32R(rv reflect.Value) {
  32420. if rv.CanAddr() {
  32421. vp := rv.Addr().Interface().(*map[int8]float32)
  32422. v, changed := fastpathTV.DecMapInt8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  32423. if changed {
  32424. *vp = v
  32425. }
  32426. } else {
  32427. v := rv.Interface().(map[int8]float32)
  32428. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, f.d)
  32429. }
  32430. }
  32431. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, checkNil bool, d *Decoder) {
  32432. v, changed := f.DecMapInt8Float32V(*vp, checkNil, true, d)
  32433. if changed {
  32434. *vp = v
  32435. }
  32436. }
  32437. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, checkNil bool, canChange bool,
  32438. d *Decoder) (_ map[int8]float32, changed bool) {
  32439. dd := d.d
  32440. cr := d.cr
  32441. if checkNil && dd.TryDecodeAsNil() {
  32442. if v != nil {
  32443. changed = true
  32444. }
  32445. return nil, changed
  32446. }
  32447. containerLen := dd.ReadMapStart()
  32448. if canChange && v == nil {
  32449. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32450. v = make(map[int8]float32, xlen)
  32451. changed = true
  32452. }
  32453. var mk int8
  32454. var mv float32
  32455. if containerLen > 0 {
  32456. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32470. for j := 0; !dd.CheckBreak(); j++ {
  32471. if cr != nil {
  32472. cr.sendContainerState(containerMapKey)
  32473. }
  32474. mk = int8(dd.DecodeInt(8))
  32475. if cr != nil {
  32476. cr.sendContainerState(containerMapValue)
  32477. }
  32478. mv = float32(dd.DecodeFloat(true))
  32479. if v != nil {
  32480. v[mk] = mv
  32481. }
  32482. }
  32483. }
  32484. if cr != nil {
  32485. cr.sendContainerState(containerMapEnd)
  32486. }
  32487. return v, changed
  32488. }
  32489. func (f *decFnInfo) fastpathDecMapInt8Float64R(rv reflect.Value) {
  32490. if rv.CanAddr() {
  32491. vp := rv.Addr().Interface().(*map[int8]float64)
  32492. v, changed := fastpathTV.DecMapInt8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  32493. if changed {
  32494. *vp = v
  32495. }
  32496. } else {
  32497. v := rv.Interface().(map[int8]float64)
  32498. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, f.d)
  32499. }
  32500. }
  32501. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, checkNil bool, d *Decoder) {
  32502. v, changed := f.DecMapInt8Float64V(*vp, checkNil, true, d)
  32503. if changed {
  32504. *vp = v
  32505. }
  32506. }
  32507. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, checkNil bool, canChange bool,
  32508. d *Decoder) (_ map[int8]float64, changed bool) {
  32509. dd := d.d
  32510. cr := d.cr
  32511. if checkNil && dd.TryDecodeAsNil() {
  32512. if v != nil {
  32513. changed = true
  32514. }
  32515. return nil, changed
  32516. }
  32517. containerLen := dd.ReadMapStart()
  32518. if canChange && v == nil {
  32519. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32520. v = make(map[int8]float64, xlen)
  32521. changed = true
  32522. }
  32523. var mk int8
  32524. var mv float64
  32525. if containerLen > 0 {
  32526. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32540. for j := 0; !dd.CheckBreak(); j++ {
  32541. if cr != nil {
  32542. cr.sendContainerState(containerMapKey)
  32543. }
  32544. mk = int8(dd.DecodeInt(8))
  32545. if cr != nil {
  32546. cr.sendContainerState(containerMapValue)
  32547. }
  32548. mv = dd.DecodeFloat(false)
  32549. if v != nil {
  32550. v[mk] = mv
  32551. }
  32552. }
  32553. }
  32554. if cr != nil {
  32555. cr.sendContainerState(containerMapEnd)
  32556. }
  32557. return v, changed
  32558. }
  32559. func (f *decFnInfo) fastpathDecMapInt8BoolR(rv reflect.Value) {
  32560. if rv.CanAddr() {
  32561. vp := rv.Addr().Interface().(*map[int8]bool)
  32562. v, changed := fastpathTV.DecMapInt8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  32563. if changed {
  32564. *vp = v
  32565. }
  32566. } else {
  32567. v := rv.Interface().(map[int8]bool)
  32568. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, f.d)
  32569. }
  32570. }
  32571. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, checkNil bool, d *Decoder) {
  32572. v, changed := f.DecMapInt8BoolV(*vp, checkNil, true, d)
  32573. if changed {
  32574. *vp = v
  32575. }
  32576. }
  32577. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, checkNil bool, canChange bool,
  32578. d *Decoder) (_ map[int8]bool, changed bool) {
  32579. dd := d.d
  32580. cr := d.cr
  32581. if checkNil && dd.TryDecodeAsNil() {
  32582. if v != nil {
  32583. changed = true
  32584. }
  32585. return nil, changed
  32586. }
  32587. containerLen := dd.ReadMapStart()
  32588. if canChange && v == nil {
  32589. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  32590. v = make(map[int8]bool, xlen)
  32591. changed = true
  32592. }
  32593. var mk int8
  32594. var mv bool
  32595. if containerLen > 0 {
  32596. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32610. for j := 0; !dd.CheckBreak(); j++ {
  32611. if cr != nil {
  32612. cr.sendContainerState(containerMapKey)
  32613. }
  32614. mk = int8(dd.DecodeInt(8))
  32615. if cr != nil {
  32616. cr.sendContainerState(containerMapValue)
  32617. }
  32618. mv = dd.DecodeBool()
  32619. if v != nil {
  32620. v[mk] = mv
  32621. }
  32622. }
  32623. }
  32624. if cr != nil {
  32625. cr.sendContainerState(containerMapEnd)
  32626. }
  32627. return v, changed
  32628. }
  32629. func (f *decFnInfo) fastpathDecMapInt16IntfR(rv reflect.Value) {
  32630. if rv.CanAddr() {
  32631. vp := rv.Addr().Interface().(*map[int16]interface{})
  32632. v, changed := fastpathTV.DecMapInt16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  32633. if changed {
  32634. *vp = v
  32635. }
  32636. } else {
  32637. v := rv.Interface().(map[int16]interface{})
  32638. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, f.d)
  32639. }
  32640. }
  32641. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, checkNil bool, d *Decoder) {
  32642. v, changed := f.DecMapInt16IntfV(*vp, checkNil, true, d)
  32643. if changed {
  32644. *vp = v
  32645. }
  32646. }
  32647. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, checkNil bool, canChange bool,
  32648. d *Decoder) (_ map[int16]interface{}, changed bool) {
  32649. dd := d.d
  32650. cr := d.cr
  32651. if checkNil && dd.TryDecodeAsNil() {
  32652. if v != nil {
  32653. changed = true
  32654. }
  32655. return nil, changed
  32656. }
  32657. containerLen := dd.ReadMapStart()
  32658. if canChange && v == nil {
  32659. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  32660. v = make(map[int16]interface{}, xlen)
  32661. changed = true
  32662. }
  32663. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  32664. var mk int16
  32665. var mv interface{}
  32666. if containerLen > 0 {
  32667. for j := 0; j < containerLen; j++ {
  32668. if cr != nil {
  32669. cr.sendContainerState(containerMapKey)
  32670. }
  32671. mk = int16(dd.DecodeInt(16))
  32672. if cr != nil {
  32673. cr.sendContainerState(containerMapValue)
  32674. }
  32675. if mapGet {
  32676. mv = v[mk]
  32677. } else {
  32678. mv = nil
  32679. }
  32680. d.decode(&mv)
  32681. if v != nil {
  32682. v[mk] = mv
  32683. }
  32684. }
  32685. } else if containerLen < 0 {
  32686. for j := 0; !dd.CheckBreak(); j++ {
  32687. if cr != nil {
  32688. cr.sendContainerState(containerMapKey)
  32689. }
  32690. mk = int16(dd.DecodeInt(16))
  32691. if cr != nil {
  32692. cr.sendContainerState(containerMapValue)
  32693. }
  32694. if mapGet {
  32695. mv = v[mk]
  32696. } else {
  32697. mv = nil
  32698. }
  32699. d.decode(&mv)
  32700. if v != nil {
  32701. v[mk] = mv
  32702. }
  32703. }
  32704. }
  32705. if cr != nil {
  32706. cr.sendContainerState(containerMapEnd)
  32707. }
  32708. return v, changed
  32709. }
  32710. func (f *decFnInfo) fastpathDecMapInt16StringR(rv reflect.Value) {
  32711. if rv.CanAddr() {
  32712. vp := rv.Addr().Interface().(*map[int16]string)
  32713. v, changed := fastpathTV.DecMapInt16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  32714. if changed {
  32715. *vp = v
  32716. }
  32717. } else {
  32718. v := rv.Interface().(map[int16]string)
  32719. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, f.d)
  32720. }
  32721. }
  32722. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, checkNil bool, d *Decoder) {
  32723. v, changed := f.DecMapInt16StringV(*vp, checkNil, true, d)
  32724. if changed {
  32725. *vp = v
  32726. }
  32727. }
  32728. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, checkNil bool, canChange bool,
  32729. d *Decoder) (_ map[int16]string, changed bool) {
  32730. dd := d.d
  32731. cr := d.cr
  32732. if checkNil && dd.TryDecodeAsNil() {
  32733. if v != nil {
  32734. changed = true
  32735. }
  32736. return nil, changed
  32737. }
  32738. containerLen := dd.ReadMapStart()
  32739. if canChange && v == nil {
  32740. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  32741. v = make(map[int16]string, xlen)
  32742. changed = true
  32743. }
  32744. var mk int16
  32745. var mv string
  32746. if containerLen > 0 {
  32747. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32761. for j := 0; !dd.CheckBreak(); j++ {
  32762. if cr != nil {
  32763. cr.sendContainerState(containerMapKey)
  32764. }
  32765. mk = int16(dd.DecodeInt(16))
  32766. if cr != nil {
  32767. cr.sendContainerState(containerMapValue)
  32768. }
  32769. mv = dd.DecodeString()
  32770. if v != nil {
  32771. v[mk] = mv
  32772. }
  32773. }
  32774. }
  32775. if cr != nil {
  32776. cr.sendContainerState(containerMapEnd)
  32777. }
  32778. return v, changed
  32779. }
  32780. func (f *decFnInfo) fastpathDecMapInt16UintR(rv reflect.Value) {
  32781. if rv.CanAddr() {
  32782. vp := rv.Addr().Interface().(*map[int16]uint)
  32783. v, changed := fastpathTV.DecMapInt16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  32784. if changed {
  32785. *vp = v
  32786. }
  32787. } else {
  32788. v := rv.Interface().(map[int16]uint)
  32789. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, f.d)
  32790. }
  32791. }
  32792. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, checkNil bool, d *Decoder) {
  32793. v, changed := f.DecMapInt16UintV(*vp, checkNil, true, d)
  32794. if changed {
  32795. *vp = v
  32796. }
  32797. }
  32798. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, checkNil bool, canChange bool,
  32799. d *Decoder) (_ map[int16]uint, changed bool) {
  32800. dd := d.d
  32801. cr := d.cr
  32802. if checkNil && dd.TryDecodeAsNil() {
  32803. if v != nil {
  32804. changed = true
  32805. }
  32806. return nil, changed
  32807. }
  32808. containerLen := dd.ReadMapStart()
  32809. if canChange && v == nil {
  32810. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32811. v = make(map[int16]uint, xlen)
  32812. changed = true
  32813. }
  32814. var mk int16
  32815. var mv uint
  32816. if containerLen > 0 {
  32817. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32831. for j := 0; !dd.CheckBreak(); j++ {
  32832. if cr != nil {
  32833. cr.sendContainerState(containerMapKey)
  32834. }
  32835. mk = int16(dd.DecodeInt(16))
  32836. if cr != nil {
  32837. cr.sendContainerState(containerMapValue)
  32838. }
  32839. mv = uint(dd.DecodeUint(uintBitsize))
  32840. if v != nil {
  32841. v[mk] = mv
  32842. }
  32843. }
  32844. }
  32845. if cr != nil {
  32846. cr.sendContainerState(containerMapEnd)
  32847. }
  32848. return v, changed
  32849. }
  32850. func (f *decFnInfo) fastpathDecMapInt16Uint8R(rv reflect.Value) {
  32851. if rv.CanAddr() {
  32852. vp := rv.Addr().Interface().(*map[int16]uint8)
  32853. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  32854. if changed {
  32855. *vp = v
  32856. }
  32857. } else {
  32858. v := rv.Interface().(map[int16]uint8)
  32859. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  32860. }
  32861. }
  32862. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, checkNil bool, d *Decoder) {
  32863. v, changed := f.DecMapInt16Uint8V(*vp, checkNil, true, d)
  32864. if changed {
  32865. *vp = v
  32866. }
  32867. }
  32868. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, checkNil bool, canChange bool,
  32869. d *Decoder) (_ map[int16]uint8, changed bool) {
  32870. dd := d.d
  32871. cr := d.cr
  32872. if checkNil && dd.TryDecodeAsNil() {
  32873. if v != nil {
  32874. changed = true
  32875. }
  32876. return nil, changed
  32877. }
  32878. containerLen := dd.ReadMapStart()
  32879. if canChange && v == nil {
  32880. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  32881. v = make(map[int16]uint8, xlen)
  32882. changed = true
  32883. }
  32884. var mk int16
  32885. var mv uint8
  32886. if containerLen > 0 {
  32887. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32901. for j := 0; !dd.CheckBreak(); j++ {
  32902. if cr != nil {
  32903. cr.sendContainerState(containerMapKey)
  32904. }
  32905. mk = int16(dd.DecodeInt(16))
  32906. if cr != nil {
  32907. cr.sendContainerState(containerMapValue)
  32908. }
  32909. mv = uint8(dd.DecodeUint(8))
  32910. if v != nil {
  32911. v[mk] = mv
  32912. }
  32913. }
  32914. }
  32915. if cr != nil {
  32916. cr.sendContainerState(containerMapEnd)
  32917. }
  32918. return v, changed
  32919. }
  32920. func (f *decFnInfo) fastpathDecMapInt16Uint16R(rv reflect.Value) {
  32921. if rv.CanAddr() {
  32922. vp := rv.Addr().Interface().(*map[int16]uint16)
  32923. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  32924. if changed {
  32925. *vp = v
  32926. }
  32927. } else {
  32928. v := rv.Interface().(map[int16]uint16)
  32929. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  32930. }
  32931. }
  32932. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, checkNil bool, d *Decoder) {
  32933. v, changed := f.DecMapInt16Uint16V(*vp, checkNil, true, d)
  32934. if changed {
  32935. *vp = v
  32936. }
  32937. }
  32938. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, checkNil bool, canChange bool,
  32939. d *Decoder) (_ map[int16]uint16, changed bool) {
  32940. dd := d.d
  32941. cr := d.cr
  32942. if checkNil && dd.TryDecodeAsNil() {
  32943. if v != nil {
  32944. changed = true
  32945. }
  32946. return nil, changed
  32947. }
  32948. containerLen := dd.ReadMapStart()
  32949. if canChange && v == nil {
  32950. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  32951. v = make(map[int16]uint16, xlen)
  32952. changed = true
  32953. }
  32954. var mk int16
  32955. var mv uint16
  32956. if containerLen > 0 {
  32957. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  32971. for j := 0; !dd.CheckBreak(); j++ {
  32972. if cr != nil {
  32973. cr.sendContainerState(containerMapKey)
  32974. }
  32975. mk = int16(dd.DecodeInt(16))
  32976. if cr != nil {
  32977. cr.sendContainerState(containerMapValue)
  32978. }
  32979. mv = uint16(dd.DecodeUint(16))
  32980. if v != nil {
  32981. v[mk] = mv
  32982. }
  32983. }
  32984. }
  32985. if cr != nil {
  32986. cr.sendContainerState(containerMapEnd)
  32987. }
  32988. return v, changed
  32989. }
  32990. func (f *decFnInfo) fastpathDecMapInt16Uint32R(rv reflect.Value) {
  32991. if rv.CanAddr() {
  32992. vp := rv.Addr().Interface().(*map[int16]uint32)
  32993. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  32994. if changed {
  32995. *vp = v
  32996. }
  32997. } else {
  32998. v := rv.Interface().(map[int16]uint32)
  32999. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  33000. }
  33001. }
  33002. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, checkNil bool, d *Decoder) {
  33003. v, changed := f.DecMapInt16Uint32V(*vp, checkNil, true, d)
  33004. if changed {
  33005. *vp = v
  33006. }
  33007. }
  33008. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, checkNil bool, canChange bool,
  33009. d *Decoder) (_ map[int16]uint32, changed bool) {
  33010. dd := d.d
  33011. cr := d.cr
  33012. if checkNil && dd.TryDecodeAsNil() {
  33013. if v != nil {
  33014. changed = true
  33015. }
  33016. return nil, changed
  33017. }
  33018. containerLen := dd.ReadMapStart()
  33019. if canChange && v == nil {
  33020. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  33021. v = make(map[int16]uint32, xlen)
  33022. changed = true
  33023. }
  33024. var mk int16
  33025. var mv uint32
  33026. if containerLen > 0 {
  33027. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33041. for j := 0; !dd.CheckBreak(); j++ {
  33042. if cr != nil {
  33043. cr.sendContainerState(containerMapKey)
  33044. }
  33045. mk = int16(dd.DecodeInt(16))
  33046. if cr != nil {
  33047. cr.sendContainerState(containerMapValue)
  33048. }
  33049. mv = uint32(dd.DecodeUint(32))
  33050. if v != nil {
  33051. v[mk] = mv
  33052. }
  33053. }
  33054. }
  33055. if cr != nil {
  33056. cr.sendContainerState(containerMapEnd)
  33057. }
  33058. return v, changed
  33059. }
  33060. func (f *decFnInfo) fastpathDecMapInt16Uint64R(rv reflect.Value) {
  33061. if rv.CanAddr() {
  33062. vp := rv.Addr().Interface().(*map[int16]uint64)
  33063. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  33064. if changed {
  33065. *vp = v
  33066. }
  33067. } else {
  33068. v := rv.Interface().(map[int16]uint64)
  33069. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  33070. }
  33071. }
  33072. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, checkNil bool, d *Decoder) {
  33073. v, changed := f.DecMapInt16Uint64V(*vp, checkNil, true, d)
  33074. if changed {
  33075. *vp = v
  33076. }
  33077. }
  33078. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, checkNil bool, canChange bool,
  33079. d *Decoder) (_ map[int16]uint64, changed bool) {
  33080. dd := d.d
  33081. cr := d.cr
  33082. if checkNil && dd.TryDecodeAsNil() {
  33083. if v != nil {
  33084. changed = true
  33085. }
  33086. return nil, changed
  33087. }
  33088. containerLen := dd.ReadMapStart()
  33089. if canChange && v == nil {
  33090. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33091. v = make(map[int16]uint64, xlen)
  33092. changed = true
  33093. }
  33094. var mk int16
  33095. var mv uint64
  33096. if containerLen > 0 {
  33097. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33111. for j := 0; !dd.CheckBreak(); j++ {
  33112. if cr != nil {
  33113. cr.sendContainerState(containerMapKey)
  33114. }
  33115. mk = int16(dd.DecodeInt(16))
  33116. if cr != nil {
  33117. cr.sendContainerState(containerMapValue)
  33118. }
  33119. mv = dd.DecodeUint(64)
  33120. if v != nil {
  33121. v[mk] = mv
  33122. }
  33123. }
  33124. }
  33125. if cr != nil {
  33126. cr.sendContainerState(containerMapEnd)
  33127. }
  33128. return v, changed
  33129. }
  33130. func (f *decFnInfo) fastpathDecMapInt16UintptrR(rv reflect.Value) {
  33131. if rv.CanAddr() {
  33132. vp := rv.Addr().Interface().(*map[int16]uintptr)
  33133. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  33134. if changed {
  33135. *vp = v
  33136. }
  33137. } else {
  33138. v := rv.Interface().(map[int16]uintptr)
  33139. fastpathTV.DecMapInt16UintptrV(v, fastpathCheckNilFalse, false, f.d)
  33140. }
  33141. }
  33142. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, checkNil bool, d *Decoder) {
  33143. v, changed := f.DecMapInt16UintptrV(*vp, checkNil, true, d)
  33144. if changed {
  33145. *vp = v
  33146. }
  33147. }
  33148. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, checkNil bool, canChange bool,
  33149. d *Decoder) (_ map[int16]uintptr, changed bool) {
  33150. dd := d.d
  33151. cr := d.cr
  33152. if checkNil && dd.TryDecodeAsNil() {
  33153. if v != nil {
  33154. changed = true
  33155. }
  33156. return nil, changed
  33157. }
  33158. containerLen := dd.ReadMapStart()
  33159. if canChange && v == nil {
  33160. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33161. v = make(map[int16]uintptr, xlen)
  33162. changed = true
  33163. }
  33164. var mk int16
  33165. var mv uintptr
  33166. if containerLen > 0 {
  33167. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33181. for j := 0; !dd.CheckBreak(); j++ {
  33182. if cr != nil {
  33183. cr.sendContainerState(containerMapKey)
  33184. }
  33185. mk = int16(dd.DecodeInt(16))
  33186. if cr != nil {
  33187. cr.sendContainerState(containerMapValue)
  33188. }
  33189. mv = uintptr(dd.DecodeUint(uintBitsize))
  33190. if v != nil {
  33191. v[mk] = mv
  33192. }
  33193. }
  33194. }
  33195. if cr != nil {
  33196. cr.sendContainerState(containerMapEnd)
  33197. }
  33198. return v, changed
  33199. }
  33200. func (f *decFnInfo) fastpathDecMapInt16IntR(rv reflect.Value) {
  33201. if rv.CanAddr() {
  33202. vp := rv.Addr().Interface().(*map[int16]int)
  33203. v, changed := fastpathTV.DecMapInt16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  33204. if changed {
  33205. *vp = v
  33206. }
  33207. } else {
  33208. v := rv.Interface().(map[int16]int)
  33209. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, f.d)
  33210. }
  33211. }
  33212. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, checkNil bool, d *Decoder) {
  33213. v, changed := f.DecMapInt16IntV(*vp, checkNil, true, d)
  33214. if changed {
  33215. *vp = v
  33216. }
  33217. }
  33218. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, checkNil bool, canChange bool,
  33219. d *Decoder) (_ map[int16]int, changed bool) {
  33220. dd := d.d
  33221. cr := d.cr
  33222. if checkNil && dd.TryDecodeAsNil() {
  33223. if v != nil {
  33224. changed = true
  33225. }
  33226. return nil, changed
  33227. }
  33228. containerLen := dd.ReadMapStart()
  33229. if canChange && v == nil {
  33230. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33231. v = make(map[int16]int, xlen)
  33232. changed = true
  33233. }
  33234. var mk int16
  33235. var mv int
  33236. if containerLen > 0 {
  33237. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33251. for j := 0; !dd.CheckBreak(); j++ {
  33252. if cr != nil {
  33253. cr.sendContainerState(containerMapKey)
  33254. }
  33255. mk = int16(dd.DecodeInt(16))
  33256. if cr != nil {
  33257. cr.sendContainerState(containerMapValue)
  33258. }
  33259. mv = int(dd.DecodeInt(intBitsize))
  33260. if v != nil {
  33261. v[mk] = mv
  33262. }
  33263. }
  33264. }
  33265. if cr != nil {
  33266. cr.sendContainerState(containerMapEnd)
  33267. }
  33268. return v, changed
  33269. }
  33270. func (f *decFnInfo) fastpathDecMapInt16Int8R(rv reflect.Value) {
  33271. if rv.CanAddr() {
  33272. vp := rv.Addr().Interface().(*map[int16]int8)
  33273. v, changed := fastpathTV.DecMapInt16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  33274. if changed {
  33275. *vp = v
  33276. }
  33277. } else {
  33278. v := rv.Interface().(map[int16]int8)
  33279. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, f.d)
  33280. }
  33281. }
  33282. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, checkNil bool, d *Decoder) {
  33283. v, changed := f.DecMapInt16Int8V(*vp, checkNil, true, d)
  33284. if changed {
  33285. *vp = v
  33286. }
  33287. }
  33288. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, checkNil bool, canChange bool,
  33289. d *Decoder) (_ map[int16]int8, changed bool) {
  33290. dd := d.d
  33291. cr := d.cr
  33292. if checkNil && dd.TryDecodeAsNil() {
  33293. if v != nil {
  33294. changed = true
  33295. }
  33296. return nil, changed
  33297. }
  33298. containerLen := dd.ReadMapStart()
  33299. if canChange && v == nil {
  33300. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33301. v = make(map[int16]int8, xlen)
  33302. changed = true
  33303. }
  33304. var mk int16
  33305. var mv int8
  33306. if containerLen > 0 {
  33307. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33321. for j := 0; !dd.CheckBreak(); j++ {
  33322. if cr != nil {
  33323. cr.sendContainerState(containerMapKey)
  33324. }
  33325. mk = int16(dd.DecodeInt(16))
  33326. if cr != nil {
  33327. cr.sendContainerState(containerMapValue)
  33328. }
  33329. mv = int8(dd.DecodeInt(8))
  33330. if v != nil {
  33331. v[mk] = mv
  33332. }
  33333. }
  33334. }
  33335. if cr != nil {
  33336. cr.sendContainerState(containerMapEnd)
  33337. }
  33338. return v, changed
  33339. }
  33340. func (f *decFnInfo) fastpathDecMapInt16Int16R(rv reflect.Value) {
  33341. if rv.CanAddr() {
  33342. vp := rv.Addr().Interface().(*map[int16]int16)
  33343. v, changed := fastpathTV.DecMapInt16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  33344. if changed {
  33345. *vp = v
  33346. }
  33347. } else {
  33348. v := rv.Interface().(map[int16]int16)
  33349. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, f.d)
  33350. }
  33351. }
  33352. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, checkNil bool, d *Decoder) {
  33353. v, changed := f.DecMapInt16Int16V(*vp, checkNil, true, d)
  33354. if changed {
  33355. *vp = v
  33356. }
  33357. }
  33358. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, checkNil bool, canChange bool,
  33359. d *Decoder) (_ map[int16]int16, changed bool) {
  33360. dd := d.d
  33361. cr := d.cr
  33362. if checkNil && dd.TryDecodeAsNil() {
  33363. if v != nil {
  33364. changed = true
  33365. }
  33366. return nil, changed
  33367. }
  33368. containerLen := dd.ReadMapStart()
  33369. if canChange && v == nil {
  33370. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  33371. v = make(map[int16]int16, xlen)
  33372. changed = true
  33373. }
  33374. var mk int16
  33375. var mv int16
  33376. if containerLen > 0 {
  33377. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33391. for j := 0; !dd.CheckBreak(); j++ {
  33392. if cr != nil {
  33393. cr.sendContainerState(containerMapKey)
  33394. }
  33395. mk = int16(dd.DecodeInt(16))
  33396. if cr != nil {
  33397. cr.sendContainerState(containerMapValue)
  33398. }
  33399. mv = int16(dd.DecodeInt(16))
  33400. if v != nil {
  33401. v[mk] = mv
  33402. }
  33403. }
  33404. }
  33405. if cr != nil {
  33406. cr.sendContainerState(containerMapEnd)
  33407. }
  33408. return v, changed
  33409. }
  33410. func (f *decFnInfo) fastpathDecMapInt16Int32R(rv reflect.Value) {
  33411. if rv.CanAddr() {
  33412. vp := rv.Addr().Interface().(*map[int16]int32)
  33413. v, changed := fastpathTV.DecMapInt16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  33414. if changed {
  33415. *vp = v
  33416. }
  33417. } else {
  33418. v := rv.Interface().(map[int16]int32)
  33419. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, f.d)
  33420. }
  33421. }
  33422. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, checkNil bool, d *Decoder) {
  33423. v, changed := f.DecMapInt16Int32V(*vp, checkNil, true, d)
  33424. if changed {
  33425. *vp = v
  33426. }
  33427. }
  33428. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, checkNil bool, canChange bool,
  33429. d *Decoder) (_ map[int16]int32, changed bool) {
  33430. dd := d.d
  33431. cr := d.cr
  33432. if checkNil && dd.TryDecodeAsNil() {
  33433. if v != nil {
  33434. changed = true
  33435. }
  33436. return nil, changed
  33437. }
  33438. containerLen := dd.ReadMapStart()
  33439. if canChange && v == nil {
  33440. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  33441. v = make(map[int16]int32, xlen)
  33442. changed = true
  33443. }
  33444. var mk int16
  33445. var mv int32
  33446. if containerLen > 0 {
  33447. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33461. for j := 0; !dd.CheckBreak(); j++ {
  33462. if cr != nil {
  33463. cr.sendContainerState(containerMapKey)
  33464. }
  33465. mk = int16(dd.DecodeInt(16))
  33466. if cr != nil {
  33467. cr.sendContainerState(containerMapValue)
  33468. }
  33469. mv = int32(dd.DecodeInt(32))
  33470. if v != nil {
  33471. v[mk] = mv
  33472. }
  33473. }
  33474. }
  33475. if cr != nil {
  33476. cr.sendContainerState(containerMapEnd)
  33477. }
  33478. return v, changed
  33479. }
  33480. func (f *decFnInfo) fastpathDecMapInt16Int64R(rv reflect.Value) {
  33481. if rv.CanAddr() {
  33482. vp := rv.Addr().Interface().(*map[int16]int64)
  33483. v, changed := fastpathTV.DecMapInt16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  33484. if changed {
  33485. *vp = v
  33486. }
  33487. } else {
  33488. v := rv.Interface().(map[int16]int64)
  33489. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, f.d)
  33490. }
  33491. }
  33492. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, checkNil bool, d *Decoder) {
  33493. v, changed := f.DecMapInt16Int64V(*vp, checkNil, true, d)
  33494. if changed {
  33495. *vp = v
  33496. }
  33497. }
  33498. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, checkNil bool, canChange bool,
  33499. d *Decoder) (_ map[int16]int64, changed bool) {
  33500. dd := d.d
  33501. cr := d.cr
  33502. if checkNil && dd.TryDecodeAsNil() {
  33503. if v != nil {
  33504. changed = true
  33505. }
  33506. return nil, changed
  33507. }
  33508. containerLen := dd.ReadMapStart()
  33509. if canChange && v == nil {
  33510. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33511. v = make(map[int16]int64, xlen)
  33512. changed = true
  33513. }
  33514. var mk int16
  33515. var mv int64
  33516. if containerLen > 0 {
  33517. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33531. for j := 0; !dd.CheckBreak(); j++ {
  33532. if cr != nil {
  33533. cr.sendContainerState(containerMapKey)
  33534. }
  33535. mk = int16(dd.DecodeInt(16))
  33536. if cr != nil {
  33537. cr.sendContainerState(containerMapValue)
  33538. }
  33539. mv = dd.DecodeInt(64)
  33540. if v != nil {
  33541. v[mk] = mv
  33542. }
  33543. }
  33544. }
  33545. if cr != nil {
  33546. cr.sendContainerState(containerMapEnd)
  33547. }
  33548. return v, changed
  33549. }
  33550. func (f *decFnInfo) fastpathDecMapInt16Float32R(rv reflect.Value) {
  33551. if rv.CanAddr() {
  33552. vp := rv.Addr().Interface().(*map[int16]float32)
  33553. v, changed := fastpathTV.DecMapInt16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  33554. if changed {
  33555. *vp = v
  33556. }
  33557. } else {
  33558. v := rv.Interface().(map[int16]float32)
  33559. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, f.d)
  33560. }
  33561. }
  33562. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, checkNil bool, d *Decoder) {
  33563. v, changed := f.DecMapInt16Float32V(*vp, checkNil, true, d)
  33564. if changed {
  33565. *vp = v
  33566. }
  33567. }
  33568. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, checkNil bool, canChange bool,
  33569. d *Decoder) (_ map[int16]float32, changed bool) {
  33570. dd := d.d
  33571. cr := d.cr
  33572. if checkNil && dd.TryDecodeAsNil() {
  33573. if v != nil {
  33574. changed = true
  33575. }
  33576. return nil, changed
  33577. }
  33578. containerLen := dd.ReadMapStart()
  33579. if canChange && v == nil {
  33580. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  33581. v = make(map[int16]float32, xlen)
  33582. changed = true
  33583. }
  33584. var mk int16
  33585. var mv float32
  33586. if containerLen > 0 {
  33587. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33601. for j := 0; !dd.CheckBreak(); j++ {
  33602. if cr != nil {
  33603. cr.sendContainerState(containerMapKey)
  33604. }
  33605. mk = int16(dd.DecodeInt(16))
  33606. if cr != nil {
  33607. cr.sendContainerState(containerMapValue)
  33608. }
  33609. mv = float32(dd.DecodeFloat(true))
  33610. if v != nil {
  33611. v[mk] = mv
  33612. }
  33613. }
  33614. }
  33615. if cr != nil {
  33616. cr.sendContainerState(containerMapEnd)
  33617. }
  33618. return v, changed
  33619. }
  33620. func (f *decFnInfo) fastpathDecMapInt16Float64R(rv reflect.Value) {
  33621. if rv.CanAddr() {
  33622. vp := rv.Addr().Interface().(*map[int16]float64)
  33623. v, changed := fastpathTV.DecMapInt16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  33624. if changed {
  33625. *vp = v
  33626. }
  33627. } else {
  33628. v := rv.Interface().(map[int16]float64)
  33629. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, f.d)
  33630. }
  33631. }
  33632. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, checkNil bool, d *Decoder) {
  33633. v, changed := f.DecMapInt16Float64V(*vp, checkNil, true, d)
  33634. if changed {
  33635. *vp = v
  33636. }
  33637. }
  33638. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, checkNil bool, canChange bool,
  33639. d *Decoder) (_ map[int16]float64, changed bool) {
  33640. dd := d.d
  33641. cr := d.cr
  33642. if checkNil && dd.TryDecodeAsNil() {
  33643. if v != nil {
  33644. changed = true
  33645. }
  33646. return nil, changed
  33647. }
  33648. containerLen := dd.ReadMapStart()
  33649. if canChange && v == nil {
  33650. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33651. v = make(map[int16]float64, xlen)
  33652. changed = true
  33653. }
  33654. var mk int16
  33655. var mv float64
  33656. if containerLen > 0 {
  33657. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33671. for j := 0; !dd.CheckBreak(); j++ {
  33672. if cr != nil {
  33673. cr.sendContainerState(containerMapKey)
  33674. }
  33675. mk = int16(dd.DecodeInt(16))
  33676. if cr != nil {
  33677. cr.sendContainerState(containerMapValue)
  33678. }
  33679. mv = dd.DecodeFloat(false)
  33680. if v != nil {
  33681. v[mk] = mv
  33682. }
  33683. }
  33684. }
  33685. if cr != nil {
  33686. cr.sendContainerState(containerMapEnd)
  33687. }
  33688. return v, changed
  33689. }
  33690. func (f *decFnInfo) fastpathDecMapInt16BoolR(rv reflect.Value) {
  33691. if rv.CanAddr() {
  33692. vp := rv.Addr().Interface().(*map[int16]bool)
  33693. v, changed := fastpathTV.DecMapInt16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  33694. if changed {
  33695. *vp = v
  33696. }
  33697. } else {
  33698. v := rv.Interface().(map[int16]bool)
  33699. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, f.d)
  33700. }
  33701. }
  33702. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, checkNil bool, d *Decoder) {
  33703. v, changed := f.DecMapInt16BoolV(*vp, checkNil, true, d)
  33704. if changed {
  33705. *vp = v
  33706. }
  33707. }
  33708. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, checkNil bool, canChange bool,
  33709. d *Decoder) (_ map[int16]bool, changed bool) {
  33710. dd := d.d
  33711. cr := d.cr
  33712. if checkNil && dd.TryDecodeAsNil() {
  33713. if v != nil {
  33714. changed = true
  33715. }
  33716. return nil, changed
  33717. }
  33718. containerLen := dd.ReadMapStart()
  33719. if canChange && v == nil {
  33720. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33721. v = make(map[int16]bool, xlen)
  33722. changed = true
  33723. }
  33724. var mk int16
  33725. var mv bool
  33726. if containerLen > 0 {
  33727. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33741. for j := 0; !dd.CheckBreak(); j++ {
  33742. if cr != nil {
  33743. cr.sendContainerState(containerMapKey)
  33744. }
  33745. mk = int16(dd.DecodeInt(16))
  33746. if cr != nil {
  33747. cr.sendContainerState(containerMapValue)
  33748. }
  33749. mv = dd.DecodeBool()
  33750. if v != nil {
  33751. v[mk] = mv
  33752. }
  33753. }
  33754. }
  33755. if cr != nil {
  33756. cr.sendContainerState(containerMapEnd)
  33757. }
  33758. return v, changed
  33759. }
  33760. func (f *decFnInfo) fastpathDecMapInt32IntfR(rv reflect.Value) {
  33761. if rv.CanAddr() {
  33762. vp := rv.Addr().Interface().(*map[int32]interface{})
  33763. v, changed := fastpathTV.DecMapInt32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  33764. if changed {
  33765. *vp = v
  33766. }
  33767. } else {
  33768. v := rv.Interface().(map[int32]interface{})
  33769. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, f.d)
  33770. }
  33771. }
  33772. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, checkNil bool, d *Decoder) {
  33773. v, changed := f.DecMapInt32IntfV(*vp, checkNil, true, d)
  33774. if changed {
  33775. *vp = v
  33776. }
  33777. }
  33778. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, checkNil bool, canChange bool,
  33779. d *Decoder) (_ map[int32]interface{}, changed bool) {
  33780. dd := d.d
  33781. cr := d.cr
  33782. if checkNil && dd.TryDecodeAsNil() {
  33783. if v != nil {
  33784. changed = true
  33785. }
  33786. return nil, changed
  33787. }
  33788. containerLen := dd.ReadMapStart()
  33789. if canChange && v == nil {
  33790. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  33791. v = make(map[int32]interface{}, xlen)
  33792. changed = true
  33793. }
  33794. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  33795. var mk int32
  33796. var mv interface{}
  33797. if containerLen > 0 {
  33798. for j := 0; j < containerLen; j++ {
  33799. if cr != nil {
  33800. cr.sendContainerState(containerMapKey)
  33801. }
  33802. mk = int32(dd.DecodeInt(32))
  33803. if cr != nil {
  33804. cr.sendContainerState(containerMapValue)
  33805. }
  33806. if mapGet {
  33807. mv = v[mk]
  33808. } else {
  33809. mv = nil
  33810. }
  33811. d.decode(&mv)
  33812. if v != nil {
  33813. v[mk] = mv
  33814. }
  33815. }
  33816. } else if containerLen < 0 {
  33817. for j := 0; !dd.CheckBreak(); j++ {
  33818. if cr != nil {
  33819. cr.sendContainerState(containerMapKey)
  33820. }
  33821. mk = int32(dd.DecodeInt(32))
  33822. if cr != nil {
  33823. cr.sendContainerState(containerMapValue)
  33824. }
  33825. if mapGet {
  33826. mv = v[mk]
  33827. } else {
  33828. mv = nil
  33829. }
  33830. d.decode(&mv)
  33831. if v != nil {
  33832. v[mk] = mv
  33833. }
  33834. }
  33835. }
  33836. if cr != nil {
  33837. cr.sendContainerState(containerMapEnd)
  33838. }
  33839. return v, changed
  33840. }
  33841. func (f *decFnInfo) fastpathDecMapInt32StringR(rv reflect.Value) {
  33842. if rv.CanAddr() {
  33843. vp := rv.Addr().Interface().(*map[int32]string)
  33844. v, changed := fastpathTV.DecMapInt32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  33845. if changed {
  33846. *vp = v
  33847. }
  33848. } else {
  33849. v := rv.Interface().(map[int32]string)
  33850. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, f.d)
  33851. }
  33852. }
  33853. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, checkNil bool, d *Decoder) {
  33854. v, changed := f.DecMapInt32StringV(*vp, checkNil, true, d)
  33855. if changed {
  33856. *vp = v
  33857. }
  33858. }
  33859. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, checkNil bool, canChange bool,
  33860. d *Decoder) (_ map[int32]string, changed bool) {
  33861. dd := d.d
  33862. cr := d.cr
  33863. if checkNil && dd.TryDecodeAsNil() {
  33864. if v != nil {
  33865. changed = true
  33866. }
  33867. return nil, changed
  33868. }
  33869. containerLen := dd.ReadMapStart()
  33870. if canChange && v == nil {
  33871. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  33872. v = make(map[int32]string, xlen)
  33873. changed = true
  33874. }
  33875. var mk int32
  33876. var mv string
  33877. if containerLen > 0 {
  33878. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33892. for j := 0; !dd.CheckBreak(); j++ {
  33893. if cr != nil {
  33894. cr.sendContainerState(containerMapKey)
  33895. }
  33896. mk = int32(dd.DecodeInt(32))
  33897. if cr != nil {
  33898. cr.sendContainerState(containerMapValue)
  33899. }
  33900. mv = dd.DecodeString()
  33901. if v != nil {
  33902. v[mk] = mv
  33903. }
  33904. }
  33905. }
  33906. if cr != nil {
  33907. cr.sendContainerState(containerMapEnd)
  33908. }
  33909. return v, changed
  33910. }
  33911. func (f *decFnInfo) fastpathDecMapInt32UintR(rv reflect.Value) {
  33912. if rv.CanAddr() {
  33913. vp := rv.Addr().Interface().(*map[int32]uint)
  33914. v, changed := fastpathTV.DecMapInt32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  33915. if changed {
  33916. *vp = v
  33917. }
  33918. } else {
  33919. v := rv.Interface().(map[int32]uint)
  33920. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, f.d)
  33921. }
  33922. }
  33923. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, checkNil bool, d *Decoder) {
  33924. v, changed := f.DecMapInt32UintV(*vp, checkNil, true, d)
  33925. if changed {
  33926. *vp = v
  33927. }
  33928. }
  33929. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, checkNil bool, canChange bool,
  33930. d *Decoder) (_ map[int32]uint, changed bool) {
  33931. dd := d.d
  33932. cr := d.cr
  33933. if checkNil && dd.TryDecodeAsNil() {
  33934. if v != nil {
  33935. changed = true
  33936. }
  33937. return nil, changed
  33938. }
  33939. containerLen := dd.ReadMapStart()
  33940. if canChange && v == nil {
  33941. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33942. v = make(map[int32]uint, xlen)
  33943. changed = true
  33944. }
  33945. var mk int32
  33946. var mv uint
  33947. if containerLen > 0 {
  33948. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  33962. for j := 0; !dd.CheckBreak(); j++ {
  33963. if cr != nil {
  33964. cr.sendContainerState(containerMapKey)
  33965. }
  33966. mk = int32(dd.DecodeInt(32))
  33967. if cr != nil {
  33968. cr.sendContainerState(containerMapValue)
  33969. }
  33970. mv = uint(dd.DecodeUint(uintBitsize))
  33971. if v != nil {
  33972. v[mk] = mv
  33973. }
  33974. }
  33975. }
  33976. if cr != nil {
  33977. cr.sendContainerState(containerMapEnd)
  33978. }
  33979. return v, changed
  33980. }
  33981. func (f *decFnInfo) fastpathDecMapInt32Uint8R(rv reflect.Value) {
  33982. if rv.CanAddr() {
  33983. vp := rv.Addr().Interface().(*map[int32]uint8)
  33984. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  33985. if changed {
  33986. *vp = v
  33987. }
  33988. } else {
  33989. v := rv.Interface().(map[int32]uint8)
  33990. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  33991. }
  33992. }
  33993. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, checkNil bool, d *Decoder) {
  33994. v, changed := f.DecMapInt32Uint8V(*vp, checkNil, true, d)
  33995. if changed {
  33996. *vp = v
  33997. }
  33998. }
  33999. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, checkNil bool, canChange bool,
  34000. d *Decoder) (_ map[int32]uint8, changed bool) {
  34001. dd := d.d
  34002. cr := d.cr
  34003. if checkNil && dd.TryDecodeAsNil() {
  34004. if v != nil {
  34005. changed = true
  34006. }
  34007. return nil, changed
  34008. }
  34009. containerLen := dd.ReadMapStart()
  34010. if canChange && v == nil {
  34011. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34012. v = make(map[int32]uint8, xlen)
  34013. changed = true
  34014. }
  34015. var mk int32
  34016. var mv uint8
  34017. if containerLen > 0 {
  34018. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34032. for j := 0; !dd.CheckBreak(); j++ {
  34033. if cr != nil {
  34034. cr.sendContainerState(containerMapKey)
  34035. }
  34036. mk = int32(dd.DecodeInt(32))
  34037. if cr != nil {
  34038. cr.sendContainerState(containerMapValue)
  34039. }
  34040. mv = uint8(dd.DecodeUint(8))
  34041. if v != nil {
  34042. v[mk] = mv
  34043. }
  34044. }
  34045. }
  34046. if cr != nil {
  34047. cr.sendContainerState(containerMapEnd)
  34048. }
  34049. return v, changed
  34050. }
  34051. func (f *decFnInfo) fastpathDecMapInt32Uint16R(rv reflect.Value) {
  34052. if rv.CanAddr() {
  34053. vp := rv.Addr().Interface().(*map[int32]uint16)
  34054. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  34055. if changed {
  34056. *vp = v
  34057. }
  34058. } else {
  34059. v := rv.Interface().(map[int32]uint16)
  34060. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  34061. }
  34062. }
  34063. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, checkNil bool, d *Decoder) {
  34064. v, changed := f.DecMapInt32Uint16V(*vp, checkNil, true, d)
  34065. if changed {
  34066. *vp = v
  34067. }
  34068. }
  34069. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, checkNil bool, canChange bool,
  34070. d *Decoder) (_ map[int32]uint16, changed bool) {
  34071. dd := d.d
  34072. cr := d.cr
  34073. if checkNil && dd.TryDecodeAsNil() {
  34074. if v != nil {
  34075. changed = true
  34076. }
  34077. return nil, changed
  34078. }
  34079. containerLen := dd.ReadMapStart()
  34080. if canChange && v == nil {
  34081. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  34082. v = make(map[int32]uint16, xlen)
  34083. changed = true
  34084. }
  34085. var mk int32
  34086. var mv uint16
  34087. if containerLen > 0 {
  34088. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34102. for j := 0; !dd.CheckBreak(); j++ {
  34103. if cr != nil {
  34104. cr.sendContainerState(containerMapKey)
  34105. }
  34106. mk = int32(dd.DecodeInt(32))
  34107. if cr != nil {
  34108. cr.sendContainerState(containerMapValue)
  34109. }
  34110. mv = uint16(dd.DecodeUint(16))
  34111. if v != nil {
  34112. v[mk] = mv
  34113. }
  34114. }
  34115. }
  34116. if cr != nil {
  34117. cr.sendContainerState(containerMapEnd)
  34118. }
  34119. return v, changed
  34120. }
  34121. func (f *decFnInfo) fastpathDecMapInt32Uint32R(rv reflect.Value) {
  34122. if rv.CanAddr() {
  34123. vp := rv.Addr().Interface().(*map[int32]uint32)
  34124. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  34125. if changed {
  34126. *vp = v
  34127. }
  34128. } else {
  34129. v := rv.Interface().(map[int32]uint32)
  34130. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  34131. }
  34132. }
  34133. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, checkNil bool, d *Decoder) {
  34134. v, changed := f.DecMapInt32Uint32V(*vp, checkNil, true, d)
  34135. if changed {
  34136. *vp = v
  34137. }
  34138. }
  34139. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, checkNil bool, canChange bool,
  34140. d *Decoder) (_ map[int32]uint32, changed bool) {
  34141. dd := d.d
  34142. cr := d.cr
  34143. if checkNil && dd.TryDecodeAsNil() {
  34144. if v != nil {
  34145. changed = true
  34146. }
  34147. return nil, changed
  34148. }
  34149. containerLen := dd.ReadMapStart()
  34150. if canChange && v == nil {
  34151. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  34152. v = make(map[int32]uint32, xlen)
  34153. changed = true
  34154. }
  34155. var mk int32
  34156. var mv uint32
  34157. if containerLen > 0 {
  34158. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34172. for j := 0; !dd.CheckBreak(); j++ {
  34173. if cr != nil {
  34174. cr.sendContainerState(containerMapKey)
  34175. }
  34176. mk = int32(dd.DecodeInt(32))
  34177. if cr != nil {
  34178. cr.sendContainerState(containerMapValue)
  34179. }
  34180. mv = uint32(dd.DecodeUint(32))
  34181. if v != nil {
  34182. v[mk] = mv
  34183. }
  34184. }
  34185. }
  34186. if cr != nil {
  34187. cr.sendContainerState(containerMapEnd)
  34188. }
  34189. return v, changed
  34190. }
  34191. func (f *decFnInfo) fastpathDecMapInt32Uint64R(rv reflect.Value) {
  34192. if rv.CanAddr() {
  34193. vp := rv.Addr().Interface().(*map[int32]uint64)
  34194. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  34195. if changed {
  34196. *vp = v
  34197. }
  34198. } else {
  34199. v := rv.Interface().(map[int32]uint64)
  34200. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  34201. }
  34202. }
  34203. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, checkNil bool, d *Decoder) {
  34204. v, changed := f.DecMapInt32Uint64V(*vp, checkNil, true, d)
  34205. if changed {
  34206. *vp = v
  34207. }
  34208. }
  34209. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, checkNil bool, canChange bool,
  34210. d *Decoder) (_ map[int32]uint64, changed bool) {
  34211. dd := d.d
  34212. cr := d.cr
  34213. if checkNil && dd.TryDecodeAsNil() {
  34214. if v != nil {
  34215. changed = true
  34216. }
  34217. return nil, changed
  34218. }
  34219. containerLen := dd.ReadMapStart()
  34220. if canChange && v == nil {
  34221. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34222. v = make(map[int32]uint64, xlen)
  34223. changed = true
  34224. }
  34225. var mk int32
  34226. var mv uint64
  34227. if containerLen > 0 {
  34228. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34242. for j := 0; !dd.CheckBreak(); j++ {
  34243. if cr != nil {
  34244. cr.sendContainerState(containerMapKey)
  34245. }
  34246. mk = int32(dd.DecodeInt(32))
  34247. if cr != nil {
  34248. cr.sendContainerState(containerMapValue)
  34249. }
  34250. mv = dd.DecodeUint(64)
  34251. if v != nil {
  34252. v[mk] = mv
  34253. }
  34254. }
  34255. }
  34256. if cr != nil {
  34257. cr.sendContainerState(containerMapEnd)
  34258. }
  34259. return v, changed
  34260. }
  34261. func (f *decFnInfo) fastpathDecMapInt32UintptrR(rv reflect.Value) {
  34262. if rv.CanAddr() {
  34263. vp := rv.Addr().Interface().(*map[int32]uintptr)
  34264. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  34265. if changed {
  34266. *vp = v
  34267. }
  34268. } else {
  34269. v := rv.Interface().(map[int32]uintptr)
  34270. fastpathTV.DecMapInt32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  34271. }
  34272. }
  34273. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, checkNil bool, d *Decoder) {
  34274. v, changed := f.DecMapInt32UintptrV(*vp, checkNil, true, d)
  34275. if changed {
  34276. *vp = v
  34277. }
  34278. }
  34279. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, checkNil bool, canChange bool,
  34280. d *Decoder) (_ map[int32]uintptr, changed bool) {
  34281. dd := d.d
  34282. cr := d.cr
  34283. if checkNil && dd.TryDecodeAsNil() {
  34284. if v != nil {
  34285. changed = true
  34286. }
  34287. return nil, changed
  34288. }
  34289. containerLen := dd.ReadMapStart()
  34290. if canChange && v == nil {
  34291. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34292. v = make(map[int32]uintptr, xlen)
  34293. changed = true
  34294. }
  34295. var mk int32
  34296. var mv uintptr
  34297. if containerLen > 0 {
  34298. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34312. for j := 0; !dd.CheckBreak(); j++ {
  34313. if cr != nil {
  34314. cr.sendContainerState(containerMapKey)
  34315. }
  34316. mk = int32(dd.DecodeInt(32))
  34317. if cr != nil {
  34318. cr.sendContainerState(containerMapValue)
  34319. }
  34320. mv = uintptr(dd.DecodeUint(uintBitsize))
  34321. if v != nil {
  34322. v[mk] = mv
  34323. }
  34324. }
  34325. }
  34326. if cr != nil {
  34327. cr.sendContainerState(containerMapEnd)
  34328. }
  34329. return v, changed
  34330. }
  34331. func (f *decFnInfo) fastpathDecMapInt32IntR(rv reflect.Value) {
  34332. if rv.CanAddr() {
  34333. vp := rv.Addr().Interface().(*map[int32]int)
  34334. v, changed := fastpathTV.DecMapInt32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  34335. if changed {
  34336. *vp = v
  34337. }
  34338. } else {
  34339. v := rv.Interface().(map[int32]int)
  34340. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, f.d)
  34341. }
  34342. }
  34343. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, checkNil bool, d *Decoder) {
  34344. v, changed := f.DecMapInt32IntV(*vp, checkNil, true, d)
  34345. if changed {
  34346. *vp = v
  34347. }
  34348. }
  34349. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, checkNil bool, canChange bool,
  34350. d *Decoder) (_ map[int32]int, changed bool) {
  34351. dd := d.d
  34352. cr := d.cr
  34353. if checkNil && dd.TryDecodeAsNil() {
  34354. if v != nil {
  34355. changed = true
  34356. }
  34357. return nil, changed
  34358. }
  34359. containerLen := dd.ReadMapStart()
  34360. if canChange && v == nil {
  34361. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34362. v = make(map[int32]int, xlen)
  34363. changed = true
  34364. }
  34365. var mk int32
  34366. var mv int
  34367. if containerLen > 0 {
  34368. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34382. for j := 0; !dd.CheckBreak(); j++ {
  34383. if cr != nil {
  34384. cr.sendContainerState(containerMapKey)
  34385. }
  34386. mk = int32(dd.DecodeInt(32))
  34387. if cr != nil {
  34388. cr.sendContainerState(containerMapValue)
  34389. }
  34390. mv = int(dd.DecodeInt(intBitsize))
  34391. if v != nil {
  34392. v[mk] = mv
  34393. }
  34394. }
  34395. }
  34396. if cr != nil {
  34397. cr.sendContainerState(containerMapEnd)
  34398. }
  34399. return v, changed
  34400. }
  34401. func (f *decFnInfo) fastpathDecMapInt32Int8R(rv reflect.Value) {
  34402. if rv.CanAddr() {
  34403. vp := rv.Addr().Interface().(*map[int32]int8)
  34404. v, changed := fastpathTV.DecMapInt32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  34405. if changed {
  34406. *vp = v
  34407. }
  34408. } else {
  34409. v := rv.Interface().(map[int32]int8)
  34410. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, f.d)
  34411. }
  34412. }
  34413. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, checkNil bool, d *Decoder) {
  34414. v, changed := f.DecMapInt32Int8V(*vp, checkNil, true, d)
  34415. if changed {
  34416. *vp = v
  34417. }
  34418. }
  34419. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, checkNil bool, canChange bool,
  34420. d *Decoder) (_ map[int32]int8, changed bool) {
  34421. dd := d.d
  34422. cr := d.cr
  34423. if checkNil && dd.TryDecodeAsNil() {
  34424. if v != nil {
  34425. changed = true
  34426. }
  34427. return nil, changed
  34428. }
  34429. containerLen := dd.ReadMapStart()
  34430. if canChange && v == nil {
  34431. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34432. v = make(map[int32]int8, xlen)
  34433. changed = true
  34434. }
  34435. var mk int32
  34436. var mv int8
  34437. if containerLen > 0 {
  34438. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34452. for j := 0; !dd.CheckBreak(); j++ {
  34453. if cr != nil {
  34454. cr.sendContainerState(containerMapKey)
  34455. }
  34456. mk = int32(dd.DecodeInt(32))
  34457. if cr != nil {
  34458. cr.sendContainerState(containerMapValue)
  34459. }
  34460. mv = int8(dd.DecodeInt(8))
  34461. if v != nil {
  34462. v[mk] = mv
  34463. }
  34464. }
  34465. }
  34466. if cr != nil {
  34467. cr.sendContainerState(containerMapEnd)
  34468. }
  34469. return v, changed
  34470. }
  34471. func (f *decFnInfo) fastpathDecMapInt32Int16R(rv reflect.Value) {
  34472. if rv.CanAddr() {
  34473. vp := rv.Addr().Interface().(*map[int32]int16)
  34474. v, changed := fastpathTV.DecMapInt32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  34475. if changed {
  34476. *vp = v
  34477. }
  34478. } else {
  34479. v := rv.Interface().(map[int32]int16)
  34480. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, f.d)
  34481. }
  34482. }
  34483. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, checkNil bool, d *Decoder) {
  34484. v, changed := f.DecMapInt32Int16V(*vp, checkNil, true, d)
  34485. if changed {
  34486. *vp = v
  34487. }
  34488. }
  34489. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, checkNil bool, canChange bool,
  34490. d *Decoder) (_ map[int32]int16, changed bool) {
  34491. dd := d.d
  34492. cr := d.cr
  34493. if checkNil && dd.TryDecodeAsNil() {
  34494. if v != nil {
  34495. changed = true
  34496. }
  34497. return nil, changed
  34498. }
  34499. containerLen := dd.ReadMapStart()
  34500. if canChange && v == nil {
  34501. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  34502. v = make(map[int32]int16, xlen)
  34503. changed = true
  34504. }
  34505. var mk int32
  34506. var mv int16
  34507. if containerLen > 0 {
  34508. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34522. for j := 0; !dd.CheckBreak(); j++ {
  34523. if cr != nil {
  34524. cr.sendContainerState(containerMapKey)
  34525. }
  34526. mk = int32(dd.DecodeInt(32))
  34527. if cr != nil {
  34528. cr.sendContainerState(containerMapValue)
  34529. }
  34530. mv = int16(dd.DecodeInt(16))
  34531. if v != nil {
  34532. v[mk] = mv
  34533. }
  34534. }
  34535. }
  34536. if cr != nil {
  34537. cr.sendContainerState(containerMapEnd)
  34538. }
  34539. return v, changed
  34540. }
  34541. func (f *decFnInfo) fastpathDecMapInt32Int32R(rv reflect.Value) {
  34542. if rv.CanAddr() {
  34543. vp := rv.Addr().Interface().(*map[int32]int32)
  34544. v, changed := fastpathTV.DecMapInt32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  34545. if changed {
  34546. *vp = v
  34547. }
  34548. } else {
  34549. v := rv.Interface().(map[int32]int32)
  34550. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, f.d)
  34551. }
  34552. }
  34553. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, checkNil bool, d *Decoder) {
  34554. v, changed := f.DecMapInt32Int32V(*vp, checkNil, true, d)
  34555. if changed {
  34556. *vp = v
  34557. }
  34558. }
  34559. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, checkNil bool, canChange bool,
  34560. d *Decoder) (_ map[int32]int32, changed bool) {
  34561. dd := d.d
  34562. cr := d.cr
  34563. if checkNil && dd.TryDecodeAsNil() {
  34564. if v != nil {
  34565. changed = true
  34566. }
  34567. return nil, changed
  34568. }
  34569. containerLen := dd.ReadMapStart()
  34570. if canChange && v == nil {
  34571. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  34572. v = make(map[int32]int32, xlen)
  34573. changed = true
  34574. }
  34575. var mk int32
  34576. var mv int32
  34577. if containerLen > 0 {
  34578. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34592. for j := 0; !dd.CheckBreak(); j++ {
  34593. if cr != nil {
  34594. cr.sendContainerState(containerMapKey)
  34595. }
  34596. mk = int32(dd.DecodeInt(32))
  34597. if cr != nil {
  34598. cr.sendContainerState(containerMapValue)
  34599. }
  34600. mv = int32(dd.DecodeInt(32))
  34601. if v != nil {
  34602. v[mk] = mv
  34603. }
  34604. }
  34605. }
  34606. if cr != nil {
  34607. cr.sendContainerState(containerMapEnd)
  34608. }
  34609. return v, changed
  34610. }
  34611. func (f *decFnInfo) fastpathDecMapInt32Int64R(rv reflect.Value) {
  34612. if rv.CanAddr() {
  34613. vp := rv.Addr().Interface().(*map[int32]int64)
  34614. v, changed := fastpathTV.DecMapInt32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  34615. if changed {
  34616. *vp = v
  34617. }
  34618. } else {
  34619. v := rv.Interface().(map[int32]int64)
  34620. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, f.d)
  34621. }
  34622. }
  34623. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, checkNil bool, d *Decoder) {
  34624. v, changed := f.DecMapInt32Int64V(*vp, checkNil, true, d)
  34625. if changed {
  34626. *vp = v
  34627. }
  34628. }
  34629. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, checkNil bool, canChange bool,
  34630. d *Decoder) (_ map[int32]int64, changed bool) {
  34631. dd := d.d
  34632. cr := d.cr
  34633. if checkNil && dd.TryDecodeAsNil() {
  34634. if v != nil {
  34635. changed = true
  34636. }
  34637. return nil, changed
  34638. }
  34639. containerLen := dd.ReadMapStart()
  34640. if canChange && v == nil {
  34641. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34642. v = make(map[int32]int64, xlen)
  34643. changed = true
  34644. }
  34645. var mk int32
  34646. var mv int64
  34647. if containerLen > 0 {
  34648. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34662. for j := 0; !dd.CheckBreak(); j++ {
  34663. if cr != nil {
  34664. cr.sendContainerState(containerMapKey)
  34665. }
  34666. mk = int32(dd.DecodeInt(32))
  34667. if cr != nil {
  34668. cr.sendContainerState(containerMapValue)
  34669. }
  34670. mv = dd.DecodeInt(64)
  34671. if v != nil {
  34672. v[mk] = mv
  34673. }
  34674. }
  34675. }
  34676. if cr != nil {
  34677. cr.sendContainerState(containerMapEnd)
  34678. }
  34679. return v, changed
  34680. }
  34681. func (f *decFnInfo) fastpathDecMapInt32Float32R(rv reflect.Value) {
  34682. if rv.CanAddr() {
  34683. vp := rv.Addr().Interface().(*map[int32]float32)
  34684. v, changed := fastpathTV.DecMapInt32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  34685. if changed {
  34686. *vp = v
  34687. }
  34688. } else {
  34689. v := rv.Interface().(map[int32]float32)
  34690. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, f.d)
  34691. }
  34692. }
  34693. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, checkNil bool, d *Decoder) {
  34694. v, changed := f.DecMapInt32Float32V(*vp, checkNil, true, d)
  34695. if changed {
  34696. *vp = v
  34697. }
  34698. }
  34699. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, checkNil bool, canChange bool,
  34700. d *Decoder) (_ map[int32]float32, changed bool) {
  34701. dd := d.d
  34702. cr := d.cr
  34703. if checkNil && dd.TryDecodeAsNil() {
  34704. if v != nil {
  34705. changed = true
  34706. }
  34707. return nil, changed
  34708. }
  34709. containerLen := dd.ReadMapStart()
  34710. if canChange && v == nil {
  34711. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  34712. v = make(map[int32]float32, xlen)
  34713. changed = true
  34714. }
  34715. var mk int32
  34716. var mv float32
  34717. if containerLen > 0 {
  34718. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34732. for j := 0; !dd.CheckBreak(); j++ {
  34733. if cr != nil {
  34734. cr.sendContainerState(containerMapKey)
  34735. }
  34736. mk = int32(dd.DecodeInt(32))
  34737. if cr != nil {
  34738. cr.sendContainerState(containerMapValue)
  34739. }
  34740. mv = float32(dd.DecodeFloat(true))
  34741. if v != nil {
  34742. v[mk] = mv
  34743. }
  34744. }
  34745. }
  34746. if cr != nil {
  34747. cr.sendContainerState(containerMapEnd)
  34748. }
  34749. return v, changed
  34750. }
  34751. func (f *decFnInfo) fastpathDecMapInt32Float64R(rv reflect.Value) {
  34752. if rv.CanAddr() {
  34753. vp := rv.Addr().Interface().(*map[int32]float64)
  34754. v, changed := fastpathTV.DecMapInt32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  34755. if changed {
  34756. *vp = v
  34757. }
  34758. } else {
  34759. v := rv.Interface().(map[int32]float64)
  34760. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, f.d)
  34761. }
  34762. }
  34763. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, checkNil bool, d *Decoder) {
  34764. v, changed := f.DecMapInt32Float64V(*vp, checkNil, true, d)
  34765. if changed {
  34766. *vp = v
  34767. }
  34768. }
  34769. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, checkNil bool, canChange bool,
  34770. d *Decoder) (_ map[int32]float64, changed bool) {
  34771. dd := d.d
  34772. cr := d.cr
  34773. if checkNil && dd.TryDecodeAsNil() {
  34774. if v != nil {
  34775. changed = true
  34776. }
  34777. return nil, changed
  34778. }
  34779. containerLen := dd.ReadMapStart()
  34780. if canChange && v == nil {
  34781. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  34782. v = make(map[int32]float64, xlen)
  34783. changed = true
  34784. }
  34785. var mk int32
  34786. var mv float64
  34787. if containerLen > 0 {
  34788. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34802. for j := 0; !dd.CheckBreak(); j++ {
  34803. if cr != nil {
  34804. cr.sendContainerState(containerMapKey)
  34805. }
  34806. mk = int32(dd.DecodeInt(32))
  34807. if cr != nil {
  34808. cr.sendContainerState(containerMapValue)
  34809. }
  34810. mv = dd.DecodeFloat(false)
  34811. if v != nil {
  34812. v[mk] = mv
  34813. }
  34814. }
  34815. }
  34816. if cr != nil {
  34817. cr.sendContainerState(containerMapEnd)
  34818. }
  34819. return v, changed
  34820. }
  34821. func (f *decFnInfo) fastpathDecMapInt32BoolR(rv reflect.Value) {
  34822. if rv.CanAddr() {
  34823. vp := rv.Addr().Interface().(*map[int32]bool)
  34824. v, changed := fastpathTV.DecMapInt32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  34825. if changed {
  34826. *vp = v
  34827. }
  34828. } else {
  34829. v := rv.Interface().(map[int32]bool)
  34830. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, f.d)
  34831. }
  34832. }
  34833. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, checkNil bool, d *Decoder) {
  34834. v, changed := f.DecMapInt32BoolV(*vp, checkNil, true, d)
  34835. if changed {
  34836. *vp = v
  34837. }
  34838. }
  34839. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, checkNil bool, canChange bool,
  34840. d *Decoder) (_ map[int32]bool, changed bool) {
  34841. dd := d.d
  34842. cr := d.cr
  34843. if checkNil && dd.TryDecodeAsNil() {
  34844. if v != nil {
  34845. changed = true
  34846. }
  34847. return nil, changed
  34848. }
  34849. containerLen := dd.ReadMapStart()
  34850. if canChange && v == nil {
  34851. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34852. v = make(map[int32]bool, xlen)
  34853. changed = true
  34854. }
  34855. var mk int32
  34856. var mv bool
  34857. if containerLen > 0 {
  34858. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  34872. for j := 0; !dd.CheckBreak(); j++ {
  34873. if cr != nil {
  34874. cr.sendContainerState(containerMapKey)
  34875. }
  34876. mk = int32(dd.DecodeInt(32))
  34877. if cr != nil {
  34878. cr.sendContainerState(containerMapValue)
  34879. }
  34880. mv = dd.DecodeBool()
  34881. if v != nil {
  34882. v[mk] = mv
  34883. }
  34884. }
  34885. }
  34886. if cr != nil {
  34887. cr.sendContainerState(containerMapEnd)
  34888. }
  34889. return v, changed
  34890. }
  34891. func (f *decFnInfo) fastpathDecMapInt64IntfR(rv reflect.Value) {
  34892. if rv.CanAddr() {
  34893. vp := rv.Addr().Interface().(*map[int64]interface{})
  34894. v, changed := fastpathTV.DecMapInt64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  34895. if changed {
  34896. *vp = v
  34897. }
  34898. } else {
  34899. v := rv.Interface().(map[int64]interface{})
  34900. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, f.d)
  34901. }
  34902. }
  34903. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, checkNil bool, d *Decoder) {
  34904. v, changed := f.DecMapInt64IntfV(*vp, checkNil, true, d)
  34905. if changed {
  34906. *vp = v
  34907. }
  34908. }
  34909. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, checkNil bool, canChange bool,
  34910. d *Decoder) (_ map[int64]interface{}, changed bool) {
  34911. dd := d.d
  34912. cr := d.cr
  34913. if checkNil && dd.TryDecodeAsNil() {
  34914. if v != nil {
  34915. changed = true
  34916. }
  34917. return nil, changed
  34918. }
  34919. containerLen := dd.ReadMapStart()
  34920. if canChange && v == nil {
  34921. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  34922. v = make(map[int64]interface{}, xlen)
  34923. changed = true
  34924. }
  34925. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  34926. var mk int64
  34927. var mv interface{}
  34928. if containerLen > 0 {
  34929. for j := 0; j < containerLen; j++ {
  34930. if cr != nil {
  34931. cr.sendContainerState(containerMapKey)
  34932. }
  34933. mk = dd.DecodeInt(64)
  34934. if cr != nil {
  34935. cr.sendContainerState(containerMapValue)
  34936. }
  34937. if mapGet {
  34938. mv = v[mk]
  34939. } else {
  34940. mv = nil
  34941. }
  34942. d.decode(&mv)
  34943. if v != nil {
  34944. v[mk] = mv
  34945. }
  34946. }
  34947. } else if containerLen < 0 {
  34948. for j := 0; !dd.CheckBreak(); j++ {
  34949. if cr != nil {
  34950. cr.sendContainerState(containerMapKey)
  34951. }
  34952. mk = dd.DecodeInt(64)
  34953. if cr != nil {
  34954. cr.sendContainerState(containerMapValue)
  34955. }
  34956. if mapGet {
  34957. mv = v[mk]
  34958. } else {
  34959. mv = nil
  34960. }
  34961. d.decode(&mv)
  34962. if v != nil {
  34963. v[mk] = mv
  34964. }
  34965. }
  34966. }
  34967. if cr != nil {
  34968. cr.sendContainerState(containerMapEnd)
  34969. }
  34970. return v, changed
  34971. }
  34972. func (f *decFnInfo) fastpathDecMapInt64StringR(rv reflect.Value) {
  34973. if rv.CanAddr() {
  34974. vp := rv.Addr().Interface().(*map[int64]string)
  34975. v, changed := fastpathTV.DecMapInt64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  34976. if changed {
  34977. *vp = v
  34978. }
  34979. } else {
  34980. v := rv.Interface().(map[int64]string)
  34981. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, f.d)
  34982. }
  34983. }
  34984. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, checkNil bool, d *Decoder) {
  34985. v, changed := f.DecMapInt64StringV(*vp, checkNil, true, d)
  34986. if changed {
  34987. *vp = v
  34988. }
  34989. }
  34990. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, checkNil bool, canChange bool,
  34991. d *Decoder) (_ map[int64]string, changed bool) {
  34992. dd := d.d
  34993. cr := d.cr
  34994. if checkNil && dd.TryDecodeAsNil() {
  34995. if v != nil {
  34996. changed = true
  34997. }
  34998. return nil, changed
  34999. }
  35000. containerLen := dd.ReadMapStart()
  35001. if canChange && v == nil {
  35002. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  35003. v = make(map[int64]string, xlen)
  35004. changed = true
  35005. }
  35006. var mk int64
  35007. var mv string
  35008. if containerLen > 0 {
  35009. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35023. for j := 0; !dd.CheckBreak(); j++ {
  35024. if cr != nil {
  35025. cr.sendContainerState(containerMapKey)
  35026. }
  35027. mk = dd.DecodeInt(64)
  35028. if cr != nil {
  35029. cr.sendContainerState(containerMapValue)
  35030. }
  35031. mv = dd.DecodeString()
  35032. if v != nil {
  35033. v[mk] = mv
  35034. }
  35035. }
  35036. }
  35037. if cr != nil {
  35038. cr.sendContainerState(containerMapEnd)
  35039. }
  35040. return v, changed
  35041. }
  35042. func (f *decFnInfo) fastpathDecMapInt64UintR(rv reflect.Value) {
  35043. if rv.CanAddr() {
  35044. vp := rv.Addr().Interface().(*map[int64]uint)
  35045. v, changed := fastpathTV.DecMapInt64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  35046. if changed {
  35047. *vp = v
  35048. }
  35049. } else {
  35050. v := rv.Interface().(map[int64]uint)
  35051. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, f.d)
  35052. }
  35053. }
  35054. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, checkNil bool, d *Decoder) {
  35055. v, changed := f.DecMapInt64UintV(*vp, checkNil, true, d)
  35056. if changed {
  35057. *vp = v
  35058. }
  35059. }
  35060. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, checkNil bool, canChange bool,
  35061. d *Decoder) (_ map[int64]uint, changed bool) {
  35062. dd := d.d
  35063. cr := d.cr
  35064. if checkNil && dd.TryDecodeAsNil() {
  35065. if v != nil {
  35066. changed = true
  35067. }
  35068. return nil, changed
  35069. }
  35070. containerLen := dd.ReadMapStart()
  35071. if canChange && v == nil {
  35072. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35073. v = make(map[int64]uint, xlen)
  35074. changed = true
  35075. }
  35076. var mk int64
  35077. var mv uint
  35078. if containerLen > 0 {
  35079. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35093. for j := 0; !dd.CheckBreak(); j++ {
  35094. if cr != nil {
  35095. cr.sendContainerState(containerMapKey)
  35096. }
  35097. mk = dd.DecodeInt(64)
  35098. if cr != nil {
  35099. cr.sendContainerState(containerMapValue)
  35100. }
  35101. mv = uint(dd.DecodeUint(uintBitsize))
  35102. if v != nil {
  35103. v[mk] = mv
  35104. }
  35105. }
  35106. }
  35107. if cr != nil {
  35108. cr.sendContainerState(containerMapEnd)
  35109. }
  35110. return v, changed
  35111. }
  35112. func (f *decFnInfo) fastpathDecMapInt64Uint8R(rv reflect.Value) {
  35113. if rv.CanAddr() {
  35114. vp := rv.Addr().Interface().(*map[int64]uint8)
  35115. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  35116. if changed {
  35117. *vp = v
  35118. }
  35119. } else {
  35120. v := rv.Interface().(map[int64]uint8)
  35121. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  35122. }
  35123. }
  35124. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, checkNil bool, d *Decoder) {
  35125. v, changed := f.DecMapInt64Uint8V(*vp, checkNil, true, d)
  35126. if changed {
  35127. *vp = v
  35128. }
  35129. }
  35130. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, checkNil bool, canChange bool,
  35131. d *Decoder) (_ map[int64]uint8, changed bool) {
  35132. dd := d.d
  35133. cr := d.cr
  35134. if checkNil && dd.TryDecodeAsNil() {
  35135. if v != nil {
  35136. changed = true
  35137. }
  35138. return nil, changed
  35139. }
  35140. containerLen := dd.ReadMapStart()
  35141. if canChange && v == nil {
  35142. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  35143. v = make(map[int64]uint8, xlen)
  35144. changed = true
  35145. }
  35146. var mk int64
  35147. var mv uint8
  35148. if containerLen > 0 {
  35149. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35163. for j := 0; !dd.CheckBreak(); j++ {
  35164. if cr != nil {
  35165. cr.sendContainerState(containerMapKey)
  35166. }
  35167. mk = dd.DecodeInt(64)
  35168. if cr != nil {
  35169. cr.sendContainerState(containerMapValue)
  35170. }
  35171. mv = uint8(dd.DecodeUint(8))
  35172. if v != nil {
  35173. v[mk] = mv
  35174. }
  35175. }
  35176. }
  35177. if cr != nil {
  35178. cr.sendContainerState(containerMapEnd)
  35179. }
  35180. return v, changed
  35181. }
  35182. func (f *decFnInfo) fastpathDecMapInt64Uint16R(rv reflect.Value) {
  35183. if rv.CanAddr() {
  35184. vp := rv.Addr().Interface().(*map[int64]uint16)
  35185. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  35186. if changed {
  35187. *vp = v
  35188. }
  35189. } else {
  35190. v := rv.Interface().(map[int64]uint16)
  35191. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  35192. }
  35193. }
  35194. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, checkNil bool, d *Decoder) {
  35195. v, changed := f.DecMapInt64Uint16V(*vp, checkNil, true, d)
  35196. if changed {
  35197. *vp = v
  35198. }
  35199. }
  35200. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, checkNil bool, canChange bool,
  35201. d *Decoder) (_ map[int64]uint16, changed bool) {
  35202. dd := d.d
  35203. cr := d.cr
  35204. if checkNil && dd.TryDecodeAsNil() {
  35205. if v != nil {
  35206. changed = true
  35207. }
  35208. return nil, changed
  35209. }
  35210. containerLen := dd.ReadMapStart()
  35211. if canChange && v == nil {
  35212. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  35213. v = make(map[int64]uint16, xlen)
  35214. changed = true
  35215. }
  35216. var mk int64
  35217. var mv uint16
  35218. if containerLen > 0 {
  35219. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35233. for j := 0; !dd.CheckBreak(); j++ {
  35234. if cr != nil {
  35235. cr.sendContainerState(containerMapKey)
  35236. }
  35237. mk = dd.DecodeInt(64)
  35238. if cr != nil {
  35239. cr.sendContainerState(containerMapValue)
  35240. }
  35241. mv = uint16(dd.DecodeUint(16))
  35242. if v != nil {
  35243. v[mk] = mv
  35244. }
  35245. }
  35246. }
  35247. if cr != nil {
  35248. cr.sendContainerState(containerMapEnd)
  35249. }
  35250. return v, changed
  35251. }
  35252. func (f *decFnInfo) fastpathDecMapInt64Uint32R(rv reflect.Value) {
  35253. if rv.CanAddr() {
  35254. vp := rv.Addr().Interface().(*map[int64]uint32)
  35255. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  35256. if changed {
  35257. *vp = v
  35258. }
  35259. } else {
  35260. v := rv.Interface().(map[int64]uint32)
  35261. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  35262. }
  35263. }
  35264. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, checkNil bool, d *Decoder) {
  35265. v, changed := f.DecMapInt64Uint32V(*vp, checkNil, true, d)
  35266. if changed {
  35267. *vp = v
  35268. }
  35269. }
  35270. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, checkNil bool, canChange bool,
  35271. d *Decoder) (_ map[int64]uint32, changed bool) {
  35272. dd := d.d
  35273. cr := d.cr
  35274. if checkNil && dd.TryDecodeAsNil() {
  35275. if v != nil {
  35276. changed = true
  35277. }
  35278. return nil, changed
  35279. }
  35280. containerLen := dd.ReadMapStart()
  35281. if canChange && v == nil {
  35282. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  35283. v = make(map[int64]uint32, xlen)
  35284. changed = true
  35285. }
  35286. var mk int64
  35287. var mv uint32
  35288. if containerLen > 0 {
  35289. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35303. for j := 0; !dd.CheckBreak(); j++ {
  35304. if cr != nil {
  35305. cr.sendContainerState(containerMapKey)
  35306. }
  35307. mk = dd.DecodeInt(64)
  35308. if cr != nil {
  35309. cr.sendContainerState(containerMapValue)
  35310. }
  35311. mv = uint32(dd.DecodeUint(32))
  35312. if v != nil {
  35313. v[mk] = mv
  35314. }
  35315. }
  35316. }
  35317. if cr != nil {
  35318. cr.sendContainerState(containerMapEnd)
  35319. }
  35320. return v, changed
  35321. }
  35322. func (f *decFnInfo) fastpathDecMapInt64Uint64R(rv reflect.Value) {
  35323. if rv.CanAddr() {
  35324. vp := rv.Addr().Interface().(*map[int64]uint64)
  35325. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  35326. if changed {
  35327. *vp = v
  35328. }
  35329. } else {
  35330. v := rv.Interface().(map[int64]uint64)
  35331. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  35332. }
  35333. }
  35334. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, checkNil bool, d *Decoder) {
  35335. v, changed := f.DecMapInt64Uint64V(*vp, checkNil, true, d)
  35336. if changed {
  35337. *vp = v
  35338. }
  35339. }
  35340. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, checkNil bool, canChange bool,
  35341. d *Decoder) (_ map[int64]uint64, changed bool) {
  35342. dd := d.d
  35343. cr := d.cr
  35344. if checkNil && dd.TryDecodeAsNil() {
  35345. if v != nil {
  35346. changed = true
  35347. }
  35348. return nil, changed
  35349. }
  35350. containerLen := dd.ReadMapStart()
  35351. if canChange && v == nil {
  35352. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35353. v = make(map[int64]uint64, xlen)
  35354. changed = true
  35355. }
  35356. var mk int64
  35357. var mv uint64
  35358. if containerLen > 0 {
  35359. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35373. for j := 0; !dd.CheckBreak(); j++ {
  35374. if cr != nil {
  35375. cr.sendContainerState(containerMapKey)
  35376. }
  35377. mk = dd.DecodeInt(64)
  35378. if cr != nil {
  35379. cr.sendContainerState(containerMapValue)
  35380. }
  35381. mv = dd.DecodeUint(64)
  35382. if v != nil {
  35383. v[mk] = mv
  35384. }
  35385. }
  35386. }
  35387. if cr != nil {
  35388. cr.sendContainerState(containerMapEnd)
  35389. }
  35390. return v, changed
  35391. }
  35392. func (f *decFnInfo) fastpathDecMapInt64UintptrR(rv reflect.Value) {
  35393. if rv.CanAddr() {
  35394. vp := rv.Addr().Interface().(*map[int64]uintptr)
  35395. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  35396. if changed {
  35397. *vp = v
  35398. }
  35399. } else {
  35400. v := rv.Interface().(map[int64]uintptr)
  35401. fastpathTV.DecMapInt64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  35402. }
  35403. }
  35404. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, checkNil bool, d *Decoder) {
  35405. v, changed := f.DecMapInt64UintptrV(*vp, checkNil, true, d)
  35406. if changed {
  35407. *vp = v
  35408. }
  35409. }
  35410. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, checkNil bool, canChange bool,
  35411. d *Decoder) (_ map[int64]uintptr, changed bool) {
  35412. dd := d.d
  35413. cr := d.cr
  35414. if checkNil && dd.TryDecodeAsNil() {
  35415. if v != nil {
  35416. changed = true
  35417. }
  35418. return nil, changed
  35419. }
  35420. containerLen := dd.ReadMapStart()
  35421. if canChange && v == nil {
  35422. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35423. v = make(map[int64]uintptr, xlen)
  35424. changed = true
  35425. }
  35426. var mk int64
  35427. var mv uintptr
  35428. if containerLen > 0 {
  35429. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35443. for j := 0; !dd.CheckBreak(); j++ {
  35444. if cr != nil {
  35445. cr.sendContainerState(containerMapKey)
  35446. }
  35447. mk = dd.DecodeInt(64)
  35448. if cr != nil {
  35449. cr.sendContainerState(containerMapValue)
  35450. }
  35451. mv = uintptr(dd.DecodeUint(uintBitsize))
  35452. if v != nil {
  35453. v[mk] = mv
  35454. }
  35455. }
  35456. }
  35457. if cr != nil {
  35458. cr.sendContainerState(containerMapEnd)
  35459. }
  35460. return v, changed
  35461. }
  35462. func (f *decFnInfo) fastpathDecMapInt64IntR(rv reflect.Value) {
  35463. if rv.CanAddr() {
  35464. vp := rv.Addr().Interface().(*map[int64]int)
  35465. v, changed := fastpathTV.DecMapInt64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  35466. if changed {
  35467. *vp = v
  35468. }
  35469. } else {
  35470. v := rv.Interface().(map[int64]int)
  35471. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, f.d)
  35472. }
  35473. }
  35474. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, checkNil bool, d *Decoder) {
  35475. v, changed := f.DecMapInt64IntV(*vp, checkNil, true, d)
  35476. if changed {
  35477. *vp = v
  35478. }
  35479. }
  35480. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, checkNil bool, canChange bool,
  35481. d *Decoder) (_ map[int64]int, changed bool) {
  35482. dd := d.d
  35483. cr := d.cr
  35484. if checkNil && dd.TryDecodeAsNil() {
  35485. if v != nil {
  35486. changed = true
  35487. }
  35488. return nil, changed
  35489. }
  35490. containerLen := dd.ReadMapStart()
  35491. if canChange && v == nil {
  35492. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35493. v = make(map[int64]int, xlen)
  35494. changed = true
  35495. }
  35496. var mk int64
  35497. var mv int
  35498. if containerLen > 0 {
  35499. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35513. for j := 0; !dd.CheckBreak(); j++ {
  35514. if cr != nil {
  35515. cr.sendContainerState(containerMapKey)
  35516. }
  35517. mk = dd.DecodeInt(64)
  35518. if cr != nil {
  35519. cr.sendContainerState(containerMapValue)
  35520. }
  35521. mv = int(dd.DecodeInt(intBitsize))
  35522. if v != nil {
  35523. v[mk] = mv
  35524. }
  35525. }
  35526. }
  35527. if cr != nil {
  35528. cr.sendContainerState(containerMapEnd)
  35529. }
  35530. return v, changed
  35531. }
  35532. func (f *decFnInfo) fastpathDecMapInt64Int8R(rv reflect.Value) {
  35533. if rv.CanAddr() {
  35534. vp := rv.Addr().Interface().(*map[int64]int8)
  35535. v, changed := fastpathTV.DecMapInt64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  35536. if changed {
  35537. *vp = v
  35538. }
  35539. } else {
  35540. v := rv.Interface().(map[int64]int8)
  35541. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, f.d)
  35542. }
  35543. }
  35544. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, checkNil bool, d *Decoder) {
  35545. v, changed := f.DecMapInt64Int8V(*vp, checkNil, true, d)
  35546. if changed {
  35547. *vp = v
  35548. }
  35549. }
  35550. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, checkNil bool, canChange bool,
  35551. d *Decoder) (_ map[int64]int8, changed bool) {
  35552. dd := d.d
  35553. cr := d.cr
  35554. if checkNil && dd.TryDecodeAsNil() {
  35555. if v != nil {
  35556. changed = true
  35557. }
  35558. return nil, changed
  35559. }
  35560. containerLen := dd.ReadMapStart()
  35561. if canChange && v == nil {
  35562. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  35563. v = make(map[int64]int8, xlen)
  35564. changed = true
  35565. }
  35566. var mk int64
  35567. var mv int8
  35568. if containerLen > 0 {
  35569. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35583. for j := 0; !dd.CheckBreak(); j++ {
  35584. if cr != nil {
  35585. cr.sendContainerState(containerMapKey)
  35586. }
  35587. mk = dd.DecodeInt(64)
  35588. if cr != nil {
  35589. cr.sendContainerState(containerMapValue)
  35590. }
  35591. mv = int8(dd.DecodeInt(8))
  35592. if v != nil {
  35593. v[mk] = mv
  35594. }
  35595. }
  35596. }
  35597. if cr != nil {
  35598. cr.sendContainerState(containerMapEnd)
  35599. }
  35600. return v, changed
  35601. }
  35602. func (f *decFnInfo) fastpathDecMapInt64Int16R(rv reflect.Value) {
  35603. if rv.CanAddr() {
  35604. vp := rv.Addr().Interface().(*map[int64]int16)
  35605. v, changed := fastpathTV.DecMapInt64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  35606. if changed {
  35607. *vp = v
  35608. }
  35609. } else {
  35610. v := rv.Interface().(map[int64]int16)
  35611. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, f.d)
  35612. }
  35613. }
  35614. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, checkNil bool, d *Decoder) {
  35615. v, changed := f.DecMapInt64Int16V(*vp, checkNil, true, d)
  35616. if changed {
  35617. *vp = v
  35618. }
  35619. }
  35620. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, checkNil bool, canChange bool,
  35621. d *Decoder) (_ map[int64]int16, changed bool) {
  35622. dd := d.d
  35623. cr := d.cr
  35624. if checkNil && dd.TryDecodeAsNil() {
  35625. if v != nil {
  35626. changed = true
  35627. }
  35628. return nil, changed
  35629. }
  35630. containerLen := dd.ReadMapStart()
  35631. if canChange && v == nil {
  35632. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  35633. v = make(map[int64]int16, xlen)
  35634. changed = true
  35635. }
  35636. var mk int64
  35637. var mv int16
  35638. if containerLen > 0 {
  35639. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35653. for j := 0; !dd.CheckBreak(); j++ {
  35654. if cr != nil {
  35655. cr.sendContainerState(containerMapKey)
  35656. }
  35657. mk = dd.DecodeInt(64)
  35658. if cr != nil {
  35659. cr.sendContainerState(containerMapValue)
  35660. }
  35661. mv = int16(dd.DecodeInt(16))
  35662. if v != nil {
  35663. v[mk] = mv
  35664. }
  35665. }
  35666. }
  35667. if cr != nil {
  35668. cr.sendContainerState(containerMapEnd)
  35669. }
  35670. return v, changed
  35671. }
  35672. func (f *decFnInfo) fastpathDecMapInt64Int32R(rv reflect.Value) {
  35673. if rv.CanAddr() {
  35674. vp := rv.Addr().Interface().(*map[int64]int32)
  35675. v, changed := fastpathTV.DecMapInt64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  35676. if changed {
  35677. *vp = v
  35678. }
  35679. } else {
  35680. v := rv.Interface().(map[int64]int32)
  35681. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, f.d)
  35682. }
  35683. }
  35684. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, checkNil bool, d *Decoder) {
  35685. v, changed := f.DecMapInt64Int32V(*vp, checkNil, true, d)
  35686. if changed {
  35687. *vp = v
  35688. }
  35689. }
  35690. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, checkNil bool, canChange bool,
  35691. d *Decoder) (_ map[int64]int32, changed bool) {
  35692. dd := d.d
  35693. cr := d.cr
  35694. if checkNil && dd.TryDecodeAsNil() {
  35695. if v != nil {
  35696. changed = true
  35697. }
  35698. return nil, changed
  35699. }
  35700. containerLen := dd.ReadMapStart()
  35701. if canChange && v == nil {
  35702. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  35703. v = make(map[int64]int32, xlen)
  35704. changed = true
  35705. }
  35706. var mk int64
  35707. var mv int32
  35708. if containerLen > 0 {
  35709. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35723. for j := 0; !dd.CheckBreak(); j++ {
  35724. if cr != nil {
  35725. cr.sendContainerState(containerMapKey)
  35726. }
  35727. mk = dd.DecodeInt(64)
  35728. if cr != nil {
  35729. cr.sendContainerState(containerMapValue)
  35730. }
  35731. mv = int32(dd.DecodeInt(32))
  35732. if v != nil {
  35733. v[mk] = mv
  35734. }
  35735. }
  35736. }
  35737. if cr != nil {
  35738. cr.sendContainerState(containerMapEnd)
  35739. }
  35740. return v, changed
  35741. }
  35742. func (f *decFnInfo) fastpathDecMapInt64Int64R(rv reflect.Value) {
  35743. if rv.CanAddr() {
  35744. vp := rv.Addr().Interface().(*map[int64]int64)
  35745. v, changed := fastpathTV.DecMapInt64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  35746. if changed {
  35747. *vp = v
  35748. }
  35749. } else {
  35750. v := rv.Interface().(map[int64]int64)
  35751. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, f.d)
  35752. }
  35753. }
  35754. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, checkNil bool, d *Decoder) {
  35755. v, changed := f.DecMapInt64Int64V(*vp, checkNil, true, d)
  35756. if changed {
  35757. *vp = v
  35758. }
  35759. }
  35760. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, checkNil bool, canChange bool,
  35761. d *Decoder) (_ map[int64]int64, changed bool) {
  35762. dd := d.d
  35763. cr := d.cr
  35764. if checkNil && dd.TryDecodeAsNil() {
  35765. if v != nil {
  35766. changed = true
  35767. }
  35768. return nil, changed
  35769. }
  35770. containerLen := dd.ReadMapStart()
  35771. if canChange && v == nil {
  35772. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35773. v = make(map[int64]int64, xlen)
  35774. changed = true
  35775. }
  35776. var mk int64
  35777. var mv int64
  35778. if containerLen > 0 {
  35779. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35793. for j := 0; !dd.CheckBreak(); j++ {
  35794. if cr != nil {
  35795. cr.sendContainerState(containerMapKey)
  35796. }
  35797. mk = dd.DecodeInt(64)
  35798. if cr != nil {
  35799. cr.sendContainerState(containerMapValue)
  35800. }
  35801. mv = dd.DecodeInt(64)
  35802. if v != nil {
  35803. v[mk] = mv
  35804. }
  35805. }
  35806. }
  35807. if cr != nil {
  35808. cr.sendContainerState(containerMapEnd)
  35809. }
  35810. return v, changed
  35811. }
  35812. func (f *decFnInfo) fastpathDecMapInt64Float32R(rv reflect.Value) {
  35813. if rv.CanAddr() {
  35814. vp := rv.Addr().Interface().(*map[int64]float32)
  35815. v, changed := fastpathTV.DecMapInt64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  35816. if changed {
  35817. *vp = v
  35818. }
  35819. } else {
  35820. v := rv.Interface().(map[int64]float32)
  35821. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, f.d)
  35822. }
  35823. }
  35824. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, checkNil bool, d *Decoder) {
  35825. v, changed := f.DecMapInt64Float32V(*vp, checkNil, true, d)
  35826. if changed {
  35827. *vp = v
  35828. }
  35829. }
  35830. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, checkNil bool, canChange bool,
  35831. d *Decoder) (_ map[int64]float32, changed bool) {
  35832. dd := d.d
  35833. cr := d.cr
  35834. if checkNil && dd.TryDecodeAsNil() {
  35835. if v != nil {
  35836. changed = true
  35837. }
  35838. return nil, changed
  35839. }
  35840. containerLen := dd.ReadMapStart()
  35841. if canChange && v == nil {
  35842. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  35843. v = make(map[int64]float32, xlen)
  35844. changed = true
  35845. }
  35846. var mk int64
  35847. var mv float32
  35848. if containerLen > 0 {
  35849. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35863. for j := 0; !dd.CheckBreak(); j++ {
  35864. if cr != nil {
  35865. cr.sendContainerState(containerMapKey)
  35866. }
  35867. mk = dd.DecodeInt(64)
  35868. if cr != nil {
  35869. cr.sendContainerState(containerMapValue)
  35870. }
  35871. mv = float32(dd.DecodeFloat(true))
  35872. if v != nil {
  35873. v[mk] = mv
  35874. }
  35875. }
  35876. }
  35877. if cr != nil {
  35878. cr.sendContainerState(containerMapEnd)
  35879. }
  35880. return v, changed
  35881. }
  35882. func (f *decFnInfo) fastpathDecMapInt64Float64R(rv reflect.Value) {
  35883. if rv.CanAddr() {
  35884. vp := rv.Addr().Interface().(*map[int64]float64)
  35885. v, changed := fastpathTV.DecMapInt64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  35886. if changed {
  35887. *vp = v
  35888. }
  35889. } else {
  35890. v := rv.Interface().(map[int64]float64)
  35891. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, f.d)
  35892. }
  35893. }
  35894. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, checkNil bool, d *Decoder) {
  35895. v, changed := f.DecMapInt64Float64V(*vp, checkNil, true, d)
  35896. if changed {
  35897. *vp = v
  35898. }
  35899. }
  35900. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, checkNil bool, canChange bool,
  35901. d *Decoder) (_ map[int64]float64, changed bool) {
  35902. dd := d.d
  35903. cr := d.cr
  35904. if checkNil && dd.TryDecodeAsNil() {
  35905. if v != nil {
  35906. changed = true
  35907. }
  35908. return nil, changed
  35909. }
  35910. containerLen := dd.ReadMapStart()
  35911. if canChange && v == nil {
  35912. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  35913. v = make(map[int64]float64, xlen)
  35914. changed = true
  35915. }
  35916. var mk int64
  35917. var mv float64
  35918. if containerLen > 0 {
  35919. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  35933. for j := 0; !dd.CheckBreak(); j++ {
  35934. if cr != nil {
  35935. cr.sendContainerState(containerMapKey)
  35936. }
  35937. mk = dd.DecodeInt(64)
  35938. if cr != nil {
  35939. cr.sendContainerState(containerMapValue)
  35940. }
  35941. mv = dd.DecodeFloat(false)
  35942. if v != nil {
  35943. v[mk] = mv
  35944. }
  35945. }
  35946. }
  35947. if cr != nil {
  35948. cr.sendContainerState(containerMapEnd)
  35949. }
  35950. return v, changed
  35951. }
  35952. func (f *decFnInfo) fastpathDecMapInt64BoolR(rv reflect.Value) {
  35953. if rv.CanAddr() {
  35954. vp := rv.Addr().Interface().(*map[int64]bool)
  35955. v, changed := fastpathTV.DecMapInt64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  35956. if changed {
  35957. *vp = v
  35958. }
  35959. } else {
  35960. v := rv.Interface().(map[int64]bool)
  35961. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, f.d)
  35962. }
  35963. }
  35964. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, checkNil bool, d *Decoder) {
  35965. v, changed := f.DecMapInt64BoolV(*vp, checkNil, true, d)
  35966. if changed {
  35967. *vp = v
  35968. }
  35969. }
  35970. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, checkNil bool, canChange bool,
  35971. d *Decoder) (_ map[int64]bool, changed bool) {
  35972. dd := d.d
  35973. cr := d.cr
  35974. if checkNil && dd.TryDecodeAsNil() {
  35975. if v != nil {
  35976. changed = true
  35977. }
  35978. return nil, changed
  35979. }
  35980. containerLen := dd.ReadMapStart()
  35981. if canChange && v == nil {
  35982. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  35983. v = make(map[int64]bool, xlen)
  35984. changed = true
  35985. }
  35986. var mk int64
  35987. var mv bool
  35988. if containerLen > 0 {
  35989. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36003. for j := 0; !dd.CheckBreak(); j++ {
  36004. if cr != nil {
  36005. cr.sendContainerState(containerMapKey)
  36006. }
  36007. mk = dd.DecodeInt(64)
  36008. if cr != nil {
  36009. cr.sendContainerState(containerMapValue)
  36010. }
  36011. mv = dd.DecodeBool()
  36012. if v != nil {
  36013. v[mk] = mv
  36014. }
  36015. }
  36016. }
  36017. if cr != nil {
  36018. cr.sendContainerState(containerMapEnd)
  36019. }
  36020. return v, changed
  36021. }
  36022. func (f *decFnInfo) fastpathDecMapBoolIntfR(rv reflect.Value) {
  36023. if rv.CanAddr() {
  36024. vp := rv.Addr().Interface().(*map[bool]interface{})
  36025. v, changed := fastpathTV.DecMapBoolIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  36026. if changed {
  36027. *vp = v
  36028. }
  36029. } else {
  36030. v := rv.Interface().(map[bool]interface{})
  36031. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, f.d)
  36032. }
  36033. }
  36034. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, checkNil bool, d *Decoder) {
  36035. v, changed := f.DecMapBoolIntfV(*vp, checkNil, true, d)
  36036. if changed {
  36037. *vp = v
  36038. }
  36039. }
  36040. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, checkNil bool, canChange bool,
  36041. d *Decoder) (_ map[bool]interface{}, changed bool) {
  36042. dd := d.d
  36043. cr := d.cr
  36044. if checkNil && dd.TryDecodeAsNil() {
  36045. if v != nil {
  36046. changed = true
  36047. }
  36048. return nil, changed
  36049. }
  36050. containerLen := dd.ReadMapStart()
  36051. if canChange && v == nil {
  36052. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  36053. v = make(map[bool]interface{}, xlen)
  36054. changed = true
  36055. }
  36056. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  36057. var mk bool
  36058. var mv interface{}
  36059. if containerLen > 0 {
  36060. for j := 0; j < containerLen; j++ {
  36061. if cr != nil {
  36062. cr.sendContainerState(containerMapKey)
  36063. }
  36064. mk = dd.DecodeBool()
  36065. if cr != nil {
  36066. cr.sendContainerState(containerMapValue)
  36067. }
  36068. if mapGet {
  36069. mv = v[mk]
  36070. } else {
  36071. mv = nil
  36072. }
  36073. d.decode(&mv)
  36074. if v != nil {
  36075. v[mk] = mv
  36076. }
  36077. }
  36078. } else if containerLen < 0 {
  36079. for j := 0; !dd.CheckBreak(); j++ {
  36080. if cr != nil {
  36081. cr.sendContainerState(containerMapKey)
  36082. }
  36083. mk = dd.DecodeBool()
  36084. if cr != nil {
  36085. cr.sendContainerState(containerMapValue)
  36086. }
  36087. if mapGet {
  36088. mv = v[mk]
  36089. } else {
  36090. mv = nil
  36091. }
  36092. d.decode(&mv)
  36093. if v != nil {
  36094. v[mk] = mv
  36095. }
  36096. }
  36097. }
  36098. if cr != nil {
  36099. cr.sendContainerState(containerMapEnd)
  36100. }
  36101. return v, changed
  36102. }
  36103. func (f *decFnInfo) fastpathDecMapBoolStringR(rv reflect.Value) {
  36104. if rv.CanAddr() {
  36105. vp := rv.Addr().Interface().(*map[bool]string)
  36106. v, changed := fastpathTV.DecMapBoolStringV(*vp, fastpathCheckNilFalse, true, f.d)
  36107. if changed {
  36108. *vp = v
  36109. }
  36110. } else {
  36111. v := rv.Interface().(map[bool]string)
  36112. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, f.d)
  36113. }
  36114. }
  36115. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, checkNil bool, d *Decoder) {
  36116. v, changed := f.DecMapBoolStringV(*vp, checkNil, true, d)
  36117. if changed {
  36118. *vp = v
  36119. }
  36120. }
  36121. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, checkNil bool, canChange bool,
  36122. d *Decoder) (_ map[bool]string, changed bool) {
  36123. dd := d.d
  36124. cr := d.cr
  36125. if checkNil && dd.TryDecodeAsNil() {
  36126. if v != nil {
  36127. changed = true
  36128. }
  36129. return nil, changed
  36130. }
  36131. containerLen := dd.ReadMapStart()
  36132. if canChange && v == nil {
  36133. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  36134. v = make(map[bool]string, xlen)
  36135. changed = true
  36136. }
  36137. var mk bool
  36138. var mv string
  36139. if containerLen > 0 {
  36140. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36154. for j := 0; !dd.CheckBreak(); j++ {
  36155. if cr != nil {
  36156. cr.sendContainerState(containerMapKey)
  36157. }
  36158. mk = dd.DecodeBool()
  36159. if cr != nil {
  36160. cr.sendContainerState(containerMapValue)
  36161. }
  36162. mv = dd.DecodeString()
  36163. if v != nil {
  36164. v[mk] = mv
  36165. }
  36166. }
  36167. }
  36168. if cr != nil {
  36169. cr.sendContainerState(containerMapEnd)
  36170. }
  36171. return v, changed
  36172. }
  36173. func (f *decFnInfo) fastpathDecMapBoolUintR(rv reflect.Value) {
  36174. if rv.CanAddr() {
  36175. vp := rv.Addr().Interface().(*map[bool]uint)
  36176. v, changed := fastpathTV.DecMapBoolUintV(*vp, fastpathCheckNilFalse, true, f.d)
  36177. if changed {
  36178. *vp = v
  36179. }
  36180. } else {
  36181. v := rv.Interface().(map[bool]uint)
  36182. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, f.d)
  36183. }
  36184. }
  36185. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, checkNil bool, d *Decoder) {
  36186. v, changed := f.DecMapBoolUintV(*vp, checkNil, true, d)
  36187. if changed {
  36188. *vp = v
  36189. }
  36190. }
  36191. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, checkNil bool, canChange bool,
  36192. d *Decoder) (_ map[bool]uint, changed bool) {
  36193. dd := d.d
  36194. cr := d.cr
  36195. if checkNil && dd.TryDecodeAsNil() {
  36196. if v != nil {
  36197. changed = true
  36198. }
  36199. return nil, changed
  36200. }
  36201. containerLen := dd.ReadMapStart()
  36202. if canChange && v == nil {
  36203. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36204. v = make(map[bool]uint, xlen)
  36205. changed = true
  36206. }
  36207. var mk bool
  36208. var mv uint
  36209. if containerLen > 0 {
  36210. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36224. for j := 0; !dd.CheckBreak(); j++ {
  36225. if cr != nil {
  36226. cr.sendContainerState(containerMapKey)
  36227. }
  36228. mk = dd.DecodeBool()
  36229. if cr != nil {
  36230. cr.sendContainerState(containerMapValue)
  36231. }
  36232. mv = uint(dd.DecodeUint(uintBitsize))
  36233. if v != nil {
  36234. v[mk] = mv
  36235. }
  36236. }
  36237. }
  36238. if cr != nil {
  36239. cr.sendContainerState(containerMapEnd)
  36240. }
  36241. return v, changed
  36242. }
  36243. func (f *decFnInfo) fastpathDecMapBoolUint8R(rv reflect.Value) {
  36244. if rv.CanAddr() {
  36245. vp := rv.Addr().Interface().(*map[bool]uint8)
  36246. v, changed := fastpathTV.DecMapBoolUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  36247. if changed {
  36248. *vp = v
  36249. }
  36250. } else {
  36251. v := rv.Interface().(map[bool]uint8)
  36252. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, f.d)
  36253. }
  36254. }
  36255. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, checkNil bool, d *Decoder) {
  36256. v, changed := f.DecMapBoolUint8V(*vp, checkNil, true, d)
  36257. if changed {
  36258. *vp = v
  36259. }
  36260. }
  36261. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, checkNil bool, canChange bool,
  36262. d *Decoder) (_ map[bool]uint8, changed bool) {
  36263. dd := d.d
  36264. cr := d.cr
  36265. if checkNil && dd.TryDecodeAsNil() {
  36266. if v != nil {
  36267. changed = true
  36268. }
  36269. return nil, changed
  36270. }
  36271. containerLen := dd.ReadMapStart()
  36272. if canChange && v == nil {
  36273. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  36274. v = make(map[bool]uint8, xlen)
  36275. changed = true
  36276. }
  36277. var mk bool
  36278. var mv uint8
  36279. if containerLen > 0 {
  36280. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36294. for j := 0; !dd.CheckBreak(); j++ {
  36295. if cr != nil {
  36296. cr.sendContainerState(containerMapKey)
  36297. }
  36298. mk = dd.DecodeBool()
  36299. if cr != nil {
  36300. cr.sendContainerState(containerMapValue)
  36301. }
  36302. mv = uint8(dd.DecodeUint(8))
  36303. if v != nil {
  36304. v[mk] = mv
  36305. }
  36306. }
  36307. }
  36308. if cr != nil {
  36309. cr.sendContainerState(containerMapEnd)
  36310. }
  36311. return v, changed
  36312. }
  36313. func (f *decFnInfo) fastpathDecMapBoolUint16R(rv reflect.Value) {
  36314. if rv.CanAddr() {
  36315. vp := rv.Addr().Interface().(*map[bool]uint16)
  36316. v, changed := fastpathTV.DecMapBoolUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  36317. if changed {
  36318. *vp = v
  36319. }
  36320. } else {
  36321. v := rv.Interface().(map[bool]uint16)
  36322. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, f.d)
  36323. }
  36324. }
  36325. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, checkNil bool, d *Decoder) {
  36326. v, changed := f.DecMapBoolUint16V(*vp, checkNil, true, d)
  36327. if changed {
  36328. *vp = v
  36329. }
  36330. }
  36331. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, checkNil bool, canChange bool,
  36332. d *Decoder) (_ map[bool]uint16, changed bool) {
  36333. dd := d.d
  36334. cr := d.cr
  36335. if checkNil && dd.TryDecodeAsNil() {
  36336. if v != nil {
  36337. changed = true
  36338. }
  36339. return nil, changed
  36340. }
  36341. containerLen := dd.ReadMapStart()
  36342. if canChange && v == nil {
  36343. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  36344. v = make(map[bool]uint16, xlen)
  36345. changed = true
  36346. }
  36347. var mk bool
  36348. var mv uint16
  36349. if containerLen > 0 {
  36350. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36364. for j := 0; !dd.CheckBreak(); j++ {
  36365. if cr != nil {
  36366. cr.sendContainerState(containerMapKey)
  36367. }
  36368. mk = dd.DecodeBool()
  36369. if cr != nil {
  36370. cr.sendContainerState(containerMapValue)
  36371. }
  36372. mv = uint16(dd.DecodeUint(16))
  36373. if v != nil {
  36374. v[mk] = mv
  36375. }
  36376. }
  36377. }
  36378. if cr != nil {
  36379. cr.sendContainerState(containerMapEnd)
  36380. }
  36381. return v, changed
  36382. }
  36383. func (f *decFnInfo) fastpathDecMapBoolUint32R(rv reflect.Value) {
  36384. if rv.CanAddr() {
  36385. vp := rv.Addr().Interface().(*map[bool]uint32)
  36386. v, changed := fastpathTV.DecMapBoolUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  36387. if changed {
  36388. *vp = v
  36389. }
  36390. } else {
  36391. v := rv.Interface().(map[bool]uint32)
  36392. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, f.d)
  36393. }
  36394. }
  36395. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, checkNil bool, d *Decoder) {
  36396. v, changed := f.DecMapBoolUint32V(*vp, checkNil, true, d)
  36397. if changed {
  36398. *vp = v
  36399. }
  36400. }
  36401. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, checkNil bool, canChange bool,
  36402. d *Decoder) (_ map[bool]uint32, changed bool) {
  36403. dd := d.d
  36404. cr := d.cr
  36405. if checkNil && dd.TryDecodeAsNil() {
  36406. if v != nil {
  36407. changed = true
  36408. }
  36409. return nil, changed
  36410. }
  36411. containerLen := dd.ReadMapStart()
  36412. if canChange && v == nil {
  36413. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  36414. v = make(map[bool]uint32, xlen)
  36415. changed = true
  36416. }
  36417. var mk bool
  36418. var mv uint32
  36419. if containerLen > 0 {
  36420. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36434. for j := 0; !dd.CheckBreak(); j++ {
  36435. if cr != nil {
  36436. cr.sendContainerState(containerMapKey)
  36437. }
  36438. mk = dd.DecodeBool()
  36439. if cr != nil {
  36440. cr.sendContainerState(containerMapValue)
  36441. }
  36442. mv = uint32(dd.DecodeUint(32))
  36443. if v != nil {
  36444. v[mk] = mv
  36445. }
  36446. }
  36447. }
  36448. if cr != nil {
  36449. cr.sendContainerState(containerMapEnd)
  36450. }
  36451. return v, changed
  36452. }
  36453. func (f *decFnInfo) fastpathDecMapBoolUint64R(rv reflect.Value) {
  36454. if rv.CanAddr() {
  36455. vp := rv.Addr().Interface().(*map[bool]uint64)
  36456. v, changed := fastpathTV.DecMapBoolUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  36457. if changed {
  36458. *vp = v
  36459. }
  36460. } else {
  36461. v := rv.Interface().(map[bool]uint64)
  36462. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, f.d)
  36463. }
  36464. }
  36465. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, checkNil bool, d *Decoder) {
  36466. v, changed := f.DecMapBoolUint64V(*vp, checkNil, true, d)
  36467. if changed {
  36468. *vp = v
  36469. }
  36470. }
  36471. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, checkNil bool, canChange bool,
  36472. d *Decoder) (_ map[bool]uint64, changed bool) {
  36473. dd := d.d
  36474. cr := d.cr
  36475. if checkNil && dd.TryDecodeAsNil() {
  36476. if v != nil {
  36477. changed = true
  36478. }
  36479. return nil, changed
  36480. }
  36481. containerLen := dd.ReadMapStart()
  36482. if canChange && v == nil {
  36483. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36484. v = make(map[bool]uint64, xlen)
  36485. changed = true
  36486. }
  36487. var mk bool
  36488. var mv uint64
  36489. if containerLen > 0 {
  36490. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36504. for j := 0; !dd.CheckBreak(); j++ {
  36505. if cr != nil {
  36506. cr.sendContainerState(containerMapKey)
  36507. }
  36508. mk = dd.DecodeBool()
  36509. if cr != nil {
  36510. cr.sendContainerState(containerMapValue)
  36511. }
  36512. mv = dd.DecodeUint(64)
  36513. if v != nil {
  36514. v[mk] = mv
  36515. }
  36516. }
  36517. }
  36518. if cr != nil {
  36519. cr.sendContainerState(containerMapEnd)
  36520. }
  36521. return v, changed
  36522. }
  36523. func (f *decFnInfo) fastpathDecMapBoolUintptrR(rv reflect.Value) {
  36524. if rv.CanAddr() {
  36525. vp := rv.Addr().Interface().(*map[bool]uintptr)
  36526. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  36527. if changed {
  36528. *vp = v
  36529. }
  36530. } else {
  36531. v := rv.Interface().(map[bool]uintptr)
  36532. fastpathTV.DecMapBoolUintptrV(v, fastpathCheckNilFalse, false, f.d)
  36533. }
  36534. }
  36535. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, checkNil bool, d *Decoder) {
  36536. v, changed := f.DecMapBoolUintptrV(*vp, checkNil, true, d)
  36537. if changed {
  36538. *vp = v
  36539. }
  36540. }
  36541. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, checkNil bool, canChange bool,
  36542. d *Decoder) (_ map[bool]uintptr, changed bool) {
  36543. dd := d.d
  36544. cr := d.cr
  36545. if checkNil && dd.TryDecodeAsNil() {
  36546. if v != nil {
  36547. changed = true
  36548. }
  36549. return nil, changed
  36550. }
  36551. containerLen := dd.ReadMapStart()
  36552. if canChange && v == nil {
  36553. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36554. v = make(map[bool]uintptr, xlen)
  36555. changed = true
  36556. }
  36557. var mk bool
  36558. var mv uintptr
  36559. if containerLen > 0 {
  36560. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36574. for j := 0; !dd.CheckBreak(); j++ {
  36575. if cr != nil {
  36576. cr.sendContainerState(containerMapKey)
  36577. }
  36578. mk = dd.DecodeBool()
  36579. if cr != nil {
  36580. cr.sendContainerState(containerMapValue)
  36581. }
  36582. mv = uintptr(dd.DecodeUint(uintBitsize))
  36583. if v != nil {
  36584. v[mk] = mv
  36585. }
  36586. }
  36587. }
  36588. if cr != nil {
  36589. cr.sendContainerState(containerMapEnd)
  36590. }
  36591. return v, changed
  36592. }
  36593. func (f *decFnInfo) fastpathDecMapBoolIntR(rv reflect.Value) {
  36594. if rv.CanAddr() {
  36595. vp := rv.Addr().Interface().(*map[bool]int)
  36596. v, changed := fastpathTV.DecMapBoolIntV(*vp, fastpathCheckNilFalse, true, f.d)
  36597. if changed {
  36598. *vp = v
  36599. }
  36600. } else {
  36601. v := rv.Interface().(map[bool]int)
  36602. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, f.d)
  36603. }
  36604. }
  36605. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, checkNil bool, d *Decoder) {
  36606. v, changed := f.DecMapBoolIntV(*vp, checkNil, true, d)
  36607. if changed {
  36608. *vp = v
  36609. }
  36610. }
  36611. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, checkNil bool, canChange bool,
  36612. d *Decoder) (_ map[bool]int, changed bool) {
  36613. dd := d.d
  36614. cr := d.cr
  36615. if checkNil && dd.TryDecodeAsNil() {
  36616. if v != nil {
  36617. changed = true
  36618. }
  36619. return nil, changed
  36620. }
  36621. containerLen := dd.ReadMapStart()
  36622. if canChange && v == nil {
  36623. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36624. v = make(map[bool]int, xlen)
  36625. changed = true
  36626. }
  36627. var mk bool
  36628. var mv int
  36629. if containerLen > 0 {
  36630. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36644. for j := 0; !dd.CheckBreak(); j++ {
  36645. if cr != nil {
  36646. cr.sendContainerState(containerMapKey)
  36647. }
  36648. mk = dd.DecodeBool()
  36649. if cr != nil {
  36650. cr.sendContainerState(containerMapValue)
  36651. }
  36652. mv = int(dd.DecodeInt(intBitsize))
  36653. if v != nil {
  36654. v[mk] = mv
  36655. }
  36656. }
  36657. }
  36658. if cr != nil {
  36659. cr.sendContainerState(containerMapEnd)
  36660. }
  36661. return v, changed
  36662. }
  36663. func (f *decFnInfo) fastpathDecMapBoolInt8R(rv reflect.Value) {
  36664. if rv.CanAddr() {
  36665. vp := rv.Addr().Interface().(*map[bool]int8)
  36666. v, changed := fastpathTV.DecMapBoolInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  36667. if changed {
  36668. *vp = v
  36669. }
  36670. } else {
  36671. v := rv.Interface().(map[bool]int8)
  36672. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, f.d)
  36673. }
  36674. }
  36675. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, checkNil bool, d *Decoder) {
  36676. v, changed := f.DecMapBoolInt8V(*vp, checkNil, true, d)
  36677. if changed {
  36678. *vp = v
  36679. }
  36680. }
  36681. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, checkNil bool, canChange bool,
  36682. d *Decoder) (_ map[bool]int8, changed bool) {
  36683. dd := d.d
  36684. cr := d.cr
  36685. if checkNil && dd.TryDecodeAsNil() {
  36686. if v != nil {
  36687. changed = true
  36688. }
  36689. return nil, changed
  36690. }
  36691. containerLen := dd.ReadMapStart()
  36692. if canChange && v == nil {
  36693. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  36694. v = make(map[bool]int8, xlen)
  36695. changed = true
  36696. }
  36697. var mk bool
  36698. var mv int8
  36699. if containerLen > 0 {
  36700. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36714. for j := 0; !dd.CheckBreak(); j++ {
  36715. if cr != nil {
  36716. cr.sendContainerState(containerMapKey)
  36717. }
  36718. mk = dd.DecodeBool()
  36719. if cr != nil {
  36720. cr.sendContainerState(containerMapValue)
  36721. }
  36722. mv = int8(dd.DecodeInt(8))
  36723. if v != nil {
  36724. v[mk] = mv
  36725. }
  36726. }
  36727. }
  36728. if cr != nil {
  36729. cr.sendContainerState(containerMapEnd)
  36730. }
  36731. return v, changed
  36732. }
  36733. func (f *decFnInfo) fastpathDecMapBoolInt16R(rv reflect.Value) {
  36734. if rv.CanAddr() {
  36735. vp := rv.Addr().Interface().(*map[bool]int16)
  36736. v, changed := fastpathTV.DecMapBoolInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  36737. if changed {
  36738. *vp = v
  36739. }
  36740. } else {
  36741. v := rv.Interface().(map[bool]int16)
  36742. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, f.d)
  36743. }
  36744. }
  36745. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, checkNil bool, d *Decoder) {
  36746. v, changed := f.DecMapBoolInt16V(*vp, checkNil, true, d)
  36747. if changed {
  36748. *vp = v
  36749. }
  36750. }
  36751. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, checkNil bool, canChange bool,
  36752. d *Decoder) (_ map[bool]int16, changed bool) {
  36753. dd := d.d
  36754. cr := d.cr
  36755. if checkNil && dd.TryDecodeAsNil() {
  36756. if v != nil {
  36757. changed = true
  36758. }
  36759. return nil, changed
  36760. }
  36761. containerLen := dd.ReadMapStart()
  36762. if canChange && v == nil {
  36763. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  36764. v = make(map[bool]int16, xlen)
  36765. changed = true
  36766. }
  36767. var mk bool
  36768. var mv int16
  36769. if containerLen > 0 {
  36770. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36784. for j := 0; !dd.CheckBreak(); j++ {
  36785. if cr != nil {
  36786. cr.sendContainerState(containerMapKey)
  36787. }
  36788. mk = dd.DecodeBool()
  36789. if cr != nil {
  36790. cr.sendContainerState(containerMapValue)
  36791. }
  36792. mv = int16(dd.DecodeInt(16))
  36793. if v != nil {
  36794. v[mk] = mv
  36795. }
  36796. }
  36797. }
  36798. if cr != nil {
  36799. cr.sendContainerState(containerMapEnd)
  36800. }
  36801. return v, changed
  36802. }
  36803. func (f *decFnInfo) fastpathDecMapBoolInt32R(rv reflect.Value) {
  36804. if rv.CanAddr() {
  36805. vp := rv.Addr().Interface().(*map[bool]int32)
  36806. v, changed := fastpathTV.DecMapBoolInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  36807. if changed {
  36808. *vp = v
  36809. }
  36810. } else {
  36811. v := rv.Interface().(map[bool]int32)
  36812. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, f.d)
  36813. }
  36814. }
  36815. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, checkNil bool, d *Decoder) {
  36816. v, changed := f.DecMapBoolInt32V(*vp, checkNil, true, d)
  36817. if changed {
  36818. *vp = v
  36819. }
  36820. }
  36821. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, checkNil bool, canChange bool,
  36822. d *Decoder) (_ map[bool]int32, changed bool) {
  36823. dd := d.d
  36824. cr := d.cr
  36825. if checkNil && dd.TryDecodeAsNil() {
  36826. if v != nil {
  36827. changed = true
  36828. }
  36829. return nil, changed
  36830. }
  36831. containerLen := dd.ReadMapStart()
  36832. if canChange && v == nil {
  36833. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  36834. v = make(map[bool]int32, xlen)
  36835. changed = true
  36836. }
  36837. var mk bool
  36838. var mv int32
  36839. if containerLen > 0 {
  36840. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36854. for j := 0; !dd.CheckBreak(); j++ {
  36855. if cr != nil {
  36856. cr.sendContainerState(containerMapKey)
  36857. }
  36858. mk = dd.DecodeBool()
  36859. if cr != nil {
  36860. cr.sendContainerState(containerMapValue)
  36861. }
  36862. mv = int32(dd.DecodeInt(32))
  36863. if v != nil {
  36864. v[mk] = mv
  36865. }
  36866. }
  36867. }
  36868. if cr != nil {
  36869. cr.sendContainerState(containerMapEnd)
  36870. }
  36871. return v, changed
  36872. }
  36873. func (f *decFnInfo) fastpathDecMapBoolInt64R(rv reflect.Value) {
  36874. if rv.CanAddr() {
  36875. vp := rv.Addr().Interface().(*map[bool]int64)
  36876. v, changed := fastpathTV.DecMapBoolInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  36877. if changed {
  36878. *vp = v
  36879. }
  36880. } else {
  36881. v := rv.Interface().(map[bool]int64)
  36882. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, f.d)
  36883. }
  36884. }
  36885. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, checkNil bool, d *Decoder) {
  36886. v, changed := f.DecMapBoolInt64V(*vp, checkNil, true, d)
  36887. if changed {
  36888. *vp = v
  36889. }
  36890. }
  36891. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, checkNil bool, canChange bool,
  36892. d *Decoder) (_ map[bool]int64, changed bool) {
  36893. dd := d.d
  36894. cr := d.cr
  36895. if checkNil && dd.TryDecodeAsNil() {
  36896. if v != nil {
  36897. changed = true
  36898. }
  36899. return nil, changed
  36900. }
  36901. containerLen := dd.ReadMapStart()
  36902. if canChange && v == nil {
  36903. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  36904. v = make(map[bool]int64, xlen)
  36905. changed = true
  36906. }
  36907. var mk bool
  36908. var mv int64
  36909. if containerLen > 0 {
  36910. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36924. for j := 0; !dd.CheckBreak(); j++ {
  36925. if cr != nil {
  36926. cr.sendContainerState(containerMapKey)
  36927. }
  36928. mk = dd.DecodeBool()
  36929. if cr != nil {
  36930. cr.sendContainerState(containerMapValue)
  36931. }
  36932. mv = dd.DecodeInt(64)
  36933. if v != nil {
  36934. v[mk] = mv
  36935. }
  36936. }
  36937. }
  36938. if cr != nil {
  36939. cr.sendContainerState(containerMapEnd)
  36940. }
  36941. return v, changed
  36942. }
  36943. func (f *decFnInfo) fastpathDecMapBoolFloat32R(rv reflect.Value) {
  36944. if rv.CanAddr() {
  36945. vp := rv.Addr().Interface().(*map[bool]float32)
  36946. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  36947. if changed {
  36948. *vp = v
  36949. }
  36950. } else {
  36951. v := rv.Interface().(map[bool]float32)
  36952. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, f.d)
  36953. }
  36954. }
  36955. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, checkNil bool, d *Decoder) {
  36956. v, changed := f.DecMapBoolFloat32V(*vp, checkNil, true, d)
  36957. if changed {
  36958. *vp = v
  36959. }
  36960. }
  36961. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, checkNil bool, canChange bool,
  36962. d *Decoder) (_ map[bool]float32, changed bool) {
  36963. dd := d.d
  36964. cr := d.cr
  36965. if checkNil && dd.TryDecodeAsNil() {
  36966. if v != nil {
  36967. changed = true
  36968. }
  36969. return nil, changed
  36970. }
  36971. containerLen := dd.ReadMapStart()
  36972. if canChange && v == nil {
  36973. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  36974. v = make(map[bool]float32, xlen)
  36975. changed = true
  36976. }
  36977. var mk bool
  36978. var mv float32
  36979. if containerLen > 0 {
  36980. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  36994. for j := 0; !dd.CheckBreak(); j++ {
  36995. if cr != nil {
  36996. cr.sendContainerState(containerMapKey)
  36997. }
  36998. mk = dd.DecodeBool()
  36999. if cr != nil {
  37000. cr.sendContainerState(containerMapValue)
  37001. }
  37002. mv = float32(dd.DecodeFloat(true))
  37003. if v != nil {
  37004. v[mk] = mv
  37005. }
  37006. }
  37007. }
  37008. if cr != nil {
  37009. cr.sendContainerState(containerMapEnd)
  37010. }
  37011. return v, changed
  37012. }
  37013. func (f *decFnInfo) fastpathDecMapBoolFloat64R(rv reflect.Value) {
  37014. if rv.CanAddr() {
  37015. vp := rv.Addr().Interface().(*map[bool]float64)
  37016. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  37017. if changed {
  37018. *vp = v
  37019. }
  37020. } else {
  37021. v := rv.Interface().(map[bool]float64)
  37022. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, f.d)
  37023. }
  37024. }
  37025. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, checkNil bool, d *Decoder) {
  37026. v, changed := f.DecMapBoolFloat64V(*vp, checkNil, true, d)
  37027. if changed {
  37028. *vp = v
  37029. }
  37030. }
  37031. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, checkNil bool, canChange bool,
  37032. d *Decoder) (_ map[bool]float64, changed bool) {
  37033. dd := d.d
  37034. cr := d.cr
  37035. if checkNil && dd.TryDecodeAsNil() {
  37036. if v != nil {
  37037. changed = true
  37038. }
  37039. return nil, changed
  37040. }
  37041. containerLen := dd.ReadMapStart()
  37042. if canChange && v == nil {
  37043. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  37044. v = make(map[bool]float64, xlen)
  37045. changed = true
  37046. }
  37047. var mk bool
  37048. var mv float64
  37049. if containerLen > 0 {
  37050. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  37064. for j := 0; !dd.CheckBreak(); j++ {
  37065. if cr != nil {
  37066. cr.sendContainerState(containerMapKey)
  37067. }
  37068. mk = dd.DecodeBool()
  37069. if cr != nil {
  37070. cr.sendContainerState(containerMapValue)
  37071. }
  37072. mv = dd.DecodeFloat(false)
  37073. if v != nil {
  37074. v[mk] = mv
  37075. }
  37076. }
  37077. }
  37078. if cr != nil {
  37079. cr.sendContainerState(containerMapEnd)
  37080. }
  37081. return v, changed
  37082. }
  37083. func (f *decFnInfo) fastpathDecMapBoolBoolR(rv reflect.Value) {
  37084. if rv.CanAddr() {
  37085. vp := rv.Addr().Interface().(*map[bool]bool)
  37086. v, changed := fastpathTV.DecMapBoolBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  37087. if changed {
  37088. *vp = v
  37089. }
  37090. } else {
  37091. v := rv.Interface().(map[bool]bool)
  37092. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, f.d)
  37093. }
  37094. }
  37095. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, checkNil bool, d *Decoder) {
  37096. v, changed := f.DecMapBoolBoolV(*vp, checkNil, true, d)
  37097. if changed {
  37098. *vp = v
  37099. }
  37100. }
  37101. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, checkNil bool, canChange bool,
  37102. d *Decoder) (_ map[bool]bool, changed bool) {
  37103. dd := d.d
  37104. cr := d.cr
  37105. if checkNil && dd.TryDecodeAsNil() {
  37106. if v != nil {
  37107. changed = true
  37108. }
  37109. return nil, changed
  37110. }
  37111. containerLen := dd.ReadMapStart()
  37112. if canChange && v == nil {
  37113. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  37114. v = make(map[bool]bool, xlen)
  37115. changed = true
  37116. }
  37117. var mk bool
  37118. var mv bool
  37119. if containerLen > 0 {
  37120. for j := 0; j < containerLen; 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. } else if containerLen < 0 {
  37134. for j := 0; !dd.CheckBreak(); j++ {
  37135. if cr != nil {
  37136. cr.sendContainerState(containerMapKey)
  37137. }
  37138. mk = dd.DecodeBool()
  37139. if cr != nil {
  37140. cr.sendContainerState(containerMapValue)
  37141. }
  37142. mv = dd.DecodeBool()
  37143. if v != nil {
  37144. v[mk] = mv
  37145. }
  37146. }
  37147. }
  37148. if cr != nil {
  37149. cr.sendContainerState(containerMapEnd)
  37150. }
  37151. return v, changed
  37152. }