另客网go项目公用的代码库

fast-path.generated.go 808KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073
  1. // +build !notfastpath
  2. // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // Code generated from fast-path.go.tmpl - DO NOT EDIT.
  5. package codec
  6. // Fast path functions try to create a fast path encode or decode implementation
  7. // for common maps and slices.
  8. //
  9. // We define the functions and register then in this single file
  10. // so as not to pollute the encode.go and decode.go, and create a dependency in there.
  11. // This file can be omitted without causing a build failure.
  12. //
  13. // The advantage of fast paths is:
  14. // - Many calls bypass reflection altogether
  15. //
  16. // Currently support
  17. // - slice of all builtin types,
  18. // - map of all builtin types to string or interface value
  19. // - symmetrical maps of all builtin types (e.g. str-str, uint8-uint8)
  20. // This should provide adequate "typical" implementations.
  21. //
  22. // Note that fast track decode functions must handle values for which an address cannot be obtained.
  23. // For example:
  24. // m2 := map[string]int{}
  25. // p2 := []interface{}{m2}
  26. // // decoding into p2 will bomb if fast track functions do not treat like unaddressable.
  27. //
  28. import (
  29. "reflect"
  30. "sort"
  31. )
  32. const fastpathEnabled = true
  33. const fastpathMapBySliceErrMsg = "mapBySlice requires even slice length, but got %v"
  34. type fastpathT struct{}
  35. var fastpathTV fastpathT
  36. type fastpathE struct {
  37. rtid uintptr
  38. rt reflect.Type
  39. encfn func(*Encoder, *codecFnInfo, reflect.Value)
  40. decfn func(*Decoder, *codecFnInfo, reflect.Value)
  41. }
  42. type fastpathA [271]fastpathE
  43. func (x *fastpathA) index(rtid uintptr) int {
  44. // use binary search to grab the index (adapted from sort/search.go)
  45. // Note: we use goto (instead of for loop) so this can be inlined.
  46. // h, i, j := 0, 0, len(x)
  47. var h, i uint
  48. var j = uint(len(x))
  49. LOOP:
  50. if i < j {
  51. h = i + (j-i)/2
  52. if x[h].rtid < rtid {
  53. i = h + 1
  54. } else {
  55. j = h
  56. }
  57. goto LOOP
  58. }
  59. if i < uint(len(x)) && x[i].rtid == rtid {
  60. return int(i)
  61. }
  62. return -1
  63. }
  64. type fastpathAslice []fastpathE
  65. func (x fastpathAslice) Len() int { return len(x) }
  66. func (x fastpathAslice) Less(i, j int) bool { return x[uint(i)].rtid < x[uint(j)].rtid }
  67. func (x fastpathAslice) Swap(i, j int) { x[uint(i)], x[uint(j)] = x[uint(j)], x[uint(i)] }
  68. var fastpathAV fastpathA
  69. // due to possible initialization loop error, make fastpath in an init()
  70. func init() {
  71. var i uint = 0
  72. fn := func(v interface{},
  73. fe func(*Encoder, *codecFnInfo, reflect.Value),
  74. fd func(*Decoder, *codecFnInfo, reflect.Value)) {
  75. xrt := reflect.TypeOf(v)
  76. xptr := rt2id(xrt)
  77. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  78. i++
  79. }
  80. fn([]interface{}(nil), (*Encoder).fastpathEncSliceIntfR, (*Decoder).fastpathDecSliceIntfR)
  81. fn([]string(nil), (*Encoder).fastpathEncSliceStringR, (*Decoder).fastpathDecSliceStringR)
  82. fn([]float32(nil), (*Encoder).fastpathEncSliceFloat32R, (*Decoder).fastpathDecSliceFloat32R)
  83. fn([]float64(nil), (*Encoder).fastpathEncSliceFloat64R, (*Decoder).fastpathDecSliceFloat64R)
  84. fn([]uint(nil), (*Encoder).fastpathEncSliceUintR, (*Decoder).fastpathDecSliceUintR)
  85. fn([]uint16(nil), (*Encoder).fastpathEncSliceUint16R, (*Decoder).fastpathDecSliceUint16R)
  86. fn([]uint32(nil), (*Encoder).fastpathEncSliceUint32R, (*Decoder).fastpathDecSliceUint32R)
  87. fn([]uint64(nil), (*Encoder).fastpathEncSliceUint64R, (*Decoder).fastpathDecSliceUint64R)
  88. fn([]uintptr(nil), (*Encoder).fastpathEncSliceUintptrR, (*Decoder).fastpathDecSliceUintptrR)
  89. fn([]int(nil), (*Encoder).fastpathEncSliceIntR, (*Decoder).fastpathDecSliceIntR)
  90. fn([]int8(nil), (*Encoder).fastpathEncSliceInt8R, (*Decoder).fastpathDecSliceInt8R)
  91. fn([]int16(nil), (*Encoder).fastpathEncSliceInt16R, (*Decoder).fastpathDecSliceInt16R)
  92. fn([]int32(nil), (*Encoder).fastpathEncSliceInt32R, (*Decoder).fastpathDecSliceInt32R)
  93. fn([]int64(nil), (*Encoder).fastpathEncSliceInt64R, (*Decoder).fastpathDecSliceInt64R)
  94. fn([]bool(nil), (*Encoder).fastpathEncSliceBoolR, (*Decoder).fastpathDecSliceBoolR)
  95. fn(map[interface{}]interface{}(nil), (*Encoder).fastpathEncMapIntfIntfR, (*Decoder).fastpathDecMapIntfIntfR)
  96. fn(map[interface{}]string(nil), (*Encoder).fastpathEncMapIntfStringR, (*Decoder).fastpathDecMapIntfStringR)
  97. fn(map[interface{}]uint(nil), (*Encoder).fastpathEncMapIntfUintR, (*Decoder).fastpathDecMapIntfUintR)
  98. fn(map[interface{}]uint8(nil), (*Encoder).fastpathEncMapIntfUint8R, (*Decoder).fastpathDecMapIntfUint8R)
  99. fn(map[interface{}]uint16(nil), (*Encoder).fastpathEncMapIntfUint16R, (*Decoder).fastpathDecMapIntfUint16R)
  100. fn(map[interface{}]uint32(nil), (*Encoder).fastpathEncMapIntfUint32R, (*Decoder).fastpathDecMapIntfUint32R)
  101. fn(map[interface{}]uint64(nil), (*Encoder).fastpathEncMapIntfUint64R, (*Decoder).fastpathDecMapIntfUint64R)
  102. fn(map[interface{}]uintptr(nil), (*Encoder).fastpathEncMapIntfUintptrR, (*Decoder).fastpathDecMapIntfUintptrR)
  103. fn(map[interface{}]int(nil), (*Encoder).fastpathEncMapIntfIntR, (*Decoder).fastpathDecMapIntfIntR)
  104. fn(map[interface{}]int8(nil), (*Encoder).fastpathEncMapIntfInt8R, (*Decoder).fastpathDecMapIntfInt8R)
  105. fn(map[interface{}]int16(nil), (*Encoder).fastpathEncMapIntfInt16R, (*Decoder).fastpathDecMapIntfInt16R)
  106. fn(map[interface{}]int32(nil), (*Encoder).fastpathEncMapIntfInt32R, (*Decoder).fastpathDecMapIntfInt32R)
  107. fn(map[interface{}]int64(nil), (*Encoder).fastpathEncMapIntfInt64R, (*Decoder).fastpathDecMapIntfInt64R)
  108. fn(map[interface{}]float32(nil), (*Encoder).fastpathEncMapIntfFloat32R, (*Decoder).fastpathDecMapIntfFloat32R)
  109. fn(map[interface{}]float64(nil), (*Encoder).fastpathEncMapIntfFloat64R, (*Decoder).fastpathDecMapIntfFloat64R)
  110. fn(map[interface{}]bool(nil), (*Encoder).fastpathEncMapIntfBoolR, (*Decoder).fastpathDecMapIntfBoolR)
  111. fn(map[string]interface{}(nil), (*Encoder).fastpathEncMapStringIntfR, (*Decoder).fastpathDecMapStringIntfR)
  112. fn(map[string]string(nil), (*Encoder).fastpathEncMapStringStringR, (*Decoder).fastpathDecMapStringStringR)
  113. fn(map[string]uint(nil), (*Encoder).fastpathEncMapStringUintR, (*Decoder).fastpathDecMapStringUintR)
  114. fn(map[string]uint8(nil), (*Encoder).fastpathEncMapStringUint8R, (*Decoder).fastpathDecMapStringUint8R)
  115. fn(map[string]uint16(nil), (*Encoder).fastpathEncMapStringUint16R, (*Decoder).fastpathDecMapStringUint16R)
  116. fn(map[string]uint32(nil), (*Encoder).fastpathEncMapStringUint32R, (*Decoder).fastpathDecMapStringUint32R)
  117. fn(map[string]uint64(nil), (*Encoder).fastpathEncMapStringUint64R, (*Decoder).fastpathDecMapStringUint64R)
  118. fn(map[string]uintptr(nil), (*Encoder).fastpathEncMapStringUintptrR, (*Decoder).fastpathDecMapStringUintptrR)
  119. fn(map[string]int(nil), (*Encoder).fastpathEncMapStringIntR, (*Decoder).fastpathDecMapStringIntR)
  120. fn(map[string]int8(nil), (*Encoder).fastpathEncMapStringInt8R, (*Decoder).fastpathDecMapStringInt8R)
  121. fn(map[string]int16(nil), (*Encoder).fastpathEncMapStringInt16R, (*Decoder).fastpathDecMapStringInt16R)
  122. fn(map[string]int32(nil), (*Encoder).fastpathEncMapStringInt32R, (*Decoder).fastpathDecMapStringInt32R)
  123. fn(map[string]int64(nil), (*Encoder).fastpathEncMapStringInt64R, (*Decoder).fastpathDecMapStringInt64R)
  124. fn(map[string]float32(nil), (*Encoder).fastpathEncMapStringFloat32R, (*Decoder).fastpathDecMapStringFloat32R)
  125. fn(map[string]float64(nil), (*Encoder).fastpathEncMapStringFloat64R, (*Decoder).fastpathDecMapStringFloat64R)
  126. fn(map[string]bool(nil), (*Encoder).fastpathEncMapStringBoolR, (*Decoder).fastpathDecMapStringBoolR)
  127. fn(map[float32]interface{}(nil), (*Encoder).fastpathEncMapFloat32IntfR, (*Decoder).fastpathDecMapFloat32IntfR)
  128. fn(map[float32]string(nil), (*Encoder).fastpathEncMapFloat32StringR, (*Decoder).fastpathDecMapFloat32StringR)
  129. fn(map[float32]uint(nil), (*Encoder).fastpathEncMapFloat32UintR, (*Decoder).fastpathDecMapFloat32UintR)
  130. fn(map[float32]uint8(nil), (*Encoder).fastpathEncMapFloat32Uint8R, (*Decoder).fastpathDecMapFloat32Uint8R)
  131. fn(map[float32]uint16(nil), (*Encoder).fastpathEncMapFloat32Uint16R, (*Decoder).fastpathDecMapFloat32Uint16R)
  132. fn(map[float32]uint32(nil), (*Encoder).fastpathEncMapFloat32Uint32R, (*Decoder).fastpathDecMapFloat32Uint32R)
  133. fn(map[float32]uint64(nil), (*Encoder).fastpathEncMapFloat32Uint64R, (*Decoder).fastpathDecMapFloat32Uint64R)
  134. fn(map[float32]uintptr(nil), (*Encoder).fastpathEncMapFloat32UintptrR, (*Decoder).fastpathDecMapFloat32UintptrR)
  135. fn(map[float32]int(nil), (*Encoder).fastpathEncMapFloat32IntR, (*Decoder).fastpathDecMapFloat32IntR)
  136. fn(map[float32]int8(nil), (*Encoder).fastpathEncMapFloat32Int8R, (*Decoder).fastpathDecMapFloat32Int8R)
  137. fn(map[float32]int16(nil), (*Encoder).fastpathEncMapFloat32Int16R, (*Decoder).fastpathDecMapFloat32Int16R)
  138. fn(map[float32]int32(nil), (*Encoder).fastpathEncMapFloat32Int32R, (*Decoder).fastpathDecMapFloat32Int32R)
  139. fn(map[float32]int64(nil), (*Encoder).fastpathEncMapFloat32Int64R, (*Decoder).fastpathDecMapFloat32Int64R)
  140. fn(map[float32]float32(nil), (*Encoder).fastpathEncMapFloat32Float32R, (*Decoder).fastpathDecMapFloat32Float32R)
  141. fn(map[float32]float64(nil), (*Encoder).fastpathEncMapFloat32Float64R, (*Decoder).fastpathDecMapFloat32Float64R)
  142. fn(map[float32]bool(nil), (*Encoder).fastpathEncMapFloat32BoolR, (*Decoder).fastpathDecMapFloat32BoolR)
  143. fn(map[float64]interface{}(nil), (*Encoder).fastpathEncMapFloat64IntfR, (*Decoder).fastpathDecMapFloat64IntfR)
  144. fn(map[float64]string(nil), (*Encoder).fastpathEncMapFloat64StringR, (*Decoder).fastpathDecMapFloat64StringR)
  145. fn(map[float64]uint(nil), (*Encoder).fastpathEncMapFloat64UintR, (*Decoder).fastpathDecMapFloat64UintR)
  146. fn(map[float64]uint8(nil), (*Encoder).fastpathEncMapFloat64Uint8R, (*Decoder).fastpathDecMapFloat64Uint8R)
  147. fn(map[float64]uint16(nil), (*Encoder).fastpathEncMapFloat64Uint16R, (*Decoder).fastpathDecMapFloat64Uint16R)
  148. fn(map[float64]uint32(nil), (*Encoder).fastpathEncMapFloat64Uint32R, (*Decoder).fastpathDecMapFloat64Uint32R)
  149. fn(map[float64]uint64(nil), (*Encoder).fastpathEncMapFloat64Uint64R, (*Decoder).fastpathDecMapFloat64Uint64R)
  150. fn(map[float64]uintptr(nil), (*Encoder).fastpathEncMapFloat64UintptrR, (*Decoder).fastpathDecMapFloat64UintptrR)
  151. fn(map[float64]int(nil), (*Encoder).fastpathEncMapFloat64IntR, (*Decoder).fastpathDecMapFloat64IntR)
  152. fn(map[float64]int8(nil), (*Encoder).fastpathEncMapFloat64Int8R, (*Decoder).fastpathDecMapFloat64Int8R)
  153. fn(map[float64]int16(nil), (*Encoder).fastpathEncMapFloat64Int16R, (*Decoder).fastpathDecMapFloat64Int16R)
  154. fn(map[float64]int32(nil), (*Encoder).fastpathEncMapFloat64Int32R, (*Decoder).fastpathDecMapFloat64Int32R)
  155. fn(map[float64]int64(nil), (*Encoder).fastpathEncMapFloat64Int64R, (*Decoder).fastpathDecMapFloat64Int64R)
  156. fn(map[float64]float32(nil), (*Encoder).fastpathEncMapFloat64Float32R, (*Decoder).fastpathDecMapFloat64Float32R)
  157. fn(map[float64]float64(nil), (*Encoder).fastpathEncMapFloat64Float64R, (*Decoder).fastpathDecMapFloat64Float64R)
  158. fn(map[float64]bool(nil), (*Encoder).fastpathEncMapFloat64BoolR, (*Decoder).fastpathDecMapFloat64BoolR)
  159. fn(map[uint]interface{}(nil), (*Encoder).fastpathEncMapUintIntfR, (*Decoder).fastpathDecMapUintIntfR)
  160. fn(map[uint]string(nil), (*Encoder).fastpathEncMapUintStringR, (*Decoder).fastpathDecMapUintStringR)
  161. fn(map[uint]uint(nil), (*Encoder).fastpathEncMapUintUintR, (*Decoder).fastpathDecMapUintUintR)
  162. fn(map[uint]uint8(nil), (*Encoder).fastpathEncMapUintUint8R, (*Decoder).fastpathDecMapUintUint8R)
  163. fn(map[uint]uint16(nil), (*Encoder).fastpathEncMapUintUint16R, (*Decoder).fastpathDecMapUintUint16R)
  164. fn(map[uint]uint32(nil), (*Encoder).fastpathEncMapUintUint32R, (*Decoder).fastpathDecMapUintUint32R)
  165. fn(map[uint]uint64(nil), (*Encoder).fastpathEncMapUintUint64R, (*Decoder).fastpathDecMapUintUint64R)
  166. fn(map[uint]uintptr(nil), (*Encoder).fastpathEncMapUintUintptrR, (*Decoder).fastpathDecMapUintUintptrR)
  167. fn(map[uint]int(nil), (*Encoder).fastpathEncMapUintIntR, (*Decoder).fastpathDecMapUintIntR)
  168. fn(map[uint]int8(nil), (*Encoder).fastpathEncMapUintInt8R, (*Decoder).fastpathDecMapUintInt8R)
  169. fn(map[uint]int16(nil), (*Encoder).fastpathEncMapUintInt16R, (*Decoder).fastpathDecMapUintInt16R)
  170. fn(map[uint]int32(nil), (*Encoder).fastpathEncMapUintInt32R, (*Decoder).fastpathDecMapUintInt32R)
  171. fn(map[uint]int64(nil), (*Encoder).fastpathEncMapUintInt64R, (*Decoder).fastpathDecMapUintInt64R)
  172. fn(map[uint]float32(nil), (*Encoder).fastpathEncMapUintFloat32R, (*Decoder).fastpathDecMapUintFloat32R)
  173. fn(map[uint]float64(nil), (*Encoder).fastpathEncMapUintFloat64R, (*Decoder).fastpathDecMapUintFloat64R)
  174. fn(map[uint]bool(nil), (*Encoder).fastpathEncMapUintBoolR, (*Decoder).fastpathDecMapUintBoolR)
  175. fn(map[uint8]interface{}(nil), (*Encoder).fastpathEncMapUint8IntfR, (*Decoder).fastpathDecMapUint8IntfR)
  176. fn(map[uint8]string(nil), (*Encoder).fastpathEncMapUint8StringR, (*Decoder).fastpathDecMapUint8StringR)
  177. fn(map[uint8]uint(nil), (*Encoder).fastpathEncMapUint8UintR, (*Decoder).fastpathDecMapUint8UintR)
  178. fn(map[uint8]uint8(nil), (*Encoder).fastpathEncMapUint8Uint8R, (*Decoder).fastpathDecMapUint8Uint8R)
  179. fn(map[uint8]uint16(nil), (*Encoder).fastpathEncMapUint8Uint16R, (*Decoder).fastpathDecMapUint8Uint16R)
  180. fn(map[uint8]uint32(nil), (*Encoder).fastpathEncMapUint8Uint32R, (*Decoder).fastpathDecMapUint8Uint32R)
  181. fn(map[uint8]uint64(nil), (*Encoder).fastpathEncMapUint8Uint64R, (*Decoder).fastpathDecMapUint8Uint64R)
  182. fn(map[uint8]uintptr(nil), (*Encoder).fastpathEncMapUint8UintptrR, (*Decoder).fastpathDecMapUint8UintptrR)
  183. fn(map[uint8]int(nil), (*Encoder).fastpathEncMapUint8IntR, (*Decoder).fastpathDecMapUint8IntR)
  184. fn(map[uint8]int8(nil), (*Encoder).fastpathEncMapUint8Int8R, (*Decoder).fastpathDecMapUint8Int8R)
  185. fn(map[uint8]int16(nil), (*Encoder).fastpathEncMapUint8Int16R, (*Decoder).fastpathDecMapUint8Int16R)
  186. fn(map[uint8]int32(nil), (*Encoder).fastpathEncMapUint8Int32R, (*Decoder).fastpathDecMapUint8Int32R)
  187. fn(map[uint8]int64(nil), (*Encoder).fastpathEncMapUint8Int64R, (*Decoder).fastpathDecMapUint8Int64R)
  188. fn(map[uint8]float32(nil), (*Encoder).fastpathEncMapUint8Float32R, (*Decoder).fastpathDecMapUint8Float32R)
  189. fn(map[uint8]float64(nil), (*Encoder).fastpathEncMapUint8Float64R, (*Decoder).fastpathDecMapUint8Float64R)
  190. fn(map[uint8]bool(nil), (*Encoder).fastpathEncMapUint8BoolR, (*Decoder).fastpathDecMapUint8BoolR)
  191. fn(map[uint16]interface{}(nil), (*Encoder).fastpathEncMapUint16IntfR, (*Decoder).fastpathDecMapUint16IntfR)
  192. fn(map[uint16]string(nil), (*Encoder).fastpathEncMapUint16StringR, (*Decoder).fastpathDecMapUint16StringR)
  193. fn(map[uint16]uint(nil), (*Encoder).fastpathEncMapUint16UintR, (*Decoder).fastpathDecMapUint16UintR)
  194. fn(map[uint16]uint8(nil), (*Encoder).fastpathEncMapUint16Uint8R, (*Decoder).fastpathDecMapUint16Uint8R)
  195. fn(map[uint16]uint16(nil), (*Encoder).fastpathEncMapUint16Uint16R, (*Decoder).fastpathDecMapUint16Uint16R)
  196. fn(map[uint16]uint32(nil), (*Encoder).fastpathEncMapUint16Uint32R, (*Decoder).fastpathDecMapUint16Uint32R)
  197. fn(map[uint16]uint64(nil), (*Encoder).fastpathEncMapUint16Uint64R, (*Decoder).fastpathDecMapUint16Uint64R)
  198. fn(map[uint16]uintptr(nil), (*Encoder).fastpathEncMapUint16UintptrR, (*Decoder).fastpathDecMapUint16UintptrR)
  199. fn(map[uint16]int(nil), (*Encoder).fastpathEncMapUint16IntR, (*Decoder).fastpathDecMapUint16IntR)
  200. fn(map[uint16]int8(nil), (*Encoder).fastpathEncMapUint16Int8R, (*Decoder).fastpathDecMapUint16Int8R)
  201. fn(map[uint16]int16(nil), (*Encoder).fastpathEncMapUint16Int16R, (*Decoder).fastpathDecMapUint16Int16R)
  202. fn(map[uint16]int32(nil), (*Encoder).fastpathEncMapUint16Int32R, (*Decoder).fastpathDecMapUint16Int32R)
  203. fn(map[uint16]int64(nil), (*Encoder).fastpathEncMapUint16Int64R, (*Decoder).fastpathDecMapUint16Int64R)
  204. fn(map[uint16]float32(nil), (*Encoder).fastpathEncMapUint16Float32R, (*Decoder).fastpathDecMapUint16Float32R)
  205. fn(map[uint16]float64(nil), (*Encoder).fastpathEncMapUint16Float64R, (*Decoder).fastpathDecMapUint16Float64R)
  206. fn(map[uint16]bool(nil), (*Encoder).fastpathEncMapUint16BoolR, (*Decoder).fastpathDecMapUint16BoolR)
  207. fn(map[uint32]interface{}(nil), (*Encoder).fastpathEncMapUint32IntfR, (*Decoder).fastpathDecMapUint32IntfR)
  208. fn(map[uint32]string(nil), (*Encoder).fastpathEncMapUint32StringR, (*Decoder).fastpathDecMapUint32StringR)
  209. fn(map[uint32]uint(nil), (*Encoder).fastpathEncMapUint32UintR, (*Decoder).fastpathDecMapUint32UintR)
  210. fn(map[uint32]uint8(nil), (*Encoder).fastpathEncMapUint32Uint8R, (*Decoder).fastpathDecMapUint32Uint8R)
  211. fn(map[uint32]uint16(nil), (*Encoder).fastpathEncMapUint32Uint16R, (*Decoder).fastpathDecMapUint32Uint16R)
  212. fn(map[uint32]uint32(nil), (*Encoder).fastpathEncMapUint32Uint32R, (*Decoder).fastpathDecMapUint32Uint32R)
  213. fn(map[uint32]uint64(nil), (*Encoder).fastpathEncMapUint32Uint64R, (*Decoder).fastpathDecMapUint32Uint64R)
  214. fn(map[uint32]uintptr(nil), (*Encoder).fastpathEncMapUint32UintptrR, (*Decoder).fastpathDecMapUint32UintptrR)
  215. fn(map[uint32]int(nil), (*Encoder).fastpathEncMapUint32IntR, (*Decoder).fastpathDecMapUint32IntR)
  216. fn(map[uint32]int8(nil), (*Encoder).fastpathEncMapUint32Int8R, (*Decoder).fastpathDecMapUint32Int8R)
  217. fn(map[uint32]int16(nil), (*Encoder).fastpathEncMapUint32Int16R, (*Decoder).fastpathDecMapUint32Int16R)
  218. fn(map[uint32]int32(nil), (*Encoder).fastpathEncMapUint32Int32R, (*Decoder).fastpathDecMapUint32Int32R)
  219. fn(map[uint32]int64(nil), (*Encoder).fastpathEncMapUint32Int64R, (*Decoder).fastpathDecMapUint32Int64R)
  220. fn(map[uint32]float32(nil), (*Encoder).fastpathEncMapUint32Float32R, (*Decoder).fastpathDecMapUint32Float32R)
  221. fn(map[uint32]float64(nil), (*Encoder).fastpathEncMapUint32Float64R, (*Decoder).fastpathDecMapUint32Float64R)
  222. fn(map[uint32]bool(nil), (*Encoder).fastpathEncMapUint32BoolR, (*Decoder).fastpathDecMapUint32BoolR)
  223. fn(map[uint64]interface{}(nil), (*Encoder).fastpathEncMapUint64IntfR, (*Decoder).fastpathDecMapUint64IntfR)
  224. fn(map[uint64]string(nil), (*Encoder).fastpathEncMapUint64StringR, (*Decoder).fastpathDecMapUint64StringR)
  225. fn(map[uint64]uint(nil), (*Encoder).fastpathEncMapUint64UintR, (*Decoder).fastpathDecMapUint64UintR)
  226. fn(map[uint64]uint8(nil), (*Encoder).fastpathEncMapUint64Uint8R, (*Decoder).fastpathDecMapUint64Uint8R)
  227. fn(map[uint64]uint16(nil), (*Encoder).fastpathEncMapUint64Uint16R, (*Decoder).fastpathDecMapUint64Uint16R)
  228. fn(map[uint64]uint32(nil), (*Encoder).fastpathEncMapUint64Uint32R, (*Decoder).fastpathDecMapUint64Uint32R)
  229. fn(map[uint64]uint64(nil), (*Encoder).fastpathEncMapUint64Uint64R, (*Decoder).fastpathDecMapUint64Uint64R)
  230. fn(map[uint64]uintptr(nil), (*Encoder).fastpathEncMapUint64UintptrR, (*Decoder).fastpathDecMapUint64UintptrR)
  231. fn(map[uint64]int(nil), (*Encoder).fastpathEncMapUint64IntR, (*Decoder).fastpathDecMapUint64IntR)
  232. fn(map[uint64]int8(nil), (*Encoder).fastpathEncMapUint64Int8R, (*Decoder).fastpathDecMapUint64Int8R)
  233. fn(map[uint64]int16(nil), (*Encoder).fastpathEncMapUint64Int16R, (*Decoder).fastpathDecMapUint64Int16R)
  234. fn(map[uint64]int32(nil), (*Encoder).fastpathEncMapUint64Int32R, (*Decoder).fastpathDecMapUint64Int32R)
  235. fn(map[uint64]int64(nil), (*Encoder).fastpathEncMapUint64Int64R, (*Decoder).fastpathDecMapUint64Int64R)
  236. fn(map[uint64]float32(nil), (*Encoder).fastpathEncMapUint64Float32R, (*Decoder).fastpathDecMapUint64Float32R)
  237. fn(map[uint64]float64(nil), (*Encoder).fastpathEncMapUint64Float64R, (*Decoder).fastpathDecMapUint64Float64R)
  238. fn(map[uint64]bool(nil), (*Encoder).fastpathEncMapUint64BoolR, (*Decoder).fastpathDecMapUint64BoolR)
  239. fn(map[uintptr]interface{}(nil), (*Encoder).fastpathEncMapUintptrIntfR, (*Decoder).fastpathDecMapUintptrIntfR)
  240. fn(map[uintptr]string(nil), (*Encoder).fastpathEncMapUintptrStringR, (*Decoder).fastpathDecMapUintptrStringR)
  241. fn(map[uintptr]uint(nil), (*Encoder).fastpathEncMapUintptrUintR, (*Decoder).fastpathDecMapUintptrUintR)
  242. fn(map[uintptr]uint8(nil), (*Encoder).fastpathEncMapUintptrUint8R, (*Decoder).fastpathDecMapUintptrUint8R)
  243. fn(map[uintptr]uint16(nil), (*Encoder).fastpathEncMapUintptrUint16R, (*Decoder).fastpathDecMapUintptrUint16R)
  244. fn(map[uintptr]uint32(nil), (*Encoder).fastpathEncMapUintptrUint32R, (*Decoder).fastpathDecMapUintptrUint32R)
  245. fn(map[uintptr]uint64(nil), (*Encoder).fastpathEncMapUintptrUint64R, (*Decoder).fastpathDecMapUintptrUint64R)
  246. fn(map[uintptr]uintptr(nil), (*Encoder).fastpathEncMapUintptrUintptrR, (*Decoder).fastpathDecMapUintptrUintptrR)
  247. fn(map[uintptr]int(nil), (*Encoder).fastpathEncMapUintptrIntR, (*Decoder).fastpathDecMapUintptrIntR)
  248. fn(map[uintptr]int8(nil), (*Encoder).fastpathEncMapUintptrInt8R, (*Decoder).fastpathDecMapUintptrInt8R)
  249. fn(map[uintptr]int16(nil), (*Encoder).fastpathEncMapUintptrInt16R, (*Decoder).fastpathDecMapUintptrInt16R)
  250. fn(map[uintptr]int32(nil), (*Encoder).fastpathEncMapUintptrInt32R, (*Decoder).fastpathDecMapUintptrInt32R)
  251. fn(map[uintptr]int64(nil), (*Encoder).fastpathEncMapUintptrInt64R, (*Decoder).fastpathDecMapUintptrInt64R)
  252. fn(map[uintptr]float32(nil), (*Encoder).fastpathEncMapUintptrFloat32R, (*Decoder).fastpathDecMapUintptrFloat32R)
  253. fn(map[uintptr]float64(nil), (*Encoder).fastpathEncMapUintptrFloat64R, (*Decoder).fastpathDecMapUintptrFloat64R)
  254. fn(map[uintptr]bool(nil), (*Encoder).fastpathEncMapUintptrBoolR, (*Decoder).fastpathDecMapUintptrBoolR)
  255. fn(map[int]interface{}(nil), (*Encoder).fastpathEncMapIntIntfR, (*Decoder).fastpathDecMapIntIntfR)
  256. fn(map[int]string(nil), (*Encoder).fastpathEncMapIntStringR, (*Decoder).fastpathDecMapIntStringR)
  257. fn(map[int]uint(nil), (*Encoder).fastpathEncMapIntUintR, (*Decoder).fastpathDecMapIntUintR)
  258. fn(map[int]uint8(nil), (*Encoder).fastpathEncMapIntUint8R, (*Decoder).fastpathDecMapIntUint8R)
  259. fn(map[int]uint16(nil), (*Encoder).fastpathEncMapIntUint16R, (*Decoder).fastpathDecMapIntUint16R)
  260. fn(map[int]uint32(nil), (*Encoder).fastpathEncMapIntUint32R, (*Decoder).fastpathDecMapIntUint32R)
  261. fn(map[int]uint64(nil), (*Encoder).fastpathEncMapIntUint64R, (*Decoder).fastpathDecMapIntUint64R)
  262. fn(map[int]uintptr(nil), (*Encoder).fastpathEncMapIntUintptrR, (*Decoder).fastpathDecMapIntUintptrR)
  263. fn(map[int]int(nil), (*Encoder).fastpathEncMapIntIntR, (*Decoder).fastpathDecMapIntIntR)
  264. fn(map[int]int8(nil), (*Encoder).fastpathEncMapIntInt8R, (*Decoder).fastpathDecMapIntInt8R)
  265. fn(map[int]int16(nil), (*Encoder).fastpathEncMapIntInt16R, (*Decoder).fastpathDecMapIntInt16R)
  266. fn(map[int]int32(nil), (*Encoder).fastpathEncMapIntInt32R, (*Decoder).fastpathDecMapIntInt32R)
  267. fn(map[int]int64(nil), (*Encoder).fastpathEncMapIntInt64R, (*Decoder).fastpathDecMapIntInt64R)
  268. fn(map[int]float32(nil), (*Encoder).fastpathEncMapIntFloat32R, (*Decoder).fastpathDecMapIntFloat32R)
  269. fn(map[int]float64(nil), (*Encoder).fastpathEncMapIntFloat64R, (*Decoder).fastpathDecMapIntFloat64R)
  270. fn(map[int]bool(nil), (*Encoder).fastpathEncMapIntBoolR, (*Decoder).fastpathDecMapIntBoolR)
  271. fn(map[int8]interface{}(nil), (*Encoder).fastpathEncMapInt8IntfR, (*Decoder).fastpathDecMapInt8IntfR)
  272. fn(map[int8]string(nil), (*Encoder).fastpathEncMapInt8StringR, (*Decoder).fastpathDecMapInt8StringR)
  273. fn(map[int8]uint(nil), (*Encoder).fastpathEncMapInt8UintR, (*Decoder).fastpathDecMapInt8UintR)
  274. fn(map[int8]uint8(nil), (*Encoder).fastpathEncMapInt8Uint8R, (*Decoder).fastpathDecMapInt8Uint8R)
  275. fn(map[int8]uint16(nil), (*Encoder).fastpathEncMapInt8Uint16R, (*Decoder).fastpathDecMapInt8Uint16R)
  276. fn(map[int8]uint32(nil), (*Encoder).fastpathEncMapInt8Uint32R, (*Decoder).fastpathDecMapInt8Uint32R)
  277. fn(map[int8]uint64(nil), (*Encoder).fastpathEncMapInt8Uint64R, (*Decoder).fastpathDecMapInt8Uint64R)
  278. fn(map[int8]uintptr(nil), (*Encoder).fastpathEncMapInt8UintptrR, (*Decoder).fastpathDecMapInt8UintptrR)
  279. fn(map[int8]int(nil), (*Encoder).fastpathEncMapInt8IntR, (*Decoder).fastpathDecMapInt8IntR)
  280. fn(map[int8]int8(nil), (*Encoder).fastpathEncMapInt8Int8R, (*Decoder).fastpathDecMapInt8Int8R)
  281. fn(map[int8]int16(nil), (*Encoder).fastpathEncMapInt8Int16R, (*Decoder).fastpathDecMapInt8Int16R)
  282. fn(map[int8]int32(nil), (*Encoder).fastpathEncMapInt8Int32R, (*Decoder).fastpathDecMapInt8Int32R)
  283. fn(map[int8]int64(nil), (*Encoder).fastpathEncMapInt8Int64R, (*Decoder).fastpathDecMapInt8Int64R)
  284. fn(map[int8]float32(nil), (*Encoder).fastpathEncMapInt8Float32R, (*Decoder).fastpathDecMapInt8Float32R)
  285. fn(map[int8]float64(nil), (*Encoder).fastpathEncMapInt8Float64R, (*Decoder).fastpathDecMapInt8Float64R)
  286. fn(map[int8]bool(nil), (*Encoder).fastpathEncMapInt8BoolR, (*Decoder).fastpathDecMapInt8BoolR)
  287. fn(map[int16]interface{}(nil), (*Encoder).fastpathEncMapInt16IntfR, (*Decoder).fastpathDecMapInt16IntfR)
  288. fn(map[int16]string(nil), (*Encoder).fastpathEncMapInt16StringR, (*Decoder).fastpathDecMapInt16StringR)
  289. fn(map[int16]uint(nil), (*Encoder).fastpathEncMapInt16UintR, (*Decoder).fastpathDecMapInt16UintR)
  290. fn(map[int16]uint8(nil), (*Encoder).fastpathEncMapInt16Uint8R, (*Decoder).fastpathDecMapInt16Uint8R)
  291. fn(map[int16]uint16(nil), (*Encoder).fastpathEncMapInt16Uint16R, (*Decoder).fastpathDecMapInt16Uint16R)
  292. fn(map[int16]uint32(nil), (*Encoder).fastpathEncMapInt16Uint32R, (*Decoder).fastpathDecMapInt16Uint32R)
  293. fn(map[int16]uint64(nil), (*Encoder).fastpathEncMapInt16Uint64R, (*Decoder).fastpathDecMapInt16Uint64R)
  294. fn(map[int16]uintptr(nil), (*Encoder).fastpathEncMapInt16UintptrR, (*Decoder).fastpathDecMapInt16UintptrR)
  295. fn(map[int16]int(nil), (*Encoder).fastpathEncMapInt16IntR, (*Decoder).fastpathDecMapInt16IntR)
  296. fn(map[int16]int8(nil), (*Encoder).fastpathEncMapInt16Int8R, (*Decoder).fastpathDecMapInt16Int8R)
  297. fn(map[int16]int16(nil), (*Encoder).fastpathEncMapInt16Int16R, (*Decoder).fastpathDecMapInt16Int16R)
  298. fn(map[int16]int32(nil), (*Encoder).fastpathEncMapInt16Int32R, (*Decoder).fastpathDecMapInt16Int32R)
  299. fn(map[int16]int64(nil), (*Encoder).fastpathEncMapInt16Int64R, (*Decoder).fastpathDecMapInt16Int64R)
  300. fn(map[int16]float32(nil), (*Encoder).fastpathEncMapInt16Float32R, (*Decoder).fastpathDecMapInt16Float32R)
  301. fn(map[int16]float64(nil), (*Encoder).fastpathEncMapInt16Float64R, (*Decoder).fastpathDecMapInt16Float64R)
  302. fn(map[int16]bool(nil), (*Encoder).fastpathEncMapInt16BoolR, (*Decoder).fastpathDecMapInt16BoolR)
  303. fn(map[int32]interface{}(nil), (*Encoder).fastpathEncMapInt32IntfR, (*Decoder).fastpathDecMapInt32IntfR)
  304. fn(map[int32]string(nil), (*Encoder).fastpathEncMapInt32StringR, (*Decoder).fastpathDecMapInt32StringR)
  305. fn(map[int32]uint(nil), (*Encoder).fastpathEncMapInt32UintR, (*Decoder).fastpathDecMapInt32UintR)
  306. fn(map[int32]uint8(nil), (*Encoder).fastpathEncMapInt32Uint8R, (*Decoder).fastpathDecMapInt32Uint8R)
  307. fn(map[int32]uint16(nil), (*Encoder).fastpathEncMapInt32Uint16R, (*Decoder).fastpathDecMapInt32Uint16R)
  308. fn(map[int32]uint32(nil), (*Encoder).fastpathEncMapInt32Uint32R, (*Decoder).fastpathDecMapInt32Uint32R)
  309. fn(map[int32]uint64(nil), (*Encoder).fastpathEncMapInt32Uint64R, (*Decoder).fastpathDecMapInt32Uint64R)
  310. fn(map[int32]uintptr(nil), (*Encoder).fastpathEncMapInt32UintptrR, (*Decoder).fastpathDecMapInt32UintptrR)
  311. fn(map[int32]int(nil), (*Encoder).fastpathEncMapInt32IntR, (*Decoder).fastpathDecMapInt32IntR)
  312. fn(map[int32]int8(nil), (*Encoder).fastpathEncMapInt32Int8R, (*Decoder).fastpathDecMapInt32Int8R)
  313. fn(map[int32]int16(nil), (*Encoder).fastpathEncMapInt32Int16R, (*Decoder).fastpathDecMapInt32Int16R)
  314. fn(map[int32]int32(nil), (*Encoder).fastpathEncMapInt32Int32R, (*Decoder).fastpathDecMapInt32Int32R)
  315. fn(map[int32]int64(nil), (*Encoder).fastpathEncMapInt32Int64R, (*Decoder).fastpathDecMapInt32Int64R)
  316. fn(map[int32]float32(nil), (*Encoder).fastpathEncMapInt32Float32R, (*Decoder).fastpathDecMapInt32Float32R)
  317. fn(map[int32]float64(nil), (*Encoder).fastpathEncMapInt32Float64R, (*Decoder).fastpathDecMapInt32Float64R)
  318. fn(map[int32]bool(nil), (*Encoder).fastpathEncMapInt32BoolR, (*Decoder).fastpathDecMapInt32BoolR)
  319. fn(map[int64]interface{}(nil), (*Encoder).fastpathEncMapInt64IntfR, (*Decoder).fastpathDecMapInt64IntfR)
  320. fn(map[int64]string(nil), (*Encoder).fastpathEncMapInt64StringR, (*Decoder).fastpathDecMapInt64StringR)
  321. fn(map[int64]uint(nil), (*Encoder).fastpathEncMapInt64UintR, (*Decoder).fastpathDecMapInt64UintR)
  322. fn(map[int64]uint8(nil), (*Encoder).fastpathEncMapInt64Uint8R, (*Decoder).fastpathDecMapInt64Uint8R)
  323. fn(map[int64]uint16(nil), (*Encoder).fastpathEncMapInt64Uint16R, (*Decoder).fastpathDecMapInt64Uint16R)
  324. fn(map[int64]uint32(nil), (*Encoder).fastpathEncMapInt64Uint32R, (*Decoder).fastpathDecMapInt64Uint32R)
  325. fn(map[int64]uint64(nil), (*Encoder).fastpathEncMapInt64Uint64R, (*Decoder).fastpathDecMapInt64Uint64R)
  326. fn(map[int64]uintptr(nil), (*Encoder).fastpathEncMapInt64UintptrR, (*Decoder).fastpathDecMapInt64UintptrR)
  327. fn(map[int64]int(nil), (*Encoder).fastpathEncMapInt64IntR, (*Decoder).fastpathDecMapInt64IntR)
  328. fn(map[int64]int8(nil), (*Encoder).fastpathEncMapInt64Int8R, (*Decoder).fastpathDecMapInt64Int8R)
  329. fn(map[int64]int16(nil), (*Encoder).fastpathEncMapInt64Int16R, (*Decoder).fastpathDecMapInt64Int16R)
  330. fn(map[int64]int32(nil), (*Encoder).fastpathEncMapInt64Int32R, (*Decoder).fastpathDecMapInt64Int32R)
  331. fn(map[int64]int64(nil), (*Encoder).fastpathEncMapInt64Int64R, (*Decoder).fastpathDecMapInt64Int64R)
  332. fn(map[int64]float32(nil), (*Encoder).fastpathEncMapInt64Float32R, (*Decoder).fastpathDecMapInt64Float32R)
  333. fn(map[int64]float64(nil), (*Encoder).fastpathEncMapInt64Float64R, (*Decoder).fastpathDecMapInt64Float64R)
  334. fn(map[int64]bool(nil), (*Encoder).fastpathEncMapInt64BoolR, (*Decoder).fastpathDecMapInt64BoolR)
  335. fn(map[bool]interface{}(nil), (*Encoder).fastpathEncMapBoolIntfR, (*Decoder).fastpathDecMapBoolIntfR)
  336. fn(map[bool]string(nil), (*Encoder).fastpathEncMapBoolStringR, (*Decoder).fastpathDecMapBoolStringR)
  337. fn(map[bool]uint(nil), (*Encoder).fastpathEncMapBoolUintR, (*Decoder).fastpathDecMapBoolUintR)
  338. fn(map[bool]uint8(nil), (*Encoder).fastpathEncMapBoolUint8R, (*Decoder).fastpathDecMapBoolUint8R)
  339. fn(map[bool]uint16(nil), (*Encoder).fastpathEncMapBoolUint16R, (*Decoder).fastpathDecMapBoolUint16R)
  340. fn(map[bool]uint32(nil), (*Encoder).fastpathEncMapBoolUint32R, (*Decoder).fastpathDecMapBoolUint32R)
  341. fn(map[bool]uint64(nil), (*Encoder).fastpathEncMapBoolUint64R, (*Decoder).fastpathDecMapBoolUint64R)
  342. fn(map[bool]uintptr(nil), (*Encoder).fastpathEncMapBoolUintptrR, (*Decoder).fastpathDecMapBoolUintptrR)
  343. fn(map[bool]int(nil), (*Encoder).fastpathEncMapBoolIntR, (*Decoder).fastpathDecMapBoolIntR)
  344. fn(map[bool]int8(nil), (*Encoder).fastpathEncMapBoolInt8R, (*Decoder).fastpathDecMapBoolInt8R)
  345. fn(map[bool]int16(nil), (*Encoder).fastpathEncMapBoolInt16R, (*Decoder).fastpathDecMapBoolInt16R)
  346. fn(map[bool]int32(nil), (*Encoder).fastpathEncMapBoolInt32R, (*Decoder).fastpathDecMapBoolInt32R)
  347. fn(map[bool]int64(nil), (*Encoder).fastpathEncMapBoolInt64R, (*Decoder).fastpathDecMapBoolInt64R)
  348. fn(map[bool]float32(nil), (*Encoder).fastpathEncMapBoolFloat32R, (*Decoder).fastpathDecMapBoolFloat32R)
  349. fn(map[bool]float64(nil), (*Encoder).fastpathEncMapBoolFloat64R, (*Decoder).fastpathDecMapBoolFloat64R)
  350. fn(map[bool]bool(nil), (*Encoder).fastpathEncMapBoolBoolR, (*Decoder).fastpathDecMapBoolBoolR)
  351. sort.Sort(fastpathAslice(fastpathAV[:]))
  352. }
  353. // -- encode
  354. // -- -- fast path type switch
  355. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  356. switch v := iv.(type) {
  357. case []interface{}:
  358. fastpathTV.EncSliceIntfV(v, e)
  359. case *[]interface{}:
  360. fastpathTV.EncSliceIntfV(*v, e)
  361. case []string:
  362. fastpathTV.EncSliceStringV(v, e)
  363. case *[]string:
  364. fastpathTV.EncSliceStringV(*v, e)
  365. case []float32:
  366. fastpathTV.EncSliceFloat32V(v, e)
  367. case *[]float32:
  368. fastpathTV.EncSliceFloat32V(*v, e)
  369. case []float64:
  370. fastpathTV.EncSliceFloat64V(v, e)
  371. case *[]float64:
  372. fastpathTV.EncSliceFloat64V(*v, e)
  373. case []uint:
  374. fastpathTV.EncSliceUintV(v, e)
  375. case *[]uint:
  376. fastpathTV.EncSliceUintV(*v, e)
  377. case []uint16:
  378. fastpathTV.EncSliceUint16V(v, e)
  379. case *[]uint16:
  380. fastpathTV.EncSliceUint16V(*v, e)
  381. case []uint32:
  382. fastpathTV.EncSliceUint32V(v, e)
  383. case *[]uint32:
  384. fastpathTV.EncSliceUint32V(*v, e)
  385. case []uint64:
  386. fastpathTV.EncSliceUint64V(v, e)
  387. case *[]uint64:
  388. fastpathTV.EncSliceUint64V(*v, e)
  389. case []uintptr:
  390. fastpathTV.EncSliceUintptrV(v, e)
  391. case *[]uintptr:
  392. fastpathTV.EncSliceUintptrV(*v, e)
  393. case []int:
  394. fastpathTV.EncSliceIntV(v, e)
  395. case *[]int:
  396. fastpathTV.EncSliceIntV(*v, e)
  397. case []int8:
  398. fastpathTV.EncSliceInt8V(v, e)
  399. case *[]int8:
  400. fastpathTV.EncSliceInt8V(*v, e)
  401. case []int16:
  402. fastpathTV.EncSliceInt16V(v, e)
  403. case *[]int16:
  404. fastpathTV.EncSliceInt16V(*v, e)
  405. case []int32:
  406. fastpathTV.EncSliceInt32V(v, e)
  407. case *[]int32:
  408. fastpathTV.EncSliceInt32V(*v, e)
  409. case []int64:
  410. fastpathTV.EncSliceInt64V(v, e)
  411. case *[]int64:
  412. fastpathTV.EncSliceInt64V(*v, e)
  413. case []bool:
  414. fastpathTV.EncSliceBoolV(v, e)
  415. case *[]bool:
  416. fastpathTV.EncSliceBoolV(*v, e)
  417. case map[interface{}]interface{}:
  418. fastpathTV.EncMapIntfIntfV(v, e)
  419. case *map[interface{}]interface{}:
  420. fastpathTV.EncMapIntfIntfV(*v, e)
  421. case map[interface{}]string:
  422. fastpathTV.EncMapIntfStringV(v, e)
  423. case *map[interface{}]string:
  424. fastpathTV.EncMapIntfStringV(*v, e)
  425. case map[interface{}]uint:
  426. fastpathTV.EncMapIntfUintV(v, e)
  427. case *map[interface{}]uint:
  428. fastpathTV.EncMapIntfUintV(*v, e)
  429. case map[interface{}]uint8:
  430. fastpathTV.EncMapIntfUint8V(v, e)
  431. case *map[interface{}]uint8:
  432. fastpathTV.EncMapIntfUint8V(*v, e)
  433. case map[interface{}]uint16:
  434. fastpathTV.EncMapIntfUint16V(v, e)
  435. case *map[interface{}]uint16:
  436. fastpathTV.EncMapIntfUint16V(*v, e)
  437. case map[interface{}]uint32:
  438. fastpathTV.EncMapIntfUint32V(v, e)
  439. case *map[interface{}]uint32:
  440. fastpathTV.EncMapIntfUint32V(*v, e)
  441. case map[interface{}]uint64:
  442. fastpathTV.EncMapIntfUint64V(v, e)
  443. case *map[interface{}]uint64:
  444. fastpathTV.EncMapIntfUint64V(*v, e)
  445. case map[interface{}]uintptr:
  446. fastpathTV.EncMapIntfUintptrV(v, e)
  447. case *map[interface{}]uintptr:
  448. fastpathTV.EncMapIntfUintptrV(*v, e)
  449. case map[interface{}]int:
  450. fastpathTV.EncMapIntfIntV(v, e)
  451. case *map[interface{}]int:
  452. fastpathTV.EncMapIntfIntV(*v, e)
  453. case map[interface{}]int8:
  454. fastpathTV.EncMapIntfInt8V(v, e)
  455. case *map[interface{}]int8:
  456. fastpathTV.EncMapIntfInt8V(*v, e)
  457. case map[interface{}]int16:
  458. fastpathTV.EncMapIntfInt16V(v, e)
  459. case *map[interface{}]int16:
  460. fastpathTV.EncMapIntfInt16V(*v, e)
  461. case map[interface{}]int32:
  462. fastpathTV.EncMapIntfInt32V(v, e)
  463. case *map[interface{}]int32:
  464. fastpathTV.EncMapIntfInt32V(*v, e)
  465. case map[interface{}]int64:
  466. fastpathTV.EncMapIntfInt64V(v, e)
  467. case *map[interface{}]int64:
  468. fastpathTV.EncMapIntfInt64V(*v, e)
  469. case map[interface{}]float32:
  470. fastpathTV.EncMapIntfFloat32V(v, e)
  471. case *map[interface{}]float32:
  472. fastpathTV.EncMapIntfFloat32V(*v, e)
  473. case map[interface{}]float64:
  474. fastpathTV.EncMapIntfFloat64V(v, e)
  475. case *map[interface{}]float64:
  476. fastpathTV.EncMapIntfFloat64V(*v, e)
  477. case map[interface{}]bool:
  478. fastpathTV.EncMapIntfBoolV(v, e)
  479. case *map[interface{}]bool:
  480. fastpathTV.EncMapIntfBoolV(*v, e)
  481. case map[string]interface{}:
  482. fastpathTV.EncMapStringIntfV(v, e)
  483. case *map[string]interface{}:
  484. fastpathTV.EncMapStringIntfV(*v, e)
  485. case map[string]string:
  486. fastpathTV.EncMapStringStringV(v, e)
  487. case *map[string]string:
  488. fastpathTV.EncMapStringStringV(*v, e)
  489. case map[string]uint:
  490. fastpathTV.EncMapStringUintV(v, e)
  491. case *map[string]uint:
  492. fastpathTV.EncMapStringUintV(*v, e)
  493. case map[string]uint8:
  494. fastpathTV.EncMapStringUint8V(v, e)
  495. case *map[string]uint8:
  496. fastpathTV.EncMapStringUint8V(*v, e)
  497. case map[string]uint16:
  498. fastpathTV.EncMapStringUint16V(v, e)
  499. case *map[string]uint16:
  500. fastpathTV.EncMapStringUint16V(*v, e)
  501. case map[string]uint32:
  502. fastpathTV.EncMapStringUint32V(v, e)
  503. case *map[string]uint32:
  504. fastpathTV.EncMapStringUint32V(*v, e)
  505. case map[string]uint64:
  506. fastpathTV.EncMapStringUint64V(v, e)
  507. case *map[string]uint64:
  508. fastpathTV.EncMapStringUint64V(*v, e)
  509. case map[string]uintptr:
  510. fastpathTV.EncMapStringUintptrV(v, e)
  511. case *map[string]uintptr:
  512. fastpathTV.EncMapStringUintptrV(*v, e)
  513. case map[string]int:
  514. fastpathTV.EncMapStringIntV(v, e)
  515. case *map[string]int:
  516. fastpathTV.EncMapStringIntV(*v, e)
  517. case map[string]int8:
  518. fastpathTV.EncMapStringInt8V(v, e)
  519. case *map[string]int8:
  520. fastpathTV.EncMapStringInt8V(*v, e)
  521. case map[string]int16:
  522. fastpathTV.EncMapStringInt16V(v, e)
  523. case *map[string]int16:
  524. fastpathTV.EncMapStringInt16V(*v, e)
  525. case map[string]int32:
  526. fastpathTV.EncMapStringInt32V(v, e)
  527. case *map[string]int32:
  528. fastpathTV.EncMapStringInt32V(*v, e)
  529. case map[string]int64:
  530. fastpathTV.EncMapStringInt64V(v, e)
  531. case *map[string]int64:
  532. fastpathTV.EncMapStringInt64V(*v, e)
  533. case map[string]float32:
  534. fastpathTV.EncMapStringFloat32V(v, e)
  535. case *map[string]float32:
  536. fastpathTV.EncMapStringFloat32V(*v, e)
  537. case map[string]float64:
  538. fastpathTV.EncMapStringFloat64V(v, e)
  539. case *map[string]float64:
  540. fastpathTV.EncMapStringFloat64V(*v, e)
  541. case map[string]bool:
  542. fastpathTV.EncMapStringBoolV(v, e)
  543. case *map[string]bool:
  544. fastpathTV.EncMapStringBoolV(*v, e)
  545. case map[float32]interface{}:
  546. fastpathTV.EncMapFloat32IntfV(v, e)
  547. case *map[float32]interface{}:
  548. fastpathTV.EncMapFloat32IntfV(*v, e)
  549. case map[float32]string:
  550. fastpathTV.EncMapFloat32StringV(v, e)
  551. case *map[float32]string:
  552. fastpathTV.EncMapFloat32StringV(*v, e)
  553. case map[float32]uint:
  554. fastpathTV.EncMapFloat32UintV(v, e)
  555. case *map[float32]uint:
  556. fastpathTV.EncMapFloat32UintV(*v, e)
  557. case map[float32]uint8:
  558. fastpathTV.EncMapFloat32Uint8V(v, e)
  559. case *map[float32]uint8:
  560. fastpathTV.EncMapFloat32Uint8V(*v, e)
  561. case map[float32]uint16:
  562. fastpathTV.EncMapFloat32Uint16V(v, e)
  563. case *map[float32]uint16:
  564. fastpathTV.EncMapFloat32Uint16V(*v, e)
  565. case map[float32]uint32:
  566. fastpathTV.EncMapFloat32Uint32V(v, e)
  567. case *map[float32]uint32:
  568. fastpathTV.EncMapFloat32Uint32V(*v, e)
  569. case map[float32]uint64:
  570. fastpathTV.EncMapFloat32Uint64V(v, e)
  571. case *map[float32]uint64:
  572. fastpathTV.EncMapFloat32Uint64V(*v, e)
  573. case map[float32]uintptr:
  574. fastpathTV.EncMapFloat32UintptrV(v, e)
  575. case *map[float32]uintptr:
  576. fastpathTV.EncMapFloat32UintptrV(*v, e)
  577. case map[float32]int:
  578. fastpathTV.EncMapFloat32IntV(v, e)
  579. case *map[float32]int:
  580. fastpathTV.EncMapFloat32IntV(*v, e)
  581. case map[float32]int8:
  582. fastpathTV.EncMapFloat32Int8V(v, e)
  583. case *map[float32]int8:
  584. fastpathTV.EncMapFloat32Int8V(*v, e)
  585. case map[float32]int16:
  586. fastpathTV.EncMapFloat32Int16V(v, e)
  587. case *map[float32]int16:
  588. fastpathTV.EncMapFloat32Int16V(*v, e)
  589. case map[float32]int32:
  590. fastpathTV.EncMapFloat32Int32V(v, e)
  591. case *map[float32]int32:
  592. fastpathTV.EncMapFloat32Int32V(*v, e)
  593. case map[float32]int64:
  594. fastpathTV.EncMapFloat32Int64V(v, e)
  595. case *map[float32]int64:
  596. fastpathTV.EncMapFloat32Int64V(*v, e)
  597. case map[float32]float32:
  598. fastpathTV.EncMapFloat32Float32V(v, e)
  599. case *map[float32]float32:
  600. fastpathTV.EncMapFloat32Float32V(*v, e)
  601. case map[float32]float64:
  602. fastpathTV.EncMapFloat32Float64V(v, e)
  603. case *map[float32]float64:
  604. fastpathTV.EncMapFloat32Float64V(*v, e)
  605. case map[float32]bool:
  606. fastpathTV.EncMapFloat32BoolV(v, e)
  607. case *map[float32]bool:
  608. fastpathTV.EncMapFloat32BoolV(*v, e)
  609. case map[float64]interface{}:
  610. fastpathTV.EncMapFloat64IntfV(v, e)
  611. case *map[float64]interface{}:
  612. fastpathTV.EncMapFloat64IntfV(*v, e)
  613. case map[float64]string:
  614. fastpathTV.EncMapFloat64StringV(v, e)
  615. case *map[float64]string:
  616. fastpathTV.EncMapFloat64StringV(*v, e)
  617. case map[float64]uint:
  618. fastpathTV.EncMapFloat64UintV(v, e)
  619. case *map[float64]uint:
  620. fastpathTV.EncMapFloat64UintV(*v, e)
  621. case map[float64]uint8:
  622. fastpathTV.EncMapFloat64Uint8V(v, e)
  623. case *map[float64]uint8:
  624. fastpathTV.EncMapFloat64Uint8V(*v, e)
  625. case map[float64]uint16:
  626. fastpathTV.EncMapFloat64Uint16V(v, e)
  627. case *map[float64]uint16:
  628. fastpathTV.EncMapFloat64Uint16V(*v, e)
  629. case map[float64]uint32:
  630. fastpathTV.EncMapFloat64Uint32V(v, e)
  631. case *map[float64]uint32:
  632. fastpathTV.EncMapFloat64Uint32V(*v, e)
  633. case map[float64]uint64:
  634. fastpathTV.EncMapFloat64Uint64V(v, e)
  635. case *map[float64]uint64:
  636. fastpathTV.EncMapFloat64Uint64V(*v, e)
  637. case map[float64]uintptr:
  638. fastpathTV.EncMapFloat64UintptrV(v, e)
  639. case *map[float64]uintptr:
  640. fastpathTV.EncMapFloat64UintptrV(*v, e)
  641. case map[float64]int:
  642. fastpathTV.EncMapFloat64IntV(v, e)
  643. case *map[float64]int:
  644. fastpathTV.EncMapFloat64IntV(*v, e)
  645. case map[float64]int8:
  646. fastpathTV.EncMapFloat64Int8V(v, e)
  647. case *map[float64]int8:
  648. fastpathTV.EncMapFloat64Int8V(*v, e)
  649. case map[float64]int16:
  650. fastpathTV.EncMapFloat64Int16V(v, e)
  651. case *map[float64]int16:
  652. fastpathTV.EncMapFloat64Int16V(*v, e)
  653. case map[float64]int32:
  654. fastpathTV.EncMapFloat64Int32V(v, e)
  655. case *map[float64]int32:
  656. fastpathTV.EncMapFloat64Int32V(*v, e)
  657. case map[float64]int64:
  658. fastpathTV.EncMapFloat64Int64V(v, e)
  659. case *map[float64]int64:
  660. fastpathTV.EncMapFloat64Int64V(*v, e)
  661. case map[float64]float32:
  662. fastpathTV.EncMapFloat64Float32V(v, e)
  663. case *map[float64]float32:
  664. fastpathTV.EncMapFloat64Float32V(*v, e)
  665. case map[float64]float64:
  666. fastpathTV.EncMapFloat64Float64V(v, e)
  667. case *map[float64]float64:
  668. fastpathTV.EncMapFloat64Float64V(*v, e)
  669. case map[float64]bool:
  670. fastpathTV.EncMapFloat64BoolV(v, e)
  671. case *map[float64]bool:
  672. fastpathTV.EncMapFloat64BoolV(*v, e)
  673. case map[uint]interface{}:
  674. fastpathTV.EncMapUintIntfV(v, e)
  675. case *map[uint]interface{}:
  676. fastpathTV.EncMapUintIntfV(*v, e)
  677. case map[uint]string:
  678. fastpathTV.EncMapUintStringV(v, e)
  679. case *map[uint]string:
  680. fastpathTV.EncMapUintStringV(*v, e)
  681. case map[uint]uint:
  682. fastpathTV.EncMapUintUintV(v, e)
  683. case *map[uint]uint:
  684. fastpathTV.EncMapUintUintV(*v, e)
  685. case map[uint]uint8:
  686. fastpathTV.EncMapUintUint8V(v, e)
  687. case *map[uint]uint8:
  688. fastpathTV.EncMapUintUint8V(*v, e)
  689. case map[uint]uint16:
  690. fastpathTV.EncMapUintUint16V(v, e)
  691. case *map[uint]uint16:
  692. fastpathTV.EncMapUintUint16V(*v, e)
  693. case map[uint]uint32:
  694. fastpathTV.EncMapUintUint32V(v, e)
  695. case *map[uint]uint32:
  696. fastpathTV.EncMapUintUint32V(*v, e)
  697. case map[uint]uint64:
  698. fastpathTV.EncMapUintUint64V(v, e)
  699. case *map[uint]uint64:
  700. fastpathTV.EncMapUintUint64V(*v, e)
  701. case map[uint]uintptr:
  702. fastpathTV.EncMapUintUintptrV(v, e)
  703. case *map[uint]uintptr:
  704. fastpathTV.EncMapUintUintptrV(*v, e)
  705. case map[uint]int:
  706. fastpathTV.EncMapUintIntV(v, e)
  707. case *map[uint]int:
  708. fastpathTV.EncMapUintIntV(*v, e)
  709. case map[uint]int8:
  710. fastpathTV.EncMapUintInt8V(v, e)
  711. case *map[uint]int8:
  712. fastpathTV.EncMapUintInt8V(*v, e)
  713. case map[uint]int16:
  714. fastpathTV.EncMapUintInt16V(v, e)
  715. case *map[uint]int16:
  716. fastpathTV.EncMapUintInt16V(*v, e)
  717. case map[uint]int32:
  718. fastpathTV.EncMapUintInt32V(v, e)
  719. case *map[uint]int32:
  720. fastpathTV.EncMapUintInt32V(*v, e)
  721. case map[uint]int64:
  722. fastpathTV.EncMapUintInt64V(v, e)
  723. case *map[uint]int64:
  724. fastpathTV.EncMapUintInt64V(*v, e)
  725. case map[uint]float32:
  726. fastpathTV.EncMapUintFloat32V(v, e)
  727. case *map[uint]float32:
  728. fastpathTV.EncMapUintFloat32V(*v, e)
  729. case map[uint]float64:
  730. fastpathTV.EncMapUintFloat64V(v, e)
  731. case *map[uint]float64:
  732. fastpathTV.EncMapUintFloat64V(*v, e)
  733. case map[uint]bool:
  734. fastpathTV.EncMapUintBoolV(v, e)
  735. case *map[uint]bool:
  736. fastpathTV.EncMapUintBoolV(*v, e)
  737. case map[uint8]interface{}:
  738. fastpathTV.EncMapUint8IntfV(v, e)
  739. case *map[uint8]interface{}:
  740. fastpathTV.EncMapUint8IntfV(*v, e)
  741. case map[uint8]string:
  742. fastpathTV.EncMapUint8StringV(v, e)
  743. case *map[uint8]string:
  744. fastpathTV.EncMapUint8StringV(*v, e)
  745. case map[uint8]uint:
  746. fastpathTV.EncMapUint8UintV(v, e)
  747. case *map[uint8]uint:
  748. fastpathTV.EncMapUint8UintV(*v, e)
  749. case map[uint8]uint8:
  750. fastpathTV.EncMapUint8Uint8V(v, e)
  751. case *map[uint8]uint8:
  752. fastpathTV.EncMapUint8Uint8V(*v, e)
  753. case map[uint8]uint16:
  754. fastpathTV.EncMapUint8Uint16V(v, e)
  755. case *map[uint8]uint16:
  756. fastpathTV.EncMapUint8Uint16V(*v, e)
  757. case map[uint8]uint32:
  758. fastpathTV.EncMapUint8Uint32V(v, e)
  759. case *map[uint8]uint32:
  760. fastpathTV.EncMapUint8Uint32V(*v, e)
  761. case map[uint8]uint64:
  762. fastpathTV.EncMapUint8Uint64V(v, e)
  763. case *map[uint8]uint64:
  764. fastpathTV.EncMapUint8Uint64V(*v, e)
  765. case map[uint8]uintptr:
  766. fastpathTV.EncMapUint8UintptrV(v, e)
  767. case *map[uint8]uintptr:
  768. fastpathTV.EncMapUint8UintptrV(*v, e)
  769. case map[uint8]int:
  770. fastpathTV.EncMapUint8IntV(v, e)
  771. case *map[uint8]int:
  772. fastpathTV.EncMapUint8IntV(*v, e)
  773. case map[uint8]int8:
  774. fastpathTV.EncMapUint8Int8V(v, e)
  775. case *map[uint8]int8:
  776. fastpathTV.EncMapUint8Int8V(*v, e)
  777. case map[uint8]int16:
  778. fastpathTV.EncMapUint8Int16V(v, e)
  779. case *map[uint8]int16:
  780. fastpathTV.EncMapUint8Int16V(*v, e)
  781. case map[uint8]int32:
  782. fastpathTV.EncMapUint8Int32V(v, e)
  783. case *map[uint8]int32:
  784. fastpathTV.EncMapUint8Int32V(*v, e)
  785. case map[uint8]int64:
  786. fastpathTV.EncMapUint8Int64V(v, e)
  787. case *map[uint8]int64:
  788. fastpathTV.EncMapUint8Int64V(*v, e)
  789. case map[uint8]float32:
  790. fastpathTV.EncMapUint8Float32V(v, e)
  791. case *map[uint8]float32:
  792. fastpathTV.EncMapUint8Float32V(*v, e)
  793. case map[uint8]float64:
  794. fastpathTV.EncMapUint8Float64V(v, e)
  795. case *map[uint8]float64:
  796. fastpathTV.EncMapUint8Float64V(*v, e)
  797. case map[uint8]bool:
  798. fastpathTV.EncMapUint8BoolV(v, e)
  799. case *map[uint8]bool:
  800. fastpathTV.EncMapUint8BoolV(*v, e)
  801. case map[uint16]interface{}:
  802. fastpathTV.EncMapUint16IntfV(v, e)
  803. case *map[uint16]interface{}:
  804. fastpathTV.EncMapUint16IntfV(*v, e)
  805. case map[uint16]string:
  806. fastpathTV.EncMapUint16StringV(v, e)
  807. case *map[uint16]string:
  808. fastpathTV.EncMapUint16StringV(*v, e)
  809. case map[uint16]uint:
  810. fastpathTV.EncMapUint16UintV(v, e)
  811. case *map[uint16]uint:
  812. fastpathTV.EncMapUint16UintV(*v, e)
  813. case map[uint16]uint8:
  814. fastpathTV.EncMapUint16Uint8V(v, e)
  815. case *map[uint16]uint8:
  816. fastpathTV.EncMapUint16Uint8V(*v, e)
  817. case map[uint16]uint16:
  818. fastpathTV.EncMapUint16Uint16V(v, e)
  819. case *map[uint16]uint16:
  820. fastpathTV.EncMapUint16Uint16V(*v, e)
  821. case map[uint16]uint32:
  822. fastpathTV.EncMapUint16Uint32V(v, e)
  823. case *map[uint16]uint32:
  824. fastpathTV.EncMapUint16Uint32V(*v, e)
  825. case map[uint16]uint64:
  826. fastpathTV.EncMapUint16Uint64V(v, e)
  827. case *map[uint16]uint64:
  828. fastpathTV.EncMapUint16Uint64V(*v, e)
  829. case map[uint16]uintptr:
  830. fastpathTV.EncMapUint16UintptrV(v, e)
  831. case *map[uint16]uintptr:
  832. fastpathTV.EncMapUint16UintptrV(*v, e)
  833. case map[uint16]int:
  834. fastpathTV.EncMapUint16IntV(v, e)
  835. case *map[uint16]int:
  836. fastpathTV.EncMapUint16IntV(*v, e)
  837. case map[uint16]int8:
  838. fastpathTV.EncMapUint16Int8V(v, e)
  839. case *map[uint16]int8:
  840. fastpathTV.EncMapUint16Int8V(*v, e)
  841. case map[uint16]int16:
  842. fastpathTV.EncMapUint16Int16V(v, e)
  843. case *map[uint16]int16:
  844. fastpathTV.EncMapUint16Int16V(*v, e)
  845. case map[uint16]int32:
  846. fastpathTV.EncMapUint16Int32V(v, e)
  847. case *map[uint16]int32:
  848. fastpathTV.EncMapUint16Int32V(*v, e)
  849. case map[uint16]int64:
  850. fastpathTV.EncMapUint16Int64V(v, e)
  851. case *map[uint16]int64:
  852. fastpathTV.EncMapUint16Int64V(*v, e)
  853. case map[uint16]float32:
  854. fastpathTV.EncMapUint16Float32V(v, e)
  855. case *map[uint16]float32:
  856. fastpathTV.EncMapUint16Float32V(*v, e)
  857. case map[uint16]float64:
  858. fastpathTV.EncMapUint16Float64V(v, e)
  859. case *map[uint16]float64:
  860. fastpathTV.EncMapUint16Float64V(*v, e)
  861. case map[uint16]bool:
  862. fastpathTV.EncMapUint16BoolV(v, e)
  863. case *map[uint16]bool:
  864. fastpathTV.EncMapUint16BoolV(*v, e)
  865. case map[uint32]interface{}:
  866. fastpathTV.EncMapUint32IntfV(v, e)
  867. case *map[uint32]interface{}:
  868. fastpathTV.EncMapUint32IntfV(*v, e)
  869. case map[uint32]string:
  870. fastpathTV.EncMapUint32StringV(v, e)
  871. case *map[uint32]string:
  872. fastpathTV.EncMapUint32StringV(*v, e)
  873. case map[uint32]uint:
  874. fastpathTV.EncMapUint32UintV(v, e)
  875. case *map[uint32]uint:
  876. fastpathTV.EncMapUint32UintV(*v, e)
  877. case map[uint32]uint8:
  878. fastpathTV.EncMapUint32Uint8V(v, e)
  879. case *map[uint32]uint8:
  880. fastpathTV.EncMapUint32Uint8V(*v, e)
  881. case map[uint32]uint16:
  882. fastpathTV.EncMapUint32Uint16V(v, e)
  883. case *map[uint32]uint16:
  884. fastpathTV.EncMapUint32Uint16V(*v, e)
  885. case map[uint32]uint32:
  886. fastpathTV.EncMapUint32Uint32V(v, e)
  887. case *map[uint32]uint32:
  888. fastpathTV.EncMapUint32Uint32V(*v, e)
  889. case map[uint32]uint64:
  890. fastpathTV.EncMapUint32Uint64V(v, e)
  891. case *map[uint32]uint64:
  892. fastpathTV.EncMapUint32Uint64V(*v, e)
  893. case map[uint32]uintptr:
  894. fastpathTV.EncMapUint32UintptrV(v, e)
  895. case *map[uint32]uintptr:
  896. fastpathTV.EncMapUint32UintptrV(*v, e)
  897. case map[uint32]int:
  898. fastpathTV.EncMapUint32IntV(v, e)
  899. case *map[uint32]int:
  900. fastpathTV.EncMapUint32IntV(*v, e)
  901. case map[uint32]int8:
  902. fastpathTV.EncMapUint32Int8V(v, e)
  903. case *map[uint32]int8:
  904. fastpathTV.EncMapUint32Int8V(*v, e)
  905. case map[uint32]int16:
  906. fastpathTV.EncMapUint32Int16V(v, e)
  907. case *map[uint32]int16:
  908. fastpathTV.EncMapUint32Int16V(*v, e)
  909. case map[uint32]int32:
  910. fastpathTV.EncMapUint32Int32V(v, e)
  911. case *map[uint32]int32:
  912. fastpathTV.EncMapUint32Int32V(*v, e)
  913. case map[uint32]int64:
  914. fastpathTV.EncMapUint32Int64V(v, e)
  915. case *map[uint32]int64:
  916. fastpathTV.EncMapUint32Int64V(*v, e)
  917. case map[uint32]float32:
  918. fastpathTV.EncMapUint32Float32V(v, e)
  919. case *map[uint32]float32:
  920. fastpathTV.EncMapUint32Float32V(*v, e)
  921. case map[uint32]float64:
  922. fastpathTV.EncMapUint32Float64V(v, e)
  923. case *map[uint32]float64:
  924. fastpathTV.EncMapUint32Float64V(*v, e)
  925. case map[uint32]bool:
  926. fastpathTV.EncMapUint32BoolV(v, e)
  927. case *map[uint32]bool:
  928. fastpathTV.EncMapUint32BoolV(*v, e)
  929. case map[uint64]interface{}:
  930. fastpathTV.EncMapUint64IntfV(v, e)
  931. case *map[uint64]interface{}:
  932. fastpathTV.EncMapUint64IntfV(*v, e)
  933. case map[uint64]string:
  934. fastpathTV.EncMapUint64StringV(v, e)
  935. case *map[uint64]string:
  936. fastpathTV.EncMapUint64StringV(*v, e)
  937. case map[uint64]uint:
  938. fastpathTV.EncMapUint64UintV(v, e)
  939. case *map[uint64]uint:
  940. fastpathTV.EncMapUint64UintV(*v, e)
  941. case map[uint64]uint8:
  942. fastpathTV.EncMapUint64Uint8V(v, e)
  943. case *map[uint64]uint8:
  944. fastpathTV.EncMapUint64Uint8V(*v, e)
  945. case map[uint64]uint16:
  946. fastpathTV.EncMapUint64Uint16V(v, e)
  947. case *map[uint64]uint16:
  948. fastpathTV.EncMapUint64Uint16V(*v, e)
  949. case map[uint64]uint32:
  950. fastpathTV.EncMapUint64Uint32V(v, e)
  951. case *map[uint64]uint32:
  952. fastpathTV.EncMapUint64Uint32V(*v, e)
  953. case map[uint64]uint64:
  954. fastpathTV.EncMapUint64Uint64V(v, e)
  955. case *map[uint64]uint64:
  956. fastpathTV.EncMapUint64Uint64V(*v, e)
  957. case map[uint64]uintptr:
  958. fastpathTV.EncMapUint64UintptrV(v, e)
  959. case *map[uint64]uintptr:
  960. fastpathTV.EncMapUint64UintptrV(*v, e)
  961. case map[uint64]int:
  962. fastpathTV.EncMapUint64IntV(v, e)
  963. case *map[uint64]int:
  964. fastpathTV.EncMapUint64IntV(*v, e)
  965. case map[uint64]int8:
  966. fastpathTV.EncMapUint64Int8V(v, e)
  967. case *map[uint64]int8:
  968. fastpathTV.EncMapUint64Int8V(*v, e)
  969. case map[uint64]int16:
  970. fastpathTV.EncMapUint64Int16V(v, e)
  971. case *map[uint64]int16:
  972. fastpathTV.EncMapUint64Int16V(*v, e)
  973. case map[uint64]int32:
  974. fastpathTV.EncMapUint64Int32V(v, e)
  975. case *map[uint64]int32:
  976. fastpathTV.EncMapUint64Int32V(*v, e)
  977. case map[uint64]int64:
  978. fastpathTV.EncMapUint64Int64V(v, e)
  979. case *map[uint64]int64:
  980. fastpathTV.EncMapUint64Int64V(*v, e)
  981. case map[uint64]float32:
  982. fastpathTV.EncMapUint64Float32V(v, e)
  983. case *map[uint64]float32:
  984. fastpathTV.EncMapUint64Float32V(*v, e)
  985. case map[uint64]float64:
  986. fastpathTV.EncMapUint64Float64V(v, e)
  987. case *map[uint64]float64:
  988. fastpathTV.EncMapUint64Float64V(*v, e)
  989. case map[uint64]bool:
  990. fastpathTV.EncMapUint64BoolV(v, e)
  991. case *map[uint64]bool:
  992. fastpathTV.EncMapUint64BoolV(*v, e)
  993. case map[uintptr]interface{}:
  994. fastpathTV.EncMapUintptrIntfV(v, e)
  995. case *map[uintptr]interface{}:
  996. fastpathTV.EncMapUintptrIntfV(*v, e)
  997. case map[uintptr]string:
  998. fastpathTV.EncMapUintptrStringV(v, e)
  999. case *map[uintptr]string:
  1000. fastpathTV.EncMapUintptrStringV(*v, e)
  1001. case map[uintptr]uint:
  1002. fastpathTV.EncMapUintptrUintV(v, e)
  1003. case *map[uintptr]uint:
  1004. fastpathTV.EncMapUintptrUintV(*v, e)
  1005. case map[uintptr]uint8:
  1006. fastpathTV.EncMapUintptrUint8V(v, e)
  1007. case *map[uintptr]uint8:
  1008. fastpathTV.EncMapUintptrUint8V(*v, e)
  1009. case map[uintptr]uint16:
  1010. fastpathTV.EncMapUintptrUint16V(v, e)
  1011. case *map[uintptr]uint16:
  1012. fastpathTV.EncMapUintptrUint16V(*v, e)
  1013. case map[uintptr]uint32:
  1014. fastpathTV.EncMapUintptrUint32V(v, e)
  1015. case *map[uintptr]uint32:
  1016. fastpathTV.EncMapUintptrUint32V(*v, e)
  1017. case map[uintptr]uint64:
  1018. fastpathTV.EncMapUintptrUint64V(v, e)
  1019. case *map[uintptr]uint64:
  1020. fastpathTV.EncMapUintptrUint64V(*v, e)
  1021. case map[uintptr]uintptr:
  1022. fastpathTV.EncMapUintptrUintptrV(v, e)
  1023. case *map[uintptr]uintptr:
  1024. fastpathTV.EncMapUintptrUintptrV(*v, e)
  1025. case map[uintptr]int:
  1026. fastpathTV.EncMapUintptrIntV(v, e)
  1027. case *map[uintptr]int:
  1028. fastpathTV.EncMapUintptrIntV(*v, e)
  1029. case map[uintptr]int8:
  1030. fastpathTV.EncMapUintptrInt8V(v, e)
  1031. case *map[uintptr]int8:
  1032. fastpathTV.EncMapUintptrInt8V(*v, e)
  1033. case map[uintptr]int16:
  1034. fastpathTV.EncMapUintptrInt16V(v, e)
  1035. case *map[uintptr]int16:
  1036. fastpathTV.EncMapUintptrInt16V(*v, e)
  1037. case map[uintptr]int32:
  1038. fastpathTV.EncMapUintptrInt32V(v, e)
  1039. case *map[uintptr]int32:
  1040. fastpathTV.EncMapUintptrInt32V(*v, e)
  1041. case map[uintptr]int64:
  1042. fastpathTV.EncMapUintptrInt64V(v, e)
  1043. case *map[uintptr]int64:
  1044. fastpathTV.EncMapUintptrInt64V(*v, e)
  1045. case map[uintptr]float32:
  1046. fastpathTV.EncMapUintptrFloat32V(v, e)
  1047. case *map[uintptr]float32:
  1048. fastpathTV.EncMapUintptrFloat32V(*v, e)
  1049. case map[uintptr]float64:
  1050. fastpathTV.EncMapUintptrFloat64V(v, e)
  1051. case *map[uintptr]float64:
  1052. fastpathTV.EncMapUintptrFloat64V(*v, e)
  1053. case map[uintptr]bool:
  1054. fastpathTV.EncMapUintptrBoolV(v, e)
  1055. case *map[uintptr]bool:
  1056. fastpathTV.EncMapUintptrBoolV(*v, e)
  1057. case map[int]interface{}:
  1058. fastpathTV.EncMapIntIntfV(v, e)
  1059. case *map[int]interface{}:
  1060. fastpathTV.EncMapIntIntfV(*v, e)
  1061. case map[int]string:
  1062. fastpathTV.EncMapIntStringV(v, e)
  1063. case *map[int]string:
  1064. fastpathTV.EncMapIntStringV(*v, e)
  1065. case map[int]uint:
  1066. fastpathTV.EncMapIntUintV(v, e)
  1067. case *map[int]uint:
  1068. fastpathTV.EncMapIntUintV(*v, e)
  1069. case map[int]uint8:
  1070. fastpathTV.EncMapIntUint8V(v, e)
  1071. case *map[int]uint8:
  1072. fastpathTV.EncMapIntUint8V(*v, e)
  1073. case map[int]uint16:
  1074. fastpathTV.EncMapIntUint16V(v, e)
  1075. case *map[int]uint16:
  1076. fastpathTV.EncMapIntUint16V(*v, e)
  1077. case map[int]uint32:
  1078. fastpathTV.EncMapIntUint32V(v, e)
  1079. case *map[int]uint32:
  1080. fastpathTV.EncMapIntUint32V(*v, e)
  1081. case map[int]uint64:
  1082. fastpathTV.EncMapIntUint64V(v, e)
  1083. case *map[int]uint64:
  1084. fastpathTV.EncMapIntUint64V(*v, e)
  1085. case map[int]uintptr:
  1086. fastpathTV.EncMapIntUintptrV(v, e)
  1087. case *map[int]uintptr:
  1088. fastpathTV.EncMapIntUintptrV(*v, e)
  1089. case map[int]int:
  1090. fastpathTV.EncMapIntIntV(v, e)
  1091. case *map[int]int:
  1092. fastpathTV.EncMapIntIntV(*v, e)
  1093. case map[int]int8:
  1094. fastpathTV.EncMapIntInt8V(v, e)
  1095. case *map[int]int8:
  1096. fastpathTV.EncMapIntInt8V(*v, e)
  1097. case map[int]int16:
  1098. fastpathTV.EncMapIntInt16V(v, e)
  1099. case *map[int]int16:
  1100. fastpathTV.EncMapIntInt16V(*v, e)
  1101. case map[int]int32:
  1102. fastpathTV.EncMapIntInt32V(v, e)
  1103. case *map[int]int32:
  1104. fastpathTV.EncMapIntInt32V(*v, e)
  1105. case map[int]int64:
  1106. fastpathTV.EncMapIntInt64V(v, e)
  1107. case *map[int]int64:
  1108. fastpathTV.EncMapIntInt64V(*v, e)
  1109. case map[int]float32:
  1110. fastpathTV.EncMapIntFloat32V(v, e)
  1111. case *map[int]float32:
  1112. fastpathTV.EncMapIntFloat32V(*v, e)
  1113. case map[int]float64:
  1114. fastpathTV.EncMapIntFloat64V(v, e)
  1115. case *map[int]float64:
  1116. fastpathTV.EncMapIntFloat64V(*v, e)
  1117. case map[int]bool:
  1118. fastpathTV.EncMapIntBoolV(v, e)
  1119. case *map[int]bool:
  1120. fastpathTV.EncMapIntBoolV(*v, e)
  1121. case map[int8]interface{}:
  1122. fastpathTV.EncMapInt8IntfV(v, e)
  1123. case *map[int8]interface{}:
  1124. fastpathTV.EncMapInt8IntfV(*v, e)
  1125. case map[int8]string:
  1126. fastpathTV.EncMapInt8StringV(v, e)
  1127. case *map[int8]string:
  1128. fastpathTV.EncMapInt8StringV(*v, e)
  1129. case map[int8]uint:
  1130. fastpathTV.EncMapInt8UintV(v, e)
  1131. case *map[int8]uint:
  1132. fastpathTV.EncMapInt8UintV(*v, e)
  1133. case map[int8]uint8:
  1134. fastpathTV.EncMapInt8Uint8V(v, e)
  1135. case *map[int8]uint8:
  1136. fastpathTV.EncMapInt8Uint8V(*v, e)
  1137. case map[int8]uint16:
  1138. fastpathTV.EncMapInt8Uint16V(v, e)
  1139. case *map[int8]uint16:
  1140. fastpathTV.EncMapInt8Uint16V(*v, e)
  1141. case map[int8]uint32:
  1142. fastpathTV.EncMapInt8Uint32V(v, e)
  1143. case *map[int8]uint32:
  1144. fastpathTV.EncMapInt8Uint32V(*v, e)
  1145. case map[int8]uint64:
  1146. fastpathTV.EncMapInt8Uint64V(v, e)
  1147. case *map[int8]uint64:
  1148. fastpathTV.EncMapInt8Uint64V(*v, e)
  1149. case map[int8]uintptr:
  1150. fastpathTV.EncMapInt8UintptrV(v, e)
  1151. case *map[int8]uintptr:
  1152. fastpathTV.EncMapInt8UintptrV(*v, e)
  1153. case map[int8]int:
  1154. fastpathTV.EncMapInt8IntV(v, e)
  1155. case *map[int8]int:
  1156. fastpathTV.EncMapInt8IntV(*v, e)
  1157. case map[int8]int8:
  1158. fastpathTV.EncMapInt8Int8V(v, e)
  1159. case *map[int8]int8:
  1160. fastpathTV.EncMapInt8Int8V(*v, e)
  1161. case map[int8]int16:
  1162. fastpathTV.EncMapInt8Int16V(v, e)
  1163. case *map[int8]int16:
  1164. fastpathTV.EncMapInt8Int16V(*v, e)
  1165. case map[int8]int32:
  1166. fastpathTV.EncMapInt8Int32V(v, e)
  1167. case *map[int8]int32:
  1168. fastpathTV.EncMapInt8Int32V(*v, e)
  1169. case map[int8]int64:
  1170. fastpathTV.EncMapInt8Int64V(v, e)
  1171. case *map[int8]int64:
  1172. fastpathTV.EncMapInt8Int64V(*v, e)
  1173. case map[int8]float32:
  1174. fastpathTV.EncMapInt8Float32V(v, e)
  1175. case *map[int8]float32:
  1176. fastpathTV.EncMapInt8Float32V(*v, e)
  1177. case map[int8]float64:
  1178. fastpathTV.EncMapInt8Float64V(v, e)
  1179. case *map[int8]float64:
  1180. fastpathTV.EncMapInt8Float64V(*v, e)
  1181. case map[int8]bool:
  1182. fastpathTV.EncMapInt8BoolV(v, e)
  1183. case *map[int8]bool:
  1184. fastpathTV.EncMapInt8BoolV(*v, e)
  1185. case map[int16]interface{}:
  1186. fastpathTV.EncMapInt16IntfV(v, e)
  1187. case *map[int16]interface{}:
  1188. fastpathTV.EncMapInt16IntfV(*v, e)
  1189. case map[int16]string:
  1190. fastpathTV.EncMapInt16StringV(v, e)
  1191. case *map[int16]string:
  1192. fastpathTV.EncMapInt16StringV(*v, e)
  1193. case map[int16]uint:
  1194. fastpathTV.EncMapInt16UintV(v, e)
  1195. case *map[int16]uint:
  1196. fastpathTV.EncMapInt16UintV(*v, e)
  1197. case map[int16]uint8:
  1198. fastpathTV.EncMapInt16Uint8V(v, e)
  1199. case *map[int16]uint8:
  1200. fastpathTV.EncMapInt16Uint8V(*v, e)
  1201. case map[int16]uint16:
  1202. fastpathTV.EncMapInt16Uint16V(v, e)
  1203. case *map[int16]uint16:
  1204. fastpathTV.EncMapInt16Uint16V(*v, e)
  1205. case map[int16]uint32:
  1206. fastpathTV.EncMapInt16Uint32V(v, e)
  1207. case *map[int16]uint32:
  1208. fastpathTV.EncMapInt16Uint32V(*v, e)
  1209. case map[int16]uint64:
  1210. fastpathTV.EncMapInt16Uint64V(v, e)
  1211. case *map[int16]uint64:
  1212. fastpathTV.EncMapInt16Uint64V(*v, e)
  1213. case map[int16]uintptr:
  1214. fastpathTV.EncMapInt16UintptrV(v, e)
  1215. case *map[int16]uintptr:
  1216. fastpathTV.EncMapInt16UintptrV(*v, e)
  1217. case map[int16]int:
  1218. fastpathTV.EncMapInt16IntV(v, e)
  1219. case *map[int16]int:
  1220. fastpathTV.EncMapInt16IntV(*v, e)
  1221. case map[int16]int8:
  1222. fastpathTV.EncMapInt16Int8V(v, e)
  1223. case *map[int16]int8:
  1224. fastpathTV.EncMapInt16Int8V(*v, e)
  1225. case map[int16]int16:
  1226. fastpathTV.EncMapInt16Int16V(v, e)
  1227. case *map[int16]int16:
  1228. fastpathTV.EncMapInt16Int16V(*v, e)
  1229. case map[int16]int32:
  1230. fastpathTV.EncMapInt16Int32V(v, e)
  1231. case *map[int16]int32:
  1232. fastpathTV.EncMapInt16Int32V(*v, e)
  1233. case map[int16]int64:
  1234. fastpathTV.EncMapInt16Int64V(v, e)
  1235. case *map[int16]int64:
  1236. fastpathTV.EncMapInt16Int64V(*v, e)
  1237. case map[int16]float32:
  1238. fastpathTV.EncMapInt16Float32V(v, e)
  1239. case *map[int16]float32:
  1240. fastpathTV.EncMapInt16Float32V(*v, e)
  1241. case map[int16]float64:
  1242. fastpathTV.EncMapInt16Float64V(v, e)
  1243. case *map[int16]float64:
  1244. fastpathTV.EncMapInt16Float64V(*v, e)
  1245. case map[int16]bool:
  1246. fastpathTV.EncMapInt16BoolV(v, e)
  1247. case *map[int16]bool:
  1248. fastpathTV.EncMapInt16BoolV(*v, e)
  1249. case map[int32]interface{}:
  1250. fastpathTV.EncMapInt32IntfV(v, e)
  1251. case *map[int32]interface{}:
  1252. fastpathTV.EncMapInt32IntfV(*v, e)
  1253. case map[int32]string:
  1254. fastpathTV.EncMapInt32StringV(v, e)
  1255. case *map[int32]string:
  1256. fastpathTV.EncMapInt32StringV(*v, e)
  1257. case map[int32]uint:
  1258. fastpathTV.EncMapInt32UintV(v, e)
  1259. case *map[int32]uint:
  1260. fastpathTV.EncMapInt32UintV(*v, e)
  1261. case map[int32]uint8:
  1262. fastpathTV.EncMapInt32Uint8V(v, e)
  1263. case *map[int32]uint8:
  1264. fastpathTV.EncMapInt32Uint8V(*v, e)
  1265. case map[int32]uint16:
  1266. fastpathTV.EncMapInt32Uint16V(v, e)
  1267. case *map[int32]uint16:
  1268. fastpathTV.EncMapInt32Uint16V(*v, e)
  1269. case map[int32]uint32:
  1270. fastpathTV.EncMapInt32Uint32V(v, e)
  1271. case *map[int32]uint32:
  1272. fastpathTV.EncMapInt32Uint32V(*v, e)
  1273. case map[int32]uint64:
  1274. fastpathTV.EncMapInt32Uint64V(v, e)
  1275. case *map[int32]uint64:
  1276. fastpathTV.EncMapInt32Uint64V(*v, e)
  1277. case map[int32]uintptr:
  1278. fastpathTV.EncMapInt32UintptrV(v, e)
  1279. case *map[int32]uintptr:
  1280. fastpathTV.EncMapInt32UintptrV(*v, e)
  1281. case map[int32]int:
  1282. fastpathTV.EncMapInt32IntV(v, e)
  1283. case *map[int32]int:
  1284. fastpathTV.EncMapInt32IntV(*v, e)
  1285. case map[int32]int8:
  1286. fastpathTV.EncMapInt32Int8V(v, e)
  1287. case *map[int32]int8:
  1288. fastpathTV.EncMapInt32Int8V(*v, e)
  1289. case map[int32]int16:
  1290. fastpathTV.EncMapInt32Int16V(v, e)
  1291. case *map[int32]int16:
  1292. fastpathTV.EncMapInt32Int16V(*v, e)
  1293. case map[int32]int32:
  1294. fastpathTV.EncMapInt32Int32V(v, e)
  1295. case *map[int32]int32:
  1296. fastpathTV.EncMapInt32Int32V(*v, e)
  1297. case map[int32]int64:
  1298. fastpathTV.EncMapInt32Int64V(v, e)
  1299. case *map[int32]int64:
  1300. fastpathTV.EncMapInt32Int64V(*v, e)
  1301. case map[int32]float32:
  1302. fastpathTV.EncMapInt32Float32V(v, e)
  1303. case *map[int32]float32:
  1304. fastpathTV.EncMapInt32Float32V(*v, e)
  1305. case map[int32]float64:
  1306. fastpathTV.EncMapInt32Float64V(v, e)
  1307. case *map[int32]float64:
  1308. fastpathTV.EncMapInt32Float64V(*v, e)
  1309. case map[int32]bool:
  1310. fastpathTV.EncMapInt32BoolV(v, e)
  1311. case *map[int32]bool:
  1312. fastpathTV.EncMapInt32BoolV(*v, e)
  1313. case map[int64]interface{}:
  1314. fastpathTV.EncMapInt64IntfV(v, e)
  1315. case *map[int64]interface{}:
  1316. fastpathTV.EncMapInt64IntfV(*v, e)
  1317. case map[int64]string:
  1318. fastpathTV.EncMapInt64StringV(v, e)
  1319. case *map[int64]string:
  1320. fastpathTV.EncMapInt64StringV(*v, e)
  1321. case map[int64]uint:
  1322. fastpathTV.EncMapInt64UintV(v, e)
  1323. case *map[int64]uint:
  1324. fastpathTV.EncMapInt64UintV(*v, e)
  1325. case map[int64]uint8:
  1326. fastpathTV.EncMapInt64Uint8V(v, e)
  1327. case *map[int64]uint8:
  1328. fastpathTV.EncMapInt64Uint8V(*v, e)
  1329. case map[int64]uint16:
  1330. fastpathTV.EncMapInt64Uint16V(v, e)
  1331. case *map[int64]uint16:
  1332. fastpathTV.EncMapInt64Uint16V(*v, e)
  1333. case map[int64]uint32:
  1334. fastpathTV.EncMapInt64Uint32V(v, e)
  1335. case *map[int64]uint32:
  1336. fastpathTV.EncMapInt64Uint32V(*v, e)
  1337. case map[int64]uint64:
  1338. fastpathTV.EncMapInt64Uint64V(v, e)
  1339. case *map[int64]uint64:
  1340. fastpathTV.EncMapInt64Uint64V(*v, e)
  1341. case map[int64]uintptr:
  1342. fastpathTV.EncMapInt64UintptrV(v, e)
  1343. case *map[int64]uintptr:
  1344. fastpathTV.EncMapInt64UintptrV(*v, e)
  1345. case map[int64]int:
  1346. fastpathTV.EncMapInt64IntV(v, e)
  1347. case *map[int64]int:
  1348. fastpathTV.EncMapInt64IntV(*v, e)
  1349. case map[int64]int8:
  1350. fastpathTV.EncMapInt64Int8V(v, e)
  1351. case *map[int64]int8:
  1352. fastpathTV.EncMapInt64Int8V(*v, e)
  1353. case map[int64]int16:
  1354. fastpathTV.EncMapInt64Int16V(v, e)
  1355. case *map[int64]int16:
  1356. fastpathTV.EncMapInt64Int16V(*v, e)
  1357. case map[int64]int32:
  1358. fastpathTV.EncMapInt64Int32V(v, e)
  1359. case *map[int64]int32:
  1360. fastpathTV.EncMapInt64Int32V(*v, e)
  1361. case map[int64]int64:
  1362. fastpathTV.EncMapInt64Int64V(v, e)
  1363. case *map[int64]int64:
  1364. fastpathTV.EncMapInt64Int64V(*v, e)
  1365. case map[int64]float32:
  1366. fastpathTV.EncMapInt64Float32V(v, e)
  1367. case *map[int64]float32:
  1368. fastpathTV.EncMapInt64Float32V(*v, e)
  1369. case map[int64]float64:
  1370. fastpathTV.EncMapInt64Float64V(v, e)
  1371. case *map[int64]float64:
  1372. fastpathTV.EncMapInt64Float64V(*v, e)
  1373. case map[int64]bool:
  1374. fastpathTV.EncMapInt64BoolV(v, e)
  1375. case *map[int64]bool:
  1376. fastpathTV.EncMapInt64BoolV(*v, e)
  1377. case map[bool]interface{}:
  1378. fastpathTV.EncMapBoolIntfV(v, e)
  1379. case *map[bool]interface{}:
  1380. fastpathTV.EncMapBoolIntfV(*v, e)
  1381. case map[bool]string:
  1382. fastpathTV.EncMapBoolStringV(v, e)
  1383. case *map[bool]string:
  1384. fastpathTV.EncMapBoolStringV(*v, e)
  1385. case map[bool]uint:
  1386. fastpathTV.EncMapBoolUintV(v, e)
  1387. case *map[bool]uint:
  1388. fastpathTV.EncMapBoolUintV(*v, e)
  1389. case map[bool]uint8:
  1390. fastpathTV.EncMapBoolUint8V(v, e)
  1391. case *map[bool]uint8:
  1392. fastpathTV.EncMapBoolUint8V(*v, e)
  1393. case map[bool]uint16:
  1394. fastpathTV.EncMapBoolUint16V(v, e)
  1395. case *map[bool]uint16:
  1396. fastpathTV.EncMapBoolUint16V(*v, e)
  1397. case map[bool]uint32:
  1398. fastpathTV.EncMapBoolUint32V(v, e)
  1399. case *map[bool]uint32:
  1400. fastpathTV.EncMapBoolUint32V(*v, e)
  1401. case map[bool]uint64:
  1402. fastpathTV.EncMapBoolUint64V(v, e)
  1403. case *map[bool]uint64:
  1404. fastpathTV.EncMapBoolUint64V(*v, e)
  1405. case map[bool]uintptr:
  1406. fastpathTV.EncMapBoolUintptrV(v, e)
  1407. case *map[bool]uintptr:
  1408. fastpathTV.EncMapBoolUintptrV(*v, e)
  1409. case map[bool]int:
  1410. fastpathTV.EncMapBoolIntV(v, e)
  1411. case *map[bool]int:
  1412. fastpathTV.EncMapBoolIntV(*v, e)
  1413. case map[bool]int8:
  1414. fastpathTV.EncMapBoolInt8V(v, e)
  1415. case *map[bool]int8:
  1416. fastpathTV.EncMapBoolInt8V(*v, e)
  1417. case map[bool]int16:
  1418. fastpathTV.EncMapBoolInt16V(v, e)
  1419. case *map[bool]int16:
  1420. fastpathTV.EncMapBoolInt16V(*v, e)
  1421. case map[bool]int32:
  1422. fastpathTV.EncMapBoolInt32V(v, e)
  1423. case *map[bool]int32:
  1424. fastpathTV.EncMapBoolInt32V(*v, e)
  1425. case map[bool]int64:
  1426. fastpathTV.EncMapBoolInt64V(v, e)
  1427. case *map[bool]int64:
  1428. fastpathTV.EncMapBoolInt64V(*v, e)
  1429. case map[bool]float32:
  1430. fastpathTV.EncMapBoolFloat32V(v, e)
  1431. case *map[bool]float32:
  1432. fastpathTV.EncMapBoolFloat32V(*v, e)
  1433. case map[bool]float64:
  1434. fastpathTV.EncMapBoolFloat64V(v, e)
  1435. case *map[bool]float64:
  1436. fastpathTV.EncMapBoolFloat64V(*v, e)
  1437. case map[bool]bool:
  1438. fastpathTV.EncMapBoolBoolV(v, e)
  1439. case *map[bool]bool:
  1440. fastpathTV.EncMapBoolBoolV(*v, e)
  1441. default:
  1442. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  1443. return false
  1444. }
  1445. return true
  1446. }
  1447. // -- -- fast path functions
  1448. func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  1449. if f.ti.mbs {
  1450. fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
  1451. } else {
  1452. fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
  1453. }
  1454. }
  1455. func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
  1456. if v == nil {
  1457. e.e.EncodeNil()
  1458. return
  1459. }
  1460. ee, esep := e.e, e.hh.hasElemSeparators()
  1461. ee.WriteArrayStart(len(v))
  1462. if esep {
  1463. for _, v2 := range v {
  1464. ee.WriteArrayElem()
  1465. e.encode(v2)
  1466. }
  1467. } else {
  1468. for _, v2 := range v {
  1469. e.encode(v2)
  1470. }
  1471. }
  1472. ee.WriteArrayEnd()
  1473. }
  1474. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  1475. ee, esep := e.e, e.hh.hasElemSeparators()
  1476. if len(v)%2 == 1 {
  1477. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1478. return
  1479. }
  1480. ee.WriteMapStart(len(v) / 2)
  1481. if esep {
  1482. for j, v2 := range v {
  1483. if j%2 == 0 {
  1484. ee.WriteMapElemKey()
  1485. } else {
  1486. ee.WriteMapElemValue()
  1487. }
  1488. e.encode(v2)
  1489. }
  1490. } else {
  1491. for _, v2 := range v {
  1492. e.encode(v2)
  1493. }
  1494. }
  1495. ee.WriteMapEnd()
  1496. }
  1497. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  1498. if f.ti.mbs {
  1499. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  1500. } else {
  1501. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  1502. }
  1503. }
  1504. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  1505. if v == nil {
  1506. e.e.EncodeNil()
  1507. return
  1508. }
  1509. ee, esep := e.e, e.hh.hasElemSeparators()
  1510. ee.WriteArrayStart(len(v))
  1511. if esep {
  1512. for _, v2 := range v {
  1513. ee.WriteArrayElem()
  1514. ee.EncodeStringEnc(cUTF8, v2)
  1515. }
  1516. } else {
  1517. for _, v2 := range v {
  1518. ee.EncodeStringEnc(cUTF8, v2)
  1519. }
  1520. }
  1521. ee.WriteArrayEnd()
  1522. }
  1523. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  1524. ee, esep := e.e, e.hh.hasElemSeparators()
  1525. if len(v)%2 == 1 {
  1526. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1527. return
  1528. }
  1529. ee.WriteMapStart(len(v) / 2)
  1530. if esep {
  1531. for j, v2 := range v {
  1532. if j%2 == 0 {
  1533. ee.WriteMapElemKey()
  1534. } else {
  1535. ee.WriteMapElemValue()
  1536. }
  1537. ee.EncodeStringEnc(cUTF8, v2)
  1538. }
  1539. } else {
  1540. for _, v2 := range v {
  1541. ee.EncodeStringEnc(cUTF8, v2)
  1542. }
  1543. }
  1544. ee.WriteMapEnd()
  1545. }
  1546. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  1547. if f.ti.mbs {
  1548. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  1549. } else {
  1550. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  1551. }
  1552. }
  1553. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  1554. if v == nil {
  1555. e.e.EncodeNil()
  1556. return
  1557. }
  1558. ee, esep := e.e, e.hh.hasElemSeparators()
  1559. ee.WriteArrayStart(len(v))
  1560. if esep {
  1561. for _, v2 := range v {
  1562. ee.WriteArrayElem()
  1563. ee.EncodeFloat32(v2)
  1564. }
  1565. } else {
  1566. for _, v2 := range v {
  1567. ee.EncodeFloat32(v2)
  1568. }
  1569. }
  1570. ee.WriteArrayEnd()
  1571. }
  1572. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  1573. ee, esep := e.e, e.hh.hasElemSeparators()
  1574. if len(v)%2 == 1 {
  1575. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1576. return
  1577. }
  1578. ee.WriteMapStart(len(v) / 2)
  1579. if esep {
  1580. for j, v2 := range v {
  1581. if j%2 == 0 {
  1582. ee.WriteMapElemKey()
  1583. } else {
  1584. ee.WriteMapElemValue()
  1585. }
  1586. ee.EncodeFloat32(v2)
  1587. }
  1588. } else {
  1589. for _, v2 := range v {
  1590. ee.EncodeFloat32(v2)
  1591. }
  1592. }
  1593. ee.WriteMapEnd()
  1594. }
  1595. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  1596. if f.ti.mbs {
  1597. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  1598. } else {
  1599. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  1600. }
  1601. }
  1602. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  1603. if v == nil {
  1604. e.e.EncodeNil()
  1605. return
  1606. }
  1607. ee, esep := e.e, e.hh.hasElemSeparators()
  1608. ee.WriteArrayStart(len(v))
  1609. if esep {
  1610. for _, v2 := range v {
  1611. ee.WriteArrayElem()
  1612. ee.EncodeFloat64(v2)
  1613. }
  1614. } else {
  1615. for _, v2 := range v {
  1616. ee.EncodeFloat64(v2)
  1617. }
  1618. }
  1619. ee.WriteArrayEnd()
  1620. }
  1621. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  1622. ee, esep := e.e, e.hh.hasElemSeparators()
  1623. if len(v)%2 == 1 {
  1624. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1625. return
  1626. }
  1627. ee.WriteMapStart(len(v) / 2)
  1628. if esep {
  1629. for j, v2 := range v {
  1630. if j%2 == 0 {
  1631. ee.WriteMapElemKey()
  1632. } else {
  1633. ee.WriteMapElemValue()
  1634. }
  1635. ee.EncodeFloat64(v2)
  1636. }
  1637. } else {
  1638. for _, v2 := range v {
  1639. ee.EncodeFloat64(v2)
  1640. }
  1641. }
  1642. ee.WriteMapEnd()
  1643. }
  1644. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  1645. if f.ti.mbs {
  1646. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  1647. } else {
  1648. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  1649. }
  1650. }
  1651. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  1652. if v == nil {
  1653. e.e.EncodeNil()
  1654. return
  1655. }
  1656. ee, esep := e.e, e.hh.hasElemSeparators()
  1657. ee.WriteArrayStart(len(v))
  1658. if esep {
  1659. for _, v2 := range v {
  1660. ee.WriteArrayElem()
  1661. ee.EncodeUint(uint64(v2))
  1662. }
  1663. } else {
  1664. for _, v2 := range v {
  1665. ee.EncodeUint(uint64(v2))
  1666. }
  1667. }
  1668. ee.WriteArrayEnd()
  1669. }
  1670. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  1671. ee, esep := e.e, e.hh.hasElemSeparators()
  1672. if len(v)%2 == 1 {
  1673. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1674. return
  1675. }
  1676. ee.WriteMapStart(len(v) / 2)
  1677. if esep {
  1678. for j, v2 := range v {
  1679. if j%2 == 0 {
  1680. ee.WriteMapElemKey()
  1681. } else {
  1682. ee.WriteMapElemValue()
  1683. }
  1684. ee.EncodeUint(uint64(v2))
  1685. }
  1686. } else {
  1687. for _, v2 := range v {
  1688. ee.EncodeUint(uint64(v2))
  1689. }
  1690. }
  1691. ee.WriteMapEnd()
  1692. }
  1693. func (e *Encoder) fastpathEncSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  1694. if f.ti.mbs {
  1695. fastpathTV.EncAsMapSliceUint8V(rv2i(rv).([]uint8), e)
  1696. } else {
  1697. fastpathTV.EncSliceUint8V(rv2i(rv).([]uint8), e)
  1698. }
  1699. }
  1700. func (_ fastpathT) EncSliceUint8V(v []uint8, e *Encoder) {
  1701. if v == nil {
  1702. e.e.EncodeNil()
  1703. return
  1704. }
  1705. ee, esep := e.e, e.hh.hasElemSeparators()
  1706. ee.WriteArrayStart(len(v))
  1707. if esep {
  1708. for _, v2 := range v {
  1709. ee.WriteArrayElem()
  1710. ee.EncodeUint(uint64(v2))
  1711. }
  1712. } else {
  1713. for _, v2 := range v {
  1714. ee.EncodeUint(uint64(v2))
  1715. }
  1716. }
  1717. ee.WriteArrayEnd()
  1718. }
  1719. func (_ fastpathT) EncAsMapSliceUint8V(v []uint8, e *Encoder) {
  1720. ee, esep := e.e, e.hh.hasElemSeparators()
  1721. if len(v)%2 == 1 {
  1722. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1723. return
  1724. }
  1725. ee.WriteMapStart(len(v) / 2)
  1726. if esep {
  1727. for j, v2 := range v {
  1728. if j%2 == 0 {
  1729. ee.WriteMapElemKey()
  1730. } else {
  1731. ee.WriteMapElemValue()
  1732. }
  1733. ee.EncodeUint(uint64(v2))
  1734. }
  1735. } else {
  1736. for _, v2 := range v {
  1737. ee.EncodeUint(uint64(v2))
  1738. }
  1739. }
  1740. ee.WriteMapEnd()
  1741. }
  1742. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  1743. if f.ti.mbs {
  1744. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  1745. } else {
  1746. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  1747. }
  1748. }
  1749. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  1750. if v == nil {
  1751. e.e.EncodeNil()
  1752. return
  1753. }
  1754. ee, esep := e.e, e.hh.hasElemSeparators()
  1755. ee.WriteArrayStart(len(v))
  1756. if esep {
  1757. for _, v2 := range v {
  1758. ee.WriteArrayElem()
  1759. ee.EncodeUint(uint64(v2))
  1760. }
  1761. } else {
  1762. for _, v2 := range v {
  1763. ee.EncodeUint(uint64(v2))
  1764. }
  1765. }
  1766. ee.WriteArrayEnd()
  1767. }
  1768. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  1769. ee, esep := e.e, e.hh.hasElemSeparators()
  1770. if len(v)%2 == 1 {
  1771. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1772. return
  1773. }
  1774. ee.WriteMapStart(len(v) / 2)
  1775. if esep {
  1776. for j, v2 := range v {
  1777. if j%2 == 0 {
  1778. ee.WriteMapElemKey()
  1779. } else {
  1780. ee.WriteMapElemValue()
  1781. }
  1782. ee.EncodeUint(uint64(v2))
  1783. }
  1784. } else {
  1785. for _, v2 := range v {
  1786. ee.EncodeUint(uint64(v2))
  1787. }
  1788. }
  1789. ee.WriteMapEnd()
  1790. }
  1791. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  1792. if f.ti.mbs {
  1793. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  1794. } else {
  1795. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  1796. }
  1797. }
  1798. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  1799. if v == nil {
  1800. e.e.EncodeNil()
  1801. return
  1802. }
  1803. ee, esep := e.e, e.hh.hasElemSeparators()
  1804. ee.WriteArrayStart(len(v))
  1805. if esep {
  1806. for _, v2 := range v {
  1807. ee.WriteArrayElem()
  1808. ee.EncodeUint(uint64(v2))
  1809. }
  1810. } else {
  1811. for _, v2 := range v {
  1812. ee.EncodeUint(uint64(v2))
  1813. }
  1814. }
  1815. ee.WriteArrayEnd()
  1816. }
  1817. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
  1818. ee, esep := e.e, e.hh.hasElemSeparators()
  1819. if len(v)%2 == 1 {
  1820. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1821. return
  1822. }
  1823. ee.WriteMapStart(len(v) / 2)
  1824. if esep {
  1825. for j, v2 := range v {
  1826. if j%2 == 0 {
  1827. ee.WriteMapElemKey()
  1828. } else {
  1829. ee.WriteMapElemValue()
  1830. }
  1831. ee.EncodeUint(uint64(v2))
  1832. }
  1833. } else {
  1834. for _, v2 := range v {
  1835. ee.EncodeUint(uint64(v2))
  1836. }
  1837. }
  1838. ee.WriteMapEnd()
  1839. }
  1840. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  1841. if f.ti.mbs {
  1842. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  1843. } else {
  1844. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  1845. }
  1846. }
  1847. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  1848. if v == nil {
  1849. e.e.EncodeNil()
  1850. return
  1851. }
  1852. ee, esep := e.e, e.hh.hasElemSeparators()
  1853. ee.WriteArrayStart(len(v))
  1854. if esep {
  1855. for _, v2 := range v {
  1856. ee.WriteArrayElem()
  1857. ee.EncodeUint(uint64(v2))
  1858. }
  1859. } else {
  1860. for _, v2 := range v {
  1861. ee.EncodeUint(uint64(v2))
  1862. }
  1863. }
  1864. ee.WriteArrayEnd()
  1865. }
  1866. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  1867. ee, esep := e.e, e.hh.hasElemSeparators()
  1868. if len(v)%2 == 1 {
  1869. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1870. return
  1871. }
  1872. ee.WriteMapStart(len(v) / 2)
  1873. if esep {
  1874. for j, v2 := range v {
  1875. if j%2 == 0 {
  1876. ee.WriteMapElemKey()
  1877. } else {
  1878. ee.WriteMapElemValue()
  1879. }
  1880. ee.EncodeUint(uint64(v2))
  1881. }
  1882. } else {
  1883. for _, v2 := range v {
  1884. ee.EncodeUint(uint64(v2))
  1885. }
  1886. }
  1887. ee.WriteMapEnd()
  1888. }
  1889. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  1890. if f.ti.mbs {
  1891. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  1892. } else {
  1893. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  1894. }
  1895. }
  1896. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  1897. if v == nil {
  1898. e.e.EncodeNil()
  1899. return
  1900. }
  1901. ee, esep := e.e, e.hh.hasElemSeparators()
  1902. ee.WriteArrayStart(len(v))
  1903. if esep {
  1904. for _, v2 := range v {
  1905. ee.WriteArrayElem()
  1906. e.encode(v2)
  1907. }
  1908. } else {
  1909. for _, v2 := range v {
  1910. e.encode(v2)
  1911. }
  1912. }
  1913. ee.WriteArrayEnd()
  1914. }
  1915. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  1916. ee, esep := e.e, e.hh.hasElemSeparators()
  1917. if len(v)%2 == 1 {
  1918. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1919. return
  1920. }
  1921. ee.WriteMapStart(len(v) / 2)
  1922. if esep {
  1923. for j, v2 := range v {
  1924. if j%2 == 0 {
  1925. ee.WriteMapElemKey()
  1926. } else {
  1927. ee.WriteMapElemValue()
  1928. }
  1929. e.encode(v2)
  1930. }
  1931. } else {
  1932. for _, v2 := range v {
  1933. e.encode(v2)
  1934. }
  1935. }
  1936. ee.WriteMapEnd()
  1937. }
  1938. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  1939. if f.ti.mbs {
  1940. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  1941. } else {
  1942. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  1943. }
  1944. }
  1945. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  1946. if v == nil {
  1947. e.e.EncodeNil()
  1948. return
  1949. }
  1950. ee, esep := e.e, e.hh.hasElemSeparators()
  1951. ee.WriteArrayStart(len(v))
  1952. if esep {
  1953. for _, v2 := range v {
  1954. ee.WriteArrayElem()
  1955. ee.EncodeInt(int64(v2))
  1956. }
  1957. } else {
  1958. for _, v2 := range v {
  1959. ee.EncodeInt(int64(v2))
  1960. }
  1961. }
  1962. ee.WriteArrayEnd()
  1963. }
  1964. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  1965. ee, esep := e.e, e.hh.hasElemSeparators()
  1966. if len(v)%2 == 1 {
  1967. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1968. return
  1969. }
  1970. ee.WriteMapStart(len(v) / 2)
  1971. if esep {
  1972. for j, v2 := range v {
  1973. if j%2 == 0 {
  1974. ee.WriteMapElemKey()
  1975. } else {
  1976. ee.WriteMapElemValue()
  1977. }
  1978. ee.EncodeInt(int64(v2))
  1979. }
  1980. } else {
  1981. for _, v2 := range v {
  1982. ee.EncodeInt(int64(v2))
  1983. }
  1984. }
  1985. ee.WriteMapEnd()
  1986. }
  1987. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  1988. if f.ti.mbs {
  1989. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  1990. } else {
  1991. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  1992. }
  1993. }
  1994. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  1995. if v == nil {
  1996. e.e.EncodeNil()
  1997. return
  1998. }
  1999. ee, esep := e.e, e.hh.hasElemSeparators()
  2000. ee.WriteArrayStart(len(v))
  2001. if esep {
  2002. for _, v2 := range v {
  2003. ee.WriteArrayElem()
  2004. ee.EncodeInt(int64(v2))
  2005. }
  2006. } else {
  2007. for _, v2 := range v {
  2008. ee.EncodeInt(int64(v2))
  2009. }
  2010. }
  2011. ee.WriteArrayEnd()
  2012. }
  2013. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  2014. ee, esep := e.e, e.hh.hasElemSeparators()
  2015. if len(v)%2 == 1 {
  2016. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2017. return
  2018. }
  2019. ee.WriteMapStart(len(v) / 2)
  2020. if esep {
  2021. for j, v2 := range v {
  2022. if j%2 == 0 {
  2023. ee.WriteMapElemKey()
  2024. } else {
  2025. ee.WriteMapElemValue()
  2026. }
  2027. ee.EncodeInt(int64(v2))
  2028. }
  2029. } else {
  2030. for _, v2 := range v {
  2031. ee.EncodeInt(int64(v2))
  2032. }
  2033. }
  2034. ee.WriteMapEnd()
  2035. }
  2036. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  2037. if f.ti.mbs {
  2038. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  2039. } else {
  2040. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  2041. }
  2042. }
  2043. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  2044. if v == nil {
  2045. e.e.EncodeNil()
  2046. return
  2047. }
  2048. ee, esep := e.e, e.hh.hasElemSeparators()
  2049. ee.WriteArrayStart(len(v))
  2050. if esep {
  2051. for _, v2 := range v {
  2052. ee.WriteArrayElem()
  2053. ee.EncodeInt(int64(v2))
  2054. }
  2055. } else {
  2056. for _, v2 := range v {
  2057. ee.EncodeInt(int64(v2))
  2058. }
  2059. }
  2060. ee.WriteArrayEnd()
  2061. }
  2062. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
  2063. ee, esep := e.e, e.hh.hasElemSeparators()
  2064. if len(v)%2 == 1 {
  2065. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2066. return
  2067. }
  2068. ee.WriteMapStart(len(v) / 2)
  2069. if esep {
  2070. for j, v2 := range v {
  2071. if j%2 == 0 {
  2072. ee.WriteMapElemKey()
  2073. } else {
  2074. ee.WriteMapElemValue()
  2075. }
  2076. ee.EncodeInt(int64(v2))
  2077. }
  2078. } else {
  2079. for _, v2 := range v {
  2080. ee.EncodeInt(int64(v2))
  2081. }
  2082. }
  2083. ee.WriteMapEnd()
  2084. }
  2085. func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  2086. if f.ti.mbs {
  2087. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  2088. } else {
  2089. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  2090. }
  2091. }
  2092. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  2093. if v == nil {
  2094. e.e.EncodeNil()
  2095. return
  2096. }
  2097. ee, esep := e.e, e.hh.hasElemSeparators()
  2098. ee.WriteArrayStart(len(v))
  2099. if esep {
  2100. for _, v2 := range v {
  2101. ee.WriteArrayElem()
  2102. ee.EncodeInt(int64(v2))
  2103. }
  2104. } else {
  2105. for _, v2 := range v {
  2106. ee.EncodeInt(int64(v2))
  2107. }
  2108. }
  2109. ee.WriteArrayEnd()
  2110. }
  2111. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  2112. ee, esep := e.e, e.hh.hasElemSeparators()
  2113. if len(v)%2 == 1 {
  2114. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2115. return
  2116. }
  2117. ee.WriteMapStart(len(v) / 2)
  2118. if esep {
  2119. for j, v2 := range v {
  2120. if j%2 == 0 {
  2121. ee.WriteMapElemKey()
  2122. } else {
  2123. ee.WriteMapElemValue()
  2124. }
  2125. ee.EncodeInt(int64(v2))
  2126. }
  2127. } else {
  2128. for _, v2 := range v {
  2129. ee.EncodeInt(int64(v2))
  2130. }
  2131. }
  2132. ee.WriteMapEnd()
  2133. }
  2134. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  2135. if f.ti.mbs {
  2136. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  2137. } else {
  2138. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  2139. }
  2140. }
  2141. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  2142. if v == nil {
  2143. e.e.EncodeNil()
  2144. return
  2145. }
  2146. ee, esep := e.e, e.hh.hasElemSeparators()
  2147. ee.WriteArrayStart(len(v))
  2148. if esep {
  2149. for _, v2 := range v {
  2150. ee.WriteArrayElem()
  2151. ee.EncodeInt(int64(v2))
  2152. }
  2153. } else {
  2154. for _, v2 := range v {
  2155. ee.EncodeInt(int64(v2))
  2156. }
  2157. }
  2158. ee.WriteArrayEnd()
  2159. }
  2160. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  2161. ee, esep := e.e, e.hh.hasElemSeparators()
  2162. if len(v)%2 == 1 {
  2163. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2164. return
  2165. }
  2166. ee.WriteMapStart(len(v) / 2)
  2167. if esep {
  2168. for j, v2 := range v {
  2169. if j%2 == 0 {
  2170. ee.WriteMapElemKey()
  2171. } else {
  2172. ee.WriteMapElemValue()
  2173. }
  2174. ee.EncodeInt(int64(v2))
  2175. }
  2176. } else {
  2177. for _, v2 := range v {
  2178. ee.EncodeInt(int64(v2))
  2179. }
  2180. }
  2181. ee.WriteMapEnd()
  2182. }
  2183. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  2184. if f.ti.mbs {
  2185. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  2186. } else {
  2187. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  2188. }
  2189. }
  2190. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  2191. if v == nil {
  2192. e.e.EncodeNil()
  2193. return
  2194. }
  2195. ee, esep := e.e, e.hh.hasElemSeparators()
  2196. ee.WriteArrayStart(len(v))
  2197. if esep {
  2198. for _, v2 := range v {
  2199. ee.WriteArrayElem()
  2200. ee.EncodeBool(v2)
  2201. }
  2202. } else {
  2203. for _, v2 := range v {
  2204. ee.EncodeBool(v2)
  2205. }
  2206. }
  2207. ee.WriteArrayEnd()
  2208. }
  2209. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  2210. ee, esep := e.e, e.hh.hasElemSeparators()
  2211. if len(v)%2 == 1 {
  2212. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2213. return
  2214. }
  2215. ee.WriteMapStart(len(v) / 2)
  2216. if esep {
  2217. for j, v2 := range v {
  2218. if j%2 == 0 {
  2219. ee.WriteMapElemKey()
  2220. } else {
  2221. ee.WriteMapElemValue()
  2222. }
  2223. ee.EncodeBool(v2)
  2224. }
  2225. } else {
  2226. for _, v2 := range v {
  2227. ee.EncodeBool(v2)
  2228. }
  2229. }
  2230. ee.WriteMapEnd()
  2231. }
  2232. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  2233. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  2234. }
  2235. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  2236. if v == nil {
  2237. e.e.EncodeNil()
  2238. return
  2239. }
  2240. ee, esep := e.e, e.hh.hasElemSeparators()
  2241. ee.WriteMapStart(len(v))
  2242. if e.h.Canonical {
  2243. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2244. e2 := NewEncoderBytes(&mksv, e.hh)
  2245. v2 := make([]bytesI, len(v))
  2246. var i, l uint
  2247. var vp *bytesI
  2248. for k2 := range v {
  2249. l = uint(len(mksv))
  2250. e2.MustEncode(k2)
  2251. vp = &v2[i]
  2252. vp.v = mksv[l:]
  2253. vp.i = k2
  2254. i++
  2255. }
  2256. sort.Sort(bytesISlice(v2))
  2257. if esep {
  2258. for j := range v2 {
  2259. ee.WriteMapElemKey()
  2260. e.asis(v2[j].v)
  2261. ee.WriteMapElemValue()
  2262. e.encode(v[v2[j].i])
  2263. }
  2264. } else {
  2265. for j := range v2 {
  2266. e.asis(v2[j].v)
  2267. e.encode(v[v2[j].i])
  2268. }
  2269. }
  2270. } else {
  2271. if esep {
  2272. for k2, v2 := range v {
  2273. ee.WriteMapElemKey()
  2274. e.encode(k2)
  2275. ee.WriteMapElemValue()
  2276. e.encode(v2)
  2277. }
  2278. } else {
  2279. for k2, v2 := range v {
  2280. e.encode(k2)
  2281. e.encode(v2)
  2282. }
  2283. }
  2284. }
  2285. ee.WriteMapEnd()
  2286. }
  2287. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  2288. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  2289. }
  2290. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  2291. if v == nil {
  2292. e.e.EncodeNil()
  2293. return
  2294. }
  2295. ee, esep := e.e, e.hh.hasElemSeparators()
  2296. ee.WriteMapStart(len(v))
  2297. if e.h.Canonical {
  2298. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2299. e2 := NewEncoderBytes(&mksv, e.hh)
  2300. v2 := make([]bytesI, len(v))
  2301. var i, l uint
  2302. var vp *bytesI
  2303. for k2 := range v {
  2304. l = uint(len(mksv))
  2305. e2.MustEncode(k2)
  2306. vp = &v2[i]
  2307. vp.v = mksv[l:]
  2308. vp.i = k2
  2309. i++
  2310. }
  2311. sort.Sort(bytesISlice(v2))
  2312. if esep {
  2313. for j := range v2 {
  2314. ee.WriteMapElemKey()
  2315. e.asis(v2[j].v)
  2316. ee.WriteMapElemValue()
  2317. e.encode(v[v2[j].i])
  2318. }
  2319. } else {
  2320. for j := range v2 {
  2321. e.asis(v2[j].v)
  2322. e.encode(v[v2[j].i])
  2323. }
  2324. }
  2325. } else {
  2326. if esep {
  2327. for k2, v2 := range v {
  2328. ee.WriteMapElemKey()
  2329. e.encode(k2)
  2330. ee.WriteMapElemValue()
  2331. ee.EncodeStringEnc(cUTF8, v2)
  2332. }
  2333. } else {
  2334. for k2, v2 := range v {
  2335. e.encode(k2)
  2336. ee.EncodeStringEnc(cUTF8, v2)
  2337. }
  2338. }
  2339. }
  2340. ee.WriteMapEnd()
  2341. }
  2342. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  2343. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  2344. }
  2345. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  2346. if v == nil {
  2347. e.e.EncodeNil()
  2348. return
  2349. }
  2350. ee, esep := e.e, e.hh.hasElemSeparators()
  2351. ee.WriteMapStart(len(v))
  2352. if e.h.Canonical {
  2353. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2354. e2 := NewEncoderBytes(&mksv, e.hh)
  2355. v2 := make([]bytesI, len(v))
  2356. var i, l uint
  2357. var vp *bytesI
  2358. for k2 := range v {
  2359. l = uint(len(mksv))
  2360. e2.MustEncode(k2)
  2361. vp = &v2[i]
  2362. vp.v = mksv[l:]
  2363. vp.i = k2
  2364. i++
  2365. }
  2366. sort.Sort(bytesISlice(v2))
  2367. if esep {
  2368. for j := range v2 {
  2369. ee.WriteMapElemKey()
  2370. e.asis(v2[j].v)
  2371. ee.WriteMapElemValue()
  2372. e.encode(v[v2[j].i])
  2373. }
  2374. } else {
  2375. for j := range v2 {
  2376. e.asis(v2[j].v)
  2377. e.encode(v[v2[j].i])
  2378. }
  2379. }
  2380. } else {
  2381. if esep {
  2382. for k2, v2 := range v {
  2383. ee.WriteMapElemKey()
  2384. e.encode(k2)
  2385. ee.WriteMapElemValue()
  2386. ee.EncodeUint(uint64(v2))
  2387. }
  2388. } else {
  2389. for k2, v2 := range v {
  2390. e.encode(k2)
  2391. ee.EncodeUint(uint64(v2))
  2392. }
  2393. }
  2394. }
  2395. ee.WriteMapEnd()
  2396. }
  2397. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  2398. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  2399. }
  2400. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  2401. if v == nil {
  2402. e.e.EncodeNil()
  2403. return
  2404. }
  2405. ee, esep := e.e, e.hh.hasElemSeparators()
  2406. ee.WriteMapStart(len(v))
  2407. if e.h.Canonical {
  2408. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2409. e2 := NewEncoderBytes(&mksv, e.hh)
  2410. v2 := make([]bytesI, len(v))
  2411. var i, l uint
  2412. var vp *bytesI
  2413. for k2 := range v {
  2414. l = uint(len(mksv))
  2415. e2.MustEncode(k2)
  2416. vp = &v2[i]
  2417. vp.v = mksv[l:]
  2418. vp.i = k2
  2419. i++
  2420. }
  2421. sort.Sort(bytesISlice(v2))
  2422. if esep {
  2423. for j := range v2 {
  2424. ee.WriteMapElemKey()
  2425. e.asis(v2[j].v)
  2426. ee.WriteMapElemValue()
  2427. e.encode(v[v2[j].i])
  2428. }
  2429. } else {
  2430. for j := range v2 {
  2431. e.asis(v2[j].v)
  2432. e.encode(v[v2[j].i])
  2433. }
  2434. }
  2435. } else {
  2436. if esep {
  2437. for k2, v2 := range v {
  2438. ee.WriteMapElemKey()
  2439. e.encode(k2)
  2440. ee.WriteMapElemValue()
  2441. ee.EncodeUint(uint64(v2))
  2442. }
  2443. } else {
  2444. for k2, v2 := range v {
  2445. e.encode(k2)
  2446. ee.EncodeUint(uint64(v2))
  2447. }
  2448. }
  2449. }
  2450. ee.WriteMapEnd()
  2451. }
  2452. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  2453. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  2454. }
  2455. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  2456. if v == nil {
  2457. e.e.EncodeNil()
  2458. return
  2459. }
  2460. ee, esep := e.e, e.hh.hasElemSeparators()
  2461. ee.WriteMapStart(len(v))
  2462. if e.h.Canonical {
  2463. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2464. e2 := NewEncoderBytes(&mksv, e.hh)
  2465. v2 := make([]bytesI, len(v))
  2466. var i, l uint
  2467. var vp *bytesI
  2468. for k2 := range v {
  2469. l = uint(len(mksv))
  2470. e2.MustEncode(k2)
  2471. vp = &v2[i]
  2472. vp.v = mksv[l:]
  2473. vp.i = k2
  2474. i++
  2475. }
  2476. sort.Sort(bytesISlice(v2))
  2477. if esep {
  2478. for j := range v2 {
  2479. ee.WriteMapElemKey()
  2480. e.asis(v2[j].v)
  2481. ee.WriteMapElemValue()
  2482. e.encode(v[v2[j].i])
  2483. }
  2484. } else {
  2485. for j := range v2 {
  2486. e.asis(v2[j].v)
  2487. e.encode(v[v2[j].i])
  2488. }
  2489. }
  2490. } else {
  2491. if esep {
  2492. for k2, v2 := range v {
  2493. ee.WriteMapElemKey()
  2494. e.encode(k2)
  2495. ee.WriteMapElemValue()
  2496. ee.EncodeUint(uint64(v2))
  2497. }
  2498. } else {
  2499. for k2, v2 := range v {
  2500. e.encode(k2)
  2501. ee.EncodeUint(uint64(v2))
  2502. }
  2503. }
  2504. }
  2505. ee.WriteMapEnd()
  2506. }
  2507. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  2508. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  2509. }
  2510. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  2511. if v == nil {
  2512. e.e.EncodeNil()
  2513. return
  2514. }
  2515. ee, esep := e.e, e.hh.hasElemSeparators()
  2516. ee.WriteMapStart(len(v))
  2517. if e.h.Canonical {
  2518. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2519. e2 := NewEncoderBytes(&mksv, e.hh)
  2520. v2 := make([]bytesI, len(v))
  2521. var i, l uint
  2522. var vp *bytesI
  2523. for k2 := range v {
  2524. l = uint(len(mksv))
  2525. e2.MustEncode(k2)
  2526. vp = &v2[i]
  2527. vp.v = mksv[l:]
  2528. vp.i = k2
  2529. i++
  2530. }
  2531. sort.Sort(bytesISlice(v2))
  2532. if esep {
  2533. for j := range v2 {
  2534. ee.WriteMapElemKey()
  2535. e.asis(v2[j].v)
  2536. ee.WriteMapElemValue()
  2537. e.encode(v[v2[j].i])
  2538. }
  2539. } else {
  2540. for j := range v2 {
  2541. e.asis(v2[j].v)
  2542. e.encode(v[v2[j].i])
  2543. }
  2544. }
  2545. } else {
  2546. if esep {
  2547. for k2, v2 := range v {
  2548. ee.WriteMapElemKey()
  2549. e.encode(k2)
  2550. ee.WriteMapElemValue()
  2551. ee.EncodeUint(uint64(v2))
  2552. }
  2553. } else {
  2554. for k2, v2 := range v {
  2555. e.encode(k2)
  2556. ee.EncodeUint(uint64(v2))
  2557. }
  2558. }
  2559. }
  2560. ee.WriteMapEnd()
  2561. }
  2562. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  2563. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  2564. }
  2565. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  2566. if v == nil {
  2567. e.e.EncodeNil()
  2568. return
  2569. }
  2570. ee, esep := e.e, e.hh.hasElemSeparators()
  2571. ee.WriteMapStart(len(v))
  2572. if e.h.Canonical {
  2573. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2574. e2 := NewEncoderBytes(&mksv, e.hh)
  2575. v2 := make([]bytesI, len(v))
  2576. var i, l uint
  2577. var vp *bytesI
  2578. for k2 := range v {
  2579. l = uint(len(mksv))
  2580. e2.MustEncode(k2)
  2581. vp = &v2[i]
  2582. vp.v = mksv[l:]
  2583. vp.i = k2
  2584. i++
  2585. }
  2586. sort.Sort(bytesISlice(v2))
  2587. if esep {
  2588. for j := range v2 {
  2589. ee.WriteMapElemKey()
  2590. e.asis(v2[j].v)
  2591. ee.WriteMapElemValue()
  2592. e.encode(v[v2[j].i])
  2593. }
  2594. } else {
  2595. for j := range v2 {
  2596. e.asis(v2[j].v)
  2597. e.encode(v[v2[j].i])
  2598. }
  2599. }
  2600. } else {
  2601. if esep {
  2602. for k2, v2 := range v {
  2603. ee.WriteMapElemKey()
  2604. e.encode(k2)
  2605. ee.WriteMapElemValue()
  2606. ee.EncodeUint(uint64(v2))
  2607. }
  2608. } else {
  2609. for k2, v2 := range v {
  2610. e.encode(k2)
  2611. ee.EncodeUint(uint64(v2))
  2612. }
  2613. }
  2614. }
  2615. ee.WriteMapEnd()
  2616. }
  2617. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  2618. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  2619. }
  2620. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  2621. if v == nil {
  2622. e.e.EncodeNil()
  2623. return
  2624. }
  2625. ee, esep := e.e, e.hh.hasElemSeparators()
  2626. ee.WriteMapStart(len(v))
  2627. if e.h.Canonical {
  2628. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2629. e2 := NewEncoderBytes(&mksv, e.hh)
  2630. v2 := make([]bytesI, len(v))
  2631. var i, l uint
  2632. var vp *bytesI
  2633. for k2 := range v {
  2634. l = uint(len(mksv))
  2635. e2.MustEncode(k2)
  2636. vp = &v2[i]
  2637. vp.v = mksv[l:]
  2638. vp.i = k2
  2639. i++
  2640. }
  2641. sort.Sort(bytesISlice(v2))
  2642. if esep {
  2643. for j := range v2 {
  2644. ee.WriteMapElemKey()
  2645. e.asis(v2[j].v)
  2646. ee.WriteMapElemValue()
  2647. e.encode(v[v2[j].i])
  2648. }
  2649. } else {
  2650. for j := range v2 {
  2651. e.asis(v2[j].v)
  2652. e.encode(v[v2[j].i])
  2653. }
  2654. }
  2655. } else {
  2656. if esep {
  2657. for k2, v2 := range v {
  2658. ee.WriteMapElemKey()
  2659. e.encode(k2)
  2660. ee.WriteMapElemValue()
  2661. e.encode(v2)
  2662. }
  2663. } else {
  2664. for k2, v2 := range v {
  2665. e.encode(k2)
  2666. e.encode(v2)
  2667. }
  2668. }
  2669. }
  2670. ee.WriteMapEnd()
  2671. }
  2672. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  2673. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  2674. }
  2675. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  2676. if v == nil {
  2677. e.e.EncodeNil()
  2678. return
  2679. }
  2680. ee, esep := e.e, e.hh.hasElemSeparators()
  2681. ee.WriteMapStart(len(v))
  2682. if e.h.Canonical {
  2683. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2684. e2 := NewEncoderBytes(&mksv, e.hh)
  2685. v2 := make([]bytesI, len(v))
  2686. var i, l uint
  2687. var vp *bytesI
  2688. for k2 := range v {
  2689. l = uint(len(mksv))
  2690. e2.MustEncode(k2)
  2691. vp = &v2[i]
  2692. vp.v = mksv[l:]
  2693. vp.i = k2
  2694. i++
  2695. }
  2696. sort.Sort(bytesISlice(v2))
  2697. if esep {
  2698. for j := range v2 {
  2699. ee.WriteMapElemKey()
  2700. e.asis(v2[j].v)
  2701. ee.WriteMapElemValue()
  2702. e.encode(v[v2[j].i])
  2703. }
  2704. } else {
  2705. for j := range v2 {
  2706. e.asis(v2[j].v)
  2707. e.encode(v[v2[j].i])
  2708. }
  2709. }
  2710. } else {
  2711. if esep {
  2712. for k2, v2 := range v {
  2713. ee.WriteMapElemKey()
  2714. e.encode(k2)
  2715. ee.WriteMapElemValue()
  2716. ee.EncodeInt(int64(v2))
  2717. }
  2718. } else {
  2719. for k2, v2 := range v {
  2720. e.encode(k2)
  2721. ee.EncodeInt(int64(v2))
  2722. }
  2723. }
  2724. }
  2725. ee.WriteMapEnd()
  2726. }
  2727. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  2728. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  2729. }
  2730. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
  2731. if v == nil {
  2732. e.e.EncodeNil()
  2733. return
  2734. }
  2735. ee, esep := e.e, e.hh.hasElemSeparators()
  2736. ee.WriteMapStart(len(v))
  2737. if e.h.Canonical {
  2738. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2739. e2 := NewEncoderBytes(&mksv, e.hh)
  2740. v2 := make([]bytesI, len(v))
  2741. var i, l uint
  2742. var vp *bytesI
  2743. for k2 := range v {
  2744. l = uint(len(mksv))
  2745. e2.MustEncode(k2)
  2746. vp = &v2[i]
  2747. vp.v = mksv[l:]
  2748. vp.i = k2
  2749. i++
  2750. }
  2751. sort.Sort(bytesISlice(v2))
  2752. if esep {
  2753. for j := range v2 {
  2754. ee.WriteMapElemKey()
  2755. e.asis(v2[j].v)
  2756. ee.WriteMapElemValue()
  2757. e.encode(v[v2[j].i])
  2758. }
  2759. } else {
  2760. for j := range v2 {
  2761. e.asis(v2[j].v)
  2762. e.encode(v[v2[j].i])
  2763. }
  2764. }
  2765. } else {
  2766. if esep {
  2767. for k2, v2 := range v {
  2768. ee.WriteMapElemKey()
  2769. e.encode(k2)
  2770. ee.WriteMapElemValue()
  2771. ee.EncodeInt(int64(v2))
  2772. }
  2773. } else {
  2774. for k2, v2 := range v {
  2775. e.encode(k2)
  2776. ee.EncodeInt(int64(v2))
  2777. }
  2778. }
  2779. }
  2780. ee.WriteMapEnd()
  2781. }
  2782. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  2783. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  2784. }
  2785. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  2786. if v == nil {
  2787. e.e.EncodeNil()
  2788. return
  2789. }
  2790. ee, esep := e.e, e.hh.hasElemSeparators()
  2791. ee.WriteMapStart(len(v))
  2792. if e.h.Canonical {
  2793. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2794. e2 := NewEncoderBytes(&mksv, e.hh)
  2795. v2 := make([]bytesI, len(v))
  2796. var i, l uint
  2797. var vp *bytesI
  2798. for k2 := range v {
  2799. l = uint(len(mksv))
  2800. e2.MustEncode(k2)
  2801. vp = &v2[i]
  2802. vp.v = mksv[l:]
  2803. vp.i = k2
  2804. i++
  2805. }
  2806. sort.Sort(bytesISlice(v2))
  2807. if esep {
  2808. for j := range v2 {
  2809. ee.WriteMapElemKey()
  2810. e.asis(v2[j].v)
  2811. ee.WriteMapElemValue()
  2812. e.encode(v[v2[j].i])
  2813. }
  2814. } else {
  2815. for j := range v2 {
  2816. e.asis(v2[j].v)
  2817. e.encode(v[v2[j].i])
  2818. }
  2819. }
  2820. } else {
  2821. if esep {
  2822. for k2, v2 := range v {
  2823. ee.WriteMapElemKey()
  2824. e.encode(k2)
  2825. ee.WriteMapElemValue()
  2826. ee.EncodeInt(int64(v2))
  2827. }
  2828. } else {
  2829. for k2, v2 := range v {
  2830. e.encode(k2)
  2831. ee.EncodeInt(int64(v2))
  2832. }
  2833. }
  2834. }
  2835. ee.WriteMapEnd()
  2836. }
  2837. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  2838. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  2839. }
  2840. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  2841. if v == nil {
  2842. e.e.EncodeNil()
  2843. return
  2844. }
  2845. ee, esep := e.e, e.hh.hasElemSeparators()
  2846. ee.WriteMapStart(len(v))
  2847. if e.h.Canonical {
  2848. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2849. e2 := NewEncoderBytes(&mksv, e.hh)
  2850. v2 := make([]bytesI, len(v))
  2851. var i, l uint
  2852. var vp *bytesI
  2853. for k2 := range v {
  2854. l = uint(len(mksv))
  2855. e2.MustEncode(k2)
  2856. vp = &v2[i]
  2857. vp.v = mksv[l:]
  2858. vp.i = k2
  2859. i++
  2860. }
  2861. sort.Sort(bytesISlice(v2))
  2862. if esep {
  2863. for j := range v2 {
  2864. ee.WriteMapElemKey()
  2865. e.asis(v2[j].v)
  2866. ee.WriteMapElemValue()
  2867. e.encode(v[v2[j].i])
  2868. }
  2869. } else {
  2870. for j := range v2 {
  2871. e.asis(v2[j].v)
  2872. e.encode(v[v2[j].i])
  2873. }
  2874. }
  2875. } else {
  2876. if esep {
  2877. for k2, v2 := range v {
  2878. ee.WriteMapElemKey()
  2879. e.encode(k2)
  2880. ee.WriteMapElemValue()
  2881. ee.EncodeInt(int64(v2))
  2882. }
  2883. } else {
  2884. for k2, v2 := range v {
  2885. e.encode(k2)
  2886. ee.EncodeInt(int64(v2))
  2887. }
  2888. }
  2889. }
  2890. ee.WriteMapEnd()
  2891. }
  2892. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  2893. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  2894. }
  2895. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  2896. if v == nil {
  2897. e.e.EncodeNil()
  2898. return
  2899. }
  2900. ee, esep := e.e, e.hh.hasElemSeparators()
  2901. ee.WriteMapStart(len(v))
  2902. if e.h.Canonical {
  2903. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2904. e2 := NewEncoderBytes(&mksv, e.hh)
  2905. v2 := make([]bytesI, len(v))
  2906. var i, l uint
  2907. var vp *bytesI
  2908. for k2 := range v {
  2909. l = uint(len(mksv))
  2910. e2.MustEncode(k2)
  2911. vp = &v2[i]
  2912. vp.v = mksv[l:]
  2913. vp.i = k2
  2914. i++
  2915. }
  2916. sort.Sort(bytesISlice(v2))
  2917. if esep {
  2918. for j := range v2 {
  2919. ee.WriteMapElemKey()
  2920. e.asis(v2[j].v)
  2921. ee.WriteMapElemValue()
  2922. e.encode(v[v2[j].i])
  2923. }
  2924. } else {
  2925. for j := range v2 {
  2926. e.asis(v2[j].v)
  2927. e.encode(v[v2[j].i])
  2928. }
  2929. }
  2930. } else {
  2931. if esep {
  2932. for k2, v2 := range v {
  2933. ee.WriteMapElemKey()
  2934. e.encode(k2)
  2935. ee.WriteMapElemValue()
  2936. ee.EncodeInt(int64(v2))
  2937. }
  2938. } else {
  2939. for k2, v2 := range v {
  2940. e.encode(k2)
  2941. ee.EncodeInt(int64(v2))
  2942. }
  2943. }
  2944. }
  2945. ee.WriteMapEnd()
  2946. }
  2947. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  2948. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  2949. }
  2950. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  2951. if v == nil {
  2952. e.e.EncodeNil()
  2953. return
  2954. }
  2955. ee, esep := e.e, e.hh.hasElemSeparators()
  2956. ee.WriteMapStart(len(v))
  2957. if e.h.Canonical {
  2958. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2959. e2 := NewEncoderBytes(&mksv, e.hh)
  2960. v2 := make([]bytesI, len(v))
  2961. var i, l uint
  2962. var vp *bytesI
  2963. for k2 := range v {
  2964. l = uint(len(mksv))
  2965. e2.MustEncode(k2)
  2966. vp = &v2[i]
  2967. vp.v = mksv[l:]
  2968. vp.i = k2
  2969. i++
  2970. }
  2971. sort.Sort(bytesISlice(v2))
  2972. if esep {
  2973. for j := range v2 {
  2974. ee.WriteMapElemKey()
  2975. e.asis(v2[j].v)
  2976. ee.WriteMapElemValue()
  2977. e.encode(v[v2[j].i])
  2978. }
  2979. } else {
  2980. for j := range v2 {
  2981. e.asis(v2[j].v)
  2982. e.encode(v[v2[j].i])
  2983. }
  2984. }
  2985. } else {
  2986. if esep {
  2987. for k2, v2 := range v {
  2988. ee.WriteMapElemKey()
  2989. e.encode(k2)
  2990. ee.WriteMapElemValue()
  2991. ee.EncodeFloat32(v2)
  2992. }
  2993. } else {
  2994. for k2, v2 := range v {
  2995. e.encode(k2)
  2996. ee.EncodeFloat32(v2)
  2997. }
  2998. }
  2999. }
  3000. ee.WriteMapEnd()
  3001. }
  3002. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  3003. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  3004. }
  3005. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  3006. if v == nil {
  3007. e.e.EncodeNil()
  3008. return
  3009. }
  3010. ee, esep := e.e, e.hh.hasElemSeparators()
  3011. ee.WriteMapStart(len(v))
  3012. if e.h.Canonical {
  3013. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3014. e2 := NewEncoderBytes(&mksv, e.hh)
  3015. v2 := make([]bytesI, len(v))
  3016. var i, l uint
  3017. var vp *bytesI
  3018. for k2 := range v {
  3019. l = uint(len(mksv))
  3020. e2.MustEncode(k2)
  3021. vp = &v2[i]
  3022. vp.v = mksv[l:]
  3023. vp.i = k2
  3024. i++
  3025. }
  3026. sort.Sort(bytesISlice(v2))
  3027. if esep {
  3028. for j := range v2 {
  3029. ee.WriteMapElemKey()
  3030. e.asis(v2[j].v)
  3031. ee.WriteMapElemValue()
  3032. e.encode(v[v2[j].i])
  3033. }
  3034. } else {
  3035. for j := range v2 {
  3036. e.asis(v2[j].v)
  3037. e.encode(v[v2[j].i])
  3038. }
  3039. }
  3040. } else {
  3041. if esep {
  3042. for k2, v2 := range v {
  3043. ee.WriteMapElemKey()
  3044. e.encode(k2)
  3045. ee.WriteMapElemValue()
  3046. ee.EncodeFloat64(v2)
  3047. }
  3048. } else {
  3049. for k2, v2 := range v {
  3050. e.encode(k2)
  3051. ee.EncodeFloat64(v2)
  3052. }
  3053. }
  3054. }
  3055. ee.WriteMapEnd()
  3056. }
  3057. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  3058. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  3059. }
  3060. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  3061. if v == nil {
  3062. e.e.EncodeNil()
  3063. return
  3064. }
  3065. ee, esep := e.e, e.hh.hasElemSeparators()
  3066. ee.WriteMapStart(len(v))
  3067. if e.h.Canonical {
  3068. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3069. e2 := NewEncoderBytes(&mksv, e.hh)
  3070. v2 := make([]bytesI, len(v))
  3071. var i, l uint
  3072. var vp *bytesI
  3073. for k2 := range v {
  3074. l = uint(len(mksv))
  3075. e2.MustEncode(k2)
  3076. vp = &v2[i]
  3077. vp.v = mksv[l:]
  3078. vp.i = k2
  3079. i++
  3080. }
  3081. sort.Sort(bytesISlice(v2))
  3082. if esep {
  3083. for j := range v2 {
  3084. ee.WriteMapElemKey()
  3085. e.asis(v2[j].v)
  3086. ee.WriteMapElemValue()
  3087. e.encode(v[v2[j].i])
  3088. }
  3089. } else {
  3090. for j := range v2 {
  3091. e.asis(v2[j].v)
  3092. e.encode(v[v2[j].i])
  3093. }
  3094. }
  3095. } else {
  3096. if esep {
  3097. for k2, v2 := range v {
  3098. ee.WriteMapElemKey()
  3099. e.encode(k2)
  3100. ee.WriteMapElemValue()
  3101. ee.EncodeBool(v2)
  3102. }
  3103. } else {
  3104. for k2, v2 := range v {
  3105. e.encode(k2)
  3106. ee.EncodeBool(v2)
  3107. }
  3108. }
  3109. }
  3110. ee.WriteMapEnd()
  3111. }
  3112. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  3113. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  3114. }
  3115. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  3116. if v == nil {
  3117. e.e.EncodeNil()
  3118. return
  3119. }
  3120. ee, esep := e.e, e.hh.hasElemSeparators()
  3121. ee.WriteMapStart(len(v))
  3122. if e.h.Canonical {
  3123. v2 := make([]string, len(v))
  3124. var i uint
  3125. for k := range v {
  3126. v2[i] = string(k)
  3127. i++
  3128. }
  3129. sort.Sort(stringSlice(v2))
  3130. if esep {
  3131. for _, k2 := range v2 {
  3132. ee.WriteMapElemKey()
  3133. ee.EncodeStringEnc(cUTF8, k2)
  3134. ee.WriteMapElemValue()
  3135. e.encode(v[string(k2)])
  3136. }
  3137. } else {
  3138. for _, k2 := range v2 {
  3139. ee.EncodeStringEnc(cUTF8, k2)
  3140. e.encode(v[string(k2)])
  3141. }
  3142. }
  3143. } else {
  3144. if esep {
  3145. for k2, v2 := range v {
  3146. ee.WriteMapElemKey()
  3147. ee.EncodeStringEnc(cUTF8, k2)
  3148. ee.WriteMapElemValue()
  3149. e.encode(v2)
  3150. }
  3151. } else {
  3152. for k2, v2 := range v {
  3153. ee.EncodeStringEnc(cUTF8, k2)
  3154. e.encode(v2)
  3155. }
  3156. }
  3157. }
  3158. ee.WriteMapEnd()
  3159. }
  3160. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  3161. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  3162. }
  3163. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  3164. if v == nil {
  3165. e.e.EncodeNil()
  3166. return
  3167. }
  3168. ee, esep := e.e, e.hh.hasElemSeparators()
  3169. ee.WriteMapStart(len(v))
  3170. if e.h.Canonical {
  3171. v2 := make([]string, len(v))
  3172. var i uint
  3173. for k := range v {
  3174. v2[i] = string(k)
  3175. i++
  3176. }
  3177. sort.Sort(stringSlice(v2))
  3178. if esep {
  3179. for _, k2 := range v2 {
  3180. ee.WriteMapElemKey()
  3181. ee.EncodeStringEnc(cUTF8, k2)
  3182. ee.WriteMapElemValue()
  3183. ee.EncodeStringEnc(cUTF8, v[string(k2)])
  3184. }
  3185. } else {
  3186. for _, k2 := range v2 {
  3187. ee.EncodeStringEnc(cUTF8, k2)
  3188. ee.EncodeStringEnc(cUTF8, v[string(k2)])
  3189. }
  3190. }
  3191. } else {
  3192. if esep {
  3193. for k2, v2 := range v {
  3194. ee.WriteMapElemKey()
  3195. ee.EncodeStringEnc(cUTF8, k2)
  3196. ee.WriteMapElemValue()
  3197. ee.EncodeStringEnc(cUTF8, v2)
  3198. }
  3199. } else {
  3200. for k2, v2 := range v {
  3201. ee.EncodeStringEnc(cUTF8, k2)
  3202. ee.EncodeStringEnc(cUTF8, v2)
  3203. }
  3204. }
  3205. }
  3206. ee.WriteMapEnd()
  3207. }
  3208. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  3209. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  3210. }
  3211. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  3212. if v == nil {
  3213. e.e.EncodeNil()
  3214. return
  3215. }
  3216. ee, esep := e.e, e.hh.hasElemSeparators()
  3217. ee.WriteMapStart(len(v))
  3218. if e.h.Canonical {
  3219. v2 := make([]string, len(v))
  3220. var i uint
  3221. for k := range v {
  3222. v2[i] = string(k)
  3223. i++
  3224. }
  3225. sort.Sort(stringSlice(v2))
  3226. if esep {
  3227. for _, k2 := range v2 {
  3228. ee.WriteMapElemKey()
  3229. ee.EncodeStringEnc(cUTF8, k2)
  3230. ee.WriteMapElemValue()
  3231. ee.EncodeUint(uint64(v[string(k2)]))
  3232. }
  3233. } else {
  3234. for _, k2 := range v2 {
  3235. ee.EncodeStringEnc(cUTF8, k2)
  3236. ee.EncodeUint(uint64(v[string(k2)]))
  3237. }
  3238. }
  3239. } else {
  3240. if esep {
  3241. for k2, v2 := range v {
  3242. ee.WriteMapElemKey()
  3243. ee.EncodeStringEnc(cUTF8, k2)
  3244. ee.WriteMapElemValue()
  3245. ee.EncodeUint(uint64(v2))
  3246. }
  3247. } else {
  3248. for k2, v2 := range v {
  3249. ee.EncodeStringEnc(cUTF8, k2)
  3250. ee.EncodeUint(uint64(v2))
  3251. }
  3252. }
  3253. }
  3254. ee.WriteMapEnd()
  3255. }
  3256. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  3257. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  3258. }
  3259. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  3260. if v == nil {
  3261. e.e.EncodeNil()
  3262. return
  3263. }
  3264. ee, esep := e.e, e.hh.hasElemSeparators()
  3265. ee.WriteMapStart(len(v))
  3266. if e.h.Canonical {
  3267. v2 := make([]string, len(v))
  3268. var i uint
  3269. for k := range v {
  3270. v2[i] = string(k)
  3271. i++
  3272. }
  3273. sort.Sort(stringSlice(v2))
  3274. if esep {
  3275. for _, k2 := range v2 {
  3276. ee.WriteMapElemKey()
  3277. ee.EncodeStringEnc(cUTF8, k2)
  3278. ee.WriteMapElemValue()
  3279. ee.EncodeUint(uint64(v[string(k2)]))
  3280. }
  3281. } else {
  3282. for _, k2 := range v2 {
  3283. ee.EncodeStringEnc(cUTF8, k2)
  3284. ee.EncodeUint(uint64(v[string(k2)]))
  3285. }
  3286. }
  3287. } else {
  3288. if esep {
  3289. for k2, v2 := range v {
  3290. ee.WriteMapElemKey()
  3291. ee.EncodeStringEnc(cUTF8, k2)
  3292. ee.WriteMapElemValue()
  3293. ee.EncodeUint(uint64(v2))
  3294. }
  3295. } else {
  3296. for k2, v2 := range v {
  3297. ee.EncodeStringEnc(cUTF8, k2)
  3298. ee.EncodeUint(uint64(v2))
  3299. }
  3300. }
  3301. }
  3302. ee.WriteMapEnd()
  3303. }
  3304. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  3305. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  3306. }
  3307. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  3308. if v == nil {
  3309. e.e.EncodeNil()
  3310. return
  3311. }
  3312. ee, esep := e.e, e.hh.hasElemSeparators()
  3313. ee.WriteMapStart(len(v))
  3314. if e.h.Canonical {
  3315. v2 := make([]string, len(v))
  3316. var i uint
  3317. for k := range v {
  3318. v2[i] = string(k)
  3319. i++
  3320. }
  3321. sort.Sort(stringSlice(v2))
  3322. if esep {
  3323. for _, k2 := range v2 {
  3324. ee.WriteMapElemKey()
  3325. ee.EncodeStringEnc(cUTF8, k2)
  3326. ee.WriteMapElemValue()
  3327. ee.EncodeUint(uint64(v[string(k2)]))
  3328. }
  3329. } else {
  3330. for _, k2 := range v2 {
  3331. ee.EncodeStringEnc(cUTF8, k2)
  3332. ee.EncodeUint(uint64(v[string(k2)]))
  3333. }
  3334. }
  3335. } else {
  3336. if esep {
  3337. for k2, v2 := range v {
  3338. ee.WriteMapElemKey()
  3339. ee.EncodeStringEnc(cUTF8, k2)
  3340. ee.WriteMapElemValue()
  3341. ee.EncodeUint(uint64(v2))
  3342. }
  3343. } else {
  3344. for k2, v2 := range v {
  3345. ee.EncodeStringEnc(cUTF8, k2)
  3346. ee.EncodeUint(uint64(v2))
  3347. }
  3348. }
  3349. }
  3350. ee.WriteMapEnd()
  3351. }
  3352. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  3353. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  3354. }
  3355. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  3356. if v == nil {
  3357. e.e.EncodeNil()
  3358. return
  3359. }
  3360. ee, esep := e.e, e.hh.hasElemSeparators()
  3361. ee.WriteMapStart(len(v))
  3362. if e.h.Canonical {
  3363. v2 := make([]string, len(v))
  3364. var i uint
  3365. for k := range v {
  3366. v2[i] = string(k)
  3367. i++
  3368. }
  3369. sort.Sort(stringSlice(v2))
  3370. if esep {
  3371. for _, k2 := range v2 {
  3372. ee.WriteMapElemKey()
  3373. ee.EncodeStringEnc(cUTF8, k2)
  3374. ee.WriteMapElemValue()
  3375. ee.EncodeUint(uint64(v[string(k2)]))
  3376. }
  3377. } else {
  3378. for _, k2 := range v2 {
  3379. ee.EncodeStringEnc(cUTF8, k2)
  3380. ee.EncodeUint(uint64(v[string(k2)]))
  3381. }
  3382. }
  3383. } else {
  3384. if esep {
  3385. for k2, v2 := range v {
  3386. ee.WriteMapElemKey()
  3387. ee.EncodeStringEnc(cUTF8, k2)
  3388. ee.WriteMapElemValue()
  3389. ee.EncodeUint(uint64(v2))
  3390. }
  3391. } else {
  3392. for k2, v2 := range v {
  3393. ee.EncodeStringEnc(cUTF8, k2)
  3394. ee.EncodeUint(uint64(v2))
  3395. }
  3396. }
  3397. }
  3398. ee.WriteMapEnd()
  3399. }
  3400. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  3401. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  3402. }
  3403. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
  3404. if v == nil {
  3405. e.e.EncodeNil()
  3406. return
  3407. }
  3408. ee, esep := e.e, e.hh.hasElemSeparators()
  3409. ee.WriteMapStart(len(v))
  3410. if e.h.Canonical {
  3411. v2 := make([]string, len(v))
  3412. var i uint
  3413. for k := range v {
  3414. v2[i] = string(k)
  3415. i++
  3416. }
  3417. sort.Sort(stringSlice(v2))
  3418. if esep {
  3419. for _, k2 := range v2 {
  3420. ee.WriteMapElemKey()
  3421. ee.EncodeStringEnc(cUTF8, k2)
  3422. ee.WriteMapElemValue()
  3423. ee.EncodeUint(uint64(v[string(k2)]))
  3424. }
  3425. } else {
  3426. for _, k2 := range v2 {
  3427. ee.EncodeStringEnc(cUTF8, k2)
  3428. ee.EncodeUint(uint64(v[string(k2)]))
  3429. }
  3430. }
  3431. } else {
  3432. if esep {
  3433. for k2, v2 := range v {
  3434. ee.WriteMapElemKey()
  3435. ee.EncodeStringEnc(cUTF8, k2)
  3436. ee.WriteMapElemValue()
  3437. ee.EncodeUint(uint64(v2))
  3438. }
  3439. } else {
  3440. for k2, v2 := range v {
  3441. ee.EncodeStringEnc(cUTF8, k2)
  3442. ee.EncodeUint(uint64(v2))
  3443. }
  3444. }
  3445. }
  3446. ee.WriteMapEnd()
  3447. }
  3448. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  3449. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  3450. }
  3451. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  3452. if v == nil {
  3453. e.e.EncodeNil()
  3454. return
  3455. }
  3456. ee, esep := e.e, e.hh.hasElemSeparators()
  3457. ee.WriteMapStart(len(v))
  3458. if e.h.Canonical {
  3459. v2 := make([]string, len(v))
  3460. var i uint
  3461. for k := range v {
  3462. v2[i] = string(k)
  3463. i++
  3464. }
  3465. sort.Sort(stringSlice(v2))
  3466. if esep {
  3467. for _, k2 := range v2 {
  3468. ee.WriteMapElemKey()
  3469. ee.EncodeStringEnc(cUTF8, k2)
  3470. ee.WriteMapElemValue()
  3471. e.encode(v[string(k2)])
  3472. }
  3473. } else {
  3474. for _, k2 := range v2 {
  3475. ee.EncodeStringEnc(cUTF8, k2)
  3476. e.encode(v[string(k2)])
  3477. }
  3478. }
  3479. } else {
  3480. if esep {
  3481. for k2, v2 := range v {
  3482. ee.WriteMapElemKey()
  3483. ee.EncodeStringEnc(cUTF8, k2)
  3484. ee.WriteMapElemValue()
  3485. e.encode(v2)
  3486. }
  3487. } else {
  3488. for k2, v2 := range v {
  3489. ee.EncodeStringEnc(cUTF8, k2)
  3490. e.encode(v2)
  3491. }
  3492. }
  3493. }
  3494. ee.WriteMapEnd()
  3495. }
  3496. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  3497. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  3498. }
  3499. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  3500. if v == nil {
  3501. e.e.EncodeNil()
  3502. return
  3503. }
  3504. ee, esep := e.e, e.hh.hasElemSeparators()
  3505. ee.WriteMapStart(len(v))
  3506. if e.h.Canonical {
  3507. v2 := make([]string, len(v))
  3508. var i uint
  3509. for k := range v {
  3510. v2[i] = string(k)
  3511. i++
  3512. }
  3513. sort.Sort(stringSlice(v2))
  3514. if esep {
  3515. for _, k2 := range v2 {
  3516. ee.WriteMapElemKey()
  3517. ee.EncodeStringEnc(cUTF8, k2)
  3518. ee.WriteMapElemValue()
  3519. ee.EncodeInt(int64(v[string(k2)]))
  3520. }
  3521. } else {
  3522. for _, k2 := range v2 {
  3523. ee.EncodeStringEnc(cUTF8, k2)
  3524. ee.EncodeInt(int64(v[string(k2)]))
  3525. }
  3526. }
  3527. } else {
  3528. if esep {
  3529. for k2, v2 := range v {
  3530. ee.WriteMapElemKey()
  3531. ee.EncodeStringEnc(cUTF8, k2)
  3532. ee.WriteMapElemValue()
  3533. ee.EncodeInt(int64(v2))
  3534. }
  3535. } else {
  3536. for k2, v2 := range v {
  3537. ee.EncodeStringEnc(cUTF8, k2)
  3538. ee.EncodeInt(int64(v2))
  3539. }
  3540. }
  3541. }
  3542. ee.WriteMapEnd()
  3543. }
  3544. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  3545. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  3546. }
  3547. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  3548. if v == nil {
  3549. e.e.EncodeNil()
  3550. return
  3551. }
  3552. ee, esep := e.e, e.hh.hasElemSeparators()
  3553. ee.WriteMapStart(len(v))
  3554. if e.h.Canonical {
  3555. v2 := make([]string, len(v))
  3556. var i uint
  3557. for k := range v {
  3558. v2[i] = string(k)
  3559. i++
  3560. }
  3561. sort.Sort(stringSlice(v2))
  3562. if esep {
  3563. for _, k2 := range v2 {
  3564. ee.WriteMapElemKey()
  3565. ee.EncodeStringEnc(cUTF8, k2)
  3566. ee.WriteMapElemValue()
  3567. ee.EncodeInt(int64(v[string(k2)]))
  3568. }
  3569. } else {
  3570. for _, k2 := range v2 {
  3571. ee.EncodeStringEnc(cUTF8, k2)
  3572. ee.EncodeInt(int64(v[string(k2)]))
  3573. }
  3574. }
  3575. } else {
  3576. if esep {
  3577. for k2, v2 := range v {
  3578. ee.WriteMapElemKey()
  3579. ee.EncodeStringEnc(cUTF8, k2)
  3580. ee.WriteMapElemValue()
  3581. ee.EncodeInt(int64(v2))
  3582. }
  3583. } else {
  3584. for k2, v2 := range v {
  3585. ee.EncodeStringEnc(cUTF8, k2)
  3586. ee.EncodeInt(int64(v2))
  3587. }
  3588. }
  3589. }
  3590. ee.WriteMapEnd()
  3591. }
  3592. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  3593. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  3594. }
  3595. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  3596. if v == nil {
  3597. e.e.EncodeNil()
  3598. return
  3599. }
  3600. ee, esep := e.e, e.hh.hasElemSeparators()
  3601. ee.WriteMapStart(len(v))
  3602. if e.h.Canonical {
  3603. v2 := make([]string, len(v))
  3604. var i uint
  3605. for k := range v {
  3606. v2[i] = string(k)
  3607. i++
  3608. }
  3609. sort.Sort(stringSlice(v2))
  3610. if esep {
  3611. for _, k2 := range v2 {
  3612. ee.WriteMapElemKey()
  3613. ee.EncodeStringEnc(cUTF8, k2)
  3614. ee.WriteMapElemValue()
  3615. ee.EncodeInt(int64(v[string(k2)]))
  3616. }
  3617. } else {
  3618. for _, k2 := range v2 {
  3619. ee.EncodeStringEnc(cUTF8, k2)
  3620. ee.EncodeInt(int64(v[string(k2)]))
  3621. }
  3622. }
  3623. } else {
  3624. if esep {
  3625. for k2, v2 := range v {
  3626. ee.WriteMapElemKey()
  3627. ee.EncodeStringEnc(cUTF8, k2)
  3628. ee.WriteMapElemValue()
  3629. ee.EncodeInt(int64(v2))
  3630. }
  3631. } else {
  3632. for k2, v2 := range v {
  3633. ee.EncodeStringEnc(cUTF8, k2)
  3634. ee.EncodeInt(int64(v2))
  3635. }
  3636. }
  3637. }
  3638. ee.WriteMapEnd()
  3639. }
  3640. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  3641. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  3642. }
  3643. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  3644. if v == nil {
  3645. e.e.EncodeNil()
  3646. return
  3647. }
  3648. ee, esep := e.e, e.hh.hasElemSeparators()
  3649. ee.WriteMapStart(len(v))
  3650. if e.h.Canonical {
  3651. v2 := make([]string, len(v))
  3652. var i uint
  3653. for k := range v {
  3654. v2[i] = string(k)
  3655. i++
  3656. }
  3657. sort.Sort(stringSlice(v2))
  3658. if esep {
  3659. for _, k2 := range v2 {
  3660. ee.WriteMapElemKey()
  3661. ee.EncodeStringEnc(cUTF8, k2)
  3662. ee.WriteMapElemValue()
  3663. ee.EncodeInt(int64(v[string(k2)]))
  3664. }
  3665. } else {
  3666. for _, k2 := range v2 {
  3667. ee.EncodeStringEnc(cUTF8, k2)
  3668. ee.EncodeInt(int64(v[string(k2)]))
  3669. }
  3670. }
  3671. } else {
  3672. if esep {
  3673. for k2, v2 := range v {
  3674. ee.WriteMapElemKey()
  3675. ee.EncodeStringEnc(cUTF8, k2)
  3676. ee.WriteMapElemValue()
  3677. ee.EncodeInt(int64(v2))
  3678. }
  3679. } else {
  3680. for k2, v2 := range v {
  3681. ee.EncodeStringEnc(cUTF8, k2)
  3682. ee.EncodeInt(int64(v2))
  3683. }
  3684. }
  3685. }
  3686. ee.WriteMapEnd()
  3687. }
  3688. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  3689. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  3690. }
  3691. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  3692. if v == nil {
  3693. e.e.EncodeNil()
  3694. return
  3695. }
  3696. ee, esep := e.e, e.hh.hasElemSeparators()
  3697. ee.WriteMapStart(len(v))
  3698. if e.h.Canonical {
  3699. v2 := make([]string, len(v))
  3700. var i uint
  3701. for k := range v {
  3702. v2[i] = string(k)
  3703. i++
  3704. }
  3705. sort.Sort(stringSlice(v2))
  3706. if esep {
  3707. for _, k2 := range v2 {
  3708. ee.WriteMapElemKey()
  3709. ee.EncodeStringEnc(cUTF8, k2)
  3710. ee.WriteMapElemValue()
  3711. ee.EncodeInt(int64(v[string(k2)]))
  3712. }
  3713. } else {
  3714. for _, k2 := range v2 {
  3715. ee.EncodeStringEnc(cUTF8, k2)
  3716. ee.EncodeInt(int64(v[string(k2)]))
  3717. }
  3718. }
  3719. } else {
  3720. if esep {
  3721. for k2, v2 := range v {
  3722. ee.WriteMapElemKey()
  3723. ee.EncodeStringEnc(cUTF8, k2)
  3724. ee.WriteMapElemValue()
  3725. ee.EncodeInt(int64(v2))
  3726. }
  3727. } else {
  3728. for k2, v2 := range v {
  3729. ee.EncodeStringEnc(cUTF8, k2)
  3730. ee.EncodeInt(int64(v2))
  3731. }
  3732. }
  3733. }
  3734. ee.WriteMapEnd()
  3735. }
  3736. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  3737. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  3738. }
  3739. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  3740. if v == nil {
  3741. e.e.EncodeNil()
  3742. return
  3743. }
  3744. ee, esep := e.e, e.hh.hasElemSeparators()
  3745. ee.WriteMapStart(len(v))
  3746. if e.h.Canonical {
  3747. v2 := make([]string, len(v))
  3748. var i uint
  3749. for k := range v {
  3750. v2[i] = string(k)
  3751. i++
  3752. }
  3753. sort.Sort(stringSlice(v2))
  3754. if esep {
  3755. for _, k2 := range v2 {
  3756. ee.WriteMapElemKey()
  3757. ee.EncodeStringEnc(cUTF8, k2)
  3758. ee.WriteMapElemValue()
  3759. ee.EncodeFloat32(v[string(k2)])
  3760. }
  3761. } else {
  3762. for _, k2 := range v2 {
  3763. ee.EncodeStringEnc(cUTF8, k2)
  3764. ee.EncodeFloat32(v[string(k2)])
  3765. }
  3766. }
  3767. } else {
  3768. if esep {
  3769. for k2, v2 := range v {
  3770. ee.WriteMapElemKey()
  3771. ee.EncodeStringEnc(cUTF8, k2)
  3772. ee.WriteMapElemValue()
  3773. ee.EncodeFloat32(v2)
  3774. }
  3775. } else {
  3776. for k2, v2 := range v {
  3777. ee.EncodeStringEnc(cUTF8, k2)
  3778. ee.EncodeFloat32(v2)
  3779. }
  3780. }
  3781. }
  3782. ee.WriteMapEnd()
  3783. }
  3784. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  3785. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  3786. }
  3787. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  3788. if v == nil {
  3789. e.e.EncodeNil()
  3790. return
  3791. }
  3792. ee, esep := e.e, e.hh.hasElemSeparators()
  3793. ee.WriteMapStart(len(v))
  3794. if e.h.Canonical {
  3795. v2 := make([]string, len(v))
  3796. var i uint
  3797. for k := range v {
  3798. v2[i] = string(k)
  3799. i++
  3800. }
  3801. sort.Sort(stringSlice(v2))
  3802. if esep {
  3803. for _, k2 := range v2 {
  3804. ee.WriteMapElemKey()
  3805. ee.EncodeStringEnc(cUTF8, k2)
  3806. ee.WriteMapElemValue()
  3807. ee.EncodeFloat64(v[string(k2)])
  3808. }
  3809. } else {
  3810. for _, k2 := range v2 {
  3811. ee.EncodeStringEnc(cUTF8, k2)
  3812. ee.EncodeFloat64(v[string(k2)])
  3813. }
  3814. }
  3815. } else {
  3816. if esep {
  3817. for k2, v2 := range v {
  3818. ee.WriteMapElemKey()
  3819. ee.EncodeStringEnc(cUTF8, k2)
  3820. ee.WriteMapElemValue()
  3821. ee.EncodeFloat64(v2)
  3822. }
  3823. } else {
  3824. for k2, v2 := range v {
  3825. ee.EncodeStringEnc(cUTF8, k2)
  3826. ee.EncodeFloat64(v2)
  3827. }
  3828. }
  3829. }
  3830. ee.WriteMapEnd()
  3831. }
  3832. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  3833. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  3834. }
  3835. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  3836. if v == nil {
  3837. e.e.EncodeNil()
  3838. return
  3839. }
  3840. ee, esep := e.e, e.hh.hasElemSeparators()
  3841. ee.WriteMapStart(len(v))
  3842. if e.h.Canonical {
  3843. v2 := make([]string, len(v))
  3844. var i uint
  3845. for k := range v {
  3846. v2[i] = string(k)
  3847. i++
  3848. }
  3849. sort.Sort(stringSlice(v2))
  3850. if esep {
  3851. for _, k2 := range v2 {
  3852. ee.WriteMapElemKey()
  3853. ee.EncodeStringEnc(cUTF8, k2)
  3854. ee.WriteMapElemValue()
  3855. ee.EncodeBool(v[string(k2)])
  3856. }
  3857. } else {
  3858. for _, k2 := range v2 {
  3859. ee.EncodeStringEnc(cUTF8, k2)
  3860. ee.EncodeBool(v[string(k2)])
  3861. }
  3862. }
  3863. } else {
  3864. if esep {
  3865. for k2, v2 := range v {
  3866. ee.WriteMapElemKey()
  3867. ee.EncodeStringEnc(cUTF8, k2)
  3868. ee.WriteMapElemValue()
  3869. ee.EncodeBool(v2)
  3870. }
  3871. } else {
  3872. for k2, v2 := range v {
  3873. ee.EncodeStringEnc(cUTF8, k2)
  3874. ee.EncodeBool(v2)
  3875. }
  3876. }
  3877. }
  3878. ee.WriteMapEnd()
  3879. }
  3880. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  3881. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  3882. }
  3883. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  3884. if v == nil {
  3885. e.e.EncodeNil()
  3886. return
  3887. }
  3888. ee, esep := e.e, e.hh.hasElemSeparators()
  3889. ee.WriteMapStart(len(v))
  3890. if e.h.Canonical {
  3891. v2 := make([]float64, len(v))
  3892. var i uint
  3893. for k := range v {
  3894. v2[i] = float64(k)
  3895. i++
  3896. }
  3897. sort.Sort(floatSlice(v2))
  3898. if esep {
  3899. for _, k2 := range v2 {
  3900. ee.WriteMapElemKey()
  3901. ee.EncodeFloat32(float32(k2))
  3902. ee.WriteMapElemValue()
  3903. e.encode(v[float32(k2)])
  3904. }
  3905. } else {
  3906. for _, k2 := range v2 {
  3907. ee.EncodeFloat32(float32(k2))
  3908. e.encode(v[float32(k2)])
  3909. }
  3910. }
  3911. } else {
  3912. if esep {
  3913. for k2, v2 := range v {
  3914. ee.WriteMapElemKey()
  3915. ee.EncodeFloat32(k2)
  3916. ee.WriteMapElemValue()
  3917. e.encode(v2)
  3918. }
  3919. } else {
  3920. for k2, v2 := range v {
  3921. ee.EncodeFloat32(k2)
  3922. e.encode(v2)
  3923. }
  3924. }
  3925. }
  3926. ee.WriteMapEnd()
  3927. }
  3928. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  3929. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  3930. }
  3931. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  3932. if v == nil {
  3933. e.e.EncodeNil()
  3934. return
  3935. }
  3936. ee, esep := e.e, e.hh.hasElemSeparators()
  3937. ee.WriteMapStart(len(v))
  3938. if e.h.Canonical {
  3939. v2 := make([]float64, len(v))
  3940. var i uint
  3941. for k := range v {
  3942. v2[i] = float64(k)
  3943. i++
  3944. }
  3945. sort.Sort(floatSlice(v2))
  3946. if esep {
  3947. for _, k2 := range v2 {
  3948. ee.WriteMapElemKey()
  3949. ee.EncodeFloat32(float32(k2))
  3950. ee.WriteMapElemValue()
  3951. ee.EncodeStringEnc(cUTF8, v[float32(k2)])
  3952. }
  3953. } else {
  3954. for _, k2 := range v2 {
  3955. ee.EncodeFloat32(float32(k2))
  3956. ee.EncodeStringEnc(cUTF8, v[float32(k2)])
  3957. }
  3958. }
  3959. } else {
  3960. if esep {
  3961. for k2, v2 := range v {
  3962. ee.WriteMapElemKey()
  3963. ee.EncodeFloat32(k2)
  3964. ee.WriteMapElemValue()
  3965. ee.EncodeStringEnc(cUTF8, v2)
  3966. }
  3967. } else {
  3968. for k2, v2 := range v {
  3969. ee.EncodeFloat32(k2)
  3970. ee.EncodeStringEnc(cUTF8, v2)
  3971. }
  3972. }
  3973. }
  3974. ee.WriteMapEnd()
  3975. }
  3976. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  3977. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  3978. }
  3979. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  3980. if v == nil {
  3981. e.e.EncodeNil()
  3982. return
  3983. }
  3984. ee, esep := e.e, e.hh.hasElemSeparators()
  3985. ee.WriteMapStart(len(v))
  3986. if e.h.Canonical {
  3987. v2 := make([]float64, len(v))
  3988. var i uint
  3989. for k := range v {
  3990. v2[i] = float64(k)
  3991. i++
  3992. }
  3993. sort.Sort(floatSlice(v2))
  3994. if esep {
  3995. for _, k2 := range v2 {
  3996. ee.WriteMapElemKey()
  3997. ee.EncodeFloat32(float32(k2))
  3998. ee.WriteMapElemValue()
  3999. ee.EncodeUint(uint64(v[float32(k2)]))
  4000. }
  4001. } else {
  4002. for _, k2 := range v2 {
  4003. ee.EncodeFloat32(float32(k2))
  4004. ee.EncodeUint(uint64(v[float32(k2)]))
  4005. }
  4006. }
  4007. } else {
  4008. if esep {
  4009. for k2, v2 := range v {
  4010. ee.WriteMapElemKey()
  4011. ee.EncodeFloat32(k2)
  4012. ee.WriteMapElemValue()
  4013. ee.EncodeUint(uint64(v2))
  4014. }
  4015. } else {
  4016. for k2, v2 := range v {
  4017. ee.EncodeFloat32(k2)
  4018. ee.EncodeUint(uint64(v2))
  4019. }
  4020. }
  4021. }
  4022. ee.WriteMapEnd()
  4023. }
  4024. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  4025. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  4026. }
  4027. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  4028. if v == nil {
  4029. e.e.EncodeNil()
  4030. return
  4031. }
  4032. ee, esep := e.e, e.hh.hasElemSeparators()
  4033. ee.WriteMapStart(len(v))
  4034. if e.h.Canonical {
  4035. v2 := make([]float64, len(v))
  4036. var i uint
  4037. for k := range v {
  4038. v2[i] = float64(k)
  4039. i++
  4040. }
  4041. sort.Sort(floatSlice(v2))
  4042. if esep {
  4043. for _, k2 := range v2 {
  4044. ee.WriteMapElemKey()
  4045. ee.EncodeFloat32(float32(k2))
  4046. ee.WriteMapElemValue()
  4047. ee.EncodeUint(uint64(v[float32(k2)]))
  4048. }
  4049. } else {
  4050. for _, k2 := range v2 {
  4051. ee.EncodeFloat32(float32(k2))
  4052. ee.EncodeUint(uint64(v[float32(k2)]))
  4053. }
  4054. }
  4055. } else {
  4056. if esep {
  4057. for k2, v2 := range v {
  4058. ee.WriteMapElemKey()
  4059. ee.EncodeFloat32(k2)
  4060. ee.WriteMapElemValue()
  4061. ee.EncodeUint(uint64(v2))
  4062. }
  4063. } else {
  4064. for k2, v2 := range v {
  4065. ee.EncodeFloat32(k2)
  4066. ee.EncodeUint(uint64(v2))
  4067. }
  4068. }
  4069. }
  4070. ee.WriteMapEnd()
  4071. }
  4072. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  4073. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  4074. }
  4075. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  4076. if v == nil {
  4077. e.e.EncodeNil()
  4078. return
  4079. }
  4080. ee, esep := e.e, e.hh.hasElemSeparators()
  4081. ee.WriteMapStart(len(v))
  4082. if e.h.Canonical {
  4083. v2 := make([]float64, len(v))
  4084. var i uint
  4085. for k := range v {
  4086. v2[i] = float64(k)
  4087. i++
  4088. }
  4089. sort.Sort(floatSlice(v2))
  4090. if esep {
  4091. for _, k2 := range v2 {
  4092. ee.WriteMapElemKey()
  4093. ee.EncodeFloat32(float32(k2))
  4094. ee.WriteMapElemValue()
  4095. ee.EncodeUint(uint64(v[float32(k2)]))
  4096. }
  4097. } else {
  4098. for _, k2 := range v2 {
  4099. ee.EncodeFloat32(float32(k2))
  4100. ee.EncodeUint(uint64(v[float32(k2)]))
  4101. }
  4102. }
  4103. } else {
  4104. if esep {
  4105. for k2, v2 := range v {
  4106. ee.WriteMapElemKey()
  4107. ee.EncodeFloat32(k2)
  4108. ee.WriteMapElemValue()
  4109. ee.EncodeUint(uint64(v2))
  4110. }
  4111. } else {
  4112. for k2, v2 := range v {
  4113. ee.EncodeFloat32(k2)
  4114. ee.EncodeUint(uint64(v2))
  4115. }
  4116. }
  4117. }
  4118. ee.WriteMapEnd()
  4119. }
  4120. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  4121. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  4122. }
  4123. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  4124. if v == nil {
  4125. e.e.EncodeNil()
  4126. return
  4127. }
  4128. ee, esep := e.e, e.hh.hasElemSeparators()
  4129. ee.WriteMapStart(len(v))
  4130. if e.h.Canonical {
  4131. v2 := make([]float64, len(v))
  4132. var i uint
  4133. for k := range v {
  4134. v2[i] = float64(k)
  4135. i++
  4136. }
  4137. sort.Sort(floatSlice(v2))
  4138. if esep {
  4139. for _, k2 := range v2 {
  4140. ee.WriteMapElemKey()
  4141. ee.EncodeFloat32(float32(k2))
  4142. ee.WriteMapElemValue()
  4143. ee.EncodeUint(uint64(v[float32(k2)]))
  4144. }
  4145. } else {
  4146. for _, k2 := range v2 {
  4147. ee.EncodeFloat32(float32(k2))
  4148. ee.EncodeUint(uint64(v[float32(k2)]))
  4149. }
  4150. }
  4151. } else {
  4152. if esep {
  4153. for k2, v2 := range v {
  4154. ee.WriteMapElemKey()
  4155. ee.EncodeFloat32(k2)
  4156. ee.WriteMapElemValue()
  4157. ee.EncodeUint(uint64(v2))
  4158. }
  4159. } else {
  4160. for k2, v2 := range v {
  4161. ee.EncodeFloat32(k2)
  4162. ee.EncodeUint(uint64(v2))
  4163. }
  4164. }
  4165. }
  4166. ee.WriteMapEnd()
  4167. }
  4168. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  4169. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  4170. }
  4171. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  4172. if v == nil {
  4173. e.e.EncodeNil()
  4174. return
  4175. }
  4176. ee, esep := e.e, e.hh.hasElemSeparators()
  4177. ee.WriteMapStart(len(v))
  4178. if e.h.Canonical {
  4179. v2 := make([]float64, len(v))
  4180. var i uint
  4181. for k := range v {
  4182. v2[i] = float64(k)
  4183. i++
  4184. }
  4185. sort.Sort(floatSlice(v2))
  4186. if esep {
  4187. for _, k2 := range v2 {
  4188. ee.WriteMapElemKey()
  4189. ee.EncodeFloat32(float32(k2))
  4190. ee.WriteMapElemValue()
  4191. ee.EncodeUint(uint64(v[float32(k2)]))
  4192. }
  4193. } else {
  4194. for _, k2 := range v2 {
  4195. ee.EncodeFloat32(float32(k2))
  4196. ee.EncodeUint(uint64(v[float32(k2)]))
  4197. }
  4198. }
  4199. } else {
  4200. if esep {
  4201. for k2, v2 := range v {
  4202. ee.WriteMapElemKey()
  4203. ee.EncodeFloat32(k2)
  4204. ee.WriteMapElemValue()
  4205. ee.EncodeUint(uint64(v2))
  4206. }
  4207. } else {
  4208. for k2, v2 := range v {
  4209. ee.EncodeFloat32(k2)
  4210. ee.EncodeUint(uint64(v2))
  4211. }
  4212. }
  4213. }
  4214. ee.WriteMapEnd()
  4215. }
  4216. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  4217. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  4218. }
  4219. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  4220. if v == nil {
  4221. e.e.EncodeNil()
  4222. return
  4223. }
  4224. ee, esep := e.e, e.hh.hasElemSeparators()
  4225. ee.WriteMapStart(len(v))
  4226. if e.h.Canonical {
  4227. v2 := make([]float64, len(v))
  4228. var i uint
  4229. for k := range v {
  4230. v2[i] = float64(k)
  4231. i++
  4232. }
  4233. sort.Sort(floatSlice(v2))
  4234. if esep {
  4235. for _, k2 := range v2 {
  4236. ee.WriteMapElemKey()
  4237. ee.EncodeFloat32(float32(k2))
  4238. ee.WriteMapElemValue()
  4239. e.encode(v[float32(k2)])
  4240. }
  4241. } else {
  4242. for _, k2 := range v2 {
  4243. ee.EncodeFloat32(float32(k2))
  4244. e.encode(v[float32(k2)])
  4245. }
  4246. }
  4247. } else {
  4248. if esep {
  4249. for k2, v2 := range v {
  4250. ee.WriteMapElemKey()
  4251. ee.EncodeFloat32(k2)
  4252. ee.WriteMapElemValue()
  4253. e.encode(v2)
  4254. }
  4255. } else {
  4256. for k2, v2 := range v {
  4257. ee.EncodeFloat32(k2)
  4258. e.encode(v2)
  4259. }
  4260. }
  4261. }
  4262. ee.WriteMapEnd()
  4263. }
  4264. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  4265. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  4266. }
  4267. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  4268. if v == nil {
  4269. e.e.EncodeNil()
  4270. return
  4271. }
  4272. ee, esep := e.e, e.hh.hasElemSeparators()
  4273. ee.WriteMapStart(len(v))
  4274. if e.h.Canonical {
  4275. v2 := make([]float64, len(v))
  4276. var i uint
  4277. for k := range v {
  4278. v2[i] = float64(k)
  4279. i++
  4280. }
  4281. sort.Sort(floatSlice(v2))
  4282. if esep {
  4283. for _, k2 := range v2 {
  4284. ee.WriteMapElemKey()
  4285. ee.EncodeFloat32(float32(k2))
  4286. ee.WriteMapElemValue()
  4287. ee.EncodeInt(int64(v[float32(k2)]))
  4288. }
  4289. } else {
  4290. for _, k2 := range v2 {
  4291. ee.EncodeFloat32(float32(k2))
  4292. ee.EncodeInt(int64(v[float32(k2)]))
  4293. }
  4294. }
  4295. } else {
  4296. if esep {
  4297. for k2, v2 := range v {
  4298. ee.WriteMapElemKey()
  4299. ee.EncodeFloat32(k2)
  4300. ee.WriteMapElemValue()
  4301. ee.EncodeInt(int64(v2))
  4302. }
  4303. } else {
  4304. for k2, v2 := range v {
  4305. ee.EncodeFloat32(k2)
  4306. ee.EncodeInt(int64(v2))
  4307. }
  4308. }
  4309. }
  4310. ee.WriteMapEnd()
  4311. }
  4312. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  4313. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  4314. }
  4315. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  4316. if v == nil {
  4317. e.e.EncodeNil()
  4318. return
  4319. }
  4320. ee, esep := e.e, e.hh.hasElemSeparators()
  4321. ee.WriteMapStart(len(v))
  4322. if e.h.Canonical {
  4323. v2 := make([]float64, len(v))
  4324. var i uint
  4325. for k := range v {
  4326. v2[i] = float64(k)
  4327. i++
  4328. }
  4329. sort.Sort(floatSlice(v2))
  4330. if esep {
  4331. for _, k2 := range v2 {
  4332. ee.WriteMapElemKey()
  4333. ee.EncodeFloat32(float32(k2))
  4334. ee.WriteMapElemValue()
  4335. ee.EncodeInt(int64(v[float32(k2)]))
  4336. }
  4337. } else {
  4338. for _, k2 := range v2 {
  4339. ee.EncodeFloat32(float32(k2))
  4340. ee.EncodeInt(int64(v[float32(k2)]))
  4341. }
  4342. }
  4343. } else {
  4344. if esep {
  4345. for k2, v2 := range v {
  4346. ee.WriteMapElemKey()
  4347. ee.EncodeFloat32(k2)
  4348. ee.WriteMapElemValue()
  4349. ee.EncodeInt(int64(v2))
  4350. }
  4351. } else {
  4352. for k2, v2 := range v {
  4353. ee.EncodeFloat32(k2)
  4354. ee.EncodeInt(int64(v2))
  4355. }
  4356. }
  4357. }
  4358. ee.WriteMapEnd()
  4359. }
  4360. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  4361. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  4362. }
  4363. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  4364. if v == nil {
  4365. e.e.EncodeNil()
  4366. return
  4367. }
  4368. ee, esep := e.e, e.hh.hasElemSeparators()
  4369. ee.WriteMapStart(len(v))
  4370. if e.h.Canonical {
  4371. v2 := make([]float64, len(v))
  4372. var i uint
  4373. for k := range v {
  4374. v2[i] = float64(k)
  4375. i++
  4376. }
  4377. sort.Sort(floatSlice(v2))
  4378. if esep {
  4379. for _, k2 := range v2 {
  4380. ee.WriteMapElemKey()
  4381. ee.EncodeFloat32(float32(k2))
  4382. ee.WriteMapElemValue()
  4383. ee.EncodeInt(int64(v[float32(k2)]))
  4384. }
  4385. } else {
  4386. for _, k2 := range v2 {
  4387. ee.EncodeFloat32(float32(k2))
  4388. ee.EncodeInt(int64(v[float32(k2)]))
  4389. }
  4390. }
  4391. } else {
  4392. if esep {
  4393. for k2, v2 := range v {
  4394. ee.WriteMapElemKey()
  4395. ee.EncodeFloat32(k2)
  4396. ee.WriteMapElemValue()
  4397. ee.EncodeInt(int64(v2))
  4398. }
  4399. } else {
  4400. for k2, v2 := range v {
  4401. ee.EncodeFloat32(k2)
  4402. ee.EncodeInt(int64(v2))
  4403. }
  4404. }
  4405. }
  4406. ee.WriteMapEnd()
  4407. }
  4408. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  4409. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  4410. }
  4411. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  4412. if v == nil {
  4413. e.e.EncodeNil()
  4414. return
  4415. }
  4416. ee, esep := e.e, e.hh.hasElemSeparators()
  4417. ee.WriteMapStart(len(v))
  4418. if e.h.Canonical {
  4419. v2 := make([]float64, len(v))
  4420. var i uint
  4421. for k := range v {
  4422. v2[i] = float64(k)
  4423. i++
  4424. }
  4425. sort.Sort(floatSlice(v2))
  4426. if esep {
  4427. for _, k2 := range v2 {
  4428. ee.WriteMapElemKey()
  4429. ee.EncodeFloat32(float32(k2))
  4430. ee.WriteMapElemValue()
  4431. ee.EncodeInt(int64(v[float32(k2)]))
  4432. }
  4433. } else {
  4434. for _, k2 := range v2 {
  4435. ee.EncodeFloat32(float32(k2))
  4436. ee.EncodeInt(int64(v[float32(k2)]))
  4437. }
  4438. }
  4439. } else {
  4440. if esep {
  4441. for k2, v2 := range v {
  4442. ee.WriteMapElemKey()
  4443. ee.EncodeFloat32(k2)
  4444. ee.WriteMapElemValue()
  4445. ee.EncodeInt(int64(v2))
  4446. }
  4447. } else {
  4448. for k2, v2 := range v {
  4449. ee.EncodeFloat32(k2)
  4450. ee.EncodeInt(int64(v2))
  4451. }
  4452. }
  4453. }
  4454. ee.WriteMapEnd()
  4455. }
  4456. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  4457. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  4458. }
  4459. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  4460. if v == nil {
  4461. e.e.EncodeNil()
  4462. return
  4463. }
  4464. ee, esep := e.e, e.hh.hasElemSeparators()
  4465. ee.WriteMapStart(len(v))
  4466. if e.h.Canonical {
  4467. v2 := make([]float64, len(v))
  4468. var i uint
  4469. for k := range v {
  4470. v2[i] = float64(k)
  4471. i++
  4472. }
  4473. sort.Sort(floatSlice(v2))
  4474. if esep {
  4475. for _, k2 := range v2 {
  4476. ee.WriteMapElemKey()
  4477. ee.EncodeFloat32(float32(k2))
  4478. ee.WriteMapElemValue()
  4479. ee.EncodeInt(int64(v[float32(k2)]))
  4480. }
  4481. } else {
  4482. for _, k2 := range v2 {
  4483. ee.EncodeFloat32(float32(k2))
  4484. ee.EncodeInt(int64(v[float32(k2)]))
  4485. }
  4486. }
  4487. } else {
  4488. if esep {
  4489. for k2, v2 := range v {
  4490. ee.WriteMapElemKey()
  4491. ee.EncodeFloat32(k2)
  4492. ee.WriteMapElemValue()
  4493. ee.EncodeInt(int64(v2))
  4494. }
  4495. } else {
  4496. for k2, v2 := range v {
  4497. ee.EncodeFloat32(k2)
  4498. ee.EncodeInt(int64(v2))
  4499. }
  4500. }
  4501. }
  4502. ee.WriteMapEnd()
  4503. }
  4504. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  4505. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  4506. }
  4507. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  4508. if v == nil {
  4509. e.e.EncodeNil()
  4510. return
  4511. }
  4512. ee, esep := e.e, e.hh.hasElemSeparators()
  4513. ee.WriteMapStart(len(v))
  4514. if e.h.Canonical {
  4515. v2 := make([]float64, len(v))
  4516. var i uint
  4517. for k := range v {
  4518. v2[i] = float64(k)
  4519. i++
  4520. }
  4521. sort.Sort(floatSlice(v2))
  4522. if esep {
  4523. for _, k2 := range v2 {
  4524. ee.WriteMapElemKey()
  4525. ee.EncodeFloat32(float32(k2))
  4526. ee.WriteMapElemValue()
  4527. ee.EncodeFloat32(v[float32(k2)])
  4528. }
  4529. } else {
  4530. for _, k2 := range v2 {
  4531. ee.EncodeFloat32(float32(k2))
  4532. ee.EncodeFloat32(v[float32(k2)])
  4533. }
  4534. }
  4535. } else {
  4536. if esep {
  4537. for k2, v2 := range v {
  4538. ee.WriteMapElemKey()
  4539. ee.EncodeFloat32(k2)
  4540. ee.WriteMapElemValue()
  4541. ee.EncodeFloat32(v2)
  4542. }
  4543. } else {
  4544. for k2, v2 := range v {
  4545. ee.EncodeFloat32(k2)
  4546. ee.EncodeFloat32(v2)
  4547. }
  4548. }
  4549. }
  4550. ee.WriteMapEnd()
  4551. }
  4552. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  4553. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  4554. }
  4555. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  4556. if v == nil {
  4557. e.e.EncodeNil()
  4558. return
  4559. }
  4560. ee, esep := e.e, e.hh.hasElemSeparators()
  4561. ee.WriteMapStart(len(v))
  4562. if e.h.Canonical {
  4563. v2 := make([]float64, len(v))
  4564. var i uint
  4565. for k := range v {
  4566. v2[i] = float64(k)
  4567. i++
  4568. }
  4569. sort.Sort(floatSlice(v2))
  4570. if esep {
  4571. for _, k2 := range v2 {
  4572. ee.WriteMapElemKey()
  4573. ee.EncodeFloat32(float32(k2))
  4574. ee.WriteMapElemValue()
  4575. ee.EncodeFloat64(v[float32(k2)])
  4576. }
  4577. } else {
  4578. for _, k2 := range v2 {
  4579. ee.EncodeFloat32(float32(k2))
  4580. ee.EncodeFloat64(v[float32(k2)])
  4581. }
  4582. }
  4583. } else {
  4584. if esep {
  4585. for k2, v2 := range v {
  4586. ee.WriteMapElemKey()
  4587. ee.EncodeFloat32(k2)
  4588. ee.WriteMapElemValue()
  4589. ee.EncodeFloat64(v2)
  4590. }
  4591. } else {
  4592. for k2, v2 := range v {
  4593. ee.EncodeFloat32(k2)
  4594. ee.EncodeFloat64(v2)
  4595. }
  4596. }
  4597. }
  4598. ee.WriteMapEnd()
  4599. }
  4600. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  4601. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  4602. }
  4603. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  4604. if v == nil {
  4605. e.e.EncodeNil()
  4606. return
  4607. }
  4608. ee, esep := e.e, e.hh.hasElemSeparators()
  4609. ee.WriteMapStart(len(v))
  4610. if e.h.Canonical {
  4611. v2 := make([]float64, len(v))
  4612. var i uint
  4613. for k := range v {
  4614. v2[i] = float64(k)
  4615. i++
  4616. }
  4617. sort.Sort(floatSlice(v2))
  4618. if esep {
  4619. for _, k2 := range v2 {
  4620. ee.WriteMapElemKey()
  4621. ee.EncodeFloat32(float32(k2))
  4622. ee.WriteMapElemValue()
  4623. ee.EncodeBool(v[float32(k2)])
  4624. }
  4625. } else {
  4626. for _, k2 := range v2 {
  4627. ee.EncodeFloat32(float32(k2))
  4628. ee.EncodeBool(v[float32(k2)])
  4629. }
  4630. }
  4631. } else {
  4632. if esep {
  4633. for k2, v2 := range v {
  4634. ee.WriteMapElemKey()
  4635. ee.EncodeFloat32(k2)
  4636. ee.WriteMapElemValue()
  4637. ee.EncodeBool(v2)
  4638. }
  4639. } else {
  4640. for k2, v2 := range v {
  4641. ee.EncodeFloat32(k2)
  4642. ee.EncodeBool(v2)
  4643. }
  4644. }
  4645. }
  4646. ee.WriteMapEnd()
  4647. }
  4648. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  4649. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  4650. }
  4651. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  4652. if v == nil {
  4653. e.e.EncodeNil()
  4654. return
  4655. }
  4656. ee, esep := e.e, e.hh.hasElemSeparators()
  4657. ee.WriteMapStart(len(v))
  4658. if e.h.Canonical {
  4659. v2 := make([]float64, len(v))
  4660. var i uint
  4661. for k := range v {
  4662. v2[i] = float64(k)
  4663. i++
  4664. }
  4665. sort.Sort(floatSlice(v2))
  4666. if esep {
  4667. for _, k2 := range v2 {
  4668. ee.WriteMapElemKey()
  4669. ee.EncodeFloat64(float64(k2))
  4670. ee.WriteMapElemValue()
  4671. e.encode(v[float64(k2)])
  4672. }
  4673. } else {
  4674. for _, k2 := range v2 {
  4675. ee.EncodeFloat64(float64(k2))
  4676. e.encode(v[float64(k2)])
  4677. }
  4678. }
  4679. } else {
  4680. if esep {
  4681. for k2, v2 := range v {
  4682. ee.WriteMapElemKey()
  4683. ee.EncodeFloat64(k2)
  4684. ee.WriteMapElemValue()
  4685. e.encode(v2)
  4686. }
  4687. } else {
  4688. for k2, v2 := range v {
  4689. ee.EncodeFloat64(k2)
  4690. e.encode(v2)
  4691. }
  4692. }
  4693. }
  4694. ee.WriteMapEnd()
  4695. }
  4696. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  4697. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  4698. }
  4699. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  4700. if v == nil {
  4701. e.e.EncodeNil()
  4702. return
  4703. }
  4704. ee, esep := e.e, e.hh.hasElemSeparators()
  4705. ee.WriteMapStart(len(v))
  4706. if e.h.Canonical {
  4707. v2 := make([]float64, len(v))
  4708. var i uint
  4709. for k := range v {
  4710. v2[i] = float64(k)
  4711. i++
  4712. }
  4713. sort.Sort(floatSlice(v2))
  4714. if esep {
  4715. for _, k2 := range v2 {
  4716. ee.WriteMapElemKey()
  4717. ee.EncodeFloat64(float64(k2))
  4718. ee.WriteMapElemValue()
  4719. ee.EncodeStringEnc(cUTF8, v[float64(k2)])
  4720. }
  4721. } else {
  4722. for _, k2 := range v2 {
  4723. ee.EncodeFloat64(float64(k2))
  4724. ee.EncodeStringEnc(cUTF8, v[float64(k2)])
  4725. }
  4726. }
  4727. } else {
  4728. if esep {
  4729. for k2, v2 := range v {
  4730. ee.WriteMapElemKey()
  4731. ee.EncodeFloat64(k2)
  4732. ee.WriteMapElemValue()
  4733. ee.EncodeStringEnc(cUTF8, v2)
  4734. }
  4735. } else {
  4736. for k2, v2 := range v {
  4737. ee.EncodeFloat64(k2)
  4738. ee.EncodeStringEnc(cUTF8, v2)
  4739. }
  4740. }
  4741. }
  4742. ee.WriteMapEnd()
  4743. }
  4744. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  4745. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  4746. }
  4747. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  4748. if v == nil {
  4749. e.e.EncodeNil()
  4750. return
  4751. }
  4752. ee, esep := e.e, e.hh.hasElemSeparators()
  4753. ee.WriteMapStart(len(v))
  4754. if e.h.Canonical {
  4755. v2 := make([]float64, len(v))
  4756. var i uint
  4757. for k := range v {
  4758. v2[i] = float64(k)
  4759. i++
  4760. }
  4761. sort.Sort(floatSlice(v2))
  4762. if esep {
  4763. for _, k2 := range v2 {
  4764. ee.WriteMapElemKey()
  4765. ee.EncodeFloat64(float64(k2))
  4766. ee.WriteMapElemValue()
  4767. ee.EncodeUint(uint64(v[float64(k2)]))
  4768. }
  4769. } else {
  4770. for _, k2 := range v2 {
  4771. ee.EncodeFloat64(float64(k2))
  4772. ee.EncodeUint(uint64(v[float64(k2)]))
  4773. }
  4774. }
  4775. } else {
  4776. if esep {
  4777. for k2, v2 := range v {
  4778. ee.WriteMapElemKey()
  4779. ee.EncodeFloat64(k2)
  4780. ee.WriteMapElemValue()
  4781. ee.EncodeUint(uint64(v2))
  4782. }
  4783. } else {
  4784. for k2, v2 := range v {
  4785. ee.EncodeFloat64(k2)
  4786. ee.EncodeUint(uint64(v2))
  4787. }
  4788. }
  4789. }
  4790. ee.WriteMapEnd()
  4791. }
  4792. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  4793. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  4794. }
  4795. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  4796. if v == nil {
  4797. e.e.EncodeNil()
  4798. return
  4799. }
  4800. ee, esep := e.e, e.hh.hasElemSeparators()
  4801. ee.WriteMapStart(len(v))
  4802. if e.h.Canonical {
  4803. v2 := make([]float64, len(v))
  4804. var i uint
  4805. for k := range v {
  4806. v2[i] = float64(k)
  4807. i++
  4808. }
  4809. sort.Sort(floatSlice(v2))
  4810. if esep {
  4811. for _, k2 := range v2 {
  4812. ee.WriteMapElemKey()
  4813. ee.EncodeFloat64(float64(k2))
  4814. ee.WriteMapElemValue()
  4815. ee.EncodeUint(uint64(v[float64(k2)]))
  4816. }
  4817. } else {
  4818. for _, k2 := range v2 {
  4819. ee.EncodeFloat64(float64(k2))
  4820. ee.EncodeUint(uint64(v[float64(k2)]))
  4821. }
  4822. }
  4823. } else {
  4824. if esep {
  4825. for k2, v2 := range v {
  4826. ee.WriteMapElemKey()
  4827. ee.EncodeFloat64(k2)
  4828. ee.WriteMapElemValue()
  4829. ee.EncodeUint(uint64(v2))
  4830. }
  4831. } else {
  4832. for k2, v2 := range v {
  4833. ee.EncodeFloat64(k2)
  4834. ee.EncodeUint(uint64(v2))
  4835. }
  4836. }
  4837. }
  4838. ee.WriteMapEnd()
  4839. }
  4840. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  4841. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  4842. }
  4843. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  4844. if v == nil {
  4845. e.e.EncodeNil()
  4846. return
  4847. }
  4848. ee, esep := e.e, e.hh.hasElemSeparators()
  4849. ee.WriteMapStart(len(v))
  4850. if e.h.Canonical {
  4851. v2 := make([]float64, len(v))
  4852. var i uint
  4853. for k := range v {
  4854. v2[i] = float64(k)
  4855. i++
  4856. }
  4857. sort.Sort(floatSlice(v2))
  4858. if esep {
  4859. for _, k2 := range v2 {
  4860. ee.WriteMapElemKey()
  4861. ee.EncodeFloat64(float64(k2))
  4862. ee.WriteMapElemValue()
  4863. ee.EncodeUint(uint64(v[float64(k2)]))
  4864. }
  4865. } else {
  4866. for _, k2 := range v2 {
  4867. ee.EncodeFloat64(float64(k2))
  4868. ee.EncodeUint(uint64(v[float64(k2)]))
  4869. }
  4870. }
  4871. } else {
  4872. if esep {
  4873. for k2, v2 := range v {
  4874. ee.WriteMapElemKey()
  4875. ee.EncodeFloat64(k2)
  4876. ee.WriteMapElemValue()
  4877. ee.EncodeUint(uint64(v2))
  4878. }
  4879. } else {
  4880. for k2, v2 := range v {
  4881. ee.EncodeFloat64(k2)
  4882. ee.EncodeUint(uint64(v2))
  4883. }
  4884. }
  4885. }
  4886. ee.WriteMapEnd()
  4887. }
  4888. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  4889. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  4890. }
  4891. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  4892. if v == nil {
  4893. e.e.EncodeNil()
  4894. return
  4895. }
  4896. ee, esep := e.e, e.hh.hasElemSeparators()
  4897. ee.WriteMapStart(len(v))
  4898. if e.h.Canonical {
  4899. v2 := make([]float64, len(v))
  4900. var i uint
  4901. for k := range v {
  4902. v2[i] = float64(k)
  4903. i++
  4904. }
  4905. sort.Sort(floatSlice(v2))
  4906. if esep {
  4907. for _, k2 := range v2 {
  4908. ee.WriteMapElemKey()
  4909. ee.EncodeFloat64(float64(k2))
  4910. ee.WriteMapElemValue()
  4911. ee.EncodeUint(uint64(v[float64(k2)]))
  4912. }
  4913. } else {
  4914. for _, k2 := range v2 {
  4915. ee.EncodeFloat64(float64(k2))
  4916. ee.EncodeUint(uint64(v[float64(k2)]))
  4917. }
  4918. }
  4919. } else {
  4920. if esep {
  4921. for k2, v2 := range v {
  4922. ee.WriteMapElemKey()
  4923. ee.EncodeFloat64(k2)
  4924. ee.WriteMapElemValue()
  4925. ee.EncodeUint(uint64(v2))
  4926. }
  4927. } else {
  4928. for k2, v2 := range v {
  4929. ee.EncodeFloat64(k2)
  4930. ee.EncodeUint(uint64(v2))
  4931. }
  4932. }
  4933. }
  4934. ee.WriteMapEnd()
  4935. }
  4936. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  4937. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  4938. }
  4939. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
  4940. if v == nil {
  4941. e.e.EncodeNil()
  4942. return
  4943. }
  4944. ee, esep := e.e, e.hh.hasElemSeparators()
  4945. ee.WriteMapStart(len(v))
  4946. if e.h.Canonical {
  4947. v2 := make([]float64, len(v))
  4948. var i uint
  4949. for k := range v {
  4950. v2[i] = float64(k)
  4951. i++
  4952. }
  4953. sort.Sort(floatSlice(v2))
  4954. if esep {
  4955. for _, k2 := range v2 {
  4956. ee.WriteMapElemKey()
  4957. ee.EncodeFloat64(float64(k2))
  4958. ee.WriteMapElemValue()
  4959. ee.EncodeUint(uint64(v[float64(k2)]))
  4960. }
  4961. } else {
  4962. for _, k2 := range v2 {
  4963. ee.EncodeFloat64(float64(k2))
  4964. ee.EncodeUint(uint64(v[float64(k2)]))
  4965. }
  4966. }
  4967. } else {
  4968. if esep {
  4969. for k2, v2 := range v {
  4970. ee.WriteMapElemKey()
  4971. ee.EncodeFloat64(k2)
  4972. ee.WriteMapElemValue()
  4973. ee.EncodeUint(uint64(v2))
  4974. }
  4975. } else {
  4976. for k2, v2 := range v {
  4977. ee.EncodeFloat64(k2)
  4978. ee.EncodeUint(uint64(v2))
  4979. }
  4980. }
  4981. }
  4982. ee.WriteMapEnd()
  4983. }
  4984. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  4985. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  4986. }
  4987. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  4988. if v == nil {
  4989. e.e.EncodeNil()
  4990. return
  4991. }
  4992. ee, esep := e.e, e.hh.hasElemSeparators()
  4993. ee.WriteMapStart(len(v))
  4994. if e.h.Canonical {
  4995. v2 := make([]float64, len(v))
  4996. var i uint
  4997. for k := range v {
  4998. v2[i] = float64(k)
  4999. i++
  5000. }
  5001. sort.Sort(floatSlice(v2))
  5002. if esep {
  5003. for _, k2 := range v2 {
  5004. ee.WriteMapElemKey()
  5005. ee.EncodeFloat64(float64(k2))
  5006. ee.WriteMapElemValue()
  5007. e.encode(v[float64(k2)])
  5008. }
  5009. } else {
  5010. for _, k2 := range v2 {
  5011. ee.EncodeFloat64(float64(k2))
  5012. e.encode(v[float64(k2)])
  5013. }
  5014. }
  5015. } else {
  5016. if esep {
  5017. for k2, v2 := range v {
  5018. ee.WriteMapElemKey()
  5019. ee.EncodeFloat64(k2)
  5020. ee.WriteMapElemValue()
  5021. e.encode(v2)
  5022. }
  5023. } else {
  5024. for k2, v2 := range v {
  5025. ee.EncodeFloat64(k2)
  5026. e.encode(v2)
  5027. }
  5028. }
  5029. }
  5030. ee.WriteMapEnd()
  5031. }
  5032. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  5033. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  5034. }
  5035. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  5036. if v == nil {
  5037. e.e.EncodeNil()
  5038. return
  5039. }
  5040. ee, esep := e.e, e.hh.hasElemSeparators()
  5041. ee.WriteMapStart(len(v))
  5042. if e.h.Canonical {
  5043. v2 := make([]float64, len(v))
  5044. var i uint
  5045. for k := range v {
  5046. v2[i] = float64(k)
  5047. i++
  5048. }
  5049. sort.Sort(floatSlice(v2))
  5050. if esep {
  5051. for _, k2 := range v2 {
  5052. ee.WriteMapElemKey()
  5053. ee.EncodeFloat64(float64(k2))
  5054. ee.WriteMapElemValue()
  5055. ee.EncodeInt(int64(v[float64(k2)]))
  5056. }
  5057. } else {
  5058. for _, k2 := range v2 {
  5059. ee.EncodeFloat64(float64(k2))
  5060. ee.EncodeInt(int64(v[float64(k2)]))
  5061. }
  5062. }
  5063. } else {
  5064. if esep {
  5065. for k2, v2 := range v {
  5066. ee.WriteMapElemKey()
  5067. ee.EncodeFloat64(k2)
  5068. ee.WriteMapElemValue()
  5069. ee.EncodeInt(int64(v2))
  5070. }
  5071. } else {
  5072. for k2, v2 := range v {
  5073. ee.EncodeFloat64(k2)
  5074. ee.EncodeInt(int64(v2))
  5075. }
  5076. }
  5077. }
  5078. ee.WriteMapEnd()
  5079. }
  5080. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  5081. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  5082. }
  5083. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  5084. if v == nil {
  5085. e.e.EncodeNil()
  5086. return
  5087. }
  5088. ee, esep := e.e, e.hh.hasElemSeparators()
  5089. ee.WriteMapStart(len(v))
  5090. if e.h.Canonical {
  5091. v2 := make([]float64, len(v))
  5092. var i uint
  5093. for k := range v {
  5094. v2[i] = float64(k)
  5095. i++
  5096. }
  5097. sort.Sort(floatSlice(v2))
  5098. if esep {
  5099. for _, k2 := range v2 {
  5100. ee.WriteMapElemKey()
  5101. ee.EncodeFloat64(float64(k2))
  5102. ee.WriteMapElemValue()
  5103. ee.EncodeInt(int64(v[float64(k2)]))
  5104. }
  5105. } else {
  5106. for _, k2 := range v2 {
  5107. ee.EncodeFloat64(float64(k2))
  5108. ee.EncodeInt(int64(v[float64(k2)]))
  5109. }
  5110. }
  5111. } else {
  5112. if esep {
  5113. for k2, v2 := range v {
  5114. ee.WriteMapElemKey()
  5115. ee.EncodeFloat64(k2)
  5116. ee.WriteMapElemValue()
  5117. ee.EncodeInt(int64(v2))
  5118. }
  5119. } else {
  5120. for k2, v2 := range v {
  5121. ee.EncodeFloat64(k2)
  5122. ee.EncodeInt(int64(v2))
  5123. }
  5124. }
  5125. }
  5126. ee.WriteMapEnd()
  5127. }
  5128. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  5129. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  5130. }
  5131. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  5132. if v == nil {
  5133. e.e.EncodeNil()
  5134. return
  5135. }
  5136. ee, esep := e.e, e.hh.hasElemSeparators()
  5137. ee.WriteMapStart(len(v))
  5138. if e.h.Canonical {
  5139. v2 := make([]float64, len(v))
  5140. var i uint
  5141. for k := range v {
  5142. v2[i] = float64(k)
  5143. i++
  5144. }
  5145. sort.Sort(floatSlice(v2))
  5146. if esep {
  5147. for _, k2 := range v2 {
  5148. ee.WriteMapElemKey()
  5149. ee.EncodeFloat64(float64(k2))
  5150. ee.WriteMapElemValue()
  5151. ee.EncodeInt(int64(v[float64(k2)]))
  5152. }
  5153. } else {
  5154. for _, k2 := range v2 {
  5155. ee.EncodeFloat64(float64(k2))
  5156. ee.EncodeInt(int64(v[float64(k2)]))
  5157. }
  5158. }
  5159. } else {
  5160. if esep {
  5161. for k2, v2 := range v {
  5162. ee.WriteMapElemKey()
  5163. ee.EncodeFloat64(k2)
  5164. ee.WriteMapElemValue()
  5165. ee.EncodeInt(int64(v2))
  5166. }
  5167. } else {
  5168. for k2, v2 := range v {
  5169. ee.EncodeFloat64(k2)
  5170. ee.EncodeInt(int64(v2))
  5171. }
  5172. }
  5173. }
  5174. ee.WriteMapEnd()
  5175. }
  5176. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  5177. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  5178. }
  5179. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  5180. if v == nil {
  5181. e.e.EncodeNil()
  5182. return
  5183. }
  5184. ee, esep := e.e, e.hh.hasElemSeparators()
  5185. ee.WriteMapStart(len(v))
  5186. if e.h.Canonical {
  5187. v2 := make([]float64, len(v))
  5188. var i uint
  5189. for k := range v {
  5190. v2[i] = float64(k)
  5191. i++
  5192. }
  5193. sort.Sort(floatSlice(v2))
  5194. if esep {
  5195. for _, k2 := range v2 {
  5196. ee.WriteMapElemKey()
  5197. ee.EncodeFloat64(float64(k2))
  5198. ee.WriteMapElemValue()
  5199. ee.EncodeInt(int64(v[float64(k2)]))
  5200. }
  5201. } else {
  5202. for _, k2 := range v2 {
  5203. ee.EncodeFloat64(float64(k2))
  5204. ee.EncodeInt(int64(v[float64(k2)]))
  5205. }
  5206. }
  5207. } else {
  5208. if esep {
  5209. for k2, v2 := range v {
  5210. ee.WriteMapElemKey()
  5211. ee.EncodeFloat64(k2)
  5212. ee.WriteMapElemValue()
  5213. ee.EncodeInt(int64(v2))
  5214. }
  5215. } else {
  5216. for k2, v2 := range v {
  5217. ee.EncodeFloat64(k2)
  5218. ee.EncodeInt(int64(v2))
  5219. }
  5220. }
  5221. }
  5222. ee.WriteMapEnd()
  5223. }
  5224. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  5225. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  5226. }
  5227. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  5228. if v == nil {
  5229. e.e.EncodeNil()
  5230. return
  5231. }
  5232. ee, esep := e.e, e.hh.hasElemSeparators()
  5233. ee.WriteMapStart(len(v))
  5234. if e.h.Canonical {
  5235. v2 := make([]float64, len(v))
  5236. var i uint
  5237. for k := range v {
  5238. v2[i] = float64(k)
  5239. i++
  5240. }
  5241. sort.Sort(floatSlice(v2))
  5242. if esep {
  5243. for _, k2 := range v2 {
  5244. ee.WriteMapElemKey()
  5245. ee.EncodeFloat64(float64(k2))
  5246. ee.WriteMapElemValue()
  5247. ee.EncodeInt(int64(v[float64(k2)]))
  5248. }
  5249. } else {
  5250. for _, k2 := range v2 {
  5251. ee.EncodeFloat64(float64(k2))
  5252. ee.EncodeInt(int64(v[float64(k2)]))
  5253. }
  5254. }
  5255. } else {
  5256. if esep {
  5257. for k2, v2 := range v {
  5258. ee.WriteMapElemKey()
  5259. ee.EncodeFloat64(k2)
  5260. ee.WriteMapElemValue()
  5261. ee.EncodeInt(int64(v2))
  5262. }
  5263. } else {
  5264. for k2, v2 := range v {
  5265. ee.EncodeFloat64(k2)
  5266. ee.EncodeInt(int64(v2))
  5267. }
  5268. }
  5269. }
  5270. ee.WriteMapEnd()
  5271. }
  5272. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  5273. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  5274. }
  5275. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  5276. if v == nil {
  5277. e.e.EncodeNil()
  5278. return
  5279. }
  5280. ee, esep := e.e, e.hh.hasElemSeparators()
  5281. ee.WriteMapStart(len(v))
  5282. if e.h.Canonical {
  5283. v2 := make([]float64, len(v))
  5284. var i uint
  5285. for k := range v {
  5286. v2[i] = float64(k)
  5287. i++
  5288. }
  5289. sort.Sort(floatSlice(v2))
  5290. if esep {
  5291. for _, k2 := range v2 {
  5292. ee.WriteMapElemKey()
  5293. ee.EncodeFloat64(float64(k2))
  5294. ee.WriteMapElemValue()
  5295. ee.EncodeFloat32(v[float64(k2)])
  5296. }
  5297. } else {
  5298. for _, k2 := range v2 {
  5299. ee.EncodeFloat64(float64(k2))
  5300. ee.EncodeFloat32(v[float64(k2)])
  5301. }
  5302. }
  5303. } else {
  5304. if esep {
  5305. for k2, v2 := range v {
  5306. ee.WriteMapElemKey()
  5307. ee.EncodeFloat64(k2)
  5308. ee.WriteMapElemValue()
  5309. ee.EncodeFloat32(v2)
  5310. }
  5311. } else {
  5312. for k2, v2 := range v {
  5313. ee.EncodeFloat64(k2)
  5314. ee.EncodeFloat32(v2)
  5315. }
  5316. }
  5317. }
  5318. ee.WriteMapEnd()
  5319. }
  5320. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  5321. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  5322. }
  5323. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
  5324. if v == nil {
  5325. e.e.EncodeNil()
  5326. return
  5327. }
  5328. ee, esep := e.e, e.hh.hasElemSeparators()
  5329. ee.WriteMapStart(len(v))
  5330. if e.h.Canonical {
  5331. v2 := make([]float64, len(v))
  5332. var i uint
  5333. for k := range v {
  5334. v2[i] = float64(k)
  5335. i++
  5336. }
  5337. sort.Sort(floatSlice(v2))
  5338. if esep {
  5339. for _, k2 := range v2 {
  5340. ee.WriteMapElemKey()
  5341. ee.EncodeFloat64(float64(k2))
  5342. ee.WriteMapElemValue()
  5343. ee.EncodeFloat64(v[float64(k2)])
  5344. }
  5345. } else {
  5346. for _, k2 := range v2 {
  5347. ee.EncodeFloat64(float64(k2))
  5348. ee.EncodeFloat64(v[float64(k2)])
  5349. }
  5350. }
  5351. } else {
  5352. if esep {
  5353. for k2, v2 := range v {
  5354. ee.WriteMapElemKey()
  5355. ee.EncodeFloat64(k2)
  5356. ee.WriteMapElemValue()
  5357. ee.EncodeFloat64(v2)
  5358. }
  5359. } else {
  5360. for k2, v2 := range v {
  5361. ee.EncodeFloat64(k2)
  5362. ee.EncodeFloat64(v2)
  5363. }
  5364. }
  5365. }
  5366. ee.WriteMapEnd()
  5367. }
  5368. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  5369. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  5370. }
  5371. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  5372. if v == nil {
  5373. e.e.EncodeNil()
  5374. return
  5375. }
  5376. ee, esep := e.e, e.hh.hasElemSeparators()
  5377. ee.WriteMapStart(len(v))
  5378. if e.h.Canonical {
  5379. v2 := make([]float64, len(v))
  5380. var i uint
  5381. for k := range v {
  5382. v2[i] = float64(k)
  5383. i++
  5384. }
  5385. sort.Sort(floatSlice(v2))
  5386. if esep {
  5387. for _, k2 := range v2 {
  5388. ee.WriteMapElemKey()
  5389. ee.EncodeFloat64(float64(k2))
  5390. ee.WriteMapElemValue()
  5391. ee.EncodeBool(v[float64(k2)])
  5392. }
  5393. } else {
  5394. for _, k2 := range v2 {
  5395. ee.EncodeFloat64(float64(k2))
  5396. ee.EncodeBool(v[float64(k2)])
  5397. }
  5398. }
  5399. } else {
  5400. if esep {
  5401. for k2, v2 := range v {
  5402. ee.WriteMapElemKey()
  5403. ee.EncodeFloat64(k2)
  5404. ee.WriteMapElemValue()
  5405. ee.EncodeBool(v2)
  5406. }
  5407. } else {
  5408. for k2, v2 := range v {
  5409. ee.EncodeFloat64(k2)
  5410. ee.EncodeBool(v2)
  5411. }
  5412. }
  5413. }
  5414. ee.WriteMapEnd()
  5415. }
  5416. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  5417. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  5418. }
  5419. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  5420. if v == nil {
  5421. e.e.EncodeNil()
  5422. return
  5423. }
  5424. ee, esep := e.e, e.hh.hasElemSeparators()
  5425. ee.WriteMapStart(len(v))
  5426. if e.h.Canonical {
  5427. v2 := make([]uint64, len(v))
  5428. var i uint
  5429. for k := range v {
  5430. v2[i] = uint64(k)
  5431. i++
  5432. }
  5433. sort.Sort(uintSlice(v2))
  5434. if esep {
  5435. for _, k2 := range v2 {
  5436. ee.WriteMapElemKey()
  5437. ee.EncodeUint(uint64(uint(k2)))
  5438. ee.WriteMapElemValue()
  5439. e.encode(v[uint(k2)])
  5440. }
  5441. } else {
  5442. for _, k2 := range v2 {
  5443. ee.EncodeUint(uint64(uint(k2)))
  5444. e.encode(v[uint(k2)])
  5445. }
  5446. }
  5447. } else {
  5448. if esep {
  5449. for k2, v2 := range v {
  5450. ee.WriteMapElemKey()
  5451. ee.EncodeUint(uint64(k2))
  5452. ee.WriteMapElemValue()
  5453. e.encode(v2)
  5454. }
  5455. } else {
  5456. for k2, v2 := range v {
  5457. ee.EncodeUint(uint64(k2))
  5458. e.encode(v2)
  5459. }
  5460. }
  5461. }
  5462. ee.WriteMapEnd()
  5463. }
  5464. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  5465. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  5466. }
  5467. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  5468. if v == nil {
  5469. e.e.EncodeNil()
  5470. return
  5471. }
  5472. ee, esep := e.e, e.hh.hasElemSeparators()
  5473. ee.WriteMapStart(len(v))
  5474. if e.h.Canonical {
  5475. v2 := make([]uint64, len(v))
  5476. var i uint
  5477. for k := range v {
  5478. v2[i] = uint64(k)
  5479. i++
  5480. }
  5481. sort.Sort(uintSlice(v2))
  5482. if esep {
  5483. for _, k2 := range v2 {
  5484. ee.WriteMapElemKey()
  5485. ee.EncodeUint(uint64(uint(k2)))
  5486. ee.WriteMapElemValue()
  5487. ee.EncodeStringEnc(cUTF8, v[uint(k2)])
  5488. }
  5489. } else {
  5490. for _, k2 := range v2 {
  5491. ee.EncodeUint(uint64(uint(k2)))
  5492. ee.EncodeStringEnc(cUTF8, v[uint(k2)])
  5493. }
  5494. }
  5495. } else {
  5496. if esep {
  5497. for k2, v2 := range v {
  5498. ee.WriteMapElemKey()
  5499. ee.EncodeUint(uint64(k2))
  5500. ee.WriteMapElemValue()
  5501. ee.EncodeStringEnc(cUTF8, v2)
  5502. }
  5503. } else {
  5504. for k2, v2 := range v {
  5505. ee.EncodeUint(uint64(k2))
  5506. ee.EncodeStringEnc(cUTF8, v2)
  5507. }
  5508. }
  5509. }
  5510. ee.WriteMapEnd()
  5511. }
  5512. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  5513. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  5514. }
  5515. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  5516. if v == nil {
  5517. e.e.EncodeNil()
  5518. return
  5519. }
  5520. ee, esep := e.e, e.hh.hasElemSeparators()
  5521. ee.WriteMapStart(len(v))
  5522. if e.h.Canonical {
  5523. v2 := make([]uint64, len(v))
  5524. var i uint
  5525. for k := range v {
  5526. v2[i] = uint64(k)
  5527. i++
  5528. }
  5529. sort.Sort(uintSlice(v2))
  5530. if esep {
  5531. for _, k2 := range v2 {
  5532. ee.WriteMapElemKey()
  5533. ee.EncodeUint(uint64(uint(k2)))
  5534. ee.WriteMapElemValue()
  5535. ee.EncodeUint(uint64(v[uint(k2)]))
  5536. }
  5537. } else {
  5538. for _, k2 := range v2 {
  5539. ee.EncodeUint(uint64(uint(k2)))
  5540. ee.EncodeUint(uint64(v[uint(k2)]))
  5541. }
  5542. }
  5543. } else {
  5544. if esep {
  5545. for k2, v2 := range v {
  5546. ee.WriteMapElemKey()
  5547. ee.EncodeUint(uint64(k2))
  5548. ee.WriteMapElemValue()
  5549. ee.EncodeUint(uint64(v2))
  5550. }
  5551. } else {
  5552. for k2, v2 := range v {
  5553. ee.EncodeUint(uint64(k2))
  5554. ee.EncodeUint(uint64(v2))
  5555. }
  5556. }
  5557. }
  5558. ee.WriteMapEnd()
  5559. }
  5560. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  5561. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  5562. }
  5563. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  5564. if v == nil {
  5565. e.e.EncodeNil()
  5566. return
  5567. }
  5568. ee, esep := e.e, e.hh.hasElemSeparators()
  5569. ee.WriteMapStart(len(v))
  5570. if e.h.Canonical {
  5571. v2 := make([]uint64, len(v))
  5572. var i uint
  5573. for k := range v {
  5574. v2[i] = uint64(k)
  5575. i++
  5576. }
  5577. sort.Sort(uintSlice(v2))
  5578. if esep {
  5579. for _, k2 := range v2 {
  5580. ee.WriteMapElemKey()
  5581. ee.EncodeUint(uint64(uint(k2)))
  5582. ee.WriteMapElemValue()
  5583. ee.EncodeUint(uint64(v[uint(k2)]))
  5584. }
  5585. } else {
  5586. for _, k2 := range v2 {
  5587. ee.EncodeUint(uint64(uint(k2)))
  5588. ee.EncodeUint(uint64(v[uint(k2)]))
  5589. }
  5590. }
  5591. } else {
  5592. if esep {
  5593. for k2, v2 := range v {
  5594. ee.WriteMapElemKey()
  5595. ee.EncodeUint(uint64(k2))
  5596. ee.WriteMapElemValue()
  5597. ee.EncodeUint(uint64(v2))
  5598. }
  5599. } else {
  5600. for k2, v2 := range v {
  5601. ee.EncodeUint(uint64(k2))
  5602. ee.EncodeUint(uint64(v2))
  5603. }
  5604. }
  5605. }
  5606. ee.WriteMapEnd()
  5607. }
  5608. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  5609. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  5610. }
  5611. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  5612. if v == nil {
  5613. e.e.EncodeNil()
  5614. return
  5615. }
  5616. ee, esep := e.e, e.hh.hasElemSeparators()
  5617. ee.WriteMapStart(len(v))
  5618. if e.h.Canonical {
  5619. v2 := make([]uint64, len(v))
  5620. var i uint
  5621. for k := range v {
  5622. v2[i] = uint64(k)
  5623. i++
  5624. }
  5625. sort.Sort(uintSlice(v2))
  5626. if esep {
  5627. for _, k2 := range v2 {
  5628. ee.WriteMapElemKey()
  5629. ee.EncodeUint(uint64(uint(k2)))
  5630. ee.WriteMapElemValue()
  5631. ee.EncodeUint(uint64(v[uint(k2)]))
  5632. }
  5633. } else {
  5634. for _, k2 := range v2 {
  5635. ee.EncodeUint(uint64(uint(k2)))
  5636. ee.EncodeUint(uint64(v[uint(k2)]))
  5637. }
  5638. }
  5639. } else {
  5640. if esep {
  5641. for k2, v2 := range v {
  5642. ee.WriteMapElemKey()
  5643. ee.EncodeUint(uint64(k2))
  5644. ee.WriteMapElemValue()
  5645. ee.EncodeUint(uint64(v2))
  5646. }
  5647. } else {
  5648. for k2, v2 := range v {
  5649. ee.EncodeUint(uint64(k2))
  5650. ee.EncodeUint(uint64(v2))
  5651. }
  5652. }
  5653. }
  5654. ee.WriteMapEnd()
  5655. }
  5656. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  5657. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  5658. }
  5659. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  5660. if v == nil {
  5661. e.e.EncodeNil()
  5662. return
  5663. }
  5664. ee, esep := e.e, e.hh.hasElemSeparators()
  5665. ee.WriteMapStart(len(v))
  5666. if e.h.Canonical {
  5667. v2 := make([]uint64, len(v))
  5668. var i uint
  5669. for k := range v {
  5670. v2[i] = uint64(k)
  5671. i++
  5672. }
  5673. sort.Sort(uintSlice(v2))
  5674. if esep {
  5675. for _, k2 := range v2 {
  5676. ee.WriteMapElemKey()
  5677. ee.EncodeUint(uint64(uint(k2)))
  5678. ee.WriteMapElemValue()
  5679. ee.EncodeUint(uint64(v[uint(k2)]))
  5680. }
  5681. } else {
  5682. for _, k2 := range v2 {
  5683. ee.EncodeUint(uint64(uint(k2)))
  5684. ee.EncodeUint(uint64(v[uint(k2)]))
  5685. }
  5686. }
  5687. } else {
  5688. if esep {
  5689. for k2, v2 := range v {
  5690. ee.WriteMapElemKey()
  5691. ee.EncodeUint(uint64(k2))
  5692. ee.WriteMapElemValue()
  5693. ee.EncodeUint(uint64(v2))
  5694. }
  5695. } else {
  5696. for k2, v2 := range v {
  5697. ee.EncodeUint(uint64(k2))
  5698. ee.EncodeUint(uint64(v2))
  5699. }
  5700. }
  5701. }
  5702. ee.WriteMapEnd()
  5703. }
  5704. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  5705. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  5706. }
  5707. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  5708. if v == nil {
  5709. e.e.EncodeNil()
  5710. return
  5711. }
  5712. ee, esep := e.e, e.hh.hasElemSeparators()
  5713. ee.WriteMapStart(len(v))
  5714. if e.h.Canonical {
  5715. v2 := make([]uint64, len(v))
  5716. var i uint
  5717. for k := range v {
  5718. v2[i] = uint64(k)
  5719. i++
  5720. }
  5721. sort.Sort(uintSlice(v2))
  5722. if esep {
  5723. for _, k2 := range v2 {
  5724. ee.WriteMapElemKey()
  5725. ee.EncodeUint(uint64(uint(k2)))
  5726. ee.WriteMapElemValue()
  5727. ee.EncodeUint(uint64(v[uint(k2)]))
  5728. }
  5729. } else {
  5730. for _, k2 := range v2 {
  5731. ee.EncodeUint(uint64(uint(k2)))
  5732. ee.EncodeUint(uint64(v[uint(k2)]))
  5733. }
  5734. }
  5735. } else {
  5736. if esep {
  5737. for k2, v2 := range v {
  5738. ee.WriteMapElemKey()
  5739. ee.EncodeUint(uint64(k2))
  5740. ee.WriteMapElemValue()
  5741. ee.EncodeUint(uint64(v2))
  5742. }
  5743. } else {
  5744. for k2, v2 := range v {
  5745. ee.EncodeUint(uint64(k2))
  5746. ee.EncodeUint(uint64(v2))
  5747. }
  5748. }
  5749. }
  5750. ee.WriteMapEnd()
  5751. }
  5752. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  5753. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  5754. }
  5755. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  5756. if v == nil {
  5757. e.e.EncodeNil()
  5758. return
  5759. }
  5760. ee, esep := e.e, e.hh.hasElemSeparators()
  5761. ee.WriteMapStart(len(v))
  5762. if e.h.Canonical {
  5763. v2 := make([]uint64, len(v))
  5764. var i uint
  5765. for k := range v {
  5766. v2[i] = uint64(k)
  5767. i++
  5768. }
  5769. sort.Sort(uintSlice(v2))
  5770. if esep {
  5771. for _, k2 := range v2 {
  5772. ee.WriteMapElemKey()
  5773. ee.EncodeUint(uint64(uint(k2)))
  5774. ee.WriteMapElemValue()
  5775. e.encode(v[uint(k2)])
  5776. }
  5777. } else {
  5778. for _, k2 := range v2 {
  5779. ee.EncodeUint(uint64(uint(k2)))
  5780. e.encode(v[uint(k2)])
  5781. }
  5782. }
  5783. } else {
  5784. if esep {
  5785. for k2, v2 := range v {
  5786. ee.WriteMapElemKey()
  5787. ee.EncodeUint(uint64(k2))
  5788. ee.WriteMapElemValue()
  5789. e.encode(v2)
  5790. }
  5791. } else {
  5792. for k2, v2 := range v {
  5793. ee.EncodeUint(uint64(k2))
  5794. e.encode(v2)
  5795. }
  5796. }
  5797. }
  5798. ee.WriteMapEnd()
  5799. }
  5800. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  5801. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  5802. }
  5803. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  5804. if v == nil {
  5805. e.e.EncodeNil()
  5806. return
  5807. }
  5808. ee, esep := e.e, e.hh.hasElemSeparators()
  5809. ee.WriteMapStart(len(v))
  5810. if e.h.Canonical {
  5811. v2 := make([]uint64, len(v))
  5812. var i uint
  5813. for k := range v {
  5814. v2[i] = uint64(k)
  5815. i++
  5816. }
  5817. sort.Sort(uintSlice(v2))
  5818. if esep {
  5819. for _, k2 := range v2 {
  5820. ee.WriteMapElemKey()
  5821. ee.EncodeUint(uint64(uint(k2)))
  5822. ee.WriteMapElemValue()
  5823. ee.EncodeInt(int64(v[uint(k2)]))
  5824. }
  5825. } else {
  5826. for _, k2 := range v2 {
  5827. ee.EncodeUint(uint64(uint(k2)))
  5828. ee.EncodeInt(int64(v[uint(k2)]))
  5829. }
  5830. }
  5831. } else {
  5832. if esep {
  5833. for k2, v2 := range v {
  5834. ee.WriteMapElemKey()
  5835. ee.EncodeUint(uint64(k2))
  5836. ee.WriteMapElemValue()
  5837. ee.EncodeInt(int64(v2))
  5838. }
  5839. } else {
  5840. for k2, v2 := range v {
  5841. ee.EncodeUint(uint64(k2))
  5842. ee.EncodeInt(int64(v2))
  5843. }
  5844. }
  5845. }
  5846. ee.WriteMapEnd()
  5847. }
  5848. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  5849. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  5850. }
  5851. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  5852. if v == nil {
  5853. e.e.EncodeNil()
  5854. return
  5855. }
  5856. ee, esep := e.e, e.hh.hasElemSeparators()
  5857. ee.WriteMapStart(len(v))
  5858. if e.h.Canonical {
  5859. v2 := make([]uint64, len(v))
  5860. var i uint
  5861. for k := range v {
  5862. v2[i] = uint64(k)
  5863. i++
  5864. }
  5865. sort.Sort(uintSlice(v2))
  5866. if esep {
  5867. for _, k2 := range v2 {
  5868. ee.WriteMapElemKey()
  5869. ee.EncodeUint(uint64(uint(k2)))
  5870. ee.WriteMapElemValue()
  5871. ee.EncodeInt(int64(v[uint(k2)]))
  5872. }
  5873. } else {
  5874. for _, k2 := range v2 {
  5875. ee.EncodeUint(uint64(uint(k2)))
  5876. ee.EncodeInt(int64(v[uint(k2)]))
  5877. }
  5878. }
  5879. } else {
  5880. if esep {
  5881. for k2, v2 := range v {
  5882. ee.WriteMapElemKey()
  5883. ee.EncodeUint(uint64(k2))
  5884. ee.WriteMapElemValue()
  5885. ee.EncodeInt(int64(v2))
  5886. }
  5887. } else {
  5888. for k2, v2 := range v {
  5889. ee.EncodeUint(uint64(k2))
  5890. ee.EncodeInt(int64(v2))
  5891. }
  5892. }
  5893. }
  5894. ee.WriteMapEnd()
  5895. }
  5896. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  5897. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  5898. }
  5899. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  5900. if v == nil {
  5901. e.e.EncodeNil()
  5902. return
  5903. }
  5904. ee, esep := e.e, e.hh.hasElemSeparators()
  5905. ee.WriteMapStart(len(v))
  5906. if e.h.Canonical {
  5907. v2 := make([]uint64, len(v))
  5908. var i uint
  5909. for k := range v {
  5910. v2[i] = uint64(k)
  5911. i++
  5912. }
  5913. sort.Sort(uintSlice(v2))
  5914. if esep {
  5915. for _, k2 := range v2 {
  5916. ee.WriteMapElemKey()
  5917. ee.EncodeUint(uint64(uint(k2)))
  5918. ee.WriteMapElemValue()
  5919. ee.EncodeInt(int64(v[uint(k2)]))
  5920. }
  5921. } else {
  5922. for _, k2 := range v2 {
  5923. ee.EncodeUint(uint64(uint(k2)))
  5924. ee.EncodeInt(int64(v[uint(k2)]))
  5925. }
  5926. }
  5927. } else {
  5928. if esep {
  5929. for k2, v2 := range v {
  5930. ee.WriteMapElemKey()
  5931. ee.EncodeUint(uint64(k2))
  5932. ee.WriteMapElemValue()
  5933. ee.EncodeInt(int64(v2))
  5934. }
  5935. } else {
  5936. for k2, v2 := range v {
  5937. ee.EncodeUint(uint64(k2))
  5938. ee.EncodeInt(int64(v2))
  5939. }
  5940. }
  5941. }
  5942. ee.WriteMapEnd()
  5943. }
  5944. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  5945. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  5946. }
  5947. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  5948. if v == nil {
  5949. e.e.EncodeNil()
  5950. return
  5951. }
  5952. ee, esep := e.e, e.hh.hasElemSeparators()
  5953. ee.WriteMapStart(len(v))
  5954. if e.h.Canonical {
  5955. v2 := make([]uint64, len(v))
  5956. var i uint
  5957. for k := range v {
  5958. v2[i] = uint64(k)
  5959. i++
  5960. }
  5961. sort.Sort(uintSlice(v2))
  5962. if esep {
  5963. for _, k2 := range v2 {
  5964. ee.WriteMapElemKey()
  5965. ee.EncodeUint(uint64(uint(k2)))
  5966. ee.WriteMapElemValue()
  5967. ee.EncodeInt(int64(v[uint(k2)]))
  5968. }
  5969. } else {
  5970. for _, k2 := range v2 {
  5971. ee.EncodeUint(uint64(uint(k2)))
  5972. ee.EncodeInt(int64(v[uint(k2)]))
  5973. }
  5974. }
  5975. } else {
  5976. if esep {
  5977. for k2, v2 := range v {
  5978. ee.WriteMapElemKey()
  5979. ee.EncodeUint(uint64(k2))
  5980. ee.WriteMapElemValue()
  5981. ee.EncodeInt(int64(v2))
  5982. }
  5983. } else {
  5984. for k2, v2 := range v {
  5985. ee.EncodeUint(uint64(k2))
  5986. ee.EncodeInt(int64(v2))
  5987. }
  5988. }
  5989. }
  5990. ee.WriteMapEnd()
  5991. }
  5992. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  5993. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  5994. }
  5995. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  5996. if v == nil {
  5997. e.e.EncodeNil()
  5998. return
  5999. }
  6000. ee, esep := e.e, e.hh.hasElemSeparators()
  6001. ee.WriteMapStart(len(v))
  6002. if e.h.Canonical {
  6003. v2 := make([]uint64, len(v))
  6004. var i uint
  6005. for k := range v {
  6006. v2[i] = uint64(k)
  6007. i++
  6008. }
  6009. sort.Sort(uintSlice(v2))
  6010. if esep {
  6011. for _, k2 := range v2 {
  6012. ee.WriteMapElemKey()
  6013. ee.EncodeUint(uint64(uint(k2)))
  6014. ee.WriteMapElemValue()
  6015. ee.EncodeInt(int64(v[uint(k2)]))
  6016. }
  6017. } else {
  6018. for _, k2 := range v2 {
  6019. ee.EncodeUint(uint64(uint(k2)))
  6020. ee.EncodeInt(int64(v[uint(k2)]))
  6021. }
  6022. }
  6023. } else {
  6024. if esep {
  6025. for k2, v2 := range v {
  6026. ee.WriteMapElemKey()
  6027. ee.EncodeUint(uint64(k2))
  6028. ee.WriteMapElemValue()
  6029. ee.EncodeInt(int64(v2))
  6030. }
  6031. } else {
  6032. for k2, v2 := range v {
  6033. ee.EncodeUint(uint64(k2))
  6034. ee.EncodeInt(int64(v2))
  6035. }
  6036. }
  6037. }
  6038. ee.WriteMapEnd()
  6039. }
  6040. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  6041. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  6042. }
  6043. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  6044. if v == nil {
  6045. e.e.EncodeNil()
  6046. return
  6047. }
  6048. ee, esep := e.e, e.hh.hasElemSeparators()
  6049. ee.WriteMapStart(len(v))
  6050. if e.h.Canonical {
  6051. v2 := make([]uint64, len(v))
  6052. var i uint
  6053. for k := range v {
  6054. v2[i] = uint64(k)
  6055. i++
  6056. }
  6057. sort.Sort(uintSlice(v2))
  6058. if esep {
  6059. for _, k2 := range v2 {
  6060. ee.WriteMapElemKey()
  6061. ee.EncodeUint(uint64(uint(k2)))
  6062. ee.WriteMapElemValue()
  6063. ee.EncodeFloat32(v[uint(k2)])
  6064. }
  6065. } else {
  6066. for _, k2 := range v2 {
  6067. ee.EncodeUint(uint64(uint(k2)))
  6068. ee.EncodeFloat32(v[uint(k2)])
  6069. }
  6070. }
  6071. } else {
  6072. if esep {
  6073. for k2, v2 := range v {
  6074. ee.WriteMapElemKey()
  6075. ee.EncodeUint(uint64(k2))
  6076. ee.WriteMapElemValue()
  6077. ee.EncodeFloat32(v2)
  6078. }
  6079. } else {
  6080. for k2, v2 := range v {
  6081. ee.EncodeUint(uint64(k2))
  6082. ee.EncodeFloat32(v2)
  6083. }
  6084. }
  6085. }
  6086. ee.WriteMapEnd()
  6087. }
  6088. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  6089. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  6090. }
  6091. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  6092. if v == nil {
  6093. e.e.EncodeNil()
  6094. return
  6095. }
  6096. ee, esep := e.e, e.hh.hasElemSeparators()
  6097. ee.WriteMapStart(len(v))
  6098. if e.h.Canonical {
  6099. v2 := make([]uint64, len(v))
  6100. var i uint
  6101. for k := range v {
  6102. v2[i] = uint64(k)
  6103. i++
  6104. }
  6105. sort.Sort(uintSlice(v2))
  6106. if esep {
  6107. for _, k2 := range v2 {
  6108. ee.WriteMapElemKey()
  6109. ee.EncodeUint(uint64(uint(k2)))
  6110. ee.WriteMapElemValue()
  6111. ee.EncodeFloat64(v[uint(k2)])
  6112. }
  6113. } else {
  6114. for _, k2 := range v2 {
  6115. ee.EncodeUint(uint64(uint(k2)))
  6116. ee.EncodeFloat64(v[uint(k2)])
  6117. }
  6118. }
  6119. } else {
  6120. if esep {
  6121. for k2, v2 := range v {
  6122. ee.WriteMapElemKey()
  6123. ee.EncodeUint(uint64(k2))
  6124. ee.WriteMapElemValue()
  6125. ee.EncodeFloat64(v2)
  6126. }
  6127. } else {
  6128. for k2, v2 := range v {
  6129. ee.EncodeUint(uint64(k2))
  6130. ee.EncodeFloat64(v2)
  6131. }
  6132. }
  6133. }
  6134. ee.WriteMapEnd()
  6135. }
  6136. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  6137. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  6138. }
  6139. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  6140. if v == nil {
  6141. e.e.EncodeNil()
  6142. return
  6143. }
  6144. ee, esep := e.e, e.hh.hasElemSeparators()
  6145. ee.WriteMapStart(len(v))
  6146. if e.h.Canonical {
  6147. v2 := make([]uint64, len(v))
  6148. var i uint
  6149. for k := range v {
  6150. v2[i] = uint64(k)
  6151. i++
  6152. }
  6153. sort.Sort(uintSlice(v2))
  6154. if esep {
  6155. for _, k2 := range v2 {
  6156. ee.WriteMapElemKey()
  6157. ee.EncodeUint(uint64(uint(k2)))
  6158. ee.WriteMapElemValue()
  6159. ee.EncodeBool(v[uint(k2)])
  6160. }
  6161. } else {
  6162. for _, k2 := range v2 {
  6163. ee.EncodeUint(uint64(uint(k2)))
  6164. ee.EncodeBool(v[uint(k2)])
  6165. }
  6166. }
  6167. } else {
  6168. if esep {
  6169. for k2, v2 := range v {
  6170. ee.WriteMapElemKey()
  6171. ee.EncodeUint(uint64(k2))
  6172. ee.WriteMapElemValue()
  6173. ee.EncodeBool(v2)
  6174. }
  6175. } else {
  6176. for k2, v2 := range v {
  6177. ee.EncodeUint(uint64(k2))
  6178. ee.EncodeBool(v2)
  6179. }
  6180. }
  6181. }
  6182. ee.WriteMapEnd()
  6183. }
  6184. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  6185. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  6186. }
  6187. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  6188. if v == nil {
  6189. e.e.EncodeNil()
  6190. return
  6191. }
  6192. ee, esep := e.e, e.hh.hasElemSeparators()
  6193. ee.WriteMapStart(len(v))
  6194. if e.h.Canonical {
  6195. v2 := make([]uint64, len(v))
  6196. var i uint
  6197. for k := range v {
  6198. v2[i] = uint64(k)
  6199. i++
  6200. }
  6201. sort.Sort(uintSlice(v2))
  6202. if esep {
  6203. for _, k2 := range v2 {
  6204. ee.WriteMapElemKey()
  6205. ee.EncodeUint(uint64(uint8(k2)))
  6206. ee.WriteMapElemValue()
  6207. e.encode(v[uint8(k2)])
  6208. }
  6209. } else {
  6210. for _, k2 := range v2 {
  6211. ee.EncodeUint(uint64(uint8(k2)))
  6212. e.encode(v[uint8(k2)])
  6213. }
  6214. }
  6215. } else {
  6216. if esep {
  6217. for k2, v2 := range v {
  6218. ee.WriteMapElemKey()
  6219. ee.EncodeUint(uint64(k2))
  6220. ee.WriteMapElemValue()
  6221. e.encode(v2)
  6222. }
  6223. } else {
  6224. for k2, v2 := range v {
  6225. ee.EncodeUint(uint64(k2))
  6226. e.encode(v2)
  6227. }
  6228. }
  6229. }
  6230. ee.WriteMapEnd()
  6231. }
  6232. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  6233. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  6234. }
  6235. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  6236. if v == nil {
  6237. e.e.EncodeNil()
  6238. return
  6239. }
  6240. ee, esep := e.e, e.hh.hasElemSeparators()
  6241. ee.WriteMapStart(len(v))
  6242. if e.h.Canonical {
  6243. v2 := make([]uint64, len(v))
  6244. var i uint
  6245. for k := range v {
  6246. v2[i] = uint64(k)
  6247. i++
  6248. }
  6249. sort.Sort(uintSlice(v2))
  6250. if esep {
  6251. for _, k2 := range v2 {
  6252. ee.WriteMapElemKey()
  6253. ee.EncodeUint(uint64(uint8(k2)))
  6254. ee.WriteMapElemValue()
  6255. ee.EncodeStringEnc(cUTF8, v[uint8(k2)])
  6256. }
  6257. } else {
  6258. for _, k2 := range v2 {
  6259. ee.EncodeUint(uint64(uint8(k2)))
  6260. ee.EncodeStringEnc(cUTF8, v[uint8(k2)])
  6261. }
  6262. }
  6263. } else {
  6264. if esep {
  6265. for k2, v2 := range v {
  6266. ee.WriteMapElemKey()
  6267. ee.EncodeUint(uint64(k2))
  6268. ee.WriteMapElemValue()
  6269. ee.EncodeStringEnc(cUTF8, v2)
  6270. }
  6271. } else {
  6272. for k2, v2 := range v {
  6273. ee.EncodeUint(uint64(k2))
  6274. ee.EncodeStringEnc(cUTF8, v2)
  6275. }
  6276. }
  6277. }
  6278. ee.WriteMapEnd()
  6279. }
  6280. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  6281. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  6282. }
  6283. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  6284. if v == nil {
  6285. e.e.EncodeNil()
  6286. return
  6287. }
  6288. ee, esep := e.e, e.hh.hasElemSeparators()
  6289. ee.WriteMapStart(len(v))
  6290. if e.h.Canonical {
  6291. v2 := make([]uint64, len(v))
  6292. var i uint
  6293. for k := range v {
  6294. v2[i] = uint64(k)
  6295. i++
  6296. }
  6297. sort.Sort(uintSlice(v2))
  6298. if esep {
  6299. for _, k2 := range v2 {
  6300. ee.WriteMapElemKey()
  6301. ee.EncodeUint(uint64(uint8(k2)))
  6302. ee.WriteMapElemValue()
  6303. ee.EncodeUint(uint64(v[uint8(k2)]))
  6304. }
  6305. } else {
  6306. for _, k2 := range v2 {
  6307. ee.EncodeUint(uint64(uint8(k2)))
  6308. ee.EncodeUint(uint64(v[uint8(k2)]))
  6309. }
  6310. }
  6311. } else {
  6312. if esep {
  6313. for k2, v2 := range v {
  6314. ee.WriteMapElemKey()
  6315. ee.EncodeUint(uint64(k2))
  6316. ee.WriteMapElemValue()
  6317. ee.EncodeUint(uint64(v2))
  6318. }
  6319. } else {
  6320. for k2, v2 := range v {
  6321. ee.EncodeUint(uint64(k2))
  6322. ee.EncodeUint(uint64(v2))
  6323. }
  6324. }
  6325. }
  6326. ee.WriteMapEnd()
  6327. }
  6328. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  6329. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  6330. }
  6331. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  6332. if v == nil {
  6333. e.e.EncodeNil()
  6334. return
  6335. }
  6336. ee, esep := e.e, e.hh.hasElemSeparators()
  6337. ee.WriteMapStart(len(v))
  6338. if e.h.Canonical {
  6339. v2 := make([]uint64, len(v))
  6340. var i uint
  6341. for k := range v {
  6342. v2[i] = uint64(k)
  6343. i++
  6344. }
  6345. sort.Sort(uintSlice(v2))
  6346. if esep {
  6347. for _, k2 := range v2 {
  6348. ee.WriteMapElemKey()
  6349. ee.EncodeUint(uint64(uint8(k2)))
  6350. ee.WriteMapElemValue()
  6351. ee.EncodeUint(uint64(v[uint8(k2)]))
  6352. }
  6353. } else {
  6354. for _, k2 := range v2 {
  6355. ee.EncodeUint(uint64(uint8(k2)))
  6356. ee.EncodeUint(uint64(v[uint8(k2)]))
  6357. }
  6358. }
  6359. } else {
  6360. if esep {
  6361. for k2, v2 := range v {
  6362. ee.WriteMapElemKey()
  6363. ee.EncodeUint(uint64(k2))
  6364. ee.WriteMapElemValue()
  6365. ee.EncodeUint(uint64(v2))
  6366. }
  6367. } else {
  6368. for k2, v2 := range v {
  6369. ee.EncodeUint(uint64(k2))
  6370. ee.EncodeUint(uint64(v2))
  6371. }
  6372. }
  6373. }
  6374. ee.WriteMapEnd()
  6375. }
  6376. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  6377. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  6378. }
  6379. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  6380. if v == nil {
  6381. e.e.EncodeNil()
  6382. return
  6383. }
  6384. ee, esep := e.e, e.hh.hasElemSeparators()
  6385. ee.WriteMapStart(len(v))
  6386. if e.h.Canonical {
  6387. v2 := make([]uint64, len(v))
  6388. var i uint
  6389. for k := range v {
  6390. v2[i] = uint64(k)
  6391. i++
  6392. }
  6393. sort.Sort(uintSlice(v2))
  6394. if esep {
  6395. for _, k2 := range v2 {
  6396. ee.WriteMapElemKey()
  6397. ee.EncodeUint(uint64(uint8(k2)))
  6398. ee.WriteMapElemValue()
  6399. ee.EncodeUint(uint64(v[uint8(k2)]))
  6400. }
  6401. } else {
  6402. for _, k2 := range v2 {
  6403. ee.EncodeUint(uint64(uint8(k2)))
  6404. ee.EncodeUint(uint64(v[uint8(k2)]))
  6405. }
  6406. }
  6407. } else {
  6408. if esep {
  6409. for k2, v2 := range v {
  6410. ee.WriteMapElemKey()
  6411. ee.EncodeUint(uint64(k2))
  6412. ee.WriteMapElemValue()
  6413. ee.EncodeUint(uint64(v2))
  6414. }
  6415. } else {
  6416. for k2, v2 := range v {
  6417. ee.EncodeUint(uint64(k2))
  6418. ee.EncodeUint(uint64(v2))
  6419. }
  6420. }
  6421. }
  6422. ee.WriteMapEnd()
  6423. }
  6424. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  6425. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  6426. }
  6427. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  6428. if v == nil {
  6429. e.e.EncodeNil()
  6430. return
  6431. }
  6432. ee, esep := e.e, e.hh.hasElemSeparators()
  6433. ee.WriteMapStart(len(v))
  6434. if e.h.Canonical {
  6435. v2 := make([]uint64, len(v))
  6436. var i uint
  6437. for k := range v {
  6438. v2[i] = uint64(k)
  6439. i++
  6440. }
  6441. sort.Sort(uintSlice(v2))
  6442. if esep {
  6443. for _, k2 := range v2 {
  6444. ee.WriteMapElemKey()
  6445. ee.EncodeUint(uint64(uint8(k2)))
  6446. ee.WriteMapElemValue()
  6447. ee.EncodeUint(uint64(v[uint8(k2)]))
  6448. }
  6449. } else {
  6450. for _, k2 := range v2 {
  6451. ee.EncodeUint(uint64(uint8(k2)))
  6452. ee.EncodeUint(uint64(v[uint8(k2)]))
  6453. }
  6454. }
  6455. } else {
  6456. if esep {
  6457. for k2, v2 := range v {
  6458. ee.WriteMapElemKey()
  6459. ee.EncodeUint(uint64(k2))
  6460. ee.WriteMapElemValue()
  6461. ee.EncodeUint(uint64(v2))
  6462. }
  6463. } else {
  6464. for k2, v2 := range v {
  6465. ee.EncodeUint(uint64(k2))
  6466. ee.EncodeUint(uint64(v2))
  6467. }
  6468. }
  6469. }
  6470. ee.WriteMapEnd()
  6471. }
  6472. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  6473. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  6474. }
  6475. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  6476. if v == nil {
  6477. e.e.EncodeNil()
  6478. return
  6479. }
  6480. ee, esep := e.e, e.hh.hasElemSeparators()
  6481. ee.WriteMapStart(len(v))
  6482. if e.h.Canonical {
  6483. v2 := make([]uint64, len(v))
  6484. var i uint
  6485. for k := range v {
  6486. v2[i] = uint64(k)
  6487. i++
  6488. }
  6489. sort.Sort(uintSlice(v2))
  6490. if esep {
  6491. for _, k2 := range v2 {
  6492. ee.WriteMapElemKey()
  6493. ee.EncodeUint(uint64(uint8(k2)))
  6494. ee.WriteMapElemValue()
  6495. ee.EncodeUint(uint64(v[uint8(k2)]))
  6496. }
  6497. } else {
  6498. for _, k2 := range v2 {
  6499. ee.EncodeUint(uint64(uint8(k2)))
  6500. ee.EncodeUint(uint64(v[uint8(k2)]))
  6501. }
  6502. }
  6503. } else {
  6504. if esep {
  6505. for k2, v2 := range v {
  6506. ee.WriteMapElemKey()
  6507. ee.EncodeUint(uint64(k2))
  6508. ee.WriteMapElemValue()
  6509. ee.EncodeUint(uint64(v2))
  6510. }
  6511. } else {
  6512. for k2, v2 := range v {
  6513. ee.EncodeUint(uint64(k2))
  6514. ee.EncodeUint(uint64(v2))
  6515. }
  6516. }
  6517. }
  6518. ee.WriteMapEnd()
  6519. }
  6520. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  6521. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  6522. }
  6523. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  6524. if v == nil {
  6525. e.e.EncodeNil()
  6526. return
  6527. }
  6528. ee, esep := e.e, e.hh.hasElemSeparators()
  6529. ee.WriteMapStart(len(v))
  6530. if e.h.Canonical {
  6531. v2 := make([]uint64, len(v))
  6532. var i uint
  6533. for k := range v {
  6534. v2[i] = uint64(k)
  6535. i++
  6536. }
  6537. sort.Sort(uintSlice(v2))
  6538. if esep {
  6539. for _, k2 := range v2 {
  6540. ee.WriteMapElemKey()
  6541. ee.EncodeUint(uint64(uint8(k2)))
  6542. ee.WriteMapElemValue()
  6543. e.encode(v[uint8(k2)])
  6544. }
  6545. } else {
  6546. for _, k2 := range v2 {
  6547. ee.EncodeUint(uint64(uint8(k2)))
  6548. e.encode(v[uint8(k2)])
  6549. }
  6550. }
  6551. } else {
  6552. if esep {
  6553. for k2, v2 := range v {
  6554. ee.WriteMapElemKey()
  6555. ee.EncodeUint(uint64(k2))
  6556. ee.WriteMapElemValue()
  6557. e.encode(v2)
  6558. }
  6559. } else {
  6560. for k2, v2 := range v {
  6561. ee.EncodeUint(uint64(k2))
  6562. e.encode(v2)
  6563. }
  6564. }
  6565. }
  6566. ee.WriteMapEnd()
  6567. }
  6568. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  6569. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  6570. }
  6571. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  6572. if v == nil {
  6573. e.e.EncodeNil()
  6574. return
  6575. }
  6576. ee, esep := e.e, e.hh.hasElemSeparators()
  6577. ee.WriteMapStart(len(v))
  6578. if e.h.Canonical {
  6579. v2 := make([]uint64, len(v))
  6580. var i uint
  6581. for k := range v {
  6582. v2[i] = uint64(k)
  6583. i++
  6584. }
  6585. sort.Sort(uintSlice(v2))
  6586. if esep {
  6587. for _, k2 := range v2 {
  6588. ee.WriteMapElemKey()
  6589. ee.EncodeUint(uint64(uint8(k2)))
  6590. ee.WriteMapElemValue()
  6591. ee.EncodeInt(int64(v[uint8(k2)]))
  6592. }
  6593. } else {
  6594. for _, k2 := range v2 {
  6595. ee.EncodeUint(uint64(uint8(k2)))
  6596. ee.EncodeInt(int64(v[uint8(k2)]))
  6597. }
  6598. }
  6599. } else {
  6600. if esep {
  6601. for k2, v2 := range v {
  6602. ee.WriteMapElemKey()
  6603. ee.EncodeUint(uint64(k2))
  6604. ee.WriteMapElemValue()
  6605. ee.EncodeInt(int64(v2))
  6606. }
  6607. } else {
  6608. for k2, v2 := range v {
  6609. ee.EncodeUint(uint64(k2))
  6610. ee.EncodeInt(int64(v2))
  6611. }
  6612. }
  6613. }
  6614. ee.WriteMapEnd()
  6615. }
  6616. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  6617. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  6618. }
  6619. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  6620. if v == nil {
  6621. e.e.EncodeNil()
  6622. return
  6623. }
  6624. ee, esep := e.e, e.hh.hasElemSeparators()
  6625. ee.WriteMapStart(len(v))
  6626. if e.h.Canonical {
  6627. v2 := make([]uint64, len(v))
  6628. var i uint
  6629. for k := range v {
  6630. v2[i] = uint64(k)
  6631. i++
  6632. }
  6633. sort.Sort(uintSlice(v2))
  6634. if esep {
  6635. for _, k2 := range v2 {
  6636. ee.WriteMapElemKey()
  6637. ee.EncodeUint(uint64(uint8(k2)))
  6638. ee.WriteMapElemValue()
  6639. ee.EncodeInt(int64(v[uint8(k2)]))
  6640. }
  6641. } else {
  6642. for _, k2 := range v2 {
  6643. ee.EncodeUint(uint64(uint8(k2)))
  6644. ee.EncodeInt(int64(v[uint8(k2)]))
  6645. }
  6646. }
  6647. } else {
  6648. if esep {
  6649. for k2, v2 := range v {
  6650. ee.WriteMapElemKey()
  6651. ee.EncodeUint(uint64(k2))
  6652. ee.WriteMapElemValue()
  6653. ee.EncodeInt(int64(v2))
  6654. }
  6655. } else {
  6656. for k2, v2 := range v {
  6657. ee.EncodeUint(uint64(k2))
  6658. ee.EncodeInt(int64(v2))
  6659. }
  6660. }
  6661. }
  6662. ee.WriteMapEnd()
  6663. }
  6664. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  6665. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  6666. }
  6667. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  6668. if v == nil {
  6669. e.e.EncodeNil()
  6670. return
  6671. }
  6672. ee, esep := e.e, e.hh.hasElemSeparators()
  6673. ee.WriteMapStart(len(v))
  6674. if e.h.Canonical {
  6675. v2 := make([]uint64, len(v))
  6676. var i uint
  6677. for k := range v {
  6678. v2[i] = uint64(k)
  6679. i++
  6680. }
  6681. sort.Sort(uintSlice(v2))
  6682. if esep {
  6683. for _, k2 := range v2 {
  6684. ee.WriteMapElemKey()
  6685. ee.EncodeUint(uint64(uint8(k2)))
  6686. ee.WriteMapElemValue()
  6687. ee.EncodeInt(int64(v[uint8(k2)]))
  6688. }
  6689. } else {
  6690. for _, k2 := range v2 {
  6691. ee.EncodeUint(uint64(uint8(k2)))
  6692. ee.EncodeInt(int64(v[uint8(k2)]))
  6693. }
  6694. }
  6695. } else {
  6696. if esep {
  6697. for k2, v2 := range v {
  6698. ee.WriteMapElemKey()
  6699. ee.EncodeUint(uint64(k2))
  6700. ee.WriteMapElemValue()
  6701. ee.EncodeInt(int64(v2))
  6702. }
  6703. } else {
  6704. for k2, v2 := range v {
  6705. ee.EncodeUint(uint64(k2))
  6706. ee.EncodeInt(int64(v2))
  6707. }
  6708. }
  6709. }
  6710. ee.WriteMapEnd()
  6711. }
  6712. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  6713. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  6714. }
  6715. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  6716. if v == nil {
  6717. e.e.EncodeNil()
  6718. return
  6719. }
  6720. ee, esep := e.e, e.hh.hasElemSeparators()
  6721. ee.WriteMapStart(len(v))
  6722. if e.h.Canonical {
  6723. v2 := make([]uint64, len(v))
  6724. var i uint
  6725. for k := range v {
  6726. v2[i] = uint64(k)
  6727. i++
  6728. }
  6729. sort.Sort(uintSlice(v2))
  6730. if esep {
  6731. for _, k2 := range v2 {
  6732. ee.WriteMapElemKey()
  6733. ee.EncodeUint(uint64(uint8(k2)))
  6734. ee.WriteMapElemValue()
  6735. ee.EncodeInt(int64(v[uint8(k2)]))
  6736. }
  6737. } else {
  6738. for _, k2 := range v2 {
  6739. ee.EncodeUint(uint64(uint8(k2)))
  6740. ee.EncodeInt(int64(v[uint8(k2)]))
  6741. }
  6742. }
  6743. } else {
  6744. if esep {
  6745. for k2, v2 := range v {
  6746. ee.WriteMapElemKey()
  6747. ee.EncodeUint(uint64(k2))
  6748. ee.WriteMapElemValue()
  6749. ee.EncodeInt(int64(v2))
  6750. }
  6751. } else {
  6752. for k2, v2 := range v {
  6753. ee.EncodeUint(uint64(k2))
  6754. ee.EncodeInt(int64(v2))
  6755. }
  6756. }
  6757. }
  6758. ee.WriteMapEnd()
  6759. }
  6760. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  6761. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  6762. }
  6763. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  6764. if v == nil {
  6765. e.e.EncodeNil()
  6766. return
  6767. }
  6768. ee, esep := e.e, e.hh.hasElemSeparators()
  6769. ee.WriteMapStart(len(v))
  6770. if e.h.Canonical {
  6771. v2 := make([]uint64, len(v))
  6772. var i uint
  6773. for k := range v {
  6774. v2[i] = uint64(k)
  6775. i++
  6776. }
  6777. sort.Sort(uintSlice(v2))
  6778. if esep {
  6779. for _, k2 := range v2 {
  6780. ee.WriteMapElemKey()
  6781. ee.EncodeUint(uint64(uint8(k2)))
  6782. ee.WriteMapElemValue()
  6783. ee.EncodeInt(int64(v[uint8(k2)]))
  6784. }
  6785. } else {
  6786. for _, k2 := range v2 {
  6787. ee.EncodeUint(uint64(uint8(k2)))
  6788. ee.EncodeInt(int64(v[uint8(k2)]))
  6789. }
  6790. }
  6791. } else {
  6792. if esep {
  6793. for k2, v2 := range v {
  6794. ee.WriteMapElemKey()
  6795. ee.EncodeUint(uint64(k2))
  6796. ee.WriteMapElemValue()
  6797. ee.EncodeInt(int64(v2))
  6798. }
  6799. } else {
  6800. for k2, v2 := range v {
  6801. ee.EncodeUint(uint64(k2))
  6802. ee.EncodeInt(int64(v2))
  6803. }
  6804. }
  6805. }
  6806. ee.WriteMapEnd()
  6807. }
  6808. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  6809. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  6810. }
  6811. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  6812. if v == nil {
  6813. e.e.EncodeNil()
  6814. return
  6815. }
  6816. ee, esep := e.e, e.hh.hasElemSeparators()
  6817. ee.WriteMapStart(len(v))
  6818. if e.h.Canonical {
  6819. v2 := make([]uint64, len(v))
  6820. var i uint
  6821. for k := range v {
  6822. v2[i] = uint64(k)
  6823. i++
  6824. }
  6825. sort.Sort(uintSlice(v2))
  6826. if esep {
  6827. for _, k2 := range v2 {
  6828. ee.WriteMapElemKey()
  6829. ee.EncodeUint(uint64(uint8(k2)))
  6830. ee.WriteMapElemValue()
  6831. ee.EncodeFloat32(v[uint8(k2)])
  6832. }
  6833. } else {
  6834. for _, k2 := range v2 {
  6835. ee.EncodeUint(uint64(uint8(k2)))
  6836. ee.EncodeFloat32(v[uint8(k2)])
  6837. }
  6838. }
  6839. } else {
  6840. if esep {
  6841. for k2, v2 := range v {
  6842. ee.WriteMapElemKey()
  6843. ee.EncodeUint(uint64(k2))
  6844. ee.WriteMapElemValue()
  6845. ee.EncodeFloat32(v2)
  6846. }
  6847. } else {
  6848. for k2, v2 := range v {
  6849. ee.EncodeUint(uint64(k2))
  6850. ee.EncodeFloat32(v2)
  6851. }
  6852. }
  6853. }
  6854. ee.WriteMapEnd()
  6855. }
  6856. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  6857. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  6858. }
  6859. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  6860. if v == nil {
  6861. e.e.EncodeNil()
  6862. return
  6863. }
  6864. ee, esep := e.e, e.hh.hasElemSeparators()
  6865. ee.WriteMapStart(len(v))
  6866. if e.h.Canonical {
  6867. v2 := make([]uint64, len(v))
  6868. var i uint
  6869. for k := range v {
  6870. v2[i] = uint64(k)
  6871. i++
  6872. }
  6873. sort.Sort(uintSlice(v2))
  6874. if esep {
  6875. for _, k2 := range v2 {
  6876. ee.WriteMapElemKey()
  6877. ee.EncodeUint(uint64(uint8(k2)))
  6878. ee.WriteMapElemValue()
  6879. ee.EncodeFloat64(v[uint8(k2)])
  6880. }
  6881. } else {
  6882. for _, k2 := range v2 {
  6883. ee.EncodeUint(uint64(uint8(k2)))
  6884. ee.EncodeFloat64(v[uint8(k2)])
  6885. }
  6886. }
  6887. } else {
  6888. if esep {
  6889. for k2, v2 := range v {
  6890. ee.WriteMapElemKey()
  6891. ee.EncodeUint(uint64(k2))
  6892. ee.WriteMapElemValue()
  6893. ee.EncodeFloat64(v2)
  6894. }
  6895. } else {
  6896. for k2, v2 := range v {
  6897. ee.EncodeUint(uint64(k2))
  6898. ee.EncodeFloat64(v2)
  6899. }
  6900. }
  6901. }
  6902. ee.WriteMapEnd()
  6903. }
  6904. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  6905. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  6906. }
  6907. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  6908. if v == nil {
  6909. e.e.EncodeNil()
  6910. return
  6911. }
  6912. ee, esep := e.e, e.hh.hasElemSeparators()
  6913. ee.WriteMapStart(len(v))
  6914. if e.h.Canonical {
  6915. v2 := make([]uint64, len(v))
  6916. var i uint
  6917. for k := range v {
  6918. v2[i] = uint64(k)
  6919. i++
  6920. }
  6921. sort.Sort(uintSlice(v2))
  6922. if esep {
  6923. for _, k2 := range v2 {
  6924. ee.WriteMapElemKey()
  6925. ee.EncodeUint(uint64(uint8(k2)))
  6926. ee.WriteMapElemValue()
  6927. ee.EncodeBool(v[uint8(k2)])
  6928. }
  6929. } else {
  6930. for _, k2 := range v2 {
  6931. ee.EncodeUint(uint64(uint8(k2)))
  6932. ee.EncodeBool(v[uint8(k2)])
  6933. }
  6934. }
  6935. } else {
  6936. if esep {
  6937. for k2, v2 := range v {
  6938. ee.WriteMapElemKey()
  6939. ee.EncodeUint(uint64(k2))
  6940. ee.WriteMapElemValue()
  6941. ee.EncodeBool(v2)
  6942. }
  6943. } else {
  6944. for k2, v2 := range v {
  6945. ee.EncodeUint(uint64(k2))
  6946. ee.EncodeBool(v2)
  6947. }
  6948. }
  6949. }
  6950. ee.WriteMapEnd()
  6951. }
  6952. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  6953. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  6954. }
  6955. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  6956. if v == nil {
  6957. e.e.EncodeNil()
  6958. return
  6959. }
  6960. ee, esep := e.e, e.hh.hasElemSeparators()
  6961. ee.WriteMapStart(len(v))
  6962. if e.h.Canonical {
  6963. v2 := make([]uint64, len(v))
  6964. var i uint
  6965. for k := range v {
  6966. v2[i] = uint64(k)
  6967. i++
  6968. }
  6969. sort.Sort(uintSlice(v2))
  6970. if esep {
  6971. for _, k2 := range v2 {
  6972. ee.WriteMapElemKey()
  6973. ee.EncodeUint(uint64(uint16(k2)))
  6974. ee.WriteMapElemValue()
  6975. e.encode(v[uint16(k2)])
  6976. }
  6977. } else {
  6978. for _, k2 := range v2 {
  6979. ee.EncodeUint(uint64(uint16(k2)))
  6980. e.encode(v[uint16(k2)])
  6981. }
  6982. }
  6983. } else {
  6984. if esep {
  6985. for k2, v2 := range v {
  6986. ee.WriteMapElemKey()
  6987. ee.EncodeUint(uint64(k2))
  6988. ee.WriteMapElemValue()
  6989. e.encode(v2)
  6990. }
  6991. } else {
  6992. for k2, v2 := range v {
  6993. ee.EncodeUint(uint64(k2))
  6994. e.encode(v2)
  6995. }
  6996. }
  6997. }
  6998. ee.WriteMapEnd()
  6999. }
  7000. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  7001. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  7002. }
  7003. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  7004. if v == nil {
  7005. e.e.EncodeNil()
  7006. return
  7007. }
  7008. ee, esep := e.e, e.hh.hasElemSeparators()
  7009. ee.WriteMapStart(len(v))
  7010. if e.h.Canonical {
  7011. v2 := make([]uint64, len(v))
  7012. var i uint
  7013. for k := range v {
  7014. v2[i] = uint64(k)
  7015. i++
  7016. }
  7017. sort.Sort(uintSlice(v2))
  7018. if esep {
  7019. for _, k2 := range v2 {
  7020. ee.WriteMapElemKey()
  7021. ee.EncodeUint(uint64(uint16(k2)))
  7022. ee.WriteMapElemValue()
  7023. ee.EncodeStringEnc(cUTF8, v[uint16(k2)])
  7024. }
  7025. } else {
  7026. for _, k2 := range v2 {
  7027. ee.EncodeUint(uint64(uint16(k2)))
  7028. ee.EncodeStringEnc(cUTF8, v[uint16(k2)])
  7029. }
  7030. }
  7031. } else {
  7032. if esep {
  7033. for k2, v2 := range v {
  7034. ee.WriteMapElemKey()
  7035. ee.EncodeUint(uint64(k2))
  7036. ee.WriteMapElemValue()
  7037. ee.EncodeStringEnc(cUTF8, v2)
  7038. }
  7039. } else {
  7040. for k2, v2 := range v {
  7041. ee.EncodeUint(uint64(k2))
  7042. ee.EncodeStringEnc(cUTF8, v2)
  7043. }
  7044. }
  7045. }
  7046. ee.WriteMapEnd()
  7047. }
  7048. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  7049. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  7050. }
  7051. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
  7052. if v == nil {
  7053. e.e.EncodeNil()
  7054. return
  7055. }
  7056. ee, esep := e.e, e.hh.hasElemSeparators()
  7057. ee.WriteMapStart(len(v))
  7058. if e.h.Canonical {
  7059. v2 := make([]uint64, len(v))
  7060. var i uint
  7061. for k := range v {
  7062. v2[i] = uint64(k)
  7063. i++
  7064. }
  7065. sort.Sort(uintSlice(v2))
  7066. if esep {
  7067. for _, k2 := range v2 {
  7068. ee.WriteMapElemKey()
  7069. ee.EncodeUint(uint64(uint16(k2)))
  7070. ee.WriteMapElemValue()
  7071. ee.EncodeUint(uint64(v[uint16(k2)]))
  7072. }
  7073. } else {
  7074. for _, k2 := range v2 {
  7075. ee.EncodeUint(uint64(uint16(k2)))
  7076. ee.EncodeUint(uint64(v[uint16(k2)]))
  7077. }
  7078. }
  7079. } else {
  7080. if esep {
  7081. for k2, v2 := range v {
  7082. ee.WriteMapElemKey()
  7083. ee.EncodeUint(uint64(k2))
  7084. ee.WriteMapElemValue()
  7085. ee.EncodeUint(uint64(v2))
  7086. }
  7087. } else {
  7088. for k2, v2 := range v {
  7089. ee.EncodeUint(uint64(k2))
  7090. ee.EncodeUint(uint64(v2))
  7091. }
  7092. }
  7093. }
  7094. ee.WriteMapEnd()
  7095. }
  7096. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  7097. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  7098. }
  7099. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  7100. if v == nil {
  7101. e.e.EncodeNil()
  7102. return
  7103. }
  7104. ee, esep := e.e, e.hh.hasElemSeparators()
  7105. ee.WriteMapStart(len(v))
  7106. if e.h.Canonical {
  7107. v2 := make([]uint64, len(v))
  7108. var i uint
  7109. for k := range v {
  7110. v2[i] = uint64(k)
  7111. i++
  7112. }
  7113. sort.Sort(uintSlice(v2))
  7114. if esep {
  7115. for _, k2 := range v2 {
  7116. ee.WriteMapElemKey()
  7117. ee.EncodeUint(uint64(uint16(k2)))
  7118. ee.WriteMapElemValue()
  7119. ee.EncodeUint(uint64(v[uint16(k2)]))
  7120. }
  7121. } else {
  7122. for _, k2 := range v2 {
  7123. ee.EncodeUint(uint64(uint16(k2)))
  7124. ee.EncodeUint(uint64(v[uint16(k2)]))
  7125. }
  7126. }
  7127. } else {
  7128. if esep {
  7129. for k2, v2 := range v {
  7130. ee.WriteMapElemKey()
  7131. ee.EncodeUint(uint64(k2))
  7132. ee.WriteMapElemValue()
  7133. ee.EncodeUint(uint64(v2))
  7134. }
  7135. } else {
  7136. for k2, v2 := range v {
  7137. ee.EncodeUint(uint64(k2))
  7138. ee.EncodeUint(uint64(v2))
  7139. }
  7140. }
  7141. }
  7142. ee.WriteMapEnd()
  7143. }
  7144. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  7145. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  7146. }
  7147. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  7148. if v == nil {
  7149. e.e.EncodeNil()
  7150. return
  7151. }
  7152. ee, esep := e.e, e.hh.hasElemSeparators()
  7153. ee.WriteMapStart(len(v))
  7154. if e.h.Canonical {
  7155. v2 := make([]uint64, len(v))
  7156. var i uint
  7157. for k := range v {
  7158. v2[i] = uint64(k)
  7159. i++
  7160. }
  7161. sort.Sort(uintSlice(v2))
  7162. if esep {
  7163. for _, k2 := range v2 {
  7164. ee.WriteMapElemKey()
  7165. ee.EncodeUint(uint64(uint16(k2)))
  7166. ee.WriteMapElemValue()
  7167. ee.EncodeUint(uint64(v[uint16(k2)]))
  7168. }
  7169. } else {
  7170. for _, k2 := range v2 {
  7171. ee.EncodeUint(uint64(uint16(k2)))
  7172. ee.EncodeUint(uint64(v[uint16(k2)]))
  7173. }
  7174. }
  7175. } else {
  7176. if esep {
  7177. for k2, v2 := range v {
  7178. ee.WriteMapElemKey()
  7179. ee.EncodeUint(uint64(k2))
  7180. ee.WriteMapElemValue()
  7181. ee.EncodeUint(uint64(v2))
  7182. }
  7183. } else {
  7184. for k2, v2 := range v {
  7185. ee.EncodeUint(uint64(k2))
  7186. ee.EncodeUint(uint64(v2))
  7187. }
  7188. }
  7189. }
  7190. ee.WriteMapEnd()
  7191. }
  7192. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  7193. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  7194. }
  7195. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  7196. if v == nil {
  7197. e.e.EncodeNil()
  7198. return
  7199. }
  7200. ee, esep := e.e, e.hh.hasElemSeparators()
  7201. ee.WriteMapStart(len(v))
  7202. if e.h.Canonical {
  7203. v2 := make([]uint64, len(v))
  7204. var i uint
  7205. for k := range v {
  7206. v2[i] = uint64(k)
  7207. i++
  7208. }
  7209. sort.Sort(uintSlice(v2))
  7210. if esep {
  7211. for _, k2 := range v2 {
  7212. ee.WriteMapElemKey()
  7213. ee.EncodeUint(uint64(uint16(k2)))
  7214. ee.WriteMapElemValue()
  7215. ee.EncodeUint(uint64(v[uint16(k2)]))
  7216. }
  7217. } else {
  7218. for _, k2 := range v2 {
  7219. ee.EncodeUint(uint64(uint16(k2)))
  7220. ee.EncodeUint(uint64(v[uint16(k2)]))
  7221. }
  7222. }
  7223. } else {
  7224. if esep {
  7225. for k2, v2 := range v {
  7226. ee.WriteMapElemKey()
  7227. ee.EncodeUint(uint64(k2))
  7228. ee.WriteMapElemValue()
  7229. ee.EncodeUint(uint64(v2))
  7230. }
  7231. } else {
  7232. for k2, v2 := range v {
  7233. ee.EncodeUint(uint64(k2))
  7234. ee.EncodeUint(uint64(v2))
  7235. }
  7236. }
  7237. }
  7238. ee.WriteMapEnd()
  7239. }
  7240. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  7241. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  7242. }
  7243. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  7244. if v == nil {
  7245. e.e.EncodeNil()
  7246. return
  7247. }
  7248. ee, esep := e.e, e.hh.hasElemSeparators()
  7249. ee.WriteMapStart(len(v))
  7250. if e.h.Canonical {
  7251. v2 := make([]uint64, len(v))
  7252. var i uint
  7253. for k := range v {
  7254. v2[i] = uint64(k)
  7255. i++
  7256. }
  7257. sort.Sort(uintSlice(v2))
  7258. if esep {
  7259. for _, k2 := range v2 {
  7260. ee.WriteMapElemKey()
  7261. ee.EncodeUint(uint64(uint16(k2)))
  7262. ee.WriteMapElemValue()
  7263. ee.EncodeUint(uint64(v[uint16(k2)]))
  7264. }
  7265. } else {
  7266. for _, k2 := range v2 {
  7267. ee.EncodeUint(uint64(uint16(k2)))
  7268. ee.EncodeUint(uint64(v[uint16(k2)]))
  7269. }
  7270. }
  7271. } else {
  7272. if esep {
  7273. for k2, v2 := range v {
  7274. ee.WriteMapElemKey()
  7275. ee.EncodeUint(uint64(k2))
  7276. ee.WriteMapElemValue()
  7277. ee.EncodeUint(uint64(v2))
  7278. }
  7279. } else {
  7280. for k2, v2 := range v {
  7281. ee.EncodeUint(uint64(k2))
  7282. ee.EncodeUint(uint64(v2))
  7283. }
  7284. }
  7285. }
  7286. ee.WriteMapEnd()
  7287. }
  7288. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  7289. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  7290. }
  7291. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  7292. if v == nil {
  7293. e.e.EncodeNil()
  7294. return
  7295. }
  7296. ee, esep := e.e, e.hh.hasElemSeparators()
  7297. ee.WriteMapStart(len(v))
  7298. if e.h.Canonical {
  7299. v2 := make([]uint64, len(v))
  7300. var i uint
  7301. for k := range v {
  7302. v2[i] = uint64(k)
  7303. i++
  7304. }
  7305. sort.Sort(uintSlice(v2))
  7306. if esep {
  7307. for _, k2 := range v2 {
  7308. ee.WriteMapElemKey()
  7309. ee.EncodeUint(uint64(uint16(k2)))
  7310. ee.WriteMapElemValue()
  7311. e.encode(v[uint16(k2)])
  7312. }
  7313. } else {
  7314. for _, k2 := range v2 {
  7315. ee.EncodeUint(uint64(uint16(k2)))
  7316. e.encode(v[uint16(k2)])
  7317. }
  7318. }
  7319. } else {
  7320. if esep {
  7321. for k2, v2 := range v {
  7322. ee.WriteMapElemKey()
  7323. ee.EncodeUint(uint64(k2))
  7324. ee.WriteMapElemValue()
  7325. e.encode(v2)
  7326. }
  7327. } else {
  7328. for k2, v2 := range v {
  7329. ee.EncodeUint(uint64(k2))
  7330. e.encode(v2)
  7331. }
  7332. }
  7333. }
  7334. ee.WriteMapEnd()
  7335. }
  7336. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  7337. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  7338. }
  7339. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  7340. if v == nil {
  7341. e.e.EncodeNil()
  7342. return
  7343. }
  7344. ee, esep := e.e, e.hh.hasElemSeparators()
  7345. ee.WriteMapStart(len(v))
  7346. if e.h.Canonical {
  7347. v2 := make([]uint64, len(v))
  7348. var i uint
  7349. for k := range v {
  7350. v2[i] = uint64(k)
  7351. i++
  7352. }
  7353. sort.Sort(uintSlice(v2))
  7354. if esep {
  7355. for _, k2 := range v2 {
  7356. ee.WriteMapElemKey()
  7357. ee.EncodeUint(uint64(uint16(k2)))
  7358. ee.WriteMapElemValue()
  7359. ee.EncodeInt(int64(v[uint16(k2)]))
  7360. }
  7361. } else {
  7362. for _, k2 := range v2 {
  7363. ee.EncodeUint(uint64(uint16(k2)))
  7364. ee.EncodeInt(int64(v[uint16(k2)]))
  7365. }
  7366. }
  7367. } else {
  7368. if esep {
  7369. for k2, v2 := range v {
  7370. ee.WriteMapElemKey()
  7371. ee.EncodeUint(uint64(k2))
  7372. ee.WriteMapElemValue()
  7373. ee.EncodeInt(int64(v2))
  7374. }
  7375. } else {
  7376. for k2, v2 := range v {
  7377. ee.EncodeUint(uint64(k2))
  7378. ee.EncodeInt(int64(v2))
  7379. }
  7380. }
  7381. }
  7382. ee.WriteMapEnd()
  7383. }
  7384. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  7385. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  7386. }
  7387. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  7388. if v == nil {
  7389. e.e.EncodeNil()
  7390. return
  7391. }
  7392. ee, esep := e.e, e.hh.hasElemSeparators()
  7393. ee.WriteMapStart(len(v))
  7394. if e.h.Canonical {
  7395. v2 := make([]uint64, len(v))
  7396. var i uint
  7397. for k := range v {
  7398. v2[i] = uint64(k)
  7399. i++
  7400. }
  7401. sort.Sort(uintSlice(v2))
  7402. if esep {
  7403. for _, k2 := range v2 {
  7404. ee.WriteMapElemKey()
  7405. ee.EncodeUint(uint64(uint16(k2)))
  7406. ee.WriteMapElemValue()
  7407. ee.EncodeInt(int64(v[uint16(k2)]))
  7408. }
  7409. } else {
  7410. for _, k2 := range v2 {
  7411. ee.EncodeUint(uint64(uint16(k2)))
  7412. ee.EncodeInt(int64(v[uint16(k2)]))
  7413. }
  7414. }
  7415. } else {
  7416. if esep {
  7417. for k2, v2 := range v {
  7418. ee.WriteMapElemKey()
  7419. ee.EncodeUint(uint64(k2))
  7420. ee.WriteMapElemValue()
  7421. ee.EncodeInt(int64(v2))
  7422. }
  7423. } else {
  7424. for k2, v2 := range v {
  7425. ee.EncodeUint(uint64(k2))
  7426. ee.EncodeInt(int64(v2))
  7427. }
  7428. }
  7429. }
  7430. ee.WriteMapEnd()
  7431. }
  7432. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  7433. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  7434. }
  7435. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
  7436. if v == nil {
  7437. e.e.EncodeNil()
  7438. return
  7439. }
  7440. ee, esep := e.e, e.hh.hasElemSeparators()
  7441. ee.WriteMapStart(len(v))
  7442. if e.h.Canonical {
  7443. v2 := make([]uint64, len(v))
  7444. var i uint
  7445. for k := range v {
  7446. v2[i] = uint64(k)
  7447. i++
  7448. }
  7449. sort.Sort(uintSlice(v2))
  7450. if esep {
  7451. for _, k2 := range v2 {
  7452. ee.WriteMapElemKey()
  7453. ee.EncodeUint(uint64(uint16(k2)))
  7454. ee.WriteMapElemValue()
  7455. ee.EncodeInt(int64(v[uint16(k2)]))
  7456. }
  7457. } else {
  7458. for _, k2 := range v2 {
  7459. ee.EncodeUint(uint64(uint16(k2)))
  7460. ee.EncodeInt(int64(v[uint16(k2)]))
  7461. }
  7462. }
  7463. } else {
  7464. if esep {
  7465. for k2, v2 := range v {
  7466. ee.WriteMapElemKey()
  7467. ee.EncodeUint(uint64(k2))
  7468. ee.WriteMapElemValue()
  7469. ee.EncodeInt(int64(v2))
  7470. }
  7471. } else {
  7472. for k2, v2 := range v {
  7473. ee.EncodeUint(uint64(k2))
  7474. ee.EncodeInt(int64(v2))
  7475. }
  7476. }
  7477. }
  7478. ee.WriteMapEnd()
  7479. }
  7480. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  7481. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  7482. }
  7483. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  7484. if v == nil {
  7485. e.e.EncodeNil()
  7486. return
  7487. }
  7488. ee, esep := e.e, e.hh.hasElemSeparators()
  7489. ee.WriteMapStart(len(v))
  7490. if e.h.Canonical {
  7491. v2 := make([]uint64, len(v))
  7492. var i uint
  7493. for k := range v {
  7494. v2[i] = uint64(k)
  7495. i++
  7496. }
  7497. sort.Sort(uintSlice(v2))
  7498. if esep {
  7499. for _, k2 := range v2 {
  7500. ee.WriteMapElemKey()
  7501. ee.EncodeUint(uint64(uint16(k2)))
  7502. ee.WriteMapElemValue()
  7503. ee.EncodeInt(int64(v[uint16(k2)]))
  7504. }
  7505. } else {
  7506. for _, k2 := range v2 {
  7507. ee.EncodeUint(uint64(uint16(k2)))
  7508. ee.EncodeInt(int64(v[uint16(k2)]))
  7509. }
  7510. }
  7511. } else {
  7512. if esep {
  7513. for k2, v2 := range v {
  7514. ee.WriteMapElemKey()
  7515. ee.EncodeUint(uint64(k2))
  7516. ee.WriteMapElemValue()
  7517. ee.EncodeInt(int64(v2))
  7518. }
  7519. } else {
  7520. for k2, v2 := range v {
  7521. ee.EncodeUint(uint64(k2))
  7522. ee.EncodeInt(int64(v2))
  7523. }
  7524. }
  7525. }
  7526. ee.WriteMapEnd()
  7527. }
  7528. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  7529. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  7530. }
  7531. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  7532. if v == nil {
  7533. e.e.EncodeNil()
  7534. return
  7535. }
  7536. ee, esep := e.e, e.hh.hasElemSeparators()
  7537. ee.WriteMapStart(len(v))
  7538. if e.h.Canonical {
  7539. v2 := make([]uint64, len(v))
  7540. var i uint
  7541. for k := range v {
  7542. v2[i] = uint64(k)
  7543. i++
  7544. }
  7545. sort.Sort(uintSlice(v2))
  7546. if esep {
  7547. for _, k2 := range v2 {
  7548. ee.WriteMapElemKey()
  7549. ee.EncodeUint(uint64(uint16(k2)))
  7550. ee.WriteMapElemValue()
  7551. ee.EncodeInt(int64(v[uint16(k2)]))
  7552. }
  7553. } else {
  7554. for _, k2 := range v2 {
  7555. ee.EncodeUint(uint64(uint16(k2)))
  7556. ee.EncodeInt(int64(v[uint16(k2)]))
  7557. }
  7558. }
  7559. } else {
  7560. if esep {
  7561. for k2, v2 := range v {
  7562. ee.WriteMapElemKey()
  7563. ee.EncodeUint(uint64(k2))
  7564. ee.WriteMapElemValue()
  7565. ee.EncodeInt(int64(v2))
  7566. }
  7567. } else {
  7568. for k2, v2 := range v {
  7569. ee.EncodeUint(uint64(k2))
  7570. ee.EncodeInt(int64(v2))
  7571. }
  7572. }
  7573. }
  7574. ee.WriteMapEnd()
  7575. }
  7576. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  7577. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  7578. }
  7579. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  7580. if v == nil {
  7581. e.e.EncodeNil()
  7582. return
  7583. }
  7584. ee, esep := e.e, e.hh.hasElemSeparators()
  7585. ee.WriteMapStart(len(v))
  7586. if e.h.Canonical {
  7587. v2 := make([]uint64, len(v))
  7588. var i uint
  7589. for k := range v {
  7590. v2[i] = uint64(k)
  7591. i++
  7592. }
  7593. sort.Sort(uintSlice(v2))
  7594. if esep {
  7595. for _, k2 := range v2 {
  7596. ee.WriteMapElemKey()
  7597. ee.EncodeUint(uint64(uint16(k2)))
  7598. ee.WriteMapElemValue()
  7599. ee.EncodeFloat32(v[uint16(k2)])
  7600. }
  7601. } else {
  7602. for _, k2 := range v2 {
  7603. ee.EncodeUint(uint64(uint16(k2)))
  7604. ee.EncodeFloat32(v[uint16(k2)])
  7605. }
  7606. }
  7607. } else {
  7608. if esep {
  7609. for k2, v2 := range v {
  7610. ee.WriteMapElemKey()
  7611. ee.EncodeUint(uint64(k2))
  7612. ee.WriteMapElemValue()
  7613. ee.EncodeFloat32(v2)
  7614. }
  7615. } else {
  7616. for k2, v2 := range v {
  7617. ee.EncodeUint(uint64(k2))
  7618. ee.EncodeFloat32(v2)
  7619. }
  7620. }
  7621. }
  7622. ee.WriteMapEnd()
  7623. }
  7624. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  7625. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  7626. }
  7627. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  7628. if v == nil {
  7629. e.e.EncodeNil()
  7630. return
  7631. }
  7632. ee, esep := e.e, e.hh.hasElemSeparators()
  7633. ee.WriteMapStart(len(v))
  7634. if e.h.Canonical {
  7635. v2 := make([]uint64, len(v))
  7636. var i uint
  7637. for k := range v {
  7638. v2[i] = uint64(k)
  7639. i++
  7640. }
  7641. sort.Sort(uintSlice(v2))
  7642. if esep {
  7643. for _, k2 := range v2 {
  7644. ee.WriteMapElemKey()
  7645. ee.EncodeUint(uint64(uint16(k2)))
  7646. ee.WriteMapElemValue()
  7647. ee.EncodeFloat64(v[uint16(k2)])
  7648. }
  7649. } else {
  7650. for _, k2 := range v2 {
  7651. ee.EncodeUint(uint64(uint16(k2)))
  7652. ee.EncodeFloat64(v[uint16(k2)])
  7653. }
  7654. }
  7655. } else {
  7656. if esep {
  7657. for k2, v2 := range v {
  7658. ee.WriteMapElemKey()
  7659. ee.EncodeUint(uint64(k2))
  7660. ee.WriteMapElemValue()
  7661. ee.EncodeFloat64(v2)
  7662. }
  7663. } else {
  7664. for k2, v2 := range v {
  7665. ee.EncodeUint(uint64(k2))
  7666. ee.EncodeFloat64(v2)
  7667. }
  7668. }
  7669. }
  7670. ee.WriteMapEnd()
  7671. }
  7672. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  7673. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  7674. }
  7675. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  7676. if v == nil {
  7677. e.e.EncodeNil()
  7678. return
  7679. }
  7680. ee, esep := e.e, e.hh.hasElemSeparators()
  7681. ee.WriteMapStart(len(v))
  7682. if e.h.Canonical {
  7683. v2 := make([]uint64, len(v))
  7684. var i uint
  7685. for k := range v {
  7686. v2[i] = uint64(k)
  7687. i++
  7688. }
  7689. sort.Sort(uintSlice(v2))
  7690. if esep {
  7691. for _, k2 := range v2 {
  7692. ee.WriteMapElemKey()
  7693. ee.EncodeUint(uint64(uint16(k2)))
  7694. ee.WriteMapElemValue()
  7695. ee.EncodeBool(v[uint16(k2)])
  7696. }
  7697. } else {
  7698. for _, k2 := range v2 {
  7699. ee.EncodeUint(uint64(uint16(k2)))
  7700. ee.EncodeBool(v[uint16(k2)])
  7701. }
  7702. }
  7703. } else {
  7704. if esep {
  7705. for k2, v2 := range v {
  7706. ee.WriteMapElemKey()
  7707. ee.EncodeUint(uint64(k2))
  7708. ee.WriteMapElemValue()
  7709. ee.EncodeBool(v2)
  7710. }
  7711. } else {
  7712. for k2, v2 := range v {
  7713. ee.EncodeUint(uint64(k2))
  7714. ee.EncodeBool(v2)
  7715. }
  7716. }
  7717. }
  7718. ee.WriteMapEnd()
  7719. }
  7720. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  7721. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  7722. }
  7723. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  7724. if v == nil {
  7725. e.e.EncodeNil()
  7726. return
  7727. }
  7728. ee, esep := e.e, e.hh.hasElemSeparators()
  7729. ee.WriteMapStart(len(v))
  7730. if e.h.Canonical {
  7731. v2 := make([]uint64, len(v))
  7732. var i uint
  7733. for k := range v {
  7734. v2[i] = uint64(k)
  7735. i++
  7736. }
  7737. sort.Sort(uintSlice(v2))
  7738. if esep {
  7739. for _, k2 := range v2 {
  7740. ee.WriteMapElemKey()
  7741. ee.EncodeUint(uint64(uint32(k2)))
  7742. ee.WriteMapElemValue()
  7743. e.encode(v[uint32(k2)])
  7744. }
  7745. } else {
  7746. for _, k2 := range v2 {
  7747. ee.EncodeUint(uint64(uint32(k2)))
  7748. e.encode(v[uint32(k2)])
  7749. }
  7750. }
  7751. } else {
  7752. if esep {
  7753. for k2, v2 := range v {
  7754. ee.WriteMapElemKey()
  7755. ee.EncodeUint(uint64(k2))
  7756. ee.WriteMapElemValue()
  7757. e.encode(v2)
  7758. }
  7759. } else {
  7760. for k2, v2 := range v {
  7761. ee.EncodeUint(uint64(k2))
  7762. e.encode(v2)
  7763. }
  7764. }
  7765. }
  7766. ee.WriteMapEnd()
  7767. }
  7768. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  7769. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  7770. }
  7771. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  7772. if v == nil {
  7773. e.e.EncodeNil()
  7774. return
  7775. }
  7776. ee, esep := e.e, e.hh.hasElemSeparators()
  7777. ee.WriteMapStart(len(v))
  7778. if e.h.Canonical {
  7779. v2 := make([]uint64, len(v))
  7780. var i uint
  7781. for k := range v {
  7782. v2[i] = uint64(k)
  7783. i++
  7784. }
  7785. sort.Sort(uintSlice(v2))
  7786. if esep {
  7787. for _, k2 := range v2 {
  7788. ee.WriteMapElemKey()
  7789. ee.EncodeUint(uint64(uint32(k2)))
  7790. ee.WriteMapElemValue()
  7791. ee.EncodeStringEnc(cUTF8, v[uint32(k2)])
  7792. }
  7793. } else {
  7794. for _, k2 := range v2 {
  7795. ee.EncodeUint(uint64(uint32(k2)))
  7796. ee.EncodeStringEnc(cUTF8, v[uint32(k2)])
  7797. }
  7798. }
  7799. } else {
  7800. if esep {
  7801. for k2, v2 := range v {
  7802. ee.WriteMapElemKey()
  7803. ee.EncodeUint(uint64(k2))
  7804. ee.WriteMapElemValue()
  7805. ee.EncodeStringEnc(cUTF8, v2)
  7806. }
  7807. } else {
  7808. for k2, v2 := range v {
  7809. ee.EncodeUint(uint64(k2))
  7810. ee.EncodeStringEnc(cUTF8, v2)
  7811. }
  7812. }
  7813. }
  7814. ee.WriteMapEnd()
  7815. }
  7816. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  7817. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  7818. }
  7819. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  7820. if v == nil {
  7821. e.e.EncodeNil()
  7822. return
  7823. }
  7824. ee, esep := e.e, e.hh.hasElemSeparators()
  7825. ee.WriteMapStart(len(v))
  7826. if e.h.Canonical {
  7827. v2 := make([]uint64, len(v))
  7828. var i uint
  7829. for k := range v {
  7830. v2[i] = uint64(k)
  7831. i++
  7832. }
  7833. sort.Sort(uintSlice(v2))
  7834. if esep {
  7835. for _, k2 := range v2 {
  7836. ee.WriteMapElemKey()
  7837. ee.EncodeUint(uint64(uint32(k2)))
  7838. ee.WriteMapElemValue()
  7839. ee.EncodeUint(uint64(v[uint32(k2)]))
  7840. }
  7841. } else {
  7842. for _, k2 := range v2 {
  7843. ee.EncodeUint(uint64(uint32(k2)))
  7844. ee.EncodeUint(uint64(v[uint32(k2)]))
  7845. }
  7846. }
  7847. } else {
  7848. if esep {
  7849. for k2, v2 := range v {
  7850. ee.WriteMapElemKey()
  7851. ee.EncodeUint(uint64(k2))
  7852. ee.WriteMapElemValue()
  7853. ee.EncodeUint(uint64(v2))
  7854. }
  7855. } else {
  7856. for k2, v2 := range v {
  7857. ee.EncodeUint(uint64(k2))
  7858. ee.EncodeUint(uint64(v2))
  7859. }
  7860. }
  7861. }
  7862. ee.WriteMapEnd()
  7863. }
  7864. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  7865. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  7866. }
  7867. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  7868. if v == nil {
  7869. e.e.EncodeNil()
  7870. return
  7871. }
  7872. ee, esep := e.e, e.hh.hasElemSeparators()
  7873. ee.WriteMapStart(len(v))
  7874. if e.h.Canonical {
  7875. v2 := make([]uint64, len(v))
  7876. var i uint
  7877. for k := range v {
  7878. v2[i] = uint64(k)
  7879. i++
  7880. }
  7881. sort.Sort(uintSlice(v2))
  7882. if esep {
  7883. for _, k2 := range v2 {
  7884. ee.WriteMapElemKey()
  7885. ee.EncodeUint(uint64(uint32(k2)))
  7886. ee.WriteMapElemValue()
  7887. ee.EncodeUint(uint64(v[uint32(k2)]))
  7888. }
  7889. } else {
  7890. for _, k2 := range v2 {
  7891. ee.EncodeUint(uint64(uint32(k2)))
  7892. ee.EncodeUint(uint64(v[uint32(k2)]))
  7893. }
  7894. }
  7895. } else {
  7896. if esep {
  7897. for k2, v2 := range v {
  7898. ee.WriteMapElemKey()
  7899. ee.EncodeUint(uint64(k2))
  7900. ee.WriteMapElemValue()
  7901. ee.EncodeUint(uint64(v2))
  7902. }
  7903. } else {
  7904. for k2, v2 := range v {
  7905. ee.EncodeUint(uint64(k2))
  7906. ee.EncodeUint(uint64(v2))
  7907. }
  7908. }
  7909. }
  7910. ee.WriteMapEnd()
  7911. }
  7912. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  7913. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  7914. }
  7915. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  7916. if v == nil {
  7917. e.e.EncodeNil()
  7918. return
  7919. }
  7920. ee, esep := e.e, e.hh.hasElemSeparators()
  7921. ee.WriteMapStart(len(v))
  7922. if e.h.Canonical {
  7923. v2 := make([]uint64, len(v))
  7924. var i uint
  7925. for k := range v {
  7926. v2[i] = uint64(k)
  7927. i++
  7928. }
  7929. sort.Sort(uintSlice(v2))
  7930. if esep {
  7931. for _, k2 := range v2 {
  7932. ee.WriteMapElemKey()
  7933. ee.EncodeUint(uint64(uint32(k2)))
  7934. ee.WriteMapElemValue()
  7935. ee.EncodeUint(uint64(v[uint32(k2)]))
  7936. }
  7937. } else {
  7938. for _, k2 := range v2 {
  7939. ee.EncodeUint(uint64(uint32(k2)))
  7940. ee.EncodeUint(uint64(v[uint32(k2)]))
  7941. }
  7942. }
  7943. } else {
  7944. if esep {
  7945. for k2, v2 := range v {
  7946. ee.WriteMapElemKey()
  7947. ee.EncodeUint(uint64(k2))
  7948. ee.WriteMapElemValue()
  7949. ee.EncodeUint(uint64(v2))
  7950. }
  7951. } else {
  7952. for k2, v2 := range v {
  7953. ee.EncodeUint(uint64(k2))
  7954. ee.EncodeUint(uint64(v2))
  7955. }
  7956. }
  7957. }
  7958. ee.WriteMapEnd()
  7959. }
  7960. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  7961. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  7962. }
  7963. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  7964. if v == nil {
  7965. e.e.EncodeNil()
  7966. return
  7967. }
  7968. ee, esep := e.e, e.hh.hasElemSeparators()
  7969. ee.WriteMapStart(len(v))
  7970. if e.h.Canonical {
  7971. v2 := make([]uint64, len(v))
  7972. var i uint
  7973. for k := range v {
  7974. v2[i] = uint64(k)
  7975. i++
  7976. }
  7977. sort.Sort(uintSlice(v2))
  7978. if esep {
  7979. for _, k2 := range v2 {
  7980. ee.WriteMapElemKey()
  7981. ee.EncodeUint(uint64(uint32(k2)))
  7982. ee.WriteMapElemValue()
  7983. ee.EncodeUint(uint64(v[uint32(k2)]))
  7984. }
  7985. } else {
  7986. for _, k2 := range v2 {
  7987. ee.EncodeUint(uint64(uint32(k2)))
  7988. ee.EncodeUint(uint64(v[uint32(k2)]))
  7989. }
  7990. }
  7991. } else {
  7992. if esep {
  7993. for k2, v2 := range v {
  7994. ee.WriteMapElemKey()
  7995. ee.EncodeUint(uint64(k2))
  7996. ee.WriteMapElemValue()
  7997. ee.EncodeUint(uint64(v2))
  7998. }
  7999. } else {
  8000. for k2, v2 := range v {
  8001. ee.EncodeUint(uint64(k2))
  8002. ee.EncodeUint(uint64(v2))
  8003. }
  8004. }
  8005. }
  8006. ee.WriteMapEnd()
  8007. }
  8008. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  8009. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  8010. }
  8011. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  8012. if v == nil {
  8013. e.e.EncodeNil()
  8014. return
  8015. }
  8016. ee, esep := e.e, e.hh.hasElemSeparators()
  8017. ee.WriteMapStart(len(v))
  8018. if e.h.Canonical {
  8019. v2 := make([]uint64, len(v))
  8020. var i uint
  8021. for k := range v {
  8022. v2[i] = uint64(k)
  8023. i++
  8024. }
  8025. sort.Sort(uintSlice(v2))
  8026. if esep {
  8027. for _, k2 := range v2 {
  8028. ee.WriteMapElemKey()
  8029. ee.EncodeUint(uint64(uint32(k2)))
  8030. ee.WriteMapElemValue()
  8031. ee.EncodeUint(uint64(v[uint32(k2)]))
  8032. }
  8033. } else {
  8034. for _, k2 := range v2 {
  8035. ee.EncodeUint(uint64(uint32(k2)))
  8036. ee.EncodeUint(uint64(v[uint32(k2)]))
  8037. }
  8038. }
  8039. } else {
  8040. if esep {
  8041. for k2, v2 := range v {
  8042. ee.WriteMapElemKey()
  8043. ee.EncodeUint(uint64(k2))
  8044. ee.WriteMapElemValue()
  8045. ee.EncodeUint(uint64(v2))
  8046. }
  8047. } else {
  8048. for k2, v2 := range v {
  8049. ee.EncodeUint(uint64(k2))
  8050. ee.EncodeUint(uint64(v2))
  8051. }
  8052. }
  8053. }
  8054. ee.WriteMapEnd()
  8055. }
  8056. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  8057. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  8058. }
  8059. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  8060. if v == nil {
  8061. e.e.EncodeNil()
  8062. return
  8063. }
  8064. ee, esep := e.e, e.hh.hasElemSeparators()
  8065. ee.WriteMapStart(len(v))
  8066. if e.h.Canonical {
  8067. v2 := make([]uint64, len(v))
  8068. var i uint
  8069. for k := range v {
  8070. v2[i] = uint64(k)
  8071. i++
  8072. }
  8073. sort.Sort(uintSlice(v2))
  8074. if esep {
  8075. for _, k2 := range v2 {
  8076. ee.WriteMapElemKey()
  8077. ee.EncodeUint(uint64(uint32(k2)))
  8078. ee.WriteMapElemValue()
  8079. e.encode(v[uint32(k2)])
  8080. }
  8081. } else {
  8082. for _, k2 := range v2 {
  8083. ee.EncodeUint(uint64(uint32(k2)))
  8084. e.encode(v[uint32(k2)])
  8085. }
  8086. }
  8087. } else {
  8088. if esep {
  8089. for k2, v2 := range v {
  8090. ee.WriteMapElemKey()
  8091. ee.EncodeUint(uint64(k2))
  8092. ee.WriteMapElemValue()
  8093. e.encode(v2)
  8094. }
  8095. } else {
  8096. for k2, v2 := range v {
  8097. ee.EncodeUint(uint64(k2))
  8098. e.encode(v2)
  8099. }
  8100. }
  8101. }
  8102. ee.WriteMapEnd()
  8103. }
  8104. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  8105. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  8106. }
  8107. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  8108. if v == nil {
  8109. e.e.EncodeNil()
  8110. return
  8111. }
  8112. ee, esep := e.e, e.hh.hasElemSeparators()
  8113. ee.WriteMapStart(len(v))
  8114. if e.h.Canonical {
  8115. v2 := make([]uint64, len(v))
  8116. var i uint
  8117. for k := range v {
  8118. v2[i] = uint64(k)
  8119. i++
  8120. }
  8121. sort.Sort(uintSlice(v2))
  8122. if esep {
  8123. for _, k2 := range v2 {
  8124. ee.WriteMapElemKey()
  8125. ee.EncodeUint(uint64(uint32(k2)))
  8126. ee.WriteMapElemValue()
  8127. ee.EncodeInt(int64(v[uint32(k2)]))
  8128. }
  8129. } else {
  8130. for _, k2 := range v2 {
  8131. ee.EncodeUint(uint64(uint32(k2)))
  8132. ee.EncodeInt(int64(v[uint32(k2)]))
  8133. }
  8134. }
  8135. } else {
  8136. if esep {
  8137. for k2, v2 := range v {
  8138. ee.WriteMapElemKey()
  8139. ee.EncodeUint(uint64(k2))
  8140. ee.WriteMapElemValue()
  8141. ee.EncodeInt(int64(v2))
  8142. }
  8143. } else {
  8144. for k2, v2 := range v {
  8145. ee.EncodeUint(uint64(k2))
  8146. ee.EncodeInt(int64(v2))
  8147. }
  8148. }
  8149. }
  8150. ee.WriteMapEnd()
  8151. }
  8152. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  8153. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  8154. }
  8155. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  8156. if v == nil {
  8157. e.e.EncodeNil()
  8158. return
  8159. }
  8160. ee, esep := e.e, e.hh.hasElemSeparators()
  8161. ee.WriteMapStart(len(v))
  8162. if e.h.Canonical {
  8163. v2 := make([]uint64, len(v))
  8164. var i uint
  8165. for k := range v {
  8166. v2[i] = uint64(k)
  8167. i++
  8168. }
  8169. sort.Sort(uintSlice(v2))
  8170. if esep {
  8171. for _, k2 := range v2 {
  8172. ee.WriteMapElemKey()
  8173. ee.EncodeUint(uint64(uint32(k2)))
  8174. ee.WriteMapElemValue()
  8175. ee.EncodeInt(int64(v[uint32(k2)]))
  8176. }
  8177. } else {
  8178. for _, k2 := range v2 {
  8179. ee.EncodeUint(uint64(uint32(k2)))
  8180. ee.EncodeInt(int64(v[uint32(k2)]))
  8181. }
  8182. }
  8183. } else {
  8184. if esep {
  8185. for k2, v2 := range v {
  8186. ee.WriteMapElemKey()
  8187. ee.EncodeUint(uint64(k2))
  8188. ee.WriteMapElemValue()
  8189. ee.EncodeInt(int64(v2))
  8190. }
  8191. } else {
  8192. for k2, v2 := range v {
  8193. ee.EncodeUint(uint64(k2))
  8194. ee.EncodeInt(int64(v2))
  8195. }
  8196. }
  8197. }
  8198. ee.WriteMapEnd()
  8199. }
  8200. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  8201. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  8202. }
  8203. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  8204. if v == nil {
  8205. e.e.EncodeNil()
  8206. return
  8207. }
  8208. ee, esep := e.e, e.hh.hasElemSeparators()
  8209. ee.WriteMapStart(len(v))
  8210. if e.h.Canonical {
  8211. v2 := make([]uint64, len(v))
  8212. var i uint
  8213. for k := range v {
  8214. v2[i] = uint64(k)
  8215. i++
  8216. }
  8217. sort.Sort(uintSlice(v2))
  8218. if esep {
  8219. for _, k2 := range v2 {
  8220. ee.WriteMapElemKey()
  8221. ee.EncodeUint(uint64(uint32(k2)))
  8222. ee.WriteMapElemValue()
  8223. ee.EncodeInt(int64(v[uint32(k2)]))
  8224. }
  8225. } else {
  8226. for _, k2 := range v2 {
  8227. ee.EncodeUint(uint64(uint32(k2)))
  8228. ee.EncodeInt(int64(v[uint32(k2)]))
  8229. }
  8230. }
  8231. } else {
  8232. if esep {
  8233. for k2, v2 := range v {
  8234. ee.WriteMapElemKey()
  8235. ee.EncodeUint(uint64(k2))
  8236. ee.WriteMapElemValue()
  8237. ee.EncodeInt(int64(v2))
  8238. }
  8239. } else {
  8240. for k2, v2 := range v {
  8241. ee.EncodeUint(uint64(k2))
  8242. ee.EncodeInt(int64(v2))
  8243. }
  8244. }
  8245. }
  8246. ee.WriteMapEnd()
  8247. }
  8248. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  8249. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  8250. }
  8251. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  8252. if v == nil {
  8253. e.e.EncodeNil()
  8254. return
  8255. }
  8256. ee, esep := e.e, e.hh.hasElemSeparators()
  8257. ee.WriteMapStart(len(v))
  8258. if e.h.Canonical {
  8259. v2 := make([]uint64, len(v))
  8260. var i uint
  8261. for k := range v {
  8262. v2[i] = uint64(k)
  8263. i++
  8264. }
  8265. sort.Sort(uintSlice(v2))
  8266. if esep {
  8267. for _, k2 := range v2 {
  8268. ee.WriteMapElemKey()
  8269. ee.EncodeUint(uint64(uint32(k2)))
  8270. ee.WriteMapElemValue()
  8271. ee.EncodeInt(int64(v[uint32(k2)]))
  8272. }
  8273. } else {
  8274. for _, k2 := range v2 {
  8275. ee.EncodeUint(uint64(uint32(k2)))
  8276. ee.EncodeInt(int64(v[uint32(k2)]))
  8277. }
  8278. }
  8279. } else {
  8280. if esep {
  8281. for k2, v2 := range v {
  8282. ee.WriteMapElemKey()
  8283. ee.EncodeUint(uint64(k2))
  8284. ee.WriteMapElemValue()
  8285. ee.EncodeInt(int64(v2))
  8286. }
  8287. } else {
  8288. for k2, v2 := range v {
  8289. ee.EncodeUint(uint64(k2))
  8290. ee.EncodeInt(int64(v2))
  8291. }
  8292. }
  8293. }
  8294. ee.WriteMapEnd()
  8295. }
  8296. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  8297. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  8298. }
  8299. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  8300. if v == nil {
  8301. e.e.EncodeNil()
  8302. return
  8303. }
  8304. ee, esep := e.e, e.hh.hasElemSeparators()
  8305. ee.WriteMapStart(len(v))
  8306. if e.h.Canonical {
  8307. v2 := make([]uint64, len(v))
  8308. var i uint
  8309. for k := range v {
  8310. v2[i] = uint64(k)
  8311. i++
  8312. }
  8313. sort.Sort(uintSlice(v2))
  8314. if esep {
  8315. for _, k2 := range v2 {
  8316. ee.WriteMapElemKey()
  8317. ee.EncodeUint(uint64(uint32(k2)))
  8318. ee.WriteMapElemValue()
  8319. ee.EncodeInt(int64(v[uint32(k2)]))
  8320. }
  8321. } else {
  8322. for _, k2 := range v2 {
  8323. ee.EncodeUint(uint64(uint32(k2)))
  8324. ee.EncodeInt(int64(v[uint32(k2)]))
  8325. }
  8326. }
  8327. } else {
  8328. if esep {
  8329. for k2, v2 := range v {
  8330. ee.WriteMapElemKey()
  8331. ee.EncodeUint(uint64(k2))
  8332. ee.WriteMapElemValue()
  8333. ee.EncodeInt(int64(v2))
  8334. }
  8335. } else {
  8336. for k2, v2 := range v {
  8337. ee.EncodeUint(uint64(k2))
  8338. ee.EncodeInt(int64(v2))
  8339. }
  8340. }
  8341. }
  8342. ee.WriteMapEnd()
  8343. }
  8344. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  8345. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  8346. }
  8347. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  8348. if v == nil {
  8349. e.e.EncodeNil()
  8350. return
  8351. }
  8352. ee, esep := e.e, e.hh.hasElemSeparators()
  8353. ee.WriteMapStart(len(v))
  8354. if e.h.Canonical {
  8355. v2 := make([]uint64, len(v))
  8356. var i uint
  8357. for k := range v {
  8358. v2[i] = uint64(k)
  8359. i++
  8360. }
  8361. sort.Sort(uintSlice(v2))
  8362. if esep {
  8363. for _, k2 := range v2 {
  8364. ee.WriteMapElemKey()
  8365. ee.EncodeUint(uint64(uint32(k2)))
  8366. ee.WriteMapElemValue()
  8367. ee.EncodeFloat32(v[uint32(k2)])
  8368. }
  8369. } else {
  8370. for _, k2 := range v2 {
  8371. ee.EncodeUint(uint64(uint32(k2)))
  8372. ee.EncodeFloat32(v[uint32(k2)])
  8373. }
  8374. }
  8375. } else {
  8376. if esep {
  8377. for k2, v2 := range v {
  8378. ee.WriteMapElemKey()
  8379. ee.EncodeUint(uint64(k2))
  8380. ee.WriteMapElemValue()
  8381. ee.EncodeFloat32(v2)
  8382. }
  8383. } else {
  8384. for k2, v2 := range v {
  8385. ee.EncodeUint(uint64(k2))
  8386. ee.EncodeFloat32(v2)
  8387. }
  8388. }
  8389. }
  8390. ee.WriteMapEnd()
  8391. }
  8392. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  8393. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  8394. }
  8395. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  8396. if v == nil {
  8397. e.e.EncodeNil()
  8398. return
  8399. }
  8400. ee, esep := e.e, e.hh.hasElemSeparators()
  8401. ee.WriteMapStart(len(v))
  8402. if e.h.Canonical {
  8403. v2 := make([]uint64, len(v))
  8404. var i uint
  8405. for k := range v {
  8406. v2[i] = uint64(k)
  8407. i++
  8408. }
  8409. sort.Sort(uintSlice(v2))
  8410. if esep {
  8411. for _, k2 := range v2 {
  8412. ee.WriteMapElemKey()
  8413. ee.EncodeUint(uint64(uint32(k2)))
  8414. ee.WriteMapElemValue()
  8415. ee.EncodeFloat64(v[uint32(k2)])
  8416. }
  8417. } else {
  8418. for _, k2 := range v2 {
  8419. ee.EncodeUint(uint64(uint32(k2)))
  8420. ee.EncodeFloat64(v[uint32(k2)])
  8421. }
  8422. }
  8423. } else {
  8424. if esep {
  8425. for k2, v2 := range v {
  8426. ee.WriteMapElemKey()
  8427. ee.EncodeUint(uint64(k2))
  8428. ee.WriteMapElemValue()
  8429. ee.EncodeFloat64(v2)
  8430. }
  8431. } else {
  8432. for k2, v2 := range v {
  8433. ee.EncodeUint(uint64(k2))
  8434. ee.EncodeFloat64(v2)
  8435. }
  8436. }
  8437. }
  8438. ee.WriteMapEnd()
  8439. }
  8440. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  8441. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  8442. }
  8443. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  8444. if v == nil {
  8445. e.e.EncodeNil()
  8446. return
  8447. }
  8448. ee, esep := e.e, e.hh.hasElemSeparators()
  8449. ee.WriteMapStart(len(v))
  8450. if e.h.Canonical {
  8451. v2 := make([]uint64, len(v))
  8452. var i uint
  8453. for k := range v {
  8454. v2[i] = uint64(k)
  8455. i++
  8456. }
  8457. sort.Sort(uintSlice(v2))
  8458. if esep {
  8459. for _, k2 := range v2 {
  8460. ee.WriteMapElemKey()
  8461. ee.EncodeUint(uint64(uint32(k2)))
  8462. ee.WriteMapElemValue()
  8463. ee.EncodeBool(v[uint32(k2)])
  8464. }
  8465. } else {
  8466. for _, k2 := range v2 {
  8467. ee.EncodeUint(uint64(uint32(k2)))
  8468. ee.EncodeBool(v[uint32(k2)])
  8469. }
  8470. }
  8471. } else {
  8472. if esep {
  8473. for k2, v2 := range v {
  8474. ee.WriteMapElemKey()
  8475. ee.EncodeUint(uint64(k2))
  8476. ee.WriteMapElemValue()
  8477. ee.EncodeBool(v2)
  8478. }
  8479. } else {
  8480. for k2, v2 := range v {
  8481. ee.EncodeUint(uint64(k2))
  8482. ee.EncodeBool(v2)
  8483. }
  8484. }
  8485. }
  8486. ee.WriteMapEnd()
  8487. }
  8488. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  8489. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  8490. }
  8491. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  8492. if v == nil {
  8493. e.e.EncodeNil()
  8494. return
  8495. }
  8496. ee, esep := e.e, e.hh.hasElemSeparators()
  8497. ee.WriteMapStart(len(v))
  8498. if e.h.Canonical {
  8499. v2 := make([]uint64, len(v))
  8500. var i uint
  8501. for k := range v {
  8502. v2[i] = uint64(k)
  8503. i++
  8504. }
  8505. sort.Sort(uintSlice(v2))
  8506. if esep {
  8507. for _, k2 := range v2 {
  8508. ee.WriteMapElemKey()
  8509. ee.EncodeUint(uint64(uint64(k2)))
  8510. ee.WriteMapElemValue()
  8511. e.encode(v[uint64(k2)])
  8512. }
  8513. } else {
  8514. for _, k2 := range v2 {
  8515. ee.EncodeUint(uint64(uint64(k2)))
  8516. e.encode(v[uint64(k2)])
  8517. }
  8518. }
  8519. } else {
  8520. if esep {
  8521. for k2, v2 := range v {
  8522. ee.WriteMapElemKey()
  8523. ee.EncodeUint(uint64(k2))
  8524. ee.WriteMapElemValue()
  8525. e.encode(v2)
  8526. }
  8527. } else {
  8528. for k2, v2 := range v {
  8529. ee.EncodeUint(uint64(k2))
  8530. e.encode(v2)
  8531. }
  8532. }
  8533. }
  8534. ee.WriteMapEnd()
  8535. }
  8536. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  8537. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  8538. }
  8539. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  8540. if v == nil {
  8541. e.e.EncodeNil()
  8542. return
  8543. }
  8544. ee, esep := e.e, e.hh.hasElemSeparators()
  8545. ee.WriteMapStart(len(v))
  8546. if e.h.Canonical {
  8547. v2 := make([]uint64, len(v))
  8548. var i uint
  8549. for k := range v {
  8550. v2[i] = uint64(k)
  8551. i++
  8552. }
  8553. sort.Sort(uintSlice(v2))
  8554. if esep {
  8555. for _, k2 := range v2 {
  8556. ee.WriteMapElemKey()
  8557. ee.EncodeUint(uint64(uint64(k2)))
  8558. ee.WriteMapElemValue()
  8559. ee.EncodeStringEnc(cUTF8, v[uint64(k2)])
  8560. }
  8561. } else {
  8562. for _, k2 := range v2 {
  8563. ee.EncodeUint(uint64(uint64(k2)))
  8564. ee.EncodeStringEnc(cUTF8, v[uint64(k2)])
  8565. }
  8566. }
  8567. } else {
  8568. if esep {
  8569. for k2, v2 := range v {
  8570. ee.WriteMapElemKey()
  8571. ee.EncodeUint(uint64(k2))
  8572. ee.WriteMapElemValue()
  8573. ee.EncodeStringEnc(cUTF8, v2)
  8574. }
  8575. } else {
  8576. for k2, v2 := range v {
  8577. ee.EncodeUint(uint64(k2))
  8578. ee.EncodeStringEnc(cUTF8, v2)
  8579. }
  8580. }
  8581. }
  8582. ee.WriteMapEnd()
  8583. }
  8584. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  8585. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  8586. }
  8587. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  8588. if v == nil {
  8589. e.e.EncodeNil()
  8590. return
  8591. }
  8592. ee, esep := e.e, e.hh.hasElemSeparators()
  8593. ee.WriteMapStart(len(v))
  8594. if e.h.Canonical {
  8595. v2 := make([]uint64, len(v))
  8596. var i uint
  8597. for k := range v {
  8598. v2[i] = uint64(k)
  8599. i++
  8600. }
  8601. sort.Sort(uintSlice(v2))
  8602. if esep {
  8603. for _, k2 := range v2 {
  8604. ee.WriteMapElemKey()
  8605. ee.EncodeUint(uint64(uint64(k2)))
  8606. ee.WriteMapElemValue()
  8607. ee.EncodeUint(uint64(v[uint64(k2)]))
  8608. }
  8609. } else {
  8610. for _, k2 := range v2 {
  8611. ee.EncodeUint(uint64(uint64(k2)))
  8612. ee.EncodeUint(uint64(v[uint64(k2)]))
  8613. }
  8614. }
  8615. } else {
  8616. if esep {
  8617. for k2, v2 := range v {
  8618. ee.WriteMapElemKey()
  8619. ee.EncodeUint(uint64(k2))
  8620. ee.WriteMapElemValue()
  8621. ee.EncodeUint(uint64(v2))
  8622. }
  8623. } else {
  8624. for k2, v2 := range v {
  8625. ee.EncodeUint(uint64(k2))
  8626. ee.EncodeUint(uint64(v2))
  8627. }
  8628. }
  8629. }
  8630. ee.WriteMapEnd()
  8631. }
  8632. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  8633. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  8634. }
  8635. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  8636. if v == nil {
  8637. e.e.EncodeNil()
  8638. return
  8639. }
  8640. ee, esep := e.e, e.hh.hasElemSeparators()
  8641. ee.WriteMapStart(len(v))
  8642. if e.h.Canonical {
  8643. v2 := make([]uint64, len(v))
  8644. var i uint
  8645. for k := range v {
  8646. v2[i] = uint64(k)
  8647. i++
  8648. }
  8649. sort.Sort(uintSlice(v2))
  8650. if esep {
  8651. for _, k2 := range v2 {
  8652. ee.WriteMapElemKey()
  8653. ee.EncodeUint(uint64(uint64(k2)))
  8654. ee.WriteMapElemValue()
  8655. ee.EncodeUint(uint64(v[uint64(k2)]))
  8656. }
  8657. } else {
  8658. for _, k2 := range v2 {
  8659. ee.EncodeUint(uint64(uint64(k2)))
  8660. ee.EncodeUint(uint64(v[uint64(k2)]))
  8661. }
  8662. }
  8663. } else {
  8664. if esep {
  8665. for k2, v2 := range v {
  8666. ee.WriteMapElemKey()
  8667. ee.EncodeUint(uint64(k2))
  8668. ee.WriteMapElemValue()
  8669. ee.EncodeUint(uint64(v2))
  8670. }
  8671. } else {
  8672. for k2, v2 := range v {
  8673. ee.EncodeUint(uint64(k2))
  8674. ee.EncodeUint(uint64(v2))
  8675. }
  8676. }
  8677. }
  8678. ee.WriteMapEnd()
  8679. }
  8680. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  8681. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  8682. }
  8683. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  8684. if v == nil {
  8685. e.e.EncodeNil()
  8686. return
  8687. }
  8688. ee, esep := e.e, e.hh.hasElemSeparators()
  8689. ee.WriteMapStart(len(v))
  8690. if e.h.Canonical {
  8691. v2 := make([]uint64, len(v))
  8692. var i uint
  8693. for k := range v {
  8694. v2[i] = uint64(k)
  8695. i++
  8696. }
  8697. sort.Sort(uintSlice(v2))
  8698. if esep {
  8699. for _, k2 := range v2 {
  8700. ee.WriteMapElemKey()
  8701. ee.EncodeUint(uint64(uint64(k2)))
  8702. ee.WriteMapElemValue()
  8703. ee.EncodeUint(uint64(v[uint64(k2)]))
  8704. }
  8705. } else {
  8706. for _, k2 := range v2 {
  8707. ee.EncodeUint(uint64(uint64(k2)))
  8708. ee.EncodeUint(uint64(v[uint64(k2)]))
  8709. }
  8710. }
  8711. } else {
  8712. if esep {
  8713. for k2, v2 := range v {
  8714. ee.WriteMapElemKey()
  8715. ee.EncodeUint(uint64(k2))
  8716. ee.WriteMapElemValue()
  8717. ee.EncodeUint(uint64(v2))
  8718. }
  8719. } else {
  8720. for k2, v2 := range v {
  8721. ee.EncodeUint(uint64(k2))
  8722. ee.EncodeUint(uint64(v2))
  8723. }
  8724. }
  8725. }
  8726. ee.WriteMapEnd()
  8727. }
  8728. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  8729. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  8730. }
  8731. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  8732. if v == nil {
  8733. e.e.EncodeNil()
  8734. return
  8735. }
  8736. ee, esep := e.e, e.hh.hasElemSeparators()
  8737. ee.WriteMapStart(len(v))
  8738. if e.h.Canonical {
  8739. v2 := make([]uint64, len(v))
  8740. var i uint
  8741. for k := range v {
  8742. v2[i] = uint64(k)
  8743. i++
  8744. }
  8745. sort.Sort(uintSlice(v2))
  8746. if esep {
  8747. for _, k2 := range v2 {
  8748. ee.WriteMapElemKey()
  8749. ee.EncodeUint(uint64(uint64(k2)))
  8750. ee.WriteMapElemValue()
  8751. ee.EncodeUint(uint64(v[uint64(k2)]))
  8752. }
  8753. } else {
  8754. for _, k2 := range v2 {
  8755. ee.EncodeUint(uint64(uint64(k2)))
  8756. ee.EncodeUint(uint64(v[uint64(k2)]))
  8757. }
  8758. }
  8759. } else {
  8760. if esep {
  8761. for k2, v2 := range v {
  8762. ee.WriteMapElemKey()
  8763. ee.EncodeUint(uint64(k2))
  8764. ee.WriteMapElemValue()
  8765. ee.EncodeUint(uint64(v2))
  8766. }
  8767. } else {
  8768. for k2, v2 := range v {
  8769. ee.EncodeUint(uint64(k2))
  8770. ee.EncodeUint(uint64(v2))
  8771. }
  8772. }
  8773. }
  8774. ee.WriteMapEnd()
  8775. }
  8776. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  8777. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  8778. }
  8779. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  8780. if v == nil {
  8781. e.e.EncodeNil()
  8782. return
  8783. }
  8784. ee, esep := e.e, e.hh.hasElemSeparators()
  8785. ee.WriteMapStart(len(v))
  8786. if e.h.Canonical {
  8787. v2 := make([]uint64, len(v))
  8788. var i uint
  8789. for k := range v {
  8790. v2[i] = uint64(k)
  8791. i++
  8792. }
  8793. sort.Sort(uintSlice(v2))
  8794. if esep {
  8795. for _, k2 := range v2 {
  8796. ee.WriteMapElemKey()
  8797. ee.EncodeUint(uint64(uint64(k2)))
  8798. ee.WriteMapElemValue()
  8799. ee.EncodeUint(uint64(v[uint64(k2)]))
  8800. }
  8801. } else {
  8802. for _, k2 := range v2 {
  8803. ee.EncodeUint(uint64(uint64(k2)))
  8804. ee.EncodeUint(uint64(v[uint64(k2)]))
  8805. }
  8806. }
  8807. } else {
  8808. if esep {
  8809. for k2, v2 := range v {
  8810. ee.WriteMapElemKey()
  8811. ee.EncodeUint(uint64(k2))
  8812. ee.WriteMapElemValue()
  8813. ee.EncodeUint(uint64(v2))
  8814. }
  8815. } else {
  8816. for k2, v2 := range v {
  8817. ee.EncodeUint(uint64(k2))
  8818. ee.EncodeUint(uint64(v2))
  8819. }
  8820. }
  8821. }
  8822. ee.WriteMapEnd()
  8823. }
  8824. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  8825. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  8826. }
  8827. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  8828. if v == nil {
  8829. e.e.EncodeNil()
  8830. return
  8831. }
  8832. ee, esep := e.e, e.hh.hasElemSeparators()
  8833. ee.WriteMapStart(len(v))
  8834. if e.h.Canonical {
  8835. v2 := make([]uint64, len(v))
  8836. var i uint
  8837. for k := range v {
  8838. v2[i] = uint64(k)
  8839. i++
  8840. }
  8841. sort.Sort(uintSlice(v2))
  8842. if esep {
  8843. for _, k2 := range v2 {
  8844. ee.WriteMapElemKey()
  8845. ee.EncodeUint(uint64(uint64(k2)))
  8846. ee.WriteMapElemValue()
  8847. e.encode(v[uint64(k2)])
  8848. }
  8849. } else {
  8850. for _, k2 := range v2 {
  8851. ee.EncodeUint(uint64(uint64(k2)))
  8852. e.encode(v[uint64(k2)])
  8853. }
  8854. }
  8855. } else {
  8856. if esep {
  8857. for k2, v2 := range v {
  8858. ee.WriteMapElemKey()
  8859. ee.EncodeUint(uint64(k2))
  8860. ee.WriteMapElemValue()
  8861. e.encode(v2)
  8862. }
  8863. } else {
  8864. for k2, v2 := range v {
  8865. ee.EncodeUint(uint64(k2))
  8866. e.encode(v2)
  8867. }
  8868. }
  8869. }
  8870. ee.WriteMapEnd()
  8871. }
  8872. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  8873. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  8874. }
  8875. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  8876. if v == nil {
  8877. e.e.EncodeNil()
  8878. return
  8879. }
  8880. ee, esep := e.e, e.hh.hasElemSeparators()
  8881. ee.WriteMapStart(len(v))
  8882. if e.h.Canonical {
  8883. v2 := make([]uint64, len(v))
  8884. var i uint
  8885. for k := range v {
  8886. v2[i] = uint64(k)
  8887. i++
  8888. }
  8889. sort.Sort(uintSlice(v2))
  8890. if esep {
  8891. for _, k2 := range v2 {
  8892. ee.WriteMapElemKey()
  8893. ee.EncodeUint(uint64(uint64(k2)))
  8894. ee.WriteMapElemValue()
  8895. ee.EncodeInt(int64(v[uint64(k2)]))
  8896. }
  8897. } else {
  8898. for _, k2 := range v2 {
  8899. ee.EncodeUint(uint64(uint64(k2)))
  8900. ee.EncodeInt(int64(v[uint64(k2)]))
  8901. }
  8902. }
  8903. } else {
  8904. if esep {
  8905. for k2, v2 := range v {
  8906. ee.WriteMapElemKey()
  8907. ee.EncodeUint(uint64(k2))
  8908. ee.WriteMapElemValue()
  8909. ee.EncodeInt(int64(v2))
  8910. }
  8911. } else {
  8912. for k2, v2 := range v {
  8913. ee.EncodeUint(uint64(k2))
  8914. ee.EncodeInt(int64(v2))
  8915. }
  8916. }
  8917. }
  8918. ee.WriteMapEnd()
  8919. }
  8920. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  8921. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  8922. }
  8923. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  8924. if v == nil {
  8925. e.e.EncodeNil()
  8926. return
  8927. }
  8928. ee, esep := e.e, e.hh.hasElemSeparators()
  8929. ee.WriteMapStart(len(v))
  8930. if e.h.Canonical {
  8931. v2 := make([]uint64, len(v))
  8932. var i uint
  8933. for k := range v {
  8934. v2[i] = uint64(k)
  8935. i++
  8936. }
  8937. sort.Sort(uintSlice(v2))
  8938. if esep {
  8939. for _, k2 := range v2 {
  8940. ee.WriteMapElemKey()
  8941. ee.EncodeUint(uint64(uint64(k2)))
  8942. ee.WriteMapElemValue()
  8943. ee.EncodeInt(int64(v[uint64(k2)]))
  8944. }
  8945. } else {
  8946. for _, k2 := range v2 {
  8947. ee.EncodeUint(uint64(uint64(k2)))
  8948. ee.EncodeInt(int64(v[uint64(k2)]))
  8949. }
  8950. }
  8951. } else {
  8952. if esep {
  8953. for k2, v2 := range v {
  8954. ee.WriteMapElemKey()
  8955. ee.EncodeUint(uint64(k2))
  8956. ee.WriteMapElemValue()
  8957. ee.EncodeInt(int64(v2))
  8958. }
  8959. } else {
  8960. for k2, v2 := range v {
  8961. ee.EncodeUint(uint64(k2))
  8962. ee.EncodeInt(int64(v2))
  8963. }
  8964. }
  8965. }
  8966. ee.WriteMapEnd()
  8967. }
  8968. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  8969. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  8970. }
  8971. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  8972. if v == nil {
  8973. e.e.EncodeNil()
  8974. return
  8975. }
  8976. ee, esep := e.e, e.hh.hasElemSeparators()
  8977. ee.WriteMapStart(len(v))
  8978. if e.h.Canonical {
  8979. v2 := make([]uint64, len(v))
  8980. var i uint
  8981. for k := range v {
  8982. v2[i] = uint64(k)
  8983. i++
  8984. }
  8985. sort.Sort(uintSlice(v2))
  8986. if esep {
  8987. for _, k2 := range v2 {
  8988. ee.WriteMapElemKey()
  8989. ee.EncodeUint(uint64(uint64(k2)))
  8990. ee.WriteMapElemValue()
  8991. ee.EncodeInt(int64(v[uint64(k2)]))
  8992. }
  8993. } else {
  8994. for _, k2 := range v2 {
  8995. ee.EncodeUint(uint64(uint64(k2)))
  8996. ee.EncodeInt(int64(v[uint64(k2)]))
  8997. }
  8998. }
  8999. } else {
  9000. if esep {
  9001. for k2, v2 := range v {
  9002. ee.WriteMapElemKey()
  9003. ee.EncodeUint(uint64(k2))
  9004. ee.WriteMapElemValue()
  9005. ee.EncodeInt(int64(v2))
  9006. }
  9007. } else {
  9008. for k2, v2 := range v {
  9009. ee.EncodeUint(uint64(k2))
  9010. ee.EncodeInt(int64(v2))
  9011. }
  9012. }
  9013. }
  9014. ee.WriteMapEnd()
  9015. }
  9016. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  9017. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  9018. }
  9019. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  9020. if v == nil {
  9021. e.e.EncodeNil()
  9022. return
  9023. }
  9024. ee, esep := e.e, e.hh.hasElemSeparators()
  9025. ee.WriteMapStart(len(v))
  9026. if e.h.Canonical {
  9027. v2 := make([]uint64, len(v))
  9028. var i uint
  9029. for k := range v {
  9030. v2[i] = uint64(k)
  9031. i++
  9032. }
  9033. sort.Sort(uintSlice(v2))
  9034. if esep {
  9035. for _, k2 := range v2 {
  9036. ee.WriteMapElemKey()
  9037. ee.EncodeUint(uint64(uint64(k2)))
  9038. ee.WriteMapElemValue()
  9039. ee.EncodeInt(int64(v[uint64(k2)]))
  9040. }
  9041. } else {
  9042. for _, k2 := range v2 {
  9043. ee.EncodeUint(uint64(uint64(k2)))
  9044. ee.EncodeInt(int64(v[uint64(k2)]))
  9045. }
  9046. }
  9047. } else {
  9048. if esep {
  9049. for k2, v2 := range v {
  9050. ee.WriteMapElemKey()
  9051. ee.EncodeUint(uint64(k2))
  9052. ee.WriteMapElemValue()
  9053. ee.EncodeInt(int64(v2))
  9054. }
  9055. } else {
  9056. for k2, v2 := range v {
  9057. ee.EncodeUint(uint64(k2))
  9058. ee.EncodeInt(int64(v2))
  9059. }
  9060. }
  9061. }
  9062. ee.WriteMapEnd()
  9063. }
  9064. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  9065. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  9066. }
  9067. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  9068. if v == nil {
  9069. e.e.EncodeNil()
  9070. return
  9071. }
  9072. ee, esep := e.e, e.hh.hasElemSeparators()
  9073. ee.WriteMapStart(len(v))
  9074. if e.h.Canonical {
  9075. v2 := make([]uint64, len(v))
  9076. var i uint
  9077. for k := range v {
  9078. v2[i] = uint64(k)
  9079. i++
  9080. }
  9081. sort.Sort(uintSlice(v2))
  9082. if esep {
  9083. for _, k2 := range v2 {
  9084. ee.WriteMapElemKey()
  9085. ee.EncodeUint(uint64(uint64(k2)))
  9086. ee.WriteMapElemValue()
  9087. ee.EncodeInt(int64(v[uint64(k2)]))
  9088. }
  9089. } else {
  9090. for _, k2 := range v2 {
  9091. ee.EncodeUint(uint64(uint64(k2)))
  9092. ee.EncodeInt(int64(v[uint64(k2)]))
  9093. }
  9094. }
  9095. } else {
  9096. if esep {
  9097. for k2, v2 := range v {
  9098. ee.WriteMapElemKey()
  9099. ee.EncodeUint(uint64(k2))
  9100. ee.WriteMapElemValue()
  9101. ee.EncodeInt(int64(v2))
  9102. }
  9103. } else {
  9104. for k2, v2 := range v {
  9105. ee.EncodeUint(uint64(k2))
  9106. ee.EncodeInt(int64(v2))
  9107. }
  9108. }
  9109. }
  9110. ee.WriteMapEnd()
  9111. }
  9112. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  9113. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  9114. }
  9115. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  9116. if v == nil {
  9117. e.e.EncodeNil()
  9118. return
  9119. }
  9120. ee, esep := e.e, e.hh.hasElemSeparators()
  9121. ee.WriteMapStart(len(v))
  9122. if e.h.Canonical {
  9123. v2 := make([]uint64, len(v))
  9124. var i uint
  9125. for k := range v {
  9126. v2[i] = uint64(k)
  9127. i++
  9128. }
  9129. sort.Sort(uintSlice(v2))
  9130. if esep {
  9131. for _, k2 := range v2 {
  9132. ee.WriteMapElemKey()
  9133. ee.EncodeUint(uint64(uint64(k2)))
  9134. ee.WriteMapElemValue()
  9135. ee.EncodeFloat32(v[uint64(k2)])
  9136. }
  9137. } else {
  9138. for _, k2 := range v2 {
  9139. ee.EncodeUint(uint64(uint64(k2)))
  9140. ee.EncodeFloat32(v[uint64(k2)])
  9141. }
  9142. }
  9143. } else {
  9144. if esep {
  9145. for k2, v2 := range v {
  9146. ee.WriteMapElemKey()
  9147. ee.EncodeUint(uint64(k2))
  9148. ee.WriteMapElemValue()
  9149. ee.EncodeFloat32(v2)
  9150. }
  9151. } else {
  9152. for k2, v2 := range v {
  9153. ee.EncodeUint(uint64(k2))
  9154. ee.EncodeFloat32(v2)
  9155. }
  9156. }
  9157. }
  9158. ee.WriteMapEnd()
  9159. }
  9160. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  9161. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  9162. }
  9163. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  9164. if v == nil {
  9165. e.e.EncodeNil()
  9166. return
  9167. }
  9168. ee, esep := e.e, e.hh.hasElemSeparators()
  9169. ee.WriteMapStart(len(v))
  9170. if e.h.Canonical {
  9171. v2 := make([]uint64, len(v))
  9172. var i uint
  9173. for k := range v {
  9174. v2[i] = uint64(k)
  9175. i++
  9176. }
  9177. sort.Sort(uintSlice(v2))
  9178. if esep {
  9179. for _, k2 := range v2 {
  9180. ee.WriteMapElemKey()
  9181. ee.EncodeUint(uint64(uint64(k2)))
  9182. ee.WriteMapElemValue()
  9183. ee.EncodeFloat64(v[uint64(k2)])
  9184. }
  9185. } else {
  9186. for _, k2 := range v2 {
  9187. ee.EncodeUint(uint64(uint64(k2)))
  9188. ee.EncodeFloat64(v[uint64(k2)])
  9189. }
  9190. }
  9191. } else {
  9192. if esep {
  9193. for k2, v2 := range v {
  9194. ee.WriteMapElemKey()
  9195. ee.EncodeUint(uint64(k2))
  9196. ee.WriteMapElemValue()
  9197. ee.EncodeFloat64(v2)
  9198. }
  9199. } else {
  9200. for k2, v2 := range v {
  9201. ee.EncodeUint(uint64(k2))
  9202. ee.EncodeFloat64(v2)
  9203. }
  9204. }
  9205. }
  9206. ee.WriteMapEnd()
  9207. }
  9208. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  9209. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  9210. }
  9211. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  9212. if v == nil {
  9213. e.e.EncodeNil()
  9214. return
  9215. }
  9216. ee, esep := e.e, e.hh.hasElemSeparators()
  9217. ee.WriteMapStart(len(v))
  9218. if e.h.Canonical {
  9219. v2 := make([]uint64, len(v))
  9220. var i uint
  9221. for k := range v {
  9222. v2[i] = uint64(k)
  9223. i++
  9224. }
  9225. sort.Sort(uintSlice(v2))
  9226. if esep {
  9227. for _, k2 := range v2 {
  9228. ee.WriteMapElemKey()
  9229. ee.EncodeUint(uint64(uint64(k2)))
  9230. ee.WriteMapElemValue()
  9231. ee.EncodeBool(v[uint64(k2)])
  9232. }
  9233. } else {
  9234. for _, k2 := range v2 {
  9235. ee.EncodeUint(uint64(uint64(k2)))
  9236. ee.EncodeBool(v[uint64(k2)])
  9237. }
  9238. }
  9239. } else {
  9240. if esep {
  9241. for k2, v2 := range v {
  9242. ee.WriteMapElemKey()
  9243. ee.EncodeUint(uint64(k2))
  9244. ee.WriteMapElemValue()
  9245. ee.EncodeBool(v2)
  9246. }
  9247. } else {
  9248. for k2, v2 := range v {
  9249. ee.EncodeUint(uint64(k2))
  9250. ee.EncodeBool(v2)
  9251. }
  9252. }
  9253. }
  9254. ee.WriteMapEnd()
  9255. }
  9256. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  9257. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  9258. }
  9259. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  9260. if v == nil {
  9261. e.e.EncodeNil()
  9262. return
  9263. }
  9264. ee, esep := e.e, e.hh.hasElemSeparators()
  9265. ee.WriteMapStart(len(v))
  9266. if e.h.Canonical {
  9267. v2 := make([]uint64, len(v))
  9268. var i uint
  9269. for k := range v {
  9270. v2[i] = uint64(k)
  9271. i++
  9272. }
  9273. sort.Sort(uintSlice(v2))
  9274. if esep {
  9275. for _, k2 := range v2 {
  9276. ee.WriteMapElemKey()
  9277. e.encode(uintptr(k2))
  9278. ee.WriteMapElemValue()
  9279. e.encode(v[uintptr(k2)])
  9280. }
  9281. } else {
  9282. for _, k2 := range v2 {
  9283. e.encode(uintptr(k2))
  9284. e.encode(v[uintptr(k2)])
  9285. }
  9286. }
  9287. } else {
  9288. if esep {
  9289. for k2, v2 := range v {
  9290. ee.WriteMapElemKey()
  9291. e.encode(k2)
  9292. ee.WriteMapElemValue()
  9293. e.encode(v2)
  9294. }
  9295. } else {
  9296. for k2, v2 := range v {
  9297. e.encode(k2)
  9298. e.encode(v2)
  9299. }
  9300. }
  9301. }
  9302. ee.WriteMapEnd()
  9303. }
  9304. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  9305. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  9306. }
  9307. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  9308. if v == nil {
  9309. e.e.EncodeNil()
  9310. return
  9311. }
  9312. ee, esep := e.e, e.hh.hasElemSeparators()
  9313. ee.WriteMapStart(len(v))
  9314. if e.h.Canonical {
  9315. v2 := make([]uint64, len(v))
  9316. var i uint
  9317. for k := range v {
  9318. v2[i] = uint64(k)
  9319. i++
  9320. }
  9321. sort.Sort(uintSlice(v2))
  9322. if esep {
  9323. for _, k2 := range v2 {
  9324. ee.WriteMapElemKey()
  9325. e.encode(uintptr(k2))
  9326. ee.WriteMapElemValue()
  9327. ee.EncodeStringEnc(cUTF8, v[uintptr(k2)])
  9328. }
  9329. } else {
  9330. for _, k2 := range v2 {
  9331. e.encode(uintptr(k2))
  9332. ee.EncodeStringEnc(cUTF8, v[uintptr(k2)])
  9333. }
  9334. }
  9335. } else {
  9336. if esep {
  9337. for k2, v2 := range v {
  9338. ee.WriteMapElemKey()
  9339. e.encode(k2)
  9340. ee.WriteMapElemValue()
  9341. ee.EncodeStringEnc(cUTF8, v2)
  9342. }
  9343. } else {
  9344. for k2, v2 := range v {
  9345. e.encode(k2)
  9346. ee.EncodeStringEnc(cUTF8, v2)
  9347. }
  9348. }
  9349. }
  9350. ee.WriteMapEnd()
  9351. }
  9352. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  9353. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  9354. }
  9355. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  9356. if v == nil {
  9357. e.e.EncodeNil()
  9358. return
  9359. }
  9360. ee, esep := e.e, e.hh.hasElemSeparators()
  9361. ee.WriteMapStart(len(v))
  9362. if e.h.Canonical {
  9363. v2 := make([]uint64, len(v))
  9364. var i uint
  9365. for k := range v {
  9366. v2[i] = uint64(k)
  9367. i++
  9368. }
  9369. sort.Sort(uintSlice(v2))
  9370. if esep {
  9371. for _, k2 := range v2 {
  9372. ee.WriteMapElemKey()
  9373. e.encode(uintptr(k2))
  9374. ee.WriteMapElemValue()
  9375. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9376. }
  9377. } else {
  9378. for _, k2 := range v2 {
  9379. e.encode(uintptr(k2))
  9380. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9381. }
  9382. }
  9383. } else {
  9384. if esep {
  9385. for k2, v2 := range v {
  9386. ee.WriteMapElemKey()
  9387. e.encode(k2)
  9388. ee.WriteMapElemValue()
  9389. ee.EncodeUint(uint64(v2))
  9390. }
  9391. } else {
  9392. for k2, v2 := range v {
  9393. e.encode(k2)
  9394. ee.EncodeUint(uint64(v2))
  9395. }
  9396. }
  9397. }
  9398. ee.WriteMapEnd()
  9399. }
  9400. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  9401. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  9402. }
  9403. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  9404. if v == nil {
  9405. e.e.EncodeNil()
  9406. return
  9407. }
  9408. ee, esep := e.e, e.hh.hasElemSeparators()
  9409. ee.WriteMapStart(len(v))
  9410. if e.h.Canonical {
  9411. v2 := make([]uint64, len(v))
  9412. var i uint
  9413. for k := range v {
  9414. v2[i] = uint64(k)
  9415. i++
  9416. }
  9417. sort.Sort(uintSlice(v2))
  9418. if esep {
  9419. for _, k2 := range v2 {
  9420. ee.WriteMapElemKey()
  9421. e.encode(uintptr(k2))
  9422. ee.WriteMapElemValue()
  9423. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9424. }
  9425. } else {
  9426. for _, k2 := range v2 {
  9427. e.encode(uintptr(k2))
  9428. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9429. }
  9430. }
  9431. } else {
  9432. if esep {
  9433. for k2, v2 := range v {
  9434. ee.WriteMapElemKey()
  9435. e.encode(k2)
  9436. ee.WriteMapElemValue()
  9437. ee.EncodeUint(uint64(v2))
  9438. }
  9439. } else {
  9440. for k2, v2 := range v {
  9441. e.encode(k2)
  9442. ee.EncodeUint(uint64(v2))
  9443. }
  9444. }
  9445. }
  9446. ee.WriteMapEnd()
  9447. }
  9448. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  9449. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  9450. }
  9451. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  9452. if v == nil {
  9453. e.e.EncodeNil()
  9454. return
  9455. }
  9456. ee, esep := e.e, e.hh.hasElemSeparators()
  9457. ee.WriteMapStart(len(v))
  9458. if e.h.Canonical {
  9459. v2 := make([]uint64, len(v))
  9460. var i uint
  9461. for k := range v {
  9462. v2[i] = uint64(k)
  9463. i++
  9464. }
  9465. sort.Sort(uintSlice(v2))
  9466. if esep {
  9467. for _, k2 := range v2 {
  9468. ee.WriteMapElemKey()
  9469. e.encode(uintptr(k2))
  9470. ee.WriteMapElemValue()
  9471. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9472. }
  9473. } else {
  9474. for _, k2 := range v2 {
  9475. e.encode(uintptr(k2))
  9476. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9477. }
  9478. }
  9479. } else {
  9480. if esep {
  9481. for k2, v2 := range v {
  9482. ee.WriteMapElemKey()
  9483. e.encode(k2)
  9484. ee.WriteMapElemValue()
  9485. ee.EncodeUint(uint64(v2))
  9486. }
  9487. } else {
  9488. for k2, v2 := range v {
  9489. e.encode(k2)
  9490. ee.EncodeUint(uint64(v2))
  9491. }
  9492. }
  9493. }
  9494. ee.WriteMapEnd()
  9495. }
  9496. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  9497. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  9498. }
  9499. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  9500. if v == nil {
  9501. e.e.EncodeNil()
  9502. return
  9503. }
  9504. ee, esep := e.e, e.hh.hasElemSeparators()
  9505. ee.WriteMapStart(len(v))
  9506. if e.h.Canonical {
  9507. v2 := make([]uint64, len(v))
  9508. var i uint
  9509. for k := range v {
  9510. v2[i] = uint64(k)
  9511. i++
  9512. }
  9513. sort.Sort(uintSlice(v2))
  9514. if esep {
  9515. for _, k2 := range v2 {
  9516. ee.WriteMapElemKey()
  9517. e.encode(uintptr(k2))
  9518. ee.WriteMapElemValue()
  9519. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9520. }
  9521. } else {
  9522. for _, k2 := range v2 {
  9523. e.encode(uintptr(k2))
  9524. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9525. }
  9526. }
  9527. } else {
  9528. if esep {
  9529. for k2, v2 := range v {
  9530. ee.WriteMapElemKey()
  9531. e.encode(k2)
  9532. ee.WriteMapElemValue()
  9533. ee.EncodeUint(uint64(v2))
  9534. }
  9535. } else {
  9536. for k2, v2 := range v {
  9537. e.encode(k2)
  9538. ee.EncodeUint(uint64(v2))
  9539. }
  9540. }
  9541. }
  9542. ee.WriteMapEnd()
  9543. }
  9544. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  9545. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  9546. }
  9547. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
  9548. if v == nil {
  9549. e.e.EncodeNil()
  9550. return
  9551. }
  9552. ee, esep := e.e, e.hh.hasElemSeparators()
  9553. ee.WriteMapStart(len(v))
  9554. if e.h.Canonical {
  9555. v2 := make([]uint64, len(v))
  9556. var i uint
  9557. for k := range v {
  9558. v2[i] = uint64(k)
  9559. i++
  9560. }
  9561. sort.Sort(uintSlice(v2))
  9562. if esep {
  9563. for _, k2 := range v2 {
  9564. ee.WriteMapElemKey()
  9565. e.encode(uintptr(k2))
  9566. ee.WriteMapElemValue()
  9567. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9568. }
  9569. } else {
  9570. for _, k2 := range v2 {
  9571. e.encode(uintptr(k2))
  9572. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9573. }
  9574. }
  9575. } else {
  9576. if esep {
  9577. for k2, v2 := range v {
  9578. ee.WriteMapElemKey()
  9579. e.encode(k2)
  9580. ee.WriteMapElemValue()
  9581. ee.EncodeUint(uint64(v2))
  9582. }
  9583. } else {
  9584. for k2, v2 := range v {
  9585. e.encode(k2)
  9586. ee.EncodeUint(uint64(v2))
  9587. }
  9588. }
  9589. }
  9590. ee.WriteMapEnd()
  9591. }
  9592. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  9593. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  9594. }
  9595. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  9596. if v == nil {
  9597. e.e.EncodeNil()
  9598. return
  9599. }
  9600. ee, esep := e.e, e.hh.hasElemSeparators()
  9601. ee.WriteMapStart(len(v))
  9602. if e.h.Canonical {
  9603. v2 := make([]uint64, len(v))
  9604. var i uint
  9605. for k := range v {
  9606. v2[i] = uint64(k)
  9607. i++
  9608. }
  9609. sort.Sort(uintSlice(v2))
  9610. if esep {
  9611. for _, k2 := range v2 {
  9612. ee.WriteMapElemKey()
  9613. e.encode(uintptr(k2))
  9614. ee.WriteMapElemValue()
  9615. e.encode(v[uintptr(k2)])
  9616. }
  9617. } else {
  9618. for _, k2 := range v2 {
  9619. e.encode(uintptr(k2))
  9620. e.encode(v[uintptr(k2)])
  9621. }
  9622. }
  9623. } else {
  9624. if esep {
  9625. for k2, v2 := range v {
  9626. ee.WriteMapElemKey()
  9627. e.encode(k2)
  9628. ee.WriteMapElemValue()
  9629. e.encode(v2)
  9630. }
  9631. } else {
  9632. for k2, v2 := range v {
  9633. e.encode(k2)
  9634. e.encode(v2)
  9635. }
  9636. }
  9637. }
  9638. ee.WriteMapEnd()
  9639. }
  9640. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  9641. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  9642. }
  9643. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  9644. if v == nil {
  9645. e.e.EncodeNil()
  9646. return
  9647. }
  9648. ee, esep := e.e, e.hh.hasElemSeparators()
  9649. ee.WriteMapStart(len(v))
  9650. if e.h.Canonical {
  9651. v2 := make([]uint64, len(v))
  9652. var i uint
  9653. for k := range v {
  9654. v2[i] = uint64(k)
  9655. i++
  9656. }
  9657. sort.Sort(uintSlice(v2))
  9658. if esep {
  9659. for _, k2 := range v2 {
  9660. ee.WriteMapElemKey()
  9661. e.encode(uintptr(k2))
  9662. ee.WriteMapElemValue()
  9663. ee.EncodeInt(int64(v[uintptr(k2)]))
  9664. }
  9665. } else {
  9666. for _, k2 := range v2 {
  9667. e.encode(uintptr(k2))
  9668. ee.EncodeInt(int64(v[uintptr(k2)]))
  9669. }
  9670. }
  9671. } else {
  9672. if esep {
  9673. for k2, v2 := range v {
  9674. ee.WriteMapElemKey()
  9675. e.encode(k2)
  9676. ee.WriteMapElemValue()
  9677. ee.EncodeInt(int64(v2))
  9678. }
  9679. } else {
  9680. for k2, v2 := range v {
  9681. e.encode(k2)
  9682. ee.EncodeInt(int64(v2))
  9683. }
  9684. }
  9685. }
  9686. ee.WriteMapEnd()
  9687. }
  9688. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  9689. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  9690. }
  9691. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  9692. if v == nil {
  9693. e.e.EncodeNil()
  9694. return
  9695. }
  9696. ee, esep := e.e, e.hh.hasElemSeparators()
  9697. ee.WriteMapStart(len(v))
  9698. if e.h.Canonical {
  9699. v2 := make([]uint64, len(v))
  9700. var i uint
  9701. for k := range v {
  9702. v2[i] = uint64(k)
  9703. i++
  9704. }
  9705. sort.Sort(uintSlice(v2))
  9706. if esep {
  9707. for _, k2 := range v2 {
  9708. ee.WriteMapElemKey()
  9709. e.encode(uintptr(k2))
  9710. ee.WriteMapElemValue()
  9711. ee.EncodeInt(int64(v[uintptr(k2)]))
  9712. }
  9713. } else {
  9714. for _, k2 := range v2 {
  9715. e.encode(uintptr(k2))
  9716. ee.EncodeInt(int64(v[uintptr(k2)]))
  9717. }
  9718. }
  9719. } else {
  9720. if esep {
  9721. for k2, v2 := range v {
  9722. ee.WriteMapElemKey()
  9723. e.encode(k2)
  9724. ee.WriteMapElemValue()
  9725. ee.EncodeInt(int64(v2))
  9726. }
  9727. } else {
  9728. for k2, v2 := range v {
  9729. e.encode(k2)
  9730. ee.EncodeInt(int64(v2))
  9731. }
  9732. }
  9733. }
  9734. ee.WriteMapEnd()
  9735. }
  9736. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  9737. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  9738. }
  9739. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  9740. if v == nil {
  9741. e.e.EncodeNil()
  9742. return
  9743. }
  9744. ee, esep := e.e, e.hh.hasElemSeparators()
  9745. ee.WriteMapStart(len(v))
  9746. if e.h.Canonical {
  9747. v2 := make([]uint64, len(v))
  9748. var i uint
  9749. for k := range v {
  9750. v2[i] = uint64(k)
  9751. i++
  9752. }
  9753. sort.Sort(uintSlice(v2))
  9754. if esep {
  9755. for _, k2 := range v2 {
  9756. ee.WriteMapElemKey()
  9757. e.encode(uintptr(k2))
  9758. ee.WriteMapElemValue()
  9759. ee.EncodeInt(int64(v[uintptr(k2)]))
  9760. }
  9761. } else {
  9762. for _, k2 := range v2 {
  9763. e.encode(uintptr(k2))
  9764. ee.EncodeInt(int64(v[uintptr(k2)]))
  9765. }
  9766. }
  9767. } else {
  9768. if esep {
  9769. for k2, v2 := range v {
  9770. ee.WriteMapElemKey()
  9771. e.encode(k2)
  9772. ee.WriteMapElemValue()
  9773. ee.EncodeInt(int64(v2))
  9774. }
  9775. } else {
  9776. for k2, v2 := range v {
  9777. e.encode(k2)
  9778. ee.EncodeInt(int64(v2))
  9779. }
  9780. }
  9781. }
  9782. ee.WriteMapEnd()
  9783. }
  9784. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  9785. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  9786. }
  9787. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  9788. if v == nil {
  9789. e.e.EncodeNil()
  9790. return
  9791. }
  9792. ee, esep := e.e, e.hh.hasElemSeparators()
  9793. ee.WriteMapStart(len(v))
  9794. if e.h.Canonical {
  9795. v2 := make([]uint64, len(v))
  9796. var i uint
  9797. for k := range v {
  9798. v2[i] = uint64(k)
  9799. i++
  9800. }
  9801. sort.Sort(uintSlice(v2))
  9802. if esep {
  9803. for _, k2 := range v2 {
  9804. ee.WriteMapElemKey()
  9805. e.encode(uintptr(k2))
  9806. ee.WriteMapElemValue()
  9807. ee.EncodeInt(int64(v[uintptr(k2)]))
  9808. }
  9809. } else {
  9810. for _, k2 := range v2 {
  9811. e.encode(uintptr(k2))
  9812. ee.EncodeInt(int64(v[uintptr(k2)]))
  9813. }
  9814. }
  9815. } else {
  9816. if esep {
  9817. for k2, v2 := range v {
  9818. ee.WriteMapElemKey()
  9819. e.encode(k2)
  9820. ee.WriteMapElemValue()
  9821. ee.EncodeInt(int64(v2))
  9822. }
  9823. } else {
  9824. for k2, v2 := range v {
  9825. e.encode(k2)
  9826. ee.EncodeInt(int64(v2))
  9827. }
  9828. }
  9829. }
  9830. ee.WriteMapEnd()
  9831. }
  9832. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  9833. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  9834. }
  9835. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  9836. if v == nil {
  9837. e.e.EncodeNil()
  9838. return
  9839. }
  9840. ee, esep := e.e, e.hh.hasElemSeparators()
  9841. ee.WriteMapStart(len(v))
  9842. if e.h.Canonical {
  9843. v2 := make([]uint64, len(v))
  9844. var i uint
  9845. for k := range v {
  9846. v2[i] = uint64(k)
  9847. i++
  9848. }
  9849. sort.Sort(uintSlice(v2))
  9850. if esep {
  9851. for _, k2 := range v2 {
  9852. ee.WriteMapElemKey()
  9853. e.encode(uintptr(k2))
  9854. ee.WriteMapElemValue()
  9855. ee.EncodeInt(int64(v[uintptr(k2)]))
  9856. }
  9857. } else {
  9858. for _, k2 := range v2 {
  9859. e.encode(uintptr(k2))
  9860. ee.EncodeInt(int64(v[uintptr(k2)]))
  9861. }
  9862. }
  9863. } else {
  9864. if esep {
  9865. for k2, v2 := range v {
  9866. ee.WriteMapElemKey()
  9867. e.encode(k2)
  9868. ee.WriteMapElemValue()
  9869. ee.EncodeInt(int64(v2))
  9870. }
  9871. } else {
  9872. for k2, v2 := range v {
  9873. e.encode(k2)
  9874. ee.EncodeInt(int64(v2))
  9875. }
  9876. }
  9877. }
  9878. ee.WriteMapEnd()
  9879. }
  9880. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  9881. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  9882. }
  9883. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  9884. if v == nil {
  9885. e.e.EncodeNil()
  9886. return
  9887. }
  9888. ee, esep := e.e, e.hh.hasElemSeparators()
  9889. ee.WriteMapStart(len(v))
  9890. if e.h.Canonical {
  9891. v2 := make([]uint64, len(v))
  9892. var i uint
  9893. for k := range v {
  9894. v2[i] = uint64(k)
  9895. i++
  9896. }
  9897. sort.Sort(uintSlice(v2))
  9898. if esep {
  9899. for _, k2 := range v2 {
  9900. ee.WriteMapElemKey()
  9901. e.encode(uintptr(k2))
  9902. ee.WriteMapElemValue()
  9903. ee.EncodeFloat32(v[uintptr(k2)])
  9904. }
  9905. } else {
  9906. for _, k2 := range v2 {
  9907. e.encode(uintptr(k2))
  9908. ee.EncodeFloat32(v[uintptr(k2)])
  9909. }
  9910. }
  9911. } else {
  9912. if esep {
  9913. for k2, v2 := range v {
  9914. ee.WriteMapElemKey()
  9915. e.encode(k2)
  9916. ee.WriteMapElemValue()
  9917. ee.EncodeFloat32(v2)
  9918. }
  9919. } else {
  9920. for k2, v2 := range v {
  9921. e.encode(k2)
  9922. ee.EncodeFloat32(v2)
  9923. }
  9924. }
  9925. }
  9926. ee.WriteMapEnd()
  9927. }
  9928. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  9929. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  9930. }
  9931. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
  9932. if v == nil {
  9933. e.e.EncodeNil()
  9934. return
  9935. }
  9936. ee, esep := e.e, e.hh.hasElemSeparators()
  9937. ee.WriteMapStart(len(v))
  9938. if e.h.Canonical {
  9939. v2 := make([]uint64, len(v))
  9940. var i uint
  9941. for k := range v {
  9942. v2[i] = uint64(k)
  9943. i++
  9944. }
  9945. sort.Sort(uintSlice(v2))
  9946. if esep {
  9947. for _, k2 := range v2 {
  9948. ee.WriteMapElemKey()
  9949. e.encode(uintptr(k2))
  9950. ee.WriteMapElemValue()
  9951. ee.EncodeFloat64(v[uintptr(k2)])
  9952. }
  9953. } else {
  9954. for _, k2 := range v2 {
  9955. e.encode(uintptr(k2))
  9956. ee.EncodeFloat64(v[uintptr(k2)])
  9957. }
  9958. }
  9959. } else {
  9960. if esep {
  9961. for k2, v2 := range v {
  9962. ee.WriteMapElemKey()
  9963. e.encode(k2)
  9964. ee.WriteMapElemValue()
  9965. ee.EncodeFloat64(v2)
  9966. }
  9967. } else {
  9968. for k2, v2 := range v {
  9969. e.encode(k2)
  9970. ee.EncodeFloat64(v2)
  9971. }
  9972. }
  9973. }
  9974. ee.WriteMapEnd()
  9975. }
  9976. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  9977. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  9978. }
  9979. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  9980. if v == nil {
  9981. e.e.EncodeNil()
  9982. return
  9983. }
  9984. ee, esep := e.e, e.hh.hasElemSeparators()
  9985. ee.WriteMapStart(len(v))
  9986. if e.h.Canonical {
  9987. v2 := make([]uint64, len(v))
  9988. var i uint
  9989. for k := range v {
  9990. v2[i] = uint64(k)
  9991. i++
  9992. }
  9993. sort.Sort(uintSlice(v2))
  9994. if esep {
  9995. for _, k2 := range v2 {
  9996. ee.WriteMapElemKey()
  9997. e.encode(uintptr(k2))
  9998. ee.WriteMapElemValue()
  9999. ee.EncodeBool(v[uintptr(k2)])
  10000. }
  10001. } else {
  10002. for _, k2 := range v2 {
  10003. e.encode(uintptr(k2))
  10004. ee.EncodeBool(v[uintptr(k2)])
  10005. }
  10006. }
  10007. } else {
  10008. if esep {
  10009. for k2, v2 := range v {
  10010. ee.WriteMapElemKey()
  10011. e.encode(k2)
  10012. ee.WriteMapElemValue()
  10013. ee.EncodeBool(v2)
  10014. }
  10015. } else {
  10016. for k2, v2 := range v {
  10017. e.encode(k2)
  10018. ee.EncodeBool(v2)
  10019. }
  10020. }
  10021. }
  10022. ee.WriteMapEnd()
  10023. }
  10024. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  10025. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  10026. }
  10027. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  10028. if v == nil {
  10029. e.e.EncodeNil()
  10030. return
  10031. }
  10032. ee, esep := e.e, e.hh.hasElemSeparators()
  10033. ee.WriteMapStart(len(v))
  10034. if e.h.Canonical {
  10035. v2 := make([]int64, len(v))
  10036. var i uint
  10037. for k := range v {
  10038. v2[i] = int64(k)
  10039. i++
  10040. }
  10041. sort.Sort(intSlice(v2))
  10042. if esep {
  10043. for _, k2 := range v2 {
  10044. ee.WriteMapElemKey()
  10045. ee.EncodeInt(int64(int(k2)))
  10046. ee.WriteMapElemValue()
  10047. e.encode(v[int(k2)])
  10048. }
  10049. } else {
  10050. for _, k2 := range v2 {
  10051. ee.EncodeInt(int64(int(k2)))
  10052. e.encode(v[int(k2)])
  10053. }
  10054. }
  10055. } else {
  10056. if esep {
  10057. for k2, v2 := range v {
  10058. ee.WriteMapElemKey()
  10059. ee.EncodeInt(int64(k2))
  10060. ee.WriteMapElemValue()
  10061. e.encode(v2)
  10062. }
  10063. } else {
  10064. for k2, v2 := range v {
  10065. ee.EncodeInt(int64(k2))
  10066. e.encode(v2)
  10067. }
  10068. }
  10069. }
  10070. ee.WriteMapEnd()
  10071. }
  10072. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  10073. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  10074. }
  10075. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  10076. if v == nil {
  10077. e.e.EncodeNil()
  10078. return
  10079. }
  10080. ee, esep := e.e, e.hh.hasElemSeparators()
  10081. ee.WriteMapStart(len(v))
  10082. if e.h.Canonical {
  10083. v2 := make([]int64, len(v))
  10084. var i uint
  10085. for k := range v {
  10086. v2[i] = int64(k)
  10087. i++
  10088. }
  10089. sort.Sort(intSlice(v2))
  10090. if esep {
  10091. for _, k2 := range v2 {
  10092. ee.WriteMapElemKey()
  10093. ee.EncodeInt(int64(int(k2)))
  10094. ee.WriteMapElemValue()
  10095. ee.EncodeStringEnc(cUTF8, v[int(k2)])
  10096. }
  10097. } else {
  10098. for _, k2 := range v2 {
  10099. ee.EncodeInt(int64(int(k2)))
  10100. ee.EncodeStringEnc(cUTF8, v[int(k2)])
  10101. }
  10102. }
  10103. } else {
  10104. if esep {
  10105. for k2, v2 := range v {
  10106. ee.WriteMapElemKey()
  10107. ee.EncodeInt(int64(k2))
  10108. ee.WriteMapElemValue()
  10109. ee.EncodeStringEnc(cUTF8, v2)
  10110. }
  10111. } else {
  10112. for k2, v2 := range v {
  10113. ee.EncodeInt(int64(k2))
  10114. ee.EncodeStringEnc(cUTF8, v2)
  10115. }
  10116. }
  10117. }
  10118. ee.WriteMapEnd()
  10119. }
  10120. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  10121. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  10122. }
  10123. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  10124. if v == nil {
  10125. e.e.EncodeNil()
  10126. return
  10127. }
  10128. ee, esep := e.e, e.hh.hasElemSeparators()
  10129. ee.WriteMapStart(len(v))
  10130. if e.h.Canonical {
  10131. v2 := make([]int64, len(v))
  10132. var i uint
  10133. for k := range v {
  10134. v2[i] = int64(k)
  10135. i++
  10136. }
  10137. sort.Sort(intSlice(v2))
  10138. if esep {
  10139. for _, k2 := range v2 {
  10140. ee.WriteMapElemKey()
  10141. ee.EncodeInt(int64(int(k2)))
  10142. ee.WriteMapElemValue()
  10143. ee.EncodeUint(uint64(v[int(k2)]))
  10144. }
  10145. } else {
  10146. for _, k2 := range v2 {
  10147. ee.EncodeInt(int64(int(k2)))
  10148. ee.EncodeUint(uint64(v[int(k2)]))
  10149. }
  10150. }
  10151. } else {
  10152. if esep {
  10153. for k2, v2 := range v {
  10154. ee.WriteMapElemKey()
  10155. ee.EncodeInt(int64(k2))
  10156. ee.WriteMapElemValue()
  10157. ee.EncodeUint(uint64(v2))
  10158. }
  10159. } else {
  10160. for k2, v2 := range v {
  10161. ee.EncodeInt(int64(k2))
  10162. ee.EncodeUint(uint64(v2))
  10163. }
  10164. }
  10165. }
  10166. ee.WriteMapEnd()
  10167. }
  10168. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  10169. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  10170. }
  10171. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  10172. if v == nil {
  10173. e.e.EncodeNil()
  10174. return
  10175. }
  10176. ee, esep := e.e, e.hh.hasElemSeparators()
  10177. ee.WriteMapStart(len(v))
  10178. if e.h.Canonical {
  10179. v2 := make([]int64, len(v))
  10180. var i uint
  10181. for k := range v {
  10182. v2[i] = int64(k)
  10183. i++
  10184. }
  10185. sort.Sort(intSlice(v2))
  10186. if esep {
  10187. for _, k2 := range v2 {
  10188. ee.WriteMapElemKey()
  10189. ee.EncodeInt(int64(int(k2)))
  10190. ee.WriteMapElemValue()
  10191. ee.EncodeUint(uint64(v[int(k2)]))
  10192. }
  10193. } else {
  10194. for _, k2 := range v2 {
  10195. ee.EncodeInt(int64(int(k2)))
  10196. ee.EncodeUint(uint64(v[int(k2)]))
  10197. }
  10198. }
  10199. } else {
  10200. if esep {
  10201. for k2, v2 := range v {
  10202. ee.WriteMapElemKey()
  10203. ee.EncodeInt(int64(k2))
  10204. ee.WriteMapElemValue()
  10205. ee.EncodeUint(uint64(v2))
  10206. }
  10207. } else {
  10208. for k2, v2 := range v {
  10209. ee.EncodeInt(int64(k2))
  10210. ee.EncodeUint(uint64(v2))
  10211. }
  10212. }
  10213. }
  10214. ee.WriteMapEnd()
  10215. }
  10216. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  10217. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  10218. }
  10219. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  10220. if v == nil {
  10221. e.e.EncodeNil()
  10222. return
  10223. }
  10224. ee, esep := e.e, e.hh.hasElemSeparators()
  10225. ee.WriteMapStart(len(v))
  10226. if e.h.Canonical {
  10227. v2 := make([]int64, len(v))
  10228. var i uint
  10229. for k := range v {
  10230. v2[i] = int64(k)
  10231. i++
  10232. }
  10233. sort.Sort(intSlice(v2))
  10234. if esep {
  10235. for _, k2 := range v2 {
  10236. ee.WriteMapElemKey()
  10237. ee.EncodeInt(int64(int(k2)))
  10238. ee.WriteMapElemValue()
  10239. ee.EncodeUint(uint64(v[int(k2)]))
  10240. }
  10241. } else {
  10242. for _, k2 := range v2 {
  10243. ee.EncodeInt(int64(int(k2)))
  10244. ee.EncodeUint(uint64(v[int(k2)]))
  10245. }
  10246. }
  10247. } else {
  10248. if esep {
  10249. for k2, v2 := range v {
  10250. ee.WriteMapElemKey()
  10251. ee.EncodeInt(int64(k2))
  10252. ee.WriteMapElemValue()
  10253. ee.EncodeUint(uint64(v2))
  10254. }
  10255. } else {
  10256. for k2, v2 := range v {
  10257. ee.EncodeInt(int64(k2))
  10258. ee.EncodeUint(uint64(v2))
  10259. }
  10260. }
  10261. }
  10262. ee.WriteMapEnd()
  10263. }
  10264. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  10265. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  10266. }
  10267. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  10268. if v == nil {
  10269. e.e.EncodeNil()
  10270. return
  10271. }
  10272. ee, esep := e.e, e.hh.hasElemSeparators()
  10273. ee.WriteMapStart(len(v))
  10274. if e.h.Canonical {
  10275. v2 := make([]int64, len(v))
  10276. var i uint
  10277. for k := range v {
  10278. v2[i] = int64(k)
  10279. i++
  10280. }
  10281. sort.Sort(intSlice(v2))
  10282. if esep {
  10283. for _, k2 := range v2 {
  10284. ee.WriteMapElemKey()
  10285. ee.EncodeInt(int64(int(k2)))
  10286. ee.WriteMapElemValue()
  10287. ee.EncodeUint(uint64(v[int(k2)]))
  10288. }
  10289. } else {
  10290. for _, k2 := range v2 {
  10291. ee.EncodeInt(int64(int(k2)))
  10292. ee.EncodeUint(uint64(v[int(k2)]))
  10293. }
  10294. }
  10295. } else {
  10296. if esep {
  10297. for k2, v2 := range v {
  10298. ee.WriteMapElemKey()
  10299. ee.EncodeInt(int64(k2))
  10300. ee.WriteMapElemValue()
  10301. ee.EncodeUint(uint64(v2))
  10302. }
  10303. } else {
  10304. for k2, v2 := range v {
  10305. ee.EncodeInt(int64(k2))
  10306. ee.EncodeUint(uint64(v2))
  10307. }
  10308. }
  10309. }
  10310. ee.WriteMapEnd()
  10311. }
  10312. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  10313. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  10314. }
  10315. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  10316. if v == nil {
  10317. e.e.EncodeNil()
  10318. return
  10319. }
  10320. ee, esep := e.e, e.hh.hasElemSeparators()
  10321. ee.WriteMapStart(len(v))
  10322. if e.h.Canonical {
  10323. v2 := make([]int64, len(v))
  10324. var i uint
  10325. for k := range v {
  10326. v2[i] = int64(k)
  10327. i++
  10328. }
  10329. sort.Sort(intSlice(v2))
  10330. if esep {
  10331. for _, k2 := range v2 {
  10332. ee.WriteMapElemKey()
  10333. ee.EncodeInt(int64(int(k2)))
  10334. ee.WriteMapElemValue()
  10335. ee.EncodeUint(uint64(v[int(k2)]))
  10336. }
  10337. } else {
  10338. for _, k2 := range v2 {
  10339. ee.EncodeInt(int64(int(k2)))
  10340. ee.EncodeUint(uint64(v[int(k2)]))
  10341. }
  10342. }
  10343. } else {
  10344. if esep {
  10345. for k2, v2 := range v {
  10346. ee.WriteMapElemKey()
  10347. ee.EncodeInt(int64(k2))
  10348. ee.WriteMapElemValue()
  10349. ee.EncodeUint(uint64(v2))
  10350. }
  10351. } else {
  10352. for k2, v2 := range v {
  10353. ee.EncodeInt(int64(k2))
  10354. ee.EncodeUint(uint64(v2))
  10355. }
  10356. }
  10357. }
  10358. ee.WriteMapEnd()
  10359. }
  10360. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  10361. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  10362. }
  10363. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  10364. if v == nil {
  10365. e.e.EncodeNil()
  10366. return
  10367. }
  10368. ee, esep := e.e, e.hh.hasElemSeparators()
  10369. ee.WriteMapStart(len(v))
  10370. if e.h.Canonical {
  10371. v2 := make([]int64, len(v))
  10372. var i uint
  10373. for k := range v {
  10374. v2[i] = int64(k)
  10375. i++
  10376. }
  10377. sort.Sort(intSlice(v2))
  10378. if esep {
  10379. for _, k2 := range v2 {
  10380. ee.WriteMapElemKey()
  10381. ee.EncodeInt(int64(int(k2)))
  10382. ee.WriteMapElemValue()
  10383. e.encode(v[int(k2)])
  10384. }
  10385. } else {
  10386. for _, k2 := range v2 {
  10387. ee.EncodeInt(int64(int(k2)))
  10388. e.encode(v[int(k2)])
  10389. }
  10390. }
  10391. } else {
  10392. if esep {
  10393. for k2, v2 := range v {
  10394. ee.WriteMapElemKey()
  10395. ee.EncodeInt(int64(k2))
  10396. ee.WriteMapElemValue()
  10397. e.encode(v2)
  10398. }
  10399. } else {
  10400. for k2, v2 := range v {
  10401. ee.EncodeInt(int64(k2))
  10402. e.encode(v2)
  10403. }
  10404. }
  10405. }
  10406. ee.WriteMapEnd()
  10407. }
  10408. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  10409. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  10410. }
  10411. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  10412. if v == nil {
  10413. e.e.EncodeNil()
  10414. return
  10415. }
  10416. ee, esep := e.e, e.hh.hasElemSeparators()
  10417. ee.WriteMapStart(len(v))
  10418. if e.h.Canonical {
  10419. v2 := make([]int64, len(v))
  10420. var i uint
  10421. for k := range v {
  10422. v2[i] = int64(k)
  10423. i++
  10424. }
  10425. sort.Sort(intSlice(v2))
  10426. if esep {
  10427. for _, k2 := range v2 {
  10428. ee.WriteMapElemKey()
  10429. ee.EncodeInt(int64(int(k2)))
  10430. ee.WriteMapElemValue()
  10431. ee.EncodeInt(int64(v[int(k2)]))
  10432. }
  10433. } else {
  10434. for _, k2 := range v2 {
  10435. ee.EncodeInt(int64(int(k2)))
  10436. ee.EncodeInt(int64(v[int(k2)]))
  10437. }
  10438. }
  10439. } else {
  10440. if esep {
  10441. for k2, v2 := range v {
  10442. ee.WriteMapElemKey()
  10443. ee.EncodeInt(int64(k2))
  10444. ee.WriteMapElemValue()
  10445. ee.EncodeInt(int64(v2))
  10446. }
  10447. } else {
  10448. for k2, v2 := range v {
  10449. ee.EncodeInt(int64(k2))
  10450. ee.EncodeInt(int64(v2))
  10451. }
  10452. }
  10453. }
  10454. ee.WriteMapEnd()
  10455. }
  10456. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  10457. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  10458. }
  10459. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  10460. if v == nil {
  10461. e.e.EncodeNil()
  10462. return
  10463. }
  10464. ee, esep := e.e, e.hh.hasElemSeparators()
  10465. ee.WriteMapStart(len(v))
  10466. if e.h.Canonical {
  10467. v2 := make([]int64, len(v))
  10468. var i uint
  10469. for k := range v {
  10470. v2[i] = int64(k)
  10471. i++
  10472. }
  10473. sort.Sort(intSlice(v2))
  10474. if esep {
  10475. for _, k2 := range v2 {
  10476. ee.WriteMapElemKey()
  10477. ee.EncodeInt(int64(int(k2)))
  10478. ee.WriteMapElemValue()
  10479. ee.EncodeInt(int64(v[int(k2)]))
  10480. }
  10481. } else {
  10482. for _, k2 := range v2 {
  10483. ee.EncodeInt(int64(int(k2)))
  10484. ee.EncodeInt(int64(v[int(k2)]))
  10485. }
  10486. }
  10487. } else {
  10488. if esep {
  10489. for k2, v2 := range v {
  10490. ee.WriteMapElemKey()
  10491. ee.EncodeInt(int64(k2))
  10492. ee.WriteMapElemValue()
  10493. ee.EncodeInt(int64(v2))
  10494. }
  10495. } else {
  10496. for k2, v2 := range v {
  10497. ee.EncodeInt(int64(k2))
  10498. ee.EncodeInt(int64(v2))
  10499. }
  10500. }
  10501. }
  10502. ee.WriteMapEnd()
  10503. }
  10504. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  10505. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  10506. }
  10507. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  10508. if v == nil {
  10509. e.e.EncodeNil()
  10510. return
  10511. }
  10512. ee, esep := e.e, e.hh.hasElemSeparators()
  10513. ee.WriteMapStart(len(v))
  10514. if e.h.Canonical {
  10515. v2 := make([]int64, len(v))
  10516. var i uint
  10517. for k := range v {
  10518. v2[i] = int64(k)
  10519. i++
  10520. }
  10521. sort.Sort(intSlice(v2))
  10522. if esep {
  10523. for _, k2 := range v2 {
  10524. ee.WriteMapElemKey()
  10525. ee.EncodeInt(int64(int(k2)))
  10526. ee.WriteMapElemValue()
  10527. ee.EncodeInt(int64(v[int(k2)]))
  10528. }
  10529. } else {
  10530. for _, k2 := range v2 {
  10531. ee.EncodeInt(int64(int(k2)))
  10532. ee.EncodeInt(int64(v[int(k2)]))
  10533. }
  10534. }
  10535. } else {
  10536. if esep {
  10537. for k2, v2 := range v {
  10538. ee.WriteMapElemKey()
  10539. ee.EncodeInt(int64(k2))
  10540. ee.WriteMapElemValue()
  10541. ee.EncodeInt(int64(v2))
  10542. }
  10543. } else {
  10544. for k2, v2 := range v {
  10545. ee.EncodeInt(int64(k2))
  10546. ee.EncodeInt(int64(v2))
  10547. }
  10548. }
  10549. }
  10550. ee.WriteMapEnd()
  10551. }
  10552. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  10553. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  10554. }
  10555. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  10556. if v == nil {
  10557. e.e.EncodeNil()
  10558. return
  10559. }
  10560. ee, esep := e.e, e.hh.hasElemSeparators()
  10561. ee.WriteMapStart(len(v))
  10562. if e.h.Canonical {
  10563. v2 := make([]int64, len(v))
  10564. var i uint
  10565. for k := range v {
  10566. v2[i] = int64(k)
  10567. i++
  10568. }
  10569. sort.Sort(intSlice(v2))
  10570. if esep {
  10571. for _, k2 := range v2 {
  10572. ee.WriteMapElemKey()
  10573. ee.EncodeInt(int64(int(k2)))
  10574. ee.WriteMapElemValue()
  10575. ee.EncodeInt(int64(v[int(k2)]))
  10576. }
  10577. } else {
  10578. for _, k2 := range v2 {
  10579. ee.EncodeInt(int64(int(k2)))
  10580. ee.EncodeInt(int64(v[int(k2)]))
  10581. }
  10582. }
  10583. } else {
  10584. if esep {
  10585. for k2, v2 := range v {
  10586. ee.WriteMapElemKey()
  10587. ee.EncodeInt(int64(k2))
  10588. ee.WriteMapElemValue()
  10589. ee.EncodeInt(int64(v2))
  10590. }
  10591. } else {
  10592. for k2, v2 := range v {
  10593. ee.EncodeInt(int64(k2))
  10594. ee.EncodeInt(int64(v2))
  10595. }
  10596. }
  10597. }
  10598. ee.WriteMapEnd()
  10599. }
  10600. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  10601. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  10602. }
  10603. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  10604. if v == nil {
  10605. e.e.EncodeNil()
  10606. return
  10607. }
  10608. ee, esep := e.e, e.hh.hasElemSeparators()
  10609. ee.WriteMapStart(len(v))
  10610. if e.h.Canonical {
  10611. v2 := make([]int64, len(v))
  10612. var i uint
  10613. for k := range v {
  10614. v2[i] = int64(k)
  10615. i++
  10616. }
  10617. sort.Sort(intSlice(v2))
  10618. if esep {
  10619. for _, k2 := range v2 {
  10620. ee.WriteMapElemKey()
  10621. ee.EncodeInt(int64(int(k2)))
  10622. ee.WriteMapElemValue()
  10623. ee.EncodeInt(int64(v[int(k2)]))
  10624. }
  10625. } else {
  10626. for _, k2 := range v2 {
  10627. ee.EncodeInt(int64(int(k2)))
  10628. ee.EncodeInt(int64(v[int(k2)]))
  10629. }
  10630. }
  10631. } else {
  10632. if esep {
  10633. for k2, v2 := range v {
  10634. ee.WriteMapElemKey()
  10635. ee.EncodeInt(int64(k2))
  10636. ee.WriteMapElemValue()
  10637. ee.EncodeInt(int64(v2))
  10638. }
  10639. } else {
  10640. for k2, v2 := range v {
  10641. ee.EncodeInt(int64(k2))
  10642. ee.EncodeInt(int64(v2))
  10643. }
  10644. }
  10645. }
  10646. ee.WriteMapEnd()
  10647. }
  10648. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  10649. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  10650. }
  10651. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  10652. if v == nil {
  10653. e.e.EncodeNil()
  10654. return
  10655. }
  10656. ee, esep := e.e, e.hh.hasElemSeparators()
  10657. ee.WriteMapStart(len(v))
  10658. if e.h.Canonical {
  10659. v2 := make([]int64, len(v))
  10660. var i uint
  10661. for k := range v {
  10662. v2[i] = int64(k)
  10663. i++
  10664. }
  10665. sort.Sort(intSlice(v2))
  10666. if esep {
  10667. for _, k2 := range v2 {
  10668. ee.WriteMapElemKey()
  10669. ee.EncodeInt(int64(int(k2)))
  10670. ee.WriteMapElemValue()
  10671. ee.EncodeFloat32(v[int(k2)])
  10672. }
  10673. } else {
  10674. for _, k2 := range v2 {
  10675. ee.EncodeInt(int64(int(k2)))
  10676. ee.EncodeFloat32(v[int(k2)])
  10677. }
  10678. }
  10679. } else {
  10680. if esep {
  10681. for k2, v2 := range v {
  10682. ee.WriteMapElemKey()
  10683. ee.EncodeInt(int64(k2))
  10684. ee.WriteMapElemValue()
  10685. ee.EncodeFloat32(v2)
  10686. }
  10687. } else {
  10688. for k2, v2 := range v {
  10689. ee.EncodeInt(int64(k2))
  10690. ee.EncodeFloat32(v2)
  10691. }
  10692. }
  10693. }
  10694. ee.WriteMapEnd()
  10695. }
  10696. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  10697. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  10698. }
  10699. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  10700. if v == nil {
  10701. e.e.EncodeNil()
  10702. return
  10703. }
  10704. ee, esep := e.e, e.hh.hasElemSeparators()
  10705. ee.WriteMapStart(len(v))
  10706. if e.h.Canonical {
  10707. v2 := make([]int64, len(v))
  10708. var i uint
  10709. for k := range v {
  10710. v2[i] = int64(k)
  10711. i++
  10712. }
  10713. sort.Sort(intSlice(v2))
  10714. if esep {
  10715. for _, k2 := range v2 {
  10716. ee.WriteMapElemKey()
  10717. ee.EncodeInt(int64(int(k2)))
  10718. ee.WriteMapElemValue()
  10719. ee.EncodeFloat64(v[int(k2)])
  10720. }
  10721. } else {
  10722. for _, k2 := range v2 {
  10723. ee.EncodeInt(int64(int(k2)))
  10724. ee.EncodeFloat64(v[int(k2)])
  10725. }
  10726. }
  10727. } else {
  10728. if esep {
  10729. for k2, v2 := range v {
  10730. ee.WriteMapElemKey()
  10731. ee.EncodeInt(int64(k2))
  10732. ee.WriteMapElemValue()
  10733. ee.EncodeFloat64(v2)
  10734. }
  10735. } else {
  10736. for k2, v2 := range v {
  10737. ee.EncodeInt(int64(k2))
  10738. ee.EncodeFloat64(v2)
  10739. }
  10740. }
  10741. }
  10742. ee.WriteMapEnd()
  10743. }
  10744. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  10745. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  10746. }
  10747. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  10748. if v == nil {
  10749. e.e.EncodeNil()
  10750. return
  10751. }
  10752. ee, esep := e.e, e.hh.hasElemSeparators()
  10753. ee.WriteMapStart(len(v))
  10754. if e.h.Canonical {
  10755. v2 := make([]int64, len(v))
  10756. var i uint
  10757. for k := range v {
  10758. v2[i] = int64(k)
  10759. i++
  10760. }
  10761. sort.Sort(intSlice(v2))
  10762. if esep {
  10763. for _, k2 := range v2 {
  10764. ee.WriteMapElemKey()
  10765. ee.EncodeInt(int64(int(k2)))
  10766. ee.WriteMapElemValue()
  10767. ee.EncodeBool(v[int(k2)])
  10768. }
  10769. } else {
  10770. for _, k2 := range v2 {
  10771. ee.EncodeInt(int64(int(k2)))
  10772. ee.EncodeBool(v[int(k2)])
  10773. }
  10774. }
  10775. } else {
  10776. if esep {
  10777. for k2, v2 := range v {
  10778. ee.WriteMapElemKey()
  10779. ee.EncodeInt(int64(k2))
  10780. ee.WriteMapElemValue()
  10781. ee.EncodeBool(v2)
  10782. }
  10783. } else {
  10784. for k2, v2 := range v {
  10785. ee.EncodeInt(int64(k2))
  10786. ee.EncodeBool(v2)
  10787. }
  10788. }
  10789. }
  10790. ee.WriteMapEnd()
  10791. }
  10792. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  10793. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  10794. }
  10795. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  10796. if v == nil {
  10797. e.e.EncodeNil()
  10798. return
  10799. }
  10800. ee, esep := e.e, e.hh.hasElemSeparators()
  10801. ee.WriteMapStart(len(v))
  10802. if e.h.Canonical {
  10803. v2 := make([]int64, len(v))
  10804. var i uint
  10805. for k := range v {
  10806. v2[i] = int64(k)
  10807. i++
  10808. }
  10809. sort.Sort(intSlice(v2))
  10810. if esep {
  10811. for _, k2 := range v2 {
  10812. ee.WriteMapElemKey()
  10813. ee.EncodeInt(int64(int8(k2)))
  10814. ee.WriteMapElemValue()
  10815. e.encode(v[int8(k2)])
  10816. }
  10817. } else {
  10818. for _, k2 := range v2 {
  10819. ee.EncodeInt(int64(int8(k2)))
  10820. e.encode(v[int8(k2)])
  10821. }
  10822. }
  10823. } else {
  10824. if esep {
  10825. for k2, v2 := range v {
  10826. ee.WriteMapElemKey()
  10827. ee.EncodeInt(int64(k2))
  10828. ee.WriteMapElemValue()
  10829. e.encode(v2)
  10830. }
  10831. } else {
  10832. for k2, v2 := range v {
  10833. ee.EncodeInt(int64(k2))
  10834. e.encode(v2)
  10835. }
  10836. }
  10837. }
  10838. ee.WriteMapEnd()
  10839. }
  10840. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  10841. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  10842. }
  10843. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  10844. if v == nil {
  10845. e.e.EncodeNil()
  10846. return
  10847. }
  10848. ee, esep := e.e, e.hh.hasElemSeparators()
  10849. ee.WriteMapStart(len(v))
  10850. if e.h.Canonical {
  10851. v2 := make([]int64, len(v))
  10852. var i uint
  10853. for k := range v {
  10854. v2[i] = int64(k)
  10855. i++
  10856. }
  10857. sort.Sort(intSlice(v2))
  10858. if esep {
  10859. for _, k2 := range v2 {
  10860. ee.WriteMapElemKey()
  10861. ee.EncodeInt(int64(int8(k2)))
  10862. ee.WriteMapElemValue()
  10863. ee.EncodeStringEnc(cUTF8, v[int8(k2)])
  10864. }
  10865. } else {
  10866. for _, k2 := range v2 {
  10867. ee.EncodeInt(int64(int8(k2)))
  10868. ee.EncodeStringEnc(cUTF8, v[int8(k2)])
  10869. }
  10870. }
  10871. } else {
  10872. if esep {
  10873. for k2, v2 := range v {
  10874. ee.WriteMapElemKey()
  10875. ee.EncodeInt(int64(k2))
  10876. ee.WriteMapElemValue()
  10877. ee.EncodeStringEnc(cUTF8, v2)
  10878. }
  10879. } else {
  10880. for k2, v2 := range v {
  10881. ee.EncodeInt(int64(k2))
  10882. ee.EncodeStringEnc(cUTF8, v2)
  10883. }
  10884. }
  10885. }
  10886. ee.WriteMapEnd()
  10887. }
  10888. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  10889. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  10890. }
  10891. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  10892. if v == nil {
  10893. e.e.EncodeNil()
  10894. return
  10895. }
  10896. ee, esep := e.e, e.hh.hasElemSeparators()
  10897. ee.WriteMapStart(len(v))
  10898. if e.h.Canonical {
  10899. v2 := make([]int64, len(v))
  10900. var i uint
  10901. for k := range v {
  10902. v2[i] = int64(k)
  10903. i++
  10904. }
  10905. sort.Sort(intSlice(v2))
  10906. if esep {
  10907. for _, k2 := range v2 {
  10908. ee.WriteMapElemKey()
  10909. ee.EncodeInt(int64(int8(k2)))
  10910. ee.WriteMapElemValue()
  10911. ee.EncodeUint(uint64(v[int8(k2)]))
  10912. }
  10913. } else {
  10914. for _, k2 := range v2 {
  10915. ee.EncodeInt(int64(int8(k2)))
  10916. ee.EncodeUint(uint64(v[int8(k2)]))
  10917. }
  10918. }
  10919. } else {
  10920. if esep {
  10921. for k2, v2 := range v {
  10922. ee.WriteMapElemKey()
  10923. ee.EncodeInt(int64(k2))
  10924. ee.WriteMapElemValue()
  10925. ee.EncodeUint(uint64(v2))
  10926. }
  10927. } else {
  10928. for k2, v2 := range v {
  10929. ee.EncodeInt(int64(k2))
  10930. ee.EncodeUint(uint64(v2))
  10931. }
  10932. }
  10933. }
  10934. ee.WriteMapEnd()
  10935. }
  10936. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  10937. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  10938. }
  10939. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  10940. if v == nil {
  10941. e.e.EncodeNil()
  10942. return
  10943. }
  10944. ee, esep := e.e, e.hh.hasElemSeparators()
  10945. ee.WriteMapStart(len(v))
  10946. if e.h.Canonical {
  10947. v2 := make([]int64, len(v))
  10948. var i uint
  10949. for k := range v {
  10950. v2[i] = int64(k)
  10951. i++
  10952. }
  10953. sort.Sort(intSlice(v2))
  10954. if esep {
  10955. for _, k2 := range v2 {
  10956. ee.WriteMapElemKey()
  10957. ee.EncodeInt(int64(int8(k2)))
  10958. ee.WriteMapElemValue()
  10959. ee.EncodeUint(uint64(v[int8(k2)]))
  10960. }
  10961. } else {
  10962. for _, k2 := range v2 {
  10963. ee.EncodeInt(int64(int8(k2)))
  10964. ee.EncodeUint(uint64(v[int8(k2)]))
  10965. }
  10966. }
  10967. } else {
  10968. if esep {
  10969. for k2, v2 := range v {
  10970. ee.WriteMapElemKey()
  10971. ee.EncodeInt(int64(k2))
  10972. ee.WriteMapElemValue()
  10973. ee.EncodeUint(uint64(v2))
  10974. }
  10975. } else {
  10976. for k2, v2 := range v {
  10977. ee.EncodeInt(int64(k2))
  10978. ee.EncodeUint(uint64(v2))
  10979. }
  10980. }
  10981. }
  10982. ee.WriteMapEnd()
  10983. }
  10984. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  10985. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  10986. }
  10987. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  10988. if v == nil {
  10989. e.e.EncodeNil()
  10990. return
  10991. }
  10992. ee, esep := e.e, e.hh.hasElemSeparators()
  10993. ee.WriteMapStart(len(v))
  10994. if e.h.Canonical {
  10995. v2 := make([]int64, len(v))
  10996. var i uint
  10997. for k := range v {
  10998. v2[i] = int64(k)
  10999. i++
  11000. }
  11001. sort.Sort(intSlice(v2))
  11002. if esep {
  11003. for _, k2 := range v2 {
  11004. ee.WriteMapElemKey()
  11005. ee.EncodeInt(int64(int8(k2)))
  11006. ee.WriteMapElemValue()
  11007. ee.EncodeUint(uint64(v[int8(k2)]))
  11008. }
  11009. } else {
  11010. for _, k2 := range v2 {
  11011. ee.EncodeInt(int64(int8(k2)))
  11012. ee.EncodeUint(uint64(v[int8(k2)]))
  11013. }
  11014. }
  11015. } else {
  11016. if esep {
  11017. for k2, v2 := range v {
  11018. ee.WriteMapElemKey()
  11019. ee.EncodeInt(int64(k2))
  11020. ee.WriteMapElemValue()
  11021. ee.EncodeUint(uint64(v2))
  11022. }
  11023. } else {
  11024. for k2, v2 := range v {
  11025. ee.EncodeInt(int64(k2))
  11026. ee.EncodeUint(uint64(v2))
  11027. }
  11028. }
  11029. }
  11030. ee.WriteMapEnd()
  11031. }
  11032. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  11033. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  11034. }
  11035. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  11036. if v == nil {
  11037. e.e.EncodeNil()
  11038. return
  11039. }
  11040. ee, esep := e.e, e.hh.hasElemSeparators()
  11041. ee.WriteMapStart(len(v))
  11042. if e.h.Canonical {
  11043. v2 := make([]int64, len(v))
  11044. var i uint
  11045. for k := range v {
  11046. v2[i] = int64(k)
  11047. i++
  11048. }
  11049. sort.Sort(intSlice(v2))
  11050. if esep {
  11051. for _, k2 := range v2 {
  11052. ee.WriteMapElemKey()
  11053. ee.EncodeInt(int64(int8(k2)))
  11054. ee.WriteMapElemValue()
  11055. ee.EncodeUint(uint64(v[int8(k2)]))
  11056. }
  11057. } else {
  11058. for _, k2 := range v2 {
  11059. ee.EncodeInt(int64(int8(k2)))
  11060. ee.EncodeUint(uint64(v[int8(k2)]))
  11061. }
  11062. }
  11063. } else {
  11064. if esep {
  11065. for k2, v2 := range v {
  11066. ee.WriteMapElemKey()
  11067. ee.EncodeInt(int64(k2))
  11068. ee.WriteMapElemValue()
  11069. ee.EncodeUint(uint64(v2))
  11070. }
  11071. } else {
  11072. for k2, v2 := range v {
  11073. ee.EncodeInt(int64(k2))
  11074. ee.EncodeUint(uint64(v2))
  11075. }
  11076. }
  11077. }
  11078. ee.WriteMapEnd()
  11079. }
  11080. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  11081. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  11082. }
  11083. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  11084. if v == nil {
  11085. e.e.EncodeNil()
  11086. return
  11087. }
  11088. ee, esep := e.e, e.hh.hasElemSeparators()
  11089. ee.WriteMapStart(len(v))
  11090. if e.h.Canonical {
  11091. v2 := make([]int64, len(v))
  11092. var i uint
  11093. for k := range v {
  11094. v2[i] = int64(k)
  11095. i++
  11096. }
  11097. sort.Sort(intSlice(v2))
  11098. if esep {
  11099. for _, k2 := range v2 {
  11100. ee.WriteMapElemKey()
  11101. ee.EncodeInt(int64(int8(k2)))
  11102. ee.WriteMapElemValue()
  11103. ee.EncodeUint(uint64(v[int8(k2)]))
  11104. }
  11105. } else {
  11106. for _, k2 := range v2 {
  11107. ee.EncodeInt(int64(int8(k2)))
  11108. ee.EncodeUint(uint64(v[int8(k2)]))
  11109. }
  11110. }
  11111. } else {
  11112. if esep {
  11113. for k2, v2 := range v {
  11114. ee.WriteMapElemKey()
  11115. ee.EncodeInt(int64(k2))
  11116. ee.WriteMapElemValue()
  11117. ee.EncodeUint(uint64(v2))
  11118. }
  11119. } else {
  11120. for k2, v2 := range v {
  11121. ee.EncodeInt(int64(k2))
  11122. ee.EncodeUint(uint64(v2))
  11123. }
  11124. }
  11125. }
  11126. ee.WriteMapEnd()
  11127. }
  11128. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  11129. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  11130. }
  11131. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  11132. if v == nil {
  11133. e.e.EncodeNil()
  11134. return
  11135. }
  11136. ee, esep := e.e, e.hh.hasElemSeparators()
  11137. ee.WriteMapStart(len(v))
  11138. if e.h.Canonical {
  11139. v2 := make([]int64, len(v))
  11140. var i uint
  11141. for k := range v {
  11142. v2[i] = int64(k)
  11143. i++
  11144. }
  11145. sort.Sort(intSlice(v2))
  11146. if esep {
  11147. for _, k2 := range v2 {
  11148. ee.WriteMapElemKey()
  11149. ee.EncodeInt(int64(int8(k2)))
  11150. ee.WriteMapElemValue()
  11151. e.encode(v[int8(k2)])
  11152. }
  11153. } else {
  11154. for _, k2 := range v2 {
  11155. ee.EncodeInt(int64(int8(k2)))
  11156. e.encode(v[int8(k2)])
  11157. }
  11158. }
  11159. } else {
  11160. if esep {
  11161. for k2, v2 := range v {
  11162. ee.WriteMapElemKey()
  11163. ee.EncodeInt(int64(k2))
  11164. ee.WriteMapElemValue()
  11165. e.encode(v2)
  11166. }
  11167. } else {
  11168. for k2, v2 := range v {
  11169. ee.EncodeInt(int64(k2))
  11170. e.encode(v2)
  11171. }
  11172. }
  11173. }
  11174. ee.WriteMapEnd()
  11175. }
  11176. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  11177. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  11178. }
  11179. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  11180. if v == nil {
  11181. e.e.EncodeNil()
  11182. return
  11183. }
  11184. ee, esep := e.e, e.hh.hasElemSeparators()
  11185. ee.WriteMapStart(len(v))
  11186. if e.h.Canonical {
  11187. v2 := make([]int64, len(v))
  11188. var i uint
  11189. for k := range v {
  11190. v2[i] = int64(k)
  11191. i++
  11192. }
  11193. sort.Sort(intSlice(v2))
  11194. if esep {
  11195. for _, k2 := range v2 {
  11196. ee.WriteMapElemKey()
  11197. ee.EncodeInt(int64(int8(k2)))
  11198. ee.WriteMapElemValue()
  11199. ee.EncodeInt(int64(v[int8(k2)]))
  11200. }
  11201. } else {
  11202. for _, k2 := range v2 {
  11203. ee.EncodeInt(int64(int8(k2)))
  11204. ee.EncodeInt(int64(v[int8(k2)]))
  11205. }
  11206. }
  11207. } else {
  11208. if esep {
  11209. for k2, v2 := range v {
  11210. ee.WriteMapElemKey()
  11211. ee.EncodeInt(int64(k2))
  11212. ee.WriteMapElemValue()
  11213. ee.EncodeInt(int64(v2))
  11214. }
  11215. } else {
  11216. for k2, v2 := range v {
  11217. ee.EncodeInt(int64(k2))
  11218. ee.EncodeInt(int64(v2))
  11219. }
  11220. }
  11221. }
  11222. ee.WriteMapEnd()
  11223. }
  11224. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  11225. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  11226. }
  11227. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  11228. if v == nil {
  11229. e.e.EncodeNil()
  11230. return
  11231. }
  11232. ee, esep := e.e, e.hh.hasElemSeparators()
  11233. ee.WriteMapStart(len(v))
  11234. if e.h.Canonical {
  11235. v2 := make([]int64, len(v))
  11236. var i uint
  11237. for k := range v {
  11238. v2[i] = int64(k)
  11239. i++
  11240. }
  11241. sort.Sort(intSlice(v2))
  11242. if esep {
  11243. for _, k2 := range v2 {
  11244. ee.WriteMapElemKey()
  11245. ee.EncodeInt(int64(int8(k2)))
  11246. ee.WriteMapElemValue()
  11247. ee.EncodeInt(int64(v[int8(k2)]))
  11248. }
  11249. } else {
  11250. for _, k2 := range v2 {
  11251. ee.EncodeInt(int64(int8(k2)))
  11252. ee.EncodeInt(int64(v[int8(k2)]))
  11253. }
  11254. }
  11255. } else {
  11256. if esep {
  11257. for k2, v2 := range v {
  11258. ee.WriteMapElemKey()
  11259. ee.EncodeInt(int64(k2))
  11260. ee.WriteMapElemValue()
  11261. ee.EncodeInt(int64(v2))
  11262. }
  11263. } else {
  11264. for k2, v2 := range v {
  11265. ee.EncodeInt(int64(k2))
  11266. ee.EncodeInt(int64(v2))
  11267. }
  11268. }
  11269. }
  11270. ee.WriteMapEnd()
  11271. }
  11272. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  11273. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  11274. }
  11275. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  11276. if v == nil {
  11277. e.e.EncodeNil()
  11278. return
  11279. }
  11280. ee, esep := e.e, e.hh.hasElemSeparators()
  11281. ee.WriteMapStart(len(v))
  11282. if e.h.Canonical {
  11283. v2 := make([]int64, len(v))
  11284. var i uint
  11285. for k := range v {
  11286. v2[i] = int64(k)
  11287. i++
  11288. }
  11289. sort.Sort(intSlice(v2))
  11290. if esep {
  11291. for _, k2 := range v2 {
  11292. ee.WriteMapElemKey()
  11293. ee.EncodeInt(int64(int8(k2)))
  11294. ee.WriteMapElemValue()
  11295. ee.EncodeInt(int64(v[int8(k2)]))
  11296. }
  11297. } else {
  11298. for _, k2 := range v2 {
  11299. ee.EncodeInt(int64(int8(k2)))
  11300. ee.EncodeInt(int64(v[int8(k2)]))
  11301. }
  11302. }
  11303. } else {
  11304. if esep {
  11305. for k2, v2 := range v {
  11306. ee.WriteMapElemKey()
  11307. ee.EncodeInt(int64(k2))
  11308. ee.WriteMapElemValue()
  11309. ee.EncodeInt(int64(v2))
  11310. }
  11311. } else {
  11312. for k2, v2 := range v {
  11313. ee.EncodeInt(int64(k2))
  11314. ee.EncodeInt(int64(v2))
  11315. }
  11316. }
  11317. }
  11318. ee.WriteMapEnd()
  11319. }
  11320. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  11321. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  11322. }
  11323. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  11324. if v == nil {
  11325. e.e.EncodeNil()
  11326. return
  11327. }
  11328. ee, esep := e.e, e.hh.hasElemSeparators()
  11329. ee.WriteMapStart(len(v))
  11330. if e.h.Canonical {
  11331. v2 := make([]int64, len(v))
  11332. var i uint
  11333. for k := range v {
  11334. v2[i] = int64(k)
  11335. i++
  11336. }
  11337. sort.Sort(intSlice(v2))
  11338. if esep {
  11339. for _, k2 := range v2 {
  11340. ee.WriteMapElemKey()
  11341. ee.EncodeInt(int64(int8(k2)))
  11342. ee.WriteMapElemValue()
  11343. ee.EncodeInt(int64(v[int8(k2)]))
  11344. }
  11345. } else {
  11346. for _, k2 := range v2 {
  11347. ee.EncodeInt(int64(int8(k2)))
  11348. ee.EncodeInt(int64(v[int8(k2)]))
  11349. }
  11350. }
  11351. } else {
  11352. if esep {
  11353. for k2, v2 := range v {
  11354. ee.WriteMapElemKey()
  11355. ee.EncodeInt(int64(k2))
  11356. ee.WriteMapElemValue()
  11357. ee.EncodeInt(int64(v2))
  11358. }
  11359. } else {
  11360. for k2, v2 := range v {
  11361. ee.EncodeInt(int64(k2))
  11362. ee.EncodeInt(int64(v2))
  11363. }
  11364. }
  11365. }
  11366. ee.WriteMapEnd()
  11367. }
  11368. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  11369. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  11370. }
  11371. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  11372. if v == nil {
  11373. e.e.EncodeNil()
  11374. return
  11375. }
  11376. ee, esep := e.e, e.hh.hasElemSeparators()
  11377. ee.WriteMapStart(len(v))
  11378. if e.h.Canonical {
  11379. v2 := make([]int64, len(v))
  11380. var i uint
  11381. for k := range v {
  11382. v2[i] = int64(k)
  11383. i++
  11384. }
  11385. sort.Sort(intSlice(v2))
  11386. if esep {
  11387. for _, k2 := range v2 {
  11388. ee.WriteMapElemKey()
  11389. ee.EncodeInt(int64(int8(k2)))
  11390. ee.WriteMapElemValue()
  11391. ee.EncodeInt(int64(v[int8(k2)]))
  11392. }
  11393. } else {
  11394. for _, k2 := range v2 {
  11395. ee.EncodeInt(int64(int8(k2)))
  11396. ee.EncodeInt(int64(v[int8(k2)]))
  11397. }
  11398. }
  11399. } else {
  11400. if esep {
  11401. for k2, v2 := range v {
  11402. ee.WriteMapElemKey()
  11403. ee.EncodeInt(int64(k2))
  11404. ee.WriteMapElemValue()
  11405. ee.EncodeInt(int64(v2))
  11406. }
  11407. } else {
  11408. for k2, v2 := range v {
  11409. ee.EncodeInt(int64(k2))
  11410. ee.EncodeInt(int64(v2))
  11411. }
  11412. }
  11413. }
  11414. ee.WriteMapEnd()
  11415. }
  11416. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  11417. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  11418. }
  11419. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  11420. if v == nil {
  11421. e.e.EncodeNil()
  11422. return
  11423. }
  11424. ee, esep := e.e, e.hh.hasElemSeparators()
  11425. ee.WriteMapStart(len(v))
  11426. if e.h.Canonical {
  11427. v2 := make([]int64, len(v))
  11428. var i uint
  11429. for k := range v {
  11430. v2[i] = int64(k)
  11431. i++
  11432. }
  11433. sort.Sort(intSlice(v2))
  11434. if esep {
  11435. for _, k2 := range v2 {
  11436. ee.WriteMapElemKey()
  11437. ee.EncodeInt(int64(int8(k2)))
  11438. ee.WriteMapElemValue()
  11439. ee.EncodeFloat32(v[int8(k2)])
  11440. }
  11441. } else {
  11442. for _, k2 := range v2 {
  11443. ee.EncodeInt(int64(int8(k2)))
  11444. ee.EncodeFloat32(v[int8(k2)])
  11445. }
  11446. }
  11447. } else {
  11448. if esep {
  11449. for k2, v2 := range v {
  11450. ee.WriteMapElemKey()
  11451. ee.EncodeInt(int64(k2))
  11452. ee.WriteMapElemValue()
  11453. ee.EncodeFloat32(v2)
  11454. }
  11455. } else {
  11456. for k2, v2 := range v {
  11457. ee.EncodeInt(int64(k2))
  11458. ee.EncodeFloat32(v2)
  11459. }
  11460. }
  11461. }
  11462. ee.WriteMapEnd()
  11463. }
  11464. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  11465. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  11466. }
  11467. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  11468. if v == nil {
  11469. e.e.EncodeNil()
  11470. return
  11471. }
  11472. ee, esep := e.e, e.hh.hasElemSeparators()
  11473. ee.WriteMapStart(len(v))
  11474. if e.h.Canonical {
  11475. v2 := make([]int64, len(v))
  11476. var i uint
  11477. for k := range v {
  11478. v2[i] = int64(k)
  11479. i++
  11480. }
  11481. sort.Sort(intSlice(v2))
  11482. if esep {
  11483. for _, k2 := range v2 {
  11484. ee.WriteMapElemKey()
  11485. ee.EncodeInt(int64(int8(k2)))
  11486. ee.WriteMapElemValue()
  11487. ee.EncodeFloat64(v[int8(k2)])
  11488. }
  11489. } else {
  11490. for _, k2 := range v2 {
  11491. ee.EncodeInt(int64(int8(k2)))
  11492. ee.EncodeFloat64(v[int8(k2)])
  11493. }
  11494. }
  11495. } else {
  11496. if esep {
  11497. for k2, v2 := range v {
  11498. ee.WriteMapElemKey()
  11499. ee.EncodeInt(int64(k2))
  11500. ee.WriteMapElemValue()
  11501. ee.EncodeFloat64(v2)
  11502. }
  11503. } else {
  11504. for k2, v2 := range v {
  11505. ee.EncodeInt(int64(k2))
  11506. ee.EncodeFloat64(v2)
  11507. }
  11508. }
  11509. }
  11510. ee.WriteMapEnd()
  11511. }
  11512. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  11513. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  11514. }
  11515. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  11516. if v == nil {
  11517. e.e.EncodeNil()
  11518. return
  11519. }
  11520. ee, esep := e.e, e.hh.hasElemSeparators()
  11521. ee.WriteMapStart(len(v))
  11522. if e.h.Canonical {
  11523. v2 := make([]int64, len(v))
  11524. var i uint
  11525. for k := range v {
  11526. v2[i] = int64(k)
  11527. i++
  11528. }
  11529. sort.Sort(intSlice(v2))
  11530. if esep {
  11531. for _, k2 := range v2 {
  11532. ee.WriteMapElemKey()
  11533. ee.EncodeInt(int64(int8(k2)))
  11534. ee.WriteMapElemValue()
  11535. ee.EncodeBool(v[int8(k2)])
  11536. }
  11537. } else {
  11538. for _, k2 := range v2 {
  11539. ee.EncodeInt(int64(int8(k2)))
  11540. ee.EncodeBool(v[int8(k2)])
  11541. }
  11542. }
  11543. } else {
  11544. if esep {
  11545. for k2, v2 := range v {
  11546. ee.WriteMapElemKey()
  11547. ee.EncodeInt(int64(k2))
  11548. ee.WriteMapElemValue()
  11549. ee.EncodeBool(v2)
  11550. }
  11551. } else {
  11552. for k2, v2 := range v {
  11553. ee.EncodeInt(int64(k2))
  11554. ee.EncodeBool(v2)
  11555. }
  11556. }
  11557. }
  11558. ee.WriteMapEnd()
  11559. }
  11560. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  11561. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  11562. }
  11563. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  11564. if v == nil {
  11565. e.e.EncodeNil()
  11566. return
  11567. }
  11568. ee, esep := e.e, e.hh.hasElemSeparators()
  11569. ee.WriteMapStart(len(v))
  11570. if e.h.Canonical {
  11571. v2 := make([]int64, len(v))
  11572. var i uint
  11573. for k := range v {
  11574. v2[i] = int64(k)
  11575. i++
  11576. }
  11577. sort.Sort(intSlice(v2))
  11578. if esep {
  11579. for _, k2 := range v2 {
  11580. ee.WriteMapElemKey()
  11581. ee.EncodeInt(int64(int16(k2)))
  11582. ee.WriteMapElemValue()
  11583. e.encode(v[int16(k2)])
  11584. }
  11585. } else {
  11586. for _, k2 := range v2 {
  11587. ee.EncodeInt(int64(int16(k2)))
  11588. e.encode(v[int16(k2)])
  11589. }
  11590. }
  11591. } else {
  11592. if esep {
  11593. for k2, v2 := range v {
  11594. ee.WriteMapElemKey()
  11595. ee.EncodeInt(int64(k2))
  11596. ee.WriteMapElemValue()
  11597. e.encode(v2)
  11598. }
  11599. } else {
  11600. for k2, v2 := range v {
  11601. ee.EncodeInt(int64(k2))
  11602. e.encode(v2)
  11603. }
  11604. }
  11605. }
  11606. ee.WriteMapEnd()
  11607. }
  11608. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  11609. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  11610. }
  11611. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  11612. if v == nil {
  11613. e.e.EncodeNil()
  11614. return
  11615. }
  11616. ee, esep := e.e, e.hh.hasElemSeparators()
  11617. ee.WriteMapStart(len(v))
  11618. if e.h.Canonical {
  11619. v2 := make([]int64, len(v))
  11620. var i uint
  11621. for k := range v {
  11622. v2[i] = int64(k)
  11623. i++
  11624. }
  11625. sort.Sort(intSlice(v2))
  11626. if esep {
  11627. for _, k2 := range v2 {
  11628. ee.WriteMapElemKey()
  11629. ee.EncodeInt(int64(int16(k2)))
  11630. ee.WriteMapElemValue()
  11631. ee.EncodeStringEnc(cUTF8, v[int16(k2)])
  11632. }
  11633. } else {
  11634. for _, k2 := range v2 {
  11635. ee.EncodeInt(int64(int16(k2)))
  11636. ee.EncodeStringEnc(cUTF8, v[int16(k2)])
  11637. }
  11638. }
  11639. } else {
  11640. if esep {
  11641. for k2, v2 := range v {
  11642. ee.WriteMapElemKey()
  11643. ee.EncodeInt(int64(k2))
  11644. ee.WriteMapElemValue()
  11645. ee.EncodeStringEnc(cUTF8, v2)
  11646. }
  11647. } else {
  11648. for k2, v2 := range v {
  11649. ee.EncodeInt(int64(k2))
  11650. ee.EncodeStringEnc(cUTF8, v2)
  11651. }
  11652. }
  11653. }
  11654. ee.WriteMapEnd()
  11655. }
  11656. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  11657. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  11658. }
  11659. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
  11660. if v == nil {
  11661. e.e.EncodeNil()
  11662. return
  11663. }
  11664. ee, esep := e.e, e.hh.hasElemSeparators()
  11665. ee.WriteMapStart(len(v))
  11666. if e.h.Canonical {
  11667. v2 := make([]int64, len(v))
  11668. var i uint
  11669. for k := range v {
  11670. v2[i] = int64(k)
  11671. i++
  11672. }
  11673. sort.Sort(intSlice(v2))
  11674. if esep {
  11675. for _, k2 := range v2 {
  11676. ee.WriteMapElemKey()
  11677. ee.EncodeInt(int64(int16(k2)))
  11678. ee.WriteMapElemValue()
  11679. ee.EncodeUint(uint64(v[int16(k2)]))
  11680. }
  11681. } else {
  11682. for _, k2 := range v2 {
  11683. ee.EncodeInt(int64(int16(k2)))
  11684. ee.EncodeUint(uint64(v[int16(k2)]))
  11685. }
  11686. }
  11687. } else {
  11688. if esep {
  11689. for k2, v2 := range v {
  11690. ee.WriteMapElemKey()
  11691. ee.EncodeInt(int64(k2))
  11692. ee.WriteMapElemValue()
  11693. ee.EncodeUint(uint64(v2))
  11694. }
  11695. } else {
  11696. for k2, v2 := range v {
  11697. ee.EncodeInt(int64(k2))
  11698. ee.EncodeUint(uint64(v2))
  11699. }
  11700. }
  11701. }
  11702. ee.WriteMapEnd()
  11703. }
  11704. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  11705. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  11706. }
  11707. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  11708. if v == nil {
  11709. e.e.EncodeNil()
  11710. return
  11711. }
  11712. ee, esep := e.e, e.hh.hasElemSeparators()
  11713. ee.WriteMapStart(len(v))
  11714. if e.h.Canonical {
  11715. v2 := make([]int64, len(v))
  11716. var i uint
  11717. for k := range v {
  11718. v2[i] = int64(k)
  11719. i++
  11720. }
  11721. sort.Sort(intSlice(v2))
  11722. if esep {
  11723. for _, k2 := range v2 {
  11724. ee.WriteMapElemKey()
  11725. ee.EncodeInt(int64(int16(k2)))
  11726. ee.WriteMapElemValue()
  11727. ee.EncodeUint(uint64(v[int16(k2)]))
  11728. }
  11729. } else {
  11730. for _, k2 := range v2 {
  11731. ee.EncodeInt(int64(int16(k2)))
  11732. ee.EncodeUint(uint64(v[int16(k2)]))
  11733. }
  11734. }
  11735. } else {
  11736. if esep {
  11737. for k2, v2 := range v {
  11738. ee.WriteMapElemKey()
  11739. ee.EncodeInt(int64(k2))
  11740. ee.WriteMapElemValue()
  11741. ee.EncodeUint(uint64(v2))
  11742. }
  11743. } else {
  11744. for k2, v2 := range v {
  11745. ee.EncodeInt(int64(k2))
  11746. ee.EncodeUint(uint64(v2))
  11747. }
  11748. }
  11749. }
  11750. ee.WriteMapEnd()
  11751. }
  11752. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  11753. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  11754. }
  11755. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  11756. if v == nil {
  11757. e.e.EncodeNil()
  11758. return
  11759. }
  11760. ee, esep := e.e, e.hh.hasElemSeparators()
  11761. ee.WriteMapStart(len(v))
  11762. if e.h.Canonical {
  11763. v2 := make([]int64, len(v))
  11764. var i uint
  11765. for k := range v {
  11766. v2[i] = int64(k)
  11767. i++
  11768. }
  11769. sort.Sort(intSlice(v2))
  11770. if esep {
  11771. for _, k2 := range v2 {
  11772. ee.WriteMapElemKey()
  11773. ee.EncodeInt(int64(int16(k2)))
  11774. ee.WriteMapElemValue()
  11775. ee.EncodeUint(uint64(v[int16(k2)]))
  11776. }
  11777. } else {
  11778. for _, k2 := range v2 {
  11779. ee.EncodeInt(int64(int16(k2)))
  11780. ee.EncodeUint(uint64(v[int16(k2)]))
  11781. }
  11782. }
  11783. } else {
  11784. if esep {
  11785. for k2, v2 := range v {
  11786. ee.WriteMapElemKey()
  11787. ee.EncodeInt(int64(k2))
  11788. ee.WriteMapElemValue()
  11789. ee.EncodeUint(uint64(v2))
  11790. }
  11791. } else {
  11792. for k2, v2 := range v {
  11793. ee.EncodeInt(int64(k2))
  11794. ee.EncodeUint(uint64(v2))
  11795. }
  11796. }
  11797. }
  11798. ee.WriteMapEnd()
  11799. }
  11800. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  11801. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  11802. }
  11803. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  11804. if v == nil {
  11805. e.e.EncodeNil()
  11806. return
  11807. }
  11808. ee, esep := e.e, e.hh.hasElemSeparators()
  11809. ee.WriteMapStart(len(v))
  11810. if e.h.Canonical {
  11811. v2 := make([]int64, len(v))
  11812. var i uint
  11813. for k := range v {
  11814. v2[i] = int64(k)
  11815. i++
  11816. }
  11817. sort.Sort(intSlice(v2))
  11818. if esep {
  11819. for _, k2 := range v2 {
  11820. ee.WriteMapElemKey()
  11821. ee.EncodeInt(int64(int16(k2)))
  11822. ee.WriteMapElemValue()
  11823. ee.EncodeUint(uint64(v[int16(k2)]))
  11824. }
  11825. } else {
  11826. for _, k2 := range v2 {
  11827. ee.EncodeInt(int64(int16(k2)))
  11828. ee.EncodeUint(uint64(v[int16(k2)]))
  11829. }
  11830. }
  11831. } else {
  11832. if esep {
  11833. for k2, v2 := range v {
  11834. ee.WriteMapElemKey()
  11835. ee.EncodeInt(int64(k2))
  11836. ee.WriteMapElemValue()
  11837. ee.EncodeUint(uint64(v2))
  11838. }
  11839. } else {
  11840. for k2, v2 := range v {
  11841. ee.EncodeInt(int64(k2))
  11842. ee.EncodeUint(uint64(v2))
  11843. }
  11844. }
  11845. }
  11846. ee.WriteMapEnd()
  11847. }
  11848. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  11849. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  11850. }
  11851. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  11852. if v == nil {
  11853. e.e.EncodeNil()
  11854. return
  11855. }
  11856. ee, esep := e.e, e.hh.hasElemSeparators()
  11857. ee.WriteMapStart(len(v))
  11858. if e.h.Canonical {
  11859. v2 := make([]int64, len(v))
  11860. var i uint
  11861. for k := range v {
  11862. v2[i] = int64(k)
  11863. i++
  11864. }
  11865. sort.Sort(intSlice(v2))
  11866. if esep {
  11867. for _, k2 := range v2 {
  11868. ee.WriteMapElemKey()
  11869. ee.EncodeInt(int64(int16(k2)))
  11870. ee.WriteMapElemValue()
  11871. ee.EncodeUint(uint64(v[int16(k2)]))
  11872. }
  11873. } else {
  11874. for _, k2 := range v2 {
  11875. ee.EncodeInt(int64(int16(k2)))
  11876. ee.EncodeUint(uint64(v[int16(k2)]))
  11877. }
  11878. }
  11879. } else {
  11880. if esep {
  11881. for k2, v2 := range v {
  11882. ee.WriteMapElemKey()
  11883. ee.EncodeInt(int64(k2))
  11884. ee.WriteMapElemValue()
  11885. ee.EncodeUint(uint64(v2))
  11886. }
  11887. } else {
  11888. for k2, v2 := range v {
  11889. ee.EncodeInt(int64(k2))
  11890. ee.EncodeUint(uint64(v2))
  11891. }
  11892. }
  11893. }
  11894. ee.WriteMapEnd()
  11895. }
  11896. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  11897. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  11898. }
  11899. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  11900. if v == nil {
  11901. e.e.EncodeNil()
  11902. return
  11903. }
  11904. ee, esep := e.e, e.hh.hasElemSeparators()
  11905. ee.WriteMapStart(len(v))
  11906. if e.h.Canonical {
  11907. v2 := make([]int64, len(v))
  11908. var i uint
  11909. for k := range v {
  11910. v2[i] = int64(k)
  11911. i++
  11912. }
  11913. sort.Sort(intSlice(v2))
  11914. if esep {
  11915. for _, k2 := range v2 {
  11916. ee.WriteMapElemKey()
  11917. ee.EncodeInt(int64(int16(k2)))
  11918. ee.WriteMapElemValue()
  11919. e.encode(v[int16(k2)])
  11920. }
  11921. } else {
  11922. for _, k2 := range v2 {
  11923. ee.EncodeInt(int64(int16(k2)))
  11924. e.encode(v[int16(k2)])
  11925. }
  11926. }
  11927. } else {
  11928. if esep {
  11929. for k2, v2 := range v {
  11930. ee.WriteMapElemKey()
  11931. ee.EncodeInt(int64(k2))
  11932. ee.WriteMapElemValue()
  11933. e.encode(v2)
  11934. }
  11935. } else {
  11936. for k2, v2 := range v {
  11937. ee.EncodeInt(int64(k2))
  11938. e.encode(v2)
  11939. }
  11940. }
  11941. }
  11942. ee.WriteMapEnd()
  11943. }
  11944. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  11945. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  11946. }
  11947. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  11948. if v == nil {
  11949. e.e.EncodeNil()
  11950. return
  11951. }
  11952. ee, esep := e.e, e.hh.hasElemSeparators()
  11953. ee.WriteMapStart(len(v))
  11954. if e.h.Canonical {
  11955. v2 := make([]int64, len(v))
  11956. var i uint
  11957. for k := range v {
  11958. v2[i] = int64(k)
  11959. i++
  11960. }
  11961. sort.Sort(intSlice(v2))
  11962. if esep {
  11963. for _, k2 := range v2 {
  11964. ee.WriteMapElemKey()
  11965. ee.EncodeInt(int64(int16(k2)))
  11966. ee.WriteMapElemValue()
  11967. ee.EncodeInt(int64(v[int16(k2)]))
  11968. }
  11969. } else {
  11970. for _, k2 := range v2 {
  11971. ee.EncodeInt(int64(int16(k2)))
  11972. ee.EncodeInt(int64(v[int16(k2)]))
  11973. }
  11974. }
  11975. } else {
  11976. if esep {
  11977. for k2, v2 := range v {
  11978. ee.WriteMapElemKey()
  11979. ee.EncodeInt(int64(k2))
  11980. ee.WriteMapElemValue()
  11981. ee.EncodeInt(int64(v2))
  11982. }
  11983. } else {
  11984. for k2, v2 := range v {
  11985. ee.EncodeInt(int64(k2))
  11986. ee.EncodeInt(int64(v2))
  11987. }
  11988. }
  11989. }
  11990. ee.WriteMapEnd()
  11991. }
  11992. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  11993. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  11994. }
  11995. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  11996. if v == nil {
  11997. e.e.EncodeNil()
  11998. return
  11999. }
  12000. ee, esep := e.e, e.hh.hasElemSeparators()
  12001. ee.WriteMapStart(len(v))
  12002. if e.h.Canonical {
  12003. v2 := make([]int64, len(v))
  12004. var i uint
  12005. for k := range v {
  12006. v2[i] = int64(k)
  12007. i++
  12008. }
  12009. sort.Sort(intSlice(v2))
  12010. if esep {
  12011. for _, k2 := range v2 {
  12012. ee.WriteMapElemKey()
  12013. ee.EncodeInt(int64(int16(k2)))
  12014. ee.WriteMapElemValue()
  12015. ee.EncodeInt(int64(v[int16(k2)]))
  12016. }
  12017. } else {
  12018. for _, k2 := range v2 {
  12019. ee.EncodeInt(int64(int16(k2)))
  12020. ee.EncodeInt(int64(v[int16(k2)]))
  12021. }
  12022. }
  12023. } else {
  12024. if esep {
  12025. for k2, v2 := range v {
  12026. ee.WriteMapElemKey()
  12027. ee.EncodeInt(int64(k2))
  12028. ee.WriteMapElemValue()
  12029. ee.EncodeInt(int64(v2))
  12030. }
  12031. } else {
  12032. for k2, v2 := range v {
  12033. ee.EncodeInt(int64(k2))
  12034. ee.EncodeInt(int64(v2))
  12035. }
  12036. }
  12037. }
  12038. ee.WriteMapEnd()
  12039. }
  12040. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  12041. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  12042. }
  12043. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
  12044. if v == nil {
  12045. e.e.EncodeNil()
  12046. return
  12047. }
  12048. ee, esep := e.e, e.hh.hasElemSeparators()
  12049. ee.WriteMapStart(len(v))
  12050. if e.h.Canonical {
  12051. v2 := make([]int64, len(v))
  12052. var i uint
  12053. for k := range v {
  12054. v2[i] = int64(k)
  12055. i++
  12056. }
  12057. sort.Sort(intSlice(v2))
  12058. if esep {
  12059. for _, k2 := range v2 {
  12060. ee.WriteMapElemKey()
  12061. ee.EncodeInt(int64(int16(k2)))
  12062. ee.WriteMapElemValue()
  12063. ee.EncodeInt(int64(v[int16(k2)]))
  12064. }
  12065. } else {
  12066. for _, k2 := range v2 {
  12067. ee.EncodeInt(int64(int16(k2)))
  12068. ee.EncodeInt(int64(v[int16(k2)]))
  12069. }
  12070. }
  12071. } else {
  12072. if esep {
  12073. for k2, v2 := range v {
  12074. ee.WriteMapElemKey()
  12075. ee.EncodeInt(int64(k2))
  12076. ee.WriteMapElemValue()
  12077. ee.EncodeInt(int64(v2))
  12078. }
  12079. } else {
  12080. for k2, v2 := range v {
  12081. ee.EncodeInt(int64(k2))
  12082. ee.EncodeInt(int64(v2))
  12083. }
  12084. }
  12085. }
  12086. ee.WriteMapEnd()
  12087. }
  12088. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  12089. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  12090. }
  12091. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  12092. if v == nil {
  12093. e.e.EncodeNil()
  12094. return
  12095. }
  12096. ee, esep := e.e, e.hh.hasElemSeparators()
  12097. ee.WriteMapStart(len(v))
  12098. if e.h.Canonical {
  12099. v2 := make([]int64, len(v))
  12100. var i uint
  12101. for k := range v {
  12102. v2[i] = int64(k)
  12103. i++
  12104. }
  12105. sort.Sort(intSlice(v2))
  12106. if esep {
  12107. for _, k2 := range v2 {
  12108. ee.WriteMapElemKey()
  12109. ee.EncodeInt(int64(int16(k2)))
  12110. ee.WriteMapElemValue()
  12111. ee.EncodeInt(int64(v[int16(k2)]))
  12112. }
  12113. } else {
  12114. for _, k2 := range v2 {
  12115. ee.EncodeInt(int64(int16(k2)))
  12116. ee.EncodeInt(int64(v[int16(k2)]))
  12117. }
  12118. }
  12119. } else {
  12120. if esep {
  12121. for k2, v2 := range v {
  12122. ee.WriteMapElemKey()
  12123. ee.EncodeInt(int64(k2))
  12124. ee.WriteMapElemValue()
  12125. ee.EncodeInt(int64(v2))
  12126. }
  12127. } else {
  12128. for k2, v2 := range v {
  12129. ee.EncodeInt(int64(k2))
  12130. ee.EncodeInt(int64(v2))
  12131. }
  12132. }
  12133. }
  12134. ee.WriteMapEnd()
  12135. }
  12136. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  12137. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  12138. }
  12139. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  12140. if v == nil {
  12141. e.e.EncodeNil()
  12142. return
  12143. }
  12144. ee, esep := e.e, e.hh.hasElemSeparators()
  12145. ee.WriteMapStart(len(v))
  12146. if e.h.Canonical {
  12147. v2 := make([]int64, len(v))
  12148. var i uint
  12149. for k := range v {
  12150. v2[i] = int64(k)
  12151. i++
  12152. }
  12153. sort.Sort(intSlice(v2))
  12154. if esep {
  12155. for _, k2 := range v2 {
  12156. ee.WriteMapElemKey()
  12157. ee.EncodeInt(int64(int16(k2)))
  12158. ee.WriteMapElemValue()
  12159. ee.EncodeInt(int64(v[int16(k2)]))
  12160. }
  12161. } else {
  12162. for _, k2 := range v2 {
  12163. ee.EncodeInt(int64(int16(k2)))
  12164. ee.EncodeInt(int64(v[int16(k2)]))
  12165. }
  12166. }
  12167. } else {
  12168. if esep {
  12169. for k2, v2 := range v {
  12170. ee.WriteMapElemKey()
  12171. ee.EncodeInt(int64(k2))
  12172. ee.WriteMapElemValue()
  12173. ee.EncodeInt(int64(v2))
  12174. }
  12175. } else {
  12176. for k2, v2 := range v {
  12177. ee.EncodeInt(int64(k2))
  12178. ee.EncodeInt(int64(v2))
  12179. }
  12180. }
  12181. }
  12182. ee.WriteMapEnd()
  12183. }
  12184. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  12185. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  12186. }
  12187. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  12188. if v == nil {
  12189. e.e.EncodeNil()
  12190. return
  12191. }
  12192. ee, esep := e.e, e.hh.hasElemSeparators()
  12193. ee.WriteMapStart(len(v))
  12194. if e.h.Canonical {
  12195. v2 := make([]int64, len(v))
  12196. var i uint
  12197. for k := range v {
  12198. v2[i] = int64(k)
  12199. i++
  12200. }
  12201. sort.Sort(intSlice(v2))
  12202. if esep {
  12203. for _, k2 := range v2 {
  12204. ee.WriteMapElemKey()
  12205. ee.EncodeInt(int64(int16(k2)))
  12206. ee.WriteMapElemValue()
  12207. ee.EncodeFloat32(v[int16(k2)])
  12208. }
  12209. } else {
  12210. for _, k2 := range v2 {
  12211. ee.EncodeInt(int64(int16(k2)))
  12212. ee.EncodeFloat32(v[int16(k2)])
  12213. }
  12214. }
  12215. } else {
  12216. if esep {
  12217. for k2, v2 := range v {
  12218. ee.WriteMapElemKey()
  12219. ee.EncodeInt(int64(k2))
  12220. ee.WriteMapElemValue()
  12221. ee.EncodeFloat32(v2)
  12222. }
  12223. } else {
  12224. for k2, v2 := range v {
  12225. ee.EncodeInt(int64(k2))
  12226. ee.EncodeFloat32(v2)
  12227. }
  12228. }
  12229. }
  12230. ee.WriteMapEnd()
  12231. }
  12232. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  12233. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  12234. }
  12235. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  12236. if v == nil {
  12237. e.e.EncodeNil()
  12238. return
  12239. }
  12240. ee, esep := e.e, e.hh.hasElemSeparators()
  12241. ee.WriteMapStart(len(v))
  12242. if e.h.Canonical {
  12243. v2 := make([]int64, len(v))
  12244. var i uint
  12245. for k := range v {
  12246. v2[i] = int64(k)
  12247. i++
  12248. }
  12249. sort.Sort(intSlice(v2))
  12250. if esep {
  12251. for _, k2 := range v2 {
  12252. ee.WriteMapElemKey()
  12253. ee.EncodeInt(int64(int16(k2)))
  12254. ee.WriteMapElemValue()
  12255. ee.EncodeFloat64(v[int16(k2)])
  12256. }
  12257. } else {
  12258. for _, k2 := range v2 {
  12259. ee.EncodeInt(int64(int16(k2)))
  12260. ee.EncodeFloat64(v[int16(k2)])
  12261. }
  12262. }
  12263. } else {
  12264. if esep {
  12265. for k2, v2 := range v {
  12266. ee.WriteMapElemKey()
  12267. ee.EncodeInt(int64(k2))
  12268. ee.WriteMapElemValue()
  12269. ee.EncodeFloat64(v2)
  12270. }
  12271. } else {
  12272. for k2, v2 := range v {
  12273. ee.EncodeInt(int64(k2))
  12274. ee.EncodeFloat64(v2)
  12275. }
  12276. }
  12277. }
  12278. ee.WriteMapEnd()
  12279. }
  12280. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  12281. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  12282. }
  12283. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  12284. if v == nil {
  12285. e.e.EncodeNil()
  12286. return
  12287. }
  12288. ee, esep := e.e, e.hh.hasElemSeparators()
  12289. ee.WriteMapStart(len(v))
  12290. if e.h.Canonical {
  12291. v2 := make([]int64, len(v))
  12292. var i uint
  12293. for k := range v {
  12294. v2[i] = int64(k)
  12295. i++
  12296. }
  12297. sort.Sort(intSlice(v2))
  12298. if esep {
  12299. for _, k2 := range v2 {
  12300. ee.WriteMapElemKey()
  12301. ee.EncodeInt(int64(int16(k2)))
  12302. ee.WriteMapElemValue()
  12303. ee.EncodeBool(v[int16(k2)])
  12304. }
  12305. } else {
  12306. for _, k2 := range v2 {
  12307. ee.EncodeInt(int64(int16(k2)))
  12308. ee.EncodeBool(v[int16(k2)])
  12309. }
  12310. }
  12311. } else {
  12312. if esep {
  12313. for k2, v2 := range v {
  12314. ee.WriteMapElemKey()
  12315. ee.EncodeInt(int64(k2))
  12316. ee.WriteMapElemValue()
  12317. ee.EncodeBool(v2)
  12318. }
  12319. } else {
  12320. for k2, v2 := range v {
  12321. ee.EncodeInt(int64(k2))
  12322. ee.EncodeBool(v2)
  12323. }
  12324. }
  12325. }
  12326. ee.WriteMapEnd()
  12327. }
  12328. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  12329. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  12330. }
  12331. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  12332. if v == nil {
  12333. e.e.EncodeNil()
  12334. return
  12335. }
  12336. ee, esep := e.e, e.hh.hasElemSeparators()
  12337. ee.WriteMapStart(len(v))
  12338. if e.h.Canonical {
  12339. v2 := make([]int64, len(v))
  12340. var i uint
  12341. for k := range v {
  12342. v2[i] = int64(k)
  12343. i++
  12344. }
  12345. sort.Sort(intSlice(v2))
  12346. if esep {
  12347. for _, k2 := range v2 {
  12348. ee.WriteMapElemKey()
  12349. ee.EncodeInt(int64(int32(k2)))
  12350. ee.WriteMapElemValue()
  12351. e.encode(v[int32(k2)])
  12352. }
  12353. } else {
  12354. for _, k2 := range v2 {
  12355. ee.EncodeInt(int64(int32(k2)))
  12356. e.encode(v[int32(k2)])
  12357. }
  12358. }
  12359. } else {
  12360. if esep {
  12361. for k2, v2 := range v {
  12362. ee.WriteMapElemKey()
  12363. ee.EncodeInt(int64(k2))
  12364. ee.WriteMapElemValue()
  12365. e.encode(v2)
  12366. }
  12367. } else {
  12368. for k2, v2 := range v {
  12369. ee.EncodeInt(int64(k2))
  12370. e.encode(v2)
  12371. }
  12372. }
  12373. }
  12374. ee.WriteMapEnd()
  12375. }
  12376. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  12377. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  12378. }
  12379. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  12380. if v == nil {
  12381. e.e.EncodeNil()
  12382. return
  12383. }
  12384. ee, esep := e.e, e.hh.hasElemSeparators()
  12385. ee.WriteMapStart(len(v))
  12386. if e.h.Canonical {
  12387. v2 := make([]int64, len(v))
  12388. var i uint
  12389. for k := range v {
  12390. v2[i] = int64(k)
  12391. i++
  12392. }
  12393. sort.Sort(intSlice(v2))
  12394. if esep {
  12395. for _, k2 := range v2 {
  12396. ee.WriteMapElemKey()
  12397. ee.EncodeInt(int64(int32(k2)))
  12398. ee.WriteMapElemValue()
  12399. ee.EncodeStringEnc(cUTF8, v[int32(k2)])
  12400. }
  12401. } else {
  12402. for _, k2 := range v2 {
  12403. ee.EncodeInt(int64(int32(k2)))
  12404. ee.EncodeStringEnc(cUTF8, v[int32(k2)])
  12405. }
  12406. }
  12407. } else {
  12408. if esep {
  12409. for k2, v2 := range v {
  12410. ee.WriteMapElemKey()
  12411. ee.EncodeInt(int64(k2))
  12412. ee.WriteMapElemValue()
  12413. ee.EncodeStringEnc(cUTF8, v2)
  12414. }
  12415. } else {
  12416. for k2, v2 := range v {
  12417. ee.EncodeInt(int64(k2))
  12418. ee.EncodeStringEnc(cUTF8, v2)
  12419. }
  12420. }
  12421. }
  12422. ee.WriteMapEnd()
  12423. }
  12424. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  12425. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  12426. }
  12427. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  12428. if v == nil {
  12429. e.e.EncodeNil()
  12430. return
  12431. }
  12432. ee, esep := e.e, e.hh.hasElemSeparators()
  12433. ee.WriteMapStart(len(v))
  12434. if e.h.Canonical {
  12435. v2 := make([]int64, len(v))
  12436. var i uint
  12437. for k := range v {
  12438. v2[i] = int64(k)
  12439. i++
  12440. }
  12441. sort.Sort(intSlice(v2))
  12442. if esep {
  12443. for _, k2 := range v2 {
  12444. ee.WriteMapElemKey()
  12445. ee.EncodeInt(int64(int32(k2)))
  12446. ee.WriteMapElemValue()
  12447. ee.EncodeUint(uint64(v[int32(k2)]))
  12448. }
  12449. } else {
  12450. for _, k2 := range v2 {
  12451. ee.EncodeInt(int64(int32(k2)))
  12452. ee.EncodeUint(uint64(v[int32(k2)]))
  12453. }
  12454. }
  12455. } else {
  12456. if esep {
  12457. for k2, v2 := range v {
  12458. ee.WriteMapElemKey()
  12459. ee.EncodeInt(int64(k2))
  12460. ee.WriteMapElemValue()
  12461. ee.EncodeUint(uint64(v2))
  12462. }
  12463. } else {
  12464. for k2, v2 := range v {
  12465. ee.EncodeInt(int64(k2))
  12466. ee.EncodeUint(uint64(v2))
  12467. }
  12468. }
  12469. }
  12470. ee.WriteMapEnd()
  12471. }
  12472. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  12473. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  12474. }
  12475. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  12476. if v == nil {
  12477. e.e.EncodeNil()
  12478. return
  12479. }
  12480. ee, esep := e.e, e.hh.hasElemSeparators()
  12481. ee.WriteMapStart(len(v))
  12482. if e.h.Canonical {
  12483. v2 := make([]int64, len(v))
  12484. var i uint
  12485. for k := range v {
  12486. v2[i] = int64(k)
  12487. i++
  12488. }
  12489. sort.Sort(intSlice(v2))
  12490. if esep {
  12491. for _, k2 := range v2 {
  12492. ee.WriteMapElemKey()
  12493. ee.EncodeInt(int64(int32(k2)))
  12494. ee.WriteMapElemValue()
  12495. ee.EncodeUint(uint64(v[int32(k2)]))
  12496. }
  12497. } else {
  12498. for _, k2 := range v2 {
  12499. ee.EncodeInt(int64(int32(k2)))
  12500. ee.EncodeUint(uint64(v[int32(k2)]))
  12501. }
  12502. }
  12503. } else {
  12504. if esep {
  12505. for k2, v2 := range v {
  12506. ee.WriteMapElemKey()
  12507. ee.EncodeInt(int64(k2))
  12508. ee.WriteMapElemValue()
  12509. ee.EncodeUint(uint64(v2))
  12510. }
  12511. } else {
  12512. for k2, v2 := range v {
  12513. ee.EncodeInt(int64(k2))
  12514. ee.EncodeUint(uint64(v2))
  12515. }
  12516. }
  12517. }
  12518. ee.WriteMapEnd()
  12519. }
  12520. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  12521. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  12522. }
  12523. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  12524. if v == nil {
  12525. e.e.EncodeNil()
  12526. return
  12527. }
  12528. ee, esep := e.e, e.hh.hasElemSeparators()
  12529. ee.WriteMapStart(len(v))
  12530. if e.h.Canonical {
  12531. v2 := make([]int64, len(v))
  12532. var i uint
  12533. for k := range v {
  12534. v2[i] = int64(k)
  12535. i++
  12536. }
  12537. sort.Sort(intSlice(v2))
  12538. if esep {
  12539. for _, k2 := range v2 {
  12540. ee.WriteMapElemKey()
  12541. ee.EncodeInt(int64(int32(k2)))
  12542. ee.WriteMapElemValue()
  12543. ee.EncodeUint(uint64(v[int32(k2)]))
  12544. }
  12545. } else {
  12546. for _, k2 := range v2 {
  12547. ee.EncodeInt(int64(int32(k2)))
  12548. ee.EncodeUint(uint64(v[int32(k2)]))
  12549. }
  12550. }
  12551. } else {
  12552. if esep {
  12553. for k2, v2 := range v {
  12554. ee.WriteMapElemKey()
  12555. ee.EncodeInt(int64(k2))
  12556. ee.WriteMapElemValue()
  12557. ee.EncodeUint(uint64(v2))
  12558. }
  12559. } else {
  12560. for k2, v2 := range v {
  12561. ee.EncodeInt(int64(k2))
  12562. ee.EncodeUint(uint64(v2))
  12563. }
  12564. }
  12565. }
  12566. ee.WriteMapEnd()
  12567. }
  12568. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  12569. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  12570. }
  12571. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  12572. if v == nil {
  12573. e.e.EncodeNil()
  12574. return
  12575. }
  12576. ee, esep := e.e, e.hh.hasElemSeparators()
  12577. ee.WriteMapStart(len(v))
  12578. if e.h.Canonical {
  12579. v2 := make([]int64, len(v))
  12580. var i uint
  12581. for k := range v {
  12582. v2[i] = int64(k)
  12583. i++
  12584. }
  12585. sort.Sort(intSlice(v2))
  12586. if esep {
  12587. for _, k2 := range v2 {
  12588. ee.WriteMapElemKey()
  12589. ee.EncodeInt(int64(int32(k2)))
  12590. ee.WriteMapElemValue()
  12591. ee.EncodeUint(uint64(v[int32(k2)]))
  12592. }
  12593. } else {
  12594. for _, k2 := range v2 {
  12595. ee.EncodeInt(int64(int32(k2)))
  12596. ee.EncodeUint(uint64(v[int32(k2)]))
  12597. }
  12598. }
  12599. } else {
  12600. if esep {
  12601. for k2, v2 := range v {
  12602. ee.WriteMapElemKey()
  12603. ee.EncodeInt(int64(k2))
  12604. ee.WriteMapElemValue()
  12605. ee.EncodeUint(uint64(v2))
  12606. }
  12607. } else {
  12608. for k2, v2 := range v {
  12609. ee.EncodeInt(int64(k2))
  12610. ee.EncodeUint(uint64(v2))
  12611. }
  12612. }
  12613. }
  12614. ee.WriteMapEnd()
  12615. }
  12616. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  12617. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  12618. }
  12619. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  12620. if v == nil {
  12621. e.e.EncodeNil()
  12622. return
  12623. }
  12624. ee, esep := e.e, e.hh.hasElemSeparators()
  12625. ee.WriteMapStart(len(v))
  12626. if e.h.Canonical {
  12627. v2 := make([]int64, len(v))
  12628. var i uint
  12629. for k := range v {
  12630. v2[i] = int64(k)
  12631. i++
  12632. }
  12633. sort.Sort(intSlice(v2))
  12634. if esep {
  12635. for _, k2 := range v2 {
  12636. ee.WriteMapElemKey()
  12637. ee.EncodeInt(int64(int32(k2)))
  12638. ee.WriteMapElemValue()
  12639. ee.EncodeUint(uint64(v[int32(k2)]))
  12640. }
  12641. } else {
  12642. for _, k2 := range v2 {
  12643. ee.EncodeInt(int64(int32(k2)))
  12644. ee.EncodeUint(uint64(v[int32(k2)]))
  12645. }
  12646. }
  12647. } else {
  12648. if esep {
  12649. for k2, v2 := range v {
  12650. ee.WriteMapElemKey()
  12651. ee.EncodeInt(int64(k2))
  12652. ee.WriteMapElemValue()
  12653. ee.EncodeUint(uint64(v2))
  12654. }
  12655. } else {
  12656. for k2, v2 := range v {
  12657. ee.EncodeInt(int64(k2))
  12658. ee.EncodeUint(uint64(v2))
  12659. }
  12660. }
  12661. }
  12662. ee.WriteMapEnd()
  12663. }
  12664. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  12665. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  12666. }
  12667. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  12668. if v == nil {
  12669. e.e.EncodeNil()
  12670. return
  12671. }
  12672. ee, esep := e.e, e.hh.hasElemSeparators()
  12673. ee.WriteMapStart(len(v))
  12674. if e.h.Canonical {
  12675. v2 := make([]int64, len(v))
  12676. var i uint
  12677. for k := range v {
  12678. v2[i] = int64(k)
  12679. i++
  12680. }
  12681. sort.Sort(intSlice(v2))
  12682. if esep {
  12683. for _, k2 := range v2 {
  12684. ee.WriteMapElemKey()
  12685. ee.EncodeInt(int64(int32(k2)))
  12686. ee.WriteMapElemValue()
  12687. e.encode(v[int32(k2)])
  12688. }
  12689. } else {
  12690. for _, k2 := range v2 {
  12691. ee.EncodeInt(int64(int32(k2)))
  12692. e.encode(v[int32(k2)])
  12693. }
  12694. }
  12695. } else {
  12696. if esep {
  12697. for k2, v2 := range v {
  12698. ee.WriteMapElemKey()
  12699. ee.EncodeInt(int64(k2))
  12700. ee.WriteMapElemValue()
  12701. e.encode(v2)
  12702. }
  12703. } else {
  12704. for k2, v2 := range v {
  12705. ee.EncodeInt(int64(k2))
  12706. e.encode(v2)
  12707. }
  12708. }
  12709. }
  12710. ee.WriteMapEnd()
  12711. }
  12712. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  12713. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  12714. }
  12715. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  12716. if v == nil {
  12717. e.e.EncodeNil()
  12718. return
  12719. }
  12720. ee, esep := e.e, e.hh.hasElemSeparators()
  12721. ee.WriteMapStart(len(v))
  12722. if e.h.Canonical {
  12723. v2 := make([]int64, len(v))
  12724. var i uint
  12725. for k := range v {
  12726. v2[i] = int64(k)
  12727. i++
  12728. }
  12729. sort.Sort(intSlice(v2))
  12730. if esep {
  12731. for _, k2 := range v2 {
  12732. ee.WriteMapElemKey()
  12733. ee.EncodeInt(int64(int32(k2)))
  12734. ee.WriteMapElemValue()
  12735. ee.EncodeInt(int64(v[int32(k2)]))
  12736. }
  12737. } else {
  12738. for _, k2 := range v2 {
  12739. ee.EncodeInt(int64(int32(k2)))
  12740. ee.EncodeInt(int64(v[int32(k2)]))
  12741. }
  12742. }
  12743. } else {
  12744. if esep {
  12745. for k2, v2 := range v {
  12746. ee.WriteMapElemKey()
  12747. ee.EncodeInt(int64(k2))
  12748. ee.WriteMapElemValue()
  12749. ee.EncodeInt(int64(v2))
  12750. }
  12751. } else {
  12752. for k2, v2 := range v {
  12753. ee.EncodeInt(int64(k2))
  12754. ee.EncodeInt(int64(v2))
  12755. }
  12756. }
  12757. }
  12758. ee.WriteMapEnd()
  12759. }
  12760. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  12761. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  12762. }
  12763. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  12764. if v == nil {
  12765. e.e.EncodeNil()
  12766. return
  12767. }
  12768. ee, esep := e.e, e.hh.hasElemSeparators()
  12769. ee.WriteMapStart(len(v))
  12770. if e.h.Canonical {
  12771. v2 := make([]int64, len(v))
  12772. var i uint
  12773. for k := range v {
  12774. v2[i] = int64(k)
  12775. i++
  12776. }
  12777. sort.Sort(intSlice(v2))
  12778. if esep {
  12779. for _, k2 := range v2 {
  12780. ee.WriteMapElemKey()
  12781. ee.EncodeInt(int64(int32(k2)))
  12782. ee.WriteMapElemValue()
  12783. ee.EncodeInt(int64(v[int32(k2)]))
  12784. }
  12785. } else {
  12786. for _, k2 := range v2 {
  12787. ee.EncodeInt(int64(int32(k2)))
  12788. ee.EncodeInt(int64(v[int32(k2)]))
  12789. }
  12790. }
  12791. } else {
  12792. if esep {
  12793. for k2, v2 := range v {
  12794. ee.WriteMapElemKey()
  12795. ee.EncodeInt(int64(k2))
  12796. ee.WriteMapElemValue()
  12797. ee.EncodeInt(int64(v2))
  12798. }
  12799. } else {
  12800. for k2, v2 := range v {
  12801. ee.EncodeInt(int64(k2))
  12802. ee.EncodeInt(int64(v2))
  12803. }
  12804. }
  12805. }
  12806. ee.WriteMapEnd()
  12807. }
  12808. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  12809. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  12810. }
  12811. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  12812. if v == nil {
  12813. e.e.EncodeNil()
  12814. return
  12815. }
  12816. ee, esep := e.e, e.hh.hasElemSeparators()
  12817. ee.WriteMapStart(len(v))
  12818. if e.h.Canonical {
  12819. v2 := make([]int64, len(v))
  12820. var i uint
  12821. for k := range v {
  12822. v2[i] = int64(k)
  12823. i++
  12824. }
  12825. sort.Sort(intSlice(v2))
  12826. if esep {
  12827. for _, k2 := range v2 {
  12828. ee.WriteMapElemKey()
  12829. ee.EncodeInt(int64(int32(k2)))
  12830. ee.WriteMapElemValue()
  12831. ee.EncodeInt(int64(v[int32(k2)]))
  12832. }
  12833. } else {
  12834. for _, k2 := range v2 {
  12835. ee.EncodeInt(int64(int32(k2)))
  12836. ee.EncodeInt(int64(v[int32(k2)]))
  12837. }
  12838. }
  12839. } else {
  12840. if esep {
  12841. for k2, v2 := range v {
  12842. ee.WriteMapElemKey()
  12843. ee.EncodeInt(int64(k2))
  12844. ee.WriteMapElemValue()
  12845. ee.EncodeInt(int64(v2))
  12846. }
  12847. } else {
  12848. for k2, v2 := range v {
  12849. ee.EncodeInt(int64(k2))
  12850. ee.EncodeInt(int64(v2))
  12851. }
  12852. }
  12853. }
  12854. ee.WriteMapEnd()
  12855. }
  12856. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  12857. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  12858. }
  12859. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  12860. if v == nil {
  12861. e.e.EncodeNil()
  12862. return
  12863. }
  12864. ee, esep := e.e, e.hh.hasElemSeparators()
  12865. ee.WriteMapStart(len(v))
  12866. if e.h.Canonical {
  12867. v2 := make([]int64, len(v))
  12868. var i uint
  12869. for k := range v {
  12870. v2[i] = int64(k)
  12871. i++
  12872. }
  12873. sort.Sort(intSlice(v2))
  12874. if esep {
  12875. for _, k2 := range v2 {
  12876. ee.WriteMapElemKey()
  12877. ee.EncodeInt(int64(int32(k2)))
  12878. ee.WriteMapElemValue()
  12879. ee.EncodeInt(int64(v[int32(k2)]))
  12880. }
  12881. } else {
  12882. for _, k2 := range v2 {
  12883. ee.EncodeInt(int64(int32(k2)))
  12884. ee.EncodeInt(int64(v[int32(k2)]))
  12885. }
  12886. }
  12887. } else {
  12888. if esep {
  12889. for k2, v2 := range v {
  12890. ee.WriteMapElemKey()
  12891. ee.EncodeInt(int64(k2))
  12892. ee.WriteMapElemValue()
  12893. ee.EncodeInt(int64(v2))
  12894. }
  12895. } else {
  12896. for k2, v2 := range v {
  12897. ee.EncodeInt(int64(k2))
  12898. ee.EncodeInt(int64(v2))
  12899. }
  12900. }
  12901. }
  12902. ee.WriteMapEnd()
  12903. }
  12904. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  12905. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  12906. }
  12907. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  12908. if v == nil {
  12909. e.e.EncodeNil()
  12910. return
  12911. }
  12912. ee, esep := e.e, e.hh.hasElemSeparators()
  12913. ee.WriteMapStart(len(v))
  12914. if e.h.Canonical {
  12915. v2 := make([]int64, len(v))
  12916. var i uint
  12917. for k := range v {
  12918. v2[i] = int64(k)
  12919. i++
  12920. }
  12921. sort.Sort(intSlice(v2))
  12922. if esep {
  12923. for _, k2 := range v2 {
  12924. ee.WriteMapElemKey()
  12925. ee.EncodeInt(int64(int32(k2)))
  12926. ee.WriteMapElemValue()
  12927. ee.EncodeInt(int64(v[int32(k2)]))
  12928. }
  12929. } else {
  12930. for _, k2 := range v2 {
  12931. ee.EncodeInt(int64(int32(k2)))
  12932. ee.EncodeInt(int64(v[int32(k2)]))
  12933. }
  12934. }
  12935. } else {
  12936. if esep {
  12937. for k2, v2 := range v {
  12938. ee.WriteMapElemKey()
  12939. ee.EncodeInt(int64(k2))
  12940. ee.WriteMapElemValue()
  12941. ee.EncodeInt(int64(v2))
  12942. }
  12943. } else {
  12944. for k2, v2 := range v {
  12945. ee.EncodeInt(int64(k2))
  12946. ee.EncodeInt(int64(v2))
  12947. }
  12948. }
  12949. }
  12950. ee.WriteMapEnd()
  12951. }
  12952. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  12953. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  12954. }
  12955. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  12956. if v == nil {
  12957. e.e.EncodeNil()
  12958. return
  12959. }
  12960. ee, esep := e.e, e.hh.hasElemSeparators()
  12961. ee.WriteMapStart(len(v))
  12962. if e.h.Canonical {
  12963. v2 := make([]int64, len(v))
  12964. var i uint
  12965. for k := range v {
  12966. v2[i] = int64(k)
  12967. i++
  12968. }
  12969. sort.Sort(intSlice(v2))
  12970. if esep {
  12971. for _, k2 := range v2 {
  12972. ee.WriteMapElemKey()
  12973. ee.EncodeInt(int64(int32(k2)))
  12974. ee.WriteMapElemValue()
  12975. ee.EncodeFloat32(v[int32(k2)])
  12976. }
  12977. } else {
  12978. for _, k2 := range v2 {
  12979. ee.EncodeInt(int64(int32(k2)))
  12980. ee.EncodeFloat32(v[int32(k2)])
  12981. }
  12982. }
  12983. } else {
  12984. if esep {
  12985. for k2, v2 := range v {
  12986. ee.WriteMapElemKey()
  12987. ee.EncodeInt(int64(k2))
  12988. ee.WriteMapElemValue()
  12989. ee.EncodeFloat32(v2)
  12990. }
  12991. } else {
  12992. for k2, v2 := range v {
  12993. ee.EncodeInt(int64(k2))
  12994. ee.EncodeFloat32(v2)
  12995. }
  12996. }
  12997. }
  12998. ee.WriteMapEnd()
  12999. }
  13000. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  13001. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  13002. }
  13003. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  13004. if v == nil {
  13005. e.e.EncodeNil()
  13006. return
  13007. }
  13008. ee, esep := e.e, e.hh.hasElemSeparators()
  13009. ee.WriteMapStart(len(v))
  13010. if e.h.Canonical {
  13011. v2 := make([]int64, len(v))
  13012. var i uint
  13013. for k := range v {
  13014. v2[i] = int64(k)
  13015. i++
  13016. }
  13017. sort.Sort(intSlice(v2))
  13018. if esep {
  13019. for _, k2 := range v2 {
  13020. ee.WriteMapElemKey()
  13021. ee.EncodeInt(int64(int32(k2)))
  13022. ee.WriteMapElemValue()
  13023. ee.EncodeFloat64(v[int32(k2)])
  13024. }
  13025. } else {
  13026. for _, k2 := range v2 {
  13027. ee.EncodeInt(int64(int32(k2)))
  13028. ee.EncodeFloat64(v[int32(k2)])
  13029. }
  13030. }
  13031. } else {
  13032. if esep {
  13033. for k2, v2 := range v {
  13034. ee.WriteMapElemKey()
  13035. ee.EncodeInt(int64(k2))
  13036. ee.WriteMapElemValue()
  13037. ee.EncodeFloat64(v2)
  13038. }
  13039. } else {
  13040. for k2, v2 := range v {
  13041. ee.EncodeInt(int64(k2))
  13042. ee.EncodeFloat64(v2)
  13043. }
  13044. }
  13045. }
  13046. ee.WriteMapEnd()
  13047. }
  13048. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  13049. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  13050. }
  13051. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  13052. if v == nil {
  13053. e.e.EncodeNil()
  13054. return
  13055. }
  13056. ee, esep := e.e, e.hh.hasElemSeparators()
  13057. ee.WriteMapStart(len(v))
  13058. if e.h.Canonical {
  13059. v2 := make([]int64, len(v))
  13060. var i uint
  13061. for k := range v {
  13062. v2[i] = int64(k)
  13063. i++
  13064. }
  13065. sort.Sort(intSlice(v2))
  13066. if esep {
  13067. for _, k2 := range v2 {
  13068. ee.WriteMapElemKey()
  13069. ee.EncodeInt(int64(int32(k2)))
  13070. ee.WriteMapElemValue()
  13071. ee.EncodeBool(v[int32(k2)])
  13072. }
  13073. } else {
  13074. for _, k2 := range v2 {
  13075. ee.EncodeInt(int64(int32(k2)))
  13076. ee.EncodeBool(v[int32(k2)])
  13077. }
  13078. }
  13079. } else {
  13080. if esep {
  13081. for k2, v2 := range v {
  13082. ee.WriteMapElemKey()
  13083. ee.EncodeInt(int64(k2))
  13084. ee.WriteMapElemValue()
  13085. ee.EncodeBool(v2)
  13086. }
  13087. } else {
  13088. for k2, v2 := range v {
  13089. ee.EncodeInt(int64(k2))
  13090. ee.EncodeBool(v2)
  13091. }
  13092. }
  13093. }
  13094. ee.WriteMapEnd()
  13095. }
  13096. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  13097. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  13098. }
  13099. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  13100. if v == nil {
  13101. e.e.EncodeNil()
  13102. return
  13103. }
  13104. ee, esep := e.e, e.hh.hasElemSeparators()
  13105. ee.WriteMapStart(len(v))
  13106. if e.h.Canonical {
  13107. v2 := make([]int64, len(v))
  13108. var i uint
  13109. for k := range v {
  13110. v2[i] = int64(k)
  13111. i++
  13112. }
  13113. sort.Sort(intSlice(v2))
  13114. if esep {
  13115. for _, k2 := range v2 {
  13116. ee.WriteMapElemKey()
  13117. ee.EncodeInt(int64(int64(k2)))
  13118. ee.WriteMapElemValue()
  13119. e.encode(v[int64(k2)])
  13120. }
  13121. } else {
  13122. for _, k2 := range v2 {
  13123. ee.EncodeInt(int64(int64(k2)))
  13124. e.encode(v[int64(k2)])
  13125. }
  13126. }
  13127. } else {
  13128. if esep {
  13129. for k2, v2 := range v {
  13130. ee.WriteMapElemKey()
  13131. ee.EncodeInt(int64(k2))
  13132. ee.WriteMapElemValue()
  13133. e.encode(v2)
  13134. }
  13135. } else {
  13136. for k2, v2 := range v {
  13137. ee.EncodeInt(int64(k2))
  13138. e.encode(v2)
  13139. }
  13140. }
  13141. }
  13142. ee.WriteMapEnd()
  13143. }
  13144. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  13145. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  13146. }
  13147. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  13148. if v == nil {
  13149. e.e.EncodeNil()
  13150. return
  13151. }
  13152. ee, esep := e.e, e.hh.hasElemSeparators()
  13153. ee.WriteMapStart(len(v))
  13154. if e.h.Canonical {
  13155. v2 := make([]int64, len(v))
  13156. var i uint
  13157. for k := range v {
  13158. v2[i] = int64(k)
  13159. i++
  13160. }
  13161. sort.Sort(intSlice(v2))
  13162. if esep {
  13163. for _, k2 := range v2 {
  13164. ee.WriteMapElemKey()
  13165. ee.EncodeInt(int64(int64(k2)))
  13166. ee.WriteMapElemValue()
  13167. ee.EncodeStringEnc(cUTF8, v[int64(k2)])
  13168. }
  13169. } else {
  13170. for _, k2 := range v2 {
  13171. ee.EncodeInt(int64(int64(k2)))
  13172. ee.EncodeStringEnc(cUTF8, v[int64(k2)])
  13173. }
  13174. }
  13175. } else {
  13176. if esep {
  13177. for k2, v2 := range v {
  13178. ee.WriteMapElemKey()
  13179. ee.EncodeInt(int64(k2))
  13180. ee.WriteMapElemValue()
  13181. ee.EncodeStringEnc(cUTF8, v2)
  13182. }
  13183. } else {
  13184. for k2, v2 := range v {
  13185. ee.EncodeInt(int64(k2))
  13186. ee.EncodeStringEnc(cUTF8, v2)
  13187. }
  13188. }
  13189. }
  13190. ee.WriteMapEnd()
  13191. }
  13192. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  13193. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  13194. }
  13195. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  13196. if v == nil {
  13197. e.e.EncodeNil()
  13198. return
  13199. }
  13200. ee, esep := e.e, e.hh.hasElemSeparators()
  13201. ee.WriteMapStart(len(v))
  13202. if e.h.Canonical {
  13203. v2 := make([]int64, len(v))
  13204. var i uint
  13205. for k := range v {
  13206. v2[i] = int64(k)
  13207. i++
  13208. }
  13209. sort.Sort(intSlice(v2))
  13210. if esep {
  13211. for _, k2 := range v2 {
  13212. ee.WriteMapElemKey()
  13213. ee.EncodeInt(int64(int64(k2)))
  13214. ee.WriteMapElemValue()
  13215. ee.EncodeUint(uint64(v[int64(k2)]))
  13216. }
  13217. } else {
  13218. for _, k2 := range v2 {
  13219. ee.EncodeInt(int64(int64(k2)))
  13220. ee.EncodeUint(uint64(v[int64(k2)]))
  13221. }
  13222. }
  13223. } else {
  13224. if esep {
  13225. for k2, v2 := range v {
  13226. ee.WriteMapElemKey()
  13227. ee.EncodeInt(int64(k2))
  13228. ee.WriteMapElemValue()
  13229. ee.EncodeUint(uint64(v2))
  13230. }
  13231. } else {
  13232. for k2, v2 := range v {
  13233. ee.EncodeInt(int64(k2))
  13234. ee.EncodeUint(uint64(v2))
  13235. }
  13236. }
  13237. }
  13238. ee.WriteMapEnd()
  13239. }
  13240. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  13241. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  13242. }
  13243. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  13244. if v == nil {
  13245. e.e.EncodeNil()
  13246. return
  13247. }
  13248. ee, esep := e.e, e.hh.hasElemSeparators()
  13249. ee.WriteMapStart(len(v))
  13250. if e.h.Canonical {
  13251. v2 := make([]int64, len(v))
  13252. var i uint
  13253. for k := range v {
  13254. v2[i] = int64(k)
  13255. i++
  13256. }
  13257. sort.Sort(intSlice(v2))
  13258. if esep {
  13259. for _, k2 := range v2 {
  13260. ee.WriteMapElemKey()
  13261. ee.EncodeInt(int64(int64(k2)))
  13262. ee.WriteMapElemValue()
  13263. ee.EncodeUint(uint64(v[int64(k2)]))
  13264. }
  13265. } else {
  13266. for _, k2 := range v2 {
  13267. ee.EncodeInt(int64(int64(k2)))
  13268. ee.EncodeUint(uint64(v[int64(k2)]))
  13269. }
  13270. }
  13271. } else {
  13272. if esep {
  13273. for k2, v2 := range v {
  13274. ee.WriteMapElemKey()
  13275. ee.EncodeInt(int64(k2))
  13276. ee.WriteMapElemValue()
  13277. ee.EncodeUint(uint64(v2))
  13278. }
  13279. } else {
  13280. for k2, v2 := range v {
  13281. ee.EncodeInt(int64(k2))
  13282. ee.EncodeUint(uint64(v2))
  13283. }
  13284. }
  13285. }
  13286. ee.WriteMapEnd()
  13287. }
  13288. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  13289. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  13290. }
  13291. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  13292. if v == nil {
  13293. e.e.EncodeNil()
  13294. return
  13295. }
  13296. ee, esep := e.e, e.hh.hasElemSeparators()
  13297. ee.WriteMapStart(len(v))
  13298. if e.h.Canonical {
  13299. v2 := make([]int64, len(v))
  13300. var i uint
  13301. for k := range v {
  13302. v2[i] = int64(k)
  13303. i++
  13304. }
  13305. sort.Sort(intSlice(v2))
  13306. if esep {
  13307. for _, k2 := range v2 {
  13308. ee.WriteMapElemKey()
  13309. ee.EncodeInt(int64(int64(k2)))
  13310. ee.WriteMapElemValue()
  13311. ee.EncodeUint(uint64(v[int64(k2)]))
  13312. }
  13313. } else {
  13314. for _, k2 := range v2 {
  13315. ee.EncodeInt(int64(int64(k2)))
  13316. ee.EncodeUint(uint64(v[int64(k2)]))
  13317. }
  13318. }
  13319. } else {
  13320. if esep {
  13321. for k2, v2 := range v {
  13322. ee.WriteMapElemKey()
  13323. ee.EncodeInt(int64(k2))
  13324. ee.WriteMapElemValue()
  13325. ee.EncodeUint(uint64(v2))
  13326. }
  13327. } else {
  13328. for k2, v2 := range v {
  13329. ee.EncodeInt(int64(k2))
  13330. ee.EncodeUint(uint64(v2))
  13331. }
  13332. }
  13333. }
  13334. ee.WriteMapEnd()
  13335. }
  13336. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  13337. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  13338. }
  13339. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  13340. if v == nil {
  13341. e.e.EncodeNil()
  13342. return
  13343. }
  13344. ee, esep := e.e, e.hh.hasElemSeparators()
  13345. ee.WriteMapStart(len(v))
  13346. if e.h.Canonical {
  13347. v2 := make([]int64, len(v))
  13348. var i uint
  13349. for k := range v {
  13350. v2[i] = int64(k)
  13351. i++
  13352. }
  13353. sort.Sort(intSlice(v2))
  13354. if esep {
  13355. for _, k2 := range v2 {
  13356. ee.WriteMapElemKey()
  13357. ee.EncodeInt(int64(int64(k2)))
  13358. ee.WriteMapElemValue()
  13359. ee.EncodeUint(uint64(v[int64(k2)]))
  13360. }
  13361. } else {
  13362. for _, k2 := range v2 {
  13363. ee.EncodeInt(int64(int64(k2)))
  13364. ee.EncodeUint(uint64(v[int64(k2)]))
  13365. }
  13366. }
  13367. } else {
  13368. if esep {
  13369. for k2, v2 := range v {
  13370. ee.WriteMapElemKey()
  13371. ee.EncodeInt(int64(k2))
  13372. ee.WriteMapElemValue()
  13373. ee.EncodeUint(uint64(v2))
  13374. }
  13375. } else {
  13376. for k2, v2 := range v {
  13377. ee.EncodeInt(int64(k2))
  13378. ee.EncodeUint(uint64(v2))
  13379. }
  13380. }
  13381. }
  13382. ee.WriteMapEnd()
  13383. }
  13384. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  13385. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  13386. }
  13387. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  13388. if v == nil {
  13389. e.e.EncodeNil()
  13390. return
  13391. }
  13392. ee, esep := e.e, e.hh.hasElemSeparators()
  13393. ee.WriteMapStart(len(v))
  13394. if e.h.Canonical {
  13395. v2 := make([]int64, len(v))
  13396. var i uint
  13397. for k := range v {
  13398. v2[i] = int64(k)
  13399. i++
  13400. }
  13401. sort.Sort(intSlice(v2))
  13402. if esep {
  13403. for _, k2 := range v2 {
  13404. ee.WriteMapElemKey()
  13405. ee.EncodeInt(int64(int64(k2)))
  13406. ee.WriteMapElemValue()
  13407. ee.EncodeUint(uint64(v[int64(k2)]))
  13408. }
  13409. } else {
  13410. for _, k2 := range v2 {
  13411. ee.EncodeInt(int64(int64(k2)))
  13412. ee.EncodeUint(uint64(v[int64(k2)]))
  13413. }
  13414. }
  13415. } else {
  13416. if esep {
  13417. for k2, v2 := range v {
  13418. ee.WriteMapElemKey()
  13419. ee.EncodeInt(int64(k2))
  13420. ee.WriteMapElemValue()
  13421. ee.EncodeUint(uint64(v2))
  13422. }
  13423. } else {
  13424. for k2, v2 := range v {
  13425. ee.EncodeInt(int64(k2))
  13426. ee.EncodeUint(uint64(v2))
  13427. }
  13428. }
  13429. }
  13430. ee.WriteMapEnd()
  13431. }
  13432. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  13433. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  13434. }
  13435. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  13436. if v == nil {
  13437. e.e.EncodeNil()
  13438. return
  13439. }
  13440. ee, esep := e.e, e.hh.hasElemSeparators()
  13441. ee.WriteMapStart(len(v))
  13442. if e.h.Canonical {
  13443. v2 := make([]int64, len(v))
  13444. var i uint
  13445. for k := range v {
  13446. v2[i] = int64(k)
  13447. i++
  13448. }
  13449. sort.Sort(intSlice(v2))
  13450. if esep {
  13451. for _, k2 := range v2 {
  13452. ee.WriteMapElemKey()
  13453. ee.EncodeInt(int64(int64(k2)))
  13454. ee.WriteMapElemValue()
  13455. e.encode(v[int64(k2)])
  13456. }
  13457. } else {
  13458. for _, k2 := range v2 {
  13459. ee.EncodeInt(int64(int64(k2)))
  13460. e.encode(v[int64(k2)])
  13461. }
  13462. }
  13463. } else {
  13464. if esep {
  13465. for k2, v2 := range v {
  13466. ee.WriteMapElemKey()
  13467. ee.EncodeInt(int64(k2))
  13468. ee.WriteMapElemValue()
  13469. e.encode(v2)
  13470. }
  13471. } else {
  13472. for k2, v2 := range v {
  13473. ee.EncodeInt(int64(k2))
  13474. e.encode(v2)
  13475. }
  13476. }
  13477. }
  13478. ee.WriteMapEnd()
  13479. }
  13480. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  13481. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  13482. }
  13483. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  13484. if v == nil {
  13485. e.e.EncodeNil()
  13486. return
  13487. }
  13488. ee, esep := e.e, e.hh.hasElemSeparators()
  13489. ee.WriteMapStart(len(v))
  13490. if e.h.Canonical {
  13491. v2 := make([]int64, len(v))
  13492. var i uint
  13493. for k := range v {
  13494. v2[i] = int64(k)
  13495. i++
  13496. }
  13497. sort.Sort(intSlice(v2))
  13498. if esep {
  13499. for _, k2 := range v2 {
  13500. ee.WriteMapElemKey()
  13501. ee.EncodeInt(int64(int64(k2)))
  13502. ee.WriteMapElemValue()
  13503. ee.EncodeInt(int64(v[int64(k2)]))
  13504. }
  13505. } else {
  13506. for _, k2 := range v2 {
  13507. ee.EncodeInt(int64(int64(k2)))
  13508. ee.EncodeInt(int64(v[int64(k2)]))
  13509. }
  13510. }
  13511. } else {
  13512. if esep {
  13513. for k2, v2 := range v {
  13514. ee.WriteMapElemKey()
  13515. ee.EncodeInt(int64(k2))
  13516. ee.WriteMapElemValue()
  13517. ee.EncodeInt(int64(v2))
  13518. }
  13519. } else {
  13520. for k2, v2 := range v {
  13521. ee.EncodeInt(int64(k2))
  13522. ee.EncodeInt(int64(v2))
  13523. }
  13524. }
  13525. }
  13526. ee.WriteMapEnd()
  13527. }
  13528. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  13529. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  13530. }
  13531. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  13532. if v == nil {
  13533. e.e.EncodeNil()
  13534. return
  13535. }
  13536. ee, esep := e.e, e.hh.hasElemSeparators()
  13537. ee.WriteMapStart(len(v))
  13538. if e.h.Canonical {
  13539. v2 := make([]int64, len(v))
  13540. var i uint
  13541. for k := range v {
  13542. v2[i] = int64(k)
  13543. i++
  13544. }
  13545. sort.Sort(intSlice(v2))
  13546. if esep {
  13547. for _, k2 := range v2 {
  13548. ee.WriteMapElemKey()
  13549. ee.EncodeInt(int64(int64(k2)))
  13550. ee.WriteMapElemValue()
  13551. ee.EncodeInt(int64(v[int64(k2)]))
  13552. }
  13553. } else {
  13554. for _, k2 := range v2 {
  13555. ee.EncodeInt(int64(int64(k2)))
  13556. ee.EncodeInt(int64(v[int64(k2)]))
  13557. }
  13558. }
  13559. } else {
  13560. if esep {
  13561. for k2, v2 := range v {
  13562. ee.WriteMapElemKey()
  13563. ee.EncodeInt(int64(k2))
  13564. ee.WriteMapElemValue()
  13565. ee.EncodeInt(int64(v2))
  13566. }
  13567. } else {
  13568. for k2, v2 := range v {
  13569. ee.EncodeInt(int64(k2))
  13570. ee.EncodeInt(int64(v2))
  13571. }
  13572. }
  13573. }
  13574. ee.WriteMapEnd()
  13575. }
  13576. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  13577. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  13578. }
  13579. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  13580. if v == nil {
  13581. e.e.EncodeNil()
  13582. return
  13583. }
  13584. ee, esep := e.e, e.hh.hasElemSeparators()
  13585. ee.WriteMapStart(len(v))
  13586. if e.h.Canonical {
  13587. v2 := make([]int64, len(v))
  13588. var i uint
  13589. for k := range v {
  13590. v2[i] = int64(k)
  13591. i++
  13592. }
  13593. sort.Sort(intSlice(v2))
  13594. if esep {
  13595. for _, k2 := range v2 {
  13596. ee.WriteMapElemKey()
  13597. ee.EncodeInt(int64(int64(k2)))
  13598. ee.WriteMapElemValue()
  13599. ee.EncodeInt(int64(v[int64(k2)]))
  13600. }
  13601. } else {
  13602. for _, k2 := range v2 {
  13603. ee.EncodeInt(int64(int64(k2)))
  13604. ee.EncodeInt(int64(v[int64(k2)]))
  13605. }
  13606. }
  13607. } else {
  13608. if esep {
  13609. for k2, v2 := range v {
  13610. ee.WriteMapElemKey()
  13611. ee.EncodeInt(int64(k2))
  13612. ee.WriteMapElemValue()
  13613. ee.EncodeInt(int64(v2))
  13614. }
  13615. } else {
  13616. for k2, v2 := range v {
  13617. ee.EncodeInt(int64(k2))
  13618. ee.EncodeInt(int64(v2))
  13619. }
  13620. }
  13621. }
  13622. ee.WriteMapEnd()
  13623. }
  13624. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  13625. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  13626. }
  13627. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  13628. if v == nil {
  13629. e.e.EncodeNil()
  13630. return
  13631. }
  13632. ee, esep := e.e, e.hh.hasElemSeparators()
  13633. ee.WriteMapStart(len(v))
  13634. if e.h.Canonical {
  13635. v2 := make([]int64, len(v))
  13636. var i uint
  13637. for k := range v {
  13638. v2[i] = int64(k)
  13639. i++
  13640. }
  13641. sort.Sort(intSlice(v2))
  13642. if esep {
  13643. for _, k2 := range v2 {
  13644. ee.WriteMapElemKey()
  13645. ee.EncodeInt(int64(int64(k2)))
  13646. ee.WriteMapElemValue()
  13647. ee.EncodeInt(int64(v[int64(k2)]))
  13648. }
  13649. } else {
  13650. for _, k2 := range v2 {
  13651. ee.EncodeInt(int64(int64(k2)))
  13652. ee.EncodeInt(int64(v[int64(k2)]))
  13653. }
  13654. }
  13655. } else {
  13656. if esep {
  13657. for k2, v2 := range v {
  13658. ee.WriteMapElemKey()
  13659. ee.EncodeInt(int64(k2))
  13660. ee.WriteMapElemValue()
  13661. ee.EncodeInt(int64(v2))
  13662. }
  13663. } else {
  13664. for k2, v2 := range v {
  13665. ee.EncodeInt(int64(k2))
  13666. ee.EncodeInt(int64(v2))
  13667. }
  13668. }
  13669. }
  13670. ee.WriteMapEnd()
  13671. }
  13672. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  13673. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  13674. }
  13675. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  13676. if v == nil {
  13677. e.e.EncodeNil()
  13678. return
  13679. }
  13680. ee, esep := e.e, e.hh.hasElemSeparators()
  13681. ee.WriteMapStart(len(v))
  13682. if e.h.Canonical {
  13683. v2 := make([]int64, len(v))
  13684. var i uint
  13685. for k := range v {
  13686. v2[i] = int64(k)
  13687. i++
  13688. }
  13689. sort.Sort(intSlice(v2))
  13690. if esep {
  13691. for _, k2 := range v2 {
  13692. ee.WriteMapElemKey()
  13693. ee.EncodeInt(int64(int64(k2)))
  13694. ee.WriteMapElemValue()
  13695. ee.EncodeInt(int64(v[int64(k2)]))
  13696. }
  13697. } else {
  13698. for _, k2 := range v2 {
  13699. ee.EncodeInt(int64(int64(k2)))
  13700. ee.EncodeInt(int64(v[int64(k2)]))
  13701. }
  13702. }
  13703. } else {
  13704. if esep {
  13705. for k2, v2 := range v {
  13706. ee.WriteMapElemKey()
  13707. ee.EncodeInt(int64(k2))
  13708. ee.WriteMapElemValue()
  13709. ee.EncodeInt(int64(v2))
  13710. }
  13711. } else {
  13712. for k2, v2 := range v {
  13713. ee.EncodeInt(int64(k2))
  13714. ee.EncodeInt(int64(v2))
  13715. }
  13716. }
  13717. }
  13718. ee.WriteMapEnd()
  13719. }
  13720. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  13721. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  13722. }
  13723. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  13724. if v == nil {
  13725. e.e.EncodeNil()
  13726. return
  13727. }
  13728. ee, esep := e.e, e.hh.hasElemSeparators()
  13729. ee.WriteMapStart(len(v))
  13730. if e.h.Canonical {
  13731. v2 := make([]int64, len(v))
  13732. var i uint
  13733. for k := range v {
  13734. v2[i] = int64(k)
  13735. i++
  13736. }
  13737. sort.Sort(intSlice(v2))
  13738. if esep {
  13739. for _, k2 := range v2 {
  13740. ee.WriteMapElemKey()
  13741. ee.EncodeInt(int64(int64(k2)))
  13742. ee.WriteMapElemValue()
  13743. ee.EncodeFloat32(v[int64(k2)])
  13744. }
  13745. } else {
  13746. for _, k2 := range v2 {
  13747. ee.EncodeInt(int64(int64(k2)))
  13748. ee.EncodeFloat32(v[int64(k2)])
  13749. }
  13750. }
  13751. } else {
  13752. if esep {
  13753. for k2, v2 := range v {
  13754. ee.WriteMapElemKey()
  13755. ee.EncodeInt(int64(k2))
  13756. ee.WriteMapElemValue()
  13757. ee.EncodeFloat32(v2)
  13758. }
  13759. } else {
  13760. for k2, v2 := range v {
  13761. ee.EncodeInt(int64(k2))
  13762. ee.EncodeFloat32(v2)
  13763. }
  13764. }
  13765. }
  13766. ee.WriteMapEnd()
  13767. }
  13768. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  13769. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  13770. }
  13771. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  13772. if v == nil {
  13773. e.e.EncodeNil()
  13774. return
  13775. }
  13776. ee, esep := e.e, e.hh.hasElemSeparators()
  13777. ee.WriteMapStart(len(v))
  13778. if e.h.Canonical {
  13779. v2 := make([]int64, len(v))
  13780. var i uint
  13781. for k := range v {
  13782. v2[i] = int64(k)
  13783. i++
  13784. }
  13785. sort.Sort(intSlice(v2))
  13786. if esep {
  13787. for _, k2 := range v2 {
  13788. ee.WriteMapElemKey()
  13789. ee.EncodeInt(int64(int64(k2)))
  13790. ee.WriteMapElemValue()
  13791. ee.EncodeFloat64(v[int64(k2)])
  13792. }
  13793. } else {
  13794. for _, k2 := range v2 {
  13795. ee.EncodeInt(int64(int64(k2)))
  13796. ee.EncodeFloat64(v[int64(k2)])
  13797. }
  13798. }
  13799. } else {
  13800. if esep {
  13801. for k2, v2 := range v {
  13802. ee.WriteMapElemKey()
  13803. ee.EncodeInt(int64(k2))
  13804. ee.WriteMapElemValue()
  13805. ee.EncodeFloat64(v2)
  13806. }
  13807. } else {
  13808. for k2, v2 := range v {
  13809. ee.EncodeInt(int64(k2))
  13810. ee.EncodeFloat64(v2)
  13811. }
  13812. }
  13813. }
  13814. ee.WriteMapEnd()
  13815. }
  13816. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  13817. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  13818. }
  13819. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  13820. if v == nil {
  13821. e.e.EncodeNil()
  13822. return
  13823. }
  13824. ee, esep := e.e, e.hh.hasElemSeparators()
  13825. ee.WriteMapStart(len(v))
  13826. if e.h.Canonical {
  13827. v2 := make([]int64, len(v))
  13828. var i uint
  13829. for k := range v {
  13830. v2[i] = int64(k)
  13831. i++
  13832. }
  13833. sort.Sort(intSlice(v2))
  13834. if esep {
  13835. for _, k2 := range v2 {
  13836. ee.WriteMapElemKey()
  13837. ee.EncodeInt(int64(int64(k2)))
  13838. ee.WriteMapElemValue()
  13839. ee.EncodeBool(v[int64(k2)])
  13840. }
  13841. } else {
  13842. for _, k2 := range v2 {
  13843. ee.EncodeInt(int64(int64(k2)))
  13844. ee.EncodeBool(v[int64(k2)])
  13845. }
  13846. }
  13847. } else {
  13848. if esep {
  13849. for k2, v2 := range v {
  13850. ee.WriteMapElemKey()
  13851. ee.EncodeInt(int64(k2))
  13852. ee.WriteMapElemValue()
  13853. ee.EncodeBool(v2)
  13854. }
  13855. } else {
  13856. for k2, v2 := range v {
  13857. ee.EncodeInt(int64(k2))
  13858. ee.EncodeBool(v2)
  13859. }
  13860. }
  13861. }
  13862. ee.WriteMapEnd()
  13863. }
  13864. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  13865. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  13866. }
  13867. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  13868. if v == nil {
  13869. e.e.EncodeNil()
  13870. return
  13871. }
  13872. ee, esep := e.e, e.hh.hasElemSeparators()
  13873. ee.WriteMapStart(len(v))
  13874. if e.h.Canonical {
  13875. v2 := make([]bool, len(v))
  13876. var i uint
  13877. for k := range v {
  13878. v2[i] = bool(k)
  13879. i++
  13880. }
  13881. sort.Sort(boolSlice(v2))
  13882. if esep {
  13883. for _, k2 := range v2 {
  13884. ee.WriteMapElemKey()
  13885. ee.EncodeBool(bool(k2))
  13886. ee.WriteMapElemValue()
  13887. e.encode(v[bool(k2)])
  13888. }
  13889. } else {
  13890. for _, k2 := range v2 {
  13891. ee.EncodeBool(bool(k2))
  13892. e.encode(v[bool(k2)])
  13893. }
  13894. }
  13895. } else {
  13896. if esep {
  13897. for k2, v2 := range v {
  13898. ee.WriteMapElemKey()
  13899. ee.EncodeBool(k2)
  13900. ee.WriteMapElemValue()
  13901. e.encode(v2)
  13902. }
  13903. } else {
  13904. for k2, v2 := range v {
  13905. ee.EncodeBool(k2)
  13906. e.encode(v2)
  13907. }
  13908. }
  13909. }
  13910. ee.WriteMapEnd()
  13911. }
  13912. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  13913. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  13914. }
  13915. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  13916. if v == nil {
  13917. e.e.EncodeNil()
  13918. return
  13919. }
  13920. ee, esep := e.e, e.hh.hasElemSeparators()
  13921. ee.WriteMapStart(len(v))
  13922. if e.h.Canonical {
  13923. v2 := make([]bool, len(v))
  13924. var i uint
  13925. for k := range v {
  13926. v2[i] = bool(k)
  13927. i++
  13928. }
  13929. sort.Sort(boolSlice(v2))
  13930. if esep {
  13931. for _, k2 := range v2 {
  13932. ee.WriteMapElemKey()
  13933. ee.EncodeBool(bool(k2))
  13934. ee.WriteMapElemValue()
  13935. ee.EncodeStringEnc(cUTF8, v[bool(k2)])
  13936. }
  13937. } else {
  13938. for _, k2 := range v2 {
  13939. ee.EncodeBool(bool(k2))
  13940. ee.EncodeStringEnc(cUTF8, v[bool(k2)])
  13941. }
  13942. }
  13943. } else {
  13944. if esep {
  13945. for k2, v2 := range v {
  13946. ee.WriteMapElemKey()
  13947. ee.EncodeBool(k2)
  13948. ee.WriteMapElemValue()
  13949. ee.EncodeStringEnc(cUTF8, v2)
  13950. }
  13951. } else {
  13952. for k2, v2 := range v {
  13953. ee.EncodeBool(k2)
  13954. ee.EncodeStringEnc(cUTF8, v2)
  13955. }
  13956. }
  13957. }
  13958. ee.WriteMapEnd()
  13959. }
  13960. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  13961. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  13962. }
  13963. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  13964. if v == nil {
  13965. e.e.EncodeNil()
  13966. return
  13967. }
  13968. ee, esep := e.e, e.hh.hasElemSeparators()
  13969. ee.WriteMapStart(len(v))
  13970. if e.h.Canonical {
  13971. v2 := make([]bool, len(v))
  13972. var i uint
  13973. for k := range v {
  13974. v2[i] = bool(k)
  13975. i++
  13976. }
  13977. sort.Sort(boolSlice(v2))
  13978. if esep {
  13979. for _, k2 := range v2 {
  13980. ee.WriteMapElemKey()
  13981. ee.EncodeBool(bool(k2))
  13982. ee.WriteMapElemValue()
  13983. ee.EncodeUint(uint64(v[bool(k2)]))
  13984. }
  13985. } else {
  13986. for _, k2 := range v2 {
  13987. ee.EncodeBool(bool(k2))
  13988. ee.EncodeUint(uint64(v[bool(k2)]))
  13989. }
  13990. }
  13991. } else {
  13992. if esep {
  13993. for k2, v2 := range v {
  13994. ee.WriteMapElemKey()
  13995. ee.EncodeBool(k2)
  13996. ee.WriteMapElemValue()
  13997. ee.EncodeUint(uint64(v2))
  13998. }
  13999. } else {
  14000. for k2, v2 := range v {
  14001. ee.EncodeBool(k2)
  14002. ee.EncodeUint(uint64(v2))
  14003. }
  14004. }
  14005. }
  14006. ee.WriteMapEnd()
  14007. }
  14008. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  14009. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  14010. }
  14011. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  14012. if v == nil {
  14013. e.e.EncodeNil()
  14014. return
  14015. }
  14016. ee, esep := e.e, e.hh.hasElemSeparators()
  14017. ee.WriteMapStart(len(v))
  14018. if e.h.Canonical {
  14019. v2 := make([]bool, len(v))
  14020. var i uint
  14021. for k := range v {
  14022. v2[i] = bool(k)
  14023. i++
  14024. }
  14025. sort.Sort(boolSlice(v2))
  14026. if esep {
  14027. for _, k2 := range v2 {
  14028. ee.WriteMapElemKey()
  14029. ee.EncodeBool(bool(k2))
  14030. ee.WriteMapElemValue()
  14031. ee.EncodeUint(uint64(v[bool(k2)]))
  14032. }
  14033. } else {
  14034. for _, k2 := range v2 {
  14035. ee.EncodeBool(bool(k2))
  14036. ee.EncodeUint(uint64(v[bool(k2)]))
  14037. }
  14038. }
  14039. } else {
  14040. if esep {
  14041. for k2, v2 := range v {
  14042. ee.WriteMapElemKey()
  14043. ee.EncodeBool(k2)
  14044. ee.WriteMapElemValue()
  14045. ee.EncodeUint(uint64(v2))
  14046. }
  14047. } else {
  14048. for k2, v2 := range v {
  14049. ee.EncodeBool(k2)
  14050. ee.EncodeUint(uint64(v2))
  14051. }
  14052. }
  14053. }
  14054. ee.WriteMapEnd()
  14055. }
  14056. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  14057. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  14058. }
  14059. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  14060. if v == nil {
  14061. e.e.EncodeNil()
  14062. return
  14063. }
  14064. ee, esep := e.e, e.hh.hasElemSeparators()
  14065. ee.WriteMapStart(len(v))
  14066. if e.h.Canonical {
  14067. v2 := make([]bool, len(v))
  14068. var i uint
  14069. for k := range v {
  14070. v2[i] = bool(k)
  14071. i++
  14072. }
  14073. sort.Sort(boolSlice(v2))
  14074. if esep {
  14075. for _, k2 := range v2 {
  14076. ee.WriteMapElemKey()
  14077. ee.EncodeBool(bool(k2))
  14078. ee.WriteMapElemValue()
  14079. ee.EncodeUint(uint64(v[bool(k2)]))
  14080. }
  14081. } else {
  14082. for _, k2 := range v2 {
  14083. ee.EncodeBool(bool(k2))
  14084. ee.EncodeUint(uint64(v[bool(k2)]))
  14085. }
  14086. }
  14087. } else {
  14088. if esep {
  14089. for k2, v2 := range v {
  14090. ee.WriteMapElemKey()
  14091. ee.EncodeBool(k2)
  14092. ee.WriteMapElemValue()
  14093. ee.EncodeUint(uint64(v2))
  14094. }
  14095. } else {
  14096. for k2, v2 := range v {
  14097. ee.EncodeBool(k2)
  14098. ee.EncodeUint(uint64(v2))
  14099. }
  14100. }
  14101. }
  14102. ee.WriteMapEnd()
  14103. }
  14104. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  14105. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  14106. }
  14107. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  14108. if v == nil {
  14109. e.e.EncodeNil()
  14110. return
  14111. }
  14112. ee, esep := e.e, e.hh.hasElemSeparators()
  14113. ee.WriteMapStart(len(v))
  14114. if e.h.Canonical {
  14115. v2 := make([]bool, len(v))
  14116. var i uint
  14117. for k := range v {
  14118. v2[i] = bool(k)
  14119. i++
  14120. }
  14121. sort.Sort(boolSlice(v2))
  14122. if esep {
  14123. for _, k2 := range v2 {
  14124. ee.WriteMapElemKey()
  14125. ee.EncodeBool(bool(k2))
  14126. ee.WriteMapElemValue()
  14127. ee.EncodeUint(uint64(v[bool(k2)]))
  14128. }
  14129. } else {
  14130. for _, k2 := range v2 {
  14131. ee.EncodeBool(bool(k2))
  14132. ee.EncodeUint(uint64(v[bool(k2)]))
  14133. }
  14134. }
  14135. } else {
  14136. if esep {
  14137. for k2, v2 := range v {
  14138. ee.WriteMapElemKey()
  14139. ee.EncodeBool(k2)
  14140. ee.WriteMapElemValue()
  14141. ee.EncodeUint(uint64(v2))
  14142. }
  14143. } else {
  14144. for k2, v2 := range v {
  14145. ee.EncodeBool(k2)
  14146. ee.EncodeUint(uint64(v2))
  14147. }
  14148. }
  14149. }
  14150. ee.WriteMapEnd()
  14151. }
  14152. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  14153. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  14154. }
  14155. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
  14156. if v == nil {
  14157. e.e.EncodeNil()
  14158. return
  14159. }
  14160. ee, esep := e.e, e.hh.hasElemSeparators()
  14161. ee.WriteMapStart(len(v))
  14162. if e.h.Canonical {
  14163. v2 := make([]bool, len(v))
  14164. var i uint
  14165. for k := range v {
  14166. v2[i] = bool(k)
  14167. i++
  14168. }
  14169. sort.Sort(boolSlice(v2))
  14170. if esep {
  14171. for _, k2 := range v2 {
  14172. ee.WriteMapElemKey()
  14173. ee.EncodeBool(bool(k2))
  14174. ee.WriteMapElemValue()
  14175. ee.EncodeUint(uint64(v[bool(k2)]))
  14176. }
  14177. } else {
  14178. for _, k2 := range v2 {
  14179. ee.EncodeBool(bool(k2))
  14180. ee.EncodeUint(uint64(v[bool(k2)]))
  14181. }
  14182. }
  14183. } else {
  14184. if esep {
  14185. for k2, v2 := range v {
  14186. ee.WriteMapElemKey()
  14187. ee.EncodeBool(k2)
  14188. ee.WriteMapElemValue()
  14189. ee.EncodeUint(uint64(v2))
  14190. }
  14191. } else {
  14192. for k2, v2 := range v {
  14193. ee.EncodeBool(k2)
  14194. ee.EncodeUint(uint64(v2))
  14195. }
  14196. }
  14197. }
  14198. ee.WriteMapEnd()
  14199. }
  14200. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  14201. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  14202. }
  14203. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  14204. if v == nil {
  14205. e.e.EncodeNil()
  14206. return
  14207. }
  14208. ee, esep := e.e, e.hh.hasElemSeparators()
  14209. ee.WriteMapStart(len(v))
  14210. if e.h.Canonical {
  14211. v2 := make([]bool, len(v))
  14212. var i uint
  14213. for k := range v {
  14214. v2[i] = bool(k)
  14215. i++
  14216. }
  14217. sort.Sort(boolSlice(v2))
  14218. if esep {
  14219. for _, k2 := range v2 {
  14220. ee.WriteMapElemKey()
  14221. ee.EncodeBool(bool(k2))
  14222. ee.WriteMapElemValue()
  14223. e.encode(v[bool(k2)])
  14224. }
  14225. } else {
  14226. for _, k2 := range v2 {
  14227. ee.EncodeBool(bool(k2))
  14228. e.encode(v[bool(k2)])
  14229. }
  14230. }
  14231. } else {
  14232. if esep {
  14233. for k2, v2 := range v {
  14234. ee.WriteMapElemKey()
  14235. ee.EncodeBool(k2)
  14236. ee.WriteMapElemValue()
  14237. e.encode(v2)
  14238. }
  14239. } else {
  14240. for k2, v2 := range v {
  14241. ee.EncodeBool(k2)
  14242. e.encode(v2)
  14243. }
  14244. }
  14245. }
  14246. ee.WriteMapEnd()
  14247. }
  14248. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  14249. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  14250. }
  14251. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  14252. if v == nil {
  14253. e.e.EncodeNil()
  14254. return
  14255. }
  14256. ee, esep := e.e, e.hh.hasElemSeparators()
  14257. ee.WriteMapStart(len(v))
  14258. if e.h.Canonical {
  14259. v2 := make([]bool, len(v))
  14260. var i uint
  14261. for k := range v {
  14262. v2[i] = bool(k)
  14263. i++
  14264. }
  14265. sort.Sort(boolSlice(v2))
  14266. if esep {
  14267. for _, k2 := range v2 {
  14268. ee.WriteMapElemKey()
  14269. ee.EncodeBool(bool(k2))
  14270. ee.WriteMapElemValue()
  14271. ee.EncodeInt(int64(v[bool(k2)]))
  14272. }
  14273. } else {
  14274. for _, k2 := range v2 {
  14275. ee.EncodeBool(bool(k2))
  14276. ee.EncodeInt(int64(v[bool(k2)]))
  14277. }
  14278. }
  14279. } else {
  14280. if esep {
  14281. for k2, v2 := range v {
  14282. ee.WriteMapElemKey()
  14283. ee.EncodeBool(k2)
  14284. ee.WriteMapElemValue()
  14285. ee.EncodeInt(int64(v2))
  14286. }
  14287. } else {
  14288. for k2, v2 := range v {
  14289. ee.EncodeBool(k2)
  14290. ee.EncodeInt(int64(v2))
  14291. }
  14292. }
  14293. }
  14294. ee.WriteMapEnd()
  14295. }
  14296. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  14297. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  14298. }
  14299. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  14300. if v == nil {
  14301. e.e.EncodeNil()
  14302. return
  14303. }
  14304. ee, esep := e.e, e.hh.hasElemSeparators()
  14305. ee.WriteMapStart(len(v))
  14306. if e.h.Canonical {
  14307. v2 := make([]bool, len(v))
  14308. var i uint
  14309. for k := range v {
  14310. v2[i] = bool(k)
  14311. i++
  14312. }
  14313. sort.Sort(boolSlice(v2))
  14314. if esep {
  14315. for _, k2 := range v2 {
  14316. ee.WriteMapElemKey()
  14317. ee.EncodeBool(bool(k2))
  14318. ee.WriteMapElemValue()
  14319. ee.EncodeInt(int64(v[bool(k2)]))
  14320. }
  14321. } else {
  14322. for _, k2 := range v2 {
  14323. ee.EncodeBool(bool(k2))
  14324. ee.EncodeInt(int64(v[bool(k2)]))
  14325. }
  14326. }
  14327. } else {
  14328. if esep {
  14329. for k2, v2 := range v {
  14330. ee.WriteMapElemKey()
  14331. ee.EncodeBool(k2)
  14332. ee.WriteMapElemValue()
  14333. ee.EncodeInt(int64(v2))
  14334. }
  14335. } else {
  14336. for k2, v2 := range v {
  14337. ee.EncodeBool(k2)
  14338. ee.EncodeInt(int64(v2))
  14339. }
  14340. }
  14341. }
  14342. ee.WriteMapEnd()
  14343. }
  14344. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  14345. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  14346. }
  14347. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  14348. if v == nil {
  14349. e.e.EncodeNil()
  14350. return
  14351. }
  14352. ee, esep := e.e, e.hh.hasElemSeparators()
  14353. ee.WriteMapStart(len(v))
  14354. if e.h.Canonical {
  14355. v2 := make([]bool, len(v))
  14356. var i uint
  14357. for k := range v {
  14358. v2[i] = bool(k)
  14359. i++
  14360. }
  14361. sort.Sort(boolSlice(v2))
  14362. if esep {
  14363. for _, k2 := range v2 {
  14364. ee.WriteMapElemKey()
  14365. ee.EncodeBool(bool(k2))
  14366. ee.WriteMapElemValue()
  14367. ee.EncodeInt(int64(v[bool(k2)]))
  14368. }
  14369. } else {
  14370. for _, k2 := range v2 {
  14371. ee.EncodeBool(bool(k2))
  14372. ee.EncodeInt(int64(v[bool(k2)]))
  14373. }
  14374. }
  14375. } else {
  14376. if esep {
  14377. for k2, v2 := range v {
  14378. ee.WriteMapElemKey()
  14379. ee.EncodeBool(k2)
  14380. ee.WriteMapElemValue()
  14381. ee.EncodeInt(int64(v2))
  14382. }
  14383. } else {
  14384. for k2, v2 := range v {
  14385. ee.EncodeBool(k2)
  14386. ee.EncodeInt(int64(v2))
  14387. }
  14388. }
  14389. }
  14390. ee.WriteMapEnd()
  14391. }
  14392. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  14393. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  14394. }
  14395. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  14396. if v == nil {
  14397. e.e.EncodeNil()
  14398. return
  14399. }
  14400. ee, esep := e.e, e.hh.hasElemSeparators()
  14401. ee.WriteMapStart(len(v))
  14402. if e.h.Canonical {
  14403. v2 := make([]bool, len(v))
  14404. var i uint
  14405. for k := range v {
  14406. v2[i] = bool(k)
  14407. i++
  14408. }
  14409. sort.Sort(boolSlice(v2))
  14410. if esep {
  14411. for _, k2 := range v2 {
  14412. ee.WriteMapElemKey()
  14413. ee.EncodeBool(bool(k2))
  14414. ee.WriteMapElemValue()
  14415. ee.EncodeInt(int64(v[bool(k2)]))
  14416. }
  14417. } else {
  14418. for _, k2 := range v2 {
  14419. ee.EncodeBool(bool(k2))
  14420. ee.EncodeInt(int64(v[bool(k2)]))
  14421. }
  14422. }
  14423. } else {
  14424. if esep {
  14425. for k2, v2 := range v {
  14426. ee.WriteMapElemKey()
  14427. ee.EncodeBool(k2)
  14428. ee.WriteMapElemValue()
  14429. ee.EncodeInt(int64(v2))
  14430. }
  14431. } else {
  14432. for k2, v2 := range v {
  14433. ee.EncodeBool(k2)
  14434. ee.EncodeInt(int64(v2))
  14435. }
  14436. }
  14437. }
  14438. ee.WriteMapEnd()
  14439. }
  14440. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  14441. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  14442. }
  14443. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  14444. if v == nil {
  14445. e.e.EncodeNil()
  14446. return
  14447. }
  14448. ee, esep := e.e, e.hh.hasElemSeparators()
  14449. ee.WriteMapStart(len(v))
  14450. if e.h.Canonical {
  14451. v2 := make([]bool, len(v))
  14452. var i uint
  14453. for k := range v {
  14454. v2[i] = bool(k)
  14455. i++
  14456. }
  14457. sort.Sort(boolSlice(v2))
  14458. if esep {
  14459. for _, k2 := range v2 {
  14460. ee.WriteMapElemKey()
  14461. ee.EncodeBool(bool(k2))
  14462. ee.WriteMapElemValue()
  14463. ee.EncodeInt(int64(v[bool(k2)]))
  14464. }
  14465. } else {
  14466. for _, k2 := range v2 {
  14467. ee.EncodeBool(bool(k2))
  14468. ee.EncodeInt(int64(v[bool(k2)]))
  14469. }
  14470. }
  14471. } else {
  14472. if esep {
  14473. for k2, v2 := range v {
  14474. ee.WriteMapElemKey()
  14475. ee.EncodeBool(k2)
  14476. ee.WriteMapElemValue()
  14477. ee.EncodeInt(int64(v2))
  14478. }
  14479. } else {
  14480. for k2, v2 := range v {
  14481. ee.EncodeBool(k2)
  14482. ee.EncodeInt(int64(v2))
  14483. }
  14484. }
  14485. }
  14486. ee.WriteMapEnd()
  14487. }
  14488. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  14489. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  14490. }
  14491. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  14492. if v == nil {
  14493. e.e.EncodeNil()
  14494. return
  14495. }
  14496. ee, esep := e.e, e.hh.hasElemSeparators()
  14497. ee.WriteMapStart(len(v))
  14498. if e.h.Canonical {
  14499. v2 := make([]bool, len(v))
  14500. var i uint
  14501. for k := range v {
  14502. v2[i] = bool(k)
  14503. i++
  14504. }
  14505. sort.Sort(boolSlice(v2))
  14506. if esep {
  14507. for _, k2 := range v2 {
  14508. ee.WriteMapElemKey()
  14509. ee.EncodeBool(bool(k2))
  14510. ee.WriteMapElemValue()
  14511. ee.EncodeFloat32(v[bool(k2)])
  14512. }
  14513. } else {
  14514. for _, k2 := range v2 {
  14515. ee.EncodeBool(bool(k2))
  14516. ee.EncodeFloat32(v[bool(k2)])
  14517. }
  14518. }
  14519. } else {
  14520. if esep {
  14521. for k2, v2 := range v {
  14522. ee.WriteMapElemKey()
  14523. ee.EncodeBool(k2)
  14524. ee.WriteMapElemValue()
  14525. ee.EncodeFloat32(v2)
  14526. }
  14527. } else {
  14528. for k2, v2 := range v {
  14529. ee.EncodeBool(k2)
  14530. ee.EncodeFloat32(v2)
  14531. }
  14532. }
  14533. }
  14534. ee.WriteMapEnd()
  14535. }
  14536. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  14537. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  14538. }
  14539. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
  14540. if v == nil {
  14541. e.e.EncodeNil()
  14542. return
  14543. }
  14544. ee, esep := e.e, e.hh.hasElemSeparators()
  14545. ee.WriteMapStart(len(v))
  14546. if e.h.Canonical {
  14547. v2 := make([]bool, len(v))
  14548. var i uint
  14549. for k := range v {
  14550. v2[i] = bool(k)
  14551. i++
  14552. }
  14553. sort.Sort(boolSlice(v2))
  14554. if esep {
  14555. for _, k2 := range v2 {
  14556. ee.WriteMapElemKey()
  14557. ee.EncodeBool(bool(k2))
  14558. ee.WriteMapElemValue()
  14559. ee.EncodeFloat64(v[bool(k2)])
  14560. }
  14561. } else {
  14562. for _, k2 := range v2 {
  14563. ee.EncodeBool(bool(k2))
  14564. ee.EncodeFloat64(v[bool(k2)])
  14565. }
  14566. }
  14567. } else {
  14568. if esep {
  14569. for k2, v2 := range v {
  14570. ee.WriteMapElemKey()
  14571. ee.EncodeBool(k2)
  14572. ee.WriteMapElemValue()
  14573. ee.EncodeFloat64(v2)
  14574. }
  14575. } else {
  14576. for k2, v2 := range v {
  14577. ee.EncodeBool(k2)
  14578. ee.EncodeFloat64(v2)
  14579. }
  14580. }
  14581. }
  14582. ee.WriteMapEnd()
  14583. }
  14584. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  14585. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  14586. }
  14587. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  14588. if v == nil {
  14589. e.e.EncodeNil()
  14590. return
  14591. }
  14592. ee, esep := e.e, e.hh.hasElemSeparators()
  14593. ee.WriteMapStart(len(v))
  14594. if e.h.Canonical {
  14595. v2 := make([]bool, len(v))
  14596. var i uint
  14597. for k := range v {
  14598. v2[i] = bool(k)
  14599. i++
  14600. }
  14601. sort.Sort(boolSlice(v2))
  14602. if esep {
  14603. for _, k2 := range v2 {
  14604. ee.WriteMapElemKey()
  14605. ee.EncodeBool(bool(k2))
  14606. ee.WriteMapElemValue()
  14607. ee.EncodeBool(v[bool(k2)])
  14608. }
  14609. } else {
  14610. for _, k2 := range v2 {
  14611. ee.EncodeBool(bool(k2))
  14612. ee.EncodeBool(v[bool(k2)])
  14613. }
  14614. }
  14615. } else {
  14616. if esep {
  14617. for k2, v2 := range v {
  14618. ee.WriteMapElemKey()
  14619. ee.EncodeBool(k2)
  14620. ee.WriteMapElemValue()
  14621. ee.EncodeBool(v2)
  14622. }
  14623. } else {
  14624. for k2, v2 := range v {
  14625. ee.EncodeBool(k2)
  14626. ee.EncodeBool(v2)
  14627. }
  14628. }
  14629. }
  14630. ee.WriteMapEnd()
  14631. }
  14632. // -- decode
  14633. // -- -- fast path type switch
  14634. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  14635. var changed bool
  14636. switch v := iv.(type) {
  14637. case []interface{}:
  14638. var v2 []interface{}
  14639. v2, changed = fastpathTV.DecSliceIntfV(v, false, d)
  14640. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14641. copy(v, v2)
  14642. }
  14643. case *[]interface{}:
  14644. var v2 []interface{}
  14645. v2, changed = fastpathTV.DecSliceIntfV(*v, true, d)
  14646. if changed {
  14647. *v = v2
  14648. }
  14649. case []string:
  14650. var v2 []string
  14651. v2, changed = fastpathTV.DecSliceStringV(v, false, d)
  14652. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14653. copy(v, v2)
  14654. }
  14655. case *[]string:
  14656. var v2 []string
  14657. v2, changed = fastpathTV.DecSliceStringV(*v, true, d)
  14658. if changed {
  14659. *v = v2
  14660. }
  14661. case []float32:
  14662. var v2 []float32
  14663. v2, changed = fastpathTV.DecSliceFloat32V(v, false, d)
  14664. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14665. copy(v, v2)
  14666. }
  14667. case *[]float32:
  14668. var v2 []float32
  14669. v2, changed = fastpathTV.DecSliceFloat32V(*v, true, d)
  14670. if changed {
  14671. *v = v2
  14672. }
  14673. case []float64:
  14674. var v2 []float64
  14675. v2, changed = fastpathTV.DecSliceFloat64V(v, false, d)
  14676. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14677. copy(v, v2)
  14678. }
  14679. case *[]float64:
  14680. var v2 []float64
  14681. v2, changed = fastpathTV.DecSliceFloat64V(*v, true, d)
  14682. if changed {
  14683. *v = v2
  14684. }
  14685. case []uint:
  14686. var v2 []uint
  14687. v2, changed = fastpathTV.DecSliceUintV(v, false, d)
  14688. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14689. copy(v, v2)
  14690. }
  14691. case *[]uint:
  14692. var v2 []uint
  14693. v2, changed = fastpathTV.DecSliceUintV(*v, true, d)
  14694. if changed {
  14695. *v = v2
  14696. }
  14697. case []uint16:
  14698. var v2 []uint16
  14699. v2, changed = fastpathTV.DecSliceUint16V(v, false, d)
  14700. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14701. copy(v, v2)
  14702. }
  14703. case *[]uint16:
  14704. var v2 []uint16
  14705. v2, changed = fastpathTV.DecSliceUint16V(*v, true, d)
  14706. if changed {
  14707. *v = v2
  14708. }
  14709. case []uint32:
  14710. var v2 []uint32
  14711. v2, changed = fastpathTV.DecSliceUint32V(v, false, d)
  14712. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14713. copy(v, v2)
  14714. }
  14715. case *[]uint32:
  14716. var v2 []uint32
  14717. v2, changed = fastpathTV.DecSliceUint32V(*v, true, d)
  14718. if changed {
  14719. *v = v2
  14720. }
  14721. case []uint64:
  14722. var v2 []uint64
  14723. v2, changed = fastpathTV.DecSliceUint64V(v, false, d)
  14724. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14725. copy(v, v2)
  14726. }
  14727. case *[]uint64:
  14728. var v2 []uint64
  14729. v2, changed = fastpathTV.DecSliceUint64V(*v, true, d)
  14730. if changed {
  14731. *v = v2
  14732. }
  14733. case []uintptr:
  14734. var v2 []uintptr
  14735. v2, changed = fastpathTV.DecSliceUintptrV(v, false, d)
  14736. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14737. copy(v, v2)
  14738. }
  14739. case *[]uintptr:
  14740. var v2 []uintptr
  14741. v2, changed = fastpathTV.DecSliceUintptrV(*v, true, d)
  14742. if changed {
  14743. *v = v2
  14744. }
  14745. case []int:
  14746. var v2 []int
  14747. v2, changed = fastpathTV.DecSliceIntV(v, false, d)
  14748. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14749. copy(v, v2)
  14750. }
  14751. case *[]int:
  14752. var v2 []int
  14753. v2, changed = fastpathTV.DecSliceIntV(*v, true, d)
  14754. if changed {
  14755. *v = v2
  14756. }
  14757. case []int8:
  14758. var v2 []int8
  14759. v2, changed = fastpathTV.DecSliceInt8V(v, false, d)
  14760. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14761. copy(v, v2)
  14762. }
  14763. case *[]int8:
  14764. var v2 []int8
  14765. v2, changed = fastpathTV.DecSliceInt8V(*v, true, d)
  14766. if changed {
  14767. *v = v2
  14768. }
  14769. case []int16:
  14770. var v2 []int16
  14771. v2, changed = fastpathTV.DecSliceInt16V(v, false, d)
  14772. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14773. copy(v, v2)
  14774. }
  14775. case *[]int16:
  14776. var v2 []int16
  14777. v2, changed = fastpathTV.DecSliceInt16V(*v, true, d)
  14778. if changed {
  14779. *v = v2
  14780. }
  14781. case []int32:
  14782. var v2 []int32
  14783. v2, changed = fastpathTV.DecSliceInt32V(v, false, d)
  14784. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14785. copy(v, v2)
  14786. }
  14787. case *[]int32:
  14788. var v2 []int32
  14789. v2, changed = fastpathTV.DecSliceInt32V(*v, true, d)
  14790. if changed {
  14791. *v = v2
  14792. }
  14793. case []int64:
  14794. var v2 []int64
  14795. v2, changed = fastpathTV.DecSliceInt64V(v, false, d)
  14796. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14797. copy(v, v2)
  14798. }
  14799. case *[]int64:
  14800. var v2 []int64
  14801. v2, changed = fastpathTV.DecSliceInt64V(*v, true, d)
  14802. if changed {
  14803. *v = v2
  14804. }
  14805. case []bool:
  14806. var v2 []bool
  14807. v2, changed = fastpathTV.DecSliceBoolV(v, false, d)
  14808. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14809. copy(v, v2)
  14810. }
  14811. case *[]bool:
  14812. var v2 []bool
  14813. v2, changed = fastpathTV.DecSliceBoolV(*v, true, d)
  14814. if changed {
  14815. *v = v2
  14816. }
  14817. case map[interface{}]interface{}:
  14818. fastpathTV.DecMapIntfIntfV(v, false, d)
  14819. case *map[interface{}]interface{}:
  14820. var v2 map[interface{}]interface{}
  14821. v2, changed = fastpathTV.DecMapIntfIntfV(*v, true, d)
  14822. if changed {
  14823. *v = v2
  14824. }
  14825. case map[interface{}]string:
  14826. fastpathTV.DecMapIntfStringV(v, false, d)
  14827. case *map[interface{}]string:
  14828. var v2 map[interface{}]string
  14829. v2, changed = fastpathTV.DecMapIntfStringV(*v, true, d)
  14830. if changed {
  14831. *v = v2
  14832. }
  14833. case map[interface{}]uint:
  14834. fastpathTV.DecMapIntfUintV(v, false, d)
  14835. case *map[interface{}]uint:
  14836. var v2 map[interface{}]uint
  14837. v2, changed = fastpathTV.DecMapIntfUintV(*v, true, d)
  14838. if changed {
  14839. *v = v2
  14840. }
  14841. case map[interface{}]uint8:
  14842. fastpathTV.DecMapIntfUint8V(v, false, d)
  14843. case *map[interface{}]uint8:
  14844. var v2 map[interface{}]uint8
  14845. v2, changed = fastpathTV.DecMapIntfUint8V(*v, true, d)
  14846. if changed {
  14847. *v = v2
  14848. }
  14849. case map[interface{}]uint16:
  14850. fastpathTV.DecMapIntfUint16V(v, false, d)
  14851. case *map[interface{}]uint16:
  14852. var v2 map[interface{}]uint16
  14853. v2, changed = fastpathTV.DecMapIntfUint16V(*v, true, d)
  14854. if changed {
  14855. *v = v2
  14856. }
  14857. case map[interface{}]uint32:
  14858. fastpathTV.DecMapIntfUint32V(v, false, d)
  14859. case *map[interface{}]uint32:
  14860. var v2 map[interface{}]uint32
  14861. v2, changed = fastpathTV.DecMapIntfUint32V(*v, true, d)
  14862. if changed {
  14863. *v = v2
  14864. }
  14865. case map[interface{}]uint64:
  14866. fastpathTV.DecMapIntfUint64V(v, false, d)
  14867. case *map[interface{}]uint64:
  14868. var v2 map[interface{}]uint64
  14869. v2, changed = fastpathTV.DecMapIntfUint64V(*v, true, d)
  14870. if changed {
  14871. *v = v2
  14872. }
  14873. case map[interface{}]uintptr:
  14874. fastpathTV.DecMapIntfUintptrV(v, false, d)
  14875. case *map[interface{}]uintptr:
  14876. var v2 map[interface{}]uintptr
  14877. v2, changed = fastpathTV.DecMapIntfUintptrV(*v, true, d)
  14878. if changed {
  14879. *v = v2
  14880. }
  14881. case map[interface{}]int:
  14882. fastpathTV.DecMapIntfIntV(v, false, d)
  14883. case *map[interface{}]int:
  14884. var v2 map[interface{}]int
  14885. v2, changed = fastpathTV.DecMapIntfIntV(*v, true, d)
  14886. if changed {
  14887. *v = v2
  14888. }
  14889. case map[interface{}]int8:
  14890. fastpathTV.DecMapIntfInt8V(v, false, d)
  14891. case *map[interface{}]int8:
  14892. var v2 map[interface{}]int8
  14893. v2, changed = fastpathTV.DecMapIntfInt8V(*v, true, d)
  14894. if changed {
  14895. *v = v2
  14896. }
  14897. case map[interface{}]int16:
  14898. fastpathTV.DecMapIntfInt16V(v, false, d)
  14899. case *map[interface{}]int16:
  14900. var v2 map[interface{}]int16
  14901. v2, changed = fastpathTV.DecMapIntfInt16V(*v, true, d)
  14902. if changed {
  14903. *v = v2
  14904. }
  14905. case map[interface{}]int32:
  14906. fastpathTV.DecMapIntfInt32V(v, false, d)
  14907. case *map[interface{}]int32:
  14908. var v2 map[interface{}]int32
  14909. v2, changed = fastpathTV.DecMapIntfInt32V(*v, true, d)
  14910. if changed {
  14911. *v = v2
  14912. }
  14913. case map[interface{}]int64:
  14914. fastpathTV.DecMapIntfInt64V(v, false, d)
  14915. case *map[interface{}]int64:
  14916. var v2 map[interface{}]int64
  14917. v2, changed = fastpathTV.DecMapIntfInt64V(*v, true, d)
  14918. if changed {
  14919. *v = v2
  14920. }
  14921. case map[interface{}]float32:
  14922. fastpathTV.DecMapIntfFloat32V(v, false, d)
  14923. case *map[interface{}]float32:
  14924. var v2 map[interface{}]float32
  14925. v2, changed = fastpathTV.DecMapIntfFloat32V(*v, true, d)
  14926. if changed {
  14927. *v = v2
  14928. }
  14929. case map[interface{}]float64:
  14930. fastpathTV.DecMapIntfFloat64V(v, false, d)
  14931. case *map[interface{}]float64:
  14932. var v2 map[interface{}]float64
  14933. v2, changed = fastpathTV.DecMapIntfFloat64V(*v, true, d)
  14934. if changed {
  14935. *v = v2
  14936. }
  14937. case map[interface{}]bool:
  14938. fastpathTV.DecMapIntfBoolV(v, false, d)
  14939. case *map[interface{}]bool:
  14940. var v2 map[interface{}]bool
  14941. v2, changed = fastpathTV.DecMapIntfBoolV(*v, true, d)
  14942. if changed {
  14943. *v = v2
  14944. }
  14945. case map[string]interface{}:
  14946. fastpathTV.DecMapStringIntfV(v, false, d)
  14947. case *map[string]interface{}:
  14948. var v2 map[string]interface{}
  14949. v2, changed = fastpathTV.DecMapStringIntfV(*v, true, d)
  14950. if changed {
  14951. *v = v2
  14952. }
  14953. case map[string]string:
  14954. fastpathTV.DecMapStringStringV(v, false, d)
  14955. case *map[string]string:
  14956. var v2 map[string]string
  14957. v2, changed = fastpathTV.DecMapStringStringV(*v, true, d)
  14958. if changed {
  14959. *v = v2
  14960. }
  14961. case map[string]uint:
  14962. fastpathTV.DecMapStringUintV(v, false, d)
  14963. case *map[string]uint:
  14964. var v2 map[string]uint
  14965. v2, changed = fastpathTV.DecMapStringUintV(*v, true, d)
  14966. if changed {
  14967. *v = v2
  14968. }
  14969. case map[string]uint8:
  14970. fastpathTV.DecMapStringUint8V(v, false, d)
  14971. case *map[string]uint8:
  14972. var v2 map[string]uint8
  14973. v2, changed = fastpathTV.DecMapStringUint8V(*v, true, d)
  14974. if changed {
  14975. *v = v2
  14976. }
  14977. case map[string]uint16:
  14978. fastpathTV.DecMapStringUint16V(v, false, d)
  14979. case *map[string]uint16:
  14980. var v2 map[string]uint16
  14981. v2, changed = fastpathTV.DecMapStringUint16V(*v, true, d)
  14982. if changed {
  14983. *v = v2
  14984. }
  14985. case map[string]uint32:
  14986. fastpathTV.DecMapStringUint32V(v, false, d)
  14987. case *map[string]uint32:
  14988. var v2 map[string]uint32
  14989. v2, changed = fastpathTV.DecMapStringUint32V(*v, true, d)
  14990. if changed {
  14991. *v = v2
  14992. }
  14993. case map[string]uint64:
  14994. fastpathTV.DecMapStringUint64V(v, false, d)
  14995. case *map[string]uint64:
  14996. var v2 map[string]uint64
  14997. v2, changed = fastpathTV.DecMapStringUint64V(*v, true, d)
  14998. if changed {
  14999. *v = v2
  15000. }
  15001. case map[string]uintptr:
  15002. fastpathTV.DecMapStringUintptrV(v, false, d)
  15003. case *map[string]uintptr:
  15004. var v2 map[string]uintptr
  15005. v2, changed = fastpathTV.DecMapStringUintptrV(*v, true, d)
  15006. if changed {
  15007. *v = v2
  15008. }
  15009. case map[string]int:
  15010. fastpathTV.DecMapStringIntV(v, false, d)
  15011. case *map[string]int:
  15012. var v2 map[string]int
  15013. v2, changed = fastpathTV.DecMapStringIntV(*v, true, d)
  15014. if changed {
  15015. *v = v2
  15016. }
  15017. case map[string]int8:
  15018. fastpathTV.DecMapStringInt8V(v, false, d)
  15019. case *map[string]int8:
  15020. var v2 map[string]int8
  15021. v2, changed = fastpathTV.DecMapStringInt8V(*v, true, d)
  15022. if changed {
  15023. *v = v2
  15024. }
  15025. case map[string]int16:
  15026. fastpathTV.DecMapStringInt16V(v, false, d)
  15027. case *map[string]int16:
  15028. var v2 map[string]int16
  15029. v2, changed = fastpathTV.DecMapStringInt16V(*v, true, d)
  15030. if changed {
  15031. *v = v2
  15032. }
  15033. case map[string]int32:
  15034. fastpathTV.DecMapStringInt32V(v, false, d)
  15035. case *map[string]int32:
  15036. var v2 map[string]int32
  15037. v2, changed = fastpathTV.DecMapStringInt32V(*v, true, d)
  15038. if changed {
  15039. *v = v2
  15040. }
  15041. case map[string]int64:
  15042. fastpathTV.DecMapStringInt64V(v, false, d)
  15043. case *map[string]int64:
  15044. var v2 map[string]int64
  15045. v2, changed = fastpathTV.DecMapStringInt64V(*v, true, d)
  15046. if changed {
  15047. *v = v2
  15048. }
  15049. case map[string]float32:
  15050. fastpathTV.DecMapStringFloat32V(v, false, d)
  15051. case *map[string]float32:
  15052. var v2 map[string]float32
  15053. v2, changed = fastpathTV.DecMapStringFloat32V(*v, true, d)
  15054. if changed {
  15055. *v = v2
  15056. }
  15057. case map[string]float64:
  15058. fastpathTV.DecMapStringFloat64V(v, false, d)
  15059. case *map[string]float64:
  15060. var v2 map[string]float64
  15061. v2, changed = fastpathTV.DecMapStringFloat64V(*v, true, d)
  15062. if changed {
  15063. *v = v2
  15064. }
  15065. case map[string]bool:
  15066. fastpathTV.DecMapStringBoolV(v, false, d)
  15067. case *map[string]bool:
  15068. var v2 map[string]bool
  15069. v2, changed = fastpathTV.DecMapStringBoolV(*v, true, d)
  15070. if changed {
  15071. *v = v2
  15072. }
  15073. case map[float32]interface{}:
  15074. fastpathTV.DecMapFloat32IntfV(v, false, d)
  15075. case *map[float32]interface{}:
  15076. var v2 map[float32]interface{}
  15077. v2, changed = fastpathTV.DecMapFloat32IntfV(*v, true, d)
  15078. if changed {
  15079. *v = v2
  15080. }
  15081. case map[float32]string:
  15082. fastpathTV.DecMapFloat32StringV(v, false, d)
  15083. case *map[float32]string:
  15084. var v2 map[float32]string
  15085. v2, changed = fastpathTV.DecMapFloat32StringV(*v, true, d)
  15086. if changed {
  15087. *v = v2
  15088. }
  15089. case map[float32]uint:
  15090. fastpathTV.DecMapFloat32UintV(v, false, d)
  15091. case *map[float32]uint:
  15092. var v2 map[float32]uint
  15093. v2, changed = fastpathTV.DecMapFloat32UintV(*v, true, d)
  15094. if changed {
  15095. *v = v2
  15096. }
  15097. case map[float32]uint8:
  15098. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  15099. case *map[float32]uint8:
  15100. var v2 map[float32]uint8
  15101. v2, changed = fastpathTV.DecMapFloat32Uint8V(*v, true, d)
  15102. if changed {
  15103. *v = v2
  15104. }
  15105. case map[float32]uint16:
  15106. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  15107. case *map[float32]uint16:
  15108. var v2 map[float32]uint16
  15109. v2, changed = fastpathTV.DecMapFloat32Uint16V(*v, true, d)
  15110. if changed {
  15111. *v = v2
  15112. }
  15113. case map[float32]uint32:
  15114. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  15115. case *map[float32]uint32:
  15116. var v2 map[float32]uint32
  15117. v2, changed = fastpathTV.DecMapFloat32Uint32V(*v, true, d)
  15118. if changed {
  15119. *v = v2
  15120. }
  15121. case map[float32]uint64:
  15122. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  15123. case *map[float32]uint64:
  15124. var v2 map[float32]uint64
  15125. v2, changed = fastpathTV.DecMapFloat32Uint64V(*v, true, d)
  15126. if changed {
  15127. *v = v2
  15128. }
  15129. case map[float32]uintptr:
  15130. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  15131. case *map[float32]uintptr:
  15132. var v2 map[float32]uintptr
  15133. v2, changed = fastpathTV.DecMapFloat32UintptrV(*v, true, d)
  15134. if changed {
  15135. *v = v2
  15136. }
  15137. case map[float32]int:
  15138. fastpathTV.DecMapFloat32IntV(v, false, d)
  15139. case *map[float32]int:
  15140. var v2 map[float32]int
  15141. v2, changed = fastpathTV.DecMapFloat32IntV(*v, true, d)
  15142. if changed {
  15143. *v = v2
  15144. }
  15145. case map[float32]int8:
  15146. fastpathTV.DecMapFloat32Int8V(v, false, d)
  15147. case *map[float32]int8:
  15148. var v2 map[float32]int8
  15149. v2, changed = fastpathTV.DecMapFloat32Int8V(*v, true, d)
  15150. if changed {
  15151. *v = v2
  15152. }
  15153. case map[float32]int16:
  15154. fastpathTV.DecMapFloat32Int16V(v, false, d)
  15155. case *map[float32]int16:
  15156. var v2 map[float32]int16
  15157. v2, changed = fastpathTV.DecMapFloat32Int16V(*v, true, d)
  15158. if changed {
  15159. *v = v2
  15160. }
  15161. case map[float32]int32:
  15162. fastpathTV.DecMapFloat32Int32V(v, false, d)
  15163. case *map[float32]int32:
  15164. var v2 map[float32]int32
  15165. v2, changed = fastpathTV.DecMapFloat32Int32V(*v, true, d)
  15166. if changed {
  15167. *v = v2
  15168. }
  15169. case map[float32]int64:
  15170. fastpathTV.DecMapFloat32Int64V(v, false, d)
  15171. case *map[float32]int64:
  15172. var v2 map[float32]int64
  15173. v2, changed = fastpathTV.DecMapFloat32Int64V(*v, true, d)
  15174. if changed {
  15175. *v = v2
  15176. }
  15177. case map[float32]float32:
  15178. fastpathTV.DecMapFloat32Float32V(v, false, d)
  15179. case *map[float32]float32:
  15180. var v2 map[float32]float32
  15181. v2, changed = fastpathTV.DecMapFloat32Float32V(*v, true, d)
  15182. if changed {
  15183. *v = v2
  15184. }
  15185. case map[float32]float64:
  15186. fastpathTV.DecMapFloat32Float64V(v, false, d)
  15187. case *map[float32]float64:
  15188. var v2 map[float32]float64
  15189. v2, changed = fastpathTV.DecMapFloat32Float64V(*v, true, d)
  15190. if changed {
  15191. *v = v2
  15192. }
  15193. case map[float32]bool:
  15194. fastpathTV.DecMapFloat32BoolV(v, false, d)
  15195. case *map[float32]bool:
  15196. var v2 map[float32]bool
  15197. v2, changed = fastpathTV.DecMapFloat32BoolV(*v, true, d)
  15198. if changed {
  15199. *v = v2
  15200. }
  15201. case map[float64]interface{}:
  15202. fastpathTV.DecMapFloat64IntfV(v, false, d)
  15203. case *map[float64]interface{}:
  15204. var v2 map[float64]interface{}
  15205. v2, changed = fastpathTV.DecMapFloat64IntfV(*v, true, d)
  15206. if changed {
  15207. *v = v2
  15208. }
  15209. case map[float64]string:
  15210. fastpathTV.DecMapFloat64StringV(v, false, d)
  15211. case *map[float64]string:
  15212. var v2 map[float64]string
  15213. v2, changed = fastpathTV.DecMapFloat64StringV(*v, true, d)
  15214. if changed {
  15215. *v = v2
  15216. }
  15217. case map[float64]uint:
  15218. fastpathTV.DecMapFloat64UintV(v, false, d)
  15219. case *map[float64]uint:
  15220. var v2 map[float64]uint
  15221. v2, changed = fastpathTV.DecMapFloat64UintV(*v, true, d)
  15222. if changed {
  15223. *v = v2
  15224. }
  15225. case map[float64]uint8:
  15226. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  15227. case *map[float64]uint8:
  15228. var v2 map[float64]uint8
  15229. v2, changed = fastpathTV.DecMapFloat64Uint8V(*v, true, d)
  15230. if changed {
  15231. *v = v2
  15232. }
  15233. case map[float64]uint16:
  15234. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  15235. case *map[float64]uint16:
  15236. var v2 map[float64]uint16
  15237. v2, changed = fastpathTV.DecMapFloat64Uint16V(*v, true, d)
  15238. if changed {
  15239. *v = v2
  15240. }
  15241. case map[float64]uint32:
  15242. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  15243. case *map[float64]uint32:
  15244. var v2 map[float64]uint32
  15245. v2, changed = fastpathTV.DecMapFloat64Uint32V(*v, true, d)
  15246. if changed {
  15247. *v = v2
  15248. }
  15249. case map[float64]uint64:
  15250. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  15251. case *map[float64]uint64:
  15252. var v2 map[float64]uint64
  15253. v2, changed = fastpathTV.DecMapFloat64Uint64V(*v, true, d)
  15254. if changed {
  15255. *v = v2
  15256. }
  15257. case map[float64]uintptr:
  15258. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  15259. case *map[float64]uintptr:
  15260. var v2 map[float64]uintptr
  15261. v2, changed = fastpathTV.DecMapFloat64UintptrV(*v, true, d)
  15262. if changed {
  15263. *v = v2
  15264. }
  15265. case map[float64]int:
  15266. fastpathTV.DecMapFloat64IntV(v, false, d)
  15267. case *map[float64]int:
  15268. var v2 map[float64]int
  15269. v2, changed = fastpathTV.DecMapFloat64IntV(*v, true, d)
  15270. if changed {
  15271. *v = v2
  15272. }
  15273. case map[float64]int8:
  15274. fastpathTV.DecMapFloat64Int8V(v, false, d)
  15275. case *map[float64]int8:
  15276. var v2 map[float64]int8
  15277. v2, changed = fastpathTV.DecMapFloat64Int8V(*v, true, d)
  15278. if changed {
  15279. *v = v2
  15280. }
  15281. case map[float64]int16:
  15282. fastpathTV.DecMapFloat64Int16V(v, false, d)
  15283. case *map[float64]int16:
  15284. var v2 map[float64]int16
  15285. v2, changed = fastpathTV.DecMapFloat64Int16V(*v, true, d)
  15286. if changed {
  15287. *v = v2
  15288. }
  15289. case map[float64]int32:
  15290. fastpathTV.DecMapFloat64Int32V(v, false, d)
  15291. case *map[float64]int32:
  15292. var v2 map[float64]int32
  15293. v2, changed = fastpathTV.DecMapFloat64Int32V(*v, true, d)
  15294. if changed {
  15295. *v = v2
  15296. }
  15297. case map[float64]int64:
  15298. fastpathTV.DecMapFloat64Int64V(v, false, d)
  15299. case *map[float64]int64:
  15300. var v2 map[float64]int64
  15301. v2, changed = fastpathTV.DecMapFloat64Int64V(*v, true, d)
  15302. if changed {
  15303. *v = v2
  15304. }
  15305. case map[float64]float32:
  15306. fastpathTV.DecMapFloat64Float32V(v, false, d)
  15307. case *map[float64]float32:
  15308. var v2 map[float64]float32
  15309. v2, changed = fastpathTV.DecMapFloat64Float32V(*v, true, d)
  15310. if changed {
  15311. *v = v2
  15312. }
  15313. case map[float64]float64:
  15314. fastpathTV.DecMapFloat64Float64V(v, false, d)
  15315. case *map[float64]float64:
  15316. var v2 map[float64]float64
  15317. v2, changed = fastpathTV.DecMapFloat64Float64V(*v, true, d)
  15318. if changed {
  15319. *v = v2
  15320. }
  15321. case map[float64]bool:
  15322. fastpathTV.DecMapFloat64BoolV(v, false, d)
  15323. case *map[float64]bool:
  15324. var v2 map[float64]bool
  15325. v2, changed = fastpathTV.DecMapFloat64BoolV(*v, true, d)
  15326. if changed {
  15327. *v = v2
  15328. }
  15329. case map[uint]interface{}:
  15330. fastpathTV.DecMapUintIntfV(v, false, d)
  15331. case *map[uint]interface{}:
  15332. var v2 map[uint]interface{}
  15333. v2, changed = fastpathTV.DecMapUintIntfV(*v, true, d)
  15334. if changed {
  15335. *v = v2
  15336. }
  15337. case map[uint]string:
  15338. fastpathTV.DecMapUintStringV(v, false, d)
  15339. case *map[uint]string:
  15340. var v2 map[uint]string
  15341. v2, changed = fastpathTV.DecMapUintStringV(*v, true, d)
  15342. if changed {
  15343. *v = v2
  15344. }
  15345. case map[uint]uint:
  15346. fastpathTV.DecMapUintUintV(v, false, d)
  15347. case *map[uint]uint:
  15348. var v2 map[uint]uint
  15349. v2, changed = fastpathTV.DecMapUintUintV(*v, true, d)
  15350. if changed {
  15351. *v = v2
  15352. }
  15353. case map[uint]uint8:
  15354. fastpathTV.DecMapUintUint8V(v, false, d)
  15355. case *map[uint]uint8:
  15356. var v2 map[uint]uint8
  15357. v2, changed = fastpathTV.DecMapUintUint8V(*v, true, d)
  15358. if changed {
  15359. *v = v2
  15360. }
  15361. case map[uint]uint16:
  15362. fastpathTV.DecMapUintUint16V(v, false, d)
  15363. case *map[uint]uint16:
  15364. var v2 map[uint]uint16
  15365. v2, changed = fastpathTV.DecMapUintUint16V(*v, true, d)
  15366. if changed {
  15367. *v = v2
  15368. }
  15369. case map[uint]uint32:
  15370. fastpathTV.DecMapUintUint32V(v, false, d)
  15371. case *map[uint]uint32:
  15372. var v2 map[uint]uint32
  15373. v2, changed = fastpathTV.DecMapUintUint32V(*v, true, d)
  15374. if changed {
  15375. *v = v2
  15376. }
  15377. case map[uint]uint64:
  15378. fastpathTV.DecMapUintUint64V(v, false, d)
  15379. case *map[uint]uint64:
  15380. var v2 map[uint]uint64
  15381. v2, changed = fastpathTV.DecMapUintUint64V(*v, true, d)
  15382. if changed {
  15383. *v = v2
  15384. }
  15385. case map[uint]uintptr:
  15386. fastpathTV.DecMapUintUintptrV(v, false, d)
  15387. case *map[uint]uintptr:
  15388. var v2 map[uint]uintptr
  15389. v2, changed = fastpathTV.DecMapUintUintptrV(*v, true, d)
  15390. if changed {
  15391. *v = v2
  15392. }
  15393. case map[uint]int:
  15394. fastpathTV.DecMapUintIntV(v, false, d)
  15395. case *map[uint]int:
  15396. var v2 map[uint]int
  15397. v2, changed = fastpathTV.DecMapUintIntV(*v, true, d)
  15398. if changed {
  15399. *v = v2
  15400. }
  15401. case map[uint]int8:
  15402. fastpathTV.DecMapUintInt8V(v, false, d)
  15403. case *map[uint]int8:
  15404. var v2 map[uint]int8
  15405. v2, changed = fastpathTV.DecMapUintInt8V(*v, true, d)
  15406. if changed {
  15407. *v = v2
  15408. }
  15409. case map[uint]int16:
  15410. fastpathTV.DecMapUintInt16V(v, false, d)
  15411. case *map[uint]int16:
  15412. var v2 map[uint]int16
  15413. v2, changed = fastpathTV.DecMapUintInt16V(*v, true, d)
  15414. if changed {
  15415. *v = v2
  15416. }
  15417. case map[uint]int32:
  15418. fastpathTV.DecMapUintInt32V(v, false, d)
  15419. case *map[uint]int32:
  15420. var v2 map[uint]int32
  15421. v2, changed = fastpathTV.DecMapUintInt32V(*v, true, d)
  15422. if changed {
  15423. *v = v2
  15424. }
  15425. case map[uint]int64:
  15426. fastpathTV.DecMapUintInt64V(v, false, d)
  15427. case *map[uint]int64:
  15428. var v2 map[uint]int64
  15429. v2, changed = fastpathTV.DecMapUintInt64V(*v, true, d)
  15430. if changed {
  15431. *v = v2
  15432. }
  15433. case map[uint]float32:
  15434. fastpathTV.DecMapUintFloat32V(v, false, d)
  15435. case *map[uint]float32:
  15436. var v2 map[uint]float32
  15437. v2, changed = fastpathTV.DecMapUintFloat32V(*v, true, d)
  15438. if changed {
  15439. *v = v2
  15440. }
  15441. case map[uint]float64:
  15442. fastpathTV.DecMapUintFloat64V(v, false, d)
  15443. case *map[uint]float64:
  15444. var v2 map[uint]float64
  15445. v2, changed = fastpathTV.DecMapUintFloat64V(*v, true, d)
  15446. if changed {
  15447. *v = v2
  15448. }
  15449. case map[uint]bool:
  15450. fastpathTV.DecMapUintBoolV(v, false, d)
  15451. case *map[uint]bool:
  15452. var v2 map[uint]bool
  15453. v2, changed = fastpathTV.DecMapUintBoolV(*v, true, d)
  15454. if changed {
  15455. *v = v2
  15456. }
  15457. case map[uint8]interface{}:
  15458. fastpathTV.DecMapUint8IntfV(v, false, d)
  15459. case *map[uint8]interface{}:
  15460. var v2 map[uint8]interface{}
  15461. v2, changed = fastpathTV.DecMapUint8IntfV(*v, true, d)
  15462. if changed {
  15463. *v = v2
  15464. }
  15465. case map[uint8]string:
  15466. fastpathTV.DecMapUint8StringV(v, false, d)
  15467. case *map[uint8]string:
  15468. var v2 map[uint8]string
  15469. v2, changed = fastpathTV.DecMapUint8StringV(*v, true, d)
  15470. if changed {
  15471. *v = v2
  15472. }
  15473. case map[uint8]uint:
  15474. fastpathTV.DecMapUint8UintV(v, false, d)
  15475. case *map[uint8]uint:
  15476. var v2 map[uint8]uint
  15477. v2, changed = fastpathTV.DecMapUint8UintV(*v, true, d)
  15478. if changed {
  15479. *v = v2
  15480. }
  15481. case map[uint8]uint8:
  15482. fastpathTV.DecMapUint8Uint8V(v, false, d)
  15483. case *map[uint8]uint8:
  15484. var v2 map[uint8]uint8
  15485. v2, changed = fastpathTV.DecMapUint8Uint8V(*v, true, d)
  15486. if changed {
  15487. *v = v2
  15488. }
  15489. case map[uint8]uint16:
  15490. fastpathTV.DecMapUint8Uint16V(v, false, d)
  15491. case *map[uint8]uint16:
  15492. var v2 map[uint8]uint16
  15493. v2, changed = fastpathTV.DecMapUint8Uint16V(*v, true, d)
  15494. if changed {
  15495. *v = v2
  15496. }
  15497. case map[uint8]uint32:
  15498. fastpathTV.DecMapUint8Uint32V(v, false, d)
  15499. case *map[uint8]uint32:
  15500. var v2 map[uint8]uint32
  15501. v2, changed = fastpathTV.DecMapUint8Uint32V(*v, true, d)
  15502. if changed {
  15503. *v = v2
  15504. }
  15505. case map[uint8]uint64:
  15506. fastpathTV.DecMapUint8Uint64V(v, false, d)
  15507. case *map[uint8]uint64:
  15508. var v2 map[uint8]uint64
  15509. v2, changed = fastpathTV.DecMapUint8Uint64V(*v, true, d)
  15510. if changed {
  15511. *v = v2
  15512. }
  15513. case map[uint8]uintptr:
  15514. fastpathTV.DecMapUint8UintptrV(v, false, d)
  15515. case *map[uint8]uintptr:
  15516. var v2 map[uint8]uintptr
  15517. v2, changed = fastpathTV.DecMapUint8UintptrV(*v, true, d)
  15518. if changed {
  15519. *v = v2
  15520. }
  15521. case map[uint8]int:
  15522. fastpathTV.DecMapUint8IntV(v, false, d)
  15523. case *map[uint8]int:
  15524. var v2 map[uint8]int
  15525. v2, changed = fastpathTV.DecMapUint8IntV(*v, true, d)
  15526. if changed {
  15527. *v = v2
  15528. }
  15529. case map[uint8]int8:
  15530. fastpathTV.DecMapUint8Int8V(v, false, d)
  15531. case *map[uint8]int8:
  15532. var v2 map[uint8]int8
  15533. v2, changed = fastpathTV.DecMapUint8Int8V(*v, true, d)
  15534. if changed {
  15535. *v = v2
  15536. }
  15537. case map[uint8]int16:
  15538. fastpathTV.DecMapUint8Int16V(v, false, d)
  15539. case *map[uint8]int16:
  15540. var v2 map[uint8]int16
  15541. v2, changed = fastpathTV.DecMapUint8Int16V(*v, true, d)
  15542. if changed {
  15543. *v = v2
  15544. }
  15545. case map[uint8]int32:
  15546. fastpathTV.DecMapUint8Int32V(v, false, d)
  15547. case *map[uint8]int32:
  15548. var v2 map[uint8]int32
  15549. v2, changed = fastpathTV.DecMapUint8Int32V(*v, true, d)
  15550. if changed {
  15551. *v = v2
  15552. }
  15553. case map[uint8]int64:
  15554. fastpathTV.DecMapUint8Int64V(v, false, d)
  15555. case *map[uint8]int64:
  15556. var v2 map[uint8]int64
  15557. v2, changed = fastpathTV.DecMapUint8Int64V(*v, true, d)
  15558. if changed {
  15559. *v = v2
  15560. }
  15561. case map[uint8]float32:
  15562. fastpathTV.DecMapUint8Float32V(v, false, d)
  15563. case *map[uint8]float32:
  15564. var v2 map[uint8]float32
  15565. v2, changed = fastpathTV.DecMapUint8Float32V(*v, true, d)
  15566. if changed {
  15567. *v = v2
  15568. }
  15569. case map[uint8]float64:
  15570. fastpathTV.DecMapUint8Float64V(v, false, d)
  15571. case *map[uint8]float64:
  15572. var v2 map[uint8]float64
  15573. v2, changed = fastpathTV.DecMapUint8Float64V(*v, true, d)
  15574. if changed {
  15575. *v = v2
  15576. }
  15577. case map[uint8]bool:
  15578. fastpathTV.DecMapUint8BoolV(v, false, d)
  15579. case *map[uint8]bool:
  15580. var v2 map[uint8]bool
  15581. v2, changed = fastpathTV.DecMapUint8BoolV(*v, true, d)
  15582. if changed {
  15583. *v = v2
  15584. }
  15585. case map[uint16]interface{}:
  15586. fastpathTV.DecMapUint16IntfV(v, false, d)
  15587. case *map[uint16]interface{}:
  15588. var v2 map[uint16]interface{}
  15589. v2, changed = fastpathTV.DecMapUint16IntfV(*v, true, d)
  15590. if changed {
  15591. *v = v2
  15592. }
  15593. case map[uint16]string:
  15594. fastpathTV.DecMapUint16StringV(v, false, d)
  15595. case *map[uint16]string:
  15596. var v2 map[uint16]string
  15597. v2, changed = fastpathTV.DecMapUint16StringV(*v, true, d)
  15598. if changed {
  15599. *v = v2
  15600. }
  15601. case map[uint16]uint:
  15602. fastpathTV.DecMapUint16UintV(v, false, d)
  15603. case *map[uint16]uint:
  15604. var v2 map[uint16]uint
  15605. v2, changed = fastpathTV.DecMapUint16UintV(*v, true, d)
  15606. if changed {
  15607. *v = v2
  15608. }
  15609. case map[uint16]uint8:
  15610. fastpathTV.DecMapUint16Uint8V(v, false, d)
  15611. case *map[uint16]uint8:
  15612. var v2 map[uint16]uint8
  15613. v2, changed = fastpathTV.DecMapUint16Uint8V(*v, true, d)
  15614. if changed {
  15615. *v = v2
  15616. }
  15617. case map[uint16]uint16:
  15618. fastpathTV.DecMapUint16Uint16V(v, false, d)
  15619. case *map[uint16]uint16:
  15620. var v2 map[uint16]uint16
  15621. v2, changed = fastpathTV.DecMapUint16Uint16V(*v, true, d)
  15622. if changed {
  15623. *v = v2
  15624. }
  15625. case map[uint16]uint32:
  15626. fastpathTV.DecMapUint16Uint32V(v, false, d)
  15627. case *map[uint16]uint32:
  15628. var v2 map[uint16]uint32
  15629. v2, changed = fastpathTV.DecMapUint16Uint32V(*v, true, d)
  15630. if changed {
  15631. *v = v2
  15632. }
  15633. case map[uint16]uint64:
  15634. fastpathTV.DecMapUint16Uint64V(v, false, d)
  15635. case *map[uint16]uint64:
  15636. var v2 map[uint16]uint64
  15637. v2, changed = fastpathTV.DecMapUint16Uint64V(*v, true, d)
  15638. if changed {
  15639. *v = v2
  15640. }
  15641. case map[uint16]uintptr:
  15642. fastpathTV.DecMapUint16UintptrV(v, false, d)
  15643. case *map[uint16]uintptr:
  15644. var v2 map[uint16]uintptr
  15645. v2, changed = fastpathTV.DecMapUint16UintptrV(*v, true, d)
  15646. if changed {
  15647. *v = v2
  15648. }
  15649. case map[uint16]int:
  15650. fastpathTV.DecMapUint16IntV(v, false, d)
  15651. case *map[uint16]int:
  15652. var v2 map[uint16]int
  15653. v2, changed = fastpathTV.DecMapUint16IntV(*v, true, d)
  15654. if changed {
  15655. *v = v2
  15656. }
  15657. case map[uint16]int8:
  15658. fastpathTV.DecMapUint16Int8V(v, false, d)
  15659. case *map[uint16]int8:
  15660. var v2 map[uint16]int8
  15661. v2, changed = fastpathTV.DecMapUint16Int8V(*v, true, d)
  15662. if changed {
  15663. *v = v2
  15664. }
  15665. case map[uint16]int16:
  15666. fastpathTV.DecMapUint16Int16V(v, false, d)
  15667. case *map[uint16]int16:
  15668. var v2 map[uint16]int16
  15669. v2, changed = fastpathTV.DecMapUint16Int16V(*v, true, d)
  15670. if changed {
  15671. *v = v2
  15672. }
  15673. case map[uint16]int32:
  15674. fastpathTV.DecMapUint16Int32V(v, false, d)
  15675. case *map[uint16]int32:
  15676. var v2 map[uint16]int32
  15677. v2, changed = fastpathTV.DecMapUint16Int32V(*v, true, d)
  15678. if changed {
  15679. *v = v2
  15680. }
  15681. case map[uint16]int64:
  15682. fastpathTV.DecMapUint16Int64V(v, false, d)
  15683. case *map[uint16]int64:
  15684. var v2 map[uint16]int64
  15685. v2, changed = fastpathTV.DecMapUint16Int64V(*v, true, d)
  15686. if changed {
  15687. *v = v2
  15688. }
  15689. case map[uint16]float32:
  15690. fastpathTV.DecMapUint16Float32V(v, false, d)
  15691. case *map[uint16]float32:
  15692. var v2 map[uint16]float32
  15693. v2, changed = fastpathTV.DecMapUint16Float32V(*v, true, d)
  15694. if changed {
  15695. *v = v2
  15696. }
  15697. case map[uint16]float64:
  15698. fastpathTV.DecMapUint16Float64V(v, false, d)
  15699. case *map[uint16]float64:
  15700. var v2 map[uint16]float64
  15701. v2, changed = fastpathTV.DecMapUint16Float64V(*v, true, d)
  15702. if changed {
  15703. *v = v2
  15704. }
  15705. case map[uint16]bool:
  15706. fastpathTV.DecMapUint16BoolV(v, false, d)
  15707. case *map[uint16]bool:
  15708. var v2 map[uint16]bool
  15709. v2, changed = fastpathTV.DecMapUint16BoolV(*v, true, d)
  15710. if changed {
  15711. *v = v2
  15712. }
  15713. case map[uint32]interface{}:
  15714. fastpathTV.DecMapUint32IntfV(v, false, d)
  15715. case *map[uint32]interface{}:
  15716. var v2 map[uint32]interface{}
  15717. v2, changed = fastpathTV.DecMapUint32IntfV(*v, true, d)
  15718. if changed {
  15719. *v = v2
  15720. }
  15721. case map[uint32]string:
  15722. fastpathTV.DecMapUint32StringV(v, false, d)
  15723. case *map[uint32]string:
  15724. var v2 map[uint32]string
  15725. v2, changed = fastpathTV.DecMapUint32StringV(*v, true, d)
  15726. if changed {
  15727. *v = v2
  15728. }
  15729. case map[uint32]uint:
  15730. fastpathTV.DecMapUint32UintV(v, false, d)
  15731. case *map[uint32]uint:
  15732. var v2 map[uint32]uint
  15733. v2, changed = fastpathTV.DecMapUint32UintV(*v, true, d)
  15734. if changed {
  15735. *v = v2
  15736. }
  15737. case map[uint32]uint8:
  15738. fastpathTV.DecMapUint32Uint8V(v, false, d)
  15739. case *map[uint32]uint8:
  15740. var v2 map[uint32]uint8
  15741. v2, changed = fastpathTV.DecMapUint32Uint8V(*v, true, d)
  15742. if changed {
  15743. *v = v2
  15744. }
  15745. case map[uint32]uint16:
  15746. fastpathTV.DecMapUint32Uint16V(v, false, d)
  15747. case *map[uint32]uint16:
  15748. var v2 map[uint32]uint16
  15749. v2, changed = fastpathTV.DecMapUint32Uint16V(*v, true, d)
  15750. if changed {
  15751. *v = v2
  15752. }
  15753. case map[uint32]uint32:
  15754. fastpathTV.DecMapUint32Uint32V(v, false, d)
  15755. case *map[uint32]uint32:
  15756. var v2 map[uint32]uint32
  15757. v2, changed = fastpathTV.DecMapUint32Uint32V(*v, true, d)
  15758. if changed {
  15759. *v = v2
  15760. }
  15761. case map[uint32]uint64:
  15762. fastpathTV.DecMapUint32Uint64V(v, false, d)
  15763. case *map[uint32]uint64:
  15764. var v2 map[uint32]uint64
  15765. v2, changed = fastpathTV.DecMapUint32Uint64V(*v, true, d)
  15766. if changed {
  15767. *v = v2
  15768. }
  15769. case map[uint32]uintptr:
  15770. fastpathTV.DecMapUint32UintptrV(v, false, d)
  15771. case *map[uint32]uintptr:
  15772. var v2 map[uint32]uintptr
  15773. v2, changed = fastpathTV.DecMapUint32UintptrV(*v, true, d)
  15774. if changed {
  15775. *v = v2
  15776. }
  15777. case map[uint32]int:
  15778. fastpathTV.DecMapUint32IntV(v, false, d)
  15779. case *map[uint32]int:
  15780. var v2 map[uint32]int
  15781. v2, changed = fastpathTV.DecMapUint32IntV(*v, true, d)
  15782. if changed {
  15783. *v = v2
  15784. }
  15785. case map[uint32]int8:
  15786. fastpathTV.DecMapUint32Int8V(v, false, d)
  15787. case *map[uint32]int8:
  15788. var v2 map[uint32]int8
  15789. v2, changed = fastpathTV.DecMapUint32Int8V(*v, true, d)
  15790. if changed {
  15791. *v = v2
  15792. }
  15793. case map[uint32]int16:
  15794. fastpathTV.DecMapUint32Int16V(v, false, d)
  15795. case *map[uint32]int16:
  15796. var v2 map[uint32]int16
  15797. v2, changed = fastpathTV.DecMapUint32Int16V(*v, true, d)
  15798. if changed {
  15799. *v = v2
  15800. }
  15801. case map[uint32]int32:
  15802. fastpathTV.DecMapUint32Int32V(v, false, d)
  15803. case *map[uint32]int32:
  15804. var v2 map[uint32]int32
  15805. v2, changed = fastpathTV.DecMapUint32Int32V(*v, true, d)
  15806. if changed {
  15807. *v = v2
  15808. }
  15809. case map[uint32]int64:
  15810. fastpathTV.DecMapUint32Int64V(v, false, d)
  15811. case *map[uint32]int64:
  15812. var v2 map[uint32]int64
  15813. v2, changed = fastpathTV.DecMapUint32Int64V(*v, true, d)
  15814. if changed {
  15815. *v = v2
  15816. }
  15817. case map[uint32]float32:
  15818. fastpathTV.DecMapUint32Float32V(v, false, d)
  15819. case *map[uint32]float32:
  15820. var v2 map[uint32]float32
  15821. v2, changed = fastpathTV.DecMapUint32Float32V(*v, true, d)
  15822. if changed {
  15823. *v = v2
  15824. }
  15825. case map[uint32]float64:
  15826. fastpathTV.DecMapUint32Float64V(v, false, d)
  15827. case *map[uint32]float64:
  15828. var v2 map[uint32]float64
  15829. v2, changed = fastpathTV.DecMapUint32Float64V(*v, true, d)
  15830. if changed {
  15831. *v = v2
  15832. }
  15833. case map[uint32]bool:
  15834. fastpathTV.DecMapUint32BoolV(v, false, d)
  15835. case *map[uint32]bool:
  15836. var v2 map[uint32]bool
  15837. v2, changed = fastpathTV.DecMapUint32BoolV(*v, true, d)
  15838. if changed {
  15839. *v = v2
  15840. }
  15841. case map[uint64]interface{}:
  15842. fastpathTV.DecMapUint64IntfV(v, false, d)
  15843. case *map[uint64]interface{}:
  15844. var v2 map[uint64]interface{}
  15845. v2, changed = fastpathTV.DecMapUint64IntfV(*v, true, d)
  15846. if changed {
  15847. *v = v2
  15848. }
  15849. case map[uint64]string:
  15850. fastpathTV.DecMapUint64StringV(v, false, d)
  15851. case *map[uint64]string:
  15852. var v2 map[uint64]string
  15853. v2, changed = fastpathTV.DecMapUint64StringV(*v, true, d)
  15854. if changed {
  15855. *v = v2
  15856. }
  15857. case map[uint64]uint:
  15858. fastpathTV.DecMapUint64UintV(v, false, d)
  15859. case *map[uint64]uint:
  15860. var v2 map[uint64]uint
  15861. v2, changed = fastpathTV.DecMapUint64UintV(*v, true, d)
  15862. if changed {
  15863. *v = v2
  15864. }
  15865. case map[uint64]uint8:
  15866. fastpathTV.DecMapUint64Uint8V(v, false, d)
  15867. case *map[uint64]uint8:
  15868. var v2 map[uint64]uint8
  15869. v2, changed = fastpathTV.DecMapUint64Uint8V(*v, true, d)
  15870. if changed {
  15871. *v = v2
  15872. }
  15873. case map[uint64]uint16:
  15874. fastpathTV.DecMapUint64Uint16V(v, false, d)
  15875. case *map[uint64]uint16:
  15876. var v2 map[uint64]uint16
  15877. v2, changed = fastpathTV.DecMapUint64Uint16V(*v, true, d)
  15878. if changed {
  15879. *v = v2
  15880. }
  15881. case map[uint64]uint32:
  15882. fastpathTV.DecMapUint64Uint32V(v, false, d)
  15883. case *map[uint64]uint32:
  15884. var v2 map[uint64]uint32
  15885. v2, changed = fastpathTV.DecMapUint64Uint32V(*v, true, d)
  15886. if changed {
  15887. *v = v2
  15888. }
  15889. case map[uint64]uint64:
  15890. fastpathTV.DecMapUint64Uint64V(v, false, d)
  15891. case *map[uint64]uint64:
  15892. var v2 map[uint64]uint64
  15893. v2, changed = fastpathTV.DecMapUint64Uint64V(*v, true, d)
  15894. if changed {
  15895. *v = v2
  15896. }
  15897. case map[uint64]uintptr:
  15898. fastpathTV.DecMapUint64UintptrV(v, false, d)
  15899. case *map[uint64]uintptr:
  15900. var v2 map[uint64]uintptr
  15901. v2, changed = fastpathTV.DecMapUint64UintptrV(*v, true, d)
  15902. if changed {
  15903. *v = v2
  15904. }
  15905. case map[uint64]int:
  15906. fastpathTV.DecMapUint64IntV(v, false, d)
  15907. case *map[uint64]int:
  15908. var v2 map[uint64]int
  15909. v2, changed = fastpathTV.DecMapUint64IntV(*v, true, d)
  15910. if changed {
  15911. *v = v2
  15912. }
  15913. case map[uint64]int8:
  15914. fastpathTV.DecMapUint64Int8V(v, false, d)
  15915. case *map[uint64]int8:
  15916. var v2 map[uint64]int8
  15917. v2, changed = fastpathTV.DecMapUint64Int8V(*v, true, d)
  15918. if changed {
  15919. *v = v2
  15920. }
  15921. case map[uint64]int16:
  15922. fastpathTV.DecMapUint64Int16V(v, false, d)
  15923. case *map[uint64]int16:
  15924. var v2 map[uint64]int16
  15925. v2, changed = fastpathTV.DecMapUint64Int16V(*v, true, d)
  15926. if changed {
  15927. *v = v2
  15928. }
  15929. case map[uint64]int32:
  15930. fastpathTV.DecMapUint64Int32V(v, false, d)
  15931. case *map[uint64]int32:
  15932. var v2 map[uint64]int32
  15933. v2, changed = fastpathTV.DecMapUint64Int32V(*v, true, d)
  15934. if changed {
  15935. *v = v2
  15936. }
  15937. case map[uint64]int64:
  15938. fastpathTV.DecMapUint64Int64V(v, false, d)
  15939. case *map[uint64]int64:
  15940. var v2 map[uint64]int64
  15941. v2, changed = fastpathTV.DecMapUint64Int64V(*v, true, d)
  15942. if changed {
  15943. *v = v2
  15944. }
  15945. case map[uint64]float32:
  15946. fastpathTV.DecMapUint64Float32V(v, false, d)
  15947. case *map[uint64]float32:
  15948. var v2 map[uint64]float32
  15949. v2, changed = fastpathTV.DecMapUint64Float32V(*v, true, d)
  15950. if changed {
  15951. *v = v2
  15952. }
  15953. case map[uint64]float64:
  15954. fastpathTV.DecMapUint64Float64V(v, false, d)
  15955. case *map[uint64]float64:
  15956. var v2 map[uint64]float64
  15957. v2, changed = fastpathTV.DecMapUint64Float64V(*v, true, d)
  15958. if changed {
  15959. *v = v2
  15960. }
  15961. case map[uint64]bool:
  15962. fastpathTV.DecMapUint64BoolV(v, false, d)
  15963. case *map[uint64]bool:
  15964. var v2 map[uint64]bool
  15965. v2, changed = fastpathTV.DecMapUint64BoolV(*v, true, d)
  15966. if changed {
  15967. *v = v2
  15968. }
  15969. case map[uintptr]interface{}:
  15970. fastpathTV.DecMapUintptrIntfV(v, false, d)
  15971. case *map[uintptr]interface{}:
  15972. var v2 map[uintptr]interface{}
  15973. v2, changed = fastpathTV.DecMapUintptrIntfV(*v, true, d)
  15974. if changed {
  15975. *v = v2
  15976. }
  15977. case map[uintptr]string:
  15978. fastpathTV.DecMapUintptrStringV(v, false, d)
  15979. case *map[uintptr]string:
  15980. var v2 map[uintptr]string
  15981. v2, changed = fastpathTV.DecMapUintptrStringV(*v, true, d)
  15982. if changed {
  15983. *v = v2
  15984. }
  15985. case map[uintptr]uint:
  15986. fastpathTV.DecMapUintptrUintV(v, false, d)
  15987. case *map[uintptr]uint:
  15988. var v2 map[uintptr]uint
  15989. v2, changed = fastpathTV.DecMapUintptrUintV(*v, true, d)
  15990. if changed {
  15991. *v = v2
  15992. }
  15993. case map[uintptr]uint8:
  15994. fastpathTV.DecMapUintptrUint8V(v, false, d)
  15995. case *map[uintptr]uint8:
  15996. var v2 map[uintptr]uint8
  15997. v2, changed = fastpathTV.DecMapUintptrUint8V(*v, true, d)
  15998. if changed {
  15999. *v = v2
  16000. }
  16001. case map[uintptr]uint16:
  16002. fastpathTV.DecMapUintptrUint16V(v, false, d)
  16003. case *map[uintptr]uint16:
  16004. var v2 map[uintptr]uint16
  16005. v2, changed = fastpathTV.DecMapUintptrUint16V(*v, true, d)
  16006. if changed {
  16007. *v = v2
  16008. }
  16009. case map[uintptr]uint32:
  16010. fastpathTV.DecMapUintptrUint32V(v, false, d)
  16011. case *map[uintptr]uint32:
  16012. var v2 map[uintptr]uint32
  16013. v2, changed = fastpathTV.DecMapUintptrUint32V(*v, true, d)
  16014. if changed {
  16015. *v = v2
  16016. }
  16017. case map[uintptr]uint64:
  16018. fastpathTV.DecMapUintptrUint64V(v, false, d)
  16019. case *map[uintptr]uint64:
  16020. var v2 map[uintptr]uint64
  16021. v2, changed = fastpathTV.DecMapUintptrUint64V(*v, true, d)
  16022. if changed {
  16023. *v = v2
  16024. }
  16025. case map[uintptr]uintptr:
  16026. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  16027. case *map[uintptr]uintptr:
  16028. var v2 map[uintptr]uintptr
  16029. v2, changed = fastpathTV.DecMapUintptrUintptrV(*v, true, d)
  16030. if changed {
  16031. *v = v2
  16032. }
  16033. case map[uintptr]int:
  16034. fastpathTV.DecMapUintptrIntV(v, false, d)
  16035. case *map[uintptr]int:
  16036. var v2 map[uintptr]int
  16037. v2, changed = fastpathTV.DecMapUintptrIntV(*v, true, d)
  16038. if changed {
  16039. *v = v2
  16040. }
  16041. case map[uintptr]int8:
  16042. fastpathTV.DecMapUintptrInt8V(v, false, d)
  16043. case *map[uintptr]int8:
  16044. var v2 map[uintptr]int8
  16045. v2, changed = fastpathTV.DecMapUintptrInt8V(*v, true, d)
  16046. if changed {
  16047. *v = v2
  16048. }
  16049. case map[uintptr]int16:
  16050. fastpathTV.DecMapUintptrInt16V(v, false, d)
  16051. case *map[uintptr]int16:
  16052. var v2 map[uintptr]int16
  16053. v2, changed = fastpathTV.DecMapUintptrInt16V(*v, true, d)
  16054. if changed {
  16055. *v = v2
  16056. }
  16057. case map[uintptr]int32:
  16058. fastpathTV.DecMapUintptrInt32V(v, false, d)
  16059. case *map[uintptr]int32:
  16060. var v2 map[uintptr]int32
  16061. v2, changed = fastpathTV.DecMapUintptrInt32V(*v, true, d)
  16062. if changed {
  16063. *v = v2
  16064. }
  16065. case map[uintptr]int64:
  16066. fastpathTV.DecMapUintptrInt64V(v, false, d)
  16067. case *map[uintptr]int64:
  16068. var v2 map[uintptr]int64
  16069. v2, changed = fastpathTV.DecMapUintptrInt64V(*v, true, d)
  16070. if changed {
  16071. *v = v2
  16072. }
  16073. case map[uintptr]float32:
  16074. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  16075. case *map[uintptr]float32:
  16076. var v2 map[uintptr]float32
  16077. v2, changed = fastpathTV.DecMapUintptrFloat32V(*v, true, d)
  16078. if changed {
  16079. *v = v2
  16080. }
  16081. case map[uintptr]float64:
  16082. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  16083. case *map[uintptr]float64:
  16084. var v2 map[uintptr]float64
  16085. v2, changed = fastpathTV.DecMapUintptrFloat64V(*v, true, d)
  16086. if changed {
  16087. *v = v2
  16088. }
  16089. case map[uintptr]bool:
  16090. fastpathTV.DecMapUintptrBoolV(v, false, d)
  16091. case *map[uintptr]bool:
  16092. var v2 map[uintptr]bool
  16093. v2, changed = fastpathTV.DecMapUintptrBoolV(*v, true, d)
  16094. if changed {
  16095. *v = v2
  16096. }
  16097. case map[int]interface{}:
  16098. fastpathTV.DecMapIntIntfV(v, false, d)
  16099. case *map[int]interface{}:
  16100. var v2 map[int]interface{}
  16101. v2, changed = fastpathTV.DecMapIntIntfV(*v, true, d)
  16102. if changed {
  16103. *v = v2
  16104. }
  16105. case map[int]string:
  16106. fastpathTV.DecMapIntStringV(v, false, d)
  16107. case *map[int]string:
  16108. var v2 map[int]string
  16109. v2, changed = fastpathTV.DecMapIntStringV(*v, true, d)
  16110. if changed {
  16111. *v = v2
  16112. }
  16113. case map[int]uint:
  16114. fastpathTV.DecMapIntUintV(v, false, d)
  16115. case *map[int]uint:
  16116. var v2 map[int]uint
  16117. v2, changed = fastpathTV.DecMapIntUintV(*v, true, d)
  16118. if changed {
  16119. *v = v2
  16120. }
  16121. case map[int]uint8:
  16122. fastpathTV.DecMapIntUint8V(v, false, d)
  16123. case *map[int]uint8:
  16124. var v2 map[int]uint8
  16125. v2, changed = fastpathTV.DecMapIntUint8V(*v, true, d)
  16126. if changed {
  16127. *v = v2
  16128. }
  16129. case map[int]uint16:
  16130. fastpathTV.DecMapIntUint16V(v, false, d)
  16131. case *map[int]uint16:
  16132. var v2 map[int]uint16
  16133. v2, changed = fastpathTV.DecMapIntUint16V(*v, true, d)
  16134. if changed {
  16135. *v = v2
  16136. }
  16137. case map[int]uint32:
  16138. fastpathTV.DecMapIntUint32V(v, false, d)
  16139. case *map[int]uint32:
  16140. var v2 map[int]uint32
  16141. v2, changed = fastpathTV.DecMapIntUint32V(*v, true, d)
  16142. if changed {
  16143. *v = v2
  16144. }
  16145. case map[int]uint64:
  16146. fastpathTV.DecMapIntUint64V(v, false, d)
  16147. case *map[int]uint64:
  16148. var v2 map[int]uint64
  16149. v2, changed = fastpathTV.DecMapIntUint64V(*v, true, d)
  16150. if changed {
  16151. *v = v2
  16152. }
  16153. case map[int]uintptr:
  16154. fastpathTV.DecMapIntUintptrV(v, false, d)
  16155. case *map[int]uintptr:
  16156. var v2 map[int]uintptr
  16157. v2, changed = fastpathTV.DecMapIntUintptrV(*v, true, d)
  16158. if changed {
  16159. *v = v2
  16160. }
  16161. case map[int]int:
  16162. fastpathTV.DecMapIntIntV(v, false, d)
  16163. case *map[int]int:
  16164. var v2 map[int]int
  16165. v2, changed = fastpathTV.DecMapIntIntV(*v, true, d)
  16166. if changed {
  16167. *v = v2
  16168. }
  16169. case map[int]int8:
  16170. fastpathTV.DecMapIntInt8V(v, false, d)
  16171. case *map[int]int8:
  16172. var v2 map[int]int8
  16173. v2, changed = fastpathTV.DecMapIntInt8V(*v, true, d)
  16174. if changed {
  16175. *v = v2
  16176. }
  16177. case map[int]int16:
  16178. fastpathTV.DecMapIntInt16V(v, false, d)
  16179. case *map[int]int16:
  16180. var v2 map[int]int16
  16181. v2, changed = fastpathTV.DecMapIntInt16V(*v, true, d)
  16182. if changed {
  16183. *v = v2
  16184. }
  16185. case map[int]int32:
  16186. fastpathTV.DecMapIntInt32V(v, false, d)
  16187. case *map[int]int32:
  16188. var v2 map[int]int32
  16189. v2, changed = fastpathTV.DecMapIntInt32V(*v, true, d)
  16190. if changed {
  16191. *v = v2
  16192. }
  16193. case map[int]int64:
  16194. fastpathTV.DecMapIntInt64V(v, false, d)
  16195. case *map[int]int64:
  16196. var v2 map[int]int64
  16197. v2, changed = fastpathTV.DecMapIntInt64V(*v, true, d)
  16198. if changed {
  16199. *v = v2
  16200. }
  16201. case map[int]float32:
  16202. fastpathTV.DecMapIntFloat32V(v, false, d)
  16203. case *map[int]float32:
  16204. var v2 map[int]float32
  16205. v2, changed = fastpathTV.DecMapIntFloat32V(*v, true, d)
  16206. if changed {
  16207. *v = v2
  16208. }
  16209. case map[int]float64:
  16210. fastpathTV.DecMapIntFloat64V(v, false, d)
  16211. case *map[int]float64:
  16212. var v2 map[int]float64
  16213. v2, changed = fastpathTV.DecMapIntFloat64V(*v, true, d)
  16214. if changed {
  16215. *v = v2
  16216. }
  16217. case map[int]bool:
  16218. fastpathTV.DecMapIntBoolV(v, false, d)
  16219. case *map[int]bool:
  16220. var v2 map[int]bool
  16221. v2, changed = fastpathTV.DecMapIntBoolV(*v, true, d)
  16222. if changed {
  16223. *v = v2
  16224. }
  16225. case map[int8]interface{}:
  16226. fastpathTV.DecMapInt8IntfV(v, false, d)
  16227. case *map[int8]interface{}:
  16228. var v2 map[int8]interface{}
  16229. v2, changed = fastpathTV.DecMapInt8IntfV(*v, true, d)
  16230. if changed {
  16231. *v = v2
  16232. }
  16233. case map[int8]string:
  16234. fastpathTV.DecMapInt8StringV(v, false, d)
  16235. case *map[int8]string:
  16236. var v2 map[int8]string
  16237. v2, changed = fastpathTV.DecMapInt8StringV(*v, true, d)
  16238. if changed {
  16239. *v = v2
  16240. }
  16241. case map[int8]uint:
  16242. fastpathTV.DecMapInt8UintV(v, false, d)
  16243. case *map[int8]uint:
  16244. var v2 map[int8]uint
  16245. v2, changed = fastpathTV.DecMapInt8UintV(*v, true, d)
  16246. if changed {
  16247. *v = v2
  16248. }
  16249. case map[int8]uint8:
  16250. fastpathTV.DecMapInt8Uint8V(v, false, d)
  16251. case *map[int8]uint8:
  16252. var v2 map[int8]uint8
  16253. v2, changed = fastpathTV.DecMapInt8Uint8V(*v, true, d)
  16254. if changed {
  16255. *v = v2
  16256. }
  16257. case map[int8]uint16:
  16258. fastpathTV.DecMapInt8Uint16V(v, false, d)
  16259. case *map[int8]uint16:
  16260. var v2 map[int8]uint16
  16261. v2, changed = fastpathTV.DecMapInt8Uint16V(*v, true, d)
  16262. if changed {
  16263. *v = v2
  16264. }
  16265. case map[int8]uint32:
  16266. fastpathTV.DecMapInt8Uint32V(v, false, d)
  16267. case *map[int8]uint32:
  16268. var v2 map[int8]uint32
  16269. v2, changed = fastpathTV.DecMapInt8Uint32V(*v, true, d)
  16270. if changed {
  16271. *v = v2
  16272. }
  16273. case map[int8]uint64:
  16274. fastpathTV.DecMapInt8Uint64V(v, false, d)
  16275. case *map[int8]uint64:
  16276. var v2 map[int8]uint64
  16277. v2, changed = fastpathTV.DecMapInt8Uint64V(*v, true, d)
  16278. if changed {
  16279. *v = v2
  16280. }
  16281. case map[int8]uintptr:
  16282. fastpathTV.DecMapInt8UintptrV(v, false, d)
  16283. case *map[int8]uintptr:
  16284. var v2 map[int8]uintptr
  16285. v2, changed = fastpathTV.DecMapInt8UintptrV(*v, true, d)
  16286. if changed {
  16287. *v = v2
  16288. }
  16289. case map[int8]int:
  16290. fastpathTV.DecMapInt8IntV(v, false, d)
  16291. case *map[int8]int:
  16292. var v2 map[int8]int
  16293. v2, changed = fastpathTV.DecMapInt8IntV(*v, true, d)
  16294. if changed {
  16295. *v = v2
  16296. }
  16297. case map[int8]int8:
  16298. fastpathTV.DecMapInt8Int8V(v, false, d)
  16299. case *map[int8]int8:
  16300. var v2 map[int8]int8
  16301. v2, changed = fastpathTV.DecMapInt8Int8V(*v, true, d)
  16302. if changed {
  16303. *v = v2
  16304. }
  16305. case map[int8]int16:
  16306. fastpathTV.DecMapInt8Int16V(v, false, d)
  16307. case *map[int8]int16:
  16308. var v2 map[int8]int16
  16309. v2, changed = fastpathTV.DecMapInt8Int16V(*v, true, d)
  16310. if changed {
  16311. *v = v2
  16312. }
  16313. case map[int8]int32:
  16314. fastpathTV.DecMapInt8Int32V(v, false, d)
  16315. case *map[int8]int32:
  16316. var v2 map[int8]int32
  16317. v2, changed = fastpathTV.DecMapInt8Int32V(*v, true, d)
  16318. if changed {
  16319. *v = v2
  16320. }
  16321. case map[int8]int64:
  16322. fastpathTV.DecMapInt8Int64V(v, false, d)
  16323. case *map[int8]int64:
  16324. var v2 map[int8]int64
  16325. v2, changed = fastpathTV.DecMapInt8Int64V(*v, true, d)
  16326. if changed {
  16327. *v = v2
  16328. }
  16329. case map[int8]float32:
  16330. fastpathTV.DecMapInt8Float32V(v, false, d)
  16331. case *map[int8]float32:
  16332. var v2 map[int8]float32
  16333. v2, changed = fastpathTV.DecMapInt8Float32V(*v, true, d)
  16334. if changed {
  16335. *v = v2
  16336. }
  16337. case map[int8]float64:
  16338. fastpathTV.DecMapInt8Float64V(v, false, d)
  16339. case *map[int8]float64:
  16340. var v2 map[int8]float64
  16341. v2, changed = fastpathTV.DecMapInt8Float64V(*v, true, d)
  16342. if changed {
  16343. *v = v2
  16344. }
  16345. case map[int8]bool:
  16346. fastpathTV.DecMapInt8BoolV(v, false, d)
  16347. case *map[int8]bool:
  16348. var v2 map[int8]bool
  16349. v2, changed = fastpathTV.DecMapInt8BoolV(*v, true, d)
  16350. if changed {
  16351. *v = v2
  16352. }
  16353. case map[int16]interface{}:
  16354. fastpathTV.DecMapInt16IntfV(v, false, d)
  16355. case *map[int16]interface{}:
  16356. var v2 map[int16]interface{}
  16357. v2, changed = fastpathTV.DecMapInt16IntfV(*v, true, d)
  16358. if changed {
  16359. *v = v2
  16360. }
  16361. case map[int16]string:
  16362. fastpathTV.DecMapInt16StringV(v, false, d)
  16363. case *map[int16]string:
  16364. var v2 map[int16]string
  16365. v2, changed = fastpathTV.DecMapInt16StringV(*v, true, d)
  16366. if changed {
  16367. *v = v2
  16368. }
  16369. case map[int16]uint:
  16370. fastpathTV.DecMapInt16UintV(v, false, d)
  16371. case *map[int16]uint:
  16372. var v2 map[int16]uint
  16373. v2, changed = fastpathTV.DecMapInt16UintV(*v, true, d)
  16374. if changed {
  16375. *v = v2
  16376. }
  16377. case map[int16]uint8:
  16378. fastpathTV.DecMapInt16Uint8V(v, false, d)
  16379. case *map[int16]uint8:
  16380. var v2 map[int16]uint8
  16381. v2, changed = fastpathTV.DecMapInt16Uint8V(*v, true, d)
  16382. if changed {
  16383. *v = v2
  16384. }
  16385. case map[int16]uint16:
  16386. fastpathTV.DecMapInt16Uint16V(v, false, d)
  16387. case *map[int16]uint16:
  16388. var v2 map[int16]uint16
  16389. v2, changed = fastpathTV.DecMapInt16Uint16V(*v, true, d)
  16390. if changed {
  16391. *v = v2
  16392. }
  16393. case map[int16]uint32:
  16394. fastpathTV.DecMapInt16Uint32V(v, false, d)
  16395. case *map[int16]uint32:
  16396. var v2 map[int16]uint32
  16397. v2, changed = fastpathTV.DecMapInt16Uint32V(*v, true, d)
  16398. if changed {
  16399. *v = v2
  16400. }
  16401. case map[int16]uint64:
  16402. fastpathTV.DecMapInt16Uint64V(v, false, d)
  16403. case *map[int16]uint64:
  16404. var v2 map[int16]uint64
  16405. v2, changed = fastpathTV.DecMapInt16Uint64V(*v, true, d)
  16406. if changed {
  16407. *v = v2
  16408. }
  16409. case map[int16]uintptr:
  16410. fastpathTV.DecMapInt16UintptrV(v, false, d)
  16411. case *map[int16]uintptr:
  16412. var v2 map[int16]uintptr
  16413. v2, changed = fastpathTV.DecMapInt16UintptrV(*v, true, d)
  16414. if changed {
  16415. *v = v2
  16416. }
  16417. case map[int16]int:
  16418. fastpathTV.DecMapInt16IntV(v, false, d)
  16419. case *map[int16]int:
  16420. var v2 map[int16]int
  16421. v2, changed = fastpathTV.DecMapInt16IntV(*v, true, d)
  16422. if changed {
  16423. *v = v2
  16424. }
  16425. case map[int16]int8:
  16426. fastpathTV.DecMapInt16Int8V(v, false, d)
  16427. case *map[int16]int8:
  16428. var v2 map[int16]int8
  16429. v2, changed = fastpathTV.DecMapInt16Int8V(*v, true, d)
  16430. if changed {
  16431. *v = v2
  16432. }
  16433. case map[int16]int16:
  16434. fastpathTV.DecMapInt16Int16V(v, false, d)
  16435. case *map[int16]int16:
  16436. var v2 map[int16]int16
  16437. v2, changed = fastpathTV.DecMapInt16Int16V(*v, true, d)
  16438. if changed {
  16439. *v = v2
  16440. }
  16441. case map[int16]int32:
  16442. fastpathTV.DecMapInt16Int32V(v, false, d)
  16443. case *map[int16]int32:
  16444. var v2 map[int16]int32
  16445. v2, changed = fastpathTV.DecMapInt16Int32V(*v, true, d)
  16446. if changed {
  16447. *v = v2
  16448. }
  16449. case map[int16]int64:
  16450. fastpathTV.DecMapInt16Int64V(v, false, d)
  16451. case *map[int16]int64:
  16452. var v2 map[int16]int64
  16453. v2, changed = fastpathTV.DecMapInt16Int64V(*v, true, d)
  16454. if changed {
  16455. *v = v2
  16456. }
  16457. case map[int16]float32:
  16458. fastpathTV.DecMapInt16Float32V(v, false, d)
  16459. case *map[int16]float32:
  16460. var v2 map[int16]float32
  16461. v2, changed = fastpathTV.DecMapInt16Float32V(*v, true, d)
  16462. if changed {
  16463. *v = v2
  16464. }
  16465. case map[int16]float64:
  16466. fastpathTV.DecMapInt16Float64V(v, false, d)
  16467. case *map[int16]float64:
  16468. var v2 map[int16]float64
  16469. v2, changed = fastpathTV.DecMapInt16Float64V(*v, true, d)
  16470. if changed {
  16471. *v = v2
  16472. }
  16473. case map[int16]bool:
  16474. fastpathTV.DecMapInt16BoolV(v, false, d)
  16475. case *map[int16]bool:
  16476. var v2 map[int16]bool
  16477. v2, changed = fastpathTV.DecMapInt16BoolV(*v, true, d)
  16478. if changed {
  16479. *v = v2
  16480. }
  16481. case map[int32]interface{}:
  16482. fastpathTV.DecMapInt32IntfV(v, false, d)
  16483. case *map[int32]interface{}:
  16484. var v2 map[int32]interface{}
  16485. v2, changed = fastpathTV.DecMapInt32IntfV(*v, true, d)
  16486. if changed {
  16487. *v = v2
  16488. }
  16489. case map[int32]string:
  16490. fastpathTV.DecMapInt32StringV(v, false, d)
  16491. case *map[int32]string:
  16492. var v2 map[int32]string
  16493. v2, changed = fastpathTV.DecMapInt32StringV(*v, true, d)
  16494. if changed {
  16495. *v = v2
  16496. }
  16497. case map[int32]uint:
  16498. fastpathTV.DecMapInt32UintV(v, false, d)
  16499. case *map[int32]uint:
  16500. var v2 map[int32]uint
  16501. v2, changed = fastpathTV.DecMapInt32UintV(*v, true, d)
  16502. if changed {
  16503. *v = v2
  16504. }
  16505. case map[int32]uint8:
  16506. fastpathTV.DecMapInt32Uint8V(v, false, d)
  16507. case *map[int32]uint8:
  16508. var v2 map[int32]uint8
  16509. v2, changed = fastpathTV.DecMapInt32Uint8V(*v, true, d)
  16510. if changed {
  16511. *v = v2
  16512. }
  16513. case map[int32]uint16:
  16514. fastpathTV.DecMapInt32Uint16V(v, false, d)
  16515. case *map[int32]uint16:
  16516. var v2 map[int32]uint16
  16517. v2, changed = fastpathTV.DecMapInt32Uint16V(*v, true, d)
  16518. if changed {
  16519. *v = v2
  16520. }
  16521. case map[int32]uint32:
  16522. fastpathTV.DecMapInt32Uint32V(v, false, d)
  16523. case *map[int32]uint32:
  16524. var v2 map[int32]uint32
  16525. v2, changed = fastpathTV.DecMapInt32Uint32V(*v, true, d)
  16526. if changed {
  16527. *v = v2
  16528. }
  16529. case map[int32]uint64:
  16530. fastpathTV.DecMapInt32Uint64V(v, false, d)
  16531. case *map[int32]uint64:
  16532. var v2 map[int32]uint64
  16533. v2, changed = fastpathTV.DecMapInt32Uint64V(*v, true, d)
  16534. if changed {
  16535. *v = v2
  16536. }
  16537. case map[int32]uintptr:
  16538. fastpathTV.DecMapInt32UintptrV(v, false, d)
  16539. case *map[int32]uintptr:
  16540. var v2 map[int32]uintptr
  16541. v2, changed = fastpathTV.DecMapInt32UintptrV(*v, true, d)
  16542. if changed {
  16543. *v = v2
  16544. }
  16545. case map[int32]int:
  16546. fastpathTV.DecMapInt32IntV(v, false, d)
  16547. case *map[int32]int:
  16548. var v2 map[int32]int
  16549. v2, changed = fastpathTV.DecMapInt32IntV(*v, true, d)
  16550. if changed {
  16551. *v = v2
  16552. }
  16553. case map[int32]int8:
  16554. fastpathTV.DecMapInt32Int8V(v, false, d)
  16555. case *map[int32]int8:
  16556. var v2 map[int32]int8
  16557. v2, changed = fastpathTV.DecMapInt32Int8V(*v, true, d)
  16558. if changed {
  16559. *v = v2
  16560. }
  16561. case map[int32]int16:
  16562. fastpathTV.DecMapInt32Int16V(v, false, d)
  16563. case *map[int32]int16:
  16564. var v2 map[int32]int16
  16565. v2, changed = fastpathTV.DecMapInt32Int16V(*v, true, d)
  16566. if changed {
  16567. *v = v2
  16568. }
  16569. case map[int32]int32:
  16570. fastpathTV.DecMapInt32Int32V(v, false, d)
  16571. case *map[int32]int32:
  16572. var v2 map[int32]int32
  16573. v2, changed = fastpathTV.DecMapInt32Int32V(*v, true, d)
  16574. if changed {
  16575. *v = v2
  16576. }
  16577. case map[int32]int64:
  16578. fastpathTV.DecMapInt32Int64V(v, false, d)
  16579. case *map[int32]int64:
  16580. var v2 map[int32]int64
  16581. v2, changed = fastpathTV.DecMapInt32Int64V(*v, true, d)
  16582. if changed {
  16583. *v = v2
  16584. }
  16585. case map[int32]float32:
  16586. fastpathTV.DecMapInt32Float32V(v, false, d)
  16587. case *map[int32]float32:
  16588. var v2 map[int32]float32
  16589. v2, changed = fastpathTV.DecMapInt32Float32V(*v, true, d)
  16590. if changed {
  16591. *v = v2
  16592. }
  16593. case map[int32]float64:
  16594. fastpathTV.DecMapInt32Float64V(v, false, d)
  16595. case *map[int32]float64:
  16596. var v2 map[int32]float64
  16597. v2, changed = fastpathTV.DecMapInt32Float64V(*v, true, d)
  16598. if changed {
  16599. *v = v2
  16600. }
  16601. case map[int32]bool:
  16602. fastpathTV.DecMapInt32BoolV(v, false, d)
  16603. case *map[int32]bool:
  16604. var v2 map[int32]bool
  16605. v2, changed = fastpathTV.DecMapInt32BoolV(*v, true, d)
  16606. if changed {
  16607. *v = v2
  16608. }
  16609. case map[int64]interface{}:
  16610. fastpathTV.DecMapInt64IntfV(v, false, d)
  16611. case *map[int64]interface{}:
  16612. var v2 map[int64]interface{}
  16613. v2, changed = fastpathTV.DecMapInt64IntfV(*v, true, d)
  16614. if changed {
  16615. *v = v2
  16616. }
  16617. case map[int64]string:
  16618. fastpathTV.DecMapInt64StringV(v, false, d)
  16619. case *map[int64]string:
  16620. var v2 map[int64]string
  16621. v2, changed = fastpathTV.DecMapInt64StringV(*v, true, d)
  16622. if changed {
  16623. *v = v2
  16624. }
  16625. case map[int64]uint:
  16626. fastpathTV.DecMapInt64UintV(v, false, d)
  16627. case *map[int64]uint:
  16628. var v2 map[int64]uint
  16629. v2, changed = fastpathTV.DecMapInt64UintV(*v, true, d)
  16630. if changed {
  16631. *v = v2
  16632. }
  16633. case map[int64]uint8:
  16634. fastpathTV.DecMapInt64Uint8V(v, false, d)
  16635. case *map[int64]uint8:
  16636. var v2 map[int64]uint8
  16637. v2, changed = fastpathTV.DecMapInt64Uint8V(*v, true, d)
  16638. if changed {
  16639. *v = v2
  16640. }
  16641. case map[int64]uint16:
  16642. fastpathTV.DecMapInt64Uint16V(v, false, d)
  16643. case *map[int64]uint16:
  16644. var v2 map[int64]uint16
  16645. v2, changed = fastpathTV.DecMapInt64Uint16V(*v, true, d)
  16646. if changed {
  16647. *v = v2
  16648. }
  16649. case map[int64]uint32:
  16650. fastpathTV.DecMapInt64Uint32V(v, false, d)
  16651. case *map[int64]uint32:
  16652. var v2 map[int64]uint32
  16653. v2, changed = fastpathTV.DecMapInt64Uint32V(*v, true, d)
  16654. if changed {
  16655. *v = v2
  16656. }
  16657. case map[int64]uint64:
  16658. fastpathTV.DecMapInt64Uint64V(v, false, d)
  16659. case *map[int64]uint64:
  16660. var v2 map[int64]uint64
  16661. v2, changed = fastpathTV.DecMapInt64Uint64V(*v, true, d)
  16662. if changed {
  16663. *v = v2
  16664. }
  16665. case map[int64]uintptr:
  16666. fastpathTV.DecMapInt64UintptrV(v, false, d)
  16667. case *map[int64]uintptr:
  16668. var v2 map[int64]uintptr
  16669. v2, changed = fastpathTV.DecMapInt64UintptrV(*v, true, d)
  16670. if changed {
  16671. *v = v2
  16672. }
  16673. case map[int64]int:
  16674. fastpathTV.DecMapInt64IntV(v, false, d)
  16675. case *map[int64]int:
  16676. var v2 map[int64]int
  16677. v2, changed = fastpathTV.DecMapInt64IntV(*v, true, d)
  16678. if changed {
  16679. *v = v2
  16680. }
  16681. case map[int64]int8:
  16682. fastpathTV.DecMapInt64Int8V(v, false, d)
  16683. case *map[int64]int8:
  16684. var v2 map[int64]int8
  16685. v2, changed = fastpathTV.DecMapInt64Int8V(*v, true, d)
  16686. if changed {
  16687. *v = v2
  16688. }
  16689. case map[int64]int16:
  16690. fastpathTV.DecMapInt64Int16V(v, false, d)
  16691. case *map[int64]int16:
  16692. var v2 map[int64]int16
  16693. v2, changed = fastpathTV.DecMapInt64Int16V(*v, true, d)
  16694. if changed {
  16695. *v = v2
  16696. }
  16697. case map[int64]int32:
  16698. fastpathTV.DecMapInt64Int32V(v, false, d)
  16699. case *map[int64]int32:
  16700. var v2 map[int64]int32
  16701. v2, changed = fastpathTV.DecMapInt64Int32V(*v, true, d)
  16702. if changed {
  16703. *v = v2
  16704. }
  16705. case map[int64]int64:
  16706. fastpathTV.DecMapInt64Int64V(v, false, d)
  16707. case *map[int64]int64:
  16708. var v2 map[int64]int64
  16709. v2, changed = fastpathTV.DecMapInt64Int64V(*v, true, d)
  16710. if changed {
  16711. *v = v2
  16712. }
  16713. case map[int64]float32:
  16714. fastpathTV.DecMapInt64Float32V(v, false, d)
  16715. case *map[int64]float32:
  16716. var v2 map[int64]float32
  16717. v2, changed = fastpathTV.DecMapInt64Float32V(*v, true, d)
  16718. if changed {
  16719. *v = v2
  16720. }
  16721. case map[int64]float64:
  16722. fastpathTV.DecMapInt64Float64V(v, false, d)
  16723. case *map[int64]float64:
  16724. var v2 map[int64]float64
  16725. v2, changed = fastpathTV.DecMapInt64Float64V(*v, true, d)
  16726. if changed {
  16727. *v = v2
  16728. }
  16729. case map[int64]bool:
  16730. fastpathTV.DecMapInt64BoolV(v, false, d)
  16731. case *map[int64]bool:
  16732. var v2 map[int64]bool
  16733. v2, changed = fastpathTV.DecMapInt64BoolV(*v, true, d)
  16734. if changed {
  16735. *v = v2
  16736. }
  16737. case map[bool]interface{}:
  16738. fastpathTV.DecMapBoolIntfV(v, false, d)
  16739. case *map[bool]interface{}:
  16740. var v2 map[bool]interface{}
  16741. v2, changed = fastpathTV.DecMapBoolIntfV(*v, true, d)
  16742. if changed {
  16743. *v = v2
  16744. }
  16745. case map[bool]string:
  16746. fastpathTV.DecMapBoolStringV(v, false, d)
  16747. case *map[bool]string:
  16748. var v2 map[bool]string
  16749. v2, changed = fastpathTV.DecMapBoolStringV(*v, true, d)
  16750. if changed {
  16751. *v = v2
  16752. }
  16753. case map[bool]uint:
  16754. fastpathTV.DecMapBoolUintV(v, false, d)
  16755. case *map[bool]uint:
  16756. var v2 map[bool]uint
  16757. v2, changed = fastpathTV.DecMapBoolUintV(*v, true, d)
  16758. if changed {
  16759. *v = v2
  16760. }
  16761. case map[bool]uint8:
  16762. fastpathTV.DecMapBoolUint8V(v, false, d)
  16763. case *map[bool]uint8:
  16764. var v2 map[bool]uint8
  16765. v2, changed = fastpathTV.DecMapBoolUint8V(*v, true, d)
  16766. if changed {
  16767. *v = v2
  16768. }
  16769. case map[bool]uint16:
  16770. fastpathTV.DecMapBoolUint16V(v, false, d)
  16771. case *map[bool]uint16:
  16772. var v2 map[bool]uint16
  16773. v2, changed = fastpathTV.DecMapBoolUint16V(*v, true, d)
  16774. if changed {
  16775. *v = v2
  16776. }
  16777. case map[bool]uint32:
  16778. fastpathTV.DecMapBoolUint32V(v, false, d)
  16779. case *map[bool]uint32:
  16780. var v2 map[bool]uint32
  16781. v2, changed = fastpathTV.DecMapBoolUint32V(*v, true, d)
  16782. if changed {
  16783. *v = v2
  16784. }
  16785. case map[bool]uint64:
  16786. fastpathTV.DecMapBoolUint64V(v, false, d)
  16787. case *map[bool]uint64:
  16788. var v2 map[bool]uint64
  16789. v2, changed = fastpathTV.DecMapBoolUint64V(*v, true, d)
  16790. if changed {
  16791. *v = v2
  16792. }
  16793. case map[bool]uintptr:
  16794. fastpathTV.DecMapBoolUintptrV(v, false, d)
  16795. case *map[bool]uintptr:
  16796. var v2 map[bool]uintptr
  16797. v2, changed = fastpathTV.DecMapBoolUintptrV(*v, true, d)
  16798. if changed {
  16799. *v = v2
  16800. }
  16801. case map[bool]int:
  16802. fastpathTV.DecMapBoolIntV(v, false, d)
  16803. case *map[bool]int:
  16804. var v2 map[bool]int
  16805. v2, changed = fastpathTV.DecMapBoolIntV(*v, true, d)
  16806. if changed {
  16807. *v = v2
  16808. }
  16809. case map[bool]int8:
  16810. fastpathTV.DecMapBoolInt8V(v, false, d)
  16811. case *map[bool]int8:
  16812. var v2 map[bool]int8
  16813. v2, changed = fastpathTV.DecMapBoolInt8V(*v, true, d)
  16814. if changed {
  16815. *v = v2
  16816. }
  16817. case map[bool]int16:
  16818. fastpathTV.DecMapBoolInt16V(v, false, d)
  16819. case *map[bool]int16:
  16820. var v2 map[bool]int16
  16821. v2, changed = fastpathTV.DecMapBoolInt16V(*v, true, d)
  16822. if changed {
  16823. *v = v2
  16824. }
  16825. case map[bool]int32:
  16826. fastpathTV.DecMapBoolInt32V(v, false, d)
  16827. case *map[bool]int32:
  16828. var v2 map[bool]int32
  16829. v2, changed = fastpathTV.DecMapBoolInt32V(*v, true, d)
  16830. if changed {
  16831. *v = v2
  16832. }
  16833. case map[bool]int64:
  16834. fastpathTV.DecMapBoolInt64V(v, false, d)
  16835. case *map[bool]int64:
  16836. var v2 map[bool]int64
  16837. v2, changed = fastpathTV.DecMapBoolInt64V(*v, true, d)
  16838. if changed {
  16839. *v = v2
  16840. }
  16841. case map[bool]float32:
  16842. fastpathTV.DecMapBoolFloat32V(v, false, d)
  16843. case *map[bool]float32:
  16844. var v2 map[bool]float32
  16845. v2, changed = fastpathTV.DecMapBoolFloat32V(*v, true, d)
  16846. if changed {
  16847. *v = v2
  16848. }
  16849. case map[bool]float64:
  16850. fastpathTV.DecMapBoolFloat64V(v, false, d)
  16851. case *map[bool]float64:
  16852. var v2 map[bool]float64
  16853. v2, changed = fastpathTV.DecMapBoolFloat64V(*v, true, d)
  16854. if changed {
  16855. *v = v2
  16856. }
  16857. case map[bool]bool:
  16858. fastpathTV.DecMapBoolBoolV(v, false, d)
  16859. case *map[bool]bool:
  16860. var v2 map[bool]bool
  16861. v2, changed = fastpathTV.DecMapBoolBoolV(*v, true, d)
  16862. if changed {
  16863. *v = v2
  16864. }
  16865. default:
  16866. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  16867. return false
  16868. }
  16869. return true
  16870. }
  16871. func fastpathDecodeSetZeroTypeSwitch(iv interface{}) bool {
  16872. switch v := iv.(type) {
  16873. case *[]interface{}:
  16874. *v = nil
  16875. case *[]string:
  16876. *v = nil
  16877. case *[]float32:
  16878. *v = nil
  16879. case *[]float64:
  16880. *v = nil
  16881. case *[]uint:
  16882. *v = nil
  16883. case *[]uint8:
  16884. *v = nil
  16885. case *[]uint16:
  16886. *v = nil
  16887. case *[]uint32:
  16888. *v = nil
  16889. case *[]uint64:
  16890. *v = nil
  16891. case *[]uintptr:
  16892. *v = nil
  16893. case *[]int:
  16894. *v = nil
  16895. case *[]int8:
  16896. *v = nil
  16897. case *[]int16:
  16898. *v = nil
  16899. case *[]int32:
  16900. *v = nil
  16901. case *[]int64:
  16902. *v = nil
  16903. case *[]bool:
  16904. *v = nil
  16905. case *map[interface{}]interface{}:
  16906. *v = nil
  16907. case *map[interface{}]string:
  16908. *v = nil
  16909. case *map[interface{}]uint:
  16910. *v = nil
  16911. case *map[interface{}]uint8:
  16912. *v = nil
  16913. case *map[interface{}]uint16:
  16914. *v = nil
  16915. case *map[interface{}]uint32:
  16916. *v = nil
  16917. case *map[interface{}]uint64:
  16918. *v = nil
  16919. case *map[interface{}]uintptr:
  16920. *v = nil
  16921. case *map[interface{}]int:
  16922. *v = nil
  16923. case *map[interface{}]int8:
  16924. *v = nil
  16925. case *map[interface{}]int16:
  16926. *v = nil
  16927. case *map[interface{}]int32:
  16928. *v = nil
  16929. case *map[interface{}]int64:
  16930. *v = nil
  16931. case *map[interface{}]float32:
  16932. *v = nil
  16933. case *map[interface{}]float64:
  16934. *v = nil
  16935. case *map[interface{}]bool:
  16936. *v = nil
  16937. case *map[string]interface{}:
  16938. *v = nil
  16939. case *map[string]string:
  16940. *v = nil
  16941. case *map[string]uint:
  16942. *v = nil
  16943. case *map[string]uint8:
  16944. *v = nil
  16945. case *map[string]uint16:
  16946. *v = nil
  16947. case *map[string]uint32:
  16948. *v = nil
  16949. case *map[string]uint64:
  16950. *v = nil
  16951. case *map[string]uintptr:
  16952. *v = nil
  16953. case *map[string]int:
  16954. *v = nil
  16955. case *map[string]int8:
  16956. *v = nil
  16957. case *map[string]int16:
  16958. *v = nil
  16959. case *map[string]int32:
  16960. *v = nil
  16961. case *map[string]int64:
  16962. *v = nil
  16963. case *map[string]float32:
  16964. *v = nil
  16965. case *map[string]float64:
  16966. *v = nil
  16967. case *map[string]bool:
  16968. *v = nil
  16969. case *map[float32]interface{}:
  16970. *v = nil
  16971. case *map[float32]string:
  16972. *v = nil
  16973. case *map[float32]uint:
  16974. *v = nil
  16975. case *map[float32]uint8:
  16976. *v = nil
  16977. case *map[float32]uint16:
  16978. *v = nil
  16979. case *map[float32]uint32:
  16980. *v = nil
  16981. case *map[float32]uint64:
  16982. *v = nil
  16983. case *map[float32]uintptr:
  16984. *v = nil
  16985. case *map[float32]int:
  16986. *v = nil
  16987. case *map[float32]int8:
  16988. *v = nil
  16989. case *map[float32]int16:
  16990. *v = nil
  16991. case *map[float32]int32:
  16992. *v = nil
  16993. case *map[float32]int64:
  16994. *v = nil
  16995. case *map[float32]float32:
  16996. *v = nil
  16997. case *map[float32]float64:
  16998. *v = nil
  16999. case *map[float32]bool:
  17000. *v = nil
  17001. case *map[float64]interface{}:
  17002. *v = nil
  17003. case *map[float64]string:
  17004. *v = nil
  17005. case *map[float64]uint:
  17006. *v = nil
  17007. case *map[float64]uint8:
  17008. *v = nil
  17009. case *map[float64]uint16:
  17010. *v = nil
  17011. case *map[float64]uint32:
  17012. *v = nil
  17013. case *map[float64]uint64:
  17014. *v = nil
  17015. case *map[float64]uintptr:
  17016. *v = nil
  17017. case *map[float64]int:
  17018. *v = nil
  17019. case *map[float64]int8:
  17020. *v = nil
  17021. case *map[float64]int16:
  17022. *v = nil
  17023. case *map[float64]int32:
  17024. *v = nil
  17025. case *map[float64]int64:
  17026. *v = nil
  17027. case *map[float64]float32:
  17028. *v = nil
  17029. case *map[float64]float64:
  17030. *v = nil
  17031. case *map[float64]bool:
  17032. *v = nil
  17033. case *map[uint]interface{}:
  17034. *v = nil
  17035. case *map[uint]string:
  17036. *v = nil
  17037. case *map[uint]uint:
  17038. *v = nil
  17039. case *map[uint]uint8:
  17040. *v = nil
  17041. case *map[uint]uint16:
  17042. *v = nil
  17043. case *map[uint]uint32:
  17044. *v = nil
  17045. case *map[uint]uint64:
  17046. *v = nil
  17047. case *map[uint]uintptr:
  17048. *v = nil
  17049. case *map[uint]int:
  17050. *v = nil
  17051. case *map[uint]int8:
  17052. *v = nil
  17053. case *map[uint]int16:
  17054. *v = nil
  17055. case *map[uint]int32:
  17056. *v = nil
  17057. case *map[uint]int64:
  17058. *v = nil
  17059. case *map[uint]float32:
  17060. *v = nil
  17061. case *map[uint]float64:
  17062. *v = nil
  17063. case *map[uint]bool:
  17064. *v = nil
  17065. case *map[uint8]interface{}:
  17066. *v = nil
  17067. case *map[uint8]string:
  17068. *v = nil
  17069. case *map[uint8]uint:
  17070. *v = nil
  17071. case *map[uint8]uint8:
  17072. *v = nil
  17073. case *map[uint8]uint16:
  17074. *v = nil
  17075. case *map[uint8]uint32:
  17076. *v = nil
  17077. case *map[uint8]uint64:
  17078. *v = nil
  17079. case *map[uint8]uintptr:
  17080. *v = nil
  17081. case *map[uint8]int:
  17082. *v = nil
  17083. case *map[uint8]int8:
  17084. *v = nil
  17085. case *map[uint8]int16:
  17086. *v = nil
  17087. case *map[uint8]int32:
  17088. *v = nil
  17089. case *map[uint8]int64:
  17090. *v = nil
  17091. case *map[uint8]float32:
  17092. *v = nil
  17093. case *map[uint8]float64:
  17094. *v = nil
  17095. case *map[uint8]bool:
  17096. *v = nil
  17097. case *map[uint16]interface{}:
  17098. *v = nil
  17099. case *map[uint16]string:
  17100. *v = nil
  17101. case *map[uint16]uint:
  17102. *v = nil
  17103. case *map[uint16]uint8:
  17104. *v = nil
  17105. case *map[uint16]uint16:
  17106. *v = nil
  17107. case *map[uint16]uint32:
  17108. *v = nil
  17109. case *map[uint16]uint64:
  17110. *v = nil
  17111. case *map[uint16]uintptr:
  17112. *v = nil
  17113. case *map[uint16]int:
  17114. *v = nil
  17115. case *map[uint16]int8:
  17116. *v = nil
  17117. case *map[uint16]int16:
  17118. *v = nil
  17119. case *map[uint16]int32:
  17120. *v = nil
  17121. case *map[uint16]int64:
  17122. *v = nil
  17123. case *map[uint16]float32:
  17124. *v = nil
  17125. case *map[uint16]float64:
  17126. *v = nil
  17127. case *map[uint16]bool:
  17128. *v = nil
  17129. case *map[uint32]interface{}:
  17130. *v = nil
  17131. case *map[uint32]string:
  17132. *v = nil
  17133. case *map[uint32]uint:
  17134. *v = nil
  17135. case *map[uint32]uint8:
  17136. *v = nil
  17137. case *map[uint32]uint16:
  17138. *v = nil
  17139. case *map[uint32]uint32:
  17140. *v = nil
  17141. case *map[uint32]uint64:
  17142. *v = nil
  17143. case *map[uint32]uintptr:
  17144. *v = nil
  17145. case *map[uint32]int:
  17146. *v = nil
  17147. case *map[uint32]int8:
  17148. *v = nil
  17149. case *map[uint32]int16:
  17150. *v = nil
  17151. case *map[uint32]int32:
  17152. *v = nil
  17153. case *map[uint32]int64:
  17154. *v = nil
  17155. case *map[uint32]float32:
  17156. *v = nil
  17157. case *map[uint32]float64:
  17158. *v = nil
  17159. case *map[uint32]bool:
  17160. *v = nil
  17161. case *map[uint64]interface{}:
  17162. *v = nil
  17163. case *map[uint64]string:
  17164. *v = nil
  17165. case *map[uint64]uint:
  17166. *v = nil
  17167. case *map[uint64]uint8:
  17168. *v = nil
  17169. case *map[uint64]uint16:
  17170. *v = nil
  17171. case *map[uint64]uint32:
  17172. *v = nil
  17173. case *map[uint64]uint64:
  17174. *v = nil
  17175. case *map[uint64]uintptr:
  17176. *v = nil
  17177. case *map[uint64]int:
  17178. *v = nil
  17179. case *map[uint64]int8:
  17180. *v = nil
  17181. case *map[uint64]int16:
  17182. *v = nil
  17183. case *map[uint64]int32:
  17184. *v = nil
  17185. case *map[uint64]int64:
  17186. *v = nil
  17187. case *map[uint64]float32:
  17188. *v = nil
  17189. case *map[uint64]float64:
  17190. *v = nil
  17191. case *map[uint64]bool:
  17192. *v = nil
  17193. case *map[uintptr]interface{}:
  17194. *v = nil
  17195. case *map[uintptr]string:
  17196. *v = nil
  17197. case *map[uintptr]uint:
  17198. *v = nil
  17199. case *map[uintptr]uint8:
  17200. *v = nil
  17201. case *map[uintptr]uint16:
  17202. *v = nil
  17203. case *map[uintptr]uint32:
  17204. *v = nil
  17205. case *map[uintptr]uint64:
  17206. *v = nil
  17207. case *map[uintptr]uintptr:
  17208. *v = nil
  17209. case *map[uintptr]int:
  17210. *v = nil
  17211. case *map[uintptr]int8:
  17212. *v = nil
  17213. case *map[uintptr]int16:
  17214. *v = nil
  17215. case *map[uintptr]int32:
  17216. *v = nil
  17217. case *map[uintptr]int64:
  17218. *v = nil
  17219. case *map[uintptr]float32:
  17220. *v = nil
  17221. case *map[uintptr]float64:
  17222. *v = nil
  17223. case *map[uintptr]bool:
  17224. *v = nil
  17225. case *map[int]interface{}:
  17226. *v = nil
  17227. case *map[int]string:
  17228. *v = nil
  17229. case *map[int]uint:
  17230. *v = nil
  17231. case *map[int]uint8:
  17232. *v = nil
  17233. case *map[int]uint16:
  17234. *v = nil
  17235. case *map[int]uint32:
  17236. *v = nil
  17237. case *map[int]uint64:
  17238. *v = nil
  17239. case *map[int]uintptr:
  17240. *v = nil
  17241. case *map[int]int:
  17242. *v = nil
  17243. case *map[int]int8:
  17244. *v = nil
  17245. case *map[int]int16:
  17246. *v = nil
  17247. case *map[int]int32:
  17248. *v = nil
  17249. case *map[int]int64:
  17250. *v = nil
  17251. case *map[int]float32:
  17252. *v = nil
  17253. case *map[int]float64:
  17254. *v = nil
  17255. case *map[int]bool:
  17256. *v = nil
  17257. case *map[int8]interface{}:
  17258. *v = nil
  17259. case *map[int8]string:
  17260. *v = nil
  17261. case *map[int8]uint:
  17262. *v = nil
  17263. case *map[int8]uint8:
  17264. *v = nil
  17265. case *map[int8]uint16:
  17266. *v = nil
  17267. case *map[int8]uint32:
  17268. *v = nil
  17269. case *map[int8]uint64:
  17270. *v = nil
  17271. case *map[int8]uintptr:
  17272. *v = nil
  17273. case *map[int8]int:
  17274. *v = nil
  17275. case *map[int8]int8:
  17276. *v = nil
  17277. case *map[int8]int16:
  17278. *v = nil
  17279. case *map[int8]int32:
  17280. *v = nil
  17281. case *map[int8]int64:
  17282. *v = nil
  17283. case *map[int8]float32:
  17284. *v = nil
  17285. case *map[int8]float64:
  17286. *v = nil
  17287. case *map[int8]bool:
  17288. *v = nil
  17289. case *map[int16]interface{}:
  17290. *v = nil
  17291. case *map[int16]string:
  17292. *v = nil
  17293. case *map[int16]uint:
  17294. *v = nil
  17295. case *map[int16]uint8:
  17296. *v = nil
  17297. case *map[int16]uint16:
  17298. *v = nil
  17299. case *map[int16]uint32:
  17300. *v = nil
  17301. case *map[int16]uint64:
  17302. *v = nil
  17303. case *map[int16]uintptr:
  17304. *v = nil
  17305. case *map[int16]int:
  17306. *v = nil
  17307. case *map[int16]int8:
  17308. *v = nil
  17309. case *map[int16]int16:
  17310. *v = nil
  17311. case *map[int16]int32:
  17312. *v = nil
  17313. case *map[int16]int64:
  17314. *v = nil
  17315. case *map[int16]float32:
  17316. *v = nil
  17317. case *map[int16]float64:
  17318. *v = nil
  17319. case *map[int16]bool:
  17320. *v = nil
  17321. case *map[int32]interface{}:
  17322. *v = nil
  17323. case *map[int32]string:
  17324. *v = nil
  17325. case *map[int32]uint:
  17326. *v = nil
  17327. case *map[int32]uint8:
  17328. *v = nil
  17329. case *map[int32]uint16:
  17330. *v = nil
  17331. case *map[int32]uint32:
  17332. *v = nil
  17333. case *map[int32]uint64:
  17334. *v = nil
  17335. case *map[int32]uintptr:
  17336. *v = nil
  17337. case *map[int32]int:
  17338. *v = nil
  17339. case *map[int32]int8:
  17340. *v = nil
  17341. case *map[int32]int16:
  17342. *v = nil
  17343. case *map[int32]int32:
  17344. *v = nil
  17345. case *map[int32]int64:
  17346. *v = nil
  17347. case *map[int32]float32:
  17348. *v = nil
  17349. case *map[int32]float64:
  17350. *v = nil
  17351. case *map[int32]bool:
  17352. *v = nil
  17353. case *map[int64]interface{}:
  17354. *v = nil
  17355. case *map[int64]string:
  17356. *v = nil
  17357. case *map[int64]uint:
  17358. *v = nil
  17359. case *map[int64]uint8:
  17360. *v = nil
  17361. case *map[int64]uint16:
  17362. *v = nil
  17363. case *map[int64]uint32:
  17364. *v = nil
  17365. case *map[int64]uint64:
  17366. *v = nil
  17367. case *map[int64]uintptr:
  17368. *v = nil
  17369. case *map[int64]int:
  17370. *v = nil
  17371. case *map[int64]int8:
  17372. *v = nil
  17373. case *map[int64]int16:
  17374. *v = nil
  17375. case *map[int64]int32:
  17376. *v = nil
  17377. case *map[int64]int64:
  17378. *v = nil
  17379. case *map[int64]float32:
  17380. *v = nil
  17381. case *map[int64]float64:
  17382. *v = nil
  17383. case *map[int64]bool:
  17384. *v = nil
  17385. case *map[bool]interface{}:
  17386. *v = nil
  17387. case *map[bool]string:
  17388. *v = nil
  17389. case *map[bool]uint:
  17390. *v = nil
  17391. case *map[bool]uint8:
  17392. *v = nil
  17393. case *map[bool]uint16:
  17394. *v = nil
  17395. case *map[bool]uint32:
  17396. *v = nil
  17397. case *map[bool]uint64:
  17398. *v = nil
  17399. case *map[bool]uintptr:
  17400. *v = nil
  17401. case *map[bool]int:
  17402. *v = nil
  17403. case *map[bool]int8:
  17404. *v = nil
  17405. case *map[bool]int16:
  17406. *v = nil
  17407. case *map[bool]int32:
  17408. *v = nil
  17409. case *map[bool]int64:
  17410. *v = nil
  17411. case *map[bool]float32:
  17412. *v = nil
  17413. case *map[bool]float64:
  17414. *v = nil
  17415. case *map[bool]bool:
  17416. *v = nil
  17417. default:
  17418. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  17419. return false
  17420. }
  17421. return true
  17422. }
  17423. // -- -- fast path functions
  17424. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  17425. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17426. vp := rv2i(rv).(*[]interface{})
  17427. v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d)
  17428. if changed {
  17429. *vp = v
  17430. }
  17431. } else {
  17432. v := rv2i(rv).([]interface{})
  17433. v2, changed := fastpathTV.DecSliceIntfV(v, !array, d)
  17434. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17435. copy(v, v2)
  17436. }
  17437. }
  17438. }
  17439. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  17440. v, changed := f.DecSliceIntfV(*vp, true, d)
  17441. if changed {
  17442. *vp = v
  17443. }
  17444. }
  17445. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  17446. dd := d.d
  17447. slh, containerLenS := d.decSliceHelperStart()
  17448. if containerLenS == 0 {
  17449. if canChange {
  17450. if v == nil {
  17451. v = []interface{}{}
  17452. } else if len(v) != 0 {
  17453. v = v[:0]
  17454. }
  17455. changed = true
  17456. }
  17457. slh.End()
  17458. return v, changed
  17459. }
  17460. d.depthIncr()
  17461. hasLen := containerLenS > 0
  17462. var xlen int
  17463. if hasLen && canChange {
  17464. if containerLenS > cap(v) {
  17465. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17466. if xlen <= cap(v) {
  17467. v = v[:uint(xlen)]
  17468. } else {
  17469. v = make([]interface{}, uint(xlen))
  17470. }
  17471. changed = true
  17472. } else if containerLenS != len(v) {
  17473. v = v[:containerLenS]
  17474. changed = true
  17475. }
  17476. }
  17477. var j int
  17478. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17479. if j == 0 && len(v) == 0 && canChange {
  17480. if hasLen {
  17481. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17482. } else {
  17483. xlen = 8
  17484. }
  17485. v = make([]interface{}, uint(xlen))
  17486. changed = true
  17487. }
  17488. // if indefinite, etc, then expand the slice if necessary
  17489. var decodeIntoBlank bool
  17490. if j >= len(v) {
  17491. if canChange {
  17492. v = append(v, nil)
  17493. changed = true
  17494. } else {
  17495. d.arrayCannotExpand(len(v), j+1)
  17496. decodeIntoBlank = true
  17497. }
  17498. }
  17499. slh.ElemContainerState(j)
  17500. if decodeIntoBlank {
  17501. d.swallow()
  17502. } else if dd.TryDecodeAsNil() {
  17503. v[uint(j)] = nil
  17504. } else {
  17505. d.decode(&v[uint(j)])
  17506. }
  17507. }
  17508. if canChange {
  17509. if j < len(v) {
  17510. v = v[:uint(j)]
  17511. changed = true
  17512. } else if j == 0 && v == nil {
  17513. v = make([]interface{}, 0)
  17514. changed = true
  17515. }
  17516. }
  17517. slh.End()
  17518. d.depthDecr()
  17519. return v, changed
  17520. }
  17521. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  17522. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17523. vp := rv2i(rv).(*[]string)
  17524. v, changed := fastpathTV.DecSliceStringV(*vp, !array, d)
  17525. if changed {
  17526. *vp = v
  17527. }
  17528. } else {
  17529. v := rv2i(rv).([]string)
  17530. v2, changed := fastpathTV.DecSliceStringV(v, !array, d)
  17531. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17532. copy(v, v2)
  17533. }
  17534. }
  17535. }
  17536. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  17537. v, changed := f.DecSliceStringV(*vp, true, d)
  17538. if changed {
  17539. *vp = v
  17540. }
  17541. }
  17542. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  17543. dd := d.d
  17544. slh, containerLenS := d.decSliceHelperStart()
  17545. if containerLenS == 0 {
  17546. if canChange {
  17547. if v == nil {
  17548. v = []string{}
  17549. } else if len(v) != 0 {
  17550. v = v[:0]
  17551. }
  17552. changed = true
  17553. }
  17554. slh.End()
  17555. return v, changed
  17556. }
  17557. d.depthIncr()
  17558. hasLen := containerLenS > 0
  17559. var xlen int
  17560. if hasLen && canChange {
  17561. if containerLenS > cap(v) {
  17562. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17563. if xlen <= cap(v) {
  17564. v = v[:uint(xlen)]
  17565. } else {
  17566. v = make([]string, uint(xlen))
  17567. }
  17568. changed = true
  17569. } else if containerLenS != len(v) {
  17570. v = v[:containerLenS]
  17571. changed = true
  17572. }
  17573. }
  17574. var j int
  17575. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17576. if j == 0 && len(v) == 0 && canChange {
  17577. if hasLen {
  17578. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17579. } else {
  17580. xlen = 8
  17581. }
  17582. v = make([]string, uint(xlen))
  17583. changed = true
  17584. }
  17585. // if indefinite, etc, then expand the slice if necessary
  17586. var decodeIntoBlank bool
  17587. if j >= len(v) {
  17588. if canChange {
  17589. v = append(v, "")
  17590. changed = true
  17591. } else {
  17592. d.arrayCannotExpand(len(v), j+1)
  17593. decodeIntoBlank = true
  17594. }
  17595. }
  17596. slh.ElemContainerState(j)
  17597. if decodeIntoBlank {
  17598. d.swallow()
  17599. } else if dd.TryDecodeAsNil() {
  17600. v[uint(j)] = ""
  17601. } else {
  17602. v[uint(j)] = dd.DecodeString()
  17603. }
  17604. }
  17605. if canChange {
  17606. if j < len(v) {
  17607. v = v[:uint(j)]
  17608. changed = true
  17609. } else if j == 0 && v == nil {
  17610. v = make([]string, 0)
  17611. changed = true
  17612. }
  17613. }
  17614. slh.End()
  17615. d.depthDecr()
  17616. return v, changed
  17617. }
  17618. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  17619. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17620. vp := rv2i(rv).(*[]float32)
  17621. v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d)
  17622. if changed {
  17623. *vp = v
  17624. }
  17625. } else {
  17626. v := rv2i(rv).([]float32)
  17627. v2, changed := fastpathTV.DecSliceFloat32V(v, !array, d)
  17628. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17629. copy(v, v2)
  17630. }
  17631. }
  17632. }
  17633. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  17634. v, changed := f.DecSliceFloat32V(*vp, true, d)
  17635. if changed {
  17636. *vp = v
  17637. }
  17638. }
  17639. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  17640. dd := d.d
  17641. slh, containerLenS := d.decSliceHelperStart()
  17642. if containerLenS == 0 {
  17643. if canChange {
  17644. if v == nil {
  17645. v = []float32{}
  17646. } else if len(v) != 0 {
  17647. v = v[:0]
  17648. }
  17649. changed = true
  17650. }
  17651. slh.End()
  17652. return v, changed
  17653. }
  17654. d.depthIncr()
  17655. hasLen := containerLenS > 0
  17656. var xlen int
  17657. if hasLen && canChange {
  17658. if containerLenS > cap(v) {
  17659. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17660. if xlen <= cap(v) {
  17661. v = v[:uint(xlen)]
  17662. } else {
  17663. v = make([]float32, uint(xlen))
  17664. }
  17665. changed = true
  17666. } else if containerLenS != len(v) {
  17667. v = v[:containerLenS]
  17668. changed = true
  17669. }
  17670. }
  17671. var j int
  17672. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17673. if j == 0 && len(v) == 0 && canChange {
  17674. if hasLen {
  17675. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17676. } else {
  17677. xlen = 8
  17678. }
  17679. v = make([]float32, uint(xlen))
  17680. changed = true
  17681. }
  17682. // if indefinite, etc, then expand the slice if necessary
  17683. var decodeIntoBlank bool
  17684. if j >= len(v) {
  17685. if canChange {
  17686. v = append(v, 0)
  17687. changed = true
  17688. } else {
  17689. d.arrayCannotExpand(len(v), j+1)
  17690. decodeIntoBlank = true
  17691. }
  17692. }
  17693. slh.ElemContainerState(j)
  17694. if decodeIntoBlank {
  17695. d.swallow()
  17696. } else if dd.TryDecodeAsNil() {
  17697. v[uint(j)] = 0
  17698. } else {
  17699. v[uint(j)] = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  17700. }
  17701. }
  17702. if canChange {
  17703. if j < len(v) {
  17704. v = v[:uint(j)]
  17705. changed = true
  17706. } else if j == 0 && v == nil {
  17707. v = make([]float32, 0)
  17708. changed = true
  17709. }
  17710. }
  17711. slh.End()
  17712. d.depthDecr()
  17713. return v, changed
  17714. }
  17715. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  17716. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17717. vp := rv2i(rv).(*[]float64)
  17718. v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d)
  17719. if changed {
  17720. *vp = v
  17721. }
  17722. } else {
  17723. v := rv2i(rv).([]float64)
  17724. v2, changed := fastpathTV.DecSliceFloat64V(v, !array, d)
  17725. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17726. copy(v, v2)
  17727. }
  17728. }
  17729. }
  17730. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  17731. v, changed := f.DecSliceFloat64V(*vp, true, d)
  17732. if changed {
  17733. *vp = v
  17734. }
  17735. }
  17736. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  17737. dd := d.d
  17738. slh, containerLenS := d.decSliceHelperStart()
  17739. if containerLenS == 0 {
  17740. if canChange {
  17741. if v == nil {
  17742. v = []float64{}
  17743. } else if len(v) != 0 {
  17744. v = v[:0]
  17745. }
  17746. changed = true
  17747. }
  17748. slh.End()
  17749. return v, changed
  17750. }
  17751. d.depthIncr()
  17752. hasLen := containerLenS > 0
  17753. var xlen int
  17754. if hasLen && canChange {
  17755. if containerLenS > cap(v) {
  17756. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17757. if xlen <= cap(v) {
  17758. v = v[:uint(xlen)]
  17759. } else {
  17760. v = make([]float64, uint(xlen))
  17761. }
  17762. changed = true
  17763. } else if containerLenS != len(v) {
  17764. v = v[:containerLenS]
  17765. changed = true
  17766. }
  17767. }
  17768. var j int
  17769. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17770. if j == 0 && len(v) == 0 && canChange {
  17771. if hasLen {
  17772. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17773. } else {
  17774. xlen = 8
  17775. }
  17776. v = make([]float64, uint(xlen))
  17777. changed = true
  17778. }
  17779. // if indefinite, etc, then expand the slice if necessary
  17780. var decodeIntoBlank bool
  17781. if j >= len(v) {
  17782. if canChange {
  17783. v = append(v, 0)
  17784. changed = true
  17785. } else {
  17786. d.arrayCannotExpand(len(v), j+1)
  17787. decodeIntoBlank = true
  17788. }
  17789. }
  17790. slh.ElemContainerState(j)
  17791. if decodeIntoBlank {
  17792. d.swallow()
  17793. } else if dd.TryDecodeAsNil() {
  17794. v[uint(j)] = 0
  17795. } else {
  17796. v[uint(j)] = dd.DecodeFloat64()
  17797. }
  17798. }
  17799. if canChange {
  17800. if j < len(v) {
  17801. v = v[:uint(j)]
  17802. changed = true
  17803. } else if j == 0 && v == nil {
  17804. v = make([]float64, 0)
  17805. changed = true
  17806. }
  17807. }
  17808. slh.End()
  17809. d.depthDecr()
  17810. return v, changed
  17811. }
  17812. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  17813. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17814. vp := rv2i(rv).(*[]uint)
  17815. v, changed := fastpathTV.DecSliceUintV(*vp, !array, d)
  17816. if changed {
  17817. *vp = v
  17818. }
  17819. } else {
  17820. v := rv2i(rv).([]uint)
  17821. v2, changed := fastpathTV.DecSliceUintV(v, !array, d)
  17822. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17823. copy(v, v2)
  17824. }
  17825. }
  17826. }
  17827. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  17828. v, changed := f.DecSliceUintV(*vp, true, d)
  17829. if changed {
  17830. *vp = v
  17831. }
  17832. }
  17833. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  17834. dd := d.d
  17835. slh, containerLenS := d.decSliceHelperStart()
  17836. if containerLenS == 0 {
  17837. if canChange {
  17838. if v == nil {
  17839. v = []uint{}
  17840. } else if len(v) != 0 {
  17841. v = v[:0]
  17842. }
  17843. changed = true
  17844. }
  17845. slh.End()
  17846. return v, changed
  17847. }
  17848. d.depthIncr()
  17849. hasLen := containerLenS > 0
  17850. var xlen int
  17851. if hasLen && canChange {
  17852. if containerLenS > cap(v) {
  17853. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17854. if xlen <= cap(v) {
  17855. v = v[:uint(xlen)]
  17856. } else {
  17857. v = make([]uint, uint(xlen))
  17858. }
  17859. changed = true
  17860. } else if containerLenS != len(v) {
  17861. v = v[:containerLenS]
  17862. changed = true
  17863. }
  17864. }
  17865. var j int
  17866. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17867. if j == 0 && len(v) == 0 && canChange {
  17868. if hasLen {
  17869. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17870. } else {
  17871. xlen = 8
  17872. }
  17873. v = make([]uint, uint(xlen))
  17874. changed = true
  17875. }
  17876. // if indefinite, etc, then expand the slice if necessary
  17877. var decodeIntoBlank bool
  17878. if j >= len(v) {
  17879. if canChange {
  17880. v = append(v, 0)
  17881. changed = true
  17882. } else {
  17883. d.arrayCannotExpand(len(v), j+1)
  17884. decodeIntoBlank = true
  17885. }
  17886. }
  17887. slh.ElemContainerState(j)
  17888. if decodeIntoBlank {
  17889. d.swallow()
  17890. } else if dd.TryDecodeAsNil() {
  17891. v[uint(j)] = 0
  17892. } else {
  17893. v[uint(j)] = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  17894. }
  17895. }
  17896. if canChange {
  17897. if j < len(v) {
  17898. v = v[:uint(j)]
  17899. changed = true
  17900. } else if j == 0 && v == nil {
  17901. v = make([]uint, 0)
  17902. changed = true
  17903. }
  17904. }
  17905. slh.End()
  17906. d.depthDecr()
  17907. return v, changed
  17908. }
  17909. func (d *Decoder) fastpathDecSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  17910. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17911. vp := rv2i(rv).(*[]uint8)
  17912. v, changed := fastpathTV.DecSliceUint8V(*vp, !array, d)
  17913. if changed {
  17914. *vp = v
  17915. }
  17916. } else {
  17917. v := rv2i(rv).([]uint8)
  17918. v2, changed := fastpathTV.DecSliceUint8V(v, !array, d)
  17919. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17920. copy(v, v2)
  17921. }
  17922. }
  17923. }
  17924. func (f fastpathT) DecSliceUint8X(vp *[]uint8, d *Decoder) {
  17925. v, changed := f.DecSliceUint8V(*vp, true, d)
  17926. if changed {
  17927. *vp = v
  17928. }
  17929. }
  17930. func (_ fastpathT) DecSliceUint8V(v []uint8, canChange bool, d *Decoder) (_ []uint8, changed bool) {
  17931. dd := d.d
  17932. slh, containerLenS := d.decSliceHelperStart()
  17933. if containerLenS == 0 {
  17934. if canChange {
  17935. if v == nil {
  17936. v = []uint8{}
  17937. } else if len(v) != 0 {
  17938. v = v[:0]
  17939. }
  17940. changed = true
  17941. }
  17942. slh.End()
  17943. return v, changed
  17944. }
  17945. d.depthIncr()
  17946. hasLen := containerLenS > 0
  17947. var xlen int
  17948. if hasLen && canChange {
  17949. if containerLenS > cap(v) {
  17950. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17951. if xlen <= cap(v) {
  17952. v = v[:uint(xlen)]
  17953. } else {
  17954. v = make([]uint8, uint(xlen))
  17955. }
  17956. changed = true
  17957. } else if containerLenS != len(v) {
  17958. v = v[:containerLenS]
  17959. changed = true
  17960. }
  17961. }
  17962. var j int
  17963. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17964. if j == 0 && len(v) == 0 && canChange {
  17965. if hasLen {
  17966. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17967. } else {
  17968. xlen = 8
  17969. }
  17970. v = make([]uint8, uint(xlen))
  17971. changed = true
  17972. }
  17973. // if indefinite, etc, then expand the slice if necessary
  17974. var decodeIntoBlank bool
  17975. if j >= len(v) {
  17976. if canChange {
  17977. v = append(v, 0)
  17978. changed = true
  17979. } else {
  17980. d.arrayCannotExpand(len(v), j+1)
  17981. decodeIntoBlank = true
  17982. }
  17983. }
  17984. slh.ElemContainerState(j)
  17985. if decodeIntoBlank {
  17986. d.swallow()
  17987. } else if dd.TryDecodeAsNil() {
  17988. v[uint(j)] = 0
  17989. } else {
  17990. v[uint(j)] = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  17991. }
  17992. }
  17993. if canChange {
  17994. if j < len(v) {
  17995. v = v[:uint(j)]
  17996. changed = true
  17997. } else if j == 0 && v == nil {
  17998. v = make([]uint8, 0)
  17999. changed = true
  18000. }
  18001. }
  18002. slh.End()
  18003. d.depthDecr()
  18004. return v, changed
  18005. }
  18006. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  18007. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18008. vp := rv2i(rv).(*[]uint16)
  18009. v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d)
  18010. if changed {
  18011. *vp = v
  18012. }
  18013. } else {
  18014. v := rv2i(rv).([]uint16)
  18015. v2, changed := fastpathTV.DecSliceUint16V(v, !array, d)
  18016. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18017. copy(v, v2)
  18018. }
  18019. }
  18020. }
  18021. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  18022. v, changed := f.DecSliceUint16V(*vp, true, d)
  18023. if changed {
  18024. *vp = v
  18025. }
  18026. }
  18027. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  18028. dd := d.d
  18029. slh, containerLenS := d.decSliceHelperStart()
  18030. if containerLenS == 0 {
  18031. if canChange {
  18032. if v == nil {
  18033. v = []uint16{}
  18034. } else if len(v) != 0 {
  18035. v = v[:0]
  18036. }
  18037. changed = true
  18038. }
  18039. slh.End()
  18040. return v, changed
  18041. }
  18042. d.depthIncr()
  18043. hasLen := containerLenS > 0
  18044. var xlen int
  18045. if hasLen && canChange {
  18046. if containerLenS > cap(v) {
  18047. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18048. if xlen <= cap(v) {
  18049. v = v[:uint(xlen)]
  18050. } else {
  18051. v = make([]uint16, uint(xlen))
  18052. }
  18053. changed = true
  18054. } else if containerLenS != len(v) {
  18055. v = v[:containerLenS]
  18056. changed = true
  18057. }
  18058. }
  18059. var j int
  18060. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18061. if j == 0 && len(v) == 0 && canChange {
  18062. if hasLen {
  18063. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18064. } else {
  18065. xlen = 8
  18066. }
  18067. v = make([]uint16, uint(xlen))
  18068. changed = true
  18069. }
  18070. // if indefinite, etc, then expand the slice if necessary
  18071. var decodeIntoBlank bool
  18072. if j >= len(v) {
  18073. if canChange {
  18074. v = append(v, 0)
  18075. changed = true
  18076. } else {
  18077. d.arrayCannotExpand(len(v), j+1)
  18078. decodeIntoBlank = true
  18079. }
  18080. }
  18081. slh.ElemContainerState(j)
  18082. if decodeIntoBlank {
  18083. d.swallow()
  18084. } else if dd.TryDecodeAsNil() {
  18085. v[uint(j)] = 0
  18086. } else {
  18087. v[uint(j)] = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  18088. }
  18089. }
  18090. if canChange {
  18091. if j < len(v) {
  18092. v = v[:uint(j)]
  18093. changed = true
  18094. } else if j == 0 && v == nil {
  18095. v = make([]uint16, 0)
  18096. changed = true
  18097. }
  18098. }
  18099. slh.End()
  18100. d.depthDecr()
  18101. return v, changed
  18102. }
  18103. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  18104. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18105. vp := rv2i(rv).(*[]uint32)
  18106. v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d)
  18107. if changed {
  18108. *vp = v
  18109. }
  18110. } else {
  18111. v := rv2i(rv).([]uint32)
  18112. v2, changed := fastpathTV.DecSliceUint32V(v, !array, d)
  18113. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18114. copy(v, v2)
  18115. }
  18116. }
  18117. }
  18118. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  18119. v, changed := f.DecSliceUint32V(*vp, true, d)
  18120. if changed {
  18121. *vp = v
  18122. }
  18123. }
  18124. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  18125. dd := d.d
  18126. slh, containerLenS := d.decSliceHelperStart()
  18127. if containerLenS == 0 {
  18128. if canChange {
  18129. if v == nil {
  18130. v = []uint32{}
  18131. } else if len(v) != 0 {
  18132. v = v[:0]
  18133. }
  18134. changed = true
  18135. }
  18136. slh.End()
  18137. return v, changed
  18138. }
  18139. d.depthIncr()
  18140. hasLen := containerLenS > 0
  18141. var xlen int
  18142. if hasLen && canChange {
  18143. if containerLenS > cap(v) {
  18144. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18145. if xlen <= cap(v) {
  18146. v = v[:uint(xlen)]
  18147. } else {
  18148. v = make([]uint32, uint(xlen))
  18149. }
  18150. changed = true
  18151. } else if containerLenS != len(v) {
  18152. v = v[:containerLenS]
  18153. changed = true
  18154. }
  18155. }
  18156. var j int
  18157. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18158. if j == 0 && len(v) == 0 && canChange {
  18159. if hasLen {
  18160. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18161. } else {
  18162. xlen = 8
  18163. }
  18164. v = make([]uint32, uint(xlen))
  18165. changed = true
  18166. }
  18167. // if indefinite, etc, then expand the slice if necessary
  18168. var decodeIntoBlank bool
  18169. if j >= len(v) {
  18170. if canChange {
  18171. v = append(v, 0)
  18172. changed = true
  18173. } else {
  18174. d.arrayCannotExpand(len(v), j+1)
  18175. decodeIntoBlank = true
  18176. }
  18177. }
  18178. slh.ElemContainerState(j)
  18179. if decodeIntoBlank {
  18180. d.swallow()
  18181. } else if dd.TryDecodeAsNil() {
  18182. v[uint(j)] = 0
  18183. } else {
  18184. v[uint(j)] = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  18185. }
  18186. }
  18187. if canChange {
  18188. if j < len(v) {
  18189. v = v[:uint(j)]
  18190. changed = true
  18191. } else if j == 0 && v == nil {
  18192. v = make([]uint32, 0)
  18193. changed = true
  18194. }
  18195. }
  18196. slh.End()
  18197. d.depthDecr()
  18198. return v, changed
  18199. }
  18200. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  18201. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18202. vp := rv2i(rv).(*[]uint64)
  18203. v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d)
  18204. if changed {
  18205. *vp = v
  18206. }
  18207. } else {
  18208. v := rv2i(rv).([]uint64)
  18209. v2, changed := fastpathTV.DecSliceUint64V(v, !array, d)
  18210. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18211. copy(v, v2)
  18212. }
  18213. }
  18214. }
  18215. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  18216. v, changed := f.DecSliceUint64V(*vp, true, d)
  18217. if changed {
  18218. *vp = v
  18219. }
  18220. }
  18221. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  18222. dd := d.d
  18223. slh, containerLenS := d.decSliceHelperStart()
  18224. if containerLenS == 0 {
  18225. if canChange {
  18226. if v == nil {
  18227. v = []uint64{}
  18228. } else if len(v) != 0 {
  18229. v = v[:0]
  18230. }
  18231. changed = true
  18232. }
  18233. slh.End()
  18234. return v, changed
  18235. }
  18236. d.depthIncr()
  18237. hasLen := containerLenS > 0
  18238. var xlen int
  18239. if hasLen && canChange {
  18240. if containerLenS > cap(v) {
  18241. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18242. if xlen <= cap(v) {
  18243. v = v[:uint(xlen)]
  18244. } else {
  18245. v = make([]uint64, uint(xlen))
  18246. }
  18247. changed = true
  18248. } else if containerLenS != len(v) {
  18249. v = v[:containerLenS]
  18250. changed = true
  18251. }
  18252. }
  18253. var j int
  18254. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18255. if j == 0 && len(v) == 0 && canChange {
  18256. if hasLen {
  18257. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18258. } else {
  18259. xlen = 8
  18260. }
  18261. v = make([]uint64, uint(xlen))
  18262. changed = true
  18263. }
  18264. // if indefinite, etc, then expand the slice if necessary
  18265. var decodeIntoBlank bool
  18266. if j >= len(v) {
  18267. if canChange {
  18268. v = append(v, 0)
  18269. changed = true
  18270. } else {
  18271. d.arrayCannotExpand(len(v), j+1)
  18272. decodeIntoBlank = true
  18273. }
  18274. }
  18275. slh.ElemContainerState(j)
  18276. if decodeIntoBlank {
  18277. d.swallow()
  18278. } else if dd.TryDecodeAsNil() {
  18279. v[uint(j)] = 0
  18280. } else {
  18281. v[uint(j)] = dd.DecodeUint64()
  18282. }
  18283. }
  18284. if canChange {
  18285. if j < len(v) {
  18286. v = v[:uint(j)]
  18287. changed = true
  18288. } else if j == 0 && v == nil {
  18289. v = make([]uint64, 0)
  18290. changed = true
  18291. }
  18292. }
  18293. slh.End()
  18294. d.depthDecr()
  18295. return v, changed
  18296. }
  18297. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  18298. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18299. vp := rv2i(rv).(*[]uintptr)
  18300. v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d)
  18301. if changed {
  18302. *vp = v
  18303. }
  18304. } else {
  18305. v := rv2i(rv).([]uintptr)
  18306. v2, changed := fastpathTV.DecSliceUintptrV(v, !array, d)
  18307. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18308. copy(v, v2)
  18309. }
  18310. }
  18311. }
  18312. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  18313. v, changed := f.DecSliceUintptrV(*vp, true, d)
  18314. if changed {
  18315. *vp = v
  18316. }
  18317. }
  18318. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  18319. dd := d.d
  18320. slh, containerLenS := d.decSliceHelperStart()
  18321. if containerLenS == 0 {
  18322. if canChange {
  18323. if v == nil {
  18324. v = []uintptr{}
  18325. } else if len(v) != 0 {
  18326. v = v[:0]
  18327. }
  18328. changed = true
  18329. }
  18330. slh.End()
  18331. return v, changed
  18332. }
  18333. d.depthIncr()
  18334. hasLen := containerLenS > 0
  18335. var xlen int
  18336. if hasLen && canChange {
  18337. if containerLenS > cap(v) {
  18338. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18339. if xlen <= cap(v) {
  18340. v = v[:uint(xlen)]
  18341. } else {
  18342. v = make([]uintptr, uint(xlen))
  18343. }
  18344. changed = true
  18345. } else if containerLenS != len(v) {
  18346. v = v[:containerLenS]
  18347. changed = true
  18348. }
  18349. }
  18350. var j int
  18351. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18352. if j == 0 && len(v) == 0 && canChange {
  18353. if hasLen {
  18354. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18355. } else {
  18356. xlen = 8
  18357. }
  18358. v = make([]uintptr, uint(xlen))
  18359. changed = true
  18360. }
  18361. // if indefinite, etc, then expand the slice if necessary
  18362. var decodeIntoBlank bool
  18363. if j >= len(v) {
  18364. if canChange {
  18365. v = append(v, 0)
  18366. changed = true
  18367. } else {
  18368. d.arrayCannotExpand(len(v), j+1)
  18369. decodeIntoBlank = true
  18370. }
  18371. }
  18372. slh.ElemContainerState(j)
  18373. if decodeIntoBlank {
  18374. d.swallow()
  18375. } else if dd.TryDecodeAsNil() {
  18376. v[uint(j)] = 0
  18377. } else {
  18378. v[uint(j)] = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  18379. }
  18380. }
  18381. if canChange {
  18382. if j < len(v) {
  18383. v = v[:uint(j)]
  18384. changed = true
  18385. } else if j == 0 && v == nil {
  18386. v = make([]uintptr, 0)
  18387. changed = true
  18388. }
  18389. }
  18390. slh.End()
  18391. d.depthDecr()
  18392. return v, changed
  18393. }
  18394. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  18395. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18396. vp := rv2i(rv).(*[]int)
  18397. v, changed := fastpathTV.DecSliceIntV(*vp, !array, d)
  18398. if changed {
  18399. *vp = v
  18400. }
  18401. } else {
  18402. v := rv2i(rv).([]int)
  18403. v2, changed := fastpathTV.DecSliceIntV(v, !array, d)
  18404. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18405. copy(v, v2)
  18406. }
  18407. }
  18408. }
  18409. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  18410. v, changed := f.DecSliceIntV(*vp, true, d)
  18411. if changed {
  18412. *vp = v
  18413. }
  18414. }
  18415. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  18416. dd := d.d
  18417. slh, containerLenS := d.decSliceHelperStart()
  18418. if containerLenS == 0 {
  18419. if canChange {
  18420. if v == nil {
  18421. v = []int{}
  18422. } else if len(v) != 0 {
  18423. v = v[:0]
  18424. }
  18425. changed = true
  18426. }
  18427. slh.End()
  18428. return v, changed
  18429. }
  18430. d.depthIncr()
  18431. hasLen := containerLenS > 0
  18432. var xlen int
  18433. if hasLen && canChange {
  18434. if containerLenS > cap(v) {
  18435. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18436. if xlen <= cap(v) {
  18437. v = v[:uint(xlen)]
  18438. } else {
  18439. v = make([]int, uint(xlen))
  18440. }
  18441. changed = true
  18442. } else if containerLenS != len(v) {
  18443. v = v[:containerLenS]
  18444. changed = true
  18445. }
  18446. }
  18447. var j int
  18448. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18449. if j == 0 && len(v) == 0 && canChange {
  18450. if hasLen {
  18451. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18452. } else {
  18453. xlen = 8
  18454. }
  18455. v = make([]int, uint(xlen))
  18456. changed = true
  18457. }
  18458. // if indefinite, etc, then expand the slice if necessary
  18459. var decodeIntoBlank bool
  18460. if j >= len(v) {
  18461. if canChange {
  18462. v = append(v, 0)
  18463. changed = true
  18464. } else {
  18465. d.arrayCannotExpand(len(v), j+1)
  18466. decodeIntoBlank = true
  18467. }
  18468. }
  18469. slh.ElemContainerState(j)
  18470. if decodeIntoBlank {
  18471. d.swallow()
  18472. } else if dd.TryDecodeAsNil() {
  18473. v[uint(j)] = 0
  18474. } else {
  18475. v[uint(j)] = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  18476. }
  18477. }
  18478. if canChange {
  18479. if j < len(v) {
  18480. v = v[:uint(j)]
  18481. changed = true
  18482. } else if j == 0 && v == nil {
  18483. v = make([]int, 0)
  18484. changed = true
  18485. }
  18486. }
  18487. slh.End()
  18488. d.depthDecr()
  18489. return v, changed
  18490. }
  18491. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  18492. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18493. vp := rv2i(rv).(*[]int8)
  18494. v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d)
  18495. if changed {
  18496. *vp = v
  18497. }
  18498. } else {
  18499. v := rv2i(rv).([]int8)
  18500. v2, changed := fastpathTV.DecSliceInt8V(v, !array, d)
  18501. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18502. copy(v, v2)
  18503. }
  18504. }
  18505. }
  18506. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  18507. v, changed := f.DecSliceInt8V(*vp, true, d)
  18508. if changed {
  18509. *vp = v
  18510. }
  18511. }
  18512. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  18513. dd := d.d
  18514. slh, containerLenS := d.decSliceHelperStart()
  18515. if containerLenS == 0 {
  18516. if canChange {
  18517. if v == nil {
  18518. v = []int8{}
  18519. } else if len(v) != 0 {
  18520. v = v[:0]
  18521. }
  18522. changed = true
  18523. }
  18524. slh.End()
  18525. return v, changed
  18526. }
  18527. d.depthIncr()
  18528. hasLen := containerLenS > 0
  18529. var xlen int
  18530. if hasLen && canChange {
  18531. if containerLenS > cap(v) {
  18532. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18533. if xlen <= cap(v) {
  18534. v = v[:uint(xlen)]
  18535. } else {
  18536. v = make([]int8, uint(xlen))
  18537. }
  18538. changed = true
  18539. } else if containerLenS != len(v) {
  18540. v = v[:containerLenS]
  18541. changed = true
  18542. }
  18543. }
  18544. var j int
  18545. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18546. if j == 0 && len(v) == 0 && canChange {
  18547. if hasLen {
  18548. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18549. } else {
  18550. xlen = 8
  18551. }
  18552. v = make([]int8, uint(xlen))
  18553. changed = true
  18554. }
  18555. // if indefinite, etc, then expand the slice if necessary
  18556. var decodeIntoBlank bool
  18557. if j >= len(v) {
  18558. if canChange {
  18559. v = append(v, 0)
  18560. changed = true
  18561. } else {
  18562. d.arrayCannotExpand(len(v), j+1)
  18563. decodeIntoBlank = true
  18564. }
  18565. }
  18566. slh.ElemContainerState(j)
  18567. if decodeIntoBlank {
  18568. d.swallow()
  18569. } else if dd.TryDecodeAsNil() {
  18570. v[uint(j)] = 0
  18571. } else {
  18572. v[uint(j)] = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  18573. }
  18574. }
  18575. if canChange {
  18576. if j < len(v) {
  18577. v = v[:uint(j)]
  18578. changed = true
  18579. } else if j == 0 && v == nil {
  18580. v = make([]int8, 0)
  18581. changed = true
  18582. }
  18583. }
  18584. slh.End()
  18585. d.depthDecr()
  18586. return v, changed
  18587. }
  18588. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  18589. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18590. vp := rv2i(rv).(*[]int16)
  18591. v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d)
  18592. if changed {
  18593. *vp = v
  18594. }
  18595. } else {
  18596. v := rv2i(rv).([]int16)
  18597. v2, changed := fastpathTV.DecSliceInt16V(v, !array, d)
  18598. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18599. copy(v, v2)
  18600. }
  18601. }
  18602. }
  18603. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  18604. v, changed := f.DecSliceInt16V(*vp, true, d)
  18605. if changed {
  18606. *vp = v
  18607. }
  18608. }
  18609. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  18610. dd := d.d
  18611. slh, containerLenS := d.decSliceHelperStart()
  18612. if containerLenS == 0 {
  18613. if canChange {
  18614. if v == nil {
  18615. v = []int16{}
  18616. } else if len(v) != 0 {
  18617. v = v[:0]
  18618. }
  18619. changed = true
  18620. }
  18621. slh.End()
  18622. return v, changed
  18623. }
  18624. d.depthIncr()
  18625. hasLen := containerLenS > 0
  18626. var xlen int
  18627. if hasLen && canChange {
  18628. if containerLenS > cap(v) {
  18629. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18630. if xlen <= cap(v) {
  18631. v = v[:uint(xlen)]
  18632. } else {
  18633. v = make([]int16, uint(xlen))
  18634. }
  18635. changed = true
  18636. } else if containerLenS != len(v) {
  18637. v = v[:containerLenS]
  18638. changed = true
  18639. }
  18640. }
  18641. var j int
  18642. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18643. if j == 0 && len(v) == 0 && canChange {
  18644. if hasLen {
  18645. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18646. } else {
  18647. xlen = 8
  18648. }
  18649. v = make([]int16, uint(xlen))
  18650. changed = true
  18651. }
  18652. // if indefinite, etc, then expand the slice if necessary
  18653. var decodeIntoBlank bool
  18654. if j >= len(v) {
  18655. if canChange {
  18656. v = append(v, 0)
  18657. changed = true
  18658. } else {
  18659. d.arrayCannotExpand(len(v), j+1)
  18660. decodeIntoBlank = true
  18661. }
  18662. }
  18663. slh.ElemContainerState(j)
  18664. if decodeIntoBlank {
  18665. d.swallow()
  18666. } else if dd.TryDecodeAsNil() {
  18667. v[uint(j)] = 0
  18668. } else {
  18669. v[uint(j)] = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  18670. }
  18671. }
  18672. if canChange {
  18673. if j < len(v) {
  18674. v = v[:uint(j)]
  18675. changed = true
  18676. } else if j == 0 && v == nil {
  18677. v = make([]int16, 0)
  18678. changed = true
  18679. }
  18680. }
  18681. slh.End()
  18682. d.depthDecr()
  18683. return v, changed
  18684. }
  18685. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  18686. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18687. vp := rv2i(rv).(*[]int32)
  18688. v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d)
  18689. if changed {
  18690. *vp = v
  18691. }
  18692. } else {
  18693. v := rv2i(rv).([]int32)
  18694. v2, changed := fastpathTV.DecSliceInt32V(v, !array, d)
  18695. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18696. copy(v, v2)
  18697. }
  18698. }
  18699. }
  18700. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  18701. v, changed := f.DecSliceInt32V(*vp, true, d)
  18702. if changed {
  18703. *vp = v
  18704. }
  18705. }
  18706. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  18707. dd := d.d
  18708. slh, containerLenS := d.decSliceHelperStart()
  18709. if containerLenS == 0 {
  18710. if canChange {
  18711. if v == nil {
  18712. v = []int32{}
  18713. } else if len(v) != 0 {
  18714. v = v[:0]
  18715. }
  18716. changed = true
  18717. }
  18718. slh.End()
  18719. return v, changed
  18720. }
  18721. d.depthIncr()
  18722. hasLen := containerLenS > 0
  18723. var xlen int
  18724. if hasLen && canChange {
  18725. if containerLenS > cap(v) {
  18726. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18727. if xlen <= cap(v) {
  18728. v = v[:uint(xlen)]
  18729. } else {
  18730. v = make([]int32, uint(xlen))
  18731. }
  18732. changed = true
  18733. } else if containerLenS != len(v) {
  18734. v = v[:containerLenS]
  18735. changed = true
  18736. }
  18737. }
  18738. var j int
  18739. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18740. if j == 0 && len(v) == 0 && canChange {
  18741. if hasLen {
  18742. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18743. } else {
  18744. xlen = 8
  18745. }
  18746. v = make([]int32, uint(xlen))
  18747. changed = true
  18748. }
  18749. // if indefinite, etc, then expand the slice if necessary
  18750. var decodeIntoBlank bool
  18751. if j >= len(v) {
  18752. if canChange {
  18753. v = append(v, 0)
  18754. changed = true
  18755. } else {
  18756. d.arrayCannotExpand(len(v), j+1)
  18757. decodeIntoBlank = true
  18758. }
  18759. }
  18760. slh.ElemContainerState(j)
  18761. if decodeIntoBlank {
  18762. d.swallow()
  18763. } else if dd.TryDecodeAsNil() {
  18764. v[uint(j)] = 0
  18765. } else {
  18766. v[uint(j)] = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  18767. }
  18768. }
  18769. if canChange {
  18770. if j < len(v) {
  18771. v = v[:uint(j)]
  18772. changed = true
  18773. } else if j == 0 && v == nil {
  18774. v = make([]int32, 0)
  18775. changed = true
  18776. }
  18777. }
  18778. slh.End()
  18779. d.depthDecr()
  18780. return v, changed
  18781. }
  18782. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  18783. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18784. vp := rv2i(rv).(*[]int64)
  18785. v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d)
  18786. if changed {
  18787. *vp = v
  18788. }
  18789. } else {
  18790. v := rv2i(rv).([]int64)
  18791. v2, changed := fastpathTV.DecSliceInt64V(v, !array, d)
  18792. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18793. copy(v, v2)
  18794. }
  18795. }
  18796. }
  18797. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  18798. v, changed := f.DecSliceInt64V(*vp, true, d)
  18799. if changed {
  18800. *vp = v
  18801. }
  18802. }
  18803. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  18804. dd := d.d
  18805. slh, containerLenS := d.decSliceHelperStart()
  18806. if containerLenS == 0 {
  18807. if canChange {
  18808. if v == nil {
  18809. v = []int64{}
  18810. } else if len(v) != 0 {
  18811. v = v[:0]
  18812. }
  18813. changed = true
  18814. }
  18815. slh.End()
  18816. return v, changed
  18817. }
  18818. d.depthIncr()
  18819. hasLen := containerLenS > 0
  18820. var xlen int
  18821. if hasLen && canChange {
  18822. if containerLenS > cap(v) {
  18823. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18824. if xlen <= cap(v) {
  18825. v = v[:uint(xlen)]
  18826. } else {
  18827. v = make([]int64, uint(xlen))
  18828. }
  18829. changed = true
  18830. } else if containerLenS != len(v) {
  18831. v = v[:containerLenS]
  18832. changed = true
  18833. }
  18834. }
  18835. var j int
  18836. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18837. if j == 0 && len(v) == 0 && canChange {
  18838. if hasLen {
  18839. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18840. } else {
  18841. xlen = 8
  18842. }
  18843. v = make([]int64, uint(xlen))
  18844. changed = true
  18845. }
  18846. // if indefinite, etc, then expand the slice if necessary
  18847. var decodeIntoBlank bool
  18848. if j >= len(v) {
  18849. if canChange {
  18850. v = append(v, 0)
  18851. changed = true
  18852. } else {
  18853. d.arrayCannotExpand(len(v), j+1)
  18854. decodeIntoBlank = true
  18855. }
  18856. }
  18857. slh.ElemContainerState(j)
  18858. if decodeIntoBlank {
  18859. d.swallow()
  18860. } else if dd.TryDecodeAsNil() {
  18861. v[uint(j)] = 0
  18862. } else {
  18863. v[uint(j)] = dd.DecodeInt64()
  18864. }
  18865. }
  18866. if canChange {
  18867. if j < len(v) {
  18868. v = v[:uint(j)]
  18869. changed = true
  18870. } else if j == 0 && v == nil {
  18871. v = make([]int64, 0)
  18872. changed = true
  18873. }
  18874. }
  18875. slh.End()
  18876. d.depthDecr()
  18877. return v, changed
  18878. }
  18879. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  18880. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18881. vp := rv2i(rv).(*[]bool)
  18882. v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d)
  18883. if changed {
  18884. *vp = v
  18885. }
  18886. } else {
  18887. v := rv2i(rv).([]bool)
  18888. v2, changed := fastpathTV.DecSliceBoolV(v, !array, d)
  18889. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18890. copy(v, v2)
  18891. }
  18892. }
  18893. }
  18894. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  18895. v, changed := f.DecSliceBoolV(*vp, true, d)
  18896. if changed {
  18897. *vp = v
  18898. }
  18899. }
  18900. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  18901. dd := d.d
  18902. slh, containerLenS := d.decSliceHelperStart()
  18903. if containerLenS == 0 {
  18904. if canChange {
  18905. if v == nil {
  18906. v = []bool{}
  18907. } else if len(v) != 0 {
  18908. v = v[:0]
  18909. }
  18910. changed = true
  18911. }
  18912. slh.End()
  18913. return v, changed
  18914. }
  18915. d.depthIncr()
  18916. hasLen := containerLenS > 0
  18917. var xlen int
  18918. if hasLen && canChange {
  18919. if containerLenS > cap(v) {
  18920. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18921. if xlen <= cap(v) {
  18922. v = v[:uint(xlen)]
  18923. } else {
  18924. v = make([]bool, uint(xlen))
  18925. }
  18926. changed = true
  18927. } else if containerLenS != len(v) {
  18928. v = v[:containerLenS]
  18929. changed = true
  18930. }
  18931. }
  18932. var j int
  18933. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18934. if j == 0 && len(v) == 0 && canChange {
  18935. if hasLen {
  18936. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18937. } else {
  18938. xlen = 8
  18939. }
  18940. v = make([]bool, uint(xlen))
  18941. changed = true
  18942. }
  18943. // if indefinite, etc, then expand the slice if necessary
  18944. var decodeIntoBlank bool
  18945. if j >= len(v) {
  18946. if canChange {
  18947. v = append(v, false)
  18948. changed = true
  18949. } else {
  18950. d.arrayCannotExpand(len(v), j+1)
  18951. decodeIntoBlank = true
  18952. }
  18953. }
  18954. slh.ElemContainerState(j)
  18955. if decodeIntoBlank {
  18956. d.swallow()
  18957. } else if dd.TryDecodeAsNil() {
  18958. v[uint(j)] = false
  18959. } else {
  18960. v[uint(j)] = dd.DecodeBool()
  18961. }
  18962. }
  18963. if canChange {
  18964. if j < len(v) {
  18965. v = v[:uint(j)]
  18966. changed = true
  18967. } else if j == 0 && v == nil {
  18968. v = make([]bool, 0)
  18969. changed = true
  18970. }
  18971. }
  18972. slh.End()
  18973. d.depthDecr()
  18974. return v, changed
  18975. }
  18976. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  18977. if rv.Kind() == reflect.Ptr {
  18978. vp := rv2i(rv).(*map[interface{}]interface{})
  18979. v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d)
  18980. if changed {
  18981. *vp = v
  18982. }
  18983. } else {
  18984. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  18985. }
  18986. }
  18987. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  18988. v, changed := f.DecMapIntfIntfV(*vp, true, d)
  18989. if changed {
  18990. *vp = v
  18991. }
  18992. }
  18993. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  18994. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  18995. dd, esep := d.d, d.hh.hasElemSeparators()
  18996. containerLen := dd.ReadMapStart()
  18997. if canChange && v == nil {
  18998. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18999. v = make(map[interface{}]interface{}, xlen)
  19000. changed = true
  19001. }
  19002. if containerLen == 0 {
  19003. dd.ReadMapEnd()
  19004. return v, changed
  19005. }
  19006. d.depthIncr()
  19007. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  19008. var mk interface{}
  19009. var mv interface{}
  19010. hasLen := containerLen > 0
  19011. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19012. if esep {
  19013. dd.ReadMapElemKey()
  19014. }
  19015. mk = nil
  19016. d.decode(&mk)
  19017. if bv, bok := mk.([]byte); bok {
  19018. mk = d.string(bv)
  19019. }
  19020. if esep {
  19021. dd.ReadMapElemValue()
  19022. }
  19023. if dd.TryDecodeAsNil() {
  19024. if v == nil {
  19025. } else if d.h.DeleteOnNilMapValue {
  19026. delete(v, mk)
  19027. } else {
  19028. v[mk] = nil
  19029. }
  19030. continue
  19031. }
  19032. if mapGet {
  19033. mv = v[mk]
  19034. } else {
  19035. mv = nil
  19036. }
  19037. d.decode(&mv)
  19038. if v != nil {
  19039. v[mk] = mv
  19040. }
  19041. }
  19042. dd.ReadMapEnd()
  19043. d.depthDecr()
  19044. return v, changed
  19045. }
  19046. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  19047. if rv.Kind() == reflect.Ptr {
  19048. vp := rv2i(rv).(*map[interface{}]string)
  19049. v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d)
  19050. if changed {
  19051. *vp = v
  19052. }
  19053. } else {
  19054. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  19055. }
  19056. }
  19057. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  19058. v, changed := f.DecMapIntfStringV(*vp, true, d)
  19059. if changed {
  19060. *vp = v
  19061. }
  19062. }
  19063. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  19064. d *Decoder) (_ map[interface{}]string, changed bool) {
  19065. dd, esep := d.d, d.hh.hasElemSeparators()
  19066. containerLen := dd.ReadMapStart()
  19067. if canChange && v == nil {
  19068. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  19069. v = make(map[interface{}]string, xlen)
  19070. changed = true
  19071. }
  19072. if containerLen == 0 {
  19073. dd.ReadMapEnd()
  19074. return v, changed
  19075. }
  19076. d.depthIncr()
  19077. var mk interface{}
  19078. var mv string
  19079. hasLen := containerLen > 0
  19080. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19081. if esep {
  19082. dd.ReadMapElemKey()
  19083. }
  19084. mk = nil
  19085. d.decode(&mk)
  19086. if bv, bok := mk.([]byte); bok {
  19087. mk = d.string(bv)
  19088. }
  19089. if esep {
  19090. dd.ReadMapElemValue()
  19091. }
  19092. if dd.TryDecodeAsNil() {
  19093. if v == nil {
  19094. } else if d.h.DeleteOnNilMapValue {
  19095. delete(v, mk)
  19096. } else {
  19097. v[mk] = ""
  19098. }
  19099. continue
  19100. }
  19101. mv = dd.DecodeString()
  19102. if v != nil {
  19103. v[mk] = mv
  19104. }
  19105. }
  19106. dd.ReadMapEnd()
  19107. d.depthDecr()
  19108. return v, changed
  19109. }
  19110. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  19111. if rv.Kind() == reflect.Ptr {
  19112. vp := rv2i(rv).(*map[interface{}]uint)
  19113. v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d)
  19114. if changed {
  19115. *vp = v
  19116. }
  19117. } else {
  19118. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  19119. }
  19120. }
  19121. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  19122. v, changed := f.DecMapIntfUintV(*vp, true, d)
  19123. if changed {
  19124. *vp = v
  19125. }
  19126. }
  19127. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  19128. d *Decoder) (_ map[interface{}]uint, changed bool) {
  19129. dd, esep := d.d, d.hh.hasElemSeparators()
  19130. containerLen := dd.ReadMapStart()
  19131. if canChange && v == nil {
  19132. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19133. v = make(map[interface{}]uint, xlen)
  19134. changed = true
  19135. }
  19136. if containerLen == 0 {
  19137. dd.ReadMapEnd()
  19138. return v, changed
  19139. }
  19140. d.depthIncr()
  19141. var mk interface{}
  19142. var mv uint
  19143. hasLen := containerLen > 0
  19144. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19145. if esep {
  19146. dd.ReadMapElemKey()
  19147. }
  19148. mk = nil
  19149. d.decode(&mk)
  19150. if bv, bok := mk.([]byte); bok {
  19151. mk = d.string(bv)
  19152. }
  19153. if esep {
  19154. dd.ReadMapElemValue()
  19155. }
  19156. if dd.TryDecodeAsNil() {
  19157. if v == nil {
  19158. } else if d.h.DeleteOnNilMapValue {
  19159. delete(v, mk)
  19160. } else {
  19161. v[mk] = 0
  19162. }
  19163. continue
  19164. }
  19165. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19166. if v != nil {
  19167. v[mk] = mv
  19168. }
  19169. }
  19170. dd.ReadMapEnd()
  19171. d.depthDecr()
  19172. return v, changed
  19173. }
  19174. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  19175. if rv.Kind() == reflect.Ptr {
  19176. vp := rv2i(rv).(*map[interface{}]uint8)
  19177. v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d)
  19178. if changed {
  19179. *vp = v
  19180. }
  19181. } else {
  19182. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  19183. }
  19184. }
  19185. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  19186. v, changed := f.DecMapIntfUint8V(*vp, true, d)
  19187. if changed {
  19188. *vp = v
  19189. }
  19190. }
  19191. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  19192. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  19193. dd, esep := d.d, d.hh.hasElemSeparators()
  19194. containerLen := dd.ReadMapStart()
  19195. if canChange && v == nil {
  19196. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19197. v = make(map[interface{}]uint8, xlen)
  19198. changed = true
  19199. }
  19200. if containerLen == 0 {
  19201. dd.ReadMapEnd()
  19202. return v, changed
  19203. }
  19204. d.depthIncr()
  19205. var mk interface{}
  19206. var mv uint8
  19207. hasLen := containerLen > 0
  19208. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19209. if esep {
  19210. dd.ReadMapElemKey()
  19211. }
  19212. mk = nil
  19213. d.decode(&mk)
  19214. if bv, bok := mk.([]byte); bok {
  19215. mk = d.string(bv)
  19216. }
  19217. if esep {
  19218. dd.ReadMapElemValue()
  19219. }
  19220. if dd.TryDecodeAsNil() {
  19221. if v == nil {
  19222. } else if d.h.DeleteOnNilMapValue {
  19223. delete(v, mk)
  19224. } else {
  19225. v[mk] = 0
  19226. }
  19227. continue
  19228. }
  19229. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  19230. if v != nil {
  19231. v[mk] = mv
  19232. }
  19233. }
  19234. dd.ReadMapEnd()
  19235. d.depthDecr()
  19236. return v, changed
  19237. }
  19238. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  19239. if rv.Kind() == reflect.Ptr {
  19240. vp := rv2i(rv).(*map[interface{}]uint16)
  19241. v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d)
  19242. if changed {
  19243. *vp = v
  19244. }
  19245. } else {
  19246. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  19247. }
  19248. }
  19249. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  19250. v, changed := f.DecMapIntfUint16V(*vp, true, d)
  19251. if changed {
  19252. *vp = v
  19253. }
  19254. }
  19255. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  19256. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  19257. dd, esep := d.d, d.hh.hasElemSeparators()
  19258. containerLen := dd.ReadMapStart()
  19259. if canChange && v == nil {
  19260. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19261. v = make(map[interface{}]uint16, xlen)
  19262. changed = true
  19263. }
  19264. if containerLen == 0 {
  19265. dd.ReadMapEnd()
  19266. return v, changed
  19267. }
  19268. d.depthIncr()
  19269. var mk interface{}
  19270. var mv uint16
  19271. hasLen := containerLen > 0
  19272. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19273. if esep {
  19274. dd.ReadMapElemKey()
  19275. }
  19276. mk = nil
  19277. d.decode(&mk)
  19278. if bv, bok := mk.([]byte); bok {
  19279. mk = d.string(bv)
  19280. }
  19281. if esep {
  19282. dd.ReadMapElemValue()
  19283. }
  19284. if dd.TryDecodeAsNil() {
  19285. if v == nil {
  19286. } else if d.h.DeleteOnNilMapValue {
  19287. delete(v, mk)
  19288. } else {
  19289. v[mk] = 0
  19290. }
  19291. continue
  19292. }
  19293. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  19294. if v != nil {
  19295. v[mk] = mv
  19296. }
  19297. }
  19298. dd.ReadMapEnd()
  19299. d.depthDecr()
  19300. return v, changed
  19301. }
  19302. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  19303. if rv.Kind() == reflect.Ptr {
  19304. vp := rv2i(rv).(*map[interface{}]uint32)
  19305. v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d)
  19306. if changed {
  19307. *vp = v
  19308. }
  19309. } else {
  19310. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  19311. }
  19312. }
  19313. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  19314. v, changed := f.DecMapIntfUint32V(*vp, true, d)
  19315. if changed {
  19316. *vp = v
  19317. }
  19318. }
  19319. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  19320. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  19321. dd, esep := d.d, d.hh.hasElemSeparators()
  19322. containerLen := dd.ReadMapStart()
  19323. if canChange && v == nil {
  19324. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19325. v = make(map[interface{}]uint32, xlen)
  19326. changed = true
  19327. }
  19328. if containerLen == 0 {
  19329. dd.ReadMapEnd()
  19330. return v, changed
  19331. }
  19332. d.depthIncr()
  19333. var mk interface{}
  19334. var mv uint32
  19335. hasLen := containerLen > 0
  19336. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19337. if esep {
  19338. dd.ReadMapElemKey()
  19339. }
  19340. mk = nil
  19341. d.decode(&mk)
  19342. if bv, bok := mk.([]byte); bok {
  19343. mk = d.string(bv)
  19344. }
  19345. if esep {
  19346. dd.ReadMapElemValue()
  19347. }
  19348. if dd.TryDecodeAsNil() {
  19349. if v == nil {
  19350. } else if d.h.DeleteOnNilMapValue {
  19351. delete(v, mk)
  19352. } else {
  19353. v[mk] = 0
  19354. }
  19355. continue
  19356. }
  19357. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  19358. if v != nil {
  19359. v[mk] = mv
  19360. }
  19361. }
  19362. dd.ReadMapEnd()
  19363. d.depthDecr()
  19364. return v, changed
  19365. }
  19366. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  19367. if rv.Kind() == reflect.Ptr {
  19368. vp := rv2i(rv).(*map[interface{}]uint64)
  19369. v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d)
  19370. if changed {
  19371. *vp = v
  19372. }
  19373. } else {
  19374. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  19375. }
  19376. }
  19377. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  19378. v, changed := f.DecMapIntfUint64V(*vp, true, d)
  19379. if changed {
  19380. *vp = v
  19381. }
  19382. }
  19383. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  19384. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  19385. dd, esep := d.d, d.hh.hasElemSeparators()
  19386. containerLen := dd.ReadMapStart()
  19387. if canChange && v == nil {
  19388. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19389. v = make(map[interface{}]uint64, xlen)
  19390. changed = true
  19391. }
  19392. if containerLen == 0 {
  19393. dd.ReadMapEnd()
  19394. return v, changed
  19395. }
  19396. d.depthIncr()
  19397. var mk interface{}
  19398. var mv uint64
  19399. hasLen := containerLen > 0
  19400. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19401. if esep {
  19402. dd.ReadMapElemKey()
  19403. }
  19404. mk = nil
  19405. d.decode(&mk)
  19406. if bv, bok := mk.([]byte); bok {
  19407. mk = d.string(bv)
  19408. }
  19409. if esep {
  19410. dd.ReadMapElemValue()
  19411. }
  19412. if dd.TryDecodeAsNil() {
  19413. if v == nil {
  19414. } else if d.h.DeleteOnNilMapValue {
  19415. delete(v, mk)
  19416. } else {
  19417. v[mk] = 0
  19418. }
  19419. continue
  19420. }
  19421. mv = dd.DecodeUint64()
  19422. if v != nil {
  19423. v[mk] = mv
  19424. }
  19425. }
  19426. dd.ReadMapEnd()
  19427. d.depthDecr()
  19428. return v, changed
  19429. }
  19430. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  19431. if rv.Kind() == reflect.Ptr {
  19432. vp := rv2i(rv).(*map[interface{}]uintptr)
  19433. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d)
  19434. if changed {
  19435. *vp = v
  19436. }
  19437. } else {
  19438. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  19439. }
  19440. }
  19441. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  19442. v, changed := f.DecMapIntfUintptrV(*vp, true, d)
  19443. if changed {
  19444. *vp = v
  19445. }
  19446. }
  19447. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  19448. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  19449. dd, esep := d.d, d.hh.hasElemSeparators()
  19450. containerLen := dd.ReadMapStart()
  19451. if canChange && v == nil {
  19452. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19453. v = make(map[interface{}]uintptr, xlen)
  19454. changed = true
  19455. }
  19456. if containerLen == 0 {
  19457. dd.ReadMapEnd()
  19458. return v, changed
  19459. }
  19460. d.depthIncr()
  19461. var mk interface{}
  19462. var mv uintptr
  19463. hasLen := containerLen > 0
  19464. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19465. if esep {
  19466. dd.ReadMapElemKey()
  19467. }
  19468. mk = nil
  19469. d.decode(&mk)
  19470. if bv, bok := mk.([]byte); bok {
  19471. mk = d.string(bv)
  19472. }
  19473. if esep {
  19474. dd.ReadMapElemValue()
  19475. }
  19476. if dd.TryDecodeAsNil() {
  19477. if v == nil {
  19478. } else if d.h.DeleteOnNilMapValue {
  19479. delete(v, mk)
  19480. } else {
  19481. v[mk] = 0
  19482. }
  19483. continue
  19484. }
  19485. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19486. if v != nil {
  19487. v[mk] = mv
  19488. }
  19489. }
  19490. dd.ReadMapEnd()
  19491. d.depthDecr()
  19492. return v, changed
  19493. }
  19494. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  19495. if rv.Kind() == reflect.Ptr {
  19496. vp := rv2i(rv).(*map[interface{}]int)
  19497. v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d)
  19498. if changed {
  19499. *vp = v
  19500. }
  19501. } else {
  19502. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  19503. }
  19504. }
  19505. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  19506. v, changed := f.DecMapIntfIntV(*vp, true, d)
  19507. if changed {
  19508. *vp = v
  19509. }
  19510. }
  19511. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  19512. d *Decoder) (_ map[interface{}]int, changed bool) {
  19513. dd, esep := d.d, d.hh.hasElemSeparators()
  19514. containerLen := dd.ReadMapStart()
  19515. if canChange && v == nil {
  19516. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19517. v = make(map[interface{}]int, xlen)
  19518. changed = true
  19519. }
  19520. if containerLen == 0 {
  19521. dd.ReadMapEnd()
  19522. return v, changed
  19523. }
  19524. d.depthIncr()
  19525. var mk interface{}
  19526. var mv int
  19527. hasLen := containerLen > 0
  19528. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19529. if esep {
  19530. dd.ReadMapElemKey()
  19531. }
  19532. mk = nil
  19533. d.decode(&mk)
  19534. if bv, bok := mk.([]byte); bok {
  19535. mk = d.string(bv)
  19536. }
  19537. if esep {
  19538. dd.ReadMapElemValue()
  19539. }
  19540. if dd.TryDecodeAsNil() {
  19541. if v == nil {
  19542. } else if d.h.DeleteOnNilMapValue {
  19543. delete(v, mk)
  19544. } else {
  19545. v[mk] = 0
  19546. }
  19547. continue
  19548. }
  19549. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  19550. if v != nil {
  19551. v[mk] = mv
  19552. }
  19553. }
  19554. dd.ReadMapEnd()
  19555. d.depthDecr()
  19556. return v, changed
  19557. }
  19558. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  19559. if rv.Kind() == reflect.Ptr {
  19560. vp := rv2i(rv).(*map[interface{}]int8)
  19561. v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d)
  19562. if changed {
  19563. *vp = v
  19564. }
  19565. } else {
  19566. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  19567. }
  19568. }
  19569. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  19570. v, changed := f.DecMapIntfInt8V(*vp, true, d)
  19571. if changed {
  19572. *vp = v
  19573. }
  19574. }
  19575. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  19576. d *Decoder) (_ map[interface{}]int8, changed bool) {
  19577. dd, esep := d.d, d.hh.hasElemSeparators()
  19578. containerLen := dd.ReadMapStart()
  19579. if canChange && v == nil {
  19580. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19581. v = make(map[interface{}]int8, xlen)
  19582. changed = true
  19583. }
  19584. if containerLen == 0 {
  19585. dd.ReadMapEnd()
  19586. return v, changed
  19587. }
  19588. d.depthIncr()
  19589. var mk interface{}
  19590. var mv int8
  19591. hasLen := containerLen > 0
  19592. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19593. if esep {
  19594. dd.ReadMapElemKey()
  19595. }
  19596. mk = nil
  19597. d.decode(&mk)
  19598. if bv, bok := mk.([]byte); bok {
  19599. mk = d.string(bv)
  19600. }
  19601. if esep {
  19602. dd.ReadMapElemValue()
  19603. }
  19604. if dd.TryDecodeAsNil() {
  19605. if v == nil {
  19606. } else if d.h.DeleteOnNilMapValue {
  19607. delete(v, mk)
  19608. } else {
  19609. v[mk] = 0
  19610. }
  19611. continue
  19612. }
  19613. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  19614. if v != nil {
  19615. v[mk] = mv
  19616. }
  19617. }
  19618. dd.ReadMapEnd()
  19619. d.depthDecr()
  19620. return v, changed
  19621. }
  19622. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  19623. if rv.Kind() == reflect.Ptr {
  19624. vp := rv2i(rv).(*map[interface{}]int16)
  19625. v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d)
  19626. if changed {
  19627. *vp = v
  19628. }
  19629. } else {
  19630. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  19631. }
  19632. }
  19633. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  19634. v, changed := f.DecMapIntfInt16V(*vp, true, d)
  19635. if changed {
  19636. *vp = v
  19637. }
  19638. }
  19639. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  19640. d *Decoder) (_ map[interface{}]int16, changed bool) {
  19641. dd, esep := d.d, d.hh.hasElemSeparators()
  19642. containerLen := dd.ReadMapStart()
  19643. if canChange && v == nil {
  19644. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19645. v = make(map[interface{}]int16, xlen)
  19646. changed = true
  19647. }
  19648. if containerLen == 0 {
  19649. dd.ReadMapEnd()
  19650. return v, changed
  19651. }
  19652. d.depthIncr()
  19653. var mk interface{}
  19654. var mv int16
  19655. hasLen := containerLen > 0
  19656. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19657. if esep {
  19658. dd.ReadMapElemKey()
  19659. }
  19660. mk = nil
  19661. d.decode(&mk)
  19662. if bv, bok := mk.([]byte); bok {
  19663. mk = d.string(bv)
  19664. }
  19665. if esep {
  19666. dd.ReadMapElemValue()
  19667. }
  19668. if dd.TryDecodeAsNil() {
  19669. if v == nil {
  19670. } else if d.h.DeleteOnNilMapValue {
  19671. delete(v, mk)
  19672. } else {
  19673. v[mk] = 0
  19674. }
  19675. continue
  19676. }
  19677. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  19678. if v != nil {
  19679. v[mk] = mv
  19680. }
  19681. }
  19682. dd.ReadMapEnd()
  19683. d.depthDecr()
  19684. return v, changed
  19685. }
  19686. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  19687. if rv.Kind() == reflect.Ptr {
  19688. vp := rv2i(rv).(*map[interface{}]int32)
  19689. v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d)
  19690. if changed {
  19691. *vp = v
  19692. }
  19693. } else {
  19694. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  19695. }
  19696. }
  19697. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  19698. v, changed := f.DecMapIntfInt32V(*vp, true, d)
  19699. if changed {
  19700. *vp = v
  19701. }
  19702. }
  19703. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  19704. d *Decoder) (_ map[interface{}]int32, changed bool) {
  19705. dd, esep := d.d, d.hh.hasElemSeparators()
  19706. containerLen := dd.ReadMapStart()
  19707. if canChange && v == nil {
  19708. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19709. v = make(map[interface{}]int32, xlen)
  19710. changed = true
  19711. }
  19712. if containerLen == 0 {
  19713. dd.ReadMapEnd()
  19714. return v, changed
  19715. }
  19716. d.depthIncr()
  19717. var mk interface{}
  19718. var mv int32
  19719. hasLen := containerLen > 0
  19720. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19721. if esep {
  19722. dd.ReadMapElemKey()
  19723. }
  19724. mk = nil
  19725. d.decode(&mk)
  19726. if bv, bok := mk.([]byte); bok {
  19727. mk = d.string(bv)
  19728. }
  19729. if esep {
  19730. dd.ReadMapElemValue()
  19731. }
  19732. if dd.TryDecodeAsNil() {
  19733. if v == nil {
  19734. } else if d.h.DeleteOnNilMapValue {
  19735. delete(v, mk)
  19736. } else {
  19737. v[mk] = 0
  19738. }
  19739. continue
  19740. }
  19741. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  19742. if v != nil {
  19743. v[mk] = mv
  19744. }
  19745. }
  19746. dd.ReadMapEnd()
  19747. d.depthDecr()
  19748. return v, changed
  19749. }
  19750. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  19751. if rv.Kind() == reflect.Ptr {
  19752. vp := rv2i(rv).(*map[interface{}]int64)
  19753. v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d)
  19754. if changed {
  19755. *vp = v
  19756. }
  19757. } else {
  19758. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  19759. }
  19760. }
  19761. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  19762. v, changed := f.DecMapIntfInt64V(*vp, true, d)
  19763. if changed {
  19764. *vp = v
  19765. }
  19766. }
  19767. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  19768. d *Decoder) (_ map[interface{}]int64, changed bool) {
  19769. dd, esep := d.d, d.hh.hasElemSeparators()
  19770. containerLen := dd.ReadMapStart()
  19771. if canChange && v == nil {
  19772. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19773. v = make(map[interface{}]int64, xlen)
  19774. changed = true
  19775. }
  19776. if containerLen == 0 {
  19777. dd.ReadMapEnd()
  19778. return v, changed
  19779. }
  19780. d.depthIncr()
  19781. var mk interface{}
  19782. var mv int64
  19783. hasLen := containerLen > 0
  19784. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19785. if esep {
  19786. dd.ReadMapElemKey()
  19787. }
  19788. mk = nil
  19789. d.decode(&mk)
  19790. if bv, bok := mk.([]byte); bok {
  19791. mk = d.string(bv)
  19792. }
  19793. if esep {
  19794. dd.ReadMapElemValue()
  19795. }
  19796. if dd.TryDecodeAsNil() {
  19797. if v == nil {
  19798. } else if d.h.DeleteOnNilMapValue {
  19799. delete(v, mk)
  19800. } else {
  19801. v[mk] = 0
  19802. }
  19803. continue
  19804. }
  19805. mv = dd.DecodeInt64()
  19806. if v != nil {
  19807. v[mk] = mv
  19808. }
  19809. }
  19810. dd.ReadMapEnd()
  19811. d.depthDecr()
  19812. return v, changed
  19813. }
  19814. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  19815. if rv.Kind() == reflect.Ptr {
  19816. vp := rv2i(rv).(*map[interface{}]float32)
  19817. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d)
  19818. if changed {
  19819. *vp = v
  19820. }
  19821. } else {
  19822. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  19823. }
  19824. }
  19825. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  19826. v, changed := f.DecMapIntfFloat32V(*vp, true, d)
  19827. if changed {
  19828. *vp = v
  19829. }
  19830. }
  19831. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  19832. d *Decoder) (_ map[interface{}]float32, changed bool) {
  19833. dd, esep := d.d, d.hh.hasElemSeparators()
  19834. containerLen := dd.ReadMapStart()
  19835. if canChange && v == nil {
  19836. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19837. v = make(map[interface{}]float32, xlen)
  19838. changed = true
  19839. }
  19840. if containerLen == 0 {
  19841. dd.ReadMapEnd()
  19842. return v, changed
  19843. }
  19844. d.depthIncr()
  19845. var mk interface{}
  19846. var mv float32
  19847. hasLen := containerLen > 0
  19848. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19849. if esep {
  19850. dd.ReadMapElemKey()
  19851. }
  19852. mk = nil
  19853. d.decode(&mk)
  19854. if bv, bok := mk.([]byte); bok {
  19855. mk = d.string(bv)
  19856. }
  19857. if esep {
  19858. dd.ReadMapElemValue()
  19859. }
  19860. if dd.TryDecodeAsNil() {
  19861. if v == nil {
  19862. } else if d.h.DeleteOnNilMapValue {
  19863. delete(v, mk)
  19864. } else {
  19865. v[mk] = 0
  19866. }
  19867. continue
  19868. }
  19869. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19870. if v != nil {
  19871. v[mk] = mv
  19872. }
  19873. }
  19874. dd.ReadMapEnd()
  19875. d.depthDecr()
  19876. return v, changed
  19877. }
  19878. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  19879. if rv.Kind() == reflect.Ptr {
  19880. vp := rv2i(rv).(*map[interface{}]float64)
  19881. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d)
  19882. if changed {
  19883. *vp = v
  19884. }
  19885. } else {
  19886. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  19887. }
  19888. }
  19889. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  19890. v, changed := f.DecMapIntfFloat64V(*vp, true, d)
  19891. if changed {
  19892. *vp = v
  19893. }
  19894. }
  19895. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  19896. d *Decoder) (_ map[interface{}]float64, changed bool) {
  19897. dd, esep := d.d, d.hh.hasElemSeparators()
  19898. containerLen := dd.ReadMapStart()
  19899. if canChange && v == nil {
  19900. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19901. v = make(map[interface{}]float64, xlen)
  19902. changed = true
  19903. }
  19904. if containerLen == 0 {
  19905. dd.ReadMapEnd()
  19906. return v, changed
  19907. }
  19908. d.depthIncr()
  19909. var mk interface{}
  19910. var mv float64
  19911. hasLen := containerLen > 0
  19912. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19913. if esep {
  19914. dd.ReadMapElemKey()
  19915. }
  19916. mk = nil
  19917. d.decode(&mk)
  19918. if bv, bok := mk.([]byte); bok {
  19919. mk = d.string(bv)
  19920. }
  19921. if esep {
  19922. dd.ReadMapElemValue()
  19923. }
  19924. if dd.TryDecodeAsNil() {
  19925. if v == nil {
  19926. } else if d.h.DeleteOnNilMapValue {
  19927. delete(v, mk)
  19928. } else {
  19929. v[mk] = 0
  19930. }
  19931. continue
  19932. }
  19933. mv = dd.DecodeFloat64()
  19934. if v != nil {
  19935. v[mk] = mv
  19936. }
  19937. }
  19938. dd.ReadMapEnd()
  19939. d.depthDecr()
  19940. return v, changed
  19941. }
  19942. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  19943. if rv.Kind() == reflect.Ptr {
  19944. vp := rv2i(rv).(*map[interface{}]bool)
  19945. v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d)
  19946. if changed {
  19947. *vp = v
  19948. }
  19949. } else {
  19950. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  19951. }
  19952. }
  19953. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  19954. v, changed := f.DecMapIntfBoolV(*vp, true, d)
  19955. if changed {
  19956. *vp = v
  19957. }
  19958. }
  19959. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  19960. d *Decoder) (_ map[interface{}]bool, changed bool) {
  19961. dd, esep := d.d, d.hh.hasElemSeparators()
  19962. containerLen := dd.ReadMapStart()
  19963. if canChange && v == nil {
  19964. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19965. v = make(map[interface{}]bool, xlen)
  19966. changed = true
  19967. }
  19968. if containerLen == 0 {
  19969. dd.ReadMapEnd()
  19970. return v, changed
  19971. }
  19972. d.depthIncr()
  19973. var mk interface{}
  19974. var mv bool
  19975. hasLen := containerLen > 0
  19976. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19977. if esep {
  19978. dd.ReadMapElemKey()
  19979. }
  19980. mk = nil
  19981. d.decode(&mk)
  19982. if bv, bok := mk.([]byte); bok {
  19983. mk = d.string(bv)
  19984. }
  19985. if esep {
  19986. dd.ReadMapElemValue()
  19987. }
  19988. if dd.TryDecodeAsNil() {
  19989. if v == nil {
  19990. } else if d.h.DeleteOnNilMapValue {
  19991. delete(v, mk)
  19992. } else {
  19993. v[mk] = false
  19994. }
  19995. continue
  19996. }
  19997. mv = dd.DecodeBool()
  19998. if v != nil {
  19999. v[mk] = mv
  20000. }
  20001. }
  20002. dd.ReadMapEnd()
  20003. d.depthDecr()
  20004. return v, changed
  20005. }
  20006. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  20007. if rv.Kind() == reflect.Ptr {
  20008. vp := rv2i(rv).(*map[string]interface{})
  20009. v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d)
  20010. if changed {
  20011. *vp = v
  20012. }
  20013. } else {
  20014. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  20015. }
  20016. }
  20017. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  20018. v, changed := f.DecMapStringIntfV(*vp, true, d)
  20019. if changed {
  20020. *vp = v
  20021. }
  20022. }
  20023. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  20024. d *Decoder) (_ map[string]interface{}, changed bool) {
  20025. dd, esep := d.d, d.hh.hasElemSeparators()
  20026. containerLen := dd.ReadMapStart()
  20027. if canChange && v == nil {
  20028. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20029. v = make(map[string]interface{}, xlen)
  20030. changed = true
  20031. }
  20032. if containerLen == 0 {
  20033. dd.ReadMapEnd()
  20034. return v, changed
  20035. }
  20036. d.depthIncr()
  20037. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  20038. var mk string
  20039. var mv interface{}
  20040. hasLen := containerLen > 0
  20041. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20042. if esep {
  20043. dd.ReadMapElemKey()
  20044. }
  20045. mk = dd.DecodeString()
  20046. if esep {
  20047. dd.ReadMapElemValue()
  20048. }
  20049. if dd.TryDecodeAsNil() {
  20050. if v == nil {
  20051. } else if d.h.DeleteOnNilMapValue {
  20052. delete(v, mk)
  20053. } else {
  20054. v[mk] = nil
  20055. }
  20056. continue
  20057. }
  20058. if mapGet {
  20059. mv = v[mk]
  20060. } else {
  20061. mv = nil
  20062. }
  20063. d.decode(&mv)
  20064. if v != nil {
  20065. v[mk] = mv
  20066. }
  20067. }
  20068. dd.ReadMapEnd()
  20069. d.depthDecr()
  20070. return v, changed
  20071. }
  20072. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  20073. if rv.Kind() == reflect.Ptr {
  20074. vp := rv2i(rv).(*map[string]string)
  20075. v, changed := fastpathTV.DecMapStringStringV(*vp, true, d)
  20076. if changed {
  20077. *vp = v
  20078. }
  20079. } else {
  20080. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  20081. }
  20082. }
  20083. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  20084. v, changed := f.DecMapStringStringV(*vp, true, d)
  20085. if changed {
  20086. *vp = v
  20087. }
  20088. }
  20089. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  20090. d *Decoder) (_ map[string]string, changed bool) {
  20091. dd, esep := d.d, d.hh.hasElemSeparators()
  20092. containerLen := dd.ReadMapStart()
  20093. if canChange && v == nil {
  20094. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20095. v = make(map[string]string, xlen)
  20096. changed = true
  20097. }
  20098. if containerLen == 0 {
  20099. dd.ReadMapEnd()
  20100. return v, changed
  20101. }
  20102. d.depthIncr()
  20103. var mk string
  20104. var mv string
  20105. hasLen := containerLen > 0
  20106. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20107. if esep {
  20108. dd.ReadMapElemKey()
  20109. }
  20110. mk = dd.DecodeString()
  20111. if esep {
  20112. dd.ReadMapElemValue()
  20113. }
  20114. if dd.TryDecodeAsNil() {
  20115. if v == nil {
  20116. } else if d.h.DeleteOnNilMapValue {
  20117. delete(v, mk)
  20118. } else {
  20119. v[mk] = ""
  20120. }
  20121. continue
  20122. }
  20123. mv = dd.DecodeString()
  20124. if v != nil {
  20125. v[mk] = mv
  20126. }
  20127. }
  20128. dd.ReadMapEnd()
  20129. d.depthDecr()
  20130. return v, changed
  20131. }
  20132. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  20133. if rv.Kind() == reflect.Ptr {
  20134. vp := rv2i(rv).(*map[string]uint)
  20135. v, changed := fastpathTV.DecMapStringUintV(*vp, true, d)
  20136. if changed {
  20137. *vp = v
  20138. }
  20139. } else {
  20140. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  20141. }
  20142. }
  20143. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  20144. v, changed := f.DecMapStringUintV(*vp, true, d)
  20145. if changed {
  20146. *vp = v
  20147. }
  20148. }
  20149. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  20150. d *Decoder) (_ map[string]uint, changed bool) {
  20151. dd, esep := d.d, d.hh.hasElemSeparators()
  20152. containerLen := dd.ReadMapStart()
  20153. if canChange && v == nil {
  20154. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20155. v = make(map[string]uint, xlen)
  20156. changed = true
  20157. }
  20158. if containerLen == 0 {
  20159. dd.ReadMapEnd()
  20160. return v, changed
  20161. }
  20162. d.depthIncr()
  20163. var mk string
  20164. var mv uint
  20165. hasLen := containerLen > 0
  20166. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20167. if esep {
  20168. dd.ReadMapElemKey()
  20169. }
  20170. mk = dd.DecodeString()
  20171. if esep {
  20172. dd.ReadMapElemValue()
  20173. }
  20174. if dd.TryDecodeAsNil() {
  20175. if v == nil {
  20176. } else if d.h.DeleteOnNilMapValue {
  20177. delete(v, mk)
  20178. } else {
  20179. v[mk] = 0
  20180. }
  20181. continue
  20182. }
  20183. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20184. if v != nil {
  20185. v[mk] = mv
  20186. }
  20187. }
  20188. dd.ReadMapEnd()
  20189. d.depthDecr()
  20190. return v, changed
  20191. }
  20192. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  20193. if rv.Kind() == reflect.Ptr {
  20194. vp := rv2i(rv).(*map[string]uint8)
  20195. v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d)
  20196. if changed {
  20197. *vp = v
  20198. }
  20199. } else {
  20200. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  20201. }
  20202. }
  20203. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  20204. v, changed := f.DecMapStringUint8V(*vp, true, d)
  20205. if changed {
  20206. *vp = v
  20207. }
  20208. }
  20209. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  20210. d *Decoder) (_ map[string]uint8, changed bool) {
  20211. dd, esep := d.d, d.hh.hasElemSeparators()
  20212. containerLen := dd.ReadMapStart()
  20213. if canChange && v == nil {
  20214. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20215. v = make(map[string]uint8, xlen)
  20216. changed = true
  20217. }
  20218. if containerLen == 0 {
  20219. dd.ReadMapEnd()
  20220. return v, changed
  20221. }
  20222. d.depthIncr()
  20223. var mk string
  20224. var mv uint8
  20225. hasLen := containerLen > 0
  20226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20227. if esep {
  20228. dd.ReadMapElemKey()
  20229. }
  20230. mk = dd.DecodeString()
  20231. if esep {
  20232. dd.ReadMapElemValue()
  20233. }
  20234. if dd.TryDecodeAsNil() {
  20235. if v == nil {
  20236. } else if d.h.DeleteOnNilMapValue {
  20237. delete(v, mk)
  20238. } else {
  20239. v[mk] = 0
  20240. }
  20241. continue
  20242. }
  20243. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  20244. if v != nil {
  20245. v[mk] = mv
  20246. }
  20247. }
  20248. dd.ReadMapEnd()
  20249. d.depthDecr()
  20250. return v, changed
  20251. }
  20252. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  20253. if rv.Kind() == reflect.Ptr {
  20254. vp := rv2i(rv).(*map[string]uint16)
  20255. v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d)
  20256. if changed {
  20257. *vp = v
  20258. }
  20259. } else {
  20260. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  20261. }
  20262. }
  20263. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  20264. v, changed := f.DecMapStringUint16V(*vp, true, d)
  20265. if changed {
  20266. *vp = v
  20267. }
  20268. }
  20269. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  20270. d *Decoder) (_ map[string]uint16, changed bool) {
  20271. dd, esep := d.d, d.hh.hasElemSeparators()
  20272. containerLen := dd.ReadMapStart()
  20273. if canChange && v == nil {
  20274. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20275. v = make(map[string]uint16, xlen)
  20276. changed = true
  20277. }
  20278. if containerLen == 0 {
  20279. dd.ReadMapEnd()
  20280. return v, changed
  20281. }
  20282. d.depthIncr()
  20283. var mk string
  20284. var mv uint16
  20285. hasLen := containerLen > 0
  20286. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20287. if esep {
  20288. dd.ReadMapElemKey()
  20289. }
  20290. mk = dd.DecodeString()
  20291. if esep {
  20292. dd.ReadMapElemValue()
  20293. }
  20294. if dd.TryDecodeAsNil() {
  20295. if v == nil {
  20296. } else if d.h.DeleteOnNilMapValue {
  20297. delete(v, mk)
  20298. } else {
  20299. v[mk] = 0
  20300. }
  20301. continue
  20302. }
  20303. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  20304. if v != nil {
  20305. v[mk] = mv
  20306. }
  20307. }
  20308. dd.ReadMapEnd()
  20309. d.depthDecr()
  20310. return v, changed
  20311. }
  20312. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  20313. if rv.Kind() == reflect.Ptr {
  20314. vp := rv2i(rv).(*map[string]uint32)
  20315. v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d)
  20316. if changed {
  20317. *vp = v
  20318. }
  20319. } else {
  20320. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  20321. }
  20322. }
  20323. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  20324. v, changed := f.DecMapStringUint32V(*vp, true, d)
  20325. if changed {
  20326. *vp = v
  20327. }
  20328. }
  20329. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  20330. d *Decoder) (_ map[string]uint32, changed bool) {
  20331. dd, esep := d.d, d.hh.hasElemSeparators()
  20332. containerLen := dd.ReadMapStart()
  20333. if canChange && v == nil {
  20334. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20335. v = make(map[string]uint32, xlen)
  20336. changed = true
  20337. }
  20338. if containerLen == 0 {
  20339. dd.ReadMapEnd()
  20340. return v, changed
  20341. }
  20342. d.depthIncr()
  20343. var mk string
  20344. var mv uint32
  20345. hasLen := containerLen > 0
  20346. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20347. if esep {
  20348. dd.ReadMapElemKey()
  20349. }
  20350. mk = dd.DecodeString()
  20351. if esep {
  20352. dd.ReadMapElemValue()
  20353. }
  20354. if dd.TryDecodeAsNil() {
  20355. if v == nil {
  20356. } else if d.h.DeleteOnNilMapValue {
  20357. delete(v, mk)
  20358. } else {
  20359. v[mk] = 0
  20360. }
  20361. continue
  20362. }
  20363. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  20364. if v != nil {
  20365. v[mk] = mv
  20366. }
  20367. }
  20368. dd.ReadMapEnd()
  20369. d.depthDecr()
  20370. return v, changed
  20371. }
  20372. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  20373. if rv.Kind() == reflect.Ptr {
  20374. vp := rv2i(rv).(*map[string]uint64)
  20375. v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d)
  20376. if changed {
  20377. *vp = v
  20378. }
  20379. } else {
  20380. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  20381. }
  20382. }
  20383. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  20384. v, changed := f.DecMapStringUint64V(*vp, true, d)
  20385. if changed {
  20386. *vp = v
  20387. }
  20388. }
  20389. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  20390. d *Decoder) (_ map[string]uint64, changed bool) {
  20391. dd, esep := d.d, d.hh.hasElemSeparators()
  20392. containerLen := dd.ReadMapStart()
  20393. if canChange && v == nil {
  20394. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20395. v = make(map[string]uint64, xlen)
  20396. changed = true
  20397. }
  20398. if containerLen == 0 {
  20399. dd.ReadMapEnd()
  20400. return v, changed
  20401. }
  20402. d.depthIncr()
  20403. var mk string
  20404. var mv uint64
  20405. hasLen := containerLen > 0
  20406. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20407. if esep {
  20408. dd.ReadMapElemKey()
  20409. }
  20410. mk = dd.DecodeString()
  20411. if esep {
  20412. dd.ReadMapElemValue()
  20413. }
  20414. if dd.TryDecodeAsNil() {
  20415. if v == nil {
  20416. } else if d.h.DeleteOnNilMapValue {
  20417. delete(v, mk)
  20418. } else {
  20419. v[mk] = 0
  20420. }
  20421. continue
  20422. }
  20423. mv = dd.DecodeUint64()
  20424. if v != nil {
  20425. v[mk] = mv
  20426. }
  20427. }
  20428. dd.ReadMapEnd()
  20429. d.depthDecr()
  20430. return v, changed
  20431. }
  20432. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  20433. if rv.Kind() == reflect.Ptr {
  20434. vp := rv2i(rv).(*map[string]uintptr)
  20435. v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d)
  20436. if changed {
  20437. *vp = v
  20438. }
  20439. } else {
  20440. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  20441. }
  20442. }
  20443. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  20444. v, changed := f.DecMapStringUintptrV(*vp, true, d)
  20445. if changed {
  20446. *vp = v
  20447. }
  20448. }
  20449. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  20450. d *Decoder) (_ map[string]uintptr, changed bool) {
  20451. dd, esep := d.d, d.hh.hasElemSeparators()
  20452. containerLen := dd.ReadMapStart()
  20453. if canChange && v == nil {
  20454. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20455. v = make(map[string]uintptr, xlen)
  20456. changed = true
  20457. }
  20458. if containerLen == 0 {
  20459. dd.ReadMapEnd()
  20460. return v, changed
  20461. }
  20462. d.depthIncr()
  20463. var mk string
  20464. var mv uintptr
  20465. hasLen := containerLen > 0
  20466. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20467. if esep {
  20468. dd.ReadMapElemKey()
  20469. }
  20470. mk = dd.DecodeString()
  20471. if esep {
  20472. dd.ReadMapElemValue()
  20473. }
  20474. if dd.TryDecodeAsNil() {
  20475. if v == nil {
  20476. } else if d.h.DeleteOnNilMapValue {
  20477. delete(v, mk)
  20478. } else {
  20479. v[mk] = 0
  20480. }
  20481. continue
  20482. }
  20483. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20484. if v != nil {
  20485. v[mk] = mv
  20486. }
  20487. }
  20488. dd.ReadMapEnd()
  20489. d.depthDecr()
  20490. return v, changed
  20491. }
  20492. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  20493. if rv.Kind() == reflect.Ptr {
  20494. vp := rv2i(rv).(*map[string]int)
  20495. v, changed := fastpathTV.DecMapStringIntV(*vp, true, d)
  20496. if changed {
  20497. *vp = v
  20498. }
  20499. } else {
  20500. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  20501. }
  20502. }
  20503. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  20504. v, changed := f.DecMapStringIntV(*vp, true, d)
  20505. if changed {
  20506. *vp = v
  20507. }
  20508. }
  20509. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  20510. d *Decoder) (_ map[string]int, changed bool) {
  20511. dd, esep := d.d, d.hh.hasElemSeparators()
  20512. containerLen := dd.ReadMapStart()
  20513. if canChange && v == nil {
  20514. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20515. v = make(map[string]int, xlen)
  20516. changed = true
  20517. }
  20518. if containerLen == 0 {
  20519. dd.ReadMapEnd()
  20520. return v, changed
  20521. }
  20522. d.depthIncr()
  20523. var mk string
  20524. var mv int
  20525. hasLen := containerLen > 0
  20526. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20527. if esep {
  20528. dd.ReadMapElemKey()
  20529. }
  20530. mk = dd.DecodeString()
  20531. if esep {
  20532. dd.ReadMapElemValue()
  20533. }
  20534. if dd.TryDecodeAsNil() {
  20535. if v == nil {
  20536. } else if d.h.DeleteOnNilMapValue {
  20537. delete(v, mk)
  20538. } else {
  20539. v[mk] = 0
  20540. }
  20541. continue
  20542. }
  20543. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  20544. if v != nil {
  20545. v[mk] = mv
  20546. }
  20547. }
  20548. dd.ReadMapEnd()
  20549. d.depthDecr()
  20550. return v, changed
  20551. }
  20552. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  20553. if rv.Kind() == reflect.Ptr {
  20554. vp := rv2i(rv).(*map[string]int8)
  20555. v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d)
  20556. if changed {
  20557. *vp = v
  20558. }
  20559. } else {
  20560. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  20561. }
  20562. }
  20563. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  20564. v, changed := f.DecMapStringInt8V(*vp, true, d)
  20565. if changed {
  20566. *vp = v
  20567. }
  20568. }
  20569. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  20570. d *Decoder) (_ map[string]int8, changed bool) {
  20571. dd, esep := d.d, d.hh.hasElemSeparators()
  20572. containerLen := dd.ReadMapStart()
  20573. if canChange && v == nil {
  20574. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20575. v = make(map[string]int8, xlen)
  20576. changed = true
  20577. }
  20578. if containerLen == 0 {
  20579. dd.ReadMapEnd()
  20580. return v, changed
  20581. }
  20582. d.depthIncr()
  20583. var mk string
  20584. var mv int8
  20585. hasLen := containerLen > 0
  20586. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20587. if esep {
  20588. dd.ReadMapElemKey()
  20589. }
  20590. mk = dd.DecodeString()
  20591. if esep {
  20592. dd.ReadMapElemValue()
  20593. }
  20594. if dd.TryDecodeAsNil() {
  20595. if v == nil {
  20596. } else if d.h.DeleteOnNilMapValue {
  20597. delete(v, mk)
  20598. } else {
  20599. v[mk] = 0
  20600. }
  20601. continue
  20602. }
  20603. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  20604. if v != nil {
  20605. v[mk] = mv
  20606. }
  20607. }
  20608. dd.ReadMapEnd()
  20609. d.depthDecr()
  20610. return v, changed
  20611. }
  20612. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  20613. if rv.Kind() == reflect.Ptr {
  20614. vp := rv2i(rv).(*map[string]int16)
  20615. v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d)
  20616. if changed {
  20617. *vp = v
  20618. }
  20619. } else {
  20620. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  20621. }
  20622. }
  20623. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  20624. v, changed := f.DecMapStringInt16V(*vp, true, d)
  20625. if changed {
  20626. *vp = v
  20627. }
  20628. }
  20629. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  20630. d *Decoder) (_ map[string]int16, changed bool) {
  20631. dd, esep := d.d, d.hh.hasElemSeparators()
  20632. containerLen := dd.ReadMapStart()
  20633. if canChange && v == nil {
  20634. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20635. v = make(map[string]int16, xlen)
  20636. changed = true
  20637. }
  20638. if containerLen == 0 {
  20639. dd.ReadMapEnd()
  20640. return v, changed
  20641. }
  20642. d.depthIncr()
  20643. var mk string
  20644. var mv int16
  20645. hasLen := containerLen > 0
  20646. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20647. if esep {
  20648. dd.ReadMapElemKey()
  20649. }
  20650. mk = dd.DecodeString()
  20651. if esep {
  20652. dd.ReadMapElemValue()
  20653. }
  20654. if dd.TryDecodeAsNil() {
  20655. if v == nil {
  20656. } else if d.h.DeleteOnNilMapValue {
  20657. delete(v, mk)
  20658. } else {
  20659. v[mk] = 0
  20660. }
  20661. continue
  20662. }
  20663. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  20664. if v != nil {
  20665. v[mk] = mv
  20666. }
  20667. }
  20668. dd.ReadMapEnd()
  20669. d.depthDecr()
  20670. return v, changed
  20671. }
  20672. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  20673. if rv.Kind() == reflect.Ptr {
  20674. vp := rv2i(rv).(*map[string]int32)
  20675. v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d)
  20676. if changed {
  20677. *vp = v
  20678. }
  20679. } else {
  20680. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  20681. }
  20682. }
  20683. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  20684. v, changed := f.DecMapStringInt32V(*vp, true, d)
  20685. if changed {
  20686. *vp = v
  20687. }
  20688. }
  20689. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  20690. d *Decoder) (_ map[string]int32, changed bool) {
  20691. dd, esep := d.d, d.hh.hasElemSeparators()
  20692. containerLen := dd.ReadMapStart()
  20693. if canChange && v == nil {
  20694. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20695. v = make(map[string]int32, xlen)
  20696. changed = true
  20697. }
  20698. if containerLen == 0 {
  20699. dd.ReadMapEnd()
  20700. return v, changed
  20701. }
  20702. d.depthIncr()
  20703. var mk string
  20704. var mv int32
  20705. hasLen := containerLen > 0
  20706. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20707. if esep {
  20708. dd.ReadMapElemKey()
  20709. }
  20710. mk = dd.DecodeString()
  20711. if esep {
  20712. dd.ReadMapElemValue()
  20713. }
  20714. if dd.TryDecodeAsNil() {
  20715. if v == nil {
  20716. } else if d.h.DeleteOnNilMapValue {
  20717. delete(v, mk)
  20718. } else {
  20719. v[mk] = 0
  20720. }
  20721. continue
  20722. }
  20723. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  20724. if v != nil {
  20725. v[mk] = mv
  20726. }
  20727. }
  20728. dd.ReadMapEnd()
  20729. d.depthDecr()
  20730. return v, changed
  20731. }
  20732. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  20733. if rv.Kind() == reflect.Ptr {
  20734. vp := rv2i(rv).(*map[string]int64)
  20735. v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d)
  20736. if changed {
  20737. *vp = v
  20738. }
  20739. } else {
  20740. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  20741. }
  20742. }
  20743. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  20744. v, changed := f.DecMapStringInt64V(*vp, true, d)
  20745. if changed {
  20746. *vp = v
  20747. }
  20748. }
  20749. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  20750. d *Decoder) (_ map[string]int64, changed bool) {
  20751. dd, esep := d.d, d.hh.hasElemSeparators()
  20752. containerLen := dd.ReadMapStart()
  20753. if canChange && v == nil {
  20754. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20755. v = make(map[string]int64, xlen)
  20756. changed = true
  20757. }
  20758. if containerLen == 0 {
  20759. dd.ReadMapEnd()
  20760. return v, changed
  20761. }
  20762. d.depthIncr()
  20763. var mk string
  20764. var mv int64
  20765. hasLen := containerLen > 0
  20766. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20767. if esep {
  20768. dd.ReadMapElemKey()
  20769. }
  20770. mk = dd.DecodeString()
  20771. if esep {
  20772. dd.ReadMapElemValue()
  20773. }
  20774. if dd.TryDecodeAsNil() {
  20775. if v == nil {
  20776. } else if d.h.DeleteOnNilMapValue {
  20777. delete(v, mk)
  20778. } else {
  20779. v[mk] = 0
  20780. }
  20781. continue
  20782. }
  20783. mv = dd.DecodeInt64()
  20784. if v != nil {
  20785. v[mk] = mv
  20786. }
  20787. }
  20788. dd.ReadMapEnd()
  20789. d.depthDecr()
  20790. return v, changed
  20791. }
  20792. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  20793. if rv.Kind() == reflect.Ptr {
  20794. vp := rv2i(rv).(*map[string]float32)
  20795. v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d)
  20796. if changed {
  20797. *vp = v
  20798. }
  20799. } else {
  20800. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  20801. }
  20802. }
  20803. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  20804. v, changed := f.DecMapStringFloat32V(*vp, true, d)
  20805. if changed {
  20806. *vp = v
  20807. }
  20808. }
  20809. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  20810. d *Decoder) (_ map[string]float32, changed bool) {
  20811. dd, esep := d.d, d.hh.hasElemSeparators()
  20812. containerLen := dd.ReadMapStart()
  20813. if canChange && v == nil {
  20814. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20815. v = make(map[string]float32, xlen)
  20816. changed = true
  20817. }
  20818. if containerLen == 0 {
  20819. dd.ReadMapEnd()
  20820. return v, changed
  20821. }
  20822. d.depthIncr()
  20823. var mk string
  20824. var mv float32
  20825. hasLen := containerLen > 0
  20826. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20827. if esep {
  20828. dd.ReadMapElemKey()
  20829. }
  20830. mk = dd.DecodeString()
  20831. if esep {
  20832. dd.ReadMapElemValue()
  20833. }
  20834. if dd.TryDecodeAsNil() {
  20835. if v == nil {
  20836. } else if d.h.DeleteOnNilMapValue {
  20837. delete(v, mk)
  20838. } else {
  20839. v[mk] = 0
  20840. }
  20841. continue
  20842. }
  20843. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20844. if v != nil {
  20845. v[mk] = mv
  20846. }
  20847. }
  20848. dd.ReadMapEnd()
  20849. d.depthDecr()
  20850. return v, changed
  20851. }
  20852. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  20853. if rv.Kind() == reflect.Ptr {
  20854. vp := rv2i(rv).(*map[string]float64)
  20855. v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d)
  20856. if changed {
  20857. *vp = v
  20858. }
  20859. } else {
  20860. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  20861. }
  20862. }
  20863. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  20864. v, changed := f.DecMapStringFloat64V(*vp, true, d)
  20865. if changed {
  20866. *vp = v
  20867. }
  20868. }
  20869. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  20870. d *Decoder) (_ map[string]float64, changed bool) {
  20871. dd, esep := d.d, d.hh.hasElemSeparators()
  20872. containerLen := dd.ReadMapStart()
  20873. if canChange && v == nil {
  20874. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20875. v = make(map[string]float64, xlen)
  20876. changed = true
  20877. }
  20878. if containerLen == 0 {
  20879. dd.ReadMapEnd()
  20880. return v, changed
  20881. }
  20882. d.depthIncr()
  20883. var mk string
  20884. var mv float64
  20885. hasLen := containerLen > 0
  20886. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20887. if esep {
  20888. dd.ReadMapElemKey()
  20889. }
  20890. mk = dd.DecodeString()
  20891. if esep {
  20892. dd.ReadMapElemValue()
  20893. }
  20894. if dd.TryDecodeAsNil() {
  20895. if v == nil {
  20896. } else if d.h.DeleteOnNilMapValue {
  20897. delete(v, mk)
  20898. } else {
  20899. v[mk] = 0
  20900. }
  20901. continue
  20902. }
  20903. mv = dd.DecodeFloat64()
  20904. if v != nil {
  20905. v[mk] = mv
  20906. }
  20907. }
  20908. dd.ReadMapEnd()
  20909. d.depthDecr()
  20910. return v, changed
  20911. }
  20912. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  20913. if rv.Kind() == reflect.Ptr {
  20914. vp := rv2i(rv).(*map[string]bool)
  20915. v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d)
  20916. if changed {
  20917. *vp = v
  20918. }
  20919. } else {
  20920. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  20921. }
  20922. }
  20923. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  20924. v, changed := f.DecMapStringBoolV(*vp, true, d)
  20925. if changed {
  20926. *vp = v
  20927. }
  20928. }
  20929. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  20930. d *Decoder) (_ map[string]bool, changed bool) {
  20931. dd, esep := d.d, d.hh.hasElemSeparators()
  20932. containerLen := dd.ReadMapStart()
  20933. if canChange && v == nil {
  20934. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20935. v = make(map[string]bool, xlen)
  20936. changed = true
  20937. }
  20938. if containerLen == 0 {
  20939. dd.ReadMapEnd()
  20940. return v, changed
  20941. }
  20942. d.depthIncr()
  20943. var mk string
  20944. var mv bool
  20945. hasLen := containerLen > 0
  20946. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20947. if esep {
  20948. dd.ReadMapElemKey()
  20949. }
  20950. mk = dd.DecodeString()
  20951. if esep {
  20952. dd.ReadMapElemValue()
  20953. }
  20954. if dd.TryDecodeAsNil() {
  20955. if v == nil {
  20956. } else if d.h.DeleteOnNilMapValue {
  20957. delete(v, mk)
  20958. } else {
  20959. v[mk] = false
  20960. }
  20961. continue
  20962. }
  20963. mv = dd.DecodeBool()
  20964. if v != nil {
  20965. v[mk] = mv
  20966. }
  20967. }
  20968. dd.ReadMapEnd()
  20969. d.depthDecr()
  20970. return v, changed
  20971. }
  20972. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  20973. if rv.Kind() == reflect.Ptr {
  20974. vp := rv2i(rv).(*map[float32]interface{})
  20975. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d)
  20976. if changed {
  20977. *vp = v
  20978. }
  20979. } else {
  20980. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  20981. }
  20982. }
  20983. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  20984. v, changed := f.DecMapFloat32IntfV(*vp, true, d)
  20985. if changed {
  20986. *vp = v
  20987. }
  20988. }
  20989. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  20990. d *Decoder) (_ map[float32]interface{}, changed bool) {
  20991. dd, esep := d.d, d.hh.hasElemSeparators()
  20992. containerLen := dd.ReadMapStart()
  20993. if canChange && v == nil {
  20994. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20995. v = make(map[float32]interface{}, xlen)
  20996. changed = true
  20997. }
  20998. if containerLen == 0 {
  20999. dd.ReadMapEnd()
  21000. return v, changed
  21001. }
  21002. d.depthIncr()
  21003. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  21004. var mk float32
  21005. var mv interface{}
  21006. hasLen := containerLen > 0
  21007. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21008. if esep {
  21009. dd.ReadMapElemKey()
  21010. }
  21011. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21012. if esep {
  21013. dd.ReadMapElemValue()
  21014. }
  21015. if dd.TryDecodeAsNil() {
  21016. if v == nil {
  21017. } else if d.h.DeleteOnNilMapValue {
  21018. delete(v, mk)
  21019. } else {
  21020. v[mk] = nil
  21021. }
  21022. continue
  21023. }
  21024. if mapGet {
  21025. mv = v[mk]
  21026. } else {
  21027. mv = nil
  21028. }
  21029. d.decode(&mv)
  21030. if v != nil {
  21031. v[mk] = mv
  21032. }
  21033. }
  21034. dd.ReadMapEnd()
  21035. d.depthDecr()
  21036. return v, changed
  21037. }
  21038. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  21039. if rv.Kind() == reflect.Ptr {
  21040. vp := rv2i(rv).(*map[float32]string)
  21041. v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d)
  21042. if changed {
  21043. *vp = v
  21044. }
  21045. } else {
  21046. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  21047. }
  21048. }
  21049. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  21050. v, changed := f.DecMapFloat32StringV(*vp, true, d)
  21051. if changed {
  21052. *vp = v
  21053. }
  21054. }
  21055. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  21056. d *Decoder) (_ map[float32]string, changed bool) {
  21057. dd, esep := d.d, d.hh.hasElemSeparators()
  21058. containerLen := dd.ReadMapStart()
  21059. if canChange && v == nil {
  21060. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21061. v = make(map[float32]string, xlen)
  21062. changed = true
  21063. }
  21064. if containerLen == 0 {
  21065. dd.ReadMapEnd()
  21066. return v, changed
  21067. }
  21068. d.depthIncr()
  21069. var mk float32
  21070. var mv string
  21071. hasLen := containerLen > 0
  21072. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21073. if esep {
  21074. dd.ReadMapElemKey()
  21075. }
  21076. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21077. if esep {
  21078. dd.ReadMapElemValue()
  21079. }
  21080. if dd.TryDecodeAsNil() {
  21081. if v == nil {
  21082. } else if d.h.DeleteOnNilMapValue {
  21083. delete(v, mk)
  21084. } else {
  21085. v[mk] = ""
  21086. }
  21087. continue
  21088. }
  21089. mv = dd.DecodeString()
  21090. if v != nil {
  21091. v[mk] = mv
  21092. }
  21093. }
  21094. dd.ReadMapEnd()
  21095. d.depthDecr()
  21096. return v, changed
  21097. }
  21098. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  21099. if rv.Kind() == reflect.Ptr {
  21100. vp := rv2i(rv).(*map[float32]uint)
  21101. v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d)
  21102. if changed {
  21103. *vp = v
  21104. }
  21105. } else {
  21106. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  21107. }
  21108. }
  21109. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  21110. v, changed := f.DecMapFloat32UintV(*vp, true, d)
  21111. if changed {
  21112. *vp = v
  21113. }
  21114. }
  21115. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  21116. d *Decoder) (_ map[float32]uint, changed bool) {
  21117. dd, esep := d.d, d.hh.hasElemSeparators()
  21118. containerLen := dd.ReadMapStart()
  21119. if canChange && v == nil {
  21120. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21121. v = make(map[float32]uint, xlen)
  21122. changed = true
  21123. }
  21124. if containerLen == 0 {
  21125. dd.ReadMapEnd()
  21126. return v, changed
  21127. }
  21128. d.depthIncr()
  21129. var mk float32
  21130. var mv uint
  21131. hasLen := containerLen > 0
  21132. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21133. if esep {
  21134. dd.ReadMapElemKey()
  21135. }
  21136. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21137. if esep {
  21138. dd.ReadMapElemValue()
  21139. }
  21140. if dd.TryDecodeAsNil() {
  21141. if v == nil {
  21142. } else if d.h.DeleteOnNilMapValue {
  21143. delete(v, mk)
  21144. } else {
  21145. v[mk] = 0
  21146. }
  21147. continue
  21148. }
  21149. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21150. if v != nil {
  21151. v[mk] = mv
  21152. }
  21153. }
  21154. dd.ReadMapEnd()
  21155. d.depthDecr()
  21156. return v, changed
  21157. }
  21158. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  21159. if rv.Kind() == reflect.Ptr {
  21160. vp := rv2i(rv).(*map[float32]uint8)
  21161. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d)
  21162. if changed {
  21163. *vp = v
  21164. }
  21165. } else {
  21166. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  21167. }
  21168. }
  21169. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  21170. v, changed := f.DecMapFloat32Uint8V(*vp, true, d)
  21171. if changed {
  21172. *vp = v
  21173. }
  21174. }
  21175. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  21176. d *Decoder) (_ map[float32]uint8, changed bool) {
  21177. dd, esep := d.d, d.hh.hasElemSeparators()
  21178. containerLen := dd.ReadMapStart()
  21179. if canChange && v == nil {
  21180. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21181. v = make(map[float32]uint8, xlen)
  21182. changed = true
  21183. }
  21184. if containerLen == 0 {
  21185. dd.ReadMapEnd()
  21186. return v, changed
  21187. }
  21188. d.depthIncr()
  21189. var mk float32
  21190. var mv uint8
  21191. hasLen := containerLen > 0
  21192. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21193. if esep {
  21194. dd.ReadMapElemKey()
  21195. }
  21196. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21197. if esep {
  21198. dd.ReadMapElemValue()
  21199. }
  21200. if dd.TryDecodeAsNil() {
  21201. if v == nil {
  21202. } else if d.h.DeleteOnNilMapValue {
  21203. delete(v, mk)
  21204. } else {
  21205. v[mk] = 0
  21206. }
  21207. continue
  21208. }
  21209. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  21210. if v != nil {
  21211. v[mk] = mv
  21212. }
  21213. }
  21214. dd.ReadMapEnd()
  21215. d.depthDecr()
  21216. return v, changed
  21217. }
  21218. func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  21219. if rv.Kind() == reflect.Ptr {
  21220. vp := rv2i(rv).(*map[float32]uint16)
  21221. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d)
  21222. if changed {
  21223. *vp = v
  21224. }
  21225. } else {
  21226. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  21227. }
  21228. }
  21229. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  21230. v, changed := f.DecMapFloat32Uint16V(*vp, true, d)
  21231. if changed {
  21232. *vp = v
  21233. }
  21234. }
  21235. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  21236. d *Decoder) (_ map[float32]uint16, changed bool) {
  21237. dd, esep := d.d, d.hh.hasElemSeparators()
  21238. containerLen := dd.ReadMapStart()
  21239. if canChange && v == nil {
  21240. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21241. v = make(map[float32]uint16, xlen)
  21242. changed = true
  21243. }
  21244. if containerLen == 0 {
  21245. dd.ReadMapEnd()
  21246. return v, changed
  21247. }
  21248. d.depthIncr()
  21249. var mk float32
  21250. var mv uint16
  21251. hasLen := containerLen > 0
  21252. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21253. if esep {
  21254. dd.ReadMapElemKey()
  21255. }
  21256. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21257. if esep {
  21258. dd.ReadMapElemValue()
  21259. }
  21260. if dd.TryDecodeAsNil() {
  21261. if v == nil {
  21262. } else if d.h.DeleteOnNilMapValue {
  21263. delete(v, mk)
  21264. } else {
  21265. v[mk] = 0
  21266. }
  21267. continue
  21268. }
  21269. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  21270. if v != nil {
  21271. v[mk] = mv
  21272. }
  21273. }
  21274. dd.ReadMapEnd()
  21275. d.depthDecr()
  21276. return v, changed
  21277. }
  21278. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  21279. if rv.Kind() == reflect.Ptr {
  21280. vp := rv2i(rv).(*map[float32]uint32)
  21281. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d)
  21282. if changed {
  21283. *vp = v
  21284. }
  21285. } else {
  21286. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  21287. }
  21288. }
  21289. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  21290. v, changed := f.DecMapFloat32Uint32V(*vp, true, d)
  21291. if changed {
  21292. *vp = v
  21293. }
  21294. }
  21295. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  21296. d *Decoder) (_ map[float32]uint32, changed bool) {
  21297. dd, esep := d.d, d.hh.hasElemSeparators()
  21298. containerLen := dd.ReadMapStart()
  21299. if canChange && v == nil {
  21300. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21301. v = make(map[float32]uint32, xlen)
  21302. changed = true
  21303. }
  21304. if containerLen == 0 {
  21305. dd.ReadMapEnd()
  21306. return v, changed
  21307. }
  21308. d.depthIncr()
  21309. var mk float32
  21310. var mv uint32
  21311. hasLen := containerLen > 0
  21312. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21313. if esep {
  21314. dd.ReadMapElemKey()
  21315. }
  21316. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21317. if esep {
  21318. dd.ReadMapElemValue()
  21319. }
  21320. if dd.TryDecodeAsNil() {
  21321. if v == nil {
  21322. } else if d.h.DeleteOnNilMapValue {
  21323. delete(v, mk)
  21324. } else {
  21325. v[mk] = 0
  21326. }
  21327. continue
  21328. }
  21329. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  21330. if v != nil {
  21331. v[mk] = mv
  21332. }
  21333. }
  21334. dd.ReadMapEnd()
  21335. d.depthDecr()
  21336. return v, changed
  21337. }
  21338. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  21339. if rv.Kind() == reflect.Ptr {
  21340. vp := rv2i(rv).(*map[float32]uint64)
  21341. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d)
  21342. if changed {
  21343. *vp = v
  21344. }
  21345. } else {
  21346. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  21347. }
  21348. }
  21349. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  21350. v, changed := f.DecMapFloat32Uint64V(*vp, true, d)
  21351. if changed {
  21352. *vp = v
  21353. }
  21354. }
  21355. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  21356. d *Decoder) (_ map[float32]uint64, changed bool) {
  21357. dd, esep := d.d, d.hh.hasElemSeparators()
  21358. containerLen := dd.ReadMapStart()
  21359. if canChange && v == nil {
  21360. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21361. v = make(map[float32]uint64, xlen)
  21362. changed = true
  21363. }
  21364. if containerLen == 0 {
  21365. dd.ReadMapEnd()
  21366. return v, changed
  21367. }
  21368. d.depthIncr()
  21369. var mk float32
  21370. var mv uint64
  21371. hasLen := containerLen > 0
  21372. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21373. if esep {
  21374. dd.ReadMapElemKey()
  21375. }
  21376. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21377. if esep {
  21378. dd.ReadMapElemValue()
  21379. }
  21380. if dd.TryDecodeAsNil() {
  21381. if v == nil {
  21382. } else if d.h.DeleteOnNilMapValue {
  21383. delete(v, mk)
  21384. } else {
  21385. v[mk] = 0
  21386. }
  21387. continue
  21388. }
  21389. mv = dd.DecodeUint64()
  21390. if v != nil {
  21391. v[mk] = mv
  21392. }
  21393. }
  21394. dd.ReadMapEnd()
  21395. d.depthDecr()
  21396. return v, changed
  21397. }
  21398. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  21399. if rv.Kind() == reflect.Ptr {
  21400. vp := rv2i(rv).(*map[float32]uintptr)
  21401. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d)
  21402. if changed {
  21403. *vp = v
  21404. }
  21405. } else {
  21406. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  21407. }
  21408. }
  21409. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  21410. v, changed := f.DecMapFloat32UintptrV(*vp, true, d)
  21411. if changed {
  21412. *vp = v
  21413. }
  21414. }
  21415. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  21416. d *Decoder) (_ map[float32]uintptr, changed bool) {
  21417. dd, esep := d.d, d.hh.hasElemSeparators()
  21418. containerLen := dd.ReadMapStart()
  21419. if canChange && v == nil {
  21420. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21421. v = make(map[float32]uintptr, xlen)
  21422. changed = true
  21423. }
  21424. if containerLen == 0 {
  21425. dd.ReadMapEnd()
  21426. return v, changed
  21427. }
  21428. d.depthIncr()
  21429. var mk float32
  21430. var mv uintptr
  21431. hasLen := containerLen > 0
  21432. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21433. if esep {
  21434. dd.ReadMapElemKey()
  21435. }
  21436. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21437. if esep {
  21438. dd.ReadMapElemValue()
  21439. }
  21440. if dd.TryDecodeAsNil() {
  21441. if v == nil {
  21442. } else if d.h.DeleteOnNilMapValue {
  21443. delete(v, mk)
  21444. } else {
  21445. v[mk] = 0
  21446. }
  21447. continue
  21448. }
  21449. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21450. if v != nil {
  21451. v[mk] = mv
  21452. }
  21453. }
  21454. dd.ReadMapEnd()
  21455. d.depthDecr()
  21456. return v, changed
  21457. }
  21458. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  21459. if rv.Kind() == reflect.Ptr {
  21460. vp := rv2i(rv).(*map[float32]int)
  21461. v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d)
  21462. if changed {
  21463. *vp = v
  21464. }
  21465. } else {
  21466. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  21467. }
  21468. }
  21469. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  21470. v, changed := f.DecMapFloat32IntV(*vp, true, d)
  21471. if changed {
  21472. *vp = v
  21473. }
  21474. }
  21475. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  21476. d *Decoder) (_ map[float32]int, changed bool) {
  21477. dd, esep := d.d, d.hh.hasElemSeparators()
  21478. containerLen := dd.ReadMapStart()
  21479. if canChange && v == nil {
  21480. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21481. v = make(map[float32]int, xlen)
  21482. changed = true
  21483. }
  21484. if containerLen == 0 {
  21485. dd.ReadMapEnd()
  21486. return v, changed
  21487. }
  21488. d.depthIncr()
  21489. var mk float32
  21490. var mv int
  21491. hasLen := containerLen > 0
  21492. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21493. if esep {
  21494. dd.ReadMapElemKey()
  21495. }
  21496. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21497. if esep {
  21498. dd.ReadMapElemValue()
  21499. }
  21500. if dd.TryDecodeAsNil() {
  21501. if v == nil {
  21502. } else if d.h.DeleteOnNilMapValue {
  21503. delete(v, mk)
  21504. } else {
  21505. v[mk] = 0
  21506. }
  21507. continue
  21508. }
  21509. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  21510. if v != nil {
  21511. v[mk] = mv
  21512. }
  21513. }
  21514. dd.ReadMapEnd()
  21515. d.depthDecr()
  21516. return v, changed
  21517. }
  21518. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  21519. if rv.Kind() == reflect.Ptr {
  21520. vp := rv2i(rv).(*map[float32]int8)
  21521. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d)
  21522. if changed {
  21523. *vp = v
  21524. }
  21525. } else {
  21526. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  21527. }
  21528. }
  21529. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  21530. v, changed := f.DecMapFloat32Int8V(*vp, true, d)
  21531. if changed {
  21532. *vp = v
  21533. }
  21534. }
  21535. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  21536. d *Decoder) (_ map[float32]int8, changed bool) {
  21537. dd, esep := d.d, d.hh.hasElemSeparators()
  21538. containerLen := dd.ReadMapStart()
  21539. if canChange && v == nil {
  21540. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21541. v = make(map[float32]int8, xlen)
  21542. changed = true
  21543. }
  21544. if containerLen == 0 {
  21545. dd.ReadMapEnd()
  21546. return v, changed
  21547. }
  21548. d.depthIncr()
  21549. var mk float32
  21550. var mv int8
  21551. hasLen := containerLen > 0
  21552. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21553. if esep {
  21554. dd.ReadMapElemKey()
  21555. }
  21556. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21557. if esep {
  21558. dd.ReadMapElemValue()
  21559. }
  21560. if dd.TryDecodeAsNil() {
  21561. if v == nil {
  21562. } else if d.h.DeleteOnNilMapValue {
  21563. delete(v, mk)
  21564. } else {
  21565. v[mk] = 0
  21566. }
  21567. continue
  21568. }
  21569. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  21570. if v != nil {
  21571. v[mk] = mv
  21572. }
  21573. }
  21574. dd.ReadMapEnd()
  21575. d.depthDecr()
  21576. return v, changed
  21577. }
  21578. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  21579. if rv.Kind() == reflect.Ptr {
  21580. vp := rv2i(rv).(*map[float32]int16)
  21581. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d)
  21582. if changed {
  21583. *vp = v
  21584. }
  21585. } else {
  21586. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  21587. }
  21588. }
  21589. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  21590. v, changed := f.DecMapFloat32Int16V(*vp, true, d)
  21591. if changed {
  21592. *vp = v
  21593. }
  21594. }
  21595. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  21596. d *Decoder) (_ map[float32]int16, changed bool) {
  21597. dd, esep := d.d, d.hh.hasElemSeparators()
  21598. containerLen := dd.ReadMapStart()
  21599. if canChange && v == nil {
  21600. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21601. v = make(map[float32]int16, xlen)
  21602. changed = true
  21603. }
  21604. if containerLen == 0 {
  21605. dd.ReadMapEnd()
  21606. return v, changed
  21607. }
  21608. d.depthIncr()
  21609. var mk float32
  21610. var mv int16
  21611. hasLen := containerLen > 0
  21612. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21613. if esep {
  21614. dd.ReadMapElemKey()
  21615. }
  21616. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21617. if esep {
  21618. dd.ReadMapElemValue()
  21619. }
  21620. if dd.TryDecodeAsNil() {
  21621. if v == nil {
  21622. } else if d.h.DeleteOnNilMapValue {
  21623. delete(v, mk)
  21624. } else {
  21625. v[mk] = 0
  21626. }
  21627. continue
  21628. }
  21629. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  21630. if v != nil {
  21631. v[mk] = mv
  21632. }
  21633. }
  21634. dd.ReadMapEnd()
  21635. d.depthDecr()
  21636. return v, changed
  21637. }
  21638. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  21639. if rv.Kind() == reflect.Ptr {
  21640. vp := rv2i(rv).(*map[float32]int32)
  21641. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d)
  21642. if changed {
  21643. *vp = v
  21644. }
  21645. } else {
  21646. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  21647. }
  21648. }
  21649. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  21650. v, changed := f.DecMapFloat32Int32V(*vp, true, d)
  21651. if changed {
  21652. *vp = v
  21653. }
  21654. }
  21655. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  21656. d *Decoder) (_ map[float32]int32, changed bool) {
  21657. dd, esep := d.d, d.hh.hasElemSeparators()
  21658. containerLen := dd.ReadMapStart()
  21659. if canChange && v == nil {
  21660. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21661. v = make(map[float32]int32, xlen)
  21662. changed = true
  21663. }
  21664. if containerLen == 0 {
  21665. dd.ReadMapEnd()
  21666. return v, changed
  21667. }
  21668. d.depthIncr()
  21669. var mk float32
  21670. var mv int32
  21671. hasLen := containerLen > 0
  21672. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21673. if esep {
  21674. dd.ReadMapElemKey()
  21675. }
  21676. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21677. if esep {
  21678. dd.ReadMapElemValue()
  21679. }
  21680. if dd.TryDecodeAsNil() {
  21681. if v == nil {
  21682. } else if d.h.DeleteOnNilMapValue {
  21683. delete(v, mk)
  21684. } else {
  21685. v[mk] = 0
  21686. }
  21687. continue
  21688. }
  21689. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  21690. if v != nil {
  21691. v[mk] = mv
  21692. }
  21693. }
  21694. dd.ReadMapEnd()
  21695. d.depthDecr()
  21696. return v, changed
  21697. }
  21698. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  21699. if rv.Kind() == reflect.Ptr {
  21700. vp := rv2i(rv).(*map[float32]int64)
  21701. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d)
  21702. if changed {
  21703. *vp = v
  21704. }
  21705. } else {
  21706. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  21707. }
  21708. }
  21709. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  21710. v, changed := f.DecMapFloat32Int64V(*vp, true, d)
  21711. if changed {
  21712. *vp = v
  21713. }
  21714. }
  21715. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  21716. d *Decoder) (_ map[float32]int64, changed bool) {
  21717. dd, esep := d.d, d.hh.hasElemSeparators()
  21718. containerLen := dd.ReadMapStart()
  21719. if canChange && v == nil {
  21720. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21721. v = make(map[float32]int64, xlen)
  21722. changed = true
  21723. }
  21724. if containerLen == 0 {
  21725. dd.ReadMapEnd()
  21726. return v, changed
  21727. }
  21728. d.depthIncr()
  21729. var mk float32
  21730. var mv int64
  21731. hasLen := containerLen > 0
  21732. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21733. if esep {
  21734. dd.ReadMapElemKey()
  21735. }
  21736. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21737. if esep {
  21738. dd.ReadMapElemValue()
  21739. }
  21740. if dd.TryDecodeAsNil() {
  21741. if v == nil {
  21742. } else if d.h.DeleteOnNilMapValue {
  21743. delete(v, mk)
  21744. } else {
  21745. v[mk] = 0
  21746. }
  21747. continue
  21748. }
  21749. mv = dd.DecodeInt64()
  21750. if v != nil {
  21751. v[mk] = mv
  21752. }
  21753. }
  21754. dd.ReadMapEnd()
  21755. d.depthDecr()
  21756. return v, changed
  21757. }
  21758. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  21759. if rv.Kind() == reflect.Ptr {
  21760. vp := rv2i(rv).(*map[float32]float32)
  21761. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d)
  21762. if changed {
  21763. *vp = v
  21764. }
  21765. } else {
  21766. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  21767. }
  21768. }
  21769. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  21770. v, changed := f.DecMapFloat32Float32V(*vp, true, d)
  21771. if changed {
  21772. *vp = v
  21773. }
  21774. }
  21775. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  21776. d *Decoder) (_ map[float32]float32, changed bool) {
  21777. dd, esep := d.d, d.hh.hasElemSeparators()
  21778. containerLen := dd.ReadMapStart()
  21779. if canChange && v == nil {
  21780. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21781. v = make(map[float32]float32, xlen)
  21782. changed = true
  21783. }
  21784. if containerLen == 0 {
  21785. dd.ReadMapEnd()
  21786. return v, changed
  21787. }
  21788. d.depthIncr()
  21789. var mk float32
  21790. var mv float32
  21791. hasLen := containerLen > 0
  21792. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21793. if esep {
  21794. dd.ReadMapElemKey()
  21795. }
  21796. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21797. if esep {
  21798. dd.ReadMapElemValue()
  21799. }
  21800. if dd.TryDecodeAsNil() {
  21801. if v == nil {
  21802. } else if d.h.DeleteOnNilMapValue {
  21803. delete(v, mk)
  21804. } else {
  21805. v[mk] = 0
  21806. }
  21807. continue
  21808. }
  21809. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21810. if v != nil {
  21811. v[mk] = mv
  21812. }
  21813. }
  21814. dd.ReadMapEnd()
  21815. d.depthDecr()
  21816. return v, changed
  21817. }
  21818. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  21819. if rv.Kind() == reflect.Ptr {
  21820. vp := rv2i(rv).(*map[float32]float64)
  21821. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d)
  21822. if changed {
  21823. *vp = v
  21824. }
  21825. } else {
  21826. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  21827. }
  21828. }
  21829. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  21830. v, changed := f.DecMapFloat32Float64V(*vp, true, d)
  21831. if changed {
  21832. *vp = v
  21833. }
  21834. }
  21835. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  21836. d *Decoder) (_ map[float32]float64, changed bool) {
  21837. dd, esep := d.d, d.hh.hasElemSeparators()
  21838. containerLen := dd.ReadMapStart()
  21839. if canChange && v == nil {
  21840. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21841. v = make(map[float32]float64, xlen)
  21842. changed = true
  21843. }
  21844. if containerLen == 0 {
  21845. dd.ReadMapEnd()
  21846. return v, changed
  21847. }
  21848. d.depthIncr()
  21849. var mk float32
  21850. var mv float64
  21851. hasLen := containerLen > 0
  21852. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21853. if esep {
  21854. dd.ReadMapElemKey()
  21855. }
  21856. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21857. if esep {
  21858. dd.ReadMapElemValue()
  21859. }
  21860. if dd.TryDecodeAsNil() {
  21861. if v == nil {
  21862. } else if d.h.DeleteOnNilMapValue {
  21863. delete(v, mk)
  21864. } else {
  21865. v[mk] = 0
  21866. }
  21867. continue
  21868. }
  21869. mv = dd.DecodeFloat64()
  21870. if v != nil {
  21871. v[mk] = mv
  21872. }
  21873. }
  21874. dd.ReadMapEnd()
  21875. d.depthDecr()
  21876. return v, changed
  21877. }
  21878. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  21879. if rv.Kind() == reflect.Ptr {
  21880. vp := rv2i(rv).(*map[float32]bool)
  21881. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d)
  21882. if changed {
  21883. *vp = v
  21884. }
  21885. } else {
  21886. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  21887. }
  21888. }
  21889. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  21890. v, changed := f.DecMapFloat32BoolV(*vp, true, d)
  21891. if changed {
  21892. *vp = v
  21893. }
  21894. }
  21895. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  21896. d *Decoder) (_ map[float32]bool, changed bool) {
  21897. dd, esep := d.d, d.hh.hasElemSeparators()
  21898. containerLen := dd.ReadMapStart()
  21899. if canChange && v == nil {
  21900. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21901. v = make(map[float32]bool, xlen)
  21902. changed = true
  21903. }
  21904. if containerLen == 0 {
  21905. dd.ReadMapEnd()
  21906. return v, changed
  21907. }
  21908. d.depthIncr()
  21909. var mk float32
  21910. var mv bool
  21911. hasLen := containerLen > 0
  21912. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21913. if esep {
  21914. dd.ReadMapElemKey()
  21915. }
  21916. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21917. if esep {
  21918. dd.ReadMapElemValue()
  21919. }
  21920. if dd.TryDecodeAsNil() {
  21921. if v == nil {
  21922. } else if d.h.DeleteOnNilMapValue {
  21923. delete(v, mk)
  21924. } else {
  21925. v[mk] = false
  21926. }
  21927. continue
  21928. }
  21929. mv = dd.DecodeBool()
  21930. if v != nil {
  21931. v[mk] = mv
  21932. }
  21933. }
  21934. dd.ReadMapEnd()
  21935. d.depthDecr()
  21936. return v, changed
  21937. }
  21938. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  21939. if rv.Kind() == reflect.Ptr {
  21940. vp := rv2i(rv).(*map[float64]interface{})
  21941. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d)
  21942. if changed {
  21943. *vp = v
  21944. }
  21945. } else {
  21946. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  21947. }
  21948. }
  21949. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  21950. v, changed := f.DecMapFloat64IntfV(*vp, true, d)
  21951. if changed {
  21952. *vp = v
  21953. }
  21954. }
  21955. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  21956. d *Decoder) (_ map[float64]interface{}, changed bool) {
  21957. dd, esep := d.d, d.hh.hasElemSeparators()
  21958. containerLen := dd.ReadMapStart()
  21959. if canChange && v == nil {
  21960. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21961. v = make(map[float64]interface{}, xlen)
  21962. changed = true
  21963. }
  21964. if containerLen == 0 {
  21965. dd.ReadMapEnd()
  21966. return v, changed
  21967. }
  21968. d.depthIncr()
  21969. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  21970. var mk float64
  21971. var mv interface{}
  21972. hasLen := containerLen > 0
  21973. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21974. if esep {
  21975. dd.ReadMapElemKey()
  21976. }
  21977. mk = dd.DecodeFloat64()
  21978. if esep {
  21979. dd.ReadMapElemValue()
  21980. }
  21981. if dd.TryDecodeAsNil() {
  21982. if v == nil {
  21983. } else if d.h.DeleteOnNilMapValue {
  21984. delete(v, mk)
  21985. } else {
  21986. v[mk] = nil
  21987. }
  21988. continue
  21989. }
  21990. if mapGet {
  21991. mv = v[mk]
  21992. } else {
  21993. mv = nil
  21994. }
  21995. d.decode(&mv)
  21996. if v != nil {
  21997. v[mk] = mv
  21998. }
  21999. }
  22000. dd.ReadMapEnd()
  22001. d.depthDecr()
  22002. return v, changed
  22003. }
  22004. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  22005. if rv.Kind() == reflect.Ptr {
  22006. vp := rv2i(rv).(*map[float64]string)
  22007. v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d)
  22008. if changed {
  22009. *vp = v
  22010. }
  22011. } else {
  22012. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  22013. }
  22014. }
  22015. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  22016. v, changed := f.DecMapFloat64StringV(*vp, true, d)
  22017. if changed {
  22018. *vp = v
  22019. }
  22020. }
  22021. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  22022. d *Decoder) (_ map[float64]string, changed bool) {
  22023. dd, esep := d.d, d.hh.hasElemSeparators()
  22024. containerLen := dd.ReadMapStart()
  22025. if canChange && v == nil {
  22026. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22027. v = make(map[float64]string, xlen)
  22028. changed = true
  22029. }
  22030. if containerLen == 0 {
  22031. dd.ReadMapEnd()
  22032. return v, changed
  22033. }
  22034. d.depthIncr()
  22035. var mk float64
  22036. var mv string
  22037. hasLen := containerLen > 0
  22038. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22039. if esep {
  22040. dd.ReadMapElemKey()
  22041. }
  22042. mk = dd.DecodeFloat64()
  22043. if esep {
  22044. dd.ReadMapElemValue()
  22045. }
  22046. if dd.TryDecodeAsNil() {
  22047. if v == nil {
  22048. } else if d.h.DeleteOnNilMapValue {
  22049. delete(v, mk)
  22050. } else {
  22051. v[mk] = ""
  22052. }
  22053. continue
  22054. }
  22055. mv = dd.DecodeString()
  22056. if v != nil {
  22057. v[mk] = mv
  22058. }
  22059. }
  22060. dd.ReadMapEnd()
  22061. d.depthDecr()
  22062. return v, changed
  22063. }
  22064. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  22065. if rv.Kind() == reflect.Ptr {
  22066. vp := rv2i(rv).(*map[float64]uint)
  22067. v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d)
  22068. if changed {
  22069. *vp = v
  22070. }
  22071. } else {
  22072. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  22073. }
  22074. }
  22075. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  22076. v, changed := f.DecMapFloat64UintV(*vp, true, d)
  22077. if changed {
  22078. *vp = v
  22079. }
  22080. }
  22081. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  22082. d *Decoder) (_ map[float64]uint, changed bool) {
  22083. dd, esep := d.d, d.hh.hasElemSeparators()
  22084. containerLen := dd.ReadMapStart()
  22085. if canChange && v == nil {
  22086. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22087. v = make(map[float64]uint, xlen)
  22088. changed = true
  22089. }
  22090. if containerLen == 0 {
  22091. dd.ReadMapEnd()
  22092. return v, changed
  22093. }
  22094. d.depthIncr()
  22095. var mk float64
  22096. var mv uint
  22097. hasLen := containerLen > 0
  22098. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22099. if esep {
  22100. dd.ReadMapElemKey()
  22101. }
  22102. mk = dd.DecodeFloat64()
  22103. if esep {
  22104. dd.ReadMapElemValue()
  22105. }
  22106. if dd.TryDecodeAsNil() {
  22107. if v == nil {
  22108. } else if d.h.DeleteOnNilMapValue {
  22109. delete(v, mk)
  22110. } else {
  22111. v[mk] = 0
  22112. }
  22113. continue
  22114. }
  22115. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22116. if v != nil {
  22117. v[mk] = mv
  22118. }
  22119. }
  22120. dd.ReadMapEnd()
  22121. d.depthDecr()
  22122. return v, changed
  22123. }
  22124. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  22125. if rv.Kind() == reflect.Ptr {
  22126. vp := rv2i(rv).(*map[float64]uint8)
  22127. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d)
  22128. if changed {
  22129. *vp = v
  22130. }
  22131. } else {
  22132. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  22133. }
  22134. }
  22135. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  22136. v, changed := f.DecMapFloat64Uint8V(*vp, true, d)
  22137. if changed {
  22138. *vp = v
  22139. }
  22140. }
  22141. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  22142. d *Decoder) (_ map[float64]uint8, changed bool) {
  22143. dd, esep := d.d, d.hh.hasElemSeparators()
  22144. containerLen := dd.ReadMapStart()
  22145. if canChange && v == nil {
  22146. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22147. v = make(map[float64]uint8, xlen)
  22148. changed = true
  22149. }
  22150. if containerLen == 0 {
  22151. dd.ReadMapEnd()
  22152. return v, changed
  22153. }
  22154. d.depthIncr()
  22155. var mk float64
  22156. var mv uint8
  22157. hasLen := containerLen > 0
  22158. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22159. if esep {
  22160. dd.ReadMapElemKey()
  22161. }
  22162. mk = dd.DecodeFloat64()
  22163. if esep {
  22164. dd.ReadMapElemValue()
  22165. }
  22166. if dd.TryDecodeAsNil() {
  22167. if v == nil {
  22168. } else if d.h.DeleteOnNilMapValue {
  22169. delete(v, mk)
  22170. } else {
  22171. v[mk] = 0
  22172. }
  22173. continue
  22174. }
  22175. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22176. if v != nil {
  22177. v[mk] = mv
  22178. }
  22179. }
  22180. dd.ReadMapEnd()
  22181. d.depthDecr()
  22182. return v, changed
  22183. }
  22184. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  22185. if rv.Kind() == reflect.Ptr {
  22186. vp := rv2i(rv).(*map[float64]uint16)
  22187. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d)
  22188. if changed {
  22189. *vp = v
  22190. }
  22191. } else {
  22192. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  22193. }
  22194. }
  22195. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  22196. v, changed := f.DecMapFloat64Uint16V(*vp, true, d)
  22197. if changed {
  22198. *vp = v
  22199. }
  22200. }
  22201. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  22202. d *Decoder) (_ map[float64]uint16, changed bool) {
  22203. dd, esep := d.d, d.hh.hasElemSeparators()
  22204. containerLen := dd.ReadMapStart()
  22205. if canChange && v == nil {
  22206. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22207. v = make(map[float64]uint16, xlen)
  22208. changed = true
  22209. }
  22210. if containerLen == 0 {
  22211. dd.ReadMapEnd()
  22212. return v, changed
  22213. }
  22214. d.depthIncr()
  22215. var mk float64
  22216. var mv uint16
  22217. hasLen := containerLen > 0
  22218. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22219. if esep {
  22220. dd.ReadMapElemKey()
  22221. }
  22222. mk = dd.DecodeFloat64()
  22223. if esep {
  22224. dd.ReadMapElemValue()
  22225. }
  22226. if dd.TryDecodeAsNil() {
  22227. if v == nil {
  22228. } else if d.h.DeleteOnNilMapValue {
  22229. delete(v, mk)
  22230. } else {
  22231. v[mk] = 0
  22232. }
  22233. continue
  22234. }
  22235. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  22236. if v != nil {
  22237. v[mk] = mv
  22238. }
  22239. }
  22240. dd.ReadMapEnd()
  22241. d.depthDecr()
  22242. return v, changed
  22243. }
  22244. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  22245. if rv.Kind() == reflect.Ptr {
  22246. vp := rv2i(rv).(*map[float64]uint32)
  22247. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d)
  22248. if changed {
  22249. *vp = v
  22250. }
  22251. } else {
  22252. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  22253. }
  22254. }
  22255. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  22256. v, changed := f.DecMapFloat64Uint32V(*vp, true, d)
  22257. if changed {
  22258. *vp = v
  22259. }
  22260. }
  22261. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  22262. d *Decoder) (_ map[float64]uint32, changed bool) {
  22263. dd, esep := d.d, d.hh.hasElemSeparators()
  22264. containerLen := dd.ReadMapStart()
  22265. if canChange && v == nil {
  22266. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22267. v = make(map[float64]uint32, xlen)
  22268. changed = true
  22269. }
  22270. if containerLen == 0 {
  22271. dd.ReadMapEnd()
  22272. return v, changed
  22273. }
  22274. d.depthIncr()
  22275. var mk float64
  22276. var mv uint32
  22277. hasLen := containerLen > 0
  22278. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22279. if esep {
  22280. dd.ReadMapElemKey()
  22281. }
  22282. mk = dd.DecodeFloat64()
  22283. if esep {
  22284. dd.ReadMapElemValue()
  22285. }
  22286. if dd.TryDecodeAsNil() {
  22287. if v == nil {
  22288. } else if d.h.DeleteOnNilMapValue {
  22289. delete(v, mk)
  22290. } else {
  22291. v[mk] = 0
  22292. }
  22293. continue
  22294. }
  22295. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  22296. if v != nil {
  22297. v[mk] = mv
  22298. }
  22299. }
  22300. dd.ReadMapEnd()
  22301. d.depthDecr()
  22302. return v, changed
  22303. }
  22304. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  22305. if rv.Kind() == reflect.Ptr {
  22306. vp := rv2i(rv).(*map[float64]uint64)
  22307. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d)
  22308. if changed {
  22309. *vp = v
  22310. }
  22311. } else {
  22312. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  22313. }
  22314. }
  22315. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  22316. v, changed := f.DecMapFloat64Uint64V(*vp, true, d)
  22317. if changed {
  22318. *vp = v
  22319. }
  22320. }
  22321. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  22322. d *Decoder) (_ map[float64]uint64, changed bool) {
  22323. dd, esep := d.d, d.hh.hasElemSeparators()
  22324. containerLen := dd.ReadMapStart()
  22325. if canChange && v == nil {
  22326. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22327. v = make(map[float64]uint64, xlen)
  22328. changed = true
  22329. }
  22330. if containerLen == 0 {
  22331. dd.ReadMapEnd()
  22332. return v, changed
  22333. }
  22334. d.depthIncr()
  22335. var mk float64
  22336. var mv uint64
  22337. hasLen := containerLen > 0
  22338. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22339. if esep {
  22340. dd.ReadMapElemKey()
  22341. }
  22342. mk = dd.DecodeFloat64()
  22343. if esep {
  22344. dd.ReadMapElemValue()
  22345. }
  22346. if dd.TryDecodeAsNil() {
  22347. if v == nil {
  22348. } else if d.h.DeleteOnNilMapValue {
  22349. delete(v, mk)
  22350. } else {
  22351. v[mk] = 0
  22352. }
  22353. continue
  22354. }
  22355. mv = dd.DecodeUint64()
  22356. if v != nil {
  22357. v[mk] = mv
  22358. }
  22359. }
  22360. dd.ReadMapEnd()
  22361. d.depthDecr()
  22362. return v, changed
  22363. }
  22364. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  22365. if rv.Kind() == reflect.Ptr {
  22366. vp := rv2i(rv).(*map[float64]uintptr)
  22367. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d)
  22368. if changed {
  22369. *vp = v
  22370. }
  22371. } else {
  22372. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  22373. }
  22374. }
  22375. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  22376. v, changed := f.DecMapFloat64UintptrV(*vp, true, d)
  22377. if changed {
  22378. *vp = v
  22379. }
  22380. }
  22381. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  22382. d *Decoder) (_ map[float64]uintptr, changed bool) {
  22383. dd, esep := d.d, d.hh.hasElemSeparators()
  22384. containerLen := dd.ReadMapStart()
  22385. if canChange && v == nil {
  22386. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22387. v = make(map[float64]uintptr, xlen)
  22388. changed = true
  22389. }
  22390. if containerLen == 0 {
  22391. dd.ReadMapEnd()
  22392. return v, changed
  22393. }
  22394. d.depthIncr()
  22395. var mk float64
  22396. var mv uintptr
  22397. hasLen := containerLen > 0
  22398. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22399. if esep {
  22400. dd.ReadMapElemKey()
  22401. }
  22402. mk = dd.DecodeFloat64()
  22403. if esep {
  22404. dd.ReadMapElemValue()
  22405. }
  22406. if dd.TryDecodeAsNil() {
  22407. if v == nil {
  22408. } else if d.h.DeleteOnNilMapValue {
  22409. delete(v, mk)
  22410. } else {
  22411. v[mk] = 0
  22412. }
  22413. continue
  22414. }
  22415. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22416. if v != nil {
  22417. v[mk] = mv
  22418. }
  22419. }
  22420. dd.ReadMapEnd()
  22421. d.depthDecr()
  22422. return v, changed
  22423. }
  22424. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  22425. if rv.Kind() == reflect.Ptr {
  22426. vp := rv2i(rv).(*map[float64]int)
  22427. v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d)
  22428. if changed {
  22429. *vp = v
  22430. }
  22431. } else {
  22432. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  22433. }
  22434. }
  22435. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  22436. v, changed := f.DecMapFloat64IntV(*vp, true, d)
  22437. if changed {
  22438. *vp = v
  22439. }
  22440. }
  22441. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  22442. d *Decoder) (_ map[float64]int, changed bool) {
  22443. dd, esep := d.d, d.hh.hasElemSeparators()
  22444. containerLen := dd.ReadMapStart()
  22445. if canChange && v == nil {
  22446. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22447. v = make(map[float64]int, xlen)
  22448. changed = true
  22449. }
  22450. if containerLen == 0 {
  22451. dd.ReadMapEnd()
  22452. return v, changed
  22453. }
  22454. d.depthIncr()
  22455. var mk float64
  22456. var mv int
  22457. hasLen := containerLen > 0
  22458. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22459. if esep {
  22460. dd.ReadMapElemKey()
  22461. }
  22462. mk = dd.DecodeFloat64()
  22463. if esep {
  22464. dd.ReadMapElemValue()
  22465. }
  22466. if dd.TryDecodeAsNil() {
  22467. if v == nil {
  22468. } else if d.h.DeleteOnNilMapValue {
  22469. delete(v, mk)
  22470. } else {
  22471. v[mk] = 0
  22472. }
  22473. continue
  22474. }
  22475. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  22476. if v != nil {
  22477. v[mk] = mv
  22478. }
  22479. }
  22480. dd.ReadMapEnd()
  22481. d.depthDecr()
  22482. return v, changed
  22483. }
  22484. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  22485. if rv.Kind() == reflect.Ptr {
  22486. vp := rv2i(rv).(*map[float64]int8)
  22487. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d)
  22488. if changed {
  22489. *vp = v
  22490. }
  22491. } else {
  22492. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  22493. }
  22494. }
  22495. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  22496. v, changed := f.DecMapFloat64Int8V(*vp, true, d)
  22497. if changed {
  22498. *vp = v
  22499. }
  22500. }
  22501. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  22502. d *Decoder) (_ map[float64]int8, changed bool) {
  22503. dd, esep := d.d, d.hh.hasElemSeparators()
  22504. containerLen := dd.ReadMapStart()
  22505. if canChange && v == nil {
  22506. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22507. v = make(map[float64]int8, xlen)
  22508. changed = true
  22509. }
  22510. if containerLen == 0 {
  22511. dd.ReadMapEnd()
  22512. return v, changed
  22513. }
  22514. d.depthIncr()
  22515. var mk float64
  22516. var mv int8
  22517. hasLen := containerLen > 0
  22518. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22519. if esep {
  22520. dd.ReadMapElemKey()
  22521. }
  22522. mk = dd.DecodeFloat64()
  22523. if esep {
  22524. dd.ReadMapElemValue()
  22525. }
  22526. if dd.TryDecodeAsNil() {
  22527. if v == nil {
  22528. } else if d.h.DeleteOnNilMapValue {
  22529. delete(v, mk)
  22530. } else {
  22531. v[mk] = 0
  22532. }
  22533. continue
  22534. }
  22535. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  22536. if v != nil {
  22537. v[mk] = mv
  22538. }
  22539. }
  22540. dd.ReadMapEnd()
  22541. d.depthDecr()
  22542. return v, changed
  22543. }
  22544. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  22545. if rv.Kind() == reflect.Ptr {
  22546. vp := rv2i(rv).(*map[float64]int16)
  22547. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d)
  22548. if changed {
  22549. *vp = v
  22550. }
  22551. } else {
  22552. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  22553. }
  22554. }
  22555. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  22556. v, changed := f.DecMapFloat64Int16V(*vp, true, d)
  22557. if changed {
  22558. *vp = v
  22559. }
  22560. }
  22561. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  22562. d *Decoder) (_ map[float64]int16, changed bool) {
  22563. dd, esep := d.d, d.hh.hasElemSeparators()
  22564. containerLen := dd.ReadMapStart()
  22565. if canChange && v == nil {
  22566. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22567. v = make(map[float64]int16, xlen)
  22568. changed = true
  22569. }
  22570. if containerLen == 0 {
  22571. dd.ReadMapEnd()
  22572. return v, changed
  22573. }
  22574. d.depthIncr()
  22575. var mk float64
  22576. var mv int16
  22577. hasLen := containerLen > 0
  22578. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22579. if esep {
  22580. dd.ReadMapElemKey()
  22581. }
  22582. mk = dd.DecodeFloat64()
  22583. if esep {
  22584. dd.ReadMapElemValue()
  22585. }
  22586. if dd.TryDecodeAsNil() {
  22587. if v == nil {
  22588. } else if d.h.DeleteOnNilMapValue {
  22589. delete(v, mk)
  22590. } else {
  22591. v[mk] = 0
  22592. }
  22593. continue
  22594. }
  22595. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  22596. if v != nil {
  22597. v[mk] = mv
  22598. }
  22599. }
  22600. dd.ReadMapEnd()
  22601. d.depthDecr()
  22602. return v, changed
  22603. }
  22604. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  22605. if rv.Kind() == reflect.Ptr {
  22606. vp := rv2i(rv).(*map[float64]int32)
  22607. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d)
  22608. if changed {
  22609. *vp = v
  22610. }
  22611. } else {
  22612. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  22613. }
  22614. }
  22615. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  22616. v, changed := f.DecMapFloat64Int32V(*vp, true, d)
  22617. if changed {
  22618. *vp = v
  22619. }
  22620. }
  22621. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  22622. d *Decoder) (_ map[float64]int32, changed bool) {
  22623. dd, esep := d.d, d.hh.hasElemSeparators()
  22624. containerLen := dd.ReadMapStart()
  22625. if canChange && v == nil {
  22626. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22627. v = make(map[float64]int32, xlen)
  22628. changed = true
  22629. }
  22630. if containerLen == 0 {
  22631. dd.ReadMapEnd()
  22632. return v, changed
  22633. }
  22634. d.depthIncr()
  22635. var mk float64
  22636. var mv int32
  22637. hasLen := containerLen > 0
  22638. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22639. if esep {
  22640. dd.ReadMapElemKey()
  22641. }
  22642. mk = dd.DecodeFloat64()
  22643. if esep {
  22644. dd.ReadMapElemValue()
  22645. }
  22646. if dd.TryDecodeAsNil() {
  22647. if v == nil {
  22648. } else if d.h.DeleteOnNilMapValue {
  22649. delete(v, mk)
  22650. } else {
  22651. v[mk] = 0
  22652. }
  22653. continue
  22654. }
  22655. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  22656. if v != nil {
  22657. v[mk] = mv
  22658. }
  22659. }
  22660. dd.ReadMapEnd()
  22661. d.depthDecr()
  22662. return v, changed
  22663. }
  22664. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  22665. if rv.Kind() == reflect.Ptr {
  22666. vp := rv2i(rv).(*map[float64]int64)
  22667. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d)
  22668. if changed {
  22669. *vp = v
  22670. }
  22671. } else {
  22672. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  22673. }
  22674. }
  22675. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  22676. v, changed := f.DecMapFloat64Int64V(*vp, true, d)
  22677. if changed {
  22678. *vp = v
  22679. }
  22680. }
  22681. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  22682. d *Decoder) (_ map[float64]int64, changed bool) {
  22683. dd, esep := d.d, d.hh.hasElemSeparators()
  22684. containerLen := dd.ReadMapStart()
  22685. if canChange && v == nil {
  22686. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22687. v = make(map[float64]int64, xlen)
  22688. changed = true
  22689. }
  22690. if containerLen == 0 {
  22691. dd.ReadMapEnd()
  22692. return v, changed
  22693. }
  22694. d.depthIncr()
  22695. var mk float64
  22696. var mv int64
  22697. hasLen := containerLen > 0
  22698. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22699. if esep {
  22700. dd.ReadMapElemKey()
  22701. }
  22702. mk = dd.DecodeFloat64()
  22703. if esep {
  22704. dd.ReadMapElemValue()
  22705. }
  22706. if dd.TryDecodeAsNil() {
  22707. if v == nil {
  22708. } else if d.h.DeleteOnNilMapValue {
  22709. delete(v, mk)
  22710. } else {
  22711. v[mk] = 0
  22712. }
  22713. continue
  22714. }
  22715. mv = dd.DecodeInt64()
  22716. if v != nil {
  22717. v[mk] = mv
  22718. }
  22719. }
  22720. dd.ReadMapEnd()
  22721. d.depthDecr()
  22722. return v, changed
  22723. }
  22724. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  22725. if rv.Kind() == reflect.Ptr {
  22726. vp := rv2i(rv).(*map[float64]float32)
  22727. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d)
  22728. if changed {
  22729. *vp = v
  22730. }
  22731. } else {
  22732. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  22733. }
  22734. }
  22735. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  22736. v, changed := f.DecMapFloat64Float32V(*vp, true, d)
  22737. if changed {
  22738. *vp = v
  22739. }
  22740. }
  22741. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  22742. d *Decoder) (_ map[float64]float32, changed bool) {
  22743. dd, esep := d.d, d.hh.hasElemSeparators()
  22744. containerLen := dd.ReadMapStart()
  22745. if canChange && v == nil {
  22746. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22747. v = make(map[float64]float32, xlen)
  22748. changed = true
  22749. }
  22750. if containerLen == 0 {
  22751. dd.ReadMapEnd()
  22752. return v, changed
  22753. }
  22754. d.depthIncr()
  22755. var mk float64
  22756. var mv float32
  22757. hasLen := containerLen > 0
  22758. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22759. if esep {
  22760. dd.ReadMapElemKey()
  22761. }
  22762. mk = dd.DecodeFloat64()
  22763. if esep {
  22764. dd.ReadMapElemValue()
  22765. }
  22766. if dd.TryDecodeAsNil() {
  22767. if v == nil {
  22768. } else if d.h.DeleteOnNilMapValue {
  22769. delete(v, mk)
  22770. } else {
  22771. v[mk] = 0
  22772. }
  22773. continue
  22774. }
  22775. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  22776. if v != nil {
  22777. v[mk] = mv
  22778. }
  22779. }
  22780. dd.ReadMapEnd()
  22781. d.depthDecr()
  22782. return v, changed
  22783. }
  22784. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  22785. if rv.Kind() == reflect.Ptr {
  22786. vp := rv2i(rv).(*map[float64]float64)
  22787. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d)
  22788. if changed {
  22789. *vp = v
  22790. }
  22791. } else {
  22792. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  22793. }
  22794. }
  22795. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  22796. v, changed := f.DecMapFloat64Float64V(*vp, true, d)
  22797. if changed {
  22798. *vp = v
  22799. }
  22800. }
  22801. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  22802. d *Decoder) (_ map[float64]float64, changed bool) {
  22803. dd, esep := d.d, d.hh.hasElemSeparators()
  22804. containerLen := dd.ReadMapStart()
  22805. if canChange && v == nil {
  22806. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22807. v = make(map[float64]float64, xlen)
  22808. changed = true
  22809. }
  22810. if containerLen == 0 {
  22811. dd.ReadMapEnd()
  22812. return v, changed
  22813. }
  22814. d.depthIncr()
  22815. var mk float64
  22816. var mv float64
  22817. hasLen := containerLen > 0
  22818. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22819. if esep {
  22820. dd.ReadMapElemKey()
  22821. }
  22822. mk = dd.DecodeFloat64()
  22823. if esep {
  22824. dd.ReadMapElemValue()
  22825. }
  22826. if dd.TryDecodeAsNil() {
  22827. if v == nil {
  22828. } else if d.h.DeleteOnNilMapValue {
  22829. delete(v, mk)
  22830. } else {
  22831. v[mk] = 0
  22832. }
  22833. continue
  22834. }
  22835. mv = dd.DecodeFloat64()
  22836. if v != nil {
  22837. v[mk] = mv
  22838. }
  22839. }
  22840. dd.ReadMapEnd()
  22841. d.depthDecr()
  22842. return v, changed
  22843. }
  22844. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  22845. if rv.Kind() == reflect.Ptr {
  22846. vp := rv2i(rv).(*map[float64]bool)
  22847. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d)
  22848. if changed {
  22849. *vp = v
  22850. }
  22851. } else {
  22852. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  22853. }
  22854. }
  22855. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  22856. v, changed := f.DecMapFloat64BoolV(*vp, true, d)
  22857. if changed {
  22858. *vp = v
  22859. }
  22860. }
  22861. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  22862. d *Decoder) (_ map[float64]bool, changed bool) {
  22863. dd, esep := d.d, d.hh.hasElemSeparators()
  22864. containerLen := dd.ReadMapStart()
  22865. if canChange && v == nil {
  22866. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22867. v = make(map[float64]bool, xlen)
  22868. changed = true
  22869. }
  22870. if containerLen == 0 {
  22871. dd.ReadMapEnd()
  22872. return v, changed
  22873. }
  22874. d.depthIncr()
  22875. var mk float64
  22876. var mv bool
  22877. hasLen := containerLen > 0
  22878. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22879. if esep {
  22880. dd.ReadMapElemKey()
  22881. }
  22882. mk = dd.DecodeFloat64()
  22883. if esep {
  22884. dd.ReadMapElemValue()
  22885. }
  22886. if dd.TryDecodeAsNil() {
  22887. if v == nil {
  22888. } else if d.h.DeleteOnNilMapValue {
  22889. delete(v, mk)
  22890. } else {
  22891. v[mk] = false
  22892. }
  22893. continue
  22894. }
  22895. mv = dd.DecodeBool()
  22896. if v != nil {
  22897. v[mk] = mv
  22898. }
  22899. }
  22900. dd.ReadMapEnd()
  22901. d.depthDecr()
  22902. return v, changed
  22903. }
  22904. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  22905. if rv.Kind() == reflect.Ptr {
  22906. vp := rv2i(rv).(*map[uint]interface{})
  22907. v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d)
  22908. if changed {
  22909. *vp = v
  22910. }
  22911. } else {
  22912. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  22913. }
  22914. }
  22915. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  22916. v, changed := f.DecMapUintIntfV(*vp, true, d)
  22917. if changed {
  22918. *vp = v
  22919. }
  22920. }
  22921. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  22922. d *Decoder) (_ map[uint]interface{}, changed bool) {
  22923. dd, esep := d.d, d.hh.hasElemSeparators()
  22924. containerLen := dd.ReadMapStart()
  22925. if canChange && v == nil {
  22926. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22927. v = make(map[uint]interface{}, xlen)
  22928. changed = true
  22929. }
  22930. if containerLen == 0 {
  22931. dd.ReadMapEnd()
  22932. return v, changed
  22933. }
  22934. d.depthIncr()
  22935. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  22936. var mk uint
  22937. var mv interface{}
  22938. hasLen := containerLen > 0
  22939. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22940. if esep {
  22941. dd.ReadMapElemKey()
  22942. }
  22943. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22944. if esep {
  22945. dd.ReadMapElemValue()
  22946. }
  22947. if dd.TryDecodeAsNil() {
  22948. if v == nil {
  22949. } else if d.h.DeleteOnNilMapValue {
  22950. delete(v, mk)
  22951. } else {
  22952. v[mk] = nil
  22953. }
  22954. continue
  22955. }
  22956. if mapGet {
  22957. mv = v[mk]
  22958. } else {
  22959. mv = nil
  22960. }
  22961. d.decode(&mv)
  22962. if v != nil {
  22963. v[mk] = mv
  22964. }
  22965. }
  22966. dd.ReadMapEnd()
  22967. d.depthDecr()
  22968. return v, changed
  22969. }
  22970. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  22971. if rv.Kind() == reflect.Ptr {
  22972. vp := rv2i(rv).(*map[uint]string)
  22973. v, changed := fastpathTV.DecMapUintStringV(*vp, true, d)
  22974. if changed {
  22975. *vp = v
  22976. }
  22977. } else {
  22978. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  22979. }
  22980. }
  22981. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  22982. v, changed := f.DecMapUintStringV(*vp, true, d)
  22983. if changed {
  22984. *vp = v
  22985. }
  22986. }
  22987. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  22988. d *Decoder) (_ map[uint]string, changed bool) {
  22989. dd, esep := d.d, d.hh.hasElemSeparators()
  22990. containerLen := dd.ReadMapStart()
  22991. if canChange && v == nil {
  22992. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22993. v = make(map[uint]string, xlen)
  22994. changed = true
  22995. }
  22996. if containerLen == 0 {
  22997. dd.ReadMapEnd()
  22998. return v, changed
  22999. }
  23000. d.depthIncr()
  23001. var mk uint
  23002. var mv string
  23003. hasLen := containerLen > 0
  23004. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23005. if esep {
  23006. dd.ReadMapElemKey()
  23007. }
  23008. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23009. if esep {
  23010. dd.ReadMapElemValue()
  23011. }
  23012. if dd.TryDecodeAsNil() {
  23013. if v == nil {
  23014. } else if d.h.DeleteOnNilMapValue {
  23015. delete(v, mk)
  23016. } else {
  23017. v[mk] = ""
  23018. }
  23019. continue
  23020. }
  23021. mv = dd.DecodeString()
  23022. if v != nil {
  23023. v[mk] = mv
  23024. }
  23025. }
  23026. dd.ReadMapEnd()
  23027. d.depthDecr()
  23028. return v, changed
  23029. }
  23030. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  23031. if rv.Kind() == reflect.Ptr {
  23032. vp := rv2i(rv).(*map[uint]uint)
  23033. v, changed := fastpathTV.DecMapUintUintV(*vp, true, d)
  23034. if changed {
  23035. *vp = v
  23036. }
  23037. } else {
  23038. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  23039. }
  23040. }
  23041. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  23042. v, changed := f.DecMapUintUintV(*vp, true, d)
  23043. if changed {
  23044. *vp = v
  23045. }
  23046. }
  23047. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  23048. d *Decoder) (_ map[uint]uint, changed bool) {
  23049. dd, esep := d.d, d.hh.hasElemSeparators()
  23050. containerLen := dd.ReadMapStart()
  23051. if canChange && v == nil {
  23052. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23053. v = make(map[uint]uint, xlen)
  23054. changed = true
  23055. }
  23056. if containerLen == 0 {
  23057. dd.ReadMapEnd()
  23058. return v, changed
  23059. }
  23060. d.depthIncr()
  23061. var mk uint
  23062. var mv uint
  23063. hasLen := containerLen > 0
  23064. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23065. if esep {
  23066. dd.ReadMapElemKey()
  23067. }
  23068. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23069. if esep {
  23070. dd.ReadMapElemValue()
  23071. }
  23072. if dd.TryDecodeAsNil() {
  23073. if v == nil {
  23074. } else if d.h.DeleteOnNilMapValue {
  23075. delete(v, mk)
  23076. } else {
  23077. v[mk] = 0
  23078. }
  23079. continue
  23080. }
  23081. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23082. if v != nil {
  23083. v[mk] = mv
  23084. }
  23085. }
  23086. dd.ReadMapEnd()
  23087. d.depthDecr()
  23088. return v, changed
  23089. }
  23090. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  23091. if rv.Kind() == reflect.Ptr {
  23092. vp := rv2i(rv).(*map[uint]uint8)
  23093. v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d)
  23094. if changed {
  23095. *vp = v
  23096. }
  23097. } else {
  23098. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  23099. }
  23100. }
  23101. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  23102. v, changed := f.DecMapUintUint8V(*vp, true, d)
  23103. if changed {
  23104. *vp = v
  23105. }
  23106. }
  23107. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  23108. d *Decoder) (_ map[uint]uint8, changed bool) {
  23109. dd, esep := d.d, d.hh.hasElemSeparators()
  23110. containerLen := dd.ReadMapStart()
  23111. if canChange && v == nil {
  23112. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23113. v = make(map[uint]uint8, xlen)
  23114. changed = true
  23115. }
  23116. if containerLen == 0 {
  23117. dd.ReadMapEnd()
  23118. return v, changed
  23119. }
  23120. d.depthIncr()
  23121. var mk uint
  23122. var mv uint8
  23123. hasLen := containerLen > 0
  23124. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23125. if esep {
  23126. dd.ReadMapElemKey()
  23127. }
  23128. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23129. if esep {
  23130. dd.ReadMapElemValue()
  23131. }
  23132. if dd.TryDecodeAsNil() {
  23133. if v == nil {
  23134. } else if d.h.DeleteOnNilMapValue {
  23135. delete(v, mk)
  23136. } else {
  23137. v[mk] = 0
  23138. }
  23139. continue
  23140. }
  23141. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23142. if v != nil {
  23143. v[mk] = mv
  23144. }
  23145. }
  23146. dd.ReadMapEnd()
  23147. d.depthDecr()
  23148. return v, changed
  23149. }
  23150. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  23151. if rv.Kind() == reflect.Ptr {
  23152. vp := rv2i(rv).(*map[uint]uint16)
  23153. v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d)
  23154. if changed {
  23155. *vp = v
  23156. }
  23157. } else {
  23158. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  23159. }
  23160. }
  23161. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  23162. v, changed := f.DecMapUintUint16V(*vp, true, d)
  23163. if changed {
  23164. *vp = v
  23165. }
  23166. }
  23167. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  23168. d *Decoder) (_ map[uint]uint16, changed bool) {
  23169. dd, esep := d.d, d.hh.hasElemSeparators()
  23170. containerLen := dd.ReadMapStart()
  23171. if canChange && v == nil {
  23172. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23173. v = make(map[uint]uint16, xlen)
  23174. changed = true
  23175. }
  23176. if containerLen == 0 {
  23177. dd.ReadMapEnd()
  23178. return v, changed
  23179. }
  23180. d.depthIncr()
  23181. var mk uint
  23182. var mv uint16
  23183. hasLen := containerLen > 0
  23184. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23185. if esep {
  23186. dd.ReadMapElemKey()
  23187. }
  23188. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23189. if esep {
  23190. dd.ReadMapElemValue()
  23191. }
  23192. if dd.TryDecodeAsNil() {
  23193. if v == nil {
  23194. } else if d.h.DeleteOnNilMapValue {
  23195. delete(v, mk)
  23196. } else {
  23197. v[mk] = 0
  23198. }
  23199. continue
  23200. }
  23201. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23202. if v != nil {
  23203. v[mk] = mv
  23204. }
  23205. }
  23206. dd.ReadMapEnd()
  23207. d.depthDecr()
  23208. return v, changed
  23209. }
  23210. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  23211. if rv.Kind() == reflect.Ptr {
  23212. vp := rv2i(rv).(*map[uint]uint32)
  23213. v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d)
  23214. if changed {
  23215. *vp = v
  23216. }
  23217. } else {
  23218. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  23219. }
  23220. }
  23221. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  23222. v, changed := f.DecMapUintUint32V(*vp, true, d)
  23223. if changed {
  23224. *vp = v
  23225. }
  23226. }
  23227. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  23228. d *Decoder) (_ map[uint]uint32, changed bool) {
  23229. dd, esep := d.d, d.hh.hasElemSeparators()
  23230. containerLen := dd.ReadMapStart()
  23231. if canChange && v == nil {
  23232. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23233. v = make(map[uint]uint32, xlen)
  23234. changed = true
  23235. }
  23236. if containerLen == 0 {
  23237. dd.ReadMapEnd()
  23238. return v, changed
  23239. }
  23240. d.depthIncr()
  23241. var mk uint
  23242. var mv uint32
  23243. hasLen := containerLen > 0
  23244. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23245. if esep {
  23246. dd.ReadMapElemKey()
  23247. }
  23248. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23249. if esep {
  23250. dd.ReadMapElemValue()
  23251. }
  23252. if dd.TryDecodeAsNil() {
  23253. if v == nil {
  23254. } else if d.h.DeleteOnNilMapValue {
  23255. delete(v, mk)
  23256. } else {
  23257. v[mk] = 0
  23258. }
  23259. continue
  23260. }
  23261. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  23262. if v != nil {
  23263. v[mk] = mv
  23264. }
  23265. }
  23266. dd.ReadMapEnd()
  23267. d.depthDecr()
  23268. return v, changed
  23269. }
  23270. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  23271. if rv.Kind() == reflect.Ptr {
  23272. vp := rv2i(rv).(*map[uint]uint64)
  23273. v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d)
  23274. if changed {
  23275. *vp = v
  23276. }
  23277. } else {
  23278. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  23279. }
  23280. }
  23281. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  23282. v, changed := f.DecMapUintUint64V(*vp, true, d)
  23283. if changed {
  23284. *vp = v
  23285. }
  23286. }
  23287. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  23288. d *Decoder) (_ map[uint]uint64, changed bool) {
  23289. dd, esep := d.d, d.hh.hasElemSeparators()
  23290. containerLen := dd.ReadMapStart()
  23291. if canChange && v == nil {
  23292. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23293. v = make(map[uint]uint64, xlen)
  23294. changed = true
  23295. }
  23296. if containerLen == 0 {
  23297. dd.ReadMapEnd()
  23298. return v, changed
  23299. }
  23300. d.depthIncr()
  23301. var mk uint
  23302. var mv uint64
  23303. hasLen := containerLen > 0
  23304. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23305. if esep {
  23306. dd.ReadMapElemKey()
  23307. }
  23308. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23309. if esep {
  23310. dd.ReadMapElemValue()
  23311. }
  23312. if dd.TryDecodeAsNil() {
  23313. if v == nil {
  23314. } else if d.h.DeleteOnNilMapValue {
  23315. delete(v, mk)
  23316. } else {
  23317. v[mk] = 0
  23318. }
  23319. continue
  23320. }
  23321. mv = dd.DecodeUint64()
  23322. if v != nil {
  23323. v[mk] = mv
  23324. }
  23325. }
  23326. dd.ReadMapEnd()
  23327. d.depthDecr()
  23328. return v, changed
  23329. }
  23330. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  23331. if rv.Kind() == reflect.Ptr {
  23332. vp := rv2i(rv).(*map[uint]uintptr)
  23333. v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d)
  23334. if changed {
  23335. *vp = v
  23336. }
  23337. } else {
  23338. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  23339. }
  23340. }
  23341. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  23342. v, changed := f.DecMapUintUintptrV(*vp, true, d)
  23343. if changed {
  23344. *vp = v
  23345. }
  23346. }
  23347. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  23348. d *Decoder) (_ map[uint]uintptr, changed bool) {
  23349. dd, esep := d.d, d.hh.hasElemSeparators()
  23350. containerLen := dd.ReadMapStart()
  23351. if canChange && v == nil {
  23352. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23353. v = make(map[uint]uintptr, xlen)
  23354. changed = true
  23355. }
  23356. if containerLen == 0 {
  23357. dd.ReadMapEnd()
  23358. return v, changed
  23359. }
  23360. d.depthIncr()
  23361. var mk uint
  23362. var mv uintptr
  23363. hasLen := containerLen > 0
  23364. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23365. if esep {
  23366. dd.ReadMapElemKey()
  23367. }
  23368. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23369. if esep {
  23370. dd.ReadMapElemValue()
  23371. }
  23372. if dd.TryDecodeAsNil() {
  23373. if v == nil {
  23374. } else if d.h.DeleteOnNilMapValue {
  23375. delete(v, mk)
  23376. } else {
  23377. v[mk] = 0
  23378. }
  23379. continue
  23380. }
  23381. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23382. if v != nil {
  23383. v[mk] = mv
  23384. }
  23385. }
  23386. dd.ReadMapEnd()
  23387. d.depthDecr()
  23388. return v, changed
  23389. }
  23390. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  23391. if rv.Kind() == reflect.Ptr {
  23392. vp := rv2i(rv).(*map[uint]int)
  23393. v, changed := fastpathTV.DecMapUintIntV(*vp, true, d)
  23394. if changed {
  23395. *vp = v
  23396. }
  23397. } else {
  23398. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  23399. }
  23400. }
  23401. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  23402. v, changed := f.DecMapUintIntV(*vp, true, d)
  23403. if changed {
  23404. *vp = v
  23405. }
  23406. }
  23407. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  23408. d *Decoder) (_ map[uint]int, changed bool) {
  23409. dd, esep := d.d, d.hh.hasElemSeparators()
  23410. containerLen := dd.ReadMapStart()
  23411. if canChange && v == nil {
  23412. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23413. v = make(map[uint]int, xlen)
  23414. changed = true
  23415. }
  23416. if containerLen == 0 {
  23417. dd.ReadMapEnd()
  23418. return v, changed
  23419. }
  23420. d.depthIncr()
  23421. var mk uint
  23422. var mv int
  23423. hasLen := containerLen > 0
  23424. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23425. if esep {
  23426. dd.ReadMapElemKey()
  23427. }
  23428. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23429. if esep {
  23430. dd.ReadMapElemValue()
  23431. }
  23432. if dd.TryDecodeAsNil() {
  23433. if v == nil {
  23434. } else if d.h.DeleteOnNilMapValue {
  23435. delete(v, mk)
  23436. } else {
  23437. v[mk] = 0
  23438. }
  23439. continue
  23440. }
  23441. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  23442. if v != nil {
  23443. v[mk] = mv
  23444. }
  23445. }
  23446. dd.ReadMapEnd()
  23447. d.depthDecr()
  23448. return v, changed
  23449. }
  23450. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  23451. if rv.Kind() == reflect.Ptr {
  23452. vp := rv2i(rv).(*map[uint]int8)
  23453. v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d)
  23454. if changed {
  23455. *vp = v
  23456. }
  23457. } else {
  23458. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  23459. }
  23460. }
  23461. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  23462. v, changed := f.DecMapUintInt8V(*vp, true, d)
  23463. if changed {
  23464. *vp = v
  23465. }
  23466. }
  23467. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  23468. d *Decoder) (_ map[uint]int8, changed bool) {
  23469. dd, esep := d.d, d.hh.hasElemSeparators()
  23470. containerLen := dd.ReadMapStart()
  23471. if canChange && v == nil {
  23472. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23473. v = make(map[uint]int8, xlen)
  23474. changed = true
  23475. }
  23476. if containerLen == 0 {
  23477. dd.ReadMapEnd()
  23478. return v, changed
  23479. }
  23480. d.depthIncr()
  23481. var mk uint
  23482. var mv int8
  23483. hasLen := containerLen > 0
  23484. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23485. if esep {
  23486. dd.ReadMapElemKey()
  23487. }
  23488. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23489. if esep {
  23490. dd.ReadMapElemValue()
  23491. }
  23492. if dd.TryDecodeAsNil() {
  23493. if v == nil {
  23494. } else if d.h.DeleteOnNilMapValue {
  23495. delete(v, mk)
  23496. } else {
  23497. v[mk] = 0
  23498. }
  23499. continue
  23500. }
  23501. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  23502. if v != nil {
  23503. v[mk] = mv
  23504. }
  23505. }
  23506. dd.ReadMapEnd()
  23507. d.depthDecr()
  23508. return v, changed
  23509. }
  23510. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  23511. if rv.Kind() == reflect.Ptr {
  23512. vp := rv2i(rv).(*map[uint]int16)
  23513. v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d)
  23514. if changed {
  23515. *vp = v
  23516. }
  23517. } else {
  23518. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  23519. }
  23520. }
  23521. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  23522. v, changed := f.DecMapUintInt16V(*vp, true, d)
  23523. if changed {
  23524. *vp = v
  23525. }
  23526. }
  23527. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  23528. d *Decoder) (_ map[uint]int16, changed bool) {
  23529. dd, esep := d.d, d.hh.hasElemSeparators()
  23530. containerLen := dd.ReadMapStart()
  23531. if canChange && v == nil {
  23532. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23533. v = make(map[uint]int16, xlen)
  23534. changed = true
  23535. }
  23536. if containerLen == 0 {
  23537. dd.ReadMapEnd()
  23538. return v, changed
  23539. }
  23540. d.depthIncr()
  23541. var mk uint
  23542. var mv int16
  23543. hasLen := containerLen > 0
  23544. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23545. if esep {
  23546. dd.ReadMapElemKey()
  23547. }
  23548. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23549. if esep {
  23550. dd.ReadMapElemValue()
  23551. }
  23552. if dd.TryDecodeAsNil() {
  23553. if v == nil {
  23554. } else if d.h.DeleteOnNilMapValue {
  23555. delete(v, mk)
  23556. } else {
  23557. v[mk] = 0
  23558. }
  23559. continue
  23560. }
  23561. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  23562. if v != nil {
  23563. v[mk] = mv
  23564. }
  23565. }
  23566. dd.ReadMapEnd()
  23567. d.depthDecr()
  23568. return v, changed
  23569. }
  23570. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  23571. if rv.Kind() == reflect.Ptr {
  23572. vp := rv2i(rv).(*map[uint]int32)
  23573. v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d)
  23574. if changed {
  23575. *vp = v
  23576. }
  23577. } else {
  23578. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  23579. }
  23580. }
  23581. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  23582. v, changed := f.DecMapUintInt32V(*vp, true, d)
  23583. if changed {
  23584. *vp = v
  23585. }
  23586. }
  23587. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  23588. d *Decoder) (_ map[uint]int32, changed bool) {
  23589. dd, esep := d.d, d.hh.hasElemSeparators()
  23590. containerLen := dd.ReadMapStart()
  23591. if canChange && v == nil {
  23592. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23593. v = make(map[uint]int32, xlen)
  23594. changed = true
  23595. }
  23596. if containerLen == 0 {
  23597. dd.ReadMapEnd()
  23598. return v, changed
  23599. }
  23600. d.depthIncr()
  23601. var mk uint
  23602. var mv int32
  23603. hasLen := containerLen > 0
  23604. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23605. if esep {
  23606. dd.ReadMapElemKey()
  23607. }
  23608. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23609. if esep {
  23610. dd.ReadMapElemValue()
  23611. }
  23612. if dd.TryDecodeAsNil() {
  23613. if v == nil {
  23614. } else if d.h.DeleteOnNilMapValue {
  23615. delete(v, mk)
  23616. } else {
  23617. v[mk] = 0
  23618. }
  23619. continue
  23620. }
  23621. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  23622. if v != nil {
  23623. v[mk] = mv
  23624. }
  23625. }
  23626. dd.ReadMapEnd()
  23627. d.depthDecr()
  23628. return v, changed
  23629. }
  23630. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  23631. if rv.Kind() == reflect.Ptr {
  23632. vp := rv2i(rv).(*map[uint]int64)
  23633. v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d)
  23634. if changed {
  23635. *vp = v
  23636. }
  23637. } else {
  23638. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  23639. }
  23640. }
  23641. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  23642. v, changed := f.DecMapUintInt64V(*vp, true, d)
  23643. if changed {
  23644. *vp = v
  23645. }
  23646. }
  23647. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  23648. d *Decoder) (_ map[uint]int64, changed bool) {
  23649. dd, esep := d.d, d.hh.hasElemSeparators()
  23650. containerLen := dd.ReadMapStart()
  23651. if canChange && v == nil {
  23652. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23653. v = make(map[uint]int64, xlen)
  23654. changed = true
  23655. }
  23656. if containerLen == 0 {
  23657. dd.ReadMapEnd()
  23658. return v, changed
  23659. }
  23660. d.depthIncr()
  23661. var mk uint
  23662. var mv int64
  23663. hasLen := containerLen > 0
  23664. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23665. if esep {
  23666. dd.ReadMapElemKey()
  23667. }
  23668. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23669. if esep {
  23670. dd.ReadMapElemValue()
  23671. }
  23672. if dd.TryDecodeAsNil() {
  23673. if v == nil {
  23674. } else if d.h.DeleteOnNilMapValue {
  23675. delete(v, mk)
  23676. } else {
  23677. v[mk] = 0
  23678. }
  23679. continue
  23680. }
  23681. mv = dd.DecodeInt64()
  23682. if v != nil {
  23683. v[mk] = mv
  23684. }
  23685. }
  23686. dd.ReadMapEnd()
  23687. d.depthDecr()
  23688. return v, changed
  23689. }
  23690. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  23691. if rv.Kind() == reflect.Ptr {
  23692. vp := rv2i(rv).(*map[uint]float32)
  23693. v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d)
  23694. if changed {
  23695. *vp = v
  23696. }
  23697. } else {
  23698. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  23699. }
  23700. }
  23701. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  23702. v, changed := f.DecMapUintFloat32V(*vp, true, d)
  23703. if changed {
  23704. *vp = v
  23705. }
  23706. }
  23707. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  23708. d *Decoder) (_ map[uint]float32, changed bool) {
  23709. dd, esep := d.d, d.hh.hasElemSeparators()
  23710. containerLen := dd.ReadMapStart()
  23711. if canChange && v == nil {
  23712. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23713. v = make(map[uint]float32, xlen)
  23714. changed = true
  23715. }
  23716. if containerLen == 0 {
  23717. dd.ReadMapEnd()
  23718. return v, changed
  23719. }
  23720. d.depthIncr()
  23721. var mk uint
  23722. var mv float32
  23723. hasLen := containerLen > 0
  23724. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23725. if esep {
  23726. dd.ReadMapElemKey()
  23727. }
  23728. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23729. if esep {
  23730. dd.ReadMapElemValue()
  23731. }
  23732. if dd.TryDecodeAsNil() {
  23733. if v == nil {
  23734. } else if d.h.DeleteOnNilMapValue {
  23735. delete(v, mk)
  23736. } else {
  23737. v[mk] = 0
  23738. }
  23739. continue
  23740. }
  23741. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  23742. if v != nil {
  23743. v[mk] = mv
  23744. }
  23745. }
  23746. dd.ReadMapEnd()
  23747. d.depthDecr()
  23748. return v, changed
  23749. }
  23750. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  23751. if rv.Kind() == reflect.Ptr {
  23752. vp := rv2i(rv).(*map[uint]float64)
  23753. v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d)
  23754. if changed {
  23755. *vp = v
  23756. }
  23757. } else {
  23758. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  23759. }
  23760. }
  23761. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  23762. v, changed := f.DecMapUintFloat64V(*vp, true, d)
  23763. if changed {
  23764. *vp = v
  23765. }
  23766. }
  23767. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  23768. d *Decoder) (_ map[uint]float64, changed bool) {
  23769. dd, esep := d.d, d.hh.hasElemSeparators()
  23770. containerLen := dd.ReadMapStart()
  23771. if canChange && v == nil {
  23772. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23773. v = make(map[uint]float64, xlen)
  23774. changed = true
  23775. }
  23776. if containerLen == 0 {
  23777. dd.ReadMapEnd()
  23778. return v, changed
  23779. }
  23780. d.depthIncr()
  23781. var mk uint
  23782. var mv float64
  23783. hasLen := containerLen > 0
  23784. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23785. if esep {
  23786. dd.ReadMapElemKey()
  23787. }
  23788. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23789. if esep {
  23790. dd.ReadMapElemValue()
  23791. }
  23792. if dd.TryDecodeAsNil() {
  23793. if v == nil {
  23794. } else if d.h.DeleteOnNilMapValue {
  23795. delete(v, mk)
  23796. } else {
  23797. v[mk] = 0
  23798. }
  23799. continue
  23800. }
  23801. mv = dd.DecodeFloat64()
  23802. if v != nil {
  23803. v[mk] = mv
  23804. }
  23805. }
  23806. dd.ReadMapEnd()
  23807. d.depthDecr()
  23808. return v, changed
  23809. }
  23810. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  23811. if rv.Kind() == reflect.Ptr {
  23812. vp := rv2i(rv).(*map[uint]bool)
  23813. v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d)
  23814. if changed {
  23815. *vp = v
  23816. }
  23817. } else {
  23818. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  23819. }
  23820. }
  23821. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  23822. v, changed := f.DecMapUintBoolV(*vp, true, d)
  23823. if changed {
  23824. *vp = v
  23825. }
  23826. }
  23827. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  23828. d *Decoder) (_ map[uint]bool, changed bool) {
  23829. dd, esep := d.d, d.hh.hasElemSeparators()
  23830. containerLen := dd.ReadMapStart()
  23831. if canChange && v == nil {
  23832. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23833. v = make(map[uint]bool, xlen)
  23834. changed = true
  23835. }
  23836. if containerLen == 0 {
  23837. dd.ReadMapEnd()
  23838. return v, changed
  23839. }
  23840. d.depthIncr()
  23841. var mk uint
  23842. var mv bool
  23843. hasLen := containerLen > 0
  23844. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23845. if esep {
  23846. dd.ReadMapElemKey()
  23847. }
  23848. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23849. if esep {
  23850. dd.ReadMapElemValue()
  23851. }
  23852. if dd.TryDecodeAsNil() {
  23853. if v == nil {
  23854. } else if d.h.DeleteOnNilMapValue {
  23855. delete(v, mk)
  23856. } else {
  23857. v[mk] = false
  23858. }
  23859. continue
  23860. }
  23861. mv = dd.DecodeBool()
  23862. if v != nil {
  23863. v[mk] = mv
  23864. }
  23865. }
  23866. dd.ReadMapEnd()
  23867. d.depthDecr()
  23868. return v, changed
  23869. }
  23870. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  23871. if rv.Kind() == reflect.Ptr {
  23872. vp := rv2i(rv).(*map[uint8]interface{})
  23873. v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d)
  23874. if changed {
  23875. *vp = v
  23876. }
  23877. } else {
  23878. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  23879. }
  23880. }
  23881. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  23882. v, changed := f.DecMapUint8IntfV(*vp, true, d)
  23883. if changed {
  23884. *vp = v
  23885. }
  23886. }
  23887. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  23888. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  23889. dd, esep := d.d, d.hh.hasElemSeparators()
  23890. containerLen := dd.ReadMapStart()
  23891. if canChange && v == nil {
  23892. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  23893. v = make(map[uint8]interface{}, xlen)
  23894. changed = true
  23895. }
  23896. if containerLen == 0 {
  23897. dd.ReadMapEnd()
  23898. return v, changed
  23899. }
  23900. d.depthIncr()
  23901. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  23902. var mk uint8
  23903. var mv interface{}
  23904. hasLen := containerLen > 0
  23905. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23906. if esep {
  23907. dd.ReadMapElemKey()
  23908. }
  23909. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23910. if esep {
  23911. dd.ReadMapElemValue()
  23912. }
  23913. if dd.TryDecodeAsNil() {
  23914. if v == nil {
  23915. } else if d.h.DeleteOnNilMapValue {
  23916. delete(v, mk)
  23917. } else {
  23918. v[mk] = nil
  23919. }
  23920. continue
  23921. }
  23922. if mapGet {
  23923. mv = v[mk]
  23924. } else {
  23925. mv = nil
  23926. }
  23927. d.decode(&mv)
  23928. if v != nil {
  23929. v[mk] = mv
  23930. }
  23931. }
  23932. dd.ReadMapEnd()
  23933. d.depthDecr()
  23934. return v, changed
  23935. }
  23936. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  23937. if rv.Kind() == reflect.Ptr {
  23938. vp := rv2i(rv).(*map[uint8]string)
  23939. v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d)
  23940. if changed {
  23941. *vp = v
  23942. }
  23943. } else {
  23944. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  23945. }
  23946. }
  23947. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  23948. v, changed := f.DecMapUint8StringV(*vp, true, d)
  23949. if changed {
  23950. *vp = v
  23951. }
  23952. }
  23953. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  23954. d *Decoder) (_ map[uint8]string, changed bool) {
  23955. dd, esep := d.d, d.hh.hasElemSeparators()
  23956. containerLen := dd.ReadMapStart()
  23957. if canChange && v == nil {
  23958. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  23959. v = make(map[uint8]string, xlen)
  23960. changed = true
  23961. }
  23962. if containerLen == 0 {
  23963. dd.ReadMapEnd()
  23964. return v, changed
  23965. }
  23966. d.depthIncr()
  23967. var mk uint8
  23968. var mv string
  23969. hasLen := containerLen > 0
  23970. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23971. if esep {
  23972. dd.ReadMapElemKey()
  23973. }
  23974. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23975. if esep {
  23976. dd.ReadMapElemValue()
  23977. }
  23978. if dd.TryDecodeAsNil() {
  23979. if v == nil {
  23980. } else if d.h.DeleteOnNilMapValue {
  23981. delete(v, mk)
  23982. } else {
  23983. v[mk] = ""
  23984. }
  23985. continue
  23986. }
  23987. mv = dd.DecodeString()
  23988. if v != nil {
  23989. v[mk] = mv
  23990. }
  23991. }
  23992. dd.ReadMapEnd()
  23993. d.depthDecr()
  23994. return v, changed
  23995. }
  23996. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  23997. if rv.Kind() == reflect.Ptr {
  23998. vp := rv2i(rv).(*map[uint8]uint)
  23999. v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d)
  24000. if changed {
  24001. *vp = v
  24002. }
  24003. } else {
  24004. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  24005. }
  24006. }
  24007. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  24008. v, changed := f.DecMapUint8UintV(*vp, true, d)
  24009. if changed {
  24010. *vp = v
  24011. }
  24012. }
  24013. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  24014. d *Decoder) (_ map[uint8]uint, changed bool) {
  24015. dd, esep := d.d, d.hh.hasElemSeparators()
  24016. containerLen := dd.ReadMapStart()
  24017. if canChange && v == nil {
  24018. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24019. v = make(map[uint8]uint, xlen)
  24020. changed = true
  24021. }
  24022. if containerLen == 0 {
  24023. dd.ReadMapEnd()
  24024. return v, changed
  24025. }
  24026. d.depthIncr()
  24027. var mk uint8
  24028. var mv uint
  24029. hasLen := containerLen > 0
  24030. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24031. if esep {
  24032. dd.ReadMapElemKey()
  24033. }
  24034. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24035. if esep {
  24036. dd.ReadMapElemValue()
  24037. }
  24038. if dd.TryDecodeAsNil() {
  24039. if v == nil {
  24040. } else if d.h.DeleteOnNilMapValue {
  24041. delete(v, mk)
  24042. } else {
  24043. v[mk] = 0
  24044. }
  24045. continue
  24046. }
  24047. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24048. if v != nil {
  24049. v[mk] = mv
  24050. }
  24051. }
  24052. dd.ReadMapEnd()
  24053. d.depthDecr()
  24054. return v, changed
  24055. }
  24056. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  24057. if rv.Kind() == reflect.Ptr {
  24058. vp := rv2i(rv).(*map[uint8]uint8)
  24059. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d)
  24060. if changed {
  24061. *vp = v
  24062. }
  24063. } else {
  24064. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  24065. }
  24066. }
  24067. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  24068. v, changed := f.DecMapUint8Uint8V(*vp, true, d)
  24069. if changed {
  24070. *vp = v
  24071. }
  24072. }
  24073. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  24074. d *Decoder) (_ map[uint8]uint8, changed bool) {
  24075. dd, esep := d.d, d.hh.hasElemSeparators()
  24076. containerLen := dd.ReadMapStart()
  24077. if canChange && v == nil {
  24078. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24079. v = make(map[uint8]uint8, xlen)
  24080. changed = true
  24081. }
  24082. if containerLen == 0 {
  24083. dd.ReadMapEnd()
  24084. return v, changed
  24085. }
  24086. d.depthIncr()
  24087. var mk uint8
  24088. var mv uint8
  24089. hasLen := containerLen > 0
  24090. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24091. if esep {
  24092. dd.ReadMapElemKey()
  24093. }
  24094. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24095. if esep {
  24096. dd.ReadMapElemValue()
  24097. }
  24098. if dd.TryDecodeAsNil() {
  24099. if v == nil {
  24100. } else if d.h.DeleteOnNilMapValue {
  24101. delete(v, mk)
  24102. } else {
  24103. v[mk] = 0
  24104. }
  24105. continue
  24106. }
  24107. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24108. if v != nil {
  24109. v[mk] = mv
  24110. }
  24111. }
  24112. dd.ReadMapEnd()
  24113. d.depthDecr()
  24114. return v, changed
  24115. }
  24116. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  24117. if rv.Kind() == reflect.Ptr {
  24118. vp := rv2i(rv).(*map[uint8]uint16)
  24119. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d)
  24120. if changed {
  24121. *vp = v
  24122. }
  24123. } else {
  24124. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  24125. }
  24126. }
  24127. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  24128. v, changed := f.DecMapUint8Uint16V(*vp, true, d)
  24129. if changed {
  24130. *vp = v
  24131. }
  24132. }
  24133. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  24134. d *Decoder) (_ map[uint8]uint16, changed bool) {
  24135. dd, esep := d.d, d.hh.hasElemSeparators()
  24136. containerLen := dd.ReadMapStart()
  24137. if canChange && v == nil {
  24138. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24139. v = make(map[uint8]uint16, xlen)
  24140. changed = true
  24141. }
  24142. if containerLen == 0 {
  24143. dd.ReadMapEnd()
  24144. return v, changed
  24145. }
  24146. d.depthIncr()
  24147. var mk uint8
  24148. var mv uint16
  24149. hasLen := containerLen > 0
  24150. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24151. if esep {
  24152. dd.ReadMapElemKey()
  24153. }
  24154. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24155. if esep {
  24156. dd.ReadMapElemValue()
  24157. }
  24158. if dd.TryDecodeAsNil() {
  24159. if v == nil {
  24160. } else if d.h.DeleteOnNilMapValue {
  24161. delete(v, mk)
  24162. } else {
  24163. v[mk] = 0
  24164. }
  24165. continue
  24166. }
  24167. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24168. if v != nil {
  24169. v[mk] = mv
  24170. }
  24171. }
  24172. dd.ReadMapEnd()
  24173. d.depthDecr()
  24174. return v, changed
  24175. }
  24176. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  24177. if rv.Kind() == reflect.Ptr {
  24178. vp := rv2i(rv).(*map[uint8]uint32)
  24179. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d)
  24180. if changed {
  24181. *vp = v
  24182. }
  24183. } else {
  24184. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  24185. }
  24186. }
  24187. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  24188. v, changed := f.DecMapUint8Uint32V(*vp, true, d)
  24189. if changed {
  24190. *vp = v
  24191. }
  24192. }
  24193. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  24194. d *Decoder) (_ map[uint8]uint32, changed bool) {
  24195. dd, esep := d.d, d.hh.hasElemSeparators()
  24196. containerLen := dd.ReadMapStart()
  24197. if canChange && v == nil {
  24198. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24199. v = make(map[uint8]uint32, xlen)
  24200. changed = true
  24201. }
  24202. if containerLen == 0 {
  24203. dd.ReadMapEnd()
  24204. return v, changed
  24205. }
  24206. d.depthIncr()
  24207. var mk uint8
  24208. var mv uint32
  24209. hasLen := containerLen > 0
  24210. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24211. if esep {
  24212. dd.ReadMapElemKey()
  24213. }
  24214. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24215. if esep {
  24216. dd.ReadMapElemValue()
  24217. }
  24218. if dd.TryDecodeAsNil() {
  24219. if v == nil {
  24220. } else if d.h.DeleteOnNilMapValue {
  24221. delete(v, mk)
  24222. } else {
  24223. v[mk] = 0
  24224. }
  24225. continue
  24226. }
  24227. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24228. if v != nil {
  24229. v[mk] = mv
  24230. }
  24231. }
  24232. dd.ReadMapEnd()
  24233. d.depthDecr()
  24234. return v, changed
  24235. }
  24236. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  24237. if rv.Kind() == reflect.Ptr {
  24238. vp := rv2i(rv).(*map[uint8]uint64)
  24239. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d)
  24240. if changed {
  24241. *vp = v
  24242. }
  24243. } else {
  24244. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  24245. }
  24246. }
  24247. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  24248. v, changed := f.DecMapUint8Uint64V(*vp, true, d)
  24249. if changed {
  24250. *vp = v
  24251. }
  24252. }
  24253. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  24254. d *Decoder) (_ map[uint8]uint64, changed bool) {
  24255. dd, esep := d.d, d.hh.hasElemSeparators()
  24256. containerLen := dd.ReadMapStart()
  24257. if canChange && v == nil {
  24258. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24259. v = make(map[uint8]uint64, xlen)
  24260. changed = true
  24261. }
  24262. if containerLen == 0 {
  24263. dd.ReadMapEnd()
  24264. return v, changed
  24265. }
  24266. d.depthIncr()
  24267. var mk uint8
  24268. var mv uint64
  24269. hasLen := containerLen > 0
  24270. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24271. if esep {
  24272. dd.ReadMapElemKey()
  24273. }
  24274. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24275. if esep {
  24276. dd.ReadMapElemValue()
  24277. }
  24278. if dd.TryDecodeAsNil() {
  24279. if v == nil {
  24280. } else if d.h.DeleteOnNilMapValue {
  24281. delete(v, mk)
  24282. } else {
  24283. v[mk] = 0
  24284. }
  24285. continue
  24286. }
  24287. mv = dd.DecodeUint64()
  24288. if v != nil {
  24289. v[mk] = mv
  24290. }
  24291. }
  24292. dd.ReadMapEnd()
  24293. d.depthDecr()
  24294. return v, changed
  24295. }
  24296. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  24297. if rv.Kind() == reflect.Ptr {
  24298. vp := rv2i(rv).(*map[uint8]uintptr)
  24299. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d)
  24300. if changed {
  24301. *vp = v
  24302. }
  24303. } else {
  24304. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  24305. }
  24306. }
  24307. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  24308. v, changed := f.DecMapUint8UintptrV(*vp, true, d)
  24309. if changed {
  24310. *vp = v
  24311. }
  24312. }
  24313. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  24314. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  24315. dd, esep := d.d, d.hh.hasElemSeparators()
  24316. containerLen := dd.ReadMapStart()
  24317. if canChange && v == nil {
  24318. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24319. v = make(map[uint8]uintptr, xlen)
  24320. changed = true
  24321. }
  24322. if containerLen == 0 {
  24323. dd.ReadMapEnd()
  24324. return v, changed
  24325. }
  24326. d.depthIncr()
  24327. var mk uint8
  24328. var mv uintptr
  24329. hasLen := containerLen > 0
  24330. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24331. if esep {
  24332. dd.ReadMapElemKey()
  24333. }
  24334. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24335. if esep {
  24336. dd.ReadMapElemValue()
  24337. }
  24338. if dd.TryDecodeAsNil() {
  24339. if v == nil {
  24340. } else if d.h.DeleteOnNilMapValue {
  24341. delete(v, mk)
  24342. } else {
  24343. v[mk] = 0
  24344. }
  24345. continue
  24346. }
  24347. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24348. if v != nil {
  24349. v[mk] = mv
  24350. }
  24351. }
  24352. dd.ReadMapEnd()
  24353. d.depthDecr()
  24354. return v, changed
  24355. }
  24356. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  24357. if rv.Kind() == reflect.Ptr {
  24358. vp := rv2i(rv).(*map[uint8]int)
  24359. v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d)
  24360. if changed {
  24361. *vp = v
  24362. }
  24363. } else {
  24364. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  24365. }
  24366. }
  24367. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  24368. v, changed := f.DecMapUint8IntV(*vp, true, d)
  24369. if changed {
  24370. *vp = v
  24371. }
  24372. }
  24373. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  24374. d *Decoder) (_ map[uint8]int, changed bool) {
  24375. dd, esep := d.d, d.hh.hasElemSeparators()
  24376. containerLen := dd.ReadMapStart()
  24377. if canChange && v == nil {
  24378. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24379. v = make(map[uint8]int, xlen)
  24380. changed = true
  24381. }
  24382. if containerLen == 0 {
  24383. dd.ReadMapEnd()
  24384. return v, changed
  24385. }
  24386. d.depthIncr()
  24387. var mk uint8
  24388. var mv int
  24389. hasLen := containerLen > 0
  24390. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24391. if esep {
  24392. dd.ReadMapElemKey()
  24393. }
  24394. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24395. if esep {
  24396. dd.ReadMapElemValue()
  24397. }
  24398. if dd.TryDecodeAsNil() {
  24399. if v == nil {
  24400. } else if d.h.DeleteOnNilMapValue {
  24401. delete(v, mk)
  24402. } else {
  24403. v[mk] = 0
  24404. }
  24405. continue
  24406. }
  24407. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  24408. if v != nil {
  24409. v[mk] = mv
  24410. }
  24411. }
  24412. dd.ReadMapEnd()
  24413. d.depthDecr()
  24414. return v, changed
  24415. }
  24416. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  24417. if rv.Kind() == reflect.Ptr {
  24418. vp := rv2i(rv).(*map[uint8]int8)
  24419. v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d)
  24420. if changed {
  24421. *vp = v
  24422. }
  24423. } else {
  24424. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  24425. }
  24426. }
  24427. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  24428. v, changed := f.DecMapUint8Int8V(*vp, true, d)
  24429. if changed {
  24430. *vp = v
  24431. }
  24432. }
  24433. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  24434. d *Decoder) (_ map[uint8]int8, changed bool) {
  24435. dd, esep := d.d, d.hh.hasElemSeparators()
  24436. containerLen := dd.ReadMapStart()
  24437. if canChange && v == nil {
  24438. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24439. v = make(map[uint8]int8, xlen)
  24440. changed = true
  24441. }
  24442. if containerLen == 0 {
  24443. dd.ReadMapEnd()
  24444. return v, changed
  24445. }
  24446. d.depthIncr()
  24447. var mk uint8
  24448. var mv int8
  24449. hasLen := containerLen > 0
  24450. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24451. if esep {
  24452. dd.ReadMapElemKey()
  24453. }
  24454. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24455. if esep {
  24456. dd.ReadMapElemValue()
  24457. }
  24458. if dd.TryDecodeAsNil() {
  24459. if v == nil {
  24460. } else if d.h.DeleteOnNilMapValue {
  24461. delete(v, mk)
  24462. } else {
  24463. v[mk] = 0
  24464. }
  24465. continue
  24466. }
  24467. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  24468. if v != nil {
  24469. v[mk] = mv
  24470. }
  24471. }
  24472. dd.ReadMapEnd()
  24473. d.depthDecr()
  24474. return v, changed
  24475. }
  24476. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  24477. if rv.Kind() == reflect.Ptr {
  24478. vp := rv2i(rv).(*map[uint8]int16)
  24479. v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d)
  24480. if changed {
  24481. *vp = v
  24482. }
  24483. } else {
  24484. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  24485. }
  24486. }
  24487. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  24488. v, changed := f.DecMapUint8Int16V(*vp, true, d)
  24489. if changed {
  24490. *vp = v
  24491. }
  24492. }
  24493. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  24494. d *Decoder) (_ map[uint8]int16, changed bool) {
  24495. dd, esep := d.d, d.hh.hasElemSeparators()
  24496. containerLen := dd.ReadMapStart()
  24497. if canChange && v == nil {
  24498. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24499. v = make(map[uint8]int16, xlen)
  24500. changed = true
  24501. }
  24502. if containerLen == 0 {
  24503. dd.ReadMapEnd()
  24504. return v, changed
  24505. }
  24506. d.depthIncr()
  24507. var mk uint8
  24508. var mv int16
  24509. hasLen := containerLen > 0
  24510. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24511. if esep {
  24512. dd.ReadMapElemKey()
  24513. }
  24514. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24515. if esep {
  24516. dd.ReadMapElemValue()
  24517. }
  24518. if dd.TryDecodeAsNil() {
  24519. if v == nil {
  24520. } else if d.h.DeleteOnNilMapValue {
  24521. delete(v, mk)
  24522. } else {
  24523. v[mk] = 0
  24524. }
  24525. continue
  24526. }
  24527. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  24528. if v != nil {
  24529. v[mk] = mv
  24530. }
  24531. }
  24532. dd.ReadMapEnd()
  24533. d.depthDecr()
  24534. return v, changed
  24535. }
  24536. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  24537. if rv.Kind() == reflect.Ptr {
  24538. vp := rv2i(rv).(*map[uint8]int32)
  24539. v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d)
  24540. if changed {
  24541. *vp = v
  24542. }
  24543. } else {
  24544. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  24545. }
  24546. }
  24547. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  24548. v, changed := f.DecMapUint8Int32V(*vp, true, d)
  24549. if changed {
  24550. *vp = v
  24551. }
  24552. }
  24553. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  24554. d *Decoder) (_ map[uint8]int32, changed bool) {
  24555. dd, esep := d.d, d.hh.hasElemSeparators()
  24556. containerLen := dd.ReadMapStart()
  24557. if canChange && v == nil {
  24558. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24559. v = make(map[uint8]int32, xlen)
  24560. changed = true
  24561. }
  24562. if containerLen == 0 {
  24563. dd.ReadMapEnd()
  24564. return v, changed
  24565. }
  24566. d.depthIncr()
  24567. var mk uint8
  24568. var mv int32
  24569. hasLen := containerLen > 0
  24570. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24571. if esep {
  24572. dd.ReadMapElemKey()
  24573. }
  24574. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24575. if esep {
  24576. dd.ReadMapElemValue()
  24577. }
  24578. if dd.TryDecodeAsNil() {
  24579. if v == nil {
  24580. } else if d.h.DeleteOnNilMapValue {
  24581. delete(v, mk)
  24582. } else {
  24583. v[mk] = 0
  24584. }
  24585. continue
  24586. }
  24587. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  24588. if v != nil {
  24589. v[mk] = mv
  24590. }
  24591. }
  24592. dd.ReadMapEnd()
  24593. d.depthDecr()
  24594. return v, changed
  24595. }
  24596. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  24597. if rv.Kind() == reflect.Ptr {
  24598. vp := rv2i(rv).(*map[uint8]int64)
  24599. v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d)
  24600. if changed {
  24601. *vp = v
  24602. }
  24603. } else {
  24604. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  24605. }
  24606. }
  24607. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  24608. v, changed := f.DecMapUint8Int64V(*vp, true, d)
  24609. if changed {
  24610. *vp = v
  24611. }
  24612. }
  24613. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  24614. d *Decoder) (_ map[uint8]int64, changed bool) {
  24615. dd, esep := d.d, d.hh.hasElemSeparators()
  24616. containerLen := dd.ReadMapStart()
  24617. if canChange && v == nil {
  24618. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24619. v = make(map[uint8]int64, xlen)
  24620. changed = true
  24621. }
  24622. if containerLen == 0 {
  24623. dd.ReadMapEnd()
  24624. return v, changed
  24625. }
  24626. d.depthIncr()
  24627. var mk uint8
  24628. var mv int64
  24629. hasLen := containerLen > 0
  24630. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24631. if esep {
  24632. dd.ReadMapElemKey()
  24633. }
  24634. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24635. if esep {
  24636. dd.ReadMapElemValue()
  24637. }
  24638. if dd.TryDecodeAsNil() {
  24639. if v == nil {
  24640. } else if d.h.DeleteOnNilMapValue {
  24641. delete(v, mk)
  24642. } else {
  24643. v[mk] = 0
  24644. }
  24645. continue
  24646. }
  24647. mv = dd.DecodeInt64()
  24648. if v != nil {
  24649. v[mk] = mv
  24650. }
  24651. }
  24652. dd.ReadMapEnd()
  24653. d.depthDecr()
  24654. return v, changed
  24655. }
  24656. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  24657. if rv.Kind() == reflect.Ptr {
  24658. vp := rv2i(rv).(*map[uint8]float32)
  24659. v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d)
  24660. if changed {
  24661. *vp = v
  24662. }
  24663. } else {
  24664. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  24665. }
  24666. }
  24667. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  24668. v, changed := f.DecMapUint8Float32V(*vp, true, d)
  24669. if changed {
  24670. *vp = v
  24671. }
  24672. }
  24673. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  24674. d *Decoder) (_ map[uint8]float32, changed bool) {
  24675. dd, esep := d.d, d.hh.hasElemSeparators()
  24676. containerLen := dd.ReadMapStart()
  24677. if canChange && v == nil {
  24678. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24679. v = make(map[uint8]float32, xlen)
  24680. changed = true
  24681. }
  24682. if containerLen == 0 {
  24683. dd.ReadMapEnd()
  24684. return v, changed
  24685. }
  24686. d.depthIncr()
  24687. var mk uint8
  24688. var mv float32
  24689. hasLen := containerLen > 0
  24690. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24691. if esep {
  24692. dd.ReadMapElemKey()
  24693. }
  24694. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24695. if esep {
  24696. dd.ReadMapElemValue()
  24697. }
  24698. if dd.TryDecodeAsNil() {
  24699. if v == nil {
  24700. } else if d.h.DeleteOnNilMapValue {
  24701. delete(v, mk)
  24702. } else {
  24703. v[mk] = 0
  24704. }
  24705. continue
  24706. }
  24707. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  24708. if v != nil {
  24709. v[mk] = mv
  24710. }
  24711. }
  24712. dd.ReadMapEnd()
  24713. d.depthDecr()
  24714. return v, changed
  24715. }
  24716. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  24717. if rv.Kind() == reflect.Ptr {
  24718. vp := rv2i(rv).(*map[uint8]float64)
  24719. v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d)
  24720. if changed {
  24721. *vp = v
  24722. }
  24723. } else {
  24724. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  24725. }
  24726. }
  24727. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  24728. v, changed := f.DecMapUint8Float64V(*vp, true, d)
  24729. if changed {
  24730. *vp = v
  24731. }
  24732. }
  24733. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  24734. d *Decoder) (_ map[uint8]float64, changed bool) {
  24735. dd, esep := d.d, d.hh.hasElemSeparators()
  24736. containerLen := dd.ReadMapStart()
  24737. if canChange && v == nil {
  24738. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24739. v = make(map[uint8]float64, xlen)
  24740. changed = true
  24741. }
  24742. if containerLen == 0 {
  24743. dd.ReadMapEnd()
  24744. return v, changed
  24745. }
  24746. d.depthIncr()
  24747. var mk uint8
  24748. var mv float64
  24749. hasLen := containerLen > 0
  24750. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24751. if esep {
  24752. dd.ReadMapElemKey()
  24753. }
  24754. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24755. if esep {
  24756. dd.ReadMapElemValue()
  24757. }
  24758. if dd.TryDecodeAsNil() {
  24759. if v == nil {
  24760. } else if d.h.DeleteOnNilMapValue {
  24761. delete(v, mk)
  24762. } else {
  24763. v[mk] = 0
  24764. }
  24765. continue
  24766. }
  24767. mv = dd.DecodeFloat64()
  24768. if v != nil {
  24769. v[mk] = mv
  24770. }
  24771. }
  24772. dd.ReadMapEnd()
  24773. d.depthDecr()
  24774. return v, changed
  24775. }
  24776. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  24777. if rv.Kind() == reflect.Ptr {
  24778. vp := rv2i(rv).(*map[uint8]bool)
  24779. v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d)
  24780. if changed {
  24781. *vp = v
  24782. }
  24783. } else {
  24784. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  24785. }
  24786. }
  24787. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  24788. v, changed := f.DecMapUint8BoolV(*vp, true, d)
  24789. if changed {
  24790. *vp = v
  24791. }
  24792. }
  24793. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  24794. d *Decoder) (_ map[uint8]bool, changed bool) {
  24795. dd, esep := d.d, d.hh.hasElemSeparators()
  24796. containerLen := dd.ReadMapStart()
  24797. if canChange && v == nil {
  24798. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24799. v = make(map[uint8]bool, xlen)
  24800. changed = true
  24801. }
  24802. if containerLen == 0 {
  24803. dd.ReadMapEnd()
  24804. return v, changed
  24805. }
  24806. d.depthIncr()
  24807. var mk uint8
  24808. var mv bool
  24809. hasLen := containerLen > 0
  24810. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24811. if esep {
  24812. dd.ReadMapElemKey()
  24813. }
  24814. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24815. if esep {
  24816. dd.ReadMapElemValue()
  24817. }
  24818. if dd.TryDecodeAsNil() {
  24819. if v == nil {
  24820. } else if d.h.DeleteOnNilMapValue {
  24821. delete(v, mk)
  24822. } else {
  24823. v[mk] = false
  24824. }
  24825. continue
  24826. }
  24827. mv = dd.DecodeBool()
  24828. if v != nil {
  24829. v[mk] = mv
  24830. }
  24831. }
  24832. dd.ReadMapEnd()
  24833. d.depthDecr()
  24834. return v, changed
  24835. }
  24836. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  24837. if rv.Kind() == reflect.Ptr {
  24838. vp := rv2i(rv).(*map[uint16]interface{})
  24839. v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d)
  24840. if changed {
  24841. *vp = v
  24842. }
  24843. } else {
  24844. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  24845. }
  24846. }
  24847. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  24848. v, changed := f.DecMapUint16IntfV(*vp, true, d)
  24849. if changed {
  24850. *vp = v
  24851. }
  24852. }
  24853. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  24854. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  24855. dd, esep := d.d, d.hh.hasElemSeparators()
  24856. containerLen := dd.ReadMapStart()
  24857. if canChange && v == nil {
  24858. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24859. v = make(map[uint16]interface{}, xlen)
  24860. changed = true
  24861. }
  24862. if containerLen == 0 {
  24863. dd.ReadMapEnd()
  24864. return v, changed
  24865. }
  24866. d.depthIncr()
  24867. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  24868. var mk uint16
  24869. var mv interface{}
  24870. hasLen := containerLen > 0
  24871. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24872. if esep {
  24873. dd.ReadMapElemKey()
  24874. }
  24875. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24876. if esep {
  24877. dd.ReadMapElemValue()
  24878. }
  24879. if dd.TryDecodeAsNil() {
  24880. if v == nil {
  24881. } else if d.h.DeleteOnNilMapValue {
  24882. delete(v, mk)
  24883. } else {
  24884. v[mk] = nil
  24885. }
  24886. continue
  24887. }
  24888. if mapGet {
  24889. mv = v[mk]
  24890. } else {
  24891. mv = nil
  24892. }
  24893. d.decode(&mv)
  24894. if v != nil {
  24895. v[mk] = mv
  24896. }
  24897. }
  24898. dd.ReadMapEnd()
  24899. d.depthDecr()
  24900. return v, changed
  24901. }
  24902. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  24903. if rv.Kind() == reflect.Ptr {
  24904. vp := rv2i(rv).(*map[uint16]string)
  24905. v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d)
  24906. if changed {
  24907. *vp = v
  24908. }
  24909. } else {
  24910. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  24911. }
  24912. }
  24913. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  24914. v, changed := f.DecMapUint16StringV(*vp, true, d)
  24915. if changed {
  24916. *vp = v
  24917. }
  24918. }
  24919. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  24920. d *Decoder) (_ map[uint16]string, changed bool) {
  24921. dd, esep := d.d, d.hh.hasElemSeparators()
  24922. containerLen := dd.ReadMapStart()
  24923. if canChange && v == nil {
  24924. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24925. v = make(map[uint16]string, xlen)
  24926. changed = true
  24927. }
  24928. if containerLen == 0 {
  24929. dd.ReadMapEnd()
  24930. return v, changed
  24931. }
  24932. d.depthIncr()
  24933. var mk uint16
  24934. var mv string
  24935. hasLen := containerLen > 0
  24936. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24937. if esep {
  24938. dd.ReadMapElemKey()
  24939. }
  24940. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24941. if esep {
  24942. dd.ReadMapElemValue()
  24943. }
  24944. if dd.TryDecodeAsNil() {
  24945. if v == nil {
  24946. } else if d.h.DeleteOnNilMapValue {
  24947. delete(v, mk)
  24948. } else {
  24949. v[mk] = ""
  24950. }
  24951. continue
  24952. }
  24953. mv = dd.DecodeString()
  24954. if v != nil {
  24955. v[mk] = mv
  24956. }
  24957. }
  24958. dd.ReadMapEnd()
  24959. d.depthDecr()
  24960. return v, changed
  24961. }
  24962. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  24963. if rv.Kind() == reflect.Ptr {
  24964. vp := rv2i(rv).(*map[uint16]uint)
  24965. v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d)
  24966. if changed {
  24967. *vp = v
  24968. }
  24969. } else {
  24970. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  24971. }
  24972. }
  24973. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  24974. v, changed := f.DecMapUint16UintV(*vp, true, d)
  24975. if changed {
  24976. *vp = v
  24977. }
  24978. }
  24979. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  24980. d *Decoder) (_ map[uint16]uint, changed bool) {
  24981. dd, esep := d.d, d.hh.hasElemSeparators()
  24982. containerLen := dd.ReadMapStart()
  24983. if canChange && v == nil {
  24984. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24985. v = make(map[uint16]uint, xlen)
  24986. changed = true
  24987. }
  24988. if containerLen == 0 {
  24989. dd.ReadMapEnd()
  24990. return v, changed
  24991. }
  24992. d.depthIncr()
  24993. var mk uint16
  24994. var mv uint
  24995. hasLen := containerLen > 0
  24996. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24997. if esep {
  24998. dd.ReadMapElemKey()
  24999. }
  25000. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25001. if esep {
  25002. dd.ReadMapElemValue()
  25003. }
  25004. if dd.TryDecodeAsNil() {
  25005. if v == nil {
  25006. } else if d.h.DeleteOnNilMapValue {
  25007. delete(v, mk)
  25008. } else {
  25009. v[mk] = 0
  25010. }
  25011. continue
  25012. }
  25013. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25014. if v != nil {
  25015. v[mk] = mv
  25016. }
  25017. }
  25018. dd.ReadMapEnd()
  25019. d.depthDecr()
  25020. return v, changed
  25021. }
  25022. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  25023. if rv.Kind() == reflect.Ptr {
  25024. vp := rv2i(rv).(*map[uint16]uint8)
  25025. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d)
  25026. if changed {
  25027. *vp = v
  25028. }
  25029. } else {
  25030. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  25031. }
  25032. }
  25033. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  25034. v, changed := f.DecMapUint16Uint8V(*vp, true, d)
  25035. if changed {
  25036. *vp = v
  25037. }
  25038. }
  25039. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  25040. d *Decoder) (_ map[uint16]uint8, changed bool) {
  25041. dd, esep := d.d, d.hh.hasElemSeparators()
  25042. containerLen := dd.ReadMapStart()
  25043. if canChange && v == nil {
  25044. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25045. v = make(map[uint16]uint8, xlen)
  25046. changed = true
  25047. }
  25048. if containerLen == 0 {
  25049. dd.ReadMapEnd()
  25050. return v, changed
  25051. }
  25052. d.depthIncr()
  25053. var mk uint16
  25054. var mv uint8
  25055. hasLen := containerLen > 0
  25056. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25057. if esep {
  25058. dd.ReadMapElemKey()
  25059. }
  25060. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25061. if esep {
  25062. dd.ReadMapElemValue()
  25063. }
  25064. if dd.TryDecodeAsNil() {
  25065. if v == nil {
  25066. } else if d.h.DeleteOnNilMapValue {
  25067. delete(v, mk)
  25068. } else {
  25069. v[mk] = 0
  25070. }
  25071. continue
  25072. }
  25073. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  25074. if v != nil {
  25075. v[mk] = mv
  25076. }
  25077. }
  25078. dd.ReadMapEnd()
  25079. d.depthDecr()
  25080. return v, changed
  25081. }
  25082. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  25083. if rv.Kind() == reflect.Ptr {
  25084. vp := rv2i(rv).(*map[uint16]uint16)
  25085. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d)
  25086. if changed {
  25087. *vp = v
  25088. }
  25089. } else {
  25090. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  25091. }
  25092. }
  25093. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  25094. v, changed := f.DecMapUint16Uint16V(*vp, true, d)
  25095. if changed {
  25096. *vp = v
  25097. }
  25098. }
  25099. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  25100. d *Decoder) (_ map[uint16]uint16, changed bool) {
  25101. dd, esep := d.d, d.hh.hasElemSeparators()
  25102. containerLen := dd.ReadMapStart()
  25103. if canChange && v == nil {
  25104. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25105. v = make(map[uint16]uint16, xlen)
  25106. changed = true
  25107. }
  25108. if containerLen == 0 {
  25109. dd.ReadMapEnd()
  25110. return v, changed
  25111. }
  25112. d.depthIncr()
  25113. var mk uint16
  25114. var mv uint16
  25115. hasLen := containerLen > 0
  25116. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25117. if esep {
  25118. dd.ReadMapElemKey()
  25119. }
  25120. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25121. if esep {
  25122. dd.ReadMapElemValue()
  25123. }
  25124. if dd.TryDecodeAsNil() {
  25125. if v == nil {
  25126. } else if d.h.DeleteOnNilMapValue {
  25127. delete(v, mk)
  25128. } else {
  25129. v[mk] = 0
  25130. }
  25131. continue
  25132. }
  25133. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25134. if v != nil {
  25135. v[mk] = mv
  25136. }
  25137. }
  25138. dd.ReadMapEnd()
  25139. d.depthDecr()
  25140. return v, changed
  25141. }
  25142. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  25143. if rv.Kind() == reflect.Ptr {
  25144. vp := rv2i(rv).(*map[uint16]uint32)
  25145. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d)
  25146. if changed {
  25147. *vp = v
  25148. }
  25149. } else {
  25150. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  25151. }
  25152. }
  25153. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  25154. v, changed := f.DecMapUint16Uint32V(*vp, true, d)
  25155. if changed {
  25156. *vp = v
  25157. }
  25158. }
  25159. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  25160. d *Decoder) (_ map[uint16]uint32, changed bool) {
  25161. dd, esep := d.d, d.hh.hasElemSeparators()
  25162. containerLen := dd.ReadMapStart()
  25163. if canChange && v == nil {
  25164. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25165. v = make(map[uint16]uint32, xlen)
  25166. changed = true
  25167. }
  25168. if containerLen == 0 {
  25169. dd.ReadMapEnd()
  25170. return v, changed
  25171. }
  25172. d.depthIncr()
  25173. var mk uint16
  25174. var mv uint32
  25175. hasLen := containerLen > 0
  25176. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25177. if esep {
  25178. dd.ReadMapElemKey()
  25179. }
  25180. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25181. if esep {
  25182. dd.ReadMapElemValue()
  25183. }
  25184. if dd.TryDecodeAsNil() {
  25185. if v == nil {
  25186. } else if d.h.DeleteOnNilMapValue {
  25187. delete(v, mk)
  25188. } else {
  25189. v[mk] = 0
  25190. }
  25191. continue
  25192. }
  25193. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25194. if v != nil {
  25195. v[mk] = mv
  25196. }
  25197. }
  25198. dd.ReadMapEnd()
  25199. d.depthDecr()
  25200. return v, changed
  25201. }
  25202. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  25203. if rv.Kind() == reflect.Ptr {
  25204. vp := rv2i(rv).(*map[uint16]uint64)
  25205. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d)
  25206. if changed {
  25207. *vp = v
  25208. }
  25209. } else {
  25210. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  25211. }
  25212. }
  25213. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  25214. v, changed := f.DecMapUint16Uint64V(*vp, true, d)
  25215. if changed {
  25216. *vp = v
  25217. }
  25218. }
  25219. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  25220. d *Decoder) (_ map[uint16]uint64, changed bool) {
  25221. dd, esep := d.d, d.hh.hasElemSeparators()
  25222. containerLen := dd.ReadMapStart()
  25223. if canChange && v == nil {
  25224. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25225. v = make(map[uint16]uint64, xlen)
  25226. changed = true
  25227. }
  25228. if containerLen == 0 {
  25229. dd.ReadMapEnd()
  25230. return v, changed
  25231. }
  25232. d.depthIncr()
  25233. var mk uint16
  25234. var mv uint64
  25235. hasLen := containerLen > 0
  25236. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25237. if esep {
  25238. dd.ReadMapElemKey()
  25239. }
  25240. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25241. if esep {
  25242. dd.ReadMapElemValue()
  25243. }
  25244. if dd.TryDecodeAsNil() {
  25245. if v == nil {
  25246. } else if d.h.DeleteOnNilMapValue {
  25247. delete(v, mk)
  25248. } else {
  25249. v[mk] = 0
  25250. }
  25251. continue
  25252. }
  25253. mv = dd.DecodeUint64()
  25254. if v != nil {
  25255. v[mk] = mv
  25256. }
  25257. }
  25258. dd.ReadMapEnd()
  25259. d.depthDecr()
  25260. return v, changed
  25261. }
  25262. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  25263. if rv.Kind() == reflect.Ptr {
  25264. vp := rv2i(rv).(*map[uint16]uintptr)
  25265. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d)
  25266. if changed {
  25267. *vp = v
  25268. }
  25269. } else {
  25270. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  25271. }
  25272. }
  25273. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  25274. v, changed := f.DecMapUint16UintptrV(*vp, true, d)
  25275. if changed {
  25276. *vp = v
  25277. }
  25278. }
  25279. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  25280. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  25281. dd, esep := d.d, d.hh.hasElemSeparators()
  25282. containerLen := dd.ReadMapStart()
  25283. if canChange && v == nil {
  25284. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25285. v = make(map[uint16]uintptr, xlen)
  25286. changed = true
  25287. }
  25288. if containerLen == 0 {
  25289. dd.ReadMapEnd()
  25290. return v, changed
  25291. }
  25292. d.depthIncr()
  25293. var mk uint16
  25294. var mv uintptr
  25295. hasLen := containerLen > 0
  25296. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25297. if esep {
  25298. dd.ReadMapElemKey()
  25299. }
  25300. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25301. if esep {
  25302. dd.ReadMapElemValue()
  25303. }
  25304. if dd.TryDecodeAsNil() {
  25305. if v == nil {
  25306. } else if d.h.DeleteOnNilMapValue {
  25307. delete(v, mk)
  25308. } else {
  25309. v[mk] = 0
  25310. }
  25311. continue
  25312. }
  25313. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25314. if v != nil {
  25315. v[mk] = mv
  25316. }
  25317. }
  25318. dd.ReadMapEnd()
  25319. d.depthDecr()
  25320. return v, changed
  25321. }
  25322. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  25323. if rv.Kind() == reflect.Ptr {
  25324. vp := rv2i(rv).(*map[uint16]int)
  25325. v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d)
  25326. if changed {
  25327. *vp = v
  25328. }
  25329. } else {
  25330. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  25331. }
  25332. }
  25333. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  25334. v, changed := f.DecMapUint16IntV(*vp, true, d)
  25335. if changed {
  25336. *vp = v
  25337. }
  25338. }
  25339. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  25340. d *Decoder) (_ map[uint16]int, changed bool) {
  25341. dd, esep := d.d, d.hh.hasElemSeparators()
  25342. containerLen := dd.ReadMapStart()
  25343. if canChange && v == nil {
  25344. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25345. v = make(map[uint16]int, xlen)
  25346. changed = true
  25347. }
  25348. if containerLen == 0 {
  25349. dd.ReadMapEnd()
  25350. return v, changed
  25351. }
  25352. d.depthIncr()
  25353. var mk uint16
  25354. var mv int
  25355. hasLen := containerLen > 0
  25356. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25357. if esep {
  25358. dd.ReadMapElemKey()
  25359. }
  25360. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25361. if esep {
  25362. dd.ReadMapElemValue()
  25363. }
  25364. if dd.TryDecodeAsNil() {
  25365. if v == nil {
  25366. } else if d.h.DeleteOnNilMapValue {
  25367. delete(v, mk)
  25368. } else {
  25369. v[mk] = 0
  25370. }
  25371. continue
  25372. }
  25373. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  25374. if v != nil {
  25375. v[mk] = mv
  25376. }
  25377. }
  25378. dd.ReadMapEnd()
  25379. d.depthDecr()
  25380. return v, changed
  25381. }
  25382. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  25383. if rv.Kind() == reflect.Ptr {
  25384. vp := rv2i(rv).(*map[uint16]int8)
  25385. v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d)
  25386. if changed {
  25387. *vp = v
  25388. }
  25389. } else {
  25390. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  25391. }
  25392. }
  25393. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  25394. v, changed := f.DecMapUint16Int8V(*vp, true, d)
  25395. if changed {
  25396. *vp = v
  25397. }
  25398. }
  25399. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  25400. d *Decoder) (_ map[uint16]int8, changed bool) {
  25401. dd, esep := d.d, d.hh.hasElemSeparators()
  25402. containerLen := dd.ReadMapStart()
  25403. if canChange && v == nil {
  25404. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25405. v = make(map[uint16]int8, xlen)
  25406. changed = true
  25407. }
  25408. if containerLen == 0 {
  25409. dd.ReadMapEnd()
  25410. return v, changed
  25411. }
  25412. d.depthIncr()
  25413. var mk uint16
  25414. var mv int8
  25415. hasLen := containerLen > 0
  25416. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25417. if esep {
  25418. dd.ReadMapElemKey()
  25419. }
  25420. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25421. if esep {
  25422. dd.ReadMapElemValue()
  25423. }
  25424. if dd.TryDecodeAsNil() {
  25425. if v == nil {
  25426. } else if d.h.DeleteOnNilMapValue {
  25427. delete(v, mk)
  25428. } else {
  25429. v[mk] = 0
  25430. }
  25431. continue
  25432. }
  25433. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  25434. if v != nil {
  25435. v[mk] = mv
  25436. }
  25437. }
  25438. dd.ReadMapEnd()
  25439. d.depthDecr()
  25440. return v, changed
  25441. }
  25442. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  25443. if rv.Kind() == reflect.Ptr {
  25444. vp := rv2i(rv).(*map[uint16]int16)
  25445. v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d)
  25446. if changed {
  25447. *vp = v
  25448. }
  25449. } else {
  25450. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  25451. }
  25452. }
  25453. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  25454. v, changed := f.DecMapUint16Int16V(*vp, true, d)
  25455. if changed {
  25456. *vp = v
  25457. }
  25458. }
  25459. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  25460. d *Decoder) (_ map[uint16]int16, changed bool) {
  25461. dd, esep := d.d, d.hh.hasElemSeparators()
  25462. containerLen := dd.ReadMapStart()
  25463. if canChange && v == nil {
  25464. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25465. v = make(map[uint16]int16, xlen)
  25466. changed = true
  25467. }
  25468. if containerLen == 0 {
  25469. dd.ReadMapEnd()
  25470. return v, changed
  25471. }
  25472. d.depthIncr()
  25473. var mk uint16
  25474. var mv int16
  25475. hasLen := containerLen > 0
  25476. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25477. if esep {
  25478. dd.ReadMapElemKey()
  25479. }
  25480. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25481. if esep {
  25482. dd.ReadMapElemValue()
  25483. }
  25484. if dd.TryDecodeAsNil() {
  25485. if v == nil {
  25486. } else if d.h.DeleteOnNilMapValue {
  25487. delete(v, mk)
  25488. } else {
  25489. v[mk] = 0
  25490. }
  25491. continue
  25492. }
  25493. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  25494. if v != nil {
  25495. v[mk] = mv
  25496. }
  25497. }
  25498. dd.ReadMapEnd()
  25499. d.depthDecr()
  25500. return v, changed
  25501. }
  25502. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  25503. if rv.Kind() == reflect.Ptr {
  25504. vp := rv2i(rv).(*map[uint16]int32)
  25505. v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d)
  25506. if changed {
  25507. *vp = v
  25508. }
  25509. } else {
  25510. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  25511. }
  25512. }
  25513. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  25514. v, changed := f.DecMapUint16Int32V(*vp, true, d)
  25515. if changed {
  25516. *vp = v
  25517. }
  25518. }
  25519. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  25520. d *Decoder) (_ map[uint16]int32, changed bool) {
  25521. dd, esep := d.d, d.hh.hasElemSeparators()
  25522. containerLen := dd.ReadMapStart()
  25523. if canChange && v == nil {
  25524. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25525. v = make(map[uint16]int32, xlen)
  25526. changed = true
  25527. }
  25528. if containerLen == 0 {
  25529. dd.ReadMapEnd()
  25530. return v, changed
  25531. }
  25532. d.depthIncr()
  25533. var mk uint16
  25534. var mv int32
  25535. hasLen := containerLen > 0
  25536. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25537. if esep {
  25538. dd.ReadMapElemKey()
  25539. }
  25540. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25541. if esep {
  25542. dd.ReadMapElemValue()
  25543. }
  25544. if dd.TryDecodeAsNil() {
  25545. if v == nil {
  25546. } else if d.h.DeleteOnNilMapValue {
  25547. delete(v, mk)
  25548. } else {
  25549. v[mk] = 0
  25550. }
  25551. continue
  25552. }
  25553. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  25554. if v != nil {
  25555. v[mk] = mv
  25556. }
  25557. }
  25558. dd.ReadMapEnd()
  25559. d.depthDecr()
  25560. return v, changed
  25561. }
  25562. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  25563. if rv.Kind() == reflect.Ptr {
  25564. vp := rv2i(rv).(*map[uint16]int64)
  25565. v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d)
  25566. if changed {
  25567. *vp = v
  25568. }
  25569. } else {
  25570. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  25571. }
  25572. }
  25573. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  25574. v, changed := f.DecMapUint16Int64V(*vp, true, d)
  25575. if changed {
  25576. *vp = v
  25577. }
  25578. }
  25579. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  25580. d *Decoder) (_ map[uint16]int64, changed bool) {
  25581. dd, esep := d.d, d.hh.hasElemSeparators()
  25582. containerLen := dd.ReadMapStart()
  25583. if canChange && v == nil {
  25584. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25585. v = make(map[uint16]int64, xlen)
  25586. changed = true
  25587. }
  25588. if containerLen == 0 {
  25589. dd.ReadMapEnd()
  25590. return v, changed
  25591. }
  25592. d.depthIncr()
  25593. var mk uint16
  25594. var mv int64
  25595. hasLen := containerLen > 0
  25596. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25597. if esep {
  25598. dd.ReadMapElemKey()
  25599. }
  25600. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25601. if esep {
  25602. dd.ReadMapElemValue()
  25603. }
  25604. if dd.TryDecodeAsNil() {
  25605. if v == nil {
  25606. } else if d.h.DeleteOnNilMapValue {
  25607. delete(v, mk)
  25608. } else {
  25609. v[mk] = 0
  25610. }
  25611. continue
  25612. }
  25613. mv = dd.DecodeInt64()
  25614. if v != nil {
  25615. v[mk] = mv
  25616. }
  25617. }
  25618. dd.ReadMapEnd()
  25619. d.depthDecr()
  25620. return v, changed
  25621. }
  25622. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  25623. if rv.Kind() == reflect.Ptr {
  25624. vp := rv2i(rv).(*map[uint16]float32)
  25625. v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d)
  25626. if changed {
  25627. *vp = v
  25628. }
  25629. } else {
  25630. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  25631. }
  25632. }
  25633. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  25634. v, changed := f.DecMapUint16Float32V(*vp, true, d)
  25635. if changed {
  25636. *vp = v
  25637. }
  25638. }
  25639. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  25640. d *Decoder) (_ map[uint16]float32, changed bool) {
  25641. dd, esep := d.d, d.hh.hasElemSeparators()
  25642. containerLen := dd.ReadMapStart()
  25643. if canChange && v == nil {
  25644. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25645. v = make(map[uint16]float32, xlen)
  25646. changed = true
  25647. }
  25648. if containerLen == 0 {
  25649. dd.ReadMapEnd()
  25650. return v, changed
  25651. }
  25652. d.depthIncr()
  25653. var mk uint16
  25654. var mv float32
  25655. hasLen := containerLen > 0
  25656. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25657. if esep {
  25658. dd.ReadMapElemKey()
  25659. }
  25660. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25661. if esep {
  25662. dd.ReadMapElemValue()
  25663. }
  25664. if dd.TryDecodeAsNil() {
  25665. if v == nil {
  25666. } else if d.h.DeleteOnNilMapValue {
  25667. delete(v, mk)
  25668. } else {
  25669. v[mk] = 0
  25670. }
  25671. continue
  25672. }
  25673. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  25674. if v != nil {
  25675. v[mk] = mv
  25676. }
  25677. }
  25678. dd.ReadMapEnd()
  25679. d.depthDecr()
  25680. return v, changed
  25681. }
  25682. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  25683. if rv.Kind() == reflect.Ptr {
  25684. vp := rv2i(rv).(*map[uint16]float64)
  25685. v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d)
  25686. if changed {
  25687. *vp = v
  25688. }
  25689. } else {
  25690. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  25691. }
  25692. }
  25693. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  25694. v, changed := f.DecMapUint16Float64V(*vp, true, d)
  25695. if changed {
  25696. *vp = v
  25697. }
  25698. }
  25699. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  25700. d *Decoder) (_ map[uint16]float64, changed bool) {
  25701. dd, esep := d.d, d.hh.hasElemSeparators()
  25702. containerLen := dd.ReadMapStart()
  25703. if canChange && v == nil {
  25704. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25705. v = make(map[uint16]float64, xlen)
  25706. changed = true
  25707. }
  25708. if containerLen == 0 {
  25709. dd.ReadMapEnd()
  25710. return v, changed
  25711. }
  25712. d.depthIncr()
  25713. var mk uint16
  25714. var mv float64
  25715. hasLen := containerLen > 0
  25716. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25717. if esep {
  25718. dd.ReadMapElemKey()
  25719. }
  25720. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25721. if esep {
  25722. dd.ReadMapElemValue()
  25723. }
  25724. if dd.TryDecodeAsNil() {
  25725. if v == nil {
  25726. } else if d.h.DeleteOnNilMapValue {
  25727. delete(v, mk)
  25728. } else {
  25729. v[mk] = 0
  25730. }
  25731. continue
  25732. }
  25733. mv = dd.DecodeFloat64()
  25734. if v != nil {
  25735. v[mk] = mv
  25736. }
  25737. }
  25738. dd.ReadMapEnd()
  25739. d.depthDecr()
  25740. return v, changed
  25741. }
  25742. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  25743. if rv.Kind() == reflect.Ptr {
  25744. vp := rv2i(rv).(*map[uint16]bool)
  25745. v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d)
  25746. if changed {
  25747. *vp = v
  25748. }
  25749. } else {
  25750. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  25751. }
  25752. }
  25753. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  25754. v, changed := f.DecMapUint16BoolV(*vp, true, d)
  25755. if changed {
  25756. *vp = v
  25757. }
  25758. }
  25759. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  25760. d *Decoder) (_ map[uint16]bool, changed bool) {
  25761. dd, esep := d.d, d.hh.hasElemSeparators()
  25762. containerLen := dd.ReadMapStart()
  25763. if canChange && v == nil {
  25764. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25765. v = make(map[uint16]bool, xlen)
  25766. changed = true
  25767. }
  25768. if containerLen == 0 {
  25769. dd.ReadMapEnd()
  25770. return v, changed
  25771. }
  25772. d.depthIncr()
  25773. var mk uint16
  25774. var mv bool
  25775. hasLen := containerLen > 0
  25776. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25777. if esep {
  25778. dd.ReadMapElemKey()
  25779. }
  25780. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25781. if esep {
  25782. dd.ReadMapElemValue()
  25783. }
  25784. if dd.TryDecodeAsNil() {
  25785. if v == nil {
  25786. } else if d.h.DeleteOnNilMapValue {
  25787. delete(v, mk)
  25788. } else {
  25789. v[mk] = false
  25790. }
  25791. continue
  25792. }
  25793. mv = dd.DecodeBool()
  25794. if v != nil {
  25795. v[mk] = mv
  25796. }
  25797. }
  25798. dd.ReadMapEnd()
  25799. d.depthDecr()
  25800. return v, changed
  25801. }
  25802. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  25803. if rv.Kind() == reflect.Ptr {
  25804. vp := rv2i(rv).(*map[uint32]interface{})
  25805. v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d)
  25806. if changed {
  25807. *vp = v
  25808. }
  25809. } else {
  25810. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  25811. }
  25812. }
  25813. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  25814. v, changed := f.DecMapUint32IntfV(*vp, true, d)
  25815. if changed {
  25816. *vp = v
  25817. }
  25818. }
  25819. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  25820. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  25821. dd, esep := d.d, d.hh.hasElemSeparators()
  25822. containerLen := dd.ReadMapStart()
  25823. if canChange && v == nil {
  25824. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25825. v = make(map[uint32]interface{}, xlen)
  25826. changed = true
  25827. }
  25828. if containerLen == 0 {
  25829. dd.ReadMapEnd()
  25830. return v, changed
  25831. }
  25832. d.depthIncr()
  25833. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  25834. var mk uint32
  25835. var mv interface{}
  25836. hasLen := containerLen > 0
  25837. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25838. if esep {
  25839. dd.ReadMapElemKey()
  25840. }
  25841. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25842. if esep {
  25843. dd.ReadMapElemValue()
  25844. }
  25845. if dd.TryDecodeAsNil() {
  25846. if v == nil {
  25847. } else if d.h.DeleteOnNilMapValue {
  25848. delete(v, mk)
  25849. } else {
  25850. v[mk] = nil
  25851. }
  25852. continue
  25853. }
  25854. if mapGet {
  25855. mv = v[mk]
  25856. } else {
  25857. mv = nil
  25858. }
  25859. d.decode(&mv)
  25860. if v != nil {
  25861. v[mk] = mv
  25862. }
  25863. }
  25864. dd.ReadMapEnd()
  25865. d.depthDecr()
  25866. return v, changed
  25867. }
  25868. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  25869. if rv.Kind() == reflect.Ptr {
  25870. vp := rv2i(rv).(*map[uint32]string)
  25871. v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d)
  25872. if changed {
  25873. *vp = v
  25874. }
  25875. } else {
  25876. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  25877. }
  25878. }
  25879. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  25880. v, changed := f.DecMapUint32StringV(*vp, true, d)
  25881. if changed {
  25882. *vp = v
  25883. }
  25884. }
  25885. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  25886. d *Decoder) (_ map[uint32]string, changed bool) {
  25887. dd, esep := d.d, d.hh.hasElemSeparators()
  25888. containerLen := dd.ReadMapStart()
  25889. if canChange && v == nil {
  25890. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25891. v = make(map[uint32]string, xlen)
  25892. changed = true
  25893. }
  25894. if containerLen == 0 {
  25895. dd.ReadMapEnd()
  25896. return v, changed
  25897. }
  25898. d.depthIncr()
  25899. var mk uint32
  25900. var mv string
  25901. hasLen := containerLen > 0
  25902. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25903. if esep {
  25904. dd.ReadMapElemKey()
  25905. }
  25906. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25907. if esep {
  25908. dd.ReadMapElemValue()
  25909. }
  25910. if dd.TryDecodeAsNil() {
  25911. if v == nil {
  25912. } else if d.h.DeleteOnNilMapValue {
  25913. delete(v, mk)
  25914. } else {
  25915. v[mk] = ""
  25916. }
  25917. continue
  25918. }
  25919. mv = dd.DecodeString()
  25920. if v != nil {
  25921. v[mk] = mv
  25922. }
  25923. }
  25924. dd.ReadMapEnd()
  25925. d.depthDecr()
  25926. return v, changed
  25927. }
  25928. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  25929. if rv.Kind() == reflect.Ptr {
  25930. vp := rv2i(rv).(*map[uint32]uint)
  25931. v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d)
  25932. if changed {
  25933. *vp = v
  25934. }
  25935. } else {
  25936. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  25937. }
  25938. }
  25939. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  25940. v, changed := f.DecMapUint32UintV(*vp, true, d)
  25941. if changed {
  25942. *vp = v
  25943. }
  25944. }
  25945. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  25946. d *Decoder) (_ map[uint32]uint, changed bool) {
  25947. dd, esep := d.d, d.hh.hasElemSeparators()
  25948. containerLen := dd.ReadMapStart()
  25949. if canChange && v == nil {
  25950. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25951. v = make(map[uint32]uint, xlen)
  25952. changed = true
  25953. }
  25954. if containerLen == 0 {
  25955. dd.ReadMapEnd()
  25956. return v, changed
  25957. }
  25958. d.depthIncr()
  25959. var mk uint32
  25960. var mv uint
  25961. hasLen := containerLen > 0
  25962. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25963. if esep {
  25964. dd.ReadMapElemKey()
  25965. }
  25966. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25967. if esep {
  25968. dd.ReadMapElemValue()
  25969. }
  25970. if dd.TryDecodeAsNil() {
  25971. if v == nil {
  25972. } else if d.h.DeleteOnNilMapValue {
  25973. delete(v, mk)
  25974. } else {
  25975. v[mk] = 0
  25976. }
  25977. continue
  25978. }
  25979. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25980. if v != nil {
  25981. v[mk] = mv
  25982. }
  25983. }
  25984. dd.ReadMapEnd()
  25985. d.depthDecr()
  25986. return v, changed
  25987. }
  25988. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  25989. if rv.Kind() == reflect.Ptr {
  25990. vp := rv2i(rv).(*map[uint32]uint8)
  25991. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d)
  25992. if changed {
  25993. *vp = v
  25994. }
  25995. } else {
  25996. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  25997. }
  25998. }
  25999. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  26000. v, changed := f.DecMapUint32Uint8V(*vp, true, d)
  26001. if changed {
  26002. *vp = v
  26003. }
  26004. }
  26005. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  26006. d *Decoder) (_ map[uint32]uint8, changed bool) {
  26007. dd, esep := d.d, d.hh.hasElemSeparators()
  26008. containerLen := dd.ReadMapStart()
  26009. if canChange && v == nil {
  26010. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26011. v = make(map[uint32]uint8, xlen)
  26012. changed = true
  26013. }
  26014. if containerLen == 0 {
  26015. dd.ReadMapEnd()
  26016. return v, changed
  26017. }
  26018. d.depthIncr()
  26019. var mk uint32
  26020. var mv uint8
  26021. hasLen := containerLen > 0
  26022. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26023. if esep {
  26024. dd.ReadMapElemKey()
  26025. }
  26026. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26027. if esep {
  26028. dd.ReadMapElemValue()
  26029. }
  26030. if dd.TryDecodeAsNil() {
  26031. if v == nil {
  26032. } else if d.h.DeleteOnNilMapValue {
  26033. delete(v, mk)
  26034. } else {
  26035. v[mk] = 0
  26036. }
  26037. continue
  26038. }
  26039. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  26040. if v != nil {
  26041. v[mk] = mv
  26042. }
  26043. }
  26044. dd.ReadMapEnd()
  26045. d.depthDecr()
  26046. return v, changed
  26047. }
  26048. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  26049. if rv.Kind() == reflect.Ptr {
  26050. vp := rv2i(rv).(*map[uint32]uint16)
  26051. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d)
  26052. if changed {
  26053. *vp = v
  26054. }
  26055. } else {
  26056. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  26057. }
  26058. }
  26059. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  26060. v, changed := f.DecMapUint32Uint16V(*vp, true, d)
  26061. if changed {
  26062. *vp = v
  26063. }
  26064. }
  26065. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  26066. d *Decoder) (_ map[uint32]uint16, changed bool) {
  26067. dd, esep := d.d, d.hh.hasElemSeparators()
  26068. containerLen := dd.ReadMapStart()
  26069. if canChange && v == nil {
  26070. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26071. v = make(map[uint32]uint16, xlen)
  26072. changed = true
  26073. }
  26074. if containerLen == 0 {
  26075. dd.ReadMapEnd()
  26076. return v, changed
  26077. }
  26078. d.depthIncr()
  26079. var mk uint32
  26080. var mv uint16
  26081. hasLen := containerLen > 0
  26082. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26083. if esep {
  26084. dd.ReadMapElemKey()
  26085. }
  26086. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26087. if esep {
  26088. dd.ReadMapElemValue()
  26089. }
  26090. if dd.TryDecodeAsNil() {
  26091. if v == nil {
  26092. } else if d.h.DeleteOnNilMapValue {
  26093. delete(v, mk)
  26094. } else {
  26095. v[mk] = 0
  26096. }
  26097. continue
  26098. }
  26099. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  26100. if v != nil {
  26101. v[mk] = mv
  26102. }
  26103. }
  26104. dd.ReadMapEnd()
  26105. d.depthDecr()
  26106. return v, changed
  26107. }
  26108. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  26109. if rv.Kind() == reflect.Ptr {
  26110. vp := rv2i(rv).(*map[uint32]uint32)
  26111. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d)
  26112. if changed {
  26113. *vp = v
  26114. }
  26115. } else {
  26116. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  26117. }
  26118. }
  26119. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  26120. v, changed := f.DecMapUint32Uint32V(*vp, true, d)
  26121. if changed {
  26122. *vp = v
  26123. }
  26124. }
  26125. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  26126. d *Decoder) (_ map[uint32]uint32, changed bool) {
  26127. dd, esep := d.d, d.hh.hasElemSeparators()
  26128. containerLen := dd.ReadMapStart()
  26129. if canChange && v == nil {
  26130. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26131. v = make(map[uint32]uint32, xlen)
  26132. changed = true
  26133. }
  26134. if containerLen == 0 {
  26135. dd.ReadMapEnd()
  26136. return v, changed
  26137. }
  26138. d.depthIncr()
  26139. var mk uint32
  26140. var mv uint32
  26141. hasLen := containerLen > 0
  26142. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26143. if esep {
  26144. dd.ReadMapElemKey()
  26145. }
  26146. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26147. if esep {
  26148. dd.ReadMapElemValue()
  26149. }
  26150. if dd.TryDecodeAsNil() {
  26151. if v == nil {
  26152. } else if d.h.DeleteOnNilMapValue {
  26153. delete(v, mk)
  26154. } else {
  26155. v[mk] = 0
  26156. }
  26157. continue
  26158. }
  26159. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26160. if v != nil {
  26161. v[mk] = mv
  26162. }
  26163. }
  26164. dd.ReadMapEnd()
  26165. d.depthDecr()
  26166. return v, changed
  26167. }
  26168. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  26169. if rv.Kind() == reflect.Ptr {
  26170. vp := rv2i(rv).(*map[uint32]uint64)
  26171. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d)
  26172. if changed {
  26173. *vp = v
  26174. }
  26175. } else {
  26176. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  26177. }
  26178. }
  26179. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  26180. v, changed := f.DecMapUint32Uint64V(*vp, true, d)
  26181. if changed {
  26182. *vp = v
  26183. }
  26184. }
  26185. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  26186. d *Decoder) (_ map[uint32]uint64, changed bool) {
  26187. dd, esep := d.d, d.hh.hasElemSeparators()
  26188. containerLen := dd.ReadMapStart()
  26189. if canChange && v == nil {
  26190. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26191. v = make(map[uint32]uint64, xlen)
  26192. changed = true
  26193. }
  26194. if containerLen == 0 {
  26195. dd.ReadMapEnd()
  26196. return v, changed
  26197. }
  26198. d.depthIncr()
  26199. var mk uint32
  26200. var mv uint64
  26201. hasLen := containerLen > 0
  26202. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26203. if esep {
  26204. dd.ReadMapElemKey()
  26205. }
  26206. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26207. if esep {
  26208. dd.ReadMapElemValue()
  26209. }
  26210. if dd.TryDecodeAsNil() {
  26211. if v == nil {
  26212. } else if d.h.DeleteOnNilMapValue {
  26213. delete(v, mk)
  26214. } else {
  26215. v[mk] = 0
  26216. }
  26217. continue
  26218. }
  26219. mv = dd.DecodeUint64()
  26220. if v != nil {
  26221. v[mk] = mv
  26222. }
  26223. }
  26224. dd.ReadMapEnd()
  26225. d.depthDecr()
  26226. return v, changed
  26227. }
  26228. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  26229. if rv.Kind() == reflect.Ptr {
  26230. vp := rv2i(rv).(*map[uint32]uintptr)
  26231. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d)
  26232. if changed {
  26233. *vp = v
  26234. }
  26235. } else {
  26236. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  26237. }
  26238. }
  26239. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  26240. v, changed := f.DecMapUint32UintptrV(*vp, true, d)
  26241. if changed {
  26242. *vp = v
  26243. }
  26244. }
  26245. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  26246. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  26247. dd, esep := d.d, d.hh.hasElemSeparators()
  26248. containerLen := dd.ReadMapStart()
  26249. if canChange && v == nil {
  26250. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26251. v = make(map[uint32]uintptr, xlen)
  26252. changed = true
  26253. }
  26254. if containerLen == 0 {
  26255. dd.ReadMapEnd()
  26256. return v, changed
  26257. }
  26258. d.depthIncr()
  26259. var mk uint32
  26260. var mv uintptr
  26261. hasLen := containerLen > 0
  26262. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26263. if esep {
  26264. dd.ReadMapElemKey()
  26265. }
  26266. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26267. if esep {
  26268. dd.ReadMapElemValue()
  26269. }
  26270. if dd.TryDecodeAsNil() {
  26271. if v == nil {
  26272. } else if d.h.DeleteOnNilMapValue {
  26273. delete(v, mk)
  26274. } else {
  26275. v[mk] = 0
  26276. }
  26277. continue
  26278. }
  26279. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26280. if v != nil {
  26281. v[mk] = mv
  26282. }
  26283. }
  26284. dd.ReadMapEnd()
  26285. d.depthDecr()
  26286. return v, changed
  26287. }
  26288. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  26289. if rv.Kind() == reflect.Ptr {
  26290. vp := rv2i(rv).(*map[uint32]int)
  26291. v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d)
  26292. if changed {
  26293. *vp = v
  26294. }
  26295. } else {
  26296. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  26297. }
  26298. }
  26299. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  26300. v, changed := f.DecMapUint32IntV(*vp, true, d)
  26301. if changed {
  26302. *vp = v
  26303. }
  26304. }
  26305. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  26306. d *Decoder) (_ map[uint32]int, changed bool) {
  26307. dd, esep := d.d, d.hh.hasElemSeparators()
  26308. containerLen := dd.ReadMapStart()
  26309. if canChange && v == nil {
  26310. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26311. v = make(map[uint32]int, xlen)
  26312. changed = true
  26313. }
  26314. if containerLen == 0 {
  26315. dd.ReadMapEnd()
  26316. return v, changed
  26317. }
  26318. d.depthIncr()
  26319. var mk uint32
  26320. var mv int
  26321. hasLen := containerLen > 0
  26322. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26323. if esep {
  26324. dd.ReadMapElemKey()
  26325. }
  26326. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26327. if esep {
  26328. dd.ReadMapElemValue()
  26329. }
  26330. if dd.TryDecodeAsNil() {
  26331. if v == nil {
  26332. } else if d.h.DeleteOnNilMapValue {
  26333. delete(v, mk)
  26334. } else {
  26335. v[mk] = 0
  26336. }
  26337. continue
  26338. }
  26339. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  26340. if v != nil {
  26341. v[mk] = mv
  26342. }
  26343. }
  26344. dd.ReadMapEnd()
  26345. d.depthDecr()
  26346. return v, changed
  26347. }
  26348. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  26349. if rv.Kind() == reflect.Ptr {
  26350. vp := rv2i(rv).(*map[uint32]int8)
  26351. v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d)
  26352. if changed {
  26353. *vp = v
  26354. }
  26355. } else {
  26356. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  26357. }
  26358. }
  26359. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  26360. v, changed := f.DecMapUint32Int8V(*vp, true, d)
  26361. if changed {
  26362. *vp = v
  26363. }
  26364. }
  26365. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  26366. d *Decoder) (_ map[uint32]int8, changed bool) {
  26367. dd, esep := d.d, d.hh.hasElemSeparators()
  26368. containerLen := dd.ReadMapStart()
  26369. if canChange && v == nil {
  26370. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26371. v = make(map[uint32]int8, xlen)
  26372. changed = true
  26373. }
  26374. if containerLen == 0 {
  26375. dd.ReadMapEnd()
  26376. return v, changed
  26377. }
  26378. d.depthIncr()
  26379. var mk uint32
  26380. var mv int8
  26381. hasLen := containerLen > 0
  26382. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26383. if esep {
  26384. dd.ReadMapElemKey()
  26385. }
  26386. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26387. if esep {
  26388. dd.ReadMapElemValue()
  26389. }
  26390. if dd.TryDecodeAsNil() {
  26391. if v == nil {
  26392. } else if d.h.DeleteOnNilMapValue {
  26393. delete(v, mk)
  26394. } else {
  26395. v[mk] = 0
  26396. }
  26397. continue
  26398. }
  26399. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  26400. if v != nil {
  26401. v[mk] = mv
  26402. }
  26403. }
  26404. dd.ReadMapEnd()
  26405. d.depthDecr()
  26406. return v, changed
  26407. }
  26408. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  26409. if rv.Kind() == reflect.Ptr {
  26410. vp := rv2i(rv).(*map[uint32]int16)
  26411. v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d)
  26412. if changed {
  26413. *vp = v
  26414. }
  26415. } else {
  26416. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  26417. }
  26418. }
  26419. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  26420. v, changed := f.DecMapUint32Int16V(*vp, true, d)
  26421. if changed {
  26422. *vp = v
  26423. }
  26424. }
  26425. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  26426. d *Decoder) (_ map[uint32]int16, changed bool) {
  26427. dd, esep := d.d, d.hh.hasElemSeparators()
  26428. containerLen := dd.ReadMapStart()
  26429. if canChange && v == nil {
  26430. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26431. v = make(map[uint32]int16, xlen)
  26432. changed = true
  26433. }
  26434. if containerLen == 0 {
  26435. dd.ReadMapEnd()
  26436. return v, changed
  26437. }
  26438. d.depthIncr()
  26439. var mk uint32
  26440. var mv int16
  26441. hasLen := containerLen > 0
  26442. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26443. if esep {
  26444. dd.ReadMapElemKey()
  26445. }
  26446. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26447. if esep {
  26448. dd.ReadMapElemValue()
  26449. }
  26450. if dd.TryDecodeAsNil() {
  26451. if v == nil {
  26452. } else if d.h.DeleteOnNilMapValue {
  26453. delete(v, mk)
  26454. } else {
  26455. v[mk] = 0
  26456. }
  26457. continue
  26458. }
  26459. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  26460. if v != nil {
  26461. v[mk] = mv
  26462. }
  26463. }
  26464. dd.ReadMapEnd()
  26465. d.depthDecr()
  26466. return v, changed
  26467. }
  26468. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  26469. if rv.Kind() == reflect.Ptr {
  26470. vp := rv2i(rv).(*map[uint32]int32)
  26471. v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d)
  26472. if changed {
  26473. *vp = v
  26474. }
  26475. } else {
  26476. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  26477. }
  26478. }
  26479. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  26480. v, changed := f.DecMapUint32Int32V(*vp, true, d)
  26481. if changed {
  26482. *vp = v
  26483. }
  26484. }
  26485. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  26486. d *Decoder) (_ map[uint32]int32, changed bool) {
  26487. dd, esep := d.d, d.hh.hasElemSeparators()
  26488. containerLen := dd.ReadMapStart()
  26489. if canChange && v == nil {
  26490. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26491. v = make(map[uint32]int32, xlen)
  26492. changed = true
  26493. }
  26494. if containerLen == 0 {
  26495. dd.ReadMapEnd()
  26496. return v, changed
  26497. }
  26498. d.depthIncr()
  26499. var mk uint32
  26500. var mv int32
  26501. hasLen := containerLen > 0
  26502. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26503. if esep {
  26504. dd.ReadMapElemKey()
  26505. }
  26506. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26507. if esep {
  26508. dd.ReadMapElemValue()
  26509. }
  26510. if dd.TryDecodeAsNil() {
  26511. if v == nil {
  26512. } else if d.h.DeleteOnNilMapValue {
  26513. delete(v, mk)
  26514. } else {
  26515. v[mk] = 0
  26516. }
  26517. continue
  26518. }
  26519. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  26520. if v != nil {
  26521. v[mk] = mv
  26522. }
  26523. }
  26524. dd.ReadMapEnd()
  26525. d.depthDecr()
  26526. return v, changed
  26527. }
  26528. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  26529. if rv.Kind() == reflect.Ptr {
  26530. vp := rv2i(rv).(*map[uint32]int64)
  26531. v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d)
  26532. if changed {
  26533. *vp = v
  26534. }
  26535. } else {
  26536. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  26537. }
  26538. }
  26539. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  26540. v, changed := f.DecMapUint32Int64V(*vp, true, d)
  26541. if changed {
  26542. *vp = v
  26543. }
  26544. }
  26545. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  26546. d *Decoder) (_ map[uint32]int64, changed bool) {
  26547. dd, esep := d.d, d.hh.hasElemSeparators()
  26548. containerLen := dd.ReadMapStart()
  26549. if canChange && v == nil {
  26550. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26551. v = make(map[uint32]int64, xlen)
  26552. changed = true
  26553. }
  26554. if containerLen == 0 {
  26555. dd.ReadMapEnd()
  26556. return v, changed
  26557. }
  26558. d.depthIncr()
  26559. var mk uint32
  26560. var mv int64
  26561. hasLen := containerLen > 0
  26562. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26563. if esep {
  26564. dd.ReadMapElemKey()
  26565. }
  26566. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26567. if esep {
  26568. dd.ReadMapElemValue()
  26569. }
  26570. if dd.TryDecodeAsNil() {
  26571. if v == nil {
  26572. } else if d.h.DeleteOnNilMapValue {
  26573. delete(v, mk)
  26574. } else {
  26575. v[mk] = 0
  26576. }
  26577. continue
  26578. }
  26579. mv = dd.DecodeInt64()
  26580. if v != nil {
  26581. v[mk] = mv
  26582. }
  26583. }
  26584. dd.ReadMapEnd()
  26585. d.depthDecr()
  26586. return v, changed
  26587. }
  26588. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  26589. if rv.Kind() == reflect.Ptr {
  26590. vp := rv2i(rv).(*map[uint32]float32)
  26591. v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d)
  26592. if changed {
  26593. *vp = v
  26594. }
  26595. } else {
  26596. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  26597. }
  26598. }
  26599. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  26600. v, changed := f.DecMapUint32Float32V(*vp, true, d)
  26601. if changed {
  26602. *vp = v
  26603. }
  26604. }
  26605. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  26606. d *Decoder) (_ map[uint32]float32, changed bool) {
  26607. dd, esep := d.d, d.hh.hasElemSeparators()
  26608. containerLen := dd.ReadMapStart()
  26609. if canChange && v == nil {
  26610. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26611. v = make(map[uint32]float32, xlen)
  26612. changed = true
  26613. }
  26614. if containerLen == 0 {
  26615. dd.ReadMapEnd()
  26616. return v, changed
  26617. }
  26618. d.depthIncr()
  26619. var mk uint32
  26620. var mv float32
  26621. hasLen := containerLen > 0
  26622. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26623. if esep {
  26624. dd.ReadMapElemKey()
  26625. }
  26626. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26627. if esep {
  26628. dd.ReadMapElemValue()
  26629. }
  26630. if dd.TryDecodeAsNil() {
  26631. if v == nil {
  26632. } else if d.h.DeleteOnNilMapValue {
  26633. delete(v, mk)
  26634. } else {
  26635. v[mk] = 0
  26636. }
  26637. continue
  26638. }
  26639. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  26640. if v != nil {
  26641. v[mk] = mv
  26642. }
  26643. }
  26644. dd.ReadMapEnd()
  26645. d.depthDecr()
  26646. return v, changed
  26647. }
  26648. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  26649. if rv.Kind() == reflect.Ptr {
  26650. vp := rv2i(rv).(*map[uint32]float64)
  26651. v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d)
  26652. if changed {
  26653. *vp = v
  26654. }
  26655. } else {
  26656. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  26657. }
  26658. }
  26659. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  26660. v, changed := f.DecMapUint32Float64V(*vp, true, d)
  26661. if changed {
  26662. *vp = v
  26663. }
  26664. }
  26665. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  26666. d *Decoder) (_ map[uint32]float64, changed bool) {
  26667. dd, esep := d.d, d.hh.hasElemSeparators()
  26668. containerLen := dd.ReadMapStart()
  26669. if canChange && v == nil {
  26670. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26671. v = make(map[uint32]float64, xlen)
  26672. changed = true
  26673. }
  26674. if containerLen == 0 {
  26675. dd.ReadMapEnd()
  26676. return v, changed
  26677. }
  26678. d.depthIncr()
  26679. var mk uint32
  26680. var mv float64
  26681. hasLen := containerLen > 0
  26682. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26683. if esep {
  26684. dd.ReadMapElemKey()
  26685. }
  26686. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26687. if esep {
  26688. dd.ReadMapElemValue()
  26689. }
  26690. if dd.TryDecodeAsNil() {
  26691. if v == nil {
  26692. } else if d.h.DeleteOnNilMapValue {
  26693. delete(v, mk)
  26694. } else {
  26695. v[mk] = 0
  26696. }
  26697. continue
  26698. }
  26699. mv = dd.DecodeFloat64()
  26700. if v != nil {
  26701. v[mk] = mv
  26702. }
  26703. }
  26704. dd.ReadMapEnd()
  26705. d.depthDecr()
  26706. return v, changed
  26707. }
  26708. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  26709. if rv.Kind() == reflect.Ptr {
  26710. vp := rv2i(rv).(*map[uint32]bool)
  26711. v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d)
  26712. if changed {
  26713. *vp = v
  26714. }
  26715. } else {
  26716. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  26717. }
  26718. }
  26719. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  26720. v, changed := f.DecMapUint32BoolV(*vp, true, d)
  26721. if changed {
  26722. *vp = v
  26723. }
  26724. }
  26725. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  26726. d *Decoder) (_ map[uint32]bool, changed bool) {
  26727. dd, esep := d.d, d.hh.hasElemSeparators()
  26728. containerLen := dd.ReadMapStart()
  26729. if canChange && v == nil {
  26730. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26731. v = make(map[uint32]bool, xlen)
  26732. changed = true
  26733. }
  26734. if containerLen == 0 {
  26735. dd.ReadMapEnd()
  26736. return v, changed
  26737. }
  26738. d.depthIncr()
  26739. var mk uint32
  26740. var mv bool
  26741. hasLen := containerLen > 0
  26742. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26743. if esep {
  26744. dd.ReadMapElemKey()
  26745. }
  26746. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26747. if esep {
  26748. dd.ReadMapElemValue()
  26749. }
  26750. if dd.TryDecodeAsNil() {
  26751. if v == nil {
  26752. } else if d.h.DeleteOnNilMapValue {
  26753. delete(v, mk)
  26754. } else {
  26755. v[mk] = false
  26756. }
  26757. continue
  26758. }
  26759. mv = dd.DecodeBool()
  26760. if v != nil {
  26761. v[mk] = mv
  26762. }
  26763. }
  26764. dd.ReadMapEnd()
  26765. d.depthDecr()
  26766. return v, changed
  26767. }
  26768. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  26769. if rv.Kind() == reflect.Ptr {
  26770. vp := rv2i(rv).(*map[uint64]interface{})
  26771. v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d)
  26772. if changed {
  26773. *vp = v
  26774. }
  26775. } else {
  26776. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  26777. }
  26778. }
  26779. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  26780. v, changed := f.DecMapUint64IntfV(*vp, true, d)
  26781. if changed {
  26782. *vp = v
  26783. }
  26784. }
  26785. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  26786. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  26787. dd, esep := d.d, d.hh.hasElemSeparators()
  26788. containerLen := dd.ReadMapStart()
  26789. if canChange && v == nil {
  26790. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26791. v = make(map[uint64]interface{}, xlen)
  26792. changed = true
  26793. }
  26794. if containerLen == 0 {
  26795. dd.ReadMapEnd()
  26796. return v, changed
  26797. }
  26798. d.depthIncr()
  26799. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  26800. var mk uint64
  26801. var mv interface{}
  26802. hasLen := containerLen > 0
  26803. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26804. if esep {
  26805. dd.ReadMapElemKey()
  26806. }
  26807. mk = dd.DecodeUint64()
  26808. if esep {
  26809. dd.ReadMapElemValue()
  26810. }
  26811. if dd.TryDecodeAsNil() {
  26812. if v == nil {
  26813. } else if d.h.DeleteOnNilMapValue {
  26814. delete(v, mk)
  26815. } else {
  26816. v[mk] = nil
  26817. }
  26818. continue
  26819. }
  26820. if mapGet {
  26821. mv = v[mk]
  26822. } else {
  26823. mv = nil
  26824. }
  26825. d.decode(&mv)
  26826. if v != nil {
  26827. v[mk] = mv
  26828. }
  26829. }
  26830. dd.ReadMapEnd()
  26831. d.depthDecr()
  26832. return v, changed
  26833. }
  26834. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  26835. if rv.Kind() == reflect.Ptr {
  26836. vp := rv2i(rv).(*map[uint64]string)
  26837. v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d)
  26838. if changed {
  26839. *vp = v
  26840. }
  26841. } else {
  26842. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  26843. }
  26844. }
  26845. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  26846. v, changed := f.DecMapUint64StringV(*vp, true, d)
  26847. if changed {
  26848. *vp = v
  26849. }
  26850. }
  26851. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  26852. d *Decoder) (_ map[uint64]string, changed bool) {
  26853. dd, esep := d.d, d.hh.hasElemSeparators()
  26854. containerLen := dd.ReadMapStart()
  26855. if canChange && v == nil {
  26856. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26857. v = make(map[uint64]string, xlen)
  26858. changed = true
  26859. }
  26860. if containerLen == 0 {
  26861. dd.ReadMapEnd()
  26862. return v, changed
  26863. }
  26864. d.depthIncr()
  26865. var mk uint64
  26866. var mv string
  26867. hasLen := containerLen > 0
  26868. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26869. if esep {
  26870. dd.ReadMapElemKey()
  26871. }
  26872. mk = dd.DecodeUint64()
  26873. if esep {
  26874. dd.ReadMapElemValue()
  26875. }
  26876. if dd.TryDecodeAsNil() {
  26877. if v == nil {
  26878. } else if d.h.DeleteOnNilMapValue {
  26879. delete(v, mk)
  26880. } else {
  26881. v[mk] = ""
  26882. }
  26883. continue
  26884. }
  26885. mv = dd.DecodeString()
  26886. if v != nil {
  26887. v[mk] = mv
  26888. }
  26889. }
  26890. dd.ReadMapEnd()
  26891. d.depthDecr()
  26892. return v, changed
  26893. }
  26894. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  26895. if rv.Kind() == reflect.Ptr {
  26896. vp := rv2i(rv).(*map[uint64]uint)
  26897. v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d)
  26898. if changed {
  26899. *vp = v
  26900. }
  26901. } else {
  26902. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  26903. }
  26904. }
  26905. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  26906. v, changed := f.DecMapUint64UintV(*vp, true, d)
  26907. if changed {
  26908. *vp = v
  26909. }
  26910. }
  26911. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  26912. d *Decoder) (_ map[uint64]uint, changed bool) {
  26913. dd, esep := d.d, d.hh.hasElemSeparators()
  26914. containerLen := dd.ReadMapStart()
  26915. if canChange && v == nil {
  26916. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26917. v = make(map[uint64]uint, xlen)
  26918. changed = true
  26919. }
  26920. if containerLen == 0 {
  26921. dd.ReadMapEnd()
  26922. return v, changed
  26923. }
  26924. d.depthIncr()
  26925. var mk uint64
  26926. var mv uint
  26927. hasLen := containerLen > 0
  26928. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26929. if esep {
  26930. dd.ReadMapElemKey()
  26931. }
  26932. mk = dd.DecodeUint64()
  26933. if esep {
  26934. dd.ReadMapElemValue()
  26935. }
  26936. if dd.TryDecodeAsNil() {
  26937. if v == nil {
  26938. } else if d.h.DeleteOnNilMapValue {
  26939. delete(v, mk)
  26940. } else {
  26941. v[mk] = 0
  26942. }
  26943. continue
  26944. }
  26945. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26946. if v != nil {
  26947. v[mk] = mv
  26948. }
  26949. }
  26950. dd.ReadMapEnd()
  26951. d.depthDecr()
  26952. return v, changed
  26953. }
  26954. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  26955. if rv.Kind() == reflect.Ptr {
  26956. vp := rv2i(rv).(*map[uint64]uint8)
  26957. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d)
  26958. if changed {
  26959. *vp = v
  26960. }
  26961. } else {
  26962. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  26963. }
  26964. }
  26965. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  26966. v, changed := f.DecMapUint64Uint8V(*vp, true, d)
  26967. if changed {
  26968. *vp = v
  26969. }
  26970. }
  26971. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  26972. d *Decoder) (_ map[uint64]uint8, changed bool) {
  26973. dd, esep := d.d, d.hh.hasElemSeparators()
  26974. containerLen := dd.ReadMapStart()
  26975. if canChange && v == nil {
  26976. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26977. v = make(map[uint64]uint8, xlen)
  26978. changed = true
  26979. }
  26980. if containerLen == 0 {
  26981. dd.ReadMapEnd()
  26982. return v, changed
  26983. }
  26984. d.depthIncr()
  26985. var mk uint64
  26986. var mv uint8
  26987. hasLen := containerLen > 0
  26988. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26989. if esep {
  26990. dd.ReadMapElemKey()
  26991. }
  26992. mk = dd.DecodeUint64()
  26993. if esep {
  26994. dd.ReadMapElemValue()
  26995. }
  26996. if dd.TryDecodeAsNil() {
  26997. if v == nil {
  26998. } else if d.h.DeleteOnNilMapValue {
  26999. delete(v, mk)
  27000. } else {
  27001. v[mk] = 0
  27002. }
  27003. continue
  27004. }
  27005. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  27006. if v != nil {
  27007. v[mk] = mv
  27008. }
  27009. }
  27010. dd.ReadMapEnd()
  27011. d.depthDecr()
  27012. return v, changed
  27013. }
  27014. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  27015. if rv.Kind() == reflect.Ptr {
  27016. vp := rv2i(rv).(*map[uint64]uint16)
  27017. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d)
  27018. if changed {
  27019. *vp = v
  27020. }
  27021. } else {
  27022. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  27023. }
  27024. }
  27025. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  27026. v, changed := f.DecMapUint64Uint16V(*vp, true, d)
  27027. if changed {
  27028. *vp = v
  27029. }
  27030. }
  27031. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  27032. d *Decoder) (_ map[uint64]uint16, changed bool) {
  27033. dd, esep := d.d, d.hh.hasElemSeparators()
  27034. containerLen := dd.ReadMapStart()
  27035. if canChange && v == nil {
  27036. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27037. v = make(map[uint64]uint16, xlen)
  27038. changed = true
  27039. }
  27040. if containerLen == 0 {
  27041. dd.ReadMapEnd()
  27042. return v, changed
  27043. }
  27044. d.depthIncr()
  27045. var mk uint64
  27046. var mv uint16
  27047. hasLen := containerLen > 0
  27048. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27049. if esep {
  27050. dd.ReadMapElemKey()
  27051. }
  27052. mk = dd.DecodeUint64()
  27053. if esep {
  27054. dd.ReadMapElemValue()
  27055. }
  27056. if dd.TryDecodeAsNil() {
  27057. if v == nil {
  27058. } else if d.h.DeleteOnNilMapValue {
  27059. delete(v, mk)
  27060. } else {
  27061. v[mk] = 0
  27062. }
  27063. continue
  27064. }
  27065. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  27066. if v != nil {
  27067. v[mk] = mv
  27068. }
  27069. }
  27070. dd.ReadMapEnd()
  27071. d.depthDecr()
  27072. return v, changed
  27073. }
  27074. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  27075. if rv.Kind() == reflect.Ptr {
  27076. vp := rv2i(rv).(*map[uint64]uint32)
  27077. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d)
  27078. if changed {
  27079. *vp = v
  27080. }
  27081. } else {
  27082. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  27083. }
  27084. }
  27085. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  27086. v, changed := f.DecMapUint64Uint32V(*vp, true, d)
  27087. if changed {
  27088. *vp = v
  27089. }
  27090. }
  27091. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  27092. d *Decoder) (_ map[uint64]uint32, changed bool) {
  27093. dd, esep := d.d, d.hh.hasElemSeparators()
  27094. containerLen := dd.ReadMapStart()
  27095. if canChange && v == nil {
  27096. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27097. v = make(map[uint64]uint32, xlen)
  27098. changed = true
  27099. }
  27100. if containerLen == 0 {
  27101. dd.ReadMapEnd()
  27102. return v, changed
  27103. }
  27104. d.depthIncr()
  27105. var mk uint64
  27106. var mv uint32
  27107. hasLen := containerLen > 0
  27108. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27109. if esep {
  27110. dd.ReadMapElemKey()
  27111. }
  27112. mk = dd.DecodeUint64()
  27113. if esep {
  27114. dd.ReadMapElemValue()
  27115. }
  27116. if dd.TryDecodeAsNil() {
  27117. if v == nil {
  27118. } else if d.h.DeleteOnNilMapValue {
  27119. delete(v, mk)
  27120. } else {
  27121. v[mk] = 0
  27122. }
  27123. continue
  27124. }
  27125. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  27126. if v != nil {
  27127. v[mk] = mv
  27128. }
  27129. }
  27130. dd.ReadMapEnd()
  27131. d.depthDecr()
  27132. return v, changed
  27133. }
  27134. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  27135. if rv.Kind() == reflect.Ptr {
  27136. vp := rv2i(rv).(*map[uint64]uint64)
  27137. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d)
  27138. if changed {
  27139. *vp = v
  27140. }
  27141. } else {
  27142. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  27143. }
  27144. }
  27145. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  27146. v, changed := f.DecMapUint64Uint64V(*vp, true, d)
  27147. if changed {
  27148. *vp = v
  27149. }
  27150. }
  27151. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  27152. d *Decoder) (_ map[uint64]uint64, changed bool) {
  27153. dd, esep := d.d, d.hh.hasElemSeparators()
  27154. containerLen := dd.ReadMapStart()
  27155. if canChange && v == nil {
  27156. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27157. v = make(map[uint64]uint64, xlen)
  27158. changed = true
  27159. }
  27160. if containerLen == 0 {
  27161. dd.ReadMapEnd()
  27162. return v, changed
  27163. }
  27164. d.depthIncr()
  27165. var mk uint64
  27166. var mv uint64
  27167. hasLen := containerLen > 0
  27168. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27169. if esep {
  27170. dd.ReadMapElemKey()
  27171. }
  27172. mk = dd.DecodeUint64()
  27173. if esep {
  27174. dd.ReadMapElemValue()
  27175. }
  27176. if dd.TryDecodeAsNil() {
  27177. if v == nil {
  27178. } else if d.h.DeleteOnNilMapValue {
  27179. delete(v, mk)
  27180. } else {
  27181. v[mk] = 0
  27182. }
  27183. continue
  27184. }
  27185. mv = dd.DecodeUint64()
  27186. if v != nil {
  27187. v[mk] = mv
  27188. }
  27189. }
  27190. dd.ReadMapEnd()
  27191. d.depthDecr()
  27192. return v, changed
  27193. }
  27194. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  27195. if rv.Kind() == reflect.Ptr {
  27196. vp := rv2i(rv).(*map[uint64]uintptr)
  27197. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d)
  27198. if changed {
  27199. *vp = v
  27200. }
  27201. } else {
  27202. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  27203. }
  27204. }
  27205. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  27206. v, changed := f.DecMapUint64UintptrV(*vp, true, d)
  27207. if changed {
  27208. *vp = v
  27209. }
  27210. }
  27211. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  27212. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  27213. dd, esep := d.d, d.hh.hasElemSeparators()
  27214. containerLen := dd.ReadMapStart()
  27215. if canChange && v == nil {
  27216. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27217. v = make(map[uint64]uintptr, xlen)
  27218. changed = true
  27219. }
  27220. if containerLen == 0 {
  27221. dd.ReadMapEnd()
  27222. return v, changed
  27223. }
  27224. d.depthIncr()
  27225. var mk uint64
  27226. var mv uintptr
  27227. hasLen := containerLen > 0
  27228. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27229. if esep {
  27230. dd.ReadMapElemKey()
  27231. }
  27232. mk = dd.DecodeUint64()
  27233. if esep {
  27234. dd.ReadMapElemValue()
  27235. }
  27236. if dd.TryDecodeAsNil() {
  27237. if v == nil {
  27238. } else if d.h.DeleteOnNilMapValue {
  27239. delete(v, mk)
  27240. } else {
  27241. v[mk] = 0
  27242. }
  27243. continue
  27244. }
  27245. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27246. if v != nil {
  27247. v[mk] = mv
  27248. }
  27249. }
  27250. dd.ReadMapEnd()
  27251. d.depthDecr()
  27252. return v, changed
  27253. }
  27254. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  27255. if rv.Kind() == reflect.Ptr {
  27256. vp := rv2i(rv).(*map[uint64]int)
  27257. v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d)
  27258. if changed {
  27259. *vp = v
  27260. }
  27261. } else {
  27262. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  27263. }
  27264. }
  27265. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  27266. v, changed := f.DecMapUint64IntV(*vp, true, d)
  27267. if changed {
  27268. *vp = v
  27269. }
  27270. }
  27271. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  27272. d *Decoder) (_ map[uint64]int, changed bool) {
  27273. dd, esep := d.d, d.hh.hasElemSeparators()
  27274. containerLen := dd.ReadMapStart()
  27275. if canChange && v == nil {
  27276. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27277. v = make(map[uint64]int, xlen)
  27278. changed = true
  27279. }
  27280. if containerLen == 0 {
  27281. dd.ReadMapEnd()
  27282. return v, changed
  27283. }
  27284. d.depthIncr()
  27285. var mk uint64
  27286. var mv int
  27287. hasLen := containerLen > 0
  27288. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27289. if esep {
  27290. dd.ReadMapElemKey()
  27291. }
  27292. mk = dd.DecodeUint64()
  27293. if esep {
  27294. dd.ReadMapElemValue()
  27295. }
  27296. if dd.TryDecodeAsNil() {
  27297. if v == nil {
  27298. } else if d.h.DeleteOnNilMapValue {
  27299. delete(v, mk)
  27300. } else {
  27301. v[mk] = 0
  27302. }
  27303. continue
  27304. }
  27305. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27306. if v != nil {
  27307. v[mk] = mv
  27308. }
  27309. }
  27310. dd.ReadMapEnd()
  27311. d.depthDecr()
  27312. return v, changed
  27313. }
  27314. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  27315. if rv.Kind() == reflect.Ptr {
  27316. vp := rv2i(rv).(*map[uint64]int8)
  27317. v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d)
  27318. if changed {
  27319. *vp = v
  27320. }
  27321. } else {
  27322. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  27323. }
  27324. }
  27325. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  27326. v, changed := f.DecMapUint64Int8V(*vp, true, d)
  27327. if changed {
  27328. *vp = v
  27329. }
  27330. }
  27331. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  27332. d *Decoder) (_ map[uint64]int8, changed bool) {
  27333. dd, esep := d.d, d.hh.hasElemSeparators()
  27334. containerLen := dd.ReadMapStart()
  27335. if canChange && v == nil {
  27336. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27337. v = make(map[uint64]int8, xlen)
  27338. changed = true
  27339. }
  27340. if containerLen == 0 {
  27341. dd.ReadMapEnd()
  27342. return v, changed
  27343. }
  27344. d.depthIncr()
  27345. var mk uint64
  27346. var mv int8
  27347. hasLen := containerLen > 0
  27348. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27349. if esep {
  27350. dd.ReadMapElemKey()
  27351. }
  27352. mk = dd.DecodeUint64()
  27353. if esep {
  27354. dd.ReadMapElemValue()
  27355. }
  27356. if dd.TryDecodeAsNil() {
  27357. if v == nil {
  27358. } else if d.h.DeleteOnNilMapValue {
  27359. delete(v, mk)
  27360. } else {
  27361. v[mk] = 0
  27362. }
  27363. continue
  27364. }
  27365. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  27366. if v != nil {
  27367. v[mk] = mv
  27368. }
  27369. }
  27370. dd.ReadMapEnd()
  27371. d.depthDecr()
  27372. return v, changed
  27373. }
  27374. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  27375. if rv.Kind() == reflect.Ptr {
  27376. vp := rv2i(rv).(*map[uint64]int16)
  27377. v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d)
  27378. if changed {
  27379. *vp = v
  27380. }
  27381. } else {
  27382. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  27383. }
  27384. }
  27385. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  27386. v, changed := f.DecMapUint64Int16V(*vp, true, d)
  27387. if changed {
  27388. *vp = v
  27389. }
  27390. }
  27391. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  27392. d *Decoder) (_ map[uint64]int16, changed bool) {
  27393. dd, esep := d.d, d.hh.hasElemSeparators()
  27394. containerLen := dd.ReadMapStart()
  27395. if canChange && v == nil {
  27396. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27397. v = make(map[uint64]int16, xlen)
  27398. changed = true
  27399. }
  27400. if containerLen == 0 {
  27401. dd.ReadMapEnd()
  27402. return v, changed
  27403. }
  27404. d.depthIncr()
  27405. var mk uint64
  27406. var mv int16
  27407. hasLen := containerLen > 0
  27408. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27409. if esep {
  27410. dd.ReadMapElemKey()
  27411. }
  27412. mk = dd.DecodeUint64()
  27413. if esep {
  27414. dd.ReadMapElemValue()
  27415. }
  27416. if dd.TryDecodeAsNil() {
  27417. if v == nil {
  27418. } else if d.h.DeleteOnNilMapValue {
  27419. delete(v, mk)
  27420. } else {
  27421. v[mk] = 0
  27422. }
  27423. continue
  27424. }
  27425. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  27426. if v != nil {
  27427. v[mk] = mv
  27428. }
  27429. }
  27430. dd.ReadMapEnd()
  27431. d.depthDecr()
  27432. return v, changed
  27433. }
  27434. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  27435. if rv.Kind() == reflect.Ptr {
  27436. vp := rv2i(rv).(*map[uint64]int32)
  27437. v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d)
  27438. if changed {
  27439. *vp = v
  27440. }
  27441. } else {
  27442. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  27443. }
  27444. }
  27445. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  27446. v, changed := f.DecMapUint64Int32V(*vp, true, d)
  27447. if changed {
  27448. *vp = v
  27449. }
  27450. }
  27451. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  27452. d *Decoder) (_ map[uint64]int32, changed bool) {
  27453. dd, esep := d.d, d.hh.hasElemSeparators()
  27454. containerLen := dd.ReadMapStart()
  27455. if canChange && v == nil {
  27456. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27457. v = make(map[uint64]int32, xlen)
  27458. changed = true
  27459. }
  27460. if containerLen == 0 {
  27461. dd.ReadMapEnd()
  27462. return v, changed
  27463. }
  27464. d.depthIncr()
  27465. var mk uint64
  27466. var mv int32
  27467. hasLen := containerLen > 0
  27468. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27469. if esep {
  27470. dd.ReadMapElemKey()
  27471. }
  27472. mk = dd.DecodeUint64()
  27473. if esep {
  27474. dd.ReadMapElemValue()
  27475. }
  27476. if dd.TryDecodeAsNil() {
  27477. if v == nil {
  27478. } else if d.h.DeleteOnNilMapValue {
  27479. delete(v, mk)
  27480. } else {
  27481. v[mk] = 0
  27482. }
  27483. continue
  27484. }
  27485. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  27486. if v != nil {
  27487. v[mk] = mv
  27488. }
  27489. }
  27490. dd.ReadMapEnd()
  27491. d.depthDecr()
  27492. return v, changed
  27493. }
  27494. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  27495. if rv.Kind() == reflect.Ptr {
  27496. vp := rv2i(rv).(*map[uint64]int64)
  27497. v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d)
  27498. if changed {
  27499. *vp = v
  27500. }
  27501. } else {
  27502. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  27503. }
  27504. }
  27505. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  27506. v, changed := f.DecMapUint64Int64V(*vp, true, d)
  27507. if changed {
  27508. *vp = v
  27509. }
  27510. }
  27511. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  27512. d *Decoder) (_ map[uint64]int64, changed bool) {
  27513. dd, esep := d.d, d.hh.hasElemSeparators()
  27514. containerLen := dd.ReadMapStart()
  27515. if canChange && v == nil {
  27516. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27517. v = make(map[uint64]int64, xlen)
  27518. changed = true
  27519. }
  27520. if containerLen == 0 {
  27521. dd.ReadMapEnd()
  27522. return v, changed
  27523. }
  27524. d.depthIncr()
  27525. var mk uint64
  27526. var mv int64
  27527. hasLen := containerLen > 0
  27528. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27529. if esep {
  27530. dd.ReadMapElemKey()
  27531. }
  27532. mk = dd.DecodeUint64()
  27533. if esep {
  27534. dd.ReadMapElemValue()
  27535. }
  27536. if dd.TryDecodeAsNil() {
  27537. if v == nil {
  27538. } else if d.h.DeleteOnNilMapValue {
  27539. delete(v, mk)
  27540. } else {
  27541. v[mk] = 0
  27542. }
  27543. continue
  27544. }
  27545. mv = dd.DecodeInt64()
  27546. if v != nil {
  27547. v[mk] = mv
  27548. }
  27549. }
  27550. dd.ReadMapEnd()
  27551. d.depthDecr()
  27552. return v, changed
  27553. }
  27554. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  27555. if rv.Kind() == reflect.Ptr {
  27556. vp := rv2i(rv).(*map[uint64]float32)
  27557. v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d)
  27558. if changed {
  27559. *vp = v
  27560. }
  27561. } else {
  27562. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  27563. }
  27564. }
  27565. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  27566. v, changed := f.DecMapUint64Float32V(*vp, true, d)
  27567. if changed {
  27568. *vp = v
  27569. }
  27570. }
  27571. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  27572. d *Decoder) (_ map[uint64]float32, changed bool) {
  27573. dd, esep := d.d, d.hh.hasElemSeparators()
  27574. containerLen := dd.ReadMapStart()
  27575. if canChange && v == nil {
  27576. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27577. v = make(map[uint64]float32, xlen)
  27578. changed = true
  27579. }
  27580. if containerLen == 0 {
  27581. dd.ReadMapEnd()
  27582. return v, changed
  27583. }
  27584. d.depthIncr()
  27585. var mk uint64
  27586. var mv float32
  27587. hasLen := containerLen > 0
  27588. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27589. if esep {
  27590. dd.ReadMapElemKey()
  27591. }
  27592. mk = dd.DecodeUint64()
  27593. if esep {
  27594. dd.ReadMapElemValue()
  27595. }
  27596. if dd.TryDecodeAsNil() {
  27597. if v == nil {
  27598. } else if d.h.DeleteOnNilMapValue {
  27599. delete(v, mk)
  27600. } else {
  27601. v[mk] = 0
  27602. }
  27603. continue
  27604. }
  27605. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  27606. if v != nil {
  27607. v[mk] = mv
  27608. }
  27609. }
  27610. dd.ReadMapEnd()
  27611. d.depthDecr()
  27612. return v, changed
  27613. }
  27614. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  27615. if rv.Kind() == reflect.Ptr {
  27616. vp := rv2i(rv).(*map[uint64]float64)
  27617. v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d)
  27618. if changed {
  27619. *vp = v
  27620. }
  27621. } else {
  27622. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  27623. }
  27624. }
  27625. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  27626. v, changed := f.DecMapUint64Float64V(*vp, true, d)
  27627. if changed {
  27628. *vp = v
  27629. }
  27630. }
  27631. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  27632. d *Decoder) (_ map[uint64]float64, changed bool) {
  27633. dd, esep := d.d, d.hh.hasElemSeparators()
  27634. containerLen := dd.ReadMapStart()
  27635. if canChange && v == nil {
  27636. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27637. v = make(map[uint64]float64, xlen)
  27638. changed = true
  27639. }
  27640. if containerLen == 0 {
  27641. dd.ReadMapEnd()
  27642. return v, changed
  27643. }
  27644. d.depthIncr()
  27645. var mk uint64
  27646. var mv float64
  27647. hasLen := containerLen > 0
  27648. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27649. if esep {
  27650. dd.ReadMapElemKey()
  27651. }
  27652. mk = dd.DecodeUint64()
  27653. if esep {
  27654. dd.ReadMapElemValue()
  27655. }
  27656. if dd.TryDecodeAsNil() {
  27657. if v == nil {
  27658. } else if d.h.DeleteOnNilMapValue {
  27659. delete(v, mk)
  27660. } else {
  27661. v[mk] = 0
  27662. }
  27663. continue
  27664. }
  27665. mv = dd.DecodeFloat64()
  27666. if v != nil {
  27667. v[mk] = mv
  27668. }
  27669. }
  27670. dd.ReadMapEnd()
  27671. d.depthDecr()
  27672. return v, changed
  27673. }
  27674. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  27675. if rv.Kind() == reflect.Ptr {
  27676. vp := rv2i(rv).(*map[uint64]bool)
  27677. v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d)
  27678. if changed {
  27679. *vp = v
  27680. }
  27681. } else {
  27682. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  27683. }
  27684. }
  27685. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  27686. v, changed := f.DecMapUint64BoolV(*vp, true, d)
  27687. if changed {
  27688. *vp = v
  27689. }
  27690. }
  27691. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  27692. d *Decoder) (_ map[uint64]bool, changed bool) {
  27693. dd, esep := d.d, d.hh.hasElemSeparators()
  27694. containerLen := dd.ReadMapStart()
  27695. if canChange && v == nil {
  27696. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27697. v = make(map[uint64]bool, xlen)
  27698. changed = true
  27699. }
  27700. if containerLen == 0 {
  27701. dd.ReadMapEnd()
  27702. return v, changed
  27703. }
  27704. d.depthIncr()
  27705. var mk uint64
  27706. var mv bool
  27707. hasLen := containerLen > 0
  27708. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27709. if esep {
  27710. dd.ReadMapElemKey()
  27711. }
  27712. mk = dd.DecodeUint64()
  27713. if esep {
  27714. dd.ReadMapElemValue()
  27715. }
  27716. if dd.TryDecodeAsNil() {
  27717. if v == nil {
  27718. } else if d.h.DeleteOnNilMapValue {
  27719. delete(v, mk)
  27720. } else {
  27721. v[mk] = false
  27722. }
  27723. continue
  27724. }
  27725. mv = dd.DecodeBool()
  27726. if v != nil {
  27727. v[mk] = mv
  27728. }
  27729. }
  27730. dd.ReadMapEnd()
  27731. d.depthDecr()
  27732. return v, changed
  27733. }
  27734. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  27735. if rv.Kind() == reflect.Ptr {
  27736. vp := rv2i(rv).(*map[uintptr]interface{})
  27737. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d)
  27738. if changed {
  27739. *vp = v
  27740. }
  27741. } else {
  27742. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  27743. }
  27744. }
  27745. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  27746. v, changed := f.DecMapUintptrIntfV(*vp, true, d)
  27747. if changed {
  27748. *vp = v
  27749. }
  27750. }
  27751. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  27752. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  27753. dd, esep := d.d, d.hh.hasElemSeparators()
  27754. containerLen := dd.ReadMapStart()
  27755. if canChange && v == nil {
  27756. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27757. v = make(map[uintptr]interface{}, xlen)
  27758. changed = true
  27759. }
  27760. if containerLen == 0 {
  27761. dd.ReadMapEnd()
  27762. return v, changed
  27763. }
  27764. d.depthIncr()
  27765. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  27766. var mk uintptr
  27767. var mv interface{}
  27768. hasLen := containerLen > 0
  27769. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27770. if esep {
  27771. dd.ReadMapElemKey()
  27772. }
  27773. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27774. if esep {
  27775. dd.ReadMapElemValue()
  27776. }
  27777. if dd.TryDecodeAsNil() {
  27778. if v == nil {
  27779. } else if d.h.DeleteOnNilMapValue {
  27780. delete(v, mk)
  27781. } else {
  27782. v[mk] = nil
  27783. }
  27784. continue
  27785. }
  27786. if mapGet {
  27787. mv = v[mk]
  27788. } else {
  27789. mv = nil
  27790. }
  27791. d.decode(&mv)
  27792. if v != nil {
  27793. v[mk] = mv
  27794. }
  27795. }
  27796. dd.ReadMapEnd()
  27797. d.depthDecr()
  27798. return v, changed
  27799. }
  27800. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  27801. if rv.Kind() == reflect.Ptr {
  27802. vp := rv2i(rv).(*map[uintptr]string)
  27803. v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d)
  27804. if changed {
  27805. *vp = v
  27806. }
  27807. } else {
  27808. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  27809. }
  27810. }
  27811. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  27812. v, changed := f.DecMapUintptrStringV(*vp, true, d)
  27813. if changed {
  27814. *vp = v
  27815. }
  27816. }
  27817. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  27818. d *Decoder) (_ map[uintptr]string, changed bool) {
  27819. dd, esep := d.d, d.hh.hasElemSeparators()
  27820. containerLen := dd.ReadMapStart()
  27821. if canChange && v == nil {
  27822. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27823. v = make(map[uintptr]string, xlen)
  27824. changed = true
  27825. }
  27826. if containerLen == 0 {
  27827. dd.ReadMapEnd()
  27828. return v, changed
  27829. }
  27830. d.depthIncr()
  27831. var mk uintptr
  27832. var mv string
  27833. hasLen := containerLen > 0
  27834. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27835. if esep {
  27836. dd.ReadMapElemKey()
  27837. }
  27838. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27839. if esep {
  27840. dd.ReadMapElemValue()
  27841. }
  27842. if dd.TryDecodeAsNil() {
  27843. if v == nil {
  27844. } else if d.h.DeleteOnNilMapValue {
  27845. delete(v, mk)
  27846. } else {
  27847. v[mk] = ""
  27848. }
  27849. continue
  27850. }
  27851. mv = dd.DecodeString()
  27852. if v != nil {
  27853. v[mk] = mv
  27854. }
  27855. }
  27856. dd.ReadMapEnd()
  27857. d.depthDecr()
  27858. return v, changed
  27859. }
  27860. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  27861. if rv.Kind() == reflect.Ptr {
  27862. vp := rv2i(rv).(*map[uintptr]uint)
  27863. v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d)
  27864. if changed {
  27865. *vp = v
  27866. }
  27867. } else {
  27868. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  27869. }
  27870. }
  27871. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  27872. v, changed := f.DecMapUintptrUintV(*vp, true, d)
  27873. if changed {
  27874. *vp = v
  27875. }
  27876. }
  27877. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  27878. d *Decoder) (_ map[uintptr]uint, changed bool) {
  27879. dd, esep := d.d, d.hh.hasElemSeparators()
  27880. containerLen := dd.ReadMapStart()
  27881. if canChange && v == nil {
  27882. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27883. v = make(map[uintptr]uint, xlen)
  27884. changed = true
  27885. }
  27886. if containerLen == 0 {
  27887. dd.ReadMapEnd()
  27888. return v, changed
  27889. }
  27890. d.depthIncr()
  27891. var mk uintptr
  27892. var mv uint
  27893. hasLen := containerLen > 0
  27894. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27895. if esep {
  27896. dd.ReadMapElemKey()
  27897. }
  27898. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27899. if esep {
  27900. dd.ReadMapElemValue()
  27901. }
  27902. if dd.TryDecodeAsNil() {
  27903. if v == nil {
  27904. } else if d.h.DeleteOnNilMapValue {
  27905. delete(v, mk)
  27906. } else {
  27907. v[mk] = 0
  27908. }
  27909. continue
  27910. }
  27911. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27912. if v != nil {
  27913. v[mk] = mv
  27914. }
  27915. }
  27916. dd.ReadMapEnd()
  27917. d.depthDecr()
  27918. return v, changed
  27919. }
  27920. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  27921. if rv.Kind() == reflect.Ptr {
  27922. vp := rv2i(rv).(*map[uintptr]uint8)
  27923. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d)
  27924. if changed {
  27925. *vp = v
  27926. }
  27927. } else {
  27928. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  27929. }
  27930. }
  27931. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  27932. v, changed := f.DecMapUintptrUint8V(*vp, true, d)
  27933. if changed {
  27934. *vp = v
  27935. }
  27936. }
  27937. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  27938. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  27939. dd, esep := d.d, d.hh.hasElemSeparators()
  27940. containerLen := dd.ReadMapStart()
  27941. if canChange && v == nil {
  27942. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27943. v = make(map[uintptr]uint8, xlen)
  27944. changed = true
  27945. }
  27946. if containerLen == 0 {
  27947. dd.ReadMapEnd()
  27948. return v, changed
  27949. }
  27950. d.depthIncr()
  27951. var mk uintptr
  27952. var mv uint8
  27953. hasLen := containerLen > 0
  27954. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27955. if esep {
  27956. dd.ReadMapElemKey()
  27957. }
  27958. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27959. if esep {
  27960. dd.ReadMapElemValue()
  27961. }
  27962. if dd.TryDecodeAsNil() {
  27963. if v == nil {
  27964. } else if d.h.DeleteOnNilMapValue {
  27965. delete(v, mk)
  27966. } else {
  27967. v[mk] = 0
  27968. }
  27969. continue
  27970. }
  27971. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  27972. if v != nil {
  27973. v[mk] = mv
  27974. }
  27975. }
  27976. dd.ReadMapEnd()
  27977. d.depthDecr()
  27978. return v, changed
  27979. }
  27980. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  27981. if rv.Kind() == reflect.Ptr {
  27982. vp := rv2i(rv).(*map[uintptr]uint16)
  27983. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d)
  27984. if changed {
  27985. *vp = v
  27986. }
  27987. } else {
  27988. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  27989. }
  27990. }
  27991. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  27992. v, changed := f.DecMapUintptrUint16V(*vp, true, d)
  27993. if changed {
  27994. *vp = v
  27995. }
  27996. }
  27997. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  27998. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  27999. dd, esep := d.d, d.hh.hasElemSeparators()
  28000. containerLen := dd.ReadMapStart()
  28001. if canChange && v == nil {
  28002. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28003. v = make(map[uintptr]uint16, xlen)
  28004. changed = true
  28005. }
  28006. if containerLen == 0 {
  28007. dd.ReadMapEnd()
  28008. return v, changed
  28009. }
  28010. d.depthIncr()
  28011. var mk uintptr
  28012. var mv uint16
  28013. hasLen := containerLen > 0
  28014. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28015. if esep {
  28016. dd.ReadMapElemKey()
  28017. }
  28018. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28019. if esep {
  28020. dd.ReadMapElemValue()
  28021. }
  28022. if dd.TryDecodeAsNil() {
  28023. if v == nil {
  28024. } else if d.h.DeleteOnNilMapValue {
  28025. delete(v, mk)
  28026. } else {
  28027. v[mk] = 0
  28028. }
  28029. continue
  28030. }
  28031. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  28032. if v != nil {
  28033. v[mk] = mv
  28034. }
  28035. }
  28036. dd.ReadMapEnd()
  28037. d.depthDecr()
  28038. return v, changed
  28039. }
  28040. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  28041. if rv.Kind() == reflect.Ptr {
  28042. vp := rv2i(rv).(*map[uintptr]uint32)
  28043. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d)
  28044. if changed {
  28045. *vp = v
  28046. }
  28047. } else {
  28048. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  28049. }
  28050. }
  28051. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  28052. v, changed := f.DecMapUintptrUint32V(*vp, true, d)
  28053. if changed {
  28054. *vp = v
  28055. }
  28056. }
  28057. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  28058. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  28059. dd, esep := d.d, d.hh.hasElemSeparators()
  28060. containerLen := dd.ReadMapStart()
  28061. if canChange && v == nil {
  28062. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28063. v = make(map[uintptr]uint32, xlen)
  28064. changed = true
  28065. }
  28066. if containerLen == 0 {
  28067. dd.ReadMapEnd()
  28068. return v, changed
  28069. }
  28070. d.depthIncr()
  28071. var mk uintptr
  28072. var mv uint32
  28073. hasLen := containerLen > 0
  28074. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28075. if esep {
  28076. dd.ReadMapElemKey()
  28077. }
  28078. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28079. if esep {
  28080. dd.ReadMapElemValue()
  28081. }
  28082. if dd.TryDecodeAsNil() {
  28083. if v == nil {
  28084. } else if d.h.DeleteOnNilMapValue {
  28085. delete(v, mk)
  28086. } else {
  28087. v[mk] = 0
  28088. }
  28089. continue
  28090. }
  28091. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  28092. if v != nil {
  28093. v[mk] = mv
  28094. }
  28095. }
  28096. dd.ReadMapEnd()
  28097. d.depthDecr()
  28098. return v, changed
  28099. }
  28100. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  28101. if rv.Kind() == reflect.Ptr {
  28102. vp := rv2i(rv).(*map[uintptr]uint64)
  28103. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d)
  28104. if changed {
  28105. *vp = v
  28106. }
  28107. } else {
  28108. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  28109. }
  28110. }
  28111. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  28112. v, changed := f.DecMapUintptrUint64V(*vp, true, d)
  28113. if changed {
  28114. *vp = v
  28115. }
  28116. }
  28117. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  28118. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  28119. dd, esep := d.d, d.hh.hasElemSeparators()
  28120. containerLen := dd.ReadMapStart()
  28121. if canChange && v == nil {
  28122. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28123. v = make(map[uintptr]uint64, xlen)
  28124. changed = true
  28125. }
  28126. if containerLen == 0 {
  28127. dd.ReadMapEnd()
  28128. return v, changed
  28129. }
  28130. d.depthIncr()
  28131. var mk uintptr
  28132. var mv uint64
  28133. hasLen := containerLen > 0
  28134. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28135. if esep {
  28136. dd.ReadMapElemKey()
  28137. }
  28138. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28139. if esep {
  28140. dd.ReadMapElemValue()
  28141. }
  28142. if dd.TryDecodeAsNil() {
  28143. if v == nil {
  28144. } else if d.h.DeleteOnNilMapValue {
  28145. delete(v, mk)
  28146. } else {
  28147. v[mk] = 0
  28148. }
  28149. continue
  28150. }
  28151. mv = dd.DecodeUint64()
  28152. if v != nil {
  28153. v[mk] = mv
  28154. }
  28155. }
  28156. dd.ReadMapEnd()
  28157. d.depthDecr()
  28158. return v, changed
  28159. }
  28160. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  28161. if rv.Kind() == reflect.Ptr {
  28162. vp := rv2i(rv).(*map[uintptr]uintptr)
  28163. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d)
  28164. if changed {
  28165. *vp = v
  28166. }
  28167. } else {
  28168. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  28169. }
  28170. }
  28171. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  28172. v, changed := f.DecMapUintptrUintptrV(*vp, true, d)
  28173. if changed {
  28174. *vp = v
  28175. }
  28176. }
  28177. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  28178. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  28179. dd, esep := d.d, d.hh.hasElemSeparators()
  28180. containerLen := dd.ReadMapStart()
  28181. if canChange && v == nil {
  28182. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28183. v = make(map[uintptr]uintptr, xlen)
  28184. changed = true
  28185. }
  28186. if containerLen == 0 {
  28187. dd.ReadMapEnd()
  28188. return v, changed
  28189. }
  28190. d.depthIncr()
  28191. var mk uintptr
  28192. var mv uintptr
  28193. hasLen := containerLen > 0
  28194. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28195. if esep {
  28196. dd.ReadMapElemKey()
  28197. }
  28198. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28199. if esep {
  28200. dd.ReadMapElemValue()
  28201. }
  28202. if dd.TryDecodeAsNil() {
  28203. if v == nil {
  28204. } else if d.h.DeleteOnNilMapValue {
  28205. delete(v, mk)
  28206. } else {
  28207. v[mk] = 0
  28208. }
  28209. continue
  28210. }
  28211. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28212. if v != nil {
  28213. v[mk] = mv
  28214. }
  28215. }
  28216. dd.ReadMapEnd()
  28217. d.depthDecr()
  28218. return v, changed
  28219. }
  28220. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  28221. if rv.Kind() == reflect.Ptr {
  28222. vp := rv2i(rv).(*map[uintptr]int)
  28223. v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d)
  28224. if changed {
  28225. *vp = v
  28226. }
  28227. } else {
  28228. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  28229. }
  28230. }
  28231. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  28232. v, changed := f.DecMapUintptrIntV(*vp, true, d)
  28233. if changed {
  28234. *vp = v
  28235. }
  28236. }
  28237. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  28238. d *Decoder) (_ map[uintptr]int, changed bool) {
  28239. dd, esep := d.d, d.hh.hasElemSeparators()
  28240. containerLen := dd.ReadMapStart()
  28241. if canChange && v == nil {
  28242. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28243. v = make(map[uintptr]int, xlen)
  28244. changed = true
  28245. }
  28246. if containerLen == 0 {
  28247. dd.ReadMapEnd()
  28248. return v, changed
  28249. }
  28250. d.depthIncr()
  28251. var mk uintptr
  28252. var mv int
  28253. hasLen := containerLen > 0
  28254. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28255. if esep {
  28256. dd.ReadMapElemKey()
  28257. }
  28258. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28259. if esep {
  28260. dd.ReadMapElemValue()
  28261. }
  28262. if dd.TryDecodeAsNil() {
  28263. if v == nil {
  28264. } else if d.h.DeleteOnNilMapValue {
  28265. delete(v, mk)
  28266. } else {
  28267. v[mk] = 0
  28268. }
  28269. continue
  28270. }
  28271. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28272. if v != nil {
  28273. v[mk] = mv
  28274. }
  28275. }
  28276. dd.ReadMapEnd()
  28277. d.depthDecr()
  28278. return v, changed
  28279. }
  28280. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  28281. if rv.Kind() == reflect.Ptr {
  28282. vp := rv2i(rv).(*map[uintptr]int8)
  28283. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d)
  28284. if changed {
  28285. *vp = v
  28286. }
  28287. } else {
  28288. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  28289. }
  28290. }
  28291. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  28292. v, changed := f.DecMapUintptrInt8V(*vp, true, d)
  28293. if changed {
  28294. *vp = v
  28295. }
  28296. }
  28297. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  28298. d *Decoder) (_ map[uintptr]int8, changed bool) {
  28299. dd, esep := d.d, d.hh.hasElemSeparators()
  28300. containerLen := dd.ReadMapStart()
  28301. if canChange && v == nil {
  28302. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28303. v = make(map[uintptr]int8, xlen)
  28304. changed = true
  28305. }
  28306. if containerLen == 0 {
  28307. dd.ReadMapEnd()
  28308. return v, changed
  28309. }
  28310. d.depthIncr()
  28311. var mk uintptr
  28312. var mv int8
  28313. hasLen := containerLen > 0
  28314. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28315. if esep {
  28316. dd.ReadMapElemKey()
  28317. }
  28318. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28319. if esep {
  28320. dd.ReadMapElemValue()
  28321. }
  28322. if dd.TryDecodeAsNil() {
  28323. if v == nil {
  28324. } else if d.h.DeleteOnNilMapValue {
  28325. delete(v, mk)
  28326. } else {
  28327. v[mk] = 0
  28328. }
  28329. continue
  28330. }
  28331. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28332. if v != nil {
  28333. v[mk] = mv
  28334. }
  28335. }
  28336. dd.ReadMapEnd()
  28337. d.depthDecr()
  28338. return v, changed
  28339. }
  28340. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  28341. if rv.Kind() == reflect.Ptr {
  28342. vp := rv2i(rv).(*map[uintptr]int16)
  28343. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d)
  28344. if changed {
  28345. *vp = v
  28346. }
  28347. } else {
  28348. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  28349. }
  28350. }
  28351. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  28352. v, changed := f.DecMapUintptrInt16V(*vp, true, d)
  28353. if changed {
  28354. *vp = v
  28355. }
  28356. }
  28357. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  28358. d *Decoder) (_ map[uintptr]int16, changed bool) {
  28359. dd, esep := d.d, d.hh.hasElemSeparators()
  28360. containerLen := dd.ReadMapStart()
  28361. if canChange && v == nil {
  28362. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28363. v = make(map[uintptr]int16, xlen)
  28364. changed = true
  28365. }
  28366. if containerLen == 0 {
  28367. dd.ReadMapEnd()
  28368. return v, changed
  28369. }
  28370. d.depthIncr()
  28371. var mk uintptr
  28372. var mv int16
  28373. hasLen := containerLen > 0
  28374. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28375. if esep {
  28376. dd.ReadMapElemKey()
  28377. }
  28378. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28379. if esep {
  28380. dd.ReadMapElemValue()
  28381. }
  28382. if dd.TryDecodeAsNil() {
  28383. if v == nil {
  28384. } else if d.h.DeleteOnNilMapValue {
  28385. delete(v, mk)
  28386. } else {
  28387. v[mk] = 0
  28388. }
  28389. continue
  28390. }
  28391. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  28392. if v != nil {
  28393. v[mk] = mv
  28394. }
  28395. }
  28396. dd.ReadMapEnd()
  28397. d.depthDecr()
  28398. return v, changed
  28399. }
  28400. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  28401. if rv.Kind() == reflect.Ptr {
  28402. vp := rv2i(rv).(*map[uintptr]int32)
  28403. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d)
  28404. if changed {
  28405. *vp = v
  28406. }
  28407. } else {
  28408. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  28409. }
  28410. }
  28411. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  28412. v, changed := f.DecMapUintptrInt32V(*vp, true, d)
  28413. if changed {
  28414. *vp = v
  28415. }
  28416. }
  28417. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  28418. d *Decoder) (_ map[uintptr]int32, changed bool) {
  28419. dd, esep := d.d, d.hh.hasElemSeparators()
  28420. containerLen := dd.ReadMapStart()
  28421. if canChange && v == nil {
  28422. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28423. v = make(map[uintptr]int32, xlen)
  28424. changed = true
  28425. }
  28426. if containerLen == 0 {
  28427. dd.ReadMapEnd()
  28428. return v, changed
  28429. }
  28430. d.depthIncr()
  28431. var mk uintptr
  28432. var mv int32
  28433. hasLen := containerLen > 0
  28434. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28435. if esep {
  28436. dd.ReadMapElemKey()
  28437. }
  28438. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28439. if esep {
  28440. dd.ReadMapElemValue()
  28441. }
  28442. if dd.TryDecodeAsNil() {
  28443. if v == nil {
  28444. } else if d.h.DeleteOnNilMapValue {
  28445. delete(v, mk)
  28446. } else {
  28447. v[mk] = 0
  28448. }
  28449. continue
  28450. }
  28451. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  28452. if v != nil {
  28453. v[mk] = mv
  28454. }
  28455. }
  28456. dd.ReadMapEnd()
  28457. d.depthDecr()
  28458. return v, changed
  28459. }
  28460. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  28461. if rv.Kind() == reflect.Ptr {
  28462. vp := rv2i(rv).(*map[uintptr]int64)
  28463. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d)
  28464. if changed {
  28465. *vp = v
  28466. }
  28467. } else {
  28468. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  28469. }
  28470. }
  28471. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  28472. v, changed := f.DecMapUintptrInt64V(*vp, true, d)
  28473. if changed {
  28474. *vp = v
  28475. }
  28476. }
  28477. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  28478. d *Decoder) (_ map[uintptr]int64, changed bool) {
  28479. dd, esep := d.d, d.hh.hasElemSeparators()
  28480. containerLen := dd.ReadMapStart()
  28481. if canChange && v == nil {
  28482. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28483. v = make(map[uintptr]int64, xlen)
  28484. changed = true
  28485. }
  28486. if containerLen == 0 {
  28487. dd.ReadMapEnd()
  28488. return v, changed
  28489. }
  28490. d.depthIncr()
  28491. var mk uintptr
  28492. var mv int64
  28493. hasLen := containerLen > 0
  28494. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28495. if esep {
  28496. dd.ReadMapElemKey()
  28497. }
  28498. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28499. if esep {
  28500. dd.ReadMapElemValue()
  28501. }
  28502. if dd.TryDecodeAsNil() {
  28503. if v == nil {
  28504. } else if d.h.DeleteOnNilMapValue {
  28505. delete(v, mk)
  28506. } else {
  28507. v[mk] = 0
  28508. }
  28509. continue
  28510. }
  28511. mv = dd.DecodeInt64()
  28512. if v != nil {
  28513. v[mk] = mv
  28514. }
  28515. }
  28516. dd.ReadMapEnd()
  28517. d.depthDecr()
  28518. return v, changed
  28519. }
  28520. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  28521. if rv.Kind() == reflect.Ptr {
  28522. vp := rv2i(rv).(*map[uintptr]float32)
  28523. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d)
  28524. if changed {
  28525. *vp = v
  28526. }
  28527. } else {
  28528. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  28529. }
  28530. }
  28531. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  28532. v, changed := f.DecMapUintptrFloat32V(*vp, true, d)
  28533. if changed {
  28534. *vp = v
  28535. }
  28536. }
  28537. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  28538. d *Decoder) (_ map[uintptr]float32, changed bool) {
  28539. dd, esep := d.d, d.hh.hasElemSeparators()
  28540. containerLen := dd.ReadMapStart()
  28541. if canChange && v == nil {
  28542. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28543. v = make(map[uintptr]float32, xlen)
  28544. changed = true
  28545. }
  28546. if containerLen == 0 {
  28547. dd.ReadMapEnd()
  28548. return v, changed
  28549. }
  28550. d.depthIncr()
  28551. var mk uintptr
  28552. var mv float32
  28553. hasLen := containerLen > 0
  28554. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28555. if esep {
  28556. dd.ReadMapElemKey()
  28557. }
  28558. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28559. if esep {
  28560. dd.ReadMapElemValue()
  28561. }
  28562. if dd.TryDecodeAsNil() {
  28563. if v == nil {
  28564. } else if d.h.DeleteOnNilMapValue {
  28565. delete(v, mk)
  28566. } else {
  28567. v[mk] = 0
  28568. }
  28569. continue
  28570. }
  28571. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  28572. if v != nil {
  28573. v[mk] = mv
  28574. }
  28575. }
  28576. dd.ReadMapEnd()
  28577. d.depthDecr()
  28578. return v, changed
  28579. }
  28580. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  28581. if rv.Kind() == reflect.Ptr {
  28582. vp := rv2i(rv).(*map[uintptr]float64)
  28583. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d)
  28584. if changed {
  28585. *vp = v
  28586. }
  28587. } else {
  28588. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  28589. }
  28590. }
  28591. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  28592. v, changed := f.DecMapUintptrFloat64V(*vp, true, d)
  28593. if changed {
  28594. *vp = v
  28595. }
  28596. }
  28597. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  28598. d *Decoder) (_ map[uintptr]float64, changed bool) {
  28599. dd, esep := d.d, d.hh.hasElemSeparators()
  28600. containerLen := dd.ReadMapStart()
  28601. if canChange && v == nil {
  28602. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28603. v = make(map[uintptr]float64, xlen)
  28604. changed = true
  28605. }
  28606. if containerLen == 0 {
  28607. dd.ReadMapEnd()
  28608. return v, changed
  28609. }
  28610. d.depthIncr()
  28611. var mk uintptr
  28612. var mv float64
  28613. hasLen := containerLen > 0
  28614. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28615. if esep {
  28616. dd.ReadMapElemKey()
  28617. }
  28618. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28619. if esep {
  28620. dd.ReadMapElemValue()
  28621. }
  28622. if dd.TryDecodeAsNil() {
  28623. if v == nil {
  28624. } else if d.h.DeleteOnNilMapValue {
  28625. delete(v, mk)
  28626. } else {
  28627. v[mk] = 0
  28628. }
  28629. continue
  28630. }
  28631. mv = dd.DecodeFloat64()
  28632. if v != nil {
  28633. v[mk] = mv
  28634. }
  28635. }
  28636. dd.ReadMapEnd()
  28637. d.depthDecr()
  28638. return v, changed
  28639. }
  28640. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  28641. if rv.Kind() == reflect.Ptr {
  28642. vp := rv2i(rv).(*map[uintptr]bool)
  28643. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d)
  28644. if changed {
  28645. *vp = v
  28646. }
  28647. } else {
  28648. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  28649. }
  28650. }
  28651. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  28652. v, changed := f.DecMapUintptrBoolV(*vp, true, d)
  28653. if changed {
  28654. *vp = v
  28655. }
  28656. }
  28657. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  28658. d *Decoder) (_ map[uintptr]bool, changed bool) {
  28659. dd, esep := d.d, d.hh.hasElemSeparators()
  28660. containerLen := dd.ReadMapStart()
  28661. if canChange && v == nil {
  28662. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28663. v = make(map[uintptr]bool, xlen)
  28664. changed = true
  28665. }
  28666. if containerLen == 0 {
  28667. dd.ReadMapEnd()
  28668. return v, changed
  28669. }
  28670. d.depthIncr()
  28671. var mk uintptr
  28672. var mv bool
  28673. hasLen := containerLen > 0
  28674. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28675. if esep {
  28676. dd.ReadMapElemKey()
  28677. }
  28678. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28679. if esep {
  28680. dd.ReadMapElemValue()
  28681. }
  28682. if dd.TryDecodeAsNil() {
  28683. if v == nil {
  28684. } else if d.h.DeleteOnNilMapValue {
  28685. delete(v, mk)
  28686. } else {
  28687. v[mk] = false
  28688. }
  28689. continue
  28690. }
  28691. mv = dd.DecodeBool()
  28692. if v != nil {
  28693. v[mk] = mv
  28694. }
  28695. }
  28696. dd.ReadMapEnd()
  28697. d.depthDecr()
  28698. return v, changed
  28699. }
  28700. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  28701. if rv.Kind() == reflect.Ptr {
  28702. vp := rv2i(rv).(*map[int]interface{})
  28703. v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d)
  28704. if changed {
  28705. *vp = v
  28706. }
  28707. } else {
  28708. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  28709. }
  28710. }
  28711. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  28712. v, changed := f.DecMapIntIntfV(*vp, true, d)
  28713. if changed {
  28714. *vp = v
  28715. }
  28716. }
  28717. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  28718. d *Decoder) (_ map[int]interface{}, changed bool) {
  28719. dd, esep := d.d, d.hh.hasElemSeparators()
  28720. containerLen := dd.ReadMapStart()
  28721. if canChange && v == nil {
  28722. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28723. v = make(map[int]interface{}, xlen)
  28724. changed = true
  28725. }
  28726. if containerLen == 0 {
  28727. dd.ReadMapEnd()
  28728. return v, changed
  28729. }
  28730. d.depthIncr()
  28731. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  28732. var mk int
  28733. var mv interface{}
  28734. hasLen := containerLen > 0
  28735. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28736. if esep {
  28737. dd.ReadMapElemKey()
  28738. }
  28739. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28740. if esep {
  28741. dd.ReadMapElemValue()
  28742. }
  28743. if dd.TryDecodeAsNil() {
  28744. if v == nil {
  28745. } else if d.h.DeleteOnNilMapValue {
  28746. delete(v, mk)
  28747. } else {
  28748. v[mk] = nil
  28749. }
  28750. continue
  28751. }
  28752. if mapGet {
  28753. mv = v[mk]
  28754. } else {
  28755. mv = nil
  28756. }
  28757. d.decode(&mv)
  28758. if v != nil {
  28759. v[mk] = mv
  28760. }
  28761. }
  28762. dd.ReadMapEnd()
  28763. d.depthDecr()
  28764. return v, changed
  28765. }
  28766. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  28767. if rv.Kind() == reflect.Ptr {
  28768. vp := rv2i(rv).(*map[int]string)
  28769. v, changed := fastpathTV.DecMapIntStringV(*vp, true, d)
  28770. if changed {
  28771. *vp = v
  28772. }
  28773. } else {
  28774. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  28775. }
  28776. }
  28777. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  28778. v, changed := f.DecMapIntStringV(*vp, true, d)
  28779. if changed {
  28780. *vp = v
  28781. }
  28782. }
  28783. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  28784. d *Decoder) (_ map[int]string, changed bool) {
  28785. dd, esep := d.d, d.hh.hasElemSeparators()
  28786. containerLen := dd.ReadMapStart()
  28787. if canChange && v == nil {
  28788. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28789. v = make(map[int]string, xlen)
  28790. changed = true
  28791. }
  28792. if containerLen == 0 {
  28793. dd.ReadMapEnd()
  28794. return v, changed
  28795. }
  28796. d.depthIncr()
  28797. var mk int
  28798. var mv string
  28799. hasLen := containerLen > 0
  28800. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28801. if esep {
  28802. dd.ReadMapElemKey()
  28803. }
  28804. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28805. if esep {
  28806. dd.ReadMapElemValue()
  28807. }
  28808. if dd.TryDecodeAsNil() {
  28809. if v == nil {
  28810. } else if d.h.DeleteOnNilMapValue {
  28811. delete(v, mk)
  28812. } else {
  28813. v[mk] = ""
  28814. }
  28815. continue
  28816. }
  28817. mv = dd.DecodeString()
  28818. if v != nil {
  28819. v[mk] = mv
  28820. }
  28821. }
  28822. dd.ReadMapEnd()
  28823. d.depthDecr()
  28824. return v, changed
  28825. }
  28826. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  28827. if rv.Kind() == reflect.Ptr {
  28828. vp := rv2i(rv).(*map[int]uint)
  28829. v, changed := fastpathTV.DecMapIntUintV(*vp, true, d)
  28830. if changed {
  28831. *vp = v
  28832. }
  28833. } else {
  28834. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  28835. }
  28836. }
  28837. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  28838. v, changed := f.DecMapIntUintV(*vp, true, d)
  28839. if changed {
  28840. *vp = v
  28841. }
  28842. }
  28843. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  28844. d *Decoder) (_ map[int]uint, changed bool) {
  28845. dd, esep := d.d, d.hh.hasElemSeparators()
  28846. containerLen := dd.ReadMapStart()
  28847. if canChange && v == nil {
  28848. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28849. v = make(map[int]uint, xlen)
  28850. changed = true
  28851. }
  28852. if containerLen == 0 {
  28853. dd.ReadMapEnd()
  28854. return v, changed
  28855. }
  28856. d.depthIncr()
  28857. var mk int
  28858. var mv uint
  28859. hasLen := containerLen > 0
  28860. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28861. if esep {
  28862. dd.ReadMapElemKey()
  28863. }
  28864. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28865. if esep {
  28866. dd.ReadMapElemValue()
  28867. }
  28868. if dd.TryDecodeAsNil() {
  28869. if v == nil {
  28870. } else if d.h.DeleteOnNilMapValue {
  28871. delete(v, mk)
  28872. } else {
  28873. v[mk] = 0
  28874. }
  28875. continue
  28876. }
  28877. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28878. if v != nil {
  28879. v[mk] = mv
  28880. }
  28881. }
  28882. dd.ReadMapEnd()
  28883. d.depthDecr()
  28884. return v, changed
  28885. }
  28886. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  28887. if rv.Kind() == reflect.Ptr {
  28888. vp := rv2i(rv).(*map[int]uint8)
  28889. v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d)
  28890. if changed {
  28891. *vp = v
  28892. }
  28893. } else {
  28894. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  28895. }
  28896. }
  28897. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  28898. v, changed := f.DecMapIntUint8V(*vp, true, d)
  28899. if changed {
  28900. *vp = v
  28901. }
  28902. }
  28903. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  28904. d *Decoder) (_ map[int]uint8, changed bool) {
  28905. dd, esep := d.d, d.hh.hasElemSeparators()
  28906. containerLen := dd.ReadMapStart()
  28907. if canChange && v == nil {
  28908. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28909. v = make(map[int]uint8, xlen)
  28910. changed = true
  28911. }
  28912. if containerLen == 0 {
  28913. dd.ReadMapEnd()
  28914. return v, changed
  28915. }
  28916. d.depthIncr()
  28917. var mk int
  28918. var mv uint8
  28919. hasLen := containerLen > 0
  28920. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28921. if esep {
  28922. dd.ReadMapElemKey()
  28923. }
  28924. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28925. if esep {
  28926. dd.ReadMapElemValue()
  28927. }
  28928. if dd.TryDecodeAsNil() {
  28929. if v == nil {
  28930. } else if d.h.DeleteOnNilMapValue {
  28931. delete(v, mk)
  28932. } else {
  28933. v[mk] = 0
  28934. }
  28935. continue
  28936. }
  28937. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  28938. if v != nil {
  28939. v[mk] = mv
  28940. }
  28941. }
  28942. dd.ReadMapEnd()
  28943. d.depthDecr()
  28944. return v, changed
  28945. }
  28946. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  28947. if rv.Kind() == reflect.Ptr {
  28948. vp := rv2i(rv).(*map[int]uint16)
  28949. v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d)
  28950. if changed {
  28951. *vp = v
  28952. }
  28953. } else {
  28954. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  28955. }
  28956. }
  28957. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  28958. v, changed := f.DecMapIntUint16V(*vp, true, d)
  28959. if changed {
  28960. *vp = v
  28961. }
  28962. }
  28963. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  28964. d *Decoder) (_ map[int]uint16, changed bool) {
  28965. dd, esep := d.d, d.hh.hasElemSeparators()
  28966. containerLen := dd.ReadMapStart()
  28967. if canChange && v == nil {
  28968. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28969. v = make(map[int]uint16, xlen)
  28970. changed = true
  28971. }
  28972. if containerLen == 0 {
  28973. dd.ReadMapEnd()
  28974. return v, changed
  28975. }
  28976. d.depthIncr()
  28977. var mk int
  28978. var mv uint16
  28979. hasLen := containerLen > 0
  28980. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28981. if esep {
  28982. dd.ReadMapElemKey()
  28983. }
  28984. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28985. if esep {
  28986. dd.ReadMapElemValue()
  28987. }
  28988. if dd.TryDecodeAsNil() {
  28989. if v == nil {
  28990. } else if d.h.DeleteOnNilMapValue {
  28991. delete(v, mk)
  28992. } else {
  28993. v[mk] = 0
  28994. }
  28995. continue
  28996. }
  28997. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  28998. if v != nil {
  28999. v[mk] = mv
  29000. }
  29001. }
  29002. dd.ReadMapEnd()
  29003. d.depthDecr()
  29004. return v, changed
  29005. }
  29006. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  29007. if rv.Kind() == reflect.Ptr {
  29008. vp := rv2i(rv).(*map[int]uint32)
  29009. v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d)
  29010. if changed {
  29011. *vp = v
  29012. }
  29013. } else {
  29014. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  29015. }
  29016. }
  29017. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  29018. v, changed := f.DecMapIntUint32V(*vp, true, d)
  29019. if changed {
  29020. *vp = v
  29021. }
  29022. }
  29023. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  29024. d *Decoder) (_ map[int]uint32, changed bool) {
  29025. dd, esep := d.d, d.hh.hasElemSeparators()
  29026. containerLen := dd.ReadMapStart()
  29027. if canChange && v == nil {
  29028. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29029. v = make(map[int]uint32, xlen)
  29030. changed = true
  29031. }
  29032. if containerLen == 0 {
  29033. dd.ReadMapEnd()
  29034. return v, changed
  29035. }
  29036. d.depthIncr()
  29037. var mk int
  29038. var mv uint32
  29039. hasLen := containerLen > 0
  29040. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29041. if esep {
  29042. dd.ReadMapElemKey()
  29043. }
  29044. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29045. if esep {
  29046. dd.ReadMapElemValue()
  29047. }
  29048. if dd.TryDecodeAsNil() {
  29049. if v == nil {
  29050. } else if d.h.DeleteOnNilMapValue {
  29051. delete(v, mk)
  29052. } else {
  29053. v[mk] = 0
  29054. }
  29055. continue
  29056. }
  29057. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  29058. if v != nil {
  29059. v[mk] = mv
  29060. }
  29061. }
  29062. dd.ReadMapEnd()
  29063. d.depthDecr()
  29064. return v, changed
  29065. }
  29066. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  29067. if rv.Kind() == reflect.Ptr {
  29068. vp := rv2i(rv).(*map[int]uint64)
  29069. v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d)
  29070. if changed {
  29071. *vp = v
  29072. }
  29073. } else {
  29074. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  29075. }
  29076. }
  29077. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  29078. v, changed := f.DecMapIntUint64V(*vp, true, d)
  29079. if changed {
  29080. *vp = v
  29081. }
  29082. }
  29083. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  29084. d *Decoder) (_ map[int]uint64, changed bool) {
  29085. dd, esep := d.d, d.hh.hasElemSeparators()
  29086. containerLen := dd.ReadMapStart()
  29087. if canChange && v == nil {
  29088. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29089. v = make(map[int]uint64, xlen)
  29090. changed = true
  29091. }
  29092. if containerLen == 0 {
  29093. dd.ReadMapEnd()
  29094. return v, changed
  29095. }
  29096. d.depthIncr()
  29097. var mk int
  29098. var mv uint64
  29099. hasLen := containerLen > 0
  29100. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29101. if esep {
  29102. dd.ReadMapElemKey()
  29103. }
  29104. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29105. if esep {
  29106. dd.ReadMapElemValue()
  29107. }
  29108. if dd.TryDecodeAsNil() {
  29109. if v == nil {
  29110. } else if d.h.DeleteOnNilMapValue {
  29111. delete(v, mk)
  29112. } else {
  29113. v[mk] = 0
  29114. }
  29115. continue
  29116. }
  29117. mv = dd.DecodeUint64()
  29118. if v != nil {
  29119. v[mk] = mv
  29120. }
  29121. }
  29122. dd.ReadMapEnd()
  29123. d.depthDecr()
  29124. return v, changed
  29125. }
  29126. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  29127. if rv.Kind() == reflect.Ptr {
  29128. vp := rv2i(rv).(*map[int]uintptr)
  29129. v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d)
  29130. if changed {
  29131. *vp = v
  29132. }
  29133. } else {
  29134. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  29135. }
  29136. }
  29137. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  29138. v, changed := f.DecMapIntUintptrV(*vp, true, d)
  29139. if changed {
  29140. *vp = v
  29141. }
  29142. }
  29143. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  29144. d *Decoder) (_ map[int]uintptr, changed bool) {
  29145. dd, esep := d.d, d.hh.hasElemSeparators()
  29146. containerLen := dd.ReadMapStart()
  29147. if canChange && v == nil {
  29148. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29149. v = make(map[int]uintptr, xlen)
  29150. changed = true
  29151. }
  29152. if containerLen == 0 {
  29153. dd.ReadMapEnd()
  29154. return v, changed
  29155. }
  29156. d.depthIncr()
  29157. var mk int
  29158. var mv uintptr
  29159. hasLen := containerLen > 0
  29160. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29161. if esep {
  29162. dd.ReadMapElemKey()
  29163. }
  29164. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29165. if esep {
  29166. dd.ReadMapElemValue()
  29167. }
  29168. if dd.TryDecodeAsNil() {
  29169. if v == nil {
  29170. } else if d.h.DeleteOnNilMapValue {
  29171. delete(v, mk)
  29172. } else {
  29173. v[mk] = 0
  29174. }
  29175. continue
  29176. }
  29177. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29178. if v != nil {
  29179. v[mk] = mv
  29180. }
  29181. }
  29182. dd.ReadMapEnd()
  29183. d.depthDecr()
  29184. return v, changed
  29185. }
  29186. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  29187. if rv.Kind() == reflect.Ptr {
  29188. vp := rv2i(rv).(*map[int]int)
  29189. v, changed := fastpathTV.DecMapIntIntV(*vp, true, d)
  29190. if changed {
  29191. *vp = v
  29192. }
  29193. } else {
  29194. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  29195. }
  29196. }
  29197. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  29198. v, changed := f.DecMapIntIntV(*vp, true, d)
  29199. if changed {
  29200. *vp = v
  29201. }
  29202. }
  29203. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  29204. d *Decoder) (_ map[int]int, changed bool) {
  29205. dd, esep := d.d, d.hh.hasElemSeparators()
  29206. containerLen := dd.ReadMapStart()
  29207. if canChange && v == nil {
  29208. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29209. v = make(map[int]int, xlen)
  29210. changed = true
  29211. }
  29212. if containerLen == 0 {
  29213. dd.ReadMapEnd()
  29214. return v, changed
  29215. }
  29216. d.depthIncr()
  29217. var mk int
  29218. var mv int
  29219. hasLen := containerLen > 0
  29220. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29221. if esep {
  29222. dd.ReadMapElemKey()
  29223. }
  29224. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29225. if esep {
  29226. dd.ReadMapElemValue()
  29227. }
  29228. if dd.TryDecodeAsNil() {
  29229. if v == nil {
  29230. } else if d.h.DeleteOnNilMapValue {
  29231. delete(v, mk)
  29232. } else {
  29233. v[mk] = 0
  29234. }
  29235. continue
  29236. }
  29237. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29238. if v != nil {
  29239. v[mk] = mv
  29240. }
  29241. }
  29242. dd.ReadMapEnd()
  29243. d.depthDecr()
  29244. return v, changed
  29245. }
  29246. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  29247. if rv.Kind() == reflect.Ptr {
  29248. vp := rv2i(rv).(*map[int]int8)
  29249. v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d)
  29250. if changed {
  29251. *vp = v
  29252. }
  29253. } else {
  29254. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  29255. }
  29256. }
  29257. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  29258. v, changed := f.DecMapIntInt8V(*vp, true, d)
  29259. if changed {
  29260. *vp = v
  29261. }
  29262. }
  29263. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  29264. d *Decoder) (_ map[int]int8, changed bool) {
  29265. dd, esep := d.d, d.hh.hasElemSeparators()
  29266. containerLen := dd.ReadMapStart()
  29267. if canChange && v == nil {
  29268. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29269. v = make(map[int]int8, xlen)
  29270. changed = true
  29271. }
  29272. if containerLen == 0 {
  29273. dd.ReadMapEnd()
  29274. return v, changed
  29275. }
  29276. d.depthIncr()
  29277. var mk int
  29278. var mv int8
  29279. hasLen := containerLen > 0
  29280. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29281. if esep {
  29282. dd.ReadMapElemKey()
  29283. }
  29284. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29285. if esep {
  29286. dd.ReadMapElemValue()
  29287. }
  29288. if dd.TryDecodeAsNil() {
  29289. if v == nil {
  29290. } else if d.h.DeleteOnNilMapValue {
  29291. delete(v, mk)
  29292. } else {
  29293. v[mk] = 0
  29294. }
  29295. continue
  29296. }
  29297. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29298. if v != nil {
  29299. v[mk] = mv
  29300. }
  29301. }
  29302. dd.ReadMapEnd()
  29303. d.depthDecr()
  29304. return v, changed
  29305. }
  29306. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  29307. if rv.Kind() == reflect.Ptr {
  29308. vp := rv2i(rv).(*map[int]int16)
  29309. v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d)
  29310. if changed {
  29311. *vp = v
  29312. }
  29313. } else {
  29314. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  29315. }
  29316. }
  29317. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  29318. v, changed := f.DecMapIntInt16V(*vp, true, d)
  29319. if changed {
  29320. *vp = v
  29321. }
  29322. }
  29323. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  29324. d *Decoder) (_ map[int]int16, changed bool) {
  29325. dd, esep := d.d, d.hh.hasElemSeparators()
  29326. containerLen := dd.ReadMapStart()
  29327. if canChange && v == nil {
  29328. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29329. v = make(map[int]int16, xlen)
  29330. changed = true
  29331. }
  29332. if containerLen == 0 {
  29333. dd.ReadMapEnd()
  29334. return v, changed
  29335. }
  29336. d.depthIncr()
  29337. var mk int
  29338. var mv int16
  29339. hasLen := containerLen > 0
  29340. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29341. if esep {
  29342. dd.ReadMapElemKey()
  29343. }
  29344. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29345. if esep {
  29346. dd.ReadMapElemValue()
  29347. }
  29348. if dd.TryDecodeAsNil() {
  29349. if v == nil {
  29350. } else if d.h.DeleteOnNilMapValue {
  29351. delete(v, mk)
  29352. } else {
  29353. v[mk] = 0
  29354. }
  29355. continue
  29356. }
  29357. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29358. if v != nil {
  29359. v[mk] = mv
  29360. }
  29361. }
  29362. dd.ReadMapEnd()
  29363. d.depthDecr()
  29364. return v, changed
  29365. }
  29366. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  29367. if rv.Kind() == reflect.Ptr {
  29368. vp := rv2i(rv).(*map[int]int32)
  29369. v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d)
  29370. if changed {
  29371. *vp = v
  29372. }
  29373. } else {
  29374. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  29375. }
  29376. }
  29377. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  29378. v, changed := f.DecMapIntInt32V(*vp, true, d)
  29379. if changed {
  29380. *vp = v
  29381. }
  29382. }
  29383. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  29384. d *Decoder) (_ map[int]int32, changed bool) {
  29385. dd, esep := d.d, d.hh.hasElemSeparators()
  29386. containerLen := dd.ReadMapStart()
  29387. if canChange && v == nil {
  29388. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29389. v = make(map[int]int32, xlen)
  29390. changed = true
  29391. }
  29392. if containerLen == 0 {
  29393. dd.ReadMapEnd()
  29394. return v, changed
  29395. }
  29396. d.depthIncr()
  29397. var mk int
  29398. var mv int32
  29399. hasLen := containerLen > 0
  29400. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29401. if esep {
  29402. dd.ReadMapElemKey()
  29403. }
  29404. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29405. if esep {
  29406. dd.ReadMapElemValue()
  29407. }
  29408. if dd.TryDecodeAsNil() {
  29409. if v == nil {
  29410. } else if d.h.DeleteOnNilMapValue {
  29411. delete(v, mk)
  29412. } else {
  29413. v[mk] = 0
  29414. }
  29415. continue
  29416. }
  29417. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  29418. if v != nil {
  29419. v[mk] = mv
  29420. }
  29421. }
  29422. dd.ReadMapEnd()
  29423. d.depthDecr()
  29424. return v, changed
  29425. }
  29426. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  29427. if rv.Kind() == reflect.Ptr {
  29428. vp := rv2i(rv).(*map[int]int64)
  29429. v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d)
  29430. if changed {
  29431. *vp = v
  29432. }
  29433. } else {
  29434. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  29435. }
  29436. }
  29437. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  29438. v, changed := f.DecMapIntInt64V(*vp, true, d)
  29439. if changed {
  29440. *vp = v
  29441. }
  29442. }
  29443. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  29444. d *Decoder) (_ map[int]int64, changed bool) {
  29445. dd, esep := d.d, d.hh.hasElemSeparators()
  29446. containerLen := dd.ReadMapStart()
  29447. if canChange && v == nil {
  29448. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29449. v = make(map[int]int64, xlen)
  29450. changed = true
  29451. }
  29452. if containerLen == 0 {
  29453. dd.ReadMapEnd()
  29454. return v, changed
  29455. }
  29456. d.depthIncr()
  29457. var mk int
  29458. var mv int64
  29459. hasLen := containerLen > 0
  29460. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29461. if esep {
  29462. dd.ReadMapElemKey()
  29463. }
  29464. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29465. if esep {
  29466. dd.ReadMapElemValue()
  29467. }
  29468. if dd.TryDecodeAsNil() {
  29469. if v == nil {
  29470. } else if d.h.DeleteOnNilMapValue {
  29471. delete(v, mk)
  29472. } else {
  29473. v[mk] = 0
  29474. }
  29475. continue
  29476. }
  29477. mv = dd.DecodeInt64()
  29478. if v != nil {
  29479. v[mk] = mv
  29480. }
  29481. }
  29482. dd.ReadMapEnd()
  29483. d.depthDecr()
  29484. return v, changed
  29485. }
  29486. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  29487. if rv.Kind() == reflect.Ptr {
  29488. vp := rv2i(rv).(*map[int]float32)
  29489. v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d)
  29490. if changed {
  29491. *vp = v
  29492. }
  29493. } else {
  29494. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  29495. }
  29496. }
  29497. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  29498. v, changed := f.DecMapIntFloat32V(*vp, true, d)
  29499. if changed {
  29500. *vp = v
  29501. }
  29502. }
  29503. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  29504. d *Decoder) (_ map[int]float32, changed bool) {
  29505. dd, esep := d.d, d.hh.hasElemSeparators()
  29506. containerLen := dd.ReadMapStart()
  29507. if canChange && v == nil {
  29508. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29509. v = make(map[int]float32, xlen)
  29510. changed = true
  29511. }
  29512. if containerLen == 0 {
  29513. dd.ReadMapEnd()
  29514. return v, changed
  29515. }
  29516. d.depthIncr()
  29517. var mk int
  29518. var mv float32
  29519. hasLen := containerLen > 0
  29520. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29521. if esep {
  29522. dd.ReadMapElemKey()
  29523. }
  29524. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29525. if esep {
  29526. dd.ReadMapElemValue()
  29527. }
  29528. if dd.TryDecodeAsNil() {
  29529. if v == nil {
  29530. } else if d.h.DeleteOnNilMapValue {
  29531. delete(v, mk)
  29532. } else {
  29533. v[mk] = 0
  29534. }
  29535. continue
  29536. }
  29537. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  29538. if v != nil {
  29539. v[mk] = mv
  29540. }
  29541. }
  29542. dd.ReadMapEnd()
  29543. d.depthDecr()
  29544. return v, changed
  29545. }
  29546. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  29547. if rv.Kind() == reflect.Ptr {
  29548. vp := rv2i(rv).(*map[int]float64)
  29549. v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d)
  29550. if changed {
  29551. *vp = v
  29552. }
  29553. } else {
  29554. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  29555. }
  29556. }
  29557. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  29558. v, changed := f.DecMapIntFloat64V(*vp, true, d)
  29559. if changed {
  29560. *vp = v
  29561. }
  29562. }
  29563. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  29564. d *Decoder) (_ map[int]float64, changed bool) {
  29565. dd, esep := d.d, d.hh.hasElemSeparators()
  29566. containerLen := dd.ReadMapStart()
  29567. if canChange && v == nil {
  29568. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29569. v = make(map[int]float64, xlen)
  29570. changed = true
  29571. }
  29572. if containerLen == 0 {
  29573. dd.ReadMapEnd()
  29574. return v, changed
  29575. }
  29576. d.depthIncr()
  29577. var mk int
  29578. var mv float64
  29579. hasLen := containerLen > 0
  29580. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29581. if esep {
  29582. dd.ReadMapElemKey()
  29583. }
  29584. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29585. if esep {
  29586. dd.ReadMapElemValue()
  29587. }
  29588. if dd.TryDecodeAsNil() {
  29589. if v == nil {
  29590. } else if d.h.DeleteOnNilMapValue {
  29591. delete(v, mk)
  29592. } else {
  29593. v[mk] = 0
  29594. }
  29595. continue
  29596. }
  29597. mv = dd.DecodeFloat64()
  29598. if v != nil {
  29599. v[mk] = mv
  29600. }
  29601. }
  29602. dd.ReadMapEnd()
  29603. d.depthDecr()
  29604. return v, changed
  29605. }
  29606. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  29607. if rv.Kind() == reflect.Ptr {
  29608. vp := rv2i(rv).(*map[int]bool)
  29609. v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d)
  29610. if changed {
  29611. *vp = v
  29612. }
  29613. } else {
  29614. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  29615. }
  29616. }
  29617. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  29618. v, changed := f.DecMapIntBoolV(*vp, true, d)
  29619. if changed {
  29620. *vp = v
  29621. }
  29622. }
  29623. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  29624. d *Decoder) (_ map[int]bool, changed bool) {
  29625. dd, esep := d.d, d.hh.hasElemSeparators()
  29626. containerLen := dd.ReadMapStart()
  29627. if canChange && v == nil {
  29628. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29629. v = make(map[int]bool, xlen)
  29630. changed = true
  29631. }
  29632. if containerLen == 0 {
  29633. dd.ReadMapEnd()
  29634. return v, changed
  29635. }
  29636. d.depthIncr()
  29637. var mk int
  29638. var mv bool
  29639. hasLen := containerLen > 0
  29640. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29641. if esep {
  29642. dd.ReadMapElemKey()
  29643. }
  29644. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29645. if esep {
  29646. dd.ReadMapElemValue()
  29647. }
  29648. if dd.TryDecodeAsNil() {
  29649. if v == nil {
  29650. } else if d.h.DeleteOnNilMapValue {
  29651. delete(v, mk)
  29652. } else {
  29653. v[mk] = false
  29654. }
  29655. continue
  29656. }
  29657. mv = dd.DecodeBool()
  29658. if v != nil {
  29659. v[mk] = mv
  29660. }
  29661. }
  29662. dd.ReadMapEnd()
  29663. d.depthDecr()
  29664. return v, changed
  29665. }
  29666. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  29667. if rv.Kind() == reflect.Ptr {
  29668. vp := rv2i(rv).(*map[int8]interface{})
  29669. v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d)
  29670. if changed {
  29671. *vp = v
  29672. }
  29673. } else {
  29674. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  29675. }
  29676. }
  29677. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  29678. v, changed := f.DecMapInt8IntfV(*vp, true, d)
  29679. if changed {
  29680. *vp = v
  29681. }
  29682. }
  29683. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  29684. d *Decoder) (_ map[int8]interface{}, changed bool) {
  29685. dd, esep := d.d, d.hh.hasElemSeparators()
  29686. containerLen := dd.ReadMapStart()
  29687. if canChange && v == nil {
  29688. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29689. v = make(map[int8]interface{}, xlen)
  29690. changed = true
  29691. }
  29692. if containerLen == 0 {
  29693. dd.ReadMapEnd()
  29694. return v, changed
  29695. }
  29696. d.depthIncr()
  29697. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  29698. var mk int8
  29699. var mv interface{}
  29700. hasLen := containerLen > 0
  29701. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29702. if esep {
  29703. dd.ReadMapElemKey()
  29704. }
  29705. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29706. if esep {
  29707. dd.ReadMapElemValue()
  29708. }
  29709. if dd.TryDecodeAsNil() {
  29710. if v == nil {
  29711. } else if d.h.DeleteOnNilMapValue {
  29712. delete(v, mk)
  29713. } else {
  29714. v[mk] = nil
  29715. }
  29716. continue
  29717. }
  29718. if mapGet {
  29719. mv = v[mk]
  29720. } else {
  29721. mv = nil
  29722. }
  29723. d.decode(&mv)
  29724. if v != nil {
  29725. v[mk] = mv
  29726. }
  29727. }
  29728. dd.ReadMapEnd()
  29729. d.depthDecr()
  29730. return v, changed
  29731. }
  29732. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  29733. if rv.Kind() == reflect.Ptr {
  29734. vp := rv2i(rv).(*map[int8]string)
  29735. v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d)
  29736. if changed {
  29737. *vp = v
  29738. }
  29739. } else {
  29740. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  29741. }
  29742. }
  29743. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  29744. v, changed := f.DecMapInt8StringV(*vp, true, d)
  29745. if changed {
  29746. *vp = v
  29747. }
  29748. }
  29749. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  29750. d *Decoder) (_ map[int8]string, changed bool) {
  29751. dd, esep := d.d, d.hh.hasElemSeparators()
  29752. containerLen := dd.ReadMapStart()
  29753. if canChange && v == nil {
  29754. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29755. v = make(map[int8]string, xlen)
  29756. changed = true
  29757. }
  29758. if containerLen == 0 {
  29759. dd.ReadMapEnd()
  29760. return v, changed
  29761. }
  29762. d.depthIncr()
  29763. var mk int8
  29764. var mv string
  29765. hasLen := containerLen > 0
  29766. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29767. if esep {
  29768. dd.ReadMapElemKey()
  29769. }
  29770. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29771. if esep {
  29772. dd.ReadMapElemValue()
  29773. }
  29774. if dd.TryDecodeAsNil() {
  29775. if v == nil {
  29776. } else if d.h.DeleteOnNilMapValue {
  29777. delete(v, mk)
  29778. } else {
  29779. v[mk] = ""
  29780. }
  29781. continue
  29782. }
  29783. mv = dd.DecodeString()
  29784. if v != nil {
  29785. v[mk] = mv
  29786. }
  29787. }
  29788. dd.ReadMapEnd()
  29789. d.depthDecr()
  29790. return v, changed
  29791. }
  29792. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  29793. if rv.Kind() == reflect.Ptr {
  29794. vp := rv2i(rv).(*map[int8]uint)
  29795. v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d)
  29796. if changed {
  29797. *vp = v
  29798. }
  29799. } else {
  29800. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  29801. }
  29802. }
  29803. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  29804. v, changed := f.DecMapInt8UintV(*vp, true, d)
  29805. if changed {
  29806. *vp = v
  29807. }
  29808. }
  29809. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  29810. d *Decoder) (_ map[int8]uint, changed bool) {
  29811. dd, esep := d.d, d.hh.hasElemSeparators()
  29812. containerLen := dd.ReadMapStart()
  29813. if canChange && v == nil {
  29814. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29815. v = make(map[int8]uint, xlen)
  29816. changed = true
  29817. }
  29818. if containerLen == 0 {
  29819. dd.ReadMapEnd()
  29820. return v, changed
  29821. }
  29822. d.depthIncr()
  29823. var mk int8
  29824. var mv uint
  29825. hasLen := containerLen > 0
  29826. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29827. if esep {
  29828. dd.ReadMapElemKey()
  29829. }
  29830. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29831. if esep {
  29832. dd.ReadMapElemValue()
  29833. }
  29834. if dd.TryDecodeAsNil() {
  29835. if v == nil {
  29836. } else if d.h.DeleteOnNilMapValue {
  29837. delete(v, mk)
  29838. } else {
  29839. v[mk] = 0
  29840. }
  29841. continue
  29842. }
  29843. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29844. if v != nil {
  29845. v[mk] = mv
  29846. }
  29847. }
  29848. dd.ReadMapEnd()
  29849. d.depthDecr()
  29850. return v, changed
  29851. }
  29852. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  29853. if rv.Kind() == reflect.Ptr {
  29854. vp := rv2i(rv).(*map[int8]uint8)
  29855. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d)
  29856. if changed {
  29857. *vp = v
  29858. }
  29859. } else {
  29860. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  29861. }
  29862. }
  29863. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  29864. v, changed := f.DecMapInt8Uint8V(*vp, true, d)
  29865. if changed {
  29866. *vp = v
  29867. }
  29868. }
  29869. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  29870. d *Decoder) (_ map[int8]uint8, changed bool) {
  29871. dd, esep := d.d, d.hh.hasElemSeparators()
  29872. containerLen := dd.ReadMapStart()
  29873. if canChange && v == nil {
  29874. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  29875. v = make(map[int8]uint8, xlen)
  29876. changed = true
  29877. }
  29878. if containerLen == 0 {
  29879. dd.ReadMapEnd()
  29880. return v, changed
  29881. }
  29882. d.depthIncr()
  29883. var mk int8
  29884. var mv uint8
  29885. hasLen := containerLen > 0
  29886. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29887. if esep {
  29888. dd.ReadMapElemKey()
  29889. }
  29890. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29891. if esep {
  29892. dd.ReadMapElemValue()
  29893. }
  29894. if dd.TryDecodeAsNil() {
  29895. if v == nil {
  29896. } else if d.h.DeleteOnNilMapValue {
  29897. delete(v, mk)
  29898. } else {
  29899. v[mk] = 0
  29900. }
  29901. continue
  29902. }
  29903. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  29904. if v != nil {
  29905. v[mk] = mv
  29906. }
  29907. }
  29908. dd.ReadMapEnd()
  29909. d.depthDecr()
  29910. return v, changed
  29911. }
  29912. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  29913. if rv.Kind() == reflect.Ptr {
  29914. vp := rv2i(rv).(*map[int8]uint16)
  29915. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d)
  29916. if changed {
  29917. *vp = v
  29918. }
  29919. } else {
  29920. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  29921. }
  29922. }
  29923. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  29924. v, changed := f.DecMapInt8Uint16V(*vp, true, d)
  29925. if changed {
  29926. *vp = v
  29927. }
  29928. }
  29929. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  29930. d *Decoder) (_ map[int8]uint16, changed bool) {
  29931. dd, esep := d.d, d.hh.hasElemSeparators()
  29932. containerLen := dd.ReadMapStart()
  29933. if canChange && v == nil {
  29934. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29935. v = make(map[int8]uint16, xlen)
  29936. changed = true
  29937. }
  29938. if containerLen == 0 {
  29939. dd.ReadMapEnd()
  29940. return v, changed
  29941. }
  29942. d.depthIncr()
  29943. var mk int8
  29944. var mv uint16
  29945. hasLen := containerLen > 0
  29946. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29947. if esep {
  29948. dd.ReadMapElemKey()
  29949. }
  29950. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29951. if esep {
  29952. dd.ReadMapElemValue()
  29953. }
  29954. if dd.TryDecodeAsNil() {
  29955. if v == nil {
  29956. } else if d.h.DeleteOnNilMapValue {
  29957. delete(v, mk)
  29958. } else {
  29959. v[mk] = 0
  29960. }
  29961. continue
  29962. }
  29963. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  29964. if v != nil {
  29965. v[mk] = mv
  29966. }
  29967. }
  29968. dd.ReadMapEnd()
  29969. d.depthDecr()
  29970. return v, changed
  29971. }
  29972. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  29973. if rv.Kind() == reflect.Ptr {
  29974. vp := rv2i(rv).(*map[int8]uint32)
  29975. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d)
  29976. if changed {
  29977. *vp = v
  29978. }
  29979. } else {
  29980. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  29981. }
  29982. }
  29983. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  29984. v, changed := f.DecMapInt8Uint32V(*vp, true, d)
  29985. if changed {
  29986. *vp = v
  29987. }
  29988. }
  29989. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  29990. d *Decoder) (_ map[int8]uint32, changed bool) {
  29991. dd, esep := d.d, d.hh.hasElemSeparators()
  29992. containerLen := dd.ReadMapStart()
  29993. if canChange && v == nil {
  29994. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29995. v = make(map[int8]uint32, xlen)
  29996. changed = true
  29997. }
  29998. if containerLen == 0 {
  29999. dd.ReadMapEnd()
  30000. return v, changed
  30001. }
  30002. d.depthIncr()
  30003. var mk int8
  30004. var mv uint32
  30005. hasLen := containerLen > 0
  30006. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30007. if esep {
  30008. dd.ReadMapElemKey()
  30009. }
  30010. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30011. if esep {
  30012. dd.ReadMapElemValue()
  30013. }
  30014. if dd.TryDecodeAsNil() {
  30015. if v == nil {
  30016. } else if d.h.DeleteOnNilMapValue {
  30017. delete(v, mk)
  30018. } else {
  30019. v[mk] = 0
  30020. }
  30021. continue
  30022. }
  30023. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  30024. if v != nil {
  30025. v[mk] = mv
  30026. }
  30027. }
  30028. dd.ReadMapEnd()
  30029. d.depthDecr()
  30030. return v, changed
  30031. }
  30032. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  30033. if rv.Kind() == reflect.Ptr {
  30034. vp := rv2i(rv).(*map[int8]uint64)
  30035. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d)
  30036. if changed {
  30037. *vp = v
  30038. }
  30039. } else {
  30040. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  30041. }
  30042. }
  30043. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  30044. v, changed := f.DecMapInt8Uint64V(*vp, true, d)
  30045. if changed {
  30046. *vp = v
  30047. }
  30048. }
  30049. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  30050. d *Decoder) (_ map[int8]uint64, changed bool) {
  30051. dd, esep := d.d, d.hh.hasElemSeparators()
  30052. containerLen := dd.ReadMapStart()
  30053. if canChange && v == nil {
  30054. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30055. v = make(map[int8]uint64, xlen)
  30056. changed = true
  30057. }
  30058. if containerLen == 0 {
  30059. dd.ReadMapEnd()
  30060. return v, changed
  30061. }
  30062. d.depthIncr()
  30063. var mk int8
  30064. var mv uint64
  30065. hasLen := containerLen > 0
  30066. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30067. if esep {
  30068. dd.ReadMapElemKey()
  30069. }
  30070. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30071. if esep {
  30072. dd.ReadMapElemValue()
  30073. }
  30074. if dd.TryDecodeAsNil() {
  30075. if v == nil {
  30076. } else if d.h.DeleteOnNilMapValue {
  30077. delete(v, mk)
  30078. } else {
  30079. v[mk] = 0
  30080. }
  30081. continue
  30082. }
  30083. mv = dd.DecodeUint64()
  30084. if v != nil {
  30085. v[mk] = mv
  30086. }
  30087. }
  30088. dd.ReadMapEnd()
  30089. d.depthDecr()
  30090. return v, changed
  30091. }
  30092. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  30093. if rv.Kind() == reflect.Ptr {
  30094. vp := rv2i(rv).(*map[int8]uintptr)
  30095. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d)
  30096. if changed {
  30097. *vp = v
  30098. }
  30099. } else {
  30100. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  30101. }
  30102. }
  30103. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  30104. v, changed := f.DecMapInt8UintptrV(*vp, true, d)
  30105. if changed {
  30106. *vp = v
  30107. }
  30108. }
  30109. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  30110. d *Decoder) (_ map[int8]uintptr, changed bool) {
  30111. dd, esep := d.d, d.hh.hasElemSeparators()
  30112. containerLen := dd.ReadMapStart()
  30113. if canChange && v == nil {
  30114. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30115. v = make(map[int8]uintptr, xlen)
  30116. changed = true
  30117. }
  30118. if containerLen == 0 {
  30119. dd.ReadMapEnd()
  30120. return v, changed
  30121. }
  30122. d.depthIncr()
  30123. var mk int8
  30124. var mv uintptr
  30125. hasLen := containerLen > 0
  30126. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30127. if esep {
  30128. dd.ReadMapElemKey()
  30129. }
  30130. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30131. if esep {
  30132. dd.ReadMapElemValue()
  30133. }
  30134. if dd.TryDecodeAsNil() {
  30135. if v == nil {
  30136. } else if d.h.DeleteOnNilMapValue {
  30137. delete(v, mk)
  30138. } else {
  30139. v[mk] = 0
  30140. }
  30141. continue
  30142. }
  30143. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30144. if v != nil {
  30145. v[mk] = mv
  30146. }
  30147. }
  30148. dd.ReadMapEnd()
  30149. d.depthDecr()
  30150. return v, changed
  30151. }
  30152. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  30153. if rv.Kind() == reflect.Ptr {
  30154. vp := rv2i(rv).(*map[int8]int)
  30155. v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d)
  30156. if changed {
  30157. *vp = v
  30158. }
  30159. } else {
  30160. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  30161. }
  30162. }
  30163. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  30164. v, changed := f.DecMapInt8IntV(*vp, true, d)
  30165. if changed {
  30166. *vp = v
  30167. }
  30168. }
  30169. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  30170. d *Decoder) (_ map[int8]int, changed bool) {
  30171. dd, esep := d.d, d.hh.hasElemSeparators()
  30172. containerLen := dd.ReadMapStart()
  30173. if canChange && v == nil {
  30174. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30175. v = make(map[int8]int, xlen)
  30176. changed = true
  30177. }
  30178. if containerLen == 0 {
  30179. dd.ReadMapEnd()
  30180. return v, changed
  30181. }
  30182. d.depthIncr()
  30183. var mk int8
  30184. var mv int
  30185. hasLen := containerLen > 0
  30186. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30187. if esep {
  30188. dd.ReadMapElemKey()
  30189. }
  30190. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30191. if esep {
  30192. dd.ReadMapElemValue()
  30193. }
  30194. if dd.TryDecodeAsNil() {
  30195. if v == nil {
  30196. } else if d.h.DeleteOnNilMapValue {
  30197. delete(v, mk)
  30198. } else {
  30199. v[mk] = 0
  30200. }
  30201. continue
  30202. }
  30203. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  30204. if v != nil {
  30205. v[mk] = mv
  30206. }
  30207. }
  30208. dd.ReadMapEnd()
  30209. d.depthDecr()
  30210. return v, changed
  30211. }
  30212. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  30213. if rv.Kind() == reflect.Ptr {
  30214. vp := rv2i(rv).(*map[int8]int8)
  30215. v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d)
  30216. if changed {
  30217. *vp = v
  30218. }
  30219. } else {
  30220. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  30221. }
  30222. }
  30223. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  30224. v, changed := f.DecMapInt8Int8V(*vp, true, d)
  30225. if changed {
  30226. *vp = v
  30227. }
  30228. }
  30229. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  30230. d *Decoder) (_ map[int8]int8, changed bool) {
  30231. dd, esep := d.d, d.hh.hasElemSeparators()
  30232. containerLen := dd.ReadMapStart()
  30233. if canChange && v == nil {
  30234. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30235. v = make(map[int8]int8, xlen)
  30236. changed = true
  30237. }
  30238. if containerLen == 0 {
  30239. dd.ReadMapEnd()
  30240. return v, changed
  30241. }
  30242. d.depthIncr()
  30243. var mk int8
  30244. var mv int8
  30245. hasLen := containerLen > 0
  30246. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30247. if esep {
  30248. dd.ReadMapElemKey()
  30249. }
  30250. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30251. if esep {
  30252. dd.ReadMapElemValue()
  30253. }
  30254. if dd.TryDecodeAsNil() {
  30255. if v == nil {
  30256. } else if d.h.DeleteOnNilMapValue {
  30257. delete(v, mk)
  30258. } else {
  30259. v[mk] = 0
  30260. }
  30261. continue
  30262. }
  30263. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30264. if v != nil {
  30265. v[mk] = mv
  30266. }
  30267. }
  30268. dd.ReadMapEnd()
  30269. d.depthDecr()
  30270. return v, changed
  30271. }
  30272. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  30273. if rv.Kind() == reflect.Ptr {
  30274. vp := rv2i(rv).(*map[int8]int16)
  30275. v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d)
  30276. if changed {
  30277. *vp = v
  30278. }
  30279. } else {
  30280. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  30281. }
  30282. }
  30283. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  30284. v, changed := f.DecMapInt8Int16V(*vp, true, d)
  30285. if changed {
  30286. *vp = v
  30287. }
  30288. }
  30289. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  30290. d *Decoder) (_ map[int8]int16, changed bool) {
  30291. dd, esep := d.d, d.hh.hasElemSeparators()
  30292. containerLen := dd.ReadMapStart()
  30293. if canChange && v == nil {
  30294. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30295. v = make(map[int8]int16, xlen)
  30296. changed = true
  30297. }
  30298. if containerLen == 0 {
  30299. dd.ReadMapEnd()
  30300. return v, changed
  30301. }
  30302. d.depthIncr()
  30303. var mk int8
  30304. var mv int16
  30305. hasLen := containerLen > 0
  30306. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30307. if esep {
  30308. dd.ReadMapElemKey()
  30309. }
  30310. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30311. if esep {
  30312. dd.ReadMapElemValue()
  30313. }
  30314. if dd.TryDecodeAsNil() {
  30315. if v == nil {
  30316. } else if d.h.DeleteOnNilMapValue {
  30317. delete(v, mk)
  30318. } else {
  30319. v[mk] = 0
  30320. }
  30321. continue
  30322. }
  30323. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30324. if v != nil {
  30325. v[mk] = mv
  30326. }
  30327. }
  30328. dd.ReadMapEnd()
  30329. d.depthDecr()
  30330. return v, changed
  30331. }
  30332. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  30333. if rv.Kind() == reflect.Ptr {
  30334. vp := rv2i(rv).(*map[int8]int32)
  30335. v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d)
  30336. if changed {
  30337. *vp = v
  30338. }
  30339. } else {
  30340. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  30341. }
  30342. }
  30343. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  30344. v, changed := f.DecMapInt8Int32V(*vp, true, d)
  30345. if changed {
  30346. *vp = v
  30347. }
  30348. }
  30349. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  30350. d *Decoder) (_ map[int8]int32, changed bool) {
  30351. dd, esep := d.d, d.hh.hasElemSeparators()
  30352. containerLen := dd.ReadMapStart()
  30353. if canChange && v == nil {
  30354. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30355. v = make(map[int8]int32, xlen)
  30356. changed = true
  30357. }
  30358. if containerLen == 0 {
  30359. dd.ReadMapEnd()
  30360. return v, changed
  30361. }
  30362. d.depthIncr()
  30363. var mk int8
  30364. var mv int32
  30365. hasLen := containerLen > 0
  30366. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30367. if esep {
  30368. dd.ReadMapElemKey()
  30369. }
  30370. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30371. if esep {
  30372. dd.ReadMapElemValue()
  30373. }
  30374. if dd.TryDecodeAsNil() {
  30375. if v == nil {
  30376. } else if d.h.DeleteOnNilMapValue {
  30377. delete(v, mk)
  30378. } else {
  30379. v[mk] = 0
  30380. }
  30381. continue
  30382. }
  30383. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30384. if v != nil {
  30385. v[mk] = mv
  30386. }
  30387. }
  30388. dd.ReadMapEnd()
  30389. d.depthDecr()
  30390. return v, changed
  30391. }
  30392. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  30393. if rv.Kind() == reflect.Ptr {
  30394. vp := rv2i(rv).(*map[int8]int64)
  30395. v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d)
  30396. if changed {
  30397. *vp = v
  30398. }
  30399. } else {
  30400. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  30401. }
  30402. }
  30403. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  30404. v, changed := f.DecMapInt8Int64V(*vp, true, d)
  30405. if changed {
  30406. *vp = v
  30407. }
  30408. }
  30409. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  30410. d *Decoder) (_ map[int8]int64, changed bool) {
  30411. dd, esep := d.d, d.hh.hasElemSeparators()
  30412. containerLen := dd.ReadMapStart()
  30413. if canChange && v == nil {
  30414. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30415. v = make(map[int8]int64, xlen)
  30416. changed = true
  30417. }
  30418. if containerLen == 0 {
  30419. dd.ReadMapEnd()
  30420. return v, changed
  30421. }
  30422. d.depthIncr()
  30423. var mk int8
  30424. var mv int64
  30425. hasLen := containerLen > 0
  30426. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30427. if esep {
  30428. dd.ReadMapElemKey()
  30429. }
  30430. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30431. if esep {
  30432. dd.ReadMapElemValue()
  30433. }
  30434. if dd.TryDecodeAsNil() {
  30435. if v == nil {
  30436. } else if d.h.DeleteOnNilMapValue {
  30437. delete(v, mk)
  30438. } else {
  30439. v[mk] = 0
  30440. }
  30441. continue
  30442. }
  30443. mv = dd.DecodeInt64()
  30444. if v != nil {
  30445. v[mk] = mv
  30446. }
  30447. }
  30448. dd.ReadMapEnd()
  30449. d.depthDecr()
  30450. return v, changed
  30451. }
  30452. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  30453. if rv.Kind() == reflect.Ptr {
  30454. vp := rv2i(rv).(*map[int8]float32)
  30455. v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d)
  30456. if changed {
  30457. *vp = v
  30458. }
  30459. } else {
  30460. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  30461. }
  30462. }
  30463. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  30464. v, changed := f.DecMapInt8Float32V(*vp, true, d)
  30465. if changed {
  30466. *vp = v
  30467. }
  30468. }
  30469. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  30470. d *Decoder) (_ map[int8]float32, changed bool) {
  30471. dd, esep := d.d, d.hh.hasElemSeparators()
  30472. containerLen := dd.ReadMapStart()
  30473. if canChange && v == nil {
  30474. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30475. v = make(map[int8]float32, xlen)
  30476. changed = true
  30477. }
  30478. if containerLen == 0 {
  30479. dd.ReadMapEnd()
  30480. return v, changed
  30481. }
  30482. d.depthIncr()
  30483. var mk int8
  30484. var mv float32
  30485. hasLen := containerLen > 0
  30486. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30487. if esep {
  30488. dd.ReadMapElemKey()
  30489. }
  30490. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30491. if esep {
  30492. dd.ReadMapElemValue()
  30493. }
  30494. if dd.TryDecodeAsNil() {
  30495. if v == nil {
  30496. } else if d.h.DeleteOnNilMapValue {
  30497. delete(v, mk)
  30498. } else {
  30499. v[mk] = 0
  30500. }
  30501. continue
  30502. }
  30503. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  30504. if v != nil {
  30505. v[mk] = mv
  30506. }
  30507. }
  30508. dd.ReadMapEnd()
  30509. d.depthDecr()
  30510. return v, changed
  30511. }
  30512. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  30513. if rv.Kind() == reflect.Ptr {
  30514. vp := rv2i(rv).(*map[int8]float64)
  30515. v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d)
  30516. if changed {
  30517. *vp = v
  30518. }
  30519. } else {
  30520. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  30521. }
  30522. }
  30523. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  30524. v, changed := f.DecMapInt8Float64V(*vp, true, d)
  30525. if changed {
  30526. *vp = v
  30527. }
  30528. }
  30529. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  30530. d *Decoder) (_ map[int8]float64, changed bool) {
  30531. dd, esep := d.d, d.hh.hasElemSeparators()
  30532. containerLen := dd.ReadMapStart()
  30533. if canChange && v == nil {
  30534. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30535. v = make(map[int8]float64, xlen)
  30536. changed = true
  30537. }
  30538. if containerLen == 0 {
  30539. dd.ReadMapEnd()
  30540. return v, changed
  30541. }
  30542. d.depthIncr()
  30543. var mk int8
  30544. var mv float64
  30545. hasLen := containerLen > 0
  30546. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30547. if esep {
  30548. dd.ReadMapElemKey()
  30549. }
  30550. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30551. if esep {
  30552. dd.ReadMapElemValue()
  30553. }
  30554. if dd.TryDecodeAsNil() {
  30555. if v == nil {
  30556. } else if d.h.DeleteOnNilMapValue {
  30557. delete(v, mk)
  30558. } else {
  30559. v[mk] = 0
  30560. }
  30561. continue
  30562. }
  30563. mv = dd.DecodeFloat64()
  30564. if v != nil {
  30565. v[mk] = mv
  30566. }
  30567. }
  30568. dd.ReadMapEnd()
  30569. d.depthDecr()
  30570. return v, changed
  30571. }
  30572. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  30573. if rv.Kind() == reflect.Ptr {
  30574. vp := rv2i(rv).(*map[int8]bool)
  30575. v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d)
  30576. if changed {
  30577. *vp = v
  30578. }
  30579. } else {
  30580. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  30581. }
  30582. }
  30583. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  30584. v, changed := f.DecMapInt8BoolV(*vp, true, d)
  30585. if changed {
  30586. *vp = v
  30587. }
  30588. }
  30589. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  30590. d *Decoder) (_ map[int8]bool, changed bool) {
  30591. dd, esep := d.d, d.hh.hasElemSeparators()
  30592. containerLen := dd.ReadMapStart()
  30593. if canChange && v == nil {
  30594. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30595. v = make(map[int8]bool, xlen)
  30596. changed = true
  30597. }
  30598. if containerLen == 0 {
  30599. dd.ReadMapEnd()
  30600. return v, changed
  30601. }
  30602. d.depthIncr()
  30603. var mk int8
  30604. var mv bool
  30605. hasLen := containerLen > 0
  30606. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30607. if esep {
  30608. dd.ReadMapElemKey()
  30609. }
  30610. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30611. if esep {
  30612. dd.ReadMapElemValue()
  30613. }
  30614. if dd.TryDecodeAsNil() {
  30615. if v == nil {
  30616. } else if d.h.DeleteOnNilMapValue {
  30617. delete(v, mk)
  30618. } else {
  30619. v[mk] = false
  30620. }
  30621. continue
  30622. }
  30623. mv = dd.DecodeBool()
  30624. if v != nil {
  30625. v[mk] = mv
  30626. }
  30627. }
  30628. dd.ReadMapEnd()
  30629. d.depthDecr()
  30630. return v, changed
  30631. }
  30632. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  30633. if rv.Kind() == reflect.Ptr {
  30634. vp := rv2i(rv).(*map[int16]interface{})
  30635. v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d)
  30636. if changed {
  30637. *vp = v
  30638. }
  30639. } else {
  30640. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  30641. }
  30642. }
  30643. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  30644. v, changed := f.DecMapInt16IntfV(*vp, true, d)
  30645. if changed {
  30646. *vp = v
  30647. }
  30648. }
  30649. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  30650. d *Decoder) (_ map[int16]interface{}, changed bool) {
  30651. dd, esep := d.d, d.hh.hasElemSeparators()
  30652. containerLen := dd.ReadMapStart()
  30653. if canChange && v == nil {
  30654. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  30655. v = make(map[int16]interface{}, xlen)
  30656. changed = true
  30657. }
  30658. if containerLen == 0 {
  30659. dd.ReadMapEnd()
  30660. return v, changed
  30661. }
  30662. d.depthIncr()
  30663. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  30664. var mk int16
  30665. var mv interface{}
  30666. hasLen := containerLen > 0
  30667. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30668. if esep {
  30669. dd.ReadMapElemKey()
  30670. }
  30671. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30672. if esep {
  30673. dd.ReadMapElemValue()
  30674. }
  30675. if dd.TryDecodeAsNil() {
  30676. if v == nil {
  30677. } else if d.h.DeleteOnNilMapValue {
  30678. delete(v, mk)
  30679. } else {
  30680. v[mk] = nil
  30681. }
  30682. continue
  30683. }
  30684. if mapGet {
  30685. mv = v[mk]
  30686. } else {
  30687. mv = nil
  30688. }
  30689. d.decode(&mv)
  30690. if v != nil {
  30691. v[mk] = mv
  30692. }
  30693. }
  30694. dd.ReadMapEnd()
  30695. d.depthDecr()
  30696. return v, changed
  30697. }
  30698. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  30699. if rv.Kind() == reflect.Ptr {
  30700. vp := rv2i(rv).(*map[int16]string)
  30701. v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d)
  30702. if changed {
  30703. *vp = v
  30704. }
  30705. } else {
  30706. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  30707. }
  30708. }
  30709. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  30710. v, changed := f.DecMapInt16StringV(*vp, true, d)
  30711. if changed {
  30712. *vp = v
  30713. }
  30714. }
  30715. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  30716. d *Decoder) (_ map[int16]string, changed bool) {
  30717. dd, esep := d.d, d.hh.hasElemSeparators()
  30718. containerLen := dd.ReadMapStart()
  30719. if canChange && v == nil {
  30720. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  30721. v = make(map[int16]string, xlen)
  30722. changed = true
  30723. }
  30724. if containerLen == 0 {
  30725. dd.ReadMapEnd()
  30726. return v, changed
  30727. }
  30728. d.depthIncr()
  30729. var mk int16
  30730. var mv string
  30731. hasLen := containerLen > 0
  30732. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30733. if esep {
  30734. dd.ReadMapElemKey()
  30735. }
  30736. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30737. if esep {
  30738. dd.ReadMapElemValue()
  30739. }
  30740. if dd.TryDecodeAsNil() {
  30741. if v == nil {
  30742. } else if d.h.DeleteOnNilMapValue {
  30743. delete(v, mk)
  30744. } else {
  30745. v[mk] = ""
  30746. }
  30747. continue
  30748. }
  30749. mv = dd.DecodeString()
  30750. if v != nil {
  30751. v[mk] = mv
  30752. }
  30753. }
  30754. dd.ReadMapEnd()
  30755. d.depthDecr()
  30756. return v, changed
  30757. }
  30758. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  30759. if rv.Kind() == reflect.Ptr {
  30760. vp := rv2i(rv).(*map[int16]uint)
  30761. v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d)
  30762. if changed {
  30763. *vp = v
  30764. }
  30765. } else {
  30766. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  30767. }
  30768. }
  30769. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  30770. v, changed := f.DecMapInt16UintV(*vp, true, d)
  30771. if changed {
  30772. *vp = v
  30773. }
  30774. }
  30775. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  30776. d *Decoder) (_ map[int16]uint, changed bool) {
  30777. dd, esep := d.d, d.hh.hasElemSeparators()
  30778. containerLen := dd.ReadMapStart()
  30779. if canChange && v == nil {
  30780. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30781. v = make(map[int16]uint, xlen)
  30782. changed = true
  30783. }
  30784. if containerLen == 0 {
  30785. dd.ReadMapEnd()
  30786. return v, changed
  30787. }
  30788. d.depthIncr()
  30789. var mk int16
  30790. var mv uint
  30791. hasLen := containerLen > 0
  30792. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30793. if esep {
  30794. dd.ReadMapElemKey()
  30795. }
  30796. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30797. if esep {
  30798. dd.ReadMapElemValue()
  30799. }
  30800. if dd.TryDecodeAsNil() {
  30801. if v == nil {
  30802. } else if d.h.DeleteOnNilMapValue {
  30803. delete(v, mk)
  30804. } else {
  30805. v[mk] = 0
  30806. }
  30807. continue
  30808. }
  30809. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30810. if v != nil {
  30811. v[mk] = mv
  30812. }
  30813. }
  30814. dd.ReadMapEnd()
  30815. d.depthDecr()
  30816. return v, changed
  30817. }
  30818. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  30819. if rv.Kind() == reflect.Ptr {
  30820. vp := rv2i(rv).(*map[int16]uint8)
  30821. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d)
  30822. if changed {
  30823. *vp = v
  30824. }
  30825. } else {
  30826. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  30827. }
  30828. }
  30829. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  30830. v, changed := f.DecMapInt16Uint8V(*vp, true, d)
  30831. if changed {
  30832. *vp = v
  30833. }
  30834. }
  30835. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  30836. d *Decoder) (_ map[int16]uint8, changed bool) {
  30837. dd, esep := d.d, d.hh.hasElemSeparators()
  30838. containerLen := dd.ReadMapStart()
  30839. if canChange && v == nil {
  30840. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30841. v = make(map[int16]uint8, xlen)
  30842. changed = true
  30843. }
  30844. if containerLen == 0 {
  30845. dd.ReadMapEnd()
  30846. return v, changed
  30847. }
  30848. d.depthIncr()
  30849. var mk int16
  30850. var mv uint8
  30851. hasLen := containerLen > 0
  30852. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30853. if esep {
  30854. dd.ReadMapElemKey()
  30855. }
  30856. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30857. if esep {
  30858. dd.ReadMapElemValue()
  30859. }
  30860. if dd.TryDecodeAsNil() {
  30861. if v == nil {
  30862. } else if d.h.DeleteOnNilMapValue {
  30863. delete(v, mk)
  30864. } else {
  30865. v[mk] = 0
  30866. }
  30867. continue
  30868. }
  30869. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  30870. if v != nil {
  30871. v[mk] = mv
  30872. }
  30873. }
  30874. dd.ReadMapEnd()
  30875. d.depthDecr()
  30876. return v, changed
  30877. }
  30878. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  30879. if rv.Kind() == reflect.Ptr {
  30880. vp := rv2i(rv).(*map[int16]uint16)
  30881. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d)
  30882. if changed {
  30883. *vp = v
  30884. }
  30885. } else {
  30886. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  30887. }
  30888. }
  30889. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  30890. v, changed := f.DecMapInt16Uint16V(*vp, true, d)
  30891. if changed {
  30892. *vp = v
  30893. }
  30894. }
  30895. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  30896. d *Decoder) (_ map[int16]uint16, changed bool) {
  30897. dd, esep := d.d, d.hh.hasElemSeparators()
  30898. containerLen := dd.ReadMapStart()
  30899. if canChange && v == nil {
  30900. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  30901. v = make(map[int16]uint16, xlen)
  30902. changed = true
  30903. }
  30904. if containerLen == 0 {
  30905. dd.ReadMapEnd()
  30906. return v, changed
  30907. }
  30908. d.depthIncr()
  30909. var mk int16
  30910. var mv uint16
  30911. hasLen := containerLen > 0
  30912. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30913. if esep {
  30914. dd.ReadMapElemKey()
  30915. }
  30916. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30917. if esep {
  30918. dd.ReadMapElemValue()
  30919. }
  30920. if dd.TryDecodeAsNil() {
  30921. if v == nil {
  30922. } else if d.h.DeleteOnNilMapValue {
  30923. delete(v, mk)
  30924. } else {
  30925. v[mk] = 0
  30926. }
  30927. continue
  30928. }
  30929. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  30930. if v != nil {
  30931. v[mk] = mv
  30932. }
  30933. }
  30934. dd.ReadMapEnd()
  30935. d.depthDecr()
  30936. return v, changed
  30937. }
  30938. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  30939. if rv.Kind() == reflect.Ptr {
  30940. vp := rv2i(rv).(*map[int16]uint32)
  30941. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d)
  30942. if changed {
  30943. *vp = v
  30944. }
  30945. } else {
  30946. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  30947. }
  30948. }
  30949. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  30950. v, changed := f.DecMapInt16Uint32V(*vp, true, d)
  30951. if changed {
  30952. *vp = v
  30953. }
  30954. }
  30955. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  30956. d *Decoder) (_ map[int16]uint32, changed bool) {
  30957. dd, esep := d.d, d.hh.hasElemSeparators()
  30958. containerLen := dd.ReadMapStart()
  30959. if canChange && v == nil {
  30960. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30961. v = make(map[int16]uint32, xlen)
  30962. changed = true
  30963. }
  30964. if containerLen == 0 {
  30965. dd.ReadMapEnd()
  30966. return v, changed
  30967. }
  30968. d.depthIncr()
  30969. var mk int16
  30970. var mv uint32
  30971. hasLen := containerLen > 0
  30972. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30973. if esep {
  30974. dd.ReadMapElemKey()
  30975. }
  30976. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30977. if esep {
  30978. dd.ReadMapElemValue()
  30979. }
  30980. if dd.TryDecodeAsNil() {
  30981. if v == nil {
  30982. } else if d.h.DeleteOnNilMapValue {
  30983. delete(v, mk)
  30984. } else {
  30985. v[mk] = 0
  30986. }
  30987. continue
  30988. }
  30989. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  30990. if v != nil {
  30991. v[mk] = mv
  30992. }
  30993. }
  30994. dd.ReadMapEnd()
  30995. d.depthDecr()
  30996. return v, changed
  30997. }
  30998. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  30999. if rv.Kind() == reflect.Ptr {
  31000. vp := rv2i(rv).(*map[int16]uint64)
  31001. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d)
  31002. if changed {
  31003. *vp = v
  31004. }
  31005. } else {
  31006. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  31007. }
  31008. }
  31009. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  31010. v, changed := f.DecMapInt16Uint64V(*vp, true, d)
  31011. if changed {
  31012. *vp = v
  31013. }
  31014. }
  31015. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  31016. d *Decoder) (_ map[int16]uint64, changed bool) {
  31017. dd, esep := d.d, d.hh.hasElemSeparators()
  31018. containerLen := dd.ReadMapStart()
  31019. if canChange && v == nil {
  31020. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31021. v = make(map[int16]uint64, xlen)
  31022. changed = true
  31023. }
  31024. if containerLen == 0 {
  31025. dd.ReadMapEnd()
  31026. return v, changed
  31027. }
  31028. d.depthIncr()
  31029. var mk int16
  31030. var mv uint64
  31031. hasLen := containerLen > 0
  31032. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31033. if esep {
  31034. dd.ReadMapElemKey()
  31035. }
  31036. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31037. if esep {
  31038. dd.ReadMapElemValue()
  31039. }
  31040. if dd.TryDecodeAsNil() {
  31041. if v == nil {
  31042. } else if d.h.DeleteOnNilMapValue {
  31043. delete(v, mk)
  31044. } else {
  31045. v[mk] = 0
  31046. }
  31047. continue
  31048. }
  31049. mv = dd.DecodeUint64()
  31050. if v != nil {
  31051. v[mk] = mv
  31052. }
  31053. }
  31054. dd.ReadMapEnd()
  31055. d.depthDecr()
  31056. return v, changed
  31057. }
  31058. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  31059. if rv.Kind() == reflect.Ptr {
  31060. vp := rv2i(rv).(*map[int16]uintptr)
  31061. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d)
  31062. if changed {
  31063. *vp = v
  31064. }
  31065. } else {
  31066. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  31067. }
  31068. }
  31069. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  31070. v, changed := f.DecMapInt16UintptrV(*vp, true, d)
  31071. if changed {
  31072. *vp = v
  31073. }
  31074. }
  31075. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  31076. d *Decoder) (_ map[int16]uintptr, changed bool) {
  31077. dd, esep := d.d, d.hh.hasElemSeparators()
  31078. containerLen := dd.ReadMapStart()
  31079. if canChange && v == nil {
  31080. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31081. v = make(map[int16]uintptr, xlen)
  31082. changed = true
  31083. }
  31084. if containerLen == 0 {
  31085. dd.ReadMapEnd()
  31086. return v, changed
  31087. }
  31088. d.depthIncr()
  31089. var mk int16
  31090. var mv uintptr
  31091. hasLen := containerLen > 0
  31092. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31093. if esep {
  31094. dd.ReadMapElemKey()
  31095. }
  31096. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31097. if esep {
  31098. dd.ReadMapElemValue()
  31099. }
  31100. if dd.TryDecodeAsNil() {
  31101. if v == nil {
  31102. } else if d.h.DeleteOnNilMapValue {
  31103. delete(v, mk)
  31104. } else {
  31105. v[mk] = 0
  31106. }
  31107. continue
  31108. }
  31109. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31110. if v != nil {
  31111. v[mk] = mv
  31112. }
  31113. }
  31114. dd.ReadMapEnd()
  31115. d.depthDecr()
  31116. return v, changed
  31117. }
  31118. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  31119. if rv.Kind() == reflect.Ptr {
  31120. vp := rv2i(rv).(*map[int16]int)
  31121. v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d)
  31122. if changed {
  31123. *vp = v
  31124. }
  31125. } else {
  31126. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  31127. }
  31128. }
  31129. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  31130. v, changed := f.DecMapInt16IntV(*vp, true, d)
  31131. if changed {
  31132. *vp = v
  31133. }
  31134. }
  31135. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  31136. d *Decoder) (_ map[int16]int, changed bool) {
  31137. dd, esep := d.d, d.hh.hasElemSeparators()
  31138. containerLen := dd.ReadMapStart()
  31139. if canChange && v == nil {
  31140. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31141. v = make(map[int16]int, xlen)
  31142. changed = true
  31143. }
  31144. if containerLen == 0 {
  31145. dd.ReadMapEnd()
  31146. return v, changed
  31147. }
  31148. d.depthIncr()
  31149. var mk int16
  31150. var mv int
  31151. hasLen := containerLen > 0
  31152. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31153. if esep {
  31154. dd.ReadMapElemKey()
  31155. }
  31156. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31157. if esep {
  31158. dd.ReadMapElemValue()
  31159. }
  31160. if dd.TryDecodeAsNil() {
  31161. if v == nil {
  31162. } else if d.h.DeleteOnNilMapValue {
  31163. delete(v, mk)
  31164. } else {
  31165. v[mk] = 0
  31166. }
  31167. continue
  31168. }
  31169. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  31170. if v != nil {
  31171. v[mk] = mv
  31172. }
  31173. }
  31174. dd.ReadMapEnd()
  31175. d.depthDecr()
  31176. return v, changed
  31177. }
  31178. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  31179. if rv.Kind() == reflect.Ptr {
  31180. vp := rv2i(rv).(*map[int16]int8)
  31181. v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d)
  31182. if changed {
  31183. *vp = v
  31184. }
  31185. } else {
  31186. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  31187. }
  31188. }
  31189. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  31190. v, changed := f.DecMapInt16Int8V(*vp, true, d)
  31191. if changed {
  31192. *vp = v
  31193. }
  31194. }
  31195. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  31196. d *Decoder) (_ map[int16]int8, changed bool) {
  31197. dd, esep := d.d, d.hh.hasElemSeparators()
  31198. containerLen := dd.ReadMapStart()
  31199. if canChange && v == nil {
  31200. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31201. v = make(map[int16]int8, xlen)
  31202. changed = true
  31203. }
  31204. if containerLen == 0 {
  31205. dd.ReadMapEnd()
  31206. return v, changed
  31207. }
  31208. d.depthIncr()
  31209. var mk int16
  31210. var mv int8
  31211. hasLen := containerLen > 0
  31212. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31213. if esep {
  31214. dd.ReadMapElemKey()
  31215. }
  31216. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31217. if esep {
  31218. dd.ReadMapElemValue()
  31219. }
  31220. if dd.TryDecodeAsNil() {
  31221. if v == nil {
  31222. } else if d.h.DeleteOnNilMapValue {
  31223. delete(v, mk)
  31224. } else {
  31225. v[mk] = 0
  31226. }
  31227. continue
  31228. }
  31229. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  31230. if v != nil {
  31231. v[mk] = mv
  31232. }
  31233. }
  31234. dd.ReadMapEnd()
  31235. d.depthDecr()
  31236. return v, changed
  31237. }
  31238. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  31239. if rv.Kind() == reflect.Ptr {
  31240. vp := rv2i(rv).(*map[int16]int16)
  31241. v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d)
  31242. if changed {
  31243. *vp = v
  31244. }
  31245. } else {
  31246. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  31247. }
  31248. }
  31249. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  31250. v, changed := f.DecMapInt16Int16V(*vp, true, d)
  31251. if changed {
  31252. *vp = v
  31253. }
  31254. }
  31255. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  31256. d *Decoder) (_ map[int16]int16, changed bool) {
  31257. dd, esep := d.d, d.hh.hasElemSeparators()
  31258. containerLen := dd.ReadMapStart()
  31259. if canChange && v == nil {
  31260. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  31261. v = make(map[int16]int16, xlen)
  31262. changed = true
  31263. }
  31264. if containerLen == 0 {
  31265. dd.ReadMapEnd()
  31266. return v, changed
  31267. }
  31268. d.depthIncr()
  31269. var mk int16
  31270. var mv int16
  31271. hasLen := containerLen > 0
  31272. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31273. if esep {
  31274. dd.ReadMapElemKey()
  31275. }
  31276. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31277. if esep {
  31278. dd.ReadMapElemValue()
  31279. }
  31280. if dd.TryDecodeAsNil() {
  31281. if v == nil {
  31282. } else if d.h.DeleteOnNilMapValue {
  31283. delete(v, mk)
  31284. } else {
  31285. v[mk] = 0
  31286. }
  31287. continue
  31288. }
  31289. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31290. if v != nil {
  31291. v[mk] = mv
  31292. }
  31293. }
  31294. dd.ReadMapEnd()
  31295. d.depthDecr()
  31296. return v, changed
  31297. }
  31298. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  31299. if rv.Kind() == reflect.Ptr {
  31300. vp := rv2i(rv).(*map[int16]int32)
  31301. v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d)
  31302. if changed {
  31303. *vp = v
  31304. }
  31305. } else {
  31306. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  31307. }
  31308. }
  31309. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  31310. v, changed := f.DecMapInt16Int32V(*vp, true, d)
  31311. if changed {
  31312. *vp = v
  31313. }
  31314. }
  31315. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  31316. d *Decoder) (_ map[int16]int32, changed bool) {
  31317. dd, esep := d.d, d.hh.hasElemSeparators()
  31318. containerLen := dd.ReadMapStart()
  31319. if canChange && v == nil {
  31320. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31321. v = make(map[int16]int32, xlen)
  31322. changed = true
  31323. }
  31324. if containerLen == 0 {
  31325. dd.ReadMapEnd()
  31326. return v, changed
  31327. }
  31328. d.depthIncr()
  31329. var mk int16
  31330. var mv int32
  31331. hasLen := containerLen > 0
  31332. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31333. if esep {
  31334. dd.ReadMapElemKey()
  31335. }
  31336. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31337. if esep {
  31338. dd.ReadMapElemValue()
  31339. }
  31340. if dd.TryDecodeAsNil() {
  31341. if v == nil {
  31342. } else if d.h.DeleteOnNilMapValue {
  31343. delete(v, mk)
  31344. } else {
  31345. v[mk] = 0
  31346. }
  31347. continue
  31348. }
  31349. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31350. if v != nil {
  31351. v[mk] = mv
  31352. }
  31353. }
  31354. dd.ReadMapEnd()
  31355. d.depthDecr()
  31356. return v, changed
  31357. }
  31358. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  31359. if rv.Kind() == reflect.Ptr {
  31360. vp := rv2i(rv).(*map[int16]int64)
  31361. v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d)
  31362. if changed {
  31363. *vp = v
  31364. }
  31365. } else {
  31366. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  31367. }
  31368. }
  31369. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  31370. v, changed := f.DecMapInt16Int64V(*vp, true, d)
  31371. if changed {
  31372. *vp = v
  31373. }
  31374. }
  31375. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  31376. d *Decoder) (_ map[int16]int64, changed bool) {
  31377. dd, esep := d.d, d.hh.hasElemSeparators()
  31378. containerLen := dd.ReadMapStart()
  31379. if canChange && v == nil {
  31380. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31381. v = make(map[int16]int64, xlen)
  31382. changed = true
  31383. }
  31384. if containerLen == 0 {
  31385. dd.ReadMapEnd()
  31386. return v, changed
  31387. }
  31388. d.depthIncr()
  31389. var mk int16
  31390. var mv int64
  31391. hasLen := containerLen > 0
  31392. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31393. if esep {
  31394. dd.ReadMapElemKey()
  31395. }
  31396. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31397. if esep {
  31398. dd.ReadMapElemValue()
  31399. }
  31400. if dd.TryDecodeAsNil() {
  31401. if v == nil {
  31402. } else if d.h.DeleteOnNilMapValue {
  31403. delete(v, mk)
  31404. } else {
  31405. v[mk] = 0
  31406. }
  31407. continue
  31408. }
  31409. mv = dd.DecodeInt64()
  31410. if v != nil {
  31411. v[mk] = mv
  31412. }
  31413. }
  31414. dd.ReadMapEnd()
  31415. d.depthDecr()
  31416. return v, changed
  31417. }
  31418. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  31419. if rv.Kind() == reflect.Ptr {
  31420. vp := rv2i(rv).(*map[int16]float32)
  31421. v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d)
  31422. if changed {
  31423. *vp = v
  31424. }
  31425. } else {
  31426. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  31427. }
  31428. }
  31429. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  31430. v, changed := f.DecMapInt16Float32V(*vp, true, d)
  31431. if changed {
  31432. *vp = v
  31433. }
  31434. }
  31435. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  31436. d *Decoder) (_ map[int16]float32, changed bool) {
  31437. dd, esep := d.d, d.hh.hasElemSeparators()
  31438. containerLen := dd.ReadMapStart()
  31439. if canChange && v == nil {
  31440. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31441. v = make(map[int16]float32, xlen)
  31442. changed = true
  31443. }
  31444. if containerLen == 0 {
  31445. dd.ReadMapEnd()
  31446. return v, changed
  31447. }
  31448. d.depthIncr()
  31449. var mk int16
  31450. var mv float32
  31451. hasLen := containerLen > 0
  31452. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31453. if esep {
  31454. dd.ReadMapElemKey()
  31455. }
  31456. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31457. if esep {
  31458. dd.ReadMapElemValue()
  31459. }
  31460. if dd.TryDecodeAsNil() {
  31461. if v == nil {
  31462. } else if d.h.DeleteOnNilMapValue {
  31463. delete(v, mk)
  31464. } else {
  31465. v[mk] = 0
  31466. }
  31467. continue
  31468. }
  31469. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  31470. if v != nil {
  31471. v[mk] = mv
  31472. }
  31473. }
  31474. dd.ReadMapEnd()
  31475. d.depthDecr()
  31476. return v, changed
  31477. }
  31478. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  31479. if rv.Kind() == reflect.Ptr {
  31480. vp := rv2i(rv).(*map[int16]float64)
  31481. v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d)
  31482. if changed {
  31483. *vp = v
  31484. }
  31485. } else {
  31486. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  31487. }
  31488. }
  31489. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  31490. v, changed := f.DecMapInt16Float64V(*vp, true, d)
  31491. if changed {
  31492. *vp = v
  31493. }
  31494. }
  31495. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  31496. d *Decoder) (_ map[int16]float64, changed bool) {
  31497. dd, esep := d.d, d.hh.hasElemSeparators()
  31498. containerLen := dd.ReadMapStart()
  31499. if canChange && v == nil {
  31500. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31501. v = make(map[int16]float64, xlen)
  31502. changed = true
  31503. }
  31504. if containerLen == 0 {
  31505. dd.ReadMapEnd()
  31506. return v, changed
  31507. }
  31508. d.depthIncr()
  31509. var mk int16
  31510. var mv float64
  31511. hasLen := containerLen > 0
  31512. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31513. if esep {
  31514. dd.ReadMapElemKey()
  31515. }
  31516. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31517. if esep {
  31518. dd.ReadMapElemValue()
  31519. }
  31520. if dd.TryDecodeAsNil() {
  31521. if v == nil {
  31522. } else if d.h.DeleteOnNilMapValue {
  31523. delete(v, mk)
  31524. } else {
  31525. v[mk] = 0
  31526. }
  31527. continue
  31528. }
  31529. mv = dd.DecodeFloat64()
  31530. if v != nil {
  31531. v[mk] = mv
  31532. }
  31533. }
  31534. dd.ReadMapEnd()
  31535. d.depthDecr()
  31536. return v, changed
  31537. }
  31538. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  31539. if rv.Kind() == reflect.Ptr {
  31540. vp := rv2i(rv).(*map[int16]bool)
  31541. v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d)
  31542. if changed {
  31543. *vp = v
  31544. }
  31545. } else {
  31546. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  31547. }
  31548. }
  31549. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  31550. v, changed := f.DecMapInt16BoolV(*vp, true, d)
  31551. if changed {
  31552. *vp = v
  31553. }
  31554. }
  31555. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  31556. d *Decoder) (_ map[int16]bool, changed bool) {
  31557. dd, esep := d.d, d.hh.hasElemSeparators()
  31558. containerLen := dd.ReadMapStart()
  31559. if canChange && v == nil {
  31560. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31561. v = make(map[int16]bool, xlen)
  31562. changed = true
  31563. }
  31564. if containerLen == 0 {
  31565. dd.ReadMapEnd()
  31566. return v, changed
  31567. }
  31568. d.depthIncr()
  31569. var mk int16
  31570. var mv bool
  31571. hasLen := containerLen > 0
  31572. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31573. if esep {
  31574. dd.ReadMapElemKey()
  31575. }
  31576. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31577. if esep {
  31578. dd.ReadMapElemValue()
  31579. }
  31580. if dd.TryDecodeAsNil() {
  31581. if v == nil {
  31582. } else if d.h.DeleteOnNilMapValue {
  31583. delete(v, mk)
  31584. } else {
  31585. v[mk] = false
  31586. }
  31587. continue
  31588. }
  31589. mv = dd.DecodeBool()
  31590. if v != nil {
  31591. v[mk] = mv
  31592. }
  31593. }
  31594. dd.ReadMapEnd()
  31595. d.depthDecr()
  31596. return v, changed
  31597. }
  31598. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  31599. if rv.Kind() == reflect.Ptr {
  31600. vp := rv2i(rv).(*map[int32]interface{})
  31601. v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d)
  31602. if changed {
  31603. *vp = v
  31604. }
  31605. } else {
  31606. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  31607. }
  31608. }
  31609. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  31610. v, changed := f.DecMapInt32IntfV(*vp, true, d)
  31611. if changed {
  31612. *vp = v
  31613. }
  31614. }
  31615. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  31616. d *Decoder) (_ map[int32]interface{}, changed bool) {
  31617. dd, esep := d.d, d.hh.hasElemSeparators()
  31618. containerLen := dd.ReadMapStart()
  31619. if canChange && v == nil {
  31620. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  31621. v = make(map[int32]interface{}, xlen)
  31622. changed = true
  31623. }
  31624. if containerLen == 0 {
  31625. dd.ReadMapEnd()
  31626. return v, changed
  31627. }
  31628. d.depthIncr()
  31629. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  31630. var mk int32
  31631. var mv interface{}
  31632. hasLen := containerLen > 0
  31633. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31634. if esep {
  31635. dd.ReadMapElemKey()
  31636. }
  31637. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31638. if esep {
  31639. dd.ReadMapElemValue()
  31640. }
  31641. if dd.TryDecodeAsNil() {
  31642. if v == nil {
  31643. } else if d.h.DeleteOnNilMapValue {
  31644. delete(v, mk)
  31645. } else {
  31646. v[mk] = nil
  31647. }
  31648. continue
  31649. }
  31650. if mapGet {
  31651. mv = v[mk]
  31652. } else {
  31653. mv = nil
  31654. }
  31655. d.decode(&mv)
  31656. if v != nil {
  31657. v[mk] = mv
  31658. }
  31659. }
  31660. dd.ReadMapEnd()
  31661. d.depthDecr()
  31662. return v, changed
  31663. }
  31664. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  31665. if rv.Kind() == reflect.Ptr {
  31666. vp := rv2i(rv).(*map[int32]string)
  31667. v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d)
  31668. if changed {
  31669. *vp = v
  31670. }
  31671. } else {
  31672. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  31673. }
  31674. }
  31675. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  31676. v, changed := f.DecMapInt32StringV(*vp, true, d)
  31677. if changed {
  31678. *vp = v
  31679. }
  31680. }
  31681. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  31682. d *Decoder) (_ map[int32]string, changed bool) {
  31683. dd, esep := d.d, d.hh.hasElemSeparators()
  31684. containerLen := dd.ReadMapStart()
  31685. if canChange && v == nil {
  31686. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  31687. v = make(map[int32]string, xlen)
  31688. changed = true
  31689. }
  31690. if containerLen == 0 {
  31691. dd.ReadMapEnd()
  31692. return v, changed
  31693. }
  31694. d.depthIncr()
  31695. var mk int32
  31696. var mv string
  31697. hasLen := containerLen > 0
  31698. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31699. if esep {
  31700. dd.ReadMapElemKey()
  31701. }
  31702. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31703. if esep {
  31704. dd.ReadMapElemValue()
  31705. }
  31706. if dd.TryDecodeAsNil() {
  31707. if v == nil {
  31708. } else if d.h.DeleteOnNilMapValue {
  31709. delete(v, mk)
  31710. } else {
  31711. v[mk] = ""
  31712. }
  31713. continue
  31714. }
  31715. mv = dd.DecodeString()
  31716. if v != nil {
  31717. v[mk] = mv
  31718. }
  31719. }
  31720. dd.ReadMapEnd()
  31721. d.depthDecr()
  31722. return v, changed
  31723. }
  31724. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  31725. if rv.Kind() == reflect.Ptr {
  31726. vp := rv2i(rv).(*map[int32]uint)
  31727. v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d)
  31728. if changed {
  31729. *vp = v
  31730. }
  31731. } else {
  31732. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  31733. }
  31734. }
  31735. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  31736. v, changed := f.DecMapInt32UintV(*vp, true, d)
  31737. if changed {
  31738. *vp = v
  31739. }
  31740. }
  31741. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  31742. d *Decoder) (_ map[int32]uint, changed bool) {
  31743. dd, esep := d.d, d.hh.hasElemSeparators()
  31744. containerLen := dd.ReadMapStart()
  31745. if canChange && v == nil {
  31746. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31747. v = make(map[int32]uint, xlen)
  31748. changed = true
  31749. }
  31750. if containerLen == 0 {
  31751. dd.ReadMapEnd()
  31752. return v, changed
  31753. }
  31754. d.depthIncr()
  31755. var mk int32
  31756. var mv uint
  31757. hasLen := containerLen > 0
  31758. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31759. if esep {
  31760. dd.ReadMapElemKey()
  31761. }
  31762. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31763. if esep {
  31764. dd.ReadMapElemValue()
  31765. }
  31766. if dd.TryDecodeAsNil() {
  31767. if v == nil {
  31768. } else if d.h.DeleteOnNilMapValue {
  31769. delete(v, mk)
  31770. } else {
  31771. v[mk] = 0
  31772. }
  31773. continue
  31774. }
  31775. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31776. if v != nil {
  31777. v[mk] = mv
  31778. }
  31779. }
  31780. dd.ReadMapEnd()
  31781. d.depthDecr()
  31782. return v, changed
  31783. }
  31784. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  31785. if rv.Kind() == reflect.Ptr {
  31786. vp := rv2i(rv).(*map[int32]uint8)
  31787. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d)
  31788. if changed {
  31789. *vp = v
  31790. }
  31791. } else {
  31792. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  31793. }
  31794. }
  31795. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  31796. v, changed := f.DecMapInt32Uint8V(*vp, true, d)
  31797. if changed {
  31798. *vp = v
  31799. }
  31800. }
  31801. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  31802. d *Decoder) (_ map[int32]uint8, changed bool) {
  31803. dd, esep := d.d, d.hh.hasElemSeparators()
  31804. containerLen := dd.ReadMapStart()
  31805. if canChange && v == nil {
  31806. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31807. v = make(map[int32]uint8, xlen)
  31808. changed = true
  31809. }
  31810. if containerLen == 0 {
  31811. dd.ReadMapEnd()
  31812. return v, changed
  31813. }
  31814. d.depthIncr()
  31815. var mk int32
  31816. var mv uint8
  31817. hasLen := containerLen > 0
  31818. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31819. if esep {
  31820. dd.ReadMapElemKey()
  31821. }
  31822. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31823. if esep {
  31824. dd.ReadMapElemValue()
  31825. }
  31826. if dd.TryDecodeAsNil() {
  31827. if v == nil {
  31828. } else if d.h.DeleteOnNilMapValue {
  31829. delete(v, mk)
  31830. } else {
  31831. v[mk] = 0
  31832. }
  31833. continue
  31834. }
  31835. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  31836. if v != nil {
  31837. v[mk] = mv
  31838. }
  31839. }
  31840. dd.ReadMapEnd()
  31841. d.depthDecr()
  31842. return v, changed
  31843. }
  31844. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  31845. if rv.Kind() == reflect.Ptr {
  31846. vp := rv2i(rv).(*map[int32]uint16)
  31847. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d)
  31848. if changed {
  31849. *vp = v
  31850. }
  31851. } else {
  31852. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  31853. }
  31854. }
  31855. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  31856. v, changed := f.DecMapInt32Uint16V(*vp, true, d)
  31857. if changed {
  31858. *vp = v
  31859. }
  31860. }
  31861. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  31862. d *Decoder) (_ map[int32]uint16, changed bool) {
  31863. dd, esep := d.d, d.hh.hasElemSeparators()
  31864. containerLen := dd.ReadMapStart()
  31865. if canChange && v == nil {
  31866. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31867. v = make(map[int32]uint16, xlen)
  31868. changed = true
  31869. }
  31870. if containerLen == 0 {
  31871. dd.ReadMapEnd()
  31872. return v, changed
  31873. }
  31874. d.depthIncr()
  31875. var mk int32
  31876. var mv uint16
  31877. hasLen := containerLen > 0
  31878. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31879. if esep {
  31880. dd.ReadMapElemKey()
  31881. }
  31882. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31883. if esep {
  31884. dd.ReadMapElemValue()
  31885. }
  31886. if dd.TryDecodeAsNil() {
  31887. if v == nil {
  31888. } else if d.h.DeleteOnNilMapValue {
  31889. delete(v, mk)
  31890. } else {
  31891. v[mk] = 0
  31892. }
  31893. continue
  31894. }
  31895. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  31896. if v != nil {
  31897. v[mk] = mv
  31898. }
  31899. }
  31900. dd.ReadMapEnd()
  31901. d.depthDecr()
  31902. return v, changed
  31903. }
  31904. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  31905. if rv.Kind() == reflect.Ptr {
  31906. vp := rv2i(rv).(*map[int32]uint32)
  31907. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d)
  31908. if changed {
  31909. *vp = v
  31910. }
  31911. } else {
  31912. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  31913. }
  31914. }
  31915. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  31916. v, changed := f.DecMapInt32Uint32V(*vp, true, d)
  31917. if changed {
  31918. *vp = v
  31919. }
  31920. }
  31921. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  31922. d *Decoder) (_ map[int32]uint32, changed bool) {
  31923. dd, esep := d.d, d.hh.hasElemSeparators()
  31924. containerLen := dd.ReadMapStart()
  31925. if canChange && v == nil {
  31926. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  31927. v = make(map[int32]uint32, xlen)
  31928. changed = true
  31929. }
  31930. if containerLen == 0 {
  31931. dd.ReadMapEnd()
  31932. return v, changed
  31933. }
  31934. d.depthIncr()
  31935. var mk int32
  31936. var mv uint32
  31937. hasLen := containerLen > 0
  31938. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31939. if esep {
  31940. dd.ReadMapElemKey()
  31941. }
  31942. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31943. if esep {
  31944. dd.ReadMapElemValue()
  31945. }
  31946. if dd.TryDecodeAsNil() {
  31947. if v == nil {
  31948. } else if d.h.DeleteOnNilMapValue {
  31949. delete(v, mk)
  31950. } else {
  31951. v[mk] = 0
  31952. }
  31953. continue
  31954. }
  31955. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  31956. if v != nil {
  31957. v[mk] = mv
  31958. }
  31959. }
  31960. dd.ReadMapEnd()
  31961. d.depthDecr()
  31962. return v, changed
  31963. }
  31964. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  31965. if rv.Kind() == reflect.Ptr {
  31966. vp := rv2i(rv).(*map[int32]uint64)
  31967. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d)
  31968. if changed {
  31969. *vp = v
  31970. }
  31971. } else {
  31972. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  31973. }
  31974. }
  31975. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  31976. v, changed := f.DecMapInt32Uint64V(*vp, true, d)
  31977. if changed {
  31978. *vp = v
  31979. }
  31980. }
  31981. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  31982. d *Decoder) (_ map[int32]uint64, changed bool) {
  31983. dd, esep := d.d, d.hh.hasElemSeparators()
  31984. containerLen := dd.ReadMapStart()
  31985. if canChange && v == nil {
  31986. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31987. v = make(map[int32]uint64, xlen)
  31988. changed = true
  31989. }
  31990. if containerLen == 0 {
  31991. dd.ReadMapEnd()
  31992. return v, changed
  31993. }
  31994. d.depthIncr()
  31995. var mk int32
  31996. var mv uint64
  31997. hasLen := containerLen > 0
  31998. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31999. if esep {
  32000. dd.ReadMapElemKey()
  32001. }
  32002. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32003. if esep {
  32004. dd.ReadMapElemValue()
  32005. }
  32006. if dd.TryDecodeAsNil() {
  32007. if v == nil {
  32008. } else if d.h.DeleteOnNilMapValue {
  32009. delete(v, mk)
  32010. } else {
  32011. v[mk] = 0
  32012. }
  32013. continue
  32014. }
  32015. mv = dd.DecodeUint64()
  32016. if v != nil {
  32017. v[mk] = mv
  32018. }
  32019. }
  32020. dd.ReadMapEnd()
  32021. d.depthDecr()
  32022. return v, changed
  32023. }
  32024. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  32025. if rv.Kind() == reflect.Ptr {
  32026. vp := rv2i(rv).(*map[int32]uintptr)
  32027. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d)
  32028. if changed {
  32029. *vp = v
  32030. }
  32031. } else {
  32032. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  32033. }
  32034. }
  32035. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  32036. v, changed := f.DecMapInt32UintptrV(*vp, true, d)
  32037. if changed {
  32038. *vp = v
  32039. }
  32040. }
  32041. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  32042. d *Decoder) (_ map[int32]uintptr, changed bool) {
  32043. dd, esep := d.d, d.hh.hasElemSeparators()
  32044. containerLen := dd.ReadMapStart()
  32045. if canChange && v == nil {
  32046. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32047. v = make(map[int32]uintptr, xlen)
  32048. changed = true
  32049. }
  32050. if containerLen == 0 {
  32051. dd.ReadMapEnd()
  32052. return v, changed
  32053. }
  32054. d.depthIncr()
  32055. var mk int32
  32056. var mv uintptr
  32057. hasLen := containerLen > 0
  32058. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32059. if esep {
  32060. dd.ReadMapElemKey()
  32061. }
  32062. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32063. if esep {
  32064. dd.ReadMapElemValue()
  32065. }
  32066. if dd.TryDecodeAsNil() {
  32067. if v == nil {
  32068. } else if d.h.DeleteOnNilMapValue {
  32069. delete(v, mk)
  32070. } else {
  32071. v[mk] = 0
  32072. }
  32073. continue
  32074. }
  32075. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32076. if v != nil {
  32077. v[mk] = mv
  32078. }
  32079. }
  32080. dd.ReadMapEnd()
  32081. d.depthDecr()
  32082. return v, changed
  32083. }
  32084. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  32085. if rv.Kind() == reflect.Ptr {
  32086. vp := rv2i(rv).(*map[int32]int)
  32087. v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d)
  32088. if changed {
  32089. *vp = v
  32090. }
  32091. } else {
  32092. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  32093. }
  32094. }
  32095. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  32096. v, changed := f.DecMapInt32IntV(*vp, true, d)
  32097. if changed {
  32098. *vp = v
  32099. }
  32100. }
  32101. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  32102. d *Decoder) (_ map[int32]int, changed bool) {
  32103. dd, esep := d.d, d.hh.hasElemSeparators()
  32104. containerLen := dd.ReadMapStart()
  32105. if canChange && v == nil {
  32106. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32107. v = make(map[int32]int, xlen)
  32108. changed = true
  32109. }
  32110. if containerLen == 0 {
  32111. dd.ReadMapEnd()
  32112. return v, changed
  32113. }
  32114. d.depthIncr()
  32115. var mk int32
  32116. var mv int
  32117. hasLen := containerLen > 0
  32118. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32119. if esep {
  32120. dd.ReadMapElemKey()
  32121. }
  32122. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32123. if esep {
  32124. dd.ReadMapElemValue()
  32125. }
  32126. if dd.TryDecodeAsNil() {
  32127. if v == nil {
  32128. } else if d.h.DeleteOnNilMapValue {
  32129. delete(v, mk)
  32130. } else {
  32131. v[mk] = 0
  32132. }
  32133. continue
  32134. }
  32135. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  32136. if v != nil {
  32137. v[mk] = mv
  32138. }
  32139. }
  32140. dd.ReadMapEnd()
  32141. d.depthDecr()
  32142. return v, changed
  32143. }
  32144. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  32145. if rv.Kind() == reflect.Ptr {
  32146. vp := rv2i(rv).(*map[int32]int8)
  32147. v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d)
  32148. if changed {
  32149. *vp = v
  32150. }
  32151. } else {
  32152. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  32153. }
  32154. }
  32155. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  32156. v, changed := f.DecMapInt32Int8V(*vp, true, d)
  32157. if changed {
  32158. *vp = v
  32159. }
  32160. }
  32161. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  32162. d *Decoder) (_ map[int32]int8, changed bool) {
  32163. dd, esep := d.d, d.hh.hasElemSeparators()
  32164. containerLen := dd.ReadMapStart()
  32165. if canChange && v == nil {
  32166. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32167. v = make(map[int32]int8, xlen)
  32168. changed = true
  32169. }
  32170. if containerLen == 0 {
  32171. dd.ReadMapEnd()
  32172. return v, changed
  32173. }
  32174. d.depthIncr()
  32175. var mk int32
  32176. var mv int8
  32177. hasLen := containerLen > 0
  32178. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32179. if esep {
  32180. dd.ReadMapElemKey()
  32181. }
  32182. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32183. if esep {
  32184. dd.ReadMapElemValue()
  32185. }
  32186. if dd.TryDecodeAsNil() {
  32187. if v == nil {
  32188. } else if d.h.DeleteOnNilMapValue {
  32189. delete(v, mk)
  32190. } else {
  32191. v[mk] = 0
  32192. }
  32193. continue
  32194. }
  32195. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  32196. if v != nil {
  32197. v[mk] = mv
  32198. }
  32199. }
  32200. dd.ReadMapEnd()
  32201. d.depthDecr()
  32202. return v, changed
  32203. }
  32204. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  32205. if rv.Kind() == reflect.Ptr {
  32206. vp := rv2i(rv).(*map[int32]int16)
  32207. v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d)
  32208. if changed {
  32209. *vp = v
  32210. }
  32211. } else {
  32212. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  32213. }
  32214. }
  32215. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  32216. v, changed := f.DecMapInt32Int16V(*vp, true, d)
  32217. if changed {
  32218. *vp = v
  32219. }
  32220. }
  32221. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  32222. d *Decoder) (_ map[int32]int16, changed bool) {
  32223. dd, esep := d.d, d.hh.hasElemSeparators()
  32224. containerLen := dd.ReadMapStart()
  32225. if canChange && v == nil {
  32226. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  32227. v = make(map[int32]int16, xlen)
  32228. changed = true
  32229. }
  32230. if containerLen == 0 {
  32231. dd.ReadMapEnd()
  32232. return v, changed
  32233. }
  32234. d.depthIncr()
  32235. var mk int32
  32236. var mv int16
  32237. hasLen := containerLen > 0
  32238. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32239. if esep {
  32240. dd.ReadMapElemKey()
  32241. }
  32242. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32243. if esep {
  32244. dd.ReadMapElemValue()
  32245. }
  32246. if dd.TryDecodeAsNil() {
  32247. if v == nil {
  32248. } else if d.h.DeleteOnNilMapValue {
  32249. delete(v, mk)
  32250. } else {
  32251. v[mk] = 0
  32252. }
  32253. continue
  32254. }
  32255. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  32256. if v != nil {
  32257. v[mk] = mv
  32258. }
  32259. }
  32260. dd.ReadMapEnd()
  32261. d.depthDecr()
  32262. return v, changed
  32263. }
  32264. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  32265. if rv.Kind() == reflect.Ptr {
  32266. vp := rv2i(rv).(*map[int32]int32)
  32267. v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d)
  32268. if changed {
  32269. *vp = v
  32270. }
  32271. } else {
  32272. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  32273. }
  32274. }
  32275. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  32276. v, changed := f.DecMapInt32Int32V(*vp, true, d)
  32277. if changed {
  32278. *vp = v
  32279. }
  32280. }
  32281. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  32282. d *Decoder) (_ map[int32]int32, changed bool) {
  32283. dd, esep := d.d, d.hh.hasElemSeparators()
  32284. containerLen := dd.ReadMapStart()
  32285. if canChange && v == nil {
  32286. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  32287. v = make(map[int32]int32, xlen)
  32288. changed = true
  32289. }
  32290. if containerLen == 0 {
  32291. dd.ReadMapEnd()
  32292. return v, changed
  32293. }
  32294. d.depthIncr()
  32295. var mk int32
  32296. var mv int32
  32297. hasLen := containerLen > 0
  32298. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32299. if esep {
  32300. dd.ReadMapElemKey()
  32301. }
  32302. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32303. if esep {
  32304. dd.ReadMapElemValue()
  32305. }
  32306. if dd.TryDecodeAsNil() {
  32307. if v == nil {
  32308. } else if d.h.DeleteOnNilMapValue {
  32309. delete(v, mk)
  32310. } else {
  32311. v[mk] = 0
  32312. }
  32313. continue
  32314. }
  32315. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32316. if v != nil {
  32317. v[mk] = mv
  32318. }
  32319. }
  32320. dd.ReadMapEnd()
  32321. d.depthDecr()
  32322. return v, changed
  32323. }
  32324. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  32325. if rv.Kind() == reflect.Ptr {
  32326. vp := rv2i(rv).(*map[int32]int64)
  32327. v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d)
  32328. if changed {
  32329. *vp = v
  32330. }
  32331. } else {
  32332. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  32333. }
  32334. }
  32335. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  32336. v, changed := f.DecMapInt32Int64V(*vp, true, d)
  32337. if changed {
  32338. *vp = v
  32339. }
  32340. }
  32341. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  32342. d *Decoder) (_ map[int32]int64, changed bool) {
  32343. dd, esep := d.d, d.hh.hasElemSeparators()
  32344. containerLen := dd.ReadMapStart()
  32345. if canChange && v == nil {
  32346. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32347. v = make(map[int32]int64, xlen)
  32348. changed = true
  32349. }
  32350. if containerLen == 0 {
  32351. dd.ReadMapEnd()
  32352. return v, changed
  32353. }
  32354. d.depthIncr()
  32355. var mk int32
  32356. var mv int64
  32357. hasLen := containerLen > 0
  32358. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32359. if esep {
  32360. dd.ReadMapElemKey()
  32361. }
  32362. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32363. if esep {
  32364. dd.ReadMapElemValue()
  32365. }
  32366. if dd.TryDecodeAsNil() {
  32367. if v == nil {
  32368. } else if d.h.DeleteOnNilMapValue {
  32369. delete(v, mk)
  32370. } else {
  32371. v[mk] = 0
  32372. }
  32373. continue
  32374. }
  32375. mv = dd.DecodeInt64()
  32376. if v != nil {
  32377. v[mk] = mv
  32378. }
  32379. }
  32380. dd.ReadMapEnd()
  32381. d.depthDecr()
  32382. return v, changed
  32383. }
  32384. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  32385. if rv.Kind() == reflect.Ptr {
  32386. vp := rv2i(rv).(*map[int32]float32)
  32387. v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d)
  32388. if changed {
  32389. *vp = v
  32390. }
  32391. } else {
  32392. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  32393. }
  32394. }
  32395. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  32396. v, changed := f.DecMapInt32Float32V(*vp, true, d)
  32397. if changed {
  32398. *vp = v
  32399. }
  32400. }
  32401. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  32402. d *Decoder) (_ map[int32]float32, changed bool) {
  32403. dd, esep := d.d, d.hh.hasElemSeparators()
  32404. containerLen := dd.ReadMapStart()
  32405. if canChange && v == nil {
  32406. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  32407. v = make(map[int32]float32, xlen)
  32408. changed = true
  32409. }
  32410. if containerLen == 0 {
  32411. dd.ReadMapEnd()
  32412. return v, changed
  32413. }
  32414. d.depthIncr()
  32415. var mk int32
  32416. var mv float32
  32417. hasLen := containerLen > 0
  32418. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32419. if esep {
  32420. dd.ReadMapElemKey()
  32421. }
  32422. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32423. if esep {
  32424. dd.ReadMapElemValue()
  32425. }
  32426. if dd.TryDecodeAsNil() {
  32427. if v == nil {
  32428. } else if d.h.DeleteOnNilMapValue {
  32429. delete(v, mk)
  32430. } else {
  32431. v[mk] = 0
  32432. }
  32433. continue
  32434. }
  32435. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  32436. if v != nil {
  32437. v[mk] = mv
  32438. }
  32439. }
  32440. dd.ReadMapEnd()
  32441. d.depthDecr()
  32442. return v, changed
  32443. }
  32444. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  32445. if rv.Kind() == reflect.Ptr {
  32446. vp := rv2i(rv).(*map[int32]float64)
  32447. v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d)
  32448. if changed {
  32449. *vp = v
  32450. }
  32451. } else {
  32452. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  32453. }
  32454. }
  32455. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  32456. v, changed := f.DecMapInt32Float64V(*vp, true, d)
  32457. if changed {
  32458. *vp = v
  32459. }
  32460. }
  32461. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  32462. d *Decoder) (_ map[int32]float64, changed bool) {
  32463. dd, esep := d.d, d.hh.hasElemSeparators()
  32464. containerLen := dd.ReadMapStart()
  32465. if canChange && v == nil {
  32466. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32467. v = make(map[int32]float64, xlen)
  32468. changed = true
  32469. }
  32470. if containerLen == 0 {
  32471. dd.ReadMapEnd()
  32472. return v, changed
  32473. }
  32474. d.depthIncr()
  32475. var mk int32
  32476. var mv float64
  32477. hasLen := containerLen > 0
  32478. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32479. if esep {
  32480. dd.ReadMapElemKey()
  32481. }
  32482. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32483. if esep {
  32484. dd.ReadMapElemValue()
  32485. }
  32486. if dd.TryDecodeAsNil() {
  32487. if v == nil {
  32488. } else if d.h.DeleteOnNilMapValue {
  32489. delete(v, mk)
  32490. } else {
  32491. v[mk] = 0
  32492. }
  32493. continue
  32494. }
  32495. mv = dd.DecodeFloat64()
  32496. if v != nil {
  32497. v[mk] = mv
  32498. }
  32499. }
  32500. dd.ReadMapEnd()
  32501. d.depthDecr()
  32502. return v, changed
  32503. }
  32504. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  32505. if rv.Kind() == reflect.Ptr {
  32506. vp := rv2i(rv).(*map[int32]bool)
  32507. v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d)
  32508. if changed {
  32509. *vp = v
  32510. }
  32511. } else {
  32512. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  32513. }
  32514. }
  32515. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  32516. v, changed := f.DecMapInt32BoolV(*vp, true, d)
  32517. if changed {
  32518. *vp = v
  32519. }
  32520. }
  32521. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  32522. d *Decoder) (_ map[int32]bool, changed bool) {
  32523. dd, esep := d.d, d.hh.hasElemSeparators()
  32524. containerLen := dd.ReadMapStart()
  32525. if canChange && v == nil {
  32526. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32527. v = make(map[int32]bool, xlen)
  32528. changed = true
  32529. }
  32530. if containerLen == 0 {
  32531. dd.ReadMapEnd()
  32532. return v, changed
  32533. }
  32534. d.depthIncr()
  32535. var mk int32
  32536. var mv bool
  32537. hasLen := containerLen > 0
  32538. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32539. if esep {
  32540. dd.ReadMapElemKey()
  32541. }
  32542. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32543. if esep {
  32544. dd.ReadMapElemValue()
  32545. }
  32546. if dd.TryDecodeAsNil() {
  32547. if v == nil {
  32548. } else if d.h.DeleteOnNilMapValue {
  32549. delete(v, mk)
  32550. } else {
  32551. v[mk] = false
  32552. }
  32553. continue
  32554. }
  32555. mv = dd.DecodeBool()
  32556. if v != nil {
  32557. v[mk] = mv
  32558. }
  32559. }
  32560. dd.ReadMapEnd()
  32561. d.depthDecr()
  32562. return v, changed
  32563. }
  32564. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  32565. if rv.Kind() == reflect.Ptr {
  32566. vp := rv2i(rv).(*map[int64]interface{})
  32567. v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d)
  32568. if changed {
  32569. *vp = v
  32570. }
  32571. } else {
  32572. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  32573. }
  32574. }
  32575. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  32576. v, changed := f.DecMapInt64IntfV(*vp, true, d)
  32577. if changed {
  32578. *vp = v
  32579. }
  32580. }
  32581. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  32582. d *Decoder) (_ map[int64]interface{}, changed bool) {
  32583. dd, esep := d.d, d.hh.hasElemSeparators()
  32584. containerLen := dd.ReadMapStart()
  32585. if canChange && v == nil {
  32586. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  32587. v = make(map[int64]interface{}, xlen)
  32588. changed = true
  32589. }
  32590. if containerLen == 0 {
  32591. dd.ReadMapEnd()
  32592. return v, changed
  32593. }
  32594. d.depthIncr()
  32595. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  32596. var mk int64
  32597. var mv interface{}
  32598. hasLen := containerLen > 0
  32599. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32600. if esep {
  32601. dd.ReadMapElemKey()
  32602. }
  32603. mk = dd.DecodeInt64()
  32604. if esep {
  32605. dd.ReadMapElemValue()
  32606. }
  32607. if dd.TryDecodeAsNil() {
  32608. if v == nil {
  32609. } else if d.h.DeleteOnNilMapValue {
  32610. delete(v, mk)
  32611. } else {
  32612. v[mk] = nil
  32613. }
  32614. continue
  32615. }
  32616. if mapGet {
  32617. mv = v[mk]
  32618. } else {
  32619. mv = nil
  32620. }
  32621. d.decode(&mv)
  32622. if v != nil {
  32623. v[mk] = mv
  32624. }
  32625. }
  32626. dd.ReadMapEnd()
  32627. d.depthDecr()
  32628. return v, changed
  32629. }
  32630. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  32631. if rv.Kind() == reflect.Ptr {
  32632. vp := rv2i(rv).(*map[int64]string)
  32633. v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d)
  32634. if changed {
  32635. *vp = v
  32636. }
  32637. } else {
  32638. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  32639. }
  32640. }
  32641. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  32642. v, changed := f.DecMapInt64StringV(*vp, true, d)
  32643. if changed {
  32644. *vp = v
  32645. }
  32646. }
  32647. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  32648. d *Decoder) (_ map[int64]string, changed bool) {
  32649. dd, esep := d.d, d.hh.hasElemSeparators()
  32650. containerLen := dd.ReadMapStart()
  32651. if canChange && v == nil {
  32652. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  32653. v = make(map[int64]string, xlen)
  32654. changed = true
  32655. }
  32656. if containerLen == 0 {
  32657. dd.ReadMapEnd()
  32658. return v, changed
  32659. }
  32660. d.depthIncr()
  32661. var mk int64
  32662. var mv string
  32663. hasLen := containerLen > 0
  32664. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32665. if esep {
  32666. dd.ReadMapElemKey()
  32667. }
  32668. mk = dd.DecodeInt64()
  32669. if esep {
  32670. dd.ReadMapElemValue()
  32671. }
  32672. if dd.TryDecodeAsNil() {
  32673. if v == nil {
  32674. } else if d.h.DeleteOnNilMapValue {
  32675. delete(v, mk)
  32676. } else {
  32677. v[mk] = ""
  32678. }
  32679. continue
  32680. }
  32681. mv = dd.DecodeString()
  32682. if v != nil {
  32683. v[mk] = mv
  32684. }
  32685. }
  32686. dd.ReadMapEnd()
  32687. d.depthDecr()
  32688. return v, changed
  32689. }
  32690. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  32691. if rv.Kind() == reflect.Ptr {
  32692. vp := rv2i(rv).(*map[int64]uint)
  32693. v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d)
  32694. if changed {
  32695. *vp = v
  32696. }
  32697. } else {
  32698. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  32699. }
  32700. }
  32701. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  32702. v, changed := f.DecMapInt64UintV(*vp, true, d)
  32703. if changed {
  32704. *vp = v
  32705. }
  32706. }
  32707. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  32708. d *Decoder) (_ map[int64]uint, changed bool) {
  32709. dd, esep := d.d, d.hh.hasElemSeparators()
  32710. containerLen := dd.ReadMapStart()
  32711. if canChange && v == nil {
  32712. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32713. v = make(map[int64]uint, xlen)
  32714. changed = true
  32715. }
  32716. if containerLen == 0 {
  32717. dd.ReadMapEnd()
  32718. return v, changed
  32719. }
  32720. d.depthIncr()
  32721. var mk int64
  32722. var mv uint
  32723. hasLen := containerLen > 0
  32724. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32725. if esep {
  32726. dd.ReadMapElemKey()
  32727. }
  32728. mk = dd.DecodeInt64()
  32729. if esep {
  32730. dd.ReadMapElemValue()
  32731. }
  32732. if dd.TryDecodeAsNil() {
  32733. if v == nil {
  32734. } else if d.h.DeleteOnNilMapValue {
  32735. delete(v, mk)
  32736. } else {
  32737. v[mk] = 0
  32738. }
  32739. continue
  32740. }
  32741. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32742. if v != nil {
  32743. v[mk] = mv
  32744. }
  32745. }
  32746. dd.ReadMapEnd()
  32747. d.depthDecr()
  32748. return v, changed
  32749. }
  32750. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  32751. if rv.Kind() == reflect.Ptr {
  32752. vp := rv2i(rv).(*map[int64]uint8)
  32753. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d)
  32754. if changed {
  32755. *vp = v
  32756. }
  32757. } else {
  32758. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  32759. }
  32760. }
  32761. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  32762. v, changed := f.DecMapInt64Uint8V(*vp, true, d)
  32763. if changed {
  32764. *vp = v
  32765. }
  32766. }
  32767. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  32768. d *Decoder) (_ map[int64]uint8, changed bool) {
  32769. dd, esep := d.d, d.hh.hasElemSeparators()
  32770. containerLen := dd.ReadMapStart()
  32771. if canChange && v == nil {
  32772. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32773. v = make(map[int64]uint8, xlen)
  32774. changed = true
  32775. }
  32776. if containerLen == 0 {
  32777. dd.ReadMapEnd()
  32778. return v, changed
  32779. }
  32780. d.depthIncr()
  32781. var mk int64
  32782. var mv uint8
  32783. hasLen := containerLen > 0
  32784. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32785. if esep {
  32786. dd.ReadMapElemKey()
  32787. }
  32788. mk = dd.DecodeInt64()
  32789. if esep {
  32790. dd.ReadMapElemValue()
  32791. }
  32792. if dd.TryDecodeAsNil() {
  32793. if v == nil {
  32794. } else if d.h.DeleteOnNilMapValue {
  32795. delete(v, mk)
  32796. } else {
  32797. v[mk] = 0
  32798. }
  32799. continue
  32800. }
  32801. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  32802. if v != nil {
  32803. v[mk] = mv
  32804. }
  32805. }
  32806. dd.ReadMapEnd()
  32807. d.depthDecr()
  32808. return v, changed
  32809. }
  32810. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  32811. if rv.Kind() == reflect.Ptr {
  32812. vp := rv2i(rv).(*map[int64]uint16)
  32813. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d)
  32814. if changed {
  32815. *vp = v
  32816. }
  32817. } else {
  32818. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  32819. }
  32820. }
  32821. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  32822. v, changed := f.DecMapInt64Uint16V(*vp, true, d)
  32823. if changed {
  32824. *vp = v
  32825. }
  32826. }
  32827. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  32828. d *Decoder) (_ map[int64]uint16, changed bool) {
  32829. dd, esep := d.d, d.hh.hasElemSeparators()
  32830. containerLen := dd.ReadMapStart()
  32831. if canChange && v == nil {
  32832. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32833. v = make(map[int64]uint16, xlen)
  32834. changed = true
  32835. }
  32836. if containerLen == 0 {
  32837. dd.ReadMapEnd()
  32838. return v, changed
  32839. }
  32840. d.depthIncr()
  32841. var mk int64
  32842. var mv uint16
  32843. hasLen := containerLen > 0
  32844. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32845. if esep {
  32846. dd.ReadMapElemKey()
  32847. }
  32848. mk = dd.DecodeInt64()
  32849. if esep {
  32850. dd.ReadMapElemValue()
  32851. }
  32852. if dd.TryDecodeAsNil() {
  32853. if v == nil {
  32854. } else if d.h.DeleteOnNilMapValue {
  32855. delete(v, mk)
  32856. } else {
  32857. v[mk] = 0
  32858. }
  32859. continue
  32860. }
  32861. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  32862. if v != nil {
  32863. v[mk] = mv
  32864. }
  32865. }
  32866. dd.ReadMapEnd()
  32867. d.depthDecr()
  32868. return v, changed
  32869. }
  32870. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  32871. if rv.Kind() == reflect.Ptr {
  32872. vp := rv2i(rv).(*map[int64]uint32)
  32873. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d)
  32874. if changed {
  32875. *vp = v
  32876. }
  32877. } else {
  32878. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  32879. }
  32880. }
  32881. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  32882. v, changed := f.DecMapInt64Uint32V(*vp, true, d)
  32883. if changed {
  32884. *vp = v
  32885. }
  32886. }
  32887. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  32888. d *Decoder) (_ map[int64]uint32, changed bool) {
  32889. dd, esep := d.d, d.hh.hasElemSeparators()
  32890. containerLen := dd.ReadMapStart()
  32891. if canChange && v == nil {
  32892. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32893. v = make(map[int64]uint32, xlen)
  32894. changed = true
  32895. }
  32896. if containerLen == 0 {
  32897. dd.ReadMapEnd()
  32898. return v, changed
  32899. }
  32900. d.depthIncr()
  32901. var mk int64
  32902. var mv uint32
  32903. hasLen := containerLen > 0
  32904. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32905. if esep {
  32906. dd.ReadMapElemKey()
  32907. }
  32908. mk = dd.DecodeInt64()
  32909. if esep {
  32910. dd.ReadMapElemValue()
  32911. }
  32912. if dd.TryDecodeAsNil() {
  32913. if v == nil {
  32914. } else if d.h.DeleteOnNilMapValue {
  32915. delete(v, mk)
  32916. } else {
  32917. v[mk] = 0
  32918. }
  32919. continue
  32920. }
  32921. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  32922. if v != nil {
  32923. v[mk] = mv
  32924. }
  32925. }
  32926. dd.ReadMapEnd()
  32927. d.depthDecr()
  32928. return v, changed
  32929. }
  32930. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  32931. if rv.Kind() == reflect.Ptr {
  32932. vp := rv2i(rv).(*map[int64]uint64)
  32933. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d)
  32934. if changed {
  32935. *vp = v
  32936. }
  32937. } else {
  32938. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  32939. }
  32940. }
  32941. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  32942. v, changed := f.DecMapInt64Uint64V(*vp, true, d)
  32943. if changed {
  32944. *vp = v
  32945. }
  32946. }
  32947. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  32948. d *Decoder) (_ map[int64]uint64, changed bool) {
  32949. dd, esep := d.d, d.hh.hasElemSeparators()
  32950. containerLen := dd.ReadMapStart()
  32951. if canChange && v == nil {
  32952. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32953. v = make(map[int64]uint64, xlen)
  32954. changed = true
  32955. }
  32956. if containerLen == 0 {
  32957. dd.ReadMapEnd()
  32958. return v, changed
  32959. }
  32960. d.depthIncr()
  32961. var mk int64
  32962. var mv uint64
  32963. hasLen := containerLen > 0
  32964. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32965. if esep {
  32966. dd.ReadMapElemKey()
  32967. }
  32968. mk = dd.DecodeInt64()
  32969. if esep {
  32970. dd.ReadMapElemValue()
  32971. }
  32972. if dd.TryDecodeAsNil() {
  32973. if v == nil {
  32974. } else if d.h.DeleteOnNilMapValue {
  32975. delete(v, mk)
  32976. } else {
  32977. v[mk] = 0
  32978. }
  32979. continue
  32980. }
  32981. mv = dd.DecodeUint64()
  32982. if v != nil {
  32983. v[mk] = mv
  32984. }
  32985. }
  32986. dd.ReadMapEnd()
  32987. d.depthDecr()
  32988. return v, changed
  32989. }
  32990. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  32991. if rv.Kind() == reflect.Ptr {
  32992. vp := rv2i(rv).(*map[int64]uintptr)
  32993. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d)
  32994. if changed {
  32995. *vp = v
  32996. }
  32997. } else {
  32998. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  32999. }
  33000. }
  33001. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  33002. v, changed := f.DecMapInt64UintptrV(*vp, true, d)
  33003. if changed {
  33004. *vp = v
  33005. }
  33006. }
  33007. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  33008. d *Decoder) (_ map[int64]uintptr, changed bool) {
  33009. dd, esep := d.d, d.hh.hasElemSeparators()
  33010. containerLen := dd.ReadMapStart()
  33011. if canChange && v == nil {
  33012. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33013. v = make(map[int64]uintptr, xlen)
  33014. changed = true
  33015. }
  33016. if containerLen == 0 {
  33017. dd.ReadMapEnd()
  33018. return v, changed
  33019. }
  33020. d.depthIncr()
  33021. var mk int64
  33022. var mv uintptr
  33023. hasLen := containerLen > 0
  33024. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33025. if esep {
  33026. dd.ReadMapElemKey()
  33027. }
  33028. mk = dd.DecodeInt64()
  33029. if esep {
  33030. dd.ReadMapElemValue()
  33031. }
  33032. if dd.TryDecodeAsNil() {
  33033. if v == nil {
  33034. } else if d.h.DeleteOnNilMapValue {
  33035. delete(v, mk)
  33036. } else {
  33037. v[mk] = 0
  33038. }
  33039. continue
  33040. }
  33041. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33042. if v != nil {
  33043. v[mk] = mv
  33044. }
  33045. }
  33046. dd.ReadMapEnd()
  33047. d.depthDecr()
  33048. return v, changed
  33049. }
  33050. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  33051. if rv.Kind() == reflect.Ptr {
  33052. vp := rv2i(rv).(*map[int64]int)
  33053. v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d)
  33054. if changed {
  33055. *vp = v
  33056. }
  33057. } else {
  33058. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  33059. }
  33060. }
  33061. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  33062. v, changed := f.DecMapInt64IntV(*vp, true, d)
  33063. if changed {
  33064. *vp = v
  33065. }
  33066. }
  33067. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  33068. d *Decoder) (_ map[int64]int, changed bool) {
  33069. dd, esep := d.d, d.hh.hasElemSeparators()
  33070. containerLen := dd.ReadMapStart()
  33071. if canChange && v == nil {
  33072. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33073. v = make(map[int64]int, xlen)
  33074. changed = true
  33075. }
  33076. if containerLen == 0 {
  33077. dd.ReadMapEnd()
  33078. return v, changed
  33079. }
  33080. d.depthIncr()
  33081. var mk int64
  33082. var mv int
  33083. hasLen := containerLen > 0
  33084. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33085. if esep {
  33086. dd.ReadMapElemKey()
  33087. }
  33088. mk = dd.DecodeInt64()
  33089. if esep {
  33090. dd.ReadMapElemValue()
  33091. }
  33092. if dd.TryDecodeAsNil() {
  33093. if v == nil {
  33094. } else if d.h.DeleteOnNilMapValue {
  33095. delete(v, mk)
  33096. } else {
  33097. v[mk] = 0
  33098. }
  33099. continue
  33100. }
  33101. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  33102. if v != nil {
  33103. v[mk] = mv
  33104. }
  33105. }
  33106. dd.ReadMapEnd()
  33107. d.depthDecr()
  33108. return v, changed
  33109. }
  33110. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  33111. if rv.Kind() == reflect.Ptr {
  33112. vp := rv2i(rv).(*map[int64]int8)
  33113. v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d)
  33114. if changed {
  33115. *vp = v
  33116. }
  33117. } else {
  33118. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  33119. }
  33120. }
  33121. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  33122. v, changed := f.DecMapInt64Int8V(*vp, true, d)
  33123. if changed {
  33124. *vp = v
  33125. }
  33126. }
  33127. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  33128. d *Decoder) (_ map[int64]int8, changed bool) {
  33129. dd, esep := d.d, d.hh.hasElemSeparators()
  33130. containerLen := dd.ReadMapStart()
  33131. if canChange && v == nil {
  33132. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33133. v = make(map[int64]int8, xlen)
  33134. changed = true
  33135. }
  33136. if containerLen == 0 {
  33137. dd.ReadMapEnd()
  33138. return v, changed
  33139. }
  33140. d.depthIncr()
  33141. var mk int64
  33142. var mv int8
  33143. hasLen := containerLen > 0
  33144. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33145. if esep {
  33146. dd.ReadMapElemKey()
  33147. }
  33148. mk = dd.DecodeInt64()
  33149. if esep {
  33150. dd.ReadMapElemValue()
  33151. }
  33152. if dd.TryDecodeAsNil() {
  33153. if v == nil {
  33154. } else if d.h.DeleteOnNilMapValue {
  33155. delete(v, mk)
  33156. } else {
  33157. v[mk] = 0
  33158. }
  33159. continue
  33160. }
  33161. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  33162. if v != nil {
  33163. v[mk] = mv
  33164. }
  33165. }
  33166. dd.ReadMapEnd()
  33167. d.depthDecr()
  33168. return v, changed
  33169. }
  33170. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  33171. if rv.Kind() == reflect.Ptr {
  33172. vp := rv2i(rv).(*map[int64]int16)
  33173. v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d)
  33174. if changed {
  33175. *vp = v
  33176. }
  33177. } else {
  33178. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  33179. }
  33180. }
  33181. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  33182. v, changed := f.DecMapInt64Int16V(*vp, true, d)
  33183. if changed {
  33184. *vp = v
  33185. }
  33186. }
  33187. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  33188. d *Decoder) (_ map[int64]int16, changed bool) {
  33189. dd, esep := d.d, d.hh.hasElemSeparators()
  33190. containerLen := dd.ReadMapStart()
  33191. if canChange && v == nil {
  33192. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33193. v = make(map[int64]int16, xlen)
  33194. changed = true
  33195. }
  33196. if containerLen == 0 {
  33197. dd.ReadMapEnd()
  33198. return v, changed
  33199. }
  33200. d.depthIncr()
  33201. var mk int64
  33202. var mv int16
  33203. hasLen := containerLen > 0
  33204. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33205. if esep {
  33206. dd.ReadMapElemKey()
  33207. }
  33208. mk = dd.DecodeInt64()
  33209. if esep {
  33210. dd.ReadMapElemValue()
  33211. }
  33212. if dd.TryDecodeAsNil() {
  33213. if v == nil {
  33214. } else if d.h.DeleteOnNilMapValue {
  33215. delete(v, mk)
  33216. } else {
  33217. v[mk] = 0
  33218. }
  33219. continue
  33220. }
  33221. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  33222. if v != nil {
  33223. v[mk] = mv
  33224. }
  33225. }
  33226. dd.ReadMapEnd()
  33227. d.depthDecr()
  33228. return v, changed
  33229. }
  33230. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  33231. if rv.Kind() == reflect.Ptr {
  33232. vp := rv2i(rv).(*map[int64]int32)
  33233. v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d)
  33234. if changed {
  33235. *vp = v
  33236. }
  33237. } else {
  33238. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  33239. }
  33240. }
  33241. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  33242. v, changed := f.DecMapInt64Int32V(*vp, true, d)
  33243. if changed {
  33244. *vp = v
  33245. }
  33246. }
  33247. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  33248. d *Decoder) (_ map[int64]int32, changed bool) {
  33249. dd, esep := d.d, d.hh.hasElemSeparators()
  33250. containerLen := dd.ReadMapStart()
  33251. if canChange && v == nil {
  33252. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33253. v = make(map[int64]int32, xlen)
  33254. changed = true
  33255. }
  33256. if containerLen == 0 {
  33257. dd.ReadMapEnd()
  33258. return v, changed
  33259. }
  33260. d.depthIncr()
  33261. var mk int64
  33262. var mv int32
  33263. hasLen := containerLen > 0
  33264. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33265. if esep {
  33266. dd.ReadMapElemKey()
  33267. }
  33268. mk = dd.DecodeInt64()
  33269. if esep {
  33270. dd.ReadMapElemValue()
  33271. }
  33272. if dd.TryDecodeAsNil() {
  33273. if v == nil {
  33274. } else if d.h.DeleteOnNilMapValue {
  33275. delete(v, mk)
  33276. } else {
  33277. v[mk] = 0
  33278. }
  33279. continue
  33280. }
  33281. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  33282. if v != nil {
  33283. v[mk] = mv
  33284. }
  33285. }
  33286. dd.ReadMapEnd()
  33287. d.depthDecr()
  33288. return v, changed
  33289. }
  33290. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  33291. if rv.Kind() == reflect.Ptr {
  33292. vp := rv2i(rv).(*map[int64]int64)
  33293. v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d)
  33294. if changed {
  33295. *vp = v
  33296. }
  33297. } else {
  33298. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  33299. }
  33300. }
  33301. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  33302. v, changed := f.DecMapInt64Int64V(*vp, true, d)
  33303. if changed {
  33304. *vp = v
  33305. }
  33306. }
  33307. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  33308. d *Decoder) (_ map[int64]int64, changed bool) {
  33309. dd, esep := d.d, d.hh.hasElemSeparators()
  33310. containerLen := dd.ReadMapStart()
  33311. if canChange && v == nil {
  33312. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33313. v = make(map[int64]int64, xlen)
  33314. changed = true
  33315. }
  33316. if containerLen == 0 {
  33317. dd.ReadMapEnd()
  33318. return v, changed
  33319. }
  33320. d.depthIncr()
  33321. var mk int64
  33322. var mv int64
  33323. hasLen := containerLen > 0
  33324. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33325. if esep {
  33326. dd.ReadMapElemKey()
  33327. }
  33328. mk = dd.DecodeInt64()
  33329. if esep {
  33330. dd.ReadMapElemValue()
  33331. }
  33332. if dd.TryDecodeAsNil() {
  33333. if v == nil {
  33334. } else if d.h.DeleteOnNilMapValue {
  33335. delete(v, mk)
  33336. } else {
  33337. v[mk] = 0
  33338. }
  33339. continue
  33340. }
  33341. mv = dd.DecodeInt64()
  33342. if v != nil {
  33343. v[mk] = mv
  33344. }
  33345. }
  33346. dd.ReadMapEnd()
  33347. d.depthDecr()
  33348. return v, changed
  33349. }
  33350. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  33351. if rv.Kind() == reflect.Ptr {
  33352. vp := rv2i(rv).(*map[int64]float32)
  33353. v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d)
  33354. if changed {
  33355. *vp = v
  33356. }
  33357. } else {
  33358. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  33359. }
  33360. }
  33361. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  33362. v, changed := f.DecMapInt64Float32V(*vp, true, d)
  33363. if changed {
  33364. *vp = v
  33365. }
  33366. }
  33367. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  33368. d *Decoder) (_ map[int64]float32, changed bool) {
  33369. dd, esep := d.d, d.hh.hasElemSeparators()
  33370. containerLen := dd.ReadMapStart()
  33371. if canChange && v == nil {
  33372. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33373. v = make(map[int64]float32, xlen)
  33374. changed = true
  33375. }
  33376. if containerLen == 0 {
  33377. dd.ReadMapEnd()
  33378. return v, changed
  33379. }
  33380. d.depthIncr()
  33381. var mk int64
  33382. var mv float32
  33383. hasLen := containerLen > 0
  33384. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33385. if esep {
  33386. dd.ReadMapElemKey()
  33387. }
  33388. mk = dd.DecodeInt64()
  33389. if esep {
  33390. dd.ReadMapElemValue()
  33391. }
  33392. if dd.TryDecodeAsNil() {
  33393. if v == nil {
  33394. } else if d.h.DeleteOnNilMapValue {
  33395. delete(v, mk)
  33396. } else {
  33397. v[mk] = 0
  33398. }
  33399. continue
  33400. }
  33401. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  33402. if v != nil {
  33403. v[mk] = mv
  33404. }
  33405. }
  33406. dd.ReadMapEnd()
  33407. d.depthDecr()
  33408. return v, changed
  33409. }
  33410. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  33411. if rv.Kind() == reflect.Ptr {
  33412. vp := rv2i(rv).(*map[int64]float64)
  33413. v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d)
  33414. if changed {
  33415. *vp = v
  33416. }
  33417. } else {
  33418. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  33419. }
  33420. }
  33421. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  33422. v, changed := f.DecMapInt64Float64V(*vp, true, d)
  33423. if changed {
  33424. *vp = v
  33425. }
  33426. }
  33427. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  33428. d *Decoder) (_ map[int64]float64, changed bool) {
  33429. dd, esep := d.d, d.hh.hasElemSeparators()
  33430. containerLen := dd.ReadMapStart()
  33431. if canChange && v == nil {
  33432. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33433. v = make(map[int64]float64, xlen)
  33434. changed = true
  33435. }
  33436. if containerLen == 0 {
  33437. dd.ReadMapEnd()
  33438. return v, changed
  33439. }
  33440. d.depthIncr()
  33441. var mk int64
  33442. var mv float64
  33443. hasLen := containerLen > 0
  33444. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33445. if esep {
  33446. dd.ReadMapElemKey()
  33447. }
  33448. mk = dd.DecodeInt64()
  33449. if esep {
  33450. dd.ReadMapElemValue()
  33451. }
  33452. if dd.TryDecodeAsNil() {
  33453. if v == nil {
  33454. } else if d.h.DeleteOnNilMapValue {
  33455. delete(v, mk)
  33456. } else {
  33457. v[mk] = 0
  33458. }
  33459. continue
  33460. }
  33461. mv = dd.DecodeFloat64()
  33462. if v != nil {
  33463. v[mk] = mv
  33464. }
  33465. }
  33466. dd.ReadMapEnd()
  33467. d.depthDecr()
  33468. return v, changed
  33469. }
  33470. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  33471. if rv.Kind() == reflect.Ptr {
  33472. vp := rv2i(rv).(*map[int64]bool)
  33473. v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d)
  33474. if changed {
  33475. *vp = v
  33476. }
  33477. } else {
  33478. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  33479. }
  33480. }
  33481. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  33482. v, changed := f.DecMapInt64BoolV(*vp, true, d)
  33483. if changed {
  33484. *vp = v
  33485. }
  33486. }
  33487. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  33488. d *Decoder) (_ map[int64]bool, changed bool) {
  33489. dd, esep := d.d, d.hh.hasElemSeparators()
  33490. containerLen := dd.ReadMapStart()
  33491. if canChange && v == nil {
  33492. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33493. v = make(map[int64]bool, xlen)
  33494. changed = true
  33495. }
  33496. if containerLen == 0 {
  33497. dd.ReadMapEnd()
  33498. return v, changed
  33499. }
  33500. d.depthIncr()
  33501. var mk int64
  33502. var mv bool
  33503. hasLen := containerLen > 0
  33504. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33505. if esep {
  33506. dd.ReadMapElemKey()
  33507. }
  33508. mk = dd.DecodeInt64()
  33509. if esep {
  33510. dd.ReadMapElemValue()
  33511. }
  33512. if dd.TryDecodeAsNil() {
  33513. if v == nil {
  33514. } else if d.h.DeleteOnNilMapValue {
  33515. delete(v, mk)
  33516. } else {
  33517. v[mk] = false
  33518. }
  33519. continue
  33520. }
  33521. mv = dd.DecodeBool()
  33522. if v != nil {
  33523. v[mk] = mv
  33524. }
  33525. }
  33526. dd.ReadMapEnd()
  33527. d.depthDecr()
  33528. return v, changed
  33529. }
  33530. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  33531. if rv.Kind() == reflect.Ptr {
  33532. vp := rv2i(rv).(*map[bool]interface{})
  33533. v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d)
  33534. if changed {
  33535. *vp = v
  33536. }
  33537. } else {
  33538. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  33539. }
  33540. }
  33541. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  33542. v, changed := f.DecMapBoolIntfV(*vp, true, d)
  33543. if changed {
  33544. *vp = v
  33545. }
  33546. }
  33547. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  33548. d *Decoder) (_ map[bool]interface{}, changed bool) {
  33549. dd, esep := d.d, d.hh.hasElemSeparators()
  33550. containerLen := dd.ReadMapStart()
  33551. if canChange && v == nil {
  33552. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33553. v = make(map[bool]interface{}, xlen)
  33554. changed = true
  33555. }
  33556. if containerLen == 0 {
  33557. dd.ReadMapEnd()
  33558. return v, changed
  33559. }
  33560. d.depthIncr()
  33561. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  33562. var mk bool
  33563. var mv interface{}
  33564. hasLen := containerLen > 0
  33565. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33566. if esep {
  33567. dd.ReadMapElemKey()
  33568. }
  33569. mk = dd.DecodeBool()
  33570. if esep {
  33571. dd.ReadMapElemValue()
  33572. }
  33573. if dd.TryDecodeAsNil() {
  33574. if v == nil {
  33575. } else if d.h.DeleteOnNilMapValue {
  33576. delete(v, mk)
  33577. } else {
  33578. v[mk] = nil
  33579. }
  33580. continue
  33581. }
  33582. if mapGet {
  33583. mv = v[mk]
  33584. } else {
  33585. mv = nil
  33586. }
  33587. d.decode(&mv)
  33588. if v != nil {
  33589. v[mk] = mv
  33590. }
  33591. }
  33592. dd.ReadMapEnd()
  33593. d.depthDecr()
  33594. return v, changed
  33595. }
  33596. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  33597. if rv.Kind() == reflect.Ptr {
  33598. vp := rv2i(rv).(*map[bool]string)
  33599. v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d)
  33600. if changed {
  33601. *vp = v
  33602. }
  33603. } else {
  33604. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  33605. }
  33606. }
  33607. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  33608. v, changed := f.DecMapBoolStringV(*vp, true, d)
  33609. if changed {
  33610. *vp = v
  33611. }
  33612. }
  33613. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  33614. d *Decoder) (_ map[bool]string, changed bool) {
  33615. dd, esep := d.d, d.hh.hasElemSeparators()
  33616. containerLen := dd.ReadMapStart()
  33617. if canChange && v == nil {
  33618. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33619. v = make(map[bool]string, xlen)
  33620. changed = true
  33621. }
  33622. if containerLen == 0 {
  33623. dd.ReadMapEnd()
  33624. return v, changed
  33625. }
  33626. d.depthIncr()
  33627. var mk bool
  33628. var mv string
  33629. hasLen := containerLen > 0
  33630. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33631. if esep {
  33632. dd.ReadMapElemKey()
  33633. }
  33634. mk = dd.DecodeBool()
  33635. if esep {
  33636. dd.ReadMapElemValue()
  33637. }
  33638. if dd.TryDecodeAsNil() {
  33639. if v == nil {
  33640. } else if d.h.DeleteOnNilMapValue {
  33641. delete(v, mk)
  33642. } else {
  33643. v[mk] = ""
  33644. }
  33645. continue
  33646. }
  33647. mv = dd.DecodeString()
  33648. if v != nil {
  33649. v[mk] = mv
  33650. }
  33651. }
  33652. dd.ReadMapEnd()
  33653. d.depthDecr()
  33654. return v, changed
  33655. }
  33656. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  33657. if rv.Kind() == reflect.Ptr {
  33658. vp := rv2i(rv).(*map[bool]uint)
  33659. v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d)
  33660. if changed {
  33661. *vp = v
  33662. }
  33663. } else {
  33664. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  33665. }
  33666. }
  33667. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  33668. v, changed := f.DecMapBoolUintV(*vp, true, d)
  33669. if changed {
  33670. *vp = v
  33671. }
  33672. }
  33673. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  33674. d *Decoder) (_ map[bool]uint, changed bool) {
  33675. dd, esep := d.d, d.hh.hasElemSeparators()
  33676. containerLen := dd.ReadMapStart()
  33677. if canChange && v == nil {
  33678. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33679. v = make(map[bool]uint, xlen)
  33680. changed = true
  33681. }
  33682. if containerLen == 0 {
  33683. dd.ReadMapEnd()
  33684. return v, changed
  33685. }
  33686. d.depthIncr()
  33687. var mk bool
  33688. var mv uint
  33689. hasLen := containerLen > 0
  33690. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33691. if esep {
  33692. dd.ReadMapElemKey()
  33693. }
  33694. mk = dd.DecodeBool()
  33695. if esep {
  33696. dd.ReadMapElemValue()
  33697. }
  33698. if dd.TryDecodeAsNil() {
  33699. if v == nil {
  33700. } else if d.h.DeleteOnNilMapValue {
  33701. delete(v, mk)
  33702. } else {
  33703. v[mk] = 0
  33704. }
  33705. continue
  33706. }
  33707. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33708. if v != nil {
  33709. v[mk] = mv
  33710. }
  33711. }
  33712. dd.ReadMapEnd()
  33713. d.depthDecr()
  33714. return v, changed
  33715. }
  33716. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  33717. if rv.Kind() == reflect.Ptr {
  33718. vp := rv2i(rv).(*map[bool]uint8)
  33719. v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d)
  33720. if changed {
  33721. *vp = v
  33722. }
  33723. } else {
  33724. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  33725. }
  33726. }
  33727. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  33728. v, changed := f.DecMapBoolUint8V(*vp, true, d)
  33729. if changed {
  33730. *vp = v
  33731. }
  33732. }
  33733. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  33734. d *Decoder) (_ map[bool]uint8, changed bool) {
  33735. dd, esep := d.d, d.hh.hasElemSeparators()
  33736. containerLen := dd.ReadMapStart()
  33737. if canChange && v == nil {
  33738. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  33739. v = make(map[bool]uint8, xlen)
  33740. changed = true
  33741. }
  33742. if containerLen == 0 {
  33743. dd.ReadMapEnd()
  33744. return v, changed
  33745. }
  33746. d.depthIncr()
  33747. var mk bool
  33748. var mv uint8
  33749. hasLen := containerLen > 0
  33750. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33751. if esep {
  33752. dd.ReadMapElemKey()
  33753. }
  33754. mk = dd.DecodeBool()
  33755. if esep {
  33756. dd.ReadMapElemValue()
  33757. }
  33758. if dd.TryDecodeAsNil() {
  33759. if v == nil {
  33760. } else if d.h.DeleteOnNilMapValue {
  33761. delete(v, mk)
  33762. } else {
  33763. v[mk] = 0
  33764. }
  33765. continue
  33766. }
  33767. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  33768. if v != nil {
  33769. v[mk] = mv
  33770. }
  33771. }
  33772. dd.ReadMapEnd()
  33773. d.depthDecr()
  33774. return v, changed
  33775. }
  33776. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  33777. if rv.Kind() == reflect.Ptr {
  33778. vp := rv2i(rv).(*map[bool]uint16)
  33779. v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d)
  33780. if changed {
  33781. *vp = v
  33782. }
  33783. } else {
  33784. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  33785. }
  33786. }
  33787. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  33788. v, changed := f.DecMapBoolUint16V(*vp, true, d)
  33789. if changed {
  33790. *vp = v
  33791. }
  33792. }
  33793. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  33794. d *Decoder) (_ map[bool]uint16, changed bool) {
  33795. dd, esep := d.d, d.hh.hasElemSeparators()
  33796. containerLen := dd.ReadMapStart()
  33797. if canChange && v == nil {
  33798. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33799. v = make(map[bool]uint16, xlen)
  33800. changed = true
  33801. }
  33802. if containerLen == 0 {
  33803. dd.ReadMapEnd()
  33804. return v, changed
  33805. }
  33806. d.depthIncr()
  33807. var mk bool
  33808. var mv uint16
  33809. hasLen := containerLen > 0
  33810. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33811. if esep {
  33812. dd.ReadMapElemKey()
  33813. }
  33814. mk = dd.DecodeBool()
  33815. if esep {
  33816. dd.ReadMapElemValue()
  33817. }
  33818. if dd.TryDecodeAsNil() {
  33819. if v == nil {
  33820. } else if d.h.DeleteOnNilMapValue {
  33821. delete(v, mk)
  33822. } else {
  33823. v[mk] = 0
  33824. }
  33825. continue
  33826. }
  33827. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  33828. if v != nil {
  33829. v[mk] = mv
  33830. }
  33831. }
  33832. dd.ReadMapEnd()
  33833. d.depthDecr()
  33834. return v, changed
  33835. }
  33836. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  33837. if rv.Kind() == reflect.Ptr {
  33838. vp := rv2i(rv).(*map[bool]uint32)
  33839. v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d)
  33840. if changed {
  33841. *vp = v
  33842. }
  33843. } else {
  33844. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  33845. }
  33846. }
  33847. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  33848. v, changed := f.DecMapBoolUint32V(*vp, true, d)
  33849. if changed {
  33850. *vp = v
  33851. }
  33852. }
  33853. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  33854. d *Decoder) (_ map[bool]uint32, changed bool) {
  33855. dd, esep := d.d, d.hh.hasElemSeparators()
  33856. containerLen := dd.ReadMapStart()
  33857. if canChange && v == nil {
  33858. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33859. v = make(map[bool]uint32, xlen)
  33860. changed = true
  33861. }
  33862. if containerLen == 0 {
  33863. dd.ReadMapEnd()
  33864. return v, changed
  33865. }
  33866. d.depthIncr()
  33867. var mk bool
  33868. var mv uint32
  33869. hasLen := containerLen > 0
  33870. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33871. if esep {
  33872. dd.ReadMapElemKey()
  33873. }
  33874. mk = dd.DecodeBool()
  33875. if esep {
  33876. dd.ReadMapElemValue()
  33877. }
  33878. if dd.TryDecodeAsNil() {
  33879. if v == nil {
  33880. } else if d.h.DeleteOnNilMapValue {
  33881. delete(v, mk)
  33882. } else {
  33883. v[mk] = 0
  33884. }
  33885. continue
  33886. }
  33887. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  33888. if v != nil {
  33889. v[mk] = mv
  33890. }
  33891. }
  33892. dd.ReadMapEnd()
  33893. d.depthDecr()
  33894. return v, changed
  33895. }
  33896. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  33897. if rv.Kind() == reflect.Ptr {
  33898. vp := rv2i(rv).(*map[bool]uint64)
  33899. v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d)
  33900. if changed {
  33901. *vp = v
  33902. }
  33903. } else {
  33904. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  33905. }
  33906. }
  33907. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  33908. v, changed := f.DecMapBoolUint64V(*vp, true, d)
  33909. if changed {
  33910. *vp = v
  33911. }
  33912. }
  33913. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  33914. d *Decoder) (_ map[bool]uint64, changed bool) {
  33915. dd, esep := d.d, d.hh.hasElemSeparators()
  33916. containerLen := dd.ReadMapStart()
  33917. if canChange && v == nil {
  33918. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33919. v = make(map[bool]uint64, xlen)
  33920. changed = true
  33921. }
  33922. if containerLen == 0 {
  33923. dd.ReadMapEnd()
  33924. return v, changed
  33925. }
  33926. d.depthIncr()
  33927. var mk bool
  33928. var mv uint64
  33929. hasLen := containerLen > 0
  33930. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33931. if esep {
  33932. dd.ReadMapElemKey()
  33933. }
  33934. mk = dd.DecodeBool()
  33935. if esep {
  33936. dd.ReadMapElemValue()
  33937. }
  33938. if dd.TryDecodeAsNil() {
  33939. if v == nil {
  33940. } else if d.h.DeleteOnNilMapValue {
  33941. delete(v, mk)
  33942. } else {
  33943. v[mk] = 0
  33944. }
  33945. continue
  33946. }
  33947. mv = dd.DecodeUint64()
  33948. if v != nil {
  33949. v[mk] = mv
  33950. }
  33951. }
  33952. dd.ReadMapEnd()
  33953. d.depthDecr()
  33954. return v, changed
  33955. }
  33956. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  33957. if rv.Kind() == reflect.Ptr {
  33958. vp := rv2i(rv).(*map[bool]uintptr)
  33959. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d)
  33960. if changed {
  33961. *vp = v
  33962. }
  33963. } else {
  33964. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  33965. }
  33966. }
  33967. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  33968. v, changed := f.DecMapBoolUintptrV(*vp, true, d)
  33969. if changed {
  33970. *vp = v
  33971. }
  33972. }
  33973. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  33974. d *Decoder) (_ map[bool]uintptr, changed bool) {
  33975. dd, esep := d.d, d.hh.hasElemSeparators()
  33976. containerLen := dd.ReadMapStart()
  33977. if canChange && v == nil {
  33978. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33979. v = make(map[bool]uintptr, xlen)
  33980. changed = true
  33981. }
  33982. if containerLen == 0 {
  33983. dd.ReadMapEnd()
  33984. return v, changed
  33985. }
  33986. d.depthIncr()
  33987. var mk bool
  33988. var mv uintptr
  33989. hasLen := containerLen > 0
  33990. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33991. if esep {
  33992. dd.ReadMapElemKey()
  33993. }
  33994. mk = dd.DecodeBool()
  33995. if esep {
  33996. dd.ReadMapElemValue()
  33997. }
  33998. if dd.TryDecodeAsNil() {
  33999. if v == nil {
  34000. } else if d.h.DeleteOnNilMapValue {
  34001. delete(v, mk)
  34002. } else {
  34003. v[mk] = 0
  34004. }
  34005. continue
  34006. }
  34007. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  34008. if v != nil {
  34009. v[mk] = mv
  34010. }
  34011. }
  34012. dd.ReadMapEnd()
  34013. d.depthDecr()
  34014. return v, changed
  34015. }
  34016. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  34017. if rv.Kind() == reflect.Ptr {
  34018. vp := rv2i(rv).(*map[bool]int)
  34019. v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d)
  34020. if changed {
  34021. *vp = v
  34022. }
  34023. } else {
  34024. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  34025. }
  34026. }
  34027. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  34028. v, changed := f.DecMapBoolIntV(*vp, true, d)
  34029. if changed {
  34030. *vp = v
  34031. }
  34032. }
  34033. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  34034. d *Decoder) (_ map[bool]int, changed bool) {
  34035. dd, esep := d.d, d.hh.hasElemSeparators()
  34036. containerLen := dd.ReadMapStart()
  34037. if canChange && v == nil {
  34038. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34039. v = make(map[bool]int, xlen)
  34040. changed = true
  34041. }
  34042. if containerLen == 0 {
  34043. dd.ReadMapEnd()
  34044. return v, changed
  34045. }
  34046. d.depthIncr()
  34047. var mk bool
  34048. var mv int
  34049. hasLen := containerLen > 0
  34050. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34051. if esep {
  34052. dd.ReadMapElemKey()
  34053. }
  34054. mk = dd.DecodeBool()
  34055. if esep {
  34056. dd.ReadMapElemValue()
  34057. }
  34058. if dd.TryDecodeAsNil() {
  34059. if v == nil {
  34060. } else if d.h.DeleteOnNilMapValue {
  34061. delete(v, mk)
  34062. } else {
  34063. v[mk] = 0
  34064. }
  34065. continue
  34066. }
  34067. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  34068. if v != nil {
  34069. v[mk] = mv
  34070. }
  34071. }
  34072. dd.ReadMapEnd()
  34073. d.depthDecr()
  34074. return v, changed
  34075. }
  34076. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  34077. if rv.Kind() == reflect.Ptr {
  34078. vp := rv2i(rv).(*map[bool]int8)
  34079. v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d)
  34080. if changed {
  34081. *vp = v
  34082. }
  34083. } else {
  34084. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  34085. }
  34086. }
  34087. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  34088. v, changed := f.DecMapBoolInt8V(*vp, true, d)
  34089. if changed {
  34090. *vp = v
  34091. }
  34092. }
  34093. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  34094. d *Decoder) (_ map[bool]int8, changed bool) {
  34095. dd, esep := d.d, d.hh.hasElemSeparators()
  34096. containerLen := dd.ReadMapStart()
  34097. if canChange && v == nil {
  34098. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  34099. v = make(map[bool]int8, xlen)
  34100. changed = true
  34101. }
  34102. if containerLen == 0 {
  34103. dd.ReadMapEnd()
  34104. return v, changed
  34105. }
  34106. d.depthIncr()
  34107. var mk bool
  34108. var mv int8
  34109. hasLen := containerLen > 0
  34110. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34111. if esep {
  34112. dd.ReadMapElemKey()
  34113. }
  34114. mk = dd.DecodeBool()
  34115. if esep {
  34116. dd.ReadMapElemValue()
  34117. }
  34118. if dd.TryDecodeAsNil() {
  34119. if v == nil {
  34120. } else if d.h.DeleteOnNilMapValue {
  34121. delete(v, mk)
  34122. } else {
  34123. v[mk] = 0
  34124. }
  34125. continue
  34126. }
  34127. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  34128. if v != nil {
  34129. v[mk] = mv
  34130. }
  34131. }
  34132. dd.ReadMapEnd()
  34133. d.depthDecr()
  34134. return v, changed
  34135. }
  34136. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  34137. if rv.Kind() == reflect.Ptr {
  34138. vp := rv2i(rv).(*map[bool]int16)
  34139. v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d)
  34140. if changed {
  34141. *vp = v
  34142. }
  34143. } else {
  34144. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  34145. }
  34146. }
  34147. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  34148. v, changed := f.DecMapBoolInt16V(*vp, true, d)
  34149. if changed {
  34150. *vp = v
  34151. }
  34152. }
  34153. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  34154. d *Decoder) (_ map[bool]int16, changed bool) {
  34155. dd, esep := d.d, d.hh.hasElemSeparators()
  34156. containerLen := dd.ReadMapStart()
  34157. if canChange && v == nil {
  34158. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  34159. v = make(map[bool]int16, xlen)
  34160. changed = true
  34161. }
  34162. if containerLen == 0 {
  34163. dd.ReadMapEnd()
  34164. return v, changed
  34165. }
  34166. d.depthIncr()
  34167. var mk bool
  34168. var mv int16
  34169. hasLen := containerLen > 0
  34170. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34171. if esep {
  34172. dd.ReadMapElemKey()
  34173. }
  34174. mk = dd.DecodeBool()
  34175. if esep {
  34176. dd.ReadMapElemValue()
  34177. }
  34178. if dd.TryDecodeAsNil() {
  34179. if v == nil {
  34180. } else if d.h.DeleteOnNilMapValue {
  34181. delete(v, mk)
  34182. } else {
  34183. v[mk] = 0
  34184. }
  34185. continue
  34186. }
  34187. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  34188. if v != nil {
  34189. v[mk] = mv
  34190. }
  34191. }
  34192. dd.ReadMapEnd()
  34193. d.depthDecr()
  34194. return v, changed
  34195. }
  34196. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  34197. if rv.Kind() == reflect.Ptr {
  34198. vp := rv2i(rv).(*map[bool]int32)
  34199. v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d)
  34200. if changed {
  34201. *vp = v
  34202. }
  34203. } else {
  34204. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  34205. }
  34206. }
  34207. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  34208. v, changed := f.DecMapBoolInt32V(*vp, true, d)
  34209. if changed {
  34210. *vp = v
  34211. }
  34212. }
  34213. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  34214. d *Decoder) (_ map[bool]int32, changed bool) {
  34215. dd, esep := d.d, d.hh.hasElemSeparators()
  34216. containerLen := dd.ReadMapStart()
  34217. if canChange && v == nil {
  34218. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34219. v = make(map[bool]int32, xlen)
  34220. changed = true
  34221. }
  34222. if containerLen == 0 {
  34223. dd.ReadMapEnd()
  34224. return v, changed
  34225. }
  34226. d.depthIncr()
  34227. var mk bool
  34228. var mv int32
  34229. hasLen := containerLen > 0
  34230. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34231. if esep {
  34232. dd.ReadMapElemKey()
  34233. }
  34234. mk = dd.DecodeBool()
  34235. if esep {
  34236. dd.ReadMapElemValue()
  34237. }
  34238. if dd.TryDecodeAsNil() {
  34239. if v == nil {
  34240. } else if d.h.DeleteOnNilMapValue {
  34241. delete(v, mk)
  34242. } else {
  34243. v[mk] = 0
  34244. }
  34245. continue
  34246. }
  34247. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  34248. if v != nil {
  34249. v[mk] = mv
  34250. }
  34251. }
  34252. dd.ReadMapEnd()
  34253. d.depthDecr()
  34254. return v, changed
  34255. }
  34256. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  34257. if rv.Kind() == reflect.Ptr {
  34258. vp := rv2i(rv).(*map[bool]int64)
  34259. v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d)
  34260. if changed {
  34261. *vp = v
  34262. }
  34263. } else {
  34264. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  34265. }
  34266. }
  34267. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  34268. v, changed := f.DecMapBoolInt64V(*vp, true, d)
  34269. if changed {
  34270. *vp = v
  34271. }
  34272. }
  34273. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  34274. d *Decoder) (_ map[bool]int64, changed bool) {
  34275. dd, esep := d.d, d.hh.hasElemSeparators()
  34276. containerLen := dd.ReadMapStart()
  34277. if canChange && v == nil {
  34278. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34279. v = make(map[bool]int64, xlen)
  34280. changed = true
  34281. }
  34282. if containerLen == 0 {
  34283. dd.ReadMapEnd()
  34284. return v, changed
  34285. }
  34286. d.depthIncr()
  34287. var mk bool
  34288. var mv int64
  34289. hasLen := containerLen > 0
  34290. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34291. if esep {
  34292. dd.ReadMapElemKey()
  34293. }
  34294. mk = dd.DecodeBool()
  34295. if esep {
  34296. dd.ReadMapElemValue()
  34297. }
  34298. if dd.TryDecodeAsNil() {
  34299. if v == nil {
  34300. } else if d.h.DeleteOnNilMapValue {
  34301. delete(v, mk)
  34302. } else {
  34303. v[mk] = 0
  34304. }
  34305. continue
  34306. }
  34307. mv = dd.DecodeInt64()
  34308. if v != nil {
  34309. v[mk] = mv
  34310. }
  34311. }
  34312. dd.ReadMapEnd()
  34313. d.depthDecr()
  34314. return v, changed
  34315. }
  34316. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  34317. if rv.Kind() == reflect.Ptr {
  34318. vp := rv2i(rv).(*map[bool]float32)
  34319. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d)
  34320. if changed {
  34321. *vp = v
  34322. }
  34323. } else {
  34324. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  34325. }
  34326. }
  34327. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  34328. v, changed := f.DecMapBoolFloat32V(*vp, true, d)
  34329. if changed {
  34330. *vp = v
  34331. }
  34332. }
  34333. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  34334. d *Decoder) (_ map[bool]float32, changed bool) {
  34335. dd, esep := d.d, d.hh.hasElemSeparators()
  34336. containerLen := dd.ReadMapStart()
  34337. if canChange && v == nil {
  34338. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34339. v = make(map[bool]float32, xlen)
  34340. changed = true
  34341. }
  34342. if containerLen == 0 {
  34343. dd.ReadMapEnd()
  34344. return v, changed
  34345. }
  34346. d.depthIncr()
  34347. var mk bool
  34348. var mv float32
  34349. hasLen := containerLen > 0
  34350. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34351. if esep {
  34352. dd.ReadMapElemKey()
  34353. }
  34354. mk = dd.DecodeBool()
  34355. if esep {
  34356. dd.ReadMapElemValue()
  34357. }
  34358. if dd.TryDecodeAsNil() {
  34359. if v == nil {
  34360. } else if d.h.DeleteOnNilMapValue {
  34361. delete(v, mk)
  34362. } else {
  34363. v[mk] = 0
  34364. }
  34365. continue
  34366. }
  34367. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  34368. if v != nil {
  34369. v[mk] = mv
  34370. }
  34371. }
  34372. dd.ReadMapEnd()
  34373. d.depthDecr()
  34374. return v, changed
  34375. }
  34376. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  34377. if rv.Kind() == reflect.Ptr {
  34378. vp := rv2i(rv).(*map[bool]float64)
  34379. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d)
  34380. if changed {
  34381. *vp = v
  34382. }
  34383. } else {
  34384. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  34385. }
  34386. }
  34387. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  34388. v, changed := f.DecMapBoolFloat64V(*vp, true, d)
  34389. if changed {
  34390. *vp = v
  34391. }
  34392. }
  34393. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  34394. d *Decoder) (_ map[bool]float64, changed bool) {
  34395. dd, esep := d.d, d.hh.hasElemSeparators()
  34396. containerLen := dd.ReadMapStart()
  34397. if canChange && v == nil {
  34398. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34399. v = make(map[bool]float64, xlen)
  34400. changed = true
  34401. }
  34402. if containerLen == 0 {
  34403. dd.ReadMapEnd()
  34404. return v, changed
  34405. }
  34406. d.depthIncr()
  34407. var mk bool
  34408. var mv float64
  34409. hasLen := containerLen > 0
  34410. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34411. if esep {
  34412. dd.ReadMapElemKey()
  34413. }
  34414. mk = dd.DecodeBool()
  34415. if esep {
  34416. dd.ReadMapElemValue()
  34417. }
  34418. if dd.TryDecodeAsNil() {
  34419. if v == nil {
  34420. } else if d.h.DeleteOnNilMapValue {
  34421. delete(v, mk)
  34422. } else {
  34423. v[mk] = 0
  34424. }
  34425. continue
  34426. }
  34427. mv = dd.DecodeFloat64()
  34428. if v != nil {
  34429. v[mk] = mv
  34430. }
  34431. }
  34432. dd.ReadMapEnd()
  34433. d.depthDecr()
  34434. return v, changed
  34435. }
  34436. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  34437. if rv.Kind() == reflect.Ptr {
  34438. vp := rv2i(rv).(*map[bool]bool)
  34439. v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d)
  34440. if changed {
  34441. *vp = v
  34442. }
  34443. } else {
  34444. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  34445. }
  34446. }
  34447. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  34448. v, changed := f.DecMapBoolBoolV(*vp, true, d)
  34449. if changed {
  34450. *vp = v
  34451. }
  34452. }
  34453. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  34454. d *Decoder) (_ map[bool]bool, changed bool) {
  34455. dd, esep := d.d, d.hh.hasElemSeparators()
  34456. containerLen := dd.ReadMapStart()
  34457. if canChange && v == nil {
  34458. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  34459. v = make(map[bool]bool, xlen)
  34460. changed = true
  34461. }
  34462. if containerLen == 0 {
  34463. dd.ReadMapEnd()
  34464. return v, changed
  34465. }
  34466. d.depthIncr()
  34467. var mk bool
  34468. var mv bool
  34469. hasLen := containerLen > 0
  34470. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34471. if esep {
  34472. dd.ReadMapElemKey()
  34473. }
  34474. mk = dd.DecodeBool()
  34475. if esep {
  34476. dd.ReadMapElemValue()
  34477. }
  34478. if dd.TryDecodeAsNil() {
  34479. if v == nil {
  34480. } else if d.h.DeleteOnNilMapValue {
  34481. delete(v, mk)
  34482. } else {
  34483. v[mk] = false
  34484. }
  34485. continue
  34486. }
  34487. mv = dd.DecodeBool()
  34488. if v != nil {
  34489. v[mk] = mv
  34490. }
  34491. }
  34492. dd.ReadMapEnd()
  34493. d.depthDecr()
  34494. return v, changed
  34495. }