http urls monitor.

fast-path.generated.go 799KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523
  1. // +build !notfastpath
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // 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. type fastpathT struct{}
  34. var fastpathTV fastpathT
  35. type fastpathE struct {
  36. rtid uintptr
  37. rt reflect.Type
  38. encfn func(*Encoder, *codecFnInfo, reflect.Value)
  39. decfn func(*Decoder, *codecFnInfo, reflect.Value)
  40. }
  41. type fastpathA [271]fastpathE
  42. func (x *fastpathA) index(rtid uintptr) int {
  43. // use binary search to grab the index (adapted from sort/search.go)
  44. h, i, j := 0, 0, 271 // len(x)
  45. for i < j {
  46. h = i + (j-i)/2
  47. if x[h].rtid < rtid {
  48. i = h + 1
  49. } else {
  50. j = h
  51. }
  52. }
  53. if i < 271 && x[i].rtid == rtid {
  54. return i
  55. }
  56. return -1
  57. }
  58. type fastpathAslice []fastpathE
  59. func (x fastpathAslice) Len() int { return len(x) }
  60. func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
  61. func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
  62. var fastpathAV fastpathA
  63. // due to possible initialization loop error, make fastpath in an init()
  64. func init() {
  65. i := 0
  66. fn := func(v interface{},
  67. fe func(*Encoder, *codecFnInfo, reflect.Value),
  68. fd func(*Decoder, *codecFnInfo, reflect.Value)) (f fastpathE) {
  69. xrt := reflect.TypeOf(v)
  70. xptr := rt2id(xrt)
  71. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  72. i++
  73. return
  74. }
  75. fn([]interface{}(nil), (*Encoder).fastpathEncSliceIntfR, (*Decoder).fastpathDecSliceIntfR)
  76. fn([]string(nil), (*Encoder).fastpathEncSliceStringR, (*Decoder).fastpathDecSliceStringR)
  77. fn([]float32(nil), (*Encoder).fastpathEncSliceFloat32R, (*Decoder).fastpathDecSliceFloat32R)
  78. fn([]float64(nil), (*Encoder).fastpathEncSliceFloat64R, (*Decoder).fastpathDecSliceFloat64R)
  79. fn([]uint(nil), (*Encoder).fastpathEncSliceUintR, (*Decoder).fastpathDecSliceUintR)
  80. fn([]uint16(nil), (*Encoder).fastpathEncSliceUint16R, (*Decoder).fastpathDecSliceUint16R)
  81. fn([]uint32(nil), (*Encoder).fastpathEncSliceUint32R, (*Decoder).fastpathDecSliceUint32R)
  82. fn([]uint64(nil), (*Encoder).fastpathEncSliceUint64R, (*Decoder).fastpathDecSliceUint64R)
  83. fn([]uintptr(nil), (*Encoder).fastpathEncSliceUintptrR, (*Decoder).fastpathDecSliceUintptrR)
  84. fn([]int(nil), (*Encoder).fastpathEncSliceIntR, (*Decoder).fastpathDecSliceIntR)
  85. fn([]int8(nil), (*Encoder).fastpathEncSliceInt8R, (*Decoder).fastpathDecSliceInt8R)
  86. fn([]int16(nil), (*Encoder).fastpathEncSliceInt16R, (*Decoder).fastpathDecSliceInt16R)
  87. fn([]int32(nil), (*Encoder).fastpathEncSliceInt32R, (*Decoder).fastpathDecSliceInt32R)
  88. fn([]int64(nil), (*Encoder).fastpathEncSliceInt64R, (*Decoder).fastpathDecSliceInt64R)
  89. fn([]bool(nil), (*Encoder).fastpathEncSliceBoolR, (*Decoder).fastpathDecSliceBoolR)
  90. fn(map[interface{}]interface{}(nil), (*Encoder).fastpathEncMapIntfIntfR, (*Decoder).fastpathDecMapIntfIntfR)
  91. fn(map[interface{}]string(nil), (*Encoder).fastpathEncMapIntfStringR, (*Decoder).fastpathDecMapIntfStringR)
  92. fn(map[interface{}]uint(nil), (*Encoder).fastpathEncMapIntfUintR, (*Decoder).fastpathDecMapIntfUintR)
  93. fn(map[interface{}]uint8(nil), (*Encoder).fastpathEncMapIntfUint8R, (*Decoder).fastpathDecMapIntfUint8R)
  94. fn(map[interface{}]uint16(nil), (*Encoder).fastpathEncMapIntfUint16R, (*Decoder).fastpathDecMapIntfUint16R)
  95. fn(map[interface{}]uint32(nil), (*Encoder).fastpathEncMapIntfUint32R, (*Decoder).fastpathDecMapIntfUint32R)
  96. fn(map[interface{}]uint64(nil), (*Encoder).fastpathEncMapIntfUint64R, (*Decoder).fastpathDecMapIntfUint64R)
  97. fn(map[interface{}]uintptr(nil), (*Encoder).fastpathEncMapIntfUintptrR, (*Decoder).fastpathDecMapIntfUintptrR)
  98. fn(map[interface{}]int(nil), (*Encoder).fastpathEncMapIntfIntR, (*Decoder).fastpathDecMapIntfIntR)
  99. fn(map[interface{}]int8(nil), (*Encoder).fastpathEncMapIntfInt8R, (*Decoder).fastpathDecMapIntfInt8R)
  100. fn(map[interface{}]int16(nil), (*Encoder).fastpathEncMapIntfInt16R, (*Decoder).fastpathDecMapIntfInt16R)
  101. fn(map[interface{}]int32(nil), (*Encoder).fastpathEncMapIntfInt32R, (*Decoder).fastpathDecMapIntfInt32R)
  102. fn(map[interface{}]int64(nil), (*Encoder).fastpathEncMapIntfInt64R, (*Decoder).fastpathDecMapIntfInt64R)
  103. fn(map[interface{}]float32(nil), (*Encoder).fastpathEncMapIntfFloat32R, (*Decoder).fastpathDecMapIntfFloat32R)
  104. fn(map[interface{}]float64(nil), (*Encoder).fastpathEncMapIntfFloat64R, (*Decoder).fastpathDecMapIntfFloat64R)
  105. fn(map[interface{}]bool(nil), (*Encoder).fastpathEncMapIntfBoolR, (*Decoder).fastpathDecMapIntfBoolR)
  106. fn(map[string]interface{}(nil), (*Encoder).fastpathEncMapStringIntfR, (*Decoder).fastpathDecMapStringIntfR)
  107. fn(map[string]string(nil), (*Encoder).fastpathEncMapStringStringR, (*Decoder).fastpathDecMapStringStringR)
  108. fn(map[string]uint(nil), (*Encoder).fastpathEncMapStringUintR, (*Decoder).fastpathDecMapStringUintR)
  109. fn(map[string]uint8(nil), (*Encoder).fastpathEncMapStringUint8R, (*Decoder).fastpathDecMapStringUint8R)
  110. fn(map[string]uint16(nil), (*Encoder).fastpathEncMapStringUint16R, (*Decoder).fastpathDecMapStringUint16R)
  111. fn(map[string]uint32(nil), (*Encoder).fastpathEncMapStringUint32R, (*Decoder).fastpathDecMapStringUint32R)
  112. fn(map[string]uint64(nil), (*Encoder).fastpathEncMapStringUint64R, (*Decoder).fastpathDecMapStringUint64R)
  113. fn(map[string]uintptr(nil), (*Encoder).fastpathEncMapStringUintptrR, (*Decoder).fastpathDecMapStringUintptrR)
  114. fn(map[string]int(nil), (*Encoder).fastpathEncMapStringIntR, (*Decoder).fastpathDecMapStringIntR)
  115. fn(map[string]int8(nil), (*Encoder).fastpathEncMapStringInt8R, (*Decoder).fastpathDecMapStringInt8R)
  116. fn(map[string]int16(nil), (*Encoder).fastpathEncMapStringInt16R, (*Decoder).fastpathDecMapStringInt16R)
  117. fn(map[string]int32(nil), (*Encoder).fastpathEncMapStringInt32R, (*Decoder).fastpathDecMapStringInt32R)
  118. fn(map[string]int64(nil), (*Encoder).fastpathEncMapStringInt64R, (*Decoder).fastpathDecMapStringInt64R)
  119. fn(map[string]float32(nil), (*Encoder).fastpathEncMapStringFloat32R, (*Decoder).fastpathDecMapStringFloat32R)
  120. fn(map[string]float64(nil), (*Encoder).fastpathEncMapStringFloat64R, (*Decoder).fastpathDecMapStringFloat64R)
  121. fn(map[string]bool(nil), (*Encoder).fastpathEncMapStringBoolR, (*Decoder).fastpathDecMapStringBoolR)
  122. fn(map[float32]interface{}(nil), (*Encoder).fastpathEncMapFloat32IntfR, (*Decoder).fastpathDecMapFloat32IntfR)
  123. fn(map[float32]string(nil), (*Encoder).fastpathEncMapFloat32StringR, (*Decoder).fastpathDecMapFloat32StringR)
  124. fn(map[float32]uint(nil), (*Encoder).fastpathEncMapFloat32UintR, (*Decoder).fastpathDecMapFloat32UintR)
  125. fn(map[float32]uint8(nil), (*Encoder).fastpathEncMapFloat32Uint8R, (*Decoder).fastpathDecMapFloat32Uint8R)
  126. fn(map[float32]uint16(nil), (*Encoder).fastpathEncMapFloat32Uint16R, (*Decoder).fastpathDecMapFloat32Uint16R)
  127. fn(map[float32]uint32(nil), (*Encoder).fastpathEncMapFloat32Uint32R, (*Decoder).fastpathDecMapFloat32Uint32R)
  128. fn(map[float32]uint64(nil), (*Encoder).fastpathEncMapFloat32Uint64R, (*Decoder).fastpathDecMapFloat32Uint64R)
  129. fn(map[float32]uintptr(nil), (*Encoder).fastpathEncMapFloat32UintptrR, (*Decoder).fastpathDecMapFloat32UintptrR)
  130. fn(map[float32]int(nil), (*Encoder).fastpathEncMapFloat32IntR, (*Decoder).fastpathDecMapFloat32IntR)
  131. fn(map[float32]int8(nil), (*Encoder).fastpathEncMapFloat32Int8R, (*Decoder).fastpathDecMapFloat32Int8R)
  132. fn(map[float32]int16(nil), (*Encoder).fastpathEncMapFloat32Int16R, (*Decoder).fastpathDecMapFloat32Int16R)
  133. fn(map[float32]int32(nil), (*Encoder).fastpathEncMapFloat32Int32R, (*Decoder).fastpathDecMapFloat32Int32R)
  134. fn(map[float32]int64(nil), (*Encoder).fastpathEncMapFloat32Int64R, (*Decoder).fastpathDecMapFloat32Int64R)
  135. fn(map[float32]float32(nil), (*Encoder).fastpathEncMapFloat32Float32R, (*Decoder).fastpathDecMapFloat32Float32R)
  136. fn(map[float32]float64(nil), (*Encoder).fastpathEncMapFloat32Float64R, (*Decoder).fastpathDecMapFloat32Float64R)
  137. fn(map[float32]bool(nil), (*Encoder).fastpathEncMapFloat32BoolR, (*Decoder).fastpathDecMapFloat32BoolR)
  138. fn(map[float64]interface{}(nil), (*Encoder).fastpathEncMapFloat64IntfR, (*Decoder).fastpathDecMapFloat64IntfR)
  139. fn(map[float64]string(nil), (*Encoder).fastpathEncMapFloat64StringR, (*Decoder).fastpathDecMapFloat64StringR)
  140. fn(map[float64]uint(nil), (*Encoder).fastpathEncMapFloat64UintR, (*Decoder).fastpathDecMapFloat64UintR)
  141. fn(map[float64]uint8(nil), (*Encoder).fastpathEncMapFloat64Uint8R, (*Decoder).fastpathDecMapFloat64Uint8R)
  142. fn(map[float64]uint16(nil), (*Encoder).fastpathEncMapFloat64Uint16R, (*Decoder).fastpathDecMapFloat64Uint16R)
  143. fn(map[float64]uint32(nil), (*Encoder).fastpathEncMapFloat64Uint32R, (*Decoder).fastpathDecMapFloat64Uint32R)
  144. fn(map[float64]uint64(nil), (*Encoder).fastpathEncMapFloat64Uint64R, (*Decoder).fastpathDecMapFloat64Uint64R)
  145. fn(map[float64]uintptr(nil), (*Encoder).fastpathEncMapFloat64UintptrR, (*Decoder).fastpathDecMapFloat64UintptrR)
  146. fn(map[float64]int(nil), (*Encoder).fastpathEncMapFloat64IntR, (*Decoder).fastpathDecMapFloat64IntR)
  147. fn(map[float64]int8(nil), (*Encoder).fastpathEncMapFloat64Int8R, (*Decoder).fastpathDecMapFloat64Int8R)
  148. fn(map[float64]int16(nil), (*Encoder).fastpathEncMapFloat64Int16R, (*Decoder).fastpathDecMapFloat64Int16R)
  149. fn(map[float64]int32(nil), (*Encoder).fastpathEncMapFloat64Int32R, (*Decoder).fastpathDecMapFloat64Int32R)
  150. fn(map[float64]int64(nil), (*Encoder).fastpathEncMapFloat64Int64R, (*Decoder).fastpathDecMapFloat64Int64R)
  151. fn(map[float64]float32(nil), (*Encoder).fastpathEncMapFloat64Float32R, (*Decoder).fastpathDecMapFloat64Float32R)
  152. fn(map[float64]float64(nil), (*Encoder).fastpathEncMapFloat64Float64R, (*Decoder).fastpathDecMapFloat64Float64R)
  153. fn(map[float64]bool(nil), (*Encoder).fastpathEncMapFloat64BoolR, (*Decoder).fastpathDecMapFloat64BoolR)
  154. fn(map[uint]interface{}(nil), (*Encoder).fastpathEncMapUintIntfR, (*Decoder).fastpathDecMapUintIntfR)
  155. fn(map[uint]string(nil), (*Encoder).fastpathEncMapUintStringR, (*Decoder).fastpathDecMapUintStringR)
  156. fn(map[uint]uint(nil), (*Encoder).fastpathEncMapUintUintR, (*Decoder).fastpathDecMapUintUintR)
  157. fn(map[uint]uint8(nil), (*Encoder).fastpathEncMapUintUint8R, (*Decoder).fastpathDecMapUintUint8R)
  158. fn(map[uint]uint16(nil), (*Encoder).fastpathEncMapUintUint16R, (*Decoder).fastpathDecMapUintUint16R)
  159. fn(map[uint]uint32(nil), (*Encoder).fastpathEncMapUintUint32R, (*Decoder).fastpathDecMapUintUint32R)
  160. fn(map[uint]uint64(nil), (*Encoder).fastpathEncMapUintUint64R, (*Decoder).fastpathDecMapUintUint64R)
  161. fn(map[uint]uintptr(nil), (*Encoder).fastpathEncMapUintUintptrR, (*Decoder).fastpathDecMapUintUintptrR)
  162. fn(map[uint]int(nil), (*Encoder).fastpathEncMapUintIntR, (*Decoder).fastpathDecMapUintIntR)
  163. fn(map[uint]int8(nil), (*Encoder).fastpathEncMapUintInt8R, (*Decoder).fastpathDecMapUintInt8R)
  164. fn(map[uint]int16(nil), (*Encoder).fastpathEncMapUintInt16R, (*Decoder).fastpathDecMapUintInt16R)
  165. fn(map[uint]int32(nil), (*Encoder).fastpathEncMapUintInt32R, (*Decoder).fastpathDecMapUintInt32R)
  166. fn(map[uint]int64(nil), (*Encoder).fastpathEncMapUintInt64R, (*Decoder).fastpathDecMapUintInt64R)
  167. fn(map[uint]float32(nil), (*Encoder).fastpathEncMapUintFloat32R, (*Decoder).fastpathDecMapUintFloat32R)
  168. fn(map[uint]float64(nil), (*Encoder).fastpathEncMapUintFloat64R, (*Decoder).fastpathDecMapUintFloat64R)
  169. fn(map[uint]bool(nil), (*Encoder).fastpathEncMapUintBoolR, (*Decoder).fastpathDecMapUintBoolR)
  170. fn(map[uint8]interface{}(nil), (*Encoder).fastpathEncMapUint8IntfR, (*Decoder).fastpathDecMapUint8IntfR)
  171. fn(map[uint8]string(nil), (*Encoder).fastpathEncMapUint8StringR, (*Decoder).fastpathDecMapUint8StringR)
  172. fn(map[uint8]uint(nil), (*Encoder).fastpathEncMapUint8UintR, (*Decoder).fastpathDecMapUint8UintR)
  173. fn(map[uint8]uint8(nil), (*Encoder).fastpathEncMapUint8Uint8R, (*Decoder).fastpathDecMapUint8Uint8R)
  174. fn(map[uint8]uint16(nil), (*Encoder).fastpathEncMapUint8Uint16R, (*Decoder).fastpathDecMapUint8Uint16R)
  175. fn(map[uint8]uint32(nil), (*Encoder).fastpathEncMapUint8Uint32R, (*Decoder).fastpathDecMapUint8Uint32R)
  176. fn(map[uint8]uint64(nil), (*Encoder).fastpathEncMapUint8Uint64R, (*Decoder).fastpathDecMapUint8Uint64R)
  177. fn(map[uint8]uintptr(nil), (*Encoder).fastpathEncMapUint8UintptrR, (*Decoder).fastpathDecMapUint8UintptrR)
  178. fn(map[uint8]int(nil), (*Encoder).fastpathEncMapUint8IntR, (*Decoder).fastpathDecMapUint8IntR)
  179. fn(map[uint8]int8(nil), (*Encoder).fastpathEncMapUint8Int8R, (*Decoder).fastpathDecMapUint8Int8R)
  180. fn(map[uint8]int16(nil), (*Encoder).fastpathEncMapUint8Int16R, (*Decoder).fastpathDecMapUint8Int16R)
  181. fn(map[uint8]int32(nil), (*Encoder).fastpathEncMapUint8Int32R, (*Decoder).fastpathDecMapUint8Int32R)
  182. fn(map[uint8]int64(nil), (*Encoder).fastpathEncMapUint8Int64R, (*Decoder).fastpathDecMapUint8Int64R)
  183. fn(map[uint8]float32(nil), (*Encoder).fastpathEncMapUint8Float32R, (*Decoder).fastpathDecMapUint8Float32R)
  184. fn(map[uint8]float64(nil), (*Encoder).fastpathEncMapUint8Float64R, (*Decoder).fastpathDecMapUint8Float64R)
  185. fn(map[uint8]bool(nil), (*Encoder).fastpathEncMapUint8BoolR, (*Decoder).fastpathDecMapUint8BoolR)
  186. fn(map[uint16]interface{}(nil), (*Encoder).fastpathEncMapUint16IntfR, (*Decoder).fastpathDecMapUint16IntfR)
  187. fn(map[uint16]string(nil), (*Encoder).fastpathEncMapUint16StringR, (*Decoder).fastpathDecMapUint16StringR)
  188. fn(map[uint16]uint(nil), (*Encoder).fastpathEncMapUint16UintR, (*Decoder).fastpathDecMapUint16UintR)
  189. fn(map[uint16]uint8(nil), (*Encoder).fastpathEncMapUint16Uint8R, (*Decoder).fastpathDecMapUint16Uint8R)
  190. fn(map[uint16]uint16(nil), (*Encoder).fastpathEncMapUint16Uint16R, (*Decoder).fastpathDecMapUint16Uint16R)
  191. fn(map[uint16]uint32(nil), (*Encoder).fastpathEncMapUint16Uint32R, (*Decoder).fastpathDecMapUint16Uint32R)
  192. fn(map[uint16]uint64(nil), (*Encoder).fastpathEncMapUint16Uint64R, (*Decoder).fastpathDecMapUint16Uint64R)
  193. fn(map[uint16]uintptr(nil), (*Encoder).fastpathEncMapUint16UintptrR, (*Decoder).fastpathDecMapUint16UintptrR)
  194. fn(map[uint16]int(nil), (*Encoder).fastpathEncMapUint16IntR, (*Decoder).fastpathDecMapUint16IntR)
  195. fn(map[uint16]int8(nil), (*Encoder).fastpathEncMapUint16Int8R, (*Decoder).fastpathDecMapUint16Int8R)
  196. fn(map[uint16]int16(nil), (*Encoder).fastpathEncMapUint16Int16R, (*Decoder).fastpathDecMapUint16Int16R)
  197. fn(map[uint16]int32(nil), (*Encoder).fastpathEncMapUint16Int32R, (*Decoder).fastpathDecMapUint16Int32R)
  198. fn(map[uint16]int64(nil), (*Encoder).fastpathEncMapUint16Int64R, (*Decoder).fastpathDecMapUint16Int64R)
  199. fn(map[uint16]float32(nil), (*Encoder).fastpathEncMapUint16Float32R, (*Decoder).fastpathDecMapUint16Float32R)
  200. fn(map[uint16]float64(nil), (*Encoder).fastpathEncMapUint16Float64R, (*Decoder).fastpathDecMapUint16Float64R)
  201. fn(map[uint16]bool(nil), (*Encoder).fastpathEncMapUint16BoolR, (*Decoder).fastpathDecMapUint16BoolR)
  202. fn(map[uint32]interface{}(nil), (*Encoder).fastpathEncMapUint32IntfR, (*Decoder).fastpathDecMapUint32IntfR)
  203. fn(map[uint32]string(nil), (*Encoder).fastpathEncMapUint32StringR, (*Decoder).fastpathDecMapUint32StringR)
  204. fn(map[uint32]uint(nil), (*Encoder).fastpathEncMapUint32UintR, (*Decoder).fastpathDecMapUint32UintR)
  205. fn(map[uint32]uint8(nil), (*Encoder).fastpathEncMapUint32Uint8R, (*Decoder).fastpathDecMapUint32Uint8R)
  206. fn(map[uint32]uint16(nil), (*Encoder).fastpathEncMapUint32Uint16R, (*Decoder).fastpathDecMapUint32Uint16R)
  207. fn(map[uint32]uint32(nil), (*Encoder).fastpathEncMapUint32Uint32R, (*Decoder).fastpathDecMapUint32Uint32R)
  208. fn(map[uint32]uint64(nil), (*Encoder).fastpathEncMapUint32Uint64R, (*Decoder).fastpathDecMapUint32Uint64R)
  209. fn(map[uint32]uintptr(nil), (*Encoder).fastpathEncMapUint32UintptrR, (*Decoder).fastpathDecMapUint32UintptrR)
  210. fn(map[uint32]int(nil), (*Encoder).fastpathEncMapUint32IntR, (*Decoder).fastpathDecMapUint32IntR)
  211. fn(map[uint32]int8(nil), (*Encoder).fastpathEncMapUint32Int8R, (*Decoder).fastpathDecMapUint32Int8R)
  212. fn(map[uint32]int16(nil), (*Encoder).fastpathEncMapUint32Int16R, (*Decoder).fastpathDecMapUint32Int16R)
  213. fn(map[uint32]int32(nil), (*Encoder).fastpathEncMapUint32Int32R, (*Decoder).fastpathDecMapUint32Int32R)
  214. fn(map[uint32]int64(nil), (*Encoder).fastpathEncMapUint32Int64R, (*Decoder).fastpathDecMapUint32Int64R)
  215. fn(map[uint32]float32(nil), (*Encoder).fastpathEncMapUint32Float32R, (*Decoder).fastpathDecMapUint32Float32R)
  216. fn(map[uint32]float64(nil), (*Encoder).fastpathEncMapUint32Float64R, (*Decoder).fastpathDecMapUint32Float64R)
  217. fn(map[uint32]bool(nil), (*Encoder).fastpathEncMapUint32BoolR, (*Decoder).fastpathDecMapUint32BoolR)
  218. fn(map[uint64]interface{}(nil), (*Encoder).fastpathEncMapUint64IntfR, (*Decoder).fastpathDecMapUint64IntfR)
  219. fn(map[uint64]string(nil), (*Encoder).fastpathEncMapUint64StringR, (*Decoder).fastpathDecMapUint64StringR)
  220. fn(map[uint64]uint(nil), (*Encoder).fastpathEncMapUint64UintR, (*Decoder).fastpathDecMapUint64UintR)
  221. fn(map[uint64]uint8(nil), (*Encoder).fastpathEncMapUint64Uint8R, (*Decoder).fastpathDecMapUint64Uint8R)
  222. fn(map[uint64]uint16(nil), (*Encoder).fastpathEncMapUint64Uint16R, (*Decoder).fastpathDecMapUint64Uint16R)
  223. fn(map[uint64]uint32(nil), (*Encoder).fastpathEncMapUint64Uint32R, (*Decoder).fastpathDecMapUint64Uint32R)
  224. fn(map[uint64]uint64(nil), (*Encoder).fastpathEncMapUint64Uint64R, (*Decoder).fastpathDecMapUint64Uint64R)
  225. fn(map[uint64]uintptr(nil), (*Encoder).fastpathEncMapUint64UintptrR, (*Decoder).fastpathDecMapUint64UintptrR)
  226. fn(map[uint64]int(nil), (*Encoder).fastpathEncMapUint64IntR, (*Decoder).fastpathDecMapUint64IntR)
  227. fn(map[uint64]int8(nil), (*Encoder).fastpathEncMapUint64Int8R, (*Decoder).fastpathDecMapUint64Int8R)
  228. fn(map[uint64]int16(nil), (*Encoder).fastpathEncMapUint64Int16R, (*Decoder).fastpathDecMapUint64Int16R)
  229. fn(map[uint64]int32(nil), (*Encoder).fastpathEncMapUint64Int32R, (*Decoder).fastpathDecMapUint64Int32R)
  230. fn(map[uint64]int64(nil), (*Encoder).fastpathEncMapUint64Int64R, (*Decoder).fastpathDecMapUint64Int64R)
  231. fn(map[uint64]float32(nil), (*Encoder).fastpathEncMapUint64Float32R, (*Decoder).fastpathDecMapUint64Float32R)
  232. fn(map[uint64]float64(nil), (*Encoder).fastpathEncMapUint64Float64R, (*Decoder).fastpathDecMapUint64Float64R)
  233. fn(map[uint64]bool(nil), (*Encoder).fastpathEncMapUint64BoolR, (*Decoder).fastpathDecMapUint64BoolR)
  234. fn(map[uintptr]interface{}(nil), (*Encoder).fastpathEncMapUintptrIntfR, (*Decoder).fastpathDecMapUintptrIntfR)
  235. fn(map[uintptr]string(nil), (*Encoder).fastpathEncMapUintptrStringR, (*Decoder).fastpathDecMapUintptrStringR)
  236. fn(map[uintptr]uint(nil), (*Encoder).fastpathEncMapUintptrUintR, (*Decoder).fastpathDecMapUintptrUintR)
  237. fn(map[uintptr]uint8(nil), (*Encoder).fastpathEncMapUintptrUint8R, (*Decoder).fastpathDecMapUintptrUint8R)
  238. fn(map[uintptr]uint16(nil), (*Encoder).fastpathEncMapUintptrUint16R, (*Decoder).fastpathDecMapUintptrUint16R)
  239. fn(map[uintptr]uint32(nil), (*Encoder).fastpathEncMapUintptrUint32R, (*Decoder).fastpathDecMapUintptrUint32R)
  240. fn(map[uintptr]uint64(nil), (*Encoder).fastpathEncMapUintptrUint64R, (*Decoder).fastpathDecMapUintptrUint64R)
  241. fn(map[uintptr]uintptr(nil), (*Encoder).fastpathEncMapUintptrUintptrR, (*Decoder).fastpathDecMapUintptrUintptrR)
  242. fn(map[uintptr]int(nil), (*Encoder).fastpathEncMapUintptrIntR, (*Decoder).fastpathDecMapUintptrIntR)
  243. fn(map[uintptr]int8(nil), (*Encoder).fastpathEncMapUintptrInt8R, (*Decoder).fastpathDecMapUintptrInt8R)
  244. fn(map[uintptr]int16(nil), (*Encoder).fastpathEncMapUintptrInt16R, (*Decoder).fastpathDecMapUintptrInt16R)
  245. fn(map[uintptr]int32(nil), (*Encoder).fastpathEncMapUintptrInt32R, (*Decoder).fastpathDecMapUintptrInt32R)
  246. fn(map[uintptr]int64(nil), (*Encoder).fastpathEncMapUintptrInt64R, (*Decoder).fastpathDecMapUintptrInt64R)
  247. fn(map[uintptr]float32(nil), (*Encoder).fastpathEncMapUintptrFloat32R, (*Decoder).fastpathDecMapUintptrFloat32R)
  248. fn(map[uintptr]float64(nil), (*Encoder).fastpathEncMapUintptrFloat64R, (*Decoder).fastpathDecMapUintptrFloat64R)
  249. fn(map[uintptr]bool(nil), (*Encoder).fastpathEncMapUintptrBoolR, (*Decoder).fastpathDecMapUintptrBoolR)
  250. fn(map[int]interface{}(nil), (*Encoder).fastpathEncMapIntIntfR, (*Decoder).fastpathDecMapIntIntfR)
  251. fn(map[int]string(nil), (*Encoder).fastpathEncMapIntStringR, (*Decoder).fastpathDecMapIntStringR)
  252. fn(map[int]uint(nil), (*Encoder).fastpathEncMapIntUintR, (*Decoder).fastpathDecMapIntUintR)
  253. fn(map[int]uint8(nil), (*Encoder).fastpathEncMapIntUint8R, (*Decoder).fastpathDecMapIntUint8R)
  254. fn(map[int]uint16(nil), (*Encoder).fastpathEncMapIntUint16R, (*Decoder).fastpathDecMapIntUint16R)
  255. fn(map[int]uint32(nil), (*Encoder).fastpathEncMapIntUint32R, (*Decoder).fastpathDecMapIntUint32R)
  256. fn(map[int]uint64(nil), (*Encoder).fastpathEncMapIntUint64R, (*Decoder).fastpathDecMapIntUint64R)
  257. fn(map[int]uintptr(nil), (*Encoder).fastpathEncMapIntUintptrR, (*Decoder).fastpathDecMapIntUintptrR)
  258. fn(map[int]int(nil), (*Encoder).fastpathEncMapIntIntR, (*Decoder).fastpathDecMapIntIntR)
  259. fn(map[int]int8(nil), (*Encoder).fastpathEncMapIntInt8R, (*Decoder).fastpathDecMapIntInt8R)
  260. fn(map[int]int16(nil), (*Encoder).fastpathEncMapIntInt16R, (*Decoder).fastpathDecMapIntInt16R)
  261. fn(map[int]int32(nil), (*Encoder).fastpathEncMapIntInt32R, (*Decoder).fastpathDecMapIntInt32R)
  262. fn(map[int]int64(nil), (*Encoder).fastpathEncMapIntInt64R, (*Decoder).fastpathDecMapIntInt64R)
  263. fn(map[int]float32(nil), (*Encoder).fastpathEncMapIntFloat32R, (*Decoder).fastpathDecMapIntFloat32R)
  264. fn(map[int]float64(nil), (*Encoder).fastpathEncMapIntFloat64R, (*Decoder).fastpathDecMapIntFloat64R)
  265. fn(map[int]bool(nil), (*Encoder).fastpathEncMapIntBoolR, (*Decoder).fastpathDecMapIntBoolR)
  266. fn(map[int8]interface{}(nil), (*Encoder).fastpathEncMapInt8IntfR, (*Decoder).fastpathDecMapInt8IntfR)
  267. fn(map[int8]string(nil), (*Encoder).fastpathEncMapInt8StringR, (*Decoder).fastpathDecMapInt8StringR)
  268. fn(map[int8]uint(nil), (*Encoder).fastpathEncMapInt8UintR, (*Decoder).fastpathDecMapInt8UintR)
  269. fn(map[int8]uint8(nil), (*Encoder).fastpathEncMapInt8Uint8R, (*Decoder).fastpathDecMapInt8Uint8R)
  270. fn(map[int8]uint16(nil), (*Encoder).fastpathEncMapInt8Uint16R, (*Decoder).fastpathDecMapInt8Uint16R)
  271. fn(map[int8]uint32(nil), (*Encoder).fastpathEncMapInt8Uint32R, (*Decoder).fastpathDecMapInt8Uint32R)
  272. fn(map[int8]uint64(nil), (*Encoder).fastpathEncMapInt8Uint64R, (*Decoder).fastpathDecMapInt8Uint64R)
  273. fn(map[int8]uintptr(nil), (*Encoder).fastpathEncMapInt8UintptrR, (*Decoder).fastpathDecMapInt8UintptrR)
  274. fn(map[int8]int(nil), (*Encoder).fastpathEncMapInt8IntR, (*Decoder).fastpathDecMapInt8IntR)
  275. fn(map[int8]int8(nil), (*Encoder).fastpathEncMapInt8Int8R, (*Decoder).fastpathDecMapInt8Int8R)
  276. fn(map[int8]int16(nil), (*Encoder).fastpathEncMapInt8Int16R, (*Decoder).fastpathDecMapInt8Int16R)
  277. fn(map[int8]int32(nil), (*Encoder).fastpathEncMapInt8Int32R, (*Decoder).fastpathDecMapInt8Int32R)
  278. fn(map[int8]int64(nil), (*Encoder).fastpathEncMapInt8Int64R, (*Decoder).fastpathDecMapInt8Int64R)
  279. fn(map[int8]float32(nil), (*Encoder).fastpathEncMapInt8Float32R, (*Decoder).fastpathDecMapInt8Float32R)
  280. fn(map[int8]float64(nil), (*Encoder).fastpathEncMapInt8Float64R, (*Decoder).fastpathDecMapInt8Float64R)
  281. fn(map[int8]bool(nil), (*Encoder).fastpathEncMapInt8BoolR, (*Decoder).fastpathDecMapInt8BoolR)
  282. fn(map[int16]interface{}(nil), (*Encoder).fastpathEncMapInt16IntfR, (*Decoder).fastpathDecMapInt16IntfR)
  283. fn(map[int16]string(nil), (*Encoder).fastpathEncMapInt16StringR, (*Decoder).fastpathDecMapInt16StringR)
  284. fn(map[int16]uint(nil), (*Encoder).fastpathEncMapInt16UintR, (*Decoder).fastpathDecMapInt16UintR)
  285. fn(map[int16]uint8(nil), (*Encoder).fastpathEncMapInt16Uint8R, (*Decoder).fastpathDecMapInt16Uint8R)
  286. fn(map[int16]uint16(nil), (*Encoder).fastpathEncMapInt16Uint16R, (*Decoder).fastpathDecMapInt16Uint16R)
  287. fn(map[int16]uint32(nil), (*Encoder).fastpathEncMapInt16Uint32R, (*Decoder).fastpathDecMapInt16Uint32R)
  288. fn(map[int16]uint64(nil), (*Encoder).fastpathEncMapInt16Uint64R, (*Decoder).fastpathDecMapInt16Uint64R)
  289. fn(map[int16]uintptr(nil), (*Encoder).fastpathEncMapInt16UintptrR, (*Decoder).fastpathDecMapInt16UintptrR)
  290. fn(map[int16]int(nil), (*Encoder).fastpathEncMapInt16IntR, (*Decoder).fastpathDecMapInt16IntR)
  291. fn(map[int16]int8(nil), (*Encoder).fastpathEncMapInt16Int8R, (*Decoder).fastpathDecMapInt16Int8R)
  292. fn(map[int16]int16(nil), (*Encoder).fastpathEncMapInt16Int16R, (*Decoder).fastpathDecMapInt16Int16R)
  293. fn(map[int16]int32(nil), (*Encoder).fastpathEncMapInt16Int32R, (*Decoder).fastpathDecMapInt16Int32R)
  294. fn(map[int16]int64(nil), (*Encoder).fastpathEncMapInt16Int64R, (*Decoder).fastpathDecMapInt16Int64R)
  295. fn(map[int16]float32(nil), (*Encoder).fastpathEncMapInt16Float32R, (*Decoder).fastpathDecMapInt16Float32R)
  296. fn(map[int16]float64(nil), (*Encoder).fastpathEncMapInt16Float64R, (*Decoder).fastpathDecMapInt16Float64R)
  297. fn(map[int16]bool(nil), (*Encoder).fastpathEncMapInt16BoolR, (*Decoder).fastpathDecMapInt16BoolR)
  298. fn(map[int32]interface{}(nil), (*Encoder).fastpathEncMapInt32IntfR, (*Decoder).fastpathDecMapInt32IntfR)
  299. fn(map[int32]string(nil), (*Encoder).fastpathEncMapInt32StringR, (*Decoder).fastpathDecMapInt32StringR)
  300. fn(map[int32]uint(nil), (*Encoder).fastpathEncMapInt32UintR, (*Decoder).fastpathDecMapInt32UintR)
  301. fn(map[int32]uint8(nil), (*Encoder).fastpathEncMapInt32Uint8R, (*Decoder).fastpathDecMapInt32Uint8R)
  302. fn(map[int32]uint16(nil), (*Encoder).fastpathEncMapInt32Uint16R, (*Decoder).fastpathDecMapInt32Uint16R)
  303. fn(map[int32]uint32(nil), (*Encoder).fastpathEncMapInt32Uint32R, (*Decoder).fastpathDecMapInt32Uint32R)
  304. fn(map[int32]uint64(nil), (*Encoder).fastpathEncMapInt32Uint64R, (*Decoder).fastpathDecMapInt32Uint64R)
  305. fn(map[int32]uintptr(nil), (*Encoder).fastpathEncMapInt32UintptrR, (*Decoder).fastpathDecMapInt32UintptrR)
  306. fn(map[int32]int(nil), (*Encoder).fastpathEncMapInt32IntR, (*Decoder).fastpathDecMapInt32IntR)
  307. fn(map[int32]int8(nil), (*Encoder).fastpathEncMapInt32Int8R, (*Decoder).fastpathDecMapInt32Int8R)
  308. fn(map[int32]int16(nil), (*Encoder).fastpathEncMapInt32Int16R, (*Decoder).fastpathDecMapInt32Int16R)
  309. fn(map[int32]int32(nil), (*Encoder).fastpathEncMapInt32Int32R, (*Decoder).fastpathDecMapInt32Int32R)
  310. fn(map[int32]int64(nil), (*Encoder).fastpathEncMapInt32Int64R, (*Decoder).fastpathDecMapInt32Int64R)
  311. fn(map[int32]float32(nil), (*Encoder).fastpathEncMapInt32Float32R, (*Decoder).fastpathDecMapInt32Float32R)
  312. fn(map[int32]float64(nil), (*Encoder).fastpathEncMapInt32Float64R, (*Decoder).fastpathDecMapInt32Float64R)
  313. fn(map[int32]bool(nil), (*Encoder).fastpathEncMapInt32BoolR, (*Decoder).fastpathDecMapInt32BoolR)
  314. fn(map[int64]interface{}(nil), (*Encoder).fastpathEncMapInt64IntfR, (*Decoder).fastpathDecMapInt64IntfR)
  315. fn(map[int64]string(nil), (*Encoder).fastpathEncMapInt64StringR, (*Decoder).fastpathDecMapInt64StringR)
  316. fn(map[int64]uint(nil), (*Encoder).fastpathEncMapInt64UintR, (*Decoder).fastpathDecMapInt64UintR)
  317. fn(map[int64]uint8(nil), (*Encoder).fastpathEncMapInt64Uint8R, (*Decoder).fastpathDecMapInt64Uint8R)
  318. fn(map[int64]uint16(nil), (*Encoder).fastpathEncMapInt64Uint16R, (*Decoder).fastpathDecMapInt64Uint16R)
  319. fn(map[int64]uint32(nil), (*Encoder).fastpathEncMapInt64Uint32R, (*Decoder).fastpathDecMapInt64Uint32R)
  320. fn(map[int64]uint64(nil), (*Encoder).fastpathEncMapInt64Uint64R, (*Decoder).fastpathDecMapInt64Uint64R)
  321. fn(map[int64]uintptr(nil), (*Encoder).fastpathEncMapInt64UintptrR, (*Decoder).fastpathDecMapInt64UintptrR)
  322. fn(map[int64]int(nil), (*Encoder).fastpathEncMapInt64IntR, (*Decoder).fastpathDecMapInt64IntR)
  323. fn(map[int64]int8(nil), (*Encoder).fastpathEncMapInt64Int8R, (*Decoder).fastpathDecMapInt64Int8R)
  324. fn(map[int64]int16(nil), (*Encoder).fastpathEncMapInt64Int16R, (*Decoder).fastpathDecMapInt64Int16R)
  325. fn(map[int64]int32(nil), (*Encoder).fastpathEncMapInt64Int32R, (*Decoder).fastpathDecMapInt64Int32R)
  326. fn(map[int64]int64(nil), (*Encoder).fastpathEncMapInt64Int64R, (*Decoder).fastpathDecMapInt64Int64R)
  327. fn(map[int64]float32(nil), (*Encoder).fastpathEncMapInt64Float32R, (*Decoder).fastpathDecMapInt64Float32R)
  328. fn(map[int64]float64(nil), (*Encoder).fastpathEncMapInt64Float64R, (*Decoder).fastpathDecMapInt64Float64R)
  329. fn(map[int64]bool(nil), (*Encoder).fastpathEncMapInt64BoolR, (*Decoder).fastpathDecMapInt64BoolR)
  330. fn(map[bool]interface{}(nil), (*Encoder).fastpathEncMapBoolIntfR, (*Decoder).fastpathDecMapBoolIntfR)
  331. fn(map[bool]string(nil), (*Encoder).fastpathEncMapBoolStringR, (*Decoder).fastpathDecMapBoolStringR)
  332. fn(map[bool]uint(nil), (*Encoder).fastpathEncMapBoolUintR, (*Decoder).fastpathDecMapBoolUintR)
  333. fn(map[bool]uint8(nil), (*Encoder).fastpathEncMapBoolUint8R, (*Decoder).fastpathDecMapBoolUint8R)
  334. fn(map[bool]uint16(nil), (*Encoder).fastpathEncMapBoolUint16R, (*Decoder).fastpathDecMapBoolUint16R)
  335. fn(map[bool]uint32(nil), (*Encoder).fastpathEncMapBoolUint32R, (*Decoder).fastpathDecMapBoolUint32R)
  336. fn(map[bool]uint64(nil), (*Encoder).fastpathEncMapBoolUint64R, (*Decoder).fastpathDecMapBoolUint64R)
  337. fn(map[bool]uintptr(nil), (*Encoder).fastpathEncMapBoolUintptrR, (*Decoder).fastpathDecMapBoolUintptrR)
  338. fn(map[bool]int(nil), (*Encoder).fastpathEncMapBoolIntR, (*Decoder).fastpathDecMapBoolIntR)
  339. fn(map[bool]int8(nil), (*Encoder).fastpathEncMapBoolInt8R, (*Decoder).fastpathDecMapBoolInt8R)
  340. fn(map[bool]int16(nil), (*Encoder).fastpathEncMapBoolInt16R, (*Decoder).fastpathDecMapBoolInt16R)
  341. fn(map[bool]int32(nil), (*Encoder).fastpathEncMapBoolInt32R, (*Decoder).fastpathDecMapBoolInt32R)
  342. fn(map[bool]int64(nil), (*Encoder).fastpathEncMapBoolInt64R, (*Decoder).fastpathDecMapBoolInt64R)
  343. fn(map[bool]float32(nil), (*Encoder).fastpathEncMapBoolFloat32R, (*Decoder).fastpathDecMapBoolFloat32R)
  344. fn(map[bool]float64(nil), (*Encoder).fastpathEncMapBoolFloat64R, (*Decoder).fastpathDecMapBoolFloat64R)
  345. fn(map[bool]bool(nil), (*Encoder).fastpathEncMapBoolBoolR, (*Decoder).fastpathDecMapBoolBoolR)
  346. sort.Sort(fastpathAslice(fastpathAV[:]))
  347. }
  348. // -- encode
  349. // -- -- fast path type switch
  350. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  351. switch v := iv.(type) {
  352. case []interface{}:
  353. fastpathTV.EncSliceIntfV(v, e)
  354. case *[]interface{}:
  355. fastpathTV.EncSliceIntfV(*v, e)
  356. case []string:
  357. fastpathTV.EncSliceStringV(v, e)
  358. case *[]string:
  359. fastpathTV.EncSliceStringV(*v, e)
  360. case []float32:
  361. fastpathTV.EncSliceFloat32V(v, e)
  362. case *[]float32:
  363. fastpathTV.EncSliceFloat32V(*v, e)
  364. case []float64:
  365. fastpathTV.EncSliceFloat64V(v, e)
  366. case *[]float64:
  367. fastpathTV.EncSliceFloat64V(*v, e)
  368. case []uint:
  369. fastpathTV.EncSliceUintV(v, e)
  370. case *[]uint:
  371. fastpathTV.EncSliceUintV(*v, e)
  372. case []uint16:
  373. fastpathTV.EncSliceUint16V(v, e)
  374. case *[]uint16:
  375. fastpathTV.EncSliceUint16V(*v, e)
  376. case []uint32:
  377. fastpathTV.EncSliceUint32V(v, e)
  378. case *[]uint32:
  379. fastpathTV.EncSliceUint32V(*v, e)
  380. case []uint64:
  381. fastpathTV.EncSliceUint64V(v, e)
  382. case *[]uint64:
  383. fastpathTV.EncSliceUint64V(*v, e)
  384. case []uintptr:
  385. fastpathTV.EncSliceUintptrV(v, e)
  386. case *[]uintptr:
  387. fastpathTV.EncSliceUintptrV(*v, e)
  388. case []int:
  389. fastpathTV.EncSliceIntV(v, e)
  390. case *[]int:
  391. fastpathTV.EncSliceIntV(*v, e)
  392. case []int8:
  393. fastpathTV.EncSliceInt8V(v, e)
  394. case *[]int8:
  395. fastpathTV.EncSliceInt8V(*v, e)
  396. case []int16:
  397. fastpathTV.EncSliceInt16V(v, e)
  398. case *[]int16:
  399. fastpathTV.EncSliceInt16V(*v, e)
  400. case []int32:
  401. fastpathTV.EncSliceInt32V(v, e)
  402. case *[]int32:
  403. fastpathTV.EncSliceInt32V(*v, e)
  404. case []int64:
  405. fastpathTV.EncSliceInt64V(v, e)
  406. case *[]int64:
  407. fastpathTV.EncSliceInt64V(*v, e)
  408. case []bool:
  409. fastpathTV.EncSliceBoolV(v, e)
  410. case *[]bool:
  411. fastpathTV.EncSliceBoolV(*v, e)
  412. case map[interface{}]interface{}:
  413. fastpathTV.EncMapIntfIntfV(v, e)
  414. case *map[interface{}]interface{}:
  415. fastpathTV.EncMapIntfIntfV(*v, e)
  416. case map[interface{}]string:
  417. fastpathTV.EncMapIntfStringV(v, e)
  418. case *map[interface{}]string:
  419. fastpathTV.EncMapIntfStringV(*v, e)
  420. case map[interface{}]uint:
  421. fastpathTV.EncMapIntfUintV(v, e)
  422. case *map[interface{}]uint:
  423. fastpathTV.EncMapIntfUintV(*v, e)
  424. case map[interface{}]uint8:
  425. fastpathTV.EncMapIntfUint8V(v, e)
  426. case *map[interface{}]uint8:
  427. fastpathTV.EncMapIntfUint8V(*v, e)
  428. case map[interface{}]uint16:
  429. fastpathTV.EncMapIntfUint16V(v, e)
  430. case *map[interface{}]uint16:
  431. fastpathTV.EncMapIntfUint16V(*v, e)
  432. case map[interface{}]uint32:
  433. fastpathTV.EncMapIntfUint32V(v, e)
  434. case *map[interface{}]uint32:
  435. fastpathTV.EncMapIntfUint32V(*v, e)
  436. case map[interface{}]uint64:
  437. fastpathTV.EncMapIntfUint64V(v, e)
  438. case *map[interface{}]uint64:
  439. fastpathTV.EncMapIntfUint64V(*v, e)
  440. case map[interface{}]uintptr:
  441. fastpathTV.EncMapIntfUintptrV(v, e)
  442. case *map[interface{}]uintptr:
  443. fastpathTV.EncMapIntfUintptrV(*v, e)
  444. case map[interface{}]int:
  445. fastpathTV.EncMapIntfIntV(v, e)
  446. case *map[interface{}]int:
  447. fastpathTV.EncMapIntfIntV(*v, e)
  448. case map[interface{}]int8:
  449. fastpathTV.EncMapIntfInt8V(v, e)
  450. case *map[interface{}]int8:
  451. fastpathTV.EncMapIntfInt8V(*v, e)
  452. case map[interface{}]int16:
  453. fastpathTV.EncMapIntfInt16V(v, e)
  454. case *map[interface{}]int16:
  455. fastpathTV.EncMapIntfInt16V(*v, e)
  456. case map[interface{}]int32:
  457. fastpathTV.EncMapIntfInt32V(v, e)
  458. case *map[interface{}]int32:
  459. fastpathTV.EncMapIntfInt32V(*v, e)
  460. case map[interface{}]int64:
  461. fastpathTV.EncMapIntfInt64V(v, e)
  462. case *map[interface{}]int64:
  463. fastpathTV.EncMapIntfInt64V(*v, e)
  464. case map[interface{}]float32:
  465. fastpathTV.EncMapIntfFloat32V(v, e)
  466. case *map[interface{}]float32:
  467. fastpathTV.EncMapIntfFloat32V(*v, e)
  468. case map[interface{}]float64:
  469. fastpathTV.EncMapIntfFloat64V(v, e)
  470. case *map[interface{}]float64:
  471. fastpathTV.EncMapIntfFloat64V(*v, e)
  472. case map[interface{}]bool:
  473. fastpathTV.EncMapIntfBoolV(v, e)
  474. case *map[interface{}]bool:
  475. fastpathTV.EncMapIntfBoolV(*v, e)
  476. case map[string]interface{}:
  477. fastpathTV.EncMapStringIntfV(v, e)
  478. case *map[string]interface{}:
  479. fastpathTV.EncMapStringIntfV(*v, e)
  480. case map[string]string:
  481. fastpathTV.EncMapStringStringV(v, e)
  482. case *map[string]string:
  483. fastpathTV.EncMapStringStringV(*v, e)
  484. case map[string]uint:
  485. fastpathTV.EncMapStringUintV(v, e)
  486. case *map[string]uint:
  487. fastpathTV.EncMapStringUintV(*v, e)
  488. case map[string]uint8:
  489. fastpathTV.EncMapStringUint8V(v, e)
  490. case *map[string]uint8:
  491. fastpathTV.EncMapStringUint8V(*v, e)
  492. case map[string]uint16:
  493. fastpathTV.EncMapStringUint16V(v, e)
  494. case *map[string]uint16:
  495. fastpathTV.EncMapStringUint16V(*v, e)
  496. case map[string]uint32:
  497. fastpathTV.EncMapStringUint32V(v, e)
  498. case *map[string]uint32:
  499. fastpathTV.EncMapStringUint32V(*v, e)
  500. case map[string]uint64:
  501. fastpathTV.EncMapStringUint64V(v, e)
  502. case *map[string]uint64:
  503. fastpathTV.EncMapStringUint64V(*v, e)
  504. case map[string]uintptr:
  505. fastpathTV.EncMapStringUintptrV(v, e)
  506. case *map[string]uintptr:
  507. fastpathTV.EncMapStringUintptrV(*v, e)
  508. case map[string]int:
  509. fastpathTV.EncMapStringIntV(v, e)
  510. case *map[string]int:
  511. fastpathTV.EncMapStringIntV(*v, e)
  512. case map[string]int8:
  513. fastpathTV.EncMapStringInt8V(v, e)
  514. case *map[string]int8:
  515. fastpathTV.EncMapStringInt8V(*v, e)
  516. case map[string]int16:
  517. fastpathTV.EncMapStringInt16V(v, e)
  518. case *map[string]int16:
  519. fastpathTV.EncMapStringInt16V(*v, e)
  520. case map[string]int32:
  521. fastpathTV.EncMapStringInt32V(v, e)
  522. case *map[string]int32:
  523. fastpathTV.EncMapStringInt32V(*v, e)
  524. case map[string]int64:
  525. fastpathTV.EncMapStringInt64V(v, e)
  526. case *map[string]int64:
  527. fastpathTV.EncMapStringInt64V(*v, e)
  528. case map[string]float32:
  529. fastpathTV.EncMapStringFloat32V(v, e)
  530. case *map[string]float32:
  531. fastpathTV.EncMapStringFloat32V(*v, e)
  532. case map[string]float64:
  533. fastpathTV.EncMapStringFloat64V(v, e)
  534. case *map[string]float64:
  535. fastpathTV.EncMapStringFloat64V(*v, e)
  536. case map[string]bool:
  537. fastpathTV.EncMapStringBoolV(v, e)
  538. case *map[string]bool:
  539. fastpathTV.EncMapStringBoolV(*v, e)
  540. case map[float32]interface{}:
  541. fastpathTV.EncMapFloat32IntfV(v, e)
  542. case *map[float32]interface{}:
  543. fastpathTV.EncMapFloat32IntfV(*v, e)
  544. case map[float32]string:
  545. fastpathTV.EncMapFloat32StringV(v, e)
  546. case *map[float32]string:
  547. fastpathTV.EncMapFloat32StringV(*v, e)
  548. case map[float32]uint:
  549. fastpathTV.EncMapFloat32UintV(v, e)
  550. case *map[float32]uint:
  551. fastpathTV.EncMapFloat32UintV(*v, e)
  552. case map[float32]uint8:
  553. fastpathTV.EncMapFloat32Uint8V(v, e)
  554. case *map[float32]uint8:
  555. fastpathTV.EncMapFloat32Uint8V(*v, e)
  556. case map[float32]uint16:
  557. fastpathTV.EncMapFloat32Uint16V(v, e)
  558. case *map[float32]uint16:
  559. fastpathTV.EncMapFloat32Uint16V(*v, e)
  560. case map[float32]uint32:
  561. fastpathTV.EncMapFloat32Uint32V(v, e)
  562. case *map[float32]uint32:
  563. fastpathTV.EncMapFloat32Uint32V(*v, e)
  564. case map[float32]uint64:
  565. fastpathTV.EncMapFloat32Uint64V(v, e)
  566. case *map[float32]uint64:
  567. fastpathTV.EncMapFloat32Uint64V(*v, e)
  568. case map[float32]uintptr:
  569. fastpathTV.EncMapFloat32UintptrV(v, e)
  570. case *map[float32]uintptr:
  571. fastpathTV.EncMapFloat32UintptrV(*v, e)
  572. case map[float32]int:
  573. fastpathTV.EncMapFloat32IntV(v, e)
  574. case *map[float32]int:
  575. fastpathTV.EncMapFloat32IntV(*v, e)
  576. case map[float32]int8:
  577. fastpathTV.EncMapFloat32Int8V(v, e)
  578. case *map[float32]int8:
  579. fastpathTV.EncMapFloat32Int8V(*v, e)
  580. case map[float32]int16:
  581. fastpathTV.EncMapFloat32Int16V(v, e)
  582. case *map[float32]int16:
  583. fastpathTV.EncMapFloat32Int16V(*v, e)
  584. case map[float32]int32:
  585. fastpathTV.EncMapFloat32Int32V(v, e)
  586. case *map[float32]int32:
  587. fastpathTV.EncMapFloat32Int32V(*v, e)
  588. case map[float32]int64:
  589. fastpathTV.EncMapFloat32Int64V(v, e)
  590. case *map[float32]int64:
  591. fastpathTV.EncMapFloat32Int64V(*v, e)
  592. case map[float32]float32:
  593. fastpathTV.EncMapFloat32Float32V(v, e)
  594. case *map[float32]float32:
  595. fastpathTV.EncMapFloat32Float32V(*v, e)
  596. case map[float32]float64:
  597. fastpathTV.EncMapFloat32Float64V(v, e)
  598. case *map[float32]float64:
  599. fastpathTV.EncMapFloat32Float64V(*v, e)
  600. case map[float32]bool:
  601. fastpathTV.EncMapFloat32BoolV(v, e)
  602. case *map[float32]bool:
  603. fastpathTV.EncMapFloat32BoolV(*v, e)
  604. case map[float64]interface{}:
  605. fastpathTV.EncMapFloat64IntfV(v, e)
  606. case *map[float64]interface{}:
  607. fastpathTV.EncMapFloat64IntfV(*v, e)
  608. case map[float64]string:
  609. fastpathTV.EncMapFloat64StringV(v, e)
  610. case *map[float64]string:
  611. fastpathTV.EncMapFloat64StringV(*v, e)
  612. case map[float64]uint:
  613. fastpathTV.EncMapFloat64UintV(v, e)
  614. case *map[float64]uint:
  615. fastpathTV.EncMapFloat64UintV(*v, e)
  616. case map[float64]uint8:
  617. fastpathTV.EncMapFloat64Uint8V(v, e)
  618. case *map[float64]uint8:
  619. fastpathTV.EncMapFloat64Uint8V(*v, e)
  620. case map[float64]uint16:
  621. fastpathTV.EncMapFloat64Uint16V(v, e)
  622. case *map[float64]uint16:
  623. fastpathTV.EncMapFloat64Uint16V(*v, e)
  624. case map[float64]uint32:
  625. fastpathTV.EncMapFloat64Uint32V(v, e)
  626. case *map[float64]uint32:
  627. fastpathTV.EncMapFloat64Uint32V(*v, e)
  628. case map[float64]uint64:
  629. fastpathTV.EncMapFloat64Uint64V(v, e)
  630. case *map[float64]uint64:
  631. fastpathTV.EncMapFloat64Uint64V(*v, e)
  632. case map[float64]uintptr:
  633. fastpathTV.EncMapFloat64UintptrV(v, e)
  634. case *map[float64]uintptr:
  635. fastpathTV.EncMapFloat64UintptrV(*v, e)
  636. case map[float64]int:
  637. fastpathTV.EncMapFloat64IntV(v, e)
  638. case *map[float64]int:
  639. fastpathTV.EncMapFloat64IntV(*v, e)
  640. case map[float64]int8:
  641. fastpathTV.EncMapFloat64Int8V(v, e)
  642. case *map[float64]int8:
  643. fastpathTV.EncMapFloat64Int8V(*v, e)
  644. case map[float64]int16:
  645. fastpathTV.EncMapFloat64Int16V(v, e)
  646. case *map[float64]int16:
  647. fastpathTV.EncMapFloat64Int16V(*v, e)
  648. case map[float64]int32:
  649. fastpathTV.EncMapFloat64Int32V(v, e)
  650. case *map[float64]int32:
  651. fastpathTV.EncMapFloat64Int32V(*v, e)
  652. case map[float64]int64:
  653. fastpathTV.EncMapFloat64Int64V(v, e)
  654. case *map[float64]int64:
  655. fastpathTV.EncMapFloat64Int64V(*v, e)
  656. case map[float64]float32:
  657. fastpathTV.EncMapFloat64Float32V(v, e)
  658. case *map[float64]float32:
  659. fastpathTV.EncMapFloat64Float32V(*v, e)
  660. case map[float64]float64:
  661. fastpathTV.EncMapFloat64Float64V(v, e)
  662. case *map[float64]float64:
  663. fastpathTV.EncMapFloat64Float64V(*v, e)
  664. case map[float64]bool:
  665. fastpathTV.EncMapFloat64BoolV(v, e)
  666. case *map[float64]bool:
  667. fastpathTV.EncMapFloat64BoolV(*v, e)
  668. case map[uint]interface{}:
  669. fastpathTV.EncMapUintIntfV(v, e)
  670. case *map[uint]interface{}:
  671. fastpathTV.EncMapUintIntfV(*v, e)
  672. case map[uint]string:
  673. fastpathTV.EncMapUintStringV(v, e)
  674. case *map[uint]string:
  675. fastpathTV.EncMapUintStringV(*v, e)
  676. case map[uint]uint:
  677. fastpathTV.EncMapUintUintV(v, e)
  678. case *map[uint]uint:
  679. fastpathTV.EncMapUintUintV(*v, e)
  680. case map[uint]uint8:
  681. fastpathTV.EncMapUintUint8V(v, e)
  682. case *map[uint]uint8:
  683. fastpathTV.EncMapUintUint8V(*v, e)
  684. case map[uint]uint16:
  685. fastpathTV.EncMapUintUint16V(v, e)
  686. case *map[uint]uint16:
  687. fastpathTV.EncMapUintUint16V(*v, e)
  688. case map[uint]uint32:
  689. fastpathTV.EncMapUintUint32V(v, e)
  690. case *map[uint]uint32:
  691. fastpathTV.EncMapUintUint32V(*v, e)
  692. case map[uint]uint64:
  693. fastpathTV.EncMapUintUint64V(v, e)
  694. case *map[uint]uint64:
  695. fastpathTV.EncMapUintUint64V(*v, e)
  696. case map[uint]uintptr:
  697. fastpathTV.EncMapUintUintptrV(v, e)
  698. case *map[uint]uintptr:
  699. fastpathTV.EncMapUintUintptrV(*v, e)
  700. case map[uint]int:
  701. fastpathTV.EncMapUintIntV(v, e)
  702. case *map[uint]int:
  703. fastpathTV.EncMapUintIntV(*v, e)
  704. case map[uint]int8:
  705. fastpathTV.EncMapUintInt8V(v, e)
  706. case *map[uint]int8:
  707. fastpathTV.EncMapUintInt8V(*v, e)
  708. case map[uint]int16:
  709. fastpathTV.EncMapUintInt16V(v, e)
  710. case *map[uint]int16:
  711. fastpathTV.EncMapUintInt16V(*v, e)
  712. case map[uint]int32:
  713. fastpathTV.EncMapUintInt32V(v, e)
  714. case *map[uint]int32:
  715. fastpathTV.EncMapUintInt32V(*v, e)
  716. case map[uint]int64:
  717. fastpathTV.EncMapUintInt64V(v, e)
  718. case *map[uint]int64:
  719. fastpathTV.EncMapUintInt64V(*v, e)
  720. case map[uint]float32:
  721. fastpathTV.EncMapUintFloat32V(v, e)
  722. case *map[uint]float32:
  723. fastpathTV.EncMapUintFloat32V(*v, e)
  724. case map[uint]float64:
  725. fastpathTV.EncMapUintFloat64V(v, e)
  726. case *map[uint]float64:
  727. fastpathTV.EncMapUintFloat64V(*v, e)
  728. case map[uint]bool:
  729. fastpathTV.EncMapUintBoolV(v, e)
  730. case *map[uint]bool:
  731. fastpathTV.EncMapUintBoolV(*v, e)
  732. case map[uint8]interface{}:
  733. fastpathTV.EncMapUint8IntfV(v, e)
  734. case *map[uint8]interface{}:
  735. fastpathTV.EncMapUint8IntfV(*v, e)
  736. case map[uint8]string:
  737. fastpathTV.EncMapUint8StringV(v, e)
  738. case *map[uint8]string:
  739. fastpathTV.EncMapUint8StringV(*v, e)
  740. case map[uint8]uint:
  741. fastpathTV.EncMapUint8UintV(v, e)
  742. case *map[uint8]uint:
  743. fastpathTV.EncMapUint8UintV(*v, e)
  744. case map[uint8]uint8:
  745. fastpathTV.EncMapUint8Uint8V(v, e)
  746. case *map[uint8]uint8:
  747. fastpathTV.EncMapUint8Uint8V(*v, e)
  748. case map[uint8]uint16:
  749. fastpathTV.EncMapUint8Uint16V(v, e)
  750. case *map[uint8]uint16:
  751. fastpathTV.EncMapUint8Uint16V(*v, e)
  752. case map[uint8]uint32:
  753. fastpathTV.EncMapUint8Uint32V(v, e)
  754. case *map[uint8]uint32:
  755. fastpathTV.EncMapUint8Uint32V(*v, e)
  756. case map[uint8]uint64:
  757. fastpathTV.EncMapUint8Uint64V(v, e)
  758. case *map[uint8]uint64:
  759. fastpathTV.EncMapUint8Uint64V(*v, e)
  760. case map[uint8]uintptr:
  761. fastpathTV.EncMapUint8UintptrV(v, e)
  762. case *map[uint8]uintptr:
  763. fastpathTV.EncMapUint8UintptrV(*v, e)
  764. case map[uint8]int:
  765. fastpathTV.EncMapUint8IntV(v, e)
  766. case *map[uint8]int:
  767. fastpathTV.EncMapUint8IntV(*v, e)
  768. case map[uint8]int8:
  769. fastpathTV.EncMapUint8Int8V(v, e)
  770. case *map[uint8]int8:
  771. fastpathTV.EncMapUint8Int8V(*v, e)
  772. case map[uint8]int16:
  773. fastpathTV.EncMapUint8Int16V(v, e)
  774. case *map[uint8]int16:
  775. fastpathTV.EncMapUint8Int16V(*v, e)
  776. case map[uint8]int32:
  777. fastpathTV.EncMapUint8Int32V(v, e)
  778. case *map[uint8]int32:
  779. fastpathTV.EncMapUint8Int32V(*v, e)
  780. case map[uint8]int64:
  781. fastpathTV.EncMapUint8Int64V(v, e)
  782. case *map[uint8]int64:
  783. fastpathTV.EncMapUint8Int64V(*v, e)
  784. case map[uint8]float32:
  785. fastpathTV.EncMapUint8Float32V(v, e)
  786. case *map[uint8]float32:
  787. fastpathTV.EncMapUint8Float32V(*v, e)
  788. case map[uint8]float64:
  789. fastpathTV.EncMapUint8Float64V(v, e)
  790. case *map[uint8]float64:
  791. fastpathTV.EncMapUint8Float64V(*v, e)
  792. case map[uint8]bool:
  793. fastpathTV.EncMapUint8BoolV(v, e)
  794. case *map[uint8]bool:
  795. fastpathTV.EncMapUint8BoolV(*v, e)
  796. case map[uint16]interface{}:
  797. fastpathTV.EncMapUint16IntfV(v, e)
  798. case *map[uint16]interface{}:
  799. fastpathTV.EncMapUint16IntfV(*v, e)
  800. case map[uint16]string:
  801. fastpathTV.EncMapUint16StringV(v, e)
  802. case *map[uint16]string:
  803. fastpathTV.EncMapUint16StringV(*v, e)
  804. case map[uint16]uint:
  805. fastpathTV.EncMapUint16UintV(v, e)
  806. case *map[uint16]uint:
  807. fastpathTV.EncMapUint16UintV(*v, e)
  808. case map[uint16]uint8:
  809. fastpathTV.EncMapUint16Uint8V(v, e)
  810. case *map[uint16]uint8:
  811. fastpathTV.EncMapUint16Uint8V(*v, e)
  812. case map[uint16]uint16:
  813. fastpathTV.EncMapUint16Uint16V(v, e)
  814. case *map[uint16]uint16:
  815. fastpathTV.EncMapUint16Uint16V(*v, e)
  816. case map[uint16]uint32:
  817. fastpathTV.EncMapUint16Uint32V(v, e)
  818. case *map[uint16]uint32:
  819. fastpathTV.EncMapUint16Uint32V(*v, e)
  820. case map[uint16]uint64:
  821. fastpathTV.EncMapUint16Uint64V(v, e)
  822. case *map[uint16]uint64:
  823. fastpathTV.EncMapUint16Uint64V(*v, e)
  824. case map[uint16]uintptr:
  825. fastpathTV.EncMapUint16UintptrV(v, e)
  826. case *map[uint16]uintptr:
  827. fastpathTV.EncMapUint16UintptrV(*v, e)
  828. case map[uint16]int:
  829. fastpathTV.EncMapUint16IntV(v, e)
  830. case *map[uint16]int:
  831. fastpathTV.EncMapUint16IntV(*v, e)
  832. case map[uint16]int8:
  833. fastpathTV.EncMapUint16Int8V(v, e)
  834. case *map[uint16]int8:
  835. fastpathTV.EncMapUint16Int8V(*v, e)
  836. case map[uint16]int16:
  837. fastpathTV.EncMapUint16Int16V(v, e)
  838. case *map[uint16]int16:
  839. fastpathTV.EncMapUint16Int16V(*v, e)
  840. case map[uint16]int32:
  841. fastpathTV.EncMapUint16Int32V(v, e)
  842. case *map[uint16]int32:
  843. fastpathTV.EncMapUint16Int32V(*v, e)
  844. case map[uint16]int64:
  845. fastpathTV.EncMapUint16Int64V(v, e)
  846. case *map[uint16]int64:
  847. fastpathTV.EncMapUint16Int64V(*v, e)
  848. case map[uint16]float32:
  849. fastpathTV.EncMapUint16Float32V(v, e)
  850. case *map[uint16]float32:
  851. fastpathTV.EncMapUint16Float32V(*v, e)
  852. case map[uint16]float64:
  853. fastpathTV.EncMapUint16Float64V(v, e)
  854. case *map[uint16]float64:
  855. fastpathTV.EncMapUint16Float64V(*v, e)
  856. case map[uint16]bool:
  857. fastpathTV.EncMapUint16BoolV(v, e)
  858. case *map[uint16]bool:
  859. fastpathTV.EncMapUint16BoolV(*v, e)
  860. case map[uint32]interface{}:
  861. fastpathTV.EncMapUint32IntfV(v, e)
  862. case *map[uint32]interface{}:
  863. fastpathTV.EncMapUint32IntfV(*v, e)
  864. case map[uint32]string:
  865. fastpathTV.EncMapUint32StringV(v, e)
  866. case *map[uint32]string:
  867. fastpathTV.EncMapUint32StringV(*v, e)
  868. case map[uint32]uint:
  869. fastpathTV.EncMapUint32UintV(v, e)
  870. case *map[uint32]uint:
  871. fastpathTV.EncMapUint32UintV(*v, e)
  872. case map[uint32]uint8:
  873. fastpathTV.EncMapUint32Uint8V(v, e)
  874. case *map[uint32]uint8:
  875. fastpathTV.EncMapUint32Uint8V(*v, e)
  876. case map[uint32]uint16:
  877. fastpathTV.EncMapUint32Uint16V(v, e)
  878. case *map[uint32]uint16:
  879. fastpathTV.EncMapUint32Uint16V(*v, e)
  880. case map[uint32]uint32:
  881. fastpathTV.EncMapUint32Uint32V(v, e)
  882. case *map[uint32]uint32:
  883. fastpathTV.EncMapUint32Uint32V(*v, e)
  884. case map[uint32]uint64:
  885. fastpathTV.EncMapUint32Uint64V(v, e)
  886. case *map[uint32]uint64:
  887. fastpathTV.EncMapUint32Uint64V(*v, e)
  888. case map[uint32]uintptr:
  889. fastpathTV.EncMapUint32UintptrV(v, e)
  890. case *map[uint32]uintptr:
  891. fastpathTV.EncMapUint32UintptrV(*v, e)
  892. case map[uint32]int:
  893. fastpathTV.EncMapUint32IntV(v, e)
  894. case *map[uint32]int:
  895. fastpathTV.EncMapUint32IntV(*v, e)
  896. case map[uint32]int8:
  897. fastpathTV.EncMapUint32Int8V(v, e)
  898. case *map[uint32]int8:
  899. fastpathTV.EncMapUint32Int8V(*v, e)
  900. case map[uint32]int16:
  901. fastpathTV.EncMapUint32Int16V(v, e)
  902. case *map[uint32]int16:
  903. fastpathTV.EncMapUint32Int16V(*v, e)
  904. case map[uint32]int32:
  905. fastpathTV.EncMapUint32Int32V(v, e)
  906. case *map[uint32]int32:
  907. fastpathTV.EncMapUint32Int32V(*v, e)
  908. case map[uint32]int64:
  909. fastpathTV.EncMapUint32Int64V(v, e)
  910. case *map[uint32]int64:
  911. fastpathTV.EncMapUint32Int64V(*v, e)
  912. case map[uint32]float32:
  913. fastpathTV.EncMapUint32Float32V(v, e)
  914. case *map[uint32]float32:
  915. fastpathTV.EncMapUint32Float32V(*v, e)
  916. case map[uint32]float64:
  917. fastpathTV.EncMapUint32Float64V(v, e)
  918. case *map[uint32]float64:
  919. fastpathTV.EncMapUint32Float64V(*v, e)
  920. case map[uint32]bool:
  921. fastpathTV.EncMapUint32BoolV(v, e)
  922. case *map[uint32]bool:
  923. fastpathTV.EncMapUint32BoolV(*v, e)
  924. case map[uint64]interface{}:
  925. fastpathTV.EncMapUint64IntfV(v, e)
  926. case *map[uint64]interface{}:
  927. fastpathTV.EncMapUint64IntfV(*v, e)
  928. case map[uint64]string:
  929. fastpathTV.EncMapUint64StringV(v, e)
  930. case *map[uint64]string:
  931. fastpathTV.EncMapUint64StringV(*v, e)
  932. case map[uint64]uint:
  933. fastpathTV.EncMapUint64UintV(v, e)
  934. case *map[uint64]uint:
  935. fastpathTV.EncMapUint64UintV(*v, e)
  936. case map[uint64]uint8:
  937. fastpathTV.EncMapUint64Uint8V(v, e)
  938. case *map[uint64]uint8:
  939. fastpathTV.EncMapUint64Uint8V(*v, e)
  940. case map[uint64]uint16:
  941. fastpathTV.EncMapUint64Uint16V(v, e)
  942. case *map[uint64]uint16:
  943. fastpathTV.EncMapUint64Uint16V(*v, e)
  944. case map[uint64]uint32:
  945. fastpathTV.EncMapUint64Uint32V(v, e)
  946. case *map[uint64]uint32:
  947. fastpathTV.EncMapUint64Uint32V(*v, e)
  948. case map[uint64]uint64:
  949. fastpathTV.EncMapUint64Uint64V(v, e)
  950. case *map[uint64]uint64:
  951. fastpathTV.EncMapUint64Uint64V(*v, e)
  952. case map[uint64]uintptr:
  953. fastpathTV.EncMapUint64UintptrV(v, e)
  954. case *map[uint64]uintptr:
  955. fastpathTV.EncMapUint64UintptrV(*v, e)
  956. case map[uint64]int:
  957. fastpathTV.EncMapUint64IntV(v, e)
  958. case *map[uint64]int:
  959. fastpathTV.EncMapUint64IntV(*v, e)
  960. case map[uint64]int8:
  961. fastpathTV.EncMapUint64Int8V(v, e)
  962. case *map[uint64]int8:
  963. fastpathTV.EncMapUint64Int8V(*v, e)
  964. case map[uint64]int16:
  965. fastpathTV.EncMapUint64Int16V(v, e)
  966. case *map[uint64]int16:
  967. fastpathTV.EncMapUint64Int16V(*v, e)
  968. case map[uint64]int32:
  969. fastpathTV.EncMapUint64Int32V(v, e)
  970. case *map[uint64]int32:
  971. fastpathTV.EncMapUint64Int32V(*v, e)
  972. case map[uint64]int64:
  973. fastpathTV.EncMapUint64Int64V(v, e)
  974. case *map[uint64]int64:
  975. fastpathTV.EncMapUint64Int64V(*v, e)
  976. case map[uint64]float32:
  977. fastpathTV.EncMapUint64Float32V(v, e)
  978. case *map[uint64]float32:
  979. fastpathTV.EncMapUint64Float32V(*v, e)
  980. case map[uint64]float64:
  981. fastpathTV.EncMapUint64Float64V(v, e)
  982. case *map[uint64]float64:
  983. fastpathTV.EncMapUint64Float64V(*v, e)
  984. case map[uint64]bool:
  985. fastpathTV.EncMapUint64BoolV(v, e)
  986. case *map[uint64]bool:
  987. fastpathTV.EncMapUint64BoolV(*v, e)
  988. case map[uintptr]interface{}:
  989. fastpathTV.EncMapUintptrIntfV(v, e)
  990. case *map[uintptr]interface{}:
  991. fastpathTV.EncMapUintptrIntfV(*v, e)
  992. case map[uintptr]string:
  993. fastpathTV.EncMapUintptrStringV(v, e)
  994. case *map[uintptr]string:
  995. fastpathTV.EncMapUintptrStringV(*v, e)
  996. case map[uintptr]uint:
  997. fastpathTV.EncMapUintptrUintV(v, e)
  998. case *map[uintptr]uint:
  999. fastpathTV.EncMapUintptrUintV(*v, e)
  1000. case map[uintptr]uint8:
  1001. fastpathTV.EncMapUintptrUint8V(v, e)
  1002. case *map[uintptr]uint8:
  1003. fastpathTV.EncMapUintptrUint8V(*v, e)
  1004. case map[uintptr]uint16:
  1005. fastpathTV.EncMapUintptrUint16V(v, e)
  1006. case *map[uintptr]uint16:
  1007. fastpathTV.EncMapUintptrUint16V(*v, e)
  1008. case map[uintptr]uint32:
  1009. fastpathTV.EncMapUintptrUint32V(v, e)
  1010. case *map[uintptr]uint32:
  1011. fastpathTV.EncMapUintptrUint32V(*v, e)
  1012. case map[uintptr]uint64:
  1013. fastpathTV.EncMapUintptrUint64V(v, e)
  1014. case *map[uintptr]uint64:
  1015. fastpathTV.EncMapUintptrUint64V(*v, e)
  1016. case map[uintptr]uintptr:
  1017. fastpathTV.EncMapUintptrUintptrV(v, e)
  1018. case *map[uintptr]uintptr:
  1019. fastpathTV.EncMapUintptrUintptrV(*v, e)
  1020. case map[uintptr]int:
  1021. fastpathTV.EncMapUintptrIntV(v, e)
  1022. case *map[uintptr]int:
  1023. fastpathTV.EncMapUintptrIntV(*v, e)
  1024. case map[uintptr]int8:
  1025. fastpathTV.EncMapUintptrInt8V(v, e)
  1026. case *map[uintptr]int8:
  1027. fastpathTV.EncMapUintptrInt8V(*v, e)
  1028. case map[uintptr]int16:
  1029. fastpathTV.EncMapUintptrInt16V(v, e)
  1030. case *map[uintptr]int16:
  1031. fastpathTV.EncMapUintptrInt16V(*v, e)
  1032. case map[uintptr]int32:
  1033. fastpathTV.EncMapUintptrInt32V(v, e)
  1034. case *map[uintptr]int32:
  1035. fastpathTV.EncMapUintptrInt32V(*v, e)
  1036. case map[uintptr]int64:
  1037. fastpathTV.EncMapUintptrInt64V(v, e)
  1038. case *map[uintptr]int64:
  1039. fastpathTV.EncMapUintptrInt64V(*v, e)
  1040. case map[uintptr]float32:
  1041. fastpathTV.EncMapUintptrFloat32V(v, e)
  1042. case *map[uintptr]float32:
  1043. fastpathTV.EncMapUintptrFloat32V(*v, e)
  1044. case map[uintptr]float64:
  1045. fastpathTV.EncMapUintptrFloat64V(v, e)
  1046. case *map[uintptr]float64:
  1047. fastpathTV.EncMapUintptrFloat64V(*v, e)
  1048. case map[uintptr]bool:
  1049. fastpathTV.EncMapUintptrBoolV(v, e)
  1050. case *map[uintptr]bool:
  1051. fastpathTV.EncMapUintptrBoolV(*v, e)
  1052. case map[int]interface{}:
  1053. fastpathTV.EncMapIntIntfV(v, e)
  1054. case *map[int]interface{}:
  1055. fastpathTV.EncMapIntIntfV(*v, e)
  1056. case map[int]string:
  1057. fastpathTV.EncMapIntStringV(v, e)
  1058. case *map[int]string:
  1059. fastpathTV.EncMapIntStringV(*v, e)
  1060. case map[int]uint:
  1061. fastpathTV.EncMapIntUintV(v, e)
  1062. case *map[int]uint:
  1063. fastpathTV.EncMapIntUintV(*v, e)
  1064. case map[int]uint8:
  1065. fastpathTV.EncMapIntUint8V(v, e)
  1066. case *map[int]uint8:
  1067. fastpathTV.EncMapIntUint8V(*v, e)
  1068. case map[int]uint16:
  1069. fastpathTV.EncMapIntUint16V(v, e)
  1070. case *map[int]uint16:
  1071. fastpathTV.EncMapIntUint16V(*v, e)
  1072. case map[int]uint32:
  1073. fastpathTV.EncMapIntUint32V(v, e)
  1074. case *map[int]uint32:
  1075. fastpathTV.EncMapIntUint32V(*v, e)
  1076. case map[int]uint64:
  1077. fastpathTV.EncMapIntUint64V(v, e)
  1078. case *map[int]uint64:
  1079. fastpathTV.EncMapIntUint64V(*v, e)
  1080. case map[int]uintptr:
  1081. fastpathTV.EncMapIntUintptrV(v, e)
  1082. case *map[int]uintptr:
  1083. fastpathTV.EncMapIntUintptrV(*v, e)
  1084. case map[int]int:
  1085. fastpathTV.EncMapIntIntV(v, e)
  1086. case *map[int]int:
  1087. fastpathTV.EncMapIntIntV(*v, e)
  1088. case map[int]int8:
  1089. fastpathTV.EncMapIntInt8V(v, e)
  1090. case *map[int]int8:
  1091. fastpathTV.EncMapIntInt8V(*v, e)
  1092. case map[int]int16:
  1093. fastpathTV.EncMapIntInt16V(v, e)
  1094. case *map[int]int16:
  1095. fastpathTV.EncMapIntInt16V(*v, e)
  1096. case map[int]int32:
  1097. fastpathTV.EncMapIntInt32V(v, e)
  1098. case *map[int]int32:
  1099. fastpathTV.EncMapIntInt32V(*v, e)
  1100. case map[int]int64:
  1101. fastpathTV.EncMapIntInt64V(v, e)
  1102. case *map[int]int64:
  1103. fastpathTV.EncMapIntInt64V(*v, e)
  1104. case map[int]float32:
  1105. fastpathTV.EncMapIntFloat32V(v, e)
  1106. case *map[int]float32:
  1107. fastpathTV.EncMapIntFloat32V(*v, e)
  1108. case map[int]float64:
  1109. fastpathTV.EncMapIntFloat64V(v, e)
  1110. case *map[int]float64:
  1111. fastpathTV.EncMapIntFloat64V(*v, e)
  1112. case map[int]bool:
  1113. fastpathTV.EncMapIntBoolV(v, e)
  1114. case *map[int]bool:
  1115. fastpathTV.EncMapIntBoolV(*v, e)
  1116. case map[int8]interface{}:
  1117. fastpathTV.EncMapInt8IntfV(v, e)
  1118. case *map[int8]interface{}:
  1119. fastpathTV.EncMapInt8IntfV(*v, e)
  1120. case map[int8]string:
  1121. fastpathTV.EncMapInt8StringV(v, e)
  1122. case *map[int8]string:
  1123. fastpathTV.EncMapInt8StringV(*v, e)
  1124. case map[int8]uint:
  1125. fastpathTV.EncMapInt8UintV(v, e)
  1126. case *map[int8]uint:
  1127. fastpathTV.EncMapInt8UintV(*v, e)
  1128. case map[int8]uint8:
  1129. fastpathTV.EncMapInt8Uint8V(v, e)
  1130. case *map[int8]uint8:
  1131. fastpathTV.EncMapInt8Uint8V(*v, e)
  1132. case map[int8]uint16:
  1133. fastpathTV.EncMapInt8Uint16V(v, e)
  1134. case *map[int8]uint16:
  1135. fastpathTV.EncMapInt8Uint16V(*v, e)
  1136. case map[int8]uint32:
  1137. fastpathTV.EncMapInt8Uint32V(v, e)
  1138. case *map[int8]uint32:
  1139. fastpathTV.EncMapInt8Uint32V(*v, e)
  1140. case map[int8]uint64:
  1141. fastpathTV.EncMapInt8Uint64V(v, e)
  1142. case *map[int8]uint64:
  1143. fastpathTV.EncMapInt8Uint64V(*v, e)
  1144. case map[int8]uintptr:
  1145. fastpathTV.EncMapInt8UintptrV(v, e)
  1146. case *map[int8]uintptr:
  1147. fastpathTV.EncMapInt8UintptrV(*v, e)
  1148. case map[int8]int:
  1149. fastpathTV.EncMapInt8IntV(v, e)
  1150. case *map[int8]int:
  1151. fastpathTV.EncMapInt8IntV(*v, e)
  1152. case map[int8]int8:
  1153. fastpathTV.EncMapInt8Int8V(v, e)
  1154. case *map[int8]int8:
  1155. fastpathTV.EncMapInt8Int8V(*v, e)
  1156. case map[int8]int16:
  1157. fastpathTV.EncMapInt8Int16V(v, e)
  1158. case *map[int8]int16:
  1159. fastpathTV.EncMapInt8Int16V(*v, e)
  1160. case map[int8]int32:
  1161. fastpathTV.EncMapInt8Int32V(v, e)
  1162. case *map[int8]int32:
  1163. fastpathTV.EncMapInt8Int32V(*v, e)
  1164. case map[int8]int64:
  1165. fastpathTV.EncMapInt8Int64V(v, e)
  1166. case *map[int8]int64:
  1167. fastpathTV.EncMapInt8Int64V(*v, e)
  1168. case map[int8]float32:
  1169. fastpathTV.EncMapInt8Float32V(v, e)
  1170. case *map[int8]float32:
  1171. fastpathTV.EncMapInt8Float32V(*v, e)
  1172. case map[int8]float64:
  1173. fastpathTV.EncMapInt8Float64V(v, e)
  1174. case *map[int8]float64:
  1175. fastpathTV.EncMapInt8Float64V(*v, e)
  1176. case map[int8]bool:
  1177. fastpathTV.EncMapInt8BoolV(v, e)
  1178. case *map[int8]bool:
  1179. fastpathTV.EncMapInt8BoolV(*v, e)
  1180. case map[int16]interface{}:
  1181. fastpathTV.EncMapInt16IntfV(v, e)
  1182. case *map[int16]interface{}:
  1183. fastpathTV.EncMapInt16IntfV(*v, e)
  1184. case map[int16]string:
  1185. fastpathTV.EncMapInt16StringV(v, e)
  1186. case *map[int16]string:
  1187. fastpathTV.EncMapInt16StringV(*v, e)
  1188. case map[int16]uint:
  1189. fastpathTV.EncMapInt16UintV(v, e)
  1190. case *map[int16]uint:
  1191. fastpathTV.EncMapInt16UintV(*v, e)
  1192. case map[int16]uint8:
  1193. fastpathTV.EncMapInt16Uint8V(v, e)
  1194. case *map[int16]uint8:
  1195. fastpathTV.EncMapInt16Uint8V(*v, e)
  1196. case map[int16]uint16:
  1197. fastpathTV.EncMapInt16Uint16V(v, e)
  1198. case *map[int16]uint16:
  1199. fastpathTV.EncMapInt16Uint16V(*v, e)
  1200. case map[int16]uint32:
  1201. fastpathTV.EncMapInt16Uint32V(v, e)
  1202. case *map[int16]uint32:
  1203. fastpathTV.EncMapInt16Uint32V(*v, e)
  1204. case map[int16]uint64:
  1205. fastpathTV.EncMapInt16Uint64V(v, e)
  1206. case *map[int16]uint64:
  1207. fastpathTV.EncMapInt16Uint64V(*v, e)
  1208. case map[int16]uintptr:
  1209. fastpathTV.EncMapInt16UintptrV(v, e)
  1210. case *map[int16]uintptr:
  1211. fastpathTV.EncMapInt16UintptrV(*v, e)
  1212. case map[int16]int:
  1213. fastpathTV.EncMapInt16IntV(v, e)
  1214. case *map[int16]int:
  1215. fastpathTV.EncMapInt16IntV(*v, e)
  1216. case map[int16]int8:
  1217. fastpathTV.EncMapInt16Int8V(v, e)
  1218. case *map[int16]int8:
  1219. fastpathTV.EncMapInt16Int8V(*v, e)
  1220. case map[int16]int16:
  1221. fastpathTV.EncMapInt16Int16V(v, e)
  1222. case *map[int16]int16:
  1223. fastpathTV.EncMapInt16Int16V(*v, e)
  1224. case map[int16]int32:
  1225. fastpathTV.EncMapInt16Int32V(v, e)
  1226. case *map[int16]int32:
  1227. fastpathTV.EncMapInt16Int32V(*v, e)
  1228. case map[int16]int64:
  1229. fastpathTV.EncMapInt16Int64V(v, e)
  1230. case *map[int16]int64:
  1231. fastpathTV.EncMapInt16Int64V(*v, e)
  1232. case map[int16]float32:
  1233. fastpathTV.EncMapInt16Float32V(v, e)
  1234. case *map[int16]float32:
  1235. fastpathTV.EncMapInt16Float32V(*v, e)
  1236. case map[int16]float64:
  1237. fastpathTV.EncMapInt16Float64V(v, e)
  1238. case *map[int16]float64:
  1239. fastpathTV.EncMapInt16Float64V(*v, e)
  1240. case map[int16]bool:
  1241. fastpathTV.EncMapInt16BoolV(v, e)
  1242. case *map[int16]bool:
  1243. fastpathTV.EncMapInt16BoolV(*v, e)
  1244. case map[int32]interface{}:
  1245. fastpathTV.EncMapInt32IntfV(v, e)
  1246. case *map[int32]interface{}:
  1247. fastpathTV.EncMapInt32IntfV(*v, e)
  1248. case map[int32]string:
  1249. fastpathTV.EncMapInt32StringV(v, e)
  1250. case *map[int32]string:
  1251. fastpathTV.EncMapInt32StringV(*v, e)
  1252. case map[int32]uint:
  1253. fastpathTV.EncMapInt32UintV(v, e)
  1254. case *map[int32]uint:
  1255. fastpathTV.EncMapInt32UintV(*v, e)
  1256. case map[int32]uint8:
  1257. fastpathTV.EncMapInt32Uint8V(v, e)
  1258. case *map[int32]uint8:
  1259. fastpathTV.EncMapInt32Uint8V(*v, e)
  1260. case map[int32]uint16:
  1261. fastpathTV.EncMapInt32Uint16V(v, e)
  1262. case *map[int32]uint16:
  1263. fastpathTV.EncMapInt32Uint16V(*v, e)
  1264. case map[int32]uint32:
  1265. fastpathTV.EncMapInt32Uint32V(v, e)
  1266. case *map[int32]uint32:
  1267. fastpathTV.EncMapInt32Uint32V(*v, e)
  1268. case map[int32]uint64:
  1269. fastpathTV.EncMapInt32Uint64V(v, e)
  1270. case *map[int32]uint64:
  1271. fastpathTV.EncMapInt32Uint64V(*v, e)
  1272. case map[int32]uintptr:
  1273. fastpathTV.EncMapInt32UintptrV(v, e)
  1274. case *map[int32]uintptr:
  1275. fastpathTV.EncMapInt32UintptrV(*v, e)
  1276. case map[int32]int:
  1277. fastpathTV.EncMapInt32IntV(v, e)
  1278. case *map[int32]int:
  1279. fastpathTV.EncMapInt32IntV(*v, e)
  1280. case map[int32]int8:
  1281. fastpathTV.EncMapInt32Int8V(v, e)
  1282. case *map[int32]int8:
  1283. fastpathTV.EncMapInt32Int8V(*v, e)
  1284. case map[int32]int16:
  1285. fastpathTV.EncMapInt32Int16V(v, e)
  1286. case *map[int32]int16:
  1287. fastpathTV.EncMapInt32Int16V(*v, e)
  1288. case map[int32]int32:
  1289. fastpathTV.EncMapInt32Int32V(v, e)
  1290. case *map[int32]int32:
  1291. fastpathTV.EncMapInt32Int32V(*v, e)
  1292. case map[int32]int64:
  1293. fastpathTV.EncMapInt32Int64V(v, e)
  1294. case *map[int32]int64:
  1295. fastpathTV.EncMapInt32Int64V(*v, e)
  1296. case map[int32]float32:
  1297. fastpathTV.EncMapInt32Float32V(v, e)
  1298. case *map[int32]float32:
  1299. fastpathTV.EncMapInt32Float32V(*v, e)
  1300. case map[int32]float64:
  1301. fastpathTV.EncMapInt32Float64V(v, e)
  1302. case *map[int32]float64:
  1303. fastpathTV.EncMapInt32Float64V(*v, e)
  1304. case map[int32]bool:
  1305. fastpathTV.EncMapInt32BoolV(v, e)
  1306. case *map[int32]bool:
  1307. fastpathTV.EncMapInt32BoolV(*v, e)
  1308. case map[int64]interface{}:
  1309. fastpathTV.EncMapInt64IntfV(v, e)
  1310. case *map[int64]interface{}:
  1311. fastpathTV.EncMapInt64IntfV(*v, e)
  1312. case map[int64]string:
  1313. fastpathTV.EncMapInt64StringV(v, e)
  1314. case *map[int64]string:
  1315. fastpathTV.EncMapInt64StringV(*v, e)
  1316. case map[int64]uint:
  1317. fastpathTV.EncMapInt64UintV(v, e)
  1318. case *map[int64]uint:
  1319. fastpathTV.EncMapInt64UintV(*v, e)
  1320. case map[int64]uint8:
  1321. fastpathTV.EncMapInt64Uint8V(v, e)
  1322. case *map[int64]uint8:
  1323. fastpathTV.EncMapInt64Uint8V(*v, e)
  1324. case map[int64]uint16:
  1325. fastpathTV.EncMapInt64Uint16V(v, e)
  1326. case *map[int64]uint16:
  1327. fastpathTV.EncMapInt64Uint16V(*v, e)
  1328. case map[int64]uint32:
  1329. fastpathTV.EncMapInt64Uint32V(v, e)
  1330. case *map[int64]uint32:
  1331. fastpathTV.EncMapInt64Uint32V(*v, e)
  1332. case map[int64]uint64:
  1333. fastpathTV.EncMapInt64Uint64V(v, e)
  1334. case *map[int64]uint64:
  1335. fastpathTV.EncMapInt64Uint64V(*v, e)
  1336. case map[int64]uintptr:
  1337. fastpathTV.EncMapInt64UintptrV(v, e)
  1338. case *map[int64]uintptr:
  1339. fastpathTV.EncMapInt64UintptrV(*v, e)
  1340. case map[int64]int:
  1341. fastpathTV.EncMapInt64IntV(v, e)
  1342. case *map[int64]int:
  1343. fastpathTV.EncMapInt64IntV(*v, e)
  1344. case map[int64]int8:
  1345. fastpathTV.EncMapInt64Int8V(v, e)
  1346. case *map[int64]int8:
  1347. fastpathTV.EncMapInt64Int8V(*v, e)
  1348. case map[int64]int16:
  1349. fastpathTV.EncMapInt64Int16V(v, e)
  1350. case *map[int64]int16:
  1351. fastpathTV.EncMapInt64Int16V(*v, e)
  1352. case map[int64]int32:
  1353. fastpathTV.EncMapInt64Int32V(v, e)
  1354. case *map[int64]int32:
  1355. fastpathTV.EncMapInt64Int32V(*v, e)
  1356. case map[int64]int64:
  1357. fastpathTV.EncMapInt64Int64V(v, e)
  1358. case *map[int64]int64:
  1359. fastpathTV.EncMapInt64Int64V(*v, e)
  1360. case map[int64]float32:
  1361. fastpathTV.EncMapInt64Float32V(v, e)
  1362. case *map[int64]float32:
  1363. fastpathTV.EncMapInt64Float32V(*v, e)
  1364. case map[int64]float64:
  1365. fastpathTV.EncMapInt64Float64V(v, e)
  1366. case *map[int64]float64:
  1367. fastpathTV.EncMapInt64Float64V(*v, e)
  1368. case map[int64]bool:
  1369. fastpathTV.EncMapInt64BoolV(v, e)
  1370. case *map[int64]bool:
  1371. fastpathTV.EncMapInt64BoolV(*v, e)
  1372. case map[bool]interface{}:
  1373. fastpathTV.EncMapBoolIntfV(v, e)
  1374. case *map[bool]interface{}:
  1375. fastpathTV.EncMapBoolIntfV(*v, e)
  1376. case map[bool]string:
  1377. fastpathTV.EncMapBoolStringV(v, e)
  1378. case *map[bool]string:
  1379. fastpathTV.EncMapBoolStringV(*v, e)
  1380. case map[bool]uint:
  1381. fastpathTV.EncMapBoolUintV(v, e)
  1382. case *map[bool]uint:
  1383. fastpathTV.EncMapBoolUintV(*v, e)
  1384. case map[bool]uint8:
  1385. fastpathTV.EncMapBoolUint8V(v, e)
  1386. case *map[bool]uint8:
  1387. fastpathTV.EncMapBoolUint8V(*v, e)
  1388. case map[bool]uint16:
  1389. fastpathTV.EncMapBoolUint16V(v, e)
  1390. case *map[bool]uint16:
  1391. fastpathTV.EncMapBoolUint16V(*v, e)
  1392. case map[bool]uint32:
  1393. fastpathTV.EncMapBoolUint32V(v, e)
  1394. case *map[bool]uint32:
  1395. fastpathTV.EncMapBoolUint32V(*v, e)
  1396. case map[bool]uint64:
  1397. fastpathTV.EncMapBoolUint64V(v, e)
  1398. case *map[bool]uint64:
  1399. fastpathTV.EncMapBoolUint64V(*v, e)
  1400. case map[bool]uintptr:
  1401. fastpathTV.EncMapBoolUintptrV(v, e)
  1402. case *map[bool]uintptr:
  1403. fastpathTV.EncMapBoolUintptrV(*v, e)
  1404. case map[bool]int:
  1405. fastpathTV.EncMapBoolIntV(v, e)
  1406. case *map[bool]int:
  1407. fastpathTV.EncMapBoolIntV(*v, e)
  1408. case map[bool]int8:
  1409. fastpathTV.EncMapBoolInt8V(v, e)
  1410. case *map[bool]int8:
  1411. fastpathTV.EncMapBoolInt8V(*v, e)
  1412. case map[bool]int16:
  1413. fastpathTV.EncMapBoolInt16V(v, e)
  1414. case *map[bool]int16:
  1415. fastpathTV.EncMapBoolInt16V(*v, e)
  1416. case map[bool]int32:
  1417. fastpathTV.EncMapBoolInt32V(v, e)
  1418. case *map[bool]int32:
  1419. fastpathTV.EncMapBoolInt32V(*v, e)
  1420. case map[bool]int64:
  1421. fastpathTV.EncMapBoolInt64V(v, e)
  1422. case *map[bool]int64:
  1423. fastpathTV.EncMapBoolInt64V(*v, e)
  1424. case map[bool]float32:
  1425. fastpathTV.EncMapBoolFloat32V(v, e)
  1426. case *map[bool]float32:
  1427. fastpathTV.EncMapBoolFloat32V(*v, e)
  1428. case map[bool]float64:
  1429. fastpathTV.EncMapBoolFloat64V(v, e)
  1430. case *map[bool]float64:
  1431. fastpathTV.EncMapBoolFloat64V(*v, e)
  1432. case map[bool]bool:
  1433. fastpathTV.EncMapBoolBoolV(v, e)
  1434. case *map[bool]bool:
  1435. fastpathTV.EncMapBoolBoolV(*v, e)
  1436. default:
  1437. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  1438. return false
  1439. }
  1440. return true
  1441. }
  1442. // -- -- fast path functions
  1443. func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  1444. if f.ti.mbs {
  1445. fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
  1446. } else {
  1447. fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
  1448. }
  1449. }
  1450. func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
  1451. if v == nil {
  1452. e.e.EncodeNil()
  1453. return
  1454. }
  1455. ee, esep := e.e, e.hh.hasElemSeparators()
  1456. ee.WriteArrayStart(len(v))
  1457. if esep {
  1458. for _, v2 := range v {
  1459. ee.WriteArrayElem()
  1460. e.encode(v2)
  1461. }
  1462. } else {
  1463. for _, v2 := range v {
  1464. e.encode(v2)
  1465. }
  1466. }
  1467. ee.WriteArrayEnd()
  1468. }
  1469. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  1470. ee, esep := e.e, e.hh.hasElemSeparators()
  1471. if len(v)%2 == 1 {
  1472. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1473. return
  1474. }
  1475. ee.WriteMapStart(len(v) / 2)
  1476. if esep {
  1477. for j, v2 := range v {
  1478. if j%2 == 0 {
  1479. ee.WriteMapElemKey()
  1480. } else {
  1481. ee.WriteMapElemValue()
  1482. }
  1483. e.encode(v2)
  1484. }
  1485. } else {
  1486. for _, v2 := range v {
  1487. e.encode(v2)
  1488. }
  1489. }
  1490. ee.WriteMapEnd()
  1491. }
  1492. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  1493. if f.ti.mbs {
  1494. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  1495. } else {
  1496. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  1497. }
  1498. }
  1499. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  1500. if v == nil {
  1501. e.e.EncodeNil()
  1502. return
  1503. }
  1504. ee, esep := e.e, e.hh.hasElemSeparators()
  1505. ee.WriteArrayStart(len(v))
  1506. if esep {
  1507. for _, v2 := range v {
  1508. ee.WriteArrayElem()
  1509. ee.EncodeString(cUTF8, v2)
  1510. }
  1511. } else {
  1512. for _, v2 := range v {
  1513. ee.EncodeString(cUTF8, v2)
  1514. }
  1515. }
  1516. ee.WriteArrayEnd()
  1517. }
  1518. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  1519. ee, esep := e.e, e.hh.hasElemSeparators()
  1520. if len(v)%2 == 1 {
  1521. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1522. return
  1523. }
  1524. ee.WriteMapStart(len(v) / 2)
  1525. if esep {
  1526. for j, v2 := range v {
  1527. if j%2 == 0 {
  1528. ee.WriteMapElemKey()
  1529. } else {
  1530. ee.WriteMapElemValue()
  1531. }
  1532. ee.EncodeString(cUTF8, v2)
  1533. }
  1534. } else {
  1535. for _, v2 := range v {
  1536. ee.EncodeString(cUTF8, v2)
  1537. }
  1538. }
  1539. ee.WriteMapEnd()
  1540. }
  1541. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  1542. if f.ti.mbs {
  1543. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  1544. } else {
  1545. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  1546. }
  1547. }
  1548. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  1549. if v == nil {
  1550. e.e.EncodeNil()
  1551. return
  1552. }
  1553. ee, esep := e.e, e.hh.hasElemSeparators()
  1554. ee.WriteArrayStart(len(v))
  1555. if esep {
  1556. for _, v2 := range v {
  1557. ee.WriteArrayElem()
  1558. ee.EncodeFloat32(v2)
  1559. }
  1560. } else {
  1561. for _, v2 := range v {
  1562. ee.EncodeFloat32(v2)
  1563. }
  1564. }
  1565. ee.WriteArrayEnd()
  1566. }
  1567. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  1568. ee, esep := e.e, e.hh.hasElemSeparators()
  1569. if len(v)%2 == 1 {
  1570. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1571. return
  1572. }
  1573. ee.WriteMapStart(len(v) / 2)
  1574. if esep {
  1575. for j, v2 := range v {
  1576. if j%2 == 0 {
  1577. ee.WriteMapElemKey()
  1578. } else {
  1579. ee.WriteMapElemValue()
  1580. }
  1581. ee.EncodeFloat32(v2)
  1582. }
  1583. } else {
  1584. for _, v2 := range v {
  1585. ee.EncodeFloat32(v2)
  1586. }
  1587. }
  1588. ee.WriteMapEnd()
  1589. }
  1590. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  1591. if f.ti.mbs {
  1592. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  1593. } else {
  1594. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  1595. }
  1596. }
  1597. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  1598. if v == nil {
  1599. e.e.EncodeNil()
  1600. return
  1601. }
  1602. ee, esep := e.e, e.hh.hasElemSeparators()
  1603. ee.WriteArrayStart(len(v))
  1604. if esep {
  1605. for _, v2 := range v {
  1606. ee.WriteArrayElem()
  1607. ee.EncodeFloat64(v2)
  1608. }
  1609. } else {
  1610. for _, v2 := range v {
  1611. ee.EncodeFloat64(v2)
  1612. }
  1613. }
  1614. ee.WriteArrayEnd()
  1615. }
  1616. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  1617. ee, esep := e.e, e.hh.hasElemSeparators()
  1618. if len(v)%2 == 1 {
  1619. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1620. return
  1621. }
  1622. ee.WriteMapStart(len(v) / 2)
  1623. if esep {
  1624. for j, v2 := range v {
  1625. if j%2 == 0 {
  1626. ee.WriteMapElemKey()
  1627. } else {
  1628. ee.WriteMapElemValue()
  1629. }
  1630. ee.EncodeFloat64(v2)
  1631. }
  1632. } else {
  1633. for _, v2 := range v {
  1634. ee.EncodeFloat64(v2)
  1635. }
  1636. }
  1637. ee.WriteMapEnd()
  1638. }
  1639. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  1640. if f.ti.mbs {
  1641. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  1642. } else {
  1643. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  1644. }
  1645. }
  1646. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  1647. if v == nil {
  1648. e.e.EncodeNil()
  1649. return
  1650. }
  1651. ee, esep := e.e, e.hh.hasElemSeparators()
  1652. ee.WriteArrayStart(len(v))
  1653. if esep {
  1654. for _, v2 := range v {
  1655. ee.WriteArrayElem()
  1656. ee.EncodeUint(uint64(v2))
  1657. }
  1658. } else {
  1659. for _, v2 := range v {
  1660. ee.EncodeUint(uint64(v2))
  1661. }
  1662. }
  1663. ee.WriteArrayEnd()
  1664. }
  1665. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  1666. ee, esep := e.e, e.hh.hasElemSeparators()
  1667. if len(v)%2 == 1 {
  1668. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1669. return
  1670. }
  1671. ee.WriteMapStart(len(v) / 2)
  1672. if esep {
  1673. for j, v2 := range v {
  1674. if j%2 == 0 {
  1675. ee.WriteMapElemKey()
  1676. } else {
  1677. ee.WriteMapElemValue()
  1678. }
  1679. ee.EncodeUint(uint64(v2))
  1680. }
  1681. } else {
  1682. for _, v2 := range v {
  1683. ee.EncodeUint(uint64(v2))
  1684. }
  1685. }
  1686. ee.WriteMapEnd()
  1687. }
  1688. func (e *Encoder) fastpathEncSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  1689. if f.ti.mbs {
  1690. fastpathTV.EncAsMapSliceUint8V(rv2i(rv).([]uint8), e)
  1691. } else {
  1692. fastpathTV.EncSliceUint8V(rv2i(rv).([]uint8), e)
  1693. }
  1694. }
  1695. func (_ fastpathT) EncSliceUint8V(v []uint8, e *Encoder) {
  1696. if v == nil {
  1697. e.e.EncodeNil()
  1698. return
  1699. }
  1700. ee, esep := e.e, e.hh.hasElemSeparators()
  1701. ee.WriteArrayStart(len(v))
  1702. if esep {
  1703. for _, v2 := range v {
  1704. ee.WriteArrayElem()
  1705. ee.EncodeUint(uint64(v2))
  1706. }
  1707. } else {
  1708. for _, v2 := range v {
  1709. ee.EncodeUint(uint64(v2))
  1710. }
  1711. }
  1712. ee.WriteArrayEnd()
  1713. }
  1714. func (_ fastpathT) EncAsMapSliceUint8V(v []uint8, e *Encoder) {
  1715. ee, esep := e.e, e.hh.hasElemSeparators()
  1716. if len(v)%2 == 1 {
  1717. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1718. return
  1719. }
  1720. ee.WriteMapStart(len(v) / 2)
  1721. if esep {
  1722. for j, v2 := range v {
  1723. if j%2 == 0 {
  1724. ee.WriteMapElemKey()
  1725. } else {
  1726. ee.WriteMapElemValue()
  1727. }
  1728. ee.EncodeUint(uint64(v2))
  1729. }
  1730. } else {
  1731. for _, v2 := range v {
  1732. ee.EncodeUint(uint64(v2))
  1733. }
  1734. }
  1735. ee.WriteMapEnd()
  1736. }
  1737. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  1738. if f.ti.mbs {
  1739. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  1740. } else {
  1741. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  1742. }
  1743. }
  1744. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  1745. if v == nil {
  1746. e.e.EncodeNil()
  1747. return
  1748. }
  1749. ee, esep := e.e, e.hh.hasElemSeparators()
  1750. ee.WriteArrayStart(len(v))
  1751. if esep {
  1752. for _, v2 := range v {
  1753. ee.WriteArrayElem()
  1754. ee.EncodeUint(uint64(v2))
  1755. }
  1756. } else {
  1757. for _, v2 := range v {
  1758. ee.EncodeUint(uint64(v2))
  1759. }
  1760. }
  1761. ee.WriteArrayEnd()
  1762. }
  1763. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  1764. ee, esep := e.e, e.hh.hasElemSeparators()
  1765. if len(v)%2 == 1 {
  1766. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1767. return
  1768. }
  1769. ee.WriteMapStart(len(v) / 2)
  1770. if esep {
  1771. for j, v2 := range v {
  1772. if j%2 == 0 {
  1773. ee.WriteMapElemKey()
  1774. } else {
  1775. ee.WriteMapElemValue()
  1776. }
  1777. ee.EncodeUint(uint64(v2))
  1778. }
  1779. } else {
  1780. for _, v2 := range v {
  1781. ee.EncodeUint(uint64(v2))
  1782. }
  1783. }
  1784. ee.WriteMapEnd()
  1785. }
  1786. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  1787. if f.ti.mbs {
  1788. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  1789. } else {
  1790. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  1791. }
  1792. }
  1793. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  1794. if v == nil {
  1795. e.e.EncodeNil()
  1796. return
  1797. }
  1798. ee, esep := e.e, e.hh.hasElemSeparators()
  1799. ee.WriteArrayStart(len(v))
  1800. if esep {
  1801. for _, v2 := range v {
  1802. ee.WriteArrayElem()
  1803. ee.EncodeUint(uint64(v2))
  1804. }
  1805. } else {
  1806. for _, v2 := range v {
  1807. ee.EncodeUint(uint64(v2))
  1808. }
  1809. }
  1810. ee.WriteArrayEnd()
  1811. }
  1812. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
  1813. ee, esep := e.e, e.hh.hasElemSeparators()
  1814. if len(v)%2 == 1 {
  1815. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1816. return
  1817. }
  1818. ee.WriteMapStart(len(v) / 2)
  1819. if esep {
  1820. for j, v2 := range v {
  1821. if j%2 == 0 {
  1822. ee.WriteMapElemKey()
  1823. } else {
  1824. ee.WriteMapElemValue()
  1825. }
  1826. ee.EncodeUint(uint64(v2))
  1827. }
  1828. } else {
  1829. for _, v2 := range v {
  1830. ee.EncodeUint(uint64(v2))
  1831. }
  1832. }
  1833. ee.WriteMapEnd()
  1834. }
  1835. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  1836. if f.ti.mbs {
  1837. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  1838. } else {
  1839. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  1840. }
  1841. }
  1842. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  1843. if v == nil {
  1844. e.e.EncodeNil()
  1845. return
  1846. }
  1847. ee, esep := e.e, e.hh.hasElemSeparators()
  1848. ee.WriteArrayStart(len(v))
  1849. if esep {
  1850. for _, v2 := range v {
  1851. ee.WriteArrayElem()
  1852. ee.EncodeUint(uint64(v2))
  1853. }
  1854. } else {
  1855. for _, v2 := range v {
  1856. ee.EncodeUint(uint64(v2))
  1857. }
  1858. }
  1859. ee.WriteArrayEnd()
  1860. }
  1861. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  1862. ee, esep := e.e, e.hh.hasElemSeparators()
  1863. if len(v)%2 == 1 {
  1864. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1865. return
  1866. }
  1867. ee.WriteMapStart(len(v) / 2)
  1868. if esep {
  1869. for j, v2 := range v {
  1870. if j%2 == 0 {
  1871. ee.WriteMapElemKey()
  1872. } else {
  1873. ee.WriteMapElemValue()
  1874. }
  1875. ee.EncodeUint(uint64(v2))
  1876. }
  1877. } else {
  1878. for _, v2 := range v {
  1879. ee.EncodeUint(uint64(v2))
  1880. }
  1881. }
  1882. ee.WriteMapEnd()
  1883. }
  1884. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  1885. if f.ti.mbs {
  1886. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  1887. } else {
  1888. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  1889. }
  1890. }
  1891. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  1892. if v == nil {
  1893. e.e.EncodeNil()
  1894. return
  1895. }
  1896. ee, esep := e.e, e.hh.hasElemSeparators()
  1897. ee.WriteArrayStart(len(v))
  1898. if esep {
  1899. for _, v2 := range v {
  1900. ee.WriteArrayElem()
  1901. e.encode(v2)
  1902. }
  1903. } else {
  1904. for _, v2 := range v {
  1905. e.encode(v2)
  1906. }
  1907. }
  1908. ee.WriteArrayEnd()
  1909. }
  1910. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  1911. ee, esep := e.e, e.hh.hasElemSeparators()
  1912. if len(v)%2 == 1 {
  1913. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1914. return
  1915. }
  1916. ee.WriteMapStart(len(v) / 2)
  1917. if esep {
  1918. for j, v2 := range v {
  1919. if j%2 == 0 {
  1920. ee.WriteMapElemKey()
  1921. } else {
  1922. ee.WriteMapElemValue()
  1923. }
  1924. e.encode(v2)
  1925. }
  1926. } else {
  1927. for _, v2 := range v {
  1928. e.encode(v2)
  1929. }
  1930. }
  1931. ee.WriteMapEnd()
  1932. }
  1933. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  1934. if f.ti.mbs {
  1935. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  1936. } else {
  1937. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  1938. }
  1939. }
  1940. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  1941. if v == nil {
  1942. e.e.EncodeNil()
  1943. return
  1944. }
  1945. ee, esep := e.e, e.hh.hasElemSeparators()
  1946. ee.WriteArrayStart(len(v))
  1947. if esep {
  1948. for _, v2 := range v {
  1949. ee.WriteArrayElem()
  1950. ee.EncodeInt(int64(v2))
  1951. }
  1952. } else {
  1953. for _, v2 := range v {
  1954. ee.EncodeInt(int64(v2))
  1955. }
  1956. }
  1957. ee.WriteArrayEnd()
  1958. }
  1959. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  1960. ee, esep := e.e, e.hh.hasElemSeparators()
  1961. if len(v)%2 == 1 {
  1962. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1963. return
  1964. }
  1965. ee.WriteMapStart(len(v) / 2)
  1966. if esep {
  1967. for j, v2 := range v {
  1968. if j%2 == 0 {
  1969. ee.WriteMapElemKey()
  1970. } else {
  1971. ee.WriteMapElemValue()
  1972. }
  1973. ee.EncodeInt(int64(v2))
  1974. }
  1975. } else {
  1976. for _, v2 := range v {
  1977. ee.EncodeInt(int64(v2))
  1978. }
  1979. }
  1980. ee.WriteMapEnd()
  1981. }
  1982. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  1983. if f.ti.mbs {
  1984. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  1985. } else {
  1986. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  1987. }
  1988. }
  1989. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  1990. if v == nil {
  1991. e.e.EncodeNil()
  1992. return
  1993. }
  1994. ee, esep := e.e, e.hh.hasElemSeparators()
  1995. ee.WriteArrayStart(len(v))
  1996. if esep {
  1997. for _, v2 := range v {
  1998. ee.WriteArrayElem()
  1999. ee.EncodeInt(int64(v2))
  2000. }
  2001. } else {
  2002. for _, v2 := range v {
  2003. ee.EncodeInt(int64(v2))
  2004. }
  2005. }
  2006. ee.WriteArrayEnd()
  2007. }
  2008. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  2009. ee, esep := e.e, e.hh.hasElemSeparators()
  2010. if len(v)%2 == 1 {
  2011. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2012. return
  2013. }
  2014. ee.WriteMapStart(len(v) / 2)
  2015. if esep {
  2016. for j, v2 := range v {
  2017. if j%2 == 0 {
  2018. ee.WriteMapElemKey()
  2019. } else {
  2020. ee.WriteMapElemValue()
  2021. }
  2022. ee.EncodeInt(int64(v2))
  2023. }
  2024. } else {
  2025. for _, v2 := range v {
  2026. ee.EncodeInt(int64(v2))
  2027. }
  2028. }
  2029. ee.WriteMapEnd()
  2030. }
  2031. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  2032. if f.ti.mbs {
  2033. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  2034. } else {
  2035. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  2036. }
  2037. }
  2038. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  2039. if v == nil {
  2040. e.e.EncodeNil()
  2041. return
  2042. }
  2043. ee, esep := e.e, e.hh.hasElemSeparators()
  2044. ee.WriteArrayStart(len(v))
  2045. if esep {
  2046. for _, v2 := range v {
  2047. ee.WriteArrayElem()
  2048. ee.EncodeInt(int64(v2))
  2049. }
  2050. } else {
  2051. for _, v2 := range v {
  2052. ee.EncodeInt(int64(v2))
  2053. }
  2054. }
  2055. ee.WriteArrayEnd()
  2056. }
  2057. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
  2058. ee, esep := e.e, e.hh.hasElemSeparators()
  2059. if len(v)%2 == 1 {
  2060. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2061. return
  2062. }
  2063. ee.WriteMapStart(len(v) / 2)
  2064. if esep {
  2065. for j, v2 := range v {
  2066. if j%2 == 0 {
  2067. ee.WriteMapElemKey()
  2068. } else {
  2069. ee.WriteMapElemValue()
  2070. }
  2071. ee.EncodeInt(int64(v2))
  2072. }
  2073. } else {
  2074. for _, v2 := range v {
  2075. ee.EncodeInt(int64(v2))
  2076. }
  2077. }
  2078. ee.WriteMapEnd()
  2079. }
  2080. func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  2081. if f.ti.mbs {
  2082. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  2083. } else {
  2084. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  2085. }
  2086. }
  2087. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  2088. if v == nil {
  2089. e.e.EncodeNil()
  2090. return
  2091. }
  2092. ee, esep := e.e, e.hh.hasElemSeparators()
  2093. ee.WriteArrayStart(len(v))
  2094. if esep {
  2095. for _, v2 := range v {
  2096. ee.WriteArrayElem()
  2097. ee.EncodeInt(int64(v2))
  2098. }
  2099. } else {
  2100. for _, v2 := range v {
  2101. ee.EncodeInt(int64(v2))
  2102. }
  2103. }
  2104. ee.WriteArrayEnd()
  2105. }
  2106. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  2107. ee, esep := e.e, e.hh.hasElemSeparators()
  2108. if len(v)%2 == 1 {
  2109. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2110. return
  2111. }
  2112. ee.WriteMapStart(len(v) / 2)
  2113. if esep {
  2114. for j, v2 := range v {
  2115. if j%2 == 0 {
  2116. ee.WriteMapElemKey()
  2117. } else {
  2118. ee.WriteMapElemValue()
  2119. }
  2120. ee.EncodeInt(int64(v2))
  2121. }
  2122. } else {
  2123. for _, v2 := range v {
  2124. ee.EncodeInt(int64(v2))
  2125. }
  2126. }
  2127. ee.WriteMapEnd()
  2128. }
  2129. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  2130. if f.ti.mbs {
  2131. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  2132. } else {
  2133. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  2134. }
  2135. }
  2136. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  2137. if v == nil {
  2138. e.e.EncodeNil()
  2139. return
  2140. }
  2141. ee, esep := e.e, e.hh.hasElemSeparators()
  2142. ee.WriteArrayStart(len(v))
  2143. if esep {
  2144. for _, v2 := range v {
  2145. ee.WriteArrayElem()
  2146. ee.EncodeInt(int64(v2))
  2147. }
  2148. } else {
  2149. for _, v2 := range v {
  2150. ee.EncodeInt(int64(v2))
  2151. }
  2152. }
  2153. ee.WriteArrayEnd()
  2154. }
  2155. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  2156. ee, esep := e.e, e.hh.hasElemSeparators()
  2157. if len(v)%2 == 1 {
  2158. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2159. return
  2160. }
  2161. ee.WriteMapStart(len(v) / 2)
  2162. if esep {
  2163. for j, v2 := range v {
  2164. if j%2 == 0 {
  2165. ee.WriteMapElemKey()
  2166. } else {
  2167. ee.WriteMapElemValue()
  2168. }
  2169. ee.EncodeInt(int64(v2))
  2170. }
  2171. } else {
  2172. for _, v2 := range v {
  2173. ee.EncodeInt(int64(v2))
  2174. }
  2175. }
  2176. ee.WriteMapEnd()
  2177. }
  2178. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  2179. if f.ti.mbs {
  2180. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  2181. } else {
  2182. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  2183. }
  2184. }
  2185. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  2186. if v == nil {
  2187. e.e.EncodeNil()
  2188. return
  2189. }
  2190. ee, esep := e.e, e.hh.hasElemSeparators()
  2191. ee.WriteArrayStart(len(v))
  2192. if esep {
  2193. for _, v2 := range v {
  2194. ee.WriteArrayElem()
  2195. ee.EncodeBool(v2)
  2196. }
  2197. } else {
  2198. for _, v2 := range v {
  2199. ee.EncodeBool(v2)
  2200. }
  2201. }
  2202. ee.WriteArrayEnd()
  2203. }
  2204. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  2205. ee, esep := e.e, e.hh.hasElemSeparators()
  2206. if len(v)%2 == 1 {
  2207. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2208. return
  2209. }
  2210. ee.WriteMapStart(len(v) / 2)
  2211. if esep {
  2212. for j, v2 := range v {
  2213. if j%2 == 0 {
  2214. ee.WriteMapElemKey()
  2215. } else {
  2216. ee.WriteMapElemValue()
  2217. }
  2218. ee.EncodeBool(v2)
  2219. }
  2220. } else {
  2221. for _, v2 := range v {
  2222. ee.EncodeBool(v2)
  2223. }
  2224. }
  2225. ee.WriteMapEnd()
  2226. }
  2227. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  2228. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  2229. }
  2230. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  2231. if v == nil {
  2232. e.e.EncodeNil()
  2233. return
  2234. }
  2235. ee, esep := e.e, e.hh.hasElemSeparators()
  2236. ee.WriteMapStart(len(v))
  2237. if e.h.Canonical {
  2238. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2239. e2 := NewEncoderBytes(&mksv, e.hh)
  2240. v2 := make([]bytesI, len(v))
  2241. var i, l int
  2242. var vp *bytesI
  2243. for k2, _ := range v {
  2244. l = len(mksv)
  2245. e2.MustEncode(k2)
  2246. vp = &v2[i]
  2247. vp.v = mksv[l:]
  2248. vp.i = k2
  2249. i++
  2250. }
  2251. sort.Sort(bytesISlice(v2))
  2252. if esep {
  2253. for j := range v2 {
  2254. ee.WriteMapElemKey()
  2255. e.asis(v2[j].v)
  2256. ee.WriteMapElemValue()
  2257. e.encode(v[v2[j].i])
  2258. }
  2259. } else {
  2260. for j := range v2 {
  2261. e.asis(v2[j].v)
  2262. e.encode(v[v2[j].i])
  2263. }
  2264. }
  2265. } else {
  2266. if esep {
  2267. for k2, v2 := range v {
  2268. ee.WriteMapElemKey()
  2269. e.encode(k2)
  2270. ee.WriteMapElemValue()
  2271. e.encode(v2)
  2272. }
  2273. } else {
  2274. for k2, v2 := range v {
  2275. e.encode(k2)
  2276. e.encode(v2)
  2277. }
  2278. }
  2279. }
  2280. ee.WriteMapEnd()
  2281. }
  2282. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  2283. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  2284. }
  2285. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  2286. if v == nil {
  2287. e.e.EncodeNil()
  2288. return
  2289. }
  2290. ee, esep := e.e, e.hh.hasElemSeparators()
  2291. ee.WriteMapStart(len(v))
  2292. if e.h.Canonical {
  2293. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2294. e2 := NewEncoderBytes(&mksv, e.hh)
  2295. v2 := make([]bytesI, len(v))
  2296. var i, l int
  2297. var vp *bytesI
  2298. for k2, _ := range v {
  2299. l = len(mksv)
  2300. e2.MustEncode(k2)
  2301. vp = &v2[i]
  2302. vp.v = mksv[l:]
  2303. vp.i = k2
  2304. i++
  2305. }
  2306. sort.Sort(bytesISlice(v2))
  2307. if esep {
  2308. for j := range v2 {
  2309. ee.WriteMapElemKey()
  2310. e.asis(v2[j].v)
  2311. ee.WriteMapElemValue()
  2312. e.encode(v[v2[j].i])
  2313. }
  2314. } else {
  2315. for j := range v2 {
  2316. e.asis(v2[j].v)
  2317. e.encode(v[v2[j].i])
  2318. }
  2319. }
  2320. } else {
  2321. if esep {
  2322. for k2, v2 := range v {
  2323. ee.WriteMapElemKey()
  2324. e.encode(k2)
  2325. ee.WriteMapElemValue()
  2326. ee.EncodeString(cUTF8, v2)
  2327. }
  2328. } else {
  2329. for k2, v2 := range v {
  2330. e.encode(k2)
  2331. ee.EncodeString(cUTF8, v2)
  2332. }
  2333. }
  2334. }
  2335. ee.WriteMapEnd()
  2336. }
  2337. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  2338. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  2339. }
  2340. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  2341. if v == nil {
  2342. e.e.EncodeNil()
  2343. return
  2344. }
  2345. ee, esep := e.e, e.hh.hasElemSeparators()
  2346. ee.WriteMapStart(len(v))
  2347. if e.h.Canonical {
  2348. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2349. e2 := NewEncoderBytes(&mksv, e.hh)
  2350. v2 := make([]bytesI, len(v))
  2351. var i, l int
  2352. var vp *bytesI
  2353. for k2, _ := range v {
  2354. l = len(mksv)
  2355. e2.MustEncode(k2)
  2356. vp = &v2[i]
  2357. vp.v = mksv[l:]
  2358. vp.i = k2
  2359. i++
  2360. }
  2361. sort.Sort(bytesISlice(v2))
  2362. if esep {
  2363. for j := range v2 {
  2364. ee.WriteMapElemKey()
  2365. e.asis(v2[j].v)
  2366. ee.WriteMapElemValue()
  2367. e.encode(v[v2[j].i])
  2368. }
  2369. } else {
  2370. for j := range v2 {
  2371. e.asis(v2[j].v)
  2372. e.encode(v[v2[j].i])
  2373. }
  2374. }
  2375. } else {
  2376. if esep {
  2377. for k2, v2 := range v {
  2378. ee.WriteMapElemKey()
  2379. e.encode(k2)
  2380. ee.WriteMapElemValue()
  2381. ee.EncodeUint(uint64(v2))
  2382. }
  2383. } else {
  2384. for k2, v2 := range v {
  2385. e.encode(k2)
  2386. ee.EncodeUint(uint64(v2))
  2387. }
  2388. }
  2389. }
  2390. ee.WriteMapEnd()
  2391. }
  2392. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  2393. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  2394. }
  2395. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  2396. if v == nil {
  2397. e.e.EncodeNil()
  2398. return
  2399. }
  2400. ee, esep := e.e, e.hh.hasElemSeparators()
  2401. ee.WriteMapStart(len(v))
  2402. if e.h.Canonical {
  2403. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2404. e2 := NewEncoderBytes(&mksv, e.hh)
  2405. v2 := make([]bytesI, len(v))
  2406. var i, l int
  2407. var vp *bytesI
  2408. for k2, _ := range v {
  2409. l = len(mksv)
  2410. e2.MustEncode(k2)
  2411. vp = &v2[i]
  2412. vp.v = mksv[l:]
  2413. vp.i = k2
  2414. i++
  2415. }
  2416. sort.Sort(bytesISlice(v2))
  2417. if esep {
  2418. for j := range v2 {
  2419. ee.WriteMapElemKey()
  2420. e.asis(v2[j].v)
  2421. ee.WriteMapElemValue()
  2422. e.encode(v[v2[j].i])
  2423. }
  2424. } else {
  2425. for j := range v2 {
  2426. e.asis(v2[j].v)
  2427. e.encode(v[v2[j].i])
  2428. }
  2429. }
  2430. } else {
  2431. if esep {
  2432. for k2, v2 := range v {
  2433. ee.WriteMapElemKey()
  2434. e.encode(k2)
  2435. ee.WriteMapElemValue()
  2436. ee.EncodeUint(uint64(v2))
  2437. }
  2438. } else {
  2439. for k2, v2 := range v {
  2440. e.encode(k2)
  2441. ee.EncodeUint(uint64(v2))
  2442. }
  2443. }
  2444. }
  2445. ee.WriteMapEnd()
  2446. }
  2447. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  2448. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  2449. }
  2450. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  2451. if v == nil {
  2452. e.e.EncodeNil()
  2453. return
  2454. }
  2455. ee, esep := e.e, e.hh.hasElemSeparators()
  2456. ee.WriteMapStart(len(v))
  2457. if e.h.Canonical {
  2458. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2459. e2 := NewEncoderBytes(&mksv, e.hh)
  2460. v2 := make([]bytesI, len(v))
  2461. var i, l int
  2462. var vp *bytesI
  2463. for k2, _ := range v {
  2464. l = len(mksv)
  2465. e2.MustEncode(k2)
  2466. vp = &v2[i]
  2467. vp.v = mksv[l:]
  2468. vp.i = k2
  2469. i++
  2470. }
  2471. sort.Sort(bytesISlice(v2))
  2472. if esep {
  2473. for j := range v2 {
  2474. ee.WriteMapElemKey()
  2475. e.asis(v2[j].v)
  2476. ee.WriteMapElemValue()
  2477. e.encode(v[v2[j].i])
  2478. }
  2479. } else {
  2480. for j := range v2 {
  2481. e.asis(v2[j].v)
  2482. e.encode(v[v2[j].i])
  2483. }
  2484. }
  2485. } else {
  2486. if esep {
  2487. for k2, v2 := range v {
  2488. ee.WriteMapElemKey()
  2489. e.encode(k2)
  2490. ee.WriteMapElemValue()
  2491. ee.EncodeUint(uint64(v2))
  2492. }
  2493. } else {
  2494. for k2, v2 := range v {
  2495. e.encode(k2)
  2496. ee.EncodeUint(uint64(v2))
  2497. }
  2498. }
  2499. }
  2500. ee.WriteMapEnd()
  2501. }
  2502. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  2503. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  2504. }
  2505. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  2506. if v == nil {
  2507. e.e.EncodeNil()
  2508. return
  2509. }
  2510. ee, esep := e.e, e.hh.hasElemSeparators()
  2511. ee.WriteMapStart(len(v))
  2512. if e.h.Canonical {
  2513. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2514. e2 := NewEncoderBytes(&mksv, e.hh)
  2515. v2 := make([]bytesI, len(v))
  2516. var i, l int
  2517. var vp *bytesI
  2518. for k2, _ := range v {
  2519. l = len(mksv)
  2520. e2.MustEncode(k2)
  2521. vp = &v2[i]
  2522. vp.v = mksv[l:]
  2523. vp.i = k2
  2524. i++
  2525. }
  2526. sort.Sort(bytesISlice(v2))
  2527. if esep {
  2528. for j := range v2 {
  2529. ee.WriteMapElemKey()
  2530. e.asis(v2[j].v)
  2531. ee.WriteMapElemValue()
  2532. e.encode(v[v2[j].i])
  2533. }
  2534. } else {
  2535. for j := range v2 {
  2536. e.asis(v2[j].v)
  2537. e.encode(v[v2[j].i])
  2538. }
  2539. }
  2540. } else {
  2541. if esep {
  2542. for k2, v2 := range v {
  2543. ee.WriteMapElemKey()
  2544. e.encode(k2)
  2545. ee.WriteMapElemValue()
  2546. ee.EncodeUint(uint64(v2))
  2547. }
  2548. } else {
  2549. for k2, v2 := range v {
  2550. e.encode(k2)
  2551. ee.EncodeUint(uint64(v2))
  2552. }
  2553. }
  2554. }
  2555. ee.WriteMapEnd()
  2556. }
  2557. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  2558. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  2559. }
  2560. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  2561. if v == nil {
  2562. e.e.EncodeNil()
  2563. return
  2564. }
  2565. ee, esep := e.e, e.hh.hasElemSeparators()
  2566. ee.WriteMapStart(len(v))
  2567. if e.h.Canonical {
  2568. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2569. e2 := NewEncoderBytes(&mksv, e.hh)
  2570. v2 := make([]bytesI, len(v))
  2571. var i, l int
  2572. var vp *bytesI
  2573. for k2, _ := range v {
  2574. l = len(mksv)
  2575. e2.MustEncode(k2)
  2576. vp = &v2[i]
  2577. vp.v = mksv[l:]
  2578. vp.i = k2
  2579. i++
  2580. }
  2581. sort.Sort(bytesISlice(v2))
  2582. if esep {
  2583. for j := range v2 {
  2584. ee.WriteMapElemKey()
  2585. e.asis(v2[j].v)
  2586. ee.WriteMapElemValue()
  2587. e.encode(v[v2[j].i])
  2588. }
  2589. } else {
  2590. for j := range v2 {
  2591. e.asis(v2[j].v)
  2592. e.encode(v[v2[j].i])
  2593. }
  2594. }
  2595. } else {
  2596. if esep {
  2597. for k2, v2 := range v {
  2598. ee.WriteMapElemKey()
  2599. e.encode(k2)
  2600. ee.WriteMapElemValue()
  2601. ee.EncodeUint(uint64(v2))
  2602. }
  2603. } else {
  2604. for k2, v2 := range v {
  2605. e.encode(k2)
  2606. ee.EncodeUint(uint64(v2))
  2607. }
  2608. }
  2609. }
  2610. ee.WriteMapEnd()
  2611. }
  2612. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  2613. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  2614. }
  2615. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  2616. if v == nil {
  2617. e.e.EncodeNil()
  2618. return
  2619. }
  2620. ee, esep := e.e, e.hh.hasElemSeparators()
  2621. ee.WriteMapStart(len(v))
  2622. if e.h.Canonical {
  2623. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2624. e2 := NewEncoderBytes(&mksv, e.hh)
  2625. v2 := make([]bytesI, len(v))
  2626. var i, l int
  2627. var vp *bytesI
  2628. for k2, _ := range v {
  2629. l = len(mksv)
  2630. e2.MustEncode(k2)
  2631. vp = &v2[i]
  2632. vp.v = mksv[l:]
  2633. vp.i = k2
  2634. i++
  2635. }
  2636. sort.Sort(bytesISlice(v2))
  2637. if esep {
  2638. for j := range v2 {
  2639. ee.WriteMapElemKey()
  2640. e.asis(v2[j].v)
  2641. ee.WriteMapElemValue()
  2642. e.encode(v[v2[j].i])
  2643. }
  2644. } else {
  2645. for j := range v2 {
  2646. e.asis(v2[j].v)
  2647. e.encode(v[v2[j].i])
  2648. }
  2649. }
  2650. } else {
  2651. if esep {
  2652. for k2, v2 := range v {
  2653. ee.WriteMapElemKey()
  2654. e.encode(k2)
  2655. ee.WriteMapElemValue()
  2656. e.encode(v2)
  2657. }
  2658. } else {
  2659. for k2, v2 := range v {
  2660. e.encode(k2)
  2661. e.encode(v2)
  2662. }
  2663. }
  2664. }
  2665. ee.WriteMapEnd()
  2666. }
  2667. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  2668. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  2669. }
  2670. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  2671. if v == nil {
  2672. e.e.EncodeNil()
  2673. return
  2674. }
  2675. ee, esep := e.e, e.hh.hasElemSeparators()
  2676. ee.WriteMapStart(len(v))
  2677. if e.h.Canonical {
  2678. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2679. e2 := NewEncoderBytes(&mksv, e.hh)
  2680. v2 := make([]bytesI, len(v))
  2681. var i, l int
  2682. var vp *bytesI
  2683. for k2, _ := range v {
  2684. l = len(mksv)
  2685. e2.MustEncode(k2)
  2686. vp = &v2[i]
  2687. vp.v = mksv[l:]
  2688. vp.i = k2
  2689. i++
  2690. }
  2691. sort.Sort(bytesISlice(v2))
  2692. if esep {
  2693. for j := range v2 {
  2694. ee.WriteMapElemKey()
  2695. e.asis(v2[j].v)
  2696. ee.WriteMapElemValue()
  2697. e.encode(v[v2[j].i])
  2698. }
  2699. } else {
  2700. for j := range v2 {
  2701. e.asis(v2[j].v)
  2702. e.encode(v[v2[j].i])
  2703. }
  2704. }
  2705. } else {
  2706. if esep {
  2707. for k2, v2 := range v {
  2708. ee.WriteMapElemKey()
  2709. e.encode(k2)
  2710. ee.WriteMapElemValue()
  2711. ee.EncodeInt(int64(v2))
  2712. }
  2713. } else {
  2714. for k2, v2 := range v {
  2715. e.encode(k2)
  2716. ee.EncodeInt(int64(v2))
  2717. }
  2718. }
  2719. }
  2720. ee.WriteMapEnd()
  2721. }
  2722. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  2723. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  2724. }
  2725. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
  2726. if v == nil {
  2727. e.e.EncodeNil()
  2728. return
  2729. }
  2730. ee, esep := e.e, e.hh.hasElemSeparators()
  2731. ee.WriteMapStart(len(v))
  2732. if e.h.Canonical {
  2733. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2734. e2 := NewEncoderBytes(&mksv, e.hh)
  2735. v2 := make([]bytesI, len(v))
  2736. var i, l int
  2737. var vp *bytesI
  2738. for k2, _ := range v {
  2739. l = len(mksv)
  2740. e2.MustEncode(k2)
  2741. vp = &v2[i]
  2742. vp.v = mksv[l:]
  2743. vp.i = k2
  2744. i++
  2745. }
  2746. sort.Sort(bytesISlice(v2))
  2747. if esep {
  2748. for j := range v2 {
  2749. ee.WriteMapElemKey()
  2750. e.asis(v2[j].v)
  2751. ee.WriteMapElemValue()
  2752. e.encode(v[v2[j].i])
  2753. }
  2754. } else {
  2755. for j := range v2 {
  2756. e.asis(v2[j].v)
  2757. e.encode(v[v2[j].i])
  2758. }
  2759. }
  2760. } else {
  2761. if esep {
  2762. for k2, v2 := range v {
  2763. ee.WriteMapElemKey()
  2764. e.encode(k2)
  2765. ee.WriteMapElemValue()
  2766. ee.EncodeInt(int64(v2))
  2767. }
  2768. } else {
  2769. for k2, v2 := range v {
  2770. e.encode(k2)
  2771. ee.EncodeInt(int64(v2))
  2772. }
  2773. }
  2774. }
  2775. ee.WriteMapEnd()
  2776. }
  2777. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  2778. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  2779. }
  2780. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  2781. if v == nil {
  2782. e.e.EncodeNil()
  2783. return
  2784. }
  2785. ee, esep := e.e, e.hh.hasElemSeparators()
  2786. ee.WriteMapStart(len(v))
  2787. if e.h.Canonical {
  2788. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2789. e2 := NewEncoderBytes(&mksv, e.hh)
  2790. v2 := make([]bytesI, len(v))
  2791. var i, l int
  2792. var vp *bytesI
  2793. for k2, _ := range v {
  2794. l = len(mksv)
  2795. e2.MustEncode(k2)
  2796. vp = &v2[i]
  2797. vp.v = mksv[l:]
  2798. vp.i = k2
  2799. i++
  2800. }
  2801. sort.Sort(bytesISlice(v2))
  2802. if esep {
  2803. for j := range v2 {
  2804. ee.WriteMapElemKey()
  2805. e.asis(v2[j].v)
  2806. ee.WriteMapElemValue()
  2807. e.encode(v[v2[j].i])
  2808. }
  2809. } else {
  2810. for j := range v2 {
  2811. e.asis(v2[j].v)
  2812. e.encode(v[v2[j].i])
  2813. }
  2814. }
  2815. } else {
  2816. if esep {
  2817. for k2, v2 := range v {
  2818. ee.WriteMapElemKey()
  2819. e.encode(k2)
  2820. ee.WriteMapElemValue()
  2821. ee.EncodeInt(int64(v2))
  2822. }
  2823. } else {
  2824. for k2, v2 := range v {
  2825. e.encode(k2)
  2826. ee.EncodeInt(int64(v2))
  2827. }
  2828. }
  2829. }
  2830. ee.WriteMapEnd()
  2831. }
  2832. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  2833. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  2834. }
  2835. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  2836. if v == nil {
  2837. e.e.EncodeNil()
  2838. return
  2839. }
  2840. ee, esep := e.e, e.hh.hasElemSeparators()
  2841. ee.WriteMapStart(len(v))
  2842. if e.h.Canonical {
  2843. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2844. e2 := NewEncoderBytes(&mksv, e.hh)
  2845. v2 := make([]bytesI, len(v))
  2846. var i, l int
  2847. var vp *bytesI
  2848. for k2, _ := range v {
  2849. l = len(mksv)
  2850. e2.MustEncode(k2)
  2851. vp = &v2[i]
  2852. vp.v = mksv[l:]
  2853. vp.i = k2
  2854. i++
  2855. }
  2856. sort.Sort(bytesISlice(v2))
  2857. if esep {
  2858. for j := range v2 {
  2859. ee.WriteMapElemKey()
  2860. e.asis(v2[j].v)
  2861. ee.WriteMapElemValue()
  2862. e.encode(v[v2[j].i])
  2863. }
  2864. } else {
  2865. for j := range v2 {
  2866. e.asis(v2[j].v)
  2867. e.encode(v[v2[j].i])
  2868. }
  2869. }
  2870. } else {
  2871. if esep {
  2872. for k2, v2 := range v {
  2873. ee.WriteMapElemKey()
  2874. e.encode(k2)
  2875. ee.WriteMapElemValue()
  2876. ee.EncodeInt(int64(v2))
  2877. }
  2878. } else {
  2879. for k2, v2 := range v {
  2880. e.encode(k2)
  2881. ee.EncodeInt(int64(v2))
  2882. }
  2883. }
  2884. }
  2885. ee.WriteMapEnd()
  2886. }
  2887. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  2888. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  2889. }
  2890. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  2891. if v == nil {
  2892. e.e.EncodeNil()
  2893. return
  2894. }
  2895. ee, esep := e.e, e.hh.hasElemSeparators()
  2896. ee.WriteMapStart(len(v))
  2897. if e.h.Canonical {
  2898. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2899. e2 := NewEncoderBytes(&mksv, e.hh)
  2900. v2 := make([]bytesI, len(v))
  2901. var i, l int
  2902. var vp *bytesI
  2903. for k2, _ := range v {
  2904. l = len(mksv)
  2905. e2.MustEncode(k2)
  2906. vp = &v2[i]
  2907. vp.v = mksv[l:]
  2908. vp.i = k2
  2909. i++
  2910. }
  2911. sort.Sort(bytesISlice(v2))
  2912. if esep {
  2913. for j := range v2 {
  2914. ee.WriteMapElemKey()
  2915. e.asis(v2[j].v)
  2916. ee.WriteMapElemValue()
  2917. e.encode(v[v2[j].i])
  2918. }
  2919. } else {
  2920. for j := range v2 {
  2921. e.asis(v2[j].v)
  2922. e.encode(v[v2[j].i])
  2923. }
  2924. }
  2925. } else {
  2926. if esep {
  2927. for k2, v2 := range v {
  2928. ee.WriteMapElemKey()
  2929. e.encode(k2)
  2930. ee.WriteMapElemValue()
  2931. ee.EncodeInt(int64(v2))
  2932. }
  2933. } else {
  2934. for k2, v2 := range v {
  2935. e.encode(k2)
  2936. ee.EncodeInt(int64(v2))
  2937. }
  2938. }
  2939. }
  2940. ee.WriteMapEnd()
  2941. }
  2942. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  2943. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  2944. }
  2945. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  2946. if v == nil {
  2947. e.e.EncodeNil()
  2948. return
  2949. }
  2950. ee, esep := e.e, e.hh.hasElemSeparators()
  2951. ee.WriteMapStart(len(v))
  2952. if e.h.Canonical {
  2953. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2954. e2 := NewEncoderBytes(&mksv, e.hh)
  2955. v2 := make([]bytesI, len(v))
  2956. var i, l int
  2957. var vp *bytesI
  2958. for k2, _ := range v {
  2959. l = len(mksv)
  2960. e2.MustEncode(k2)
  2961. vp = &v2[i]
  2962. vp.v = mksv[l:]
  2963. vp.i = k2
  2964. i++
  2965. }
  2966. sort.Sort(bytesISlice(v2))
  2967. if esep {
  2968. for j := range v2 {
  2969. ee.WriteMapElemKey()
  2970. e.asis(v2[j].v)
  2971. ee.WriteMapElemValue()
  2972. e.encode(v[v2[j].i])
  2973. }
  2974. } else {
  2975. for j := range v2 {
  2976. e.asis(v2[j].v)
  2977. e.encode(v[v2[j].i])
  2978. }
  2979. }
  2980. } else {
  2981. if esep {
  2982. for k2, v2 := range v {
  2983. ee.WriteMapElemKey()
  2984. e.encode(k2)
  2985. ee.WriteMapElemValue()
  2986. ee.EncodeFloat32(v2)
  2987. }
  2988. } else {
  2989. for k2, v2 := range v {
  2990. e.encode(k2)
  2991. ee.EncodeFloat32(v2)
  2992. }
  2993. }
  2994. }
  2995. ee.WriteMapEnd()
  2996. }
  2997. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  2998. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  2999. }
  3000. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  3001. if v == nil {
  3002. e.e.EncodeNil()
  3003. return
  3004. }
  3005. ee, esep := e.e, e.hh.hasElemSeparators()
  3006. ee.WriteMapStart(len(v))
  3007. if e.h.Canonical {
  3008. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3009. e2 := NewEncoderBytes(&mksv, e.hh)
  3010. v2 := make([]bytesI, len(v))
  3011. var i, l int
  3012. var vp *bytesI
  3013. for k2, _ := range v {
  3014. l = len(mksv)
  3015. e2.MustEncode(k2)
  3016. vp = &v2[i]
  3017. vp.v = mksv[l:]
  3018. vp.i = k2
  3019. i++
  3020. }
  3021. sort.Sort(bytesISlice(v2))
  3022. if esep {
  3023. for j := range v2 {
  3024. ee.WriteMapElemKey()
  3025. e.asis(v2[j].v)
  3026. ee.WriteMapElemValue()
  3027. e.encode(v[v2[j].i])
  3028. }
  3029. } else {
  3030. for j := range v2 {
  3031. e.asis(v2[j].v)
  3032. e.encode(v[v2[j].i])
  3033. }
  3034. }
  3035. } else {
  3036. if esep {
  3037. for k2, v2 := range v {
  3038. ee.WriteMapElemKey()
  3039. e.encode(k2)
  3040. ee.WriteMapElemValue()
  3041. ee.EncodeFloat64(v2)
  3042. }
  3043. } else {
  3044. for k2, v2 := range v {
  3045. e.encode(k2)
  3046. ee.EncodeFloat64(v2)
  3047. }
  3048. }
  3049. }
  3050. ee.WriteMapEnd()
  3051. }
  3052. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  3053. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  3054. }
  3055. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  3056. if v == nil {
  3057. e.e.EncodeNil()
  3058. return
  3059. }
  3060. ee, esep := e.e, e.hh.hasElemSeparators()
  3061. ee.WriteMapStart(len(v))
  3062. if e.h.Canonical {
  3063. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3064. e2 := NewEncoderBytes(&mksv, e.hh)
  3065. v2 := make([]bytesI, len(v))
  3066. var i, l int
  3067. var vp *bytesI
  3068. for k2, _ := range v {
  3069. l = len(mksv)
  3070. e2.MustEncode(k2)
  3071. vp = &v2[i]
  3072. vp.v = mksv[l:]
  3073. vp.i = k2
  3074. i++
  3075. }
  3076. sort.Sort(bytesISlice(v2))
  3077. if esep {
  3078. for j := range v2 {
  3079. ee.WriteMapElemKey()
  3080. e.asis(v2[j].v)
  3081. ee.WriteMapElemValue()
  3082. e.encode(v[v2[j].i])
  3083. }
  3084. } else {
  3085. for j := range v2 {
  3086. e.asis(v2[j].v)
  3087. e.encode(v[v2[j].i])
  3088. }
  3089. }
  3090. } else {
  3091. if esep {
  3092. for k2, v2 := range v {
  3093. ee.WriteMapElemKey()
  3094. e.encode(k2)
  3095. ee.WriteMapElemValue()
  3096. ee.EncodeBool(v2)
  3097. }
  3098. } else {
  3099. for k2, v2 := range v {
  3100. e.encode(k2)
  3101. ee.EncodeBool(v2)
  3102. }
  3103. }
  3104. }
  3105. ee.WriteMapEnd()
  3106. }
  3107. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  3108. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  3109. }
  3110. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  3111. if v == nil {
  3112. e.e.EncodeNil()
  3113. return
  3114. }
  3115. ee, esep := e.e, e.hh.hasElemSeparators()
  3116. ee.WriteMapStart(len(v))
  3117. if e.h.Canonical {
  3118. v2 := make([]string, len(v))
  3119. var i int
  3120. for k, _ := range v {
  3121. v2[i] = string(k)
  3122. i++
  3123. }
  3124. sort.Sort(stringSlice(v2))
  3125. if esep {
  3126. for _, k2 := range v2 {
  3127. ee.WriteMapElemKey()
  3128. ee.EncodeString(cUTF8, k2)
  3129. ee.WriteMapElemValue()
  3130. e.encode(v[string(k2)])
  3131. }
  3132. } else {
  3133. for _, k2 := range v2 {
  3134. ee.EncodeString(cUTF8, k2)
  3135. e.encode(v[string(k2)])
  3136. }
  3137. }
  3138. } else {
  3139. if esep {
  3140. for k2, v2 := range v {
  3141. ee.WriteMapElemKey()
  3142. ee.EncodeString(cUTF8, k2)
  3143. ee.WriteMapElemValue()
  3144. e.encode(v2)
  3145. }
  3146. } else {
  3147. for k2, v2 := range v {
  3148. ee.EncodeString(cUTF8, k2)
  3149. e.encode(v2)
  3150. }
  3151. }
  3152. }
  3153. ee.WriteMapEnd()
  3154. }
  3155. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  3156. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  3157. }
  3158. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  3159. if v == nil {
  3160. e.e.EncodeNil()
  3161. return
  3162. }
  3163. ee, esep := e.e, e.hh.hasElemSeparators()
  3164. ee.WriteMapStart(len(v))
  3165. if e.h.Canonical {
  3166. v2 := make([]string, len(v))
  3167. var i int
  3168. for k, _ := range v {
  3169. v2[i] = string(k)
  3170. i++
  3171. }
  3172. sort.Sort(stringSlice(v2))
  3173. if esep {
  3174. for _, k2 := range v2 {
  3175. ee.WriteMapElemKey()
  3176. ee.EncodeString(cUTF8, k2)
  3177. ee.WriteMapElemValue()
  3178. ee.EncodeString(cUTF8, v[string(k2)])
  3179. }
  3180. } else {
  3181. for _, k2 := range v2 {
  3182. ee.EncodeString(cUTF8, k2)
  3183. ee.EncodeString(cUTF8, v[string(k2)])
  3184. }
  3185. }
  3186. } else {
  3187. if esep {
  3188. for k2, v2 := range v {
  3189. ee.WriteMapElemKey()
  3190. ee.EncodeString(cUTF8, k2)
  3191. ee.WriteMapElemValue()
  3192. ee.EncodeString(cUTF8, v2)
  3193. }
  3194. } else {
  3195. for k2, v2 := range v {
  3196. ee.EncodeString(cUTF8, k2)
  3197. ee.EncodeString(cUTF8, v2)
  3198. }
  3199. }
  3200. }
  3201. ee.WriteMapEnd()
  3202. }
  3203. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  3204. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  3205. }
  3206. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  3207. if v == nil {
  3208. e.e.EncodeNil()
  3209. return
  3210. }
  3211. ee, esep := e.e, e.hh.hasElemSeparators()
  3212. ee.WriteMapStart(len(v))
  3213. if e.h.Canonical {
  3214. v2 := make([]string, len(v))
  3215. var i int
  3216. for k, _ := range v {
  3217. v2[i] = string(k)
  3218. i++
  3219. }
  3220. sort.Sort(stringSlice(v2))
  3221. if esep {
  3222. for _, k2 := range v2 {
  3223. ee.WriteMapElemKey()
  3224. ee.EncodeString(cUTF8, k2)
  3225. ee.WriteMapElemValue()
  3226. ee.EncodeUint(uint64(v[string(k2)]))
  3227. }
  3228. } else {
  3229. for _, k2 := range v2 {
  3230. ee.EncodeString(cUTF8, k2)
  3231. ee.EncodeUint(uint64(v[string(k2)]))
  3232. }
  3233. }
  3234. } else {
  3235. if esep {
  3236. for k2, v2 := range v {
  3237. ee.WriteMapElemKey()
  3238. ee.EncodeString(cUTF8, k2)
  3239. ee.WriteMapElemValue()
  3240. ee.EncodeUint(uint64(v2))
  3241. }
  3242. } else {
  3243. for k2, v2 := range v {
  3244. ee.EncodeString(cUTF8, k2)
  3245. ee.EncodeUint(uint64(v2))
  3246. }
  3247. }
  3248. }
  3249. ee.WriteMapEnd()
  3250. }
  3251. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  3252. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  3253. }
  3254. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  3255. if v == nil {
  3256. e.e.EncodeNil()
  3257. return
  3258. }
  3259. ee, esep := e.e, e.hh.hasElemSeparators()
  3260. ee.WriteMapStart(len(v))
  3261. if e.h.Canonical {
  3262. v2 := make([]string, len(v))
  3263. var i int
  3264. for k, _ := range v {
  3265. v2[i] = string(k)
  3266. i++
  3267. }
  3268. sort.Sort(stringSlice(v2))
  3269. if esep {
  3270. for _, k2 := range v2 {
  3271. ee.WriteMapElemKey()
  3272. ee.EncodeString(cUTF8, k2)
  3273. ee.WriteMapElemValue()
  3274. ee.EncodeUint(uint64(v[string(k2)]))
  3275. }
  3276. } else {
  3277. for _, k2 := range v2 {
  3278. ee.EncodeString(cUTF8, k2)
  3279. ee.EncodeUint(uint64(v[string(k2)]))
  3280. }
  3281. }
  3282. } else {
  3283. if esep {
  3284. for k2, v2 := range v {
  3285. ee.WriteMapElemKey()
  3286. ee.EncodeString(cUTF8, k2)
  3287. ee.WriteMapElemValue()
  3288. ee.EncodeUint(uint64(v2))
  3289. }
  3290. } else {
  3291. for k2, v2 := range v {
  3292. ee.EncodeString(cUTF8, k2)
  3293. ee.EncodeUint(uint64(v2))
  3294. }
  3295. }
  3296. }
  3297. ee.WriteMapEnd()
  3298. }
  3299. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  3300. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  3301. }
  3302. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  3303. if v == nil {
  3304. e.e.EncodeNil()
  3305. return
  3306. }
  3307. ee, esep := e.e, e.hh.hasElemSeparators()
  3308. ee.WriteMapStart(len(v))
  3309. if e.h.Canonical {
  3310. v2 := make([]string, len(v))
  3311. var i int
  3312. for k, _ := range v {
  3313. v2[i] = string(k)
  3314. i++
  3315. }
  3316. sort.Sort(stringSlice(v2))
  3317. if esep {
  3318. for _, k2 := range v2 {
  3319. ee.WriteMapElemKey()
  3320. ee.EncodeString(cUTF8, k2)
  3321. ee.WriteMapElemValue()
  3322. ee.EncodeUint(uint64(v[string(k2)]))
  3323. }
  3324. } else {
  3325. for _, k2 := range v2 {
  3326. ee.EncodeString(cUTF8, k2)
  3327. ee.EncodeUint(uint64(v[string(k2)]))
  3328. }
  3329. }
  3330. } else {
  3331. if esep {
  3332. for k2, v2 := range v {
  3333. ee.WriteMapElemKey()
  3334. ee.EncodeString(cUTF8, k2)
  3335. ee.WriteMapElemValue()
  3336. ee.EncodeUint(uint64(v2))
  3337. }
  3338. } else {
  3339. for k2, v2 := range v {
  3340. ee.EncodeString(cUTF8, k2)
  3341. ee.EncodeUint(uint64(v2))
  3342. }
  3343. }
  3344. }
  3345. ee.WriteMapEnd()
  3346. }
  3347. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  3348. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  3349. }
  3350. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  3351. if v == nil {
  3352. e.e.EncodeNil()
  3353. return
  3354. }
  3355. ee, esep := e.e, e.hh.hasElemSeparators()
  3356. ee.WriteMapStart(len(v))
  3357. if e.h.Canonical {
  3358. v2 := make([]string, len(v))
  3359. var i int
  3360. for k, _ := range v {
  3361. v2[i] = string(k)
  3362. i++
  3363. }
  3364. sort.Sort(stringSlice(v2))
  3365. if esep {
  3366. for _, k2 := range v2 {
  3367. ee.WriteMapElemKey()
  3368. ee.EncodeString(cUTF8, k2)
  3369. ee.WriteMapElemValue()
  3370. ee.EncodeUint(uint64(v[string(k2)]))
  3371. }
  3372. } else {
  3373. for _, k2 := range v2 {
  3374. ee.EncodeString(cUTF8, k2)
  3375. ee.EncodeUint(uint64(v[string(k2)]))
  3376. }
  3377. }
  3378. } else {
  3379. if esep {
  3380. for k2, v2 := range v {
  3381. ee.WriteMapElemKey()
  3382. ee.EncodeString(cUTF8, k2)
  3383. ee.WriteMapElemValue()
  3384. ee.EncodeUint(uint64(v2))
  3385. }
  3386. } else {
  3387. for k2, v2 := range v {
  3388. ee.EncodeString(cUTF8, k2)
  3389. ee.EncodeUint(uint64(v2))
  3390. }
  3391. }
  3392. }
  3393. ee.WriteMapEnd()
  3394. }
  3395. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  3396. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  3397. }
  3398. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
  3399. if v == nil {
  3400. e.e.EncodeNil()
  3401. return
  3402. }
  3403. ee, esep := e.e, e.hh.hasElemSeparators()
  3404. ee.WriteMapStart(len(v))
  3405. if e.h.Canonical {
  3406. v2 := make([]string, len(v))
  3407. var i int
  3408. for k, _ := range v {
  3409. v2[i] = string(k)
  3410. i++
  3411. }
  3412. sort.Sort(stringSlice(v2))
  3413. if esep {
  3414. for _, k2 := range v2 {
  3415. ee.WriteMapElemKey()
  3416. ee.EncodeString(cUTF8, k2)
  3417. ee.WriteMapElemValue()
  3418. ee.EncodeUint(uint64(v[string(k2)]))
  3419. }
  3420. } else {
  3421. for _, k2 := range v2 {
  3422. ee.EncodeString(cUTF8, k2)
  3423. ee.EncodeUint(uint64(v[string(k2)]))
  3424. }
  3425. }
  3426. } else {
  3427. if esep {
  3428. for k2, v2 := range v {
  3429. ee.WriteMapElemKey()
  3430. ee.EncodeString(cUTF8, k2)
  3431. ee.WriteMapElemValue()
  3432. ee.EncodeUint(uint64(v2))
  3433. }
  3434. } else {
  3435. for k2, v2 := range v {
  3436. ee.EncodeString(cUTF8, k2)
  3437. ee.EncodeUint(uint64(v2))
  3438. }
  3439. }
  3440. }
  3441. ee.WriteMapEnd()
  3442. }
  3443. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  3444. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  3445. }
  3446. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  3447. if v == nil {
  3448. e.e.EncodeNil()
  3449. return
  3450. }
  3451. ee, esep := e.e, e.hh.hasElemSeparators()
  3452. ee.WriteMapStart(len(v))
  3453. if e.h.Canonical {
  3454. v2 := make([]string, len(v))
  3455. var i int
  3456. for k, _ := range v {
  3457. v2[i] = string(k)
  3458. i++
  3459. }
  3460. sort.Sort(stringSlice(v2))
  3461. if esep {
  3462. for _, k2 := range v2 {
  3463. ee.WriteMapElemKey()
  3464. ee.EncodeString(cUTF8, k2)
  3465. ee.WriteMapElemValue()
  3466. e.encode(v[string(k2)])
  3467. }
  3468. } else {
  3469. for _, k2 := range v2 {
  3470. ee.EncodeString(cUTF8, k2)
  3471. e.encode(v[string(k2)])
  3472. }
  3473. }
  3474. } else {
  3475. if esep {
  3476. for k2, v2 := range v {
  3477. ee.WriteMapElemKey()
  3478. ee.EncodeString(cUTF8, k2)
  3479. ee.WriteMapElemValue()
  3480. e.encode(v2)
  3481. }
  3482. } else {
  3483. for k2, v2 := range v {
  3484. ee.EncodeString(cUTF8, k2)
  3485. e.encode(v2)
  3486. }
  3487. }
  3488. }
  3489. ee.WriteMapEnd()
  3490. }
  3491. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  3492. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  3493. }
  3494. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  3495. if v == nil {
  3496. e.e.EncodeNil()
  3497. return
  3498. }
  3499. ee, esep := e.e, e.hh.hasElemSeparators()
  3500. ee.WriteMapStart(len(v))
  3501. if e.h.Canonical {
  3502. v2 := make([]string, len(v))
  3503. var i int
  3504. for k, _ := range v {
  3505. v2[i] = string(k)
  3506. i++
  3507. }
  3508. sort.Sort(stringSlice(v2))
  3509. if esep {
  3510. for _, k2 := range v2 {
  3511. ee.WriteMapElemKey()
  3512. ee.EncodeString(cUTF8, k2)
  3513. ee.WriteMapElemValue()
  3514. ee.EncodeInt(int64(v[string(k2)]))
  3515. }
  3516. } else {
  3517. for _, k2 := range v2 {
  3518. ee.EncodeString(cUTF8, k2)
  3519. ee.EncodeInt(int64(v[string(k2)]))
  3520. }
  3521. }
  3522. } else {
  3523. if esep {
  3524. for k2, v2 := range v {
  3525. ee.WriteMapElemKey()
  3526. ee.EncodeString(cUTF8, k2)
  3527. ee.WriteMapElemValue()
  3528. ee.EncodeInt(int64(v2))
  3529. }
  3530. } else {
  3531. for k2, v2 := range v {
  3532. ee.EncodeString(cUTF8, k2)
  3533. ee.EncodeInt(int64(v2))
  3534. }
  3535. }
  3536. }
  3537. ee.WriteMapEnd()
  3538. }
  3539. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  3540. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  3541. }
  3542. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  3543. if v == nil {
  3544. e.e.EncodeNil()
  3545. return
  3546. }
  3547. ee, esep := e.e, e.hh.hasElemSeparators()
  3548. ee.WriteMapStart(len(v))
  3549. if e.h.Canonical {
  3550. v2 := make([]string, len(v))
  3551. var i int
  3552. for k, _ := range v {
  3553. v2[i] = string(k)
  3554. i++
  3555. }
  3556. sort.Sort(stringSlice(v2))
  3557. if esep {
  3558. for _, k2 := range v2 {
  3559. ee.WriteMapElemKey()
  3560. ee.EncodeString(cUTF8, k2)
  3561. ee.WriteMapElemValue()
  3562. ee.EncodeInt(int64(v[string(k2)]))
  3563. }
  3564. } else {
  3565. for _, k2 := range v2 {
  3566. ee.EncodeString(cUTF8, k2)
  3567. ee.EncodeInt(int64(v[string(k2)]))
  3568. }
  3569. }
  3570. } else {
  3571. if esep {
  3572. for k2, v2 := range v {
  3573. ee.WriteMapElemKey()
  3574. ee.EncodeString(cUTF8, k2)
  3575. ee.WriteMapElemValue()
  3576. ee.EncodeInt(int64(v2))
  3577. }
  3578. } else {
  3579. for k2, v2 := range v {
  3580. ee.EncodeString(cUTF8, k2)
  3581. ee.EncodeInt(int64(v2))
  3582. }
  3583. }
  3584. }
  3585. ee.WriteMapEnd()
  3586. }
  3587. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  3588. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  3589. }
  3590. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  3591. if v == nil {
  3592. e.e.EncodeNil()
  3593. return
  3594. }
  3595. ee, esep := e.e, e.hh.hasElemSeparators()
  3596. ee.WriteMapStart(len(v))
  3597. if e.h.Canonical {
  3598. v2 := make([]string, len(v))
  3599. var i int
  3600. for k, _ := range v {
  3601. v2[i] = string(k)
  3602. i++
  3603. }
  3604. sort.Sort(stringSlice(v2))
  3605. if esep {
  3606. for _, k2 := range v2 {
  3607. ee.WriteMapElemKey()
  3608. ee.EncodeString(cUTF8, k2)
  3609. ee.WriteMapElemValue()
  3610. ee.EncodeInt(int64(v[string(k2)]))
  3611. }
  3612. } else {
  3613. for _, k2 := range v2 {
  3614. ee.EncodeString(cUTF8, k2)
  3615. ee.EncodeInt(int64(v[string(k2)]))
  3616. }
  3617. }
  3618. } else {
  3619. if esep {
  3620. for k2, v2 := range v {
  3621. ee.WriteMapElemKey()
  3622. ee.EncodeString(cUTF8, k2)
  3623. ee.WriteMapElemValue()
  3624. ee.EncodeInt(int64(v2))
  3625. }
  3626. } else {
  3627. for k2, v2 := range v {
  3628. ee.EncodeString(cUTF8, k2)
  3629. ee.EncodeInt(int64(v2))
  3630. }
  3631. }
  3632. }
  3633. ee.WriteMapEnd()
  3634. }
  3635. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  3636. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  3637. }
  3638. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  3639. if v == nil {
  3640. e.e.EncodeNil()
  3641. return
  3642. }
  3643. ee, esep := e.e, e.hh.hasElemSeparators()
  3644. ee.WriteMapStart(len(v))
  3645. if e.h.Canonical {
  3646. v2 := make([]string, len(v))
  3647. var i int
  3648. for k, _ := range v {
  3649. v2[i] = string(k)
  3650. i++
  3651. }
  3652. sort.Sort(stringSlice(v2))
  3653. if esep {
  3654. for _, k2 := range v2 {
  3655. ee.WriteMapElemKey()
  3656. ee.EncodeString(cUTF8, k2)
  3657. ee.WriteMapElemValue()
  3658. ee.EncodeInt(int64(v[string(k2)]))
  3659. }
  3660. } else {
  3661. for _, k2 := range v2 {
  3662. ee.EncodeString(cUTF8, k2)
  3663. ee.EncodeInt(int64(v[string(k2)]))
  3664. }
  3665. }
  3666. } else {
  3667. if esep {
  3668. for k2, v2 := range v {
  3669. ee.WriteMapElemKey()
  3670. ee.EncodeString(cUTF8, k2)
  3671. ee.WriteMapElemValue()
  3672. ee.EncodeInt(int64(v2))
  3673. }
  3674. } else {
  3675. for k2, v2 := range v {
  3676. ee.EncodeString(cUTF8, k2)
  3677. ee.EncodeInt(int64(v2))
  3678. }
  3679. }
  3680. }
  3681. ee.WriteMapEnd()
  3682. }
  3683. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  3684. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  3685. }
  3686. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  3687. if v == nil {
  3688. e.e.EncodeNil()
  3689. return
  3690. }
  3691. ee, esep := e.e, e.hh.hasElemSeparators()
  3692. ee.WriteMapStart(len(v))
  3693. if e.h.Canonical {
  3694. v2 := make([]string, len(v))
  3695. var i int
  3696. for k, _ := range v {
  3697. v2[i] = string(k)
  3698. i++
  3699. }
  3700. sort.Sort(stringSlice(v2))
  3701. if esep {
  3702. for _, k2 := range v2 {
  3703. ee.WriteMapElemKey()
  3704. ee.EncodeString(cUTF8, k2)
  3705. ee.WriteMapElemValue()
  3706. ee.EncodeInt(int64(v[string(k2)]))
  3707. }
  3708. } else {
  3709. for _, k2 := range v2 {
  3710. ee.EncodeString(cUTF8, k2)
  3711. ee.EncodeInt(int64(v[string(k2)]))
  3712. }
  3713. }
  3714. } else {
  3715. if esep {
  3716. for k2, v2 := range v {
  3717. ee.WriteMapElemKey()
  3718. ee.EncodeString(cUTF8, k2)
  3719. ee.WriteMapElemValue()
  3720. ee.EncodeInt(int64(v2))
  3721. }
  3722. } else {
  3723. for k2, v2 := range v {
  3724. ee.EncodeString(cUTF8, k2)
  3725. ee.EncodeInt(int64(v2))
  3726. }
  3727. }
  3728. }
  3729. ee.WriteMapEnd()
  3730. }
  3731. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  3732. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  3733. }
  3734. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  3735. if v == nil {
  3736. e.e.EncodeNil()
  3737. return
  3738. }
  3739. ee, esep := e.e, e.hh.hasElemSeparators()
  3740. ee.WriteMapStart(len(v))
  3741. if e.h.Canonical {
  3742. v2 := make([]string, len(v))
  3743. var i int
  3744. for k, _ := range v {
  3745. v2[i] = string(k)
  3746. i++
  3747. }
  3748. sort.Sort(stringSlice(v2))
  3749. if esep {
  3750. for _, k2 := range v2 {
  3751. ee.WriteMapElemKey()
  3752. ee.EncodeString(cUTF8, k2)
  3753. ee.WriteMapElemValue()
  3754. ee.EncodeFloat32(v[string(k2)])
  3755. }
  3756. } else {
  3757. for _, k2 := range v2 {
  3758. ee.EncodeString(cUTF8, k2)
  3759. ee.EncodeFloat32(v[string(k2)])
  3760. }
  3761. }
  3762. } else {
  3763. if esep {
  3764. for k2, v2 := range v {
  3765. ee.WriteMapElemKey()
  3766. ee.EncodeString(cUTF8, k2)
  3767. ee.WriteMapElemValue()
  3768. ee.EncodeFloat32(v2)
  3769. }
  3770. } else {
  3771. for k2, v2 := range v {
  3772. ee.EncodeString(cUTF8, k2)
  3773. ee.EncodeFloat32(v2)
  3774. }
  3775. }
  3776. }
  3777. ee.WriteMapEnd()
  3778. }
  3779. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  3780. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  3781. }
  3782. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  3783. if v == nil {
  3784. e.e.EncodeNil()
  3785. return
  3786. }
  3787. ee, esep := e.e, e.hh.hasElemSeparators()
  3788. ee.WriteMapStart(len(v))
  3789. if e.h.Canonical {
  3790. v2 := make([]string, len(v))
  3791. var i int
  3792. for k, _ := range v {
  3793. v2[i] = string(k)
  3794. i++
  3795. }
  3796. sort.Sort(stringSlice(v2))
  3797. if esep {
  3798. for _, k2 := range v2 {
  3799. ee.WriteMapElemKey()
  3800. ee.EncodeString(cUTF8, k2)
  3801. ee.WriteMapElemValue()
  3802. ee.EncodeFloat64(v[string(k2)])
  3803. }
  3804. } else {
  3805. for _, k2 := range v2 {
  3806. ee.EncodeString(cUTF8, k2)
  3807. ee.EncodeFloat64(v[string(k2)])
  3808. }
  3809. }
  3810. } else {
  3811. if esep {
  3812. for k2, v2 := range v {
  3813. ee.WriteMapElemKey()
  3814. ee.EncodeString(cUTF8, k2)
  3815. ee.WriteMapElemValue()
  3816. ee.EncodeFloat64(v2)
  3817. }
  3818. } else {
  3819. for k2, v2 := range v {
  3820. ee.EncodeString(cUTF8, k2)
  3821. ee.EncodeFloat64(v2)
  3822. }
  3823. }
  3824. }
  3825. ee.WriteMapEnd()
  3826. }
  3827. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  3828. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  3829. }
  3830. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  3831. if v == nil {
  3832. e.e.EncodeNil()
  3833. return
  3834. }
  3835. ee, esep := e.e, e.hh.hasElemSeparators()
  3836. ee.WriteMapStart(len(v))
  3837. if e.h.Canonical {
  3838. v2 := make([]string, len(v))
  3839. var i int
  3840. for k, _ := range v {
  3841. v2[i] = string(k)
  3842. i++
  3843. }
  3844. sort.Sort(stringSlice(v2))
  3845. if esep {
  3846. for _, k2 := range v2 {
  3847. ee.WriteMapElemKey()
  3848. ee.EncodeString(cUTF8, k2)
  3849. ee.WriteMapElemValue()
  3850. ee.EncodeBool(v[string(k2)])
  3851. }
  3852. } else {
  3853. for _, k2 := range v2 {
  3854. ee.EncodeString(cUTF8, k2)
  3855. ee.EncodeBool(v[string(k2)])
  3856. }
  3857. }
  3858. } else {
  3859. if esep {
  3860. for k2, v2 := range v {
  3861. ee.WriteMapElemKey()
  3862. ee.EncodeString(cUTF8, k2)
  3863. ee.WriteMapElemValue()
  3864. ee.EncodeBool(v2)
  3865. }
  3866. } else {
  3867. for k2, v2 := range v {
  3868. ee.EncodeString(cUTF8, k2)
  3869. ee.EncodeBool(v2)
  3870. }
  3871. }
  3872. }
  3873. ee.WriteMapEnd()
  3874. }
  3875. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  3876. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  3877. }
  3878. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  3879. if v == nil {
  3880. e.e.EncodeNil()
  3881. return
  3882. }
  3883. ee, esep := e.e, e.hh.hasElemSeparators()
  3884. ee.WriteMapStart(len(v))
  3885. if e.h.Canonical {
  3886. v2 := make([]float64, len(v))
  3887. var i int
  3888. for k, _ := range v {
  3889. v2[i] = float64(k)
  3890. i++
  3891. }
  3892. sort.Sort(floatSlice(v2))
  3893. if esep {
  3894. for _, k2 := range v2 {
  3895. ee.WriteMapElemKey()
  3896. ee.EncodeFloat32(float32(k2))
  3897. ee.WriteMapElemValue()
  3898. e.encode(v[float32(k2)])
  3899. }
  3900. } else {
  3901. for _, k2 := range v2 {
  3902. ee.EncodeFloat32(float32(k2))
  3903. e.encode(v[float32(k2)])
  3904. }
  3905. }
  3906. } else {
  3907. if esep {
  3908. for k2, v2 := range v {
  3909. ee.WriteMapElemKey()
  3910. ee.EncodeFloat32(k2)
  3911. ee.WriteMapElemValue()
  3912. e.encode(v2)
  3913. }
  3914. } else {
  3915. for k2, v2 := range v {
  3916. ee.EncodeFloat32(k2)
  3917. e.encode(v2)
  3918. }
  3919. }
  3920. }
  3921. ee.WriteMapEnd()
  3922. }
  3923. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  3924. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  3925. }
  3926. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  3927. if v == nil {
  3928. e.e.EncodeNil()
  3929. return
  3930. }
  3931. ee, esep := e.e, e.hh.hasElemSeparators()
  3932. ee.WriteMapStart(len(v))
  3933. if e.h.Canonical {
  3934. v2 := make([]float64, len(v))
  3935. var i int
  3936. for k, _ := range v {
  3937. v2[i] = float64(k)
  3938. i++
  3939. }
  3940. sort.Sort(floatSlice(v2))
  3941. if esep {
  3942. for _, k2 := range v2 {
  3943. ee.WriteMapElemKey()
  3944. ee.EncodeFloat32(float32(k2))
  3945. ee.WriteMapElemValue()
  3946. ee.EncodeString(cUTF8, v[float32(k2)])
  3947. }
  3948. } else {
  3949. for _, k2 := range v2 {
  3950. ee.EncodeFloat32(float32(k2))
  3951. ee.EncodeString(cUTF8, v[float32(k2)])
  3952. }
  3953. }
  3954. } else {
  3955. if esep {
  3956. for k2, v2 := range v {
  3957. ee.WriteMapElemKey()
  3958. ee.EncodeFloat32(k2)
  3959. ee.WriteMapElemValue()
  3960. ee.EncodeString(cUTF8, v2)
  3961. }
  3962. } else {
  3963. for k2, v2 := range v {
  3964. ee.EncodeFloat32(k2)
  3965. ee.EncodeString(cUTF8, v2)
  3966. }
  3967. }
  3968. }
  3969. ee.WriteMapEnd()
  3970. }
  3971. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  3972. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  3973. }
  3974. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  3975. if v == nil {
  3976. e.e.EncodeNil()
  3977. return
  3978. }
  3979. ee, esep := e.e, e.hh.hasElemSeparators()
  3980. ee.WriteMapStart(len(v))
  3981. if e.h.Canonical {
  3982. v2 := make([]float64, len(v))
  3983. var i int
  3984. for k, _ := range v {
  3985. v2[i] = float64(k)
  3986. i++
  3987. }
  3988. sort.Sort(floatSlice(v2))
  3989. if esep {
  3990. for _, k2 := range v2 {
  3991. ee.WriteMapElemKey()
  3992. ee.EncodeFloat32(float32(k2))
  3993. ee.WriteMapElemValue()
  3994. ee.EncodeUint(uint64(v[float32(k2)]))
  3995. }
  3996. } else {
  3997. for _, k2 := range v2 {
  3998. ee.EncodeFloat32(float32(k2))
  3999. ee.EncodeUint(uint64(v[float32(k2)]))
  4000. }
  4001. }
  4002. } else {
  4003. if esep {
  4004. for k2, v2 := range v {
  4005. ee.WriteMapElemKey()
  4006. ee.EncodeFloat32(k2)
  4007. ee.WriteMapElemValue()
  4008. ee.EncodeUint(uint64(v2))
  4009. }
  4010. } else {
  4011. for k2, v2 := range v {
  4012. ee.EncodeFloat32(k2)
  4013. ee.EncodeUint(uint64(v2))
  4014. }
  4015. }
  4016. }
  4017. ee.WriteMapEnd()
  4018. }
  4019. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  4020. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  4021. }
  4022. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  4023. if v == nil {
  4024. e.e.EncodeNil()
  4025. return
  4026. }
  4027. ee, esep := e.e, e.hh.hasElemSeparators()
  4028. ee.WriteMapStart(len(v))
  4029. if e.h.Canonical {
  4030. v2 := make([]float64, len(v))
  4031. var i int
  4032. for k, _ := range v {
  4033. v2[i] = float64(k)
  4034. i++
  4035. }
  4036. sort.Sort(floatSlice(v2))
  4037. if esep {
  4038. for _, k2 := range v2 {
  4039. ee.WriteMapElemKey()
  4040. ee.EncodeFloat32(float32(k2))
  4041. ee.WriteMapElemValue()
  4042. ee.EncodeUint(uint64(v[float32(k2)]))
  4043. }
  4044. } else {
  4045. for _, k2 := range v2 {
  4046. ee.EncodeFloat32(float32(k2))
  4047. ee.EncodeUint(uint64(v[float32(k2)]))
  4048. }
  4049. }
  4050. } else {
  4051. if esep {
  4052. for k2, v2 := range v {
  4053. ee.WriteMapElemKey()
  4054. ee.EncodeFloat32(k2)
  4055. ee.WriteMapElemValue()
  4056. ee.EncodeUint(uint64(v2))
  4057. }
  4058. } else {
  4059. for k2, v2 := range v {
  4060. ee.EncodeFloat32(k2)
  4061. ee.EncodeUint(uint64(v2))
  4062. }
  4063. }
  4064. }
  4065. ee.WriteMapEnd()
  4066. }
  4067. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  4068. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  4069. }
  4070. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  4071. if v == nil {
  4072. e.e.EncodeNil()
  4073. return
  4074. }
  4075. ee, esep := e.e, e.hh.hasElemSeparators()
  4076. ee.WriteMapStart(len(v))
  4077. if e.h.Canonical {
  4078. v2 := make([]float64, len(v))
  4079. var i int
  4080. for k, _ := range v {
  4081. v2[i] = float64(k)
  4082. i++
  4083. }
  4084. sort.Sort(floatSlice(v2))
  4085. if esep {
  4086. for _, k2 := range v2 {
  4087. ee.WriteMapElemKey()
  4088. ee.EncodeFloat32(float32(k2))
  4089. ee.WriteMapElemValue()
  4090. ee.EncodeUint(uint64(v[float32(k2)]))
  4091. }
  4092. } else {
  4093. for _, k2 := range v2 {
  4094. ee.EncodeFloat32(float32(k2))
  4095. ee.EncodeUint(uint64(v[float32(k2)]))
  4096. }
  4097. }
  4098. } else {
  4099. if esep {
  4100. for k2, v2 := range v {
  4101. ee.WriteMapElemKey()
  4102. ee.EncodeFloat32(k2)
  4103. ee.WriteMapElemValue()
  4104. ee.EncodeUint(uint64(v2))
  4105. }
  4106. } else {
  4107. for k2, v2 := range v {
  4108. ee.EncodeFloat32(k2)
  4109. ee.EncodeUint(uint64(v2))
  4110. }
  4111. }
  4112. }
  4113. ee.WriteMapEnd()
  4114. }
  4115. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  4116. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  4117. }
  4118. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  4119. if v == nil {
  4120. e.e.EncodeNil()
  4121. return
  4122. }
  4123. ee, esep := e.e, e.hh.hasElemSeparators()
  4124. ee.WriteMapStart(len(v))
  4125. if e.h.Canonical {
  4126. v2 := make([]float64, len(v))
  4127. var i int
  4128. for k, _ := range v {
  4129. v2[i] = float64(k)
  4130. i++
  4131. }
  4132. sort.Sort(floatSlice(v2))
  4133. if esep {
  4134. for _, k2 := range v2 {
  4135. ee.WriteMapElemKey()
  4136. ee.EncodeFloat32(float32(k2))
  4137. ee.WriteMapElemValue()
  4138. ee.EncodeUint(uint64(v[float32(k2)]))
  4139. }
  4140. } else {
  4141. for _, k2 := range v2 {
  4142. ee.EncodeFloat32(float32(k2))
  4143. ee.EncodeUint(uint64(v[float32(k2)]))
  4144. }
  4145. }
  4146. } else {
  4147. if esep {
  4148. for k2, v2 := range v {
  4149. ee.WriteMapElemKey()
  4150. ee.EncodeFloat32(k2)
  4151. ee.WriteMapElemValue()
  4152. ee.EncodeUint(uint64(v2))
  4153. }
  4154. } else {
  4155. for k2, v2 := range v {
  4156. ee.EncodeFloat32(k2)
  4157. ee.EncodeUint(uint64(v2))
  4158. }
  4159. }
  4160. }
  4161. ee.WriteMapEnd()
  4162. }
  4163. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  4164. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  4165. }
  4166. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  4167. if v == nil {
  4168. e.e.EncodeNil()
  4169. return
  4170. }
  4171. ee, esep := e.e, e.hh.hasElemSeparators()
  4172. ee.WriteMapStart(len(v))
  4173. if e.h.Canonical {
  4174. v2 := make([]float64, len(v))
  4175. var i int
  4176. for k, _ := range v {
  4177. v2[i] = float64(k)
  4178. i++
  4179. }
  4180. sort.Sort(floatSlice(v2))
  4181. if esep {
  4182. for _, k2 := range v2 {
  4183. ee.WriteMapElemKey()
  4184. ee.EncodeFloat32(float32(k2))
  4185. ee.WriteMapElemValue()
  4186. ee.EncodeUint(uint64(v[float32(k2)]))
  4187. }
  4188. } else {
  4189. for _, k2 := range v2 {
  4190. ee.EncodeFloat32(float32(k2))
  4191. ee.EncodeUint(uint64(v[float32(k2)]))
  4192. }
  4193. }
  4194. } else {
  4195. if esep {
  4196. for k2, v2 := range v {
  4197. ee.WriteMapElemKey()
  4198. ee.EncodeFloat32(k2)
  4199. ee.WriteMapElemValue()
  4200. ee.EncodeUint(uint64(v2))
  4201. }
  4202. } else {
  4203. for k2, v2 := range v {
  4204. ee.EncodeFloat32(k2)
  4205. ee.EncodeUint(uint64(v2))
  4206. }
  4207. }
  4208. }
  4209. ee.WriteMapEnd()
  4210. }
  4211. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  4212. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  4213. }
  4214. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  4215. if v == nil {
  4216. e.e.EncodeNil()
  4217. return
  4218. }
  4219. ee, esep := e.e, e.hh.hasElemSeparators()
  4220. ee.WriteMapStart(len(v))
  4221. if e.h.Canonical {
  4222. v2 := make([]float64, len(v))
  4223. var i int
  4224. for k, _ := range v {
  4225. v2[i] = float64(k)
  4226. i++
  4227. }
  4228. sort.Sort(floatSlice(v2))
  4229. if esep {
  4230. for _, k2 := range v2 {
  4231. ee.WriteMapElemKey()
  4232. ee.EncodeFloat32(float32(k2))
  4233. ee.WriteMapElemValue()
  4234. e.encode(v[float32(k2)])
  4235. }
  4236. } else {
  4237. for _, k2 := range v2 {
  4238. ee.EncodeFloat32(float32(k2))
  4239. e.encode(v[float32(k2)])
  4240. }
  4241. }
  4242. } else {
  4243. if esep {
  4244. for k2, v2 := range v {
  4245. ee.WriteMapElemKey()
  4246. ee.EncodeFloat32(k2)
  4247. ee.WriteMapElemValue()
  4248. e.encode(v2)
  4249. }
  4250. } else {
  4251. for k2, v2 := range v {
  4252. ee.EncodeFloat32(k2)
  4253. e.encode(v2)
  4254. }
  4255. }
  4256. }
  4257. ee.WriteMapEnd()
  4258. }
  4259. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  4260. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  4261. }
  4262. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  4263. if v == nil {
  4264. e.e.EncodeNil()
  4265. return
  4266. }
  4267. ee, esep := e.e, e.hh.hasElemSeparators()
  4268. ee.WriteMapStart(len(v))
  4269. if e.h.Canonical {
  4270. v2 := make([]float64, len(v))
  4271. var i int
  4272. for k, _ := range v {
  4273. v2[i] = float64(k)
  4274. i++
  4275. }
  4276. sort.Sort(floatSlice(v2))
  4277. if esep {
  4278. for _, k2 := range v2 {
  4279. ee.WriteMapElemKey()
  4280. ee.EncodeFloat32(float32(k2))
  4281. ee.WriteMapElemValue()
  4282. ee.EncodeInt(int64(v[float32(k2)]))
  4283. }
  4284. } else {
  4285. for _, k2 := range v2 {
  4286. ee.EncodeFloat32(float32(k2))
  4287. ee.EncodeInt(int64(v[float32(k2)]))
  4288. }
  4289. }
  4290. } else {
  4291. if esep {
  4292. for k2, v2 := range v {
  4293. ee.WriteMapElemKey()
  4294. ee.EncodeFloat32(k2)
  4295. ee.WriteMapElemValue()
  4296. ee.EncodeInt(int64(v2))
  4297. }
  4298. } else {
  4299. for k2, v2 := range v {
  4300. ee.EncodeFloat32(k2)
  4301. ee.EncodeInt(int64(v2))
  4302. }
  4303. }
  4304. }
  4305. ee.WriteMapEnd()
  4306. }
  4307. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  4308. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  4309. }
  4310. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  4311. if v == nil {
  4312. e.e.EncodeNil()
  4313. return
  4314. }
  4315. ee, esep := e.e, e.hh.hasElemSeparators()
  4316. ee.WriteMapStart(len(v))
  4317. if e.h.Canonical {
  4318. v2 := make([]float64, len(v))
  4319. var i int
  4320. for k, _ := range v {
  4321. v2[i] = float64(k)
  4322. i++
  4323. }
  4324. sort.Sort(floatSlice(v2))
  4325. if esep {
  4326. for _, k2 := range v2 {
  4327. ee.WriteMapElemKey()
  4328. ee.EncodeFloat32(float32(k2))
  4329. ee.WriteMapElemValue()
  4330. ee.EncodeInt(int64(v[float32(k2)]))
  4331. }
  4332. } else {
  4333. for _, k2 := range v2 {
  4334. ee.EncodeFloat32(float32(k2))
  4335. ee.EncodeInt(int64(v[float32(k2)]))
  4336. }
  4337. }
  4338. } else {
  4339. if esep {
  4340. for k2, v2 := range v {
  4341. ee.WriteMapElemKey()
  4342. ee.EncodeFloat32(k2)
  4343. ee.WriteMapElemValue()
  4344. ee.EncodeInt(int64(v2))
  4345. }
  4346. } else {
  4347. for k2, v2 := range v {
  4348. ee.EncodeFloat32(k2)
  4349. ee.EncodeInt(int64(v2))
  4350. }
  4351. }
  4352. }
  4353. ee.WriteMapEnd()
  4354. }
  4355. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  4356. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  4357. }
  4358. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  4359. if v == nil {
  4360. e.e.EncodeNil()
  4361. return
  4362. }
  4363. ee, esep := e.e, e.hh.hasElemSeparators()
  4364. ee.WriteMapStart(len(v))
  4365. if e.h.Canonical {
  4366. v2 := make([]float64, len(v))
  4367. var i int
  4368. for k, _ := range v {
  4369. v2[i] = float64(k)
  4370. i++
  4371. }
  4372. sort.Sort(floatSlice(v2))
  4373. if esep {
  4374. for _, k2 := range v2 {
  4375. ee.WriteMapElemKey()
  4376. ee.EncodeFloat32(float32(k2))
  4377. ee.WriteMapElemValue()
  4378. ee.EncodeInt(int64(v[float32(k2)]))
  4379. }
  4380. } else {
  4381. for _, k2 := range v2 {
  4382. ee.EncodeFloat32(float32(k2))
  4383. ee.EncodeInt(int64(v[float32(k2)]))
  4384. }
  4385. }
  4386. } else {
  4387. if esep {
  4388. for k2, v2 := range v {
  4389. ee.WriteMapElemKey()
  4390. ee.EncodeFloat32(k2)
  4391. ee.WriteMapElemValue()
  4392. ee.EncodeInt(int64(v2))
  4393. }
  4394. } else {
  4395. for k2, v2 := range v {
  4396. ee.EncodeFloat32(k2)
  4397. ee.EncodeInt(int64(v2))
  4398. }
  4399. }
  4400. }
  4401. ee.WriteMapEnd()
  4402. }
  4403. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  4404. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  4405. }
  4406. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  4407. if v == nil {
  4408. e.e.EncodeNil()
  4409. return
  4410. }
  4411. ee, esep := e.e, e.hh.hasElemSeparators()
  4412. ee.WriteMapStart(len(v))
  4413. if e.h.Canonical {
  4414. v2 := make([]float64, len(v))
  4415. var i int
  4416. for k, _ := range v {
  4417. v2[i] = float64(k)
  4418. i++
  4419. }
  4420. sort.Sort(floatSlice(v2))
  4421. if esep {
  4422. for _, k2 := range v2 {
  4423. ee.WriteMapElemKey()
  4424. ee.EncodeFloat32(float32(k2))
  4425. ee.WriteMapElemValue()
  4426. ee.EncodeInt(int64(v[float32(k2)]))
  4427. }
  4428. } else {
  4429. for _, k2 := range v2 {
  4430. ee.EncodeFloat32(float32(k2))
  4431. ee.EncodeInt(int64(v[float32(k2)]))
  4432. }
  4433. }
  4434. } else {
  4435. if esep {
  4436. for k2, v2 := range v {
  4437. ee.WriteMapElemKey()
  4438. ee.EncodeFloat32(k2)
  4439. ee.WriteMapElemValue()
  4440. ee.EncodeInt(int64(v2))
  4441. }
  4442. } else {
  4443. for k2, v2 := range v {
  4444. ee.EncodeFloat32(k2)
  4445. ee.EncodeInt(int64(v2))
  4446. }
  4447. }
  4448. }
  4449. ee.WriteMapEnd()
  4450. }
  4451. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  4452. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  4453. }
  4454. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  4455. if v == nil {
  4456. e.e.EncodeNil()
  4457. return
  4458. }
  4459. ee, esep := e.e, e.hh.hasElemSeparators()
  4460. ee.WriteMapStart(len(v))
  4461. if e.h.Canonical {
  4462. v2 := make([]float64, len(v))
  4463. var i int
  4464. for k, _ := range v {
  4465. v2[i] = float64(k)
  4466. i++
  4467. }
  4468. sort.Sort(floatSlice(v2))
  4469. if esep {
  4470. for _, k2 := range v2 {
  4471. ee.WriteMapElemKey()
  4472. ee.EncodeFloat32(float32(k2))
  4473. ee.WriteMapElemValue()
  4474. ee.EncodeInt(int64(v[float32(k2)]))
  4475. }
  4476. } else {
  4477. for _, k2 := range v2 {
  4478. ee.EncodeFloat32(float32(k2))
  4479. ee.EncodeInt(int64(v[float32(k2)]))
  4480. }
  4481. }
  4482. } else {
  4483. if esep {
  4484. for k2, v2 := range v {
  4485. ee.WriteMapElemKey()
  4486. ee.EncodeFloat32(k2)
  4487. ee.WriteMapElemValue()
  4488. ee.EncodeInt(int64(v2))
  4489. }
  4490. } else {
  4491. for k2, v2 := range v {
  4492. ee.EncodeFloat32(k2)
  4493. ee.EncodeInt(int64(v2))
  4494. }
  4495. }
  4496. }
  4497. ee.WriteMapEnd()
  4498. }
  4499. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  4500. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  4501. }
  4502. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  4503. if v == nil {
  4504. e.e.EncodeNil()
  4505. return
  4506. }
  4507. ee, esep := e.e, e.hh.hasElemSeparators()
  4508. ee.WriteMapStart(len(v))
  4509. if e.h.Canonical {
  4510. v2 := make([]float64, len(v))
  4511. var i int
  4512. for k, _ := range v {
  4513. v2[i] = float64(k)
  4514. i++
  4515. }
  4516. sort.Sort(floatSlice(v2))
  4517. if esep {
  4518. for _, k2 := range v2 {
  4519. ee.WriteMapElemKey()
  4520. ee.EncodeFloat32(float32(k2))
  4521. ee.WriteMapElemValue()
  4522. ee.EncodeFloat32(v[float32(k2)])
  4523. }
  4524. } else {
  4525. for _, k2 := range v2 {
  4526. ee.EncodeFloat32(float32(k2))
  4527. ee.EncodeFloat32(v[float32(k2)])
  4528. }
  4529. }
  4530. } else {
  4531. if esep {
  4532. for k2, v2 := range v {
  4533. ee.WriteMapElemKey()
  4534. ee.EncodeFloat32(k2)
  4535. ee.WriteMapElemValue()
  4536. ee.EncodeFloat32(v2)
  4537. }
  4538. } else {
  4539. for k2, v2 := range v {
  4540. ee.EncodeFloat32(k2)
  4541. ee.EncodeFloat32(v2)
  4542. }
  4543. }
  4544. }
  4545. ee.WriteMapEnd()
  4546. }
  4547. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  4548. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  4549. }
  4550. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  4551. if v == nil {
  4552. e.e.EncodeNil()
  4553. return
  4554. }
  4555. ee, esep := e.e, e.hh.hasElemSeparators()
  4556. ee.WriteMapStart(len(v))
  4557. if e.h.Canonical {
  4558. v2 := make([]float64, len(v))
  4559. var i int
  4560. for k, _ := range v {
  4561. v2[i] = float64(k)
  4562. i++
  4563. }
  4564. sort.Sort(floatSlice(v2))
  4565. if esep {
  4566. for _, k2 := range v2 {
  4567. ee.WriteMapElemKey()
  4568. ee.EncodeFloat32(float32(k2))
  4569. ee.WriteMapElemValue()
  4570. ee.EncodeFloat64(v[float32(k2)])
  4571. }
  4572. } else {
  4573. for _, k2 := range v2 {
  4574. ee.EncodeFloat32(float32(k2))
  4575. ee.EncodeFloat64(v[float32(k2)])
  4576. }
  4577. }
  4578. } else {
  4579. if esep {
  4580. for k2, v2 := range v {
  4581. ee.WriteMapElemKey()
  4582. ee.EncodeFloat32(k2)
  4583. ee.WriteMapElemValue()
  4584. ee.EncodeFloat64(v2)
  4585. }
  4586. } else {
  4587. for k2, v2 := range v {
  4588. ee.EncodeFloat32(k2)
  4589. ee.EncodeFloat64(v2)
  4590. }
  4591. }
  4592. }
  4593. ee.WriteMapEnd()
  4594. }
  4595. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  4596. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  4597. }
  4598. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  4599. if v == nil {
  4600. e.e.EncodeNil()
  4601. return
  4602. }
  4603. ee, esep := e.e, e.hh.hasElemSeparators()
  4604. ee.WriteMapStart(len(v))
  4605. if e.h.Canonical {
  4606. v2 := make([]float64, len(v))
  4607. var i int
  4608. for k, _ := range v {
  4609. v2[i] = float64(k)
  4610. i++
  4611. }
  4612. sort.Sort(floatSlice(v2))
  4613. if esep {
  4614. for _, k2 := range v2 {
  4615. ee.WriteMapElemKey()
  4616. ee.EncodeFloat32(float32(k2))
  4617. ee.WriteMapElemValue()
  4618. ee.EncodeBool(v[float32(k2)])
  4619. }
  4620. } else {
  4621. for _, k2 := range v2 {
  4622. ee.EncodeFloat32(float32(k2))
  4623. ee.EncodeBool(v[float32(k2)])
  4624. }
  4625. }
  4626. } else {
  4627. if esep {
  4628. for k2, v2 := range v {
  4629. ee.WriteMapElemKey()
  4630. ee.EncodeFloat32(k2)
  4631. ee.WriteMapElemValue()
  4632. ee.EncodeBool(v2)
  4633. }
  4634. } else {
  4635. for k2, v2 := range v {
  4636. ee.EncodeFloat32(k2)
  4637. ee.EncodeBool(v2)
  4638. }
  4639. }
  4640. }
  4641. ee.WriteMapEnd()
  4642. }
  4643. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  4644. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  4645. }
  4646. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  4647. if v == nil {
  4648. e.e.EncodeNil()
  4649. return
  4650. }
  4651. ee, esep := e.e, e.hh.hasElemSeparators()
  4652. ee.WriteMapStart(len(v))
  4653. if e.h.Canonical {
  4654. v2 := make([]float64, len(v))
  4655. var i int
  4656. for k, _ := range v {
  4657. v2[i] = float64(k)
  4658. i++
  4659. }
  4660. sort.Sort(floatSlice(v2))
  4661. if esep {
  4662. for _, k2 := range v2 {
  4663. ee.WriteMapElemKey()
  4664. ee.EncodeFloat64(float64(k2))
  4665. ee.WriteMapElemValue()
  4666. e.encode(v[float64(k2)])
  4667. }
  4668. } else {
  4669. for _, k2 := range v2 {
  4670. ee.EncodeFloat64(float64(k2))
  4671. e.encode(v[float64(k2)])
  4672. }
  4673. }
  4674. } else {
  4675. if esep {
  4676. for k2, v2 := range v {
  4677. ee.WriteMapElemKey()
  4678. ee.EncodeFloat64(k2)
  4679. ee.WriteMapElemValue()
  4680. e.encode(v2)
  4681. }
  4682. } else {
  4683. for k2, v2 := range v {
  4684. ee.EncodeFloat64(k2)
  4685. e.encode(v2)
  4686. }
  4687. }
  4688. }
  4689. ee.WriteMapEnd()
  4690. }
  4691. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  4692. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  4693. }
  4694. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  4695. if v == nil {
  4696. e.e.EncodeNil()
  4697. return
  4698. }
  4699. ee, esep := e.e, e.hh.hasElemSeparators()
  4700. ee.WriteMapStart(len(v))
  4701. if e.h.Canonical {
  4702. v2 := make([]float64, len(v))
  4703. var i int
  4704. for k, _ := range v {
  4705. v2[i] = float64(k)
  4706. i++
  4707. }
  4708. sort.Sort(floatSlice(v2))
  4709. if esep {
  4710. for _, k2 := range v2 {
  4711. ee.WriteMapElemKey()
  4712. ee.EncodeFloat64(float64(k2))
  4713. ee.WriteMapElemValue()
  4714. ee.EncodeString(cUTF8, v[float64(k2)])
  4715. }
  4716. } else {
  4717. for _, k2 := range v2 {
  4718. ee.EncodeFloat64(float64(k2))
  4719. ee.EncodeString(cUTF8, v[float64(k2)])
  4720. }
  4721. }
  4722. } else {
  4723. if esep {
  4724. for k2, v2 := range v {
  4725. ee.WriteMapElemKey()
  4726. ee.EncodeFloat64(k2)
  4727. ee.WriteMapElemValue()
  4728. ee.EncodeString(cUTF8, v2)
  4729. }
  4730. } else {
  4731. for k2, v2 := range v {
  4732. ee.EncodeFloat64(k2)
  4733. ee.EncodeString(cUTF8, v2)
  4734. }
  4735. }
  4736. }
  4737. ee.WriteMapEnd()
  4738. }
  4739. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  4740. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  4741. }
  4742. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  4743. if v == nil {
  4744. e.e.EncodeNil()
  4745. return
  4746. }
  4747. ee, esep := e.e, e.hh.hasElemSeparators()
  4748. ee.WriteMapStart(len(v))
  4749. if e.h.Canonical {
  4750. v2 := make([]float64, len(v))
  4751. var i int
  4752. for k, _ := range v {
  4753. v2[i] = float64(k)
  4754. i++
  4755. }
  4756. sort.Sort(floatSlice(v2))
  4757. if esep {
  4758. for _, k2 := range v2 {
  4759. ee.WriteMapElemKey()
  4760. ee.EncodeFloat64(float64(k2))
  4761. ee.WriteMapElemValue()
  4762. ee.EncodeUint(uint64(v[float64(k2)]))
  4763. }
  4764. } else {
  4765. for _, k2 := range v2 {
  4766. ee.EncodeFloat64(float64(k2))
  4767. ee.EncodeUint(uint64(v[float64(k2)]))
  4768. }
  4769. }
  4770. } else {
  4771. if esep {
  4772. for k2, v2 := range v {
  4773. ee.WriteMapElemKey()
  4774. ee.EncodeFloat64(k2)
  4775. ee.WriteMapElemValue()
  4776. ee.EncodeUint(uint64(v2))
  4777. }
  4778. } else {
  4779. for k2, v2 := range v {
  4780. ee.EncodeFloat64(k2)
  4781. ee.EncodeUint(uint64(v2))
  4782. }
  4783. }
  4784. }
  4785. ee.WriteMapEnd()
  4786. }
  4787. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  4788. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  4789. }
  4790. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  4791. if v == nil {
  4792. e.e.EncodeNil()
  4793. return
  4794. }
  4795. ee, esep := e.e, e.hh.hasElemSeparators()
  4796. ee.WriteMapStart(len(v))
  4797. if e.h.Canonical {
  4798. v2 := make([]float64, len(v))
  4799. var i int
  4800. for k, _ := range v {
  4801. v2[i] = float64(k)
  4802. i++
  4803. }
  4804. sort.Sort(floatSlice(v2))
  4805. if esep {
  4806. for _, k2 := range v2 {
  4807. ee.WriteMapElemKey()
  4808. ee.EncodeFloat64(float64(k2))
  4809. ee.WriteMapElemValue()
  4810. ee.EncodeUint(uint64(v[float64(k2)]))
  4811. }
  4812. } else {
  4813. for _, k2 := range v2 {
  4814. ee.EncodeFloat64(float64(k2))
  4815. ee.EncodeUint(uint64(v[float64(k2)]))
  4816. }
  4817. }
  4818. } else {
  4819. if esep {
  4820. for k2, v2 := range v {
  4821. ee.WriteMapElemKey()
  4822. ee.EncodeFloat64(k2)
  4823. ee.WriteMapElemValue()
  4824. ee.EncodeUint(uint64(v2))
  4825. }
  4826. } else {
  4827. for k2, v2 := range v {
  4828. ee.EncodeFloat64(k2)
  4829. ee.EncodeUint(uint64(v2))
  4830. }
  4831. }
  4832. }
  4833. ee.WriteMapEnd()
  4834. }
  4835. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  4836. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  4837. }
  4838. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  4839. if v == nil {
  4840. e.e.EncodeNil()
  4841. return
  4842. }
  4843. ee, esep := e.e, e.hh.hasElemSeparators()
  4844. ee.WriteMapStart(len(v))
  4845. if e.h.Canonical {
  4846. v2 := make([]float64, len(v))
  4847. var i int
  4848. for k, _ := range v {
  4849. v2[i] = float64(k)
  4850. i++
  4851. }
  4852. sort.Sort(floatSlice(v2))
  4853. if esep {
  4854. for _, k2 := range v2 {
  4855. ee.WriteMapElemKey()
  4856. ee.EncodeFloat64(float64(k2))
  4857. ee.WriteMapElemValue()
  4858. ee.EncodeUint(uint64(v[float64(k2)]))
  4859. }
  4860. } else {
  4861. for _, k2 := range v2 {
  4862. ee.EncodeFloat64(float64(k2))
  4863. ee.EncodeUint(uint64(v[float64(k2)]))
  4864. }
  4865. }
  4866. } else {
  4867. if esep {
  4868. for k2, v2 := range v {
  4869. ee.WriteMapElemKey()
  4870. ee.EncodeFloat64(k2)
  4871. ee.WriteMapElemValue()
  4872. ee.EncodeUint(uint64(v2))
  4873. }
  4874. } else {
  4875. for k2, v2 := range v {
  4876. ee.EncodeFloat64(k2)
  4877. ee.EncodeUint(uint64(v2))
  4878. }
  4879. }
  4880. }
  4881. ee.WriteMapEnd()
  4882. }
  4883. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  4884. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  4885. }
  4886. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  4887. if v == nil {
  4888. e.e.EncodeNil()
  4889. return
  4890. }
  4891. ee, esep := e.e, e.hh.hasElemSeparators()
  4892. ee.WriteMapStart(len(v))
  4893. if e.h.Canonical {
  4894. v2 := make([]float64, len(v))
  4895. var i int
  4896. for k, _ := range v {
  4897. v2[i] = float64(k)
  4898. i++
  4899. }
  4900. sort.Sort(floatSlice(v2))
  4901. if esep {
  4902. for _, k2 := range v2 {
  4903. ee.WriteMapElemKey()
  4904. ee.EncodeFloat64(float64(k2))
  4905. ee.WriteMapElemValue()
  4906. ee.EncodeUint(uint64(v[float64(k2)]))
  4907. }
  4908. } else {
  4909. for _, k2 := range v2 {
  4910. ee.EncodeFloat64(float64(k2))
  4911. ee.EncodeUint(uint64(v[float64(k2)]))
  4912. }
  4913. }
  4914. } else {
  4915. if esep {
  4916. for k2, v2 := range v {
  4917. ee.WriteMapElemKey()
  4918. ee.EncodeFloat64(k2)
  4919. ee.WriteMapElemValue()
  4920. ee.EncodeUint(uint64(v2))
  4921. }
  4922. } else {
  4923. for k2, v2 := range v {
  4924. ee.EncodeFloat64(k2)
  4925. ee.EncodeUint(uint64(v2))
  4926. }
  4927. }
  4928. }
  4929. ee.WriteMapEnd()
  4930. }
  4931. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  4932. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  4933. }
  4934. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
  4935. if v == nil {
  4936. e.e.EncodeNil()
  4937. return
  4938. }
  4939. ee, esep := e.e, e.hh.hasElemSeparators()
  4940. ee.WriteMapStart(len(v))
  4941. if e.h.Canonical {
  4942. v2 := make([]float64, len(v))
  4943. var i int
  4944. for k, _ := range v {
  4945. v2[i] = float64(k)
  4946. i++
  4947. }
  4948. sort.Sort(floatSlice(v2))
  4949. if esep {
  4950. for _, k2 := range v2 {
  4951. ee.WriteMapElemKey()
  4952. ee.EncodeFloat64(float64(k2))
  4953. ee.WriteMapElemValue()
  4954. ee.EncodeUint(uint64(v[float64(k2)]))
  4955. }
  4956. } else {
  4957. for _, k2 := range v2 {
  4958. ee.EncodeFloat64(float64(k2))
  4959. ee.EncodeUint(uint64(v[float64(k2)]))
  4960. }
  4961. }
  4962. } else {
  4963. if esep {
  4964. for k2, v2 := range v {
  4965. ee.WriteMapElemKey()
  4966. ee.EncodeFloat64(k2)
  4967. ee.WriteMapElemValue()
  4968. ee.EncodeUint(uint64(v2))
  4969. }
  4970. } else {
  4971. for k2, v2 := range v {
  4972. ee.EncodeFloat64(k2)
  4973. ee.EncodeUint(uint64(v2))
  4974. }
  4975. }
  4976. }
  4977. ee.WriteMapEnd()
  4978. }
  4979. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  4980. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  4981. }
  4982. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  4983. if v == nil {
  4984. e.e.EncodeNil()
  4985. return
  4986. }
  4987. ee, esep := e.e, e.hh.hasElemSeparators()
  4988. ee.WriteMapStart(len(v))
  4989. if e.h.Canonical {
  4990. v2 := make([]float64, len(v))
  4991. var i int
  4992. for k, _ := range v {
  4993. v2[i] = float64(k)
  4994. i++
  4995. }
  4996. sort.Sort(floatSlice(v2))
  4997. if esep {
  4998. for _, k2 := range v2 {
  4999. ee.WriteMapElemKey()
  5000. ee.EncodeFloat64(float64(k2))
  5001. ee.WriteMapElemValue()
  5002. e.encode(v[float64(k2)])
  5003. }
  5004. } else {
  5005. for _, k2 := range v2 {
  5006. ee.EncodeFloat64(float64(k2))
  5007. e.encode(v[float64(k2)])
  5008. }
  5009. }
  5010. } else {
  5011. if esep {
  5012. for k2, v2 := range v {
  5013. ee.WriteMapElemKey()
  5014. ee.EncodeFloat64(k2)
  5015. ee.WriteMapElemValue()
  5016. e.encode(v2)
  5017. }
  5018. } else {
  5019. for k2, v2 := range v {
  5020. ee.EncodeFloat64(k2)
  5021. e.encode(v2)
  5022. }
  5023. }
  5024. }
  5025. ee.WriteMapEnd()
  5026. }
  5027. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  5028. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  5029. }
  5030. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  5031. if v == nil {
  5032. e.e.EncodeNil()
  5033. return
  5034. }
  5035. ee, esep := e.e, e.hh.hasElemSeparators()
  5036. ee.WriteMapStart(len(v))
  5037. if e.h.Canonical {
  5038. v2 := make([]float64, len(v))
  5039. var i int
  5040. for k, _ := range v {
  5041. v2[i] = float64(k)
  5042. i++
  5043. }
  5044. sort.Sort(floatSlice(v2))
  5045. if esep {
  5046. for _, k2 := range v2 {
  5047. ee.WriteMapElemKey()
  5048. ee.EncodeFloat64(float64(k2))
  5049. ee.WriteMapElemValue()
  5050. ee.EncodeInt(int64(v[float64(k2)]))
  5051. }
  5052. } else {
  5053. for _, k2 := range v2 {
  5054. ee.EncodeFloat64(float64(k2))
  5055. ee.EncodeInt(int64(v[float64(k2)]))
  5056. }
  5057. }
  5058. } else {
  5059. if esep {
  5060. for k2, v2 := range v {
  5061. ee.WriteMapElemKey()
  5062. ee.EncodeFloat64(k2)
  5063. ee.WriteMapElemValue()
  5064. ee.EncodeInt(int64(v2))
  5065. }
  5066. } else {
  5067. for k2, v2 := range v {
  5068. ee.EncodeFloat64(k2)
  5069. ee.EncodeInt(int64(v2))
  5070. }
  5071. }
  5072. }
  5073. ee.WriteMapEnd()
  5074. }
  5075. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  5076. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  5077. }
  5078. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  5079. if v == nil {
  5080. e.e.EncodeNil()
  5081. return
  5082. }
  5083. ee, esep := e.e, e.hh.hasElemSeparators()
  5084. ee.WriteMapStart(len(v))
  5085. if e.h.Canonical {
  5086. v2 := make([]float64, len(v))
  5087. var i int
  5088. for k, _ := range v {
  5089. v2[i] = float64(k)
  5090. i++
  5091. }
  5092. sort.Sort(floatSlice(v2))
  5093. if esep {
  5094. for _, k2 := range v2 {
  5095. ee.WriteMapElemKey()
  5096. ee.EncodeFloat64(float64(k2))
  5097. ee.WriteMapElemValue()
  5098. ee.EncodeInt(int64(v[float64(k2)]))
  5099. }
  5100. } else {
  5101. for _, k2 := range v2 {
  5102. ee.EncodeFloat64(float64(k2))
  5103. ee.EncodeInt(int64(v[float64(k2)]))
  5104. }
  5105. }
  5106. } else {
  5107. if esep {
  5108. for k2, v2 := range v {
  5109. ee.WriteMapElemKey()
  5110. ee.EncodeFloat64(k2)
  5111. ee.WriteMapElemValue()
  5112. ee.EncodeInt(int64(v2))
  5113. }
  5114. } else {
  5115. for k2, v2 := range v {
  5116. ee.EncodeFloat64(k2)
  5117. ee.EncodeInt(int64(v2))
  5118. }
  5119. }
  5120. }
  5121. ee.WriteMapEnd()
  5122. }
  5123. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  5124. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  5125. }
  5126. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  5127. if v == nil {
  5128. e.e.EncodeNil()
  5129. return
  5130. }
  5131. ee, esep := e.e, e.hh.hasElemSeparators()
  5132. ee.WriteMapStart(len(v))
  5133. if e.h.Canonical {
  5134. v2 := make([]float64, len(v))
  5135. var i int
  5136. for k, _ := range v {
  5137. v2[i] = float64(k)
  5138. i++
  5139. }
  5140. sort.Sort(floatSlice(v2))
  5141. if esep {
  5142. for _, k2 := range v2 {
  5143. ee.WriteMapElemKey()
  5144. ee.EncodeFloat64(float64(k2))
  5145. ee.WriteMapElemValue()
  5146. ee.EncodeInt(int64(v[float64(k2)]))
  5147. }
  5148. } else {
  5149. for _, k2 := range v2 {
  5150. ee.EncodeFloat64(float64(k2))
  5151. ee.EncodeInt(int64(v[float64(k2)]))
  5152. }
  5153. }
  5154. } else {
  5155. if esep {
  5156. for k2, v2 := range v {
  5157. ee.WriteMapElemKey()
  5158. ee.EncodeFloat64(k2)
  5159. ee.WriteMapElemValue()
  5160. ee.EncodeInt(int64(v2))
  5161. }
  5162. } else {
  5163. for k2, v2 := range v {
  5164. ee.EncodeFloat64(k2)
  5165. ee.EncodeInt(int64(v2))
  5166. }
  5167. }
  5168. }
  5169. ee.WriteMapEnd()
  5170. }
  5171. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  5172. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  5173. }
  5174. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  5175. if v == nil {
  5176. e.e.EncodeNil()
  5177. return
  5178. }
  5179. ee, esep := e.e, e.hh.hasElemSeparators()
  5180. ee.WriteMapStart(len(v))
  5181. if e.h.Canonical {
  5182. v2 := make([]float64, len(v))
  5183. var i int
  5184. for k, _ := range v {
  5185. v2[i] = float64(k)
  5186. i++
  5187. }
  5188. sort.Sort(floatSlice(v2))
  5189. if esep {
  5190. for _, k2 := range v2 {
  5191. ee.WriteMapElemKey()
  5192. ee.EncodeFloat64(float64(k2))
  5193. ee.WriteMapElemValue()
  5194. ee.EncodeInt(int64(v[float64(k2)]))
  5195. }
  5196. } else {
  5197. for _, k2 := range v2 {
  5198. ee.EncodeFloat64(float64(k2))
  5199. ee.EncodeInt(int64(v[float64(k2)]))
  5200. }
  5201. }
  5202. } else {
  5203. if esep {
  5204. for k2, v2 := range v {
  5205. ee.WriteMapElemKey()
  5206. ee.EncodeFloat64(k2)
  5207. ee.WriteMapElemValue()
  5208. ee.EncodeInt(int64(v2))
  5209. }
  5210. } else {
  5211. for k2, v2 := range v {
  5212. ee.EncodeFloat64(k2)
  5213. ee.EncodeInt(int64(v2))
  5214. }
  5215. }
  5216. }
  5217. ee.WriteMapEnd()
  5218. }
  5219. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  5220. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  5221. }
  5222. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  5223. if v == nil {
  5224. e.e.EncodeNil()
  5225. return
  5226. }
  5227. ee, esep := e.e, e.hh.hasElemSeparators()
  5228. ee.WriteMapStart(len(v))
  5229. if e.h.Canonical {
  5230. v2 := make([]float64, len(v))
  5231. var i int
  5232. for k, _ := range v {
  5233. v2[i] = float64(k)
  5234. i++
  5235. }
  5236. sort.Sort(floatSlice(v2))
  5237. if esep {
  5238. for _, k2 := range v2 {
  5239. ee.WriteMapElemKey()
  5240. ee.EncodeFloat64(float64(k2))
  5241. ee.WriteMapElemValue()
  5242. ee.EncodeInt(int64(v[float64(k2)]))
  5243. }
  5244. } else {
  5245. for _, k2 := range v2 {
  5246. ee.EncodeFloat64(float64(k2))
  5247. ee.EncodeInt(int64(v[float64(k2)]))
  5248. }
  5249. }
  5250. } else {
  5251. if esep {
  5252. for k2, v2 := range v {
  5253. ee.WriteMapElemKey()
  5254. ee.EncodeFloat64(k2)
  5255. ee.WriteMapElemValue()
  5256. ee.EncodeInt(int64(v2))
  5257. }
  5258. } else {
  5259. for k2, v2 := range v {
  5260. ee.EncodeFloat64(k2)
  5261. ee.EncodeInt(int64(v2))
  5262. }
  5263. }
  5264. }
  5265. ee.WriteMapEnd()
  5266. }
  5267. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  5268. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  5269. }
  5270. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  5271. if v == nil {
  5272. e.e.EncodeNil()
  5273. return
  5274. }
  5275. ee, esep := e.e, e.hh.hasElemSeparators()
  5276. ee.WriteMapStart(len(v))
  5277. if e.h.Canonical {
  5278. v2 := make([]float64, len(v))
  5279. var i int
  5280. for k, _ := range v {
  5281. v2[i] = float64(k)
  5282. i++
  5283. }
  5284. sort.Sort(floatSlice(v2))
  5285. if esep {
  5286. for _, k2 := range v2 {
  5287. ee.WriteMapElemKey()
  5288. ee.EncodeFloat64(float64(k2))
  5289. ee.WriteMapElemValue()
  5290. ee.EncodeFloat32(v[float64(k2)])
  5291. }
  5292. } else {
  5293. for _, k2 := range v2 {
  5294. ee.EncodeFloat64(float64(k2))
  5295. ee.EncodeFloat32(v[float64(k2)])
  5296. }
  5297. }
  5298. } else {
  5299. if esep {
  5300. for k2, v2 := range v {
  5301. ee.WriteMapElemKey()
  5302. ee.EncodeFloat64(k2)
  5303. ee.WriteMapElemValue()
  5304. ee.EncodeFloat32(v2)
  5305. }
  5306. } else {
  5307. for k2, v2 := range v {
  5308. ee.EncodeFloat64(k2)
  5309. ee.EncodeFloat32(v2)
  5310. }
  5311. }
  5312. }
  5313. ee.WriteMapEnd()
  5314. }
  5315. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  5316. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  5317. }
  5318. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
  5319. if v == nil {
  5320. e.e.EncodeNil()
  5321. return
  5322. }
  5323. ee, esep := e.e, e.hh.hasElemSeparators()
  5324. ee.WriteMapStart(len(v))
  5325. if e.h.Canonical {
  5326. v2 := make([]float64, len(v))
  5327. var i int
  5328. for k, _ := range v {
  5329. v2[i] = float64(k)
  5330. i++
  5331. }
  5332. sort.Sort(floatSlice(v2))
  5333. if esep {
  5334. for _, k2 := range v2 {
  5335. ee.WriteMapElemKey()
  5336. ee.EncodeFloat64(float64(k2))
  5337. ee.WriteMapElemValue()
  5338. ee.EncodeFloat64(v[float64(k2)])
  5339. }
  5340. } else {
  5341. for _, k2 := range v2 {
  5342. ee.EncodeFloat64(float64(k2))
  5343. ee.EncodeFloat64(v[float64(k2)])
  5344. }
  5345. }
  5346. } else {
  5347. if esep {
  5348. for k2, v2 := range v {
  5349. ee.WriteMapElemKey()
  5350. ee.EncodeFloat64(k2)
  5351. ee.WriteMapElemValue()
  5352. ee.EncodeFloat64(v2)
  5353. }
  5354. } else {
  5355. for k2, v2 := range v {
  5356. ee.EncodeFloat64(k2)
  5357. ee.EncodeFloat64(v2)
  5358. }
  5359. }
  5360. }
  5361. ee.WriteMapEnd()
  5362. }
  5363. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  5364. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  5365. }
  5366. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  5367. if v == nil {
  5368. e.e.EncodeNil()
  5369. return
  5370. }
  5371. ee, esep := e.e, e.hh.hasElemSeparators()
  5372. ee.WriteMapStart(len(v))
  5373. if e.h.Canonical {
  5374. v2 := make([]float64, len(v))
  5375. var i int
  5376. for k, _ := range v {
  5377. v2[i] = float64(k)
  5378. i++
  5379. }
  5380. sort.Sort(floatSlice(v2))
  5381. if esep {
  5382. for _, k2 := range v2 {
  5383. ee.WriteMapElemKey()
  5384. ee.EncodeFloat64(float64(k2))
  5385. ee.WriteMapElemValue()
  5386. ee.EncodeBool(v[float64(k2)])
  5387. }
  5388. } else {
  5389. for _, k2 := range v2 {
  5390. ee.EncodeFloat64(float64(k2))
  5391. ee.EncodeBool(v[float64(k2)])
  5392. }
  5393. }
  5394. } else {
  5395. if esep {
  5396. for k2, v2 := range v {
  5397. ee.WriteMapElemKey()
  5398. ee.EncodeFloat64(k2)
  5399. ee.WriteMapElemValue()
  5400. ee.EncodeBool(v2)
  5401. }
  5402. } else {
  5403. for k2, v2 := range v {
  5404. ee.EncodeFloat64(k2)
  5405. ee.EncodeBool(v2)
  5406. }
  5407. }
  5408. }
  5409. ee.WriteMapEnd()
  5410. }
  5411. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  5412. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  5413. }
  5414. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  5415. if v == nil {
  5416. e.e.EncodeNil()
  5417. return
  5418. }
  5419. ee, esep := e.e, e.hh.hasElemSeparators()
  5420. ee.WriteMapStart(len(v))
  5421. if e.h.Canonical {
  5422. v2 := make([]uint64, len(v))
  5423. var i int
  5424. for k, _ := range v {
  5425. v2[i] = uint64(k)
  5426. i++
  5427. }
  5428. sort.Sort(uintSlice(v2))
  5429. if esep {
  5430. for _, k2 := range v2 {
  5431. ee.WriteMapElemKey()
  5432. ee.EncodeUint(uint64(uint(k2)))
  5433. ee.WriteMapElemValue()
  5434. e.encode(v[uint(k2)])
  5435. }
  5436. } else {
  5437. for _, k2 := range v2 {
  5438. ee.EncodeUint(uint64(uint(k2)))
  5439. e.encode(v[uint(k2)])
  5440. }
  5441. }
  5442. } else {
  5443. if esep {
  5444. for k2, v2 := range v {
  5445. ee.WriteMapElemKey()
  5446. ee.EncodeUint(uint64(k2))
  5447. ee.WriteMapElemValue()
  5448. e.encode(v2)
  5449. }
  5450. } else {
  5451. for k2, v2 := range v {
  5452. ee.EncodeUint(uint64(k2))
  5453. e.encode(v2)
  5454. }
  5455. }
  5456. }
  5457. ee.WriteMapEnd()
  5458. }
  5459. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  5460. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  5461. }
  5462. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  5463. if v == nil {
  5464. e.e.EncodeNil()
  5465. return
  5466. }
  5467. ee, esep := e.e, e.hh.hasElemSeparators()
  5468. ee.WriteMapStart(len(v))
  5469. if e.h.Canonical {
  5470. v2 := make([]uint64, len(v))
  5471. var i int
  5472. for k, _ := range v {
  5473. v2[i] = uint64(k)
  5474. i++
  5475. }
  5476. sort.Sort(uintSlice(v2))
  5477. if esep {
  5478. for _, k2 := range v2 {
  5479. ee.WriteMapElemKey()
  5480. ee.EncodeUint(uint64(uint(k2)))
  5481. ee.WriteMapElemValue()
  5482. ee.EncodeString(cUTF8, v[uint(k2)])
  5483. }
  5484. } else {
  5485. for _, k2 := range v2 {
  5486. ee.EncodeUint(uint64(uint(k2)))
  5487. ee.EncodeString(cUTF8, v[uint(k2)])
  5488. }
  5489. }
  5490. } else {
  5491. if esep {
  5492. for k2, v2 := range v {
  5493. ee.WriteMapElemKey()
  5494. ee.EncodeUint(uint64(k2))
  5495. ee.WriteMapElemValue()
  5496. ee.EncodeString(cUTF8, v2)
  5497. }
  5498. } else {
  5499. for k2, v2 := range v {
  5500. ee.EncodeUint(uint64(k2))
  5501. ee.EncodeString(cUTF8, v2)
  5502. }
  5503. }
  5504. }
  5505. ee.WriteMapEnd()
  5506. }
  5507. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  5508. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  5509. }
  5510. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  5511. if v == nil {
  5512. e.e.EncodeNil()
  5513. return
  5514. }
  5515. ee, esep := e.e, e.hh.hasElemSeparators()
  5516. ee.WriteMapStart(len(v))
  5517. if e.h.Canonical {
  5518. v2 := make([]uint64, len(v))
  5519. var i int
  5520. for k, _ := range v {
  5521. v2[i] = uint64(k)
  5522. i++
  5523. }
  5524. sort.Sort(uintSlice(v2))
  5525. if esep {
  5526. for _, k2 := range v2 {
  5527. ee.WriteMapElemKey()
  5528. ee.EncodeUint(uint64(uint(k2)))
  5529. ee.WriteMapElemValue()
  5530. ee.EncodeUint(uint64(v[uint(k2)]))
  5531. }
  5532. } else {
  5533. for _, k2 := range v2 {
  5534. ee.EncodeUint(uint64(uint(k2)))
  5535. ee.EncodeUint(uint64(v[uint(k2)]))
  5536. }
  5537. }
  5538. } else {
  5539. if esep {
  5540. for k2, v2 := range v {
  5541. ee.WriteMapElemKey()
  5542. ee.EncodeUint(uint64(k2))
  5543. ee.WriteMapElemValue()
  5544. ee.EncodeUint(uint64(v2))
  5545. }
  5546. } else {
  5547. for k2, v2 := range v {
  5548. ee.EncodeUint(uint64(k2))
  5549. ee.EncodeUint(uint64(v2))
  5550. }
  5551. }
  5552. }
  5553. ee.WriteMapEnd()
  5554. }
  5555. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  5556. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  5557. }
  5558. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  5559. if v == nil {
  5560. e.e.EncodeNil()
  5561. return
  5562. }
  5563. ee, esep := e.e, e.hh.hasElemSeparators()
  5564. ee.WriteMapStart(len(v))
  5565. if e.h.Canonical {
  5566. v2 := make([]uint64, len(v))
  5567. var i int
  5568. for k, _ := range v {
  5569. v2[i] = uint64(k)
  5570. i++
  5571. }
  5572. sort.Sort(uintSlice(v2))
  5573. if esep {
  5574. for _, k2 := range v2 {
  5575. ee.WriteMapElemKey()
  5576. ee.EncodeUint(uint64(uint(k2)))
  5577. ee.WriteMapElemValue()
  5578. ee.EncodeUint(uint64(v[uint(k2)]))
  5579. }
  5580. } else {
  5581. for _, k2 := range v2 {
  5582. ee.EncodeUint(uint64(uint(k2)))
  5583. ee.EncodeUint(uint64(v[uint(k2)]))
  5584. }
  5585. }
  5586. } else {
  5587. if esep {
  5588. for k2, v2 := range v {
  5589. ee.WriteMapElemKey()
  5590. ee.EncodeUint(uint64(k2))
  5591. ee.WriteMapElemValue()
  5592. ee.EncodeUint(uint64(v2))
  5593. }
  5594. } else {
  5595. for k2, v2 := range v {
  5596. ee.EncodeUint(uint64(k2))
  5597. ee.EncodeUint(uint64(v2))
  5598. }
  5599. }
  5600. }
  5601. ee.WriteMapEnd()
  5602. }
  5603. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  5604. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  5605. }
  5606. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  5607. if v == nil {
  5608. e.e.EncodeNil()
  5609. return
  5610. }
  5611. ee, esep := e.e, e.hh.hasElemSeparators()
  5612. ee.WriteMapStart(len(v))
  5613. if e.h.Canonical {
  5614. v2 := make([]uint64, len(v))
  5615. var i int
  5616. for k, _ := range v {
  5617. v2[i] = uint64(k)
  5618. i++
  5619. }
  5620. sort.Sort(uintSlice(v2))
  5621. if esep {
  5622. for _, k2 := range v2 {
  5623. ee.WriteMapElemKey()
  5624. ee.EncodeUint(uint64(uint(k2)))
  5625. ee.WriteMapElemValue()
  5626. ee.EncodeUint(uint64(v[uint(k2)]))
  5627. }
  5628. } else {
  5629. for _, k2 := range v2 {
  5630. ee.EncodeUint(uint64(uint(k2)))
  5631. ee.EncodeUint(uint64(v[uint(k2)]))
  5632. }
  5633. }
  5634. } else {
  5635. if esep {
  5636. for k2, v2 := range v {
  5637. ee.WriteMapElemKey()
  5638. ee.EncodeUint(uint64(k2))
  5639. ee.WriteMapElemValue()
  5640. ee.EncodeUint(uint64(v2))
  5641. }
  5642. } else {
  5643. for k2, v2 := range v {
  5644. ee.EncodeUint(uint64(k2))
  5645. ee.EncodeUint(uint64(v2))
  5646. }
  5647. }
  5648. }
  5649. ee.WriteMapEnd()
  5650. }
  5651. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  5652. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  5653. }
  5654. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  5655. if v == nil {
  5656. e.e.EncodeNil()
  5657. return
  5658. }
  5659. ee, esep := e.e, e.hh.hasElemSeparators()
  5660. ee.WriteMapStart(len(v))
  5661. if e.h.Canonical {
  5662. v2 := make([]uint64, len(v))
  5663. var i int
  5664. for k, _ := range v {
  5665. v2[i] = uint64(k)
  5666. i++
  5667. }
  5668. sort.Sort(uintSlice(v2))
  5669. if esep {
  5670. for _, k2 := range v2 {
  5671. ee.WriteMapElemKey()
  5672. ee.EncodeUint(uint64(uint(k2)))
  5673. ee.WriteMapElemValue()
  5674. ee.EncodeUint(uint64(v[uint(k2)]))
  5675. }
  5676. } else {
  5677. for _, k2 := range v2 {
  5678. ee.EncodeUint(uint64(uint(k2)))
  5679. ee.EncodeUint(uint64(v[uint(k2)]))
  5680. }
  5681. }
  5682. } else {
  5683. if esep {
  5684. for k2, v2 := range v {
  5685. ee.WriteMapElemKey()
  5686. ee.EncodeUint(uint64(k2))
  5687. ee.WriteMapElemValue()
  5688. ee.EncodeUint(uint64(v2))
  5689. }
  5690. } else {
  5691. for k2, v2 := range v {
  5692. ee.EncodeUint(uint64(k2))
  5693. ee.EncodeUint(uint64(v2))
  5694. }
  5695. }
  5696. }
  5697. ee.WriteMapEnd()
  5698. }
  5699. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  5700. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  5701. }
  5702. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  5703. if v == nil {
  5704. e.e.EncodeNil()
  5705. return
  5706. }
  5707. ee, esep := e.e, e.hh.hasElemSeparators()
  5708. ee.WriteMapStart(len(v))
  5709. if e.h.Canonical {
  5710. v2 := make([]uint64, len(v))
  5711. var i int
  5712. for k, _ := range v {
  5713. v2[i] = uint64(k)
  5714. i++
  5715. }
  5716. sort.Sort(uintSlice(v2))
  5717. if esep {
  5718. for _, k2 := range v2 {
  5719. ee.WriteMapElemKey()
  5720. ee.EncodeUint(uint64(uint(k2)))
  5721. ee.WriteMapElemValue()
  5722. ee.EncodeUint(uint64(v[uint(k2)]))
  5723. }
  5724. } else {
  5725. for _, k2 := range v2 {
  5726. ee.EncodeUint(uint64(uint(k2)))
  5727. ee.EncodeUint(uint64(v[uint(k2)]))
  5728. }
  5729. }
  5730. } else {
  5731. if esep {
  5732. for k2, v2 := range v {
  5733. ee.WriteMapElemKey()
  5734. ee.EncodeUint(uint64(k2))
  5735. ee.WriteMapElemValue()
  5736. ee.EncodeUint(uint64(v2))
  5737. }
  5738. } else {
  5739. for k2, v2 := range v {
  5740. ee.EncodeUint(uint64(k2))
  5741. ee.EncodeUint(uint64(v2))
  5742. }
  5743. }
  5744. }
  5745. ee.WriteMapEnd()
  5746. }
  5747. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  5748. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  5749. }
  5750. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  5751. if v == nil {
  5752. e.e.EncodeNil()
  5753. return
  5754. }
  5755. ee, esep := e.e, e.hh.hasElemSeparators()
  5756. ee.WriteMapStart(len(v))
  5757. if e.h.Canonical {
  5758. v2 := make([]uint64, len(v))
  5759. var i int
  5760. for k, _ := range v {
  5761. v2[i] = uint64(k)
  5762. i++
  5763. }
  5764. sort.Sort(uintSlice(v2))
  5765. if esep {
  5766. for _, k2 := range v2 {
  5767. ee.WriteMapElemKey()
  5768. ee.EncodeUint(uint64(uint(k2)))
  5769. ee.WriteMapElemValue()
  5770. e.encode(v[uint(k2)])
  5771. }
  5772. } else {
  5773. for _, k2 := range v2 {
  5774. ee.EncodeUint(uint64(uint(k2)))
  5775. e.encode(v[uint(k2)])
  5776. }
  5777. }
  5778. } else {
  5779. if esep {
  5780. for k2, v2 := range v {
  5781. ee.WriteMapElemKey()
  5782. ee.EncodeUint(uint64(k2))
  5783. ee.WriteMapElemValue()
  5784. e.encode(v2)
  5785. }
  5786. } else {
  5787. for k2, v2 := range v {
  5788. ee.EncodeUint(uint64(k2))
  5789. e.encode(v2)
  5790. }
  5791. }
  5792. }
  5793. ee.WriteMapEnd()
  5794. }
  5795. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  5796. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  5797. }
  5798. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  5799. if v == nil {
  5800. e.e.EncodeNil()
  5801. return
  5802. }
  5803. ee, esep := e.e, e.hh.hasElemSeparators()
  5804. ee.WriteMapStart(len(v))
  5805. if e.h.Canonical {
  5806. v2 := make([]uint64, len(v))
  5807. var i int
  5808. for k, _ := range v {
  5809. v2[i] = uint64(k)
  5810. i++
  5811. }
  5812. sort.Sort(uintSlice(v2))
  5813. if esep {
  5814. for _, k2 := range v2 {
  5815. ee.WriteMapElemKey()
  5816. ee.EncodeUint(uint64(uint(k2)))
  5817. ee.WriteMapElemValue()
  5818. ee.EncodeInt(int64(v[uint(k2)]))
  5819. }
  5820. } else {
  5821. for _, k2 := range v2 {
  5822. ee.EncodeUint(uint64(uint(k2)))
  5823. ee.EncodeInt(int64(v[uint(k2)]))
  5824. }
  5825. }
  5826. } else {
  5827. if esep {
  5828. for k2, v2 := range v {
  5829. ee.WriteMapElemKey()
  5830. ee.EncodeUint(uint64(k2))
  5831. ee.WriteMapElemValue()
  5832. ee.EncodeInt(int64(v2))
  5833. }
  5834. } else {
  5835. for k2, v2 := range v {
  5836. ee.EncodeUint(uint64(k2))
  5837. ee.EncodeInt(int64(v2))
  5838. }
  5839. }
  5840. }
  5841. ee.WriteMapEnd()
  5842. }
  5843. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  5844. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  5845. }
  5846. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  5847. if v == nil {
  5848. e.e.EncodeNil()
  5849. return
  5850. }
  5851. ee, esep := e.e, e.hh.hasElemSeparators()
  5852. ee.WriteMapStart(len(v))
  5853. if e.h.Canonical {
  5854. v2 := make([]uint64, len(v))
  5855. var i int
  5856. for k, _ := range v {
  5857. v2[i] = uint64(k)
  5858. i++
  5859. }
  5860. sort.Sort(uintSlice(v2))
  5861. if esep {
  5862. for _, k2 := range v2 {
  5863. ee.WriteMapElemKey()
  5864. ee.EncodeUint(uint64(uint(k2)))
  5865. ee.WriteMapElemValue()
  5866. ee.EncodeInt(int64(v[uint(k2)]))
  5867. }
  5868. } else {
  5869. for _, k2 := range v2 {
  5870. ee.EncodeUint(uint64(uint(k2)))
  5871. ee.EncodeInt(int64(v[uint(k2)]))
  5872. }
  5873. }
  5874. } else {
  5875. if esep {
  5876. for k2, v2 := range v {
  5877. ee.WriteMapElemKey()
  5878. ee.EncodeUint(uint64(k2))
  5879. ee.WriteMapElemValue()
  5880. ee.EncodeInt(int64(v2))
  5881. }
  5882. } else {
  5883. for k2, v2 := range v {
  5884. ee.EncodeUint(uint64(k2))
  5885. ee.EncodeInt(int64(v2))
  5886. }
  5887. }
  5888. }
  5889. ee.WriteMapEnd()
  5890. }
  5891. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  5892. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  5893. }
  5894. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  5895. if v == nil {
  5896. e.e.EncodeNil()
  5897. return
  5898. }
  5899. ee, esep := e.e, e.hh.hasElemSeparators()
  5900. ee.WriteMapStart(len(v))
  5901. if e.h.Canonical {
  5902. v2 := make([]uint64, len(v))
  5903. var i int
  5904. for k, _ := range v {
  5905. v2[i] = uint64(k)
  5906. i++
  5907. }
  5908. sort.Sort(uintSlice(v2))
  5909. if esep {
  5910. for _, k2 := range v2 {
  5911. ee.WriteMapElemKey()
  5912. ee.EncodeUint(uint64(uint(k2)))
  5913. ee.WriteMapElemValue()
  5914. ee.EncodeInt(int64(v[uint(k2)]))
  5915. }
  5916. } else {
  5917. for _, k2 := range v2 {
  5918. ee.EncodeUint(uint64(uint(k2)))
  5919. ee.EncodeInt(int64(v[uint(k2)]))
  5920. }
  5921. }
  5922. } else {
  5923. if esep {
  5924. for k2, v2 := range v {
  5925. ee.WriteMapElemKey()
  5926. ee.EncodeUint(uint64(k2))
  5927. ee.WriteMapElemValue()
  5928. ee.EncodeInt(int64(v2))
  5929. }
  5930. } else {
  5931. for k2, v2 := range v {
  5932. ee.EncodeUint(uint64(k2))
  5933. ee.EncodeInt(int64(v2))
  5934. }
  5935. }
  5936. }
  5937. ee.WriteMapEnd()
  5938. }
  5939. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  5940. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  5941. }
  5942. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  5943. if v == nil {
  5944. e.e.EncodeNil()
  5945. return
  5946. }
  5947. ee, esep := e.e, e.hh.hasElemSeparators()
  5948. ee.WriteMapStart(len(v))
  5949. if e.h.Canonical {
  5950. v2 := make([]uint64, len(v))
  5951. var i int
  5952. for k, _ := range v {
  5953. v2[i] = uint64(k)
  5954. i++
  5955. }
  5956. sort.Sort(uintSlice(v2))
  5957. if esep {
  5958. for _, k2 := range v2 {
  5959. ee.WriteMapElemKey()
  5960. ee.EncodeUint(uint64(uint(k2)))
  5961. ee.WriteMapElemValue()
  5962. ee.EncodeInt(int64(v[uint(k2)]))
  5963. }
  5964. } else {
  5965. for _, k2 := range v2 {
  5966. ee.EncodeUint(uint64(uint(k2)))
  5967. ee.EncodeInt(int64(v[uint(k2)]))
  5968. }
  5969. }
  5970. } else {
  5971. if esep {
  5972. for k2, v2 := range v {
  5973. ee.WriteMapElemKey()
  5974. ee.EncodeUint(uint64(k2))
  5975. ee.WriteMapElemValue()
  5976. ee.EncodeInt(int64(v2))
  5977. }
  5978. } else {
  5979. for k2, v2 := range v {
  5980. ee.EncodeUint(uint64(k2))
  5981. ee.EncodeInt(int64(v2))
  5982. }
  5983. }
  5984. }
  5985. ee.WriteMapEnd()
  5986. }
  5987. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  5988. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  5989. }
  5990. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  5991. if v == nil {
  5992. e.e.EncodeNil()
  5993. return
  5994. }
  5995. ee, esep := e.e, e.hh.hasElemSeparators()
  5996. ee.WriteMapStart(len(v))
  5997. if e.h.Canonical {
  5998. v2 := make([]uint64, len(v))
  5999. var i int
  6000. for k, _ := range v {
  6001. v2[i] = uint64(k)
  6002. i++
  6003. }
  6004. sort.Sort(uintSlice(v2))
  6005. if esep {
  6006. for _, k2 := range v2 {
  6007. ee.WriteMapElemKey()
  6008. ee.EncodeUint(uint64(uint(k2)))
  6009. ee.WriteMapElemValue()
  6010. ee.EncodeInt(int64(v[uint(k2)]))
  6011. }
  6012. } else {
  6013. for _, k2 := range v2 {
  6014. ee.EncodeUint(uint64(uint(k2)))
  6015. ee.EncodeInt(int64(v[uint(k2)]))
  6016. }
  6017. }
  6018. } else {
  6019. if esep {
  6020. for k2, v2 := range v {
  6021. ee.WriteMapElemKey()
  6022. ee.EncodeUint(uint64(k2))
  6023. ee.WriteMapElemValue()
  6024. ee.EncodeInt(int64(v2))
  6025. }
  6026. } else {
  6027. for k2, v2 := range v {
  6028. ee.EncodeUint(uint64(k2))
  6029. ee.EncodeInt(int64(v2))
  6030. }
  6031. }
  6032. }
  6033. ee.WriteMapEnd()
  6034. }
  6035. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  6036. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  6037. }
  6038. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  6039. if v == nil {
  6040. e.e.EncodeNil()
  6041. return
  6042. }
  6043. ee, esep := e.e, e.hh.hasElemSeparators()
  6044. ee.WriteMapStart(len(v))
  6045. if e.h.Canonical {
  6046. v2 := make([]uint64, len(v))
  6047. var i int
  6048. for k, _ := range v {
  6049. v2[i] = uint64(k)
  6050. i++
  6051. }
  6052. sort.Sort(uintSlice(v2))
  6053. if esep {
  6054. for _, k2 := range v2 {
  6055. ee.WriteMapElemKey()
  6056. ee.EncodeUint(uint64(uint(k2)))
  6057. ee.WriteMapElemValue()
  6058. ee.EncodeFloat32(v[uint(k2)])
  6059. }
  6060. } else {
  6061. for _, k2 := range v2 {
  6062. ee.EncodeUint(uint64(uint(k2)))
  6063. ee.EncodeFloat32(v[uint(k2)])
  6064. }
  6065. }
  6066. } else {
  6067. if esep {
  6068. for k2, v2 := range v {
  6069. ee.WriteMapElemKey()
  6070. ee.EncodeUint(uint64(k2))
  6071. ee.WriteMapElemValue()
  6072. ee.EncodeFloat32(v2)
  6073. }
  6074. } else {
  6075. for k2, v2 := range v {
  6076. ee.EncodeUint(uint64(k2))
  6077. ee.EncodeFloat32(v2)
  6078. }
  6079. }
  6080. }
  6081. ee.WriteMapEnd()
  6082. }
  6083. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  6084. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  6085. }
  6086. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  6087. if v == nil {
  6088. e.e.EncodeNil()
  6089. return
  6090. }
  6091. ee, esep := e.e, e.hh.hasElemSeparators()
  6092. ee.WriteMapStart(len(v))
  6093. if e.h.Canonical {
  6094. v2 := make([]uint64, len(v))
  6095. var i int
  6096. for k, _ := range v {
  6097. v2[i] = uint64(k)
  6098. i++
  6099. }
  6100. sort.Sort(uintSlice(v2))
  6101. if esep {
  6102. for _, k2 := range v2 {
  6103. ee.WriteMapElemKey()
  6104. ee.EncodeUint(uint64(uint(k2)))
  6105. ee.WriteMapElemValue()
  6106. ee.EncodeFloat64(v[uint(k2)])
  6107. }
  6108. } else {
  6109. for _, k2 := range v2 {
  6110. ee.EncodeUint(uint64(uint(k2)))
  6111. ee.EncodeFloat64(v[uint(k2)])
  6112. }
  6113. }
  6114. } else {
  6115. if esep {
  6116. for k2, v2 := range v {
  6117. ee.WriteMapElemKey()
  6118. ee.EncodeUint(uint64(k2))
  6119. ee.WriteMapElemValue()
  6120. ee.EncodeFloat64(v2)
  6121. }
  6122. } else {
  6123. for k2, v2 := range v {
  6124. ee.EncodeUint(uint64(k2))
  6125. ee.EncodeFloat64(v2)
  6126. }
  6127. }
  6128. }
  6129. ee.WriteMapEnd()
  6130. }
  6131. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  6132. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  6133. }
  6134. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  6135. if v == nil {
  6136. e.e.EncodeNil()
  6137. return
  6138. }
  6139. ee, esep := e.e, e.hh.hasElemSeparators()
  6140. ee.WriteMapStart(len(v))
  6141. if e.h.Canonical {
  6142. v2 := make([]uint64, len(v))
  6143. var i int
  6144. for k, _ := range v {
  6145. v2[i] = uint64(k)
  6146. i++
  6147. }
  6148. sort.Sort(uintSlice(v2))
  6149. if esep {
  6150. for _, k2 := range v2 {
  6151. ee.WriteMapElemKey()
  6152. ee.EncodeUint(uint64(uint(k2)))
  6153. ee.WriteMapElemValue()
  6154. ee.EncodeBool(v[uint(k2)])
  6155. }
  6156. } else {
  6157. for _, k2 := range v2 {
  6158. ee.EncodeUint(uint64(uint(k2)))
  6159. ee.EncodeBool(v[uint(k2)])
  6160. }
  6161. }
  6162. } else {
  6163. if esep {
  6164. for k2, v2 := range v {
  6165. ee.WriteMapElemKey()
  6166. ee.EncodeUint(uint64(k2))
  6167. ee.WriteMapElemValue()
  6168. ee.EncodeBool(v2)
  6169. }
  6170. } else {
  6171. for k2, v2 := range v {
  6172. ee.EncodeUint(uint64(k2))
  6173. ee.EncodeBool(v2)
  6174. }
  6175. }
  6176. }
  6177. ee.WriteMapEnd()
  6178. }
  6179. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  6180. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  6181. }
  6182. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  6183. if v == nil {
  6184. e.e.EncodeNil()
  6185. return
  6186. }
  6187. ee, esep := e.e, e.hh.hasElemSeparators()
  6188. ee.WriteMapStart(len(v))
  6189. if e.h.Canonical {
  6190. v2 := make([]uint64, len(v))
  6191. var i int
  6192. for k, _ := range v {
  6193. v2[i] = uint64(k)
  6194. i++
  6195. }
  6196. sort.Sort(uintSlice(v2))
  6197. if esep {
  6198. for _, k2 := range v2 {
  6199. ee.WriteMapElemKey()
  6200. ee.EncodeUint(uint64(uint8(k2)))
  6201. ee.WriteMapElemValue()
  6202. e.encode(v[uint8(k2)])
  6203. }
  6204. } else {
  6205. for _, k2 := range v2 {
  6206. ee.EncodeUint(uint64(uint8(k2)))
  6207. e.encode(v[uint8(k2)])
  6208. }
  6209. }
  6210. } else {
  6211. if esep {
  6212. for k2, v2 := range v {
  6213. ee.WriteMapElemKey()
  6214. ee.EncodeUint(uint64(k2))
  6215. ee.WriteMapElemValue()
  6216. e.encode(v2)
  6217. }
  6218. } else {
  6219. for k2, v2 := range v {
  6220. ee.EncodeUint(uint64(k2))
  6221. e.encode(v2)
  6222. }
  6223. }
  6224. }
  6225. ee.WriteMapEnd()
  6226. }
  6227. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  6228. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  6229. }
  6230. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  6231. if v == nil {
  6232. e.e.EncodeNil()
  6233. return
  6234. }
  6235. ee, esep := e.e, e.hh.hasElemSeparators()
  6236. ee.WriteMapStart(len(v))
  6237. if e.h.Canonical {
  6238. v2 := make([]uint64, len(v))
  6239. var i int
  6240. for k, _ := range v {
  6241. v2[i] = uint64(k)
  6242. i++
  6243. }
  6244. sort.Sort(uintSlice(v2))
  6245. if esep {
  6246. for _, k2 := range v2 {
  6247. ee.WriteMapElemKey()
  6248. ee.EncodeUint(uint64(uint8(k2)))
  6249. ee.WriteMapElemValue()
  6250. ee.EncodeString(cUTF8, v[uint8(k2)])
  6251. }
  6252. } else {
  6253. for _, k2 := range v2 {
  6254. ee.EncodeUint(uint64(uint8(k2)))
  6255. ee.EncodeString(cUTF8, v[uint8(k2)])
  6256. }
  6257. }
  6258. } else {
  6259. if esep {
  6260. for k2, v2 := range v {
  6261. ee.WriteMapElemKey()
  6262. ee.EncodeUint(uint64(k2))
  6263. ee.WriteMapElemValue()
  6264. ee.EncodeString(cUTF8, v2)
  6265. }
  6266. } else {
  6267. for k2, v2 := range v {
  6268. ee.EncodeUint(uint64(k2))
  6269. ee.EncodeString(cUTF8, v2)
  6270. }
  6271. }
  6272. }
  6273. ee.WriteMapEnd()
  6274. }
  6275. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  6276. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  6277. }
  6278. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  6279. if v == nil {
  6280. e.e.EncodeNil()
  6281. return
  6282. }
  6283. ee, esep := e.e, e.hh.hasElemSeparators()
  6284. ee.WriteMapStart(len(v))
  6285. if e.h.Canonical {
  6286. v2 := make([]uint64, len(v))
  6287. var i int
  6288. for k, _ := range v {
  6289. v2[i] = uint64(k)
  6290. i++
  6291. }
  6292. sort.Sort(uintSlice(v2))
  6293. if esep {
  6294. for _, k2 := range v2 {
  6295. ee.WriteMapElemKey()
  6296. ee.EncodeUint(uint64(uint8(k2)))
  6297. ee.WriteMapElemValue()
  6298. ee.EncodeUint(uint64(v[uint8(k2)]))
  6299. }
  6300. } else {
  6301. for _, k2 := range v2 {
  6302. ee.EncodeUint(uint64(uint8(k2)))
  6303. ee.EncodeUint(uint64(v[uint8(k2)]))
  6304. }
  6305. }
  6306. } else {
  6307. if esep {
  6308. for k2, v2 := range v {
  6309. ee.WriteMapElemKey()
  6310. ee.EncodeUint(uint64(k2))
  6311. ee.WriteMapElemValue()
  6312. ee.EncodeUint(uint64(v2))
  6313. }
  6314. } else {
  6315. for k2, v2 := range v {
  6316. ee.EncodeUint(uint64(k2))
  6317. ee.EncodeUint(uint64(v2))
  6318. }
  6319. }
  6320. }
  6321. ee.WriteMapEnd()
  6322. }
  6323. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  6324. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  6325. }
  6326. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  6327. if v == nil {
  6328. e.e.EncodeNil()
  6329. return
  6330. }
  6331. ee, esep := e.e, e.hh.hasElemSeparators()
  6332. ee.WriteMapStart(len(v))
  6333. if e.h.Canonical {
  6334. v2 := make([]uint64, len(v))
  6335. var i int
  6336. for k, _ := range v {
  6337. v2[i] = uint64(k)
  6338. i++
  6339. }
  6340. sort.Sort(uintSlice(v2))
  6341. if esep {
  6342. for _, k2 := range v2 {
  6343. ee.WriteMapElemKey()
  6344. ee.EncodeUint(uint64(uint8(k2)))
  6345. ee.WriteMapElemValue()
  6346. ee.EncodeUint(uint64(v[uint8(k2)]))
  6347. }
  6348. } else {
  6349. for _, k2 := range v2 {
  6350. ee.EncodeUint(uint64(uint8(k2)))
  6351. ee.EncodeUint(uint64(v[uint8(k2)]))
  6352. }
  6353. }
  6354. } else {
  6355. if esep {
  6356. for k2, v2 := range v {
  6357. ee.WriteMapElemKey()
  6358. ee.EncodeUint(uint64(k2))
  6359. ee.WriteMapElemValue()
  6360. ee.EncodeUint(uint64(v2))
  6361. }
  6362. } else {
  6363. for k2, v2 := range v {
  6364. ee.EncodeUint(uint64(k2))
  6365. ee.EncodeUint(uint64(v2))
  6366. }
  6367. }
  6368. }
  6369. ee.WriteMapEnd()
  6370. }
  6371. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  6372. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  6373. }
  6374. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  6375. if v == nil {
  6376. e.e.EncodeNil()
  6377. return
  6378. }
  6379. ee, esep := e.e, e.hh.hasElemSeparators()
  6380. ee.WriteMapStart(len(v))
  6381. if e.h.Canonical {
  6382. v2 := make([]uint64, len(v))
  6383. var i int
  6384. for k, _ := range v {
  6385. v2[i] = uint64(k)
  6386. i++
  6387. }
  6388. sort.Sort(uintSlice(v2))
  6389. if esep {
  6390. for _, k2 := range v2 {
  6391. ee.WriteMapElemKey()
  6392. ee.EncodeUint(uint64(uint8(k2)))
  6393. ee.WriteMapElemValue()
  6394. ee.EncodeUint(uint64(v[uint8(k2)]))
  6395. }
  6396. } else {
  6397. for _, k2 := range v2 {
  6398. ee.EncodeUint(uint64(uint8(k2)))
  6399. ee.EncodeUint(uint64(v[uint8(k2)]))
  6400. }
  6401. }
  6402. } else {
  6403. if esep {
  6404. for k2, v2 := range v {
  6405. ee.WriteMapElemKey()
  6406. ee.EncodeUint(uint64(k2))
  6407. ee.WriteMapElemValue()
  6408. ee.EncodeUint(uint64(v2))
  6409. }
  6410. } else {
  6411. for k2, v2 := range v {
  6412. ee.EncodeUint(uint64(k2))
  6413. ee.EncodeUint(uint64(v2))
  6414. }
  6415. }
  6416. }
  6417. ee.WriteMapEnd()
  6418. }
  6419. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  6420. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  6421. }
  6422. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  6423. if v == nil {
  6424. e.e.EncodeNil()
  6425. return
  6426. }
  6427. ee, esep := e.e, e.hh.hasElemSeparators()
  6428. ee.WriteMapStart(len(v))
  6429. if e.h.Canonical {
  6430. v2 := make([]uint64, len(v))
  6431. var i int
  6432. for k, _ := range v {
  6433. v2[i] = uint64(k)
  6434. i++
  6435. }
  6436. sort.Sort(uintSlice(v2))
  6437. if esep {
  6438. for _, k2 := range v2 {
  6439. ee.WriteMapElemKey()
  6440. ee.EncodeUint(uint64(uint8(k2)))
  6441. ee.WriteMapElemValue()
  6442. ee.EncodeUint(uint64(v[uint8(k2)]))
  6443. }
  6444. } else {
  6445. for _, k2 := range v2 {
  6446. ee.EncodeUint(uint64(uint8(k2)))
  6447. ee.EncodeUint(uint64(v[uint8(k2)]))
  6448. }
  6449. }
  6450. } else {
  6451. if esep {
  6452. for k2, v2 := range v {
  6453. ee.WriteMapElemKey()
  6454. ee.EncodeUint(uint64(k2))
  6455. ee.WriteMapElemValue()
  6456. ee.EncodeUint(uint64(v2))
  6457. }
  6458. } else {
  6459. for k2, v2 := range v {
  6460. ee.EncodeUint(uint64(k2))
  6461. ee.EncodeUint(uint64(v2))
  6462. }
  6463. }
  6464. }
  6465. ee.WriteMapEnd()
  6466. }
  6467. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  6468. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  6469. }
  6470. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  6471. if v == nil {
  6472. e.e.EncodeNil()
  6473. return
  6474. }
  6475. ee, esep := e.e, e.hh.hasElemSeparators()
  6476. ee.WriteMapStart(len(v))
  6477. if e.h.Canonical {
  6478. v2 := make([]uint64, len(v))
  6479. var i int
  6480. for k, _ := range v {
  6481. v2[i] = uint64(k)
  6482. i++
  6483. }
  6484. sort.Sort(uintSlice(v2))
  6485. if esep {
  6486. for _, k2 := range v2 {
  6487. ee.WriteMapElemKey()
  6488. ee.EncodeUint(uint64(uint8(k2)))
  6489. ee.WriteMapElemValue()
  6490. ee.EncodeUint(uint64(v[uint8(k2)]))
  6491. }
  6492. } else {
  6493. for _, k2 := range v2 {
  6494. ee.EncodeUint(uint64(uint8(k2)))
  6495. ee.EncodeUint(uint64(v[uint8(k2)]))
  6496. }
  6497. }
  6498. } else {
  6499. if esep {
  6500. for k2, v2 := range v {
  6501. ee.WriteMapElemKey()
  6502. ee.EncodeUint(uint64(k2))
  6503. ee.WriteMapElemValue()
  6504. ee.EncodeUint(uint64(v2))
  6505. }
  6506. } else {
  6507. for k2, v2 := range v {
  6508. ee.EncodeUint(uint64(k2))
  6509. ee.EncodeUint(uint64(v2))
  6510. }
  6511. }
  6512. }
  6513. ee.WriteMapEnd()
  6514. }
  6515. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  6516. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  6517. }
  6518. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  6519. if v == nil {
  6520. e.e.EncodeNil()
  6521. return
  6522. }
  6523. ee, esep := e.e, e.hh.hasElemSeparators()
  6524. ee.WriteMapStart(len(v))
  6525. if e.h.Canonical {
  6526. v2 := make([]uint64, len(v))
  6527. var i int
  6528. for k, _ := range v {
  6529. v2[i] = uint64(k)
  6530. i++
  6531. }
  6532. sort.Sort(uintSlice(v2))
  6533. if esep {
  6534. for _, k2 := range v2 {
  6535. ee.WriteMapElemKey()
  6536. ee.EncodeUint(uint64(uint8(k2)))
  6537. ee.WriteMapElemValue()
  6538. e.encode(v[uint8(k2)])
  6539. }
  6540. } else {
  6541. for _, k2 := range v2 {
  6542. ee.EncodeUint(uint64(uint8(k2)))
  6543. e.encode(v[uint8(k2)])
  6544. }
  6545. }
  6546. } else {
  6547. if esep {
  6548. for k2, v2 := range v {
  6549. ee.WriteMapElemKey()
  6550. ee.EncodeUint(uint64(k2))
  6551. ee.WriteMapElemValue()
  6552. e.encode(v2)
  6553. }
  6554. } else {
  6555. for k2, v2 := range v {
  6556. ee.EncodeUint(uint64(k2))
  6557. e.encode(v2)
  6558. }
  6559. }
  6560. }
  6561. ee.WriteMapEnd()
  6562. }
  6563. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  6564. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  6565. }
  6566. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  6567. if v == nil {
  6568. e.e.EncodeNil()
  6569. return
  6570. }
  6571. ee, esep := e.e, e.hh.hasElemSeparators()
  6572. ee.WriteMapStart(len(v))
  6573. if e.h.Canonical {
  6574. v2 := make([]uint64, len(v))
  6575. var i int
  6576. for k, _ := range v {
  6577. v2[i] = uint64(k)
  6578. i++
  6579. }
  6580. sort.Sort(uintSlice(v2))
  6581. if esep {
  6582. for _, k2 := range v2 {
  6583. ee.WriteMapElemKey()
  6584. ee.EncodeUint(uint64(uint8(k2)))
  6585. ee.WriteMapElemValue()
  6586. ee.EncodeInt(int64(v[uint8(k2)]))
  6587. }
  6588. } else {
  6589. for _, k2 := range v2 {
  6590. ee.EncodeUint(uint64(uint8(k2)))
  6591. ee.EncodeInt(int64(v[uint8(k2)]))
  6592. }
  6593. }
  6594. } else {
  6595. if esep {
  6596. for k2, v2 := range v {
  6597. ee.WriteMapElemKey()
  6598. ee.EncodeUint(uint64(k2))
  6599. ee.WriteMapElemValue()
  6600. ee.EncodeInt(int64(v2))
  6601. }
  6602. } else {
  6603. for k2, v2 := range v {
  6604. ee.EncodeUint(uint64(k2))
  6605. ee.EncodeInt(int64(v2))
  6606. }
  6607. }
  6608. }
  6609. ee.WriteMapEnd()
  6610. }
  6611. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  6612. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  6613. }
  6614. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  6615. if v == nil {
  6616. e.e.EncodeNil()
  6617. return
  6618. }
  6619. ee, esep := e.e, e.hh.hasElemSeparators()
  6620. ee.WriteMapStart(len(v))
  6621. if e.h.Canonical {
  6622. v2 := make([]uint64, len(v))
  6623. var i int
  6624. for k, _ := range v {
  6625. v2[i] = uint64(k)
  6626. i++
  6627. }
  6628. sort.Sort(uintSlice(v2))
  6629. if esep {
  6630. for _, k2 := range v2 {
  6631. ee.WriteMapElemKey()
  6632. ee.EncodeUint(uint64(uint8(k2)))
  6633. ee.WriteMapElemValue()
  6634. ee.EncodeInt(int64(v[uint8(k2)]))
  6635. }
  6636. } else {
  6637. for _, k2 := range v2 {
  6638. ee.EncodeUint(uint64(uint8(k2)))
  6639. ee.EncodeInt(int64(v[uint8(k2)]))
  6640. }
  6641. }
  6642. } else {
  6643. if esep {
  6644. for k2, v2 := range v {
  6645. ee.WriteMapElemKey()
  6646. ee.EncodeUint(uint64(k2))
  6647. ee.WriteMapElemValue()
  6648. ee.EncodeInt(int64(v2))
  6649. }
  6650. } else {
  6651. for k2, v2 := range v {
  6652. ee.EncodeUint(uint64(k2))
  6653. ee.EncodeInt(int64(v2))
  6654. }
  6655. }
  6656. }
  6657. ee.WriteMapEnd()
  6658. }
  6659. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  6660. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  6661. }
  6662. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  6663. if v == nil {
  6664. e.e.EncodeNil()
  6665. return
  6666. }
  6667. ee, esep := e.e, e.hh.hasElemSeparators()
  6668. ee.WriteMapStart(len(v))
  6669. if e.h.Canonical {
  6670. v2 := make([]uint64, len(v))
  6671. var i int
  6672. for k, _ := range v {
  6673. v2[i] = uint64(k)
  6674. i++
  6675. }
  6676. sort.Sort(uintSlice(v2))
  6677. if esep {
  6678. for _, k2 := range v2 {
  6679. ee.WriteMapElemKey()
  6680. ee.EncodeUint(uint64(uint8(k2)))
  6681. ee.WriteMapElemValue()
  6682. ee.EncodeInt(int64(v[uint8(k2)]))
  6683. }
  6684. } else {
  6685. for _, k2 := range v2 {
  6686. ee.EncodeUint(uint64(uint8(k2)))
  6687. ee.EncodeInt(int64(v[uint8(k2)]))
  6688. }
  6689. }
  6690. } else {
  6691. if esep {
  6692. for k2, v2 := range v {
  6693. ee.WriteMapElemKey()
  6694. ee.EncodeUint(uint64(k2))
  6695. ee.WriteMapElemValue()
  6696. ee.EncodeInt(int64(v2))
  6697. }
  6698. } else {
  6699. for k2, v2 := range v {
  6700. ee.EncodeUint(uint64(k2))
  6701. ee.EncodeInt(int64(v2))
  6702. }
  6703. }
  6704. }
  6705. ee.WriteMapEnd()
  6706. }
  6707. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  6708. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  6709. }
  6710. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  6711. if v == nil {
  6712. e.e.EncodeNil()
  6713. return
  6714. }
  6715. ee, esep := e.e, e.hh.hasElemSeparators()
  6716. ee.WriteMapStart(len(v))
  6717. if e.h.Canonical {
  6718. v2 := make([]uint64, len(v))
  6719. var i int
  6720. for k, _ := range v {
  6721. v2[i] = uint64(k)
  6722. i++
  6723. }
  6724. sort.Sort(uintSlice(v2))
  6725. if esep {
  6726. for _, k2 := range v2 {
  6727. ee.WriteMapElemKey()
  6728. ee.EncodeUint(uint64(uint8(k2)))
  6729. ee.WriteMapElemValue()
  6730. ee.EncodeInt(int64(v[uint8(k2)]))
  6731. }
  6732. } else {
  6733. for _, k2 := range v2 {
  6734. ee.EncodeUint(uint64(uint8(k2)))
  6735. ee.EncodeInt(int64(v[uint8(k2)]))
  6736. }
  6737. }
  6738. } else {
  6739. if esep {
  6740. for k2, v2 := range v {
  6741. ee.WriteMapElemKey()
  6742. ee.EncodeUint(uint64(k2))
  6743. ee.WriteMapElemValue()
  6744. ee.EncodeInt(int64(v2))
  6745. }
  6746. } else {
  6747. for k2, v2 := range v {
  6748. ee.EncodeUint(uint64(k2))
  6749. ee.EncodeInt(int64(v2))
  6750. }
  6751. }
  6752. }
  6753. ee.WriteMapEnd()
  6754. }
  6755. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  6756. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  6757. }
  6758. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  6759. if v == nil {
  6760. e.e.EncodeNil()
  6761. return
  6762. }
  6763. ee, esep := e.e, e.hh.hasElemSeparators()
  6764. ee.WriteMapStart(len(v))
  6765. if e.h.Canonical {
  6766. v2 := make([]uint64, len(v))
  6767. var i int
  6768. for k, _ := range v {
  6769. v2[i] = uint64(k)
  6770. i++
  6771. }
  6772. sort.Sort(uintSlice(v2))
  6773. if esep {
  6774. for _, k2 := range v2 {
  6775. ee.WriteMapElemKey()
  6776. ee.EncodeUint(uint64(uint8(k2)))
  6777. ee.WriteMapElemValue()
  6778. ee.EncodeInt(int64(v[uint8(k2)]))
  6779. }
  6780. } else {
  6781. for _, k2 := range v2 {
  6782. ee.EncodeUint(uint64(uint8(k2)))
  6783. ee.EncodeInt(int64(v[uint8(k2)]))
  6784. }
  6785. }
  6786. } else {
  6787. if esep {
  6788. for k2, v2 := range v {
  6789. ee.WriteMapElemKey()
  6790. ee.EncodeUint(uint64(k2))
  6791. ee.WriteMapElemValue()
  6792. ee.EncodeInt(int64(v2))
  6793. }
  6794. } else {
  6795. for k2, v2 := range v {
  6796. ee.EncodeUint(uint64(k2))
  6797. ee.EncodeInt(int64(v2))
  6798. }
  6799. }
  6800. }
  6801. ee.WriteMapEnd()
  6802. }
  6803. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  6804. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  6805. }
  6806. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  6807. if v == nil {
  6808. e.e.EncodeNil()
  6809. return
  6810. }
  6811. ee, esep := e.e, e.hh.hasElemSeparators()
  6812. ee.WriteMapStart(len(v))
  6813. if e.h.Canonical {
  6814. v2 := make([]uint64, len(v))
  6815. var i int
  6816. for k, _ := range v {
  6817. v2[i] = uint64(k)
  6818. i++
  6819. }
  6820. sort.Sort(uintSlice(v2))
  6821. if esep {
  6822. for _, k2 := range v2 {
  6823. ee.WriteMapElemKey()
  6824. ee.EncodeUint(uint64(uint8(k2)))
  6825. ee.WriteMapElemValue()
  6826. ee.EncodeFloat32(v[uint8(k2)])
  6827. }
  6828. } else {
  6829. for _, k2 := range v2 {
  6830. ee.EncodeUint(uint64(uint8(k2)))
  6831. ee.EncodeFloat32(v[uint8(k2)])
  6832. }
  6833. }
  6834. } else {
  6835. if esep {
  6836. for k2, v2 := range v {
  6837. ee.WriteMapElemKey()
  6838. ee.EncodeUint(uint64(k2))
  6839. ee.WriteMapElemValue()
  6840. ee.EncodeFloat32(v2)
  6841. }
  6842. } else {
  6843. for k2, v2 := range v {
  6844. ee.EncodeUint(uint64(k2))
  6845. ee.EncodeFloat32(v2)
  6846. }
  6847. }
  6848. }
  6849. ee.WriteMapEnd()
  6850. }
  6851. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  6852. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  6853. }
  6854. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  6855. if v == nil {
  6856. e.e.EncodeNil()
  6857. return
  6858. }
  6859. ee, esep := e.e, e.hh.hasElemSeparators()
  6860. ee.WriteMapStart(len(v))
  6861. if e.h.Canonical {
  6862. v2 := make([]uint64, len(v))
  6863. var i int
  6864. for k, _ := range v {
  6865. v2[i] = uint64(k)
  6866. i++
  6867. }
  6868. sort.Sort(uintSlice(v2))
  6869. if esep {
  6870. for _, k2 := range v2 {
  6871. ee.WriteMapElemKey()
  6872. ee.EncodeUint(uint64(uint8(k2)))
  6873. ee.WriteMapElemValue()
  6874. ee.EncodeFloat64(v[uint8(k2)])
  6875. }
  6876. } else {
  6877. for _, k2 := range v2 {
  6878. ee.EncodeUint(uint64(uint8(k2)))
  6879. ee.EncodeFloat64(v[uint8(k2)])
  6880. }
  6881. }
  6882. } else {
  6883. if esep {
  6884. for k2, v2 := range v {
  6885. ee.WriteMapElemKey()
  6886. ee.EncodeUint(uint64(k2))
  6887. ee.WriteMapElemValue()
  6888. ee.EncodeFloat64(v2)
  6889. }
  6890. } else {
  6891. for k2, v2 := range v {
  6892. ee.EncodeUint(uint64(k2))
  6893. ee.EncodeFloat64(v2)
  6894. }
  6895. }
  6896. }
  6897. ee.WriteMapEnd()
  6898. }
  6899. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  6900. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  6901. }
  6902. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  6903. if v == nil {
  6904. e.e.EncodeNil()
  6905. return
  6906. }
  6907. ee, esep := e.e, e.hh.hasElemSeparators()
  6908. ee.WriteMapStart(len(v))
  6909. if e.h.Canonical {
  6910. v2 := make([]uint64, len(v))
  6911. var i int
  6912. for k, _ := range v {
  6913. v2[i] = uint64(k)
  6914. i++
  6915. }
  6916. sort.Sort(uintSlice(v2))
  6917. if esep {
  6918. for _, k2 := range v2 {
  6919. ee.WriteMapElemKey()
  6920. ee.EncodeUint(uint64(uint8(k2)))
  6921. ee.WriteMapElemValue()
  6922. ee.EncodeBool(v[uint8(k2)])
  6923. }
  6924. } else {
  6925. for _, k2 := range v2 {
  6926. ee.EncodeUint(uint64(uint8(k2)))
  6927. ee.EncodeBool(v[uint8(k2)])
  6928. }
  6929. }
  6930. } else {
  6931. if esep {
  6932. for k2, v2 := range v {
  6933. ee.WriteMapElemKey()
  6934. ee.EncodeUint(uint64(k2))
  6935. ee.WriteMapElemValue()
  6936. ee.EncodeBool(v2)
  6937. }
  6938. } else {
  6939. for k2, v2 := range v {
  6940. ee.EncodeUint(uint64(k2))
  6941. ee.EncodeBool(v2)
  6942. }
  6943. }
  6944. }
  6945. ee.WriteMapEnd()
  6946. }
  6947. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  6948. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  6949. }
  6950. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  6951. if v == nil {
  6952. e.e.EncodeNil()
  6953. return
  6954. }
  6955. ee, esep := e.e, e.hh.hasElemSeparators()
  6956. ee.WriteMapStart(len(v))
  6957. if e.h.Canonical {
  6958. v2 := make([]uint64, len(v))
  6959. var i int
  6960. for k, _ := range v {
  6961. v2[i] = uint64(k)
  6962. i++
  6963. }
  6964. sort.Sort(uintSlice(v2))
  6965. if esep {
  6966. for _, k2 := range v2 {
  6967. ee.WriteMapElemKey()
  6968. ee.EncodeUint(uint64(uint16(k2)))
  6969. ee.WriteMapElemValue()
  6970. e.encode(v[uint16(k2)])
  6971. }
  6972. } else {
  6973. for _, k2 := range v2 {
  6974. ee.EncodeUint(uint64(uint16(k2)))
  6975. e.encode(v[uint16(k2)])
  6976. }
  6977. }
  6978. } else {
  6979. if esep {
  6980. for k2, v2 := range v {
  6981. ee.WriteMapElemKey()
  6982. ee.EncodeUint(uint64(k2))
  6983. ee.WriteMapElemValue()
  6984. e.encode(v2)
  6985. }
  6986. } else {
  6987. for k2, v2 := range v {
  6988. ee.EncodeUint(uint64(k2))
  6989. e.encode(v2)
  6990. }
  6991. }
  6992. }
  6993. ee.WriteMapEnd()
  6994. }
  6995. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  6996. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  6997. }
  6998. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  6999. if v == nil {
  7000. e.e.EncodeNil()
  7001. return
  7002. }
  7003. ee, esep := e.e, e.hh.hasElemSeparators()
  7004. ee.WriteMapStart(len(v))
  7005. if e.h.Canonical {
  7006. v2 := make([]uint64, len(v))
  7007. var i int
  7008. for k, _ := range v {
  7009. v2[i] = uint64(k)
  7010. i++
  7011. }
  7012. sort.Sort(uintSlice(v2))
  7013. if esep {
  7014. for _, k2 := range v2 {
  7015. ee.WriteMapElemKey()
  7016. ee.EncodeUint(uint64(uint16(k2)))
  7017. ee.WriteMapElemValue()
  7018. ee.EncodeString(cUTF8, v[uint16(k2)])
  7019. }
  7020. } else {
  7021. for _, k2 := range v2 {
  7022. ee.EncodeUint(uint64(uint16(k2)))
  7023. ee.EncodeString(cUTF8, v[uint16(k2)])
  7024. }
  7025. }
  7026. } else {
  7027. if esep {
  7028. for k2, v2 := range v {
  7029. ee.WriteMapElemKey()
  7030. ee.EncodeUint(uint64(k2))
  7031. ee.WriteMapElemValue()
  7032. ee.EncodeString(cUTF8, v2)
  7033. }
  7034. } else {
  7035. for k2, v2 := range v {
  7036. ee.EncodeUint(uint64(k2))
  7037. ee.EncodeString(cUTF8, v2)
  7038. }
  7039. }
  7040. }
  7041. ee.WriteMapEnd()
  7042. }
  7043. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  7044. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  7045. }
  7046. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
  7047. if v == nil {
  7048. e.e.EncodeNil()
  7049. return
  7050. }
  7051. ee, esep := e.e, e.hh.hasElemSeparators()
  7052. ee.WriteMapStart(len(v))
  7053. if e.h.Canonical {
  7054. v2 := make([]uint64, len(v))
  7055. var i int
  7056. for k, _ := range v {
  7057. v2[i] = uint64(k)
  7058. i++
  7059. }
  7060. sort.Sort(uintSlice(v2))
  7061. if esep {
  7062. for _, k2 := range v2 {
  7063. ee.WriteMapElemKey()
  7064. ee.EncodeUint(uint64(uint16(k2)))
  7065. ee.WriteMapElemValue()
  7066. ee.EncodeUint(uint64(v[uint16(k2)]))
  7067. }
  7068. } else {
  7069. for _, k2 := range v2 {
  7070. ee.EncodeUint(uint64(uint16(k2)))
  7071. ee.EncodeUint(uint64(v[uint16(k2)]))
  7072. }
  7073. }
  7074. } else {
  7075. if esep {
  7076. for k2, v2 := range v {
  7077. ee.WriteMapElemKey()
  7078. ee.EncodeUint(uint64(k2))
  7079. ee.WriteMapElemValue()
  7080. ee.EncodeUint(uint64(v2))
  7081. }
  7082. } else {
  7083. for k2, v2 := range v {
  7084. ee.EncodeUint(uint64(k2))
  7085. ee.EncodeUint(uint64(v2))
  7086. }
  7087. }
  7088. }
  7089. ee.WriteMapEnd()
  7090. }
  7091. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  7092. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  7093. }
  7094. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  7095. if v == nil {
  7096. e.e.EncodeNil()
  7097. return
  7098. }
  7099. ee, esep := e.e, e.hh.hasElemSeparators()
  7100. ee.WriteMapStart(len(v))
  7101. if e.h.Canonical {
  7102. v2 := make([]uint64, len(v))
  7103. var i int
  7104. for k, _ := range v {
  7105. v2[i] = uint64(k)
  7106. i++
  7107. }
  7108. sort.Sort(uintSlice(v2))
  7109. if esep {
  7110. for _, k2 := range v2 {
  7111. ee.WriteMapElemKey()
  7112. ee.EncodeUint(uint64(uint16(k2)))
  7113. ee.WriteMapElemValue()
  7114. ee.EncodeUint(uint64(v[uint16(k2)]))
  7115. }
  7116. } else {
  7117. for _, k2 := range v2 {
  7118. ee.EncodeUint(uint64(uint16(k2)))
  7119. ee.EncodeUint(uint64(v[uint16(k2)]))
  7120. }
  7121. }
  7122. } else {
  7123. if esep {
  7124. for k2, v2 := range v {
  7125. ee.WriteMapElemKey()
  7126. ee.EncodeUint(uint64(k2))
  7127. ee.WriteMapElemValue()
  7128. ee.EncodeUint(uint64(v2))
  7129. }
  7130. } else {
  7131. for k2, v2 := range v {
  7132. ee.EncodeUint(uint64(k2))
  7133. ee.EncodeUint(uint64(v2))
  7134. }
  7135. }
  7136. }
  7137. ee.WriteMapEnd()
  7138. }
  7139. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  7140. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  7141. }
  7142. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  7143. if v == nil {
  7144. e.e.EncodeNil()
  7145. return
  7146. }
  7147. ee, esep := e.e, e.hh.hasElemSeparators()
  7148. ee.WriteMapStart(len(v))
  7149. if e.h.Canonical {
  7150. v2 := make([]uint64, len(v))
  7151. var i int
  7152. for k, _ := range v {
  7153. v2[i] = uint64(k)
  7154. i++
  7155. }
  7156. sort.Sort(uintSlice(v2))
  7157. if esep {
  7158. for _, k2 := range v2 {
  7159. ee.WriteMapElemKey()
  7160. ee.EncodeUint(uint64(uint16(k2)))
  7161. ee.WriteMapElemValue()
  7162. ee.EncodeUint(uint64(v[uint16(k2)]))
  7163. }
  7164. } else {
  7165. for _, k2 := range v2 {
  7166. ee.EncodeUint(uint64(uint16(k2)))
  7167. ee.EncodeUint(uint64(v[uint16(k2)]))
  7168. }
  7169. }
  7170. } else {
  7171. if esep {
  7172. for k2, v2 := range v {
  7173. ee.WriteMapElemKey()
  7174. ee.EncodeUint(uint64(k2))
  7175. ee.WriteMapElemValue()
  7176. ee.EncodeUint(uint64(v2))
  7177. }
  7178. } else {
  7179. for k2, v2 := range v {
  7180. ee.EncodeUint(uint64(k2))
  7181. ee.EncodeUint(uint64(v2))
  7182. }
  7183. }
  7184. }
  7185. ee.WriteMapEnd()
  7186. }
  7187. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  7188. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  7189. }
  7190. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  7191. if v == nil {
  7192. e.e.EncodeNil()
  7193. return
  7194. }
  7195. ee, esep := e.e, e.hh.hasElemSeparators()
  7196. ee.WriteMapStart(len(v))
  7197. if e.h.Canonical {
  7198. v2 := make([]uint64, len(v))
  7199. var i int
  7200. for k, _ := range v {
  7201. v2[i] = uint64(k)
  7202. i++
  7203. }
  7204. sort.Sort(uintSlice(v2))
  7205. if esep {
  7206. for _, k2 := range v2 {
  7207. ee.WriteMapElemKey()
  7208. ee.EncodeUint(uint64(uint16(k2)))
  7209. ee.WriteMapElemValue()
  7210. ee.EncodeUint(uint64(v[uint16(k2)]))
  7211. }
  7212. } else {
  7213. for _, k2 := range v2 {
  7214. ee.EncodeUint(uint64(uint16(k2)))
  7215. ee.EncodeUint(uint64(v[uint16(k2)]))
  7216. }
  7217. }
  7218. } else {
  7219. if esep {
  7220. for k2, v2 := range v {
  7221. ee.WriteMapElemKey()
  7222. ee.EncodeUint(uint64(k2))
  7223. ee.WriteMapElemValue()
  7224. ee.EncodeUint(uint64(v2))
  7225. }
  7226. } else {
  7227. for k2, v2 := range v {
  7228. ee.EncodeUint(uint64(k2))
  7229. ee.EncodeUint(uint64(v2))
  7230. }
  7231. }
  7232. }
  7233. ee.WriteMapEnd()
  7234. }
  7235. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  7236. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  7237. }
  7238. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  7239. if v == nil {
  7240. e.e.EncodeNil()
  7241. return
  7242. }
  7243. ee, esep := e.e, e.hh.hasElemSeparators()
  7244. ee.WriteMapStart(len(v))
  7245. if e.h.Canonical {
  7246. v2 := make([]uint64, len(v))
  7247. var i int
  7248. for k, _ := range v {
  7249. v2[i] = uint64(k)
  7250. i++
  7251. }
  7252. sort.Sort(uintSlice(v2))
  7253. if esep {
  7254. for _, k2 := range v2 {
  7255. ee.WriteMapElemKey()
  7256. ee.EncodeUint(uint64(uint16(k2)))
  7257. ee.WriteMapElemValue()
  7258. ee.EncodeUint(uint64(v[uint16(k2)]))
  7259. }
  7260. } else {
  7261. for _, k2 := range v2 {
  7262. ee.EncodeUint(uint64(uint16(k2)))
  7263. ee.EncodeUint(uint64(v[uint16(k2)]))
  7264. }
  7265. }
  7266. } else {
  7267. if esep {
  7268. for k2, v2 := range v {
  7269. ee.WriteMapElemKey()
  7270. ee.EncodeUint(uint64(k2))
  7271. ee.WriteMapElemValue()
  7272. ee.EncodeUint(uint64(v2))
  7273. }
  7274. } else {
  7275. for k2, v2 := range v {
  7276. ee.EncodeUint(uint64(k2))
  7277. ee.EncodeUint(uint64(v2))
  7278. }
  7279. }
  7280. }
  7281. ee.WriteMapEnd()
  7282. }
  7283. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  7284. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  7285. }
  7286. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  7287. if v == nil {
  7288. e.e.EncodeNil()
  7289. return
  7290. }
  7291. ee, esep := e.e, e.hh.hasElemSeparators()
  7292. ee.WriteMapStart(len(v))
  7293. if e.h.Canonical {
  7294. v2 := make([]uint64, len(v))
  7295. var i int
  7296. for k, _ := range v {
  7297. v2[i] = uint64(k)
  7298. i++
  7299. }
  7300. sort.Sort(uintSlice(v2))
  7301. if esep {
  7302. for _, k2 := range v2 {
  7303. ee.WriteMapElemKey()
  7304. ee.EncodeUint(uint64(uint16(k2)))
  7305. ee.WriteMapElemValue()
  7306. e.encode(v[uint16(k2)])
  7307. }
  7308. } else {
  7309. for _, k2 := range v2 {
  7310. ee.EncodeUint(uint64(uint16(k2)))
  7311. e.encode(v[uint16(k2)])
  7312. }
  7313. }
  7314. } else {
  7315. if esep {
  7316. for k2, v2 := range v {
  7317. ee.WriteMapElemKey()
  7318. ee.EncodeUint(uint64(k2))
  7319. ee.WriteMapElemValue()
  7320. e.encode(v2)
  7321. }
  7322. } else {
  7323. for k2, v2 := range v {
  7324. ee.EncodeUint(uint64(k2))
  7325. e.encode(v2)
  7326. }
  7327. }
  7328. }
  7329. ee.WriteMapEnd()
  7330. }
  7331. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  7332. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  7333. }
  7334. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  7335. if v == nil {
  7336. e.e.EncodeNil()
  7337. return
  7338. }
  7339. ee, esep := e.e, e.hh.hasElemSeparators()
  7340. ee.WriteMapStart(len(v))
  7341. if e.h.Canonical {
  7342. v2 := make([]uint64, len(v))
  7343. var i int
  7344. for k, _ := range v {
  7345. v2[i] = uint64(k)
  7346. i++
  7347. }
  7348. sort.Sort(uintSlice(v2))
  7349. if esep {
  7350. for _, k2 := range v2 {
  7351. ee.WriteMapElemKey()
  7352. ee.EncodeUint(uint64(uint16(k2)))
  7353. ee.WriteMapElemValue()
  7354. ee.EncodeInt(int64(v[uint16(k2)]))
  7355. }
  7356. } else {
  7357. for _, k2 := range v2 {
  7358. ee.EncodeUint(uint64(uint16(k2)))
  7359. ee.EncodeInt(int64(v[uint16(k2)]))
  7360. }
  7361. }
  7362. } else {
  7363. if esep {
  7364. for k2, v2 := range v {
  7365. ee.WriteMapElemKey()
  7366. ee.EncodeUint(uint64(k2))
  7367. ee.WriteMapElemValue()
  7368. ee.EncodeInt(int64(v2))
  7369. }
  7370. } else {
  7371. for k2, v2 := range v {
  7372. ee.EncodeUint(uint64(k2))
  7373. ee.EncodeInt(int64(v2))
  7374. }
  7375. }
  7376. }
  7377. ee.WriteMapEnd()
  7378. }
  7379. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  7380. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  7381. }
  7382. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  7383. if v == nil {
  7384. e.e.EncodeNil()
  7385. return
  7386. }
  7387. ee, esep := e.e, e.hh.hasElemSeparators()
  7388. ee.WriteMapStart(len(v))
  7389. if e.h.Canonical {
  7390. v2 := make([]uint64, len(v))
  7391. var i int
  7392. for k, _ := range v {
  7393. v2[i] = uint64(k)
  7394. i++
  7395. }
  7396. sort.Sort(uintSlice(v2))
  7397. if esep {
  7398. for _, k2 := range v2 {
  7399. ee.WriteMapElemKey()
  7400. ee.EncodeUint(uint64(uint16(k2)))
  7401. ee.WriteMapElemValue()
  7402. ee.EncodeInt(int64(v[uint16(k2)]))
  7403. }
  7404. } else {
  7405. for _, k2 := range v2 {
  7406. ee.EncodeUint(uint64(uint16(k2)))
  7407. ee.EncodeInt(int64(v[uint16(k2)]))
  7408. }
  7409. }
  7410. } else {
  7411. if esep {
  7412. for k2, v2 := range v {
  7413. ee.WriteMapElemKey()
  7414. ee.EncodeUint(uint64(k2))
  7415. ee.WriteMapElemValue()
  7416. ee.EncodeInt(int64(v2))
  7417. }
  7418. } else {
  7419. for k2, v2 := range v {
  7420. ee.EncodeUint(uint64(k2))
  7421. ee.EncodeInt(int64(v2))
  7422. }
  7423. }
  7424. }
  7425. ee.WriteMapEnd()
  7426. }
  7427. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  7428. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  7429. }
  7430. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
  7431. if v == nil {
  7432. e.e.EncodeNil()
  7433. return
  7434. }
  7435. ee, esep := e.e, e.hh.hasElemSeparators()
  7436. ee.WriteMapStart(len(v))
  7437. if e.h.Canonical {
  7438. v2 := make([]uint64, len(v))
  7439. var i int
  7440. for k, _ := range v {
  7441. v2[i] = uint64(k)
  7442. i++
  7443. }
  7444. sort.Sort(uintSlice(v2))
  7445. if esep {
  7446. for _, k2 := range v2 {
  7447. ee.WriteMapElemKey()
  7448. ee.EncodeUint(uint64(uint16(k2)))
  7449. ee.WriteMapElemValue()
  7450. ee.EncodeInt(int64(v[uint16(k2)]))
  7451. }
  7452. } else {
  7453. for _, k2 := range v2 {
  7454. ee.EncodeUint(uint64(uint16(k2)))
  7455. ee.EncodeInt(int64(v[uint16(k2)]))
  7456. }
  7457. }
  7458. } else {
  7459. if esep {
  7460. for k2, v2 := range v {
  7461. ee.WriteMapElemKey()
  7462. ee.EncodeUint(uint64(k2))
  7463. ee.WriteMapElemValue()
  7464. ee.EncodeInt(int64(v2))
  7465. }
  7466. } else {
  7467. for k2, v2 := range v {
  7468. ee.EncodeUint(uint64(k2))
  7469. ee.EncodeInt(int64(v2))
  7470. }
  7471. }
  7472. }
  7473. ee.WriteMapEnd()
  7474. }
  7475. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  7476. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  7477. }
  7478. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  7479. if v == nil {
  7480. e.e.EncodeNil()
  7481. return
  7482. }
  7483. ee, esep := e.e, e.hh.hasElemSeparators()
  7484. ee.WriteMapStart(len(v))
  7485. if e.h.Canonical {
  7486. v2 := make([]uint64, len(v))
  7487. var i int
  7488. for k, _ := range v {
  7489. v2[i] = uint64(k)
  7490. i++
  7491. }
  7492. sort.Sort(uintSlice(v2))
  7493. if esep {
  7494. for _, k2 := range v2 {
  7495. ee.WriteMapElemKey()
  7496. ee.EncodeUint(uint64(uint16(k2)))
  7497. ee.WriteMapElemValue()
  7498. ee.EncodeInt(int64(v[uint16(k2)]))
  7499. }
  7500. } else {
  7501. for _, k2 := range v2 {
  7502. ee.EncodeUint(uint64(uint16(k2)))
  7503. ee.EncodeInt(int64(v[uint16(k2)]))
  7504. }
  7505. }
  7506. } else {
  7507. if esep {
  7508. for k2, v2 := range v {
  7509. ee.WriteMapElemKey()
  7510. ee.EncodeUint(uint64(k2))
  7511. ee.WriteMapElemValue()
  7512. ee.EncodeInt(int64(v2))
  7513. }
  7514. } else {
  7515. for k2, v2 := range v {
  7516. ee.EncodeUint(uint64(k2))
  7517. ee.EncodeInt(int64(v2))
  7518. }
  7519. }
  7520. }
  7521. ee.WriteMapEnd()
  7522. }
  7523. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  7524. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  7525. }
  7526. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  7527. if v == nil {
  7528. e.e.EncodeNil()
  7529. return
  7530. }
  7531. ee, esep := e.e, e.hh.hasElemSeparators()
  7532. ee.WriteMapStart(len(v))
  7533. if e.h.Canonical {
  7534. v2 := make([]uint64, len(v))
  7535. var i int
  7536. for k, _ := range v {
  7537. v2[i] = uint64(k)
  7538. i++
  7539. }
  7540. sort.Sort(uintSlice(v2))
  7541. if esep {
  7542. for _, k2 := range v2 {
  7543. ee.WriteMapElemKey()
  7544. ee.EncodeUint(uint64(uint16(k2)))
  7545. ee.WriteMapElemValue()
  7546. ee.EncodeInt(int64(v[uint16(k2)]))
  7547. }
  7548. } else {
  7549. for _, k2 := range v2 {
  7550. ee.EncodeUint(uint64(uint16(k2)))
  7551. ee.EncodeInt(int64(v[uint16(k2)]))
  7552. }
  7553. }
  7554. } else {
  7555. if esep {
  7556. for k2, v2 := range v {
  7557. ee.WriteMapElemKey()
  7558. ee.EncodeUint(uint64(k2))
  7559. ee.WriteMapElemValue()
  7560. ee.EncodeInt(int64(v2))
  7561. }
  7562. } else {
  7563. for k2, v2 := range v {
  7564. ee.EncodeUint(uint64(k2))
  7565. ee.EncodeInt(int64(v2))
  7566. }
  7567. }
  7568. }
  7569. ee.WriteMapEnd()
  7570. }
  7571. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  7572. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  7573. }
  7574. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  7575. if v == nil {
  7576. e.e.EncodeNil()
  7577. return
  7578. }
  7579. ee, esep := e.e, e.hh.hasElemSeparators()
  7580. ee.WriteMapStart(len(v))
  7581. if e.h.Canonical {
  7582. v2 := make([]uint64, len(v))
  7583. var i int
  7584. for k, _ := range v {
  7585. v2[i] = uint64(k)
  7586. i++
  7587. }
  7588. sort.Sort(uintSlice(v2))
  7589. if esep {
  7590. for _, k2 := range v2 {
  7591. ee.WriteMapElemKey()
  7592. ee.EncodeUint(uint64(uint16(k2)))
  7593. ee.WriteMapElemValue()
  7594. ee.EncodeFloat32(v[uint16(k2)])
  7595. }
  7596. } else {
  7597. for _, k2 := range v2 {
  7598. ee.EncodeUint(uint64(uint16(k2)))
  7599. ee.EncodeFloat32(v[uint16(k2)])
  7600. }
  7601. }
  7602. } else {
  7603. if esep {
  7604. for k2, v2 := range v {
  7605. ee.WriteMapElemKey()
  7606. ee.EncodeUint(uint64(k2))
  7607. ee.WriteMapElemValue()
  7608. ee.EncodeFloat32(v2)
  7609. }
  7610. } else {
  7611. for k2, v2 := range v {
  7612. ee.EncodeUint(uint64(k2))
  7613. ee.EncodeFloat32(v2)
  7614. }
  7615. }
  7616. }
  7617. ee.WriteMapEnd()
  7618. }
  7619. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  7620. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  7621. }
  7622. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  7623. if v == nil {
  7624. e.e.EncodeNil()
  7625. return
  7626. }
  7627. ee, esep := e.e, e.hh.hasElemSeparators()
  7628. ee.WriteMapStart(len(v))
  7629. if e.h.Canonical {
  7630. v2 := make([]uint64, len(v))
  7631. var i int
  7632. for k, _ := range v {
  7633. v2[i] = uint64(k)
  7634. i++
  7635. }
  7636. sort.Sort(uintSlice(v2))
  7637. if esep {
  7638. for _, k2 := range v2 {
  7639. ee.WriteMapElemKey()
  7640. ee.EncodeUint(uint64(uint16(k2)))
  7641. ee.WriteMapElemValue()
  7642. ee.EncodeFloat64(v[uint16(k2)])
  7643. }
  7644. } else {
  7645. for _, k2 := range v2 {
  7646. ee.EncodeUint(uint64(uint16(k2)))
  7647. ee.EncodeFloat64(v[uint16(k2)])
  7648. }
  7649. }
  7650. } else {
  7651. if esep {
  7652. for k2, v2 := range v {
  7653. ee.WriteMapElemKey()
  7654. ee.EncodeUint(uint64(k2))
  7655. ee.WriteMapElemValue()
  7656. ee.EncodeFloat64(v2)
  7657. }
  7658. } else {
  7659. for k2, v2 := range v {
  7660. ee.EncodeUint(uint64(k2))
  7661. ee.EncodeFloat64(v2)
  7662. }
  7663. }
  7664. }
  7665. ee.WriteMapEnd()
  7666. }
  7667. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  7668. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  7669. }
  7670. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  7671. if v == nil {
  7672. e.e.EncodeNil()
  7673. return
  7674. }
  7675. ee, esep := e.e, e.hh.hasElemSeparators()
  7676. ee.WriteMapStart(len(v))
  7677. if e.h.Canonical {
  7678. v2 := make([]uint64, len(v))
  7679. var i int
  7680. for k, _ := range v {
  7681. v2[i] = uint64(k)
  7682. i++
  7683. }
  7684. sort.Sort(uintSlice(v2))
  7685. if esep {
  7686. for _, k2 := range v2 {
  7687. ee.WriteMapElemKey()
  7688. ee.EncodeUint(uint64(uint16(k2)))
  7689. ee.WriteMapElemValue()
  7690. ee.EncodeBool(v[uint16(k2)])
  7691. }
  7692. } else {
  7693. for _, k2 := range v2 {
  7694. ee.EncodeUint(uint64(uint16(k2)))
  7695. ee.EncodeBool(v[uint16(k2)])
  7696. }
  7697. }
  7698. } else {
  7699. if esep {
  7700. for k2, v2 := range v {
  7701. ee.WriteMapElemKey()
  7702. ee.EncodeUint(uint64(k2))
  7703. ee.WriteMapElemValue()
  7704. ee.EncodeBool(v2)
  7705. }
  7706. } else {
  7707. for k2, v2 := range v {
  7708. ee.EncodeUint(uint64(k2))
  7709. ee.EncodeBool(v2)
  7710. }
  7711. }
  7712. }
  7713. ee.WriteMapEnd()
  7714. }
  7715. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  7716. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  7717. }
  7718. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  7719. if v == nil {
  7720. e.e.EncodeNil()
  7721. return
  7722. }
  7723. ee, esep := e.e, e.hh.hasElemSeparators()
  7724. ee.WriteMapStart(len(v))
  7725. if e.h.Canonical {
  7726. v2 := make([]uint64, len(v))
  7727. var i int
  7728. for k, _ := range v {
  7729. v2[i] = uint64(k)
  7730. i++
  7731. }
  7732. sort.Sort(uintSlice(v2))
  7733. if esep {
  7734. for _, k2 := range v2 {
  7735. ee.WriteMapElemKey()
  7736. ee.EncodeUint(uint64(uint32(k2)))
  7737. ee.WriteMapElemValue()
  7738. e.encode(v[uint32(k2)])
  7739. }
  7740. } else {
  7741. for _, k2 := range v2 {
  7742. ee.EncodeUint(uint64(uint32(k2)))
  7743. e.encode(v[uint32(k2)])
  7744. }
  7745. }
  7746. } else {
  7747. if esep {
  7748. for k2, v2 := range v {
  7749. ee.WriteMapElemKey()
  7750. ee.EncodeUint(uint64(k2))
  7751. ee.WriteMapElemValue()
  7752. e.encode(v2)
  7753. }
  7754. } else {
  7755. for k2, v2 := range v {
  7756. ee.EncodeUint(uint64(k2))
  7757. e.encode(v2)
  7758. }
  7759. }
  7760. }
  7761. ee.WriteMapEnd()
  7762. }
  7763. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  7764. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  7765. }
  7766. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  7767. if v == nil {
  7768. e.e.EncodeNil()
  7769. return
  7770. }
  7771. ee, esep := e.e, e.hh.hasElemSeparators()
  7772. ee.WriteMapStart(len(v))
  7773. if e.h.Canonical {
  7774. v2 := make([]uint64, len(v))
  7775. var i int
  7776. for k, _ := range v {
  7777. v2[i] = uint64(k)
  7778. i++
  7779. }
  7780. sort.Sort(uintSlice(v2))
  7781. if esep {
  7782. for _, k2 := range v2 {
  7783. ee.WriteMapElemKey()
  7784. ee.EncodeUint(uint64(uint32(k2)))
  7785. ee.WriteMapElemValue()
  7786. ee.EncodeString(cUTF8, v[uint32(k2)])
  7787. }
  7788. } else {
  7789. for _, k2 := range v2 {
  7790. ee.EncodeUint(uint64(uint32(k2)))
  7791. ee.EncodeString(cUTF8, v[uint32(k2)])
  7792. }
  7793. }
  7794. } else {
  7795. if esep {
  7796. for k2, v2 := range v {
  7797. ee.WriteMapElemKey()
  7798. ee.EncodeUint(uint64(k2))
  7799. ee.WriteMapElemValue()
  7800. ee.EncodeString(cUTF8, v2)
  7801. }
  7802. } else {
  7803. for k2, v2 := range v {
  7804. ee.EncodeUint(uint64(k2))
  7805. ee.EncodeString(cUTF8, v2)
  7806. }
  7807. }
  7808. }
  7809. ee.WriteMapEnd()
  7810. }
  7811. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  7812. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  7813. }
  7814. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  7815. if v == nil {
  7816. e.e.EncodeNil()
  7817. return
  7818. }
  7819. ee, esep := e.e, e.hh.hasElemSeparators()
  7820. ee.WriteMapStart(len(v))
  7821. if e.h.Canonical {
  7822. v2 := make([]uint64, len(v))
  7823. var i int
  7824. for k, _ := range v {
  7825. v2[i] = uint64(k)
  7826. i++
  7827. }
  7828. sort.Sort(uintSlice(v2))
  7829. if esep {
  7830. for _, k2 := range v2 {
  7831. ee.WriteMapElemKey()
  7832. ee.EncodeUint(uint64(uint32(k2)))
  7833. ee.WriteMapElemValue()
  7834. ee.EncodeUint(uint64(v[uint32(k2)]))
  7835. }
  7836. } else {
  7837. for _, k2 := range v2 {
  7838. ee.EncodeUint(uint64(uint32(k2)))
  7839. ee.EncodeUint(uint64(v[uint32(k2)]))
  7840. }
  7841. }
  7842. } else {
  7843. if esep {
  7844. for k2, v2 := range v {
  7845. ee.WriteMapElemKey()
  7846. ee.EncodeUint(uint64(k2))
  7847. ee.WriteMapElemValue()
  7848. ee.EncodeUint(uint64(v2))
  7849. }
  7850. } else {
  7851. for k2, v2 := range v {
  7852. ee.EncodeUint(uint64(k2))
  7853. ee.EncodeUint(uint64(v2))
  7854. }
  7855. }
  7856. }
  7857. ee.WriteMapEnd()
  7858. }
  7859. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  7860. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  7861. }
  7862. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  7863. if v == nil {
  7864. e.e.EncodeNil()
  7865. return
  7866. }
  7867. ee, esep := e.e, e.hh.hasElemSeparators()
  7868. ee.WriteMapStart(len(v))
  7869. if e.h.Canonical {
  7870. v2 := make([]uint64, len(v))
  7871. var i int
  7872. for k, _ := range v {
  7873. v2[i] = uint64(k)
  7874. i++
  7875. }
  7876. sort.Sort(uintSlice(v2))
  7877. if esep {
  7878. for _, k2 := range v2 {
  7879. ee.WriteMapElemKey()
  7880. ee.EncodeUint(uint64(uint32(k2)))
  7881. ee.WriteMapElemValue()
  7882. ee.EncodeUint(uint64(v[uint32(k2)]))
  7883. }
  7884. } else {
  7885. for _, k2 := range v2 {
  7886. ee.EncodeUint(uint64(uint32(k2)))
  7887. ee.EncodeUint(uint64(v[uint32(k2)]))
  7888. }
  7889. }
  7890. } else {
  7891. if esep {
  7892. for k2, v2 := range v {
  7893. ee.WriteMapElemKey()
  7894. ee.EncodeUint(uint64(k2))
  7895. ee.WriteMapElemValue()
  7896. ee.EncodeUint(uint64(v2))
  7897. }
  7898. } else {
  7899. for k2, v2 := range v {
  7900. ee.EncodeUint(uint64(k2))
  7901. ee.EncodeUint(uint64(v2))
  7902. }
  7903. }
  7904. }
  7905. ee.WriteMapEnd()
  7906. }
  7907. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  7908. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  7909. }
  7910. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  7911. if v == nil {
  7912. e.e.EncodeNil()
  7913. return
  7914. }
  7915. ee, esep := e.e, e.hh.hasElemSeparators()
  7916. ee.WriteMapStart(len(v))
  7917. if e.h.Canonical {
  7918. v2 := make([]uint64, len(v))
  7919. var i int
  7920. for k, _ := range v {
  7921. v2[i] = uint64(k)
  7922. i++
  7923. }
  7924. sort.Sort(uintSlice(v2))
  7925. if esep {
  7926. for _, k2 := range v2 {
  7927. ee.WriteMapElemKey()
  7928. ee.EncodeUint(uint64(uint32(k2)))
  7929. ee.WriteMapElemValue()
  7930. ee.EncodeUint(uint64(v[uint32(k2)]))
  7931. }
  7932. } else {
  7933. for _, k2 := range v2 {
  7934. ee.EncodeUint(uint64(uint32(k2)))
  7935. ee.EncodeUint(uint64(v[uint32(k2)]))
  7936. }
  7937. }
  7938. } else {
  7939. if esep {
  7940. for k2, v2 := range v {
  7941. ee.WriteMapElemKey()
  7942. ee.EncodeUint(uint64(k2))
  7943. ee.WriteMapElemValue()
  7944. ee.EncodeUint(uint64(v2))
  7945. }
  7946. } else {
  7947. for k2, v2 := range v {
  7948. ee.EncodeUint(uint64(k2))
  7949. ee.EncodeUint(uint64(v2))
  7950. }
  7951. }
  7952. }
  7953. ee.WriteMapEnd()
  7954. }
  7955. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  7956. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  7957. }
  7958. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  7959. if v == nil {
  7960. e.e.EncodeNil()
  7961. return
  7962. }
  7963. ee, esep := e.e, e.hh.hasElemSeparators()
  7964. ee.WriteMapStart(len(v))
  7965. if e.h.Canonical {
  7966. v2 := make([]uint64, len(v))
  7967. var i int
  7968. for k, _ := range v {
  7969. v2[i] = uint64(k)
  7970. i++
  7971. }
  7972. sort.Sort(uintSlice(v2))
  7973. if esep {
  7974. for _, k2 := range v2 {
  7975. ee.WriteMapElemKey()
  7976. ee.EncodeUint(uint64(uint32(k2)))
  7977. ee.WriteMapElemValue()
  7978. ee.EncodeUint(uint64(v[uint32(k2)]))
  7979. }
  7980. } else {
  7981. for _, k2 := range v2 {
  7982. ee.EncodeUint(uint64(uint32(k2)))
  7983. ee.EncodeUint(uint64(v[uint32(k2)]))
  7984. }
  7985. }
  7986. } else {
  7987. if esep {
  7988. for k2, v2 := range v {
  7989. ee.WriteMapElemKey()
  7990. ee.EncodeUint(uint64(k2))
  7991. ee.WriteMapElemValue()
  7992. ee.EncodeUint(uint64(v2))
  7993. }
  7994. } else {
  7995. for k2, v2 := range v {
  7996. ee.EncodeUint(uint64(k2))
  7997. ee.EncodeUint(uint64(v2))
  7998. }
  7999. }
  8000. }
  8001. ee.WriteMapEnd()
  8002. }
  8003. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  8004. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  8005. }
  8006. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  8007. if v == nil {
  8008. e.e.EncodeNil()
  8009. return
  8010. }
  8011. ee, esep := e.e, e.hh.hasElemSeparators()
  8012. ee.WriteMapStart(len(v))
  8013. if e.h.Canonical {
  8014. v2 := make([]uint64, len(v))
  8015. var i int
  8016. for k, _ := range v {
  8017. v2[i] = uint64(k)
  8018. i++
  8019. }
  8020. sort.Sort(uintSlice(v2))
  8021. if esep {
  8022. for _, k2 := range v2 {
  8023. ee.WriteMapElemKey()
  8024. ee.EncodeUint(uint64(uint32(k2)))
  8025. ee.WriteMapElemValue()
  8026. ee.EncodeUint(uint64(v[uint32(k2)]))
  8027. }
  8028. } else {
  8029. for _, k2 := range v2 {
  8030. ee.EncodeUint(uint64(uint32(k2)))
  8031. ee.EncodeUint(uint64(v[uint32(k2)]))
  8032. }
  8033. }
  8034. } else {
  8035. if esep {
  8036. for k2, v2 := range v {
  8037. ee.WriteMapElemKey()
  8038. ee.EncodeUint(uint64(k2))
  8039. ee.WriteMapElemValue()
  8040. ee.EncodeUint(uint64(v2))
  8041. }
  8042. } else {
  8043. for k2, v2 := range v {
  8044. ee.EncodeUint(uint64(k2))
  8045. ee.EncodeUint(uint64(v2))
  8046. }
  8047. }
  8048. }
  8049. ee.WriteMapEnd()
  8050. }
  8051. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  8052. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  8053. }
  8054. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  8055. if v == nil {
  8056. e.e.EncodeNil()
  8057. return
  8058. }
  8059. ee, esep := e.e, e.hh.hasElemSeparators()
  8060. ee.WriteMapStart(len(v))
  8061. if e.h.Canonical {
  8062. v2 := make([]uint64, len(v))
  8063. var i int
  8064. for k, _ := range v {
  8065. v2[i] = uint64(k)
  8066. i++
  8067. }
  8068. sort.Sort(uintSlice(v2))
  8069. if esep {
  8070. for _, k2 := range v2 {
  8071. ee.WriteMapElemKey()
  8072. ee.EncodeUint(uint64(uint32(k2)))
  8073. ee.WriteMapElemValue()
  8074. e.encode(v[uint32(k2)])
  8075. }
  8076. } else {
  8077. for _, k2 := range v2 {
  8078. ee.EncodeUint(uint64(uint32(k2)))
  8079. e.encode(v[uint32(k2)])
  8080. }
  8081. }
  8082. } else {
  8083. if esep {
  8084. for k2, v2 := range v {
  8085. ee.WriteMapElemKey()
  8086. ee.EncodeUint(uint64(k2))
  8087. ee.WriteMapElemValue()
  8088. e.encode(v2)
  8089. }
  8090. } else {
  8091. for k2, v2 := range v {
  8092. ee.EncodeUint(uint64(k2))
  8093. e.encode(v2)
  8094. }
  8095. }
  8096. }
  8097. ee.WriteMapEnd()
  8098. }
  8099. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  8100. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  8101. }
  8102. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  8103. if v == nil {
  8104. e.e.EncodeNil()
  8105. return
  8106. }
  8107. ee, esep := e.e, e.hh.hasElemSeparators()
  8108. ee.WriteMapStart(len(v))
  8109. if e.h.Canonical {
  8110. v2 := make([]uint64, len(v))
  8111. var i int
  8112. for k, _ := range v {
  8113. v2[i] = uint64(k)
  8114. i++
  8115. }
  8116. sort.Sort(uintSlice(v2))
  8117. if esep {
  8118. for _, k2 := range v2 {
  8119. ee.WriteMapElemKey()
  8120. ee.EncodeUint(uint64(uint32(k2)))
  8121. ee.WriteMapElemValue()
  8122. ee.EncodeInt(int64(v[uint32(k2)]))
  8123. }
  8124. } else {
  8125. for _, k2 := range v2 {
  8126. ee.EncodeUint(uint64(uint32(k2)))
  8127. ee.EncodeInt(int64(v[uint32(k2)]))
  8128. }
  8129. }
  8130. } else {
  8131. if esep {
  8132. for k2, v2 := range v {
  8133. ee.WriteMapElemKey()
  8134. ee.EncodeUint(uint64(k2))
  8135. ee.WriteMapElemValue()
  8136. ee.EncodeInt(int64(v2))
  8137. }
  8138. } else {
  8139. for k2, v2 := range v {
  8140. ee.EncodeUint(uint64(k2))
  8141. ee.EncodeInt(int64(v2))
  8142. }
  8143. }
  8144. }
  8145. ee.WriteMapEnd()
  8146. }
  8147. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  8148. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  8149. }
  8150. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  8151. if v == nil {
  8152. e.e.EncodeNil()
  8153. return
  8154. }
  8155. ee, esep := e.e, e.hh.hasElemSeparators()
  8156. ee.WriteMapStart(len(v))
  8157. if e.h.Canonical {
  8158. v2 := make([]uint64, len(v))
  8159. var i int
  8160. for k, _ := range v {
  8161. v2[i] = uint64(k)
  8162. i++
  8163. }
  8164. sort.Sort(uintSlice(v2))
  8165. if esep {
  8166. for _, k2 := range v2 {
  8167. ee.WriteMapElemKey()
  8168. ee.EncodeUint(uint64(uint32(k2)))
  8169. ee.WriteMapElemValue()
  8170. ee.EncodeInt(int64(v[uint32(k2)]))
  8171. }
  8172. } else {
  8173. for _, k2 := range v2 {
  8174. ee.EncodeUint(uint64(uint32(k2)))
  8175. ee.EncodeInt(int64(v[uint32(k2)]))
  8176. }
  8177. }
  8178. } else {
  8179. if esep {
  8180. for k2, v2 := range v {
  8181. ee.WriteMapElemKey()
  8182. ee.EncodeUint(uint64(k2))
  8183. ee.WriteMapElemValue()
  8184. ee.EncodeInt(int64(v2))
  8185. }
  8186. } else {
  8187. for k2, v2 := range v {
  8188. ee.EncodeUint(uint64(k2))
  8189. ee.EncodeInt(int64(v2))
  8190. }
  8191. }
  8192. }
  8193. ee.WriteMapEnd()
  8194. }
  8195. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  8196. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  8197. }
  8198. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  8199. if v == nil {
  8200. e.e.EncodeNil()
  8201. return
  8202. }
  8203. ee, esep := e.e, e.hh.hasElemSeparators()
  8204. ee.WriteMapStart(len(v))
  8205. if e.h.Canonical {
  8206. v2 := make([]uint64, len(v))
  8207. var i int
  8208. for k, _ := range v {
  8209. v2[i] = uint64(k)
  8210. i++
  8211. }
  8212. sort.Sort(uintSlice(v2))
  8213. if esep {
  8214. for _, k2 := range v2 {
  8215. ee.WriteMapElemKey()
  8216. ee.EncodeUint(uint64(uint32(k2)))
  8217. ee.WriteMapElemValue()
  8218. ee.EncodeInt(int64(v[uint32(k2)]))
  8219. }
  8220. } else {
  8221. for _, k2 := range v2 {
  8222. ee.EncodeUint(uint64(uint32(k2)))
  8223. ee.EncodeInt(int64(v[uint32(k2)]))
  8224. }
  8225. }
  8226. } else {
  8227. if esep {
  8228. for k2, v2 := range v {
  8229. ee.WriteMapElemKey()
  8230. ee.EncodeUint(uint64(k2))
  8231. ee.WriteMapElemValue()
  8232. ee.EncodeInt(int64(v2))
  8233. }
  8234. } else {
  8235. for k2, v2 := range v {
  8236. ee.EncodeUint(uint64(k2))
  8237. ee.EncodeInt(int64(v2))
  8238. }
  8239. }
  8240. }
  8241. ee.WriteMapEnd()
  8242. }
  8243. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  8244. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  8245. }
  8246. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  8247. if v == nil {
  8248. e.e.EncodeNil()
  8249. return
  8250. }
  8251. ee, esep := e.e, e.hh.hasElemSeparators()
  8252. ee.WriteMapStart(len(v))
  8253. if e.h.Canonical {
  8254. v2 := make([]uint64, len(v))
  8255. var i int
  8256. for k, _ := range v {
  8257. v2[i] = uint64(k)
  8258. i++
  8259. }
  8260. sort.Sort(uintSlice(v2))
  8261. if esep {
  8262. for _, k2 := range v2 {
  8263. ee.WriteMapElemKey()
  8264. ee.EncodeUint(uint64(uint32(k2)))
  8265. ee.WriteMapElemValue()
  8266. ee.EncodeInt(int64(v[uint32(k2)]))
  8267. }
  8268. } else {
  8269. for _, k2 := range v2 {
  8270. ee.EncodeUint(uint64(uint32(k2)))
  8271. ee.EncodeInt(int64(v[uint32(k2)]))
  8272. }
  8273. }
  8274. } else {
  8275. if esep {
  8276. for k2, v2 := range v {
  8277. ee.WriteMapElemKey()
  8278. ee.EncodeUint(uint64(k2))
  8279. ee.WriteMapElemValue()
  8280. ee.EncodeInt(int64(v2))
  8281. }
  8282. } else {
  8283. for k2, v2 := range v {
  8284. ee.EncodeUint(uint64(k2))
  8285. ee.EncodeInt(int64(v2))
  8286. }
  8287. }
  8288. }
  8289. ee.WriteMapEnd()
  8290. }
  8291. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  8292. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  8293. }
  8294. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  8295. if v == nil {
  8296. e.e.EncodeNil()
  8297. return
  8298. }
  8299. ee, esep := e.e, e.hh.hasElemSeparators()
  8300. ee.WriteMapStart(len(v))
  8301. if e.h.Canonical {
  8302. v2 := make([]uint64, len(v))
  8303. var i int
  8304. for k, _ := range v {
  8305. v2[i] = uint64(k)
  8306. i++
  8307. }
  8308. sort.Sort(uintSlice(v2))
  8309. if esep {
  8310. for _, k2 := range v2 {
  8311. ee.WriteMapElemKey()
  8312. ee.EncodeUint(uint64(uint32(k2)))
  8313. ee.WriteMapElemValue()
  8314. ee.EncodeInt(int64(v[uint32(k2)]))
  8315. }
  8316. } else {
  8317. for _, k2 := range v2 {
  8318. ee.EncodeUint(uint64(uint32(k2)))
  8319. ee.EncodeInt(int64(v[uint32(k2)]))
  8320. }
  8321. }
  8322. } else {
  8323. if esep {
  8324. for k2, v2 := range v {
  8325. ee.WriteMapElemKey()
  8326. ee.EncodeUint(uint64(k2))
  8327. ee.WriteMapElemValue()
  8328. ee.EncodeInt(int64(v2))
  8329. }
  8330. } else {
  8331. for k2, v2 := range v {
  8332. ee.EncodeUint(uint64(k2))
  8333. ee.EncodeInt(int64(v2))
  8334. }
  8335. }
  8336. }
  8337. ee.WriteMapEnd()
  8338. }
  8339. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  8340. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  8341. }
  8342. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  8343. if v == nil {
  8344. e.e.EncodeNil()
  8345. return
  8346. }
  8347. ee, esep := e.e, e.hh.hasElemSeparators()
  8348. ee.WriteMapStart(len(v))
  8349. if e.h.Canonical {
  8350. v2 := make([]uint64, len(v))
  8351. var i int
  8352. for k, _ := range v {
  8353. v2[i] = uint64(k)
  8354. i++
  8355. }
  8356. sort.Sort(uintSlice(v2))
  8357. if esep {
  8358. for _, k2 := range v2 {
  8359. ee.WriteMapElemKey()
  8360. ee.EncodeUint(uint64(uint32(k2)))
  8361. ee.WriteMapElemValue()
  8362. ee.EncodeFloat32(v[uint32(k2)])
  8363. }
  8364. } else {
  8365. for _, k2 := range v2 {
  8366. ee.EncodeUint(uint64(uint32(k2)))
  8367. ee.EncodeFloat32(v[uint32(k2)])
  8368. }
  8369. }
  8370. } else {
  8371. if esep {
  8372. for k2, v2 := range v {
  8373. ee.WriteMapElemKey()
  8374. ee.EncodeUint(uint64(k2))
  8375. ee.WriteMapElemValue()
  8376. ee.EncodeFloat32(v2)
  8377. }
  8378. } else {
  8379. for k2, v2 := range v {
  8380. ee.EncodeUint(uint64(k2))
  8381. ee.EncodeFloat32(v2)
  8382. }
  8383. }
  8384. }
  8385. ee.WriteMapEnd()
  8386. }
  8387. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  8388. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  8389. }
  8390. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  8391. if v == nil {
  8392. e.e.EncodeNil()
  8393. return
  8394. }
  8395. ee, esep := e.e, e.hh.hasElemSeparators()
  8396. ee.WriteMapStart(len(v))
  8397. if e.h.Canonical {
  8398. v2 := make([]uint64, len(v))
  8399. var i int
  8400. for k, _ := range v {
  8401. v2[i] = uint64(k)
  8402. i++
  8403. }
  8404. sort.Sort(uintSlice(v2))
  8405. if esep {
  8406. for _, k2 := range v2 {
  8407. ee.WriteMapElemKey()
  8408. ee.EncodeUint(uint64(uint32(k2)))
  8409. ee.WriteMapElemValue()
  8410. ee.EncodeFloat64(v[uint32(k2)])
  8411. }
  8412. } else {
  8413. for _, k2 := range v2 {
  8414. ee.EncodeUint(uint64(uint32(k2)))
  8415. ee.EncodeFloat64(v[uint32(k2)])
  8416. }
  8417. }
  8418. } else {
  8419. if esep {
  8420. for k2, v2 := range v {
  8421. ee.WriteMapElemKey()
  8422. ee.EncodeUint(uint64(k2))
  8423. ee.WriteMapElemValue()
  8424. ee.EncodeFloat64(v2)
  8425. }
  8426. } else {
  8427. for k2, v2 := range v {
  8428. ee.EncodeUint(uint64(k2))
  8429. ee.EncodeFloat64(v2)
  8430. }
  8431. }
  8432. }
  8433. ee.WriteMapEnd()
  8434. }
  8435. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  8436. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  8437. }
  8438. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  8439. if v == nil {
  8440. e.e.EncodeNil()
  8441. return
  8442. }
  8443. ee, esep := e.e, e.hh.hasElemSeparators()
  8444. ee.WriteMapStart(len(v))
  8445. if e.h.Canonical {
  8446. v2 := make([]uint64, len(v))
  8447. var i int
  8448. for k, _ := range v {
  8449. v2[i] = uint64(k)
  8450. i++
  8451. }
  8452. sort.Sort(uintSlice(v2))
  8453. if esep {
  8454. for _, k2 := range v2 {
  8455. ee.WriteMapElemKey()
  8456. ee.EncodeUint(uint64(uint32(k2)))
  8457. ee.WriteMapElemValue()
  8458. ee.EncodeBool(v[uint32(k2)])
  8459. }
  8460. } else {
  8461. for _, k2 := range v2 {
  8462. ee.EncodeUint(uint64(uint32(k2)))
  8463. ee.EncodeBool(v[uint32(k2)])
  8464. }
  8465. }
  8466. } else {
  8467. if esep {
  8468. for k2, v2 := range v {
  8469. ee.WriteMapElemKey()
  8470. ee.EncodeUint(uint64(k2))
  8471. ee.WriteMapElemValue()
  8472. ee.EncodeBool(v2)
  8473. }
  8474. } else {
  8475. for k2, v2 := range v {
  8476. ee.EncodeUint(uint64(k2))
  8477. ee.EncodeBool(v2)
  8478. }
  8479. }
  8480. }
  8481. ee.WriteMapEnd()
  8482. }
  8483. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  8484. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  8485. }
  8486. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  8487. if v == nil {
  8488. e.e.EncodeNil()
  8489. return
  8490. }
  8491. ee, esep := e.e, e.hh.hasElemSeparators()
  8492. ee.WriteMapStart(len(v))
  8493. if e.h.Canonical {
  8494. v2 := make([]uint64, len(v))
  8495. var i int
  8496. for k, _ := range v {
  8497. v2[i] = uint64(k)
  8498. i++
  8499. }
  8500. sort.Sort(uintSlice(v2))
  8501. if esep {
  8502. for _, k2 := range v2 {
  8503. ee.WriteMapElemKey()
  8504. ee.EncodeUint(uint64(uint64(k2)))
  8505. ee.WriteMapElemValue()
  8506. e.encode(v[uint64(k2)])
  8507. }
  8508. } else {
  8509. for _, k2 := range v2 {
  8510. ee.EncodeUint(uint64(uint64(k2)))
  8511. e.encode(v[uint64(k2)])
  8512. }
  8513. }
  8514. } else {
  8515. if esep {
  8516. for k2, v2 := range v {
  8517. ee.WriteMapElemKey()
  8518. ee.EncodeUint(uint64(k2))
  8519. ee.WriteMapElemValue()
  8520. e.encode(v2)
  8521. }
  8522. } else {
  8523. for k2, v2 := range v {
  8524. ee.EncodeUint(uint64(k2))
  8525. e.encode(v2)
  8526. }
  8527. }
  8528. }
  8529. ee.WriteMapEnd()
  8530. }
  8531. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  8532. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  8533. }
  8534. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  8535. if v == nil {
  8536. e.e.EncodeNil()
  8537. return
  8538. }
  8539. ee, esep := e.e, e.hh.hasElemSeparators()
  8540. ee.WriteMapStart(len(v))
  8541. if e.h.Canonical {
  8542. v2 := make([]uint64, len(v))
  8543. var i int
  8544. for k, _ := range v {
  8545. v2[i] = uint64(k)
  8546. i++
  8547. }
  8548. sort.Sort(uintSlice(v2))
  8549. if esep {
  8550. for _, k2 := range v2 {
  8551. ee.WriteMapElemKey()
  8552. ee.EncodeUint(uint64(uint64(k2)))
  8553. ee.WriteMapElemValue()
  8554. ee.EncodeString(cUTF8, v[uint64(k2)])
  8555. }
  8556. } else {
  8557. for _, k2 := range v2 {
  8558. ee.EncodeUint(uint64(uint64(k2)))
  8559. ee.EncodeString(cUTF8, v[uint64(k2)])
  8560. }
  8561. }
  8562. } else {
  8563. if esep {
  8564. for k2, v2 := range v {
  8565. ee.WriteMapElemKey()
  8566. ee.EncodeUint(uint64(k2))
  8567. ee.WriteMapElemValue()
  8568. ee.EncodeString(cUTF8, v2)
  8569. }
  8570. } else {
  8571. for k2, v2 := range v {
  8572. ee.EncodeUint(uint64(k2))
  8573. ee.EncodeString(cUTF8, v2)
  8574. }
  8575. }
  8576. }
  8577. ee.WriteMapEnd()
  8578. }
  8579. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  8580. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  8581. }
  8582. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  8583. if v == nil {
  8584. e.e.EncodeNil()
  8585. return
  8586. }
  8587. ee, esep := e.e, e.hh.hasElemSeparators()
  8588. ee.WriteMapStart(len(v))
  8589. if e.h.Canonical {
  8590. v2 := make([]uint64, len(v))
  8591. var i int
  8592. for k, _ := range v {
  8593. v2[i] = uint64(k)
  8594. i++
  8595. }
  8596. sort.Sort(uintSlice(v2))
  8597. if esep {
  8598. for _, k2 := range v2 {
  8599. ee.WriteMapElemKey()
  8600. ee.EncodeUint(uint64(uint64(k2)))
  8601. ee.WriteMapElemValue()
  8602. ee.EncodeUint(uint64(v[uint64(k2)]))
  8603. }
  8604. } else {
  8605. for _, k2 := range v2 {
  8606. ee.EncodeUint(uint64(uint64(k2)))
  8607. ee.EncodeUint(uint64(v[uint64(k2)]))
  8608. }
  8609. }
  8610. } else {
  8611. if esep {
  8612. for k2, v2 := range v {
  8613. ee.WriteMapElemKey()
  8614. ee.EncodeUint(uint64(k2))
  8615. ee.WriteMapElemValue()
  8616. ee.EncodeUint(uint64(v2))
  8617. }
  8618. } else {
  8619. for k2, v2 := range v {
  8620. ee.EncodeUint(uint64(k2))
  8621. ee.EncodeUint(uint64(v2))
  8622. }
  8623. }
  8624. }
  8625. ee.WriteMapEnd()
  8626. }
  8627. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  8628. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  8629. }
  8630. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  8631. if v == nil {
  8632. e.e.EncodeNil()
  8633. return
  8634. }
  8635. ee, esep := e.e, e.hh.hasElemSeparators()
  8636. ee.WriteMapStart(len(v))
  8637. if e.h.Canonical {
  8638. v2 := make([]uint64, len(v))
  8639. var i int
  8640. for k, _ := range v {
  8641. v2[i] = uint64(k)
  8642. i++
  8643. }
  8644. sort.Sort(uintSlice(v2))
  8645. if esep {
  8646. for _, k2 := range v2 {
  8647. ee.WriteMapElemKey()
  8648. ee.EncodeUint(uint64(uint64(k2)))
  8649. ee.WriteMapElemValue()
  8650. ee.EncodeUint(uint64(v[uint64(k2)]))
  8651. }
  8652. } else {
  8653. for _, k2 := range v2 {
  8654. ee.EncodeUint(uint64(uint64(k2)))
  8655. ee.EncodeUint(uint64(v[uint64(k2)]))
  8656. }
  8657. }
  8658. } else {
  8659. if esep {
  8660. for k2, v2 := range v {
  8661. ee.WriteMapElemKey()
  8662. ee.EncodeUint(uint64(k2))
  8663. ee.WriteMapElemValue()
  8664. ee.EncodeUint(uint64(v2))
  8665. }
  8666. } else {
  8667. for k2, v2 := range v {
  8668. ee.EncodeUint(uint64(k2))
  8669. ee.EncodeUint(uint64(v2))
  8670. }
  8671. }
  8672. }
  8673. ee.WriteMapEnd()
  8674. }
  8675. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  8676. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  8677. }
  8678. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  8679. if v == nil {
  8680. e.e.EncodeNil()
  8681. return
  8682. }
  8683. ee, esep := e.e, e.hh.hasElemSeparators()
  8684. ee.WriteMapStart(len(v))
  8685. if e.h.Canonical {
  8686. v2 := make([]uint64, len(v))
  8687. var i int
  8688. for k, _ := range v {
  8689. v2[i] = uint64(k)
  8690. i++
  8691. }
  8692. sort.Sort(uintSlice(v2))
  8693. if esep {
  8694. for _, k2 := range v2 {
  8695. ee.WriteMapElemKey()
  8696. ee.EncodeUint(uint64(uint64(k2)))
  8697. ee.WriteMapElemValue()
  8698. ee.EncodeUint(uint64(v[uint64(k2)]))
  8699. }
  8700. } else {
  8701. for _, k2 := range v2 {
  8702. ee.EncodeUint(uint64(uint64(k2)))
  8703. ee.EncodeUint(uint64(v[uint64(k2)]))
  8704. }
  8705. }
  8706. } else {
  8707. if esep {
  8708. for k2, v2 := range v {
  8709. ee.WriteMapElemKey()
  8710. ee.EncodeUint(uint64(k2))
  8711. ee.WriteMapElemValue()
  8712. ee.EncodeUint(uint64(v2))
  8713. }
  8714. } else {
  8715. for k2, v2 := range v {
  8716. ee.EncodeUint(uint64(k2))
  8717. ee.EncodeUint(uint64(v2))
  8718. }
  8719. }
  8720. }
  8721. ee.WriteMapEnd()
  8722. }
  8723. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  8724. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  8725. }
  8726. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  8727. if v == nil {
  8728. e.e.EncodeNil()
  8729. return
  8730. }
  8731. ee, esep := e.e, e.hh.hasElemSeparators()
  8732. ee.WriteMapStart(len(v))
  8733. if e.h.Canonical {
  8734. v2 := make([]uint64, len(v))
  8735. var i int
  8736. for k, _ := range v {
  8737. v2[i] = uint64(k)
  8738. i++
  8739. }
  8740. sort.Sort(uintSlice(v2))
  8741. if esep {
  8742. for _, k2 := range v2 {
  8743. ee.WriteMapElemKey()
  8744. ee.EncodeUint(uint64(uint64(k2)))
  8745. ee.WriteMapElemValue()
  8746. ee.EncodeUint(uint64(v[uint64(k2)]))
  8747. }
  8748. } else {
  8749. for _, k2 := range v2 {
  8750. ee.EncodeUint(uint64(uint64(k2)))
  8751. ee.EncodeUint(uint64(v[uint64(k2)]))
  8752. }
  8753. }
  8754. } else {
  8755. if esep {
  8756. for k2, v2 := range v {
  8757. ee.WriteMapElemKey()
  8758. ee.EncodeUint(uint64(k2))
  8759. ee.WriteMapElemValue()
  8760. ee.EncodeUint(uint64(v2))
  8761. }
  8762. } else {
  8763. for k2, v2 := range v {
  8764. ee.EncodeUint(uint64(k2))
  8765. ee.EncodeUint(uint64(v2))
  8766. }
  8767. }
  8768. }
  8769. ee.WriteMapEnd()
  8770. }
  8771. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  8772. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  8773. }
  8774. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  8775. if v == nil {
  8776. e.e.EncodeNil()
  8777. return
  8778. }
  8779. ee, esep := e.e, e.hh.hasElemSeparators()
  8780. ee.WriteMapStart(len(v))
  8781. if e.h.Canonical {
  8782. v2 := make([]uint64, len(v))
  8783. var i int
  8784. for k, _ := range v {
  8785. v2[i] = uint64(k)
  8786. i++
  8787. }
  8788. sort.Sort(uintSlice(v2))
  8789. if esep {
  8790. for _, k2 := range v2 {
  8791. ee.WriteMapElemKey()
  8792. ee.EncodeUint(uint64(uint64(k2)))
  8793. ee.WriteMapElemValue()
  8794. ee.EncodeUint(uint64(v[uint64(k2)]))
  8795. }
  8796. } else {
  8797. for _, k2 := range v2 {
  8798. ee.EncodeUint(uint64(uint64(k2)))
  8799. ee.EncodeUint(uint64(v[uint64(k2)]))
  8800. }
  8801. }
  8802. } else {
  8803. if esep {
  8804. for k2, v2 := range v {
  8805. ee.WriteMapElemKey()
  8806. ee.EncodeUint(uint64(k2))
  8807. ee.WriteMapElemValue()
  8808. ee.EncodeUint(uint64(v2))
  8809. }
  8810. } else {
  8811. for k2, v2 := range v {
  8812. ee.EncodeUint(uint64(k2))
  8813. ee.EncodeUint(uint64(v2))
  8814. }
  8815. }
  8816. }
  8817. ee.WriteMapEnd()
  8818. }
  8819. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  8820. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  8821. }
  8822. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  8823. if v == nil {
  8824. e.e.EncodeNil()
  8825. return
  8826. }
  8827. ee, esep := e.e, e.hh.hasElemSeparators()
  8828. ee.WriteMapStart(len(v))
  8829. if e.h.Canonical {
  8830. v2 := make([]uint64, len(v))
  8831. var i int
  8832. for k, _ := range v {
  8833. v2[i] = uint64(k)
  8834. i++
  8835. }
  8836. sort.Sort(uintSlice(v2))
  8837. if esep {
  8838. for _, k2 := range v2 {
  8839. ee.WriteMapElemKey()
  8840. ee.EncodeUint(uint64(uint64(k2)))
  8841. ee.WriteMapElemValue()
  8842. e.encode(v[uint64(k2)])
  8843. }
  8844. } else {
  8845. for _, k2 := range v2 {
  8846. ee.EncodeUint(uint64(uint64(k2)))
  8847. e.encode(v[uint64(k2)])
  8848. }
  8849. }
  8850. } else {
  8851. if esep {
  8852. for k2, v2 := range v {
  8853. ee.WriteMapElemKey()
  8854. ee.EncodeUint(uint64(k2))
  8855. ee.WriteMapElemValue()
  8856. e.encode(v2)
  8857. }
  8858. } else {
  8859. for k2, v2 := range v {
  8860. ee.EncodeUint(uint64(k2))
  8861. e.encode(v2)
  8862. }
  8863. }
  8864. }
  8865. ee.WriteMapEnd()
  8866. }
  8867. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  8868. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  8869. }
  8870. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  8871. if v == nil {
  8872. e.e.EncodeNil()
  8873. return
  8874. }
  8875. ee, esep := e.e, e.hh.hasElemSeparators()
  8876. ee.WriteMapStart(len(v))
  8877. if e.h.Canonical {
  8878. v2 := make([]uint64, len(v))
  8879. var i int
  8880. for k, _ := range v {
  8881. v2[i] = uint64(k)
  8882. i++
  8883. }
  8884. sort.Sort(uintSlice(v2))
  8885. if esep {
  8886. for _, k2 := range v2 {
  8887. ee.WriteMapElemKey()
  8888. ee.EncodeUint(uint64(uint64(k2)))
  8889. ee.WriteMapElemValue()
  8890. ee.EncodeInt(int64(v[uint64(k2)]))
  8891. }
  8892. } else {
  8893. for _, k2 := range v2 {
  8894. ee.EncodeUint(uint64(uint64(k2)))
  8895. ee.EncodeInt(int64(v[uint64(k2)]))
  8896. }
  8897. }
  8898. } else {
  8899. if esep {
  8900. for k2, v2 := range v {
  8901. ee.WriteMapElemKey()
  8902. ee.EncodeUint(uint64(k2))
  8903. ee.WriteMapElemValue()
  8904. ee.EncodeInt(int64(v2))
  8905. }
  8906. } else {
  8907. for k2, v2 := range v {
  8908. ee.EncodeUint(uint64(k2))
  8909. ee.EncodeInt(int64(v2))
  8910. }
  8911. }
  8912. }
  8913. ee.WriteMapEnd()
  8914. }
  8915. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  8916. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  8917. }
  8918. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  8919. if v == nil {
  8920. e.e.EncodeNil()
  8921. return
  8922. }
  8923. ee, esep := e.e, e.hh.hasElemSeparators()
  8924. ee.WriteMapStart(len(v))
  8925. if e.h.Canonical {
  8926. v2 := make([]uint64, len(v))
  8927. var i int
  8928. for k, _ := range v {
  8929. v2[i] = uint64(k)
  8930. i++
  8931. }
  8932. sort.Sort(uintSlice(v2))
  8933. if esep {
  8934. for _, k2 := range v2 {
  8935. ee.WriteMapElemKey()
  8936. ee.EncodeUint(uint64(uint64(k2)))
  8937. ee.WriteMapElemValue()
  8938. ee.EncodeInt(int64(v[uint64(k2)]))
  8939. }
  8940. } else {
  8941. for _, k2 := range v2 {
  8942. ee.EncodeUint(uint64(uint64(k2)))
  8943. ee.EncodeInt(int64(v[uint64(k2)]))
  8944. }
  8945. }
  8946. } else {
  8947. if esep {
  8948. for k2, v2 := range v {
  8949. ee.WriteMapElemKey()
  8950. ee.EncodeUint(uint64(k2))
  8951. ee.WriteMapElemValue()
  8952. ee.EncodeInt(int64(v2))
  8953. }
  8954. } else {
  8955. for k2, v2 := range v {
  8956. ee.EncodeUint(uint64(k2))
  8957. ee.EncodeInt(int64(v2))
  8958. }
  8959. }
  8960. }
  8961. ee.WriteMapEnd()
  8962. }
  8963. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  8964. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  8965. }
  8966. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  8967. if v == nil {
  8968. e.e.EncodeNil()
  8969. return
  8970. }
  8971. ee, esep := e.e, e.hh.hasElemSeparators()
  8972. ee.WriteMapStart(len(v))
  8973. if e.h.Canonical {
  8974. v2 := make([]uint64, len(v))
  8975. var i int
  8976. for k, _ := range v {
  8977. v2[i] = uint64(k)
  8978. i++
  8979. }
  8980. sort.Sort(uintSlice(v2))
  8981. if esep {
  8982. for _, k2 := range v2 {
  8983. ee.WriteMapElemKey()
  8984. ee.EncodeUint(uint64(uint64(k2)))
  8985. ee.WriteMapElemValue()
  8986. ee.EncodeInt(int64(v[uint64(k2)]))
  8987. }
  8988. } else {
  8989. for _, k2 := range v2 {
  8990. ee.EncodeUint(uint64(uint64(k2)))
  8991. ee.EncodeInt(int64(v[uint64(k2)]))
  8992. }
  8993. }
  8994. } else {
  8995. if esep {
  8996. for k2, v2 := range v {
  8997. ee.WriteMapElemKey()
  8998. ee.EncodeUint(uint64(k2))
  8999. ee.WriteMapElemValue()
  9000. ee.EncodeInt(int64(v2))
  9001. }
  9002. } else {
  9003. for k2, v2 := range v {
  9004. ee.EncodeUint(uint64(k2))
  9005. ee.EncodeInt(int64(v2))
  9006. }
  9007. }
  9008. }
  9009. ee.WriteMapEnd()
  9010. }
  9011. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  9012. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  9013. }
  9014. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  9015. if v == nil {
  9016. e.e.EncodeNil()
  9017. return
  9018. }
  9019. ee, esep := e.e, e.hh.hasElemSeparators()
  9020. ee.WriteMapStart(len(v))
  9021. if e.h.Canonical {
  9022. v2 := make([]uint64, len(v))
  9023. var i int
  9024. for k, _ := range v {
  9025. v2[i] = uint64(k)
  9026. i++
  9027. }
  9028. sort.Sort(uintSlice(v2))
  9029. if esep {
  9030. for _, k2 := range v2 {
  9031. ee.WriteMapElemKey()
  9032. ee.EncodeUint(uint64(uint64(k2)))
  9033. ee.WriteMapElemValue()
  9034. ee.EncodeInt(int64(v[uint64(k2)]))
  9035. }
  9036. } else {
  9037. for _, k2 := range v2 {
  9038. ee.EncodeUint(uint64(uint64(k2)))
  9039. ee.EncodeInt(int64(v[uint64(k2)]))
  9040. }
  9041. }
  9042. } else {
  9043. if esep {
  9044. for k2, v2 := range v {
  9045. ee.WriteMapElemKey()
  9046. ee.EncodeUint(uint64(k2))
  9047. ee.WriteMapElemValue()
  9048. ee.EncodeInt(int64(v2))
  9049. }
  9050. } else {
  9051. for k2, v2 := range v {
  9052. ee.EncodeUint(uint64(k2))
  9053. ee.EncodeInt(int64(v2))
  9054. }
  9055. }
  9056. }
  9057. ee.WriteMapEnd()
  9058. }
  9059. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  9060. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  9061. }
  9062. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  9063. if v == nil {
  9064. e.e.EncodeNil()
  9065. return
  9066. }
  9067. ee, esep := e.e, e.hh.hasElemSeparators()
  9068. ee.WriteMapStart(len(v))
  9069. if e.h.Canonical {
  9070. v2 := make([]uint64, len(v))
  9071. var i int
  9072. for k, _ := range v {
  9073. v2[i] = uint64(k)
  9074. i++
  9075. }
  9076. sort.Sort(uintSlice(v2))
  9077. if esep {
  9078. for _, k2 := range v2 {
  9079. ee.WriteMapElemKey()
  9080. ee.EncodeUint(uint64(uint64(k2)))
  9081. ee.WriteMapElemValue()
  9082. ee.EncodeInt(int64(v[uint64(k2)]))
  9083. }
  9084. } else {
  9085. for _, k2 := range v2 {
  9086. ee.EncodeUint(uint64(uint64(k2)))
  9087. ee.EncodeInt(int64(v[uint64(k2)]))
  9088. }
  9089. }
  9090. } else {
  9091. if esep {
  9092. for k2, v2 := range v {
  9093. ee.WriteMapElemKey()
  9094. ee.EncodeUint(uint64(k2))
  9095. ee.WriteMapElemValue()
  9096. ee.EncodeInt(int64(v2))
  9097. }
  9098. } else {
  9099. for k2, v2 := range v {
  9100. ee.EncodeUint(uint64(k2))
  9101. ee.EncodeInt(int64(v2))
  9102. }
  9103. }
  9104. }
  9105. ee.WriteMapEnd()
  9106. }
  9107. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  9108. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  9109. }
  9110. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  9111. if v == nil {
  9112. e.e.EncodeNil()
  9113. return
  9114. }
  9115. ee, esep := e.e, e.hh.hasElemSeparators()
  9116. ee.WriteMapStart(len(v))
  9117. if e.h.Canonical {
  9118. v2 := make([]uint64, len(v))
  9119. var i int
  9120. for k, _ := range v {
  9121. v2[i] = uint64(k)
  9122. i++
  9123. }
  9124. sort.Sort(uintSlice(v2))
  9125. if esep {
  9126. for _, k2 := range v2 {
  9127. ee.WriteMapElemKey()
  9128. ee.EncodeUint(uint64(uint64(k2)))
  9129. ee.WriteMapElemValue()
  9130. ee.EncodeFloat32(v[uint64(k2)])
  9131. }
  9132. } else {
  9133. for _, k2 := range v2 {
  9134. ee.EncodeUint(uint64(uint64(k2)))
  9135. ee.EncodeFloat32(v[uint64(k2)])
  9136. }
  9137. }
  9138. } else {
  9139. if esep {
  9140. for k2, v2 := range v {
  9141. ee.WriteMapElemKey()
  9142. ee.EncodeUint(uint64(k2))
  9143. ee.WriteMapElemValue()
  9144. ee.EncodeFloat32(v2)
  9145. }
  9146. } else {
  9147. for k2, v2 := range v {
  9148. ee.EncodeUint(uint64(k2))
  9149. ee.EncodeFloat32(v2)
  9150. }
  9151. }
  9152. }
  9153. ee.WriteMapEnd()
  9154. }
  9155. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  9156. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  9157. }
  9158. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  9159. if v == nil {
  9160. e.e.EncodeNil()
  9161. return
  9162. }
  9163. ee, esep := e.e, e.hh.hasElemSeparators()
  9164. ee.WriteMapStart(len(v))
  9165. if e.h.Canonical {
  9166. v2 := make([]uint64, len(v))
  9167. var i int
  9168. for k, _ := range v {
  9169. v2[i] = uint64(k)
  9170. i++
  9171. }
  9172. sort.Sort(uintSlice(v2))
  9173. if esep {
  9174. for _, k2 := range v2 {
  9175. ee.WriteMapElemKey()
  9176. ee.EncodeUint(uint64(uint64(k2)))
  9177. ee.WriteMapElemValue()
  9178. ee.EncodeFloat64(v[uint64(k2)])
  9179. }
  9180. } else {
  9181. for _, k2 := range v2 {
  9182. ee.EncodeUint(uint64(uint64(k2)))
  9183. ee.EncodeFloat64(v[uint64(k2)])
  9184. }
  9185. }
  9186. } else {
  9187. if esep {
  9188. for k2, v2 := range v {
  9189. ee.WriteMapElemKey()
  9190. ee.EncodeUint(uint64(k2))
  9191. ee.WriteMapElemValue()
  9192. ee.EncodeFloat64(v2)
  9193. }
  9194. } else {
  9195. for k2, v2 := range v {
  9196. ee.EncodeUint(uint64(k2))
  9197. ee.EncodeFloat64(v2)
  9198. }
  9199. }
  9200. }
  9201. ee.WriteMapEnd()
  9202. }
  9203. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  9204. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  9205. }
  9206. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  9207. if v == nil {
  9208. e.e.EncodeNil()
  9209. return
  9210. }
  9211. ee, esep := e.e, e.hh.hasElemSeparators()
  9212. ee.WriteMapStart(len(v))
  9213. if e.h.Canonical {
  9214. v2 := make([]uint64, len(v))
  9215. var i int
  9216. for k, _ := range v {
  9217. v2[i] = uint64(k)
  9218. i++
  9219. }
  9220. sort.Sort(uintSlice(v2))
  9221. if esep {
  9222. for _, k2 := range v2 {
  9223. ee.WriteMapElemKey()
  9224. ee.EncodeUint(uint64(uint64(k2)))
  9225. ee.WriteMapElemValue()
  9226. ee.EncodeBool(v[uint64(k2)])
  9227. }
  9228. } else {
  9229. for _, k2 := range v2 {
  9230. ee.EncodeUint(uint64(uint64(k2)))
  9231. ee.EncodeBool(v[uint64(k2)])
  9232. }
  9233. }
  9234. } else {
  9235. if esep {
  9236. for k2, v2 := range v {
  9237. ee.WriteMapElemKey()
  9238. ee.EncodeUint(uint64(k2))
  9239. ee.WriteMapElemValue()
  9240. ee.EncodeBool(v2)
  9241. }
  9242. } else {
  9243. for k2, v2 := range v {
  9244. ee.EncodeUint(uint64(k2))
  9245. ee.EncodeBool(v2)
  9246. }
  9247. }
  9248. }
  9249. ee.WriteMapEnd()
  9250. }
  9251. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  9252. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  9253. }
  9254. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  9255. if v == nil {
  9256. e.e.EncodeNil()
  9257. return
  9258. }
  9259. ee, esep := e.e, e.hh.hasElemSeparators()
  9260. ee.WriteMapStart(len(v))
  9261. if e.h.Canonical {
  9262. v2 := make([]uint64, len(v))
  9263. var i int
  9264. for k, _ := range v {
  9265. v2[i] = uint64(k)
  9266. i++
  9267. }
  9268. sort.Sort(uintSlice(v2))
  9269. if esep {
  9270. for _, k2 := range v2 {
  9271. ee.WriteMapElemKey()
  9272. e.encode(uintptr(k2))
  9273. ee.WriteMapElemValue()
  9274. e.encode(v[uintptr(k2)])
  9275. }
  9276. } else {
  9277. for _, k2 := range v2 {
  9278. e.encode(uintptr(k2))
  9279. e.encode(v[uintptr(k2)])
  9280. }
  9281. }
  9282. } else {
  9283. if esep {
  9284. for k2, v2 := range v {
  9285. ee.WriteMapElemKey()
  9286. e.encode(k2)
  9287. ee.WriteMapElemValue()
  9288. e.encode(v2)
  9289. }
  9290. } else {
  9291. for k2, v2 := range v {
  9292. e.encode(k2)
  9293. e.encode(v2)
  9294. }
  9295. }
  9296. }
  9297. ee.WriteMapEnd()
  9298. }
  9299. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  9300. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  9301. }
  9302. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  9303. if v == nil {
  9304. e.e.EncodeNil()
  9305. return
  9306. }
  9307. ee, esep := e.e, e.hh.hasElemSeparators()
  9308. ee.WriteMapStart(len(v))
  9309. if e.h.Canonical {
  9310. v2 := make([]uint64, len(v))
  9311. var i int
  9312. for k, _ := range v {
  9313. v2[i] = uint64(k)
  9314. i++
  9315. }
  9316. sort.Sort(uintSlice(v2))
  9317. if esep {
  9318. for _, k2 := range v2 {
  9319. ee.WriteMapElemKey()
  9320. e.encode(uintptr(k2))
  9321. ee.WriteMapElemValue()
  9322. ee.EncodeString(cUTF8, v[uintptr(k2)])
  9323. }
  9324. } else {
  9325. for _, k2 := range v2 {
  9326. e.encode(uintptr(k2))
  9327. ee.EncodeString(cUTF8, v[uintptr(k2)])
  9328. }
  9329. }
  9330. } else {
  9331. if esep {
  9332. for k2, v2 := range v {
  9333. ee.WriteMapElemKey()
  9334. e.encode(k2)
  9335. ee.WriteMapElemValue()
  9336. ee.EncodeString(cUTF8, v2)
  9337. }
  9338. } else {
  9339. for k2, v2 := range v {
  9340. e.encode(k2)
  9341. ee.EncodeString(cUTF8, v2)
  9342. }
  9343. }
  9344. }
  9345. ee.WriteMapEnd()
  9346. }
  9347. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  9348. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  9349. }
  9350. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  9351. if v == nil {
  9352. e.e.EncodeNil()
  9353. return
  9354. }
  9355. ee, esep := e.e, e.hh.hasElemSeparators()
  9356. ee.WriteMapStart(len(v))
  9357. if e.h.Canonical {
  9358. v2 := make([]uint64, len(v))
  9359. var i int
  9360. for k, _ := range v {
  9361. v2[i] = uint64(k)
  9362. i++
  9363. }
  9364. sort.Sort(uintSlice(v2))
  9365. if esep {
  9366. for _, k2 := range v2 {
  9367. ee.WriteMapElemKey()
  9368. e.encode(uintptr(k2))
  9369. ee.WriteMapElemValue()
  9370. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9371. }
  9372. } else {
  9373. for _, k2 := range v2 {
  9374. e.encode(uintptr(k2))
  9375. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9376. }
  9377. }
  9378. } else {
  9379. if esep {
  9380. for k2, v2 := range v {
  9381. ee.WriteMapElemKey()
  9382. e.encode(k2)
  9383. ee.WriteMapElemValue()
  9384. ee.EncodeUint(uint64(v2))
  9385. }
  9386. } else {
  9387. for k2, v2 := range v {
  9388. e.encode(k2)
  9389. ee.EncodeUint(uint64(v2))
  9390. }
  9391. }
  9392. }
  9393. ee.WriteMapEnd()
  9394. }
  9395. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  9396. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  9397. }
  9398. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  9399. if v == nil {
  9400. e.e.EncodeNil()
  9401. return
  9402. }
  9403. ee, esep := e.e, e.hh.hasElemSeparators()
  9404. ee.WriteMapStart(len(v))
  9405. if e.h.Canonical {
  9406. v2 := make([]uint64, len(v))
  9407. var i int
  9408. for k, _ := range v {
  9409. v2[i] = uint64(k)
  9410. i++
  9411. }
  9412. sort.Sort(uintSlice(v2))
  9413. if esep {
  9414. for _, k2 := range v2 {
  9415. ee.WriteMapElemKey()
  9416. e.encode(uintptr(k2))
  9417. ee.WriteMapElemValue()
  9418. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9419. }
  9420. } else {
  9421. for _, k2 := range v2 {
  9422. e.encode(uintptr(k2))
  9423. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9424. }
  9425. }
  9426. } else {
  9427. if esep {
  9428. for k2, v2 := range v {
  9429. ee.WriteMapElemKey()
  9430. e.encode(k2)
  9431. ee.WriteMapElemValue()
  9432. ee.EncodeUint(uint64(v2))
  9433. }
  9434. } else {
  9435. for k2, v2 := range v {
  9436. e.encode(k2)
  9437. ee.EncodeUint(uint64(v2))
  9438. }
  9439. }
  9440. }
  9441. ee.WriteMapEnd()
  9442. }
  9443. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  9444. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  9445. }
  9446. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  9447. if v == nil {
  9448. e.e.EncodeNil()
  9449. return
  9450. }
  9451. ee, esep := e.e, e.hh.hasElemSeparators()
  9452. ee.WriteMapStart(len(v))
  9453. if e.h.Canonical {
  9454. v2 := make([]uint64, len(v))
  9455. var i int
  9456. for k, _ := range v {
  9457. v2[i] = uint64(k)
  9458. i++
  9459. }
  9460. sort.Sort(uintSlice(v2))
  9461. if esep {
  9462. for _, k2 := range v2 {
  9463. ee.WriteMapElemKey()
  9464. e.encode(uintptr(k2))
  9465. ee.WriteMapElemValue()
  9466. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9467. }
  9468. } else {
  9469. for _, k2 := range v2 {
  9470. e.encode(uintptr(k2))
  9471. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9472. }
  9473. }
  9474. } else {
  9475. if esep {
  9476. for k2, v2 := range v {
  9477. ee.WriteMapElemKey()
  9478. e.encode(k2)
  9479. ee.WriteMapElemValue()
  9480. ee.EncodeUint(uint64(v2))
  9481. }
  9482. } else {
  9483. for k2, v2 := range v {
  9484. e.encode(k2)
  9485. ee.EncodeUint(uint64(v2))
  9486. }
  9487. }
  9488. }
  9489. ee.WriteMapEnd()
  9490. }
  9491. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  9492. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  9493. }
  9494. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  9495. if v == nil {
  9496. e.e.EncodeNil()
  9497. return
  9498. }
  9499. ee, esep := e.e, e.hh.hasElemSeparators()
  9500. ee.WriteMapStart(len(v))
  9501. if e.h.Canonical {
  9502. v2 := make([]uint64, len(v))
  9503. var i int
  9504. for k, _ := range v {
  9505. v2[i] = uint64(k)
  9506. i++
  9507. }
  9508. sort.Sort(uintSlice(v2))
  9509. if esep {
  9510. for _, k2 := range v2 {
  9511. ee.WriteMapElemKey()
  9512. e.encode(uintptr(k2))
  9513. ee.WriteMapElemValue()
  9514. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9515. }
  9516. } else {
  9517. for _, k2 := range v2 {
  9518. e.encode(uintptr(k2))
  9519. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9520. }
  9521. }
  9522. } else {
  9523. if esep {
  9524. for k2, v2 := range v {
  9525. ee.WriteMapElemKey()
  9526. e.encode(k2)
  9527. ee.WriteMapElemValue()
  9528. ee.EncodeUint(uint64(v2))
  9529. }
  9530. } else {
  9531. for k2, v2 := range v {
  9532. e.encode(k2)
  9533. ee.EncodeUint(uint64(v2))
  9534. }
  9535. }
  9536. }
  9537. ee.WriteMapEnd()
  9538. }
  9539. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  9540. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  9541. }
  9542. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
  9543. if v == nil {
  9544. e.e.EncodeNil()
  9545. return
  9546. }
  9547. ee, esep := e.e, e.hh.hasElemSeparators()
  9548. ee.WriteMapStart(len(v))
  9549. if e.h.Canonical {
  9550. v2 := make([]uint64, len(v))
  9551. var i int
  9552. for k, _ := range v {
  9553. v2[i] = uint64(k)
  9554. i++
  9555. }
  9556. sort.Sort(uintSlice(v2))
  9557. if esep {
  9558. for _, k2 := range v2 {
  9559. ee.WriteMapElemKey()
  9560. e.encode(uintptr(k2))
  9561. ee.WriteMapElemValue()
  9562. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9563. }
  9564. } else {
  9565. for _, k2 := range v2 {
  9566. e.encode(uintptr(k2))
  9567. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9568. }
  9569. }
  9570. } else {
  9571. if esep {
  9572. for k2, v2 := range v {
  9573. ee.WriteMapElemKey()
  9574. e.encode(k2)
  9575. ee.WriteMapElemValue()
  9576. ee.EncodeUint(uint64(v2))
  9577. }
  9578. } else {
  9579. for k2, v2 := range v {
  9580. e.encode(k2)
  9581. ee.EncodeUint(uint64(v2))
  9582. }
  9583. }
  9584. }
  9585. ee.WriteMapEnd()
  9586. }
  9587. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  9588. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  9589. }
  9590. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  9591. if v == nil {
  9592. e.e.EncodeNil()
  9593. return
  9594. }
  9595. ee, esep := e.e, e.hh.hasElemSeparators()
  9596. ee.WriteMapStart(len(v))
  9597. if e.h.Canonical {
  9598. v2 := make([]uint64, len(v))
  9599. var i int
  9600. for k, _ := range v {
  9601. v2[i] = uint64(k)
  9602. i++
  9603. }
  9604. sort.Sort(uintSlice(v2))
  9605. if esep {
  9606. for _, k2 := range v2 {
  9607. ee.WriteMapElemKey()
  9608. e.encode(uintptr(k2))
  9609. ee.WriteMapElemValue()
  9610. e.encode(v[uintptr(k2)])
  9611. }
  9612. } else {
  9613. for _, k2 := range v2 {
  9614. e.encode(uintptr(k2))
  9615. e.encode(v[uintptr(k2)])
  9616. }
  9617. }
  9618. } else {
  9619. if esep {
  9620. for k2, v2 := range v {
  9621. ee.WriteMapElemKey()
  9622. e.encode(k2)
  9623. ee.WriteMapElemValue()
  9624. e.encode(v2)
  9625. }
  9626. } else {
  9627. for k2, v2 := range v {
  9628. e.encode(k2)
  9629. e.encode(v2)
  9630. }
  9631. }
  9632. }
  9633. ee.WriteMapEnd()
  9634. }
  9635. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  9636. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  9637. }
  9638. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  9639. if v == nil {
  9640. e.e.EncodeNil()
  9641. return
  9642. }
  9643. ee, esep := e.e, e.hh.hasElemSeparators()
  9644. ee.WriteMapStart(len(v))
  9645. if e.h.Canonical {
  9646. v2 := make([]uint64, len(v))
  9647. var i int
  9648. for k, _ := range v {
  9649. v2[i] = uint64(k)
  9650. i++
  9651. }
  9652. sort.Sort(uintSlice(v2))
  9653. if esep {
  9654. for _, k2 := range v2 {
  9655. ee.WriteMapElemKey()
  9656. e.encode(uintptr(k2))
  9657. ee.WriteMapElemValue()
  9658. ee.EncodeInt(int64(v[uintptr(k2)]))
  9659. }
  9660. } else {
  9661. for _, k2 := range v2 {
  9662. e.encode(uintptr(k2))
  9663. ee.EncodeInt(int64(v[uintptr(k2)]))
  9664. }
  9665. }
  9666. } else {
  9667. if esep {
  9668. for k2, v2 := range v {
  9669. ee.WriteMapElemKey()
  9670. e.encode(k2)
  9671. ee.WriteMapElemValue()
  9672. ee.EncodeInt(int64(v2))
  9673. }
  9674. } else {
  9675. for k2, v2 := range v {
  9676. e.encode(k2)
  9677. ee.EncodeInt(int64(v2))
  9678. }
  9679. }
  9680. }
  9681. ee.WriteMapEnd()
  9682. }
  9683. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  9684. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  9685. }
  9686. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  9687. if v == nil {
  9688. e.e.EncodeNil()
  9689. return
  9690. }
  9691. ee, esep := e.e, e.hh.hasElemSeparators()
  9692. ee.WriteMapStart(len(v))
  9693. if e.h.Canonical {
  9694. v2 := make([]uint64, len(v))
  9695. var i int
  9696. for k, _ := range v {
  9697. v2[i] = uint64(k)
  9698. i++
  9699. }
  9700. sort.Sort(uintSlice(v2))
  9701. if esep {
  9702. for _, k2 := range v2 {
  9703. ee.WriteMapElemKey()
  9704. e.encode(uintptr(k2))
  9705. ee.WriteMapElemValue()
  9706. ee.EncodeInt(int64(v[uintptr(k2)]))
  9707. }
  9708. } else {
  9709. for _, k2 := range v2 {
  9710. e.encode(uintptr(k2))
  9711. ee.EncodeInt(int64(v[uintptr(k2)]))
  9712. }
  9713. }
  9714. } else {
  9715. if esep {
  9716. for k2, v2 := range v {
  9717. ee.WriteMapElemKey()
  9718. e.encode(k2)
  9719. ee.WriteMapElemValue()
  9720. ee.EncodeInt(int64(v2))
  9721. }
  9722. } else {
  9723. for k2, v2 := range v {
  9724. e.encode(k2)
  9725. ee.EncodeInt(int64(v2))
  9726. }
  9727. }
  9728. }
  9729. ee.WriteMapEnd()
  9730. }
  9731. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  9732. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  9733. }
  9734. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  9735. if v == nil {
  9736. e.e.EncodeNil()
  9737. return
  9738. }
  9739. ee, esep := e.e, e.hh.hasElemSeparators()
  9740. ee.WriteMapStart(len(v))
  9741. if e.h.Canonical {
  9742. v2 := make([]uint64, len(v))
  9743. var i int
  9744. for k, _ := range v {
  9745. v2[i] = uint64(k)
  9746. i++
  9747. }
  9748. sort.Sort(uintSlice(v2))
  9749. if esep {
  9750. for _, k2 := range v2 {
  9751. ee.WriteMapElemKey()
  9752. e.encode(uintptr(k2))
  9753. ee.WriteMapElemValue()
  9754. ee.EncodeInt(int64(v[uintptr(k2)]))
  9755. }
  9756. } else {
  9757. for _, k2 := range v2 {
  9758. e.encode(uintptr(k2))
  9759. ee.EncodeInt(int64(v[uintptr(k2)]))
  9760. }
  9761. }
  9762. } else {
  9763. if esep {
  9764. for k2, v2 := range v {
  9765. ee.WriteMapElemKey()
  9766. e.encode(k2)
  9767. ee.WriteMapElemValue()
  9768. ee.EncodeInt(int64(v2))
  9769. }
  9770. } else {
  9771. for k2, v2 := range v {
  9772. e.encode(k2)
  9773. ee.EncodeInt(int64(v2))
  9774. }
  9775. }
  9776. }
  9777. ee.WriteMapEnd()
  9778. }
  9779. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  9780. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  9781. }
  9782. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  9783. if v == nil {
  9784. e.e.EncodeNil()
  9785. return
  9786. }
  9787. ee, esep := e.e, e.hh.hasElemSeparators()
  9788. ee.WriteMapStart(len(v))
  9789. if e.h.Canonical {
  9790. v2 := make([]uint64, len(v))
  9791. var i int
  9792. for k, _ := range v {
  9793. v2[i] = uint64(k)
  9794. i++
  9795. }
  9796. sort.Sort(uintSlice(v2))
  9797. if esep {
  9798. for _, k2 := range v2 {
  9799. ee.WriteMapElemKey()
  9800. e.encode(uintptr(k2))
  9801. ee.WriteMapElemValue()
  9802. ee.EncodeInt(int64(v[uintptr(k2)]))
  9803. }
  9804. } else {
  9805. for _, k2 := range v2 {
  9806. e.encode(uintptr(k2))
  9807. ee.EncodeInt(int64(v[uintptr(k2)]))
  9808. }
  9809. }
  9810. } else {
  9811. if esep {
  9812. for k2, v2 := range v {
  9813. ee.WriteMapElemKey()
  9814. e.encode(k2)
  9815. ee.WriteMapElemValue()
  9816. ee.EncodeInt(int64(v2))
  9817. }
  9818. } else {
  9819. for k2, v2 := range v {
  9820. e.encode(k2)
  9821. ee.EncodeInt(int64(v2))
  9822. }
  9823. }
  9824. }
  9825. ee.WriteMapEnd()
  9826. }
  9827. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  9828. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  9829. }
  9830. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  9831. if v == nil {
  9832. e.e.EncodeNil()
  9833. return
  9834. }
  9835. ee, esep := e.e, e.hh.hasElemSeparators()
  9836. ee.WriteMapStart(len(v))
  9837. if e.h.Canonical {
  9838. v2 := make([]uint64, len(v))
  9839. var i int
  9840. for k, _ := range v {
  9841. v2[i] = uint64(k)
  9842. i++
  9843. }
  9844. sort.Sort(uintSlice(v2))
  9845. if esep {
  9846. for _, k2 := range v2 {
  9847. ee.WriteMapElemKey()
  9848. e.encode(uintptr(k2))
  9849. ee.WriteMapElemValue()
  9850. ee.EncodeInt(int64(v[uintptr(k2)]))
  9851. }
  9852. } else {
  9853. for _, k2 := range v2 {
  9854. e.encode(uintptr(k2))
  9855. ee.EncodeInt(int64(v[uintptr(k2)]))
  9856. }
  9857. }
  9858. } else {
  9859. if esep {
  9860. for k2, v2 := range v {
  9861. ee.WriteMapElemKey()
  9862. e.encode(k2)
  9863. ee.WriteMapElemValue()
  9864. ee.EncodeInt(int64(v2))
  9865. }
  9866. } else {
  9867. for k2, v2 := range v {
  9868. e.encode(k2)
  9869. ee.EncodeInt(int64(v2))
  9870. }
  9871. }
  9872. }
  9873. ee.WriteMapEnd()
  9874. }
  9875. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  9876. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  9877. }
  9878. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  9879. if v == nil {
  9880. e.e.EncodeNil()
  9881. return
  9882. }
  9883. ee, esep := e.e, e.hh.hasElemSeparators()
  9884. ee.WriteMapStart(len(v))
  9885. if e.h.Canonical {
  9886. v2 := make([]uint64, len(v))
  9887. var i int
  9888. for k, _ := range v {
  9889. v2[i] = uint64(k)
  9890. i++
  9891. }
  9892. sort.Sort(uintSlice(v2))
  9893. if esep {
  9894. for _, k2 := range v2 {
  9895. ee.WriteMapElemKey()
  9896. e.encode(uintptr(k2))
  9897. ee.WriteMapElemValue()
  9898. ee.EncodeFloat32(v[uintptr(k2)])
  9899. }
  9900. } else {
  9901. for _, k2 := range v2 {
  9902. e.encode(uintptr(k2))
  9903. ee.EncodeFloat32(v[uintptr(k2)])
  9904. }
  9905. }
  9906. } else {
  9907. if esep {
  9908. for k2, v2 := range v {
  9909. ee.WriteMapElemKey()
  9910. e.encode(k2)
  9911. ee.WriteMapElemValue()
  9912. ee.EncodeFloat32(v2)
  9913. }
  9914. } else {
  9915. for k2, v2 := range v {
  9916. e.encode(k2)
  9917. ee.EncodeFloat32(v2)
  9918. }
  9919. }
  9920. }
  9921. ee.WriteMapEnd()
  9922. }
  9923. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  9924. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  9925. }
  9926. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
  9927. if v == nil {
  9928. e.e.EncodeNil()
  9929. return
  9930. }
  9931. ee, esep := e.e, e.hh.hasElemSeparators()
  9932. ee.WriteMapStart(len(v))
  9933. if e.h.Canonical {
  9934. v2 := make([]uint64, len(v))
  9935. var i int
  9936. for k, _ := range v {
  9937. v2[i] = uint64(k)
  9938. i++
  9939. }
  9940. sort.Sort(uintSlice(v2))
  9941. if esep {
  9942. for _, k2 := range v2 {
  9943. ee.WriteMapElemKey()
  9944. e.encode(uintptr(k2))
  9945. ee.WriteMapElemValue()
  9946. ee.EncodeFloat64(v[uintptr(k2)])
  9947. }
  9948. } else {
  9949. for _, k2 := range v2 {
  9950. e.encode(uintptr(k2))
  9951. ee.EncodeFloat64(v[uintptr(k2)])
  9952. }
  9953. }
  9954. } else {
  9955. if esep {
  9956. for k2, v2 := range v {
  9957. ee.WriteMapElemKey()
  9958. e.encode(k2)
  9959. ee.WriteMapElemValue()
  9960. ee.EncodeFloat64(v2)
  9961. }
  9962. } else {
  9963. for k2, v2 := range v {
  9964. e.encode(k2)
  9965. ee.EncodeFloat64(v2)
  9966. }
  9967. }
  9968. }
  9969. ee.WriteMapEnd()
  9970. }
  9971. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  9972. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  9973. }
  9974. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  9975. if v == nil {
  9976. e.e.EncodeNil()
  9977. return
  9978. }
  9979. ee, esep := e.e, e.hh.hasElemSeparators()
  9980. ee.WriteMapStart(len(v))
  9981. if e.h.Canonical {
  9982. v2 := make([]uint64, len(v))
  9983. var i int
  9984. for k, _ := range v {
  9985. v2[i] = uint64(k)
  9986. i++
  9987. }
  9988. sort.Sort(uintSlice(v2))
  9989. if esep {
  9990. for _, k2 := range v2 {
  9991. ee.WriteMapElemKey()
  9992. e.encode(uintptr(k2))
  9993. ee.WriteMapElemValue()
  9994. ee.EncodeBool(v[uintptr(k2)])
  9995. }
  9996. } else {
  9997. for _, k2 := range v2 {
  9998. e.encode(uintptr(k2))
  9999. ee.EncodeBool(v[uintptr(k2)])
  10000. }
  10001. }
  10002. } else {
  10003. if esep {
  10004. for k2, v2 := range v {
  10005. ee.WriteMapElemKey()
  10006. e.encode(k2)
  10007. ee.WriteMapElemValue()
  10008. ee.EncodeBool(v2)
  10009. }
  10010. } else {
  10011. for k2, v2 := range v {
  10012. e.encode(k2)
  10013. ee.EncodeBool(v2)
  10014. }
  10015. }
  10016. }
  10017. ee.WriteMapEnd()
  10018. }
  10019. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  10020. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  10021. }
  10022. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  10023. if v == nil {
  10024. e.e.EncodeNil()
  10025. return
  10026. }
  10027. ee, esep := e.e, e.hh.hasElemSeparators()
  10028. ee.WriteMapStart(len(v))
  10029. if e.h.Canonical {
  10030. v2 := make([]int64, len(v))
  10031. var i int
  10032. for k, _ := range v {
  10033. v2[i] = int64(k)
  10034. i++
  10035. }
  10036. sort.Sort(intSlice(v2))
  10037. if esep {
  10038. for _, k2 := range v2 {
  10039. ee.WriteMapElemKey()
  10040. ee.EncodeInt(int64(int(k2)))
  10041. ee.WriteMapElemValue()
  10042. e.encode(v[int(k2)])
  10043. }
  10044. } else {
  10045. for _, k2 := range v2 {
  10046. ee.EncodeInt(int64(int(k2)))
  10047. e.encode(v[int(k2)])
  10048. }
  10049. }
  10050. } else {
  10051. if esep {
  10052. for k2, v2 := range v {
  10053. ee.WriteMapElemKey()
  10054. ee.EncodeInt(int64(k2))
  10055. ee.WriteMapElemValue()
  10056. e.encode(v2)
  10057. }
  10058. } else {
  10059. for k2, v2 := range v {
  10060. ee.EncodeInt(int64(k2))
  10061. e.encode(v2)
  10062. }
  10063. }
  10064. }
  10065. ee.WriteMapEnd()
  10066. }
  10067. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  10068. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  10069. }
  10070. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  10071. if v == nil {
  10072. e.e.EncodeNil()
  10073. return
  10074. }
  10075. ee, esep := e.e, e.hh.hasElemSeparators()
  10076. ee.WriteMapStart(len(v))
  10077. if e.h.Canonical {
  10078. v2 := make([]int64, len(v))
  10079. var i int
  10080. for k, _ := range v {
  10081. v2[i] = int64(k)
  10082. i++
  10083. }
  10084. sort.Sort(intSlice(v2))
  10085. if esep {
  10086. for _, k2 := range v2 {
  10087. ee.WriteMapElemKey()
  10088. ee.EncodeInt(int64(int(k2)))
  10089. ee.WriteMapElemValue()
  10090. ee.EncodeString(cUTF8, v[int(k2)])
  10091. }
  10092. } else {
  10093. for _, k2 := range v2 {
  10094. ee.EncodeInt(int64(int(k2)))
  10095. ee.EncodeString(cUTF8, v[int(k2)])
  10096. }
  10097. }
  10098. } else {
  10099. if esep {
  10100. for k2, v2 := range v {
  10101. ee.WriteMapElemKey()
  10102. ee.EncodeInt(int64(k2))
  10103. ee.WriteMapElemValue()
  10104. ee.EncodeString(cUTF8, v2)
  10105. }
  10106. } else {
  10107. for k2, v2 := range v {
  10108. ee.EncodeInt(int64(k2))
  10109. ee.EncodeString(cUTF8, v2)
  10110. }
  10111. }
  10112. }
  10113. ee.WriteMapEnd()
  10114. }
  10115. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  10116. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  10117. }
  10118. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  10119. if v == nil {
  10120. e.e.EncodeNil()
  10121. return
  10122. }
  10123. ee, esep := e.e, e.hh.hasElemSeparators()
  10124. ee.WriteMapStart(len(v))
  10125. if e.h.Canonical {
  10126. v2 := make([]int64, len(v))
  10127. var i int
  10128. for k, _ := range v {
  10129. v2[i] = int64(k)
  10130. i++
  10131. }
  10132. sort.Sort(intSlice(v2))
  10133. if esep {
  10134. for _, k2 := range v2 {
  10135. ee.WriteMapElemKey()
  10136. ee.EncodeInt(int64(int(k2)))
  10137. ee.WriteMapElemValue()
  10138. ee.EncodeUint(uint64(v[int(k2)]))
  10139. }
  10140. } else {
  10141. for _, k2 := range v2 {
  10142. ee.EncodeInt(int64(int(k2)))
  10143. ee.EncodeUint(uint64(v[int(k2)]))
  10144. }
  10145. }
  10146. } else {
  10147. if esep {
  10148. for k2, v2 := range v {
  10149. ee.WriteMapElemKey()
  10150. ee.EncodeInt(int64(k2))
  10151. ee.WriteMapElemValue()
  10152. ee.EncodeUint(uint64(v2))
  10153. }
  10154. } else {
  10155. for k2, v2 := range v {
  10156. ee.EncodeInt(int64(k2))
  10157. ee.EncodeUint(uint64(v2))
  10158. }
  10159. }
  10160. }
  10161. ee.WriteMapEnd()
  10162. }
  10163. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  10164. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  10165. }
  10166. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  10167. if v == nil {
  10168. e.e.EncodeNil()
  10169. return
  10170. }
  10171. ee, esep := e.e, e.hh.hasElemSeparators()
  10172. ee.WriteMapStart(len(v))
  10173. if e.h.Canonical {
  10174. v2 := make([]int64, len(v))
  10175. var i int
  10176. for k, _ := range v {
  10177. v2[i] = int64(k)
  10178. i++
  10179. }
  10180. sort.Sort(intSlice(v2))
  10181. if esep {
  10182. for _, k2 := range v2 {
  10183. ee.WriteMapElemKey()
  10184. ee.EncodeInt(int64(int(k2)))
  10185. ee.WriteMapElemValue()
  10186. ee.EncodeUint(uint64(v[int(k2)]))
  10187. }
  10188. } else {
  10189. for _, k2 := range v2 {
  10190. ee.EncodeInt(int64(int(k2)))
  10191. ee.EncodeUint(uint64(v[int(k2)]))
  10192. }
  10193. }
  10194. } else {
  10195. if esep {
  10196. for k2, v2 := range v {
  10197. ee.WriteMapElemKey()
  10198. ee.EncodeInt(int64(k2))
  10199. ee.WriteMapElemValue()
  10200. ee.EncodeUint(uint64(v2))
  10201. }
  10202. } else {
  10203. for k2, v2 := range v {
  10204. ee.EncodeInt(int64(k2))
  10205. ee.EncodeUint(uint64(v2))
  10206. }
  10207. }
  10208. }
  10209. ee.WriteMapEnd()
  10210. }
  10211. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  10212. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  10213. }
  10214. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  10215. if v == nil {
  10216. e.e.EncodeNil()
  10217. return
  10218. }
  10219. ee, esep := e.e, e.hh.hasElemSeparators()
  10220. ee.WriteMapStart(len(v))
  10221. if e.h.Canonical {
  10222. v2 := make([]int64, len(v))
  10223. var i int
  10224. for k, _ := range v {
  10225. v2[i] = int64(k)
  10226. i++
  10227. }
  10228. sort.Sort(intSlice(v2))
  10229. if esep {
  10230. for _, k2 := range v2 {
  10231. ee.WriteMapElemKey()
  10232. ee.EncodeInt(int64(int(k2)))
  10233. ee.WriteMapElemValue()
  10234. ee.EncodeUint(uint64(v[int(k2)]))
  10235. }
  10236. } else {
  10237. for _, k2 := range v2 {
  10238. ee.EncodeInt(int64(int(k2)))
  10239. ee.EncodeUint(uint64(v[int(k2)]))
  10240. }
  10241. }
  10242. } else {
  10243. if esep {
  10244. for k2, v2 := range v {
  10245. ee.WriteMapElemKey()
  10246. ee.EncodeInt(int64(k2))
  10247. ee.WriteMapElemValue()
  10248. ee.EncodeUint(uint64(v2))
  10249. }
  10250. } else {
  10251. for k2, v2 := range v {
  10252. ee.EncodeInt(int64(k2))
  10253. ee.EncodeUint(uint64(v2))
  10254. }
  10255. }
  10256. }
  10257. ee.WriteMapEnd()
  10258. }
  10259. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  10260. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  10261. }
  10262. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  10263. if v == nil {
  10264. e.e.EncodeNil()
  10265. return
  10266. }
  10267. ee, esep := e.e, e.hh.hasElemSeparators()
  10268. ee.WriteMapStart(len(v))
  10269. if e.h.Canonical {
  10270. v2 := make([]int64, len(v))
  10271. var i int
  10272. for k, _ := range v {
  10273. v2[i] = int64(k)
  10274. i++
  10275. }
  10276. sort.Sort(intSlice(v2))
  10277. if esep {
  10278. for _, k2 := range v2 {
  10279. ee.WriteMapElemKey()
  10280. ee.EncodeInt(int64(int(k2)))
  10281. ee.WriteMapElemValue()
  10282. ee.EncodeUint(uint64(v[int(k2)]))
  10283. }
  10284. } else {
  10285. for _, k2 := range v2 {
  10286. ee.EncodeInt(int64(int(k2)))
  10287. ee.EncodeUint(uint64(v[int(k2)]))
  10288. }
  10289. }
  10290. } else {
  10291. if esep {
  10292. for k2, v2 := range v {
  10293. ee.WriteMapElemKey()
  10294. ee.EncodeInt(int64(k2))
  10295. ee.WriteMapElemValue()
  10296. ee.EncodeUint(uint64(v2))
  10297. }
  10298. } else {
  10299. for k2, v2 := range v {
  10300. ee.EncodeInt(int64(k2))
  10301. ee.EncodeUint(uint64(v2))
  10302. }
  10303. }
  10304. }
  10305. ee.WriteMapEnd()
  10306. }
  10307. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  10308. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  10309. }
  10310. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  10311. if v == nil {
  10312. e.e.EncodeNil()
  10313. return
  10314. }
  10315. ee, esep := e.e, e.hh.hasElemSeparators()
  10316. ee.WriteMapStart(len(v))
  10317. if e.h.Canonical {
  10318. v2 := make([]int64, len(v))
  10319. var i int
  10320. for k, _ := range v {
  10321. v2[i] = int64(k)
  10322. i++
  10323. }
  10324. sort.Sort(intSlice(v2))
  10325. if esep {
  10326. for _, k2 := range v2 {
  10327. ee.WriteMapElemKey()
  10328. ee.EncodeInt(int64(int(k2)))
  10329. ee.WriteMapElemValue()
  10330. ee.EncodeUint(uint64(v[int(k2)]))
  10331. }
  10332. } else {
  10333. for _, k2 := range v2 {
  10334. ee.EncodeInt(int64(int(k2)))
  10335. ee.EncodeUint(uint64(v[int(k2)]))
  10336. }
  10337. }
  10338. } else {
  10339. if esep {
  10340. for k2, v2 := range v {
  10341. ee.WriteMapElemKey()
  10342. ee.EncodeInt(int64(k2))
  10343. ee.WriteMapElemValue()
  10344. ee.EncodeUint(uint64(v2))
  10345. }
  10346. } else {
  10347. for k2, v2 := range v {
  10348. ee.EncodeInt(int64(k2))
  10349. ee.EncodeUint(uint64(v2))
  10350. }
  10351. }
  10352. }
  10353. ee.WriteMapEnd()
  10354. }
  10355. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  10356. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  10357. }
  10358. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  10359. if v == nil {
  10360. e.e.EncodeNil()
  10361. return
  10362. }
  10363. ee, esep := e.e, e.hh.hasElemSeparators()
  10364. ee.WriteMapStart(len(v))
  10365. if e.h.Canonical {
  10366. v2 := make([]int64, len(v))
  10367. var i int
  10368. for k, _ := range v {
  10369. v2[i] = int64(k)
  10370. i++
  10371. }
  10372. sort.Sort(intSlice(v2))
  10373. if esep {
  10374. for _, k2 := range v2 {
  10375. ee.WriteMapElemKey()
  10376. ee.EncodeInt(int64(int(k2)))
  10377. ee.WriteMapElemValue()
  10378. e.encode(v[int(k2)])
  10379. }
  10380. } else {
  10381. for _, k2 := range v2 {
  10382. ee.EncodeInt(int64(int(k2)))
  10383. e.encode(v[int(k2)])
  10384. }
  10385. }
  10386. } else {
  10387. if esep {
  10388. for k2, v2 := range v {
  10389. ee.WriteMapElemKey()
  10390. ee.EncodeInt(int64(k2))
  10391. ee.WriteMapElemValue()
  10392. e.encode(v2)
  10393. }
  10394. } else {
  10395. for k2, v2 := range v {
  10396. ee.EncodeInt(int64(k2))
  10397. e.encode(v2)
  10398. }
  10399. }
  10400. }
  10401. ee.WriteMapEnd()
  10402. }
  10403. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  10404. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  10405. }
  10406. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  10407. if v == nil {
  10408. e.e.EncodeNil()
  10409. return
  10410. }
  10411. ee, esep := e.e, e.hh.hasElemSeparators()
  10412. ee.WriteMapStart(len(v))
  10413. if e.h.Canonical {
  10414. v2 := make([]int64, len(v))
  10415. var i int
  10416. for k, _ := range v {
  10417. v2[i] = int64(k)
  10418. i++
  10419. }
  10420. sort.Sort(intSlice(v2))
  10421. if esep {
  10422. for _, k2 := range v2 {
  10423. ee.WriteMapElemKey()
  10424. ee.EncodeInt(int64(int(k2)))
  10425. ee.WriteMapElemValue()
  10426. ee.EncodeInt(int64(v[int(k2)]))
  10427. }
  10428. } else {
  10429. for _, k2 := range v2 {
  10430. ee.EncodeInt(int64(int(k2)))
  10431. ee.EncodeInt(int64(v[int(k2)]))
  10432. }
  10433. }
  10434. } else {
  10435. if esep {
  10436. for k2, v2 := range v {
  10437. ee.WriteMapElemKey()
  10438. ee.EncodeInt(int64(k2))
  10439. ee.WriteMapElemValue()
  10440. ee.EncodeInt(int64(v2))
  10441. }
  10442. } else {
  10443. for k2, v2 := range v {
  10444. ee.EncodeInt(int64(k2))
  10445. ee.EncodeInt(int64(v2))
  10446. }
  10447. }
  10448. }
  10449. ee.WriteMapEnd()
  10450. }
  10451. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  10452. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  10453. }
  10454. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  10455. if v == nil {
  10456. e.e.EncodeNil()
  10457. return
  10458. }
  10459. ee, esep := e.e, e.hh.hasElemSeparators()
  10460. ee.WriteMapStart(len(v))
  10461. if e.h.Canonical {
  10462. v2 := make([]int64, len(v))
  10463. var i int
  10464. for k, _ := range v {
  10465. v2[i] = int64(k)
  10466. i++
  10467. }
  10468. sort.Sort(intSlice(v2))
  10469. if esep {
  10470. for _, k2 := range v2 {
  10471. ee.WriteMapElemKey()
  10472. ee.EncodeInt(int64(int(k2)))
  10473. ee.WriteMapElemValue()
  10474. ee.EncodeInt(int64(v[int(k2)]))
  10475. }
  10476. } else {
  10477. for _, k2 := range v2 {
  10478. ee.EncodeInt(int64(int(k2)))
  10479. ee.EncodeInt(int64(v[int(k2)]))
  10480. }
  10481. }
  10482. } else {
  10483. if esep {
  10484. for k2, v2 := range v {
  10485. ee.WriteMapElemKey()
  10486. ee.EncodeInt(int64(k2))
  10487. ee.WriteMapElemValue()
  10488. ee.EncodeInt(int64(v2))
  10489. }
  10490. } else {
  10491. for k2, v2 := range v {
  10492. ee.EncodeInt(int64(k2))
  10493. ee.EncodeInt(int64(v2))
  10494. }
  10495. }
  10496. }
  10497. ee.WriteMapEnd()
  10498. }
  10499. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  10500. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  10501. }
  10502. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  10503. if v == nil {
  10504. e.e.EncodeNil()
  10505. return
  10506. }
  10507. ee, esep := e.e, e.hh.hasElemSeparators()
  10508. ee.WriteMapStart(len(v))
  10509. if e.h.Canonical {
  10510. v2 := make([]int64, len(v))
  10511. var i int
  10512. for k, _ := range v {
  10513. v2[i] = int64(k)
  10514. i++
  10515. }
  10516. sort.Sort(intSlice(v2))
  10517. if esep {
  10518. for _, k2 := range v2 {
  10519. ee.WriteMapElemKey()
  10520. ee.EncodeInt(int64(int(k2)))
  10521. ee.WriteMapElemValue()
  10522. ee.EncodeInt(int64(v[int(k2)]))
  10523. }
  10524. } else {
  10525. for _, k2 := range v2 {
  10526. ee.EncodeInt(int64(int(k2)))
  10527. ee.EncodeInt(int64(v[int(k2)]))
  10528. }
  10529. }
  10530. } else {
  10531. if esep {
  10532. for k2, v2 := range v {
  10533. ee.WriteMapElemKey()
  10534. ee.EncodeInt(int64(k2))
  10535. ee.WriteMapElemValue()
  10536. ee.EncodeInt(int64(v2))
  10537. }
  10538. } else {
  10539. for k2, v2 := range v {
  10540. ee.EncodeInt(int64(k2))
  10541. ee.EncodeInt(int64(v2))
  10542. }
  10543. }
  10544. }
  10545. ee.WriteMapEnd()
  10546. }
  10547. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  10548. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  10549. }
  10550. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  10551. if v == nil {
  10552. e.e.EncodeNil()
  10553. return
  10554. }
  10555. ee, esep := e.e, e.hh.hasElemSeparators()
  10556. ee.WriteMapStart(len(v))
  10557. if e.h.Canonical {
  10558. v2 := make([]int64, len(v))
  10559. var i int
  10560. for k, _ := range v {
  10561. v2[i] = int64(k)
  10562. i++
  10563. }
  10564. sort.Sort(intSlice(v2))
  10565. if esep {
  10566. for _, k2 := range v2 {
  10567. ee.WriteMapElemKey()
  10568. ee.EncodeInt(int64(int(k2)))
  10569. ee.WriteMapElemValue()
  10570. ee.EncodeInt(int64(v[int(k2)]))
  10571. }
  10572. } else {
  10573. for _, k2 := range v2 {
  10574. ee.EncodeInt(int64(int(k2)))
  10575. ee.EncodeInt(int64(v[int(k2)]))
  10576. }
  10577. }
  10578. } else {
  10579. if esep {
  10580. for k2, v2 := range v {
  10581. ee.WriteMapElemKey()
  10582. ee.EncodeInt(int64(k2))
  10583. ee.WriteMapElemValue()
  10584. ee.EncodeInt(int64(v2))
  10585. }
  10586. } else {
  10587. for k2, v2 := range v {
  10588. ee.EncodeInt(int64(k2))
  10589. ee.EncodeInt(int64(v2))
  10590. }
  10591. }
  10592. }
  10593. ee.WriteMapEnd()
  10594. }
  10595. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  10596. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  10597. }
  10598. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  10599. if v == nil {
  10600. e.e.EncodeNil()
  10601. return
  10602. }
  10603. ee, esep := e.e, e.hh.hasElemSeparators()
  10604. ee.WriteMapStart(len(v))
  10605. if e.h.Canonical {
  10606. v2 := make([]int64, len(v))
  10607. var i int
  10608. for k, _ := range v {
  10609. v2[i] = int64(k)
  10610. i++
  10611. }
  10612. sort.Sort(intSlice(v2))
  10613. if esep {
  10614. for _, k2 := range v2 {
  10615. ee.WriteMapElemKey()
  10616. ee.EncodeInt(int64(int(k2)))
  10617. ee.WriteMapElemValue()
  10618. ee.EncodeInt(int64(v[int(k2)]))
  10619. }
  10620. } else {
  10621. for _, k2 := range v2 {
  10622. ee.EncodeInt(int64(int(k2)))
  10623. ee.EncodeInt(int64(v[int(k2)]))
  10624. }
  10625. }
  10626. } else {
  10627. if esep {
  10628. for k2, v2 := range v {
  10629. ee.WriteMapElemKey()
  10630. ee.EncodeInt(int64(k2))
  10631. ee.WriteMapElemValue()
  10632. ee.EncodeInt(int64(v2))
  10633. }
  10634. } else {
  10635. for k2, v2 := range v {
  10636. ee.EncodeInt(int64(k2))
  10637. ee.EncodeInt(int64(v2))
  10638. }
  10639. }
  10640. }
  10641. ee.WriteMapEnd()
  10642. }
  10643. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  10644. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  10645. }
  10646. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  10647. if v == nil {
  10648. e.e.EncodeNil()
  10649. return
  10650. }
  10651. ee, esep := e.e, e.hh.hasElemSeparators()
  10652. ee.WriteMapStart(len(v))
  10653. if e.h.Canonical {
  10654. v2 := make([]int64, len(v))
  10655. var i int
  10656. for k, _ := range v {
  10657. v2[i] = int64(k)
  10658. i++
  10659. }
  10660. sort.Sort(intSlice(v2))
  10661. if esep {
  10662. for _, k2 := range v2 {
  10663. ee.WriteMapElemKey()
  10664. ee.EncodeInt(int64(int(k2)))
  10665. ee.WriteMapElemValue()
  10666. ee.EncodeFloat32(v[int(k2)])
  10667. }
  10668. } else {
  10669. for _, k2 := range v2 {
  10670. ee.EncodeInt(int64(int(k2)))
  10671. ee.EncodeFloat32(v[int(k2)])
  10672. }
  10673. }
  10674. } else {
  10675. if esep {
  10676. for k2, v2 := range v {
  10677. ee.WriteMapElemKey()
  10678. ee.EncodeInt(int64(k2))
  10679. ee.WriteMapElemValue()
  10680. ee.EncodeFloat32(v2)
  10681. }
  10682. } else {
  10683. for k2, v2 := range v {
  10684. ee.EncodeInt(int64(k2))
  10685. ee.EncodeFloat32(v2)
  10686. }
  10687. }
  10688. }
  10689. ee.WriteMapEnd()
  10690. }
  10691. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  10692. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  10693. }
  10694. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  10695. if v == nil {
  10696. e.e.EncodeNil()
  10697. return
  10698. }
  10699. ee, esep := e.e, e.hh.hasElemSeparators()
  10700. ee.WriteMapStart(len(v))
  10701. if e.h.Canonical {
  10702. v2 := make([]int64, len(v))
  10703. var i int
  10704. for k, _ := range v {
  10705. v2[i] = int64(k)
  10706. i++
  10707. }
  10708. sort.Sort(intSlice(v2))
  10709. if esep {
  10710. for _, k2 := range v2 {
  10711. ee.WriteMapElemKey()
  10712. ee.EncodeInt(int64(int(k2)))
  10713. ee.WriteMapElemValue()
  10714. ee.EncodeFloat64(v[int(k2)])
  10715. }
  10716. } else {
  10717. for _, k2 := range v2 {
  10718. ee.EncodeInt(int64(int(k2)))
  10719. ee.EncodeFloat64(v[int(k2)])
  10720. }
  10721. }
  10722. } else {
  10723. if esep {
  10724. for k2, v2 := range v {
  10725. ee.WriteMapElemKey()
  10726. ee.EncodeInt(int64(k2))
  10727. ee.WriteMapElemValue()
  10728. ee.EncodeFloat64(v2)
  10729. }
  10730. } else {
  10731. for k2, v2 := range v {
  10732. ee.EncodeInt(int64(k2))
  10733. ee.EncodeFloat64(v2)
  10734. }
  10735. }
  10736. }
  10737. ee.WriteMapEnd()
  10738. }
  10739. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  10740. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  10741. }
  10742. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  10743. if v == nil {
  10744. e.e.EncodeNil()
  10745. return
  10746. }
  10747. ee, esep := e.e, e.hh.hasElemSeparators()
  10748. ee.WriteMapStart(len(v))
  10749. if e.h.Canonical {
  10750. v2 := make([]int64, len(v))
  10751. var i int
  10752. for k, _ := range v {
  10753. v2[i] = int64(k)
  10754. i++
  10755. }
  10756. sort.Sort(intSlice(v2))
  10757. if esep {
  10758. for _, k2 := range v2 {
  10759. ee.WriteMapElemKey()
  10760. ee.EncodeInt(int64(int(k2)))
  10761. ee.WriteMapElemValue()
  10762. ee.EncodeBool(v[int(k2)])
  10763. }
  10764. } else {
  10765. for _, k2 := range v2 {
  10766. ee.EncodeInt(int64(int(k2)))
  10767. ee.EncodeBool(v[int(k2)])
  10768. }
  10769. }
  10770. } else {
  10771. if esep {
  10772. for k2, v2 := range v {
  10773. ee.WriteMapElemKey()
  10774. ee.EncodeInt(int64(k2))
  10775. ee.WriteMapElemValue()
  10776. ee.EncodeBool(v2)
  10777. }
  10778. } else {
  10779. for k2, v2 := range v {
  10780. ee.EncodeInt(int64(k2))
  10781. ee.EncodeBool(v2)
  10782. }
  10783. }
  10784. }
  10785. ee.WriteMapEnd()
  10786. }
  10787. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  10788. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  10789. }
  10790. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  10791. if v == nil {
  10792. e.e.EncodeNil()
  10793. return
  10794. }
  10795. ee, esep := e.e, e.hh.hasElemSeparators()
  10796. ee.WriteMapStart(len(v))
  10797. if e.h.Canonical {
  10798. v2 := make([]int64, len(v))
  10799. var i int
  10800. for k, _ := range v {
  10801. v2[i] = int64(k)
  10802. i++
  10803. }
  10804. sort.Sort(intSlice(v2))
  10805. if esep {
  10806. for _, k2 := range v2 {
  10807. ee.WriteMapElemKey()
  10808. ee.EncodeInt(int64(int8(k2)))
  10809. ee.WriteMapElemValue()
  10810. e.encode(v[int8(k2)])
  10811. }
  10812. } else {
  10813. for _, k2 := range v2 {
  10814. ee.EncodeInt(int64(int8(k2)))
  10815. e.encode(v[int8(k2)])
  10816. }
  10817. }
  10818. } else {
  10819. if esep {
  10820. for k2, v2 := range v {
  10821. ee.WriteMapElemKey()
  10822. ee.EncodeInt(int64(k2))
  10823. ee.WriteMapElemValue()
  10824. e.encode(v2)
  10825. }
  10826. } else {
  10827. for k2, v2 := range v {
  10828. ee.EncodeInt(int64(k2))
  10829. e.encode(v2)
  10830. }
  10831. }
  10832. }
  10833. ee.WriteMapEnd()
  10834. }
  10835. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  10836. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  10837. }
  10838. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  10839. if v == nil {
  10840. e.e.EncodeNil()
  10841. return
  10842. }
  10843. ee, esep := e.e, e.hh.hasElemSeparators()
  10844. ee.WriteMapStart(len(v))
  10845. if e.h.Canonical {
  10846. v2 := make([]int64, len(v))
  10847. var i int
  10848. for k, _ := range v {
  10849. v2[i] = int64(k)
  10850. i++
  10851. }
  10852. sort.Sort(intSlice(v2))
  10853. if esep {
  10854. for _, k2 := range v2 {
  10855. ee.WriteMapElemKey()
  10856. ee.EncodeInt(int64(int8(k2)))
  10857. ee.WriteMapElemValue()
  10858. ee.EncodeString(cUTF8, v[int8(k2)])
  10859. }
  10860. } else {
  10861. for _, k2 := range v2 {
  10862. ee.EncodeInt(int64(int8(k2)))
  10863. ee.EncodeString(cUTF8, v[int8(k2)])
  10864. }
  10865. }
  10866. } else {
  10867. if esep {
  10868. for k2, v2 := range v {
  10869. ee.WriteMapElemKey()
  10870. ee.EncodeInt(int64(k2))
  10871. ee.WriteMapElemValue()
  10872. ee.EncodeString(cUTF8, v2)
  10873. }
  10874. } else {
  10875. for k2, v2 := range v {
  10876. ee.EncodeInt(int64(k2))
  10877. ee.EncodeString(cUTF8, v2)
  10878. }
  10879. }
  10880. }
  10881. ee.WriteMapEnd()
  10882. }
  10883. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  10884. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  10885. }
  10886. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  10887. if v == nil {
  10888. e.e.EncodeNil()
  10889. return
  10890. }
  10891. ee, esep := e.e, e.hh.hasElemSeparators()
  10892. ee.WriteMapStart(len(v))
  10893. if e.h.Canonical {
  10894. v2 := make([]int64, len(v))
  10895. var i int
  10896. for k, _ := range v {
  10897. v2[i] = int64(k)
  10898. i++
  10899. }
  10900. sort.Sort(intSlice(v2))
  10901. if esep {
  10902. for _, k2 := range v2 {
  10903. ee.WriteMapElemKey()
  10904. ee.EncodeInt(int64(int8(k2)))
  10905. ee.WriteMapElemValue()
  10906. ee.EncodeUint(uint64(v[int8(k2)]))
  10907. }
  10908. } else {
  10909. for _, k2 := range v2 {
  10910. ee.EncodeInt(int64(int8(k2)))
  10911. ee.EncodeUint(uint64(v[int8(k2)]))
  10912. }
  10913. }
  10914. } else {
  10915. if esep {
  10916. for k2, v2 := range v {
  10917. ee.WriteMapElemKey()
  10918. ee.EncodeInt(int64(k2))
  10919. ee.WriteMapElemValue()
  10920. ee.EncodeUint(uint64(v2))
  10921. }
  10922. } else {
  10923. for k2, v2 := range v {
  10924. ee.EncodeInt(int64(k2))
  10925. ee.EncodeUint(uint64(v2))
  10926. }
  10927. }
  10928. }
  10929. ee.WriteMapEnd()
  10930. }
  10931. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  10932. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  10933. }
  10934. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  10935. if v == nil {
  10936. e.e.EncodeNil()
  10937. return
  10938. }
  10939. ee, esep := e.e, e.hh.hasElemSeparators()
  10940. ee.WriteMapStart(len(v))
  10941. if e.h.Canonical {
  10942. v2 := make([]int64, len(v))
  10943. var i int
  10944. for k, _ := range v {
  10945. v2[i] = int64(k)
  10946. i++
  10947. }
  10948. sort.Sort(intSlice(v2))
  10949. if esep {
  10950. for _, k2 := range v2 {
  10951. ee.WriteMapElemKey()
  10952. ee.EncodeInt(int64(int8(k2)))
  10953. ee.WriteMapElemValue()
  10954. ee.EncodeUint(uint64(v[int8(k2)]))
  10955. }
  10956. } else {
  10957. for _, k2 := range v2 {
  10958. ee.EncodeInt(int64(int8(k2)))
  10959. ee.EncodeUint(uint64(v[int8(k2)]))
  10960. }
  10961. }
  10962. } else {
  10963. if esep {
  10964. for k2, v2 := range v {
  10965. ee.WriteMapElemKey()
  10966. ee.EncodeInt(int64(k2))
  10967. ee.WriteMapElemValue()
  10968. ee.EncodeUint(uint64(v2))
  10969. }
  10970. } else {
  10971. for k2, v2 := range v {
  10972. ee.EncodeInt(int64(k2))
  10973. ee.EncodeUint(uint64(v2))
  10974. }
  10975. }
  10976. }
  10977. ee.WriteMapEnd()
  10978. }
  10979. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  10980. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  10981. }
  10982. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  10983. if v == nil {
  10984. e.e.EncodeNil()
  10985. return
  10986. }
  10987. ee, esep := e.e, e.hh.hasElemSeparators()
  10988. ee.WriteMapStart(len(v))
  10989. if e.h.Canonical {
  10990. v2 := make([]int64, len(v))
  10991. var i int
  10992. for k, _ := range v {
  10993. v2[i] = int64(k)
  10994. i++
  10995. }
  10996. sort.Sort(intSlice(v2))
  10997. if esep {
  10998. for _, k2 := range v2 {
  10999. ee.WriteMapElemKey()
  11000. ee.EncodeInt(int64(int8(k2)))
  11001. ee.WriteMapElemValue()
  11002. ee.EncodeUint(uint64(v[int8(k2)]))
  11003. }
  11004. } else {
  11005. for _, k2 := range v2 {
  11006. ee.EncodeInt(int64(int8(k2)))
  11007. ee.EncodeUint(uint64(v[int8(k2)]))
  11008. }
  11009. }
  11010. } else {
  11011. if esep {
  11012. for k2, v2 := range v {
  11013. ee.WriteMapElemKey()
  11014. ee.EncodeInt(int64(k2))
  11015. ee.WriteMapElemValue()
  11016. ee.EncodeUint(uint64(v2))
  11017. }
  11018. } else {
  11019. for k2, v2 := range v {
  11020. ee.EncodeInt(int64(k2))
  11021. ee.EncodeUint(uint64(v2))
  11022. }
  11023. }
  11024. }
  11025. ee.WriteMapEnd()
  11026. }
  11027. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  11028. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  11029. }
  11030. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  11031. if v == nil {
  11032. e.e.EncodeNil()
  11033. return
  11034. }
  11035. ee, esep := e.e, e.hh.hasElemSeparators()
  11036. ee.WriteMapStart(len(v))
  11037. if e.h.Canonical {
  11038. v2 := make([]int64, len(v))
  11039. var i int
  11040. for k, _ := range v {
  11041. v2[i] = int64(k)
  11042. i++
  11043. }
  11044. sort.Sort(intSlice(v2))
  11045. if esep {
  11046. for _, k2 := range v2 {
  11047. ee.WriteMapElemKey()
  11048. ee.EncodeInt(int64(int8(k2)))
  11049. ee.WriteMapElemValue()
  11050. ee.EncodeUint(uint64(v[int8(k2)]))
  11051. }
  11052. } else {
  11053. for _, k2 := range v2 {
  11054. ee.EncodeInt(int64(int8(k2)))
  11055. ee.EncodeUint(uint64(v[int8(k2)]))
  11056. }
  11057. }
  11058. } else {
  11059. if esep {
  11060. for k2, v2 := range v {
  11061. ee.WriteMapElemKey()
  11062. ee.EncodeInt(int64(k2))
  11063. ee.WriteMapElemValue()
  11064. ee.EncodeUint(uint64(v2))
  11065. }
  11066. } else {
  11067. for k2, v2 := range v {
  11068. ee.EncodeInt(int64(k2))
  11069. ee.EncodeUint(uint64(v2))
  11070. }
  11071. }
  11072. }
  11073. ee.WriteMapEnd()
  11074. }
  11075. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  11076. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  11077. }
  11078. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  11079. if v == nil {
  11080. e.e.EncodeNil()
  11081. return
  11082. }
  11083. ee, esep := e.e, e.hh.hasElemSeparators()
  11084. ee.WriteMapStart(len(v))
  11085. if e.h.Canonical {
  11086. v2 := make([]int64, len(v))
  11087. var i int
  11088. for k, _ := range v {
  11089. v2[i] = int64(k)
  11090. i++
  11091. }
  11092. sort.Sort(intSlice(v2))
  11093. if esep {
  11094. for _, k2 := range v2 {
  11095. ee.WriteMapElemKey()
  11096. ee.EncodeInt(int64(int8(k2)))
  11097. ee.WriteMapElemValue()
  11098. ee.EncodeUint(uint64(v[int8(k2)]))
  11099. }
  11100. } else {
  11101. for _, k2 := range v2 {
  11102. ee.EncodeInt(int64(int8(k2)))
  11103. ee.EncodeUint(uint64(v[int8(k2)]))
  11104. }
  11105. }
  11106. } else {
  11107. if esep {
  11108. for k2, v2 := range v {
  11109. ee.WriteMapElemKey()
  11110. ee.EncodeInt(int64(k2))
  11111. ee.WriteMapElemValue()
  11112. ee.EncodeUint(uint64(v2))
  11113. }
  11114. } else {
  11115. for k2, v2 := range v {
  11116. ee.EncodeInt(int64(k2))
  11117. ee.EncodeUint(uint64(v2))
  11118. }
  11119. }
  11120. }
  11121. ee.WriteMapEnd()
  11122. }
  11123. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  11124. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  11125. }
  11126. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  11127. if v == nil {
  11128. e.e.EncodeNil()
  11129. return
  11130. }
  11131. ee, esep := e.e, e.hh.hasElemSeparators()
  11132. ee.WriteMapStart(len(v))
  11133. if e.h.Canonical {
  11134. v2 := make([]int64, len(v))
  11135. var i int
  11136. for k, _ := range v {
  11137. v2[i] = int64(k)
  11138. i++
  11139. }
  11140. sort.Sort(intSlice(v2))
  11141. if esep {
  11142. for _, k2 := range v2 {
  11143. ee.WriteMapElemKey()
  11144. ee.EncodeInt(int64(int8(k2)))
  11145. ee.WriteMapElemValue()
  11146. e.encode(v[int8(k2)])
  11147. }
  11148. } else {
  11149. for _, k2 := range v2 {
  11150. ee.EncodeInt(int64(int8(k2)))
  11151. e.encode(v[int8(k2)])
  11152. }
  11153. }
  11154. } else {
  11155. if esep {
  11156. for k2, v2 := range v {
  11157. ee.WriteMapElemKey()
  11158. ee.EncodeInt(int64(k2))
  11159. ee.WriteMapElemValue()
  11160. e.encode(v2)
  11161. }
  11162. } else {
  11163. for k2, v2 := range v {
  11164. ee.EncodeInt(int64(k2))
  11165. e.encode(v2)
  11166. }
  11167. }
  11168. }
  11169. ee.WriteMapEnd()
  11170. }
  11171. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  11172. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  11173. }
  11174. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  11175. if v == nil {
  11176. e.e.EncodeNil()
  11177. return
  11178. }
  11179. ee, esep := e.e, e.hh.hasElemSeparators()
  11180. ee.WriteMapStart(len(v))
  11181. if e.h.Canonical {
  11182. v2 := make([]int64, len(v))
  11183. var i int
  11184. for k, _ := range v {
  11185. v2[i] = int64(k)
  11186. i++
  11187. }
  11188. sort.Sort(intSlice(v2))
  11189. if esep {
  11190. for _, k2 := range v2 {
  11191. ee.WriteMapElemKey()
  11192. ee.EncodeInt(int64(int8(k2)))
  11193. ee.WriteMapElemValue()
  11194. ee.EncodeInt(int64(v[int8(k2)]))
  11195. }
  11196. } else {
  11197. for _, k2 := range v2 {
  11198. ee.EncodeInt(int64(int8(k2)))
  11199. ee.EncodeInt(int64(v[int8(k2)]))
  11200. }
  11201. }
  11202. } else {
  11203. if esep {
  11204. for k2, v2 := range v {
  11205. ee.WriteMapElemKey()
  11206. ee.EncodeInt(int64(k2))
  11207. ee.WriteMapElemValue()
  11208. ee.EncodeInt(int64(v2))
  11209. }
  11210. } else {
  11211. for k2, v2 := range v {
  11212. ee.EncodeInt(int64(k2))
  11213. ee.EncodeInt(int64(v2))
  11214. }
  11215. }
  11216. }
  11217. ee.WriteMapEnd()
  11218. }
  11219. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  11220. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  11221. }
  11222. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  11223. if v == nil {
  11224. e.e.EncodeNil()
  11225. return
  11226. }
  11227. ee, esep := e.e, e.hh.hasElemSeparators()
  11228. ee.WriteMapStart(len(v))
  11229. if e.h.Canonical {
  11230. v2 := make([]int64, len(v))
  11231. var i int
  11232. for k, _ := range v {
  11233. v2[i] = int64(k)
  11234. i++
  11235. }
  11236. sort.Sort(intSlice(v2))
  11237. if esep {
  11238. for _, k2 := range v2 {
  11239. ee.WriteMapElemKey()
  11240. ee.EncodeInt(int64(int8(k2)))
  11241. ee.WriteMapElemValue()
  11242. ee.EncodeInt(int64(v[int8(k2)]))
  11243. }
  11244. } else {
  11245. for _, k2 := range v2 {
  11246. ee.EncodeInt(int64(int8(k2)))
  11247. ee.EncodeInt(int64(v[int8(k2)]))
  11248. }
  11249. }
  11250. } else {
  11251. if esep {
  11252. for k2, v2 := range v {
  11253. ee.WriteMapElemKey()
  11254. ee.EncodeInt(int64(k2))
  11255. ee.WriteMapElemValue()
  11256. ee.EncodeInt(int64(v2))
  11257. }
  11258. } else {
  11259. for k2, v2 := range v {
  11260. ee.EncodeInt(int64(k2))
  11261. ee.EncodeInt(int64(v2))
  11262. }
  11263. }
  11264. }
  11265. ee.WriteMapEnd()
  11266. }
  11267. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  11268. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  11269. }
  11270. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  11271. if v == nil {
  11272. e.e.EncodeNil()
  11273. return
  11274. }
  11275. ee, esep := e.e, e.hh.hasElemSeparators()
  11276. ee.WriteMapStart(len(v))
  11277. if e.h.Canonical {
  11278. v2 := make([]int64, len(v))
  11279. var i int
  11280. for k, _ := range v {
  11281. v2[i] = int64(k)
  11282. i++
  11283. }
  11284. sort.Sort(intSlice(v2))
  11285. if esep {
  11286. for _, k2 := range v2 {
  11287. ee.WriteMapElemKey()
  11288. ee.EncodeInt(int64(int8(k2)))
  11289. ee.WriteMapElemValue()
  11290. ee.EncodeInt(int64(v[int8(k2)]))
  11291. }
  11292. } else {
  11293. for _, k2 := range v2 {
  11294. ee.EncodeInt(int64(int8(k2)))
  11295. ee.EncodeInt(int64(v[int8(k2)]))
  11296. }
  11297. }
  11298. } else {
  11299. if esep {
  11300. for k2, v2 := range v {
  11301. ee.WriteMapElemKey()
  11302. ee.EncodeInt(int64(k2))
  11303. ee.WriteMapElemValue()
  11304. ee.EncodeInt(int64(v2))
  11305. }
  11306. } else {
  11307. for k2, v2 := range v {
  11308. ee.EncodeInt(int64(k2))
  11309. ee.EncodeInt(int64(v2))
  11310. }
  11311. }
  11312. }
  11313. ee.WriteMapEnd()
  11314. }
  11315. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  11316. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  11317. }
  11318. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  11319. if v == nil {
  11320. e.e.EncodeNil()
  11321. return
  11322. }
  11323. ee, esep := e.e, e.hh.hasElemSeparators()
  11324. ee.WriteMapStart(len(v))
  11325. if e.h.Canonical {
  11326. v2 := make([]int64, len(v))
  11327. var i int
  11328. for k, _ := range v {
  11329. v2[i] = int64(k)
  11330. i++
  11331. }
  11332. sort.Sort(intSlice(v2))
  11333. if esep {
  11334. for _, k2 := range v2 {
  11335. ee.WriteMapElemKey()
  11336. ee.EncodeInt(int64(int8(k2)))
  11337. ee.WriteMapElemValue()
  11338. ee.EncodeInt(int64(v[int8(k2)]))
  11339. }
  11340. } else {
  11341. for _, k2 := range v2 {
  11342. ee.EncodeInt(int64(int8(k2)))
  11343. ee.EncodeInt(int64(v[int8(k2)]))
  11344. }
  11345. }
  11346. } else {
  11347. if esep {
  11348. for k2, v2 := range v {
  11349. ee.WriteMapElemKey()
  11350. ee.EncodeInt(int64(k2))
  11351. ee.WriteMapElemValue()
  11352. ee.EncodeInt(int64(v2))
  11353. }
  11354. } else {
  11355. for k2, v2 := range v {
  11356. ee.EncodeInt(int64(k2))
  11357. ee.EncodeInt(int64(v2))
  11358. }
  11359. }
  11360. }
  11361. ee.WriteMapEnd()
  11362. }
  11363. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  11364. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  11365. }
  11366. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  11367. if v == nil {
  11368. e.e.EncodeNil()
  11369. return
  11370. }
  11371. ee, esep := e.e, e.hh.hasElemSeparators()
  11372. ee.WriteMapStart(len(v))
  11373. if e.h.Canonical {
  11374. v2 := make([]int64, len(v))
  11375. var i int
  11376. for k, _ := range v {
  11377. v2[i] = int64(k)
  11378. i++
  11379. }
  11380. sort.Sort(intSlice(v2))
  11381. if esep {
  11382. for _, k2 := range v2 {
  11383. ee.WriteMapElemKey()
  11384. ee.EncodeInt(int64(int8(k2)))
  11385. ee.WriteMapElemValue()
  11386. ee.EncodeInt(int64(v[int8(k2)]))
  11387. }
  11388. } else {
  11389. for _, k2 := range v2 {
  11390. ee.EncodeInt(int64(int8(k2)))
  11391. ee.EncodeInt(int64(v[int8(k2)]))
  11392. }
  11393. }
  11394. } else {
  11395. if esep {
  11396. for k2, v2 := range v {
  11397. ee.WriteMapElemKey()
  11398. ee.EncodeInt(int64(k2))
  11399. ee.WriteMapElemValue()
  11400. ee.EncodeInt(int64(v2))
  11401. }
  11402. } else {
  11403. for k2, v2 := range v {
  11404. ee.EncodeInt(int64(k2))
  11405. ee.EncodeInt(int64(v2))
  11406. }
  11407. }
  11408. }
  11409. ee.WriteMapEnd()
  11410. }
  11411. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  11412. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  11413. }
  11414. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  11415. if v == nil {
  11416. e.e.EncodeNil()
  11417. return
  11418. }
  11419. ee, esep := e.e, e.hh.hasElemSeparators()
  11420. ee.WriteMapStart(len(v))
  11421. if e.h.Canonical {
  11422. v2 := make([]int64, len(v))
  11423. var i int
  11424. for k, _ := range v {
  11425. v2[i] = int64(k)
  11426. i++
  11427. }
  11428. sort.Sort(intSlice(v2))
  11429. if esep {
  11430. for _, k2 := range v2 {
  11431. ee.WriteMapElemKey()
  11432. ee.EncodeInt(int64(int8(k2)))
  11433. ee.WriteMapElemValue()
  11434. ee.EncodeFloat32(v[int8(k2)])
  11435. }
  11436. } else {
  11437. for _, k2 := range v2 {
  11438. ee.EncodeInt(int64(int8(k2)))
  11439. ee.EncodeFloat32(v[int8(k2)])
  11440. }
  11441. }
  11442. } else {
  11443. if esep {
  11444. for k2, v2 := range v {
  11445. ee.WriteMapElemKey()
  11446. ee.EncodeInt(int64(k2))
  11447. ee.WriteMapElemValue()
  11448. ee.EncodeFloat32(v2)
  11449. }
  11450. } else {
  11451. for k2, v2 := range v {
  11452. ee.EncodeInt(int64(k2))
  11453. ee.EncodeFloat32(v2)
  11454. }
  11455. }
  11456. }
  11457. ee.WriteMapEnd()
  11458. }
  11459. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  11460. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  11461. }
  11462. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  11463. if v == nil {
  11464. e.e.EncodeNil()
  11465. return
  11466. }
  11467. ee, esep := e.e, e.hh.hasElemSeparators()
  11468. ee.WriteMapStart(len(v))
  11469. if e.h.Canonical {
  11470. v2 := make([]int64, len(v))
  11471. var i int
  11472. for k, _ := range v {
  11473. v2[i] = int64(k)
  11474. i++
  11475. }
  11476. sort.Sort(intSlice(v2))
  11477. if esep {
  11478. for _, k2 := range v2 {
  11479. ee.WriteMapElemKey()
  11480. ee.EncodeInt(int64(int8(k2)))
  11481. ee.WriteMapElemValue()
  11482. ee.EncodeFloat64(v[int8(k2)])
  11483. }
  11484. } else {
  11485. for _, k2 := range v2 {
  11486. ee.EncodeInt(int64(int8(k2)))
  11487. ee.EncodeFloat64(v[int8(k2)])
  11488. }
  11489. }
  11490. } else {
  11491. if esep {
  11492. for k2, v2 := range v {
  11493. ee.WriteMapElemKey()
  11494. ee.EncodeInt(int64(k2))
  11495. ee.WriteMapElemValue()
  11496. ee.EncodeFloat64(v2)
  11497. }
  11498. } else {
  11499. for k2, v2 := range v {
  11500. ee.EncodeInt(int64(k2))
  11501. ee.EncodeFloat64(v2)
  11502. }
  11503. }
  11504. }
  11505. ee.WriteMapEnd()
  11506. }
  11507. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  11508. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  11509. }
  11510. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  11511. if v == nil {
  11512. e.e.EncodeNil()
  11513. return
  11514. }
  11515. ee, esep := e.e, e.hh.hasElemSeparators()
  11516. ee.WriteMapStart(len(v))
  11517. if e.h.Canonical {
  11518. v2 := make([]int64, len(v))
  11519. var i int
  11520. for k, _ := range v {
  11521. v2[i] = int64(k)
  11522. i++
  11523. }
  11524. sort.Sort(intSlice(v2))
  11525. if esep {
  11526. for _, k2 := range v2 {
  11527. ee.WriteMapElemKey()
  11528. ee.EncodeInt(int64(int8(k2)))
  11529. ee.WriteMapElemValue()
  11530. ee.EncodeBool(v[int8(k2)])
  11531. }
  11532. } else {
  11533. for _, k2 := range v2 {
  11534. ee.EncodeInt(int64(int8(k2)))
  11535. ee.EncodeBool(v[int8(k2)])
  11536. }
  11537. }
  11538. } else {
  11539. if esep {
  11540. for k2, v2 := range v {
  11541. ee.WriteMapElemKey()
  11542. ee.EncodeInt(int64(k2))
  11543. ee.WriteMapElemValue()
  11544. ee.EncodeBool(v2)
  11545. }
  11546. } else {
  11547. for k2, v2 := range v {
  11548. ee.EncodeInt(int64(k2))
  11549. ee.EncodeBool(v2)
  11550. }
  11551. }
  11552. }
  11553. ee.WriteMapEnd()
  11554. }
  11555. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  11556. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  11557. }
  11558. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  11559. if v == nil {
  11560. e.e.EncodeNil()
  11561. return
  11562. }
  11563. ee, esep := e.e, e.hh.hasElemSeparators()
  11564. ee.WriteMapStart(len(v))
  11565. if e.h.Canonical {
  11566. v2 := make([]int64, len(v))
  11567. var i int
  11568. for k, _ := range v {
  11569. v2[i] = int64(k)
  11570. i++
  11571. }
  11572. sort.Sort(intSlice(v2))
  11573. if esep {
  11574. for _, k2 := range v2 {
  11575. ee.WriteMapElemKey()
  11576. ee.EncodeInt(int64(int16(k2)))
  11577. ee.WriteMapElemValue()
  11578. e.encode(v[int16(k2)])
  11579. }
  11580. } else {
  11581. for _, k2 := range v2 {
  11582. ee.EncodeInt(int64(int16(k2)))
  11583. e.encode(v[int16(k2)])
  11584. }
  11585. }
  11586. } else {
  11587. if esep {
  11588. for k2, v2 := range v {
  11589. ee.WriteMapElemKey()
  11590. ee.EncodeInt(int64(k2))
  11591. ee.WriteMapElemValue()
  11592. e.encode(v2)
  11593. }
  11594. } else {
  11595. for k2, v2 := range v {
  11596. ee.EncodeInt(int64(k2))
  11597. e.encode(v2)
  11598. }
  11599. }
  11600. }
  11601. ee.WriteMapEnd()
  11602. }
  11603. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  11604. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  11605. }
  11606. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  11607. if v == nil {
  11608. e.e.EncodeNil()
  11609. return
  11610. }
  11611. ee, esep := e.e, e.hh.hasElemSeparators()
  11612. ee.WriteMapStart(len(v))
  11613. if e.h.Canonical {
  11614. v2 := make([]int64, len(v))
  11615. var i int
  11616. for k, _ := range v {
  11617. v2[i] = int64(k)
  11618. i++
  11619. }
  11620. sort.Sort(intSlice(v2))
  11621. if esep {
  11622. for _, k2 := range v2 {
  11623. ee.WriteMapElemKey()
  11624. ee.EncodeInt(int64(int16(k2)))
  11625. ee.WriteMapElemValue()
  11626. ee.EncodeString(cUTF8, v[int16(k2)])
  11627. }
  11628. } else {
  11629. for _, k2 := range v2 {
  11630. ee.EncodeInt(int64(int16(k2)))
  11631. ee.EncodeString(cUTF8, v[int16(k2)])
  11632. }
  11633. }
  11634. } else {
  11635. if esep {
  11636. for k2, v2 := range v {
  11637. ee.WriteMapElemKey()
  11638. ee.EncodeInt(int64(k2))
  11639. ee.WriteMapElemValue()
  11640. ee.EncodeString(cUTF8, v2)
  11641. }
  11642. } else {
  11643. for k2, v2 := range v {
  11644. ee.EncodeInt(int64(k2))
  11645. ee.EncodeString(cUTF8, v2)
  11646. }
  11647. }
  11648. }
  11649. ee.WriteMapEnd()
  11650. }
  11651. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  11652. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  11653. }
  11654. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
  11655. if v == nil {
  11656. e.e.EncodeNil()
  11657. return
  11658. }
  11659. ee, esep := e.e, e.hh.hasElemSeparators()
  11660. ee.WriteMapStart(len(v))
  11661. if e.h.Canonical {
  11662. v2 := make([]int64, len(v))
  11663. var i int
  11664. for k, _ := range v {
  11665. v2[i] = int64(k)
  11666. i++
  11667. }
  11668. sort.Sort(intSlice(v2))
  11669. if esep {
  11670. for _, k2 := range v2 {
  11671. ee.WriteMapElemKey()
  11672. ee.EncodeInt(int64(int16(k2)))
  11673. ee.WriteMapElemValue()
  11674. ee.EncodeUint(uint64(v[int16(k2)]))
  11675. }
  11676. } else {
  11677. for _, k2 := range v2 {
  11678. ee.EncodeInt(int64(int16(k2)))
  11679. ee.EncodeUint(uint64(v[int16(k2)]))
  11680. }
  11681. }
  11682. } else {
  11683. if esep {
  11684. for k2, v2 := range v {
  11685. ee.WriteMapElemKey()
  11686. ee.EncodeInt(int64(k2))
  11687. ee.WriteMapElemValue()
  11688. ee.EncodeUint(uint64(v2))
  11689. }
  11690. } else {
  11691. for k2, v2 := range v {
  11692. ee.EncodeInt(int64(k2))
  11693. ee.EncodeUint(uint64(v2))
  11694. }
  11695. }
  11696. }
  11697. ee.WriteMapEnd()
  11698. }
  11699. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  11700. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  11701. }
  11702. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  11703. if v == nil {
  11704. e.e.EncodeNil()
  11705. return
  11706. }
  11707. ee, esep := e.e, e.hh.hasElemSeparators()
  11708. ee.WriteMapStart(len(v))
  11709. if e.h.Canonical {
  11710. v2 := make([]int64, len(v))
  11711. var i int
  11712. for k, _ := range v {
  11713. v2[i] = int64(k)
  11714. i++
  11715. }
  11716. sort.Sort(intSlice(v2))
  11717. if esep {
  11718. for _, k2 := range v2 {
  11719. ee.WriteMapElemKey()
  11720. ee.EncodeInt(int64(int16(k2)))
  11721. ee.WriteMapElemValue()
  11722. ee.EncodeUint(uint64(v[int16(k2)]))
  11723. }
  11724. } else {
  11725. for _, k2 := range v2 {
  11726. ee.EncodeInt(int64(int16(k2)))
  11727. ee.EncodeUint(uint64(v[int16(k2)]))
  11728. }
  11729. }
  11730. } else {
  11731. if esep {
  11732. for k2, v2 := range v {
  11733. ee.WriteMapElemKey()
  11734. ee.EncodeInt(int64(k2))
  11735. ee.WriteMapElemValue()
  11736. ee.EncodeUint(uint64(v2))
  11737. }
  11738. } else {
  11739. for k2, v2 := range v {
  11740. ee.EncodeInt(int64(k2))
  11741. ee.EncodeUint(uint64(v2))
  11742. }
  11743. }
  11744. }
  11745. ee.WriteMapEnd()
  11746. }
  11747. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  11748. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  11749. }
  11750. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  11751. if v == nil {
  11752. e.e.EncodeNil()
  11753. return
  11754. }
  11755. ee, esep := e.e, e.hh.hasElemSeparators()
  11756. ee.WriteMapStart(len(v))
  11757. if e.h.Canonical {
  11758. v2 := make([]int64, len(v))
  11759. var i int
  11760. for k, _ := range v {
  11761. v2[i] = int64(k)
  11762. i++
  11763. }
  11764. sort.Sort(intSlice(v2))
  11765. if esep {
  11766. for _, k2 := range v2 {
  11767. ee.WriteMapElemKey()
  11768. ee.EncodeInt(int64(int16(k2)))
  11769. ee.WriteMapElemValue()
  11770. ee.EncodeUint(uint64(v[int16(k2)]))
  11771. }
  11772. } else {
  11773. for _, k2 := range v2 {
  11774. ee.EncodeInt(int64(int16(k2)))
  11775. ee.EncodeUint(uint64(v[int16(k2)]))
  11776. }
  11777. }
  11778. } else {
  11779. if esep {
  11780. for k2, v2 := range v {
  11781. ee.WriteMapElemKey()
  11782. ee.EncodeInt(int64(k2))
  11783. ee.WriteMapElemValue()
  11784. ee.EncodeUint(uint64(v2))
  11785. }
  11786. } else {
  11787. for k2, v2 := range v {
  11788. ee.EncodeInt(int64(k2))
  11789. ee.EncodeUint(uint64(v2))
  11790. }
  11791. }
  11792. }
  11793. ee.WriteMapEnd()
  11794. }
  11795. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  11796. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  11797. }
  11798. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  11799. if v == nil {
  11800. e.e.EncodeNil()
  11801. return
  11802. }
  11803. ee, esep := e.e, e.hh.hasElemSeparators()
  11804. ee.WriteMapStart(len(v))
  11805. if e.h.Canonical {
  11806. v2 := make([]int64, len(v))
  11807. var i int
  11808. for k, _ := range v {
  11809. v2[i] = int64(k)
  11810. i++
  11811. }
  11812. sort.Sort(intSlice(v2))
  11813. if esep {
  11814. for _, k2 := range v2 {
  11815. ee.WriteMapElemKey()
  11816. ee.EncodeInt(int64(int16(k2)))
  11817. ee.WriteMapElemValue()
  11818. ee.EncodeUint(uint64(v[int16(k2)]))
  11819. }
  11820. } else {
  11821. for _, k2 := range v2 {
  11822. ee.EncodeInt(int64(int16(k2)))
  11823. ee.EncodeUint(uint64(v[int16(k2)]))
  11824. }
  11825. }
  11826. } else {
  11827. if esep {
  11828. for k2, v2 := range v {
  11829. ee.WriteMapElemKey()
  11830. ee.EncodeInt(int64(k2))
  11831. ee.WriteMapElemValue()
  11832. ee.EncodeUint(uint64(v2))
  11833. }
  11834. } else {
  11835. for k2, v2 := range v {
  11836. ee.EncodeInt(int64(k2))
  11837. ee.EncodeUint(uint64(v2))
  11838. }
  11839. }
  11840. }
  11841. ee.WriteMapEnd()
  11842. }
  11843. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  11844. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  11845. }
  11846. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  11847. if v == nil {
  11848. e.e.EncodeNil()
  11849. return
  11850. }
  11851. ee, esep := e.e, e.hh.hasElemSeparators()
  11852. ee.WriteMapStart(len(v))
  11853. if e.h.Canonical {
  11854. v2 := make([]int64, len(v))
  11855. var i int
  11856. for k, _ := range v {
  11857. v2[i] = int64(k)
  11858. i++
  11859. }
  11860. sort.Sort(intSlice(v2))
  11861. if esep {
  11862. for _, k2 := range v2 {
  11863. ee.WriteMapElemKey()
  11864. ee.EncodeInt(int64(int16(k2)))
  11865. ee.WriteMapElemValue()
  11866. ee.EncodeUint(uint64(v[int16(k2)]))
  11867. }
  11868. } else {
  11869. for _, k2 := range v2 {
  11870. ee.EncodeInt(int64(int16(k2)))
  11871. ee.EncodeUint(uint64(v[int16(k2)]))
  11872. }
  11873. }
  11874. } else {
  11875. if esep {
  11876. for k2, v2 := range v {
  11877. ee.WriteMapElemKey()
  11878. ee.EncodeInt(int64(k2))
  11879. ee.WriteMapElemValue()
  11880. ee.EncodeUint(uint64(v2))
  11881. }
  11882. } else {
  11883. for k2, v2 := range v {
  11884. ee.EncodeInt(int64(k2))
  11885. ee.EncodeUint(uint64(v2))
  11886. }
  11887. }
  11888. }
  11889. ee.WriteMapEnd()
  11890. }
  11891. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  11892. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  11893. }
  11894. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  11895. if v == nil {
  11896. e.e.EncodeNil()
  11897. return
  11898. }
  11899. ee, esep := e.e, e.hh.hasElemSeparators()
  11900. ee.WriteMapStart(len(v))
  11901. if e.h.Canonical {
  11902. v2 := make([]int64, len(v))
  11903. var i int
  11904. for k, _ := range v {
  11905. v2[i] = int64(k)
  11906. i++
  11907. }
  11908. sort.Sort(intSlice(v2))
  11909. if esep {
  11910. for _, k2 := range v2 {
  11911. ee.WriteMapElemKey()
  11912. ee.EncodeInt(int64(int16(k2)))
  11913. ee.WriteMapElemValue()
  11914. e.encode(v[int16(k2)])
  11915. }
  11916. } else {
  11917. for _, k2 := range v2 {
  11918. ee.EncodeInt(int64(int16(k2)))
  11919. e.encode(v[int16(k2)])
  11920. }
  11921. }
  11922. } else {
  11923. if esep {
  11924. for k2, v2 := range v {
  11925. ee.WriteMapElemKey()
  11926. ee.EncodeInt(int64(k2))
  11927. ee.WriteMapElemValue()
  11928. e.encode(v2)
  11929. }
  11930. } else {
  11931. for k2, v2 := range v {
  11932. ee.EncodeInt(int64(k2))
  11933. e.encode(v2)
  11934. }
  11935. }
  11936. }
  11937. ee.WriteMapEnd()
  11938. }
  11939. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  11940. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  11941. }
  11942. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  11943. if v == nil {
  11944. e.e.EncodeNil()
  11945. return
  11946. }
  11947. ee, esep := e.e, e.hh.hasElemSeparators()
  11948. ee.WriteMapStart(len(v))
  11949. if e.h.Canonical {
  11950. v2 := make([]int64, len(v))
  11951. var i int
  11952. for k, _ := range v {
  11953. v2[i] = int64(k)
  11954. i++
  11955. }
  11956. sort.Sort(intSlice(v2))
  11957. if esep {
  11958. for _, k2 := range v2 {
  11959. ee.WriteMapElemKey()
  11960. ee.EncodeInt(int64(int16(k2)))
  11961. ee.WriteMapElemValue()
  11962. ee.EncodeInt(int64(v[int16(k2)]))
  11963. }
  11964. } else {
  11965. for _, k2 := range v2 {
  11966. ee.EncodeInt(int64(int16(k2)))
  11967. ee.EncodeInt(int64(v[int16(k2)]))
  11968. }
  11969. }
  11970. } else {
  11971. if esep {
  11972. for k2, v2 := range v {
  11973. ee.WriteMapElemKey()
  11974. ee.EncodeInt(int64(k2))
  11975. ee.WriteMapElemValue()
  11976. ee.EncodeInt(int64(v2))
  11977. }
  11978. } else {
  11979. for k2, v2 := range v {
  11980. ee.EncodeInt(int64(k2))
  11981. ee.EncodeInt(int64(v2))
  11982. }
  11983. }
  11984. }
  11985. ee.WriteMapEnd()
  11986. }
  11987. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  11988. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  11989. }
  11990. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  11991. if v == nil {
  11992. e.e.EncodeNil()
  11993. return
  11994. }
  11995. ee, esep := e.e, e.hh.hasElemSeparators()
  11996. ee.WriteMapStart(len(v))
  11997. if e.h.Canonical {
  11998. v2 := make([]int64, len(v))
  11999. var i int
  12000. for k, _ := range v {
  12001. v2[i] = int64(k)
  12002. i++
  12003. }
  12004. sort.Sort(intSlice(v2))
  12005. if esep {
  12006. for _, k2 := range v2 {
  12007. ee.WriteMapElemKey()
  12008. ee.EncodeInt(int64(int16(k2)))
  12009. ee.WriteMapElemValue()
  12010. ee.EncodeInt(int64(v[int16(k2)]))
  12011. }
  12012. } else {
  12013. for _, k2 := range v2 {
  12014. ee.EncodeInt(int64(int16(k2)))
  12015. ee.EncodeInt(int64(v[int16(k2)]))
  12016. }
  12017. }
  12018. } else {
  12019. if esep {
  12020. for k2, v2 := range v {
  12021. ee.WriteMapElemKey()
  12022. ee.EncodeInt(int64(k2))
  12023. ee.WriteMapElemValue()
  12024. ee.EncodeInt(int64(v2))
  12025. }
  12026. } else {
  12027. for k2, v2 := range v {
  12028. ee.EncodeInt(int64(k2))
  12029. ee.EncodeInt(int64(v2))
  12030. }
  12031. }
  12032. }
  12033. ee.WriteMapEnd()
  12034. }
  12035. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  12036. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  12037. }
  12038. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
  12039. if v == nil {
  12040. e.e.EncodeNil()
  12041. return
  12042. }
  12043. ee, esep := e.e, e.hh.hasElemSeparators()
  12044. ee.WriteMapStart(len(v))
  12045. if e.h.Canonical {
  12046. v2 := make([]int64, len(v))
  12047. var i int
  12048. for k, _ := range v {
  12049. v2[i] = int64(k)
  12050. i++
  12051. }
  12052. sort.Sort(intSlice(v2))
  12053. if esep {
  12054. for _, k2 := range v2 {
  12055. ee.WriteMapElemKey()
  12056. ee.EncodeInt(int64(int16(k2)))
  12057. ee.WriteMapElemValue()
  12058. ee.EncodeInt(int64(v[int16(k2)]))
  12059. }
  12060. } else {
  12061. for _, k2 := range v2 {
  12062. ee.EncodeInt(int64(int16(k2)))
  12063. ee.EncodeInt(int64(v[int16(k2)]))
  12064. }
  12065. }
  12066. } else {
  12067. if esep {
  12068. for k2, v2 := range v {
  12069. ee.WriteMapElemKey()
  12070. ee.EncodeInt(int64(k2))
  12071. ee.WriteMapElemValue()
  12072. ee.EncodeInt(int64(v2))
  12073. }
  12074. } else {
  12075. for k2, v2 := range v {
  12076. ee.EncodeInt(int64(k2))
  12077. ee.EncodeInt(int64(v2))
  12078. }
  12079. }
  12080. }
  12081. ee.WriteMapEnd()
  12082. }
  12083. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  12084. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  12085. }
  12086. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  12087. if v == nil {
  12088. e.e.EncodeNil()
  12089. return
  12090. }
  12091. ee, esep := e.e, e.hh.hasElemSeparators()
  12092. ee.WriteMapStart(len(v))
  12093. if e.h.Canonical {
  12094. v2 := make([]int64, len(v))
  12095. var i int
  12096. for k, _ := range v {
  12097. v2[i] = int64(k)
  12098. i++
  12099. }
  12100. sort.Sort(intSlice(v2))
  12101. if esep {
  12102. for _, k2 := range v2 {
  12103. ee.WriteMapElemKey()
  12104. ee.EncodeInt(int64(int16(k2)))
  12105. ee.WriteMapElemValue()
  12106. ee.EncodeInt(int64(v[int16(k2)]))
  12107. }
  12108. } else {
  12109. for _, k2 := range v2 {
  12110. ee.EncodeInt(int64(int16(k2)))
  12111. ee.EncodeInt(int64(v[int16(k2)]))
  12112. }
  12113. }
  12114. } else {
  12115. if esep {
  12116. for k2, v2 := range v {
  12117. ee.WriteMapElemKey()
  12118. ee.EncodeInt(int64(k2))
  12119. ee.WriteMapElemValue()
  12120. ee.EncodeInt(int64(v2))
  12121. }
  12122. } else {
  12123. for k2, v2 := range v {
  12124. ee.EncodeInt(int64(k2))
  12125. ee.EncodeInt(int64(v2))
  12126. }
  12127. }
  12128. }
  12129. ee.WriteMapEnd()
  12130. }
  12131. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  12132. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  12133. }
  12134. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  12135. if v == nil {
  12136. e.e.EncodeNil()
  12137. return
  12138. }
  12139. ee, esep := e.e, e.hh.hasElemSeparators()
  12140. ee.WriteMapStart(len(v))
  12141. if e.h.Canonical {
  12142. v2 := make([]int64, len(v))
  12143. var i int
  12144. for k, _ := range v {
  12145. v2[i] = int64(k)
  12146. i++
  12147. }
  12148. sort.Sort(intSlice(v2))
  12149. if esep {
  12150. for _, k2 := range v2 {
  12151. ee.WriteMapElemKey()
  12152. ee.EncodeInt(int64(int16(k2)))
  12153. ee.WriteMapElemValue()
  12154. ee.EncodeInt(int64(v[int16(k2)]))
  12155. }
  12156. } else {
  12157. for _, k2 := range v2 {
  12158. ee.EncodeInt(int64(int16(k2)))
  12159. ee.EncodeInt(int64(v[int16(k2)]))
  12160. }
  12161. }
  12162. } else {
  12163. if esep {
  12164. for k2, v2 := range v {
  12165. ee.WriteMapElemKey()
  12166. ee.EncodeInt(int64(k2))
  12167. ee.WriteMapElemValue()
  12168. ee.EncodeInt(int64(v2))
  12169. }
  12170. } else {
  12171. for k2, v2 := range v {
  12172. ee.EncodeInt(int64(k2))
  12173. ee.EncodeInt(int64(v2))
  12174. }
  12175. }
  12176. }
  12177. ee.WriteMapEnd()
  12178. }
  12179. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  12180. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  12181. }
  12182. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  12183. if v == nil {
  12184. e.e.EncodeNil()
  12185. return
  12186. }
  12187. ee, esep := e.e, e.hh.hasElemSeparators()
  12188. ee.WriteMapStart(len(v))
  12189. if e.h.Canonical {
  12190. v2 := make([]int64, len(v))
  12191. var i int
  12192. for k, _ := range v {
  12193. v2[i] = int64(k)
  12194. i++
  12195. }
  12196. sort.Sort(intSlice(v2))
  12197. if esep {
  12198. for _, k2 := range v2 {
  12199. ee.WriteMapElemKey()
  12200. ee.EncodeInt(int64(int16(k2)))
  12201. ee.WriteMapElemValue()
  12202. ee.EncodeFloat32(v[int16(k2)])
  12203. }
  12204. } else {
  12205. for _, k2 := range v2 {
  12206. ee.EncodeInt(int64(int16(k2)))
  12207. ee.EncodeFloat32(v[int16(k2)])
  12208. }
  12209. }
  12210. } else {
  12211. if esep {
  12212. for k2, v2 := range v {
  12213. ee.WriteMapElemKey()
  12214. ee.EncodeInt(int64(k2))
  12215. ee.WriteMapElemValue()
  12216. ee.EncodeFloat32(v2)
  12217. }
  12218. } else {
  12219. for k2, v2 := range v {
  12220. ee.EncodeInt(int64(k2))
  12221. ee.EncodeFloat32(v2)
  12222. }
  12223. }
  12224. }
  12225. ee.WriteMapEnd()
  12226. }
  12227. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  12228. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  12229. }
  12230. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  12231. if v == nil {
  12232. e.e.EncodeNil()
  12233. return
  12234. }
  12235. ee, esep := e.e, e.hh.hasElemSeparators()
  12236. ee.WriteMapStart(len(v))
  12237. if e.h.Canonical {
  12238. v2 := make([]int64, len(v))
  12239. var i int
  12240. for k, _ := range v {
  12241. v2[i] = int64(k)
  12242. i++
  12243. }
  12244. sort.Sort(intSlice(v2))
  12245. if esep {
  12246. for _, k2 := range v2 {
  12247. ee.WriteMapElemKey()
  12248. ee.EncodeInt(int64(int16(k2)))
  12249. ee.WriteMapElemValue()
  12250. ee.EncodeFloat64(v[int16(k2)])
  12251. }
  12252. } else {
  12253. for _, k2 := range v2 {
  12254. ee.EncodeInt(int64(int16(k2)))
  12255. ee.EncodeFloat64(v[int16(k2)])
  12256. }
  12257. }
  12258. } else {
  12259. if esep {
  12260. for k2, v2 := range v {
  12261. ee.WriteMapElemKey()
  12262. ee.EncodeInt(int64(k2))
  12263. ee.WriteMapElemValue()
  12264. ee.EncodeFloat64(v2)
  12265. }
  12266. } else {
  12267. for k2, v2 := range v {
  12268. ee.EncodeInt(int64(k2))
  12269. ee.EncodeFloat64(v2)
  12270. }
  12271. }
  12272. }
  12273. ee.WriteMapEnd()
  12274. }
  12275. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  12276. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  12277. }
  12278. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  12279. if v == nil {
  12280. e.e.EncodeNil()
  12281. return
  12282. }
  12283. ee, esep := e.e, e.hh.hasElemSeparators()
  12284. ee.WriteMapStart(len(v))
  12285. if e.h.Canonical {
  12286. v2 := make([]int64, len(v))
  12287. var i int
  12288. for k, _ := range v {
  12289. v2[i] = int64(k)
  12290. i++
  12291. }
  12292. sort.Sort(intSlice(v2))
  12293. if esep {
  12294. for _, k2 := range v2 {
  12295. ee.WriteMapElemKey()
  12296. ee.EncodeInt(int64(int16(k2)))
  12297. ee.WriteMapElemValue()
  12298. ee.EncodeBool(v[int16(k2)])
  12299. }
  12300. } else {
  12301. for _, k2 := range v2 {
  12302. ee.EncodeInt(int64(int16(k2)))
  12303. ee.EncodeBool(v[int16(k2)])
  12304. }
  12305. }
  12306. } else {
  12307. if esep {
  12308. for k2, v2 := range v {
  12309. ee.WriteMapElemKey()
  12310. ee.EncodeInt(int64(k2))
  12311. ee.WriteMapElemValue()
  12312. ee.EncodeBool(v2)
  12313. }
  12314. } else {
  12315. for k2, v2 := range v {
  12316. ee.EncodeInt(int64(k2))
  12317. ee.EncodeBool(v2)
  12318. }
  12319. }
  12320. }
  12321. ee.WriteMapEnd()
  12322. }
  12323. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  12324. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  12325. }
  12326. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  12327. if v == nil {
  12328. e.e.EncodeNil()
  12329. return
  12330. }
  12331. ee, esep := e.e, e.hh.hasElemSeparators()
  12332. ee.WriteMapStart(len(v))
  12333. if e.h.Canonical {
  12334. v2 := make([]int64, len(v))
  12335. var i int
  12336. for k, _ := range v {
  12337. v2[i] = int64(k)
  12338. i++
  12339. }
  12340. sort.Sort(intSlice(v2))
  12341. if esep {
  12342. for _, k2 := range v2 {
  12343. ee.WriteMapElemKey()
  12344. ee.EncodeInt(int64(int32(k2)))
  12345. ee.WriteMapElemValue()
  12346. e.encode(v[int32(k2)])
  12347. }
  12348. } else {
  12349. for _, k2 := range v2 {
  12350. ee.EncodeInt(int64(int32(k2)))
  12351. e.encode(v[int32(k2)])
  12352. }
  12353. }
  12354. } else {
  12355. if esep {
  12356. for k2, v2 := range v {
  12357. ee.WriteMapElemKey()
  12358. ee.EncodeInt(int64(k2))
  12359. ee.WriteMapElemValue()
  12360. e.encode(v2)
  12361. }
  12362. } else {
  12363. for k2, v2 := range v {
  12364. ee.EncodeInt(int64(k2))
  12365. e.encode(v2)
  12366. }
  12367. }
  12368. }
  12369. ee.WriteMapEnd()
  12370. }
  12371. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  12372. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  12373. }
  12374. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  12375. if v == nil {
  12376. e.e.EncodeNil()
  12377. return
  12378. }
  12379. ee, esep := e.e, e.hh.hasElemSeparators()
  12380. ee.WriteMapStart(len(v))
  12381. if e.h.Canonical {
  12382. v2 := make([]int64, len(v))
  12383. var i int
  12384. for k, _ := range v {
  12385. v2[i] = int64(k)
  12386. i++
  12387. }
  12388. sort.Sort(intSlice(v2))
  12389. if esep {
  12390. for _, k2 := range v2 {
  12391. ee.WriteMapElemKey()
  12392. ee.EncodeInt(int64(int32(k2)))
  12393. ee.WriteMapElemValue()
  12394. ee.EncodeString(cUTF8, v[int32(k2)])
  12395. }
  12396. } else {
  12397. for _, k2 := range v2 {
  12398. ee.EncodeInt(int64(int32(k2)))
  12399. ee.EncodeString(cUTF8, v[int32(k2)])
  12400. }
  12401. }
  12402. } else {
  12403. if esep {
  12404. for k2, v2 := range v {
  12405. ee.WriteMapElemKey()
  12406. ee.EncodeInt(int64(k2))
  12407. ee.WriteMapElemValue()
  12408. ee.EncodeString(cUTF8, v2)
  12409. }
  12410. } else {
  12411. for k2, v2 := range v {
  12412. ee.EncodeInt(int64(k2))
  12413. ee.EncodeString(cUTF8, v2)
  12414. }
  12415. }
  12416. }
  12417. ee.WriteMapEnd()
  12418. }
  12419. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  12420. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  12421. }
  12422. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  12423. if v == nil {
  12424. e.e.EncodeNil()
  12425. return
  12426. }
  12427. ee, esep := e.e, e.hh.hasElemSeparators()
  12428. ee.WriteMapStart(len(v))
  12429. if e.h.Canonical {
  12430. v2 := make([]int64, len(v))
  12431. var i int
  12432. for k, _ := range v {
  12433. v2[i] = int64(k)
  12434. i++
  12435. }
  12436. sort.Sort(intSlice(v2))
  12437. if esep {
  12438. for _, k2 := range v2 {
  12439. ee.WriteMapElemKey()
  12440. ee.EncodeInt(int64(int32(k2)))
  12441. ee.WriteMapElemValue()
  12442. ee.EncodeUint(uint64(v[int32(k2)]))
  12443. }
  12444. } else {
  12445. for _, k2 := range v2 {
  12446. ee.EncodeInt(int64(int32(k2)))
  12447. ee.EncodeUint(uint64(v[int32(k2)]))
  12448. }
  12449. }
  12450. } else {
  12451. if esep {
  12452. for k2, v2 := range v {
  12453. ee.WriteMapElemKey()
  12454. ee.EncodeInt(int64(k2))
  12455. ee.WriteMapElemValue()
  12456. ee.EncodeUint(uint64(v2))
  12457. }
  12458. } else {
  12459. for k2, v2 := range v {
  12460. ee.EncodeInt(int64(k2))
  12461. ee.EncodeUint(uint64(v2))
  12462. }
  12463. }
  12464. }
  12465. ee.WriteMapEnd()
  12466. }
  12467. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  12468. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  12469. }
  12470. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  12471. if v == nil {
  12472. e.e.EncodeNil()
  12473. return
  12474. }
  12475. ee, esep := e.e, e.hh.hasElemSeparators()
  12476. ee.WriteMapStart(len(v))
  12477. if e.h.Canonical {
  12478. v2 := make([]int64, len(v))
  12479. var i int
  12480. for k, _ := range v {
  12481. v2[i] = int64(k)
  12482. i++
  12483. }
  12484. sort.Sort(intSlice(v2))
  12485. if esep {
  12486. for _, k2 := range v2 {
  12487. ee.WriteMapElemKey()
  12488. ee.EncodeInt(int64(int32(k2)))
  12489. ee.WriteMapElemValue()
  12490. ee.EncodeUint(uint64(v[int32(k2)]))
  12491. }
  12492. } else {
  12493. for _, k2 := range v2 {
  12494. ee.EncodeInt(int64(int32(k2)))
  12495. ee.EncodeUint(uint64(v[int32(k2)]))
  12496. }
  12497. }
  12498. } else {
  12499. if esep {
  12500. for k2, v2 := range v {
  12501. ee.WriteMapElemKey()
  12502. ee.EncodeInt(int64(k2))
  12503. ee.WriteMapElemValue()
  12504. ee.EncodeUint(uint64(v2))
  12505. }
  12506. } else {
  12507. for k2, v2 := range v {
  12508. ee.EncodeInt(int64(k2))
  12509. ee.EncodeUint(uint64(v2))
  12510. }
  12511. }
  12512. }
  12513. ee.WriteMapEnd()
  12514. }
  12515. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  12516. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  12517. }
  12518. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  12519. if v == nil {
  12520. e.e.EncodeNil()
  12521. return
  12522. }
  12523. ee, esep := e.e, e.hh.hasElemSeparators()
  12524. ee.WriteMapStart(len(v))
  12525. if e.h.Canonical {
  12526. v2 := make([]int64, len(v))
  12527. var i int
  12528. for k, _ := range v {
  12529. v2[i] = int64(k)
  12530. i++
  12531. }
  12532. sort.Sort(intSlice(v2))
  12533. if esep {
  12534. for _, k2 := range v2 {
  12535. ee.WriteMapElemKey()
  12536. ee.EncodeInt(int64(int32(k2)))
  12537. ee.WriteMapElemValue()
  12538. ee.EncodeUint(uint64(v[int32(k2)]))
  12539. }
  12540. } else {
  12541. for _, k2 := range v2 {
  12542. ee.EncodeInt(int64(int32(k2)))
  12543. ee.EncodeUint(uint64(v[int32(k2)]))
  12544. }
  12545. }
  12546. } else {
  12547. if esep {
  12548. for k2, v2 := range v {
  12549. ee.WriteMapElemKey()
  12550. ee.EncodeInt(int64(k2))
  12551. ee.WriteMapElemValue()
  12552. ee.EncodeUint(uint64(v2))
  12553. }
  12554. } else {
  12555. for k2, v2 := range v {
  12556. ee.EncodeInt(int64(k2))
  12557. ee.EncodeUint(uint64(v2))
  12558. }
  12559. }
  12560. }
  12561. ee.WriteMapEnd()
  12562. }
  12563. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  12564. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  12565. }
  12566. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  12567. if v == nil {
  12568. e.e.EncodeNil()
  12569. return
  12570. }
  12571. ee, esep := e.e, e.hh.hasElemSeparators()
  12572. ee.WriteMapStart(len(v))
  12573. if e.h.Canonical {
  12574. v2 := make([]int64, len(v))
  12575. var i int
  12576. for k, _ := range v {
  12577. v2[i] = int64(k)
  12578. i++
  12579. }
  12580. sort.Sort(intSlice(v2))
  12581. if esep {
  12582. for _, k2 := range v2 {
  12583. ee.WriteMapElemKey()
  12584. ee.EncodeInt(int64(int32(k2)))
  12585. ee.WriteMapElemValue()
  12586. ee.EncodeUint(uint64(v[int32(k2)]))
  12587. }
  12588. } else {
  12589. for _, k2 := range v2 {
  12590. ee.EncodeInt(int64(int32(k2)))
  12591. ee.EncodeUint(uint64(v[int32(k2)]))
  12592. }
  12593. }
  12594. } else {
  12595. if esep {
  12596. for k2, v2 := range v {
  12597. ee.WriteMapElemKey()
  12598. ee.EncodeInt(int64(k2))
  12599. ee.WriteMapElemValue()
  12600. ee.EncodeUint(uint64(v2))
  12601. }
  12602. } else {
  12603. for k2, v2 := range v {
  12604. ee.EncodeInt(int64(k2))
  12605. ee.EncodeUint(uint64(v2))
  12606. }
  12607. }
  12608. }
  12609. ee.WriteMapEnd()
  12610. }
  12611. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  12612. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  12613. }
  12614. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  12615. if v == nil {
  12616. e.e.EncodeNil()
  12617. return
  12618. }
  12619. ee, esep := e.e, e.hh.hasElemSeparators()
  12620. ee.WriteMapStart(len(v))
  12621. if e.h.Canonical {
  12622. v2 := make([]int64, len(v))
  12623. var i int
  12624. for k, _ := range v {
  12625. v2[i] = int64(k)
  12626. i++
  12627. }
  12628. sort.Sort(intSlice(v2))
  12629. if esep {
  12630. for _, k2 := range v2 {
  12631. ee.WriteMapElemKey()
  12632. ee.EncodeInt(int64(int32(k2)))
  12633. ee.WriteMapElemValue()
  12634. ee.EncodeUint(uint64(v[int32(k2)]))
  12635. }
  12636. } else {
  12637. for _, k2 := range v2 {
  12638. ee.EncodeInt(int64(int32(k2)))
  12639. ee.EncodeUint(uint64(v[int32(k2)]))
  12640. }
  12641. }
  12642. } else {
  12643. if esep {
  12644. for k2, v2 := range v {
  12645. ee.WriteMapElemKey()
  12646. ee.EncodeInt(int64(k2))
  12647. ee.WriteMapElemValue()
  12648. ee.EncodeUint(uint64(v2))
  12649. }
  12650. } else {
  12651. for k2, v2 := range v {
  12652. ee.EncodeInt(int64(k2))
  12653. ee.EncodeUint(uint64(v2))
  12654. }
  12655. }
  12656. }
  12657. ee.WriteMapEnd()
  12658. }
  12659. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  12660. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  12661. }
  12662. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  12663. if v == nil {
  12664. e.e.EncodeNil()
  12665. return
  12666. }
  12667. ee, esep := e.e, e.hh.hasElemSeparators()
  12668. ee.WriteMapStart(len(v))
  12669. if e.h.Canonical {
  12670. v2 := make([]int64, len(v))
  12671. var i int
  12672. for k, _ := range v {
  12673. v2[i] = int64(k)
  12674. i++
  12675. }
  12676. sort.Sort(intSlice(v2))
  12677. if esep {
  12678. for _, k2 := range v2 {
  12679. ee.WriteMapElemKey()
  12680. ee.EncodeInt(int64(int32(k2)))
  12681. ee.WriteMapElemValue()
  12682. e.encode(v[int32(k2)])
  12683. }
  12684. } else {
  12685. for _, k2 := range v2 {
  12686. ee.EncodeInt(int64(int32(k2)))
  12687. e.encode(v[int32(k2)])
  12688. }
  12689. }
  12690. } else {
  12691. if esep {
  12692. for k2, v2 := range v {
  12693. ee.WriteMapElemKey()
  12694. ee.EncodeInt(int64(k2))
  12695. ee.WriteMapElemValue()
  12696. e.encode(v2)
  12697. }
  12698. } else {
  12699. for k2, v2 := range v {
  12700. ee.EncodeInt(int64(k2))
  12701. e.encode(v2)
  12702. }
  12703. }
  12704. }
  12705. ee.WriteMapEnd()
  12706. }
  12707. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  12708. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  12709. }
  12710. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  12711. if v == nil {
  12712. e.e.EncodeNil()
  12713. return
  12714. }
  12715. ee, esep := e.e, e.hh.hasElemSeparators()
  12716. ee.WriteMapStart(len(v))
  12717. if e.h.Canonical {
  12718. v2 := make([]int64, len(v))
  12719. var i int
  12720. for k, _ := range v {
  12721. v2[i] = int64(k)
  12722. i++
  12723. }
  12724. sort.Sort(intSlice(v2))
  12725. if esep {
  12726. for _, k2 := range v2 {
  12727. ee.WriteMapElemKey()
  12728. ee.EncodeInt(int64(int32(k2)))
  12729. ee.WriteMapElemValue()
  12730. ee.EncodeInt(int64(v[int32(k2)]))
  12731. }
  12732. } else {
  12733. for _, k2 := range v2 {
  12734. ee.EncodeInt(int64(int32(k2)))
  12735. ee.EncodeInt(int64(v[int32(k2)]))
  12736. }
  12737. }
  12738. } else {
  12739. if esep {
  12740. for k2, v2 := range v {
  12741. ee.WriteMapElemKey()
  12742. ee.EncodeInt(int64(k2))
  12743. ee.WriteMapElemValue()
  12744. ee.EncodeInt(int64(v2))
  12745. }
  12746. } else {
  12747. for k2, v2 := range v {
  12748. ee.EncodeInt(int64(k2))
  12749. ee.EncodeInt(int64(v2))
  12750. }
  12751. }
  12752. }
  12753. ee.WriteMapEnd()
  12754. }
  12755. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  12756. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  12757. }
  12758. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  12759. if v == nil {
  12760. e.e.EncodeNil()
  12761. return
  12762. }
  12763. ee, esep := e.e, e.hh.hasElemSeparators()
  12764. ee.WriteMapStart(len(v))
  12765. if e.h.Canonical {
  12766. v2 := make([]int64, len(v))
  12767. var i int
  12768. for k, _ := range v {
  12769. v2[i] = int64(k)
  12770. i++
  12771. }
  12772. sort.Sort(intSlice(v2))
  12773. if esep {
  12774. for _, k2 := range v2 {
  12775. ee.WriteMapElemKey()
  12776. ee.EncodeInt(int64(int32(k2)))
  12777. ee.WriteMapElemValue()
  12778. ee.EncodeInt(int64(v[int32(k2)]))
  12779. }
  12780. } else {
  12781. for _, k2 := range v2 {
  12782. ee.EncodeInt(int64(int32(k2)))
  12783. ee.EncodeInt(int64(v[int32(k2)]))
  12784. }
  12785. }
  12786. } else {
  12787. if esep {
  12788. for k2, v2 := range v {
  12789. ee.WriteMapElemKey()
  12790. ee.EncodeInt(int64(k2))
  12791. ee.WriteMapElemValue()
  12792. ee.EncodeInt(int64(v2))
  12793. }
  12794. } else {
  12795. for k2, v2 := range v {
  12796. ee.EncodeInt(int64(k2))
  12797. ee.EncodeInt(int64(v2))
  12798. }
  12799. }
  12800. }
  12801. ee.WriteMapEnd()
  12802. }
  12803. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  12804. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  12805. }
  12806. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  12807. if v == nil {
  12808. e.e.EncodeNil()
  12809. return
  12810. }
  12811. ee, esep := e.e, e.hh.hasElemSeparators()
  12812. ee.WriteMapStart(len(v))
  12813. if e.h.Canonical {
  12814. v2 := make([]int64, len(v))
  12815. var i int
  12816. for k, _ := range v {
  12817. v2[i] = int64(k)
  12818. i++
  12819. }
  12820. sort.Sort(intSlice(v2))
  12821. if esep {
  12822. for _, k2 := range v2 {
  12823. ee.WriteMapElemKey()
  12824. ee.EncodeInt(int64(int32(k2)))
  12825. ee.WriteMapElemValue()
  12826. ee.EncodeInt(int64(v[int32(k2)]))
  12827. }
  12828. } else {
  12829. for _, k2 := range v2 {
  12830. ee.EncodeInt(int64(int32(k2)))
  12831. ee.EncodeInt(int64(v[int32(k2)]))
  12832. }
  12833. }
  12834. } else {
  12835. if esep {
  12836. for k2, v2 := range v {
  12837. ee.WriteMapElemKey()
  12838. ee.EncodeInt(int64(k2))
  12839. ee.WriteMapElemValue()
  12840. ee.EncodeInt(int64(v2))
  12841. }
  12842. } else {
  12843. for k2, v2 := range v {
  12844. ee.EncodeInt(int64(k2))
  12845. ee.EncodeInt(int64(v2))
  12846. }
  12847. }
  12848. }
  12849. ee.WriteMapEnd()
  12850. }
  12851. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  12852. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  12853. }
  12854. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  12855. if v == nil {
  12856. e.e.EncodeNil()
  12857. return
  12858. }
  12859. ee, esep := e.e, e.hh.hasElemSeparators()
  12860. ee.WriteMapStart(len(v))
  12861. if e.h.Canonical {
  12862. v2 := make([]int64, len(v))
  12863. var i int
  12864. for k, _ := range v {
  12865. v2[i] = int64(k)
  12866. i++
  12867. }
  12868. sort.Sort(intSlice(v2))
  12869. if esep {
  12870. for _, k2 := range v2 {
  12871. ee.WriteMapElemKey()
  12872. ee.EncodeInt(int64(int32(k2)))
  12873. ee.WriteMapElemValue()
  12874. ee.EncodeInt(int64(v[int32(k2)]))
  12875. }
  12876. } else {
  12877. for _, k2 := range v2 {
  12878. ee.EncodeInt(int64(int32(k2)))
  12879. ee.EncodeInt(int64(v[int32(k2)]))
  12880. }
  12881. }
  12882. } else {
  12883. if esep {
  12884. for k2, v2 := range v {
  12885. ee.WriteMapElemKey()
  12886. ee.EncodeInt(int64(k2))
  12887. ee.WriteMapElemValue()
  12888. ee.EncodeInt(int64(v2))
  12889. }
  12890. } else {
  12891. for k2, v2 := range v {
  12892. ee.EncodeInt(int64(k2))
  12893. ee.EncodeInt(int64(v2))
  12894. }
  12895. }
  12896. }
  12897. ee.WriteMapEnd()
  12898. }
  12899. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  12900. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  12901. }
  12902. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  12903. if v == nil {
  12904. e.e.EncodeNil()
  12905. return
  12906. }
  12907. ee, esep := e.e, e.hh.hasElemSeparators()
  12908. ee.WriteMapStart(len(v))
  12909. if e.h.Canonical {
  12910. v2 := make([]int64, len(v))
  12911. var i int
  12912. for k, _ := range v {
  12913. v2[i] = int64(k)
  12914. i++
  12915. }
  12916. sort.Sort(intSlice(v2))
  12917. if esep {
  12918. for _, k2 := range v2 {
  12919. ee.WriteMapElemKey()
  12920. ee.EncodeInt(int64(int32(k2)))
  12921. ee.WriteMapElemValue()
  12922. ee.EncodeInt(int64(v[int32(k2)]))
  12923. }
  12924. } else {
  12925. for _, k2 := range v2 {
  12926. ee.EncodeInt(int64(int32(k2)))
  12927. ee.EncodeInt(int64(v[int32(k2)]))
  12928. }
  12929. }
  12930. } else {
  12931. if esep {
  12932. for k2, v2 := range v {
  12933. ee.WriteMapElemKey()
  12934. ee.EncodeInt(int64(k2))
  12935. ee.WriteMapElemValue()
  12936. ee.EncodeInt(int64(v2))
  12937. }
  12938. } else {
  12939. for k2, v2 := range v {
  12940. ee.EncodeInt(int64(k2))
  12941. ee.EncodeInt(int64(v2))
  12942. }
  12943. }
  12944. }
  12945. ee.WriteMapEnd()
  12946. }
  12947. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  12948. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  12949. }
  12950. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  12951. if v == nil {
  12952. e.e.EncodeNil()
  12953. return
  12954. }
  12955. ee, esep := e.e, e.hh.hasElemSeparators()
  12956. ee.WriteMapStart(len(v))
  12957. if e.h.Canonical {
  12958. v2 := make([]int64, len(v))
  12959. var i int
  12960. for k, _ := range v {
  12961. v2[i] = int64(k)
  12962. i++
  12963. }
  12964. sort.Sort(intSlice(v2))
  12965. if esep {
  12966. for _, k2 := range v2 {
  12967. ee.WriteMapElemKey()
  12968. ee.EncodeInt(int64(int32(k2)))
  12969. ee.WriteMapElemValue()
  12970. ee.EncodeFloat32(v[int32(k2)])
  12971. }
  12972. } else {
  12973. for _, k2 := range v2 {
  12974. ee.EncodeInt(int64(int32(k2)))
  12975. ee.EncodeFloat32(v[int32(k2)])
  12976. }
  12977. }
  12978. } else {
  12979. if esep {
  12980. for k2, v2 := range v {
  12981. ee.WriteMapElemKey()
  12982. ee.EncodeInt(int64(k2))
  12983. ee.WriteMapElemValue()
  12984. ee.EncodeFloat32(v2)
  12985. }
  12986. } else {
  12987. for k2, v2 := range v {
  12988. ee.EncodeInt(int64(k2))
  12989. ee.EncodeFloat32(v2)
  12990. }
  12991. }
  12992. }
  12993. ee.WriteMapEnd()
  12994. }
  12995. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  12996. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  12997. }
  12998. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  12999. if v == nil {
  13000. e.e.EncodeNil()
  13001. return
  13002. }
  13003. ee, esep := e.e, e.hh.hasElemSeparators()
  13004. ee.WriteMapStart(len(v))
  13005. if e.h.Canonical {
  13006. v2 := make([]int64, len(v))
  13007. var i int
  13008. for k, _ := range v {
  13009. v2[i] = int64(k)
  13010. i++
  13011. }
  13012. sort.Sort(intSlice(v2))
  13013. if esep {
  13014. for _, k2 := range v2 {
  13015. ee.WriteMapElemKey()
  13016. ee.EncodeInt(int64(int32(k2)))
  13017. ee.WriteMapElemValue()
  13018. ee.EncodeFloat64(v[int32(k2)])
  13019. }
  13020. } else {
  13021. for _, k2 := range v2 {
  13022. ee.EncodeInt(int64(int32(k2)))
  13023. ee.EncodeFloat64(v[int32(k2)])
  13024. }
  13025. }
  13026. } else {
  13027. if esep {
  13028. for k2, v2 := range v {
  13029. ee.WriteMapElemKey()
  13030. ee.EncodeInt(int64(k2))
  13031. ee.WriteMapElemValue()
  13032. ee.EncodeFloat64(v2)
  13033. }
  13034. } else {
  13035. for k2, v2 := range v {
  13036. ee.EncodeInt(int64(k2))
  13037. ee.EncodeFloat64(v2)
  13038. }
  13039. }
  13040. }
  13041. ee.WriteMapEnd()
  13042. }
  13043. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  13044. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  13045. }
  13046. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  13047. if v == nil {
  13048. e.e.EncodeNil()
  13049. return
  13050. }
  13051. ee, esep := e.e, e.hh.hasElemSeparators()
  13052. ee.WriteMapStart(len(v))
  13053. if e.h.Canonical {
  13054. v2 := make([]int64, len(v))
  13055. var i int
  13056. for k, _ := range v {
  13057. v2[i] = int64(k)
  13058. i++
  13059. }
  13060. sort.Sort(intSlice(v2))
  13061. if esep {
  13062. for _, k2 := range v2 {
  13063. ee.WriteMapElemKey()
  13064. ee.EncodeInt(int64(int32(k2)))
  13065. ee.WriteMapElemValue()
  13066. ee.EncodeBool(v[int32(k2)])
  13067. }
  13068. } else {
  13069. for _, k2 := range v2 {
  13070. ee.EncodeInt(int64(int32(k2)))
  13071. ee.EncodeBool(v[int32(k2)])
  13072. }
  13073. }
  13074. } else {
  13075. if esep {
  13076. for k2, v2 := range v {
  13077. ee.WriteMapElemKey()
  13078. ee.EncodeInt(int64(k2))
  13079. ee.WriteMapElemValue()
  13080. ee.EncodeBool(v2)
  13081. }
  13082. } else {
  13083. for k2, v2 := range v {
  13084. ee.EncodeInt(int64(k2))
  13085. ee.EncodeBool(v2)
  13086. }
  13087. }
  13088. }
  13089. ee.WriteMapEnd()
  13090. }
  13091. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  13092. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  13093. }
  13094. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  13095. if v == nil {
  13096. e.e.EncodeNil()
  13097. return
  13098. }
  13099. ee, esep := e.e, e.hh.hasElemSeparators()
  13100. ee.WriteMapStart(len(v))
  13101. if e.h.Canonical {
  13102. v2 := make([]int64, len(v))
  13103. var i int
  13104. for k, _ := range v {
  13105. v2[i] = int64(k)
  13106. i++
  13107. }
  13108. sort.Sort(intSlice(v2))
  13109. if esep {
  13110. for _, k2 := range v2 {
  13111. ee.WriteMapElemKey()
  13112. ee.EncodeInt(int64(int64(k2)))
  13113. ee.WriteMapElemValue()
  13114. e.encode(v[int64(k2)])
  13115. }
  13116. } else {
  13117. for _, k2 := range v2 {
  13118. ee.EncodeInt(int64(int64(k2)))
  13119. e.encode(v[int64(k2)])
  13120. }
  13121. }
  13122. } else {
  13123. if esep {
  13124. for k2, v2 := range v {
  13125. ee.WriteMapElemKey()
  13126. ee.EncodeInt(int64(k2))
  13127. ee.WriteMapElemValue()
  13128. e.encode(v2)
  13129. }
  13130. } else {
  13131. for k2, v2 := range v {
  13132. ee.EncodeInt(int64(k2))
  13133. e.encode(v2)
  13134. }
  13135. }
  13136. }
  13137. ee.WriteMapEnd()
  13138. }
  13139. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  13140. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  13141. }
  13142. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  13143. if v == nil {
  13144. e.e.EncodeNil()
  13145. return
  13146. }
  13147. ee, esep := e.e, e.hh.hasElemSeparators()
  13148. ee.WriteMapStart(len(v))
  13149. if e.h.Canonical {
  13150. v2 := make([]int64, len(v))
  13151. var i int
  13152. for k, _ := range v {
  13153. v2[i] = int64(k)
  13154. i++
  13155. }
  13156. sort.Sort(intSlice(v2))
  13157. if esep {
  13158. for _, k2 := range v2 {
  13159. ee.WriteMapElemKey()
  13160. ee.EncodeInt(int64(int64(k2)))
  13161. ee.WriteMapElemValue()
  13162. ee.EncodeString(cUTF8, v[int64(k2)])
  13163. }
  13164. } else {
  13165. for _, k2 := range v2 {
  13166. ee.EncodeInt(int64(int64(k2)))
  13167. ee.EncodeString(cUTF8, v[int64(k2)])
  13168. }
  13169. }
  13170. } else {
  13171. if esep {
  13172. for k2, v2 := range v {
  13173. ee.WriteMapElemKey()
  13174. ee.EncodeInt(int64(k2))
  13175. ee.WriteMapElemValue()
  13176. ee.EncodeString(cUTF8, v2)
  13177. }
  13178. } else {
  13179. for k2, v2 := range v {
  13180. ee.EncodeInt(int64(k2))
  13181. ee.EncodeString(cUTF8, v2)
  13182. }
  13183. }
  13184. }
  13185. ee.WriteMapEnd()
  13186. }
  13187. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  13188. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  13189. }
  13190. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  13191. if v == nil {
  13192. e.e.EncodeNil()
  13193. return
  13194. }
  13195. ee, esep := e.e, e.hh.hasElemSeparators()
  13196. ee.WriteMapStart(len(v))
  13197. if e.h.Canonical {
  13198. v2 := make([]int64, len(v))
  13199. var i int
  13200. for k, _ := range v {
  13201. v2[i] = int64(k)
  13202. i++
  13203. }
  13204. sort.Sort(intSlice(v2))
  13205. if esep {
  13206. for _, k2 := range v2 {
  13207. ee.WriteMapElemKey()
  13208. ee.EncodeInt(int64(int64(k2)))
  13209. ee.WriteMapElemValue()
  13210. ee.EncodeUint(uint64(v[int64(k2)]))
  13211. }
  13212. } else {
  13213. for _, k2 := range v2 {
  13214. ee.EncodeInt(int64(int64(k2)))
  13215. ee.EncodeUint(uint64(v[int64(k2)]))
  13216. }
  13217. }
  13218. } else {
  13219. if esep {
  13220. for k2, v2 := range v {
  13221. ee.WriteMapElemKey()
  13222. ee.EncodeInt(int64(k2))
  13223. ee.WriteMapElemValue()
  13224. ee.EncodeUint(uint64(v2))
  13225. }
  13226. } else {
  13227. for k2, v2 := range v {
  13228. ee.EncodeInt(int64(k2))
  13229. ee.EncodeUint(uint64(v2))
  13230. }
  13231. }
  13232. }
  13233. ee.WriteMapEnd()
  13234. }
  13235. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  13236. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  13237. }
  13238. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  13239. if v == nil {
  13240. e.e.EncodeNil()
  13241. return
  13242. }
  13243. ee, esep := e.e, e.hh.hasElemSeparators()
  13244. ee.WriteMapStart(len(v))
  13245. if e.h.Canonical {
  13246. v2 := make([]int64, len(v))
  13247. var i int
  13248. for k, _ := range v {
  13249. v2[i] = int64(k)
  13250. i++
  13251. }
  13252. sort.Sort(intSlice(v2))
  13253. if esep {
  13254. for _, k2 := range v2 {
  13255. ee.WriteMapElemKey()
  13256. ee.EncodeInt(int64(int64(k2)))
  13257. ee.WriteMapElemValue()
  13258. ee.EncodeUint(uint64(v[int64(k2)]))
  13259. }
  13260. } else {
  13261. for _, k2 := range v2 {
  13262. ee.EncodeInt(int64(int64(k2)))
  13263. ee.EncodeUint(uint64(v[int64(k2)]))
  13264. }
  13265. }
  13266. } else {
  13267. if esep {
  13268. for k2, v2 := range v {
  13269. ee.WriteMapElemKey()
  13270. ee.EncodeInt(int64(k2))
  13271. ee.WriteMapElemValue()
  13272. ee.EncodeUint(uint64(v2))
  13273. }
  13274. } else {
  13275. for k2, v2 := range v {
  13276. ee.EncodeInt(int64(k2))
  13277. ee.EncodeUint(uint64(v2))
  13278. }
  13279. }
  13280. }
  13281. ee.WriteMapEnd()
  13282. }
  13283. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  13284. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  13285. }
  13286. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  13287. if v == nil {
  13288. e.e.EncodeNil()
  13289. return
  13290. }
  13291. ee, esep := e.e, e.hh.hasElemSeparators()
  13292. ee.WriteMapStart(len(v))
  13293. if e.h.Canonical {
  13294. v2 := make([]int64, len(v))
  13295. var i int
  13296. for k, _ := range v {
  13297. v2[i] = int64(k)
  13298. i++
  13299. }
  13300. sort.Sort(intSlice(v2))
  13301. if esep {
  13302. for _, k2 := range v2 {
  13303. ee.WriteMapElemKey()
  13304. ee.EncodeInt(int64(int64(k2)))
  13305. ee.WriteMapElemValue()
  13306. ee.EncodeUint(uint64(v[int64(k2)]))
  13307. }
  13308. } else {
  13309. for _, k2 := range v2 {
  13310. ee.EncodeInt(int64(int64(k2)))
  13311. ee.EncodeUint(uint64(v[int64(k2)]))
  13312. }
  13313. }
  13314. } else {
  13315. if esep {
  13316. for k2, v2 := range v {
  13317. ee.WriteMapElemKey()
  13318. ee.EncodeInt(int64(k2))
  13319. ee.WriteMapElemValue()
  13320. ee.EncodeUint(uint64(v2))
  13321. }
  13322. } else {
  13323. for k2, v2 := range v {
  13324. ee.EncodeInt(int64(k2))
  13325. ee.EncodeUint(uint64(v2))
  13326. }
  13327. }
  13328. }
  13329. ee.WriteMapEnd()
  13330. }
  13331. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  13332. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  13333. }
  13334. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  13335. if v == nil {
  13336. e.e.EncodeNil()
  13337. return
  13338. }
  13339. ee, esep := e.e, e.hh.hasElemSeparators()
  13340. ee.WriteMapStart(len(v))
  13341. if e.h.Canonical {
  13342. v2 := make([]int64, len(v))
  13343. var i int
  13344. for k, _ := range v {
  13345. v2[i] = int64(k)
  13346. i++
  13347. }
  13348. sort.Sort(intSlice(v2))
  13349. if esep {
  13350. for _, k2 := range v2 {
  13351. ee.WriteMapElemKey()
  13352. ee.EncodeInt(int64(int64(k2)))
  13353. ee.WriteMapElemValue()
  13354. ee.EncodeUint(uint64(v[int64(k2)]))
  13355. }
  13356. } else {
  13357. for _, k2 := range v2 {
  13358. ee.EncodeInt(int64(int64(k2)))
  13359. ee.EncodeUint(uint64(v[int64(k2)]))
  13360. }
  13361. }
  13362. } else {
  13363. if esep {
  13364. for k2, v2 := range v {
  13365. ee.WriteMapElemKey()
  13366. ee.EncodeInt(int64(k2))
  13367. ee.WriteMapElemValue()
  13368. ee.EncodeUint(uint64(v2))
  13369. }
  13370. } else {
  13371. for k2, v2 := range v {
  13372. ee.EncodeInt(int64(k2))
  13373. ee.EncodeUint(uint64(v2))
  13374. }
  13375. }
  13376. }
  13377. ee.WriteMapEnd()
  13378. }
  13379. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  13380. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  13381. }
  13382. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  13383. if v == nil {
  13384. e.e.EncodeNil()
  13385. return
  13386. }
  13387. ee, esep := e.e, e.hh.hasElemSeparators()
  13388. ee.WriteMapStart(len(v))
  13389. if e.h.Canonical {
  13390. v2 := make([]int64, len(v))
  13391. var i int
  13392. for k, _ := range v {
  13393. v2[i] = int64(k)
  13394. i++
  13395. }
  13396. sort.Sort(intSlice(v2))
  13397. if esep {
  13398. for _, k2 := range v2 {
  13399. ee.WriteMapElemKey()
  13400. ee.EncodeInt(int64(int64(k2)))
  13401. ee.WriteMapElemValue()
  13402. ee.EncodeUint(uint64(v[int64(k2)]))
  13403. }
  13404. } else {
  13405. for _, k2 := range v2 {
  13406. ee.EncodeInt(int64(int64(k2)))
  13407. ee.EncodeUint(uint64(v[int64(k2)]))
  13408. }
  13409. }
  13410. } else {
  13411. if esep {
  13412. for k2, v2 := range v {
  13413. ee.WriteMapElemKey()
  13414. ee.EncodeInt(int64(k2))
  13415. ee.WriteMapElemValue()
  13416. ee.EncodeUint(uint64(v2))
  13417. }
  13418. } else {
  13419. for k2, v2 := range v {
  13420. ee.EncodeInt(int64(k2))
  13421. ee.EncodeUint(uint64(v2))
  13422. }
  13423. }
  13424. }
  13425. ee.WriteMapEnd()
  13426. }
  13427. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  13428. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  13429. }
  13430. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  13431. if v == nil {
  13432. e.e.EncodeNil()
  13433. return
  13434. }
  13435. ee, esep := e.e, e.hh.hasElemSeparators()
  13436. ee.WriteMapStart(len(v))
  13437. if e.h.Canonical {
  13438. v2 := make([]int64, len(v))
  13439. var i int
  13440. for k, _ := range v {
  13441. v2[i] = int64(k)
  13442. i++
  13443. }
  13444. sort.Sort(intSlice(v2))
  13445. if esep {
  13446. for _, k2 := range v2 {
  13447. ee.WriteMapElemKey()
  13448. ee.EncodeInt(int64(int64(k2)))
  13449. ee.WriteMapElemValue()
  13450. e.encode(v[int64(k2)])
  13451. }
  13452. } else {
  13453. for _, k2 := range v2 {
  13454. ee.EncodeInt(int64(int64(k2)))
  13455. e.encode(v[int64(k2)])
  13456. }
  13457. }
  13458. } else {
  13459. if esep {
  13460. for k2, v2 := range v {
  13461. ee.WriteMapElemKey()
  13462. ee.EncodeInt(int64(k2))
  13463. ee.WriteMapElemValue()
  13464. e.encode(v2)
  13465. }
  13466. } else {
  13467. for k2, v2 := range v {
  13468. ee.EncodeInt(int64(k2))
  13469. e.encode(v2)
  13470. }
  13471. }
  13472. }
  13473. ee.WriteMapEnd()
  13474. }
  13475. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  13476. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  13477. }
  13478. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  13479. if v == nil {
  13480. e.e.EncodeNil()
  13481. return
  13482. }
  13483. ee, esep := e.e, e.hh.hasElemSeparators()
  13484. ee.WriteMapStart(len(v))
  13485. if e.h.Canonical {
  13486. v2 := make([]int64, len(v))
  13487. var i int
  13488. for k, _ := range v {
  13489. v2[i] = int64(k)
  13490. i++
  13491. }
  13492. sort.Sort(intSlice(v2))
  13493. if esep {
  13494. for _, k2 := range v2 {
  13495. ee.WriteMapElemKey()
  13496. ee.EncodeInt(int64(int64(k2)))
  13497. ee.WriteMapElemValue()
  13498. ee.EncodeInt(int64(v[int64(k2)]))
  13499. }
  13500. } else {
  13501. for _, k2 := range v2 {
  13502. ee.EncodeInt(int64(int64(k2)))
  13503. ee.EncodeInt(int64(v[int64(k2)]))
  13504. }
  13505. }
  13506. } else {
  13507. if esep {
  13508. for k2, v2 := range v {
  13509. ee.WriteMapElemKey()
  13510. ee.EncodeInt(int64(k2))
  13511. ee.WriteMapElemValue()
  13512. ee.EncodeInt(int64(v2))
  13513. }
  13514. } else {
  13515. for k2, v2 := range v {
  13516. ee.EncodeInt(int64(k2))
  13517. ee.EncodeInt(int64(v2))
  13518. }
  13519. }
  13520. }
  13521. ee.WriteMapEnd()
  13522. }
  13523. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  13524. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  13525. }
  13526. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  13527. if v == nil {
  13528. e.e.EncodeNil()
  13529. return
  13530. }
  13531. ee, esep := e.e, e.hh.hasElemSeparators()
  13532. ee.WriteMapStart(len(v))
  13533. if e.h.Canonical {
  13534. v2 := make([]int64, len(v))
  13535. var i int
  13536. for k, _ := range v {
  13537. v2[i] = int64(k)
  13538. i++
  13539. }
  13540. sort.Sort(intSlice(v2))
  13541. if esep {
  13542. for _, k2 := range v2 {
  13543. ee.WriteMapElemKey()
  13544. ee.EncodeInt(int64(int64(k2)))
  13545. ee.WriteMapElemValue()
  13546. ee.EncodeInt(int64(v[int64(k2)]))
  13547. }
  13548. } else {
  13549. for _, k2 := range v2 {
  13550. ee.EncodeInt(int64(int64(k2)))
  13551. ee.EncodeInt(int64(v[int64(k2)]))
  13552. }
  13553. }
  13554. } else {
  13555. if esep {
  13556. for k2, v2 := range v {
  13557. ee.WriteMapElemKey()
  13558. ee.EncodeInt(int64(k2))
  13559. ee.WriteMapElemValue()
  13560. ee.EncodeInt(int64(v2))
  13561. }
  13562. } else {
  13563. for k2, v2 := range v {
  13564. ee.EncodeInt(int64(k2))
  13565. ee.EncodeInt(int64(v2))
  13566. }
  13567. }
  13568. }
  13569. ee.WriteMapEnd()
  13570. }
  13571. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  13572. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  13573. }
  13574. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  13575. if v == nil {
  13576. e.e.EncodeNil()
  13577. return
  13578. }
  13579. ee, esep := e.e, e.hh.hasElemSeparators()
  13580. ee.WriteMapStart(len(v))
  13581. if e.h.Canonical {
  13582. v2 := make([]int64, len(v))
  13583. var i int
  13584. for k, _ := range v {
  13585. v2[i] = int64(k)
  13586. i++
  13587. }
  13588. sort.Sort(intSlice(v2))
  13589. if esep {
  13590. for _, k2 := range v2 {
  13591. ee.WriteMapElemKey()
  13592. ee.EncodeInt(int64(int64(k2)))
  13593. ee.WriteMapElemValue()
  13594. ee.EncodeInt(int64(v[int64(k2)]))
  13595. }
  13596. } else {
  13597. for _, k2 := range v2 {
  13598. ee.EncodeInt(int64(int64(k2)))
  13599. ee.EncodeInt(int64(v[int64(k2)]))
  13600. }
  13601. }
  13602. } else {
  13603. if esep {
  13604. for k2, v2 := range v {
  13605. ee.WriteMapElemKey()
  13606. ee.EncodeInt(int64(k2))
  13607. ee.WriteMapElemValue()
  13608. ee.EncodeInt(int64(v2))
  13609. }
  13610. } else {
  13611. for k2, v2 := range v {
  13612. ee.EncodeInt(int64(k2))
  13613. ee.EncodeInt(int64(v2))
  13614. }
  13615. }
  13616. }
  13617. ee.WriteMapEnd()
  13618. }
  13619. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  13620. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  13621. }
  13622. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  13623. if v == nil {
  13624. e.e.EncodeNil()
  13625. return
  13626. }
  13627. ee, esep := e.e, e.hh.hasElemSeparators()
  13628. ee.WriteMapStart(len(v))
  13629. if e.h.Canonical {
  13630. v2 := make([]int64, len(v))
  13631. var i int
  13632. for k, _ := range v {
  13633. v2[i] = int64(k)
  13634. i++
  13635. }
  13636. sort.Sort(intSlice(v2))
  13637. if esep {
  13638. for _, k2 := range v2 {
  13639. ee.WriteMapElemKey()
  13640. ee.EncodeInt(int64(int64(k2)))
  13641. ee.WriteMapElemValue()
  13642. ee.EncodeInt(int64(v[int64(k2)]))
  13643. }
  13644. } else {
  13645. for _, k2 := range v2 {
  13646. ee.EncodeInt(int64(int64(k2)))
  13647. ee.EncodeInt(int64(v[int64(k2)]))
  13648. }
  13649. }
  13650. } else {
  13651. if esep {
  13652. for k2, v2 := range v {
  13653. ee.WriteMapElemKey()
  13654. ee.EncodeInt(int64(k2))
  13655. ee.WriteMapElemValue()
  13656. ee.EncodeInt(int64(v2))
  13657. }
  13658. } else {
  13659. for k2, v2 := range v {
  13660. ee.EncodeInt(int64(k2))
  13661. ee.EncodeInt(int64(v2))
  13662. }
  13663. }
  13664. }
  13665. ee.WriteMapEnd()
  13666. }
  13667. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  13668. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  13669. }
  13670. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  13671. if v == nil {
  13672. e.e.EncodeNil()
  13673. return
  13674. }
  13675. ee, esep := e.e, e.hh.hasElemSeparators()
  13676. ee.WriteMapStart(len(v))
  13677. if e.h.Canonical {
  13678. v2 := make([]int64, len(v))
  13679. var i int
  13680. for k, _ := range v {
  13681. v2[i] = int64(k)
  13682. i++
  13683. }
  13684. sort.Sort(intSlice(v2))
  13685. if esep {
  13686. for _, k2 := range v2 {
  13687. ee.WriteMapElemKey()
  13688. ee.EncodeInt(int64(int64(k2)))
  13689. ee.WriteMapElemValue()
  13690. ee.EncodeInt(int64(v[int64(k2)]))
  13691. }
  13692. } else {
  13693. for _, k2 := range v2 {
  13694. ee.EncodeInt(int64(int64(k2)))
  13695. ee.EncodeInt(int64(v[int64(k2)]))
  13696. }
  13697. }
  13698. } else {
  13699. if esep {
  13700. for k2, v2 := range v {
  13701. ee.WriteMapElemKey()
  13702. ee.EncodeInt(int64(k2))
  13703. ee.WriteMapElemValue()
  13704. ee.EncodeInt(int64(v2))
  13705. }
  13706. } else {
  13707. for k2, v2 := range v {
  13708. ee.EncodeInt(int64(k2))
  13709. ee.EncodeInt(int64(v2))
  13710. }
  13711. }
  13712. }
  13713. ee.WriteMapEnd()
  13714. }
  13715. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  13716. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  13717. }
  13718. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  13719. if v == nil {
  13720. e.e.EncodeNil()
  13721. return
  13722. }
  13723. ee, esep := e.e, e.hh.hasElemSeparators()
  13724. ee.WriteMapStart(len(v))
  13725. if e.h.Canonical {
  13726. v2 := make([]int64, len(v))
  13727. var i int
  13728. for k, _ := range v {
  13729. v2[i] = int64(k)
  13730. i++
  13731. }
  13732. sort.Sort(intSlice(v2))
  13733. if esep {
  13734. for _, k2 := range v2 {
  13735. ee.WriteMapElemKey()
  13736. ee.EncodeInt(int64(int64(k2)))
  13737. ee.WriteMapElemValue()
  13738. ee.EncodeFloat32(v[int64(k2)])
  13739. }
  13740. } else {
  13741. for _, k2 := range v2 {
  13742. ee.EncodeInt(int64(int64(k2)))
  13743. ee.EncodeFloat32(v[int64(k2)])
  13744. }
  13745. }
  13746. } else {
  13747. if esep {
  13748. for k2, v2 := range v {
  13749. ee.WriteMapElemKey()
  13750. ee.EncodeInt(int64(k2))
  13751. ee.WriteMapElemValue()
  13752. ee.EncodeFloat32(v2)
  13753. }
  13754. } else {
  13755. for k2, v2 := range v {
  13756. ee.EncodeInt(int64(k2))
  13757. ee.EncodeFloat32(v2)
  13758. }
  13759. }
  13760. }
  13761. ee.WriteMapEnd()
  13762. }
  13763. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  13764. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  13765. }
  13766. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  13767. if v == nil {
  13768. e.e.EncodeNil()
  13769. return
  13770. }
  13771. ee, esep := e.e, e.hh.hasElemSeparators()
  13772. ee.WriteMapStart(len(v))
  13773. if e.h.Canonical {
  13774. v2 := make([]int64, len(v))
  13775. var i int
  13776. for k, _ := range v {
  13777. v2[i] = int64(k)
  13778. i++
  13779. }
  13780. sort.Sort(intSlice(v2))
  13781. if esep {
  13782. for _, k2 := range v2 {
  13783. ee.WriteMapElemKey()
  13784. ee.EncodeInt(int64(int64(k2)))
  13785. ee.WriteMapElemValue()
  13786. ee.EncodeFloat64(v[int64(k2)])
  13787. }
  13788. } else {
  13789. for _, k2 := range v2 {
  13790. ee.EncodeInt(int64(int64(k2)))
  13791. ee.EncodeFloat64(v[int64(k2)])
  13792. }
  13793. }
  13794. } else {
  13795. if esep {
  13796. for k2, v2 := range v {
  13797. ee.WriteMapElemKey()
  13798. ee.EncodeInt(int64(k2))
  13799. ee.WriteMapElemValue()
  13800. ee.EncodeFloat64(v2)
  13801. }
  13802. } else {
  13803. for k2, v2 := range v {
  13804. ee.EncodeInt(int64(k2))
  13805. ee.EncodeFloat64(v2)
  13806. }
  13807. }
  13808. }
  13809. ee.WriteMapEnd()
  13810. }
  13811. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  13812. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  13813. }
  13814. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  13815. if v == nil {
  13816. e.e.EncodeNil()
  13817. return
  13818. }
  13819. ee, esep := e.e, e.hh.hasElemSeparators()
  13820. ee.WriteMapStart(len(v))
  13821. if e.h.Canonical {
  13822. v2 := make([]int64, len(v))
  13823. var i int
  13824. for k, _ := range v {
  13825. v2[i] = int64(k)
  13826. i++
  13827. }
  13828. sort.Sort(intSlice(v2))
  13829. if esep {
  13830. for _, k2 := range v2 {
  13831. ee.WriteMapElemKey()
  13832. ee.EncodeInt(int64(int64(k2)))
  13833. ee.WriteMapElemValue()
  13834. ee.EncodeBool(v[int64(k2)])
  13835. }
  13836. } else {
  13837. for _, k2 := range v2 {
  13838. ee.EncodeInt(int64(int64(k2)))
  13839. ee.EncodeBool(v[int64(k2)])
  13840. }
  13841. }
  13842. } else {
  13843. if esep {
  13844. for k2, v2 := range v {
  13845. ee.WriteMapElemKey()
  13846. ee.EncodeInt(int64(k2))
  13847. ee.WriteMapElemValue()
  13848. ee.EncodeBool(v2)
  13849. }
  13850. } else {
  13851. for k2, v2 := range v {
  13852. ee.EncodeInt(int64(k2))
  13853. ee.EncodeBool(v2)
  13854. }
  13855. }
  13856. }
  13857. ee.WriteMapEnd()
  13858. }
  13859. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  13860. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  13861. }
  13862. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  13863. if v == nil {
  13864. e.e.EncodeNil()
  13865. return
  13866. }
  13867. ee, esep := e.e, e.hh.hasElemSeparators()
  13868. ee.WriteMapStart(len(v))
  13869. if e.h.Canonical {
  13870. v2 := make([]bool, len(v))
  13871. var i int
  13872. for k, _ := range v {
  13873. v2[i] = bool(k)
  13874. i++
  13875. }
  13876. sort.Sort(boolSlice(v2))
  13877. if esep {
  13878. for _, k2 := range v2 {
  13879. ee.WriteMapElemKey()
  13880. ee.EncodeBool(bool(k2))
  13881. ee.WriteMapElemValue()
  13882. e.encode(v[bool(k2)])
  13883. }
  13884. } else {
  13885. for _, k2 := range v2 {
  13886. ee.EncodeBool(bool(k2))
  13887. e.encode(v[bool(k2)])
  13888. }
  13889. }
  13890. } else {
  13891. if esep {
  13892. for k2, v2 := range v {
  13893. ee.WriteMapElemKey()
  13894. ee.EncodeBool(k2)
  13895. ee.WriteMapElemValue()
  13896. e.encode(v2)
  13897. }
  13898. } else {
  13899. for k2, v2 := range v {
  13900. ee.EncodeBool(k2)
  13901. e.encode(v2)
  13902. }
  13903. }
  13904. }
  13905. ee.WriteMapEnd()
  13906. }
  13907. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  13908. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  13909. }
  13910. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  13911. if v == nil {
  13912. e.e.EncodeNil()
  13913. return
  13914. }
  13915. ee, esep := e.e, e.hh.hasElemSeparators()
  13916. ee.WriteMapStart(len(v))
  13917. if e.h.Canonical {
  13918. v2 := make([]bool, len(v))
  13919. var i int
  13920. for k, _ := range v {
  13921. v2[i] = bool(k)
  13922. i++
  13923. }
  13924. sort.Sort(boolSlice(v2))
  13925. if esep {
  13926. for _, k2 := range v2 {
  13927. ee.WriteMapElemKey()
  13928. ee.EncodeBool(bool(k2))
  13929. ee.WriteMapElemValue()
  13930. ee.EncodeString(cUTF8, v[bool(k2)])
  13931. }
  13932. } else {
  13933. for _, k2 := range v2 {
  13934. ee.EncodeBool(bool(k2))
  13935. ee.EncodeString(cUTF8, v[bool(k2)])
  13936. }
  13937. }
  13938. } else {
  13939. if esep {
  13940. for k2, v2 := range v {
  13941. ee.WriteMapElemKey()
  13942. ee.EncodeBool(k2)
  13943. ee.WriteMapElemValue()
  13944. ee.EncodeString(cUTF8, v2)
  13945. }
  13946. } else {
  13947. for k2, v2 := range v {
  13948. ee.EncodeBool(k2)
  13949. ee.EncodeString(cUTF8, v2)
  13950. }
  13951. }
  13952. }
  13953. ee.WriteMapEnd()
  13954. }
  13955. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  13956. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  13957. }
  13958. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  13959. if v == nil {
  13960. e.e.EncodeNil()
  13961. return
  13962. }
  13963. ee, esep := e.e, e.hh.hasElemSeparators()
  13964. ee.WriteMapStart(len(v))
  13965. if e.h.Canonical {
  13966. v2 := make([]bool, len(v))
  13967. var i int
  13968. for k, _ := range v {
  13969. v2[i] = bool(k)
  13970. i++
  13971. }
  13972. sort.Sort(boolSlice(v2))
  13973. if esep {
  13974. for _, k2 := range v2 {
  13975. ee.WriteMapElemKey()
  13976. ee.EncodeBool(bool(k2))
  13977. ee.WriteMapElemValue()
  13978. ee.EncodeUint(uint64(v[bool(k2)]))
  13979. }
  13980. } else {
  13981. for _, k2 := range v2 {
  13982. ee.EncodeBool(bool(k2))
  13983. ee.EncodeUint(uint64(v[bool(k2)]))
  13984. }
  13985. }
  13986. } else {
  13987. if esep {
  13988. for k2, v2 := range v {
  13989. ee.WriteMapElemKey()
  13990. ee.EncodeBool(k2)
  13991. ee.WriteMapElemValue()
  13992. ee.EncodeUint(uint64(v2))
  13993. }
  13994. } else {
  13995. for k2, v2 := range v {
  13996. ee.EncodeBool(k2)
  13997. ee.EncodeUint(uint64(v2))
  13998. }
  13999. }
  14000. }
  14001. ee.WriteMapEnd()
  14002. }
  14003. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  14004. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  14005. }
  14006. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  14007. if v == nil {
  14008. e.e.EncodeNil()
  14009. return
  14010. }
  14011. ee, esep := e.e, e.hh.hasElemSeparators()
  14012. ee.WriteMapStart(len(v))
  14013. if e.h.Canonical {
  14014. v2 := make([]bool, len(v))
  14015. var i int
  14016. for k, _ := range v {
  14017. v2[i] = bool(k)
  14018. i++
  14019. }
  14020. sort.Sort(boolSlice(v2))
  14021. if esep {
  14022. for _, k2 := range v2 {
  14023. ee.WriteMapElemKey()
  14024. ee.EncodeBool(bool(k2))
  14025. ee.WriteMapElemValue()
  14026. ee.EncodeUint(uint64(v[bool(k2)]))
  14027. }
  14028. } else {
  14029. for _, k2 := range v2 {
  14030. ee.EncodeBool(bool(k2))
  14031. ee.EncodeUint(uint64(v[bool(k2)]))
  14032. }
  14033. }
  14034. } else {
  14035. if esep {
  14036. for k2, v2 := range v {
  14037. ee.WriteMapElemKey()
  14038. ee.EncodeBool(k2)
  14039. ee.WriteMapElemValue()
  14040. ee.EncodeUint(uint64(v2))
  14041. }
  14042. } else {
  14043. for k2, v2 := range v {
  14044. ee.EncodeBool(k2)
  14045. ee.EncodeUint(uint64(v2))
  14046. }
  14047. }
  14048. }
  14049. ee.WriteMapEnd()
  14050. }
  14051. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  14052. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  14053. }
  14054. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  14055. if v == nil {
  14056. e.e.EncodeNil()
  14057. return
  14058. }
  14059. ee, esep := e.e, e.hh.hasElemSeparators()
  14060. ee.WriteMapStart(len(v))
  14061. if e.h.Canonical {
  14062. v2 := make([]bool, len(v))
  14063. var i int
  14064. for k, _ := range v {
  14065. v2[i] = bool(k)
  14066. i++
  14067. }
  14068. sort.Sort(boolSlice(v2))
  14069. if esep {
  14070. for _, k2 := range v2 {
  14071. ee.WriteMapElemKey()
  14072. ee.EncodeBool(bool(k2))
  14073. ee.WriteMapElemValue()
  14074. ee.EncodeUint(uint64(v[bool(k2)]))
  14075. }
  14076. } else {
  14077. for _, k2 := range v2 {
  14078. ee.EncodeBool(bool(k2))
  14079. ee.EncodeUint(uint64(v[bool(k2)]))
  14080. }
  14081. }
  14082. } else {
  14083. if esep {
  14084. for k2, v2 := range v {
  14085. ee.WriteMapElemKey()
  14086. ee.EncodeBool(k2)
  14087. ee.WriteMapElemValue()
  14088. ee.EncodeUint(uint64(v2))
  14089. }
  14090. } else {
  14091. for k2, v2 := range v {
  14092. ee.EncodeBool(k2)
  14093. ee.EncodeUint(uint64(v2))
  14094. }
  14095. }
  14096. }
  14097. ee.WriteMapEnd()
  14098. }
  14099. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  14100. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  14101. }
  14102. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  14103. if v == nil {
  14104. e.e.EncodeNil()
  14105. return
  14106. }
  14107. ee, esep := e.e, e.hh.hasElemSeparators()
  14108. ee.WriteMapStart(len(v))
  14109. if e.h.Canonical {
  14110. v2 := make([]bool, len(v))
  14111. var i int
  14112. for k, _ := range v {
  14113. v2[i] = bool(k)
  14114. i++
  14115. }
  14116. sort.Sort(boolSlice(v2))
  14117. if esep {
  14118. for _, k2 := range v2 {
  14119. ee.WriteMapElemKey()
  14120. ee.EncodeBool(bool(k2))
  14121. ee.WriteMapElemValue()
  14122. ee.EncodeUint(uint64(v[bool(k2)]))
  14123. }
  14124. } else {
  14125. for _, k2 := range v2 {
  14126. ee.EncodeBool(bool(k2))
  14127. ee.EncodeUint(uint64(v[bool(k2)]))
  14128. }
  14129. }
  14130. } else {
  14131. if esep {
  14132. for k2, v2 := range v {
  14133. ee.WriteMapElemKey()
  14134. ee.EncodeBool(k2)
  14135. ee.WriteMapElemValue()
  14136. ee.EncodeUint(uint64(v2))
  14137. }
  14138. } else {
  14139. for k2, v2 := range v {
  14140. ee.EncodeBool(k2)
  14141. ee.EncodeUint(uint64(v2))
  14142. }
  14143. }
  14144. }
  14145. ee.WriteMapEnd()
  14146. }
  14147. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  14148. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  14149. }
  14150. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
  14151. if v == nil {
  14152. e.e.EncodeNil()
  14153. return
  14154. }
  14155. ee, esep := e.e, e.hh.hasElemSeparators()
  14156. ee.WriteMapStart(len(v))
  14157. if e.h.Canonical {
  14158. v2 := make([]bool, len(v))
  14159. var i int
  14160. for k, _ := range v {
  14161. v2[i] = bool(k)
  14162. i++
  14163. }
  14164. sort.Sort(boolSlice(v2))
  14165. if esep {
  14166. for _, k2 := range v2 {
  14167. ee.WriteMapElemKey()
  14168. ee.EncodeBool(bool(k2))
  14169. ee.WriteMapElemValue()
  14170. ee.EncodeUint(uint64(v[bool(k2)]))
  14171. }
  14172. } else {
  14173. for _, k2 := range v2 {
  14174. ee.EncodeBool(bool(k2))
  14175. ee.EncodeUint(uint64(v[bool(k2)]))
  14176. }
  14177. }
  14178. } else {
  14179. if esep {
  14180. for k2, v2 := range v {
  14181. ee.WriteMapElemKey()
  14182. ee.EncodeBool(k2)
  14183. ee.WriteMapElemValue()
  14184. ee.EncodeUint(uint64(v2))
  14185. }
  14186. } else {
  14187. for k2, v2 := range v {
  14188. ee.EncodeBool(k2)
  14189. ee.EncodeUint(uint64(v2))
  14190. }
  14191. }
  14192. }
  14193. ee.WriteMapEnd()
  14194. }
  14195. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  14196. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  14197. }
  14198. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  14199. if v == nil {
  14200. e.e.EncodeNil()
  14201. return
  14202. }
  14203. ee, esep := e.e, e.hh.hasElemSeparators()
  14204. ee.WriteMapStart(len(v))
  14205. if e.h.Canonical {
  14206. v2 := make([]bool, len(v))
  14207. var i int
  14208. for k, _ := range v {
  14209. v2[i] = bool(k)
  14210. i++
  14211. }
  14212. sort.Sort(boolSlice(v2))
  14213. if esep {
  14214. for _, k2 := range v2 {
  14215. ee.WriteMapElemKey()
  14216. ee.EncodeBool(bool(k2))
  14217. ee.WriteMapElemValue()
  14218. e.encode(v[bool(k2)])
  14219. }
  14220. } else {
  14221. for _, k2 := range v2 {
  14222. ee.EncodeBool(bool(k2))
  14223. e.encode(v[bool(k2)])
  14224. }
  14225. }
  14226. } else {
  14227. if esep {
  14228. for k2, v2 := range v {
  14229. ee.WriteMapElemKey()
  14230. ee.EncodeBool(k2)
  14231. ee.WriteMapElemValue()
  14232. e.encode(v2)
  14233. }
  14234. } else {
  14235. for k2, v2 := range v {
  14236. ee.EncodeBool(k2)
  14237. e.encode(v2)
  14238. }
  14239. }
  14240. }
  14241. ee.WriteMapEnd()
  14242. }
  14243. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  14244. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  14245. }
  14246. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  14247. if v == nil {
  14248. e.e.EncodeNil()
  14249. return
  14250. }
  14251. ee, esep := e.e, e.hh.hasElemSeparators()
  14252. ee.WriteMapStart(len(v))
  14253. if e.h.Canonical {
  14254. v2 := make([]bool, len(v))
  14255. var i int
  14256. for k, _ := range v {
  14257. v2[i] = bool(k)
  14258. i++
  14259. }
  14260. sort.Sort(boolSlice(v2))
  14261. if esep {
  14262. for _, k2 := range v2 {
  14263. ee.WriteMapElemKey()
  14264. ee.EncodeBool(bool(k2))
  14265. ee.WriteMapElemValue()
  14266. ee.EncodeInt(int64(v[bool(k2)]))
  14267. }
  14268. } else {
  14269. for _, k2 := range v2 {
  14270. ee.EncodeBool(bool(k2))
  14271. ee.EncodeInt(int64(v[bool(k2)]))
  14272. }
  14273. }
  14274. } else {
  14275. if esep {
  14276. for k2, v2 := range v {
  14277. ee.WriteMapElemKey()
  14278. ee.EncodeBool(k2)
  14279. ee.WriteMapElemValue()
  14280. ee.EncodeInt(int64(v2))
  14281. }
  14282. } else {
  14283. for k2, v2 := range v {
  14284. ee.EncodeBool(k2)
  14285. ee.EncodeInt(int64(v2))
  14286. }
  14287. }
  14288. }
  14289. ee.WriteMapEnd()
  14290. }
  14291. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  14292. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  14293. }
  14294. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  14295. if v == nil {
  14296. e.e.EncodeNil()
  14297. return
  14298. }
  14299. ee, esep := e.e, e.hh.hasElemSeparators()
  14300. ee.WriteMapStart(len(v))
  14301. if e.h.Canonical {
  14302. v2 := make([]bool, len(v))
  14303. var i int
  14304. for k, _ := range v {
  14305. v2[i] = bool(k)
  14306. i++
  14307. }
  14308. sort.Sort(boolSlice(v2))
  14309. if esep {
  14310. for _, k2 := range v2 {
  14311. ee.WriteMapElemKey()
  14312. ee.EncodeBool(bool(k2))
  14313. ee.WriteMapElemValue()
  14314. ee.EncodeInt(int64(v[bool(k2)]))
  14315. }
  14316. } else {
  14317. for _, k2 := range v2 {
  14318. ee.EncodeBool(bool(k2))
  14319. ee.EncodeInt(int64(v[bool(k2)]))
  14320. }
  14321. }
  14322. } else {
  14323. if esep {
  14324. for k2, v2 := range v {
  14325. ee.WriteMapElemKey()
  14326. ee.EncodeBool(k2)
  14327. ee.WriteMapElemValue()
  14328. ee.EncodeInt(int64(v2))
  14329. }
  14330. } else {
  14331. for k2, v2 := range v {
  14332. ee.EncodeBool(k2)
  14333. ee.EncodeInt(int64(v2))
  14334. }
  14335. }
  14336. }
  14337. ee.WriteMapEnd()
  14338. }
  14339. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  14340. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  14341. }
  14342. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  14343. if v == nil {
  14344. e.e.EncodeNil()
  14345. return
  14346. }
  14347. ee, esep := e.e, e.hh.hasElemSeparators()
  14348. ee.WriteMapStart(len(v))
  14349. if e.h.Canonical {
  14350. v2 := make([]bool, len(v))
  14351. var i int
  14352. for k, _ := range v {
  14353. v2[i] = bool(k)
  14354. i++
  14355. }
  14356. sort.Sort(boolSlice(v2))
  14357. if esep {
  14358. for _, k2 := range v2 {
  14359. ee.WriteMapElemKey()
  14360. ee.EncodeBool(bool(k2))
  14361. ee.WriteMapElemValue()
  14362. ee.EncodeInt(int64(v[bool(k2)]))
  14363. }
  14364. } else {
  14365. for _, k2 := range v2 {
  14366. ee.EncodeBool(bool(k2))
  14367. ee.EncodeInt(int64(v[bool(k2)]))
  14368. }
  14369. }
  14370. } else {
  14371. if esep {
  14372. for k2, v2 := range v {
  14373. ee.WriteMapElemKey()
  14374. ee.EncodeBool(k2)
  14375. ee.WriteMapElemValue()
  14376. ee.EncodeInt(int64(v2))
  14377. }
  14378. } else {
  14379. for k2, v2 := range v {
  14380. ee.EncodeBool(k2)
  14381. ee.EncodeInt(int64(v2))
  14382. }
  14383. }
  14384. }
  14385. ee.WriteMapEnd()
  14386. }
  14387. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  14388. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  14389. }
  14390. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  14391. if v == nil {
  14392. e.e.EncodeNil()
  14393. return
  14394. }
  14395. ee, esep := e.e, e.hh.hasElemSeparators()
  14396. ee.WriteMapStart(len(v))
  14397. if e.h.Canonical {
  14398. v2 := make([]bool, len(v))
  14399. var i int
  14400. for k, _ := range v {
  14401. v2[i] = bool(k)
  14402. i++
  14403. }
  14404. sort.Sort(boolSlice(v2))
  14405. if esep {
  14406. for _, k2 := range v2 {
  14407. ee.WriteMapElemKey()
  14408. ee.EncodeBool(bool(k2))
  14409. ee.WriteMapElemValue()
  14410. ee.EncodeInt(int64(v[bool(k2)]))
  14411. }
  14412. } else {
  14413. for _, k2 := range v2 {
  14414. ee.EncodeBool(bool(k2))
  14415. ee.EncodeInt(int64(v[bool(k2)]))
  14416. }
  14417. }
  14418. } else {
  14419. if esep {
  14420. for k2, v2 := range v {
  14421. ee.WriteMapElemKey()
  14422. ee.EncodeBool(k2)
  14423. ee.WriteMapElemValue()
  14424. ee.EncodeInt(int64(v2))
  14425. }
  14426. } else {
  14427. for k2, v2 := range v {
  14428. ee.EncodeBool(k2)
  14429. ee.EncodeInt(int64(v2))
  14430. }
  14431. }
  14432. }
  14433. ee.WriteMapEnd()
  14434. }
  14435. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  14436. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  14437. }
  14438. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  14439. if v == nil {
  14440. e.e.EncodeNil()
  14441. return
  14442. }
  14443. ee, esep := e.e, e.hh.hasElemSeparators()
  14444. ee.WriteMapStart(len(v))
  14445. if e.h.Canonical {
  14446. v2 := make([]bool, len(v))
  14447. var i int
  14448. for k, _ := range v {
  14449. v2[i] = bool(k)
  14450. i++
  14451. }
  14452. sort.Sort(boolSlice(v2))
  14453. if esep {
  14454. for _, k2 := range v2 {
  14455. ee.WriteMapElemKey()
  14456. ee.EncodeBool(bool(k2))
  14457. ee.WriteMapElemValue()
  14458. ee.EncodeInt(int64(v[bool(k2)]))
  14459. }
  14460. } else {
  14461. for _, k2 := range v2 {
  14462. ee.EncodeBool(bool(k2))
  14463. ee.EncodeInt(int64(v[bool(k2)]))
  14464. }
  14465. }
  14466. } else {
  14467. if esep {
  14468. for k2, v2 := range v {
  14469. ee.WriteMapElemKey()
  14470. ee.EncodeBool(k2)
  14471. ee.WriteMapElemValue()
  14472. ee.EncodeInt(int64(v2))
  14473. }
  14474. } else {
  14475. for k2, v2 := range v {
  14476. ee.EncodeBool(k2)
  14477. ee.EncodeInt(int64(v2))
  14478. }
  14479. }
  14480. }
  14481. ee.WriteMapEnd()
  14482. }
  14483. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  14484. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  14485. }
  14486. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  14487. if v == nil {
  14488. e.e.EncodeNil()
  14489. return
  14490. }
  14491. ee, esep := e.e, e.hh.hasElemSeparators()
  14492. ee.WriteMapStart(len(v))
  14493. if e.h.Canonical {
  14494. v2 := make([]bool, len(v))
  14495. var i int
  14496. for k, _ := range v {
  14497. v2[i] = bool(k)
  14498. i++
  14499. }
  14500. sort.Sort(boolSlice(v2))
  14501. if esep {
  14502. for _, k2 := range v2 {
  14503. ee.WriteMapElemKey()
  14504. ee.EncodeBool(bool(k2))
  14505. ee.WriteMapElemValue()
  14506. ee.EncodeFloat32(v[bool(k2)])
  14507. }
  14508. } else {
  14509. for _, k2 := range v2 {
  14510. ee.EncodeBool(bool(k2))
  14511. ee.EncodeFloat32(v[bool(k2)])
  14512. }
  14513. }
  14514. } else {
  14515. if esep {
  14516. for k2, v2 := range v {
  14517. ee.WriteMapElemKey()
  14518. ee.EncodeBool(k2)
  14519. ee.WriteMapElemValue()
  14520. ee.EncodeFloat32(v2)
  14521. }
  14522. } else {
  14523. for k2, v2 := range v {
  14524. ee.EncodeBool(k2)
  14525. ee.EncodeFloat32(v2)
  14526. }
  14527. }
  14528. }
  14529. ee.WriteMapEnd()
  14530. }
  14531. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  14532. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  14533. }
  14534. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
  14535. if v == nil {
  14536. e.e.EncodeNil()
  14537. return
  14538. }
  14539. ee, esep := e.e, e.hh.hasElemSeparators()
  14540. ee.WriteMapStart(len(v))
  14541. if e.h.Canonical {
  14542. v2 := make([]bool, len(v))
  14543. var i int
  14544. for k, _ := range v {
  14545. v2[i] = bool(k)
  14546. i++
  14547. }
  14548. sort.Sort(boolSlice(v2))
  14549. if esep {
  14550. for _, k2 := range v2 {
  14551. ee.WriteMapElemKey()
  14552. ee.EncodeBool(bool(k2))
  14553. ee.WriteMapElemValue()
  14554. ee.EncodeFloat64(v[bool(k2)])
  14555. }
  14556. } else {
  14557. for _, k2 := range v2 {
  14558. ee.EncodeBool(bool(k2))
  14559. ee.EncodeFloat64(v[bool(k2)])
  14560. }
  14561. }
  14562. } else {
  14563. if esep {
  14564. for k2, v2 := range v {
  14565. ee.WriteMapElemKey()
  14566. ee.EncodeBool(k2)
  14567. ee.WriteMapElemValue()
  14568. ee.EncodeFloat64(v2)
  14569. }
  14570. } else {
  14571. for k2, v2 := range v {
  14572. ee.EncodeBool(k2)
  14573. ee.EncodeFloat64(v2)
  14574. }
  14575. }
  14576. }
  14577. ee.WriteMapEnd()
  14578. }
  14579. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  14580. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  14581. }
  14582. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  14583. if v == nil {
  14584. e.e.EncodeNil()
  14585. return
  14586. }
  14587. ee, esep := e.e, e.hh.hasElemSeparators()
  14588. ee.WriteMapStart(len(v))
  14589. if e.h.Canonical {
  14590. v2 := make([]bool, len(v))
  14591. var i int
  14592. for k, _ := range v {
  14593. v2[i] = bool(k)
  14594. i++
  14595. }
  14596. sort.Sort(boolSlice(v2))
  14597. if esep {
  14598. for _, k2 := range v2 {
  14599. ee.WriteMapElemKey()
  14600. ee.EncodeBool(bool(k2))
  14601. ee.WriteMapElemValue()
  14602. ee.EncodeBool(v[bool(k2)])
  14603. }
  14604. } else {
  14605. for _, k2 := range v2 {
  14606. ee.EncodeBool(bool(k2))
  14607. ee.EncodeBool(v[bool(k2)])
  14608. }
  14609. }
  14610. } else {
  14611. if esep {
  14612. for k2, v2 := range v {
  14613. ee.WriteMapElemKey()
  14614. ee.EncodeBool(k2)
  14615. ee.WriteMapElemValue()
  14616. ee.EncodeBool(v2)
  14617. }
  14618. } else {
  14619. for k2, v2 := range v {
  14620. ee.EncodeBool(k2)
  14621. ee.EncodeBool(v2)
  14622. }
  14623. }
  14624. }
  14625. ee.WriteMapEnd()
  14626. }
  14627. // -- decode
  14628. // -- -- fast path type switch
  14629. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  14630. var changed bool
  14631. switch v := iv.(type) {
  14632. case []interface{}:
  14633. var v2 []interface{}
  14634. v2, changed = fastpathTV.DecSliceIntfV(v, false, d)
  14635. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14636. copy(v, v2)
  14637. }
  14638. case *[]interface{}:
  14639. var v2 []interface{}
  14640. v2, changed = fastpathTV.DecSliceIntfV(*v, true, d)
  14641. if changed {
  14642. *v = v2
  14643. }
  14644. case []string:
  14645. var v2 []string
  14646. v2, changed = fastpathTV.DecSliceStringV(v, false, d)
  14647. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14648. copy(v, v2)
  14649. }
  14650. case *[]string:
  14651. var v2 []string
  14652. v2, changed = fastpathTV.DecSliceStringV(*v, true, d)
  14653. if changed {
  14654. *v = v2
  14655. }
  14656. case []float32:
  14657. var v2 []float32
  14658. v2, changed = fastpathTV.DecSliceFloat32V(v, false, d)
  14659. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14660. copy(v, v2)
  14661. }
  14662. case *[]float32:
  14663. var v2 []float32
  14664. v2, changed = fastpathTV.DecSliceFloat32V(*v, true, d)
  14665. if changed {
  14666. *v = v2
  14667. }
  14668. case []float64:
  14669. var v2 []float64
  14670. v2, changed = fastpathTV.DecSliceFloat64V(v, false, d)
  14671. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14672. copy(v, v2)
  14673. }
  14674. case *[]float64:
  14675. var v2 []float64
  14676. v2, changed = fastpathTV.DecSliceFloat64V(*v, true, d)
  14677. if changed {
  14678. *v = v2
  14679. }
  14680. case []uint:
  14681. var v2 []uint
  14682. v2, changed = fastpathTV.DecSliceUintV(v, false, d)
  14683. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14684. copy(v, v2)
  14685. }
  14686. case *[]uint:
  14687. var v2 []uint
  14688. v2, changed = fastpathTV.DecSliceUintV(*v, true, d)
  14689. if changed {
  14690. *v = v2
  14691. }
  14692. case []uint16:
  14693. var v2 []uint16
  14694. v2, changed = fastpathTV.DecSliceUint16V(v, false, d)
  14695. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14696. copy(v, v2)
  14697. }
  14698. case *[]uint16:
  14699. var v2 []uint16
  14700. v2, changed = fastpathTV.DecSliceUint16V(*v, true, d)
  14701. if changed {
  14702. *v = v2
  14703. }
  14704. case []uint32:
  14705. var v2 []uint32
  14706. v2, changed = fastpathTV.DecSliceUint32V(v, false, d)
  14707. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14708. copy(v, v2)
  14709. }
  14710. case *[]uint32:
  14711. var v2 []uint32
  14712. v2, changed = fastpathTV.DecSliceUint32V(*v, true, d)
  14713. if changed {
  14714. *v = v2
  14715. }
  14716. case []uint64:
  14717. var v2 []uint64
  14718. v2, changed = fastpathTV.DecSliceUint64V(v, false, d)
  14719. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14720. copy(v, v2)
  14721. }
  14722. case *[]uint64:
  14723. var v2 []uint64
  14724. v2, changed = fastpathTV.DecSliceUint64V(*v, true, d)
  14725. if changed {
  14726. *v = v2
  14727. }
  14728. case []uintptr:
  14729. var v2 []uintptr
  14730. v2, changed = fastpathTV.DecSliceUintptrV(v, false, d)
  14731. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14732. copy(v, v2)
  14733. }
  14734. case *[]uintptr:
  14735. var v2 []uintptr
  14736. v2, changed = fastpathTV.DecSliceUintptrV(*v, true, d)
  14737. if changed {
  14738. *v = v2
  14739. }
  14740. case []int:
  14741. var v2 []int
  14742. v2, changed = fastpathTV.DecSliceIntV(v, false, d)
  14743. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14744. copy(v, v2)
  14745. }
  14746. case *[]int:
  14747. var v2 []int
  14748. v2, changed = fastpathTV.DecSliceIntV(*v, true, d)
  14749. if changed {
  14750. *v = v2
  14751. }
  14752. case []int8:
  14753. var v2 []int8
  14754. v2, changed = fastpathTV.DecSliceInt8V(v, false, d)
  14755. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14756. copy(v, v2)
  14757. }
  14758. case *[]int8:
  14759. var v2 []int8
  14760. v2, changed = fastpathTV.DecSliceInt8V(*v, true, d)
  14761. if changed {
  14762. *v = v2
  14763. }
  14764. case []int16:
  14765. var v2 []int16
  14766. v2, changed = fastpathTV.DecSliceInt16V(v, false, d)
  14767. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14768. copy(v, v2)
  14769. }
  14770. case *[]int16:
  14771. var v2 []int16
  14772. v2, changed = fastpathTV.DecSliceInt16V(*v, true, d)
  14773. if changed {
  14774. *v = v2
  14775. }
  14776. case []int32:
  14777. var v2 []int32
  14778. v2, changed = fastpathTV.DecSliceInt32V(v, false, d)
  14779. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14780. copy(v, v2)
  14781. }
  14782. case *[]int32:
  14783. var v2 []int32
  14784. v2, changed = fastpathTV.DecSliceInt32V(*v, true, d)
  14785. if changed {
  14786. *v = v2
  14787. }
  14788. case []int64:
  14789. var v2 []int64
  14790. v2, changed = fastpathTV.DecSliceInt64V(v, false, d)
  14791. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14792. copy(v, v2)
  14793. }
  14794. case *[]int64:
  14795. var v2 []int64
  14796. v2, changed = fastpathTV.DecSliceInt64V(*v, true, d)
  14797. if changed {
  14798. *v = v2
  14799. }
  14800. case []bool:
  14801. var v2 []bool
  14802. v2, changed = fastpathTV.DecSliceBoolV(v, false, d)
  14803. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14804. copy(v, v2)
  14805. }
  14806. case *[]bool:
  14807. var v2 []bool
  14808. v2, changed = fastpathTV.DecSliceBoolV(*v, true, d)
  14809. if changed {
  14810. *v = v2
  14811. }
  14812. case map[interface{}]interface{}:
  14813. fastpathTV.DecMapIntfIntfV(v, false, d)
  14814. case *map[interface{}]interface{}:
  14815. var v2 map[interface{}]interface{}
  14816. v2, changed = fastpathTV.DecMapIntfIntfV(*v, true, d)
  14817. if changed {
  14818. *v = v2
  14819. }
  14820. case map[interface{}]string:
  14821. fastpathTV.DecMapIntfStringV(v, false, d)
  14822. case *map[interface{}]string:
  14823. var v2 map[interface{}]string
  14824. v2, changed = fastpathTV.DecMapIntfStringV(*v, true, d)
  14825. if changed {
  14826. *v = v2
  14827. }
  14828. case map[interface{}]uint:
  14829. fastpathTV.DecMapIntfUintV(v, false, d)
  14830. case *map[interface{}]uint:
  14831. var v2 map[interface{}]uint
  14832. v2, changed = fastpathTV.DecMapIntfUintV(*v, true, d)
  14833. if changed {
  14834. *v = v2
  14835. }
  14836. case map[interface{}]uint8:
  14837. fastpathTV.DecMapIntfUint8V(v, false, d)
  14838. case *map[interface{}]uint8:
  14839. var v2 map[interface{}]uint8
  14840. v2, changed = fastpathTV.DecMapIntfUint8V(*v, true, d)
  14841. if changed {
  14842. *v = v2
  14843. }
  14844. case map[interface{}]uint16:
  14845. fastpathTV.DecMapIntfUint16V(v, false, d)
  14846. case *map[interface{}]uint16:
  14847. var v2 map[interface{}]uint16
  14848. v2, changed = fastpathTV.DecMapIntfUint16V(*v, true, d)
  14849. if changed {
  14850. *v = v2
  14851. }
  14852. case map[interface{}]uint32:
  14853. fastpathTV.DecMapIntfUint32V(v, false, d)
  14854. case *map[interface{}]uint32:
  14855. var v2 map[interface{}]uint32
  14856. v2, changed = fastpathTV.DecMapIntfUint32V(*v, true, d)
  14857. if changed {
  14858. *v = v2
  14859. }
  14860. case map[interface{}]uint64:
  14861. fastpathTV.DecMapIntfUint64V(v, false, d)
  14862. case *map[interface{}]uint64:
  14863. var v2 map[interface{}]uint64
  14864. v2, changed = fastpathTV.DecMapIntfUint64V(*v, true, d)
  14865. if changed {
  14866. *v = v2
  14867. }
  14868. case map[interface{}]uintptr:
  14869. fastpathTV.DecMapIntfUintptrV(v, false, d)
  14870. case *map[interface{}]uintptr:
  14871. var v2 map[interface{}]uintptr
  14872. v2, changed = fastpathTV.DecMapIntfUintptrV(*v, true, d)
  14873. if changed {
  14874. *v = v2
  14875. }
  14876. case map[interface{}]int:
  14877. fastpathTV.DecMapIntfIntV(v, false, d)
  14878. case *map[interface{}]int:
  14879. var v2 map[interface{}]int
  14880. v2, changed = fastpathTV.DecMapIntfIntV(*v, true, d)
  14881. if changed {
  14882. *v = v2
  14883. }
  14884. case map[interface{}]int8:
  14885. fastpathTV.DecMapIntfInt8V(v, false, d)
  14886. case *map[interface{}]int8:
  14887. var v2 map[interface{}]int8
  14888. v2, changed = fastpathTV.DecMapIntfInt8V(*v, true, d)
  14889. if changed {
  14890. *v = v2
  14891. }
  14892. case map[interface{}]int16:
  14893. fastpathTV.DecMapIntfInt16V(v, false, d)
  14894. case *map[interface{}]int16:
  14895. var v2 map[interface{}]int16
  14896. v2, changed = fastpathTV.DecMapIntfInt16V(*v, true, d)
  14897. if changed {
  14898. *v = v2
  14899. }
  14900. case map[interface{}]int32:
  14901. fastpathTV.DecMapIntfInt32V(v, false, d)
  14902. case *map[interface{}]int32:
  14903. var v2 map[interface{}]int32
  14904. v2, changed = fastpathTV.DecMapIntfInt32V(*v, true, d)
  14905. if changed {
  14906. *v = v2
  14907. }
  14908. case map[interface{}]int64:
  14909. fastpathTV.DecMapIntfInt64V(v, false, d)
  14910. case *map[interface{}]int64:
  14911. var v2 map[interface{}]int64
  14912. v2, changed = fastpathTV.DecMapIntfInt64V(*v, true, d)
  14913. if changed {
  14914. *v = v2
  14915. }
  14916. case map[interface{}]float32:
  14917. fastpathTV.DecMapIntfFloat32V(v, false, d)
  14918. case *map[interface{}]float32:
  14919. var v2 map[interface{}]float32
  14920. v2, changed = fastpathTV.DecMapIntfFloat32V(*v, true, d)
  14921. if changed {
  14922. *v = v2
  14923. }
  14924. case map[interface{}]float64:
  14925. fastpathTV.DecMapIntfFloat64V(v, false, d)
  14926. case *map[interface{}]float64:
  14927. var v2 map[interface{}]float64
  14928. v2, changed = fastpathTV.DecMapIntfFloat64V(*v, true, d)
  14929. if changed {
  14930. *v = v2
  14931. }
  14932. case map[interface{}]bool:
  14933. fastpathTV.DecMapIntfBoolV(v, false, d)
  14934. case *map[interface{}]bool:
  14935. var v2 map[interface{}]bool
  14936. v2, changed = fastpathTV.DecMapIntfBoolV(*v, true, d)
  14937. if changed {
  14938. *v = v2
  14939. }
  14940. case map[string]interface{}:
  14941. fastpathTV.DecMapStringIntfV(v, false, d)
  14942. case *map[string]interface{}:
  14943. var v2 map[string]interface{}
  14944. v2, changed = fastpathTV.DecMapStringIntfV(*v, true, d)
  14945. if changed {
  14946. *v = v2
  14947. }
  14948. case map[string]string:
  14949. fastpathTV.DecMapStringStringV(v, false, d)
  14950. case *map[string]string:
  14951. var v2 map[string]string
  14952. v2, changed = fastpathTV.DecMapStringStringV(*v, true, d)
  14953. if changed {
  14954. *v = v2
  14955. }
  14956. case map[string]uint:
  14957. fastpathTV.DecMapStringUintV(v, false, d)
  14958. case *map[string]uint:
  14959. var v2 map[string]uint
  14960. v2, changed = fastpathTV.DecMapStringUintV(*v, true, d)
  14961. if changed {
  14962. *v = v2
  14963. }
  14964. case map[string]uint8:
  14965. fastpathTV.DecMapStringUint8V(v, false, d)
  14966. case *map[string]uint8:
  14967. var v2 map[string]uint8
  14968. v2, changed = fastpathTV.DecMapStringUint8V(*v, true, d)
  14969. if changed {
  14970. *v = v2
  14971. }
  14972. case map[string]uint16:
  14973. fastpathTV.DecMapStringUint16V(v, false, d)
  14974. case *map[string]uint16:
  14975. var v2 map[string]uint16
  14976. v2, changed = fastpathTV.DecMapStringUint16V(*v, true, d)
  14977. if changed {
  14978. *v = v2
  14979. }
  14980. case map[string]uint32:
  14981. fastpathTV.DecMapStringUint32V(v, false, d)
  14982. case *map[string]uint32:
  14983. var v2 map[string]uint32
  14984. v2, changed = fastpathTV.DecMapStringUint32V(*v, true, d)
  14985. if changed {
  14986. *v = v2
  14987. }
  14988. case map[string]uint64:
  14989. fastpathTV.DecMapStringUint64V(v, false, d)
  14990. case *map[string]uint64:
  14991. var v2 map[string]uint64
  14992. v2, changed = fastpathTV.DecMapStringUint64V(*v, true, d)
  14993. if changed {
  14994. *v = v2
  14995. }
  14996. case map[string]uintptr:
  14997. fastpathTV.DecMapStringUintptrV(v, false, d)
  14998. case *map[string]uintptr:
  14999. var v2 map[string]uintptr
  15000. v2, changed = fastpathTV.DecMapStringUintptrV(*v, true, d)
  15001. if changed {
  15002. *v = v2
  15003. }
  15004. case map[string]int:
  15005. fastpathTV.DecMapStringIntV(v, false, d)
  15006. case *map[string]int:
  15007. var v2 map[string]int
  15008. v2, changed = fastpathTV.DecMapStringIntV(*v, true, d)
  15009. if changed {
  15010. *v = v2
  15011. }
  15012. case map[string]int8:
  15013. fastpathTV.DecMapStringInt8V(v, false, d)
  15014. case *map[string]int8:
  15015. var v2 map[string]int8
  15016. v2, changed = fastpathTV.DecMapStringInt8V(*v, true, d)
  15017. if changed {
  15018. *v = v2
  15019. }
  15020. case map[string]int16:
  15021. fastpathTV.DecMapStringInt16V(v, false, d)
  15022. case *map[string]int16:
  15023. var v2 map[string]int16
  15024. v2, changed = fastpathTV.DecMapStringInt16V(*v, true, d)
  15025. if changed {
  15026. *v = v2
  15027. }
  15028. case map[string]int32:
  15029. fastpathTV.DecMapStringInt32V(v, false, d)
  15030. case *map[string]int32:
  15031. var v2 map[string]int32
  15032. v2, changed = fastpathTV.DecMapStringInt32V(*v, true, d)
  15033. if changed {
  15034. *v = v2
  15035. }
  15036. case map[string]int64:
  15037. fastpathTV.DecMapStringInt64V(v, false, d)
  15038. case *map[string]int64:
  15039. var v2 map[string]int64
  15040. v2, changed = fastpathTV.DecMapStringInt64V(*v, true, d)
  15041. if changed {
  15042. *v = v2
  15043. }
  15044. case map[string]float32:
  15045. fastpathTV.DecMapStringFloat32V(v, false, d)
  15046. case *map[string]float32:
  15047. var v2 map[string]float32
  15048. v2, changed = fastpathTV.DecMapStringFloat32V(*v, true, d)
  15049. if changed {
  15050. *v = v2
  15051. }
  15052. case map[string]float64:
  15053. fastpathTV.DecMapStringFloat64V(v, false, d)
  15054. case *map[string]float64:
  15055. var v2 map[string]float64
  15056. v2, changed = fastpathTV.DecMapStringFloat64V(*v, true, d)
  15057. if changed {
  15058. *v = v2
  15059. }
  15060. case map[string]bool:
  15061. fastpathTV.DecMapStringBoolV(v, false, d)
  15062. case *map[string]bool:
  15063. var v2 map[string]bool
  15064. v2, changed = fastpathTV.DecMapStringBoolV(*v, true, d)
  15065. if changed {
  15066. *v = v2
  15067. }
  15068. case map[float32]interface{}:
  15069. fastpathTV.DecMapFloat32IntfV(v, false, d)
  15070. case *map[float32]interface{}:
  15071. var v2 map[float32]interface{}
  15072. v2, changed = fastpathTV.DecMapFloat32IntfV(*v, true, d)
  15073. if changed {
  15074. *v = v2
  15075. }
  15076. case map[float32]string:
  15077. fastpathTV.DecMapFloat32StringV(v, false, d)
  15078. case *map[float32]string:
  15079. var v2 map[float32]string
  15080. v2, changed = fastpathTV.DecMapFloat32StringV(*v, true, d)
  15081. if changed {
  15082. *v = v2
  15083. }
  15084. case map[float32]uint:
  15085. fastpathTV.DecMapFloat32UintV(v, false, d)
  15086. case *map[float32]uint:
  15087. var v2 map[float32]uint
  15088. v2, changed = fastpathTV.DecMapFloat32UintV(*v, true, d)
  15089. if changed {
  15090. *v = v2
  15091. }
  15092. case map[float32]uint8:
  15093. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  15094. case *map[float32]uint8:
  15095. var v2 map[float32]uint8
  15096. v2, changed = fastpathTV.DecMapFloat32Uint8V(*v, true, d)
  15097. if changed {
  15098. *v = v2
  15099. }
  15100. case map[float32]uint16:
  15101. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  15102. case *map[float32]uint16:
  15103. var v2 map[float32]uint16
  15104. v2, changed = fastpathTV.DecMapFloat32Uint16V(*v, true, d)
  15105. if changed {
  15106. *v = v2
  15107. }
  15108. case map[float32]uint32:
  15109. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  15110. case *map[float32]uint32:
  15111. var v2 map[float32]uint32
  15112. v2, changed = fastpathTV.DecMapFloat32Uint32V(*v, true, d)
  15113. if changed {
  15114. *v = v2
  15115. }
  15116. case map[float32]uint64:
  15117. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  15118. case *map[float32]uint64:
  15119. var v2 map[float32]uint64
  15120. v2, changed = fastpathTV.DecMapFloat32Uint64V(*v, true, d)
  15121. if changed {
  15122. *v = v2
  15123. }
  15124. case map[float32]uintptr:
  15125. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  15126. case *map[float32]uintptr:
  15127. var v2 map[float32]uintptr
  15128. v2, changed = fastpathTV.DecMapFloat32UintptrV(*v, true, d)
  15129. if changed {
  15130. *v = v2
  15131. }
  15132. case map[float32]int:
  15133. fastpathTV.DecMapFloat32IntV(v, false, d)
  15134. case *map[float32]int:
  15135. var v2 map[float32]int
  15136. v2, changed = fastpathTV.DecMapFloat32IntV(*v, true, d)
  15137. if changed {
  15138. *v = v2
  15139. }
  15140. case map[float32]int8:
  15141. fastpathTV.DecMapFloat32Int8V(v, false, d)
  15142. case *map[float32]int8:
  15143. var v2 map[float32]int8
  15144. v2, changed = fastpathTV.DecMapFloat32Int8V(*v, true, d)
  15145. if changed {
  15146. *v = v2
  15147. }
  15148. case map[float32]int16:
  15149. fastpathTV.DecMapFloat32Int16V(v, false, d)
  15150. case *map[float32]int16:
  15151. var v2 map[float32]int16
  15152. v2, changed = fastpathTV.DecMapFloat32Int16V(*v, true, d)
  15153. if changed {
  15154. *v = v2
  15155. }
  15156. case map[float32]int32:
  15157. fastpathTV.DecMapFloat32Int32V(v, false, d)
  15158. case *map[float32]int32:
  15159. var v2 map[float32]int32
  15160. v2, changed = fastpathTV.DecMapFloat32Int32V(*v, true, d)
  15161. if changed {
  15162. *v = v2
  15163. }
  15164. case map[float32]int64:
  15165. fastpathTV.DecMapFloat32Int64V(v, false, d)
  15166. case *map[float32]int64:
  15167. var v2 map[float32]int64
  15168. v2, changed = fastpathTV.DecMapFloat32Int64V(*v, true, d)
  15169. if changed {
  15170. *v = v2
  15171. }
  15172. case map[float32]float32:
  15173. fastpathTV.DecMapFloat32Float32V(v, false, d)
  15174. case *map[float32]float32:
  15175. var v2 map[float32]float32
  15176. v2, changed = fastpathTV.DecMapFloat32Float32V(*v, true, d)
  15177. if changed {
  15178. *v = v2
  15179. }
  15180. case map[float32]float64:
  15181. fastpathTV.DecMapFloat32Float64V(v, false, d)
  15182. case *map[float32]float64:
  15183. var v2 map[float32]float64
  15184. v2, changed = fastpathTV.DecMapFloat32Float64V(*v, true, d)
  15185. if changed {
  15186. *v = v2
  15187. }
  15188. case map[float32]bool:
  15189. fastpathTV.DecMapFloat32BoolV(v, false, d)
  15190. case *map[float32]bool:
  15191. var v2 map[float32]bool
  15192. v2, changed = fastpathTV.DecMapFloat32BoolV(*v, true, d)
  15193. if changed {
  15194. *v = v2
  15195. }
  15196. case map[float64]interface{}:
  15197. fastpathTV.DecMapFloat64IntfV(v, false, d)
  15198. case *map[float64]interface{}:
  15199. var v2 map[float64]interface{}
  15200. v2, changed = fastpathTV.DecMapFloat64IntfV(*v, true, d)
  15201. if changed {
  15202. *v = v2
  15203. }
  15204. case map[float64]string:
  15205. fastpathTV.DecMapFloat64StringV(v, false, d)
  15206. case *map[float64]string:
  15207. var v2 map[float64]string
  15208. v2, changed = fastpathTV.DecMapFloat64StringV(*v, true, d)
  15209. if changed {
  15210. *v = v2
  15211. }
  15212. case map[float64]uint:
  15213. fastpathTV.DecMapFloat64UintV(v, false, d)
  15214. case *map[float64]uint:
  15215. var v2 map[float64]uint
  15216. v2, changed = fastpathTV.DecMapFloat64UintV(*v, true, d)
  15217. if changed {
  15218. *v = v2
  15219. }
  15220. case map[float64]uint8:
  15221. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  15222. case *map[float64]uint8:
  15223. var v2 map[float64]uint8
  15224. v2, changed = fastpathTV.DecMapFloat64Uint8V(*v, true, d)
  15225. if changed {
  15226. *v = v2
  15227. }
  15228. case map[float64]uint16:
  15229. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  15230. case *map[float64]uint16:
  15231. var v2 map[float64]uint16
  15232. v2, changed = fastpathTV.DecMapFloat64Uint16V(*v, true, d)
  15233. if changed {
  15234. *v = v2
  15235. }
  15236. case map[float64]uint32:
  15237. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  15238. case *map[float64]uint32:
  15239. var v2 map[float64]uint32
  15240. v2, changed = fastpathTV.DecMapFloat64Uint32V(*v, true, d)
  15241. if changed {
  15242. *v = v2
  15243. }
  15244. case map[float64]uint64:
  15245. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  15246. case *map[float64]uint64:
  15247. var v2 map[float64]uint64
  15248. v2, changed = fastpathTV.DecMapFloat64Uint64V(*v, true, d)
  15249. if changed {
  15250. *v = v2
  15251. }
  15252. case map[float64]uintptr:
  15253. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  15254. case *map[float64]uintptr:
  15255. var v2 map[float64]uintptr
  15256. v2, changed = fastpathTV.DecMapFloat64UintptrV(*v, true, d)
  15257. if changed {
  15258. *v = v2
  15259. }
  15260. case map[float64]int:
  15261. fastpathTV.DecMapFloat64IntV(v, false, d)
  15262. case *map[float64]int:
  15263. var v2 map[float64]int
  15264. v2, changed = fastpathTV.DecMapFloat64IntV(*v, true, d)
  15265. if changed {
  15266. *v = v2
  15267. }
  15268. case map[float64]int8:
  15269. fastpathTV.DecMapFloat64Int8V(v, false, d)
  15270. case *map[float64]int8:
  15271. var v2 map[float64]int8
  15272. v2, changed = fastpathTV.DecMapFloat64Int8V(*v, true, d)
  15273. if changed {
  15274. *v = v2
  15275. }
  15276. case map[float64]int16:
  15277. fastpathTV.DecMapFloat64Int16V(v, false, d)
  15278. case *map[float64]int16:
  15279. var v2 map[float64]int16
  15280. v2, changed = fastpathTV.DecMapFloat64Int16V(*v, true, d)
  15281. if changed {
  15282. *v = v2
  15283. }
  15284. case map[float64]int32:
  15285. fastpathTV.DecMapFloat64Int32V(v, false, d)
  15286. case *map[float64]int32:
  15287. var v2 map[float64]int32
  15288. v2, changed = fastpathTV.DecMapFloat64Int32V(*v, true, d)
  15289. if changed {
  15290. *v = v2
  15291. }
  15292. case map[float64]int64:
  15293. fastpathTV.DecMapFloat64Int64V(v, false, d)
  15294. case *map[float64]int64:
  15295. var v2 map[float64]int64
  15296. v2, changed = fastpathTV.DecMapFloat64Int64V(*v, true, d)
  15297. if changed {
  15298. *v = v2
  15299. }
  15300. case map[float64]float32:
  15301. fastpathTV.DecMapFloat64Float32V(v, false, d)
  15302. case *map[float64]float32:
  15303. var v2 map[float64]float32
  15304. v2, changed = fastpathTV.DecMapFloat64Float32V(*v, true, d)
  15305. if changed {
  15306. *v = v2
  15307. }
  15308. case map[float64]float64:
  15309. fastpathTV.DecMapFloat64Float64V(v, false, d)
  15310. case *map[float64]float64:
  15311. var v2 map[float64]float64
  15312. v2, changed = fastpathTV.DecMapFloat64Float64V(*v, true, d)
  15313. if changed {
  15314. *v = v2
  15315. }
  15316. case map[float64]bool:
  15317. fastpathTV.DecMapFloat64BoolV(v, false, d)
  15318. case *map[float64]bool:
  15319. var v2 map[float64]bool
  15320. v2, changed = fastpathTV.DecMapFloat64BoolV(*v, true, d)
  15321. if changed {
  15322. *v = v2
  15323. }
  15324. case map[uint]interface{}:
  15325. fastpathTV.DecMapUintIntfV(v, false, d)
  15326. case *map[uint]interface{}:
  15327. var v2 map[uint]interface{}
  15328. v2, changed = fastpathTV.DecMapUintIntfV(*v, true, d)
  15329. if changed {
  15330. *v = v2
  15331. }
  15332. case map[uint]string:
  15333. fastpathTV.DecMapUintStringV(v, false, d)
  15334. case *map[uint]string:
  15335. var v2 map[uint]string
  15336. v2, changed = fastpathTV.DecMapUintStringV(*v, true, d)
  15337. if changed {
  15338. *v = v2
  15339. }
  15340. case map[uint]uint:
  15341. fastpathTV.DecMapUintUintV(v, false, d)
  15342. case *map[uint]uint:
  15343. var v2 map[uint]uint
  15344. v2, changed = fastpathTV.DecMapUintUintV(*v, true, d)
  15345. if changed {
  15346. *v = v2
  15347. }
  15348. case map[uint]uint8:
  15349. fastpathTV.DecMapUintUint8V(v, false, d)
  15350. case *map[uint]uint8:
  15351. var v2 map[uint]uint8
  15352. v2, changed = fastpathTV.DecMapUintUint8V(*v, true, d)
  15353. if changed {
  15354. *v = v2
  15355. }
  15356. case map[uint]uint16:
  15357. fastpathTV.DecMapUintUint16V(v, false, d)
  15358. case *map[uint]uint16:
  15359. var v2 map[uint]uint16
  15360. v2, changed = fastpathTV.DecMapUintUint16V(*v, true, d)
  15361. if changed {
  15362. *v = v2
  15363. }
  15364. case map[uint]uint32:
  15365. fastpathTV.DecMapUintUint32V(v, false, d)
  15366. case *map[uint]uint32:
  15367. var v2 map[uint]uint32
  15368. v2, changed = fastpathTV.DecMapUintUint32V(*v, true, d)
  15369. if changed {
  15370. *v = v2
  15371. }
  15372. case map[uint]uint64:
  15373. fastpathTV.DecMapUintUint64V(v, false, d)
  15374. case *map[uint]uint64:
  15375. var v2 map[uint]uint64
  15376. v2, changed = fastpathTV.DecMapUintUint64V(*v, true, d)
  15377. if changed {
  15378. *v = v2
  15379. }
  15380. case map[uint]uintptr:
  15381. fastpathTV.DecMapUintUintptrV(v, false, d)
  15382. case *map[uint]uintptr:
  15383. var v2 map[uint]uintptr
  15384. v2, changed = fastpathTV.DecMapUintUintptrV(*v, true, d)
  15385. if changed {
  15386. *v = v2
  15387. }
  15388. case map[uint]int:
  15389. fastpathTV.DecMapUintIntV(v, false, d)
  15390. case *map[uint]int:
  15391. var v2 map[uint]int
  15392. v2, changed = fastpathTV.DecMapUintIntV(*v, true, d)
  15393. if changed {
  15394. *v = v2
  15395. }
  15396. case map[uint]int8:
  15397. fastpathTV.DecMapUintInt8V(v, false, d)
  15398. case *map[uint]int8:
  15399. var v2 map[uint]int8
  15400. v2, changed = fastpathTV.DecMapUintInt8V(*v, true, d)
  15401. if changed {
  15402. *v = v2
  15403. }
  15404. case map[uint]int16:
  15405. fastpathTV.DecMapUintInt16V(v, false, d)
  15406. case *map[uint]int16:
  15407. var v2 map[uint]int16
  15408. v2, changed = fastpathTV.DecMapUintInt16V(*v, true, d)
  15409. if changed {
  15410. *v = v2
  15411. }
  15412. case map[uint]int32:
  15413. fastpathTV.DecMapUintInt32V(v, false, d)
  15414. case *map[uint]int32:
  15415. var v2 map[uint]int32
  15416. v2, changed = fastpathTV.DecMapUintInt32V(*v, true, d)
  15417. if changed {
  15418. *v = v2
  15419. }
  15420. case map[uint]int64:
  15421. fastpathTV.DecMapUintInt64V(v, false, d)
  15422. case *map[uint]int64:
  15423. var v2 map[uint]int64
  15424. v2, changed = fastpathTV.DecMapUintInt64V(*v, true, d)
  15425. if changed {
  15426. *v = v2
  15427. }
  15428. case map[uint]float32:
  15429. fastpathTV.DecMapUintFloat32V(v, false, d)
  15430. case *map[uint]float32:
  15431. var v2 map[uint]float32
  15432. v2, changed = fastpathTV.DecMapUintFloat32V(*v, true, d)
  15433. if changed {
  15434. *v = v2
  15435. }
  15436. case map[uint]float64:
  15437. fastpathTV.DecMapUintFloat64V(v, false, d)
  15438. case *map[uint]float64:
  15439. var v2 map[uint]float64
  15440. v2, changed = fastpathTV.DecMapUintFloat64V(*v, true, d)
  15441. if changed {
  15442. *v = v2
  15443. }
  15444. case map[uint]bool:
  15445. fastpathTV.DecMapUintBoolV(v, false, d)
  15446. case *map[uint]bool:
  15447. var v2 map[uint]bool
  15448. v2, changed = fastpathTV.DecMapUintBoolV(*v, true, d)
  15449. if changed {
  15450. *v = v2
  15451. }
  15452. case map[uint8]interface{}:
  15453. fastpathTV.DecMapUint8IntfV(v, false, d)
  15454. case *map[uint8]interface{}:
  15455. var v2 map[uint8]interface{}
  15456. v2, changed = fastpathTV.DecMapUint8IntfV(*v, true, d)
  15457. if changed {
  15458. *v = v2
  15459. }
  15460. case map[uint8]string:
  15461. fastpathTV.DecMapUint8StringV(v, false, d)
  15462. case *map[uint8]string:
  15463. var v2 map[uint8]string
  15464. v2, changed = fastpathTV.DecMapUint8StringV(*v, true, d)
  15465. if changed {
  15466. *v = v2
  15467. }
  15468. case map[uint8]uint:
  15469. fastpathTV.DecMapUint8UintV(v, false, d)
  15470. case *map[uint8]uint:
  15471. var v2 map[uint8]uint
  15472. v2, changed = fastpathTV.DecMapUint8UintV(*v, true, d)
  15473. if changed {
  15474. *v = v2
  15475. }
  15476. case map[uint8]uint8:
  15477. fastpathTV.DecMapUint8Uint8V(v, false, d)
  15478. case *map[uint8]uint8:
  15479. var v2 map[uint8]uint8
  15480. v2, changed = fastpathTV.DecMapUint8Uint8V(*v, true, d)
  15481. if changed {
  15482. *v = v2
  15483. }
  15484. case map[uint8]uint16:
  15485. fastpathTV.DecMapUint8Uint16V(v, false, d)
  15486. case *map[uint8]uint16:
  15487. var v2 map[uint8]uint16
  15488. v2, changed = fastpathTV.DecMapUint8Uint16V(*v, true, d)
  15489. if changed {
  15490. *v = v2
  15491. }
  15492. case map[uint8]uint32:
  15493. fastpathTV.DecMapUint8Uint32V(v, false, d)
  15494. case *map[uint8]uint32:
  15495. var v2 map[uint8]uint32
  15496. v2, changed = fastpathTV.DecMapUint8Uint32V(*v, true, d)
  15497. if changed {
  15498. *v = v2
  15499. }
  15500. case map[uint8]uint64:
  15501. fastpathTV.DecMapUint8Uint64V(v, false, d)
  15502. case *map[uint8]uint64:
  15503. var v2 map[uint8]uint64
  15504. v2, changed = fastpathTV.DecMapUint8Uint64V(*v, true, d)
  15505. if changed {
  15506. *v = v2
  15507. }
  15508. case map[uint8]uintptr:
  15509. fastpathTV.DecMapUint8UintptrV(v, false, d)
  15510. case *map[uint8]uintptr:
  15511. var v2 map[uint8]uintptr
  15512. v2, changed = fastpathTV.DecMapUint8UintptrV(*v, true, d)
  15513. if changed {
  15514. *v = v2
  15515. }
  15516. case map[uint8]int:
  15517. fastpathTV.DecMapUint8IntV(v, false, d)
  15518. case *map[uint8]int:
  15519. var v2 map[uint8]int
  15520. v2, changed = fastpathTV.DecMapUint8IntV(*v, true, d)
  15521. if changed {
  15522. *v = v2
  15523. }
  15524. case map[uint8]int8:
  15525. fastpathTV.DecMapUint8Int8V(v, false, d)
  15526. case *map[uint8]int8:
  15527. var v2 map[uint8]int8
  15528. v2, changed = fastpathTV.DecMapUint8Int8V(*v, true, d)
  15529. if changed {
  15530. *v = v2
  15531. }
  15532. case map[uint8]int16:
  15533. fastpathTV.DecMapUint8Int16V(v, false, d)
  15534. case *map[uint8]int16:
  15535. var v2 map[uint8]int16
  15536. v2, changed = fastpathTV.DecMapUint8Int16V(*v, true, d)
  15537. if changed {
  15538. *v = v2
  15539. }
  15540. case map[uint8]int32:
  15541. fastpathTV.DecMapUint8Int32V(v, false, d)
  15542. case *map[uint8]int32:
  15543. var v2 map[uint8]int32
  15544. v2, changed = fastpathTV.DecMapUint8Int32V(*v, true, d)
  15545. if changed {
  15546. *v = v2
  15547. }
  15548. case map[uint8]int64:
  15549. fastpathTV.DecMapUint8Int64V(v, false, d)
  15550. case *map[uint8]int64:
  15551. var v2 map[uint8]int64
  15552. v2, changed = fastpathTV.DecMapUint8Int64V(*v, true, d)
  15553. if changed {
  15554. *v = v2
  15555. }
  15556. case map[uint8]float32:
  15557. fastpathTV.DecMapUint8Float32V(v, false, d)
  15558. case *map[uint8]float32:
  15559. var v2 map[uint8]float32
  15560. v2, changed = fastpathTV.DecMapUint8Float32V(*v, true, d)
  15561. if changed {
  15562. *v = v2
  15563. }
  15564. case map[uint8]float64:
  15565. fastpathTV.DecMapUint8Float64V(v, false, d)
  15566. case *map[uint8]float64:
  15567. var v2 map[uint8]float64
  15568. v2, changed = fastpathTV.DecMapUint8Float64V(*v, true, d)
  15569. if changed {
  15570. *v = v2
  15571. }
  15572. case map[uint8]bool:
  15573. fastpathTV.DecMapUint8BoolV(v, false, d)
  15574. case *map[uint8]bool:
  15575. var v2 map[uint8]bool
  15576. v2, changed = fastpathTV.DecMapUint8BoolV(*v, true, d)
  15577. if changed {
  15578. *v = v2
  15579. }
  15580. case map[uint16]interface{}:
  15581. fastpathTV.DecMapUint16IntfV(v, false, d)
  15582. case *map[uint16]interface{}:
  15583. var v2 map[uint16]interface{}
  15584. v2, changed = fastpathTV.DecMapUint16IntfV(*v, true, d)
  15585. if changed {
  15586. *v = v2
  15587. }
  15588. case map[uint16]string:
  15589. fastpathTV.DecMapUint16StringV(v, false, d)
  15590. case *map[uint16]string:
  15591. var v2 map[uint16]string
  15592. v2, changed = fastpathTV.DecMapUint16StringV(*v, true, d)
  15593. if changed {
  15594. *v = v2
  15595. }
  15596. case map[uint16]uint:
  15597. fastpathTV.DecMapUint16UintV(v, false, d)
  15598. case *map[uint16]uint:
  15599. var v2 map[uint16]uint
  15600. v2, changed = fastpathTV.DecMapUint16UintV(*v, true, d)
  15601. if changed {
  15602. *v = v2
  15603. }
  15604. case map[uint16]uint8:
  15605. fastpathTV.DecMapUint16Uint8V(v, false, d)
  15606. case *map[uint16]uint8:
  15607. var v2 map[uint16]uint8
  15608. v2, changed = fastpathTV.DecMapUint16Uint8V(*v, true, d)
  15609. if changed {
  15610. *v = v2
  15611. }
  15612. case map[uint16]uint16:
  15613. fastpathTV.DecMapUint16Uint16V(v, false, d)
  15614. case *map[uint16]uint16:
  15615. var v2 map[uint16]uint16
  15616. v2, changed = fastpathTV.DecMapUint16Uint16V(*v, true, d)
  15617. if changed {
  15618. *v = v2
  15619. }
  15620. case map[uint16]uint32:
  15621. fastpathTV.DecMapUint16Uint32V(v, false, d)
  15622. case *map[uint16]uint32:
  15623. var v2 map[uint16]uint32
  15624. v2, changed = fastpathTV.DecMapUint16Uint32V(*v, true, d)
  15625. if changed {
  15626. *v = v2
  15627. }
  15628. case map[uint16]uint64:
  15629. fastpathTV.DecMapUint16Uint64V(v, false, d)
  15630. case *map[uint16]uint64:
  15631. var v2 map[uint16]uint64
  15632. v2, changed = fastpathTV.DecMapUint16Uint64V(*v, true, d)
  15633. if changed {
  15634. *v = v2
  15635. }
  15636. case map[uint16]uintptr:
  15637. fastpathTV.DecMapUint16UintptrV(v, false, d)
  15638. case *map[uint16]uintptr:
  15639. var v2 map[uint16]uintptr
  15640. v2, changed = fastpathTV.DecMapUint16UintptrV(*v, true, d)
  15641. if changed {
  15642. *v = v2
  15643. }
  15644. case map[uint16]int:
  15645. fastpathTV.DecMapUint16IntV(v, false, d)
  15646. case *map[uint16]int:
  15647. var v2 map[uint16]int
  15648. v2, changed = fastpathTV.DecMapUint16IntV(*v, true, d)
  15649. if changed {
  15650. *v = v2
  15651. }
  15652. case map[uint16]int8:
  15653. fastpathTV.DecMapUint16Int8V(v, false, d)
  15654. case *map[uint16]int8:
  15655. var v2 map[uint16]int8
  15656. v2, changed = fastpathTV.DecMapUint16Int8V(*v, true, d)
  15657. if changed {
  15658. *v = v2
  15659. }
  15660. case map[uint16]int16:
  15661. fastpathTV.DecMapUint16Int16V(v, false, d)
  15662. case *map[uint16]int16:
  15663. var v2 map[uint16]int16
  15664. v2, changed = fastpathTV.DecMapUint16Int16V(*v, true, d)
  15665. if changed {
  15666. *v = v2
  15667. }
  15668. case map[uint16]int32:
  15669. fastpathTV.DecMapUint16Int32V(v, false, d)
  15670. case *map[uint16]int32:
  15671. var v2 map[uint16]int32
  15672. v2, changed = fastpathTV.DecMapUint16Int32V(*v, true, d)
  15673. if changed {
  15674. *v = v2
  15675. }
  15676. case map[uint16]int64:
  15677. fastpathTV.DecMapUint16Int64V(v, false, d)
  15678. case *map[uint16]int64:
  15679. var v2 map[uint16]int64
  15680. v2, changed = fastpathTV.DecMapUint16Int64V(*v, true, d)
  15681. if changed {
  15682. *v = v2
  15683. }
  15684. case map[uint16]float32:
  15685. fastpathTV.DecMapUint16Float32V(v, false, d)
  15686. case *map[uint16]float32:
  15687. var v2 map[uint16]float32
  15688. v2, changed = fastpathTV.DecMapUint16Float32V(*v, true, d)
  15689. if changed {
  15690. *v = v2
  15691. }
  15692. case map[uint16]float64:
  15693. fastpathTV.DecMapUint16Float64V(v, false, d)
  15694. case *map[uint16]float64:
  15695. var v2 map[uint16]float64
  15696. v2, changed = fastpathTV.DecMapUint16Float64V(*v, true, d)
  15697. if changed {
  15698. *v = v2
  15699. }
  15700. case map[uint16]bool:
  15701. fastpathTV.DecMapUint16BoolV(v, false, d)
  15702. case *map[uint16]bool:
  15703. var v2 map[uint16]bool
  15704. v2, changed = fastpathTV.DecMapUint16BoolV(*v, true, d)
  15705. if changed {
  15706. *v = v2
  15707. }
  15708. case map[uint32]interface{}:
  15709. fastpathTV.DecMapUint32IntfV(v, false, d)
  15710. case *map[uint32]interface{}:
  15711. var v2 map[uint32]interface{}
  15712. v2, changed = fastpathTV.DecMapUint32IntfV(*v, true, d)
  15713. if changed {
  15714. *v = v2
  15715. }
  15716. case map[uint32]string:
  15717. fastpathTV.DecMapUint32StringV(v, false, d)
  15718. case *map[uint32]string:
  15719. var v2 map[uint32]string
  15720. v2, changed = fastpathTV.DecMapUint32StringV(*v, true, d)
  15721. if changed {
  15722. *v = v2
  15723. }
  15724. case map[uint32]uint:
  15725. fastpathTV.DecMapUint32UintV(v, false, d)
  15726. case *map[uint32]uint:
  15727. var v2 map[uint32]uint
  15728. v2, changed = fastpathTV.DecMapUint32UintV(*v, true, d)
  15729. if changed {
  15730. *v = v2
  15731. }
  15732. case map[uint32]uint8:
  15733. fastpathTV.DecMapUint32Uint8V(v, false, d)
  15734. case *map[uint32]uint8:
  15735. var v2 map[uint32]uint8
  15736. v2, changed = fastpathTV.DecMapUint32Uint8V(*v, true, d)
  15737. if changed {
  15738. *v = v2
  15739. }
  15740. case map[uint32]uint16:
  15741. fastpathTV.DecMapUint32Uint16V(v, false, d)
  15742. case *map[uint32]uint16:
  15743. var v2 map[uint32]uint16
  15744. v2, changed = fastpathTV.DecMapUint32Uint16V(*v, true, d)
  15745. if changed {
  15746. *v = v2
  15747. }
  15748. case map[uint32]uint32:
  15749. fastpathTV.DecMapUint32Uint32V(v, false, d)
  15750. case *map[uint32]uint32:
  15751. var v2 map[uint32]uint32
  15752. v2, changed = fastpathTV.DecMapUint32Uint32V(*v, true, d)
  15753. if changed {
  15754. *v = v2
  15755. }
  15756. case map[uint32]uint64:
  15757. fastpathTV.DecMapUint32Uint64V(v, false, d)
  15758. case *map[uint32]uint64:
  15759. var v2 map[uint32]uint64
  15760. v2, changed = fastpathTV.DecMapUint32Uint64V(*v, true, d)
  15761. if changed {
  15762. *v = v2
  15763. }
  15764. case map[uint32]uintptr:
  15765. fastpathTV.DecMapUint32UintptrV(v, false, d)
  15766. case *map[uint32]uintptr:
  15767. var v2 map[uint32]uintptr
  15768. v2, changed = fastpathTV.DecMapUint32UintptrV(*v, true, d)
  15769. if changed {
  15770. *v = v2
  15771. }
  15772. case map[uint32]int:
  15773. fastpathTV.DecMapUint32IntV(v, false, d)
  15774. case *map[uint32]int:
  15775. var v2 map[uint32]int
  15776. v2, changed = fastpathTV.DecMapUint32IntV(*v, true, d)
  15777. if changed {
  15778. *v = v2
  15779. }
  15780. case map[uint32]int8:
  15781. fastpathTV.DecMapUint32Int8V(v, false, d)
  15782. case *map[uint32]int8:
  15783. var v2 map[uint32]int8
  15784. v2, changed = fastpathTV.DecMapUint32Int8V(*v, true, d)
  15785. if changed {
  15786. *v = v2
  15787. }
  15788. case map[uint32]int16:
  15789. fastpathTV.DecMapUint32Int16V(v, false, d)
  15790. case *map[uint32]int16:
  15791. var v2 map[uint32]int16
  15792. v2, changed = fastpathTV.DecMapUint32Int16V(*v, true, d)
  15793. if changed {
  15794. *v = v2
  15795. }
  15796. case map[uint32]int32:
  15797. fastpathTV.DecMapUint32Int32V(v, false, d)
  15798. case *map[uint32]int32:
  15799. var v2 map[uint32]int32
  15800. v2, changed = fastpathTV.DecMapUint32Int32V(*v, true, d)
  15801. if changed {
  15802. *v = v2
  15803. }
  15804. case map[uint32]int64:
  15805. fastpathTV.DecMapUint32Int64V(v, false, d)
  15806. case *map[uint32]int64:
  15807. var v2 map[uint32]int64
  15808. v2, changed = fastpathTV.DecMapUint32Int64V(*v, true, d)
  15809. if changed {
  15810. *v = v2
  15811. }
  15812. case map[uint32]float32:
  15813. fastpathTV.DecMapUint32Float32V(v, false, d)
  15814. case *map[uint32]float32:
  15815. var v2 map[uint32]float32
  15816. v2, changed = fastpathTV.DecMapUint32Float32V(*v, true, d)
  15817. if changed {
  15818. *v = v2
  15819. }
  15820. case map[uint32]float64:
  15821. fastpathTV.DecMapUint32Float64V(v, false, d)
  15822. case *map[uint32]float64:
  15823. var v2 map[uint32]float64
  15824. v2, changed = fastpathTV.DecMapUint32Float64V(*v, true, d)
  15825. if changed {
  15826. *v = v2
  15827. }
  15828. case map[uint32]bool:
  15829. fastpathTV.DecMapUint32BoolV(v, false, d)
  15830. case *map[uint32]bool:
  15831. var v2 map[uint32]bool
  15832. v2, changed = fastpathTV.DecMapUint32BoolV(*v, true, d)
  15833. if changed {
  15834. *v = v2
  15835. }
  15836. case map[uint64]interface{}:
  15837. fastpathTV.DecMapUint64IntfV(v, false, d)
  15838. case *map[uint64]interface{}:
  15839. var v2 map[uint64]interface{}
  15840. v2, changed = fastpathTV.DecMapUint64IntfV(*v, true, d)
  15841. if changed {
  15842. *v = v2
  15843. }
  15844. case map[uint64]string:
  15845. fastpathTV.DecMapUint64StringV(v, false, d)
  15846. case *map[uint64]string:
  15847. var v2 map[uint64]string
  15848. v2, changed = fastpathTV.DecMapUint64StringV(*v, true, d)
  15849. if changed {
  15850. *v = v2
  15851. }
  15852. case map[uint64]uint:
  15853. fastpathTV.DecMapUint64UintV(v, false, d)
  15854. case *map[uint64]uint:
  15855. var v2 map[uint64]uint
  15856. v2, changed = fastpathTV.DecMapUint64UintV(*v, true, d)
  15857. if changed {
  15858. *v = v2
  15859. }
  15860. case map[uint64]uint8:
  15861. fastpathTV.DecMapUint64Uint8V(v, false, d)
  15862. case *map[uint64]uint8:
  15863. var v2 map[uint64]uint8
  15864. v2, changed = fastpathTV.DecMapUint64Uint8V(*v, true, d)
  15865. if changed {
  15866. *v = v2
  15867. }
  15868. case map[uint64]uint16:
  15869. fastpathTV.DecMapUint64Uint16V(v, false, d)
  15870. case *map[uint64]uint16:
  15871. var v2 map[uint64]uint16
  15872. v2, changed = fastpathTV.DecMapUint64Uint16V(*v, true, d)
  15873. if changed {
  15874. *v = v2
  15875. }
  15876. case map[uint64]uint32:
  15877. fastpathTV.DecMapUint64Uint32V(v, false, d)
  15878. case *map[uint64]uint32:
  15879. var v2 map[uint64]uint32
  15880. v2, changed = fastpathTV.DecMapUint64Uint32V(*v, true, d)
  15881. if changed {
  15882. *v = v2
  15883. }
  15884. case map[uint64]uint64:
  15885. fastpathTV.DecMapUint64Uint64V(v, false, d)
  15886. case *map[uint64]uint64:
  15887. var v2 map[uint64]uint64
  15888. v2, changed = fastpathTV.DecMapUint64Uint64V(*v, true, d)
  15889. if changed {
  15890. *v = v2
  15891. }
  15892. case map[uint64]uintptr:
  15893. fastpathTV.DecMapUint64UintptrV(v, false, d)
  15894. case *map[uint64]uintptr:
  15895. var v2 map[uint64]uintptr
  15896. v2, changed = fastpathTV.DecMapUint64UintptrV(*v, true, d)
  15897. if changed {
  15898. *v = v2
  15899. }
  15900. case map[uint64]int:
  15901. fastpathTV.DecMapUint64IntV(v, false, d)
  15902. case *map[uint64]int:
  15903. var v2 map[uint64]int
  15904. v2, changed = fastpathTV.DecMapUint64IntV(*v, true, d)
  15905. if changed {
  15906. *v = v2
  15907. }
  15908. case map[uint64]int8:
  15909. fastpathTV.DecMapUint64Int8V(v, false, d)
  15910. case *map[uint64]int8:
  15911. var v2 map[uint64]int8
  15912. v2, changed = fastpathTV.DecMapUint64Int8V(*v, true, d)
  15913. if changed {
  15914. *v = v2
  15915. }
  15916. case map[uint64]int16:
  15917. fastpathTV.DecMapUint64Int16V(v, false, d)
  15918. case *map[uint64]int16:
  15919. var v2 map[uint64]int16
  15920. v2, changed = fastpathTV.DecMapUint64Int16V(*v, true, d)
  15921. if changed {
  15922. *v = v2
  15923. }
  15924. case map[uint64]int32:
  15925. fastpathTV.DecMapUint64Int32V(v, false, d)
  15926. case *map[uint64]int32:
  15927. var v2 map[uint64]int32
  15928. v2, changed = fastpathTV.DecMapUint64Int32V(*v, true, d)
  15929. if changed {
  15930. *v = v2
  15931. }
  15932. case map[uint64]int64:
  15933. fastpathTV.DecMapUint64Int64V(v, false, d)
  15934. case *map[uint64]int64:
  15935. var v2 map[uint64]int64
  15936. v2, changed = fastpathTV.DecMapUint64Int64V(*v, true, d)
  15937. if changed {
  15938. *v = v2
  15939. }
  15940. case map[uint64]float32:
  15941. fastpathTV.DecMapUint64Float32V(v, false, d)
  15942. case *map[uint64]float32:
  15943. var v2 map[uint64]float32
  15944. v2, changed = fastpathTV.DecMapUint64Float32V(*v, true, d)
  15945. if changed {
  15946. *v = v2
  15947. }
  15948. case map[uint64]float64:
  15949. fastpathTV.DecMapUint64Float64V(v, false, d)
  15950. case *map[uint64]float64:
  15951. var v2 map[uint64]float64
  15952. v2, changed = fastpathTV.DecMapUint64Float64V(*v, true, d)
  15953. if changed {
  15954. *v = v2
  15955. }
  15956. case map[uint64]bool:
  15957. fastpathTV.DecMapUint64BoolV(v, false, d)
  15958. case *map[uint64]bool:
  15959. var v2 map[uint64]bool
  15960. v2, changed = fastpathTV.DecMapUint64BoolV(*v, true, d)
  15961. if changed {
  15962. *v = v2
  15963. }
  15964. case map[uintptr]interface{}:
  15965. fastpathTV.DecMapUintptrIntfV(v, false, d)
  15966. case *map[uintptr]interface{}:
  15967. var v2 map[uintptr]interface{}
  15968. v2, changed = fastpathTV.DecMapUintptrIntfV(*v, true, d)
  15969. if changed {
  15970. *v = v2
  15971. }
  15972. case map[uintptr]string:
  15973. fastpathTV.DecMapUintptrStringV(v, false, d)
  15974. case *map[uintptr]string:
  15975. var v2 map[uintptr]string
  15976. v2, changed = fastpathTV.DecMapUintptrStringV(*v, true, d)
  15977. if changed {
  15978. *v = v2
  15979. }
  15980. case map[uintptr]uint:
  15981. fastpathTV.DecMapUintptrUintV(v, false, d)
  15982. case *map[uintptr]uint:
  15983. var v2 map[uintptr]uint
  15984. v2, changed = fastpathTV.DecMapUintptrUintV(*v, true, d)
  15985. if changed {
  15986. *v = v2
  15987. }
  15988. case map[uintptr]uint8:
  15989. fastpathTV.DecMapUintptrUint8V(v, false, d)
  15990. case *map[uintptr]uint8:
  15991. var v2 map[uintptr]uint8
  15992. v2, changed = fastpathTV.DecMapUintptrUint8V(*v, true, d)
  15993. if changed {
  15994. *v = v2
  15995. }
  15996. case map[uintptr]uint16:
  15997. fastpathTV.DecMapUintptrUint16V(v, false, d)
  15998. case *map[uintptr]uint16:
  15999. var v2 map[uintptr]uint16
  16000. v2, changed = fastpathTV.DecMapUintptrUint16V(*v, true, d)
  16001. if changed {
  16002. *v = v2
  16003. }
  16004. case map[uintptr]uint32:
  16005. fastpathTV.DecMapUintptrUint32V(v, false, d)
  16006. case *map[uintptr]uint32:
  16007. var v2 map[uintptr]uint32
  16008. v2, changed = fastpathTV.DecMapUintptrUint32V(*v, true, d)
  16009. if changed {
  16010. *v = v2
  16011. }
  16012. case map[uintptr]uint64:
  16013. fastpathTV.DecMapUintptrUint64V(v, false, d)
  16014. case *map[uintptr]uint64:
  16015. var v2 map[uintptr]uint64
  16016. v2, changed = fastpathTV.DecMapUintptrUint64V(*v, true, d)
  16017. if changed {
  16018. *v = v2
  16019. }
  16020. case map[uintptr]uintptr:
  16021. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  16022. case *map[uintptr]uintptr:
  16023. var v2 map[uintptr]uintptr
  16024. v2, changed = fastpathTV.DecMapUintptrUintptrV(*v, true, d)
  16025. if changed {
  16026. *v = v2
  16027. }
  16028. case map[uintptr]int:
  16029. fastpathTV.DecMapUintptrIntV(v, false, d)
  16030. case *map[uintptr]int:
  16031. var v2 map[uintptr]int
  16032. v2, changed = fastpathTV.DecMapUintptrIntV(*v, true, d)
  16033. if changed {
  16034. *v = v2
  16035. }
  16036. case map[uintptr]int8:
  16037. fastpathTV.DecMapUintptrInt8V(v, false, d)
  16038. case *map[uintptr]int8:
  16039. var v2 map[uintptr]int8
  16040. v2, changed = fastpathTV.DecMapUintptrInt8V(*v, true, d)
  16041. if changed {
  16042. *v = v2
  16043. }
  16044. case map[uintptr]int16:
  16045. fastpathTV.DecMapUintptrInt16V(v, false, d)
  16046. case *map[uintptr]int16:
  16047. var v2 map[uintptr]int16
  16048. v2, changed = fastpathTV.DecMapUintptrInt16V(*v, true, d)
  16049. if changed {
  16050. *v = v2
  16051. }
  16052. case map[uintptr]int32:
  16053. fastpathTV.DecMapUintptrInt32V(v, false, d)
  16054. case *map[uintptr]int32:
  16055. var v2 map[uintptr]int32
  16056. v2, changed = fastpathTV.DecMapUintptrInt32V(*v, true, d)
  16057. if changed {
  16058. *v = v2
  16059. }
  16060. case map[uintptr]int64:
  16061. fastpathTV.DecMapUintptrInt64V(v, false, d)
  16062. case *map[uintptr]int64:
  16063. var v2 map[uintptr]int64
  16064. v2, changed = fastpathTV.DecMapUintptrInt64V(*v, true, d)
  16065. if changed {
  16066. *v = v2
  16067. }
  16068. case map[uintptr]float32:
  16069. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  16070. case *map[uintptr]float32:
  16071. var v2 map[uintptr]float32
  16072. v2, changed = fastpathTV.DecMapUintptrFloat32V(*v, true, d)
  16073. if changed {
  16074. *v = v2
  16075. }
  16076. case map[uintptr]float64:
  16077. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  16078. case *map[uintptr]float64:
  16079. var v2 map[uintptr]float64
  16080. v2, changed = fastpathTV.DecMapUintptrFloat64V(*v, true, d)
  16081. if changed {
  16082. *v = v2
  16083. }
  16084. case map[uintptr]bool:
  16085. fastpathTV.DecMapUintptrBoolV(v, false, d)
  16086. case *map[uintptr]bool:
  16087. var v2 map[uintptr]bool
  16088. v2, changed = fastpathTV.DecMapUintptrBoolV(*v, true, d)
  16089. if changed {
  16090. *v = v2
  16091. }
  16092. case map[int]interface{}:
  16093. fastpathTV.DecMapIntIntfV(v, false, d)
  16094. case *map[int]interface{}:
  16095. var v2 map[int]interface{}
  16096. v2, changed = fastpathTV.DecMapIntIntfV(*v, true, d)
  16097. if changed {
  16098. *v = v2
  16099. }
  16100. case map[int]string:
  16101. fastpathTV.DecMapIntStringV(v, false, d)
  16102. case *map[int]string:
  16103. var v2 map[int]string
  16104. v2, changed = fastpathTV.DecMapIntStringV(*v, true, d)
  16105. if changed {
  16106. *v = v2
  16107. }
  16108. case map[int]uint:
  16109. fastpathTV.DecMapIntUintV(v, false, d)
  16110. case *map[int]uint:
  16111. var v2 map[int]uint
  16112. v2, changed = fastpathTV.DecMapIntUintV(*v, true, d)
  16113. if changed {
  16114. *v = v2
  16115. }
  16116. case map[int]uint8:
  16117. fastpathTV.DecMapIntUint8V(v, false, d)
  16118. case *map[int]uint8:
  16119. var v2 map[int]uint8
  16120. v2, changed = fastpathTV.DecMapIntUint8V(*v, true, d)
  16121. if changed {
  16122. *v = v2
  16123. }
  16124. case map[int]uint16:
  16125. fastpathTV.DecMapIntUint16V(v, false, d)
  16126. case *map[int]uint16:
  16127. var v2 map[int]uint16
  16128. v2, changed = fastpathTV.DecMapIntUint16V(*v, true, d)
  16129. if changed {
  16130. *v = v2
  16131. }
  16132. case map[int]uint32:
  16133. fastpathTV.DecMapIntUint32V(v, false, d)
  16134. case *map[int]uint32:
  16135. var v2 map[int]uint32
  16136. v2, changed = fastpathTV.DecMapIntUint32V(*v, true, d)
  16137. if changed {
  16138. *v = v2
  16139. }
  16140. case map[int]uint64:
  16141. fastpathTV.DecMapIntUint64V(v, false, d)
  16142. case *map[int]uint64:
  16143. var v2 map[int]uint64
  16144. v2, changed = fastpathTV.DecMapIntUint64V(*v, true, d)
  16145. if changed {
  16146. *v = v2
  16147. }
  16148. case map[int]uintptr:
  16149. fastpathTV.DecMapIntUintptrV(v, false, d)
  16150. case *map[int]uintptr:
  16151. var v2 map[int]uintptr
  16152. v2, changed = fastpathTV.DecMapIntUintptrV(*v, true, d)
  16153. if changed {
  16154. *v = v2
  16155. }
  16156. case map[int]int:
  16157. fastpathTV.DecMapIntIntV(v, false, d)
  16158. case *map[int]int:
  16159. var v2 map[int]int
  16160. v2, changed = fastpathTV.DecMapIntIntV(*v, true, d)
  16161. if changed {
  16162. *v = v2
  16163. }
  16164. case map[int]int8:
  16165. fastpathTV.DecMapIntInt8V(v, false, d)
  16166. case *map[int]int8:
  16167. var v2 map[int]int8
  16168. v2, changed = fastpathTV.DecMapIntInt8V(*v, true, d)
  16169. if changed {
  16170. *v = v2
  16171. }
  16172. case map[int]int16:
  16173. fastpathTV.DecMapIntInt16V(v, false, d)
  16174. case *map[int]int16:
  16175. var v2 map[int]int16
  16176. v2, changed = fastpathTV.DecMapIntInt16V(*v, true, d)
  16177. if changed {
  16178. *v = v2
  16179. }
  16180. case map[int]int32:
  16181. fastpathTV.DecMapIntInt32V(v, false, d)
  16182. case *map[int]int32:
  16183. var v2 map[int]int32
  16184. v2, changed = fastpathTV.DecMapIntInt32V(*v, true, d)
  16185. if changed {
  16186. *v = v2
  16187. }
  16188. case map[int]int64:
  16189. fastpathTV.DecMapIntInt64V(v, false, d)
  16190. case *map[int]int64:
  16191. var v2 map[int]int64
  16192. v2, changed = fastpathTV.DecMapIntInt64V(*v, true, d)
  16193. if changed {
  16194. *v = v2
  16195. }
  16196. case map[int]float32:
  16197. fastpathTV.DecMapIntFloat32V(v, false, d)
  16198. case *map[int]float32:
  16199. var v2 map[int]float32
  16200. v2, changed = fastpathTV.DecMapIntFloat32V(*v, true, d)
  16201. if changed {
  16202. *v = v2
  16203. }
  16204. case map[int]float64:
  16205. fastpathTV.DecMapIntFloat64V(v, false, d)
  16206. case *map[int]float64:
  16207. var v2 map[int]float64
  16208. v2, changed = fastpathTV.DecMapIntFloat64V(*v, true, d)
  16209. if changed {
  16210. *v = v2
  16211. }
  16212. case map[int]bool:
  16213. fastpathTV.DecMapIntBoolV(v, false, d)
  16214. case *map[int]bool:
  16215. var v2 map[int]bool
  16216. v2, changed = fastpathTV.DecMapIntBoolV(*v, true, d)
  16217. if changed {
  16218. *v = v2
  16219. }
  16220. case map[int8]interface{}:
  16221. fastpathTV.DecMapInt8IntfV(v, false, d)
  16222. case *map[int8]interface{}:
  16223. var v2 map[int8]interface{}
  16224. v2, changed = fastpathTV.DecMapInt8IntfV(*v, true, d)
  16225. if changed {
  16226. *v = v2
  16227. }
  16228. case map[int8]string:
  16229. fastpathTV.DecMapInt8StringV(v, false, d)
  16230. case *map[int8]string:
  16231. var v2 map[int8]string
  16232. v2, changed = fastpathTV.DecMapInt8StringV(*v, true, d)
  16233. if changed {
  16234. *v = v2
  16235. }
  16236. case map[int8]uint:
  16237. fastpathTV.DecMapInt8UintV(v, false, d)
  16238. case *map[int8]uint:
  16239. var v2 map[int8]uint
  16240. v2, changed = fastpathTV.DecMapInt8UintV(*v, true, d)
  16241. if changed {
  16242. *v = v2
  16243. }
  16244. case map[int8]uint8:
  16245. fastpathTV.DecMapInt8Uint8V(v, false, d)
  16246. case *map[int8]uint8:
  16247. var v2 map[int8]uint8
  16248. v2, changed = fastpathTV.DecMapInt8Uint8V(*v, true, d)
  16249. if changed {
  16250. *v = v2
  16251. }
  16252. case map[int8]uint16:
  16253. fastpathTV.DecMapInt8Uint16V(v, false, d)
  16254. case *map[int8]uint16:
  16255. var v2 map[int8]uint16
  16256. v2, changed = fastpathTV.DecMapInt8Uint16V(*v, true, d)
  16257. if changed {
  16258. *v = v2
  16259. }
  16260. case map[int8]uint32:
  16261. fastpathTV.DecMapInt8Uint32V(v, false, d)
  16262. case *map[int8]uint32:
  16263. var v2 map[int8]uint32
  16264. v2, changed = fastpathTV.DecMapInt8Uint32V(*v, true, d)
  16265. if changed {
  16266. *v = v2
  16267. }
  16268. case map[int8]uint64:
  16269. fastpathTV.DecMapInt8Uint64V(v, false, d)
  16270. case *map[int8]uint64:
  16271. var v2 map[int8]uint64
  16272. v2, changed = fastpathTV.DecMapInt8Uint64V(*v, true, d)
  16273. if changed {
  16274. *v = v2
  16275. }
  16276. case map[int8]uintptr:
  16277. fastpathTV.DecMapInt8UintptrV(v, false, d)
  16278. case *map[int8]uintptr:
  16279. var v2 map[int8]uintptr
  16280. v2, changed = fastpathTV.DecMapInt8UintptrV(*v, true, d)
  16281. if changed {
  16282. *v = v2
  16283. }
  16284. case map[int8]int:
  16285. fastpathTV.DecMapInt8IntV(v, false, d)
  16286. case *map[int8]int:
  16287. var v2 map[int8]int
  16288. v2, changed = fastpathTV.DecMapInt8IntV(*v, true, d)
  16289. if changed {
  16290. *v = v2
  16291. }
  16292. case map[int8]int8:
  16293. fastpathTV.DecMapInt8Int8V(v, false, d)
  16294. case *map[int8]int8:
  16295. var v2 map[int8]int8
  16296. v2, changed = fastpathTV.DecMapInt8Int8V(*v, true, d)
  16297. if changed {
  16298. *v = v2
  16299. }
  16300. case map[int8]int16:
  16301. fastpathTV.DecMapInt8Int16V(v, false, d)
  16302. case *map[int8]int16:
  16303. var v2 map[int8]int16
  16304. v2, changed = fastpathTV.DecMapInt8Int16V(*v, true, d)
  16305. if changed {
  16306. *v = v2
  16307. }
  16308. case map[int8]int32:
  16309. fastpathTV.DecMapInt8Int32V(v, false, d)
  16310. case *map[int8]int32:
  16311. var v2 map[int8]int32
  16312. v2, changed = fastpathTV.DecMapInt8Int32V(*v, true, d)
  16313. if changed {
  16314. *v = v2
  16315. }
  16316. case map[int8]int64:
  16317. fastpathTV.DecMapInt8Int64V(v, false, d)
  16318. case *map[int8]int64:
  16319. var v2 map[int8]int64
  16320. v2, changed = fastpathTV.DecMapInt8Int64V(*v, true, d)
  16321. if changed {
  16322. *v = v2
  16323. }
  16324. case map[int8]float32:
  16325. fastpathTV.DecMapInt8Float32V(v, false, d)
  16326. case *map[int8]float32:
  16327. var v2 map[int8]float32
  16328. v2, changed = fastpathTV.DecMapInt8Float32V(*v, true, d)
  16329. if changed {
  16330. *v = v2
  16331. }
  16332. case map[int8]float64:
  16333. fastpathTV.DecMapInt8Float64V(v, false, d)
  16334. case *map[int8]float64:
  16335. var v2 map[int8]float64
  16336. v2, changed = fastpathTV.DecMapInt8Float64V(*v, true, d)
  16337. if changed {
  16338. *v = v2
  16339. }
  16340. case map[int8]bool:
  16341. fastpathTV.DecMapInt8BoolV(v, false, d)
  16342. case *map[int8]bool:
  16343. var v2 map[int8]bool
  16344. v2, changed = fastpathTV.DecMapInt8BoolV(*v, true, d)
  16345. if changed {
  16346. *v = v2
  16347. }
  16348. case map[int16]interface{}:
  16349. fastpathTV.DecMapInt16IntfV(v, false, d)
  16350. case *map[int16]interface{}:
  16351. var v2 map[int16]interface{}
  16352. v2, changed = fastpathTV.DecMapInt16IntfV(*v, true, d)
  16353. if changed {
  16354. *v = v2
  16355. }
  16356. case map[int16]string:
  16357. fastpathTV.DecMapInt16StringV(v, false, d)
  16358. case *map[int16]string:
  16359. var v2 map[int16]string
  16360. v2, changed = fastpathTV.DecMapInt16StringV(*v, true, d)
  16361. if changed {
  16362. *v = v2
  16363. }
  16364. case map[int16]uint:
  16365. fastpathTV.DecMapInt16UintV(v, false, d)
  16366. case *map[int16]uint:
  16367. var v2 map[int16]uint
  16368. v2, changed = fastpathTV.DecMapInt16UintV(*v, true, d)
  16369. if changed {
  16370. *v = v2
  16371. }
  16372. case map[int16]uint8:
  16373. fastpathTV.DecMapInt16Uint8V(v, false, d)
  16374. case *map[int16]uint8:
  16375. var v2 map[int16]uint8
  16376. v2, changed = fastpathTV.DecMapInt16Uint8V(*v, true, d)
  16377. if changed {
  16378. *v = v2
  16379. }
  16380. case map[int16]uint16:
  16381. fastpathTV.DecMapInt16Uint16V(v, false, d)
  16382. case *map[int16]uint16:
  16383. var v2 map[int16]uint16
  16384. v2, changed = fastpathTV.DecMapInt16Uint16V(*v, true, d)
  16385. if changed {
  16386. *v = v2
  16387. }
  16388. case map[int16]uint32:
  16389. fastpathTV.DecMapInt16Uint32V(v, false, d)
  16390. case *map[int16]uint32:
  16391. var v2 map[int16]uint32
  16392. v2, changed = fastpathTV.DecMapInt16Uint32V(*v, true, d)
  16393. if changed {
  16394. *v = v2
  16395. }
  16396. case map[int16]uint64:
  16397. fastpathTV.DecMapInt16Uint64V(v, false, d)
  16398. case *map[int16]uint64:
  16399. var v2 map[int16]uint64
  16400. v2, changed = fastpathTV.DecMapInt16Uint64V(*v, true, d)
  16401. if changed {
  16402. *v = v2
  16403. }
  16404. case map[int16]uintptr:
  16405. fastpathTV.DecMapInt16UintptrV(v, false, d)
  16406. case *map[int16]uintptr:
  16407. var v2 map[int16]uintptr
  16408. v2, changed = fastpathTV.DecMapInt16UintptrV(*v, true, d)
  16409. if changed {
  16410. *v = v2
  16411. }
  16412. case map[int16]int:
  16413. fastpathTV.DecMapInt16IntV(v, false, d)
  16414. case *map[int16]int:
  16415. var v2 map[int16]int
  16416. v2, changed = fastpathTV.DecMapInt16IntV(*v, true, d)
  16417. if changed {
  16418. *v = v2
  16419. }
  16420. case map[int16]int8:
  16421. fastpathTV.DecMapInt16Int8V(v, false, d)
  16422. case *map[int16]int8:
  16423. var v2 map[int16]int8
  16424. v2, changed = fastpathTV.DecMapInt16Int8V(*v, true, d)
  16425. if changed {
  16426. *v = v2
  16427. }
  16428. case map[int16]int16:
  16429. fastpathTV.DecMapInt16Int16V(v, false, d)
  16430. case *map[int16]int16:
  16431. var v2 map[int16]int16
  16432. v2, changed = fastpathTV.DecMapInt16Int16V(*v, true, d)
  16433. if changed {
  16434. *v = v2
  16435. }
  16436. case map[int16]int32:
  16437. fastpathTV.DecMapInt16Int32V(v, false, d)
  16438. case *map[int16]int32:
  16439. var v2 map[int16]int32
  16440. v2, changed = fastpathTV.DecMapInt16Int32V(*v, true, d)
  16441. if changed {
  16442. *v = v2
  16443. }
  16444. case map[int16]int64:
  16445. fastpathTV.DecMapInt16Int64V(v, false, d)
  16446. case *map[int16]int64:
  16447. var v2 map[int16]int64
  16448. v2, changed = fastpathTV.DecMapInt16Int64V(*v, true, d)
  16449. if changed {
  16450. *v = v2
  16451. }
  16452. case map[int16]float32:
  16453. fastpathTV.DecMapInt16Float32V(v, false, d)
  16454. case *map[int16]float32:
  16455. var v2 map[int16]float32
  16456. v2, changed = fastpathTV.DecMapInt16Float32V(*v, true, d)
  16457. if changed {
  16458. *v = v2
  16459. }
  16460. case map[int16]float64:
  16461. fastpathTV.DecMapInt16Float64V(v, false, d)
  16462. case *map[int16]float64:
  16463. var v2 map[int16]float64
  16464. v2, changed = fastpathTV.DecMapInt16Float64V(*v, true, d)
  16465. if changed {
  16466. *v = v2
  16467. }
  16468. case map[int16]bool:
  16469. fastpathTV.DecMapInt16BoolV(v, false, d)
  16470. case *map[int16]bool:
  16471. var v2 map[int16]bool
  16472. v2, changed = fastpathTV.DecMapInt16BoolV(*v, true, d)
  16473. if changed {
  16474. *v = v2
  16475. }
  16476. case map[int32]interface{}:
  16477. fastpathTV.DecMapInt32IntfV(v, false, d)
  16478. case *map[int32]interface{}:
  16479. var v2 map[int32]interface{}
  16480. v2, changed = fastpathTV.DecMapInt32IntfV(*v, true, d)
  16481. if changed {
  16482. *v = v2
  16483. }
  16484. case map[int32]string:
  16485. fastpathTV.DecMapInt32StringV(v, false, d)
  16486. case *map[int32]string:
  16487. var v2 map[int32]string
  16488. v2, changed = fastpathTV.DecMapInt32StringV(*v, true, d)
  16489. if changed {
  16490. *v = v2
  16491. }
  16492. case map[int32]uint:
  16493. fastpathTV.DecMapInt32UintV(v, false, d)
  16494. case *map[int32]uint:
  16495. var v2 map[int32]uint
  16496. v2, changed = fastpathTV.DecMapInt32UintV(*v, true, d)
  16497. if changed {
  16498. *v = v2
  16499. }
  16500. case map[int32]uint8:
  16501. fastpathTV.DecMapInt32Uint8V(v, false, d)
  16502. case *map[int32]uint8:
  16503. var v2 map[int32]uint8
  16504. v2, changed = fastpathTV.DecMapInt32Uint8V(*v, true, d)
  16505. if changed {
  16506. *v = v2
  16507. }
  16508. case map[int32]uint16:
  16509. fastpathTV.DecMapInt32Uint16V(v, false, d)
  16510. case *map[int32]uint16:
  16511. var v2 map[int32]uint16
  16512. v2, changed = fastpathTV.DecMapInt32Uint16V(*v, true, d)
  16513. if changed {
  16514. *v = v2
  16515. }
  16516. case map[int32]uint32:
  16517. fastpathTV.DecMapInt32Uint32V(v, false, d)
  16518. case *map[int32]uint32:
  16519. var v2 map[int32]uint32
  16520. v2, changed = fastpathTV.DecMapInt32Uint32V(*v, true, d)
  16521. if changed {
  16522. *v = v2
  16523. }
  16524. case map[int32]uint64:
  16525. fastpathTV.DecMapInt32Uint64V(v, false, d)
  16526. case *map[int32]uint64:
  16527. var v2 map[int32]uint64
  16528. v2, changed = fastpathTV.DecMapInt32Uint64V(*v, true, d)
  16529. if changed {
  16530. *v = v2
  16531. }
  16532. case map[int32]uintptr:
  16533. fastpathTV.DecMapInt32UintptrV(v, false, d)
  16534. case *map[int32]uintptr:
  16535. var v2 map[int32]uintptr
  16536. v2, changed = fastpathTV.DecMapInt32UintptrV(*v, true, d)
  16537. if changed {
  16538. *v = v2
  16539. }
  16540. case map[int32]int:
  16541. fastpathTV.DecMapInt32IntV(v, false, d)
  16542. case *map[int32]int:
  16543. var v2 map[int32]int
  16544. v2, changed = fastpathTV.DecMapInt32IntV(*v, true, d)
  16545. if changed {
  16546. *v = v2
  16547. }
  16548. case map[int32]int8:
  16549. fastpathTV.DecMapInt32Int8V(v, false, d)
  16550. case *map[int32]int8:
  16551. var v2 map[int32]int8
  16552. v2, changed = fastpathTV.DecMapInt32Int8V(*v, true, d)
  16553. if changed {
  16554. *v = v2
  16555. }
  16556. case map[int32]int16:
  16557. fastpathTV.DecMapInt32Int16V(v, false, d)
  16558. case *map[int32]int16:
  16559. var v2 map[int32]int16
  16560. v2, changed = fastpathTV.DecMapInt32Int16V(*v, true, d)
  16561. if changed {
  16562. *v = v2
  16563. }
  16564. case map[int32]int32:
  16565. fastpathTV.DecMapInt32Int32V(v, false, d)
  16566. case *map[int32]int32:
  16567. var v2 map[int32]int32
  16568. v2, changed = fastpathTV.DecMapInt32Int32V(*v, true, d)
  16569. if changed {
  16570. *v = v2
  16571. }
  16572. case map[int32]int64:
  16573. fastpathTV.DecMapInt32Int64V(v, false, d)
  16574. case *map[int32]int64:
  16575. var v2 map[int32]int64
  16576. v2, changed = fastpathTV.DecMapInt32Int64V(*v, true, d)
  16577. if changed {
  16578. *v = v2
  16579. }
  16580. case map[int32]float32:
  16581. fastpathTV.DecMapInt32Float32V(v, false, d)
  16582. case *map[int32]float32:
  16583. var v2 map[int32]float32
  16584. v2, changed = fastpathTV.DecMapInt32Float32V(*v, true, d)
  16585. if changed {
  16586. *v = v2
  16587. }
  16588. case map[int32]float64:
  16589. fastpathTV.DecMapInt32Float64V(v, false, d)
  16590. case *map[int32]float64:
  16591. var v2 map[int32]float64
  16592. v2, changed = fastpathTV.DecMapInt32Float64V(*v, true, d)
  16593. if changed {
  16594. *v = v2
  16595. }
  16596. case map[int32]bool:
  16597. fastpathTV.DecMapInt32BoolV(v, false, d)
  16598. case *map[int32]bool:
  16599. var v2 map[int32]bool
  16600. v2, changed = fastpathTV.DecMapInt32BoolV(*v, true, d)
  16601. if changed {
  16602. *v = v2
  16603. }
  16604. case map[int64]interface{}:
  16605. fastpathTV.DecMapInt64IntfV(v, false, d)
  16606. case *map[int64]interface{}:
  16607. var v2 map[int64]interface{}
  16608. v2, changed = fastpathTV.DecMapInt64IntfV(*v, true, d)
  16609. if changed {
  16610. *v = v2
  16611. }
  16612. case map[int64]string:
  16613. fastpathTV.DecMapInt64StringV(v, false, d)
  16614. case *map[int64]string:
  16615. var v2 map[int64]string
  16616. v2, changed = fastpathTV.DecMapInt64StringV(*v, true, d)
  16617. if changed {
  16618. *v = v2
  16619. }
  16620. case map[int64]uint:
  16621. fastpathTV.DecMapInt64UintV(v, false, d)
  16622. case *map[int64]uint:
  16623. var v2 map[int64]uint
  16624. v2, changed = fastpathTV.DecMapInt64UintV(*v, true, d)
  16625. if changed {
  16626. *v = v2
  16627. }
  16628. case map[int64]uint8:
  16629. fastpathTV.DecMapInt64Uint8V(v, false, d)
  16630. case *map[int64]uint8:
  16631. var v2 map[int64]uint8
  16632. v2, changed = fastpathTV.DecMapInt64Uint8V(*v, true, d)
  16633. if changed {
  16634. *v = v2
  16635. }
  16636. case map[int64]uint16:
  16637. fastpathTV.DecMapInt64Uint16V(v, false, d)
  16638. case *map[int64]uint16:
  16639. var v2 map[int64]uint16
  16640. v2, changed = fastpathTV.DecMapInt64Uint16V(*v, true, d)
  16641. if changed {
  16642. *v = v2
  16643. }
  16644. case map[int64]uint32:
  16645. fastpathTV.DecMapInt64Uint32V(v, false, d)
  16646. case *map[int64]uint32:
  16647. var v2 map[int64]uint32
  16648. v2, changed = fastpathTV.DecMapInt64Uint32V(*v, true, d)
  16649. if changed {
  16650. *v = v2
  16651. }
  16652. case map[int64]uint64:
  16653. fastpathTV.DecMapInt64Uint64V(v, false, d)
  16654. case *map[int64]uint64:
  16655. var v2 map[int64]uint64
  16656. v2, changed = fastpathTV.DecMapInt64Uint64V(*v, true, d)
  16657. if changed {
  16658. *v = v2
  16659. }
  16660. case map[int64]uintptr:
  16661. fastpathTV.DecMapInt64UintptrV(v, false, d)
  16662. case *map[int64]uintptr:
  16663. var v2 map[int64]uintptr
  16664. v2, changed = fastpathTV.DecMapInt64UintptrV(*v, true, d)
  16665. if changed {
  16666. *v = v2
  16667. }
  16668. case map[int64]int:
  16669. fastpathTV.DecMapInt64IntV(v, false, d)
  16670. case *map[int64]int:
  16671. var v2 map[int64]int
  16672. v2, changed = fastpathTV.DecMapInt64IntV(*v, true, d)
  16673. if changed {
  16674. *v = v2
  16675. }
  16676. case map[int64]int8:
  16677. fastpathTV.DecMapInt64Int8V(v, false, d)
  16678. case *map[int64]int8:
  16679. var v2 map[int64]int8
  16680. v2, changed = fastpathTV.DecMapInt64Int8V(*v, true, d)
  16681. if changed {
  16682. *v = v2
  16683. }
  16684. case map[int64]int16:
  16685. fastpathTV.DecMapInt64Int16V(v, false, d)
  16686. case *map[int64]int16:
  16687. var v2 map[int64]int16
  16688. v2, changed = fastpathTV.DecMapInt64Int16V(*v, true, d)
  16689. if changed {
  16690. *v = v2
  16691. }
  16692. case map[int64]int32:
  16693. fastpathTV.DecMapInt64Int32V(v, false, d)
  16694. case *map[int64]int32:
  16695. var v2 map[int64]int32
  16696. v2, changed = fastpathTV.DecMapInt64Int32V(*v, true, d)
  16697. if changed {
  16698. *v = v2
  16699. }
  16700. case map[int64]int64:
  16701. fastpathTV.DecMapInt64Int64V(v, false, d)
  16702. case *map[int64]int64:
  16703. var v2 map[int64]int64
  16704. v2, changed = fastpathTV.DecMapInt64Int64V(*v, true, d)
  16705. if changed {
  16706. *v = v2
  16707. }
  16708. case map[int64]float32:
  16709. fastpathTV.DecMapInt64Float32V(v, false, d)
  16710. case *map[int64]float32:
  16711. var v2 map[int64]float32
  16712. v2, changed = fastpathTV.DecMapInt64Float32V(*v, true, d)
  16713. if changed {
  16714. *v = v2
  16715. }
  16716. case map[int64]float64:
  16717. fastpathTV.DecMapInt64Float64V(v, false, d)
  16718. case *map[int64]float64:
  16719. var v2 map[int64]float64
  16720. v2, changed = fastpathTV.DecMapInt64Float64V(*v, true, d)
  16721. if changed {
  16722. *v = v2
  16723. }
  16724. case map[int64]bool:
  16725. fastpathTV.DecMapInt64BoolV(v, false, d)
  16726. case *map[int64]bool:
  16727. var v2 map[int64]bool
  16728. v2, changed = fastpathTV.DecMapInt64BoolV(*v, true, d)
  16729. if changed {
  16730. *v = v2
  16731. }
  16732. case map[bool]interface{}:
  16733. fastpathTV.DecMapBoolIntfV(v, false, d)
  16734. case *map[bool]interface{}:
  16735. var v2 map[bool]interface{}
  16736. v2, changed = fastpathTV.DecMapBoolIntfV(*v, true, d)
  16737. if changed {
  16738. *v = v2
  16739. }
  16740. case map[bool]string:
  16741. fastpathTV.DecMapBoolStringV(v, false, d)
  16742. case *map[bool]string:
  16743. var v2 map[bool]string
  16744. v2, changed = fastpathTV.DecMapBoolStringV(*v, true, d)
  16745. if changed {
  16746. *v = v2
  16747. }
  16748. case map[bool]uint:
  16749. fastpathTV.DecMapBoolUintV(v, false, d)
  16750. case *map[bool]uint:
  16751. var v2 map[bool]uint
  16752. v2, changed = fastpathTV.DecMapBoolUintV(*v, true, d)
  16753. if changed {
  16754. *v = v2
  16755. }
  16756. case map[bool]uint8:
  16757. fastpathTV.DecMapBoolUint8V(v, false, d)
  16758. case *map[bool]uint8:
  16759. var v2 map[bool]uint8
  16760. v2, changed = fastpathTV.DecMapBoolUint8V(*v, true, d)
  16761. if changed {
  16762. *v = v2
  16763. }
  16764. case map[bool]uint16:
  16765. fastpathTV.DecMapBoolUint16V(v, false, d)
  16766. case *map[bool]uint16:
  16767. var v2 map[bool]uint16
  16768. v2, changed = fastpathTV.DecMapBoolUint16V(*v, true, d)
  16769. if changed {
  16770. *v = v2
  16771. }
  16772. case map[bool]uint32:
  16773. fastpathTV.DecMapBoolUint32V(v, false, d)
  16774. case *map[bool]uint32:
  16775. var v2 map[bool]uint32
  16776. v2, changed = fastpathTV.DecMapBoolUint32V(*v, true, d)
  16777. if changed {
  16778. *v = v2
  16779. }
  16780. case map[bool]uint64:
  16781. fastpathTV.DecMapBoolUint64V(v, false, d)
  16782. case *map[bool]uint64:
  16783. var v2 map[bool]uint64
  16784. v2, changed = fastpathTV.DecMapBoolUint64V(*v, true, d)
  16785. if changed {
  16786. *v = v2
  16787. }
  16788. case map[bool]uintptr:
  16789. fastpathTV.DecMapBoolUintptrV(v, false, d)
  16790. case *map[bool]uintptr:
  16791. var v2 map[bool]uintptr
  16792. v2, changed = fastpathTV.DecMapBoolUintptrV(*v, true, d)
  16793. if changed {
  16794. *v = v2
  16795. }
  16796. case map[bool]int:
  16797. fastpathTV.DecMapBoolIntV(v, false, d)
  16798. case *map[bool]int:
  16799. var v2 map[bool]int
  16800. v2, changed = fastpathTV.DecMapBoolIntV(*v, true, d)
  16801. if changed {
  16802. *v = v2
  16803. }
  16804. case map[bool]int8:
  16805. fastpathTV.DecMapBoolInt8V(v, false, d)
  16806. case *map[bool]int8:
  16807. var v2 map[bool]int8
  16808. v2, changed = fastpathTV.DecMapBoolInt8V(*v, true, d)
  16809. if changed {
  16810. *v = v2
  16811. }
  16812. case map[bool]int16:
  16813. fastpathTV.DecMapBoolInt16V(v, false, d)
  16814. case *map[bool]int16:
  16815. var v2 map[bool]int16
  16816. v2, changed = fastpathTV.DecMapBoolInt16V(*v, true, d)
  16817. if changed {
  16818. *v = v2
  16819. }
  16820. case map[bool]int32:
  16821. fastpathTV.DecMapBoolInt32V(v, false, d)
  16822. case *map[bool]int32:
  16823. var v2 map[bool]int32
  16824. v2, changed = fastpathTV.DecMapBoolInt32V(*v, true, d)
  16825. if changed {
  16826. *v = v2
  16827. }
  16828. case map[bool]int64:
  16829. fastpathTV.DecMapBoolInt64V(v, false, d)
  16830. case *map[bool]int64:
  16831. var v2 map[bool]int64
  16832. v2, changed = fastpathTV.DecMapBoolInt64V(*v, true, d)
  16833. if changed {
  16834. *v = v2
  16835. }
  16836. case map[bool]float32:
  16837. fastpathTV.DecMapBoolFloat32V(v, false, d)
  16838. case *map[bool]float32:
  16839. var v2 map[bool]float32
  16840. v2, changed = fastpathTV.DecMapBoolFloat32V(*v, true, d)
  16841. if changed {
  16842. *v = v2
  16843. }
  16844. case map[bool]float64:
  16845. fastpathTV.DecMapBoolFloat64V(v, false, d)
  16846. case *map[bool]float64:
  16847. var v2 map[bool]float64
  16848. v2, changed = fastpathTV.DecMapBoolFloat64V(*v, true, d)
  16849. if changed {
  16850. *v = v2
  16851. }
  16852. case map[bool]bool:
  16853. fastpathTV.DecMapBoolBoolV(v, false, d)
  16854. case *map[bool]bool:
  16855. var v2 map[bool]bool
  16856. v2, changed = fastpathTV.DecMapBoolBoolV(*v, true, d)
  16857. if changed {
  16858. *v = v2
  16859. }
  16860. default:
  16861. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  16862. return false
  16863. }
  16864. return true
  16865. }
  16866. func fastpathDecodeSetZeroTypeSwitch(iv interface{}) bool {
  16867. switch v := iv.(type) {
  16868. case *[]interface{}:
  16869. *v = nil
  16870. case *[]string:
  16871. *v = nil
  16872. case *[]float32:
  16873. *v = nil
  16874. case *[]float64:
  16875. *v = nil
  16876. case *[]uint:
  16877. *v = nil
  16878. case *[]uint8:
  16879. *v = nil
  16880. case *[]uint16:
  16881. *v = nil
  16882. case *[]uint32:
  16883. *v = nil
  16884. case *[]uint64:
  16885. *v = nil
  16886. case *[]uintptr:
  16887. *v = nil
  16888. case *[]int:
  16889. *v = nil
  16890. case *[]int8:
  16891. *v = nil
  16892. case *[]int16:
  16893. *v = nil
  16894. case *[]int32:
  16895. *v = nil
  16896. case *[]int64:
  16897. *v = nil
  16898. case *[]bool:
  16899. *v = nil
  16900. case *map[interface{}]interface{}:
  16901. *v = nil
  16902. case *map[interface{}]string:
  16903. *v = nil
  16904. case *map[interface{}]uint:
  16905. *v = nil
  16906. case *map[interface{}]uint8:
  16907. *v = nil
  16908. case *map[interface{}]uint16:
  16909. *v = nil
  16910. case *map[interface{}]uint32:
  16911. *v = nil
  16912. case *map[interface{}]uint64:
  16913. *v = nil
  16914. case *map[interface{}]uintptr:
  16915. *v = nil
  16916. case *map[interface{}]int:
  16917. *v = nil
  16918. case *map[interface{}]int8:
  16919. *v = nil
  16920. case *map[interface{}]int16:
  16921. *v = nil
  16922. case *map[interface{}]int32:
  16923. *v = nil
  16924. case *map[interface{}]int64:
  16925. *v = nil
  16926. case *map[interface{}]float32:
  16927. *v = nil
  16928. case *map[interface{}]float64:
  16929. *v = nil
  16930. case *map[interface{}]bool:
  16931. *v = nil
  16932. case *map[string]interface{}:
  16933. *v = nil
  16934. case *map[string]string:
  16935. *v = nil
  16936. case *map[string]uint:
  16937. *v = nil
  16938. case *map[string]uint8:
  16939. *v = nil
  16940. case *map[string]uint16:
  16941. *v = nil
  16942. case *map[string]uint32:
  16943. *v = nil
  16944. case *map[string]uint64:
  16945. *v = nil
  16946. case *map[string]uintptr:
  16947. *v = nil
  16948. case *map[string]int:
  16949. *v = nil
  16950. case *map[string]int8:
  16951. *v = nil
  16952. case *map[string]int16:
  16953. *v = nil
  16954. case *map[string]int32:
  16955. *v = nil
  16956. case *map[string]int64:
  16957. *v = nil
  16958. case *map[string]float32:
  16959. *v = nil
  16960. case *map[string]float64:
  16961. *v = nil
  16962. case *map[string]bool:
  16963. *v = nil
  16964. case *map[float32]interface{}:
  16965. *v = nil
  16966. case *map[float32]string:
  16967. *v = nil
  16968. case *map[float32]uint:
  16969. *v = nil
  16970. case *map[float32]uint8:
  16971. *v = nil
  16972. case *map[float32]uint16:
  16973. *v = nil
  16974. case *map[float32]uint32:
  16975. *v = nil
  16976. case *map[float32]uint64:
  16977. *v = nil
  16978. case *map[float32]uintptr:
  16979. *v = nil
  16980. case *map[float32]int:
  16981. *v = nil
  16982. case *map[float32]int8:
  16983. *v = nil
  16984. case *map[float32]int16:
  16985. *v = nil
  16986. case *map[float32]int32:
  16987. *v = nil
  16988. case *map[float32]int64:
  16989. *v = nil
  16990. case *map[float32]float32:
  16991. *v = nil
  16992. case *map[float32]float64:
  16993. *v = nil
  16994. case *map[float32]bool:
  16995. *v = nil
  16996. case *map[float64]interface{}:
  16997. *v = nil
  16998. case *map[float64]string:
  16999. *v = nil
  17000. case *map[float64]uint:
  17001. *v = nil
  17002. case *map[float64]uint8:
  17003. *v = nil
  17004. case *map[float64]uint16:
  17005. *v = nil
  17006. case *map[float64]uint32:
  17007. *v = nil
  17008. case *map[float64]uint64:
  17009. *v = nil
  17010. case *map[float64]uintptr:
  17011. *v = nil
  17012. case *map[float64]int:
  17013. *v = nil
  17014. case *map[float64]int8:
  17015. *v = nil
  17016. case *map[float64]int16:
  17017. *v = nil
  17018. case *map[float64]int32:
  17019. *v = nil
  17020. case *map[float64]int64:
  17021. *v = nil
  17022. case *map[float64]float32:
  17023. *v = nil
  17024. case *map[float64]float64:
  17025. *v = nil
  17026. case *map[float64]bool:
  17027. *v = nil
  17028. case *map[uint]interface{}:
  17029. *v = nil
  17030. case *map[uint]string:
  17031. *v = nil
  17032. case *map[uint]uint:
  17033. *v = nil
  17034. case *map[uint]uint8:
  17035. *v = nil
  17036. case *map[uint]uint16:
  17037. *v = nil
  17038. case *map[uint]uint32:
  17039. *v = nil
  17040. case *map[uint]uint64:
  17041. *v = nil
  17042. case *map[uint]uintptr:
  17043. *v = nil
  17044. case *map[uint]int:
  17045. *v = nil
  17046. case *map[uint]int8:
  17047. *v = nil
  17048. case *map[uint]int16:
  17049. *v = nil
  17050. case *map[uint]int32:
  17051. *v = nil
  17052. case *map[uint]int64:
  17053. *v = nil
  17054. case *map[uint]float32:
  17055. *v = nil
  17056. case *map[uint]float64:
  17057. *v = nil
  17058. case *map[uint]bool:
  17059. *v = nil
  17060. case *map[uint8]interface{}:
  17061. *v = nil
  17062. case *map[uint8]string:
  17063. *v = nil
  17064. case *map[uint8]uint:
  17065. *v = nil
  17066. case *map[uint8]uint8:
  17067. *v = nil
  17068. case *map[uint8]uint16:
  17069. *v = nil
  17070. case *map[uint8]uint32:
  17071. *v = nil
  17072. case *map[uint8]uint64:
  17073. *v = nil
  17074. case *map[uint8]uintptr:
  17075. *v = nil
  17076. case *map[uint8]int:
  17077. *v = nil
  17078. case *map[uint8]int8:
  17079. *v = nil
  17080. case *map[uint8]int16:
  17081. *v = nil
  17082. case *map[uint8]int32:
  17083. *v = nil
  17084. case *map[uint8]int64:
  17085. *v = nil
  17086. case *map[uint8]float32:
  17087. *v = nil
  17088. case *map[uint8]float64:
  17089. *v = nil
  17090. case *map[uint8]bool:
  17091. *v = nil
  17092. case *map[uint16]interface{}:
  17093. *v = nil
  17094. case *map[uint16]string:
  17095. *v = nil
  17096. case *map[uint16]uint:
  17097. *v = nil
  17098. case *map[uint16]uint8:
  17099. *v = nil
  17100. case *map[uint16]uint16:
  17101. *v = nil
  17102. case *map[uint16]uint32:
  17103. *v = nil
  17104. case *map[uint16]uint64:
  17105. *v = nil
  17106. case *map[uint16]uintptr:
  17107. *v = nil
  17108. case *map[uint16]int:
  17109. *v = nil
  17110. case *map[uint16]int8:
  17111. *v = nil
  17112. case *map[uint16]int16:
  17113. *v = nil
  17114. case *map[uint16]int32:
  17115. *v = nil
  17116. case *map[uint16]int64:
  17117. *v = nil
  17118. case *map[uint16]float32:
  17119. *v = nil
  17120. case *map[uint16]float64:
  17121. *v = nil
  17122. case *map[uint16]bool:
  17123. *v = nil
  17124. case *map[uint32]interface{}:
  17125. *v = nil
  17126. case *map[uint32]string:
  17127. *v = nil
  17128. case *map[uint32]uint:
  17129. *v = nil
  17130. case *map[uint32]uint8:
  17131. *v = nil
  17132. case *map[uint32]uint16:
  17133. *v = nil
  17134. case *map[uint32]uint32:
  17135. *v = nil
  17136. case *map[uint32]uint64:
  17137. *v = nil
  17138. case *map[uint32]uintptr:
  17139. *v = nil
  17140. case *map[uint32]int:
  17141. *v = nil
  17142. case *map[uint32]int8:
  17143. *v = nil
  17144. case *map[uint32]int16:
  17145. *v = nil
  17146. case *map[uint32]int32:
  17147. *v = nil
  17148. case *map[uint32]int64:
  17149. *v = nil
  17150. case *map[uint32]float32:
  17151. *v = nil
  17152. case *map[uint32]float64:
  17153. *v = nil
  17154. case *map[uint32]bool:
  17155. *v = nil
  17156. case *map[uint64]interface{}:
  17157. *v = nil
  17158. case *map[uint64]string:
  17159. *v = nil
  17160. case *map[uint64]uint:
  17161. *v = nil
  17162. case *map[uint64]uint8:
  17163. *v = nil
  17164. case *map[uint64]uint16:
  17165. *v = nil
  17166. case *map[uint64]uint32:
  17167. *v = nil
  17168. case *map[uint64]uint64:
  17169. *v = nil
  17170. case *map[uint64]uintptr:
  17171. *v = nil
  17172. case *map[uint64]int:
  17173. *v = nil
  17174. case *map[uint64]int8:
  17175. *v = nil
  17176. case *map[uint64]int16:
  17177. *v = nil
  17178. case *map[uint64]int32:
  17179. *v = nil
  17180. case *map[uint64]int64:
  17181. *v = nil
  17182. case *map[uint64]float32:
  17183. *v = nil
  17184. case *map[uint64]float64:
  17185. *v = nil
  17186. case *map[uint64]bool:
  17187. *v = nil
  17188. case *map[uintptr]interface{}:
  17189. *v = nil
  17190. case *map[uintptr]string:
  17191. *v = nil
  17192. case *map[uintptr]uint:
  17193. *v = nil
  17194. case *map[uintptr]uint8:
  17195. *v = nil
  17196. case *map[uintptr]uint16:
  17197. *v = nil
  17198. case *map[uintptr]uint32:
  17199. *v = nil
  17200. case *map[uintptr]uint64:
  17201. *v = nil
  17202. case *map[uintptr]uintptr:
  17203. *v = nil
  17204. case *map[uintptr]int:
  17205. *v = nil
  17206. case *map[uintptr]int8:
  17207. *v = nil
  17208. case *map[uintptr]int16:
  17209. *v = nil
  17210. case *map[uintptr]int32:
  17211. *v = nil
  17212. case *map[uintptr]int64:
  17213. *v = nil
  17214. case *map[uintptr]float32:
  17215. *v = nil
  17216. case *map[uintptr]float64:
  17217. *v = nil
  17218. case *map[uintptr]bool:
  17219. *v = nil
  17220. case *map[int]interface{}:
  17221. *v = nil
  17222. case *map[int]string:
  17223. *v = nil
  17224. case *map[int]uint:
  17225. *v = nil
  17226. case *map[int]uint8:
  17227. *v = nil
  17228. case *map[int]uint16:
  17229. *v = nil
  17230. case *map[int]uint32:
  17231. *v = nil
  17232. case *map[int]uint64:
  17233. *v = nil
  17234. case *map[int]uintptr:
  17235. *v = nil
  17236. case *map[int]int:
  17237. *v = nil
  17238. case *map[int]int8:
  17239. *v = nil
  17240. case *map[int]int16:
  17241. *v = nil
  17242. case *map[int]int32:
  17243. *v = nil
  17244. case *map[int]int64:
  17245. *v = nil
  17246. case *map[int]float32:
  17247. *v = nil
  17248. case *map[int]float64:
  17249. *v = nil
  17250. case *map[int]bool:
  17251. *v = nil
  17252. case *map[int8]interface{}:
  17253. *v = nil
  17254. case *map[int8]string:
  17255. *v = nil
  17256. case *map[int8]uint:
  17257. *v = nil
  17258. case *map[int8]uint8:
  17259. *v = nil
  17260. case *map[int8]uint16:
  17261. *v = nil
  17262. case *map[int8]uint32:
  17263. *v = nil
  17264. case *map[int8]uint64:
  17265. *v = nil
  17266. case *map[int8]uintptr:
  17267. *v = nil
  17268. case *map[int8]int:
  17269. *v = nil
  17270. case *map[int8]int8:
  17271. *v = nil
  17272. case *map[int8]int16:
  17273. *v = nil
  17274. case *map[int8]int32:
  17275. *v = nil
  17276. case *map[int8]int64:
  17277. *v = nil
  17278. case *map[int8]float32:
  17279. *v = nil
  17280. case *map[int8]float64:
  17281. *v = nil
  17282. case *map[int8]bool:
  17283. *v = nil
  17284. case *map[int16]interface{}:
  17285. *v = nil
  17286. case *map[int16]string:
  17287. *v = nil
  17288. case *map[int16]uint:
  17289. *v = nil
  17290. case *map[int16]uint8:
  17291. *v = nil
  17292. case *map[int16]uint16:
  17293. *v = nil
  17294. case *map[int16]uint32:
  17295. *v = nil
  17296. case *map[int16]uint64:
  17297. *v = nil
  17298. case *map[int16]uintptr:
  17299. *v = nil
  17300. case *map[int16]int:
  17301. *v = nil
  17302. case *map[int16]int8:
  17303. *v = nil
  17304. case *map[int16]int16:
  17305. *v = nil
  17306. case *map[int16]int32:
  17307. *v = nil
  17308. case *map[int16]int64:
  17309. *v = nil
  17310. case *map[int16]float32:
  17311. *v = nil
  17312. case *map[int16]float64:
  17313. *v = nil
  17314. case *map[int16]bool:
  17315. *v = nil
  17316. case *map[int32]interface{}:
  17317. *v = nil
  17318. case *map[int32]string:
  17319. *v = nil
  17320. case *map[int32]uint:
  17321. *v = nil
  17322. case *map[int32]uint8:
  17323. *v = nil
  17324. case *map[int32]uint16:
  17325. *v = nil
  17326. case *map[int32]uint32:
  17327. *v = nil
  17328. case *map[int32]uint64:
  17329. *v = nil
  17330. case *map[int32]uintptr:
  17331. *v = nil
  17332. case *map[int32]int:
  17333. *v = nil
  17334. case *map[int32]int8:
  17335. *v = nil
  17336. case *map[int32]int16:
  17337. *v = nil
  17338. case *map[int32]int32:
  17339. *v = nil
  17340. case *map[int32]int64:
  17341. *v = nil
  17342. case *map[int32]float32:
  17343. *v = nil
  17344. case *map[int32]float64:
  17345. *v = nil
  17346. case *map[int32]bool:
  17347. *v = nil
  17348. case *map[int64]interface{}:
  17349. *v = nil
  17350. case *map[int64]string:
  17351. *v = nil
  17352. case *map[int64]uint:
  17353. *v = nil
  17354. case *map[int64]uint8:
  17355. *v = nil
  17356. case *map[int64]uint16:
  17357. *v = nil
  17358. case *map[int64]uint32:
  17359. *v = nil
  17360. case *map[int64]uint64:
  17361. *v = nil
  17362. case *map[int64]uintptr:
  17363. *v = nil
  17364. case *map[int64]int:
  17365. *v = nil
  17366. case *map[int64]int8:
  17367. *v = nil
  17368. case *map[int64]int16:
  17369. *v = nil
  17370. case *map[int64]int32:
  17371. *v = nil
  17372. case *map[int64]int64:
  17373. *v = nil
  17374. case *map[int64]float32:
  17375. *v = nil
  17376. case *map[int64]float64:
  17377. *v = nil
  17378. case *map[int64]bool:
  17379. *v = nil
  17380. case *map[bool]interface{}:
  17381. *v = nil
  17382. case *map[bool]string:
  17383. *v = nil
  17384. case *map[bool]uint:
  17385. *v = nil
  17386. case *map[bool]uint8:
  17387. *v = nil
  17388. case *map[bool]uint16:
  17389. *v = nil
  17390. case *map[bool]uint32:
  17391. *v = nil
  17392. case *map[bool]uint64:
  17393. *v = nil
  17394. case *map[bool]uintptr:
  17395. *v = nil
  17396. case *map[bool]int:
  17397. *v = nil
  17398. case *map[bool]int8:
  17399. *v = nil
  17400. case *map[bool]int16:
  17401. *v = nil
  17402. case *map[bool]int32:
  17403. *v = nil
  17404. case *map[bool]int64:
  17405. *v = nil
  17406. case *map[bool]float32:
  17407. *v = nil
  17408. case *map[bool]float64:
  17409. *v = nil
  17410. case *map[bool]bool:
  17411. *v = nil
  17412. default:
  17413. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  17414. return false
  17415. }
  17416. return true
  17417. }
  17418. // -- -- fast path functions
  17419. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  17420. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17421. vp := rv2i(rv).(*[]interface{})
  17422. v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d)
  17423. if changed {
  17424. *vp = v
  17425. }
  17426. } else {
  17427. v := rv2i(rv).([]interface{})
  17428. v2, changed := fastpathTV.DecSliceIntfV(v, !array, d)
  17429. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17430. copy(v, v2)
  17431. }
  17432. }
  17433. }
  17434. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  17435. v, changed := f.DecSliceIntfV(*vp, true, d)
  17436. if changed {
  17437. *vp = v
  17438. }
  17439. }
  17440. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  17441. dd := d.d
  17442. slh, containerLenS := d.decSliceHelperStart()
  17443. if containerLenS == 0 {
  17444. if canChange {
  17445. if v == nil {
  17446. v = []interface{}{}
  17447. } else if len(v) != 0 {
  17448. v = v[:0]
  17449. }
  17450. changed = true
  17451. }
  17452. slh.End()
  17453. return v, changed
  17454. }
  17455. hasLen := containerLenS > 0
  17456. var xlen int
  17457. if hasLen && canChange {
  17458. if containerLenS > cap(v) {
  17459. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17460. if xlen <= cap(v) {
  17461. v = v[:xlen]
  17462. } else {
  17463. v = make([]interface{}, xlen)
  17464. }
  17465. changed = true
  17466. } else if containerLenS != len(v) {
  17467. v = v[:containerLenS]
  17468. changed = true
  17469. }
  17470. }
  17471. j := 0
  17472. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17473. if j == 0 && len(v) == 0 && canChange {
  17474. if hasLen {
  17475. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17476. } else {
  17477. xlen = 8
  17478. }
  17479. v = make([]interface{}, xlen)
  17480. changed = true
  17481. }
  17482. // if indefinite, etc, then expand the slice if necessary
  17483. var decodeIntoBlank bool
  17484. if j >= len(v) {
  17485. if canChange {
  17486. v = append(v, nil)
  17487. changed = true
  17488. } else {
  17489. d.arrayCannotExpand(len(v), j+1)
  17490. decodeIntoBlank = true
  17491. }
  17492. }
  17493. slh.ElemContainerState(j)
  17494. if decodeIntoBlank {
  17495. d.swallow()
  17496. } else if dd.TryDecodeAsNil() {
  17497. v[j] = nil
  17498. } else {
  17499. d.decode(&v[j])
  17500. }
  17501. }
  17502. if canChange {
  17503. if j < len(v) {
  17504. v = v[:j]
  17505. changed = true
  17506. } else if j == 0 && v == nil {
  17507. v = make([]interface{}, 0)
  17508. changed = true
  17509. }
  17510. }
  17511. slh.End()
  17512. return v, changed
  17513. }
  17514. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  17515. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17516. vp := rv2i(rv).(*[]string)
  17517. v, changed := fastpathTV.DecSliceStringV(*vp, !array, d)
  17518. if changed {
  17519. *vp = v
  17520. }
  17521. } else {
  17522. v := rv2i(rv).([]string)
  17523. v2, changed := fastpathTV.DecSliceStringV(v, !array, d)
  17524. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17525. copy(v, v2)
  17526. }
  17527. }
  17528. }
  17529. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  17530. v, changed := f.DecSliceStringV(*vp, true, d)
  17531. if changed {
  17532. *vp = v
  17533. }
  17534. }
  17535. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  17536. dd := d.d
  17537. slh, containerLenS := d.decSliceHelperStart()
  17538. if containerLenS == 0 {
  17539. if canChange {
  17540. if v == nil {
  17541. v = []string{}
  17542. } else if len(v) != 0 {
  17543. v = v[:0]
  17544. }
  17545. changed = true
  17546. }
  17547. slh.End()
  17548. return v, changed
  17549. }
  17550. hasLen := containerLenS > 0
  17551. var xlen int
  17552. if hasLen && canChange {
  17553. if containerLenS > cap(v) {
  17554. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17555. if xlen <= cap(v) {
  17556. v = v[:xlen]
  17557. } else {
  17558. v = make([]string, xlen)
  17559. }
  17560. changed = true
  17561. } else if containerLenS != len(v) {
  17562. v = v[:containerLenS]
  17563. changed = true
  17564. }
  17565. }
  17566. j := 0
  17567. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17568. if j == 0 && len(v) == 0 && canChange {
  17569. if hasLen {
  17570. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17571. } else {
  17572. xlen = 8
  17573. }
  17574. v = make([]string, xlen)
  17575. changed = true
  17576. }
  17577. // if indefinite, etc, then expand the slice if necessary
  17578. var decodeIntoBlank bool
  17579. if j >= len(v) {
  17580. if canChange {
  17581. v = append(v, "")
  17582. changed = true
  17583. } else {
  17584. d.arrayCannotExpand(len(v), j+1)
  17585. decodeIntoBlank = true
  17586. }
  17587. }
  17588. slh.ElemContainerState(j)
  17589. if decodeIntoBlank {
  17590. d.swallow()
  17591. } else if dd.TryDecodeAsNil() {
  17592. v[j] = ""
  17593. } else {
  17594. v[j] = dd.DecodeString()
  17595. }
  17596. }
  17597. if canChange {
  17598. if j < len(v) {
  17599. v = v[:j]
  17600. changed = true
  17601. } else if j == 0 && v == nil {
  17602. v = make([]string, 0)
  17603. changed = true
  17604. }
  17605. }
  17606. slh.End()
  17607. return v, changed
  17608. }
  17609. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  17610. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17611. vp := rv2i(rv).(*[]float32)
  17612. v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d)
  17613. if changed {
  17614. *vp = v
  17615. }
  17616. } else {
  17617. v := rv2i(rv).([]float32)
  17618. v2, changed := fastpathTV.DecSliceFloat32V(v, !array, d)
  17619. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17620. copy(v, v2)
  17621. }
  17622. }
  17623. }
  17624. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  17625. v, changed := f.DecSliceFloat32V(*vp, true, d)
  17626. if changed {
  17627. *vp = v
  17628. }
  17629. }
  17630. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  17631. dd := d.d
  17632. slh, containerLenS := d.decSliceHelperStart()
  17633. if containerLenS == 0 {
  17634. if canChange {
  17635. if v == nil {
  17636. v = []float32{}
  17637. } else if len(v) != 0 {
  17638. v = v[:0]
  17639. }
  17640. changed = true
  17641. }
  17642. slh.End()
  17643. return v, changed
  17644. }
  17645. hasLen := containerLenS > 0
  17646. var xlen int
  17647. if hasLen && canChange {
  17648. if containerLenS > cap(v) {
  17649. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17650. if xlen <= cap(v) {
  17651. v = v[:xlen]
  17652. } else {
  17653. v = make([]float32, xlen)
  17654. }
  17655. changed = true
  17656. } else if containerLenS != len(v) {
  17657. v = v[:containerLenS]
  17658. changed = true
  17659. }
  17660. }
  17661. j := 0
  17662. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17663. if j == 0 && len(v) == 0 && canChange {
  17664. if hasLen {
  17665. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17666. } else {
  17667. xlen = 8
  17668. }
  17669. v = make([]float32, xlen)
  17670. changed = true
  17671. }
  17672. // if indefinite, etc, then expand the slice if necessary
  17673. var decodeIntoBlank bool
  17674. if j >= len(v) {
  17675. if canChange {
  17676. v = append(v, 0)
  17677. changed = true
  17678. } else {
  17679. d.arrayCannotExpand(len(v), j+1)
  17680. decodeIntoBlank = true
  17681. }
  17682. }
  17683. slh.ElemContainerState(j)
  17684. if decodeIntoBlank {
  17685. d.swallow()
  17686. } else if dd.TryDecodeAsNil() {
  17687. v[j] = 0
  17688. } else {
  17689. v[j] = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  17690. }
  17691. }
  17692. if canChange {
  17693. if j < len(v) {
  17694. v = v[:j]
  17695. changed = true
  17696. } else if j == 0 && v == nil {
  17697. v = make([]float32, 0)
  17698. changed = true
  17699. }
  17700. }
  17701. slh.End()
  17702. return v, changed
  17703. }
  17704. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  17705. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17706. vp := rv2i(rv).(*[]float64)
  17707. v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d)
  17708. if changed {
  17709. *vp = v
  17710. }
  17711. } else {
  17712. v := rv2i(rv).([]float64)
  17713. v2, changed := fastpathTV.DecSliceFloat64V(v, !array, d)
  17714. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17715. copy(v, v2)
  17716. }
  17717. }
  17718. }
  17719. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  17720. v, changed := f.DecSliceFloat64V(*vp, true, d)
  17721. if changed {
  17722. *vp = v
  17723. }
  17724. }
  17725. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  17726. dd := d.d
  17727. slh, containerLenS := d.decSliceHelperStart()
  17728. if containerLenS == 0 {
  17729. if canChange {
  17730. if v == nil {
  17731. v = []float64{}
  17732. } else if len(v) != 0 {
  17733. v = v[:0]
  17734. }
  17735. changed = true
  17736. }
  17737. slh.End()
  17738. return v, changed
  17739. }
  17740. hasLen := containerLenS > 0
  17741. var xlen int
  17742. if hasLen && canChange {
  17743. if containerLenS > cap(v) {
  17744. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17745. if xlen <= cap(v) {
  17746. v = v[:xlen]
  17747. } else {
  17748. v = make([]float64, xlen)
  17749. }
  17750. changed = true
  17751. } else if containerLenS != len(v) {
  17752. v = v[:containerLenS]
  17753. changed = true
  17754. }
  17755. }
  17756. j := 0
  17757. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17758. if j == 0 && len(v) == 0 && canChange {
  17759. if hasLen {
  17760. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17761. } else {
  17762. xlen = 8
  17763. }
  17764. v = make([]float64, xlen)
  17765. changed = true
  17766. }
  17767. // if indefinite, etc, then expand the slice if necessary
  17768. var decodeIntoBlank bool
  17769. if j >= len(v) {
  17770. if canChange {
  17771. v = append(v, 0)
  17772. changed = true
  17773. } else {
  17774. d.arrayCannotExpand(len(v), j+1)
  17775. decodeIntoBlank = true
  17776. }
  17777. }
  17778. slh.ElemContainerState(j)
  17779. if decodeIntoBlank {
  17780. d.swallow()
  17781. } else if dd.TryDecodeAsNil() {
  17782. v[j] = 0
  17783. } else {
  17784. v[j] = dd.DecodeFloat64()
  17785. }
  17786. }
  17787. if canChange {
  17788. if j < len(v) {
  17789. v = v[:j]
  17790. changed = true
  17791. } else if j == 0 && v == nil {
  17792. v = make([]float64, 0)
  17793. changed = true
  17794. }
  17795. }
  17796. slh.End()
  17797. return v, changed
  17798. }
  17799. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  17800. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17801. vp := rv2i(rv).(*[]uint)
  17802. v, changed := fastpathTV.DecSliceUintV(*vp, !array, d)
  17803. if changed {
  17804. *vp = v
  17805. }
  17806. } else {
  17807. v := rv2i(rv).([]uint)
  17808. v2, changed := fastpathTV.DecSliceUintV(v, !array, d)
  17809. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17810. copy(v, v2)
  17811. }
  17812. }
  17813. }
  17814. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  17815. v, changed := f.DecSliceUintV(*vp, true, d)
  17816. if changed {
  17817. *vp = v
  17818. }
  17819. }
  17820. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  17821. dd := d.d
  17822. slh, containerLenS := d.decSliceHelperStart()
  17823. if containerLenS == 0 {
  17824. if canChange {
  17825. if v == nil {
  17826. v = []uint{}
  17827. } else if len(v) != 0 {
  17828. v = v[:0]
  17829. }
  17830. changed = true
  17831. }
  17832. slh.End()
  17833. return v, changed
  17834. }
  17835. hasLen := containerLenS > 0
  17836. var xlen int
  17837. if hasLen && canChange {
  17838. if containerLenS > cap(v) {
  17839. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17840. if xlen <= cap(v) {
  17841. v = v[:xlen]
  17842. } else {
  17843. v = make([]uint, xlen)
  17844. }
  17845. changed = true
  17846. } else if containerLenS != len(v) {
  17847. v = v[:containerLenS]
  17848. changed = true
  17849. }
  17850. }
  17851. j := 0
  17852. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17853. if j == 0 && len(v) == 0 && canChange {
  17854. if hasLen {
  17855. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17856. } else {
  17857. xlen = 8
  17858. }
  17859. v = make([]uint, xlen)
  17860. changed = true
  17861. }
  17862. // if indefinite, etc, then expand the slice if necessary
  17863. var decodeIntoBlank bool
  17864. if j >= len(v) {
  17865. if canChange {
  17866. v = append(v, 0)
  17867. changed = true
  17868. } else {
  17869. d.arrayCannotExpand(len(v), j+1)
  17870. decodeIntoBlank = true
  17871. }
  17872. }
  17873. slh.ElemContainerState(j)
  17874. if decodeIntoBlank {
  17875. d.swallow()
  17876. } else if dd.TryDecodeAsNil() {
  17877. v[j] = 0
  17878. } else {
  17879. v[j] = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  17880. }
  17881. }
  17882. if canChange {
  17883. if j < len(v) {
  17884. v = v[:j]
  17885. changed = true
  17886. } else if j == 0 && v == nil {
  17887. v = make([]uint, 0)
  17888. changed = true
  17889. }
  17890. }
  17891. slh.End()
  17892. return v, changed
  17893. }
  17894. func (d *Decoder) fastpathDecSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  17895. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17896. vp := rv2i(rv).(*[]uint8)
  17897. v, changed := fastpathTV.DecSliceUint8V(*vp, !array, d)
  17898. if changed {
  17899. *vp = v
  17900. }
  17901. } else {
  17902. v := rv2i(rv).([]uint8)
  17903. v2, changed := fastpathTV.DecSliceUint8V(v, !array, d)
  17904. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17905. copy(v, v2)
  17906. }
  17907. }
  17908. }
  17909. func (f fastpathT) DecSliceUint8X(vp *[]uint8, d *Decoder) {
  17910. v, changed := f.DecSliceUint8V(*vp, true, d)
  17911. if changed {
  17912. *vp = v
  17913. }
  17914. }
  17915. func (_ fastpathT) DecSliceUint8V(v []uint8, canChange bool, d *Decoder) (_ []uint8, changed bool) {
  17916. dd := d.d
  17917. slh, containerLenS := d.decSliceHelperStart()
  17918. if containerLenS == 0 {
  17919. if canChange {
  17920. if v == nil {
  17921. v = []uint8{}
  17922. } else if len(v) != 0 {
  17923. v = v[:0]
  17924. }
  17925. changed = true
  17926. }
  17927. slh.End()
  17928. return v, changed
  17929. }
  17930. hasLen := containerLenS > 0
  17931. var xlen int
  17932. if hasLen && canChange {
  17933. if containerLenS > cap(v) {
  17934. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17935. if xlen <= cap(v) {
  17936. v = v[:xlen]
  17937. } else {
  17938. v = make([]uint8, xlen)
  17939. }
  17940. changed = true
  17941. } else if containerLenS != len(v) {
  17942. v = v[:containerLenS]
  17943. changed = true
  17944. }
  17945. }
  17946. j := 0
  17947. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17948. if j == 0 && len(v) == 0 && canChange {
  17949. if hasLen {
  17950. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17951. } else {
  17952. xlen = 8
  17953. }
  17954. v = make([]uint8, xlen)
  17955. changed = true
  17956. }
  17957. // if indefinite, etc, then expand the slice if necessary
  17958. var decodeIntoBlank bool
  17959. if j >= len(v) {
  17960. if canChange {
  17961. v = append(v, 0)
  17962. changed = true
  17963. } else {
  17964. d.arrayCannotExpand(len(v), j+1)
  17965. decodeIntoBlank = true
  17966. }
  17967. }
  17968. slh.ElemContainerState(j)
  17969. if decodeIntoBlank {
  17970. d.swallow()
  17971. } else if dd.TryDecodeAsNil() {
  17972. v[j] = 0
  17973. } else {
  17974. v[j] = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  17975. }
  17976. }
  17977. if canChange {
  17978. if j < len(v) {
  17979. v = v[:j]
  17980. changed = true
  17981. } else if j == 0 && v == nil {
  17982. v = make([]uint8, 0)
  17983. changed = true
  17984. }
  17985. }
  17986. slh.End()
  17987. return v, changed
  17988. }
  17989. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  17990. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17991. vp := rv2i(rv).(*[]uint16)
  17992. v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d)
  17993. if changed {
  17994. *vp = v
  17995. }
  17996. } else {
  17997. v := rv2i(rv).([]uint16)
  17998. v2, changed := fastpathTV.DecSliceUint16V(v, !array, d)
  17999. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18000. copy(v, v2)
  18001. }
  18002. }
  18003. }
  18004. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  18005. v, changed := f.DecSliceUint16V(*vp, true, d)
  18006. if changed {
  18007. *vp = v
  18008. }
  18009. }
  18010. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  18011. dd := d.d
  18012. slh, containerLenS := d.decSliceHelperStart()
  18013. if containerLenS == 0 {
  18014. if canChange {
  18015. if v == nil {
  18016. v = []uint16{}
  18017. } else if len(v) != 0 {
  18018. v = v[:0]
  18019. }
  18020. changed = true
  18021. }
  18022. slh.End()
  18023. return v, changed
  18024. }
  18025. hasLen := containerLenS > 0
  18026. var xlen int
  18027. if hasLen && canChange {
  18028. if containerLenS > cap(v) {
  18029. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18030. if xlen <= cap(v) {
  18031. v = v[:xlen]
  18032. } else {
  18033. v = make([]uint16, xlen)
  18034. }
  18035. changed = true
  18036. } else if containerLenS != len(v) {
  18037. v = v[:containerLenS]
  18038. changed = true
  18039. }
  18040. }
  18041. j := 0
  18042. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18043. if j == 0 && len(v) == 0 && canChange {
  18044. if hasLen {
  18045. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18046. } else {
  18047. xlen = 8
  18048. }
  18049. v = make([]uint16, xlen)
  18050. changed = true
  18051. }
  18052. // if indefinite, etc, then expand the slice if necessary
  18053. var decodeIntoBlank bool
  18054. if j >= len(v) {
  18055. if canChange {
  18056. v = append(v, 0)
  18057. changed = true
  18058. } else {
  18059. d.arrayCannotExpand(len(v), j+1)
  18060. decodeIntoBlank = true
  18061. }
  18062. }
  18063. slh.ElemContainerState(j)
  18064. if decodeIntoBlank {
  18065. d.swallow()
  18066. } else if dd.TryDecodeAsNil() {
  18067. v[j] = 0
  18068. } else {
  18069. v[j] = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  18070. }
  18071. }
  18072. if canChange {
  18073. if j < len(v) {
  18074. v = v[:j]
  18075. changed = true
  18076. } else if j == 0 && v == nil {
  18077. v = make([]uint16, 0)
  18078. changed = true
  18079. }
  18080. }
  18081. slh.End()
  18082. return v, changed
  18083. }
  18084. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  18085. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18086. vp := rv2i(rv).(*[]uint32)
  18087. v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d)
  18088. if changed {
  18089. *vp = v
  18090. }
  18091. } else {
  18092. v := rv2i(rv).([]uint32)
  18093. v2, changed := fastpathTV.DecSliceUint32V(v, !array, d)
  18094. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18095. copy(v, v2)
  18096. }
  18097. }
  18098. }
  18099. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  18100. v, changed := f.DecSliceUint32V(*vp, true, d)
  18101. if changed {
  18102. *vp = v
  18103. }
  18104. }
  18105. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  18106. dd := d.d
  18107. slh, containerLenS := d.decSliceHelperStart()
  18108. if containerLenS == 0 {
  18109. if canChange {
  18110. if v == nil {
  18111. v = []uint32{}
  18112. } else if len(v) != 0 {
  18113. v = v[:0]
  18114. }
  18115. changed = true
  18116. }
  18117. slh.End()
  18118. return v, changed
  18119. }
  18120. hasLen := containerLenS > 0
  18121. var xlen int
  18122. if hasLen && canChange {
  18123. if containerLenS > cap(v) {
  18124. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18125. if xlen <= cap(v) {
  18126. v = v[:xlen]
  18127. } else {
  18128. v = make([]uint32, xlen)
  18129. }
  18130. changed = true
  18131. } else if containerLenS != len(v) {
  18132. v = v[:containerLenS]
  18133. changed = true
  18134. }
  18135. }
  18136. j := 0
  18137. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18138. if j == 0 && len(v) == 0 && canChange {
  18139. if hasLen {
  18140. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18141. } else {
  18142. xlen = 8
  18143. }
  18144. v = make([]uint32, xlen)
  18145. changed = true
  18146. }
  18147. // if indefinite, etc, then expand the slice if necessary
  18148. var decodeIntoBlank bool
  18149. if j >= len(v) {
  18150. if canChange {
  18151. v = append(v, 0)
  18152. changed = true
  18153. } else {
  18154. d.arrayCannotExpand(len(v), j+1)
  18155. decodeIntoBlank = true
  18156. }
  18157. }
  18158. slh.ElemContainerState(j)
  18159. if decodeIntoBlank {
  18160. d.swallow()
  18161. } else if dd.TryDecodeAsNil() {
  18162. v[j] = 0
  18163. } else {
  18164. v[j] = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  18165. }
  18166. }
  18167. if canChange {
  18168. if j < len(v) {
  18169. v = v[:j]
  18170. changed = true
  18171. } else if j == 0 && v == nil {
  18172. v = make([]uint32, 0)
  18173. changed = true
  18174. }
  18175. }
  18176. slh.End()
  18177. return v, changed
  18178. }
  18179. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  18180. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18181. vp := rv2i(rv).(*[]uint64)
  18182. v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d)
  18183. if changed {
  18184. *vp = v
  18185. }
  18186. } else {
  18187. v := rv2i(rv).([]uint64)
  18188. v2, changed := fastpathTV.DecSliceUint64V(v, !array, d)
  18189. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18190. copy(v, v2)
  18191. }
  18192. }
  18193. }
  18194. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  18195. v, changed := f.DecSliceUint64V(*vp, true, d)
  18196. if changed {
  18197. *vp = v
  18198. }
  18199. }
  18200. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  18201. dd := d.d
  18202. slh, containerLenS := d.decSliceHelperStart()
  18203. if containerLenS == 0 {
  18204. if canChange {
  18205. if v == nil {
  18206. v = []uint64{}
  18207. } else if len(v) != 0 {
  18208. v = v[:0]
  18209. }
  18210. changed = true
  18211. }
  18212. slh.End()
  18213. return v, changed
  18214. }
  18215. hasLen := containerLenS > 0
  18216. var xlen int
  18217. if hasLen && canChange {
  18218. if containerLenS > cap(v) {
  18219. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18220. if xlen <= cap(v) {
  18221. v = v[:xlen]
  18222. } else {
  18223. v = make([]uint64, xlen)
  18224. }
  18225. changed = true
  18226. } else if containerLenS != len(v) {
  18227. v = v[:containerLenS]
  18228. changed = true
  18229. }
  18230. }
  18231. j := 0
  18232. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18233. if j == 0 && len(v) == 0 && canChange {
  18234. if hasLen {
  18235. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18236. } else {
  18237. xlen = 8
  18238. }
  18239. v = make([]uint64, xlen)
  18240. changed = true
  18241. }
  18242. // if indefinite, etc, then expand the slice if necessary
  18243. var decodeIntoBlank bool
  18244. if j >= len(v) {
  18245. if canChange {
  18246. v = append(v, 0)
  18247. changed = true
  18248. } else {
  18249. d.arrayCannotExpand(len(v), j+1)
  18250. decodeIntoBlank = true
  18251. }
  18252. }
  18253. slh.ElemContainerState(j)
  18254. if decodeIntoBlank {
  18255. d.swallow()
  18256. } else if dd.TryDecodeAsNil() {
  18257. v[j] = 0
  18258. } else {
  18259. v[j] = dd.DecodeUint64()
  18260. }
  18261. }
  18262. if canChange {
  18263. if j < len(v) {
  18264. v = v[:j]
  18265. changed = true
  18266. } else if j == 0 && v == nil {
  18267. v = make([]uint64, 0)
  18268. changed = true
  18269. }
  18270. }
  18271. slh.End()
  18272. return v, changed
  18273. }
  18274. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  18275. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18276. vp := rv2i(rv).(*[]uintptr)
  18277. v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d)
  18278. if changed {
  18279. *vp = v
  18280. }
  18281. } else {
  18282. v := rv2i(rv).([]uintptr)
  18283. v2, changed := fastpathTV.DecSliceUintptrV(v, !array, d)
  18284. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18285. copy(v, v2)
  18286. }
  18287. }
  18288. }
  18289. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  18290. v, changed := f.DecSliceUintptrV(*vp, true, d)
  18291. if changed {
  18292. *vp = v
  18293. }
  18294. }
  18295. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  18296. dd := d.d
  18297. slh, containerLenS := d.decSliceHelperStart()
  18298. if containerLenS == 0 {
  18299. if canChange {
  18300. if v == nil {
  18301. v = []uintptr{}
  18302. } else if len(v) != 0 {
  18303. v = v[:0]
  18304. }
  18305. changed = true
  18306. }
  18307. slh.End()
  18308. return v, changed
  18309. }
  18310. hasLen := containerLenS > 0
  18311. var xlen int
  18312. if hasLen && canChange {
  18313. if containerLenS > cap(v) {
  18314. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18315. if xlen <= cap(v) {
  18316. v = v[:xlen]
  18317. } else {
  18318. v = make([]uintptr, xlen)
  18319. }
  18320. changed = true
  18321. } else if containerLenS != len(v) {
  18322. v = v[:containerLenS]
  18323. changed = true
  18324. }
  18325. }
  18326. j := 0
  18327. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18328. if j == 0 && len(v) == 0 && canChange {
  18329. if hasLen {
  18330. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18331. } else {
  18332. xlen = 8
  18333. }
  18334. v = make([]uintptr, xlen)
  18335. changed = true
  18336. }
  18337. // if indefinite, etc, then expand the slice if necessary
  18338. var decodeIntoBlank bool
  18339. if j >= len(v) {
  18340. if canChange {
  18341. v = append(v, 0)
  18342. changed = true
  18343. } else {
  18344. d.arrayCannotExpand(len(v), j+1)
  18345. decodeIntoBlank = true
  18346. }
  18347. }
  18348. slh.ElemContainerState(j)
  18349. if decodeIntoBlank {
  18350. d.swallow()
  18351. } else if dd.TryDecodeAsNil() {
  18352. v[j] = 0
  18353. } else {
  18354. v[j] = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  18355. }
  18356. }
  18357. if canChange {
  18358. if j < len(v) {
  18359. v = v[:j]
  18360. changed = true
  18361. } else if j == 0 && v == nil {
  18362. v = make([]uintptr, 0)
  18363. changed = true
  18364. }
  18365. }
  18366. slh.End()
  18367. return v, changed
  18368. }
  18369. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  18370. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18371. vp := rv2i(rv).(*[]int)
  18372. v, changed := fastpathTV.DecSliceIntV(*vp, !array, d)
  18373. if changed {
  18374. *vp = v
  18375. }
  18376. } else {
  18377. v := rv2i(rv).([]int)
  18378. v2, changed := fastpathTV.DecSliceIntV(v, !array, d)
  18379. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18380. copy(v, v2)
  18381. }
  18382. }
  18383. }
  18384. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  18385. v, changed := f.DecSliceIntV(*vp, true, d)
  18386. if changed {
  18387. *vp = v
  18388. }
  18389. }
  18390. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  18391. dd := d.d
  18392. slh, containerLenS := d.decSliceHelperStart()
  18393. if containerLenS == 0 {
  18394. if canChange {
  18395. if v == nil {
  18396. v = []int{}
  18397. } else if len(v) != 0 {
  18398. v = v[:0]
  18399. }
  18400. changed = true
  18401. }
  18402. slh.End()
  18403. return v, changed
  18404. }
  18405. hasLen := containerLenS > 0
  18406. var xlen int
  18407. if hasLen && canChange {
  18408. if containerLenS > cap(v) {
  18409. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18410. if xlen <= cap(v) {
  18411. v = v[:xlen]
  18412. } else {
  18413. v = make([]int, xlen)
  18414. }
  18415. changed = true
  18416. } else if containerLenS != len(v) {
  18417. v = v[:containerLenS]
  18418. changed = true
  18419. }
  18420. }
  18421. j := 0
  18422. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18423. if j == 0 && len(v) == 0 && canChange {
  18424. if hasLen {
  18425. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18426. } else {
  18427. xlen = 8
  18428. }
  18429. v = make([]int, xlen)
  18430. changed = true
  18431. }
  18432. // if indefinite, etc, then expand the slice if necessary
  18433. var decodeIntoBlank bool
  18434. if j >= len(v) {
  18435. if canChange {
  18436. v = append(v, 0)
  18437. changed = true
  18438. } else {
  18439. d.arrayCannotExpand(len(v), j+1)
  18440. decodeIntoBlank = true
  18441. }
  18442. }
  18443. slh.ElemContainerState(j)
  18444. if decodeIntoBlank {
  18445. d.swallow()
  18446. } else if dd.TryDecodeAsNil() {
  18447. v[j] = 0
  18448. } else {
  18449. v[j] = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  18450. }
  18451. }
  18452. if canChange {
  18453. if j < len(v) {
  18454. v = v[:j]
  18455. changed = true
  18456. } else if j == 0 && v == nil {
  18457. v = make([]int, 0)
  18458. changed = true
  18459. }
  18460. }
  18461. slh.End()
  18462. return v, changed
  18463. }
  18464. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  18465. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18466. vp := rv2i(rv).(*[]int8)
  18467. v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d)
  18468. if changed {
  18469. *vp = v
  18470. }
  18471. } else {
  18472. v := rv2i(rv).([]int8)
  18473. v2, changed := fastpathTV.DecSliceInt8V(v, !array, d)
  18474. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18475. copy(v, v2)
  18476. }
  18477. }
  18478. }
  18479. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  18480. v, changed := f.DecSliceInt8V(*vp, true, d)
  18481. if changed {
  18482. *vp = v
  18483. }
  18484. }
  18485. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  18486. dd := d.d
  18487. slh, containerLenS := d.decSliceHelperStart()
  18488. if containerLenS == 0 {
  18489. if canChange {
  18490. if v == nil {
  18491. v = []int8{}
  18492. } else if len(v) != 0 {
  18493. v = v[:0]
  18494. }
  18495. changed = true
  18496. }
  18497. slh.End()
  18498. return v, changed
  18499. }
  18500. hasLen := containerLenS > 0
  18501. var xlen int
  18502. if hasLen && canChange {
  18503. if containerLenS > cap(v) {
  18504. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18505. if xlen <= cap(v) {
  18506. v = v[:xlen]
  18507. } else {
  18508. v = make([]int8, xlen)
  18509. }
  18510. changed = true
  18511. } else if containerLenS != len(v) {
  18512. v = v[:containerLenS]
  18513. changed = true
  18514. }
  18515. }
  18516. j := 0
  18517. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18518. if j == 0 && len(v) == 0 && canChange {
  18519. if hasLen {
  18520. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18521. } else {
  18522. xlen = 8
  18523. }
  18524. v = make([]int8, xlen)
  18525. changed = true
  18526. }
  18527. // if indefinite, etc, then expand the slice if necessary
  18528. var decodeIntoBlank bool
  18529. if j >= len(v) {
  18530. if canChange {
  18531. v = append(v, 0)
  18532. changed = true
  18533. } else {
  18534. d.arrayCannotExpand(len(v), j+1)
  18535. decodeIntoBlank = true
  18536. }
  18537. }
  18538. slh.ElemContainerState(j)
  18539. if decodeIntoBlank {
  18540. d.swallow()
  18541. } else if dd.TryDecodeAsNil() {
  18542. v[j] = 0
  18543. } else {
  18544. v[j] = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  18545. }
  18546. }
  18547. if canChange {
  18548. if j < len(v) {
  18549. v = v[:j]
  18550. changed = true
  18551. } else if j == 0 && v == nil {
  18552. v = make([]int8, 0)
  18553. changed = true
  18554. }
  18555. }
  18556. slh.End()
  18557. return v, changed
  18558. }
  18559. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  18560. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18561. vp := rv2i(rv).(*[]int16)
  18562. v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d)
  18563. if changed {
  18564. *vp = v
  18565. }
  18566. } else {
  18567. v := rv2i(rv).([]int16)
  18568. v2, changed := fastpathTV.DecSliceInt16V(v, !array, d)
  18569. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18570. copy(v, v2)
  18571. }
  18572. }
  18573. }
  18574. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  18575. v, changed := f.DecSliceInt16V(*vp, true, d)
  18576. if changed {
  18577. *vp = v
  18578. }
  18579. }
  18580. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  18581. dd := d.d
  18582. slh, containerLenS := d.decSliceHelperStart()
  18583. if containerLenS == 0 {
  18584. if canChange {
  18585. if v == nil {
  18586. v = []int16{}
  18587. } else if len(v) != 0 {
  18588. v = v[:0]
  18589. }
  18590. changed = true
  18591. }
  18592. slh.End()
  18593. return v, changed
  18594. }
  18595. hasLen := containerLenS > 0
  18596. var xlen int
  18597. if hasLen && canChange {
  18598. if containerLenS > cap(v) {
  18599. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18600. if xlen <= cap(v) {
  18601. v = v[:xlen]
  18602. } else {
  18603. v = make([]int16, xlen)
  18604. }
  18605. changed = true
  18606. } else if containerLenS != len(v) {
  18607. v = v[:containerLenS]
  18608. changed = true
  18609. }
  18610. }
  18611. j := 0
  18612. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18613. if j == 0 && len(v) == 0 && canChange {
  18614. if hasLen {
  18615. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18616. } else {
  18617. xlen = 8
  18618. }
  18619. v = make([]int16, xlen)
  18620. changed = true
  18621. }
  18622. // if indefinite, etc, then expand the slice if necessary
  18623. var decodeIntoBlank bool
  18624. if j >= len(v) {
  18625. if canChange {
  18626. v = append(v, 0)
  18627. changed = true
  18628. } else {
  18629. d.arrayCannotExpand(len(v), j+1)
  18630. decodeIntoBlank = true
  18631. }
  18632. }
  18633. slh.ElemContainerState(j)
  18634. if decodeIntoBlank {
  18635. d.swallow()
  18636. } else if dd.TryDecodeAsNil() {
  18637. v[j] = 0
  18638. } else {
  18639. v[j] = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  18640. }
  18641. }
  18642. if canChange {
  18643. if j < len(v) {
  18644. v = v[:j]
  18645. changed = true
  18646. } else if j == 0 && v == nil {
  18647. v = make([]int16, 0)
  18648. changed = true
  18649. }
  18650. }
  18651. slh.End()
  18652. return v, changed
  18653. }
  18654. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  18655. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18656. vp := rv2i(rv).(*[]int32)
  18657. v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d)
  18658. if changed {
  18659. *vp = v
  18660. }
  18661. } else {
  18662. v := rv2i(rv).([]int32)
  18663. v2, changed := fastpathTV.DecSliceInt32V(v, !array, d)
  18664. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18665. copy(v, v2)
  18666. }
  18667. }
  18668. }
  18669. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  18670. v, changed := f.DecSliceInt32V(*vp, true, d)
  18671. if changed {
  18672. *vp = v
  18673. }
  18674. }
  18675. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  18676. dd := d.d
  18677. slh, containerLenS := d.decSliceHelperStart()
  18678. if containerLenS == 0 {
  18679. if canChange {
  18680. if v == nil {
  18681. v = []int32{}
  18682. } else if len(v) != 0 {
  18683. v = v[:0]
  18684. }
  18685. changed = true
  18686. }
  18687. slh.End()
  18688. return v, changed
  18689. }
  18690. hasLen := containerLenS > 0
  18691. var xlen int
  18692. if hasLen && canChange {
  18693. if containerLenS > cap(v) {
  18694. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18695. if xlen <= cap(v) {
  18696. v = v[:xlen]
  18697. } else {
  18698. v = make([]int32, xlen)
  18699. }
  18700. changed = true
  18701. } else if containerLenS != len(v) {
  18702. v = v[:containerLenS]
  18703. changed = true
  18704. }
  18705. }
  18706. j := 0
  18707. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18708. if j == 0 && len(v) == 0 && canChange {
  18709. if hasLen {
  18710. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18711. } else {
  18712. xlen = 8
  18713. }
  18714. v = make([]int32, xlen)
  18715. changed = true
  18716. }
  18717. // if indefinite, etc, then expand the slice if necessary
  18718. var decodeIntoBlank bool
  18719. if j >= len(v) {
  18720. if canChange {
  18721. v = append(v, 0)
  18722. changed = true
  18723. } else {
  18724. d.arrayCannotExpand(len(v), j+1)
  18725. decodeIntoBlank = true
  18726. }
  18727. }
  18728. slh.ElemContainerState(j)
  18729. if decodeIntoBlank {
  18730. d.swallow()
  18731. } else if dd.TryDecodeAsNil() {
  18732. v[j] = 0
  18733. } else {
  18734. v[j] = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  18735. }
  18736. }
  18737. if canChange {
  18738. if j < len(v) {
  18739. v = v[:j]
  18740. changed = true
  18741. } else if j == 0 && v == nil {
  18742. v = make([]int32, 0)
  18743. changed = true
  18744. }
  18745. }
  18746. slh.End()
  18747. return v, changed
  18748. }
  18749. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  18750. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18751. vp := rv2i(rv).(*[]int64)
  18752. v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d)
  18753. if changed {
  18754. *vp = v
  18755. }
  18756. } else {
  18757. v := rv2i(rv).([]int64)
  18758. v2, changed := fastpathTV.DecSliceInt64V(v, !array, d)
  18759. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18760. copy(v, v2)
  18761. }
  18762. }
  18763. }
  18764. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  18765. v, changed := f.DecSliceInt64V(*vp, true, d)
  18766. if changed {
  18767. *vp = v
  18768. }
  18769. }
  18770. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  18771. dd := d.d
  18772. slh, containerLenS := d.decSliceHelperStart()
  18773. if containerLenS == 0 {
  18774. if canChange {
  18775. if v == nil {
  18776. v = []int64{}
  18777. } else if len(v) != 0 {
  18778. v = v[:0]
  18779. }
  18780. changed = true
  18781. }
  18782. slh.End()
  18783. return v, changed
  18784. }
  18785. hasLen := containerLenS > 0
  18786. var xlen int
  18787. if hasLen && canChange {
  18788. if containerLenS > cap(v) {
  18789. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18790. if xlen <= cap(v) {
  18791. v = v[:xlen]
  18792. } else {
  18793. v = make([]int64, xlen)
  18794. }
  18795. changed = true
  18796. } else if containerLenS != len(v) {
  18797. v = v[:containerLenS]
  18798. changed = true
  18799. }
  18800. }
  18801. j := 0
  18802. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18803. if j == 0 && len(v) == 0 && canChange {
  18804. if hasLen {
  18805. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18806. } else {
  18807. xlen = 8
  18808. }
  18809. v = make([]int64, xlen)
  18810. changed = true
  18811. }
  18812. // if indefinite, etc, then expand the slice if necessary
  18813. var decodeIntoBlank bool
  18814. if j >= len(v) {
  18815. if canChange {
  18816. v = append(v, 0)
  18817. changed = true
  18818. } else {
  18819. d.arrayCannotExpand(len(v), j+1)
  18820. decodeIntoBlank = true
  18821. }
  18822. }
  18823. slh.ElemContainerState(j)
  18824. if decodeIntoBlank {
  18825. d.swallow()
  18826. } else if dd.TryDecodeAsNil() {
  18827. v[j] = 0
  18828. } else {
  18829. v[j] = dd.DecodeInt64()
  18830. }
  18831. }
  18832. if canChange {
  18833. if j < len(v) {
  18834. v = v[:j]
  18835. changed = true
  18836. } else if j == 0 && v == nil {
  18837. v = make([]int64, 0)
  18838. changed = true
  18839. }
  18840. }
  18841. slh.End()
  18842. return v, changed
  18843. }
  18844. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  18845. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18846. vp := rv2i(rv).(*[]bool)
  18847. v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d)
  18848. if changed {
  18849. *vp = v
  18850. }
  18851. } else {
  18852. v := rv2i(rv).([]bool)
  18853. v2, changed := fastpathTV.DecSliceBoolV(v, !array, d)
  18854. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18855. copy(v, v2)
  18856. }
  18857. }
  18858. }
  18859. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  18860. v, changed := f.DecSliceBoolV(*vp, true, d)
  18861. if changed {
  18862. *vp = v
  18863. }
  18864. }
  18865. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  18866. dd := d.d
  18867. slh, containerLenS := d.decSliceHelperStart()
  18868. if containerLenS == 0 {
  18869. if canChange {
  18870. if v == nil {
  18871. v = []bool{}
  18872. } else if len(v) != 0 {
  18873. v = v[:0]
  18874. }
  18875. changed = true
  18876. }
  18877. slh.End()
  18878. return v, changed
  18879. }
  18880. hasLen := containerLenS > 0
  18881. var xlen int
  18882. if hasLen && canChange {
  18883. if containerLenS > cap(v) {
  18884. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18885. if xlen <= cap(v) {
  18886. v = v[:xlen]
  18887. } else {
  18888. v = make([]bool, xlen)
  18889. }
  18890. changed = true
  18891. } else if containerLenS != len(v) {
  18892. v = v[:containerLenS]
  18893. changed = true
  18894. }
  18895. }
  18896. j := 0
  18897. for ; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18898. if j == 0 && len(v) == 0 && canChange {
  18899. if hasLen {
  18900. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18901. } else {
  18902. xlen = 8
  18903. }
  18904. v = make([]bool, xlen)
  18905. changed = true
  18906. }
  18907. // if indefinite, etc, then expand the slice if necessary
  18908. var decodeIntoBlank bool
  18909. if j >= len(v) {
  18910. if canChange {
  18911. v = append(v, false)
  18912. changed = true
  18913. } else {
  18914. d.arrayCannotExpand(len(v), j+1)
  18915. decodeIntoBlank = true
  18916. }
  18917. }
  18918. slh.ElemContainerState(j)
  18919. if decodeIntoBlank {
  18920. d.swallow()
  18921. } else if dd.TryDecodeAsNil() {
  18922. v[j] = false
  18923. } else {
  18924. v[j] = dd.DecodeBool()
  18925. }
  18926. }
  18927. if canChange {
  18928. if j < len(v) {
  18929. v = v[:j]
  18930. changed = true
  18931. } else if j == 0 && v == nil {
  18932. v = make([]bool, 0)
  18933. changed = true
  18934. }
  18935. }
  18936. slh.End()
  18937. return v, changed
  18938. }
  18939. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  18940. if rv.Kind() == reflect.Ptr {
  18941. vp := rv2i(rv).(*map[interface{}]interface{})
  18942. v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d)
  18943. if changed {
  18944. *vp = v
  18945. }
  18946. } else {
  18947. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  18948. }
  18949. }
  18950. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  18951. v, changed := f.DecMapIntfIntfV(*vp, true, d)
  18952. if changed {
  18953. *vp = v
  18954. }
  18955. }
  18956. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  18957. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  18958. dd, esep := d.d, d.hh.hasElemSeparators()
  18959. containerLen := dd.ReadMapStart()
  18960. if canChange && v == nil {
  18961. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18962. v = make(map[interface{}]interface{}, xlen)
  18963. changed = true
  18964. }
  18965. if containerLen == 0 {
  18966. dd.ReadMapEnd()
  18967. return v, changed
  18968. }
  18969. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  18970. var mk interface{}
  18971. var mv interface{}
  18972. hasLen := containerLen > 0
  18973. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  18974. if esep {
  18975. dd.ReadMapElemKey()
  18976. }
  18977. mk = nil
  18978. d.decode(&mk)
  18979. if bv, bok := mk.([]byte); bok {
  18980. mk = d.string(bv)
  18981. }
  18982. if esep {
  18983. dd.ReadMapElemValue()
  18984. }
  18985. if dd.TryDecodeAsNil() {
  18986. if v == nil {
  18987. } else if d.h.DeleteOnNilMapValue {
  18988. delete(v, mk)
  18989. } else {
  18990. v[mk] = nil
  18991. }
  18992. continue
  18993. }
  18994. if mapGet {
  18995. mv = v[mk]
  18996. } else {
  18997. mv = nil
  18998. }
  18999. d.decode(&mv)
  19000. if v != nil {
  19001. v[mk] = mv
  19002. }
  19003. }
  19004. dd.ReadMapEnd()
  19005. return v, changed
  19006. }
  19007. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  19008. if rv.Kind() == reflect.Ptr {
  19009. vp := rv2i(rv).(*map[interface{}]string)
  19010. v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d)
  19011. if changed {
  19012. *vp = v
  19013. }
  19014. } else {
  19015. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  19016. }
  19017. }
  19018. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  19019. v, changed := f.DecMapIntfStringV(*vp, true, d)
  19020. if changed {
  19021. *vp = v
  19022. }
  19023. }
  19024. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  19025. d *Decoder) (_ map[interface{}]string, changed bool) {
  19026. dd, esep := d.d, d.hh.hasElemSeparators()
  19027. containerLen := dd.ReadMapStart()
  19028. if canChange && v == nil {
  19029. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  19030. v = make(map[interface{}]string, xlen)
  19031. changed = true
  19032. }
  19033. if containerLen == 0 {
  19034. dd.ReadMapEnd()
  19035. return v, changed
  19036. }
  19037. var mk interface{}
  19038. var mv string
  19039. hasLen := containerLen > 0
  19040. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19041. if esep {
  19042. dd.ReadMapElemKey()
  19043. }
  19044. mk = nil
  19045. d.decode(&mk)
  19046. if bv, bok := mk.([]byte); bok {
  19047. mk = d.string(bv)
  19048. }
  19049. if esep {
  19050. dd.ReadMapElemValue()
  19051. }
  19052. if dd.TryDecodeAsNil() {
  19053. if v == nil {
  19054. } else if d.h.DeleteOnNilMapValue {
  19055. delete(v, mk)
  19056. } else {
  19057. v[mk] = ""
  19058. }
  19059. continue
  19060. }
  19061. mv = dd.DecodeString()
  19062. if v != nil {
  19063. v[mk] = mv
  19064. }
  19065. }
  19066. dd.ReadMapEnd()
  19067. return v, changed
  19068. }
  19069. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  19070. if rv.Kind() == reflect.Ptr {
  19071. vp := rv2i(rv).(*map[interface{}]uint)
  19072. v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d)
  19073. if changed {
  19074. *vp = v
  19075. }
  19076. } else {
  19077. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  19078. }
  19079. }
  19080. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  19081. v, changed := f.DecMapIntfUintV(*vp, true, d)
  19082. if changed {
  19083. *vp = v
  19084. }
  19085. }
  19086. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  19087. d *Decoder) (_ map[interface{}]uint, changed bool) {
  19088. dd, esep := d.d, d.hh.hasElemSeparators()
  19089. containerLen := dd.ReadMapStart()
  19090. if canChange && v == nil {
  19091. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19092. v = make(map[interface{}]uint, xlen)
  19093. changed = true
  19094. }
  19095. if containerLen == 0 {
  19096. dd.ReadMapEnd()
  19097. return v, changed
  19098. }
  19099. var mk interface{}
  19100. var mv uint
  19101. hasLen := containerLen > 0
  19102. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19103. if esep {
  19104. dd.ReadMapElemKey()
  19105. }
  19106. mk = nil
  19107. d.decode(&mk)
  19108. if bv, bok := mk.([]byte); bok {
  19109. mk = d.string(bv)
  19110. }
  19111. if esep {
  19112. dd.ReadMapElemValue()
  19113. }
  19114. if dd.TryDecodeAsNil() {
  19115. if v == nil {
  19116. } else if d.h.DeleteOnNilMapValue {
  19117. delete(v, mk)
  19118. } else {
  19119. v[mk] = 0
  19120. }
  19121. continue
  19122. }
  19123. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19124. if v != nil {
  19125. v[mk] = mv
  19126. }
  19127. }
  19128. dd.ReadMapEnd()
  19129. return v, changed
  19130. }
  19131. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  19132. if rv.Kind() == reflect.Ptr {
  19133. vp := rv2i(rv).(*map[interface{}]uint8)
  19134. v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d)
  19135. if changed {
  19136. *vp = v
  19137. }
  19138. } else {
  19139. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  19140. }
  19141. }
  19142. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  19143. v, changed := f.DecMapIntfUint8V(*vp, true, d)
  19144. if changed {
  19145. *vp = v
  19146. }
  19147. }
  19148. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  19149. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  19150. dd, esep := d.d, d.hh.hasElemSeparators()
  19151. containerLen := dd.ReadMapStart()
  19152. if canChange && v == nil {
  19153. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19154. v = make(map[interface{}]uint8, xlen)
  19155. changed = true
  19156. }
  19157. if containerLen == 0 {
  19158. dd.ReadMapEnd()
  19159. return v, changed
  19160. }
  19161. var mk interface{}
  19162. var mv uint8
  19163. hasLen := containerLen > 0
  19164. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19165. if esep {
  19166. dd.ReadMapElemKey()
  19167. }
  19168. mk = nil
  19169. d.decode(&mk)
  19170. if bv, bok := mk.([]byte); bok {
  19171. mk = d.string(bv)
  19172. }
  19173. if esep {
  19174. dd.ReadMapElemValue()
  19175. }
  19176. if dd.TryDecodeAsNil() {
  19177. if v == nil {
  19178. } else if d.h.DeleteOnNilMapValue {
  19179. delete(v, mk)
  19180. } else {
  19181. v[mk] = 0
  19182. }
  19183. continue
  19184. }
  19185. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  19186. if v != nil {
  19187. v[mk] = mv
  19188. }
  19189. }
  19190. dd.ReadMapEnd()
  19191. return v, changed
  19192. }
  19193. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  19194. if rv.Kind() == reflect.Ptr {
  19195. vp := rv2i(rv).(*map[interface{}]uint16)
  19196. v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d)
  19197. if changed {
  19198. *vp = v
  19199. }
  19200. } else {
  19201. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  19202. }
  19203. }
  19204. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  19205. v, changed := f.DecMapIntfUint16V(*vp, true, d)
  19206. if changed {
  19207. *vp = v
  19208. }
  19209. }
  19210. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  19211. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  19212. dd, esep := d.d, d.hh.hasElemSeparators()
  19213. containerLen := dd.ReadMapStart()
  19214. if canChange && v == nil {
  19215. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19216. v = make(map[interface{}]uint16, xlen)
  19217. changed = true
  19218. }
  19219. if containerLen == 0 {
  19220. dd.ReadMapEnd()
  19221. return v, changed
  19222. }
  19223. var mk interface{}
  19224. var mv uint16
  19225. hasLen := containerLen > 0
  19226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19227. if esep {
  19228. dd.ReadMapElemKey()
  19229. }
  19230. mk = nil
  19231. d.decode(&mk)
  19232. if bv, bok := mk.([]byte); bok {
  19233. mk = d.string(bv)
  19234. }
  19235. if esep {
  19236. dd.ReadMapElemValue()
  19237. }
  19238. if dd.TryDecodeAsNil() {
  19239. if v == nil {
  19240. } else if d.h.DeleteOnNilMapValue {
  19241. delete(v, mk)
  19242. } else {
  19243. v[mk] = 0
  19244. }
  19245. continue
  19246. }
  19247. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  19248. if v != nil {
  19249. v[mk] = mv
  19250. }
  19251. }
  19252. dd.ReadMapEnd()
  19253. return v, changed
  19254. }
  19255. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  19256. if rv.Kind() == reflect.Ptr {
  19257. vp := rv2i(rv).(*map[interface{}]uint32)
  19258. v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d)
  19259. if changed {
  19260. *vp = v
  19261. }
  19262. } else {
  19263. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  19264. }
  19265. }
  19266. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  19267. v, changed := f.DecMapIntfUint32V(*vp, true, d)
  19268. if changed {
  19269. *vp = v
  19270. }
  19271. }
  19272. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  19273. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  19274. dd, esep := d.d, d.hh.hasElemSeparators()
  19275. containerLen := dd.ReadMapStart()
  19276. if canChange && v == nil {
  19277. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19278. v = make(map[interface{}]uint32, xlen)
  19279. changed = true
  19280. }
  19281. if containerLen == 0 {
  19282. dd.ReadMapEnd()
  19283. return v, changed
  19284. }
  19285. var mk interface{}
  19286. var mv uint32
  19287. hasLen := containerLen > 0
  19288. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19289. if esep {
  19290. dd.ReadMapElemKey()
  19291. }
  19292. mk = nil
  19293. d.decode(&mk)
  19294. if bv, bok := mk.([]byte); bok {
  19295. mk = d.string(bv)
  19296. }
  19297. if esep {
  19298. dd.ReadMapElemValue()
  19299. }
  19300. if dd.TryDecodeAsNil() {
  19301. if v == nil {
  19302. } else if d.h.DeleteOnNilMapValue {
  19303. delete(v, mk)
  19304. } else {
  19305. v[mk] = 0
  19306. }
  19307. continue
  19308. }
  19309. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  19310. if v != nil {
  19311. v[mk] = mv
  19312. }
  19313. }
  19314. dd.ReadMapEnd()
  19315. return v, changed
  19316. }
  19317. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  19318. if rv.Kind() == reflect.Ptr {
  19319. vp := rv2i(rv).(*map[interface{}]uint64)
  19320. v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d)
  19321. if changed {
  19322. *vp = v
  19323. }
  19324. } else {
  19325. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  19326. }
  19327. }
  19328. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  19329. v, changed := f.DecMapIntfUint64V(*vp, true, d)
  19330. if changed {
  19331. *vp = v
  19332. }
  19333. }
  19334. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  19335. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  19336. dd, esep := d.d, d.hh.hasElemSeparators()
  19337. containerLen := dd.ReadMapStart()
  19338. if canChange && v == nil {
  19339. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19340. v = make(map[interface{}]uint64, xlen)
  19341. changed = true
  19342. }
  19343. if containerLen == 0 {
  19344. dd.ReadMapEnd()
  19345. return v, changed
  19346. }
  19347. var mk interface{}
  19348. var mv uint64
  19349. hasLen := containerLen > 0
  19350. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19351. if esep {
  19352. dd.ReadMapElemKey()
  19353. }
  19354. mk = nil
  19355. d.decode(&mk)
  19356. if bv, bok := mk.([]byte); bok {
  19357. mk = d.string(bv)
  19358. }
  19359. if esep {
  19360. dd.ReadMapElemValue()
  19361. }
  19362. if dd.TryDecodeAsNil() {
  19363. if v == nil {
  19364. } else if d.h.DeleteOnNilMapValue {
  19365. delete(v, mk)
  19366. } else {
  19367. v[mk] = 0
  19368. }
  19369. continue
  19370. }
  19371. mv = dd.DecodeUint64()
  19372. if v != nil {
  19373. v[mk] = mv
  19374. }
  19375. }
  19376. dd.ReadMapEnd()
  19377. return v, changed
  19378. }
  19379. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  19380. if rv.Kind() == reflect.Ptr {
  19381. vp := rv2i(rv).(*map[interface{}]uintptr)
  19382. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d)
  19383. if changed {
  19384. *vp = v
  19385. }
  19386. } else {
  19387. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  19388. }
  19389. }
  19390. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  19391. v, changed := f.DecMapIntfUintptrV(*vp, true, d)
  19392. if changed {
  19393. *vp = v
  19394. }
  19395. }
  19396. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  19397. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  19398. dd, esep := d.d, d.hh.hasElemSeparators()
  19399. containerLen := dd.ReadMapStart()
  19400. if canChange && v == nil {
  19401. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19402. v = make(map[interface{}]uintptr, xlen)
  19403. changed = true
  19404. }
  19405. if containerLen == 0 {
  19406. dd.ReadMapEnd()
  19407. return v, changed
  19408. }
  19409. var mk interface{}
  19410. var mv uintptr
  19411. hasLen := containerLen > 0
  19412. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19413. if esep {
  19414. dd.ReadMapElemKey()
  19415. }
  19416. mk = nil
  19417. d.decode(&mk)
  19418. if bv, bok := mk.([]byte); bok {
  19419. mk = d.string(bv)
  19420. }
  19421. if esep {
  19422. dd.ReadMapElemValue()
  19423. }
  19424. if dd.TryDecodeAsNil() {
  19425. if v == nil {
  19426. } else if d.h.DeleteOnNilMapValue {
  19427. delete(v, mk)
  19428. } else {
  19429. v[mk] = 0
  19430. }
  19431. continue
  19432. }
  19433. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19434. if v != nil {
  19435. v[mk] = mv
  19436. }
  19437. }
  19438. dd.ReadMapEnd()
  19439. return v, changed
  19440. }
  19441. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  19442. if rv.Kind() == reflect.Ptr {
  19443. vp := rv2i(rv).(*map[interface{}]int)
  19444. v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d)
  19445. if changed {
  19446. *vp = v
  19447. }
  19448. } else {
  19449. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  19450. }
  19451. }
  19452. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  19453. v, changed := f.DecMapIntfIntV(*vp, true, d)
  19454. if changed {
  19455. *vp = v
  19456. }
  19457. }
  19458. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  19459. d *Decoder) (_ map[interface{}]int, changed bool) {
  19460. dd, esep := d.d, d.hh.hasElemSeparators()
  19461. containerLen := dd.ReadMapStart()
  19462. if canChange && v == nil {
  19463. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19464. v = make(map[interface{}]int, xlen)
  19465. changed = true
  19466. }
  19467. if containerLen == 0 {
  19468. dd.ReadMapEnd()
  19469. return v, changed
  19470. }
  19471. var mk interface{}
  19472. var mv int
  19473. hasLen := containerLen > 0
  19474. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19475. if esep {
  19476. dd.ReadMapElemKey()
  19477. }
  19478. mk = nil
  19479. d.decode(&mk)
  19480. if bv, bok := mk.([]byte); bok {
  19481. mk = d.string(bv)
  19482. }
  19483. if esep {
  19484. dd.ReadMapElemValue()
  19485. }
  19486. if dd.TryDecodeAsNil() {
  19487. if v == nil {
  19488. } else if d.h.DeleteOnNilMapValue {
  19489. delete(v, mk)
  19490. } else {
  19491. v[mk] = 0
  19492. }
  19493. continue
  19494. }
  19495. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  19496. if v != nil {
  19497. v[mk] = mv
  19498. }
  19499. }
  19500. dd.ReadMapEnd()
  19501. return v, changed
  19502. }
  19503. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  19504. if rv.Kind() == reflect.Ptr {
  19505. vp := rv2i(rv).(*map[interface{}]int8)
  19506. v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d)
  19507. if changed {
  19508. *vp = v
  19509. }
  19510. } else {
  19511. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  19512. }
  19513. }
  19514. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  19515. v, changed := f.DecMapIntfInt8V(*vp, true, d)
  19516. if changed {
  19517. *vp = v
  19518. }
  19519. }
  19520. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  19521. d *Decoder) (_ map[interface{}]int8, changed bool) {
  19522. dd, esep := d.d, d.hh.hasElemSeparators()
  19523. containerLen := dd.ReadMapStart()
  19524. if canChange && v == nil {
  19525. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19526. v = make(map[interface{}]int8, xlen)
  19527. changed = true
  19528. }
  19529. if containerLen == 0 {
  19530. dd.ReadMapEnd()
  19531. return v, changed
  19532. }
  19533. var mk interface{}
  19534. var mv int8
  19535. hasLen := containerLen > 0
  19536. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19537. if esep {
  19538. dd.ReadMapElemKey()
  19539. }
  19540. mk = nil
  19541. d.decode(&mk)
  19542. if bv, bok := mk.([]byte); bok {
  19543. mk = d.string(bv)
  19544. }
  19545. if esep {
  19546. dd.ReadMapElemValue()
  19547. }
  19548. if dd.TryDecodeAsNil() {
  19549. if v == nil {
  19550. } else if d.h.DeleteOnNilMapValue {
  19551. delete(v, mk)
  19552. } else {
  19553. v[mk] = 0
  19554. }
  19555. continue
  19556. }
  19557. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  19558. if v != nil {
  19559. v[mk] = mv
  19560. }
  19561. }
  19562. dd.ReadMapEnd()
  19563. return v, changed
  19564. }
  19565. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  19566. if rv.Kind() == reflect.Ptr {
  19567. vp := rv2i(rv).(*map[interface{}]int16)
  19568. v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d)
  19569. if changed {
  19570. *vp = v
  19571. }
  19572. } else {
  19573. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  19574. }
  19575. }
  19576. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  19577. v, changed := f.DecMapIntfInt16V(*vp, true, d)
  19578. if changed {
  19579. *vp = v
  19580. }
  19581. }
  19582. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  19583. d *Decoder) (_ map[interface{}]int16, changed bool) {
  19584. dd, esep := d.d, d.hh.hasElemSeparators()
  19585. containerLen := dd.ReadMapStart()
  19586. if canChange && v == nil {
  19587. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19588. v = make(map[interface{}]int16, xlen)
  19589. changed = true
  19590. }
  19591. if containerLen == 0 {
  19592. dd.ReadMapEnd()
  19593. return v, changed
  19594. }
  19595. var mk interface{}
  19596. var mv int16
  19597. hasLen := containerLen > 0
  19598. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19599. if esep {
  19600. dd.ReadMapElemKey()
  19601. }
  19602. mk = nil
  19603. d.decode(&mk)
  19604. if bv, bok := mk.([]byte); bok {
  19605. mk = d.string(bv)
  19606. }
  19607. if esep {
  19608. dd.ReadMapElemValue()
  19609. }
  19610. if dd.TryDecodeAsNil() {
  19611. if v == nil {
  19612. } else if d.h.DeleteOnNilMapValue {
  19613. delete(v, mk)
  19614. } else {
  19615. v[mk] = 0
  19616. }
  19617. continue
  19618. }
  19619. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  19620. if v != nil {
  19621. v[mk] = mv
  19622. }
  19623. }
  19624. dd.ReadMapEnd()
  19625. return v, changed
  19626. }
  19627. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  19628. if rv.Kind() == reflect.Ptr {
  19629. vp := rv2i(rv).(*map[interface{}]int32)
  19630. v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d)
  19631. if changed {
  19632. *vp = v
  19633. }
  19634. } else {
  19635. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  19636. }
  19637. }
  19638. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  19639. v, changed := f.DecMapIntfInt32V(*vp, true, d)
  19640. if changed {
  19641. *vp = v
  19642. }
  19643. }
  19644. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  19645. d *Decoder) (_ map[interface{}]int32, changed bool) {
  19646. dd, esep := d.d, d.hh.hasElemSeparators()
  19647. containerLen := dd.ReadMapStart()
  19648. if canChange && v == nil {
  19649. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19650. v = make(map[interface{}]int32, xlen)
  19651. changed = true
  19652. }
  19653. if containerLen == 0 {
  19654. dd.ReadMapEnd()
  19655. return v, changed
  19656. }
  19657. var mk interface{}
  19658. var mv int32
  19659. hasLen := containerLen > 0
  19660. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19661. if esep {
  19662. dd.ReadMapElemKey()
  19663. }
  19664. mk = nil
  19665. d.decode(&mk)
  19666. if bv, bok := mk.([]byte); bok {
  19667. mk = d.string(bv)
  19668. }
  19669. if esep {
  19670. dd.ReadMapElemValue()
  19671. }
  19672. if dd.TryDecodeAsNil() {
  19673. if v == nil {
  19674. } else if d.h.DeleteOnNilMapValue {
  19675. delete(v, mk)
  19676. } else {
  19677. v[mk] = 0
  19678. }
  19679. continue
  19680. }
  19681. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  19682. if v != nil {
  19683. v[mk] = mv
  19684. }
  19685. }
  19686. dd.ReadMapEnd()
  19687. return v, changed
  19688. }
  19689. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  19690. if rv.Kind() == reflect.Ptr {
  19691. vp := rv2i(rv).(*map[interface{}]int64)
  19692. v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d)
  19693. if changed {
  19694. *vp = v
  19695. }
  19696. } else {
  19697. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  19698. }
  19699. }
  19700. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  19701. v, changed := f.DecMapIntfInt64V(*vp, true, d)
  19702. if changed {
  19703. *vp = v
  19704. }
  19705. }
  19706. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  19707. d *Decoder) (_ map[interface{}]int64, changed bool) {
  19708. dd, esep := d.d, d.hh.hasElemSeparators()
  19709. containerLen := dd.ReadMapStart()
  19710. if canChange && v == nil {
  19711. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19712. v = make(map[interface{}]int64, xlen)
  19713. changed = true
  19714. }
  19715. if containerLen == 0 {
  19716. dd.ReadMapEnd()
  19717. return v, changed
  19718. }
  19719. var mk interface{}
  19720. var mv int64
  19721. hasLen := containerLen > 0
  19722. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19723. if esep {
  19724. dd.ReadMapElemKey()
  19725. }
  19726. mk = nil
  19727. d.decode(&mk)
  19728. if bv, bok := mk.([]byte); bok {
  19729. mk = d.string(bv)
  19730. }
  19731. if esep {
  19732. dd.ReadMapElemValue()
  19733. }
  19734. if dd.TryDecodeAsNil() {
  19735. if v == nil {
  19736. } else if d.h.DeleteOnNilMapValue {
  19737. delete(v, mk)
  19738. } else {
  19739. v[mk] = 0
  19740. }
  19741. continue
  19742. }
  19743. mv = dd.DecodeInt64()
  19744. if v != nil {
  19745. v[mk] = mv
  19746. }
  19747. }
  19748. dd.ReadMapEnd()
  19749. return v, changed
  19750. }
  19751. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  19752. if rv.Kind() == reflect.Ptr {
  19753. vp := rv2i(rv).(*map[interface{}]float32)
  19754. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d)
  19755. if changed {
  19756. *vp = v
  19757. }
  19758. } else {
  19759. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  19760. }
  19761. }
  19762. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  19763. v, changed := f.DecMapIntfFloat32V(*vp, true, d)
  19764. if changed {
  19765. *vp = v
  19766. }
  19767. }
  19768. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  19769. d *Decoder) (_ map[interface{}]float32, changed bool) {
  19770. dd, esep := d.d, d.hh.hasElemSeparators()
  19771. containerLen := dd.ReadMapStart()
  19772. if canChange && v == nil {
  19773. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19774. v = make(map[interface{}]float32, xlen)
  19775. changed = true
  19776. }
  19777. if containerLen == 0 {
  19778. dd.ReadMapEnd()
  19779. return v, changed
  19780. }
  19781. var mk interface{}
  19782. var mv float32
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19806. if v != nil {
  19807. v[mk] = mv
  19808. }
  19809. }
  19810. dd.ReadMapEnd()
  19811. return v, changed
  19812. }
  19813. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  19814. if rv.Kind() == reflect.Ptr {
  19815. vp := rv2i(rv).(*map[interface{}]float64)
  19816. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d)
  19817. if changed {
  19818. *vp = v
  19819. }
  19820. } else {
  19821. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  19822. }
  19823. }
  19824. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  19825. v, changed := f.DecMapIntfFloat64V(*vp, true, d)
  19826. if changed {
  19827. *vp = v
  19828. }
  19829. }
  19830. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  19831. d *Decoder) (_ map[interface{}]float64, changed bool) {
  19832. dd, esep := d.d, d.hh.hasElemSeparators()
  19833. containerLen := dd.ReadMapStart()
  19834. if canChange && v == nil {
  19835. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19836. v = make(map[interface{}]float64, xlen)
  19837. changed = true
  19838. }
  19839. if containerLen == 0 {
  19840. dd.ReadMapEnd()
  19841. return v, changed
  19842. }
  19843. var mk interface{}
  19844. var mv float64
  19845. hasLen := containerLen > 0
  19846. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19847. if esep {
  19848. dd.ReadMapElemKey()
  19849. }
  19850. mk = nil
  19851. d.decode(&mk)
  19852. if bv, bok := mk.([]byte); bok {
  19853. mk = d.string(bv)
  19854. }
  19855. if esep {
  19856. dd.ReadMapElemValue()
  19857. }
  19858. if dd.TryDecodeAsNil() {
  19859. if v == nil {
  19860. } else if d.h.DeleteOnNilMapValue {
  19861. delete(v, mk)
  19862. } else {
  19863. v[mk] = 0
  19864. }
  19865. continue
  19866. }
  19867. mv = dd.DecodeFloat64()
  19868. if v != nil {
  19869. v[mk] = mv
  19870. }
  19871. }
  19872. dd.ReadMapEnd()
  19873. return v, changed
  19874. }
  19875. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  19876. if rv.Kind() == reflect.Ptr {
  19877. vp := rv2i(rv).(*map[interface{}]bool)
  19878. v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d)
  19879. if changed {
  19880. *vp = v
  19881. }
  19882. } else {
  19883. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  19884. }
  19885. }
  19886. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  19887. v, changed := f.DecMapIntfBoolV(*vp, true, d)
  19888. if changed {
  19889. *vp = v
  19890. }
  19891. }
  19892. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  19893. d *Decoder) (_ map[interface{}]bool, changed bool) {
  19894. dd, esep := d.d, d.hh.hasElemSeparators()
  19895. containerLen := dd.ReadMapStart()
  19896. if canChange && v == nil {
  19897. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19898. v = make(map[interface{}]bool, xlen)
  19899. changed = true
  19900. }
  19901. if containerLen == 0 {
  19902. dd.ReadMapEnd()
  19903. return v, changed
  19904. }
  19905. var mk interface{}
  19906. var mv bool
  19907. hasLen := containerLen > 0
  19908. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19909. if esep {
  19910. dd.ReadMapElemKey()
  19911. }
  19912. mk = nil
  19913. d.decode(&mk)
  19914. if bv, bok := mk.([]byte); bok {
  19915. mk = d.string(bv)
  19916. }
  19917. if esep {
  19918. dd.ReadMapElemValue()
  19919. }
  19920. if dd.TryDecodeAsNil() {
  19921. if v == nil {
  19922. } else if d.h.DeleteOnNilMapValue {
  19923. delete(v, mk)
  19924. } else {
  19925. v[mk] = false
  19926. }
  19927. continue
  19928. }
  19929. mv = dd.DecodeBool()
  19930. if v != nil {
  19931. v[mk] = mv
  19932. }
  19933. }
  19934. dd.ReadMapEnd()
  19935. return v, changed
  19936. }
  19937. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  19938. if rv.Kind() == reflect.Ptr {
  19939. vp := rv2i(rv).(*map[string]interface{})
  19940. v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d)
  19941. if changed {
  19942. *vp = v
  19943. }
  19944. } else {
  19945. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  19946. }
  19947. }
  19948. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  19949. v, changed := f.DecMapStringIntfV(*vp, true, d)
  19950. if changed {
  19951. *vp = v
  19952. }
  19953. }
  19954. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  19955. d *Decoder) (_ map[string]interface{}, changed bool) {
  19956. dd, esep := d.d, d.hh.hasElemSeparators()
  19957. containerLen := dd.ReadMapStart()
  19958. if canChange && v == nil {
  19959. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  19960. v = make(map[string]interface{}, xlen)
  19961. changed = true
  19962. }
  19963. if containerLen == 0 {
  19964. dd.ReadMapEnd()
  19965. return v, changed
  19966. }
  19967. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  19968. var mk string
  19969. var mv interface{}
  19970. hasLen := containerLen > 0
  19971. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19972. if esep {
  19973. dd.ReadMapElemKey()
  19974. }
  19975. mk = dd.DecodeString()
  19976. if esep {
  19977. dd.ReadMapElemValue()
  19978. }
  19979. if dd.TryDecodeAsNil() {
  19980. if v == nil {
  19981. } else if d.h.DeleteOnNilMapValue {
  19982. delete(v, mk)
  19983. } else {
  19984. v[mk] = nil
  19985. }
  19986. continue
  19987. }
  19988. if mapGet {
  19989. mv = v[mk]
  19990. } else {
  19991. mv = nil
  19992. }
  19993. d.decode(&mv)
  19994. if v != nil {
  19995. v[mk] = mv
  19996. }
  19997. }
  19998. dd.ReadMapEnd()
  19999. return v, changed
  20000. }
  20001. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  20002. if rv.Kind() == reflect.Ptr {
  20003. vp := rv2i(rv).(*map[string]string)
  20004. v, changed := fastpathTV.DecMapStringStringV(*vp, true, d)
  20005. if changed {
  20006. *vp = v
  20007. }
  20008. } else {
  20009. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  20010. }
  20011. }
  20012. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  20013. v, changed := f.DecMapStringStringV(*vp, true, d)
  20014. if changed {
  20015. *vp = v
  20016. }
  20017. }
  20018. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  20019. d *Decoder) (_ map[string]string, changed bool) {
  20020. dd, esep := d.d, d.hh.hasElemSeparators()
  20021. containerLen := dd.ReadMapStart()
  20022. if canChange && v == nil {
  20023. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20024. v = make(map[string]string, xlen)
  20025. changed = true
  20026. }
  20027. if containerLen == 0 {
  20028. dd.ReadMapEnd()
  20029. return v, changed
  20030. }
  20031. var mk string
  20032. var mv string
  20033. hasLen := containerLen > 0
  20034. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20035. if esep {
  20036. dd.ReadMapElemKey()
  20037. }
  20038. mk = dd.DecodeString()
  20039. if esep {
  20040. dd.ReadMapElemValue()
  20041. }
  20042. if dd.TryDecodeAsNil() {
  20043. if v == nil {
  20044. } else if d.h.DeleteOnNilMapValue {
  20045. delete(v, mk)
  20046. } else {
  20047. v[mk] = ""
  20048. }
  20049. continue
  20050. }
  20051. mv = dd.DecodeString()
  20052. if v != nil {
  20053. v[mk] = mv
  20054. }
  20055. }
  20056. dd.ReadMapEnd()
  20057. return v, changed
  20058. }
  20059. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  20060. if rv.Kind() == reflect.Ptr {
  20061. vp := rv2i(rv).(*map[string]uint)
  20062. v, changed := fastpathTV.DecMapStringUintV(*vp, true, d)
  20063. if changed {
  20064. *vp = v
  20065. }
  20066. } else {
  20067. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  20068. }
  20069. }
  20070. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  20071. v, changed := f.DecMapStringUintV(*vp, true, d)
  20072. if changed {
  20073. *vp = v
  20074. }
  20075. }
  20076. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  20077. d *Decoder) (_ map[string]uint, changed bool) {
  20078. dd, esep := d.d, d.hh.hasElemSeparators()
  20079. containerLen := dd.ReadMapStart()
  20080. if canChange && v == nil {
  20081. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20082. v = make(map[string]uint, xlen)
  20083. changed = true
  20084. }
  20085. if containerLen == 0 {
  20086. dd.ReadMapEnd()
  20087. return v, changed
  20088. }
  20089. var mk string
  20090. var mv uint
  20091. hasLen := containerLen > 0
  20092. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20093. if esep {
  20094. dd.ReadMapElemKey()
  20095. }
  20096. mk = dd.DecodeString()
  20097. if esep {
  20098. dd.ReadMapElemValue()
  20099. }
  20100. if dd.TryDecodeAsNil() {
  20101. if v == nil {
  20102. } else if d.h.DeleteOnNilMapValue {
  20103. delete(v, mk)
  20104. } else {
  20105. v[mk] = 0
  20106. }
  20107. continue
  20108. }
  20109. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20110. if v != nil {
  20111. v[mk] = mv
  20112. }
  20113. }
  20114. dd.ReadMapEnd()
  20115. return v, changed
  20116. }
  20117. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  20118. if rv.Kind() == reflect.Ptr {
  20119. vp := rv2i(rv).(*map[string]uint8)
  20120. v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d)
  20121. if changed {
  20122. *vp = v
  20123. }
  20124. } else {
  20125. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  20126. }
  20127. }
  20128. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  20129. v, changed := f.DecMapStringUint8V(*vp, true, d)
  20130. if changed {
  20131. *vp = v
  20132. }
  20133. }
  20134. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  20135. d *Decoder) (_ map[string]uint8, changed bool) {
  20136. dd, esep := d.d, d.hh.hasElemSeparators()
  20137. containerLen := dd.ReadMapStart()
  20138. if canChange && v == nil {
  20139. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20140. v = make(map[string]uint8, xlen)
  20141. changed = true
  20142. }
  20143. if containerLen == 0 {
  20144. dd.ReadMapEnd()
  20145. return v, changed
  20146. }
  20147. var mk string
  20148. var mv uint8
  20149. hasLen := containerLen > 0
  20150. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20151. if esep {
  20152. dd.ReadMapElemKey()
  20153. }
  20154. mk = dd.DecodeString()
  20155. if esep {
  20156. dd.ReadMapElemValue()
  20157. }
  20158. if dd.TryDecodeAsNil() {
  20159. if v == nil {
  20160. } else if d.h.DeleteOnNilMapValue {
  20161. delete(v, mk)
  20162. } else {
  20163. v[mk] = 0
  20164. }
  20165. continue
  20166. }
  20167. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  20168. if v != nil {
  20169. v[mk] = mv
  20170. }
  20171. }
  20172. dd.ReadMapEnd()
  20173. return v, changed
  20174. }
  20175. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  20176. if rv.Kind() == reflect.Ptr {
  20177. vp := rv2i(rv).(*map[string]uint16)
  20178. v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d)
  20179. if changed {
  20180. *vp = v
  20181. }
  20182. } else {
  20183. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  20184. }
  20185. }
  20186. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  20187. v, changed := f.DecMapStringUint16V(*vp, true, d)
  20188. if changed {
  20189. *vp = v
  20190. }
  20191. }
  20192. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  20193. d *Decoder) (_ map[string]uint16, changed bool) {
  20194. dd, esep := d.d, d.hh.hasElemSeparators()
  20195. containerLen := dd.ReadMapStart()
  20196. if canChange && v == nil {
  20197. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20198. v = make(map[string]uint16, xlen)
  20199. changed = true
  20200. }
  20201. if containerLen == 0 {
  20202. dd.ReadMapEnd()
  20203. return v, changed
  20204. }
  20205. var mk string
  20206. var mv uint16
  20207. hasLen := containerLen > 0
  20208. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20209. if esep {
  20210. dd.ReadMapElemKey()
  20211. }
  20212. mk = dd.DecodeString()
  20213. if esep {
  20214. dd.ReadMapElemValue()
  20215. }
  20216. if dd.TryDecodeAsNil() {
  20217. if v == nil {
  20218. } else if d.h.DeleteOnNilMapValue {
  20219. delete(v, mk)
  20220. } else {
  20221. v[mk] = 0
  20222. }
  20223. continue
  20224. }
  20225. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  20226. if v != nil {
  20227. v[mk] = mv
  20228. }
  20229. }
  20230. dd.ReadMapEnd()
  20231. return v, changed
  20232. }
  20233. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  20234. if rv.Kind() == reflect.Ptr {
  20235. vp := rv2i(rv).(*map[string]uint32)
  20236. v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d)
  20237. if changed {
  20238. *vp = v
  20239. }
  20240. } else {
  20241. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  20242. }
  20243. }
  20244. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  20245. v, changed := f.DecMapStringUint32V(*vp, true, d)
  20246. if changed {
  20247. *vp = v
  20248. }
  20249. }
  20250. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  20251. d *Decoder) (_ map[string]uint32, changed bool) {
  20252. dd, esep := d.d, d.hh.hasElemSeparators()
  20253. containerLen := dd.ReadMapStart()
  20254. if canChange && v == nil {
  20255. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20256. v = make(map[string]uint32, xlen)
  20257. changed = true
  20258. }
  20259. if containerLen == 0 {
  20260. dd.ReadMapEnd()
  20261. return v, changed
  20262. }
  20263. var mk string
  20264. var mv uint32
  20265. hasLen := containerLen > 0
  20266. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20267. if esep {
  20268. dd.ReadMapElemKey()
  20269. }
  20270. mk = dd.DecodeString()
  20271. if esep {
  20272. dd.ReadMapElemValue()
  20273. }
  20274. if dd.TryDecodeAsNil() {
  20275. if v == nil {
  20276. } else if d.h.DeleteOnNilMapValue {
  20277. delete(v, mk)
  20278. } else {
  20279. v[mk] = 0
  20280. }
  20281. continue
  20282. }
  20283. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  20284. if v != nil {
  20285. v[mk] = mv
  20286. }
  20287. }
  20288. dd.ReadMapEnd()
  20289. return v, changed
  20290. }
  20291. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  20292. if rv.Kind() == reflect.Ptr {
  20293. vp := rv2i(rv).(*map[string]uint64)
  20294. v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d)
  20295. if changed {
  20296. *vp = v
  20297. }
  20298. } else {
  20299. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  20300. }
  20301. }
  20302. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  20303. v, changed := f.DecMapStringUint64V(*vp, true, d)
  20304. if changed {
  20305. *vp = v
  20306. }
  20307. }
  20308. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  20309. d *Decoder) (_ map[string]uint64, changed bool) {
  20310. dd, esep := d.d, d.hh.hasElemSeparators()
  20311. containerLen := dd.ReadMapStart()
  20312. if canChange && v == nil {
  20313. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20314. v = make(map[string]uint64, xlen)
  20315. changed = true
  20316. }
  20317. if containerLen == 0 {
  20318. dd.ReadMapEnd()
  20319. return v, changed
  20320. }
  20321. var mk string
  20322. var mv uint64
  20323. hasLen := containerLen > 0
  20324. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20325. if esep {
  20326. dd.ReadMapElemKey()
  20327. }
  20328. mk = dd.DecodeString()
  20329. if esep {
  20330. dd.ReadMapElemValue()
  20331. }
  20332. if dd.TryDecodeAsNil() {
  20333. if v == nil {
  20334. } else if d.h.DeleteOnNilMapValue {
  20335. delete(v, mk)
  20336. } else {
  20337. v[mk] = 0
  20338. }
  20339. continue
  20340. }
  20341. mv = dd.DecodeUint64()
  20342. if v != nil {
  20343. v[mk] = mv
  20344. }
  20345. }
  20346. dd.ReadMapEnd()
  20347. return v, changed
  20348. }
  20349. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  20350. if rv.Kind() == reflect.Ptr {
  20351. vp := rv2i(rv).(*map[string]uintptr)
  20352. v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d)
  20353. if changed {
  20354. *vp = v
  20355. }
  20356. } else {
  20357. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  20358. }
  20359. }
  20360. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  20361. v, changed := f.DecMapStringUintptrV(*vp, true, d)
  20362. if changed {
  20363. *vp = v
  20364. }
  20365. }
  20366. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  20367. d *Decoder) (_ map[string]uintptr, changed bool) {
  20368. dd, esep := d.d, d.hh.hasElemSeparators()
  20369. containerLen := dd.ReadMapStart()
  20370. if canChange && v == nil {
  20371. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20372. v = make(map[string]uintptr, xlen)
  20373. changed = true
  20374. }
  20375. if containerLen == 0 {
  20376. dd.ReadMapEnd()
  20377. return v, changed
  20378. }
  20379. var mk string
  20380. var mv uintptr
  20381. hasLen := containerLen > 0
  20382. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20383. if esep {
  20384. dd.ReadMapElemKey()
  20385. }
  20386. mk = dd.DecodeString()
  20387. if esep {
  20388. dd.ReadMapElemValue()
  20389. }
  20390. if dd.TryDecodeAsNil() {
  20391. if v == nil {
  20392. } else if d.h.DeleteOnNilMapValue {
  20393. delete(v, mk)
  20394. } else {
  20395. v[mk] = 0
  20396. }
  20397. continue
  20398. }
  20399. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20400. if v != nil {
  20401. v[mk] = mv
  20402. }
  20403. }
  20404. dd.ReadMapEnd()
  20405. return v, changed
  20406. }
  20407. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  20408. if rv.Kind() == reflect.Ptr {
  20409. vp := rv2i(rv).(*map[string]int)
  20410. v, changed := fastpathTV.DecMapStringIntV(*vp, true, d)
  20411. if changed {
  20412. *vp = v
  20413. }
  20414. } else {
  20415. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  20416. }
  20417. }
  20418. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  20419. v, changed := f.DecMapStringIntV(*vp, true, d)
  20420. if changed {
  20421. *vp = v
  20422. }
  20423. }
  20424. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  20425. d *Decoder) (_ map[string]int, changed bool) {
  20426. dd, esep := d.d, d.hh.hasElemSeparators()
  20427. containerLen := dd.ReadMapStart()
  20428. if canChange && v == nil {
  20429. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20430. v = make(map[string]int, xlen)
  20431. changed = true
  20432. }
  20433. if containerLen == 0 {
  20434. dd.ReadMapEnd()
  20435. return v, changed
  20436. }
  20437. var mk string
  20438. var mv int
  20439. hasLen := containerLen > 0
  20440. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20441. if esep {
  20442. dd.ReadMapElemKey()
  20443. }
  20444. mk = dd.DecodeString()
  20445. if esep {
  20446. dd.ReadMapElemValue()
  20447. }
  20448. if dd.TryDecodeAsNil() {
  20449. if v == nil {
  20450. } else if d.h.DeleteOnNilMapValue {
  20451. delete(v, mk)
  20452. } else {
  20453. v[mk] = 0
  20454. }
  20455. continue
  20456. }
  20457. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  20458. if v != nil {
  20459. v[mk] = mv
  20460. }
  20461. }
  20462. dd.ReadMapEnd()
  20463. return v, changed
  20464. }
  20465. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  20466. if rv.Kind() == reflect.Ptr {
  20467. vp := rv2i(rv).(*map[string]int8)
  20468. v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d)
  20469. if changed {
  20470. *vp = v
  20471. }
  20472. } else {
  20473. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  20474. }
  20475. }
  20476. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  20477. v, changed := f.DecMapStringInt8V(*vp, true, d)
  20478. if changed {
  20479. *vp = v
  20480. }
  20481. }
  20482. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  20483. d *Decoder) (_ map[string]int8, changed bool) {
  20484. dd, esep := d.d, d.hh.hasElemSeparators()
  20485. containerLen := dd.ReadMapStart()
  20486. if canChange && v == nil {
  20487. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20488. v = make(map[string]int8, xlen)
  20489. changed = true
  20490. }
  20491. if containerLen == 0 {
  20492. dd.ReadMapEnd()
  20493. return v, changed
  20494. }
  20495. var mk string
  20496. var mv int8
  20497. hasLen := containerLen > 0
  20498. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20499. if esep {
  20500. dd.ReadMapElemKey()
  20501. }
  20502. mk = dd.DecodeString()
  20503. if esep {
  20504. dd.ReadMapElemValue()
  20505. }
  20506. if dd.TryDecodeAsNil() {
  20507. if v == nil {
  20508. } else if d.h.DeleteOnNilMapValue {
  20509. delete(v, mk)
  20510. } else {
  20511. v[mk] = 0
  20512. }
  20513. continue
  20514. }
  20515. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  20516. if v != nil {
  20517. v[mk] = mv
  20518. }
  20519. }
  20520. dd.ReadMapEnd()
  20521. return v, changed
  20522. }
  20523. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  20524. if rv.Kind() == reflect.Ptr {
  20525. vp := rv2i(rv).(*map[string]int16)
  20526. v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d)
  20527. if changed {
  20528. *vp = v
  20529. }
  20530. } else {
  20531. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  20532. }
  20533. }
  20534. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  20535. v, changed := f.DecMapStringInt16V(*vp, true, d)
  20536. if changed {
  20537. *vp = v
  20538. }
  20539. }
  20540. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  20541. d *Decoder) (_ map[string]int16, changed bool) {
  20542. dd, esep := d.d, d.hh.hasElemSeparators()
  20543. containerLen := dd.ReadMapStart()
  20544. if canChange && v == nil {
  20545. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20546. v = make(map[string]int16, xlen)
  20547. changed = true
  20548. }
  20549. if containerLen == 0 {
  20550. dd.ReadMapEnd()
  20551. return v, changed
  20552. }
  20553. var mk string
  20554. var mv int16
  20555. hasLen := containerLen > 0
  20556. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20557. if esep {
  20558. dd.ReadMapElemKey()
  20559. }
  20560. mk = dd.DecodeString()
  20561. if esep {
  20562. dd.ReadMapElemValue()
  20563. }
  20564. if dd.TryDecodeAsNil() {
  20565. if v == nil {
  20566. } else if d.h.DeleteOnNilMapValue {
  20567. delete(v, mk)
  20568. } else {
  20569. v[mk] = 0
  20570. }
  20571. continue
  20572. }
  20573. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  20574. if v != nil {
  20575. v[mk] = mv
  20576. }
  20577. }
  20578. dd.ReadMapEnd()
  20579. return v, changed
  20580. }
  20581. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  20582. if rv.Kind() == reflect.Ptr {
  20583. vp := rv2i(rv).(*map[string]int32)
  20584. v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d)
  20585. if changed {
  20586. *vp = v
  20587. }
  20588. } else {
  20589. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  20590. }
  20591. }
  20592. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  20593. v, changed := f.DecMapStringInt32V(*vp, true, d)
  20594. if changed {
  20595. *vp = v
  20596. }
  20597. }
  20598. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  20599. d *Decoder) (_ map[string]int32, changed bool) {
  20600. dd, esep := d.d, d.hh.hasElemSeparators()
  20601. containerLen := dd.ReadMapStart()
  20602. if canChange && v == nil {
  20603. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20604. v = make(map[string]int32, xlen)
  20605. changed = true
  20606. }
  20607. if containerLen == 0 {
  20608. dd.ReadMapEnd()
  20609. return v, changed
  20610. }
  20611. var mk string
  20612. var mv int32
  20613. hasLen := containerLen > 0
  20614. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20615. if esep {
  20616. dd.ReadMapElemKey()
  20617. }
  20618. mk = dd.DecodeString()
  20619. if esep {
  20620. dd.ReadMapElemValue()
  20621. }
  20622. if dd.TryDecodeAsNil() {
  20623. if v == nil {
  20624. } else if d.h.DeleteOnNilMapValue {
  20625. delete(v, mk)
  20626. } else {
  20627. v[mk] = 0
  20628. }
  20629. continue
  20630. }
  20631. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  20632. if v != nil {
  20633. v[mk] = mv
  20634. }
  20635. }
  20636. dd.ReadMapEnd()
  20637. return v, changed
  20638. }
  20639. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  20640. if rv.Kind() == reflect.Ptr {
  20641. vp := rv2i(rv).(*map[string]int64)
  20642. v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d)
  20643. if changed {
  20644. *vp = v
  20645. }
  20646. } else {
  20647. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  20648. }
  20649. }
  20650. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  20651. v, changed := f.DecMapStringInt64V(*vp, true, d)
  20652. if changed {
  20653. *vp = v
  20654. }
  20655. }
  20656. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  20657. d *Decoder) (_ map[string]int64, changed bool) {
  20658. dd, esep := d.d, d.hh.hasElemSeparators()
  20659. containerLen := dd.ReadMapStart()
  20660. if canChange && v == nil {
  20661. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20662. v = make(map[string]int64, xlen)
  20663. changed = true
  20664. }
  20665. if containerLen == 0 {
  20666. dd.ReadMapEnd()
  20667. return v, changed
  20668. }
  20669. var mk string
  20670. var mv int64
  20671. hasLen := containerLen > 0
  20672. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20673. if esep {
  20674. dd.ReadMapElemKey()
  20675. }
  20676. mk = dd.DecodeString()
  20677. if esep {
  20678. dd.ReadMapElemValue()
  20679. }
  20680. if dd.TryDecodeAsNil() {
  20681. if v == nil {
  20682. } else if d.h.DeleteOnNilMapValue {
  20683. delete(v, mk)
  20684. } else {
  20685. v[mk] = 0
  20686. }
  20687. continue
  20688. }
  20689. mv = dd.DecodeInt64()
  20690. if v != nil {
  20691. v[mk] = mv
  20692. }
  20693. }
  20694. dd.ReadMapEnd()
  20695. return v, changed
  20696. }
  20697. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  20698. if rv.Kind() == reflect.Ptr {
  20699. vp := rv2i(rv).(*map[string]float32)
  20700. v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d)
  20701. if changed {
  20702. *vp = v
  20703. }
  20704. } else {
  20705. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  20706. }
  20707. }
  20708. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  20709. v, changed := f.DecMapStringFloat32V(*vp, true, d)
  20710. if changed {
  20711. *vp = v
  20712. }
  20713. }
  20714. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  20715. d *Decoder) (_ map[string]float32, changed bool) {
  20716. dd, esep := d.d, d.hh.hasElemSeparators()
  20717. containerLen := dd.ReadMapStart()
  20718. if canChange && v == nil {
  20719. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20720. v = make(map[string]float32, xlen)
  20721. changed = true
  20722. }
  20723. if containerLen == 0 {
  20724. dd.ReadMapEnd()
  20725. return v, changed
  20726. }
  20727. var mk string
  20728. var mv float32
  20729. hasLen := containerLen > 0
  20730. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20731. if esep {
  20732. dd.ReadMapElemKey()
  20733. }
  20734. mk = dd.DecodeString()
  20735. if esep {
  20736. dd.ReadMapElemValue()
  20737. }
  20738. if dd.TryDecodeAsNil() {
  20739. if v == nil {
  20740. } else if d.h.DeleteOnNilMapValue {
  20741. delete(v, mk)
  20742. } else {
  20743. v[mk] = 0
  20744. }
  20745. continue
  20746. }
  20747. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20748. if v != nil {
  20749. v[mk] = mv
  20750. }
  20751. }
  20752. dd.ReadMapEnd()
  20753. return v, changed
  20754. }
  20755. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  20756. if rv.Kind() == reflect.Ptr {
  20757. vp := rv2i(rv).(*map[string]float64)
  20758. v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d)
  20759. if changed {
  20760. *vp = v
  20761. }
  20762. } else {
  20763. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  20764. }
  20765. }
  20766. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  20767. v, changed := f.DecMapStringFloat64V(*vp, true, d)
  20768. if changed {
  20769. *vp = v
  20770. }
  20771. }
  20772. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  20773. d *Decoder) (_ map[string]float64, changed bool) {
  20774. dd, esep := d.d, d.hh.hasElemSeparators()
  20775. containerLen := dd.ReadMapStart()
  20776. if canChange && v == nil {
  20777. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20778. v = make(map[string]float64, xlen)
  20779. changed = true
  20780. }
  20781. if containerLen == 0 {
  20782. dd.ReadMapEnd()
  20783. return v, changed
  20784. }
  20785. var mk string
  20786. var mv float64
  20787. hasLen := containerLen > 0
  20788. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20789. if esep {
  20790. dd.ReadMapElemKey()
  20791. }
  20792. mk = dd.DecodeString()
  20793. if esep {
  20794. dd.ReadMapElemValue()
  20795. }
  20796. if dd.TryDecodeAsNil() {
  20797. if v == nil {
  20798. } else if d.h.DeleteOnNilMapValue {
  20799. delete(v, mk)
  20800. } else {
  20801. v[mk] = 0
  20802. }
  20803. continue
  20804. }
  20805. mv = dd.DecodeFloat64()
  20806. if v != nil {
  20807. v[mk] = mv
  20808. }
  20809. }
  20810. dd.ReadMapEnd()
  20811. return v, changed
  20812. }
  20813. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  20814. if rv.Kind() == reflect.Ptr {
  20815. vp := rv2i(rv).(*map[string]bool)
  20816. v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d)
  20817. if changed {
  20818. *vp = v
  20819. }
  20820. } else {
  20821. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  20822. }
  20823. }
  20824. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  20825. v, changed := f.DecMapStringBoolV(*vp, true, d)
  20826. if changed {
  20827. *vp = v
  20828. }
  20829. }
  20830. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  20831. d *Decoder) (_ map[string]bool, changed bool) {
  20832. dd, esep := d.d, d.hh.hasElemSeparators()
  20833. containerLen := dd.ReadMapStart()
  20834. if canChange && v == nil {
  20835. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20836. v = make(map[string]bool, xlen)
  20837. changed = true
  20838. }
  20839. if containerLen == 0 {
  20840. dd.ReadMapEnd()
  20841. return v, changed
  20842. }
  20843. var mk string
  20844. var mv bool
  20845. hasLen := containerLen > 0
  20846. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20847. if esep {
  20848. dd.ReadMapElemKey()
  20849. }
  20850. mk = dd.DecodeString()
  20851. if esep {
  20852. dd.ReadMapElemValue()
  20853. }
  20854. if dd.TryDecodeAsNil() {
  20855. if v == nil {
  20856. } else if d.h.DeleteOnNilMapValue {
  20857. delete(v, mk)
  20858. } else {
  20859. v[mk] = false
  20860. }
  20861. continue
  20862. }
  20863. mv = dd.DecodeBool()
  20864. if v != nil {
  20865. v[mk] = mv
  20866. }
  20867. }
  20868. dd.ReadMapEnd()
  20869. return v, changed
  20870. }
  20871. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  20872. if rv.Kind() == reflect.Ptr {
  20873. vp := rv2i(rv).(*map[float32]interface{})
  20874. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d)
  20875. if changed {
  20876. *vp = v
  20877. }
  20878. } else {
  20879. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  20880. }
  20881. }
  20882. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  20883. v, changed := f.DecMapFloat32IntfV(*vp, true, d)
  20884. if changed {
  20885. *vp = v
  20886. }
  20887. }
  20888. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  20889. d *Decoder) (_ map[float32]interface{}, changed bool) {
  20890. dd, esep := d.d, d.hh.hasElemSeparators()
  20891. containerLen := dd.ReadMapStart()
  20892. if canChange && v == nil {
  20893. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20894. v = make(map[float32]interface{}, xlen)
  20895. changed = true
  20896. }
  20897. if containerLen == 0 {
  20898. dd.ReadMapEnd()
  20899. return v, changed
  20900. }
  20901. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  20902. var mk float32
  20903. var mv interface{}
  20904. hasLen := containerLen > 0
  20905. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20906. if esep {
  20907. dd.ReadMapElemKey()
  20908. }
  20909. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20910. if esep {
  20911. dd.ReadMapElemValue()
  20912. }
  20913. if dd.TryDecodeAsNil() {
  20914. if v == nil {
  20915. } else if d.h.DeleteOnNilMapValue {
  20916. delete(v, mk)
  20917. } else {
  20918. v[mk] = nil
  20919. }
  20920. continue
  20921. }
  20922. if mapGet {
  20923. mv = v[mk]
  20924. } else {
  20925. mv = nil
  20926. }
  20927. d.decode(&mv)
  20928. if v != nil {
  20929. v[mk] = mv
  20930. }
  20931. }
  20932. dd.ReadMapEnd()
  20933. return v, changed
  20934. }
  20935. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  20936. if rv.Kind() == reflect.Ptr {
  20937. vp := rv2i(rv).(*map[float32]string)
  20938. v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d)
  20939. if changed {
  20940. *vp = v
  20941. }
  20942. } else {
  20943. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  20944. }
  20945. }
  20946. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  20947. v, changed := f.DecMapFloat32StringV(*vp, true, d)
  20948. if changed {
  20949. *vp = v
  20950. }
  20951. }
  20952. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  20953. d *Decoder) (_ map[float32]string, changed bool) {
  20954. dd, esep := d.d, d.hh.hasElemSeparators()
  20955. containerLen := dd.ReadMapStart()
  20956. if canChange && v == nil {
  20957. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20958. v = make(map[float32]string, xlen)
  20959. changed = true
  20960. }
  20961. if containerLen == 0 {
  20962. dd.ReadMapEnd()
  20963. return v, changed
  20964. }
  20965. var mk float32
  20966. var mv string
  20967. hasLen := containerLen > 0
  20968. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20969. if esep {
  20970. dd.ReadMapElemKey()
  20971. }
  20972. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20973. if esep {
  20974. dd.ReadMapElemValue()
  20975. }
  20976. if dd.TryDecodeAsNil() {
  20977. if v == nil {
  20978. } else if d.h.DeleteOnNilMapValue {
  20979. delete(v, mk)
  20980. } else {
  20981. v[mk] = ""
  20982. }
  20983. continue
  20984. }
  20985. mv = dd.DecodeString()
  20986. if v != nil {
  20987. v[mk] = mv
  20988. }
  20989. }
  20990. dd.ReadMapEnd()
  20991. return v, changed
  20992. }
  20993. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  20994. if rv.Kind() == reflect.Ptr {
  20995. vp := rv2i(rv).(*map[float32]uint)
  20996. v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d)
  20997. if changed {
  20998. *vp = v
  20999. }
  21000. } else {
  21001. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  21002. }
  21003. }
  21004. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  21005. v, changed := f.DecMapFloat32UintV(*vp, true, d)
  21006. if changed {
  21007. *vp = v
  21008. }
  21009. }
  21010. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  21011. d *Decoder) (_ map[float32]uint, changed bool) {
  21012. dd, esep := d.d, d.hh.hasElemSeparators()
  21013. containerLen := dd.ReadMapStart()
  21014. if canChange && v == nil {
  21015. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21016. v = make(map[float32]uint, xlen)
  21017. changed = true
  21018. }
  21019. if containerLen == 0 {
  21020. dd.ReadMapEnd()
  21021. return v, changed
  21022. }
  21023. var mk float32
  21024. var mv uint
  21025. hasLen := containerLen > 0
  21026. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21027. if esep {
  21028. dd.ReadMapElemKey()
  21029. }
  21030. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21031. if esep {
  21032. dd.ReadMapElemValue()
  21033. }
  21034. if dd.TryDecodeAsNil() {
  21035. if v == nil {
  21036. } else if d.h.DeleteOnNilMapValue {
  21037. delete(v, mk)
  21038. } else {
  21039. v[mk] = 0
  21040. }
  21041. continue
  21042. }
  21043. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21044. if v != nil {
  21045. v[mk] = mv
  21046. }
  21047. }
  21048. dd.ReadMapEnd()
  21049. return v, changed
  21050. }
  21051. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  21052. if rv.Kind() == reflect.Ptr {
  21053. vp := rv2i(rv).(*map[float32]uint8)
  21054. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d)
  21055. if changed {
  21056. *vp = v
  21057. }
  21058. } else {
  21059. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  21060. }
  21061. }
  21062. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  21063. v, changed := f.DecMapFloat32Uint8V(*vp, true, d)
  21064. if changed {
  21065. *vp = v
  21066. }
  21067. }
  21068. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  21069. d *Decoder) (_ map[float32]uint8, changed bool) {
  21070. dd, esep := d.d, d.hh.hasElemSeparators()
  21071. containerLen := dd.ReadMapStart()
  21072. if canChange && v == nil {
  21073. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21074. v = make(map[float32]uint8, xlen)
  21075. changed = true
  21076. }
  21077. if containerLen == 0 {
  21078. dd.ReadMapEnd()
  21079. return v, changed
  21080. }
  21081. var mk float32
  21082. var mv uint8
  21083. hasLen := containerLen > 0
  21084. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21085. if esep {
  21086. dd.ReadMapElemKey()
  21087. }
  21088. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21089. if esep {
  21090. dd.ReadMapElemValue()
  21091. }
  21092. if dd.TryDecodeAsNil() {
  21093. if v == nil {
  21094. } else if d.h.DeleteOnNilMapValue {
  21095. delete(v, mk)
  21096. } else {
  21097. v[mk] = 0
  21098. }
  21099. continue
  21100. }
  21101. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  21102. if v != nil {
  21103. v[mk] = mv
  21104. }
  21105. }
  21106. dd.ReadMapEnd()
  21107. return v, changed
  21108. }
  21109. func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  21110. if rv.Kind() == reflect.Ptr {
  21111. vp := rv2i(rv).(*map[float32]uint16)
  21112. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d)
  21113. if changed {
  21114. *vp = v
  21115. }
  21116. } else {
  21117. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  21118. }
  21119. }
  21120. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  21121. v, changed := f.DecMapFloat32Uint16V(*vp, true, d)
  21122. if changed {
  21123. *vp = v
  21124. }
  21125. }
  21126. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  21127. d *Decoder) (_ map[float32]uint16, changed bool) {
  21128. dd, esep := d.d, d.hh.hasElemSeparators()
  21129. containerLen := dd.ReadMapStart()
  21130. if canChange && v == nil {
  21131. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21132. v = make(map[float32]uint16, xlen)
  21133. changed = true
  21134. }
  21135. if containerLen == 0 {
  21136. dd.ReadMapEnd()
  21137. return v, changed
  21138. }
  21139. var mk float32
  21140. var mv uint16
  21141. hasLen := containerLen > 0
  21142. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21143. if esep {
  21144. dd.ReadMapElemKey()
  21145. }
  21146. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21147. if esep {
  21148. dd.ReadMapElemValue()
  21149. }
  21150. if dd.TryDecodeAsNil() {
  21151. if v == nil {
  21152. } else if d.h.DeleteOnNilMapValue {
  21153. delete(v, mk)
  21154. } else {
  21155. v[mk] = 0
  21156. }
  21157. continue
  21158. }
  21159. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  21160. if v != nil {
  21161. v[mk] = mv
  21162. }
  21163. }
  21164. dd.ReadMapEnd()
  21165. return v, changed
  21166. }
  21167. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  21168. if rv.Kind() == reflect.Ptr {
  21169. vp := rv2i(rv).(*map[float32]uint32)
  21170. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d)
  21171. if changed {
  21172. *vp = v
  21173. }
  21174. } else {
  21175. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  21176. }
  21177. }
  21178. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  21179. v, changed := f.DecMapFloat32Uint32V(*vp, true, d)
  21180. if changed {
  21181. *vp = v
  21182. }
  21183. }
  21184. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  21185. d *Decoder) (_ map[float32]uint32, changed bool) {
  21186. dd, esep := d.d, d.hh.hasElemSeparators()
  21187. containerLen := dd.ReadMapStart()
  21188. if canChange && v == nil {
  21189. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21190. v = make(map[float32]uint32, xlen)
  21191. changed = true
  21192. }
  21193. if containerLen == 0 {
  21194. dd.ReadMapEnd()
  21195. return v, changed
  21196. }
  21197. var mk float32
  21198. var mv uint32
  21199. hasLen := containerLen > 0
  21200. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21201. if esep {
  21202. dd.ReadMapElemKey()
  21203. }
  21204. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21205. if esep {
  21206. dd.ReadMapElemValue()
  21207. }
  21208. if dd.TryDecodeAsNil() {
  21209. if v == nil {
  21210. } else if d.h.DeleteOnNilMapValue {
  21211. delete(v, mk)
  21212. } else {
  21213. v[mk] = 0
  21214. }
  21215. continue
  21216. }
  21217. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  21218. if v != nil {
  21219. v[mk] = mv
  21220. }
  21221. }
  21222. dd.ReadMapEnd()
  21223. return v, changed
  21224. }
  21225. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  21226. if rv.Kind() == reflect.Ptr {
  21227. vp := rv2i(rv).(*map[float32]uint64)
  21228. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d)
  21229. if changed {
  21230. *vp = v
  21231. }
  21232. } else {
  21233. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  21234. }
  21235. }
  21236. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  21237. v, changed := f.DecMapFloat32Uint64V(*vp, true, d)
  21238. if changed {
  21239. *vp = v
  21240. }
  21241. }
  21242. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  21243. d *Decoder) (_ map[float32]uint64, changed bool) {
  21244. dd, esep := d.d, d.hh.hasElemSeparators()
  21245. containerLen := dd.ReadMapStart()
  21246. if canChange && v == nil {
  21247. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21248. v = make(map[float32]uint64, xlen)
  21249. changed = true
  21250. }
  21251. if containerLen == 0 {
  21252. dd.ReadMapEnd()
  21253. return v, changed
  21254. }
  21255. var mk float32
  21256. var mv uint64
  21257. hasLen := containerLen > 0
  21258. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21259. if esep {
  21260. dd.ReadMapElemKey()
  21261. }
  21262. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21263. if esep {
  21264. dd.ReadMapElemValue()
  21265. }
  21266. if dd.TryDecodeAsNil() {
  21267. if v == nil {
  21268. } else if d.h.DeleteOnNilMapValue {
  21269. delete(v, mk)
  21270. } else {
  21271. v[mk] = 0
  21272. }
  21273. continue
  21274. }
  21275. mv = dd.DecodeUint64()
  21276. if v != nil {
  21277. v[mk] = mv
  21278. }
  21279. }
  21280. dd.ReadMapEnd()
  21281. return v, changed
  21282. }
  21283. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  21284. if rv.Kind() == reflect.Ptr {
  21285. vp := rv2i(rv).(*map[float32]uintptr)
  21286. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d)
  21287. if changed {
  21288. *vp = v
  21289. }
  21290. } else {
  21291. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  21292. }
  21293. }
  21294. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  21295. v, changed := f.DecMapFloat32UintptrV(*vp, true, d)
  21296. if changed {
  21297. *vp = v
  21298. }
  21299. }
  21300. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  21301. d *Decoder) (_ map[float32]uintptr, changed bool) {
  21302. dd, esep := d.d, d.hh.hasElemSeparators()
  21303. containerLen := dd.ReadMapStart()
  21304. if canChange && v == nil {
  21305. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21306. v = make(map[float32]uintptr, xlen)
  21307. changed = true
  21308. }
  21309. if containerLen == 0 {
  21310. dd.ReadMapEnd()
  21311. return v, changed
  21312. }
  21313. var mk float32
  21314. var mv uintptr
  21315. hasLen := containerLen > 0
  21316. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21317. if esep {
  21318. dd.ReadMapElemKey()
  21319. }
  21320. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21321. if esep {
  21322. dd.ReadMapElemValue()
  21323. }
  21324. if dd.TryDecodeAsNil() {
  21325. if v == nil {
  21326. } else if d.h.DeleteOnNilMapValue {
  21327. delete(v, mk)
  21328. } else {
  21329. v[mk] = 0
  21330. }
  21331. continue
  21332. }
  21333. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21334. if v != nil {
  21335. v[mk] = mv
  21336. }
  21337. }
  21338. dd.ReadMapEnd()
  21339. return v, changed
  21340. }
  21341. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  21342. if rv.Kind() == reflect.Ptr {
  21343. vp := rv2i(rv).(*map[float32]int)
  21344. v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d)
  21345. if changed {
  21346. *vp = v
  21347. }
  21348. } else {
  21349. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  21350. }
  21351. }
  21352. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  21353. v, changed := f.DecMapFloat32IntV(*vp, true, d)
  21354. if changed {
  21355. *vp = v
  21356. }
  21357. }
  21358. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  21359. d *Decoder) (_ map[float32]int, changed bool) {
  21360. dd, esep := d.d, d.hh.hasElemSeparators()
  21361. containerLen := dd.ReadMapStart()
  21362. if canChange && v == nil {
  21363. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21364. v = make(map[float32]int, xlen)
  21365. changed = true
  21366. }
  21367. if containerLen == 0 {
  21368. dd.ReadMapEnd()
  21369. return v, changed
  21370. }
  21371. var mk float32
  21372. var mv int
  21373. hasLen := containerLen > 0
  21374. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21375. if esep {
  21376. dd.ReadMapElemKey()
  21377. }
  21378. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21379. if esep {
  21380. dd.ReadMapElemValue()
  21381. }
  21382. if dd.TryDecodeAsNil() {
  21383. if v == nil {
  21384. } else if d.h.DeleteOnNilMapValue {
  21385. delete(v, mk)
  21386. } else {
  21387. v[mk] = 0
  21388. }
  21389. continue
  21390. }
  21391. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  21392. if v != nil {
  21393. v[mk] = mv
  21394. }
  21395. }
  21396. dd.ReadMapEnd()
  21397. return v, changed
  21398. }
  21399. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  21400. if rv.Kind() == reflect.Ptr {
  21401. vp := rv2i(rv).(*map[float32]int8)
  21402. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d)
  21403. if changed {
  21404. *vp = v
  21405. }
  21406. } else {
  21407. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  21408. }
  21409. }
  21410. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  21411. v, changed := f.DecMapFloat32Int8V(*vp, true, d)
  21412. if changed {
  21413. *vp = v
  21414. }
  21415. }
  21416. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  21417. d *Decoder) (_ map[float32]int8, changed bool) {
  21418. dd, esep := d.d, d.hh.hasElemSeparators()
  21419. containerLen := dd.ReadMapStart()
  21420. if canChange && v == nil {
  21421. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21422. v = make(map[float32]int8, xlen)
  21423. changed = true
  21424. }
  21425. if containerLen == 0 {
  21426. dd.ReadMapEnd()
  21427. return v, changed
  21428. }
  21429. var mk float32
  21430. var mv int8
  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 = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  21450. if v != nil {
  21451. v[mk] = mv
  21452. }
  21453. }
  21454. dd.ReadMapEnd()
  21455. return v, changed
  21456. }
  21457. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  21458. if rv.Kind() == reflect.Ptr {
  21459. vp := rv2i(rv).(*map[float32]int16)
  21460. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d)
  21461. if changed {
  21462. *vp = v
  21463. }
  21464. } else {
  21465. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  21466. }
  21467. }
  21468. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  21469. v, changed := f.DecMapFloat32Int16V(*vp, true, d)
  21470. if changed {
  21471. *vp = v
  21472. }
  21473. }
  21474. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  21475. d *Decoder) (_ map[float32]int16, changed bool) {
  21476. dd, esep := d.d, d.hh.hasElemSeparators()
  21477. containerLen := dd.ReadMapStart()
  21478. if canChange && v == nil {
  21479. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21480. v = make(map[float32]int16, xlen)
  21481. changed = true
  21482. }
  21483. if containerLen == 0 {
  21484. dd.ReadMapEnd()
  21485. return v, changed
  21486. }
  21487. var mk float32
  21488. var mv int16
  21489. hasLen := containerLen > 0
  21490. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21491. if esep {
  21492. dd.ReadMapElemKey()
  21493. }
  21494. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21495. if esep {
  21496. dd.ReadMapElemValue()
  21497. }
  21498. if dd.TryDecodeAsNil() {
  21499. if v == nil {
  21500. } else if d.h.DeleteOnNilMapValue {
  21501. delete(v, mk)
  21502. } else {
  21503. v[mk] = 0
  21504. }
  21505. continue
  21506. }
  21507. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  21508. if v != nil {
  21509. v[mk] = mv
  21510. }
  21511. }
  21512. dd.ReadMapEnd()
  21513. return v, changed
  21514. }
  21515. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  21516. if rv.Kind() == reflect.Ptr {
  21517. vp := rv2i(rv).(*map[float32]int32)
  21518. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d)
  21519. if changed {
  21520. *vp = v
  21521. }
  21522. } else {
  21523. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  21524. }
  21525. }
  21526. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  21527. v, changed := f.DecMapFloat32Int32V(*vp, true, d)
  21528. if changed {
  21529. *vp = v
  21530. }
  21531. }
  21532. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  21533. d *Decoder) (_ map[float32]int32, changed bool) {
  21534. dd, esep := d.d, d.hh.hasElemSeparators()
  21535. containerLen := dd.ReadMapStart()
  21536. if canChange && v == nil {
  21537. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21538. v = make(map[float32]int32, xlen)
  21539. changed = true
  21540. }
  21541. if containerLen == 0 {
  21542. dd.ReadMapEnd()
  21543. return v, changed
  21544. }
  21545. var mk float32
  21546. var mv int32
  21547. hasLen := containerLen > 0
  21548. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21549. if esep {
  21550. dd.ReadMapElemKey()
  21551. }
  21552. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21553. if esep {
  21554. dd.ReadMapElemValue()
  21555. }
  21556. if dd.TryDecodeAsNil() {
  21557. if v == nil {
  21558. } else if d.h.DeleteOnNilMapValue {
  21559. delete(v, mk)
  21560. } else {
  21561. v[mk] = 0
  21562. }
  21563. continue
  21564. }
  21565. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  21566. if v != nil {
  21567. v[mk] = mv
  21568. }
  21569. }
  21570. dd.ReadMapEnd()
  21571. return v, changed
  21572. }
  21573. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  21574. if rv.Kind() == reflect.Ptr {
  21575. vp := rv2i(rv).(*map[float32]int64)
  21576. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d)
  21577. if changed {
  21578. *vp = v
  21579. }
  21580. } else {
  21581. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  21582. }
  21583. }
  21584. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  21585. v, changed := f.DecMapFloat32Int64V(*vp, true, d)
  21586. if changed {
  21587. *vp = v
  21588. }
  21589. }
  21590. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  21591. d *Decoder) (_ map[float32]int64, changed bool) {
  21592. dd, esep := d.d, d.hh.hasElemSeparators()
  21593. containerLen := dd.ReadMapStart()
  21594. if canChange && v == nil {
  21595. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21596. v = make(map[float32]int64, xlen)
  21597. changed = true
  21598. }
  21599. if containerLen == 0 {
  21600. dd.ReadMapEnd()
  21601. return v, changed
  21602. }
  21603. var mk float32
  21604. var mv int64
  21605. hasLen := containerLen > 0
  21606. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21607. if esep {
  21608. dd.ReadMapElemKey()
  21609. }
  21610. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21611. if esep {
  21612. dd.ReadMapElemValue()
  21613. }
  21614. if dd.TryDecodeAsNil() {
  21615. if v == nil {
  21616. } else if d.h.DeleteOnNilMapValue {
  21617. delete(v, mk)
  21618. } else {
  21619. v[mk] = 0
  21620. }
  21621. continue
  21622. }
  21623. mv = dd.DecodeInt64()
  21624. if v != nil {
  21625. v[mk] = mv
  21626. }
  21627. }
  21628. dd.ReadMapEnd()
  21629. return v, changed
  21630. }
  21631. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  21632. if rv.Kind() == reflect.Ptr {
  21633. vp := rv2i(rv).(*map[float32]float32)
  21634. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d)
  21635. if changed {
  21636. *vp = v
  21637. }
  21638. } else {
  21639. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  21640. }
  21641. }
  21642. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  21643. v, changed := f.DecMapFloat32Float32V(*vp, true, d)
  21644. if changed {
  21645. *vp = v
  21646. }
  21647. }
  21648. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  21649. d *Decoder) (_ map[float32]float32, changed bool) {
  21650. dd, esep := d.d, d.hh.hasElemSeparators()
  21651. containerLen := dd.ReadMapStart()
  21652. if canChange && v == nil {
  21653. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21654. v = make(map[float32]float32, xlen)
  21655. changed = true
  21656. }
  21657. if containerLen == 0 {
  21658. dd.ReadMapEnd()
  21659. return v, changed
  21660. }
  21661. var mk float32
  21662. var mv float32
  21663. hasLen := containerLen > 0
  21664. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21665. if esep {
  21666. dd.ReadMapElemKey()
  21667. }
  21668. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21669. if esep {
  21670. dd.ReadMapElemValue()
  21671. }
  21672. if dd.TryDecodeAsNil() {
  21673. if v == nil {
  21674. } else if d.h.DeleteOnNilMapValue {
  21675. delete(v, mk)
  21676. } else {
  21677. v[mk] = 0
  21678. }
  21679. continue
  21680. }
  21681. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21682. if v != nil {
  21683. v[mk] = mv
  21684. }
  21685. }
  21686. dd.ReadMapEnd()
  21687. return v, changed
  21688. }
  21689. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  21690. if rv.Kind() == reflect.Ptr {
  21691. vp := rv2i(rv).(*map[float32]float64)
  21692. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d)
  21693. if changed {
  21694. *vp = v
  21695. }
  21696. } else {
  21697. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  21698. }
  21699. }
  21700. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  21701. v, changed := f.DecMapFloat32Float64V(*vp, true, d)
  21702. if changed {
  21703. *vp = v
  21704. }
  21705. }
  21706. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  21707. d *Decoder) (_ map[float32]float64, changed bool) {
  21708. dd, esep := d.d, d.hh.hasElemSeparators()
  21709. containerLen := dd.ReadMapStart()
  21710. if canChange && v == nil {
  21711. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21712. v = make(map[float32]float64, xlen)
  21713. changed = true
  21714. }
  21715. if containerLen == 0 {
  21716. dd.ReadMapEnd()
  21717. return v, changed
  21718. }
  21719. var mk float32
  21720. var mv float64
  21721. hasLen := containerLen > 0
  21722. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21723. if esep {
  21724. dd.ReadMapElemKey()
  21725. }
  21726. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21727. if esep {
  21728. dd.ReadMapElemValue()
  21729. }
  21730. if dd.TryDecodeAsNil() {
  21731. if v == nil {
  21732. } else if d.h.DeleteOnNilMapValue {
  21733. delete(v, mk)
  21734. } else {
  21735. v[mk] = 0
  21736. }
  21737. continue
  21738. }
  21739. mv = dd.DecodeFloat64()
  21740. if v != nil {
  21741. v[mk] = mv
  21742. }
  21743. }
  21744. dd.ReadMapEnd()
  21745. return v, changed
  21746. }
  21747. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  21748. if rv.Kind() == reflect.Ptr {
  21749. vp := rv2i(rv).(*map[float32]bool)
  21750. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d)
  21751. if changed {
  21752. *vp = v
  21753. }
  21754. } else {
  21755. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  21756. }
  21757. }
  21758. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  21759. v, changed := f.DecMapFloat32BoolV(*vp, true, d)
  21760. if changed {
  21761. *vp = v
  21762. }
  21763. }
  21764. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  21765. d *Decoder) (_ map[float32]bool, changed bool) {
  21766. dd, esep := d.d, d.hh.hasElemSeparators()
  21767. containerLen := dd.ReadMapStart()
  21768. if canChange && v == nil {
  21769. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21770. v = make(map[float32]bool, xlen)
  21771. changed = true
  21772. }
  21773. if containerLen == 0 {
  21774. dd.ReadMapEnd()
  21775. return v, changed
  21776. }
  21777. var mk float32
  21778. var mv bool
  21779. hasLen := containerLen > 0
  21780. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21781. if esep {
  21782. dd.ReadMapElemKey()
  21783. }
  21784. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21785. if esep {
  21786. dd.ReadMapElemValue()
  21787. }
  21788. if dd.TryDecodeAsNil() {
  21789. if v == nil {
  21790. } else if d.h.DeleteOnNilMapValue {
  21791. delete(v, mk)
  21792. } else {
  21793. v[mk] = false
  21794. }
  21795. continue
  21796. }
  21797. mv = dd.DecodeBool()
  21798. if v != nil {
  21799. v[mk] = mv
  21800. }
  21801. }
  21802. dd.ReadMapEnd()
  21803. return v, changed
  21804. }
  21805. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  21806. if rv.Kind() == reflect.Ptr {
  21807. vp := rv2i(rv).(*map[float64]interface{})
  21808. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d)
  21809. if changed {
  21810. *vp = v
  21811. }
  21812. } else {
  21813. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  21814. }
  21815. }
  21816. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  21817. v, changed := f.DecMapFloat64IntfV(*vp, true, d)
  21818. if changed {
  21819. *vp = v
  21820. }
  21821. }
  21822. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  21823. d *Decoder) (_ map[float64]interface{}, changed bool) {
  21824. dd, esep := d.d, d.hh.hasElemSeparators()
  21825. containerLen := dd.ReadMapStart()
  21826. if canChange && v == nil {
  21827. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21828. v = make(map[float64]interface{}, xlen)
  21829. changed = true
  21830. }
  21831. if containerLen == 0 {
  21832. dd.ReadMapEnd()
  21833. return v, changed
  21834. }
  21835. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  21836. var mk float64
  21837. var mv interface{}
  21838. hasLen := containerLen > 0
  21839. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21840. if esep {
  21841. dd.ReadMapElemKey()
  21842. }
  21843. mk = dd.DecodeFloat64()
  21844. if esep {
  21845. dd.ReadMapElemValue()
  21846. }
  21847. if dd.TryDecodeAsNil() {
  21848. if v == nil {
  21849. } else if d.h.DeleteOnNilMapValue {
  21850. delete(v, mk)
  21851. } else {
  21852. v[mk] = nil
  21853. }
  21854. continue
  21855. }
  21856. if mapGet {
  21857. mv = v[mk]
  21858. } else {
  21859. mv = nil
  21860. }
  21861. d.decode(&mv)
  21862. if v != nil {
  21863. v[mk] = mv
  21864. }
  21865. }
  21866. dd.ReadMapEnd()
  21867. return v, changed
  21868. }
  21869. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  21870. if rv.Kind() == reflect.Ptr {
  21871. vp := rv2i(rv).(*map[float64]string)
  21872. v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d)
  21873. if changed {
  21874. *vp = v
  21875. }
  21876. } else {
  21877. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  21878. }
  21879. }
  21880. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  21881. v, changed := f.DecMapFloat64StringV(*vp, true, d)
  21882. if changed {
  21883. *vp = v
  21884. }
  21885. }
  21886. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  21887. d *Decoder) (_ map[float64]string, changed bool) {
  21888. dd, esep := d.d, d.hh.hasElemSeparators()
  21889. containerLen := dd.ReadMapStart()
  21890. if canChange && v == nil {
  21891. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21892. v = make(map[float64]string, xlen)
  21893. changed = true
  21894. }
  21895. if containerLen == 0 {
  21896. dd.ReadMapEnd()
  21897. return v, changed
  21898. }
  21899. var mk float64
  21900. var mv string
  21901. hasLen := containerLen > 0
  21902. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21903. if esep {
  21904. dd.ReadMapElemKey()
  21905. }
  21906. mk = dd.DecodeFloat64()
  21907. if esep {
  21908. dd.ReadMapElemValue()
  21909. }
  21910. if dd.TryDecodeAsNil() {
  21911. if v == nil {
  21912. } else if d.h.DeleteOnNilMapValue {
  21913. delete(v, mk)
  21914. } else {
  21915. v[mk] = ""
  21916. }
  21917. continue
  21918. }
  21919. mv = dd.DecodeString()
  21920. if v != nil {
  21921. v[mk] = mv
  21922. }
  21923. }
  21924. dd.ReadMapEnd()
  21925. return v, changed
  21926. }
  21927. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  21928. if rv.Kind() == reflect.Ptr {
  21929. vp := rv2i(rv).(*map[float64]uint)
  21930. v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d)
  21931. if changed {
  21932. *vp = v
  21933. }
  21934. } else {
  21935. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  21936. }
  21937. }
  21938. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  21939. v, changed := f.DecMapFloat64UintV(*vp, true, d)
  21940. if changed {
  21941. *vp = v
  21942. }
  21943. }
  21944. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  21945. d *Decoder) (_ map[float64]uint, changed bool) {
  21946. dd, esep := d.d, d.hh.hasElemSeparators()
  21947. containerLen := dd.ReadMapStart()
  21948. if canChange && v == nil {
  21949. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21950. v = make(map[float64]uint, xlen)
  21951. changed = true
  21952. }
  21953. if containerLen == 0 {
  21954. dd.ReadMapEnd()
  21955. return v, changed
  21956. }
  21957. var mk float64
  21958. var mv uint
  21959. hasLen := containerLen > 0
  21960. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21961. if esep {
  21962. dd.ReadMapElemKey()
  21963. }
  21964. mk = dd.DecodeFloat64()
  21965. if esep {
  21966. dd.ReadMapElemValue()
  21967. }
  21968. if dd.TryDecodeAsNil() {
  21969. if v == nil {
  21970. } else if d.h.DeleteOnNilMapValue {
  21971. delete(v, mk)
  21972. } else {
  21973. v[mk] = 0
  21974. }
  21975. continue
  21976. }
  21977. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21978. if v != nil {
  21979. v[mk] = mv
  21980. }
  21981. }
  21982. dd.ReadMapEnd()
  21983. return v, changed
  21984. }
  21985. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  21986. if rv.Kind() == reflect.Ptr {
  21987. vp := rv2i(rv).(*map[float64]uint8)
  21988. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d)
  21989. if changed {
  21990. *vp = v
  21991. }
  21992. } else {
  21993. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  21994. }
  21995. }
  21996. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  21997. v, changed := f.DecMapFloat64Uint8V(*vp, true, d)
  21998. if changed {
  21999. *vp = v
  22000. }
  22001. }
  22002. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  22003. d *Decoder) (_ map[float64]uint8, changed bool) {
  22004. dd, esep := d.d, d.hh.hasElemSeparators()
  22005. containerLen := dd.ReadMapStart()
  22006. if canChange && v == nil {
  22007. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22008. v = make(map[float64]uint8, xlen)
  22009. changed = true
  22010. }
  22011. if containerLen == 0 {
  22012. dd.ReadMapEnd()
  22013. return v, changed
  22014. }
  22015. var mk float64
  22016. var mv uint8
  22017. hasLen := containerLen > 0
  22018. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22019. if esep {
  22020. dd.ReadMapElemKey()
  22021. }
  22022. mk = dd.DecodeFloat64()
  22023. if esep {
  22024. dd.ReadMapElemValue()
  22025. }
  22026. if dd.TryDecodeAsNil() {
  22027. if v == nil {
  22028. } else if d.h.DeleteOnNilMapValue {
  22029. delete(v, mk)
  22030. } else {
  22031. v[mk] = 0
  22032. }
  22033. continue
  22034. }
  22035. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22036. if v != nil {
  22037. v[mk] = mv
  22038. }
  22039. }
  22040. dd.ReadMapEnd()
  22041. return v, changed
  22042. }
  22043. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  22044. if rv.Kind() == reflect.Ptr {
  22045. vp := rv2i(rv).(*map[float64]uint16)
  22046. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d)
  22047. if changed {
  22048. *vp = v
  22049. }
  22050. } else {
  22051. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  22052. }
  22053. }
  22054. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  22055. v, changed := f.DecMapFloat64Uint16V(*vp, true, d)
  22056. if changed {
  22057. *vp = v
  22058. }
  22059. }
  22060. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  22061. d *Decoder) (_ map[float64]uint16, changed bool) {
  22062. dd, esep := d.d, d.hh.hasElemSeparators()
  22063. containerLen := dd.ReadMapStart()
  22064. if canChange && v == nil {
  22065. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22066. v = make(map[float64]uint16, xlen)
  22067. changed = true
  22068. }
  22069. if containerLen == 0 {
  22070. dd.ReadMapEnd()
  22071. return v, changed
  22072. }
  22073. var mk float64
  22074. var mv uint16
  22075. hasLen := containerLen > 0
  22076. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22077. if esep {
  22078. dd.ReadMapElemKey()
  22079. }
  22080. mk = dd.DecodeFloat64()
  22081. if esep {
  22082. dd.ReadMapElemValue()
  22083. }
  22084. if dd.TryDecodeAsNil() {
  22085. if v == nil {
  22086. } else if d.h.DeleteOnNilMapValue {
  22087. delete(v, mk)
  22088. } else {
  22089. v[mk] = 0
  22090. }
  22091. continue
  22092. }
  22093. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  22094. if v != nil {
  22095. v[mk] = mv
  22096. }
  22097. }
  22098. dd.ReadMapEnd()
  22099. return v, changed
  22100. }
  22101. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  22102. if rv.Kind() == reflect.Ptr {
  22103. vp := rv2i(rv).(*map[float64]uint32)
  22104. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d)
  22105. if changed {
  22106. *vp = v
  22107. }
  22108. } else {
  22109. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  22110. }
  22111. }
  22112. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  22113. v, changed := f.DecMapFloat64Uint32V(*vp, true, d)
  22114. if changed {
  22115. *vp = v
  22116. }
  22117. }
  22118. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  22119. d *Decoder) (_ map[float64]uint32, changed bool) {
  22120. dd, esep := d.d, d.hh.hasElemSeparators()
  22121. containerLen := dd.ReadMapStart()
  22122. if canChange && v == nil {
  22123. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22124. v = make(map[float64]uint32, xlen)
  22125. changed = true
  22126. }
  22127. if containerLen == 0 {
  22128. dd.ReadMapEnd()
  22129. return v, changed
  22130. }
  22131. var mk float64
  22132. var mv uint32
  22133. hasLen := containerLen > 0
  22134. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22135. if esep {
  22136. dd.ReadMapElemKey()
  22137. }
  22138. mk = dd.DecodeFloat64()
  22139. if esep {
  22140. dd.ReadMapElemValue()
  22141. }
  22142. if dd.TryDecodeAsNil() {
  22143. if v == nil {
  22144. } else if d.h.DeleteOnNilMapValue {
  22145. delete(v, mk)
  22146. } else {
  22147. v[mk] = 0
  22148. }
  22149. continue
  22150. }
  22151. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  22152. if v != nil {
  22153. v[mk] = mv
  22154. }
  22155. }
  22156. dd.ReadMapEnd()
  22157. return v, changed
  22158. }
  22159. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  22160. if rv.Kind() == reflect.Ptr {
  22161. vp := rv2i(rv).(*map[float64]uint64)
  22162. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d)
  22163. if changed {
  22164. *vp = v
  22165. }
  22166. } else {
  22167. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  22168. }
  22169. }
  22170. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  22171. v, changed := f.DecMapFloat64Uint64V(*vp, true, d)
  22172. if changed {
  22173. *vp = v
  22174. }
  22175. }
  22176. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  22177. d *Decoder) (_ map[float64]uint64, changed bool) {
  22178. dd, esep := d.d, d.hh.hasElemSeparators()
  22179. containerLen := dd.ReadMapStart()
  22180. if canChange && v == nil {
  22181. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22182. v = make(map[float64]uint64, xlen)
  22183. changed = true
  22184. }
  22185. if containerLen == 0 {
  22186. dd.ReadMapEnd()
  22187. return v, changed
  22188. }
  22189. var mk float64
  22190. var mv uint64
  22191. hasLen := containerLen > 0
  22192. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22193. if esep {
  22194. dd.ReadMapElemKey()
  22195. }
  22196. mk = dd.DecodeFloat64()
  22197. if esep {
  22198. dd.ReadMapElemValue()
  22199. }
  22200. if dd.TryDecodeAsNil() {
  22201. if v == nil {
  22202. } else if d.h.DeleteOnNilMapValue {
  22203. delete(v, mk)
  22204. } else {
  22205. v[mk] = 0
  22206. }
  22207. continue
  22208. }
  22209. mv = dd.DecodeUint64()
  22210. if v != nil {
  22211. v[mk] = mv
  22212. }
  22213. }
  22214. dd.ReadMapEnd()
  22215. return v, changed
  22216. }
  22217. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  22218. if rv.Kind() == reflect.Ptr {
  22219. vp := rv2i(rv).(*map[float64]uintptr)
  22220. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d)
  22221. if changed {
  22222. *vp = v
  22223. }
  22224. } else {
  22225. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  22226. }
  22227. }
  22228. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  22229. v, changed := f.DecMapFloat64UintptrV(*vp, true, d)
  22230. if changed {
  22231. *vp = v
  22232. }
  22233. }
  22234. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  22235. d *Decoder) (_ map[float64]uintptr, changed bool) {
  22236. dd, esep := d.d, d.hh.hasElemSeparators()
  22237. containerLen := dd.ReadMapStart()
  22238. if canChange && v == nil {
  22239. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22240. v = make(map[float64]uintptr, xlen)
  22241. changed = true
  22242. }
  22243. if containerLen == 0 {
  22244. dd.ReadMapEnd()
  22245. return v, changed
  22246. }
  22247. var mk float64
  22248. var mv uintptr
  22249. hasLen := containerLen > 0
  22250. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22251. if esep {
  22252. dd.ReadMapElemKey()
  22253. }
  22254. mk = dd.DecodeFloat64()
  22255. if esep {
  22256. dd.ReadMapElemValue()
  22257. }
  22258. if dd.TryDecodeAsNil() {
  22259. if v == nil {
  22260. } else if d.h.DeleteOnNilMapValue {
  22261. delete(v, mk)
  22262. } else {
  22263. v[mk] = 0
  22264. }
  22265. continue
  22266. }
  22267. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22268. if v != nil {
  22269. v[mk] = mv
  22270. }
  22271. }
  22272. dd.ReadMapEnd()
  22273. return v, changed
  22274. }
  22275. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  22276. if rv.Kind() == reflect.Ptr {
  22277. vp := rv2i(rv).(*map[float64]int)
  22278. v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d)
  22279. if changed {
  22280. *vp = v
  22281. }
  22282. } else {
  22283. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  22284. }
  22285. }
  22286. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  22287. v, changed := f.DecMapFloat64IntV(*vp, true, d)
  22288. if changed {
  22289. *vp = v
  22290. }
  22291. }
  22292. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  22293. d *Decoder) (_ map[float64]int, changed bool) {
  22294. dd, esep := d.d, d.hh.hasElemSeparators()
  22295. containerLen := dd.ReadMapStart()
  22296. if canChange && v == nil {
  22297. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22298. v = make(map[float64]int, xlen)
  22299. changed = true
  22300. }
  22301. if containerLen == 0 {
  22302. dd.ReadMapEnd()
  22303. return v, changed
  22304. }
  22305. var mk float64
  22306. var mv int
  22307. hasLen := containerLen > 0
  22308. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22309. if esep {
  22310. dd.ReadMapElemKey()
  22311. }
  22312. mk = dd.DecodeFloat64()
  22313. if esep {
  22314. dd.ReadMapElemValue()
  22315. }
  22316. if dd.TryDecodeAsNil() {
  22317. if v == nil {
  22318. } else if d.h.DeleteOnNilMapValue {
  22319. delete(v, mk)
  22320. } else {
  22321. v[mk] = 0
  22322. }
  22323. continue
  22324. }
  22325. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  22326. if v != nil {
  22327. v[mk] = mv
  22328. }
  22329. }
  22330. dd.ReadMapEnd()
  22331. return v, changed
  22332. }
  22333. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  22334. if rv.Kind() == reflect.Ptr {
  22335. vp := rv2i(rv).(*map[float64]int8)
  22336. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d)
  22337. if changed {
  22338. *vp = v
  22339. }
  22340. } else {
  22341. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  22342. }
  22343. }
  22344. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  22345. v, changed := f.DecMapFloat64Int8V(*vp, true, d)
  22346. if changed {
  22347. *vp = v
  22348. }
  22349. }
  22350. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  22351. d *Decoder) (_ map[float64]int8, changed bool) {
  22352. dd, esep := d.d, d.hh.hasElemSeparators()
  22353. containerLen := dd.ReadMapStart()
  22354. if canChange && v == nil {
  22355. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22356. v = make(map[float64]int8, xlen)
  22357. changed = true
  22358. }
  22359. if containerLen == 0 {
  22360. dd.ReadMapEnd()
  22361. return v, changed
  22362. }
  22363. var mk float64
  22364. var mv int8
  22365. hasLen := containerLen > 0
  22366. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22367. if esep {
  22368. dd.ReadMapElemKey()
  22369. }
  22370. mk = dd.DecodeFloat64()
  22371. if esep {
  22372. dd.ReadMapElemValue()
  22373. }
  22374. if dd.TryDecodeAsNil() {
  22375. if v == nil {
  22376. } else if d.h.DeleteOnNilMapValue {
  22377. delete(v, mk)
  22378. } else {
  22379. v[mk] = 0
  22380. }
  22381. continue
  22382. }
  22383. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  22384. if v != nil {
  22385. v[mk] = mv
  22386. }
  22387. }
  22388. dd.ReadMapEnd()
  22389. return v, changed
  22390. }
  22391. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  22392. if rv.Kind() == reflect.Ptr {
  22393. vp := rv2i(rv).(*map[float64]int16)
  22394. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d)
  22395. if changed {
  22396. *vp = v
  22397. }
  22398. } else {
  22399. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  22400. }
  22401. }
  22402. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  22403. v, changed := f.DecMapFloat64Int16V(*vp, true, d)
  22404. if changed {
  22405. *vp = v
  22406. }
  22407. }
  22408. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  22409. d *Decoder) (_ map[float64]int16, changed bool) {
  22410. dd, esep := d.d, d.hh.hasElemSeparators()
  22411. containerLen := dd.ReadMapStart()
  22412. if canChange && v == nil {
  22413. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22414. v = make(map[float64]int16, xlen)
  22415. changed = true
  22416. }
  22417. if containerLen == 0 {
  22418. dd.ReadMapEnd()
  22419. return v, changed
  22420. }
  22421. var mk float64
  22422. var mv int16
  22423. hasLen := containerLen > 0
  22424. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22425. if esep {
  22426. dd.ReadMapElemKey()
  22427. }
  22428. mk = dd.DecodeFloat64()
  22429. if esep {
  22430. dd.ReadMapElemValue()
  22431. }
  22432. if dd.TryDecodeAsNil() {
  22433. if v == nil {
  22434. } else if d.h.DeleteOnNilMapValue {
  22435. delete(v, mk)
  22436. } else {
  22437. v[mk] = 0
  22438. }
  22439. continue
  22440. }
  22441. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  22442. if v != nil {
  22443. v[mk] = mv
  22444. }
  22445. }
  22446. dd.ReadMapEnd()
  22447. return v, changed
  22448. }
  22449. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  22450. if rv.Kind() == reflect.Ptr {
  22451. vp := rv2i(rv).(*map[float64]int32)
  22452. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d)
  22453. if changed {
  22454. *vp = v
  22455. }
  22456. } else {
  22457. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  22458. }
  22459. }
  22460. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  22461. v, changed := f.DecMapFloat64Int32V(*vp, true, d)
  22462. if changed {
  22463. *vp = v
  22464. }
  22465. }
  22466. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  22467. d *Decoder) (_ map[float64]int32, changed bool) {
  22468. dd, esep := d.d, d.hh.hasElemSeparators()
  22469. containerLen := dd.ReadMapStart()
  22470. if canChange && v == nil {
  22471. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22472. v = make(map[float64]int32, xlen)
  22473. changed = true
  22474. }
  22475. if containerLen == 0 {
  22476. dd.ReadMapEnd()
  22477. return v, changed
  22478. }
  22479. var mk float64
  22480. var mv int32
  22481. hasLen := containerLen > 0
  22482. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22483. if esep {
  22484. dd.ReadMapElemKey()
  22485. }
  22486. mk = dd.DecodeFloat64()
  22487. if esep {
  22488. dd.ReadMapElemValue()
  22489. }
  22490. if dd.TryDecodeAsNil() {
  22491. if v == nil {
  22492. } else if d.h.DeleteOnNilMapValue {
  22493. delete(v, mk)
  22494. } else {
  22495. v[mk] = 0
  22496. }
  22497. continue
  22498. }
  22499. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  22500. if v != nil {
  22501. v[mk] = mv
  22502. }
  22503. }
  22504. dd.ReadMapEnd()
  22505. return v, changed
  22506. }
  22507. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  22508. if rv.Kind() == reflect.Ptr {
  22509. vp := rv2i(rv).(*map[float64]int64)
  22510. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d)
  22511. if changed {
  22512. *vp = v
  22513. }
  22514. } else {
  22515. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  22516. }
  22517. }
  22518. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  22519. v, changed := f.DecMapFloat64Int64V(*vp, true, d)
  22520. if changed {
  22521. *vp = v
  22522. }
  22523. }
  22524. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  22525. d *Decoder) (_ map[float64]int64, changed bool) {
  22526. dd, esep := d.d, d.hh.hasElemSeparators()
  22527. containerLen := dd.ReadMapStart()
  22528. if canChange && v == nil {
  22529. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22530. v = make(map[float64]int64, xlen)
  22531. changed = true
  22532. }
  22533. if containerLen == 0 {
  22534. dd.ReadMapEnd()
  22535. return v, changed
  22536. }
  22537. var mk float64
  22538. var mv int64
  22539. hasLen := containerLen > 0
  22540. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22541. if esep {
  22542. dd.ReadMapElemKey()
  22543. }
  22544. mk = dd.DecodeFloat64()
  22545. if esep {
  22546. dd.ReadMapElemValue()
  22547. }
  22548. if dd.TryDecodeAsNil() {
  22549. if v == nil {
  22550. } else if d.h.DeleteOnNilMapValue {
  22551. delete(v, mk)
  22552. } else {
  22553. v[mk] = 0
  22554. }
  22555. continue
  22556. }
  22557. mv = dd.DecodeInt64()
  22558. if v != nil {
  22559. v[mk] = mv
  22560. }
  22561. }
  22562. dd.ReadMapEnd()
  22563. return v, changed
  22564. }
  22565. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  22566. if rv.Kind() == reflect.Ptr {
  22567. vp := rv2i(rv).(*map[float64]float32)
  22568. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d)
  22569. if changed {
  22570. *vp = v
  22571. }
  22572. } else {
  22573. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  22574. }
  22575. }
  22576. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  22577. v, changed := f.DecMapFloat64Float32V(*vp, true, d)
  22578. if changed {
  22579. *vp = v
  22580. }
  22581. }
  22582. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  22583. d *Decoder) (_ map[float64]float32, changed bool) {
  22584. dd, esep := d.d, d.hh.hasElemSeparators()
  22585. containerLen := dd.ReadMapStart()
  22586. if canChange && v == nil {
  22587. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22588. v = make(map[float64]float32, xlen)
  22589. changed = true
  22590. }
  22591. if containerLen == 0 {
  22592. dd.ReadMapEnd()
  22593. return v, changed
  22594. }
  22595. var mk float64
  22596. var mv float32
  22597. hasLen := containerLen > 0
  22598. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22599. if esep {
  22600. dd.ReadMapElemKey()
  22601. }
  22602. mk = dd.DecodeFloat64()
  22603. if esep {
  22604. dd.ReadMapElemValue()
  22605. }
  22606. if dd.TryDecodeAsNil() {
  22607. if v == nil {
  22608. } else if d.h.DeleteOnNilMapValue {
  22609. delete(v, mk)
  22610. } else {
  22611. v[mk] = 0
  22612. }
  22613. continue
  22614. }
  22615. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  22616. if v != nil {
  22617. v[mk] = mv
  22618. }
  22619. }
  22620. dd.ReadMapEnd()
  22621. return v, changed
  22622. }
  22623. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  22624. if rv.Kind() == reflect.Ptr {
  22625. vp := rv2i(rv).(*map[float64]float64)
  22626. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d)
  22627. if changed {
  22628. *vp = v
  22629. }
  22630. } else {
  22631. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  22632. }
  22633. }
  22634. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  22635. v, changed := f.DecMapFloat64Float64V(*vp, true, d)
  22636. if changed {
  22637. *vp = v
  22638. }
  22639. }
  22640. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  22641. d *Decoder) (_ map[float64]float64, changed bool) {
  22642. dd, esep := d.d, d.hh.hasElemSeparators()
  22643. containerLen := dd.ReadMapStart()
  22644. if canChange && v == nil {
  22645. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22646. v = make(map[float64]float64, xlen)
  22647. changed = true
  22648. }
  22649. if containerLen == 0 {
  22650. dd.ReadMapEnd()
  22651. return v, changed
  22652. }
  22653. var mk float64
  22654. var mv float64
  22655. hasLen := containerLen > 0
  22656. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22657. if esep {
  22658. dd.ReadMapElemKey()
  22659. }
  22660. mk = dd.DecodeFloat64()
  22661. if esep {
  22662. dd.ReadMapElemValue()
  22663. }
  22664. if dd.TryDecodeAsNil() {
  22665. if v == nil {
  22666. } else if d.h.DeleteOnNilMapValue {
  22667. delete(v, mk)
  22668. } else {
  22669. v[mk] = 0
  22670. }
  22671. continue
  22672. }
  22673. mv = dd.DecodeFloat64()
  22674. if v != nil {
  22675. v[mk] = mv
  22676. }
  22677. }
  22678. dd.ReadMapEnd()
  22679. return v, changed
  22680. }
  22681. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  22682. if rv.Kind() == reflect.Ptr {
  22683. vp := rv2i(rv).(*map[float64]bool)
  22684. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d)
  22685. if changed {
  22686. *vp = v
  22687. }
  22688. } else {
  22689. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  22690. }
  22691. }
  22692. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  22693. v, changed := f.DecMapFloat64BoolV(*vp, true, d)
  22694. if changed {
  22695. *vp = v
  22696. }
  22697. }
  22698. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  22699. d *Decoder) (_ map[float64]bool, changed bool) {
  22700. dd, esep := d.d, d.hh.hasElemSeparators()
  22701. containerLen := dd.ReadMapStart()
  22702. if canChange && v == nil {
  22703. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22704. v = make(map[float64]bool, xlen)
  22705. changed = true
  22706. }
  22707. if containerLen == 0 {
  22708. dd.ReadMapEnd()
  22709. return v, changed
  22710. }
  22711. var mk float64
  22712. var mv bool
  22713. hasLen := containerLen > 0
  22714. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22715. if esep {
  22716. dd.ReadMapElemKey()
  22717. }
  22718. mk = dd.DecodeFloat64()
  22719. if esep {
  22720. dd.ReadMapElemValue()
  22721. }
  22722. if dd.TryDecodeAsNil() {
  22723. if v == nil {
  22724. } else if d.h.DeleteOnNilMapValue {
  22725. delete(v, mk)
  22726. } else {
  22727. v[mk] = false
  22728. }
  22729. continue
  22730. }
  22731. mv = dd.DecodeBool()
  22732. if v != nil {
  22733. v[mk] = mv
  22734. }
  22735. }
  22736. dd.ReadMapEnd()
  22737. return v, changed
  22738. }
  22739. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  22740. if rv.Kind() == reflect.Ptr {
  22741. vp := rv2i(rv).(*map[uint]interface{})
  22742. v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d)
  22743. if changed {
  22744. *vp = v
  22745. }
  22746. } else {
  22747. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  22748. }
  22749. }
  22750. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  22751. v, changed := f.DecMapUintIntfV(*vp, true, d)
  22752. if changed {
  22753. *vp = v
  22754. }
  22755. }
  22756. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  22757. d *Decoder) (_ map[uint]interface{}, changed bool) {
  22758. dd, esep := d.d, d.hh.hasElemSeparators()
  22759. containerLen := dd.ReadMapStart()
  22760. if canChange && v == nil {
  22761. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22762. v = make(map[uint]interface{}, xlen)
  22763. changed = true
  22764. }
  22765. if containerLen == 0 {
  22766. dd.ReadMapEnd()
  22767. return v, changed
  22768. }
  22769. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  22770. var mk uint
  22771. var mv interface{}
  22772. hasLen := containerLen > 0
  22773. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22774. if esep {
  22775. dd.ReadMapElemKey()
  22776. }
  22777. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22778. if esep {
  22779. dd.ReadMapElemValue()
  22780. }
  22781. if dd.TryDecodeAsNil() {
  22782. if v == nil {
  22783. } else if d.h.DeleteOnNilMapValue {
  22784. delete(v, mk)
  22785. } else {
  22786. v[mk] = nil
  22787. }
  22788. continue
  22789. }
  22790. if mapGet {
  22791. mv = v[mk]
  22792. } else {
  22793. mv = nil
  22794. }
  22795. d.decode(&mv)
  22796. if v != nil {
  22797. v[mk] = mv
  22798. }
  22799. }
  22800. dd.ReadMapEnd()
  22801. return v, changed
  22802. }
  22803. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  22804. if rv.Kind() == reflect.Ptr {
  22805. vp := rv2i(rv).(*map[uint]string)
  22806. v, changed := fastpathTV.DecMapUintStringV(*vp, true, d)
  22807. if changed {
  22808. *vp = v
  22809. }
  22810. } else {
  22811. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  22812. }
  22813. }
  22814. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  22815. v, changed := f.DecMapUintStringV(*vp, true, d)
  22816. if changed {
  22817. *vp = v
  22818. }
  22819. }
  22820. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  22821. d *Decoder) (_ map[uint]string, changed bool) {
  22822. dd, esep := d.d, d.hh.hasElemSeparators()
  22823. containerLen := dd.ReadMapStart()
  22824. if canChange && v == nil {
  22825. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22826. v = make(map[uint]string, xlen)
  22827. changed = true
  22828. }
  22829. if containerLen == 0 {
  22830. dd.ReadMapEnd()
  22831. return v, changed
  22832. }
  22833. var mk uint
  22834. var mv string
  22835. hasLen := containerLen > 0
  22836. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22837. if esep {
  22838. dd.ReadMapElemKey()
  22839. }
  22840. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22841. if esep {
  22842. dd.ReadMapElemValue()
  22843. }
  22844. if dd.TryDecodeAsNil() {
  22845. if v == nil {
  22846. } else if d.h.DeleteOnNilMapValue {
  22847. delete(v, mk)
  22848. } else {
  22849. v[mk] = ""
  22850. }
  22851. continue
  22852. }
  22853. mv = dd.DecodeString()
  22854. if v != nil {
  22855. v[mk] = mv
  22856. }
  22857. }
  22858. dd.ReadMapEnd()
  22859. return v, changed
  22860. }
  22861. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  22862. if rv.Kind() == reflect.Ptr {
  22863. vp := rv2i(rv).(*map[uint]uint)
  22864. v, changed := fastpathTV.DecMapUintUintV(*vp, true, d)
  22865. if changed {
  22866. *vp = v
  22867. }
  22868. } else {
  22869. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  22870. }
  22871. }
  22872. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  22873. v, changed := f.DecMapUintUintV(*vp, true, d)
  22874. if changed {
  22875. *vp = v
  22876. }
  22877. }
  22878. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  22879. d *Decoder) (_ map[uint]uint, changed bool) {
  22880. dd, esep := d.d, d.hh.hasElemSeparators()
  22881. containerLen := dd.ReadMapStart()
  22882. if canChange && v == nil {
  22883. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22884. v = make(map[uint]uint, xlen)
  22885. changed = true
  22886. }
  22887. if containerLen == 0 {
  22888. dd.ReadMapEnd()
  22889. return v, changed
  22890. }
  22891. var mk uint
  22892. var mv uint
  22893. hasLen := containerLen > 0
  22894. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22895. if esep {
  22896. dd.ReadMapElemKey()
  22897. }
  22898. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22899. if esep {
  22900. dd.ReadMapElemValue()
  22901. }
  22902. if dd.TryDecodeAsNil() {
  22903. if v == nil {
  22904. } else if d.h.DeleteOnNilMapValue {
  22905. delete(v, mk)
  22906. } else {
  22907. v[mk] = 0
  22908. }
  22909. continue
  22910. }
  22911. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22912. if v != nil {
  22913. v[mk] = mv
  22914. }
  22915. }
  22916. dd.ReadMapEnd()
  22917. return v, changed
  22918. }
  22919. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  22920. if rv.Kind() == reflect.Ptr {
  22921. vp := rv2i(rv).(*map[uint]uint8)
  22922. v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d)
  22923. if changed {
  22924. *vp = v
  22925. }
  22926. } else {
  22927. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  22928. }
  22929. }
  22930. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  22931. v, changed := f.DecMapUintUint8V(*vp, true, d)
  22932. if changed {
  22933. *vp = v
  22934. }
  22935. }
  22936. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  22937. d *Decoder) (_ map[uint]uint8, changed bool) {
  22938. dd, esep := d.d, d.hh.hasElemSeparators()
  22939. containerLen := dd.ReadMapStart()
  22940. if canChange && v == nil {
  22941. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22942. v = make(map[uint]uint8, xlen)
  22943. changed = true
  22944. }
  22945. if containerLen == 0 {
  22946. dd.ReadMapEnd()
  22947. return v, changed
  22948. }
  22949. var mk uint
  22950. var mv uint8
  22951. hasLen := containerLen > 0
  22952. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22953. if esep {
  22954. dd.ReadMapElemKey()
  22955. }
  22956. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22957. if esep {
  22958. dd.ReadMapElemValue()
  22959. }
  22960. if dd.TryDecodeAsNil() {
  22961. if v == nil {
  22962. } else if d.h.DeleteOnNilMapValue {
  22963. delete(v, mk)
  22964. } else {
  22965. v[mk] = 0
  22966. }
  22967. continue
  22968. }
  22969. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22970. if v != nil {
  22971. v[mk] = mv
  22972. }
  22973. }
  22974. dd.ReadMapEnd()
  22975. return v, changed
  22976. }
  22977. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  22978. if rv.Kind() == reflect.Ptr {
  22979. vp := rv2i(rv).(*map[uint]uint16)
  22980. v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d)
  22981. if changed {
  22982. *vp = v
  22983. }
  22984. } else {
  22985. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  22986. }
  22987. }
  22988. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  22989. v, changed := f.DecMapUintUint16V(*vp, true, d)
  22990. if changed {
  22991. *vp = v
  22992. }
  22993. }
  22994. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  22995. d *Decoder) (_ map[uint]uint16, changed bool) {
  22996. dd, esep := d.d, d.hh.hasElemSeparators()
  22997. containerLen := dd.ReadMapStart()
  22998. if canChange && v == nil {
  22999. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23000. v = make(map[uint]uint16, xlen)
  23001. changed = true
  23002. }
  23003. if containerLen == 0 {
  23004. dd.ReadMapEnd()
  23005. return v, changed
  23006. }
  23007. var mk uint
  23008. var mv uint16
  23009. hasLen := containerLen > 0
  23010. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23011. if esep {
  23012. dd.ReadMapElemKey()
  23013. }
  23014. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23015. if esep {
  23016. dd.ReadMapElemValue()
  23017. }
  23018. if dd.TryDecodeAsNil() {
  23019. if v == nil {
  23020. } else if d.h.DeleteOnNilMapValue {
  23021. delete(v, mk)
  23022. } else {
  23023. v[mk] = 0
  23024. }
  23025. continue
  23026. }
  23027. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23028. if v != nil {
  23029. v[mk] = mv
  23030. }
  23031. }
  23032. dd.ReadMapEnd()
  23033. return v, changed
  23034. }
  23035. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  23036. if rv.Kind() == reflect.Ptr {
  23037. vp := rv2i(rv).(*map[uint]uint32)
  23038. v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d)
  23039. if changed {
  23040. *vp = v
  23041. }
  23042. } else {
  23043. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  23044. }
  23045. }
  23046. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  23047. v, changed := f.DecMapUintUint32V(*vp, true, d)
  23048. if changed {
  23049. *vp = v
  23050. }
  23051. }
  23052. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  23053. d *Decoder) (_ map[uint]uint32, changed bool) {
  23054. dd, esep := d.d, d.hh.hasElemSeparators()
  23055. containerLen := dd.ReadMapStart()
  23056. if canChange && v == nil {
  23057. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23058. v = make(map[uint]uint32, xlen)
  23059. changed = true
  23060. }
  23061. if containerLen == 0 {
  23062. dd.ReadMapEnd()
  23063. return v, changed
  23064. }
  23065. var mk uint
  23066. var mv uint32
  23067. hasLen := containerLen > 0
  23068. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23069. if esep {
  23070. dd.ReadMapElemKey()
  23071. }
  23072. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23073. if esep {
  23074. dd.ReadMapElemValue()
  23075. }
  23076. if dd.TryDecodeAsNil() {
  23077. if v == nil {
  23078. } else if d.h.DeleteOnNilMapValue {
  23079. delete(v, mk)
  23080. } else {
  23081. v[mk] = 0
  23082. }
  23083. continue
  23084. }
  23085. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  23086. if v != nil {
  23087. v[mk] = mv
  23088. }
  23089. }
  23090. dd.ReadMapEnd()
  23091. return v, changed
  23092. }
  23093. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  23094. if rv.Kind() == reflect.Ptr {
  23095. vp := rv2i(rv).(*map[uint]uint64)
  23096. v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d)
  23097. if changed {
  23098. *vp = v
  23099. }
  23100. } else {
  23101. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  23102. }
  23103. }
  23104. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  23105. v, changed := f.DecMapUintUint64V(*vp, true, d)
  23106. if changed {
  23107. *vp = v
  23108. }
  23109. }
  23110. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  23111. d *Decoder) (_ map[uint]uint64, changed bool) {
  23112. dd, esep := d.d, d.hh.hasElemSeparators()
  23113. containerLen := dd.ReadMapStart()
  23114. if canChange && v == nil {
  23115. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23116. v = make(map[uint]uint64, xlen)
  23117. changed = true
  23118. }
  23119. if containerLen == 0 {
  23120. dd.ReadMapEnd()
  23121. return v, changed
  23122. }
  23123. var mk uint
  23124. var mv uint64
  23125. hasLen := containerLen > 0
  23126. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23127. if esep {
  23128. dd.ReadMapElemKey()
  23129. }
  23130. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23131. if esep {
  23132. dd.ReadMapElemValue()
  23133. }
  23134. if dd.TryDecodeAsNil() {
  23135. if v == nil {
  23136. } else if d.h.DeleteOnNilMapValue {
  23137. delete(v, mk)
  23138. } else {
  23139. v[mk] = 0
  23140. }
  23141. continue
  23142. }
  23143. mv = dd.DecodeUint64()
  23144. if v != nil {
  23145. v[mk] = mv
  23146. }
  23147. }
  23148. dd.ReadMapEnd()
  23149. return v, changed
  23150. }
  23151. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  23152. if rv.Kind() == reflect.Ptr {
  23153. vp := rv2i(rv).(*map[uint]uintptr)
  23154. v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d)
  23155. if changed {
  23156. *vp = v
  23157. }
  23158. } else {
  23159. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  23160. }
  23161. }
  23162. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  23163. v, changed := f.DecMapUintUintptrV(*vp, true, d)
  23164. if changed {
  23165. *vp = v
  23166. }
  23167. }
  23168. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  23169. d *Decoder) (_ map[uint]uintptr, changed bool) {
  23170. dd, esep := d.d, d.hh.hasElemSeparators()
  23171. containerLen := dd.ReadMapStart()
  23172. if canChange && v == nil {
  23173. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23174. v = make(map[uint]uintptr, xlen)
  23175. changed = true
  23176. }
  23177. if containerLen == 0 {
  23178. dd.ReadMapEnd()
  23179. return v, changed
  23180. }
  23181. var mk uint
  23182. var mv uintptr
  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 = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23202. if v != nil {
  23203. v[mk] = mv
  23204. }
  23205. }
  23206. dd.ReadMapEnd()
  23207. return v, changed
  23208. }
  23209. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  23210. if rv.Kind() == reflect.Ptr {
  23211. vp := rv2i(rv).(*map[uint]int)
  23212. v, changed := fastpathTV.DecMapUintIntV(*vp, true, d)
  23213. if changed {
  23214. *vp = v
  23215. }
  23216. } else {
  23217. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  23218. }
  23219. }
  23220. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  23221. v, changed := f.DecMapUintIntV(*vp, true, d)
  23222. if changed {
  23223. *vp = v
  23224. }
  23225. }
  23226. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  23227. d *Decoder) (_ map[uint]int, changed bool) {
  23228. dd, esep := d.d, d.hh.hasElemSeparators()
  23229. containerLen := dd.ReadMapStart()
  23230. if canChange && v == nil {
  23231. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23232. v = make(map[uint]int, xlen)
  23233. changed = true
  23234. }
  23235. if containerLen == 0 {
  23236. dd.ReadMapEnd()
  23237. return v, changed
  23238. }
  23239. var mk uint
  23240. var mv int
  23241. hasLen := containerLen > 0
  23242. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23243. if esep {
  23244. dd.ReadMapElemKey()
  23245. }
  23246. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23247. if esep {
  23248. dd.ReadMapElemValue()
  23249. }
  23250. if dd.TryDecodeAsNil() {
  23251. if v == nil {
  23252. } else if d.h.DeleteOnNilMapValue {
  23253. delete(v, mk)
  23254. } else {
  23255. v[mk] = 0
  23256. }
  23257. continue
  23258. }
  23259. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  23260. if v != nil {
  23261. v[mk] = mv
  23262. }
  23263. }
  23264. dd.ReadMapEnd()
  23265. return v, changed
  23266. }
  23267. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  23268. if rv.Kind() == reflect.Ptr {
  23269. vp := rv2i(rv).(*map[uint]int8)
  23270. v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d)
  23271. if changed {
  23272. *vp = v
  23273. }
  23274. } else {
  23275. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  23276. }
  23277. }
  23278. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  23279. v, changed := f.DecMapUintInt8V(*vp, true, d)
  23280. if changed {
  23281. *vp = v
  23282. }
  23283. }
  23284. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  23285. d *Decoder) (_ map[uint]int8, changed bool) {
  23286. dd, esep := d.d, d.hh.hasElemSeparators()
  23287. containerLen := dd.ReadMapStart()
  23288. if canChange && v == nil {
  23289. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23290. v = make(map[uint]int8, xlen)
  23291. changed = true
  23292. }
  23293. if containerLen == 0 {
  23294. dd.ReadMapEnd()
  23295. return v, changed
  23296. }
  23297. var mk uint
  23298. var mv int8
  23299. hasLen := containerLen > 0
  23300. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23301. if esep {
  23302. dd.ReadMapElemKey()
  23303. }
  23304. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23305. if esep {
  23306. dd.ReadMapElemValue()
  23307. }
  23308. if dd.TryDecodeAsNil() {
  23309. if v == nil {
  23310. } else if d.h.DeleteOnNilMapValue {
  23311. delete(v, mk)
  23312. } else {
  23313. v[mk] = 0
  23314. }
  23315. continue
  23316. }
  23317. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  23318. if v != nil {
  23319. v[mk] = mv
  23320. }
  23321. }
  23322. dd.ReadMapEnd()
  23323. return v, changed
  23324. }
  23325. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  23326. if rv.Kind() == reflect.Ptr {
  23327. vp := rv2i(rv).(*map[uint]int16)
  23328. v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d)
  23329. if changed {
  23330. *vp = v
  23331. }
  23332. } else {
  23333. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  23334. }
  23335. }
  23336. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  23337. v, changed := f.DecMapUintInt16V(*vp, true, d)
  23338. if changed {
  23339. *vp = v
  23340. }
  23341. }
  23342. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  23343. d *Decoder) (_ map[uint]int16, changed bool) {
  23344. dd, esep := d.d, d.hh.hasElemSeparators()
  23345. containerLen := dd.ReadMapStart()
  23346. if canChange && v == nil {
  23347. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23348. v = make(map[uint]int16, xlen)
  23349. changed = true
  23350. }
  23351. if containerLen == 0 {
  23352. dd.ReadMapEnd()
  23353. return v, changed
  23354. }
  23355. var mk uint
  23356. var mv int16
  23357. hasLen := containerLen > 0
  23358. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23359. if esep {
  23360. dd.ReadMapElemKey()
  23361. }
  23362. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23363. if esep {
  23364. dd.ReadMapElemValue()
  23365. }
  23366. if dd.TryDecodeAsNil() {
  23367. if v == nil {
  23368. } else if d.h.DeleteOnNilMapValue {
  23369. delete(v, mk)
  23370. } else {
  23371. v[mk] = 0
  23372. }
  23373. continue
  23374. }
  23375. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  23376. if v != nil {
  23377. v[mk] = mv
  23378. }
  23379. }
  23380. dd.ReadMapEnd()
  23381. return v, changed
  23382. }
  23383. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  23384. if rv.Kind() == reflect.Ptr {
  23385. vp := rv2i(rv).(*map[uint]int32)
  23386. v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d)
  23387. if changed {
  23388. *vp = v
  23389. }
  23390. } else {
  23391. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  23392. }
  23393. }
  23394. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  23395. v, changed := f.DecMapUintInt32V(*vp, true, d)
  23396. if changed {
  23397. *vp = v
  23398. }
  23399. }
  23400. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  23401. d *Decoder) (_ map[uint]int32, changed bool) {
  23402. dd, esep := d.d, d.hh.hasElemSeparators()
  23403. containerLen := dd.ReadMapStart()
  23404. if canChange && v == nil {
  23405. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23406. v = make(map[uint]int32, xlen)
  23407. changed = true
  23408. }
  23409. if containerLen == 0 {
  23410. dd.ReadMapEnd()
  23411. return v, changed
  23412. }
  23413. var mk uint
  23414. var mv int32
  23415. hasLen := containerLen > 0
  23416. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23417. if esep {
  23418. dd.ReadMapElemKey()
  23419. }
  23420. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23421. if esep {
  23422. dd.ReadMapElemValue()
  23423. }
  23424. if dd.TryDecodeAsNil() {
  23425. if v == nil {
  23426. } else if d.h.DeleteOnNilMapValue {
  23427. delete(v, mk)
  23428. } else {
  23429. v[mk] = 0
  23430. }
  23431. continue
  23432. }
  23433. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  23434. if v != nil {
  23435. v[mk] = mv
  23436. }
  23437. }
  23438. dd.ReadMapEnd()
  23439. return v, changed
  23440. }
  23441. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  23442. if rv.Kind() == reflect.Ptr {
  23443. vp := rv2i(rv).(*map[uint]int64)
  23444. v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d)
  23445. if changed {
  23446. *vp = v
  23447. }
  23448. } else {
  23449. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  23450. }
  23451. }
  23452. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  23453. v, changed := f.DecMapUintInt64V(*vp, true, d)
  23454. if changed {
  23455. *vp = v
  23456. }
  23457. }
  23458. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  23459. d *Decoder) (_ map[uint]int64, changed bool) {
  23460. dd, esep := d.d, d.hh.hasElemSeparators()
  23461. containerLen := dd.ReadMapStart()
  23462. if canChange && v == nil {
  23463. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23464. v = make(map[uint]int64, xlen)
  23465. changed = true
  23466. }
  23467. if containerLen == 0 {
  23468. dd.ReadMapEnd()
  23469. return v, changed
  23470. }
  23471. var mk uint
  23472. var mv int64
  23473. hasLen := containerLen > 0
  23474. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23475. if esep {
  23476. dd.ReadMapElemKey()
  23477. }
  23478. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23479. if esep {
  23480. dd.ReadMapElemValue()
  23481. }
  23482. if dd.TryDecodeAsNil() {
  23483. if v == nil {
  23484. } else if d.h.DeleteOnNilMapValue {
  23485. delete(v, mk)
  23486. } else {
  23487. v[mk] = 0
  23488. }
  23489. continue
  23490. }
  23491. mv = dd.DecodeInt64()
  23492. if v != nil {
  23493. v[mk] = mv
  23494. }
  23495. }
  23496. dd.ReadMapEnd()
  23497. return v, changed
  23498. }
  23499. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  23500. if rv.Kind() == reflect.Ptr {
  23501. vp := rv2i(rv).(*map[uint]float32)
  23502. v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d)
  23503. if changed {
  23504. *vp = v
  23505. }
  23506. } else {
  23507. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  23508. }
  23509. }
  23510. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  23511. v, changed := f.DecMapUintFloat32V(*vp, true, d)
  23512. if changed {
  23513. *vp = v
  23514. }
  23515. }
  23516. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  23517. d *Decoder) (_ map[uint]float32, changed bool) {
  23518. dd, esep := d.d, d.hh.hasElemSeparators()
  23519. containerLen := dd.ReadMapStart()
  23520. if canChange && v == nil {
  23521. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23522. v = make(map[uint]float32, xlen)
  23523. changed = true
  23524. }
  23525. if containerLen == 0 {
  23526. dd.ReadMapEnd()
  23527. return v, changed
  23528. }
  23529. var mk uint
  23530. var mv float32
  23531. hasLen := containerLen > 0
  23532. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23533. if esep {
  23534. dd.ReadMapElemKey()
  23535. }
  23536. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23537. if esep {
  23538. dd.ReadMapElemValue()
  23539. }
  23540. if dd.TryDecodeAsNil() {
  23541. if v == nil {
  23542. } else if d.h.DeleteOnNilMapValue {
  23543. delete(v, mk)
  23544. } else {
  23545. v[mk] = 0
  23546. }
  23547. continue
  23548. }
  23549. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  23550. if v != nil {
  23551. v[mk] = mv
  23552. }
  23553. }
  23554. dd.ReadMapEnd()
  23555. return v, changed
  23556. }
  23557. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  23558. if rv.Kind() == reflect.Ptr {
  23559. vp := rv2i(rv).(*map[uint]float64)
  23560. v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d)
  23561. if changed {
  23562. *vp = v
  23563. }
  23564. } else {
  23565. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  23566. }
  23567. }
  23568. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  23569. v, changed := f.DecMapUintFloat64V(*vp, true, d)
  23570. if changed {
  23571. *vp = v
  23572. }
  23573. }
  23574. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  23575. d *Decoder) (_ map[uint]float64, changed bool) {
  23576. dd, esep := d.d, d.hh.hasElemSeparators()
  23577. containerLen := dd.ReadMapStart()
  23578. if canChange && v == nil {
  23579. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23580. v = make(map[uint]float64, xlen)
  23581. changed = true
  23582. }
  23583. if containerLen == 0 {
  23584. dd.ReadMapEnd()
  23585. return v, changed
  23586. }
  23587. var mk uint
  23588. var mv float64
  23589. hasLen := containerLen > 0
  23590. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23591. if esep {
  23592. dd.ReadMapElemKey()
  23593. }
  23594. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23595. if esep {
  23596. dd.ReadMapElemValue()
  23597. }
  23598. if dd.TryDecodeAsNil() {
  23599. if v == nil {
  23600. } else if d.h.DeleteOnNilMapValue {
  23601. delete(v, mk)
  23602. } else {
  23603. v[mk] = 0
  23604. }
  23605. continue
  23606. }
  23607. mv = dd.DecodeFloat64()
  23608. if v != nil {
  23609. v[mk] = mv
  23610. }
  23611. }
  23612. dd.ReadMapEnd()
  23613. return v, changed
  23614. }
  23615. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  23616. if rv.Kind() == reflect.Ptr {
  23617. vp := rv2i(rv).(*map[uint]bool)
  23618. v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d)
  23619. if changed {
  23620. *vp = v
  23621. }
  23622. } else {
  23623. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  23624. }
  23625. }
  23626. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  23627. v, changed := f.DecMapUintBoolV(*vp, true, d)
  23628. if changed {
  23629. *vp = v
  23630. }
  23631. }
  23632. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  23633. d *Decoder) (_ map[uint]bool, changed bool) {
  23634. dd, esep := d.d, d.hh.hasElemSeparators()
  23635. containerLen := dd.ReadMapStart()
  23636. if canChange && v == nil {
  23637. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23638. v = make(map[uint]bool, xlen)
  23639. changed = true
  23640. }
  23641. if containerLen == 0 {
  23642. dd.ReadMapEnd()
  23643. return v, changed
  23644. }
  23645. var mk uint
  23646. var mv bool
  23647. hasLen := containerLen > 0
  23648. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23649. if esep {
  23650. dd.ReadMapElemKey()
  23651. }
  23652. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23653. if esep {
  23654. dd.ReadMapElemValue()
  23655. }
  23656. if dd.TryDecodeAsNil() {
  23657. if v == nil {
  23658. } else if d.h.DeleteOnNilMapValue {
  23659. delete(v, mk)
  23660. } else {
  23661. v[mk] = false
  23662. }
  23663. continue
  23664. }
  23665. mv = dd.DecodeBool()
  23666. if v != nil {
  23667. v[mk] = mv
  23668. }
  23669. }
  23670. dd.ReadMapEnd()
  23671. return v, changed
  23672. }
  23673. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  23674. if rv.Kind() == reflect.Ptr {
  23675. vp := rv2i(rv).(*map[uint8]interface{})
  23676. v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d)
  23677. if changed {
  23678. *vp = v
  23679. }
  23680. } else {
  23681. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  23682. }
  23683. }
  23684. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  23685. v, changed := f.DecMapUint8IntfV(*vp, true, d)
  23686. if changed {
  23687. *vp = v
  23688. }
  23689. }
  23690. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  23691. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  23692. dd, esep := d.d, d.hh.hasElemSeparators()
  23693. containerLen := dd.ReadMapStart()
  23694. if canChange && v == nil {
  23695. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  23696. v = make(map[uint8]interface{}, xlen)
  23697. changed = true
  23698. }
  23699. if containerLen == 0 {
  23700. dd.ReadMapEnd()
  23701. return v, changed
  23702. }
  23703. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  23704. var mk uint8
  23705. var mv interface{}
  23706. hasLen := containerLen > 0
  23707. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23708. if esep {
  23709. dd.ReadMapElemKey()
  23710. }
  23711. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23712. if esep {
  23713. dd.ReadMapElemValue()
  23714. }
  23715. if dd.TryDecodeAsNil() {
  23716. if v == nil {
  23717. } else if d.h.DeleteOnNilMapValue {
  23718. delete(v, mk)
  23719. } else {
  23720. v[mk] = nil
  23721. }
  23722. continue
  23723. }
  23724. if mapGet {
  23725. mv = v[mk]
  23726. } else {
  23727. mv = nil
  23728. }
  23729. d.decode(&mv)
  23730. if v != nil {
  23731. v[mk] = mv
  23732. }
  23733. }
  23734. dd.ReadMapEnd()
  23735. return v, changed
  23736. }
  23737. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  23738. if rv.Kind() == reflect.Ptr {
  23739. vp := rv2i(rv).(*map[uint8]string)
  23740. v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d)
  23741. if changed {
  23742. *vp = v
  23743. }
  23744. } else {
  23745. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  23746. }
  23747. }
  23748. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  23749. v, changed := f.DecMapUint8StringV(*vp, true, d)
  23750. if changed {
  23751. *vp = v
  23752. }
  23753. }
  23754. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  23755. d *Decoder) (_ map[uint8]string, changed bool) {
  23756. dd, esep := d.d, d.hh.hasElemSeparators()
  23757. containerLen := dd.ReadMapStart()
  23758. if canChange && v == nil {
  23759. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  23760. v = make(map[uint8]string, xlen)
  23761. changed = true
  23762. }
  23763. if containerLen == 0 {
  23764. dd.ReadMapEnd()
  23765. return v, changed
  23766. }
  23767. var mk uint8
  23768. var mv string
  23769. hasLen := containerLen > 0
  23770. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23771. if esep {
  23772. dd.ReadMapElemKey()
  23773. }
  23774. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23775. if esep {
  23776. dd.ReadMapElemValue()
  23777. }
  23778. if dd.TryDecodeAsNil() {
  23779. if v == nil {
  23780. } else if d.h.DeleteOnNilMapValue {
  23781. delete(v, mk)
  23782. } else {
  23783. v[mk] = ""
  23784. }
  23785. continue
  23786. }
  23787. mv = dd.DecodeString()
  23788. if v != nil {
  23789. v[mk] = mv
  23790. }
  23791. }
  23792. dd.ReadMapEnd()
  23793. return v, changed
  23794. }
  23795. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  23796. if rv.Kind() == reflect.Ptr {
  23797. vp := rv2i(rv).(*map[uint8]uint)
  23798. v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d)
  23799. if changed {
  23800. *vp = v
  23801. }
  23802. } else {
  23803. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  23804. }
  23805. }
  23806. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  23807. v, changed := f.DecMapUint8UintV(*vp, true, d)
  23808. if changed {
  23809. *vp = v
  23810. }
  23811. }
  23812. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  23813. d *Decoder) (_ map[uint8]uint, changed bool) {
  23814. dd, esep := d.d, d.hh.hasElemSeparators()
  23815. containerLen := dd.ReadMapStart()
  23816. if canChange && v == nil {
  23817. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23818. v = make(map[uint8]uint, xlen)
  23819. changed = true
  23820. }
  23821. if containerLen == 0 {
  23822. dd.ReadMapEnd()
  23823. return v, changed
  23824. }
  23825. var mk uint8
  23826. var mv uint
  23827. hasLen := containerLen > 0
  23828. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23829. if esep {
  23830. dd.ReadMapElemKey()
  23831. }
  23832. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23833. if esep {
  23834. dd.ReadMapElemValue()
  23835. }
  23836. if dd.TryDecodeAsNil() {
  23837. if v == nil {
  23838. } else if d.h.DeleteOnNilMapValue {
  23839. delete(v, mk)
  23840. } else {
  23841. v[mk] = 0
  23842. }
  23843. continue
  23844. }
  23845. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23846. if v != nil {
  23847. v[mk] = mv
  23848. }
  23849. }
  23850. dd.ReadMapEnd()
  23851. return v, changed
  23852. }
  23853. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  23854. if rv.Kind() == reflect.Ptr {
  23855. vp := rv2i(rv).(*map[uint8]uint8)
  23856. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d)
  23857. if changed {
  23858. *vp = v
  23859. }
  23860. } else {
  23861. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  23862. }
  23863. }
  23864. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  23865. v, changed := f.DecMapUint8Uint8V(*vp, true, d)
  23866. if changed {
  23867. *vp = v
  23868. }
  23869. }
  23870. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  23871. d *Decoder) (_ map[uint8]uint8, changed bool) {
  23872. dd, esep := d.d, d.hh.hasElemSeparators()
  23873. containerLen := dd.ReadMapStart()
  23874. if canChange && v == nil {
  23875. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  23876. v = make(map[uint8]uint8, xlen)
  23877. changed = true
  23878. }
  23879. if containerLen == 0 {
  23880. dd.ReadMapEnd()
  23881. return v, changed
  23882. }
  23883. var mk uint8
  23884. var mv uint8
  23885. hasLen := containerLen > 0
  23886. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23887. if esep {
  23888. dd.ReadMapElemKey()
  23889. }
  23890. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23891. if esep {
  23892. dd.ReadMapElemValue()
  23893. }
  23894. if dd.TryDecodeAsNil() {
  23895. if v == nil {
  23896. } else if d.h.DeleteOnNilMapValue {
  23897. delete(v, mk)
  23898. } else {
  23899. v[mk] = 0
  23900. }
  23901. continue
  23902. }
  23903. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23904. if v != nil {
  23905. v[mk] = mv
  23906. }
  23907. }
  23908. dd.ReadMapEnd()
  23909. return v, changed
  23910. }
  23911. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  23912. if rv.Kind() == reflect.Ptr {
  23913. vp := rv2i(rv).(*map[uint8]uint16)
  23914. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d)
  23915. if changed {
  23916. *vp = v
  23917. }
  23918. } else {
  23919. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  23920. }
  23921. }
  23922. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  23923. v, changed := f.DecMapUint8Uint16V(*vp, true, d)
  23924. if changed {
  23925. *vp = v
  23926. }
  23927. }
  23928. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  23929. d *Decoder) (_ map[uint8]uint16, changed bool) {
  23930. dd, esep := d.d, d.hh.hasElemSeparators()
  23931. containerLen := dd.ReadMapStart()
  23932. if canChange && v == nil {
  23933. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  23934. v = make(map[uint8]uint16, xlen)
  23935. changed = true
  23936. }
  23937. if containerLen == 0 {
  23938. dd.ReadMapEnd()
  23939. return v, changed
  23940. }
  23941. var mk uint8
  23942. var mv uint16
  23943. hasLen := containerLen > 0
  23944. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23945. if esep {
  23946. dd.ReadMapElemKey()
  23947. }
  23948. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23949. if esep {
  23950. dd.ReadMapElemValue()
  23951. }
  23952. if dd.TryDecodeAsNil() {
  23953. if v == nil {
  23954. } else if d.h.DeleteOnNilMapValue {
  23955. delete(v, mk)
  23956. } else {
  23957. v[mk] = 0
  23958. }
  23959. continue
  23960. }
  23961. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23962. if v != nil {
  23963. v[mk] = mv
  23964. }
  23965. }
  23966. dd.ReadMapEnd()
  23967. return v, changed
  23968. }
  23969. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  23970. if rv.Kind() == reflect.Ptr {
  23971. vp := rv2i(rv).(*map[uint8]uint32)
  23972. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d)
  23973. if changed {
  23974. *vp = v
  23975. }
  23976. } else {
  23977. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  23978. }
  23979. }
  23980. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  23981. v, changed := f.DecMapUint8Uint32V(*vp, true, d)
  23982. if changed {
  23983. *vp = v
  23984. }
  23985. }
  23986. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  23987. d *Decoder) (_ map[uint8]uint32, changed bool) {
  23988. dd, esep := d.d, d.hh.hasElemSeparators()
  23989. containerLen := dd.ReadMapStart()
  23990. if canChange && v == nil {
  23991. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  23992. v = make(map[uint8]uint32, xlen)
  23993. changed = true
  23994. }
  23995. if containerLen == 0 {
  23996. dd.ReadMapEnd()
  23997. return v, changed
  23998. }
  23999. var mk uint8
  24000. var mv uint32
  24001. hasLen := containerLen > 0
  24002. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24003. if esep {
  24004. dd.ReadMapElemKey()
  24005. }
  24006. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24007. if esep {
  24008. dd.ReadMapElemValue()
  24009. }
  24010. if dd.TryDecodeAsNil() {
  24011. if v == nil {
  24012. } else if d.h.DeleteOnNilMapValue {
  24013. delete(v, mk)
  24014. } else {
  24015. v[mk] = 0
  24016. }
  24017. continue
  24018. }
  24019. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24020. if v != nil {
  24021. v[mk] = mv
  24022. }
  24023. }
  24024. dd.ReadMapEnd()
  24025. return v, changed
  24026. }
  24027. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  24028. if rv.Kind() == reflect.Ptr {
  24029. vp := rv2i(rv).(*map[uint8]uint64)
  24030. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d)
  24031. if changed {
  24032. *vp = v
  24033. }
  24034. } else {
  24035. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  24036. }
  24037. }
  24038. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  24039. v, changed := f.DecMapUint8Uint64V(*vp, true, d)
  24040. if changed {
  24041. *vp = v
  24042. }
  24043. }
  24044. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  24045. d *Decoder) (_ map[uint8]uint64, changed bool) {
  24046. dd, esep := d.d, d.hh.hasElemSeparators()
  24047. containerLen := dd.ReadMapStart()
  24048. if canChange && v == nil {
  24049. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24050. v = make(map[uint8]uint64, xlen)
  24051. changed = true
  24052. }
  24053. if containerLen == 0 {
  24054. dd.ReadMapEnd()
  24055. return v, changed
  24056. }
  24057. var mk uint8
  24058. var mv uint64
  24059. hasLen := containerLen > 0
  24060. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24061. if esep {
  24062. dd.ReadMapElemKey()
  24063. }
  24064. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24065. if esep {
  24066. dd.ReadMapElemValue()
  24067. }
  24068. if dd.TryDecodeAsNil() {
  24069. if v == nil {
  24070. } else if d.h.DeleteOnNilMapValue {
  24071. delete(v, mk)
  24072. } else {
  24073. v[mk] = 0
  24074. }
  24075. continue
  24076. }
  24077. mv = dd.DecodeUint64()
  24078. if v != nil {
  24079. v[mk] = mv
  24080. }
  24081. }
  24082. dd.ReadMapEnd()
  24083. return v, changed
  24084. }
  24085. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  24086. if rv.Kind() == reflect.Ptr {
  24087. vp := rv2i(rv).(*map[uint8]uintptr)
  24088. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d)
  24089. if changed {
  24090. *vp = v
  24091. }
  24092. } else {
  24093. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  24094. }
  24095. }
  24096. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  24097. v, changed := f.DecMapUint8UintptrV(*vp, true, d)
  24098. if changed {
  24099. *vp = v
  24100. }
  24101. }
  24102. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  24103. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  24104. dd, esep := d.d, d.hh.hasElemSeparators()
  24105. containerLen := dd.ReadMapStart()
  24106. if canChange && v == nil {
  24107. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24108. v = make(map[uint8]uintptr, xlen)
  24109. changed = true
  24110. }
  24111. if containerLen == 0 {
  24112. dd.ReadMapEnd()
  24113. return v, changed
  24114. }
  24115. var mk uint8
  24116. var mv uintptr
  24117. hasLen := containerLen > 0
  24118. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24119. if esep {
  24120. dd.ReadMapElemKey()
  24121. }
  24122. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24123. if esep {
  24124. dd.ReadMapElemValue()
  24125. }
  24126. if dd.TryDecodeAsNil() {
  24127. if v == nil {
  24128. } else if d.h.DeleteOnNilMapValue {
  24129. delete(v, mk)
  24130. } else {
  24131. v[mk] = 0
  24132. }
  24133. continue
  24134. }
  24135. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24136. if v != nil {
  24137. v[mk] = mv
  24138. }
  24139. }
  24140. dd.ReadMapEnd()
  24141. return v, changed
  24142. }
  24143. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  24144. if rv.Kind() == reflect.Ptr {
  24145. vp := rv2i(rv).(*map[uint8]int)
  24146. v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d)
  24147. if changed {
  24148. *vp = v
  24149. }
  24150. } else {
  24151. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  24152. }
  24153. }
  24154. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  24155. v, changed := f.DecMapUint8IntV(*vp, true, d)
  24156. if changed {
  24157. *vp = v
  24158. }
  24159. }
  24160. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  24161. d *Decoder) (_ map[uint8]int, changed bool) {
  24162. dd, esep := d.d, d.hh.hasElemSeparators()
  24163. containerLen := dd.ReadMapStart()
  24164. if canChange && v == nil {
  24165. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24166. v = make(map[uint8]int, xlen)
  24167. changed = true
  24168. }
  24169. if containerLen == 0 {
  24170. dd.ReadMapEnd()
  24171. return v, changed
  24172. }
  24173. var mk uint8
  24174. var mv int
  24175. hasLen := containerLen > 0
  24176. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24177. if esep {
  24178. dd.ReadMapElemKey()
  24179. }
  24180. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24181. if esep {
  24182. dd.ReadMapElemValue()
  24183. }
  24184. if dd.TryDecodeAsNil() {
  24185. if v == nil {
  24186. } else if d.h.DeleteOnNilMapValue {
  24187. delete(v, mk)
  24188. } else {
  24189. v[mk] = 0
  24190. }
  24191. continue
  24192. }
  24193. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  24194. if v != nil {
  24195. v[mk] = mv
  24196. }
  24197. }
  24198. dd.ReadMapEnd()
  24199. return v, changed
  24200. }
  24201. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  24202. if rv.Kind() == reflect.Ptr {
  24203. vp := rv2i(rv).(*map[uint8]int8)
  24204. v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d)
  24205. if changed {
  24206. *vp = v
  24207. }
  24208. } else {
  24209. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  24210. }
  24211. }
  24212. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  24213. v, changed := f.DecMapUint8Int8V(*vp, true, d)
  24214. if changed {
  24215. *vp = v
  24216. }
  24217. }
  24218. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  24219. d *Decoder) (_ map[uint8]int8, changed bool) {
  24220. dd, esep := d.d, d.hh.hasElemSeparators()
  24221. containerLen := dd.ReadMapStart()
  24222. if canChange && v == nil {
  24223. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24224. v = make(map[uint8]int8, xlen)
  24225. changed = true
  24226. }
  24227. if containerLen == 0 {
  24228. dd.ReadMapEnd()
  24229. return v, changed
  24230. }
  24231. var mk uint8
  24232. var mv int8
  24233. hasLen := containerLen > 0
  24234. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24235. if esep {
  24236. dd.ReadMapElemKey()
  24237. }
  24238. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24239. if esep {
  24240. dd.ReadMapElemValue()
  24241. }
  24242. if dd.TryDecodeAsNil() {
  24243. if v == nil {
  24244. } else if d.h.DeleteOnNilMapValue {
  24245. delete(v, mk)
  24246. } else {
  24247. v[mk] = 0
  24248. }
  24249. continue
  24250. }
  24251. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  24252. if v != nil {
  24253. v[mk] = mv
  24254. }
  24255. }
  24256. dd.ReadMapEnd()
  24257. return v, changed
  24258. }
  24259. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  24260. if rv.Kind() == reflect.Ptr {
  24261. vp := rv2i(rv).(*map[uint8]int16)
  24262. v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d)
  24263. if changed {
  24264. *vp = v
  24265. }
  24266. } else {
  24267. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  24268. }
  24269. }
  24270. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  24271. v, changed := f.DecMapUint8Int16V(*vp, true, d)
  24272. if changed {
  24273. *vp = v
  24274. }
  24275. }
  24276. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  24277. d *Decoder) (_ map[uint8]int16, changed bool) {
  24278. dd, esep := d.d, d.hh.hasElemSeparators()
  24279. containerLen := dd.ReadMapStart()
  24280. if canChange && v == nil {
  24281. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24282. v = make(map[uint8]int16, xlen)
  24283. changed = true
  24284. }
  24285. if containerLen == 0 {
  24286. dd.ReadMapEnd()
  24287. return v, changed
  24288. }
  24289. var mk uint8
  24290. var mv int16
  24291. hasLen := containerLen > 0
  24292. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24293. if esep {
  24294. dd.ReadMapElemKey()
  24295. }
  24296. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24297. if esep {
  24298. dd.ReadMapElemValue()
  24299. }
  24300. if dd.TryDecodeAsNil() {
  24301. if v == nil {
  24302. } else if d.h.DeleteOnNilMapValue {
  24303. delete(v, mk)
  24304. } else {
  24305. v[mk] = 0
  24306. }
  24307. continue
  24308. }
  24309. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  24310. if v != nil {
  24311. v[mk] = mv
  24312. }
  24313. }
  24314. dd.ReadMapEnd()
  24315. return v, changed
  24316. }
  24317. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  24318. if rv.Kind() == reflect.Ptr {
  24319. vp := rv2i(rv).(*map[uint8]int32)
  24320. v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d)
  24321. if changed {
  24322. *vp = v
  24323. }
  24324. } else {
  24325. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  24326. }
  24327. }
  24328. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  24329. v, changed := f.DecMapUint8Int32V(*vp, true, d)
  24330. if changed {
  24331. *vp = v
  24332. }
  24333. }
  24334. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  24335. d *Decoder) (_ map[uint8]int32, changed bool) {
  24336. dd, esep := d.d, d.hh.hasElemSeparators()
  24337. containerLen := dd.ReadMapStart()
  24338. if canChange && v == nil {
  24339. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24340. v = make(map[uint8]int32, xlen)
  24341. changed = true
  24342. }
  24343. if containerLen == 0 {
  24344. dd.ReadMapEnd()
  24345. return v, changed
  24346. }
  24347. var mk uint8
  24348. var mv int32
  24349. hasLen := containerLen > 0
  24350. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24351. if esep {
  24352. dd.ReadMapElemKey()
  24353. }
  24354. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24355. if esep {
  24356. dd.ReadMapElemValue()
  24357. }
  24358. if dd.TryDecodeAsNil() {
  24359. if v == nil {
  24360. } else if d.h.DeleteOnNilMapValue {
  24361. delete(v, mk)
  24362. } else {
  24363. v[mk] = 0
  24364. }
  24365. continue
  24366. }
  24367. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  24368. if v != nil {
  24369. v[mk] = mv
  24370. }
  24371. }
  24372. dd.ReadMapEnd()
  24373. return v, changed
  24374. }
  24375. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  24376. if rv.Kind() == reflect.Ptr {
  24377. vp := rv2i(rv).(*map[uint8]int64)
  24378. v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d)
  24379. if changed {
  24380. *vp = v
  24381. }
  24382. } else {
  24383. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  24384. }
  24385. }
  24386. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  24387. v, changed := f.DecMapUint8Int64V(*vp, true, d)
  24388. if changed {
  24389. *vp = v
  24390. }
  24391. }
  24392. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  24393. d *Decoder) (_ map[uint8]int64, changed bool) {
  24394. dd, esep := d.d, d.hh.hasElemSeparators()
  24395. containerLen := dd.ReadMapStart()
  24396. if canChange && v == nil {
  24397. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24398. v = make(map[uint8]int64, xlen)
  24399. changed = true
  24400. }
  24401. if containerLen == 0 {
  24402. dd.ReadMapEnd()
  24403. return v, changed
  24404. }
  24405. var mk uint8
  24406. var mv int64
  24407. hasLen := containerLen > 0
  24408. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24409. if esep {
  24410. dd.ReadMapElemKey()
  24411. }
  24412. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24413. if esep {
  24414. dd.ReadMapElemValue()
  24415. }
  24416. if dd.TryDecodeAsNil() {
  24417. if v == nil {
  24418. } else if d.h.DeleteOnNilMapValue {
  24419. delete(v, mk)
  24420. } else {
  24421. v[mk] = 0
  24422. }
  24423. continue
  24424. }
  24425. mv = dd.DecodeInt64()
  24426. if v != nil {
  24427. v[mk] = mv
  24428. }
  24429. }
  24430. dd.ReadMapEnd()
  24431. return v, changed
  24432. }
  24433. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  24434. if rv.Kind() == reflect.Ptr {
  24435. vp := rv2i(rv).(*map[uint8]float32)
  24436. v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d)
  24437. if changed {
  24438. *vp = v
  24439. }
  24440. } else {
  24441. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  24442. }
  24443. }
  24444. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  24445. v, changed := f.DecMapUint8Float32V(*vp, true, d)
  24446. if changed {
  24447. *vp = v
  24448. }
  24449. }
  24450. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  24451. d *Decoder) (_ map[uint8]float32, changed bool) {
  24452. dd, esep := d.d, d.hh.hasElemSeparators()
  24453. containerLen := dd.ReadMapStart()
  24454. if canChange && v == nil {
  24455. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24456. v = make(map[uint8]float32, xlen)
  24457. changed = true
  24458. }
  24459. if containerLen == 0 {
  24460. dd.ReadMapEnd()
  24461. return v, changed
  24462. }
  24463. var mk uint8
  24464. var mv float32
  24465. hasLen := containerLen > 0
  24466. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24467. if esep {
  24468. dd.ReadMapElemKey()
  24469. }
  24470. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24471. if esep {
  24472. dd.ReadMapElemValue()
  24473. }
  24474. if dd.TryDecodeAsNil() {
  24475. if v == nil {
  24476. } else if d.h.DeleteOnNilMapValue {
  24477. delete(v, mk)
  24478. } else {
  24479. v[mk] = 0
  24480. }
  24481. continue
  24482. }
  24483. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  24484. if v != nil {
  24485. v[mk] = mv
  24486. }
  24487. }
  24488. dd.ReadMapEnd()
  24489. return v, changed
  24490. }
  24491. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  24492. if rv.Kind() == reflect.Ptr {
  24493. vp := rv2i(rv).(*map[uint8]float64)
  24494. v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d)
  24495. if changed {
  24496. *vp = v
  24497. }
  24498. } else {
  24499. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  24500. }
  24501. }
  24502. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  24503. v, changed := f.DecMapUint8Float64V(*vp, true, d)
  24504. if changed {
  24505. *vp = v
  24506. }
  24507. }
  24508. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  24509. d *Decoder) (_ map[uint8]float64, changed bool) {
  24510. dd, esep := d.d, d.hh.hasElemSeparators()
  24511. containerLen := dd.ReadMapStart()
  24512. if canChange && v == nil {
  24513. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24514. v = make(map[uint8]float64, xlen)
  24515. changed = true
  24516. }
  24517. if containerLen == 0 {
  24518. dd.ReadMapEnd()
  24519. return v, changed
  24520. }
  24521. var mk uint8
  24522. var mv float64
  24523. hasLen := containerLen > 0
  24524. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24525. if esep {
  24526. dd.ReadMapElemKey()
  24527. }
  24528. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24529. if esep {
  24530. dd.ReadMapElemValue()
  24531. }
  24532. if dd.TryDecodeAsNil() {
  24533. if v == nil {
  24534. } else if d.h.DeleteOnNilMapValue {
  24535. delete(v, mk)
  24536. } else {
  24537. v[mk] = 0
  24538. }
  24539. continue
  24540. }
  24541. mv = dd.DecodeFloat64()
  24542. if v != nil {
  24543. v[mk] = mv
  24544. }
  24545. }
  24546. dd.ReadMapEnd()
  24547. return v, changed
  24548. }
  24549. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  24550. if rv.Kind() == reflect.Ptr {
  24551. vp := rv2i(rv).(*map[uint8]bool)
  24552. v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d)
  24553. if changed {
  24554. *vp = v
  24555. }
  24556. } else {
  24557. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  24558. }
  24559. }
  24560. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  24561. v, changed := f.DecMapUint8BoolV(*vp, true, d)
  24562. if changed {
  24563. *vp = v
  24564. }
  24565. }
  24566. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  24567. d *Decoder) (_ map[uint8]bool, changed bool) {
  24568. dd, esep := d.d, d.hh.hasElemSeparators()
  24569. containerLen := dd.ReadMapStart()
  24570. if canChange && v == nil {
  24571. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24572. v = make(map[uint8]bool, xlen)
  24573. changed = true
  24574. }
  24575. if containerLen == 0 {
  24576. dd.ReadMapEnd()
  24577. return v, changed
  24578. }
  24579. var mk uint8
  24580. var mv bool
  24581. hasLen := containerLen > 0
  24582. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24583. if esep {
  24584. dd.ReadMapElemKey()
  24585. }
  24586. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24587. if esep {
  24588. dd.ReadMapElemValue()
  24589. }
  24590. if dd.TryDecodeAsNil() {
  24591. if v == nil {
  24592. } else if d.h.DeleteOnNilMapValue {
  24593. delete(v, mk)
  24594. } else {
  24595. v[mk] = false
  24596. }
  24597. continue
  24598. }
  24599. mv = dd.DecodeBool()
  24600. if v != nil {
  24601. v[mk] = mv
  24602. }
  24603. }
  24604. dd.ReadMapEnd()
  24605. return v, changed
  24606. }
  24607. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  24608. if rv.Kind() == reflect.Ptr {
  24609. vp := rv2i(rv).(*map[uint16]interface{})
  24610. v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d)
  24611. if changed {
  24612. *vp = v
  24613. }
  24614. } else {
  24615. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  24616. }
  24617. }
  24618. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  24619. v, changed := f.DecMapUint16IntfV(*vp, true, d)
  24620. if changed {
  24621. *vp = v
  24622. }
  24623. }
  24624. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  24625. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  24626. dd, esep := d.d, d.hh.hasElemSeparators()
  24627. containerLen := dd.ReadMapStart()
  24628. if canChange && v == nil {
  24629. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24630. v = make(map[uint16]interface{}, xlen)
  24631. changed = true
  24632. }
  24633. if containerLen == 0 {
  24634. dd.ReadMapEnd()
  24635. return v, changed
  24636. }
  24637. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  24638. var mk uint16
  24639. var mv interface{}
  24640. hasLen := containerLen > 0
  24641. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24642. if esep {
  24643. dd.ReadMapElemKey()
  24644. }
  24645. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24646. if esep {
  24647. dd.ReadMapElemValue()
  24648. }
  24649. if dd.TryDecodeAsNil() {
  24650. if v == nil {
  24651. } else if d.h.DeleteOnNilMapValue {
  24652. delete(v, mk)
  24653. } else {
  24654. v[mk] = nil
  24655. }
  24656. continue
  24657. }
  24658. if mapGet {
  24659. mv = v[mk]
  24660. } else {
  24661. mv = nil
  24662. }
  24663. d.decode(&mv)
  24664. if v != nil {
  24665. v[mk] = mv
  24666. }
  24667. }
  24668. dd.ReadMapEnd()
  24669. return v, changed
  24670. }
  24671. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  24672. if rv.Kind() == reflect.Ptr {
  24673. vp := rv2i(rv).(*map[uint16]string)
  24674. v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d)
  24675. if changed {
  24676. *vp = v
  24677. }
  24678. } else {
  24679. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  24680. }
  24681. }
  24682. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  24683. v, changed := f.DecMapUint16StringV(*vp, true, d)
  24684. if changed {
  24685. *vp = v
  24686. }
  24687. }
  24688. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  24689. d *Decoder) (_ map[uint16]string, changed bool) {
  24690. dd, esep := d.d, d.hh.hasElemSeparators()
  24691. containerLen := dd.ReadMapStart()
  24692. if canChange && v == nil {
  24693. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24694. v = make(map[uint16]string, xlen)
  24695. changed = true
  24696. }
  24697. if containerLen == 0 {
  24698. dd.ReadMapEnd()
  24699. return v, changed
  24700. }
  24701. var mk uint16
  24702. var mv string
  24703. hasLen := containerLen > 0
  24704. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24705. if esep {
  24706. dd.ReadMapElemKey()
  24707. }
  24708. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24709. if esep {
  24710. dd.ReadMapElemValue()
  24711. }
  24712. if dd.TryDecodeAsNil() {
  24713. if v == nil {
  24714. } else if d.h.DeleteOnNilMapValue {
  24715. delete(v, mk)
  24716. } else {
  24717. v[mk] = ""
  24718. }
  24719. continue
  24720. }
  24721. mv = dd.DecodeString()
  24722. if v != nil {
  24723. v[mk] = mv
  24724. }
  24725. }
  24726. dd.ReadMapEnd()
  24727. return v, changed
  24728. }
  24729. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  24730. if rv.Kind() == reflect.Ptr {
  24731. vp := rv2i(rv).(*map[uint16]uint)
  24732. v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d)
  24733. if changed {
  24734. *vp = v
  24735. }
  24736. } else {
  24737. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  24738. }
  24739. }
  24740. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  24741. v, changed := f.DecMapUint16UintV(*vp, true, d)
  24742. if changed {
  24743. *vp = v
  24744. }
  24745. }
  24746. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  24747. d *Decoder) (_ map[uint16]uint, changed bool) {
  24748. dd, esep := d.d, d.hh.hasElemSeparators()
  24749. containerLen := dd.ReadMapStart()
  24750. if canChange && v == nil {
  24751. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24752. v = make(map[uint16]uint, xlen)
  24753. changed = true
  24754. }
  24755. if containerLen == 0 {
  24756. dd.ReadMapEnd()
  24757. return v, changed
  24758. }
  24759. var mk uint16
  24760. var mv uint
  24761. hasLen := containerLen > 0
  24762. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24763. if esep {
  24764. dd.ReadMapElemKey()
  24765. }
  24766. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24767. if esep {
  24768. dd.ReadMapElemValue()
  24769. }
  24770. if dd.TryDecodeAsNil() {
  24771. if v == nil {
  24772. } else if d.h.DeleteOnNilMapValue {
  24773. delete(v, mk)
  24774. } else {
  24775. v[mk] = 0
  24776. }
  24777. continue
  24778. }
  24779. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24780. if v != nil {
  24781. v[mk] = mv
  24782. }
  24783. }
  24784. dd.ReadMapEnd()
  24785. return v, changed
  24786. }
  24787. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  24788. if rv.Kind() == reflect.Ptr {
  24789. vp := rv2i(rv).(*map[uint16]uint8)
  24790. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d)
  24791. if changed {
  24792. *vp = v
  24793. }
  24794. } else {
  24795. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  24796. }
  24797. }
  24798. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  24799. v, changed := f.DecMapUint16Uint8V(*vp, true, d)
  24800. if changed {
  24801. *vp = v
  24802. }
  24803. }
  24804. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  24805. d *Decoder) (_ map[uint16]uint8, changed bool) {
  24806. dd, esep := d.d, d.hh.hasElemSeparators()
  24807. containerLen := dd.ReadMapStart()
  24808. if canChange && v == nil {
  24809. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24810. v = make(map[uint16]uint8, xlen)
  24811. changed = true
  24812. }
  24813. if containerLen == 0 {
  24814. dd.ReadMapEnd()
  24815. return v, changed
  24816. }
  24817. var mk uint16
  24818. var mv uint8
  24819. hasLen := containerLen > 0
  24820. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24821. if esep {
  24822. dd.ReadMapElemKey()
  24823. }
  24824. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24825. if esep {
  24826. dd.ReadMapElemValue()
  24827. }
  24828. if dd.TryDecodeAsNil() {
  24829. if v == nil {
  24830. } else if d.h.DeleteOnNilMapValue {
  24831. delete(v, mk)
  24832. } else {
  24833. v[mk] = 0
  24834. }
  24835. continue
  24836. }
  24837. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24838. if v != nil {
  24839. v[mk] = mv
  24840. }
  24841. }
  24842. dd.ReadMapEnd()
  24843. return v, changed
  24844. }
  24845. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  24846. if rv.Kind() == reflect.Ptr {
  24847. vp := rv2i(rv).(*map[uint16]uint16)
  24848. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d)
  24849. if changed {
  24850. *vp = v
  24851. }
  24852. } else {
  24853. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  24854. }
  24855. }
  24856. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  24857. v, changed := f.DecMapUint16Uint16V(*vp, true, d)
  24858. if changed {
  24859. *vp = v
  24860. }
  24861. }
  24862. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  24863. d *Decoder) (_ map[uint16]uint16, changed bool) {
  24864. dd, esep := d.d, d.hh.hasElemSeparators()
  24865. containerLen := dd.ReadMapStart()
  24866. if canChange && v == nil {
  24867. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  24868. v = make(map[uint16]uint16, xlen)
  24869. changed = true
  24870. }
  24871. if containerLen == 0 {
  24872. dd.ReadMapEnd()
  24873. return v, changed
  24874. }
  24875. var mk uint16
  24876. var mv uint16
  24877. hasLen := containerLen > 0
  24878. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24879. if esep {
  24880. dd.ReadMapElemKey()
  24881. }
  24882. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24883. if esep {
  24884. dd.ReadMapElemValue()
  24885. }
  24886. if dd.TryDecodeAsNil() {
  24887. if v == nil {
  24888. } else if d.h.DeleteOnNilMapValue {
  24889. delete(v, mk)
  24890. } else {
  24891. v[mk] = 0
  24892. }
  24893. continue
  24894. }
  24895. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24896. if v != nil {
  24897. v[mk] = mv
  24898. }
  24899. }
  24900. dd.ReadMapEnd()
  24901. return v, changed
  24902. }
  24903. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  24904. if rv.Kind() == reflect.Ptr {
  24905. vp := rv2i(rv).(*map[uint16]uint32)
  24906. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d)
  24907. if changed {
  24908. *vp = v
  24909. }
  24910. } else {
  24911. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  24912. }
  24913. }
  24914. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  24915. v, changed := f.DecMapUint16Uint32V(*vp, true, d)
  24916. if changed {
  24917. *vp = v
  24918. }
  24919. }
  24920. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  24921. d *Decoder) (_ map[uint16]uint32, changed bool) {
  24922. dd, esep := d.d, d.hh.hasElemSeparators()
  24923. containerLen := dd.ReadMapStart()
  24924. if canChange && v == nil {
  24925. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  24926. v = make(map[uint16]uint32, xlen)
  24927. changed = true
  24928. }
  24929. if containerLen == 0 {
  24930. dd.ReadMapEnd()
  24931. return v, changed
  24932. }
  24933. var mk uint16
  24934. var mv uint32
  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] = 0
  24950. }
  24951. continue
  24952. }
  24953. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24954. if v != nil {
  24955. v[mk] = mv
  24956. }
  24957. }
  24958. dd.ReadMapEnd()
  24959. return v, changed
  24960. }
  24961. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  24962. if rv.Kind() == reflect.Ptr {
  24963. vp := rv2i(rv).(*map[uint16]uint64)
  24964. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d)
  24965. if changed {
  24966. *vp = v
  24967. }
  24968. } else {
  24969. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  24970. }
  24971. }
  24972. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  24973. v, changed := f.DecMapUint16Uint64V(*vp, true, d)
  24974. if changed {
  24975. *vp = v
  24976. }
  24977. }
  24978. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  24979. d *Decoder) (_ map[uint16]uint64, changed bool) {
  24980. dd, esep := d.d, d.hh.hasElemSeparators()
  24981. containerLen := dd.ReadMapStart()
  24982. if canChange && v == nil {
  24983. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24984. v = make(map[uint16]uint64, xlen)
  24985. changed = true
  24986. }
  24987. if containerLen == 0 {
  24988. dd.ReadMapEnd()
  24989. return v, changed
  24990. }
  24991. var mk uint16
  24992. var mv uint64
  24993. hasLen := containerLen > 0
  24994. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24995. if esep {
  24996. dd.ReadMapElemKey()
  24997. }
  24998. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24999. if esep {
  25000. dd.ReadMapElemValue()
  25001. }
  25002. if dd.TryDecodeAsNil() {
  25003. if v == nil {
  25004. } else if d.h.DeleteOnNilMapValue {
  25005. delete(v, mk)
  25006. } else {
  25007. v[mk] = 0
  25008. }
  25009. continue
  25010. }
  25011. mv = dd.DecodeUint64()
  25012. if v != nil {
  25013. v[mk] = mv
  25014. }
  25015. }
  25016. dd.ReadMapEnd()
  25017. return v, changed
  25018. }
  25019. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  25020. if rv.Kind() == reflect.Ptr {
  25021. vp := rv2i(rv).(*map[uint16]uintptr)
  25022. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d)
  25023. if changed {
  25024. *vp = v
  25025. }
  25026. } else {
  25027. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  25028. }
  25029. }
  25030. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  25031. v, changed := f.DecMapUint16UintptrV(*vp, true, d)
  25032. if changed {
  25033. *vp = v
  25034. }
  25035. }
  25036. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  25037. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  25038. dd, esep := d.d, d.hh.hasElemSeparators()
  25039. containerLen := dd.ReadMapStart()
  25040. if canChange && v == nil {
  25041. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25042. v = make(map[uint16]uintptr, xlen)
  25043. changed = true
  25044. }
  25045. if containerLen == 0 {
  25046. dd.ReadMapEnd()
  25047. return v, changed
  25048. }
  25049. var mk uint16
  25050. var mv uintptr
  25051. hasLen := containerLen > 0
  25052. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25053. if esep {
  25054. dd.ReadMapElemKey()
  25055. }
  25056. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25057. if esep {
  25058. dd.ReadMapElemValue()
  25059. }
  25060. if dd.TryDecodeAsNil() {
  25061. if v == nil {
  25062. } else if d.h.DeleteOnNilMapValue {
  25063. delete(v, mk)
  25064. } else {
  25065. v[mk] = 0
  25066. }
  25067. continue
  25068. }
  25069. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25070. if v != nil {
  25071. v[mk] = mv
  25072. }
  25073. }
  25074. dd.ReadMapEnd()
  25075. return v, changed
  25076. }
  25077. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  25078. if rv.Kind() == reflect.Ptr {
  25079. vp := rv2i(rv).(*map[uint16]int)
  25080. v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d)
  25081. if changed {
  25082. *vp = v
  25083. }
  25084. } else {
  25085. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  25086. }
  25087. }
  25088. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  25089. v, changed := f.DecMapUint16IntV(*vp, true, d)
  25090. if changed {
  25091. *vp = v
  25092. }
  25093. }
  25094. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  25095. d *Decoder) (_ map[uint16]int, changed bool) {
  25096. dd, esep := d.d, d.hh.hasElemSeparators()
  25097. containerLen := dd.ReadMapStart()
  25098. if canChange && v == nil {
  25099. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25100. v = make(map[uint16]int, xlen)
  25101. changed = true
  25102. }
  25103. if containerLen == 0 {
  25104. dd.ReadMapEnd()
  25105. return v, changed
  25106. }
  25107. var mk uint16
  25108. var mv int
  25109. hasLen := containerLen > 0
  25110. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25111. if esep {
  25112. dd.ReadMapElemKey()
  25113. }
  25114. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25115. if esep {
  25116. dd.ReadMapElemValue()
  25117. }
  25118. if dd.TryDecodeAsNil() {
  25119. if v == nil {
  25120. } else if d.h.DeleteOnNilMapValue {
  25121. delete(v, mk)
  25122. } else {
  25123. v[mk] = 0
  25124. }
  25125. continue
  25126. }
  25127. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  25128. if v != nil {
  25129. v[mk] = mv
  25130. }
  25131. }
  25132. dd.ReadMapEnd()
  25133. return v, changed
  25134. }
  25135. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  25136. if rv.Kind() == reflect.Ptr {
  25137. vp := rv2i(rv).(*map[uint16]int8)
  25138. v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d)
  25139. if changed {
  25140. *vp = v
  25141. }
  25142. } else {
  25143. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  25144. }
  25145. }
  25146. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  25147. v, changed := f.DecMapUint16Int8V(*vp, true, d)
  25148. if changed {
  25149. *vp = v
  25150. }
  25151. }
  25152. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  25153. d *Decoder) (_ map[uint16]int8, changed bool) {
  25154. dd, esep := d.d, d.hh.hasElemSeparators()
  25155. containerLen := dd.ReadMapStart()
  25156. if canChange && v == nil {
  25157. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25158. v = make(map[uint16]int8, xlen)
  25159. changed = true
  25160. }
  25161. if containerLen == 0 {
  25162. dd.ReadMapEnd()
  25163. return v, changed
  25164. }
  25165. var mk uint16
  25166. var mv int8
  25167. hasLen := containerLen > 0
  25168. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25169. if esep {
  25170. dd.ReadMapElemKey()
  25171. }
  25172. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25173. if esep {
  25174. dd.ReadMapElemValue()
  25175. }
  25176. if dd.TryDecodeAsNil() {
  25177. if v == nil {
  25178. } else if d.h.DeleteOnNilMapValue {
  25179. delete(v, mk)
  25180. } else {
  25181. v[mk] = 0
  25182. }
  25183. continue
  25184. }
  25185. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  25186. if v != nil {
  25187. v[mk] = mv
  25188. }
  25189. }
  25190. dd.ReadMapEnd()
  25191. return v, changed
  25192. }
  25193. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  25194. if rv.Kind() == reflect.Ptr {
  25195. vp := rv2i(rv).(*map[uint16]int16)
  25196. v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d)
  25197. if changed {
  25198. *vp = v
  25199. }
  25200. } else {
  25201. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  25202. }
  25203. }
  25204. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  25205. v, changed := f.DecMapUint16Int16V(*vp, true, d)
  25206. if changed {
  25207. *vp = v
  25208. }
  25209. }
  25210. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  25211. d *Decoder) (_ map[uint16]int16, changed bool) {
  25212. dd, esep := d.d, d.hh.hasElemSeparators()
  25213. containerLen := dd.ReadMapStart()
  25214. if canChange && v == nil {
  25215. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25216. v = make(map[uint16]int16, xlen)
  25217. changed = true
  25218. }
  25219. if containerLen == 0 {
  25220. dd.ReadMapEnd()
  25221. return v, changed
  25222. }
  25223. var mk uint16
  25224. var mv int16
  25225. hasLen := containerLen > 0
  25226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25227. if esep {
  25228. dd.ReadMapElemKey()
  25229. }
  25230. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25231. if esep {
  25232. dd.ReadMapElemValue()
  25233. }
  25234. if dd.TryDecodeAsNil() {
  25235. if v == nil {
  25236. } else if d.h.DeleteOnNilMapValue {
  25237. delete(v, mk)
  25238. } else {
  25239. v[mk] = 0
  25240. }
  25241. continue
  25242. }
  25243. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  25244. if v != nil {
  25245. v[mk] = mv
  25246. }
  25247. }
  25248. dd.ReadMapEnd()
  25249. return v, changed
  25250. }
  25251. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  25252. if rv.Kind() == reflect.Ptr {
  25253. vp := rv2i(rv).(*map[uint16]int32)
  25254. v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d)
  25255. if changed {
  25256. *vp = v
  25257. }
  25258. } else {
  25259. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  25260. }
  25261. }
  25262. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  25263. v, changed := f.DecMapUint16Int32V(*vp, true, d)
  25264. if changed {
  25265. *vp = v
  25266. }
  25267. }
  25268. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  25269. d *Decoder) (_ map[uint16]int32, changed bool) {
  25270. dd, esep := d.d, d.hh.hasElemSeparators()
  25271. containerLen := dd.ReadMapStart()
  25272. if canChange && v == nil {
  25273. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25274. v = make(map[uint16]int32, xlen)
  25275. changed = true
  25276. }
  25277. if containerLen == 0 {
  25278. dd.ReadMapEnd()
  25279. return v, changed
  25280. }
  25281. var mk uint16
  25282. var mv int32
  25283. hasLen := containerLen > 0
  25284. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25285. if esep {
  25286. dd.ReadMapElemKey()
  25287. }
  25288. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25289. if esep {
  25290. dd.ReadMapElemValue()
  25291. }
  25292. if dd.TryDecodeAsNil() {
  25293. if v == nil {
  25294. } else if d.h.DeleteOnNilMapValue {
  25295. delete(v, mk)
  25296. } else {
  25297. v[mk] = 0
  25298. }
  25299. continue
  25300. }
  25301. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  25302. if v != nil {
  25303. v[mk] = mv
  25304. }
  25305. }
  25306. dd.ReadMapEnd()
  25307. return v, changed
  25308. }
  25309. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  25310. if rv.Kind() == reflect.Ptr {
  25311. vp := rv2i(rv).(*map[uint16]int64)
  25312. v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d)
  25313. if changed {
  25314. *vp = v
  25315. }
  25316. } else {
  25317. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  25318. }
  25319. }
  25320. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  25321. v, changed := f.DecMapUint16Int64V(*vp, true, d)
  25322. if changed {
  25323. *vp = v
  25324. }
  25325. }
  25326. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  25327. d *Decoder) (_ map[uint16]int64, changed bool) {
  25328. dd, esep := d.d, d.hh.hasElemSeparators()
  25329. containerLen := dd.ReadMapStart()
  25330. if canChange && v == nil {
  25331. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25332. v = make(map[uint16]int64, xlen)
  25333. changed = true
  25334. }
  25335. if containerLen == 0 {
  25336. dd.ReadMapEnd()
  25337. return v, changed
  25338. }
  25339. var mk uint16
  25340. var mv int64
  25341. hasLen := containerLen > 0
  25342. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25343. if esep {
  25344. dd.ReadMapElemKey()
  25345. }
  25346. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25347. if esep {
  25348. dd.ReadMapElemValue()
  25349. }
  25350. if dd.TryDecodeAsNil() {
  25351. if v == nil {
  25352. } else if d.h.DeleteOnNilMapValue {
  25353. delete(v, mk)
  25354. } else {
  25355. v[mk] = 0
  25356. }
  25357. continue
  25358. }
  25359. mv = dd.DecodeInt64()
  25360. if v != nil {
  25361. v[mk] = mv
  25362. }
  25363. }
  25364. dd.ReadMapEnd()
  25365. return v, changed
  25366. }
  25367. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  25368. if rv.Kind() == reflect.Ptr {
  25369. vp := rv2i(rv).(*map[uint16]float32)
  25370. v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d)
  25371. if changed {
  25372. *vp = v
  25373. }
  25374. } else {
  25375. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  25376. }
  25377. }
  25378. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  25379. v, changed := f.DecMapUint16Float32V(*vp, true, d)
  25380. if changed {
  25381. *vp = v
  25382. }
  25383. }
  25384. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  25385. d *Decoder) (_ map[uint16]float32, changed bool) {
  25386. dd, esep := d.d, d.hh.hasElemSeparators()
  25387. containerLen := dd.ReadMapStart()
  25388. if canChange && v == nil {
  25389. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25390. v = make(map[uint16]float32, xlen)
  25391. changed = true
  25392. }
  25393. if containerLen == 0 {
  25394. dd.ReadMapEnd()
  25395. return v, changed
  25396. }
  25397. var mk uint16
  25398. var mv float32
  25399. hasLen := containerLen > 0
  25400. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25401. if esep {
  25402. dd.ReadMapElemKey()
  25403. }
  25404. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25405. if esep {
  25406. dd.ReadMapElemValue()
  25407. }
  25408. if dd.TryDecodeAsNil() {
  25409. if v == nil {
  25410. } else if d.h.DeleteOnNilMapValue {
  25411. delete(v, mk)
  25412. } else {
  25413. v[mk] = 0
  25414. }
  25415. continue
  25416. }
  25417. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  25418. if v != nil {
  25419. v[mk] = mv
  25420. }
  25421. }
  25422. dd.ReadMapEnd()
  25423. return v, changed
  25424. }
  25425. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  25426. if rv.Kind() == reflect.Ptr {
  25427. vp := rv2i(rv).(*map[uint16]float64)
  25428. v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d)
  25429. if changed {
  25430. *vp = v
  25431. }
  25432. } else {
  25433. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  25434. }
  25435. }
  25436. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  25437. v, changed := f.DecMapUint16Float64V(*vp, true, d)
  25438. if changed {
  25439. *vp = v
  25440. }
  25441. }
  25442. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  25443. d *Decoder) (_ map[uint16]float64, changed bool) {
  25444. dd, esep := d.d, d.hh.hasElemSeparators()
  25445. containerLen := dd.ReadMapStart()
  25446. if canChange && v == nil {
  25447. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25448. v = make(map[uint16]float64, xlen)
  25449. changed = true
  25450. }
  25451. if containerLen == 0 {
  25452. dd.ReadMapEnd()
  25453. return v, changed
  25454. }
  25455. var mk uint16
  25456. var mv float64
  25457. hasLen := containerLen > 0
  25458. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25459. if esep {
  25460. dd.ReadMapElemKey()
  25461. }
  25462. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25463. if esep {
  25464. dd.ReadMapElemValue()
  25465. }
  25466. if dd.TryDecodeAsNil() {
  25467. if v == nil {
  25468. } else if d.h.DeleteOnNilMapValue {
  25469. delete(v, mk)
  25470. } else {
  25471. v[mk] = 0
  25472. }
  25473. continue
  25474. }
  25475. mv = dd.DecodeFloat64()
  25476. if v != nil {
  25477. v[mk] = mv
  25478. }
  25479. }
  25480. dd.ReadMapEnd()
  25481. return v, changed
  25482. }
  25483. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  25484. if rv.Kind() == reflect.Ptr {
  25485. vp := rv2i(rv).(*map[uint16]bool)
  25486. v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d)
  25487. if changed {
  25488. *vp = v
  25489. }
  25490. } else {
  25491. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  25492. }
  25493. }
  25494. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  25495. v, changed := f.DecMapUint16BoolV(*vp, true, d)
  25496. if changed {
  25497. *vp = v
  25498. }
  25499. }
  25500. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  25501. d *Decoder) (_ map[uint16]bool, changed bool) {
  25502. dd, esep := d.d, d.hh.hasElemSeparators()
  25503. containerLen := dd.ReadMapStart()
  25504. if canChange && v == nil {
  25505. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25506. v = make(map[uint16]bool, xlen)
  25507. changed = true
  25508. }
  25509. if containerLen == 0 {
  25510. dd.ReadMapEnd()
  25511. return v, changed
  25512. }
  25513. var mk uint16
  25514. var mv bool
  25515. hasLen := containerLen > 0
  25516. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25517. if esep {
  25518. dd.ReadMapElemKey()
  25519. }
  25520. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25521. if esep {
  25522. dd.ReadMapElemValue()
  25523. }
  25524. if dd.TryDecodeAsNil() {
  25525. if v == nil {
  25526. } else if d.h.DeleteOnNilMapValue {
  25527. delete(v, mk)
  25528. } else {
  25529. v[mk] = false
  25530. }
  25531. continue
  25532. }
  25533. mv = dd.DecodeBool()
  25534. if v != nil {
  25535. v[mk] = mv
  25536. }
  25537. }
  25538. dd.ReadMapEnd()
  25539. return v, changed
  25540. }
  25541. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  25542. if rv.Kind() == reflect.Ptr {
  25543. vp := rv2i(rv).(*map[uint32]interface{})
  25544. v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d)
  25545. if changed {
  25546. *vp = v
  25547. }
  25548. } else {
  25549. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  25550. }
  25551. }
  25552. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  25553. v, changed := f.DecMapUint32IntfV(*vp, true, d)
  25554. if changed {
  25555. *vp = v
  25556. }
  25557. }
  25558. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  25559. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  25560. dd, esep := d.d, d.hh.hasElemSeparators()
  25561. containerLen := dd.ReadMapStart()
  25562. if canChange && v == nil {
  25563. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25564. v = make(map[uint32]interface{}, xlen)
  25565. changed = true
  25566. }
  25567. if containerLen == 0 {
  25568. dd.ReadMapEnd()
  25569. return v, changed
  25570. }
  25571. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  25572. var mk uint32
  25573. var mv interface{}
  25574. hasLen := containerLen > 0
  25575. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25576. if esep {
  25577. dd.ReadMapElemKey()
  25578. }
  25579. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25580. if esep {
  25581. dd.ReadMapElemValue()
  25582. }
  25583. if dd.TryDecodeAsNil() {
  25584. if v == nil {
  25585. } else if d.h.DeleteOnNilMapValue {
  25586. delete(v, mk)
  25587. } else {
  25588. v[mk] = nil
  25589. }
  25590. continue
  25591. }
  25592. if mapGet {
  25593. mv = v[mk]
  25594. } else {
  25595. mv = nil
  25596. }
  25597. d.decode(&mv)
  25598. if v != nil {
  25599. v[mk] = mv
  25600. }
  25601. }
  25602. dd.ReadMapEnd()
  25603. return v, changed
  25604. }
  25605. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  25606. if rv.Kind() == reflect.Ptr {
  25607. vp := rv2i(rv).(*map[uint32]string)
  25608. v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d)
  25609. if changed {
  25610. *vp = v
  25611. }
  25612. } else {
  25613. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  25614. }
  25615. }
  25616. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  25617. v, changed := f.DecMapUint32StringV(*vp, true, d)
  25618. if changed {
  25619. *vp = v
  25620. }
  25621. }
  25622. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  25623. d *Decoder) (_ map[uint32]string, changed bool) {
  25624. dd, esep := d.d, d.hh.hasElemSeparators()
  25625. containerLen := dd.ReadMapStart()
  25626. if canChange && v == nil {
  25627. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25628. v = make(map[uint32]string, xlen)
  25629. changed = true
  25630. }
  25631. if containerLen == 0 {
  25632. dd.ReadMapEnd()
  25633. return v, changed
  25634. }
  25635. var mk uint32
  25636. var mv string
  25637. hasLen := containerLen > 0
  25638. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25639. if esep {
  25640. dd.ReadMapElemKey()
  25641. }
  25642. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25643. if esep {
  25644. dd.ReadMapElemValue()
  25645. }
  25646. if dd.TryDecodeAsNil() {
  25647. if v == nil {
  25648. } else if d.h.DeleteOnNilMapValue {
  25649. delete(v, mk)
  25650. } else {
  25651. v[mk] = ""
  25652. }
  25653. continue
  25654. }
  25655. mv = dd.DecodeString()
  25656. if v != nil {
  25657. v[mk] = mv
  25658. }
  25659. }
  25660. dd.ReadMapEnd()
  25661. return v, changed
  25662. }
  25663. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  25664. if rv.Kind() == reflect.Ptr {
  25665. vp := rv2i(rv).(*map[uint32]uint)
  25666. v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d)
  25667. if changed {
  25668. *vp = v
  25669. }
  25670. } else {
  25671. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  25672. }
  25673. }
  25674. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  25675. v, changed := f.DecMapUint32UintV(*vp, true, d)
  25676. if changed {
  25677. *vp = v
  25678. }
  25679. }
  25680. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  25681. d *Decoder) (_ map[uint32]uint, changed bool) {
  25682. dd, esep := d.d, d.hh.hasElemSeparators()
  25683. containerLen := dd.ReadMapStart()
  25684. if canChange && v == nil {
  25685. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25686. v = make(map[uint32]uint, xlen)
  25687. changed = true
  25688. }
  25689. if containerLen == 0 {
  25690. dd.ReadMapEnd()
  25691. return v, changed
  25692. }
  25693. var mk uint32
  25694. var mv uint
  25695. hasLen := containerLen > 0
  25696. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25697. if esep {
  25698. dd.ReadMapElemKey()
  25699. }
  25700. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25701. if esep {
  25702. dd.ReadMapElemValue()
  25703. }
  25704. if dd.TryDecodeAsNil() {
  25705. if v == nil {
  25706. } else if d.h.DeleteOnNilMapValue {
  25707. delete(v, mk)
  25708. } else {
  25709. v[mk] = 0
  25710. }
  25711. continue
  25712. }
  25713. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25714. if v != nil {
  25715. v[mk] = mv
  25716. }
  25717. }
  25718. dd.ReadMapEnd()
  25719. return v, changed
  25720. }
  25721. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  25722. if rv.Kind() == reflect.Ptr {
  25723. vp := rv2i(rv).(*map[uint32]uint8)
  25724. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d)
  25725. if changed {
  25726. *vp = v
  25727. }
  25728. } else {
  25729. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  25730. }
  25731. }
  25732. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  25733. v, changed := f.DecMapUint32Uint8V(*vp, true, d)
  25734. if changed {
  25735. *vp = v
  25736. }
  25737. }
  25738. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  25739. d *Decoder) (_ map[uint32]uint8, changed bool) {
  25740. dd, esep := d.d, d.hh.hasElemSeparators()
  25741. containerLen := dd.ReadMapStart()
  25742. if canChange && v == nil {
  25743. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  25744. v = make(map[uint32]uint8, xlen)
  25745. changed = true
  25746. }
  25747. if containerLen == 0 {
  25748. dd.ReadMapEnd()
  25749. return v, changed
  25750. }
  25751. var mk uint32
  25752. var mv uint8
  25753. hasLen := containerLen > 0
  25754. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25755. if esep {
  25756. dd.ReadMapElemKey()
  25757. }
  25758. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25759. if esep {
  25760. dd.ReadMapElemValue()
  25761. }
  25762. if dd.TryDecodeAsNil() {
  25763. if v == nil {
  25764. } else if d.h.DeleteOnNilMapValue {
  25765. delete(v, mk)
  25766. } else {
  25767. v[mk] = 0
  25768. }
  25769. continue
  25770. }
  25771. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  25772. if v != nil {
  25773. v[mk] = mv
  25774. }
  25775. }
  25776. dd.ReadMapEnd()
  25777. return v, changed
  25778. }
  25779. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  25780. if rv.Kind() == reflect.Ptr {
  25781. vp := rv2i(rv).(*map[uint32]uint16)
  25782. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d)
  25783. if changed {
  25784. *vp = v
  25785. }
  25786. } else {
  25787. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  25788. }
  25789. }
  25790. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  25791. v, changed := f.DecMapUint32Uint16V(*vp, true, d)
  25792. if changed {
  25793. *vp = v
  25794. }
  25795. }
  25796. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  25797. d *Decoder) (_ map[uint32]uint16, changed bool) {
  25798. dd, esep := d.d, d.hh.hasElemSeparators()
  25799. containerLen := dd.ReadMapStart()
  25800. if canChange && v == nil {
  25801. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25802. v = make(map[uint32]uint16, xlen)
  25803. changed = true
  25804. }
  25805. if containerLen == 0 {
  25806. dd.ReadMapEnd()
  25807. return v, changed
  25808. }
  25809. var mk uint32
  25810. var mv uint16
  25811. hasLen := containerLen > 0
  25812. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25813. if esep {
  25814. dd.ReadMapElemKey()
  25815. }
  25816. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25817. if esep {
  25818. dd.ReadMapElemValue()
  25819. }
  25820. if dd.TryDecodeAsNil() {
  25821. if v == nil {
  25822. } else if d.h.DeleteOnNilMapValue {
  25823. delete(v, mk)
  25824. } else {
  25825. v[mk] = 0
  25826. }
  25827. continue
  25828. }
  25829. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25830. if v != nil {
  25831. v[mk] = mv
  25832. }
  25833. }
  25834. dd.ReadMapEnd()
  25835. return v, changed
  25836. }
  25837. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  25838. if rv.Kind() == reflect.Ptr {
  25839. vp := rv2i(rv).(*map[uint32]uint32)
  25840. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d)
  25841. if changed {
  25842. *vp = v
  25843. }
  25844. } else {
  25845. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  25846. }
  25847. }
  25848. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  25849. v, changed := f.DecMapUint32Uint32V(*vp, true, d)
  25850. if changed {
  25851. *vp = v
  25852. }
  25853. }
  25854. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  25855. d *Decoder) (_ map[uint32]uint32, changed bool) {
  25856. dd, esep := d.d, d.hh.hasElemSeparators()
  25857. containerLen := dd.ReadMapStart()
  25858. if canChange && v == nil {
  25859. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  25860. v = make(map[uint32]uint32, xlen)
  25861. changed = true
  25862. }
  25863. if containerLen == 0 {
  25864. dd.ReadMapEnd()
  25865. return v, changed
  25866. }
  25867. var mk uint32
  25868. var mv uint32
  25869. hasLen := containerLen > 0
  25870. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25871. if esep {
  25872. dd.ReadMapElemKey()
  25873. }
  25874. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25875. if esep {
  25876. dd.ReadMapElemValue()
  25877. }
  25878. if dd.TryDecodeAsNil() {
  25879. if v == nil {
  25880. } else if d.h.DeleteOnNilMapValue {
  25881. delete(v, mk)
  25882. } else {
  25883. v[mk] = 0
  25884. }
  25885. continue
  25886. }
  25887. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25888. if v != nil {
  25889. v[mk] = mv
  25890. }
  25891. }
  25892. dd.ReadMapEnd()
  25893. return v, changed
  25894. }
  25895. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  25896. if rv.Kind() == reflect.Ptr {
  25897. vp := rv2i(rv).(*map[uint32]uint64)
  25898. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d)
  25899. if changed {
  25900. *vp = v
  25901. }
  25902. } else {
  25903. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  25904. }
  25905. }
  25906. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  25907. v, changed := f.DecMapUint32Uint64V(*vp, true, d)
  25908. if changed {
  25909. *vp = v
  25910. }
  25911. }
  25912. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  25913. d *Decoder) (_ map[uint32]uint64, changed bool) {
  25914. dd, esep := d.d, d.hh.hasElemSeparators()
  25915. containerLen := dd.ReadMapStart()
  25916. if canChange && v == nil {
  25917. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25918. v = make(map[uint32]uint64, xlen)
  25919. changed = true
  25920. }
  25921. if containerLen == 0 {
  25922. dd.ReadMapEnd()
  25923. return v, changed
  25924. }
  25925. var mk uint32
  25926. var mv uint64
  25927. hasLen := containerLen > 0
  25928. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25929. if esep {
  25930. dd.ReadMapElemKey()
  25931. }
  25932. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25933. if esep {
  25934. dd.ReadMapElemValue()
  25935. }
  25936. if dd.TryDecodeAsNil() {
  25937. if v == nil {
  25938. } else if d.h.DeleteOnNilMapValue {
  25939. delete(v, mk)
  25940. } else {
  25941. v[mk] = 0
  25942. }
  25943. continue
  25944. }
  25945. mv = dd.DecodeUint64()
  25946. if v != nil {
  25947. v[mk] = mv
  25948. }
  25949. }
  25950. dd.ReadMapEnd()
  25951. return v, changed
  25952. }
  25953. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  25954. if rv.Kind() == reflect.Ptr {
  25955. vp := rv2i(rv).(*map[uint32]uintptr)
  25956. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d)
  25957. if changed {
  25958. *vp = v
  25959. }
  25960. } else {
  25961. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  25962. }
  25963. }
  25964. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  25965. v, changed := f.DecMapUint32UintptrV(*vp, true, d)
  25966. if changed {
  25967. *vp = v
  25968. }
  25969. }
  25970. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  25971. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  25972. dd, esep := d.d, d.hh.hasElemSeparators()
  25973. containerLen := dd.ReadMapStart()
  25974. if canChange && v == nil {
  25975. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25976. v = make(map[uint32]uintptr, xlen)
  25977. changed = true
  25978. }
  25979. if containerLen == 0 {
  25980. dd.ReadMapEnd()
  25981. return v, changed
  25982. }
  25983. var mk uint32
  25984. var mv uintptr
  25985. hasLen := containerLen > 0
  25986. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25987. if esep {
  25988. dd.ReadMapElemKey()
  25989. }
  25990. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25991. if esep {
  25992. dd.ReadMapElemValue()
  25993. }
  25994. if dd.TryDecodeAsNil() {
  25995. if v == nil {
  25996. } else if d.h.DeleteOnNilMapValue {
  25997. delete(v, mk)
  25998. } else {
  25999. v[mk] = 0
  26000. }
  26001. continue
  26002. }
  26003. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26004. if v != nil {
  26005. v[mk] = mv
  26006. }
  26007. }
  26008. dd.ReadMapEnd()
  26009. return v, changed
  26010. }
  26011. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  26012. if rv.Kind() == reflect.Ptr {
  26013. vp := rv2i(rv).(*map[uint32]int)
  26014. v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d)
  26015. if changed {
  26016. *vp = v
  26017. }
  26018. } else {
  26019. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  26020. }
  26021. }
  26022. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  26023. v, changed := f.DecMapUint32IntV(*vp, true, d)
  26024. if changed {
  26025. *vp = v
  26026. }
  26027. }
  26028. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  26029. d *Decoder) (_ map[uint32]int, changed bool) {
  26030. dd, esep := d.d, d.hh.hasElemSeparators()
  26031. containerLen := dd.ReadMapStart()
  26032. if canChange && v == nil {
  26033. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26034. v = make(map[uint32]int, xlen)
  26035. changed = true
  26036. }
  26037. if containerLen == 0 {
  26038. dd.ReadMapEnd()
  26039. return v, changed
  26040. }
  26041. var mk uint32
  26042. var mv int
  26043. hasLen := containerLen > 0
  26044. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26045. if esep {
  26046. dd.ReadMapElemKey()
  26047. }
  26048. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26049. if esep {
  26050. dd.ReadMapElemValue()
  26051. }
  26052. if dd.TryDecodeAsNil() {
  26053. if v == nil {
  26054. } else if d.h.DeleteOnNilMapValue {
  26055. delete(v, mk)
  26056. } else {
  26057. v[mk] = 0
  26058. }
  26059. continue
  26060. }
  26061. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  26062. if v != nil {
  26063. v[mk] = mv
  26064. }
  26065. }
  26066. dd.ReadMapEnd()
  26067. return v, changed
  26068. }
  26069. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  26070. if rv.Kind() == reflect.Ptr {
  26071. vp := rv2i(rv).(*map[uint32]int8)
  26072. v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d)
  26073. if changed {
  26074. *vp = v
  26075. }
  26076. } else {
  26077. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  26078. }
  26079. }
  26080. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  26081. v, changed := f.DecMapUint32Int8V(*vp, true, d)
  26082. if changed {
  26083. *vp = v
  26084. }
  26085. }
  26086. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  26087. d *Decoder) (_ map[uint32]int8, changed bool) {
  26088. dd, esep := d.d, d.hh.hasElemSeparators()
  26089. containerLen := dd.ReadMapStart()
  26090. if canChange && v == nil {
  26091. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26092. v = make(map[uint32]int8, xlen)
  26093. changed = true
  26094. }
  26095. if containerLen == 0 {
  26096. dd.ReadMapEnd()
  26097. return v, changed
  26098. }
  26099. var mk uint32
  26100. var mv int8
  26101. hasLen := containerLen > 0
  26102. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26103. if esep {
  26104. dd.ReadMapElemKey()
  26105. }
  26106. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26107. if esep {
  26108. dd.ReadMapElemValue()
  26109. }
  26110. if dd.TryDecodeAsNil() {
  26111. if v == nil {
  26112. } else if d.h.DeleteOnNilMapValue {
  26113. delete(v, mk)
  26114. } else {
  26115. v[mk] = 0
  26116. }
  26117. continue
  26118. }
  26119. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  26120. if v != nil {
  26121. v[mk] = mv
  26122. }
  26123. }
  26124. dd.ReadMapEnd()
  26125. return v, changed
  26126. }
  26127. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  26128. if rv.Kind() == reflect.Ptr {
  26129. vp := rv2i(rv).(*map[uint32]int16)
  26130. v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d)
  26131. if changed {
  26132. *vp = v
  26133. }
  26134. } else {
  26135. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  26136. }
  26137. }
  26138. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  26139. v, changed := f.DecMapUint32Int16V(*vp, true, d)
  26140. if changed {
  26141. *vp = v
  26142. }
  26143. }
  26144. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  26145. d *Decoder) (_ map[uint32]int16, changed bool) {
  26146. dd, esep := d.d, d.hh.hasElemSeparators()
  26147. containerLen := dd.ReadMapStart()
  26148. if canChange && v == nil {
  26149. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26150. v = make(map[uint32]int16, xlen)
  26151. changed = true
  26152. }
  26153. if containerLen == 0 {
  26154. dd.ReadMapEnd()
  26155. return v, changed
  26156. }
  26157. var mk uint32
  26158. var mv int16
  26159. hasLen := containerLen > 0
  26160. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26161. if esep {
  26162. dd.ReadMapElemKey()
  26163. }
  26164. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26165. if esep {
  26166. dd.ReadMapElemValue()
  26167. }
  26168. if dd.TryDecodeAsNil() {
  26169. if v == nil {
  26170. } else if d.h.DeleteOnNilMapValue {
  26171. delete(v, mk)
  26172. } else {
  26173. v[mk] = 0
  26174. }
  26175. continue
  26176. }
  26177. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  26178. if v != nil {
  26179. v[mk] = mv
  26180. }
  26181. }
  26182. dd.ReadMapEnd()
  26183. return v, changed
  26184. }
  26185. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  26186. if rv.Kind() == reflect.Ptr {
  26187. vp := rv2i(rv).(*map[uint32]int32)
  26188. v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d)
  26189. if changed {
  26190. *vp = v
  26191. }
  26192. } else {
  26193. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  26194. }
  26195. }
  26196. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  26197. v, changed := f.DecMapUint32Int32V(*vp, true, d)
  26198. if changed {
  26199. *vp = v
  26200. }
  26201. }
  26202. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  26203. d *Decoder) (_ map[uint32]int32, changed bool) {
  26204. dd, esep := d.d, d.hh.hasElemSeparators()
  26205. containerLen := dd.ReadMapStart()
  26206. if canChange && v == nil {
  26207. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26208. v = make(map[uint32]int32, xlen)
  26209. changed = true
  26210. }
  26211. if containerLen == 0 {
  26212. dd.ReadMapEnd()
  26213. return v, changed
  26214. }
  26215. var mk uint32
  26216. var mv int32
  26217. hasLen := containerLen > 0
  26218. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26219. if esep {
  26220. dd.ReadMapElemKey()
  26221. }
  26222. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26223. if esep {
  26224. dd.ReadMapElemValue()
  26225. }
  26226. if dd.TryDecodeAsNil() {
  26227. if v == nil {
  26228. } else if d.h.DeleteOnNilMapValue {
  26229. delete(v, mk)
  26230. } else {
  26231. v[mk] = 0
  26232. }
  26233. continue
  26234. }
  26235. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  26236. if v != nil {
  26237. v[mk] = mv
  26238. }
  26239. }
  26240. dd.ReadMapEnd()
  26241. return v, changed
  26242. }
  26243. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  26244. if rv.Kind() == reflect.Ptr {
  26245. vp := rv2i(rv).(*map[uint32]int64)
  26246. v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d)
  26247. if changed {
  26248. *vp = v
  26249. }
  26250. } else {
  26251. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  26252. }
  26253. }
  26254. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  26255. v, changed := f.DecMapUint32Int64V(*vp, true, d)
  26256. if changed {
  26257. *vp = v
  26258. }
  26259. }
  26260. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  26261. d *Decoder) (_ map[uint32]int64, changed bool) {
  26262. dd, esep := d.d, d.hh.hasElemSeparators()
  26263. containerLen := dd.ReadMapStart()
  26264. if canChange && v == nil {
  26265. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26266. v = make(map[uint32]int64, xlen)
  26267. changed = true
  26268. }
  26269. if containerLen == 0 {
  26270. dd.ReadMapEnd()
  26271. return v, changed
  26272. }
  26273. var mk uint32
  26274. var mv int64
  26275. hasLen := containerLen > 0
  26276. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26277. if esep {
  26278. dd.ReadMapElemKey()
  26279. }
  26280. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26281. if esep {
  26282. dd.ReadMapElemValue()
  26283. }
  26284. if dd.TryDecodeAsNil() {
  26285. if v == nil {
  26286. } else if d.h.DeleteOnNilMapValue {
  26287. delete(v, mk)
  26288. } else {
  26289. v[mk] = 0
  26290. }
  26291. continue
  26292. }
  26293. mv = dd.DecodeInt64()
  26294. if v != nil {
  26295. v[mk] = mv
  26296. }
  26297. }
  26298. dd.ReadMapEnd()
  26299. return v, changed
  26300. }
  26301. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  26302. if rv.Kind() == reflect.Ptr {
  26303. vp := rv2i(rv).(*map[uint32]float32)
  26304. v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d)
  26305. if changed {
  26306. *vp = v
  26307. }
  26308. } else {
  26309. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  26310. }
  26311. }
  26312. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  26313. v, changed := f.DecMapUint32Float32V(*vp, true, d)
  26314. if changed {
  26315. *vp = v
  26316. }
  26317. }
  26318. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  26319. d *Decoder) (_ map[uint32]float32, changed bool) {
  26320. dd, esep := d.d, d.hh.hasElemSeparators()
  26321. containerLen := dd.ReadMapStart()
  26322. if canChange && v == nil {
  26323. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26324. v = make(map[uint32]float32, xlen)
  26325. changed = true
  26326. }
  26327. if containerLen == 0 {
  26328. dd.ReadMapEnd()
  26329. return v, changed
  26330. }
  26331. var mk uint32
  26332. var mv float32
  26333. hasLen := containerLen > 0
  26334. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26335. if esep {
  26336. dd.ReadMapElemKey()
  26337. }
  26338. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26339. if esep {
  26340. dd.ReadMapElemValue()
  26341. }
  26342. if dd.TryDecodeAsNil() {
  26343. if v == nil {
  26344. } else if d.h.DeleteOnNilMapValue {
  26345. delete(v, mk)
  26346. } else {
  26347. v[mk] = 0
  26348. }
  26349. continue
  26350. }
  26351. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  26352. if v != nil {
  26353. v[mk] = mv
  26354. }
  26355. }
  26356. dd.ReadMapEnd()
  26357. return v, changed
  26358. }
  26359. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  26360. if rv.Kind() == reflect.Ptr {
  26361. vp := rv2i(rv).(*map[uint32]float64)
  26362. v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d)
  26363. if changed {
  26364. *vp = v
  26365. }
  26366. } else {
  26367. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  26368. }
  26369. }
  26370. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  26371. v, changed := f.DecMapUint32Float64V(*vp, true, d)
  26372. if changed {
  26373. *vp = v
  26374. }
  26375. }
  26376. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  26377. d *Decoder) (_ map[uint32]float64, changed bool) {
  26378. dd, esep := d.d, d.hh.hasElemSeparators()
  26379. containerLen := dd.ReadMapStart()
  26380. if canChange && v == nil {
  26381. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26382. v = make(map[uint32]float64, xlen)
  26383. changed = true
  26384. }
  26385. if containerLen == 0 {
  26386. dd.ReadMapEnd()
  26387. return v, changed
  26388. }
  26389. var mk uint32
  26390. var mv float64
  26391. hasLen := containerLen > 0
  26392. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26393. if esep {
  26394. dd.ReadMapElemKey()
  26395. }
  26396. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26397. if esep {
  26398. dd.ReadMapElemValue()
  26399. }
  26400. if dd.TryDecodeAsNil() {
  26401. if v == nil {
  26402. } else if d.h.DeleteOnNilMapValue {
  26403. delete(v, mk)
  26404. } else {
  26405. v[mk] = 0
  26406. }
  26407. continue
  26408. }
  26409. mv = dd.DecodeFloat64()
  26410. if v != nil {
  26411. v[mk] = mv
  26412. }
  26413. }
  26414. dd.ReadMapEnd()
  26415. return v, changed
  26416. }
  26417. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  26418. if rv.Kind() == reflect.Ptr {
  26419. vp := rv2i(rv).(*map[uint32]bool)
  26420. v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d)
  26421. if changed {
  26422. *vp = v
  26423. }
  26424. } else {
  26425. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  26426. }
  26427. }
  26428. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  26429. v, changed := f.DecMapUint32BoolV(*vp, true, d)
  26430. if changed {
  26431. *vp = v
  26432. }
  26433. }
  26434. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  26435. d *Decoder) (_ map[uint32]bool, changed bool) {
  26436. dd, esep := d.d, d.hh.hasElemSeparators()
  26437. containerLen := dd.ReadMapStart()
  26438. if canChange && v == nil {
  26439. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26440. v = make(map[uint32]bool, xlen)
  26441. changed = true
  26442. }
  26443. if containerLen == 0 {
  26444. dd.ReadMapEnd()
  26445. return v, changed
  26446. }
  26447. var mk uint32
  26448. var mv bool
  26449. hasLen := containerLen > 0
  26450. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26451. if esep {
  26452. dd.ReadMapElemKey()
  26453. }
  26454. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26455. if esep {
  26456. dd.ReadMapElemValue()
  26457. }
  26458. if dd.TryDecodeAsNil() {
  26459. if v == nil {
  26460. } else if d.h.DeleteOnNilMapValue {
  26461. delete(v, mk)
  26462. } else {
  26463. v[mk] = false
  26464. }
  26465. continue
  26466. }
  26467. mv = dd.DecodeBool()
  26468. if v != nil {
  26469. v[mk] = mv
  26470. }
  26471. }
  26472. dd.ReadMapEnd()
  26473. return v, changed
  26474. }
  26475. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  26476. if rv.Kind() == reflect.Ptr {
  26477. vp := rv2i(rv).(*map[uint64]interface{})
  26478. v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d)
  26479. if changed {
  26480. *vp = v
  26481. }
  26482. } else {
  26483. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  26484. }
  26485. }
  26486. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  26487. v, changed := f.DecMapUint64IntfV(*vp, true, d)
  26488. if changed {
  26489. *vp = v
  26490. }
  26491. }
  26492. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  26493. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  26494. dd, esep := d.d, d.hh.hasElemSeparators()
  26495. containerLen := dd.ReadMapStart()
  26496. if canChange && v == nil {
  26497. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26498. v = make(map[uint64]interface{}, xlen)
  26499. changed = true
  26500. }
  26501. if containerLen == 0 {
  26502. dd.ReadMapEnd()
  26503. return v, changed
  26504. }
  26505. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  26506. var mk uint64
  26507. var mv interface{}
  26508. hasLen := containerLen > 0
  26509. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26510. if esep {
  26511. dd.ReadMapElemKey()
  26512. }
  26513. mk = dd.DecodeUint64()
  26514. if esep {
  26515. dd.ReadMapElemValue()
  26516. }
  26517. if dd.TryDecodeAsNil() {
  26518. if v == nil {
  26519. } else if d.h.DeleteOnNilMapValue {
  26520. delete(v, mk)
  26521. } else {
  26522. v[mk] = nil
  26523. }
  26524. continue
  26525. }
  26526. if mapGet {
  26527. mv = v[mk]
  26528. } else {
  26529. mv = nil
  26530. }
  26531. d.decode(&mv)
  26532. if v != nil {
  26533. v[mk] = mv
  26534. }
  26535. }
  26536. dd.ReadMapEnd()
  26537. return v, changed
  26538. }
  26539. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  26540. if rv.Kind() == reflect.Ptr {
  26541. vp := rv2i(rv).(*map[uint64]string)
  26542. v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d)
  26543. if changed {
  26544. *vp = v
  26545. }
  26546. } else {
  26547. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  26548. }
  26549. }
  26550. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  26551. v, changed := f.DecMapUint64StringV(*vp, true, d)
  26552. if changed {
  26553. *vp = v
  26554. }
  26555. }
  26556. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  26557. d *Decoder) (_ map[uint64]string, changed bool) {
  26558. dd, esep := d.d, d.hh.hasElemSeparators()
  26559. containerLen := dd.ReadMapStart()
  26560. if canChange && v == nil {
  26561. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26562. v = make(map[uint64]string, xlen)
  26563. changed = true
  26564. }
  26565. if containerLen == 0 {
  26566. dd.ReadMapEnd()
  26567. return v, changed
  26568. }
  26569. var mk uint64
  26570. var mv string
  26571. hasLen := containerLen > 0
  26572. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26573. if esep {
  26574. dd.ReadMapElemKey()
  26575. }
  26576. mk = dd.DecodeUint64()
  26577. if esep {
  26578. dd.ReadMapElemValue()
  26579. }
  26580. if dd.TryDecodeAsNil() {
  26581. if v == nil {
  26582. } else if d.h.DeleteOnNilMapValue {
  26583. delete(v, mk)
  26584. } else {
  26585. v[mk] = ""
  26586. }
  26587. continue
  26588. }
  26589. mv = dd.DecodeString()
  26590. if v != nil {
  26591. v[mk] = mv
  26592. }
  26593. }
  26594. dd.ReadMapEnd()
  26595. return v, changed
  26596. }
  26597. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  26598. if rv.Kind() == reflect.Ptr {
  26599. vp := rv2i(rv).(*map[uint64]uint)
  26600. v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d)
  26601. if changed {
  26602. *vp = v
  26603. }
  26604. } else {
  26605. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  26606. }
  26607. }
  26608. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  26609. v, changed := f.DecMapUint64UintV(*vp, true, d)
  26610. if changed {
  26611. *vp = v
  26612. }
  26613. }
  26614. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  26615. d *Decoder) (_ map[uint64]uint, changed bool) {
  26616. dd, esep := d.d, d.hh.hasElemSeparators()
  26617. containerLen := dd.ReadMapStart()
  26618. if canChange && v == nil {
  26619. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26620. v = make(map[uint64]uint, xlen)
  26621. changed = true
  26622. }
  26623. if containerLen == 0 {
  26624. dd.ReadMapEnd()
  26625. return v, changed
  26626. }
  26627. var mk uint64
  26628. var mv uint
  26629. hasLen := containerLen > 0
  26630. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26631. if esep {
  26632. dd.ReadMapElemKey()
  26633. }
  26634. mk = dd.DecodeUint64()
  26635. if esep {
  26636. dd.ReadMapElemValue()
  26637. }
  26638. if dd.TryDecodeAsNil() {
  26639. if v == nil {
  26640. } else if d.h.DeleteOnNilMapValue {
  26641. delete(v, mk)
  26642. } else {
  26643. v[mk] = 0
  26644. }
  26645. continue
  26646. }
  26647. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26648. if v != nil {
  26649. v[mk] = mv
  26650. }
  26651. }
  26652. dd.ReadMapEnd()
  26653. return v, changed
  26654. }
  26655. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  26656. if rv.Kind() == reflect.Ptr {
  26657. vp := rv2i(rv).(*map[uint64]uint8)
  26658. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d)
  26659. if changed {
  26660. *vp = v
  26661. }
  26662. } else {
  26663. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  26664. }
  26665. }
  26666. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  26667. v, changed := f.DecMapUint64Uint8V(*vp, true, d)
  26668. if changed {
  26669. *vp = v
  26670. }
  26671. }
  26672. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  26673. d *Decoder) (_ map[uint64]uint8, changed bool) {
  26674. dd, esep := d.d, d.hh.hasElemSeparators()
  26675. containerLen := dd.ReadMapStart()
  26676. if canChange && v == nil {
  26677. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26678. v = make(map[uint64]uint8, xlen)
  26679. changed = true
  26680. }
  26681. if containerLen == 0 {
  26682. dd.ReadMapEnd()
  26683. return v, changed
  26684. }
  26685. var mk uint64
  26686. var mv uint8
  26687. hasLen := containerLen > 0
  26688. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26689. if esep {
  26690. dd.ReadMapElemKey()
  26691. }
  26692. mk = dd.DecodeUint64()
  26693. if esep {
  26694. dd.ReadMapElemValue()
  26695. }
  26696. if dd.TryDecodeAsNil() {
  26697. if v == nil {
  26698. } else if d.h.DeleteOnNilMapValue {
  26699. delete(v, mk)
  26700. } else {
  26701. v[mk] = 0
  26702. }
  26703. continue
  26704. }
  26705. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  26706. if v != nil {
  26707. v[mk] = mv
  26708. }
  26709. }
  26710. dd.ReadMapEnd()
  26711. return v, changed
  26712. }
  26713. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  26714. if rv.Kind() == reflect.Ptr {
  26715. vp := rv2i(rv).(*map[uint64]uint16)
  26716. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d)
  26717. if changed {
  26718. *vp = v
  26719. }
  26720. } else {
  26721. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  26722. }
  26723. }
  26724. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  26725. v, changed := f.DecMapUint64Uint16V(*vp, true, d)
  26726. if changed {
  26727. *vp = v
  26728. }
  26729. }
  26730. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  26731. d *Decoder) (_ map[uint64]uint16, changed bool) {
  26732. dd, esep := d.d, d.hh.hasElemSeparators()
  26733. containerLen := dd.ReadMapStart()
  26734. if canChange && v == nil {
  26735. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26736. v = make(map[uint64]uint16, xlen)
  26737. changed = true
  26738. }
  26739. if containerLen == 0 {
  26740. dd.ReadMapEnd()
  26741. return v, changed
  26742. }
  26743. var mk uint64
  26744. var mv uint16
  26745. hasLen := containerLen > 0
  26746. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26747. if esep {
  26748. dd.ReadMapElemKey()
  26749. }
  26750. mk = dd.DecodeUint64()
  26751. if esep {
  26752. dd.ReadMapElemValue()
  26753. }
  26754. if dd.TryDecodeAsNil() {
  26755. if v == nil {
  26756. } else if d.h.DeleteOnNilMapValue {
  26757. delete(v, mk)
  26758. } else {
  26759. v[mk] = 0
  26760. }
  26761. continue
  26762. }
  26763. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  26764. if v != nil {
  26765. v[mk] = mv
  26766. }
  26767. }
  26768. dd.ReadMapEnd()
  26769. return v, changed
  26770. }
  26771. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  26772. if rv.Kind() == reflect.Ptr {
  26773. vp := rv2i(rv).(*map[uint64]uint32)
  26774. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d)
  26775. if changed {
  26776. *vp = v
  26777. }
  26778. } else {
  26779. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  26780. }
  26781. }
  26782. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  26783. v, changed := f.DecMapUint64Uint32V(*vp, true, d)
  26784. if changed {
  26785. *vp = v
  26786. }
  26787. }
  26788. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  26789. d *Decoder) (_ map[uint64]uint32, changed bool) {
  26790. dd, esep := d.d, d.hh.hasElemSeparators()
  26791. containerLen := dd.ReadMapStart()
  26792. if canChange && v == nil {
  26793. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26794. v = make(map[uint64]uint32, xlen)
  26795. changed = true
  26796. }
  26797. if containerLen == 0 {
  26798. dd.ReadMapEnd()
  26799. return v, changed
  26800. }
  26801. var mk uint64
  26802. var mv uint32
  26803. hasLen := containerLen > 0
  26804. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26805. if esep {
  26806. dd.ReadMapElemKey()
  26807. }
  26808. mk = dd.DecodeUint64()
  26809. if esep {
  26810. dd.ReadMapElemValue()
  26811. }
  26812. if dd.TryDecodeAsNil() {
  26813. if v == nil {
  26814. } else if d.h.DeleteOnNilMapValue {
  26815. delete(v, mk)
  26816. } else {
  26817. v[mk] = 0
  26818. }
  26819. continue
  26820. }
  26821. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26822. if v != nil {
  26823. v[mk] = mv
  26824. }
  26825. }
  26826. dd.ReadMapEnd()
  26827. return v, changed
  26828. }
  26829. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  26830. if rv.Kind() == reflect.Ptr {
  26831. vp := rv2i(rv).(*map[uint64]uint64)
  26832. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d)
  26833. if changed {
  26834. *vp = v
  26835. }
  26836. } else {
  26837. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  26838. }
  26839. }
  26840. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  26841. v, changed := f.DecMapUint64Uint64V(*vp, true, d)
  26842. if changed {
  26843. *vp = v
  26844. }
  26845. }
  26846. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  26847. d *Decoder) (_ map[uint64]uint64, changed bool) {
  26848. dd, esep := d.d, d.hh.hasElemSeparators()
  26849. containerLen := dd.ReadMapStart()
  26850. if canChange && v == nil {
  26851. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26852. v = make(map[uint64]uint64, xlen)
  26853. changed = true
  26854. }
  26855. if containerLen == 0 {
  26856. dd.ReadMapEnd()
  26857. return v, changed
  26858. }
  26859. var mk uint64
  26860. var mv uint64
  26861. hasLen := containerLen > 0
  26862. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26863. if esep {
  26864. dd.ReadMapElemKey()
  26865. }
  26866. mk = dd.DecodeUint64()
  26867. if esep {
  26868. dd.ReadMapElemValue()
  26869. }
  26870. if dd.TryDecodeAsNil() {
  26871. if v == nil {
  26872. } else if d.h.DeleteOnNilMapValue {
  26873. delete(v, mk)
  26874. } else {
  26875. v[mk] = 0
  26876. }
  26877. continue
  26878. }
  26879. mv = dd.DecodeUint64()
  26880. if v != nil {
  26881. v[mk] = mv
  26882. }
  26883. }
  26884. dd.ReadMapEnd()
  26885. return v, changed
  26886. }
  26887. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  26888. if rv.Kind() == reflect.Ptr {
  26889. vp := rv2i(rv).(*map[uint64]uintptr)
  26890. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d)
  26891. if changed {
  26892. *vp = v
  26893. }
  26894. } else {
  26895. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  26896. }
  26897. }
  26898. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  26899. v, changed := f.DecMapUint64UintptrV(*vp, true, d)
  26900. if changed {
  26901. *vp = v
  26902. }
  26903. }
  26904. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  26905. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  26906. dd, esep := d.d, d.hh.hasElemSeparators()
  26907. containerLen := dd.ReadMapStart()
  26908. if canChange && v == nil {
  26909. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26910. v = make(map[uint64]uintptr, xlen)
  26911. changed = true
  26912. }
  26913. if containerLen == 0 {
  26914. dd.ReadMapEnd()
  26915. return v, changed
  26916. }
  26917. var mk uint64
  26918. var mv uintptr
  26919. hasLen := containerLen > 0
  26920. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26921. if esep {
  26922. dd.ReadMapElemKey()
  26923. }
  26924. mk = dd.DecodeUint64()
  26925. if esep {
  26926. dd.ReadMapElemValue()
  26927. }
  26928. if dd.TryDecodeAsNil() {
  26929. if v == nil {
  26930. } else if d.h.DeleteOnNilMapValue {
  26931. delete(v, mk)
  26932. } else {
  26933. v[mk] = 0
  26934. }
  26935. continue
  26936. }
  26937. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26938. if v != nil {
  26939. v[mk] = mv
  26940. }
  26941. }
  26942. dd.ReadMapEnd()
  26943. return v, changed
  26944. }
  26945. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  26946. if rv.Kind() == reflect.Ptr {
  26947. vp := rv2i(rv).(*map[uint64]int)
  26948. v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d)
  26949. if changed {
  26950. *vp = v
  26951. }
  26952. } else {
  26953. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  26954. }
  26955. }
  26956. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  26957. v, changed := f.DecMapUint64IntV(*vp, true, d)
  26958. if changed {
  26959. *vp = v
  26960. }
  26961. }
  26962. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  26963. d *Decoder) (_ map[uint64]int, changed bool) {
  26964. dd, esep := d.d, d.hh.hasElemSeparators()
  26965. containerLen := dd.ReadMapStart()
  26966. if canChange && v == nil {
  26967. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26968. v = make(map[uint64]int, xlen)
  26969. changed = true
  26970. }
  26971. if containerLen == 0 {
  26972. dd.ReadMapEnd()
  26973. return v, changed
  26974. }
  26975. var mk uint64
  26976. var mv int
  26977. hasLen := containerLen > 0
  26978. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26979. if esep {
  26980. dd.ReadMapElemKey()
  26981. }
  26982. mk = dd.DecodeUint64()
  26983. if esep {
  26984. dd.ReadMapElemValue()
  26985. }
  26986. if dd.TryDecodeAsNil() {
  26987. if v == nil {
  26988. } else if d.h.DeleteOnNilMapValue {
  26989. delete(v, mk)
  26990. } else {
  26991. v[mk] = 0
  26992. }
  26993. continue
  26994. }
  26995. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  26996. if v != nil {
  26997. v[mk] = mv
  26998. }
  26999. }
  27000. dd.ReadMapEnd()
  27001. return v, changed
  27002. }
  27003. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  27004. if rv.Kind() == reflect.Ptr {
  27005. vp := rv2i(rv).(*map[uint64]int8)
  27006. v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d)
  27007. if changed {
  27008. *vp = v
  27009. }
  27010. } else {
  27011. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  27012. }
  27013. }
  27014. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  27015. v, changed := f.DecMapUint64Int8V(*vp, true, d)
  27016. if changed {
  27017. *vp = v
  27018. }
  27019. }
  27020. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  27021. d *Decoder) (_ map[uint64]int8, changed bool) {
  27022. dd, esep := d.d, d.hh.hasElemSeparators()
  27023. containerLen := dd.ReadMapStart()
  27024. if canChange && v == nil {
  27025. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27026. v = make(map[uint64]int8, xlen)
  27027. changed = true
  27028. }
  27029. if containerLen == 0 {
  27030. dd.ReadMapEnd()
  27031. return v, changed
  27032. }
  27033. var mk uint64
  27034. var mv int8
  27035. hasLen := containerLen > 0
  27036. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27037. if esep {
  27038. dd.ReadMapElemKey()
  27039. }
  27040. mk = dd.DecodeUint64()
  27041. if esep {
  27042. dd.ReadMapElemValue()
  27043. }
  27044. if dd.TryDecodeAsNil() {
  27045. if v == nil {
  27046. } else if d.h.DeleteOnNilMapValue {
  27047. delete(v, mk)
  27048. } else {
  27049. v[mk] = 0
  27050. }
  27051. continue
  27052. }
  27053. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  27054. if v != nil {
  27055. v[mk] = mv
  27056. }
  27057. }
  27058. dd.ReadMapEnd()
  27059. return v, changed
  27060. }
  27061. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  27062. if rv.Kind() == reflect.Ptr {
  27063. vp := rv2i(rv).(*map[uint64]int16)
  27064. v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d)
  27065. if changed {
  27066. *vp = v
  27067. }
  27068. } else {
  27069. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  27070. }
  27071. }
  27072. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  27073. v, changed := f.DecMapUint64Int16V(*vp, true, d)
  27074. if changed {
  27075. *vp = v
  27076. }
  27077. }
  27078. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  27079. d *Decoder) (_ map[uint64]int16, changed bool) {
  27080. dd, esep := d.d, d.hh.hasElemSeparators()
  27081. containerLen := dd.ReadMapStart()
  27082. if canChange && v == nil {
  27083. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27084. v = make(map[uint64]int16, xlen)
  27085. changed = true
  27086. }
  27087. if containerLen == 0 {
  27088. dd.ReadMapEnd()
  27089. return v, changed
  27090. }
  27091. var mk uint64
  27092. var mv int16
  27093. hasLen := containerLen > 0
  27094. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27095. if esep {
  27096. dd.ReadMapElemKey()
  27097. }
  27098. mk = dd.DecodeUint64()
  27099. if esep {
  27100. dd.ReadMapElemValue()
  27101. }
  27102. if dd.TryDecodeAsNil() {
  27103. if v == nil {
  27104. } else if d.h.DeleteOnNilMapValue {
  27105. delete(v, mk)
  27106. } else {
  27107. v[mk] = 0
  27108. }
  27109. continue
  27110. }
  27111. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  27112. if v != nil {
  27113. v[mk] = mv
  27114. }
  27115. }
  27116. dd.ReadMapEnd()
  27117. return v, changed
  27118. }
  27119. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  27120. if rv.Kind() == reflect.Ptr {
  27121. vp := rv2i(rv).(*map[uint64]int32)
  27122. v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d)
  27123. if changed {
  27124. *vp = v
  27125. }
  27126. } else {
  27127. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  27128. }
  27129. }
  27130. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  27131. v, changed := f.DecMapUint64Int32V(*vp, true, d)
  27132. if changed {
  27133. *vp = v
  27134. }
  27135. }
  27136. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  27137. d *Decoder) (_ map[uint64]int32, changed bool) {
  27138. dd, esep := d.d, d.hh.hasElemSeparators()
  27139. containerLen := dd.ReadMapStart()
  27140. if canChange && v == nil {
  27141. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27142. v = make(map[uint64]int32, xlen)
  27143. changed = true
  27144. }
  27145. if containerLen == 0 {
  27146. dd.ReadMapEnd()
  27147. return v, changed
  27148. }
  27149. var mk uint64
  27150. var mv int32
  27151. hasLen := containerLen > 0
  27152. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27153. if esep {
  27154. dd.ReadMapElemKey()
  27155. }
  27156. mk = dd.DecodeUint64()
  27157. if esep {
  27158. dd.ReadMapElemValue()
  27159. }
  27160. if dd.TryDecodeAsNil() {
  27161. if v == nil {
  27162. } else if d.h.DeleteOnNilMapValue {
  27163. delete(v, mk)
  27164. } else {
  27165. v[mk] = 0
  27166. }
  27167. continue
  27168. }
  27169. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  27170. if v != nil {
  27171. v[mk] = mv
  27172. }
  27173. }
  27174. dd.ReadMapEnd()
  27175. return v, changed
  27176. }
  27177. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  27178. if rv.Kind() == reflect.Ptr {
  27179. vp := rv2i(rv).(*map[uint64]int64)
  27180. v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d)
  27181. if changed {
  27182. *vp = v
  27183. }
  27184. } else {
  27185. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  27186. }
  27187. }
  27188. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  27189. v, changed := f.DecMapUint64Int64V(*vp, true, d)
  27190. if changed {
  27191. *vp = v
  27192. }
  27193. }
  27194. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  27195. d *Decoder) (_ map[uint64]int64, changed bool) {
  27196. dd, esep := d.d, d.hh.hasElemSeparators()
  27197. containerLen := dd.ReadMapStart()
  27198. if canChange && v == nil {
  27199. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27200. v = make(map[uint64]int64, xlen)
  27201. changed = true
  27202. }
  27203. if containerLen == 0 {
  27204. dd.ReadMapEnd()
  27205. return v, changed
  27206. }
  27207. var mk uint64
  27208. var mv int64
  27209. hasLen := containerLen > 0
  27210. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27211. if esep {
  27212. dd.ReadMapElemKey()
  27213. }
  27214. mk = dd.DecodeUint64()
  27215. if esep {
  27216. dd.ReadMapElemValue()
  27217. }
  27218. if dd.TryDecodeAsNil() {
  27219. if v == nil {
  27220. } else if d.h.DeleteOnNilMapValue {
  27221. delete(v, mk)
  27222. } else {
  27223. v[mk] = 0
  27224. }
  27225. continue
  27226. }
  27227. mv = dd.DecodeInt64()
  27228. if v != nil {
  27229. v[mk] = mv
  27230. }
  27231. }
  27232. dd.ReadMapEnd()
  27233. return v, changed
  27234. }
  27235. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  27236. if rv.Kind() == reflect.Ptr {
  27237. vp := rv2i(rv).(*map[uint64]float32)
  27238. v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d)
  27239. if changed {
  27240. *vp = v
  27241. }
  27242. } else {
  27243. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  27244. }
  27245. }
  27246. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  27247. v, changed := f.DecMapUint64Float32V(*vp, true, d)
  27248. if changed {
  27249. *vp = v
  27250. }
  27251. }
  27252. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  27253. d *Decoder) (_ map[uint64]float32, changed bool) {
  27254. dd, esep := d.d, d.hh.hasElemSeparators()
  27255. containerLen := dd.ReadMapStart()
  27256. if canChange && v == nil {
  27257. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27258. v = make(map[uint64]float32, xlen)
  27259. changed = true
  27260. }
  27261. if containerLen == 0 {
  27262. dd.ReadMapEnd()
  27263. return v, changed
  27264. }
  27265. var mk uint64
  27266. var mv float32
  27267. hasLen := containerLen > 0
  27268. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27269. if esep {
  27270. dd.ReadMapElemKey()
  27271. }
  27272. mk = dd.DecodeUint64()
  27273. if esep {
  27274. dd.ReadMapElemValue()
  27275. }
  27276. if dd.TryDecodeAsNil() {
  27277. if v == nil {
  27278. } else if d.h.DeleteOnNilMapValue {
  27279. delete(v, mk)
  27280. } else {
  27281. v[mk] = 0
  27282. }
  27283. continue
  27284. }
  27285. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  27286. if v != nil {
  27287. v[mk] = mv
  27288. }
  27289. }
  27290. dd.ReadMapEnd()
  27291. return v, changed
  27292. }
  27293. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  27294. if rv.Kind() == reflect.Ptr {
  27295. vp := rv2i(rv).(*map[uint64]float64)
  27296. v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d)
  27297. if changed {
  27298. *vp = v
  27299. }
  27300. } else {
  27301. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  27302. }
  27303. }
  27304. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  27305. v, changed := f.DecMapUint64Float64V(*vp, true, d)
  27306. if changed {
  27307. *vp = v
  27308. }
  27309. }
  27310. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  27311. d *Decoder) (_ map[uint64]float64, changed bool) {
  27312. dd, esep := d.d, d.hh.hasElemSeparators()
  27313. containerLen := dd.ReadMapStart()
  27314. if canChange && v == nil {
  27315. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27316. v = make(map[uint64]float64, xlen)
  27317. changed = true
  27318. }
  27319. if containerLen == 0 {
  27320. dd.ReadMapEnd()
  27321. return v, changed
  27322. }
  27323. var mk uint64
  27324. var mv float64
  27325. hasLen := containerLen > 0
  27326. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27327. if esep {
  27328. dd.ReadMapElemKey()
  27329. }
  27330. mk = dd.DecodeUint64()
  27331. if esep {
  27332. dd.ReadMapElemValue()
  27333. }
  27334. if dd.TryDecodeAsNil() {
  27335. if v == nil {
  27336. } else if d.h.DeleteOnNilMapValue {
  27337. delete(v, mk)
  27338. } else {
  27339. v[mk] = 0
  27340. }
  27341. continue
  27342. }
  27343. mv = dd.DecodeFloat64()
  27344. if v != nil {
  27345. v[mk] = mv
  27346. }
  27347. }
  27348. dd.ReadMapEnd()
  27349. return v, changed
  27350. }
  27351. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  27352. if rv.Kind() == reflect.Ptr {
  27353. vp := rv2i(rv).(*map[uint64]bool)
  27354. v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d)
  27355. if changed {
  27356. *vp = v
  27357. }
  27358. } else {
  27359. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  27360. }
  27361. }
  27362. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  27363. v, changed := f.DecMapUint64BoolV(*vp, true, d)
  27364. if changed {
  27365. *vp = v
  27366. }
  27367. }
  27368. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  27369. d *Decoder) (_ map[uint64]bool, changed bool) {
  27370. dd, esep := d.d, d.hh.hasElemSeparators()
  27371. containerLen := dd.ReadMapStart()
  27372. if canChange && v == nil {
  27373. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27374. v = make(map[uint64]bool, xlen)
  27375. changed = true
  27376. }
  27377. if containerLen == 0 {
  27378. dd.ReadMapEnd()
  27379. return v, changed
  27380. }
  27381. var mk uint64
  27382. var mv bool
  27383. hasLen := containerLen > 0
  27384. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27385. if esep {
  27386. dd.ReadMapElemKey()
  27387. }
  27388. mk = dd.DecodeUint64()
  27389. if esep {
  27390. dd.ReadMapElemValue()
  27391. }
  27392. if dd.TryDecodeAsNil() {
  27393. if v == nil {
  27394. } else if d.h.DeleteOnNilMapValue {
  27395. delete(v, mk)
  27396. } else {
  27397. v[mk] = false
  27398. }
  27399. continue
  27400. }
  27401. mv = dd.DecodeBool()
  27402. if v != nil {
  27403. v[mk] = mv
  27404. }
  27405. }
  27406. dd.ReadMapEnd()
  27407. return v, changed
  27408. }
  27409. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  27410. if rv.Kind() == reflect.Ptr {
  27411. vp := rv2i(rv).(*map[uintptr]interface{})
  27412. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d)
  27413. if changed {
  27414. *vp = v
  27415. }
  27416. } else {
  27417. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  27418. }
  27419. }
  27420. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  27421. v, changed := f.DecMapUintptrIntfV(*vp, true, d)
  27422. if changed {
  27423. *vp = v
  27424. }
  27425. }
  27426. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  27427. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  27428. dd, esep := d.d, d.hh.hasElemSeparators()
  27429. containerLen := dd.ReadMapStart()
  27430. if canChange && v == nil {
  27431. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27432. v = make(map[uintptr]interface{}, xlen)
  27433. changed = true
  27434. }
  27435. if containerLen == 0 {
  27436. dd.ReadMapEnd()
  27437. return v, changed
  27438. }
  27439. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  27440. var mk uintptr
  27441. var mv interface{}
  27442. hasLen := containerLen > 0
  27443. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27444. if esep {
  27445. dd.ReadMapElemKey()
  27446. }
  27447. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27448. if esep {
  27449. dd.ReadMapElemValue()
  27450. }
  27451. if dd.TryDecodeAsNil() {
  27452. if v == nil {
  27453. } else if d.h.DeleteOnNilMapValue {
  27454. delete(v, mk)
  27455. } else {
  27456. v[mk] = nil
  27457. }
  27458. continue
  27459. }
  27460. if mapGet {
  27461. mv = v[mk]
  27462. } else {
  27463. mv = nil
  27464. }
  27465. d.decode(&mv)
  27466. if v != nil {
  27467. v[mk] = mv
  27468. }
  27469. }
  27470. dd.ReadMapEnd()
  27471. return v, changed
  27472. }
  27473. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  27474. if rv.Kind() == reflect.Ptr {
  27475. vp := rv2i(rv).(*map[uintptr]string)
  27476. v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d)
  27477. if changed {
  27478. *vp = v
  27479. }
  27480. } else {
  27481. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  27482. }
  27483. }
  27484. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  27485. v, changed := f.DecMapUintptrStringV(*vp, true, d)
  27486. if changed {
  27487. *vp = v
  27488. }
  27489. }
  27490. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  27491. d *Decoder) (_ map[uintptr]string, changed bool) {
  27492. dd, esep := d.d, d.hh.hasElemSeparators()
  27493. containerLen := dd.ReadMapStart()
  27494. if canChange && v == nil {
  27495. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27496. v = make(map[uintptr]string, xlen)
  27497. changed = true
  27498. }
  27499. if containerLen == 0 {
  27500. dd.ReadMapEnd()
  27501. return v, changed
  27502. }
  27503. var mk uintptr
  27504. var mv string
  27505. hasLen := containerLen > 0
  27506. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27507. if esep {
  27508. dd.ReadMapElemKey()
  27509. }
  27510. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27511. if esep {
  27512. dd.ReadMapElemValue()
  27513. }
  27514. if dd.TryDecodeAsNil() {
  27515. if v == nil {
  27516. } else if d.h.DeleteOnNilMapValue {
  27517. delete(v, mk)
  27518. } else {
  27519. v[mk] = ""
  27520. }
  27521. continue
  27522. }
  27523. mv = dd.DecodeString()
  27524. if v != nil {
  27525. v[mk] = mv
  27526. }
  27527. }
  27528. dd.ReadMapEnd()
  27529. return v, changed
  27530. }
  27531. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  27532. if rv.Kind() == reflect.Ptr {
  27533. vp := rv2i(rv).(*map[uintptr]uint)
  27534. v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d)
  27535. if changed {
  27536. *vp = v
  27537. }
  27538. } else {
  27539. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  27540. }
  27541. }
  27542. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  27543. v, changed := f.DecMapUintptrUintV(*vp, true, d)
  27544. if changed {
  27545. *vp = v
  27546. }
  27547. }
  27548. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  27549. d *Decoder) (_ map[uintptr]uint, changed bool) {
  27550. dd, esep := d.d, d.hh.hasElemSeparators()
  27551. containerLen := dd.ReadMapStart()
  27552. if canChange && v == nil {
  27553. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27554. v = make(map[uintptr]uint, xlen)
  27555. changed = true
  27556. }
  27557. if containerLen == 0 {
  27558. dd.ReadMapEnd()
  27559. return v, changed
  27560. }
  27561. var mk uintptr
  27562. var mv uint
  27563. hasLen := containerLen > 0
  27564. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27565. if esep {
  27566. dd.ReadMapElemKey()
  27567. }
  27568. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27569. if esep {
  27570. dd.ReadMapElemValue()
  27571. }
  27572. if dd.TryDecodeAsNil() {
  27573. if v == nil {
  27574. } else if d.h.DeleteOnNilMapValue {
  27575. delete(v, mk)
  27576. } else {
  27577. v[mk] = 0
  27578. }
  27579. continue
  27580. }
  27581. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27582. if v != nil {
  27583. v[mk] = mv
  27584. }
  27585. }
  27586. dd.ReadMapEnd()
  27587. return v, changed
  27588. }
  27589. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  27590. if rv.Kind() == reflect.Ptr {
  27591. vp := rv2i(rv).(*map[uintptr]uint8)
  27592. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d)
  27593. if changed {
  27594. *vp = v
  27595. }
  27596. } else {
  27597. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  27598. }
  27599. }
  27600. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  27601. v, changed := f.DecMapUintptrUint8V(*vp, true, d)
  27602. if changed {
  27603. *vp = v
  27604. }
  27605. }
  27606. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  27607. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  27608. dd, esep := d.d, d.hh.hasElemSeparators()
  27609. containerLen := dd.ReadMapStart()
  27610. if canChange && v == nil {
  27611. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27612. v = make(map[uintptr]uint8, xlen)
  27613. changed = true
  27614. }
  27615. if containerLen == 0 {
  27616. dd.ReadMapEnd()
  27617. return v, changed
  27618. }
  27619. var mk uintptr
  27620. var mv uint8
  27621. hasLen := containerLen > 0
  27622. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27623. if esep {
  27624. dd.ReadMapElemKey()
  27625. }
  27626. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27627. if esep {
  27628. dd.ReadMapElemValue()
  27629. }
  27630. if dd.TryDecodeAsNil() {
  27631. if v == nil {
  27632. } else if d.h.DeleteOnNilMapValue {
  27633. delete(v, mk)
  27634. } else {
  27635. v[mk] = 0
  27636. }
  27637. continue
  27638. }
  27639. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  27640. if v != nil {
  27641. v[mk] = mv
  27642. }
  27643. }
  27644. dd.ReadMapEnd()
  27645. return v, changed
  27646. }
  27647. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  27648. if rv.Kind() == reflect.Ptr {
  27649. vp := rv2i(rv).(*map[uintptr]uint16)
  27650. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d)
  27651. if changed {
  27652. *vp = v
  27653. }
  27654. } else {
  27655. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  27656. }
  27657. }
  27658. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  27659. v, changed := f.DecMapUintptrUint16V(*vp, true, d)
  27660. if changed {
  27661. *vp = v
  27662. }
  27663. }
  27664. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  27665. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  27666. dd, esep := d.d, d.hh.hasElemSeparators()
  27667. containerLen := dd.ReadMapStart()
  27668. if canChange && v == nil {
  27669. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27670. v = make(map[uintptr]uint16, xlen)
  27671. changed = true
  27672. }
  27673. if containerLen == 0 {
  27674. dd.ReadMapEnd()
  27675. return v, changed
  27676. }
  27677. var mk uintptr
  27678. var mv uint16
  27679. hasLen := containerLen > 0
  27680. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27681. if esep {
  27682. dd.ReadMapElemKey()
  27683. }
  27684. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27685. if esep {
  27686. dd.ReadMapElemValue()
  27687. }
  27688. if dd.TryDecodeAsNil() {
  27689. if v == nil {
  27690. } else if d.h.DeleteOnNilMapValue {
  27691. delete(v, mk)
  27692. } else {
  27693. v[mk] = 0
  27694. }
  27695. continue
  27696. }
  27697. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  27698. if v != nil {
  27699. v[mk] = mv
  27700. }
  27701. }
  27702. dd.ReadMapEnd()
  27703. return v, changed
  27704. }
  27705. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  27706. if rv.Kind() == reflect.Ptr {
  27707. vp := rv2i(rv).(*map[uintptr]uint32)
  27708. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d)
  27709. if changed {
  27710. *vp = v
  27711. }
  27712. } else {
  27713. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  27714. }
  27715. }
  27716. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  27717. v, changed := f.DecMapUintptrUint32V(*vp, true, d)
  27718. if changed {
  27719. *vp = v
  27720. }
  27721. }
  27722. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  27723. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  27724. dd, esep := d.d, d.hh.hasElemSeparators()
  27725. containerLen := dd.ReadMapStart()
  27726. if canChange && v == nil {
  27727. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27728. v = make(map[uintptr]uint32, xlen)
  27729. changed = true
  27730. }
  27731. if containerLen == 0 {
  27732. dd.ReadMapEnd()
  27733. return v, changed
  27734. }
  27735. var mk uintptr
  27736. var mv uint32
  27737. hasLen := containerLen > 0
  27738. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27739. if esep {
  27740. dd.ReadMapElemKey()
  27741. }
  27742. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27743. if esep {
  27744. dd.ReadMapElemValue()
  27745. }
  27746. if dd.TryDecodeAsNil() {
  27747. if v == nil {
  27748. } else if d.h.DeleteOnNilMapValue {
  27749. delete(v, mk)
  27750. } else {
  27751. v[mk] = 0
  27752. }
  27753. continue
  27754. }
  27755. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  27756. if v != nil {
  27757. v[mk] = mv
  27758. }
  27759. }
  27760. dd.ReadMapEnd()
  27761. return v, changed
  27762. }
  27763. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  27764. if rv.Kind() == reflect.Ptr {
  27765. vp := rv2i(rv).(*map[uintptr]uint64)
  27766. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d)
  27767. if changed {
  27768. *vp = v
  27769. }
  27770. } else {
  27771. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  27772. }
  27773. }
  27774. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  27775. v, changed := f.DecMapUintptrUint64V(*vp, true, d)
  27776. if changed {
  27777. *vp = v
  27778. }
  27779. }
  27780. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  27781. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  27782. dd, esep := d.d, d.hh.hasElemSeparators()
  27783. containerLen := dd.ReadMapStart()
  27784. if canChange && v == nil {
  27785. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27786. v = make(map[uintptr]uint64, xlen)
  27787. changed = true
  27788. }
  27789. if containerLen == 0 {
  27790. dd.ReadMapEnd()
  27791. return v, changed
  27792. }
  27793. var mk uintptr
  27794. var mv uint64
  27795. hasLen := containerLen > 0
  27796. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27797. if esep {
  27798. dd.ReadMapElemKey()
  27799. }
  27800. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27801. if esep {
  27802. dd.ReadMapElemValue()
  27803. }
  27804. if dd.TryDecodeAsNil() {
  27805. if v == nil {
  27806. } else if d.h.DeleteOnNilMapValue {
  27807. delete(v, mk)
  27808. } else {
  27809. v[mk] = 0
  27810. }
  27811. continue
  27812. }
  27813. mv = dd.DecodeUint64()
  27814. if v != nil {
  27815. v[mk] = mv
  27816. }
  27817. }
  27818. dd.ReadMapEnd()
  27819. return v, changed
  27820. }
  27821. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  27822. if rv.Kind() == reflect.Ptr {
  27823. vp := rv2i(rv).(*map[uintptr]uintptr)
  27824. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d)
  27825. if changed {
  27826. *vp = v
  27827. }
  27828. } else {
  27829. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  27830. }
  27831. }
  27832. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  27833. v, changed := f.DecMapUintptrUintptrV(*vp, true, d)
  27834. if changed {
  27835. *vp = v
  27836. }
  27837. }
  27838. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  27839. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  27840. dd, esep := d.d, d.hh.hasElemSeparators()
  27841. containerLen := dd.ReadMapStart()
  27842. if canChange && v == nil {
  27843. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27844. v = make(map[uintptr]uintptr, xlen)
  27845. changed = true
  27846. }
  27847. if containerLen == 0 {
  27848. dd.ReadMapEnd()
  27849. return v, changed
  27850. }
  27851. var mk uintptr
  27852. var mv uintptr
  27853. hasLen := containerLen > 0
  27854. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27855. if esep {
  27856. dd.ReadMapElemKey()
  27857. }
  27858. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27859. if esep {
  27860. dd.ReadMapElemValue()
  27861. }
  27862. if dd.TryDecodeAsNil() {
  27863. if v == nil {
  27864. } else if d.h.DeleteOnNilMapValue {
  27865. delete(v, mk)
  27866. } else {
  27867. v[mk] = 0
  27868. }
  27869. continue
  27870. }
  27871. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27872. if v != nil {
  27873. v[mk] = mv
  27874. }
  27875. }
  27876. dd.ReadMapEnd()
  27877. return v, changed
  27878. }
  27879. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  27880. if rv.Kind() == reflect.Ptr {
  27881. vp := rv2i(rv).(*map[uintptr]int)
  27882. v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d)
  27883. if changed {
  27884. *vp = v
  27885. }
  27886. } else {
  27887. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  27888. }
  27889. }
  27890. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  27891. v, changed := f.DecMapUintptrIntV(*vp, true, d)
  27892. if changed {
  27893. *vp = v
  27894. }
  27895. }
  27896. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  27897. d *Decoder) (_ map[uintptr]int, changed bool) {
  27898. dd, esep := d.d, d.hh.hasElemSeparators()
  27899. containerLen := dd.ReadMapStart()
  27900. if canChange && v == nil {
  27901. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27902. v = make(map[uintptr]int, xlen)
  27903. changed = true
  27904. }
  27905. if containerLen == 0 {
  27906. dd.ReadMapEnd()
  27907. return v, changed
  27908. }
  27909. var mk uintptr
  27910. var mv int
  27911. hasLen := containerLen > 0
  27912. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27913. if esep {
  27914. dd.ReadMapElemKey()
  27915. }
  27916. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27917. if esep {
  27918. dd.ReadMapElemValue()
  27919. }
  27920. if dd.TryDecodeAsNil() {
  27921. if v == nil {
  27922. } else if d.h.DeleteOnNilMapValue {
  27923. delete(v, mk)
  27924. } else {
  27925. v[mk] = 0
  27926. }
  27927. continue
  27928. }
  27929. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27930. if v != nil {
  27931. v[mk] = mv
  27932. }
  27933. }
  27934. dd.ReadMapEnd()
  27935. return v, changed
  27936. }
  27937. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  27938. if rv.Kind() == reflect.Ptr {
  27939. vp := rv2i(rv).(*map[uintptr]int8)
  27940. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d)
  27941. if changed {
  27942. *vp = v
  27943. }
  27944. } else {
  27945. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  27946. }
  27947. }
  27948. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  27949. v, changed := f.DecMapUintptrInt8V(*vp, true, d)
  27950. if changed {
  27951. *vp = v
  27952. }
  27953. }
  27954. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  27955. d *Decoder) (_ map[uintptr]int8, changed bool) {
  27956. dd, esep := d.d, d.hh.hasElemSeparators()
  27957. containerLen := dd.ReadMapStart()
  27958. if canChange && v == nil {
  27959. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27960. v = make(map[uintptr]int8, xlen)
  27961. changed = true
  27962. }
  27963. if containerLen == 0 {
  27964. dd.ReadMapEnd()
  27965. return v, changed
  27966. }
  27967. var mk uintptr
  27968. var mv int8
  27969. hasLen := containerLen > 0
  27970. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27971. if esep {
  27972. dd.ReadMapElemKey()
  27973. }
  27974. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27975. if esep {
  27976. dd.ReadMapElemValue()
  27977. }
  27978. if dd.TryDecodeAsNil() {
  27979. if v == nil {
  27980. } else if d.h.DeleteOnNilMapValue {
  27981. delete(v, mk)
  27982. } else {
  27983. v[mk] = 0
  27984. }
  27985. continue
  27986. }
  27987. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  27988. if v != nil {
  27989. v[mk] = mv
  27990. }
  27991. }
  27992. dd.ReadMapEnd()
  27993. return v, changed
  27994. }
  27995. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  27996. if rv.Kind() == reflect.Ptr {
  27997. vp := rv2i(rv).(*map[uintptr]int16)
  27998. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d)
  27999. if changed {
  28000. *vp = v
  28001. }
  28002. } else {
  28003. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  28004. }
  28005. }
  28006. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  28007. v, changed := f.DecMapUintptrInt16V(*vp, true, d)
  28008. if changed {
  28009. *vp = v
  28010. }
  28011. }
  28012. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  28013. d *Decoder) (_ map[uintptr]int16, changed bool) {
  28014. dd, esep := d.d, d.hh.hasElemSeparators()
  28015. containerLen := dd.ReadMapStart()
  28016. if canChange && v == nil {
  28017. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28018. v = make(map[uintptr]int16, xlen)
  28019. changed = true
  28020. }
  28021. if containerLen == 0 {
  28022. dd.ReadMapEnd()
  28023. return v, changed
  28024. }
  28025. var mk uintptr
  28026. var mv int16
  28027. hasLen := containerLen > 0
  28028. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28029. if esep {
  28030. dd.ReadMapElemKey()
  28031. }
  28032. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28033. if esep {
  28034. dd.ReadMapElemValue()
  28035. }
  28036. if dd.TryDecodeAsNil() {
  28037. if v == nil {
  28038. } else if d.h.DeleteOnNilMapValue {
  28039. delete(v, mk)
  28040. } else {
  28041. v[mk] = 0
  28042. }
  28043. continue
  28044. }
  28045. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  28046. if v != nil {
  28047. v[mk] = mv
  28048. }
  28049. }
  28050. dd.ReadMapEnd()
  28051. return v, changed
  28052. }
  28053. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  28054. if rv.Kind() == reflect.Ptr {
  28055. vp := rv2i(rv).(*map[uintptr]int32)
  28056. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d)
  28057. if changed {
  28058. *vp = v
  28059. }
  28060. } else {
  28061. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  28062. }
  28063. }
  28064. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  28065. v, changed := f.DecMapUintptrInt32V(*vp, true, d)
  28066. if changed {
  28067. *vp = v
  28068. }
  28069. }
  28070. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  28071. d *Decoder) (_ map[uintptr]int32, changed bool) {
  28072. dd, esep := d.d, d.hh.hasElemSeparators()
  28073. containerLen := dd.ReadMapStart()
  28074. if canChange && v == nil {
  28075. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28076. v = make(map[uintptr]int32, xlen)
  28077. changed = true
  28078. }
  28079. if containerLen == 0 {
  28080. dd.ReadMapEnd()
  28081. return v, changed
  28082. }
  28083. var mk uintptr
  28084. var mv int32
  28085. hasLen := containerLen > 0
  28086. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28087. if esep {
  28088. dd.ReadMapElemKey()
  28089. }
  28090. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28091. if esep {
  28092. dd.ReadMapElemValue()
  28093. }
  28094. if dd.TryDecodeAsNil() {
  28095. if v == nil {
  28096. } else if d.h.DeleteOnNilMapValue {
  28097. delete(v, mk)
  28098. } else {
  28099. v[mk] = 0
  28100. }
  28101. continue
  28102. }
  28103. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  28104. if v != nil {
  28105. v[mk] = mv
  28106. }
  28107. }
  28108. dd.ReadMapEnd()
  28109. return v, changed
  28110. }
  28111. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  28112. if rv.Kind() == reflect.Ptr {
  28113. vp := rv2i(rv).(*map[uintptr]int64)
  28114. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d)
  28115. if changed {
  28116. *vp = v
  28117. }
  28118. } else {
  28119. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  28120. }
  28121. }
  28122. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  28123. v, changed := f.DecMapUintptrInt64V(*vp, true, d)
  28124. if changed {
  28125. *vp = v
  28126. }
  28127. }
  28128. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  28129. d *Decoder) (_ map[uintptr]int64, changed bool) {
  28130. dd, esep := d.d, d.hh.hasElemSeparators()
  28131. containerLen := dd.ReadMapStart()
  28132. if canChange && v == nil {
  28133. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28134. v = make(map[uintptr]int64, xlen)
  28135. changed = true
  28136. }
  28137. if containerLen == 0 {
  28138. dd.ReadMapEnd()
  28139. return v, changed
  28140. }
  28141. var mk uintptr
  28142. var mv int64
  28143. hasLen := containerLen > 0
  28144. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28145. if esep {
  28146. dd.ReadMapElemKey()
  28147. }
  28148. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28149. if esep {
  28150. dd.ReadMapElemValue()
  28151. }
  28152. if dd.TryDecodeAsNil() {
  28153. if v == nil {
  28154. } else if d.h.DeleteOnNilMapValue {
  28155. delete(v, mk)
  28156. } else {
  28157. v[mk] = 0
  28158. }
  28159. continue
  28160. }
  28161. mv = dd.DecodeInt64()
  28162. if v != nil {
  28163. v[mk] = mv
  28164. }
  28165. }
  28166. dd.ReadMapEnd()
  28167. return v, changed
  28168. }
  28169. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  28170. if rv.Kind() == reflect.Ptr {
  28171. vp := rv2i(rv).(*map[uintptr]float32)
  28172. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d)
  28173. if changed {
  28174. *vp = v
  28175. }
  28176. } else {
  28177. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  28178. }
  28179. }
  28180. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  28181. v, changed := f.DecMapUintptrFloat32V(*vp, true, d)
  28182. if changed {
  28183. *vp = v
  28184. }
  28185. }
  28186. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  28187. d *Decoder) (_ map[uintptr]float32, changed bool) {
  28188. dd, esep := d.d, d.hh.hasElemSeparators()
  28189. containerLen := dd.ReadMapStart()
  28190. if canChange && v == nil {
  28191. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28192. v = make(map[uintptr]float32, xlen)
  28193. changed = true
  28194. }
  28195. if containerLen == 0 {
  28196. dd.ReadMapEnd()
  28197. return v, changed
  28198. }
  28199. var mk uintptr
  28200. var mv float32
  28201. hasLen := containerLen > 0
  28202. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28203. if esep {
  28204. dd.ReadMapElemKey()
  28205. }
  28206. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28207. if esep {
  28208. dd.ReadMapElemValue()
  28209. }
  28210. if dd.TryDecodeAsNil() {
  28211. if v == nil {
  28212. } else if d.h.DeleteOnNilMapValue {
  28213. delete(v, mk)
  28214. } else {
  28215. v[mk] = 0
  28216. }
  28217. continue
  28218. }
  28219. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  28220. if v != nil {
  28221. v[mk] = mv
  28222. }
  28223. }
  28224. dd.ReadMapEnd()
  28225. return v, changed
  28226. }
  28227. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  28228. if rv.Kind() == reflect.Ptr {
  28229. vp := rv2i(rv).(*map[uintptr]float64)
  28230. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d)
  28231. if changed {
  28232. *vp = v
  28233. }
  28234. } else {
  28235. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  28236. }
  28237. }
  28238. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  28239. v, changed := f.DecMapUintptrFloat64V(*vp, true, d)
  28240. if changed {
  28241. *vp = v
  28242. }
  28243. }
  28244. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  28245. d *Decoder) (_ map[uintptr]float64, changed bool) {
  28246. dd, esep := d.d, d.hh.hasElemSeparators()
  28247. containerLen := dd.ReadMapStart()
  28248. if canChange && v == nil {
  28249. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28250. v = make(map[uintptr]float64, xlen)
  28251. changed = true
  28252. }
  28253. if containerLen == 0 {
  28254. dd.ReadMapEnd()
  28255. return v, changed
  28256. }
  28257. var mk uintptr
  28258. var mv float64
  28259. hasLen := containerLen > 0
  28260. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28261. if esep {
  28262. dd.ReadMapElemKey()
  28263. }
  28264. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28265. if esep {
  28266. dd.ReadMapElemValue()
  28267. }
  28268. if dd.TryDecodeAsNil() {
  28269. if v == nil {
  28270. } else if d.h.DeleteOnNilMapValue {
  28271. delete(v, mk)
  28272. } else {
  28273. v[mk] = 0
  28274. }
  28275. continue
  28276. }
  28277. mv = dd.DecodeFloat64()
  28278. if v != nil {
  28279. v[mk] = mv
  28280. }
  28281. }
  28282. dd.ReadMapEnd()
  28283. return v, changed
  28284. }
  28285. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  28286. if rv.Kind() == reflect.Ptr {
  28287. vp := rv2i(rv).(*map[uintptr]bool)
  28288. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d)
  28289. if changed {
  28290. *vp = v
  28291. }
  28292. } else {
  28293. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  28294. }
  28295. }
  28296. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  28297. v, changed := f.DecMapUintptrBoolV(*vp, true, d)
  28298. if changed {
  28299. *vp = v
  28300. }
  28301. }
  28302. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  28303. d *Decoder) (_ map[uintptr]bool, changed bool) {
  28304. dd, esep := d.d, d.hh.hasElemSeparators()
  28305. containerLen := dd.ReadMapStart()
  28306. if canChange && v == nil {
  28307. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28308. v = make(map[uintptr]bool, xlen)
  28309. changed = true
  28310. }
  28311. if containerLen == 0 {
  28312. dd.ReadMapEnd()
  28313. return v, changed
  28314. }
  28315. var mk uintptr
  28316. var mv bool
  28317. hasLen := containerLen > 0
  28318. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28319. if esep {
  28320. dd.ReadMapElemKey()
  28321. }
  28322. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28323. if esep {
  28324. dd.ReadMapElemValue()
  28325. }
  28326. if dd.TryDecodeAsNil() {
  28327. if v == nil {
  28328. } else if d.h.DeleteOnNilMapValue {
  28329. delete(v, mk)
  28330. } else {
  28331. v[mk] = false
  28332. }
  28333. continue
  28334. }
  28335. mv = dd.DecodeBool()
  28336. if v != nil {
  28337. v[mk] = mv
  28338. }
  28339. }
  28340. dd.ReadMapEnd()
  28341. return v, changed
  28342. }
  28343. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  28344. if rv.Kind() == reflect.Ptr {
  28345. vp := rv2i(rv).(*map[int]interface{})
  28346. v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d)
  28347. if changed {
  28348. *vp = v
  28349. }
  28350. } else {
  28351. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  28352. }
  28353. }
  28354. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  28355. v, changed := f.DecMapIntIntfV(*vp, true, d)
  28356. if changed {
  28357. *vp = v
  28358. }
  28359. }
  28360. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  28361. d *Decoder) (_ map[int]interface{}, changed bool) {
  28362. dd, esep := d.d, d.hh.hasElemSeparators()
  28363. containerLen := dd.ReadMapStart()
  28364. if canChange && v == nil {
  28365. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28366. v = make(map[int]interface{}, xlen)
  28367. changed = true
  28368. }
  28369. if containerLen == 0 {
  28370. dd.ReadMapEnd()
  28371. return v, changed
  28372. }
  28373. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  28374. var mk int
  28375. var mv interface{}
  28376. hasLen := containerLen > 0
  28377. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28378. if esep {
  28379. dd.ReadMapElemKey()
  28380. }
  28381. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28382. if esep {
  28383. dd.ReadMapElemValue()
  28384. }
  28385. if dd.TryDecodeAsNil() {
  28386. if v == nil {
  28387. } else if d.h.DeleteOnNilMapValue {
  28388. delete(v, mk)
  28389. } else {
  28390. v[mk] = nil
  28391. }
  28392. continue
  28393. }
  28394. if mapGet {
  28395. mv = v[mk]
  28396. } else {
  28397. mv = nil
  28398. }
  28399. d.decode(&mv)
  28400. if v != nil {
  28401. v[mk] = mv
  28402. }
  28403. }
  28404. dd.ReadMapEnd()
  28405. return v, changed
  28406. }
  28407. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  28408. if rv.Kind() == reflect.Ptr {
  28409. vp := rv2i(rv).(*map[int]string)
  28410. v, changed := fastpathTV.DecMapIntStringV(*vp, true, d)
  28411. if changed {
  28412. *vp = v
  28413. }
  28414. } else {
  28415. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  28416. }
  28417. }
  28418. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  28419. v, changed := f.DecMapIntStringV(*vp, true, d)
  28420. if changed {
  28421. *vp = v
  28422. }
  28423. }
  28424. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  28425. d *Decoder) (_ map[int]string, changed bool) {
  28426. dd, esep := d.d, d.hh.hasElemSeparators()
  28427. containerLen := dd.ReadMapStart()
  28428. if canChange && v == nil {
  28429. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28430. v = make(map[int]string, xlen)
  28431. changed = true
  28432. }
  28433. if containerLen == 0 {
  28434. dd.ReadMapEnd()
  28435. return v, changed
  28436. }
  28437. var mk int
  28438. var mv string
  28439. hasLen := containerLen > 0
  28440. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28441. if esep {
  28442. dd.ReadMapElemKey()
  28443. }
  28444. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28445. if esep {
  28446. dd.ReadMapElemValue()
  28447. }
  28448. if dd.TryDecodeAsNil() {
  28449. if v == nil {
  28450. } else if d.h.DeleteOnNilMapValue {
  28451. delete(v, mk)
  28452. } else {
  28453. v[mk] = ""
  28454. }
  28455. continue
  28456. }
  28457. mv = dd.DecodeString()
  28458. if v != nil {
  28459. v[mk] = mv
  28460. }
  28461. }
  28462. dd.ReadMapEnd()
  28463. return v, changed
  28464. }
  28465. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  28466. if rv.Kind() == reflect.Ptr {
  28467. vp := rv2i(rv).(*map[int]uint)
  28468. v, changed := fastpathTV.DecMapIntUintV(*vp, true, d)
  28469. if changed {
  28470. *vp = v
  28471. }
  28472. } else {
  28473. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  28474. }
  28475. }
  28476. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  28477. v, changed := f.DecMapIntUintV(*vp, true, d)
  28478. if changed {
  28479. *vp = v
  28480. }
  28481. }
  28482. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  28483. d *Decoder) (_ map[int]uint, changed bool) {
  28484. dd, esep := d.d, d.hh.hasElemSeparators()
  28485. containerLen := dd.ReadMapStart()
  28486. if canChange && v == nil {
  28487. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28488. v = make(map[int]uint, xlen)
  28489. changed = true
  28490. }
  28491. if containerLen == 0 {
  28492. dd.ReadMapEnd()
  28493. return v, changed
  28494. }
  28495. var mk int
  28496. var mv uint
  28497. hasLen := containerLen > 0
  28498. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28499. if esep {
  28500. dd.ReadMapElemKey()
  28501. }
  28502. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28503. if esep {
  28504. dd.ReadMapElemValue()
  28505. }
  28506. if dd.TryDecodeAsNil() {
  28507. if v == nil {
  28508. } else if d.h.DeleteOnNilMapValue {
  28509. delete(v, mk)
  28510. } else {
  28511. v[mk] = 0
  28512. }
  28513. continue
  28514. }
  28515. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28516. if v != nil {
  28517. v[mk] = mv
  28518. }
  28519. }
  28520. dd.ReadMapEnd()
  28521. return v, changed
  28522. }
  28523. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  28524. if rv.Kind() == reflect.Ptr {
  28525. vp := rv2i(rv).(*map[int]uint8)
  28526. v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d)
  28527. if changed {
  28528. *vp = v
  28529. }
  28530. } else {
  28531. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  28532. }
  28533. }
  28534. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  28535. v, changed := f.DecMapIntUint8V(*vp, true, d)
  28536. if changed {
  28537. *vp = v
  28538. }
  28539. }
  28540. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  28541. d *Decoder) (_ map[int]uint8, changed bool) {
  28542. dd, esep := d.d, d.hh.hasElemSeparators()
  28543. containerLen := dd.ReadMapStart()
  28544. if canChange && v == nil {
  28545. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28546. v = make(map[int]uint8, xlen)
  28547. changed = true
  28548. }
  28549. if containerLen == 0 {
  28550. dd.ReadMapEnd()
  28551. return v, changed
  28552. }
  28553. var mk int
  28554. var mv uint8
  28555. hasLen := containerLen > 0
  28556. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28557. if esep {
  28558. dd.ReadMapElemKey()
  28559. }
  28560. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28561. if esep {
  28562. dd.ReadMapElemValue()
  28563. }
  28564. if dd.TryDecodeAsNil() {
  28565. if v == nil {
  28566. } else if d.h.DeleteOnNilMapValue {
  28567. delete(v, mk)
  28568. } else {
  28569. v[mk] = 0
  28570. }
  28571. continue
  28572. }
  28573. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  28574. if v != nil {
  28575. v[mk] = mv
  28576. }
  28577. }
  28578. dd.ReadMapEnd()
  28579. return v, changed
  28580. }
  28581. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  28582. if rv.Kind() == reflect.Ptr {
  28583. vp := rv2i(rv).(*map[int]uint16)
  28584. v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d)
  28585. if changed {
  28586. *vp = v
  28587. }
  28588. } else {
  28589. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  28590. }
  28591. }
  28592. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  28593. v, changed := f.DecMapIntUint16V(*vp, true, d)
  28594. if changed {
  28595. *vp = v
  28596. }
  28597. }
  28598. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  28599. d *Decoder) (_ map[int]uint16, changed bool) {
  28600. dd, esep := d.d, d.hh.hasElemSeparators()
  28601. containerLen := dd.ReadMapStart()
  28602. if canChange && v == nil {
  28603. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28604. v = make(map[int]uint16, xlen)
  28605. changed = true
  28606. }
  28607. if containerLen == 0 {
  28608. dd.ReadMapEnd()
  28609. return v, changed
  28610. }
  28611. var mk int
  28612. var mv uint16
  28613. hasLen := containerLen > 0
  28614. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28615. if esep {
  28616. dd.ReadMapElemKey()
  28617. }
  28618. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  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 = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  28632. if v != nil {
  28633. v[mk] = mv
  28634. }
  28635. }
  28636. dd.ReadMapEnd()
  28637. return v, changed
  28638. }
  28639. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  28640. if rv.Kind() == reflect.Ptr {
  28641. vp := rv2i(rv).(*map[int]uint32)
  28642. v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d)
  28643. if changed {
  28644. *vp = v
  28645. }
  28646. } else {
  28647. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  28648. }
  28649. }
  28650. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  28651. v, changed := f.DecMapIntUint32V(*vp, true, d)
  28652. if changed {
  28653. *vp = v
  28654. }
  28655. }
  28656. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  28657. d *Decoder) (_ map[int]uint32, changed bool) {
  28658. dd, esep := d.d, d.hh.hasElemSeparators()
  28659. containerLen := dd.ReadMapStart()
  28660. if canChange && v == nil {
  28661. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28662. v = make(map[int]uint32, xlen)
  28663. changed = true
  28664. }
  28665. if containerLen == 0 {
  28666. dd.ReadMapEnd()
  28667. return v, changed
  28668. }
  28669. var mk int
  28670. var mv uint32
  28671. hasLen := containerLen > 0
  28672. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28673. if esep {
  28674. dd.ReadMapElemKey()
  28675. }
  28676. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28677. if esep {
  28678. dd.ReadMapElemValue()
  28679. }
  28680. if dd.TryDecodeAsNil() {
  28681. if v == nil {
  28682. } else if d.h.DeleteOnNilMapValue {
  28683. delete(v, mk)
  28684. } else {
  28685. v[mk] = 0
  28686. }
  28687. continue
  28688. }
  28689. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  28690. if v != nil {
  28691. v[mk] = mv
  28692. }
  28693. }
  28694. dd.ReadMapEnd()
  28695. return v, changed
  28696. }
  28697. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  28698. if rv.Kind() == reflect.Ptr {
  28699. vp := rv2i(rv).(*map[int]uint64)
  28700. v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d)
  28701. if changed {
  28702. *vp = v
  28703. }
  28704. } else {
  28705. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  28706. }
  28707. }
  28708. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  28709. v, changed := f.DecMapIntUint64V(*vp, true, d)
  28710. if changed {
  28711. *vp = v
  28712. }
  28713. }
  28714. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  28715. d *Decoder) (_ map[int]uint64, changed bool) {
  28716. dd, esep := d.d, d.hh.hasElemSeparators()
  28717. containerLen := dd.ReadMapStart()
  28718. if canChange && v == nil {
  28719. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28720. v = make(map[int]uint64, xlen)
  28721. changed = true
  28722. }
  28723. if containerLen == 0 {
  28724. dd.ReadMapEnd()
  28725. return v, changed
  28726. }
  28727. var mk int
  28728. var mv uint64
  28729. hasLen := containerLen > 0
  28730. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28731. if esep {
  28732. dd.ReadMapElemKey()
  28733. }
  28734. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28735. if esep {
  28736. dd.ReadMapElemValue()
  28737. }
  28738. if dd.TryDecodeAsNil() {
  28739. if v == nil {
  28740. } else if d.h.DeleteOnNilMapValue {
  28741. delete(v, mk)
  28742. } else {
  28743. v[mk] = 0
  28744. }
  28745. continue
  28746. }
  28747. mv = dd.DecodeUint64()
  28748. if v != nil {
  28749. v[mk] = mv
  28750. }
  28751. }
  28752. dd.ReadMapEnd()
  28753. return v, changed
  28754. }
  28755. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  28756. if rv.Kind() == reflect.Ptr {
  28757. vp := rv2i(rv).(*map[int]uintptr)
  28758. v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d)
  28759. if changed {
  28760. *vp = v
  28761. }
  28762. } else {
  28763. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  28764. }
  28765. }
  28766. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  28767. v, changed := f.DecMapIntUintptrV(*vp, true, d)
  28768. if changed {
  28769. *vp = v
  28770. }
  28771. }
  28772. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  28773. d *Decoder) (_ map[int]uintptr, changed bool) {
  28774. dd, esep := d.d, d.hh.hasElemSeparators()
  28775. containerLen := dd.ReadMapStart()
  28776. if canChange && v == nil {
  28777. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28778. v = make(map[int]uintptr, xlen)
  28779. changed = true
  28780. }
  28781. if containerLen == 0 {
  28782. dd.ReadMapEnd()
  28783. return v, changed
  28784. }
  28785. var mk int
  28786. var mv uintptr
  28787. hasLen := containerLen > 0
  28788. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28789. if esep {
  28790. dd.ReadMapElemKey()
  28791. }
  28792. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28793. if esep {
  28794. dd.ReadMapElemValue()
  28795. }
  28796. if dd.TryDecodeAsNil() {
  28797. if v == nil {
  28798. } else if d.h.DeleteOnNilMapValue {
  28799. delete(v, mk)
  28800. } else {
  28801. v[mk] = 0
  28802. }
  28803. continue
  28804. }
  28805. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28806. if v != nil {
  28807. v[mk] = mv
  28808. }
  28809. }
  28810. dd.ReadMapEnd()
  28811. return v, changed
  28812. }
  28813. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  28814. if rv.Kind() == reflect.Ptr {
  28815. vp := rv2i(rv).(*map[int]int)
  28816. v, changed := fastpathTV.DecMapIntIntV(*vp, true, d)
  28817. if changed {
  28818. *vp = v
  28819. }
  28820. } else {
  28821. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  28822. }
  28823. }
  28824. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  28825. v, changed := f.DecMapIntIntV(*vp, true, d)
  28826. if changed {
  28827. *vp = v
  28828. }
  28829. }
  28830. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  28831. d *Decoder) (_ map[int]int, changed bool) {
  28832. dd, esep := d.d, d.hh.hasElemSeparators()
  28833. containerLen := dd.ReadMapStart()
  28834. if canChange && v == nil {
  28835. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28836. v = make(map[int]int, xlen)
  28837. changed = true
  28838. }
  28839. if containerLen == 0 {
  28840. dd.ReadMapEnd()
  28841. return v, changed
  28842. }
  28843. var mk int
  28844. var mv int
  28845. hasLen := containerLen > 0
  28846. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28847. if esep {
  28848. dd.ReadMapElemKey()
  28849. }
  28850. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28851. if esep {
  28852. dd.ReadMapElemValue()
  28853. }
  28854. if dd.TryDecodeAsNil() {
  28855. if v == nil {
  28856. } else if d.h.DeleteOnNilMapValue {
  28857. delete(v, mk)
  28858. } else {
  28859. v[mk] = 0
  28860. }
  28861. continue
  28862. }
  28863. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28864. if v != nil {
  28865. v[mk] = mv
  28866. }
  28867. }
  28868. dd.ReadMapEnd()
  28869. return v, changed
  28870. }
  28871. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  28872. if rv.Kind() == reflect.Ptr {
  28873. vp := rv2i(rv).(*map[int]int8)
  28874. v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d)
  28875. if changed {
  28876. *vp = v
  28877. }
  28878. } else {
  28879. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  28880. }
  28881. }
  28882. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  28883. v, changed := f.DecMapIntInt8V(*vp, true, d)
  28884. if changed {
  28885. *vp = v
  28886. }
  28887. }
  28888. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  28889. d *Decoder) (_ map[int]int8, changed bool) {
  28890. dd, esep := d.d, d.hh.hasElemSeparators()
  28891. containerLen := dd.ReadMapStart()
  28892. if canChange && v == nil {
  28893. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28894. v = make(map[int]int8, xlen)
  28895. changed = true
  28896. }
  28897. if containerLen == 0 {
  28898. dd.ReadMapEnd()
  28899. return v, changed
  28900. }
  28901. var mk int
  28902. var mv int8
  28903. hasLen := containerLen > 0
  28904. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28905. if esep {
  28906. dd.ReadMapElemKey()
  28907. }
  28908. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28909. if esep {
  28910. dd.ReadMapElemValue()
  28911. }
  28912. if dd.TryDecodeAsNil() {
  28913. if v == nil {
  28914. } else if d.h.DeleteOnNilMapValue {
  28915. delete(v, mk)
  28916. } else {
  28917. v[mk] = 0
  28918. }
  28919. continue
  28920. }
  28921. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28922. if v != nil {
  28923. v[mk] = mv
  28924. }
  28925. }
  28926. dd.ReadMapEnd()
  28927. return v, changed
  28928. }
  28929. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  28930. if rv.Kind() == reflect.Ptr {
  28931. vp := rv2i(rv).(*map[int]int16)
  28932. v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d)
  28933. if changed {
  28934. *vp = v
  28935. }
  28936. } else {
  28937. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  28938. }
  28939. }
  28940. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  28941. v, changed := f.DecMapIntInt16V(*vp, true, d)
  28942. if changed {
  28943. *vp = v
  28944. }
  28945. }
  28946. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  28947. d *Decoder) (_ map[int]int16, changed bool) {
  28948. dd, esep := d.d, d.hh.hasElemSeparators()
  28949. containerLen := dd.ReadMapStart()
  28950. if canChange && v == nil {
  28951. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28952. v = make(map[int]int16, xlen)
  28953. changed = true
  28954. }
  28955. if containerLen == 0 {
  28956. dd.ReadMapEnd()
  28957. return v, changed
  28958. }
  28959. var mk int
  28960. var mv int16
  28961. hasLen := containerLen > 0
  28962. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28963. if esep {
  28964. dd.ReadMapElemKey()
  28965. }
  28966. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28967. if esep {
  28968. dd.ReadMapElemValue()
  28969. }
  28970. if dd.TryDecodeAsNil() {
  28971. if v == nil {
  28972. } else if d.h.DeleteOnNilMapValue {
  28973. delete(v, mk)
  28974. } else {
  28975. v[mk] = 0
  28976. }
  28977. continue
  28978. }
  28979. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  28980. if v != nil {
  28981. v[mk] = mv
  28982. }
  28983. }
  28984. dd.ReadMapEnd()
  28985. return v, changed
  28986. }
  28987. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  28988. if rv.Kind() == reflect.Ptr {
  28989. vp := rv2i(rv).(*map[int]int32)
  28990. v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d)
  28991. if changed {
  28992. *vp = v
  28993. }
  28994. } else {
  28995. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  28996. }
  28997. }
  28998. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  28999. v, changed := f.DecMapIntInt32V(*vp, true, d)
  29000. if changed {
  29001. *vp = v
  29002. }
  29003. }
  29004. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  29005. d *Decoder) (_ map[int]int32, changed bool) {
  29006. dd, esep := d.d, d.hh.hasElemSeparators()
  29007. containerLen := dd.ReadMapStart()
  29008. if canChange && v == nil {
  29009. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29010. v = make(map[int]int32, xlen)
  29011. changed = true
  29012. }
  29013. if containerLen == 0 {
  29014. dd.ReadMapEnd()
  29015. return v, changed
  29016. }
  29017. var mk int
  29018. var mv int32
  29019. hasLen := containerLen > 0
  29020. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29021. if esep {
  29022. dd.ReadMapElemKey()
  29023. }
  29024. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29025. if esep {
  29026. dd.ReadMapElemValue()
  29027. }
  29028. if dd.TryDecodeAsNil() {
  29029. if v == nil {
  29030. } else if d.h.DeleteOnNilMapValue {
  29031. delete(v, mk)
  29032. } else {
  29033. v[mk] = 0
  29034. }
  29035. continue
  29036. }
  29037. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  29038. if v != nil {
  29039. v[mk] = mv
  29040. }
  29041. }
  29042. dd.ReadMapEnd()
  29043. return v, changed
  29044. }
  29045. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  29046. if rv.Kind() == reflect.Ptr {
  29047. vp := rv2i(rv).(*map[int]int64)
  29048. v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d)
  29049. if changed {
  29050. *vp = v
  29051. }
  29052. } else {
  29053. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  29054. }
  29055. }
  29056. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  29057. v, changed := f.DecMapIntInt64V(*vp, true, d)
  29058. if changed {
  29059. *vp = v
  29060. }
  29061. }
  29062. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  29063. d *Decoder) (_ map[int]int64, changed bool) {
  29064. dd, esep := d.d, d.hh.hasElemSeparators()
  29065. containerLen := dd.ReadMapStart()
  29066. if canChange && v == nil {
  29067. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29068. v = make(map[int]int64, xlen)
  29069. changed = true
  29070. }
  29071. if containerLen == 0 {
  29072. dd.ReadMapEnd()
  29073. return v, changed
  29074. }
  29075. var mk int
  29076. var mv int64
  29077. hasLen := containerLen > 0
  29078. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29079. if esep {
  29080. dd.ReadMapElemKey()
  29081. }
  29082. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29083. if esep {
  29084. dd.ReadMapElemValue()
  29085. }
  29086. if dd.TryDecodeAsNil() {
  29087. if v == nil {
  29088. } else if d.h.DeleteOnNilMapValue {
  29089. delete(v, mk)
  29090. } else {
  29091. v[mk] = 0
  29092. }
  29093. continue
  29094. }
  29095. mv = dd.DecodeInt64()
  29096. if v != nil {
  29097. v[mk] = mv
  29098. }
  29099. }
  29100. dd.ReadMapEnd()
  29101. return v, changed
  29102. }
  29103. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  29104. if rv.Kind() == reflect.Ptr {
  29105. vp := rv2i(rv).(*map[int]float32)
  29106. v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d)
  29107. if changed {
  29108. *vp = v
  29109. }
  29110. } else {
  29111. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  29112. }
  29113. }
  29114. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  29115. v, changed := f.DecMapIntFloat32V(*vp, true, d)
  29116. if changed {
  29117. *vp = v
  29118. }
  29119. }
  29120. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  29121. d *Decoder) (_ map[int]float32, changed bool) {
  29122. dd, esep := d.d, d.hh.hasElemSeparators()
  29123. containerLen := dd.ReadMapStart()
  29124. if canChange && v == nil {
  29125. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29126. v = make(map[int]float32, xlen)
  29127. changed = true
  29128. }
  29129. if containerLen == 0 {
  29130. dd.ReadMapEnd()
  29131. return v, changed
  29132. }
  29133. var mk int
  29134. var mv float32
  29135. hasLen := containerLen > 0
  29136. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29137. if esep {
  29138. dd.ReadMapElemKey()
  29139. }
  29140. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29141. if esep {
  29142. dd.ReadMapElemValue()
  29143. }
  29144. if dd.TryDecodeAsNil() {
  29145. if v == nil {
  29146. } else if d.h.DeleteOnNilMapValue {
  29147. delete(v, mk)
  29148. } else {
  29149. v[mk] = 0
  29150. }
  29151. continue
  29152. }
  29153. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  29154. if v != nil {
  29155. v[mk] = mv
  29156. }
  29157. }
  29158. dd.ReadMapEnd()
  29159. return v, changed
  29160. }
  29161. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  29162. if rv.Kind() == reflect.Ptr {
  29163. vp := rv2i(rv).(*map[int]float64)
  29164. v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d)
  29165. if changed {
  29166. *vp = v
  29167. }
  29168. } else {
  29169. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  29170. }
  29171. }
  29172. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  29173. v, changed := f.DecMapIntFloat64V(*vp, true, d)
  29174. if changed {
  29175. *vp = v
  29176. }
  29177. }
  29178. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  29179. d *Decoder) (_ map[int]float64, changed bool) {
  29180. dd, esep := d.d, d.hh.hasElemSeparators()
  29181. containerLen := dd.ReadMapStart()
  29182. if canChange && v == nil {
  29183. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29184. v = make(map[int]float64, xlen)
  29185. changed = true
  29186. }
  29187. if containerLen == 0 {
  29188. dd.ReadMapEnd()
  29189. return v, changed
  29190. }
  29191. var mk int
  29192. var mv float64
  29193. hasLen := containerLen > 0
  29194. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29195. if esep {
  29196. dd.ReadMapElemKey()
  29197. }
  29198. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29199. if esep {
  29200. dd.ReadMapElemValue()
  29201. }
  29202. if dd.TryDecodeAsNil() {
  29203. if v == nil {
  29204. } else if d.h.DeleteOnNilMapValue {
  29205. delete(v, mk)
  29206. } else {
  29207. v[mk] = 0
  29208. }
  29209. continue
  29210. }
  29211. mv = dd.DecodeFloat64()
  29212. if v != nil {
  29213. v[mk] = mv
  29214. }
  29215. }
  29216. dd.ReadMapEnd()
  29217. return v, changed
  29218. }
  29219. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  29220. if rv.Kind() == reflect.Ptr {
  29221. vp := rv2i(rv).(*map[int]bool)
  29222. v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d)
  29223. if changed {
  29224. *vp = v
  29225. }
  29226. } else {
  29227. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  29228. }
  29229. }
  29230. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  29231. v, changed := f.DecMapIntBoolV(*vp, true, d)
  29232. if changed {
  29233. *vp = v
  29234. }
  29235. }
  29236. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  29237. d *Decoder) (_ map[int]bool, changed bool) {
  29238. dd, esep := d.d, d.hh.hasElemSeparators()
  29239. containerLen := dd.ReadMapStart()
  29240. if canChange && v == nil {
  29241. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29242. v = make(map[int]bool, xlen)
  29243. changed = true
  29244. }
  29245. if containerLen == 0 {
  29246. dd.ReadMapEnd()
  29247. return v, changed
  29248. }
  29249. var mk int
  29250. var mv bool
  29251. hasLen := containerLen > 0
  29252. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29253. if esep {
  29254. dd.ReadMapElemKey()
  29255. }
  29256. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29257. if esep {
  29258. dd.ReadMapElemValue()
  29259. }
  29260. if dd.TryDecodeAsNil() {
  29261. if v == nil {
  29262. } else if d.h.DeleteOnNilMapValue {
  29263. delete(v, mk)
  29264. } else {
  29265. v[mk] = false
  29266. }
  29267. continue
  29268. }
  29269. mv = dd.DecodeBool()
  29270. if v != nil {
  29271. v[mk] = mv
  29272. }
  29273. }
  29274. dd.ReadMapEnd()
  29275. return v, changed
  29276. }
  29277. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  29278. if rv.Kind() == reflect.Ptr {
  29279. vp := rv2i(rv).(*map[int8]interface{})
  29280. v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d)
  29281. if changed {
  29282. *vp = v
  29283. }
  29284. } else {
  29285. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  29286. }
  29287. }
  29288. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  29289. v, changed := f.DecMapInt8IntfV(*vp, true, d)
  29290. if changed {
  29291. *vp = v
  29292. }
  29293. }
  29294. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  29295. d *Decoder) (_ map[int8]interface{}, changed bool) {
  29296. dd, esep := d.d, d.hh.hasElemSeparators()
  29297. containerLen := dd.ReadMapStart()
  29298. if canChange && v == nil {
  29299. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29300. v = make(map[int8]interface{}, xlen)
  29301. changed = true
  29302. }
  29303. if containerLen == 0 {
  29304. dd.ReadMapEnd()
  29305. return v, changed
  29306. }
  29307. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  29308. var mk int8
  29309. var mv interface{}
  29310. hasLen := containerLen > 0
  29311. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29312. if esep {
  29313. dd.ReadMapElemKey()
  29314. }
  29315. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29316. if esep {
  29317. dd.ReadMapElemValue()
  29318. }
  29319. if dd.TryDecodeAsNil() {
  29320. if v == nil {
  29321. } else if d.h.DeleteOnNilMapValue {
  29322. delete(v, mk)
  29323. } else {
  29324. v[mk] = nil
  29325. }
  29326. continue
  29327. }
  29328. if mapGet {
  29329. mv = v[mk]
  29330. } else {
  29331. mv = nil
  29332. }
  29333. d.decode(&mv)
  29334. if v != nil {
  29335. v[mk] = mv
  29336. }
  29337. }
  29338. dd.ReadMapEnd()
  29339. return v, changed
  29340. }
  29341. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  29342. if rv.Kind() == reflect.Ptr {
  29343. vp := rv2i(rv).(*map[int8]string)
  29344. v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d)
  29345. if changed {
  29346. *vp = v
  29347. }
  29348. } else {
  29349. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  29350. }
  29351. }
  29352. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  29353. v, changed := f.DecMapInt8StringV(*vp, true, d)
  29354. if changed {
  29355. *vp = v
  29356. }
  29357. }
  29358. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  29359. d *Decoder) (_ map[int8]string, changed bool) {
  29360. dd, esep := d.d, d.hh.hasElemSeparators()
  29361. containerLen := dd.ReadMapStart()
  29362. if canChange && v == nil {
  29363. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29364. v = make(map[int8]string, xlen)
  29365. changed = true
  29366. }
  29367. if containerLen == 0 {
  29368. dd.ReadMapEnd()
  29369. return v, changed
  29370. }
  29371. var mk int8
  29372. var mv string
  29373. hasLen := containerLen > 0
  29374. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29375. if esep {
  29376. dd.ReadMapElemKey()
  29377. }
  29378. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29379. if esep {
  29380. dd.ReadMapElemValue()
  29381. }
  29382. if dd.TryDecodeAsNil() {
  29383. if v == nil {
  29384. } else if d.h.DeleteOnNilMapValue {
  29385. delete(v, mk)
  29386. } else {
  29387. v[mk] = ""
  29388. }
  29389. continue
  29390. }
  29391. mv = dd.DecodeString()
  29392. if v != nil {
  29393. v[mk] = mv
  29394. }
  29395. }
  29396. dd.ReadMapEnd()
  29397. return v, changed
  29398. }
  29399. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  29400. if rv.Kind() == reflect.Ptr {
  29401. vp := rv2i(rv).(*map[int8]uint)
  29402. v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d)
  29403. if changed {
  29404. *vp = v
  29405. }
  29406. } else {
  29407. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  29408. }
  29409. }
  29410. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  29411. v, changed := f.DecMapInt8UintV(*vp, true, d)
  29412. if changed {
  29413. *vp = v
  29414. }
  29415. }
  29416. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  29417. d *Decoder) (_ map[int8]uint, changed bool) {
  29418. dd, esep := d.d, d.hh.hasElemSeparators()
  29419. containerLen := dd.ReadMapStart()
  29420. if canChange && v == nil {
  29421. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29422. v = make(map[int8]uint, xlen)
  29423. changed = true
  29424. }
  29425. if containerLen == 0 {
  29426. dd.ReadMapEnd()
  29427. return v, changed
  29428. }
  29429. var mk int8
  29430. var mv uint
  29431. hasLen := containerLen > 0
  29432. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29433. if esep {
  29434. dd.ReadMapElemKey()
  29435. }
  29436. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29437. if esep {
  29438. dd.ReadMapElemValue()
  29439. }
  29440. if dd.TryDecodeAsNil() {
  29441. if v == nil {
  29442. } else if d.h.DeleteOnNilMapValue {
  29443. delete(v, mk)
  29444. } else {
  29445. v[mk] = 0
  29446. }
  29447. continue
  29448. }
  29449. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29450. if v != nil {
  29451. v[mk] = mv
  29452. }
  29453. }
  29454. dd.ReadMapEnd()
  29455. return v, changed
  29456. }
  29457. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  29458. if rv.Kind() == reflect.Ptr {
  29459. vp := rv2i(rv).(*map[int8]uint8)
  29460. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d)
  29461. if changed {
  29462. *vp = v
  29463. }
  29464. } else {
  29465. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  29466. }
  29467. }
  29468. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  29469. v, changed := f.DecMapInt8Uint8V(*vp, true, d)
  29470. if changed {
  29471. *vp = v
  29472. }
  29473. }
  29474. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  29475. d *Decoder) (_ map[int8]uint8, changed bool) {
  29476. dd, esep := d.d, d.hh.hasElemSeparators()
  29477. containerLen := dd.ReadMapStart()
  29478. if canChange && v == nil {
  29479. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  29480. v = make(map[int8]uint8, xlen)
  29481. changed = true
  29482. }
  29483. if containerLen == 0 {
  29484. dd.ReadMapEnd()
  29485. return v, changed
  29486. }
  29487. var mk int8
  29488. var mv uint8
  29489. hasLen := containerLen > 0
  29490. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29491. if esep {
  29492. dd.ReadMapElemKey()
  29493. }
  29494. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29495. if esep {
  29496. dd.ReadMapElemValue()
  29497. }
  29498. if dd.TryDecodeAsNil() {
  29499. if v == nil {
  29500. } else if d.h.DeleteOnNilMapValue {
  29501. delete(v, mk)
  29502. } else {
  29503. v[mk] = 0
  29504. }
  29505. continue
  29506. }
  29507. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  29508. if v != nil {
  29509. v[mk] = mv
  29510. }
  29511. }
  29512. dd.ReadMapEnd()
  29513. return v, changed
  29514. }
  29515. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  29516. if rv.Kind() == reflect.Ptr {
  29517. vp := rv2i(rv).(*map[int8]uint16)
  29518. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d)
  29519. if changed {
  29520. *vp = v
  29521. }
  29522. } else {
  29523. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  29524. }
  29525. }
  29526. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  29527. v, changed := f.DecMapInt8Uint16V(*vp, true, d)
  29528. if changed {
  29529. *vp = v
  29530. }
  29531. }
  29532. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  29533. d *Decoder) (_ map[int8]uint16, changed bool) {
  29534. dd, esep := d.d, d.hh.hasElemSeparators()
  29535. containerLen := dd.ReadMapStart()
  29536. if canChange && v == nil {
  29537. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29538. v = make(map[int8]uint16, xlen)
  29539. changed = true
  29540. }
  29541. if containerLen == 0 {
  29542. dd.ReadMapEnd()
  29543. return v, changed
  29544. }
  29545. var mk int8
  29546. var mv uint16
  29547. hasLen := containerLen > 0
  29548. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29549. if esep {
  29550. dd.ReadMapElemKey()
  29551. }
  29552. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29553. if esep {
  29554. dd.ReadMapElemValue()
  29555. }
  29556. if dd.TryDecodeAsNil() {
  29557. if v == nil {
  29558. } else if d.h.DeleteOnNilMapValue {
  29559. delete(v, mk)
  29560. } else {
  29561. v[mk] = 0
  29562. }
  29563. continue
  29564. }
  29565. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  29566. if v != nil {
  29567. v[mk] = mv
  29568. }
  29569. }
  29570. dd.ReadMapEnd()
  29571. return v, changed
  29572. }
  29573. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  29574. if rv.Kind() == reflect.Ptr {
  29575. vp := rv2i(rv).(*map[int8]uint32)
  29576. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d)
  29577. if changed {
  29578. *vp = v
  29579. }
  29580. } else {
  29581. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  29582. }
  29583. }
  29584. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  29585. v, changed := f.DecMapInt8Uint32V(*vp, true, d)
  29586. if changed {
  29587. *vp = v
  29588. }
  29589. }
  29590. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  29591. d *Decoder) (_ map[int8]uint32, changed bool) {
  29592. dd, esep := d.d, d.hh.hasElemSeparators()
  29593. containerLen := dd.ReadMapStart()
  29594. if canChange && v == nil {
  29595. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29596. v = make(map[int8]uint32, xlen)
  29597. changed = true
  29598. }
  29599. if containerLen == 0 {
  29600. dd.ReadMapEnd()
  29601. return v, changed
  29602. }
  29603. var mk int8
  29604. var mv uint32
  29605. hasLen := containerLen > 0
  29606. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29607. if esep {
  29608. dd.ReadMapElemKey()
  29609. }
  29610. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29611. if esep {
  29612. dd.ReadMapElemValue()
  29613. }
  29614. if dd.TryDecodeAsNil() {
  29615. if v == nil {
  29616. } else if d.h.DeleteOnNilMapValue {
  29617. delete(v, mk)
  29618. } else {
  29619. v[mk] = 0
  29620. }
  29621. continue
  29622. }
  29623. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  29624. if v != nil {
  29625. v[mk] = mv
  29626. }
  29627. }
  29628. dd.ReadMapEnd()
  29629. return v, changed
  29630. }
  29631. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  29632. if rv.Kind() == reflect.Ptr {
  29633. vp := rv2i(rv).(*map[int8]uint64)
  29634. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d)
  29635. if changed {
  29636. *vp = v
  29637. }
  29638. } else {
  29639. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  29640. }
  29641. }
  29642. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  29643. v, changed := f.DecMapInt8Uint64V(*vp, true, d)
  29644. if changed {
  29645. *vp = v
  29646. }
  29647. }
  29648. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  29649. d *Decoder) (_ map[int8]uint64, changed bool) {
  29650. dd, esep := d.d, d.hh.hasElemSeparators()
  29651. containerLen := dd.ReadMapStart()
  29652. if canChange && v == nil {
  29653. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29654. v = make(map[int8]uint64, xlen)
  29655. changed = true
  29656. }
  29657. if containerLen == 0 {
  29658. dd.ReadMapEnd()
  29659. return v, changed
  29660. }
  29661. var mk int8
  29662. var mv uint64
  29663. hasLen := containerLen > 0
  29664. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29665. if esep {
  29666. dd.ReadMapElemKey()
  29667. }
  29668. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29669. if esep {
  29670. dd.ReadMapElemValue()
  29671. }
  29672. if dd.TryDecodeAsNil() {
  29673. if v == nil {
  29674. } else if d.h.DeleteOnNilMapValue {
  29675. delete(v, mk)
  29676. } else {
  29677. v[mk] = 0
  29678. }
  29679. continue
  29680. }
  29681. mv = dd.DecodeUint64()
  29682. if v != nil {
  29683. v[mk] = mv
  29684. }
  29685. }
  29686. dd.ReadMapEnd()
  29687. return v, changed
  29688. }
  29689. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  29690. if rv.Kind() == reflect.Ptr {
  29691. vp := rv2i(rv).(*map[int8]uintptr)
  29692. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d)
  29693. if changed {
  29694. *vp = v
  29695. }
  29696. } else {
  29697. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  29698. }
  29699. }
  29700. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  29701. v, changed := f.DecMapInt8UintptrV(*vp, true, d)
  29702. if changed {
  29703. *vp = v
  29704. }
  29705. }
  29706. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  29707. d *Decoder) (_ map[int8]uintptr, changed bool) {
  29708. dd, esep := d.d, d.hh.hasElemSeparators()
  29709. containerLen := dd.ReadMapStart()
  29710. if canChange && v == nil {
  29711. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29712. v = make(map[int8]uintptr, xlen)
  29713. changed = true
  29714. }
  29715. if containerLen == 0 {
  29716. dd.ReadMapEnd()
  29717. return v, changed
  29718. }
  29719. var mk int8
  29720. var mv uintptr
  29721. hasLen := containerLen > 0
  29722. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29723. if esep {
  29724. dd.ReadMapElemKey()
  29725. }
  29726. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29727. if esep {
  29728. dd.ReadMapElemValue()
  29729. }
  29730. if dd.TryDecodeAsNil() {
  29731. if v == nil {
  29732. } else if d.h.DeleteOnNilMapValue {
  29733. delete(v, mk)
  29734. } else {
  29735. v[mk] = 0
  29736. }
  29737. continue
  29738. }
  29739. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29740. if v != nil {
  29741. v[mk] = mv
  29742. }
  29743. }
  29744. dd.ReadMapEnd()
  29745. return v, changed
  29746. }
  29747. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  29748. if rv.Kind() == reflect.Ptr {
  29749. vp := rv2i(rv).(*map[int8]int)
  29750. v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d)
  29751. if changed {
  29752. *vp = v
  29753. }
  29754. } else {
  29755. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  29756. }
  29757. }
  29758. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  29759. v, changed := f.DecMapInt8IntV(*vp, true, d)
  29760. if changed {
  29761. *vp = v
  29762. }
  29763. }
  29764. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  29765. d *Decoder) (_ map[int8]int, changed bool) {
  29766. dd, esep := d.d, d.hh.hasElemSeparators()
  29767. containerLen := dd.ReadMapStart()
  29768. if canChange && v == nil {
  29769. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29770. v = make(map[int8]int, xlen)
  29771. changed = true
  29772. }
  29773. if containerLen == 0 {
  29774. dd.ReadMapEnd()
  29775. return v, changed
  29776. }
  29777. var mk int8
  29778. var mv int
  29779. hasLen := containerLen > 0
  29780. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29781. if esep {
  29782. dd.ReadMapElemKey()
  29783. }
  29784. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29785. if esep {
  29786. dd.ReadMapElemValue()
  29787. }
  29788. if dd.TryDecodeAsNil() {
  29789. if v == nil {
  29790. } else if d.h.DeleteOnNilMapValue {
  29791. delete(v, mk)
  29792. } else {
  29793. v[mk] = 0
  29794. }
  29795. continue
  29796. }
  29797. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29798. if v != nil {
  29799. v[mk] = mv
  29800. }
  29801. }
  29802. dd.ReadMapEnd()
  29803. return v, changed
  29804. }
  29805. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  29806. if rv.Kind() == reflect.Ptr {
  29807. vp := rv2i(rv).(*map[int8]int8)
  29808. v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d)
  29809. if changed {
  29810. *vp = v
  29811. }
  29812. } else {
  29813. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  29814. }
  29815. }
  29816. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  29817. v, changed := f.DecMapInt8Int8V(*vp, true, d)
  29818. if changed {
  29819. *vp = v
  29820. }
  29821. }
  29822. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  29823. d *Decoder) (_ map[int8]int8, changed bool) {
  29824. dd, esep := d.d, d.hh.hasElemSeparators()
  29825. containerLen := dd.ReadMapStart()
  29826. if canChange && v == nil {
  29827. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  29828. v = make(map[int8]int8, xlen)
  29829. changed = true
  29830. }
  29831. if containerLen == 0 {
  29832. dd.ReadMapEnd()
  29833. return v, changed
  29834. }
  29835. var mk int8
  29836. var mv int8
  29837. hasLen := containerLen > 0
  29838. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29839. if esep {
  29840. dd.ReadMapElemKey()
  29841. }
  29842. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29843. if esep {
  29844. dd.ReadMapElemValue()
  29845. }
  29846. if dd.TryDecodeAsNil() {
  29847. if v == nil {
  29848. } else if d.h.DeleteOnNilMapValue {
  29849. delete(v, mk)
  29850. } else {
  29851. v[mk] = 0
  29852. }
  29853. continue
  29854. }
  29855. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29856. if v != nil {
  29857. v[mk] = mv
  29858. }
  29859. }
  29860. dd.ReadMapEnd()
  29861. return v, changed
  29862. }
  29863. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  29864. if rv.Kind() == reflect.Ptr {
  29865. vp := rv2i(rv).(*map[int8]int16)
  29866. v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d)
  29867. if changed {
  29868. *vp = v
  29869. }
  29870. } else {
  29871. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  29872. }
  29873. }
  29874. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  29875. v, changed := f.DecMapInt8Int16V(*vp, true, d)
  29876. if changed {
  29877. *vp = v
  29878. }
  29879. }
  29880. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  29881. d *Decoder) (_ map[int8]int16, changed bool) {
  29882. dd, esep := d.d, d.hh.hasElemSeparators()
  29883. containerLen := dd.ReadMapStart()
  29884. if canChange && v == nil {
  29885. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29886. v = make(map[int8]int16, xlen)
  29887. changed = true
  29888. }
  29889. if containerLen == 0 {
  29890. dd.ReadMapEnd()
  29891. return v, changed
  29892. }
  29893. var mk int8
  29894. var mv int16
  29895. hasLen := containerLen > 0
  29896. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29897. if esep {
  29898. dd.ReadMapElemKey()
  29899. }
  29900. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29901. if esep {
  29902. dd.ReadMapElemValue()
  29903. }
  29904. if dd.TryDecodeAsNil() {
  29905. if v == nil {
  29906. } else if d.h.DeleteOnNilMapValue {
  29907. delete(v, mk)
  29908. } else {
  29909. v[mk] = 0
  29910. }
  29911. continue
  29912. }
  29913. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29914. if v != nil {
  29915. v[mk] = mv
  29916. }
  29917. }
  29918. dd.ReadMapEnd()
  29919. return v, changed
  29920. }
  29921. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  29922. if rv.Kind() == reflect.Ptr {
  29923. vp := rv2i(rv).(*map[int8]int32)
  29924. v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d)
  29925. if changed {
  29926. *vp = v
  29927. }
  29928. } else {
  29929. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  29930. }
  29931. }
  29932. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  29933. v, changed := f.DecMapInt8Int32V(*vp, true, d)
  29934. if changed {
  29935. *vp = v
  29936. }
  29937. }
  29938. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  29939. d *Decoder) (_ map[int8]int32, changed bool) {
  29940. dd, esep := d.d, d.hh.hasElemSeparators()
  29941. containerLen := dd.ReadMapStart()
  29942. if canChange && v == nil {
  29943. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29944. v = make(map[int8]int32, xlen)
  29945. changed = true
  29946. }
  29947. if containerLen == 0 {
  29948. dd.ReadMapEnd()
  29949. return v, changed
  29950. }
  29951. var mk int8
  29952. var mv int32
  29953. hasLen := containerLen > 0
  29954. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29955. if esep {
  29956. dd.ReadMapElemKey()
  29957. }
  29958. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29959. if esep {
  29960. dd.ReadMapElemValue()
  29961. }
  29962. if dd.TryDecodeAsNil() {
  29963. if v == nil {
  29964. } else if d.h.DeleteOnNilMapValue {
  29965. delete(v, mk)
  29966. } else {
  29967. v[mk] = 0
  29968. }
  29969. continue
  29970. }
  29971. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  29972. if v != nil {
  29973. v[mk] = mv
  29974. }
  29975. }
  29976. dd.ReadMapEnd()
  29977. return v, changed
  29978. }
  29979. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  29980. if rv.Kind() == reflect.Ptr {
  29981. vp := rv2i(rv).(*map[int8]int64)
  29982. v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d)
  29983. if changed {
  29984. *vp = v
  29985. }
  29986. } else {
  29987. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  29988. }
  29989. }
  29990. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  29991. v, changed := f.DecMapInt8Int64V(*vp, true, d)
  29992. if changed {
  29993. *vp = v
  29994. }
  29995. }
  29996. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  29997. d *Decoder) (_ map[int8]int64, changed bool) {
  29998. dd, esep := d.d, d.hh.hasElemSeparators()
  29999. containerLen := dd.ReadMapStart()
  30000. if canChange && v == nil {
  30001. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30002. v = make(map[int8]int64, xlen)
  30003. changed = true
  30004. }
  30005. if containerLen == 0 {
  30006. dd.ReadMapEnd()
  30007. return v, changed
  30008. }
  30009. var mk int8
  30010. var mv int64
  30011. hasLen := containerLen > 0
  30012. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30013. if esep {
  30014. dd.ReadMapElemKey()
  30015. }
  30016. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30017. if esep {
  30018. dd.ReadMapElemValue()
  30019. }
  30020. if dd.TryDecodeAsNil() {
  30021. if v == nil {
  30022. } else if d.h.DeleteOnNilMapValue {
  30023. delete(v, mk)
  30024. } else {
  30025. v[mk] = 0
  30026. }
  30027. continue
  30028. }
  30029. mv = dd.DecodeInt64()
  30030. if v != nil {
  30031. v[mk] = mv
  30032. }
  30033. }
  30034. dd.ReadMapEnd()
  30035. return v, changed
  30036. }
  30037. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  30038. if rv.Kind() == reflect.Ptr {
  30039. vp := rv2i(rv).(*map[int8]float32)
  30040. v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d)
  30041. if changed {
  30042. *vp = v
  30043. }
  30044. } else {
  30045. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  30046. }
  30047. }
  30048. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  30049. v, changed := f.DecMapInt8Float32V(*vp, true, d)
  30050. if changed {
  30051. *vp = v
  30052. }
  30053. }
  30054. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  30055. d *Decoder) (_ map[int8]float32, changed bool) {
  30056. dd, esep := d.d, d.hh.hasElemSeparators()
  30057. containerLen := dd.ReadMapStart()
  30058. if canChange && v == nil {
  30059. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30060. v = make(map[int8]float32, xlen)
  30061. changed = true
  30062. }
  30063. if containerLen == 0 {
  30064. dd.ReadMapEnd()
  30065. return v, changed
  30066. }
  30067. var mk int8
  30068. var mv float32
  30069. hasLen := containerLen > 0
  30070. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30071. if esep {
  30072. dd.ReadMapElemKey()
  30073. }
  30074. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30075. if esep {
  30076. dd.ReadMapElemValue()
  30077. }
  30078. if dd.TryDecodeAsNil() {
  30079. if v == nil {
  30080. } else if d.h.DeleteOnNilMapValue {
  30081. delete(v, mk)
  30082. } else {
  30083. v[mk] = 0
  30084. }
  30085. continue
  30086. }
  30087. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  30088. if v != nil {
  30089. v[mk] = mv
  30090. }
  30091. }
  30092. dd.ReadMapEnd()
  30093. return v, changed
  30094. }
  30095. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  30096. if rv.Kind() == reflect.Ptr {
  30097. vp := rv2i(rv).(*map[int8]float64)
  30098. v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d)
  30099. if changed {
  30100. *vp = v
  30101. }
  30102. } else {
  30103. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  30104. }
  30105. }
  30106. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  30107. v, changed := f.DecMapInt8Float64V(*vp, true, d)
  30108. if changed {
  30109. *vp = v
  30110. }
  30111. }
  30112. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  30113. d *Decoder) (_ map[int8]float64, changed bool) {
  30114. dd, esep := d.d, d.hh.hasElemSeparators()
  30115. containerLen := dd.ReadMapStart()
  30116. if canChange && v == nil {
  30117. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30118. v = make(map[int8]float64, xlen)
  30119. changed = true
  30120. }
  30121. if containerLen == 0 {
  30122. dd.ReadMapEnd()
  30123. return v, changed
  30124. }
  30125. var mk int8
  30126. var mv float64
  30127. hasLen := containerLen > 0
  30128. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30129. if esep {
  30130. dd.ReadMapElemKey()
  30131. }
  30132. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30133. if esep {
  30134. dd.ReadMapElemValue()
  30135. }
  30136. if dd.TryDecodeAsNil() {
  30137. if v == nil {
  30138. } else if d.h.DeleteOnNilMapValue {
  30139. delete(v, mk)
  30140. } else {
  30141. v[mk] = 0
  30142. }
  30143. continue
  30144. }
  30145. mv = dd.DecodeFloat64()
  30146. if v != nil {
  30147. v[mk] = mv
  30148. }
  30149. }
  30150. dd.ReadMapEnd()
  30151. return v, changed
  30152. }
  30153. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  30154. if rv.Kind() == reflect.Ptr {
  30155. vp := rv2i(rv).(*map[int8]bool)
  30156. v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d)
  30157. if changed {
  30158. *vp = v
  30159. }
  30160. } else {
  30161. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  30162. }
  30163. }
  30164. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  30165. v, changed := f.DecMapInt8BoolV(*vp, true, d)
  30166. if changed {
  30167. *vp = v
  30168. }
  30169. }
  30170. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  30171. d *Decoder) (_ map[int8]bool, changed bool) {
  30172. dd, esep := d.d, d.hh.hasElemSeparators()
  30173. containerLen := dd.ReadMapStart()
  30174. if canChange && v == nil {
  30175. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30176. v = make(map[int8]bool, xlen)
  30177. changed = true
  30178. }
  30179. if containerLen == 0 {
  30180. dd.ReadMapEnd()
  30181. return v, changed
  30182. }
  30183. var mk int8
  30184. var mv bool
  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] = false
  30200. }
  30201. continue
  30202. }
  30203. mv = dd.DecodeBool()
  30204. if v != nil {
  30205. v[mk] = mv
  30206. }
  30207. }
  30208. dd.ReadMapEnd()
  30209. return v, changed
  30210. }
  30211. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  30212. if rv.Kind() == reflect.Ptr {
  30213. vp := rv2i(rv).(*map[int16]interface{})
  30214. v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d)
  30215. if changed {
  30216. *vp = v
  30217. }
  30218. } else {
  30219. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  30220. }
  30221. }
  30222. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  30223. v, changed := f.DecMapInt16IntfV(*vp, true, d)
  30224. if changed {
  30225. *vp = v
  30226. }
  30227. }
  30228. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  30229. d *Decoder) (_ map[int16]interface{}, changed bool) {
  30230. dd, esep := d.d, d.hh.hasElemSeparators()
  30231. containerLen := dd.ReadMapStart()
  30232. if canChange && v == nil {
  30233. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  30234. v = make(map[int16]interface{}, xlen)
  30235. changed = true
  30236. }
  30237. if containerLen == 0 {
  30238. dd.ReadMapEnd()
  30239. return v, changed
  30240. }
  30241. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  30242. var mk int16
  30243. var mv interface{}
  30244. hasLen := containerLen > 0
  30245. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30246. if esep {
  30247. dd.ReadMapElemKey()
  30248. }
  30249. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30250. if esep {
  30251. dd.ReadMapElemValue()
  30252. }
  30253. if dd.TryDecodeAsNil() {
  30254. if v == nil {
  30255. } else if d.h.DeleteOnNilMapValue {
  30256. delete(v, mk)
  30257. } else {
  30258. v[mk] = nil
  30259. }
  30260. continue
  30261. }
  30262. if mapGet {
  30263. mv = v[mk]
  30264. } else {
  30265. mv = nil
  30266. }
  30267. d.decode(&mv)
  30268. if v != nil {
  30269. v[mk] = mv
  30270. }
  30271. }
  30272. dd.ReadMapEnd()
  30273. return v, changed
  30274. }
  30275. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  30276. if rv.Kind() == reflect.Ptr {
  30277. vp := rv2i(rv).(*map[int16]string)
  30278. v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d)
  30279. if changed {
  30280. *vp = v
  30281. }
  30282. } else {
  30283. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  30284. }
  30285. }
  30286. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  30287. v, changed := f.DecMapInt16StringV(*vp, true, d)
  30288. if changed {
  30289. *vp = v
  30290. }
  30291. }
  30292. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  30293. d *Decoder) (_ map[int16]string, changed bool) {
  30294. dd, esep := d.d, d.hh.hasElemSeparators()
  30295. containerLen := dd.ReadMapStart()
  30296. if canChange && v == nil {
  30297. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  30298. v = make(map[int16]string, xlen)
  30299. changed = true
  30300. }
  30301. if containerLen == 0 {
  30302. dd.ReadMapEnd()
  30303. return v, changed
  30304. }
  30305. var mk int16
  30306. var mv string
  30307. hasLen := containerLen > 0
  30308. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30309. if esep {
  30310. dd.ReadMapElemKey()
  30311. }
  30312. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30313. if esep {
  30314. dd.ReadMapElemValue()
  30315. }
  30316. if dd.TryDecodeAsNil() {
  30317. if v == nil {
  30318. } else if d.h.DeleteOnNilMapValue {
  30319. delete(v, mk)
  30320. } else {
  30321. v[mk] = ""
  30322. }
  30323. continue
  30324. }
  30325. mv = dd.DecodeString()
  30326. if v != nil {
  30327. v[mk] = mv
  30328. }
  30329. }
  30330. dd.ReadMapEnd()
  30331. return v, changed
  30332. }
  30333. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  30334. if rv.Kind() == reflect.Ptr {
  30335. vp := rv2i(rv).(*map[int16]uint)
  30336. v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d)
  30337. if changed {
  30338. *vp = v
  30339. }
  30340. } else {
  30341. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  30342. }
  30343. }
  30344. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  30345. v, changed := f.DecMapInt16UintV(*vp, true, d)
  30346. if changed {
  30347. *vp = v
  30348. }
  30349. }
  30350. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  30351. d *Decoder) (_ map[int16]uint, changed bool) {
  30352. dd, esep := d.d, d.hh.hasElemSeparators()
  30353. containerLen := dd.ReadMapStart()
  30354. if canChange && v == nil {
  30355. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30356. v = make(map[int16]uint, xlen)
  30357. changed = true
  30358. }
  30359. if containerLen == 0 {
  30360. dd.ReadMapEnd()
  30361. return v, changed
  30362. }
  30363. var mk int16
  30364. var mv uint
  30365. hasLen := containerLen > 0
  30366. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30367. if esep {
  30368. dd.ReadMapElemKey()
  30369. }
  30370. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  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 = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30384. if v != nil {
  30385. v[mk] = mv
  30386. }
  30387. }
  30388. dd.ReadMapEnd()
  30389. return v, changed
  30390. }
  30391. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  30392. if rv.Kind() == reflect.Ptr {
  30393. vp := rv2i(rv).(*map[int16]uint8)
  30394. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d)
  30395. if changed {
  30396. *vp = v
  30397. }
  30398. } else {
  30399. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  30400. }
  30401. }
  30402. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  30403. v, changed := f.DecMapInt16Uint8V(*vp, true, d)
  30404. if changed {
  30405. *vp = v
  30406. }
  30407. }
  30408. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  30409. d *Decoder) (_ map[int16]uint8, changed bool) {
  30410. dd, esep := d.d, d.hh.hasElemSeparators()
  30411. containerLen := dd.ReadMapStart()
  30412. if canChange && v == nil {
  30413. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30414. v = make(map[int16]uint8, xlen)
  30415. changed = true
  30416. }
  30417. if containerLen == 0 {
  30418. dd.ReadMapEnd()
  30419. return v, changed
  30420. }
  30421. var mk int16
  30422. var mv uint8
  30423. hasLen := containerLen > 0
  30424. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30425. if esep {
  30426. dd.ReadMapElemKey()
  30427. }
  30428. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30429. if esep {
  30430. dd.ReadMapElemValue()
  30431. }
  30432. if dd.TryDecodeAsNil() {
  30433. if v == nil {
  30434. } else if d.h.DeleteOnNilMapValue {
  30435. delete(v, mk)
  30436. } else {
  30437. v[mk] = 0
  30438. }
  30439. continue
  30440. }
  30441. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  30442. if v != nil {
  30443. v[mk] = mv
  30444. }
  30445. }
  30446. dd.ReadMapEnd()
  30447. return v, changed
  30448. }
  30449. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  30450. if rv.Kind() == reflect.Ptr {
  30451. vp := rv2i(rv).(*map[int16]uint16)
  30452. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d)
  30453. if changed {
  30454. *vp = v
  30455. }
  30456. } else {
  30457. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  30458. }
  30459. }
  30460. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  30461. v, changed := f.DecMapInt16Uint16V(*vp, true, d)
  30462. if changed {
  30463. *vp = v
  30464. }
  30465. }
  30466. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  30467. d *Decoder) (_ map[int16]uint16, changed bool) {
  30468. dd, esep := d.d, d.hh.hasElemSeparators()
  30469. containerLen := dd.ReadMapStart()
  30470. if canChange && v == nil {
  30471. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  30472. v = make(map[int16]uint16, xlen)
  30473. changed = true
  30474. }
  30475. if containerLen == 0 {
  30476. dd.ReadMapEnd()
  30477. return v, changed
  30478. }
  30479. var mk int16
  30480. var mv uint16
  30481. hasLen := containerLen > 0
  30482. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30483. if esep {
  30484. dd.ReadMapElemKey()
  30485. }
  30486. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30487. if esep {
  30488. dd.ReadMapElemValue()
  30489. }
  30490. if dd.TryDecodeAsNil() {
  30491. if v == nil {
  30492. } else if d.h.DeleteOnNilMapValue {
  30493. delete(v, mk)
  30494. } else {
  30495. v[mk] = 0
  30496. }
  30497. continue
  30498. }
  30499. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  30500. if v != nil {
  30501. v[mk] = mv
  30502. }
  30503. }
  30504. dd.ReadMapEnd()
  30505. return v, changed
  30506. }
  30507. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  30508. if rv.Kind() == reflect.Ptr {
  30509. vp := rv2i(rv).(*map[int16]uint32)
  30510. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d)
  30511. if changed {
  30512. *vp = v
  30513. }
  30514. } else {
  30515. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  30516. }
  30517. }
  30518. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  30519. v, changed := f.DecMapInt16Uint32V(*vp, true, d)
  30520. if changed {
  30521. *vp = v
  30522. }
  30523. }
  30524. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  30525. d *Decoder) (_ map[int16]uint32, changed bool) {
  30526. dd, esep := d.d, d.hh.hasElemSeparators()
  30527. containerLen := dd.ReadMapStart()
  30528. if canChange && v == nil {
  30529. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30530. v = make(map[int16]uint32, xlen)
  30531. changed = true
  30532. }
  30533. if containerLen == 0 {
  30534. dd.ReadMapEnd()
  30535. return v, changed
  30536. }
  30537. var mk int16
  30538. var mv uint32
  30539. hasLen := containerLen > 0
  30540. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30541. if esep {
  30542. dd.ReadMapElemKey()
  30543. }
  30544. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30545. if esep {
  30546. dd.ReadMapElemValue()
  30547. }
  30548. if dd.TryDecodeAsNil() {
  30549. if v == nil {
  30550. } else if d.h.DeleteOnNilMapValue {
  30551. delete(v, mk)
  30552. } else {
  30553. v[mk] = 0
  30554. }
  30555. continue
  30556. }
  30557. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  30558. if v != nil {
  30559. v[mk] = mv
  30560. }
  30561. }
  30562. dd.ReadMapEnd()
  30563. return v, changed
  30564. }
  30565. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  30566. if rv.Kind() == reflect.Ptr {
  30567. vp := rv2i(rv).(*map[int16]uint64)
  30568. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d)
  30569. if changed {
  30570. *vp = v
  30571. }
  30572. } else {
  30573. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  30574. }
  30575. }
  30576. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  30577. v, changed := f.DecMapInt16Uint64V(*vp, true, d)
  30578. if changed {
  30579. *vp = v
  30580. }
  30581. }
  30582. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  30583. d *Decoder) (_ map[int16]uint64, changed bool) {
  30584. dd, esep := d.d, d.hh.hasElemSeparators()
  30585. containerLen := dd.ReadMapStart()
  30586. if canChange && v == nil {
  30587. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30588. v = make(map[int16]uint64, xlen)
  30589. changed = true
  30590. }
  30591. if containerLen == 0 {
  30592. dd.ReadMapEnd()
  30593. return v, changed
  30594. }
  30595. var mk int16
  30596. var mv uint64
  30597. hasLen := containerLen > 0
  30598. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30599. if esep {
  30600. dd.ReadMapElemKey()
  30601. }
  30602. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30603. if esep {
  30604. dd.ReadMapElemValue()
  30605. }
  30606. if dd.TryDecodeAsNil() {
  30607. if v == nil {
  30608. } else if d.h.DeleteOnNilMapValue {
  30609. delete(v, mk)
  30610. } else {
  30611. v[mk] = 0
  30612. }
  30613. continue
  30614. }
  30615. mv = dd.DecodeUint64()
  30616. if v != nil {
  30617. v[mk] = mv
  30618. }
  30619. }
  30620. dd.ReadMapEnd()
  30621. return v, changed
  30622. }
  30623. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  30624. if rv.Kind() == reflect.Ptr {
  30625. vp := rv2i(rv).(*map[int16]uintptr)
  30626. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d)
  30627. if changed {
  30628. *vp = v
  30629. }
  30630. } else {
  30631. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  30632. }
  30633. }
  30634. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  30635. v, changed := f.DecMapInt16UintptrV(*vp, true, d)
  30636. if changed {
  30637. *vp = v
  30638. }
  30639. }
  30640. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  30641. d *Decoder) (_ map[int16]uintptr, changed bool) {
  30642. dd, esep := d.d, d.hh.hasElemSeparators()
  30643. containerLen := dd.ReadMapStart()
  30644. if canChange && v == nil {
  30645. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30646. v = make(map[int16]uintptr, xlen)
  30647. changed = true
  30648. }
  30649. if containerLen == 0 {
  30650. dd.ReadMapEnd()
  30651. return v, changed
  30652. }
  30653. var mk int16
  30654. var mv uintptr
  30655. hasLen := containerLen > 0
  30656. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30657. if esep {
  30658. dd.ReadMapElemKey()
  30659. }
  30660. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30661. if esep {
  30662. dd.ReadMapElemValue()
  30663. }
  30664. if dd.TryDecodeAsNil() {
  30665. if v == nil {
  30666. } else if d.h.DeleteOnNilMapValue {
  30667. delete(v, mk)
  30668. } else {
  30669. v[mk] = 0
  30670. }
  30671. continue
  30672. }
  30673. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30674. if v != nil {
  30675. v[mk] = mv
  30676. }
  30677. }
  30678. dd.ReadMapEnd()
  30679. return v, changed
  30680. }
  30681. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  30682. if rv.Kind() == reflect.Ptr {
  30683. vp := rv2i(rv).(*map[int16]int)
  30684. v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d)
  30685. if changed {
  30686. *vp = v
  30687. }
  30688. } else {
  30689. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  30690. }
  30691. }
  30692. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  30693. v, changed := f.DecMapInt16IntV(*vp, true, d)
  30694. if changed {
  30695. *vp = v
  30696. }
  30697. }
  30698. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  30699. d *Decoder) (_ map[int16]int, changed bool) {
  30700. dd, esep := d.d, d.hh.hasElemSeparators()
  30701. containerLen := dd.ReadMapStart()
  30702. if canChange && v == nil {
  30703. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30704. v = make(map[int16]int, xlen)
  30705. changed = true
  30706. }
  30707. if containerLen == 0 {
  30708. dd.ReadMapEnd()
  30709. return v, changed
  30710. }
  30711. var mk int16
  30712. var mv int
  30713. hasLen := containerLen > 0
  30714. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30715. if esep {
  30716. dd.ReadMapElemKey()
  30717. }
  30718. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30719. if esep {
  30720. dd.ReadMapElemValue()
  30721. }
  30722. if dd.TryDecodeAsNil() {
  30723. if v == nil {
  30724. } else if d.h.DeleteOnNilMapValue {
  30725. delete(v, mk)
  30726. } else {
  30727. v[mk] = 0
  30728. }
  30729. continue
  30730. }
  30731. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  30732. if v != nil {
  30733. v[mk] = mv
  30734. }
  30735. }
  30736. dd.ReadMapEnd()
  30737. return v, changed
  30738. }
  30739. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  30740. if rv.Kind() == reflect.Ptr {
  30741. vp := rv2i(rv).(*map[int16]int8)
  30742. v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d)
  30743. if changed {
  30744. *vp = v
  30745. }
  30746. } else {
  30747. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  30748. }
  30749. }
  30750. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  30751. v, changed := f.DecMapInt16Int8V(*vp, true, d)
  30752. if changed {
  30753. *vp = v
  30754. }
  30755. }
  30756. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  30757. d *Decoder) (_ map[int16]int8, changed bool) {
  30758. dd, esep := d.d, d.hh.hasElemSeparators()
  30759. containerLen := dd.ReadMapStart()
  30760. if canChange && v == nil {
  30761. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30762. v = make(map[int16]int8, xlen)
  30763. changed = true
  30764. }
  30765. if containerLen == 0 {
  30766. dd.ReadMapEnd()
  30767. return v, changed
  30768. }
  30769. var mk int16
  30770. var mv int8
  30771. hasLen := containerLen > 0
  30772. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30773. if esep {
  30774. dd.ReadMapElemKey()
  30775. }
  30776. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30777. if esep {
  30778. dd.ReadMapElemValue()
  30779. }
  30780. if dd.TryDecodeAsNil() {
  30781. if v == nil {
  30782. } else if d.h.DeleteOnNilMapValue {
  30783. delete(v, mk)
  30784. } else {
  30785. v[mk] = 0
  30786. }
  30787. continue
  30788. }
  30789. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30790. if v != nil {
  30791. v[mk] = mv
  30792. }
  30793. }
  30794. dd.ReadMapEnd()
  30795. return v, changed
  30796. }
  30797. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  30798. if rv.Kind() == reflect.Ptr {
  30799. vp := rv2i(rv).(*map[int16]int16)
  30800. v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d)
  30801. if changed {
  30802. *vp = v
  30803. }
  30804. } else {
  30805. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  30806. }
  30807. }
  30808. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  30809. v, changed := f.DecMapInt16Int16V(*vp, true, d)
  30810. if changed {
  30811. *vp = v
  30812. }
  30813. }
  30814. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  30815. d *Decoder) (_ map[int16]int16, changed bool) {
  30816. dd, esep := d.d, d.hh.hasElemSeparators()
  30817. containerLen := dd.ReadMapStart()
  30818. if canChange && v == nil {
  30819. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  30820. v = make(map[int16]int16, xlen)
  30821. changed = true
  30822. }
  30823. if containerLen == 0 {
  30824. dd.ReadMapEnd()
  30825. return v, changed
  30826. }
  30827. var mk int16
  30828. var mv int16
  30829. hasLen := containerLen > 0
  30830. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30831. if esep {
  30832. dd.ReadMapElemKey()
  30833. }
  30834. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30835. if esep {
  30836. dd.ReadMapElemValue()
  30837. }
  30838. if dd.TryDecodeAsNil() {
  30839. if v == nil {
  30840. } else if d.h.DeleteOnNilMapValue {
  30841. delete(v, mk)
  30842. } else {
  30843. v[mk] = 0
  30844. }
  30845. continue
  30846. }
  30847. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30848. if v != nil {
  30849. v[mk] = mv
  30850. }
  30851. }
  30852. dd.ReadMapEnd()
  30853. return v, changed
  30854. }
  30855. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  30856. if rv.Kind() == reflect.Ptr {
  30857. vp := rv2i(rv).(*map[int16]int32)
  30858. v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d)
  30859. if changed {
  30860. *vp = v
  30861. }
  30862. } else {
  30863. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  30864. }
  30865. }
  30866. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  30867. v, changed := f.DecMapInt16Int32V(*vp, true, d)
  30868. if changed {
  30869. *vp = v
  30870. }
  30871. }
  30872. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  30873. d *Decoder) (_ map[int16]int32, changed bool) {
  30874. dd, esep := d.d, d.hh.hasElemSeparators()
  30875. containerLen := dd.ReadMapStart()
  30876. if canChange && v == nil {
  30877. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30878. v = make(map[int16]int32, xlen)
  30879. changed = true
  30880. }
  30881. if containerLen == 0 {
  30882. dd.ReadMapEnd()
  30883. return v, changed
  30884. }
  30885. var mk int16
  30886. var mv int32
  30887. hasLen := containerLen > 0
  30888. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30889. if esep {
  30890. dd.ReadMapElemKey()
  30891. }
  30892. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30893. if esep {
  30894. dd.ReadMapElemValue()
  30895. }
  30896. if dd.TryDecodeAsNil() {
  30897. if v == nil {
  30898. } else if d.h.DeleteOnNilMapValue {
  30899. delete(v, mk)
  30900. } else {
  30901. v[mk] = 0
  30902. }
  30903. continue
  30904. }
  30905. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30906. if v != nil {
  30907. v[mk] = mv
  30908. }
  30909. }
  30910. dd.ReadMapEnd()
  30911. return v, changed
  30912. }
  30913. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  30914. if rv.Kind() == reflect.Ptr {
  30915. vp := rv2i(rv).(*map[int16]int64)
  30916. v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d)
  30917. if changed {
  30918. *vp = v
  30919. }
  30920. } else {
  30921. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  30922. }
  30923. }
  30924. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  30925. v, changed := f.DecMapInt16Int64V(*vp, true, d)
  30926. if changed {
  30927. *vp = v
  30928. }
  30929. }
  30930. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  30931. d *Decoder) (_ map[int16]int64, changed bool) {
  30932. dd, esep := d.d, d.hh.hasElemSeparators()
  30933. containerLen := dd.ReadMapStart()
  30934. if canChange && v == nil {
  30935. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30936. v = make(map[int16]int64, xlen)
  30937. changed = true
  30938. }
  30939. if containerLen == 0 {
  30940. dd.ReadMapEnd()
  30941. return v, changed
  30942. }
  30943. var mk int16
  30944. var mv int64
  30945. hasLen := containerLen > 0
  30946. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30947. if esep {
  30948. dd.ReadMapElemKey()
  30949. }
  30950. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30951. if esep {
  30952. dd.ReadMapElemValue()
  30953. }
  30954. if dd.TryDecodeAsNil() {
  30955. if v == nil {
  30956. } else if d.h.DeleteOnNilMapValue {
  30957. delete(v, mk)
  30958. } else {
  30959. v[mk] = 0
  30960. }
  30961. continue
  30962. }
  30963. mv = dd.DecodeInt64()
  30964. if v != nil {
  30965. v[mk] = mv
  30966. }
  30967. }
  30968. dd.ReadMapEnd()
  30969. return v, changed
  30970. }
  30971. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  30972. if rv.Kind() == reflect.Ptr {
  30973. vp := rv2i(rv).(*map[int16]float32)
  30974. v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d)
  30975. if changed {
  30976. *vp = v
  30977. }
  30978. } else {
  30979. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  30980. }
  30981. }
  30982. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  30983. v, changed := f.DecMapInt16Float32V(*vp, true, d)
  30984. if changed {
  30985. *vp = v
  30986. }
  30987. }
  30988. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  30989. d *Decoder) (_ map[int16]float32, changed bool) {
  30990. dd, esep := d.d, d.hh.hasElemSeparators()
  30991. containerLen := dd.ReadMapStart()
  30992. if canChange && v == nil {
  30993. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30994. v = make(map[int16]float32, xlen)
  30995. changed = true
  30996. }
  30997. if containerLen == 0 {
  30998. dd.ReadMapEnd()
  30999. return v, changed
  31000. }
  31001. var mk int16
  31002. var mv float32
  31003. hasLen := containerLen > 0
  31004. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31005. if esep {
  31006. dd.ReadMapElemKey()
  31007. }
  31008. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31009. if esep {
  31010. dd.ReadMapElemValue()
  31011. }
  31012. if dd.TryDecodeAsNil() {
  31013. if v == nil {
  31014. } else if d.h.DeleteOnNilMapValue {
  31015. delete(v, mk)
  31016. } else {
  31017. v[mk] = 0
  31018. }
  31019. continue
  31020. }
  31021. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  31022. if v != nil {
  31023. v[mk] = mv
  31024. }
  31025. }
  31026. dd.ReadMapEnd()
  31027. return v, changed
  31028. }
  31029. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  31030. if rv.Kind() == reflect.Ptr {
  31031. vp := rv2i(rv).(*map[int16]float64)
  31032. v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d)
  31033. if changed {
  31034. *vp = v
  31035. }
  31036. } else {
  31037. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  31038. }
  31039. }
  31040. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  31041. v, changed := f.DecMapInt16Float64V(*vp, true, d)
  31042. if changed {
  31043. *vp = v
  31044. }
  31045. }
  31046. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  31047. d *Decoder) (_ map[int16]float64, changed bool) {
  31048. dd, esep := d.d, d.hh.hasElemSeparators()
  31049. containerLen := dd.ReadMapStart()
  31050. if canChange && v == nil {
  31051. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31052. v = make(map[int16]float64, xlen)
  31053. changed = true
  31054. }
  31055. if containerLen == 0 {
  31056. dd.ReadMapEnd()
  31057. return v, changed
  31058. }
  31059. var mk int16
  31060. var mv float64
  31061. hasLen := containerLen > 0
  31062. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31063. if esep {
  31064. dd.ReadMapElemKey()
  31065. }
  31066. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31067. if esep {
  31068. dd.ReadMapElemValue()
  31069. }
  31070. if dd.TryDecodeAsNil() {
  31071. if v == nil {
  31072. } else if d.h.DeleteOnNilMapValue {
  31073. delete(v, mk)
  31074. } else {
  31075. v[mk] = 0
  31076. }
  31077. continue
  31078. }
  31079. mv = dd.DecodeFloat64()
  31080. if v != nil {
  31081. v[mk] = mv
  31082. }
  31083. }
  31084. dd.ReadMapEnd()
  31085. return v, changed
  31086. }
  31087. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  31088. if rv.Kind() == reflect.Ptr {
  31089. vp := rv2i(rv).(*map[int16]bool)
  31090. v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d)
  31091. if changed {
  31092. *vp = v
  31093. }
  31094. } else {
  31095. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  31096. }
  31097. }
  31098. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  31099. v, changed := f.DecMapInt16BoolV(*vp, true, d)
  31100. if changed {
  31101. *vp = v
  31102. }
  31103. }
  31104. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  31105. d *Decoder) (_ map[int16]bool, changed bool) {
  31106. dd, esep := d.d, d.hh.hasElemSeparators()
  31107. containerLen := dd.ReadMapStart()
  31108. if canChange && v == nil {
  31109. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31110. v = make(map[int16]bool, xlen)
  31111. changed = true
  31112. }
  31113. if containerLen == 0 {
  31114. dd.ReadMapEnd()
  31115. return v, changed
  31116. }
  31117. var mk int16
  31118. var mv bool
  31119. hasLen := containerLen > 0
  31120. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31121. if esep {
  31122. dd.ReadMapElemKey()
  31123. }
  31124. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31125. if esep {
  31126. dd.ReadMapElemValue()
  31127. }
  31128. if dd.TryDecodeAsNil() {
  31129. if v == nil {
  31130. } else if d.h.DeleteOnNilMapValue {
  31131. delete(v, mk)
  31132. } else {
  31133. v[mk] = false
  31134. }
  31135. continue
  31136. }
  31137. mv = dd.DecodeBool()
  31138. if v != nil {
  31139. v[mk] = mv
  31140. }
  31141. }
  31142. dd.ReadMapEnd()
  31143. return v, changed
  31144. }
  31145. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  31146. if rv.Kind() == reflect.Ptr {
  31147. vp := rv2i(rv).(*map[int32]interface{})
  31148. v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d)
  31149. if changed {
  31150. *vp = v
  31151. }
  31152. } else {
  31153. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  31154. }
  31155. }
  31156. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  31157. v, changed := f.DecMapInt32IntfV(*vp, true, d)
  31158. if changed {
  31159. *vp = v
  31160. }
  31161. }
  31162. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  31163. d *Decoder) (_ map[int32]interface{}, changed bool) {
  31164. dd, esep := d.d, d.hh.hasElemSeparators()
  31165. containerLen := dd.ReadMapStart()
  31166. if canChange && v == nil {
  31167. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  31168. v = make(map[int32]interface{}, xlen)
  31169. changed = true
  31170. }
  31171. if containerLen == 0 {
  31172. dd.ReadMapEnd()
  31173. return v, changed
  31174. }
  31175. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  31176. var mk int32
  31177. var mv interface{}
  31178. hasLen := containerLen > 0
  31179. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31180. if esep {
  31181. dd.ReadMapElemKey()
  31182. }
  31183. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31184. if esep {
  31185. dd.ReadMapElemValue()
  31186. }
  31187. if dd.TryDecodeAsNil() {
  31188. if v == nil {
  31189. } else if d.h.DeleteOnNilMapValue {
  31190. delete(v, mk)
  31191. } else {
  31192. v[mk] = nil
  31193. }
  31194. continue
  31195. }
  31196. if mapGet {
  31197. mv = v[mk]
  31198. } else {
  31199. mv = nil
  31200. }
  31201. d.decode(&mv)
  31202. if v != nil {
  31203. v[mk] = mv
  31204. }
  31205. }
  31206. dd.ReadMapEnd()
  31207. return v, changed
  31208. }
  31209. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  31210. if rv.Kind() == reflect.Ptr {
  31211. vp := rv2i(rv).(*map[int32]string)
  31212. v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d)
  31213. if changed {
  31214. *vp = v
  31215. }
  31216. } else {
  31217. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  31218. }
  31219. }
  31220. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  31221. v, changed := f.DecMapInt32StringV(*vp, true, d)
  31222. if changed {
  31223. *vp = v
  31224. }
  31225. }
  31226. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  31227. d *Decoder) (_ map[int32]string, changed bool) {
  31228. dd, esep := d.d, d.hh.hasElemSeparators()
  31229. containerLen := dd.ReadMapStart()
  31230. if canChange && v == nil {
  31231. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  31232. v = make(map[int32]string, xlen)
  31233. changed = true
  31234. }
  31235. if containerLen == 0 {
  31236. dd.ReadMapEnd()
  31237. return v, changed
  31238. }
  31239. var mk int32
  31240. var mv string
  31241. hasLen := containerLen > 0
  31242. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31243. if esep {
  31244. dd.ReadMapElemKey()
  31245. }
  31246. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31247. if esep {
  31248. dd.ReadMapElemValue()
  31249. }
  31250. if dd.TryDecodeAsNil() {
  31251. if v == nil {
  31252. } else if d.h.DeleteOnNilMapValue {
  31253. delete(v, mk)
  31254. } else {
  31255. v[mk] = ""
  31256. }
  31257. continue
  31258. }
  31259. mv = dd.DecodeString()
  31260. if v != nil {
  31261. v[mk] = mv
  31262. }
  31263. }
  31264. dd.ReadMapEnd()
  31265. return v, changed
  31266. }
  31267. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  31268. if rv.Kind() == reflect.Ptr {
  31269. vp := rv2i(rv).(*map[int32]uint)
  31270. v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d)
  31271. if changed {
  31272. *vp = v
  31273. }
  31274. } else {
  31275. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  31276. }
  31277. }
  31278. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  31279. v, changed := f.DecMapInt32UintV(*vp, true, d)
  31280. if changed {
  31281. *vp = v
  31282. }
  31283. }
  31284. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  31285. d *Decoder) (_ map[int32]uint, changed bool) {
  31286. dd, esep := d.d, d.hh.hasElemSeparators()
  31287. containerLen := dd.ReadMapStart()
  31288. if canChange && v == nil {
  31289. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31290. v = make(map[int32]uint, xlen)
  31291. changed = true
  31292. }
  31293. if containerLen == 0 {
  31294. dd.ReadMapEnd()
  31295. return v, changed
  31296. }
  31297. var mk int32
  31298. var mv uint
  31299. hasLen := containerLen > 0
  31300. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31301. if esep {
  31302. dd.ReadMapElemKey()
  31303. }
  31304. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31305. if esep {
  31306. dd.ReadMapElemValue()
  31307. }
  31308. if dd.TryDecodeAsNil() {
  31309. if v == nil {
  31310. } else if d.h.DeleteOnNilMapValue {
  31311. delete(v, mk)
  31312. } else {
  31313. v[mk] = 0
  31314. }
  31315. continue
  31316. }
  31317. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31318. if v != nil {
  31319. v[mk] = mv
  31320. }
  31321. }
  31322. dd.ReadMapEnd()
  31323. return v, changed
  31324. }
  31325. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  31326. if rv.Kind() == reflect.Ptr {
  31327. vp := rv2i(rv).(*map[int32]uint8)
  31328. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d)
  31329. if changed {
  31330. *vp = v
  31331. }
  31332. } else {
  31333. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  31334. }
  31335. }
  31336. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  31337. v, changed := f.DecMapInt32Uint8V(*vp, true, d)
  31338. if changed {
  31339. *vp = v
  31340. }
  31341. }
  31342. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  31343. d *Decoder) (_ map[int32]uint8, changed bool) {
  31344. dd, esep := d.d, d.hh.hasElemSeparators()
  31345. containerLen := dd.ReadMapStart()
  31346. if canChange && v == nil {
  31347. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31348. v = make(map[int32]uint8, xlen)
  31349. changed = true
  31350. }
  31351. if containerLen == 0 {
  31352. dd.ReadMapEnd()
  31353. return v, changed
  31354. }
  31355. var mk int32
  31356. var mv uint8
  31357. hasLen := containerLen > 0
  31358. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31359. if esep {
  31360. dd.ReadMapElemKey()
  31361. }
  31362. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31363. if esep {
  31364. dd.ReadMapElemValue()
  31365. }
  31366. if dd.TryDecodeAsNil() {
  31367. if v == nil {
  31368. } else if d.h.DeleteOnNilMapValue {
  31369. delete(v, mk)
  31370. } else {
  31371. v[mk] = 0
  31372. }
  31373. continue
  31374. }
  31375. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  31376. if v != nil {
  31377. v[mk] = mv
  31378. }
  31379. }
  31380. dd.ReadMapEnd()
  31381. return v, changed
  31382. }
  31383. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  31384. if rv.Kind() == reflect.Ptr {
  31385. vp := rv2i(rv).(*map[int32]uint16)
  31386. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d)
  31387. if changed {
  31388. *vp = v
  31389. }
  31390. } else {
  31391. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  31392. }
  31393. }
  31394. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  31395. v, changed := f.DecMapInt32Uint16V(*vp, true, d)
  31396. if changed {
  31397. *vp = v
  31398. }
  31399. }
  31400. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  31401. d *Decoder) (_ map[int32]uint16, changed bool) {
  31402. dd, esep := d.d, d.hh.hasElemSeparators()
  31403. containerLen := dd.ReadMapStart()
  31404. if canChange && v == nil {
  31405. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31406. v = make(map[int32]uint16, xlen)
  31407. changed = true
  31408. }
  31409. if containerLen == 0 {
  31410. dd.ReadMapEnd()
  31411. return v, changed
  31412. }
  31413. var mk int32
  31414. var mv uint16
  31415. hasLen := containerLen > 0
  31416. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31417. if esep {
  31418. dd.ReadMapElemKey()
  31419. }
  31420. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31421. if esep {
  31422. dd.ReadMapElemValue()
  31423. }
  31424. if dd.TryDecodeAsNil() {
  31425. if v == nil {
  31426. } else if d.h.DeleteOnNilMapValue {
  31427. delete(v, mk)
  31428. } else {
  31429. v[mk] = 0
  31430. }
  31431. continue
  31432. }
  31433. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  31434. if v != nil {
  31435. v[mk] = mv
  31436. }
  31437. }
  31438. dd.ReadMapEnd()
  31439. return v, changed
  31440. }
  31441. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  31442. if rv.Kind() == reflect.Ptr {
  31443. vp := rv2i(rv).(*map[int32]uint32)
  31444. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d)
  31445. if changed {
  31446. *vp = v
  31447. }
  31448. } else {
  31449. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  31450. }
  31451. }
  31452. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  31453. v, changed := f.DecMapInt32Uint32V(*vp, true, d)
  31454. if changed {
  31455. *vp = v
  31456. }
  31457. }
  31458. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  31459. d *Decoder) (_ map[int32]uint32, changed bool) {
  31460. dd, esep := d.d, d.hh.hasElemSeparators()
  31461. containerLen := dd.ReadMapStart()
  31462. if canChange && v == nil {
  31463. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  31464. v = make(map[int32]uint32, xlen)
  31465. changed = true
  31466. }
  31467. if containerLen == 0 {
  31468. dd.ReadMapEnd()
  31469. return v, changed
  31470. }
  31471. var mk int32
  31472. var mv uint32
  31473. hasLen := containerLen > 0
  31474. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31475. if esep {
  31476. dd.ReadMapElemKey()
  31477. }
  31478. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31479. if esep {
  31480. dd.ReadMapElemValue()
  31481. }
  31482. if dd.TryDecodeAsNil() {
  31483. if v == nil {
  31484. } else if d.h.DeleteOnNilMapValue {
  31485. delete(v, mk)
  31486. } else {
  31487. v[mk] = 0
  31488. }
  31489. continue
  31490. }
  31491. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  31492. if v != nil {
  31493. v[mk] = mv
  31494. }
  31495. }
  31496. dd.ReadMapEnd()
  31497. return v, changed
  31498. }
  31499. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  31500. if rv.Kind() == reflect.Ptr {
  31501. vp := rv2i(rv).(*map[int32]uint64)
  31502. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d)
  31503. if changed {
  31504. *vp = v
  31505. }
  31506. } else {
  31507. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  31508. }
  31509. }
  31510. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  31511. v, changed := f.DecMapInt32Uint64V(*vp, true, d)
  31512. if changed {
  31513. *vp = v
  31514. }
  31515. }
  31516. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  31517. d *Decoder) (_ map[int32]uint64, changed bool) {
  31518. dd, esep := d.d, d.hh.hasElemSeparators()
  31519. containerLen := dd.ReadMapStart()
  31520. if canChange && v == nil {
  31521. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31522. v = make(map[int32]uint64, xlen)
  31523. changed = true
  31524. }
  31525. if containerLen == 0 {
  31526. dd.ReadMapEnd()
  31527. return v, changed
  31528. }
  31529. var mk int32
  31530. var mv uint64
  31531. hasLen := containerLen > 0
  31532. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31533. if esep {
  31534. dd.ReadMapElemKey()
  31535. }
  31536. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31537. if esep {
  31538. dd.ReadMapElemValue()
  31539. }
  31540. if dd.TryDecodeAsNil() {
  31541. if v == nil {
  31542. } else if d.h.DeleteOnNilMapValue {
  31543. delete(v, mk)
  31544. } else {
  31545. v[mk] = 0
  31546. }
  31547. continue
  31548. }
  31549. mv = dd.DecodeUint64()
  31550. if v != nil {
  31551. v[mk] = mv
  31552. }
  31553. }
  31554. dd.ReadMapEnd()
  31555. return v, changed
  31556. }
  31557. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  31558. if rv.Kind() == reflect.Ptr {
  31559. vp := rv2i(rv).(*map[int32]uintptr)
  31560. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d)
  31561. if changed {
  31562. *vp = v
  31563. }
  31564. } else {
  31565. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  31566. }
  31567. }
  31568. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  31569. v, changed := f.DecMapInt32UintptrV(*vp, true, d)
  31570. if changed {
  31571. *vp = v
  31572. }
  31573. }
  31574. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  31575. d *Decoder) (_ map[int32]uintptr, changed bool) {
  31576. dd, esep := d.d, d.hh.hasElemSeparators()
  31577. containerLen := dd.ReadMapStart()
  31578. if canChange && v == nil {
  31579. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31580. v = make(map[int32]uintptr, xlen)
  31581. changed = true
  31582. }
  31583. if containerLen == 0 {
  31584. dd.ReadMapEnd()
  31585. return v, changed
  31586. }
  31587. var mk int32
  31588. var mv uintptr
  31589. hasLen := containerLen > 0
  31590. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31591. if esep {
  31592. dd.ReadMapElemKey()
  31593. }
  31594. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31595. if esep {
  31596. dd.ReadMapElemValue()
  31597. }
  31598. if dd.TryDecodeAsNil() {
  31599. if v == nil {
  31600. } else if d.h.DeleteOnNilMapValue {
  31601. delete(v, mk)
  31602. } else {
  31603. v[mk] = 0
  31604. }
  31605. continue
  31606. }
  31607. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31608. if v != nil {
  31609. v[mk] = mv
  31610. }
  31611. }
  31612. dd.ReadMapEnd()
  31613. return v, changed
  31614. }
  31615. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  31616. if rv.Kind() == reflect.Ptr {
  31617. vp := rv2i(rv).(*map[int32]int)
  31618. v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d)
  31619. if changed {
  31620. *vp = v
  31621. }
  31622. } else {
  31623. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  31624. }
  31625. }
  31626. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  31627. v, changed := f.DecMapInt32IntV(*vp, true, d)
  31628. if changed {
  31629. *vp = v
  31630. }
  31631. }
  31632. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  31633. d *Decoder) (_ map[int32]int, changed bool) {
  31634. dd, esep := d.d, d.hh.hasElemSeparators()
  31635. containerLen := dd.ReadMapStart()
  31636. if canChange && v == nil {
  31637. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31638. v = make(map[int32]int, xlen)
  31639. changed = true
  31640. }
  31641. if containerLen == 0 {
  31642. dd.ReadMapEnd()
  31643. return v, changed
  31644. }
  31645. var mk int32
  31646. var mv int
  31647. hasLen := containerLen > 0
  31648. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31649. if esep {
  31650. dd.ReadMapElemKey()
  31651. }
  31652. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31653. if esep {
  31654. dd.ReadMapElemValue()
  31655. }
  31656. if dd.TryDecodeAsNil() {
  31657. if v == nil {
  31658. } else if d.h.DeleteOnNilMapValue {
  31659. delete(v, mk)
  31660. } else {
  31661. v[mk] = 0
  31662. }
  31663. continue
  31664. }
  31665. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  31666. if v != nil {
  31667. v[mk] = mv
  31668. }
  31669. }
  31670. dd.ReadMapEnd()
  31671. return v, changed
  31672. }
  31673. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  31674. if rv.Kind() == reflect.Ptr {
  31675. vp := rv2i(rv).(*map[int32]int8)
  31676. v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d)
  31677. if changed {
  31678. *vp = v
  31679. }
  31680. } else {
  31681. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  31682. }
  31683. }
  31684. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  31685. v, changed := f.DecMapInt32Int8V(*vp, true, d)
  31686. if changed {
  31687. *vp = v
  31688. }
  31689. }
  31690. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  31691. d *Decoder) (_ map[int32]int8, changed bool) {
  31692. dd, esep := d.d, d.hh.hasElemSeparators()
  31693. containerLen := dd.ReadMapStart()
  31694. if canChange && v == nil {
  31695. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31696. v = make(map[int32]int8, xlen)
  31697. changed = true
  31698. }
  31699. if containerLen == 0 {
  31700. dd.ReadMapEnd()
  31701. return v, changed
  31702. }
  31703. var mk int32
  31704. var mv int8
  31705. hasLen := containerLen > 0
  31706. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31707. if esep {
  31708. dd.ReadMapElemKey()
  31709. }
  31710. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31711. if esep {
  31712. dd.ReadMapElemValue()
  31713. }
  31714. if dd.TryDecodeAsNil() {
  31715. if v == nil {
  31716. } else if d.h.DeleteOnNilMapValue {
  31717. delete(v, mk)
  31718. } else {
  31719. v[mk] = 0
  31720. }
  31721. continue
  31722. }
  31723. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  31724. if v != nil {
  31725. v[mk] = mv
  31726. }
  31727. }
  31728. dd.ReadMapEnd()
  31729. return v, changed
  31730. }
  31731. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  31732. if rv.Kind() == reflect.Ptr {
  31733. vp := rv2i(rv).(*map[int32]int16)
  31734. v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d)
  31735. if changed {
  31736. *vp = v
  31737. }
  31738. } else {
  31739. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  31740. }
  31741. }
  31742. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  31743. v, changed := f.DecMapInt32Int16V(*vp, true, d)
  31744. if changed {
  31745. *vp = v
  31746. }
  31747. }
  31748. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  31749. d *Decoder) (_ map[int32]int16, changed bool) {
  31750. dd, esep := d.d, d.hh.hasElemSeparators()
  31751. containerLen := dd.ReadMapStart()
  31752. if canChange && v == nil {
  31753. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31754. v = make(map[int32]int16, xlen)
  31755. changed = true
  31756. }
  31757. if containerLen == 0 {
  31758. dd.ReadMapEnd()
  31759. return v, changed
  31760. }
  31761. var mk int32
  31762. var mv int16
  31763. hasLen := containerLen > 0
  31764. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31765. if esep {
  31766. dd.ReadMapElemKey()
  31767. }
  31768. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31769. if esep {
  31770. dd.ReadMapElemValue()
  31771. }
  31772. if dd.TryDecodeAsNil() {
  31773. if v == nil {
  31774. } else if d.h.DeleteOnNilMapValue {
  31775. delete(v, mk)
  31776. } else {
  31777. v[mk] = 0
  31778. }
  31779. continue
  31780. }
  31781. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31782. if v != nil {
  31783. v[mk] = mv
  31784. }
  31785. }
  31786. dd.ReadMapEnd()
  31787. return v, changed
  31788. }
  31789. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  31790. if rv.Kind() == reflect.Ptr {
  31791. vp := rv2i(rv).(*map[int32]int32)
  31792. v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d)
  31793. if changed {
  31794. *vp = v
  31795. }
  31796. } else {
  31797. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  31798. }
  31799. }
  31800. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  31801. v, changed := f.DecMapInt32Int32V(*vp, true, d)
  31802. if changed {
  31803. *vp = v
  31804. }
  31805. }
  31806. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  31807. d *Decoder) (_ map[int32]int32, changed bool) {
  31808. dd, esep := d.d, d.hh.hasElemSeparators()
  31809. containerLen := dd.ReadMapStart()
  31810. if canChange && v == nil {
  31811. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  31812. v = make(map[int32]int32, xlen)
  31813. changed = true
  31814. }
  31815. if containerLen == 0 {
  31816. dd.ReadMapEnd()
  31817. return v, changed
  31818. }
  31819. var mk int32
  31820. var mv int32
  31821. hasLen := containerLen > 0
  31822. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31823. if esep {
  31824. dd.ReadMapElemKey()
  31825. }
  31826. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31827. if esep {
  31828. dd.ReadMapElemValue()
  31829. }
  31830. if dd.TryDecodeAsNil() {
  31831. if v == nil {
  31832. } else if d.h.DeleteOnNilMapValue {
  31833. delete(v, mk)
  31834. } else {
  31835. v[mk] = 0
  31836. }
  31837. continue
  31838. }
  31839. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31840. if v != nil {
  31841. v[mk] = mv
  31842. }
  31843. }
  31844. dd.ReadMapEnd()
  31845. return v, changed
  31846. }
  31847. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  31848. if rv.Kind() == reflect.Ptr {
  31849. vp := rv2i(rv).(*map[int32]int64)
  31850. v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d)
  31851. if changed {
  31852. *vp = v
  31853. }
  31854. } else {
  31855. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  31856. }
  31857. }
  31858. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  31859. v, changed := f.DecMapInt32Int64V(*vp, true, d)
  31860. if changed {
  31861. *vp = v
  31862. }
  31863. }
  31864. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  31865. d *Decoder) (_ map[int32]int64, changed bool) {
  31866. dd, esep := d.d, d.hh.hasElemSeparators()
  31867. containerLen := dd.ReadMapStart()
  31868. if canChange && v == nil {
  31869. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31870. v = make(map[int32]int64, xlen)
  31871. changed = true
  31872. }
  31873. if containerLen == 0 {
  31874. dd.ReadMapEnd()
  31875. return v, changed
  31876. }
  31877. var mk int32
  31878. var mv int64
  31879. hasLen := containerLen > 0
  31880. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31881. if esep {
  31882. dd.ReadMapElemKey()
  31883. }
  31884. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31885. if esep {
  31886. dd.ReadMapElemValue()
  31887. }
  31888. if dd.TryDecodeAsNil() {
  31889. if v == nil {
  31890. } else if d.h.DeleteOnNilMapValue {
  31891. delete(v, mk)
  31892. } else {
  31893. v[mk] = 0
  31894. }
  31895. continue
  31896. }
  31897. mv = dd.DecodeInt64()
  31898. if v != nil {
  31899. v[mk] = mv
  31900. }
  31901. }
  31902. dd.ReadMapEnd()
  31903. return v, changed
  31904. }
  31905. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  31906. if rv.Kind() == reflect.Ptr {
  31907. vp := rv2i(rv).(*map[int32]float32)
  31908. v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d)
  31909. if changed {
  31910. *vp = v
  31911. }
  31912. } else {
  31913. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  31914. }
  31915. }
  31916. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  31917. v, changed := f.DecMapInt32Float32V(*vp, true, d)
  31918. if changed {
  31919. *vp = v
  31920. }
  31921. }
  31922. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  31923. d *Decoder) (_ map[int32]float32, changed bool) {
  31924. dd, esep := d.d, d.hh.hasElemSeparators()
  31925. containerLen := dd.ReadMapStart()
  31926. if canChange && v == nil {
  31927. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  31928. v = make(map[int32]float32, xlen)
  31929. changed = true
  31930. }
  31931. if containerLen == 0 {
  31932. dd.ReadMapEnd()
  31933. return v, changed
  31934. }
  31935. var mk int32
  31936. var mv float32
  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 = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  31956. if v != nil {
  31957. v[mk] = mv
  31958. }
  31959. }
  31960. dd.ReadMapEnd()
  31961. return v, changed
  31962. }
  31963. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  31964. if rv.Kind() == reflect.Ptr {
  31965. vp := rv2i(rv).(*map[int32]float64)
  31966. v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d)
  31967. if changed {
  31968. *vp = v
  31969. }
  31970. } else {
  31971. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  31972. }
  31973. }
  31974. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  31975. v, changed := f.DecMapInt32Float64V(*vp, true, d)
  31976. if changed {
  31977. *vp = v
  31978. }
  31979. }
  31980. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  31981. d *Decoder) (_ map[int32]float64, changed bool) {
  31982. dd, esep := d.d, d.hh.hasElemSeparators()
  31983. containerLen := dd.ReadMapStart()
  31984. if canChange && v == nil {
  31985. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31986. v = make(map[int32]float64, xlen)
  31987. changed = true
  31988. }
  31989. if containerLen == 0 {
  31990. dd.ReadMapEnd()
  31991. return v, changed
  31992. }
  31993. var mk int32
  31994. var mv float64
  31995. hasLen := containerLen > 0
  31996. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31997. if esep {
  31998. dd.ReadMapElemKey()
  31999. }
  32000. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32001. if esep {
  32002. dd.ReadMapElemValue()
  32003. }
  32004. if dd.TryDecodeAsNil() {
  32005. if v == nil {
  32006. } else if d.h.DeleteOnNilMapValue {
  32007. delete(v, mk)
  32008. } else {
  32009. v[mk] = 0
  32010. }
  32011. continue
  32012. }
  32013. mv = dd.DecodeFloat64()
  32014. if v != nil {
  32015. v[mk] = mv
  32016. }
  32017. }
  32018. dd.ReadMapEnd()
  32019. return v, changed
  32020. }
  32021. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  32022. if rv.Kind() == reflect.Ptr {
  32023. vp := rv2i(rv).(*map[int32]bool)
  32024. v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d)
  32025. if changed {
  32026. *vp = v
  32027. }
  32028. } else {
  32029. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  32030. }
  32031. }
  32032. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  32033. v, changed := f.DecMapInt32BoolV(*vp, true, d)
  32034. if changed {
  32035. *vp = v
  32036. }
  32037. }
  32038. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  32039. d *Decoder) (_ map[int32]bool, changed bool) {
  32040. dd, esep := d.d, d.hh.hasElemSeparators()
  32041. containerLen := dd.ReadMapStart()
  32042. if canChange && v == nil {
  32043. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32044. v = make(map[int32]bool, xlen)
  32045. changed = true
  32046. }
  32047. if containerLen == 0 {
  32048. dd.ReadMapEnd()
  32049. return v, changed
  32050. }
  32051. var mk int32
  32052. var mv bool
  32053. hasLen := containerLen > 0
  32054. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32055. if esep {
  32056. dd.ReadMapElemKey()
  32057. }
  32058. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32059. if esep {
  32060. dd.ReadMapElemValue()
  32061. }
  32062. if dd.TryDecodeAsNil() {
  32063. if v == nil {
  32064. } else if d.h.DeleteOnNilMapValue {
  32065. delete(v, mk)
  32066. } else {
  32067. v[mk] = false
  32068. }
  32069. continue
  32070. }
  32071. mv = dd.DecodeBool()
  32072. if v != nil {
  32073. v[mk] = mv
  32074. }
  32075. }
  32076. dd.ReadMapEnd()
  32077. return v, changed
  32078. }
  32079. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  32080. if rv.Kind() == reflect.Ptr {
  32081. vp := rv2i(rv).(*map[int64]interface{})
  32082. v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d)
  32083. if changed {
  32084. *vp = v
  32085. }
  32086. } else {
  32087. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  32088. }
  32089. }
  32090. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  32091. v, changed := f.DecMapInt64IntfV(*vp, true, d)
  32092. if changed {
  32093. *vp = v
  32094. }
  32095. }
  32096. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  32097. d *Decoder) (_ map[int64]interface{}, changed bool) {
  32098. dd, esep := d.d, d.hh.hasElemSeparators()
  32099. containerLen := dd.ReadMapStart()
  32100. if canChange && v == nil {
  32101. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  32102. v = make(map[int64]interface{}, xlen)
  32103. changed = true
  32104. }
  32105. if containerLen == 0 {
  32106. dd.ReadMapEnd()
  32107. return v, changed
  32108. }
  32109. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  32110. var mk int64
  32111. var mv interface{}
  32112. hasLen := containerLen > 0
  32113. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32114. if esep {
  32115. dd.ReadMapElemKey()
  32116. }
  32117. mk = dd.DecodeInt64()
  32118. if esep {
  32119. dd.ReadMapElemValue()
  32120. }
  32121. if dd.TryDecodeAsNil() {
  32122. if v == nil {
  32123. } else if d.h.DeleteOnNilMapValue {
  32124. delete(v, mk)
  32125. } else {
  32126. v[mk] = nil
  32127. }
  32128. continue
  32129. }
  32130. if mapGet {
  32131. mv = v[mk]
  32132. } else {
  32133. mv = nil
  32134. }
  32135. d.decode(&mv)
  32136. if v != nil {
  32137. v[mk] = mv
  32138. }
  32139. }
  32140. dd.ReadMapEnd()
  32141. return v, changed
  32142. }
  32143. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  32144. if rv.Kind() == reflect.Ptr {
  32145. vp := rv2i(rv).(*map[int64]string)
  32146. v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d)
  32147. if changed {
  32148. *vp = v
  32149. }
  32150. } else {
  32151. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  32152. }
  32153. }
  32154. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  32155. v, changed := f.DecMapInt64StringV(*vp, true, d)
  32156. if changed {
  32157. *vp = v
  32158. }
  32159. }
  32160. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  32161. d *Decoder) (_ map[int64]string, changed bool) {
  32162. dd, esep := d.d, d.hh.hasElemSeparators()
  32163. containerLen := dd.ReadMapStart()
  32164. if canChange && v == nil {
  32165. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  32166. v = make(map[int64]string, xlen)
  32167. changed = true
  32168. }
  32169. if containerLen == 0 {
  32170. dd.ReadMapEnd()
  32171. return v, changed
  32172. }
  32173. var mk int64
  32174. var mv string
  32175. hasLen := containerLen > 0
  32176. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32177. if esep {
  32178. dd.ReadMapElemKey()
  32179. }
  32180. mk = dd.DecodeInt64()
  32181. if esep {
  32182. dd.ReadMapElemValue()
  32183. }
  32184. if dd.TryDecodeAsNil() {
  32185. if v == nil {
  32186. } else if d.h.DeleteOnNilMapValue {
  32187. delete(v, mk)
  32188. } else {
  32189. v[mk] = ""
  32190. }
  32191. continue
  32192. }
  32193. mv = dd.DecodeString()
  32194. if v != nil {
  32195. v[mk] = mv
  32196. }
  32197. }
  32198. dd.ReadMapEnd()
  32199. return v, changed
  32200. }
  32201. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  32202. if rv.Kind() == reflect.Ptr {
  32203. vp := rv2i(rv).(*map[int64]uint)
  32204. v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d)
  32205. if changed {
  32206. *vp = v
  32207. }
  32208. } else {
  32209. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  32210. }
  32211. }
  32212. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  32213. v, changed := f.DecMapInt64UintV(*vp, true, d)
  32214. if changed {
  32215. *vp = v
  32216. }
  32217. }
  32218. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  32219. d *Decoder) (_ map[int64]uint, changed bool) {
  32220. dd, esep := d.d, d.hh.hasElemSeparators()
  32221. containerLen := dd.ReadMapStart()
  32222. if canChange && v == nil {
  32223. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32224. v = make(map[int64]uint, xlen)
  32225. changed = true
  32226. }
  32227. if containerLen == 0 {
  32228. dd.ReadMapEnd()
  32229. return v, changed
  32230. }
  32231. var mk int64
  32232. var mv uint
  32233. hasLen := containerLen > 0
  32234. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32235. if esep {
  32236. dd.ReadMapElemKey()
  32237. }
  32238. mk = dd.DecodeInt64()
  32239. if esep {
  32240. dd.ReadMapElemValue()
  32241. }
  32242. if dd.TryDecodeAsNil() {
  32243. if v == nil {
  32244. } else if d.h.DeleteOnNilMapValue {
  32245. delete(v, mk)
  32246. } else {
  32247. v[mk] = 0
  32248. }
  32249. continue
  32250. }
  32251. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32252. if v != nil {
  32253. v[mk] = mv
  32254. }
  32255. }
  32256. dd.ReadMapEnd()
  32257. return v, changed
  32258. }
  32259. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  32260. if rv.Kind() == reflect.Ptr {
  32261. vp := rv2i(rv).(*map[int64]uint8)
  32262. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d)
  32263. if changed {
  32264. *vp = v
  32265. }
  32266. } else {
  32267. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  32268. }
  32269. }
  32270. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  32271. v, changed := f.DecMapInt64Uint8V(*vp, true, d)
  32272. if changed {
  32273. *vp = v
  32274. }
  32275. }
  32276. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  32277. d *Decoder) (_ map[int64]uint8, changed bool) {
  32278. dd, esep := d.d, d.hh.hasElemSeparators()
  32279. containerLen := dd.ReadMapStart()
  32280. if canChange && v == nil {
  32281. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32282. v = make(map[int64]uint8, xlen)
  32283. changed = true
  32284. }
  32285. if containerLen == 0 {
  32286. dd.ReadMapEnd()
  32287. return v, changed
  32288. }
  32289. var mk int64
  32290. var mv uint8
  32291. hasLen := containerLen > 0
  32292. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32293. if esep {
  32294. dd.ReadMapElemKey()
  32295. }
  32296. mk = dd.DecodeInt64()
  32297. if esep {
  32298. dd.ReadMapElemValue()
  32299. }
  32300. if dd.TryDecodeAsNil() {
  32301. if v == nil {
  32302. } else if d.h.DeleteOnNilMapValue {
  32303. delete(v, mk)
  32304. } else {
  32305. v[mk] = 0
  32306. }
  32307. continue
  32308. }
  32309. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  32310. if v != nil {
  32311. v[mk] = mv
  32312. }
  32313. }
  32314. dd.ReadMapEnd()
  32315. return v, changed
  32316. }
  32317. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  32318. if rv.Kind() == reflect.Ptr {
  32319. vp := rv2i(rv).(*map[int64]uint16)
  32320. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d)
  32321. if changed {
  32322. *vp = v
  32323. }
  32324. } else {
  32325. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  32326. }
  32327. }
  32328. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  32329. v, changed := f.DecMapInt64Uint16V(*vp, true, d)
  32330. if changed {
  32331. *vp = v
  32332. }
  32333. }
  32334. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  32335. d *Decoder) (_ map[int64]uint16, changed bool) {
  32336. dd, esep := d.d, d.hh.hasElemSeparators()
  32337. containerLen := dd.ReadMapStart()
  32338. if canChange && v == nil {
  32339. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32340. v = make(map[int64]uint16, xlen)
  32341. changed = true
  32342. }
  32343. if containerLen == 0 {
  32344. dd.ReadMapEnd()
  32345. return v, changed
  32346. }
  32347. var mk int64
  32348. var mv uint16
  32349. hasLen := containerLen > 0
  32350. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32351. if esep {
  32352. dd.ReadMapElemKey()
  32353. }
  32354. mk = dd.DecodeInt64()
  32355. if esep {
  32356. dd.ReadMapElemValue()
  32357. }
  32358. if dd.TryDecodeAsNil() {
  32359. if v == nil {
  32360. } else if d.h.DeleteOnNilMapValue {
  32361. delete(v, mk)
  32362. } else {
  32363. v[mk] = 0
  32364. }
  32365. continue
  32366. }
  32367. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  32368. if v != nil {
  32369. v[mk] = mv
  32370. }
  32371. }
  32372. dd.ReadMapEnd()
  32373. return v, changed
  32374. }
  32375. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  32376. if rv.Kind() == reflect.Ptr {
  32377. vp := rv2i(rv).(*map[int64]uint32)
  32378. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d)
  32379. if changed {
  32380. *vp = v
  32381. }
  32382. } else {
  32383. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  32384. }
  32385. }
  32386. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  32387. v, changed := f.DecMapInt64Uint32V(*vp, true, d)
  32388. if changed {
  32389. *vp = v
  32390. }
  32391. }
  32392. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  32393. d *Decoder) (_ map[int64]uint32, changed bool) {
  32394. dd, esep := d.d, d.hh.hasElemSeparators()
  32395. containerLen := dd.ReadMapStart()
  32396. if canChange && v == nil {
  32397. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32398. v = make(map[int64]uint32, xlen)
  32399. changed = true
  32400. }
  32401. if containerLen == 0 {
  32402. dd.ReadMapEnd()
  32403. return v, changed
  32404. }
  32405. var mk int64
  32406. var mv uint32
  32407. hasLen := containerLen > 0
  32408. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32409. if esep {
  32410. dd.ReadMapElemKey()
  32411. }
  32412. mk = dd.DecodeInt64()
  32413. if esep {
  32414. dd.ReadMapElemValue()
  32415. }
  32416. if dd.TryDecodeAsNil() {
  32417. if v == nil {
  32418. } else if d.h.DeleteOnNilMapValue {
  32419. delete(v, mk)
  32420. } else {
  32421. v[mk] = 0
  32422. }
  32423. continue
  32424. }
  32425. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  32426. if v != nil {
  32427. v[mk] = mv
  32428. }
  32429. }
  32430. dd.ReadMapEnd()
  32431. return v, changed
  32432. }
  32433. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  32434. if rv.Kind() == reflect.Ptr {
  32435. vp := rv2i(rv).(*map[int64]uint64)
  32436. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d)
  32437. if changed {
  32438. *vp = v
  32439. }
  32440. } else {
  32441. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  32442. }
  32443. }
  32444. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  32445. v, changed := f.DecMapInt64Uint64V(*vp, true, d)
  32446. if changed {
  32447. *vp = v
  32448. }
  32449. }
  32450. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  32451. d *Decoder) (_ map[int64]uint64, changed bool) {
  32452. dd, esep := d.d, d.hh.hasElemSeparators()
  32453. containerLen := dd.ReadMapStart()
  32454. if canChange && v == nil {
  32455. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32456. v = make(map[int64]uint64, xlen)
  32457. changed = true
  32458. }
  32459. if containerLen == 0 {
  32460. dd.ReadMapEnd()
  32461. return v, changed
  32462. }
  32463. var mk int64
  32464. var mv uint64
  32465. hasLen := containerLen > 0
  32466. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32467. if esep {
  32468. dd.ReadMapElemKey()
  32469. }
  32470. mk = dd.DecodeInt64()
  32471. if esep {
  32472. dd.ReadMapElemValue()
  32473. }
  32474. if dd.TryDecodeAsNil() {
  32475. if v == nil {
  32476. } else if d.h.DeleteOnNilMapValue {
  32477. delete(v, mk)
  32478. } else {
  32479. v[mk] = 0
  32480. }
  32481. continue
  32482. }
  32483. mv = dd.DecodeUint64()
  32484. if v != nil {
  32485. v[mk] = mv
  32486. }
  32487. }
  32488. dd.ReadMapEnd()
  32489. return v, changed
  32490. }
  32491. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  32492. if rv.Kind() == reflect.Ptr {
  32493. vp := rv2i(rv).(*map[int64]uintptr)
  32494. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d)
  32495. if changed {
  32496. *vp = v
  32497. }
  32498. } else {
  32499. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  32500. }
  32501. }
  32502. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  32503. v, changed := f.DecMapInt64UintptrV(*vp, true, d)
  32504. if changed {
  32505. *vp = v
  32506. }
  32507. }
  32508. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  32509. d *Decoder) (_ map[int64]uintptr, changed bool) {
  32510. dd, esep := d.d, d.hh.hasElemSeparators()
  32511. containerLen := dd.ReadMapStart()
  32512. if canChange && v == nil {
  32513. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32514. v = make(map[int64]uintptr, xlen)
  32515. changed = true
  32516. }
  32517. if containerLen == 0 {
  32518. dd.ReadMapEnd()
  32519. return v, changed
  32520. }
  32521. var mk int64
  32522. var mv uintptr
  32523. hasLen := containerLen > 0
  32524. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32525. if esep {
  32526. dd.ReadMapElemKey()
  32527. }
  32528. mk = dd.DecodeInt64()
  32529. if esep {
  32530. dd.ReadMapElemValue()
  32531. }
  32532. if dd.TryDecodeAsNil() {
  32533. if v == nil {
  32534. } else if d.h.DeleteOnNilMapValue {
  32535. delete(v, mk)
  32536. } else {
  32537. v[mk] = 0
  32538. }
  32539. continue
  32540. }
  32541. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32542. if v != nil {
  32543. v[mk] = mv
  32544. }
  32545. }
  32546. dd.ReadMapEnd()
  32547. return v, changed
  32548. }
  32549. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  32550. if rv.Kind() == reflect.Ptr {
  32551. vp := rv2i(rv).(*map[int64]int)
  32552. v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d)
  32553. if changed {
  32554. *vp = v
  32555. }
  32556. } else {
  32557. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  32558. }
  32559. }
  32560. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  32561. v, changed := f.DecMapInt64IntV(*vp, true, d)
  32562. if changed {
  32563. *vp = v
  32564. }
  32565. }
  32566. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  32567. d *Decoder) (_ map[int64]int, changed bool) {
  32568. dd, esep := d.d, d.hh.hasElemSeparators()
  32569. containerLen := dd.ReadMapStart()
  32570. if canChange && v == nil {
  32571. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32572. v = make(map[int64]int, xlen)
  32573. changed = true
  32574. }
  32575. if containerLen == 0 {
  32576. dd.ReadMapEnd()
  32577. return v, changed
  32578. }
  32579. var mk int64
  32580. var mv int
  32581. hasLen := containerLen > 0
  32582. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32583. if esep {
  32584. dd.ReadMapElemKey()
  32585. }
  32586. mk = dd.DecodeInt64()
  32587. if esep {
  32588. dd.ReadMapElemValue()
  32589. }
  32590. if dd.TryDecodeAsNil() {
  32591. if v == nil {
  32592. } else if d.h.DeleteOnNilMapValue {
  32593. delete(v, mk)
  32594. } else {
  32595. v[mk] = 0
  32596. }
  32597. continue
  32598. }
  32599. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  32600. if v != nil {
  32601. v[mk] = mv
  32602. }
  32603. }
  32604. dd.ReadMapEnd()
  32605. return v, changed
  32606. }
  32607. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  32608. if rv.Kind() == reflect.Ptr {
  32609. vp := rv2i(rv).(*map[int64]int8)
  32610. v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d)
  32611. if changed {
  32612. *vp = v
  32613. }
  32614. } else {
  32615. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  32616. }
  32617. }
  32618. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  32619. v, changed := f.DecMapInt64Int8V(*vp, true, d)
  32620. if changed {
  32621. *vp = v
  32622. }
  32623. }
  32624. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  32625. d *Decoder) (_ map[int64]int8, changed bool) {
  32626. dd, esep := d.d, d.hh.hasElemSeparators()
  32627. containerLen := dd.ReadMapStart()
  32628. if canChange && v == nil {
  32629. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32630. v = make(map[int64]int8, xlen)
  32631. changed = true
  32632. }
  32633. if containerLen == 0 {
  32634. dd.ReadMapEnd()
  32635. return v, changed
  32636. }
  32637. var mk int64
  32638. var mv int8
  32639. hasLen := containerLen > 0
  32640. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32641. if esep {
  32642. dd.ReadMapElemKey()
  32643. }
  32644. mk = dd.DecodeInt64()
  32645. if esep {
  32646. dd.ReadMapElemValue()
  32647. }
  32648. if dd.TryDecodeAsNil() {
  32649. if v == nil {
  32650. } else if d.h.DeleteOnNilMapValue {
  32651. delete(v, mk)
  32652. } else {
  32653. v[mk] = 0
  32654. }
  32655. continue
  32656. }
  32657. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  32658. if v != nil {
  32659. v[mk] = mv
  32660. }
  32661. }
  32662. dd.ReadMapEnd()
  32663. return v, changed
  32664. }
  32665. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  32666. if rv.Kind() == reflect.Ptr {
  32667. vp := rv2i(rv).(*map[int64]int16)
  32668. v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d)
  32669. if changed {
  32670. *vp = v
  32671. }
  32672. } else {
  32673. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  32674. }
  32675. }
  32676. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  32677. v, changed := f.DecMapInt64Int16V(*vp, true, d)
  32678. if changed {
  32679. *vp = v
  32680. }
  32681. }
  32682. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  32683. d *Decoder) (_ map[int64]int16, changed bool) {
  32684. dd, esep := d.d, d.hh.hasElemSeparators()
  32685. containerLen := dd.ReadMapStart()
  32686. if canChange && v == nil {
  32687. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32688. v = make(map[int64]int16, xlen)
  32689. changed = true
  32690. }
  32691. if containerLen == 0 {
  32692. dd.ReadMapEnd()
  32693. return v, changed
  32694. }
  32695. var mk int64
  32696. var mv int16
  32697. hasLen := containerLen > 0
  32698. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32699. if esep {
  32700. dd.ReadMapElemKey()
  32701. }
  32702. mk = dd.DecodeInt64()
  32703. if esep {
  32704. dd.ReadMapElemValue()
  32705. }
  32706. if dd.TryDecodeAsNil() {
  32707. if v == nil {
  32708. } else if d.h.DeleteOnNilMapValue {
  32709. delete(v, mk)
  32710. } else {
  32711. v[mk] = 0
  32712. }
  32713. continue
  32714. }
  32715. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  32716. if v != nil {
  32717. v[mk] = mv
  32718. }
  32719. }
  32720. dd.ReadMapEnd()
  32721. return v, changed
  32722. }
  32723. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  32724. if rv.Kind() == reflect.Ptr {
  32725. vp := rv2i(rv).(*map[int64]int32)
  32726. v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d)
  32727. if changed {
  32728. *vp = v
  32729. }
  32730. } else {
  32731. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  32732. }
  32733. }
  32734. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  32735. v, changed := f.DecMapInt64Int32V(*vp, true, d)
  32736. if changed {
  32737. *vp = v
  32738. }
  32739. }
  32740. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  32741. d *Decoder) (_ map[int64]int32, changed bool) {
  32742. dd, esep := d.d, d.hh.hasElemSeparators()
  32743. containerLen := dd.ReadMapStart()
  32744. if canChange && v == nil {
  32745. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32746. v = make(map[int64]int32, xlen)
  32747. changed = true
  32748. }
  32749. if containerLen == 0 {
  32750. dd.ReadMapEnd()
  32751. return v, changed
  32752. }
  32753. var mk int64
  32754. var mv int32
  32755. hasLen := containerLen > 0
  32756. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32757. if esep {
  32758. dd.ReadMapElemKey()
  32759. }
  32760. mk = dd.DecodeInt64()
  32761. if esep {
  32762. dd.ReadMapElemValue()
  32763. }
  32764. if dd.TryDecodeAsNil() {
  32765. if v == nil {
  32766. } else if d.h.DeleteOnNilMapValue {
  32767. delete(v, mk)
  32768. } else {
  32769. v[mk] = 0
  32770. }
  32771. continue
  32772. }
  32773. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32774. if v != nil {
  32775. v[mk] = mv
  32776. }
  32777. }
  32778. dd.ReadMapEnd()
  32779. return v, changed
  32780. }
  32781. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  32782. if rv.Kind() == reflect.Ptr {
  32783. vp := rv2i(rv).(*map[int64]int64)
  32784. v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d)
  32785. if changed {
  32786. *vp = v
  32787. }
  32788. } else {
  32789. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  32790. }
  32791. }
  32792. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  32793. v, changed := f.DecMapInt64Int64V(*vp, true, d)
  32794. if changed {
  32795. *vp = v
  32796. }
  32797. }
  32798. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  32799. d *Decoder) (_ map[int64]int64, changed bool) {
  32800. dd, esep := d.d, d.hh.hasElemSeparators()
  32801. containerLen := dd.ReadMapStart()
  32802. if canChange && v == nil {
  32803. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32804. v = make(map[int64]int64, xlen)
  32805. changed = true
  32806. }
  32807. if containerLen == 0 {
  32808. dd.ReadMapEnd()
  32809. return v, changed
  32810. }
  32811. var mk int64
  32812. var mv int64
  32813. hasLen := containerLen > 0
  32814. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32815. if esep {
  32816. dd.ReadMapElemKey()
  32817. }
  32818. mk = dd.DecodeInt64()
  32819. if esep {
  32820. dd.ReadMapElemValue()
  32821. }
  32822. if dd.TryDecodeAsNil() {
  32823. if v == nil {
  32824. } else if d.h.DeleteOnNilMapValue {
  32825. delete(v, mk)
  32826. } else {
  32827. v[mk] = 0
  32828. }
  32829. continue
  32830. }
  32831. mv = dd.DecodeInt64()
  32832. if v != nil {
  32833. v[mk] = mv
  32834. }
  32835. }
  32836. dd.ReadMapEnd()
  32837. return v, changed
  32838. }
  32839. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  32840. if rv.Kind() == reflect.Ptr {
  32841. vp := rv2i(rv).(*map[int64]float32)
  32842. v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d)
  32843. if changed {
  32844. *vp = v
  32845. }
  32846. } else {
  32847. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  32848. }
  32849. }
  32850. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  32851. v, changed := f.DecMapInt64Float32V(*vp, true, d)
  32852. if changed {
  32853. *vp = v
  32854. }
  32855. }
  32856. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  32857. d *Decoder) (_ map[int64]float32, changed bool) {
  32858. dd, esep := d.d, d.hh.hasElemSeparators()
  32859. containerLen := dd.ReadMapStart()
  32860. if canChange && v == nil {
  32861. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32862. v = make(map[int64]float32, xlen)
  32863. changed = true
  32864. }
  32865. if containerLen == 0 {
  32866. dd.ReadMapEnd()
  32867. return v, changed
  32868. }
  32869. var mk int64
  32870. var mv float32
  32871. hasLen := containerLen > 0
  32872. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32873. if esep {
  32874. dd.ReadMapElemKey()
  32875. }
  32876. mk = dd.DecodeInt64()
  32877. if esep {
  32878. dd.ReadMapElemValue()
  32879. }
  32880. if dd.TryDecodeAsNil() {
  32881. if v == nil {
  32882. } else if d.h.DeleteOnNilMapValue {
  32883. delete(v, mk)
  32884. } else {
  32885. v[mk] = 0
  32886. }
  32887. continue
  32888. }
  32889. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  32890. if v != nil {
  32891. v[mk] = mv
  32892. }
  32893. }
  32894. dd.ReadMapEnd()
  32895. return v, changed
  32896. }
  32897. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  32898. if rv.Kind() == reflect.Ptr {
  32899. vp := rv2i(rv).(*map[int64]float64)
  32900. v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d)
  32901. if changed {
  32902. *vp = v
  32903. }
  32904. } else {
  32905. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  32906. }
  32907. }
  32908. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  32909. v, changed := f.DecMapInt64Float64V(*vp, true, d)
  32910. if changed {
  32911. *vp = v
  32912. }
  32913. }
  32914. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  32915. d *Decoder) (_ map[int64]float64, changed bool) {
  32916. dd, esep := d.d, d.hh.hasElemSeparators()
  32917. containerLen := dd.ReadMapStart()
  32918. if canChange && v == nil {
  32919. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32920. v = make(map[int64]float64, xlen)
  32921. changed = true
  32922. }
  32923. if containerLen == 0 {
  32924. dd.ReadMapEnd()
  32925. return v, changed
  32926. }
  32927. var mk int64
  32928. var mv float64
  32929. hasLen := containerLen > 0
  32930. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32931. if esep {
  32932. dd.ReadMapElemKey()
  32933. }
  32934. mk = dd.DecodeInt64()
  32935. if esep {
  32936. dd.ReadMapElemValue()
  32937. }
  32938. if dd.TryDecodeAsNil() {
  32939. if v == nil {
  32940. } else if d.h.DeleteOnNilMapValue {
  32941. delete(v, mk)
  32942. } else {
  32943. v[mk] = 0
  32944. }
  32945. continue
  32946. }
  32947. mv = dd.DecodeFloat64()
  32948. if v != nil {
  32949. v[mk] = mv
  32950. }
  32951. }
  32952. dd.ReadMapEnd()
  32953. return v, changed
  32954. }
  32955. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  32956. if rv.Kind() == reflect.Ptr {
  32957. vp := rv2i(rv).(*map[int64]bool)
  32958. v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d)
  32959. if changed {
  32960. *vp = v
  32961. }
  32962. } else {
  32963. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  32964. }
  32965. }
  32966. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  32967. v, changed := f.DecMapInt64BoolV(*vp, true, d)
  32968. if changed {
  32969. *vp = v
  32970. }
  32971. }
  32972. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  32973. d *Decoder) (_ map[int64]bool, changed bool) {
  32974. dd, esep := d.d, d.hh.hasElemSeparators()
  32975. containerLen := dd.ReadMapStart()
  32976. if canChange && v == nil {
  32977. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32978. v = make(map[int64]bool, xlen)
  32979. changed = true
  32980. }
  32981. if containerLen == 0 {
  32982. dd.ReadMapEnd()
  32983. return v, changed
  32984. }
  32985. var mk int64
  32986. var mv bool
  32987. hasLen := containerLen > 0
  32988. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32989. if esep {
  32990. dd.ReadMapElemKey()
  32991. }
  32992. mk = dd.DecodeInt64()
  32993. if esep {
  32994. dd.ReadMapElemValue()
  32995. }
  32996. if dd.TryDecodeAsNil() {
  32997. if v == nil {
  32998. } else if d.h.DeleteOnNilMapValue {
  32999. delete(v, mk)
  33000. } else {
  33001. v[mk] = false
  33002. }
  33003. continue
  33004. }
  33005. mv = dd.DecodeBool()
  33006. if v != nil {
  33007. v[mk] = mv
  33008. }
  33009. }
  33010. dd.ReadMapEnd()
  33011. return v, changed
  33012. }
  33013. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  33014. if rv.Kind() == reflect.Ptr {
  33015. vp := rv2i(rv).(*map[bool]interface{})
  33016. v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d)
  33017. if changed {
  33018. *vp = v
  33019. }
  33020. } else {
  33021. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  33022. }
  33023. }
  33024. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  33025. v, changed := f.DecMapBoolIntfV(*vp, true, d)
  33026. if changed {
  33027. *vp = v
  33028. }
  33029. }
  33030. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  33031. d *Decoder) (_ map[bool]interface{}, changed bool) {
  33032. dd, esep := d.d, d.hh.hasElemSeparators()
  33033. containerLen := dd.ReadMapStart()
  33034. if canChange && v == nil {
  33035. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33036. v = make(map[bool]interface{}, xlen)
  33037. changed = true
  33038. }
  33039. if containerLen == 0 {
  33040. dd.ReadMapEnd()
  33041. return v, changed
  33042. }
  33043. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  33044. var mk bool
  33045. var mv interface{}
  33046. hasLen := containerLen > 0
  33047. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33048. if esep {
  33049. dd.ReadMapElemKey()
  33050. }
  33051. mk = dd.DecodeBool()
  33052. if esep {
  33053. dd.ReadMapElemValue()
  33054. }
  33055. if dd.TryDecodeAsNil() {
  33056. if v == nil {
  33057. } else if d.h.DeleteOnNilMapValue {
  33058. delete(v, mk)
  33059. } else {
  33060. v[mk] = nil
  33061. }
  33062. continue
  33063. }
  33064. if mapGet {
  33065. mv = v[mk]
  33066. } else {
  33067. mv = nil
  33068. }
  33069. d.decode(&mv)
  33070. if v != nil {
  33071. v[mk] = mv
  33072. }
  33073. }
  33074. dd.ReadMapEnd()
  33075. return v, changed
  33076. }
  33077. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  33078. if rv.Kind() == reflect.Ptr {
  33079. vp := rv2i(rv).(*map[bool]string)
  33080. v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d)
  33081. if changed {
  33082. *vp = v
  33083. }
  33084. } else {
  33085. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  33086. }
  33087. }
  33088. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  33089. v, changed := f.DecMapBoolStringV(*vp, true, d)
  33090. if changed {
  33091. *vp = v
  33092. }
  33093. }
  33094. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  33095. d *Decoder) (_ map[bool]string, changed bool) {
  33096. dd, esep := d.d, d.hh.hasElemSeparators()
  33097. containerLen := dd.ReadMapStart()
  33098. if canChange && v == nil {
  33099. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33100. v = make(map[bool]string, xlen)
  33101. changed = true
  33102. }
  33103. if containerLen == 0 {
  33104. dd.ReadMapEnd()
  33105. return v, changed
  33106. }
  33107. var mk bool
  33108. var mv string
  33109. hasLen := containerLen > 0
  33110. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33111. if esep {
  33112. dd.ReadMapElemKey()
  33113. }
  33114. mk = dd.DecodeBool()
  33115. if esep {
  33116. dd.ReadMapElemValue()
  33117. }
  33118. if dd.TryDecodeAsNil() {
  33119. if v == nil {
  33120. } else if d.h.DeleteOnNilMapValue {
  33121. delete(v, mk)
  33122. } else {
  33123. v[mk] = ""
  33124. }
  33125. continue
  33126. }
  33127. mv = dd.DecodeString()
  33128. if v != nil {
  33129. v[mk] = mv
  33130. }
  33131. }
  33132. dd.ReadMapEnd()
  33133. return v, changed
  33134. }
  33135. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  33136. if rv.Kind() == reflect.Ptr {
  33137. vp := rv2i(rv).(*map[bool]uint)
  33138. v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d)
  33139. if changed {
  33140. *vp = v
  33141. }
  33142. } else {
  33143. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  33144. }
  33145. }
  33146. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  33147. v, changed := f.DecMapBoolUintV(*vp, true, d)
  33148. if changed {
  33149. *vp = v
  33150. }
  33151. }
  33152. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  33153. d *Decoder) (_ map[bool]uint, changed bool) {
  33154. dd, esep := d.d, d.hh.hasElemSeparators()
  33155. containerLen := dd.ReadMapStart()
  33156. if canChange && v == nil {
  33157. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33158. v = make(map[bool]uint, xlen)
  33159. changed = true
  33160. }
  33161. if containerLen == 0 {
  33162. dd.ReadMapEnd()
  33163. return v, changed
  33164. }
  33165. var mk bool
  33166. var mv uint
  33167. hasLen := containerLen > 0
  33168. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33169. if esep {
  33170. dd.ReadMapElemKey()
  33171. }
  33172. mk = dd.DecodeBool()
  33173. if esep {
  33174. dd.ReadMapElemValue()
  33175. }
  33176. if dd.TryDecodeAsNil() {
  33177. if v == nil {
  33178. } else if d.h.DeleteOnNilMapValue {
  33179. delete(v, mk)
  33180. } else {
  33181. v[mk] = 0
  33182. }
  33183. continue
  33184. }
  33185. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33186. if v != nil {
  33187. v[mk] = mv
  33188. }
  33189. }
  33190. dd.ReadMapEnd()
  33191. return v, changed
  33192. }
  33193. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  33194. if rv.Kind() == reflect.Ptr {
  33195. vp := rv2i(rv).(*map[bool]uint8)
  33196. v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d)
  33197. if changed {
  33198. *vp = v
  33199. }
  33200. } else {
  33201. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  33202. }
  33203. }
  33204. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  33205. v, changed := f.DecMapBoolUint8V(*vp, true, d)
  33206. if changed {
  33207. *vp = v
  33208. }
  33209. }
  33210. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  33211. d *Decoder) (_ map[bool]uint8, changed bool) {
  33212. dd, esep := d.d, d.hh.hasElemSeparators()
  33213. containerLen := dd.ReadMapStart()
  33214. if canChange && v == nil {
  33215. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  33216. v = make(map[bool]uint8, xlen)
  33217. changed = true
  33218. }
  33219. if containerLen == 0 {
  33220. dd.ReadMapEnd()
  33221. return v, changed
  33222. }
  33223. var mk bool
  33224. var mv uint8
  33225. hasLen := containerLen > 0
  33226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33227. if esep {
  33228. dd.ReadMapElemKey()
  33229. }
  33230. mk = dd.DecodeBool()
  33231. if esep {
  33232. dd.ReadMapElemValue()
  33233. }
  33234. if dd.TryDecodeAsNil() {
  33235. if v == nil {
  33236. } else if d.h.DeleteOnNilMapValue {
  33237. delete(v, mk)
  33238. } else {
  33239. v[mk] = 0
  33240. }
  33241. continue
  33242. }
  33243. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  33244. if v != nil {
  33245. v[mk] = mv
  33246. }
  33247. }
  33248. dd.ReadMapEnd()
  33249. return v, changed
  33250. }
  33251. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  33252. if rv.Kind() == reflect.Ptr {
  33253. vp := rv2i(rv).(*map[bool]uint16)
  33254. v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d)
  33255. if changed {
  33256. *vp = v
  33257. }
  33258. } else {
  33259. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  33260. }
  33261. }
  33262. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  33263. v, changed := f.DecMapBoolUint16V(*vp, true, d)
  33264. if changed {
  33265. *vp = v
  33266. }
  33267. }
  33268. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  33269. d *Decoder) (_ map[bool]uint16, changed bool) {
  33270. dd, esep := d.d, d.hh.hasElemSeparators()
  33271. containerLen := dd.ReadMapStart()
  33272. if canChange && v == nil {
  33273. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33274. v = make(map[bool]uint16, xlen)
  33275. changed = true
  33276. }
  33277. if containerLen == 0 {
  33278. dd.ReadMapEnd()
  33279. return v, changed
  33280. }
  33281. var mk bool
  33282. var mv uint16
  33283. hasLen := containerLen > 0
  33284. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33285. if esep {
  33286. dd.ReadMapElemKey()
  33287. }
  33288. mk = dd.DecodeBool()
  33289. if esep {
  33290. dd.ReadMapElemValue()
  33291. }
  33292. if dd.TryDecodeAsNil() {
  33293. if v == nil {
  33294. } else if d.h.DeleteOnNilMapValue {
  33295. delete(v, mk)
  33296. } else {
  33297. v[mk] = 0
  33298. }
  33299. continue
  33300. }
  33301. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  33302. if v != nil {
  33303. v[mk] = mv
  33304. }
  33305. }
  33306. dd.ReadMapEnd()
  33307. return v, changed
  33308. }
  33309. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  33310. if rv.Kind() == reflect.Ptr {
  33311. vp := rv2i(rv).(*map[bool]uint32)
  33312. v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d)
  33313. if changed {
  33314. *vp = v
  33315. }
  33316. } else {
  33317. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  33318. }
  33319. }
  33320. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  33321. v, changed := f.DecMapBoolUint32V(*vp, true, d)
  33322. if changed {
  33323. *vp = v
  33324. }
  33325. }
  33326. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  33327. d *Decoder) (_ map[bool]uint32, changed bool) {
  33328. dd, esep := d.d, d.hh.hasElemSeparators()
  33329. containerLen := dd.ReadMapStart()
  33330. if canChange && v == nil {
  33331. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33332. v = make(map[bool]uint32, xlen)
  33333. changed = true
  33334. }
  33335. if containerLen == 0 {
  33336. dd.ReadMapEnd()
  33337. return v, changed
  33338. }
  33339. var mk bool
  33340. var mv uint32
  33341. hasLen := containerLen > 0
  33342. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33343. if esep {
  33344. dd.ReadMapElemKey()
  33345. }
  33346. mk = dd.DecodeBool()
  33347. if esep {
  33348. dd.ReadMapElemValue()
  33349. }
  33350. if dd.TryDecodeAsNil() {
  33351. if v == nil {
  33352. } else if d.h.DeleteOnNilMapValue {
  33353. delete(v, mk)
  33354. } else {
  33355. v[mk] = 0
  33356. }
  33357. continue
  33358. }
  33359. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  33360. if v != nil {
  33361. v[mk] = mv
  33362. }
  33363. }
  33364. dd.ReadMapEnd()
  33365. return v, changed
  33366. }
  33367. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  33368. if rv.Kind() == reflect.Ptr {
  33369. vp := rv2i(rv).(*map[bool]uint64)
  33370. v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d)
  33371. if changed {
  33372. *vp = v
  33373. }
  33374. } else {
  33375. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  33376. }
  33377. }
  33378. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  33379. v, changed := f.DecMapBoolUint64V(*vp, true, d)
  33380. if changed {
  33381. *vp = v
  33382. }
  33383. }
  33384. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  33385. d *Decoder) (_ map[bool]uint64, changed bool) {
  33386. dd, esep := d.d, d.hh.hasElemSeparators()
  33387. containerLen := dd.ReadMapStart()
  33388. if canChange && v == nil {
  33389. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33390. v = make(map[bool]uint64, xlen)
  33391. changed = true
  33392. }
  33393. if containerLen == 0 {
  33394. dd.ReadMapEnd()
  33395. return v, changed
  33396. }
  33397. var mk bool
  33398. var mv uint64
  33399. hasLen := containerLen > 0
  33400. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33401. if esep {
  33402. dd.ReadMapElemKey()
  33403. }
  33404. mk = dd.DecodeBool()
  33405. if esep {
  33406. dd.ReadMapElemValue()
  33407. }
  33408. if dd.TryDecodeAsNil() {
  33409. if v == nil {
  33410. } else if d.h.DeleteOnNilMapValue {
  33411. delete(v, mk)
  33412. } else {
  33413. v[mk] = 0
  33414. }
  33415. continue
  33416. }
  33417. mv = dd.DecodeUint64()
  33418. if v != nil {
  33419. v[mk] = mv
  33420. }
  33421. }
  33422. dd.ReadMapEnd()
  33423. return v, changed
  33424. }
  33425. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  33426. if rv.Kind() == reflect.Ptr {
  33427. vp := rv2i(rv).(*map[bool]uintptr)
  33428. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d)
  33429. if changed {
  33430. *vp = v
  33431. }
  33432. } else {
  33433. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  33434. }
  33435. }
  33436. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  33437. v, changed := f.DecMapBoolUintptrV(*vp, true, d)
  33438. if changed {
  33439. *vp = v
  33440. }
  33441. }
  33442. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  33443. d *Decoder) (_ map[bool]uintptr, changed bool) {
  33444. dd, esep := d.d, d.hh.hasElemSeparators()
  33445. containerLen := dd.ReadMapStart()
  33446. if canChange && v == nil {
  33447. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33448. v = make(map[bool]uintptr, xlen)
  33449. changed = true
  33450. }
  33451. if containerLen == 0 {
  33452. dd.ReadMapEnd()
  33453. return v, changed
  33454. }
  33455. var mk bool
  33456. var mv uintptr
  33457. hasLen := containerLen > 0
  33458. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33459. if esep {
  33460. dd.ReadMapElemKey()
  33461. }
  33462. mk = dd.DecodeBool()
  33463. if esep {
  33464. dd.ReadMapElemValue()
  33465. }
  33466. if dd.TryDecodeAsNil() {
  33467. if v == nil {
  33468. } else if d.h.DeleteOnNilMapValue {
  33469. delete(v, mk)
  33470. } else {
  33471. v[mk] = 0
  33472. }
  33473. continue
  33474. }
  33475. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33476. if v != nil {
  33477. v[mk] = mv
  33478. }
  33479. }
  33480. dd.ReadMapEnd()
  33481. return v, changed
  33482. }
  33483. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  33484. if rv.Kind() == reflect.Ptr {
  33485. vp := rv2i(rv).(*map[bool]int)
  33486. v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d)
  33487. if changed {
  33488. *vp = v
  33489. }
  33490. } else {
  33491. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  33492. }
  33493. }
  33494. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  33495. v, changed := f.DecMapBoolIntV(*vp, true, d)
  33496. if changed {
  33497. *vp = v
  33498. }
  33499. }
  33500. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  33501. d *Decoder) (_ map[bool]int, changed bool) {
  33502. dd, esep := d.d, d.hh.hasElemSeparators()
  33503. containerLen := dd.ReadMapStart()
  33504. if canChange && v == nil {
  33505. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33506. v = make(map[bool]int, xlen)
  33507. changed = true
  33508. }
  33509. if containerLen == 0 {
  33510. dd.ReadMapEnd()
  33511. return v, changed
  33512. }
  33513. var mk bool
  33514. var mv int
  33515. hasLen := containerLen > 0
  33516. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33517. if esep {
  33518. dd.ReadMapElemKey()
  33519. }
  33520. mk = dd.DecodeBool()
  33521. if esep {
  33522. dd.ReadMapElemValue()
  33523. }
  33524. if dd.TryDecodeAsNil() {
  33525. if v == nil {
  33526. } else if d.h.DeleteOnNilMapValue {
  33527. delete(v, mk)
  33528. } else {
  33529. v[mk] = 0
  33530. }
  33531. continue
  33532. }
  33533. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  33534. if v != nil {
  33535. v[mk] = mv
  33536. }
  33537. }
  33538. dd.ReadMapEnd()
  33539. return v, changed
  33540. }
  33541. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  33542. if rv.Kind() == reflect.Ptr {
  33543. vp := rv2i(rv).(*map[bool]int8)
  33544. v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d)
  33545. if changed {
  33546. *vp = v
  33547. }
  33548. } else {
  33549. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  33550. }
  33551. }
  33552. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  33553. v, changed := f.DecMapBoolInt8V(*vp, true, d)
  33554. if changed {
  33555. *vp = v
  33556. }
  33557. }
  33558. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  33559. d *Decoder) (_ map[bool]int8, changed bool) {
  33560. dd, esep := d.d, d.hh.hasElemSeparators()
  33561. containerLen := dd.ReadMapStart()
  33562. if canChange && v == nil {
  33563. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  33564. v = make(map[bool]int8, xlen)
  33565. changed = true
  33566. }
  33567. if containerLen == 0 {
  33568. dd.ReadMapEnd()
  33569. return v, changed
  33570. }
  33571. var mk bool
  33572. var mv int8
  33573. hasLen := containerLen > 0
  33574. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33575. if esep {
  33576. dd.ReadMapElemKey()
  33577. }
  33578. mk = dd.DecodeBool()
  33579. if esep {
  33580. dd.ReadMapElemValue()
  33581. }
  33582. if dd.TryDecodeAsNil() {
  33583. if v == nil {
  33584. } else if d.h.DeleteOnNilMapValue {
  33585. delete(v, mk)
  33586. } else {
  33587. v[mk] = 0
  33588. }
  33589. continue
  33590. }
  33591. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  33592. if v != nil {
  33593. v[mk] = mv
  33594. }
  33595. }
  33596. dd.ReadMapEnd()
  33597. return v, changed
  33598. }
  33599. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  33600. if rv.Kind() == reflect.Ptr {
  33601. vp := rv2i(rv).(*map[bool]int16)
  33602. v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d)
  33603. if changed {
  33604. *vp = v
  33605. }
  33606. } else {
  33607. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  33608. }
  33609. }
  33610. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  33611. v, changed := f.DecMapBoolInt16V(*vp, true, d)
  33612. if changed {
  33613. *vp = v
  33614. }
  33615. }
  33616. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  33617. d *Decoder) (_ map[bool]int16, changed bool) {
  33618. dd, esep := d.d, d.hh.hasElemSeparators()
  33619. containerLen := dd.ReadMapStart()
  33620. if canChange && v == nil {
  33621. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33622. v = make(map[bool]int16, xlen)
  33623. changed = true
  33624. }
  33625. if containerLen == 0 {
  33626. dd.ReadMapEnd()
  33627. return v, changed
  33628. }
  33629. var mk bool
  33630. var mv int16
  33631. hasLen := containerLen > 0
  33632. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33633. if esep {
  33634. dd.ReadMapElemKey()
  33635. }
  33636. mk = dd.DecodeBool()
  33637. if esep {
  33638. dd.ReadMapElemValue()
  33639. }
  33640. if dd.TryDecodeAsNil() {
  33641. if v == nil {
  33642. } else if d.h.DeleteOnNilMapValue {
  33643. delete(v, mk)
  33644. } else {
  33645. v[mk] = 0
  33646. }
  33647. continue
  33648. }
  33649. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  33650. if v != nil {
  33651. v[mk] = mv
  33652. }
  33653. }
  33654. dd.ReadMapEnd()
  33655. return v, changed
  33656. }
  33657. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  33658. if rv.Kind() == reflect.Ptr {
  33659. vp := rv2i(rv).(*map[bool]int32)
  33660. v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d)
  33661. if changed {
  33662. *vp = v
  33663. }
  33664. } else {
  33665. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  33666. }
  33667. }
  33668. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  33669. v, changed := f.DecMapBoolInt32V(*vp, true, d)
  33670. if changed {
  33671. *vp = v
  33672. }
  33673. }
  33674. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  33675. d *Decoder) (_ map[bool]int32, changed bool) {
  33676. dd, esep := d.d, d.hh.hasElemSeparators()
  33677. containerLen := dd.ReadMapStart()
  33678. if canChange && v == nil {
  33679. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33680. v = make(map[bool]int32, xlen)
  33681. changed = true
  33682. }
  33683. if containerLen == 0 {
  33684. dd.ReadMapEnd()
  33685. return v, changed
  33686. }
  33687. var mk bool
  33688. var mv int32
  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 = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  33708. if v != nil {
  33709. v[mk] = mv
  33710. }
  33711. }
  33712. dd.ReadMapEnd()
  33713. return v, changed
  33714. }
  33715. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  33716. if rv.Kind() == reflect.Ptr {
  33717. vp := rv2i(rv).(*map[bool]int64)
  33718. v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d)
  33719. if changed {
  33720. *vp = v
  33721. }
  33722. } else {
  33723. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  33724. }
  33725. }
  33726. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  33727. v, changed := f.DecMapBoolInt64V(*vp, true, d)
  33728. if changed {
  33729. *vp = v
  33730. }
  33731. }
  33732. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  33733. d *Decoder) (_ map[bool]int64, changed bool) {
  33734. dd, esep := d.d, d.hh.hasElemSeparators()
  33735. containerLen := dd.ReadMapStart()
  33736. if canChange && v == nil {
  33737. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33738. v = make(map[bool]int64, xlen)
  33739. changed = true
  33740. }
  33741. if containerLen == 0 {
  33742. dd.ReadMapEnd()
  33743. return v, changed
  33744. }
  33745. var mk bool
  33746. var mv int64
  33747. hasLen := containerLen > 0
  33748. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33749. if esep {
  33750. dd.ReadMapElemKey()
  33751. }
  33752. mk = dd.DecodeBool()
  33753. if esep {
  33754. dd.ReadMapElemValue()
  33755. }
  33756. if dd.TryDecodeAsNil() {
  33757. if v == nil {
  33758. } else if d.h.DeleteOnNilMapValue {
  33759. delete(v, mk)
  33760. } else {
  33761. v[mk] = 0
  33762. }
  33763. continue
  33764. }
  33765. mv = dd.DecodeInt64()
  33766. if v != nil {
  33767. v[mk] = mv
  33768. }
  33769. }
  33770. dd.ReadMapEnd()
  33771. return v, changed
  33772. }
  33773. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  33774. if rv.Kind() == reflect.Ptr {
  33775. vp := rv2i(rv).(*map[bool]float32)
  33776. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d)
  33777. if changed {
  33778. *vp = v
  33779. }
  33780. } else {
  33781. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  33782. }
  33783. }
  33784. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  33785. v, changed := f.DecMapBoolFloat32V(*vp, true, d)
  33786. if changed {
  33787. *vp = v
  33788. }
  33789. }
  33790. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  33791. d *Decoder) (_ map[bool]float32, changed bool) {
  33792. dd, esep := d.d, d.hh.hasElemSeparators()
  33793. containerLen := dd.ReadMapStart()
  33794. if canChange && v == nil {
  33795. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33796. v = make(map[bool]float32, xlen)
  33797. changed = true
  33798. }
  33799. if containerLen == 0 {
  33800. dd.ReadMapEnd()
  33801. return v, changed
  33802. }
  33803. var mk bool
  33804. var mv float32
  33805. hasLen := containerLen > 0
  33806. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33807. if esep {
  33808. dd.ReadMapElemKey()
  33809. }
  33810. mk = dd.DecodeBool()
  33811. if esep {
  33812. dd.ReadMapElemValue()
  33813. }
  33814. if dd.TryDecodeAsNil() {
  33815. if v == nil {
  33816. } else if d.h.DeleteOnNilMapValue {
  33817. delete(v, mk)
  33818. } else {
  33819. v[mk] = 0
  33820. }
  33821. continue
  33822. }
  33823. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  33824. if v != nil {
  33825. v[mk] = mv
  33826. }
  33827. }
  33828. dd.ReadMapEnd()
  33829. return v, changed
  33830. }
  33831. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  33832. if rv.Kind() == reflect.Ptr {
  33833. vp := rv2i(rv).(*map[bool]float64)
  33834. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d)
  33835. if changed {
  33836. *vp = v
  33837. }
  33838. } else {
  33839. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  33840. }
  33841. }
  33842. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  33843. v, changed := f.DecMapBoolFloat64V(*vp, true, d)
  33844. if changed {
  33845. *vp = v
  33846. }
  33847. }
  33848. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  33849. d *Decoder) (_ map[bool]float64, changed bool) {
  33850. dd, esep := d.d, d.hh.hasElemSeparators()
  33851. containerLen := dd.ReadMapStart()
  33852. if canChange && v == nil {
  33853. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33854. v = make(map[bool]float64, xlen)
  33855. changed = true
  33856. }
  33857. if containerLen == 0 {
  33858. dd.ReadMapEnd()
  33859. return v, changed
  33860. }
  33861. var mk bool
  33862. var mv float64
  33863. hasLen := containerLen > 0
  33864. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33865. if esep {
  33866. dd.ReadMapElemKey()
  33867. }
  33868. mk = dd.DecodeBool()
  33869. if esep {
  33870. dd.ReadMapElemValue()
  33871. }
  33872. if dd.TryDecodeAsNil() {
  33873. if v == nil {
  33874. } else if d.h.DeleteOnNilMapValue {
  33875. delete(v, mk)
  33876. } else {
  33877. v[mk] = 0
  33878. }
  33879. continue
  33880. }
  33881. mv = dd.DecodeFloat64()
  33882. if v != nil {
  33883. v[mk] = mv
  33884. }
  33885. }
  33886. dd.ReadMapEnd()
  33887. return v, changed
  33888. }
  33889. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  33890. if rv.Kind() == reflect.Ptr {
  33891. vp := rv2i(rv).(*map[bool]bool)
  33892. v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d)
  33893. if changed {
  33894. *vp = v
  33895. }
  33896. } else {
  33897. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  33898. }
  33899. }
  33900. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  33901. v, changed := f.DecMapBoolBoolV(*vp, true, d)
  33902. if changed {
  33903. *vp = v
  33904. }
  33905. }
  33906. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  33907. d *Decoder) (_ map[bool]bool, changed bool) {
  33908. dd, esep := d.d, d.hh.hasElemSeparators()
  33909. containerLen := dd.ReadMapStart()
  33910. if canChange && v == nil {
  33911. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  33912. v = make(map[bool]bool, xlen)
  33913. changed = true
  33914. }
  33915. if containerLen == 0 {
  33916. dd.ReadMapEnd()
  33917. return v, changed
  33918. }
  33919. var mk bool
  33920. var mv bool
  33921. hasLen := containerLen > 0
  33922. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33923. if esep {
  33924. dd.ReadMapElemKey()
  33925. }
  33926. mk = dd.DecodeBool()
  33927. if esep {
  33928. dd.ReadMapElemValue()
  33929. }
  33930. if dd.TryDecodeAsNil() {
  33931. if v == nil {
  33932. } else if d.h.DeleteOnNilMapValue {
  33933. delete(v, mk)
  33934. } else {
  33935. v[mk] = false
  33936. }
  33937. continue
  33938. }
  33939. mv = dd.DecodeBool()
  33940. if v != nil {
  33941. v[mk] = mv
  33942. }
  33943. }
  33944. dd.ReadMapEnd()
  33945. return v, changed
  33946. }