12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914 |
- //+build use_codec
- //+build !easyjson_nounsafe
- //+build !appengine
- // ************************************************************
- // DO NOT EDIT.
- // THIS FILE IS AUTO-GENERATED BY codecgen.
- // ************************************************************
- package benchmark
- import (
- "errors"
- "fmt"
- "reflect"
- "runtime"
- "unsafe"
- codec1978 "github.com/ugorji/go/codec"
- )
- const (
- // ----- content types ----
- codecSelferC_UTF89225 = 1
- codecSelferC_RAW9225 = 0
- // ----- value types used ----
- codecSelferValueTypeArray9225 = 10
- codecSelferValueTypeMap9225 = 9
- // ----- containerStateValues ----
- codecSelfer_containerMapKey9225 = 2
- codecSelfer_containerMapValue9225 = 3
- codecSelfer_containerMapEnd9225 = 4
- codecSelfer_containerArrayElem9225 = 6
- codecSelfer_containerArrayEnd9225 = 7
- )
- var (
- codecSelferBitsize9225 = uint8(reflect.TypeOf(uint(0)).Bits())
- codecSelferOnlyMapOrArrayEncodeToStructErr9225 = errors.New(`only encoded map or array can be decoded into a struct`)
- )
- type codecSelferUnsafeString9225 struct {
- Data uintptr
- Len int
- }
- type codecSelfer9225 struct{}
- func init() {
- if codec1978.GenVersion != 5 {
- _, file, _, _ := runtime.Caller(0)
- err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v",
- 5, codec1978.GenVersion, file)
- panic(err)
- }
- if false { // reference the types, but skip this branch at build/run time
- var v0 unsafe.Pointer
- _ = v0
- }
- }
- func (x *SearchMetadata) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [9]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(9)
- } else {
- yynn2 = 9
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- r.EncodeFloat64(float64(x.CompletedIn))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("completed_in"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeFloat64(float64(x.CompletedIn))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym7 := z.EncBinary()
- _ = yym7
- if false {
- } else {
- r.EncodeInt(int64(x.Count))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("count"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else {
- r.EncodeInt(int64(x.Count))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym10 := z.EncBinary()
- _ = yym10
- if false {
- } else {
- r.EncodeInt(int64(x.MaxID))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("max_id"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym11 := z.EncBinary()
- _ = yym11
- if false {
- } else {
- r.EncodeInt(int64(x.MaxID))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym13 := z.EncBinary()
- _ = yym13
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.MaxIDStr))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("max_id_str"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym14 := z.EncBinary()
- _ = yym14
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.MaxIDStr))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym16 := z.EncBinary()
- _ = yym16
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.NextResults))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("next_results"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym17 := z.EncBinary()
- _ = yym17
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.NextResults))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym19 := z.EncBinary()
- _ = yym19
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Query))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("query"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym20 := z.EncBinary()
- _ = yym20
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Query))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym22 := z.EncBinary()
- _ = yym22
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.RefreshURL))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("refresh_url"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym23 := z.EncBinary()
- _ = yym23
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.RefreshURL))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym25 := z.EncBinary()
- _ = yym25
- if false {
- } else {
- r.EncodeInt(int64(x.SinceID))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("since_id"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym26 := z.EncBinary()
- _ = yym26
- if false {
- } else {
- r.EncodeInt(int64(x.SinceID))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym28 := z.EncBinary()
- _ = yym28
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.SinceIDStr))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("since_id_str"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym29 := z.EncBinary()
- _ = yym29
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.SinceIDStr))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *SearchMetadata) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *SearchMetadata) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "completed_in":
- if r.TryDecodeAsNil() {
- x.CompletedIn = 0
- } else {
- yyv4 := &x.CompletedIn
- yym5 := z.DecBinary()
- _ = yym5
- if false {
- } else {
- *((*float64)(yyv4)) = float64(r.DecodeFloat(false))
- }
- }
- case "count":
- if r.TryDecodeAsNil() {
- x.Count = 0
- } else {
- yyv6 := &x.Count
- yym7 := z.DecBinary()
- _ = yym7
- if false {
- } else {
- *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- case "max_id":
- if r.TryDecodeAsNil() {
- x.MaxID = 0
- } else {
- yyv8 := &x.MaxID
- yym9 := z.DecBinary()
- _ = yym9
- if false {
- } else {
- *((*int)(yyv8)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- case "max_id_str":
- if r.TryDecodeAsNil() {
- x.MaxIDStr = ""
- } else {
- yyv10 := &x.MaxIDStr
- yym11 := z.DecBinary()
- _ = yym11
- if false {
- } else {
- *((*string)(yyv10)) = r.DecodeString()
- }
- }
- case "next_results":
- if r.TryDecodeAsNil() {
- x.NextResults = ""
- } else {
- yyv12 := &x.NextResults
- yym13 := z.DecBinary()
- _ = yym13
- if false {
- } else {
- *((*string)(yyv12)) = r.DecodeString()
- }
- }
- case "query":
- if r.TryDecodeAsNil() {
- x.Query = ""
- } else {
- yyv14 := &x.Query
- yym15 := z.DecBinary()
- _ = yym15
- if false {
- } else {
- *((*string)(yyv14)) = r.DecodeString()
- }
- }
- case "refresh_url":
- if r.TryDecodeAsNil() {
- x.RefreshURL = ""
- } else {
- yyv16 := &x.RefreshURL
- yym17 := z.DecBinary()
- _ = yym17
- if false {
- } else {
- *((*string)(yyv16)) = r.DecodeString()
- }
- }
- case "since_id":
- if r.TryDecodeAsNil() {
- x.SinceID = 0
- } else {
- yyv18 := &x.SinceID
- yym19 := z.DecBinary()
- _ = yym19
- if false {
- } else {
- *((*int)(yyv18)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- case "since_id_str":
- if r.TryDecodeAsNil() {
- x.SinceIDStr = ""
- } else {
- yyv20 := &x.SinceIDStr
- yym21 := z.DecBinary()
- _ = yym21
- if false {
- } else {
- *((*string)(yyv20)) = r.DecodeString()
- }
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *SearchMetadata) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj22 int
- var yyb22 bool
- var yyhl22 bool = l >= 0
- yyj22++
- if yyhl22 {
- yyb22 = yyj22 > l
- } else {
- yyb22 = r.CheckBreak()
- }
- if yyb22 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.CompletedIn = 0
- } else {
- yyv23 := &x.CompletedIn
- yym24 := z.DecBinary()
- _ = yym24
- if false {
- } else {
- *((*float64)(yyv23)) = float64(r.DecodeFloat(false))
- }
- }
- yyj22++
- if yyhl22 {
- yyb22 = yyj22 > l
- } else {
- yyb22 = r.CheckBreak()
- }
- if yyb22 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Count = 0
- } else {
- yyv25 := &x.Count
- yym26 := z.DecBinary()
- _ = yym26
- if false {
- } else {
- *((*int)(yyv25)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- yyj22++
- if yyhl22 {
- yyb22 = yyj22 > l
- } else {
- yyb22 = r.CheckBreak()
- }
- if yyb22 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.MaxID = 0
- } else {
- yyv27 := &x.MaxID
- yym28 := z.DecBinary()
- _ = yym28
- if false {
- } else {
- *((*int)(yyv27)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- yyj22++
- if yyhl22 {
- yyb22 = yyj22 > l
- } else {
- yyb22 = r.CheckBreak()
- }
- if yyb22 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.MaxIDStr = ""
- } else {
- yyv29 := &x.MaxIDStr
- yym30 := z.DecBinary()
- _ = yym30
- if false {
- } else {
- *((*string)(yyv29)) = r.DecodeString()
- }
- }
- yyj22++
- if yyhl22 {
- yyb22 = yyj22 > l
- } else {
- yyb22 = r.CheckBreak()
- }
- if yyb22 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.NextResults = ""
- } else {
- yyv31 := &x.NextResults
- yym32 := z.DecBinary()
- _ = yym32
- if false {
- } else {
- *((*string)(yyv31)) = r.DecodeString()
- }
- }
- yyj22++
- if yyhl22 {
- yyb22 = yyj22 > l
- } else {
- yyb22 = r.CheckBreak()
- }
- if yyb22 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Query = ""
- } else {
- yyv33 := &x.Query
- yym34 := z.DecBinary()
- _ = yym34
- if false {
- } else {
- *((*string)(yyv33)) = r.DecodeString()
- }
- }
- yyj22++
- if yyhl22 {
- yyb22 = yyj22 > l
- } else {
- yyb22 = r.CheckBreak()
- }
- if yyb22 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.RefreshURL = ""
- } else {
- yyv35 := &x.RefreshURL
- yym36 := z.DecBinary()
- _ = yym36
- if false {
- } else {
- *((*string)(yyv35)) = r.DecodeString()
- }
- }
- yyj22++
- if yyhl22 {
- yyb22 = yyj22 > l
- } else {
- yyb22 = r.CheckBreak()
- }
- if yyb22 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.SinceID = 0
- } else {
- yyv37 := &x.SinceID
- yym38 := z.DecBinary()
- _ = yym38
- if false {
- } else {
- *((*int)(yyv37)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- yyj22++
- if yyhl22 {
- yyb22 = yyj22 > l
- } else {
- yyb22 = r.CheckBreak()
- }
- if yyb22 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.SinceIDStr = ""
- } else {
- yyv39 := &x.SinceIDStr
- yym40 := z.DecBinary()
- _ = yym40
- if false {
- } else {
- *((*string)(yyv39)) = r.DecodeString()
- }
- }
- for {
- yyj22++
- if yyhl22 {
- yyb22 = yyj22 > l
- } else {
- yyb22 = r.CheckBreak()
- }
- if yyb22 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj22-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x *Hashtag) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [2]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(2)
- } else {
- yynn2 = 2
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Indices == nil {
- r.EncodeNil()
- } else {
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- z.F.EncSliceIntV(x.Indices, false, e)
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("indices"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Indices == nil {
- r.EncodeNil()
- } else {
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- z.F.EncSliceIntV(x.Indices, false, e)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym7 := z.EncBinary()
- _ = yym7
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Text))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("text"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Text))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *Hashtag) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *Hashtag) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "indices":
- if r.TryDecodeAsNil() {
- x.Indices = nil
- } else {
- yyv4 := &x.Indices
- yym5 := z.DecBinary()
- _ = yym5
- if false {
- } else {
- z.F.DecSliceIntX(yyv4, false, d)
- }
- }
- case "text":
- if r.TryDecodeAsNil() {
- x.Text = ""
- } else {
- yyv6 := &x.Text
- yym7 := z.DecBinary()
- _ = yym7
- if false {
- } else {
- *((*string)(yyv6)) = r.DecodeString()
- }
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *Hashtag) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj8 int
- var yyb8 bool
- var yyhl8 bool = l >= 0
- yyj8++
- if yyhl8 {
- yyb8 = yyj8 > l
- } else {
- yyb8 = r.CheckBreak()
- }
- if yyb8 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Indices = nil
- } else {
- yyv9 := &x.Indices
- yym10 := z.DecBinary()
- _ = yym10
- if false {
- } else {
- z.F.DecSliceIntX(yyv9, false, d)
- }
- }
- yyj8++
- if yyhl8 {
- yyb8 = yyj8 > l
- } else {
- yyb8 = r.CheckBreak()
- }
- if yyb8 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Text = ""
- } else {
- yyv11 := &x.Text
- yym12 := z.DecBinary()
- _ = yym12
- if false {
- } else {
- *((*string)(yyv11)) = r.DecodeString()
- }
- }
- for {
- yyj8++
- if yyhl8 {
- yyb8 = yyj8 > l
- } else {
- yyb8 = r.CheckBreak()
- }
- if yyb8 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj8-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x *Entities) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [3]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(3)
- } else {
- yynn2 = 3
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Hashtags == nil {
- r.EncodeNil()
- } else {
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- h.encSliceHashtag(([]Hashtag)(x.Hashtags), e)
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("hashtags"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Hashtags == nil {
- r.EncodeNil()
- } else {
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- h.encSliceHashtag(([]Hashtag)(x.Hashtags), e)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Urls == nil {
- r.EncodeNil()
- } else {
- yym7 := z.EncBinary()
- _ = yym7
- if false {
- } else {
- h.encSlicePtrtostring(([]*string)(x.Urls), e)
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("urls"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Urls == nil {
- r.EncodeNil()
- } else {
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else {
- h.encSlicePtrtostring(([]*string)(x.Urls), e)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.UserMentions == nil {
- r.EncodeNil()
- } else {
- yym10 := z.EncBinary()
- _ = yym10
- if false {
- } else {
- h.encSlicePtrtostring(([]*string)(x.UserMentions), e)
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("user_mentions"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.UserMentions == nil {
- r.EncodeNil()
- } else {
- yym11 := z.EncBinary()
- _ = yym11
- if false {
- } else {
- h.encSlicePtrtostring(([]*string)(x.UserMentions), e)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *Entities) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *Entities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "hashtags":
- if r.TryDecodeAsNil() {
- x.Hashtags = nil
- } else {
- yyv4 := &x.Hashtags
- yym5 := z.DecBinary()
- _ = yym5
- if false {
- } else {
- h.decSliceHashtag((*[]Hashtag)(yyv4), d)
- }
- }
- case "urls":
- if r.TryDecodeAsNil() {
- x.Urls = nil
- } else {
- yyv6 := &x.Urls
- yym7 := z.DecBinary()
- _ = yym7
- if false {
- } else {
- h.decSlicePtrtostring((*[]*string)(yyv6), d)
- }
- }
- case "user_mentions":
- if r.TryDecodeAsNil() {
- x.UserMentions = nil
- } else {
- yyv8 := &x.UserMentions
- yym9 := z.DecBinary()
- _ = yym9
- if false {
- } else {
- h.decSlicePtrtostring((*[]*string)(yyv8), d)
- }
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *Entities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj10 int
- var yyb10 bool
- var yyhl10 bool = l >= 0
- yyj10++
- if yyhl10 {
- yyb10 = yyj10 > l
- } else {
- yyb10 = r.CheckBreak()
- }
- if yyb10 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Hashtags = nil
- } else {
- yyv11 := &x.Hashtags
- yym12 := z.DecBinary()
- _ = yym12
- if false {
- } else {
- h.decSliceHashtag((*[]Hashtag)(yyv11), d)
- }
- }
- yyj10++
- if yyhl10 {
- yyb10 = yyj10 > l
- } else {
- yyb10 = r.CheckBreak()
- }
- if yyb10 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Urls = nil
- } else {
- yyv13 := &x.Urls
- yym14 := z.DecBinary()
- _ = yym14
- if false {
- } else {
- h.decSlicePtrtostring((*[]*string)(yyv13), d)
- }
- }
- yyj10++
- if yyhl10 {
- yyb10 = yyj10 > l
- } else {
- yyb10 = r.CheckBreak()
- }
- if yyb10 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.UserMentions = nil
- } else {
- yyv15 := &x.UserMentions
- yym16 := z.DecBinary()
- _ = yym16
- if false {
- } else {
- h.decSlicePtrtostring((*[]*string)(yyv15), d)
- }
- }
- for {
- yyj10++
- if yyhl10 {
- yyb10 = yyj10 > l
- } else {
- yyb10 = r.CheckBreak()
- }
- if yyb10 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj10-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x *UserEntityDescription) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [1]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(1)
- } else {
- yynn2 = 1
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Urls == nil {
- r.EncodeNil()
- } else {
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- h.encSlicePtrtostring(([]*string)(x.Urls), e)
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("urls"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Urls == nil {
- r.EncodeNil()
- } else {
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- h.encSlicePtrtostring(([]*string)(x.Urls), e)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *UserEntityDescription) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *UserEntityDescription) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "urls":
- if r.TryDecodeAsNil() {
- x.Urls = nil
- } else {
- yyv4 := &x.Urls
- yym5 := z.DecBinary()
- _ = yym5
- if false {
- } else {
- h.decSlicePtrtostring((*[]*string)(yyv4), d)
- }
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *UserEntityDescription) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj6 int
- var yyb6 bool
- var yyhl6 bool = l >= 0
- yyj6++
- if yyhl6 {
- yyb6 = yyj6 > l
- } else {
- yyb6 = r.CheckBreak()
- }
- if yyb6 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Urls = nil
- } else {
- yyv7 := &x.Urls
- yym8 := z.DecBinary()
- _ = yym8
- if false {
- } else {
- h.decSlicePtrtostring((*[]*string)(yyv7), d)
- }
- }
- for {
- yyj6++
- if yyhl6 {
- yyb6 = yyj6 > l
- } else {
- yyb6 = r.CheckBreak()
- }
- if yyb6 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj6-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x *URL) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [3]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(3)
- } else {
- yynn2 = 3
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.ExpandedURL == nil {
- r.EncodeNil()
- } else {
- yy4 := *x.ExpandedURL
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy4))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("expanded_url"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.ExpandedURL == nil {
- r.EncodeNil()
- } else {
- yy6 := *x.ExpandedURL
- yym7 := z.EncBinary()
- _ = yym7
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy6))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Indices == nil {
- r.EncodeNil()
- } else {
- yym9 := z.EncBinary()
- _ = yym9
- if false {
- } else {
- z.F.EncSliceIntV(x.Indices, false, e)
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("indices"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Indices == nil {
- r.EncodeNil()
- } else {
- yym10 := z.EncBinary()
- _ = yym10
- if false {
- } else {
- z.F.EncSliceIntV(x.Indices, false, e)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym12 := z.EncBinary()
- _ = yym12
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.URL))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("url"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym13 := z.EncBinary()
- _ = yym13
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.URL))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *URL) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *URL) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "expanded_url":
- if r.TryDecodeAsNil() {
- if x.ExpandedURL != nil {
- x.ExpandedURL = nil
- }
- } else {
- if x.ExpandedURL == nil {
- x.ExpandedURL = new(string)
- }
- yym5 := z.DecBinary()
- _ = yym5
- if false {
- } else {
- *((*string)(x.ExpandedURL)) = r.DecodeString()
- }
- }
- case "indices":
- if r.TryDecodeAsNil() {
- x.Indices = nil
- } else {
- yyv6 := &x.Indices
- yym7 := z.DecBinary()
- _ = yym7
- if false {
- } else {
- z.F.DecSliceIntX(yyv6, false, d)
- }
- }
- case "url":
- if r.TryDecodeAsNil() {
- x.URL = ""
- } else {
- yyv8 := &x.URL
- yym9 := z.DecBinary()
- _ = yym9
- if false {
- } else {
- *((*string)(yyv8)) = r.DecodeString()
- }
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *URL) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj10 int
- var yyb10 bool
- var yyhl10 bool = l >= 0
- yyj10++
- if yyhl10 {
- yyb10 = yyj10 > l
- } else {
- yyb10 = r.CheckBreak()
- }
- if yyb10 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.ExpandedURL != nil {
- x.ExpandedURL = nil
- }
- } else {
- if x.ExpandedURL == nil {
- x.ExpandedURL = new(string)
- }
- yym12 := z.DecBinary()
- _ = yym12
- if false {
- } else {
- *((*string)(x.ExpandedURL)) = r.DecodeString()
- }
- }
- yyj10++
- if yyhl10 {
- yyb10 = yyj10 > l
- } else {
- yyb10 = r.CheckBreak()
- }
- if yyb10 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Indices = nil
- } else {
- yyv13 := &x.Indices
- yym14 := z.DecBinary()
- _ = yym14
- if false {
- } else {
- z.F.DecSliceIntX(yyv13, false, d)
- }
- }
- yyj10++
- if yyhl10 {
- yyb10 = yyj10 > l
- } else {
- yyb10 = r.CheckBreak()
- }
- if yyb10 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.URL = ""
- } else {
- yyv15 := &x.URL
- yym16 := z.DecBinary()
- _ = yym16
- if false {
- } else {
- *((*string)(yyv15)) = r.DecodeString()
- }
- }
- for {
- yyj10++
- if yyhl10 {
- yyb10 = yyj10 > l
- } else {
- yyb10 = r.CheckBreak()
- }
- if yyb10 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj10-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x *UserEntityURL) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [1]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(1)
- } else {
- yynn2 = 1
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Urls == nil {
- r.EncodeNil()
- } else {
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- h.encSliceURL(([]URL)(x.Urls), e)
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("urls"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Urls == nil {
- r.EncodeNil()
- } else {
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- h.encSliceURL(([]URL)(x.Urls), e)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *UserEntityURL) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *UserEntityURL) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "urls":
- if r.TryDecodeAsNil() {
- x.Urls = nil
- } else {
- yyv4 := &x.Urls
- yym5 := z.DecBinary()
- _ = yym5
- if false {
- } else {
- h.decSliceURL((*[]URL)(yyv4), d)
- }
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *UserEntityURL) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj6 int
- var yyb6 bool
- var yyhl6 bool = l >= 0
- yyj6++
- if yyhl6 {
- yyb6 = yyj6 > l
- } else {
- yyb6 = r.CheckBreak()
- }
- if yyb6 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Urls = nil
- } else {
- yyv7 := &x.Urls
- yym8 := z.DecBinary()
- _ = yym8
- if false {
- } else {
- h.decSliceURL((*[]URL)(yyv7), d)
- }
- }
- for {
- yyj6++
- if yyhl6 {
- yyb6 = yyj6 > l
- } else {
- yyb6 = r.CheckBreak()
- }
- if yyb6 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj6-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x *UserEntities) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [2]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(2)
- } else {
- yynn2 = 2
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yy4 := &x.Description
- yy4.CodecEncodeSelf(e)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("description"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yy6 := &x.Description
- yy6.CodecEncodeSelf(e)
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yy9 := &x.URL
- yy9.CodecEncodeSelf(e)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("url"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yy11 := &x.URL
- yy11.CodecEncodeSelf(e)
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *UserEntities) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *UserEntities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "description":
- if r.TryDecodeAsNil() {
- x.Description = UserEntityDescription{}
- } else {
- yyv4 := &x.Description
- yyv4.CodecDecodeSelf(d)
- }
- case "url":
- if r.TryDecodeAsNil() {
- x.URL = UserEntityURL{}
- } else {
- yyv5 := &x.URL
- yyv5.CodecDecodeSelf(d)
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *UserEntities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj6 int
- var yyb6 bool
- var yyhl6 bool = l >= 0
- yyj6++
- if yyhl6 {
- yyb6 = yyj6 > l
- } else {
- yyb6 = r.CheckBreak()
- }
- if yyb6 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Description = UserEntityDescription{}
- } else {
- yyv7 := &x.Description
- yyv7.CodecDecodeSelf(d)
- }
- yyj6++
- if yyhl6 {
- yyb6 = yyj6 > l
- } else {
- yyb6 = r.CheckBreak()
- }
- if yyb6 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.URL = UserEntityURL{}
- } else {
- yyv8 := &x.URL
- yyv8.CodecDecodeSelf(d)
- }
- for {
- yyj6++
- if yyhl6 {
- yyb6 = yyj6 > l
- } else {
- yyb6 = r.CheckBreak()
- }
- if yyb6 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj6-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x *User) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [39]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(39)
- } else {
- yynn2 = 39
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- r.EncodeBool(bool(x.ContributorsEnabled))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("contributors_enabled"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeBool(bool(x.ContributorsEnabled))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym7 := z.EncBinary()
- _ = yym7
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.CreatedAt))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("created_at"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.CreatedAt))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym10 := z.EncBinary()
- _ = yym10
- if false {
- } else {
- r.EncodeBool(bool(x.DefaultProfile))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("default_profile"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym11 := z.EncBinary()
- _ = yym11
- if false {
- } else {
- r.EncodeBool(bool(x.DefaultProfile))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym13 := z.EncBinary()
- _ = yym13
- if false {
- } else {
- r.EncodeBool(bool(x.DefaultProfileImage))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("default_profile_image"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym14 := z.EncBinary()
- _ = yym14
- if false {
- } else {
- r.EncodeBool(bool(x.DefaultProfileImage))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym16 := z.EncBinary()
- _ = yym16
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Description))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("description"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym17 := z.EncBinary()
- _ = yym17
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Description))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yy19 := &x.Entities
- yy19.CodecEncodeSelf(e)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("entities"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yy21 := &x.Entities
- yy21.CodecEncodeSelf(e)
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym24 := z.EncBinary()
- _ = yym24
- if false {
- } else {
- r.EncodeInt(int64(x.FavouritesCount))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("favourites_count"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym25 := z.EncBinary()
- _ = yym25
- if false {
- } else {
- r.EncodeInt(int64(x.FavouritesCount))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.FollowRequestSent == nil {
- r.EncodeNil()
- } else {
- yy27 := *x.FollowRequestSent
- yym28 := z.EncBinary()
- _ = yym28
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy27))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("follow_request_sent"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.FollowRequestSent == nil {
- r.EncodeNil()
- } else {
- yy29 := *x.FollowRequestSent
- yym30 := z.EncBinary()
- _ = yym30
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy29))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym32 := z.EncBinary()
- _ = yym32
- if false {
- } else {
- r.EncodeInt(int64(x.FollowersCount))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("followers_count"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym33 := z.EncBinary()
- _ = yym33
- if false {
- } else {
- r.EncodeInt(int64(x.FollowersCount))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Following == nil {
- r.EncodeNil()
- } else {
- yy35 := *x.Following
- yym36 := z.EncBinary()
- _ = yym36
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy35))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("following"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Following == nil {
- r.EncodeNil()
- } else {
- yy37 := *x.Following
- yym38 := z.EncBinary()
- _ = yym38
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy37))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym40 := z.EncBinary()
- _ = yym40
- if false {
- } else {
- r.EncodeInt(int64(x.FriendsCount))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("friends_count"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym41 := z.EncBinary()
- _ = yym41
- if false {
- } else {
- r.EncodeInt(int64(x.FriendsCount))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym43 := z.EncBinary()
- _ = yym43
- if false {
- } else {
- r.EncodeBool(bool(x.GeoEnabled))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("geo_enabled"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym44 := z.EncBinary()
- _ = yym44
- if false {
- } else {
- r.EncodeBool(bool(x.GeoEnabled))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym46 := z.EncBinary()
- _ = yym46
- if false {
- } else {
- r.EncodeInt(int64(x.ID))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("id"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym47 := z.EncBinary()
- _ = yym47
- if false {
- } else {
- r.EncodeInt(int64(x.ID))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym49 := z.EncBinary()
- _ = yym49
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.IDStr))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("id_str"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym50 := z.EncBinary()
- _ = yym50
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.IDStr))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym52 := z.EncBinary()
- _ = yym52
- if false {
- } else {
- r.EncodeBool(bool(x.IsTranslator))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("is_translator"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym53 := z.EncBinary()
- _ = yym53
- if false {
- } else {
- r.EncodeBool(bool(x.IsTranslator))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym55 := z.EncBinary()
- _ = yym55
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Lang))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("lang"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym56 := z.EncBinary()
- _ = yym56
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Lang))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym58 := z.EncBinary()
- _ = yym58
- if false {
- } else {
- r.EncodeInt(int64(x.ListedCount))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("listed_count"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym59 := z.EncBinary()
- _ = yym59
- if false {
- } else {
- r.EncodeInt(int64(x.ListedCount))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym61 := z.EncBinary()
- _ = yym61
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Location))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("location"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym62 := z.EncBinary()
- _ = yym62
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Location))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym64 := z.EncBinary()
- _ = yym64
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Name))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("name"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym65 := z.EncBinary()
- _ = yym65
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Name))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Notifications == nil {
- r.EncodeNil()
- } else {
- yy67 := *x.Notifications
- yym68 := z.EncBinary()
- _ = yym68
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy67))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("notifications"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Notifications == nil {
- r.EncodeNil()
- } else {
- yy69 := *x.Notifications
- yym70 := z.EncBinary()
- _ = yym70
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy69))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym72 := z.EncBinary()
- _ = yym72
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundColor))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("profile_background_color"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym73 := z.EncBinary()
- _ = yym73
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundColor))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym75 := z.EncBinary()
- _ = yym75
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundImageURL))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("profile_background_image_url"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym76 := z.EncBinary()
- _ = yym76
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundImageURL))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym78 := z.EncBinary()
- _ = yym78
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundImageURLHTTPS))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("profile_background_image_url_https"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym79 := z.EncBinary()
- _ = yym79
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundImageURLHTTPS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym81 := z.EncBinary()
- _ = yym81
- if false {
- } else {
- r.EncodeBool(bool(x.ProfileBackgroundTile))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("profile_background_tile"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym82 := z.EncBinary()
- _ = yym82
- if false {
- } else {
- r.EncodeBool(bool(x.ProfileBackgroundTile))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym84 := z.EncBinary()
- _ = yym84
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileImageURL))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("profile_image_url"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym85 := z.EncBinary()
- _ = yym85
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileImageURL))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym87 := z.EncBinary()
- _ = yym87
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileImageURLHTTPS))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("profile_image_url_https"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym88 := z.EncBinary()
- _ = yym88
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileImageURLHTTPS))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym90 := z.EncBinary()
- _ = yym90
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileLinkColor))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("profile_link_color"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym91 := z.EncBinary()
- _ = yym91
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileLinkColor))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym93 := z.EncBinary()
- _ = yym93
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileSidebarBorderColor))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("profile_sidebar_border_color"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym94 := z.EncBinary()
- _ = yym94
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileSidebarBorderColor))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym96 := z.EncBinary()
- _ = yym96
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileSidebarFillColor))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("profile_sidebar_fill_color"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym97 := z.EncBinary()
- _ = yym97
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileSidebarFillColor))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym99 := z.EncBinary()
- _ = yym99
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileTextColor))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("profile_text_color"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym100 := z.EncBinary()
- _ = yym100
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ProfileTextColor))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym102 := z.EncBinary()
- _ = yym102
- if false {
- } else {
- r.EncodeBool(bool(x.ProfileUseBackgroundImage))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("profile_use_background_image"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym103 := z.EncBinary()
- _ = yym103
- if false {
- } else {
- r.EncodeBool(bool(x.ProfileUseBackgroundImage))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym105 := z.EncBinary()
- _ = yym105
- if false {
- } else {
- r.EncodeBool(bool(x.Protected))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("protected"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym106 := z.EncBinary()
- _ = yym106
- if false {
- } else {
- r.EncodeBool(bool(x.Protected))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym108 := z.EncBinary()
- _ = yym108
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ScreenName))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("screen_name"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym109 := z.EncBinary()
- _ = yym109
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ScreenName))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym111 := z.EncBinary()
- _ = yym111
- if false {
- } else {
- r.EncodeBool(bool(x.ShowAllInlineMedia))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("show_all_inline_media"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym112 := z.EncBinary()
- _ = yym112
- if false {
- } else {
- r.EncodeBool(bool(x.ShowAllInlineMedia))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym114 := z.EncBinary()
- _ = yym114
- if false {
- } else {
- r.EncodeInt(int64(x.StatusesCount))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("statuses_count"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym115 := z.EncBinary()
- _ = yym115
- if false {
- } else {
- r.EncodeInt(int64(x.StatusesCount))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym117 := z.EncBinary()
- _ = yym117
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.TimeZone))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("time_zone"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym118 := z.EncBinary()
- _ = yym118
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.TimeZone))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.URL == nil {
- r.EncodeNil()
- } else {
- yy120 := *x.URL
- yym121 := z.EncBinary()
- _ = yym121
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy120))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("url"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.URL == nil {
- r.EncodeNil()
- } else {
- yy122 := *x.URL
- yym123 := z.EncBinary()
- _ = yym123
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy122))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym125 := z.EncBinary()
- _ = yym125
- if false {
- } else {
- r.EncodeInt(int64(x.UtcOffset))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("utc_offset"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym126 := z.EncBinary()
- _ = yym126
- if false {
- } else {
- r.EncodeInt(int64(x.UtcOffset))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym128 := z.EncBinary()
- _ = yym128
- if false {
- } else {
- r.EncodeBool(bool(x.Verified))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("verified"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym129 := z.EncBinary()
- _ = yym129
- if false {
- } else {
- r.EncodeBool(bool(x.Verified))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *User) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *User) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "contributors_enabled":
- if r.TryDecodeAsNil() {
- x.ContributorsEnabled = false
- } else {
- yyv4 := &x.ContributorsEnabled
- yym5 := z.DecBinary()
- _ = yym5
- if false {
- } else {
- *((*bool)(yyv4)) = r.DecodeBool()
- }
- }
- case "created_at":
- if r.TryDecodeAsNil() {
- x.CreatedAt = ""
- } else {
- yyv6 := &x.CreatedAt
- yym7 := z.DecBinary()
- _ = yym7
- if false {
- } else {
- *((*string)(yyv6)) = r.DecodeString()
- }
- }
- case "default_profile":
- if r.TryDecodeAsNil() {
- x.DefaultProfile = false
- } else {
- yyv8 := &x.DefaultProfile
- yym9 := z.DecBinary()
- _ = yym9
- if false {
- } else {
- *((*bool)(yyv8)) = r.DecodeBool()
- }
- }
- case "default_profile_image":
- if r.TryDecodeAsNil() {
- x.DefaultProfileImage = false
- } else {
- yyv10 := &x.DefaultProfileImage
- yym11 := z.DecBinary()
- _ = yym11
- if false {
- } else {
- *((*bool)(yyv10)) = r.DecodeBool()
- }
- }
- case "description":
- if r.TryDecodeAsNil() {
- x.Description = ""
- } else {
- yyv12 := &x.Description
- yym13 := z.DecBinary()
- _ = yym13
- if false {
- } else {
- *((*string)(yyv12)) = r.DecodeString()
- }
- }
- case "entities":
- if r.TryDecodeAsNil() {
- x.Entities = UserEntities{}
- } else {
- yyv14 := &x.Entities
- yyv14.CodecDecodeSelf(d)
- }
- case "favourites_count":
- if r.TryDecodeAsNil() {
- x.FavouritesCount = 0
- } else {
- yyv15 := &x.FavouritesCount
- yym16 := z.DecBinary()
- _ = yym16
- if false {
- } else {
- *((*int)(yyv15)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- case "follow_request_sent":
- if r.TryDecodeAsNil() {
- if x.FollowRequestSent != nil {
- x.FollowRequestSent = nil
- }
- } else {
- if x.FollowRequestSent == nil {
- x.FollowRequestSent = new(string)
- }
- yym18 := z.DecBinary()
- _ = yym18
- if false {
- } else {
- *((*string)(x.FollowRequestSent)) = r.DecodeString()
- }
- }
- case "followers_count":
- if r.TryDecodeAsNil() {
- x.FollowersCount = 0
- } else {
- yyv19 := &x.FollowersCount
- yym20 := z.DecBinary()
- _ = yym20
- if false {
- } else {
- *((*int)(yyv19)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- case "following":
- if r.TryDecodeAsNil() {
- if x.Following != nil {
- x.Following = nil
- }
- } else {
- if x.Following == nil {
- x.Following = new(string)
- }
- yym22 := z.DecBinary()
- _ = yym22
- if false {
- } else {
- *((*string)(x.Following)) = r.DecodeString()
- }
- }
- case "friends_count":
- if r.TryDecodeAsNil() {
- x.FriendsCount = 0
- } else {
- yyv23 := &x.FriendsCount
- yym24 := z.DecBinary()
- _ = yym24
- if false {
- } else {
- *((*int)(yyv23)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- case "geo_enabled":
- if r.TryDecodeAsNil() {
- x.GeoEnabled = false
- } else {
- yyv25 := &x.GeoEnabled
- yym26 := z.DecBinary()
- _ = yym26
- if false {
- } else {
- *((*bool)(yyv25)) = r.DecodeBool()
- }
- }
- case "id":
- if r.TryDecodeAsNil() {
- x.ID = 0
- } else {
- yyv27 := &x.ID
- yym28 := z.DecBinary()
- _ = yym28
- if false {
- } else {
- *((*int)(yyv27)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- case "id_str":
- if r.TryDecodeAsNil() {
- x.IDStr = ""
- } else {
- yyv29 := &x.IDStr
- yym30 := z.DecBinary()
- _ = yym30
- if false {
- } else {
- *((*string)(yyv29)) = r.DecodeString()
- }
- }
- case "is_translator":
- if r.TryDecodeAsNil() {
- x.IsTranslator = false
- } else {
- yyv31 := &x.IsTranslator
- yym32 := z.DecBinary()
- _ = yym32
- if false {
- } else {
- *((*bool)(yyv31)) = r.DecodeBool()
- }
- }
- case "lang":
- if r.TryDecodeAsNil() {
- x.Lang = ""
- } else {
- yyv33 := &x.Lang
- yym34 := z.DecBinary()
- _ = yym34
- if false {
- } else {
- *((*string)(yyv33)) = r.DecodeString()
- }
- }
- case "listed_count":
- if r.TryDecodeAsNil() {
- x.ListedCount = 0
- } else {
- yyv35 := &x.ListedCount
- yym36 := z.DecBinary()
- _ = yym36
- if false {
- } else {
- *((*int)(yyv35)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- case "location":
- if r.TryDecodeAsNil() {
- x.Location = ""
- } else {
- yyv37 := &x.Location
- yym38 := z.DecBinary()
- _ = yym38
- if false {
- } else {
- *((*string)(yyv37)) = r.DecodeString()
- }
- }
- case "name":
- if r.TryDecodeAsNil() {
- x.Name = ""
- } else {
- yyv39 := &x.Name
- yym40 := z.DecBinary()
- _ = yym40
- if false {
- } else {
- *((*string)(yyv39)) = r.DecodeString()
- }
- }
- case "notifications":
- if r.TryDecodeAsNil() {
- if x.Notifications != nil {
- x.Notifications = nil
- }
- } else {
- if x.Notifications == nil {
- x.Notifications = new(string)
- }
- yym42 := z.DecBinary()
- _ = yym42
- if false {
- } else {
- *((*string)(x.Notifications)) = r.DecodeString()
- }
- }
- case "profile_background_color":
- if r.TryDecodeAsNil() {
- x.ProfileBackgroundColor = ""
- } else {
- yyv43 := &x.ProfileBackgroundColor
- yym44 := z.DecBinary()
- _ = yym44
- if false {
- } else {
- *((*string)(yyv43)) = r.DecodeString()
- }
- }
- case "profile_background_image_url":
- if r.TryDecodeAsNil() {
- x.ProfileBackgroundImageURL = ""
- } else {
- yyv45 := &x.ProfileBackgroundImageURL
- yym46 := z.DecBinary()
- _ = yym46
- if false {
- } else {
- *((*string)(yyv45)) = r.DecodeString()
- }
- }
- case "profile_background_image_url_https":
- if r.TryDecodeAsNil() {
- x.ProfileBackgroundImageURLHTTPS = ""
- } else {
- yyv47 := &x.ProfileBackgroundImageURLHTTPS
- yym48 := z.DecBinary()
- _ = yym48
- if false {
- } else {
- *((*string)(yyv47)) = r.DecodeString()
- }
- }
- case "profile_background_tile":
- if r.TryDecodeAsNil() {
- x.ProfileBackgroundTile = false
- } else {
- yyv49 := &x.ProfileBackgroundTile
- yym50 := z.DecBinary()
- _ = yym50
- if false {
- } else {
- *((*bool)(yyv49)) = r.DecodeBool()
- }
- }
- case "profile_image_url":
- if r.TryDecodeAsNil() {
- x.ProfileImageURL = ""
- } else {
- yyv51 := &x.ProfileImageURL
- yym52 := z.DecBinary()
- _ = yym52
- if false {
- } else {
- *((*string)(yyv51)) = r.DecodeString()
- }
- }
- case "profile_image_url_https":
- if r.TryDecodeAsNil() {
- x.ProfileImageURLHTTPS = ""
- } else {
- yyv53 := &x.ProfileImageURLHTTPS
- yym54 := z.DecBinary()
- _ = yym54
- if false {
- } else {
- *((*string)(yyv53)) = r.DecodeString()
- }
- }
- case "profile_link_color":
- if r.TryDecodeAsNil() {
- x.ProfileLinkColor = ""
- } else {
- yyv55 := &x.ProfileLinkColor
- yym56 := z.DecBinary()
- _ = yym56
- if false {
- } else {
- *((*string)(yyv55)) = r.DecodeString()
- }
- }
- case "profile_sidebar_border_color":
- if r.TryDecodeAsNil() {
- x.ProfileSidebarBorderColor = ""
- } else {
- yyv57 := &x.ProfileSidebarBorderColor
- yym58 := z.DecBinary()
- _ = yym58
- if false {
- } else {
- *((*string)(yyv57)) = r.DecodeString()
- }
- }
- case "profile_sidebar_fill_color":
- if r.TryDecodeAsNil() {
- x.ProfileSidebarFillColor = ""
- } else {
- yyv59 := &x.ProfileSidebarFillColor
- yym60 := z.DecBinary()
- _ = yym60
- if false {
- } else {
- *((*string)(yyv59)) = r.DecodeString()
- }
- }
- case "profile_text_color":
- if r.TryDecodeAsNil() {
- x.ProfileTextColor = ""
- } else {
- yyv61 := &x.ProfileTextColor
- yym62 := z.DecBinary()
- _ = yym62
- if false {
- } else {
- *((*string)(yyv61)) = r.DecodeString()
- }
- }
- case "profile_use_background_image":
- if r.TryDecodeAsNil() {
- x.ProfileUseBackgroundImage = false
- } else {
- yyv63 := &x.ProfileUseBackgroundImage
- yym64 := z.DecBinary()
- _ = yym64
- if false {
- } else {
- *((*bool)(yyv63)) = r.DecodeBool()
- }
- }
- case "protected":
- if r.TryDecodeAsNil() {
- x.Protected = false
- } else {
- yyv65 := &x.Protected
- yym66 := z.DecBinary()
- _ = yym66
- if false {
- } else {
- *((*bool)(yyv65)) = r.DecodeBool()
- }
- }
- case "screen_name":
- if r.TryDecodeAsNil() {
- x.ScreenName = ""
- } else {
- yyv67 := &x.ScreenName
- yym68 := z.DecBinary()
- _ = yym68
- if false {
- } else {
- *((*string)(yyv67)) = r.DecodeString()
- }
- }
- case "show_all_inline_media":
- if r.TryDecodeAsNil() {
- x.ShowAllInlineMedia = false
- } else {
- yyv69 := &x.ShowAllInlineMedia
- yym70 := z.DecBinary()
- _ = yym70
- if false {
- } else {
- *((*bool)(yyv69)) = r.DecodeBool()
- }
- }
- case "statuses_count":
- if r.TryDecodeAsNil() {
- x.StatusesCount = 0
- } else {
- yyv71 := &x.StatusesCount
- yym72 := z.DecBinary()
- _ = yym72
- if false {
- } else {
- *((*int)(yyv71)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- case "time_zone":
- if r.TryDecodeAsNil() {
- x.TimeZone = ""
- } else {
- yyv73 := &x.TimeZone
- yym74 := z.DecBinary()
- _ = yym74
- if false {
- } else {
- *((*string)(yyv73)) = r.DecodeString()
- }
- }
- case "url":
- if r.TryDecodeAsNil() {
- if x.URL != nil {
- x.URL = nil
- }
- } else {
- if x.URL == nil {
- x.URL = new(string)
- }
- yym76 := z.DecBinary()
- _ = yym76
- if false {
- } else {
- *((*string)(x.URL)) = r.DecodeString()
- }
- }
- case "utc_offset":
- if r.TryDecodeAsNil() {
- x.UtcOffset = 0
- } else {
- yyv77 := &x.UtcOffset
- yym78 := z.DecBinary()
- _ = yym78
- if false {
- } else {
- *((*int)(yyv77)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- case "verified":
- if r.TryDecodeAsNil() {
- x.Verified = false
- } else {
- yyv79 := &x.Verified
- yym80 := z.DecBinary()
- _ = yym80
- if false {
- } else {
- *((*bool)(yyv79)) = r.DecodeBool()
- }
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *User) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj81 int
- var yyb81 bool
- var yyhl81 bool = l >= 0
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ContributorsEnabled = false
- } else {
- yyv82 := &x.ContributorsEnabled
- yym83 := z.DecBinary()
- _ = yym83
- if false {
- } else {
- *((*bool)(yyv82)) = r.DecodeBool()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.CreatedAt = ""
- } else {
- yyv84 := &x.CreatedAt
- yym85 := z.DecBinary()
- _ = yym85
- if false {
- } else {
- *((*string)(yyv84)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.DefaultProfile = false
- } else {
- yyv86 := &x.DefaultProfile
- yym87 := z.DecBinary()
- _ = yym87
- if false {
- } else {
- *((*bool)(yyv86)) = r.DecodeBool()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.DefaultProfileImage = false
- } else {
- yyv88 := &x.DefaultProfileImage
- yym89 := z.DecBinary()
- _ = yym89
- if false {
- } else {
- *((*bool)(yyv88)) = r.DecodeBool()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Description = ""
- } else {
- yyv90 := &x.Description
- yym91 := z.DecBinary()
- _ = yym91
- if false {
- } else {
- *((*string)(yyv90)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Entities = UserEntities{}
- } else {
- yyv92 := &x.Entities
- yyv92.CodecDecodeSelf(d)
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.FavouritesCount = 0
- } else {
- yyv93 := &x.FavouritesCount
- yym94 := z.DecBinary()
- _ = yym94
- if false {
- } else {
- *((*int)(yyv93)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.FollowRequestSent != nil {
- x.FollowRequestSent = nil
- }
- } else {
- if x.FollowRequestSent == nil {
- x.FollowRequestSent = new(string)
- }
- yym96 := z.DecBinary()
- _ = yym96
- if false {
- } else {
- *((*string)(x.FollowRequestSent)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.FollowersCount = 0
- } else {
- yyv97 := &x.FollowersCount
- yym98 := z.DecBinary()
- _ = yym98
- if false {
- } else {
- *((*int)(yyv97)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.Following != nil {
- x.Following = nil
- }
- } else {
- if x.Following == nil {
- x.Following = new(string)
- }
- yym100 := z.DecBinary()
- _ = yym100
- if false {
- } else {
- *((*string)(x.Following)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.FriendsCount = 0
- } else {
- yyv101 := &x.FriendsCount
- yym102 := z.DecBinary()
- _ = yym102
- if false {
- } else {
- *((*int)(yyv101)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.GeoEnabled = false
- } else {
- yyv103 := &x.GeoEnabled
- yym104 := z.DecBinary()
- _ = yym104
- if false {
- } else {
- *((*bool)(yyv103)) = r.DecodeBool()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ID = 0
- } else {
- yyv105 := &x.ID
- yym106 := z.DecBinary()
- _ = yym106
- if false {
- } else {
- *((*int)(yyv105)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.IDStr = ""
- } else {
- yyv107 := &x.IDStr
- yym108 := z.DecBinary()
- _ = yym108
- if false {
- } else {
- *((*string)(yyv107)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.IsTranslator = false
- } else {
- yyv109 := &x.IsTranslator
- yym110 := z.DecBinary()
- _ = yym110
- if false {
- } else {
- *((*bool)(yyv109)) = r.DecodeBool()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Lang = ""
- } else {
- yyv111 := &x.Lang
- yym112 := z.DecBinary()
- _ = yym112
- if false {
- } else {
- *((*string)(yyv111)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ListedCount = 0
- } else {
- yyv113 := &x.ListedCount
- yym114 := z.DecBinary()
- _ = yym114
- if false {
- } else {
- *((*int)(yyv113)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Location = ""
- } else {
- yyv115 := &x.Location
- yym116 := z.DecBinary()
- _ = yym116
- if false {
- } else {
- *((*string)(yyv115)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Name = ""
- } else {
- yyv117 := &x.Name
- yym118 := z.DecBinary()
- _ = yym118
- if false {
- } else {
- *((*string)(yyv117)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.Notifications != nil {
- x.Notifications = nil
- }
- } else {
- if x.Notifications == nil {
- x.Notifications = new(string)
- }
- yym120 := z.DecBinary()
- _ = yym120
- if false {
- } else {
- *((*string)(x.Notifications)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ProfileBackgroundColor = ""
- } else {
- yyv121 := &x.ProfileBackgroundColor
- yym122 := z.DecBinary()
- _ = yym122
- if false {
- } else {
- *((*string)(yyv121)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ProfileBackgroundImageURL = ""
- } else {
- yyv123 := &x.ProfileBackgroundImageURL
- yym124 := z.DecBinary()
- _ = yym124
- if false {
- } else {
- *((*string)(yyv123)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ProfileBackgroundImageURLHTTPS = ""
- } else {
- yyv125 := &x.ProfileBackgroundImageURLHTTPS
- yym126 := z.DecBinary()
- _ = yym126
- if false {
- } else {
- *((*string)(yyv125)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ProfileBackgroundTile = false
- } else {
- yyv127 := &x.ProfileBackgroundTile
- yym128 := z.DecBinary()
- _ = yym128
- if false {
- } else {
- *((*bool)(yyv127)) = r.DecodeBool()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ProfileImageURL = ""
- } else {
- yyv129 := &x.ProfileImageURL
- yym130 := z.DecBinary()
- _ = yym130
- if false {
- } else {
- *((*string)(yyv129)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ProfileImageURLHTTPS = ""
- } else {
- yyv131 := &x.ProfileImageURLHTTPS
- yym132 := z.DecBinary()
- _ = yym132
- if false {
- } else {
- *((*string)(yyv131)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ProfileLinkColor = ""
- } else {
- yyv133 := &x.ProfileLinkColor
- yym134 := z.DecBinary()
- _ = yym134
- if false {
- } else {
- *((*string)(yyv133)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ProfileSidebarBorderColor = ""
- } else {
- yyv135 := &x.ProfileSidebarBorderColor
- yym136 := z.DecBinary()
- _ = yym136
- if false {
- } else {
- *((*string)(yyv135)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ProfileSidebarFillColor = ""
- } else {
- yyv137 := &x.ProfileSidebarFillColor
- yym138 := z.DecBinary()
- _ = yym138
- if false {
- } else {
- *((*string)(yyv137)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ProfileTextColor = ""
- } else {
- yyv139 := &x.ProfileTextColor
- yym140 := z.DecBinary()
- _ = yym140
- if false {
- } else {
- *((*string)(yyv139)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ProfileUseBackgroundImage = false
- } else {
- yyv141 := &x.ProfileUseBackgroundImage
- yym142 := z.DecBinary()
- _ = yym142
- if false {
- } else {
- *((*bool)(yyv141)) = r.DecodeBool()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Protected = false
- } else {
- yyv143 := &x.Protected
- yym144 := z.DecBinary()
- _ = yym144
- if false {
- } else {
- *((*bool)(yyv143)) = r.DecodeBool()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ScreenName = ""
- } else {
- yyv145 := &x.ScreenName
- yym146 := z.DecBinary()
- _ = yym146
- if false {
- } else {
- *((*string)(yyv145)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ShowAllInlineMedia = false
- } else {
- yyv147 := &x.ShowAllInlineMedia
- yym148 := z.DecBinary()
- _ = yym148
- if false {
- } else {
- *((*bool)(yyv147)) = r.DecodeBool()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.StatusesCount = 0
- } else {
- yyv149 := &x.StatusesCount
- yym150 := z.DecBinary()
- _ = yym150
- if false {
- } else {
- *((*int)(yyv149)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.TimeZone = ""
- } else {
- yyv151 := &x.TimeZone
- yym152 := z.DecBinary()
- _ = yym152
- if false {
- } else {
- *((*string)(yyv151)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.URL != nil {
- x.URL = nil
- }
- } else {
- if x.URL == nil {
- x.URL = new(string)
- }
- yym154 := z.DecBinary()
- _ = yym154
- if false {
- } else {
- *((*string)(x.URL)) = r.DecodeString()
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.UtcOffset = 0
- } else {
- yyv155 := &x.UtcOffset
- yym156 := z.DecBinary()
- _ = yym156
- if false {
- } else {
- *((*int)(yyv155)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Verified = false
- } else {
- yyv157 := &x.Verified
- yym158 := z.DecBinary()
- _ = yym158
- if false {
- } else {
- *((*bool)(yyv157)) = r.DecodeBool()
- }
- }
- for {
- yyj81++
- if yyhl81 {
- yyb81 = yyj81 > l
- } else {
- yyb81 = r.CheckBreak()
- }
- if yyb81 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj81-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x *StatusMetadata) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [2]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(2)
- } else {
- yynn2 = 2
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.IsoLanguageCode))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("iso_language_code"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.IsoLanguageCode))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym7 := z.EncBinary()
- _ = yym7
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ResultType))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("result_type"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym8 := z.EncBinary()
- _ = yym8
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.ResultType))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *StatusMetadata) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *StatusMetadata) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "iso_language_code":
- if r.TryDecodeAsNil() {
- x.IsoLanguageCode = ""
- } else {
- yyv4 := &x.IsoLanguageCode
- yym5 := z.DecBinary()
- _ = yym5
- if false {
- } else {
- *((*string)(yyv4)) = r.DecodeString()
- }
- }
- case "result_type":
- if r.TryDecodeAsNil() {
- x.ResultType = ""
- } else {
- yyv6 := &x.ResultType
- yym7 := z.DecBinary()
- _ = yym7
- if false {
- } else {
- *((*string)(yyv6)) = r.DecodeString()
- }
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *StatusMetadata) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj8 int
- var yyb8 bool
- var yyhl8 bool = l >= 0
- yyj8++
- if yyhl8 {
- yyb8 = yyj8 > l
- } else {
- yyb8 = r.CheckBreak()
- }
- if yyb8 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.IsoLanguageCode = ""
- } else {
- yyv9 := &x.IsoLanguageCode
- yym10 := z.DecBinary()
- _ = yym10
- if false {
- } else {
- *((*string)(yyv9)) = r.DecodeString()
- }
- }
- yyj8++
- if yyhl8 {
- yyb8 = yyj8 > l
- } else {
- yyb8 = r.CheckBreak()
- }
- if yyb8 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ResultType = ""
- } else {
- yyv11 := &x.ResultType
- yym12 := z.DecBinary()
- _ = yym12
- if false {
- } else {
- *((*string)(yyv11)) = r.DecodeString()
- }
- }
- for {
- yyj8++
- if yyhl8 {
- yyb8 = yyj8 > l
- } else {
- yyb8 = r.CheckBreak()
- }
- if yyb8 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj8-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x *Status) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [21]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(21)
- } else {
- yynn2 = 21
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Contributors == nil {
- r.EncodeNil()
- } else {
- yy4 := *x.Contributors
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy4))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("contributors"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Contributors == nil {
- r.EncodeNil()
- } else {
- yy6 := *x.Contributors
- yym7 := z.EncBinary()
- _ = yym7
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy6))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Coordinates == nil {
- r.EncodeNil()
- } else {
- yy9 := *x.Coordinates
- yym10 := z.EncBinary()
- _ = yym10
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy9))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("coordinates"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Coordinates == nil {
- r.EncodeNil()
- } else {
- yy11 := *x.Coordinates
- yym12 := z.EncBinary()
- _ = yym12
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy11))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym14 := z.EncBinary()
- _ = yym14
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.CreatedAt))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("created_at"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym15 := z.EncBinary()
- _ = yym15
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.CreatedAt))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yy17 := &x.Entities
- yy17.CodecEncodeSelf(e)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("entities"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yy19 := &x.Entities
- yy19.CodecEncodeSelf(e)
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym22 := z.EncBinary()
- _ = yym22
- if false {
- } else {
- r.EncodeBool(bool(x.Favorited))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("favorited"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym23 := z.EncBinary()
- _ = yym23
- if false {
- } else {
- r.EncodeBool(bool(x.Favorited))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Geo == nil {
- r.EncodeNil()
- } else {
- yy25 := *x.Geo
- yym26 := z.EncBinary()
- _ = yym26
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy25))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("geo"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Geo == nil {
- r.EncodeNil()
- } else {
- yy27 := *x.Geo
- yym28 := z.EncBinary()
- _ = yym28
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy27))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym30 := z.EncBinary()
- _ = yym30
- if false {
- } else {
- r.EncodeInt(int64(x.ID))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("id"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym31 := z.EncBinary()
- _ = yym31
- if false {
- } else {
- r.EncodeInt(int64(x.ID))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym33 := z.EncBinary()
- _ = yym33
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.IDStr))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("id_str"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym34 := z.EncBinary()
- _ = yym34
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.IDStr))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.InReplyToScreenName == nil {
- r.EncodeNil()
- } else {
- yy36 := *x.InReplyToScreenName
- yym37 := z.EncBinary()
- _ = yym37
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy36))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("in_reply_to_screen_name"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.InReplyToScreenName == nil {
- r.EncodeNil()
- } else {
- yy38 := *x.InReplyToScreenName
- yym39 := z.EncBinary()
- _ = yym39
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy38))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.InReplyToStatusID == nil {
- r.EncodeNil()
- } else {
- yy41 := *x.InReplyToStatusID
- yym42 := z.EncBinary()
- _ = yym42
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy41))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("in_reply_to_status_id"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.InReplyToStatusID == nil {
- r.EncodeNil()
- } else {
- yy43 := *x.InReplyToStatusID
- yym44 := z.EncBinary()
- _ = yym44
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy43))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.InReplyToStatusIDStr == nil {
- r.EncodeNil()
- } else {
- yy46 := *x.InReplyToStatusIDStr
- yym47 := z.EncBinary()
- _ = yym47
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy46))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("in_reply_to_status_id_str"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.InReplyToStatusIDStr == nil {
- r.EncodeNil()
- } else {
- yy48 := *x.InReplyToStatusIDStr
- yym49 := z.EncBinary()
- _ = yym49
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy48))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.InReplyToUserID == nil {
- r.EncodeNil()
- } else {
- yy51 := *x.InReplyToUserID
- yym52 := z.EncBinary()
- _ = yym52
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy51))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("in_reply_to_user_id"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.InReplyToUserID == nil {
- r.EncodeNil()
- } else {
- yy53 := *x.InReplyToUserID
- yym54 := z.EncBinary()
- _ = yym54
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy53))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.InReplyToUserIDStr == nil {
- r.EncodeNil()
- } else {
- yy56 := *x.InReplyToUserIDStr
- yym57 := z.EncBinary()
- _ = yym57
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy56))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("in_reply_to_user_id_str"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.InReplyToUserIDStr == nil {
- r.EncodeNil()
- } else {
- yy58 := *x.InReplyToUserIDStr
- yym59 := z.EncBinary()
- _ = yym59
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy58))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yy61 := &x.Metadata
- yy61.CodecEncodeSelf(e)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("metadata"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yy63 := &x.Metadata
- yy63.CodecEncodeSelf(e)
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Place == nil {
- r.EncodeNil()
- } else {
- yy66 := *x.Place
- yym67 := z.EncBinary()
- _ = yym67
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy66))
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("place"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Place == nil {
- r.EncodeNil()
- } else {
- yy68 := *x.Place
- yym69 := z.EncBinary()
- _ = yym69
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy68))
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym71 := z.EncBinary()
- _ = yym71
- if false {
- } else {
- r.EncodeInt(int64(x.RetweetCount))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("retweet_count"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym72 := z.EncBinary()
- _ = yym72
- if false {
- } else {
- r.EncodeInt(int64(x.RetweetCount))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym74 := z.EncBinary()
- _ = yym74
- if false {
- } else {
- r.EncodeBool(bool(x.Retweeted))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("retweeted"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym75 := z.EncBinary()
- _ = yym75
- if false {
- } else {
- r.EncodeBool(bool(x.Retweeted))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym77 := z.EncBinary()
- _ = yym77
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Source))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("source"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym78 := z.EncBinary()
- _ = yym78
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Source))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym80 := z.EncBinary()
- _ = yym80
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Text))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("text"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym81 := z.EncBinary()
- _ = yym81
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(x.Text))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yym83 := z.EncBinary()
- _ = yym83
- if false {
- } else {
- r.EncodeBool(bool(x.Truncated))
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("truncated"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yym84 := z.EncBinary()
- _ = yym84
- if false {
- } else {
- r.EncodeBool(bool(x.Truncated))
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yy86 := &x.User
- yy86.CodecEncodeSelf(e)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("user"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yy88 := &x.User
- yy88.CodecEncodeSelf(e)
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *Status) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *Status) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "contributors":
- if r.TryDecodeAsNil() {
- if x.Contributors != nil {
- x.Contributors = nil
- }
- } else {
- if x.Contributors == nil {
- x.Contributors = new(string)
- }
- yym5 := z.DecBinary()
- _ = yym5
- if false {
- } else {
- *((*string)(x.Contributors)) = r.DecodeString()
- }
- }
- case "coordinates":
- if r.TryDecodeAsNil() {
- if x.Coordinates != nil {
- x.Coordinates = nil
- }
- } else {
- if x.Coordinates == nil {
- x.Coordinates = new(string)
- }
- yym7 := z.DecBinary()
- _ = yym7
- if false {
- } else {
- *((*string)(x.Coordinates)) = r.DecodeString()
- }
- }
- case "created_at":
- if r.TryDecodeAsNil() {
- x.CreatedAt = ""
- } else {
- yyv8 := &x.CreatedAt
- yym9 := z.DecBinary()
- _ = yym9
- if false {
- } else {
- *((*string)(yyv8)) = r.DecodeString()
- }
- }
- case "entities":
- if r.TryDecodeAsNil() {
- x.Entities = Entities{}
- } else {
- yyv10 := &x.Entities
- yyv10.CodecDecodeSelf(d)
- }
- case "favorited":
- if r.TryDecodeAsNil() {
- x.Favorited = false
- } else {
- yyv11 := &x.Favorited
- yym12 := z.DecBinary()
- _ = yym12
- if false {
- } else {
- *((*bool)(yyv11)) = r.DecodeBool()
- }
- }
- case "geo":
- if r.TryDecodeAsNil() {
- if x.Geo != nil {
- x.Geo = nil
- }
- } else {
- if x.Geo == nil {
- x.Geo = new(string)
- }
- yym14 := z.DecBinary()
- _ = yym14
- if false {
- } else {
- *((*string)(x.Geo)) = r.DecodeString()
- }
- }
- case "id":
- if r.TryDecodeAsNil() {
- x.ID = 0
- } else {
- yyv15 := &x.ID
- yym16 := z.DecBinary()
- _ = yym16
- if false {
- } else {
- *((*int64)(yyv15)) = int64(r.DecodeInt(64))
- }
- }
- case "id_str":
- if r.TryDecodeAsNil() {
- x.IDStr = ""
- } else {
- yyv17 := &x.IDStr
- yym18 := z.DecBinary()
- _ = yym18
- if false {
- } else {
- *((*string)(yyv17)) = r.DecodeString()
- }
- }
- case "in_reply_to_screen_name":
- if r.TryDecodeAsNil() {
- if x.InReplyToScreenName != nil {
- x.InReplyToScreenName = nil
- }
- } else {
- if x.InReplyToScreenName == nil {
- x.InReplyToScreenName = new(string)
- }
- yym20 := z.DecBinary()
- _ = yym20
- if false {
- } else {
- *((*string)(x.InReplyToScreenName)) = r.DecodeString()
- }
- }
- case "in_reply_to_status_id":
- if r.TryDecodeAsNil() {
- if x.InReplyToStatusID != nil {
- x.InReplyToStatusID = nil
- }
- } else {
- if x.InReplyToStatusID == nil {
- x.InReplyToStatusID = new(string)
- }
- yym22 := z.DecBinary()
- _ = yym22
- if false {
- } else {
- *((*string)(x.InReplyToStatusID)) = r.DecodeString()
- }
- }
- case "in_reply_to_status_id_str":
- if r.TryDecodeAsNil() {
- if x.InReplyToStatusIDStr != nil {
- x.InReplyToStatusIDStr = nil
- }
- } else {
- if x.InReplyToStatusIDStr == nil {
- x.InReplyToStatusIDStr = new(string)
- }
- yym24 := z.DecBinary()
- _ = yym24
- if false {
- } else {
- *((*string)(x.InReplyToStatusIDStr)) = r.DecodeString()
- }
- }
- case "in_reply_to_user_id":
- if r.TryDecodeAsNil() {
- if x.InReplyToUserID != nil {
- x.InReplyToUserID = nil
- }
- } else {
- if x.InReplyToUserID == nil {
- x.InReplyToUserID = new(string)
- }
- yym26 := z.DecBinary()
- _ = yym26
- if false {
- } else {
- *((*string)(x.InReplyToUserID)) = r.DecodeString()
- }
- }
- case "in_reply_to_user_id_str":
- if r.TryDecodeAsNil() {
- if x.InReplyToUserIDStr != nil {
- x.InReplyToUserIDStr = nil
- }
- } else {
- if x.InReplyToUserIDStr == nil {
- x.InReplyToUserIDStr = new(string)
- }
- yym28 := z.DecBinary()
- _ = yym28
- if false {
- } else {
- *((*string)(x.InReplyToUserIDStr)) = r.DecodeString()
- }
- }
- case "metadata":
- if r.TryDecodeAsNil() {
- x.Metadata = StatusMetadata{}
- } else {
- yyv29 := &x.Metadata
- yyv29.CodecDecodeSelf(d)
- }
- case "place":
- if r.TryDecodeAsNil() {
- if x.Place != nil {
- x.Place = nil
- }
- } else {
- if x.Place == nil {
- x.Place = new(string)
- }
- yym31 := z.DecBinary()
- _ = yym31
- if false {
- } else {
- *((*string)(x.Place)) = r.DecodeString()
- }
- }
- case "retweet_count":
- if r.TryDecodeAsNil() {
- x.RetweetCount = 0
- } else {
- yyv32 := &x.RetweetCount
- yym33 := z.DecBinary()
- _ = yym33
- if false {
- } else {
- *((*int)(yyv32)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- case "retweeted":
- if r.TryDecodeAsNil() {
- x.Retweeted = false
- } else {
- yyv34 := &x.Retweeted
- yym35 := z.DecBinary()
- _ = yym35
- if false {
- } else {
- *((*bool)(yyv34)) = r.DecodeBool()
- }
- }
- case "source":
- if r.TryDecodeAsNil() {
- x.Source = ""
- } else {
- yyv36 := &x.Source
- yym37 := z.DecBinary()
- _ = yym37
- if false {
- } else {
- *((*string)(yyv36)) = r.DecodeString()
- }
- }
- case "text":
- if r.TryDecodeAsNil() {
- x.Text = ""
- } else {
- yyv38 := &x.Text
- yym39 := z.DecBinary()
- _ = yym39
- if false {
- } else {
- *((*string)(yyv38)) = r.DecodeString()
- }
- }
- case "truncated":
- if r.TryDecodeAsNil() {
- x.Truncated = false
- } else {
- yyv40 := &x.Truncated
- yym41 := z.DecBinary()
- _ = yym41
- if false {
- } else {
- *((*bool)(yyv40)) = r.DecodeBool()
- }
- }
- case "user":
- if r.TryDecodeAsNil() {
- x.User = User{}
- } else {
- yyv42 := &x.User
- yyv42.CodecDecodeSelf(d)
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *Status) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj43 int
- var yyb43 bool
- var yyhl43 bool = l >= 0
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.Contributors != nil {
- x.Contributors = nil
- }
- } else {
- if x.Contributors == nil {
- x.Contributors = new(string)
- }
- yym45 := z.DecBinary()
- _ = yym45
- if false {
- } else {
- *((*string)(x.Contributors)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.Coordinates != nil {
- x.Coordinates = nil
- }
- } else {
- if x.Coordinates == nil {
- x.Coordinates = new(string)
- }
- yym47 := z.DecBinary()
- _ = yym47
- if false {
- } else {
- *((*string)(x.Coordinates)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.CreatedAt = ""
- } else {
- yyv48 := &x.CreatedAt
- yym49 := z.DecBinary()
- _ = yym49
- if false {
- } else {
- *((*string)(yyv48)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Entities = Entities{}
- } else {
- yyv50 := &x.Entities
- yyv50.CodecDecodeSelf(d)
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Favorited = false
- } else {
- yyv51 := &x.Favorited
- yym52 := z.DecBinary()
- _ = yym52
- if false {
- } else {
- *((*bool)(yyv51)) = r.DecodeBool()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.Geo != nil {
- x.Geo = nil
- }
- } else {
- if x.Geo == nil {
- x.Geo = new(string)
- }
- yym54 := z.DecBinary()
- _ = yym54
- if false {
- } else {
- *((*string)(x.Geo)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.ID = 0
- } else {
- yyv55 := &x.ID
- yym56 := z.DecBinary()
- _ = yym56
- if false {
- } else {
- *((*int64)(yyv55)) = int64(r.DecodeInt(64))
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.IDStr = ""
- } else {
- yyv57 := &x.IDStr
- yym58 := z.DecBinary()
- _ = yym58
- if false {
- } else {
- *((*string)(yyv57)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.InReplyToScreenName != nil {
- x.InReplyToScreenName = nil
- }
- } else {
- if x.InReplyToScreenName == nil {
- x.InReplyToScreenName = new(string)
- }
- yym60 := z.DecBinary()
- _ = yym60
- if false {
- } else {
- *((*string)(x.InReplyToScreenName)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.InReplyToStatusID != nil {
- x.InReplyToStatusID = nil
- }
- } else {
- if x.InReplyToStatusID == nil {
- x.InReplyToStatusID = new(string)
- }
- yym62 := z.DecBinary()
- _ = yym62
- if false {
- } else {
- *((*string)(x.InReplyToStatusID)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.InReplyToStatusIDStr != nil {
- x.InReplyToStatusIDStr = nil
- }
- } else {
- if x.InReplyToStatusIDStr == nil {
- x.InReplyToStatusIDStr = new(string)
- }
- yym64 := z.DecBinary()
- _ = yym64
- if false {
- } else {
- *((*string)(x.InReplyToStatusIDStr)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.InReplyToUserID != nil {
- x.InReplyToUserID = nil
- }
- } else {
- if x.InReplyToUserID == nil {
- x.InReplyToUserID = new(string)
- }
- yym66 := z.DecBinary()
- _ = yym66
- if false {
- } else {
- *((*string)(x.InReplyToUserID)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.InReplyToUserIDStr != nil {
- x.InReplyToUserIDStr = nil
- }
- } else {
- if x.InReplyToUserIDStr == nil {
- x.InReplyToUserIDStr = new(string)
- }
- yym68 := z.DecBinary()
- _ = yym68
- if false {
- } else {
- *((*string)(x.InReplyToUserIDStr)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Metadata = StatusMetadata{}
- } else {
- yyv69 := &x.Metadata
- yyv69.CodecDecodeSelf(d)
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- if x.Place != nil {
- x.Place = nil
- }
- } else {
- if x.Place == nil {
- x.Place = new(string)
- }
- yym71 := z.DecBinary()
- _ = yym71
- if false {
- } else {
- *((*string)(x.Place)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.RetweetCount = 0
- } else {
- yyv72 := &x.RetweetCount
- yym73 := z.DecBinary()
- _ = yym73
- if false {
- } else {
- *((*int)(yyv72)) = int(r.DecodeInt(codecSelferBitsize9225))
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Retweeted = false
- } else {
- yyv74 := &x.Retweeted
- yym75 := z.DecBinary()
- _ = yym75
- if false {
- } else {
- *((*bool)(yyv74)) = r.DecodeBool()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Source = ""
- } else {
- yyv76 := &x.Source
- yym77 := z.DecBinary()
- _ = yym77
- if false {
- } else {
- *((*string)(yyv76)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Text = ""
- } else {
- yyv78 := &x.Text
- yym79 := z.DecBinary()
- _ = yym79
- if false {
- } else {
- *((*string)(yyv78)) = r.DecodeString()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Truncated = false
- } else {
- yyv80 := &x.Truncated
- yym81 := z.DecBinary()
- _ = yym81
- if false {
- } else {
- *((*bool)(yyv80)) = r.DecodeBool()
- }
- }
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.User = User{}
- } else {
- yyv82 := &x.User
- yyv82.CodecDecodeSelf(d)
- }
- for {
- yyj43++
- if yyhl43 {
- yyb43 = yyj43 > l
- } else {
- yyb43 = r.CheckBreak()
- }
- if yyb43 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj43-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x *LargeStruct) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [2]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(2)
- } else {
- yynn2 = 2
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yy4 := &x.SearchMetadata
- yy4.CodecEncodeSelf(e)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("search_metadata"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- yy6 := &x.SearchMetadata
- yy6.CodecEncodeSelf(e)
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Statuses == nil {
- r.EncodeNil()
- } else {
- yym9 := z.EncBinary()
- _ = yym9
- if false {
- } else {
- h.encSliceStatus(([]Status)(x.Statuses), e)
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("statuses"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Statuses == nil {
- r.EncodeNil()
- } else {
- yym10 := z.EncBinary()
- _ = yym10
- if false {
- } else {
- h.encSliceStatus(([]Status)(x.Statuses), e)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *LargeStruct) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *LargeStruct) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "search_metadata":
- if r.TryDecodeAsNil() {
- x.SearchMetadata = SearchMetadata{}
- } else {
- yyv4 := &x.SearchMetadata
- yyv4.CodecDecodeSelf(d)
- }
- case "statuses":
- if r.TryDecodeAsNil() {
- x.Statuses = nil
- } else {
- yyv5 := &x.Statuses
- yym6 := z.DecBinary()
- _ = yym6
- if false {
- } else {
- h.decSliceStatus((*[]Status)(yyv5), d)
- }
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *LargeStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj7 int
- var yyb7 bool
- var yyhl7 bool = l >= 0
- yyj7++
- if yyhl7 {
- yyb7 = yyj7 > l
- } else {
- yyb7 = r.CheckBreak()
- }
- if yyb7 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.SearchMetadata = SearchMetadata{}
- } else {
- yyv8 := &x.SearchMetadata
- yyv8.CodecDecodeSelf(d)
- }
- yyj7++
- if yyhl7 {
- yyb7 = yyj7 > l
- } else {
- yyb7 = r.CheckBreak()
- }
- if yyb7 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Statuses = nil
- } else {
- yyv9 := &x.Statuses
- yym10 := z.DecBinary()
- _ = yym10
- if false {
- } else {
- h.decSliceStatus((*[]Status)(yyv9), d)
- }
- }
- for {
- yyj7++
- if yyhl7 {
- yyb7 = yyj7 > l
- } else {
- yyb7 = r.CheckBreak()
- }
- if yyb7 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj7-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x *XLStruct) CodecEncodeSelf(e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- if x == nil {
- r.EncodeNil()
- } else {
- yym1 := z.EncBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.EncExt(x) {
- } else {
- yysep2 := !z.EncBinary()
- yy2arr2 := z.EncBasicHandle().StructToArray
- var yyq2 [1]bool
- _, _, _ = yysep2, yyq2, yy2arr2
- const yyr2 bool = false
- var yynn2 int
- if yyr2 || yy2arr2 {
- r.EncodeArrayStart(1)
- } else {
- yynn2 = 1
- for _, b := range yyq2 {
- if b {
- yynn2++
- }
- }
- r.EncodeMapStart(yynn2)
- yynn2 = 0
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if x.Data == nil {
- r.EncodeNil()
- } else {
- yym4 := z.EncBinary()
- _ = yym4
- if false {
- } else {
- h.encSliceLargeStruct(([]LargeStruct)(x.Data), e)
- }
- }
- } else {
- z.EncSendContainerState(codecSelfer_containerMapKey9225)
- r.EncodeString(codecSelferC_UTF89225, string("Data"))
- z.EncSendContainerState(codecSelfer_containerMapValue9225)
- if x.Data == nil {
- r.EncodeNil()
- } else {
- yym5 := z.EncBinary()
- _ = yym5
- if false {
- } else {
- h.encSliceLargeStruct(([]LargeStruct)(x.Data), e)
- }
- }
- }
- if yyr2 || yy2arr2 {
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- z.EncSendContainerState(codecSelfer_containerMapEnd9225)
- }
- }
- }
- }
- func (x *XLStruct) CodecDecodeSelf(d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yym1 := z.DecBinary()
- _ = yym1
- if false {
- } else if z.HasExtensions() && z.DecExt(x) {
- } else {
- yyct2 := r.ContainerType()
- if yyct2 == codecSelferValueTypeMap9225 {
- yyl2 := r.ReadMapStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- } else {
- x.codecDecodeSelfFromMap(yyl2, d)
- }
- } else if yyct2 == codecSelferValueTypeArray9225 {
- yyl2 := r.ReadArrayStart()
- if yyl2 == 0 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- } else {
- x.codecDecodeSelfFromArray(yyl2, d)
- }
- } else {
- panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
- }
- }
- }
- func (x *XLStruct) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yys3Slc = z.DecScratchBuffer() // default slice to decode into
- _ = yys3Slc
- var yyhl3 bool = l >= 0
- for yyj3 := 0; ; yyj3++ {
- if yyhl3 {
- if yyj3 >= l {
- break
- }
- } else {
- if r.CheckBreak() {
- break
- }
- }
- z.DecSendContainerState(codecSelfer_containerMapKey9225)
- yys3Slc = r.DecodeBytes(yys3Slc, true, true)
- yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
- yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
- z.DecSendContainerState(codecSelfer_containerMapValue9225)
- switch yys3 {
- case "Data":
- if r.TryDecodeAsNil() {
- x.Data = nil
- } else {
- yyv4 := &x.Data
- yym5 := z.DecBinary()
- _ = yym5
- if false {
- } else {
- h.decSliceLargeStruct((*[]LargeStruct)(yyv4), d)
- }
- }
- default:
- z.DecStructFieldNotFound(-1, yys3)
- } // end switch yys3
- } // end for yyj3
- z.DecSendContainerState(codecSelfer_containerMapEnd9225)
- }
- func (x *XLStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- var yyj6 int
- var yyb6 bool
- var yyhl6 bool = l >= 0
- yyj6++
- if yyhl6 {
- yyb6 = yyj6 > l
- } else {
- yyb6 = r.CheckBreak()
- }
- if yyb6 {
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- return
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- if r.TryDecodeAsNil() {
- x.Data = nil
- } else {
- yyv7 := &x.Data
- yym8 := z.DecBinary()
- _ = yym8
- if false {
- } else {
- h.decSliceLargeStruct((*[]LargeStruct)(yyv7), d)
- }
- }
- for {
- yyj6++
- if yyhl6 {
- yyb6 = yyj6 > l
- } else {
- yyb6 = r.CheckBreak()
- }
- if yyb6 {
- break
- }
- z.DecSendContainerState(codecSelfer_containerArrayElem9225)
- z.DecStructFieldNotFound(yyj6-1, "")
- }
- z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x codecSelfer9225) encSliceHashtag(v []Hashtag, e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- r.EncodeArrayStart(len(v))
- for _, yyv1 := range v {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yy2 := &yyv1
- yy2.CodecEncodeSelf(e)
- }
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x codecSelfer9225) decSliceHashtag(v *[]Hashtag, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yyv1 := *v
- yyh1, yyl1 := z.DecSliceHelperStart()
- var yyc1 bool
- _ = yyc1
- if yyl1 == 0 {
- if yyv1 == nil {
- yyv1 = []Hashtag{}
- yyc1 = true
- } else if len(yyv1) != 0 {
- yyv1 = yyv1[:0]
- yyc1 = true
- }
- } else if yyl1 > 0 {
- var yyrr1, yyrl1 int
- var yyrt1 bool
- _, _ = yyrl1, yyrt1
- yyrr1 = yyl1 // len(yyv1)
- if yyl1 > cap(yyv1) {
- yyrg1 := len(yyv1) > 0
- yyv21 := yyv1
- yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40)
- if yyrt1 {
- if yyrl1 <= cap(yyv1) {
- yyv1 = yyv1[:yyrl1]
- } else {
- yyv1 = make([]Hashtag, yyrl1)
- }
- } else {
- yyv1 = make([]Hashtag, yyrl1)
- }
- yyc1 = true
- yyrr1 = len(yyv1)
- if yyrg1 {
- copy(yyv1, yyv21)
- }
- } else if yyl1 != len(yyv1) {
- yyv1 = yyv1[:yyl1]
- yyc1 = true
- }
- yyj1 := 0
- for ; yyj1 < yyrr1; yyj1++ {
- yyh1.ElemContainerState(yyj1)
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = Hashtag{}
- } else {
- yyv2 := &yyv1[yyj1]
- yyv2.CodecDecodeSelf(d)
- }
- }
- if yyrt1 {
- for ; yyj1 < yyl1; yyj1++ {
- yyv1 = append(yyv1, Hashtag{})
- yyh1.ElemContainerState(yyj1)
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = Hashtag{}
- } else {
- yyv3 := &yyv1[yyj1]
- yyv3.CodecDecodeSelf(d)
- }
- }
- }
- } else {
- yyj1 := 0
- for ; !r.CheckBreak(); yyj1++ {
- if yyj1 >= len(yyv1) {
- yyv1 = append(yyv1, Hashtag{}) // var yyz1 Hashtag
- yyc1 = true
- }
- yyh1.ElemContainerState(yyj1)
- if yyj1 < len(yyv1) {
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = Hashtag{}
- } else {
- yyv4 := &yyv1[yyj1]
- yyv4.CodecDecodeSelf(d)
- }
- } else {
- z.DecSwallow()
- }
- }
- if yyj1 < len(yyv1) {
- yyv1 = yyv1[:yyj1]
- yyc1 = true
- } else if yyj1 == 0 && yyv1 == nil {
- yyv1 = []Hashtag{}
- yyc1 = true
- }
- }
- yyh1.End()
- if yyc1 {
- *v = yyv1
- }
- }
- func (x codecSelfer9225) encSlicePtrtostring(v []*string, e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- r.EncodeArrayStart(len(v))
- for _, yyv1 := range v {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- if yyv1 == nil {
- r.EncodeNil()
- } else {
- yy2 := *yyv1
- yym3 := z.EncBinary()
- _ = yym3
- if false {
- } else {
- r.EncodeString(codecSelferC_UTF89225, string(yy2))
- }
- }
- }
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x codecSelfer9225) decSlicePtrtostring(v *[]*string, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yyv1 := *v
- yyh1, yyl1 := z.DecSliceHelperStart()
- var yyc1 bool
- _ = yyc1
- if yyl1 == 0 {
- if yyv1 == nil {
- yyv1 = []*string{}
- yyc1 = true
- } else if len(yyv1) != 0 {
- yyv1 = yyv1[:0]
- yyc1 = true
- }
- } else if yyl1 > 0 {
- var yyrr1, yyrl1 int
- var yyrt1 bool
- _, _ = yyrl1, yyrt1
- yyrr1 = yyl1 // len(yyv1)
- if yyl1 > cap(yyv1) {
- yyrg1 := len(yyv1) > 0
- yyv21 := yyv1
- yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
- if yyrt1 {
- if yyrl1 <= cap(yyv1) {
- yyv1 = yyv1[:yyrl1]
- } else {
- yyv1 = make([]*string, yyrl1)
- }
- } else {
- yyv1 = make([]*string, yyrl1)
- }
- yyc1 = true
- yyrr1 = len(yyv1)
- if yyrg1 {
- copy(yyv1, yyv21)
- }
- } else if yyl1 != len(yyv1) {
- yyv1 = yyv1[:yyl1]
- yyc1 = true
- }
- yyj1 := 0
- for ; yyj1 < yyrr1; yyj1++ {
- yyh1.ElemContainerState(yyj1)
- if r.TryDecodeAsNil() {
- if yyv1[yyj1] != nil {
- *yyv1[yyj1] = ""
- }
- } else {
- if yyv1[yyj1] == nil {
- yyv1[yyj1] = new(string)
- }
- yyw2 := yyv1[yyj1]
- yym3 := z.DecBinary()
- _ = yym3
- if false {
- } else {
- *((*string)(yyw2)) = r.DecodeString()
- }
- }
- }
- if yyrt1 {
- for ; yyj1 < yyl1; yyj1++ {
- yyv1 = append(yyv1, nil)
- yyh1.ElemContainerState(yyj1)
- if r.TryDecodeAsNil() {
- if yyv1[yyj1] != nil {
- *yyv1[yyj1] = ""
- }
- } else {
- if yyv1[yyj1] == nil {
- yyv1[yyj1] = new(string)
- }
- yyw4 := yyv1[yyj1]
- yym5 := z.DecBinary()
- _ = yym5
- if false {
- } else {
- *((*string)(yyw4)) = r.DecodeString()
- }
- }
- }
- }
- } else {
- yyj1 := 0
- for ; !r.CheckBreak(); yyj1++ {
- if yyj1 >= len(yyv1) {
- yyv1 = append(yyv1, nil) // var yyz1 *string
- yyc1 = true
- }
- yyh1.ElemContainerState(yyj1)
- if yyj1 < len(yyv1) {
- if r.TryDecodeAsNil() {
- if yyv1[yyj1] != nil {
- *yyv1[yyj1] = ""
- }
- } else {
- if yyv1[yyj1] == nil {
- yyv1[yyj1] = new(string)
- }
- yyw6 := yyv1[yyj1]
- yym7 := z.DecBinary()
- _ = yym7
- if false {
- } else {
- *((*string)(yyw6)) = r.DecodeString()
- }
- }
- } else {
- z.DecSwallow()
- }
- }
- if yyj1 < len(yyv1) {
- yyv1 = yyv1[:yyj1]
- yyc1 = true
- } else if yyj1 == 0 && yyv1 == nil {
- yyv1 = []*string{}
- yyc1 = true
- }
- }
- yyh1.End()
- if yyc1 {
- *v = yyv1
- }
- }
- func (x codecSelfer9225) encSliceURL(v []URL, e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- r.EncodeArrayStart(len(v))
- for _, yyv1 := range v {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yy2 := &yyv1
- yy2.CodecEncodeSelf(e)
- }
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x codecSelfer9225) decSliceURL(v *[]URL, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yyv1 := *v
- yyh1, yyl1 := z.DecSliceHelperStart()
- var yyc1 bool
- _ = yyc1
- if yyl1 == 0 {
- if yyv1 == nil {
- yyv1 = []URL{}
- yyc1 = true
- } else if len(yyv1) != 0 {
- yyv1 = yyv1[:0]
- yyc1 = true
- }
- } else if yyl1 > 0 {
- var yyrr1, yyrl1 int
- var yyrt1 bool
- _, _ = yyrl1, yyrt1
- yyrr1 = yyl1 // len(yyv1)
- if yyl1 > cap(yyv1) {
- yyrg1 := len(yyv1) > 0
- yyv21 := yyv1
- yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48)
- if yyrt1 {
- if yyrl1 <= cap(yyv1) {
- yyv1 = yyv1[:yyrl1]
- } else {
- yyv1 = make([]URL, yyrl1)
- }
- } else {
- yyv1 = make([]URL, yyrl1)
- }
- yyc1 = true
- yyrr1 = len(yyv1)
- if yyrg1 {
- copy(yyv1, yyv21)
- }
- } else if yyl1 != len(yyv1) {
- yyv1 = yyv1[:yyl1]
- yyc1 = true
- }
- yyj1 := 0
- for ; yyj1 < yyrr1; yyj1++ {
- yyh1.ElemContainerState(yyj1)
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = URL{}
- } else {
- yyv2 := &yyv1[yyj1]
- yyv2.CodecDecodeSelf(d)
- }
- }
- if yyrt1 {
- for ; yyj1 < yyl1; yyj1++ {
- yyv1 = append(yyv1, URL{})
- yyh1.ElemContainerState(yyj1)
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = URL{}
- } else {
- yyv3 := &yyv1[yyj1]
- yyv3.CodecDecodeSelf(d)
- }
- }
- }
- } else {
- yyj1 := 0
- for ; !r.CheckBreak(); yyj1++ {
- if yyj1 >= len(yyv1) {
- yyv1 = append(yyv1, URL{}) // var yyz1 URL
- yyc1 = true
- }
- yyh1.ElemContainerState(yyj1)
- if yyj1 < len(yyv1) {
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = URL{}
- } else {
- yyv4 := &yyv1[yyj1]
- yyv4.CodecDecodeSelf(d)
- }
- } else {
- z.DecSwallow()
- }
- }
- if yyj1 < len(yyv1) {
- yyv1 = yyv1[:yyj1]
- yyc1 = true
- } else if yyj1 == 0 && yyv1 == nil {
- yyv1 = []URL{}
- yyc1 = true
- }
- }
- yyh1.End()
- if yyc1 {
- *v = yyv1
- }
- }
- func (x codecSelfer9225) encSliceStatus(v []Status, e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- r.EncodeArrayStart(len(v))
- for _, yyv1 := range v {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yy2 := &yyv1
- yy2.CodecEncodeSelf(e)
- }
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x codecSelfer9225) decSliceStatus(v *[]Status, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yyv1 := *v
- yyh1, yyl1 := z.DecSliceHelperStart()
- var yyc1 bool
- _ = yyc1
- if yyl1 == 0 {
- if yyv1 == nil {
- yyv1 = []Status{}
- yyc1 = true
- } else if len(yyv1) != 0 {
- yyv1 = yyv1[:0]
- yyc1 = true
- }
- } else if yyl1 > 0 {
- var yyrr1, yyrl1 int
- var yyrt1 bool
- _, _ = yyrl1, yyrt1
- yyrr1 = yyl1 // len(yyv1)
- if yyl1 > cap(yyv1) {
- yyrg1 := len(yyv1) > 0
- yyv21 := yyv1
- yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 752)
- if yyrt1 {
- if yyrl1 <= cap(yyv1) {
- yyv1 = yyv1[:yyrl1]
- } else {
- yyv1 = make([]Status, yyrl1)
- }
- } else {
- yyv1 = make([]Status, yyrl1)
- }
- yyc1 = true
- yyrr1 = len(yyv1)
- if yyrg1 {
- copy(yyv1, yyv21)
- }
- } else if yyl1 != len(yyv1) {
- yyv1 = yyv1[:yyl1]
- yyc1 = true
- }
- yyj1 := 0
- for ; yyj1 < yyrr1; yyj1++ {
- yyh1.ElemContainerState(yyj1)
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = Status{}
- } else {
- yyv2 := &yyv1[yyj1]
- yyv2.CodecDecodeSelf(d)
- }
- }
- if yyrt1 {
- for ; yyj1 < yyl1; yyj1++ {
- yyv1 = append(yyv1, Status{})
- yyh1.ElemContainerState(yyj1)
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = Status{}
- } else {
- yyv3 := &yyv1[yyj1]
- yyv3.CodecDecodeSelf(d)
- }
- }
- }
- } else {
- yyj1 := 0
- for ; !r.CheckBreak(); yyj1++ {
- if yyj1 >= len(yyv1) {
- yyv1 = append(yyv1, Status{}) // var yyz1 Status
- yyc1 = true
- }
- yyh1.ElemContainerState(yyj1)
- if yyj1 < len(yyv1) {
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = Status{}
- } else {
- yyv4 := &yyv1[yyj1]
- yyv4.CodecDecodeSelf(d)
- }
- } else {
- z.DecSwallow()
- }
- }
- if yyj1 < len(yyv1) {
- yyv1 = yyv1[:yyj1]
- yyc1 = true
- } else if yyj1 == 0 && yyv1 == nil {
- yyv1 = []Status{}
- yyc1 = true
- }
- }
- yyh1.End()
- if yyc1 {
- *v = yyv1
- }
- }
- func (x codecSelfer9225) encSliceLargeStruct(v []LargeStruct, e *codec1978.Encoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperEncoder(e)
- _, _, _ = h, z, r
- r.EncodeArrayStart(len(v))
- for _, yyv1 := range v {
- z.EncSendContainerState(codecSelfer_containerArrayElem9225)
- yy2 := &yyv1
- yy2.CodecEncodeSelf(e)
- }
- z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
- }
- func (x codecSelfer9225) decSliceLargeStruct(v *[]LargeStruct, d *codec1978.Decoder) {
- var h codecSelfer9225
- z, r := codec1978.GenHelperDecoder(d)
- _, _, _ = h, z, r
- yyv1 := *v
- yyh1, yyl1 := z.DecSliceHelperStart()
- var yyc1 bool
- _ = yyc1
- if yyl1 == 0 {
- if yyv1 == nil {
- yyv1 = []LargeStruct{}
- yyc1 = true
- } else if len(yyv1) != 0 {
- yyv1 = yyv1[:0]
- yyc1 = true
- }
- } else if yyl1 > 0 {
- var yyrr1, yyrl1 int
- var yyrt1 bool
- _, _ = yyrl1, yyrt1
- yyrr1 = yyl1 // len(yyv1)
- if yyl1 > cap(yyv1) {
- yyrg1 := len(yyv1) > 0
- yyv21 := yyv1
- yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 136)
- if yyrt1 {
- if yyrl1 <= cap(yyv1) {
- yyv1 = yyv1[:yyrl1]
- } else {
- yyv1 = make([]LargeStruct, yyrl1)
- }
- } else {
- yyv1 = make([]LargeStruct, yyrl1)
- }
- yyc1 = true
- yyrr1 = len(yyv1)
- if yyrg1 {
- copy(yyv1, yyv21)
- }
- } else if yyl1 != len(yyv1) {
- yyv1 = yyv1[:yyl1]
- yyc1 = true
- }
- yyj1 := 0
- for ; yyj1 < yyrr1; yyj1++ {
- yyh1.ElemContainerState(yyj1)
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = LargeStruct{}
- } else {
- yyv2 := &yyv1[yyj1]
- yyv2.CodecDecodeSelf(d)
- }
- }
- if yyrt1 {
- for ; yyj1 < yyl1; yyj1++ {
- yyv1 = append(yyv1, LargeStruct{})
- yyh1.ElemContainerState(yyj1)
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = LargeStruct{}
- } else {
- yyv3 := &yyv1[yyj1]
- yyv3.CodecDecodeSelf(d)
- }
- }
- }
- } else {
- yyj1 := 0
- for ; !r.CheckBreak(); yyj1++ {
- if yyj1 >= len(yyv1) {
- yyv1 = append(yyv1, LargeStruct{}) // var yyz1 LargeStruct
- yyc1 = true
- }
- yyh1.ElemContainerState(yyj1)
- if yyj1 < len(yyv1) {
- if r.TryDecodeAsNil() {
- yyv1[yyj1] = LargeStruct{}
- } else {
- yyv4 := &yyv1[yyj1]
- yyv4.CodecDecodeSelf(d)
- }
- } else {
- z.DecSwallow()
- }
- }
- if yyj1 < len(yyv1) {
- yyv1 = yyv1[:yyj1]
- yyc1 = true
- } else if yyj1 == 0 && yyv1 == nil {
- yyv1 = []LargeStruct{}
- yyc1 = true
- }
- }
- yyh1.End()
- if yyc1 {
- *v = yyv1
- }
- }
|