fast-path.generated.go 811 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630
  1. // +build !notfastpath
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // ************************************************************
  5. // DO NOT EDIT.
  6. // THIS FILE IS AUTO-GENERATED from fast-path.go.tmpl
  7. // ************************************************************
  8. package codec
  9. // Fast path functions try to create a fast path encode or decode implementation
  10. // for common maps and slices.
  11. //
  12. // We define the functions and register then in this single file
  13. // so as not to pollute the encode.go and decode.go, and create a dependency in there.
  14. // This file can be omitted without causing a build failure.
  15. //
  16. // The advantage of fast paths is:
  17. // - Many calls bypass reflection altogether
  18. //
  19. // Currently support
  20. // - slice of all builtin types,
  21. // - map of all builtin types to string or interface value
  22. // - symmetrical maps of all builtin types (e.g. str-str, uint8-uint8)
  23. // This should provide adequate "typical" implementations.
  24. //
  25. // Note that fast track decode functions must handle values for which an address cannot be obtained.
  26. // For example:
  27. // m2 := map[string]int{}
  28. // p2 := []interface{}{m2}
  29. // // decoding into p2 will bomb if fast track functions do not treat like unaddressable.
  30. //
  31. import (
  32. "reflect"
  33. "sort"
  34. )
  35. const fastpathEnabled = true
  36. type fastpathT struct{}
  37. var fastpathTV fastpathT
  38. type fastpathE struct {
  39. rtid uintptr
  40. rt reflect.Type
  41. encfn func(*Encoder, *codecFnInfo, reflect.Value)
  42. decfn func(*Decoder, *codecFnInfo, reflect.Value)
  43. }
  44. type fastpathA [271]fastpathE
  45. func (x *fastpathA) index(rtid uintptr) int {
  46. // use binary search to grab the index (adapted from sort/search.go)
  47. h, i, j := 0, 0, 271 // len(x)
  48. for i < j {
  49. h = i + (j-i)/2
  50. if x[h].rtid < rtid {
  51. i = h + 1
  52. } else {
  53. j = h
  54. }
  55. }
  56. if i < 271 && x[i].rtid == rtid {
  57. return i
  58. }
  59. return -1
  60. }
  61. type fastpathAslice []fastpathE
  62. func (x fastpathAslice) Len() int { return len(x) }
  63. func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
  64. func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
  65. var fastpathAV fastpathA
  66. // due to possible initialization loop error, make fastpath in an init()
  67. func init() {
  68. i := 0
  69. fn := func(v interface{},
  70. fe func(*Encoder, *codecFnInfo, reflect.Value),
  71. fd func(*Decoder, *codecFnInfo, reflect.Value)) (f fastpathE) {
  72. xrt := reflect.TypeOf(v)
  73. xptr := rt2id(xrt)
  74. if useLookupRecognizedTypes {
  75. recognizedRtids = append(recognizedRtids, xptr)
  76. recognizedRtidPtrs = append(recognizedRtidPtrs, rt2id(reflect.PtrTo(xrt)))
  77. }
  78. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  79. i++
  80. return
  81. }
  82. fn([]interface{}(nil), (*Encoder).fastpathEncSliceIntfR, (*Decoder).fastpathDecSliceIntfR)
  83. fn([]string(nil), (*Encoder).fastpathEncSliceStringR, (*Decoder).fastpathDecSliceStringR)
  84. fn([]float32(nil), (*Encoder).fastpathEncSliceFloat32R, (*Decoder).fastpathDecSliceFloat32R)
  85. fn([]float64(nil), (*Encoder).fastpathEncSliceFloat64R, (*Decoder).fastpathDecSliceFloat64R)
  86. fn([]uint(nil), (*Encoder).fastpathEncSliceUintR, (*Decoder).fastpathDecSliceUintR)
  87. fn([]uint16(nil), (*Encoder).fastpathEncSliceUint16R, (*Decoder).fastpathDecSliceUint16R)
  88. fn([]uint32(nil), (*Encoder).fastpathEncSliceUint32R, (*Decoder).fastpathDecSliceUint32R)
  89. fn([]uint64(nil), (*Encoder).fastpathEncSliceUint64R, (*Decoder).fastpathDecSliceUint64R)
  90. fn([]uintptr(nil), (*Encoder).fastpathEncSliceUintptrR, (*Decoder).fastpathDecSliceUintptrR)
  91. fn([]int(nil), (*Encoder).fastpathEncSliceIntR, (*Decoder).fastpathDecSliceIntR)
  92. fn([]int8(nil), (*Encoder).fastpathEncSliceInt8R, (*Decoder).fastpathDecSliceInt8R)
  93. fn([]int16(nil), (*Encoder).fastpathEncSliceInt16R, (*Decoder).fastpathDecSliceInt16R)
  94. fn([]int32(nil), (*Encoder).fastpathEncSliceInt32R, (*Decoder).fastpathDecSliceInt32R)
  95. fn([]int64(nil), (*Encoder).fastpathEncSliceInt64R, (*Decoder).fastpathDecSliceInt64R)
  96. fn([]bool(nil), (*Encoder).fastpathEncSliceBoolR, (*Decoder).fastpathDecSliceBoolR)
  97. fn(map[interface{}]interface{}(nil), (*Encoder).fastpathEncMapIntfIntfR, (*Decoder).fastpathDecMapIntfIntfR)
  98. fn(map[interface{}]string(nil), (*Encoder).fastpathEncMapIntfStringR, (*Decoder).fastpathDecMapIntfStringR)
  99. fn(map[interface{}]uint(nil), (*Encoder).fastpathEncMapIntfUintR, (*Decoder).fastpathDecMapIntfUintR)
  100. fn(map[interface{}]uint8(nil), (*Encoder).fastpathEncMapIntfUint8R, (*Decoder).fastpathDecMapIntfUint8R)
  101. fn(map[interface{}]uint16(nil), (*Encoder).fastpathEncMapIntfUint16R, (*Decoder).fastpathDecMapIntfUint16R)
  102. fn(map[interface{}]uint32(nil), (*Encoder).fastpathEncMapIntfUint32R, (*Decoder).fastpathDecMapIntfUint32R)
  103. fn(map[interface{}]uint64(nil), (*Encoder).fastpathEncMapIntfUint64R, (*Decoder).fastpathDecMapIntfUint64R)
  104. fn(map[interface{}]uintptr(nil), (*Encoder).fastpathEncMapIntfUintptrR, (*Decoder).fastpathDecMapIntfUintptrR)
  105. fn(map[interface{}]int(nil), (*Encoder).fastpathEncMapIntfIntR, (*Decoder).fastpathDecMapIntfIntR)
  106. fn(map[interface{}]int8(nil), (*Encoder).fastpathEncMapIntfInt8R, (*Decoder).fastpathDecMapIntfInt8R)
  107. fn(map[interface{}]int16(nil), (*Encoder).fastpathEncMapIntfInt16R, (*Decoder).fastpathDecMapIntfInt16R)
  108. fn(map[interface{}]int32(nil), (*Encoder).fastpathEncMapIntfInt32R, (*Decoder).fastpathDecMapIntfInt32R)
  109. fn(map[interface{}]int64(nil), (*Encoder).fastpathEncMapIntfInt64R, (*Decoder).fastpathDecMapIntfInt64R)
  110. fn(map[interface{}]float32(nil), (*Encoder).fastpathEncMapIntfFloat32R, (*Decoder).fastpathDecMapIntfFloat32R)
  111. fn(map[interface{}]float64(nil), (*Encoder).fastpathEncMapIntfFloat64R, (*Decoder).fastpathDecMapIntfFloat64R)
  112. fn(map[interface{}]bool(nil), (*Encoder).fastpathEncMapIntfBoolR, (*Decoder).fastpathDecMapIntfBoolR)
  113. fn(map[string]interface{}(nil), (*Encoder).fastpathEncMapStringIntfR, (*Decoder).fastpathDecMapStringIntfR)
  114. fn(map[string]string(nil), (*Encoder).fastpathEncMapStringStringR, (*Decoder).fastpathDecMapStringStringR)
  115. fn(map[string]uint(nil), (*Encoder).fastpathEncMapStringUintR, (*Decoder).fastpathDecMapStringUintR)
  116. fn(map[string]uint8(nil), (*Encoder).fastpathEncMapStringUint8R, (*Decoder).fastpathDecMapStringUint8R)
  117. fn(map[string]uint16(nil), (*Encoder).fastpathEncMapStringUint16R, (*Decoder).fastpathDecMapStringUint16R)
  118. fn(map[string]uint32(nil), (*Encoder).fastpathEncMapStringUint32R, (*Decoder).fastpathDecMapStringUint32R)
  119. fn(map[string]uint64(nil), (*Encoder).fastpathEncMapStringUint64R, (*Decoder).fastpathDecMapStringUint64R)
  120. fn(map[string]uintptr(nil), (*Encoder).fastpathEncMapStringUintptrR, (*Decoder).fastpathDecMapStringUintptrR)
  121. fn(map[string]int(nil), (*Encoder).fastpathEncMapStringIntR, (*Decoder).fastpathDecMapStringIntR)
  122. fn(map[string]int8(nil), (*Encoder).fastpathEncMapStringInt8R, (*Decoder).fastpathDecMapStringInt8R)
  123. fn(map[string]int16(nil), (*Encoder).fastpathEncMapStringInt16R, (*Decoder).fastpathDecMapStringInt16R)
  124. fn(map[string]int32(nil), (*Encoder).fastpathEncMapStringInt32R, (*Decoder).fastpathDecMapStringInt32R)
  125. fn(map[string]int64(nil), (*Encoder).fastpathEncMapStringInt64R, (*Decoder).fastpathDecMapStringInt64R)
  126. fn(map[string]float32(nil), (*Encoder).fastpathEncMapStringFloat32R, (*Decoder).fastpathDecMapStringFloat32R)
  127. fn(map[string]float64(nil), (*Encoder).fastpathEncMapStringFloat64R, (*Decoder).fastpathDecMapStringFloat64R)
  128. fn(map[string]bool(nil), (*Encoder).fastpathEncMapStringBoolR, (*Decoder).fastpathDecMapStringBoolR)
  129. fn(map[float32]interface{}(nil), (*Encoder).fastpathEncMapFloat32IntfR, (*Decoder).fastpathDecMapFloat32IntfR)
  130. fn(map[float32]string(nil), (*Encoder).fastpathEncMapFloat32StringR, (*Decoder).fastpathDecMapFloat32StringR)
  131. fn(map[float32]uint(nil), (*Encoder).fastpathEncMapFloat32UintR, (*Decoder).fastpathDecMapFloat32UintR)
  132. fn(map[float32]uint8(nil), (*Encoder).fastpathEncMapFloat32Uint8R, (*Decoder).fastpathDecMapFloat32Uint8R)
  133. fn(map[float32]uint16(nil), (*Encoder).fastpathEncMapFloat32Uint16R, (*Decoder).fastpathDecMapFloat32Uint16R)
  134. fn(map[float32]uint32(nil), (*Encoder).fastpathEncMapFloat32Uint32R, (*Decoder).fastpathDecMapFloat32Uint32R)
  135. fn(map[float32]uint64(nil), (*Encoder).fastpathEncMapFloat32Uint64R, (*Decoder).fastpathDecMapFloat32Uint64R)
  136. fn(map[float32]uintptr(nil), (*Encoder).fastpathEncMapFloat32UintptrR, (*Decoder).fastpathDecMapFloat32UintptrR)
  137. fn(map[float32]int(nil), (*Encoder).fastpathEncMapFloat32IntR, (*Decoder).fastpathDecMapFloat32IntR)
  138. fn(map[float32]int8(nil), (*Encoder).fastpathEncMapFloat32Int8R, (*Decoder).fastpathDecMapFloat32Int8R)
  139. fn(map[float32]int16(nil), (*Encoder).fastpathEncMapFloat32Int16R, (*Decoder).fastpathDecMapFloat32Int16R)
  140. fn(map[float32]int32(nil), (*Encoder).fastpathEncMapFloat32Int32R, (*Decoder).fastpathDecMapFloat32Int32R)
  141. fn(map[float32]int64(nil), (*Encoder).fastpathEncMapFloat32Int64R, (*Decoder).fastpathDecMapFloat32Int64R)
  142. fn(map[float32]float32(nil), (*Encoder).fastpathEncMapFloat32Float32R, (*Decoder).fastpathDecMapFloat32Float32R)
  143. fn(map[float32]float64(nil), (*Encoder).fastpathEncMapFloat32Float64R, (*Decoder).fastpathDecMapFloat32Float64R)
  144. fn(map[float32]bool(nil), (*Encoder).fastpathEncMapFloat32BoolR, (*Decoder).fastpathDecMapFloat32BoolR)
  145. fn(map[float64]interface{}(nil), (*Encoder).fastpathEncMapFloat64IntfR, (*Decoder).fastpathDecMapFloat64IntfR)
  146. fn(map[float64]string(nil), (*Encoder).fastpathEncMapFloat64StringR, (*Decoder).fastpathDecMapFloat64StringR)
  147. fn(map[float64]uint(nil), (*Encoder).fastpathEncMapFloat64UintR, (*Decoder).fastpathDecMapFloat64UintR)
  148. fn(map[float64]uint8(nil), (*Encoder).fastpathEncMapFloat64Uint8R, (*Decoder).fastpathDecMapFloat64Uint8R)
  149. fn(map[float64]uint16(nil), (*Encoder).fastpathEncMapFloat64Uint16R, (*Decoder).fastpathDecMapFloat64Uint16R)
  150. fn(map[float64]uint32(nil), (*Encoder).fastpathEncMapFloat64Uint32R, (*Decoder).fastpathDecMapFloat64Uint32R)
  151. fn(map[float64]uint64(nil), (*Encoder).fastpathEncMapFloat64Uint64R, (*Decoder).fastpathDecMapFloat64Uint64R)
  152. fn(map[float64]uintptr(nil), (*Encoder).fastpathEncMapFloat64UintptrR, (*Decoder).fastpathDecMapFloat64UintptrR)
  153. fn(map[float64]int(nil), (*Encoder).fastpathEncMapFloat64IntR, (*Decoder).fastpathDecMapFloat64IntR)
  154. fn(map[float64]int8(nil), (*Encoder).fastpathEncMapFloat64Int8R, (*Decoder).fastpathDecMapFloat64Int8R)
  155. fn(map[float64]int16(nil), (*Encoder).fastpathEncMapFloat64Int16R, (*Decoder).fastpathDecMapFloat64Int16R)
  156. fn(map[float64]int32(nil), (*Encoder).fastpathEncMapFloat64Int32R, (*Decoder).fastpathDecMapFloat64Int32R)
  157. fn(map[float64]int64(nil), (*Encoder).fastpathEncMapFloat64Int64R, (*Decoder).fastpathDecMapFloat64Int64R)
  158. fn(map[float64]float32(nil), (*Encoder).fastpathEncMapFloat64Float32R, (*Decoder).fastpathDecMapFloat64Float32R)
  159. fn(map[float64]float64(nil), (*Encoder).fastpathEncMapFloat64Float64R, (*Decoder).fastpathDecMapFloat64Float64R)
  160. fn(map[float64]bool(nil), (*Encoder).fastpathEncMapFloat64BoolR, (*Decoder).fastpathDecMapFloat64BoolR)
  161. fn(map[uint]interface{}(nil), (*Encoder).fastpathEncMapUintIntfR, (*Decoder).fastpathDecMapUintIntfR)
  162. fn(map[uint]string(nil), (*Encoder).fastpathEncMapUintStringR, (*Decoder).fastpathDecMapUintStringR)
  163. fn(map[uint]uint(nil), (*Encoder).fastpathEncMapUintUintR, (*Decoder).fastpathDecMapUintUintR)
  164. fn(map[uint]uint8(nil), (*Encoder).fastpathEncMapUintUint8R, (*Decoder).fastpathDecMapUintUint8R)
  165. fn(map[uint]uint16(nil), (*Encoder).fastpathEncMapUintUint16R, (*Decoder).fastpathDecMapUintUint16R)
  166. fn(map[uint]uint32(nil), (*Encoder).fastpathEncMapUintUint32R, (*Decoder).fastpathDecMapUintUint32R)
  167. fn(map[uint]uint64(nil), (*Encoder).fastpathEncMapUintUint64R, (*Decoder).fastpathDecMapUintUint64R)
  168. fn(map[uint]uintptr(nil), (*Encoder).fastpathEncMapUintUintptrR, (*Decoder).fastpathDecMapUintUintptrR)
  169. fn(map[uint]int(nil), (*Encoder).fastpathEncMapUintIntR, (*Decoder).fastpathDecMapUintIntR)
  170. fn(map[uint]int8(nil), (*Encoder).fastpathEncMapUintInt8R, (*Decoder).fastpathDecMapUintInt8R)
  171. fn(map[uint]int16(nil), (*Encoder).fastpathEncMapUintInt16R, (*Decoder).fastpathDecMapUintInt16R)
  172. fn(map[uint]int32(nil), (*Encoder).fastpathEncMapUintInt32R, (*Decoder).fastpathDecMapUintInt32R)
  173. fn(map[uint]int64(nil), (*Encoder).fastpathEncMapUintInt64R, (*Decoder).fastpathDecMapUintInt64R)
  174. fn(map[uint]float32(nil), (*Encoder).fastpathEncMapUintFloat32R, (*Decoder).fastpathDecMapUintFloat32R)
  175. fn(map[uint]float64(nil), (*Encoder).fastpathEncMapUintFloat64R, (*Decoder).fastpathDecMapUintFloat64R)
  176. fn(map[uint]bool(nil), (*Encoder).fastpathEncMapUintBoolR, (*Decoder).fastpathDecMapUintBoolR)
  177. fn(map[uint8]interface{}(nil), (*Encoder).fastpathEncMapUint8IntfR, (*Decoder).fastpathDecMapUint8IntfR)
  178. fn(map[uint8]string(nil), (*Encoder).fastpathEncMapUint8StringR, (*Decoder).fastpathDecMapUint8StringR)
  179. fn(map[uint8]uint(nil), (*Encoder).fastpathEncMapUint8UintR, (*Decoder).fastpathDecMapUint8UintR)
  180. fn(map[uint8]uint8(nil), (*Encoder).fastpathEncMapUint8Uint8R, (*Decoder).fastpathDecMapUint8Uint8R)
  181. fn(map[uint8]uint16(nil), (*Encoder).fastpathEncMapUint8Uint16R, (*Decoder).fastpathDecMapUint8Uint16R)
  182. fn(map[uint8]uint32(nil), (*Encoder).fastpathEncMapUint8Uint32R, (*Decoder).fastpathDecMapUint8Uint32R)
  183. fn(map[uint8]uint64(nil), (*Encoder).fastpathEncMapUint8Uint64R, (*Decoder).fastpathDecMapUint8Uint64R)
  184. fn(map[uint8]uintptr(nil), (*Encoder).fastpathEncMapUint8UintptrR, (*Decoder).fastpathDecMapUint8UintptrR)
  185. fn(map[uint8]int(nil), (*Encoder).fastpathEncMapUint8IntR, (*Decoder).fastpathDecMapUint8IntR)
  186. fn(map[uint8]int8(nil), (*Encoder).fastpathEncMapUint8Int8R, (*Decoder).fastpathDecMapUint8Int8R)
  187. fn(map[uint8]int16(nil), (*Encoder).fastpathEncMapUint8Int16R, (*Decoder).fastpathDecMapUint8Int16R)
  188. fn(map[uint8]int32(nil), (*Encoder).fastpathEncMapUint8Int32R, (*Decoder).fastpathDecMapUint8Int32R)
  189. fn(map[uint8]int64(nil), (*Encoder).fastpathEncMapUint8Int64R, (*Decoder).fastpathDecMapUint8Int64R)
  190. fn(map[uint8]float32(nil), (*Encoder).fastpathEncMapUint8Float32R, (*Decoder).fastpathDecMapUint8Float32R)
  191. fn(map[uint8]float64(nil), (*Encoder).fastpathEncMapUint8Float64R, (*Decoder).fastpathDecMapUint8Float64R)
  192. fn(map[uint8]bool(nil), (*Encoder).fastpathEncMapUint8BoolR, (*Decoder).fastpathDecMapUint8BoolR)
  193. fn(map[uint16]interface{}(nil), (*Encoder).fastpathEncMapUint16IntfR, (*Decoder).fastpathDecMapUint16IntfR)
  194. fn(map[uint16]string(nil), (*Encoder).fastpathEncMapUint16StringR, (*Decoder).fastpathDecMapUint16StringR)
  195. fn(map[uint16]uint(nil), (*Encoder).fastpathEncMapUint16UintR, (*Decoder).fastpathDecMapUint16UintR)
  196. fn(map[uint16]uint8(nil), (*Encoder).fastpathEncMapUint16Uint8R, (*Decoder).fastpathDecMapUint16Uint8R)
  197. fn(map[uint16]uint16(nil), (*Encoder).fastpathEncMapUint16Uint16R, (*Decoder).fastpathDecMapUint16Uint16R)
  198. fn(map[uint16]uint32(nil), (*Encoder).fastpathEncMapUint16Uint32R, (*Decoder).fastpathDecMapUint16Uint32R)
  199. fn(map[uint16]uint64(nil), (*Encoder).fastpathEncMapUint16Uint64R, (*Decoder).fastpathDecMapUint16Uint64R)
  200. fn(map[uint16]uintptr(nil), (*Encoder).fastpathEncMapUint16UintptrR, (*Decoder).fastpathDecMapUint16UintptrR)
  201. fn(map[uint16]int(nil), (*Encoder).fastpathEncMapUint16IntR, (*Decoder).fastpathDecMapUint16IntR)
  202. fn(map[uint16]int8(nil), (*Encoder).fastpathEncMapUint16Int8R, (*Decoder).fastpathDecMapUint16Int8R)
  203. fn(map[uint16]int16(nil), (*Encoder).fastpathEncMapUint16Int16R, (*Decoder).fastpathDecMapUint16Int16R)
  204. fn(map[uint16]int32(nil), (*Encoder).fastpathEncMapUint16Int32R, (*Decoder).fastpathDecMapUint16Int32R)
  205. fn(map[uint16]int64(nil), (*Encoder).fastpathEncMapUint16Int64R, (*Decoder).fastpathDecMapUint16Int64R)
  206. fn(map[uint16]float32(nil), (*Encoder).fastpathEncMapUint16Float32R, (*Decoder).fastpathDecMapUint16Float32R)
  207. fn(map[uint16]float64(nil), (*Encoder).fastpathEncMapUint16Float64R, (*Decoder).fastpathDecMapUint16Float64R)
  208. fn(map[uint16]bool(nil), (*Encoder).fastpathEncMapUint16BoolR, (*Decoder).fastpathDecMapUint16BoolR)
  209. fn(map[uint32]interface{}(nil), (*Encoder).fastpathEncMapUint32IntfR, (*Decoder).fastpathDecMapUint32IntfR)
  210. fn(map[uint32]string(nil), (*Encoder).fastpathEncMapUint32StringR, (*Decoder).fastpathDecMapUint32StringR)
  211. fn(map[uint32]uint(nil), (*Encoder).fastpathEncMapUint32UintR, (*Decoder).fastpathDecMapUint32UintR)
  212. fn(map[uint32]uint8(nil), (*Encoder).fastpathEncMapUint32Uint8R, (*Decoder).fastpathDecMapUint32Uint8R)
  213. fn(map[uint32]uint16(nil), (*Encoder).fastpathEncMapUint32Uint16R, (*Decoder).fastpathDecMapUint32Uint16R)
  214. fn(map[uint32]uint32(nil), (*Encoder).fastpathEncMapUint32Uint32R, (*Decoder).fastpathDecMapUint32Uint32R)
  215. fn(map[uint32]uint64(nil), (*Encoder).fastpathEncMapUint32Uint64R, (*Decoder).fastpathDecMapUint32Uint64R)
  216. fn(map[uint32]uintptr(nil), (*Encoder).fastpathEncMapUint32UintptrR, (*Decoder).fastpathDecMapUint32UintptrR)
  217. fn(map[uint32]int(nil), (*Encoder).fastpathEncMapUint32IntR, (*Decoder).fastpathDecMapUint32IntR)
  218. fn(map[uint32]int8(nil), (*Encoder).fastpathEncMapUint32Int8R, (*Decoder).fastpathDecMapUint32Int8R)
  219. fn(map[uint32]int16(nil), (*Encoder).fastpathEncMapUint32Int16R, (*Decoder).fastpathDecMapUint32Int16R)
  220. fn(map[uint32]int32(nil), (*Encoder).fastpathEncMapUint32Int32R, (*Decoder).fastpathDecMapUint32Int32R)
  221. fn(map[uint32]int64(nil), (*Encoder).fastpathEncMapUint32Int64R, (*Decoder).fastpathDecMapUint32Int64R)
  222. fn(map[uint32]float32(nil), (*Encoder).fastpathEncMapUint32Float32R, (*Decoder).fastpathDecMapUint32Float32R)
  223. fn(map[uint32]float64(nil), (*Encoder).fastpathEncMapUint32Float64R, (*Decoder).fastpathDecMapUint32Float64R)
  224. fn(map[uint32]bool(nil), (*Encoder).fastpathEncMapUint32BoolR, (*Decoder).fastpathDecMapUint32BoolR)
  225. fn(map[uint64]interface{}(nil), (*Encoder).fastpathEncMapUint64IntfR, (*Decoder).fastpathDecMapUint64IntfR)
  226. fn(map[uint64]string(nil), (*Encoder).fastpathEncMapUint64StringR, (*Decoder).fastpathDecMapUint64StringR)
  227. fn(map[uint64]uint(nil), (*Encoder).fastpathEncMapUint64UintR, (*Decoder).fastpathDecMapUint64UintR)
  228. fn(map[uint64]uint8(nil), (*Encoder).fastpathEncMapUint64Uint8R, (*Decoder).fastpathDecMapUint64Uint8R)
  229. fn(map[uint64]uint16(nil), (*Encoder).fastpathEncMapUint64Uint16R, (*Decoder).fastpathDecMapUint64Uint16R)
  230. fn(map[uint64]uint32(nil), (*Encoder).fastpathEncMapUint64Uint32R, (*Decoder).fastpathDecMapUint64Uint32R)
  231. fn(map[uint64]uint64(nil), (*Encoder).fastpathEncMapUint64Uint64R, (*Decoder).fastpathDecMapUint64Uint64R)
  232. fn(map[uint64]uintptr(nil), (*Encoder).fastpathEncMapUint64UintptrR, (*Decoder).fastpathDecMapUint64UintptrR)
  233. fn(map[uint64]int(nil), (*Encoder).fastpathEncMapUint64IntR, (*Decoder).fastpathDecMapUint64IntR)
  234. fn(map[uint64]int8(nil), (*Encoder).fastpathEncMapUint64Int8R, (*Decoder).fastpathDecMapUint64Int8R)
  235. fn(map[uint64]int16(nil), (*Encoder).fastpathEncMapUint64Int16R, (*Decoder).fastpathDecMapUint64Int16R)
  236. fn(map[uint64]int32(nil), (*Encoder).fastpathEncMapUint64Int32R, (*Decoder).fastpathDecMapUint64Int32R)
  237. fn(map[uint64]int64(nil), (*Encoder).fastpathEncMapUint64Int64R, (*Decoder).fastpathDecMapUint64Int64R)
  238. fn(map[uint64]float32(nil), (*Encoder).fastpathEncMapUint64Float32R, (*Decoder).fastpathDecMapUint64Float32R)
  239. fn(map[uint64]float64(nil), (*Encoder).fastpathEncMapUint64Float64R, (*Decoder).fastpathDecMapUint64Float64R)
  240. fn(map[uint64]bool(nil), (*Encoder).fastpathEncMapUint64BoolR, (*Decoder).fastpathDecMapUint64BoolR)
  241. fn(map[uintptr]interface{}(nil), (*Encoder).fastpathEncMapUintptrIntfR, (*Decoder).fastpathDecMapUintptrIntfR)
  242. fn(map[uintptr]string(nil), (*Encoder).fastpathEncMapUintptrStringR, (*Decoder).fastpathDecMapUintptrStringR)
  243. fn(map[uintptr]uint(nil), (*Encoder).fastpathEncMapUintptrUintR, (*Decoder).fastpathDecMapUintptrUintR)
  244. fn(map[uintptr]uint8(nil), (*Encoder).fastpathEncMapUintptrUint8R, (*Decoder).fastpathDecMapUintptrUint8R)
  245. fn(map[uintptr]uint16(nil), (*Encoder).fastpathEncMapUintptrUint16R, (*Decoder).fastpathDecMapUintptrUint16R)
  246. fn(map[uintptr]uint32(nil), (*Encoder).fastpathEncMapUintptrUint32R, (*Decoder).fastpathDecMapUintptrUint32R)
  247. fn(map[uintptr]uint64(nil), (*Encoder).fastpathEncMapUintptrUint64R, (*Decoder).fastpathDecMapUintptrUint64R)
  248. fn(map[uintptr]uintptr(nil), (*Encoder).fastpathEncMapUintptrUintptrR, (*Decoder).fastpathDecMapUintptrUintptrR)
  249. fn(map[uintptr]int(nil), (*Encoder).fastpathEncMapUintptrIntR, (*Decoder).fastpathDecMapUintptrIntR)
  250. fn(map[uintptr]int8(nil), (*Encoder).fastpathEncMapUintptrInt8R, (*Decoder).fastpathDecMapUintptrInt8R)
  251. fn(map[uintptr]int16(nil), (*Encoder).fastpathEncMapUintptrInt16R, (*Decoder).fastpathDecMapUintptrInt16R)
  252. fn(map[uintptr]int32(nil), (*Encoder).fastpathEncMapUintptrInt32R, (*Decoder).fastpathDecMapUintptrInt32R)
  253. fn(map[uintptr]int64(nil), (*Encoder).fastpathEncMapUintptrInt64R, (*Decoder).fastpathDecMapUintptrInt64R)
  254. fn(map[uintptr]float32(nil), (*Encoder).fastpathEncMapUintptrFloat32R, (*Decoder).fastpathDecMapUintptrFloat32R)
  255. fn(map[uintptr]float64(nil), (*Encoder).fastpathEncMapUintptrFloat64R, (*Decoder).fastpathDecMapUintptrFloat64R)
  256. fn(map[uintptr]bool(nil), (*Encoder).fastpathEncMapUintptrBoolR, (*Decoder).fastpathDecMapUintptrBoolR)
  257. fn(map[int]interface{}(nil), (*Encoder).fastpathEncMapIntIntfR, (*Decoder).fastpathDecMapIntIntfR)
  258. fn(map[int]string(nil), (*Encoder).fastpathEncMapIntStringR, (*Decoder).fastpathDecMapIntStringR)
  259. fn(map[int]uint(nil), (*Encoder).fastpathEncMapIntUintR, (*Decoder).fastpathDecMapIntUintR)
  260. fn(map[int]uint8(nil), (*Encoder).fastpathEncMapIntUint8R, (*Decoder).fastpathDecMapIntUint8R)
  261. fn(map[int]uint16(nil), (*Encoder).fastpathEncMapIntUint16R, (*Decoder).fastpathDecMapIntUint16R)
  262. fn(map[int]uint32(nil), (*Encoder).fastpathEncMapIntUint32R, (*Decoder).fastpathDecMapIntUint32R)
  263. fn(map[int]uint64(nil), (*Encoder).fastpathEncMapIntUint64R, (*Decoder).fastpathDecMapIntUint64R)
  264. fn(map[int]uintptr(nil), (*Encoder).fastpathEncMapIntUintptrR, (*Decoder).fastpathDecMapIntUintptrR)
  265. fn(map[int]int(nil), (*Encoder).fastpathEncMapIntIntR, (*Decoder).fastpathDecMapIntIntR)
  266. fn(map[int]int8(nil), (*Encoder).fastpathEncMapIntInt8R, (*Decoder).fastpathDecMapIntInt8R)
  267. fn(map[int]int16(nil), (*Encoder).fastpathEncMapIntInt16R, (*Decoder).fastpathDecMapIntInt16R)
  268. fn(map[int]int32(nil), (*Encoder).fastpathEncMapIntInt32R, (*Decoder).fastpathDecMapIntInt32R)
  269. fn(map[int]int64(nil), (*Encoder).fastpathEncMapIntInt64R, (*Decoder).fastpathDecMapIntInt64R)
  270. fn(map[int]float32(nil), (*Encoder).fastpathEncMapIntFloat32R, (*Decoder).fastpathDecMapIntFloat32R)
  271. fn(map[int]float64(nil), (*Encoder).fastpathEncMapIntFloat64R, (*Decoder).fastpathDecMapIntFloat64R)
  272. fn(map[int]bool(nil), (*Encoder).fastpathEncMapIntBoolR, (*Decoder).fastpathDecMapIntBoolR)
  273. fn(map[int8]interface{}(nil), (*Encoder).fastpathEncMapInt8IntfR, (*Decoder).fastpathDecMapInt8IntfR)
  274. fn(map[int8]string(nil), (*Encoder).fastpathEncMapInt8StringR, (*Decoder).fastpathDecMapInt8StringR)
  275. fn(map[int8]uint(nil), (*Encoder).fastpathEncMapInt8UintR, (*Decoder).fastpathDecMapInt8UintR)
  276. fn(map[int8]uint8(nil), (*Encoder).fastpathEncMapInt8Uint8R, (*Decoder).fastpathDecMapInt8Uint8R)
  277. fn(map[int8]uint16(nil), (*Encoder).fastpathEncMapInt8Uint16R, (*Decoder).fastpathDecMapInt8Uint16R)
  278. fn(map[int8]uint32(nil), (*Encoder).fastpathEncMapInt8Uint32R, (*Decoder).fastpathDecMapInt8Uint32R)
  279. fn(map[int8]uint64(nil), (*Encoder).fastpathEncMapInt8Uint64R, (*Decoder).fastpathDecMapInt8Uint64R)
  280. fn(map[int8]uintptr(nil), (*Encoder).fastpathEncMapInt8UintptrR, (*Decoder).fastpathDecMapInt8UintptrR)
  281. fn(map[int8]int(nil), (*Encoder).fastpathEncMapInt8IntR, (*Decoder).fastpathDecMapInt8IntR)
  282. fn(map[int8]int8(nil), (*Encoder).fastpathEncMapInt8Int8R, (*Decoder).fastpathDecMapInt8Int8R)
  283. fn(map[int8]int16(nil), (*Encoder).fastpathEncMapInt8Int16R, (*Decoder).fastpathDecMapInt8Int16R)
  284. fn(map[int8]int32(nil), (*Encoder).fastpathEncMapInt8Int32R, (*Decoder).fastpathDecMapInt8Int32R)
  285. fn(map[int8]int64(nil), (*Encoder).fastpathEncMapInt8Int64R, (*Decoder).fastpathDecMapInt8Int64R)
  286. fn(map[int8]float32(nil), (*Encoder).fastpathEncMapInt8Float32R, (*Decoder).fastpathDecMapInt8Float32R)
  287. fn(map[int8]float64(nil), (*Encoder).fastpathEncMapInt8Float64R, (*Decoder).fastpathDecMapInt8Float64R)
  288. fn(map[int8]bool(nil), (*Encoder).fastpathEncMapInt8BoolR, (*Decoder).fastpathDecMapInt8BoolR)
  289. fn(map[int16]interface{}(nil), (*Encoder).fastpathEncMapInt16IntfR, (*Decoder).fastpathDecMapInt16IntfR)
  290. fn(map[int16]string(nil), (*Encoder).fastpathEncMapInt16StringR, (*Decoder).fastpathDecMapInt16StringR)
  291. fn(map[int16]uint(nil), (*Encoder).fastpathEncMapInt16UintR, (*Decoder).fastpathDecMapInt16UintR)
  292. fn(map[int16]uint8(nil), (*Encoder).fastpathEncMapInt16Uint8R, (*Decoder).fastpathDecMapInt16Uint8R)
  293. fn(map[int16]uint16(nil), (*Encoder).fastpathEncMapInt16Uint16R, (*Decoder).fastpathDecMapInt16Uint16R)
  294. fn(map[int16]uint32(nil), (*Encoder).fastpathEncMapInt16Uint32R, (*Decoder).fastpathDecMapInt16Uint32R)
  295. fn(map[int16]uint64(nil), (*Encoder).fastpathEncMapInt16Uint64R, (*Decoder).fastpathDecMapInt16Uint64R)
  296. fn(map[int16]uintptr(nil), (*Encoder).fastpathEncMapInt16UintptrR, (*Decoder).fastpathDecMapInt16UintptrR)
  297. fn(map[int16]int(nil), (*Encoder).fastpathEncMapInt16IntR, (*Decoder).fastpathDecMapInt16IntR)
  298. fn(map[int16]int8(nil), (*Encoder).fastpathEncMapInt16Int8R, (*Decoder).fastpathDecMapInt16Int8R)
  299. fn(map[int16]int16(nil), (*Encoder).fastpathEncMapInt16Int16R, (*Decoder).fastpathDecMapInt16Int16R)
  300. fn(map[int16]int32(nil), (*Encoder).fastpathEncMapInt16Int32R, (*Decoder).fastpathDecMapInt16Int32R)
  301. fn(map[int16]int64(nil), (*Encoder).fastpathEncMapInt16Int64R, (*Decoder).fastpathDecMapInt16Int64R)
  302. fn(map[int16]float32(nil), (*Encoder).fastpathEncMapInt16Float32R, (*Decoder).fastpathDecMapInt16Float32R)
  303. fn(map[int16]float64(nil), (*Encoder).fastpathEncMapInt16Float64R, (*Decoder).fastpathDecMapInt16Float64R)
  304. fn(map[int16]bool(nil), (*Encoder).fastpathEncMapInt16BoolR, (*Decoder).fastpathDecMapInt16BoolR)
  305. fn(map[int32]interface{}(nil), (*Encoder).fastpathEncMapInt32IntfR, (*Decoder).fastpathDecMapInt32IntfR)
  306. fn(map[int32]string(nil), (*Encoder).fastpathEncMapInt32StringR, (*Decoder).fastpathDecMapInt32StringR)
  307. fn(map[int32]uint(nil), (*Encoder).fastpathEncMapInt32UintR, (*Decoder).fastpathDecMapInt32UintR)
  308. fn(map[int32]uint8(nil), (*Encoder).fastpathEncMapInt32Uint8R, (*Decoder).fastpathDecMapInt32Uint8R)
  309. fn(map[int32]uint16(nil), (*Encoder).fastpathEncMapInt32Uint16R, (*Decoder).fastpathDecMapInt32Uint16R)
  310. fn(map[int32]uint32(nil), (*Encoder).fastpathEncMapInt32Uint32R, (*Decoder).fastpathDecMapInt32Uint32R)
  311. fn(map[int32]uint64(nil), (*Encoder).fastpathEncMapInt32Uint64R, (*Decoder).fastpathDecMapInt32Uint64R)
  312. fn(map[int32]uintptr(nil), (*Encoder).fastpathEncMapInt32UintptrR, (*Decoder).fastpathDecMapInt32UintptrR)
  313. fn(map[int32]int(nil), (*Encoder).fastpathEncMapInt32IntR, (*Decoder).fastpathDecMapInt32IntR)
  314. fn(map[int32]int8(nil), (*Encoder).fastpathEncMapInt32Int8R, (*Decoder).fastpathDecMapInt32Int8R)
  315. fn(map[int32]int16(nil), (*Encoder).fastpathEncMapInt32Int16R, (*Decoder).fastpathDecMapInt32Int16R)
  316. fn(map[int32]int32(nil), (*Encoder).fastpathEncMapInt32Int32R, (*Decoder).fastpathDecMapInt32Int32R)
  317. fn(map[int32]int64(nil), (*Encoder).fastpathEncMapInt32Int64R, (*Decoder).fastpathDecMapInt32Int64R)
  318. fn(map[int32]float32(nil), (*Encoder).fastpathEncMapInt32Float32R, (*Decoder).fastpathDecMapInt32Float32R)
  319. fn(map[int32]float64(nil), (*Encoder).fastpathEncMapInt32Float64R, (*Decoder).fastpathDecMapInt32Float64R)
  320. fn(map[int32]bool(nil), (*Encoder).fastpathEncMapInt32BoolR, (*Decoder).fastpathDecMapInt32BoolR)
  321. fn(map[int64]interface{}(nil), (*Encoder).fastpathEncMapInt64IntfR, (*Decoder).fastpathDecMapInt64IntfR)
  322. fn(map[int64]string(nil), (*Encoder).fastpathEncMapInt64StringR, (*Decoder).fastpathDecMapInt64StringR)
  323. fn(map[int64]uint(nil), (*Encoder).fastpathEncMapInt64UintR, (*Decoder).fastpathDecMapInt64UintR)
  324. fn(map[int64]uint8(nil), (*Encoder).fastpathEncMapInt64Uint8R, (*Decoder).fastpathDecMapInt64Uint8R)
  325. fn(map[int64]uint16(nil), (*Encoder).fastpathEncMapInt64Uint16R, (*Decoder).fastpathDecMapInt64Uint16R)
  326. fn(map[int64]uint32(nil), (*Encoder).fastpathEncMapInt64Uint32R, (*Decoder).fastpathDecMapInt64Uint32R)
  327. fn(map[int64]uint64(nil), (*Encoder).fastpathEncMapInt64Uint64R, (*Decoder).fastpathDecMapInt64Uint64R)
  328. fn(map[int64]uintptr(nil), (*Encoder).fastpathEncMapInt64UintptrR, (*Decoder).fastpathDecMapInt64UintptrR)
  329. fn(map[int64]int(nil), (*Encoder).fastpathEncMapInt64IntR, (*Decoder).fastpathDecMapInt64IntR)
  330. fn(map[int64]int8(nil), (*Encoder).fastpathEncMapInt64Int8R, (*Decoder).fastpathDecMapInt64Int8R)
  331. fn(map[int64]int16(nil), (*Encoder).fastpathEncMapInt64Int16R, (*Decoder).fastpathDecMapInt64Int16R)
  332. fn(map[int64]int32(nil), (*Encoder).fastpathEncMapInt64Int32R, (*Decoder).fastpathDecMapInt64Int32R)
  333. fn(map[int64]int64(nil), (*Encoder).fastpathEncMapInt64Int64R, (*Decoder).fastpathDecMapInt64Int64R)
  334. fn(map[int64]float32(nil), (*Encoder).fastpathEncMapInt64Float32R, (*Decoder).fastpathDecMapInt64Float32R)
  335. fn(map[int64]float64(nil), (*Encoder).fastpathEncMapInt64Float64R, (*Decoder).fastpathDecMapInt64Float64R)
  336. fn(map[int64]bool(nil), (*Encoder).fastpathEncMapInt64BoolR, (*Decoder).fastpathDecMapInt64BoolR)
  337. fn(map[bool]interface{}(nil), (*Encoder).fastpathEncMapBoolIntfR, (*Decoder).fastpathDecMapBoolIntfR)
  338. fn(map[bool]string(nil), (*Encoder).fastpathEncMapBoolStringR, (*Decoder).fastpathDecMapBoolStringR)
  339. fn(map[bool]uint(nil), (*Encoder).fastpathEncMapBoolUintR, (*Decoder).fastpathDecMapBoolUintR)
  340. fn(map[bool]uint8(nil), (*Encoder).fastpathEncMapBoolUint8R, (*Decoder).fastpathDecMapBoolUint8R)
  341. fn(map[bool]uint16(nil), (*Encoder).fastpathEncMapBoolUint16R, (*Decoder).fastpathDecMapBoolUint16R)
  342. fn(map[bool]uint32(nil), (*Encoder).fastpathEncMapBoolUint32R, (*Decoder).fastpathDecMapBoolUint32R)
  343. fn(map[bool]uint64(nil), (*Encoder).fastpathEncMapBoolUint64R, (*Decoder).fastpathDecMapBoolUint64R)
  344. fn(map[bool]uintptr(nil), (*Encoder).fastpathEncMapBoolUintptrR, (*Decoder).fastpathDecMapBoolUintptrR)
  345. fn(map[bool]int(nil), (*Encoder).fastpathEncMapBoolIntR, (*Decoder).fastpathDecMapBoolIntR)
  346. fn(map[bool]int8(nil), (*Encoder).fastpathEncMapBoolInt8R, (*Decoder).fastpathDecMapBoolInt8R)
  347. fn(map[bool]int16(nil), (*Encoder).fastpathEncMapBoolInt16R, (*Decoder).fastpathDecMapBoolInt16R)
  348. fn(map[bool]int32(nil), (*Encoder).fastpathEncMapBoolInt32R, (*Decoder).fastpathDecMapBoolInt32R)
  349. fn(map[bool]int64(nil), (*Encoder).fastpathEncMapBoolInt64R, (*Decoder).fastpathDecMapBoolInt64R)
  350. fn(map[bool]float32(nil), (*Encoder).fastpathEncMapBoolFloat32R, (*Decoder).fastpathDecMapBoolFloat32R)
  351. fn(map[bool]float64(nil), (*Encoder).fastpathEncMapBoolFloat64R, (*Decoder).fastpathDecMapBoolFloat64R)
  352. fn(map[bool]bool(nil), (*Encoder).fastpathEncMapBoolBoolR, (*Decoder).fastpathDecMapBoolBoolR)
  353. sort.Sort(fastpathAslice(fastpathAV[:]))
  354. }
  355. // -- encode
  356. // -- -- fast path type switch
  357. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  358. switch v := iv.(type) {
  359. case []interface{}:
  360. fastpathTV.EncSliceIntfV(v, e)
  361. case *[]interface{}:
  362. fastpathTV.EncSliceIntfV(*v, e)
  363. case map[interface{}]interface{}:
  364. fastpathTV.EncMapIntfIntfV(v, e)
  365. case *map[interface{}]interface{}:
  366. fastpathTV.EncMapIntfIntfV(*v, e)
  367. case map[interface{}]string:
  368. fastpathTV.EncMapIntfStringV(v, e)
  369. case *map[interface{}]string:
  370. fastpathTV.EncMapIntfStringV(*v, e)
  371. case map[interface{}]uint:
  372. fastpathTV.EncMapIntfUintV(v, e)
  373. case *map[interface{}]uint:
  374. fastpathTV.EncMapIntfUintV(*v, e)
  375. case map[interface{}]uint8:
  376. fastpathTV.EncMapIntfUint8V(v, e)
  377. case *map[interface{}]uint8:
  378. fastpathTV.EncMapIntfUint8V(*v, e)
  379. case map[interface{}]uint16:
  380. fastpathTV.EncMapIntfUint16V(v, e)
  381. case *map[interface{}]uint16:
  382. fastpathTV.EncMapIntfUint16V(*v, e)
  383. case map[interface{}]uint32:
  384. fastpathTV.EncMapIntfUint32V(v, e)
  385. case *map[interface{}]uint32:
  386. fastpathTV.EncMapIntfUint32V(*v, e)
  387. case map[interface{}]uint64:
  388. fastpathTV.EncMapIntfUint64V(v, e)
  389. case *map[interface{}]uint64:
  390. fastpathTV.EncMapIntfUint64V(*v, e)
  391. case map[interface{}]uintptr:
  392. fastpathTV.EncMapIntfUintptrV(v, e)
  393. case *map[interface{}]uintptr:
  394. fastpathTV.EncMapIntfUintptrV(*v, e)
  395. case map[interface{}]int:
  396. fastpathTV.EncMapIntfIntV(v, e)
  397. case *map[interface{}]int:
  398. fastpathTV.EncMapIntfIntV(*v, e)
  399. case map[interface{}]int8:
  400. fastpathTV.EncMapIntfInt8V(v, e)
  401. case *map[interface{}]int8:
  402. fastpathTV.EncMapIntfInt8V(*v, e)
  403. case map[interface{}]int16:
  404. fastpathTV.EncMapIntfInt16V(v, e)
  405. case *map[interface{}]int16:
  406. fastpathTV.EncMapIntfInt16V(*v, e)
  407. case map[interface{}]int32:
  408. fastpathTV.EncMapIntfInt32V(v, e)
  409. case *map[interface{}]int32:
  410. fastpathTV.EncMapIntfInt32V(*v, e)
  411. case map[interface{}]int64:
  412. fastpathTV.EncMapIntfInt64V(v, e)
  413. case *map[interface{}]int64:
  414. fastpathTV.EncMapIntfInt64V(*v, e)
  415. case map[interface{}]float32:
  416. fastpathTV.EncMapIntfFloat32V(v, e)
  417. case *map[interface{}]float32:
  418. fastpathTV.EncMapIntfFloat32V(*v, e)
  419. case map[interface{}]float64:
  420. fastpathTV.EncMapIntfFloat64V(v, e)
  421. case *map[interface{}]float64:
  422. fastpathTV.EncMapIntfFloat64V(*v, e)
  423. case map[interface{}]bool:
  424. fastpathTV.EncMapIntfBoolV(v, e)
  425. case *map[interface{}]bool:
  426. fastpathTV.EncMapIntfBoolV(*v, e)
  427. case []string:
  428. fastpathTV.EncSliceStringV(v, e)
  429. case *[]string:
  430. fastpathTV.EncSliceStringV(*v, e)
  431. case map[string]interface{}:
  432. fastpathTV.EncMapStringIntfV(v, e)
  433. case *map[string]interface{}:
  434. fastpathTV.EncMapStringIntfV(*v, e)
  435. case map[string]string:
  436. fastpathTV.EncMapStringStringV(v, e)
  437. case *map[string]string:
  438. fastpathTV.EncMapStringStringV(*v, e)
  439. case map[string]uint:
  440. fastpathTV.EncMapStringUintV(v, e)
  441. case *map[string]uint:
  442. fastpathTV.EncMapStringUintV(*v, e)
  443. case map[string]uint8:
  444. fastpathTV.EncMapStringUint8V(v, e)
  445. case *map[string]uint8:
  446. fastpathTV.EncMapStringUint8V(*v, e)
  447. case map[string]uint16:
  448. fastpathTV.EncMapStringUint16V(v, e)
  449. case *map[string]uint16:
  450. fastpathTV.EncMapStringUint16V(*v, e)
  451. case map[string]uint32:
  452. fastpathTV.EncMapStringUint32V(v, e)
  453. case *map[string]uint32:
  454. fastpathTV.EncMapStringUint32V(*v, e)
  455. case map[string]uint64:
  456. fastpathTV.EncMapStringUint64V(v, e)
  457. case *map[string]uint64:
  458. fastpathTV.EncMapStringUint64V(*v, e)
  459. case map[string]uintptr:
  460. fastpathTV.EncMapStringUintptrV(v, e)
  461. case *map[string]uintptr:
  462. fastpathTV.EncMapStringUintptrV(*v, e)
  463. case map[string]int:
  464. fastpathTV.EncMapStringIntV(v, e)
  465. case *map[string]int:
  466. fastpathTV.EncMapStringIntV(*v, e)
  467. case map[string]int8:
  468. fastpathTV.EncMapStringInt8V(v, e)
  469. case *map[string]int8:
  470. fastpathTV.EncMapStringInt8V(*v, e)
  471. case map[string]int16:
  472. fastpathTV.EncMapStringInt16V(v, e)
  473. case *map[string]int16:
  474. fastpathTV.EncMapStringInt16V(*v, e)
  475. case map[string]int32:
  476. fastpathTV.EncMapStringInt32V(v, e)
  477. case *map[string]int32:
  478. fastpathTV.EncMapStringInt32V(*v, e)
  479. case map[string]int64:
  480. fastpathTV.EncMapStringInt64V(v, e)
  481. case *map[string]int64:
  482. fastpathTV.EncMapStringInt64V(*v, e)
  483. case map[string]float32:
  484. fastpathTV.EncMapStringFloat32V(v, e)
  485. case *map[string]float32:
  486. fastpathTV.EncMapStringFloat32V(*v, e)
  487. case map[string]float64:
  488. fastpathTV.EncMapStringFloat64V(v, e)
  489. case *map[string]float64:
  490. fastpathTV.EncMapStringFloat64V(*v, e)
  491. case map[string]bool:
  492. fastpathTV.EncMapStringBoolV(v, e)
  493. case *map[string]bool:
  494. fastpathTV.EncMapStringBoolV(*v, e)
  495. case []float32:
  496. fastpathTV.EncSliceFloat32V(v, e)
  497. case *[]float32:
  498. fastpathTV.EncSliceFloat32V(*v, e)
  499. case map[float32]interface{}:
  500. fastpathTV.EncMapFloat32IntfV(v, e)
  501. case *map[float32]interface{}:
  502. fastpathTV.EncMapFloat32IntfV(*v, e)
  503. case map[float32]string:
  504. fastpathTV.EncMapFloat32StringV(v, e)
  505. case *map[float32]string:
  506. fastpathTV.EncMapFloat32StringV(*v, e)
  507. case map[float32]uint:
  508. fastpathTV.EncMapFloat32UintV(v, e)
  509. case *map[float32]uint:
  510. fastpathTV.EncMapFloat32UintV(*v, e)
  511. case map[float32]uint8:
  512. fastpathTV.EncMapFloat32Uint8V(v, e)
  513. case *map[float32]uint8:
  514. fastpathTV.EncMapFloat32Uint8V(*v, e)
  515. case map[float32]uint16:
  516. fastpathTV.EncMapFloat32Uint16V(v, e)
  517. case *map[float32]uint16:
  518. fastpathTV.EncMapFloat32Uint16V(*v, e)
  519. case map[float32]uint32:
  520. fastpathTV.EncMapFloat32Uint32V(v, e)
  521. case *map[float32]uint32:
  522. fastpathTV.EncMapFloat32Uint32V(*v, e)
  523. case map[float32]uint64:
  524. fastpathTV.EncMapFloat32Uint64V(v, e)
  525. case *map[float32]uint64:
  526. fastpathTV.EncMapFloat32Uint64V(*v, e)
  527. case map[float32]uintptr:
  528. fastpathTV.EncMapFloat32UintptrV(v, e)
  529. case *map[float32]uintptr:
  530. fastpathTV.EncMapFloat32UintptrV(*v, e)
  531. case map[float32]int:
  532. fastpathTV.EncMapFloat32IntV(v, e)
  533. case *map[float32]int:
  534. fastpathTV.EncMapFloat32IntV(*v, e)
  535. case map[float32]int8:
  536. fastpathTV.EncMapFloat32Int8V(v, e)
  537. case *map[float32]int8:
  538. fastpathTV.EncMapFloat32Int8V(*v, e)
  539. case map[float32]int16:
  540. fastpathTV.EncMapFloat32Int16V(v, e)
  541. case *map[float32]int16:
  542. fastpathTV.EncMapFloat32Int16V(*v, e)
  543. case map[float32]int32:
  544. fastpathTV.EncMapFloat32Int32V(v, e)
  545. case *map[float32]int32:
  546. fastpathTV.EncMapFloat32Int32V(*v, e)
  547. case map[float32]int64:
  548. fastpathTV.EncMapFloat32Int64V(v, e)
  549. case *map[float32]int64:
  550. fastpathTV.EncMapFloat32Int64V(*v, e)
  551. case map[float32]float32:
  552. fastpathTV.EncMapFloat32Float32V(v, e)
  553. case *map[float32]float32:
  554. fastpathTV.EncMapFloat32Float32V(*v, e)
  555. case map[float32]float64:
  556. fastpathTV.EncMapFloat32Float64V(v, e)
  557. case *map[float32]float64:
  558. fastpathTV.EncMapFloat32Float64V(*v, e)
  559. case map[float32]bool:
  560. fastpathTV.EncMapFloat32BoolV(v, e)
  561. case *map[float32]bool:
  562. fastpathTV.EncMapFloat32BoolV(*v, e)
  563. case []float64:
  564. fastpathTV.EncSliceFloat64V(v, e)
  565. case *[]float64:
  566. fastpathTV.EncSliceFloat64V(*v, e)
  567. case map[float64]interface{}:
  568. fastpathTV.EncMapFloat64IntfV(v, e)
  569. case *map[float64]interface{}:
  570. fastpathTV.EncMapFloat64IntfV(*v, e)
  571. case map[float64]string:
  572. fastpathTV.EncMapFloat64StringV(v, e)
  573. case *map[float64]string:
  574. fastpathTV.EncMapFloat64StringV(*v, e)
  575. case map[float64]uint:
  576. fastpathTV.EncMapFloat64UintV(v, e)
  577. case *map[float64]uint:
  578. fastpathTV.EncMapFloat64UintV(*v, e)
  579. case map[float64]uint8:
  580. fastpathTV.EncMapFloat64Uint8V(v, e)
  581. case *map[float64]uint8:
  582. fastpathTV.EncMapFloat64Uint8V(*v, e)
  583. case map[float64]uint16:
  584. fastpathTV.EncMapFloat64Uint16V(v, e)
  585. case *map[float64]uint16:
  586. fastpathTV.EncMapFloat64Uint16V(*v, e)
  587. case map[float64]uint32:
  588. fastpathTV.EncMapFloat64Uint32V(v, e)
  589. case *map[float64]uint32:
  590. fastpathTV.EncMapFloat64Uint32V(*v, e)
  591. case map[float64]uint64:
  592. fastpathTV.EncMapFloat64Uint64V(v, e)
  593. case *map[float64]uint64:
  594. fastpathTV.EncMapFloat64Uint64V(*v, e)
  595. case map[float64]uintptr:
  596. fastpathTV.EncMapFloat64UintptrV(v, e)
  597. case *map[float64]uintptr:
  598. fastpathTV.EncMapFloat64UintptrV(*v, e)
  599. case map[float64]int:
  600. fastpathTV.EncMapFloat64IntV(v, e)
  601. case *map[float64]int:
  602. fastpathTV.EncMapFloat64IntV(*v, e)
  603. case map[float64]int8:
  604. fastpathTV.EncMapFloat64Int8V(v, e)
  605. case *map[float64]int8:
  606. fastpathTV.EncMapFloat64Int8V(*v, e)
  607. case map[float64]int16:
  608. fastpathTV.EncMapFloat64Int16V(v, e)
  609. case *map[float64]int16:
  610. fastpathTV.EncMapFloat64Int16V(*v, e)
  611. case map[float64]int32:
  612. fastpathTV.EncMapFloat64Int32V(v, e)
  613. case *map[float64]int32:
  614. fastpathTV.EncMapFloat64Int32V(*v, e)
  615. case map[float64]int64:
  616. fastpathTV.EncMapFloat64Int64V(v, e)
  617. case *map[float64]int64:
  618. fastpathTV.EncMapFloat64Int64V(*v, e)
  619. case map[float64]float32:
  620. fastpathTV.EncMapFloat64Float32V(v, e)
  621. case *map[float64]float32:
  622. fastpathTV.EncMapFloat64Float32V(*v, e)
  623. case map[float64]float64:
  624. fastpathTV.EncMapFloat64Float64V(v, e)
  625. case *map[float64]float64:
  626. fastpathTV.EncMapFloat64Float64V(*v, e)
  627. case map[float64]bool:
  628. fastpathTV.EncMapFloat64BoolV(v, e)
  629. case *map[float64]bool:
  630. fastpathTV.EncMapFloat64BoolV(*v, e)
  631. case []uint:
  632. fastpathTV.EncSliceUintV(v, e)
  633. case *[]uint:
  634. fastpathTV.EncSliceUintV(*v, e)
  635. case map[uint]interface{}:
  636. fastpathTV.EncMapUintIntfV(v, e)
  637. case *map[uint]interface{}:
  638. fastpathTV.EncMapUintIntfV(*v, e)
  639. case map[uint]string:
  640. fastpathTV.EncMapUintStringV(v, e)
  641. case *map[uint]string:
  642. fastpathTV.EncMapUintStringV(*v, e)
  643. case map[uint]uint:
  644. fastpathTV.EncMapUintUintV(v, e)
  645. case *map[uint]uint:
  646. fastpathTV.EncMapUintUintV(*v, e)
  647. case map[uint]uint8:
  648. fastpathTV.EncMapUintUint8V(v, e)
  649. case *map[uint]uint8:
  650. fastpathTV.EncMapUintUint8V(*v, e)
  651. case map[uint]uint16:
  652. fastpathTV.EncMapUintUint16V(v, e)
  653. case *map[uint]uint16:
  654. fastpathTV.EncMapUintUint16V(*v, e)
  655. case map[uint]uint32:
  656. fastpathTV.EncMapUintUint32V(v, e)
  657. case *map[uint]uint32:
  658. fastpathTV.EncMapUintUint32V(*v, e)
  659. case map[uint]uint64:
  660. fastpathTV.EncMapUintUint64V(v, e)
  661. case *map[uint]uint64:
  662. fastpathTV.EncMapUintUint64V(*v, e)
  663. case map[uint]uintptr:
  664. fastpathTV.EncMapUintUintptrV(v, e)
  665. case *map[uint]uintptr:
  666. fastpathTV.EncMapUintUintptrV(*v, e)
  667. case map[uint]int:
  668. fastpathTV.EncMapUintIntV(v, e)
  669. case *map[uint]int:
  670. fastpathTV.EncMapUintIntV(*v, e)
  671. case map[uint]int8:
  672. fastpathTV.EncMapUintInt8V(v, e)
  673. case *map[uint]int8:
  674. fastpathTV.EncMapUintInt8V(*v, e)
  675. case map[uint]int16:
  676. fastpathTV.EncMapUintInt16V(v, e)
  677. case *map[uint]int16:
  678. fastpathTV.EncMapUintInt16V(*v, e)
  679. case map[uint]int32:
  680. fastpathTV.EncMapUintInt32V(v, e)
  681. case *map[uint]int32:
  682. fastpathTV.EncMapUintInt32V(*v, e)
  683. case map[uint]int64:
  684. fastpathTV.EncMapUintInt64V(v, e)
  685. case *map[uint]int64:
  686. fastpathTV.EncMapUintInt64V(*v, e)
  687. case map[uint]float32:
  688. fastpathTV.EncMapUintFloat32V(v, e)
  689. case *map[uint]float32:
  690. fastpathTV.EncMapUintFloat32V(*v, e)
  691. case map[uint]float64:
  692. fastpathTV.EncMapUintFloat64V(v, e)
  693. case *map[uint]float64:
  694. fastpathTV.EncMapUintFloat64V(*v, e)
  695. case map[uint]bool:
  696. fastpathTV.EncMapUintBoolV(v, e)
  697. case *map[uint]bool:
  698. fastpathTV.EncMapUintBoolV(*v, e)
  699. case map[uint8]interface{}:
  700. fastpathTV.EncMapUint8IntfV(v, e)
  701. case *map[uint8]interface{}:
  702. fastpathTV.EncMapUint8IntfV(*v, e)
  703. case map[uint8]string:
  704. fastpathTV.EncMapUint8StringV(v, e)
  705. case *map[uint8]string:
  706. fastpathTV.EncMapUint8StringV(*v, e)
  707. case map[uint8]uint:
  708. fastpathTV.EncMapUint8UintV(v, e)
  709. case *map[uint8]uint:
  710. fastpathTV.EncMapUint8UintV(*v, e)
  711. case map[uint8]uint8:
  712. fastpathTV.EncMapUint8Uint8V(v, e)
  713. case *map[uint8]uint8:
  714. fastpathTV.EncMapUint8Uint8V(*v, e)
  715. case map[uint8]uint16:
  716. fastpathTV.EncMapUint8Uint16V(v, e)
  717. case *map[uint8]uint16:
  718. fastpathTV.EncMapUint8Uint16V(*v, e)
  719. case map[uint8]uint32:
  720. fastpathTV.EncMapUint8Uint32V(v, e)
  721. case *map[uint8]uint32:
  722. fastpathTV.EncMapUint8Uint32V(*v, e)
  723. case map[uint8]uint64:
  724. fastpathTV.EncMapUint8Uint64V(v, e)
  725. case *map[uint8]uint64:
  726. fastpathTV.EncMapUint8Uint64V(*v, e)
  727. case map[uint8]uintptr:
  728. fastpathTV.EncMapUint8UintptrV(v, e)
  729. case *map[uint8]uintptr:
  730. fastpathTV.EncMapUint8UintptrV(*v, e)
  731. case map[uint8]int:
  732. fastpathTV.EncMapUint8IntV(v, e)
  733. case *map[uint8]int:
  734. fastpathTV.EncMapUint8IntV(*v, e)
  735. case map[uint8]int8:
  736. fastpathTV.EncMapUint8Int8V(v, e)
  737. case *map[uint8]int8:
  738. fastpathTV.EncMapUint8Int8V(*v, e)
  739. case map[uint8]int16:
  740. fastpathTV.EncMapUint8Int16V(v, e)
  741. case *map[uint8]int16:
  742. fastpathTV.EncMapUint8Int16V(*v, e)
  743. case map[uint8]int32:
  744. fastpathTV.EncMapUint8Int32V(v, e)
  745. case *map[uint8]int32:
  746. fastpathTV.EncMapUint8Int32V(*v, e)
  747. case map[uint8]int64:
  748. fastpathTV.EncMapUint8Int64V(v, e)
  749. case *map[uint8]int64:
  750. fastpathTV.EncMapUint8Int64V(*v, e)
  751. case map[uint8]float32:
  752. fastpathTV.EncMapUint8Float32V(v, e)
  753. case *map[uint8]float32:
  754. fastpathTV.EncMapUint8Float32V(*v, e)
  755. case map[uint8]float64:
  756. fastpathTV.EncMapUint8Float64V(v, e)
  757. case *map[uint8]float64:
  758. fastpathTV.EncMapUint8Float64V(*v, e)
  759. case map[uint8]bool:
  760. fastpathTV.EncMapUint8BoolV(v, e)
  761. case *map[uint8]bool:
  762. fastpathTV.EncMapUint8BoolV(*v, e)
  763. case []uint16:
  764. fastpathTV.EncSliceUint16V(v, e)
  765. case *[]uint16:
  766. fastpathTV.EncSliceUint16V(*v, e)
  767. case map[uint16]interface{}:
  768. fastpathTV.EncMapUint16IntfV(v, e)
  769. case *map[uint16]interface{}:
  770. fastpathTV.EncMapUint16IntfV(*v, e)
  771. case map[uint16]string:
  772. fastpathTV.EncMapUint16StringV(v, e)
  773. case *map[uint16]string:
  774. fastpathTV.EncMapUint16StringV(*v, e)
  775. case map[uint16]uint:
  776. fastpathTV.EncMapUint16UintV(v, e)
  777. case *map[uint16]uint:
  778. fastpathTV.EncMapUint16UintV(*v, e)
  779. case map[uint16]uint8:
  780. fastpathTV.EncMapUint16Uint8V(v, e)
  781. case *map[uint16]uint8:
  782. fastpathTV.EncMapUint16Uint8V(*v, e)
  783. case map[uint16]uint16:
  784. fastpathTV.EncMapUint16Uint16V(v, e)
  785. case *map[uint16]uint16:
  786. fastpathTV.EncMapUint16Uint16V(*v, e)
  787. case map[uint16]uint32:
  788. fastpathTV.EncMapUint16Uint32V(v, e)
  789. case *map[uint16]uint32:
  790. fastpathTV.EncMapUint16Uint32V(*v, e)
  791. case map[uint16]uint64:
  792. fastpathTV.EncMapUint16Uint64V(v, e)
  793. case *map[uint16]uint64:
  794. fastpathTV.EncMapUint16Uint64V(*v, e)
  795. case map[uint16]uintptr:
  796. fastpathTV.EncMapUint16UintptrV(v, e)
  797. case *map[uint16]uintptr:
  798. fastpathTV.EncMapUint16UintptrV(*v, e)
  799. case map[uint16]int:
  800. fastpathTV.EncMapUint16IntV(v, e)
  801. case *map[uint16]int:
  802. fastpathTV.EncMapUint16IntV(*v, e)
  803. case map[uint16]int8:
  804. fastpathTV.EncMapUint16Int8V(v, e)
  805. case *map[uint16]int8:
  806. fastpathTV.EncMapUint16Int8V(*v, e)
  807. case map[uint16]int16:
  808. fastpathTV.EncMapUint16Int16V(v, e)
  809. case *map[uint16]int16:
  810. fastpathTV.EncMapUint16Int16V(*v, e)
  811. case map[uint16]int32:
  812. fastpathTV.EncMapUint16Int32V(v, e)
  813. case *map[uint16]int32:
  814. fastpathTV.EncMapUint16Int32V(*v, e)
  815. case map[uint16]int64:
  816. fastpathTV.EncMapUint16Int64V(v, e)
  817. case *map[uint16]int64:
  818. fastpathTV.EncMapUint16Int64V(*v, e)
  819. case map[uint16]float32:
  820. fastpathTV.EncMapUint16Float32V(v, e)
  821. case *map[uint16]float32:
  822. fastpathTV.EncMapUint16Float32V(*v, e)
  823. case map[uint16]float64:
  824. fastpathTV.EncMapUint16Float64V(v, e)
  825. case *map[uint16]float64:
  826. fastpathTV.EncMapUint16Float64V(*v, e)
  827. case map[uint16]bool:
  828. fastpathTV.EncMapUint16BoolV(v, e)
  829. case *map[uint16]bool:
  830. fastpathTV.EncMapUint16BoolV(*v, e)
  831. case []uint32:
  832. fastpathTV.EncSliceUint32V(v, e)
  833. case *[]uint32:
  834. fastpathTV.EncSliceUint32V(*v, e)
  835. case map[uint32]interface{}:
  836. fastpathTV.EncMapUint32IntfV(v, e)
  837. case *map[uint32]interface{}:
  838. fastpathTV.EncMapUint32IntfV(*v, e)
  839. case map[uint32]string:
  840. fastpathTV.EncMapUint32StringV(v, e)
  841. case *map[uint32]string:
  842. fastpathTV.EncMapUint32StringV(*v, e)
  843. case map[uint32]uint:
  844. fastpathTV.EncMapUint32UintV(v, e)
  845. case *map[uint32]uint:
  846. fastpathTV.EncMapUint32UintV(*v, e)
  847. case map[uint32]uint8:
  848. fastpathTV.EncMapUint32Uint8V(v, e)
  849. case *map[uint32]uint8:
  850. fastpathTV.EncMapUint32Uint8V(*v, e)
  851. case map[uint32]uint16:
  852. fastpathTV.EncMapUint32Uint16V(v, e)
  853. case *map[uint32]uint16:
  854. fastpathTV.EncMapUint32Uint16V(*v, e)
  855. case map[uint32]uint32:
  856. fastpathTV.EncMapUint32Uint32V(v, e)
  857. case *map[uint32]uint32:
  858. fastpathTV.EncMapUint32Uint32V(*v, e)
  859. case map[uint32]uint64:
  860. fastpathTV.EncMapUint32Uint64V(v, e)
  861. case *map[uint32]uint64:
  862. fastpathTV.EncMapUint32Uint64V(*v, e)
  863. case map[uint32]uintptr:
  864. fastpathTV.EncMapUint32UintptrV(v, e)
  865. case *map[uint32]uintptr:
  866. fastpathTV.EncMapUint32UintptrV(*v, e)
  867. case map[uint32]int:
  868. fastpathTV.EncMapUint32IntV(v, e)
  869. case *map[uint32]int:
  870. fastpathTV.EncMapUint32IntV(*v, e)
  871. case map[uint32]int8:
  872. fastpathTV.EncMapUint32Int8V(v, e)
  873. case *map[uint32]int8:
  874. fastpathTV.EncMapUint32Int8V(*v, e)
  875. case map[uint32]int16:
  876. fastpathTV.EncMapUint32Int16V(v, e)
  877. case *map[uint32]int16:
  878. fastpathTV.EncMapUint32Int16V(*v, e)
  879. case map[uint32]int32:
  880. fastpathTV.EncMapUint32Int32V(v, e)
  881. case *map[uint32]int32:
  882. fastpathTV.EncMapUint32Int32V(*v, e)
  883. case map[uint32]int64:
  884. fastpathTV.EncMapUint32Int64V(v, e)
  885. case *map[uint32]int64:
  886. fastpathTV.EncMapUint32Int64V(*v, e)
  887. case map[uint32]float32:
  888. fastpathTV.EncMapUint32Float32V(v, e)
  889. case *map[uint32]float32:
  890. fastpathTV.EncMapUint32Float32V(*v, e)
  891. case map[uint32]float64:
  892. fastpathTV.EncMapUint32Float64V(v, e)
  893. case *map[uint32]float64:
  894. fastpathTV.EncMapUint32Float64V(*v, e)
  895. case map[uint32]bool:
  896. fastpathTV.EncMapUint32BoolV(v, e)
  897. case *map[uint32]bool:
  898. fastpathTV.EncMapUint32BoolV(*v, e)
  899. case []uint64:
  900. fastpathTV.EncSliceUint64V(v, e)
  901. case *[]uint64:
  902. fastpathTV.EncSliceUint64V(*v, e)
  903. case map[uint64]interface{}:
  904. fastpathTV.EncMapUint64IntfV(v, e)
  905. case *map[uint64]interface{}:
  906. fastpathTV.EncMapUint64IntfV(*v, e)
  907. case map[uint64]string:
  908. fastpathTV.EncMapUint64StringV(v, e)
  909. case *map[uint64]string:
  910. fastpathTV.EncMapUint64StringV(*v, e)
  911. case map[uint64]uint:
  912. fastpathTV.EncMapUint64UintV(v, e)
  913. case *map[uint64]uint:
  914. fastpathTV.EncMapUint64UintV(*v, e)
  915. case map[uint64]uint8:
  916. fastpathTV.EncMapUint64Uint8V(v, e)
  917. case *map[uint64]uint8:
  918. fastpathTV.EncMapUint64Uint8V(*v, e)
  919. case map[uint64]uint16:
  920. fastpathTV.EncMapUint64Uint16V(v, e)
  921. case *map[uint64]uint16:
  922. fastpathTV.EncMapUint64Uint16V(*v, e)
  923. case map[uint64]uint32:
  924. fastpathTV.EncMapUint64Uint32V(v, e)
  925. case *map[uint64]uint32:
  926. fastpathTV.EncMapUint64Uint32V(*v, e)
  927. case map[uint64]uint64:
  928. fastpathTV.EncMapUint64Uint64V(v, e)
  929. case *map[uint64]uint64:
  930. fastpathTV.EncMapUint64Uint64V(*v, e)
  931. case map[uint64]uintptr:
  932. fastpathTV.EncMapUint64UintptrV(v, e)
  933. case *map[uint64]uintptr:
  934. fastpathTV.EncMapUint64UintptrV(*v, e)
  935. case map[uint64]int:
  936. fastpathTV.EncMapUint64IntV(v, e)
  937. case *map[uint64]int:
  938. fastpathTV.EncMapUint64IntV(*v, e)
  939. case map[uint64]int8:
  940. fastpathTV.EncMapUint64Int8V(v, e)
  941. case *map[uint64]int8:
  942. fastpathTV.EncMapUint64Int8V(*v, e)
  943. case map[uint64]int16:
  944. fastpathTV.EncMapUint64Int16V(v, e)
  945. case *map[uint64]int16:
  946. fastpathTV.EncMapUint64Int16V(*v, e)
  947. case map[uint64]int32:
  948. fastpathTV.EncMapUint64Int32V(v, e)
  949. case *map[uint64]int32:
  950. fastpathTV.EncMapUint64Int32V(*v, e)
  951. case map[uint64]int64:
  952. fastpathTV.EncMapUint64Int64V(v, e)
  953. case *map[uint64]int64:
  954. fastpathTV.EncMapUint64Int64V(*v, e)
  955. case map[uint64]float32:
  956. fastpathTV.EncMapUint64Float32V(v, e)
  957. case *map[uint64]float32:
  958. fastpathTV.EncMapUint64Float32V(*v, e)
  959. case map[uint64]float64:
  960. fastpathTV.EncMapUint64Float64V(v, e)
  961. case *map[uint64]float64:
  962. fastpathTV.EncMapUint64Float64V(*v, e)
  963. case map[uint64]bool:
  964. fastpathTV.EncMapUint64BoolV(v, e)
  965. case *map[uint64]bool:
  966. fastpathTV.EncMapUint64BoolV(*v, e)
  967. case []uintptr:
  968. fastpathTV.EncSliceUintptrV(v, e)
  969. case *[]uintptr:
  970. fastpathTV.EncSliceUintptrV(*v, e)
  971. case map[uintptr]interface{}:
  972. fastpathTV.EncMapUintptrIntfV(v, e)
  973. case *map[uintptr]interface{}:
  974. fastpathTV.EncMapUintptrIntfV(*v, e)
  975. case map[uintptr]string:
  976. fastpathTV.EncMapUintptrStringV(v, e)
  977. case *map[uintptr]string:
  978. fastpathTV.EncMapUintptrStringV(*v, e)
  979. case map[uintptr]uint:
  980. fastpathTV.EncMapUintptrUintV(v, e)
  981. case *map[uintptr]uint:
  982. fastpathTV.EncMapUintptrUintV(*v, e)
  983. case map[uintptr]uint8:
  984. fastpathTV.EncMapUintptrUint8V(v, e)
  985. case *map[uintptr]uint8:
  986. fastpathTV.EncMapUintptrUint8V(*v, e)
  987. case map[uintptr]uint16:
  988. fastpathTV.EncMapUintptrUint16V(v, e)
  989. case *map[uintptr]uint16:
  990. fastpathTV.EncMapUintptrUint16V(*v, e)
  991. case map[uintptr]uint32:
  992. fastpathTV.EncMapUintptrUint32V(v, e)
  993. case *map[uintptr]uint32:
  994. fastpathTV.EncMapUintptrUint32V(*v, e)
  995. case map[uintptr]uint64:
  996. fastpathTV.EncMapUintptrUint64V(v, e)
  997. case *map[uintptr]uint64:
  998. fastpathTV.EncMapUintptrUint64V(*v, e)
  999. case map[uintptr]uintptr:
  1000. fastpathTV.EncMapUintptrUintptrV(v, e)
  1001. case *map[uintptr]uintptr:
  1002. fastpathTV.EncMapUintptrUintptrV(*v, e)
  1003. case map[uintptr]int:
  1004. fastpathTV.EncMapUintptrIntV(v, e)
  1005. case *map[uintptr]int:
  1006. fastpathTV.EncMapUintptrIntV(*v, e)
  1007. case map[uintptr]int8:
  1008. fastpathTV.EncMapUintptrInt8V(v, e)
  1009. case *map[uintptr]int8:
  1010. fastpathTV.EncMapUintptrInt8V(*v, e)
  1011. case map[uintptr]int16:
  1012. fastpathTV.EncMapUintptrInt16V(v, e)
  1013. case *map[uintptr]int16:
  1014. fastpathTV.EncMapUintptrInt16V(*v, e)
  1015. case map[uintptr]int32:
  1016. fastpathTV.EncMapUintptrInt32V(v, e)
  1017. case *map[uintptr]int32:
  1018. fastpathTV.EncMapUintptrInt32V(*v, e)
  1019. case map[uintptr]int64:
  1020. fastpathTV.EncMapUintptrInt64V(v, e)
  1021. case *map[uintptr]int64:
  1022. fastpathTV.EncMapUintptrInt64V(*v, e)
  1023. case map[uintptr]float32:
  1024. fastpathTV.EncMapUintptrFloat32V(v, e)
  1025. case *map[uintptr]float32:
  1026. fastpathTV.EncMapUintptrFloat32V(*v, e)
  1027. case map[uintptr]float64:
  1028. fastpathTV.EncMapUintptrFloat64V(v, e)
  1029. case *map[uintptr]float64:
  1030. fastpathTV.EncMapUintptrFloat64V(*v, e)
  1031. case map[uintptr]bool:
  1032. fastpathTV.EncMapUintptrBoolV(v, e)
  1033. case *map[uintptr]bool:
  1034. fastpathTV.EncMapUintptrBoolV(*v, e)
  1035. case []int:
  1036. fastpathTV.EncSliceIntV(v, e)
  1037. case *[]int:
  1038. fastpathTV.EncSliceIntV(*v, e)
  1039. case map[int]interface{}:
  1040. fastpathTV.EncMapIntIntfV(v, e)
  1041. case *map[int]interface{}:
  1042. fastpathTV.EncMapIntIntfV(*v, e)
  1043. case map[int]string:
  1044. fastpathTV.EncMapIntStringV(v, e)
  1045. case *map[int]string:
  1046. fastpathTV.EncMapIntStringV(*v, e)
  1047. case map[int]uint:
  1048. fastpathTV.EncMapIntUintV(v, e)
  1049. case *map[int]uint:
  1050. fastpathTV.EncMapIntUintV(*v, e)
  1051. case map[int]uint8:
  1052. fastpathTV.EncMapIntUint8V(v, e)
  1053. case *map[int]uint8:
  1054. fastpathTV.EncMapIntUint8V(*v, e)
  1055. case map[int]uint16:
  1056. fastpathTV.EncMapIntUint16V(v, e)
  1057. case *map[int]uint16:
  1058. fastpathTV.EncMapIntUint16V(*v, e)
  1059. case map[int]uint32:
  1060. fastpathTV.EncMapIntUint32V(v, e)
  1061. case *map[int]uint32:
  1062. fastpathTV.EncMapIntUint32V(*v, e)
  1063. case map[int]uint64:
  1064. fastpathTV.EncMapIntUint64V(v, e)
  1065. case *map[int]uint64:
  1066. fastpathTV.EncMapIntUint64V(*v, e)
  1067. case map[int]uintptr:
  1068. fastpathTV.EncMapIntUintptrV(v, e)
  1069. case *map[int]uintptr:
  1070. fastpathTV.EncMapIntUintptrV(*v, e)
  1071. case map[int]int:
  1072. fastpathTV.EncMapIntIntV(v, e)
  1073. case *map[int]int:
  1074. fastpathTV.EncMapIntIntV(*v, e)
  1075. case map[int]int8:
  1076. fastpathTV.EncMapIntInt8V(v, e)
  1077. case *map[int]int8:
  1078. fastpathTV.EncMapIntInt8V(*v, e)
  1079. case map[int]int16:
  1080. fastpathTV.EncMapIntInt16V(v, e)
  1081. case *map[int]int16:
  1082. fastpathTV.EncMapIntInt16V(*v, e)
  1083. case map[int]int32:
  1084. fastpathTV.EncMapIntInt32V(v, e)
  1085. case *map[int]int32:
  1086. fastpathTV.EncMapIntInt32V(*v, e)
  1087. case map[int]int64:
  1088. fastpathTV.EncMapIntInt64V(v, e)
  1089. case *map[int]int64:
  1090. fastpathTV.EncMapIntInt64V(*v, e)
  1091. case map[int]float32:
  1092. fastpathTV.EncMapIntFloat32V(v, e)
  1093. case *map[int]float32:
  1094. fastpathTV.EncMapIntFloat32V(*v, e)
  1095. case map[int]float64:
  1096. fastpathTV.EncMapIntFloat64V(v, e)
  1097. case *map[int]float64:
  1098. fastpathTV.EncMapIntFloat64V(*v, e)
  1099. case map[int]bool:
  1100. fastpathTV.EncMapIntBoolV(v, e)
  1101. case *map[int]bool:
  1102. fastpathTV.EncMapIntBoolV(*v, e)
  1103. case []int8:
  1104. fastpathTV.EncSliceInt8V(v, e)
  1105. case *[]int8:
  1106. fastpathTV.EncSliceInt8V(*v, e)
  1107. case map[int8]interface{}:
  1108. fastpathTV.EncMapInt8IntfV(v, e)
  1109. case *map[int8]interface{}:
  1110. fastpathTV.EncMapInt8IntfV(*v, e)
  1111. case map[int8]string:
  1112. fastpathTV.EncMapInt8StringV(v, e)
  1113. case *map[int8]string:
  1114. fastpathTV.EncMapInt8StringV(*v, e)
  1115. case map[int8]uint:
  1116. fastpathTV.EncMapInt8UintV(v, e)
  1117. case *map[int8]uint:
  1118. fastpathTV.EncMapInt8UintV(*v, e)
  1119. case map[int8]uint8:
  1120. fastpathTV.EncMapInt8Uint8V(v, e)
  1121. case *map[int8]uint8:
  1122. fastpathTV.EncMapInt8Uint8V(*v, e)
  1123. case map[int8]uint16:
  1124. fastpathTV.EncMapInt8Uint16V(v, e)
  1125. case *map[int8]uint16:
  1126. fastpathTV.EncMapInt8Uint16V(*v, e)
  1127. case map[int8]uint32:
  1128. fastpathTV.EncMapInt8Uint32V(v, e)
  1129. case *map[int8]uint32:
  1130. fastpathTV.EncMapInt8Uint32V(*v, e)
  1131. case map[int8]uint64:
  1132. fastpathTV.EncMapInt8Uint64V(v, e)
  1133. case *map[int8]uint64:
  1134. fastpathTV.EncMapInt8Uint64V(*v, e)
  1135. case map[int8]uintptr:
  1136. fastpathTV.EncMapInt8UintptrV(v, e)
  1137. case *map[int8]uintptr:
  1138. fastpathTV.EncMapInt8UintptrV(*v, e)
  1139. case map[int8]int:
  1140. fastpathTV.EncMapInt8IntV(v, e)
  1141. case *map[int8]int:
  1142. fastpathTV.EncMapInt8IntV(*v, e)
  1143. case map[int8]int8:
  1144. fastpathTV.EncMapInt8Int8V(v, e)
  1145. case *map[int8]int8:
  1146. fastpathTV.EncMapInt8Int8V(*v, e)
  1147. case map[int8]int16:
  1148. fastpathTV.EncMapInt8Int16V(v, e)
  1149. case *map[int8]int16:
  1150. fastpathTV.EncMapInt8Int16V(*v, e)
  1151. case map[int8]int32:
  1152. fastpathTV.EncMapInt8Int32V(v, e)
  1153. case *map[int8]int32:
  1154. fastpathTV.EncMapInt8Int32V(*v, e)
  1155. case map[int8]int64:
  1156. fastpathTV.EncMapInt8Int64V(v, e)
  1157. case *map[int8]int64:
  1158. fastpathTV.EncMapInt8Int64V(*v, e)
  1159. case map[int8]float32:
  1160. fastpathTV.EncMapInt8Float32V(v, e)
  1161. case *map[int8]float32:
  1162. fastpathTV.EncMapInt8Float32V(*v, e)
  1163. case map[int8]float64:
  1164. fastpathTV.EncMapInt8Float64V(v, e)
  1165. case *map[int8]float64:
  1166. fastpathTV.EncMapInt8Float64V(*v, e)
  1167. case map[int8]bool:
  1168. fastpathTV.EncMapInt8BoolV(v, e)
  1169. case *map[int8]bool:
  1170. fastpathTV.EncMapInt8BoolV(*v, e)
  1171. case []int16:
  1172. fastpathTV.EncSliceInt16V(v, e)
  1173. case *[]int16:
  1174. fastpathTV.EncSliceInt16V(*v, e)
  1175. case map[int16]interface{}:
  1176. fastpathTV.EncMapInt16IntfV(v, e)
  1177. case *map[int16]interface{}:
  1178. fastpathTV.EncMapInt16IntfV(*v, e)
  1179. case map[int16]string:
  1180. fastpathTV.EncMapInt16StringV(v, e)
  1181. case *map[int16]string:
  1182. fastpathTV.EncMapInt16StringV(*v, e)
  1183. case map[int16]uint:
  1184. fastpathTV.EncMapInt16UintV(v, e)
  1185. case *map[int16]uint:
  1186. fastpathTV.EncMapInt16UintV(*v, e)
  1187. case map[int16]uint8:
  1188. fastpathTV.EncMapInt16Uint8V(v, e)
  1189. case *map[int16]uint8:
  1190. fastpathTV.EncMapInt16Uint8V(*v, e)
  1191. case map[int16]uint16:
  1192. fastpathTV.EncMapInt16Uint16V(v, e)
  1193. case *map[int16]uint16:
  1194. fastpathTV.EncMapInt16Uint16V(*v, e)
  1195. case map[int16]uint32:
  1196. fastpathTV.EncMapInt16Uint32V(v, e)
  1197. case *map[int16]uint32:
  1198. fastpathTV.EncMapInt16Uint32V(*v, e)
  1199. case map[int16]uint64:
  1200. fastpathTV.EncMapInt16Uint64V(v, e)
  1201. case *map[int16]uint64:
  1202. fastpathTV.EncMapInt16Uint64V(*v, e)
  1203. case map[int16]uintptr:
  1204. fastpathTV.EncMapInt16UintptrV(v, e)
  1205. case *map[int16]uintptr:
  1206. fastpathTV.EncMapInt16UintptrV(*v, e)
  1207. case map[int16]int:
  1208. fastpathTV.EncMapInt16IntV(v, e)
  1209. case *map[int16]int:
  1210. fastpathTV.EncMapInt16IntV(*v, e)
  1211. case map[int16]int8:
  1212. fastpathTV.EncMapInt16Int8V(v, e)
  1213. case *map[int16]int8:
  1214. fastpathTV.EncMapInt16Int8V(*v, e)
  1215. case map[int16]int16:
  1216. fastpathTV.EncMapInt16Int16V(v, e)
  1217. case *map[int16]int16:
  1218. fastpathTV.EncMapInt16Int16V(*v, e)
  1219. case map[int16]int32:
  1220. fastpathTV.EncMapInt16Int32V(v, e)
  1221. case *map[int16]int32:
  1222. fastpathTV.EncMapInt16Int32V(*v, e)
  1223. case map[int16]int64:
  1224. fastpathTV.EncMapInt16Int64V(v, e)
  1225. case *map[int16]int64:
  1226. fastpathTV.EncMapInt16Int64V(*v, e)
  1227. case map[int16]float32:
  1228. fastpathTV.EncMapInt16Float32V(v, e)
  1229. case *map[int16]float32:
  1230. fastpathTV.EncMapInt16Float32V(*v, e)
  1231. case map[int16]float64:
  1232. fastpathTV.EncMapInt16Float64V(v, e)
  1233. case *map[int16]float64:
  1234. fastpathTV.EncMapInt16Float64V(*v, e)
  1235. case map[int16]bool:
  1236. fastpathTV.EncMapInt16BoolV(v, e)
  1237. case *map[int16]bool:
  1238. fastpathTV.EncMapInt16BoolV(*v, e)
  1239. case []int32:
  1240. fastpathTV.EncSliceInt32V(v, e)
  1241. case *[]int32:
  1242. fastpathTV.EncSliceInt32V(*v, e)
  1243. case map[int32]interface{}:
  1244. fastpathTV.EncMapInt32IntfV(v, e)
  1245. case *map[int32]interface{}:
  1246. fastpathTV.EncMapInt32IntfV(*v, e)
  1247. case map[int32]string:
  1248. fastpathTV.EncMapInt32StringV(v, e)
  1249. case *map[int32]string:
  1250. fastpathTV.EncMapInt32StringV(*v, e)
  1251. case map[int32]uint:
  1252. fastpathTV.EncMapInt32UintV(v, e)
  1253. case *map[int32]uint:
  1254. fastpathTV.EncMapInt32UintV(*v, e)
  1255. case map[int32]uint8:
  1256. fastpathTV.EncMapInt32Uint8V(v, e)
  1257. case *map[int32]uint8:
  1258. fastpathTV.EncMapInt32Uint8V(*v, e)
  1259. case map[int32]uint16:
  1260. fastpathTV.EncMapInt32Uint16V(v, e)
  1261. case *map[int32]uint16:
  1262. fastpathTV.EncMapInt32Uint16V(*v, e)
  1263. case map[int32]uint32:
  1264. fastpathTV.EncMapInt32Uint32V(v, e)
  1265. case *map[int32]uint32:
  1266. fastpathTV.EncMapInt32Uint32V(*v, e)
  1267. case map[int32]uint64:
  1268. fastpathTV.EncMapInt32Uint64V(v, e)
  1269. case *map[int32]uint64:
  1270. fastpathTV.EncMapInt32Uint64V(*v, e)
  1271. case map[int32]uintptr:
  1272. fastpathTV.EncMapInt32UintptrV(v, e)
  1273. case *map[int32]uintptr:
  1274. fastpathTV.EncMapInt32UintptrV(*v, e)
  1275. case map[int32]int:
  1276. fastpathTV.EncMapInt32IntV(v, e)
  1277. case *map[int32]int:
  1278. fastpathTV.EncMapInt32IntV(*v, e)
  1279. case map[int32]int8:
  1280. fastpathTV.EncMapInt32Int8V(v, e)
  1281. case *map[int32]int8:
  1282. fastpathTV.EncMapInt32Int8V(*v, e)
  1283. case map[int32]int16:
  1284. fastpathTV.EncMapInt32Int16V(v, e)
  1285. case *map[int32]int16:
  1286. fastpathTV.EncMapInt32Int16V(*v, e)
  1287. case map[int32]int32:
  1288. fastpathTV.EncMapInt32Int32V(v, e)
  1289. case *map[int32]int32:
  1290. fastpathTV.EncMapInt32Int32V(*v, e)
  1291. case map[int32]int64:
  1292. fastpathTV.EncMapInt32Int64V(v, e)
  1293. case *map[int32]int64:
  1294. fastpathTV.EncMapInt32Int64V(*v, e)
  1295. case map[int32]float32:
  1296. fastpathTV.EncMapInt32Float32V(v, e)
  1297. case *map[int32]float32:
  1298. fastpathTV.EncMapInt32Float32V(*v, e)
  1299. case map[int32]float64:
  1300. fastpathTV.EncMapInt32Float64V(v, e)
  1301. case *map[int32]float64:
  1302. fastpathTV.EncMapInt32Float64V(*v, e)
  1303. case map[int32]bool:
  1304. fastpathTV.EncMapInt32BoolV(v, e)
  1305. case *map[int32]bool:
  1306. fastpathTV.EncMapInt32BoolV(*v, e)
  1307. case []int64:
  1308. fastpathTV.EncSliceInt64V(v, e)
  1309. case *[]int64:
  1310. fastpathTV.EncSliceInt64V(*v, e)
  1311. case map[int64]interface{}:
  1312. fastpathTV.EncMapInt64IntfV(v, e)
  1313. case *map[int64]interface{}:
  1314. fastpathTV.EncMapInt64IntfV(*v, e)
  1315. case map[int64]string:
  1316. fastpathTV.EncMapInt64StringV(v, e)
  1317. case *map[int64]string:
  1318. fastpathTV.EncMapInt64StringV(*v, e)
  1319. case map[int64]uint:
  1320. fastpathTV.EncMapInt64UintV(v, e)
  1321. case *map[int64]uint:
  1322. fastpathTV.EncMapInt64UintV(*v, e)
  1323. case map[int64]uint8:
  1324. fastpathTV.EncMapInt64Uint8V(v, e)
  1325. case *map[int64]uint8:
  1326. fastpathTV.EncMapInt64Uint8V(*v, e)
  1327. case map[int64]uint16:
  1328. fastpathTV.EncMapInt64Uint16V(v, e)
  1329. case *map[int64]uint16:
  1330. fastpathTV.EncMapInt64Uint16V(*v, e)
  1331. case map[int64]uint32:
  1332. fastpathTV.EncMapInt64Uint32V(v, e)
  1333. case *map[int64]uint32:
  1334. fastpathTV.EncMapInt64Uint32V(*v, e)
  1335. case map[int64]uint64:
  1336. fastpathTV.EncMapInt64Uint64V(v, e)
  1337. case *map[int64]uint64:
  1338. fastpathTV.EncMapInt64Uint64V(*v, e)
  1339. case map[int64]uintptr:
  1340. fastpathTV.EncMapInt64UintptrV(v, e)
  1341. case *map[int64]uintptr:
  1342. fastpathTV.EncMapInt64UintptrV(*v, e)
  1343. case map[int64]int:
  1344. fastpathTV.EncMapInt64IntV(v, e)
  1345. case *map[int64]int:
  1346. fastpathTV.EncMapInt64IntV(*v, e)
  1347. case map[int64]int8:
  1348. fastpathTV.EncMapInt64Int8V(v, e)
  1349. case *map[int64]int8:
  1350. fastpathTV.EncMapInt64Int8V(*v, e)
  1351. case map[int64]int16:
  1352. fastpathTV.EncMapInt64Int16V(v, e)
  1353. case *map[int64]int16:
  1354. fastpathTV.EncMapInt64Int16V(*v, e)
  1355. case map[int64]int32:
  1356. fastpathTV.EncMapInt64Int32V(v, e)
  1357. case *map[int64]int32:
  1358. fastpathTV.EncMapInt64Int32V(*v, e)
  1359. case map[int64]int64:
  1360. fastpathTV.EncMapInt64Int64V(v, e)
  1361. case *map[int64]int64:
  1362. fastpathTV.EncMapInt64Int64V(*v, e)
  1363. case map[int64]float32:
  1364. fastpathTV.EncMapInt64Float32V(v, e)
  1365. case *map[int64]float32:
  1366. fastpathTV.EncMapInt64Float32V(*v, e)
  1367. case map[int64]float64:
  1368. fastpathTV.EncMapInt64Float64V(v, e)
  1369. case *map[int64]float64:
  1370. fastpathTV.EncMapInt64Float64V(*v, e)
  1371. case map[int64]bool:
  1372. fastpathTV.EncMapInt64BoolV(v, e)
  1373. case *map[int64]bool:
  1374. fastpathTV.EncMapInt64BoolV(*v, e)
  1375. case []bool:
  1376. fastpathTV.EncSliceBoolV(v, e)
  1377. case *[]bool:
  1378. fastpathTV.EncSliceBoolV(*v, e)
  1379. case map[bool]interface{}:
  1380. fastpathTV.EncMapBoolIntfV(v, e)
  1381. case *map[bool]interface{}:
  1382. fastpathTV.EncMapBoolIntfV(*v, e)
  1383. case map[bool]string:
  1384. fastpathTV.EncMapBoolStringV(v, e)
  1385. case *map[bool]string:
  1386. fastpathTV.EncMapBoolStringV(*v, e)
  1387. case map[bool]uint:
  1388. fastpathTV.EncMapBoolUintV(v, e)
  1389. case *map[bool]uint:
  1390. fastpathTV.EncMapBoolUintV(*v, e)
  1391. case map[bool]uint8:
  1392. fastpathTV.EncMapBoolUint8V(v, e)
  1393. case *map[bool]uint8:
  1394. fastpathTV.EncMapBoolUint8V(*v, e)
  1395. case map[bool]uint16:
  1396. fastpathTV.EncMapBoolUint16V(v, e)
  1397. case *map[bool]uint16:
  1398. fastpathTV.EncMapBoolUint16V(*v, e)
  1399. case map[bool]uint32:
  1400. fastpathTV.EncMapBoolUint32V(v, e)
  1401. case *map[bool]uint32:
  1402. fastpathTV.EncMapBoolUint32V(*v, e)
  1403. case map[bool]uint64:
  1404. fastpathTV.EncMapBoolUint64V(v, e)
  1405. case *map[bool]uint64:
  1406. fastpathTV.EncMapBoolUint64V(*v, e)
  1407. case map[bool]uintptr:
  1408. fastpathTV.EncMapBoolUintptrV(v, e)
  1409. case *map[bool]uintptr:
  1410. fastpathTV.EncMapBoolUintptrV(*v, e)
  1411. case map[bool]int:
  1412. fastpathTV.EncMapBoolIntV(v, e)
  1413. case *map[bool]int:
  1414. fastpathTV.EncMapBoolIntV(*v, e)
  1415. case map[bool]int8:
  1416. fastpathTV.EncMapBoolInt8V(v, e)
  1417. case *map[bool]int8:
  1418. fastpathTV.EncMapBoolInt8V(*v, e)
  1419. case map[bool]int16:
  1420. fastpathTV.EncMapBoolInt16V(v, e)
  1421. case *map[bool]int16:
  1422. fastpathTV.EncMapBoolInt16V(*v, e)
  1423. case map[bool]int32:
  1424. fastpathTV.EncMapBoolInt32V(v, e)
  1425. case *map[bool]int32:
  1426. fastpathTV.EncMapBoolInt32V(*v, e)
  1427. case map[bool]int64:
  1428. fastpathTV.EncMapBoolInt64V(v, e)
  1429. case *map[bool]int64:
  1430. fastpathTV.EncMapBoolInt64V(*v, e)
  1431. case map[bool]float32:
  1432. fastpathTV.EncMapBoolFloat32V(v, e)
  1433. case *map[bool]float32:
  1434. fastpathTV.EncMapBoolFloat32V(*v, e)
  1435. case map[bool]float64:
  1436. fastpathTV.EncMapBoolFloat64V(v, e)
  1437. case *map[bool]float64:
  1438. fastpathTV.EncMapBoolFloat64V(*v, e)
  1439. case map[bool]bool:
  1440. fastpathTV.EncMapBoolBoolV(v, e)
  1441. case *map[bool]bool:
  1442. fastpathTV.EncMapBoolBoolV(*v, e)
  1443. default:
  1444. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1445. return false
  1446. }
  1447. return true
  1448. }
  1449. func fastpathEncodeTypeSwitchSlice(iv interface{}, e *Encoder) bool {
  1450. switch v := iv.(type) {
  1451. case []interface{}:
  1452. fastpathTV.EncSliceIntfV(v, e)
  1453. case *[]interface{}:
  1454. fastpathTV.EncSliceIntfV(*v, e)
  1455. case []string:
  1456. fastpathTV.EncSliceStringV(v, e)
  1457. case *[]string:
  1458. fastpathTV.EncSliceStringV(*v, e)
  1459. case []float32:
  1460. fastpathTV.EncSliceFloat32V(v, e)
  1461. case *[]float32:
  1462. fastpathTV.EncSliceFloat32V(*v, e)
  1463. case []float64:
  1464. fastpathTV.EncSliceFloat64V(v, e)
  1465. case *[]float64:
  1466. fastpathTV.EncSliceFloat64V(*v, e)
  1467. case []uint:
  1468. fastpathTV.EncSliceUintV(v, e)
  1469. case *[]uint:
  1470. fastpathTV.EncSliceUintV(*v, e)
  1471. case []uint16:
  1472. fastpathTV.EncSliceUint16V(v, e)
  1473. case *[]uint16:
  1474. fastpathTV.EncSliceUint16V(*v, e)
  1475. case []uint32:
  1476. fastpathTV.EncSliceUint32V(v, e)
  1477. case *[]uint32:
  1478. fastpathTV.EncSliceUint32V(*v, e)
  1479. case []uint64:
  1480. fastpathTV.EncSliceUint64V(v, e)
  1481. case *[]uint64:
  1482. fastpathTV.EncSliceUint64V(*v, e)
  1483. case []uintptr:
  1484. fastpathTV.EncSliceUintptrV(v, e)
  1485. case *[]uintptr:
  1486. fastpathTV.EncSliceUintptrV(*v, e)
  1487. case []int:
  1488. fastpathTV.EncSliceIntV(v, e)
  1489. case *[]int:
  1490. fastpathTV.EncSliceIntV(*v, e)
  1491. case []int8:
  1492. fastpathTV.EncSliceInt8V(v, e)
  1493. case *[]int8:
  1494. fastpathTV.EncSliceInt8V(*v, e)
  1495. case []int16:
  1496. fastpathTV.EncSliceInt16V(v, e)
  1497. case *[]int16:
  1498. fastpathTV.EncSliceInt16V(*v, e)
  1499. case []int32:
  1500. fastpathTV.EncSliceInt32V(v, e)
  1501. case *[]int32:
  1502. fastpathTV.EncSliceInt32V(*v, e)
  1503. case []int64:
  1504. fastpathTV.EncSliceInt64V(v, e)
  1505. case *[]int64:
  1506. fastpathTV.EncSliceInt64V(*v, e)
  1507. case []bool:
  1508. fastpathTV.EncSliceBoolV(v, e)
  1509. case *[]bool:
  1510. fastpathTV.EncSliceBoolV(*v, e)
  1511. default:
  1512. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  1513. return false
  1514. }
  1515. return true
  1516. }
  1517. func fastpathEncodeTypeSwitchMap(iv interface{}, e *Encoder) bool {
  1518. switch v := iv.(type) {
  1519. case map[interface{}]interface{}:
  1520. fastpathTV.EncMapIntfIntfV(v, e)
  1521. case *map[interface{}]interface{}:
  1522. fastpathTV.EncMapIntfIntfV(*v, e)
  1523. case map[interface{}]string:
  1524. fastpathTV.EncMapIntfStringV(v, e)
  1525. case *map[interface{}]string:
  1526. fastpathTV.EncMapIntfStringV(*v, e)
  1527. case map[interface{}]uint:
  1528. fastpathTV.EncMapIntfUintV(v, e)
  1529. case *map[interface{}]uint:
  1530. fastpathTV.EncMapIntfUintV(*v, e)
  1531. case map[interface{}]uint8:
  1532. fastpathTV.EncMapIntfUint8V(v, e)
  1533. case *map[interface{}]uint8:
  1534. fastpathTV.EncMapIntfUint8V(*v, e)
  1535. case map[interface{}]uint16:
  1536. fastpathTV.EncMapIntfUint16V(v, e)
  1537. case *map[interface{}]uint16:
  1538. fastpathTV.EncMapIntfUint16V(*v, e)
  1539. case map[interface{}]uint32:
  1540. fastpathTV.EncMapIntfUint32V(v, e)
  1541. case *map[interface{}]uint32:
  1542. fastpathTV.EncMapIntfUint32V(*v, e)
  1543. case map[interface{}]uint64:
  1544. fastpathTV.EncMapIntfUint64V(v, e)
  1545. case *map[interface{}]uint64:
  1546. fastpathTV.EncMapIntfUint64V(*v, e)
  1547. case map[interface{}]uintptr:
  1548. fastpathTV.EncMapIntfUintptrV(v, e)
  1549. case *map[interface{}]uintptr:
  1550. fastpathTV.EncMapIntfUintptrV(*v, e)
  1551. case map[interface{}]int:
  1552. fastpathTV.EncMapIntfIntV(v, e)
  1553. case *map[interface{}]int:
  1554. fastpathTV.EncMapIntfIntV(*v, e)
  1555. case map[interface{}]int8:
  1556. fastpathTV.EncMapIntfInt8V(v, e)
  1557. case *map[interface{}]int8:
  1558. fastpathTV.EncMapIntfInt8V(*v, e)
  1559. case map[interface{}]int16:
  1560. fastpathTV.EncMapIntfInt16V(v, e)
  1561. case *map[interface{}]int16:
  1562. fastpathTV.EncMapIntfInt16V(*v, e)
  1563. case map[interface{}]int32:
  1564. fastpathTV.EncMapIntfInt32V(v, e)
  1565. case *map[interface{}]int32:
  1566. fastpathTV.EncMapIntfInt32V(*v, e)
  1567. case map[interface{}]int64:
  1568. fastpathTV.EncMapIntfInt64V(v, e)
  1569. case *map[interface{}]int64:
  1570. fastpathTV.EncMapIntfInt64V(*v, e)
  1571. case map[interface{}]float32:
  1572. fastpathTV.EncMapIntfFloat32V(v, e)
  1573. case *map[interface{}]float32:
  1574. fastpathTV.EncMapIntfFloat32V(*v, e)
  1575. case map[interface{}]float64:
  1576. fastpathTV.EncMapIntfFloat64V(v, e)
  1577. case *map[interface{}]float64:
  1578. fastpathTV.EncMapIntfFloat64V(*v, e)
  1579. case map[interface{}]bool:
  1580. fastpathTV.EncMapIntfBoolV(v, e)
  1581. case *map[interface{}]bool:
  1582. fastpathTV.EncMapIntfBoolV(*v, e)
  1583. case map[string]interface{}:
  1584. fastpathTV.EncMapStringIntfV(v, e)
  1585. case *map[string]interface{}:
  1586. fastpathTV.EncMapStringIntfV(*v, e)
  1587. case map[string]string:
  1588. fastpathTV.EncMapStringStringV(v, e)
  1589. case *map[string]string:
  1590. fastpathTV.EncMapStringStringV(*v, e)
  1591. case map[string]uint:
  1592. fastpathTV.EncMapStringUintV(v, e)
  1593. case *map[string]uint:
  1594. fastpathTV.EncMapStringUintV(*v, e)
  1595. case map[string]uint8:
  1596. fastpathTV.EncMapStringUint8V(v, e)
  1597. case *map[string]uint8:
  1598. fastpathTV.EncMapStringUint8V(*v, e)
  1599. case map[string]uint16:
  1600. fastpathTV.EncMapStringUint16V(v, e)
  1601. case *map[string]uint16:
  1602. fastpathTV.EncMapStringUint16V(*v, e)
  1603. case map[string]uint32:
  1604. fastpathTV.EncMapStringUint32V(v, e)
  1605. case *map[string]uint32:
  1606. fastpathTV.EncMapStringUint32V(*v, e)
  1607. case map[string]uint64:
  1608. fastpathTV.EncMapStringUint64V(v, e)
  1609. case *map[string]uint64:
  1610. fastpathTV.EncMapStringUint64V(*v, e)
  1611. case map[string]uintptr:
  1612. fastpathTV.EncMapStringUintptrV(v, e)
  1613. case *map[string]uintptr:
  1614. fastpathTV.EncMapStringUintptrV(*v, e)
  1615. case map[string]int:
  1616. fastpathTV.EncMapStringIntV(v, e)
  1617. case *map[string]int:
  1618. fastpathTV.EncMapStringIntV(*v, e)
  1619. case map[string]int8:
  1620. fastpathTV.EncMapStringInt8V(v, e)
  1621. case *map[string]int8:
  1622. fastpathTV.EncMapStringInt8V(*v, e)
  1623. case map[string]int16:
  1624. fastpathTV.EncMapStringInt16V(v, e)
  1625. case *map[string]int16:
  1626. fastpathTV.EncMapStringInt16V(*v, e)
  1627. case map[string]int32:
  1628. fastpathTV.EncMapStringInt32V(v, e)
  1629. case *map[string]int32:
  1630. fastpathTV.EncMapStringInt32V(*v, e)
  1631. case map[string]int64:
  1632. fastpathTV.EncMapStringInt64V(v, e)
  1633. case *map[string]int64:
  1634. fastpathTV.EncMapStringInt64V(*v, e)
  1635. case map[string]float32:
  1636. fastpathTV.EncMapStringFloat32V(v, e)
  1637. case *map[string]float32:
  1638. fastpathTV.EncMapStringFloat32V(*v, e)
  1639. case map[string]float64:
  1640. fastpathTV.EncMapStringFloat64V(v, e)
  1641. case *map[string]float64:
  1642. fastpathTV.EncMapStringFloat64V(*v, e)
  1643. case map[string]bool:
  1644. fastpathTV.EncMapStringBoolV(v, e)
  1645. case *map[string]bool:
  1646. fastpathTV.EncMapStringBoolV(*v, e)
  1647. case map[float32]interface{}:
  1648. fastpathTV.EncMapFloat32IntfV(v, e)
  1649. case *map[float32]interface{}:
  1650. fastpathTV.EncMapFloat32IntfV(*v, e)
  1651. case map[float32]string:
  1652. fastpathTV.EncMapFloat32StringV(v, e)
  1653. case *map[float32]string:
  1654. fastpathTV.EncMapFloat32StringV(*v, e)
  1655. case map[float32]uint:
  1656. fastpathTV.EncMapFloat32UintV(v, e)
  1657. case *map[float32]uint:
  1658. fastpathTV.EncMapFloat32UintV(*v, e)
  1659. case map[float32]uint8:
  1660. fastpathTV.EncMapFloat32Uint8V(v, e)
  1661. case *map[float32]uint8:
  1662. fastpathTV.EncMapFloat32Uint8V(*v, e)
  1663. case map[float32]uint16:
  1664. fastpathTV.EncMapFloat32Uint16V(v, e)
  1665. case *map[float32]uint16:
  1666. fastpathTV.EncMapFloat32Uint16V(*v, e)
  1667. case map[float32]uint32:
  1668. fastpathTV.EncMapFloat32Uint32V(v, e)
  1669. case *map[float32]uint32:
  1670. fastpathTV.EncMapFloat32Uint32V(*v, e)
  1671. case map[float32]uint64:
  1672. fastpathTV.EncMapFloat32Uint64V(v, e)
  1673. case *map[float32]uint64:
  1674. fastpathTV.EncMapFloat32Uint64V(*v, e)
  1675. case map[float32]uintptr:
  1676. fastpathTV.EncMapFloat32UintptrV(v, e)
  1677. case *map[float32]uintptr:
  1678. fastpathTV.EncMapFloat32UintptrV(*v, e)
  1679. case map[float32]int:
  1680. fastpathTV.EncMapFloat32IntV(v, e)
  1681. case *map[float32]int:
  1682. fastpathTV.EncMapFloat32IntV(*v, e)
  1683. case map[float32]int8:
  1684. fastpathTV.EncMapFloat32Int8V(v, e)
  1685. case *map[float32]int8:
  1686. fastpathTV.EncMapFloat32Int8V(*v, e)
  1687. case map[float32]int16:
  1688. fastpathTV.EncMapFloat32Int16V(v, e)
  1689. case *map[float32]int16:
  1690. fastpathTV.EncMapFloat32Int16V(*v, e)
  1691. case map[float32]int32:
  1692. fastpathTV.EncMapFloat32Int32V(v, e)
  1693. case *map[float32]int32:
  1694. fastpathTV.EncMapFloat32Int32V(*v, e)
  1695. case map[float32]int64:
  1696. fastpathTV.EncMapFloat32Int64V(v, e)
  1697. case *map[float32]int64:
  1698. fastpathTV.EncMapFloat32Int64V(*v, e)
  1699. case map[float32]float32:
  1700. fastpathTV.EncMapFloat32Float32V(v, e)
  1701. case *map[float32]float32:
  1702. fastpathTV.EncMapFloat32Float32V(*v, e)
  1703. case map[float32]float64:
  1704. fastpathTV.EncMapFloat32Float64V(v, e)
  1705. case *map[float32]float64:
  1706. fastpathTV.EncMapFloat32Float64V(*v, e)
  1707. case map[float32]bool:
  1708. fastpathTV.EncMapFloat32BoolV(v, e)
  1709. case *map[float32]bool:
  1710. fastpathTV.EncMapFloat32BoolV(*v, e)
  1711. case map[float64]interface{}:
  1712. fastpathTV.EncMapFloat64IntfV(v, e)
  1713. case *map[float64]interface{}:
  1714. fastpathTV.EncMapFloat64IntfV(*v, e)
  1715. case map[float64]string:
  1716. fastpathTV.EncMapFloat64StringV(v, e)
  1717. case *map[float64]string:
  1718. fastpathTV.EncMapFloat64StringV(*v, e)
  1719. case map[float64]uint:
  1720. fastpathTV.EncMapFloat64UintV(v, e)
  1721. case *map[float64]uint:
  1722. fastpathTV.EncMapFloat64UintV(*v, e)
  1723. case map[float64]uint8:
  1724. fastpathTV.EncMapFloat64Uint8V(v, e)
  1725. case *map[float64]uint8:
  1726. fastpathTV.EncMapFloat64Uint8V(*v, e)
  1727. case map[float64]uint16:
  1728. fastpathTV.EncMapFloat64Uint16V(v, e)
  1729. case *map[float64]uint16:
  1730. fastpathTV.EncMapFloat64Uint16V(*v, e)
  1731. case map[float64]uint32:
  1732. fastpathTV.EncMapFloat64Uint32V(v, e)
  1733. case *map[float64]uint32:
  1734. fastpathTV.EncMapFloat64Uint32V(*v, e)
  1735. case map[float64]uint64:
  1736. fastpathTV.EncMapFloat64Uint64V(v, e)
  1737. case *map[float64]uint64:
  1738. fastpathTV.EncMapFloat64Uint64V(*v, e)
  1739. case map[float64]uintptr:
  1740. fastpathTV.EncMapFloat64UintptrV(v, e)
  1741. case *map[float64]uintptr:
  1742. fastpathTV.EncMapFloat64UintptrV(*v, e)
  1743. case map[float64]int:
  1744. fastpathTV.EncMapFloat64IntV(v, e)
  1745. case *map[float64]int:
  1746. fastpathTV.EncMapFloat64IntV(*v, e)
  1747. case map[float64]int8:
  1748. fastpathTV.EncMapFloat64Int8V(v, e)
  1749. case *map[float64]int8:
  1750. fastpathTV.EncMapFloat64Int8V(*v, e)
  1751. case map[float64]int16:
  1752. fastpathTV.EncMapFloat64Int16V(v, e)
  1753. case *map[float64]int16:
  1754. fastpathTV.EncMapFloat64Int16V(*v, e)
  1755. case map[float64]int32:
  1756. fastpathTV.EncMapFloat64Int32V(v, e)
  1757. case *map[float64]int32:
  1758. fastpathTV.EncMapFloat64Int32V(*v, e)
  1759. case map[float64]int64:
  1760. fastpathTV.EncMapFloat64Int64V(v, e)
  1761. case *map[float64]int64:
  1762. fastpathTV.EncMapFloat64Int64V(*v, e)
  1763. case map[float64]float32:
  1764. fastpathTV.EncMapFloat64Float32V(v, e)
  1765. case *map[float64]float32:
  1766. fastpathTV.EncMapFloat64Float32V(*v, e)
  1767. case map[float64]float64:
  1768. fastpathTV.EncMapFloat64Float64V(v, e)
  1769. case *map[float64]float64:
  1770. fastpathTV.EncMapFloat64Float64V(*v, e)
  1771. case map[float64]bool:
  1772. fastpathTV.EncMapFloat64BoolV(v, e)
  1773. case *map[float64]bool:
  1774. fastpathTV.EncMapFloat64BoolV(*v, e)
  1775. case map[uint]interface{}:
  1776. fastpathTV.EncMapUintIntfV(v, e)
  1777. case *map[uint]interface{}:
  1778. fastpathTV.EncMapUintIntfV(*v, e)
  1779. case map[uint]string:
  1780. fastpathTV.EncMapUintStringV(v, e)
  1781. case *map[uint]string:
  1782. fastpathTV.EncMapUintStringV(*v, e)
  1783. case map[uint]uint:
  1784. fastpathTV.EncMapUintUintV(v, e)
  1785. case *map[uint]uint:
  1786. fastpathTV.EncMapUintUintV(*v, e)
  1787. case map[uint]uint8:
  1788. fastpathTV.EncMapUintUint8V(v, e)
  1789. case *map[uint]uint8:
  1790. fastpathTV.EncMapUintUint8V(*v, e)
  1791. case map[uint]uint16:
  1792. fastpathTV.EncMapUintUint16V(v, e)
  1793. case *map[uint]uint16:
  1794. fastpathTV.EncMapUintUint16V(*v, e)
  1795. case map[uint]uint32:
  1796. fastpathTV.EncMapUintUint32V(v, e)
  1797. case *map[uint]uint32:
  1798. fastpathTV.EncMapUintUint32V(*v, e)
  1799. case map[uint]uint64:
  1800. fastpathTV.EncMapUintUint64V(v, e)
  1801. case *map[uint]uint64:
  1802. fastpathTV.EncMapUintUint64V(*v, e)
  1803. case map[uint]uintptr:
  1804. fastpathTV.EncMapUintUintptrV(v, e)
  1805. case *map[uint]uintptr:
  1806. fastpathTV.EncMapUintUintptrV(*v, e)
  1807. case map[uint]int:
  1808. fastpathTV.EncMapUintIntV(v, e)
  1809. case *map[uint]int:
  1810. fastpathTV.EncMapUintIntV(*v, e)
  1811. case map[uint]int8:
  1812. fastpathTV.EncMapUintInt8V(v, e)
  1813. case *map[uint]int8:
  1814. fastpathTV.EncMapUintInt8V(*v, e)
  1815. case map[uint]int16:
  1816. fastpathTV.EncMapUintInt16V(v, e)
  1817. case *map[uint]int16:
  1818. fastpathTV.EncMapUintInt16V(*v, e)
  1819. case map[uint]int32:
  1820. fastpathTV.EncMapUintInt32V(v, e)
  1821. case *map[uint]int32:
  1822. fastpathTV.EncMapUintInt32V(*v, e)
  1823. case map[uint]int64:
  1824. fastpathTV.EncMapUintInt64V(v, e)
  1825. case *map[uint]int64:
  1826. fastpathTV.EncMapUintInt64V(*v, e)
  1827. case map[uint]float32:
  1828. fastpathTV.EncMapUintFloat32V(v, e)
  1829. case *map[uint]float32:
  1830. fastpathTV.EncMapUintFloat32V(*v, e)
  1831. case map[uint]float64:
  1832. fastpathTV.EncMapUintFloat64V(v, e)
  1833. case *map[uint]float64:
  1834. fastpathTV.EncMapUintFloat64V(*v, e)
  1835. case map[uint]bool:
  1836. fastpathTV.EncMapUintBoolV(v, e)
  1837. case *map[uint]bool:
  1838. fastpathTV.EncMapUintBoolV(*v, e)
  1839. case map[uint8]interface{}:
  1840. fastpathTV.EncMapUint8IntfV(v, e)
  1841. case *map[uint8]interface{}:
  1842. fastpathTV.EncMapUint8IntfV(*v, e)
  1843. case map[uint8]string:
  1844. fastpathTV.EncMapUint8StringV(v, e)
  1845. case *map[uint8]string:
  1846. fastpathTV.EncMapUint8StringV(*v, e)
  1847. case map[uint8]uint:
  1848. fastpathTV.EncMapUint8UintV(v, e)
  1849. case *map[uint8]uint:
  1850. fastpathTV.EncMapUint8UintV(*v, e)
  1851. case map[uint8]uint8:
  1852. fastpathTV.EncMapUint8Uint8V(v, e)
  1853. case *map[uint8]uint8:
  1854. fastpathTV.EncMapUint8Uint8V(*v, e)
  1855. case map[uint8]uint16:
  1856. fastpathTV.EncMapUint8Uint16V(v, e)
  1857. case *map[uint8]uint16:
  1858. fastpathTV.EncMapUint8Uint16V(*v, e)
  1859. case map[uint8]uint32:
  1860. fastpathTV.EncMapUint8Uint32V(v, e)
  1861. case *map[uint8]uint32:
  1862. fastpathTV.EncMapUint8Uint32V(*v, e)
  1863. case map[uint8]uint64:
  1864. fastpathTV.EncMapUint8Uint64V(v, e)
  1865. case *map[uint8]uint64:
  1866. fastpathTV.EncMapUint8Uint64V(*v, e)
  1867. case map[uint8]uintptr:
  1868. fastpathTV.EncMapUint8UintptrV(v, e)
  1869. case *map[uint8]uintptr:
  1870. fastpathTV.EncMapUint8UintptrV(*v, e)
  1871. case map[uint8]int:
  1872. fastpathTV.EncMapUint8IntV(v, e)
  1873. case *map[uint8]int:
  1874. fastpathTV.EncMapUint8IntV(*v, e)
  1875. case map[uint8]int8:
  1876. fastpathTV.EncMapUint8Int8V(v, e)
  1877. case *map[uint8]int8:
  1878. fastpathTV.EncMapUint8Int8V(*v, e)
  1879. case map[uint8]int16:
  1880. fastpathTV.EncMapUint8Int16V(v, e)
  1881. case *map[uint8]int16:
  1882. fastpathTV.EncMapUint8Int16V(*v, e)
  1883. case map[uint8]int32:
  1884. fastpathTV.EncMapUint8Int32V(v, e)
  1885. case *map[uint8]int32:
  1886. fastpathTV.EncMapUint8Int32V(*v, e)
  1887. case map[uint8]int64:
  1888. fastpathTV.EncMapUint8Int64V(v, e)
  1889. case *map[uint8]int64:
  1890. fastpathTV.EncMapUint8Int64V(*v, e)
  1891. case map[uint8]float32:
  1892. fastpathTV.EncMapUint8Float32V(v, e)
  1893. case *map[uint8]float32:
  1894. fastpathTV.EncMapUint8Float32V(*v, e)
  1895. case map[uint8]float64:
  1896. fastpathTV.EncMapUint8Float64V(v, e)
  1897. case *map[uint8]float64:
  1898. fastpathTV.EncMapUint8Float64V(*v, e)
  1899. case map[uint8]bool:
  1900. fastpathTV.EncMapUint8BoolV(v, e)
  1901. case *map[uint8]bool:
  1902. fastpathTV.EncMapUint8BoolV(*v, e)
  1903. case map[uint16]interface{}:
  1904. fastpathTV.EncMapUint16IntfV(v, e)
  1905. case *map[uint16]interface{}:
  1906. fastpathTV.EncMapUint16IntfV(*v, e)
  1907. case map[uint16]string:
  1908. fastpathTV.EncMapUint16StringV(v, e)
  1909. case *map[uint16]string:
  1910. fastpathTV.EncMapUint16StringV(*v, e)
  1911. case map[uint16]uint:
  1912. fastpathTV.EncMapUint16UintV(v, e)
  1913. case *map[uint16]uint:
  1914. fastpathTV.EncMapUint16UintV(*v, e)
  1915. case map[uint16]uint8:
  1916. fastpathTV.EncMapUint16Uint8V(v, e)
  1917. case *map[uint16]uint8:
  1918. fastpathTV.EncMapUint16Uint8V(*v, e)
  1919. case map[uint16]uint16:
  1920. fastpathTV.EncMapUint16Uint16V(v, e)
  1921. case *map[uint16]uint16:
  1922. fastpathTV.EncMapUint16Uint16V(*v, e)
  1923. case map[uint16]uint32:
  1924. fastpathTV.EncMapUint16Uint32V(v, e)
  1925. case *map[uint16]uint32:
  1926. fastpathTV.EncMapUint16Uint32V(*v, e)
  1927. case map[uint16]uint64:
  1928. fastpathTV.EncMapUint16Uint64V(v, e)
  1929. case *map[uint16]uint64:
  1930. fastpathTV.EncMapUint16Uint64V(*v, e)
  1931. case map[uint16]uintptr:
  1932. fastpathTV.EncMapUint16UintptrV(v, e)
  1933. case *map[uint16]uintptr:
  1934. fastpathTV.EncMapUint16UintptrV(*v, e)
  1935. case map[uint16]int:
  1936. fastpathTV.EncMapUint16IntV(v, e)
  1937. case *map[uint16]int:
  1938. fastpathTV.EncMapUint16IntV(*v, e)
  1939. case map[uint16]int8:
  1940. fastpathTV.EncMapUint16Int8V(v, e)
  1941. case *map[uint16]int8:
  1942. fastpathTV.EncMapUint16Int8V(*v, e)
  1943. case map[uint16]int16:
  1944. fastpathTV.EncMapUint16Int16V(v, e)
  1945. case *map[uint16]int16:
  1946. fastpathTV.EncMapUint16Int16V(*v, e)
  1947. case map[uint16]int32:
  1948. fastpathTV.EncMapUint16Int32V(v, e)
  1949. case *map[uint16]int32:
  1950. fastpathTV.EncMapUint16Int32V(*v, e)
  1951. case map[uint16]int64:
  1952. fastpathTV.EncMapUint16Int64V(v, e)
  1953. case *map[uint16]int64:
  1954. fastpathTV.EncMapUint16Int64V(*v, e)
  1955. case map[uint16]float32:
  1956. fastpathTV.EncMapUint16Float32V(v, e)
  1957. case *map[uint16]float32:
  1958. fastpathTV.EncMapUint16Float32V(*v, e)
  1959. case map[uint16]float64:
  1960. fastpathTV.EncMapUint16Float64V(v, e)
  1961. case *map[uint16]float64:
  1962. fastpathTV.EncMapUint16Float64V(*v, e)
  1963. case map[uint16]bool:
  1964. fastpathTV.EncMapUint16BoolV(v, e)
  1965. case *map[uint16]bool:
  1966. fastpathTV.EncMapUint16BoolV(*v, e)
  1967. case map[uint32]interface{}:
  1968. fastpathTV.EncMapUint32IntfV(v, e)
  1969. case *map[uint32]interface{}:
  1970. fastpathTV.EncMapUint32IntfV(*v, e)
  1971. case map[uint32]string:
  1972. fastpathTV.EncMapUint32StringV(v, e)
  1973. case *map[uint32]string:
  1974. fastpathTV.EncMapUint32StringV(*v, e)
  1975. case map[uint32]uint:
  1976. fastpathTV.EncMapUint32UintV(v, e)
  1977. case *map[uint32]uint:
  1978. fastpathTV.EncMapUint32UintV(*v, e)
  1979. case map[uint32]uint8:
  1980. fastpathTV.EncMapUint32Uint8V(v, e)
  1981. case *map[uint32]uint8:
  1982. fastpathTV.EncMapUint32Uint8V(*v, e)
  1983. case map[uint32]uint16:
  1984. fastpathTV.EncMapUint32Uint16V(v, e)
  1985. case *map[uint32]uint16:
  1986. fastpathTV.EncMapUint32Uint16V(*v, e)
  1987. case map[uint32]uint32:
  1988. fastpathTV.EncMapUint32Uint32V(v, e)
  1989. case *map[uint32]uint32:
  1990. fastpathTV.EncMapUint32Uint32V(*v, e)
  1991. case map[uint32]uint64:
  1992. fastpathTV.EncMapUint32Uint64V(v, e)
  1993. case *map[uint32]uint64:
  1994. fastpathTV.EncMapUint32Uint64V(*v, e)
  1995. case map[uint32]uintptr:
  1996. fastpathTV.EncMapUint32UintptrV(v, e)
  1997. case *map[uint32]uintptr:
  1998. fastpathTV.EncMapUint32UintptrV(*v, e)
  1999. case map[uint32]int:
  2000. fastpathTV.EncMapUint32IntV(v, e)
  2001. case *map[uint32]int:
  2002. fastpathTV.EncMapUint32IntV(*v, e)
  2003. case map[uint32]int8:
  2004. fastpathTV.EncMapUint32Int8V(v, e)
  2005. case *map[uint32]int8:
  2006. fastpathTV.EncMapUint32Int8V(*v, e)
  2007. case map[uint32]int16:
  2008. fastpathTV.EncMapUint32Int16V(v, e)
  2009. case *map[uint32]int16:
  2010. fastpathTV.EncMapUint32Int16V(*v, e)
  2011. case map[uint32]int32:
  2012. fastpathTV.EncMapUint32Int32V(v, e)
  2013. case *map[uint32]int32:
  2014. fastpathTV.EncMapUint32Int32V(*v, e)
  2015. case map[uint32]int64:
  2016. fastpathTV.EncMapUint32Int64V(v, e)
  2017. case *map[uint32]int64:
  2018. fastpathTV.EncMapUint32Int64V(*v, e)
  2019. case map[uint32]float32:
  2020. fastpathTV.EncMapUint32Float32V(v, e)
  2021. case *map[uint32]float32:
  2022. fastpathTV.EncMapUint32Float32V(*v, e)
  2023. case map[uint32]float64:
  2024. fastpathTV.EncMapUint32Float64V(v, e)
  2025. case *map[uint32]float64:
  2026. fastpathTV.EncMapUint32Float64V(*v, e)
  2027. case map[uint32]bool:
  2028. fastpathTV.EncMapUint32BoolV(v, e)
  2029. case *map[uint32]bool:
  2030. fastpathTV.EncMapUint32BoolV(*v, e)
  2031. case map[uint64]interface{}:
  2032. fastpathTV.EncMapUint64IntfV(v, e)
  2033. case *map[uint64]interface{}:
  2034. fastpathTV.EncMapUint64IntfV(*v, e)
  2035. case map[uint64]string:
  2036. fastpathTV.EncMapUint64StringV(v, e)
  2037. case *map[uint64]string:
  2038. fastpathTV.EncMapUint64StringV(*v, e)
  2039. case map[uint64]uint:
  2040. fastpathTV.EncMapUint64UintV(v, e)
  2041. case *map[uint64]uint:
  2042. fastpathTV.EncMapUint64UintV(*v, e)
  2043. case map[uint64]uint8:
  2044. fastpathTV.EncMapUint64Uint8V(v, e)
  2045. case *map[uint64]uint8:
  2046. fastpathTV.EncMapUint64Uint8V(*v, e)
  2047. case map[uint64]uint16:
  2048. fastpathTV.EncMapUint64Uint16V(v, e)
  2049. case *map[uint64]uint16:
  2050. fastpathTV.EncMapUint64Uint16V(*v, e)
  2051. case map[uint64]uint32:
  2052. fastpathTV.EncMapUint64Uint32V(v, e)
  2053. case *map[uint64]uint32:
  2054. fastpathTV.EncMapUint64Uint32V(*v, e)
  2055. case map[uint64]uint64:
  2056. fastpathTV.EncMapUint64Uint64V(v, e)
  2057. case *map[uint64]uint64:
  2058. fastpathTV.EncMapUint64Uint64V(*v, e)
  2059. case map[uint64]uintptr:
  2060. fastpathTV.EncMapUint64UintptrV(v, e)
  2061. case *map[uint64]uintptr:
  2062. fastpathTV.EncMapUint64UintptrV(*v, e)
  2063. case map[uint64]int:
  2064. fastpathTV.EncMapUint64IntV(v, e)
  2065. case *map[uint64]int:
  2066. fastpathTV.EncMapUint64IntV(*v, e)
  2067. case map[uint64]int8:
  2068. fastpathTV.EncMapUint64Int8V(v, e)
  2069. case *map[uint64]int8:
  2070. fastpathTV.EncMapUint64Int8V(*v, e)
  2071. case map[uint64]int16:
  2072. fastpathTV.EncMapUint64Int16V(v, e)
  2073. case *map[uint64]int16:
  2074. fastpathTV.EncMapUint64Int16V(*v, e)
  2075. case map[uint64]int32:
  2076. fastpathTV.EncMapUint64Int32V(v, e)
  2077. case *map[uint64]int32:
  2078. fastpathTV.EncMapUint64Int32V(*v, e)
  2079. case map[uint64]int64:
  2080. fastpathTV.EncMapUint64Int64V(v, e)
  2081. case *map[uint64]int64:
  2082. fastpathTV.EncMapUint64Int64V(*v, e)
  2083. case map[uint64]float32:
  2084. fastpathTV.EncMapUint64Float32V(v, e)
  2085. case *map[uint64]float32:
  2086. fastpathTV.EncMapUint64Float32V(*v, e)
  2087. case map[uint64]float64:
  2088. fastpathTV.EncMapUint64Float64V(v, e)
  2089. case *map[uint64]float64:
  2090. fastpathTV.EncMapUint64Float64V(*v, e)
  2091. case map[uint64]bool:
  2092. fastpathTV.EncMapUint64BoolV(v, e)
  2093. case *map[uint64]bool:
  2094. fastpathTV.EncMapUint64BoolV(*v, e)
  2095. case map[uintptr]interface{}:
  2096. fastpathTV.EncMapUintptrIntfV(v, e)
  2097. case *map[uintptr]interface{}:
  2098. fastpathTV.EncMapUintptrIntfV(*v, e)
  2099. case map[uintptr]string:
  2100. fastpathTV.EncMapUintptrStringV(v, e)
  2101. case *map[uintptr]string:
  2102. fastpathTV.EncMapUintptrStringV(*v, e)
  2103. case map[uintptr]uint:
  2104. fastpathTV.EncMapUintptrUintV(v, e)
  2105. case *map[uintptr]uint:
  2106. fastpathTV.EncMapUintptrUintV(*v, e)
  2107. case map[uintptr]uint8:
  2108. fastpathTV.EncMapUintptrUint8V(v, e)
  2109. case *map[uintptr]uint8:
  2110. fastpathTV.EncMapUintptrUint8V(*v, e)
  2111. case map[uintptr]uint16:
  2112. fastpathTV.EncMapUintptrUint16V(v, e)
  2113. case *map[uintptr]uint16:
  2114. fastpathTV.EncMapUintptrUint16V(*v, e)
  2115. case map[uintptr]uint32:
  2116. fastpathTV.EncMapUintptrUint32V(v, e)
  2117. case *map[uintptr]uint32:
  2118. fastpathTV.EncMapUintptrUint32V(*v, e)
  2119. case map[uintptr]uint64:
  2120. fastpathTV.EncMapUintptrUint64V(v, e)
  2121. case *map[uintptr]uint64:
  2122. fastpathTV.EncMapUintptrUint64V(*v, e)
  2123. case map[uintptr]uintptr:
  2124. fastpathTV.EncMapUintptrUintptrV(v, e)
  2125. case *map[uintptr]uintptr:
  2126. fastpathTV.EncMapUintptrUintptrV(*v, e)
  2127. case map[uintptr]int:
  2128. fastpathTV.EncMapUintptrIntV(v, e)
  2129. case *map[uintptr]int:
  2130. fastpathTV.EncMapUintptrIntV(*v, e)
  2131. case map[uintptr]int8:
  2132. fastpathTV.EncMapUintptrInt8V(v, e)
  2133. case *map[uintptr]int8:
  2134. fastpathTV.EncMapUintptrInt8V(*v, e)
  2135. case map[uintptr]int16:
  2136. fastpathTV.EncMapUintptrInt16V(v, e)
  2137. case *map[uintptr]int16:
  2138. fastpathTV.EncMapUintptrInt16V(*v, e)
  2139. case map[uintptr]int32:
  2140. fastpathTV.EncMapUintptrInt32V(v, e)
  2141. case *map[uintptr]int32:
  2142. fastpathTV.EncMapUintptrInt32V(*v, e)
  2143. case map[uintptr]int64:
  2144. fastpathTV.EncMapUintptrInt64V(v, e)
  2145. case *map[uintptr]int64:
  2146. fastpathTV.EncMapUintptrInt64V(*v, e)
  2147. case map[uintptr]float32:
  2148. fastpathTV.EncMapUintptrFloat32V(v, e)
  2149. case *map[uintptr]float32:
  2150. fastpathTV.EncMapUintptrFloat32V(*v, e)
  2151. case map[uintptr]float64:
  2152. fastpathTV.EncMapUintptrFloat64V(v, e)
  2153. case *map[uintptr]float64:
  2154. fastpathTV.EncMapUintptrFloat64V(*v, e)
  2155. case map[uintptr]bool:
  2156. fastpathTV.EncMapUintptrBoolV(v, e)
  2157. case *map[uintptr]bool:
  2158. fastpathTV.EncMapUintptrBoolV(*v, e)
  2159. case map[int]interface{}:
  2160. fastpathTV.EncMapIntIntfV(v, e)
  2161. case *map[int]interface{}:
  2162. fastpathTV.EncMapIntIntfV(*v, e)
  2163. case map[int]string:
  2164. fastpathTV.EncMapIntStringV(v, e)
  2165. case *map[int]string:
  2166. fastpathTV.EncMapIntStringV(*v, e)
  2167. case map[int]uint:
  2168. fastpathTV.EncMapIntUintV(v, e)
  2169. case *map[int]uint:
  2170. fastpathTV.EncMapIntUintV(*v, e)
  2171. case map[int]uint8:
  2172. fastpathTV.EncMapIntUint8V(v, e)
  2173. case *map[int]uint8:
  2174. fastpathTV.EncMapIntUint8V(*v, e)
  2175. case map[int]uint16:
  2176. fastpathTV.EncMapIntUint16V(v, e)
  2177. case *map[int]uint16:
  2178. fastpathTV.EncMapIntUint16V(*v, e)
  2179. case map[int]uint32:
  2180. fastpathTV.EncMapIntUint32V(v, e)
  2181. case *map[int]uint32:
  2182. fastpathTV.EncMapIntUint32V(*v, e)
  2183. case map[int]uint64:
  2184. fastpathTV.EncMapIntUint64V(v, e)
  2185. case *map[int]uint64:
  2186. fastpathTV.EncMapIntUint64V(*v, e)
  2187. case map[int]uintptr:
  2188. fastpathTV.EncMapIntUintptrV(v, e)
  2189. case *map[int]uintptr:
  2190. fastpathTV.EncMapIntUintptrV(*v, e)
  2191. case map[int]int:
  2192. fastpathTV.EncMapIntIntV(v, e)
  2193. case *map[int]int:
  2194. fastpathTV.EncMapIntIntV(*v, e)
  2195. case map[int]int8:
  2196. fastpathTV.EncMapIntInt8V(v, e)
  2197. case *map[int]int8:
  2198. fastpathTV.EncMapIntInt8V(*v, e)
  2199. case map[int]int16:
  2200. fastpathTV.EncMapIntInt16V(v, e)
  2201. case *map[int]int16:
  2202. fastpathTV.EncMapIntInt16V(*v, e)
  2203. case map[int]int32:
  2204. fastpathTV.EncMapIntInt32V(v, e)
  2205. case *map[int]int32:
  2206. fastpathTV.EncMapIntInt32V(*v, e)
  2207. case map[int]int64:
  2208. fastpathTV.EncMapIntInt64V(v, e)
  2209. case *map[int]int64:
  2210. fastpathTV.EncMapIntInt64V(*v, e)
  2211. case map[int]float32:
  2212. fastpathTV.EncMapIntFloat32V(v, e)
  2213. case *map[int]float32:
  2214. fastpathTV.EncMapIntFloat32V(*v, e)
  2215. case map[int]float64:
  2216. fastpathTV.EncMapIntFloat64V(v, e)
  2217. case *map[int]float64:
  2218. fastpathTV.EncMapIntFloat64V(*v, e)
  2219. case map[int]bool:
  2220. fastpathTV.EncMapIntBoolV(v, e)
  2221. case *map[int]bool:
  2222. fastpathTV.EncMapIntBoolV(*v, e)
  2223. case map[int8]interface{}:
  2224. fastpathTV.EncMapInt8IntfV(v, e)
  2225. case *map[int8]interface{}:
  2226. fastpathTV.EncMapInt8IntfV(*v, e)
  2227. case map[int8]string:
  2228. fastpathTV.EncMapInt8StringV(v, e)
  2229. case *map[int8]string:
  2230. fastpathTV.EncMapInt8StringV(*v, e)
  2231. case map[int8]uint:
  2232. fastpathTV.EncMapInt8UintV(v, e)
  2233. case *map[int8]uint:
  2234. fastpathTV.EncMapInt8UintV(*v, e)
  2235. case map[int8]uint8:
  2236. fastpathTV.EncMapInt8Uint8V(v, e)
  2237. case *map[int8]uint8:
  2238. fastpathTV.EncMapInt8Uint8V(*v, e)
  2239. case map[int8]uint16:
  2240. fastpathTV.EncMapInt8Uint16V(v, e)
  2241. case *map[int8]uint16:
  2242. fastpathTV.EncMapInt8Uint16V(*v, e)
  2243. case map[int8]uint32:
  2244. fastpathTV.EncMapInt8Uint32V(v, e)
  2245. case *map[int8]uint32:
  2246. fastpathTV.EncMapInt8Uint32V(*v, e)
  2247. case map[int8]uint64:
  2248. fastpathTV.EncMapInt8Uint64V(v, e)
  2249. case *map[int8]uint64:
  2250. fastpathTV.EncMapInt8Uint64V(*v, e)
  2251. case map[int8]uintptr:
  2252. fastpathTV.EncMapInt8UintptrV(v, e)
  2253. case *map[int8]uintptr:
  2254. fastpathTV.EncMapInt8UintptrV(*v, e)
  2255. case map[int8]int:
  2256. fastpathTV.EncMapInt8IntV(v, e)
  2257. case *map[int8]int:
  2258. fastpathTV.EncMapInt8IntV(*v, e)
  2259. case map[int8]int8:
  2260. fastpathTV.EncMapInt8Int8V(v, e)
  2261. case *map[int8]int8:
  2262. fastpathTV.EncMapInt8Int8V(*v, e)
  2263. case map[int8]int16:
  2264. fastpathTV.EncMapInt8Int16V(v, e)
  2265. case *map[int8]int16:
  2266. fastpathTV.EncMapInt8Int16V(*v, e)
  2267. case map[int8]int32:
  2268. fastpathTV.EncMapInt8Int32V(v, e)
  2269. case *map[int8]int32:
  2270. fastpathTV.EncMapInt8Int32V(*v, e)
  2271. case map[int8]int64:
  2272. fastpathTV.EncMapInt8Int64V(v, e)
  2273. case *map[int8]int64:
  2274. fastpathTV.EncMapInt8Int64V(*v, e)
  2275. case map[int8]float32:
  2276. fastpathTV.EncMapInt8Float32V(v, e)
  2277. case *map[int8]float32:
  2278. fastpathTV.EncMapInt8Float32V(*v, e)
  2279. case map[int8]float64:
  2280. fastpathTV.EncMapInt8Float64V(v, e)
  2281. case *map[int8]float64:
  2282. fastpathTV.EncMapInt8Float64V(*v, e)
  2283. case map[int8]bool:
  2284. fastpathTV.EncMapInt8BoolV(v, e)
  2285. case *map[int8]bool:
  2286. fastpathTV.EncMapInt8BoolV(*v, e)
  2287. case map[int16]interface{}:
  2288. fastpathTV.EncMapInt16IntfV(v, e)
  2289. case *map[int16]interface{}:
  2290. fastpathTV.EncMapInt16IntfV(*v, e)
  2291. case map[int16]string:
  2292. fastpathTV.EncMapInt16StringV(v, e)
  2293. case *map[int16]string:
  2294. fastpathTV.EncMapInt16StringV(*v, e)
  2295. case map[int16]uint:
  2296. fastpathTV.EncMapInt16UintV(v, e)
  2297. case *map[int16]uint:
  2298. fastpathTV.EncMapInt16UintV(*v, e)
  2299. case map[int16]uint8:
  2300. fastpathTV.EncMapInt16Uint8V(v, e)
  2301. case *map[int16]uint8:
  2302. fastpathTV.EncMapInt16Uint8V(*v, e)
  2303. case map[int16]uint16:
  2304. fastpathTV.EncMapInt16Uint16V(v, e)
  2305. case *map[int16]uint16:
  2306. fastpathTV.EncMapInt16Uint16V(*v, e)
  2307. case map[int16]uint32:
  2308. fastpathTV.EncMapInt16Uint32V(v, e)
  2309. case *map[int16]uint32:
  2310. fastpathTV.EncMapInt16Uint32V(*v, e)
  2311. case map[int16]uint64:
  2312. fastpathTV.EncMapInt16Uint64V(v, e)
  2313. case *map[int16]uint64:
  2314. fastpathTV.EncMapInt16Uint64V(*v, e)
  2315. case map[int16]uintptr:
  2316. fastpathTV.EncMapInt16UintptrV(v, e)
  2317. case *map[int16]uintptr:
  2318. fastpathTV.EncMapInt16UintptrV(*v, e)
  2319. case map[int16]int:
  2320. fastpathTV.EncMapInt16IntV(v, e)
  2321. case *map[int16]int:
  2322. fastpathTV.EncMapInt16IntV(*v, e)
  2323. case map[int16]int8:
  2324. fastpathTV.EncMapInt16Int8V(v, e)
  2325. case *map[int16]int8:
  2326. fastpathTV.EncMapInt16Int8V(*v, e)
  2327. case map[int16]int16:
  2328. fastpathTV.EncMapInt16Int16V(v, e)
  2329. case *map[int16]int16:
  2330. fastpathTV.EncMapInt16Int16V(*v, e)
  2331. case map[int16]int32:
  2332. fastpathTV.EncMapInt16Int32V(v, e)
  2333. case *map[int16]int32:
  2334. fastpathTV.EncMapInt16Int32V(*v, e)
  2335. case map[int16]int64:
  2336. fastpathTV.EncMapInt16Int64V(v, e)
  2337. case *map[int16]int64:
  2338. fastpathTV.EncMapInt16Int64V(*v, e)
  2339. case map[int16]float32:
  2340. fastpathTV.EncMapInt16Float32V(v, e)
  2341. case *map[int16]float32:
  2342. fastpathTV.EncMapInt16Float32V(*v, e)
  2343. case map[int16]float64:
  2344. fastpathTV.EncMapInt16Float64V(v, e)
  2345. case *map[int16]float64:
  2346. fastpathTV.EncMapInt16Float64V(*v, e)
  2347. case map[int16]bool:
  2348. fastpathTV.EncMapInt16BoolV(v, e)
  2349. case *map[int16]bool:
  2350. fastpathTV.EncMapInt16BoolV(*v, e)
  2351. case map[int32]interface{}:
  2352. fastpathTV.EncMapInt32IntfV(v, e)
  2353. case *map[int32]interface{}:
  2354. fastpathTV.EncMapInt32IntfV(*v, e)
  2355. case map[int32]string:
  2356. fastpathTV.EncMapInt32StringV(v, e)
  2357. case *map[int32]string:
  2358. fastpathTV.EncMapInt32StringV(*v, e)
  2359. case map[int32]uint:
  2360. fastpathTV.EncMapInt32UintV(v, e)
  2361. case *map[int32]uint:
  2362. fastpathTV.EncMapInt32UintV(*v, e)
  2363. case map[int32]uint8:
  2364. fastpathTV.EncMapInt32Uint8V(v, e)
  2365. case *map[int32]uint8:
  2366. fastpathTV.EncMapInt32Uint8V(*v, e)
  2367. case map[int32]uint16:
  2368. fastpathTV.EncMapInt32Uint16V(v, e)
  2369. case *map[int32]uint16:
  2370. fastpathTV.EncMapInt32Uint16V(*v, e)
  2371. case map[int32]uint32:
  2372. fastpathTV.EncMapInt32Uint32V(v, e)
  2373. case *map[int32]uint32:
  2374. fastpathTV.EncMapInt32Uint32V(*v, e)
  2375. case map[int32]uint64:
  2376. fastpathTV.EncMapInt32Uint64V(v, e)
  2377. case *map[int32]uint64:
  2378. fastpathTV.EncMapInt32Uint64V(*v, e)
  2379. case map[int32]uintptr:
  2380. fastpathTV.EncMapInt32UintptrV(v, e)
  2381. case *map[int32]uintptr:
  2382. fastpathTV.EncMapInt32UintptrV(*v, e)
  2383. case map[int32]int:
  2384. fastpathTV.EncMapInt32IntV(v, e)
  2385. case *map[int32]int:
  2386. fastpathTV.EncMapInt32IntV(*v, e)
  2387. case map[int32]int8:
  2388. fastpathTV.EncMapInt32Int8V(v, e)
  2389. case *map[int32]int8:
  2390. fastpathTV.EncMapInt32Int8V(*v, e)
  2391. case map[int32]int16:
  2392. fastpathTV.EncMapInt32Int16V(v, e)
  2393. case *map[int32]int16:
  2394. fastpathTV.EncMapInt32Int16V(*v, e)
  2395. case map[int32]int32:
  2396. fastpathTV.EncMapInt32Int32V(v, e)
  2397. case *map[int32]int32:
  2398. fastpathTV.EncMapInt32Int32V(*v, e)
  2399. case map[int32]int64:
  2400. fastpathTV.EncMapInt32Int64V(v, e)
  2401. case *map[int32]int64:
  2402. fastpathTV.EncMapInt32Int64V(*v, e)
  2403. case map[int32]float32:
  2404. fastpathTV.EncMapInt32Float32V(v, e)
  2405. case *map[int32]float32:
  2406. fastpathTV.EncMapInt32Float32V(*v, e)
  2407. case map[int32]float64:
  2408. fastpathTV.EncMapInt32Float64V(v, e)
  2409. case *map[int32]float64:
  2410. fastpathTV.EncMapInt32Float64V(*v, e)
  2411. case map[int32]bool:
  2412. fastpathTV.EncMapInt32BoolV(v, e)
  2413. case *map[int32]bool:
  2414. fastpathTV.EncMapInt32BoolV(*v, e)
  2415. case map[int64]interface{}:
  2416. fastpathTV.EncMapInt64IntfV(v, e)
  2417. case *map[int64]interface{}:
  2418. fastpathTV.EncMapInt64IntfV(*v, e)
  2419. case map[int64]string:
  2420. fastpathTV.EncMapInt64StringV(v, e)
  2421. case *map[int64]string:
  2422. fastpathTV.EncMapInt64StringV(*v, e)
  2423. case map[int64]uint:
  2424. fastpathTV.EncMapInt64UintV(v, e)
  2425. case *map[int64]uint:
  2426. fastpathTV.EncMapInt64UintV(*v, e)
  2427. case map[int64]uint8:
  2428. fastpathTV.EncMapInt64Uint8V(v, e)
  2429. case *map[int64]uint8:
  2430. fastpathTV.EncMapInt64Uint8V(*v, e)
  2431. case map[int64]uint16:
  2432. fastpathTV.EncMapInt64Uint16V(v, e)
  2433. case *map[int64]uint16:
  2434. fastpathTV.EncMapInt64Uint16V(*v, e)
  2435. case map[int64]uint32:
  2436. fastpathTV.EncMapInt64Uint32V(v, e)
  2437. case *map[int64]uint32:
  2438. fastpathTV.EncMapInt64Uint32V(*v, e)
  2439. case map[int64]uint64:
  2440. fastpathTV.EncMapInt64Uint64V(v, e)
  2441. case *map[int64]uint64:
  2442. fastpathTV.EncMapInt64Uint64V(*v, e)
  2443. case map[int64]uintptr:
  2444. fastpathTV.EncMapInt64UintptrV(v, e)
  2445. case *map[int64]uintptr:
  2446. fastpathTV.EncMapInt64UintptrV(*v, e)
  2447. case map[int64]int:
  2448. fastpathTV.EncMapInt64IntV(v, e)
  2449. case *map[int64]int:
  2450. fastpathTV.EncMapInt64IntV(*v, e)
  2451. case map[int64]int8:
  2452. fastpathTV.EncMapInt64Int8V(v, e)
  2453. case *map[int64]int8:
  2454. fastpathTV.EncMapInt64Int8V(*v, e)
  2455. case map[int64]int16:
  2456. fastpathTV.EncMapInt64Int16V(v, e)
  2457. case *map[int64]int16:
  2458. fastpathTV.EncMapInt64Int16V(*v, e)
  2459. case map[int64]int32:
  2460. fastpathTV.EncMapInt64Int32V(v, e)
  2461. case *map[int64]int32:
  2462. fastpathTV.EncMapInt64Int32V(*v, e)
  2463. case map[int64]int64:
  2464. fastpathTV.EncMapInt64Int64V(v, e)
  2465. case *map[int64]int64:
  2466. fastpathTV.EncMapInt64Int64V(*v, e)
  2467. case map[int64]float32:
  2468. fastpathTV.EncMapInt64Float32V(v, e)
  2469. case *map[int64]float32:
  2470. fastpathTV.EncMapInt64Float32V(*v, e)
  2471. case map[int64]float64:
  2472. fastpathTV.EncMapInt64Float64V(v, e)
  2473. case *map[int64]float64:
  2474. fastpathTV.EncMapInt64Float64V(*v, e)
  2475. case map[int64]bool:
  2476. fastpathTV.EncMapInt64BoolV(v, e)
  2477. case *map[int64]bool:
  2478. fastpathTV.EncMapInt64BoolV(*v, e)
  2479. case map[bool]interface{}:
  2480. fastpathTV.EncMapBoolIntfV(v, e)
  2481. case *map[bool]interface{}:
  2482. fastpathTV.EncMapBoolIntfV(*v, e)
  2483. case map[bool]string:
  2484. fastpathTV.EncMapBoolStringV(v, e)
  2485. case *map[bool]string:
  2486. fastpathTV.EncMapBoolStringV(*v, e)
  2487. case map[bool]uint:
  2488. fastpathTV.EncMapBoolUintV(v, e)
  2489. case *map[bool]uint:
  2490. fastpathTV.EncMapBoolUintV(*v, e)
  2491. case map[bool]uint8:
  2492. fastpathTV.EncMapBoolUint8V(v, e)
  2493. case *map[bool]uint8:
  2494. fastpathTV.EncMapBoolUint8V(*v, e)
  2495. case map[bool]uint16:
  2496. fastpathTV.EncMapBoolUint16V(v, e)
  2497. case *map[bool]uint16:
  2498. fastpathTV.EncMapBoolUint16V(*v, e)
  2499. case map[bool]uint32:
  2500. fastpathTV.EncMapBoolUint32V(v, e)
  2501. case *map[bool]uint32:
  2502. fastpathTV.EncMapBoolUint32V(*v, e)
  2503. case map[bool]uint64:
  2504. fastpathTV.EncMapBoolUint64V(v, e)
  2505. case *map[bool]uint64:
  2506. fastpathTV.EncMapBoolUint64V(*v, e)
  2507. case map[bool]uintptr:
  2508. fastpathTV.EncMapBoolUintptrV(v, e)
  2509. case *map[bool]uintptr:
  2510. fastpathTV.EncMapBoolUintptrV(*v, e)
  2511. case map[bool]int:
  2512. fastpathTV.EncMapBoolIntV(v, e)
  2513. case *map[bool]int:
  2514. fastpathTV.EncMapBoolIntV(*v, e)
  2515. case map[bool]int8:
  2516. fastpathTV.EncMapBoolInt8V(v, e)
  2517. case *map[bool]int8:
  2518. fastpathTV.EncMapBoolInt8V(*v, e)
  2519. case map[bool]int16:
  2520. fastpathTV.EncMapBoolInt16V(v, e)
  2521. case *map[bool]int16:
  2522. fastpathTV.EncMapBoolInt16V(*v, e)
  2523. case map[bool]int32:
  2524. fastpathTV.EncMapBoolInt32V(v, e)
  2525. case *map[bool]int32:
  2526. fastpathTV.EncMapBoolInt32V(*v, e)
  2527. case map[bool]int64:
  2528. fastpathTV.EncMapBoolInt64V(v, e)
  2529. case *map[bool]int64:
  2530. fastpathTV.EncMapBoolInt64V(*v, e)
  2531. case map[bool]float32:
  2532. fastpathTV.EncMapBoolFloat32V(v, e)
  2533. case *map[bool]float32:
  2534. fastpathTV.EncMapBoolFloat32V(*v, e)
  2535. case map[bool]float64:
  2536. fastpathTV.EncMapBoolFloat64V(v, e)
  2537. case *map[bool]float64:
  2538. fastpathTV.EncMapBoolFloat64V(*v, e)
  2539. case map[bool]bool:
  2540. fastpathTV.EncMapBoolBoolV(v, e)
  2541. case *map[bool]bool:
  2542. fastpathTV.EncMapBoolBoolV(*v, e)
  2543. default:
  2544. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  2545. return false
  2546. }
  2547. return true
  2548. }
  2549. // -- -- fast path functions
  2550. func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  2551. if f.ti.mbs {
  2552. fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
  2553. } else {
  2554. fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
  2555. }
  2556. }
  2557. func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
  2558. ee, cr := e.e, e.cr
  2559. ee.EncodeArrayStart(len(v))
  2560. for _, v2 := range v {
  2561. if cr != nil {
  2562. cr.sendContainerState(containerArrayElem)
  2563. }
  2564. e.encode(v2)
  2565. }
  2566. if cr != nil {
  2567. cr.sendContainerState(containerArrayEnd)
  2568. }
  2569. }
  2570. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  2571. ee, cr := e.e, e.cr
  2572. if len(v)%2 == 1 {
  2573. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2574. return
  2575. }
  2576. ee.EncodeMapStart(len(v) / 2)
  2577. for j, v2 := range v {
  2578. if cr != nil {
  2579. if j%2 == 0 {
  2580. cr.sendContainerState(containerMapKey)
  2581. } else {
  2582. cr.sendContainerState(containerMapValue)
  2583. }
  2584. }
  2585. e.encode(v2)
  2586. }
  2587. if cr != nil {
  2588. cr.sendContainerState(containerMapEnd)
  2589. }
  2590. }
  2591. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  2592. if f.ti.mbs {
  2593. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  2594. } else {
  2595. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  2596. }
  2597. }
  2598. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  2599. ee, cr := e.e, e.cr
  2600. ee.EncodeArrayStart(len(v))
  2601. for _, v2 := range v {
  2602. if cr != nil {
  2603. cr.sendContainerState(containerArrayElem)
  2604. }
  2605. ee.EncodeString(c_UTF8, v2)
  2606. }
  2607. if cr != nil {
  2608. cr.sendContainerState(containerArrayEnd)
  2609. }
  2610. }
  2611. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  2612. ee, cr := e.e, e.cr
  2613. if len(v)%2 == 1 {
  2614. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2615. return
  2616. }
  2617. ee.EncodeMapStart(len(v) / 2)
  2618. for j, v2 := range v {
  2619. if cr != nil {
  2620. if j%2 == 0 {
  2621. cr.sendContainerState(containerMapKey)
  2622. } else {
  2623. cr.sendContainerState(containerMapValue)
  2624. }
  2625. }
  2626. ee.EncodeString(c_UTF8, v2)
  2627. }
  2628. if cr != nil {
  2629. cr.sendContainerState(containerMapEnd)
  2630. }
  2631. }
  2632. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  2633. if f.ti.mbs {
  2634. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  2635. } else {
  2636. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  2637. }
  2638. }
  2639. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  2640. ee, cr := e.e, e.cr
  2641. ee.EncodeArrayStart(len(v))
  2642. for _, v2 := range v {
  2643. if cr != nil {
  2644. cr.sendContainerState(containerArrayElem)
  2645. }
  2646. ee.EncodeFloat32(v2)
  2647. }
  2648. if cr != nil {
  2649. cr.sendContainerState(containerArrayEnd)
  2650. }
  2651. }
  2652. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  2653. ee, cr := e.e, e.cr
  2654. if len(v)%2 == 1 {
  2655. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2656. return
  2657. }
  2658. ee.EncodeMapStart(len(v) / 2)
  2659. for j, v2 := range v {
  2660. if cr != nil {
  2661. if j%2 == 0 {
  2662. cr.sendContainerState(containerMapKey)
  2663. } else {
  2664. cr.sendContainerState(containerMapValue)
  2665. }
  2666. }
  2667. ee.EncodeFloat32(v2)
  2668. }
  2669. if cr != nil {
  2670. cr.sendContainerState(containerMapEnd)
  2671. }
  2672. }
  2673. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  2674. if f.ti.mbs {
  2675. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  2676. } else {
  2677. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  2678. }
  2679. }
  2680. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  2681. ee, cr := e.e, e.cr
  2682. ee.EncodeArrayStart(len(v))
  2683. for _, v2 := range v {
  2684. if cr != nil {
  2685. cr.sendContainerState(containerArrayElem)
  2686. }
  2687. ee.EncodeFloat64(v2)
  2688. }
  2689. if cr != nil {
  2690. cr.sendContainerState(containerArrayEnd)
  2691. }
  2692. }
  2693. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  2694. ee, cr := e.e, e.cr
  2695. if len(v)%2 == 1 {
  2696. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2697. return
  2698. }
  2699. ee.EncodeMapStart(len(v) / 2)
  2700. for j, v2 := range v {
  2701. if cr != nil {
  2702. if j%2 == 0 {
  2703. cr.sendContainerState(containerMapKey)
  2704. } else {
  2705. cr.sendContainerState(containerMapValue)
  2706. }
  2707. }
  2708. ee.EncodeFloat64(v2)
  2709. }
  2710. if cr != nil {
  2711. cr.sendContainerState(containerMapEnd)
  2712. }
  2713. }
  2714. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  2715. if f.ti.mbs {
  2716. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  2717. } else {
  2718. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  2719. }
  2720. }
  2721. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  2722. ee, cr := e.e, e.cr
  2723. ee.EncodeArrayStart(len(v))
  2724. for _, v2 := range v {
  2725. if cr != nil {
  2726. cr.sendContainerState(containerArrayElem)
  2727. }
  2728. ee.EncodeUint(uint64(v2))
  2729. }
  2730. if cr != nil {
  2731. cr.sendContainerState(containerArrayEnd)
  2732. }
  2733. }
  2734. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  2735. ee, cr := e.e, e.cr
  2736. if len(v)%2 == 1 {
  2737. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2738. return
  2739. }
  2740. ee.EncodeMapStart(len(v) / 2)
  2741. for j, v2 := range v {
  2742. if cr != nil {
  2743. if j%2 == 0 {
  2744. cr.sendContainerState(containerMapKey)
  2745. } else {
  2746. cr.sendContainerState(containerMapValue)
  2747. }
  2748. }
  2749. ee.EncodeUint(uint64(v2))
  2750. }
  2751. if cr != nil {
  2752. cr.sendContainerState(containerMapEnd)
  2753. }
  2754. }
  2755. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  2756. if f.ti.mbs {
  2757. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  2758. } else {
  2759. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  2760. }
  2761. }
  2762. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  2763. ee, cr := e.e, e.cr
  2764. ee.EncodeArrayStart(len(v))
  2765. for _, v2 := range v {
  2766. if cr != nil {
  2767. cr.sendContainerState(containerArrayElem)
  2768. }
  2769. ee.EncodeUint(uint64(v2))
  2770. }
  2771. if cr != nil {
  2772. cr.sendContainerState(containerArrayEnd)
  2773. }
  2774. }
  2775. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  2776. ee, cr := e.e, e.cr
  2777. if len(v)%2 == 1 {
  2778. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2779. return
  2780. }
  2781. ee.EncodeMapStart(len(v) / 2)
  2782. for j, v2 := range v {
  2783. if cr != nil {
  2784. if j%2 == 0 {
  2785. cr.sendContainerState(containerMapKey)
  2786. } else {
  2787. cr.sendContainerState(containerMapValue)
  2788. }
  2789. }
  2790. ee.EncodeUint(uint64(v2))
  2791. }
  2792. if cr != nil {
  2793. cr.sendContainerState(containerMapEnd)
  2794. }
  2795. }
  2796. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  2797. if f.ti.mbs {
  2798. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  2799. } else {
  2800. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  2801. }
  2802. }
  2803. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  2804. ee, cr := e.e, e.cr
  2805. ee.EncodeArrayStart(len(v))
  2806. for _, v2 := range v {
  2807. if cr != nil {
  2808. cr.sendContainerState(containerArrayElem)
  2809. }
  2810. ee.EncodeUint(uint64(v2))
  2811. }
  2812. if cr != nil {
  2813. cr.sendContainerState(containerArrayEnd)
  2814. }
  2815. }
  2816. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
  2817. ee, cr := e.e, e.cr
  2818. if len(v)%2 == 1 {
  2819. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2820. return
  2821. }
  2822. ee.EncodeMapStart(len(v) / 2)
  2823. for j, v2 := range v {
  2824. if cr != nil {
  2825. if j%2 == 0 {
  2826. cr.sendContainerState(containerMapKey)
  2827. } else {
  2828. cr.sendContainerState(containerMapValue)
  2829. }
  2830. }
  2831. ee.EncodeUint(uint64(v2))
  2832. }
  2833. if cr != nil {
  2834. cr.sendContainerState(containerMapEnd)
  2835. }
  2836. }
  2837. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  2838. if f.ti.mbs {
  2839. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  2840. } else {
  2841. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  2842. }
  2843. }
  2844. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  2845. ee, cr := e.e, e.cr
  2846. ee.EncodeArrayStart(len(v))
  2847. for _, v2 := range v {
  2848. if cr != nil {
  2849. cr.sendContainerState(containerArrayElem)
  2850. }
  2851. ee.EncodeUint(uint64(v2))
  2852. }
  2853. if cr != nil {
  2854. cr.sendContainerState(containerArrayEnd)
  2855. }
  2856. }
  2857. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  2858. ee, cr := e.e, e.cr
  2859. if len(v)%2 == 1 {
  2860. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2861. return
  2862. }
  2863. ee.EncodeMapStart(len(v) / 2)
  2864. for j, v2 := range v {
  2865. if cr != nil {
  2866. if j%2 == 0 {
  2867. cr.sendContainerState(containerMapKey)
  2868. } else {
  2869. cr.sendContainerState(containerMapValue)
  2870. }
  2871. }
  2872. ee.EncodeUint(uint64(v2))
  2873. }
  2874. if cr != nil {
  2875. cr.sendContainerState(containerMapEnd)
  2876. }
  2877. }
  2878. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  2879. if f.ti.mbs {
  2880. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  2881. } else {
  2882. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  2883. }
  2884. }
  2885. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  2886. ee, cr := e.e, e.cr
  2887. ee.EncodeArrayStart(len(v))
  2888. for _, v2 := range v {
  2889. if cr != nil {
  2890. cr.sendContainerState(containerArrayElem)
  2891. }
  2892. e.encode(v2)
  2893. }
  2894. if cr != nil {
  2895. cr.sendContainerState(containerArrayEnd)
  2896. }
  2897. }
  2898. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  2899. ee, cr := e.e, e.cr
  2900. if len(v)%2 == 1 {
  2901. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2902. return
  2903. }
  2904. ee.EncodeMapStart(len(v) / 2)
  2905. for j, v2 := range v {
  2906. if cr != nil {
  2907. if j%2 == 0 {
  2908. cr.sendContainerState(containerMapKey)
  2909. } else {
  2910. cr.sendContainerState(containerMapValue)
  2911. }
  2912. }
  2913. e.encode(v2)
  2914. }
  2915. if cr != nil {
  2916. cr.sendContainerState(containerMapEnd)
  2917. }
  2918. }
  2919. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  2920. if f.ti.mbs {
  2921. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  2922. } else {
  2923. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  2924. }
  2925. }
  2926. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  2927. ee, cr := e.e, e.cr
  2928. ee.EncodeArrayStart(len(v))
  2929. for _, v2 := range v {
  2930. if cr != nil {
  2931. cr.sendContainerState(containerArrayElem)
  2932. }
  2933. ee.EncodeInt(int64(v2))
  2934. }
  2935. if cr != nil {
  2936. cr.sendContainerState(containerArrayEnd)
  2937. }
  2938. }
  2939. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  2940. ee, cr := e.e, e.cr
  2941. if len(v)%2 == 1 {
  2942. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2943. return
  2944. }
  2945. ee.EncodeMapStart(len(v) / 2)
  2946. for j, v2 := range v {
  2947. if cr != nil {
  2948. if j%2 == 0 {
  2949. cr.sendContainerState(containerMapKey)
  2950. } else {
  2951. cr.sendContainerState(containerMapValue)
  2952. }
  2953. }
  2954. ee.EncodeInt(int64(v2))
  2955. }
  2956. if cr != nil {
  2957. cr.sendContainerState(containerMapEnd)
  2958. }
  2959. }
  2960. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  2961. if f.ti.mbs {
  2962. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  2963. } else {
  2964. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  2965. }
  2966. }
  2967. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  2968. ee, cr := e.e, e.cr
  2969. ee.EncodeArrayStart(len(v))
  2970. for _, v2 := range v {
  2971. if cr != nil {
  2972. cr.sendContainerState(containerArrayElem)
  2973. }
  2974. ee.EncodeInt(int64(v2))
  2975. }
  2976. if cr != nil {
  2977. cr.sendContainerState(containerArrayEnd)
  2978. }
  2979. }
  2980. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  2981. ee, cr := e.e, e.cr
  2982. if len(v)%2 == 1 {
  2983. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2984. return
  2985. }
  2986. ee.EncodeMapStart(len(v) / 2)
  2987. for j, v2 := range v {
  2988. if cr != nil {
  2989. if j%2 == 0 {
  2990. cr.sendContainerState(containerMapKey)
  2991. } else {
  2992. cr.sendContainerState(containerMapValue)
  2993. }
  2994. }
  2995. ee.EncodeInt(int64(v2))
  2996. }
  2997. if cr != nil {
  2998. cr.sendContainerState(containerMapEnd)
  2999. }
  3000. }
  3001. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  3002. if f.ti.mbs {
  3003. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  3004. } else {
  3005. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  3006. }
  3007. }
  3008. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  3009. ee, cr := e.e, e.cr
  3010. ee.EncodeArrayStart(len(v))
  3011. for _, v2 := range v {
  3012. if cr != nil {
  3013. cr.sendContainerState(containerArrayElem)
  3014. }
  3015. ee.EncodeInt(int64(v2))
  3016. }
  3017. if cr != nil {
  3018. cr.sendContainerState(containerArrayEnd)
  3019. }
  3020. }
  3021. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
  3022. ee, cr := e.e, e.cr
  3023. if len(v)%2 == 1 {
  3024. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3025. return
  3026. }
  3027. ee.EncodeMapStart(len(v) / 2)
  3028. for j, v2 := range v {
  3029. if cr != nil {
  3030. if j%2 == 0 {
  3031. cr.sendContainerState(containerMapKey)
  3032. } else {
  3033. cr.sendContainerState(containerMapValue)
  3034. }
  3035. }
  3036. ee.EncodeInt(int64(v2))
  3037. }
  3038. if cr != nil {
  3039. cr.sendContainerState(containerMapEnd)
  3040. }
  3041. }
  3042. func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  3043. if f.ti.mbs {
  3044. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  3045. } else {
  3046. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  3047. }
  3048. }
  3049. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  3050. ee, cr := e.e, e.cr
  3051. ee.EncodeArrayStart(len(v))
  3052. for _, v2 := range v {
  3053. if cr != nil {
  3054. cr.sendContainerState(containerArrayElem)
  3055. }
  3056. ee.EncodeInt(int64(v2))
  3057. }
  3058. if cr != nil {
  3059. cr.sendContainerState(containerArrayEnd)
  3060. }
  3061. }
  3062. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  3063. ee, cr := e.e, e.cr
  3064. if len(v)%2 == 1 {
  3065. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3066. return
  3067. }
  3068. ee.EncodeMapStart(len(v) / 2)
  3069. for j, v2 := range v {
  3070. if cr != nil {
  3071. if j%2 == 0 {
  3072. cr.sendContainerState(containerMapKey)
  3073. } else {
  3074. cr.sendContainerState(containerMapValue)
  3075. }
  3076. }
  3077. ee.EncodeInt(int64(v2))
  3078. }
  3079. if cr != nil {
  3080. cr.sendContainerState(containerMapEnd)
  3081. }
  3082. }
  3083. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  3084. if f.ti.mbs {
  3085. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  3086. } else {
  3087. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  3088. }
  3089. }
  3090. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  3091. ee, cr := e.e, e.cr
  3092. ee.EncodeArrayStart(len(v))
  3093. for _, v2 := range v {
  3094. if cr != nil {
  3095. cr.sendContainerState(containerArrayElem)
  3096. }
  3097. ee.EncodeInt(int64(v2))
  3098. }
  3099. if cr != nil {
  3100. cr.sendContainerState(containerArrayEnd)
  3101. }
  3102. }
  3103. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  3104. ee, cr := e.e, e.cr
  3105. if len(v)%2 == 1 {
  3106. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3107. return
  3108. }
  3109. ee.EncodeMapStart(len(v) / 2)
  3110. for j, v2 := range v {
  3111. if cr != nil {
  3112. if j%2 == 0 {
  3113. cr.sendContainerState(containerMapKey)
  3114. } else {
  3115. cr.sendContainerState(containerMapValue)
  3116. }
  3117. }
  3118. ee.EncodeInt(int64(v2))
  3119. }
  3120. if cr != nil {
  3121. cr.sendContainerState(containerMapEnd)
  3122. }
  3123. }
  3124. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  3125. if f.ti.mbs {
  3126. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  3127. } else {
  3128. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  3129. }
  3130. }
  3131. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  3132. ee, cr := e.e, e.cr
  3133. ee.EncodeArrayStart(len(v))
  3134. for _, v2 := range v {
  3135. if cr != nil {
  3136. cr.sendContainerState(containerArrayElem)
  3137. }
  3138. ee.EncodeBool(v2)
  3139. }
  3140. if cr != nil {
  3141. cr.sendContainerState(containerArrayEnd)
  3142. }
  3143. }
  3144. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  3145. ee, cr := e.e, e.cr
  3146. if len(v)%2 == 1 {
  3147. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  3148. return
  3149. }
  3150. ee.EncodeMapStart(len(v) / 2)
  3151. for j, v2 := range v {
  3152. if cr != nil {
  3153. if j%2 == 0 {
  3154. cr.sendContainerState(containerMapKey)
  3155. } else {
  3156. cr.sendContainerState(containerMapValue)
  3157. }
  3158. }
  3159. ee.EncodeBool(v2)
  3160. }
  3161. if cr != nil {
  3162. cr.sendContainerState(containerMapEnd)
  3163. }
  3164. }
  3165. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  3166. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  3167. }
  3168. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  3169. ee, cr := e.e, e.cr
  3170. ee.EncodeMapStart(len(v))
  3171. if e.h.Canonical {
  3172. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3173. e2 := NewEncoderBytes(&mksv, e.hh)
  3174. v2 := make([]bytesI, len(v))
  3175. var i, l int
  3176. var vp *bytesI
  3177. for k2, _ := range v {
  3178. l = len(mksv)
  3179. e2.MustEncode(k2)
  3180. vp = &v2[i]
  3181. vp.v = mksv[l:]
  3182. vp.i = k2
  3183. i++
  3184. }
  3185. sort.Sort(bytesISlice(v2))
  3186. for j := range v2 {
  3187. if cr != nil {
  3188. cr.sendContainerState(containerMapKey)
  3189. }
  3190. e.asis(v2[j].v)
  3191. if cr != nil {
  3192. cr.sendContainerState(containerMapValue)
  3193. }
  3194. e.encode(v[v2[j].i])
  3195. }
  3196. } else {
  3197. for k2, v2 := range v {
  3198. if cr != nil {
  3199. cr.sendContainerState(containerMapKey)
  3200. }
  3201. e.encode(k2)
  3202. if cr != nil {
  3203. cr.sendContainerState(containerMapValue)
  3204. }
  3205. e.encode(v2)
  3206. }
  3207. }
  3208. if cr != nil {
  3209. cr.sendContainerState(containerMapEnd)
  3210. }
  3211. }
  3212. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  3213. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  3214. }
  3215. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  3216. ee, cr := e.e, e.cr
  3217. ee.EncodeMapStart(len(v))
  3218. if e.h.Canonical {
  3219. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3220. e2 := NewEncoderBytes(&mksv, e.hh)
  3221. v2 := make([]bytesI, len(v))
  3222. var i, l int
  3223. var vp *bytesI
  3224. for k2, _ := range v {
  3225. l = len(mksv)
  3226. e2.MustEncode(k2)
  3227. vp = &v2[i]
  3228. vp.v = mksv[l:]
  3229. vp.i = k2
  3230. i++
  3231. }
  3232. sort.Sort(bytesISlice(v2))
  3233. for j := range v2 {
  3234. if cr != nil {
  3235. cr.sendContainerState(containerMapKey)
  3236. }
  3237. e.asis(v2[j].v)
  3238. if cr != nil {
  3239. cr.sendContainerState(containerMapValue)
  3240. }
  3241. e.encode(v[v2[j].i])
  3242. }
  3243. } else {
  3244. for k2, v2 := range v {
  3245. if cr != nil {
  3246. cr.sendContainerState(containerMapKey)
  3247. }
  3248. e.encode(k2)
  3249. if cr != nil {
  3250. cr.sendContainerState(containerMapValue)
  3251. }
  3252. ee.EncodeString(c_UTF8, v2)
  3253. }
  3254. }
  3255. if cr != nil {
  3256. cr.sendContainerState(containerMapEnd)
  3257. }
  3258. }
  3259. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  3260. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  3261. }
  3262. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  3263. ee, cr := e.e, e.cr
  3264. ee.EncodeMapStart(len(v))
  3265. if e.h.Canonical {
  3266. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3267. e2 := NewEncoderBytes(&mksv, e.hh)
  3268. v2 := make([]bytesI, len(v))
  3269. var i, l int
  3270. var vp *bytesI
  3271. for k2, _ := range v {
  3272. l = len(mksv)
  3273. e2.MustEncode(k2)
  3274. vp = &v2[i]
  3275. vp.v = mksv[l:]
  3276. vp.i = k2
  3277. i++
  3278. }
  3279. sort.Sort(bytesISlice(v2))
  3280. for j := range v2 {
  3281. if cr != nil {
  3282. cr.sendContainerState(containerMapKey)
  3283. }
  3284. e.asis(v2[j].v)
  3285. if cr != nil {
  3286. cr.sendContainerState(containerMapValue)
  3287. }
  3288. e.encode(v[v2[j].i])
  3289. }
  3290. } else {
  3291. for k2, v2 := range v {
  3292. if cr != nil {
  3293. cr.sendContainerState(containerMapKey)
  3294. }
  3295. e.encode(k2)
  3296. if cr != nil {
  3297. cr.sendContainerState(containerMapValue)
  3298. }
  3299. ee.EncodeUint(uint64(v2))
  3300. }
  3301. }
  3302. if cr != nil {
  3303. cr.sendContainerState(containerMapEnd)
  3304. }
  3305. }
  3306. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  3307. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  3308. }
  3309. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  3310. ee, cr := e.e, e.cr
  3311. ee.EncodeMapStart(len(v))
  3312. if e.h.Canonical {
  3313. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3314. e2 := NewEncoderBytes(&mksv, e.hh)
  3315. v2 := make([]bytesI, len(v))
  3316. var i, l int
  3317. var vp *bytesI
  3318. for k2, _ := range v {
  3319. l = len(mksv)
  3320. e2.MustEncode(k2)
  3321. vp = &v2[i]
  3322. vp.v = mksv[l:]
  3323. vp.i = k2
  3324. i++
  3325. }
  3326. sort.Sort(bytesISlice(v2))
  3327. for j := range v2 {
  3328. if cr != nil {
  3329. cr.sendContainerState(containerMapKey)
  3330. }
  3331. e.asis(v2[j].v)
  3332. if cr != nil {
  3333. cr.sendContainerState(containerMapValue)
  3334. }
  3335. e.encode(v[v2[j].i])
  3336. }
  3337. } else {
  3338. for k2, v2 := range v {
  3339. if cr != nil {
  3340. cr.sendContainerState(containerMapKey)
  3341. }
  3342. e.encode(k2)
  3343. if cr != nil {
  3344. cr.sendContainerState(containerMapValue)
  3345. }
  3346. ee.EncodeUint(uint64(v2))
  3347. }
  3348. }
  3349. if cr != nil {
  3350. cr.sendContainerState(containerMapEnd)
  3351. }
  3352. }
  3353. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  3354. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  3355. }
  3356. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  3357. ee, cr := e.e, e.cr
  3358. ee.EncodeMapStart(len(v))
  3359. if e.h.Canonical {
  3360. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3361. e2 := NewEncoderBytes(&mksv, e.hh)
  3362. v2 := make([]bytesI, len(v))
  3363. var i, l int
  3364. var vp *bytesI
  3365. for k2, _ := range v {
  3366. l = len(mksv)
  3367. e2.MustEncode(k2)
  3368. vp = &v2[i]
  3369. vp.v = mksv[l:]
  3370. vp.i = k2
  3371. i++
  3372. }
  3373. sort.Sort(bytesISlice(v2))
  3374. for j := range v2 {
  3375. if cr != nil {
  3376. cr.sendContainerState(containerMapKey)
  3377. }
  3378. e.asis(v2[j].v)
  3379. if cr != nil {
  3380. cr.sendContainerState(containerMapValue)
  3381. }
  3382. e.encode(v[v2[j].i])
  3383. }
  3384. } else {
  3385. for k2, v2 := range v {
  3386. if cr != nil {
  3387. cr.sendContainerState(containerMapKey)
  3388. }
  3389. e.encode(k2)
  3390. if cr != nil {
  3391. cr.sendContainerState(containerMapValue)
  3392. }
  3393. ee.EncodeUint(uint64(v2))
  3394. }
  3395. }
  3396. if cr != nil {
  3397. cr.sendContainerState(containerMapEnd)
  3398. }
  3399. }
  3400. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  3401. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  3402. }
  3403. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  3404. ee, cr := e.e, e.cr
  3405. ee.EncodeMapStart(len(v))
  3406. if e.h.Canonical {
  3407. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3408. e2 := NewEncoderBytes(&mksv, e.hh)
  3409. v2 := make([]bytesI, len(v))
  3410. var i, l int
  3411. var vp *bytesI
  3412. for k2, _ := range v {
  3413. l = len(mksv)
  3414. e2.MustEncode(k2)
  3415. vp = &v2[i]
  3416. vp.v = mksv[l:]
  3417. vp.i = k2
  3418. i++
  3419. }
  3420. sort.Sort(bytesISlice(v2))
  3421. for j := range v2 {
  3422. if cr != nil {
  3423. cr.sendContainerState(containerMapKey)
  3424. }
  3425. e.asis(v2[j].v)
  3426. if cr != nil {
  3427. cr.sendContainerState(containerMapValue)
  3428. }
  3429. e.encode(v[v2[j].i])
  3430. }
  3431. } else {
  3432. for k2, v2 := range v {
  3433. if cr != nil {
  3434. cr.sendContainerState(containerMapKey)
  3435. }
  3436. e.encode(k2)
  3437. if cr != nil {
  3438. cr.sendContainerState(containerMapValue)
  3439. }
  3440. ee.EncodeUint(uint64(v2))
  3441. }
  3442. }
  3443. if cr != nil {
  3444. cr.sendContainerState(containerMapEnd)
  3445. }
  3446. }
  3447. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  3448. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  3449. }
  3450. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  3451. ee, cr := e.e, e.cr
  3452. ee.EncodeMapStart(len(v))
  3453. if e.h.Canonical {
  3454. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3455. e2 := NewEncoderBytes(&mksv, e.hh)
  3456. v2 := make([]bytesI, len(v))
  3457. var i, l int
  3458. var vp *bytesI
  3459. for k2, _ := range v {
  3460. l = len(mksv)
  3461. e2.MustEncode(k2)
  3462. vp = &v2[i]
  3463. vp.v = mksv[l:]
  3464. vp.i = k2
  3465. i++
  3466. }
  3467. sort.Sort(bytesISlice(v2))
  3468. for j := range v2 {
  3469. if cr != nil {
  3470. cr.sendContainerState(containerMapKey)
  3471. }
  3472. e.asis(v2[j].v)
  3473. if cr != nil {
  3474. cr.sendContainerState(containerMapValue)
  3475. }
  3476. e.encode(v[v2[j].i])
  3477. }
  3478. } else {
  3479. for k2, v2 := range v {
  3480. if cr != nil {
  3481. cr.sendContainerState(containerMapKey)
  3482. }
  3483. e.encode(k2)
  3484. if cr != nil {
  3485. cr.sendContainerState(containerMapValue)
  3486. }
  3487. ee.EncodeUint(uint64(v2))
  3488. }
  3489. }
  3490. if cr != nil {
  3491. cr.sendContainerState(containerMapEnd)
  3492. }
  3493. }
  3494. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  3495. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  3496. }
  3497. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  3498. ee, cr := e.e, e.cr
  3499. ee.EncodeMapStart(len(v))
  3500. if e.h.Canonical {
  3501. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3502. e2 := NewEncoderBytes(&mksv, e.hh)
  3503. v2 := make([]bytesI, len(v))
  3504. var i, l int
  3505. var vp *bytesI
  3506. for k2, _ := range v {
  3507. l = len(mksv)
  3508. e2.MustEncode(k2)
  3509. vp = &v2[i]
  3510. vp.v = mksv[l:]
  3511. vp.i = k2
  3512. i++
  3513. }
  3514. sort.Sort(bytesISlice(v2))
  3515. for j := range v2 {
  3516. if cr != nil {
  3517. cr.sendContainerState(containerMapKey)
  3518. }
  3519. e.asis(v2[j].v)
  3520. if cr != nil {
  3521. cr.sendContainerState(containerMapValue)
  3522. }
  3523. e.encode(v[v2[j].i])
  3524. }
  3525. } else {
  3526. for k2, v2 := range v {
  3527. if cr != nil {
  3528. cr.sendContainerState(containerMapKey)
  3529. }
  3530. e.encode(k2)
  3531. if cr != nil {
  3532. cr.sendContainerState(containerMapValue)
  3533. }
  3534. e.encode(v2)
  3535. }
  3536. }
  3537. if cr != nil {
  3538. cr.sendContainerState(containerMapEnd)
  3539. }
  3540. }
  3541. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  3542. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  3543. }
  3544. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  3545. ee, cr := e.e, e.cr
  3546. ee.EncodeMapStart(len(v))
  3547. if e.h.Canonical {
  3548. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3549. e2 := NewEncoderBytes(&mksv, e.hh)
  3550. v2 := make([]bytesI, len(v))
  3551. var i, l int
  3552. var vp *bytesI
  3553. for k2, _ := range v {
  3554. l = len(mksv)
  3555. e2.MustEncode(k2)
  3556. vp = &v2[i]
  3557. vp.v = mksv[l:]
  3558. vp.i = k2
  3559. i++
  3560. }
  3561. sort.Sort(bytesISlice(v2))
  3562. for j := range v2 {
  3563. if cr != nil {
  3564. cr.sendContainerState(containerMapKey)
  3565. }
  3566. e.asis(v2[j].v)
  3567. if cr != nil {
  3568. cr.sendContainerState(containerMapValue)
  3569. }
  3570. e.encode(v[v2[j].i])
  3571. }
  3572. } else {
  3573. for k2, v2 := range v {
  3574. if cr != nil {
  3575. cr.sendContainerState(containerMapKey)
  3576. }
  3577. e.encode(k2)
  3578. if cr != nil {
  3579. cr.sendContainerState(containerMapValue)
  3580. }
  3581. ee.EncodeInt(int64(v2))
  3582. }
  3583. }
  3584. if cr != nil {
  3585. cr.sendContainerState(containerMapEnd)
  3586. }
  3587. }
  3588. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  3589. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  3590. }
  3591. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
  3592. ee, cr := e.e, e.cr
  3593. ee.EncodeMapStart(len(v))
  3594. if e.h.Canonical {
  3595. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3596. e2 := NewEncoderBytes(&mksv, e.hh)
  3597. v2 := make([]bytesI, len(v))
  3598. var i, l int
  3599. var vp *bytesI
  3600. for k2, _ := range v {
  3601. l = len(mksv)
  3602. e2.MustEncode(k2)
  3603. vp = &v2[i]
  3604. vp.v = mksv[l:]
  3605. vp.i = k2
  3606. i++
  3607. }
  3608. sort.Sort(bytesISlice(v2))
  3609. for j := range v2 {
  3610. if cr != nil {
  3611. cr.sendContainerState(containerMapKey)
  3612. }
  3613. e.asis(v2[j].v)
  3614. if cr != nil {
  3615. cr.sendContainerState(containerMapValue)
  3616. }
  3617. e.encode(v[v2[j].i])
  3618. }
  3619. } else {
  3620. for k2, v2 := range v {
  3621. if cr != nil {
  3622. cr.sendContainerState(containerMapKey)
  3623. }
  3624. e.encode(k2)
  3625. if cr != nil {
  3626. cr.sendContainerState(containerMapValue)
  3627. }
  3628. ee.EncodeInt(int64(v2))
  3629. }
  3630. }
  3631. if cr != nil {
  3632. cr.sendContainerState(containerMapEnd)
  3633. }
  3634. }
  3635. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  3636. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  3637. }
  3638. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  3639. ee, cr := e.e, e.cr
  3640. ee.EncodeMapStart(len(v))
  3641. if e.h.Canonical {
  3642. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3643. e2 := NewEncoderBytes(&mksv, e.hh)
  3644. v2 := make([]bytesI, len(v))
  3645. var i, l int
  3646. var vp *bytesI
  3647. for k2, _ := range v {
  3648. l = len(mksv)
  3649. e2.MustEncode(k2)
  3650. vp = &v2[i]
  3651. vp.v = mksv[l:]
  3652. vp.i = k2
  3653. i++
  3654. }
  3655. sort.Sort(bytesISlice(v2))
  3656. for j := range v2 {
  3657. if cr != nil {
  3658. cr.sendContainerState(containerMapKey)
  3659. }
  3660. e.asis(v2[j].v)
  3661. if cr != nil {
  3662. cr.sendContainerState(containerMapValue)
  3663. }
  3664. e.encode(v[v2[j].i])
  3665. }
  3666. } else {
  3667. for k2, v2 := range v {
  3668. if cr != nil {
  3669. cr.sendContainerState(containerMapKey)
  3670. }
  3671. e.encode(k2)
  3672. if cr != nil {
  3673. cr.sendContainerState(containerMapValue)
  3674. }
  3675. ee.EncodeInt(int64(v2))
  3676. }
  3677. }
  3678. if cr != nil {
  3679. cr.sendContainerState(containerMapEnd)
  3680. }
  3681. }
  3682. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  3683. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  3684. }
  3685. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  3686. ee, cr := e.e, e.cr
  3687. ee.EncodeMapStart(len(v))
  3688. if e.h.Canonical {
  3689. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3690. e2 := NewEncoderBytes(&mksv, e.hh)
  3691. v2 := make([]bytesI, len(v))
  3692. var i, l int
  3693. var vp *bytesI
  3694. for k2, _ := range v {
  3695. l = len(mksv)
  3696. e2.MustEncode(k2)
  3697. vp = &v2[i]
  3698. vp.v = mksv[l:]
  3699. vp.i = k2
  3700. i++
  3701. }
  3702. sort.Sort(bytesISlice(v2))
  3703. for j := range v2 {
  3704. if cr != nil {
  3705. cr.sendContainerState(containerMapKey)
  3706. }
  3707. e.asis(v2[j].v)
  3708. if cr != nil {
  3709. cr.sendContainerState(containerMapValue)
  3710. }
  3711. e.encode(v[v2[j].i])
  3712. }
  3713. } else {
  3714. for k2, v2 := range v {
  3715. if cr != nil {
  3716. cr.sendContainerState(containerMapKey)
  3717. }
  3718. e.encode(k2)
  3719. if cr != nil {
  3720. cr.sendContainerState(containerMapValue)
  3721. }
  3722. ee.EncodeInt(int64(v2))
  3723. }
  3724. }
  3725. if cr != nil {
  3726. cr.sendContainerState(containerMapEnd)
  3727. }
  3728. }
  3729. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  3730. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  3731. }
  3732. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  3733. ee, cr := e.e, e.cr
  3734. ee.EncodeMapStart(len(v))
  3735. if e.h.Canonical {
  3736. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3737. e2 := NewEncoderBytes(&mksv, e.hh)
  3738. v2 := make([]bytesI, len(v))
  3739. var i, l int
  3740. var vp *bytesI
  3741. for k2, _ := range v {
  3742. l = len(mksv)
  3743. e2.MustEncode(k2)
  3744. vp = &v2[i]
  3745. vp.v = mksv[l:]
  3746. vp.i = k2
  3747. i++
  3748. }
  3749. sort.Sort(bytesISlice(v2))
  3750. for j := range v2 {
  3751. if cr != nil {
  3752. cr.sendContainerState(containerMapKey)
  3753. }
  3754. e.asis(v2[j].v)
  3755. if cr != nil {
  3756. cr.sendContainerState(containerMapValue)
  3757. }
  3758. e.encode(v[v2[j].i])
  3759. }
  3760. } else {
  3761. for k2, v2 := range v {
  3762. if cr != nil {
  3763. cr.sendContainerState(containerMapKey)
  3764. }
  3765. e.encode(k2)
  3766. if cr != nil {
  3767. cr.sendContainerState(containerMapValue)
  3768. }
  3769. ee.EncodeInt(int64(v2))
  3770. }
  3771. }
  3772. if cr != nil {
  3773. cr.sendContainerState(containerMapEnd)
  3774. }
  3775. }
  3776. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  3777. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  3778. }
  3779. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  3780. ee, cr := e.e, e.cr
  3781. ee.EncodeMapStart(len(v))
  3782. if e.h.Canonical {
  3783. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3784. e2 := NewEncoderBytes(&mksv, e.hh)
  3785. v2 := make([]bytesI, len(v))
  3786. var i, l int
  3787. var vp *bytesI
  3788. for k2, _ := range v {
  3789. l = len(mksv)
  3790. e2.MustEncode(k2)
  3791. vp = &v2[i]
  3792. vp.v = mksv[l:]
  3793. vp.i = k2
  3794. i++
  3795. }
  3796. sort.Sort(bytesISlice(v2))
  3797. for j := range v2 {
  3798. if cr != nil {
  3799. cr.sendContainerState(containerMapKey)
  3800. }
  3801. e.asis(v2[j].v)
  3802. if cr != nil {
  3803. cr.sendContainerState(containerMapValue)
  3804. }
  3805. e.encode(v[v2[j].i])
  3806. }
  3807. } else {
  3808. for k2, v2 := range v {
  3809. if cr != nil {
  3810. cr.sendContainerState(containerMapKey)
  3811. }
  3812. e.encode(k2)
  3813. if cr != nil {
  3814. cr.sendContainerState(containerMapValue)
  3815. }
  3816. ee.EncodeFloat32(v2)
  3817. }
  3818. }
  3819. if cr != nil {
  3820. cr.sendContainerState(containerMapEnd)
  3821. }
  3822. }
  3823. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  3824. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  3825. }
  3826. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  3827. ee, cr := e.e, e.cr
  3828. ee.EncodeMapStart(len(v))
  3829. if e.h.Canonical {
  3830. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3831. e2 := NewEncoderBytes(&mksv, e.hh)
  3832. v2 := make([]bytesI, len(v))
  3833. var i, l int
  3834. var vp *bytesI
  3835. for k2, _ := range v {
  3836. l = len(mksv)
  3837. e2.MustEncode(k2)
  3838. vp = &v2[i]
  3839. vp.v = mksv[l:]
  3840. vp.i = k2
  3841. i++
  3842. }
  3843. sort.Sort(bytesISlice(v2))
  3844. for j := range v2 {
  3845. if cr != nil {
  3846. cr.sendContainerState(containerMapKey)
  3847. }
  3848. e.asis(v2[j].v)
  3849. if cr != nil {
  3850. cr.sendContainerState(containerMapValue)
  3851. }
  3852. e.encode(v[v2[j].i])
  3853. }
  3854. } else {
  3855. for k2, v2 := range v {
  3856. if cr != nil {
  3857. cr.sendContainerState(containerMapKey)
  3858. }
  3859. e.encode(k2)
  3860. if cr != nil {
  3861. cr.sendContainerState(containerMapValue)
  3862. }
  3863. ee.EncodeFloat64(v2)
  3864. }
  3865. }
  3866. if cr != nil {
  3867. cr.sendContainerState(containerMapEnd)
  3868. }
  3869. }
  3870. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  3871. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  3872. }
  3873. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  3874. ee, cr := e.e, e.cr
  3875. ee.EncodeMapStart(len(v))
  3876. if e.h.Canonical {
  3877. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3878. e2 := NewEncoderBytes(&mksv, e.hh)
  3879. v2 := make([]bytesI, len(v))
  3880. var i, l int
  3881. var vp *bytesI
  3882. for k2, _ := range v {
  3883. l = len(mksv)
  3884. e2.MustEncode(k2)
  3885. vp = &v2[i]
  3886. vp.v = mksv[l:]
  3887. vp.i = k2
  3888. i++
  3889. }
  3890. sort.Sort(bytesISlice(v2))
  3891. for j := range v2 {
  3892. if cr != nil {
  3893. cr.sendContainerState(containerMapKey)
  3894. }
  3895. e.asis(v2[j].v)
  3896. if cr != nil {
  3897. cr.sendContainerState(containerMapValue)
  3898. }
  3899. e.encode(v[v2[j].i])
  3900. }
  3901. } else {
  3902. for k2, v2 := range v {
  3903. if cr != nil {
  3904. cr.sendContainerState(containerMapKey)
  3905. }
  3906. e.encode(k2)
  3907. if cr != nil {
  3908. cr.sendContainerState(containerMapValue)
  3909. }
  3910. ee.EncodeBool(v2)
  3911. }
  3912. }
  3913. if cr != nil {
  3914. cr.sendContainerState(containerMapEnd)
  3915. }
  3916. }
  3917. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  3918. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  3919. }
  3920. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  3921. ee, cr := e.e, e.cr
  3922. ee.EncodeMapStart(len(v))
  3923. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3924. if e.h.Canonical {
  3925. v2 := make([]string, len(v))
  3926. var i int
  3927. for k, _ := range v {
  3928. v2[i] = string(k)
  3929. i++
  3930. }
  3931. sort.Sort(stringSlice(v2))
  3932. for _, k2 := range v2 {
  3933. if cr != nil {
  3934. cr.sendContainerState(containerMapKey)
  3935. }
  3936. if asSymbols {
  3937. ee.EncodeSymbol(k2)
  3938. } else {
  3939. ee.EncodeString(c_UTF8, k2)
  3940. }
  3941. if cr != nil {
  3942. cr.sendContainerState(containerMapValue)
  3943. }
  3944. e.encode(v[string(k2)])
  3945. }
  3946. } else {
  3947. for k2, v2 := range v {
  3948. if cr != nil {
  3949. cr.sendContainerState(containerMapKey)
  3950. }
  3951. if asSymbols {
  3952. ee.EncodeSymbol(k2)
  3953. } else {
  3954. ee.EncodeString(c_UTF8, k2)
  3955. }
  3956. if cr != nil {
  3957. cr.sendContainerState(containerMapValue)
  3958. }
  3959. e.encode(v2)
  3960. }
  3961. }
  3962. if cr != nil {
  3963. cr.sendContainerState(containerMapEnd)
  3964. }
  3965. }
  3966. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  3967. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  3968. }
  3969. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  3970. ee, cr := e.e, e.cr
  3971. ee.EncodeMapStart(len(v))
  3972. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3973. if e.h.Canonical {
  3974. v2 := make([]string, len(v))
  3975. var i int
  3976. for k, _ := range v {
  3977. v2[i] = string(k)
  3978. i++
  3979. }
  3980. sort.Sort(stringSlice(v2))
  3981. for _, k2 := range v2 {
  3982. if cr != nil {
  3983. cr.sendContainerState(containerMapKey)
  3984. }
  3985. if asSymbols {
  3986. ee.EncodeSymbol(k2)
  3987. } else {
  3988. ee.EncodeString(c_UTF8, k2)
  3989. }
  3990. if cr != nil {
  3991. cr.sendContainerState(containerMapValue)
  3992. }
  3993. ee.EncodeString(c_UTF8, v[string(k2)])
  3994. }
  3995. } else {
  3996. for k2, v2 := range v {
  3997. if cr != nil {
  3998. cr.sendContainerState(containerMapKey)
  3999. }
  4000. if asSymbols {
  4001. ee.EncodeSymbol(k2)
  4002. } else {
  4003. ee.EncodeString(c_UTF8, k2)
  4004. }
  4005. if cr != nil {
  4006. cr.sendContainerState(containerMapValue)
  4007. }
  4008. ee.EncodeString(c_UTF8, v2)
  4009. }
  4010. }
  4011. if cr != nil {
  4012. cr.sendContainerState(containerMapEnd)
  4013. }
  4014. }
  4015. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  4016. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  4017. }
  4018. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  4019. ee, cr := e.e, e.cr
  4020. ee.EncodeMapStart(len(v))
  4021. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4022. if e.h.Canonical {
  4023. v2 := make([]string, len(v))
  4024. var i int
  4025. for k, _ := range v {
  4026. v2[i] = string(k)
  4027. i++
  4028. }
  4029. sort.Sort(stringSlice(v2))
  4030. for _, k2 := range v2 {
  4031. if cr != nil {
  4032. cr.sendContainerState(containerMapKey)
  4033. }
  4034. if asSymbols {
  4035. ee.EncodeSymbol(k2)
  4036. } else {
  4037. ee.EncodeString(c_UTF8, k2)
  4038. }
  4039. if cr != nil {
  4040. cr.sendContainerState(containerMapValue)
  4041. }
  4042. ee.EncodeUint(uint64(v[string(k2)]))
  4043. }
  4044. } else {
  4045. for k2, v2 := range v {
  4046. if cr != nil {
  4047. cr.sendContainerState(containerMapKey)
  4048. }
  4049. if asSymbols {
  4050. ee.EncodeSymbol(k2)
  4051. } else {
  4052. ee.EncodeString(c_UTF8, k2)
  4053. }
  4054. if cr != nil {
  4055. cr.sendContainerState(containerMapValue)
  4056. }
  4057. ee.EncodeUint(uint64(v2))
  4058. }
  4059. }
  4060. if cr != nil {
  4061. cr.sendContainerState(containerMapEnd)
  4062. }
  4063. }
  4064. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  4065. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  4066. }
  4067. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  4068. ee, cr := e.e, e.cr
  4069. ee.EncodeMapStart(len(v))
  4070. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4071. if e.h.Canonical {
  4072. v2 := make([]string, len(v))
  4073. var i int
  4074. for k, _ := range v {
  4075. v2[i] = string(k)
  4076. i++
  4077. }
  4078. sort.Sort(stringSlice(v2))
  4079. for _, k2 := range v2 {
  4080. if cr != nil {
  4081. cr.sendContainerState(containerMapKey)
  4082. }
  4083. if asSymbols {
  4084. ee.EncodeSymbol(k2)
  4085. } else {
  4086. ee.EncodeString(c_UTF8, k2)
  4087. }
  4088. if cr != nil {
  4089. cr.sendContainerState(containerMapValue)
  4090. }
  4091. ee.EncodeUint(uint64(v[string(k2)]))
  4092. }
  4093. } else {
  4094. for k2, v2 := range v {
  4095. if cr != nil {
  4096. cr.sendContainerState(containerMapKey)
  4097. }
  4098. if asSymbols {
  4099. ee.EncodeSymbol(k2)
  4100. } else {
  4101. ee.EncodeString(c_UTF8, k2)
  4102. }
  4103. if cr != nil {
  4104. cr.sendContainerState(containerMapValue)
  4105. }
  4106. ee.EncodeUint(uint64(v2))
  4107. }
  4108. }
  4109. if cr != nil {
  4110. cr.sendContainerState(containerMapEnd)
  4111. }
  4112. }
  4113. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  4114. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  4115. }
  4116. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  4117. ee, cr := e.e, e.cr
  4118. ee.EncodeMapStart(len(v))
  4119. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4120. if e.h.Canonical {
  4121. v2 := make([]string, len(v))
  4122. var i int
  4123. for k, _ := range v {
  4124. v2[i] = string(k)
  4125. i++
  4126. }
  4127. sort.Sort(stringSlice(v2))
  4128. for _, k2 := range v2 {
  4129. if cr != nil {
  4130. cr.sendContainerState(containerMapKey)
  4131. }
  4132. if asSymbols {
  4133. ee.EncodeSymbol(k2)
  4134. } else {
  4135. ee.EncodeString(c_UTF8, k2)
  4136. }
  4137. if cr != nil {
  4138. cr.sendContainerState(containerMapValue)
  4139. }
  4140. ee.EncodeUint(uint64(v[string(k2)]))
  4141. }
  4142. } else {
  4143. for k2, v2 := range v {
  4144. if cr != nil {
  4145. cr.sendContainerState(containerMapKey)
  4146. }
  4147. if asSymbols {
  4148. ee.EncodeSymbol(k2)
  4149. } else {
  4150. ee.EncodeString(c_UTF8, k2)
  4151. }
  4152. if cr != nil {
  4153. cr.sendContainerState(containerMapValue)
  4154. }
  4155. ee.EncodeUint(uint64(v2))
  4156. }
  4157. }
  4158. if cr != nil {
  4159. cr.sendContainerState(containerMapEnd)
  4160. }
  4161. }
  4162. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  4163. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  4164. }
  4165. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  4166. ee, cr := e.e, e.cr
  4167. ee.EncodeMapStart(len(v))
  4168. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4169. if e.h.Canonical {
  4170. v2 := make([]string, len(v))
  4171. var i int
  4172. for k, _ := range v {
  4173. v2[i] = string(k)
  4174. i++
  4175. }
  4176. sort.Sort(stringSlice(v2))
  4177. for _, k2 := range v2 {
  4178. if cr != nil {
  4179. cr.sendContainerState(containerMapKey)
  4180. }
  4181. if asSymbols {
  4182. ee.EncodeSymbol(k2)
  4183. } else {
  4184. ee.EncodeString(c_UTF8, k2)
  4185. }
  4186. if cr != nil {
  4187. cr.sendContainerState(containerMapValue)
  4188. }
  4189. ee.EncodeUint(uint64(v[string(k2)]))
  4190. }
  4191. } else {
  4192. for k2, v2 := range v {
  4193. if cr != nil {
  4194. cr.sendContainerState(containerMapKey)
  4195. }
  4196. if asSymbols {
  4197. ee.EncodeSymbol(k2)
  4198. } else {
  4199. ee.EncodeString(c_UTF8, k2)
  4200. }
  4201. if cr != nil {
  4202. cr.sendContainerState(containerMapValue)
  4203. }
  4204. ee.EncodeUint(uint64(v2))
  4205. }
  4206. }
  4207. if cr != nil {
  4208. cr.sendContainerState(containerMapEnd)
  4209. }
  4210. }
  4211. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  4212. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  4213. }
  4214. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
  4215. ee, cr := e.e, e.cr
  4216. ee.EncodeMapStart(len(v))
  4217. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4218. if e.h.Canonical {
  4219. v2 := make([]string, len(v))
  4220. var i int
  4221. for k, _ := range v {
  4222. v2[i] = string(k)
  4223. i++
  4224. }
  4225. sort.Sort(stringSlice(v2))
  4226. for _, k2 := range v2 {
  4227. if cr != nil {
  4228. cr.sendContainerState(containerMapKey)
  4229. }
  4230. if asSymbols {
  4231. ee.EncodeSymbol(k2)
  4232. } else {
  4233. ee.EncodeString(c_UTF8, k2)
  4234. }
  4235. if cr != nil {
  4236. cr.sendContainerState(containerMapValue)
  4237. }
  4238. ee.EncodeUint(uint64(v[string(k2)]))
  4239. }
  4240. } else {
  4241. for k2, v2 := range v {
  4242. if cr != nil {
  4243. cr.sendContainerState(containerMapKey)
  4244. }
  4245. if asSymbols {
  4246. ee.EncodeSymbol(k2)
  4247. } else {
  4248. ee.EncodeString(c_UTF8, k2)
  4249. }
  4250. if cr != nil {
  4251. cr.sendContainerState(containerMapValue)
  4252. }
  4253. ee.EncodeUint(uint64(v2))
  4254. }
  4255. }
  4256. if cr != nil {
  4257. cr.sendContainerState(containerMapEnd)
  4258. }
  4259. }
  4260. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  4261. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  4262. }
  4263. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  4264. ee, cr := e.e, e.cr
  4265. ee.EncodeMapStart(len(v))
  4266. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4267. if e.h.Canonical {
  4268. v2 := make([]string, len(v))
  4269. var i int
  4270. for k, _ := range v {
  4271. v2[i] = string(k)
  4272. i++
  4273. }
  4274. sort.Sort(stringSlice(v2))
  4275. for _, k2 := range v2 {
  4276. if cr != nil {
  4277. cr.sendContainerState(containerMapKey)
  4278. }
  4279. if asSymbols {
  4280. ee.EncodeSymbol(k2)
  4281. } else {
  4282. ee.EncodeString(c_UTF8, k2)
  4283. }
  4284. if cr != nil {
  4285. cr.sendContainerState(containerMapValue)
  4286. }
  4287. e.encode(v[string(k2)])
  4288. }
  4289. } else {
  4290. for k2, v2 := range v {
  4291. if cr != nil {
  4292. cr.sendContainerState(containerMapKey)
  4293. }
  4294. if asSymbols {
  4295. ee.EncodeSymbol(k2)
  4296. } else {
  4297. ee.EncodeString(c_UTF8, k2)
  4298. }
  4299. if cr != nil {
  4300. cr.sendContainerState(containerMapValue)
  4301. }
  4302. e.encode(v2)
  4303. }
  4304. }
  4305. if cr != nil {
  4306. cr.sendContainerState(containerMapEnd)
  4307. }
  4308. }
  4309. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  4310. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  4311. }
  4312. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  4313. ee, cr := e.e, e.cr
  4314. ee.EncodeMapStart(len(v))
  4315. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4316. if e.h.Canonical {
  4317. v2 := make([]string, len(v))
  4318. var i int
  4319. for k, _ := range v {
  4320. v2[i] = string(k)
  4321. i++
  4322. }
  4323. sort.Sort(stringSlice(v2))
  4324. for _, k2 := range v2 {
  4325. if cr != nil {
  4326. cr.sendContainerState(containerMapKey)
  4327. }
  4328. if asSymbols {
  4329. ee.EncodeSymbol(k2)
  4330. } else {
  4331. ee.EncodeString(c_UTF8, k2)
  4332. }
  4333. if cr != nil {
  4334. cr.sendContainerState(containerMapValue)
  4335. }
  4336. ee.EncodeInt(int64(v[string(k2)]))
  4337. }
  4338. } else {
  4339. for k2, v2 := range v {
  4340. if cr != nil {
  4341. cr.sendContainerState(containerMapKey)
  4342. }
  4343. if asSymbols {
  4344. ee.EncodeSymbol(k2)
  4345. } else {
  4346. ee.EncodeString(c_UTF8, k2)
  4347. }
  4348. if cr != nil {
  4349. cr.sendContainerState(containerMapValue)
  4350. }
  4351. ee.EncodeInt(int64(v2))
  4352. }
  4353. }
  4354. if cr != nil {
  4355. cr.sendContainerState(containerMapEnd)
  4356. }
  4357. }
  4358. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  4359. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  4360. }
  4361. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  4362. ee, cr := e.e, e.cr
  4363. ee.EncodeMapStart(len(v))
  4364. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4365. if e.h.Canonical {
  4366. v2 := make([]string, len(v))
  4367. var i int
  4368. for k, _ := range v {
  4369. v2[i] = string(k)
  4370. i++
  4371. }
  4372. sort.Sort(stringSlice(v2))
  4373. for _, k2 := range v2 {
  4374. if cr != nil {
  4375. cr.sendContainerState(containerMapKey)
  4376. }
  4377. if asSymbols {
  4378. ee.EncodeSymbol(k2)
  4379. } else {
  4380. ee.EncodeString(c_UTF8, k2)
  4381. }
  4382. if cr != nil {
  4383. cr.sendContainerState(containerMapValue)
  4384. }
  4385. ee.EncodeInt(int64(v[string(k2)]))
  4386. }
  4387. } else {
  4388. for k2, v2 := range v {
  4389. if cr != nil {
  4390. cr.sendContainerState(containerMapKey)
  4391. }
  4392. if asSymbols {
  4393. ee.EncodeSymbol(k2)
  4394. } else {
  4395. ee.EncodeString(c_UTF8, k2)
  4396. }
  4397. if cr != nil {
  4398. cr.sendContainerState(containerMapValue)
  4399. }
  4400. ee.EncodeInt(int64(v2))
  4401. }
  4402. }
  4403. if cr != nil {
  4404. cr.sendContainerState(containerMapEnd)
  4405. }
  4406. }
  4407. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  4408. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  4409. }
  4410. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  4411. ee, cr := e.e, e.cr
  4412. ee.EncodeMapStart(len(v))
  4413. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4414. if e.h.Canonical {
  4415. v2 := make([]string, len(v))
  4416. var i int
  4417. for k, _ := range v {
  4418. v2[i] = string(k)
  4419. i++
  4420. }
  4421. sort.Sort(stringSlice(v2))
  4422. for _, k2 := range v2 {
  4423. if cr != nil {
  4424. cr.sendContainerState(containerMapKey)
  4425. }
  4426. if asSymbols {
  4427. ee.EncodeSymbol(k2)
  4428. } else {
  4429. ee.EncodeString(c_UTF8, k2)
  4430. }
  4431. if cr != nil {
  4432. cr.sendContainerState(containerMapValue)
  4433. }
  4434. ee.EncodeInt(int64(v[string(k2)]))
  4435. }
  4436. } else {
  4437. for k2, v2 := range v {
  4438. if cr != nil {
  4439. cr.sendContainerState(containerMapKey)
  4440. }
  4441. if asSymbols {
  4442. ee.EncodeSymbol(k2)
  4443. } else {
  4444. ee.EncodeString(c_UTF8, k2)
  4445. }
  4446. if cr != nil {
  4447. cr.sendContainerState(containerMapValue)
  4448. }
  4449. ee.EncodeInt(int64(v2))
  4450. }
  4451. }
  4452. if cr != nil {
  4453. cr.sendContainerState(containerMapEnd)
  4454. }
  4455. }
  4456. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  4457. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  4458. }
  4459. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  4460. ee, cr := e.e, e.cr
  4461. ee.EncodeMapStart(len(v))
  4462. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4463. if e.h.Canonical {
  4464. v2 := make([]string, len(v))
  4465. var i int
  4466. for k, _ := range v {
  4467. v2[i] = string(k)
  4468. i++
  4469. }
  4470. sort.Sort(stringSlice(v2))
  4471. for _, k2 := range v2 {
  4472. if cr != nil {
  4473. cr.sendContainerState(containerMapKey)
  4474. }
  4475. if asSymbols {
  4476. ee.EncodeSymbol(k2)
  4477. } else {
  4478. ee.EncodeString(c_UTF8, k2)
  4479. }
  4480. if cr != nil {
  4481. cr.sendContainerState(containerMapValue)
  4482. }
  4483. ee.EncodeInt(int64(v[string(k2)]))
  4484. }
  4485. } else {
  4486. for k2, v2 := range v {
  4487. if cr != nil {
  4488. cr.sendContainerState(containerMapKey)
  4489. }
  4490. if asSymbols {
  4491. ee.EncodeSymbol(k2)
  4492. } else {
  4493. ee.EncodeString(c_UTF8, k2)
  4494. }
  4495. if cr != nil {
  4496. cr.sendContainerState(containerMapValue)
  4497. }
  4498. ee.EncodeInt(int64(v2))
  4499. }
  4500. }
  4501. if cr != nil {
  4502. cr.sendContainerState(containerMapEnd)
  4503. }
  4504. }
  4505. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  4506. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  4507. }
  4508. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  4509. ee, cr := e.e, e.cr
  4510. ee.EncodeMapStart(len(v))
  4511. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4512. if e.h.Canonical {
  4513. v2 := make([]string, len(v))
  4514. var i int
  4515. for k, _ := range v {
  4516. v2[i] = string(k)
  4517. i++
  4518. }
  4519. sort.Sort(stringSlice(v2))
  4520. for _, k2 := range v2 {
  4521. if cr != nil {
  4522. cr.sendContainerState(containerMapKey)
  4523. }
  4524. if asSymbols {
  4525. ee.EncodeSymbol(k2)
  4526. } else {
  4527. ee.EncodeString(c_UTF8, k2)
  4528. }
  4529. if cr != nil {
  4530. cr.sendContainerState(containerMapValue)
  4531. }
  4532. ee.EncodeInt(int64(v[string(k2)]))
  4533. }
  4534. } else {
  4535. for k2, v2 := range v {
  4536. if cr != nil {
  4537. cr.sendContainerState(containerMapKey)
  4538. }
  4539. if asSymbols {
  4540. ee.EncodeSymbol(k2)
  4541. } else {
  4542. ee.EncodeString(c_UTF8, k2)
  4543. }
  4544. if cr != nil {
  4545. cr.sendContainerState(containerMapValue)
  4546. }
  4547. ee.EncodeInt(int64(v2))
  4548. }
  4549. }
  4550. if cr != nil {
  4551. cr.sendContainerState(containerMapEnd)
  4552. }
  4553. }
  4554. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  4555. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  4556. }
  4557. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  4558. ee, cr := e.e, e.cr
  4559. ee.EncodeMapStart(len(v))
  4560. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4561. if e.h.Canonical {
  4562. v2 := make([]string, len(v))
  4563. var i int
  4564. for k, _ := range v {
  4565. v2[i] = string(k)
  4566. i++
  4567. }
  4568. sort.Sort(stringSlice(v2))
  4569. for _, k2 := range v2 {
  4570. if cr != nil {
  4571. cr.sendContainerState(containerMapKey)
  4572. }
  4573. if asSymbols {
  4574. ee.EncodeSymbol(k2)
  4575. } else {
  4576. ee.EncodeString(c_UTF8, k2)
  4577. }
  4578. if cr != nil {
  4579. cr.sendContainerState(containerMapValue)
  4580. }
  4581. ee.EncodeFloat32(v[string(k2)])
  4582. }
  4583. } else {
  4584. for k2, v2 := range v {
  4585. if cr != nil {
  4586. cr.sendContainerState(containerMapKey)
  4587. }
  4588. if asSymbols {
  4589. ee.EncodeSymbol(k2)
  4590. } else {
  4591. ee.EncodeString(c_UTF8, k2)
  4592. }
  4593. if cr != nil {
  4594. cr.sendContainerState(containerMapValue)
  4595. }
  4596. ee.EncodeFloat32(v2)
  4597. }
  4598. }
  4599. if cr != nil {
  4600. cr.sendContainerState(containerMapEnd)
  4601. }
  4602. }
  4603. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  4604. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  4605. }
  4606. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  4607. ee, cr := e.e, e.cr
  4608. ee.EncodeMapStart(len(v))
  4609. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4610. if e.h.Canonical {
  4611. v2 := make([]string, len(v))
  4612. var i int
  4613. for k, _ := range v {
  4614. v2[i] = string(k)
  4615. i++
  4616. }
  4617. sort.Sort(stringSlice(v2))
  4618. for _, k2 := range v2 {
  4619. if cr != nil {
  4620. cr.sendContainerState(containerMapKey)
  4621. }
  4622. if asSymbols {
  4623. ee.EncodeSymbol(k2)
  4624. } else {
  4625. ee.EncodeString(c_UTF8, k2)
  4626. }
  4627. if cr != nil {
  4628. cr.sendContainerState(containerMapValue)
  4629. }
  4630. ee.EncodeFloat64(v[string(k2)])
  4631. }
  4632. } else {
  4633. for k2, v2 := range v {
  4634. if cr != nil {
  4635. cr.sendContainerState(containerMapKey)
  4636. }
  4637. if asSymbols {
  4638. ee.EncodeSymbol(k2)
  4639. } else {
  4640. ee.EncodeString(c_UTF8, k2)
  4641. }
  4642. if cr != nil {
  4643. cr.sendContainerState(containerMapValue)
  4644. }
  4645. ee.EncodeFloat64(v2)
  4646. }
  4647. }
  4648. if cr != nil {
  4649. cr.sendContainerState(containerMapEnd)
  4650. }
  4651. }
  4652. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  4653. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  4654. }
  4655. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  4656. ee, cr := e.e, e.cr
  4657. ee.EncodeMapStart(len(v))
  4658. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  4659. if e.h.Canonical {
  4660. v2 := make([]string, len(v))
  4661. var i int
  4662. for k, _ := range v {
  4663. v2[i] = string(k)
  4664. i++
  4665. }
  4666. sort.Sort(stringSlice(v2))
  4667. for _, k2 := range v2 {
  4668. if cr != nil {
  4669. cr.sendContainerState(containerMapKey)
  4670. }
  4671. if asSymbols {
  4672. ee.EncodeSymbol(k2)
  4673. } else {
  4674. ee.EncodeString(c_UTF8, k2)
  4675. }
  4676. if cr != nil {
  4677. cr.sendContainerState(containerMapValue)
  4678. }
  4679. ee.EncodeBool(v[string(k2)])
  4680. }
  4681. } else {
  4682. for k2, v2 := range v {
  4683. if cr != nil {
  4684. cr.sendContainerState(containerMapKey)
  4685. }
  4686. if asSymbols {
  4687. ee.EncodeSymbol(k2)
  4688. } else {
  4689. ee.EncodeString(c_UTF8, k2)
  4690. }
  4691. if cr != nil {
  4692. cr.sendContainerState(containerMapValue)
  4693. }
  4694. ee.EncodeBool(v2)
  4695. }
  4696. }
  4697. if cr != nil {
  4698. cr.sendContainerState(containerMapEnd)
  4699. }
  4700. }
  4701. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  4702. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  4703. }
  4704. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  4705. ee, cr := e.e, e.cr
  4706. ee.EncodeMapStart(len(v))
  4707. if e.h.Canonical {
  4708. v2 := make([]float64, len(v))
  4709. var i int
  4710. for k, _ := range v {
  4711. v2[i] = float64(k)
  4712. i++
  4713. }
  4714. sort.Sort(floatSlice(v2))
  4715. for _, k2 := range v2 {
  4716. if cr != nil {
  4717. cr.sendContainerState(containerMapKey)
  4718. }
  4719. ee.EncodeFloat32(float32(k2))
  4720. if cr != nil {
  4721. cr.sendContainerState(containerMapValue)
  4722. }
  4723. e.encode(v[float32(k2)])
  4724. }
  4725. } else {
  4726. for k2, v2 := range v {
  4727. if cr != nil {
  4728. cr.sendContainerState(containerMapKey)
  4729. }
  4730. ee.EncodeFloat32(k2)
  4731. if cr != nil {
  4732. cr.sendContainerState(containerMapValue)
  4733. }
  4734. e.encode(v2)
  4735. }
  4736. }
  4737. if cr != nil {
  4738. cr.sendContainerState(containerMapEnd)
  4739. }
  4740. }
  4741. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  4742. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  4743. }
  4744. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  4745. ee, cr := e.e, e.cr
  4746. ee.EncodeMapStart(len(v))
  4747. if e.h.Canonical {
  4748. v2 := make([]float64, len(v))
  4749. var i int
  4750. for k, _ := range v {
  4751. v2[i] = float64(k)
  4752. i++
  4753. }
  4754. sort.Sort(floatSlice(v2))
  4755. for _, k2 := range v2 {
  4756. if cr != nil {
  4757. cr.sendContainerState(containerMapKey)
  4758. }
  4759. ee.EncodeFloat32(float32(k2))
  4760. if cr != nil {
  4761. cr.sendContainerState(containerMapValue)
  4762. }
  4763. ee.EncodeString(c_UTF8, v[float32(k2)])
  4764. }
  4765. } else {
  4766. for k2, v2 := range v {
  4767. if cr != nil {
  4768. cr.sendContainerState(containerMapKey)
  4769. }
  4770. ee.EncodeFloat32(k2)
  4771. if cr != nil {
  4772. cr.sendContainerState(containerMapValue)
  4773. }
  4774. ee.EncodeString(c_UTF8, v2)
  4775. }
  4776. }
  4777. if cr != nil {
  4778. cr.sendContainerState(containerMapEnd)
  4779. }
  4780. }
  4781. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  4782. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  4783. }
  4784. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  4785. ee, cr := e.e, e.cr
  4786. ee.EncodeMapStart(len(v))
  4787. if e.h.Canonical {
  4788. v2 := make([]float64, len(v))
  4789. var i int
  4790. for k, _ := range v {
  4791. v2[i] = float64(k)
  4792. i++
  4793. }
  4794. sort.Sort(floatSlice(v2))
  4795. for _, k2 := range v2 {
  4796. if cr != nil {
  4797. cr.sendContainerState(containerMapKey)
  4798. }
  4799. ee.EncodeFloat32(float32(k2))
  4800. if cr != nil {
  4801. cr.sendContainerState(containerMapValue)
  4802. }
  4803. ee.EncodeUint(uint64(v[float32(k2)]))
  4804. }
  4805. } else {
  4806. for k2, v2 := range v {
  4807. if cr != nil {
  4808. cr.sendContainerState(containerMapKey)
  4809. }
  4810. ee.EncodeFloat32(k2)
  4811. if cr != nil {
  4812. cr.sendContainerState(containerMapValue)
  4813. }
  4814. ee.EncodeUint(uint64(v2))
  4815. }
  4816. }
  4817. if cr != nil {
  4818. cr.sendContainerState(containerMapEnd)
  4819. }
  4820. }
  4821. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  4822. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  4823. }
  4824. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  4825. ee, cr := e.e, e.cr
  4826. ee.EncodeMapStart(len(v))
  4827. if e.h.Canonical {
  4828. v2 := make([]float64, len(v))
  4829. var i int
  4830. for k, _ := range v {
  4831. v2[i] = float64(k)
  4832. i++
  4833. }
  4834. sort.Sort(floatSlice(v2))
  4835. for _, k2 := range v2 {
  4836. if cr != nil {
  4837. cr.sendContainerState(containerMapKey)
  4838. }
  4839. ee.EncodeFloat32(float32(k2))
  4840. if cr != nil {
  4841. cr.sendContainerState(containerMapValue)
  4842. }
  4843. ee.EncodeUint(uint64(v[float32(k2)]))
  4844. }
  4845. } else {
  4846. for k2, v2 := range v {
  4847. if cr != nil {
  4848. cr.sendContainerState(containerMapKey)
  4849. }
  4850. ee.EncodeFloat32(k2)
  4851. if cr != nil {
  4852. cr.sendContainerState(containerMapValue)
  4853. }
  4854. ee.EncodeUint(uint64(v2))
  4855. }
  4856. }
  4857. if cr != nil {
  4858. cr.sendContainerState(containerMapEnd)
  4859. }
  4860. }
  4861. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  4862. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  4863. }
  4864. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  4865. ee, cr := e.e, e.cr
  4866. ee.EncodeMapStart(len(v))
  4867. if e.h.Canonical {
  4868. v2 := make([]float64, len(v))
  4869. var i int
  4870. for k, _ := range v {
  4871. v2[i] = float64(k)
  4872. i++
  4873. }
  4874. sort.Sort(floatSlice(v2))
  4875. for _, k2 := range v2 {
  4876. if cr != nil {
  4877. cr.sendContainerState(containerMapKey)
  4878. }
  4879. ee.EncodeFloat32(float32(k2))
  4880. if cr != nil {
  4881. cr.sendContainerState(containerMapValue)
  4882. }
  4883. ee.EncodeUint(uint64(v[float32(k2)]))
  4884. }
  4885. } else {
  4886. for k2, v2 := range v {
  4887. if cr != nil {
  4888. cr.sendContainerState(containerMapKey)
  4889. }
  4890. ee.EncodeFloat32(k2)
  4891. if cr != nil {
  4892. cr.sendContainerState(containerMapValue)
  4893. }
  4894. ee.EncodeUint(uint64(v2))
  4895. }
  4896. }
  4897. if cr != nil {
  4898. cr.sendContainerState(containerMapEnd)
  4899. }
  4900. }
  4901. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  4902. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  4903. }
  4904. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  4905. ee, cr := e.e, e.cr
  4906. ee.EncodeMapStart(len(v))
  4907. if e.h.Canonical {
  4908. v2 := make([]float64, len(v))
  4909. var i int
  4910. for k, _ := range v {
  4911. v2[i] = float64(k)
  4912. i++
  4913. }
  4914. sort.Sort(floatSlice(v2))
  4915. for _, k2 := range v2 {
  4916. if cr != nil {
  4917. cr.sendContainerState(containerMapKey)
  4918. }
  4919. ee.EncodeFloat32(float32(k2))
  4920. if cr != nil {
  4921. cr.sendContainerState(containerMapValue)
  4922. }
  4923. ee.EncodeUint(uint64(v[float32(k2)]))
  4924. }
  4925. } else {
  4926. for k2, v2 := range v {
  4927. if cr != nil {
  4928. cr.sendContainerState(containerMapKey)
  4929. }
  4930. ee.EncodeFloat32(k2)
  4931. if cr != nil {
  4932. cr.sendContainerState(containerMapValue)
  4933. }
  4934. ee.EncodeUint(uint64(v2))
  4935. }
  4936. }
  4937. if cr != nil {
  4938. cr.sendContainerState(containerMapEnd)
  4939. }
  4940. }
  4941. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  4942. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  4943. }
  4944. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  4945. ee, cr := e.e, e.cr
  4946. ee.EncodeMapStart(len(v))
  4947. if e.h.Canonical {
  4948. v2 := make([]float64, len(v))
  4949. var i int
  4950. for k, _ := range v {
  4951. v2[i] = float64(k)
  4952. i++
  4953. }
  4954. sort.Sort(floatSlice(v2))
  4955. for _, k2 := range v2 {
  4956. if cr != nil {
  4957. cr.sendContainerState(containerMapKey)
  4958. }
  4959. ee.EncodeFloat32(float32(k2))
  4960. if cr != nil {
  4961. cr.sendContainerState(containerMapValue)
  4962. }
  4963. ee.EncodeUint(uint64(v[float32(k2)]))
  4964. }
  4965. } else {
  4966. for k2, v2 := range v {
  4967. if cr != nil {
  4968. cr.sendContainerState(containerMapKey)
  4969. }
  4970. ee.EncodeFloat32(k2)
  4971. if cr != nil {
  4972. cr.sendContainerState(containerMapValue)
  4973. }
  4974. ee.EncodeUint(uint64(v2))
  4975. }
  4976. }
  4977. if cr != nil {
  4978. cr.sendContainerState(containerMapEnd)
  4979. }
  4980. }
  4981. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  4982. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  4983. }
  4984. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  4985. ee, cr := e.e, e.cr
  4986. ee.EncodeMapStart(len(v))
  4987. if e.h.Canonical {
  4988. v2 := make([]float64, len(v))
  4989. var i int
  4990. for k, _ := range v {
  4991. v2[i] = float64(k)
  4992. i++
  4993. }
  4994. sort.Sort(floatSlice(v2))
  4995. for _, k2 := range v2 {
  4996. if cr != nil {
  4997. cr.sendContainerState(containerMapKey)
  4998. }
  4999. ee.EncodeFloat32(float32(k2))
  5000. if cr != nil {
  5001. cr.sendContainerState(containerMapValue)
  5002. }
  5003. e.encode(v[float32(k2)])
  5004. }
  5005. } else {
  5006. for k2, v2 := range v {
  5007. if cr != nil {
  5008. cr.sendContainerState(containerMapKey)
  5009. }
  5010. ee.EncodeFloat32(k2)
  5011. if cr != nil {
  5012. cr.sendContainerState(containerMapValue)
  5013. }
  5014. e.encode(v2)
  5015. }
  5016. }
  5017. if cr != nil {
  5018. cr.sendContainerState(containerMapEnd)
  5019. }
  5020. }
  5021. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  5022. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  5023. }
  5024. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  5025. ee, cr := e.e, e.cr
  5026. ee.EncodeMapStart(len(v))
  5027. if e.h.Canonical {
  5028. v2 := make([]float64, len(v))
  5029. var i int
  5030. for k, _ := range v {
  5031. v2[i] = float64(k)
  5032. i++
  5033. }
  5034. sort.Sort(floatSlice(v2))
  5035. for _, k2 := range v2 {
  5036. if cr != nil {
  5037. cr.sendContainerState(containerMapKey)
  5038. }
  5039. ee.EncodeFloat32(float32(k2))
  5040. if cr != nil {
  5041. cr.sendContainerState(containerMapValue)
  5042. }
  5043. ee.EncodeInt(int64(v[float32(k2)]))
  5044. }
  5045. } else {
  5046. for k2, v2 := range v {
  5047. if cr != nil {
  5048. cr.sendContainerState(containerMapKey)
  5049. }
  5050. ee.EncodeFloat32(k2)
  5051. if cr != nil {
  5052. cr.sendContainerState(containerMapValue)
  5053. }
  5054. ee.EncodeInt(int64(v2))
  5055. }
  5056. }
  5057. if cr != nil {
  5058. cr.sendContainerState(containerMapEnd)
  5059. }
  5060. }
  5061. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  5062. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  5063. }
  5064. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  5065. ee, cr := e.e, e.cr
  5066. ee.EncodeMapStart(len(v))
  5067. if e.h.Canonical {
  5068. v2 := make([]float64, len(v))
  5069. var i int
  5070. for k, _ := range v {
  5071. v2[i] = float64(k)
  5072. i++
  5073. }
  5074. sort.Sort(floatSlice(v2))
  5075. for _, k2 := range v2 {
  5076. if cr != nil {
  5077. cr.sendContainerState(containerMapKey)
  5078. }
  5079. ee.EncodeFloat32(float32(k2))
  5080. if cr != nil {
  5081. cr.sendContainerState(containerMapValue)
  5082. }
  5083. ee.EncodeInt(int64(v[float32(k2)]))
  5084. }
  5085. } else {
  5086. for k2, v2 := range v {
  5087. if cr != nil {
  5088. cr.sendContainerState(containerMapKey)
  5089. }
  5090. ee.EncodeFloat32(k2)
  5091. if cr != nil {
  5092. cr.sendContainerState(containerMapValue)
  5093. }
  5094. ee.EncodeInt(int64(v2))
  5095. }
  5096. }
  5097. if cr != nil {
  5098. cr.sendContainerState(containerMapEnd)
  5099. }
  5100. }
  5101. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  5102. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  5103. }
  5104. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  5105. ee, cr := e.e, e.cr
  5106. ee.EncodeMapStart(len(v))
  5107. if e.h.Canonical {
  5108. v2 := make([]float64, len(v))
  5109. var i int
  5110. for k, _ := range v {
  5111. v2[i] = float64(k)
  5112. i++
  5113. }
  5114. sort.Sort(floatSlice(v2))
  5115. for _, k2 := range v2 {
  5116. if cr != nil {
  5117. cr.sendContainerState(containerMapKey)
  5118. }
  5119. ee.EncodeFloat32(float32(k2))
  5120. if cr != nil {
  5121. cr.sendContainerState(containerMapValue)
  5122. }
  5123. ee.EncodeInt(int64(v[float32(k2)]))
  5124. }
  5125. } else {
  5126. for k2, v2 := range v {
  5127. if cr != nil {
  5128. cr.sendContainerState(containerMapKey)
  5129. }
  5130. ee.EncodeFloat32(k2)
  5131. if cr != nil {
  5132. cr.sendContainerState(containerMapValue)
  5133. }
  5134. ee.EncodeInt(int64(v2))
  5135. }
  5136. }
  5137. if cr != nil {
  5138. cr.sendContainerState(containerMapEnd)
  5139. }
  5140. }
  5141. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  5142. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  5143. }
  5144. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  5145. ee, cr := e.e, e.cr
  5146. ee.EncodeMapStart(len(v))
  5147. if e.h.Canonical {
  5148. v2 := make([]float64, len(v))
  5149. var i int
  5150. for k, _ := range v {
  5151. v2[i] = float64(k)
  5152. i++
  5153. }
  5154. sort.Sort(floatSlice(v2))
  5155. for _, k2 := range v2 {
  5156. if cr != nil {
  5157. cr.sendContainerState(containerMapKey)
  5158. }
  5159. ee.EncodeFloat32(float32(k2))
  5160. if cr != nil {
  5161. cr.sendContainerState(containerMapValue)
  5162. }
  5163. ee.EncodeInt(int64(v[float32(k2)]))
  5164. }
  5165. } else {
  5166. for k2, v2 := range v {
  5167. if cr != nil {
  5168. cr.sendContainerState(containerMapKey)
  5169. }
  5170. ee.EncodeFloat32(k2)
  5171. if cr != nil {
  5172. cr.sendContainerState(containerMapValue)
  5173. }
  5174. ee.EncodeInt(int64(v2))
  5175. }
  5176. }
  5177. if cr != nil {
  5178. cr.sendContainerState(containerMapEnd)
  5179. }
  5180. }
  5181. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  5182. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  5183. }
  5184. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  5185. ee, cr := e.e, e.cr
  5186. ee.EncodeMapStart(len(v))
  5187. if e.h.Canonical {
  5188. v2 := make([]float64, len(v))
  5189. var i int
  5190. for k, _ := range v {
  5191. v2[i] = float64(k)
  5192. i++
  5193. }
  5194. sort.Sort(floatSlice(v2))
  5195. for _, k2 := range v2 {
  5196. if cr != nil {
  5197. cr.sendContainerState(containerMapKey)
  5198. }
  5199. ee.EncodeFloat32(float32(k2))
  5200. if cr != nil {
  5201. cr.sendContainerState(containerMapValue)
  5202. }
  5203. ee.EncodeInt(int64(v[float32(k2)]))
  5204. }
  5205. } else {
  5206. for k2, v2 := range v {
  5207. if cr != nil {
  5208. cr.sendContainerState(containerMapKey)
  5209. }
  5210. ee.EncodeFloat32(k2)
  5211. if cr != nil {
  5212. cr.sendContainerState(containerMapValue)
  5213. }
  5214. ee.EncodeInt(int64(v2))
  5215. }
  5216. }
  5217. if cr != nil {
  5218. cr.sendContainerState(containerMapEnd)
  5219. }
  5220. }
  5221. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  5222. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  5223. }
  5224. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  5225. ee, cr := e.e, e.cr
  5226. ee.EncodeMapStart(len(v))
  5227. if e.h.Canonical {
  5228. v2 := make([]float64, len(v))
  5229. var i int
  5230. for k, _ := range v {
  5231. v2[i] = float64(k)
  5232. i++
  5233. }
  5234. sort.Sort(floatSlice(v2))
  5235. for _, k2 := range v2 {
  5236. if cr != nil {
  5237. cr.sendContainerState(containerMapKey)
  5238. }
  5239. ee.EncodeFloat32(float32(k2))
  5240. if cr != nil {
  5241. cr.sendContainerState(containerMapValue)
  5242. }
  5243. ee.EncodeFloat32(v[float32(k2)])
  5244. }
  5245. } else {
  5246. for k2, v2 := range v {
  5247. if cr != nil {
  5248. cr.sendContainerState(containerMapKey)
  5249. }
  5250. ee.EncodeFloat32(k2)
  5251. if cr != nil {
  5252. cr.sendContainerState(containerMapValue)
  5253. }
  5254. ee.EncodeFloat32(v2)
  5255. }
  5256. }
  5257. if cr != nil {
  5258. cr.sendContainerState(containerMapEnd)
  5259. }
  5260. }
  5261. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  5262. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  5263. }
  5264. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  5265. ee, cr := e.e, e.cr
  5266. ee.EncodeMapStart(len(v))
  5267. if e.h.Canonical {
  5268. v2 := make([]float64, len(v))
  5269. var i int
  5270. for k, _ := range v {
  5271. v2[i] = float64(k)
  5272. i++
  5273. }
  5274. sort.Sort(floatSlice(v2))
  5275. for _, k2 := range v2 {
  5276. if cr != nil {
  5277. cr.sendContainerState(containerMapKey)
  5278. }
  5279. ee.EncodeFloat32(float32(k2))
  5280. if cr != nil {
  5281. cr.sendContainerState(containerMapValue)
  5282. }
  5283. ee.EncodeFloat64(v[float32(k2)])
  5284. }
  5285. } else {
  5286. for k2, v2 := range v {
  5287. if cr != nil {
  5288. cr.sendContainerState(containerMapKey)
  5289. }
  5290. ee.EncodeFloat32(k2)
  5291. if cr != nil {
  5292. cr.sendContainerState(containerMapValue)
  5293. }
  5294. ee.EncodeFloat64(v2)
  5295. }
  5296. }
  5297. if cr != nil {
  5298. cr.sendContainerState(containerMapEnd)
  5299. }
  5300. }
  5301. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  5302. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  5303. }
  5304. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  5305. ee, cr := e.e, e.cr
  5306. ee.EncodeMapStart(len(v))
  5307. if e.h.Canonical {
  5308. v2 := make([]float64, len(v))
  5309. var i int
  5310. for k, _ := range v {
  5311. v2[i] = float64(k)
  5312. i++
  5313. }
  5314. sort.Sort(floatSlice(v2))
  5315. for _, k2 := range v2 {
  5316. if cr != nil {
  5317. cr.sendContainerState(containerMapKey)
  5318. }
  5319. ee.EncodeFloat32(float32(k2))
  5320. if cr != nil {
  5321. cr.sendContainerState(containerMapValue)
  5322. }
  5323. ee.EncodeBool(v[float32(k2)])
  5324. }
  5325. } else {
  5326. for k2, v2 := range v {
  5327. if cr != nil {
  5328. cr.sendContainerState(containerMapKey)
  5329. }
  5330. ee.EncodeFloat32(k2)
  5331. if cr != nil {
  5332. cr.sendContainerState(containerMapValue)
  5333. }
  5334. ee.EncodeBool(v2)
  5335. }
  5336. }
  5337. if cr != nil {
  5338. cr.sendContainerState(containerMapEnd)
  5339. }
  5340. }
  5341. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  5342. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  5343. }
  5344. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  5345. ee, cr := e.e, e.cr
  5346. ee.EncodeMapStart(len(v))
  5347. if e.h.Canonical {
  5348. v2 := make([]float64, len(v))
  5349. var i int
  5350. for k, _ := range v {
  5351. v2[i] = float64(k)
  5352. i++
  5353. }
  5354. sort.Sort(floatSlice(v2))
  5355. for _, k2 := range v2 {
  5356. if cr != nil {
  5357. cr.sendContainerState(containerMapKey)
  5358. }
  5359. ee.EncodeFloat64(float64(k2))
  5360. if cr != nil {
  5361. cr.sendContainerState(containerMapValue)
  5362. }
  5363. e.encode(v[float64(k2)])
  5364. }
  5365. } else {
  5366. for k2, v2 := range v {
  5367. if cr != nil {
  5368. cr.sendContainerState(containerMapKey)
  5369. }
  5370. ee.EncodeFloat64(k2)
  5371. if cr != nil {
  5372. cr.sendContainerState(containerMapValue)
  5373. }
  5374. e.encode(v2)
  5375. }
  5376. }
  5377. if cr != nil {
  5378. cr.sendContainerState(containerMapEnd)
  5379. }
  5380. }
  5381. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  5382. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  5383. }
  5384. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  5385. ee, cr := e.e, e.cr
  5386. ee.EncodeMapStart(len(v))
  5387. if e.h.Canonical {
  5388. v2 := make([]float64, len(v))
  5389. var i int
  5390. for k, _ := range v {
  5391. v2[i] = float64(k)
  5392. i++
  5393. }
  5394. sort.Sort(floatSlice(v2))
  5395. for _, k2 := range v2 {
  5396. if cr != nil {
  5397. cr.sendContainerState(containerMapKey)
  5398. }
  5399. ee.EncodeFloat64(float64(k2))
  5400. if cr != nil {
  5401. cr.sendContainerState(containerMapValue)
  5402. }
  5403. ee.EncodeString(c_UTF8, v[float64(k2)])
  5404. }
  5405. } else {
  5406. for k2, v2 := range v {
  5407. if cr != nil {
  5408. cr.sendContainerState(containerMapKey)
  5409. }
  5410. ee.EncodeFloat64(k2)
  5411. if cr != nil {
  5412. cr.sendContainerState(containerMapValue)
  5413. }
  5414. ee.EncodeString(c_UTF8, v2)
  5415. }
  5416. }
  5417. if cr != nil {
  5418. cr.sendContainerState(containerMapEnd)
  5419. }
  5420. }
  5421. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  5422. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  5423. }
  5424. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  5425. ee, cr := e.e, e.cr
  5426. ee.EncodeMapStart(len(v))
  5427. if e.h.Canonical {
  5428. v2 := make([]float64, len(v))
  5429. var i int
  5430. for k, _ := range v {
  5431. v2[i] = float64(k)
  5432. i++
  5433. }
  5434. sort.Sort(floatSlice(v2))
  5435. for _, k2 := range v2 {
  5436. if cr != nil {
  5437. cr.sendContainerState(containerMapKey)
  5438. }
  5439. ee.EncodeFloat64(float64(k2))
  5440. if cr != nil {
  5441. cr.sendContainerState(containerMapValue)
  5442. }
  5443. ee.EncodeUint(uint64(v[float64(k2)]))
  5444. }
  5445. } else {
  5446. for k2, v2 := range v {
  5447. if cr != nil {
  5448. cr.sendContainerState(containerMapKey)
  5449. }
  5450. ee.EncodeFloat64(k2)
  5451. if cr != nil {
  5452. cr.sendContainerState(containerMapValue)
  5453. }
  5454. ee.EncodeUint(uint64(v2))
  5455. }
  5456. }
  5457. if cr != nil {
  5458. cr.sendContainerState(containerMapEnd)
  5459. }
  5460. }
  5461. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  5462. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  5463. }
  5464. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  5465. ee, cr := e.e, e.cr
  5466. ee.EncodeMapStart(len(v))
  5467. if e.h.Canonical {
  5468. v2 := make([]float64, len(v))
  5469. var i int
  5470. for k, _ := range v {
  5471. v2[i] = float64(k)
  5472. i++
  5473. }
  5474. sort.Sort(floatSlice(v2))
  5475. for _, k2 := range v2 {
  5476. if cr != nil {
  5477. cr.sendContainerState(containerMapKey)
  5478. }
  5479. ee.EncodeFloat64(float64(k2))
  5480. if cr != nil {
  5481. cr.sendContainerState(containerMapValue)
  5482. }
  5483. ee.EncodeUint(uint64(v[float64(k2)]))
  5484. }
  5485. } else {
  5486. for k2, v2 := range v {
  5487. if cr != nil {
  5488. cr.sendContainerState(containerMapKey)
  5489. }
  5490. ee.EncodeFloat64(k2)
  5491. if cr != nil {
  5492. cr.sendContainerState(containerMapValue)
  5493. }
  5494. ee.EncodeUint(uint64(v2))
  5495. }
  5496. }
  5497. if cr != nil {
  5498. cr.sendContainerState(containerMapEnd)
  5499. }
  5500. }
  5501. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  5502. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  5503. }
  5504. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  5505. ee, cr := e.e, e.cr
  5506. ee.EncodeMapStart(len(v))
  5507. if e.h.Canonical {
  5508. v2 := make([]float64, len(v))
  5509. var i int
  5510. for k, _ := range v {
  5511. v2[i] = float64(k)
  5512. i++
  5513. }
  5514. sort.Sort(floatSlice(v2))
  5515. for _, k2 := range v2 {
  5516. if cr != nil {
  5517. cr.sendContainerState(containerMapKey)
  5518. }
  5519. ee.EncodeFloat64(float64(k2))
  5520. if cr != nil {
  5521. cr.sendContainerState(containerMapValue)
  5522. }
  5523. ee.EncodeUint(uint64(v[float64(k2)]))
  5524. }
  5525. } else {
  5526. for k2, v2 := range v {
  5527. if cr != nil {
  5528. cr.sendContainerState(containerMapKey)
  5529. }
  5530. ee.EncodeFloat64(k2)
  5531. if cr != nil {
  5532. cr.sendContainerState(containerMapValue)
  5533. }
  5534. ee.EncodeUint(uint64(v2))
  5535. }
  5536. }
  5537. if cr != nil {
  5538. cr.sendContainerState(containerMapEnd)
  5539. }
  5540. }
  5541. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  5542. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  5543. }
  5544. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  5545. ee, cr := e.e, e.cr
  5546. ee.EncodeMapStart(len(v))
  5547. if e.h.Canonical {
  5548. v2 := make([]float64, len(v))
  5549. var i int
  5550. for k, _ := range v {
  5551. v2[i] = float64(k)
  5552. i++
  5553. }
  5554. sort.Sort(floatSlice(v2))
  5555. for _, k2 := range v2 {
  5556. if cr != nil {
  5557. cr.sendContainerState(containerMapKey)
  5558. }
  5559. ee.EncodeFloat64(float64(k2))
  5560. if cr != nil {
  5561. cr.sendContainerState(containerMapValue)
  5562. }
  5563. ee.EncodeUint(uint64(v[float64(k2)]))
  5564. }
  5565. } else {
  5566. for k2, v2 := range v {
  5567. if cr != nil {
  5568. cr.sendContainerState(containerMapKey)
  5569. }
  5570. ee.EncodeFloat64(k2)
  5571. if cr != nil {
  5572. cr.sendContainerState(containerMapValue)
  5573. }
  5574. ee.EncodeUint(uint64(v2))
  5575. }
  5576. }
  5577. if cr != nil {
  5578. cr.sendContainerState(containerMapEnd)
  5579. }
  5580. }
  5581. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  5582. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  5583. }
  5584. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
  5585. ee, cr := e.e, e.cr
  5586. ee.EncodeMapStart(len(v))
  5587. if e.h.Canonical {
  5588. v2 := make([]float64, len(v))
  5589. var i int
  5590. for k, _ := range v {
  5591. v2[i] = float64(k)
  5592. i++
  5593. }
  5594. sort.Sort(floatSlice(v2))
  5595. for _, k2 := range v2 {
  5596. if cr != nil {
  5597. cr.sendContainerState(containerMapKey)
  5598. }
  5599. ee.EncodeFloat64(float64(k2))
  5600. if cr != nil {
  5601. cr.sendContainerState(containerMapValue)
  5602. }
  5603. ee.EncodeUint(uint64(v[float64(k2)]))
  5604. }
  5605. } else {
  5606. for k2, v2 := range v {
  5607. if cr != nil {
  5608. cr.sendContainerState(containerMapKey)
  5609. }
  5610. ee.EncodeFloat64(k2)
  5611. if cr != nil {
  5612. cr.sendContainerState(containerMapValue)
  5613. }
  5614. ee.EncodeUint(uint64(v2))
  5615. }
  5616. }
  5617. if cr != nil {
  5618. cr.sendContainerState(containerMapEnd)
  5619. }
  5620. }
  5621. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  5622. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  5623. }
  5624. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  5625. ee, cr := e.e, e.cr
  5626. ee.EncodeMapStart(len(v))
  5627. if e.h.Canonical {
  5628. v2 := make([]float64, len(v))
  5629. var i int
  5630. for k, _ := range v {
  5631. v2[i] = float64(k)
  5632. i++
  5633. }
  5634. sort.Sort(floatSlice(v2))
  5635. for _, k2 := range v2 {
  5636. if cr != nil {
  5637. cr.sendContainerState(containerMapKey)
  5638. }
  5639. ee.EncodeFloat64(float64(k2))
  5640. if cr != nil {
  5641. cr.sendContainerState(containerMapValue)
  5642. }
  5643. e.encode(v[float64(k2)])
  5644. }
  5645. } else {
  5646. for k2, v2 := range v {
  5647. if cr != nil {
  5648. cr.sendContainerState(containerMapKey)
  5649. }
  5650. ee.EncodeFloat64(k2)
  5651. if cr != nil {
  5652. cr.sendContainerState(containerMapValue)
  5653. }
  5654. e.encode(v2)
  5655. }
  5656. }
  5657. if cr != nil {
  5658. cr.sendContainerState(containerMapEnd)
  5659. }
  5660. }
  5661. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  5662. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  5663. }
  5664. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  5665. ee, cr := e.e, e.cr
  5666. ee.EncodeMapStart(len(v))
  5667. if e.h.Canonical {
  5668. v2 := make([]float64, len(v))
  5669. var i int
  5670. for k, _ := range v {
  5671. v2[i] = float64(k)
  5672. i++
  5673. }
  5674. sort.Sort(floatSlice(v2))
  5675. for _, k2 := range v2 {
  5676. if cr != nil {
  5677. cr.sendContainerState(containerMapKey)
  5678. }
  5679. ee.EncodeFloat64(float64(k2))
  5680. if cr != nil {
  5681. cr.sendContainerState(containerMapValue)
  5682. }
  5683. ee.EncodeInt(int64(v[float64(k2)]))
  5684. }
  5685. } else {
  5686. for k2, v2 := range v {
  5687. if cr != nil {
  5688. cr.sendContainerState(containerMapKey)
  5689. }
  5690. ee.EncodeFloat64(k2)
  5691. if cr != nil {
  5692. cr.sendContainerState(containerMapValue)
  5693. }
  5694. ee.EncodeInt(int64(v2))
  5695. }
  5696. }
  5697. if cr != nil {
  5698. cr.sendContainerState(containerMapEnd)
  5699. }
  5700. }
  5701. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  5702. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  5703. }
  5704. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  5705. ee, cr := e.e, e.cr
  5706. ee.EncodeMapStart(len(v))
  5707. if e.h.Canonical {
  5708. v2 := make([]float64, len(v))
  5709. var i int
  5710. for k, _ := range v {
  5711. v2[i] = float64(k)
  5712. i++
  5713. }
  5714. sort.Sort(floatSlice(v2))
  5715. for _, k2 := range v2 {
  5716. if cr != nil {
  5717. cr.sendContainerState(containerMapKey)
  5718. }
  5719. ee.EncodeFloat64(float64(k2))
  5720. if cr != nil {
  5721. cr.sendContainerState(containerMapValue)
  5722. }
  5723. ee.EncodeInt(int64(v[float64(k2)]))
  5724. }
  5725. } else {
  5726. for k2, v2 := range v {
  5727. if cr != nil {
  5728. cr.sendContainerState(containerMapKey)
  5729. }
  5730. ee.EncodeFloat64(k2)
  5731. if cr != nil {
  5732. cr.sendContainerState(containerMapValue)
  5733. }
  5734. ee.EncodeInt(int64(v2))
  5735. }
  5736. }
  5737. if cr != nil {
  5738. cr.sendContainerState(containerMapEnd)
  5739. }
  5740. }
  5741. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  5742. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  5743. }
  5744. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  5745. ee, cr := e.e, e.cr
  5746. ee.EncodeMapStart(len(v))
  5747. if e.h.Canonical {
  5748. v2 := make([]float64, len(v))
  5749. var i int
  5750. for k, _ := range v {
  5751. v2[i] = float64(k)
  5752. i++
  5753. }
  5754. sort.Sort(floatSlice(v2))
  5755. for _, k2 := range v2 {
  5756. if cr != nil {
  5757. cr.sendContainerState(containerMapKey)
  5758. }
  5759. ee.EncodeFloat64(float64(k2))
  5760. if cr != nil {
  5761. cr.sendContainerState(containerMapValue)
  5762. }
  5763. ee.EncodeInt(int64(v[float64(k2)]))
  5764. }
  5765. } else {
  5766. for k2, v2 := range v {
  5767. if cr != nil {
  5768. cr.sendContainerState(containerMapKey)
  5769. }
  5770. ee.EncodeFloat64(k2)
  5771. if cr != nil {
  5772. cr.sendContainerState(containerMapValue)
  5773. }
  5774. ee.EncodeInt(int64(v2))
  5775. }
  5776. }
  5777. if cr != nil {
  5778. cr.sendContainerState(containerMapEnd)
  5779. }
  5780. }
  5781. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  5782. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  5783. }
  5784. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  5785. ee, cr := e.e, e.cr
  5786. ee.EncodeMapStart(len(v))
  5787. if e.h.Canonical {
  5788. v2 := make([]float64, len(v))
  5789. var i int
  5790. for k, _ := range v {
  5791. v2[i] = float64(k)
  5792. i++
  5793. }
  5794. sort.Sort(floatSlice(v2))
  5795. for _, k2 := range v2 {
  5796. if cr != nil {
  5797. cr.sendContainerState(containerMapKey)
  5798. }
  5799. ee.EncodeFloat64(float64(k2))
  5800. if cr != nil {
  5801. cr.sendContainerState(containerMapValue)
  5802. }
  5803. ee.EncodeInt(int64(v[float64(k2)]))
  5804. }
  5805. } else {
  5806. for k2, v2 := range v {
  5807. if cr != nil {
  5808. cr.sendContainerState(containerMapKey)
  5809. }
  5810. ee.EncodeFloat64(k2)
  5811. if cr != nil {
  5812. cr.sendContainerState(containerMapValue)
  5813. }
  5814. ee.EncodeInt(int64(v2))
  5815. }
  5816. }
  5817. if cr != nil {
  5818. cr.sendContainerState(containerMapEnd)
  5819. }
  5820. }
  5821. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  5822. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  5823. }
  5824. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  5825. ee, cr := e.e, e.cr
  5826. ee.EncodeMapStart(len(v))
  5827. if e.h.Canonical {
  5828. v2 := make([]float64, len(v))
  5829. var i int
  5830. for k, _ := range v {
  5831. v2[i] = float64(k)
  5832. i++
  5833. }
  5834. sort.Sort(floatSlice(v2))
  5835. for _, k2 := range v2 {
  5836. if cr != nil {
  5837. cr.sendContainerState(containerMapKey)
  5838. }
  5839. ee.EncodeFloat64(float64(k2))
  5840. if cr != nil {
  5841. cr.sendContainerState(containerMapValue)
  5842. }
  5843. ee.EncodeInt(int64(v[float64(k2)]))
  5844. }
  5845. } else {
  5846. for k2, v2 := range v {
  5847. if cr != nil {
  5848. cr.sendContainerState(containerMapKey)
  5849. }
  5850. ee.EncodeFloat64(k2)
  5851. if cr != nil {
  5852. cr.sendContainerState(containerMapValue)
  5853. }
  5854. ee.EncodeInt(int64(v2))
  5855. }
  5856. }
  5857. if cr != nil {
  5858. cr.sendContainerState(containerMapEnd)
  5859. }
  5860. }
  5861. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  5862. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  5863. }
  5864. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  5865. ee, cr := e.e, e.cr
  5866. ee.EncodeMapStart(len(v))
  5867. if e.h.Canonical {
  5868. v2 := make([]float64, len(v))
  5869. var i int
  5870. for k, _ := range v {
  5871. v2[i] = float64(k)
  5872. i++
  5873. }
  5874. sort.Sort(floatSlice(v2))
  5875. for _, k2 := range v2 {
  5876. if cr != nil {
  5877. cr.sendContainerState(containerMapKey)
  5878. }
  5879. ee.EncodeFloat64(float64(k2))
  5880. if cr != nil {
  5881. cr.sendContainerState(containerMapValue)
  5882. }
  5883. ee.EncodeFloat32(v[float64(k2)])
  5884. }
  5885. } else {
  5886. for k2, v2 := range v {
  5887. if cr != nil {
  5888. cr.sendContainerState(containerMapKey)
  5889. }
  5890. ee.EncodeFloat64(k2)
  5891. if cr != nil {
  5892. cr.sendContainerState(containerMapValue)
  5893. }
  5894. ee.EncodeFloat32(v2)
  5895. }
  5896. }
  5897. if cr != nil {
  5898. cr.sendContainerState(containerMapEnd)
  5899. }
  5900. }
  5901. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  5902. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  5903. }
  5904. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
  5905. ee, cr := e.e, e.cr
  5906. ee.EncodeMapStart(len(v))
  5907. if e.h.Canonical {
  5908. v2 := make([]float64, len(v))
  5909. var i int
  5910. for k, _ := range v {
  5911. v2[i] = float64(k)
  5912. i++
  5913. }
  5914. sort.Sort(floatSlice(v2))
  5915. for _, k2 := range v2 {
  5916. if cr != nil {
  5917. cr.sendContainerState(containerMapKey)
  5918. }
  5919. ee.EncodeFloat64(float64(k2))
  5920. if cr != nil {
  5921. cr.sendContainerState(containerMapValue)
  5922. }
  5923. ee.EncodeFloat64(v[float64(k2)])
  5924. }
  5925. } else {
  5926. for k2, v2 := range v {
  5927. if cr != nil {
  5928. cr.sendContainerState(containerMapKey)
  5929. }
  5930. ee.EncodeFloat64(k2)
  5931. if cr != nil {
  5932. cr.sendContainerState(containerMapValue)
  5933. }
  5934. ee.EncodeFloat64(v2)
  5935. }
  5936. }
  5937. if cr != nil {
  5938. cr.sendContainerState(containerMapEnd)
  5939. }
  5940. }
  5941. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  5942. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  5943. }
  5944. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  5945. ee, cr := e.e, e.cr
  5946. ee.EncodeMapStart(len(v))
  5947. if e.h.Canonical {
  5948. v2 := make([]float64, len(v))
  5949. var i int
  5950. for k, _ := range v {
  5951. v2[i] = float64(k)
  5952. i++
  5953. }
  5954. sort.Sort(floatSlice(v2))
  5955. for _, k2 := range v2 {
  5956. if cr != nil {
  5957. cr.sendContainerState(containerMapKey)
  5958. }
  5959. ee.EncodeFloat64(float64(k2))
  5960. if cr != nil {
  5961. cr.sendContainerState(containerMapValue)
  5962. }
  5963. ee.EncodeBool(v[float64(k2)])
  5964. }
  5965. } else {
  5966. for k2, v2 := range v {
  5967. if cr != nil {
  5968. cr.sendContainerState(containerMapKey)
  5969. }
  5970. ee.EncodeFloat64(k2)
  5971. if cr != nil {
  5972. cr.sendContainerState(containerMapValue)
  5973. }
  5974. ee.EncodeBool(v2)
  5975. }
  5976. }
  5977. if cr != nil {
  5978. cr.sendContainerState(containerMapEnd)
  5979. }
  5980. }
  5981. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  5982. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  5983. }
  5984. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  5985. ee, cr := e.e, e.cr
  5986. ee.EncodeMapStart(len(v))
  5987. if e.h.Canonical {
  5988. v2 := make([]uint64, len(v))
  5989. var i int
  5990. for k, _ := range v {
  5991. v2[i] = uint64(k)
  5992. i++
  5993. }
  5994. sort.Sort(uintSlice(v2))
  5995. for _, k2 := range v2 {
  5996. if cr != nil {
  5997. cr.sendContainerState(containerMapKey)
  5998. }
  5999. ee.EncodeUint(uint64(uint(k2)))
  6000. if cr != nil {
  6001. cr.sendContainerState(containerMapValue)
  6002. }
  6003. e.encode(v[uint(k2)])
  6004. }
  6005. } else {
  6006. for k2, v2 := range v {
  6007. if cr != nil {
  6008. cr.sendContainerState(containerMapKey)
  6009. }
  6010. ee.EncodeUint(uint64(k2))
  6011. if cr != nil {
  6012. cr.sendContainerState(containerMapValue)
  6013. }
  6014. e.encode(v2)
  6015. }
  6016. }
  6017. if cr != nil {
  6018. cr.sendContainerState(containerMapEnd)
  6019. }
  6020. }
  6021. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  6022. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  6023. }
  6024. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  6025. ee, cr := e.e, e.cr
  6026. ee.EncodeMapStart(len(v))
  6027. if e.h.Canonical {
  6028. v2 := make([]uint64, len(v))
  6029. var i int
  6030. for k, _ := range v {
  6031. v2[i] = uint64(k)
  6032. i++
  6033. }
  6034. sort.Sort(uintSlice(v2))
  6035. for _, k2 := range v2 {
  6036. if cr != nil {
  6037. cr.sendContainerState(containerMapKey)
  6038. }
  6039. ee.EncodeUint(uint64(uint(k2)))
  6040. if cr != nil {
  6041. cr.sendContainerState(containerMapValue)
  6042. }
  6043. ee.EncodeString(c_UTF8, v[uint(k2)])
  6044. }
  6045. } else {
  6046. for k2, v2 := range v {
  6047. if cr != nil {
  6048. cr.sendContainerState(containerMapKey)
  6049. }
  6050. ee.EncodeUint(uint64(k2))
  6051. if cr != nil {
  6052. cr.sendContainerState(containerMapValue)
  6053. }
  6054. ee.EncodeString(c_UTF8, v2)
  6055. }
  6056. }
  6057. if cr != nil {
  6058. cr.sendContainerState(containerMapEnd)
  6059. }
  6060. }
  6061. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  6062. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  6063. }
  6064. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  6065. ee, cr := e.e, e.cr
  6066. ee.EncodeMapStart(len(v))
  6067. if e.h.Canonical {
  6068. v2 := make([]uint64, len(v))
  6069. var i int
  6070. for k, _ := range v {
  6071. v2[i] = uint64(k)
  6072. i++
  6073. }
  6074. sort.Sort(uintSlice(v2))
  6075. for _, k2 := range v2 {
  6076. if cr != nil {
  6077. cr.sendContainerState(containerMapKey)
  6078. }
  6079. ee.EncodeUint(uint64(uint(k2)))
  6080. if cr != nil {
  6081. cr.sendContainerState(containerMapValue)
  6082. }
  6083. ee.EncodeUint(uint64(v[uint(k2)]))
  6084. }
  6085. } else {
  6086. for k2, v2 := range v {
  6087. if cr != nil {
  6088. cr.sendContainerState(containerMapKey)
  6089. }
  6090. ee.EncodeUint(uint64(k2))
  6091. if cr != nil {
  6092. cr.sendContainerState(containerMapValue)
  6093. }
  6094. ee.EncodeUint(uint64(v2))
  6095. }
  6096. }
  6097. if cr != nil {
  6098. cr.sendContainerState(containerMapEnd)
  6099. }
  6100. }
  6101. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  6102. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  6103. }
  6104. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  6105. ee, cr := e.e, e.cr
  6106. ee.EncodeMapStart(len(v))
  6107. if e.h.Canonical {
  6108. v2 := make([]uint64, len(v))
  6109. var i int
  6110. for k, _ := range v {
  6111. v2[i] = uint64(k)
  6112. i++
  6113. }
  6114. sort.Sort(uintSlice(v2))
  6115. for _, k2 := range v2 {
  6116. if cr != nil {
  6117. cr.sendContainerState(containerMapKey)
  6118. }
  6119. ee.EncodeUint(uint64(uint(k2)))
  6120. if cr != nil {
  6121. cr.sendContainerState(containerMapValue)
  6122. }
  6123. ee.EncodeUint(uint64(v[uint(k2)]))
  6124. }
  6125. } else {
  6126. for k2, v2 := range v {
  6127. if cr != nil {
  6128. cr.sendContainerState(containerMapKey)
  6129. }
  6130. ee.EncodeUint(uint64(k2))
  6131. if cr != nil {
  6132. cr.sendContainerState(containerMapValue)
  6133. }
  6134. ee.EncodeUint(uint64(v2))
  6135. }
  6136. }
  6137. if cr != nil {
  6138. cr.sendContainerState(containerMapEnd)
  6139. }
  6140. }
  6141. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  6142. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  6143. }
  6144. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  6145. ee, cr := e.e, e.cr
  6146. ee.EncodeMapStart(len(v))
  6147. if e.h.Canonical {
  6148. v2 := make([]uint64, len(v))
  6149. var i int
  6150. for k, _ := range v {
  6151. v2[i] = uint64(k)
  6152. i++
  6153. }
  6154. sort.Sort(uintSlice(v2))
  6155. for _, k2 := range v2 {
  6156. if cr != nil {
  6157. cr.sendContainerState(containerMapKey)
  6158. }
  6159. ee.EncodeUint(uint64(uint(k2)))
  6160. if cr != nil {
  6161. cr.sendContainerState(containerMapValue)
  6162. }
  6163. ee.EncodeUint(uint64(v[uint(k2)]))
  6164. }
  6165. } else {
  6166. for k2, v2 := range v {
  6167. if cr != nil {
  6168. cr.sendContainerState(containerMapKey)
  6169. }
  6170. ee.EncodeUint(uint64(k2))
  6171. if cr != nil {
  6172. cr.sendContainerState(containerMapValue)
  6173. }
  6174. ee.EncodeUint(uint64(v2))
  6175. }
  6176. }
  6177. if cr != nil {
  6178. cr.sendContainerState(containerMapEnd)
  6179. }
  6180. }
  6181. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  6182. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  6183. }
  6184. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  6185. ee, cr := e.e, e.cr
  6186. ee.EncodeMapStart(len(v))
  6187. if e.h.Canonical {
  6188. v2 := make([]uint64, len(v))
  6189. var i int
  6190. for k, _ := range v {
  6191. v2[i] = uint64(k)
  6192. i++
  6193. }
  6194. sort.Sort(uintSlice(v2))
  6195. for _, k2 := range v2 {
  6196. if cr != nil {
  6197. cr.sendContainerState(containerMapKey)
  6198. }
  6199. ee.EncodeUint(uint64(uint(k2)))
  6200. if cr != nil {
  6201. cr.sendContainerState(containerMapValue)
  6202. }
  6203. ee.EncodeUint(uint64(v[uint(k2)]))
  6204. }
  6205. } else {
  6206. for k2, v2 := range v {
  6207. if cr != nil {
  6208. cr.sendContainerState(containerMapKey)
  6209. }
  6210. ee.EncodeUint(uint64(k2))
  6211. if cr != nil {
  6212. cr.sendContainerState(containerMapValue)
  6213. }
  6214. ee.EncodeUint(uint64(v2))
  6215. }
  6216. }
  6217. if cr != nil {
  6218. cr.sendContainerState(containerMapEnd)
  6219. }
  6220. }
  6221. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  6222. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  6223. }
  6224. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  6225. ee, cr := e.e, e.cr
  6226. ee.EncodeMapStart(len(v))
  6227. if e.h.Canonical {
  6228. v2 := make([]uint64, len(v))
  6229. var i int
  6230. for k, _ := range v {
  6231. v2[i] = uint64(k)
  6232. i++
  6233. }
  6234. sort.Sort(uintSlice(v2))
  6235. for _, k2 := range v2 {
  6236. if cr != nil {
  6237. cr.sendContainerState(containerMapKey)
  6238. }
  6239. ee.EncodeUint(uint64(uint(k2)))
  6240. if cr != nil {
  6241. cr.sendContainerState(containerMapValue)
  6242. }
  6243. ee.EncodeUint(uint64(v[uint(k2)]))
  6244. }
  6245. } else {
  6246. for k2, v2 := range v {
  6247. if cr != nil {
  6248. cr.sendContainerState(containerMapKey)
  6249. }
  6250. ee.EncodeUint(uint64(k2))
  6251. if cr != nil {
  6252. cr.sendContainerState(containerMapValue)
  6253. }
  6254. ee.EncodeUint(uint64(v2))
  6255. }
  6256. }
  6257. if cr != nil {
  6258. cr.sendContainerState(containerMapEnd)
  6259. }
  6260. }
  6261. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  6262. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  6263. }
  6264. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  6265. ee, cr := e.e, e.cr
  6266. ee.EncodeMapStart(len(v))
  6267. if e.h.Canonical {
  6268. v2 := make([]uint64, len(v))
  6269. var i int
  6270. for k, _ := range v {
  6271. v2[i] = uint64(k)
  6272. i++
  6273. }
  6274. sort.Sort(uintSlice(v2))
  6275. for _, k2 := range v2 {
  6276. if cr != nil {
  6277. cr.sendContainerState(containerMapKey)
  6278. }
  6279. ee.EncodeUint(uint64(uint(k2)))
  6280. if cr != nil {
  6281. cr.sendContainerState(containerMapValue)
  6282. }
  6283. e.encode(v[uint(k2)])
  6284. }
  6285. } else {
  6286. for k2, v2 := range v {
  6287. if cr != nil {
  6288. cr.sendContainerState(containerMapKey)
  6289. }
  6290. ee.EncodeUint(uint64(k2))
  6291. if cr != nil {
  6292. cr.sendContainerState(containerMapValue)
  6293. }
  6294. e.encode(v2)
  6295. }
  6296. }
  6297. if cr != nil {
  6298. cr.sendContainerState(containerMapEnd)
  6299. }
  6300. }
  6301. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  6302. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  6303. }
  6304. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  6305. ee, cr := e.e, e.cr
  6306. ee.EncodeMapStart(len(v))
  6307. if e.h.Canonical {
  6308. v2 := make([]uint64, len(v))
  6309. var i int
  6310. for k, _ := range v {
  6311. v2[i] = uint64(k)
  6312. i++
  6313. }
  6314. sort.Sort(uintSlice(v2))
  6315. for _, k2 := range v2 {
  6316. if cr != nil {
  6317. cr.sendContainerState(containerMapKey)
  6318. }
  6319. ee.EncodeUint(uint64(uint(k2)))
  6320. if cr != nil {
  6321. cr.sendContainerState(containerMapValue)
  6322. }
  6323. ee.EncodeInt(int64(v[uint(k2)]))
  6324. }
  6325. } else {
  6326. for k2, v2 := range v {
  6327. if cr != nil {
  6328. cr.sendContainerState(containerMapKey)
  6329. }
  6330. ee.EncodeUint(uint64(k2))
  6331. if cr != nil {
  6332. cr.sendContainerState(containerMapValue)
  6333. }
  6334. ee.EncodeInt(int64(v2))
  6335. }
  6336. }
  6337. if cr != nil {
  6338. cr.sendContainerState(containerMapEnd)
  6339. }
  6340. }
  6341. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  6342. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  6343. }
  6344. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  6345. ee, cr := e.e, e.cr
  6346. ee.EncodeMapStart(len(v))
  6347. if e.h.Canonical {
  6348. v2 := make([]uint64, len(v))
  6349. var i int
  6350. for k, _ := range v {
  6351. v2[i] = uint64(k)
  6352. i++
  6353. }
  6354. sort.Sort(uintSlice(v2))
  6355. for _, k2 := range v2 {
  6356. if cr != nil {
  6357. cr.sendContainerState(containerMapKey)
  6358. }
  6359. ee.EncodeUint(uint64(uint(k2)))
  6360. if cr != nil {
  6361. cr.sendContainerState(containerMapValue)
  6362. }
  6363. ee.EncodeInt(int64(v[uint(k2)]))
  6364. }
  6365. } else {
  6366. for k2, v2 := range v {
  6367. if cr != nil {
  6368. cr.sendContainerState(containerMapKey)
  6369. }
  6370. ee.EncodeUint(uint64(k2))
  6371. if cr != nil {
  6372. cr.sendContainerState(containerMapValue)
  6373. }
  6374. ee.EncodeInt(int64(v2))
  6375. }
  6376. }
  6377. if cr != nil {
  6378. cr.sendContainerState(containerMapEnd)
  6379. }
  6380. }
  6381. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  6382. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  6383. }
  6384. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  6385. ee, cr := e.e, e.cr
  6386. ee.EncodeMapStart(len(v))
  6387. if e.h.Canonical {
  6388. v2 := make([]uint64, len(v))
  6389. var i int
  6390. for k, _ := range v {
  6391. v2[i] = uint64(k)
  6392. i++
  6393. }
  6394. sort.Sort(uintSlice(v2))
  6395. for _, k2 := range v2 {
  6396. if cr != nil {
  6397. cr.sendContainerState(containerMapKey)
  6398. }
  6399. ee.EncodeUint(uint64(uint(k2)))
  6400. if cr != nil {
  6401. cr.sendContainerState(containerMapValue)
  6402. }
  6403. ee.EncodeInt(int64(v[uint(k2)]))
  6404. }
  6405. } else {
  6406. for k2, v2 := range v {
  6407. if cr != nil {
  6408. cr.sendContainerState(containerMapKey)
  6409. }
  6410. ee.EncodeUint(uint64(k2))
  6411. if cr != nil {
  6412. cr.sendContainerState(containerMapValue)
  6413. }
  6414. ee.EncodeInt(int64(v2))
  6415. }
  6416. }
  6417. if cr != nil {
  6418. cr.sendContainerState(containerMapEnd)
  6419. }
  6420. }
  6421. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  6422. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  6423. }
  6424. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  6425. ee, cr := e.e, e.cr
  6426. ee.EncodeMapStart(len(v))
  6427. if e.h.Canonical {
  6428. v2 := make([]uint64, len(v))
  6429. var i int
  6430. for k, _ := range v {
  6431. v2[i] = uint64(k)
  6432. i++
  6433. }
  6434. sort.Sort(uintSlice(v2))
  6435. for _, k2 := range v2 {
  6436. if cr != nil {
  6437. cr.sendContainerState(containerMapKey)
  6438. }
  6439. ee.EncodeUint(uint64(uint(k2)))
  6440. if cr != nil {
  6441. cr.sendContainerState(containerMapValue)
  6442. }
  6443. ee.EncodeInt(int64(v[uint(k2)]))
  6444. }
  6445. } else {
  6446. for k2, v2 := range v {
  6447. if cr != nil {
  6448. cr.sendContainerState(containerMapKey)
  6449. }
  6450. ee.EncodeUint(uint64(k2))
  6451. if cr != nil {
  6452. cr.sendContainerState(containerMapValue)
  6453. }
  6454. ee.EncodeInt(int64(v2))
  6455. }
  6456. }
  6457. if cr != nil {
  6458. cr.sendContainerState(containerMapEnd)
  6459. }
  6460. }
  6461. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  6462. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  6463. }
  6464. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  6465. ee, cr := e.e, e.cr
  6466. ee.EncodeMapStart(len(v))
  6467. if e.h.Canonical {
  6468. v2 := make([]uint64, len(v))
  6469. var i int
  6470. for k, _ := range v {
  6471. v2[i] = uint64(k)
  6472. i++
  6473. }
  6474. sort.Sort(uintSlice(v2))
  6475. for _, k2 := range v2 {
  6476. if cr != nil {
  6477. cr.sendContainerState(containerMapKey)
  6478. }
  6479. ee.EncodeUint(uint64(uint(k2)))
  6480. if cr != nil {
  6481. cr.sendContainerState(containerMapValue)
  6482. }
  6483. ee.EncodeInt(int64(v[uint(k2)]))
  6484. }
  6485. } else {
  6486. for k2, v2 := range v {
  6487. if cr != nil {
  6488. cr.sendContainerState(containerMapKey)
  6489. }
  6490. ee.EncodeUint(uint64(k2))
  6491. if cr != nil {
  6492. cr.sendContainerState(containerMapValue)
  6493. }
  6494. ee.EncodeInt(int64(v2))
  6495. }
  6496. }
  6497. if cr != nil {
  6498. cr.sendContainerState(containerMapEnd)
  6499. }
  6500. }
  6501. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  6502. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  6503. }
  6504. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  6505. ee, cr := e.e, e.cr
  6506. ee.EncodeMapStart(len(v))
  6507. if e.h.Canonical {
  6508. v2 := make([]uint64, len(v))
  6509. var i int
  6510. for k, _ := range v {
  6511. v2[i] = uint64(k)
  6512. i++
  6513. }
  6514. sort.Sort(uintSlice(v2))
  6515. for _, k2 := range v2 {
  6516. if cr != nil {
  6517. cr.sendContainerState(containerMapKey)
  6518. }
  6519. ee.EncodeUint(uint64(uint(k2)))
  6520. if cr != nil {
  6521. cr.sendContainerState(containerMapValue)
  6522. }
  6523. ee.EncodeFloat32(v[uint(k2)])
  6524. }
  6525. } else {
  6526. for k2, v2 := range v {
  6527. if cr != nil {
  6528. cr.sendContainerState(containerMapKey)
  6529. }
  6530. ee.EncodeUint(uint64(k2))
  6531. if cr != nil {
  6532. cr.sendContainerState(containerMapValue)
  6533. }
  6534. ee.EncodeFloat32(v2)
  6535. }
  6536. }
  6537. if cr != nil {
  6538. cr.sendContainerState(containerMapEnd)
  6539. }
  6540. }
  6541. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  6542. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  6543. }
  6544. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  6545. ee, cr := e.e, e.cr
  6546. ee.EncodeMapStart(len(v))
  6547. if e.h.Canonical {
  6548. v2 := make([]uint64, len(v))
  6549. var i int
  6550. for k, _ := range v {
  6551. v2[i] = uint64(k)
  6552. i++
  6553. }
  6554. sort.Sort(uintSlice(v2))
  6555. for _, k2 := range v2 {
  6556. if cr != nil {
  6557. cr.sendContainerState(containerMapKey)
  6558. }
  6559. ee.EncodeUint(uint64(uint(k2)))
  6560. if cr != nil {
  6561. cr.sendContainerState(containerMapValue)
  6562. }
  6563. ee.EncodeFloat64(v[uint(k2)])
  6564. }
  6565. } else {
  6566. for k2, v2 := range v {
  6567. if cr != nil {
  6568. cr.sendContainerState(containerMapKey)
  6569. }
  6570. ee.EncodeUint(uint64(k2))
  6571. if cr != nil {
  6572. cr.sendContainerState(containerMapValue)
  6573. }
  6574. ee.EncodeFloat64(v2)
  6575. }
  6576. }
  6577. if cr != nil {
  6578. cr.sendContainerState(containerMapEnd)
  6579. }
  6580. }
  6581. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  6582. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  6583. }
  6584. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  6585. ee, cr := e.e, e.cr
  6586. ee.EncodeMapStart(len(v))
  6587. if e.h.Canonical {
  6588. v2 := make([]uint64, len(v))
  6589. var i int
  6590. for k, _ := range v {
  6591. v2[i] = uint64(k)
  6592. i++
  6593. }
  6594. sort.Sort(uintSlice(v2))
  6595. for _, k2 := range v2 {
  6596. if cr != nil {
  6597. cr.sendContainerState(containerMapKey)
  6598. }
  6599. ee.EncodeUint(uint64(uint(k2)))
  6600. if cr != nil {
  6601. cr.sendContainerState(containerMapValue)
  6602. }
  6603. ee.EncodeBool(v[uint(k2)])
  6604. }
  6605. } else {
  6606. for k2, v2 := range v {
  6607. if cr != nil {
  6608. cr.sendContainerState(containerMapKey)
  6609. }
  6610. ee.EncodeUint(uint64(k2))
  6611. if cr != nil {
  6612. cr.sendContainerState(containerMapValue)
  6613. }
  6614. ee.EncodeBool(v2)
  6615. }
  6616. }
  6617. if cr != nil {
  6618. cr.sendContainerState(containerMapEnd)
  6619. }
  6620. }
  6621. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  6622. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  6623. }
  6624. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  6625. ee, cr := e.e, e.cr
  6626. ee.EncodeMapStart(len(v))
  6627. if e.h.Canonical {
  6628. v2 := make([]uint64, len(v))
  6629. var i int
  6630. for k, _ := range v {
  6631. v2[i] = uint64(k)
  6632. i++
  6633. }
  6634. sort.Sort(uintSlice(v2))
  6635. for _, k2 := range v2 {
  6636. if cr != nil {
  6637. cr.sendContainerState(containerMapKey)
  6638. }
  6639. ee.EncodeUint(uint64(uint8(k2)))
  6640. if cr != nil {
  6641. cr.sendContainerState(containerMapValue)
  6642. }
  6643. e.encode(v[uint8(k2)])
  6644. }
  6645. } else {
  6646. for k2, v2 := range v {
  6647. if cr != nil {
  6648. cr.sendContainerState(containerMapKey)
  6649. }
  6650. ee.EncodeUint(uint64(k2))
  6651. if cr != nil {
  6652. cr.sendContainerState(containerMapValue)
  6653. }
  6654. e.encode(v2)
  6655. }
  6656. }
  6657. if cr != nil {
  6658. cr.sendContainerState(containerMapEnd)
  6659. }
  6660. }
  6661. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  6662. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  6663. }
  6664. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  6665. ee, cr := e.e, e.cr
  6666. ee.EncodeMapStart(len(v))
  6667. if e.h.Canonical {
  6668. v2 := make([]uint64, len(v))
  6669. var i int
  6670. for k, _ := range v {
  6671. v2[i] = uint64(k)
  6672. i++
  6673. }
  6674. sort.Sort(uintSlice(v2))
  6675. for _, k2 := range v2 {
  6676. if cr != nil {
  6677. cr.sendContainerState(containerMapKey)
  6678. }
  6679. ee.EncodeUint(uint64(uint8(k2)))
  6680. if cr != nil {
  6681. cr.sendContainerState(containerMapValue)
  6682. }
  6683. ee.EncodeString(c_UTF8, v[uint8(k2)])
  6684. }
  6685. } else {
  6686. for k2, v2 := range v {
  6687. if cr != nil {
  6688. cr.sendContainerState(containerMapKey)
  6689. }
  6690. ee.EncodeUint(uint64(k2))
  6691. if cr != nil {
  6692. cr.sendContainerState(containerMapValue)
  6693. }
  6694. ee.EncodeString(c_UTF8, v2)
  6695. }
  6696. }
  6697. if cr != nil {
  6698. cr.sendContainerState(containerMapEnd)
  6699. }
  6700. }
  6701. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  6702. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  6703. }
  6704. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  6705. ee, cr := e.e, e.cr
  6706. ee.EncodeMapStart(len(v))
  6707. if e.h.Canonical {
  6708. v2 := make([]uint64, len(v))
  6709. var i int
  6710. for k, _ := range v {
  6711. v2[i] = uint64(k)
  6712. i++
  6713. }
  6714. sort.Sort(uintSlice(v2))
  6715. for _, k2 := range v2 {
  6716. if cr != nil {
  6717. cr.sendContainerState(containerMapKey)
  6718. }
  6719. ee.EncodeUint(uint64(uint8(k2)))
  6720. if cr != nil {
  6721. cr.sendContainerState(containerMapValue)
  6722. }
  6723. ee.EncodeUint(uint64(v[uint8(k2)]))
  6724. }
  6725. } else {
  6726. for k2, v2 := range v {
  6727. if cr != nil {
  6728. cr.sendContainerState(containerMapKey)
  6729. }
  6730. ee.EncodeUint(uint64(k2))
  6731. if cr != nil {
  6732. cr.sendContainerState(containerMapValue)
  6733. }
  6734. ee.EncodeUint(uint64(v2))
  6735. }
  6736. }
  6737. if cr != nil {
  6738. cr.sendContainerState(containerMapEnd)
  6739. }
  6740. }
  6741. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  6742. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  6743. }
  6744. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  6745. ee, cr := e.e, e.cr
  6746. ee.EncodeMapStart(len(v))
  6747. if e.h.Canonical {
  6748. v2 := make([]uint64, len(v))
  6749. var i int
  6750. for k, _ := range v {
  6751. v2[i] = uint64(k)
  6752. i++
  6753. }
  6754. sort.Sort(uintSlice(v2))
  6755. for _, k2 := range v2 {
  6756. if cr != nil {
  6757. cr.sendContainerState(containerMapKey)
  6758. }
  6759. ee.EncodeUint(uint64(uint8(k2)))
  6760. if cr != nil {
  6761. cr.sendContainerState(containerMapValue)
  6762. }
  6763. ee.EncodeUint(uint64(v[uint8(k2)]))
  6764. }
  6765. } else {
  6766. for k2, v2 := range v {
  6767. if cr != nil {
  6768. cr.sendContainerState(containerMapKey)
  6769. }
  6770. ee.EncodeUint(uint64(k2))
  6771. if cr != nil {
  6772. cr.sendContainerState(containerMapValue)
  6773. }
  6774. ee.EncodeUint(uint64(v2))
  6775. }
  6776. }
  6777. if cr != nil {
  6778. cr.sendContainerState(containerMapEnd)
  6779. }
  6780. }
  6781. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  6782. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  6783. }
  6784. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  6785. ee, cr := e.e, e.cr
  6786. ee.EncodeMapStart(len(v))
  6787. if e.h.Canonical {
  6788. v2 := make([]uint64, len(v))
  6789. var i int
  6790. for k, _ := range v {
  6791. v2[i] = uint64(k)
  6792. i++
  6793. }
  6794. sort.Sort(uintSlice(v2))
  6795. for _, k2 := range v2 {
  6796. if cr != nil {
  6797. cr.sendContainerState(containerMapKey)
  6798. }
  6799. ee.EncodeUint(uint64(uint8(k2)))
  6800. if cr != nil {
  6801. cr.sendContainerState(containerMapValue)
  6802. }
  6803. ee.EncodeUint(uint64(v[uint8(k2)]))
  6804. }
  6805. } else {
  6806. for k2, v2 := range v {
  6807. if cr != nil {
  6808. cr.sendContainerState(containerMapKey)
  6809. }
  6810. ee.EncodeUint(uint64(k2))
  6811. if cr != nil {
  6812. cr.sendContainerState(containerMapValue)
  6813. }
  6814. ee.EncodeUint(uint64(v2))
  6815. }
  6816. }
  6817. if cr != nil {
  6818. cr.sendContainerState(containerMapEnd)
  6819. }
  6820. }
  6821. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  6822. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  6823. }
  6824. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  6825. ee, cr := e.e, e.cr
  6826. ee.EncodeMapStart(len(v))
  6827. if e.h.Canonical {
  6828. v2 := make([]uint64, len(v))
  6829. var i int
  6830. for k, _ := range v {
  6831. v2[i] = uint64(k)
  6832. i++
  6833. }
  6834. sort.Sort(uintSlice(v2))
  6835. for _, k2 := range v2 {
  6836. if cr != nil {
  6837. cr.sendContainerState(containerMapKey)
  6838. }
  6839. ee.EncodeUint(uint64(uint8(k2)))
  6840. if cr != nil {
  6841. cr.sendContainerState(containerMapValue)
  6842. }
  6843. ee.EncodeUint(uint64(v[uint8(k2)]))
  6844. }
  6845. } else {
  6846. for k2, v2 := range v {
  6847. if cr != nil {
  6848. cr.sendContainerState(containerMapKey)
  6849. }
  6850. ee.EncodeUint(uint64(k2))
  6851. if cr != nil {
  6852. cr.sendContainerState(containerMapValue)
  6853. }
  6854. ee.EncodeUint(uint64(v2))
  6855. }
  6856. }
  6857. if cr != nil {
  6858. cr.sendContainerState(containerMapEnd)
  6859. }
  6860. }
  6861. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  6862. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  6863. }
  6864. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  6865. ee, cr := e.e, e.cr
  6866. ee.EncodeMapStart(len(v))
  6867. if e.h.Canonical {
  6868. v2 := make([]uint64, len(v))
  6869. var i int
  6870. for k, _ := range v {
  6871. v2[i] = uint64(k)
  6872. i++
  6873. }
  6874. sort.Sort(uintSlice(v2))
  6875. for _, k2 := range v2 {
  6876. if cr != nil {
  6877. cr.sendContainerState(containerMapKey)
  6878. }
  6879. ee.EncodeUint(uint64(uint8(k2)))
  6880. if cr != nil {
  6881. cr.sendContainerState(containerMapValue)
  6882. }
  6883. ee.EncodeUint(uint64(v[uint8(k2)]))
  6884. }
  6885. } else {
  6886. for k2, v2 := range v {
  6887. if cr != nil {
  6888. cr.sendContainerState(containerMapKey)
  6889. }
  6890. ee.EncodeUint(uint64(k2))
  6891. if cr != nil {
  6892. cr.sendContainerState(containerMapValue)
  6893. }
  6894. ee.EncodeUint(uint64(v2))
  6895. }
  6896. }
  6897. if cr != nil {
  6898. cr.sendContainerState(containerMapEnd)
  6899. }
  6900. }
  6901. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  6902. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  6903. }
  6904. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  6905. ee, cr := e.e, e.cr
  6906. ee.EncodeMapStart(len(v))
  6907. if e.h.Canonical {
  6908. v2 := make([]uint64, len(v))
  6909. var i int
  6910. for k, _ := range v {
  6911. v2[i] = uint64(k)
  6912. i++
  6913. }
  6914. sort.Sort(uintSlice(v2))
  6915. for _, k2 := range v2 {
  6916. if cr != nil {
  6917. cr.sendContainerState(containerMapKey)
  6918. }
  6919. ee.EncodeUint(uint64(uint8(k2)))
  6920. if cr != nil {
  6921. cr.sendContainerState(containerMapValue)
  6922. }
  6923. e.encode(v[uint8(k2)])
  6924. }
  6925. } else {
  6926. for k2, v2 := range v {
  6927. if cr != nil {
  6928. cr.sendContainerState(containerMapKey)
  6929. }
  6930. ee.EncodeUint(uint64(k2))
  6931. if cr != nil {
  6932. cr.sendContainerState(containerMapValue)
  6933. }
  6934. e.encode(v2)
  6935. }
  6936. }
  6937. if cr != nil {
  6938. cr.sendContainerState(containerMapEnd)
  6939. }
  6940. }
  6941. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  6942. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  6943. }
  6944. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  6945. ee, cr := e.e, e.cr
  6946. ee.EncodeMapStart(len(v))
  6947. if e.h.Canonical {
  6948. v2 := make([]uint64, len(v))
  6949. var i int
  6950. for k, _ := range v {
  6951. v2[i] = uint64(k)
  6952. i++
  6953. }
  6954. sort.Sort(uintSlice(v2))
  6955. for _, k2 := range v2 {
  6956. if cr != nil {
  6957. cr.sendContainerState(containerMapKey)
  6958. }
  6959. ee.EncodeUint(uint64(uint8(k2)))
  6960. if cr != nil {
  6961. cr.sendContainerState(containerMapValue)
  6962. }
  6963. ee.EncodeInt(int64(v[uint8(k2)]))
  6964. }
  6965. } else {
  6966. for k2, v2 := range v {
  6967. if cr != nil {
  6968. cr.sendContainerState(containerMapKey)
  6969. }
  6970. ee.EncodeUint(uint64(k2))
  6971. if cr != nil {
  6972. cr.sendContainerState(containerMapValue)
  6973. }
  6974. ee.EncodeInt(int64(v2))
  6975. }
  6976. }
  6977. if cr != nil {
  6978. cr.sendContainerState(containerMapEnd)
  6979. }
  6980. }
  6981. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  6982. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  6983. }
  6984. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  6985. ee, cr := e.e, e.cr
  6986. ee.EncodeMapStart(len(v))
  6987. if e.h.Canonical {
  6988. v2 := make([]uint64, len(v))
  6989. var i int
  6990. for k, _ := range v {
  6991. v2[i] = uint64(k)
  6992. i++
  6993. }
  6994. sort.Sort(uintSlice(v2))
  6995. for _, k2 := range v2 {
  6996. if cr != nil {
  6997. cr.sendContainerState(containerMapKey)
  6998. }
  6999. ee.EncodeUint(uint64(uint8(k2)))
  7000. if cr != nil {
  7001. cr.sendContainerState(containerMapValue)
  7002. }
  7003. ee.EncodeInt(int64(v[uint8(k2)]))
  7004. }
  7005. } else {
  7006. for k2, v2 := range v {
  7007. if cr != nil {
  7008. cr.sendContainerState(containerMapKey)
  7009. }
  7010. ee.EncodeUint(uint64(k2))
  7011. if cr != nil {
  7012. cr.sendContainerState(containerMapValue)
  7013. }
  7014. ee.EncodeInt(int64(v2))
  7015. }
  7016. }
  7017. if cr != nil {
  7018. cr.sendContainerState(containerMapEnd)
  7019. }
  7020. }
  7021. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  7022. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  7023. }
  7024. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  7025. ee, cr := e.e, e.cr
  7026. ee.EncodeMapStart(len(v))
  7027. if e.h.Canonical {
  7028. v2 := make([]uint64, len(v))
  7029. var i int
  7030. for k, _ := range v {
  7031. v2[i] = uint64(k)
  7032. i++
  7033. }
  7034. sort.Sort(uintSlice(v2))
  7035. for _, k2 := range v2 {
  7036. if cr != nil {
  7037. cr.sendContainerState(containerMapKey)
  7038. }
  7039. ee.EncodeUint(uint64(uint8(k2)))
  7040. if cr != nil {
  7041. cr.sendContainerState(containerMapValue)
  7042. }
  7043. ee.EncodeInt(int64(v[uint8(k2)]))
  7044. }
  7045. } else {
  7046. for k2, v2 := range v {
  7047. if cr != nil {
  7048. cr.sendContainerState(containerMapKey)
  7049. }
  7050. ee.EncodeUint(uint64(k2))
  7051. if cr != nil {
  7052. cr.sendContainerState(containerMapValue)
  7053. }
  7054. ee.EncodeInt(int64(v2))
  7055. }
  7056. }
  7057. if cr != nil {
  7058. cr.sendContainerState(containerMapEnd)
  7059. }
  7060. }
  7061. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  7062. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  7063. }
  7064. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  7065. ee, cr := e.e, e.cr
  7066. ee.EncodeMapStart(len(v))
  7067. if e.h.Canonical {
  7068. v2 := make([]uint64, len(v))
  7069. var i int
  7070. for k, _ := range v {
  7071. v2[i] = uint64(k)
  7072. i++
  7073. }
  7074. sort.Sort(uintSlice(v2))
  7075. for _, k2 := range v2 {
  7076. if cr != nil {
  7077. cr.sendContainerState(containerMapKey)
  7078. }
  7079. ee.EncodeUint(uint64(uint8(k2)))
  7080. if cr != nil {
  7081. cr.sendContainerState(containerMapValue)
  7082. }
  7083. ee.EncodeInt(int64(v[uint8(k2)]))
  7084. }
  7085. } else {
  7086. for k2, v2 := range v {
  7087. if cr != nil {
  7088. cr.sendContainerState(containerMapKey)
  7089. }
  7090. ee.EncodeUint(uint64(k2))
  7091. if cr != nil {
  7092. cr.sendContainerState(containerMapValue)
  7093. }
  7094. ee.EncodeInt(int64(v2))
  7095. }
  7096. }
  7097. if cr != nil {
  7098. cr.sendContainerState(containerMapEnd)
  7099. }
  7100. }
  7101. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  7102. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  7103. }
  7104. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  7105. ee, cr := e.e, e.cr
  7106. ee.EncodeMapStart(len(v))
  7107. if e.h.Canonical {
  7108. v2 := make([]uint64, len(v))
  7109. var i int
  7110. for k, _ := range v {
  7111. v2[i] = uint64(k)
  7112. i++
  7113. }
  7114. sort.Sort(uintSlice(v2))
  7115. for _, k2 := range v2 {
  7116. if cr != nil {
  7117. cr.sendContainerState(containerMapKey)
  7118. }
  7119. ee.EncodeUint(uint64(uint8(k2)))
  7120. if cr != nil {
  7121. cr.sendContainerState(containerMapValue)
  7122. }
  7123. ee.EncodeInt(int64(v[uint8(k2)]))
  7124. }
  7125. } else {
  7126. for k2, v2 := range v {
  7127. if cr != nil {
  7128. cr.sendContainerState(containerMapKey)
  7129. }
  7130. ee.EncodeUint(uint64(k2))
  7131. if cr != nil {
  7132. cr.sendContainerState(containerMapValue)
  7133. }
  7134. ee.EncodeInt(int64(v2))
  7135. }
  7136. }
  7137. if cr != nil {
  7138. cr.sendContainerState(containerMapEnd)
  7139. }
  7140. }
  7141. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  7142. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  7143. }
  7144. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  7145. ee, cr := e.e, e.cr
  7146. ee.EncodeMapStart(len(v))
  7147. if e.h.Canonical {
  7148. v2 := make([]uint64, len(v))
  7149. var i int
  7150. for k, _ := range v {
  7151. v2[i] = uint64(k)
  7152. i++
  7153. }
  7154. sort.Sort(uintSlice(v2))
  7155. for _, k2 := range v2 {
  7156. if cr != nil {
  7157. cr.sendContainerState(containerMapKey)
  7158. }
  7159. ee.EncodeUint(uint64(uint8(k2)))
  7160. if cr != nil {
  7161. cr.sendContainerState(containerMapValue)
  7162. }
  7163. ee.EncodeFloat32(v[uint8(k2)])
  7164. }
  7165. } else {
  7166. for k2, v2 := range v {
  7167. if cr != nil {
  7168. cr.sendContainerState(containerMapKey)
  7169. }
  7170. ee.EncodeUint(uint64(k2))
  7171. if cr != nil {
  7172. cr.sendContainerState(containerMapValue)
  7173. }
  7174. ee.EncodeFloat32(v2)
  7175. }
  7176. }
  7177. if cr != nil {
  7178. cr.sendContainerState(containerMapEnd)
  7179. }
  7180. }
  7181. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  7182. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  7183. }
  7184. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  7185. ee, cr := e.e, e.cr
  7186. ee.EncodeMapStart(len(v))
  7187. if e.h.Canonical {
  7188. v2 := make([]uint64, len(v))
  7189. var i int
  7190. for k, _ := range v {
  7191. v2[i] = uint64(k)
  7192. i++
  7193. }
  7194. sort.Sort(uintSlice(v2))
  7195. for _, k2 := range v2 {
  7196. if cr != nil {
  7197. cr.sendContainerState(containerMapKey)
  7198. }
  7199. ee.EncodeUint(uint64(uint8(k2)))
  7200. if cr != nil {
  7201. cr.sendContainerState(containerMapValue)
  7202. }
  7203. ee.EncodeFloat64(v[uint8(k2)])
  7204. }
  7205. } else {
  7206. for k2, v2 := range v {
  7207. if cr != nil {
  7208. cr.sendContainerState(containerMapKey)
  7209. }
  7210. ee.EncodeUint(uint64(k2))
  7211. if cr != nil {
  7212. cr.sendContainerState(containerMapValue)
  7213. }
  7214. ee.EncodeFloat64(v2)
  7215. }
  7216. }
  7217. if cr != nil {
  7218. cr.sendContainerState(containerMapEnd)
  7219. }
  7220. }
  7221. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  7222. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  7223. }
  7224. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  7225. ee, cr := e.e, e.cr
  7226. ee.EncodeMapStart(len(v))
  7227. if e.h.Canonical {
  7228. v2 := make([]uint64, len(v))
  7229. var i int
  7230. for k, _ := range v {
  7231. v2[i] = uint64(k)
  7232. i++
  7233. }
  7234. sort.Sort(uintSlice(v2))
  7235. for _, k2 := range v2 {
  7236. if cr != nil {
  7237. cr.sendContainerState(containerMapKey)
  7238. }
  7239. ee.EncodeUint(uint64(uint8(k2)))
  7240. if cr != nil {
  7241. cr.sendContainerState(containerMapValue)
  7242. }
  7243. ee.EncodeBool(v[uint8(k2)])
  7244. }
  7245. } else {
  7246. for k2, v2 := range v {
  7247. if cr != nil {
  7248. cr.sendContainerState(containerMapKey)
  7249. }
  7250. ee.EncodeUint(uint64(k2))
  7251. if cr != nil {
  7252. cr.sendContainerState(containerMapValue)
  7253. }
  7254. ee.EncodeBool(v2)
  7255. }
  7256. }
  7257. if cr != nil {
  7258. cr.sendContainerState(containerMapEnd)
  7259. }
  7260. }
  7261. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  7262. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  7263. }
  7264. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  7265. ee, cr := e.e, e.cr
  7266. ee.EncodeMapStart(len(v))
  7267. if e.h.Canonical {
  7268. v2 := make([]uint64, len(v))
  7269. var i int
  7270. for k, _ := range v {
  7271. v2[i] = uint64(k)
  7272. i++
  7273. }
  7274. sort.Sort(uintSlice(v2))
  7275. for _, k2 := range v2 {
  7276. if cr != nil {
  7277. cr.sendContainerState(containerMapKey)
  7278. }
  7279. ee.EncodeUint(uint64(uint16(k2)))
  7280. if cr != nil {
  7281. cr.sendContainerState(containerMapValue)
  7282. }
  7283. e.encode(v[uint16(k2)])
  7284. }
  7285. } else {
  7286. for k2, v2 := range v {
  7287. if cr != nil {
  7288. cr.sendContainerState(containerMapKey)
  7289. }
  7290. ee.EncodeUint(uint64(k2))
  7291. if cr != nil {
  7292. cr.sendContainerState(containerMapValue)
  7293. }
  7294. e.encode(v2)
  7295. }
  7296. }
  7297. if cr != nil {
  7298. cr.sendContainerState(containerMapEnd)
  7299. }
  7300. }
  7301. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  7302. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  7303. }
  7304. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  7305. ee, cr := e.e, e.cr
  7306. ee.EncodeMapStart(len(v))
  7307. if e.h.Canonical {
  7308. v2 := make([]uint64, len(v))
  7309. var i int
  7310. for k, _ := range v {
  7311. v2[i] = uint64(k)
  7312. i++
  7313. }
  7314. sort.Sort(uintSlice(v2))
  7315. for _, k2 := range v2 {
  7316. if cr != nil {
  7317. cr.sendContainerState(containerMapKey)
  7318. }
  7319. ee.EncodeUint(uint64(uint16(k2)))
  7320. if cr != nil {
  7321. cr.sendContainerState(containerMapValue)
  7322. }
  7323. ee.EncodeString(c_UTF8, v[uint16(k2)])
  7324. }
  7325. } else {
  7326. for k2, v2 := range v {
  7327. if cr != nil {
  7328. cr.sendContainerState(containerMapKey)
  7329. }
  7330. ee.EncodeUint(uint64(k2))
  7331. if cr != nil {
  7332. cr.sendContainerState(containerMapValue)
  7333. }
  7334. ee.EncodeString(c_UTF8, v2)
  7335. }
  7336. }
  7337. if cr != nil {
  7338. cr.sendContainerState(containerMapEnd)
  7339. }
  7340. }
  7341. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  7342. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  7343. }
  7344. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
  7345. ee, cr := e.e, e.cr
  7346. ee.EncodeMapStart(len(v))
  7347. if e.h.Canonical {
  7348. v2 := make([]uint64, len(v))
  7349. var i int
  7350. for k, _ := range v {
  7351. v2[i] = uint64(k)
  7352. i++
  7353. }
  7354. sort.Sort(uintSlice(v2))
  7355. for _, k2 := range v2 {
  7356. if cr != nil {
  7357. cr.sendContainerState(containerMapKey)
  7358. }
  7359. ee.EncodeUint(uint64(uint16(k2)))
  7360. if cr != nil {
  7361. cr.sendContainerState(containerMapValue)
  7362. }
  7363. ee.EncodeUint(uint64(v[uint16(k2)]))
  7364. }
  7365. } else {
  7366. for k2, v2 := range v {
  7367. if cr != nil {
  7368. cr.sendContainerState(containerMapKey)
  7369. }
  7370. ee.EncodeUint(uint64(k2))
  7371. if cr != nil {
  7372. cr.sendContainerState(containerMapValue)
  7373. }
  7374. ee.EncodeUint(uint64(v2))
  7375. }
  7376. }
  7377. if cr != nil {
  7378. cr.sendContainerState(containerMapEnd)
  7379. }
  7380. }
  7381. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  7382. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  7383. }
  7384. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  7385. ee, cr := e.e, e.cr
  7386. ee.EncodeMapStart(len(v))
  7387. if e.h.Canonical {
  7388. v2 := make([]uint64, len(v))
  7389. var i int
  7390. for k, _ := range v {
  7391. v2[i] = uint64(k)
  7392. i++
  7393. }
  7394. sort.Sort(uintSlice(v2))
  7395. for _, k2 := range v2 {
  7396. if cr != nil {
  7397. cr.sendContainerState(containerMapKey)
  7398. }
  7399. ee.EncodeUint(uint64(uint16(k2)))
  7400. if cr != nil {
  7401. cr.sendContainerState(containerMapValue)
  7402. }
  7403. ee.EncodeUint(uint64(v[uint16(k2)]))
  7404. }
  7405. } else {
  7406. for k2, v2 := range v {
  7407. if cr != nil {
  7408. cr.sendContainerState(containerMapKey)
  7409. }
  7410. ee.EncodeUint(uint64(k2))
  7411. if cr != nil {
  7412. cr.sendContainerState(containerMapValue)
  7413. }
  7414. ee.EncodeUint(uint64(v2))
  7415. }
  7416. }
  7417. if cr != nil {
  7418. cr.sendContainerState(containerMapEnd)
  7419. }
  7420. }
  7421. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  7422. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  7423. }
  7424. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  7425. ee, cr := e.e, e.cr
  7426. ee.EncodeMapStart(len(v))
  7427. if e.h.Canonical {
  7428. v2 := make([]uint64, len(v))
  7429. var i int
  7430. for k, _ := range v {
  7431. v2[i] = uint64(k)
  7432. i++
  7433. }
  7434. sort.Sort(uintSlice(v2))
  7435. for _, k2 := range v2 {
  7436. if cr != nil {
  7437. cr.sendContainerState(containerMapKey)
  7438. }
  7439. ee.EncodeUint(uint64(uint16(k2)))
  7440. if cr != nil {
  7441. cr.sendContainerState(containerMapValue)
  7442. }
  7443. ee.EncodeUint(uint64(v[uint16(k2)]))
  7444. }
  7445. } else {
  7446. for k2, v2 := range v {
  7447. if cr != nil {
  7448. cr.sendContainerState(containerMapKey)
  7449. }
  7450. ee.EncodeUint(uint64(k2))
  7451. if cr != nil {
  7452. cr.sendContainerState(containerMapValue)
  7453. }
  7454. ee.EncodeUint(uint64(v2))
  7455. }
  7456. }
  7457. if cr != nil {
  7458. cr.sendContainerState(containerMapEnd)
  7459. }
  7460. }
  7461. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  7462. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  7463. }
  7464. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  7465. ee, cr := e.e, e.cr
  7466. ee.EncodeMapStart(len(v))
  7467. if e.h.Canonical {
  7468. v2 := make([]uint64, len(v))
  7469. var i int
  7470. for k, _ := range v {
  7471. v2[i] = uint64(k)
  7472. i++
  7473. }
  7474. sort.Sort(uintSlice(v2))
  7475. for _, k2 := range v2 {
  7476. if cr != nil {
  7477. cr.sendContainerState(containerMapKey)
  7478. }
  7479. ee.EncodeUint(uint64(uint16(k2)))
  7480. if cr != nil {
  7481. cr.sendContainerState(containerMapValue)
  7482. }
  7483. ee.EncodeUint(uint64(v[uint16(k2)]))
  7484. }
  7485. } else {
  7486. for k2, v2 := range v {
  7487. if cr != nil {
  7488. cr.sendContainerState(containerMapKey)
  7489. }
  7490. ee.EncodeUint(uint64(k2))
  7491. if cr != nil {
  7492. cr.sendContainerState(containerMapValue)
  7493. }
  7494. ee.EncodeUint(uint64(v2))
  7495. }
  7496. }
  7497. if cr != nil {
  7498. cr.sendContainerState(containerMapEnd)
  7499. }
  7500. }
  7501. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  7502. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  7503. }
  7504. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  7505. ee, cr := e.e, e.cr
  7506. ee.EncodeMapStart(len(v))
  7507. if e.h.Canonical {
  7508. v2 := make([]uint64, len(v))
  7509. var i int
  7510. for k, _ := range v {
  7511. v2[i] = uint64(k)
  7512. i++
  7513. }
  7514. sort.Sort(uintSlice(v2))
  7515. for _, k2 := range v2 {
  7516. if cr != nil {
  7517. cr.sendContainerState(containerMapKey)
  7518. }
  7519. ee.EncodeUint(uint64(uint16(k2)))
  7520. if cr != nil {
  7521. cr.sendContainerState(containerMapValue)
  7522. }
  7523. ee.EncodeUint(uint64(v[uint16(k2)]))
  7524. }
  7525. } else {
  7526. for k2, v2 := range v {
  7527. if cr != nil {
  7528. cr.sendContainerState(containerMapKey)
  7529. }
  7530. ee.EncodeUint(uint64(k2))
  7531. if cr != nil {
  7532. cr.sendContainerState(containerMapValue)
  7533. }
  7534. ee.EncodeUint(uint64(v2))
  7535. }
  7536. }
  7537. if cr != nil {
  7538. cr.sendContainerState(containerMapEnd)
  7539. }
  7540. }
  7541. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  7542. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  7543. }
  7544. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  7545. ee, cr := e.e, e.cr
  7546. ee.EncodeMapStart(len(v))
  7547. if e.h.Canonical {
  7548. v2 := make([]uint64, len(v))
  7549. var i int
  7550. for k, _ := range v {
  7551. v2[i] = uint64(k)
  7552. i++
  7553. }
  7554. sort.Sort(uintSlice(v2))
  7555. for _, k2 := range v2 {
  7556. if cr != nil {
  7557. cr.sendContainerState(containerMapKey)
  7558. }
  7559. ee.EncodeUint(uint64(uint16(k2)))
  7560. if cr != nil {
  7561. cr.sendContainerState(containerMapValue)
  7562. }
  7563. e.encode(v[uint16(k2)])
  7564. }
  7565. } else {
  7566. for k2, v2 := range v {
  7567. if cr != nil {
  7568. cr.sendContainerState(containerMapKey)
  7569. }
  7570. ee.EncodeUint(uint64(k2))
  7571. if cr != nil {
  7572. cr.sendContainerState(containerMapValue)
  7573. }
  7574. e.encode(v2)
  7575. }
  7576. }
  7577. if cr != nil {
  7578. cr.sendContainerState(containerMapEnd)
  7579. }
  7580. }
  7581. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  7582. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  7583. }
  7584. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  7585. ee, cr := e.e, e.cr
  7586. ee.EncodeMapStart(len(v))
  7587. if e.h.Canonical {
  7588. v2 := make([]uint64, len(v))
  7589. var i int
  7590. for k, _ := range v {
  7591. v2[i] = uint64(k)
  7592. i++
  7593. }
  7594. sort.Sort(uintSlice(v2))
  7595. for _, k2 := range v2 {
  7596. if cr != nil {
  7597. cr.sendContainerState(containerMapKey)
  7598. }
  7599. ee.EncodeUint(uint64(uint16(k2)))
  7600. if cr != nil {
  7601. cr.sendContainerState(containerMapValue)
  7602. }
  7603. ee.EncodeInt(int64(v[uint16(k2)]))
  7604. }
  7605. } else {
  7606. for k2, v2 := range v {
  7607. if cr != nil {
  7608. cr.sendContainerState(containerMapKey)
  7609. }
  7610. ee.EncodeUint(uint64(k2))
  7611. if cr != nil {
  7612. cr.sendContainerState(containerMapValue)
  7613. }
  7614. ee.EncodeInt(int64(v2))
  7615. }
  7616. }
  7617. if cr != nil {
  7618. cr.sendContainerState(containerMapEnd)
  7619. }
  7620. }
  7621. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  7622. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  7623. }
  7624. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  7625. ee, cr := e.e, e.cr
  7626. ee.EncodeMapStart(len(v))
  7627. if e.h.Canonical {
  7628. v2 := make([]uint64, len(v))
  7629. var i int
  7630. for k, _ := range v {
  7631. v2[i] = uint64(k)
  7632. i++
  7633. }
  7634. sort.Sort(uintSlice(v2))
  7635. for _, k2 := range v2 {
  7636. if cr != nil {
  7637. cr.sendContainerState(containerMapKey)
  7638. }
  7639. ee.EncodeUint(uint64(uint16(k2)))
  7640. if cr != nil {
  7641. cr.sendContainerState(containerMapValue)
  7642. }
  7643. ee.EncodeInt(int64(v[uint16(k2)]))
  7644. }
  7645. } else {
  7646. for k2, v2 := range v {
  7647. if cr != nil {
  7648. cr.sendContainerState(containerMapKey)
  7649. }
  7650. ee.EncodeUint(uint64(k2))
  7651. if cr != nil {
  7652. cr.sendContainerState(containerMapValue)
  7653. }
  7654. ee.EncodeInt(int64(v2))
  7655. }
  7656. }
  7657. if cr != nil {
  7658. cr.sendContainerState(containerMapEnd)
  7659. }
  7660. }
  7661. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  7662. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  7663. }
  7664. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
  7665. ee, cr := e.e, e.cr
  7666. ee.EncodeMapStart(len(v))
  7667. if e.h.Canonical {
  7668. v2 := make([]uint64, len(v))
  7669. var i int
  7670. for k, _ := range v {
  7671. v2[i] = uint64(k)
  7672. i++
  7673. }
  7674. sort.Sort(uintSlice(v2))
  7675. for _, k2 := range v2 {
  7676. if cr != nil {
  7677. cr.sendContainerState(containerMapKey)
  7678. }
  7679. ee.EncodeUint(uint64(uint16(k2)))
  7680. if cr != nil {
  7681. cr.sendContainerState(containerMapValue)
  7682. }
  7683. ee.EncodeInt(int64(v[uint16(k2)]))
  7684. }
  7685. } else {
  7686. for k2, v2 := range v {
  7687. if cr != nil {
  7688. cr.sendContainerState(containerMapKey)
  7689. }
  7690. ee.EncodeUint(uint64(k2))
  7691. if cr != nil {
  7692. cr.sendContainerState(containerMapValue)
  7693. }
  7694. ee.EncodeInt(int64(v2))
  7695. }
  7696. }
  7697. if cr != nil {
  7698. cr.sendContainerState(containerMapEnd)
  7699. }
  7700. }
  7701. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  7702. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  7703. }
  7704. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  7705. ee, cr := e.e, e.cr
  7706. ee.EncodeMapStart(len(v))
  7707. if e.h.Canonical {
  7708. v2 := make([]uint64, len(v))
  7709. var i int
  7710. for k, _ := range v {
  7711. v2[i] = uint64(k)
  7712. i++
  7713. }
  7714. sort.Sort(uintSlice(v2))
  7715. for _, k2 := range v2 {
  7716. if cr != nil {
  7717. cr.sendContainerState(containerMapKey)
  7718. }
  7719. ee.EncodeUint(uint64(uint16(k2)))
  7720. if cr != nil {
  7721. cr.sendContainerState(containerMapValue)
  7722. }
  7723. ee.EncodeInt(int64(v[uint16(k2)]))
  7724. }
  7725. } else {
  7726. for k2, v2 := range v {
  7727. if cr != nil {
  7728. cr.sendContainerState(containerMapKey)
  7729. }
  7730. ee.EncodeUint(uint64(k2))
  7731. if cr != nil {
  7732. cr.sendContainerState(containerMapValue)
  7733. }
  7734. ee.EncodeInt(int64(v2))
  7735. }
  7736. }
  7737. if cr != nil {
  7738. cr.sendContainerState(containerMapEnd)
  7739. }
  7740. }
  7741. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  7742. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  7743. }
  7744. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  7745. ee, cr := e.e, e.cr
  7746. ee.EncodeMapStart(len(v))
  7747. if e.h.Canonical {
  7748. v2 := make([]uint64, len(v))
  7749. var i int
  7750. for k, _ := range v {
  7751. v2[i] = uint64(k)
  7752. i++
  7753. }
  7754. sort.Sort(uintSlice(v2))
  7755. for _, k2 := range v2 {
  7756. if cr != nil {
  7757. cr.sendContainerState(containerMapKey)
  7758. }
  7759. ee.EncodeUint(uint64(uint16(k2)))
  7760. if cr != nil {
  7761. cr.sendContainerState(containerMapValue)
  7762. }
  7763. ee.EncodeInt(int64(v[uint16(k2)]))
  7764. }
  7765. } else {
  7766. for k2, v2 := range v {
  7767. if cr != nil {
  7768. cr.sendContainerState(containerMapKey)
  7769. }
  7770. ee.EncodeUint(uint64(k2))
  7771. if cr != nil {
  7772. cr.sendContainerState(containerMapValue)
  7773. }
  7774. ee.EncodeInt(int64(v2))
  7775. }
  7776. }
  7777. if cr != nil {
  7778. cr.sendContainerState(containerMapEnd)
  7779. }
  7780. }
  7781. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  7782. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  7783. }
  7784. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  7785. ee, cr := e.e, e.cr
  7786. ee.EncodeMapStart(len(v))
  7787. if e.h.Canonical {
  7788. v2 := make([]uint64, len(v))
  7789. var i int
  7790. for k, _ := range v {
  7791. v2[i] = uint64(k)
  7792. i++
  7793. }
  7794. sort.Sort(uintSlice(v2))
  7795. for _, k2 := range v2 {
  7796. if cr != nil {
  7797. cr.sendContainerState(containerMapKey)
  7798. }
  7799. ee.EncodeUint(uint64(uint16(k2)))
  7800. if cr != nil {
  7801. cr.sendContainerState(containerMapValue)
  7802. }
  7803. ee.EncodeFloat32(v[uint16(k2)])
  7804. }
  7805. } else {
  7806. for k2, v2 := range v {
  7807. if cr != nil {
  7808. cr.sendContainerState(containerMapKey)
  7809. }
  7810. ee.EncodeUint(uint64(k2))
  7811. if cr != nil {
  7812. cr.sendContainerState(containerMapValue)
  7813. }
  7814. ee.EncodeFloat32(v2)
  7815. }
  7816. }
  7817. if cr != nil {
  7818. cr.sendContainerState(containerMapEnd)
  7819. }
  7820. }
  7821. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  7822. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  7823. }
  7824. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  7825. ee, cr := e.e, e.cr
  7826. ee.EncodeMapStart(len(v))
  7827. if e.h.Canonical {
  7828. v2 := make([]uint64, len(v))
  7829. var i int
  7830. for k, _ := range v {
  7831. v2[i] = uint64(k)
  7832. i++
  7833. }
  7834. sort.Sort(uintSlice(v2))
  7835. for _, k2 := range v2 {
  7836. if cr != nil {
  7837. cr.sendContainerState(containerMapKey)
  7838. }
  7839. ee.EncodeUint(uint64(uint16(k2)))
  7840. if cr != nil {
  7841. cr.sendContainerState(containerMapValue)
  7842. }
  7843. ee.EncodeFloat64(v[uint16(k2)])
  7844. }
  7845. } else {
  7846. for k2, v2 := range v {
  7847. if cr != nil {
  7848. cr.sendContainerState(containerMapKey)
  7849. }
  7850. ee.EncodeUint(uint64(k2))
  7851. if cr != nil {
  7852. cr.sendContainerState(containerMapValue)
  7853. }
  7854. ee.EncodeFloat64(v2)
  7855. }
  7856. }
  7857. if cr != nil {
  7858. cr.sendContainerState(containerMapEnd)
  7859. }
  7860. }
  7861. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  7862. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  7863. }
  7864. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  7865. ee, cr := e.e, e.cr
  7866. ee.EncodeMapStart(len(v))
  7867. if e.h.Canonical {
  7868. v2 := make([]uint64, len(v))
  7869. var i int
  7870. for k, _ := range v {
  7871. v2[i] = uint64(k)
  7872. i++
  7873. }
  7874. sort.Sort(uintSlice(v2))
  7875. for _, k2 := range v2 {
  7876. if cr != nil {
  7877. cr.sendContainerState(containerMapKey)
  7878. }
  7879. ee.EncodeUint(uint64(uint16(k2)))
  7880. if cr != nil {
  7881. cr.sendContainerState(containerMapValue)
  7882. }
  7883. ee.EncodeBool(v[uint16(k2)])
  7884. }
  7885. } else {
  7886. for k2, v2 := range v {
  7887. if cr != nil {
  7888. cr.sendContainerState(containerMapKey)
  7889. }
  7890. ee.EncodeUint(uint64(k2))
  7891. if cr != nil {
  7892. cr.sendContainerState(containerMapValue)
  7893. }
  7894. ee.EncodeBool(v2)
  7895. }
  7896. }
  7897. if cr != nil {
  7898. cr.sendContainerState(containerMapEnd)
  7899. }
  7900. }
  7901. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  7902. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  7903. }
  7904. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  7905. ee, cr := e.e, e.cr
  7906. ee.EncodeMapStart(len(v))
  7907. if e.h.Canonical {
  7908. v2 := make([]uint64, len(v))
  7909. var i int
  7910. for k, _ := range v {
  7911. v2[i] = uint64(k)
  7912. i++
  7913. }
  7914. sort.Sort(uintSlice(v2))
  7915. for _, k2 := range v2 {
  7916. if cr != nil {
  7917. cr.sendContainerState(containerMapKey)
  7918. }
  7919. ee.EncodeUint(uint64(uint32(k2)))
  7920. if cr != nil {
  7921. cr.sendContainerState(containerMapValue)
  7922. }
  7923. e.encode(v[uint32(k2)])
  7924. }
  7925. } else {
  7926. for k2, v2 := range v {
  7927. if cr != nil {
  7928. cr.sendContainerState(containerMapKey)
  7929. }
  7930. ee.EncodeUint(uint64(k2))
  7931. if cr != nil {
  7932. cr.sendContainerState(containerMapValue)
  7933. }
  7934. e.encode(v2)
  7935. }
  7936. }
  7937. if cr != nil {
  7938. cr.sendContainerState(containerMapEnd)
  7939. }
  7940. }
  7941. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  7942. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  7943. }
  7944. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  7945. ee, cr := e.e, e.cr
  7946. ee.EncodeMapStart(len(v))
  7947. if e.h.Canonical {
  7948. v2 := make([]uint64, len(v))
  7949. var i int
  7950. for k, _ := range v {
  7951. v2[i] = uint64(k)
  7952. i++
  7953. }
  7954. sort.Sort(uintSlice(v2))
  7955. for _, k2 := range v2 {
  7956. if cr != nil {
  7957. cr.sendContainerState(containerMapKey)
  7958. }
  7959. ee.EncodeUint(uint64(uint32(k2)))
  7960. if cr != nil {
  7961. cr.sendContainerState(containerMapValue)
  7962. }
  7963. ee.EncodeString(c_UTF8, v[uint32(k2)])
  7964. }
  7965. } else {
  7966. for k2, v2 := range v {
  7967. if cr != nil {
  7968. cr.sendContainerState(containerMapKey)
  7969. }
  7970. ee.EncodeUint(uint64(k2))
  7971. if cr != nil {
  7972. cr.sendContainerState(containerMapValue)
  7973. }
  7974. ee.EncodeString(c_UTF8, v2)
  7975. }
  7976. }
  7977. if cr != nil {
  7978. cr.sendContainerState(containerMapEnd)
  7979. }
  7980. }
  7981. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  7982. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  7983. }
  7984. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  7985. ee, cr := e.e, e.cr
  7986. ee.EncodeMapStart(len(v))
  7987. if e.h.Canonical {
  7988. v2 := make([]uint64, len(v))
  7989. var i int
  7990. for k, _ := range v {
  7991. v2[i] = uint64(k)
  7992. i++
  7993. }
  7994. sort.Sort(uintSlice(v2))
  7995. for _, k2 := range v2 {
  7996. if cr != nil {
  7997. cr.sendContainerState(containerMapKey)
  7998. }
  7999. ee.EncodeUint(uint64(uint32(k2)))
  8000. if cr != nil {
  8001. cr.sendContainerState(containerMapValue)
  8002. }
  8003. ee.EncodeUint(uint64(v[uint32(k2)]))
  8004. }
  8005. } else {
  8006. for k2, v2 := range v {
  8007. if cr != nil {
  8008. cr.sendContainerState(containerMapKey)
  8009. }
  8010. ee.EncodeUint(uint64(k2))
  8011. if cr != nil {
  8012. cr.sendContainerState(containerMapValue)
  8013. }
  8014. ee.EncodeUint(uint64(v2))
  8015. }
  8016. }
  8017. if cr != nil {
  8018. cr.sendContainerState(containerMapEnd)
  8019. }
  8020. }
  8021. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  8022. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  8023. }
  8024. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  8025. ee, cr := e.e, e.cr
  8026. ee.EncodeMapStart(len(v))
  8027. if e.h.Canonical {
  8028. v2 := make([]uint64, len(v))
  8029. var i int
  8030. for k, _ := range v {
  8031. v2[i] = uint64(k)
  8032. i++
  8033. }
  8034. sort.Sort(uintSlice(v2))
  8035. for _, k2 := range v2 {
  8036. if cr != nil {
  8037. cr.sendContainerState(containerMapKey)
  8038. }
  8039. ee.EncodeUint(uint64(uint32(k2)))
  8040. if cr != nil {
  8041. cr.sendContainerState(containerMapValue)
  8042. }
  8043. ee.EncodeUint(uint64(v[uint32(k2)]))
  8044. }
  8045. } else {
  8046. for k2, v2 := range v {
  8047. if cr != nil {
  8048. cr.sendContainerState(containerMapKey)
  8049. }
  8050. ee.EncodeUint(uint64(k2))
  8051. if cr != nil {
  8052. cr.sendContainerState(containerMapValue)
  8053. }
  8054. ee.EncodeUint(uint64(v2))
  8055. }
  8056. }
  8057. if cr != nil {
  8058. cr.sendContainerState(containerMapEnd)
  8059. }
  8060. }
  8061. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  8062. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  8063. }
  8064. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  8065. ee, cr := e.e, e.cr
  8066. ee.EncodeMapStart(len(v))
  8067. if e.h.Canonical {
  8068. v2 := make([]uint64, len(v))
  8069. var i int
  8070. for k, _ := range v {
  8071. v2[i] = uint64(k)
  8072. i++
  8073. }
  8074. sort.Sort(uintSlice(v2))
  8075. for _, k2 := range v2 {
  8076. if cr != nil {
  8077. cr.sendContainerState(containerMapKey)
  8078. }
  8079. ee.EncodeUint(uint64(uint32(k2)))
  8080. if cr != nil {
  8081. cr.sendContainerState(containerMapValue)
  8082. }
  8083. ee.EncodeUint(uint64(v[uint32(k2)]))
  8084. }
  8085. } else {
  8086. for k2, v2 := range v {
  8087. if cr != nil {
  8088. cr.sendContainerState(containerMapKey)
  8089. }
  8090. ee.EncodeUint(uint64(k2))
  8091. if cr != nil {
  8092. cr.sendContainerState(containerMapValue)
  8093. }
  8094. ee.EncodeUint(uint64(v2))
  8095. }
  8096. }
  8097. if cr != nil {
  8098. cr.sendContainerState(containerMapEnd)
  8099. }
  8100. }
  8101. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  8102. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  8103. }
  8104. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  8105. ee, cr := e.e, e.cr
  8106. ee.EncodeMapStart(len(v))
  8107. if e.h.Canonical {
  8108. v2 := make([]uint64, len(v))
  8109. var i int
  8110. for k, _ := range v {
  8111. v2[i] = uint64(k)
  8112. i++
  8113. }
  8114. sort.Sort(uintSlice(v2))
  8115. for _, k2 := range v2 {
  8116. if cr != nil {
  8117. cr.sendContainerState(containerMapKey)
  8118. }
  8119. ee.EncodeUint(uint64(uint32(k2)))
  8120. if cr != nil {
  8121. cr.sendContainerState(containerMapValue)
  8122. }
  8123. ee.EncodeUint(uint64(v[uint32(k2)]))
  8124. }
  8125. } else {
  8126. for k2, v2 := range v {
  8127. if cr != nil {
  8128. cr.sendContainerState(containerMapKey)
  8129. }
  8130. ee.EncodeUint(uint64(k2))
  8131. if cr != nil {
  8132. cr.sendContainerState(containerMapValue)
  8133. }
  8134. ee.EncodeUint(uint64(v2))
  8135. }
  8136. }
  8137. if cr != nil {
  8138. cr.sendContainerState(containerMapEnd)
  8139. }
  8140. }
  8141. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  8142. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  8143. }
  8144. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  8145. ee, cr := e.e, e.cr
  8146. ee.EncodeMapStart(len(v))
  8147. if e.h.Canonical {
  8148. v2 := make([]uint64, len(v))
  8149. var i int
  8150. for k, _ := range v {
  8151. v2[i] = uint64(k)
  8152. i++
  8153. }
  8154. sort.Sort(uintSlice(v2))
  8155. for _, k2 := range v2 {
  8156. if cr != nil {
  8157. cr.sendContainerState(containerMapKey)
  8158. }
  8159. ee.EncodeUint(uint64(uint32(k2)))
  8160. if cr != nil {
  8161. cr.sendContainerState(containerMapValue)
  8162. }
  8163. ee.EncodeUint(uint64(v[uint32(k2)]))
  8164. }
  8165. } else {
  8166. for k2, v2 := range v {
  8167. if cr != nil {
  8168. cr.sendContainerState(containerMapKey)
  8169. }
  8170. ee.EncodeUint(uint64(k2))
  8171. if cr != nil {
  8172. cr.sendContainerState(containerMapValue)
  8173. }
  8174. ee.EncodeUint(uint64(v2))
  8175. }
  8176. }
  8177. if cr != nil {
  8178. cr.sendContainerState(containerMapEnd)
  8179. }
  8180. }
  8181. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  8182. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  8183. }
  8184. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  8185. ee, cr := e.e, e.cr
  8186. ee.EncodeMapStart(len(v))
  8187. if e.h.Canonical {
  8188. v2 := make([]uint64, len(v))
  8189. var i int
  8190. for k, _ := range v {
  8191. v2[i] = uint64(k)
  8192. i++
  8193. }
  8194. sort.Sort(uintSlice(v2))
  8195. for _, k2 := range v2 {
  8196. if cr != nil {
  8197. cr.sendContainerState(containerMapKey)
  8198. }
  8199. ee.EncodeUint(uint64(uint32(k2)))
  8200. if cr != nil {
  8201. cr.sendContainerState(containerMapValue)
  8202. }
  8203. e.encode(v[uint32(k2)])
  8204. }
  8205. } else {
  8206. for k2, v2 := range v {
  8207. if cr != nil {
  8208. cr.sendContainerState(containerMapKey)
  8209. }
  8210. ee.EncodeUint(uint64(k2))
  8211. if cr != nil {
  8212. cr.sendContainerState(containerMapValue)
  8213. }
  8214. e.encode(v2)
  8215. }
  8216. }
  8217. if cr != nil {
  8218. cr.sendContainerState(containerMapEnd)
  8219. }
  8220. }
  8221. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  8222. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  8223. }
  8224. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  8225. ee, cr := e.e, e.cr
  8226. ee.EncodeMapStart(len(v))
  8227. if e.h.Canonical {
  8228. v2 := make([]uint64, len(v))
  8229. var i int
  8230. for k, _ := range v {
  8231. v2[i] = uint64(k)
  8232. i++
  8233. }
  8234. sort.Sort(uintSlice(v2))
  8235. for _, k2 := range v2 {
  8236. if cr != nil {
  8237. cr.sendContainerState(containerMapKey)
  8238. }
  8239. ee.EncodeUint(uint64(uint32(k2)))
  8240. if cr != nil {
  8241. cr.sendContainerState(containerMapValue)
  8242. }
  8243. ee.EncodeInt(int64(v[uint32(k2)]))
  8244. }
  8245. } else {
  8246. for k2, v2 := range v {
  8247. if cr != nil {
  8248. cr.sendContainerState(containerMapKey)
  8249. }
  8250. ee.EncodeUint(uint64(k2))
  8251. if cr != nil {
  8252. cr.sendContainerState(containerMapValue)
  8253. }
  8254. ee.EncodeInt(int64(v2))
  8255. }
  8256. }
  8257. if cr != nil {
  8258. cr.sendContainerState(containerMapEnd)
  8259. }
  8260. }
  8261. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  8262. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  8263. }
  8264. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  8265. ee, cr := e.e, e.cr
  8266. ee.EncodeMapStart(len(v))
  8267. if e.h.Canonical {
  8268. v2 := make([]uint64, len(v))
  8269. var i int
  8270. for k, _ := range v {
  8271. v2[i] = uint64(k)
  8272. i++
  8273. }
  8274. sort.Sort(uintSlice(v2))
  8275. for _, k2 := range v2 {
  8276. if cr != nil {
  8277. cr.sendContainerState(containerMapKey)
  8278. }
  8279. ee.EncodeUint(uint64(uint32(k2)))
  8280. if cr != nil {
  8281. cr.sendContainerState(containerMapValue)
  8282. }
  8283. ee.EncodeInt(int64(v[uint32(k2)]))
  8284. }
  8285. } else {
  8286. for k2, v2 := range v {
  8287. if cr != nil {
  8288. cr.sendContainerState(containerMapKey)
  8289. }
  8290. ee.EncodeUint(uint64(k2))
  8291. if cr != nil {
  8292. cr.sendContainerState(containerMapValue)
  8293. }
  8294. ee.EncodeInt(int64(v2))
  8295. }
  8296. }
  8297. if cr != nil {
  8298. cr.sendContainerState(containerMapEnd)
  8299. }
  8300. }
  8301. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  8302. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  8303. }
  8304. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  8305. ee, cr := e.e, e.cr
  8306. ee.EncodeMapStart(len(v))
  8307. if e.h.Canonical {
  8308. v2 := make([]uint64, len(v))
  8309. var i int
  8310. for k, _ := range v {
  8311. v2[i] = uint64(k)
  8312. i++
  8313. }
  8314. sort.Sort(uintSlice(v2))
  8315. for _, k2 := range v2 {
  8316. if cr != nil {
  8317. cr.sendContainerState(containerMapKey)
  8318. }
  8319. ee.EncodeUint(uint64(uint32(k2)))
  8320. if cr != nil {
  8321. cr.sendContainerState(containerMapValue)
  8322. }
  8323. ee.EncodeInt(int64(v[uint32(k2)]))
  8324. }
  8325. } else {
  8326. for k2, v2 := range v {
  8327. if cr != nil {
  8328. cr.sendContainerState(containerMapKey)
  8329. }
  8330. ee.EncodeUint(uint64(k2))
  8331. if cr != nil {
  8332. cr.sendContainerState(containerMapValue)
  8333. }
  8334. ee.EncodeInt(int64(v2))
  8335. }
  8336. }
  8337. if cr != nil {
  8338. cr.sendContainerState(containerMapEnd)
  8339. }
  8340. }
  8341. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  8342. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  8343. }
  8344. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  8345. ee, cr := e.e, e.cr
  8346. ee.EncodeMapStart(len(v))
  8347. if e.h.Canonical {
  8348. v2 := make([]uint64, len(v))
  8349. var i int
  8350. for k, _ := range v {
  8351. v2[i] = uint64(k)
  8352. i++
  8353. }
  8354. sort.Sort(uintSlice(v2))
  8355. for _, k2 := range v2 {
  8356. if cr != nil {
  8357. cr.sendContainerState(containerMapKey)
  8358. }
  8359. ee.EncodeUint(uint64(uint32(k2)))
  8360. if cr != nil {
  8361. cr.sendContainerState(containerMapValue)
  8362. }
  8363. ee.EncodeInt(int64(v[uint32(k2)]))
  8364. }
  8365. } else {
  8366. for k2, v2 := range v {
  8367. if cr != nil {
  8368. cr.sendContainerState(containerMapKey)
  8369. }
  8370. ee.EncodeUint(uint64(k2))
  8371. if cr != nil {
  8372. cr.sendContainerState(containerMapValue)
  8373. }
  8374. ee.EncodeInt(int64(v2))
  8375. }
  8376. }
  8377. if cr != nil {
  8378. cr.sendContainerState(containerMapEnd)
  8379. }
  8380. }
  8381. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  8382. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  8383. }
  8384. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  8385. ee, cr := e.e, e.cr
  8386. ee.EncodeMapStart(len(v))
  8387. if e.h.Canonical {
  8388. v2 := make([]uint64, len(v))
  8389. var i int
  8390. for k, _ := range v {
  8391. v2[i] = uint64(k)
  8392. i++
  8393. }
  8394. sort.Sort(uintSlice(v2))
  8395. for _, k2 := range v2 {
  8396. if cr != nil {
  8397. cr.sendContainerState(containerMapKey)
  8398. }
  8399. ee.EncodeUint(uint64(uint32(k2)))
  8400. if cr != nil {
  8401. cr.sendContainerState(containerMapValue)
  8402. }
  8403. ee.EncodeInt(int64(v[uint32(k2)]))
  8404. }
  8405. } else {
  8406. for k2, v2 := range v {
  8407. if cr != nil {
  8408. cr.sendContainerState(containerMapKey)
  8409. }
  8410. ee.EncodeUint(uint64(k2))
  8411. if cr != nil {
  8412. cr.sendContainerState(containerMapValue)
  8413. }
  8414. ee.EncodeInt(int64(v2))
  8415. }
  8416. }
  8417. if cr != nil {
  8418. cr.sendContainerState(containerMapEnd)
  8419. }
  8420. }
  8421. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  8422. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  8423. }
  8424. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  8425. ee, cr := e.e, e.cr
  8426. ee.EncodeMapStart(len(v))
  8427. if e.h.Canonical {
  8428. v2 := make([]uint64, len(v))
  8429. var i int
  8430. for k, _ := range v {
  8431. v2[i] = uint64(k)
  8432. i++
  8433. }
  8434. sort.Sort(uintSlice(v2))
  8435. for _, k2 := range v2 {
  8436. if cr != nil {
  8437. cr.sendContainerState(containerMapKey)
  8438. }
  8439. ee.EncodeUint(uint64(uint32(k2)))
  8440. if cr != nil {
  8441. cr.sendContainerState(containerMapValue)
  8442. }
  8443. ee.EncodeFloat32(v[uint32(k2)])
  8444. }
  8445. } else {
  8446. for k2, v2 := range v {
  8447. if cr != nil {
  8448. cr.sendContainerState(containerMapKey)
  8449. }
  8450. ee.EncodeUint(uint64(k2))
  8451. if cr != nil {
  8452. cr.sendContainerState(containerMapValue)
  8453. }
  8454. ee.EncodeFloat32(v2)
  8455. }
  8456. }
  8457. if cr != nil {
  8458. cr.sendContainerState(containerMapEnd)
  8459. }
  8460. }
  8461. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  8462. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  8463. }
  8464. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  8465. ee, cr := e.e, e.cr
  8466. ee.EncodeMapStart(len(v))
  8467. if e.h.Canonical {
  8468. v2 := make([]uint64, len(v))
  8469. var i int
  8470. for k, _ := range v {
  8471. v2[i] = uint64(k)
  8472. i++
  8473. }
  8474. sort.Sort(uintSlice(v2))
  8475. for _, k2 := range v2 {
  8476. if cr != nil {
  8477. cr.sendContainerState(containerMapKey)
  8478. }
  8479. ee.EncodeUint(uint64(uint32(k2)))
  8480. if cr != nil {
  8481. cr.sendContainerState(containerMapValue)
  8482. }
  8483. ee.EncodeFloat64(v[uint32(k2)])
  8484. }
  8485. } else {
  8486. for k2, v2 := range v {
  8487. if cr != nil {
  8488. cr.sendContainerState(containerMapKey)
  8489. }
  8490. ee.EncodeUint(uint64(k2))
  8491. if cr != nil {
  8492. cr.sendContainerState(containerMapValue)
  8493. }
  8494. ee.EncodeFloat64(v2)
  8495. }
  8496. }
  8497. if cr != nil {
  8498. cr.sendContainerState(containerMapEnd)
  8499. }
  8500. }
  8501. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  8502. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  8503. }
  8504. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  8505. ee, cr := e.e, e.cr
  8506. ee.EncodeMapStart(len(v))
  8507. if e.h.Canonical {
  8508. v2 := make([]uint64, len(v))
  8509. var i int
  8510. for k, _ := range v {
  8511. v2[i] = uint64(k)
  8512. i++
  8513. }
  8514. sort.Sort(uintSlice(v2))
  8515. for _, k2 := range v2 {
  8516. if cr != nil {
  8517. cr.sendContainerState(containerMapKey)
  8518. }
  8519. ee.EncodeUint(uint64(uint32(k2)))
  8520. if cr != nil {
  8521. cr.sendContainerState(containerMapValue)
  8522. }
  8523. ee.EncodeBool(v[uint32(k2)])
  8524. }
  8525. } else {
  8526. for k2, v2 := range v {
  8527. if cr != nil {
  8528. cr.sendContainerState(containerMapKey)
  8529. }
  8530. ee.EncodeUint(uint64(k2))
  8531. if cr != nil {
  8532. cr.sendContainerState(containerMapValue)
  8533. }
  8534. ee.EncodeBool(v2)
  8535. }
  8536. }
  8537. if cr != nil {
  8538. cr.sendContainerState(containerMapEnd)
  8539. }
  8540. }
  8541. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  8542. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  8543. }
  8544. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  8545. ee, cr := e.e, e.cr
  8546. ee.EncodeMapStart(len(v))
  8547. if e.h.Canonical {
  8548. v2 := make([]uint64, len(v))
  8549. var i int
  8550. for k, _ := range v {
  8551. v2[i] = uint64(k)
  8552. i++
  8553. }
  8554. sort.Sort(uintSlice(v2))
  8555. for _, k2 := range v2 {
  8556. if cr != nil {
  8557. cr.sendContainerState(containerMapKey)
  8558. }
  8559. ee.EncodeUint(uint64(uint64(k2)))
  8560. if cr != nil {
  8561. cr.sendContainerState(containerMapValue)
  8562. }
  8563. e.encode(v[uint64(k2)])
  8564. }
  8565. } else {
  8566. for k2, v2 := range v {
  8567. if cr != nil {
  8568. cr.sendContainerState(containerMapKey)
  8569. }
  8570. ee.EncodeUint(uint64(k2))
  8571. if cr != nil {
  8572. cr.sendContainerState(containerMapValue)
  8573. }
  8574. e.encode(v2)
  8575. }
  8576. }
  8577. if cr != nil {
  8578. cr.sendContainerState(containerMapEnd)
  8579. }
  8580. }
  8581. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  8582. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  8583. }
  8584. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  8585. ee, cr := e.e, e.cr
  8586. ee.EncodeMapStart(len(v))
  8587. if e.h.Canonical {
  8588. v2 := make([]uint64, len(v))
  8589. var i int
  8590. for k, _ := range v {
  8591. v2[i] = uint64(k)
  8592. i++
  8593. }
  8594. sort.Sort(uintSlice(v2))
  8595. for _, k2 := range v2 {
  8596. if cr != nil {
  8597. cr.sendContainerState(containerMapKey)
  8598. }
  8599. ee.EncodeUint(uint64(uint64(k2)))
  8600. if cr != nil {
  8601. cr.sendContainerState(containerMapValue)
  8602. }
  8603. ee.EncodeString(c_UTF8, v[uint64(k2)])
  8604. }
  8605. } else {
  8606. for k2, v2 := range v {
  8607. if cr != nil {
  8608. cr.sendContainerState(containerMapKey)
  8609. }
  8610. ee.EncodeUint(uint64(k2))
  8611. if cr != nil {
  8612. cr.sendContainerState(containerMapValue)
  8613. }
  8614. ee.EncodeString(c_UTF8, v2)
  8615. }
  8616. }
  8617. if cr != nil {
  8618. cr.sendContainerState(containerMapEnd)
  8619. }
  8620. }
  8621. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  8622. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  8623. }
  8624. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  8625. ee, cr := e.e, e.cr
  8626. ee.EncodeMapStart(len(v))
  8627. if e.h.Canonical {
  8628. v2 := make([]uint64, len(v))
  8629. var i int
  8630. for k, _ := range v {
  8631. v2[i] = uint64(k)
  8632. i++
  8633. }
  8634. sort.Sort(uintSlice(v2))
  8635. for _, k2 := range v2 {
  8636. if cr != nil {
  8637. cr.sendContainerState(containerMapKey)
  8638. }
  8639. ee.EncodeUint(uint64(uint64(k2)))
  8640. if cr != nil {
  8641. cr.sendContainerState(containerMapValue)
  8642. }
  8643. ee.EncodeUint(uint64(v[uint64(k2)]))
  8644. }
  8645. } else {
  8646. for k2, v2 := range v {
  8647. if cr != nil {
  8648. cr.sendContainerState(containerMapKey)
  8649. }
  8650. ee.EncodeUint(uint64(k2))
  8651. if cr != nil {
  8652. cr.sendContainerState(containerMapValue)
  8653. }
  8654. ee.EncodeUint(uint64(v2))
  8655. }
  8656. }
  8657. if cr != nil {
  8658. cr.sendContainerState(containerMapEnd)
  8659. }
  8660. }
  8661. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  8662. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  8663. }
  8664. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  8665. ee, cr := e.e, e.cr
  8666. ee.EncodeMapStart(len(v))
  8667. if e.h.Canonical {
  8668. v2 := make([]uint64, len(v))
  8669. var i int
  8670. for k, _ := range v {
  8671. v2[i] = uint64(k)
  8672. i++
  8673. }
  8674. sort.Sort(uintSlice(v2))
  8675. for _, k2 := range v2 {
  8676. if cr != nil {
  8677. cr.sendContainerState(containerMapKey)
  8678. }
  8679. ee.EncodeUint(uint64(uint64(k2)))
  8680. if cr != nil {
  8681. cr.sendContainerState(containerMapValue)
  8682. }
  8683. ee.EncodeUint(uint64(v[uint64(k2)]))
  8684. }
  8685. } else {
  8686. for k2, v2 := range v {
  8687. if cr != nil {
  8688. cr.sendContainerState(containerMapKey)
  8689. }
  8690. ee.EncodeUint(uint64(k2))
  8691. if cr != nil {
  8692. cr.sendContainerState(containerMapValue)
  8693. }
  8694. ee.EncodeUint(uint64(v2))
  8695. }
  8696. }
  8697. if cr != nil {
  8698. cr.sendContainerState(containerMapEnd)
  8699. }
  8700. }
  8701. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  8702. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  8703. }
  8704. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  8705. ee, cr := e.e, e.cr
  8706. ee.EncodeMapStart(len(v))
  8707. if e.h.Canonical {
  8708. v2 := make([]uint64, len(v))
  8709. var i int
  8710. for k, _ := range v {
  8711. v2[i] = uint64(k)
  8712. i++
  8713. }
  8714. sort.Sort(uintSlice(v2))
  8715. for _, k2 := range v2 {
  8716. if cr != nil {
  8717. cr.sendContainerState(containerMapKey)
  8718. }
  8719. ee.EncodeUint(uint64(uint64(k2)))
  8720. if cr != nil {
  8721. cr.sendContainerState(containerMapValue)
  8722. }
  8723. ee.EncodeUint(uint64(v[uint64(k2)]))
  8724. }
  8725. } else {
  8726. for k2, v2 := range v {
  8727. if cr != nil {
  8728. cr.sendContainerState(containerMapKey)
  8729. }
  8730. ee.EncodeUint(uint64(k2))
  8731. if cr != nil {
  8732. cr.sendContainerState(containerMapValue)
  8733. }
  8734. ee.EncodeUint(uint64(v2))
  8735. }
  8736. }
  8737. if cr != nil {
  8738. cr.sendContainerState(containerMapEnd)
  8739. }
  8740. }
  8741. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  8742. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  8743. }
  8744. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  8745. ee, cr := e.e, e.cr
  8746. ee.EncodeMapStart(len(v))
  8747. if e.h.Canonical {
  8748. v2 := make([]uint64, len(v))
  8749. var i int
  8750. for k, _ := range v {
  8751. v2[i] = uint64(k)
  8752. i++
  8753. }
  8754. sort.Sort(uintSlice(v2))
  8755. for _, k2 := range v2 {
  8756. if cr != nil {
  8757. cr.sendContainerState(containerMapKey)
  8758. }
  8759. ee.EncodeUint(uint64(uint64(k2)))
  8760. if cr != nil {
  8761. cr.sendContainerState(containerMapValue)
  8762. }
  8763. ee.EncodeUint(uint64(v[uint64(k2)]))
  8764. }
  8765. } else {
  8766. for k2, v2 := range v {
  8767. if cr != nil {
  8768. cr.sendContainerState(containerMapKey)
  8769. }
  8770. ee.EncodeUint(uint64(k2))
  8771. if cr != nil {
  8772. cr.sendContainerState(containerMapValue)
  8773. }
  8774. ee.EncodeUint(uint64(v2))
  8775. }
  8776. }
  8777. if cr != nil {
  8778. cr.sendContainerState(containerMapEnd)
  8779. }
  8780. }
  8781. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  8782. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  8783. }
  8784. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  8785. ee, cr := e.e, e.cr
  8786. ee.EncodeMapStart(len(v))
  8787. if e.h.Canonical {
  8788. v2 := make([]uint64, len(v))
  8789. var i int
  8790. for k, _ := range v {
  8791. v2[i] = uint64(k)
  8792. i++
  8793. }
  8794. sort.Sort(uintSlice(v2))
  8795. for _, k2 := range v2 {
  8796. if cr != nil {
  8797. cr.sendContainerState(containerMapKey)
  8798. }
  8799. ee.EncodeUint(uint64(uint64(k2)))
  8800. if cr != nil {
  8801. cr.sendContainerState(containerMapValue)
  8802. }
  8803. ee.EncodeUint(uint64(v[uint64(k2)]))
  8804. }
  8805. } else {
  8806. for k2, v2 := range v {
  8807. if cr != nil {
  8808. cr.sendContainerState(containerMapKey)
  8809. }
  8810. ee.EncodeUint(uint64(k2))
  8811. if cr != nil {
  8812. cr.sendContainerState(containerMapValue)
  8813. }
  8814. ee.EncodeUint(uint64(v2))
  8815. }
  8816. }
  8817. if cr != nil {
  8818. cr.sendContainerState(containerMapEnd)
  8819. }
  8820. }
  8821. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  8822. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  8823. }
  8824. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  8825. ee, cr := e.e, e.cr
  8826. ee.EncodeMapStart(len(v))
  8827. if e.h.Canonical {
  8828. v2 := make([]uint64, len(v))
  8829. var i int
  8830. for k, _ := range v {
  8831. v2[i] = uint64(k)
  8832. i++
  8833. }
  8834. sort.Sort(uintSlice(v2))
  8835. for _, k2 := range v2 {
  8836. if cr != nil {
  8837. cr.sendContainerState(containerMapKey)
  8838. }
  8839. ee.EncodeUint(uint64(uint64(k2)))
  8840. if cr != nil {
  8841. cr.sendContainerState(containerMapValue)
  8842. }
  8843. e.encode(v[uint64(k2)])
  8844. }
  8845. } else {
  8846. for k2, v2 := range v {
  8847. if cr != nil {
  8848. cr.sendContainerState(containerMapKey)
  8849. }
  8850. ee.EncodeUint(uint64(k2))
  8851. if cr != nil {
  8852. cr.sendContainerState(containerMapValue)
  8853. }
  8854. e.encode(v2)
  8855. }
  8856. }
  8857. if cr != nil {
  8858. cr.sendContainerState(containerMapEnd)
  8859. }
  8860. }
  8861. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  8862. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  8863. }
  8864. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  8865. ee, cr := e.e, e.cr
  8866. ee.EncodeMapStart(len(v))
  8867. if e.h.Canonical {
  8868. v2 := make([]uint64, len(v))
  8869. var i int
  8870. for k, _ := range v {
  8871. v2[i] = uint64(k)
  8872. i++
  8873. }
  8874. sort.Sort(uintSlice(v2))
  8875. for _, k2 := range v2 {
  8876. if cr != nil {
  8877. cr.sendContainerState(containerMapKey)
  8878. }
  8879. ee.EncodeUint(uint64(uint64(k2)))
  8880. if cr != nil {
  8881. cr.sendContainerState(containerMapValue)
  8882. }
  8883. ee.EncodeInt(int64(v[uint64(k2)]))
  8884. }
  8885. } else {
  8886. for k2, v2 := range v {
  8887. if cr != nil {
  8888. cr.sendContainerState(containerMapKey)
  8889. }
  8890. ee.EncodeUint(uint64(k2))
  8891. if cr != nil {
  8892. cr.sendContainerState(containerMapValue)
  8893. }
  8894. ee.EncodeInt(int64(v2))
  8895. }
  8896. }
  8897. if cr != nil {
  8898. cr.sendContainerState(containerMapEnd)
  8899. }
  8900. }
  8901. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  8902. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  8903. }
  8904. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  8905. ee, cr := e.e, e.cr
  8906. ee.EncodeMapStart(len(v))
  8907. if e.h.Canonical {
  8908. v2 := make([]uint64, len(v))
  8909. var i int
  8910. for k, _ := range v {
  8911. v2[i] = uint64(k)
  8912. i++
  8913. }
  8914. sort.Sort(uintSlice(v2))
  8915. for _, k2 := range v2 {
  8916. if cr != nil {
  8917. cr.sendContainerState(containerMapKey)
  8918. }
  8919. ee.EncodeUint(uint64(uint64(k2)))
  8920. if cr != nil {
  8921. cr.sendContainerState(containerMapValue)
  8922. }
  8923. ee.EncodeInt(int64(v[uint64(k2)]))
  8924. }
  8925. } else {
  8926. for k2, v2 := range v {
  8927. if cr != nil {
  8928. cr.sendContainerState(containerMapKey)
  8929. }
  8930. ee.EncodeUint(uint64(k2))
  8931. if cr != nil {
  8932. cr.sendContainerState(containerMapValue)
  8933. }
  8934. ee.EncodeInt(int64(v2))
  8935. }
  8936. }
  8937. if cr != nil {
  8938. cr.sendContainerState(containerMapEnd)
  8939. }
  8940. }
  8941. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  8942. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  8943. }
  8944. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  8945. ee, cr := e.e, e.cr
  8946. ee.EncodeMapStart(len(v))
  8947. if e.h.Canonical {
  8948. v2 := make([]uint64, len(v))
  8949. var i int
  8950. for k, _ := range v {
  8951. v2[i] = uint64(k)
  8952. i++
  8953. }
  8954. sort.Sort(uintSlice(v2))
  8955. for _, k2 := range v2 {
  8956. if cr != nil {
  8957. cr.sendContainerState(containerMapKey)
  8958. }
  8959. ee.EncodeUint(uint64(uint64(k2)))
  8960. if cr != nil {
  8961. cr.sendContainerState(containerMapValue)
  8962. }
  8963. ee.EncodeInt(int64(v[uint64(k2)]))
  8964. }
  8965. } else {
  8966. for k2, v2 := range v {
  8967. if cr != nil {
  8968. cr.sendContainerState(containerMapKey)
  8969. }
  8970. ee.EncodeUint(uint64(k2))
  8971. if cr != nil {
  8972. cr.sendContainerState(containerMapValue)
  8973. }
  8974. ee.EncodeInt(int64(v2))
  8975. }
  8976. }
  8977. if cr != nil {
  8978. cr.sendContainerState(containerMapEnd)
  8979. }
  8980. }
  8981. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  8982. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  8983. }
  8984. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  8985. ee, cr := e.e, e.cr
  8986. ee.EncodeMapStart(len(v))
  8987. if e.h.Canonical {
  8988. v2 := make([]uint64, len(v))
  8989. var i int
  8990. for k, _ := range v {
  8991. v2[i] = uint64(k)
  8992. i++
  8993. }
  8994. sort.Sort(uintSlice(v2))
  8995. for _, k2 := range v2 {
  8996. if cr != nil {
  8997. cr.sendContainerState(containerMapKey)
  8998. }
  8999. ee.EncodeUint(uint64(uint64(k2)))
  9000. if cr != nil {
  9001. cr.sendContainerState(containerMapValue)
  9002. }
  9003. ee.EncodeInt(int64(v[uint64(k2)]))
  9004. }
  9005. } else {
  9006. for k2, v2 := range v {
  9007. if cr != nil {
  9008. cr.sendContainerState(containerMapKey)
  9009. }
  9010. ee.EncodeUint(uint64(k2))
  9011. if cr != nil {
  9012. cr.sendContainerState(containerMapValue)
  9013. }
  9014. ee.EncodeInt(int64(v2))
  9015. }
  9016. }
  9017. if cr != nil {
  9018. cr.sendContainerState(containerMapEnd)
  9019. }
  9020. }
  9021. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  9022. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  9023. }
  9024. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  9025. ee, cr := e.e, e.cr
  9026. ee.EncodeMapStart(len(v))
  9027. if e.h.Canonical {
  9028. v2 := make([]uint64, len(v))
  9029. var i int
  9030. for k, _ := range v {
  9031. v2[i] = uint64(k)
  9032. i++
  9033. }
  9034. sort.Sort(uintSlice(v2))
  9035. for _, k2 := range v2 {
  9036. if cr != nil {
  9037. cr.sendContainerState(containerMapKey)
  9038. }
  9039. ee.EncodeUint(uint64(uint64(k2)))
  9040. if cr != nil {
  9041. cr.sendContainerState(containerMapValue)
  9042. }
  9043. ee.EncodeInt(int64(v[uint64(k2)]))
  9044. }
  9045. } else {
  9046. for k2, v2 := range v {
  9047. if cr != nil {
  9048. cr.sendContainerState(containerMapKey)
  9049. }
  9050. ee.EncodeUint(uint64(k2))
  9051. if cr != nil {
  9052. cr.sendContainerState(containerMapValue)
  9053. }
  9054. ee.EncodeInt(int64(v2))
  9055. }
  9056. }
  9057. if cr != nil {
  9058. cr.sendContainerState(containerMapEnd)
  9059. }
  9060. }
  9061. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  9062. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  9063. }
  9064. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  9065. ee, cr := e.e, e.cr
  9066. ee.EncodeMapStart(len(v))
  9067. if e.h.Canonical {
  9068. v2 := make([]uint64, len(v))
  9069. var i int
  9070. for k, _ := range v {
  9071. v2[i] = uint64(k)
  9072. i++
  9073. }
  9074. sort.Sort(uintSlice(v2))
  9075. for _, k2 := range v2 {
  9076. if cr != nil {
  9077. cr.sendContainerState(containerMapKey)
  9078. }
  9079. ee.EncodeUint(uint64(uint64(k2)))
  9080. if cr != nil {
  9081. cr.sendContainerState(containerMapValue)
  9082. }
  9083. ee.EncodeFloat32(v[uint64(k2)])
  9084. }
  9085. } else {
  9086. for k2, v2 := range v {
  9087. if cr != nil {
  9088. cr.sendContainerState(containerMapKey)
  9089. }
  9090. ee.EncodeUint(uint64(k2))
  9091. if cr != nil {
  9092. cr.sendContainerState(containerMapValue)
  9093. }
  9094. ee.EncodeFloat32(v2)
  9095. }
  9096. }
  9097. if cr != nil {
  9098. cr.sendContainerState(containerMapEnd)
  9099. }
  9100. }
  9101. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  9102. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  9103. }
  9104. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  9105. ee, cr := e.e, e.cr
  9106. ee.EncodeMapStart(len(v))
  9107. if e.h.Canonical {
  9108. v2 := make([]uint64, len(v))
  9109. var i int
  9110. for k, _ := range v {
  9111. v2[i] = uint64(k)
  9112. i++
  9113. }
  9114. sort.Sort(uintSlice(v2))
  9115. for _, k2 := range v2 {
  9116. if cr != nil {
  9117. cr.sendContainerState(containerMapKey)
  9118. }
  9119. ee.EncodeUint(uint64(uint64(k2)))
  9120. if cr != nil {
  9121. cr.sendContainerState(containerMapValue)
  9122. }
  9123. ee.EncodeFloat64(v[uint64(k2)])
  9124. }
  9125. } else {
  9126. for k2, v2 := range v {
  9127. if cr != nil {
  9128. cr.sendContainerState(containerMapKey)
  9129. }
  9130. ee.EncodeUint(uint64(k2))
  9131. if cr != nil {
  9132. cr.sendContainerState(containerMapValue)
  9133. }
  9134. ee.EncodeFloat64(v2)
  9135. }
  9136. }
  9137. if cr != nil {
  9138. cr.sendContainerState(containerMapEnd)
  9139. }
  9140. }
  9141. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  9142. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  9143. }
  9144. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  9145. ee, cr := e.e, e.cr
  9146. ee.EncodeMapStart(len(v))
  9147. if e.h.Canonical {
  9148. v2 := make([]uint64, len(v))
  9149. var i int
  9150. for k, _ := range v {
  9151. v2[i] = uint64(k)
  9152. i++
  9153. }
  9154. sort.Sort(uintSlice(v2))
  9155. for _, k2 := range v2 {
  9156. if cr != nil {
  9157. cr.sendContainerState(containerMapKey)
  9158. }
  9159. ee.EncodeUint(uint64(uint64(k2)))
  9160. if cr != nil {
  9161. cr.sendContainerState(containerMapValue)
  9162. }
  9163. ee.EncodeBool(v[uint64(k2)])
  9164. }
  9165. } else {
  9166. for k2, v2 := range v {
  9167. if cr != nil {
  9168. cr.sendContainerState(containerMapKey)
  9169. }
  9170. ee.EncodeUint(uint64(k2))
  9171. if cr != nil {
  9172. cr.sendContainerState(containerMapValue)
  9173. }
  9174. ee.EncodeBool(v2)
  9175. }
  9176. }
  9177. if cr != nil {
  9178. cr.sendContainerState(containerMapEnd)
  9179. }
  9180. }
  9181. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  9182. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  9183. }
  9184. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  9185. ee, cr := e.e, e.cr
  9186. ee.EncodeMapStart(len(v))
  9187. if e.h.Canonical {
  9188. v2 := make([]uint64, len(v))
  9189. var i int
  9190. for k, _ := range v {
  9191. v2[i] = uint64(k)
  9192. i++
  9193. }
  9194. sort.Sort(uintSlice(v2))
  9195. for _, k2 := range v2 {
  9196. if cr != nil {
  9197. cr.sendContainerState(containerMapKey)
  9198. }
  9199. e.encode(uintptr(k2))
  9200. if cr != nil {
  9201. cr.sendContainerState(containerMapValue)
  9202. }
  9203. e.encode(v[uintptr(k2)])
  9204. }
  9205. } else {
  9206. for k2, v2 := range v {
  9207. if cr != nil {
  9208. cr.sendContainerState(containerMapKey)
  9209. }
  9210. e.encode(k2)
  9211. if cr != nil {
  9212. cr.sendContainerState(containerMapValue)
  9213. }
  9214. e.encode(v2)
  9215. }
  9216. }
  9217. if cr != nil {
  9218. cr.sendContainerState(containerMapEnd)
  9219. }
  9220. }
  9221. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  9222. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  9223. }
  9224. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  9225. ee, cr := e.e, e.cr
  9226. ee.EncodeMapStart(len(v))
  9227. if e.h.Canonical {
  9228. v2 := make([]uint64, len(v))
  9229. var i int
  9230. for k, _ := range v {
  9231. v2[i] = uint64(k)
  9232. i++
  9233. }
  9234. sort.Sort(uintSlice(v2))
  9235. for _, k2 := range v2 {
  9236. if cr != nil {
  9237. cr.sendContainerState(containerMapKey)
  9238. }
  9239. e.encode(uintptr(k2))
  9240. if cr != nil {
  9241. cr.sendContainerState(containerMapValue)
  9242. }
  9243. ee.EncodeString(c_UTF8, v[uintptr(k2)])
  9244. }
  9245. } else {
  9246. for k2, v2 := range v {
  9247. if cr != nil {
  9248. cr.sendContainerState(containerMapKey)
  9249. }
  9250. e.encode(k2)
  9251. if cr != nil {
  9252. cr.sendContainerState(containerMapValue)
  9253. }
  9254. ee.EncodeString(c_UTF8, v2)
  9255. }
  9256. }
  9257. if cr != nil {
  9258. cr.sendContainerState(containerMapEnd)
  9259. }
  9260. }
  9261. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  9262. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  9263. }
  9264. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  9265. ee, cr := e.e, e.cr
  9266. ee.EncodeMapStart(len(v))
  9267. if e.h.Canonical {
  9268. v2 := make([]uint64, len(v))
  9269. var i int
  9270. for k, _ := range v {
  9271. v2[i] = uint64(k)
  9272. i++
  9273. }
  9274. sort.Sort(uintSlice(v2))
  9275. for _, k2 := range v2 {
  9276. if cr != nil {
  9277. cr.sendContainerState(containerMapKey)
  9278. }
  9279. e.encode(uintptr(k2))
  9280. if cr != nil {
  9281. cr.sendContainerState(containerMapValue)
  9282. }
  9283. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9284. }
  9285. } else {
  9286. for k2, v2 := range v {
  9287. if cr != nil {
  9288. cr.sendContainerState(containerMapKey)
  9289. }
  9290. e.encode(k2)
  9291. if cr != nil {
  9292. cr.sendContainerState(containerMapValue)
  9293. }
  9294. ee.EncodeUint(uint64(v2))
  9295. }
  9296. }
  9297. if cr != nil {
  9298. cr.sendContainerState(containerMapEnd)
  9299. }
  9300. }
  9301. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  9302. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  9303. }
  9304. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  9305. ee, cr := e.e, e.cr
  9306. ee.EncodeMapStart(len(v))
  9307. if e.h.Canonical {
  9308. v2 := make([]uint64, len(v))
  9309. var i int
  9310. for k, _ := range v {
  9311. v2[i] = uint64(k)
  9312. i++
  9313. }
  9314. sort.Sort(uintSlice(v2))
  9315. for _, k2 := range v2 {
  9316. if cr != nil {
  9317. cr.sendContainerState(containerMapKey)
  9318. }
  9319. e.encode(uintptr(k2))
  9320. if cr != nil {
  9321. cr.sendContainerState(containerMapValue)
  9322. }
  9323. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9324. }
  9325. } else {
  9326. for k2, v2 := range v {
  9327. if cr != nil {
  9328. cr.sendContainerState(containerMapKey)
  9329. }
  9330. e.encode(k2)
  9331. if cr != nil {
  9332. cr.sendContainerState(containerMapValue)
  9333. }
  9334. ee.EncodeUint(uint64(v2))
  9335. }
  9336. }
  9337. if cr != nil {
  9338. cr.sendContainerState(containerMapEnd)
  9339. }
  9340. }
  9341. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  9342. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  9343. }
  9344. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  9345. ee, cr := e.e, e.cr
  9346. ee.EncodeMapStart(len(v))
  9347. if e.h.Canonical {
  9348. v2 := make([]uint64, len(v))
  9349. var i int
  9350. for k, _ := range v {
  9351. v2[i] = uint64(k)
  9352. i++
  9353. }
  9354. sort.Sort(uintSlice(v2))
  9355. for _, k2 := range v2 {
  9356. if cr != nil {
  9357. cr.sendContainerState(containerMapKey)
  9358. }
  9359. e.encode(uintptr(k2))
  9360. if cr != nil {
  9361. cr.sendContainerState(containerMapValue)
  9362. }
  9363. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9364. }
  9365. } else {
  9366. for k2, v2 := range v {
  9367. if cr != nil {
  9368. cr.sendContainerState(containerMapKey)
  9369. }
  9370. e.encode(k2)
  9371. if cr != nil {
  9372. cr.sendContainerState(containerMapValue)
  9373. }
  9374. ee.EncodeUint(uint64(v2))
  9375. }
  9376. }
  9377. if cr != nil {
  9378. cr.sendContainerState(containerMapEnd)
  9379. }
  9380. }
  9381. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  9382. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  9383. }
  9384. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  9385. ee, cr := e.e, e.cr
  9386. ee.EncodeMapStart(len(v))
  9387. if e.h.Canonical {
  9388. v2 := make([]uint64, len(v))
  9389. var i int
  9390. for k, _ := range v {
  9391. v2[i] = uint64(k)
  9392. i++
  9393. }
  9394. sort.Sort(uintSlice(v2))
  9395. for _, k2 := range v2 {
  9396. if cr != nil {
  9397. cr.sendContainerState(containerMapKey)
  9398. }
  9399. e.encode(uintptr(k2))
  9400. if cr != nil {
  9401. cr.sendContainerState(containerMapValue)
  9402. }
  9403. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9404. }
  9405. } else {
  9406. for k2, v2 := range v {
  9407. if cr != nil {
  9408. cr.sendContainerState(containerMapKey)
  9409. }
  9410. e.encode(k2)
  9411. if cr != nil {
  9412. cr.sendContainerState(containerMapValue)
  9413. }
  9414. ee.EncodeUint(uint64(v2))
  9415. }
  9416. }
  9417. if cr != nil {
  9418. cr.sendContainerState(containerMapEnd)
  9419. }
  9420. }
  9421. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  9422. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  9423. }
  9424. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
  9425. ee, cr := e.e, e.cr
  9426. ee.EncodeMapStart(len(v))
  9427. if e.h.Canonical {
  9428. v2 := make([]uint64, len(v))
  9429. var i int
  9430. for k, _ := range v {
  9431. v2[i] = uint64(k)
  9432. i++
  9433. }
  9434. sort.Sort(uintSlice(v2))
  9435. for _, k2 := range v2 {
  9436. if cr != nil {
  9437. cr.sendContainerState(containerMapKey)
  9438. }
  9439. e.encode(uintptr(k2))
  9440. if cr != nil {
  9441. cr.sendContainerState(containerMapValue)
  9442. }
  9443. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9444. }
  9445. } else {
  9446. for k2, v2 := range v {
  9447. if cr != nil {
  9448. cr.sendContainerState(containerMapKey)
  9449. }
  9450. e.encode(k2)
  9451. if cr != nil {
  9452. cr.sendContainerState(containerMapValue)
  9453. }
  9454. ee.EncodeUint(uint64(v2))
  9455. }
  9456. }
  9457. if cr != nil {
  9458. cr.sendContainerState(containerMapEnd)
  9459. }
  9460. }
  9461. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  9462. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  9463. }
  9464. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  9465. ee, cr := e.e, e.cr
  9466. ee.EncodeMapStart(len(v))
  9467. if e.h.Canonical {
  9468. v2 := make([]uint64, len(v))
  9469. var i int
  9470. for k, _ := range v {
  9471. v2[i] = uint64(k)
  9472. i++
  9473. }
  9474. sort.Sort(uintSlice(v2))
  9475. for _, k2 := range v2 {
  9476. if cr != nil {
  9477. cr.sendContainerState(containerMapKey)
  9478. }
  9479. e.encode(uintptr(k2))
  9480. if cr != nil {
  9481. cr.sendContainerState(containerMapValue)
  9482. }
  9483. e.encode(v[uintptr(k2)])
  9484. }
  9485. } else {
  9486. for k2, v2 := range v {
  9487. if cr != nil {
  9488. cr.sendContainerState(containerMapKey)
  9489. }
  9490. e.encode(k2)
  9491. if cr != nil {
  9492. cr.sendContainerState(containerMapValue)
  9493. }
  9494. e.encode(v2)
  9495. }
  9496. }
  9497. if cr != nil {
  9498. cr.sendContainerState(containerMapEnd)
  9499. }
  9500. }
  9501. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  9502. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  9503. }
  9504. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  9505. ee, cr := e.e, e.cr
  9506. ee.EncodeMapStart(len(v))
  9507. if e.h.Canonical {
  9508. v2 := make([]uint64, len(v))
  9509. var i int
  9510. for k, _ := range v {
  9511. v2[i] = uint64(k)
  9512. i++
  9513. }
  9514. sort.Sort(uintSlice(v2))
  9515. for _, k2 := range v2 {
  9516. if cr != nil {
  9517. cr.sendContainerState(containerMapKey)
  9518. }
  9519. e.encode(uintptr(k2))
  9520. if cr != nil {
  9521. cr.sendContainerState(containerMapValue)
  9522. }
  9523. ee.EncodeInt(int64(v[uintptr(k2)]))
  9524. }
  9525. } else {
  9526. for k2, v2 := range v {
  9527. if cr != nil {
  9528. cr.sendContainerState(containerMapKey)
  9529. }
  9530. e.encode(k2)
  9531. if cr != nil {
  9532. cr.sendContainerState(containerMapValue)
  9533. }
  9534. ee.EncodeInt(int64(v2))
  9535. }
  9536. }
  9537. if cr != nil {
  9538. cr.sendContainerState(containerMapEnd)
  9539. }
  9540. }
  9541. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  9542. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  9543. }
  9544. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  9545. ee, cr := e.e, e.cr
  9546. ee.EncodeMapStart(len(v))
  9547. if e.h.Canonical {
  9548. v2 := make([]uint64, len(v))
  9549. var i int
  9550. for k, _ := range v {
  9551. v2[i] = uint64(k)
  9552. i++
  9553. }
  9554. sort.Sort(uintSlice(v2))
  9555. for _, k2 := range v2 {
  9556. if cr != nil {
  9557. cr.sendContainerState(containerMapKey)
  9558. }
  9559. e.encode(uintptr(k2))
  9560. if cr != nil {
  9561. cr.sendContainerState(containerMapValue)
  9562. }
  9563. ee.EncodeInt(int64(v[uintptr(k2)]))
  9564. }
  9565. } else {
  9566. for k2, v2 := range v {
  9567. if cr != nil {
  9568. cr.sendContainerState(containerMapKey)
  9569. }
  9570. e.encode(k2)
  9571. if cr != nil {
  9572. cr.sendContainerState(containerMapValue)
  9573. }
  9574. ee.EncodeInt(int64(v2))
  9575. }
  9576. }
  9577. if cr != nil {
  9578. cr.sendContainerState(containerMapEnd)
  9579. }
  9580. }
  9581. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  9582. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  9583. }
  9584. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  9585. ee, cr := e.e, e.cr
  9586. ee.EncodeMapStart(len(v))
  9587. if e.h.Canonical {
  9588. v2 := make([]uint64, len(v))
  9589. var i int
  9590. for k, _ := range v {
  9591. v2[i] = uint64(k)
  9592. i++
  9593. }
  9594. sort.Sort(uintSlice(v2))
  9595. for _, k2 := range v2 {
  9596. if cr != nil {
  9597. cr.sendContainerState(containerMapKey)
  9598. }
  9599. e.encode(uintptr(k2))
  9600. if cr != nil {
  9601. cr.sendContainerState(containerMapValue)
  9602. }
  9603. ee.EncodeInt(int64(v[uintptr(k2)]))
  9604. }
  9605. } else {
  9606. for k2, v2 := range v {
  9607. if cr != nil {
  9608. cr.sendContainerState(containerMapKey)
  9609. }
  9610. e.encode(k2)
  9611. if cr != nil {
  9612. cr.sendContainerState(containerMapValue)
  9613. }
  9614. ee.EncodeInt(int64(v2))
  9615. }
  9616. }
  9617. if cr != nil {
  9618. cr.sendContainerState(containerMapEnd)
  9619. }
  9620. }
  9621. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  9622. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  9623. }
  9624. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  9625. ee, cr := e.e, e.cr
  9626. ee.EncodeMapStart(len(v))
  9627. if e.h.Canonical {
  9628. v2 := make([]uint64, len(v))
  9629. var i int
  9630. for k, _ := range v {
  9631. v2[i] = uint64(k)
  9632. i++
  9633. }
  9634. sort.Sort(uintSlice(v2))
  9635. for _, k2 := range v2 {
  9636. if cr != nil {
  9637. cr.sendContainerState(containerMapKey)
  9638. }
  9639. e.encode(uintptr(k2))
  9640. if cr != nil {
  9641. cr.sendContainerState(containerMapValue)
  9642. }
  9643. ee.EncodeInt(int64(v[uintptr(k2)]))
  9644. }
  9645. } else {
  9646. for k2, v2 := range v {
  9647. if cr != nil {
  9648. cr.sendContainerState(containerMapKey)
  9649. }
  9650. e.encode(k2)
  9651. if cr != nil {
  9652. cr.sendContainerState(containerMapValue)
  9653. }
  9654. ee.EncodeInt(int64(v2))
  9655. }
  9656. }
  9657. if cr != nil {
  9658. cr.sendContainerState(containerMapEnd)
  9659. }
  9660. }
  9661. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  9662. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  9663. }
  9664. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  9665. ee, cr := e.e, e.cr
  9666. ee.EncodeMapStart(len(v))
  9667. if e.h.Canonical {
  9668. v2 := make([]uint64, len(v))
  9669. var i int
  9670. for k, _ := range v {
  9671. v2[i] = uint64(k)
  9672. i++
  9673. }
  9674. sort.Sort(uintSlice(v2))
  9675. for _, k2 := range v2 {
  9676. if cr != nil {
  9677. cr.sendContainerState(containerMapKey)
  9678. }
  9679. e.encode(uintptr(k2))
  9680. if cr != nil {
  9681. cr.sendContainerState(containerMapValue)
  9682. }
  9683. ee.EncodeInt(int64(v[uintptr(k2)]))
  9684. }
  9685. } else {
  9686. for k2, v2 := range v {
  9687. if cr != nil {
  9688. cr.sendContainerState(containerMapKey)
  9689. }
  9690. e.encode(k2)
  9691. if cr != nil {
  9692. cr.sendContainerState(containerMapValue)
  9693. }
  9694. ee.EncodeInt(int64(v2))
  9695. }
  9696. }
  9697. if cr != nil {
  9698. cr.sendContainerState(containerMapEnd)
  9699. }
  9700. }
  9701. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  9702. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  9703. }
  9704. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  9705. ee, cr := e.e, e.cr
  9706. ee.EncodeMapStart(len(v))
  9707. if e.h.Canonical {
  9708. v2 := make([]uint64, len(v))
  9709. var i int
  9710. for k, _ := range v {
  9711. v2[i] = uint64(k)
  9712. i++
  9713. }
  9714. sort.Sort(uintSlice(v2))
  9715. for _, k2 := range v2 {
  9716. if cr != nil {
  9717. cr.sendContainerState(containerMapKey)
  9718. }
  9719. e.encode(uintptr(k2))
  9720. if cr != nil {
  9721. cr.sendContainerState(containerMapValue)
  9722. }
  9723. ee.EncodeFloat32(v[uintptr(k2)])
  9724. }
  9725. } else {
  9726. for k2, v2 := range v {
  9727. if cr != nil {
  9728. cr.sendContainerState(containerMapKey)
  9729. }
  9730. e.encode(k2)
  9731. if cr != nil {
  9732. cr.sendContainerState(containerMapValue)
  9733. }
  9734. ee.EncodeFloat32(v2)
  9735. }
  9736. }
  9737. if cr != nil {
  9738. cr.sendContainerState(containerMapEnd)
  9739. }
  9740. }
  9741. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  9742. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  9743. }
  9744. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
  9745. ee, cr := e.e, e.cr
  9746. ee.EncodeMapStart(len(v))
  9747. if e.h.Canonical {
  9748. v2 := make([]uint64, len(v))
  9749. var i int
  9750. for k, _ := range v {
  9751. v2[i] = uint64(k)
  9752. i++
  9753. }
  9754. sort.Sort(uintSlice(v2))
  9755. for _, k2 := range v2 {
  9756. if cr != nil {
  9757. cr.sendContainerState(containerMapKey)
  9758. }
  9759. e.encode(uintptr(k2))
  9760. if cr != nil {
  9761. cr.sendContainerState(containerMapValue)
  9762. }
  9763. ee.EncodeFloat64(v[uintptr(k2)])
  9764. }
  9765. } else {
  9766. for k2, v2 := range v {
  9767. if cr != nil {
  9768. cr.sendContainerState(containerMapKey)
  9769. }
  9770. e.encode(k2)
  9771. if cr != nil {
  9772. cr.sendContainerState(containerMapValue)
  9773. }
  9774. ee.EncodeFloat64(v2)
  9775. }
  9776. }
  9777. if cr != nil {
  9778. cr.sendContainerState(containerMapEnd)
  9779. }
  9780. }
  9781. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  9782. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  9783. }
  9784. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  9785. ee, cr := e.e, e.cr
  9786. ee.EncodeMapStart(len(v))
  9787. if e.h.Canonical {
  9788. v2 := make([]uint64, len(v))
  9789. var i int
  9790. for k, _ := range v {
  9791. v2[i] = uint64(k)
  9792. i++
  9793. }
  9794. sort.Sort(uintSlice(v2))
  9795. for _, k2 := range v2 {
  9796. if cr != nil {
  9797. cr.sendContainerState(containerMapKey)
  9798. }
  9799. e.encode(uintptr(k2))
  9800. if cr != nil {
  9801. cr.sendContainerState(containerMapValue)
  9802. }
  9803. ee.EncodeBool(v[uintptr(k2)])
  9804. }
  9805. } else {
  9806. for k2, v2 := range v {
  9807. if cr != nil {
  9808. cr.sendContainerState(containerMapKey)
  9809. }
  9810. e.encode(k2)
  9811. if cr != nil {
  9812. cr.sendContainerState(containerMapValue)
  9813. }
  9814. ee.EncodeBool(v2)
  9815. }
  9816. }
  9817. if cr != nil {
  9818. cr.sendContainerState(containerMapEnd)
  9819. }
  9820. }
  9821. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  9822. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  9823. }
  9824. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  9825. ee, cr := e.e, e.cr
  9826. ee.EncodeMapStart(len(v))
  9827. if e.h.Canonical {
  9828. v2 := make([]int64, len(v))
  9829. var i int
  9830. for k, _ := range v {
  9831. v2[i] = int64(k)
  9832. i++
  9833. }
  9834. sort.Sort(intSlice(v2))
  9835. for _, k2 := range v2 {
  9836. if cr != nil {
  9837. cr.sendContainerState(containerMapKey)
  9838. }
  9839. ee.EncodeInt(int64(int(k2)))
  9840. if cr != nil {
  9841. cr.sendContainerState(containerMapValue)
  9842. }
  9843. e.encode(v[int(k2)])
  9844. }
  9845. } else {
  9846. for k2, v2 := range v {
  9847. if cr != nil {
  9848. cr.sendContainerState(containerMapKey)
  9849. }
  9850. ee.EncodeInt(int64(k2))
  9851. if cr != nil {
  9852. cr.sendContainerState(containerMapValue)
  9853. }
  9854. e.encode(v2)
  9855. }
  9856. }
  9857. if cr != nil {
  9858. cr.sendContainerState(containerMapEnd)
  9859. }
  9860. }
  9861. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  9862. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  9863. }
  9864. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  9865. ee, cr := e.e, e.cr
  9866. ee.EncodeMapStart(len(v))
  9867. if e.h.Canonical {
  9868. v2 := make([]int64, len(v))
  9869. var i int
  9870. for k, _ := range v {
  9871. v2[i] = int64(k)
  9872. i++
  9873. }
  9874. sort.Sort(intSlice(v2))
  9875. for _, k2 := range v2 {
  9876. if cr != nil {
  9877. cr.sendContainerState(containerMapKey)
  9878. }
  9879. ee.EncodeInt(int64(int(k2)))
  9880. if cr != nil {
  9881. cr.sendContainerState(containerMapValue)
  9882. }
  9883. ee.EncodeString(c_UTF8, v[int(k2)])
  9884. }
  9885. } else {
  9886. for k2, v2 := range v {
  9887. if cr != nil {
  9888. cr.sendContainerState(containerMapKey)
  9889. }
  9890. ee.EncodeInt(int64(k2))
  9891. if cr != nil {
  9892. cr.sendContainerState(containerMapValue)
  9893. }
  9894. ee.EncodeString(c_UTF8, v2)
  9895. }
  9896. }
  9897. if cr != nil {
  9898. cr.sendContainerState(containerMapEnd)
  9899. }
  9900. }
  9901. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  9902. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  9903. }
  9904. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  9905. ee, cr := e.e, e.cr
  9906. ee.EncodeMapStart(len(v))
  9907. if e.h.Canonical {
  9908. v2 := make([]int64, len(v))
  9909. var i int
  9910. for k, _ := range v {
  9911. v2[i] = int64(k)
  9912. i++
  9913. }
  9914. sort.Sort(intSlice(v2))
  9915. for _, k2 := range v2 {
  9916. if cr != nil {
  9917. cr.sendContainerState(containerMapKey)
  9918. }
  9919. ee.EncodeInt(int64(int(k2)))
  9920. if cr != nil {
  9921. cr.sendContainerState(containerMapValue)
  9922. }
  9923. ee.EncodeUint(uint64(v[int(k2)]))
  9924. }
  9925. } else {
  9926. for k2, v2 := range v {
  9927. if cr != nil {
  9928. cr.sendContainerState(containerMapKey)
  9929. }
  9930. ee.EncodeInt(int64(k2))
  9931. if cr != nil {
  9932. cr.sendContainerState(containerMapValue)
  9933. }
  9934. ee.EncodeUint(uint64(v2))
  9935. }
  9936. }
  9937. if cr != nil {
  9938. cr.sendContainerState(containerMapEnd)
  9939. }
  9940. }
  9941. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  9942. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  9943. }
  9944. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  9945. ee, cr := e.e, e.cr
  9946. ee.EncodeMapStart(len(v))
  9947. if e.h.Canonical {
  9948. v2 := make([]int64, len(v))
  9949. var i int
  9950. for k, _ := range v {
  9951. v2[i] = int64(k)
  9952. i++
  9953. }
  9954. sort.Sort(intSlice(v2))
  9955. for _, k2 := range v2 {
  9956. if cr != nil {
  9957. cr.sendContainerState(containerMapKey)
  9958. }
  9959. ee.EncodeInt(int64(int(k2)))
  9960. if cr != nil {
  9961. cr.sendContainerState(containerMapValue)
  9962. }
  9963. ee.EncodeUint(uint64(v[int(k2)]))
  9964. }
  9965. } else {
  9966. for k2, v2 := range v {
  9967. if cr != nil {
  9968. cr.sendContainerState(containerMapKey)
  9969. }
  9970. ee.EncodeInt(int64(k2))
  9971. if cr != nil {
  9972. cr.sendContainerState(containerMapValue)
  9973. }
  9974. ee.EncodeUint(uint64(v2))
  9975. }
  9976. }
  9977. if cr != nil {
  9978. cr.sendContainerState(containerMapEnd)
  9979. }
  9980. }
  9981. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  9982. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  9983. }
  9984. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  9985. ee, cr := e.e, e.cr
  9986. ee.EncodeMapStart(len(v))
  9987. if e.h.Canonical {
  9988. v2 := make([]int64, len(v))
  9989. var i int
  9990. for k, _ := range v {
  9991. v2[i] = int64(k)
  9992. i++
  9993. }
  9994. sort.Sort(intSlice(v2))
  9995. for _, k2 := range v2 {
  9996. if cr != nil {
  9997. cr.sendContainerState(containerMapKey)
  9998. }
  9999. ee.EncodeInt(int64(int(k2)))
  10000. if cr != nil {
  10001. cr.sendContainerState(containerMapValue)
  10002. }
  10003. ee.EncodeUint(uint64(v[int(k2)]))
  10004. }
  10005. } else {
  10006. for k2, v2 := range v {
  10007. if cr != nil {
  10008. cr.sendContainerState(containerMapKey)
  10009. }
  10010. ee.EncodeInt(int64(k2))
  10011. if cr != nil {
  10012. cr.sendContainerState(containerMapValue)
  10013. }
  10014. ee.EncodeUint(uint64(v2))
  10015. }
  10016. }
  10017. if cr != nil {
  10018. cr.sendContainerState(containerMapEnd)
  10019. }
  10020. }
  10021. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  10022. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  10023. }
  10024. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  10025. ee, cr := e.e, e.cr
  10026. ee.EncodeMapStart(len(v))
  10027. if e.h.Canonical {
  10028. v2 := make([]int64, len(v))
  10029. var i int
  10030. for k, _ := range v {
  10031. v2[i] = int64(k)
  10032. i++
  10033. }
  10034. sort.Sort(intSlice(v2))
  10035. for _, k2 := range v2 {
  10036. if cr != nil {
  10037. cr.sendContainerState(containerMapKey)
  10038. }
  10039. ee.EncodeInt(int64(int(k2)))
  10040. if cr != nil {
  10041. cr.sendContainerState(containerMapValue)
  10042. }
  10043. ee.EncodeUint(uint64(v[int(k2)]))
  10044. }
  10045. } else {
  10046. for k2, v2 := range v {
  10047. if cr != nil {
  10048. cr.sendContainerState(containerMapKey)
  10049. }
  10050. ee.EncodeInt(int64(k2))
  10051. if cr != nil {
  10052. cr.sendContainerState(containerMapValue)
  10053. }
  10054. ee.EncodeUint(uint64(v2))
  10055. }
  10056. }
  10057. if cr != nil {
  10058. cr.sendContainerState(containerMapEnd)
  10059. }
  10060. }
  10061. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  10062. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  10063. }
  10064. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  10065. ee, cr := e.e, e.cr
  10066. ee.EncodeMapStart(len(v))
  10067. if e.h.Canonical {
  10068. v2 := make([]int64, len(v))
  10069. var i int
  10070. for k, _ := range v {
  10071. v2[i] = int64(k)
  10072. i++
  10073. }
  10074. sort.Sort(intSlice(v2))
  10075. for _, k2 := range v2 {
  10076. if cr != nil {
  10077. cr.sendContainerState(containerMapKey)
  10078. }
  10079. ee.EncodeInt(int64(int(k2)))
  10080. if cr != nil {
  10081. cr.sendContainerState(containerMapValue)
  10082. }
  10083. ee.EncodeUint(uint64(v[int(k2)]))
  10084. }
  10085. } else {
  10086. for k2, v2 := range v {
  10087. if cr != nil {
  10088. cr.sendContainerState(containerMapKey)
  10089. }
  10090. ee.EncodeInt(int64(k2))
  10091. if cr != nil {
  10092. cr.sendContainerState(containerMapValue)
  10093. }
  10094. ee.EncodeUint(uint64(v2))
  10095. }
  10096. }
  10097. if cr != nil {
  10098. cr.sendContainerState(containerMapEnd)
  10099. }
  10100. }
  10101. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  10102. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  10103. }
  10104. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  10105. ee, cr := e.e, e.cr
  10106. ee.EncodeMapStart(len(v))
  10107. if e.h.Canonical {
  10108. v2 := make([]int64, len(v))
  10109. var i int
  10110. for k, _ := range v {
  10111. v2[i] = int64(k)
  10112. i++
  10113. }
  10114. sort.Sort(intSlice(v2))
  10115. for _, k2 := range v2 {
  10116. if cr != nil {
  10117. cr.sendContainerState(containerMapKey)
  10118. }
  10119. ee.EncodeInt(int64(int(k2)))
  10120. if cr != nil {
  10121. cr.sendContainerState(containerMapValue)
  10122. }
  10123. e.encode(v[int(k2)])
  10124. }
  10125. } else {
  10126. for k2, v2 := range v {
  10127. if cr != nil {
  10128. cr.sendContainerState(containerMapKey)
  10129. }
  10130. ee.EncodeInt(int64(k2))
  10131. if cr != nil {
  10132. cr.sendContainerState(containerMapValue)
  10133. }
  10134. e.encode(v2)
  10135. }
  10136. }
  10137. if cr != nil {
  10138. cr.sendContainerState(containerMapEnd)
  10139. }
  10140. }
  10141. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  10142. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  10143. }
  10144. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  10145. ee, cr := e.e, e.cr
  10146. ee.EncodeMapStart(len(v))
  10147. if e.h.Canonical {
  10148. v2 := make([]int64, len(v))
  10149. var i int
  10150. for k, _ := range v {
  10151. v2[i] = int64(k)
  10152. i++
  10153. }
  10154. sort.Sort(intSlice(v2))
  10155. for _, k2 := range v2 {
  10156. if cr != nil {
  10157. cr.sendContainerState(containerMapKey)
  10158. }
  10159. ee.EncodeInt(int64(int(k2)))
  10160. if cr != nil {
  10161. cr.sendContainerState(containerMapValue)
  10162. }
  10163. ee.EncodeInt(int64(v[int(k2)]))
  10164. }
  10165. } else {
  10166. for k2, v2 := range v {
  10167. if cr != nil {
  10168. cr.sendContainerState(containerMapKey)
  10169. }
  10170. ee.EncodeInt(int64(k2))
  10171. if cr != nil {
  10172. cr.sendContainerState(containerMapValue)
  10173. }
  10174. ee.EncodeInt(int64(v2))
  10175. }
  10176. }
  10177. if cr != nil {
  10178. cr.sendContainerState(containerMapEnd)
  10179. }
  10180. }
  10181. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  10182. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  10183. }
  10184. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  10185. ee, cr := e.e, e.cr
  10186. ee.EncodeMapStart(len(v))
  10187. if e.h.Canonical {
  10188. v2 := make([]int64, len(v))
  10189. var i int
  10190. for k, _ := range v {
  10191. v2[i] = int64(k)
  10192. i++
  10193. }
  10194. sort.Sort(intSlice(v2))
  10195. for _, k2 := range v2 {
  10196. if cr != nil {
  10197. cr.sendContainerState(containerMapKey)
  10198. }
  10199. ee.EncodeInt(int64(int(k2)))
  10200. if cr != nil {
  10201. cr.sendContainerState(containerMapValue)
  10202. }
  10203. ee.EncodeInt(int64(v[int(k2)]))
  10204. }
  10205. } else {
  10206. for k2, v2 := range v {
  10207. if cr != nil {
  10208. cr.sendContainerState(containerMapKey)
  10209. }
  10210. ee.EncodeInt(int64(k2))
  10211. if cr != nil {
  10212. cr.sendContainerState(containerMapValue)
  10213. }
  10214. ee.EncodeInt(int64(v2))
  10215. }
  10216. }
  10217. if cr != nil {
  10218. cr.sendContainerState(containerMapEnd)
  10219. }
  10220. }
  10221. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  10222. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  10223. }
  10224. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  10225. ee, cr := e.e, e.cr
  10226. ee.EncodeMapStart(len(v))
  10227. if e.h.Canonical {
  10228. v2 := make([]int64, len(v))
  10229. var i int
  10230. for k, _ := range v {
  10231. v2[i] = int64(k)
  10232. i++
  10233. }
  10234. sort.Sort(intSlice(v2))
  10235. for _, k2 := range v2 {
  10236. if cr != nil {
  10237. cr.sendContainerState(containerMapKey)
  10238. }
  10239. ee.EncodeInt(int64(int(k2)))
  10240. if cr != nil {
  10241. cr.sendContainerState(containerMapValue)
  10242. }
  10243. ee.EncodeInt(int64(v[int(k2)]))
  10244. }
  10245. } else {
  10246. for k2, v2 := range v {
  10247. if cr != nil {
  10248. cr.sendContainerState(containerMapKey)
  10249. }
  10250. ee.EncodeInt(int64(k2))
  10251. if cr != nil {
  10252. cr.sendContainerState(containerMapValue)
  10253. }
  10254. ee.EncodeInt(int64(v2))
  10255. }
  10256. }
  10257. if cr != nil {
  10258. cr.sendContainerState(containerMapEnd)
  10259. }
  10260. }
  10261. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  10262. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  10263. }
  10264. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  10265. ee, cr := e.e, e.cr
  10266. ee.EncodeMapStart(len(v))
  10267. if e.h.Canonical {
  10268. v2 := make([]int64, len(v))
  10269. var i int
  10270. for k, _ := range v {
  10271. v2[i] = int64(k)
  10272. i++
  10273. }
  10274. sort.Sort(intSlice(v2))
  10275. for _, k2 := range v2 {
  10276. if cr != nil {
  10277. cr.sendContainerState(containerMapKey)
  10278. }
  10279. ee.EncodeInt(int64(int(k2)))
  10280. if cr != nil {
  10281. cr.sendContainerState(containerMapValue)
  10282. }
  10283. ee.EncodeInt(int64(v[int(k2)]))
  10284. }
  10285. } else {
  10286. for k2, v2 := range v {
  10287. if cr != nil {
  10288. cr.sendContainerState(containerMapKey)
  10289. }
  10290. ee.EncodeInt(int64(k2))
  10291. if cr != nil {
  10292. cr.sendContainerState(containerMapValue)
  10293. }
  10294. ee.EncodeInt(int64(v2))
  10295. }
  10296. }
  10297. if cr != nil {
  10298. cr.sendContainerState(containerMapEnd)
  10299. }
  10300. }
  10301. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  10302. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  10303. }
  10304. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  10305. ee, cr := e.e, e.cr
  10306. ee.EncodeMapStart(len(v))
  10307. if e.h.Canonical {
  10308. v2 := make([]int64, len(v))
  10309. var i int
  10310. for k, _ := range v {
  10311. v2[i] = int64(k)
  10312. i++
  10313. }
  10314. sort.Sort(intSlice(v2))
  10315. for _, k2 := range v2 {
  10316. if cr != nil {
  10317. cr.sendContainerState(containerMapKey)
  10318. }
  10319. ee.EncodeInt(int64(int(k2)))
  10320. if cr != nil {
  10321. cr.sendContainerState(containerMapValue)
  10322. }
  10323. ee.EncodeInt(int64(v[int(k2)]))
  10324. }
  10325. } else {
  10326. for k2, v2 := range v {
  10327. if cr != nil {
  10328. cr.sendContainerState(containerMapKey)
  10329. }
  10330. ee.EncodeInt(int64(k2))
  10331. if cr != nil {
  10332. cr.sendContainerState(containerMapValue)
  10333. }
  10334. ee.EncodeInt(int64(v2))
  10335. }
  10336. }
  10337. if cr != nil {
  10338. cr.sendContainerState(containerMapEnd)
  10339. }
  10340. }
  10341. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  10342. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  10343. }
  10344. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  10345. ee, cr := e.e, e.cr
  10346. ee.EncodeMapStart(len(v))
  10347. if e.h.Canonical {
  10348. v2 := make([]int64, len(v))
  10349. var i int
  10350. for k, _ := range v {
  10351. v2[i] = int64(k)
  10352. i++
  10353. }
  10354. sort.Sort(intSlice(v2))
  10355. for _, k2 := range v2 {
  10356. if cr != nil {
  10357. cr.sendContainerState(containerMapKey)
  10358. }
  10359. ee.EncodeInt(int64(int(k2)))
  10360. if cr != nil {
  10361. cr.sendContainerState(containerMapValue)
  10362. }
  10363. ee.EncodeFloat32(v[int(k2)])
  10364. }
  10365. } else {
  10366. for k2, v2 := range v {
  10367. if cr != nil {
  10368. cr.sendContainerState(containerMapKey)
  10369. }
  10370. ee.EncodeInt(int64(k2))
  10371. if cr != nil {
  10372. cr.sendContainerState(containerMapValue)
  10373. }
  10374. ee.EncodeFloat32(v2)
  10375. }
  10376. }
  10377. if cr != nil {
  10378. cr.sendContainerState(containerMapEnd)
  10379. }
  10380. }
  10381. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  10382. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  10383. }
  10384. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  10385. ee, cr := e.e, e.cr
  10386. ee.EncodeMapStart(len(v))
  10387. if e.h.Canonical {
  10388. v2 := make([]int64, len(v))
  10389. var i int
  10390. for k, _ := range v {
  10391. v2[i] = int64(k)
  10392. i++
  10393. }
  10394. sort.Sort(intSlice(v2))
  10395. for _, k2 := range v2 {
  10396. if cr != nil {
  10397. cr.sendContainerState(containerMapKey)
  10398. }
  10399. ee.EncodeInt(int64(int(k2)))
  10400. if cr != nil {
  10401. cr.sendContainerState(containerMapValue)
  10402. }
  10403. ee.EncodeFloat64(v[int(k2)])
  10404. }
  10405. } else {
  10406. for k2, v2 := range v {
  10407. if cr != nil {
  10408. cr.sendContainerState(containerMapKey)
  10409. }
  10410. ee.EncodeInt(int64(k2))
  10411. if cr != nil {
  10412. cr.sendContainerState(containerMapValue)
  10413. }
  10414. ee.EncodeFloat64(v2)
  10415. }
  10416. }
  10417. if cr != nil {
  10418. cr.sendContainerState(containerMapEnd)
  10419. }
  10420. }
  10421. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  10422. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  10423. }
  10424. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  10425. ee, cr := e.e, e.cr
  10426. ee.EncodeMapStart(len(v))
  10427. if e.h.Canonical {
  10428. v2 := make([]int64, len(v))
  10429. var i int
  10430. for k, _ := range v {
  10431. v2[i] = int64(k)
  10432. i++
  10433. }
  10434. sort.Sort(intSlice(v2))
  10435. for _, k2 := range v2 {
  10436. if cr != nil {
  10437. cr.sendContainerState(containerMapKey)
  10438. }
  10439. ee.EncodeInt(int64(int(k2)))
  10440. if cr != nil {
  10441. cr.sendContainerState(containerMapValue)
  10442. }
  10443. ee.EncodeBool(v[int(k2)])
  10444. }
  10445. } else {
  10446. for k2, v2 := range v {
  10447. if cr != nil {
  10448. cr.sendContainerState(containerMapKey)
  10449. }
  10450. ee.EncodeInt(int64(k2))
  10451. if cr != nil {
  10452. cr.sendContainerState(containerMapValue)
  10453. }
  10454. ee.EncodeBool(v2)
  10455. }
  10456. }
  10457. if cr != nil {
  10458. cr.sendContainerState(containerMapEnd)
  10459. }
  10460. }
  10461. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  10462. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  10463. }
  10464. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  10465. ee, cr := e.e, e.cr
  10466. ee.EncodeMapStart(len(v))
  10467. if e.h.Canonical {
  10468. v2 := make([]int64, len(v))
  10469. var i int
  10470. for k, _ := range v {
  10471. v2[i] = int64(k)
  10472. i++
  10473. }
  10474. sort.Sort(intSlice(v2))
  10475. for _, k2 := range v2 {
  10476. if cr != nil {
  10477. cr.sendContainerState(containerMapKey)
  10478. }
  10479. ee.EncodeInt(int64(int8(k2)))
  10480. if cr != nil {
  10481. cr.sendContainerState(containerMapValue)
  10482. }
  10483. e.encode(v[int8(k2)])
  10484. }
  10485. } else {
  10486. for k2, v2 := range v {
  10487. if cr != nil {
  10488. cr.sendContainerState(containerMapKey)
  10489. }
  10490. ee.EncodeInt(int64(k2))
  10491. if cr != nil {
  10492. cr.sendContainerState(containerMapValue)
  10493. }
  10494. e.encode(v2)
  10495. }
  10496. }
  10497. if cr != nil {
  10498. cr.sendContainerState(containerMapEnd)
  10499. }
  10500. }
  10501. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  10502. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  10503. }
  10504. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  10505. ee, cr := e.e, e.cr
  10506. ee.EncodeMapStart(len(v))
  10507. if e.h.Canonical {
  10508. v2 := make([]int64, len(v))
  10509. var i int
  10510. for k, _ := range v {
  10511. v2[i] = int64(k)
  10512. i++
  10513. }
  10514. sort.Sort(intSlice(v2))
  10515. for _, k2 := range v2 {
  10516. if cr != nil {
  10517. cr.sendContainerState(containerMapKey)
  10518. }
  10519. ee.EncodeInt(int64(int8(k2)))
  10520. if cr != nil {
  10521. cr.sendContainerState(containerMapValue)
  10522. }
  10523. ee.EncodeString(c_UTF8, v[int8(k2)])
  10524. }
  10525. } else {
  10526. for k2, v2 := range v {
  10527. if cr != nil {
  10528. cr.sendContainerState(containerMapKey)
  10529. }
  10530. ee.EncodeInt(int64(k2))
  10531. if cr != nil {
  10532. cr.sendContainerState(containerMapValue)
  10533. }
  10534. ee.EncodeString(c_UTF8, v2)
  10535. }
  10536. }
  10537. if cr != nil {
  10538. cr.sendContainerState(containerMapEnd)
  10539. }
  10540. }
  10541. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  10542. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  10543. }
  10544. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  10545. ee, cr := e.e, e.cr
  10546. ee.EncodeMapStart(len(v))
  10547. if e.h.Canonical {
  10548. v2 := make([]int64, len(v))
  10549. var i int
  10550. for k, _ := range v {
  10551. v2[i] = int64(k)
  10552. i++
  10553. }
  10554. sort.Sort(intSlice(v2))
  10555. for _, k2 := range v2 {
  10556. if cr != nil {
  10557. cr.sendContainerState(containerMapKey)
  10558. }
  10559. ee.EncodeInt(int64(int8(k2)))
  10560. if cr != nil {
  10561. cr.sendContainerState(containerMapValue)
  10562. }
  10563. ee.EncodeUint(uint64(v[int8(k2)]))
  10564. }
  10565. } else {
  10566. for k2, v2 := range v {
  10567. if cr != nil {
  10568. cr.sendContainerState(containerMapKey)
  10569. }
  10570. ee.EncodeInt(int64(k2))
  10571. if cr != nil {
  10572. cr.sendContainerState(containerMapValue)
  10573. }
  10574. ee.EncodeUint(uint64(v2))
  10575. }
  10576. }
  10577. if cr != nil {
  10578. cr.sendContainerState(containerMapEnd)
  10579. }
  10580. }
  10581. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  10582. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  10583. }
  10584. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  10585. ee, cr := e.e, e.cr
  10586. ee.EncodeMapStart(len(v))
  10587. if e.h.Canonical {
  10588. v2 := make([]int64, len(v))
  10589. var i int
  10590. for k, _ := range v {
  10591. v2[i] = int64(k)
  10592. i++
  10593. }
  10594. sort.Sort(intSlice(v2))
  10595. for _, k2 := range v2 {
  10596. if cr != nil {
  10597. cr.sendContainerState(containerMapKey)
  10598. }
  10599. ee.EncodeInt(int64(int8(k2)))
  10600. if cr != nil {
  10601. cr.sendContainerState(containerMapValue)
  10602. }
  10603. ee.EncodeUint(uint64(v[int8(k2)]))
  10604. }
  10605. } else {
  10606. for k2, v2 := range v {
  10607. if cr != nil {
  10608. cr.sendContainerState(containerMapKey)
  10609. }
  10610. ee.EncodeInt(int64(k2))
  10611. if cr != nil {
  10612. cr.sendContainerState(containerMapValue)
  10613. }
  10614. ee.EncodeUint(uint64(v2))
  10615. }
  10616. }
  10617. if cr != nil {
  10618. cr.sendContainerState(containerMapEnd)
  10619. }
  10620. }
  10621. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  10622. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  10623. }
  10624. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  10625. ee, cr := e.e, e.cr
  10626. ee.EncodeMapStart(len(v))
  10627. if e.h.Canonical {
  10628. v2 := make([]int64, len(v))
  10629. var i int
  10630. for k, _ := range v {
  10631. v2[i] = int64(k)
  10632. i++
  10633. }
  10634. sort.Sort(intSlice(v2))
  10635. for _, k2 := range v2 {
  10636. if cr != nil {
  10637. cr.sendContainerState(containerMapKey)
  10638. }
  10639. ee.EncodeInt(int64(int8(k2)))
  10640. if cr != nil {
  10641. cr.sendContainerState(containerMapValue)
  10642. }
  10643. ee.EncodeUint(uint64(v[int8(k2)]))
  10644. }
  10645. } else {
  10646. for k2, v2 := range v {
  10647. if cr != nil {
  10648. cr.sendContainerState(containerMapKey)
  10649. }
  10650. ee.EncodeInt(int64(k2))
  10651. if cr != nil {
  10652. cr.sendContainerState(containerMapValue)
  10653. }
  10654. ee.EncodeUint(uint64(v2))
  10655. }
  10656. }
  10657. if cr != nil {
  10658. cr.sendContainerState(containerMapEnd)
  10659. }
  10660. }
  10661. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  10662. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  10663. }
  10664. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  10665. ee, cr := e.e, e.cr
  10666. ee.EncodeMapStart(len(v))
  10667. if e.h.Canonical {
  10668. v2 := make([]int64, len(v))
  10669. var i int
  10670. for k, _ := range v {
  10671. v2[i] = int64(k)
  10672. i++
  10673. }
  10674. sort.Sort(intSlice(v2))
  10675. for _, k2 := range v2 {
  10676. if cr != nil {
  10677. cr.sendContainerState(containerMapKey)
  10678. }
  10679. ee.EncodeInt(int64(int8(k2)))
  10680. if cr != nil {
  10681. cr.sendContainerState(containerMapValue)
  10682. }
  10683. ee.EncodeUint(uint64(v[int8(k2)]))
  10684. }
  10685. } else {
  10686. for k2, v2 := range v {
  10687. if cr != nil {
  10688. cr.sendContainerState(containerMapKey)
  10689. }
  10690. ee.EncodeInt(int64(k2))
  10691. if cr != nil {
  10692. cr.sendContainerState(containerMapValue)
  10693. }
  10694. ee.EncodeUint(uint64(v2))
  10695. }
  10696. }
  10697. if cr != nil {
  10698. cr.sendContainerState(containerMapEnd)
  10699. }
  10700. }
  10701. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  10702. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  10703. }
  10704. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  10705. ee, cr := e.e, e.cr
  10706. ee.EncodeMapStart(len(v))
  10707. if e.h.Canonical {
  10708. v2 := make([]int64, len(v))
  10709. var i int
  10710. for k, _ := range v {
  10711. v2[i] = int64(k)
  10712. i++
  10713. }
  10714. sort.Sort(intSlice(v2))
  10715. for _, k2 := range v2 {
  10716. if cr != nil {
  10717. cr.sendContainerState(containerMapKey)
  10718. }
  10719. ee.EncodeInt(int64(int8(k2)))
  10720. if cr != nil {
  10721. cr.sendContainerState(containerMapValue)
  10722. }
  10723. ee.EncodeUint(uint64(v[int8(k2)]))
  10724. }
  10725. } else {
  10726. for k2, v2 := range v {
  10727. if cr != nil {
  10728. cr.sendContainerState(containerMapKey)
  10729. }
  10730. ee.EncodeInt(int64(k2))
  10731. if cr != nil {
  10732. cr.sendContainerState(containerMapValue)
  10733. }
  10734. ee.EncodeUint(uint64(v2))
  10735. }
  10736. }
  10737. if cr != nil {
  10738. cr.sendContainerState(containerMapEnd)
  10739. }
  10740. }
  10741. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  10742. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  10743. }
  10744. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  10745. ee, cr := e.e, e.cr
  10746. ee.EncodeMapStart(len(v))
  10747. if e.h.Canonical {
  10748. v2 := make([]int64, len(v))
  10749. var i int
  10750. for k, _ := range v {
  10751. v2[i] = int64(k)
  10752. i++
  10753. }
  10754. sort.Sort(intSlice(v2))
  10755. for _, k2 := range v2 {
  10756. if cr != nil {
  10757. cr.sendContainerState(containerMapKey)
  10758. }
  10759. ee.EncodeInt(int64(int8(k2)))
  10760. if cr != nil {
  10761. cr.sendContainerState(containerMapValue)
  10762. }
  10763. e.encode(v[int8(k2)])
  10764. }
  10765. } else {
  10766. for k2, v2 := range v {
  10767. if cr != nil {
  10768. cr.sendContainerState(containerMapKey)
  10769. }
  10770. ee.EncodeInt(int64(k2))
  10771. if cr != nil {
  10772. cr.sendContainerState(containerMapValue)
  10773. }
  10774. e.encode(v2)
  10775. }
  10776. }
  10777. if cr != nil {
  10778. cr.sendContainerState(containerMapEnd)
  10779. }
  10780. }
  10781. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  10782. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  10783. }
  10784. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  10785. ee, cr := e.e, e.cr
  10786. ee.EncodeMapStart(len(v))
  10787. if e.h.Canonical {
  10788. v2 := make([]int64, len(v))
  10789. var i int
  10790. for k, _ := range v {
  10791. v2[i] = int64(k)
  10792. i++
  10793. }
  10794. sort.Sort(intSlice(v2))
  10795. for _, k2 := range v2 {
  10796. if cr != nil {
  10797. cr.sendContainerState(containerMapKey)
  10798. }
  10799. ee.EncodeInt(int64(int8(k2)))
  10800. if cr != nil {
  10801. cr.sendContainerState(containerMapValue)
  10802. }
  10803. ee.EncodeInt(int64(v[int8(k2)]))
  10804. }
  10805. } else {
  10806. for k2, v2 := range v {
  10807. if cr != nil {
  10808. cr.sendContainerState(containerMapKey)
  10809. }
  10810. ee.EncodeInt(int64(k2))
  10811. if cr != nil {
  10812. cr.sendContainerState(containerMapValue)
  10813. }
  10814. ee.EncodeInt(int64(v2))
  10815. }
  10816. }
  10817. if cr != nil {
  10818. cr.sendContainerState(containerMapEnd)
  10819. }
  10820. }
  10821. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  10822. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  10823. }
  10824. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  10825. ee, cr := e.e, e.cr
  10826. ee.EncodeMapStart(len(v))
  10827. if e.h.Canonical {
  10828. v2 := make([]int64, len(v))
  10829. var i int
  10830. for k, _ := range v {
  10831. v2[i] = int64(k)
  10832. i++
  10833. }
  10834. sort.Sort(intSlice(v2))
  10835. for _, k2 := range v2 {
  10836. if cr != nil {
  10837. cr.sendContainerState(containerMapKey)
  10838. }
  10839. ee.EncodeInt(int64(int8(k2)))
  10840. if cr != nil {
  10841. cr.sendContainerState(containerMapValue)
  10842. }
  10843. ee.EncodeInt(int64(v[int8(k2)]))
  10844. }
  10845. } else {
  10846. for k2, v2 := range v {
  10847. if cr != nil {
  10848. cr.sendContainerState(containerMapKey)
  10849. }
  10850. ee.EncodeInt(int64(k2))
  10851. if cr != nil {
  10852. cr.sendContainerState(containerMapValue)
  10853. }
  10854. ee.EncodeInt(int64(v2))
  10855. }
  10856. }
  10857. if cr != nil {
  10858. cr.sendContainerState(containerMapEnd)
  10859. }
  10860. }
  10861. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  10862. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  10863. }
  10864. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  10865. ee, cr := e.e, e.cr
  10866. ee.EncodeMapStart(len(v))
  10867. if e.h.Canonical {
  10868. v2 := make([]int64, len(v))
  10869. var i int
  10870. for k, _ := range v {
  10871. v2[i] = int64(k)
  10872. i++
  10873. }
  10874. sort.Sort(intSlice(v2))
  10875. for _, k2 := range v2 {
  10876. if cr != nil {
  10877. cr.sendContainerState(containerMapKey)
  10878. }
  10879. ee.EncodeInt(int64(int8(k2)))
  10880. if cr != nil {
  10881. cr.sendContainerState(containerMapValue)
  10882. }
  10883. ee.EncodeInt(int64(v[int8(k2)]))
  10884. }
  10885. } else {
  10886. for k2, v2 := range v {
  10887. if cr != nil {
  10888. cr.sendContainerState(containerMapKey)
  10889. }
  10890. ee.EncodeInt(int64(k2))
  10891. if cr != nil {
  10892. cr.sendContainerState(containerMapValue)
  10893. }
  10894. ee.EncodeInt(int64(v2))
  10895. }
  10896. }
  10897. if cr != nil {
  10898. cr.sendContainerState(containerMapEnd)
  10899. }
  10900. }
  10901. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  10902. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  10903. }
  10904. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  10905. ee, cr := e.e, e.cr
  10906. ee.EncodeMapStart(len(v))
  10907. if e.h.Canonical {
  10908. v2 := make([]int64, len(v))
  10909. var i int
  10910. for k, _ := range v {
  10911. v2[i] = int64(k)
  10912. i++
  10913. }
  10914. sort.Sort(intSlice(v2))
  10915. for _, k2 := range v2 {
  10916. if cr != nil {
  10917. cr.sendContainerState(containerMapKey)
  10918. }
  10919. ee.EncodeInt(int64(int8(k2)))
  10920. if cr != nil {
  10921. cr.sendContainerState(containerMapValue)
  10922. }
  10923. ee.EncodeInt(int64(v[int8(k2)]))
  10924. }
  10925. } else {
  10926. for k2, v2 := range v {
  10927. if cr != nil {
  10928. cr.sendContainerState(containerMapKey)
  10929. }
  10930. ee.EncodeInt(int64(k2))
  10931. if cr != nil {
  10932. cr.sendContainerState(containerMapValue)
  10933. }
  10934. ee.EncodeInt(int64(v2))
  10935. }
  10936. }
  10937. if cr != nil {
  10938. cr.sendContainerState(containerMapEnd)
  10939. }
  10940. }
  10941. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  10942. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  10943. }
  10944. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  10945. ee, cr := e.e, e.cr
  10946. ee.EncodeMapStart(len(v))
  10947. if e.h.Canonical {
  10948. v2 := make([]int64, len(v))
  10949. var i int
  10950. for k, _ := range v {
  10951. v2[i] = int64(k)
  10952. i++
  10953. }
  10954. sort.Sort(intSlice(v2))
  10955. for _, k2 := range v2 {
  10956. if cr != nil {
  10957. cr.sendContainerState(containerMapKey)
  10958. }
  10959. ee.EncodeInt(int64(int8(k2)))
  10960. if cr != nil {
  10961. cr.sendContainerState(containerMapValue)
  10962. }
  10963. ee.EncodeInt(int64(v[int8(k2)]))
  10964. }
  10965. } else {
  10966. for k2, v2 := range v {
  10967. if cr != nil {
  10968. cr.sendContainerState(containerMapKey)
  10969. }
  10970. ee.EncodeInt(int64(k2))
  10971. if cr != nil {
  10972. cr.sendContainerState(containerMapValue)
  10973. }
  10974. ee.EncodeInt(int64(v2))
  10975. }
  10976. }
  10977. if cr != nil {
  10978. cr.sendContainerState(containerMapEnd)
  10979. }
  10980. }
  10981. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  10982. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  10983. }
  10984. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  10985. ee, cr := e.e, e.cr
  10986. ee.EncodeMapStart(len(v))
  10987. if e.h.Canonical {
  10988. v2 := make([]int64, len(v))
  10989. var i int
  10990. for k, _ := range v {
  10991. v2[i] = int64(k)
  10992. i++
  10993. }
  10994. sort.Sort(intSlice(v2))
  10995. for _, k2 := range v2 {
  10996. if cr != nil {
  10997. cr.sendContainerState(containerMapKey)
  10998. }
  10999. ee.EncodeInt(int64(int8(k2)))
  11000. if cr != nil {
  11001. cr.sendContainerState(containerMapValue)
  11002. }
  11003. ee.EncodeFloat32(v[int8(k2)])
  11004. }
  11005. } else {
  11006. for k2, v2 := range v {
  11007. if cr != nil {
  11008. cr.sendContainerState(containerMapKey)
  11009. }
  11010. ee.EncodeInt(int64(k2))
  11011. if cr != nil {
  11012. cr.sendContainerState(containerMapValue)
  11013. }
  11014. ee.EncodeFloat32(v2)
  11015. }
  11016. }
  11017. if cr != nil {
  11018. cr.sendContainerState(containerMapEnd)
  11019. }
  11020. }
  11021. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  11022. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  11023. }
  11024. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  11025. ee, cr := e.e, e.cr
  11026. ee.EncodeMapStart(len(v))
  11027. if e.h.Canonical {
  11028. v2 := make([]int64, len(v))
  11029. var i int
  11030. for k, _ := range v {
  11031. v2[i] = int64(k)
  11032. i++
  11033. }
  11034. sort.Sort(intSlice(v2))
  11035. for _, k2 := range v2 {
  11036. if cr != nil {
  11037. cr.sendContainerState(containerMapKey)
  11038. }
  11039. ee.EncodeInt(int64(int8(k2)))
  11040. if cr != nil {
  11041. cr.sendContainerState(containerMapValue)
  11042. }
  11043. ee.EncodeFloat64(v[int8(k2)])
  11044. }
  11045. } else {
  11046. for k2, v2 := range v {
  11047. if cr != nil {
  11048. cr.sendContainerState(containerMapKey)
  11049. }
  11050. ee.EncodeInt(int64(k2))
  11051. if cr != nil {
  11052. cr.sendContainerState(containerMapValue)
  11053. }
  11054. ee.EncodeFloat64(v2)
  11055. }
  11056. }
  11057. if cr != nil {
  11058. cr.sendContainerState(containerMapEnd)
  11059. }
  11060. }
  11061. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  11062. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  11063. }
  11064. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  11065. ee, cr := e.e, e.cr
  11066. ee.EncodeMapStart(len(v))
  11067. if e.h.Canonical {
  11068. v2 := make([]int64, len(v))
  11069. var i int
  11070. for k, _ := range v {
  11071. v2[i] = int64(k)
  11072. i++
  11073. }
  11074. sort.Sort(intSlice(v2))
  11075. for _, k2 := range v2 {
  11076. if cr != nil {
  11077. cr.sendContainerState(containerMapKey)
  11078. }
  11079. ee.EncodeInt(int64(int8(k2)))
  11080. if cr != nil {
  11081. cr.sendContainerState(containerMapValue)
  11082. }
  11083. ee.EncodeBool(v[int8(k2)])
  11084. }
  11085. } else {
  11086. for k2, v2 := range v {
  11087. if cr != nil {
  11088. cr.sendContainerState(containerMapKey)
  11089. }
  11090. ee.EncodeInt(int64(k2))
  11091. if cr != nil {
  11092. cr.sendContainerState(containerMapValue)
  11093. }
  11094. ee.EncodeBool(v2)
  11095. }
  11096. }
  11097. if cr != nil {
  11098. cr.sendContainerState(containerMapEnd)
  11099. }
  11100. }
  11101. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  11102. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  11103. }
  11104. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  11105. ee, cr := e.e, e.cr
  11106. ee.EncodeMapStart(len(v))
  11107. if e.h.Canonical {
  11108. v2 := make([]int64, len(v))
  11109. var i int
  11110. for k, _ := range v {
  11111. v2[i] = int64(k)
  11112. i++
  11113. }
  11114. sort.Sort(intSlice(v2))
  11115. for _, k2 := range v2 {
  11116. if cr != nil {
  11117. cr.sendContainerState(containerMapKey)
  11118. }
  11119. ee.EncodeInt(int64(int16(k2)))
  11120. if cr != nil {
  11121. cr.sendContainerState(containerMapValue)
  11122. }
  11123. e.encode(v[int16(k2)])
  11124. }
  11125. } else {
  11126. for k2, v2 := range v {
  11127. if cr != nil {
  11128. cr.sendContainerState(containerMapKey)
  11129. }
  11130. ee.EncodeInt(int64(k2))
  11131. if cr != nil {
  11132. cr.sendContainerState(containerMapValue)
  11133. }
  11134. e.encode(v2)
  11135. }
  11136. }
  11137. if cr != nil {
  11138. cr.sendContainerState(containerMapEnd)
  11139. }
  11140. }
  11141. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  11142. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  11143. }
  11144. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  11145. ee, cr := e.e, e.cr
  11146. ee.EncodeMapStart(len(v))
  11147. if e.h.Canonical {
  11148. v2 := make([]int64, len(v))
  11149. var i int
  11150. for k, _ := range v {
  11151. v2[i] = int64(k)
  11152. i++
  11153. }
  11154. sort.Sort(intSlice(v2))
  11155. for _, k2 := range v2 {
  11156. if cr != nil {
  11157. cr.sendContainerState(containerMapKey)
  11158. }
  11159. ee.EncodeInt(int64(int16(k2)))
  11160. if cr != nil {
  11161. cr.sendContainerState(containerMapValue)
  11162. }
  11163. ee.EncodeString(c_UTF8, v[int16(k2)])
  11164. }
  11165. } else {
  11166. for k2, v2 := range v {
  11167. if cr != nil {
  11168. cr.sendContainerState(containerMapKey)
  11169. }
  11170. ee.EncodeInt(int64(k2))
  11171. if cr != nil {
  11172. cr.sendContainerState(containerMapValue)
  11173. }
  11174. ee.EncodeString(c_UTF8, v2)
  11175. }
  11176. }
  11177. if cr != nil {
  11178. cr.sendContainerState(containerMapEnd)
  11179. }
  11180. }
  11181. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  11182. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  11183. }
  11184. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
  11185. ee, cr := e.e, e.cr
  11186. ee.EncodeMapStart(len(v))
  11187. if e.h.Canonical {
  11188. v2 := make([]int64, len(v))
  11189. var i int
  11190. for k, _ := range v {
  11191. v2[i] = int64(k)
  11192. i++
  11193. }
  11194. sort.Sort(intSlice(v2))
  11195. for _, k2 := range v2 {
  11196. if cr != nil {
  11197. cr.sendContainerState(containerMapKey)
  11198. }
  11199. ee.EncodeInt(int64(int16(k2)))
  11200. if cr != nil {
  11201. cr.sendContainerState(containerMapValue)
  11202. }
  11203. ee.EncodeUint(uint64(v[int16(k2)]))
  11204. }
  11205. } else {
  11206. for k2, v2 := range v {
  11207. if cr != nil {
  11208. cr.sendContainerState(containerMapKey)
  11209. }
  11210. ee.EncodeInt(int64(k2))
  11211. if cr != nil {
  11212. cr.sendContainerState(containerMapValue)
  11213. }
  11214. ee.EncodeUint(uint64(v2))
  11215. }
  11216. }
  11217. if cr != nil {
  11218. cr.sendContainerState(containerMapEnd)
  11219. }
  11220. }
  11221. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  11222. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  11223. }
  11224. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  11225. ee, cr := e.e, e.cr
  11226. ee.EncodeMapStart(len(v))
  11227. if e.h.Canonical {
  11228. v2 := make([]int64, len(v))
  11229. var i int
  11230. for k, _ := range v {
  11231. v2[i] = int64(k)
  11232. i++
  11233. }
  11234. sort.Sort(intSlice(v2))
  11235. for _, k2 := range v2 {
  11236. if cr != nil {
  11237. cr.sendContainerState(containerMapKey)
  11238. }
  11239. ee.EncodeInt(int64(int16(k2)))
  11240. if cr != nil {
  11241. cr.sendContainerState(containerMapValue)
  11242. }
  11243. ee.EncodeUint(uint64(v[int16(k2)]))
  11244. }
  11245. } else {
  11246. for k2, v2 := range v {
  11247. if cr != nil {
  11248. cr.sendContainerState(containerMapKey)
  11249. }
  11250. ee.EncodeInt(int64(k2))
  11251. if cr != nil {
  11252. cr.sendContainerState(containerMapValue)
  11253. }
  11254. ee.EncodeUint(uint64(v2))
  11255. }
  11256. }
  11257. if cr != nil {
  11258. cr.sendContainerState(containerMapEnd)
  11259. }
  11260. }
  11261. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  11262. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  11263. }
  11264. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  11265. ee, cr := e.e, e.cr
  11266. ee.EncodeMapStart(len(v))
  11267. if e.h.Canonical {
  11268. v2 := make([]int64, len(v))
  11269. var i int
  11270. for k, _ := range v {
  11271. v2[i] = int64(k)
  11272. i++
  11273. }
  11274. sort.Sort(intSlice(v2))
  11275. for _, k2 := range v2 {
  11276. if cr != nil {
  11277. cr.sendContainerState(containerMapKey)
  11278. }
  11279. ee.EncodeInt(int64(int16(k2)))
  11280. if cr != nil {
  11281. cr.sendContainerState(containerMapValue)
  11282. }
  11283. ee.EncodeUint(uint64(v[int16(k2)]))
  11284. }
  11285. } else {
  11286. for k2, v2 := range v {
  11287. if cr != nil {
  11288. cr.sendContainerState(containerMapKey)
  11289. }
  11290. ee.EncodeInt(int64(k2))
  11291. if cr != nil {
  11292. cr.sendContainerState(containerMapValue)
  11293. }
  11294. ee.EncodeUint(uint64(v2))
  11295. }
  11296. }
  11297. if cr != nil {
  11298. cr.sendContainerState(containerMapEnd)
  11299. }
  11300. }
  11301. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  11302. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  11303. }
  11304. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  11305. ee, cr := e.e, e.cr
  11306. ee.EncodeMapStart(len(v))
  11307. if e.h.Canonical {
  11308. v2 := make([]int64, len(v))
  11309. var i int
  11310. for k, _ := range v {
  11311. v2[i] = int64(k)
  11312. i++
  11313. }
  11314. sort.Sort(intSlice(v2))
  11315. for _, k2 := range v2 {
  11316. if cr != nil {
  11317. cr.sendContainerState(containerMapKey)
  11318. }
  11319. ee.EncodeInt(int64(int16(k2)))
  11320. if cr != nil {
  11321. cr.sendContainerState(containerMapValue)
  11322. }
  11323. ee.EncodeUint(uint64(v[int16(k2)]))
  11324. }
  11325. } else {
  11326. for k2, v2 := range v {
  11327. if cr != nil {
  11328. cr.sendContainerState(containerMapKey)
  11329. }
  11330. ee.EncodeInt(int64(k2))
  11331. if cr != nil {
  11332. cr.sendContainerState(containerMapValue)
  11333. }
  11334. ee.EncodeUint(uint64(v2))
  11335. }
  11336. }
  11337. if cr != nil {
  11338. cr.sendContainerState(containerMapEnd)
  11339. }
  11340. }
  11341. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  11342. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  11343. }
  11344. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  11345. ee, cr := e.e, e.cr
  11346. ee.EncodeMapStart(len(v))
  11347. if e.h.Canonical {
  11348. v2 := make([]int64, len(v))
  11349. var i int
  11350. for k, _ := range v {
  11351. v2[i] = int64(k)
  11352. i++
  11353. }
  11354. sort.Sort(intSlice(v2))
  11355. for _, k2 := range v2 {
  11356. if cr != nil {
  11357. cr.sendContainerState(containerMapKey)
  11358. }
  11359. ee.EncodeInt(int64(int16(k2)))
  11360. if cr != nil {
  11361. cr.sendContainerState(containerMapValue)
  11362. }
  11363. ee.EncodeUint(uint64(v[int16(k2)]))
  11364. }
  11365. } else {
  11366. for k2, v2 := range v {
  11367. if cr != nil {
  11368. cr.sendContainerState(containerMapKey)
  11369. }
  11370. ee.EncodeInt(int64(k2))
  11371. if cr != nil {
  11372. cr.sendContainerState(containerMapValue)
  11373. }
  11374. ee.EncodeUint(uint64(v2))
  11375. }
  11376. }
  11377. if cr != nil {
  11378. cr.sendContainerState(containerMapEnd)
  11379. }
  11380. }
  11381. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  11382. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  11383. }
  11384. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  11385. ee, cr := e.e, e.cr
  11386. ee.EncodeMapStart(len(v))
  11387. if e.h.Canonical {
  11388. v2 := make([]int64, len(v))
  11389. var i int
  11390. for k, _ := range v {
  11391. v2[i] = int64(k)
  11392. i++
  11393. }
  11394. sort.Sort(intSlice(v2))
  11395. for _, k2 := range v2 {
  11396. if cr != nil {
  11397. cr.sendContainerState(containerMapKey)
  11398. }
  11399. ee.EncodeInt(int64(int16(k2)))
  11400. if cr != nil {
  11401. cr.sendContainerState(containerMapValue)
  11402. }
  11403. e.encode(v[int16(k2)])
  11404. }
  11405. } else {
  11406. for k2, v2 := range v {
  11407. if cr != nil {
  11408. cr.sendContainerState(containerMapKey)
  11409. }
  11410. ee.EncodeInt(int64(k2))
  11411. if cr != nil {
  11412. cr.sendContainerState(containerMapValue)
  11413. }
  11414. e.encode(v2)
  11415. }
  11416. }
  11417. if cr != nil {
  11418. cr.sendContainerState(containerMapEnd)
  11419. }
  11420. }
  11421. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  11422. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  11423. }
  11424. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  11425. ee, cr := e.e, e.cr
  11426. ee.EncodeMapStart(len(v))
  11427. if e.h.Canonical {
  11428. v2 := make([]int64, len(v))
  11429. var i int
  11430. for k, _ := range v {
  11431. v2[i] = int64(k)
  11432. i++
  11433. }
  11434. sort.Sort(intSlice(v2))
  11435. for _, k2 := range v2 {
  11436. if cr != nil {
  11437. cr.sendContainerState(containerMapKey)
  11438. }
  11439. ee.EncodeInt(int64(int16(k2)))
  11440. if cr != nil {
  11441. cr.sendContainerState(containerMapValue)
  11442. }
  11443. ee.EncodeInt(int64(v[int16(k2)]))
  11444. }
  11445. } else {
  11446. for k2, v2 := range v {
  11447. if cr != nil {
  11448. cr.sendContainerState(containerMapKey)
  11449. }
  11450. ee.EncodeInt(int64(k2))
  11451. if cr != nil {
  11452. cr.sendContainerState(containerMapValue)
  11453. }
  11454. ee.EncodeInt(int64(v2))
  11455. }
  11456. }
  11457. if cr != nil {
  11458. cr.sendContainerState(containerMapEnd)
  11459. }
  11460. }
  11461. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  11462. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  11463. }
  11464. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  11465. ee, cr := e.e, e.cr
  11466. ee.EncodeMapStart(len(v))
  11467. if e.h.Canonical {
  11468. v2 := make([]int64, len(v))
  11469. var i int
  11470. for k, _ := range v {
  11471. v2[i] = int64(k)
  11472. i++
  11473. }
  11474. sort.Sort(intSlice(v2))
  11475. for _, k2 := range v2 {
  11476. if cr != nil {
  11477. cr.sendContainerState(containerMapKey)
  11478. }
  11479. ee.EncodeInt(int64(int16(k2)))
  11480. if cr != nil {
  11481. cr.sendContainerState(containerMapValue)
  11482. }
  11483. ee.EncodeInt(int64(v[int16(k2)]))
  11484. }
  11485. } else {
  11486. for k2, v2 := range v {
  11487. if cr != nil {
  11488. cr.sendContainerState(containerMapKey)
  11489. }
  11490. ee.EncodeInt(int64(k2))
  11491. if cr != nil {
  11492. cr.sendContainerState(containerMapValue)
  11493. }
  11494. ee.EncodeInt(int64(v2))
  11495. }
  11496. }
  11497. if cr != nil {
  11498. cr.sendContainerState(containerMapEnd)
  11499. }
  11500. }
  11501. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  11502. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  11503. }
  11504. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
  11505. ee, cr := e.e, e.cr
  11506. ee.EncodeMapStart(len(v))
  11507. if e.h.Canonical {
  11508. v2 := make([]int64, len(v))
  11509. var i int
  11510. for k, _ := range v {
  11511. v2[i] = int64(k)
  11512. i++
  11513. }
  11514. sort.Sort(intSlice(v2))
  11515. for _, k2 := range v2 {
  11516. if cr != nil {
  11517. cr.sendContainerState(containerMapKey)
  11518. }
  11519. ee.EncodeInt(int64(int16(k2)))
  11520. if cr != nil {
  11521. cr.sendContainerState(containerMapValue)
  11522. }
  11523. ee.EncodeInt(int64(v[int16(k2)]))
  11524. }
  11525. } else {
  11526. for k2, v2 := range v {
  11527. if cr != nil {
  11528. cr.sendContainerState(containerMapKey)
  11529. }
  11530. ee.EncodeInt(int64(k2))
  11531. if cr != nil {
  11532. cr.sendContainerState(containerMapValue)
  11533. }
  11534. ee.EncodeInt(int64(v2))
  11535. }
  11536. }
  11537. if cr != nil {
  11538. cr.sendContainerState(containerMapEnd)
  11539. }
  11540. }
  11541. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  11542. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  11543. }
  11544. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  11545. ee, cr := e.e, e.cr
  11546. ee.EncodeMapStart(len(v))
  11547. if e.h.Canonical {
  11548. v2 := make([]int64, len(v))
  11549. var i int
  11550. for k, _ := range v {
  11551. v2[i] = int64(k)
  11552. i++
  11553. }
  11554. sort.Sort(intSlice(v2))
  11555. for _, k2 := range v2 {
  11556. if cr != nil {
  11557. cr.sendContainerState(containerMapKey)
  11558. }
  11559. ee.EncodeInt(int64(int16(k2)))
  11560. if cr != nil {
  11561. cr.sendContainerState(containerMapValue)
  11562. }
  11563. ee.EncodeInt(int64(v[int16(k2)]))
  11564. }
  11565. } else {
  11566. for k2, v2 := range v {
  11567. if cr != nil {
  11568. cr.sendContainerState(containerMapKey)
  11569. }
  11570. ee.EncodeInt(int64(k2))
  11571. if cr != nil {
  11572. cr.sendContainerState(containerMapValue)
  11573. }
  11574. ee.EncodeInt(int64(v2))
  11575. }
  11576. }
  11577. if cr != nil {
  11578. cr.sendContainerState(containerMapEnd)
  11579. }
  11580. }
  11581. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  11582. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  11583. }
  11584. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  11585. ee, cr := e.e, e.cr
  11586. ee.EncodeMapStart(len(v))
  11587. if e.h.Canonical {
  11588. v2 := make([]int64, len(v))
  11589. var i int
  11590. for k, _ := range v {
  11591. v2[i] = int64(k)
  11592. i++
  11593. }
  11594. sort.Sort(intSlice(v2))
  11595. for _, k2 := range v2 {
  11596. if cr != nil {
  11597. cr.sendContainerState(containerMapKey)
  11598. }
  11599. ee.EncodeInt(int64(int16(k2)))
  11600. if cr != nil {
  11601. cr.sendContainerState(containerMapValue)
  11602. }
  11603. ee.EncodeInt(int64(v[int16(k2)]))
  11604. }
  11605. } else {
  11606. for k2, v2 := range v {
  11607. if cr != nil {
  11608. cr.sendContainerState(containerMapKey)
  11609. }
  11610. ee.EncodeInt(int64(k2))
  11611. if cr != nil {
  11612. cr.sendContainerState(containerMapValue)
  11613. }
  11614. ee.EncodeInt(int64(v2))
  11615. }
  11616. }
  11617. if cr != nil {
  11618. cr.sendContainerState(containerMapEnd)
  11619. }
  11620. }
  11621. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  11622. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  11623. }
  11624. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  11625. ee, cr := e.e, e.cr
  11626. ee.EncodeMapStart(len(v))
  11627. if e.h.Canonical {
  11628. v2 := make([]int64, len(v))
  11629. var i int
  11630. for k, _ := range v {
  11631. v2[i] = int64(k)
  11632. i++
  11633. }
  11634. sort.Sort(intSlice(v2))
  11635. for _, k2 := range v2 {
  11636. if cr != nil {
  11637. cr.sendContainerState(containerMapKey)
  11638. }
  11639. ee.EncodeInt(int64(int16(k2)))
  11640. if cr != nil {
  11641. cr.sendContainerState(containerMapValue)
  11642. }
  11643. ee.EncodeFloat32(v[int16(k2)])
  11644. }
  11645. } else {
  11646. for k2, v2 := range v {
  11647. if cr != nil {
  11648. cr.sendContainerState(containerMapKey)
  11649. }
  11650. ee.EncodeInt(int64(k2))
  11651. if cr != nil {
  11652. cr.sendContainerState(containerMapValue)
  11653. }
  11654. ee.EncodeFloat32(v2)
  11655. }
  11656. }
  11657. if cr != nil {
  11658. cr.sendContainerState(containerMapEnd)
  11659. }
  11660. }
  11661. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  11662. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  11663. }
  11664. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  11665. ee, cr := e.e, e.cr
  11666. ee.EncodeMapStart(len(v))
  11667. if e.h.Canonical {
  11668. v2 := make([]int64, len(v))
  11669. var i int
  11670. for k, _ := range v {
  11671. v2[i] = int64(k)
  11672. i++
  11673. }
  11674. sort.Sort(intSlice(v2))
  11675. for _, k2 := range v2 {
  11676. if cr != nil {
  11677. cr.sendContainerState(containerMapKey)
  11678. }
  11679. ee.EncodeInt(int64(int16(k2)))
  11680. if cr != nil {
  11681. cr.sendContainerState(containerMapValue)
  11682. }
  11683. ee.EncodeFloat64(v[int16(k2)])
  11684. }
  11685. } else {
  11686. for k2, v2 := range v {
  11687. if cr != nil {
  11688. cr.sendContainerState(containerMapKey)
  11689. }
  11690. ee.EncodeInt(int64(k2))
  11691. if cr != nil {
  11692. cr.sendContainerState(containerMapValue)
  11693. }
  11694. ee.EncodeFloat64(v2)
  11695. }
  11696. }
  11697. if cr != nil {
  11698. cr.sendContainerState(containerMapEnd)
  11699. }
  11700. }
  11701. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  11702. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  11703. }
  11704. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  11705. ee, cr := e.e, e.cr
  11706. ee.EncodeMapStart(len(v))
  11707. if e.h.Canonical {
  11708. v2 := make([]int64, len(v))
  11709. var i int
  11710. for k, _ := range v {
  11711. v2[i] = int64(k)
  11712. i++
  11713. }
  11714. sort.Sort(intSlice(v2))
  11715. for _, k2 := range v2 {
  11716. if cr != nil {
  11717. cr.sendContainerState(containerMapKey)
  11718. }
  11719. ee.EncodeInt(int64(int16(k2)))
  11720. if cr != nil {
  11721. cr.sendContainerState(containerMapValue)
  11722. }
  11723. ee.EncodeBool(v[int16(k2)])
  11724. }
  11725. } else {
  11726. for k2, v2 := range v {
  11727. if cr != nil {
  11728. cr.sendContainerState(containerMapKey)
  11729. }
  11730. ee.EncodeInt(int64(k2))
  11731. if cr != nil {
  11732. cr.sendContainerState(containerMapValue)
  11733. }
  11734. ee.EncodeBool(v2)
  11735. }
  11736. }
  11737. if cr != nil {
  11738. cr.sendContainerState(containerMapEnd)
  11739. }
  11740. }
  11741. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  11742. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  11743. }
  11744. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  11745. ee, cr := e.e, e.cr
  11746. ee.EncodeMapStart(len(v))
  11747. if e.h.Canonical {
  11748. v2 := make([]int64, len(v))
  11749. var i int
  11750. for k, _ := range v {
  11751. v2[i] = int64(k)
  11752. i++
  11753. }
  11754. sort.Sort(intSlice(v2))
  11755. for _, k2 := range v2 {
  11756. if cr != nil {
  11757. cr.sendContainerState(containerMapKey)
  11758. }
  11759. ee.EncodeInt(int64(int32(k2)))
  11760. if cr != nil {
  11761. cr.sendContainerState(containerMapValue)
  11762. }
  11763. e.encode(v[int32(k2)])
  11764. }
  11765. } else {
  11766. for k2, v2 := range v {
  11767. if cr != nil {
  11768. cr.sendContainerState(containerMapKey)
  11769. }
  11770. ee.EncodeInt(int64(k2))
  11771. if cr != nil {
  11772. cr.sendContainerState(containerMapValue)
  11773. }
  11774. e.encode(v2)
  11775. }
  11776. }
  11777. if cr != nil {
  11778. cr.sendContainerState(containerMapEnd)
  11779. }
  11780. }
  11781. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  11782. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  11783. }
  11784. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  11785. ee, cr := e.e, e.cr
  11786. ee.EncodeMapStart(len(v))
  11787. if e.h.Canonical {
  11788. v2 := make([]int64, len(v))
  11789. var i int
  11790. for k, _ := range v {
  11791. v2[i] = int64(k)
  11792. i++
  11793. }
  11794. sort.Sort(intSlice(v2))
  11795. for _, k2 := range v2 {
  11796. if cr != nil {
  11797. cr.sendContainerState(containerMapKey)
  11798. }
  11799. ee.EncodeInt(int64(int32(k2)))
  11800. if cr != nil {
  11801. cr.sendContainerState(containerMapValue)
  11802. }
  11803. ee.EncodeString(c_UTF8, v[int32(k2)])
  11804. }
  11805. } else {
  11806. for k2, v2 := range v {
  11807. if cr != nil {
  11808. cr.sendContainerState(containerMapKey)
  11809. }
  11810. ee.EncodeInt(int64(k2))
  11811. if cr != nil {
  11812. cr.sendContainerState(containerMapValue)
  11813. }
  11814. ee.EncodeString(c_UTF8, v2)
  11815. }
  11816. }
  11817. if cr != nil {
  11818. cr.sendContainerState(containerMapEnd)
  11819. }
  11820. }
  11821. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  11822. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  11823. }
  11824. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  11825. ee, cr := e.e, e.cr
  11826. ee.EncodeMapStart(len(v))
  11827. if e.h.Canonical {
  11828. v2 := make([]int64, len(v))
  11829. var i int
  11830. for k, _ := range v {
  11831. v2[i] = int64(k)
  11832. i++
  11833. }
  11834. sort.Sort(intSlice(v2))
  11835. for _, k2 := range v2 {
  11836. if cr != nil {
  11837. cr.sendContainerState(containerMapKey)
  11838. }
  11839. ee.EncodeInt(int64(int32(k2)))
  11840. if cr != nil {
  11841. cr.sendContainerState(containerMapValue)
  11842. }
  11843. ee.EncodeUint(uint64(v[int32(k2)]))
  11844. }
  11845. } else {
  11846. for k2, v2 := range v {
  11847. if cr != nil {
  11848. cr.sendContainerState(containerMapKey)
  11849. }
  11850. ee.EncodeInt(int64(k2))
  11851. if cr != nil {
  11852. cr.sendContainerState(containerMapValue)
  11853. }
  11854. ee.EncodeUint(uint64(v2))
  11855. }
  11856. }
  11857. if cr != nil {
  11858. cr.sendContainerState(containerMapEnd)
  11859. }
  11860. }
  11861. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  11862. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  11863. }
  11864. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  11865. ee, cr := e.e, e.cr
  11866. ee.EncodeMapStart(len(v))
  11867. if e.h.Canonical {
  11868. v2 := make([]int64, len(v))
  11869. var i int
  11870. for k, _ := range v {
  11871. v2[i] = int64(k)
  11872. i++
  11873. }
  11874. sort.Sort(intSlice(v2))
  11875. for _, k2 := range v2 {
  11876. if cr != nil {
  11877. cr.sendContainerState(containerMapKey)
  11878. }
  11879. ee.EncodeInt(int64(int32(k2)))
  11880. if cr != nil {
  11881. cr.sendContainerState(containerMapValue)
  11882. }
  11883. ee.EncodeUint(uint64(v[int32(k2)]))
  11884. }
  11885. } else {
  11886. for k2, v2 := range v {
  11887. if cr != nil {
  11888. cr.sendContainerState(containerMapKey)
  11889. }
  11890. ee.EncodeInt(int64(k2))
  11891. if cr != nil {
  11892. cr.sendContainerState(containerMapValue)
  11893. }
  11894. ee.EncodeUint(uint64(v2))
  11895. }
  11896. }
  11897. if cr != nil {
  11898. cr.sendContainerState(containerMapEnd)
  11899. }
  11900. }
  11901. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  11902. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  11903. }
  11904. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  11905. ee, cr := e.e, e.cr
  11906. ee.EncodeMapStart(len(v))
  11907. if e.h.Canonical {
  11908. v2 := make([]int64, len(v))
  11909. var i int
  11910. for k, _ := range v {
  11911. v2[i] = int64(k)
  11912. i++
  11913. }
  11914. sort.Sort(intSlice(v2))
  11915. for _, k2 := range v2 {
  11916. if cr != nil {
  11917. cr.sendContainerState(containerMapKey)
  11918. }
  11919. ee.EncodeInt(int64(int32(k2)))
  11920. if cr != nil {
  11921. cr.sendContainerState(containerMapValue)
  11922. }
  11923. ee.EncodeUint(uint64(v[int32(k2)]))
  11924. }
  11925. } else {
  11926. for k2, v2 := range v {
  11927. if cr != nil {
  11928. cr.sendContainerState(containerMapKey)
  11929. }
  11930. ee.EncodeInt(int64(k2))
  11931. if cr != nil {
  11932. cr.sendContainerState(containerMapValue)
  11933. }
  11934. ee.EncodeUint(uint64(v2))
  11935. }
  11936. }
  11937. if cr != nil {
  11938. cr.sendContainerState(containerMapEnd)
  11939. }
  11940. }
  11941. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  11942. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  11943. }
  11944. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  11945. ee, cr := e.e, e.cr
  11946. ee.EncodeMapStart(len(v))
  11947. if e.h.Canonical {
  11948. v2 := make([]int64, len(v))
  11949. var i int
  11950. for k, _ := range v {
  11951. v2[i] = int64(k)
  11952. i++
  11953. }
  11954. sort.Sort(intSlice(v2))
  11955. for _, k2 := range v2 {
  11956. if cr != nil {
  11957. cr.sendContainerState(containerMapKey)
  11958. }
  11959. ee.EncodeInt(int64(int32(k2)))
  11960. if cr != nil {
  11961. cr.sendContainerState(containerMapValue)
  11962. }
  11963. ee.EncodeUint(uint64(v[int32(k2)]))
  11964. }
  11965. } else {
  11966. for k2, v2 := range v {
  11967. if cr != nil {
  11968. cr.sendContainerState(containerMapKey)
  11969. }
  11970. ee.EncodeInt(int64(k2))
  11971. if cr != nil {
  11972. cr.sendContainerState(containerMapValue)
  11973. }
  11974. ee.EncodeUint(uint64(v2))
  11975. }
  11976. }
  11977. if cr != nil {
  11978. cr.sendContainerState(containerMapEnd)
  11979. }
  11980. }
  11981. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  11982. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  11983. }
  11984. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  11985. ee, cr := e.e, e.cr
  11986. ee.EncodeMapStart(len(v))
  11987. if e.h.Canonical {
  11988. v2 := make([]int64, len(v))
  11989. var i int
  11990. for k, _ := range v {
  11991. v2[i] = int64(k)
  11992. i++
  11993. }
  11994. sort.Sort(intSlice(v2))
  11995. for _, k2 := range v2 {
  11996. if cr != nil {
  11997. cr.sendContainerState(containerMapKey)
  11998. }
  11999. ee.EncodeInt(int64(int32(k2)))
  12000. if cr != nil {
  12001. cr.sendContainerState(containerMapValue)
  12002. }
  12003. ee.EncodeUint(uint64(v[int32(k2)]))
  12004. }
  12005. } else {
  12006. for k2, v2 := range v {
  12007. if cr != nil {
  12008. cr.sendContainerState(containerMapKey)
  12009. }
  12010. ee.EncodeInt(int64(k2))
  12011. if cr != nil {
  12012. cr.sendContainerState(containerMapValue)
  12013. }
  12014. ee.EncodeUint(uint64(v2))
  12015. }
  12016. }
  12017. if cr != nil {
  12018. cr.sendContainerState(containerMapEnd)
  12019. }
  12020. }
  12021. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  12022. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  12023. }
  12024. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  12025. ee, cr := e.e, e.cr
  12026. ee.EncodeMapStart(len(v))
  12027. if e.h.Canonical {
  12028. v2 := make([]int64, len(v))
  12029. var i int
  12030. for k, _ := range v {
  12031. v2[i] = int64(k)
  12032. i++
  12033. }
  12034. sort.Sort(intSlice(v2))
  12035. for _, k2 := range v2 {
  12036. if cr != nil {
  12037. cr.sendContainerState(containerMapKey)
  12038. }
  12039. ee.EncodeInt(int64(int32(k2)))
  12040. if cr != nil {
  12041. cr.sendContainerState(containerMapValue)
  12042. }
  12043. e.encode(v[int32(k2)])
  12044. }
  12045. } else {
  12046. for k2, v2 := range v {
  12047. if cr != nil {
  12048. cr.sendContainerState(containerMapKey)
  12049. }
  12050. ee.EncodeInt(int64(k2))
  12051. if cr != nil {
  12052. cr.sendContainerState(containerMapValue)
  12053. }
  12054. e.encode(v2)
  12055. }
  12056. }
  12057. if cr != nil {
  12058. cr.sendContainerState(containerMapEnd)
  12059. }
  12060. }
  12061. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  12062. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  12063. }
  12064. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  12065. ee, cr := e.e, e.cr
  12066. ee.EncodeMapStart(len(v))
  12067. if e.h.Canonical {
  12068. v2 := make([]int64, len(v))
  12069. var i int
  12070. for k, _ := range v {
  12071. v2[i] = int64(k)
  12072. i++
  12073. }
  12074. sort.Sort(intSlice(v2))
  12075. for _, k2 := range v2 {
  12076. if cr != nil {
  12077. cr.sendContainerState(containerMapKey)
  12078. }
  12079. ee.EncodeInt(int64(int32(k2)))
  12080. if cr != nil {
  12081. cr.sendContainerState(containerMapValue)
  12082. }
  12083. ee.EncodeInt(int64(v[int32(k2)]))
  12084. }
  12085. } else {
  12086. for k2, v2 := range v {
  12087. if cr != nil {
  12088. cr.sendContainerState(containerMapKey)
  12089. }
  12090. ee.EncodeInt(int64(k2))
  12091. if cr != nil {
  12092. cr.sendContainerState(containerMapValue)
  12093. }
  12094. ee.EncodeInt(int64(v2))
  12095. }
  12096. }
  12097. if cr != nil {
  12098. cr.sendContainerState(containerMapEnd)
  12099. }
  12100. }
  12101. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  12102. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  12103. }
  12104. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  12105. ee, cr := e.e, e.cr
  12106. ee.EncodeMapStart(len(v))
  12107. if e.h.Canonical {
  12108. v2 := make([]int64, len(v))
  12109. var i int
  12110. for k, _ := range v {
  12111. v2[i] = int64(k)
  12112. i++
  12113. }
  12114. sort.Sort(intSlice(v2))
  12115. for _, k2 := range v2 {
  12116. if cr != nil {
  12117. cr.sendContainerState(containerMapKey)
  12118. }
  12119. ee.EncodeInt(int64(int32(k2)))
  12120. if cr != nil {
  12121. cr.sendContainerState(containerMapValue)
  12122. }
  12123. ee.EncodeInt(int64(v[int32(k2)]))
  12124. }
  12125. } else {
  12126. for k2, v2 := range v {
  12127. if cr != nil {
  12128. cr.sendContainerState(containerMapKey)
  12129. }
  12130. ee.EncodeInt(int64(k2))
  12131. if cr != nil {
  12132. cr.sendContainerState(containerMapValue)
  12133. }
  12134. ee.EncodeInt(int64(v2))
  12135. }
  12136. }
  12137. if cr != nil {
  12138. cr.sendContainerState(containerMapEnd)
  12139. }
  12140. }
  12141. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  12142. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  12143. }
  12144. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  12145. ee, cr := e.e, e.cr
  12146. ee.EncodeMapStart(len(v))
  12147. if e.h.Canonical {
  12148. v2 := make([]int64, len(v))
  12149. var i int
  12150. for k, _ := range v {
  12151. v2[i] = int64(k)
  12152. i++
  12153. }
  12154. sort.Sort(intSlice(v2))
  12155. for _, k2 := range v2 {
  12156. if cr != nil {
  12157. cr.sendContainerState(containerMapKey)
  12158. }
  12159. ee.EncodeInt(int64(int32(k2)))
  12160. if cr != nil {
  12161. cr.sendContainerState(containerMapValue)
  12162. }
  12163. ee.EncodeInt(int64(v[int32(k2)]))
  12164. }
  12165. } else {
  12166. for k2, v2 := range v {
  12167. if cr != nil {
  12168. cr.sendContainerState(containerMapKey)
  12169. }
  12170. ee.EncodeInt(int64(k2))
  12171. if cr != nil {
  12172. cr.sendContainerState(containerMapValue)
  12173. }
  12174. ee.EncodeInt(int64(v2))
  12175. }
  12176. }
  12177. if cr != nil {
  12178. cr.sendContainerState(containerMapEnd)
  12179. }
  12180. }
  12181. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  12182. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  12183. }
  12184. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  12185. ee, cr := e.e, e.cr
  12186. ee.EncodeMapStart(len(v))
  12187. if e.h.Canonical {
  12188. v2 := make([]int64, len(v))
  12189. var i int
  12190. for k, _ := range v {
  12191. v2[i] = int64(k)
  12192. i++
  12193. }
  12194. sort.Sort(intSlice(v2))
  12195. for _, k2 := range v2 {
  12196. if cr != nil {
  12197. cr.sendContainerState(containerMapKey)
  12198. }
  12199. ee.EncodeInt(int64(int32(k2)))
  12200. if cr != nil {
  12201. cr.sendContainerState(containerMapValue)
  12202. }
  12203. ee.EncodeInt(int64(v[int32(k2)]))
  12204. }
  12205. } else {
  12206. for k2, v2 := range v {
  12207. if cr != nil {
  12208. cr.sendContainerState(containerMapKey)
  12209. }
  12210. ee.EncodeInt(int64(k2))
  12211. if cr != nil {
  12212. cr.sendContainerState(containerMapValue)
  12213. }
  12214. ee.EncodeInt(int64(v2))
  12215. }
  12216. }
  12217. if cr != nil {
  12218. cr.sendContainerState(containerMapEnd)
  12219. }
  12220. }
  12221. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  12222. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  12223. }
  12224. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  12225. ee, cr := e.e, e.cr
  12226. ee.EncodeMapStart(len(v))
  12227. if e.h.Canonical {
  12228. v2 := make([]int64, len(v))
  12229. var i int
  12230. for k, _ := range v {
  12231. v2[i] = int64(k)
  12232. i++
  12233. }
  12234. sort.Sort(intSlice(v2))
  12235. for _, k2 := range v2 {
  12236. if cr != nil {
  12237. cr.sendContainerState(containerMapKey)
  12238. }
  12239. ee.EncodeInt(int64(int32(k2)))
  12240. if cr != nil {
  12241. cr.sendContainerState(containerMapValue)
  12242. }
  12243. ee.EncodeInt(int64(v[int32(k2)]))
  12244. }
  12245. } else {
  12246. for k2, v2 := range v {
  12247. if cr != nil {
  12248. cr.sendContainerState(containerMapKey)
  12249. }
  12250. ee.EncodeInt(int64(k2))
  12251. if cr != nil {
  12252. cr.sendContainerState(containerMapValue)
  12253. }
  12254. ee.EncodeInt(int64(v2))
  12255. }
  12256. }
  12257. if cr != nil {
  12258. cr.sendContainerState(containerMapEnd)
  12259. }
  12260. }
  12261. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  12262. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  12263. }
  12264. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  12265. ee, cr := e.e, e.cr
  12266. ee.EncodeMapStart(len(v))
  12267. if e.h.Canonical {
  12268. v2 := make([]int64, len(v))
  12269. var i int
  12270. for k, _ := range v {
  12271. v2[i] = int64(k)
  12272. i++
  12273. }
  12274. sort.Sort(intSlice(v2))
  12275. for _, k2 := range v2 {
  12276. if cr != nil {
  12277. cr.sendContainerState(containerMapKey)
  12278. }
  12279. ee.EncodeInt(int64(int32(k2)))
  12280. if cr != nil {
  12281. cr.sendContainerState(containerMapValue)
  12282. }
  12283. ee.EncodeFloat32(v[int32(k2)])
  12284. }
  12285. } else {
  12286. for k2, v2 := range v {
  12287. if cr != nil {
  12288. cr.sendContainerState(containerMapKey)
  12289. }
  12290. ee.EncodeInt(int64(k2))
  12291. if cr != nil {
  12292. cr.sendContainerState(containerMapValue)
  12293. }
  12294. ee.EncodeFloat32(v2)
  12295. }
  12296. }
  12297. if cr != nil {
  12298. cr.sendContainerState(containerMapEnd)
  12299. }
  12300. }
  12301. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  12302. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  12303. }
  12304. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  12305. ee, cr := e.e, e.cr
  12306. ee.EncodeMapStart(len(v))
  12307. if e.h.Canonical {
  12308. v2 := make([]int64, len(v))
  12309. var i int
  12310. for k, _ := range v {
  12311. v2[i] = int64(k)
  12312. i++
  12313. }
  12314. sort.Sort(intSlice(v2))
  12315. for _, k2 := range v2 {
  12316. if cr != nil {
  12317. cr.sendContainerState(containerMapKey)
  12318. }
  12319. ee.EncodeInt(int64(int32(k2)))
  12320. if cr != nil {
  12321. cr.sendContainerState(containerMapValue)
  12322. }
  12323. ee.EncodeFloat64(v[int32(k2)])
  12324. }
  12325. } else {
  12326. for k2, v2 := range v {
  12327. if cr != nil {
  12328. cr.sendContainerState(containerMapKey)
  12329. }
  12330. ee.EncodeInt(int64(k2))
  12331. if cr != nil {
  12332. cr.sendContainerState(containerMapValue)
  12333. }
  12334. ee.EncodeFloat64(v2)
  12335. }
  12336. }
  12337. if cr != nil {
  12338. cr.sendContainerState(containerMapEnd)
  12339. }
  12340. }
  12341. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  12342. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  12343. }
  12344. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  12345. ee, cr := e.e, e.cr
  12346. ee.EncodeMapStart(len(v))
  12347. if e.h.Canonical {
  12348. v2 := make([]int64, len(v))
  12349. var i int
  12350. for k, _ := range v {
  12351. v2[i] = int64(k)
  12352. i++
  12353. }
  12354. sort.Sort(intSlice(v2))
  12355. for _, k2 := range v2 {
  12356. if cr != nil {
  12357. cr.sendContainerState(containerMapKey)
  12358. }
  12359. ee.EncodeInt(int64(int32(k2)))
  12360. if cr != nil {
  12361. cr.sendContainerState(containerMapValue)
  12362. }
  12363. ee.EncodeBool(v[int32(k2)])
  12364. }
  12365. } else {
  12366. for k2, v2 := range v {
  12367. if cr != nil {
  12368. cr.sendContainerState(containerMapKey)
  12369. }
  12370. ee.EncodeInt(int64(k2))
  12371. if cr != nil {
  12372. cr.sendContainerState(containerMapValue)
  12373. }
  12374. ee.EncodeBool(v2)
  12375. }
  12376. }
  12377. if cr != nil {
  12378. cr.sendContainerState(containerMapEnd)
  12379. }
  12380. }
  12381. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  12382. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  12383. }
  12384. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  12385. ee, cr := e.e, e.cr
  12386. ee.EncodeMapStart(len(v))
  12387. if e.h.Canonical {
  12388. v2 := make([]int64, len(v))
  12389. var i int
  12390. for k, _ := range v {
  12391. v2[i] = int64(k)
  12392. i++
  12393. }
  12394. sort.Sort(intSlice(v2))
  12395. for _, k2 := range v2 {
  12396. if cr != nil {
  12397. cr.sendContainerState(containerMapKey)
  12398. }
  12399. ee.EncodeInt(int64(int64(k2)))
  12400. if cr != nil {
  12401. cr.sendContainerState(containerMapValue)
  12402. }
  12403. e.encode(v[int64(k2)])
  12404. }
  12405. } else {
  12406. for k2, v2 := range v {
  12407. if cr != nil {
  12408. cr.sendContainerState(containerMapKey)
  12409. }
  12410. ee.EncodeInt(int64(k2))
  12411. if cr != nil {
  12412. cr.sendContainerState(containerMapValue)
  12413. }
  12414. e.encode(v2)
  12415. }
  12416. }
  12417. if cr != nil {
  12418. cr.sendContainerState(containerMapEnd)
  12419. }
  12420. }
  12421. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  12422. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  12423. }
  12424. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  12425. ee, cr := e.e, e.cr
  12426. ee.EncodeMapStart(len(v))
  12427. if e.h.Canonical {
  12428. v2 := make([]int64, len(v))
  12429. var i int
  12430. for k, _ := range v {
  12431. v2[i] = int64(k)
  12432. i++
  12433. }
  12434. sort.Sort(intSlice(v2))
  12435. for _, k2 := range v2 {
  12436. if cr != nil {
  12437. cr.sendContainerState(containerMapKey)
  12438. }
  12439. ee.EncodeInt(int64(int64(k2)))
  12440. if cr != nil {
  12441. cr.sendContainerState(containerMapValue)
  12442. }
  12443. ee.EncodeString(c_UTF8, v[int64(k2)])
  12444. }
  12445. } else {
  12446. for k2, v2 := range v {
  12447. if cr != nil {
  12448. cr.sendContainerState(containerMapKey)
  12449. }
  12450. ee.EncodeInt(int64(k2))
  12451. if cr != nil {
  12452. cr.sendContainerState(containerMapValue)
  12453. }
  12454. ee.EncodeString(c_UTF8, v2)
  12455. }
  12456. }
  12457. if cr != nil {
  12458. cr.sendContainerState(containerMapEnd)
  12459. }
  12460. }
  12461. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  12462. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  12463. }
  12464. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  12465. ee, cr := e.e, e.cr
  12466. ee.EncodeMapStart(len(v))
  12467. if e.h.Canonical {
  12468. v2 := make([]int64, len(v))
  12469. var i int
  12470. for k, _ := range v {
  12471. v2[i] = int64(k)
  12472. i++
  12473. }
  12474. sort.Sort(intSlice(v2))
  12475. for _, k2 := range v2 {
  12476. if cr != nil {
  12477. cr.sendContainerState(containerMapKey)
  12478. }
  12479. ee.EncodeInt(int64(int64(k2)))
  12480. if cr != nil {
  12481. cr.sendContainerState(containerMapValue)
  12482. }
  12483. ee.EncodeUint(uint64(v[int64(k2)]))
  12484. }
  12485. } else {
  12486. for k2, v2 := range v {
  12487. if cr != nil {
  12488. cr.sendContainerState(containerMapKey)
  12489. }
  12490. ee.EncodeInt(int64(k2))
  12491. if cr != nil {
  12492. cr.sendContainerState(containerMapValue)
  12493. }
  12494. ee.EncodeUint(uint64(v2))
  12495. }
  12496. }
  12497. if cr != nil {
  12498. cr.sendContainerState(containerMapEnd)
  12499. }
  12500. }
  12501. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  12502. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  12503. }
  12504. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  12505. ee, cr := e.e, e.cr
  12506. ee.EncodeMapStart(len(v))
  12507. if e.h.Canonical {
  12508. v2 := make([]int64, len(v))
  12509. var i int
  12510. for k, _ := range v {
  12511. v2[i] = int64(k)
  12512. i++
  12513. }
  12514. sort.Sort(intSlice(v2))
  12515. for _, k2 := range v2 {
  12516. if cr != nil {
  12517. cr.sendContainerState(containerMapKey)
  12518. }
  12519. ee.EncodeInt(int64(int64(k2)))
  12520. if cr != nil {
  12521. cr.sendContainerState(containerMapValue)
  12522. }
  12523. ee.EncodeUint(uint64(v[int64(k2)]))
  12524. }
  12525. } else {
  12526. for k2, v2 := range v {
  12527. if cr != nil {
  12528. cr.sendContainerState(containerMapKey)
  12529. }
  12530. ee.EncodeInt(int64(k2))
  12531. if cr != nil {
  12532. cr.sendContainerState(containerMapValue)
  12533. }
  12534. ee.EncodeUint(uint64(v2))
  12535. }
  12536. }
  12537. if cr != nil {
  12538. cr.sendContainerState(containerMapEnd)
  12539. }
  12540. }
  12541. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  12542. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  12543. }
  12544. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  12545. ee, cr := e.e, e.cr
  12546. ee.EncodeMapStart(len(v))
  12547. if e.h.Canonical {
  12548. v2 := make([]int64, len(v))
  12549. var i int
  12550. for k, _ := range v {
  12551. v2[i] = int64(k)
  12552. i++
  12553. }
  12554. sort.Sort(intSlice(v2))
  12555. for _, k2 := range v2 {
  12556. if cr != nil {
  12557. cr.sendContainerState(containerMapKey)
  12558. }
  12559. ee.EncodeInt(int64(int64(k2)))
  12560. if cr != nil {
  12561. cr.sendContainerState(containerMapValue)
  12562. }
  12563. ee.EncodeUint(uint64(v[int64(k2)]))
  12564. }
  12565. } else {
  12566. for k2, v2 := range v {
  12567. if cr != nil {
  12568. cr.sendContainerState(containerMapKey)
  12569. }
  12570. ee.EncodeInt(int64(k2))
  12571. if cr != nil {
  12572. cr.sendContainerState(containerMapValue)
  12573. }
  12574. ee.EncodeUint(uint64(v2))
  12575. }
  12576. }
  12577. if cr != nil {
  12578. cr.sendContainerState(containerMapEnd)
  12579. }
  12580. }
  12581. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  12582. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  12583. }
  12584. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  12585. ee, cr := e.e, e.cr
  12586. ee.EncodeMapStart(len(v))
  12587. if e.h.Canonical {
  12588. v2 := make([]int64, len(v))
  12589. var i int
  12590. for k, _ := range v {
  12591. v2[i] = int64(k)
  12592. i++
  12593. }
  12594. sort.Sort(intSlice(v2))
  12595. for _, k2 := range v2 {
  12596. if cr != nil {
  12597. cr.sendContainerState(containerMapKey)
  12598. }
  12599. ee.EncodeInt(int64(int64(k2)))
  12600. if cr != nil {
  12601. cr.sendContainerState(containerMapValue)
  12602. }
  12603. ee.EncodeUint(uint64(v[int64(k2)]))
  12604. }
  12605. } else {
  12606. for k2, v2 := range v {
  12607. if cr != nil {
  12608. cr.sendContainerState(containerMapKey)
  12609. }
  12610. ee.EncodeInt(int64(k2))
  12611. if cr != nil {
  12612. cr.sendContainerState(containerMapValue)
  12613. }
  12614. ee.EncodeUint(uint64(v2))
  12615. }
  12616. }
  12617. if cr != nil {
  12618. cr.sendContainerState(containerMapEnd)
  12619. }
  12620. }
  12621. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  12622. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  12623. }
  12624. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  12625. ee, cr := e.e, e.cr
  12626. ee.EncodeMapStart(len(v))
  12627. if e.h.Canonical {
  12628. v2 := make([]int64, len(v))
  12629. var i int
  12630. for k, _ := range v {
  12631. v2[i] = int64(k)
  12632. i++
  12633. }
  12634. sort.Sort(intSlice(v2))
  12635. for _, k2 := range v2 {
  12636. if cr != nil {
  12637. cr.sendContainerState(containerMapKey)
  12638. }
  12639. ee.EncodeInt(int64(int64(k2)))
  12640. if cr != nil {
  12641. cr.sendContainerState(containerMapValue)
  12642. }
  12643. ee.EncodeUint(uint64(v[int64(k2)]))
  12644. }
  12645. } else {
  12646. for k2, v2 := range v {
  12647. if cr != nil {
  12648. cr.sendContainerState(containerMapKey)
  12649. }
  12650. ee.EncodeInt(int64(k2))
  12651. if cr != nil {
  12652. cr.sendContainerState(containerMapValue)
  12653. }
  12654. ee.EncodeUint(uint64(v2))
  12655. }
  12656. }
  12657. if cr != nil {
  12658. cr.sendContainerState(containerMapEnd)
  12659. }
  12660. }
  12661. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  12662. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  12663. }
  12664. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  12665. ee, cr := e.e, e.cr
  12666. ee.EncodeMapStart(len(v))
  12667. if e.h.Canonical {
  12668. v2 := make([]int64, len(v))
  12669. var i int
  12670. for k, _ := range v {
  12671. v2[i] = int64(k)
  12672. i++
  12673. }
  12674. sort.Sort(intSlice(v2))
  12675. for _, k2 := range v2 {
  12676. if cr != nil {
  12677. cr.sendContainerState(containerMapKey)
  12678. }
  12679. ee.EncodeInt(int64(int64(k2)))
  12680. if cr != nil {
  12681. cr.sendContainerState(containerMapValue)
  12682. }
  12683. e.encode(v[int64(k2)])
  12684. }
  12685. } else {
  12686. for k2, v2 := range v {
  12687. if cr != nil {
  12688. cr.sendContainerState(containerMapKey)
  12689. }
  12690. ee.EncodeInt(int64(k2))
  12691. if cr != nil {
  12692. cr.sendContainerState(containerMapValue)
  12693. }
  12694. e.encode(v2)
  12695. }
  12696. }
  12697. if cr != nil {
  12698. cr.sendContainerState(containerMapEnd)
  12699. }
  12700. }
  12701. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  12702. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  12703. }
  12704. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  12705. ee, cr := e.e, e.cr
  12706. ee.EncodeMapStart(len(v))
  12707. if e.h.Canonical {
  12708. v2 := make([]int64, len(v))
  12709. var i int
  12710. for k, _ := range v {
  12711. v2[i] = int64(k)
  12712. i++
  12713. }
  12714. sort.Sort(intSlice(v2))
  12715. for _, k2 := range v2 {
  12716. if cr != nil {
  12717. cr.sendContainerState(containerMapKey)
  12718. }
  12719. ee.EncodeInt(int64(int64(k2)))
  12720. if cr != nil {
  12721. cr.sendContainerState(containerMapValue)
  12722. }
  12723. ee.EncodeInt(int64(v[int64(k2)]))
  12724. }
  12725. } else {
  12726. for k2, v2 := range v {
  12727. if cr != nil {
  12728. cr.sendContainerState(containerMapKey)
  12729. }
  12730. ee.EncodeInt(int64(k2))
  12731. if cr != nil {
  12732. cr.sendContainerState(containerMapValue)
  12733. }
  12734. ee.EncodeInt(int64(v2))
  12735. }
  12736. }
  12737. if cr != nil {
  12738. cr.sendContainerState(containerMapEnd)
  12739. }
  12740. }
  12741. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  12742. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  12743. }
  12744. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  12745. ee, cr := e.e, e.cr
  12746. ee.EncodeMapStart(len(v))
  12747. if e.h.Canonical {
  12748. v2 := make([]int64, len(v))
  12749. var i int
  12750. for k, _ := range v {
  12751. v2[i] = int64(k)
  12752. i++
  12753. }
  12754. sort.Sort(intSlice(v2))
  12755. for _, k2 := range v2 {
  12756. if cr != nil {
  12757. cr.sendContainerState(containerMapKey)
  12758. }
  12759. ee.EncodeInt(int64(int64(k2)))
  12760. if cr != nil {
  12761. cr.sendContainerState(containerMapValue)
  12762. }
  12763. ee.EncodeInt(int64(v[int64(k2)]))
  12764. }
  12765. } else {
  12766. for k2, v2 := range v {
  12767. if cr != nil {
  12768. cr.sendContainerState(containerMapKey)
  12769. }
  12770. ee.EncodeInt(int64(k2))
  12771. if cr != nil {
  12772. cr.sendContainerState(containerMapValue)
  12773. }
  12774. ee.EncodeInt(int64(v2))
  12775. }
  12776. }
  12777. if cr != nil {
  12778. cr.sendContainerState(containerMapEnd)
  12779. }
  12780. }
  12781. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  12782. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  12783. }
  12784. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  12785. ee, cr := e.e, e.cr
  12786. ee.EncodeMapStart(len(v))
  12787. if e.h.Canonical {
  12788. v2 := make([]int64, len(v))
  12789. var i int
  12790. for k, _ := range v {
  12791. v2[i] = int64(k)
  12792. i++
  12793. }
  12794. sort.Sort(intSlice(v2))
  12795. for _, k2 := range v2 {
  12796. if cr != nil {
  12797. cr.sendContainerState(containerMapKey)
  12798. }
  12799. ee.EncodeInt(int64(int64(k2)))
  12800. if cr != nil {
  12801. cr.sendContainerState(containerMapValue)
  12802. }
  12803. ee.EncodeInt(int64(v[int64(k2)]))
  12804. }
  12805. } else {
  12806. for k2, v2 := range v {
  12807. if cr != nil {
  12808. cr.sendContainerState(containerMapKey)
  12809. }
  12810. ee.EncodeInt(int64(k2))
  12811. if cr != nil {
  12812. cr.sendContainerState(containerMapValue)
  12813. }
  12814. ee.EncodeInt(int64(v2))
  12815. }
  12816. }
  12817. if cr != nil {
  12818. cr.sendContainerState(containerMapEnd)
  12819. }
  12820. }
  12821. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  12822. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  12823. }
  12824. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  12825. ee, cr := e.e, e.cr
  12826. ee.EncodeMapStart(len(v))
  12827. if e.h.Canonical {
  12828. v2 := make([]int64, len(v))
  12829. var i int
  12830. for k, _ := range v {
  12831. v2[i] = int64(k)
  12832. i++
  12833. }
  12834. sort.Sort(intSlice(v2))
  12835. for _, k2 := range v2 {
  12836. if cr != nil {
  12837. cr.sendContainerState(containerMapKey)
  12838. }
  12839. ee.EncodeInt(int64(int64(k2)))
  12840. if cr != nil {
  12841. cr.sendContainerState(containerMapValue)
  12842. }
  12843. ee.EncodeInt(int64(v[int64(k2)]))
  12844. }
  12845. } else {
  12846. for k2, v2 := range v {
  12847. if cr != nil {
  12848. cr.sendContainerState(containerMapKey)
  12849. }
  12850. ee.EncodeInt(int64(k2))
  12851. if cr != nil {
  12852. cr.sendContainerState(containerMapValue)
  12853. }
  12854. ee.EncodeInt(int64(v2))
  12855. }
  12856. }
  12857. if cr != nil {
  12858. cr.sendContainerState(containerMapEnd)
  12859. }
  12860. }
  12861. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  12862. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  12863. }
  12864. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  12865. ee, cr := e.e, e.cr
  12866. ee.EncodeMapStart(len(v))
  12867. if e.h.Canonical {
  12868. v2 := make([]int64, len(v))
  12869. var i int
  12870. for k, _ := range v {
  12871. v2[i] = int64(k)
  12872. i++
  12873. }
  12874. sort.Sort(intSlice(v2))
  12875. for _, k2 := range v2 {
  12876. if cr != nil {
  12877. cr.sendContainerState(containerMapKey)
  12878. }
  12879. ee.EncodeInt(int64(int64(k2)))
  12880. if cr != nil {
  12881. cr.sendContainerState(containerMapValue)
  12882. }
  12883. ee.EncodeInt(int64(v[int64(k2)]))
  12884. }
  12885. } else {
  12886. for k2, v2 := range v {
  12887. if cr != nil {
  12888. cr.sendContainerState(containerMapKey)
  12889. }
  12890. ee.EncodeInt(int64(k2))
  12891. if cr != nil {
  12892. cr.sendContainerState(containerMapValue)
  12893. }
  12894. ee.EncodeInt(int64(v2))
  12895. }
  12896. }
  12897. if cr != nil {
  12898. cr.sendContainerState(containerMapEnd)
  12899. }
  12900. }
  12901. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  12902. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  12903. }
  12904. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  12905. ee, cr := e.e, e.cr
  12906. ee.EncodeMapStart(len(v))
  12907. if e.h.Canonical {
  12908. v2 := make([]int64, len(v))
  12909. var i int
  12910. for k, _ := range v {
  12911. v2[i] = int64(k)
  12912. i++
  12913. }
  12914. sort.Sort(intSlice(v2))
  12915. for _, k2 := range v2 {
  12916. if cr != nil {
  12917. cr.sendContainerState(containerMapKey)
  12918. }
  12919. ee.EncodeInt(int64(int64(k2)))
  12920. if cr != nil {
  12921. cr.sendContainerState(containerMapValue)
  12922. }
  12923. ee.EncodeFloat32(v[int64(k2)])
  12924. }
  12925. } else {
  12926. for k2, v2 := range v {
  12927. if cr != nil {
  12928. cr.sendContainerState(containerMapKey)
  12929. }
  12930. ee.EncodeInt(int64(k2))
  12931. if cr != nil {
  12932. cr.sendContainerState(containerMapValue)
  12933. }
  12934. ee.EncodeFloat32(v2)
  12935. }
  12936. }
  12937. if cr != nil {
  12938. cr.sendContainerState(containerMapEnd)
  12939. }
  12940. }
  12941. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  12942. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  12943. }
  12944. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  12945. ee, cr := e.e, e.cr
  12946. ee.EncodeMapStart(len(v))
  12947. if e.h.Canonical {
  12948. v2 := make([]int64, len(v))
  12949. var i int
  12950. for k, _ := range v {
  12951. v2[i] = int64(k)
  12952. i++
  12953. }
  12954. sort.Sort(intSlice(v2))
  12955. for _, k2 := range v2 {
  12956. if cr != nil {
  12957. cr.sendContainerState(containerMapKey)
  12958. }
  12959. ee.EncodeInt(int64(int64(k2)))
  12960. if cr != nil {
  12961. cr.sendContainerState(containerMapValue)
  12962. }
  12963. ee.EncodeFloat64(v[int64(k2)])
  12964. }
  12965. } else {
  12966. for k2, v2 := range v {
  12967. if cr != nil {
  12968. cr.sendContainerState(containerMapKey)
  12969. }
  12970. ee.EncodeInt(int64(k2))
  12971. if cr != nil {
  12972. cr.sendContainerState(containerMapValue)
  12973. }
  12974. ee.EncodeFloat64(v2)
  12975. }
  12976. }
  12977. if cr != nil {
  12978. cr.sendContainerState(containerMapEnd)
  12979. }
  12980. }
  12981. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  12982. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  12983. }
  12984. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  12985. ee, cr := e.e, e.cr
  12986. ee.EncodeMapStart(len(v))
  12987. if e.h.Canonical {
  12988. v2 := make([]int64, len(v))
  12989. var i int
  12990. for k, _ := range v {
  12991. v2[i] = int64(k)
  12992. i++
  12993. }
  12994. sort.Sort(intSlice(v2))
  12995. for _, k2 := range v2 {
  12996. if cr != nil {
  12997. cr.sendContainerState(containerMapKey)
  12998. }
  12999. ee.EncodeInt(int64(int64(k2)))
  13000. if cr != nil {
  13001. cr.sendContainerState(containerMapValue)
  13002. }
  13003. ee.EncodeBool(v[int64(k2)])
  13004. }
  13005. } else {
  13006. for k2, v2 := range v {
  13007. if cr != nil {
  13008. cr.sendContainerState(containerMapKey)
  13009. }
  13010. ee.EncodeInt(int64(k2))
  13011. if cr != nil {
  13012. cr.sendContainerState(containerMapValue)
  13013. }
  13014. ee.EncodeBool(v2)
  13015. }
  13016. }
  13017. if cr != nil {
  13018. cr.sendContainerState(containerMapEnd)
  13019. }
  13020. }
  13021. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  13022. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  13023. }
  13024. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  13025. ee, cr := e.e, e.cr
  13026. ee.EncodeMapStart(len(v))
  13027. if e.h.Canonical {
  13028. v2 := make([]bool, len(v))
  13029. var i int
  13030. for k, _ := range v {
  13031. v2[i] = bool(k)
  13032. i++
  13033. }
  13034. sort.Sort(boolSlice(v2))
  13035. for _, k2 := range v2 {
  13036. if cr != nil {
  13037. cr.sendContainerState(containerMapKey)
  13038. }
  13039. ee.EncodeBool(bool(k2))
  13040. if cr != nil {
  13041. cr.sendContainerState(containerMapValue)
  13042. }
  13043. e.encode(v[bool(k2)])
  13044. }
  13045. } else {
  13046. for k2, v2 := range v {
  13047. if cr != nil {
  13048. cr.sendContainerState(containerMapKey)
  13049. }
  13050. ee.EncodeBool(k2)
  13051. if cr != nil {
  13052. cr.sendContainerState(containerMapValue)
  13053. }
  13054. e.encode(v2)
  13055. }
  13056. }
  13057. if cr != nil {
  13058. cr.sendContainerState(containerMapEnd)
  13059. }
  13060. }
  13061. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  13062. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  13063. }
  13064. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  13065. ee, cr := e.e, e.cr
  13066. ee.EncodeMapStart(len(v))
  13067. if e.h.Canonical {
  13068. v2 := make([]bool, len(v))
  13069. var i int
  13070. for k, _ := range v {
  13071. v2[i] = bool(k)
  13072. i++
  13073. }
  13074. sort.Sort(boolSlice(v2))
  13075. for _, k2 := range v2 {
  13076. if cr != nil {
  13077. cr.sendContainerState(containerMapKey)
  13078. }
  13079. ee.EncodeBool(bool(k2))
  13080. if cr != nil {
  13081. cr.sendContainerState(containerMapValue)
  13082. }
  13083. ee.EncodeString(c_UTF8, v[bool(k2)])
  13084. }
  13085. } else {
  13086. for k2, v2 := range v {
  13087. if cr != nil {
  13088. cr.sendContainerState(containerMapKey)
  13089. }
  13090. ee.EncodeBool(k2)
  13091. if cr != nil {
  13092. cr.sendContainerState(containerMapValue)
  13093. }
  13094. ee.EncodeString(c_UTF8, v2)
  13095. }
  13096. }
  13097. if cr != nil {
  13098. cr.sendContainerState(containerMapEnd)
  13099. }
  13100. }
  13101. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  13102. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  13103. }
  13104. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  13105. ee, cr := e.e, e.cr
  13106. ee.EncodeMapStart(len(v))
  13107. if e.h.Canonical {
  13108. v2 := make([]bool, len(v))
  13109. var i int
  13110. for k, _ := range v {
  13111. v2[i] = bool(k)
  13112. i++
  13113. }
  13114. sort.Sort(boolSlice(v2))
  13115. for _, k2 := range v2 {
  13116. if cr != nil {
  13117. cr.sendContainerState(containerMapKey)
  13118. }
  13119. ee.EncodeBool(bool(k2))
  13120. if cr != nil {
  13121. cr.sendContainerState(containerMapValue)
  13122. }
  13123. ee.EncodeUint(uint64(v[bool(k2)]))
  13124. }
  13125. } else {
  13126. for k2, v2 := range v {
  13127. if cr != nil {
  13128. cr.sendContainerState(containerMapKey)
  13129. }
  13130. ee.EncodeBool(k2)
  13131. if cr != nil {
  13132. cr.sendContainerState(containerMapValue)
  13133. }
  13134. ee.EncodeUint(uint64(v2))
  13135. }
  13136. }
  13137. if cr != nil {
  13138. cr.sendContainerState(containerMapEnd)
  13139. }
  13140. }
  13141. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  13142. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  13143. }
  13144. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  13145. ee, cr := e.e, e.cr
  13146. ee.EncodeMapStart(len(v))
  13147. if e.h.Canonical {
  13148. v2 := make([]bool, len(v))
  13149. var i int
  13150. for k, _ := range v {
  13151. v2[i] = bool(k)
  13152. i++
  13153. }
  13154. sort.Sort(boolSlice(v2))
  13155. for _, k2 := range v2 {
  13156. if cr != nil {
  13157. cr.sendContainerState(containerMapKey)
  13158. }
  13159. ee.EncodeBool(bool(k2))
  13160. if cr != nil {
  13161. cr.sendContainerState(containerMapValue)
  13162. }
  13163. ee.EncodeUint(uint64(v[bool(k2)]))
  13164. }
  13165. } else {
  13166. for k2, v2 := range v {
  13167. if cr != nil {
  13168. cr.sendContainerState(containerMapKey)
  13169. }
  13170. ee.EncodeBool(k2)
  13171. if cr != nil {
  13172. cr.sendContainerState(containerMapValue)
  13173. }
  13174. ee.EncodeUint(uint64(v2))
  13175. }
  13176. }
  13177. if cr != nil {
  13178. cr.sendContainerState(containerMapEnd)
  13179. }
  13180. }
  13181. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  13182. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  13183. }
  13184. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  13185. ee, cr := e.e, e.cr
  13186. ee.EncodeMapStart(len(v))
  13187. if e.h.Canonical {
  13188. v2 := make([]bool, len(v))
  13189. var i int
  13190. for k, _ := range v {
  13191. v2[i] = bool(k)
  13192. i++
  13193. }
  13194. sort.Sort(boolSlice(v2))
  13195. for _, k2 := range v2 {
  13196. if cr != nil {
  13197. cr.sendContainerState(containerMapKey)
  13198. }
  13199. ee.EncodeBool(bool(k2))
  13200. if cr != nil {
  13201. cr.sendContainerState(containerMapValue)
  13202. }
  13203. ee.EncodeUint(uint64(v[bool(k2)]))
  13204. }
  13205. } else {
  13206. for k2, v2 := range v {
  13207. if cr != nil {
  13208. cr.sendContainerState(containerMapKey)
  13209. }
  13210. ee.EncodeBool(k2)
  13211. if cr != nil {
  13212. cr.sendContainerState(containerMapValue)
  13213. }
  13214. ee.EncodeUint(uint64(v2))
  13215. }
  13216. }
  13217. if cr != nil {
  13218. cr.sendContainerState(containerMapEnd)
  13219. }
  13220. }
  13221. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  13222. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  13223. }
  13224. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  13225. ee, cr := e.e, e.cr
  13226. ee.EncodeMapStart(len(v))
  13227. if e.h.Canonical {
  13228. v2 := make([]bool, len(v))
  13229. var i int
  13230. for k, _ := range v {
  13231. v2[i] = bool(k)
  13232. i++
  13233. }
  13234. sort.Sort(boolSlice(v2))
  13235. for _, k2 := range v2 {
  13236. if cr != nil {
  13237. cr.sendContainerState(containerMapKey)
  13238. }
  13239. ee.EncodeBool(bool(k2))
  13240. if cr != nil {
  13241. cr.sendContainerState(containerMapValue)
  13242. }
  13243. ee.EncodeUint(uint64(v[bool(k2)]))
  13244. }
  13245. } else {
  13246. for k2, v2 := range v {
  13247. if cr != nil {
  13248. cr.sendContainerState(containerMapKey)
  13249. }
  13250. ee.EncodeBool(k2)
  13251. if cr != nil {
  13252. cr.sendContainerState(containerMapValue)
  13253. }
  13254. ee.EncodeUint(uint64(v2))
  13255. }
  13256. }
  13257. if cr != nil {
  13258. cr.sendContainerState(containerMapEnd)
  13259. }
  13260. }
  13261. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  13262. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  13263. }
  13264. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
  13265. ee, cr := e.e, e.cr
  13266. ee.EncodeMapStart(len(v))
  13267. if e.h.Canonical {
  13268. v2 := make([]bool, len(v))
  13269. var i int
  13270. for k, _ := range v {
  13271. v2[i] = bool(k)
  13272. i++
  13273. }
  13274. sort.Sort(boolSlice(v2))
  13275. for _, k2 := range v2 {
  13276. if cr != nil {
  13277. cr.sendContainerState(containerMapKey)
  13278. }
  13279. ee.EncodeBool(bool(k2))
  13280. if cr != nil {
  13281. cr.sendContainerState(containerMapValue)
  13282. }
  13283. ee.EncodeUint(uint64(v[bool(k2)]))
  13284. }
  13285. } else {
  13286. for k2, v2 := range v {
  13287. if cr != nil {
  13288. cr.sendContainerState(containerMapKey)
  13289. }
  13290. ee.EncodeBool(k2)
  13291. if cr != nil {
  13292. cr.sendContainerState(containerMapValue)
  13293. }
  13294. ee.EncodeUint(uint64(v2))
  13295. }
  13296. }
  13297. if cr != nil {
  13298. cr.sendContainerState(containerMapEnd)
  13299. }
  13300. }
  13301. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  13302. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  13303. }
  13304. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  13305. ee, cr := e.e, e.cr
  13306. ee.EncodeMapStart(len(v))
  13307. if e.h.Canonical {
  13308. v2 := make([]bool, len(v))
  13309. var i int
  13310. for k, _ := range v {
  13311. v2[i] = bool(k)
  13312. i++
  13313. }
  13314. sort.Sort(boolSlice(v2))
  13315. for _, k2 := range v2 {
  13316. if cr != nil {
  13317. cr.sendContainerState(containerMapKey)
  13318. }
  13319. ee.EncodeBool(bool(k2))
  13320. if cr != nil {
  13321. cr.sendContainerState(containerMapValue)
  13322. }
  13323. e.encode(v[bool(k2)])
  13324. }
  13325. } else {
  13326. for k2, v2 := range v {
  13327. if cr != nil {
  13328. cr.sendContainerState(containerMapKey)
  13329. }
  13330. ee.EncodeBool(k2)
  13331. if cr != nil {
  13332. cr.sendContainerState(containerMapValue)
  13333. }
  13334. e.encode(v2)
  13335. }
  13336. }
  13337. if cr != nil {
  13338. cr.sendContainerState(containerMapEnd)
  13339. }
  13340. }
  13341. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  13342. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  13343. }
  13344. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  13345. ee, cr := e.e, e.cr
  13346. ee.EncodeMapStart(len(v))
  13347. if e.h.Canonical {
  13348. v2 := make([]bool, len(v))
  13349. var i int
  13350. for k, _ := range v {
  13351. v2[i] = bool(k)
  13352. i++
  13353. }
  13354. sort.Sort(boolSlice(v2))
  13355. for _, k2 := range v2 {
  13356. if cr != nil {
  13357. cr.sendContainerState(containerMapKey)
  13358. }
  13359. ee.EncodeBool(bool(k2))
  13360. if cr != nil {
  13361. cr.sendContainerState(containerMapValue)
  13362. }
  13363. ee.EncodeInt(int64(v[bool(k2)]))
  13364. }
  13365. } else {
  13366. for k2, v2 := range v {
  13367. if cr != nil {
  13368. cr.sendContainerState(containerMapKey)
  13369. }
  13370. ee.EncodeBool(k2)
  13371. if cr != nil {
  13372. cr.sendContainerState(containerMapValue)
  13373. }
  13374. ee.EncodeInt(int64(v2))
  13375. }
  13376. }
  13377. if cr != nil {
  13378. cr.sendContainerState(containerMapEnd)
  13379. }
  13380. }
  13381. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  13382. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  13383. }
  13384. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  13385. ee, cr := e.e, e.cr
  13386. ee.EncodeMapStart(len(v))
  13387. if e.h.Canonical {
  13388. v2 := make([]bool, len(v))
  13389. var i int
  13390. for k, _ := range v {
  13391. v2[i] = bool(k)
  13392. i++
  13393. }
  13394. sort.Sort(boolSlice(v2))
  13395. for _, k2 := range v2 {
  13396. if cr != nil {
  13397. cr.sendContainerState(containerMapKey)
  13398. }
  13399. ee.EncodeBool(bool(k2))
  13400. if cr != nil {
  13401. cr.sendContainerState(containerMapValue)
  13402. }
  13403. ee.EncodeInt(int64(v[bool(k2)]))
  13404. }
  13405. } else {
  13406. for k2, v2 := range v {
  13407. if cr != nil {
  13408. cr.sendContainerState(containerMapKey)
  13409. }
  13410. ee.EncodeBool(k2)
  13411. if cr != nil {
  13412. cr.sendContainerState(containerMapValue)
  13413. }
  13414. ee.EncodeInt(int64(v2))
  13415. }
  13416. }
  13417. if cr != nil {
  13418. cr.sendContainerState(containerMapEnd)
  13419. }
  13420. }
  13421. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  13422. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  13423. }
  13424. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  13425. ee, cr := e.e, e.cr
  13426. ee.EncodeMapStart(len(v))
  13427. if e.h.Canonical {
  13428. v2 := make([]bool, len(v))
  13429. var i int
  13430. for k, _ := range v {
  13431. v2[i] = bool(k)
  13432. i++
  13433. }
  13434. sort.Sort(boolSlice(v2))
  13435. for _, k2 := range v2 {
  13436. if cr != nil {
  13437. cr.sendContainerState(containerMapKey)
  13438. }
  13439. ee.EncodeBool(bool(k2))
  13440. if cr != nil {
  13441. cr.sendContainerState(containerMapValue)
  13442. }
  13443. ee.EncodeInt(int64(v[bool(k2)]))
  13444. }
  13445. } else {
  13446. for k2, v2 := range v {
  13447. if cr != nil {
  13448. cr.sendContainerState(containerMapKey)
  13449. }
  13450. ee.EncodeBool(k2)
  13451. if cr != nil {
  13452. cr.sendContainerState(containerMapValue)
  13453. }
  13454. ee.EncodeInt(int64(v2))
  13455. }
  13456. }
  13457. if cr != nil {
  13458. cr.sendContainerState(containerMapEnd)
  13459. }
  13460. }
  13461. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  13462. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  13463. }
  13464. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  13465. ee, cr := e.e, e.cr
  13466. ee.EncodeMapStart(len(v))
  13467. if e.h.Canonical {
  13468. v2 := make([]bool, len(v))
  13469. var i int
  13470. for k, _ := range v {
  13471. v2[i] = bool(k)
  13472. i++
  13473. }
  13474. sort.Sort(boolSlice(v2))
  13475. for _, k2 := range v2 {
  13476. if cr != nil {
  13477. cr.sendContainerState(containerMapKey)
  13478. }
  13479. ee.EncodeBool(bool(k2))
  13480. if cr != nil {
  13481. cr.sendContainerState(containerMapValue)
  13482. }
  13483. ee.EncodeInt(int64(v[bool(k2)]))
  13484. }
  13485. } else {
  13486. for k2, v2 := range v {
  13487. if cr != nil {
  13488. cr.sendContainerState(containerMapKey)
  13489. }
  13490. ee.EncodeBool(k2)
  13491. if cr != nil {
  13492. cr.sendContainerState(containerMapValue)
  13493. }
  13494. ee.EncodeInt(int64(v2))
  13495. }
  13496. }
  13497. if cr != nil {
  13498. cr.sendContainerState(containerMapEnd)
  13499. }
  13500. }
  13501. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  13502. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  13503. }
  13504. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  13505. ee, cr := e.e, e.cr
  13506. ee.EncodeMapStart(len(v))
  13507. if e.h.Canonical {
  13508. v2 := make([]bool, len(v))
  13509. var i int
  13510. for k, _ := range v {
  13511. v2[i] = bool(k)
  13512. i++
  13513. }
  13514. sort.Sort(boolSlice(v2))
  13515. for _, k2 := range v2 {
  13516. if cr != nil {
  13517. cr.sendContainerState(containerMapKey)
  13518. }
  13519. ee.EncodeBool(bool(k2))
  13520. if cr != nil {
  13521. cr.sendContainerState(containerMapValue)
  13522. }
  13523. ee.EncodeInt(int64(v[bool(k2)]))
  13524. }
  13525. } else {
  13526. for k2, v2 := range v {
  13527. if cr != nil {
  13528. cr.sendContainerState(containerMapKey)
  13529. }
  13530. ee.EncodeBool(k2)
  13531. if cr != nil {
  13532. cr.sendContainerState(containerMapValue)
  13533. }
  13534. ee.EncodeInt(int64(v2))
  13535. }
  13536. }
  13537. if cr != nil {
  13538. cr.sendContainerState(containerMapEnd)
  13539. }
  13540. }
  13541. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  13542. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  13543. }
  13544. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  13545. ee, cr := e.e, e.cr
  13546. ee.EncodeMapStart(len(v))
  13547. if e.h.Canonical {
  13548. v2 := make([]bool, len(v))
  13549. var i int
  13550. for k, _ := range v {
  13551. v2[i] = bool(k)
  13552. i++
  13553. }
  13554. sort.Sort(boolSlice(v2))
  13555. for _, k2 := range v2 {
  13556. if cr != nil {
  13557. cr.sendContainerState(containerMapKey)
  13558. }
  13559. ee.EncodeBool(bool(k2))
  13560. if cr != nil {
  13561. cr.sendContainerState(containerMapValue)
  13562. }
  13563. ee.EncodeFloat32(v[bool(k2)])
  13564. }
  13565. } else {
  13566. for k2, v2 := range v {
  13567. if cr != nil {
  13568. cr.sendContainerState(containerMapKey)
  13569. }
  13570. ee.EncodeBool(k2)
  13571. if cr != nil {
  13572. cr.sendContainerState(containerMapValue)
  13573. }
  13574. ee.EncodeFloat32(v2)
  13575. }
  13576. }
  13577. if cr != nil {
  13578. cr.sendContainerState(containerMapEnd)
  13579. }
  13580. }
  13581. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  13582. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  13583. }
  13584. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
  13585. ee, cr := e.e, e.cr
  13586. ee.EncodeMapStart(len(v))
  13587. if e.h.Canonical {
  13588. v2 := make([]bool, len(v))
  13589. var i int
  13590. for k, _ := range v {
  13591. v2[i] = bool(k)
  13592. i++
  13593. }
  13594. sort.Sort(boolSlice(v2))
  13595. for _, k2 := range v2 {
  13596. if cr != nil {
  13597. cr.sendContainerState(containerMapKey)
  13598. }
  13599. ee.EncodeBool(bool(k2))
  13600. if cr != nil {
  13601. cr.sendContainerState(containerMapValue)
  13602. }
  13603. ee.EncodeFloat64(v[bool(k2)])
  13604. }
  13605. } else {
  13606. for k2, v2 := range v {
  13607. if cr != nil {
  13608. cr.sendContainerState(containerMapKey)
  13609. }
  13610. ee.EncodeBool(k2)
  13611. if cr != nil {
  13612. cr.sendContainerState(containerMapValue)
  13613. }
  13614. ee.EncodeFloat64(v2)
  13615. }
  13616. }
  13617. if cr != nil {
  13618. cr.sendContainerState(containerMapEnd)
  13619. }
  13620. }
  13621. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  13622. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  13623. }
  13624. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  13625. ee, cr := e.e, e.cr
  13626. ee.EncodeMapStart(len(v))
  13627. if e.h.Canonical {
  13628. v2 := make([]bool, len(v))
  13629. var i int
  13630. for k, _ := range v {
  13631. v2[i] = bool(k)
  13632. i++
  13633. }
  13634. sort.Sort(boolSlice(v2))
  13635. for _, k2 := range v2 {
  13636. if cr != nil {
  13637. cr.sendContainerState(containerMapKey)
  13638. }
  13639. ee.EncodeBool(bool(k2))
  13640. if cr != nil {
  13641. cr.sendContainerState(containerMapValue)
  13642. }
  13643. ee.EncodeBool(v[bool(k2)])
  13644. }
  13645. } else {
  13646. for k2, v2 := range v {
  13647. if cr != nil {
  13648. cr.sendContainerState(containerMapKey)
  13649. }
  13650. ee.EncodeBool(k2)
  13651. if cr != nil {
  13652. cr.sendContainerState(containerMapValue)
  13653. }
  13654. ee.EncodeBool(v2)
  13655. }
  13656. }
  13657. if cr != nil {
  13658. cr.sendContainerState(containerMapEnd)
  13659. }
  13660. }
  13661. // -- decode
  13662. // -- -- fast path type switch
  13663. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  13664. switch v := iv.(type) {
  13665. case []interface{}:
  13666. fastpathTV.DecSliceIntfV(v, false, d)
  13667. case *[]interface{}:
  13668. if v2, changed2 := fastpathTV.DecSliceIntfV(*v, true, d); changed2 {
  13669. *v = v2
  13670. }
  13671. case map[interface{}]interface{}:
  13672. fastpathTV.DecMapIntfIntfV(v, false, d)
  13673. case *map[interface{}]interface{}:
  13674. if v2, changed2 := fastpathTV.DecMapIntfIntfV(*v, true, d); changed2 {
  13675. *v = v2
  13676. }
  13677. case map[interface{}]string:
  13678. fastpathTV.DecMapIntfStringV(v, false, d)
  13679. case *map[interface{}]string:
  13680. if v2, changed2 := fastpathTV.DecMapIntfStringV(*v, true, d); changed2 {
  13681. *v = v2
  13682. }
  13683. case map[interface{}]uint:
  13684. fastpathTV.DecMapIntfUintV(v, false, d)
  13685. case *map[interface{}]uint:
  13686. if v2, changed2 := fastpathTV.DecMapIntfUintV(*v, true, d); changed2 {
  13687. *v = v2
  13688. }
  13689. case map[interface{}]uint8:
  13690. fastpathTV.DecMapIntfUint8V(v, false, d)
  13691. case *map[interface{}]uint8:
  13692. if v2, changed2 := fastpathTV.DecMapIntfUint8V(*v, true, d); changed2 {
  13693. *v = v2
  13694. }
  13695. case map[interface{}]uint16:
  13696. fastpathTV.DecMapIntfUint16V(v, false, d)
  13697. case *map[interface{}]uint16:
  13698. if v2, changed2 := fastpathTV.DecMapIntfUint16V(*v, true, d); changed2 {
  13699. *v = v2
  13700. }
  13701. case map[interface{}]uint32:
  13702. fastpathTV.DecMapIntfUint32V(v, false, d)
  13703. case *map[interface{}]uint32:
  13704. if v2, changed2 := fastpathTV.DecMapIntfUint32V(*v, true, d); changed2 {
  13705. *v = v2
  13706. }
  13707. case map[interface{}]uint64:
  13708. fastpathTV.DecMapIntfUint64V(v, false, d)
  13709. case *map[interface{}]uint64:
  13710. if v2, changed2 := fastpathTV.DecMapIntfUint64V(*v, true, d); changed2 {
  13711. *v = v2
  13712. }
  13713. case map[interface{}]uintptr:
  13714. fastpathTV.DecMapIntfUintptrV(v, false, d)
  13715. case *map[interface{}]uintptr:
  13716. if v2, changed2 := fastpathTV.DecMapIntfUintptrV(*v, true, d); changed2 {
  13717. *v = v2
  13718. }
  13719. case map[interface{}]int:
  13720. fastpathTV.DecMapIntfIntV(v, false, d)
  13721. case *map[interface{}]int:
  13722. if v2, changed2 := fastpathTV.DecMapIntfIntV(*v, true, d); changed2 {
  13723. *v = v2
  13724. }
  13725. case map[interface{}]int8:
  13726. fastpathTV.DecMapIntfInt8V(v, false, d)
  13727. case *map[interface{}]int8:
  13728. if v2, changed2 := fastpathTV.DecMapIntfInt8V(*v, true, d); changed2 {
  13729. *v = v2
  13730. }
  13731. case map[interface{}]int16:
  13732. fastpathTV.DecMapIntfInt16V(v, false, d)
  13733. case *map[interface{}]int16:
  13734. if v2, changed2 := fastpathTV.DecMapIntfInt16V(*v, true, d); changed2 {
  13735. *v = v2
  13736. }
  13737. case map[interface{}]int32:
  13738. fastpathTV.DecMapIntfInt32V(v, false, d)
  13739. case *map[interface{}]int32:
  13740. if v2, changed2 := fastpathTV.DecMapIntfInt32V(*v, true, d); changed2 {
  13741. *v = v2
  13742. }
  13743. case map[interface{}]int64:
  13744. fastpathTV.DecMapIntfInt64V(v, false, d)
  13745. case *map[interface{}]int64:
  13746. if v2, changed2 := fastpathTV.DecMapIntfInt64V(*v, true, d); changed2 {
  13747. *v = v2
  13748. }
  13749. case map[interface{}]float32:
  13750. fastpathTV.DecMapIntfFloat32V(v, false, d)
  13751. case *map[interface{}]float32:
  13752. if v2, changed2 := fastpathTV.DecMapIntfFloat32V(*v, true, d); changed2 {
  13753. *v = v2
  13754. }
  13755. case map[interface{}]float64:
  13756. fastpathTV.DecMapIntfFloat64V(v, false, d)
  13757. case *map[interface{}]float64:
  13758. if v2, changed2 := fastpathTV.DecMapIntfFloat64V(*v, true, d); changed2 {
  13759. *v = v2
  13760. }
  13761. case map[interface{}]bool:
  13762. fastpathTV.DecMapIntfBoolV(v, false, d)
  13763. case *map[interface{}]bool:
  13764. if v2, changed2 := fastpathTV.DecMapIntfBoolV(*v, true, d); changed2 {
  13765. *v = v2
  13766. }
  13767. case []string:
  13768. fastpathTV.DecSliceStringV(v, false, d)
  13769. case *[]string:
  13770. if v2, changed2 := fastpathTV.DecSliceStringV(*v, true, d); changed2 {
  13771. *v = v2
  13772. }
  13773. case map[string]interface{}:
  13774. fastpathTV.DecMapStringIntfV(v, false, d)
  13775. case *map[string]interface{}:
  13776. if v2, changed2 := fastpathTV.DecMapStringIntfV(*v, true, d); changed2 {
  13777. *v = v2
  13778. }
  13779. case map[string]string:
  13780. fastpathTV.DecMapStringStringV(v, false, d)
  13781. case *map[string]string:
  13782. if v2, changed2 := fastpathTV.DecMapStringStringV(*v, true, d); changed2 {
  13783. *v = v2
  13784. }
  13785. case map[string]uint:
  13786. fastpathTV.DecMapStringUintV(v, false, d)
  13787. case *map[string]uint:
  13788. if v2, changed2 := fastpathTV.DecMapStringUintV(*v, true, d); changed2 {
  13789. *v = v2
  13790. }
  13791. case map[string]uint8:
  13792. fastpathTV.DecMapStringUint8V(v, false, d)
  13793. case *map[string]uint8:
  13794. if v2, changed2 := fastpathTV.DecMapStringUint8V(*v, true, d); changed2 {
  13795. *v = v2
  13796. }
  13797. case map[string]uint16:
  13798. fastpathTV.DecMapStringUint16V(v, false, d)
  13799. case *map[string]uint16:
  13800. if v2, changed2 := fastpathTV.DecMapStringUint16V(*v, true, d); changed2 {
  13801. *v = v2
  13802. }
  13803. case map[string]uint32:
  13804. fastpathTV.DecMapStringUint32V(v, false, d)
  13805. case *map[string]uint32:
  13806. if v2, changed2 := fastpathTV.DecMapStringUint32V(*v, true, d); changed2 {
  13807. *v = v2
  13808. }
  13809. case map[string]uint64:
  13810. fastpathTV.DecMapStringUint64V(v, false, d)
  13811. case *map[string]uint64:
  13812. if v2, changed2 := fastpathTV.DecMapStringUint64V(*v, true, d); changed2 {
  13813. *v = v2
  13814. }
  13815. case map[string]uintptr:
  13816. fastpathTV.DecMapStringUintptrV(v, false, d)
  13817. case *map[string]uintptr:
  13818. if v2, changed2 := fastpathTV.DecMapStringUintptrV(*v, true, d); changed2 {
  13819. *v = v2
  13820. }
  13821. case map[string]int:
  13822. fastpathTV.DecMapStringIntV(v, false, d)
  13823. case *map[string]int:
  13824. if v2, changed2 := fastpathTV.DecMapStringIntV(*v, true, d); changed2 {
  13825. *v = v2
  13826. }
  13827. case map[string]int8:
  13828. fastpathTV.DecMapStringInt8V(v, false, d)
  13829. case *map[string]int8:
  13830. if v2, changed2 := fastpathTV.DecMapStringInt8V(*v, true, d); changed2 {
  13831. *v = v2
  13832. }
  13833. case map[string]int16:
  13834. fastpathTV.DecMapStringInt16V(v, false, d)
  13835. case *map[string]int16:
  13836. if v2, changed2 := fastpathTV.DecMapStringInt16V(*v, true, d); changed2 {
  13837. *v = v2
  13838. }
  13839. case map[string]int32:
  13840. fastpathTV.DecMapStringInt32V(v, false, d)
  13841. case *map[string]int32:
  13842. if v2, changed2 := fastpathTV.DecMapStringInt32V(*v, true, d); changed2 {
  13843. *v = v2
  13844. }
  13845. case map[string]int64:
  13846. fastpathTV.DecMapStringInt64V(v, false, d)
  13847. case *map[string]int64:
  13848. if v2, changed2 := fastpathTV.DecMapStringInt64V(*v, true, d); changed2 {
  13849. *v = v2
  13850. }
  13851. case map[string]float32:
  13852. fastpathTV.DecMapStringFloat32V(v, false, d)
  13853. case *map[string]float32:
  13854. if v2, changed2 := fastpathTV.DecMapStringFloat32V(*v, true, d); changed2 {
  13855. *v = v2
  13856. }
  13857. case map[string]float64:
  13858. fastpathTV.DecMapStringFloat64V(v, false, d)
  13859. case *map[string]float64:
  13860. if v2, changed2 := fastpathTV.DecMapStringFloat64V(*v, true, d); changed2 {
  13861. *v = v2
  13862. }
  13863. case map[string]bool:
  13864. fastpathTV.DecMapStringBoolV(v, false, d)
  13865. case *map[string]bool:
  13866. if v2, changed2 := fastpathTV.DecMapStringBoolV(*v, true, d); changed2 {
  13867. *v = v2
  13868. }
  13869. case []float32:
  13870. fastpathTV.DecSliceFloat32V(v, false, d)
  13871. case *[]float32:
  13872. if v2, changed2 := fastpathTV.DecSliceFloat32V(*v, true, d); changed2 {
  13873. *v = v2
  13874. }
  13875. case map[float32]interface{}:
  13876. fastpathTV.DecMapFloat32IntfV(v, false, d)
  13877. case *map[float32]interface{}:
  13878. if v2, changed2 := fastpathTV.DecMapFloat32IntfV(*v, true, d); changed2 {
  13879. *v = v2
  13880. }
  13881. case map[float32]string:
  13882. fastpathTV.DecMapFloat32StringV(v, false, d)
  13883. case *map[float32]string:
  13884. if v2, changed2 := fastpathTV.DecMapFloat32StringV(*v, true, d); changed2 {
  13885. *v = v2
  13886. }
  13887. case map[float32]uint:
  13888. fastpathTV.DecMapFloat32UintV(v, false, d)
  13889. case *map[float32]uint:
  13890. if v2, changed2 := fastpathTV.DecMapFloat32UintV(*v, true, d); changed2 {
  13891. *v = v2
  13892. }
  13893. case map[float32]uint8:
  13894. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  13895. case *map[float32]uint8:
  13896. if v2, changed2 := fastpathTV.DecMapFloat32Uint8V(*v, true, d); changed2 {
  13897. *v = v2
  13898. }
  13899. case map[float32]uint16:
  13900. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  13901. case *map[float32]uint16:
  13902. if v2, changed2 := fastpathTV.DecMapFloat32Uint16V(*v, true, d); changed2 {
  13903. *v = v2
  13904. }
  13905. case map[float32]uint32:
  13906. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  13907. case *map[float32]uint32:
  13908. if v2, changed2 := fastpathTV.DecMapFloat32Uint32V(*v, true, d); changed2 {
  13909. *v = v2
  13910. }
  13911. case map[float32]uint64:
  13912. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  13913. case *map[float32]uint64:
  13914. if v2, changed2 := fastpathTV.DecMapFloat32Uint64V(*v, true, d); changed2 {
  13915. *v = v2
  13916. }
  13917. case map[float32]uintptr:
  13918. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  13919. case *map[float32]uintptr:
  13920. if v2, changed2 := fastpathTV.DecMapFloat32UintptrV(*v, true, d); changed2 {
  13921. *v = v2
  13922. }
  13923. case map[float32]int:
  13924. fastpathTV.DecMapFloat32IntV(v, false, d)
  13925. case *map[float32]int:
  13926. if v2, changed2 := fastpathTV.DecMapFloat32IntV(*v, true, d); changed2 {
  13927. *v = v2
  13928. }
  13929. case map[float32]int8:
  13930. fastpathTV.DecMapFloat32Int8V(v, false, d)
  13931. case *map[float32]int8:
  13932. if v2, changed2 := fastpathTV.DecMapFloat32Int8V(*v, true, d); changed2 {
  13933. *v = v2
  13934. }
  13935. case map[float32]int16:
  13936. fastpathTV.DecMapFloat32Int16V(v, false, d)
  13937. case *map[float32]int16:
  13938. if v2, changed2 := fastpathTV.DecMapFloat32Int16V(*v, true, d); changed2 {
  13939. *v = v2
  13940. }
  13941. case map[float32]int32:
  13942. fastpathTV.DecMapFloat32Int32V(v, false, d)
  13943. case *map[float32]int32:
  13944. if v2, changed2 := fastpathTV.DecMapFloat32Int32V(*v, true, d); changed2 {
  13945. *v = v2
  13946. }
  13947. case map[float32]int64:
  13948. fastpathTV.DecMapFloat32Int64V(v, false, d)
  13949. case *map[float32]int64:
  13950. if v2, changed2 := fastpathTV.DecMapFloat32Int64V(*v, true, d); changed2 {
  13951. *v = v2
  13952. }
  13953. case map[float32]float32:
  13954. fastpathTV.DecMapFloat32Float32V(v, false, d)
  13955. case *map[float32]float32:
  13956. if v2, changed2 := fastpathTV.DecMapFloat32Float32V(*v, true, d); changed2 {
  13957. *v = v2
  13958. }
  13959. case map[float32]float64:
  13960. fastpathTV.DecMapFloat32Float64V(v, false, d)
  13961. case *map[float32]float64:
  13962. if v2, changed2 := fastpathTV.DecMapFloat32Float64V(*v, true, d); changed2 {
  13963. *v = v2
  13964. }
  13965. case map[float32]bool:
  13966. fastpathTV.DecMapFloat32BoolV(v, false, d)
  13967. case *map[float32]bool:
  13968. if v2, changed2 := fastpathTV.DecMapFloat32BoolV(*v, true, d); changed2 {
  13969. *v = v2
  13970. }
  13971. case []float64:
  13972. fastpathTV.DecSliceFloat64V(v, false, d)
  13973. case *[]float64:
  13974. if v2, changed2 := fastpathTV.DecSliceFloat64V(*v, true, d); changed2 {
  13975. *v = v2
  13976. }
  13977. case map[float64]interface{}:
  13978. fastpathTV.DecMapFloat64IntfV(v, false, d)
  13979. case *map[float64]interface{}:
  13980. if v2, changed2 := fastpathTV.DecMapFloat64IntfV(*v, true, d); changed2 {
  13981. *v = v2
  13982. }
  13983. case map[float64]string:
  13984. fastpathTV.DecMapFloat64StringV(v, false, d)
  13985. case *map[float64]string:
  13986. if v2, changed2 := fastpathTV.DecMapFloat64StringV(*v, true, d); changed2 {
  13987. *v = v2
  13988. }
  13989. case map[float64]uint:
  13990. fastpathTV.DecMapFloat64UintV(v, false, d)
  13991. case *map[float64]uint:
  13992. if v2, changed2 := fastpathTV.DecMapFloat64UintV(*v, true, d); changed2 {
  13993. *v = v2
  13994. }
  13995. case map[float64]uint8:
  13996. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  13997. case *map[float64]uint8:
  13998. if v2, changed2 := fastpathTV.DecMapFloat64Uint8V(*v, true, d); changed2 {
  13999. *v = v2
  14000. }
  14001. case map[float64]uint16:
  14002. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  14003. case *map[float64]uint16:
  14004. if v2, changed2 := fastpathTV.DecMapFloat64Uint16V(*v, true, d); changed2 {
  14005. *v = v2
  14006. }
  14007. case map[float64]uint32:
  14008. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  14009. case *map[float64]uint32:
  14010. if v2, changed2 := fastpathTV.DecMapFloat64Uint32V(*v, true, d); changed2 {
  14011. *v = v2
  14012. }
  14013. case map[float64]uint64:
  14014. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  14015. case *map[float64]uint64:
  14016. if v2, changed2 := fastpathTV.DecMapFloat64Uint64V(*v, true, d); changed2 {
  14017. *v = v2
  14018. }
  14019. case map[float64]uintptr:
  14020. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  14021. case *map[float64]uintptr:
  14022. if v2, changed2 := fastpathTV.DecMapFloat64UintptrV(*v, true, d); changed2 {
  14023. *v = v2
  14024. }
  14025. case map[float64]int:
  14026. fastpathTV.DecMapFloat64IntV(v, false, d)
  14027. case *map[float64]int:
  14028. if v2, changed2 := fastpathTV.DecMapFloat64IntV(*v, true, d); changed2 {
  14029. *v = v2
  14030. }
  14031. case map[float64]int8:
  14032. fastpathTV.DecMapFloat64Int8V(v, false, d)
  14033. case *map[float64]int8:
  14034. if v2, changed2 := fastpathTV.DecMapFloat64Int8V(*v, true, d); changed2 {
  14035. *v = v2
  14036. }
  14037. case map[float64]int16:
  14038. fastpathTV.DecMapFloat64Int16V(v, false, d)
  14039. case *map[float64]int16:
  14040. if v2, changed2 := fastpathTV.DecMapFloat64Int16V(*v, true, d); changed2 {
  14041. *v = v2
  14042. }
  14043. case map[float64]int32:
  14044. fastpathTV.DecMapFloat64Int32V(v, false, d)
  14045. case *map[float64]int32:
  14046. if v2, changed2 := fastpathTV.DecMapFloat64Int32V(*v, true, d); changed2 {
  14047. *v = v2
  14048. }
  14049. case map[float64]int64:
  14050. fastpathTV.DecMapFloat64Int64V(v, false, d)
  14051. case *map[float64]int64:
  14052. if v2, changed2 := fastpathTV.DecMapFloat64Int64V(*v, true, d); changed2 {
  14053. *v = v2
  14054. }
  14055. case map[float64]float32:
  14056. fastpathTV.DecMapFloat64Float32V(v, false, d)
  14057. case *map[float64]float32:
  14058. if v2, changed2 := fastpathTV.DecMapFloat64Float32V(*v, true, d); changed2 {
  14059. *v = v2
  14060. }
  14061. case map[float64]float64:
  14062. fastpathTV.DecMapFloat64Float64V(v, false, d)
  14063. case *map[float64]float64:
  14064. if v2, changed2 := fastpathTV.DecMapFloat64Float64V(*v, true, d); changed2 {
  14065. *v = v2
  14066. }
  14067. case map[float64]bool:
  14068. fastpathTV.DecMapFloat64BoolV(v, false, d)
  14069. case *map[float64]bool:
  14070. if v2, changed2 := fastpathTV.DecMapFloat64BoolV(*v, true, d); changed2 {
  14071. *v = v2
  14072. }
  14073. case []uint:
  14074. fastpathTV.DecSliceUintV(v, false, d)
  14075. case *[]uint:
  14076. if v2, changed2 := fastpathTV.DecSliceUintV(*v, true, d); changed2 {
  14077. *v = v2
  14078. }
  14079. case map[uint]interface{}:
  14080. fastpathTV.DecMapUintIntfV(v, false, d)
  14081. case *map[uint]interface{}:
  14082. if v2, changed2 := fastpathTV.DecMapUintIntfV(*v, true, d); changed2 {
  14083. *v = v2
  14084. }
  14085. case map[uint]string:
  14086. fastpathTV.DecMapUintStringV(v, false, d)
  14087. case *map[uint]string:
  14088. if v2, changed2 := fastpathTV.DecMapUintStringV(*v, true, d); changed2 {
  14089. *v = v2
  14090. }
  14091. case map[uint]uint:
  14092. fastpathTV.DecMapUintUintV(v, false, d)
  14093. case *map[uint]uint:
  14094. if v2, changed2 := fastpathTV.DecMapUintUintV(*v, true, d); changed2 {
  14095. *v = v2
  14096. }
  14097. case map[uint]uint8:
  14098. fastpathTV.DecMapUintUint8V(v, false, d)
  14099. case *map[uint]uint8:
  14100. if v2, changed2 := fastpathTV.DecMapUintUint8V(*v, true, d); changed2 {
  14101. *v = v2
  14102. }
  14103. case map[uint]uint16:
  14104. fastpathTV.DecMapUintUint16V(v, false, d)
  14105. case *map[uint]uint16:
  14106. if v2, changed2 := fastpathTV.DecMapUintUint16V(*v, true, d); changed2 {
  14107. *v = v2
  14108. }
  14109. case map[uint]uint32:
  14110. fastpathTV.DecMapUintUint32V(v, false, d)
  14111. case *map[uint]uint32:
  14112. if v2, changed2 := fastpathTV.DecMapUintUint32V(*v, true, d); changed2 {
  14113. *v = v2
  14114. }
  14115. case map[uint]uint64:
  14116. fastpathTV.DecMapUintUint64V(v, false, d)
  14117. case *map[uint]uint64:
  14118. if v2, changed2 := fastpathTV.DecMapUintUint64V(*v, true, d); changed2 {
  14119. *v = v2
  14120. }
  14121. case map[uint]uintptr:
  14122. fastpathTV.DecMapUintUintptrV(v, false, d)
  14123. case *map[uint]uintptr:
  14124. if v2, changed2 := fastpathTV.DecMapUintUintptrV(*v, true, d); changed2 {
  14125. *v = v2
  14126. }
  14127. case map[uint]int:
  14128. fastpathTV.DecMapUintIntV(v, false, d)
  14129. case *map[uint]int:
  14130. if v2, changed2 := fastpathTV.DecMapUintIntV(*v, true, d); changed2 {
  14131. *v = v2
  14132. }
  14133. case map[uint]int8:
  14134. fastpathTV.DecMapUintInt8V(v, false, d)
  14135. case *map[uint]int8:
  14136. if v2, changed2 := fastpathTV.DecMapUintInt8V(*v, true, d); changed2 {
  14137. *v = v2
  14138. }
  14139. case map[uint]int16:
  14140. fastpathTV.DecMapUintInt16V(v, false, d)
  14141. case *map[uint]int16:
  14142. if v2, changed2 := fastpathTV.DecMapUintInt16V(*v, true, d); changed2 {
  14143. *v = v2
  14144. }
  14145. case map[uint]int32:
  14146. fastpathTV.DecMapUintInt32V(v, false, d)
  14147. case *map[uint]int32:
  14148. if v2, changed2 := fastpathTV.DecMapUintInt32V(*v, true, d); changed2 {
  14149. *v = v2
  14150. }
  14151. case map[uint]int64:
  14152. fastpathTV.DecMapUintInt64V(v, false, d)
  14153. case *map[uint]int64:
  14154. if v2, changed2 := fastpathTV.DecMapUintInt64V(*v, true, d); changed2 {
  14155. *v = v2
  14156. }
  14157. case map[uint]float32:
  14158. fastpathTV.DecMapUintFloat32V(v, false, d)
  14159. case *map[uint]float32:
  14160. if v2, changed2 := fastpathTV.DecMapUintFloat32V(*v, true, d); changed2 {
  14161. *v = v2
  14162. }
  14163. case map[uint]float64:
  14164. fastpathTV.DecMapUintFloat64V(v, false, d)
  14165. case *map[uint]float64:
  14166. if v2, changed2 := fastpathTV.DecMapUintFloat64V(*v, true, d); changed2 {
  14167. *v = v2
  14168. }
  14169. case map[uint]bool:
  14170. fastpathTV.DecMapUintBoolV(v, false, d)
  14171. case *map[uint]bool:
  14172. if v2, changed2 := fastpathTV.DecMapUintBoolV(*v, true, d); changed2 {
  14173. *v = v2
  14174. }
  14175. case map[uint8]interface{}:
  14176. fastpathTV.DecMapUint8IntfV(v, false, d)
  14177. case *map[uint8]interface{}:
  14178. if v2, changed2 := fastpathTV.DecMapUint8IntfV(*v, true, d); changed2 {
  14179. *v = v2
  14180. }
  14181. case map[uint8]string:
  14182. fastpathTV.DecMapUint8StringV(v, false, d)
  14183. case *map[uint8]string:
  14184. if v2, changed2 := fastpathTV.DecMapUint8StringV(*v, true, d); changed2 {
  14185. *v = v2
  14186. }
  14187. case map[uint8]uint:
  14188. fastpathTV.DecMapUint8UintV(v, false, d)
  14189. case *map[uint8]uint:
  14190. if v2, changed2 := fastpathTV.DecMapUint8UintV(*v, true, d); changed2 {
  14191. *v = v2
  14192. }
  14193. case map[uint8]uint8:
  14194. fastpathTV.DecMapUint8Uint8V(v, false, d)
  14195. case *map[uint8]uint8:
  14196. if v2, changed2 := fastpathTV.DecMapUint8Uint8V(*v, true, d); changed2 {
  14197. *v = v2
  14198. }
  14199. case map[uint8]uint16:
  14200. fastpathTV.DecMapUint8Uint16V(v, false, d)
  14201. case *map[uint8]uint16:
  14202. if v2, changed2 := fastpathTV.DecMapUint8Uint16V(*v, true, d); changed2 {
  14203. *v = v2
  14204. }
  14205. case map[uint8]uint32:
  14206. fastpathTV.DecMapUint8Uint32V(v, false, d)
  14207. case *map[uint8]uint32:
  14208. if v2, changed2 := fastpathTV.DecMapUint8Uint32V(*v, true, d); changed2 {
  14209. *v = v2
  14210. }
  14211. case map[uint8]uint64:
  14212. fastpathTV.DecMapUint8Uint64V(v, false, d)
  14213. case *map[uint8]uint64:
  14214. if v2, changed2 := fastpathTV.DecMapUint8Uint64V(*v, true, d); changed2 {
  14215. *v = v2
  14216. }
  14217. case map[uint8]uintptr:
  14218. fastpathTV.DecMapUint8UintptrV(v, false, d)
  14219. case *map[uint8]uintptr:
  14220. if v2, changed2 := fastpathTV.DecMapUint8UintptrV(*v, true, d); changed2 {
  14221. *v = v2
  14222. }
  14223. case map[uint8]int:
  14224. fastpathTV.DecMapUint8IntV(v, false, d)
  14225. case *map[uint8]int:
  14226. if v2, changed2 := fastpathTV.DecMapUint8IntV(*v, true, d); changed2 {
  14227. *v = v2
  14228. }
  14229. case map[uint8]int8:
  14230. fastpathTV.DecMapUint8Int8V(v, false, d)
  14231. case *map[uint8]int8:
  14232. if v2, changed2 := fastpathTV.DecMapUint8Int8V(*v, true, d); changed2 {
  14233. *v = v2
  14234. }
  14235. case map[uint8]int16:
  14236. fastpathTV.DecMapUint8Int16V(v, false, d)
  14237. case *map[uint8]int16:
  14238. if v2, changed2 := fastpathTV.DecMapUint8Int16V(*v, true, d); changed2 {
  14239. *v = v2
  14240. }
  14241. case map[uint8]int32:
  14242. fastpathTV.DecMapUint8Int32V(v, false, d)
  14243. case *map[uint8]int32:
  14244. if v2, changed2 := fastpathTV.DecMapUint8Int32V(*v, true, d); changed2 {
  14245. *v = v2
  14246. }
  14247. case map[uint8]int64:
  14248. fastpathTV.DecMapUint8Int64V(v, false, d)
  14249. case *map[uint8]int64:
  14250. if v2, changed2 := fastpathTV.DecMapUint8Int64V(*v, true, d); changed2 {
  14251. *v = v2
  14252. }
  14253. case map[uint8]float32:
  14254. fastpathTV.DecMapUint8Float32V(v, false, d)
  14255. case *map[uint8]float32:
  14256. if v2, changed2 := fastpathTV.DecMapUint8Float32V(*v, true, d); changed2 {
  14257. *v = v2
  14258. }
  14259. case map[uint8]float64:
  14260. fastpathTV.DecMapUint8Float64V(v, false, d)
  14261. case *map[uint8]float64:
  14262. if v2, changed2 := fastpathTV.DecMapUint8Float64V(*v, true, d); changed2 {
  14263. *v = v2
  14264. }
  14265. case map[uint8]bool:
  14266. fastpathTV.DecMapUint8BoolV(v, false, d)
  14267. case *map[uint8]bool:
  14268. if v2, changed2 := fastpathTV.DecMapUint8BoolV(*v, true, d); changed2 {
  14269. *v = v2
  14270. }
  14271. case []uint16:
  14272. fastpathTV.DecSliceUint16V(v, false, d)
  14273. case *[]uint16:
  14274. if v2, changed2 := fastpathTV.DecSliceUint16V(*v, true, d); changed2 {
  14275. *v = v2
  14276. }
  14277. case map[uint16]interface{}:
  14278. fastpathTV.DecMapUint16IntfV(v, false, d)
  14279. case *map[uint16]interface{}:
  14280. if v2, changed2 := fastpathTV.DecMapUint16IntfV(*v, true, d); changed2 {
  14281. *v = v2
  14282. }
  14283. case map[uint16]string:
  14284. fastpathTV.DecMapUint16StringV(v, false, d)
  14285. case *map[uint16]string:
  14286. if v2, changed2 := fastpathTV.DecMapUint16StringV(*v, true, d); changed2 {
  14287. *v = v2
  14288. }
  14289. case map[uint16]uint:
  14290. fastpathTV.DecMapUint16UintV(v, false, d)
  14291. case *map[uint16]uint:
  14292. if v2, changed2 := fastpathTV.DecMapUint16UintV(*v, true, d); changed2 {
  14293. *v = v2
  14294. }
  14295. case map[uint16]uint8:
  14296. fastpathTV.DecMapUint16Uint8V(v, false, d)
  14297. case *map[uint16]uint8:
  14298. if v2, changed2 := fastpathTV.DecMapUint16Uint8V(*v, true, d); changed2 {
  14299. *v = v2
  14300. }
  14301. case map[uint16]uint16:
  14302. fastpathTV.DecMapUint16Uint16V(v, false, d)
  14303. case *map[uint16]uint16:
  14304. if v2, changed2 := fastpathTV.DecMapUint16Uint16V(*v, true, d); changed2 {
  14305. *v = v2
  14306. }
  14307. case map[uint16]uint32:
  14308. fastpathTV.DecMapUint16Uint32V(v, false, d)
  14309. case *map[uint16]uint32:
  14310. if v2, changed2 := fastpathTV.DecMapUint16Uint32V(*v, true, d); changed2 {
  14311. *v = v2
  14312. }
  14313. case map[uint16]uint64:
  14314. fastpathTV.DecMapUint16Uint64V(v, false, d)
  14315. case *map[uint16]uint64:
  14316. if v2, changed2 := fastpathTV.DecMapUint16Uint64V(*v, true, d); changed2 {
  14317. *v = v2
  14318. }
  14319. case map[uint16]uintptr:
  14320. fastpathTV.DecMapUint16UintptrV(v, false, d)
  14321. case *map[uint16]uintptr:
  14322. if v2, changed2 := fastpathTV.DecMapUint16UintptrV(*v, true, d); changed2 {
  14323. *v = v2
  14324. }
  14325. case map[uint16]int:
  14326. fastpathTV.DecMapUint16IntV(v, false, d)
  14327. case *map[uint16]int:
  14328. if v2, changed2 := fastpathTV.DecMapUint16IntV(*v, true, d); changed2 {
  14329. *v = v2
  14330. }
  14331. case map[uint16]int8:
  14332. fastpathTV.DecMapUint16Int8V(v, false, d)
  14333. case *map[uint16]int8:
  14334. if v2, changed2 := fastpathTV.DecMapUint16Int8V(*v, true, d); changed2 {
  14335. *v = v2
  14336. }
  14337. case map[uint16]int16:
  14338. fastpathTV.DecMapUint16Int16V(v, false, d)
  14339. case *map[uint16]int16:
  14340. if v2, changed2 := fastpathTV.DecMapUint16Int16V(*v, true, d); changed2 {
  14341. *v = v2
  14342. }
  14343. case map[uint16]int32:
  14344. fastpathTV.DecMapUint16Int32V(v, false, d)
  14345. case *map[uint16]int32:
  14346. if v2, changed2 := fastpathTV.DecMapUint16Int32V(*v, true, d); changed2 {
  14347. *v = v2
  14348. }
  14349. case map[uint16]int64:
  14350. fastpathTV.DecMapUint16Int64V(v, false, d)
  14351. case *map[uint16]int64:
  14352. if v2, changed2 := fastpathTV.DecMapUint16Int64V(*v, true, d); changed2 {
  14353. *v = v2
  14354. }
  14355. case map[uint16]float32:
  14356. fastpathTV.DecMapUint16Float32V(v, false, d)
  14357. case *map[uint16]float32:
  14358. if v2, changed2 := fastpathTV.DecMapUint16Float32V(*v, true, d); changed2 {
  14359. *v = v2
  14360. }
  14361. case map[uint16]float64:
  14362. fastpathTV.DecMapUint16Float64V(v, false, d)
  14363. case *map[uint16]float64:
  14364. if v2, changed2 := fastpathTV.DecMapUint16Float64V(*v, true, d); changed2 {
  14365. *v = v2
  14366. }
  14367. case map[uint16]bool:
  14368. fastpathTV.DecMapUint16BoolV(v, false, d)
  14369. case *map[uint16]bool:
  14370. if v2, changed2 := fastpathTV.DecMapUint16BoolV(*v, true, d); changed2 {
  14371. *v = v2
  14372. }
  14373. case []uint32:
  14374. fastpathTV.DecSliceUint32V(v, false, d)
  14375. case *[]uint32:
  14376. if v2, changed2 := fastpathTV.DecSliceUint32V(*v, true, d); changed2 {
  14377. *v = v2
  14378. }
  14379. case map[uint32]interface{}:
  14380. fastpathTV.DecMapUint32IntfV(v, false, d)
  14381. case *map[uint32]interface{}:
  14382. if v2, changed2 := fastpathTV.DecMapUint32IntfV(*v, true, d); changed2 {
  14383. *v = v2
  14384. }
  14385. case map[uint32]string:
  14386. fastpathTV.DecMapUint32StringV(v, false, d)
  14387. case *map[uint32]string:
  14388. if v2, changed2 := fastpathTV.DecMapUint32StringV(*v, true, d); changed2 {
  14389. *v = v2
  14390. }
  14391. case map[uint32]uint:
  14392. fastpathTV.DecMapUint32UintV(v, false, d)
  14393. case *map[uint32]uint:
  14394. if v2, changed2 := fastpathTV.DecMapUint32UintV(*v, true, d); changed2 {
  14395. *v = v2
  14396. }
  14397. case map[uint32]uint8:
  14398. fastpathTV.DecMapUint32Uint8V(v, false, d)
  14399. case *map[uint32]uint8:
  14400. if v2, changed2 := fastpathTV.DecMapUint32Uint8V(*v, true, d); changed2 {
  14401. *v = v2
  14402. }
  14403. case map[uint32]uint16:
  14404. fastpathTV.DecMapUint32Uint16V(v, false, d)
  14405. case *map[uint32]uint16:
  14406. if v2, changed2 := fastpathTV.DecMapUint32Uint16V(*v, true, d); changed2 {
  14407. *v = v2
  14408. }
  14409. case map[uint32]uint32:
  14410. fastpathTV.DecMapUint32Uint32V(v, false, d)
  14411. case *map[uint32]uint32:
  14412. if v2, changed2 := fastpathTV.DecMapUint32Uint32V(*v, true, d); changed2 {
  14413. *v = v2
  14414. }
  14415. case map[uint32]uint64:
  14416. fastpathTV.DecMapUint32Uint64V(v, false, d)
  14417. case *map[uint32]uint64:
  14418. if v2, changed2 := fastpathTV.DecMapUint32Uint64V(*v, true, d); changed2 {
  14419. *v = v2
  14420. }
  14421. case map[uint32]uintptr:
  14422. fastpathTV.DecMapUint32UintptrV(v, false, d)
  14423. case *map[uint32]uintptr:
  14424. if v2, changed2 := fastpathTV.DecMapUint32UintptrV(*v, true, d); changed2 {
  14425. *v = v2
  14426. }
  14427. case map[uint32]int:
  14428. fastpathTV.DecMapUint32IntV(v, false, d)
  14429. case *map[uint32]int:
  14430. if v2, changed2 := fastpathTV.DecMapUint32IntV(*v, true, d); changed2 {
  14431. *v = v2
  14432. }
  14433. case map[uint32]int8:
  14434. fastpathTV.DecMapUint32Int8V(v, false, d)
  14435. case *map[uint32]int8:
  14436. if v2, changed2 := fastpathTV.DecMapUint32Int8V(*v, true, d); changed2 {
  14437. *v = v2
  14438. }
  14439. case map[uint32]int16:
  14440. fastpathTV.DecMapUint32Int16V(v, false, d)
  14441. case *map[uint32]int16:
  14442. if v2, changed2 := fastpathTV.DecMapUint32Int16V(*v, true, d); changed2 {
  14443. *v = v2
  14444. }
  14445. case map[uint32]int32:
  14446. fastpathTV.DecMapUint32Int32V(v, false, d)
  14447. case *map[uint32]int32:
  14448. if v2, changed2 := fastpathTV.DecMapUint32Int32V(*v, true, d); changed2 {
  14449. *v = v2
  14450. }
  14451. case map[uint32]int64:
  14452. fastpathTV.DecMapUint32Int64V(v, false, d)
  14453. case *map[uint32]int64:
  14454. if v2, changed2 := fastpathTV.DecMapUint32Int64V(*v, true, d); changed2 {
  14455. *v = v2
  14456. }
  14457. case map[uint32]float32:
  14458. fastpathTV.DecMapUint32Float32V(v, false, d)
  14459. case *map[uint32]float32:
  14460. if v2, changed2 := fastpathTV.DecMapUint32Float32V(*v, true, d); changed2 {
  14461. *v = v2
  14462. }
  14463. case map[uint32]float64:
  14464. fastpathTV.DecMapUint32Float64V(v, false, d)
  14465. case *map[uint32]float64:
  14466. if v2, changed2 := fastpathTV.DecMapUint32Float64V(*v, true, d); changed2 {
  14467. *v = v2
  14468. }
  14469. case map[uint32]bool:
  14470. fastpathTV.DecMapUint32BoolV(v, false, d)
  14471. case *map[uint32]bool:
  14472. if v2, changed2 := fastpathTV.DecMapUint32BoolV(*v, true, d); changed2 {
  14473. *v = v2
  14474. }
  14475. case []uint64:
  14476. fastpathTV.DecSliceUint64V(v, false, d)
  14477. case *[]uint64:
  14478. if v2, changed2 := fastpathTV.DecSliceUint64V(*v, true, d); changed2 {
  14479. *v = v2
  14480. }
  14481. case map[uint64]interface{}:
  14482. fastpathTV.DecMapUint64IntfV(v, false, d)
  14483. case *map[uint64]interface{}:
  14484. if v2, changed2 := fastpathTV.DecMapUint64IntfV(*v, true, d); changed2 {
  14485. *v = v2
  14486. }
  14487. case map[uint64]string:
  14488. fastpathTV.DecMapUint64StringV(v, false, d)
  14489. case *map[uint64]string:
  14490. if v2, changed2 := fastpathTV.DecMapUint64StringV(*v, true, d); changed2 {
  14491. *v = v2
  14492. }
  14493. case map[uint64]uint:
  14494. fastpathTV.DecMapUint64UintV(v, false, d)
  14495. case *map[uint64]uint:
  14496. if v2, changed2 := fastpathTV.DecMapUint64UintV(*v, true, d); changed2 {
  14497. *v = v2
  14498. }
  14499. case map[uint64]uint8:
  14500. fastpathTV.DecMapUint64Uint8V(v, false, d)
  14501. case *map[uint64]uint8:
  14502. if v2, changed2 := fastpathTV.DecMapUint64Uint8V(*v, true, d); changed2 {
  14503. *v = v2
  14504. }
  14505. case map[uint64]uint16:
  14506. fastpathTV.DecMapUint64Uint16V(v, false, d)
  14507. case *map[uint64]uint16:
  14508. if v2, changed2 := fastpathTV.DecMapUint64Uint16V(*v, true, d); changed2 {
  14509. *v = v2
  14510. }
  14511. case map[uint64]uint32:
  14512. fastpathTV.DecMapUint64Uint32V(v, false, d)
  14513. case *map[uint64]uint32:
  14514. if v2, changed2 := fastpathTV.DecMapUint64Uint32V(*v, true, d); changed2 {
  14515. *v = v2
  14516. }
  14517. case map[uint64]uint64:
  14518. fastpathTV.DecMapUint64Uint64V(v, false, d)
  14519. case *map[uint64]uint64:
  14520. if v2, changed2 := fastpathTV.DecMapUint64Uint64V(*v, true, d); changed2 {
  14521. *v = v2
  14522. }
  14523. case map[uint64]uintptr:
  14524. fastpathTV.DecMapUint64UintptrV(v, false, d)
  14525. case *map[uint64]uintptr:
  14526. if v2, changed2 := fastpathTV.DecMapUint64UintptrV(*v, true, d); changed2 {
  14527. *v = v2
  14528. }
  14529. case map[uint64]int:
  14530. fastpathTV.DecMapUint64IntV(v, false, d)
  14531. case *map[uint64]int:
  14532. if v2, changed2 := fastpathTV.DecMapUint64IntV(*v, true, d); changed2 {
  14533. *v = v2
  14534. }
  14535. case map[uint64]int8:
  14536. fastpathTV.DecMapUint64Int8V(v, false, d)
  14537. case *map[uint64]int8:
  14538. if v2, changed2 := fastpathTV.DecMapUint64Int8V(*v, true, d); changed2 {
  14539. *v = v2
  14540. }
  14541. case map[uint64]int16:
  14542. fastpathTV.DecMapUint64Int16V(v, false, d)
  14543. case *map[uint64]int16:
  14544. if v2, changed2 := fastpathTV.DecMapUint64Int16V(*v, true, d); changed2 {
  14545. *v = v2
  14546. }
  14547. case map[uint64]int32:
  14548. fastpathTV.DecMapUint64Int32V(v, false, d)
  14549. case *map[uint64]int32:
  14550. if v2, changed2 := fastpathTV.DecMapUint64Int32V(*v, true, d); changed2 {
  14551. *v = v2
  14552. }
  14553. case map[uint64]int64:
  14554. fastpathTV.DecMapUint64Int64V(v, false, d)
  14555. case *map[uint64]int64:
  14556. if v2, changed2 := fastpathTV.DecMapUint64Int64V(*v, true, d); changed2 {
  14557. *v = v2
  14558. }
  14559. case map[uint64]float32:
  14560. fastpathTV.DecMapUint64Float32V(v, false, d)
  14561. case *map[uint64]float32:
  14562. if v2, changed2 := fastpathTV.DecMapUint64Float32V(*v, true, d); changed2 {
  14563. *v = v2
  14564. }
  14565. case map[uint64]float64:
  14566. fastpathTV.DecMapUint64Float64V(v, false, d)
  14567. case *map[uint64]float64:
  14568. if v2, changed2 := fastpathTV.DecMapUint64Float64V(*v, true, d); changed2 {
  14569. *v = v2
  14570. }
  14571. case map[uint64]bool:
  14572. fastpathTV.DecMapUint64BoolV(v, false, d)
  14573. case *map[uint64]bool:
  14574. if v2, changed2 := fastpathTV.DecMapUint64BoolV(*v, true, d); changed2 {
  14575. *v = v2
  14576. }
  14577. case []uintptr:
  14578. fastpathTV.DecSliceUintptrV(v, false, d)
  14579. case *[]uintptr:
  14580. if v2, changed2 := fastpathTV.DecSliceUintptrV(*v, true, d); changed2 {
  14581. *v = v2
  14582. }
  14583. case map[uintptr]interface{}:
  14584. fastpathTV.DecMapUintptrIntfV(v, false, d)
  14585. case *map[uintptr]interface{}:
  14586. if v2, changed2 := fastpathTV.DecMapUintptrIntfV(*v, true, d); changed2 {
  14587. *v = v2
  14588. }
  14589. case map[uintptr]string:
  14590. fastpathTV.DecMapUintptrStringV(v, false, d)
  14591. case *map[uintptr]string:
  14592. if v2, changed2 := fastpathTV.DecMapUintptrStringV(*v, true, d); changed2 {
  14593. *v = v2
  14594. }
  14595. case map[uintptr]uint:
  14596. fastpathTV.DecMapUintptrUintV(v, false, d)
  14597. case *map[uintptr]uint:
  14598. if v2, changed2 := fastpathTV.DecMapUintptrUintV(*v, true, d); changed2 {
  14599. *v = v2
  14600. }
  14601. case map[uintptr]uint8:
  14602. fastpathTV.DecMapUintptrUint8V(v, false, d)
  14603. case *map[uintptr]uint8:
  14604. if v2, changed2 := fastpathTV.DecMapUintptrUint8V(*v, true, d); changed2 {
  14605. *v = v2
  14606. }
  14607. case map[uintptr]uint16:
  14608. fastpathTV.DecMapUintptrUint16V(v, false, d)
  14609. case *map[uintptr]uint16:
  14610. if v2, changed2 := fastpathTV.DecMapUintptrUint16V(*v, true, d); changed2 {
  14611. *v = v2
  14612. }
  14613. case map[uintptr]uint32:
  14614. fastpathTV.DecMapUintptrUint32V(v, false, d)
  14615. case *map[uintptr]uint32:
  14616. if v2, changed2 := fastpathTV.DecMapUintptrUint32V(*v, true, d); changed2 {
  14617. *v = v2
  14618. }
  14619. case map[uintptr]uint64:
  14620. fastpathTV.DecMapUintptrUint64V(v, false, d)
  14621. case *map[uintptr]uint64:
  14622. if v2, changed2 := fastpathTV.DecMapUintptrUint64V(*v, true, d); changed2 {
  14623. *v = v2
  14624. }
  14625. case map[uintptr]uintptr:
  14626. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  14627. case *map[uintptr]uintptr:
  14628. if v2, changed2 := fastpathTV.DecMapUintptrUintptrV(*v, true, d); changed2 {
  14629. *v = v2
  14630. }
  14631. case map[uintptr]int:
  14632. fastpathTV.DecMapUintptrIntV(v, false, d)
  14633. case *map[uintptr]int:
  14634. if v2, changed2 := fastpathTV.DecMapUintptrIntV(*v, true, d); changed2 {
  14635. *v = v2
  14636. }
  14637. case map[uintptr]int8:
  14638. fastpathTV.DecMapUintptrInt8V(v, false, d)
  14639. case *map[uintptr]int8:
  14640. if v2, changed2 := fastpathTV.DecMapUintptrInt8V(*v, true, d); changed2 {
  14641. *v = v2
  14642. }
  14643. case map[uintptr]int16:
  14644. fastpathTV.DecMapUintptrInt16V(v, false, d)
  14645. case *map[uintptr]int16:
  14646. if v2, changed2 := fastpathTV.DecMapUintptrInt16V(*v, true, d); changed2 {
  14647. *v = v2
  14648. }
  14649. case map[uintptr]int32:
  14650. fastpathTV.DecMapUintptrInt32V(v, false, d)
  14651. case *map[uintptr]int32:
  14652. if v2, changed2 := fastpathTV.DecMapUintptrInt32V(*v, true, d); changed2 {
  14653. *v = v2
  14654. }
  14655. case map[uintptr]int64:
  14656. fastpathTV.DecMapUintptrInt64V(v, false, d)
  14657. case *map[uintptr]int64:
  14658. if v2, changed2 := fastpathTV.DecMapUintptrInt64V(*v, true, d); changed2 {
  14659. *v = v2
  14660. }
  14661. case map[uintptr]float32:
  14662. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  14663. case *map[uintptr]float32:
  14664. if v2, changed2 := fastpathTV.DecMapUintptrFloat32V(*v, true, d); changed2 {
  14665. *v = v2
  14666. }
  14667. case map[uintptr]float64:
  14668. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  14669. case *map[uintptr]float64:
  14670. if v2, changed2 := fastpathTV.DecMapUintptrFloat64V(*v, true, d); changed2 {
  14671. *v = v2
  14672. }
  14673. case map[uintptr]bool:
  14674. fastpathTV.DecMapUintptrBoolV(v, false, d)
  14675. case *map[uintptr]bool:
  14676. if v2, changed2 := fastpathTV.DecMapUintptrBoolV(*v, true, d); changed2 {
  14677. *v = v2
  14678. }
  14679. case []int:
  14680. fastpathTV.DecSliceIntV(v, false, d)
  14681. case *[]int:
  14682. if v2, changed2 := fastpathTV.DecSliceIntV(*v, true, d); changed2 {
  14683. *v = v2
  14684. }
  14685. case map[int]interface{}:
  14686. fastpathTV.DecMapIntIntfV(v, false, d)
  14687. case *map[int]interface{}:
  14688. if v2, changed2 := fastpathTV.DecMapIntIntfV(*v, true, d); changed2 {
  14689. *v = v2
  14690. }
  14691. case map[int]string:
  14692. fastpathTV.DecMapIntStringV(v, false, d)
  14693. case *map[int]string:
  14694. if v2, changed2 := fastpathTV.DecMapIntStringV(*v, true, d); changed2 {
  14695. *v = v2
  14696. }
  14697. case map[int]uint:
  14698. fastpathTV.DecMapIntUintV(v, false, d)
  14699. case *map[int]uint:
  14700. if v2, changed2 := fastpathTV.DecMapIntUintV(*v, true, d); changed2 {
  14701. *v = v2
  14702. }
  14703. case map[int]uint8:
  14704. fastpathTV.DecMapIntUint8V(v, false, d)
  14705. case *map[int]uint8:
  14706. if v2, changed2 := fastpathTV.DecMapIntUint8V(*v, true, d); changed2 {
  14707. *v = v2
  14708. }
  14709. case map[int]uint16:
  14710. fastpathTV.DecMapIntUint16V(v, false, d)
  14711. case *map[int]uint16:
  14712. if v2, changed2 := fastpathTV.DecMapIntUint16V(*v, true, d); changed2 {
  14713. *v = v2
  14714. }
  14715. case map[int]uint32:
  14716. fastpathTV.DecMapIntUint32V(v, false, d)
  14717. case *map[int]uint32:
  14718. if v2, changed2 := fastpathTV.DecMapIntUint32V(*v, true, d); changed2 {
  14719. *v = v2
  14720. }
  14721. case map[int]uint64:
  14722. fastpathTV.DecMapIntUint64V(v, false, d)
  14723. case *map[int]uint64:
  14724. if v2, changed2 := fastpathTV.DecMapIntUint64V(*v, true, d); changed2 {
  14725. *v = v2
  14726. }
  14727. case map[int]uintptr:
  14728. fastpathTV.DecMapIntUintptrV(v, false, d)
  14729. case *map[int]uintptr:
  14730. if v2, changed2 := fastpathTV.DecMapIntUintptrV(*v, true, d); changed2 {
  14731. *v = v2
  14732. }
  14733. case map[int]int:
  14734. fastpathTV.DecMapIntIntV(v, false, d)
  14735. case *map[int]int:
  14736. if v2, changed2 := fastpathTV.DecMapIntIntV(*v, true, d); changed2 {
  14737. *v = v2
  14738. }
  14739. case map[int]int8:
  14740. fastpathTV.DecMapIntInt8V(v, false, d)
  14741. case *map[int]int8:
  14742. if v2, changed2 := fastpathTV.DecMapIntInt8V(*v, true, d); changed2 {
  14743. *v = v2
  14744. }
  14745. case map[int]int16:
  14746. fastpathTV.DecMapIntInt16V(v, false, d)
  14747. case *map[int]int16:
  14748. if v2, changed2 := fastpathTV.DecMapIntInt16V(*v, true, d); changed2 {
  14749. *v = v2
  14750. }
  14751. case map[int]int32:
  14752. fastpathTV.DecMapIntInt32V(v, false, d)
  14753. case *map[int]int32:
  14754. if v2, changed2 := fastpathTV.DecMapIntInt32V(*v, true, d); changed2 {
  14755. *v = v2
  14756. }
  14757. case map[int]int64:
  14758. fastpathTV.DecMapIntInt64V(v, false, d)
  14759. case *map[int]int64:
  14760. if v2, changed2 := fastpathTV.DecMapIntInt64V(*v, true, d); changed2 {
  14761. *v = v2
  14762. }
  14763. case map[int]float32:
  14764. fastpathTV.DecMapIntFloat32V(v, false, d)
  14765. case *map[int]float32:
  14766. if v2, changed2 := fastpathTV.DecMapIntFloat32V(*v, true, d); changed2 {
  14767. *v = v2
  14768. }
  14769. case map[int]float64:
  14770. fastpathTV.DecMapIntFloat64V(v, false, d)
  14771. case *map[int]float64:
  14772. if v2, changed2 := fastpathTV.DecMapIntFloat64V(*v, true, d); changed2 {
  14773. *v = v2
  14774. }
  14775. case map[int]bool:
  14776. fastpathTV.DecMapIntBoolV(v, false, d)
  14777. case *map[int]bool:
  14778. if v2, changed2 := fastpathTV.DecMapIntBoolV(*v, true, d); changed2 {
  14779. *v = v2
  14780. }
  14781. case []int8:
  14782. fastpathTV.DecSliceInt8V(v, false, d)
  14783. case *[]int8:
  14784. if v2, changed2 := fastpathTV.DecSliceInt8V(*v, true, d); changed2 {
  14785. *v = v2
  14786. }
  14787. case map[int8]interface{}:
  14788. fastpathTV.DecMapInt8IntfV(v, false, d)
  14789. case *map[int8]interface{}:
  14790. if v2, changed2 := fastpathTV.DecMapInt8IntfV(*v, true, d); changed2 {
  14791. *v = v2
  14792. }
  14793. case map[int8]string:
  14794. fastpathTV.DecMapInt8StringV(v, false, d)
  14795. case *map[int8]string:
  14796. if v2, changed2 := fastpathTV.DecMapInt8StringV(*v, true, d); changed2 {
  14797. *v = v2
  14798. }
  14799. case map[int8]uint:
  14800. fastpathTV.DecMapInt8UintV(v, false, d)
  14801. case *map[int8]uint:
  14802. if v2, changed2 := fastpathTV.DecMapInt8UintV(*v, true, d); changed2 {
  14803. *v = v2
  14804. }
  14805. case map[int8]uint8:
  14806. fastpathTV.DecMapInt8Uint8V(v, false, d)
  14807. case *map[int8]uint8:
  14808. if v2, changed2 := fastpathTV.DecMapInt8Uint8V(*v, true, d); changed2 {
  14809. *v = v2
  14810. }
  14811. case map[int8]uint16:
  14812. fastpathTV.DecMapInt8Uint16V(v, false, d)
  14813. case *map[int8]uint16:
  14814. if v2, changed2 := fastpathTV.DecMapInt8Uint16V(*v, true, d); changed2 {
  14815. *v = v2
  14816. }
  14817. case map[int8]uint32:
  14818. fastpathTV.DecMapInt8Uint32V(v, false, d)
  14819. case *map[int8]uint32:
  14820. if v2, changed2 := fastpathTV.DecMapInt8Uint32V(*v, true, d); changed2 {
  14821. *v = v2
  14822. }
  14823. case map[int8]uint64:
  14824. fastpathTV.DecMapInt8Uint64V(v, false, d)
  14825. case *map[int8]uint64:
  14826. if v2, changed2 := fastpathTV.DecMapInt8Uint64V(*v, true, d); changed2 {
  14827. *v = v2
  14828. }
  14829. case map[int8]uintptr:
  14830. fastpathTV.DecMapInt8UintptrV(v, false, d)
  14831. case *map[int8]uintptr:
  14832. if v2, changed2 := fastpathTV.DecMapInt8UintptrV(*v, true, d); changed2 {
  14833. *v = v2
  14834. }
  14835. case map[int8]int:
  14836. fastpathTV.DecMapInt8IntV(v, false, d)
  14837. case *map[int8]int:
  14838. if v2, changed2 := fastpathTV.DecMapInt8IntV(*v, true, d); changed2 {
  14839. *v = v2
  14840. }
  14841. case map[int8]int8:
  14842. fastpathTV.DecMapInt8Int8V(v, false, d)
  14843. case *map[int8]int8:
  14844. if v2, changed2 := fastpathTV.DecMapInt8Int8V(*v, true, d); changed2 {
  14845. *v = v2
  14846. }
  14847. case map[int8]int16:
  14848. fastpathTV.DecMapInt8Int16V(v, false, d)
  14849. case *map[int8]int16:
  14850. if v2, changed2 := fastpathTV.DecMapInt8Int16V(*v, true, d); changed2 {
  14851. *v = v2
  14852. }
  14853. case map[int8]int32:
  14854. fastpathTV.DecMapInt8Int32V(v, false, d)
  14855. case *map[int8]int32:
  14856. if v2, changed2 := fastpathTV.DecMapInt8Int32V(*v, true, d); changed2 {
  14857. *v = v2
  14858. }
  14859. case map[int8]int64:
  14860. fastpathTV.DecMapInt8Int64V(v, false, d)
  14861. case *map[int8]int64:
  14862. if v2, changed2 := fastpathTV.DecMapInt8Int64V(*v, true, d); changed2 {
  14863. *v = v2
  14864. }
  14865. case map[int8]float32:
  14866. fastpathTV.DecMapInt8Float32V(v, false, d)
  14867. case *map[int8]float32:
  14868. if v2, changed2 := fastpathTV.DecMapInt8Float32V(*v, true, d); changed2 {
  14869. *v = v2
  14870. }
  14871. case map[int8]float64:
  14872. fastpathTV.DecMapInt8Float64V(v, false, d)
  14873. case *map[int8]float64:
  14874. if v2, changed2 := fastpathTV.DecMapInt8Float64V(*v, true, d); changed2 {
  14875. *v = v2
  14876. }
  14877. case map[int8]bool:
  14878. fastpathTV.DecMapInt8BoolV(v, false, d)
  14879. case *map[int8]bool:
  14880. if v2, changed2 := fastpathTV.DecMapInt8BoolV(*v, true, d); changed2 {
  14881. *v = v2
  14882. }
  14883. case []int16:
  14884. fastpathTV.DecSliceInt16V(v, false, d)
  14885. case *[]int16:
  14886. if v2, changed2 := fastpathTV.DecSliceInt16V(*v, true, d); changed2 {
  14887. *v = v2
  14888. }
  14889. case map[int16]interface{}:
  14890. fastpathTV.DecMapInt16IntfV(v, false, d)
  14891. case *map[int16]interface{}:
  14892. if v2, changed2 := fastpathTV.DecMapInt16IntfV(*v, true, d); changed2 {
  14893. *v = v2
  14894. }
  14895. case map[int16]string:
  14896. fastpathTV.DecMapInt16StringV(v, false, d)
  14897. case *map[int16]string:
  14898. if v2, changed2 := fastpathTV.DecMapInt16StringV(*v, true, d); changed2 {
  14899. *v = v2
  14900. }
  14901. case map[int16]uint:
  14902. fastpathTV.DecMapInt16UintV(v, false, d)
  14903. case *map[int16]uint:
  14904. if v2, changed2 := fastpathTV.DecMapInt16UintV(*v, true, d); changed2 {
  14905. *v = v2
  14906. }
  14907. case map[int16]uint8:
  14908. fastpathTV.DecMapInt16Uint8V(v, false, d)
  14909. case *map[int16]uint8:
  14910. if v2, changed2 := fastpathTV.DecMapInt16Uint8V(*v, true, d); changed2 {
  14911. *v = v2
  14912. }
  14913. case map[int16]uint16:
  14914. fastpathTV.DecMapInt16Uint16V(v, false, d)
  14915. case *map[int16]uint16:
  14916. if v2, changed2 := fastpathTV.DecMapInt16Uint16V(*v, true, d); changed2 {
  14917. *v = v2
  14918. }
  14919. case map[int16]uint32:
  14920. fastpathTV.DecMapInt16Uint32V(v, false, d)
  14921. case *map[int16]uint32:
  14922. if v2, changed2 := fastpathTV.DecMapInt16Uint32V(*v, true, d); changed2 {
  14923. *v = v2
  14924. }
  14925. case map[int16]uint64:
  14926. fastpathTV.DecMapInt16Uint64V(v, false, d)
  14927. case *map[int16]uint64:
  14928. if v2, changed2 := fastpathTV.DecMapInt16Uint64V(*v, true, d); changed2 {
  14929. *v = v2
  14930. }
  14931. case map[int16]uintptr:
  14932. fastpathTV.DecMapInt16UintptrV(v, false, d)
  14933. case *map[int16]uintptr:
  14934. if v2, changed2 := fastpathTV.DecMapInt16UintptrV(*v, true, d); changed2 {
  14935. *v = v2
  14936. }
  14937. case map[int16]int:
  14938. fastpathTV.DecMapInt16IntV(v, false, d)
  14939. case *map[int16]int:
  14940. if v2, changed2 := fastpathTV.DecMapInt16IntV(*v, true, d); changed2 {
  14941. *v = v2
  14942. }
  14943. case map[int16]int8:
  14944. fastpathTV.DecMapInt16Int8V(v, false, d)
  14945. case *map[int16]int8:
  14946. if v2, changed2 := fastpathTV.DecMapInt16Int8V(*v, true, d); changed2 {
  14947. *v = v2
  14948. }
  14949. case map[int16]int16:
  14950. fastpathTV.DecMapInt16Int16V(v, false, d)
  14951. case *map[int16]int16:
  14952. if v2, changed2 := fastpathTV.DecMapInt16Int16V(*v, true, d); changed2 {
  14953. *v = v2
  14954. }
  14955. case map[int16]int32:
  14956. fastpathTV.DecMapInt16Int32V(v, false, d)
  14957. case *map[int16]int32:
  14958. if v2, changed2 := fastpathTV.DecMapInt16Int32V(*v, true, d); changed2 {
  14959. *v = v2
  14960. }
  14961. case map[int16]int64:
  14962. fastpathTV.DecMapInt16Int64V(v, false, d)
  14963. case *map[int16]int64:
  14964. if v2, changed2 := fastpathTV.DecMapInt16Int64V(*v, true, d); changed2 {
  14965. *v = v2
  14966. }
  14967. case map[int16]float32:
  14968. fastpathTV.DecMapInt16Float32V(v, false, d)
  14969. case *map[int16]float32:
  14970. if v2, changed2 := fastpathTV.DecMapInt16Float32V(*v, true, d); changed2 {
  14971. *v = v2
  14972. }
  14973. case map[int16]float64:
  14974. fastpathTV.DecMapInt16Float64V(v, false, d)
  14975. case *map[int16]float64:
  14976. if v2, changed2 := fastpathTV.DecMapInt16Float64V(*v, true, d); changed2 {
  14977. *v = v2
  14978. }
  14979. case map[int16]bool:
  14980. fastpathTV.DecMapInt16BoolV(v, false, d)
  14981. case *map[int16]bool:
  14982. if v2, changed2 := fastpathTV.DecMapInt16BoolV(*v, true, d); changed2 {
  14983. *v = v2
  14984. }
  14985. case []int32:
  14986. fastpathTV.DecSliceInt32V(v, false, d)
  14987. case *[]int32:
  14988. if v2, changed2 := fastpathTV.DecSliceInt32V(*v, true, d); changed2 {
  14989. *v = v2
  14990. }
  14991. case map[int32]interface{}:
  14992. fastpathTV.DecMapInt32IntfV(v, false, d)
  14993. case *map[int32]interface{}:
  14994. if v2, changed2 := fastpathTV.DecMapInt32IntfV(*v, true, d); changed2 {
  14995. *v = v2
  14996. }
  14997. case map[int32]string:
  14998. fastpathTV.DecMapInt32StringV(v, false, d)
  14999. case *map[int32]string:
  15000. if v2, changed2 := fastpathTV.DecMapInt32StringV(*v, true, d); changed2 {
  15001. *v = v2
  15002. }
  15003. case map[int32]uint:
  15004. fastpathTV.DecMapInt32UintV(v, false, d)
  15005. case *map[int32]uint:
  15006. if v2, changed2 := fastpathTV.DecMapInt32UintV(*v, true, d); changed2 {
  15007. *v = v2
  15008. }
  15009. case map[int32]uint8:
  15010. fastpathTV.DecMapInt32Uint8V(v, false, d)
  15011. case *map[int32]uint8:
  15012. if v2, changed2 := fastpathTV.DecMapInt32Uint8V(*v, true, d); changed2 {
  15013. *v = v2
  15014. }
  15015. case map[int32]uint16:
  15016. fastpathTV.DecMapInt32Uint16V(v, false, d)
  15017. case *map[int32]uint16:
  15018. if v2, changed2 := fastpathTV.DecMapInt32Uint16V(*v, true, d); changed2 {
  15019. *v = v2
  15020. }
  15021. case map[int32]uint32:
  15022. fastpathTV.DecMapInt32Uint32V(v, false, d)
  15023. case *map[int32]uint32:
  15024. if v2, changed2 := fastpathTV.DecMapInt32Uint32V(*v, true, d); changed2 {
  15025. *v = v2
  15026. }
  15027. case map[int32]uint64:
  15028. fastpathTV.DecMapInt32Uint64V(v, false, d)
  15029. case *map[int32]uint64:
  15030. if v2, changed2 := fastpathTV.DecMapInt32Uint64V(*v, true, d); changed2 {
  15031. *v = v2
  15032. }
  15033. case map[int32]uintptr:
  15034. fastpathTV.DecMapInt32UintptrV(v, false, d)
  15035. case *map[int32]uintptr:
  15036. if v2, changed2 := fastpathTV.DecMapInt32UintptrV(*v, true, d); changed2 {
  15037. *v = v2
  15038. }
  15039. case map[int32]int:
  15040. fastpathTV.DecMapInt32IntV(v, false, d)
  15041. case *map[int32]int:
  15042. if v2, changed2 := fastpathTV.DecMapInt32IntV(*v, true, d); changed2 {
  15043. *v = v2
  15044. }
  15045. case map[int32]int8:
  15046. fastpathTV.DecMapInt32Int8V(v, false, d)
  15047. case *map[int32]int8:
  15048. if v2, changed2 := fastpathTV.DecMapInt32Int8V(*v, true, d); changed2 {
  15049. *v = v2
  15050. }
  15051. case map[int32]int16:
  15052. fastpathTV.DecMapInt32Int16V(v, false, d)
  15053. case *map[int32]int16:
  15054. if v2, changed2 := fastpathTV.DecMapInt32Int16V(*v, true, d); changed2 {
  15055. *v = v2
  15056. }
  15057. case map[int32]int32:
  15058. fastpathTV.DecMapInt32Int32V(v, false, d)
  15059. case *map[int32]int32:
  15060. if v2, changed2 := fastpathTV.DecMapInt32Int32V(*v, true, d); changed2 {
  15061. *v = v2
  15062. }
  15063. case map[int32]int64:
  15064. fastpathTV.DecMapInt32Int64V(v, false, d)
  15065. case *map[int32]int64:
  15066. if v2, changed2 := fastpathTV.DecMapInt32Int64V(*v, true, d); changed2 {
  15067. *v = v2
  15068. }
  15069. case map[int32]float32:
  15070. fastpathTV.DecMapInt32Float32V(v, false, d)
  15071. case *map[int32]float32:
  15072. if v2, changed2 := fastpathTV.DecMapInt32Float32V(*v, true, d); changed2 {
  15073. *v = v2
  15074. }
  15075. case map[int32]float64:
  15076. fastpathTV.DecMapInt32Float64V(v, false, d)
  15077. case *map[int32]float64:
  15078. if v2, changed2 := fastpathTV.DecMapInt32Float64V(*v, true, d); changed2 {
  15079. *v = v2
  15080. }
  15081. case map[int32]bool:
  15082. fastpathTV.DecMapInt32BoolV(v, false, d)
  15083. case *map[int32]bool:
  15084. if v2, changed2 := fastpathTV.DecMapInt32BoolV(*v, true, d); changed2 {
  15085. *v = v2
  15086. }
  15087. case []int64:
  15088. fastpathTV.DecSliceInt64V(v, false, d)
  15089. case *[]int64:
  15090. if v2, changed2 := fastpathTV.DecSliceInt64V(*v, true, d); changed2 {
  15091. *v = v2
  15092. }
  15093. case map[int64]interface{}:
  15094. fastpathTV.DecMapInt64IntfV(v, false, d)
  15095. case *map[int64]interface{}:
  15096. if v2, changed2 := fastpathTV.DecMapInt64IntfV(*v, true, d); changed2 {
  15097. *v = v2
  15098. }
  15099. case map[int64]string:
  15100. fastpathTV.DecMapInt64StringV(v, false, d)
  15101. case *map[int64]string:
  15102. if v2, changed2 := fastpathTV.DecMapInt64StringV(*v, true, d); changed2 {
  15103. *v = v2
  15104. }
  15105. case map[int64]uint:
  15106. fastpathTV.DecMapInt64UintV(v, false, d)
  15107. case *map[int64]uint:
  15108. if v2, changed2 := fastpathTV.DecMapInt64UintV(*v, true, d); changed2 {
  15109. *v = v2
  15110. }
  15111. case map[int64]uint8:
  15112. fastpathTV.DecMapInt64Uint8V(v, false, d)
  15113. case *map[int64]uint8:
  15114. if v2, changed2 := fastpathTV.DecMapInt64Uint8V(*v, true, d); changed2 {
  15115. *v = v2
  15116. }
  15117. case map[int64]uint16:
  15118. fastpathTV.DecMapInt64Uint16V(v, false, d)
  15119. case *map[int64]uint16:
  15120. if v2, changed2 := fastpathTV.DecMapInt64Uint16V(*v, true, d); changed2 {
  15121. *v = v2
  15122. }
  15123. case map[int64]uint32:
  15124. fastpathTV.DecMapInt64Uint32V(v, false, d)
  15125. case *map[int64]uint32:
  15126. if v2, changed2 := fastpathTV.DecMapInt64Uint32V(*v, true, d); changed2 {
  15127. *v = v2
  15128. }
  15129. case map[int64]uint64:
  15130. fastpathTV.DecMapInt64Uint64V(v, false, d)
  15131. case *map[int64]uint64:
  15132. if v2, changed2 := fastpathTV.DecMapInt64Uint64V(*v, true, d); changed2 {
  15133. *v = v2
  15134. }
  15135. case map[int64]uintptr:
  15136. fastpathTV.DecMapInt64UintptrV(v, false, d)
  15137. case *map[int64]uintptr:
  15138. if v2, changed2 := fastpathTV.DecMapInt64UintptrV(*v, true, d); changed2 {
  15139. *v = v2
  15140. }
  15141. case map[int64]int:
  15142. fastpathTV.DecMapInt64IntV(v, false, d)
  15143. case *map[int64]int:
  15144. if v2, changed2 := fastpathTV.DecMapInt64IntV(*v, true, d); changed2 {
  15145. *v = v2
  15146. }
  15147. case map[int64]int8:
  15148. fastpathTV.DecMapInt64Int8V(v, false, d)
  15149. case *map[int64]int8:
  15150. if v2, changed2 := fastpathTV.DecMapInt64Int8V(*v, true, d); changed2 {
  15151. *v = v2
  15152. }
  15153. case map[int64]int16:
  15154. fastpathTV.DecMapInt64Int16V(v, false, d)
  15155. case *map[int64]int16:
  15156. if v2, changed2 := fastpathTV.DecMapInt64Int16V(*v, true, d); changed2 {
  15157. *v = v2
  15158. }
  15159. case map[int64]int32:
  15160. fastpathTV.DecMapInt64Int32V(v, false, d)
  15161. case *map[int64]int32:
  15162. if v2, changed2 := fastpathTV.DecMapInt64Int32V(*v, true, d); changed2 {
  15163. *v = v2
  15164. }
  15165. case map[int64]int64:
  15166. fastpathTV.DecMapInt64Int64V(v, false, d)
  15167. case *map[int64]int64:
  15168. if v2, changed2 := fastpathTV.DecMapInt64Int64V(*v, true, d); changed2 {
  15169. *v = v2
  15170. }
  15171. case map[int64]float32:
  15172. fastpathTV.DecMapInt64Float32V(v, false, d)
  15173. case *map[int64]float32:
  15174. if v2, changed2 := fastpathTV.DecMapInt64Float32V(*v, true, d); changed2 {
  15175. *v = v2
  15176. }
  15177. case map[int64]float64:
  15178. fastpathTV.DecMapInt64Float64V(v, false, d)
  15179. case *map[int64]float64:
  15180. if v2, changed2 := fastpathTV.DecMapInt64Float64V(*v, true, d); changed2 {
  15181. *v = v2
  15182. }
  15183. case map[int64]bool:
  15184. fastpathTV.DecMapInt64BoolV(v, false, d)
  15185. case *map[int64]bool:
  15186. if v2, changed2 := fastpathTV.DecMapInt64BoolV(*v, true, d); changed2 {
  15187. *v = v2
  15188. }
  15189. case []bool:
  15190. fastpathTV.DecSliceBoolV(v, false, d)
  15191. case *[]bool:
  15192. if v2, changed2 := fastpathTV.DecSliceBoolV(*v, true, d); changed2 {
  15193. *v = v2
  15194. }
  15195. case map[bool]interface{}:
  15196. fastpathTV.DecMapBoolIntfV(v, false, d)
  15197. case *map[bool]interface{}:
  15198. if v2, changed2 := fastpathTV.DecMapBoolIntfV(*v, true, d); changed2 {
  15199. *v = v2
  15200. }
  15201. case map[bool]string:
  15202. fastpathTV.DecMapBoolStringV(v, false, d)
  15203. case *map[bool]string:
  15204. if v2, changed2 := fastpathTV.DecMapBoolStringV(*v, true, d); changed2 {
  15205. *v = v2
  15206. }
  15207. case map[bool]uint:
  15208. fastpathTV.DecMapBoolUintV(v, false, d)
  15209. case *map[bool]uint:
  15210. if v2, changed2 := fastpathTV.DecMapBoolUintV(*v, true, d); changed2 {
  15211. *v = v2
  15212. }
  15213. case map[bool]uint8:
  15214. fastpathTV.DecMapBoolUint8V(v, false, d)
  15215. case *map[bool]uint8:
  15216. if v2, changed2 := fastpathTV.DecMapBoolUint8V(*v, true, d); changed2 {
  15217. *v = v2
  15218. }
  15219. case map[bool]uint16:
  15220. fastpathTV.DecMapBoolUint16V(v, false, d)
  15221. case *map[bool]uint16:
  15222. if v2, changed2 := fastpathTV.DecMapBoolUint16V(*v, true, d); changed2 {
  15223. *v = v2
  15224. }
  15225. case map[bool]uint32:
  15226. fastpathTV.DecMapBoolUint32V(v, false, d)
  15227. case *map[bool]uint32:
  15228. if v2, changed2 := fastpathTV.DecMapBoolUint32V(*v, true, d); changed2 {
  15229. *v = v2
  15230. }
  15231. case map[bool]uint64:
  15232. fastpathTV.DecMapBoolUint64V(v, false, d)
  15233. case *map[bool]uint64:
  15234. if v2, changed2 := fastpathTV.DecMapBoolUint64V(*v, true, d); changed2 {
  15235. *v = v2
  15236. }
  15237. case map[bool]uintptr:
  15238. fastpathTV.DecMapBoolUintptrV(v, false, d)
  15239. case *map[bool]uintptr:
  15240. if v2, changed2 := fastpathTV.DecMapBoolUintptrV(*v, true, d); changed2 {
  15241. *v = v2
  15242. }
  15243. case map[bool]int:
  15244. fastpathTV.DecMapBoolIntV(v, false, d)
  15245. case *map[bool]int:
  15246. if v2, changed2 := fastpathTV.DecMapBoolIntV(*v, true, d); changed2 {
  15247. *v = v2
  15248. }
  15249. case map[bool]int8:
  15250. fastpathTV.DecMapBoolInt8V(v, false, d)
  15251. case *map[bool]int8:
  15252. if v2, changed2 := fastpathTV.DecMapBoolInt8V(*v, true, d); changed2 {
  15253. *v = v2
  15254. }
  15255. case map[bool]int16:
  15256. fastpathTV.DecMapBoolInt16V(v, false, d)
  15257. case *map[bool]int16:
  15258. if v2, changed2 := fastpathTV.DecMapBoolInt16V(*v, true, d); changed2 {
  15259. *v = v2
  15260. }
  15261. case map[bool]int32:
  15262. fastpathTV.DecMapBoolInt32V(v, false, d)
  15263. case *map[bool]int32:
  15264. if v2, changed2 := fastpathTV.DecMapBoolInt32V(*v, true, d); changed2 {
  15265. *v = v2
  15266. }
  15267. case map[bool]int64:
  15268. fastpathTV.DecMapBoolInt64V(v, false, d)
  15269. case *map[bool]int64:
  15270. if v2, changed2 := fastpathTV.DecMapBoolInt64V(*v, true, d); changed2 {
  15271. *v = v2
  15272. }
  15273. case map[bool]float32:
  15274. fastpathTV.DecMapBoolFloat32V(v, false, d)
  15275. case *map[bool]float32:
  15276. if v2, changed2 := fastpathTV.DecMapBoolFloat32V(*v, true, d); changed2 {
  15277. *v = v2
  15278. }
  15279. case map[bool]float64:
  15280. fastpathTV.DecMapBoolFloat64V(v, false, d)
  15281. case *map[bool]float64:
  15282. if v2, changed2 := fastpathTV.DecMapBoolFloat64V(*v, true, d); changed2 {
  15283. *v = v2
  15284. }
  15285. case map[bool]bool:
  15286. fastpathTV.DecMapBoolBoolV(v, false, d)
  15287. case *map[bool]bool:
  15288. if v2, changed2 := fastpathTV.DecMapBoolBoolV(*v, true, d); changed2 {
  15289. *v = v2
  15290. }
  15291. default:
  15292. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  15293. return false
  15294. }
  15295. return true
  15296. }
  15297. func fastpathDecodeSetZeroTypeSwitch(iv interface{}, d *Decoder) bool {
  15298. switch v := iv.(type) {
  15299. case *[]interface{}:
  15300. *v = nil
  15301. case *map[interface{}]interface{}:
  15302. *v = nil
  15303. case *map[interface{}]string:
  15304. *v = nil
  15305. case *map[interface{}]uint:
  15306. *v = nil
  15307. case *map[interface{}]uint8:
  15308. *v = nil
  15309. case *map[interface{}]uint16:
  15310. *v = nil
  15311. case *map[interface{}]uint32:
  15312. *v = nil
  15313. case *map[interface{}]uint64:
  15314. *v = nil
  15315. case *map[interface{}]uintptr:
  15316. *v = nil
  15317. case *map[interface{}]int:
  15318. *v = nil
  15319. case *map[interface{}]int8:
  15320. *v = nil
  15321. case *map[interface{}]int16:
  15322. *v = nil
  15323. case *map[interface{}]int32:
  15324. *v = nil
  15325. case *map[interface{}]int64:
  15326. *v = nil
  15327. case *map[interface{}]float32:
  15328. *v = nil
  15329. case *map[interface{}]float64:
  15330. *v = nil
  15331. case *map[interface{}]bool:
  15332. *v = nil
  15333. case *[]string:
  15334. *v = nil
  15335. case *map[string]interface{}:
  15336. *v = nil
  15337. case *map[string]string:
  15338. *v = nil
  15339. case *map[string]uint:
  15340. *v = nil
  15341. case *map[string]uint8:
  15342. *v = nil
  15343. case *map[string]uint16:
  15344. *v = nil
  15345. case *map[string]uint32:
  15346. *v = nil
  15347. case *map[string]uint64:
  15348. *v = nil
  15349. case *map[string]uintptr:
  15350. *v = nil
  15351. case *map[string]int:
  15352. *v = nil
  15353. case *map[string]int8:
  15354. *v = nil
  15355. case *map[string]int16:
  15356. *v = nil
  15357. case *map[string]int32:
  15358. *v = nil
  15359. case *map[string]int64:
  15360. *v = nil
  15361. case *map[string]float32:
  15362. *v = nil
  15363. case *map[string]float64:
  15364. *v = nil
  15365. case *map[string]bool:
  15366. *v = nil
  15367. case *[]float32:
  15368. *v = nil
  15369. case *map[float32]interface{}:
  15370. *v = nil
  15371. case *map[float32]string:
  15372. *v = nil
  15373. case *map[float32]uint:
  15374. *v = nil
  15375. case *map[float32]uint8:
  15376. *v = nil
  15377. case *map[float32]uint16:
  15378. *v = nil
  15379. case *map[float32]uint32:
  15380. *v = nil
  15381. case *map[float32]uint64:
  15382. *v = nil
  15383. case *map[float32]uintptr:
  15384. *v = nil
  15385. case *map[float32]int:
  15386. *v = nil
  15387. case *map[float32]int8:
  15388. *v = nil
  15389. case *map[float32]int16:
  15390. *v = nil
  15391. case *map[float32]int32:
  15392. *v = nil
  15393. case *map[float32]int64:
  15394. *v = nil
  15395. case *map[float32]float32:
  15396. *v = nil
  15397. case *map[float32]float64:
  15398. *v = nil
  15399. case *map[float32]bool:
  15400. *v = nil
  15401. case *[]float64:
  15402. *v = nil
  15403. case *map[float64]interface{}:
  15404. *v = nil
  15405. case *map[float64]string:
  15406. *v = nil
  15407. case *map[float64]uint:
  15408. *v = nil
  15409. case *map[float64]uint8:
  15410. *v = nil
  15411. case *map[float64]uint16:
  15412. *v = nil
  15413. case *map[float64]uint32:
  15414. *v = nil
  15415. case *map[float64]uint64:
  15416. *v = nil
  15417. case *map[float64]uintptr:
  15418. *v = nil
  15419. case *map[float64]int:
  15420. *v = nil
  15421. case *map[float64]int8:
  15422. *v = nil
  15423. case *map[float64]int16:
  15424. *v = nil
  15425. case *map[float64]int32:
  15426. *v = nil
  15427. case *map[float64]int64:
  15428. *v = nil
  15429. case *map[float64]float32:
  15430. *v = nil
  15431. case *map[float64]float64:
  15432. *v = nil
  15433. case *map[float64]bool:
  15434. *v = nil
  15435. case *[]uint:
  15436. *v = nil
  15437. case *map[uint]interface{}:
  15438. *v = nil
  15439. case *map[uint]string:
  15440. *v = nil
  15441. case *map[uint]uint:
  15442. *v = nil
  15443. case *map[uint]uint8:
  15444. *v = nil
  15445. case *map[uint]uint16:
  15446. *v = nil
  15447. case *map[uint]uint32:
  15448. *v = nil
  15449. case *map[uint]uint64:
  15450. *v = nil
  15451. case *map[uint]uintptr:
  15452. *v = nil
  15453. case *map[uint]int:
  15454. *v = nil
  15455. case *map[uint]int8:
  15456. *v = nil
  15457. case *map[uint]int16:
  15458. *v = nil
  15459. case *map[uint]int32:
  15460. *v = nil
  15461. case *map[uint]int64:
  15462. *v = nil
  15463. case *map[uint]float32:
  15464. *v = nil
  15465. case *map[uint]float64:
  15466. *v = nil
  15467. case *map[uint]bool:
  15468. *v = nil
  15469. case *map[uint8]interface{}:
  15470. *v = nil
  15471. case *map[uint8]string:
  15472. *v = nil
  15473. case *map[uint8]uint:
  15474. *v = nil
  15475. case *map[uint8]uint8:
  15476. *v = nil
  15477. case *map[uint8]uint16:
  15478. *v = nil
  15479. case *map[uint8]uint32:
  15480. *v = nil
  15481. case *map[uint8]uint64:
  15482. *v = nil
  15483. case *map[uint8]uintptr:
  15484. *v = nil
  15485. case *map[uint8]int:
  15486. *v = nil
  15487. case *map[uint8]int8:
  15488. *v = nil
  15489. case *map[uint8]int16:
  15490. *v = nil
  15491. case *map[uint8]int32:
  15492. *v = nil
  15493. case *map[uint8]int64:
  15494. *v = nil
  15495. case *map[uint8]float32:
  15496. *v = nil
  15497. case *map[uint8]float64:
  15498. *v = nil
  15499. case *map[uint8]bool:
  15500. *v = nil
  15501. case *[]uint16:
  15502. *v = nil
  15503. case *map[uint16]interface{}:
  15504. *v = nil
  15505. case *map[uint16]string:
  15506. *v = nil
  15507. case *map[uint16]uint:
  15508. *v = nil
  15509. case *map[uint16]uint8:
  15510. *v = nil
  15511. case *map[uint16]uint16:
  15512. *v = nil
  15513. case *map[uint16]uint32:
  15514. *v = nil
  15515. case *map[uint16]uint64:
  15516. *v = nil
  15517. case *map[uint16]uintptr:
  15518. *v = nil
  15519. case *map[uint16]int:
  15520. *v = nil
  15521. case *map[uint16]int8:
  15522. *v = nil
  15523. case *map[uint16]int16:
  15524. *v = nil
  15525. case *map[uint16]int32:
  15526. *v = nil
  15527. case *map[uint16]int64:
  15528. *v = nil
  15529. case *map[uint16]float32:
  15530. *v = nil
  15531. case *map[uint16]float64:
  15532. *v = nil
  15533. case *map[uint16]bool:
  15534. *v = nil
  15535. case *[]uint32:
  15536. *v = nil
  15537. case *map[uint32]interface{}:
  15538. *v = nil
  15539. case *map[uint32]string:
  15540. *v = nil
  15541. case *map[uint32]uint:
  15542. *v = nil
  15543. case *map[uint32]uint8:
  15544. *v = nil
  15545. case *map[uint32]uint16:
  15546. *v = nil
  15547. case *map[uint32]uint32:
  15548. *v = nil
  15549. case *map[uint32]uint64:
  15550. *v = nil
  15551. case *map[uint32]uintptr:
  15552. *v = nil
  15553. case *map[uint32]int:
  15554. *v = nil
  15555. case *map[uint32]int8:
  15556. *v = nil
  15557. case *map[uint32]int16:
  15558. *v = nil
  15559. case *map[uint32]int32:
  15560. *v = nil
  15561. case *map[uint32]int64:
  15562. *v = nil
  15563. case *map[uint32]float32:
  15564. *v = nil
  15565. case *map[uint32]float64:
  15566. *v = nil
  15567. case *map[uint32]bool:
  15568. *v = nil
  15569. case *[]uint64:
  15570. *v = nil
  15571. case *map[uint64]interface{}:
  15572. *v = nil
  15573. case *map[uint64]string:
  15574. *v = nil
  15575. case *map[uint64]uint:
  15576. *v = nil
  15577. case *map[uint64]uint8:
  15578. *v = nil
  15579. case *map[uint64]uint16:
  15580. *v = nil
  15581. case *map[uint64]uint32:
  15582. *v = nil
  15583. case *map[uint64]uint64:
  15584. *v = nil
  15585. case *map[uint64]uintptr:
  15586. *v = nil
  15587. case *map[uint64]int:
  15588. *v = nil
  15589. case *map[uint64]int8:
  15590. *v = nil
  15591. case *map[uint64]int16:
  15592. *v = nil
  15593. case *map[uint64]int32:
  15594. *v = nil
  15595. case *map[uint64]int64:
  15596. *v = nil
  15597. case *map[uint64]float32:
  15598. *v = nil
  15599. case *map[uint64]float64:
  15600. *v = nil
  15601. case *map[uint64]bool:
  15602. *v = nil
  15603. case *[]uintptr:
  15604. *v = nil
  15605. case *map[uintptr]interface{}:
  15606. *v = nil
  15607. case *map[uintptr]string:
  15608. *v = nil
  15609. case *map[uintptr]uint:
  15610. *v = nil
  15611. case *map[uintptr]uint8:
  15612. *v = nil
  15613. case *map[uintptr]uint16:
  15614. *v = nil
  15615. case *map[uintptr]uint32:
  15616. *v = nil
  15617. case *map[uintptr]uint64:
  15618. *v = nil
  15619. case *map[uintptr]uintptr:
  15620. *v = nil
  15621. case *map[uintptr]int:
  15622. *v = nil
  15623. case *map[uintptr]int8:
  15624. *v = nil
  15625. case *map[uintptr]int16:
  15626. *v = nil
  15627. case *map[uintptr]int32:
  15628. *v = nil
  15629. case *map[uintptr]int64:
  15630. *v = nil
  15631. case *map[uintptr]float32:
  15632. *v = nil
  15633. case *map[uintptr]float64:
  15634. *v = nil
  15635. case *map[uintptr]bool:
  15636. *v = nil
  15637. case *[]int:
  15638. *v = nil
  15639. case *map[int]interface{}:
  15640. *v = nil
  15641. case *map[int]string:
  15642. *v = nil
  15643. case *map[int]uint:
  15644. *v = nil
  15645. case *map[int]uint8:
  15646. *v = nil
  15647. case *map[int]uint16:
  15648. *v = nil
  15649. case *map[int]uint32:
  15650. *v = nil
  15651. case *map[int]uint64:
  15652. *v = nil
  15653. case *map[int]uintptr:
  15654. *v = nil
  15655. case *map[int]int:
  15656. *v = nil
  15657. case *map[int]int8:
  15658. *v = nil
  15659. case *map[int]int16:
  15660. *v = nil
  15661. case *map[int]int32:
  15662. *v = nil
  15663. case *map[int]int64:
  15664. *v = nil
  15665. case *map[int]float32:
  15666. *v = nil
  15667. case *map[int]float64:
  15668. *v = nil
  15669. case *map[int]bool:
  15670. *v = nil
  15671. case *[]int8:
  15672. *v = nil
  15673. case *map[int8]interface{}:
  15674. *v = nil
  15675. case *map[int8]string:
  15676. *v = nil
  15677. case *map[int8]uint:
  15678. *v = nil
  15679. case *map[int8]uint8:
  15680. *v = nil
  15681. case *map[int8]uint16:
  15682. *v = nil
  15683. case *map[int8]uint32:
  15684. *v = nil
  15685. case *map[int8]uint64:
  15686. *v = nil
  15687. case *map[int8]uintptr:
  15688. *v = nil
  15689. case *map[int8]int:
  15690. *v = nil
  15691. case *map[int8]int8:
  15692. *v = nil
  15693. case *map[int8]int16:
  15694. *v = nil
  15695. case *map[int8]int32:
  15696. *v = nil
  15697. case *map[int8]int64:
  15698. *v = nil
  15699. case *map[int8]float32:
  15700. *v = nil
  15701. case *map[int8]float64:
  15702. *v = nil
  15703. case *map[int8]bool:
  15704. *v = nil
  15705. case *[]int16:
  15706. *v = nil
  15707. case *map[int16]interface{}:
  15708. *v = nil
  15709. case *map[int16]string:
  15710. *v = nil
  15711. case *map[int16]uint:
  15712. *v = nil
  15713. case *map[int16]uint8:
  15714. *v = nil
  15715. case *map[int16]uint16:
  15716. *v = nil
  15717. case *map[int16]uint32:
  15718. *v = nil
  15719. case *map[int16]uint64:
  15720. *v = nil
  15721. case *map[int16]uintptr:
  15722. *v = nil
  15723. case *map[int16]int:
  15724. *v = nil
  15725. case *map[int16]int8:
  15726. *v = nil
  15727. case *map[int16]int16:
  15728. *v = nil
  15729. case *map[int16]int32:
  15730. *v = nil
  15731. case *map[int16]int64:
  15732. *v = nil
  15733. case *map[int16]float32:
  15734. *v = nil
  15735. case *map[int16]float64:
  15736. *v = nil
  15737. case *map[int16]bool:
  15738. *v = nil
  15739. case *[]int32:
  15740. *v = nil
  15741. case *map[int32]interface{}:
  15742. *v = nil
  15743. case *map[int32]string:
  15744. *v = nil
  15745. case *map[int32]uint:
  15746. *v = nil
  15747. case *map[int32]uint8:
  15748. *v = nil
  15749. case *map[int32]uint16:
  15750. *v = nil
  15751. case *map[int32]uint32:
  15752. *v = nil
  15753. case *map[int32]uint64:
  15754. *v = nil
  15755. case *map[int32]uintptr:
  15756. *v = nil
  15757. case *map[int32]int:
  15758. *v = nil
  15759. case *map[int32]int8:
  15760. *v = nil
  15761. case *map[int32]int16:
  15762. *v = nil
  15763. case *map[int32]int32:
  15764. *v = nil
  15765. case *map[int32]int64:
  15766. *v = nil
  15767. case *map[int32]float32:
  15768. *v = nil
  15769. case *map[int32]float64:
  15770. *v = nil
  15771. case *map[int32]bool:
  15772. *v = nil
  15773. case *[]int64:
  15774. *v = nil
  15775. case *map[int64]interface{}:
  15776. *v = nil
  15777. case *map[int64]string:
  15778. *v = nil
  15779. case *map[int64]uint:
  15780. *v = nil
  15781. case *map[int64]uint8:
  15782. *v = nil
  15783. case *map[int64]uint16:
  15784. *v = nil
  15785. case *map[int64]uint32:
  15786. *v = nil
  15787. case *map[int64]uint64:
  15788. *v = nil
  15789. case *map[int64]uintptr:
  15790. *v = nil
  15791. case *map[int64]int:
  15792. *v = nil
  15793. case *map[int64]int8:
  15794. *v = nil
  15795. case *map[int64]int16:
  15796. *v = nil
  15797. case *map[int64]int32:
  15798. *v = nil
  15799. case *map[int64]int64:
  15800. *v = nil
  15801. case *map[int64]float32:
  15802. *v = nil
  15803. case *map[int64]float64:
  15804. *v = nil
  15805. case *map[int64]bool:
  15806. *v = nil
  15807. case *[]bool:
  15808. *v = nil
  15809. case *map[bool]interface{}:
  15810. *v = nil
  15811. case *map[bool]string:
  15812. *v = nil
  15813. case *map[bool]uint:
  15814. *v = nil
  15815. case *map[bool]uint8:
  15816. *v = nil
  15817. case *map[bool]uint16:
  15818. *v = nil
  15819. case *map[bool]uint32:
  15820. *v = nil
  15821. case *map[bool]uint64:
  15822. *v = nil
  15823. case *map[bool]uintptr:
  15824. *v = nil
  15825. case *map[bool]int:
  15826. *v = nil
  15827. case *map[bool]int8:
  15828. *v = nil
  15829. case *map[bool]int16:
  15830. *v = nil
  15831. case *map[bool]int32:
  15832. *v = nil
  15833. case *map[bool]int64:
  15834. *v = nil
  15835. case *map[bool]float32:
  15836. *v = nil
  15837. case *map[bool]float64:
  15838. *v = nil
  15839. case *map[bool]bool:
  15840. *v = nil
  15841. default:
  15842. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  15843. return false
  15844. }
  15845. return true
  15846. }
  15847. // -- -- fast path functions
  15848. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  15849. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15850. var vp = rv2i(rv).(*[]interface{})
  15851. if v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d); changed {
  15852. *vp = v
  15853. }
  15854. } else {
  15855. fastpathTV.DecSliceIntfV(rv2i(rv).([]interface{}), !array, d)
  15856. }
  15857. }
  15858. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  15859. if v, changed := f.DecSliceIntfV(*vp, true, d); changed {
  15860. *vp = v
  15861. }
  15862. }
  15863. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  15864. dd := d.d
  15865. slh, containerLenS := d.decSliceHelperStart()
  15866. if containerLenS == 0 {
  15867. if canChange {
  15868. if v == nil {
  15869. v = []interface{}{}
  15870. } else if len(v) != 0 {
  15871. v = v[:0]
  15872. }
  15873. changed = true
  15874. }
  15875. slh.End()
  15876. return v, changed
  15877. }
  15878. hasLen := containerLenS > 0
  15879. var xlen int
  15880. if hasLen && canChange {
  15881. if containerLenS > cap(v) {
  15882. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15883. if xlen <= cap(v) {
  15884. v = v[:xlen]
  15885. } else {
  15886. v = make([]interface{}, xlen)
  15887. }
  15888. changed = true
  15889. } else if containerLenS != len(v) {
  15890. v = v[:containerLenS]
  15891. changed = true
  15892. }
  15893. }
  15894. j := 0
  15895. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15896. if j == 0 && len(v) == 0 {
  15897. if hasLen {
  15898. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15899. } else {
  15900. xlen = 8
  15901. }
  15902. v = make([]interface{}, xlen)
  15903. changed = true
  15904. }
  15905. // if indefinite, etc, then expand the slice if necessary
  15906. var decodeIntoBlank bool
  15907. if j >= len(v) {
  15908. if canChange {
  15909. v = append(v, nil)
  15910. changed = true
  15911. } else {
  15912. d.arrayCannotExpand(len(v), j+1)
  15913. decodeIntoBlank = true
  15914. }
  15915. }
  15916. slh.ElemContainerState(j)
  15917. if decodeIntoBlank {
  15918. d.swallow()
  15919. } else {
  15920. d.decode(&v[j])
  15921. }
  15922. }
  15923. if canChange {
  15924. if j < len(v) {
  15925. v = v[:j]
  15926. changed = true
  15927. } else if j == 0 && v == nil {
  15928. v = make([]interface{}, 0)
  15929. changed = true
  15930. }
  15931. }
  15932. slh.End()
  15933. return v, changed
  15934. }
  15935. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  15936. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  15937. var vp = rv2i(rv).(*[]string)
  15938. if v, changed := fastpathTV.DecSliceStringV(*vp, !array, d); changed {
  15939. *vp = v
  15940. }
  15941. } else {
  15942. fastpathTV.DecSliceStringV(rv2i(rv).([]string), !array, d)
  15943. }
  15944. }
  15945. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  15946. if v, changed := f.DecSliceStringV(*vp, true, d); changed {
  15947. *vp = v
  15948. }
  15949. }
  15950. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  15951. dd := d.d
  15952. slh, containerLenS := d.decSliceHelperStart()
  15953. if containerLenS == 0 {
  15954. if canChange {
  15955. if v == nil {
  15956. v = []string{}
  15957. } else if len(v) != 0 {
  15958. v = v[:0]
  15959. }
  15960. changed = true
  15961. }
  15962. slh.End()
  15963. return v, changed
  15964. }
  15965. hasLen := containerLenS > 0
  15966. var xlen int
  15967. if hasLen && canChange {
  15968. if containerLenS > cap(v) {
  15969. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15970. if xlen <= cap(v) {
  15971. v = v[:xlen]
  15972. } else {
  15973. v = make([]string, xlen)
  15974. }
  15975. changed = true
  15976. } else if containerLenS != len(v) {
  15977. v = v[:containerLenS]
  15978. changed = true
  15979. }
  15980. }
  15981. j := 0
  15982. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  15983. if j == 0 && len(v) == 0 {
  15984. if hasLen {
  15985. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  15986. } else {
  15987. xlen = 8
  15988. }
  15989. v = make([]string, xlen)
  15990. changed = true
  15991. }
  15992. // if indefinite, etc, then expand the slice if necessary
  15993. var decodeIntoBlank bool
  15994. if j >= len(v) {
  15995. if canChange {
  15996. v = append(v, "")
  15997. changed = true
  15998. } else {
  15999. d.arrayCannotExpand(len(v), j+1)
  16000. decodeIntoBlank = true
  16001. }
  16002. }
  16003. slh.ElemContainerState(j)
  16004. if decodeIntoBlank {
  16005. d.swallow()
  16006. } else {
  16007. v[j] = dd.DecodeString()
  16008. }
  16009. }
  16010. if canChange {
  16011. if j < len(v) {
  16012. v = v[:j]
  16013. changed = true
  16014. } else if j == 0 && v == nil {
  16015. v = make([]string, 0)
  16016. changed = true
  16017. }
  16018. }
  16019. slh.End()
  16020. return v, changed
  16021. }
  16022. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  16023. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16024. var vp = rv2i(rv).(*[]float32)
  16025. if v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d); changed {
  16026. *vp = v
  16027. }
  16028. } else {
  16029. fastpathTV.DecSliceFloat32V(rv2i(rv).([]float32), !array, d)
  16030. }
  16031. }
  16032. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  16033. if v, changed := f.DecSliceFloat32V(*vp, true, d); changed {
  16034. *vp = v
  16035. }
  16036. }
  16037. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  16038. dd := d.d
  16039. slh, containerLenS := d.decSliceHelperStart()
  16040. if containerLenS == 0 {
  16041. if canChange {
  16042. if v == nil {
  16043. v = []float32{}
  16044. } else if len(v) != 0 {
  16045. v = v[:0]
  16046. }
  16047. changed = true
  16048. }
  16049. slh.End()
  16050. return v, changed
  16051. }
  16052. hasLen := containerLenS > 0
  16053. var xlen int
  16054. if hasLen && canChange {
  16055. if containerLenS > cap(v) {
  16056. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16057. if xlen <= cap(v) {
  16058. v = v[:xlen]
  16059. } else {
  16060. v = make([]float32, xlen)
  16061. }
  16062. changed = true
  16063. } else if containerLenS != len(v) {
  16064. v = v[:containerLenS]
  16065. changed = true
  16066. }
  16067. }
  16068. j := 0
  16069. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16070. if j == 0 && len(v) == 0 {
  16071. if hasLen {
  16072. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16073. } else {
  16074. xlen = 8
  16075. }
  16076. v = make([]float32, xlen)
  16077. changed = true
  16078. }
  16079. // if indefinite, etc, then expand the slice if necessary
  16080. var decodeIntoBlank bool
  16081. if j >= len(v) {
  16082. if canChange {
  16083. v = append(v, 0)
  16084. changed = true
  16085. } else {
  16086. d.arrayCannotExpand(len(v), j+1)
  16087. decodeIntoBlank = true
  16088. }
  16089. }
  16090. slh.ElemContainerState(j)
  16091. if decodeIntoBlank {
  16092. d.swallow()
  16093. } else {
  16094. v[j] = float32(dd.DecodeFloat(true))
  16095. }
  16096. }
  16097. if canChange {
  16098. if j < len(v) {
  16099. v = v[:j]
  16100. changed = true
  16101. } else if j == 0 && v == nil {
  16102. v = make([]float32, 0)
  16103. changed = true
  16104. }
  16105. }
  16106. slh.End()
  16107. return v, changed
  16108. }
  16109. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  16110. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16111. var vp = rv2i(rv).(*[]float64)
  16112. if v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d); changed {
  16113. *vp = v
  16114. }
  16115. } else {
  16116. fastpathTV.DecSliceFloat64V(rv2i(rv).([]float64), !array, d)
  16117. }
  16118. }
  16119. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  16120. if v, changed := f.DecSliceFloat64V(*vp, true, d); changed {
  16121. *vp = v
  16122. }
  16123. }
  16124. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  16125. dd := d.d
  16126. slh, containerLenS := d.decSliceHelperStart()
  16127. if containerLenS == 0 {
  16128. if canChange {
  16129. if v == nil {
  16130. v = []float64{}
  16131. } else if len(v) != 0 {
  16132. v = v[:0]
  16133. }
  16134. changed = true
  16135. }
  16136. slh.End()
  16137. return v, changed
  16138. }
  16139. hasLen := containerLenS > 0
  16140. var xlen int
  16141. if hasLen && canChange {
  16142. if containerLenS > cap(v) {
  16143. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16144. if xlen <= cap(v) {
  16145. v = v[:xlen]
  16146. } else {
  16147. v = make([]float64, xlen)
  16148. }
  16149. changed = true
  16150. } else if containerLenS != len(v) {
  16151. v = v[:containerLenS]
  16152. changed = true
  16153. }
  16154. }
  16155. j := 0
  16156. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16157. if j == 0 && len(v) == 0 {
  16158. if hasLen {
  16159. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16160. } else {
  16161. xlen = 8
  16162. }
  16163. v = make([]float64, xlen)
  16164. changed = true
  16165. }
  16166. // if indefinite, etc, then expand the slice if necessary
  16167. var decodeIntoBlank bool
  16168. if j >= len(v) {
  16169. if canChange {
  16170. v = append(v, 0)
  16171. changed = true
  16172. } else {
  16173. d.arrayCannotExpand(len(v), j+1)
  16174. decodeIntoBlank = true
  16175. }
  16176. }
  16177. slh.ElemContainerState(j)
  16178. if decodeIntoBlank {
  16179. d.swallow()
  16180. } else {
  16181. v[j] = dd.DecodeFloat(false)
  16182. }
  16183. }
  16184. if canChange {
  16185. if j < len(v) {
  16186. v = v[:j]
  16187. changed = true
  16188. } else if j == 0 && v == nil {
  16189. v = make([]float64, 0)
  16190. changed = true
  16191. }
  16192. }
  16193. slh.End()
  16194. return v, changed
  16195. }
  16196. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  16197. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16198. var vp = rv2i(rv).(*[]uint)
  16199. if v, changed := fastpathTV.DecSliceUintV(*vp, !array, d); changed {
  16200. *vp = v
  16201. }
  16202. } else {
  16203. fastpathTV.DecSliceUintV(rv2i(rv).([]uint), !array, d)
  16204. }
  16205. }
  16206. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  16207. if v, changed := f.DecSliceUintV(*vp, true, d); changed {
  16208. *vp = v
  16209. }
  16210. }
  16211. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  16212. dd := d.d
  16213. slh, containerLenS := d.decSliceHelperStart()
  16214. if containerLenS == 0 {
  16215. if canChange {
  16216. if v == nil {
  16217. v = []uint{}
  16218. } else if len(v) != 0 {
  16219. v = v[:0]
  16220. }
  16221. changed = true
  16222. }
  16223. slh.End()
  16224. return v, changed
  16225. }
  16226. hasLen := containerLenS > 0
  16227. var xlen int
  16228. if hasLen && canChange {
  16229. if containerLenS > cap(v) {
  16230. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16231. if xlen <= cap(v) {
  16232. v = v[:xlen]
  16233. } else {
  16234. v = make([]uint, xlen)
  16235. }
  16236. changed = true
  16237. } else if containerLenS != len(v) {
  16238. v = v[:containerLenS]
  16239. changed = true
  16240. }
  16241. }
  16242. j := 0
  16243. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16244. if j == 0 && len(v) == 0 {
  16245. if hasLen {
  16246. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16247. } else {
  16248. xlen = 8
  16249. }
  16250. v = make([]uint, xlen)
  16251. changed = true
  16252. }
  16253. // if indefinite, etc, then expand the slice if necessary
  16254. var decodeIntoBlank bool
  16255. if j >= len(v) {
  16256. if canChange {
  16257. v = append(v, 0)
  16258. changed = true
  16259. } else {
  16260. d.arrayCannotExpand(len(v), j+1)
  16261. decodeIntoBlank = true
  16262. }
  16263. }
  16264. slh.ElemContainerState(j)
  16265. if decodeIntoBlank {
  16266. d.swallow()
  16267. } else {
  16268. v[j] = uint(dd.DecodeUint(uintBitsize))
  16269. }
  16270. }
  16271. if canChange {
  16272. if j < len(v) {
  16273. v = v[:j]
  16274. changed = true
  16275. } else if j == 0 && v == nil {
  16276. v = make([]uint, 0)
  16277. changed = true
  16278. }
  16279. }
  16280. slh.End()
  16281. return v, changed
  16282. }
  16283. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  16284. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16285. var vp = rv2i(rv).(*[]uint16)
  16286. if v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d); changed {
  16287. *vp = v
  16288. }
  16289. } else {
  16290. fastpathTV.DecSliceUint16V(rv2i(rv).([]uint16), !array, d)
  16291. }
  16292. }
  16293. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  16294. if v, changed := f.DecSliceUint16V(*vp, true, d); changed {
  16295. *vp = v
  16296. }
  16297. }
  16298. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  16299. dd := d.d
  16300. slh, containerLenS := d.decSliceHelperStart()
  16301. if containerLenS == 0 {
  16302. if canChange {
  16303. if v == nil {
  16304. v = []uint16{}
  16305. } else if len(v) != 0 {
  16306. v = v[:0]
  16307. }
  16308. changed = true
  16309. }
  16310. slh.End()
  16311. return v, changed
  16312. }
  16313. hasLen := containerLenS > 0
  16314. var xlen int
  16315. if hasLen && canChange {
  16316. if containerLenS > cap(v) {
  16317. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16318. if xlen <= cap(v) {
  16319. v = v[:xlen]
  16320. } else {
  16321. v = make([]uint16, xlen)
  16322. }
  16323. changed = true
  16324. } else if containerLenS != len(v) {
  16325. v = v[:containerLenS]
  16326. changed = true
  16327. }
  16328. }
  16329. j := 0
  16330. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16331. if j == 0 && len(v) == 0 {
  16332. if hasLen {
  16333. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16334. } else {
  16335. xlen = 8
  16336. }
  16337. v = make([]uint16, xlen)
  16338. changed = true
  16339. }
  16340. // if indefinite, etc, then expand the slice if necessary
  16341. var decodeIntoBlank bool
  16342. if j >= len(v) {
  16343. if canChange {
  16344. v = append(v, 0)
  16345. changed = true
  16346. } else {
  16347. d.arrayCannotExpand(len(v), j+1)
  16348. decodeIntoBlank = true
  16349. }
  16350. }
  16351. slh.ElemContainerState(j)
  16352. if decodeIntoBlank {
  16353. d.swallow()
  16354. } else {
  16355. v[j] = uint16(dd.DecodeUint(16))
  16356. }
  16357. }
  16358. if canChange {
  16359. if j < len(v) {
  16360. v = v[:j]
  16361. changed = true
  16362. } else if j == 0 && v == nil {
  16363. v = make([]uint16, 0)
  16364. changed = true
  16365. }
  16366. }
  16367. slh.End()
  16368. return v, changed
  16369. }
  16370. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  16371. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16372. var vp = rv2i(rv).(*[]uint32)
  16373. if v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d); changed {
  16374. *vp = v
  16375. }
  16376. } else {
  16377. fastpathTV.DecSliceUint32V(rv2i(rv).([]uint32), !array, d)
  16378. }
  16379. }
  16380. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  16381. if v, changed := f.DecSliceUint32V(*vp, true, d); changed {
  16382. *vp = v
  16383. }
  16384. }
  16385. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  16386. dd := d.d
  16387. slh, containerLenS := d.decSliceHelperStart()
  16388. if containerLenS == 0 {
  16389. if canChange {
  16390. if v == nil {
  16391. v = []uint32{}
  16392. } else if len(v) != 0 {
  16393. v = v[:0]
  16394. }
  16395. changed = true
  16396. }
  16397. slh.End()
  16398. return v, changed
  16399. }
  16400. hasLen := containerLenS > 0
  16401. var xlen int
  16402. if hasLen && canChange {
  16403. if containerLenS > cap(v) {
  16404. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16405. if xlen <= cap(v) {
  16406. v = v[:xlen]
  16407. } else {
  16408. v = make([]uint32, xlen)
  16409. }
  16410. changed = true
  16411. } else if containerLenS != len(v) {
  16412. v = v[:containerLenS]
  16413. changed = true
  16414. }
  16415. }
  16416. j := 0
  16417. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16418. if j == 0 && len(v) == 0 {
  16419. if hasLen {
  16420. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16421. } else {
  16422. xlen = 8
  16423. }
  16424. v = make([]uint32, xlen)
  16425. changed = true
  16426. }
  16427. // if indefinite, etc, then expand the slice if necessary
  16428. var decodeIntoBlank bool
  16429. if j >= len(v) {
  16430. if canChange {
  16431. v = append(v, 0)
  16432. changed = true
  16433. } else {
  16434. d.arrayCannotExpand(len(v), j+1)
  16435. decodeIntoBlank = true
  16436. }
  16437. }
  16438. slh.ElemContainerState(j)
  16439. if decodeIntoBlank {
  16440. d.swallow()
  16441. } else {
  16442. v[j] = uint32(dd.DecodeUint(32))
  16443. }
  16444. }
  16445. if canChange {
  16446. if j < len(v) {
  16447. v = v[:j]
  16448. changed = true
  16449. } else if j == 0 && v == nil {
  16450. v = make([]uint32, 0)
  16451. changed = true
  16452. }
  16453. }
  16454. slh.End()
  16455. return v, changed
  16456. }
  16457. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  16458. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16459. var vp = rv2i(rv).(*[]uint64)
  16460. if v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d); changed {
  16461. *vp = v
  16462. }
  16463. } else {
  16464. fastpathTV.DecSliceUint64V(rv2i(rv).([]uint64), !array, d)
  16465. }
  16466. }
  16467. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  16468. if v, changed := f.DecSliceUint64V(*vp, true, d); changed {
  16469. *vp = v
  16470. }
  16471. }
  16472. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  16473. dd := d.d
  16474. slh, containerLenS := d.decSliceHelperStart()
  16475. if containerLenS == 0 {
  16476. if canChange {
  16477. if v == nil {
  16478. v = []uint64{}
  16479. } else if len(v) != 0 {
  16480. v = v[:0]
  16481. }
  16482. changed = true
  16483. }
  16484. slh.End()
  16485. return v, changed
  16486. }
  16487. hasLen := containerLenS > 0
  16488. var xlen int
  16489. if hasLen && canChange {
  16490. if containerLenS > cap(v) {
  16491. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16492. if xlen <= cap(v) {
  16493. v = v[:xlen]
  16494. } else {
  16495. v = make([]uint64, xlen)
  16496. }
  16497. changed = true
  16498. } else if containerLenS != len(v) {
  16499. v = v[:containerLenS]
  16500. changed = true
  16501. }
  16502. }
  16503. j := 0
  16504. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16505. if j == 0 && len(v) == 0 {
  16506. if hasLen {
  16507. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16508. } else {
  16509. xlen = 8
  16510. }
  16511. v = make([]uint64, xlen)
  16512. changed = true
  16513. }
  16514. // if indefinite, etc, then expand the slice if necessary
  16515. var decodeIntoBlank bool
  16516. if j >= len(v) {
  16517. if canChange {
  16518. v = append(v, 0)
  16519. changed = true
  16520. } else {
  16521. d.arrayCannotExpand(len(v), j+1)
  16522. decodeIntoBlank = true
  16523. }
  16524. }
  16525. slh.ElemContainerState(j)
  16526. if decodeIntoBlank {
  16527. d.swallow()
  16528. } else {
  16529. v[j] = dd.DecodeUint(64)
  16530. }
  16531. }
  16532. if canChange {
  16533. if j < len(v) {
  16534. v = v[:j]
  16535. changed = true
  16536. } else if j == 0 && v == nil {
  16537. v = make([]uint64, 0)
  16538. changed = true
  16539. }
  16540. }
  16541. slh.End()
  16542. return v, changed
  16543. }
  16544. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  16545. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16546. var vp = rv2i(rv).(*[]uintptr)
  16547. if v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d); changed {
  16548. *vp = v
  16549. }
  16550. } else {
  16551. fastpathTV.DecSliceUintptrV(rv2i(rv).([]uintptr), !array, d)
  16552. }
  16553. }
  16554. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  16555. if v, changed := f.DecSliceUintptrV(*vp, true, d); changed {
  16556. *vp = v
  16557. }
  16558. }
  16559. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  16560. dd := d.d
  16561. slh, containerLenS := d.decSliceHelperStart()
  16562. if containerLenS == 0 {
  16563. if canChange {
  16564. if v == nil {
  16565. v = []uintptr{}
  16566. } else if len(v) != 0 {
  16567. v = v[:0]
  16568. }
  16569. changed = true
  16570. }
  16571. slh.End()
  16572. return v, changed
  16573. }
  16574. hasLen := containerLenS > 0
  16575. var xlen int
  16576. if hasLen && canChange {
  16577. if containerLenS > cap(v) {
  16578. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16579. if xlen <= cap(v) {
  16580. v = v[:xlen]
  16581. } else {
  16582. v = make([]uintptr, xlen)
  16583. }
  16584. changed = true
  16585. } else if containerLenS != len(v) {
  16586. v = v[:containerLenS]
  16587. changed = true
  16588. }
  16589. }
  16590. j := 0
  16591. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16592. if j == 0 && len(v) == 0 {
  16593. if hasLen {
  16594. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16595. } else {
  16596. xlen = 8
  16597. }
  16598. v = make([]uintptr, xlen)
  16599. changed = true
  16600. }
  16601. // if indefinite, etc, then expand the slice if necessary
  16602. var decodeIntoBlank bool
  16603. if j >= len(v) {
  16604. if canChange {
  16605. v = append(v, 0)
  16606. changed = true
  16607. } else {
  16608. d.arrayCannotExpand(len(v), j+1)
  16609. decodeIntoBlank = true
  16610. }
  16611. }
  16612. slh.ElemContainerState(j)
  16613. if decodeIntoBlank {
  16614. d.swallow()
  16615. } else {
  16616. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  16617. }
  16618. }
  16619. if canChange {
  16620. if j < len(v) {
  16621. v = v[:j]
  16622. changed = true
  16623. } else if j == 0 && v == nil {
  16624. v = make([]uintptr, 0)
  16625. changed = true
  16626. }
  16627. }
  16628. slh.End()
  16629. return v, changed
  16630. }
  16631. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  16632. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16633. var vp = rv2i(rv).(*[]int)
  16634. if v, changed := fastpathTV.DecSliceIntV(*vp, !array, d); changed {
  16635. *vp = v
  16636. }
  16637. } else {
  16638. fastpathTV.DecSliceIntV(rv2i(rv).([]int), !array, d)
  16639. }
  16640. }
  16641. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  16642. if v, changed := f.DecSliceIntV(*vp, true, d); changed {
  16643. *vp = v
  16644. }
  16645. }
  16646. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  16647. dd := d.d
  16648. slh, containerLenS := d.decSliceHelperStart()
  16649. if containerLenS == 0 {
  16650. if canChange {
  16651. if v == nil {
  16652. v = []int{}
  16653. } else if len(v) != 0 {
  16654. v = v[:0]
  16655. }
  16656. changed = true
  16657. }
  16658. slh.End()
  16659. return v, changed
  16660. }
  16661. hasLen := containerLenS > 0
  16662. var xlen int
  16663. if hasLen && canChange {
  16664. if containerLenS > cap(v) {
  16665. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16666. if xlen <= cap(v) {
  16667. v = v[:xlen]
  16668. } else {
  16669. v = make([]int, xlen)
  16670. }
  16671. changed = true
  16672. } else if containerLenS != len(v) {
  16673. v = v[:containerLenS]
  16674. changed = true
  16675. }
  16676. }
  16677. j := 0
  16678. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16679. if j == 0 && len(v) == 0 {
  16680. if hasLen {
  16681. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  16682. } else {
  16683. xlen = 8
  16684. }
  16685. v = make([]int, xlen)
  16686. changed = true
  16687. }
  16688. // if indefinite, etc, then expand the slice if necessary
  16689. var decodeIntoBlank bool
  16690. if j >= len(v) {
  16691. if canChange {
  16692. v = append(v, 0)
  16693. changed = true
  16694. } else {
  16695. d.arrayCannotExpand(len(v), j+1)
  16696. decodeIntoBlank = true
  16697. }
  16698. }
  16699. slh.ElemContainerState(j)
  16700. if decodeIntoBlank {
  16701. d.swallow()
  16702. } else {
  16703. v[j] = int(dd.DecodeInt(intBitsize))
  16704. }
  16705. }
  16706. if canChange {
  16707. if j < len(v) {
  16708. v = v[:j]
  16709. changed = true
  16710. } else if j == 0 && v == nil {
  16711. v = make([]int, 0)
  16712. changed = true
  16713. }
  16714. }
  16715. slh.End()
  16716. return v, changed
  16717. }
  16718. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  16719. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16720. var vp = rv2i(rv).(*[]int8)
  16721. if v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d); changed {
  16722. *vp = v
  16723. }
  16724. } else {
  16725. fastpathTV.DecSliceInt8V(rv2i(rv).([]int8), !array, d)
  16726. }
  16727. }
  16728. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  16729. if v, changed := f.DecSliceInt8V(*vp, true, d); changed {
  16730. *vp = v
  16731. }
  16732. }
  16733. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  16734. dd := d.d
  16735. slh, containerLenS := d.decSliceHelperStart()
  16736. if containerLenS == 0 {
  16737. if canChange {
  16738. if v == nil {
  16739. v = []int8{}
  16740. } else if len(v) != 0 {
  16741. v = v[:0]
  16742. }
  16743. changed = true
  16744. }
  16745. slh.End()
  16746. return v, changed
  16747. }
  16748. hasLen := containerLenS > 0
  16749. var xlen int
  16750. if hasLen && canChange {
  16751. if containerLenS > cap(v) {
  16752. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16753. if xlen <= cap(v) {
  16754. v = v[:xlen]
  16755. } else {
  16756. v = make([]int8, xlen)
  16757. }
  16758. changed = true
  16759. } else if containerLenS != len(v) {
  16760. v = v[:containerLenS]
  16761. changed = true
  16762. }
  16763. }
  16764. j := 0
  16765. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16766. if j == 0 && len(v) == 0 {
  16767. if hasLen {
  16768. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  16769. } else {
  16770. xlen = 8
  16771. }
  16772. v = make([]int8, xlen)
  16773. changed = true
  16774. }
  16775. // if indefinite, etc, then expand the slice if necessary
  16776. var decodeIntoBlank bool
  16777. if j >= len(v) {
  16778. if canChange {
  16779. v = append(v, 0)
  16780. changed = true
  16781. } else {
  16782. d.arrayCannotExpand(len(v), j+1)
  16783. decodeIntoBlank = true
  16784. }
  16785. }
  16786. slh.ElemContainerState(j)
  16787. if decodeIntoBlank {
  16788. d.swallow()
  16789. } else {
  16790. v[j] = int8(dd.DecodeInt(8))
  16791. }
  16792. }
  16793. if canChange {
  16794. if j < len(v) {
  16795. v = v[:j]
  16796. changed = true
  16797. } else if j == 0 && v == nil {
  16798. v = make([]int8, 0)
  16799. changed = true
  16800. }
  16801. }
  16802. slh.End()
  16803. return v, changed
  16804. }
  16805. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  16806. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16807. var vp = rv2i(rv).(*[]int16)
  16808. if v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d); changed {
  16809. *vp = v
  16810. }
  16811. } else {
  16812. fastpathTV.DecSliceInt16V(rv2i(rv).([]int16), !array, d)
  16813. }
  16814. }
  16815. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  16816. if v, changed := f.DecSliceInt16V(*vp, true, d); changed {
  16817. *vp = v
  16818. }
  16819. }
  16820. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  16821. dd := d.d
  16822. slh, containerLenS := d.decSliceHelperStart()
  16823. if containerLenS == 0 {
  16824. if canChange {
  16825. if v == nil {
  16826. v = []int16{}
  16827. } else if len(v) != 0 {
  16828. v = v[:0]
  16829. }
  16830. changed = true
  16831. }
  16832. slh.End()
  16833. return v, changed
  16834. }
  16835. hasLen := containerLenS > 0
  16836. var xlen int
  16837. if hasLen && canChange {
  16838. if containerLenS > cap(v) {
  16839. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16840. if xlen <= cap(v) {
  16841. v = v[:xlen]
  16842. } else {
  16843. v = make([]int16, xlen)
  16844. }
  16845. changed = true
  16846. } else if containerLenS != len(v) {
  16847. v = v[:containerLenS]
  16848. changed = true
  16849. }
  16850. }
  16851. j := 0
  16852. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16853. if j == 0 && len(v) == 0 {
  16854. if hasLen {
  16855. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  16856. } else {
  16857. xlen = 8
  16858. }
  16859. v = make([]int16, xlen)
  16860. changed = true
  16861. }
  16862. // if indefinite, etc, then expand the slice if necessary
  16863. var decodeIntoBlank bool
  16864. if j >= len(v) {
  16865. if canChange {
  16866. v = append(v, 0)
  16867. changed = true
  16868. } else {
  16869. d.arrayCannotExpand(len(v), j+1)
  16870. decodeIntoBlank = true
  16871. }
  16872. }
  16873. slh.ElemContainerState(j)
  16874. if decodeIntoBlank {
  16875. d.swallow()
  16876. } else {
  16877. v[j] = int16(dd.DecodeInt(16))
  16878. }
  16879. }
  16880. if canChange {
  16881. if j < len(v) {
  16882. v = v[:j]
  16883. changed = true
  16884. } else if j == 0 && v == nil {
  16885. v = make([]int16, 0)
  16886. changed = true
  16887. }
  16888. }
  16889. slh.End()
  16890. return v, changed
  16891. }
  16892. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  16893. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16894. var vp = rv2i(rv).(*[]int32)
  16895. if v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d); changed {
  16896. *vp = v
  16897. }
  16898. } else {
  16899. fastpathTV.DecSliceInt32V(rv2i(rv).([]int32), !array, d)
  16900. }
  16901. }
  16902. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  16903. if v, changed := f.DecSliceInt32V(*vp, true, d); changed {
  16904. *vp = v
  16905. }
  16906. }
  16907. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  16908. dd := d.d
  16909. slh, containerLenS := d.decSliceHelperStart()
  16910. if containerLenS == 0 {
  16911. if canChange {
  16912. if v == nil {
  16913. v = []int32{}
  16914. } else if len(v) != 0 {
  16915. v = v[:0]
  16916. }
  16917. changed = true
  16918. }
  16919. slh.End()
  16920. return v, changed
  16921. }
  16922. hasLen := containerLenS > 0
  16923. var xlen int
  16924. if hasLen && canChange {
  16925. if containerLenS > cap(v) {
  16926. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16927. if xlen <= cap(v) {
  16928. v = v[:xlen]
  16929. } else {
  16930. v = make([]int32, xlen)
  16931. }
  16932. changed = true
  16933. } else if containerLenS != len(v) {
  16934. v = v[:containerLenS]
  16935. changed = true
  16936. }
  16937. }
  16938. j := 0
  16939. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  16940. if j == 0 && len(v) == 0 {
  16941. if hasLen {
  16942. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  16943. } else {
  16944. xlen = 8
  16945. }
  16946. v = make([]int32, xlen)
  16947. changed = true
  16948. }
  16949. // if indefinite, etc, then expand the slice if necessary
  16950. var decodeIntoBlank bool
  16951. if j >= len(v) {
  16952. if canChange {
  16953. v = append(v, 0)
  16954. changed = true
  16955. } else {
  16956. d.arrayCannotExpand(len(v), j+1)
  16957. decodeIntoBlank = true
  16958. }
  16959. }
  16960. slh.ElemContainerState(j)
  16961. if decodeIntoBlank {
  16962. d.swallow()
  16963. } else {
  16964. v[j] = int32(dd.DecodeInt(32))
  16965. }
  16966. }
  16967. if canChange {
  16968. if j < len(v) {
  16969. v = v[:j]
  16970. changed = true
  16971. } else if j == 0 && v == nil {
  16972. v = make([]int32, 0)
  16973. changed = true
  16974. }
  16975. }
  16976. slh.End()
  16977. return v, changed
  16978. }
  16979. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  16980. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  16981. var vp = rv2i(rv).(*[]int64)
  16982. if v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d); changed {
  16983. *vp = v
  16984. }
  16985. } else {
  16986. fastpathTV.DecSliceInt64V(rv2i(rv).([]int64), !array, d)
  16987. }
  16988. }
  16989. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  16990. if v, changed := f.DecSliceInt64V(*vp, true, d); changed {
  16991. *vp = v
  16992. }
  16993. }
  16994. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  16995. dd := d.d
  16996. slh, containerLenS := d.decSliceHelperStart()
  16997. if containerLenS == 0 {
  16998. if canChange {
  16999. if v == nil {
  17000. v = []int64{}
  17001. } else if len(v) != 0 {
  17002. v = v[:0]
  17003. }
  17004. changed = true
  17005. }
  17006. slh.End()
  17007. return v, changed
  17008. }
  17009. hasLen := containerLenS > 0
  17010. var xlen int
  17011. if hasLen && canChange {
  17012. if containerLenS > cap(v) {
  17013. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17014. if xlen <= cap(v) {
  17015. v = v[:xlen]
  17016. } else {
  17017. v = make([]int64, xlen)
  17018. }
  17019. changed = true
  17020. } else if containerLenS != len(v) {
  17021. v = v[:containerLenS]
  17022. changed = true
  17023. }
  17024. }
  17025. j := 0
  17026. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17027. if j == 0 && len(v) == 0 {
  17028. if hasLen {
  17029. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17030. } else {
  17031. xlen = 8
  17032. }
  17033. v = make([]int64, xlen)
  17034. changed = true
  17035. }
  17036. // if indefinite, etc, then expand the slice if necessary
  17037. var decodeIntoBlank bool
  17038. if j >= len(v) {
  17039. if canChange {
  17040. v = append(v, 0)
  17041. changed = true
  17042. } else {
  17043. d.arrayCannotExpand(len(v), j+1)
  17044. decodeIntoBlank = true
  17045. }
  17046. }
  17047. slh.ElemContainerState(j)
  17048. if decodeIntoBlank {
  17049. d.swallow()
  17050. } else {
  17051. v[j] = dd.DecodeInt(64)
  17052. }
  17053. }
  17054. if canChange {
  17055. if j < len(v) {
  17056. v = v[:j]
  17057. changed = true
  17058. } else if j == 0 && v == nil {
  17059. v = make([]int64, 0)
  17060. changed = true
  17061. }
  17062. }
  17063. slh.End()
  17064. return v, changed
  17065. }
  17066. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  17067. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17068. var vp = rv2i(rv).(*[]bool)
  17069. if v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d); changed {
  17070. *vp = v
  17071. }
  17072. } else {
  17073. fastpathTV.DecSliceBoolV(rv2i(rv).([]bool), !array, d)
  17074. }
  17075. }
  17076. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  17077. if v, changed := f.DecSliceBoolV(*vp, true, d); changed {
  17078. *vp = v
  17079. }
  17080. }
  17081. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  17082. dd := d.d
  17083. slh, containerLenS := d.decSliceHelperStart()
  17084. if containerLenS == 0 {
  17085. if canChange {
  17086. if v == nil {
  17087. v = []bool{}
  17088. } else if len(v) != 0 {
  17089. v = v[:0]
  17090. }
  17091. changed = true
  17092. }
  17093. slh.End()
  17094. return v, changed
  17095. }
  17096. hasLen := containerLenS > 0
  17097. var xlen int
  17098. if hasLen && canChange {
  17099. if containerLenS > cap(v) {
  17100. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17101. if xlen <= cap(v) {
  17102. v = v[:xlen]
  17103. } else {
  17104. v = make([]bool, xlen)
  17105. }
  17106. changed = true
  17107. } else if containerLenS != len(v) {
  17108. v = v[:containerLenS]
  17109. changed = true
  17110. }
  17111. }
  17112. j := 0
  17113. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17114. if j == 0 && len(v) == 0 {
  17115. if hasLen {
  17116. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17117. } else {
  17118. xlen = 8
  17119. }
  17120. v = make([]bool, xlen)
  17121. changed = true
  17122. }
  17123. // if indefinite, etc, then expand the slice if necessary
  17124. var decodeIntoBlank bool
  17125. if j >= len(v) {
  17126. if canChange {
  17127. v = append(v, false)
  17128. changed = true
  17129. } else {
  17130. d.arrayCannotExpand(len(v), j+1)
  17131. decodeIntoBlank = true
  17132. }
  17133. }
  17134. slh.ElemContainerState(j)
  17135. if decodeIntoBlank {
  17136. d.swallow()
  17137. } else {
  17138. v[j] = dd.DecodeBool()
  17139. }
  17140. }
  17141. if canChange {
  17142. if j < len(v) {
  17143. v = v[:j]
  17144. changed = true
  17145. } else if j == 0 && v == nil {
  17146. v = make([]bool, 0)
  17147. changed = true
  17148. }
  17149. }
  17150. slh.End()
  17151. return v, changed
  17152. }
  17153. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  17154. if rv.Kind() == reflect.Ptr {
  17155. vp := rv2i(rv).(*map[interface{}]interface{})
  17156. if v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d); changed {
  17157. *vp = v
  17158. }
  17159. return
  17160. }
  17161. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  17162. }
  17163. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  17164. if v, changed := f.DecMapIntfIntfV(*vp, true, d); changed {
  17165. *vp = v
  17166. }
  17167. }
  17168. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  17169. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  17170. dd, cr := d.d, d.cr
  17171. containerLen := dd.ReadMapStart()
  17172. if canChange && v == nil {
  17173. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  17174. v = make(map[interface{}]interface{}, xlen)
  17175. changed = true
  17176. }
  17177. if containerLen == 0 {
  17178. if cr != nil {
  17179. cr.sendContainerState(containerMapEnd)
  17180. }
  17181. return v, changed
  17182. }
  17183. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  17184. var mk interface{}
  17185. var mv interface{}
  17186. hasLen := containerLen > 0
  17187. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17188. if cr != nil {
  17189. cr.sendContainerState(containerMapKey)
  17190. }
  17191. mk = nil
  17192. d.decode(&mk)
  17193. if bv, bok := mk.([]byte); bok {
  17194. mk = d.string(bv)
  17195. }
  17196. if cr != nil {
  17197. cr.sendContainerState(containerMapValue)
  17198. }
  17199. if dd.TryDecodeAsNil() {
  17200. if d.h.DeleteOnNilMapValue {
  17201. delete(v, mk)
  17202. } else {
  17203. v[mk] = nil
  17204. }
  17205. continue
  17206. }
  17207. if mapGet {
  17208. mv = v[mk]
  17209. } else {
  17210. mv = nil
  17211. }
  17212. d.decode(&mv)
  17213. if v != nil {
  17214. v[mk] = mv
  17215. }
  17216. }
  17217. if cr != nil {
  17218. cr.sendContainerState(containerMapEnd)
  17219. }
  17220. return v, changed
  17221. }
  17222. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  17223. if rv.Kind() == reflect.Ptr {
  17224. vp := rv2i(rv).(*map[interface{}]string)
  17225. if v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d); changed {
  17226. *vp = v
  17227. }
  17228. return
  17229. }
  17230. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  17231. }
  17232. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  17233. if v, changed := f.DecMapIntfStringV(*vp, true, d); changed {
  17234. *vp = v
  17235. }
  17236. }
  17237. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  17238. d *Decoder) (_ map[interface{}]string, changed bool) {
  17239. dd, cr := d.d, d.cr
  17240. containerLen := dd.ReadMapStart()
  17241. if canChange && v == nil {
  17242. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  17243. v = make(map[interface{}]string, xlen)
  17244. changed = true
  17245. }
  17246. if containerLen == 0 {
  17247. if cr != nil {
  17248. cr.sendContainerState(containerMapEnd)
  17249. }
  17250. return v, changed
  17251. }
  17252. var mk interface{}
  17253. var mv string
  17254. hasLen := containerLen > 0
  17255. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17256. if cr != nil {
  17257. cr.sendContainerState(containerMapKey)
  17258. }
  17259. mk = nil
  17260. d.decode(&mk)
  17261. if bv, bok := mk.([]byte); bok {
  17262. mk = d.string(bv)
  17263. }
  17264. if cr != nil {
  17265. cr.sendContainerState(containerMapValue)
  17266. }
  17267. if dd.TryDecodeAsNil() {
  17268. if d.h.DeleteOnNilMapValue {
  17269. delete(v, mk)
  17270. } else {
  17271. v[mk] = ""
  17272. }
  17273. continue
  17274. }
  17275. mv = dd.DecodeString()
  17276. if v != nil {
  17277. v[mk] = mv
  17278. }
  17279. }
  17280. if cr != nil {
  17281. cr.sendContainerState(containerMapEnd)
  17282. }
  17283. return v, changed
  17284. }
  17285. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  17286. if rv.Kind() == reflect.Ptr {
  17287. vp := rv2i(rv).(*map[interface{}]uint)
  17288. if v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d); changed {
  17289. *vp = v
  17290. }
  17291. return
  17292. }
  17293. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  17294. }
  17295. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  17296. if v, changed := f.DecMapIntfUintV(*vp, true, d); changed {
  17297. *vp = v
  17298. }
  17299. }
  17300. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  17301. d *Decoder) (_ map[interface{}]uint, changed bool) {
  17302. dd, cr := d.d, d.cr
  17303. containerLen := dd.ReadMapStart()
  17304. if canChange && v == nil {
  17305. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17306. v = make(map[interface{}]uint, xlen)
  17307. changed = true
  17308. }
  17309. if containerLen == 0 {
  17310. if cr != nil {
  17311. cr.sendContainerState(containerMapEnd)
  17312. }
  17313. return v, changed
  17314. }
  17315. var mk interface{}
  17316. var mv uint
  17317. hasLen := containerLen > 0
  17318. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17319. if cr != nil {
  17320. cr.sendContainerState(containerMapKey)
  17321. }
  17322. mk = nil
  17323. d.decode(&mk)
  17324. if bv, bok := mk.([]byte); bok {
  17325. mk = d.string(bv)
  17326. }
  17327. if cr != nil {
  17328. cr.sendContainerState(containerMapValue)
  17329. }
  17330. if dd.TryDecodeAsNil() {
  17331. if d.h.DeleteOnNilMapValue {
  17332. delete(v, mk)
  17333. } else {
  17334. v[mk] = 0
  17335. }
  17336. continue
  17337. }
  17338. mv = uint(dd.DecodeUint(uintBitsize))
  17339. if v != nil {
  17340. v[mk] = mv
  17341. }
  17342. }
  17343. if cr != nil {
  17344. cr.sendContainerState(containerMapEnd)
  17345. }
  17346. return v, changed
  17347. }
  17348. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  17349. if rv.Kind() == reflect.Ptr {
  17350. vp := rv2i(rv).(*map[interface{}]uint8)
  17351. if v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d); changed {
  17352. *vp = v
  17353. }
  17354. return
  17355. }
  17356. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  17357. }
  17358. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  17359. if v, changed := f.DecMapIntfUint8V(*vp, true, d); changed {
  17360. *vp = v
  17361. }
  17362. }
  17363. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  17364. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  17365. dd, cr := d.d, d.cr
  17366. containerLen := dd.ReadMapStart()
  17367. if canChange && v == nil {
  17368. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  17369. v = make(map[interface{}]uint8, xlen)
  17370. changed = true
  17371. }
  17372. if containerLen == 0 {
  17373. if cr != nil {
  17374. cr.sendContainerState(containerMapEnd)
  17375. }
  17376. return v, changed
  17377. }
  17378. var mk interface{}
  17379. var mv uint8
  17380. hasLen := containerLen > 0
  17381. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17382. if cr != nil {
  17383. cr.sendContainerState(containerMapKey)
  17384. }
  17385. mk = nil
  17386. d.decode(&mk)
  17387. if bv, bok := mk.([]byte); bok {
  17388. mk = d.string(bv)
  17389. }
  17390. if cr != nil {
  17391. cr.sendContainerState(containerMapValue)
  17392. }
  17393. if dd.TryDecodeAsNil() {
  17394. if d.h.DeleteOnNilMapValue {
  17395. delete(v, mk)
  17396. } else {
  17397. v[mk] = 0
  17398. }
  17399. continue
  17400. }
  17401. mv = uint8(dd.DecodeUint(8))
  17402. if v != nil {
  17403. v[mk] = mv
  17404. }
  17405. }
  17406. if cr != nil {
  17407. cr.sendContainerState(containerMapEnd)
  17408. }
  17409. return v, changed
  17410. }
  17411. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  17412. if rv.Kind() == reflect.Ptr {
  17413. vp := rv2i(rv).(*map[interface{}]uint16)
  17414. if v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d); changed {
  17415. *vp = v
  17416. }
  17417. return
  17418. }
  17419. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  17420. }
  17421. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  17422. if v, changed := f.DecMapIntfUint16V(*vp, true, d); changed {
  17423. *vp = v
  17424. }
  17425. }
  17426. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  17427. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  17428. dd, cr := d.d, d.cr
  17429. containerLen := dd.ReadMapStart()
  17430. if canChange && v == nil {
  17431. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  17432. v = make(map[interface{}]uint16, xlen)
  17433. changed = true
  17434. }
  17435. if containerLen == 0 {
  17436. if cr != nil {
  17437. cr.sendContainerState(containerMapEnd)
  17438. }
  17439. return v, changed
  17440. }
  17441. var mk interface{}
  17442. var mv uint16
  17443. hasLen := containerLen > 0
  17444. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17445. if cr != nil {
  17446. cr.sendContainerState(containerMapKey)
  17447. }
  17448. mk = nil
  17449. d.decode(&mk)
  17450. if bv, bok := mk.([]byte); bok {
  17451. mk = d.string(bv)
  17452. }
  17453. if cr != nil {
  17454. cr.sendContainerState(containerMapValue)
  17455. }
  17456. if dd.TryDecodeAsNil() {
  17457. if d.h.DeleteOnNilMapValue {
  17458. delete(v, mk)
  17459. } else {
  17460. v[mk] = 0
  17461. }
  17462. continue
  17463. }
  17464. mv = uint16(dd.DecodeUint(16))
  17465. if v != nil {
  17466. v[mk] = mv
  17467. }
  17468. }
  17469. if cr != nil {
  17470. cr.sendContainerState(containerMapEnd)
  17471. }
  17472. return v, changed
  17473. }
  17474. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  17475. if rv.Kind() == reflect.Ptr {
  17476. vp := rv2i(rv).(*map[interface{}]uint32)
  17477. if v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d); changed {
  17478. *vp = v
  17479. }
  17480. return
  17481. }
  17482. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  17483. }
  17484. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  17485. if v, changed := f.DecMapIntfUint32V(*vp, true, d); changed {
  17486. *vp = v
  17487. }
  17488. }
  17489. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  17490. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  17491. dd, cr := d.d, d.cr
  17492. containerLen := dd.ReadMapStart()
  17493. if canChange && v == nil {
  17494. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17495. v = make(map[interface{}]uint32, xlen)
  17496. changed = true
  17497. }
  17498. if containerLen == 0 {
  17499. if cr != nil {
  17500. cr.sendContainerState(containerMapEnd)
  17501. }
  17502. return v, changed
  17503. }
  17504. var mk interface{}
  17505. var mv uint32
  17506. hasLen := containerLen > 0
  17507. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17508. if cr != nil {
  17509. cr.sendContainerState(containerMapKey)
  17510. }
  17511. mk = nil
  17512. d.decode(&mk)
  17513. if bv, bok := mk.([]byte); bok {
  17514. mk = d.string(bv)
  17515. }
  17516. if cr != nil {
  17517. cr.sendContainerState(containerMapValue)
  17518. }
  17519. if dd.TryDecodeAsNil() {
  17520. if d.h.DeleteOnNilMapValue {
  17521. delete(v, mk)
  17522. } else {
  17523. v[mk] = 0
  17524. }
  17525. continue
  17526. }
  17527. mv = uint32(dd.DecodeUint(32))
  17528. if v != nil {
  17529. v[mk] = mv
  17530. }
  17531. }
  17532. if cr != nil {
  17533. cr.sendContainerState(containerMapEnd)
  17534. }
  17535. return v, changed
  17536. }
  17537. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  17538. if rv.Kind() == reflect.Ptr {
  17539. vp := rv2i(rv).(*map[interface{}]uint64)
  17540. if v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d); changed {
  17541. *vp = v
  17542. }
  17543. return
  17544. }
  17545. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  17546. }
  17547. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  17548. if v, changed := f.DecMapIntfUint64V(*vp, true, d); changed {
  17549. *vp = v
  17550. }
  17551. }
  17552. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  17553. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  17554. dd, cr := d.d, d.cr
  17555. containerLen := dd.ReadMapStart()
  17556. if canChange && v == nil {
  17557. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17558. v = make(map[interface{}]uint64, xlen)
  17559. changed = true
  17560. }
  17561. if containerLen == 0 {
  17562. if cr != nil {
  17563. cr.sendContainerState(containerMapEnd)
  17564. }
  17565. return v, changed
  17566. }
  17567. var mk interface{}
  17568. var mv uint64
  17569. hasLen := containerLen > 0
  17570. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17571. if cr != nil {
  17572. cr.sendContainerState(containerMapKey)
  17573. }
  17574. mk = nil
  17575. d.decode(&mk)
  17576. if bv, bok := mk.([]byte); bok {
  17577. mk = d.string(bv)
  17578. }
  17579. if cr != nil {
  17580. cr.sendContainerState(containerMapValue)
  17581. }
  17582. if dd.TryDecodeAsNil() {
  17583. if d.h.DeleteOnNilMapValue {
  17584. delete(v, mk)
  17585. } else {
  17586. v[mk] = 0
  17587. }
  17588. continue
  17589. }
  17590. mv = dd.DecodeUint(64)
  17591. if v != nil {
  17592. v[mk] = mv
  17593. }
  17594. }
  17595. if cr != nil {
  17596. cr.sendContainerState(containerMapEnd)
  17597. }
  17598. return v, changed
  17599. }
  17600. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  17601. if rv.Kind() == reflect.Ptr {
  17602. vp := rv2i(rv).(*map[interface{}]uintptr)
  17603. if v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d); changed {
  17604. *vp = v
  17605. }
  17606. return
  17607. }
  17608. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  17609. }
  17610. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  17611. if v, changed := f.DecMapIntfUintptrV(*vp, true, d); changed {
  17612. *vp = v
  17613. }
  17614. }
  17615. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  17616. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  17617. dd, cr := d.d, d.cr
  17618. containerLen := dd.ReadMapStart()
  17619. if canChange && v == nil {
  17620. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17621. v = make(map[interface{}]uintptr, xlen)
  17622. changed = true
  17623. }
  17624. if containerLen == 0 {
  17625. if cr != nil {
  17626. cr.sendContainerState(containerMapEnd)
  17627. }
  17628. return v, changed
  17629. }
  17630. var mk interface{}
  17631. var mv uintptr
  17632. hasLen := containerLen > 0
  17633. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17634. if cr != nil {
  17635. cr.sendContainerState(containerMapKey)
  17636. }
  17637. mk = nil
  17638. d.decode(&mk)
  17639. if bv, bok := mk.([]byte); bok {
  17640. mk = d.string(bv)
  17641. }
  17642. if cr != nil {
  17643. cr.sendContainerState(containerMapValue)
  17644. }
  17645. if dd.TryDecodeAsNil() {
  17646. if d.h.DeleteOnNilMapValue {
  17647. delete(v, mk)
  17648. } else {
  17649. v[mk] = 0
  17650. }
  17651. continue
  17652. }
  17653. mv = uintptr(dd.DecodeUint(uintBitsize))
  17654. if v != nil {
  17655. v[mk] = mv
  17656. }
  17657. }
  17658. if cr != nil {
  17659. cr.sendContainerState(containerMapEnd)
  17660. }
  17661. return v, changed
  17662. }
  17663. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  17664. if rv.Kind() == reflect.Ptr {
  17665. vp := rv2i(rv).(*map[interface{}]int)
  17666. if v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d); changed {
  17667. *vp = v
  17668. }
  17669. return
  17670. }
  17671. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  17672. }
  17673. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  17674. if v, changed := f.DecMapIntfIntV(*vp, true, d); changed {
  17675. *vp = v
  17676. }
  17677. }
  17678. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  17679. d *Decoder) (_ map[interface{}]int, changed bool) {
  17680. dd, cr := d.d, d.cr
  17681. containerLen := dd.ReadMapStart()
  17682. if canChange && v == nil {
  17683. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17684. v = make(map[interface{}]int, xlen)
  17685. changed = true
  17686. }
  17687. if containerLen == 0 {
  17688. if cr != nil {
  17689. cr.sendContainerState(containerMapEnd)
  17690. }
  17691. return v, changed
  17692. }
  17693. var mk interface{}
  17694. var mv int
  17695. hasLen := containerLen > 0
  17696. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17697. if cr != nil {
  17698. cr.sendContainerState(containerMapKey)
  17699. }
  17700. mk = nil
  17701. d.decode(&mk)
  17702. if bv, bok := mk.([]byte); bok {
  17703. mk = d.string(bv)
  17704. }
  17705. if cr != nil {
  17706. cr.sendContainerState(containerMapValue)
  17707. }
  17708. if dd.TryDecodeAsNil() {
  17709. if d.h.DeleteOnNilMapValue {
  17710. delete(v, mk)
  17711. } else {
  17712. v[mk] = 0
  17713. }
  17714. continue
  17715. }
  17716. mv = int(dd.DecodeInt(intBitsize))
  17717. if v != nil {
  17718. v[mk] = mv
  17719. }
  17720. }
  17721. if cr != nil {
  17722. cr.sendContainerState(containerMapEnd)
  17723. }
  17724. return v, changed
  17725. }
  17726. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  17727. if rv.Kind() == reflect.Ptr {
  17728. vp := rv2i(rv).(*map[interface{}]int8)
  17729. if v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d); changed {
  17730. *vp = v
  17731. }
  17732. return
  17733. }
  17734. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  17735. }
  17736. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  17737. if v, changed := f.DecMapIntfInt8V(*vp, true, d); changed {
  17738. *vp = v
  17739. }
  17740. }
  17741. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  17742. d *Decoder) (_ map[interface{}]int8, changed bool) {
  17743. dd, cr := d.d, d.cr
  17744. containerLen := dd.ReadMapStart()
  17745. if canChange && v == nil {
  17746. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  17747. v = make(map[interface{}]int8, xlen)
  17748. changed = true
  17749. }
  17750. if containerLen == 0 {
  17751. if cr != nil {
  17752. cr.sendContainerState(containerMapEnd)
  17753. }
  17754. return v, changed
  17755. }
  17756. var mk interface{}
  17757. var mv int8
  17758. hasLen := containerLen > 0
  17759. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17760. if cr != nil {
  17761. cr.sendContainerState(containerMapKey)
  17762. }
  17763. mk = nil
  17764. d.decode(&mk)
  17765. if bv, bok := mk.([]byte); bok {
  17766. mk = d.string(bv)
  17767. }
  17768. if cr != nil {
  17769. cr.sendContainerState(containerMapValue)
  17770. }
  17771. if dd.TryDecodeAsNil() {
  17772. if d.h.DeleteOnNilMapValue {
  17773. delete(v, mk)
  17774. } else {
  17775. v[mk] = 0
  17776. }
  17777. continue
  17778. }
  17779. mv = int8(dd.DecodeInt(8))
  17780. if v != nil {
  17781. v[mk] = mv
  17782. }
  17783. }
  17784. if cr != nil {
  17785. cr.sendContainerState(containerMapEnd)
  17786. }
  17787. return v, changed
  17788. }
  17789. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  17790. if rv.Kind() == reflect.Ptr {
  17791. vp := rv2i(rv).(*map[interface{}]int16)
  17792. if v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d); changed {
  17793. *vp = v
  17794. }
  17795. return
  17796. }
  17797. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  17798. }
  17799. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  17800. if v, changed := f.DecMapIntfInt16V(*vp, true, d); changed {
  17801. *vp = v
  17802. }
  17803. }
  17804. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  17805. d *Decoder) (_ map[interface{}]int16, changed bool) {
  17806. dd, cr := d.d, d.cr
  17807. containerLen := dd.ReadMapStart()
  17808. if canChange && v == nil {
  17809. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  17810. v = make(map[interface{}]int16, xlen)
  17811. changed = true
  17812. }
  17813. if containerLen == 0 {
  17814. if cr != nil {
  17815. cr.sendContainerState(containerMapEnd)
  17816. }
  17817. return v, changed
  17818. }
  17819. var mk interface{}
  17820. var mv int16
  17821. hasLen := containerLen > 0
  17822. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17823. if cr != nil {
  17824. cr.sendContainerState(containerMapKey)
  17825. }
  17826. mk = nil
  17827. d.decode(&mk)
  17828. if bv, bok := mk.([]byte); bok {
  17829. mk = d.string(bv)
  17830. }
  17831. if cr != nil {
  17832. cr.sendContainerState(containerMapValue)
  17833. }
  17834. if dd.TryDecodeAsNil() {
  17835. if d.h.DeleteOnNilMapValue {
  17836. delete(v, mk)
  17837. } else {
  17838. v[mk] = 0
  17839. }
  17840. continue
  17841. }
  17842. mv = int16(dd.DecodeInt(16))
  17843. if v != nil {
  17844. v[mk] = mv
  17845. }
  17846. }
  17847. if cr != nil {
  17848. cr.sendContainerState(containerMapEnd)
  17849. }
  17850. return v, changed
  17851. }
  17852. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  17853. if rv.Kind() == reflect.Ptr {
  17854. vp := rv2i(rv).(*map[interface{}]int32)
  17855. if v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d); changed {
  17856. *vp = v
  17857. }
  17858. return
  17859. }
  17860. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  17861. }
  17862. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  17863. if v, changed := f.DecMapIntfInt32V(*vp, true, d); changed {
  17864. *vp = v
  17865. }
  17866. }
  17867. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  17868. d *Decoder) (_ map[interface{}]int32, changed bool) {
  17869. dd, cr := d.d, d.cr
  17870. containerLen := dd.ReadMapStart()
  17871. if canChange && v == nil {
  17872. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17873. v = make(map[interface{}]int32, xlen)
  17874. changed = true
  17875. }
  17876. if containerLen == 0 {
  17877. if cr != nil {
  17878. cr.sendContainerState(containerMapEnd)
  17879. }
  17880. return v, changed
  17881. }
  17882. var mk interface{}
  17883. var mv int32
  17884. hasLen := containerLen > 0
  17885. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17886. if cr != nil {
  17887. cr.sendContainerState(containerMapKey)
  17888. }
  17889. mk = nil
  17890. d.decode(&mk)
  17891. if bv, bok := mk.([]byte); bok {
  17892. mk = d.string(bv)
  17893. }
  17894. if cr != nil {
  17895. cr.sendContainerState(containerMapValue)
  17896. }
  17897. if dd.TryDecodeAsNil() {
  17898. if d.h.DeleteOnNilMapValue {
  17899. delete(v, mk)
  17900. } else {
  17901. v[mk] = 0
  17902. }
  17903. continue
  17904. }
  17905. mv = int32(dd.DecodeInt(32))
  17906. if v != nil {
  17907. v[mk] = mv
  17908. }
  17909. }
  17910. if cr != nil {
  17911. cr.sendContainerState(containerMapEnd)
  17912. }
  17913. return v, changed
  17914. }
  17915. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  17916. if rv.Kind() == reflect.Ptr {
  17917. vp := rv2i(rv).(*map[interface{}]int64)
  17918. if v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d); changed {
  17919. *vp = v
  17920. }
  17921. return
  17922. }
  17923. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  17924. }
  17925. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  17926. if v, changed := f.DecMapIntfInt64V(*vp, true, d); changed {
  17927. *vp = v
  17928. }
  17929. }
  17930. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  17931. d *Decoder) (_ map[interface{}]int64, changed bool) {
  17932. dd, cr := d.d, d.cr
  17933. containerLen := dd.ReadMapStart()
  17934. if canChange && v == nil {
  17935. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17936. v = make(map[interface{}]int64, xlen)
  17937. changed = true
  17938. }
  17939. if containerLen == 0 {
  17940. if cr != nil {
  17941. cr.sendContainerState(containerMapEnd)
  17942. }
  17943. return v, changed
  17944. }
  17945. var mk interface{}
  17946. var mv int64
  17947. hasLen := containerLen > 0
  17948. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  17949. if cr != nil {
  17950. cr.sendContainerState(containerMapKey)
  17951. }
  17952. mk = nil
  17953. d.decode(&mk)
  17954. if bv, bok := mk.([]byte); bok {
  17955. mk = d.string(bv)
  17956. }
  17957. if cr != nil {
  17958. cr.sendContainerState(containerMapValue)
  17959. }
  17960. if dd.TryDecodeAsNil() {
  17961. if d.h.DeleteOnNilMapValue {
  17962. delete(v, mk)
  17963. } else {
  17964. v[mk] = 0
  17965. }
  17966. continue
  17967. }
  17968. mv = dd.DecodeInt(64)
  17969. if v != nil {
  17970. v[mk] = mv
  17971. }
  17972. }
  17973. if cr != nil {
  17974. cr.sendContainerState(containerMapEnd)
  17975. }
  17976. return v, changed
  17977. }
  17978. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  17979. if rv.Kind() == reflect.Ptr {
  17980. vp := rv2i(rv).(*map[interface{}]float32)
  17981. if v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d); changed {
  17982. *vp = v
  17983. }
  17984. return
  17985. }
  17986. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  17987. }
  17988. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  17989. if v, changed := f.DecMapIntfFloat32V(*vp, true, d); changed {
  17990. *vp = v
  17991. }
  17992. }
  17993. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  17994. d *Decoder) (_ map[interface{}]float32, changed bool) {
  17995. dd, cr := d.d, d.cr
  17996. containerLen := dd.ReadMapStart()
  17997. if canChange && v == nil {
  17998. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  17999. v = make(map[interface{}]float32, xlen)
  18000. changed = true
  18001. }
  18002. if containerLen == 0 {
  18003. if cr != nil {
  18004. cr.sendContainerState(containerMapEnd)
  18005. }
  18006. return v, changed
  18007. }
  18008. var mk interface{}
  18009. var mv float32
  18010. hasLen := containerLen > 0
  18011. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18012. if cr != nil {
  18013. cr.sendContainerState(containerMapKey)
  18014. }
  18015. mk = nil
  18016. d.decode(&mk)
  18017. if bv, bok := mk.([]byte); bok {
  18018. mk = d.string(bv)
  18019. }
  18020. if cr != nil {
  18021. cr.sendContainerState(containerMapValue)
  18022. }
  18023. if dd.TryDecodeAsNil() {
  18024. if d.h.DeleteOnNilMapValue {
  18025. delete(v, mk)
  18026. } else {
  18027. v[mk] = 0
  18028. }
  18029. continue
  18030. }
  18031. mv = float32(dd.DecodeFloat(true))
  18032. if v != nil {
  18033. v[mk] = mv
  18034. }
  18035. }
  18036. if cr != nil {
  18037. cr.sendContainerState(containerMapEnd)
  18038. }
  18039. return v, changed
  18040. }
  18041. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  18042. if rv.Kind() == reflect.Ptr {
  18043. vp := rv2i(rv).(*map[interface{}]float64)
  18044. if v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d); changed {
  18045. *vp = v
  18046. }
  18047. return
  18048. }
  18049. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  18050. }
  18051. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  18052. if v, changed := f.DecMapIntfFloat64V(*vp, true, d); changed {
  18053. *vp = v
  18054. }
  18055. }
  18056. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  18057. d *Decoder) (_ map[interface{}]float64, changed bool) {
  18058. dd, cr := d.d, d.cr
  18059. containerLen := dd.ReadMapStart()
  18060. if canChange && v == nil {
  18061. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18062. v = make(map[interface{}]float64, xlen)
  18063. changed = true
  18064. }
  18065. if containerLen == 0 {
  18066. if cr != nil {
  18067. cr.sendContainerState(containerMapEnd)
  18068. }
  18069. return v, changed
  18070. }
  18071. var mk interface{}
  18072. var mv float64
  18073. hasLen := containerLen > 0
  18074. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18075. if cr != nil {
  18076. cr.sendContainerState(containerMapKey)
  18077. }
  18078. mk = nil
  18079. d.decode(&mk)
  18080. if bv, bok := mk.([]byte); bok {
  18081. mk = d.string(bv)
  18082. }
  18083. if cr != nil {
  18084. cr.sendContainerState(containerMapValue)
  18085. }
  18086. if dd.TryDecodeAsNil() {
  18087. if d.h.DeleteOnNilMapValue {
  18088. delete(v, mk)
  18089. } else {
  18090. v[mk] = 0
  18091. }
  18092. continue
  18093. }
  18094. mv = dd.DecodeFloat(false)
  18095. if v != nil {
  18096. v[mk] = mv
  18097. }
  18098. }
  18099. if cr != nil {
  18100. cr.sendContainerState(containerMapEnd)
  18101. }
  18102. return v, changed
  18103. }
  18104. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  18105. if rv.Kind() == reflect.Ptr {
  18106. vp := rv2i(rv).(*map[interface{}]bool)
  18107. if v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d); changed {
  18108. *vp = v
  18109. }
  18110. return
  18111. }
  18112. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  18113. }
  18114. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  18115. if v, changed := f.DecMapIntfBoolV(*vp, true, d); changed {
  18116. *vp = v
  18117. }
  18118. }
  18119. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  18120. d *Decoder) (_ map[interface{}]bool, changed bool) {
  18121. dd, cr := d.d, d.cr
  18122. containerLen := dd.ReadMapStart()
  18123. if canChange && v == nil {
  18124. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18125. v = make(map[interface{}]bool, xlen)
  18126. changed = true
  18127. }
  18128. if containerLen == 0 {
  18129. if cr != nil {
  18130. cr.sendContainerState(containerMapEnd)
  18131. }
  18132. return v, changed
  18133. }
  18134. var mk interface{}
  18135. var mv bool
  18136. hasLen := containerLen > 0
  18137. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18138. if cr != nil {
  18139. cr.sendContainerState(containerMapKey)
  18140. }
  18141. mk = nil
  18142. d.decode(&mk)
  18143. if bv, bok := mk.([]byte); bok {
  18144. mk = d.string(bv)
  18145. }
  18146. if cr != nil {
  18147. cr.sendContainerState(containerMapValue)
  18148. }
  18149. if dd.TryDecodeAsNil() {
  18150. if d.h.DeleteOnNilMapValue {
  18151. delete(v, mk)
  18152. } else {
  18153. v[mk] = false
  18154. }
  18155. continue
  18156. }
  18157. mv = dd.DecodeBool()
  18158. if v != nil {
  18159. v[mk] = mv
  18160. }
  18161. }
  18162. if cr != nil {
  18163. cr.sendContainerState(containerMapEnd)
  18164. }
  18165. return v, changed
  18166. }
  18167. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  18168. if rv.Kind() == reflect.Ptr {
  18169. vp := rv2i(rv).(*map[string]interface{})
  18170. if v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d); changed {
  18171. *vp = v
  18172. }
  18173. return
  18174. }
  18175. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  18176. }
  18177. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  18178. if v, changed := f.DecMapStringIntfV(*vp, true, d); changed {
  18179. *vp = v
  18180. }
  18181. }
  18182. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  18183. d *Decoder) (_ map[string]interface{}, changed bool) {
  18184. dd, cr := d.d, d.cr
  18185. containerLen := dd.ReadMapStart()
  18186. if canChange && v == nil {
  18187. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18188. v = make(map[string]interface{}, xlen)
  18189. changed = true
  18190. }
  18191. if containerLen == 0 {
  18192. if cr != nil {
  18193. cr.sendContainerState(containerMapEnd)
  18194. }
  18195. return v, changed
  18196. }
  18197. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  18198. var mk string
  18199. var mv interface{}
  18200. hasLen := containerLen > 0
  18201. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18202. if cr != nil {
  18203. cr.sendContainerState(containerMapKey)
  18204. }
  18205. mk = dd.DecodeString()
  18206. if cr != nil {
  18207. cr.sendContainerState(containerMapValue)
  18208. }
  18209. if dd.TryDecodeAsNil() {
  18210. if d.h.DeleteOnNilMapValue {
  18211. delete(v, mk)
  18212. } else {
  18213. v[mk] = nil
  18214. }
  18215. continue
  18216. }
  18217. if mapGet {
  18218. mv = v[mk]
  18219. } else {
  18220. mv = nil
  18221. }
  18222. d.decode(&mv)
  18223. if v != nil {
  18224. v[mk] = mv
  18225. }
  18226. }
  18227. if cr != nil {
  18228. cr.sendContainerState(containerMapEnd)
  18229. }
  18230. return v, changed
  18231. }
  18232. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  18233. if rv.Kind() == reflect.Ptr {
  18234. vp := rv2i(rv).(*map[string]string)
  18235. if v, changed := fastpathTV.DecMapStringStringV(*vp, true, d); changed {
  18236. *vp = v
  18237. }
  18238. return
  18239. }
  18240. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  18241. }
  18242. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  18243. if v, changed := f.DecMapStringStringV(*vp, true, d); changed {
  18244. *vp = v
  18245. }
  18246. }
  18247. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  18248. d *Decoder) (_ map[string]string, changed bool) {
  18249. dd, cr := d.d, d.cr
  18250. containerLen := dd.ReadMapStart()
  18251. if canChange && v == nil {
  18252. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18253. v = make(map[string]string, xlen)
  18254. changed = true
  18255. }
  18256. if containerLen == 0 {
  18257. if cr != nil {
  18258. cr.sendContainerState(containerMapEnd)
  18259. }
  18260. return v, changed
  18261. }
  18262. var mk string
  18263. var mv string
  18264. hasLen := containerLen > 0
  18265. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18266. if cr != nil {
  18267. cr.sendContainerState(containerMapKey)
  18268. }
  18269. mk = dd.DecodeString()
  18270. if cr != nil {
  18271. cr.sendContainerState(containerMapValue)
  18272. }
  18273. if dd.TryDecodeAsNil() {
  18274. if d.h.DeleteOnNilMapValue {
  18275. delete(v, mk)
  18276. } else {
  18277. v[mk] = ""
  18278. }
  18279. continue
  18280. }
  18281. mv = dd.DecodeString()
  18282. if v != nil {
  18283. v[mk] = mv
  18284. }
  18285. }
  18286. if cr != nil {
  18287. cr.sendContainerState(containerMapEnd)
  18288. }
  18289. return v, changed
  18290. }
  18291. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  18292. if rv.Kind() == reflect.Ptr {
  18293. vp := rv2i(rv).(*map[string]uint)
  18294. if v, changed := fastpathTV.DecMapStringUintV(*vp, true, d); changed {
  18295. *vp = v
  18296. }
  18297. return
  18298. }
  18299. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  18300. }
  18301. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  18302. if v, changed := f.DecMapStringUintV(*vp, true, d); changed {
  18303. *vp = v
  18304. }
  18305. }
  18306. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  18307. d *Decoder) (_ map[string]uint, changed bool) {
  18308. dd, cr := d.d, d.cr
  18309. containerLen := dd.ReadMapStart()
  18310. if canChange && v == nil {
  18311. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18312. v = make(map[string]uint, xlen)
  18313. changed = true
  18314. }
  18315. if containerLen == 0 {
  18316. if cr != nil {
  18317. cr.sendContainerState(containerMapEnd)
  18318. }
  18319. return v, changed
  18320. }
  18321. var mk string
  18322. var mv uint
  18323. hasLen := containerLen > 0
  18324. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18325. if cr != nil {
  18326. cr.sendContainerState(containerMapKey)
  18327. }
  18328. mk = dd.DecodeString()
  18329. if cr != nil {
  18330. cr.sendContainerState(containerMapValue)
  18331. }
  18332. if dd.TryDecodeAsNil() {
  18333. if d.h.DeleteOnNilMapValue {
  18334. delete(v, mk)
  18335. } else {
  18336. v[mk] = 0
  18337. }
  18338. continue
  18339. }
  18340. mv = uint(dd.DecodeUint(uintBitsize))
  18341. if v != nil {
  18342. v[mk] = mv
  18343. }
  18344. }
  18345. if cr != nil {
  18346. cr.sendContainerState(containerMapEnd)
  18347. }
  18348. return v, changed
  18349. }
  18350. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  18351. if rv.Kind() == reflect.Ptr {
  18352. vp := rv2i(rv).(*map[string]uint8)
  18353. if v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d); changed {
  18354. *vp = v
  18355. }
  18356. return
  18357. }
  18358. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  18359. }
  18360. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  18361. if v, changed := f.DecMapStringUint8V(*vp, true, d); changed {
  18362. *vp = v
  18363. }
  18364. }
  18365. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  18366. d *Decoder) (_ map[string]uint8, changed bool) {
  18367. dd, cr := d.d, d.cr
  18368. containerLen := dd.ReadMapStart()
  18369. if canChange && v == nil {
  18370. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18371. v = make(map[string]uint8, xlen)
  18372. changed = true
  18373. }
  18374. if containerLen == 0 {
  18375. if cr != nil {
  18376. cr.sendContainerState(containerMapEnd)
  18377. }
  18378. return v, changed
  18379. }
  18380. var mk string
  18381. var mv uint8
  18382. hasLen := containerLen > 0
  18383. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18384. if cr != nil {
  18385. cr.sendContainerState(containerMapKey)
  18386. }
  18387. mk = dd.DecodeString()
  18388. if cr != nil {
  18389. cr.sendContainerState(containerMapValue)
  18390. }
  18391. if dd.TryDecodeAsNil() {
  18392. if d.h.DeleteOnNilMapValue {
  18393. delete(v, mk)
  18394. } else {
  18395. v[mk] = 0
  18396. }
  18397. continue
  18398. }
  18399. mv = uint8(dd.DecodeUint(8))
  18400. if v != nil {
  18401. v[mk] = mv
  18402. }
  18403. }
  18404. if cr != nil {
  18405. cr.sendContainerState(containerMapEnd)
  18406. }
  18407. return v, changed
  18408. }
  18409. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  18410. if rv.Kind() == reflect.Ptr {
  18411. vp := rv2i(rv).(*map[string]uint16)
  18412. if v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d); changed {
  18413. *vp = v
  18414. }
  18415. return
  18416. }
  18417. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  18418. }
  18419. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  18420. if v, changed := f.DecMapStringUint16V(*vp, true, d); changed {
  18421. *vp = v
  18422. }
  18423. }
  18424. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  18425. d *Decoder) (_ map[string]uint16, changed bool) {
  18426. dd, cr := d.d, d.cr
  18427. containerLen := dd.ReadMapStart()
  18428. if canChange && v == nil {
  18429. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  18430. v = make(map[string]uint16, xlen)
  18431. changed = true
  18432. }
  18433. if containerLen == 0 {
  18434. if cr != nil {
  18435. cr.sendContainerState(containerMapEnd)
  18436. }
  18437. return v, changed
  18438. }
  18439. var mk string
  18440. var mv uint16
  18441. hasLen := containerLen > 0
  18442. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18443. if cr != nil {
  18444. cr.sendContainerState(containerMapKey)
  18445. }
  18446. mk = dd.DecodeString()
  18447. if cr != nil {
  18448. cr.sendContainerState(containerMapValue)
  18449. }
  18450. if dd.TryDecodeAsNil() {
  18451. if d.h.DeleteOnNilMapValue {
  18452. delete(v, mk)
  18453. } else {
  18454. v[mk] = 0
  18455. }
  18456. continue
  18457. }
  18458. mv = uint16(dd.DecodeUint(16))
  18459. if v != nil {
  18460. v[mk] = mv
  18461. }
  18462. }
  18463. if cr != nil {
  18464. cr.sendContainerState(containerMapEnd)
  18465. }
  18466. return v, changed
  18467. }
  18468. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  18469. if rv.Kind() == reflect.Ptr {
  18470. vp := rv2i(rv).(*map[string]uint32)
  18471. if v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d); changed {
  18472. *vp = v
  18473. }
  18474. return
  18475. }
  18476. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  18477. }
  18478. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  18479. if v, changed := f.DecMapStringUint32V(*vp, true, d); changed {
  18480. *vp = v
  18481. }
  18482. }
  18483. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  18484. d *Decoder) (_ map[string]uint32, changed bool) {
  18485. dd, cr := d.d, d.cr
  18486. containerLen := dd.ReadMapStart()
  18487. if canChange && v == nil {
  18488. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18489. v = make(map[string]uint32, xlen)
  18490. changed = true
  18491. }
  18492. if containerLen == 0 {
  18493. if cr != nil {
  18494. cr.sendContainerState(containerMapEnd)
  18495. }
  18496. return v, changed
  18497. }
  18498. var mk string
  18499. var mv uint32
  18500. hasLen := containerLen > 0
  18501. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18502. if cr != nil {
  18503. cr.sendContainerState(containerMapKey)
  18504. }
  18505. mk = dd.DecodeString()
  18506. if cr != nil {
  18507. cr.sendContainerState(containerMapValue)
  18508. }
  18509. if dd.TryDecodeAsNil() {
  18510. if d.h.DeleteOnNilMapValue {
  18511. delete(v, mk)
  18512. } else {
  18513. v[mk] = 0
  18514. }
  18515. continue
  18516. }
  18517. mv = uint32(dd.DecodeUint(32))
  18518. if v != nil {
  18519. v[mk] = mv
  18520. }
  18521. }
  18522. if cr != nil {
  18523. cr.sendContainerState(containerMapEnd)
  18524. }
  18525. return v, changed
  18526. }
  18527. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  18528. if rv.Kind() == reflect.Ptr {
  18529. vp := rv2i(rv).(*map[string]uint64)
  18530. if v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d); changed {
  18531. *vp = v
  18532. }
  18533. return
  18534. }
  18535. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  18536. }
  18537. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  18538. if v, changed := f.DecMapStringUint64V(*vp, true, d); changed {
  18539. *vp = v
  18540. }
  18541. }
  18542. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  18543. d *Decoder) (_ map[string]uint64, changed bool) {
  18544. dd, cr := d.d, d.cr
  18545. containerLen := dd.ReadMapStart()
  18546. if canChange && v == nil {
  18547. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18548. v = make(map[string]uint64, xlen)
  18549. changed = true
  18550. }
  18551. if containerLen == 0 {
  18552. if cr != nil {
  18553. cr.sendContainerState(containerMapEnd)
  18554. }
  18555. return v, changed
  18556. }
  18557. var mk string
  18558. var mv uint64
  18559. hasLen := containerLen > 0
  18560. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18561. if cr != nil {
  18562. cr.sendContainerState(containerMapKey)
  18563. }
  18564. mk = dd.DecodeString()
  18565. if cr != nil {
  18566. cr.sendContainerState(containerMapValue)
  18567. }
  18568. if dd.TryDecodeAsNil() {
  18569. if d.h.DeleteOnNilMapValue {
  18570. delete(v, mk)
  18571. } else {
  18572. v[mk] = 0
  18573. }
  18574. continue
  18575. }
  18576. mv = dd.DecodeUint(64)
  18577. if v != nil {
  18578. v[mk] = mv
  18579. }
  18580. }
  18581. if cr != nil {
  18582. cr.sendContainerState(containerMapEnd)
  18583. }
  18584. return v, changed
  18585. }
  18586. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  18587. if rv.Kind() == reflect.Ptr {
  18588. vp := rv2i(rv).(*map[string]uintptr)
  18589. if v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d); changed {
  18590. *vp = v
  18591. }
  18592. return
  18593. }
  18594. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  18595. }
  18596. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  18597. if v, changed := f.DecMapStringUintptrV(*vp, true, d); changed {
  18598. *vp = v
  18599. }
  18600. }
  18601. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  18602. d *Decoder) (_ map[string]uintptr, changed bool) {
  18603. dd, cr := d.d, d.cr
  18604. containerLen := dd.ReadMapStart()
  18605. if canChange && v == nil {
  18606. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18607. v = make(map[string]uintptr, xlen)
  18608. changed = true
  18609. }
  18610. if containerLen == 0 {
  18611. if cr != nil {
  18612. cr.sendContainerState(containerMapEnd)
  18613. }
  18614. return v, changed
  18615. }
  18616. var mk string
  18617. var mv uintptr
  18618. hasLen := containerLen > 0
  18619. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18620. if cr != nil {
  18621. cr.sendContainerState(containerMapKey)
  18622. }
  18623. mk = dd.DecodeString()
  18624. if cr != nil {
  18625. cr.sendContainerState(containerMapValue)
  18626. }
  18627. if dd.TryDecodeAsNil() {
  18628. if d.h.DeleteOnNilMapValue {
  18629. delete(v, mk)
  18630. } else {
  18631. v[mk] = 0
  18632. }
  18633. continue
  18634. }
  18635. mv = uintptr(dd.DecodeUint(uintBitsize))
  18636. if v != nil {
  18637. v[mk] = mv
  18638. }
  18639. }
  18640. if cr != nil {
  18641. cr.sendContainerState(containerMapEnd)
  18642. }
  18643. return v, changed
  18644. }
  18645. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  18646. if rv.Kind() == reflect.Ptr {
  18647. vp := rv2i(rv).(*map[string]int)
  18648. if v, changed := fastpathTV.DecMapStringIntV(*vp, true, d); changed {
  18649. *vp = v
  18650. }
  18651. return
  18652. }
  18653. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  18654. }
  18655. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  18656. if v, changed := f.DecMapStringIntV(*vp, true, d); changed {
  18657. *vp = v
  18658. }
  18659. }
  18660. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  18661. d *Decoder) (_ map[string]int, changed bool) {
  18662. dd, cr := d.d, d.cr
  18663. containerLen := dd.ReadMapStart()
  18664. if canChange && v == nil {
  18665. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18666. v = make(map[string]int, xlen)
  18667. changed = true
  18668. }
  18669. if containerLen == 0 {
  18670. if cr != nil {
  18671. cr.sendContainerState(containerMapEnd)
  18672. }
  18673. return v, changed
  18674. }
  18675. var mk string
  18676. var mv int
  18677. hasLen := containerLen > 0
  18678. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18679. if cr != nil {
  18680. cr.sendContainerState(containerMapKey)
  18681. }
  18682. mk = dd.DecodeString()
  18683. if cr != nil {
  18684. cr.sendContainerState(containerMapValue)
  18685. }
  18686. if dd.TryDecodeAsNil() {
  18687. if d.h.DeleteOnNilMapValue {
  18688. delete(v, mk)
  18689. } else {
  18690. v[mk] = 0
  18691. }
  18692. continue
  18693. }
  18694. mv = int(dd.DecodeInt(intBitsize))
  18695. if v != nil {
  18696. v[mk] = mv
  18697. }
  18698. }
  18699. if cr != nil {
  18700. cr.sendContainerState(containerMapEnd)
  18701. }
  18702. return v, changed
  18703. }
  18704. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  18705. if rv.Kind() == reflect.Ptr {
  18706. vp := rv2i(rv).(*map[string]int8)
  18707. if v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d); changed {
  18708. *vp = v
  18709. }
  18710. return
  18711. }
  18712. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  18713. }
  18714. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  18715. if v, changed := f.DecMapStringInt8V(*vp, true, d); changed {
  18716. *vp = v
  18717. }
  18718. }
  18719. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  18720. d *Decoder) (_ map[string]int8, changed bool) {
  18721. dd, cr := d.d, d.cr
  18722. containerLen := dd.ReadMapStart()
  18723. if canChange && v == nil {
  18724. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18725. v = make(map[string]int8, xlen)
  18726. changed = true
  18727. }
  18728. if containerLen == 0 {
  18729. if cr != nil {
  18730. cr.sendContainerState(containerMapEnd)
  18731. }
  18732. return v, changed
  18733. }
  18734. var mk string
  18735. var mv int8
  18736. hasLen := containerLen > 0
  18737. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18738. if cr != nil {
  18739. cr.sendContainerState(containerMapKey)
  18740. }
  18741. mk = dd.DecodeString()
  18742. if cr != nil {
  18743. cr.sendContainerState(containerMapValue)
  18744. }
  18745. if dd.TryDecodeAsNil() {
  18746. if d.h.DeleteOnNilMapValue {
  18747. delete(v, mk)
  18748. } else {
  18749. v[mk] = 0
  18750. }
  18751. continue
  18752. }
  18753. mv = int8(dd.DecodeInt(8))
  18754. if v != nil {
  18755. v[mk] = mv
  18756. }
  18757. }
  18758. if cr != nil {
  18759. cr.sendContainerState(containerMapEnd)
  18760. }
  18761. return v, changed
  18762. }
  18763. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  18764. if rv.Kind() == reflect.Ptr {
  18765. vp := rv2i(rv).(*map[string]int16)
  18766. if v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d); changed {
  18767. *vp = v
  18768. }
  18769. return
  18770. }
  18771. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  18772. }
  18773. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  18774. if v, changed := f.DecMapStringInt16V(*vp, true, d); changed {
  18775. *vp = v
  18776. }
  18777. }
  18778. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  18779. d *Decoder) (_ map[string]int16, changed bool) {
  18780. dd, cr := d.d, d.cr
  18781. containerLen := dd.ReadMapStart()
  18782. if canChange && v == nil {
  18783. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  18784. v = make(map[string]int16, xlen)
  18785. changed = true
  18786. }
  18787. if containerLen == 0 {
  18788. if cr != nil {
  18789. cr.sendContainerState(containerMapEnd)
  18790. }
  18791. return v, changed
  18792. }
  18793. var mk string
  18794. var mv int16
  18795. hasLen := containerLen > 0
  18796. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18797. if cr != nil {
  18798. cr.sendContainerState(containerMapKey)
  18799. }
  18800. mk = dd.DecodeString()
  18801. if cr != nil {
  18802. cr.sendContainerState(containerMapValue)
  18803. }
  18804. if dd.TryDecodeAsNil() {
  18805. if d.h.DeleteOnNilMapValue {
  18806. delete(v, mk)
  18807. } else {
  18808. v[mk] = 0
  18809. }
  18810. continue
  18811. }
  18812. mv = int16(dd.DecodeInt(16))
  18813. if v != nil {
  18814. v[mk] = mv
  18815. }
  18816. }
  18817. if cr != nil {
  18818. cr.sendContainerState(containerMapEnd)
  18819. }
  18820. return v, changed
  18821. }
  18822. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  18823. if rv.Kind() == reflect.Ptr {
  18824. vp := rv2i(rv).(*map[string]int32)
  18825. if v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d); changed {
  18826. *vp = v
  18827. }
  18828. return
  18829. }
  18830. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  18831. }
  18832. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  18833. if v, changed := f.DecMapStringInt32V(*vp, true, d); changed {
  18834. *vp = v
  18835. }
  18836. }
  18837. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  18838. d *Decoder) (_ map[string]int32, changed bool) {
  18839. dd, cr := d.d, d.cr
  18840. containerLen := dd.ReadMapStart()
  18841. if canChange && v == nil {
  18842. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18843. v = make(map[string]int32, xlen)
  18844. changed = true
  18845. }
  18846. if containerLen == 0 {
  18847. if cr != nil {
  18848. cr.sendContainerState(containerMapEnd)
  18849. }
  18850. return v, changed
  18851. }
  18852. var mk string
  18853. var mv int32
  18854. hasLen := containerLen > 0
  18855. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18856. if cr != nil {
  18857. cr.sendContainerState(containerMapKey)
  18858. }
  18859. mk = dd.DecodeString()
  18860. if cr != nil {
  18861. cr.sendContainerState(containerMapValue)
  18862. }
  18863. if dd.TryDecodeAsNil() {
  18864. if d.h.DeleteOnNilMapValue {
  18865. delete(v, mk)
  18866. } else {
  18867. v[mk] = 0
  18868. }
  18869. continue
  18870. }
  18871. mv = int32(dd.DecodeInt(32))
  18872. if v != nil {
  18873. v[mk] = mv
  18874. }
  18875. }
  18876. if cr != nil {
  18877. cr.sendContainerState(containerMapEnd)
  18878. }
  18879. return v, changed
  18880. }
  18881. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  18882. if rv.Kind() == reflect.Ptr {
  18883. vp := rv2i(rv).(*map[string]int64)
  18884. if v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d); changed {
  18885. *vp = v
  18886. }
  18887. return
  18888. }
  18889. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  18890. }
  18891. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  18892. if v, changed := f.DecMapStringInt64V(*vp, true, d); changed {
  18893. *vp = v
  18894. }
  18895. }
  18896. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  18897. d *Decoder) (_ map[string]int64, changed bool) {
  18898. dd, cr := d.d, d.cr
  18899. containerLen := dd.ReadMapStart()
  18900. if canChange && v == nil {
  18901. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  18902. v = make(map[string]int64, xlen)
  18903. changed = true
  18904. }
  18905. if containerLen == 0 {
  18906. if cr != nil {
  18907. cr.sendContainerState(containerMapEnd)
  18908. }
  18909. return v, changed
  18910. }
  18911. var mk string
  18912. var mv int64
  18913. hasLen := containerLen > 0
  18914. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18915. if cr != nil {
  18916. cr.sendContainerState(containerMapKey)
  18917. }
  18918. mk = dd.DecodeString()
  18919. if cr != nil {
  18920. cr.sendContainerState(containerMapValue)
  18921. }
  18922. if dd.TryDecodeAsNil() {
  18923. if d.h.DeleteOnNilMapValue {
  18924. delete(v, mk)
  18925. } else {
  18926. v[mk] = 0
  18927. }
  18928. continue
  18929. }
  18930. mv = dd.DecodeInt(64)
  18931. if v != nil {
  18932. v[mk] = mv
  18933. }
  18934. }
  18935. if cr != nil {
  18936. cr.sendContainerState(containerMapEnd)
  18937. }
  18938. return v, changed
  18939. }
  18940. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  18941. if rv.Kind() == reflect.Ptr {
  18942. vp := rv2i(rv).(*map[string]float32)
  18943. if v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d); changed {
  18944. *vp = v
  18945. }
  18946. return
  18947. }
  18948. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  18949. }
  18950. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  18951. if v, changed := f.DecMapStringFloat32V(*vp, true, d); changed {
  18952. *vp = v
  18953. }
  18954. }
  18955. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  18956. d *Decoder) (_ map[string]float32, changed bool) {
  18957. dd, cr := d.d, d.cr
  18958. containerLen := dd.ReadMapStart()
  18959. if canChange && v == nil {
  18960. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  18961. v = make(map[string]float32, xlen)
  18962. changed = true
  18963. }
  18964. if containerLen == 0 {
  18965. if cr != nil {
  18966. cr.sendContainerState(containerMapEnd)
  18967. }
  18968. return v, changed
  18969. }
  18970. var mk string
  18971. var mv float32
  18972. hasLen := containerLen > 0
  18973. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18974. if cr != nil {
  18975. cr.sendContainerState(containerMapKey)
  18976. }
  18977. mk = dd.DecodeString()
  18978. if cr != nil {
  18979. cr.sendContainerState(containerMapValue)
  18980. }
  18981. if dd.TryDecodeAsNil() {
  18982. if d.h.DeleteOnNilMapValue {
  18983. delete(v, mk)
  18984. } else {
  18985. v[mk] = 0
  18986. }
  18987. continue
  18988. }
  18989. mv = float32(dd.DecodeFloat(true))
  18990. if v != nil {
  18991. v[mk] = mv
  18992. }
  18993. }
  18994. if cr != nil {
  18995. cr.sendContainerState(containerMapEnd)
  18996. }
  18997. return v, changed
  18998. }
  18999. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  19000. if rv.Kind() == reflect.Ptr {
  19001. vp := rv2i(rv).(*map[string]float64)
  19002. if v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d); changed {
  19003. *vp = v
  19004. }
  19005. return
  19006. }
  19007. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  19008. }
  19009. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  19010. if v, changed := f.DecMapStringFloat64V(*vp, true, d); changed {
  19011. *vp = v
  19012. }
  19013. }
  19014. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  19015. d *Decoder) (_ map[string]float64, changed bool) {
  19016. dd, cr := d.d, d.cr
  19017. containerLen := dd.ReadMapStart()
  19018. if canChange && v == nil {
  19019. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19020. v = make(map[string]float64, xlen)
  19021. changed = true
  19022. }
  19023. if containerLen == 0 {
  19024. if cr != nil {
  19025. cr.sendContainerState(containerMapEnd)
  19026. }
  19027. return v, changed
  19028. }
  19029. var mk string
  19030. var mv float64
  19031. hasLen := containerLen > 0
  19032. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19033. if cr != nil {
  19034. cr.sendContainerState(containerMapKey)
  19035. }
  19036. mk = dd.DecodeString()
  19037. if cr != nil {
  19038. cr.sendContainerState(containerMapValue)
  19039. }
  19040. if dd.TryDecodeAsNil() {
  19041. if d.h.DeleteOnNilMapValue {
  19042. delete(v, mk)
  19043. } else {
  19044. v[mk] = 0
  19045. }
  19046. continue
  19047. }
  19048. mv = dd.DecodeFloat(false)
  19049. if v != nil {
  19050. v[mk] = mv
  19051. }
  19052. }
  19053. if cr != nil {
  19054. cr.sendContainerState(containerMapEnd)
  19055. }
  19056. return v, changed
  19057. }
  19058. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  19059. if rv.Kind() == reflect.Ptr {
  19060. vp := rv2i(rv).(*map[string]bool)
  19061. if v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d); changed {
  19062. *vp = v
  19063. }
  19064. return
  19065. }
  19066. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  19067. }
  19068. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  19069. if v, changed := f.DecMapStringBoolV(*vp, true, d); changed {
  19070. *vp = v
  19071. }
  19072. }
  19073. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  19074. d *Decoder) (_ map[string]bool, changed bool) {
  19075. dd, cr := d.d, d.cr
  19076. containerLen := dd.ReadMapStart()
  19077. if canChange && v == nil {
  19078. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19079. v = make(map[string]bool, xlen)
  19080. changed = true
  19081. }
  19082. if containerLen == 0 {
  19083. if cr != nil {
  19084. cr.sendContainerState(containerMapEnd)
  19085. }
  19086. return v, changed
  19087. }
  19088. var mk string
  19089. var mv bool
  19090. hasLen := containerLen > 0
  19091. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19092. if cr != nil {
  19093. cr.sendContainerState(containerMapKey)
  19094. }
  19095. mk = dd.DecodeString()
  19096. if cr != nil {
  19097. cr.sendContainerState(containerMapValue)
  19098. }
  19099. if dd.TryDecodeAsNil() {
  19100. if d.h.DeleteOnNilMapValue {
  19101. delete(v, mk)
  19102. } else {
  19103. v[mk] = false
  19104. }
  19105. continue
  19106. }
  19107. mv = dd.DecodeBool()
  19108. if v != nil {
  19109. v[mk] = mv
  19110. }
  19111. }
  19112. if cr != nil {
  19113. cr.sendContainerState(containerMapEnd)
  19114. }
  19115. return v, changed
  19116. }
  19117. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  19118. if rv.Kind() == reflect.Ptr {
  19119. vp := rv2i(rv).(*map[float32]interface{})
  19120. if v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d); changed {
  19121. *vp = v
  19122. }
  19123. return
  19124. }
  19125. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  19126. }
  19127. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  19128. if v, changed := f.DecMapFloat32IntfV(*vp, true, d); changed {
  19129. *vp = v
  19130. }
  19131. }
  19132. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  19133. d *Decoder) (_ map[float32]interface{}, changed bool) {
  19134. dd, cr := d.d, d.cr
  19135. containerLen := dd.ReadMapStart()
  19136. if canChange && v == nil {
  19137. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19138. v = make(map[float32]interface{}, xlen)
  19139. changed = true
  19140. }
  19141. if containerLen == 0 {
  19142. if cr != nil {
  19143. cr.sendContainerState(containerMapEnd)
  19144. }
  19145. return v, changed
  19146. }
  19147. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  19148. var mk float32
  19149. var mv interface{}
  19150. hasLen := containerLen > 0
  19151. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19152. if cr != nil {
  19153. cr.sendContainerState(containerMapKey)
  19154. }
  19155. mk = float32(dd.DecodeFloat(true))
  19156. if cr != nil {
  19157. cr.sendContainerState(containerMapValue)
  19158. }
  19159. if dd.TryDecodeAsNil() {
  19160. if d.h.DeleteOnNilMapValue {
  19161. delete(v, mk)
  19162. } else {
  19163. v[mk] = nil
  19164. }
  19165. continue
  19166. }
  19167. if mapGet {
  19168. mv = v[mk]
  19169. } else {
  19170. mv = nil
  19171. }
  19172. d.decode(&mv)
  19173. if v != nil {
  19174. v[mk] = mv
  19175. }
  19176. }
  19177. if cr != nil {
  19178. cr.sendContainerState(containerMapEnd)
  19179. }
  19180. return v, changed
  19181. }
  19182. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  19183. if rv.Kind() == reflect.Ptr {
  19184. vp := rv2i(rv).(*map[float32]string)
  19185. if v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d); changed {
  19186. *vp = v
  19187. }
  19188. return
  19189. }
  19190. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  19191. }
  19192. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  19193. if v, changed := f.DecMapFloat32StringV(*vp, true, d); changed {
  19194. *vp = v
  19195. }
  19196. }
  19197. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  19198. d *Decoder) (_ map[float32]string, changed bool) {
  19199. dd, cr := d.d, d.cr
  19200. containerLen := dd.ReadMapStart()
  19201. if canChange && v == nil {
  19202. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19203. v = make(map[float32]string, xlen)
  19204. changed = true
  19205. }
  19206. if containerLen == 0 {
  19207. if cr != nil {
  19208. cr.sendContainerState(containerMapEnd)
  19209. }
  19210. return v, changed
  19211. }
  19212. var mk float32
  19213. var mv string
  19214. hasLen := containerLen > 0
  19215. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19216. if cr != nil {
  19217. cr.sendContainerState(containerMapKey)
  19218. }
  19219. mk = float32(dd.DecodeFloat(true))
  19220. if cr != nil {
  19221. cr.sendContainerState(containerMapValue)
  19222. }
  19223. if dd.TryDecodeAsNil() {
  19224. if d.h.DeleteOnNilMapValue {
  19225. delete(v, mk)
  19226. } else {
  19227. v[mk] = ""
  19228. }
  19229. continue
  19230. }
  19231. mv = dd.DecodeString()
  19232. if v != nil {
  19233. v[mk] = mv
  19234. }
  19235. }
  19236. if cr != nil {
  19237. cr.sendContainerState(containerMapEnd)
  19238. }
  19239. return v, changed
  19240. }
  19241. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  19242. if rv.Kind() == reflect.Ptr {
  19243. vp := rv2i(rv).(*map[float32]uint)
  19244. if v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d); changed {
  19245. *vp = v
  19246. }
  19247. return
  19248. }
  19249. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  19250. }
  19251. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  19252. if v, changed := f.DecMapFloat32UintV(*vp, true, d); changed {
  19253. *vp = v
  19254. }
  19255. }
  19256. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  19257. d *Decoder) (_ map[float32]uint, changed bool) {
  19258. dd, cr := d.d, d.cr
  19259. containerLen := dd.ReadMapStart()
  19260. if canChange && v == nil {
  19261. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19262. v = make(map[float32]uint, xlen)
  19263. changed = true
  19264. }
  19265. if containerLen == 0 {
  19266. if cr != nil {
  19267. cr.sendContainerState(containerMapEnd)
  19268. }
  19269. return v, changed
  19270. }
  19271. var mk float32
  19272. var mv uint
  19273. hasLen := containerLen > 0
  19274. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19275. if cr != nil {
  19276. cr.sendContainerState(containerMapKey)
  19277. }
  19278. mk = float32(dd.DecodeFloat(true))
  19279. if cr != nil {
  19280. cr.sendContainerState(containerMapValue)
  19281. }
  19282. if dd.TryDecodeAsNil() {
  19283. if d.h.DeleteOnNilMapValue {
  19284. delete(v, mk)
  19285. } else {
  19286. v[mk] = 0
  19287. }
  19288. continue
  19289. }
  19290. mv = uint(dd.DecodeUint(uintBitsize))
  19291. if v != nil {
  19292. v[mk] = mv
  19293. }
  19294. }
  19295. if cr != nil {
  19296. cr.sendContainerState(containerMapEnd)
  19297. }
  19298. return v, changed
  19299. }
  19300. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  19301. if rv.Kind() == reflect.Ptr {
  19302. vp := rv2i(rv).(*map[float32]uint8)
  19303. if v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d); changed {
  19304. *vp = v
  19305. }
  19306. return
  19307. }
  19308. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  19309. }
  19310. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  19311. if v, changed := f.DecMapFloat32Uint8V(*vp, true, d); changed {
  19312. *vp = v
  19313. }
  19314. }
  19315. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  19316. d *Decoder) (_ map[float32]uint8, changed bool) {
  19317. dd, cr := d.d, d.cr
  19318. containerLen := dd.ReadMapStart()
  19319. if canChange && v == nil {
  19320. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  19321. v = make(map[float32]uint8, xlen)
  19322. changed = true
  19323. }
  19324. if containerLen == 0 {
  19325. if cr != nil {
  19326. cr.sendContainerState(containerMapEnd)
  19327. }
  19328. return v, changed
  19329. }
  19330. var mk float32
  19331. var mv uint8
  19332. hasLen := containerLen > 0
  19333. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19334. if cr != nil {
  19335. cr.sendContainerState(containerMapKey)
  19336. }
  19337. mk = float32(dd.DecodeFloat(true))
  19338. if cr != nil {
  19339. cr.sendContainerState(containerMapValue)
  19340. }
  19341. if dd.TryDecodeAsNil() {
  19342. if d.h.DeleteOnNilMapValue {
  19343. delete(v, mk)
  19344. } else {
  19345. v[mk] = 0
  19346. }
  19347. continue
  19348. }
  19349. mv = uint8(dd.DecodeUint(8))
  19350. if v != nil {
  19351. v[mk] = mv
  19352. }
  19353. }
  19354. if cr != nil {
  19355. cr.sendContainerState(containerMapEnd)
  19356. }
  19357. return v, changed
  19358. }
  19359. func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  19360. if rv.Kind() == reflect.Ptr {
  19361. vp := rv2i(rv).(*map[float32]uint16)
  19362. if v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d); changed {
  19363. *vp = v
  19364. }
  19365. return
  19366. }
  19367. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  19368. }
  19369. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  19370. if v, changed := f.DecMapFloat32Uint16V(*vp, true, d); changed {
  19371. *vp = v
  19372. }
  19373. }
  19374. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  19375. d *Decoder) (_ map[float32]uint16, changed bool) {
  19376. dd, cr := d.d, d.cr
  19377. containerLen := dd.ReadMapStart()
  19378. if canChange && v == nil {
  19379. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  19380. v = make(map[float32]uint16, xlen)
  19381. changed = true
  19382. }
  19383. if containerLen == 0 {
  19384. if cr != nil {
  19385. cr.sendContainerState(containerMapEnd)
  19386. }
  19387. return v, changed
  19388. }
  19389. var mk float32
  19390. var mv uint16
  19391. hasLen := containerLen > 0
  19392. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19393. if cr != nil {
  19394. cr.sendContainerState(containerMapKey)
  19395. }
  19396. mk = float32(dd.DecodeFloat(true))
  19397. if cr != nil {
  19398. cr.sendContainerState(containerMapValue)
  19399. }
  19400. if dd.TryDecodeAsNil() {
  19401. if d.h.DeleteOnNilMapValue {
  19402. delete(v, mk)
  19403. } else {
  19404. v[mk] = 0
  19405. }
  19406. continue
  19407. }
  19408. mv = uint16(dd.DecodeUint(16))
  19409. if v != nil {
  19410. v[mk] = mv
  19411. }
  19412. }
  19413. if cr != nil {
  19414. cr.sendContainerState(containerMapEnd)
  19415. }
  19416. return v, changed
  19417. }
  19418. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  19419. if rv.Kind() == reflect.Ptr {
  19420. vp := rv2i(rv).(*map[float32]uint32)
  19421. if v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d); changed {
  19422. *vp = v
  19423. }
  19424. return
  19425. }
  19426. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  19427. }
  19428. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  19429. if v, changed := f.DecMapFloat32Uint32V(*vp, true, d); changed {
  19430. *vp = v
  19431. }
  19432. }
  19433. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  19434. d *Decoder) (_ map[float32]uint32, changed bool) {
  19435. dd, cr := d.d, d.cr
  19436. containerLen := dd.ReadMapStart()
  19437. if canChange && v == nil {
  19438. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  19439. v = make(map[float32]uint32, xlen)
  19440. changed = true
  19441. }
  19442. if containerLen == 0 {
  19443. if cr != nil {
  19444. cr.sendContainerState(containerMapEnd)
  19445. }
  19446. return v, changed
  19447. }
  19448. var mk float32
  19449. var mv uint32
  19450. hasLen := containerLen > 0
  19451. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19452. if cr != nil {
  19453. cr.sendContainerState(containerMapKey)
  19454. }
  19455. mk = float32(dd.DecodeFloat(true))
  19456. if cr != nil {
  19457. cr.sendContainerState(containerMapValue)
  19458. }
  19459. if dd.TryDecodeAsNil() {
  19460. if d.h.DeleteOnNilMapValue {
  19461. delete(v, mk)
  19462. } else {
  19463. v[mk] = 0
  19464. }
  19465. continue
  19466. }
  19467. mv = uint32(dd.DecodeUint(32))
  19468. if v != nil {
  19469. v[mk] = mv
  19470. }
  19471. }
  19472. if cr != nil {
  19473. cr.sendContainerState(containerMapEnd)
  19474. }
  19475. return v, changed
  19476. }
  19477. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  19478. if rv.Kind() == reflect.Ptr {
  19479. vp := rv2i(rv).(*map[float32]uint64)
  19480. if v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d); changed {
  19481. *vp = v
  19482. }
  19483. return
  19484. }
  19485. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  19486. }
  19487. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  19488. if v, changed := f.DecMapFloat32Uint64V(*vp, true, d); changed {
  19489. *vp = v
  19490. }
  19491. }
  19492. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  19493. d *Decoder) (_ map[float32]uint64, changed bool) {
  19494. dd, cr := d.d, d.cr
  19495. containerLen := dd.ReadMapStart()
  19496. if canChange && v == nil {
  19497. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19498. v = make(map[float32]uint64, xlen)
  19499. changed = true
  19500. }
  19501. if containerLen == 0 {
  19502. if cr != nil {
  19503. cr.sendContainerState(containerMapEnd)
  19504. }
  19505. return v, changed
  19506. }
  19507. var mk float32
  19508. var mv uint64
  19509. hasLen := containerLen > 0
  19510. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19511. if cr != nil {
  19512. cr.sendContainerState(containerMapKey)
  19513. }
  19514. mk = float32(dd.DecodeFloat(true))
  19515. if cr != nil {
  19516. cr.sendContainerState(containerMapValue)
  19517. }
  19518. if dd.TryDecodeAsNil() {
  19519. if d.h.DeleteOnNilMapValue {
  19520. delete(v, mk)
  19521. } else {
  19522. v[mk] = 0
  19523. }
  19524. continue
  19525. }
  19526. mv = dd.DecodeUint(64)
  19527. if v != nil {
  19528. v[mk] = mv
  19529. }
  19530. }
  19531. if cr != nil {
  19532. cr.sendContainerState(containerMapEnd)
  19533. }
  19534. return v, changed
  19535. }
  19536. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  19537. if rv.Kind() == reflect.Ptr {
  19538. vp := rv2i(rv).(*map[float32]uintptr)
  19539. if v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d); changed {
  19540. *vp = v
  19541. }
  19542. return
  19543. }
  19544. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  19545. }
  19546. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  19547. if v, changed := f.DecMapFloat32UintptrV(*vp, true, d); changed {
  19548. *vp = v
  19549. }
  19550. }
  19551. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  19552. d *Decoder) (_ map[float32]uintptr, changed bool) {
  19553. dd, cr := d.d, d.cr
  19554. containerLen := dd.ReadMapStart()
  19555. if canChange && v == nil {
  19556. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19557. v = make(map[float32]uintptr, xlen)
  19558. changed = true
  19559. }
  19560. if containerLen == 0 {
  19561. if cr != nil {
  19562. cr.sendContainerState(containerMapEnd)
  19563. }
  19564. return v, changed
  19565. }
  19566. var mk float32
  19567. var mv uintptr
  19568. hasLen := containerLen > 0
  19569. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19570. if cr != nil {
  19571. cr.sendContainerState(containerMapKey)
  19572. }
  19573. mk = float32(dd.DecodeFloat(true))
  19574. if cr != nil {
  19575. cr.sendContainerState(containerMapValue)
  19576. }
  19577. if dd.TryDecodeAsNil() {
  19578. if d.h.DeleteOnNilMapValue {
  19579. delete(v, mk)
  19580. } else {
  19581. v[mk] = 0
  19582. }
  19583. continue
  19584. }
  19585. mv = uintptr(dd.DecodeUint(uintBitsize))
  19586. if v != nil {
  19587. v[mk] = mv
  19588. }
  19589. }
  19590. if cr != nil {
  19591. cr.sendContainerState(containerMapEnd)
  19592. }
  19593. return v, changed
  19594. }
  19595. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  19596. if rv.Kind() == reflect.Ptr {
  19597. vp := rv2i(rv).(*map[float32]int)
  19598. if v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d); changed {
  19599. *vp = v
  19600. }
  19601. return
  19602. }
  19603. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  19604. }
  19605. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  19606. if v, changed := f.DecMapFloat32IntV(*vp, true, d); changed {
  19607. *vp = v
  19608. }
  19609. }
  19610. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  19611. d *Decoder) (_ map[float32]int, changed bool) {
  19612. dd, cr := d.d, d.cr
  19613. containerLen := dd.ReadMapStart()
  19614. if canChange && v == nil {
  19615. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19616. v = make(map[float32]int, xlen)
  19617. changed = true
  19618. }
  19619. if containerLen == 0 {
  19620. if cr != nil {
  19621. cr.sendContainerState(containerMapEnd)
  19622. }
  19623. return v, changed
  19624. }
  19625. var mk float32
  19626. var mv int
  19627. hasLen := containerLen > 0
  19628. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19629. if cr != nil {
  19630. cr.sendContainerState(containerMapKey)
  19631. }
  19632. mk = float32(dd.DecodeFloat(true))
  19633. if cr != nil {
  19634. cr.sendContainerState(containerMapValue)
  19635. }
  19636. if dd.TryDecodeAsNil() {
  19637. if d.h.DeleteOnNilMapValue {
  19638. delete(v, mk)
  19639. } else {
  19640. v[mk] = 0
  19641. }
  19642. continue
  19643. }
  19644. mv = int(dd.DecodeInt(intBitsize))
  19645. if v != nil {
  19646. v[mk] = mv
  19647. }
  19648. }
  19649. if cr != nil {
  19650. cr.sendContainerState(containerMapEnd)
  19651. }
  19652. return v, changed
  19653. }
  19654. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  19655. if rv.Kind() == reflect.Ptr {
  19656. vp := rv2i(rv).(*map[float32]int8)
  19657. if v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d); changed {
  19658. *vp = v
  19659. }
  19660. return
  19661. }
  19662. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  19663. }
  19664. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  19665. if v, changed := f.DecMapFloat32Int8V(*vp, true, d); changed {
  19666. *vp = v
  19667. }
  19668. }
  19669. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  19670. d *Decoder) (_ map[float32]int8, changed bool) {
  19671. dd, cr := d.d, d.cr
  19672. containerLen := dd.ReadMapStart()
  19673. if canChange && v == nil {
  19674. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  19675. v = make(map[float32]int8, xlen)
  19676. changed = true
  19677. }
  19678. if containerLen == 0 {
  19679. if cr != nil {
  19680. cr.sendContainerState(containerMapEnd)
  19681. }
  19682. return v, changed
  19683. }
  19684. var mk float32
  19685. var mv int8
  19686. hasLen := containerLen > 0
  19687. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19688. if cr != nil {
  19689. cr.sendContainerState(containerMapKey)
  19690. }
  19691. mk = float32(dd.DecodeFloat(true))
  19692. if cr != nil {
  19693. cr.sendContainerState(containerMapValue)
  19694. }
  19695. if dd.TryDecodeAsNil() {
  19696. if d.h.DeleteOnNilMapValue {
  19697. delete(v, mk)
  19698. } else {
  19699. v[mk] = 0
  19700. }
  19701. continue
  19702. }
  19703. mv = int8(dd.DecodeInt(8))
  19704. if v != nil {
  19705. v[mk] = mv
  19706. }
  19707. }
  19708. if cr != nil {
  19709. cr.sendContainerState(containerMapEnd)
  19710. }
  19711. return v, changed
  19712. }
  19713. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  19714. if rv.Kind() == reflect.Ptr {
  19715. vp := rv2i(rv).(*map[float32]int16)
  19716. if v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d); changed {
  19717. *vp = v
  19718. }
  19719. return
  19720. }
  19721. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  19722. }
  19723. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  19724. if v, changed := f.DecMapFloat32Int16V(*vp, true, d); changed {
  19725. *vp = v
  19726. }
  19727. }
  19728. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  19729. d *Decoder) (_ map[float32]int16, changed bool) {
  19730. dd, cr := d.d, d.cr
  19731. containerLen := dd.ReadMapStart()
  19732. if canChange && v == nil {
  19733. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  19734. v = make(map[float32]int16, xlen)
  19735. changed = true
  19736. }
  19737. if containerLen == 0 {
  19738. if cr != nil {
  19739. cr.sendContainerState(containerMapEnd)
  19740. }
  19741. return v, changed
  19742. }
  19743. var mk float32
  19744. var mv int16
  19745. hasLen := containerLen > 0
  19746. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19747. if cr != nil {
  19748. cr.sendContainerState(containerMapKey)
  19749. }
  19750. mk = float32(dd.DecodeFloat(true))
  19751. if cr != nil {
  19752. cr.sendContainerState(containerMapValue)
  19753. }
  19754. if dd.TryDecodeAsNil() {
  19755. if d.h.DeleteOnNilMapValue {
  19756. delete(v, mk)
  19757. } else {
  19758. v[mk] = 0
  19759. }
  19760. continue
  19761. }
  19762. mv = int16(dd.DecodeInt(16))
  19763. if v != nil {
  19764. v[mk] = mv
  19765. }
  19766. }
  19767. if cr != nil {
  19768. cr.sendContainerState(containerMapEnd)
  19769. }
  19770. return v, changed
  19771. }
  19772. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  19773. if rv.Kind() == reflect.Ptr {
  19774. vp := rv2i(rv).(*map[float32]int32)
  19775. if v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d); changed {
  19776. *vp = v
  19777. }
  19778. return
  19779. }
  19780. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  19781. }
  19782. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  19783. if v, changed := f.DecMapFloat32Int32V(*vp, true, d); changed {
  19784. *vp = v
  19785. }
  19786. }
  19787. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  19788. d *Decoder) (_ map[float32]int32, changed bool) {
  19789. dd, cr := d.d, d.cr
  19790. containerLen := dd.ReadMapStart()
  19791. if canChange && v == nil {
  19792. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  19793. v = make(map[float32]int32, xlen)
  19794. changed = true
  19795. }
  19796. if containerLen == 0 {
  19797. if cr != nil {
  19798. cr.sendContainerState(containerMapEnd)
  19799. }
  19800. return v, changed
  19801. }
  19802. var mk float32
  19803. var mv int32
  19804. hasLen := containerLen > 0
  19805. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19806. if cr != nil {
  19807. cr.sendContainerState(containerMapKey)
  19808. }
  19809. mk = float32(dd.DecodeFloat(true))
  19810. if cr != nil {
  19811. cr.sendContainerState(containerMapValue)
  19812. }
  19813. if dd.TryDecodeAsNil() {
  19814. if d.h.DeleteOnNilMapValue {
  19815. delete(v, mk)
  19816. } else {
  19817. v[mk] = 0
  19818. }
  19819. continue
  19820. }
  19821. mv = int32(dd.DecodeInt(32))
  19822. if v != nil {
  19823. v[mk] = mv
  19824. }
  19825. }
  19826. if cr != nil {
  19827. cr.sendContainerState(containerMapEnd)
  19828. }
  19829. return v, changed
  19830. }
  19831. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  19832. if rv.Kind() == reflect.Ptr {
  19833. vp := rv2i(rv).(*map[float32]int64)
  19834. if v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d); changed {
  19835. *vp = v
  19836. }
  19837. return
  19838. }
  19839. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  19840. }
  19841. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  19842. if v, changed := f.DecMapFloat32Int64V(*vp, true, d); changed {
  19843. *vp = v
  19844. }
  19845. }
  19846. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  19847. d *Decoder) (_ map[float32]int64, changed bool) {
  19848. dd, cr := d.d, d.cr
  19849. containerLen := dd.ReadMapStart()
  19850. if canChange && v == nil {
  19851. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19852. v = make(map[float32]int64, xlen)
  19853. changed = true
  19854. }
  19855. if containerLen == 0 {
  19856. if cr != nil {
  19857. cr.sendContainerState(containerMapEnd)
  19858. }
  19859. return v, changed
  19860. }
  19861. var mk float32
  19862. var mv int64
  19863. hasLen := containerLen > 0
  19864. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19865. if cr != nil {
  19866. cr.sendContainerState(containerMapKey)
  19867. }
  19868. mk = float32(dd.DecodeFloat(true))
  19869. if cr != nil {
  19870. cr.sendContainerState(containerMapValue)
  19871. }
  19872. if dd.TryDecodeAsNil() {
  19873. if d.h.DeleteOnNilMapValue {
  19874. delete(v, mk)
  19875. } else {
  19876. v[mk] = 0
  19877. }
  19878. continue
  19879. }
  19880. mv = dd.DecodeInt(64)
  19881. if v != nil {
  19882. v[mk] = mv
  19883. }
  19884. }
  19885. if cr != nil {
  19886. cr.sendContainerState(containerMapEnd)
  19887. }
  19888. return v, changed
  19889. }
  19890. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  19891. if rv.Kind() == reflect.Ptr {
  19892. vp := rv2i(rv).(*map[float32]float32)
  19893. if v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d); changed {
  19894. *vp = v
  19895. }
  19896. return
  19897. }
  19898. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  19899. }
  19900. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  19901. if v, changed := f.DecMapFloat32Float32V(*vp, true, d); changed {
  19902. *vp = v
  19903. }
  19904. }
  19905. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  19906. d *Decoder) (_ map[float32]float32, changed bool) {
  19907. dd, cr := d.d, d.cr
  19908. containerLen := dd.ReadMapStart()
  19909. if canChange && v == nil {
  19910. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  19911. v = make(map[float32]float32, xlen)
  19912. changed = true
  19913. }
  19914. if containerLen == 0 {
  19915. if cr != nil {
  19916. cr.sendContainerState(containerMapEnd)
  19917. }
  19918. return v, changed
  19919. }
  19920. var mk float32
  19921. var mv float32
  19922. hasLen := containerLen > 0
  19923. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19924. if cr != nil {
  19925. cr.sendContainerState(containerMapKey)
  19926. }
  19927. mk = float32(dd.DecodeFloat(true))
  19928. if cr != nil {
  19929. cr.sendContainerState(containerMapValue)
  19930. }
  19931. if dd.TryDecodeAsNil() {
  19932. if d.h.DeleteOnNilMapValue {
  19933. delete(v, mk)
  19934. } else {
  19935. v[mk] = 0
  19936. }
  19937. continue
  19938. }
  19939. mv = float32(dd.DecodeFloat(true))
  19940. if v != nil {
  19941. v[mk] = mv
  19942. }
  19943. }
  19944. if cr != nil {
  19945. cr.sendContainerState(containerMapEnd)
  19946. }
  19947. return v, changed
  19948. }
  19949. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  19950. if rv.Kind() == reflect.Ptr {
  19951. vp := rv2i(rv).(*map[float32]float64)
  19952. if v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d); changed {
  19953. *vp = v
  19954. }
  19955. return
  19956. }
  19957. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  19958. }
  19959. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  19960. if v, changed := f.DecMapFloat32Float64V(*vp, true, d); changed {
  19961. *vp = v
  19962. }
  19963. }
  19964. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  19965. d *Decoder) (_ map[float32]float64, changed bool) {
  19966. dd, cr := d.d, d.cr
  19967. containerLen := dd.ReadMapStart()
  19968. if canChange && v == nil {
  19969. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  19970. v = make(map[float32]float64, xlen)
  19971. changed = true
  19972. }
  19973. if containerLen == 0 {
  19974. if cr != nil {
  19975. cr.sendContainerState(containerMapEnd)
  19976. }
  19977. return v, changed
  19978. }
  19979. var mk float32
  19980. var mv float64
  19981. hasLen := containerLen > 0
  19982. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19983. if cr != nil {
  19984. cr.sendContainerState(containerMapKey)
  19985. }
  19986. mk = float32(dd.DecodeFloat(true))
  19987. if cr != nil {
  19988. cr.sendContainerState(containerMapValue)
  19989. }
  19990. if dd.TryDecodeAsNil() {
  19991. if d.h.DeleteOnNilMapValue {
  19992. delete(v, mk)
  19993. } else {
  19994. v[mk] = 0
  19995. }
  19996. continue
  19997. }
  19998. mv = dd.DecodeFloat(false)
  19999. if v != nil {
  20000. v[mk] = mv
  20001. }
  20002. }
  20003. if cr != nil {
  20004. cr.sendContainerState(containerMapEnd)
  20005. }
  20006. return v, changed
  20007. }
  20008. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  20009. if rv.Kind() == reflect.Ptr {
  20010. vp := rv2i(rv).(*map[float32]bool)
  20011. if v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d); changed {
  20012. *vp = v
  20013. }
  20014. return
  20015. }
  20016. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  20017. }
  20018. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  20019. if v, changed := f.DecMapFloat32BoolV(*vp, true, d); changed {
  20020. *vp = v
  20021. }
  20022. }
  20023. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  20024. d *Decoder) (_ map[float32]bool, changed bool) {
  20025. dd, cr := d.d, d.cr
  20026. containerLen := dd.ReadMapStart()
  20027. if canChange && v == nil {
  20028. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  20029. v = make(map[float32]bool, xlen)
  20030. changed = true
  20031. }
  20032. if containerLen == 0 {
  20033. if cr != nil {
  20034. cr.sendContainerState(containerMapEnd)
  20035. }
  20036. return v, changed
  20037. }
  20038. var mk float32
  20039. var mv bool
  20040. hasLen := containerLen > 0
  20041. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20042. if cr != nil {
  20043. cr.sendContainerState(containerMapKey)
  20044. }
  20045. mk = float32(dd.DecodeFloat(true))
  20046. if cr != nil {
  20047. cr.sendContainerState(containerMapValue)
  20048. }
  20049. if dd.TryDecodeAsNil() {
  20050. if d.h.DeleteOnNilMapValue {
  20051. delete(v, mk)
  20052. } else {
  20053. v[mk] = false
  20054. }
  20055. continue
  20056. }
  20057. mv = dd.DecodeBool()
  20058. if v != nil {
  20059. v[mk] = mv
  20060. }
  20061. }
  20062. if cr != nil {
  20063. cr.sendContainerState(containerMapEnd)
  20064. }
  20065. return v, changed
  20066. }
  20067. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  20068. if rv.Kind() == reflect.Ptr {
  20069. vp := rv2i(rv).(*map[float64]interface{})
  20070. if v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d); changed {
  20071. *vp = v
  20072. }
  20073. return
  20074. }
  20075. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  20076. }
  20077. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  20078. if v, changed := f.DecMapFloat64IntfV(*vp, true, d); changed {
  20079. *vp = v
  20080. }
  20081. }
  20082. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  20083. d *Decoder) (_ map[float64]interface{}, changed bool) {
  20084. dd, cr := d.d, d.cr
  20085. containerLen := dd.ReadMapStart()
  20086. if canChange && v == nil {
  20087. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20088. v = make(map[float64]interface{}, xlen)
  20089. changed = true
  20090. }
  20091. if containerLen == 0 {
  20092. if cr != nil {
  20093. cr.sendContainerState(containerMapEnd)
  20094. }
  20095. return v, changed
  20096. }
  20097. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  20098. var mk float64
  20099. var mv interface{}
  20100. hasLen := containerLen > 0
  20101. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20102. if cr != nil {
  20103. cr.sendContainerState(containerMapKey)
  20104. }
  20105. mk = dd.DecodeFloat(false)
  20106. if cr != nil {
  20107. cr.sendContainerState(containerMapValue)
  20108. }
  20109. if dd.TryDecodeAsNil() {
  20110. if d.h.DeleteOnNilMapValue {
  20111. delete(v, mk)
  20112. } else {
  20113. v[mk] = nil
  20114. }
  20115. continue
  20116. }
  20117. if mapGet {
  20118. mv = v[mk]
  20119. } else {
  20120. mv = nil
  20121. }
  20122. d.decode(&mv)
  20123. if v != nil {
  20124. v[mk] = mv
  20125. }
  20126. }
  20127. if cr != nil {
  20128. cr.sendContainerState(containerMapEnd)
  20129. }
  20130. return v, changed
  20131. }
  20132. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  20133. if rv.Kind() == reflect.Ptr {
  20134. vp := rv2i(rv).(*map[float64]string)
  20135. if v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d); changed {
  20136. *vp = v
  20137. }
  20138. return
  20139. }
  20140. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  20141. }
  20142. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  20143. if v, changed := f.DecMapFloat64StringV(*vp, true, d); changed {
  20144. *vp = v
  20145. }
  20146. }
  20147. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  20148. d *Decoder) (_ map[float64]string, changed bool) {
  20149. dd, cr := d.d, d.cr
  20150. containerLen := dd.ReadMapStart()
  20151. if canChange && v == nil {
  20152. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20153. v = make(map[float64]string, xlen)
  20154. changed = true
  20155. }
  20156. if containerLen == 0 {
  20157. if cr != nil {
  20158. cr.sendContainerState(containerMapEnd)
  20159. }
  20160. return v, changed
  20161. }
  20162. var mk float64
  20163. var mv string
  20164. hasLen := containerLen > 0
  20165. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20166. if cr != nil {
  20167. cr.sendContainerState(containerMapKey)
  20168. }
  20169. mk = dd.DecodeFloat(false)
  20170. if cr != nil {
  20171. cr.sendContainerState(containerMapValue)
  20172. }
  20173. if dd.TryDecodeAsNil() {
  20174. if d.h.DeleteOnNilMapValue {
  20175. delete(v, mk)
  20176. } else {
  20177. v[mk] = ""
  20178. }
  20179. continue
  20180. }
  20181. mv = dd.DecodeString()
  20182. if v != nil {
  20183. v[mk] = mv
  20184. }
  20185. }
  20186. if cr != nil {
  20187. cr.sendContainerState(containerMapEnd)
  20188. }
  20189. return v, changed
  20190. }
  20191. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  20192. if rv.Kind() == reflect.Ptr {
  20193. vp := rv2i(rv).(*map[float64]uint)
  20194. if v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d); changed {
  20195. *vp = v
  20196. }
  20197. return
  20198. }
  20199. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  20200. }
  20201. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  20202. if v, changed := f.DecMapFloat64UintV(*vp, true, d); changed {
  20203. *vp = v
  20204. }
  20205. }
  20206. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  20207. d *Decoder) (_ map[float64]uint, changed bool) {
  20208. dd, cr := d.d, d.cr
  20209. containerLen := dd.ReadMapStart()
  20210. if canChange && v == nil {
  20211. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20212. v = make(map[float64]uint, xlen)
  20213. changed = true
  20214. }
  20215. if containerLen == 0 {
  20216. if cr != nil {
  20217. cr.sendContainerState(containerMapEnd)
  20218. }
  20219. return v, changed
  20220. }
  20221. var mk float64
  20222. var mv uint
  20223. hasLen := containerLen > 0
  20224. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20225. if cr != nil {
  20226. cr.sendContainerState(containerMapKey)
  20227. }
  20228. mk = dd.DecodeFloat(false)
  20229. if cr != nil {
  20230. cr.sendContainerState(containerMapValue)
  20231. }
  20232. if dd.TryDecodeAsNil() {
  20233. if d.h.DeleteOnNilMapValue {
  20234. delete(v, mk)
  20235. } else {
  20236. v[mk] = 0
  20237. }
  20238. continue
  20239. }
  20240. mv = uint(dd.DecodeUint(uintBitsize))
  20241. if v != nil {
  20242. v[mk] = mv
  20243. }
  20244. }
  20245. if cr != nil {
  20246. cr.sendContainerState(containerMapEnd)
  20247. }
  20248. return v, changed
  20249. }
  20250. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  20251. if rv.Kind() == reflect.Ptr {
  20252. vp := rv2i(rv).(*map[float64]uint8)
  20253. if v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d); changed {
  20254. *vp = v
  20255. }
  20256. return
  20257. }
  20258. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  20259. }
  20260. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  20261. if v, changed := f.DecMapFloat64Uint8V(*vp, true, d); changed {
  20262. *vp = v
  20263. }
  20264. }
  20265. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  20266. d *Decoder) (_ map[float64]uint8, changed bool) {
  20267. dd, cr := d.d, d.cr
  20268. containerLen := dd.ReadMapStart()
  20269. if canChange && v == nil {
  20270. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20271. v = make(map[float64]uint8, xlen)
  20272. changed = true
  20273. }
  20274. if containerLen == 0 {
  20275. if cr != nil {
  20276. cr.sendContainerState(containerMapEnd)
  20277. }
  20278. return v, changed
  20279. }
  20280. var mk float64
  20281. var mv uint8
  20282. hasLen := containerLen > 0
  20283. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20284. if cr != nil {
  20285. cr.sendContainerState(containerMapKey)
  20286. }
  20287. mk = dd.DecodeFloat(false)
  20288. if cr != nil {
  20289. cr.sendContainerState(containerMapValue)
  20290. }
  20291. if dd.TryDecodeAsNil() {
  20292. if d.h.DeleteOnNilMapValue {
  20293. delete(v, mk)
  20294. } else {
  20295. v[mk] = 0
  20296. }
  20297. continue
  20298. }
  20299. mv = uint8(dd.DecodeUint(8))
  20300. if v != nil {
  20301. v[mk] = mv
  20302. }
  20303. }
  20304. if cr != nil {
  20305. cr.sendContainerState(containerMapEnd)
  20306. }
  20307. return v, changed
  20308. }
  20309. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  20310. if rv.Kind() == reflect.Ptr {
  20311. vp := rv2i(rv).(*map[float64]uint16)
  20312. if v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d); changed {
  20313. *vp = v
  20314. }
  20315. return
  20316. }
  20317. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  20318. }
  20319. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  20320. if v, changed := f.DecMapFloat64Uint16V(*vp, true, d); changed {
  20321. *vp = v
  20322. }
  20323. }
  20324. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  20325. d *Decoder) (_ map[float64]uint16, changed bool) {
  20326. dd, cr := d.d, d.cr
  20327. containerLen := dd.ReadMapStart()
  20328. if canChange && v == nil {
  20329. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20330. v = make(map[float64]uint16, xlen)
  20331. changed = true
  20332. }
  20333. if containerLen == 0 {
  20334. if cr != nil {
  20335. cr.sendContainerState(containerMapEnd)
  20336. }
  20337. return v, changed
  20338. }
  20339. var mk float64
  20340. var mv uint16
  20341. hasLen := containerLen > 0
  20342. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20343. if cr != nil {
  20344. cr.sendContainerState(containerMapKey)
  20345. }
  20346. mk = dd.DecodeFloat(false)
  20347. if cr != nil {
  20348. cr.sendContainerState(containerMapValue)
  20349. }
  20350. if dd.TryDecodeAsNil() {
  20351. if d.h.DeleteOnNilMapValue {
  20352. delete(v, mk)
  20353. } else {
  20354. v[mk] = 0
  20355. }
  20356. continue
  20357. }
  20358. mv = uint16(dd.DecodeUint(16))
  20359. if v != nil {
  20360. v[mk] = mv
  20361. }
  20362. }
  20363. if cr != nil {
  20364. cr.sendContainerState(containerMapEnd)
  20365. }
  20366. return v, changed
  20367. }
  20368. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  20369. if rv.Kind() == reflect.Ptr {
  20370. vp := rv2i(rv).(*map[float64]uint32)
  20371. if v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d); changed {
  20372. *vp = v
  20373. }
  20374. return
  20375. }
  20376. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  20377. }
  20378. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  20379. if v, changed := f.DecMapFloat64Uint32V(*vp, true, d); changed {
  20380. *vp = v
  20381. }
  20382. }
  20383. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  20384. d *Decoder) (_ map[float64]uint32, changed bool) {
  20385. dd, cr := d.d, d.cr
  20386. containerLen := dd.ReadMapStart()
  20387. if canChange && v == nil {
  20388. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20389. v = make(map[float64]uint32, xlen)
  20390. changed = true
  20391. }
  20392. if containerLen == 0 {
  20393. if cr != nil {
  20394. cr.sendContainerState(containerMapEnd)
  20395. }
  20396. return v, changed
  20397. }
  20398. var mk float64
  20399. var mv uint32
  20400. hasLen := containerLen > 0
  20401. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20402. if cr != nil {
  20403. cr.sendContainerState(containerMapKey)
  20404. }
  20405. mk = dd.DecodeFloat(false)
  20406. if cr != nil {
  20407. cr.sendContainerState(containerMapValue)
  20408. }
  20409. if dd.TryDecodeAsNil() {
  20410. if d.h.DeleteOnNilMapValue {
  20411. delete(v, mk)
  20412. } else {
  20413. v[mk] = 0
  20414. }
  20415. continue
  20416. }
  20417. mv = uint32(dd.DecodeUint(32))
  20418. if v != nil {
  20419. v[mk] = mv
  20420. }
  20421. }
  20422. if cr != nil {
  20423. cr.sendContainerState(containerMapEnd)
  20424. }
  20425. return v, changed
  20426. }
  20427. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  20428. if rv.Kind() == reflect.Ptr {
  20429. vp := rv2i(rv).(*map[float64]uint64)
  20430. if v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d); changed {
  20431. *vp = v
  20432. }
  20433. return
  20434. }
  20435. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  20436. }
  20437. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  20438. if v, changed := f.DecMapFloat64Uint64V(*vp, true, d); changed {
  20439. *vp = v
  20440. }
  20441. }
  20442. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  20443. d *Decoder) (_ map[float64]uint64, changed bool) {
  20444. dd, cr := d.d, d.cr
  20445. containerLen := dd.ReadMapStart()
  20446. if canChange && v == nil {
  20447. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20448. v = make(map[float64]uint64, xlen)
  20449. changed = true
  20450. }
  20451. if containerLen == 0 {
  20452. if cr != nil {
  20453. cr.sendContainerState(containerMapEnd)
  20454. }
  20455. return v, changed
  20456. }
  20457. var mk float64
  20458. var mv uint64
  20459. hasLen := containerLen > 0
  20460. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20461. if cr != nil {
  20462. cr.sendContainerState(containerMapKey)
  20463. }
  20464. mk = dd.DecodeFloat(false)
  20465. if cr != nil {
  20466. cr.sendContainerState(containerMapValue)
  20467. }
  20468. if dd.TryDecodeAsNil() {
  20469. if d.h.DeleteOnNilMapValue {
  20470. delete(v, mk)
  20471. } else {
  20472. v[mk] = 0
  20473. }
  20474. continue
  20475. }
  20476. mv = dd.DecodeUint(64)
  20477. if v != nil {
  20478. v[mk] = mv
  20479. }
  20480. }
  20481. if cr != nil {
  20482. cr.sendContainerState(containerMapEnd)
  20483. }
  20484. return v, changed
  20485. }
  20486. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  20487. if rv.Kind() == reflect.Ptr {
  20488. vp := rv2i(rv).(*map[float64]uintptr)
  20489. if v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d); changed {
  20490. *vp = v
  20491. }
  20492. return
  20493. }
  20494. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  20495. }
  20496. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  20497. if v, changed := f.DecMapFloat64UintptrV(*vp, true, d); changed {
  20498. *vp = v
  20499. }
  20500. }
  20501. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  20502. d *Decoder) (_ map[float64]uintptr, changed bool) {
  20503. dd, cr := d.d, d.cr
  20504. containerLen := dd.ReadMapStart()
  20505. if canChange && v == nil {
  20506. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20507. v = make(map[float64]uintptr, xlen)
  20508. changed = true
  20509. }
  20510. if containerLen == 0 {
  20511. if cr != nil {
  20512. cr.sendContainerState(containerMapEnd)
  20513. }
  20514. return v, changed
  20515. }
  20516. var mk float64
  20517. var mv uintptr
  20518. hasLen := containerLen > 0
  20519. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20520. if cr != nil {
  20521. cr.sendContainerState(containerMapKey)
  20522. }
  20523. mk = dd.DecodeFloat(false)
  20524. if cr != nil {
  20525. cr.sendContainerState(containerMapValue)
  20526. }
  20527. if dd.TryDecodeAsNil() {
  20528. if d.h.DeleteOnNilMapValue {
  20529. delete(v, mk)
  20530. } else {
  20531. v[mk] = 0
  20532. }
  20533. continue
  20534. }
  20535. mv = uintptr(dd.DecodeUint(uintBitsize))
  20536. if v != nil {
  20537. v[mk] = mv
  20538. }
  20539. }
  20540. if cr != nil {
  20541. cr.sendContainerState(containerMapEnd)
  20542. }
  20543. return v, changed
  20544. }
  20545. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  20546. if rv.Kind() == reflect.Ptr {
  20547. vp := rv2i(rv).(*map[float64]int)
  20548. if v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d); changed {
  20549. *vp = v
  20550. }
  20551. return
  20552. }
  20553. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  20554. }
  20555. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  20556. if v, changed := f.DecMapFloat64IntV(*vp, true, d); changed {
  20557. *vp = v
  20558. }
  20559. }
  20560. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  20561. d *Decoder) (_ map[float64]int, changed bool) {
  20562. dd, cr := d.d, d.cr
  20563. containerLen := dd.ReadMapStart()
  20564. if canChange && v == nil {
  20565. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20566. v = make(map[float64]int, xlen)
  20567. changed = true
  20568. }
  20569. if containerLen == 0 {
  20570. if cr != nil {
  20571. cr.sendContainerState(containerMapEnd)
  20572. }
  20573. return v, changed
  20574. }
  20575. var mk float64
  20576. var mv int
  20577. hasLen := containerLen > 0
  20578. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20579. if cr != nil {
  20580. cr.sendContainerState(containerMapKey)
  20581. }
  20582. mk = dd.DecodeFloat(false)
  20583. if cr != nil {
  20584. cr.sendContainerState(containerMapValue)
  20585. }
  20586. if dd.TryDecodeAsNil() {
  20587. if d.h.DeleteOnNilMapValue {
  20588. delete(v, mk)
  20589. } else {
  20590. v[mk] = 0
  20591. }
  20592. continue
  20593. }
  20594. mv = int(dd.DecodeInt(intBitsize))
  20595. if v != nil {
  20596. v[mk] = mv
  20597. }
  20598. }
  20599. if cr != nil {
  20600. cr.sendContainerState(containerMapEnd)
  20601. }
  20602. return v, changed
  20603. }
  20604. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  20605. if rv.Kind() == reflect.Ptr {
  20606. vp := rv2i(rv).(*map[float64]int8)
  20607. if v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d); changed {
  20608. *vp = v
  20609. }
  20610. return
  20611. }
  20612. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  20613. }
  20614. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  20615. if v, changed := f.DecMapFloat64Int8V(*vp, true, d); changed {
  20616. *vp = v
  20617. }
  20618. }
  20619. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  20620. d *Decoder) (_ map[float64]int8, changed bool) {
  20621. dd, cr := d.d, d.cr
  20622. containerLen := dd.ReadMapStart()
  20623. if canChange && v == nil {
  20624. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20625. v = make(map[float64]int8, xlen)
  20626. changed = true
  20627. }
  20628. if containerLen == 0 {
  20629. if cr != nil {
  20630. cr.sendContainerState(containerMapEnd)
  20631. }
  20632. return v, changed
  20633. }
  20634. var mk float64
  20635. var mv int8
  20636. hasLen := containerLen > 0
  20637. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20638. if cr != nil {
  20639. cr.sendContainerState(containerMapKey)
  20640. }
  20641. mk = dd.DecodeFloat(false)
  20642. if cr != nil {
  20643. cr.sendContainerState(containerMapValue)
  20644. }
  20645. if dd.TryDecodeAsNil() {
  20646. if d.h.DeleteOnNilMapValue {
  20647. delete(v, mk)
  20648. } else {
  20649. v[mk] = 0
  20650. }
  20651. continue
  20652. }
  20653. mv = int8(dd.DecodeInt(8))
  20654. if v != nil {
  20655. v[mk] = mv
  20656. }
  20657. }
  20658. if cr != nil {
  20659. cr.sendContainerState(containerMapEnd)
  20660. }
  20661. return v, changed
  20662. }
  20663. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  20664. if rv.Kind() == reflect.Ptr {
  20665. vp := rv2i(rv).(*map[float64]int16)
  20666. if v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d); changed {
  20667. *vp = v
  20668. }
  20669. return
  20670. }
  20671. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  20672. }
  20673. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  20674. if v, changed := f.DecMapFloat64Int16V(*vp, true, d); changed {
  20675. *vp = v
  20676. }
  20677. }
  20678. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  20679. d *Decoder) (_ map[float64]int16, changed bool) {
  20680. dd, cr := d.d, d.cr
  20681. containerLen := dd.ReadMapStart()
  20682. if canChange && v == nil {
  20683. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20684. v = make(map[float64]int16, xlen)
  20685. changed = true
  20686. }
  20687. if containerLen == 0 {
  20688. if cr != nil {
  20689. cr.sendContainerState(containerMapEnd)
  20690. }
  20691. return v, changed
  20692. }
  20693. var mk float64
  20694. var mv int16
  20695. hasLen := containerLen > 0
  20696. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20697. if cr != nil {
  20698. cr.sendContainerState(containerMapKey)
  20699. }
  20700. mk = dd.DecodeFloat(false)
  20701. if cr != nil {
  20702. cr.sendContainerState(containerMapValue)
  20703. }
  20704. if dd.TryDecodeAsNil() {
  20705. if d.h.DeleteOnNilMapValue {
  20706. delete(v, mk)
  20707. } else {
  20708. v[mk] = 0
  20709. }
  20710. continue
  20711. }
  20712. mv = int16(dd.DecodeInt(16))
  20713. if v != nil {
  20714. v[mk] = mv
  20715. }
  20716. }
  20717. if cr != nil {
  20718. cr.sendContainerState(containerMapEnd)
  20719. }
  20720. return v, changed
  20721. }
  20722. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  20723. if rv.Kind() == reflect.Ptr {
  20724. vp := rv2i(rv).(*map[float64]int32)
  20725. if v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d); changed {
  20726. *vp = v
  20727. }
  20728. return
  20729. }
  20730. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  20731. }
  20732. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  20733. if v, changed := f.DecMapFloat64Int32V(*vp, true, d); changed {
  20734. *vp = v
  20735. }
  20736. }
  20737. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  20738. d *Decoder) (_ map[float64]int32, changed bool) {
  20739. dd, cr := d.d, d.cr
  20740. containerLen := dd.ReadMapStart()
  20741. if canChange && v == nil {
  20742. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20743. v = make(map[float64]int32, xlen)
  20744. changed = true
  20745. }
  20746. if containerLen == 0 {
  20747. if cr != nil {
  20748. cr.sendContainerState(containerMapEnd)
  20749. }
  20750. return v, changed
  20751. }
  20752. var mk float64
  20753. var mv int32
  20754. hasLen := containerLen > 0
  20755. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20756. if cr != nil {
  20757. cr.sendContainerState(containerMapKey)
  20758. }
  20759. mk = dd.DecodeFloat(false)
  20760. if cr != nil {
  20761. cr.sendContainerState(containerMapValue)
  20762. }
  20763. if dd.TryDecodeAsNil() {
  20764. if d.h.DeleteOnNilMapValue {
  20765. delete(v, mk)
  20766. } else {
  20767. v[mk] = 0
  20768. }
  20769. continue
  20770. }
  20771. mv = int32(dd.DecodeInt(32))
  20772. if v != nil {
  20773. v[mk] = mv
  20774. }
  20775. }
  20776. if cr != nil {
  20777. cr.sendContainerState(containerMapEnd)
  20778. }
  20779. return v, changed
  20780. }
  20781. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  20782. if rv.Kind() == reflect.Ptr {
  20783. vp := rv2i(rv).(*map[float64]int64)
  20784. if v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d); changed {
  20785. *vp = v
  20786. }
  20787. return
  20788. }
  20789. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  20790. }
  20791. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  20792. if v, changed := f.DecMapFloat64Int64V(*vp, true, d); changed {
  20793. *vp = v
  20794. }
  20795. }
  20796. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  20797. d *Decoder) (_ map[float64]int64, changed bool) {
  20798. dd, cr := d.d, d.cr
  20799. containerLen := dd.ReadMapStart()
  20800. if canChange && v == nil {
  20801. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20802. v = make(map[float64]int64, xlen)
  20803. changed = true
  20804. }
  20805. if containerLen == 0 {
  20806. if cr != nil {
  20807. cr.sendContainerState(containerMapEnd)
  20808. }
  20809. return v, changed
  20810. }
  20811. var mk float64
  20812. var mv int64
  20813. hasLen := containerLen > 0
  20814. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20815. if cr != nil {
  20816. cr.sendContainerState(containerMapKey)
  20817. }
  20818. mk = dd.DecodeFloat(false)
  20819. if cr != nil {
  20820. cr.sendContainerState(containerMapValue)
  20821. }
  20822. if dd.TryDecodeAsNil() {
  20823. if d.h.DeleteOnNilMapValue {
  20824. delete(v, mk)
  20825. } else {
  20826. v[mk] = 0
  20827. }
  20828. continue
  20829. }
  20830. mv = dd.DecodeInt(64)
  20831. if v != nil {
  20832. v[mk] = mv
  20833. }
  20834. }
  20835. if cr != nil {
  20836. cr.sendContainerState(containerMapEnd)
  20837. }
  20838. return v, changed
  20839. }
  20840. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  20841. if rv.Kind() == reflect.Ptr {
  20842. vp := rv2i(rv).(*map[float64]float32)
  20843. if v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d); changed {
  20844. *vp = v
  20845. }
  20846. return
  20847. }
  20848. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  20849. }
  20850. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  20851. if v, changed := f.DecMapFloat64Float32V(*vp, true, d); changed {
  20852. *vp = v
  20853. }
  20854. }
  20855. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  20856. d *Decoder) (_ map[float64]float32, changed bool) {
  20857. dd, cr := d.d, d.cr
  20858. containerLen := dd.ReadMapStart()
  20859. if canChange && v == nil {
  20860. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20861. v = make(map[float64]float32, xlen)
  20862. changed = true
  20863. }
  20864. if containerLen == 0 {
  20865. if cr != nil {
  20866. cr.sendContainerState(containerMapEnd)
  20867. }
  20868. return v, changed
  20869. }
  20870. var mk float64
  20871. var mv float32
  20872. hasLen := containerLen > 0
  20873. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20874. if cr != nil {
  20875. cr.sendContainerState(containerMapKey)
  20876. }
  20877. mk = dd.DecodeFloat(false)
  20878. if cr != nil {
  20879. cr.sendContainerState(containerMapValue)
  20880. }
  20881. if dd.TryDecodeAsNil() {
  20882. if d.h.DeleteOnNilMapValue {
  20883. delete(v, mk)
  20884. } else {
  20885. v[mk] = 0
  20886. }
  20887. continue
  20888. }
  20889. mv = float32(dd.DecodeFloat(true))
  20890. if v != nil {
  20891. v[mk] = mv
  20892. }
  20893. }
  20894. if cr != nil {
  20895. cr.sendContainerState(containerMapEnd)
  20896. }
  20897. return v, changed
  20898. }
  20899. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  20900. if rv.Kind() == reflect.Ptr {
  20901. vp := rv2i(rv).(*map[float64]float64)
  20902. if v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d); changed {
  20903. *vp = v
  20904. }
  20905. return
  20906. }
  20907. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  20908. }
  20909. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  20910. if v, changed := f.DecMapFloat64Float64V(*vp, true, d); changed {
  20911. *vp = v
  20912. }
  20913. }
  20914. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  20915. d *Decoder) (_ map[float64]float64, changed bool) {
  20916. dd, cr := d.d, d.cr
  20917. containerLen := dd.ReadMapStart()
  20918. if canChange && v == nil {
  20919. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  20920. v = make(map[float64]float64, xlen)
  20921. changed = true
  20922. }
  20923. if containerLen == 0 {
  20924. if cr != nil {
  20925. cr.sendContainerState(containerMapEnd)
  20926. }
  20927. return v, changed
  20928. }
  20929. var mk float64
  20930. var mv float64
  20931. hasLen := containerLen > 0
  20932. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20933. if cr != nil {
  20934. cr.sendContainerState(containerMapKey)
  20935. }
  20936. mk = dd.DecodeFloat(false)
  20937. if cr != nil {
  20938. cr.sendContainerState(containerMapValue)
  20939. }
  20940. if dd.TryDecodeAsNil() {
  20941. if d.h.DeleteOnNilMapValue {
  20942. delete(v, mk)
  20943. } else {
  20944. v[mk] = 0
  20945. }
  20946. continue
  20947. }
  20948. mv = dd.DecodeFloat(false)
  20949. if v != nil {
  20950. v[mk] = mv
  20951. }
  20952. }
  20953. if cr != nil {
  20954. cr.sendContainerState(containerMapEnd)
  20955. }
  20956. return v, changed
  20957. }
  20958. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  20959. if rv.Kind() == reflect.Ptr {
  20960. vp := rv2i(rv).(*map[float64]bool)
  20961. if v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d); changed {
  20962. *vp = v
  20963. }
  20964. return
  20965. }
  20966. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  20967. }
  20968. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  20969. if v, changed := f.DecMapFloat64BoolV(*vp, true, d); changed {
  20970. *vp = v
  20971. }
  20972. }
  20973. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  20974. d *Decoder) (_ map[float64]bool, changed bool) {
  20975. dd, cr := d.d, d.cr
  20976. containerLen := dd.ReadMapStart()
  20977. if canChange && v == nil {
  20978. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  20979. v = make(map[float64]bool, xlen)
  20980. changed = true
  20981. }
  20982. if containerLen == 0 {
  20983. if cr != nil {
  20984. cr.sendContainerState(containerMapEnd)
  20985. }
  20986. return v, changed
  20987. }
  20988. var mk float64
  20989. var mv bool
  20990. hasLen := containerLen > 0
  20991. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20992. if cr != nil {
  20993. cr.sendContainerState(containerMapKey)
  20994. }
  20995. mk = dd.DecodeFloat(false)
  20996. if cr != nil {
  20997. cr.sendContainerState(containerMapValue)
  20998. }
  20999. if dd.TryDecodeAsNil() {
  21000. if d.h.DeleteOnNilMapValue {
  21001. delete(v, mk)
  21002. } else {
  21003. v[mk] = false
  21004. }
  21005. continue
  21006. }
  21007. mv = dd.DecodeBool()
  21008. if v != nil {
  21009. v[mk] = mv
  21010. }
  21011. }
  21012. if cr != nil {
  21013. cr.sendContainerState(containerMapEnd)
  21014. }
  21015. return v, changed
  21016. }
  21017. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  21018. if rv.Kind() == reflect.Ptr {
  21019. vp := rv2i(rv).(*map[uint]interface{})
  21020. if v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d); changed {
  21021. *vp = v
  21022. }
  21023. return
  21024. }
  21025. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  21026. }
  21027. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  21028. if v, changed := f.DecMapUintIntfV(*vp, true, d); changed {
  21029. *vp = v
  21030. }
  21031. }
  21032. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  21033. d *Decoder) (_ map[uint]interface{}, changed bool) {
  21034. dd, cr := d.d, d.cr
  21035. containerLen := dd.ReadMapStart()
  21036. if canChange && v == nil {
  21037. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21038. v = make(map[uint]interface{}, xlen)
  21039. changed = true
  21040. }
  21041. if containerLen == 0 {
  21042. if cr != nil {
  21043. cr.sendContainerState(containerMapEnd)
  21044. }
  21045. return v, changed
  21046. }
  21047. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  21048. var mk uint
  21049. var mv interface{}
  21050. hasLen := containerLen > 0
  21051. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21052. if cr != nil {
  21053. cr.sendContainerState(containerMapKey)
  21054. }
  21055. mk = uint(dd.DecodeUint(uintBitsize))
  21056. if cr != nil {
  21057. cr.sendContainerState(containerMapValue)
  21058. }
  21059. if dd.TryDecodeAsNil() {
  21060. if d.h.DeleteOnNilMapValue {
  21061. delete(v, mk)
  21062. } else {
  21063. v[mk] = nil
  21064. }
  21065. continue
  21066. }
  21067. if mapGet {
  21068. mv = v[mk]
  21069. } else {
  21070. mv = nil
  21071. }
  21072. d.decode(&mv)
  21073. if v != nil {
  21074. v[mk] = mv
  21075. }
  21076. }
  21077. if cr != nil {
  21078. cr.sendContainerState(containerMapEnd)
  21079. }
  21080. return v, changed
  21081. }
  21082. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  21083. if rv.Kind() == reflect.Ptr {
  21084. vp := rv2i(rv).(*map[uint]string)
  21085. if v, changed := fastpathTV.DecMapUintStringV(*vp, true, d); changed {
  21086. *vp = v
  21087. }
  21088. return
  21089. }
  21090. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  21091. }
  21092. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  21093. if v, changed := f.DecMapUintStringV(*vp, true, d); changed {
  21094. *vp = v
  21095. }
  21096. }
  21097. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  21098. d *Decoder) (_ map[uint]string, changed bool) {
  21099. dd, cr := d.d, d.cr
  21100. containerLen := dd.ReadMapStart()
  21101. if canChange && v == nil {
  21102. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21103. v = make(map[uint]string, xlen)
  21104. changed = true
  21105. }
  21106. if containerLen == 0 {
  21107. if cr != nil {
  21108. cr.sendContainerState(containerMapEnd)
  21109. }
  21110. return v, changed
  21111. }
  21112. var mk uint
  21113. var mv string
  21114. hasLen := containerLen > 0
  21115. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21116. if cr != nil {
  21117. cr.sendContainerState(containerMapKey)
  21118. }
  21119. mk = uint(dd.DecodeUint(uintBitsize))
  21120. if cr != nil {
  21121. cr.sendContainerState(containerMapValue)
  21122. }
  21123. if dd.TryDecodeAsNil() {
  21124. if d.h.DeleteOnNilMapValue {
  21125. delete(v, mk)
  21126. } else {
  21127. v[mk] = ""
  21128. }
  21129. continue
  21130. }
  21131. mv = dd.DecodeString()
  21132. if v != nil {
  21133. v[mk] = mv
  21134. }
  21135. }
  21136. if cr != nil {
  21137. cr.sendContainerState(containerMapEnd)
  21138. }
  21139. return v, changed
  21140. }
  21141. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  21142. if rv.Kind() == reflect.Ptr {
  21143. vp := rv2i(rv).(*map[uint]uint)
  21144. if v, changed := fastpathTV.DecMapUintUintV(*vp, true, d); changed {
  21145. *vp = v
  21146. }
  21147. return
  21148. }
  21149. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  21150. }
  21151. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  21152. if v, changed := f.DecMapUintUintV(*vp, true, d); changed {
  21153. *vp = v
  21154. }
  21155. }
  21156. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  21157. d *Decoder) (_ map[uint]uint, changed bool) {
  21158. dd, cr := d.d, d.cr
  21159. containerLen := dd.ReadMapStart()
  21160. if canChange && v == nil {
  21161. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21162. v = make(map[uint]uint, xlen)
  21163. changed = true
  21164. }
  21165. if containerLen == 0 {
  21166. if cr != nil {
  21167. cr.sendContainerState(containerMapEnd)
  21168. }
  21169. return v, changed
  21170. }
  21171. var mk uint
  21172. var mv uint
  21173. hasLen := containerLen > 0
  21174. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21175. if cr != nil {
  21176. cr.sendContainerState(containerMapKey)
  21177. }
  21178. mk = uint(dd.DecodeUint(uintBitsize))
  21179. if cr != nil {
  21180. cr.sendContainerState(containerMapValue)
  21181. }
  21182. if dd.TryDecodeAsNil() {
  21183. if d.h.DeleteOnNilMapValue {
  21184. delete(v, mk)
  21185. } else {
  21186. v[mk] = 0
  21187. }
  21188. continue
  21189. }
  21190. mv = uint(dd.DecodeUint(uintBitsize))
  21191. if v != nil {
  21192. v[mk] = mv
  21193. }
  21194. }
  21195. if cr != nil {
  21196. cr.sendContainerState(containerMapEnd)
  21197. }
  21198. return v, changed
  21199. }
  21200. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  21201. if rv.Kind() == reflect.Ptr {
  21202. vp := rv2i(rv).(*map[uint]uint8)
  21203. if v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d); changed {
  21204. *vp = v
  21205. }
  21206. return
  21207. }
  21208. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  21209. }
  21210. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  21211. if v, changed := f.DecMapUintUint8V(*vp, true, d); changed {
  21212. *vp = v
  21213. }
  21214. }
  21215. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  21216. d *Decoder) (_ map[uint]uint8, changed bool) {
  21217. dd, cr := d.d, d.cr
  21218. containerLen := dd.ReadMapStart()
  21219. if canChange && v == nil {
  21220. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21221. v = make(map[uint]uint8, xlen)
  21222. changed = true
  21223. }
  21224. if containerLen == 0 {
  21225. if cr != nil {
  21226. cr.sendContainerState(containerMapEnd)
  21227. }
  21228. return v, changed
  21229. }
  21230. var mk uint
  21231. var mv uint8
  21232. hasLen := containerLen > 0
  21233. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21234. if cr != nil {
  21235. cr.sendContainerState(containerMapKey)
  21236. }
  21237. mk = uint(dd.DecodeUint(uintBitsize))
  21238. if cr != nil {
  21239. cr.sendContainerState(containerMapValue)
  21240. }
  21241. if dd.TryDecodeAsNil() {
  21242. if d.h.DeleteOnNilMapValue {
  21243. delete(v, mk)
  21244. } else {
  21245. v[mk] = 0
  21246. }
  21247. continue
  21248. }
  21249. mv = uint8(dd.DecodeUint(8))
  21250. if v != nil {
  21251. v[mk] = mv
  21252. }
  21253. }
  21254. if cr != nil {
  21255. cr.sendContainerState(containerMapEnd)
  21256. }
  21257. return v, changed
  21258. }
  21259. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  21260. if rv.Kind() == reflect.Ptr {
  21261. vp := rv2i(rv).(*map[uint]uint16)
  21262. if v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d); changed {
  21263. *vp = v
  21264. }
  21265. return
  21266. }
  21267. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  21268. }
  21269. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  21270. if v, changed := f.DecMapUintUint16V(*vp, true, d); changed {
  21271. *vp = v
  21272. }
  21273. }
  21274. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  21275. d *Decoder) (_ map[uint]uint16, changed bool) {
  21276. dd, cr := d.d, d.cr
  21277. containerLen := dd.ReadMapStart()
  21278. if canChange && v == nil {
  21279. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21280. v = make(map[uint]uint16, xlen)
  21281. changed = true
  21282. }
  21283. if containerLen == 0 {
  21284. if cr != nil {
  21285. cr.sendContainerState(containerMapEnd)
  21286. }
  21287. return v, changed
  21288. }
  21289. var mk uint
  21290. var mv uint16
  21291. hasLen := containerLen > 0
  21292. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21293. if cr != nil {
  21294. cr.sendContainerState(containerMapKey)
  21295. }
  21296. mk = uint(dd.DecodeUint(uintBitsize))
  21297. if cr != nil {
  21298. cr.sendContainerState(containerMapValue)
  21299. }
  21300. if dd.TryDecodeAsNil() {
  21301. if d.h.DeleteOnNilMapValue {
  21302. delete(v, mk)
  21303. } else {
  21304. v[mk] = 0
  21305. }
  21306. continue
  21307. }
  21308. mv = uint16(dd.DecodeUint(16))
  21309. if v != nil {
  21310. v[mk] = mv
  21311. }
  21312. }
  21313. if cr != nil {
  21314. cr.sendContainerState(containerMapEnd)
  21315. }
  21316. return v, changed
  21317. }
  21318. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  21319. if rv.Kind() == reflect.Ptr {
  21320. vp := rv2i(rv).(*map[uint]uint32)
  21321. if v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d); changed {
  21322. *vp = v
  21323. }
  21324. return
  21325. }
  21326. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  21327. }
  21328. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  21329. if v, changed := f.DecMapUintUint32V(*vp, true, d); changed {
  21330. *vp = v
  21331. }
  21332. }
  21333. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  21334. d *Decoder) (_ map[uint]uint32, changed bool) {
  21335. dd, cr := d.d, d.cr
  21336. containerLen := dd.ReadMapStart()
  21337. if canChange && v == nil {
  21338. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21339. v = make(map[uint]uint32, xlen)
  21340. changed = true
  21341. }
  21342. if containerLen == 0 {
  21343. if cr != nil {
  21344. cr.sendContainerState(containerMapEnd)
  21345. }
  21346. return v, changed
  21347. }
  21348. var mk uint
  21349. var mv uint32
  21350. hasLen := containerLen > 0
  21351. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21352. if cr != nil {
  21353. cr.sendContainerState(containerMapKey)
  21354. }
  21355. mk = uint(dd.DecodeUint(uintBitsize))
  21356. if cr != nil {
  21357. cr.sendContainerState(containerMapValue)
  21358. }
  21359. if dd.TryDecodeAsNil() {
  21360. if d.h.DeleteOnNilMapValue {
  21361. delete(v, mk)
  21362. } else {
  21363. v[mk] = 0
  21364. }
  21365. continue
  21366. }
  21367. mv = uint32(dd.DecodeUint(32))
  21368. if v != nil {
  21369. v[mk] = mv
  21370. }
  21371. }
  21372. if cr != nil {
  21373. cr.sendContainerState(containerMapEnd)
  21374. }
  21375. return v, changed
  21376. }
  21377. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  21378. if rv.Kind() == reflect.Ptr {
  21379. vp := rv2i(rv).(*map[uint]uint64)
  21380. if v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d); changed {
  21381. *vp = v
  21382. }
  21383. return
  21384. }
  21385. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  21386. }
  21387. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  21388. if v, changed := f.DecMapUintUint64V(*vp, true, d); changed {
  21389. *vp = v
  21390. }
  21391. }
  21392. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  21393. d *Decoder) (_ map[uint]uint64, changed bool) {
  21394. dd, cr := d.d, d.cr
  21395. containerLen := dd.ReadMapStart()
  21396. if canChange && v == nil {
  21397. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21398. v = make(map[uint]uint64, xlen)
  21399. changed = true
  21400. }
  21401. if containerLen == 0 {
  21402. if cr != nil {
  21403. cr.sendContainerState(containerMapEnd)
  21404. }
  21405. return v, changed
  21406. }
  21407. var mk uint
  21408. var mv uint64
  21409. hasLen := containerLen > 0
  21410. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21411. if cr != nil {
  21412. cr.sendContainerState(containerMapKey)
  21413. }
  21414. mk = uint(dd.DecodeUint(uintBitsize))
  21415. if cr != nil {
  21416. cr.sendContainerState(containerMapValue)
  21417. }
  21418. if dd.TryDecodeAsNil() {
  21419. if d.h.DeleteOnNilMapValue {
  21420. delete(v, mk)
  21421. } else {
  21422. v[mk] = 0
  21423. }
  21424. continue
  21425. }
  21426. mv = dd.DecodeUint(64)
  21427. if v != nil {
  21428. v[mk] = mv
  21429. }
  21430. }
  21431. if cr != nil {
  21432. cr.sendContainerState(containerMapEnd)
  21433. }
  21434. return v, changed
  21435. }
  21436. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  21437. if rv.Kind() == reflect.Ptr {
  21438. vp := rv2i(rv).(*map[uint]uintptr)
  21439. if v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d); changed {
  21440. *vp = v
  21441. }
  21442. return
  21443. }
  21444. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  21445. }
  21446. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  21447. if v, changed := f.DecMapUintUintptrV(*vp, true, d); changed {
  21448. *vp = v
  21449. }
  21450. }
  21451. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  21452. d *Decoder) (_ map[uint]uintptr, changed bool) {
  21453. dd, cr := d.d, d.cr
  21454. containerLen := dd.ReadMapStart()
  21455. if canChange && v == nil {
  21456. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21457. v = make(map[uint]uintptr, xlen)
  21458. changed = true
  21459. }
  21460. if containerLen == 0 {
  21461. if cr != nil {
  21462. cr.sendContainerState(containerMapEnd)
  21463. }
  21464. return v, changed
  21465. }
  21466. var mk uint
  21467. var mv uintptr
  21468. hasLen := containerLen > 0
  21469. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21470. if cr != nil {
  21471. cr.sendContainerState(containerMapKey)
  21472. }
  21473. mk = uint(dd.DecodeUint(uintBitsize))
  21474. if cr != nil {
  21475. cr.sendContainerState(containerMapValue)
  21476. }
  21477. if dd.TryDecodeAsNil() {
  21478. if d.h.DeleteOnNilMapValue {
  21479. delete(v, mk)
  21480. } else {
  21481. v[mk] = 0
  21482. }
  21483. continue
  21484. }
  21485. mv = uintptr(dd.DecodeUint(uintBitsize))
  21486. if v != nil {
  21487. v[mk] = mv
  21488. }
  21489. }
  21490. if cr != nil {
  21491. cr.sendContainerState(containerMapEnd)
  21492. }
  21493. return v, changed
  21494. }
  21495. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  21496. if rv.Kind() == reflect.Ptr {
  21497. vp := rv2i(rv).(*map[uint]int)
  21498. if v, changed := fastpathTV.DecMapUintIntV(*vp, true, d); changed {
  21499. *vp = v
  21500. }
  21501. return
  21502. }
  21503. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  21504. }
  21505. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  21506. if v, changed := f.DecMapUintIntV(*vp, true, d); changed {
  21507. *vp = v
  21508. }
  21509. }
  21510. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  21511. d *Decoder) (_ map[uint]int, changed bool) {
  21512. dd, cr := d.d, d.cr
  21513. containerLen := dd.ReadMapStart()
  21514. if canChange && v == nil {
  21515. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21516. v = make(map[uint]int, xlen)
  21517. changed = true
  21518. }
  21519. if containerLen == 0 {
  21520. if cr != nil {
  21521. cr.sendContainerState(containerMapEnd)
  21522. }
  21523. return v, changed
  21524. }
  21525. var mk uint
  21526. var mv int
  21527. hasLen := containerLen > 0
  21528. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21529. if cr != nil {
  21530. cr.sendContainerState(containerMapKey)
  21531. }
  21532. mk = uint(dd.DecodeUint(uintBitsize))
  21533. if cr != nil {
  21534. cr.sendContainerState(containerMapValue)
  21535. }
  21536. if dd.TryDecodeAsNil() {
  21537. if d.h.DeleteOnNilMapValue {
  21538. delete(v, mk)
  21539. } else {
  21540. v[mk] = 0
  21541. }
  21542. continue
  21543. }
  21544. mv = int(dd.DecodeInt(intBitsize))
  21545. if v != nil {
  21546. v[mk] = mv
  21547. }
  21548. }
  21549. if cr != nil {
  21550. cr.sendContainerState(containerMapEnd)
  21551. }
  21552. return v, changed
  21553. }
  21554. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  21555. if rv.Kind() == reflect.Ptr {
  21556. vp := rv2i(rv).(*map[uint]int8)
  21557. if v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d); changed {
  21558. *vp = v
  21559. }
  21560. return
  21561. }
  21562. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  21563. }
  21564. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  21565. if v, changed := f.DecMapUintInt8V(*vp, true, d); changed {
  21566. *vp = v
  21567. }
  21568. }
  21569. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  21570. d *Decoder) (_ map[uint]int8, changed bool) {
  21571. dd, cr := d.d, d.cr
  21572. containerLen := dd.ReadMapStart()
  21573. if canChange && v == nil {
  21574. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21575. v = make(map[uint]int8, xlen)
  21576. changed = true
  21577. }
  21578. if containerLen == 0 {
  21579. if cr != nil {
  21580. cr.sendContainerState(containerMapEnd)
  21581. }
  21582. return v, changed
  21583. }
  21584. var mk uint
  21585. var mv int8
  21586. hasLen := containerLen > 0
  21587. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21588. if cr != nil {
  21589. cr.sendContainerState(containerMapKey)
  21590. }
  21591. mk = uint(dd.DecodeUint(uintBitsize))
  21592. if cr != nil {
  21593. cr.sendContainerState(containerMapValue)
  21594. }
  21595. if dd.TryDecodeAsNil() {
  21596. if d.h.DeleteOnNilMapValue {
  21597. delete(v, mk)
  21598. } else {
  21599. v[mk] = 0
  21600. }
  21601. continue
  21602. }
  21603. mv = int8(dd.DecodeInt(8))
  21604. if v != nil {
  21605. v[mk] = mv
  21606. }
  21607. }
  21608. if cr != nil {
  21609. cr.sendContainerState(containerMapEnd)
  21610. }
  21611. return v, changed
  21612. }
  21613. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  21614. if rv.Kind() == reflect.Ptr {
  21615. vp := rv2i(rv).(*map[uint]int16)
  21616. if v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d); changed {
  21617. *vp = v
  21618. }
  21619. return
  21620. }
  21621. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  21622. }
  21623. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  21624. if v, changed := f.DecMapUintInt16V(*vp, true, d); changed {
  21625. *vp = v
  21626. }
  21627. }
  21628. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  21629. d *Decoder) (_ map[uint]int16, changed bool) {
  21630. dd, cr := d.d, d.cr
  21631. containerLen := dd.ReadMapStart()
  21632. if canChange && v == nil {
  21633. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21634. v = make(map[uint]int16, xlen)
  21635. changed = true
  21636. }
  21637. if containerLen == 0 {
  21638. if cr != nil {
  21639. cr.sendContainerState(containerMapEnd)
  21640. }
  21641. return v, changed
  21642. }
  21643. var mk uint
  21644. var mv int16
  21645. hasLen := containerLen > 0
  21646. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21647. if cr != nil {
  21648. cr.sendContainerState(containerMapKey)
  21649. }
  21650. mk = uint(dd.DecodeUint(uintBitsize))
  21651. if cr != nil {
  21652. cr.sendContainerState(containerMapValue)
  21653. }
  21654. if dd.TryDecodeAsNil() {
  21655. if d.h.DeleteOnNilMapValue {
  21656. delete(v, mk)
  21657. } else {
  21658. v[mk] = 0
  21659. }
  21660. continue
  21661. }
  21662. mv = int16(dd.DecodeInt(16))
  21663. if v != nil {
  21664. v[mk] = mv
  21665. }
  21666. }
  21667. if cr != nil {
  21668. cr.sendContainerState(containerMapEnd)
  21669. }
  21670. return v, changed
  21671. }
  21672. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  21673. if rv.Kind() == reflect.Ptr {
  21674. vp := rv2i(rv).(*map[uint]int32)
  21675. if v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d); changed {
  21676. *vp = v
  21677. }
  21678. return
  21679. }
  21680. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  21681. }
  21682. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  21683. if v, changed := f.DecMapUintInt32V(*vp, true, d); changed {
  21684. *vp = v
  21685. }
  21686. }
  21687. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  21688. d *Decoder) (_ map[uint]int32, changed bool) {
  21689. dd, cr := d.d, d.cr
  21690. containerLen := dd.ReadMapStart()
  21691. if canChange && v == nil {
  21692. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21693. v = make(map[uint]int32, xlen)
  21694. changed = true
  21695. }
  21696. if containerLen == 0 {
  21697. if cr != nil {
  21698. cr.sendContainerState(containerMapEnd)
  21699. }
  21700. return v, changed
  21701. }
  21702. var mk uint
  21703. var mv int32
  21704. hasLen := containerLen > 0
  21705. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21706. if cr != nil {
  21707. cr.sendContainerState(containerMapKey)
  21708. }
  21709. mk = uint(dd.DecodeUint(uintBitsize))
  21710. if cr != nil {
  21711. cr.sendContainerState(containerMapValue)
  21712. }
  21713. if dd.TryDecodeAsNil() {
  21714. if d.h.DeleteOnNilMapValue {
  21715. delete(v, mk)
  21716. } else {
  21717. v[mk] = 0
  21718. }
  21719. continue
  21720. }
  21721. mv = int32(dd.DecodeInt(32))
  21722. if v != nil {
  21723. v[mk] = mv
  21724. }
  21725. }
  21726. if cr != nil {
  21727. cr.sendContainerState(containerMapEnd)
  21728. }
  21729. return v, changed
  21730. }
  21731. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  21732. if rv.Kind() == reflect.Ptr {
  21733. vp := rv2i(rv).(*map[uint]int64)
  21734. if v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d); changed {
  21735. *vp = v
  21736. }
  21737. return
  21738. }
  21739. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  21740. }
  21741. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  21742. if v, changed := f.DecMapUintInt64V(*vp, true, d); changed {
  21743. *vp = v
  21744. }
  21745. }
  21746. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  21747. d *Decoder) (_ map[uint]int64, changed bool) {
  21748. dd, cr := d.d, d.cr
  21749. containerLen := dd.ReadMapStart()
  21750. if canChange && v == nil {
  21751. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21752. v = make(map[uint]int64, xlen)
  21753. changed = true
  21754. }
  21755. if containerLen == 0 {
  21756. if cr != nil {
  21757. cr.sendContainerState(containerMapEnd)
  21758. }
  21759. return v, changed
  21760. }
  21761. var mk uint
  21762. var mv int64
  21763. hasLen := containerLen > 0
  21764. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21765. if cr != nil {
  21766. cr.sendContainerState(containerMapKey)
  21767. }
  21768. mk = uint(dd.DecodeUint(uintBitsize))
  21769. if cr != nil {
  21770. cr.sendContainerState(containerMapValue)
  21771. }
  21772. if dd.TryDecodeAsNil() {
  21773. if d.h.DeleteOnNilMapValue {
  21774. delete(v, mk)
  21775. } else {
  21776. v[mk] = 0
  21777. }
  21778. continue
  21779. }
  21780. mv = dd.DecodeInt(64)
  21781. if v != nil {
  21782. v[mk] = mv
  21783. }
  21784. }
  21785. if cr != nil {
  21786. cr.sendContainerState(containerMapEnd)
  21787. }
  21788. return v, changed
  21789. }
  21790. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  21791. if rv.Kind() == reflect.Ptr {
  21792. vp := rv2i(rv).(*map[uint]float32)
  21793. if v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d); changed {
  21794. *vp = v
  21795. }
  21796. return
  21797. }
  21798. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  21799. }
  21800. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  21801. if v, changed := f.DecMapUintFloat32V(*vp, true, d); changed {
  21802. *vp = v
  21803. }
  21804. }
  21805. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  21806. d *Decoder) (_ map[uint]float32, changed bool) {
  21807. dd, cr := d.d, d.cr
  21808. containerLen := dd.ReadMapStart()
  21809. if canChange && v == nil {
  21810. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21811. v = make(map[uint]float32, xlen)
  21812. changed = true
  21813. }
  21814. if containerLen == 0 {
  21815. if cr != nil {
  21816. cr.sendContainerState(containerMapEnd)
  21817. }
  21818. return v, changed
  21819. }
  21820. var mk uint
  21821. var mv float32
  21822. hasLen := containerLen > 0
  21823. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21824. if cr != nil {
  21825. cr.sendContainerState(containerMapKey)
  21826. }
  21827. mk = uint(dd.DecodeUint(uintBitsize))
  21828. if cr != nil {
  21829. cr.sendContainerState(containerMapValue)
  21830. }
  21831. if dd.TryDecodeAsNil() {
  21832. if d.h.DeleteOnNilMapValue {
  21833. delete(v, mk)
  21834. } else {
  21835. v[mk] = 0
  21836. }
  21837. continue
  21838. }
  21839. mv = float32(dd.DecodeFloat(true))
  21840. if v != nil {
  21841. v[mk] = mv
  21842. }
  21843. }
  21844. if cr != nil {
  21845. cr.sendContainerState(containerMapEnd)
  21846. }
  21847. return v, changed
  21848. }
  21849. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  21850. if rv.Kind() == reflect.Ptr {
  21851. vp := rv2i(rv).(*map[uint]float64)
  21852. if v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d); changed {
  21853. *vp = v
  21854. }
  21855. return
  21856. }
  21857. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  21858. }
  21859. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  21860. if v, changed := f.DecMapUintFloat64V(*vp, true, d); changed {
  21861. *vp = v
  21862. }
  21863. }
  21864. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  21865. d *Decoder) (_ map[uint]float64, changed bool) {
  21866. dd, cr := d.d, d.cr
  21867. containerLen := dd.ReadMapStart()
  21868. if canChange && v == nil {
  21869. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21870. v = make(map[uint]float64, xlen)
  21871. changed = true
  21872. }
  21873. if containerLen == 0 {
  21874. if cr != nil {
  21875. cr.sendContainerState(containerMapEnd)
  21876. }
  21877. return v, changed
  21878. }
  21879. var mk uint
  21880. var mv float64
  21881. hasLen := containerLen > 0
  21882. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21883. if cr != nil {
  21884. cr.sendContainerState(containerMapKey)
  21885. }
  21886. mk = uint(dd.DecodeUint(uintBitsize))
  21887. if cr != nil {
  21888. cr.sendContainerState(containerMapValue)
  21889. }
  21890. if dd.TryDecodeAsNil() {
  21891. if d.h.DeleteOnNilMapValue {
  21892. delete(v, mk)
  21893. } else {
  21894. v[mk] = 0
  21895. }
  21896. continue
  21897. }
  21898. mv = dd.DecodeFloat(false)
  21899. if v != nil {
  21900. v[mk] = mv
  21901. }
  21902. }
  21903. if cr != nil {
  21904. cr.sendContainerState(containerMapEnd)
  21905. }
  21906. return v, changed
  21907. }
  21908. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  21909. if rv.Kind() == reflect.Ptr {
  21910. vp := rv2i(rv).(*map[uint]bool)
  21911. if v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d); changed {
  21912. *vp = v
  21913. }
  21914. return
  21915. }
  21916. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  21917. }
  21918. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  21919. if v, changed := f.DecMapUintBoolV(*vp, true, d); changed {
  21920. *vp = v
  21921. }
  21922. }
  21923. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  21924. d *Decoder) (_ map[uint]bool, changed bool) {
  21925. dd, cr := d.d, d.cr
  21926. containerLen := dd.ReadMapStart()
  21927. if canChange && v == nil {
  21928. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21929. v = make(map[uint]bool, xlen)
  21930. changed = true
  21931. }
  21932. if containerLen == 0 {
  21933. if cr != nil {
  21934. cr.sendContainerState(containerMapEnd)
  21935. }
  21936. return v, changed
  21937. }
  21938. var mk uint
  21939. var mv bool
  21940. hasLen := containerLen > 0
  21941. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21942. if cr != nil {
  21943. cr.sendContainerState(containerMapKey)
  21944. }
  21945. mk = uint(dd.DecodeUint(uintBitsize))
  21946. if cr != nil {
  21947. cr.sendContainerState(containerMapValue)
  21948. }
  21949. if dd.TryDecodeAsNil() {
  21950. if d.h.DeleteOnNilMapValue {
  21951. delete(v, mk)
  21952. } else {
  21953. v[mk] = false
  21954. }
  21955. continue
  21956. }
  21957. mv = dd.DecodeBool()
  21958. if v != nil {
  21959. v[mk] = mv
  21960. }
  21961. }
  21962. if cr != nil {
  21963. cr.sendContainerState(containerMapEnd)
  21964. }
  21965. return v, changed
  21966. }
  21967. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  21968. if rv.Kind() == reflect.Ptr {
  21969. vp := rv2i(rv).(*map[uint8]interface{})
  21970. if v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d); changed {
  21971. *vp = v
  21972. }
  21973. return
  21974. }
  21975. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  21976. }
  21977. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  21978. if v, changed := f.DecMapUint8IntfV(*vp, true, d); changed {
  21979. *vp = v
  21980. }
  21981. }
  21982. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  21983. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  21984. dd, cr := d.d, d.cr
  21985. containerLen := dd.ReadMapStart()
  21986. if canChange && v == nil {
  21987. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  21988. v = make(map[uint8]interface{}, xlen)
  21989. changed = true
  21990. }
  21991. if containerLen == 0 {
  21992. if cr != nil {
  21993. cr.sendContainerState(containerMapEnd)
  21994. }
  21995. return v, changed
  21996. }
  21997. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  21998. var mk uint8
  21999. var mv interface{}
  22000. hasLen := containerLen > 0
  22001. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22002. if cr != nil {
  22003. cr.sendContainerState(containerMapKey)
  22004. }
  22005. mk = uint8(dd.DecodeUint(8))
  22006. if cr != nil {
  22007. cr.sendContainerState(containerMapValue)
  22008. }
  22009. if dd.TryDecodeAsNil() {
  22010. if d.h.DeleteOnNilMapValue {
  22011. delete(v, mk)
  22012. } else {
  22013. v[mk] = nil
  22014. }
  22015. continue
  22016. }
  22017. if mapGet {
  22018. mv = v[mk]
  22019. } else {
  22020. mv = nil
  22021. }
  22022. d.decode(&mv)
  22023. if v != nil {
  22024. v[mk] = mv
  22025. }
  22026. }
  22027. if cr != nil {
  22028. cr.sendContainerState(containerMapEnd)
  22029. }
  22030. return v, changed
  22031. }
  22032. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  22033. if rv.Kind() == reflect.Ptr {
  22034. vp := rv2i(rv).(*map[uint8]string)
  22035. if v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d); changed {
  22036. *vp = v
  22037. }
  22038. return
  22039. }
  22040. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  22041. }
  22042. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  22043. if v, changed := f.DecMapUint8StringV(*vp, true, d); changed {
  22044. *vp = v
  22045. }
  22046. }
  22047. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  22048. d *Decoder) (_ map[uint8]string, changed bool) {
  22049. dd, cr := d.d, d.cr
  22050. containerLen := dd.ReadMapStart()
  22051. if canChange && v == nil {
  22052. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  22053. v = make(map[uint8]string, xlen)
  22054. changed = true
  22055. }
  22056. if containerLen == 0 {
  22057. if cr != nil {
  22058. cr.sendContainerState(containerMapEnd)
  22059. }
  22060. return v, changed
  22061. }
  22062. var mk uint8
  22063. var mv string
  22064. hasLen := containerLen > 0
  22065. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22066. if cr != nil {
  22067. cr.sendContainerState(containerMapKey)
  22068. }
  22069. mk = uint8(dd.DecodeUint(8))
  22070. if cr != nil {
  22071. cr.sendContainerState(containerMapValue)
  22072. }
  22073. if dd.TryDecodeAsNil() {
  22074. if d.h.DeleteOnNilMapValue {
  22075. delete(v, mk)
  22076. } else {
  22077. v[mk] = ""
  22078. }
  22079. continue
  22080. }
  22081. mv = dd.DecodeString()
  22082. if v != nil {
  22083. v[mk] = mv
  22084. }
  22085. }
  22086. if cr != nil {
  22087. cr.sendContainerState(containerMapEnd)
  22088. }
  22089. return v, changed
  22090. }
  22091. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  22092. if rv.Kind() == reflect.Ptr {
  22093. vp := rv2i(rv).(*map[uint8]uint)
  22094. if v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d); changed {
  22095. *vp = v
  22096. }
  22097. return
  22098. }
  22099. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  22100. }
  22101. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  22102. if v, changed := f.DecMapUint8UintV(*vp, true, d); changed {
  22103. *vp = v
  22104. }
  22105. }
  22106. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  22107. d *Decoder) (_ map[uint8]uint, changed bool) {
  22108. dd, cr := d.d, d.cr
  22109. containerLen := dd.ReadMapStart()
  22110. if canChange && v == nil {
  22111. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22112. v = make(map[uint8]uint, xlen)
  22113. changed = true
  22114. }
  22115. if containerLen == 0 {
  22116. if cr != nil {
  22117. cr.sendContainerState(containerMapEnd)
  22118. }
  22119. return v, changed
  22120. }
  22121. var mk uint8
  22122. var mv uint
  22123. hasLen := containerLen > 0
  22124. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22125. if cr != nil {
  22126. cr.sendContainerState(containerMapKey)
  22127. }
  22128. mk = uint8(dd.DecodeUint(8))
  22129. if cr != nil {
  22130. cr.sendContainerState(containerMapValue)
  22131. }
  22132. if dd.TryDecodeAsNil() {
  22133. if d.h.DeleteOnNilMapValue {
  22134. delete(v, mk)
  22135. } else {
  22136. v[mk] = 0
  22137. }
  22138. continue
  22139. }
  22140. mv = uint(dd.DecodeUint(uintBitsize))
  22141. if v != nil {
  22142. v[mk] = mv
  22143. }
  22144. }
  22145. if cr != nil {
  22146. cr.sendContainerState(containerMapEnd)
  22147. }
  22148. return v, changed
  22149. }
  22150. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  22151. if rv.Kind() == reflect.Ptr {
  22152. vp := rv2i(rv).(*map[uint8]uint8)
  22153. if v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d); changed {
  22154. *vp = v
  22155. }
  22156. return
  22157. }
  22158. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  22159. }
  22160. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  22161. if v, changed := f.DecMapUint8Uint8V(*vp, true, d); changed {
  22162. *vp = v
  22163. }
  22164. }
  22165. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  22166. d *Decoder) (_ map[uint8]uint8, changed bool) {
  22167. dd, cr := d.d, d.cr
  22168. containerLen := dd.ReadMapStart()
  22169. if canChange && v == nil {
  22170. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  22171. v = make(map[uint8]uint8, xlen)
  22172. changed = true
  22173. }
  22174. if containerLen == 0 {
  22175. if cr != nil {
  22176. cr.sendContainerState(containerMapEnd)
  22177. }
  22178. return v, changed
  22179. }
  22180. var mk uint8
  22181. var mv uint8
  22182. hasLen := containerLen > 0
  22183. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22184. if cr != nil {
  22185. cr.sendContainerState(containerMapKey)
  22186. }
  22187. mk = uint8(dd.DecodeUint(8))
  22188. if cr != nil {
  22189. cr.sendContainerState(containerMapValue)
  22190. }
  22191. if dd.TryDecodeAsNil() {
  22192. if d.h.DeleteOnNilMapValue {
  22193. delete(v, mk)
  22194. } else {
  22195. v[mk] = 0
  22196. }
  22197. continue
  22198. }
  22199. mv = uint8(dd.DecodeUint(8))
  22200. if v != nil {
  22201. v[mk] = mv
  22202. }
  22203. }
  22204. if cr != nil {
  22205. cr.sendContainerState(containerMapEnd)
  22206. }
  22207. return v, changed
  22208. }
  22209. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  22210. if rv.Kind() == reflect.Ptr {
  22211. vp := rv2i(rv).(*map[uint8]uint16)
  22212. if v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d); changed {
  22213. *vp = v
  22214. }
  22215. return
  22216. }
  22217. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  22218. }
  22219. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  22220. if v, changed := f.DecMapUint8Uint16V(*vp, true, d); changed {
  22221. *vp = v
  22222. }
  22223. }
  22224. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  22225. d *Decoder) (_ map[uint8]uint16, changed bool) {
  22226. dd, cr := d.d, d.cr
  22227. containerLen := dd.ReadMapStart()
  22228. if canChange && v == nil {
  22229. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  22230. v = make(map[uint8]uint16, xlen)
  22231. changed = true
  22232. }
  22233. if containerLen == 0 {
  22234. if cr != nil {
  22235. cr.sendContainerState(containerMapEnd)
  22236. }
  22237. return v, changed
  22238. }
  22239. var mk uint8
  22240. var mv uint16
  22241. hasLen := containerLen > 0
  22242. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22243. if cr != nil {
  22244. cr.sendContainerState(containerMapKey)
  22245. }
  22246. mk = uint8(dd.DecodeUint(8))
  22247. if cr != nil {
  22248. cr.sendContainerState(containerMapValue)
  22249. }
  22250. if dd.TryDecodeAsNil() {
  22251. if d.h.DeleteOnNilMapValue {
  22252. delete(v, mk)
  22253. } else {
  22254. v[mk] = 0
  22255. }
  22256. continue
  22257. }
  22258. mv = uint16(dd.DecodeUint(16))
  22259. if v != nil {
  22260. v[mk] = mv
  22261. }
  22262. }
  22263. if cr != nil {
  22264. cr.sendContainerState(containerMapEnd)
  22265. }
  22266. return v, changed
  22267. }
  22268. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  22269. if rv.Kind() == reflect.Ptr {
  22270. vp := rv2i(rv).(*map[uint8]uint32)
  22271. if v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d); changed {
  22272. *vp = v
  22273. }
  22274. return
  22275. }
  22276. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  22277. }
  22278. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  22279. if v, changed := f.DecMapUint8Uint32V(*vp, true, d); changed {
  22280. *vp = v
  22281. }
  22282. }
  22283. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  22284. d *Decoder) (_ map[uint8]uint32, changed bool) {
  22285. dd, cr := d.d, d.cr
  22286. containerLen := dd.ReadMapStart()
  22287. if canChange && v == nil {
  22288. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  22289. v = make(map[uint8]uint32, xlen)
  22290. changed = true
  22291. }
  22292. if containerLen == 0 {
  22293. if cr != nil {
  22294. cr.sendContainerState(containerMapEnd)
  22295. }
  22296. return v, changed
  22297. }
  22298. var mk uint8
  22299. var mv uint32
  22300. hasLen := containerLen > 0
  22301. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22302. if cr != nil {
  22303. cr.sendContainerState(containerMapKey)
  22304. }
  22305. mk = uint8(dd.DecodeUint(8))
  22306. if cr != nil {
  22307. cr.sendContainerState(containerMapValue)
  22308. }
  22309. if dd.TryDecodeAsNil() {
  22310. if d.h.DeleteOnNilMapValue {
  22311. delete(v, mk)
  22312. } else {
  22313. v[mk] = 0
  22314. }
  22315. continue
  22316. }
  22317. mv = uint32(dd.DecodeUint(32))
  22318. if v != nil {
  22319. v[mk] = mv
  22320. }
  22321. }
  22322. if cr != nil {
  22323. cr.sendContainerState(containerMapEnd)
  22324. }
  22325. return v, changed
  22326. }
  22327. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  22328. if rv.Kind() == reflect.Ptr {
  22329. vp := rv2i(rv).(*map[uint8]uint64)
  22330. if v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d); changed {
  22331. *vp = v
  22332. }
  22333. return
  22334. }
  22335. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  22336. }
  22337. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  22338. if v, changed := f.DecMapUint8Uint64V(*vp, true, d); changed {
  22339. *vp = v
  22340. }
  22341. }
  22342. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  22343. d *Decoder) (_ map[uint8]uint64, changed bool) {
  22344. dd, cr := d.d, d.cr
  22345. containerLen := dd.ReadMapStart()
  22346. if canChange && v == nil {
  22347. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22348. v = make(map[uint8]uint64, xlen)
  22349. changed = true
  22350. }
  22351. if containerLen == 0 {
  22352. if cr != nil {
  22353. cr.sendContainerState(containerMapEnd)
  22354. }
  22355. return v, changed
  22356. }
  22357. var mk uint8
  22358. var mv uint64
  22359. hasLen := containerLen > 0
  22360. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22361. if cr != nil {
  22362. cr.sendContainerState(containerMapKey)
  22363. }
  22364. mk = uint8(dd.DecodeUint(8))
  22365. if cr != nil {
  22366. cr.sendContainerState(containerMapValue)
  22367. }
  22368. if dd.TryDecodeAsNil() {
  22369. if d.h.DeleteOnNilMapValue {
  22370. delete(v, mk)
  22371. } else {
  22372. v[mk] = 0
  22373. }
  22374. continue
  22375. }
  22376. mv = dd.DecodeUint(64)
  22377. if v != nil {
  22378. v[mk] = mv
  22379. }
  22380. }
  22381. if cr != nil {
  22382. cr.sendContainerState(containerMapEnd)
  22383. }
  22384. return v, changed
  22385. }
  22386. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  22387. if rv.Kind() == reflect.Ptr {
  22388. vp := rv2i(rv).(*map[uint8]uintptr)
  22389. if v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d); changed {
  22390. *vp = v
  22391. }
  22392. return
  22393. }
  22394. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  22395. }
  22396. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  22397. if v, changed := f.DecMapUint8UintptrV(*vp, true, d); changed {
  22398. *vp = v
  22399. }
  22400. }
  22401. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  22402. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  22403. dd, cr := d.d, d.cr
  22404. containerLen := dd.ReadMapStart()
  22405. if canChange && v == nil {
  22406. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22407. v = make(map[uint8]uintptr, xlen)
  22408. changed = true
  22409. }
  22410. if containerLen == 0 {
  22411. if cr != nil {
  22412. cr.sendContainerState(containerMapEnd)
  22413. }
  22414. return v, changed
  22415. }
  22416. var mk uint8
  22417. var mv uintptr
  22418. hasLen := containerLen > 0
  22419. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22420. if cr != nil {
  22421. cr.sendContainerState(containerMapKey)
  22422. }
  22423. mk = uint8(dd.DecodeUint(8))
  22424. if cr != nil {
  22425. cr.sendContainerState(containerMapValue)
  22426. }
  22427. if dd.TryDecodeAsNil() {
  22428. if d.h.DeleteOnNilMapValue {
  22429. delete(v, mk)
  22430. } else {
  22431. v[mk] = 0
  22432. }
  22433. continue
  22434. }
  22435. mv = uintptr(dd.DecodeUint(uintBitsize))
  22436. if v != nil {
  22437. v[mk] = mv
  22438. }
  22439. }
  22440. if cr != nil {
  22441. cr.sendContainerState(containerMapEnd)
  22442. }
  22443. return v, changed
  22444. }
  22445. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  22446. if rv.Kind() == reflect.Ptr {
  22447. vp := rv2i(rv).(*map[uint8]int)
  22448. if v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d); changed {
  22449. *vp = v
  22450. }
  22451. return
  22452. }
  22453. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  22454. }
  22455. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  22456. if v, changed := f.DecMapUint8IntV(*vp, true, d); changed {
  22457. *vp = v
  22458. }
  22459. }
  22460. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  22461. d *Decoder) (_ map[uint8]int, changed bool) {
  22462. dd, cr := d.d, d.cr
  22463. containerLen := dd.ReadMapStart()
  22464. if canChange && v == nil {
  22465. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22466. v = make(map[uint8]int, xlen)
  22467. changed = true
  22468. }
  22469. if containerLen == 0 {
  22470. if cr != nil {
  22471. cr.sendContainerState(containerMapEnd)
  22472. }
  22473. return v, changed
  22474. }
  22475. var mk uint8
  22476. var mv int
  22477. hasLen := containerLen > 0
  22478. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22479. if cr != nil {
  22480. cr.sendContainerState(containerMapKey)
  22481. }
  22482. mk = uint8(dd.DecodeUint(8))
  22483. if cr != nil {
  22484. cr.sendContainerState(containerMapValue)
  22485. }
  22486. if dd.TryDecodeAsNil() {
  22487. if d.h.DeleteOnNilMapValue {
  22488. delete(v, mk)
  22489. } else {
  22490. v[mk] = 0
  22491. }
  22492. continue
  22493. }
  22494. mv = int(dd.DecodeInt(intBitsize))
  22495. if v != nil {
  22496. v[mk] = mv
  22497. }
  22498. }
  22499. if cr != nil {
  22500. cr.sendContainerState(containerMapEnd)
  22501. }
  22502. return v, changed
  22503. }
  22504. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  22505. if rv.Kind() == reflect.Ptr {
  22506. vp := rv2i(rv).(*map[uint8]int8)
  22507. if v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d); changed {
  22508. *vp = v
  22509. }
  22510. return
  22511. }
  22512. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  22513. }
  22514. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  22515. if v, changed := f.DecMapUint8Int8V(*vp, true, d); changed {
  22516. *vp = v
  22517. }
  22518. }
  22519. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  22520. d *Decoder) (_ map[uint8]int8, changed bool) {
  22521. dd, cr := d.d, d.cr
  22522. containerLen := dd.ReadMapStart()
  22523. if canChange && v == nil {
  22524. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  22525. v = make(map[uint8]int8, xlen)
  22526. changed = true
  22527. }
  22528. if containerLen == 0 {
  22529. if cr != nil {
  22530. cr.sendContainerState(containerMapEnd)
  22531. }
  22532. return v, changed
  22533. }
  22534. var mk uint8
  22535. var mv int8
  22536. hasLen := containerLen > 0
  22537. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22538. if cr != nil {
  22539. cr.sendContainerState(containerMapKey)
  22540. }
  22541. mk = uint8(dd.DecodeUint(8))
  22542. if cr != nil {
  22543. cr.sendContainerState(containerMapValue)
  22544. }
  22545. if dd.TryDecodeAsNil() {
  22546. if d.h.DeleteOnNilMapValue {
  22547. delete(v, mk)
  22548. } else {
  22549. v[mk] = 0
  22550. }
  22551. continue
  22552. }
  22553. mv = int8(dd.DecodeInt(8))
  22554. if v != nil {
  22555. v[mk] = mv
  22556. }
  22557. }
  22558. if cr != nil {
  22559. cr.sendContainerState(containerMapEnd)
  22560. }
  22561. return v, changed
  22562. }
  22563. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  22564. if rv.Kind() == reflect.Ptr {
  22565. vp := rv2i(rv).(*map[uint8]int16)
  22566. if v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d); changed {
  22567. *vp = v
  22568. }
  22569. return
  22570. }
  22571. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  22572. }
  22573. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  22574. if v, changed := f.DecMapUint8Int16V(*vp, true, d); changed {
  22575. *vp = v
  22576. }
  22577. }
  22578. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  22579. d *Decoder) (_ map[uint8]int16, changed bool) {
  22580. dd, cr := d.d, d.cr
  22581. containerLen := dd.ReadMapStart()
  22582. if canChange && v == nil {
  22583. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  22584. v = make(map[uint8]int16, xlen)
  22585. changed = true
  22586. }
  22587. if containerLen == 0 {
  22588. if cr != nil {
  22589. cr.sendContainerState(containerMapEnd)
  22590. }
  22591. return v, changed
  22592. }
  22593. var mk uint8
  22594. var mv int16
  22595. hasLen := containerLen > 0
  22596. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22597. if cr != nil {
  22598. cr.sendContainerState(containerMapKey)
  22599. }
  22600. mk = uint8(dd.DecodeUint(8))
  22601. if cr != nil {
  22602. cr.sendContainerState(containerMapValue)
  22603. }
  22604. if dd.TryDecodeAsNil() {
  22605. if d.h.DeleteOnNilMapValue {
  22606. delete(v, mk)
  22607. } else {
  22608. v[mk] = 0
  22609. }
  22610. continue
  22611. }
  22612. mv = int16(dd.DecodeInt(16))
  22613. if v != nil {
  22614. v[mk] = mv
  22615. }
  22616. }
  22617. if cr != nil {
  22618. cr.sendContainerState(containerMapEnd)
  22619. }
  22620. return v, changed
  22621. }
  22622. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  22623. if rv.Kind() == reflect.Ptr {
  22624. vp := rv2i(rv).(*map[uint8]int32)
  22625. if v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d); changed {
  22626. *vp = v
  22627. }
  22628. return
  22629. }
  22630. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  22631. }
  22632. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  22633. if v, changed := f.DecMapUint8Int32V(*vp, true, d); changed {
  22634. *vp = v
  22635. }
  22636. }
  22637. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  22638. d *Decoder) (_ map[uint8]int32, changed bool) {
  22639. dd, cr := d.d, d.cr
  22640. containerLen := dd.ReadMapStart()
  22641. if canChange && v == nil {
  22642. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  22643. v = make(map[uint8]int32, xlen)
  22644. changed = true
  22645. }
  22646. if containerLen == 0 {
  22647. if cr != nil {
  22648. cr.sendContainerState(containerMapEnd)
  22649. }
  22650. return v, changed
  22651. }
  22652. var mk uint8
  22653. var mv int32
  22654. hasLen := containerLen > 0
  22655. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22656. if cr != nil {
  22657. cr.sendContainerState(containerMapKey)
  22658. }
  22659. mk = uint8(dd.DecodeUint(8))
  22660. if cr != nil {
  22661. cr.sendContainerState(containerMapValue)
  22662. }
  22663. if dd.TryDecodeAsNil() {
  22664. if d.h.DeleteOnNilMapValue {
  22665. delete(v, mk)
  22666. } else {
  22667. v[mk] = 0
  22668. }
  22669. continue
  22670. }
  22671. mv = int32(dd.DecodeInt(32))
  22672. if v != nil {
  22673. v[mk] = mv
  22674. }
  22675. }
  22676. if cr != nil {
  22677. cr.sendContainerState(containerMapEnd)
  22678. }
  22679. return v, changed
  22680. }
  22681. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  22682. if rv.Kind() == reflect.Ptr {
  22683. vp := rv2i(rv).(*map[uint8]int64)
  22684. if v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d); changed {
  22685. *vp = v
  22686. }
  22687. return
  22688. }
  22689. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  22690. }
  22691. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  22692. if v, changed := f.DecMapUint8Int64V(*vp, true, d); changed {
  22693. *vp = v
  22694. }
  22695. }
  22696. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  22697. d *Decoder) (_ map[uint8]int64, changed bool) {
  22698. dd, cr := d.d, d.cr
  22699. containerLen := dd.ReadMapStart()
  22700. if canChange && v == nil {
  22701. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22702. v = make(map[uint8]int64, xlen)
  22703. changed = true
  22704. }
  22705. if containerLen == 0 {
  22706. if cr != nil {
  22707. cr.sendContainerState(containerMapEnd)
  22708. }
  22709. return v, changed
  22710. }
  22711. var mk uint8
  22712. var mv int64
  22713. hasLen := containerLen > 0
  22714. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22715. if cr != nil {
  22716. cr.sendContainerState(containerMapKey)
  22717. }
  22718. mk = uint8(dd.DecodeUint(8))
  22719. if cr != nil {
  22720. cr.sendContainerState(containerMapValue)
  22721. }
  22722. if dd.TryDecodeAsNil() {
  22723. if d.h.DeleteOnNilMapValue {
  22724. delete(v, mk)
  22725. } else {
  22726. v[mk] = 0
  22727. }
  22728. continue
  22729. }
  22730. mv = dd.DecodeInt(64)
  22731. if v != nil {
  22732. v[mk] = mv
  22733. }
  22734. }
  22735. if cr != nil {
  22736. cr.sendContainerState(containerMapEnd)
  22737. }
  22738. return v, changed
  22739. }
  22740. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  22741. if rv.Kind() == reflect.Ptr {
  22742. vp := rv2i(rv).(*map[uint8]float32)
  22743. if v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d); changed {
  22744. *vp = v
  22745. }
  22746. return
  22747. }
  22748. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  22749. }
  22750. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  22751. if v, changed := f.DecMapUint8Float32V(*vp, true, d); changed {
  22752. *vp = v
  22753. }
  22754. }
  22755. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  22756. d *Decoder) (_ map[uint8]float32, changed bool) {
  22757. dd, cr := d.d, d.cr
  22758. containerLen := dd.ReadMapStart()
  22759. if canChange && v == nil {
  22760. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  22761. v = make(map[uint8]float32, xlen)
  22762. changed = true
  22763. }
  22764. if containerLen == 0 {
  22765. if cr != nil {
  22766. cr.sendContainerState(containerMapEnd)
  22767. }
  22768. return v, changed
  22769. }
  22770. var mk uint8
  22771. var mv float32
  22772. hasLen := containerLen > 0
  22773. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22774. if cr != nil {
  22775. cr.sendContainerState(containerMapKey)
  22776. }
  22777. mk = uint8(dd.DecodeUint(8))
  22778. if cr != nil {
  22779. cr.sendContainerState(containerMapValue)
  22780. }
  22781. if dd.TryDecodeAsNil() {
  22782. if d.h.DeleteOnNilMapValue {
  22783. delete(v, mk)
  22784. } else {
  22785. v[mk] = 0
  22786. }
  22787. continue
  22788. }
  22789. mv = float32(dd.DecodeFloat(true))
  22790. if v != nil {
  22791. v[mk] = mv
  22792. }
  22793. }
  22794. if cr != nil {
  22795. cr.sendContainerState(containerMapEnd)
  22796. }
  22797. return v, changed
  22798. }
  22799. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  22800. if rv.Kind() == reflect.Ptr {
  22801. vp := rv2i(rv).(*map[uint8]float64)
  22802. if v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d); changed {
  22803. *vp = v
  22804. }
  22805. return
  22806. }
  22807. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  22808. }
  22809. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  22810. if v, changed := f.DecMapUint8Float64V(*vp, true, d); changed {
  22811. *vp = v
  22812. }
  22813. }
  22814. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  22815. d *Decoder) (_ map[uint8]float64, changed bool) {
  22816. dd, cr := d.d, d.cr
  22817. containerLen := dd.ReadMapStart()
  22818. if canChange && v == nil {
  22819. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22820. v = make(map[uint8]float64, xlen)
  22821. changed = true
  22822. }
  22823. if containerLen == 0 {
  22824. if cr != nil {
  22825. cr.sendContainerState(containerMapEnd)
  22826. }
  22827. return v, changed
  22828. }
  22829. var mk uint8
  22830. var mv float64
  22831. hasLen := containerLen > 0
  22832. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22833. if cr != nil {
  22834. cr.sendContainerState(containerMapKey)
  22835. }
  22836. mk = uint8(dd.DecodeUint(8))
  22837. if cr != nil {
  22838. cr.sendContainerState(containerMapValue)
  22839. }
  22840. if dd.TryDecodeAsNil() {
  22841. if d.h.DeleteOnNilMapValue {
  22842. delete(v, mk)
  22843. } else {
  22844. v[mk] = 0
  22845. }
  22846. continue
  22847. }
  22848. mv = dd.DecodeFloat(false)
  22849. if v != nil {
  22850. v[mk] = mv
  22851. }
  22852. }
  22853. if cr != nil {
  22854. cr.sendContainerState(containerMapEnd)
  22855. }
  22856. return v, changed
  22857. }
  22858. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  22859. if rv.Kind() == reflect.Ptr {
  22860. vp := rv2i(rv).(*map[uint8]bool)
  22861. if v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d); changed {
  22862. *vp = v
  22863. }
  22864. return
  22865. }
  22866. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  22867. }
  22868. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  22869. if v, changed := f.DecMapUint8BoolV(*vp, true, d); changed {
  22870. *vp = v
  22871. }
  22872. }
  22873. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  22874. d *Decoder) (_ map[uint8]bool, changed bool) {
  22875. dd, cr := d.d, d.cr
  22876. containerLen := dd.ReadMapStart()
  22877. if canChange && v == nil {
  22878. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  22879. v = make(map[uint8]bool, xlen)
  22880. changed = true
  22881. }
  22882. if containerLen == 0 {
  22883. if cr != nil {
  22884. cr.sendContainerState(containerMapEnd)
  22885. }
  22886. return v, changed
  22887. }
  22888. var mk uint8
  22889. var mv bool
  22890. hasLen := containerLen > 0
  22891. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22892. if cr != nil {
  22893. cr.sendContainerState(containerMapKey)
  22894. }
  22895. mk = uint8(dd.DecodeUint(8))
  22896. if cr != nil {
  22897. cr.sendContainerState(containerMapValue)
  22898. }
  22899. if dd.TryDecodeAsNil() {
  22900. if d.h.DeleteOnNilMapValue {
  22901. delete(v, mk)
  22902. } else {
  22903. v[mk] = false
  22904. }
  22905. continue
  22906. }
  22907. mv = dd.DecodeBool()
  22908. if v != nil {
  22909. v[mk] = mv
  22910. }
  22911. }
  22912. if cr != nil {
  22913. cr.sendContainerState(containerMapEnd)
  22914. }
  22915. return v, changed
  22916. }
  22917. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  22918. if rv.Kind() == reflect.Ptr {
  22919. vp := rv2i(rv).(*map[uint16]interface{})
  22920. if v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d); changed {
  22921. *vp = v
  22922. }
  22923. return
  22924. }
  22925. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  22926. }
  22927. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  22928. if v, changed := f.DecMapUint16IntfV(*vp, true, d); changed {
  22929. *vp = v
  22930. }
  22931. }
  22932. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  22933. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  22934. dd, cr := d.d, d.cr
  22935. containerLen := dd.ReadMapStart()
  22936. if canChange && v == nil {
  22937. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  22938. v = make(map[uint16]interface{}, xlen)
  22939. changed = true
  22940. }
  22941. if containerLen == 0 {
  22942. if cr != nil {
  22943. cr.sendContainerState(containerMapEnd)
  22944. }
  22945. return v, changed
  22946. }
  22947. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  22948. var mk uint16
  22949. var mv interface{}
  22950. hasLen := containerLen > 0
  22951. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22952. if cr != nil {
  22953. cr.sendContainerState(containerMapKey)
  22954. }
  22955. mk = uint16(dd.DecodeUint(16))
  22956. if cr != nil {
  22957. cr.sendContainerState(containerMapValue)
  22958. }
  22959. if dd.TryDecodeAsNil() {
  22960. if d.h.DeleteOnNilMapValue {
  22961. delete(v, mk)
  22962. } else {
  22963. v[mk] = nil
  22964. }
  22965. continue
  22966. }
  22967. if mapGet {
  22968. mv = v[mk]
  22969. } else {
  22970. mv = nil
  22971. }
  22972. d.decode(&mv)
  22973. if v != nil {
  22974. v[mk] = mv
  22975. }
  22976. }
  22977. if cr != nil {
  22978. cr.sendContainerState(containerMapEnd)
  22979. }
  22980. return v, changed
  22981. }
  22982. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  22983. if rv.Kind() == reflect.Ptr {
  22984. vp := rv2i(rv).(*map[uint16]string)
  22985. if v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d); changed {
  22986. *vp = v
  22987. }
  22988. return
  22989. }
  22990. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  22991. }
  22992. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  22993. if v, changed := f.DecMapUint16StringV(*vp, true, d); changed {
  22994. *vp = v
  22995. }
  22996. }
  22997. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  22998. d *Decoder) (_ map[uint16]string, changed bool) {
  22999. dd, cr := d.d, d.cr
  23000. containerLen := dd.ReadMapStart()
  23001. if canChange && v == nil {
  23002. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  23003. v = make(map[uint16]string, xlen)
  23004. changed = true
  23005. }
  23006. if containerLen == 0 {
  23007. if cr != nil {
  23008. cr.sendContainerState(containerMapEnd)
  23009. }
  23010. return v, changed
  23011. }
  23012. var mk uint16
  23013. var mv string
  23014. hasLen := containerLen > 0
  23015. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23016. if cr != nil {
  23017. cr.sendContainerState(containerMapKey)
  23018. }
  23019. mk = uint16(dd.DecodeUint(16))
  23020. if cr != nil {
  23021. cr.sendContainerState(containerMapValue)
  23022. }
  23023. if dd.TryDecodeAsNil() {
  23024. if d.h.DeleteOnNilMapValue {
  23025. delete(v, mk)
  23026. } else {
  23027. v[mk] = ""
  23028. }
  23029. continue
  23030. }
  23031. mv = dd.DecodeString()
  23032. if v != nil {
  23033. v[mk] = mv
  23034. }
  23035. }
  23036. if cr != nil {
  23037. cr.sendContainerState(containerMapEnd)
  23038. }
  23039. return v, changed
  23040. }
  23041. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  23042. if rv.Kind() == reflect.Ptr {
  23043. vp := rv2i(rv).(*map[uint16]uint)
  23044. if v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d); changed {
  23045. *vp = v
  23046. }
  23047. return
  23048. }
  23049. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  23050. }
  23051. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  23052. if v, changed := f.DecMapUint16UintV(*vp, true, d); changed {
  23053. *vp = v
  23054. }
  23055. }
  23056. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  23057. d *Decoder) (_ map[uint16]uint, changed bool) {
  23058. dd, cr := d.d, d.cr
  23059. containerLen := dd.ReadMapStart()
  23060. if canChange && v == nil {
  23061. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23062. v = make(map[uint16]uint, xlen)
  23063. changed = true
  23064. }
  23065. if containerLen == 0 {
  23066. if cr != nil {
  23067. cr.sendContainerState(containerMapEnd)
  23068. }
  23069. return v, changed
  23070. }
  23071. var mk uint16
  23072. var mv uint
  23073. hasLen := containerLen > 0
  23074. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23075. if cr != nil {
  23076. cr.sendContainerState(containerMapKey)
  23077. }
  23078. mk = uint16(dd.DecodeUint(16))
  23079. if cr != nil {
  23080. cr.sendContainerState(containerMapValue)
  23081. }
  23082. if dd.TryDecodeAsNil() {
  23083. if d.h.DeleteOnNilMapValue {
  23084. delete(v, mk)
  23085. } else {
  23086. v[mk] = 0
  23087. }
  23088. continue
  23089. }
  23090. mv = uint(dd.DecodeUint(uintBitsize))
  23091. if v != nil {
  23092. v[mk] = mv
  23093. }
  23094. }
  23095. if cr != nil {
  23096. cr.sendContainerState(containerMapEnd)
  23097. }
  23098. return v, changed
  23099. }
  23100. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  23101. if rv.Kind() == reflect.Ptr {
  23102. vp := rv2i(rv).(*map[uint16]uint8)
  23103. if v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d); changed {
  23104. *vp = v
  23105. }
  23106. return
  23107. }
  23108. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  23109. }
  23110. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  23111. if v, changed := f.DecMapUint16Uint8V(*vp, true, d); changed {
  23112. *vp = v
  23113. }
  23114. }
  23115. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  23116. d *Decoder) (_ map[uint16]uint8, changed bool) {
  23117. dd, cr := d.d, d.cr
  23118. containerLen := dd.ReadMapStart()
  23119. if canChange && v == nil {
  23120. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  23121. v = make(map[uint16]uint8, xlen)
  23122. changed = true
  23123. }
  23124. if containerLen == 0 {
  23125. if cr != nil {
  23126. cr.sendContainerState(containerMapEnd)
  23127. }
  23128. return v, changed
  23129. }
  23130. var mk uint16
  23131. var mv uint8
  23132. hasLen := containerLen > 0
  23133. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23134. if cr != nil {
  23135. cr.sendContainerState(containerMapKey)
  23136. }
  23137. mk = uint16(dd.DecodeUint(16))
  23138. if cr != nil {
  23139. cr.sendContainerState(containerMapValue)
  23140. }
  23141. if dd.TryDecodeAsNil() {
  23142. if d.h.DeleteOnNilMapValue {
  23143. delete(v, mk)
  23144. } else {
  23145. v[mk] = 0
  23146. }
  23147. continue
  23148. }
  23149. mv = uint8(dd.DecodeUint(8))
  23150. if v != nil {
  23151. v[mk] = mv
  23152. }
  23153. }
  23154. if cr != nil {
  23155. cr.sendContainerState(containerMapEnd)
  23156. }
  23157. return v, changed
  23158. }
  23159. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  23160. if rv.Kind() == reflect.Ptr {
  23161. vp := rv2i(rv).(*map[uint16]uint16)
  23162. if v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d); changed {
  23163. *vp = v
  23164. }
  23165. return
  23166. }
  23167. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  23168. }
  23169. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  23170. if v, changed := f.DecMapUint16Uint16V(*vp, true, d); changed {
  23171. *vp = v
  23172. }
  23173. }
  23174. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  23175. d *Decoder) (_ map[uint16]uint16, changed bool) {
  23176. dd, cr := d.d, d.cr
  23177. containerLen := dd.ReadMapStart()
  23178. if canChange && v == nil {
  23179. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  23180. v = make(map[uint16]uint16, xlen)
  23181. changed = true
  23182. }
  23183. if containerLen == 0 {
  23184. if cr != nil {
  23185. cr.sendContainerState(containerMapEnd)
  23186. }
  23187. return v, changed
  23188. }
  23189. var mk uint16
  23190. var mv uint16
  23191. hasLen := containerLen > 0
  23192. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23193. if cr != nil {
  23194. cr.sendContainerState(containerMapKey)
  23195. }
  23196. mk = uint16(dd.DecodeUint(16))
  23197. if cr != nil {
  23198. cr.sendContainerState(containerMapValue)
  23199. }
  23200. if dd.TryDecodeAsNil() {
  23201. if d.h.DeleteOnNilMapValue {
  23202. delete(v, mk)
  23203. } else {
  23204. v[mk] = 0
  23205. }
  23206. continue
  23207. }
  23208. mv = uint16(dd.DecodeUint(16))
  23209. if v != nil {
  23210. v[mk] = mv
  23211. }
  23212. }
  23213. if cr != nil {
  23214. cr.sendContainerState(containerMapEnd)
  23215. }
  23216. return v, changed
  23217. }
  23218. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  23219. if rv.Kind() == reflect.Ptr {
  23220. vp := rv2i(rv).(*map[uint16]uint32)
  23221. if v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d); changed {
  23222. *vp = v
  23223. }
  23224. return
  23225. }
  23226. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  23227. }
  23228. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  23229. if v, changed := f.DecMapUint16Uint32V(*vp, true, d); changed {
  23230. *vp = v
  23231. }
  23232. }
  23233. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  23234. d *Decoder) (_ map[uint16]uint32, changed bool) {
  23235. dd, cr := d.d, d.cr
  23236. containerLen := dd.ReadMapStart()
  23237. if canChange && v == nil {
  23238. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  23239. v = make(map[uint16]uint32, xlen)
  23240. changed = true
  23241. }
  23242. if containerLen == 0 {
  23243. if cr != nil {
  23244. cr.sendContainerState(containerMapEnd)
  23245. }
  23246. return v, changed
  23247. }
  23248. var mk uint16
  23249. var mv uint32
  23250. hasLen := containerLen > 0
  23251. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23252. if cr != nil {
  23253. cr.sendContainerState(containerMapKey)
  23254. }
  23255. mk = uint16(dd.DecodeUint(16))
  23256. if cr != nil {
  23257. cr.sendContainerState(containerMapValue)
  23258. }
  23259. if dd.TryDecodeAsNil() {
  23260. if d.h.DeleteOnNilMapValue {
  23261. delete(v, mk)
  23262. } else {
  23263. v[mk] = 0
  23264. }
  23265. continue
  23266. }
  23267. mv = uint32(dd.DecodeUint(32))
  23268. if v != nil {
  23269. v[mk] = mv
  23270. }
  23271. }
  23272. if cr != nil {
  23273. cr.sendContainerState(containerMapEnd)
  23274. }
  23275. return v, changed
  23276. }
  23277. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  23278. if rv.Kind() == reflect.Ptr {
  23279. vp := rv2i(rv).(*map[uint16]uint64)
  23280. if v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d); changed {
  23281. *vp = v
  23282. }
  23283. return
  23284. }
  23285. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  23286. }
  23287. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  23288. if v, changed := f.DecMapUint16Uint64V(*vp, true, d); changed {
  23289. *vp = v
  23290. }
  23291. }
  23292. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  23293. d *Decoder) (_ map[uint16]uint64, changed bool) {
  23294. dd, cr := d.d, d.cr
  23295. containerLen := dd.ReadMapStart()
  23296. if canChange && v == nil {
  23297. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23298. v = make(map[uint16]uint64, xlen)
  23299. changed = true
  23300. }
  23301. if containerLen == 0 {
  23302. if cr != nil {
  23303. cr.sendContainerState(containerMapEnd)
  23304. }
  23305. return v, changed
  23306. }
  23307. var mk uint16
  23308. var mv uint64
  23309. hasLen := containerLen > 0
  23310. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23311. if cr != nil {
  23312. cr.sendContainerState(containerMapKey)
  23313. }
  23314. mk = uint16(dd.DecodeUint(16))
  23315. if cr != nil {
  23316. cr.sendContainerState(containerMapValue)
  23317. }
  23318. if dd.TryDecodeAsNil() {
  23319. if d.h.DeleteOnNilMapValue {
  23320. delete(v, mk)
  23321. } else {
  23322. v[mk] = 0
  23323. }
  23324. continue
  23325. }
  23326. mv = dd.DecodeUint(64)
  23327. if v != nil {
  23328. v[mk] = mv
  23329. }
  23330. }
  23331. if cr != nil {
  23332. cr.sendContainerState(containerMapEnd)
  23333. }
  23334. return v, changed
  23335. }
  23336. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  23337. if rv.Kind() == reflect.Ptr {
  23338. vp := rv2i(rv).(*map[uint16]uintptr)
  23339. if v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d); changed {
  23340. *vp = v
  23341. }
  23342. return
  23343. }
  23344. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  23345. }
  23346. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  23347. if v, changed := f.DecMapUint16UintptrV(*vp, true, d); changed {
  23348. *vp = v
  23349. }
  23350. }
  23351. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  23352. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  23353. dd, cr := d.d, d.cr
  23354. containerLen := dd.ReadMapStart()
  23355. if canChange && v == nil {
  23356. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23357. v = make(map[uint16]uintptr, xlen)
  23358. changed = true
  23359. }
  23360. if containerLen == 0 {
  23361. if cr != nil {
  23362. cr.sendContainerState(containerMapEnd)
  23363. }
  23364. return v, changed
  23365. }
  23366. var mk uint16
  23367. var mv uintptr
  23368. hasLen := containerLen > 0
  23369. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23370. if cr != nil {
  23371. cr.sendContainerState(containerMapKey)
  23372. }
  23373. mk = uint16(dd.DecodeUint(16))
  23374. if cr != nil {
  23375. cr.sendContainerState(containerMapValue)
  23376. }
  23377. if dd.TryDecodeAsNil() {
  23378. if d.h.DeleteOnNilMapValue {
  23379. delete(v, mk)
  23380. } else {
  23381. v[mk] = 0
  23382. }
  23383. continue
  23384. }
  23385. mv = uintptr(dd.DecodeUint(uintBitsize))
  23386. if v != nil {
  23387. v[mk] = mv
  23388. }
  23389. }
  23390. if cr != nil {
  23391. cr.sendContainerState(containerMapEnd)
  23392. }
  23393. return v, changed
  23394. }
  23395. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  23396. if rv.Kind() == reflect.Ptr {
  23397. vp := rv2i(rv).(*map[uint16]int)
  23398. if v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d); changed {
  23399. *vp = v
  23400. }
  23401. return
  23402. }
  23403. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  23404. }
  23405. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  23406. if v, changed := f.DecMapUint16IntV(*vp, true, d); changed {
  23407. *vp = v
  23408. }
  23409. }
  23410. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  23411. d *Decoder) (_ map[uint16]int, changed bool) {
  23412. dd, cr := d.d, d.cr
  23413. containerLen := dd.ReadMapStart()
  23414. if canChange && v == nil {
  23415. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23416. v = make(map[uint16]int, xlen)
  23417. changed = true
  23418. }
  23419. if containerLen == 0 {
  23420. if cr != nil {
  23421. cr.sendContainerState(containerMapEnd)
  23422. }
  23423. return v, changed
  23424. }
  23425. var mk uint16
  23426. var mv int
  23427. hasLen := containerLen > 0
  23428. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23429. if cr != nil {
  23430. cr.sendContainerState(containerMapKey)
  23431. }
  23432. mk = uint16(dd.DecodeUint(16))
  23433. if cr != nil {
  23434. cr.sendContainerState(containerMapValue)
  23435. }
  23436. if dd.TryDecodeAsNil() {
  23437. if d.h.DeleteOnNilMapValue {
  23438. delete(v, mk)
  23439. } else {
  23440. v[mk] = 0
  23441. }
  23442. continue
  23443. }
  23444. mv = int(dd.DecodeInt(intBitsize))
  23445. if v != nil {
  23446. v[mk] = mv
  23447. }
  23448. }
  23449. if cr != nil {
  23450. cr.sendContainerState(containerMapEnd)
  23451. }
  23452. return v, changed
  23453. }
  23454. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  23455. if rv.Kind() == reflect.Ptr {
  23456. vp := rv2i(rv).(*map[uint16]int8)
  23457. if v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d); changed {
  23458. *vp = v
  23459. }
  23460. return
  23461. }
  23462. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  23463. }
  23464. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  23465. if v, changed := f.DecMapUint16Int8V(*vp, true, d); changed {
  23466. *vp = v
  23467. }
  23468. }
  23469. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  23470. d *Decoder) (_ map[uint16]int8, changed bool) {
  23471. dd, cr := d.d, d.cr
  23472. containerLen := dd.ReadMapStart()
  23473. if canChange && v == nil {
  23474. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  23475. v = make(map[uint16]int8, xlen)
  23476. changed = true
  23477. }
  23478. if containerLen == 0 {
  23479. if cr != nil {
  23480. cr.sendContainerState(containerMapEnd)
  23481. }
  23482. return v, changed
  23483. }
  23484. var mk uint16
  23485. var mv int8
  23486. hasLen := containerLen > 0
  23487. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23488. if cr != nil {
  23489. cr.sendContainerState(containerMapKey)
  23490. }
  23491. mk = uint16(dd.DecodeUint(16))
  23492. if cr != nil {
  23493. cr.sendContainerState(containerMapValue)
  23494. }
  23495. if dd.TryDecodeAsNil() {
  23496. if d.h.DeleteOnNilMapValue {
  23497. delete(v, mk)
  23498. } else {
  23499. v[mk] = 0
  23500. }
  23501. continue
  23502. }
  23503. mv = int8(dd.DecodeInt(8))
  23504. if v != nil {
  23505. v[mk] = mv
  23506. }
  23507. }
  23508. if cr != nil {
  23509. cr.sendContainerState(containerMapEnd)
  23510. }
  23511. return v, changed
  23512. }
  23513. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  23514. if rv.Kind() == reflect.Ptr {
  23515. vp := rv2i(rv).(*map[uint16]int16)
  23516. if v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d); changed {
  23517. *vp = v
  23518. }
  23519. return
  23520. }
  23521. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  23522. }
  23523. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  23524. if v, changed := f.DecMapUint16Int16V(*vp, true, d); changed {
  23525. *vp = v
  23526. }
  23527. }
  23528. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  23529. d *Decoder) (_ map[uint16]int16, changed bool) {
  23530. dd, cr := d.d, d.cr
  23531. containerLen := dd.ReadMapStart()
  23532. if canChange && v == nil {
  23533. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  23534. v = make(map[uint16]int16, xlen)
  23535. changed = true
  23536. }
  23537. if containerLen == 0 {
  23538. if cr != nil {
  23539. cr.sendContainerState(containerMapEnd)
  23540. }
  23541. return v, changed
  23542. }
  23543. var mk uint16
  23544. var mv int16
  23545. hasLen := containerLen > 0
  23546. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23547. if cr != nil {
  23548. cr.sendContainerState(containerMapKey)
  23549. }
  23550. mk = uint16(dd.DecodeUint(16))
  23551. if cr != nil {
  23552. cr.sendContainerState(containerMapValue)
  23553. }
  23554. if dd.TryDecodeAsNil() {
  23555. if d.h.DeleteOnNilMapValue {
  23556. delete(v, mk)
  23557. } else {
  23558. v[mk] = 0
  23559. }
  23560. continue
  23561. }
  23562. mv = int16(dd.DecodeInt(16))
  23563. if v != nil {
  23564. v[mk] = mv
  23565. }
  23566. }
  23567. if cr != nil {
  23568. cr.sendContainerState(containerMapEnd)
  23569. }
  23570. return v, changed
  23571. }
  23572. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  23573. if rv.Kind() == reflect.Ptr {
  23574. vp := rv2i(rv).(*map[uint16]int32)
  23575. if v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d); changed {
  23576. *vp = v
  23577. }
  23578. return
  23579. }
  23580. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  23581. }
  23582. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  23583. if v, changed := f.DecMapUint16Int32V(*vp, true, d); changed {
  23584. *vp = v
  23585. }
  23586. }
  23587. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  23588. d *Decoder) (_ map[uint16]int32, changed bool) {
  23589. dd, cr := d.d, d.cr
  23590. containerLen := dd.ReadMapStart()
  23591. if canChange && v == nil {
  23592. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  23593. v = make(map[uint16]int32, xlen)
  23594. changed = true
  23595. }
  23596. if containerLen == 0 {
  23597. if cr != nil {
  23598. cr.sendContainerState(containerMapEnd)
  23599. }
  23600. return v, changed
  23601. }
  23602. var mk uint16
  23603. var mv int32
  23604. hasLen := containerLen > 0
  23605. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23606. if cr != nil {
  23607. cr.sendContainerState(containerMapKey)
  23608. }
  23609. mk = uint16(dd.DecodeUint(16))
  23610. if cr != nil {
  23611. cr.sendContainerState(containerMapValue)
  23612. }
  23613. if dd.TryDecodeAsNil() {
  23614. if d.h.DeleteOnNilMapValue {
  23615. delete(v, mk)
  23616. } else {
  23617. v[mk] = 0
  23618. }
  23619. continue
  23620. }
  23621. mv = int32(dd.DecodeInt(32))
  23622. if v != nil {
  23623. v[mk] = mv
  23624. }
  23625. }
  23626. if cr != nil {
  23627. cr.sendContainerState(containerMapEnd)
  23628. }
  23629. return v, changed
  23630. }
  23631. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  23632. if rv.Kind() == reflect.Ptr {
  23633. vp := rv2i(rv).(*map[uint16]int64)
  23634. if v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d); changed {
  23635. *vp = v
  23636. }
  23637. return
  23638. }
  23639. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  23640. }
  23641. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  23642. if v, changed := f.DecMapUint16Int64V(*vp, true, d); changed {
  23643. *vp = v
  23644. }
  23645. }
  23646. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  23647. d *Decoder) (_ map[uint16]int64, changed bool) {
  23648. dd, cr := d.d, d.cr
  23649. containerLen := dd.ReadMapStart()
  23650. if canChange && v == nil {
  23651. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23652. v = make(map[uint16]int64, xlen)
  23653. changed = true
  23654. }
  23655. if containerLen == 0 {
  23656. if cr != nil {
  23657. cr.sendContainerState(containerMapEnd)
  23658. }
  23659. return v, changed
  23660. }
  23661. var mk uint16
  23662. var mv int64
  23663. hasLen := containerLen > 0
  23664. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23665. if cr != nil {
  23666. cr.sendContainerState(containerMapKey)
  23667. }
  23668. mk = uint16(dd.DecodeUint(16))
  23669. if cr != nil {
  23670. cr.sendContainerState(containerMapValue)
  23671. }
  23672. if dd.TryDecodeAsNil() {
  23673. if d.h.DeleteOnNilMapValue {
  23674. delete(v, mk)
  23675. } else {
  23676. v[mk] = 0
  23677. }
  23678. continue
  23679. }
  23680. mv = dd.DecodeInt(64)
  23681. if v != nil {
  23682. v[mk] = mv
  23683. }
  23684. }
  23685. if cr != nil {
  23686. cr.sendContainerState(containerMapEnd)
  23687. }
  23688. return v, changed
  23689. }
  23690. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  23691. if rv.Kind() == reflect.Ptr {
  23692. vp := rv2i(rv).(*map[uint16]float32)
  23693. if v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d); changed {
  23694. *vp = v
  23695. }
  23696. return
  23697. }
  23698. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  23699. }
  23700. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  23701. if v, changed := f.DecMapUint16Float32V(*vp, true, d); changed {
  23702. *vp = v
  23703. }
  23704. }
  23705. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  23706. d *Decoder) (_ map[uint16]float32, changed bool) {
  23707. dd, cr := d.d, d.cr
  23708. containerLen := dd.ReadMapStart()
  23709. if canChange && v == nil {
  23710. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  23711. v = make(map[uint16]float32, xlen)
  23712. changed = true
  23713. }
  23714. if containerLen == 0 {
  23715. if cr != nil {
  23716. cr.sendContainerState(containerMapEnd)
  23717. }
  23718. return v, changed
  23719. }
  23720. var mk uint16
  23721. var mv float32
  23722. hasLen := containerLen > 0
  23723. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23724. if cr != nil {
  23725. cr.sendContainerState(containerMapKey)
  23726. }
  23727. mk = uint16(dd.DecodeUint(16))
  23728. if cr != nil {
  23729. cr.sendContainerState(containerMapValue)
  23730. }
  23731. if dd.TryDecodeAsNil() {
  23732. if d.h.DeleteOnNilMapValue {
  23733. delete(v, mk)
  23734. } else {
  23735. v[mk] = 0
  23736. }
  23737. continue
  23738. }
  23739. mv = float32(dd.DecodeFloat(true))
  23740. if v != nil {
  23741. v[mk] = mv
  23742. }
  23743. }
  23744. if cr != nil {
  23745. cr.sendContainerState(containerMapEnd)
  23746. }
  23747. return v, changed
  23748. }
  23749. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  23750. if rv.Kind() == reflect.Ptr {
  23751. vp := rv2i(rv).(*map[uint16]float64)
  23752. if v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d); changed {
  23753. *vp = v
  23754. }
  23755. return
  23756. }
  23757. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  23758. }
  23759. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  23760. if v, changed := f.DecMapUint16Float64V(*vp, true, d); changed {
  23761. *vp = v
  23762. }
  23763. }
  23764. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  23765. d *Decoder) (_ map[uint16]float64, changed bool) {
  23766. dd, cr := d.d, d.cr
  23767. containerLen := dd.ReadMapStart()
  23768. if canChange && v == nil {
  23769. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23770. v = make(map[uint16]float64, xlen)
  23771. changed = true
  23772. }
  23773. if containerLen == 0 {
  23774. if cr != nil {
  23775. cr.sendContainerState(containerMapEnd)
  23776. }
  23777. return v, changed
  23778. }
  23779. var mk uint16
  23780. var mv float64
  23781. hasLen := containerLen > 0
  23782. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23783. if cr != nil {
  23784. cr.sendContainerState(containerMapKey)
  23785. }
  23786. mk = uint16(dd.DecodeUint(16))
  23787. if cr != nil {
  23788. cr.sendContainerState(containerMapValue)
  23789. }
  23790. if dd.TryDecodeAsNil() {
  23791. if d.h.DeleteOnNilMapValue {
  23792. delete(v, mk)
  23793. } else {
  23794. v[mk] = 0
  23795. }
  23796. continue
  23797. }
  23798. mv = dd.DecodeFloat(false)
  23799. if v != nil {
  23800. v[mk] = mv
  23801. }
  23802. }
  23803. if cr != nil {
  23804. cr.sendContainerState(containerMapEnd)
  23805. }
  23806. return v, changed
  23807. }
  23808. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  23809. if rv.Kind() == reflect.Ptr {
  23810. vp := rv2i(rv).(*map[uint16]bool)
  23811. if v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d); changed {
  23812. *vp = v
  23813. }
  23814. return
  23815. }
  23816. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  23817. }
  23818. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  23819. if v, changed := f.DecMapUint16BoolV(*vp, true, d); changed {
  23820. *vp = v
  23821. }
  23822. }
  23823. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  23824. d *Decoder) (_ map[uint16]bool, changed bool) {
  23825. dd, cr := d.d, d.cr
  23826. containerLen := dd.ReadMapStart()
  23827. if canChange && v == nil {
  23828. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  23829. v = make(map[uint16]bool, xlen)
  23830. changed = true
  23831. }
  23832. if containerLen == 0 {
  23833. if cr != nil {
  23834. cr.sendContainerState(containerMapEnd)
  23835. }
  23836. return v, changed
  23837. }
  23838. var mk uint16
  23839. var mv bool
  23840. hasLen := containerLen > 0
  23841. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23842. if cr != nil {
  23843. cr.sendContainerState(containerMapKey)
  23844. }
  23845. mk = uint16(dd.DecodeUint(16))
  23846. if cr != nil {
  23847. cr.sendContainerState(containerMapValue)
  23848. }
  23849. if dd.TryDecodeAsNil() {
  23850. if d.h.DeleteOnNilMapValue {
  23851. delete(v, mk)
  23852. } else {
  23853. v[mk] = false
  23854. }
  23855. continue
  23856. }
  23857. mv = dd.DecodeBool()
  23858. if v != nil {
  23859. v[mk] = mv
  23860. }
  23861. }
  23862. if cr != nil {
  23863. cr.sendContainerState(containerMapEnd)
  23864. }
  23865. return v, changed
  23866. }
  23867. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  23868. if rv.Kind() == reflect.Ptr {
  23869. vp := rv2i(rv).(*map[uint32]interface{})
  23870. if v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d); changed {
  23871. *vp = v
  23872. }
  23873. return
  23874. }
  23875. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  23876. }
  23877. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  23878. if v, changed := f.DecMapUint32IntfV(*vp, true, d); changed {
  23879. *vp = v
  23880. }
  23881. }
  23882. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  23883. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  23884. dd, cr := d.d, d.cr
  23885. containerLen := dd.ReadMapStart()
  23886. if canChange && v == nil {
  23887. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  23888. v = make(map[uint32]interface{}, xlen)
  23889. changed = true
  23890. }
  23891. if containerLen == 0 {
  23892. if cr != nil {
  23893. cr.sendContainerState(containerMapEnd)
  23894. }
  23895. return v, changed
  23896. }
  23897. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  23898. var mk uint32
  23899. var mv interface{}
  23900. hasLen := containerLen > 0
  23901. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23902. if cr != nil {
  23903. cr.sendContainerState(containerMapKey)
  23904. }
  23905. mk = uint32(dd.DecodeUint(32))
  23906. if cr != nil {
  23907. cr.sendContainerState(containerMapValue)
  23908. }
  23909. if dd.TryDecodeAsNil() {
  23910. if d.h.DeleteOnNilMapValue {
  23911. delete(v, mk)
  23912. } else {
  23913. v[mk] = nil
  23914. }
  23915. continue
  23916. }
  23917. if mapGet {
  23918. mv = v[mk]
  23919. } else {
  23920. mv = nil
  23921. }
  23922. d.decode(&mv)
  23923. if v != nil {
  23924. v[mk] = mv
  23925. }
  23926. }
  23927. if cr != nil {
  23928. cr.sendContainerState(containerMapEnd)
  23929. }
  23930. return v, changed
  23931. }
  23932. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  23933. if rv.Kind() == reflect.Ptr {
  23934. vp := rv2i(rv).(*map[uint32]string)
  23935. if v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d); changed {
  23936. *vp = v
  23937. }
  23938. return
  23939. }
  23940. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  23941. }
  23942. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  23943. if v, changed := f.DecMapUint32StringV(*vp, true, d); changed {
  23944. *vp = v
  23945. }
  23946. }
  23947. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  23948. d *Decoder) (_ map[uint32]string, changed bool) {
  23949. dd, cr := d.d, d.cr
  23950. containerLen := dd.ReadMapStart()
  23951. if canChange && v == nil {
  23952. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  23953. v = make(map[uint32]string, xlen)
  23954. changed = true
  23955. }
  23956. if containerLen == 0 {
  23957. if cr != nil {
  23958. cr.sendContainerState(containerMapEnd)
  23959. }
  23960. return v, changed
  23961. }
  23962. var mk uint32
  23963. var mv string
  23964. hasLen := containerLen > 0
  23965. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23966. if cr != nil {
  23967. cr.sendContainerState(containerMapKey)
  23968. }
  23969. mk = uint32(dd.DecodeUint(32))
  23970. if cr != nil {
  23971. cr.sendContainerState(containerMapValue)
  23972. }
  23973. if dd.TryDecodeAsNil() {
  23974. if d.h.DeleteOnNilMapValue {
  23975. delete(v, mk)
  23976. } else {
  23977. v[mk] = ""
  23978. }
  23979. continue
  23980. }
  23981. mv = dd.DecodeString()
  23982. if v != nil {
  23983. v[mk] = mv
  23984. }
  23985. }
  23986. if cr != nil {
  23987. cr.sendContainerState(containerMapEnd)
  23988. }
  23989. return v, changed
  23990. }
  23991. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  23992. if rv.Kind() == reflect.Ptr {
  23993. vp := rv2i(rv).(*map[uint32]uint)
  23994. if v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d); changed {
  23995. *vp = v
  23996. }
  23997. return
  23998. }
  23999. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  24000. }
  24001. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  24002. if v, changed := f.DecMapUint32UintV(*vp, true, d); changed {
  24003. *vp = v
  24004. }
  24005. }
  24006. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  24007. d *Decoder) (_ map[uint32]uint, changed bool) {
  24008. dd, cr := d.d, d.cr
  24009. containerLen := dd.ReadMapStart()
  24010. if canChange && v == nil {
  24011. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24012. v = make(map[uint32]uint, xlen)
  24013. changed = true
  24014. }
  24015. if containerLen == 0 {
  24016. if cr != nil {
  24017. cr.sendContainerState(containerMapEnd)
  24018. }
  24019. return v, changed
  24020. }
  24021. var mk uint32
  24022. var mv uint
  24023. hasLen := containerLen > 0
  24024. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24025. if cr != nil {
  24026. cr.sendContainerState(containerMapKey)
  24027. }
  24028. mk = uint32(dd.DecodeUint(32))
  24029. if cr != nil {
  24030. cr.sendContainerState(containerMapValue)
  24031. }
  24032. if dd.TryDecodeAsNil() {
  24033. if d.h.DeleteOnNilMapValue {
  24034. delete(v, mk)
  24035. } else {
  24036. v[mk] = 0
  24037. }
  24038. continue
  24039. }
  24040. mv = uint(dd.DecodeUint(uintBitsize))
  24041. if v != nil {
  24042. v[mk] = mv
  24043. }
  24044. }
  24045. if cr != nil {
  24046. cr.sendContainerState(containerMapEnd)
  24047. }
  24048. return v, changed
  24049. }
  24050. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  24051. if rv.Kind() == reflect.Ptr {
  24052. vp := rv2i(rv).(*map[uint32]uint8)
  24053. if v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d); changed {
  24054. *vp = v
  24055. }
  24056. return
  24057. }
  24058. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  24059. }
  24060. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  24061. if v, changed := f.DecMapUint32Uint8V(*vp, true, d); changed {
  24062. *vp = v
  24063. }
  24064. }
  24065. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  24066. d *Decoder) (_ map[uint32]uint8, changed bool) {
  24067. dd, cr := d.d, d.cr
  24068. containerLen := dd.ReadMapStart()
  24069. if canChange && v == nil {
  24070. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24071. v = make(map[uint32]uint8, xlen)
  24072. changed = true
  24073. }
  24074. if containerLen == 0 {
  24075. if cr != nil {
  24076. cr.sendContainerState(containerMapEnd)
  24077. }
  24078. return v, changed
  24079. }
  24080. var mk uint32
  24081. var mv uint8
  24082. hasLen := containerLen > 0
  24083. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24084. if cr != nil {
  24085. cr.sendContainerState(containerMapKey)
  24086. }
  24087. mk = uint32(dd.DecodeUint(32))
  24088. if cr != nil {
  24089. cr.sendContainerState(containerMapValue)
  24090. }
  24091. if dd.TryDecodeAsNil() {
  24092. if d.h.DeleteOnNilMapValue {
  24093. delete(v, mk)
  24094. } else {
  24095. v[mk] = 0
  24096. }
  24097. continue
  24098. }
  24099. mv = uint8(dd.DecodeUint(8))
  24100. if v != nil {
  24101. v[mk] = mv
  24102. }
  24103. }
  24104. if cr != nil {
  24105. cr.sendContainerState(containerMapEnd)
  24106. }
  24107. return v, changed
  24108. }
  24109. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  24110. if rv.Kind() == reflect.Ptr {
  24111. vp := rv2i(rv).(*map[uint32]uint16)
  24112. if v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d); changed {
  24113. *vp = v
  24114. }
  24115. return
  24116. }
  24117. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  24118. }
  24119. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  24120. if v, changed := f.DecMapUint32Uint16V(*vp, true, d); changed {
  24121. *vp = v
  24122. }
  24123. }
  24124. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  24125. d *Decoder) (_ map[uint32]uint16, changed bool) {
  24126. dd, cr := d.d, d.cr
  24127. containerLen := dd.ReadMapStart()
  24128. if canChange && v == nil {
  24129. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  24130. v = make(map[uint32]uint16, xlen)
  24131. changed = true
  24132. }
  24133. if containerLen == 0 {
  24134. if cr != nil {
  24135. cr.sendContainerState(containerMapEnd)
  24136. }
  24137. return v, changed
  24138. }
  24139. var mk uint32
  24140. var mv uint16
  24141. hasLen := containerLen > 0
  24142. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24143. if cr != nil {
  24144. cr.sendContainerState(containerMapKey)
  24145. }
  24146. mk = uint32(dd.DecodeUint(32))
  24147. if cr != nil {
  24148. cr.sendContainerState(containerMapValue)
  24149. }
  24150. if dd.TryDecodeAsNil() {
  24151. if d.h.DeleteOnNilMapValue {
  24152. delete(v, mk)
  24153. } else {
  24154. v[mk] = 0
  24155. }
  24156. continue
  24157. }
  24158. mv = uint16(dd.DecodeUint(16))
  24159. if v != nil {
  24160. v[mk] = mv
  24161. }
  24162. }
  24163. if cr != nil {
  24164. cr.sendContainerState(containerMapEnd)
  24165. }
  24166. return v, changed
  24167. }
  24168. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  24169. if rv.Kind() == reflect.Ptr {
  24170. vp := rv2i(rv).(*map[uint32]uint32)
  24171. if v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d); changed {
  24172. *vp = v
  24173. }
  24174. return
  24175. }
  24176. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  24177. }
  24178. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  24179. if v, changed := f.DecMapUint32Uint32V(*vp, true, d); changed {
  24180. *vp = v
  24181. }
  24182. }
  24183. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  24184. d *Decoder) (_ map[uint32]uint32, changed bool) {
  24185. dd, cr := d.d, d.cr
  24186. containerLen := dd.ReadMapStart()
  24187. if canChange && v == nil {
  24188. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  24189. v = make(map[uint32]uint32, xlen)
  24190. changed = true
  24191. }
  24192. if containerLen == 0 {
  24193. if cr != nil {
  24194. cr.sendContainerState(containerMapEnd)
  24195. }
  24196. return v, changed
  24197. }
  24198. var mk uint32
  24199. var mv uint32
  24200. hasLen := containerLen > 0
  24201. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24202. if cr != nil {
  24203. cr.sendContainerState(containerMapKey)
  24204. }
  24205. mk = uint32(dd.DecodeUint(32))
  24206. if cr != nil {
  24207. cr.sendContainerState(containerMapValue)
  24208. }
  24209. if dd.TryDecodeAsNil() {
  24210. if d.h.DeleteOnNilMapValue {
  24211. delete(v, mk)
  24212. } else {
  24213. v[mk] = 0
  24214. }
  24215. continue
  24216. }
  24217. mv = uint32(dd.DecodeUint(32))
  24218. if v != nil {
  24219. v[mk] = mv
  24220. }
  24221. }
  24222. if cr != nil {
  24223. cr.sendContainerState(containerMapEnd)
  24224. }
  24225. return v, changed
  24226. }
  24227. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  24228. if rv.Kind() == reflect.Ptr {
  24229. vp := rv2i(rv).(*map[uint32]uint64)
  24230. if v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d); changed {
  24231. *vp = v
  24232. }
  24233. return
  24234. }
  24235. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  24236. }
  24237. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  24238. if v, changed := f.DecMapUint32Uint64V(*vp, true, d); changed {
  24239. *vp = v
  24240. }
  24241. }
  24242. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  24243. d *Decoder) (_ map[uint32]uint64, changed bool) {
  24244. dd, cr := d.d, d.cr
  24245. containerLen := dd.ReadMapStart()
  24246. if canChange && v == nil {
  24247. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24248. v = make(map[uint32]uint64, xlen)
  24249. changed = true
  24250. }
  24251. if containerLen == 0 {
  24252. if cr != nil {
  24253. cr.sendContainerState(containerMapEnd)
  24254. }
  24255. return v, changed
  24256. }
  24257. var mk uint32
  24258. var mv uint64
  24259. hasLen := containerLen > 0
  24260. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24261. if cr != nil {
  24262. cr.sendContainerState(containerMapKey)
  24263. }
  24264. mk = uint32(dd.DecodeUint(32))
  24265. if cr != nil {
  24266. cr.sendContainerState(containerMapValue)
  24267. }
  24268. if dd.TryDecodeAsNil() {
  24269. if d.h.DeleteOnNilMapValue {
  24270. delete(v, mk)
  24271. } else {
  24272. v[mk] = 0
  24273. }
  24274. continue
  24275. }
  24276. mv = dd.DecodeUint(64)
  24277. if v != nil {
  24278. v[mk] = mv
  24279. }
  24280. }
  24281. if cr != nil {
  24282. cr.sendContainerState(containerMapEnd)
  24283. }
  24284. return v, changed
  24285. }
  24286. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  24287. if rv.Kind() == reflect.Ptr {
  24288. vp := rv2i(rv).(*map[uint32]uintptr)
  24289. if v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d); changed {
  24290. *vp = v
  24291. }
  24292. return
  24293. }
  24294. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  24295. }
  24296. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  24297. if v, changed := f.DecMapUint32UintptrV(*vp, true, d); changed {
  24298. *vp = v
  24299. }
  24300. }
  24301. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  24302. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  24303. dd, cr := d.d, d.cr
  24304. containerLen := dd.ReadMapStart()
  24305. if canChange && v == nil {
  24306. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24307. v = make(map[uint32]uintptr, xlen)
  24308. changed = true
  24309. }
  24310. if containerLen == 0 {
  24311. if cr != nil {
  24312. cr.sendContainerState(containerMapEnd)
  24313. }
  24314. return v, changed
  24315. }
  24316. var mk uint32
  24317. var mv uintptr
  24318. hasLen := containerLen > 0
  24319. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24320. if cr != nil {
  24321. cr.sendContainerState(containerMapKey)
  24322. }
  24323. mk = uint32(dd.DecodeUint(32))
  24324. if cr != nil {
  24325. cr.sendContainerState(containerMapValue)
  24326. }
  24327. if dd.TryDecodeAsNil() {
  24328. if d.h.DeleteOnNilMapValue {
  24329. delete(v, mk)
  24330. } else {
  24331. v[mk] = 0
  24332. }
  24333. continue
  24334. }
  24335. mv = uintptr(dd.DecodeUint(uintBitsize))
  24336. if v != nil {
  24337. v[mk] = mv
  24338. }
  24339. }
  24340. if cr != nil {
  24341. cr.sendContainerState(containerMapEnd)
  24342. }
  24343. return v, changed
  24344. }
  24345. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  24346. if rv.Kind() == reflect.Ptr {
  24347. vp := rv2i(rv).(*map[uint32]int)
  24348. if v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d); changed {
  24349. *vp = v
  24350. }
  24351. return
  24352. }
  24353. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  24354. }
  24355. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  24356. if v, changed := f.DecMapUint32IntV(*vp, true, d); changed {
  24357. *vp = v
  24358. }
  24359. }
  24360. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  24361. d *Decoder) (_ map[uint32]int, changed bool) {
  24362. dd, cr := d.d, d.cr
  24363. containerLen := dd.ReadMapStart()
  24364. if canChange && v == nil {
  24365. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24366. v = make(map[uint32]int, xlen)
  24367. changed = true
  24368. }
  24369. if containerLen == 0 {
  24370. if cr != nil {
  24371. cr.sendContainerState(containerMapEnd)
  24372. }
  24373. return v, changed
  24374. }
  24375. var mk uint32
  24376. var mv int
  24377. hasLen := containerLen > 0
  24378. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24379. if cr != nil {
  24380. cr.sendContainerState(containerMapKey)
  24381. }
  24382. mk = uint32(dd.DecodeUint(32))
  24383. if cr != nil {
  24384. cr.sendContainerState(containerMapValue)
  24385. }
  24386. if dd.TryDecodeAsNil() {
  24387. if d.h.DeleteOnNilMapValue {
  24388. delete(v, mk)
  24389. } else {
  24390. v[mk] = 0
  24391. }
  24392. continue
  24393. }
  24394. mv = int(dd.DecodeInt(intBitsize))
  24395. if v != nil {
  24396. v[mk] = mv
  24397. }
  24398. }
  24399. if cr != nil {
  24400. cr.sendContainerState(containerMapEnd)
  24401. }
  24402. return v, changed
  24403. }
  24404. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  24405. if rv.Kind() == reflect.Ptr {
  24406. vp := rv2i(rv).(*map[uint32]int8)
  24407. if v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d); changed {
  24408. *vp = v
  24409. }
  24410. return
  24411. }
  24412. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  24413. }
  24414. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  24415. if v, changed := f.DecMapUint32Int8V(*vp, true, d); changed {
  24416. *vp = v
  24417. }
  24418. }
  24419. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  24420. d *Decoder) (_ map[uint32]int8, changed bool) {
  24421. dd, cr := d.d, d.cr
  24422. containerLen := dd.ReadMapStart()
  24423. if canChange && v == nil {
  24424. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24425. v = make(map[uint32]int8, xlen)
  24426. changed = true
  24427. }
  24428. if containerLen == 0 {
  24429. if cr != nil {
  24430. cr.sendContainerState(containerMapEnd)
  24431. }
  24432. return v, changed
  24433. }
  24434. var mk uint32
  24435. var mv int8
  24436. hasLen := containerLen > 0
  24437. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24438. if cr != nil {
  24439. cr.sendContainerState(containerMapKey)
  24440. }
  24441. mk = uint32(dd.DecodeUint(32))
  24442. if cr != nil {
  24443. cr.sendContainerState(containerMapValue)
  24444. }
  24445. if dd.TryDecodeAsNil() {
  24446. if d.h.DeleteOnNilMapValue {
  24447. delete(v, mk)
  24448. } else {
  24449. v[mk] = 0
  24450. }
  24451. continue
  24452. }
  24453. mv = int8(dd.DecodeInt(8))
  24454. if v != nil {
  24455. v[mk] = mv
  24456. }
  24457. }
  24458. if cr != nil {
  24459. cr.sendContainerState(containerMapEnd)
  24460. }
  24461. return v, changed
  24462. }
  24463. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  24464. if rv.Kind() == reflect.Ptr {
  24465. vp := rv2i(rv).(*map[uint32]int16)
  24466. if v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d); changed {
  24467. *vp = v
  24468. }
  24469. return
  24470. }
  24471. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  24472. }
  24473. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  24474. if v, changed := f.DecMapUint32Int16V(*vp, true, d); changed {
  24475. *vp = v
  24476. }
  24477. }
  24478. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  24479. d *Decoder) (_ map[uint32]int16, changed bool) {
  24480. dd, cr := d.d, d.cr
  24481. containerLen := dd.ReadMapStart()
  24482. if canChange && v == nil {
  24483. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  24484. v = make(map[uint32]int16, xlen)
  24485. changed = true
  24486. }
  24487. if containerLen == 0 {
  24488. if cr != nil {
  24489. cr.sendContainerState(containerMapEnd)
  24490. }
  24491. return v, changed
  24492. }
  24493. var mk uint32
  24494. var mv int16
  24495. hasLen := containerLen > 0
  24496. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24497. if cr != nil {
  24498. cr.sendContainerState(containerMapKey)
  24499. }
  24500. mk = uint32(dd.DecodeUint(32))
  24501. if cr != nil {
  24502. cr.sendContainerState(containerMapValue)
  24503. }
  24504. if dd.TryDecodeAsNil() {
  24505. if d.h.DeleteOnNilMapValue {
  24506. delete(v, mk)
  24507. } else {
  24508. v[mk] = 0
  24509. }
  24510. continue
  24511. }
  24512. mv = int16(dd.DecodeInt(16))
  24513. if v != nil {
  24514. v[mk] = mv
  24515. }
  24516. }
  24517. if cr != nil {
  24518. cr.sendContainerState(containerMapEnd)
  24519. }
  24520. return v, changed
  24521. }
  24522. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  24523. if rv.Kind() == reflect.Ptr {
  24524. vp := rv2i(rv).(*map[uint32]int32)
  24525. if v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d); changed {
  24526. *vp = v
  24527. }
  24528. return
  24529. }
  24530. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  24531. }
  24532. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  24533. if v, changed := f.DecMapUint32Int32V(*vp, true, d); changed {
  24534. *vp = v
  24535. }
  24536. }
  24537. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  24538. d *Decoder) (_ map[uint32]int32, changed bool) {
  24539. dd, cr := d.d, d.cr
  24540. containerLen := dd.ReadMapStart()
  24541. if canChange && v == nil {
  24542. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  24543. v = make(map[uint32]int32, xlen)
  24544. changed = true
  24545. }
  24546. if containerLen == 0 {
  24547. if cr != nil {
  24548. cr.sendContainerState(containerMapEnd)
  24549. }
  24550. return v, changed
  24551. }
  24552. var mk uint32
  24553. var mv int32
  24554. hasLen := containerLen > 0
  24555. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24556. if cr != nil {
  24557. cr.sendContainerState(containerMapKey)
  24558. }
  24559. mk = uint32(dd.DecodeUint(32))
  24560. if cr != nil {
  24561. cr.sendContainerState(containerMapValue)
  24562. }
  24563. if dd.TryDecodeAsNil() {
  24564. if d.h.DeleteOnNilMapValue {
  24565. delete(v, mk)
  24566. } else {
  24567. v[mk] = 0
  24568. }
  24569. continue
  24570. }
  24571. mv = int32(dd.DecodeInt(32))
  24572. if v != nil {
  24573. v[mk] = mv
  24574. }
  24575. }
  24576. if cr != nil {
  24577. cr.sendContainerState(containerMapEnd)
  24578. }
  24579. return v, changed
  24580. }
  24581. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  24582. if rv.Kind() == reflect.Ptr {
  24583. vp := rv2i(rv).(*map[uint32]int64)
  24584. if v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d); changed {
  24585. *vp = v
  24586. }
  24587. return
  24588. }
  24589. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  24590. }
  24591. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  24592. if v, changed := f.DecMapUint32Int64V(*vp, true, d); changed {
  24593. *vp = v
  24594. }
  24595. }
  24596. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  24597. d *Decoder) (_ map[uint32]int64, changed bool) {
  24598. dd, cr := d.d, d.cr
  24599. containerLen := dd.ReadMapStart()
  24600. if canChange && v == nil {
  24601. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24602. v = make(map[uint32]int64, xlen)
  24603. changed = true
  24604. }
  24605. if containerLen == 0 {
  24606. if cr != nil {
  24607. cr.sendContainerState(containerMapEnd)
  24608. }
  24609. return v, changed
  24610. }
  24611. var mk uint32
  24612. var mv int64
  24613. hasLen := containerLen > 0
  24614. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24615. if cr != nil {
  24616. cr.sendContainerState(containerMapKey)
  24617. }
  24618. mk = uint32(dd.DecodeUint(32))
  24619. if cr != nil {
  24620. cr.sendContainerState(containerMapValue)
  24621. }
  24622. if dd.TryDecodeAsNil() {
  24623. if d.h.DeleteOnNilMapValue {
  24624. delete(v, mk)
  24625. } else {
  24626. v[mk] = 0
  24627. }
  24628. continue
  24629. }
  24630. mv = dd.DecodeInt(64)
  24631. if v != nil {
  24632. v[mk] = mv
  24633. }
  24634. }
  24635. if cr != nil {
  24636. cr.sendContainerState(containerMapEnd)
  24637. }
  24638. return v, changed
  24639. }
  24640. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  24641. if rv.Kind() == reflect.Ptr {
  24642. vp := rv2i(rv).(*map[uint32]float32)
  24643. if v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d); changed {
  24644. *vp = v
  24645. }
  24646. return
  24647. }
  24648. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  24649. }
  24650. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  24651. if v, changed := f.DecMapUint32Float32V(*vp, true, d); changed {
  24652. *vp = v
  24653. }
  24654. }
  24655. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  24656. d *Decoder) (_ map[uint32]float32, changed bool) {
  24657. dd, cr := d.d, d.cr
  24658. containerLen := dd.ReadMapStart()
  24659. if canChange && v == nil {
  24660. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  24661. v = make(map[uint32]float32, xlen)
  24662. changed = true
  24663. }
  24664. if containerLen == 0 {
  24665. if cr != nil {
  24666. cr.sendContainerState(containerMapEnd)
  24667. }
  24668. return v, changed
  24669. }
  24670. var mk uint32
  24671. var mv float32
  24672. hasLen := containerLen > 0
  24673. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24674. if cr != nil {
  24675. cr.sendContainerState(containerMapKey)
  24676. }
  24677. mk = uint32(dd.DecodeUint(32))
  24678. if cr != nil {
  24679. cr.sendContainerState(containerMapValue)
  24680. }
  24681. if dd.TryDecodeAsNil() {
  24682. if d.h.DeleteOnNilMapValue {
  24683. delete(v, mk)
  24684. } else {
  24685. v[mk] = 0
  24686. }
  24687. continue
  24688. }
  24689. mv = float32(dd.DecodeFloat(true))
  24690. if v != nil {
  24691. v[mk] = mv
  24692. }
  24693. }
  24694. if cr != nil {
  24695. cr.sendContainerState(containerMapEnd)
  24696. }
  24697. return v, changed
  24698. }
  24699. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  24700. if rv.Kind() == reflect.Ptr {
  24701. vp := rv2i(rv).(*map[uint32]float64)
  24702. if v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d); changed {
  24703. *vp = v
  24704. }
  24705. return
  24706. }
  24707. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  24708. }
  24709. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  24710. if v, changed := f.DecMapUint32Float64V(*vp, true, d); changed {
  24711. *vp = v
  24712. }
  24713. }
  24714. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  24715. d *Decoder) (_ map[uint32]float64, changed bool) {
  24716. dd, cr := d.d, d.cr
  24717. containerLen := dd.ReadMapStart()
  24718. if canChange && v == nil {
  24719. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  24720. v = make(map[uint32]float64, xlen)
  24721. changed = true
  24722. }
  24723. if containerLen == 0 {
  24724. if cr != nil {
  24725. cr.sendContainerState(containerMapEnd)
  24726. }
  24727. return v, changed
  24728. }
  24729. var mk uint32
  24730. var mv float64
  24731. hasLen := containerLen > 0
  24732. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24733. if cr != nil {
  24734. cr.sendContainerState(containerMapKey)
  24735. }
  24736. mk = uint32(dd.DecodeUint(32))
  24737. if cr != nil {
  24738. cr.sendContainerState(containerMapValue)
  24739. }
  24740. if dd.TryDecodeAsNil() {
  24741. if d.h.DeleteOnNilMapValue {
  24742. delete(v, mk)
  24743. } else {
  24744. v[mk] = 0
  24745. }
  24746. continue
  24747. }
  24748. mv = dd.DecodeFloat(false)
  24749. if v != nil {
  24750. v[mk] = mv
  24751. }
  24752. }
  24753. if cr != nil {
  24754. cr.sendContainerState(containerMapEnd)
  24755. }
  24756. return v, changed
  24757. }
  24758. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  24759. if rv.Kind() == reflect.Ptr {
  24760. vp := rv2i(rv).(*map[uint32]bool)
  24761. if v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d); changed {
  24762. *vp = v
  24763. }
  24764. return
  24765. }
  24766. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  24767. }
  24768. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  24769. if v, changed := f.DecMapUint32BoolV(*vp, true, d); changed {
  24770. *vp = v
  24771. }
  24772. }
  24773. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  24774. d *Decoder) (_ map[uint32]bool, changed bool) {
  24775. dd, cr := d.d, d.cr
  24776. containerLen := dd.ReadMapStart()
  24777. if canChange && v == nil {
  24778. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24779. v = make(map[uint32]bool, xlen)
  24780. changed = true
  24781. }
  24782. if containerLen == 0 {
  24783. if cr != nil {
  24784. cr.sendContainerState(containerMapEnd)
  24785. }
  24786. return v, changed
  24787. }
  24788. var mk uint32
  24789. var mv bool
  24790. hasLen := containerLen > 0
  24791. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24792. if cr != nil {
  24793. cr.sendContainerState(containerMapKey)
  24794. }
  24795. mk = uint32(dd.DecodeUint(32))
  24796. if cr != nil {
  24797. cr.sendContainerState(containerMapValue)
  24798. }
  24799. if dd.TryDecodeAsNil() {
  24800. if d.h.DeleteOnNilMapValue {
  24801. delete(v, mk)
  24802. } else {
  24803. v[mk] = false
  24804. }
  24805. continue
  24806. }
  24807. mv = dd.DecodeBool()
  24808. if v != nil {
  24809. v[mk] = mv
  24810. }
  24811. }
  24812. if cr != nil {
  24813. cr.sendContainerState(containerMapEnd)
  24814. }
  24815. return v, changed
  24816. }
  24817. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  24818. if rv.Kind() == reflect.Ptr {
  24819. vp := rv2i(rv).(*map[uint64]interface{})
  24820. if v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d); changed {
  24821. *vp = v
  24822. }
  24823. return
  24824. }
  24825. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  24826. }
  24827. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  24828. if v, changed := f.DecMapUint64IntfV(*vp, true, d); changed {
  24829. *vp = v
  24830. }
  24831. }
  24832. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  24833. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  24834. dd, cr := d.d, d.cr
  24835. containerLen := dd.ReadMapStart()
  24836. if canChange && v == nil {
  24837. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  24838. v = make(map[uint64]interface{}, xlen)
  24839. changed = true
  24840. }
  24841. if containerLen == 0 {
  24842. if cr != nil {
  24843. cr.sendContainerState(containerMapEnd)
  24844. }
  24845. return v, changed
  24846. }
  24847. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  24848. var mk uint64
  24849. var mv interface{}
  24850. hasLen := containerLen > 0
  24851. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24852. if cr != nil {
  24853. cr.sendContainerState(containerMapKey)
  24854. }
  24855. mk = dd.DecodeUint(64)
  24856. if cr != nil {
  24857. cr.sendContainerState(containerMapValue)
  24858. }
  24859. if dd.TryDecodeAsNil() {
  24860. if d.h.DeleteOnNilMapValue {
  24861. delete(v, mk)
  24862. } else {
  24863. v[mk] = nil
  24864. }
  24865. continue
  24866. }
  24867. if mapGet {
  24868. mv = v[mk]
  24869. } else {
  24870. mv = nil
  24871. }
  24872. d.decode(&mv)
  24873. if v != nil {
  24874. v[mk] = mv
  24875. }
  24876. }
  24877. if cr != nil {
  24878. cr.sendContainerState(containerMapEnd)
  24879. }
  24880. return v, changed
  24881. }
  24882. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  24883. if rv.Kind() == reflect.Ptr {
  24884. vp := rv2i(rv).(*map[uint64]string)
  24885. if v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d); changed {
  24886. *vp = v
  24887. }
  24888. return
  24889. }
  24890. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  24891. }
  24892. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  24893. if v, changed := f.DecMapUint64StringV(*vp, true, d); changed {
  24894. *vp = v
  24895. }
  24896. }
  24897. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  24898. d *Decoder) (_ map[uint64]string, changed bool) {
  24899. dd, cr := d.d, d.cr
  24900. containerLen := dd.ReadMapStart()
  24901. if canChange && v == nil {
  24902. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  24903. v = make(map[uint64]string, xlen)
  24904. changed = true
  24905. }
  24906. if containerLen == 0 {
  24907. if cr != nil {
  24908. cr.sendContainerState(containerMapEnd)
  24909. }
  24910. return v, changed
  24911. }
  24912. var mk uint64
  24913. var mv string
  24914. hasLen := containerLen > 0
  24915. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24916. if cr != nil {
  24917. cr.sendContainerState(containerMapKey)
  24918. }
  24919. mk = dd.DecodeUint(64)
  24920. if cr != nil {
  24921. cr.sendContainerState(containerMapValue)
  24922. }
  24923. if dd.TryDecodeAsNil() {
  24924. if d.h.DeleteOnNilMapValue {
  24925. delete(v, mk)
  24926. } else {
  24927. v[mk] = ""
  24928. }
  24929. continue
  24930. }
  24931. mv = dd.DecodeString()
  24932. if v != nil {
  24933. v[mk] = mv
  24934. }
  24935. }
  24936. if cr != nil {
  24937. cr.sendContainerState(containerMapEnd)
  24938. }
  24939. return v, changed
  24940. }
  24941. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  24942. if rv.Kind() == reflect.Ptr {
  24943. vp := rv2i(rv).(*map[uint64]uint)
  24944. if v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d); changed {
  24945. *vp = v
  24946. }
  24947. return
  24948. }
  24949. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  24950. }
  24951. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  24952. if v, changed := f.DecMapUint64UintV(*vp, true, d); changed {
  24953. *vp = v
  24954. }
  24955. }
  24956. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  24957. d *Decoder) (_ map[uint64]uint, changed bool) {
  24958. dd, cr := d.d, d.cr
  24959. containerLen := dd.ReadMapStart()
  24960. if canChange && v == nil {
  24961. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  24962. v = make(map[uint64]uint, xlen)
  24963. changed = true
  24964. }
  24965. if containerLen == 0 {
  24966. if cr != nil {
  24967. cr.sendContainerState(containerMapEnd)
  24968. }
  24969. return v, changed
  24970. }
  24971. var mk uint64
  24972. var mv uint
  24973. hasLen := containerLen > 0
  24974. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24975. if cr != nil {
  24976. cr.sendContainerState(containerMapKey)
  24977. }
  24978. mk = dd.DecodeUint(64)
  24979. if cr != nil {
  24980. cr.sendContainerState(containerMapValue)
  24981. }
  24982. if dd.TryDecodeAsNil() {
  24983. if d.h.DeleteOnNilMapValue {
  24984. delete(v, mk)
  24985. } else {
  24986. v[mk] = 0
  24987. }
  24988. continue
  24989. }
  24990. mv = uint(dd.DecodeUint(uintBitsize))
  24991. if v != nil {
  24992. v[mk] = mv
  24993. }
  24994. }
  24995. if cr != nil {
  24996. cr.sendContainerState(containerMapEnd)
  24997. }
  24998. return v, changed
  24999. }
  25000. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  25001. if rv.Kind() == reflect.Ptr {
  25002. vp := rv2i(rv).(*map[uint64]uint8)
  25003. if v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d); changed {
  25004. *vp = v
  25005. }
  25006. return
  25007. }
  25008. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  25009. }
  25010. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  25011. if v, changed := f.DecMapUint64Uint8V(*vp, true, d); changed {
  25012. *vp = v
  25013. }
  25014. }
  25015. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  25016. d *Decoder) (_ map[uint64]uint8, changed bool) {
  25017. dd, cr := d.d, d.cr
  25018. containerLen := dd.ReadMapStart()
  25019. if canChange && v == nil {
  25020. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25021. v = make(map[uint64]uint8, xlen)
  25022. changed = true
  25023. }
  25024. if containerLen == 0 {
  25025. if cr != nil {
  25026. cr.sendContainerState(containerMapEnd)
  25027. }
  25028. return v, changed
  25029. }
  25030. var mk uint64
  25031. var mv uint8
  25032. hasLen := containerLen > 0
  25033. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25034. if cr != nil {
  25035. cr.sendContainerState(containerMapKey)
  25036. }
  25037. mk = dd.DecodeUint(64)
  25038. if cr != nil {
  25039. cr.sendContainerState(containerMapValue)
  25040. }
  25041. if dd.TryDecodeAsNil() {
  25042. if d.h.DeleteOnNilMapValue {
  25043. delete(v, mk)
  25044. } else {
  25045. v[mk] = 0
  25046. }
  25047. continue
  25048. }
  25049. mv = uint8(dd.DecodeUint(8))
  25050. if v != nil {
  25051. v[mk] = mv
  25052. }
  25053. }
  25054. if cr != nil {
  25055. cr.sendContainerState(containerMapEnd)
  25056. }
  25057. return v, changed
  25058. }
  25059. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  25060. if rv.Kind() == reflect.Ptr {
  25061. vp := rv2i(rv).(*map[uint64]uint16)
  25062. if v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d); changed {
  25063. *vp = v
  25064. }
  25065. return
  25066. }
  25067. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  25068. }
  25069. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  25070. if v, changed := f.DecMapUint64Uint16V(*vp, true, d); changed {
  25071. *vp = v
  25072. }
  25073. }
  25074. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  25075. d *Decoder) (_ map[uint64]uint16, changed bool) {
  25076. dd, cr := d.d, d.cr
  25077. containerLen := dd.ReadMapStart()
  25078. if canChange && v == nil {
  25079. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25080. v = make(map[uint64]uint16, xlen)
  25081. changed = true
  25082. }
  25083. if containerLen == 0 {
  25084. if cr != nil {
  25085. cr.sendContainerState(containerMapEnd)
  25086. }
  25087. return v, changed
  25088. }
  25089. var mk uint64
  25090. var mv uint16
  25091. hasLen := containerLen > 0
  25092. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25093. if cr != nil {
  25094. cr.sendContainerState(containerMapKey)
  25095. }
  25096. mk = dd.DecodeUint(64)
  25097. if cr != nil {
  25098. cr.sendContainerState(containerMapValue)
  25099. }
  25100. if dd.TryDecodeAsNil() {
  25101. if d.h.DeleteOnNilMapValue {
  25102. delete(v, mk)
  25103. } else {
  25104. v[mk] = 0
  25105. }
  25106. continue
  25107. }
  25108. mv = uint16(dd.DecodeUint(16))
  25109. if v != nil {
  25110. v[mk] = mv
  25111. }
  25112. }
  25113. if cr != nil {
  25114. cr.sendContainerState(containerMapEnd)
  25115. }
  25116. return v, changed
  25117. }
  25118. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  25119. if rv.Kind() == reflect.Ptr {
  25120. vp := rv2i(rv).(*map[uint64]uint32)
  25121. if v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d); changed {
  25122. *vp = v
  25123. }
  25124. return
  25125. }
  25126. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  25127. }
  25128. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  25129. if v, changed := f.DecMapUint64Uint32V(*vp, true, d); changed {
  25130. *vp = v
  25131. }
  25132. }
  25133. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  25134. d *Decoder) (_ map[uint64]uint32, changed bool) {
  25135. dd, cr := d.d, d.cr
  25136. containerLen := dd.ReadMapStart()
  25137. if canChange && v == nil {
  25138. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25139. v = make(map[uint64]uint32, xlen)
  25140. changed = true
  25141. }
  25142. if containerLen == 0 {
  25143. if cr != nil {
  25144. cr.sendContainerState(containerMapEnd)
  25145. }
  25146. return v, changed
  25147. }
  25148. var mk uint64
  25149. var mv uint32
  25150. hasLen := containerLen > 0
  25151. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25152. if cr != nil {
  25153. cr.sendContainerState(containerMapKey)
  25154. }
  25155. mk = dd.DecodeUint(64)
  25156. if cr != nil {
  25157. cr.sendContainerState(containerMapValue)
  25158. }
  25159. if dd.TryDecodeAsNil() {
  25160. if d.h.DeleteOnNilMapValue {
  25161. delete(v, mk)
  25162. } else {
  25163. v[mk] = 0
  25164. }
  25165. continue
  25166. }
  25167. mv = uint32(dd.DecodeUint(32))
  25168. if v != nil {
  25169. v[mk] = mv
  25170. }
  25171. }
  25172. if cr != nil {
  25173. cr.sendContainerState(containerMapEnd)
  25174. }
  25175. return v, changed
  25176. }
  25177. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  25178. if rv.Kind() == reflect.Ptr {
  25179. vp := rv2i(rv).(*map[uint64]uint64)
  25180. if v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d); changed {
  25181. *vp = v
  25182. }
  25183. return
  25184. }
  25185. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  25186. }
  25187. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  25188. if v, changed := f.DecMapUint64Uint64V(*vp, true, d); changed {
  25189. *vp = v
  25190. }
  25191. }
  25192. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  25193. d *Decoder) (_ map[uint64]uint64, changed bool) {
  25194. dd, cr := d.d, d.cr
  25195. containerLen := dd.ReadMapStart()
  25196. if canChange && v == nil {
  25197. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25198. v = make(map[uint64]uint64, xlen)
  25199. changed = true
  25200. }
  25201. if containerLen == 0 {
  25202. if cr != nil {
  25203. cr.sendContainerState(containerMapEnd)
  25204. }
  25205. return v, changed
  25206. }
  25207. var mk uint64
  25208. var mv uint64
  25209. hasLen := containerLen > 0
  25210. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25211. if cr != nil {
  25212. cr.sendContainerState(containerMapKey)
  25213. }
  25214. mk = dd.DecodeUint(64)
  25215. if cr != nil {
  25216. cr.sendContainerState(containerMapValue)
  25217. }
  25218. if dd.TryDecodeAsNil() {
  25219. if d.h.DeleteOnNilMapValue {
  25220. delete(v, mk)
  25221. } else {
  25222. v[mk] = 0
  25223. }
  25224. continue
  25225. }
  25226. mv = dd.DecodeUint(64)
  25227. if v != nil {
  25228. v[mk] = mv
  25229. }
  25230. }
  25231. if cr != nil {
  25232. cr.sendContainerState(containerMapEnd)
  25233. }
  25234. return v, changed
  25235. }
  25236. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  25237. if rv.Kind() == reflect.Ptr {
  25238. vp := rv2i(rv).(*map[uint64]uintptr)
  25239. if v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d); changed {
  25240. *vp = v
  25241. }
  25242. return
  25243. }
  25244. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  25245. }
  25246. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  25247. if v, changed := f.DecMapUint64UintptrV(*vp, true, d); changed {
  25248. *vp = v
  25249. }
  25250. }
  25251. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  25252. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  25253. dd, cr := d.d, d.cr
  25254. containerLen := dd.ReadMapStart()
  25255. if canChange && v == nil {
  25256. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25257. v = make(map[uint64]uintptr, xlen)
  25258. changed = true
  25259. }
  25260. if containerLen == 0 {
  25261. if cr != nil {
  25262. cr.sendContainerState(containerMapEnd)
  25263. }
  25264. return v, changed
  25265. }
  25266. var mk uint64
  25267. var mv uintptr
  25268. hasLen := containerLen > 0
  25269. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25270. if cr != nil {
  25271. cr.sendContainerState(containerMapKey)
  25272. }
  25273. mk = dd.DecodeUint(64)
  25274. if cr != nil {
  25275. cr.sendContainerState(containerMapValue)
  25276. }
  25277. if dd.TryDecodeAsNil() {
  25278. if d.h.DeleteOnNilMapValue {
  25279. delete(v, mk)
  25280. } else {
  25281. v[mk] = 0
  25282. }
  25283. continue
  25284. }
  25285. mv = uintptr(dd.DecodeUint(uintBitsize))
  25286. if v != nil {
  25287. v[mk] = mv
  25288. }
  25289. }
  25290. if cr != nil {
  25291. cr.sendContainerState(containerMapEnd)
  25292. }
  25293. return v, changed
  25294. }
  25295. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  25296. if rv.Kind() == reflect.Ptr {
  25297. vp := rv2i(rv).(*map[uint64]int)
  25298. if v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d); changed {
  25299. *vp = v
  25300. }
  25301. return
  25302. }
  25303. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  25304. }
  25305. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  25306. if v, changed := f.DecMapUint64IntV(*vp, true, d); changed {
  25307. *vp = v
  25308. }
  25309. }
  25310. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  25311. d *Decoder) (_ map[uint64]int, changed bool) {
  25312. dd, cr := d.d, d.cr
  25313. containerLen := dd.ReadMapStart()
  25314. if canChange && v == nil {
  25315. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25316. v = make(map[uint64]int, xlen)
  25317. changed = true
  25318. }
  25319. if containerLen == 0 {
  25320. if cr != nil {
  25321. cr.sendContainerState(containerMapEnd)
  25322. }
  25323. return v, changed
  25324. }
  25325. var mk uint64
  25326. var mv int
  25327. hasLen := containerLen > 0
  25328. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25329. if cr != nil {
  25330. cr.sendContainerState(containerMapKey)
  25331. }
  25332. mk = dd.DecodeUint(64)
  25333. if cr != nil {
  25334. cr.sendContainerState(containerMapValue)
  25335. }
  25336. if dd.TryDecodeAsNil() {
  25337. if d.h.DeleteOnNilMapValue {
  25338. delete(v, mk)
  25339. } else {
  25340. v[mk] = 0
  25341. }
  25342. continue
  25343. }
  25344. mv = int(dd.DecodeInt(intBitsize))
  25345. if v != nil {
  25346. v[mk] = mv
  25347. }
  25348. }
  25349. if cr != nil {
  25350. cr.sendContainerState(containerMapEnd)
  25351. }
  25352. return v, changed
  25353. }
  25354. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  25355. if rv.Kind() == reflect.Ptr {
  25356. vp := rv2i(rv).(*map[uint64]int8)
  25357. if v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d); changed {
  25358. *vp = v
  25359. }
  25360. return
  25361. }
  25362. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  25363. }
  25364. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  25365. if v, changed := f.DecMapUint64Int8V(*vp, true, d); changed {
  25366. *vp = v
  25367. }
  25368. }
  25369. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  25370. d *Decoder) (_ map[uint64]int8, changed bool) {
  25371. dd, cr := d.d, d.cr
  25372. containerLen := dd.ReadMapStart()
  25373. if canChange && v == nil {
  25374. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25375. v = make(map[uint64]int8, xlen)
  25376. changed = true
  25377. }
  25378. if containerLen == 0 {
  25379. if cr != nil {
  25380. cr.sendContainerState(containerMapEnd)
  25381. }
  25382. return v, changed
  25383. }
  25384. var mk uint64
  25385. var mv int8
  25386. hasLen := containerLen > 0
  25387. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25388. if cr != nil {
  25389. cr.sendContainerState(containerMapKey)
  25390. }
  25391. mk = dd.DecodeUint(64)
  25392. if cr != nil {
  25393. cr.sendContainerState(containerMapValue)
  25394. }
  25395. if dd.TryDecodeAsNil() {
  25396. if d.h.DeleteOnNilMapValue {
  25397. delete(v, mk)
  25398. } else {
  25399. v[mk] = 0
  25400. }
  25401. continue
  25402. }
  25403. mv = int8(dd.DecodeInt(8))
  25404. if v != nil {
  25405. v[mk] = mv
  25406. }
  25407. }
  25408. if cr != nil {
  25409. cr.sendContainerState(containerMapEnd)
  25410. }
  25411. return v, changed
  25412. }
  25413. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  25414. if rv.Kind() == reflect.Ptr {
  25415. vp := rv2i(rv).(*map[uint64]int16)
  25416. if v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d); changed {
  25417. *vp = v
  25418. }
  25419. return
  25420. }
  25421. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  25422. }
  25423. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  25424. if v, changed := f.DecMapUint64Int16V(*vp, true, d); changed {
  25425. *vp = v
  25426. }
  25427. }
  25428. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  25429. d *Decoder) (_ map[uint64]int16, changed bool) {
  25430. dd, cr := d.d, d.cr
  25431. containerLen := dd.ReadMapStart()
  25432. if canChange && v == nil {
  25433. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25434. v = make(map[uint64]int16, xlen)
  25435. changed = true
  25436. }
  25437. if containerLen == 0 {
  25438. if cr != nil {
  25439. cr.sendContainerState(containerMapEnd)
  25440. }
  25441. return v, changed
  25442. }
  25443. var mk uint64
  25444. var mv int16
  25445. hasLen := containerLen > 0
  25446. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25447. if cr != nil {
  25448. cr.sendContainerState(containerMapKey)
  25449. }
  25450. mk = dd.DecodeUint(64)
  25451. if cr != nil {
  25452. cr.sendContainerState(containerMapValue)
  25453. }
  25454. if dd.TryDecodeAsNil() {
  25455. if d.h.DeleteOnNilMapValue {
  25456. delete(v, mk)
  25457. } else {
  25458. v[mk] = 0
  25459. }
  25460. continue
  25461. }
  25462. mv = int16(dd.DecodeInt(16))
  25463. if v != nil {
  25464. v[mk] = mv
  25465. }
  25466. }
  25467. if cr != nil {
  25468. cr.sendContainerState(containerMapEnd)
  25469. }
  25470. return v, changed
  25471. }
  25472. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  25473. if rv.Kind() == reflect.Ptr {
  25474. vp := rv2i(rv).(*map[uint64]int32)
  25475. if v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d); changed {
  25476. *vp = v
  25477. }
  25478. return
  25479. }
  25480. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  25481. }
  25482. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  25483. if v, changed := f.DecMapUint64Int32V(*vp, true, d); changed {
  25484. *vp = v
  25485. }
  25486. }
  25487. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  25488. d *Decoder) (_ map[uint64]int32, changed bool) {
  25489. dd, cr := d.d, d.cr
  25490. containerLen := dd.ReadMapStart()
  25491. if canChange && v == nil {
  25492. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25493. v = make(map[uint64]int32, xlen)
  25494. changed = true
  25495. }
  25496. if containerLen == 0 {
  25497. if cr != nil {
  25498. cr.sendContainerState(containerMapEnd)
  25499. }
  25500. return v, changed
  25501. }
  25502. var mk uint64
  25503. var mv int32
  25504. hasLen := containerLen > 0
  25505. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25506. if cr != nil {
  25507. cr.sendContainerState(containerMapKey)
  25508. }
  25509. mk = dd.DecodeUint(64)
  25510. if cr != nil {
  25511. cr.sendContainerState(containerMapValue)
  25512. }
  25513. if dd.TryDecodeAsNil() {
  25514. if d.h.DeleteOnNilMapValue {
  25515. delete(v, mk)
  25516. } else {
  25517. v[mk] = 0
  25518. }
  25519. continue
  25520. }
  25521. mv = int32(dd.DecodeInt(32))
  25522. if v != nil {
  25523. v[mk] = mv
  25524. }
  25525. }
  25526. if cr != nil {
  25527. cr.sendContainerState(containerMapEnd)
  25528. }
  25529. return v, changed
  25530. }
  25531. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  25532. if rv.Kind() == reflect.Ptr {
  25533. vp := rv2i(rv).(*map[uint64]int64)
  25534. if v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d); changed {
  25535. *vp = v
  25536. }
  25537. return
  25538. }
  25539. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  25540. }
  25541. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  25542. if v, changed := f.DecMapUint64Int64V(*vp, true, d); changed {
  25543. *vp = v
  25544. }
  25545. }
  25546. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  25547. d *Decoder) (_ map[uint64]int64, changed bool) {
  25548. dd, cr := d.d, d.cr
  25549. containerLen := dd.ReadMapStart()
  25550. if canChange && v == nil {
  25551. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25552. v = make(map[uint64]int64, xlen)
  25553. changed = true
  25554. }
  25555. if containerLen == 0 {
  25556. if cr != nil {
  25557. cr.sendContainerState(containerMapEnd)
  25558. }
  25559. return v, changed
  25560. }
  25561. var mk uint64
  25562. var mv int64
  25563. hasLen := containerLen > 0
  25564. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25565. if cr != nil {
  25566. cr.sendContainerState(containerMapKey)
  25567. }
  25568. mk = dd.DecodeUint(64)
  25569. if cr != nil {
  25570. cr.sendContainerState(containerMapValue)
  25571. }
  25572. if dd.TryDecodeAsNil() {
  25573. if d.h.DeleteOnNilMapValue {
  25574. delete(v, mk)
  25575. } else {
  25576. v[mk] = 0
  25577. }
  25578. continue
  25579. }
  25580. mv = dd.DecodeInt(64)
  25581. if v != nil {
  25582. v[mk] = mv
  25583. }
  25584. }
  25585. if cr != nil {
  25586. cr.sendContainerState(containerMapEnd)
  25587. }
  25588. return v, changed
  25589. }
  25590. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  25591. if rv.Kind() == reflect.Ptr {
  25592. vp := rv2i(rv).(*map[uint64]float32)
  25593. if v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d); changed {
  25594. *vp = v
  25595. }
  25596. return
  25597. }
  25598. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  25599. }
  25600. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  25601. if v, changed := f.DecMapUint64Float32V(*vp, true, d); changed {
  25602. *vp = v
  25603. }
  25604. }
  25605. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  25606. d *Decoder) (_ map[uint64]float32, changed bool) {
  25607. dd, cr := d.d, d.cr
  25608. containerLen := dd.ReadMapStart()
  25609. if canChange && v == nil {
  25610. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25611. v = make(map[uint64]float32, xlen)
  25612. changed = true
  25613. }
  25614. if containerLen == 0 {
  25615. if cr != nil {
  25616. cr.sendContainerState(containerMapEnd)
  25617. }
  25618. return v, changed
  25619. }
  25620. var mk uint64
  25621. var mv float32
  25622. hasLen := containerLen > 0
  25623. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25624. if cr != nil {
  25625. cr.sendContainerState(containerMapKey)
  25626. }
  25627. mk = dd.DecodeUint(64)
  25628. if cr != nil {
  25629. cr.sendContainerState(containerMapValue)
  25630. }
  25631. if dd.TryDecodeAsNil() {
  25632. if d.h.DeleteOnNilMapValue {
  25633. delete(v, mk)
  25634. } else {
  25635. v[mk] = 0
  25636. }
  25637. continue
  25638. }
  25639. mv = float32(dd.DecodeFloat(true))
  25640. if v != nil {
  25641. v[mk] = mv
  25642. }
  25643. }
  25644. if cr != nil {
  25645. cr.sendContainerState(containerMapEnd)
  25646. }
  25647. return v, changed
  25648. }
  25649. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  25650. if rv.Kind() == reflect.Ptr {
  25651. vp := rv2i(rv).(*map[uint64]float64)
  25652. if v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d); changed {
  25653. *vp = v
  25654. }
  25655. return
  25656. }
  25657. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  25658. }
  25659. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  25660. if v, changed := f.DecMapUint64Float64V(*vp, true, d); changed {
  25661. *vp = v
  25662. }
  25663. }
  25664. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  25665. d *Decoder) (_ map[uint64]float64, changed bool) {
  25666. dd, cr := d.d, d.cr
  25667. containerLen := dd.ReadMapStart()
  25668. if canChange && v == nil {
  25669. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25670. v = make(map[uint64]float64, xlen)
  25671. changed = true
  25672. }
  25673. if containerLen == 0 {
  25674. if cr != nil {
  25675. cr.sendContainerState(containerMapEnd)
  25676. }
  25677. return v, changed
  25678. }
  25679. var mk uint64
  25680. var mv float64
  25681. hasLen := containerLen > 0
  25682. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25683. if cr != nil {
  25684. cr.sendContainerState(containerMapKey)
  25685. }
  25686. mk = dd.DecodeUint(64)
  25687. if cr != nil {
  25688. cr.sendContainerState(containerMapValue)
  25689. }
  25690. if dd.TryDecodeAsNil() {
  25691. if d.h.DeleteOnNilMapValue {
  25692. delete(v, mk)
  25693. } else {
  25694. v[mk] = 0
  25695. }
  25696. continue
  25697. }
  25698. mv = dd.DecodeFloat(false)
  25699. if v != nil {
  25700. v[mk] = mv
  25701. }
  25702. }
  25703. if cr != nil {
  25704. cr.sendContainerState(containerMapEnd)
  25705. }
  25706. return v, changed
  25707. }
  25708. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  25709. if rv.Kind() == reflect.Ptr {
  25710. vp := rv2i(rv).(*map[uint64]bool)
  25711. if v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d); changed {
  25712. *vp = v
  25713. }
  25714. return
  25715. }
  25716. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  25717. }
  25718. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  25719. if v, changed := f.DecMapUint64BoolV(*vp, true, d); changed {
  25720. *vp = v
  25721. }
  25722. }
  25723. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  25724. d *Decoder) (_ map[uint64]bool, changed bool) {
  25725. dd, cr := d.d, d.cr
  25726. containerLen := dd.ReadMapStart()
  25727. if canChange && v == nil {
  25728. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25729. v = make(map[uint64]bool, xlen)
  25730. changed = true
  25731. }
  25732. if containerLen == 0 {
  25733. if cr != nil {
  25734. cr.sendContainerState(containerMapEnd)
  25735. }
  25736. return v, changed
  25737. }
  25738. var mk uint64
  25739. var mv bool
  25740. hasLen := containerLen > 0
  25741. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25742. if cr != nil {
  25743. cr.sendContainerState(containerMapKey)
  25744. }
  25745. mk = dd.DecodeUint(64)
  25746. if cr != nil {
  25747. cr.sendContainerState(containerMapValue)
  25748. }
  25749. if dd.TryDecodeAsNil() {
  25750. if d.h.DeleteOnNilMapValue {
  25751. delete(v, mk)
  25752. } else {
  25753. v[mk] = false
  25754. }
  25755. continue
  25756. }
  25757. mv = dd.DecodeBool()
  25758. if v != nil {
  25759. v[mk] = mv
  25760. }
  25761. }
  25762. if cr != nil {
  25763. cr.sendContainerState(containerMapEnd)
  25764. }
  25765. return v, changed
  25766. }
  25767. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  25768. if rv.Kind() == reflect.Ptr {
  25769. vp := rv2i(rv).(*map[uintptr]interface{})
  25770. if v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d); changed {
  25771. *vp = v
  25772. }
  25773. return
  25774. }
  25775. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  25776. }
  25777. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  25778. if v, changed := f.DecMapUintptrIntfV(*vp, true, d); changed {
  25779. *vp = v
  25780. }
  25781. }
  25782. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  25783. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  25784. dd, cr := d.d, d.cr
  25785. containerLen := dd.ReadMapStart()
  25786. if canChange && v == nil {
  25787. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  25788. v = make(map[uintptr]interface{}, xlen)
  25789. changed = true
  25790. }
  25791. if containerLen == 0 {
  25792. if cr != nil {
  25793. cr.sendContainerState(containerMapEnd)
  25794. }
  25795. return v, changed
  25796. }
  25797. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  25798. var mk uintptr
  25799. var mv interface{}
  25800. hasLen := containerLen > 0
  25801. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25802. if cr != nil {
  25803. cr.sendContainerState(containerMapKey)
  25804. }
  25805. mk = uintptr(dd.DecodeUint(uintBitsize))
  25806. if cr != nil {
  25807. cr.sendContainerState(containerMapValue)
  25808. }
  25809. if dd.TryDecodeAsNil() {
  25810. if d.h.DeleteOnNilMapValue {
  25811. delete(v, mk)
  25812. } else {
  25813. v[mk] = nil
  25814. }
  25815. continue
  25816. }
  25817. if mapGet {
  25818. mv = v[mk]
  25819. } else {
  25820. mv = nil
  25821. }
  25822. d.decode(&mv)
  25823. if v != nil {
  25824. v[mk] = mv
  25825. }
  25826. }
  25827. if cr != nil {
  25828. cr.sendContainerState(containerMapEnd)
  25829. }
  25830. return v, changed
  25831. }
  25832. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  25833. if rv.Kind() == reflect.Ptr {
  25834. vp := rv2i(rv).(*map[uintptr]string)
  25835. if v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d); changed {
  25836. *vp = v
  25837. }
  25838. return
  25839. }
  25840. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  25841. }
  25842. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  25843. if v, changed := f.DecMapUintptrStringV(*vp, true, d); changed {
  25844. *vp = v
  25845. }
  25846. }
  25847. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  25848. d *Decoder) (_ map[uintptr]string, changed bool) {
  25849. dd, cr := d.d, d.cr
  25850. containerLen := dd.ReadMapStart()
  25851. if canChange && v == nil {
  25852. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  25853. v = make(map[uintptr]string, xlen)
  25854. changed = true
  25855. }
  25856. if containerLen == 0 {
  25857. if cr != nil {
  25858. cr.sendContainerState(containerMapEnd)
  25859. }
  25860. return v, changed
  25861. }
  25862. var mk uintptr
  25863. var mv string
  25864. hasLen := containerLen > 0
  25865. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25866. if cr != nil {
  25867. cr.sendContainerState(containerMapKey)
  25868. }
  25869. mk = uintptr(dd.DecodeUint(uintBitsize))
  25870. if cr != nil {
  25871. cr.sendContainerState(containerMapValue)
  25872. }
  25873. if dd.TryDecodeAsNil() {
  25874. if d.h.DeleteOnNilMapValue {
  25875. delete(v, mk)
  25876. } else {
  25877. v[mk] = ""
  25878. }
  25879. continue
  25880. }
  25881. mv = dd.DecodeString()
  25882. if v != nil {
  25883. v[mk] = mv
  25884. }
  25885. }
  25886. if cr != nil {
  25887. cr.sendContainerState(containerMapEnd)
  25888. }
  25889. return v, changed
  25890. }
  25891. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  25892. if rv.Kind() == reflect.Ptr {
  25893. vp := rv2i(rv).(*map[uintptr]uint)
  25894. if v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d); changed {
  25895. *vp = v
  25896. }
  25897. return
  25898. }
  25899. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  25900. }
  25901. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  25902. if v, changed := f.DecMapUintptrUintV(*vp, true, d); changed {
  25903. *vp = v
  25904. }
  25905. }
  25906. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  25907. d *Decoder) (_ map[uintptr]uint, changed bool) {
  25908. dd, cr := d.d, d.cr
  25909. containerLen := dd.ReadMapStart()
  25910. if canChange && v == nil {
  25911. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  25912. v = make(map[uintptr]uint, xlen)
  25913. changed = true
  25914. }
  25915. if containerLen == 0 {
  25916. if cr != nil {
  25917. cr.sendContainerState(containerMapEnd)
  25918. }
  25919. return v, changed
  25920. }
  25921. var mk uintptr
  25922. var mv uint
  25923. hasLen := containerLen > 0
  25924. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25925. if cr != nil {
  25926. cr.sendContainerState(containerMapKey)
  25927. }
  25928. mk = uintptr(dd.DecodeUint(uintBitsize))
  25929. if cr != nil {
  25930. cr.sendContainerState(containerMapValue)
  25931. }
  25932. if dd.TryDecodeAsNil() {
  25933. if d.h.DeleteOnNilMapValue {
  25934. delete(v, mk)
  25935. } else {
  25936. v[mk] = 0
  25937. }
  25938. continue
  25939. }
  25940. mv = uint(dd.DecodeUint(uintBitsize))
  25941. if v != nil {
  25942. v[mk] = mv
  25943. }
  25944. }
  25945. if cr != nil {
  25946. cr.sendContainerState(containerMapEnd)
  25947. }
  25948. return v, changed
  25949. }
  25950. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  25951. if rv.Kind() == reflect.Ptr {
  25952. vp := rv2i(rv).(*map[uintptr]uint8)
  25953. if v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d); changed {
  25954. *vp = v
  25955. }
  25956. return
  25957. }
  25958. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  25959. }
  25960. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  25961. if v, changed := f.DecMapUintptrUint8V(*vp, true, d); changed {
  25962. *vp = v
  25963. }
  25964. }
  25965. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  25966. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  25967. dd, cr := d.d, d.cr
  25968. containerLen := dd.ReadMapStart()
  25969. if canChange && v == nil {
  25970. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  25971. v = make(map[uintptr]uint8, xlen)
  25972. changed = true
  25973. }
  25974. if containerLen == 0 {
  25975. if cr != nil {
  25976. cr.sendContainerState(containerMapEnd)
  25977. }
  25978. return v, changed
  25979. }
  25980. var mk uintptr
  25981. var mv uint8
  25982. hasLen := containerLen > 0
  25983. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25984. if cr != nil {
  25985. cr.sendContainerState(containerMapKey)
  25986. }
  25987. mk = uintptr(dd.DecodeUint(uintBitsize))
  25988. if cr != nil {
  25989. cr.sendContainerState(containerMapValue)
  25990. }
  25991. if dd.TryDecodeAsNil() {
  25992. if d.h.DeleteOnNilMapValue {
  25993. delete(v, mk)
  25994. } else {
  25995. v[mk] = 0
  25996. }
  25997. continue
  25998. }
  25999. mv = uint8(dd.DecodeUint(8))
  26000. if v != nil {
  26001. v[mk] = mv
  26002. }
  26003. }
  26004. if cr != nil {
  26005. cr.sendContainerState(containerMapEnd)
  26006. }
  26007. return v, changed
  26008. }
  26009. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  26010. if rv.Kind() == reflect.Ptr {
  26011. vp := rv2i(rv).(*map[uintptr]uint16)
  26012. if v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d); changed {
  26013. *vp = v
  26014. }
  26015. return
  26016. }
  26017. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  26018. }
  26019. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  26020. if v, changed := f.DecMapUintptrUint16V(*vp, true, d); changed {
  26021. *vp = v
  26022. }
  26023. }
  26024. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  26025. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  26026. dd, cr := d.d, d.cr
  26027. containerLen := dd.ReadMapStart()
  26028. if canChange && v == nil {
  26029. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26030. v = make(map[uintptr]uint16, xlen)
  26031. changed = true
  26032. }
  26033. if containerLen == 0 {
  26034. if cr != nil {
  26035. cr.sendContainerState(containerMapEnd)
  26036. }
  26037. return v, changed
  26038. }
  26039. var mk uintptr
  26040. var mv uint16
  26041. hasLen := containerLen > 0
  26042. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26043. if cr != nil {
  26044. cr.sendContainerState(containerMapKey)
  26045. }
  26046. mk = uintptr(dd.DecodeUint(uintBitsize))
  26047. if cr != nil {
  26048. cr.sendContainerState(containerMapValue)
  26049. }
  26050. if dd.TryDecodeAsNil() {
  26051. if d.h.DeleteOnNilMapValue {
  26052. delete(v, mk)
  26053. } else {
  26054. v[mk] = 0
  26055. }
  26056. continue
  26057. }
  26058. mv = uint16(dd.DecodeUint(16))
  26059. if v != nil {
  26060. v[mk] = mv
  26061. }
  26062. }
  26063. if cr != nil {
  26064. cr.sendContainerState(containerMapEnd)
  26065. }
  26066. return v, changed
  26067. }
  26068. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  26069. if rv.Kind() == reflect.Ptr {
  26070. vp := rv2i(rv).(*map[uintptr]uint32)
  26071. if v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d); changed {
  26072. *vp = v
  26073. }
  26074. return
  26075. }
  26076. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  26077. }
  26078. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  26079. if v, changed := f.DecMapUintptrUint32V(*vp, true, d); changed {
  26080. *vp = v
  26081. }
  26082. }
  26083. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  26084. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  26085. dd, cr := d.d, d.cr
  26086. containerLen := dd.ReadMapStart()
  26087. if canChange && v == nil {
  26088. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26089. v = make(map[uintptr]uint32, xlen)
  26090. changed = true
  26091. }
  26092. if containerLen == 0 {
  26093. if cr != nil {
  26094. cr.sendContainerState(containerMapEnd)
  26095. }
  26096. return v, changed
  26097. }
  26098. var mk uintptr
  26099. var mv uint32
  26100. hasLen := containerLen > 0
  26101. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26102. if cr != nil {
  26103. cr.sendContainerState(containerMapKey)
  26104. }
  26105. mk = uintptr(dd.DecodeUint(uintBitsize))
  26106. if cr != nil {
  26107. cr.sendContainerState(containerMapValue)
  26108. }
  26109. if dd.TryDecodeAsNil() {
  26110. if d.h.DeleteOnNilMapValue {
  26111. delete(v, mk)
  26112. } else {
  26113. v[mk] = 0
  26114. }
  26115. continue
  26116. }
  26117. mv = uint32(dd.DecodeUint(32))
  26118. if v != nil {
  26119. v[mk] = mv
  26120. }
  26121. }
  26122. if cr != nil {
  26123. cr.sendContainerState(containerMapEnd)
  26124. }
  26125. return v, changed
  26126. }
  26127. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  26128. if rv.Kind() == reflect.Ptr {
  26129. vp := rv2i(rv).(*map[uintptr]uint64)
  26130. if v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d); changed {
  26131. *vp = v
  26132. }
  26133. return
  26134. }
  26135. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  26136. }
  26137. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  26138. if v, changed := f.DecMapUintptrUint64V(*vp, true, d); changed {
  26139. *vp = v
  26140. }
  26141. }
  26142. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  26143. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  26144. dd, cr := d.d, d.cr
  26145. containerLen := dd.ReadMapStart()
  26146. if canChange && v == nil {
  26147. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26148. v = make(map[uintptr]uint64, xlen)
  26149. changed = true
  26150. }
  26151. if containerLen == 0 {
  26152. if cr != nil {
  26153. cr.sendContainerState(containerMapEnd)
  26154. }
  26155. return v, changed
  26156. }
  26157. var mk uintptr
  26158. var mv uint64
  26159. hasLen := containerLen > 0
  26160. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26161. if cr != nil {
  26162. cr.sendContainerState(containerMapKey)
  26163. }
  26164. mk = uintptr(dd.DecodeUint(uintBitsize))
  26165. if cr != nil {
  26166. cr.sendContainerState(containerMapValue)
  26167. }
  26168. if dd.TryDecodeAsNil() {
  26169. if d.h.DeleteOnNilMapValue {
  26170. delete(v, mk)
  26171. } else {
  26172. v[mk] = 0
  26173. }
  26174. continue
  26175. }
  26176. mv = dd.DecodeUint(64)
  26177. if v != nil {
  26178. v[mk] = mv
  26179. }
  26180. }
  26181. if cr != nil {
  26182. cr.sendContainerState(containerMapEnd)
  26183. }
  26184. return v, changed
  26185. }
  26186. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  26187. if rv.Kind() == reflect.Ptr {
  26188. vp := rv2i(rv).(*map[uintptr]uintptr)
  26189. if v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d); changed {
  26190. *vp = v
  26191. }
  26192. return
  26193. }
  26194. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  26195. }
  26196. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  26197. if v, changed := f.DecMapUintptrUintptrV(*vp, true, d); changed {
  26198. *vp = v
  26199. }
  26200. }
  26201. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  26202. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  26203. dd, cr := d.d, d.cr
  26204. containerLen := dd.ReadMapStart()
  26205. if canChange && v == nil {
  26206. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26207. v = make(map[uintptr]uintptr, xlen)
  26208. changed = true
  26209. }
  26210. if containerLen == 0 {
  26211. if cr != nil {
  26212. cr.sendContainerState(containerMapEnd)
  26213. }
  26214. return v, changed
  26215. }
  26216. var mk uintptr
  26217. var mv uintptr
  26218. hasLen := containerLen > 0
  26219. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26220. if cr != nil {
  26221. cr.sendContainerState(containerMapKey)
  26222. }
  26223. mk = uintptr(dd.DecodeUint(uintBitsize))
  26224. if cr != nil {
  26225. cr.sendContainerState(containerMapValue)
  26226. }
  26227. if dd.TryDecodeAsNil() {
  26228. if d.h.DeleteOnNilMapValue {
  26229. delete(v, mk)
  26230. } else {
  26231. v[mk] = 0
  26232. }
  26233. continue
  26234. }
  26235. mv = uintptr(dd.DecodeUint(uintBitsize))
  26236. if v != nil {
  26237. v[mk] = mv
  26238. }
  26239. }
  26240. if cr != nil {
  26241. cr.sendContainerState(containerMapEnd)
  26242. }
  26243. return v, changed
  26244. }
  26245. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  26246. if rv.Kind() == reflect.Ptr {
  26247. vp := rv2i(rv).(*map[uintptr]int)
  26248. if v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d); changed {
  26249. *vp = v
  26250. }
  26251. return
  26252. }
  26253. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  26254. }
  26255. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  26256. if v, changed := f.DecMapUintptrIntV(*vp, true, d); changed {
  26257. *vp = v
  26258. }
  26259. }
  26260. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  26261. d *Decoder) (_ map[uintptr]int, changed bool) {
  26262. dd, cr := d.d, d.cr
  26263. containerLen := dd.ReadMapStart()
  26264. if canChange && v == nil {
  26265. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26266. v = make(map[uintptr]int, xlen)
  26267. changed = true
  26268. }
  26269. if containerLen == 0 {
  26270. if cr != nil {
  26271. cr.sendContainerState(containerMapEnd)
  26272. }
  26273. return v, changed
  26274. }
  26275. var mk uintptr
  26276. var mv int
  26277. hasLen := containerLen > 0
  26278. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26279. if cr != nil {
  26280. cr.sendContainerState(containerMapKey)
  26281. }
  26282. mk = uintptr(dd.DecodeUint(uintBitsize))
  26283. if cr != nil {
  26284. cr.sendContainerState(containerMapValue)
  26285. }
  26286. if dd.TryDecodeAsNil() {
  26287. if d.h.DeleteOnNilMapValue {
  26288. delete(v, mk)
  26289. } else {
  26290. v[mk] = 0
  26291. }
  26292. continue
  26293. }
  26294. mv = int(dd.DecodeInt(intBitsize))
  26295. if v != nil {
  26296. v[mk] = mv
  26297. }
  26298. }
  26299. if cr != nil {
  26300. cr.sendContainerState(containerMapEnd)
  26301. }
  26302. return v, changed
  26303. }
  26304. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  26305. if rv.Kind() == reflect.Ptr {
  26306. vp := rv2i(rv).(*map[uintptr]int8)
  26307. if v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d); changed {
  26308. *vp = v
  26309. }
  26310. return
  26311. }
  26312. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  26313. }
  26314. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  26315. if v, changed := f.DecMapUintptrInt8V(*vp, true, d); changed {
  26316. *vp = v
  26317. }
  26318. }
  26319. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  26320. d *Decoder) (_ map[uintptr]int8, changed bool) {
  26321. dd, cr := d.d, d.cr
  26322. containerLen := dd.ReadMapStart()
  26323. if canChange && v == nil {
  26324. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26325. v = make(map[uintptr]int8, xlen)
  26326. changed = true
  26327. }
  26328. if containerLen == 0 {
  26329. if cr != nil {
  26330. cr.sendContainerState(containerMapEnd)
  26331. }
  26332. return v, changed
  26333. }
  26334. var mk uintptr
  26335. var mv int8
  26336. hasLen := containerLen > 0
  26337. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26338. if cr != nil {
  26339. cr.sendContainerState(containerMapKey)
  26340. }
  26341. mk = uintptr(dd.DecodeUint(uintBitsize))
  26342. if cr != nil {
  26343. cr.sendContainerState(containerMapValue)
  26344. }
  26345. if dd.TryDecodeAsNil() {
  26346. if d.h.DeleteOnNilMapValue {
  26347. delete(v, mk)
  26348. } else {
  26349. v[mk] = 0
  26350. }
  26351. continue
  26352. }
  26353. mv = int8(dd.DecodeInt(8))
  26354. if v != nil {
  26355. v[mk] = mv
  26356. }
  26357. }
  26358. if cr != nil {
  26359. cr.sendContainerState(containerMapEnd)
  26360. }
  26361. return v, changed
  26362. }
  26363. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  26364. if rv.Kind() == reflect.Ptr {
  26365. vp := rv2i(rv).(*map[uintptr]int16)
  26366. if v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d); changed {
  26367. *vp = v
  26368. }
  26369. return
  26370. }
  26371. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  26372. }
  26373. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  26374. if v, changed := f.DecMapUintptrInt16V(*vp, true, d); changed {
  26375. *vp = v
  26376. }
  26377. }
  26378. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  26379. d *Decoder) (_ map[uintptr]int16, changed bool) {
  26380. dd, cr := d.d, d.cr
  26381. containerLen := dd.ReadMapStart()
  26382. if canChange && v == nil {
  26383. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26384. v = make(map[uintptr]int16, xlen)
  26385. changed = true
  26386. }
  26387. if containerLen == 0 {
  26388. if cr != nil {
  26389. cr.sendContainerState(containerMapEnd)
  26390. }
  26391. return v, changed
  26392. }
  26393. var mk uintptr
  26394. var mv int16
  26395. hasLen := containerLen > 0
  26396. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26397. if cr != nil {
  26398. cr.sendContainerState(containerMapKey)
  26399. }
  26400. mk = uintptr(dd.DecodeUint(uintBitsize))
  26401. if cr != nil {
  26402. cr.sendContainerState(containerMapValue)
  26403. }
  26404. if dd.TryDecodeAsNil() {
  26405. if d.h.DeleteOnNilMapValue {
  26406. delete(v, mk)
  26407. } else {
  26408. v[mk] = 0
  26409. }
  26410. continue
  26411. }
  26412. mv = int16(dd.DecodeInt(16))
  26413. if v != nil {
  26414. v[mk] = mv
  26415. }
  26416. }
  26417. if cr != nil {
  26418. cr.sendContainerState(containerMapEnd)
  26419. }
  26420. return v, changed
  26421. }
  26422. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  26423. if rv.Kind() == reflect.Ptr {
  26424. vp := rv2i(rv).(*map[uintptr]int32)
  26425. if v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d); changed {
  26426. *vp = v
  26427. }
  26428. return
  26429. }
  26430. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  26431. }
  26432. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  26433. if v, changed := f.DecMapUintptrInt32V(*vp, true, d); changed {
  26434. *vp = v
  26435. }
  26436. }
  26437. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  26438. d *Decoder) (_ map[uintptr]int32, changed bool) {
  26439. dd, cr := d.d, d.cr
  26440. containerLen := dd.ReadMapStart()
  26441. if canChange && v == nil {
  26442. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26443. v = make(map[uintptr]int32, xlen)
  26444. changed = true
  26445. }
  26446. if containerLen == 0 {
  26447. if cr != nil {
  26448. cr.sendContainerState(containerMapEnd)
  26449. }
  26450. return v, changed
  26451. }
  26452. var mk uintptr
  26453. var mv int32
  26454. hasLen := containerLen > 0
  26455. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26456. if cr != nil {
  26457. cr.sendContainerState(containerMapKey)
  26458. }
  26459. mk = uintptr(dd.DecodeUint(uintBitsize))
  26460. if cr != nil {
  26461. cr.sendContainerState(containerMapValue)
  26462. }
  26463. if dd.TryDecodeAsNil() {
  26464. if d.h.DeleteOnNilMapValue {
  26465. delete(v, mk)
  26466. } else {
  26467. v[mk] = 0
  26468. }
  26469. continue
  26470. }
  26471. mv = int32(dd.DecodeInt(32))
  26472. if v != nil {
  26473. v[mk] = mv
  26474. }
  26475. }
  26476. if cr != nil {
  26477. cr.sendContainerState(containerMapEnd)
  26478. }
  26479. return v, changed
  26480. }
  26481. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  26482. if rv.Kind() == reflect.Ptr {
  26483. vp := rv2i(rv).(*map[uintptr]int64)
  26484. if v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d); changed {
  26485. *vp = v
  26486. }
  26487. return
  26488. }
  26489. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  26490. }
  26491. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  26492. if v, changed := f.DecMapUintptrInt64V(*vp, true, d); changed {
  26493. *vp = v
  26494. }
  26495. }
  26496. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  26497. d *Decoder) (_ map[uintptr]int64, changed bool) {
  26498. dd, cr := d.d, d.cr
  26499. containerLen := dd.ReadMapStart()
  26500. if canChange && v == nil {
  26501. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26502. v = make(map[uintptr]int64, xlen)
  26503. changed = true
  26504. }
  26505. if containerLen == 0 {
  26506. if cr != nil {
  26507. cr.sendContainerState(containerMapEnd)
  26508. }
  26509. return v, changed
  26510. }
  26511. var mk uintptr
  26512. var mv int64
  26513. hasLen := containerLen > 0
  26514. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26515. if cr != nil {
  26516. cr.sendContainerState(containerMapKey)
  26517. }
  26518. mk = uintptr(dd.DecodeUint(uintBitsize))
  26519. if cr != nil {
  26520. cr.sendContainerState(containerMapValue)
  26521. }
  26522. if dd.TryDecodeAsNil() {
  26523. if d.h.DeleteOnNilMapValue {
  26524. delete(v, mk)
  26525. } else {
  26526. v[mk] = 0
  26527. }
  26528. continue
  26529. }
  26530. mv = dd.DecodeInt(64)
  26531. if v != nil {
  26532. v[mk] = mv
  26533. }
  26534. }
  26535. if cr != nil {
  26536. cr.sendContainerState(containerMapEnd)
  26537. }
  26538. return v, changed
  26539. }
  26540. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  26541. if rv.Kind() == reflect.Ptr {
  26542. vp := rv2i(rv).(*map[uintptr]float32)
  26543. if v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d); changed {
  26544. *vp = v
  26545. }
  26546. return
  26547. }
  26548. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  26549. }
  26550. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  26551. if v, changed := f.DecMapUintptrFloat32V(*vp, true, d); changed {
  26552. *vp = v
  26553. }
  26554. }
  26555. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  26556. d *Decoder) (_ map[uintptr]float32, changed bool) {
  26557. dd, cr := d.d, d.cr
  26558. containerLen := dd.ReadMapStart()
  26559. if canChange && v == nil {
  26560. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26561. v = make(map[uintptr]float32, xlen)
  26562. changed = true
  26563. }
  26564. if containerLen == 0 {
  26565. if cr != nil {
  26566. cr.sendContainerState(containerMapEnd)
  26567. }
  26568. return v, changed
  26569. }
  26570. var mk uintptr
  26571. var mv float32
  26572. hasLen := containerLen > 0
  26573. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26574. if cr != nil {
  26575. cr.sendContainerState(containerMapKey)
  26576. }
  26577. mk = uintptr(dd.DecodeUint(uintBitsize))
  26578. if cr != nil {
  26579. cr.sendContainerState(containerMapValue)
  26580. }
  26581. if dd.TryDecodeAsNil() {
  26582. if d.h.DeleteOnNilMapValue {
  26583. delete(v, mk)
  26584. } else {
  26585. v[mk] = 0
  26586. }
  26587. continue
  26588. }
  26589. mv = float32(dd.DecodeFloat(true))
  26590. if v != nil {
  26591. v[mk] = mv
  26592. }
  26593. }
  26594. if cr != nil {
  26595. cr.sendContainerState(containerMapEnd)
  26596. }
  26597. return v, changed
  26598. }
  26599. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  26600. if rv.Kind() == reflect.Ptr {
  26601. vp := rv2i(rv).(*map[uintptr]float64)
  26602. if v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d); changed {
  26603. *vp = v
  26604. }
  26605. return
  26606. }
  26607. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  26608. }
  26609. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  26610. if v, changed := f.DecMapUintptrFloat64V(*vp, true, d); changed {
  26611. *vp = v
  26612. }
  26613. }
  26614. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  26615. d *Decoder) (_ map[uintptr]float64, changed bool) {
  26616. dd, cr := d.d, d.cr
  26617. containerLen := dd.ReadMapStart()
  26618. if canChange && v == nil {
  26619. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26620. v = make(map[uintptr]float64, xlen)
  26621. changed = true
  26622. }
  26623. if containerLen == 0 {
  26624. if cr != nil {
  26625. cr.sendContainerState(containerMapEnd)
  26626. }
  26627. return v, changed
  26628. }
  26629. var mk uintptr
  26630. var mv float64
  26631. hasLen := containerLen > 0
  26632. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26633. if cr != nil {
  26634. cr.sendContainerState(containerMapKey)
  26635. }
  26636. mk = uintptr(dd.DecodeUint(uintBitsize))
  26637. if cr != nil {
  26638. cr.sendContainerState(containerMapValue)
  26639. }
  26640. if dd.TryDecodeAsNil() {
  26641. if d.h.DeleteOnNilMapValue {
  26642. delete(v, mk)
  26643. } else {
  26644. v[mk] = 0
  26645. }
  26646. continue
  26647. }
  26648. mv = dd.DecodeFloat(false)
  26649. if v != nil {
  26650. v[mk] = mv
  26651. }
  26652. }
  26653. if cr != nil {
  26654. cr.sendContainerState(containerMapEnd)
  26655. }
  26656. return v, changed
  26657. }
  26658. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  26659. if rv.Kind() == reflect.Ptr {
  26660. vp := rv2i(rv).(*map[uintptr]bool)
  26661. if v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d); changed {
  26662. *vp = v
  26663. }
  26664. return
  26665. }
  26666. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  26667. }
  26668. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  26669. if v, changed := f.DecMapUintptrBoolV(*vp, true, d); changed {
  26670. *vp = v
  26671. }
  26672. }
  26673. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  26674. d *Decoder) (_ map[uintptr]bool, changed bool) {
  26675. dd, cr := d.d, d.cr
  26676. containerLen := dd.ReadMapStart()
  26677. if canChange && v == nil {
  26678. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26679. v = make(map[uintptr]bool, xlen)
  26680. changed = true
  26681. }
  26682. if containerLen == 0 {
  26683. if cr != nil {
  26684. cr.sendContainerState(containerMapEnd)
  26685. }
  26686. return v, changed
  26687. }
  26688. var mk uintptr
  26689. var mv bool
  26690. hasLen := containerLen > 0
  26691. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26692. if cr != nil {
  26693. cr.sendContainerState(containerMapKey)
  26694. }
  26695. mk = uintptr(dd.DecodeUint(uintBitsize))
  26696. if cr != nil {
  26697. cr.sendContainerState(containerMapValue)
  26698. }
  26699. if dd.TryDecodeAsNil() {
  26700. if d.h.DeleteOnNilMapValue {
  26701. delete(v, mk)
  26702. } else {
  26703. v[mk] = false
  26704. }
  26705. continue
  26706. }
  26707. mv = dd.DecodeBool()
  26708. if v != nil {
  26709. v[mk] = mv
  26710. }
  26711. }
  26712. if cr != nil {
  26713. cr.sendContainerState(containerMapEnd)
  26714. }
  26715. return v, changed
  26716. }
  26717. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  26718. if rv.Kind() == reflect.Ptr {
  26719. vp := rv2i(rv).(*map[int]interface{})
  26720. if v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d); changed {
  26721. *vp = v
  26722. }
  26723. return
  26724. }
  26725. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  26726. }
  26727. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  26728. if v, changed := f.DecMapIntIntfV(*vp, true, d); changed {
  26729. *vp = v
  26730. }
  26731. }
  26732. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  26733. d *Decoder) (_ map[int]interface{}, changed bool) {
  26734. dd, cr := d.d, d.cr
  26735. containerLen := dd.ReadMapStart()
  26736. if canChange && v == nil {
  26737. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26738. v = make(map[int]interface{}, xlen)
  26739. changed = true
  26740. }
  26741. if containerLen == 0 {
  26742. if cr != nil {
  26743. cr.sendContainerState(containerMapEnd)
  26744. }
  26745. return v, changed
  26746. }
  26747. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  26748. var mk int
  26749. var mv interface{}
  26750. hasLen := containerLen > 0
  26751. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26752. if cr != nil {
  26753. cr.sendContainerState(containerMapKey)
  26754. }
  26755. mk = int(dd.DecodeInt(intBitsize))
  26756. if cr != nil {
  26757. cr.sendContainerState(containerMapValue)
  26758. }
  26759. if dd.TryDecodeAsNil() {
  26760. if d.h.DeleteOnNilMapValue {
  26761. delete(v, mk)
  26762. } else {
  26763. v[mk] = nil
  26764. }
  26765. continue
  26766. }
  26767. if mapGet {
  26768. mv = v[mk]
  26769. } else {
  26770. mv = nil
  26771. }
  26772. d.decode(&mv)
  26773. if v != nil {
  26774. v[mk] = mv
  26775. }
  26776. }
  26777. if cr != nil {
  26778. cr.sendContainerState(containerMapEnd)
  26779. }
  26780. return v, changed
  26781. }
  26782. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  26783. if rv.Kind() == reflect.Ptr {
  26784. vp := rv2i(rv).(*map[int]string)
  26785. if v, changed := fastpathTV.DecMapIntStringV(*vp, true, d); changed {
  26786. *vp = v
  26787. }
  26788. return
  26789. }
  26790. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  26791. }
  26792. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  26793. if v, changed := f.DecMapIntStringV(*vp, true, d); changed {
  26794. *vp = v
  26795. }
  26796. }
  26797. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  26798. d *Decoder) (_ map[int]string, changed bool) {
  26799. dd, cr := d.d, d.cr
  26800. containerLen := dd.ReadMapStart()
  26801. if canChange && v == nil {
  26802. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26803. v = make(map[int]string, xlen)
  26804. changed = true
  26805. }
  26806. if containerLen == 0 {
  26807. if cr != nil {
  26808. cr.sendContainerState(containerMapEnd)
  26809. }
  26810. return v, changed
  26811. }
  26812. var mk int
  26813. var mv string
  26814. hasLen := containerLen > 0
  26815. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26816. if cr != nil {
  26817. cr.sendContainerState(containerMapKey)
  26818. }
  26819. mk = int(dd.DecodeInt(intBitsize))
  26820. if cr != nil {
  26821. cr.sendContainerState(containerMapValue)
  26822. }
  26823. if dd.TryDecodeAsNil() {
  26824. if d.h.DeleteOnNilMapValue {
  26825. delete(v, mk)
  26826. } else {
  26827. v[mk] = ""
  26828. }
  26829. continue
  26830. }
  26831. mv = dd.DecodeString()
  26832. if v != nil {
  26833. v[mk] = mv
  26834. }
  26835. }
  26836. if cr != nil {
  26837. cr.sendContainerState(containerMapEnd)
  26838. }
  26839. return v, changed
  26840. }
  26841. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  26842. if rv.Kind() == reflect.Ptr {
  26843. vp := rv2i(rv).(*map[int]uint)
  26844. if v, changed := fastpathTV.DecMapIntUintV(*vp, true, d); changed {
  26845. *vp = v
  26846. }
  26847. return
  26848. }
  26849. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  26850. }
  26851. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  26852. if v, changed := f.DecMapIntUintV(*vp, true, d); changed {
  26853. *vp = v
  26854. }
  26855. }
  26856. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  26857. d *Decoder) (_ map[int]uint, changed bool) {
  26858. dd, cr := d.d, d.cr
  26859. containerLen := dd.ReadMapStart()
  26860. if canChange && v == nil {
  26861. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26862. v = make(map[int]uint, xlen)
  26863. changed = true
  26864. }
  26865. if containerLen == 0 {
  26866. if cr != nil {
  26867. cr.sendContainerState(containerMapEnd)
  26868. }
  26869. return v, changed
  26870. }
  26871. var mk int
  26872. var mv uint
  26873. hasLen := containerLen > 0
  26874. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26875. if cr != nil {
  26876. cr.sendContainerState(containerMapKey)
  26877. }
  26878. mk = int(dd.DecodeInt(intBitsize))
  26879. if cr != nil {
  26880. cr.sendContainerState(containerMapValue)
  26881. }
  26882. if dd.TryDecodeAsNil() {
  26883. if d.h.DeleteOnNilMapValue {
  26884. delete(v, mk)
  26885. } else {
  26886. v[mk] = 0
  26887. }
  26888. continue
  26889. }
  26890. mv = uint(dd.DecodeUint(uintBitsize))
  26891. if v != nil {
  26892. v[mk] = mv
  26893. }
  26894. }
  26895. if cr != nil {
  26896. cr.sendContainerState(containerMapEnd)
  26897. }
  26898. return v, changed
  26899. }
  26900. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  26901. if rv.Kind() == reflect.Ptr {
  26902. vp := rv2i(rv).(*map[int]uint8)
  26903. if v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d); changed {
  26904. *vp = v
  26905. }
  26906. return
  26907. }
  26908. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  26909. }
  26910. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  26911. if v, changed := f.DecMapIntUint8V(*vp, true, d); changed {
  26912. *vp = v
  26913. }
  26914. }
  26915. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  26916. d *Decoder) (_ map[int]uint8, changed bool) {
  26917. dd, cr := d.d, d.cr
  26918. containerLen := dd.ReadMapStart()
  26919. if canChange && v == nil {
  26920. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26921. v = make(map[int]uint8, xlen)
  26922. changed = true
  26923. }
  26924. if containerLen == 0 {
  26925. if cr != nil {
  26926. cr.sendContainerState(containerMapEnd)
  26927. }
  26928. return v, changed
  26929. }
  26930. var mk int
  26931. var mv uint8
  26932. hasLen := containerLen > 0
  26933. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26934. if cr != nil {
  26935. cr.sendContainerState(containerMapKey)
  26936. }
  26937. mk = int(dd.DecodeInt(intBitsize))
  26938. if cr != nil {
  26939. cr.sendContainerState(containerMapValue)
  26940. }
  26941. if dd.TryDecodeAsNil() {
  26942. if d.h.DeleteOnNilMapValue {
  26943. delete(v, mk)
  26944. } else {
  26945. v[mk] = 0
  26946. }
  26947. continue
  26948. }
  26949. mv = uint8(dd.DecodeUint(8))
  26950. if v != nil {
  26951. v[mk] = mv
  26952. }
  26953. }
  26954. if cr != nil {
  26955. cr.sendContainerState(containerMapEnd)
  26956. }
  26957. return v, changed
  26958. }
  26959. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  26960. if rv.Kind() == reflect.Ptr {
  26961. vp := rv2i(rv).(*map[int]uint16)
  26962. if v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d); changed {
  26963. *vp = v
  26964. }
  26965. return
  26966. }
  26967. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  26968. }
  26969. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  26970. if v, changed := f.DecMapIntUint16V(*vp, true, d); changed {
  26971. *vp = v
  26972. }
  26973. }
  26974. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  26975. d *Decoder) (_ map[int]uint16, changed bool) {
  26976. dd, cr := d.d, d.cr
  26977. containerLen := dd.ReadMapStart()
  26978. if canChange && v == nil {
  26979. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26980. v = make(map[int]uint16, xlen)
  26981. changed = true
  26982. }
  26983. if containerLen == 0 {
  26984. if cr != nil {
  26985. cr.sendContainerState(containerMapEnd)
  26986. }
  26987. return v, changed
  26988. }
  26989. var mk int
  26990. var mv uint16
  26991. hasLen := containerLen > 0
  26992. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26993. if cr != nil {
  26994. cr.sendContainerState(containerMapKey)
  26995. }
  26996. mk = int(dd.DecodeInt(intBitsize))
  26997. if cr != nil {
  26998. cr.sendContainerState(containerMapValue)
  26999. }
  27000. if dd.TryDecodeAsNil() {
  27001. if d.h.DeleteOnNilMapValue {
  27002. delete(v, mk)
  27003. } else {
  27004. v[mk] = 0
  27005. }
  27006. continue
  27007. }
  27008. mv = uint16(dd.DecodeUint(16))
  27009. if v != nil {
  27010. v[mk] = mv
  27011. }
  27012. }
  27013. if cr != nil {
  27014. cr.sendContainerState(containerMapEnd)
  27015. }
  27016. return v, changed
  27017. }
  27018. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  27019. if rv.Kind() == reflect.Ptr {
  27020. vp := rv2i(rv).(*map[int]uint32)
  27021. if v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d); changed {
  27022. *vp = v
  27023. }
  27024. return
  27025. }
  27026. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  27027. }
  27028. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  27029. if v, changed := f.DecMapIntUint32V(*vp, true, d); changed {
  27030. *vp = v
  27031. }
  27032. }
  27033. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  27034. d *Decoder) (_ map[int]uint32, changed bool) {
  27035. dd, cr := d.d, d.cr
  27036. containerLen := dd.ReadMapStart()
  27037. if canChange && v == nil {
  27038. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27039. v = make(map[int]uint32, xlen)
  27040. changed = true
  27041. }
  27042. if containerLen == 0 {
  27043. if cr != nil {
  27044. cr.sendContainerState(containerMapEnd)
  27045. }
  27046. return v, changed
  27047. }
  27048. var mk int
  27049. var mv uint32
  27050. hasLen := containerLen > 0
  27051. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27052. if cr != nil {
  27053. cr.sendContainerState(containerMapKey)
  27054. }
  27055. mk = int(dd.DecodeInt(intBitsize))
  27056. if cr != nil {
  27057. cr.sendContainerState(containerMapValue)
  27058. }
  27059. if dd.TryDecodeAsNil() {
  27060. if d.h.DeleteOnNilMapValue {
  27061. delete(v, mk)
  27062. } else {
  27063. v[mk] = 0
  27064. }
  27065. continue
  27066. }
  27067. mv = uint32(dd.DecodeUint(32))
  27068. if v != nil {
  27069. v[mk] = mv
  27070. }
  27071. }
  27072. if cr != nil {
  27073. cr.sendContainerState(containerMapEnd)
  27074. }
  27075. return v, changed
  27076. }
  27077. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  27078. if rv.Kind() == reflect.Ptr {
  27079. vp := rv2i(rv).(*map[int]uint64)
  27080. if v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d); changed {
  27081. *vp = v
  27082. }
  27083. return
  27084. }
  27085. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  27086. }
  27087. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  27088. if v, changed := f.DecMapIntUint64V(*vp, true, d); changed {
  27089. *vp = v
  27090. }
  27091. }
  27092. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  27093. d *Decoder) (_ map[int]uint64, changed bool) {
  27094. dd, cr := d.d, d.cr
  27095. containerLen := dd.ReadMapStart()
  27096. if canChange && v == nil {
  27097. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27098. v = make(map[int]uint64, xlen)
  27099. changed = true
  27100. }
  27101. if containerLen == 0 {
  27102. if cr != nil {
  27103. cr.sendContainerState(containerMapEnd)
  27104. }
  27105. return v, changed
  27106. }
  27107. var mk int
  27108. var mv uint64
  27109. hasLen := containerLen > 0
  27110. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27111. if cr != nil {
  27112. cr.sendContainerState(containerMapKey)
  27113. }
  27114. mk = int(dd.DecodeInt(intBitsize))
  27115. if cr != nil {
  27116. cr.sendContainerState(containerMapValue)
  27117. }
  27118. if dd.TryDecodeAsNil() {
  27119. if d.h.DeleteOnNilMapValue {
  27120. delete(v, mk)
  27121. } else {
  27122. v[mk] = 0
  27123. }
  27124. continue
  27125. }
  27126. mv = dd.DecodeUint(64)
  27127. if v != nil {
  27128. v[mk] = mv
  27129. }
  27130. }
  27131. if cr != nil {
  27132. cr.sendContainerState(containerMapEnd)
  27133. }
  27134. return v, changed
  27135. }
  27136. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  27137. if rv.Kind() == reflect.Ptr {
  27138. vp := rv2i(rv).(*map[int]uintptr)
  27139. if v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d); changed {
  27140. *vp = v
  27141. }
  27142. return
  27143. }
  27144. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  27145. }
  27146. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  27147. if v, changed := f.DecMapIntUintptrV(*vp, true, d); changed {
  27148. *vp = v
  27149. }
  27150. }
  27151. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  27152. d *Decoder) (_ map[int]uintptr, changed bool) {
  27153. dd, cr := d.d, d.cr
  27154. containerLen := dd.ReadMapStart()
  27155. if canChange && v == nil {
  27156. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27157. v = make(map[int]uintptr, xlen)
  27158. changed = true
  27159. }
  27160. if containerLen == 0 {
  27161. if cr != nil {
  27162. cr.sendContainerState(containerMapEnd)
  27163. }
  27164. return v, changed
  27165. }
  27166. var mk int
  27167. var mv uintptr
  27168. hasLen := containerLen > 0
  27169. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27170. if cr != nil {
  27171. cr.sendContainerState(containerMapKey)
  27172. }
  27173. mk = int(dd.DecodeInt(intBitsize))
  27174. if cr != nil {
  27175. cr.sendContainerState(containerMapValue)
  27176. }
  27177. if dd.TryDecodeAsNil() {
  27178. if d.h.DeleteOnNilMapValue {
  27179. delete(v, mk)
  27180. } else {
  27181. v[mk] = 0
  27182. }
  27183. continue
  27184. }
  27185. mv = uintptr(dd.DecodeUint(uintBitsize))
  27186. if v != nil {
  27187. v[mk] = mv
  27188. }
  27189. }
  27190. if cr != nil {
  27191. cr.sendContainerState(containerMapEnd)
  27192. }
  27193. return v, changed
  27194. }
  27195. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  27196. if rv.Kind() == reflect.Ptr {
  27197. vp := rv2i(rv).(*map[int]int)
  27198. if v, changed := fastpathTV.DecMapIntIntV(*vp, true, d); changed {
  27199. *vp = v
  27200. }
  27201. return
  27202. }
  27203. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  27204. }
  27205. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  27206. if v, changed := f.DecMapIntIntV(*vp, true, d); changed {
  27207. *vp = v
  27208. }
  27209. }
  27210. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  27211. d *Decoder) (_ map[int]int, changed bool) {
  27212. dd, cr := d.d, d.cr
  27213. containerLen := dd.ReadMapStart()
  27214. if canChange && v == nil {
  27215. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27216. v = make(map[int]int, xlen)
  27217. changed = true
  27218. }
  27219. if containerLen == 0 {
  27220. if cr != nil {
  27221. cr.sendContainerState(containerMapEnd)
  27222. }
  27223. return v, changed
  27224. }
  27225. var mk int
  27226. var mv int
  27227. hasLen := containerLen > 0
  27228. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27229. if cr != nil {
  27230. cr.sendContainerState(containerMapKey)
  27231. }
  27232. mk = int(dd.DecodeInt(intBitsize))
  27233. if cr != nil {
  27234. cr.sendContainerState(containerMapValue)
  27235. }
  27236. if dd.TryDecodeAsNil() {
  27237. if d.h.DeleteOnNilMapValue {
  27238. delete(v, mk)
  27239. } else {
  27240. v[mk] = 0
  27241. }
  27242. continue
  27243. }
  27244. mv = int(dd.DecodeInt(intBitsize))
  27245. if v != nil {
  27246. v[mk] = mv
  27247. }
  27248. }
  27249. if cr != nil {
  27250. cr.sendContainerState(containerMapEnd)
  27251. }
  27252. return v, changed
  27253. }
  27254. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  27255. if rv.Kind() == reflect.Ptr {
  27256. vp := rv2i(rv).(*map[int]int8)
  27257. if v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d); changed {
  27258. *vp = v
  27259. }
  27260. return
  27261. }
  27262. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  27263. }
  27264. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  27265. if v, changed := f.DecMapIntInt8V(*vp, true, d); changed {
  27266. *vp = v
  27267. }
  27268. }
  27269. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  27270. d *Decoder) (_ map[int]int8, changed bool) {
  27271. dd, cr := d.d, d.cr
  27272. containerLen := dd.ReadMapStart()
  27273. if canChange && v == nil {
  27274. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27275. v = make(map[int]int8, xlen)
  27276. changed = true
  27277. }
  27278. if containerLen == 0 {
  27279. if cr != nil {
  27280. cr.sendContainerState(containerMapEnd)
  27281. }
  27282. return v, changed
  27283. }
  27284. var mk int
  27285. var mv int8
  27286. hasLen := containerLen > 0
  27287. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27288. if cr != nil {
  27289. cr.sendContainerState(containerMapKey)
  27290. }
  27291. mk = int(dd.DecodeInt(intBitsize))
  27292. if cr != nil {
  27293. cr.sendContainerState(containerMapValue)
  27294. }
  27295. if dd.TryDecodeAsNil() {
  27296. if d.h.DeleteOnNilMapValue {
  27297. delete(v, mk)
  27298. } else {
  27299. v[mk] = 0
  27300. }
  27301. continue
  27302. }
  27303. mv = int8(dd.DecodeInt(8))
  27304. if v != nil {
  27305. v[mk] = mv
  27306. }
  27307. }
  27308. if cr != nil {
  27309. cr.sendContainerState(containerMapEnd)
  27310. }
  27311. return v, changed
  27312. }
  27313. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  27314. if rv.Kind() == reflect.Ptr {
  27315. vp := rv2i(rv).(*map[int]int16)
  27316. if v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d); changed {
  27317. *vp = v
  27318. }
  27319. return
  27320. }
  27321. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  27322. }
  27323. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  27324. if v, changed := f.DecMapIntInt16V(*vp, true, d); changed {
  27325. *vp = v
  27326. }
  27327. }
  27328. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  27329. d *Decoder) (_ map[int]int16, changed bool) {
  27330. dd, cr := d.d, d.cr
  27331. containerLen := dd.ReadMapStart()
  27332. if canChange && v == nil {
  27333. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27334. v = make(map[int]int16, xlen)
  27335. changed = true
  27336. }
  27337. if containerLen == 0 {
  27338. if cr != nil {
  27339. cr.sendContainerState(containerMapEnd)
  27340. }
  27341. return v, changed
  27342. }
  27343. var mk int
  27344. var mv int16
  27345. hasLen := containerLen > 0
  27346. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27347. if cr != nil {
  27348. cr.sendContainerState(containerMapKey)
  27349. }
  27350. mk = int(dd.DecodeInt(intBitsize))
  27351. if cr != nil {
  27352. cr.sendContainerState(containerMapValue)
  27353. }
  27354. if dd.TryDecodeAsNil() {
  27355. if d.h.DeleteOnNilMapValue {
  27356. delete(v, mk)
  27357. } else {
  27358. v[mk] = 0
  27359. }
  27360. continue
  27361. }
  27362. mv = int16(dd.DecodeInt(16))
  27363. if v != nil {
  27364. v[mk] = mv
  27365. }
  27366. }
  27367. if cr != nil {
  27368. cr.sendContainerState(containerMapEnd)
  27369. }
  27370. return v, changed
  27371. }
  27372. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  27373. if rv.Kind() == reflect.Ptr {
  27374. vp := rv2i(rv).(*map[int]int32)
  27375. if v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d); changed {
  27376. *vp = v
  27377. }
  27378. return
  27379. }
  27380. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  27381. }
  27382. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  27383. if v, changed := f.DecMapIntInt32V(*vp, true, d); changed {
  27384. *vp = v
  27385. }
  27386. }
  27387. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  27388. d *Decoder) (_ map[int]int32, changed bool) {
  27389. dd, cr := d.d, d.cr
  27390. containerLen := dd.ReadMapStart()
  27391. if canChange && v == nil {
  27392. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27393. v = make(map[int]int32, xlen)
  27394. changed = true
  27395. }
  27396. if containerLen == 0 {
  27397. if cr != nil {
  27398. cr.sendContainerState(containerMapEnd)
  27399. }
  27400. return v, changed
  27401. }
  27402. var mk int
  27403. var mv int32
  27404. hasLen := containerLen > 0
  27405. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27406. if cr != nil {
  27407. cr.sendContainerState(containerMapKey)
  27408. }
  27409. mk = int(dd.DecodeInt(intBitsize))
  27410. if cr != nil {
  27411. cr.sendContainerState(containerMapValue)
  27412. }
  27413. if dd.TryDecodeAsNil() {
  27414. if d.h.DeleteOnNilMapValue {
  27415. delete(v, mk)
  27416. } else {
  27417. v[mk] = 0
  27418. }
  27419. continue
  27420. }
  27421. mv = int32(dd.DecodeInt(32))
  27422. if v != nil {
  27423. v[mk] = mv
  27424. }
  27425. }
  27426. if cr != nil {
  27427. cr.sendContainerState(containerMapEnd)
  27428. }
  27429. return v, changed
  27430. }
  27431. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  27432. if rv.Kind() == reflect.Ptr {
  27433. vp := rv2i(rv).(*map[int]int64)
  27434. if v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d); changed {
  27435. *vp = v
  27436. }
  27437. return
  27438. }
  27439. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  27440. }
  27441. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  27442. if v, changed := f.DecMapIntInt64V(*vp, true, d); changed {
  27443. *vp = v
  27444. }
  27445. }
  27446. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  27447. d *Decoder) (_ map[int]int64, changed bool) {
  27448. dd, cr := d.d, d.cr
  27449. containerLen := dd.ReadMapStart()
  27450. if canChange && v == nil {
  27451. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27452. v = make(map[int]int64, xlen)
  27453. changed = true
  27454. }
  27455. if containerLen == 0 {
  27456. if cr != nil {
  27457. cr.sendContainerState(containerMapEnd)
  27458. }
  27459. return v, changed
  27460. }
  27461. var mk int
  27462. var mv int64
  27463. hasLen := containerLen > 0
  27464. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27465. if cr != nil {
  27466. cr.sendContainerState(containerMapKey)
  27467. }
  27468. mk = int(dd.DecodeInt(intBitsize))
  27469. if cr != nil {
  27470. cr.sendContainerState(containerMapValue)
  27471. }
  27472. if dd.TryDecodeAsNil() {
  27473. if d.h.DeleteOnNilMapValue {
  27474. delete(v, mk)
  27475. } else {
  27476. v[mk] = 0
  27477. }
  27478. continue
  27479. }
  27480. mv = dd.DecodeInt(64)
  27481. if v != nil {
  27482. v[mk] = mv
  27483. }
  27484. }
  27485. if cr != nil {
  27486. cr.sendContainerState(containerMapEnd)
  27487. }
  27488. return v, changed
  27489. }
  27490. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  27491. if rv.Kind() == reflect.Ptr {
  27492. vp := rv2i(rv).(*map[int]float32)
  27493. if v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d); changed {
  27494. *vp = v
  27495. }
  27496. return
  27497. }
  27498. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  27499. }
  27500. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  27501. if v, changed := f.DecMapIntFloat32V(*vp, true, d); changed {
  27502. *vp = v
  27503. }
  27504. }
  27505. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  27506. d *Decoder) (_ map[int]float32, changed bool) {
  27507. dd, cr := d.d, d.cr
  27508. containerLen := dd.ReadMapStart()
  27509. if canChange && v == nil {
  27510. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27511. v = make(map[int]float32, xlen)
  27512. changed = true
  27513. }
  27514. if containerLen == 0 {
  27515. if cr != nil {
  27516. cr.sendContainerState(containerMapEnd)
  27517. }
  27518. return v, changed
  27519. }
  27520. var mk int
  27521. var mv float32
  27522. hasLen := containerLen > 0
  27523. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27524. if cr != nil {
  27525. cr.sendContainerState(containerMapKey)
  27526. }
  27527. mk = int(dd.DecodeInt(intBitsize))
  27528. if cr != nil {
  27529. cr.sendContainerState(containerMapValue)
  27530. }
  27531. if dd.TryDecodeAsNil() {
  27532. if d.h.DeleteOnNilMapValue {
  27533. delete(v, mk)
  27534. } else {
  27535. v[mk] = 0
  27536. }
  27537. continue
  27538. }
  27539. mv = float32(dd.DecodeFloat(true))
  27540. if v != nil {
  27541. v[mk] = mv
  27542. }
  27543. }
  27544. if cr != nil {
  27545. cr.sendContainerState(containerMapEnd)
  27546. }
  27547. return v, changed
  27548. }
  27549. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  27550. if rv.Kind() == reflect.Ptr {
  27551. vp := rv2i(rv).(*map[int]float64)
  27552. if v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d); changed {
  27553. *vp = v
  27554. }
  27555. return
  27556. }
  27557. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  27558. }
  27559. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  27560. if v, changed := f.DecMapIntFloat64V(*vp, true, d); changed {
  27561. *vp = v
  27562. }
  27563. }
  27564. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  27565. d *Decoder) (_ map[int]float64, changed bool) {
  27566. dd, cr := d.d, d.cr
  27567. containerLen := dd.ReadMapStart()
  27568. if canChange && v == nil {
  27569. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27570. v = make(map[int]float64, xlen)
  27571. changed = true
  27572. }
  27573. if containerLen == 0 {
  27574. if cr != nil {
  27575. cr.sendContainerState(containerMapEnd)
  27576. }
  27577. return v, changed
  27578. }
  27579. var mk int
  27580. var mv float64
  27581. hasLen := containerLen > 0
  27582. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27583. if cr != nil {
  27584. cr.sendContainerState(containerMapKey)
  27585. }
  27586. mk = int(dd.DecodeInt(intBitsize))
  27587. if cr != nil {
  27588. cr.sendContainerState(containerMapValue)
  27589. }
  27590. if dd.TryDecodeAsNil() {
  27591. if d.h.DeleteOnNilMapValue {
  27592. delete(v, mk)
  27593. } else {
  27594. v[mk] = 0
  27595. }
  27596. continue
  27597. }
  27598. mv = dd.DecodeFloat(false)
  27599. if v != nil {
  27600. v[mk] = mv
  27601. }
  27602. }
  27603. if cr != nil {
  27604. cr.sendContainerState(containerMapEnd)
  27605. }
  27606. return v, changed
  27607. }
  27608. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  27609. if rv.Kind() == reflect.Ptr {
  27610. vp := rv2i(rv).(*map[int]bool)
  27611. if v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d); changed {
  27612. *vp = v
  27613. }
  27614. return
  27615. }
  27616. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  27617. }
  27618. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  27619. if v, changed := f.DecMapIntBoolV(*vp, true, d); changed {
  27620. *vp = v
  27621. }
  27622. }
  27623. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  27624. d *Decoder) (_ map[int]bool, changed bool) {
  27625. dd, cr := d.d, d.cr
  27626. containerLen := dd.ReadMapStart()
  27627. if canChange && v == nil {
  27628. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27629. v = make(map[int]bool, xlen)
  27630. changed = true
  27631. }
  27632. if containerLen == 0 {
  27633. if cr != nil {
  27634. cr.sendContainerState(containerMapEnd)
  27635. }
  27636. return v, changed
  27637. }
  27638. var mk int
  27639. var mv bool
  27640. hasLen := containerLen > 0
  27641. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27642. if cr != nil {
  27643. cr.sendContainerState(containerMapKey)
  27644. }
  27645. mk = int(dd.DecodeInt(intBitsize))
  27646. if cr != nil {
  27647. cr.sendContainerState(containerMapValue)
  27648. }
  27649. if dd.TryDecodeAsNil() {
  27650. if d.h.DeleteOnNilMapValue {
  27651. delete(v, mk)
  27652. } else {
  27653. v[mk] = false
  27654. }
  27655. continue
  27656. }
  27657. mv = dd.DecodeBool()
  27658. if v != nil {
  27659. v[mk] = mv
  27660. }
  27661. }
  27662. if cr != nil {
  27663. cr.sendContainerState(containerMapEnd)
  27664. }
  27665. return v, changed
  27666. }
  27667. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  27668. if rv.Kind() == reflect.Ptr {
  27669. vp := rv2i(rv).(*map[int8]interface{})
  27670. if v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d); changed {
  27671. *vp = v
  27672. }
  27673. return
  27674. }
  27675. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  27676. }
  27677. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  27678. if v, changed := f.DecMapInt8IntfV(*vp, true, d); changed {
  27679. *vp = v
  27680. }
  27681. }
  27682. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  27683. d *Decoder) (_ map[int8]interface{}, changed bool) {
  27684. dd, cr := d.d, d.cr
  27685. containerLen := dd.ReadMapStart()
  27686. if canChange && v == nil {
  27687. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  27688. v = make(map[int8]interface{}, xlen)
  27689. changed = true
  27690. }
  27691. if containerLen == 0 {
  27692. if cr != nil {
  27693. cr.sendContainerState(containerMapEnd)
  27694. }
  27695. return v, changed
  27696. }
  27697. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  27698. var mk int8
  27699. var mv interface{}
  27700. hasLen := containerLen > 0
  27701. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27702. if cr != nil {
  27703. cr.sendContainerState(containerMapKey)
  27704. }
  27705. mk = int8(dd.DecodeInt(8))
  27706. if cr != nil {
  27707. cr.sendContainerState(containerMapValue)
  27708. }
  27709. if dd.TryDecodeAsNil() {
  27710. if d.h.DeleteOnNilMapValue {
  27711. delete(v, mk)
  27712. } else {
  27713. v[mk] = nil
  27714. }
  27715. continue
  27716. }
  27717. if mapGet {
  27718. mv = v[mk]
  27719. } else {
  27720. mv = nil
  27721. }
  27722. d.decode(&mv)
  27723. if v != nil {
  27724. v[mk] = mv
  27725. }
  27726. }
  27727. if cr != nil {
  27728. cr.sendContainerState(containerMapEnd)
  27729. }
  27730. return v, changed
  27731. }
  27732. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  27733. if rv.Kind() == reflect.Ptr {
  27734. vp := rv2i(rv).(*map[int8]string)
  27735. if v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d); changed {
  27736. *vp = v
  27737. }
  27738. return
  27739. }
  27740. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  27741. }
  27742. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  27743. if v, changed := f.DecMapInt8StringV(*vp, true, d); changed {
  27744. *vp = v
  27745. }
  27746. }
  27747. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  27748. d *Decoder) (_ map[int8]string, changed bool) {
  27749. dd, cr := d.d, d.cr
  27750. containerLen := dd.ReadMapStart()
  27751. if canChange && v == nil {
  27752. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  27753. v = make(map[int8]string, xlen)
  27754. changed = true
  27755. }
  27756. if containerLen == 0 {
  27757. if cr != nil {
  27758. cr.sendContainerState(containerMapEnd)
  27759. }
  27760. return v, changed
  27761. }
  27762. var mk int8
  27763. var mv string
  27764. hasLen := containerLen > 0
  27765. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27766. if cr != nil {
  27767. cr.sendContainerState(containerMapKey)
  27768. }
  27769. mk = int8(dd.DecodeInt(8))
  27770. if cr != nil {
  27771. cr.sendContainerState(containerMapValue)
  27772. }
  27773. if dd.TryDecodeAsNil() {
  27774. if d.h.DeleteOnNilMapValue {
  27775. delete(v, mk)
  27776. } else {
  27777. v[mk] = ""
  27778. }
  27779. continue
  27780. }
  27781. mv = dd.DecodeString()
  27782. if v != nil {
  27783. v[mk] = mv
  27784. }
  27785. }
  27786. if cr != nil {
  27787. cr.sendContainerState(containerMapEnd)
  27788. }
  27789. return v, changed
  27790. }
  27791. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  27792. if rv.Kind() == reflect.Ptr {
  27793. vp := rv2i(rv).(*map[int8]uint)
  27794. if v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d); changed {
  27795. *vp = v
  27796. }
  27797. return
  27798. }
  27799. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  27800. }
  27801. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  27802. if v, changed := f.DecMapInt8UintV(*vp, true, d); changed {
  27803. *vp = v
  27804. }
  27805. }
  27806. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  27807. d *Decoder) (_ map[int8]uint, changed bool) {
  27808. dd, cr := d.d, d.cr
  27809. containerLen := dd.ReadMapStart()
  27810. if canChange && v == nil {
  27811. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27812. v = make(map[int8]uint, xlen)
  27813. changed = true
  27814. }
  27815. if containerLen == 0 {
  27816. if cr != nil {
  27817. cr.sendContainerState(containerMapEnd)
  27818. }
  27819. return v, changed
  27820. }
  27821. var mk int8
  27822. var mv uint
  27823. hasLen := containerLen > 0
  27824. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27825. if cr != nil {
  27826. cr.sendContainerState(containerMapKey)
  27827. }
  27828. mk = int8(dd.DecodeInt(8))
  27829. if cr != nil {
  27830. cr.sendContainerState(containerMapValue)
  27831. }
  27832. if dd.TryDecodeAsNil() {
  27833. if d.h.DeleteOnNilMapValue {
  27834. delete(v, mk)
  27835. } else {
  27836. v[mk] = 0
  27837. }
  27838. continue
  27839. }
  27840. mv = uint(dd.DecodeUint(uintBitsize))
  27841. if v != nil {
  27842. v[mk] = mv
  27843. }
  27844. }
  27845. if cr != nil {
  27846. cr.sendContainerState(containerMapEnd)
  27847. }
  27848. return v, changed
  27849. }
  27850. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  27851. if rv.Kind() == reflect.Ptr {
  27852. vp := rv2i(rv).(*map[int8]uint8)
  27853. if v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d); changed {
  27854. *vp = v
  27855. }
  27856. return
  27857. }
  27858. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  27859. }
  27860. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  27861. if v, changed := f.DecMapInt8Uint8V(*vp, true, d); changed {
  27862. *vp = v
  27863. }
  27864. }
  27865. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  27866. d *Decoder) (_ map[int8]uint8, changed bool) {
  27867. dd, cr := d.d, d.cr
  27868. containerLen := dd.ReadMapStart()
  27869. if canChange && v == nil {
  27870. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  27871. v = make(map[int8]uint8, xlen)
  27872. changed = true
  27873. }
  27874. if containerLen == 0 {
  27875. if cr != nil {
  27876. cr.sendContainerState(containerMapEnd)
  27877. }
  27878. return v, changed
  27879. }
  27880. var mk int8
  27881. var mv uint8
  27882. hasLen := containerLen > 0
  27883. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27884. if cr != nil {
  27885. cr.sendContainerState(containerMapKey)
  27886. }
  27887. mk = int8(dd.DecodeInt(8))
  27888. if cr != nil {
  27889. cr.sendContainerState(containerMapValue)
  27890. }
  27891. if dd.TryDecodeAsNil() {
  27892. if d.h.DeleteOnNilMapValue {
  27893. delete(v, mk)
  27894. } else {
  27895. v[mk] = 0
  27896. }
  27897. continue
  27898. }
  27899. mv = uint8(dd.DecodeUint(8))
  27900. if v != nil {
  27901. v[mk] = mv
  27902. }
  27903. }
  27904. if cr != nil {
  27905. cr.sendContainerState(containerMapEnd)
  27906. }
  27907. return v, changed
  27908. }
  27909. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  27910. if rv.Kind() == reflect.Ptr {
  27911. vp := rv2i(rv).(*map[int8]uint16)
  27912. if v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d); changed {
  27913. *vp = v
  27914. }
  27915. return
  27916. }
  27917. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  27918. }
  27919. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  27920. if v, changed := f.DecMapInt8Uint16V(*vp, true, d); changed {
  27921. *vp = v
  27922. }
  27923. }
  27924. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  27925. d *Decoder) (_ map[int8]uint16, changed bool) {
  27926. dd, cr := d.d, d.cr
  27927. containerLen := dd.ReadMapStart()
  27928. if canChange && v == nil {
  27929. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  27930. v = make(map[int8]uint16, xlen)
  27931. changed = true
  27932. }
  27933. if containerLen == 0 {
  27934. if cr != nil {
  27935. cr.sendContainerState(containerMapEnd)
  27936. }
  27937. return v, changed
  27938. }
  27939. var mk int8
  27940. var mv uint16
  27941. hasLen := containerLen > 0
  27942. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27943. if cr != nil {
  27944. cr.sendContainerState(containerMapKey)
  27945. }
  27946. mk = int8(dd.DecodeInt(8))
  27947. if cr != nil {
  27948. cr.sendContainerState(containerMapValue)
  27949. }
  27950. if dd.TryDecodeAsNil() {
  27951. if d.h.DeleteOnNilMapValue {
  27952. delete(v, mk)
  27953. } else {
  27954. v[mk] = 0
  27955. }
  27956. continue
  27957. }
  27958. mv = uint16(dd.DecodeUint(16))
  27959. if v != nil {
  27960. v[mk] = mv
  27961. }
  27962. }
  27963. if cr != nil {
  27964. cr.sendContainerState(containerMapEnd)
  27965. }
  27966. return v, changed
  27967. }
  27968. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  27969. if rv.Kind() == reflect.Ptr {
  27970. vp := rv2i(rv).(*map[int8]uint32)
  27971. if v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d); changed {
  27972. *vp = v
  27973. }
  27974. return
  27975. }
  27976. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  27977. }
  27978. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  27979. if v, changed := f.DecMapInt8Uint32V(*vp, true, d); changed {
  27980. *vp = v
  27981. }
  27982. }
  27983. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  27984. d *Decoder) (_ map[int8]uint32, changed bool) {
  27985. dd, cr := d.d, d.cr
  27986. containerLen := dd.ReadMapStart()
  27987. if canChange && v == nil {
  27988. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27989. v = make(map[int8]uint32, xlen)
  27990. changed = true
  27991. }
  27992. if containerLen == 0 {
  27993. if cr != nil {
  27994. cr.sendContainerState(containerMapEnd)
  27995. }
  27996. return v, changed
  27997. }
  27998. var mk int8
  27999. var mv uint32
  28000. hasLen := containerLen > 0
  28001. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28002. if cr != nil {
  28003. cr.sendContainerState(containerMapKey)
  28004. }
  28005. mk = int8(dd.DecodeInt(8))
  28006. if cr != nil {
  28007. cr.sendContainerState(containerMapValue)
  28008. }
  28009. if dd.TryDecodeAsNil() {
  28010. if d.h.DeleteOnNilMapValue {
  28011. delete(v, mk)
  28012. } else {
  28013. v[mk] = 0
  28014. }
  28015. continue
  28016. }
  28017. mv = uint32(dd.DecodeUint(32))
  28018. if v != nil {
  28019. v[mk] = mv
  28020. }
  28021. }
  28022. if cr != nil {
  28023. cr.sendContainerState(containerMapEnd)
  28024. }
  28025. return v, changed
  28026. }
  28027. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  28028. if rv.Kind() == reflect.Ptr {
  28029. vp := rv2i(rv).(*map[int8]uint64)
  28030. if v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d); changed {
  28031. *vp = v
  28032. }
  28033. return
  28034. }
  28035. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  28036. }
  28037. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  28038. if v, changed := f.DecMapInt8Uint64V(*vp, true, d); changed {
  28039. *vp = v
  28040. }
  28041. }
  28042. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  28043. d *Decoder) (_ map[int8]uint64, changed bool) {
  28044. dd, cr := d.d, d.cr
  28045. containerLen := dd.ReadMapStart()
  28046. if canChange && v == nil {
  28047. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28048. v = make(map[int8]uint64, xlen)
  28049. changed = true
  28050. }
  28051. if containerLen == 0 {
  28052. if cr != nil {
  28053. cr.sendContainerState(containerMapEnd)
  28054. }
  28055. return v, changed
  28056. }
  28057. var mk int8
  28058. var mv uint64
  28059. hasLen := containerLen > 0
  28060. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28061. if cr != nil {
  28062. cr.sendContainerState(containerMapKey)
  28063. }
  28064. mk = int8(dd.DecodeInt(8))
  28065. if cr != nil {
  28066. cr.sendContainerState(containerMapValue)
  28067. }
  28068. if dd.TryDecodeAsNil() {
  28069. if d.h.DeleteOnNilMapValue {
  28070. delete(v, mk)
  28071. } else {
  28072. v[mk] = 0
  28073. }
  28074. continue
  28075. }
  28076. mv = dd.DecodeUint(64)
  28077. if v != nil {
  28078. v[mk] = mv
  28079. }
  28080. }
  28081. if cr != nil {
  28082. cr.sendContainerState(containerMapEnd)
  28083. }
  28084. return v, changed
  28085. }
  28086. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  28087. if rv.Kind() == reflect.Ptr {
  28088. vp := rv2i(rv).(*map[int8]uintptr)
  28089. if v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d); changed {
  28090. *vp = v
  28091. }
  28092. return
  28093. }
  28094. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  28095. }
  28096. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  28097. if v, changed := f.DecMapInt8UintptrV(*vp, true, d); changed {
  28098. *vp = v
  28099. }
  28100. }
  28101. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  28102. d *Decoder) (_ map[int8]uintptr, changed bool) {
  28103. dd, cr := d.d, d.cr
  28104. containerLen := dd.ReadMapStart()
  28105. if canChange && v == nil {
  28106. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28107. v = make(map[int8]uintptr, xlen)
  28108. changed = true
  28109. }
  28110. if containerLen == 0 {
  28111. if cr != nil {
  28112. cr.sendContainerState(containerMapEnd)
  28113. }
  28114. return v, changed
  28115. }
  28116. var mk int8
  28117. var mv uintptr
  28118. hasLen := containerLen > 0
  28119. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28120. if cr != nil {
  28121. cr.sendContainerState(containerMapKey)
  28122. }
  28123. mk = int8(dd.DecodeInt(8))
  28124. if cr != nil {
  28125. cr.sendContainerState(containerMapValue)
  28126. }
  28127. if dd.TryDecodeAsNil() {
  28128. if d.h.DeleteOnNilMapValue {
  28129. delete(v, mk)
  28130. } else {
  28131. v[mk] = 0
  28132. }
  28133. continue
  28134. }
  28135. mv = uintptr(dd.DecodeUint(uintBitsize))
  28136. if v != nil {
  28137. v[mk] = mv
  28138. }
  28139. }
  28140. if cr != nil {
  28141. cr.sendContainerState(containerMapEnd)
  28142. }
  28143. return v, changed
  28144. }
  28145. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  28146. if rv.Kind() == reflect.Ptr {
  28147. vp := rv2i(rv).(*map[int8]int)
  28148. if v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d); changed {
  28149. *vp = v
  28150. }
  28151. return
  28152. }
  28153. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  28154. }
  28155. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  28156. if v, changed := f.DecMapInt8IntV(*vp, true, d); changed {
  28157. *vp = v
  28158. }
  28159. }
  28160. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  28161. d *Decoder) (_ map[int8]int, changed bool) {
  28162. dd, cr := d.d, d.cr
  28163. containerLen := dd.ReadMapStart()
  28164. if canChange && v == nil {
  28165. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28166. v = make(map[int8]int, xlen)
  28167. changed = true
  28168. }
  28169. if containerLen == 0 {
  28170. if cr != nil {
  28171. cr.sendContainerState(containerMapEnd)
  28172. }
  28173. return v, changed
  28174. }
  28175. var mk int8
  28176. var mv int
  28177. hasLen := containerLen > 0
  28178. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28179. if cr != nil {
  28180. cr.sendContainerState(containerMapKey)
  28181. }
  28182. mk = int8(dd.DecodeInt(8))
  28183. if cr != nil {
  28184. cr.sendContainerState(containerMapValue)
  28185. }
  28186. if dd.TryDecodeAsNil() {
  28187. if d.h.DeleteOnNilMapValue {
  28188. delete(v, mk)
  28189. } else {
  28190. v[mk] = 0
  28191. }
  28192. continue
  28193. }
  28194. mv = int(dd.DecodeInt(intBitsize))
  28195. if v != nil {
  28196. v[mk] = mv
  28197. }
  28198. }
  28199. if cr != nil {
  28200. cr.sendContainerState(containerMapEnd)
  28201. }
  28202. return v, changed
  28203. }
  28204. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  28205. if rv.Kind() == reflect.Ptr {
  28206. vp := rv2i(rv).(*map[int8]int8)
  28207. if v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d); changed {
  28208. *vp = v
  28209. }
  28210. return
  28211. }
  28212. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  28213. }
  28214. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  28215. if v, changed := f.DecMapInt8Int8V(*vp, true, d); changed {
  28216. *vp = v
  28217. }
  28218. }
  28219. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  28220. d *Decoder) (_ map[int8]int8, changed bool) {
  28221. dd, cr := d.d, d.cr
  28222. containerLen := dd.ReadMapStart()
  28223. if canChange && v == nil {
  28224. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  28225. v = make(map[int8]int8, xlen)
  28226. changed = true
  28227. }
  28228. if containerLen == 0 {
  28229. if cr != nil {
  28230. cr.sendContainerState(containerMapEnd)
  28231. }
  28232. return v, changed
  28233. }
  28234. var mk int8
  28235. var mv int8
  28236. hasLen := containerLen > 0
  28237. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28238. if cr != nil {
  28239. cr.sendContainerState(containerMapKey)
  28240. }
  28241. mk = int8(dd.DecodeInt(8))
  28242. if cr != nil {
  28243. cr.sendContainerState(containerMapValue)
  28244. }
  28245. if dd.TryDecodeAsNil() {
  28246. if d.h.DeleteOnNilMapValue {
  28247. delete(v, mk)
  28248. } else {
  28249. v[mk] = 0
  28250. }
  28251. continue
  28252. }
  28253. mv = int8(dd.DecodeInt(8))
  28254. if v != nil {
  28255. v[mk] = mv
  28256. }
  28257. }
  28258. if cr != nil {
  28259. cr.sendContainerState(containerMapEnd)
  28260. }
  28261. return v, changed
  28262. }
  28263. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  28264. if rv.Kind() == reflect.Ptr {
  28265. vp := rv2i(rv).(*map[int8]int16)
  28266. if v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d); changed {
  28267. *vp = v
  28268. }
  28269. return
  28270. }
  28271. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  28272. }
  28273. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  28274. if v, changed := f.DecMapInt8Int16V(*vp, true, d); changed {
  28275. *vp = v
  28276. }
  28277. }
  28278. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  28279. d *Decoder) (_ map[int8]int16, changed bool) {
  28280. dd, cr := d.d, d.cr
  28281. containerLen := dd.ReadMapStart()
  28282. if canChange && v == nil {
  28283. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  28284. v = make(map[int8]int16, xlen)
  28285. changed = true
  28286. }
  28287. if containerLen == 0 {
  28288. if cr != nil {
  28289. cr.sendContainerState(containerMapEnd)
  28290. }
  28291. return v, changed
  28292. }
  28293. var mk int8
  28294. var mv int16
  28295. hasLen := containerLen > 0
  28296. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28297. if cr != nil {
  28298. cr.sendContainerState(containerMapKey)
  28299. }
  28300. mk = int8(dd.DecodeInt(8))
  28301. if cr != nil {
  28302. cr.sendContainerState(containerMapValue)
  28303. }
  28304. if dd.TryDecodeAsNil() {
  28305. if d.h.DeleteOnNilMapValue {
  28306. delete(v, mk)
  28307. } else {
  28308. v[mk] = 0
  28309. }
  28310. continue
  28311. }
  28312. mv = int16(dd.DecodeInt(16))
  28313. if v != nil {
  28314. v[mk] = mv
  28315. }
  28316. }
  28317. if cr != nil {
  28318. cr.sendContainerState(containerMapEnd)
  28319. }
  28320. return v, changed
  28321. }
  28322. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  28323. if rv.Kind() == reflect.Ptr {
  28324. vp := rv2i(rv).(*map[int8]int32)
  28325. if v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d); changed {
  28326. *vp = v
  28327. }
  28328. return
  28329. }
  28330. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  28331. }
  28332. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  28333. if v, changed := f.DecMapInt8Int32V(*vp, true, d); changed {
  28334. *vp = v
  28335. }
  28336. }
  28337. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  28338. d *Decoder) (_ map[int8]int32, changed bool) {
  28339. dd, cr := d.d, d.cr
  28340. containerLen := dd.ReadMapStart()
  28341. if canChange && v == nil {
  28342. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28343. v = make(map[int8]int32, xlen)
  28344. changed = true
  28345. }
  28346. if containerLen == 0 {
  28347. if cr != nil {
  28348. cr.sendContainerState(containerMapEnd)
  28349. }
  28350. return v, changed
  28351. }
  28352. var mk int8
  28353. var mv int32
  28354. hasLen := containerLen > 0
  28355. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28356. if cr != nil {
  28357. cr.sendContainerState(containerMapKey)
  28358. }
  28359. mk = int8(dd.DecodeInt(8))
  28360. if cr != nil {
  28361. cr.sendContainerState(containerMapValue)
  28362. }
  28363. if dd.TryDecodeAsNil() {
  28364. if d.h.DeleteOnNilMapValue {
  28365. delete(v, mk)
  28366. } else {
  28367. v[mk] = 0
  28368. }
  28369. continue
  28370. }
  28371. mv = int32(dd.DecodeInt(32))
  28372. if v != nil {
  28373. v[mk] = mv
  28374. }
  28375. }
  28376. if cr != nil {
  28377. cr.sendContainerState(containerMapEnd)
  28378. }
  28379. return v, changed
  28380. }
  28381. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  28382. if rv.Kind() == reflect.Ptr {
  28383. vp := rv2i(rv).(*map[int8]int64)
  28384. if v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d); changed {
  28385. *vp = v
  28386. }
  28387. return
  28388. }
  28389. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  28390. }
  28391. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  28392. if v, changed := f.DecMapInt8Int64V(*vp, true, d); changed {
  28393. *vp = v
  28394. }
  28395. }
  28396. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  28397. d *Decoder) (_ map[int8]int64, changed bool) {
  28398. dd, cr := d.d, d.cr
  28399. containerLen := dd.ReadMapStart()
  28400. if canChange && v == nil {
  28401. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28402. v = make(map[int8]int64, xlen)
  28403. changed = true
  28404. }
  28405. if containerLen == 0 {
  28406. if cr != nil {
  28407. cr.sendContainerState(containerMapEnd)
  28408. }
  28409. return v, changed
  28410. }
  28411. var mk int8
  28412. var mv int64
  28413. hasLen := containerLen > 0
  28414. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28415. if cr != nil {
  28416. cr.sendContainerState(containerMapKey)
  28417. }
  28418. mk = int8(dd.DecodeInt(8))
  28419. if cr != nil {
  28420. cr.sendContainerState(containerMapValue)
  28421. }
  28422. if dd.TryDecodeAsNil() {
  28423. if d.h.DeleteOnNilMapValue {
  28424. delete(v, mk)
  28425. } else {
  28426. v[mk] = 0
  28427. }
  28428. continue
  28429. }
  28430. mv = dd.DecodeInt(64)
  28431. if v != nil {
  28432. v[mk] = mv
  28433. }
  28434. }
  28435. if cr != nil {
  28436. cr.sendContainerState(containerMapEnd)
  28437. }
  28438. return v, changed
  28439. }
  28440. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  28441. if rv.Kind() == reflect.Ptr {
  28442. vp := rv2i(rv).(*map[int8]float32)
  28443. if v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d); changed {
  28444. *vp = v
  28445. }
  28446. return
  28447. }
  28448. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  28449. }
  28450. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  28451. if v, changed := f.DecMapInt8Float32V(*vp, true, d); changed {
  28452. *vp = v
  28453. }
  28454. }
  28455. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  28456. d *Decoder) (_ map[int8]float32, changed bool) {
  28457. dd, cr := d.d, d.cr
  28458. containerLen := dd.ReadMapStart()
  28459. if canChange && v == nil {
  28460. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28461. v = make(map[int8]float32, xlen)
  28462. changed = true
  28463. }
  28464. if containerLen == 0 {
  28465. if cr != nil {
  28466. cr.sendContainerState(containerMapEnd)
  28467. }
  28468. return v, changed
  28469. }
  28470. var mk int8
  28471. var mv float32
  28472. hasLen := containerLen > 0
  28473. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28474. if cr != nil {
  28475. cr.sendContainerState(containerMapKey)
  28476. }
  28477. mk = int8(dd.DecodeInt(8))
  28478. if cr != nil {
  28479. cr.sendContainerState(containerMapValue)
  28480. }
  28481. if dd.TryDecodeAsNil() {
  28482. if d.h.DeleteOnNilMapValue {
  28483. delete(v, mk)
  28484. } else {
  28485. v[mk] = 0
  28486. }
  28487. continue
  28488. }
  28489. mv = float32(dd.DecodeFloat(true))
  28490. if v != nil {
  28491. v[mk] = mv
  28492. }
  28493. }
  28494. if cr != nil {
  28495. cr.sendContainerState(containerMapEnd)
  28496. }
  28497. return v, changed
  28498. }
  28499. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  28500. if rv.Kind() == reflect.Ptr {
  28501. vp := rv2i(rv).(*map[int8]float64)
  28502. if v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d); changed {
  28503. *vp = v
  28504. }
  28505. return
  28506. }
  28507. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  28508. }
  28509. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  28510. if v, changed := f.DecMapInt8Float64V(*vp, true, d); changed {
  28511. *vp = v
  28512. }
  28513. }
  28514. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  28515. d *Decoder) (_ map[int8]float64, changed bool) {
  28516. dd, cr := d.d, d.cr
  28517. containerLen := dd.ReadMapStart()
  28518. if canChange && v == nil {
  28519. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28520. v = make(map[int8]float64, xlen)
  28521. changed = true
  28522. }
  28523. if containerLen == 0 {
  28524. if cr != nil {
  28525. cr.sendContainerState(containerMapEnd)
  28526. }
  28527. return v, changed
  28528. }
  28529. var mk int8
  28530. var mv float64
  28531. hasLen := containerLen > 0
  28532. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28533. if cr != nil {
  28534. cr.sendContainerState(containerMapKey)
  28535. }
  28536. mk = int8(dd.DecodeInt(8))
  28537. if cr != nil {
  28538. cr.sendContainerState(containerMapValue)
  28539. }
  28540. if dd.TryDecodeAsNil() {
  28541. if d.h.DeleteOnNilMapValue {
  28542. delete(v, mk)
  28543. } else {
  28544. v[mk] = 0
  28545. }
  28546. continue
  28547. }
  28548. mv = dd.DecodeFloat(false)
  28549. if v != nil {
  28550. v[mk] = mv
  28551. }
  28552. }
  28553. if cr != nil {
  28554. cr.sendContainerState(containerMapEnd)
  28555. }
  28556. return v, changed
  28557. }
  28558. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  28559. if rv.Kind() == reflect.Ptr {
  28560. vp := rv2i(rv).(*map[int8]bool)
  28561. if v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d); changed {
  28562. *vp = v
  28563. }
  28564. return
  28565. }
  28566. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  28567. }
  28568. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  28569. if v, changed := f.DecMapInt8BoolV(*vp, true, d); changed {
  28570. *vp = v
  28571. }
  28572. }
  28573. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  28574. d *Decoder) (_ map[int8]bool, changed bool) {
  28575. dd, cr := d.d, d.cr
  28576. containerLen := dd.ReadMapStart()
  28577. if canChange && v == nil {
  28578. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  28579. v = make(map[int8]bool, xlen)
  28580. changed = true
  28581. }
  28582. if containerLen == 0 {
  28583. if cr != nil {
  28584. cr.sendContainerState(containerMapEnd)
  28585. }
  28586. return v, changed
  28587. }
  28588. var mk int8
  28589. var mv bool
  28590. hasLen := containerLen > 0
  28591. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28592. if cr != nil {
  28593. cr.sendContainerState(containerMapKey)
  28594. }
  28595. mk = int8(dd.DecodeInt(8))
  28596. if cr != nil {
  28597. cr.sendContainerState(containerMapValue)
  28598. }
  28599. if dd.TryDecodeAsNil() {
  28600. if d.h.DeleteOnNilMapValue {
  28601. delete(v, mk)
  28602. } else {
  28603. v[mk] = false
  28604. }
  28605. continue
  28606. }
  28607. mv = dd.DecodeBool()
  28608. if v != nil {
  28609. v[mk] = mv
  28610. }
  28611. }
  28612. if cr != nil {
  28613. cr.sendContainerState(containerMapEnd)
  28614. }
  28615. return v, changed
  28616. }
  28617. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  28618. if rv.Kind() == reflect.Ptr {
  28619. vp := rv2i(rv).(*map[int16]interface{})
  28620. if v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d); changed {
  28621. *vp = v
  28622. }
  28623. return
  28624. }
  28625. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  28626. }
  28627. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  28628. if v, changed := f.DecMapInt16IntfV(*vp, true, d); changed {
  28629. *vp = v
  28630. }
  28631. }
  28632. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  28633. d *Decoder) (_ map[int16]interface{}, changed bool) {
  28634. dd, cr := d.d, d.cr
  28635. containerLen := dd.ReadMapStart()
  28636. if canChange && v == nil {
  28637. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  28638. v = make(map[int16]interface{}, xlen)
  28639. changed = true
  28640. }
  28641. if containerLen == 0 {
  28642. if cr != nil {
  28643. cr.sendContainerState(containerMapEnd)
  28644. }
  28645. return v, changed
  28646. }
  28647. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  28648. var mk int16
  28649. var mv interface{}
  28650. hasLen := containerLen > 0
  28651. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28652. if cr != nil {
  28653. cr.sendContainerState(containerMapKey)
  28654. }
  28655. mk = int16(dd.DecodeInt(16))
  28656. if cr != nil {
  28657. cr.sendContainerState(containerMapValue)
  28658. }
  28659. if dd.TryDecodeAsNil() {
  28660. if d.h.DeleteOnNilMapValue {
  28661. delete(v, mk)
  28662. } else {
  28663. v[mk] = nil
  28664. }
  28665. continue
  28666. }
  28667. if mapGet {
  28668. mv = v[mk]
  28669. } else {
  28670. mv = nil
  28671. }
  28672. d.decode(&mv)
  28673. if v != nil {
  28674. v[mk] = mv
  28675. }
  28676. }
  28677. if cr != nil {
  28678. cr.sendContainerState(containerMapEnd)
  28679. }
  28680. return v, changed
  28681. }
  28682. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  28683. if rv.Kind() == reflect.Ptr {
  28684. vp := rv2i(rv).(*map[int16]string)
  28685. if v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d); changed {
  28686. *vp = v
  28687. }
  28688. return
  28689. }
  28690. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  28691. }
  28692. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  28693. if v, changed := f.DecMapInt16StringV(*vp, true, d); changed {
  28694. *vp = v
  28695. }
  28696. }
  28697. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  28698. d *Decoder) (_ map[int16]string, changed bool) {
  28699. dd, cr := d.d, d.cr
  28700. containerLen := dd.ReadMapStart()
  28701. if canChange && v == nil {
  28702. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  28703. v = make(map[int16]string, xlen)
  28704. changed = true
  28705. }
  28706. if containerLen == 0 {
  28707. if cr != nil {
  28708. cr.sendContainerState(containerMapEnd)
  28709. }
  28710. return v, changed
  28711. }
  28712. var mk int16
  28713. var mv string
  28714. hasLen := containerLen > 0
  28715. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28716. if cr != nil {
  28717. cr.sendContainerState(containerMapKey)
  28718. }
  28719. mk = int16(dd.DecodeInt(16))
  28720. if cr != nil {
  28721. cr.sendContainerState(containerMapValue)
  28722. }
  28723. if dd.TryDecodeAsNil() {
  28724. if d.h.DeleteOnNilMapValue {
  28725. delete(v, mk)
  28726. } else {
  28727. v[mk] = ""
  28728. }
  28729. continue
  28730. }
  28731. mv = dd.DecodeString()
  28732. if v != nil {
  28733. v[mk] = mv
  28734. }
  28735. }
  28736. if cr != nil {
  28737. cr.sendContainerState(containerMapEnd)
  28738. }
  28739. return v, changed
  28740. }
  28741. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  28742. if rv.Kind() == reflect.Ptr {
  28743. vp := rv2i(rv).(*map[int16]uint)
  28744. if v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d); changed {
  28745. *vp = v
  28746. }
  28747. return
  28748. }
  28749. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  28750. }
  28751. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  28752. if v, changed := f.DecMapInt16UintV(*vp, true, d); changed {
  28753. *vp = v
  28754. }
  28755. }
  28756. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  28757. d *Decoder) (_ map[int16]uint, changed bool) {
  28758. dd, cr := d.d, d.cr
  28759. containerLen := dd.ReadMapStart()
  28760. if canChange && v == nil {
  28761. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28762. v = make(map[int16]uint, xlen)
  28763. changed = true
  28764. }
  28765. if containerLen == 0 {
  28766. if cr != nil {
  28767. cr.sendContainerState(containerMapEnd)
  28768. }
  28769. return v, changed
  28770. }
  28771. var mk int16
  28772. var mv uint
  28773. hasLen := containerLen > 0
  28774. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28775. if cr != nil {
  28776. cr.sendContainerState(containerMapKey)
  28777. }
  28778. mk = int16(dd.DecodeInt(16))
  28779. if cr != nil {
  28780. cr.sendContainerState(containerMapValue)
  28781. }
  28782. if dd.TryDecodeAsNil() {
  28783. if d.h.DeleteOnNilMapValue {
  28784. delete(v, mk)
  28785. } else {
  28786. v[mk] = 0
  28787. }
  28788. continue
  28789. }
  28790. mv = uint(dd.DecodeUint(uintBitsize))
  28791. if v != nil {
  28792. v[mk] = mv
  28793. }
  28794. }
  28795. if cr != nil {
  28796. cr.sendContainerState(containerMapEnd)
  28797. }
  28798. return v, changed
  28799. }
  28800. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  28801. if rv.Kind() == reflect.Ptr {
  28802. vp := rv2i(rv).(*map[int16]uint8)
  28803. if v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d); changed {
  28804. *vp = v
  28805. }
  28806. return
  28807. }
  28808. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  28809. }
  28810. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  28811. if v, changed := f.DecMapInt16Uint8V(*vp, true, d); changed {
  28812. *vp = v
  28813. }
  28814. }
  28815. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  28816. d *Decoder) (_ map[int16]uint8, changed bool) {
  28817. dd, cr := d.d, d.cr
  28818. containerLen := dd.ReadMapStart()
  28819. if canChange && v == nil {
  28820. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  28821. v = make(map[int16]uint8, xlen)
  28822. changed = true
  28823. }
  28824. if containerLen == 0 {
  28825. if cr != nil {
  28826. cr.sendContainerState(containerMapEnd)
  28827. }
  28828. return v, changed
  28829. }
  28830. var mk int16
  28831. var mv uint8
  28832. hasLen := containerLen > 0
  28833. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28834. if cr != nil {
  28835. cr.sendContainerState(containerMapKey)
  28836. }
  28837. mk = int16(dd.DecodeInt(16))
  28838. if cr != nil {
  28839. cr.sendContainerState(containerMapValue)
  28840. }
  28841. if dd.TryDecodeAsNil() {
  28842. if d.h.DeleteOnNilMapValue {
  28843. delete(v, mk)
  28844. } else {
  28845. v[mk] = 0
  28846. }
  28847. continue
  28848. }
  28849. mv = uint8(dd.DecodeUint(8))
  28850. if v != nil {
  28851. v[mk] = mv
  28852. }
  28853. }
  28854. if cr != nil {
  28855. cr.sendContainerState(containerMapEnd)
  28856. }
  28857. return v, changed
  28858. }
  28859. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  28860. if rv.Kind() == reflect.Ptr {
  28861. vp := rv2i(rv).(*map[int16]uint16)
  28862. if v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d); changed {
  28863. *vp = v
  28864. }
  28865. return
  28866. }
  28867. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  28868. }
  28869. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  28870. if v, changed := f.DecMapInt16Uint16V(*vp, true, d); changed {
  28871. *vp = v
  28872. }
  28873. }
  28874. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  28875. d *Decoder) (_ map[int16]uint16, changed bool) {
  28876. dd, cr := d.d, d.cr
  28877. containerLen := dd.ReadMapStart()
  28878. if canChange && v == nil {
  28879. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  28880. v = make(map[int16]uint16, xlen)
  28881. changed = true
  28882. }
  28883. if containerLen == 0 {
  28884. if cr != nil {
  28885. cr.sendContainerState(containerMapEnd)
  28886. }
  28887. return v, changed
  28888. }
  28889. var mk int16
  28890. var mv uint16
  28891. hasLen := containerLen > 0
  28892. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28893. if cr != nil {
  28894. cr.sendContainerState(containerMapKey)
  28895. }
  28896. mk = int16(dd.DecodeInt(16))
  28897. if cr != nil {
  28898. cr.sendContainerState(containerMapValue)
  28899. }
  28900. if dd.TryDecodeAsNil() {
  28901. if d.h.DeleteOnNilMapValue {
  28902. delete(v, mk)
  28903. } else {
  28904. v[mk] = 0
  28905. }
  28906. continue
  28907. }
  28908. mv = uint16(dd.DecodeUint(16))
  28909. if v != nil {
  28910. v[mk] = mv
  28911. }
  28912. }
  28913. if cr != nil {
  28914. cr.sendContainerState(containerMapEnd)
  28915. }
  28916. return v, changed
  28917. }
  28918. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  28919. if rv.Kind() == reflect.Ptr {
  28920. vp := rv2i(rv).(*map[int16]uint32)
  28921. if v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d); changed {
  28922. *vp = v
  28923. }
  28924. return
  28925. }
  28926. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  28927. }
  28928. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  28929. if v, changed := f.DecMapInt16Uint32V(*vp, true, d); changed {
  28930. *vp = v
  28931. }
  28932. }
  28933. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  28934. d *Decoder) (_ map[int16]uint32, changed bool) {
  28935. dd, cr := d.d, d.cr
  28936. containerLen := dd.ReadMapStart()
  28937. if canChange && v == nil {
  28938. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  28939. v = make(map[int16]uint32, xlen)
  28940. changed = true
  28941. }
  28942. if containerLen == 0 {
  28943. if cr != nil {
  28944. cr.sendContainerState(containerMapEnd)
  28945. }
  28946. return v, changed
  28947. }
  28948. var mk int16
  28949. var mv uint32
  28950. hasLen := containerLen > 0
  28951. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28952. if cr != nil {
  28953. cr.sendContainerState(containerMapKey)
  28954. }
  28955. mk = int16(dd.DecodeInt(16))
  28956. if cr != nil {
  28957. cr.sendContainerState(containerMapValue)
  28958. }
  28959. if dd.TryDecodeAsNil() {
  28960. if d.h.DeleteOnNilMapValue {
  28961. delete(v, mk)
  28962. } else {
  28963. v[mk] = 0
  28964. }
  28965. continue
  28966. }
  28967. mv = uint32(dd.DecodeUint(32))
  28968. if v != nil {
  28969. v[mk] = mv
  28970. }
  28971. }
  28972. if cr != nil {
  28973. cr.sendContainerState(containerMapEnd)
  28974. }
  28975. return v, changed
  28976. }
  28977. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  28978. if rv.Kind() == reflect.Ptr {
  28979. vp := rv2i(rv).(*map[int16]uint64)
  28980. if v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d); changed {
  28981. *vp = v
  28982. }
  28983. return
  28984. }
  28985. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  28986. }
  28987. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  28988. if v, changed := f.DecMapInt16Uint64V(*vp, true, d); changed {
  28989. *vp = v
  28990. }
  28991. }
  28992. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  28993. d *Decoder) (_ map[int16]uint64, changed bool) {
  28994. dd, cr := d.d, d.cr
  28995. containerLen := dd.ReadMapStart()
  28996. if canChange && v == nil {
  28997. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28998. v = make(map[int16]uint64, xlen)
  28999. changed = true
  29000. }
  29001. if containerLen == 0 {
  29002. if cr != nil {
  29003. cr.sendContainerState(containerMapEnd)
  29004. }
  29005. return v, changed
  29006. }
  29007. var mk int16
  29008. var mv uint64
  29009. hasLen := containerLen > 0
  29010. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29011. if cr != nil {
  29012. cr.sendContainerState(containerMapKey)
  29013. }
  29014. mk = int16(dd.DecodeInt(16))
  29015. if cr != nil {
  29016. cr.sendContainerState(containerMapValue)
  29017. }
  29018. if dd.TryDecodeAsNil() {
  29019. if d.h.DeleteOnNilMapValue {
  29020. delete(v, mk)
  29021. } else {
  29022. v[mk] = 0
  29023. }
  29024. continue
  29025. }
  29026. mv = dd.DecodeUint(64)
  29027. if v != nil {
  29028. v[mk] = mv
  29029. }
  29030. }
  29031. if cr != nil {
  29032. cr.sendContainerState(containerMapEnd)
  29033. }
  29034. return v, changed
  29035. }
  29036. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  29037. if rv.Kind() == reflect.Ptr {
  29038. vp := rv2i(rv).(*map[int16]uintptr)
  29039. if v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d); changed {
  29040. *vp = v
  29041. }
  29042. return
  29043. }
  29044. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  29045. }
  29046. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  29047. if v, changed := f.DecMapInt16UintptrV(*vp, true, d); changed {
  29048. *vp = v
  29049. }
  29050. }
  29051. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  29052. d *Decoder) (_ map[int16]uintptr, changed bool) {
  29053. dd, cr := d.d, d.cr
  29054. containerLen := dd.ReadMapStart()
  29055. if canChange && v == nil {
  29056. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29057. v = make(map[int16]uintptr, xlen)
  29058. changed = true
  29059. }
  29060. if containerLen == 0 {
  29061. if cr != nil {
  29062. cr.sendContainerState(containerMapEnd)
  29063. }
  29064. return v, changed
  29065. }
  29066. var mk int16
  29067. var mv uintptr
  29068. hasLen := containerLen > 0
  29069. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29070. if cr != nil {
  29071. cr.sendContainerState(containerMapKey)
  29072. }
  29073. mk = int16(dd.DecodeInt(16))
  29074. if cr != nil {
  29075. cr.sendContainerState(containerMapValue)
  29076. }
  29077. if dd.TryDecodeAsNil() {
  29078. if d.h.DeleteOnNilMapValue {
  29079. delete(v, mk)
  29080. } else {
  29081. v[mk] = 0
  29082. }
  29083. continue
  29084. }
  29085. mv = uintptr(dd.DecodeUint(uintBitsize))
  29086. if v != nil {
  29087. v[mk] = mv
  29088. }
  29089. }
  29090. if cr != nil {
  29091. cr.sendContainerState(containerMapEnd)
  29092. }
  29093. return v, changed
  29094. }
  29095. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  29096. if rv.Kind() == reflect.Ptr {
  29097. vp := rv2i(rv).(*map[int16]int)
  29098. if v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d); changed {
  29099. *vp = v
  29100. }
  29101. return
  29102. }
  29103. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  29104. }
  29105. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  29106. if v, changed := f.DecMapInt16IntV(*vp, true, d); changed {
  29107. *vp = v
  29108. }
  29109. }
  29110. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  29111. d *Decoder) (_ map[int16]int, changed bool) {
  29112. dd, cr := d.d, d.cr
  29113. containerLen := dd.ReadMapStart()
  29114. if canChange && v == nil {
  29115. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29116. v = make(map[int16]int, xlen)
  29117. changed = true
  29118. }
  29119. if containerLen == 0 {
  29120. if cr != nil {
  29121. cr.sendContainerState(containerMapEnd)
  29122. }
  29123. return v, changed
  29124. }
  29125. var mk int16
  29126. var mv int
  29127. hasLen := containerLen > 0
  29128. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29129. if cr != nil {
  29130. cr.sendContainerState(containerMapKey)
  29131. }
  29132. mk = int16(dd.DecodeInt(16))
  29133. if cr != nil {
  29134. cr.sendContainerState(containerMapValue)
  29135. }
  29136. if dd.TryDecodeAsNil() {
  29137. if d.h.DeleteOnNilMapValue {
  29138. delete(v, mk)
  29139. } else {
  29140. v[mk] = 0
  29141. }
  29142. continue
  29143. }
  29144. mv = int(dd.DecodeInt(intBitsize))
  29145. if v != nil {
  29146. v[mk] = mv
  29147. }
  29148. }
  29149. if cr != nil {
  29150. cr.sendContainerState(containerMapEnd)
  29151. }
  29152. return v, changed
  29153. }
  29154. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  29155. if rv.Kind() == reflect.Ptr {
  29156. vp := rv2i(rv).(*map[int16]int8)
  29157. if v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d); changed {
  29158. *vp = v
  29159. }
  29160. return
  29161. }
  29162. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  29163. }
  29164. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  29165. if v, changed := f.DecMapInt16Int8V(*vp, true, d); changed {
  29166. *vp = v
  29167. }
  29168. }
  29169. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  29170. d *Decoder) (_ map[int16]int8, changed bool) {
  29171. dd, cr := d.d, d.cr
  29172. containerLen := dd.ReadMapStart()
  29173. if canChange && v == nil {
  29174. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29175. v = make(map[int16]int8, xlen)
  29176. changed = true
  29177. }
  29178. if containerLen == 0 {
  29179. if cr != nil {
  29180. cr.sendContainerState(containerMapEnd)
  29181. }
  29182. return v, changed
  29183. }
  29184. var mk int16
  29185. var mv int8
  29186. hasLen := containerLen > 0
  29187. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29188. if cr != nil {
  29189. cr.sendContainerState(containerMapKey)
  29190. }
  29191. mk = int16(dd.DecodeInt(16))
  29192. if cr != nil {
  29193. cr.sendContainerState(containerMapValue)
  29194. }
  29195. if dd.TryDecodeAsNil() {
  29196. if d.h.DeleteOnNilMapValue {
  29197. delete(v, mk)
  29198. } else {
  29199. v[mk] = 0
  29200. }
  29201. continue
  29202. }
  29203. mv = int8(dd.DecodeInt(8))
  29204. if v != nil {
  29205. v[mk] = mv
  29206. }
  29207. }
  29208. if cr != nil {
  29209. cr.sendContainerState(containerMapEnd)
  29210. }
  29211. return v, changed
  29212. }
  29213. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  29214. if rv.Kind() == reflect.Ptr {
  29215. vp := rv2i(rv).(*map[int16]int16)
  29216. if v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d); changed {
  29217. *vp = v
  29218. }
  29219. return
  29220. }
  29221. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  29222. }
  29223. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  29224. if v, changed := f.DecMapInt16Int16V(*vp, true, d); changed {
  29225. *vp = v
  29226. }
  29227. }
  29228. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  29229. d *Decoder) (_ map[int16]int16, changed bool) {
  29230. dd, cr := d.d, d.cr
  29231. containerLen := dd.ReadMapStart()
  29232. if canChange && v == nil {
  29233. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  29234. v = make(map[int16]int16, xlen)
  29235. changed = true
  29236. }
  29237. if containerLen == 0 {
  29238. if cr != nil {
  29239. cr.sendContainerState(containerMapEnd)
  29240. }
  29241. return v, changed
  29242. }
  29243. var mk int16
  29244. var mv int16
  29245. hasLen := containerLen > 0
  29246. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29247. if cr != nil {
  29248. cr.sendContainerState(containerMapKey)
  29249. }
  29250. mk = int16(dd.DecodeInt(16))
  29251. if cr != nil {
  29252. cr.sendContainerState(containerMapValue)
  29253. }
  29254. if dd.TryDecodeAsNil() {
  29255. if d.h.DeleteOnNilMapValue {
  29256. delete(v, mk)
  29257. } else {
  29258. v[mk] = 0
  29259. }
  29260. continue
  29261. }
  29262. mv = int16(dd.DecodeInt(16))
  29263. if v != nil {
  29264. v[mk] = mv
  29265. }
  29266. }
  29267. if cr != nil {
  29268. cr.sendContainerState(containerMapEnd)
  29269. }
  29270. return v, changed
  29271. }
  29272. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  29273. if rv.Kind() == reflect.Ptr {
  29274. vp := rv2i(rv).(*map[int16]int32)
  29275. if v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d); changed {
  29276. *vp = v
  29277. }
  29278. return
  29279. }
  29280. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  29281. }
  29282. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  29283. if v, changed := f.DecMapInt16Int32V(*vp, true, d); changed {
  29284. *vp = v
  29285. }
  29286. }
  29287. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  29288. d *Decoder) (_ map[int16]int32, changed bool) {
  29289. dd, cr := d.d, d.cr
  29290. containerLen := dd.ReadMapStart()
  29291. if canChange && v == nil {
  29292. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  29293. v = make(map[int16]int32, xlen)
  29294. changed = true
  29295. }
  29296. if containerLen == 0 {
  29297. if cr != nil {
  29298. cr.sendContainerState(containerMapEnd)
  29299. }
  29300. return v, changed
  29301. }
  29302. var mk int16
  29303. var mv int32
  29304. hasLen := containerLen > 0
  29305. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29306. if cr != nil {
  29307. cr.sendContainerState(containerMapKey)
  29308. }
  29309. mk = int16(dd.DecodeInt(16))
  29310. if cr != nil {
  29311. cr.sendContainerState(containerMapValue)
  29312. }
  29313. if dd.TryDecodeAsNil() {
  29314. if d.h.DeleteOnNilMapValue {
  29315. delete(v, mk)
  29316. } else {
  29317. v[mk] = 0
  29318. }
  29319. continue
  29320. }
  29321. mv = int32(dd.DecodeInt(32))
  29322. if v != nil {
  29323. v[mk] = mv
  29324. }
  29325. }
  29326. if cr != nil {
  29327. cr.sendContainerState(containerMapEnd)
  29328. }
  29329. return v, changed
  29330. }
  29331. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  29332. if rv.Kind() == reflect.Ptr {
  29333. vp := rv2i(rv).(*map[int16]int64)
  29334. if v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d); changed {
  29335. *vp = v
  29336. }
  29337. return
  29338. }
  29339. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  29340. }
  29341. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  29342. if v, changed := f.DecMapInt16Int64V(*vp, true, d); changed {
  29343. *vp = v
  29344. }
  29345. }
  29346. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  29347. d *Decoder) (_ map[int16]int64, changed bool) {
  29348. dd, cr := d.d, d.cr
  29349. containerLen := dd.ReadMapStart()
  29350. if canChange && v == nil {
  29351. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29352. v = make(map[int16]int64, xlen)
  29353. changed = true
  29354. }
  29355. if containerLen == 0 {
  29356. if cr != nil {
  29357. cr.sendContainerState(containerMapEnd)
  29358. }
  29359. return v, changed
  29360. }
  29361. var mk int16
  29362. var mv int64
  29363. hasLen := containerLen > 0
  29364. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29365. if cr != nil {
  29366. cr.sendContainerState(containerMapKey)
  29367. }
  29368. mk = int16(dd.DecodeInt(16))
  29369. if cr != nil {
  29370. cr.sendContainerState(containerMapValue)
  29371. }
  29372. if dd.TryDecodeAsNil() {
  29373. if d.h.DeleteOnNilMapValue {
  29374. delete(v, mk)
  29375. } else {
  29376. v[mk] = 0
  29377. }
  29378. continue
  29379. }
  29380. mv = dd.DecodeInt(64)
  29381. if v != nil {
  29382. v[mk] = mv
  29383. }
  29384. }
  29385. if cr != nil {
  29386. cr.sendContainerState(containerMapEnd)
  29387. }
  29388. return v, changed
  29389. }
  29390. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  29391. if rv.Kind() == reflect.Ptr {
  29392. vp := rv2i(rv).(*map[int16]float32)
  29393. if v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d); changed {
  29394. *vp = v
  29395. }
  29396. return
  29397. }
  29398. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  29399. }
  29400. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  29401. if v, changed := f.DecMapInt16Float32V(*vp, true, d); changed {
  29402. *vp = v
  29403. }
  29404. }
  29405. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  29406. d *Decoder) (_ map[int16]float32, changed bool) {
  29407. dd, cr := d.d, d.cr
  29408. containerLen := dd.ReadMapStart()
  29409. if canChange && v == nil {
  29410. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  29411. v = make(map[int16]float32, xlen)
  29412. changed = true
  29413. }
  29414. if containerLen == 0 {
  29415. if cr != nil {
  29416. cr.sendContainerState(containerMapEnd)
  29417. }
  29418. return v, changed
  29419. }
  29420. var mk int16
  29421. var mv float32
  29422. hasLen := containerLen > 0
  29423. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29424. if cr != nil {
  29425. cr.sendContainerState(containerMapKey)
  29426. }
  29427. mk = int16(dd.DecodeInt(16))
  29428. if cr != nil {
  29429. cr.sendContainerState(containerMapValue)
  29430. }
  29431. if dd.TryDecodeAsNil() {
  29432. if d.h.DeleteOnNilMapValue {
  29433. delete(v, mk)
  29434. } else {
  29435. v[mk] = 0
  29436. }
  29437. continue
  29438. }
  29439. mv = float32(dd.DecodeFloat(true))
  29440. if v != nil {
  29441. v[mk] = mv
  29442. }
  29443. }
  29444. if cr != nil {
  29445. cr.sendContainerState(containerMapEnd)
  29446. }
  29447. return v, changed
  29448. }
  29449. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  29450. if rv.Kind() == reflect.Ptr {
  29451. vp := rv2i(rv).(*map[int16]float64)
  29452. if v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d); changed {
  29453. *vp = v
  29454. }
  29455. return
  29456. }
  29457. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  29458. }
  29459. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  29460. if v, changed := f.DecMapInt16Float64V(*vp, true, d); changed {
  29461. *vp = v
  29462. }
  29463. }
  29464. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  29465. d *Decoder) (_ map[int16]float64, changed bool) {
  29466. dd, cr := d.d, d.cr
  29467. containerLen := dd.ReadMapStart()
  29468. if canChange && v == nil {
  29469. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29470. v = make(map[int16]float64, xlen)
  29471. changed = true
  29472. }
  29473. if containerLen == 0 {
  29474. if cr != nil {
  29475. cr.sendContainerState(containerMapEnd)
  29476. }
  29477. return v, changed
  29478. }
  29479. var mk int16
  29480. var mv float64
  29481. hasLen := containerLen > 0
  29482. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29483. if cr != nil {
  29484. cr.sendContainerState(containerMapKey)
  29485. }
  29486. mk = int16(dd.DecodeInt(16))
  29487. if cr != nil {
  29488. cr.sendContainerState(containerMapValue)
  29489. }
  29490. if dd.TryDecodeAsNil() {
  29491. if d.h.DeleteOnNilMapValue {
  29492. delete(v, mk)
  29493. } else {
  29494. v[mk] = 0
  29495. }
  29496. continue
  29497. }
  29498. mv = dd.DecodeFloat(false)
  29499. if v != nil {
  29500. v[mk] = mv
  29501. }
  29502. }
  29503. if cr != nil {
  29504. cr.sendContainerState(containerMapEnd)
  29505. }
  29506. return v, changed
  29507. }
  29508. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  29509. if rv.Kind() == reflect.Ptr {
  29510. vp := rv2i(rv).(*map[int16]bool)
  29511. if v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d); changed {
  29512. *vp = v
  29513. }
  29514. return
  29515. }
  29516. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  29517. }
  29518. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  29519. if v, changed := f.DecMapInt16BoolV(*vp, true, d); changed {
  29520. *vp = v
  29521. }
  29522. }
  29523. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  29524. d *Decoder) (_ map[int16]bool, changed bool) {
  29525. dd, cr := d.d, d.cr
  29526. containerLen := dd.ReadMapStart()
  29527. if canChange && v == nil {
  29528. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29529. v = make(map[int16]bool, xlen)
  29530. changed = true
  29531. }
  29532. if containerLen == 0 {
  29533. if cr != nil {
  29534. cr.sendContainerState(containerMapEnd)
  29535. }
  29536. return v, changed
  29537. }
  29538. var mk int16
  29539. var mv bool
  29540. hasLen := containerLen > 0
  29541. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29542. if cr != nil {
  29543. cr.sendContainerState(containerMapKey)
  29544. }
  29545. mk = int16(dd.DecodeInt(16))
  29546. if cr != nil {
  29547. cr.sendContainerState(containerMapValue)
  29548. }
  29549. if dd.TryDecodeAsNil() {
  29550. if d.h.DeleteOnNilMapValue {
  29551. delete(v, mk)
  29552. } else {
  29553. v[mk] = false
  29554. }
  29555. continue
  29556. }
  29557. mv = dd.DecodeBool()
  29558. if v != nil {
  29559. v[mk] = mv
  29560. }
  29561. }
  29562. if cr != nil {
  29563. cr.sendContainerState(containerMapEnd)
  29564. }
  29565. return v, changed
  29566. }
  29567. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  29568. if rv.Kind() == reflect.Ptr {
  29569. vp := rv2i(rv).(*map[int32]interface{})
  29570. if v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d); changed {
  29571. *vp = v
  29572. }
  29573. return
  29574. }
  29575. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  29576. }
  29577. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  29578. if v, changed := f.DecMapInt32IntfV(*vp, true, d); changed {
  29579. *vp = v
  29580. }
  29581. }
  29582. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  29583. d *Decoder) (_ map[int32]interface{}, changed bool) {
  29584. dd, cr := d.d, d.cr
  29585. containerLen := dd.ReadMapStart()
  29586. if canChange && v == nil {
  29587. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  29588. v = make(map[int32]interface{}, xlen)
  29589. changed = true
  29590. }
  29591. if containerLen == 0 {
  29592. if cr != nil {
  29593. cr.sendContainerState(containerMapEnd)
  29594. }
  29595. return v, changed
  29596. }
  29597. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  29598. var mk int32
  29599. var mv interface{}
  29600. hasLen := containerLen > 0
  29601. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29602. if cr != nil {
  29603. cr.sendContainerState(containerMapKey)
  29604. }
  29605. mk = int32(dd.DecodeInt(32))
  29606. if cr != nil {
  29607. cr.sendContainerState(containerMapValue)
  29608. }
  29609. if dd.TryDecodeAsNil() {
  29610. if d.h.DeleteOnNilMapValue {
  29611. delete(v, mk)
  29612. } else {
  29613. v[mk] = nil
  29614. }
  29615. continue
  29616. }
  29617. if mapGet {
  29618. mv = v[mk]
  29619. } else {
  29620. mv = nil
  29621. }
  29622. d.decode(&mv)
  29623. if v != nil {
  29624. v[mk] = mv
  29625. }
  29626. }
  29627. if cr != nil {
  29628. cr.sendContainerState(containerMapEnd)
  29629. }
  29630. return v, changed
  29631. }
  29632. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  29633. if rv.Kind() == reflect.Ptr {
  29634. vp := rv2i(rv).(*map[int32]string)
  29635. if v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d); changed {
  29636. *vp = v
  29637. }
  29638. return
  29639. }
  29640. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  29641. }
  29642. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  29643. if v, changed := f.DecMapInt32StringV(*vp, true, d); changed {
  29644. *vp = v
  29645. }
  29646. }
  29647. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  29648. d *Decoder) (_ map[int32]string, changed bool) {
  29649. dd, cr := d.d, d.cr
  29650. containerLen := dd.ReadMapStart()
  29651. if canChange && v == nil {
  29652. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  29653. v = make(map[int32]string, xlen)
  29654. changed = true
  29655. }
  29656. if containerLen == 0 {
  29657. if cr != nil {
  29658. cr.sendContainerState(containerMapEnd)
  29659. }
  29660. return v, changed
  29661. }
  29662. var mk int32
  29663. var mv string
  29664. hasLen := containerLen > 0
  29665. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29666. if cr != nil {
  29667. cr.sendContainerState(containerMapKey)
  29668. }
  29669. mk = int32(dd.DecodeInt(32))
  29670. if cr != nil {
  29671. cr.sendContainerState(containerMapValue)
  29672. }
  29673. if dd.TryDecodeAsNil() {
  29674. if d.h.DeleteOnNilMapValue {
  29675. delete(v, mk)
  29676. } else {
  29677. v[mk] = ""
  29678. }
  29679. continue
  29680. }
  29681. mv = dd.DecodeString()
  29682. if v != nil {
  29683. v[mk] = mv
  29684. }
  29685. }
  29686. if cr != nil {
  29687. cr.sendContainerState(containerMapEnd)
  29688. }
  29689. return v, changed
  29690. }
  29691. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  29692. if rv.Kind() == reflect.Ptr {
  29693. vp := rv2i(rv).(*map[int32]uint)
  29694. if v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d); changed {
  29695. *vp = v
  29696. }
  29697. return
  29698. }
  29699. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  29700. }
  29701. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  29702. if v, changed := f.DecMapInt32UintV(*vp, true, d); changed {
  29703. *vp = v
  29704. }
  29705. }
  29706. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  29707. d *Decoder) (_ map[int32]uint, changed bool) {
  29708. dd, cr := d.d, d.cr
  29709. containerLen := dd.ReadMapStart()
  29710. if canChange && v == nil {
  29711. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29712. v = make(map[int32]uint, xlen)
  29713. changed = true
  29714. }
  29715. if containerLen == 0 {
  29716. if cr != nil {
  29717. cr.sendContainerState(containerMapEnd)
  29718. }
  29719. return v, changed
  29720. }
  29721. var mk int32
  29722. var mv uint
  29723. hasLen := containerLen > 0
  29724. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29725. if cr != nil {
  29726. cr.sendContainerState(containerMapKey)
  29727. }
  29728. mk = int32(dd.DecodeInt(32))
  29729. if cr != nil {
  29730. cr.sendContainerState(containerMapValue)
  29731. }
  29732. if dd.TryDecodeAsNil() {
  29733. if d.h.DeleteOnNilMapValue {
  29734. delete(v, mk)
  29735. } else {
  29736. v[mk] = 0
  29737. }
  29738. continue
  29739. }
  29740. mv = uint(dd.DecodeUint(uintBitsize))
  29741. if v != nil {
  29742. v[mk] = mv
  29743. }
  29744. }
  29745. if cr != nil {
  29746. cr.sendContainerState(containerMapEnd)
  29747. }
  29748. return v, changed
  29749. }
  29750. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  29751. if rv.Kind() == reflect.Ptr {
  29752. vp := rv2i(rv).(*map[int32]uint8)
  29753. if v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d); changed {
  29754. *vp = v
  29755. }
  29756. return
  29757. }
  29758. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  29759. }
  29760. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  29761. if v, changed := f.DecMapInt32Uint8V(*vp, true, d); changed {
  29762. *vp = v
  29763. }
  29764. }
  29765. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  29766. d *Decoder) (_ map[int32]uint8, changed bool) {
  29767. dd, cr := d.d, d.cr
  29768. containerLen := dd.ReadMapStart()
  29769. if canChange && v == nil {
  29770. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29771. v = make(map[int32]uint8, xlen)
  29772. changed = true
  29773. }
  29774. if containerLen == 0 {
  29775. if cr != nil {
  29776. cr.sendContainerState(containerMapEnd)
  29777. }
  29778. return v, changed
  29779. }
  29780. var mk int32
  29781. var mv uint8
  29782. hasLen := containerLen > 0
  29783. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29784. if cr != nil {
  29785. cr.sendContainerState(containerMapKey)
  29786. }
  29787. mk = int32(dd.DecodeInt(32))
  29788. if cr != nil {
  29789. cr.sendContainerState(containerMapValue)
  29790. }
  29791. if dd.TryDecodeAsNil() {
  29792. if d.h.DeleteOnNilMapValue {
  29793. delete(v, mk)
  29794. } else {
  29795. v[mk] = 0
  29796. }
  29797. continue
  29798. }
  29799. mv = uint8(dd.DecodeUint(8))
  29800. if v != nil {
  29801. v[mk] = mv
  29802. }
  29803. }
  29804. if cr != nil {
  29805. cr.sendContainerState(containerMapEnd)
  29806. }
  29807. return v, changed
  29808. }
  29809. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  29810. if rv.Kind() == reflect.Ptr {
  29811. vp := rv2i(rv).(*map[int32]uint16)
  29812. if v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d); changed {
  29813. *vp = v
  29814. }
  29815. return
  29816. }
  29817. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  29818. }
  29819. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  29820. if v, changed := f.DecMapInt32Uint16V(*vp, true, d); changed {
  29821. *vp = v
  29822. }
  29823. }
  29824. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  29825. d *Decoder) (_ map[int32]uint16, changed bool) {
  29826. dd, cr := d.d, d.cr
  29827. containerLen := dd.ReadMapStart()
  29828. if canChange && v == nil {
  29829. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  29830. v = make(map[int32]uint16, xlen)
  29831. changed = true
  29832. }
  29833. if containerLen == 0 {
  29834. if cr != nil {
  29835. cr.sendContainerState(containerMapEnd)
  29836. }
  29837. return v, changed
  29838. }
  29839. var mk int32
  29840. var mv uint16
  29841. hasLen := containerLen > 0
  29842. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29843. if cr != nil {
  29844. cr.sendContainerState(containerMapKey)
  29845. }
  29846. mk = int32(dd.DecodeInt(32))
  29847. if cr != nil {
  29848. cr.sendContainerState(containerMapValue)
  29849. }
  29850. if dd.TryDecodeAsNil() {
  29851. if d.h.DeleteOnNilMapValue {
  29852. delete(v, mk)
  29853. } else {
  29854. v[mk] = 0
  29855. }
  29856. continue
  29857. }
  29858. mv = uint16(dd.DecodeUint(16))
  29859. if v != nil {
  29860. v[mk] = mv
  29861. }
  29862. }
  29863. if cr != nil {
  29864. cr.sendContainerState(containerMapEnd)
  29865. }
  29866. return v, changed
  29867. }
  29868. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  29869. if rv.Kind() == reflect.Ptr {
  29870. vp := rv2i(rv).(*map[int32]uint32)
  29871. if v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d); changed {
  29872. *vp = v
  29873. }
  29874. return
  29875. }
  29876. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  29877. }
  29878. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  29879. if v, changed := f.DecMapInt32Uint32V(*vp, true, d); changed {
  29880. *vp = v
  29881. }
  29882. }
  29883. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  29884. d *Decoder) (_ map[int32]uint32, changed bool) {
  29885. dd, cr := d.d, d.cr
  29886. containerLen := dd.ReadMapStart()
  29887. if canChange && v == nil {
  29888. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  29889. v = make(map[int32]uint32, xlen)
  29890. changed = true
  29891. }
  29892. if containerLen == 0 {
  29893. if cr != nil {
  29894. cr.sendContainerState(containerMapEnd)
  29895. }
  29896. return v, changed
  29897. }
  29898. var mk int32
  29899. var mv uint32
  29900. hasLen := containerLen > 0
  29901. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29902. if cr != nil {
  29903. cr.sendContainerState(containerMapKey)
  29904. }
  29905. mk = int32(dd.DecodeInt(32))
  29906. if cr != nil {
  29907. cr.sendContainerState(containerMapValue)
  29908. }
  29909. if dd.TryDecodeAsNil() {
  29910. if d.h.DeleteOnNilMapValue {
  29911. delete(v, mk)
  29912. } else {
  29913. v[mk] = 0
  29914. }
  29915. continue
  29916. }
  29917. mv = uint32(dd.DecodeUint(32))
  29918. if v != nil {
  29919. v[mk] = mv
  29920. }
  29921. }
  29922. if cr != nil {
  29923. cr.sendContainerState(containerMapEnd)
  29924. }
  29925. return v, changed
  29926. }
  29927. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  29928. if rv.Kind() == reflect.Ptr {
  29929. vp := rv2i(rv).(*map[int32]uint64)
  29930. if v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d); changed {
  29931. *vp = v
  29932. }
  29933. return
  29934. }
  29935. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  29936. }
  29937. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  29938. if v, changed := f.DecMapInt32Uint64V(*vp, true, d); changed {
  29939. *vp = v
  29940. }
  29941. }
  29942. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  29943. d *Decoder) (_ map[int32]uint64, changed bool) {
  29944. dd, cr := d.d, d.cr
  29945. containerLen := dd.ReadMapStart()
  29946. if canChange && v == nil {
  29947. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29948. v = make(map[int32]uint64, xlen)
  29949. changed = true
  29950. }
  29951. if containerLen == 0 {
  29952. if cr != nil {
  29953. cr.sendContainerState(containerMapEnd)
  29954. }
  29955. return v, changed
  29956. }
  29957. var mk int32
  29958. var mv uint64
  29959. hasLen := containerLen > 0
  29960. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29961. if cr != nil {
  29962. cr.sendContainerState(containerMapKey)
  29963. }
  29964. mk = int32(dd.DecodeInt(32))
  29965. if cr != nil {
  29966. cr.sendContainerState(containerMapValue)
  29967. }
  29968. if dd.TryDecodeAsNil() {
  29969. if d.h.DeleteOnNilMapValue {
  29970. delete(v, mk)
  29971. } else {
  29972. v[mk] = 0
  29973. }
  29974. continue
  29975. }
  29976. mv = dd.DecodeUint(64)
  29977. if v != nil {
  29978. v[mk] = mv
  29979. }
  29980. }
  29981. if cr != nil {
  29982. cr.sendContainerState(containerMapEnd)
  29983. }
  29984. return v, changed
  29985. }
  29986. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  29987. if rv.Kind() == reflect.Ptr {
  29988. vp := rv2i(rv).(*map[int32]uintptr)
  29989. if v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d); changed {
  29990. *vp = v
  29991. }
  29992. return
  29993. }
  29994. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  29995. }
  29996. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  29997. if v, changed := f.DecMapInt32UintptrV(*vp, true, d); changed {
  29998. *vp = v
  29999. }
  30000. }
  30001. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  30002. d *Decoder) (_ map[int32]uintptr, changed bool) {
  30003. dd, cr := d.d, d.cr
  30004. containerLen := dd.ReadMapStart()
  30005. if canChange && v == nil {
  30006. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30007. v = make(map[int32]uintptr, xlen)
  30008. changed = true
  30009. }
  30010. if containerLen == 0 {
  30011. if cr != nil {
  30012. cr.sendContainerState(containerMapEnd)
  30013. }
  30014. return v, changed
  30015. }
  30016. var mk int32
  30017. var mv uintptr
  30018. hasLen := containerLen > 0
  30019. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30020. if cr != nil {
  30021. cr.sendContainerState(containerMapKey)
  30022. }
  30023. mk = int32(dd.DecodeInt(32))
  30024. if cr != nil {
  30025. cr.sendContainerState(containerMapValue)
  30026. }
  30027. if dd.TryDecodeAsNil() {
  30028. if d.h.DeleteOnNilMapValue {
  30029. delete(v, mk)
  30030. } else {
  30031. v[mk] = 0
  30032. }
  30033. continue
  30034. }
  30035. mv = uintptr(dd.DecodeUint(uintBitsize))
  30036. if v != nil {
  30037. v[mk] = mv
  30038. }
  30039. }
  30040. if cr != nil {
  30041. cr.sendContainerState(containerMapEnd)
  30042. }
  30043. return v, changed
  30044. }
  30045. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  30046. if rv.Kind() == reflect.Ptr {
  30047. vp := rv2i(rv).(*map[int32]int)
  30048. if v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d); changed {
  30049. *vp = v
  30050. }
  30051. return
  30052. }
  30053. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  30054. }
  30055. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  30056. if v, changed := f.DecMapInt32IntV(*vp, true, d); changed {
  30057. *vp = v
  30058. }
  30059. }
  30060. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  30061. d *Decoder) (_ map[int32]int, changed bool) {
  30062. dd, cr := d.d, d.cr
  30063. containerLen := dd.ReadMapStart()
  30064. if canChange && v == nil {
  30065. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30066. v = make(map[int32]int, xlen)
  30067. changed = true
  30068. }
  30069. if containerLen == 0 {
  30070. if cr != nil {
  30071. cr.sendContainerState(containerMapEnd)
  30072. }
  30073. return v, changed
  30074. }
  30075. var mk int32
  30076. var mv int
  30077. hasLen := containerLen > 0
  30078. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30079. if cr != nil {
  30080. cr.sendContainerState(containerMapKey)
  30081. }
  30082. mk = int32(dd.DecodeInt(32))
  30083. if cr != nil {
  30084. cr.sendContainerState(containerMapValue)
  30085. }
  30086. if dd.TryDecodeAsNil() {
  30087. if d.h.DeleteOnNilMapValue {
  30088. delete(v, mk)
  30089. } else {
  30090. v[mk] = 0
  30091. }
  30092. continue
  30093. }
  30094. mv = int(dd.DecodeInt(intBitsize))
  30095. if v != nil {
  30096. v[mk] = mv
  30097. }
  30098. }
  30099. if cr != nil {
  30100. cr.sendContainerState(containerMapEnd)
  30101. }
  30102. return v, changed
  30103. }
  30104. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  30105. if rv.Kind() == reflect.Ptr {
  30106. vp := rv2i(rv).(*map[int32]int8)
  30107. if v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d); changed {
  30108. *vp = v
  30109. }
  30110. return
  30111. }
  30112. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  30113. }
  30114. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  30115. if v, changed := f.DecMapInt32Int8V(*vp, true, d); changed {
  30116. *vp = v
  30117. }
  30118. }
  30119. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  30120. d *Decoder) (_ map[int32]int8, changed bool) {
  30121. dd, cr := d.d, d.cr
  30122. containerLen := dd.ReadMapStart()
  30123. if canChange && v == nil {
  30124. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30125. v = make(map[int32]int8, xlen)
  30126. changed = true
  30127. }
  30128. if containerLen == 0 {
  30129. if cr != nil {
  30130. cr.sendContainerState(containerMapEnd)
  30131. }
  30132. return v, changed
  30133. }
  30134. var mk int32
  30135. var mv int8
  30136. hasLen := containerLen > 0
  30137. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30138. if cr != nil {
  30139. cr.sendContainerState(containerMapKey)
  30140. }
  30141. mk = int32(dd.DecodeInt(32))
  30142. if cr != nil {
  30143. cr.sendContainerState(containerMapValue)
  30144. }
  30145. if dd.TryDecodeAsNil() {
  30146. if d.h.DeleteOnNilMapValue {
  30147. delete(v, mk)
  30148. } else {
  30149. v[mk] = 0
  30150. }
  30151. continue
  30152. }
  30153. mv = int8(dd.DecodeInt(8))
  30154. if v != nil {
  30155. v[mk] = mv
  30156. }
  30157. }
  30158. if cr != nil {
  30159. cr.sendContainerState(containerMapEnd)
  30160. }
  30161. return v, changed
  30162. }
  30163. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  30164. if rv.Kind() == reflect.Ptr {
  30165. vp := rv2i(rv).(*map[int32]int16)
  30166. if v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d); changed {
  30167. *vp = v
  30168. }
  30169. return
  30170. }
  30171. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  30172. }
  30173. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  30174. if v, changed := f.DecMapInt32Int16V(*vp, true, d); changed {
  30175. *vp = v
  30176. }
  30177. }
  30178. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  30179. d *Decoder) (_ map[int32]int16, changed bool) {
  30180. dd, cr := d.d, d.cr
  30181. containerLen := dd.ReadMapStart()
  30182. if canChange && v == nil {
  30183. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30184. v = make(map[int32]int16, xlen)
  30185. changed = true
  30186. }
  30187. if containerLen == 0 {
  30188. if cr != nil {
  30189. cr.sendContainerState(containerMapEnd)
  30190. }
  30191. return v, changed
  30192. }
  30193. var mk int32
  30194. var mv int16
  30195. hasLen := containerLen > 0
  30196. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30197. if cr != nil {
  30198. cr.sendContainerState(containerMapKey)
  30199. }
  30200. mk = int32(dd.DecodeInt(32))
  30201. if cr != nil {
  30202. cr.sendContainerState(containerMapValue)
  30203. }
  30204. if dd.TryDecodeAsNil() {
  30205. if d.h.DeleteOnNilMapValue {
  30206. delete(v, mk)
  30207. } else {
  30208. v[mk] = 0
  30209. }
  30210. continue
  30211. }
  30212. mv = int16(dd.DecodeInt(16))
  30213. if v != nil {
  30214. v[mk] = mv
  30215. }
  30216. }
  30217. if cr != nil {
  30218. cr.sendContainerState(containerMapEnd)
  30219. }
  30220. return v, changed
  30221. }
  30222. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  30223. if rv.Kind() == reflect.Ptr {
  30224. vp := rv2i(rv).(*map[int32]int32)
  30225. if v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d); changed {
  30226. *vp = v
  30227. }
  30228. return
  30229. }
  30230. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  30231. }
  30232. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  30233. if v, changed := f.DecMapInt32Int32V(*vp, true, d); changed {
  30234. *vp = v
  30235. }
  30236. }
  30237. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  30238. d *Decoder) (_ map[int32]int32, changed bool) {
  30239. dd, cr := d.d, d.cr
  30240. containerLen := dd.ReadMapStart()
  30241. if canChange && v == nil {
  30242. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  30243. v = make(map[int32]int32, xlen)
  30244. changed = true
  30245. }
  30246. if containerLen == 0 {
  30247. if cr != nil {
  30248. cr.sendContainerState(containerMapEnd)
  30249. }
  30250. return v, changed
  30251. }
  30252. var mk int32
  30253. var mv int32
  30254. hasLen := containerLen > 0
  30255. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30256. if cr != nil {
  30257. cr.sendContainerState(containerMapKey)
  30258. }
  30259. mk = int32(dd.DecodeInt(32))
  30260. if cr != nil {
  30261. cr.sendContainerState(containerMapValue)
  30262. }
  30263. if dd.TryDecodeAsNil() {
  30264. if d.h.DeleteOnNilMapValue {
  30265. delete(v, mk)
  30266. } else {
  30267. v[mk] = 0
  30268. }
  30269. continue
  30270. }
  30271. mv = int32(dd.DecodeInt(32))
  30272. if v != nil {
  30273. v[mk] = mv
  30274. }
  30275. }
  30276. if cr != nil {
  30277. cr.sendContainerState(containerMapEnd)
  30278. }
  30279. return v, changed
  30280. }
  30281. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  30282. if rv.Kind() == reflect.Ptr {
  30283. vp := rv2i(rv).(*map[int32]int64)
  30284. if v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d); changed {
  30285. *vp = v
  30286. }
  30287. return
  30288. }
  30289. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  30290. }
  30291. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  30292. if v, changed := f.DecMapInt32Int64V(*vp, true, d); changed {
  30293. *vp = v
  30294. }
  30295. }
  30296. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  30297. d *Decoder) (_ map[int32]int64, changed bool) {
  30298. dd, cr := d.d, d.cr
  30299. containerLen := dd.ReadMapStart()
  30300. if canChange && v == nil {
  30301. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30302. v = make(map[int32]int64, xlen)
  30303. changed = true
  30304. }
  30305. if containerLen == 0 {
  30306. if cr != nil {
  30307. cr.sendContainerState(containerMapEnd)
  30308. }
  30309. return v, changed
  30310. }
  30311. var mk int32
  30312. var mv int64
  30313. hasLen := containerLen > 0
  30314. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30315. if cr != nil {
  30316. cr.sendContainerState(containerMapKey)
  30317. }
  30318. mk = int32(dd.DecodeInt(32))
  30319. if cr != nil {
  30320. cr.sendContainerState(containerMapValue)
  30321. }
  30322. if dd.TryDecodeAsNil() {
  30323. if d.h.DeleteOnNilMapValue {
  30324. delete(v, mk)
  30325. } else {
  30326. v[mk] = 0
  30327. }
  30328. continue
  30329. }
  30330. mv = dd.DecodeInt(64)
  30331. if v != nil {
  30332. v[mk] = mv
  30333. }
  30334. }
  30335. if cr != nil {
  30336. cr.sendContainerState(containerMapEnd)
  30337. }
  30338. return v, changed
  30339. }
  30340. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  30341. if rv.Kind() == reflect.Ptr {
  30342. vp := rv2i(rv).(*map[int32]float32)
  30343. if v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d); changed {
  30344. *vp = v
  30345. }
  30346. return
  30347. }
  30348. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  30349. }
  30350. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  30351. if v, changed := f.DecMapInt32Float32V(*vp, true, d); changed {
  30352. *vp = v
  30353. }
  30354. }
  30355. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  30356. d *Decoder) (_ map[int32]float32, changed bool) {
  30357. dd, cr := d.d, d.cr
  30358. containerLen := dd.ReadMapStart()
  30359. if canChange && v == nil {
  30360. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  30361. v = make(map[int32]float32, xlen)
  30362. changed = true
  30363. }
  30364. if containerLen == 0 {
  30365. if cr != nil {
  30366. cr.sendContainerState(containerMapEnd)
  30367. }
  30368. return v, changed
  30369. }
  30370. var mk int32
  30371. var mv float32
  30372. hasLen := containerLen > 0
  30373. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30374. if cr != nil {
  30375. cr.sendContainerState(containerMapKey)
  30376. }
  30377. mk = int32(dd.DecodeInt(32))
  30378. if cr != nil {
  30379. cr.sendContainerState(containerMapValue)
  30380. }
  30381. if dd.TryDecodeAsNil() {
  30382. if d.h.DeleteOnNilMapValue {
  30383. delete(v, mk)
  30384. } else {
  30385. v[mk] = 0
  30386. }
  30387. continue
  30388. }
  30389. mv = float32(dd.DecodeFloat(true))
  30390. if v != nil {
  30391. v[mk] = mv
  30392. }
  30393. }
  30394. if cr != nil {
  30395. cr.sendContainerState(containerMapEnd)
  30396. }
  30397. return v, changed
  30398. }
  30399. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  30400. if rv.Kind() == reflect.Ptr {
  30401. vp := rv2i(rv).(*map[int32]float64)
  30402. if v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d); changed {
  30403. *vp = v
  30404. }
  30405. return
  30406. }
  30407. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  30408. }
  30409. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  30410. if v, changed := f.DecMapInt32Float64V(*vp, true, d); changed {
  30411. *vp = v
  30412. }
  30413. }
  30414. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  30415. d *Decoder) (_ map[int32]float64, changed bool) {
  30416. dd, cr := d.d, d.cr
  30417. containerLen := dd.ReadMapStart()
  30418. if canChange && v == nil {
  30419. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30420. v = make(map[int32]float64, xlen)
  30421. changed = true
  30422. }
  30423. if containerLen == 0 {
  30424. if cr != nil {
  30425. cr.sendContainerState(containerMapEnd)
  30426. }
  30427. return v, changed
  30428. }
  30429. var mk int32
  30430. var mv float64
  30431. hasLen := containerLen > 0
  30432. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30433. if cr != nil {
  30434. cr.sendContainerState(containerMapKey)
  30435. }
  30436. mk = int32(dd.DecodeInt(32))
  30437. if cr != nil {
  30438. cr.sendContainerState(containerMapValue)
  30439. }
  30440. if dd.TryDecodeAsNil() {
  30441. if d.h.DeleteOnNilMapValue {
  30442. delete(v, mk)
  30443. } else {
  30444. v[mk] = 0
  30445. }
  30446. continue
  30447. }
  30448. mv = dd.DecodeFloat(false)
  30449. if v != nil {
  30450. v[mk] = mv
  30451. }
  30452. }
  30453. if cr != nil {
  30454. cr.sendContainerState(containerMapEnd)
  30455. }
  30456. return v, changed
  30457. }
  30458. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  30459. if rv.Kind() == reflect.Ptr {
  30460. vp := rv2i(rv).(*map[int32]bool)
  30461. if v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d); changed {
  30462. *vp = v
  30463. }
  30464. return
  30465. }
  30466. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  30467. }
  30468. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  30469. if v, changed := f.DecMapInt32BoolV(*vp, true, d); changed {
  30470. *vp = v
  30471. }
  30472. }
  30473. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  30474. d *Decoder) (_ map[int32]bool, changed bool) {
  30475. dd, cr := d.d, d.cr
  30476. containerLen := dd.ReadMapStart()
  30477. if canChange && v == nil {
  30478. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30479. v = make(map[int32]bool, xlen)
  30480. changed = true
  30481. }
  30482. if containerLen == 0 {
  30483. if cr != nil {
  30484. cr.sendContainerState(containerMapEnd)
  30485. }
  30486. return v, changed
  30487. }
  30488. var mk int32
  30489. var mv bool
  30490. hasLen := containerLen > 0
  30491. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30492. if cr != nil {
  30493. cr.sendContainerState(containerMapKey)
  30494. }
  30495. mk = int32(dd.DecodeInt(32))
  30496. if cr != nil {
  30497. cr.sendContainerState(containerMapValue)
  30498. }
  30499. if dd.TryDecodeAsNil() {
  30500. if d.h.DeleteOnNilMapValue {
  30501. delete(v, mk)
  30502. } else {
  30503. v[mk] = false
  30504. }
  30505. continue
  30506. }
  30507. mv = dd.DecodeBool()
  30508. if v != nil {
  30509. v[mk] = mv
  30510. }
  30511. }
  30512. if cr != nil {
  30513. cr.sendContainerState(containerMapEnd)
  30514. }
  30515. return v, changed
  30516. }
  30517. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  30518. if rv.Kind() == reflect.Ptr {
  30519. vp := rv2i(rv).(*map[int64]interface{})
  30520. if v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d); changed {
  30521. *vp = v
  30522. }
  30523. return
  30524. }
  30525. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  30526. }
  30527. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  30528. if v, changed := f.DecMapInt64IntfV(*vp, true, d); changed {
  30529. *vp = v
  30530. }
  30531. }
  30532. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  30533. d *Decoder) (_ map[int64]interface{}, changed bool) {
  30534. dd, cr := d.d, d.cr
  30535. containerLen := dd.ReadMapStart()
  30536. if canChange && v == nil {
  30537. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  30538. v = make(map[int64]interface{}, xlen)
  30539. changed = true
  30540. }
  30541. if containerLen == 0 {
  30542. if cr != nil {
  30543. cr.sendContainerState(containerMapEnd)
  30544. }
  30545. return v, changed
  30546. }
  30547. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  30548. var mk int64
  30549. var mv interface{}
  30550. hasLen := containerLen > 0
  30551. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30552. if cr != nil {
  30553. cr.sendContainerState(containerMapKey)
  30554. }
  30555. mk = dd.DecodeInt(64)
  30556. if cr != nil {
  30557. cr.sendContainerState(containerMapValue)
  30558. }
  30559. if dd.TryDecodeAsNil() {
  30560. if d.h.DeleteOnNilMapValue {
  30561. delete(v, mk)
  30562. } else {
  30563. v[mk] = nil
  30564. }
  30565. continue
  30566. }
  30567. if mapGet {
  30568. mv = v[mk]
  30569. } else {
  30570. mv = nil
  30571. }
  30572. d.decode(&mv)
  30573. if v != nil {
  30574. v[mk] = mv
  30575. }
  30576. }
  30577. if cr != nil {
  30578. cr.sendContainerState(containerMapEnd)
  30579. }
  30580. return v, changed
  30581. }
  30582. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  30583. if rv.Kind() == reflect.Ptr {
  30584. vp := rv2i(rv).(*map[int64]string)
  30585. if v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d); changed {
  30586. *vp = v
  30587. }
  30588. return
  30589. }
  30590. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  30591. }
  30592. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  30593. if v, changed := f.DecMapInt64StringV(*vp, true, d); changed {
  30594. *vp = v
  30595. }
  30596. }
  30597. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  30598. d *Decoder) (_ map[int64]string, changed bool) {
  30599. dd, cr := d.d, d.cr
  30600. containerLen := dd.ReadMapStart()
  30601. if canChange && v == nil {
  30602. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  30603. v = make(map[int64]string, xlen)
  30604. changed = true
  30605. }
  30606. if containerLen == 0 {
  30607. if cr != nil {
  30608. cr.sendContainerState(containerMapEnd)
  30609. }
  30610. return v, changed
  30611. }
  30612. var mk int64
  30613. var mv string
  30614. hasLen := containerLen > 0
  30615. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30616. if cr != nil {
  30617. cr.sendContainerState(containerMapKey)
  30618. }
  30619. mk = dd.DecodeInt(64)
  30620. if cr != nil {
  30621. cr.sendContainerState(containerMapValue)
  30622. }
  30623. if dd.TryDecodeAsNil() {
  30624. if d.h.DeleteOnNilMapValue {
  30625. delete(v, mk)
  30626. } else {
  30627. v[mk] = ""
  30628. }
  30629. continue
  30630. }
  30631. mv = dd.DecodeString()
  30632. if v != nil {
  30633. v[mk] = mv
  30634. }
  30635. }
  30636. if cr != nil {
  30637. cr.sendContainerState(containerMapEnd)
  30638. }
  30639. return v, changed
  30640. }
  30641. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  30642. if rv.Kind() == reflect.Ptr {
  30643. vp := rv2i(rv).(*map[int64]uint)
  30644. if v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d); changed {
  30645. *vp = v
  30646. }
  30647. return
  30648. }
  30649. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  30650. }
  30651. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  30652. if v, changed := f.DecMapInt64UintV(*vp, true, d); changed {
  30653. *vp = v
  30654. }
  30655. }
  30656. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  30657. d *Decoder) (_ map[int64]uint, changed bool) {
  30658. dd, cr := d.d, d.cr
  30659. containerLen := dd.ReadMapStart()
  30660. if canChange && v == nil {
  30661. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30662. v = make(map[int64]uint, xlen)
  30663. changed = true
  30664. }
  30665. if containerLen == 0 {
  30666. if cr != nil {
  30667. cr.sendContainerState(containerMapEnd)
  30668. }
  30669. return v, changed
  30670. }
  30671. var mk int64
  30672. var mv uint
  30673. hasLen := containerLen > 0
  30674. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30675. if cr != nil {
  30676. cr.sendContainerState(containerMapKey)
  30677. }
  30678. mk = dd.DecodeInt(64)
  30679. if cr != nil {
  30680. cr.sendContainerState(containerMapValue)
  30681. }
  30682. if dd.TryDecodeAsNil() {
  30683. if d.h.DeleteOnNilMapValue {
  30684. delete(v, mk)
  30685. } else {
  30686. v[mk] = 0
  30687. }
  30688. continue
  30689. }
  30690. mv = uint(dd.DecodeUint(uintBitsize))
  30691. if v != nil {
  30692. v[mk] = mv
  30693. }
  30694. }
  30695. if cr != nil {
  30696. cr.sendContainerState(containerMapEnd)
  30697. }
  30698. return v, changed
  30699. }
  30700. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  30701. if rv.Kind() == reflect.Ptr {
  30702. vp := rv2i(rv).(*map[int64]uint8)
  30703. if v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d); changed {
  30704. *vp = v
  30705. }
  30706. return
  30707. }
  30708. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  30709. }
  30710. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  30711. if v, changed := f.DecMapInt64Uint8V(*vp, true, d); changed {
  30712. *vp = v
  30713. }
  30714. }
  30715. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  30716. d *Decoder) (_ map[int64]uint8, changed bool) {
  30717. dd, cr := d.d, d.cr
  30718. containerLen := dd.ReadMapStart()
  30719. if canChange && v == nil {
  30720. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30721. v = make(map[int64]uint8, xlen)
  30722. changed = true
  30723. }
  30724. if containerLen == 0 {
  30725. if cr != nil {
  30726. cr.sendContainerState(containerMapEnd)
  30727. }
  30728. return v, changed
  30729. }
  30730. var mk int64
  30731. var mv uint8
  30732. hasLen := containerLen > 0
  30733. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30734. if cr != nil {
  30735. cr.sendContainerState(containerMapKey)
  30736. }
  30737. mk = dd.DecodeInt(64)
  30738. if cr != nil {
  30739. cr.sendContainerState(containerMapValue)
  30740. }
  30741. if dd.TryDecodeAsNil() {
  30742. if d.h.DeleteOnNilMapValue {
  30743. delete(v, mk)
  30744. } else {
  30745. v[mk] = 0
  30746. }
  30747. continue
  30748. }
  30749. mv = uint8(dd.DecodeUint(8))
  30750. if v != nil {
  30751. v[mk] = mv
  30752. }
  30753. }
  30754. if cr != nil {
  30755. cr.sendContainerState(containerMapEnd)
  30756. }
  30757. return v, changed
  30758. }
  30759. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  30760. if rv.Kind() == reflect.Ptr {
  30761. vp := rv2i(rv).(*map[int64]uint16)
  30762. if v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d); changed {
  30763. *vp = v
  30764. }
  30765. return
  30766. }
  30767. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  30768. }
  30769. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  30770. if v, changed := f.DecMapInt64Uint16V(*vp, true, d); changed {
  30771. *vp = v
  30772. }
  30773. }
  30774. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  30775. d *Decoder) (_ map[int64]uint16, changed bool) {
  30776. dd, cr := d.d, d.cr
  30777. containerLen := dd.ReadMapStart()
  30778. if canChange && v == nil {
  30779. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30780. v = make(map[int64]uint16, xlen)
  30781. changed = true
  30782. }
  30783. if containerLen == 0 {
  30784. if cr != nil {
  30785. cr.sendContainerState(containerMapEnd)
  30786. }
  30787. return v, changed
  30788. }
  30789. var mk int64
  30790. var mv uint16
  30791. hasLen := containerLen > 0
  30792. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30793. if cr != nil {
  30794. cr.sendContainerState(containerMapKey)
  30795. }
  30796. mk = dd.DecodeInt(64)
  30797. if cr != nil {
  30798. cr.sendContainerState(containerMapValue)
  30799. }
  30800. if dd.TryDecodeAsNil() {
  30801. if d.h.DeleteOnNilMapValue {
  30802. delete(v, mk)
  30803. } else {
  30804. v[mk] = 0
  30805. }
  30806. continue
  30807. }
  30808. mv = uint16(dd.DecodeUint(16))
  30809. if v != nil {
  30810. v[mk] = mv
  30811. }
  30812. }
  30813. if cr != nil {
  30814. cr.sendContainerState(containerMapEnd)
  30815. }
  30816. return v, changed
  30817. }
  30818. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  30819. if rv.Kind() == reflect.Ptr {
  30820. vp := rv2i(rv).(*map[int64]uint32)
  30821. if v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d); changed {
  30822. *vp = v
  30823. }
  30824. return
  30825. }
  30826. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  30827. }
  30828. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  30829. if v, changed := f.DecMapInt64Uint32V(*vp, true, d); changed {
  30830. *vp = v
  30831. }
  30832. }
  30833. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  30834. d *Decoder) (_ map[int64]uint32, changed bool) {
  30835. dd, cr := d.d, d.cr
  30836. containerLen := dd.ReadMapStart()
  30837. if canChange && v == nil {
  30838. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  30839. v = make(map[int64]uint32, xlen)
  30840. changed = true
  30841. }
  30842. if containerLen == 0 {
  30843. if cr != nil {
  30844. cr.sendContainerState(containerMapEnd)
  30845. }
  30846. return v, changed
  30847. }
  30848. var mk int64
  30849. var mv uint32
  30850. hasLen := containerLen > 0
  30851. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30852. if cr != nil {
  30853. cr.sendContainerState(containerMapKey)
  30854. }
  30855. mk = dd.DecodeInt(64)
  30856. if cr != nil {
  30857. cr.sendContainerState(containerMapValue)
  30858. }
  30859. if dd.TryDecodeAsNil() {
  30860. if d.h.DeleteOnNilMapValue {
  30861. delete(v, mk)
  30862. } else {
  30863. v[mk] = 0
  30864. }
  30865. continue
  30866. }
  30867. mv = uint32(dd.DecodeUint(32))
  30868. if v != nil {
  30869. v[mk] = mv
  30870. }
  30871. }
  30872. if cr != nil {
  30873. cr.sendContainerState(containerMapEnd)
  30874. }
  30875. return v, changed
  30876. }
  30877. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  30878. if rv.Kind() == reflect.Ptr {
  30879. vp := rv2i(rv).(*map[int64]uint64)
  30880. if v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d); changed {
  30881. *vp = v
  30882. }
  30883. return
  30884. }
  30885. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  30886. }
  30887. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  30888. if v, changed := f.DecMapInt64Uint64V(*vp, true, d); changed {
  30889. *vp = v
  30890. }
  30891. }
  30892. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  30893. d *Decoder) (_ map[int64]uint64, changed bool) {
  30894. dd, cr := d.d, d.cr
  30895. containerLen := dd.ReadMapStart()
  30896. if canChange && v == nil {
  30897. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30898. v = make(map[int64]uint64, xlen)
  30899. changed = true
  30900. }
  30901. if containerLen == 0 {
  30902. if cr != nil {
  30903. cr.sendContainerState(containerMapEnd)
  30904. }
  30905. return v, changed
  30906. }
  30907. var mk int64
  30908. var mv uint64
  30909. hasLen := containerLen > 0
  30910. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30911. if cr != nil {
  30912. cr.sendContainerState(containerMapKey)
  30913. }
  30914. mk = dd.DecodeInt(64)
  30915. if cr != nil {
  30916. cr.sendContainerState(containerMapValue)
  30917. }
  30918. if dd.TryDecodeAsNil() {
  30919. if d.h.DeleteOnNilMapValue {
  30920. delete(v, mk)
  30921. } else {
  30922. v[mk] = 0
  30923. }
  30924. continue
  30925. }
  30926. mv = dd.DecodeUint(64)
  30927. if v != nil {
  30928. v[mk] = mv
  30929. }
  30930. }
  30931. if cr != nil {
  30932. cr.sendContainerState(containerMapEnd)
  30933. }
  30934. return v, changed
  30935. }
  30936. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  30937. if rv.Kind() == reflect.Ptr {
  30938. vp := rv2i(rv).(*map[int64]uintptr)
  30939. if v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d); changed {
  30940. *vp = v
  30941. }
  30942. return
  30943. }
  30944. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  30945. }
  30946. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  30947. if v, changed := f.DecMapInt64UintptrV(*vp, true, d); changed {
  30948. *vp = v
  30949. }
  30950. }
  30951. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  30952. d *Decoder) (_ map[int64]uintptr, changed bool) {
  30953. dd, cr := d.d, d.cr
  30954. containerLen := dd.ReadMapStart()
  30955. if canChange && v == nil {
  30956. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  30957. v = make(map[int64]uintptr, xlen)
  30958. changed = true
  30959. }
  30960. if containerLen == 0 {
  30961. if cr != nil {
  30962. cr.sendContainerState(containerMapEnd)
  30963. }
  30964. return v, changed
  30965. }
  30966. var mk int64
  30967. var mv uintptr
  30968. hasLen := containerLen > 0
  30969. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30970. if cr != nil {
  30971. cr.sendContainerState(containerMapKey)
  30972. }
  30973. mk = dd.DecodeInt(64)
  30974. if cr != nil {
  30975. cr.sendContainerState(containerMapValue)
  30976. }
  30977. if dd.TryDecodeAsNil() {
  30978. if d.h.DeleteOnNilMapValue {
  30979. delete(v, mk)
  30980. } else {
  30981. v[mk] = 0
  30982. }
  30983. continue
  30984. }
  30985. mv = uintptr(dd.DecodeUint(uintBitsize))
  30986. if v != nil {
  30987. v[mk] = mv
  30988. }
  30989. }
  30990. if cr != nil {
  30991. cr.sendContainerState(containerMapEnd)
  30992. }
  30993. return v, changed
  30994. }
  30995. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  30996. if rv.Kind() == reflect.Ptr {
  30997. vp := rv2i(rv).(*map[int64]int)
  30998. if v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d); changed {
  30999. *vp = v
  31000. }
  31001. return
  31002. }
  31003. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  31004. }
  31005. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  31006. if v, changed := f.DecMapInt64IntV(*vp, true, d); changed {
  31007. *vp = v
  31008. }
  31009. }
  31010. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  31011. d *Decoder) (_ map[int64]int, changed bool) {
  31012. dd, cr := d.d, d.cr
  31013. containerLen := dd.ReadMapStart()
  31014. if canChange && v == nil {
  31015. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31016. v = make(map[int64]int, xlen)
  31017. changed = true
  31018. }
  31019. if containerLen == 0 {
  31020. if cr != nil {
  31021. cr.sendContainerState(containerMapEnd)
  31022. }
  31023. return v, changed
  31024. }
  31025. var mk int64
  31026. var mv int
  31027. hasLen := containerLen > 0
  31028. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31029. if cr != nil {
  31030. cr.sendContainerState(containerMapKey)
  31031. }
  31032. mk = dd.DecodeInt(64)
  31033. if cr != nil {
  31034. cr.sendContainerState(containerMapValue)
  31035. }
  31036. if dd.TryDecodeAsNil() {
  31037. if d.h.DeleteOnNilMapValue {
  31038. delete(v, mk)
  31039. } else {
  31040. v[mk] = 0
  31041. }
  31042. continue
  31043. }
  31044. mv = int(dd.DecodeInt(intBitsize))
  31045. if v != nil {
  31046. v[mk] = mv
  31047. }
  31048. }
  31049. if cr != nil {
  31050. cr.sendContainerState(containerMapEnd)
  31051. }
  31052. return v, changed
  31053. }
  31054. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  31055. if rv.Kind() == reflect.Ptr {
  31056. vp := rv2i(rv).(*map[int64]int8)
  31057. if v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d); changed {
  31058. *vp = v
  31059. }
  31060. return
  31061. }
  31062. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  31063. }
  31064. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  31065. if v, changed := f.DecMapInt64Int8V(*vp, true, d); changed {
  31066. *vp = v
  31067. }
  31068. }
  31069. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  31070. d *Decoder) (_ map[int64]int8, changed bool) {
  31071. dd, cr := d.d, d.cr
  31072. containerLen := dd.ReadMapStart()
  31073. if canChange && v == nil {
  31074. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31075. v = make(map[int64]int8, xlen)
  31076. changed = true
  31077. }
  31078. if containerLen == 0 {
  31079. if cr != nil {
  31080. cr.sendContainerState(containerMapEnd)
  31081. }
  31082. return v, changed
  31083. }
  31084. var mk int64
  31085. var mv int8
  31086. hasLen := containerLen > 0
  31087. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31088. if cr != nil {
  31089. cr.sendContainerState(containerMapKey)
  31090. }
  31091. mk = dd.DecodeInt(64)
  31092. if cr != nil {
  31093. cr.sendContainerState(containerMapValue)
  31094. }
  31095. if dd.TryDecodeAsNil() {
  31096. if d.h.DeleteOnNilMapValue {
  31097. delete(v, mk)
  31098. } else {
  31099. v[mk] = 0
  31100. }
  31101. continue
  31102. }
  31103. mv = int8(dd.DecodeInt(8))
  31104. if v != nil {
  31105. v[mk] = mv
  31106. }
  31107. }
  31108. if cr != nil {
  31109. cr.sendContainerState(containerMapEnd)
  31110. }
  31111. return v, changed
  31112. }
  31113. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  31114. if rv.Kind() == reflect.Ptr {
  31115. vp := rv2i(rv).(*map[int64]int16)
  31116. if v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d); changed {
  31117. *vp = v
  31118. }
  31119. return
  31120. }
  31121. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  31122. }
  31123. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  31124. if v, changed := f.DecMapInt64Int16V(*vp, true, d); changed {
  31125. *vp = v
  31126. }
  31127. }
  31128. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  31129. d *Decoder) (_ map[int64]int16, changed bool) {
  31130. dd, cr := d.d, d.cr
  31131. containerLen := dd.ReadMapStart()
  31132. if canChange && v == nil {
  31133. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31134. v = make(map[int64]int16, xlen)
  31135. changed = true
  31136. }
  31137. if containerLen == 0 {
  31138. if cr != nil {
  31139. cr.sendContainerState(containerMapEnd)
  31140. }
  31141. return v, changed
  31142. }
  31143. var mk int64
  31144. var mv int16
  31145. hasLen := containerLen > 0
  31146. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31147. if cr != nil {
  31148. cr.sendContainerState(containerMapKey)
  31149. }
  31150. mk = dd.DecodeInt(64)
  31151. if cr != nil {
  31152. cr.sendContainerState(containerMapValue)
  31153. }
  31154. if dd.TryDecodeAsNil() {
  31155. if d.h.DeleteOnNilMapValue {
  31156. delete(v, mk)
  31157. } else {
  31158. v[mk] = 0
  31159. }
  31160. continue
  31161. }
  31162. mv = int16(dd.DecodeInt(16))
  31163. if v != nil {
  31164. v[mk] = mv
  31165. }
  31166. }
  31167. if cr != nil {
  31168. cr.sendContainerState(containerMapEnd)
  31169. }
  31170. return v, changed
  31171. }
  31172. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  31173. if rv.Kind() == reflect.Ptr {
  31174. vp := rv2i(rv).(*map[int64]int32)
  31175. if v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d); changed {
  31176. *vp = v
  31177. }
  31178. return
  31179. }
  31180. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  31181. }
  31182. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  31183. if v, changed := f.DecMapInt64Int32V(*vp, true, d); changed {
  31184. *vp = v
  31185. }
  31186. }
  31187. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  31188. d *Decoder) (_ map[int64]int32, changed bool) {
  31189. dd, cr := d.d, d.cr
  31190. containerLen := dd.ReadMapStart()
  31191. if canChange && v == nil {
  31192. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31193. v = make(map[int64]int32, xlen)
  31194. changed = true
  31195. }
  31196. if containerLen == 0 {
  31197. if cr != nil {
  31198. cr.sendContainerState(containerMapEnd)
  31199. }
  31200. return v, changed
  31201. }
  31202. var mk int64
  31203. var mv int32
  31204. hasLen := containerLen > 0
  31205. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31206. if cr != nil {
  31207. cr.sendContainerState(containerMapKey)
  31208. }
  31209. mk = dd.DecodeInt(64)
  31210. if cr != nil {
  31211. cr.sendContainerState(containerMapValue)
  31212. }
  31213. if dd.TryDecodeAsNil() {
  31214. if d.h.DeleteOnNilMapValue {
  31215. delete(v, mk)
  31216. } else {
  31217. v[mk] = 0
  31218. }
  31219. continue
  31220. }
  31221. mv = int32(dd.DecodeInt(32))
  31222. if v != nil {
  31223. v[mk] = mv
  31224. }
  31225. }
  31226. if cr != nil {
  31227. cr.sendContainerState(containerMapEnd)
  31228. }
  31229. return v, changed
  31230. }
  31231. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  31232. if rv.Kind() == reflect.Ptr {
  31233. vp := rv2i(rv).(*map[int64]int64)
  31234. if v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d); changed {
  31235. *vp = v
  31236. }
  31237. return
  31238. }
  31239. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  31240. }
  31241. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  31242. if v, changed := f.DecMapInt64Int64V(*vp, true, d); changed {
  31243. *vp = v
  31244. }
  31245. }
  31246. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  31247. d *Decoder) (_ map[int64]int64, changed bool) {
  31248. dd, cr := d.d, d.cr
  31249. containerLen := dd.ReadMapStart()
  31250. if canChange && v == nil {
  31251. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31252. v = make(map[int64]int64, xlen)
  31253. changed = true
  31254. }
  31255. if containerLen == 0 {
  31256. if cr != nil {
  31257. cr.sendContainerState(containerMapEnd)
  31258. }
  31259. return v, changed
  31260. }
  31261. var mk int64
  31262. var mv int64
  31263. hasLen := containerLen > 0
  31264. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31265. if cr != nil {
  31266. cr.sendContainerState(containerMapKey)
  31267. }
  31268. mk = dd.DecodeInt(64)
  31269. if cr != nil {
  31270. cr.sendContainerState(containerMapValue)
  31271. }
  31272. if dd.TryDecodeAsNil() {
  31273. if d.h.DeleteOnNilMapValue {
  31274. delete(v, mk)
  31275. } else {
  31276. v[mk] = 0
  31277. }
  31278. continue
  31279. }
  31280. mv = dd.DecodeInt(64)
  31281. if v != nil {
  31282. v[mk] = mv
  31283. }
  31284. }
  31285. if cr != nil {
  31286. cr.sendContainerState(containerMapEnd)
  31287. }
  31288. return v, changed
  31289. }
  31290. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  31291. if rv.Kind() == reflect.Ptr {
  31292. vp := rv2i(rv).(*map[int64]float32)
  31293. if v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d); changed {
  31294. *vp = v
  31295. }
  31296. return
  31297. }
  31298. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  31299. }
  31300. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  31301. if v, changed := f.DecMapInt64Float32V(*vp, true, d); changed {
  31302. *vp = v
  31303. }
  31304. }
  31305. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  31306. d *Decoder) (_ map[int64]float32, changed bool) {
  31307. dd, cr := d.d, d.cr
  31308. containerLen := dd.ReadMapStart()
  31309. if canChange && v == nil {
  31310. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31311. v = make(map[int64]float32, xlen)
  31312. changed = true
  31313. }
  31314. if containerLen == 0 {
  31315. if cr != nil {
  31316. cr.sendContainerState(containerMapEnd)
  31317. }
  31318. return v, changed
  31319. }
  31320. var mk int64
  31321. var mv float32
  31322. hasLen := containerLen > 0
  31323. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31324. if cr != nil {
  31325. cr.sendContainerState(containerMapKey)
  31326. }
  31327. mk = dd.DecodeInt(64)
  31328. if cr != nil {
  31329. cr.sendContainerState(containerMapValue)
  31330. }
  31331. if dd.TryDecodeAsNil() {
  31332. if d.h.DeleteOnNilMapValue {
  31333. delete(v, mk)
  31334. } else {
  31335. v[mk] = 0
  31336. }
  31337. continue
  31338. }
  31339. mv = float32(dd.DecodeFloat(true))
  31340. if v != nil {
  31341. v[mk] = mv
  31342. }
  31343. }
  31344. if cr != nil {
  31345. cr.sendContainerState(containerMapEnd)
  31346. }
  31347. return v, changed
  31348. }
  31349. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  31350. if rv.Kind() == reflect.Ptr {
  31351. vp := rv2i(rv).(*map[int64]float64)
  31352. if v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d); changed {
  31353. *vp = v
  31354. }
  31355. return
  31356. }
  31357. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  31358. }
  31359. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  31360. if v, changed := f.DecMapInt64Float64V(*vp, true, d); changed {
  31361. *vp = v
  31362. }
  31363. }
  31364. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  31365. d *Decoder) (_ map[int64]float64, changed bool) {
  31366. dd, cr := d.d, d.cr
  31367. containerLen := dd.ReadMapStart()
  31368. if canChange && v == nil {
  31369. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  31370. v = make(map[int64]float64, xlen)
  31371. changed = true
  31372. }
  31373. if containerLen == 0 {
  31374. if cr != nil {
  31375. cr.sendContainerState(containerMapEnd)
  31376. }
  31377. return v, changed
  31378. }
  31379. var mk int64
  31380. var mv float64
  31381. hasLen := containerLen > 0
  31382. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31383. if cr != nil {
  31384. cr.sendContainerState(containerMapKey)
  31385. }
  31386. mk = dd.DecodeInt(64)
  31387. if cr != nil {
  31388. cr.sendContainerState(containerMapValue)
  31389. }
  31390. if dd.TryDecodeAsNil() {
  31391. if d.h.DeleteOnNilMapValue {
  31392. delete(v, mk)
  31393. } else {
  31394. v[mk] = 0
  31395. }
  31396. continue
  31397. }
  31398. mv = dd.DecodeFloat(false)
  31399. if v != nil {
  31400. v[mk] = mv
  31401. }
  31402. }
  31403. if cr != nil {
  31404. cr.sendContainerState(containerMapEnd)
  31405. }
  31406. return v, changed
  31407. }
  31408. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  31409. if rv.Kind() == reflect.Ptr {
  31410. vp := rv2i(rv).(*map[int64]bool)
  31411. if v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d); changed {
  31412. *vp = v
  31413. }
  31414. return
  31415. }
  31416. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  31417. }
  31418. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  31419. if v, changed := f.DecMapInt64BoolV(*vp, true, d); changed {
  31420. *vp = v
  31421. }
  31422. }
  31423. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  31424. d *Decoder) (_ map[int64]bool, changed bool) {
  31425. dd, cr := d.d, d.cr
  31426. containerLen := dd.ReadMapStart()
  31427. if canChange && v == nil {
  31428. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31429. v = make(map[int64]bool, xlen)
  31430. changed = true
  31431. }
  31432. if containerLen == 0 {
  31433. if cr != nil {
  31434. cr.sendContainerState(containerMapEnd)
  31435. }
  31436. return v, changed
  31437. }
  31438. var mk int64
  31439. var mv bool
  31440. hasLen := containerLen > 0
  31441. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31442. if cr != nil {
  31443. cr.sendContainerState(containerMapKey)
  31444. }
  31445. mk = dd.DecodeInt(64)
  31446. if cr != nil {
  31447. cr.sendContainerState(containerMapValue)
  31448. }
  31449. if dd.TryDecodeAsNil() {
  31450. if d.h.DeleteOnNilMapValue {
  31451. delete(v, mk)
  31452. } else {
  31453. v[mk] = false
  31454. }
  31455. continue
  31456. }
  31457. mv = dd.DecodeBool()
  31458. if v != nil {
  31459. v[mk] = mv
  31460. }
  31461. }
  31462. if cr != nil {
  31463. cr.sendContainerState(containerMapEnd)
  31464. }
  31465. return v, changed
  31466. }
  31467. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  31468. if rv.Kind() == reflect.Ptr {
  31469. vp := rv2i(rv).(*map[bool]interface{})
  31470. if v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d); changed {
  31471. *vp = v
  31472. }
  31473. return
  31474. }
  31475. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  31476. }
  31477. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  31478. if v, changed := f.DecMapBoolIntfV(*vp, true, d); changed {
  31479. *vp = v
  31480. }
  31481. }
  31482. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  31483. d *Decoder) (_ map[bool]interface{}, changed bool) {
  31484. dd, cr := d.d, d.cr
  31485. containerLen := dd.ReadMapStart()
  31486. if canChange && v == nil {
  31487. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  31488. v = make(map[bool]interface{}, xlen)
  31489. changed = true
  31490. }
  31491. if containerLen == 0 {
  31492. if cr != nil {
  31493. cr.sendContainerState(containerMapEnd)
  31494. }
  31495. return v, changed
  31496. }
  31497. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  31498. var mk bool
  31499. var mv interface{}
  31500. hasLen := containerLen > 0
  31501. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31502. if cr != nil {
  31503. cr.sendContainerState(containerMapKey)
  31504. }
  31505. mk = dd.DecodeBool()
  31506. if cr != nil {
  31507. cr.sendContainerState(containerMapValue)
  31508. }
  31509. if dd.TryDecodeAsNil() {
  31510. if d.h.DeleteOnNilMapValue {
  31511. delete(v, mk)
  31512. } else {
  31513. v[mk] = nil
  31514. }
  31515. continue
  31516. }
  31517. if mapGet {
  31518. mv = v[mk]
  31519. } else {
  31520. mv = nil
  31521. }
  31522. d.decode(&mv)
  31523. if v != nil {
  31524. v[mk] = mv
  31525. }
  31526. }
  31527. if cr != nil {
  31528. cr.sendContainerState(containerMapEnd)
  31529. }
  31530. return v, changed
  31531. }
  31532. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  31533. if rv.Kind() == reflect.Ptr {
  31534. vp := rv2i(rv).(*map[bool]string)
  31535. if v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d); changed {
  31536. *vp = v
  31537. }
  31538. return
  31539. }
  31540. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  31541. }
  31542. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  31543. if v, changed := f.DecMapBoolStringV(*vp, true, d); changed {
  31544. *vp = v
  31545. }
  31546. }
  31547. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  31548. d *Decoder) (_ map[bool]string, changed bool) {
  31549. dd, cr := d.d, d.cr
  31550. containerLen := dd.ReadMapStart()
  31551. if canChange && v == nil {
  31552. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  31553. v = make(map[bool]string, xlen)
  31554. changed = true
  31555. }
  31556. if containerLen == 0 {
  31557. if cr != nil {
  31558. cr.sendContainerState(containerMapEnd)
  31559. }
  31560. return v, changed
  31561. }
  31562. var mk bool
  31563. var mv string
  31564. hasLen := containerLen > 0
  31565. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31566. if cr != nil {
  31567. cr.sendContainerState(containerMapKey)
  31568. }
  31569. mk = dd.DecodeBool()
  31570. if cr != nil {
  31571. cr.sendContainerState(containerMapValue)
  31572. }
  31573. if dd.TryDecodeAsNil() {
  31574. if d.h.DeleteOnNilMapValue {
  31575. delete(v, mk)
  31576. } else {
  31577. v[mk] = ""
  31578. }
  31579. continue
  31580. }
  31581. mv = dd.DecodeString()
  31582. if v != nil {
  31583. v[mk] = mv
  31584. }
  31585. }
  31586. if cr != nil {
  31587. cr.sendContainerState(containerMapEnd)
  31588. }
  31589. return v, changed
  31590. }
  31591. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  31592. if rv.Kind() == reflect.Ptr {
  31593. vp := rv2i(rv).(*map[bool]uint)
  31594. if v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d); changed {
  31595. *vp = v
  31596. }
  31597. return
  31598. }
  31599. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  31600. }
  31601. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  31602. if v, changed := f.DecMapBoolUintV(*vp, true, d); changed {
  31603. *vp = v
  31604. }
  31605. }
  31606. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  31607. d *Decoder) (_ map[bool]uint, changed bool) {
  31608. dd, cr := d.d, d.cr
  31609. containerLen := dd.ReadMapStart()
  31610. if canChange && v == nil {
  31611. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31612. v = make(map[bool]uint, xlen)
  31613. changed = true
  31614. }
  31615. if containerLen == 0 {
  31616. if cr != nil {
  31617. cr.sendContainerState(containerMapEnd)
  31618. }
  31619. return v, changed
  31620. }
  31621. var mk bool
  31622. var mv uint
  31623. hasLen := containerLen > 0
  31624. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31625. if cr != nil {
  31626. cr.sendContainerState(containerMapKey)
  31627. }
  31628. mk = dd.DecodeBool()
  31629. if cr != nil {
  31630. cr.sendContainerState(containerMapValue)
  31631. }
  31632. if dd.TryDecodeAsNil() {
  31633. if d.h.DeleteOnNilMapValue {
  31634. delete(v, mk)
  31635. } else {
  31636. v[mk] = 0
  31637. }
  31638. continue
  31639. }
  31640. mv = uint(dd.DecodeUint(uintBitsize))
  31641. if v != nil {
  31642. v[mk] = mv
  31643. }
  31644. }
  31645. if cr != nil {
  31646. cr.sendContainerState(containerMapEnd)
  31647. }
  31648. return v, changed
  31649. }
  31650. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  31651. if rv.Kind() == reflect.Ptr {
  31652. vp := rv2i(rv).(*map[bool]uint8)
  31653. if v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d); changed {
  31654. *vp = v
  31655. }
  31656. return
  31657. }
  31658. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  31659. }
  31660. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  31661. if v, changed := f.DecMapBoolUint8V(*vp, true, d); changed {
  31662. *vp = v
  31663. }
  31664. }
  31665. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  31666. d *Decoder) (_ map[bool]uint8, changed bool) {
  31667. dd, cr := d.d, d.cr
  31668. containerLen := dd.ReadMapStart()
  31669. if canChange && v == nil {
  31670. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  31671. v = make(map[bool]uint8, xlen)
  31672. changed = true
  31673. }
  31674. if containerLen == 0 {
  31675. if cr != nil {
  31676. cr.sendContainerState(containerMapEnd)
  31677. }
  31678. return v, changed
  31679. }
  31680. var mk bool
  31681. var mv uint8
  31682. hasLen := containerLen > 0
  31683. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31684. if cr != nil {
  31685. cr.sendContainerState(containerMapKey)
  31686. }
  31687. mk = dd.DecodeBool()
  31688. if cr != nil {
  31689. cr.sendContainerState(containerMapValue)
  31690. }
  31691. if dd.TryDecodeAsNil() {
  31692. if d.h.DeleteOnNilMapValue {
  31693. delete(v, mk)
  31694. } else {
  31695. v[mk] = 0
  31696. }
  31697. continue
  31698. }
  31699. mv = uint8(dd.DecodeUint(8))
  31700. if v != nil {
  31701. v[mk] = mv
  31702. }
  31703. }
  31704. if cr != nil {
  31705. cr.sendContainerState(containerMapEnd)
  31706. }
  31707. return v, changed
  31708. }
  31709. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  31710. if rv.Kind() == reflect.Ptr {
  31711. vp := rv2i(rv).(*map[bool]uint16)
  31712. if v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d); changed {
  31713. *vp = v
  31714. }
  31715. return
  31716. }
  31717. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  31718. }
  31719. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  31720. if v, changed := f.DecMapBoolUint16V(*vp, true, d); changed {
  31721. *vp = v
  31722. }
  31723. }
  31724. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  31725. d *Decoder) (_ map[bool]uint16, changed bool) {
  31726. dd, cr := d.d, d.cr
  31727. containerLen := dd.ReadMapStart()
  31728. if canChange && v == nil {
  31729. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31730. v = make(map[bool]uint16, xlen)
  31731. changed = true
  31732. }
  31733. if containerLen == 0 {
  31734. if cr != nil {
  31735. cr.sendContainerState(containerMapEnd)
  31736. }
  31737. return v, changed
  31738. }
  31739. var mk bool
  31740. var mv uint16
  31741. hasLen := containerLen > 0
  31742. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31743. if cr != nil {
  31744. cr.sendContainerState(containerMapKey)
  31745. }
  31746. mk = dd.DecodeBool()
  31747. if cr != nil {
  31748. cr.sendContainerState(containerMapValue)
  31749. }
  31750. if dd.TryDecodeAsNil() {
  31751. if d.h.DeleteOnNilMapValue {
  31752. delete(v, mk)
  31753. } else {
  31754. v[mk] = 0
  31755. }
  31756. continue
  31757. }
  31758. mv = uint16(dd.DecodeUint(16))
  31759. if v != nil {
  31760. v[mk] = mv
  31761. }
  31762. }
  31763. if cr != nil {
  31764. cr.sendContainerState(containerMapEnd)
  31765. }
  31766. return v, changed
  31767. }
  31768. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  31769. if rv.Kind() == reflect.Ptr {
  31770. vp := rv2i(rv).(*map[bool]uint32)
  31771. if v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d); changed {
  31772. *vp = v
  31773. }
  31774. return
  31775. }
  31776. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  31777. }
  31778. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  31779. if v, changed := f.DecMapBoolUint32V(*vp, true, d); changed {
  31780. *vp = v
  31781. }
  31782. }
  31783. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  31784. d *Decoder) (_ map[bool]uint32, changed bool) {
  31785. dd, cr := d.d, d.cr
  31786. containerLen := dd.ReadMapStart()
  31787. if canChange && v == nil {
  31788. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31789. v = make(map[bool]uint32, xlen)
  31790. changed = true
  31791. }
  31792. if containerLen == 0 {
  31793. if cr != nil {
  31794. cr.sendContainerState(containerMapEnd)
  31795. }
  31796. return v, changed
  31797. }
  31798. var mk bool
  31799. var mv uint32
  31800. hasLen := containerLen > 0
  31801. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31802. if cr != nil {
  31803. cr.sendContainerState(containerMapKey)
  31804. }
  31805. mk = dd.DecodeBool()
  31806. if cr != nil {
  31807. cr.sendContainerState(containerMapValue)
  31808. }
  31809. if dd.TryDecodeAsNil() {
  31810. if d.h.DeleteOnNilMapValue {
  31811. delete(v, mk)
  31812. } else {
  31813. v[mk] = 0
  31814. }
  31815. continue
  31816. }
  31817. mv = uint32(dd.DecodeUint(32))
  31818. if v != nil {
  31819. v[mk] = mv
  31820. }
  31821. }
  31822. if cr != nil {
  31823. cr.sendContainerState(containerMapEnd)
  31824. }
  31825. return v, changed
  31826. }
  31827. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  31828. if rv.Kind() == reflect.Ptr {
  31829. vp := rv2i(rv).(*map[bool]uint64)
  31830. if v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d); changed {
  31831. *vp = v
  31832. }
  31833. return
  31834. }
  31835. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  31836. }
  31837. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  31838. if v, changed := f.DecMapBoolUint64V(*vp, true, d); changed {
  31839. *vp = v
  31840. }
  31841. }
  31842. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  31843. d *Decoder) (_ map[bool]uint64, changed bool) {
  31844. dd, cr := d.d, d.cr
  31845. containerLen := dd.ReadMapStart()
  31846. if canChange && v == nil {
  31847. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31848. v = make(map[bool]uint64, xlen)
  31849. changed = true
  31850. }
  31851. if containerLen == 0 {
  31852. if cr != nil {
  31853. cr.sendContainerState(containerMapEnd)
  31854. }
  31855. return v, changed
  31856. }
  31857. var mk bool
  31858. var mv uint64
  31859. hasLen := containerLen > 0
  31860. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31861. if cr != nil {
  31862. cr.sendContainerState(containerMapKey)
  31863. }
  31864. mk = dd.DecodeBool()
  31865. if cr != nil {
  31866. cr.sendContainerState(containerMapValue)
  31867. }
  31868. if dd.TryDecodeAsNil() {
  31869. if d.h.DeleteOnNilMapValue {
  31870. delete(v, mk)
  31871. } else {
  31872. v[mk] = 0
  31873. }
  31874. continue
  31875. }
  31876. mv = dd.DecodeUint(64)
  31877. if v != nil {
  31878. v[mk] = mv
  31879. }
  31880. }
  31881. if cr != nil {
  31882. cr.sendContainerState(containerMapEnd)
  31883. }
  31884. return v, changed
  31885. }
  31886. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  31887. if rv.Kind() == reflect.Ptr {
  31888. vp := rv2i(rv).(*map[bool]uintptr)
  31889. if v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d); changed {
  31890. *vp = v
  31891. }
  31892. return
  31893. }
  31894. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  31895. }
  31896. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  31897. if v, changed := f.DecMapBoolUintptrV(*vp, true, d); changed {
  31898. *vp = v
  31899. }
  31900. }
  31901. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  31902. d *Decoder) (_ map[bool]uintptr, changed bool) {
  31903. dd, cr := d.d, d.cr
  31904. containerLen := dd.ReadMapStart()
  31905. if canChange && v == nil {
  31906. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31907. v = make(map[bool]uintptr, xlen)
  31908. changed = true
  31909. }
  31910. if containerLen == 0 {
  31911. if cr != nil {
  31912. cr.sendContainerState(containerMapEnd)
  31913. }
  31914. return v, changed
  31915. }
  31916. var mk bool
  31917. var mv uintptr
  31918. hasLen := containerLen > 0
  31919. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31920. if cr != nil {
  31921. cr.sendContainerState(containerMapKey)
  31922. }
  31923. mk = dd.DecodeBool()
  31924. if cr != nil {
  31925. cr.sendContainerState(containerMapValue)
  31926. }
  31927. if dd.TryDecodeAsNil() {
  31928. if d.h.DeleteOnNilMapValue {
  31929. delete(v, mk)
  31930. } else {
  31931. v[mk] = 0
  31932. }
  31933. continue
  31934. }
  31935. mv = uintptr(dd.DecodeUint(uintBitsize))
  31936. if v != nil {
  31937. v[mk] = mv
  31938. }
  31939. }
  31940. if cr != nil {
  31941. cr.sendContainerState(containerMapEnd)
  31942. }
  31943. return v, changed
  31944. }
  31945. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  31946. if rv.Kind() == reflect.Ptr {
  31947. vp := rv2i(rv).(*map[bool]int)
  31948. if v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d); changed {
  31949. *vp = v
  31950. }
  31951. return
  31952. }
  31953. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  31954. }
  31955. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  31956. if v, changed := f.DecMapBoolIntV(*vp, true, d); changed {
  31957. *vp = v
  31958. }
  31959. }
  31960. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  31961. d *Decoder) (_ map[bool]int, changed bool) {
  31962. dd, cr := d.d, d.cr
  31963. containerLen := dd.ReadMapStart()
  31964. if canChange && v == nil {
  31965. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  31966. v = make(map[bool]int, xlen)
  31967. changed = true
  31968. }
  31969. if containerLen == 0 {
  31970. if cr != nil {
  31971. cr.sendContainerState(containerMapEnd)
  31972. }
  31973. return v, changed
  31974. }
  31975. var mk bool
  31976. var mv int
  31977. hasLen := containerLen > 0
  31978. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31979. if cr != nil {
  31980. cr.sendContainerState(containerMapKey)
  31981. }
  31982. mk = dd.DecodeBool()
  31983. if cr != nil {
  31984. cr.sendContainerState(containerMapValue)
  31985. }
  31986. if dd.TryDecodeAsNil() {
  31987. if d.h.DeleteOnNilMapValue {
  31988. delete(v, mk)
  31989. } else {
  31990. v[mk] = 0
  31991. }
  31992. continue
  31993. }
  31994. mv = int(dd.DecodeInt(intBitsize))
  31995. if v != nil {
  31996. v[mk] = mv
  31997. }
  31998. }
  31999. if cr != nil {
  32000. cr.sendContainerState(containerMapEnd)
  32001. }
  32002. return v, changed
  32003. }
  32004. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  32005. if rv.Kind() == reflect.Ptr {
  32006. vp := rv2i(rv).(*map[bool]int8)
  32007. if v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d); changed {
  32008. *vp = v
  32009. }
  32010. return
  32011. }
  32012. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  32013. }
  32014. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  32015. if v, changed := f.DecMapBoolInt8V(*vp, true, d); changed {
  32016. *vp = v
  32017. }
  32018. }
  32019. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  32020. d *Decoder) (_ map[bool]int8, changed bool) {
  32021. dd, cr := d.d, d.cr
  32022. containerLen := dd.ReadMapStart()
  32023. if canChange && v == nil {
  32024. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  32025. v = make(map[bool]int8, xlen)
  32026. changed = true
  32027. }
  32028. if containerLen == 0 {
  32029. if cr != nil {
  32030. cr.sendContainerState(containerMapEnd)
  32031. }
  32032. return v, changed
  32033. }
  32034. var mk bool
  32035. var mv int8
  32036. hasLen := containerLen > 0
  32037. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32038. if cr != nil {
  32039. cr.sendContainerState(containerMapKey)
  32040. }
  32041. mk = dd.DecodeBool()
  32042. if cr != nil {
  32043. cr.sendContainerState(containerMapValue)
  32044. }
  32045. if dd.TryDecodeAsNil() {
  32046. if d.h.DeleteOnNilMapValue {
  32047. delete(v, mk)
  32048. } else {
  32049. v[mk] = 0
  32050. }
  32051. continue
  32052. }
  32053. mv = int8(dd.DecodeInt(8))
  32054. if v != nil {
  32055. v[mk] = mv
  32056. }
  32057. }
  32058. if cr != nil {
  32059. cr.sendContainerState(containerMapEnd)
  32060. }
  32061. return v, changed
  32062. }
  32063. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  32064. if rv.Kind() == reflect.Ptr {
  32065. vp := rv2i(rv).(*map[bool]int16)
  32066. if v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d); changed {
  32067. *vp = v
  32068. }
  32069. return
  32070. }
  32071. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  32072. }
  32073. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  32074. if v, changed := f.DecMapBoolInt16V(*vp, true, d); changed {
  32075. *vp = v
  32076. }
  32077. }
  32078. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  32079. d *Decoder) (_ map[bool]int16, changed bool) {
  32080. dd, cr := d.d, d.cr
  32081. containerLen := dd.ReadMapStart()
  32082. if canChange && v == nil {
  32083. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  32084. v = make(map[bool]int16, xlen)
  32085. changed = true
  32086. }
  32087. if containerLen == 0 {
  32088. if cr != nil {
  32089. cr.sendContainerState(containerMapEnd)
  32090. }
  32091. return v, changed
  32092. }
  32093. var mk bool
  32094. var mv int16
  32095. hasLen := containerLen > 0
  32096. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32097. if cr != nil {
  32098. cr.sendContainerState(containerMapKey)
  32099. }
  32100. mk = dd.DecodeBool()
  32101. if cr != nil {
  32102. cr.sendContainerState(containerMapValue)
  32103. }
  32104. if dd.TryDecodeAsNil() {
  32105. if d.h.DeleteOnNilMapValue {
  32106. delete(v, mk)
  32107. } else {
  32108. v[mk] = 0
  32109. }
  32110. continue
  32111. }
  32112. mv = int16(dd.DecodeInt(16))
  32113. if v != nil {
  32114. v[mk] = mv
  32115. }
  32116. }
  32117. if cr != nil {
  32118. cr.sendContainerState(containerMapEnd)
  32119. }
  32120. return v, changed
  32121. }
  32122. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  32123. if rv.Kind() == reflect.Ptr {
  32124. vp := rv2i(rv).(*map[bool]int32)
  32125. if v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d); changed {
  32126. *vp = v
  32127. }
  32128. return
  32129. }
  32130. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  32131. }
  32132. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  32133. if v, changed := f.DecMapBoolInt32V(*vp, true, d); changed {
  32134. *vp = v
  32135. }
  32136. }
  32137. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  32138. d *Decoder) (_ map[bool]int32, changed bool) {
  32139. dd, cr := d.d, d.cr
  32140. containerLen := dd.ReadMapStart()
  32141. if canChange && v == nil {
  32142. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32143. v = make(map[bool]int32, xlen)
  32144. changed = true
  32145. }
  32146. if containerLen == 0 {
  32147. if cr != nil {
  32148. cr.sendContainerState(containerMapEnd)
  32149. }
  32150. return v, changed
  32151. }
  32152. var mk bool
  32153. var mv int32
  32154. hasLen := containerLen > 0
  32155. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32156. if cr != nil {
  32157. cr.sendContainerState(containerMapKey)
  32158. }
  32159. mk = dd.DecodeBool()
  32160. if cr != nil {
  32161. cr.sendContainerState(containerMapValue)
  32162. }
  32163. if dd.TryDecodeAsNil() {
  32164. if d.h.DeleteOnNilMapValue {
  32165. delete(v, mk)
  32166. } else {
  32167. v[mk] = 0
  32168. }
  32169. continue
  32170. }
  32171. mv = int32(dd.DecodeInt(32))
  32172. if v != nil {
  32173. v[mk] = mv
  32174. }
  32175. }
  32176. if cr != nil {
  32177. cr.sendContainerState(containerMapEnd)
  32178. }
  32179. return v, changed
  32180. }
  32181. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  32182. if rv.Kind() == reflect.Ptr {
  32183. vp := rv2i(rv).(*map[bool]int64)
  32184. if v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d); changed {
  32185. *vp = v
  32186. }
  32187. return
  32188. }
  32189. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  32190. }
  32191. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  32192. if v, changed := f.DecMapBoolInt64V(*vp, true, d); changed {
  32193. *vp = v
  32194. }
  32195. }
  32196. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  32197. d *Decoder) (_ map[bool]int64, changed bool) {
  32198. dd, cr := d.d, d.cr
  32199. containerLen := dd.ReadMapStart()
  32200. if canChange && v == nil {
  32201. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32202. v = make(map[bool]int64, xlen)
  32203. changed = true
  32204. }
  32205. if containerLen == 0 {
  32206. if cr != nil {
  32207. cr.sendContainerState(containerMapEnd)
  32208. }
  32209. return v, changed
  32210. }
  32211. var mk bool
  32212. var mv int64
  32213. hasLen := containerLen > 0
  32214. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32215. if cr != nil {
  32216. cr.sendContainerState(containerMapKey)
  32217. }
  32218. mk = dd.DecodeBool()
  32219. if cr != nil {
  32220. cr.sendContainerState(containerMapValue)
  32221. }
  32222. if dd.TryDecodeAsNil() {
  32223. if d.h.DeleteOnNilMapValue {
  32224. delete(v, mk)
  32225. } else {
  32226. v[mk] = 0
  32227. }
  32228. continue
  32229. }
  32230. mv = dd.DecodeInt(64)
  32231. if v != nil {
  32232. v[mk] = mv
  32233. }
  32234. }
  32235. if cr != nil {
  32236. cr.sendContainerState(containerMapEnd)
  32237. }
  32238. return v, changed
  32239. }
  32240. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  32241. if rv.Kind() == reflect.Ptr {
  32242. vp := rv2i(rv).(*map[bool]float32)
  32243. if v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d); changed {
  32244. *vp = v
  32245. }
  32246. return
  32247. }
  32248. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  32249. }
  32250. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  32251. if v, changed := f.DecMapBoolFloat32V(*vp, true, d); changed {
  32252. *vp = v
  32253. }
  32254. }
  32255. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  32256. d *Decoder) (_ map[bool]float32, changed bool) {
  32257. dd, cr := d.d, d.cr
  32258. containerLen := dd.ReadMapStart()
  32259. if canChange && v == nil {
  32260. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32261. v = make(map[bool]float32, xlen)
  32262. changed = true
  32263. }
  32264. if containerLen == 0 {
  32265. if cr != nil {
  32266. cr.sendContainerState(containerMapEnd)
  32267. }
  32268. return v, changed
  32269. }
  32270. var mk bool
  32271. var mv float32
  32272. hasLen := containerLen > 0
  32273. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32274. if cr != nil {
  32275. cr.sendContainerState(containerMapKey)
  32276. }
  32277. mk = dd.DecodeBool()
  32278. if cr != nil {
  32279. cr.sendContainerState(containerMapValue)
  32280. }
  32281. if dd.TryDecodeAsNil() {
  32282. if d.h.DeleteOnNilMapValue {
  32283. delete(v, mk)
  32284. } else {
  32285. v[mk] = 0
  32286. }
  32287. continue
  32288. }
  32289. mv = float32(dd.DecodeFloat(true))
  32290. if v != nil {
  32291. v[mk] = mv
  32292. }
  32293. }
  32294. if cr != nil {
  32295. cr.sendContainerState(containerMapEnd)
  32296. }
  32297. return v, changed
  32298. }
  32299. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  32300. if rv.Kind() == reflect.Ptr {
  32301. vp := rv2i(rv).(*map[bool]float64)
  32302. if v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d); changed {
  32303. *vp = v
  32304. }
  32305. return
  32306. }
  32307. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  32308. }
  32309. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  32310. if v, changed := f.DecMapBoolFloat64V(*vp, true, d); changed {
  32311. *vp = v
  32312. }
  32313. }
  32314. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  32315. d *Decoder) (_ map[bool]float64, changed bool) {
  32316. dd, cr := d.d, d.cr
  32317. containerLen := dd.ReadMapStart()
  32318. if canChange && v == nil {
  32319. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32320. v = make(map[bool]float64, xlen)
  32321. changed = true
  32322. }
  32323. if containerLen == 0 {
  32324. if cr != nil {
  32325. cr.sendContainerState(containerMapEnd)
  32326. }
  32327. return v, changed
  32328. }
  32329. var mk bool
  32330. var mv float64
  32331. hasLen := containerLen > 0
  32332. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32333. if cr != nil {
  32334. cr.sendContainerState(containerMapKey)
  32335. }
  32336. mk = dd.DecodeBool()
  32337. if cr != nil {
  32338. cr.sendContainerState(containerMapValue)
  32339. }
  32340. if dd.TryDecodeAsNil() {
  32341. if d.h.DeleteOnNilMapValue {
  32342. delete(v, mk)
  32343. } else {
  32344. v[mk] = 0
  32345. }
  32346. continue
  32347. }
  32348. mv = dd.DecodeFloat(false)
  32349. if v != nil {
  32350. v[mk] = mv
  32351. }
  32352. }
  32353. if cr != nil {
  32354. cr.sendContainerState(containerMapEnd)
  32355. }
  32356. return v, changed
  32357. }
  32358. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  32359. if rv.Kind() == reflect.Ptr {
  32360. vp := rv2i(rv).(*map[bool]bool)
  32361. if v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d); changed {
  32362. *vp = v
  32363. }
  32364. return
  32365. }
  32366. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  32367. }
  32368. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  32369. if v, changed := f.DecMapBoolBoolV(*vp, true, d); changed {
  32370. *vp = v
  32371. }
  32372. }
  32373. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  32374. d *Decoder) (_ map[bool]bool, changed bool) {
  32375. dd, cr := d.d, d.cr
  32376. containerLen := dd.ReadMapStart()
  32377. if canChange && v == nil {
  32378. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  32379. v = make(map[bool]bool, xlen)
  32380. changed = true
  32381. }
  32382. if containerLen == 0 {
  32383. if cr != nil {
  32384. cr.sendContainerState(containerMapEnd)
  32385. }
  32386. return v, changed
  32387. }
  32388. var mk bool
  32389. var mv bool
  32390. hasLen := containerLen > 0
  32391. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32392. if cr != nil {
  32393. cr.sendContainerState(containerMapKey)
  32394. }
  32395. mk = dd.DecodeBool()
  32396. if cr != nil {
  32397. cr.sendContainerState(containerMapValue)
  32398. }
  32399. if dd.TryDecodeAsNil() {
  32400. if d.h.DeleteOnNilMapValue {
  32401. delete(v, mk)
  32402. } else {
  32403. v[mk] = false
  32404. }
  32405. continue
  32406. }
  32407. mv = dd.DecodeBool()
  32408. if v != nil {
  32409. v[mk] = mv
  32410. }
  32411. }
  32412. if cr != nil {
  32413. cr.sendContainerState(containerMapEnd)
  32414. }
  32415. return v, changed
  32416. }