data_codec.go 155 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914
  1. //+build use_codec
  2. //+build !easyjson_nounsafe
  3. //+build !appengine
  4. // ************************************************************
  5. // DO NOT EDIT.
  6. // THIS FILE IS AUTO-GENERATED BY codecgen.
  7. // ************************************************************
  8. package benchmark
  9. import (
  10. "errors"
  11. "fmt"
  12. "reflect"
  13. "runtime"
  14. "unsafe"
  15. codec1978 "github.com/ugorji/go/codec"
  16. )
  17. const (
  18. // ----- content types ----
  19. codecSelferC_UTF89225 = 1
  20. codecSelferC_RAW9225 = 0
  21. // ----- value types used ----
  22. codecSelferValueTypeArray9225 = 10
  23. codecSelferValueTypeMap9225 = 9
  24. // ----- containerStateValues ----
  25. codecSelfer_containerMapKey9225 = 2
  26. codecSelfer_containerMapValue9225 = 3
  27. codecSelfer_containerMapEnd9225 = 4
  28. codecSelfer_containerArrayElem9225 = 6
  29. codecSelfer_containerArrayEnd9225 = 7
  30. )
  31. var (
  32. codecSelferBitsize9225 = uint8(reflect.TypeOf(uint(0)).Bits())
  33. codecSelferOnlyMapOrArrayEncodeToStructErr9225 = errors.New(`only encoded map or array can be decoded into a struct`)
  34. )
  35. type codecSelferUnsafeString9225 struct {
  36. Data uintptr
  37. Len int
  38. }
  39. type codecSelfer9225 struct{}
  40. func init() {
  41. if codec1978.GenVersion != 5 {
  42. _, file, _, _ := runtime.Caller(0)
  43. err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v",
  44. 5, codec1978.GenVersion, file)
  45. panic(err)
  46. }
  47. if false { // reference the types, but skip this branch at build/run time
  48. var v0 unsafe.Pointer
  49. _ = v0
  50. }
  51. }
  52. func (x *SearchMetadata) CodecEncodeSelf(e *codec1978.Encoder) {
  53. var h codecSelfer9225
  54. z, r := codec1978.GenHelperEncoder(e)
  55. _, _, _ = h, z, r
  56. if x == nil {
  57. r.EncodeNil()
  58. } else {
  59. yym1 := z.EncBinary()
  60. _ = yym1
  61. if false {
  62. } else if z.HasExtensions() && z.EncExt(x) {
  63. } else {
  64. yysep2 := !z.EncBinary()
  65. yy2arr2 := z.EncBasicHandle().StructToArray
  66. var yyq2 [9]bool
  67. _, _, _ = yysep2, yyq2, yy2arr2
  68. const yyr2 bool = false
  69. var yynn2 int
  70. if yyr2 || yy2arr2 {
  71. r.EncodeArrayStart(9)
  72. } else {
  73. yynn2 = 9
  74. for _, b := range yyq2 {
  75. if b {
  76. yynn2++
  77. }
  78. }
  79. r.EncodeMapStart(yynn2)
  80. yynn2 = 0
  81. }
  82. if yyr2 || yy2arr2 {
  83. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  84. yym4 := z.EncBinary()
  85. _ = yym4
  86. if false {
  87. } else {
  88. r.EncodeFloat64(float64(x.CompletedIn))
  89. }
  90. } else {
  91. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  92. r.EncodeString(codecSelferC_UTF89225, string("completed_in"))
  93. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  94. yym5 := z.EncBinary()
  95. _ = yym5
  96. if false {
  97. } else {
  98. r.EncodeFloat64(float64(x.CompletedIn))
  99. }
  100. }
  101. if yyr2 || yy2arr2 {
  102. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  103. yym7 := z.EncBinary()
  104. _ = yym7
  105. if false {
  106. } else {
  107. r.EncodeInt(int64(x.Count))
  108. }
  109. } else {
  110. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  111. r.EncodeString(codecSelferC_UTF89225, string("count"))
  112. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  113. yym8 := z.EncBinary()
  114. _ = yym8
  115. if false {
  116. } else {
  117. r.EncodeInt(int64(x.Count))
  118. }
  119. }
  120. if yyr2 || yy2arr2 {
  121. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  122. yym10 := z.EncBinary()
  123. _ = yym10
  124. if false {
  125. } else {
  126. r.EncodeInt(int64(x.MaxID))
  127. }
  128. } else {
  129. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  130. r.EncodeString(codecSelferC_UTF89225, string("max_id"))
  131. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  132. yym11 := z.EncBinary()
  133. _ = yym11
  134. if false {
  135. } else {
  136. r.EncodeInt(int64(x.MaxID))
  137. }
  138. }
  139. if yyr2 || yy2arr2 {
  140. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  141. yym13 := z.EncBinary()
  142. _ = yym13
  143. if false {
  144. } else {
  145. r.EncodeString(codecSelferC_UTF89225, string(x.MaxIDStr))
  146. }
  147. } else {
  148. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  149. r.EncodeString(codecSelferC_UTF89225, string("max_id_str"))
  150. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  151. yym14 := z.EncBinary()
  152. _ = yym14
  153. if false {
  154. } else {
  155. r.EncodeString(codecSelferC_UTF89225, string(x.MaxIDStr))
  156. }
  157. }
  158. if yyr2 || yy2arr2 {
  159. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  160. yym16 := z.EncBinary()
  161. _ = yym16
  162. if false {
  163. } else {
  164. r.EncodeString(codecSelferC_UTF89225, string(x.NextResults))
  165. }
  166. } else {
  167. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  168. r.EncodeString(codecSelferC_UTF89225, string("next_results"))
  169. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  170. yym17 := z.EncBinary()
  171. _ = yym17
  172. if false {
  173. } else {
  174. r.EncodeString(codecSelferC_UTF89225, string(x.NextResults))
  175. }
  176. }
  177. if yyr2 || yy2arr2 {
  178. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  179. yym19 := z.EncBinary()
  180. _ = yym19
  181. if false {
  182. } else {
  183. r.EncodeString(codecSelferC_UTF89225, string(x.Query))
  184. }
  185. } else {
  186. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  187. r.EncodeString(codecSelferC_UTF89225, string("query"))
  188. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  189. yym20 := z.EncBinary()
  190. _ = yym20
  191. if false {
  192. } else {
  193. r.EncodeString(codecSelferC_UTF89225, string(x.Query))
  194. }
  195. }
  196. if yyr2 || yy2arr2 {
  197. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  198. yym22 := z.EncBinary()
  199. _ = yym22
  200. if false {
  201. } else {
  202. r.EncodeString(codecSelferC_UTF89225, string(x.RefreshURL))
  203. }
  204. } else {
  205. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  206. r.EncodeString(codecSelferC_UTF89225, string("refresh_url"))
  207. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  208. yym23 := z.EncBinary()
  209. _ = yym23
  210. if false {
  211. } else {
  212. r.EncodeString(codecSelferC_UTF89225, string(x.RefreshURL))
  213. }
  214. }
  215. if yyr2 || yy2arr2 {
  216. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  217. yym25 := z.EncBinary()
  218. _ = yym25
  219. if false {
  220. } else {
  221. r.EncodeInt(int64(x.SinceID))
  222. }
  223. } else {
  224. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  225. r.EncodeString(codecSelferC_UTF89225, string("since_id"))
  226. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  227. yym26 := z.EncBinary()
  228. _ = yym26
  229. if false {
  230. } else {
  231. r.EncodeInt(int64(x.SinceID))
  232. }
  233. }
  234. if yyr2 || yy2arr2 {
  235. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  236. yym28 := z.EncBinary()
  237. _ = yym28
  238. if false {
  239. } else {
  240. r.EncodeString(codecSelferC_UTF89225, string(x.SinceIDStr))
  241. }
  242. } else {
  243. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  244. r.EncodeString(codecSelferC_UTF89225, string("since_id_str"))
  245. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  246. yym29 := z.EncBinary()
  247. _ = yym29
  248. if false {
  249. } else {
  250. r.EncodeString(codecSelferC_UTF89225, string(x.SinceIDStr))
  251. }
  252. }
  253. if yyr2 || yy2arr2 {
  254. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  255. } else {
  256. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  257. }
  258. }
  259. }
  260. }
  261. func (x *SearchMetadata) CodecDecodeSelf(d *codec1978.Decoder) {
  262. var h codecSelfer9225
  263. z, r := codec1978.GenHelperDecoder(d)
  264. _, _, _ = h, z, r
  265. yym1 := z.DecBinary()
  266. _ = yym1
  267. if false {
  268. } else if z.HasExtensions() && z.DecExt(x) {
  269. } else {
  270. yyct2 := r.ContainerType()
  271. if yyct2 == codecSelferValueTypeMap9225 {
  272. yyl2 := r.ReadMapStart()
  273. if yyl2 == 0 {
  274. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  275. } else {
  276. x.codecDecodeSelfFromMap(yyl2, d)
  277. }
  278. } else if yyct2 == codecSelferValueTypeArray9225 {
  279. yyl2 := r.ReadArrayStart()
  280. if yyl2 == 0 {
  281. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  282. } else {
  283. x.codecDecodeSelfFromArray(yyl2, d)
  284. }
  285. } else {
  286. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  287. }
  288. }
  289. }
  290. func (x *SearchMetadata) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  291. var h codecSelfer9225
  292. z, r := codec1978.GenHelperDecoder(d)
  293. _, _, _ = h, z, r
  294. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  295. _ = yys3Slc
  296. var yyhl3 bool = l >= 0
  297. for yyj3 := 0; ; yyj3++ {
  298. if yyhl3 {
  299. if yyj3 >= l {
  300. break
  301. }
  302. } else {
  303. if r.CheckBreak() {
  304. break
  305. }
  306. }
  307. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  308. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  309. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  310. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  311. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  312. switch yys3 {
  313. case "completed_in":
  314. if r.TryDecodeAsNil() {
  315. x.CompletedIn = 0
  316. } else {
  317. yyv4 := &x.CompletedIn
  318. yym5 := z.DecBinary()
  319. _ = yym5
  320. if false {
  321. } else {
  322. *((*float64)(yyv4)) = float64(r.DecodeFloat(false))
  323. }
  324. }
  325. case "count":
  326. if r.TryDecodeAsNil() {
  327. x.Count = 0
  328. } else {
  329. yyv6 := &x.Count
  330. yym7 := z.DecBinary()
  331. _ = yym7
  332. if false {
  333. } else {
  334. *((*int)(yyv6)) = int(r.DecodeInt(codecSelferBitsize9225))
  335. }
  336. }
  337. case "max_id":
  338. if r.TryDecodeAsNil() {
  339. x.MaxID = 0
  340. } else {
  341. yyv8 := &x.MaxID
  342. yym9 := z.DecBinary()
  343. _ = yym9
  344. if false {
  345. } else {
  346. *((*int)(yyv8)) = int(r.DecodeInt(codecSelferBitsize9225))
  347. }
  348. }
  349. case "max_id_str":
  350. if r.TryDecodeAsNil() {
  351. x.MaxIDStr = ""
  352. } else {
  353. yyv10 := &x.MaxIDStr
  354. yym11 := z.DecBinary()
  355. _ = yym11
  356. if false {
  357. } else {
  358. *((*string)(yyv10)) = r.DecodeString()
  359. }
  360. }
  361. case "next_results":
  362. if r.TryDecodeAsNil() {
  363. x.NextResults = ""
  364. } else {
  365. yyv12 := &x.NextResults
  366. yym13 := z.DecBinary()
  367. _ = yym13
  368. if false {
  369. } else {
  370. *((*string)(yyv12)) = r.DecodeString()
  371. }
  372. }
  373. case "query":
  374. if r.TryDecodeAsNil() {
  375. x.Query = ""
  376. } else {
  377. yyv14 := &x.Query
  378. yym15 := z.DecBinary()
  379. _ = yym15
  380. if false {
  381. } else {
  382. *((*string)(yyv14)) = r.DecodeString()
  383. }
  384. }
  385. case "refresh_url":
  386. if r.TryDecodeAsNil() {
  387. x.RefreshURL = ""
  388. } else {
  389. yyv16 := &x.RefreshURL
  390. yym17 := z.DecBinary()
  391. _ = yym17
  392. if false {
  393. } else {
  394. *((*string)(yyv16)) = r.DecodeString()
  395. }
  396. }
  397. case "since_id":
  398. if r.TryDecodeAsNil() {
  399. x.SinceID = 0
  400. } else {
  401. yyv18 := &x.SinceID
  402. yym19 := z.DecBinary()
  403. _ = yym19
  404. if false {
  405. } else {
  406. *((*int)(yyv18)) = int(r.DecodeInt(codecSelferBitsize9225))
  407. }
  408. }
  409. case "since_id_str":
  410. if r.TryDecodeAsNil() {
  411. x.SinceIDStr = ""
  412. } else {
  413. yyv20 := &x.SinceIDStr
  414. yym21 := z.DecBinary()
  415. _ = yym21
  416. if false {
  417. } else {
  418. *((*string)(yyv20)) = r.DecodeString()
  419. }
  420. }
  421. default:
  422. z.DecStructFieldNotFound(-1, yys3)
  423. } // end switch yys3
  424. } // end for yyj3
  425. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  426. }
  427. func (x *SearchMetadata) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  428. var h codecSelfer9225
  429. z, r := codec1978.GenHelperDecoder(d)
  430. _, _, _ = h, z, r
  431. var yyj22 int
  432. var yyb22 bool
  433. var yyhl22 bool = l >= 0
  434. yyj22++
  435. if yyhl22 {
  436. yyb22 = yyj22 > l
  437. } else {
  438. yyb22 = r.CheckBreak()
  439. }
  440. if yyb22 {
  441. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  442. return
  443. }
  444. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  445. if r.TryDecodeAsNil() {
  446. x.CompletedIn = 0
  447. } else {
  448. yyv23 := &x.CompletedIn
  449. yym24 := z.DecBinary()
  450. _ = yym24
  451. if false {
  452. } else {
  453. *((*float64)(yyv23)) = float64(r.DecodeFloat(false))
  454. }
  455. }
  456. yyj22++
  457. if yyhl22 {
  458. yyb22 = yyj22 > l
  459. } else {
  460. yyb22 = r.CheckBreak()
  461. }
  462. if yyb22 {
  463. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  464. return
  465. }
  466. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  467. if r.TryDecodeAsNil() {
  468. x.Count = 0
  469. } else {
  470. yyv25 := &x.Count
  471. yym26 := z.DecBinary()
  472. _ = yym26
  473. if false {
  474. } else {
  475. *((*int)(yyv25)) = int(r.DecodeInt(codecSelferBitsize9225))
  476. }
  477. }
  478. yyj22++
  479. if yyhl22 {
  480. yyb22 = yyj22 > l
  481. } else {
  482. yyb22 = r.CheckBreak()
  483. }
  484. if yyb22 {
  485. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  486. return
  487. }
  488. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  489. if r.TryDecodeAsNil() {
  490. x.MaxID = 0
  491. } else {
  492. yyv27 := &x.MaxID
  493. yym28 := z.DecBinary()
  494. _ = yym28
  495. if false {
  496. } else {
  497. *((*int)(yyv27)) = int(r.DecodeInt(codecSelferBitsize9225))
  498. }
  499. }
  500. yyj22++
  501. if yyhl22 {
  502. yyb22 = yyj22 > l
  503. } else {
  504. yyb22 = r.CheckBreak()
  505. }
  506. if yyb22 {
  507. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  508. return
  509. }
  510. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  511. if r.TryDecodeAsNil() {
  512. x.MaxIDStr = ""
  513. } else {
  514. yyv29 := &x.MaxIDStr
  515. yym30 := z.DecBinary()
  516. _ = yym30
  517. if false {
  518. } else {
  519. *((*string)(yyv29)) = r.DecodeString()
  520. }
  521. }
  522. yyj22++
  523. if yyhl22 {
  524. yyb22 = yyj22 > l
  525. } else {
  526. yyb22 = r.CheckBreak()
  527. }
  528. if yyb22 {
  529. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  530. return
  531. }
  532. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  533. if r.TryDecodeAsNil() {
  534. x.NextResults = ""
  535. } else {
  536. yyv31 := &x.NextResults
  537. yym32 := z.DecBinary()
  538. _ = yym32
  539. if false {
  540. } else {
  541. *((*string)(yyv31)) = r.DecodeString()
  542. }
  543. }
  544. yyj22++
  545. if yyhl22 {
  546. yyb22 = yyj22 > l
  547. } else {
  548. yyb22 = r.CheckBreak()
  549. }
  550. if yyb22 {
  551. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  552. return
  553. }
  554. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  555. if r.TryDecodeAsNil() {
  556. x.Query = ""
  557. } else {
  558. yyv33 := &x.Query
  559. yym34 := z.DecBinary()
  560. _ = yym34
  561. if false {
  562. } else {
  563. *((*string)(yyv33)) = r.DecodeString()
  564. }
  565. }
  566. yyj22++
  567. if yyhl22 {
  568. yyb22 = yyj22 > l
  569. } else {
  570. yyb22 = r.CheckBreak()
  571. }
  572. if yyb22 {
  573. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  574. return
  575. }
  576. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  577. if r.TryDecodeAsNil() {
  578. x.RefreshURL = ""
  579. } else {
  580. yyv35 := &x.RefreshURL
  581. yym36 := z.DecBinary()
  582. _ = yym36
  583. if false {
  584. } else {
  585. *((*string)(yyv35)) = r.DecodeString()
  586. }
  587. }
  588. yyj22++
  589. if yyhl22 {
  590. yyb22 = yyj22 > l
  591. } else {
  592. yyb22 = r.CheckBreak()
  593. }
  594. if yyb22 {
  595. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  596. return
  597. }
  598. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  599. if r.TryDecodeAsNil() {
  600. x.SinceID = 0
  601. } else {
  602. yyv37 := &x.SinceID
  603. yym38 := z.DecBinary()
  604. _ = yym38
  605. if false {
  606. } else {
  607. *((*int)(yyv37)) = int(r.DecodeInt(codecSelferBitsize9225))
  608. }
  609. }
  610. yyj22++
  611. if yyhl22 {
  612. yyb22 = yyj22 > l
  613. } else {
  614. yyb22 = r.CheckBreak()
  615. }
  616. if yyb22 {
  617. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  618. return
  619. }
  620. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  621. if r.TryDecodeAsNil() {
  622. x.SinceIDStr = ""
  623. } else {
  624. yyv39 := &x.SinceIDStr
  625. yym40 := z.DecBinary()
  626. _ = yym40
  627. if false {
  628. } else {
  629. *((*string)(yyv39)) = r.DecodeString()
  630. }
  631. }
  632. for {
  633. yyj22++
  634. if yyhl22 {
  635. yyb22 = yyj22 > l
  636. } else {
  637. yyb22 = r.CheckBreak()
  638. }
  639. if yyb22 {
  640. break
  641. }
  642. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  643. z.DecStructFieldNotFound(yyj22-1, "")
  644. }
  645. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  646. }
  647. func (x *Hashtag) CodecEncodeSelf(e *codec1978.Encoder) {
  648. var h codecSelfer9225
  649. z, r := codec1978.GenHelperEncoder(e)
  650. _, _, _ = h, z, r
  651. if x == nil {
  652. r.EncodeNil()
  653. } else {
  654. yym1 := z.EncBinary()
  655. _ = yym1
  656. if false {
  657. } else if z.HasExtensions() && z.EncExt(x) {
  658. } else {
  659. yysep2 := !z.EncBinary()
  660. yy2arr2 := z.EncBasicHandle().StructToArray
  661. var yyq2 [2]bool
  662. _, _, _ = yysep2, yyq2, yy2arr2
  663. const yyr2 bool = false
  664. var yynn2 int
  665. if yyr2 || yy2arr2 {
  666. r.EncodeArrayStart(2)
  667. } else {
  668. yynn2 = 2
  669. for _, b := range yyq2 {
  670. if b {
  671. yynn2++
  672. }
  673. }
  674. r.EncodeMapStart(yynn2)
  675. yynn2 = 0
  676. }
  677. if yyr2 || yy2arr2 {
  678. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  679. if x.Indices == nil {
  680. r.EncodeNil()
  681. } else {
  682. yym4 := z.EncBinary()
  683. _ = yym4
  684. if false {
  685. } else {
  686. z.F.EncSliceIntV(x.Indices, false, e)
  687. }
  688. }
  689. } else {
  690. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  691. r.EncodeString(codecSelferC_UTF89225, string("indices"))
  692. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  693. if x.Indices == nil {
  694. r.EncodeNil()
  695. } else {
  696. yym5 := z.EncBinary()
  697. _ = yym5
  698. if false {
  699. } else {
  700. z.F.EncSliceIntV(x.Indices, false, e)
  701. }
  702. }
  703. }
  704. if yyr2 || yy2arr2 {
  705. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  706. yym7 := z.EncBinary()
  707. _ = yym7
  708. if false {
  709. } else {
  710. r.EncodeString(codecSelferC_UTF89225, string(x.Text))
  711. }
  712. } else {
  713. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  714. r.EncodeString(codecSelferC_UTF89225, string("text"))
  715. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  716. yym8 := z.EncBinary()
  717. _ = yym8
  718. if false {
  719. } else {
  720. r.EncodeString(codecSelferC_UTF89225, string(x.Text))
  721. }
  722. }
  723. if yyr2 || yy2arr2 {
  724. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  725. } else {
  726. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  727. }
  728. }
  729. }
  730. }
  731. func (x *Hashtag) CodecDecodeSelf(d *codec1978.Decoder) {
  732. var h codecSelfer9225
  733. z, r := codec1978.GenHelperDecoder(d)
  734. _, _, _ = h, z, r
  735. yym1 := z.DecBinary()
  736. _ = yym1
  737. if false {
  738. } else if z.HasExtensions() && z.DecExt(x) {
  739. } else {
  740. yyct2 := r.ContainerType()
  741. if yyct2 == codecSelferValueTypeMap9225 {
  742. yyl2 := r.ReadMapStart()
  743. if yyl2 == 0 {
  744. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  745. } else {
  746. x.codecDecodeSelfFromMap(yyl2, d)
  747. }
  748. } else if yyct2 == codecSelferValueTypeArray9225 {
  749. yyl2 := r.ReadArrayStart()
  750. if yyl2 == 0 {
  751. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  752. } else {
  753. x.codecDecodeSelfFromArray(yyl2, d)
  754. }
  755. } else {
  756. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  757. }
  758. }
  759. }
  760. func (x *Hashtag) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  761. var h codecSelfer9225
  762. z, r := codec1978.GenHelperDecoder(d)
  763. _, _, _ = h, z, r
  764. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  765. _ = yys3Slc
  766. var yyhl3 bool = l >= 0
  767. for yyj3 := 0; ; yyj3++ {
  768. if yyhl3 {
  769. if yyj3 >= l {
  770. break
  771. }
  772. } else {
  773. if r.CheckBreak() {
  774. break
  775. }
  776. }
  777. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  778. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  779. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  780. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  781. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  782. switch yys3 {
  783. case "indices":
  784. if r.TryDecodeAsNil() {
  785. x.Indices = nil
  786. } else {
  787. yyv4 := &x.Indices
  788. yym5 := z.DecBinary()
  789. _ = yym5
  790. if false {
  791. } else {
  792. z.F.DecSliceIntX(yyv4, false, d)
  793. }
  794. }
  795. case "text":
  796. if r.TryDecodeAsNil() {
  797. x.Text = ""
  798. } else {
  799. yyv6 := &x.Text
  800. yym7 := z.DecBinary()
  801. _ = yym7
  802. if false {
  803. } else {
  804. *((*string)(yyv6)) = r.DecodeString()
  805. }
  806. }
  807. default:
  808. z.DecStructFieldNotFound(-1, yys3)
  809. } // end switch yys3
  810. } // end for yyj3
  811. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  812. }
  813. func (x *Hashtag) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  814. var h codecSelfer9225
  815. z, r := codec1978.GenHelperDecoder(d)
  816. _, _, _ = h, z, r
  817. var yyj8 int
  818. var yyb8 bool
  819. var yyhl8 bool = l >= 0
  820. yyj8++
  821. if yyhl8 {
  822. yyb8 = yyj8 > l
  823. } else {
  824. yyb8 = r.CheckBreak()
  825. }
  826. if yyb8 {
  827. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  828. return
  829. }
  830. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  831. if r.TryDecodeAsNil() {
  832. x.Indices = nil
  833. } else {
  834. yyv9 := &x.Indices
  835. yym10 := z.DecBinary()
  836. _ = yym10
  837. if false {
  838. } else {
  839. z.F.DecSliceIntX(yyv9, false, d)
  840. }
  841. }
  842. yyj8++
  843. if yyhl8 {
  844. yyb8 = yyj8 > l
  845. } else {
  846. yyb8 = r.CheckBreak()
  847. }
  848. if yyb8 {
  849. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  850. return
  851. }
  852. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  853. if r.TryDecodeAsNil() {
  854. x.Text = ""
  855. } else {
  856. yyv11 := &x.Text
  857. yym12 := z.DecBinary()
  858. _ = yym12
  859. if false {
  860. } else {
  861. *((*string)(yyv11)) = r.DecodeString()
  862. }
  863. }
  864. for {
  865. yyj8++
  866. if yyhl8 {
  867. yyb8 = yyj8 > l
  868. } else {
  869. yyb8 = r.CheckBreak()
  870. }
  871. if yyb8 {
  872. break
  873. }
  874. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  875. z.DecStructFieldNotFound(yyj8-1, "")
  876. }
  877. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  878. }
  879. func (x *Entities) CodecEncodeSelf(e *codec1978.Encoder) {
  880. var h codecSelfer9225
  881. z, r := codec1978.GenHelperEncoder(e)
  882. _, _, _ = h, z, r
  883. if x == nil {
  884. r.EncodeNil()
  885. } else {
  886. yym1 := z.EncBinary()
  887. _ = yym1
  888. if false {
  889. } else if z.HasExtensions() && z.EncExt(x) {
  890. } else {
  891. yysep2 := !z.EncBinary()
  892. yy2arr2 := z.EncBasicHandle().StructToArray
  893. var yyq2 [3]bool
  894. _, _, _ = yysep2, yyq2, yy2arr2
  895. const yyr2 bool = false
  896. var yynn2 int
  897. if yyr2 || yy2arr2 {
  898. r.EncodeArrayStart(3)
  899. } else {
  900. yynn2 = 3
  901. for _, b := range yyq2 {
  902. if b {
  903. yynn2++
  904. }
  905. }
  906. r.EncodeMapStart(yynn2)
  907. yynn2 = 0
  908. }
  909. if yyr2 || yy2arr2 {
  910. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  911. if x.Hashtags == nil {
  912. r.EncodeNil()
  913. } else {
  914. yym4 := z.EncBinary()
  915. _ = yym4
  916. if false {
  917. } else {
  918. h.encSliceHashtag(([]Hashtag)(x.Hashtags), e)
  919. }
  920. }
  921. } else {
  922. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  923. r.EncodeString(codecSelferC_UTF89225, string("hashtags"))
  924. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  925. if x.Hashtags == nil {
  926. r.EncodeNil()
  927. } else {
  928. yym5 := z.EncBinary()
  929. _ = yym5
  930. if false {
  931. } else {
  932. h.encSliceHashtag(([]Hashtag)(x.Hashtags), e)
  933. }
  934. }
  935. }
  936. if yyr2 || yy2arr2 {
  937. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  938. if x.Urls == nil {
  939. r.EncodeNil()
  940. } else {
  941. yym7 := z.EncBinary()
  942. _ = yym7
  943. if false {
  944. } else {
  945. h.encSlicePtrtostring(([]*string)(x.Urls), e)
  946. }
  947. }
  948. } else {
  949. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  950. r.EncodeString(codecSelferC_UTF89225, string("urls"))
  951. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  952. if x.Urls == nil {
  953. r.EncodeNil()
  954. } else {
  955. yym8 := z.EncBinary()
  956. _ = yym8
  957. if false {
  958. } else {
  959. h.encSlicePtrtostring(([]*string)(x.Urls), e)
  960. }
  961. }
  962. }
  963. if yyr2 || yy2arr2 {
  964. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  965. if x.UserMentions == nil {
  966. r.EncodeNil()
  967. } else {
  968. yym10 := z.EncBinary()
  969. _ = yym10
  970. if false {
  971. } else {
  972. h.encSlicePtrtostring(([]*string)(x.UserMentions), e)
  973. }
  974. }
  975. } else {
  976. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  977. r.EncodeString(codecSelferC_UTF89225, string("user_mentions"))
  978. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  979. if x.UserMentions == nil {
  980. r.EncodeNil()
  981. } else {
  982. yym11 := z.EncBinary()
  983. _ = yym11
  984. if false {
  985. } else {
  986. h.encSlicePtrtostring(([]*string)(x.UserMentions), e)
  987. }
  988. }
  989. }
  990. if yyr2 || yy2arr2 {
  991. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  992. } else {
  993. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  994. }
  995. }
  996. }
  997. }
  998. func (x *Entities) CodecDecodeSelf(d *codec1978.Decoder) {
  999. var h codecSelfer9225
  1000. z, r := codec1978.GenHelperDecoder(d)
  1001. _, _, _ = h, z, r
  1002. yym1 := z.DecBinary()
  1003. _ = yym1
  1004. if false {
  1005. } else if z.HasExtensions() && z.DecExt(x) {
  1006. } else {
  1007. yyct2 := r.ContainerType()
  1008. if yyct2 == codecSelferValueTypeMap9225 {
  1009. yyl2 := r.ReadMapStart()
  1010. if yyl2 == 0 {
  1011. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  1012. } else {
  1013. x.codecDecodeSelfFromMap(yyl2, d)
  1014. }
  1015. } else if yyct2 == codecSelferValueTypeArray9225 {
  1016. yyl2 := r.ReadArrayStart()
  1017. if yyl2 == 0 {
  1018. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1019. } else {
  1020. x.codecDecodeSelfFromArray(yyl2, d)
  1021. }
  1022. } else {
  1023. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  1024. }
  1025. }
  1026. }
  1027. func (x *Entities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  1028. var h codecSelfer9225
  1029. z, r := codec1978.GenHelperDecoder(d)
  1030. _, _, _ = h, z, r
  1031. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  1032. _ = yys3Slc
  1033. var yyhl3 bool = l >= 0
  1034. for yyj3 := 0; ; yyj3++ {
  1035. if yyhl3 {
  1036. if yyj3 >= l {
  1037. break
  1038. }
  1039. } else {
  1040. if r.CheckBreak() {
  1041. break
  1042. }
  1043. }
  1044. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  1045. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  1046. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  1047. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  1048. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  1049. switch yys3 {
  1050. case "hashtags":
  1051. if r.TryDecodeAsNil() {
  1052. x.Hashtags = nil
  1053. } else {
  1054. yyv4 := &x.Hashtags
  1055. yym5 := z.DecBinary()
  1056. _ = yym5
  1057. if false {
  1058. } else {
  1059. h.decSliceHashtag((*[]Hashtag)(yyv4), d)
  1060. }
  1061. }
  1062. case "urls":
  1063. if r.TryDecodeAsNil() {
  1064. x.Urls = nil
  1065. } else {
  1066. yyv6 := &x.Urls
  1067. yym7 := z.DecBinary()
  1068. _ = yym7
  1069. if false {
  1070. } else {
  1071. h.decSlicePtrtostring((*[]*string)(yyv6), d)
  1072. }
  1073. }
  1074. case "user_mentions":
  1075. if r.TryDecodeAsNil() {
  1076. x.UserMentions = nil
  1077. } else {
  1078. yyv8 := &x.UserMentions
  1079. yym9 := z.DecBinary()
  1080. _ = yym9
  1081. if false {
  1082. } else {
  1083. h.decSlicePtrtostring((*[]*string)(yyv8), d)
  1084. }
  1085. }
  1086. default:
  1087. z.DecStructFieldNotFound(-1, yys3)
  1088. } // end switch yys3
  1089. } // end for yyj3
  1090. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  1091. }
  1092. func (x *Entities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  1093. var h codecSelfer9225
  1094. z, r := codec1978.GenHelperDecoder(d)
  1095. _, _, _ = h, z, r
  1096. var yyj10 int
  1097. var yyb10 bool
  1098. var yyhl10 bool = l >= 0
  1099. yyj10++
  1100. if yyhl10 {
  1101. yyb10 = yyj10 > l
  1102. } else {
  1103. yyb10 = r.CheckBreak()
  1104. }
  1105. if yyb10 {
  1106. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1107. return
  1108. }
  1109. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1110. if r.TryDecodeAsNil() {
  1111. x.Hashtags = nil
  1112. } else {
  1113. yyv11 := &x.Hashtags
  1114. yym12 := z.DecBinary()
  1115. _ = yym12
  1116. if false {
  1117. } else {
  1118. h.decSliceHashtag((*[]Hashtag)(yyv11), d)
  1119. }
  1120. }
  1121. yyj10++
  1122. if yyhl10 {
  1123. yyb10 = yyj10 > l
  1124. } else {
  1125. yyb10 = r.CheckBreak()
  1126. }
  1127. if yyb10 {
  1128. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1129. return
  1130. }
  1131. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1132. if r.TryDecodeAsNil() {
  1133. x.Urls = nil
  1134. } else {
  1135. yyv13 := &x.Urls
  1136. yym14 := z.DecBinary()
  1137. _ = yym14
  1138. if false {
  1139. } else {
  1140. h.decSlicePtrtostring((*[]*string)(yyv13), d)
  1141. }
  1142. }
  1143. yyj10++
  1144. if yyhl10 {
  1145. yyb10 = yyj10 > l
  1146. } else {
  1147. yyb10 = r.CheckBreak()
  1148. }
  1149. if yyb10 {
  1150. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1151. return
  1152. }
  1153. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1154. if r.TryDecodeAsNil() {
  1155. x.UserMentions = nil
  1156. } else {
  1157. yyv15 := &x.UserMentions
  1158. yym16 := z.DecBinary()
  1159. _ = yym16
  1160. if false {
  1161. } else {
  1162. h.decSlicePtrtostring((*[]*string)(yyv15), d)
  1163. }
  1164. }
  1165. for {
  1166. yyj10++
  1167. if yyhl10 {
  1168. yyb10 = yyj10 > l
  1169. } else {
  1170. yyb10 = r.CheckBreak()
  1171. }
  1172. if yyb10 {
  1173. break
  1174. }
  1175. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1176. z.DecStructFieldNotFound(yyj10-1, "")
  1177. }
  1178. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1179. }
  1180. func (x *UserEntityDescription) CodecEncodeSelf(e *codec1978.Encoder) {
  1181. var h codecSelfer9225
  1182. z, r := codec1978.GenHelperEncoder(e)
  1183. _, _, _ = h, z, r
  1184. if x == nil {
  1185. r.EncodeNil()
  1186. } else {
  1187. yym1 := z.EncBinary()
  1188. _ = yym1
  1189. if false {
  1190. } else if z.HasExtensions() && z.EncExt(x) {
  1191. } else {
  1192. yysep2 := !z.EncBinary()
  1193. yy2arr2 := z.EncBasicHandle().StructToArray
  1194. var yyq2 [1]bool
  1195. _, _, _ = yysep2, yyq2, yy2arr2
  1196. const yyr2 bool = false
  1197. var yynn2 int
  1198. if yyr2 || yy2arr2 {
  1199. r.EncodeArrayStart(1)
  1200. } else {
  1201. yynn2 = 1
  1202. for _, b := range yyq2 {
  1203. if b {
  1204. yynn2++
  1205. }
  1206. }
  1207. r.EncodeMapStart(yynn2)
  1208. yynn2 = 0
  1209. }
  1210. if yyr2 || yy2arr2 {
  1211. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  1212. if x.Urls == nil {
  1213. r.EncodeNil()
  1214. } else {
  1215. yym4 := z.EncBinary()
  1216. _ = yym4
  1217. if false {
  1218. } else {
  1219. h.encSlicePtrtostring(([]*string)(x.Urls), e)
  1220. }
  1221. }
  1222. } else {
  1223. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  1224. r.EncodeString(codecSelferC_UTF89225, string("urls"))
  1225. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  1226. if x.Urls == nil {
  1227. r.EncodeNil()
  1228. } else {
  1229. yym5 := z.EncBinary()
  1230. _ = yym5
  1231. if false {
  1232. } else {
  1233. h.encSlicePtrtostring(([]*string)(x.Urls), e)
  1234. }
  1235. }
  1236. }
  1237. if yyr2 || yy2arr2 {
  1238. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  1239. } else {
  1240. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  1241. }
  1242. }
  1243. }
  1244. }
  1245. func (x *UserEntityDescription) CodecDecodeSelf(d *codec1978.Decoder) {
  1246. var h codecSelfer9225
  1247. z, r := codec1978.GenHelperDecoder(d)
  1248. _, _, _ = h, z, r
  1249. yym1 := z.DecBinary()
  1250. _ = yym1
  1251. if false {
  1252. } else if z.HasExtensions() && z.DecExt(x) {
  1253. } else {
  1254. yyct2 := r.ContainerType()
  1255. if yyct2 == codecSelferValueTypeMap9225 {
  1256. yyl2 := r.ReadMapStart()
  1257. if yyl2 == 0 {
  1258. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  1259. } else {
  1260. x.codecDecodeSelfFromMap(yyl2, d)
  1261. }
  1262. } else if yyct2 == codecSelferValueTypeArray9225 {
  1263. yyl2 := r.ReadArrayStart()
  1264. if yyl2 == 0 {
  1265. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1266. } else {
  1267. x.codecDecodeSelfFromArray(yyl2, d)
  1268. }
  1269. } else {
  1270. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  1271. }
  1272. }
  1273. }
  1274. func (x *UserEntityDescription) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  1275. var h codecSelfer9225
  1276. z, r := codec1978.GenHelperDecoder(d)
  1277. _, _, _ = h, z, r
  1278. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  1279. _ = yys3Slc
  1280. var yyhl3 bool = l >= 0
  1281. for yyj3 := 0; ; yyj3++ {
  1282. if yyhl3 {
  1283. if yyj3 >= l {
  1284. break
  1285. }
  1286. } else {
  1287. if r.CheckBreak() {
  1288. break
  1289. }
  1290. }
  1291. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  1292. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  1293. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  1294. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  1295. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  1296. switch yys3 {
  1297. case "urls":
  1298. if r.TryDecodeAsNil() {
  1299. x.Urls = nil
  1300. } else {
  1301. yyv4 := &x.Urls
  1302. yym5 := z.DecBinary()
  1303. _ = yym5
  1304. if false {
  1305. } else {
  1306. h.decSlicePtrtostring((*[]*string)(yyv4), d)
  1307. }
  1308. }
  1309. default:
  1310. z.DecStructFieldNotFound(-1, yys3)
  1311. } // end switch yys3
  1312. } // end for yyj3
  1313. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  1314. }
  1315. func (x *UserEntityDescription) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  1316. var h codecSelfer9225
  1317. z, r := codec1978.GenHelperDecoder(d)
  1318. _, _, _ = h, z, r
  1319. var yyj6 int
  1320. var yyb6 bool
  1321. var yyhl6 bool = l >= 0
  1322. yyj6++
  1323. if yyhl6 {
  1324. yyb6 = yyj6 > l
  1325. } else {
  1326. yyb6 = r.CheckBreak()
  1327. }
  1328. if yyb6 {
  1329. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1330. return
  1331. }
  1332. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1333. if r.TryDecodeAsNil() {
  1334. x.Urls = nil
  1335. } else {
  1336. yyv7 := &x.Urls
  1337. yym8 := z.DecBinary()
  1338. _ = yym8
  1339. if false {
  1340. } else {
  1341. h.decSlicePtrtostring((*[]*string)(yyv7), d)
  1342. }
  1343. }
  1344. for {
  1345. yyj6++
  1346. if yyhl6 {
  1347. yyb6 = yyj6 > l
  1348. } else {
  1349. yyb6 = r.CheckBreak()
  1350. }
  1351. if yyb6 {
  1352. break
  1353. }
  1354. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1355. z.DecStructFieldNotFound(yyj6-1, "")
  1356. }
  1357. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1358. }
  1359. func (x *URL) CodecEncodeSelf(e *codec1978.Encoder) {
  1360. var h codecSelfer9225
  1361. z, r := codec1978.GenHelperEncoder(e)
  1362. _, _, _ = h, z, r
  1363. if x == nil {
  1364. r.EncodeNil()
  1365. } else {
  1366. yym1 := z.EncBinary()
  1367. _ = yym1
  1368. if false {
  1369. } else if z.HasExtensions() && z.EncExt(x) {
  1370. } else {
  1371. yysep2 := !z.EncBinary()
  1372. yy2arr2 := z.EncBasicHandle().StructToArray
  1373. var yyq2 [3]bool
  1374. _, _, _ = yysep2, yyq2, yy2arr2
  1375. const yyr2 bool = false
  1376. var yynn2 int
  1377. if yyr2 || yy2arr2 {
  1378. r.EncodeArrayStart(3)
  1379. } else {
  1380. yynn2 = 3
  1381. for _, b := range yyq2 {
  1382. if b {
  1383. yynn2++
  1384. }
  1385. }
  1386. r.EncodeMapStart(yynn2)
  1387. yynn2 = 0
  1388. }
  1389. if yyr2 || yy2arr2 {
  1390. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  1391. if x.ExpandedURL == nil {
  1392. r.EncodeNil()
  1393. } else {
  1394. yy4 := *x.ExpandedURL
  1395. yym5 := z.EncBinary()
  1396. _ = yym5
  1397. if false {
  1398. } else {
  1399. r.EncodeString(codecSelferC_UTF89225, string(yy4))
  1400. }
  1401. }
  1402. } else {
  1403. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  1404. r.EncodeString(codecSelferC_UTF89225, string("expanded_url"))
  1405. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  1406. if x.ExpandedURL == nil {
  1407. r.EncodeNil()
  1408. } else {
  1409. yy6 := *x.ExpandedURL
  1410. yym7 := z.EncBinary()
  1411. _ = yym7
  1412. if false {
  1413. } else {
  1414. r.EncodeString(codecSelferC_UTF89225, string(yy6))
  1415. }
  1416. }
  1417. }
  1418. if yyr2 || yy2arr2 {
  1419. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  1420. if x.Indices == nil {
  1421. r.EncodeNil()
  1422. } else {
  1423. yym9 := z.EncBinary()
  1424. _ = yym9
  1425. if false {
  1426. } else {
  1427. z.F.EncSliceIntV(x.Indices, false, e)
  1428. }
  1429. }
  1430. } else {
  1431. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  1432. r.EncodeString(codecSelferC_UTF89225, string("indices"))
  1433. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  1434. if x.Indices == nil {
  1435. r.EncodeNil()
  1436. } else {
  1437. yym10 := z.EncBinary()
  1438. _ = yym10
  1439. if false {
  1440. } else {
  1441. z.F.EncSliceIntV(x.Indices, false, e)
  1442. }
  1443. }
  1444. }
  1445. if yyr2 || yy2arr2 {
  1446. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  1447. yym12 := z.EncBinary()
  1448. _ = yym12
  1449. if false {
  1450. } else {
  1451. r.EncodeString(codecSelferC_UTF89225, string(x.URL))
  1452. }
  1453. } else {
  1454. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  1455. r.EncodeString(codecSelferC_UTF89225, string("url"))
  1456. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  1457. yym13 := z.EncBinary()
  1458. _ = yym13
  1459. if false {
  1460. } else {
  1461. r.EncodeString(codecSelferC_UTF89225, string(x.URL))
  1462. }
  1463. }
  1464. if yyr2 || yy2arr2 {
  1465. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  1466. } else {
  1467. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  1468. }
  1469. }
  1470. }
  1471. }
  1472. func (x *URL) CodecDecodeSelf(d *codec1978.Decoder) {
  1473. var h codecSelfer9225
  1474. z, r := codec1978.GenHelperDecoder(d)
  1475. _, _, _ = h, z, r
  1476. yym1 := z.DecBinary()
  1477. _ = yym1
  1478. if false {
  1479. } else if z.HasExtensions() && z.DecExt(x) {
  1480. } else {
  1481. yyct2 := r.ContainerType()
  1482. if yyct2 == codecSelferValueTypeMap9225 {
  1483. yyl2 := r.ReadMapStart()
  1484. if yyl2 == 0 {
  1485. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  1486. } else {
  1487. x.codecDecodeSelfFromMap(yyl2, d)
  1488. }
  1489. } else if yyct2 == codecSelferValueTypeArray9225 {
  1490. yyl2 := r.ReadArrayStart()
  1491. if yyl2 == 0 {
  1492. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1493. } else {
  1494. x.codecDecodeSelfFromArray(yyl2, d)
  1495. }
  1496. } else {
  1497. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  1498. }
  1499. }
  1500. }
  1501. func (x *URL) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  1502. var h codecSelfer9225
  1503. z, r := codec1978.GenHelperDecoder(d)
  1504. _, _, _ = h, z, r
  1505. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  1506. _ = yys3Slc
  1507. var yyhl3 bool = l >= 0
  1508. for yyj3 := 0; ; yyj3++ {
  1509. if yyhl3 {
  1510. if yyj3 >= l {
  1511. break
  1512. }
  1513. } else {
  1514. if r.CheckBreak() {
  1515. break
  1516. }
  1517. }
  1518. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  1519. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  1520. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  1521. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  1522. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  1523. switch yys3 {
  1524. case "expanded_url":
  1525. if r.TryDecodeAsNil() {
  1526. if x.ExpandedURL != nil {
  1527. x.ExpandedURL = nil
  1528. }
  1529. } else {
  1530. if x.ExpandedURL == nil {
  1531. x.ExpandedURL = new(string)
  1532. }
  1533. yym5 := z.DecBinary()
  1534. _ = yym5
  1535. if false {
  1536. } else {
  1537. *((*string)(x.ExpandedURL)) = r.DecodeString()
  1538. }
  1539. }
  1540. case "indices":
  1541. if r.TryDecodeAsNil() {
  1542. x.Indices = nil
  1543. } else {
  1544. yyv6 := &x.Indices
  1545. yym7 := z.DecBinary()
  1546. _ = yym7
  1547. if false {
  1548. } else {
  1549. z.F.DecSliceIntX(yyv6, false, d)
  1550. }
  1551. }
  1552. case "url":
  1553. if r.TryDecodeAsNil() {
  1554. x.URL = ""
  1555. } else {
  1556. yyv8 := &x.URL
  1557. yym9 := z.DecBinary()
  1558. _ = yym9
  1559. if false {
  1560. } else {
  1561. *((*string)(yyv8)) = r.DecodeString()
  1562. }
  1563. }
  1564. default:
  1565. z.DecStructFieldNotFound(-1, yys3)
  1566. } // end switch yys3
  1567. } // end for yyj3
  1568. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  1569. }
  1570. func (x *URL) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  1571. var h codecSelfer9225
  1572. z, r := codec1978.GenHelperDecoder(d)
  1573. _, _, _ = h, z, r
  1574. var yyj10 int
  1575. var yyb10 bool
  1576. var yyhl10 bool = l >= 0
  1577. yyj10++
  1578. if yyhl10 {
  1579. yyb10 = yyj10 > l
  1580. } else {
  1581. yyb10 = r.CheckBreak()
  1582. }
  1583. if yyb10 {
  1584. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1585. return
  1586. }
  1587. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1588. if r.TryDecodeAsNil() {
  1589. if x.ExpandedURL != nil {
  1590. x.ExpandedURL = nil
  1591. }
  1592. } else {
  1593. if x.ExpandedURL == nil {
  1594. x.ExpandedURL = new(string)
  1595. }
  1596. yym12 := z.DecBinary()
  1597. _ = yym12
  1598. if false {
  1599. } else {
  1600. *((*string)(x.ExpandedURL)) = r.DecodeString()
  1601. }
  1602. }
  1603. yyj10++
  1604. if yyhl10 {
  1605. yyb10 = yyj10 > l
  1606. } else {
  1607. yyb10 = r.CheckBreak()
  1608. }
  1609. if yyb10 {
  1610. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1611. return
  1612. }
  1613. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1614. if r.TryDecodeAsNil() {
  1615. x.Indices = nil
  1616. } else {
  1617. yyv13 := &x.Indices
  1618. yym14 := z.DecBinary()
  1619. _ = yym14
  1620. if false {
  1621. } else {
  1622. z.F.DecSliceIntX(yyv13, false, d)
  1623. }
  1624. }
  1625. yyj10++
  1626. if yyhl10 {
  1627. yyb10 = yyj10 > l
  1628. } else {
  1629. yyb10 = r.CheckBreak()
  1630. }
  1631. if yyb10 {
  1632. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1633. return
  1634. }
  1635. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1636. if r.TryDecodeAsNil() {
  1637. x.URL = ""
  1638. } else {
  1639. yyv15 := &x.URL
  1640. yym16 := z.DecBinary()
  1641. _ = yym16
  1642. if false {
  1643. } else {
  1644. *((*string)(yyv15)) = r.DecodeString()
  1645. }
  1646. }
  1647. for {
  1648. yyj10++
  1649. if yyhl10 {
  1650. yyb10 = yyj10 > l
  1651. } else {
  1652. yyb10 = r.CheckBreak()
  1653. }
  1654. if yyb10 {
  1655. break
  1656. }
  1657. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1658. z.DecStructFieldNotFound(yyj10-1, "")
  1659. }
  1660. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1661. }
  1662. func (x *UserEntityURL) CodecEncodeSelf(e *codec1978.Encoder) {
  1663. var h codecSelfer9225
  1664. z, r := codec1978.GenHelperEncoder(e)
  1665. _, _, _ = h, z, r
  1666. if x == nil {
  1667. r.EncodeNil()
  1668. } else {
  1669. yym1 := z.EncBinary()
  1670. _ = yym1
  1671. if false {
  1672. } else if z.HasExtensions() && z.EncExt(x) {
  1673. } else {
  1674. yysep2 := !z.EncBinary()
  1675. yy2arr2 := z.EncBasicHandle().StructToArray
  1676. var yyq2 [1]bool
  1677. _, _, _ = yysep2, yyq2, yy2arr2
  1678. const yyr2 bool = false
  1679. var yynn2 int
  1680. if yyr2 || yy2arr2 {
  1681. r.EncodeArrayStart(1)
  1682. } else {
  1683. yynn2 = 1
  1684. for _, b := range yyq2 {
  1685. if b {
  1686. yynn2++
  1687. }
  1688. }
  1689. r.EncodeMapStart(yynn2)
  1690. yynn2 = 0
  1691. }
  1692. if yyr2 || yy2arr2 {
  1693. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  1694. if x.Urls == nil {
  1695. r.EncodeNil()
  1696. } else {
  1697. yym4 := z.EncBinary()
  1698. _ = yym4
  1699. if false {
  1700. } else {
  1701. h.encSliceURL(([]URL)(x.Urls), e)
  1702. }
  1703. }
  1704. } else {
  1705. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  1706. r.EncodeString(codecSelferC_UTF89225, string("urls"))
  1707. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  1708. if x.Urls == nil {
  1709. r.EncodeNil()
  1710. } else {
  1711. yym5 := z.EncBinary()
  1712. _ = yym5
  1713. if false {
  1714. } else {
  1715. h.encSliceURL(([]URL)(x.Urls), e)
  1716. }
  1717. }
  1718. }
  1719. if yyr2 || yy2arr2 {
  1720. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  1721. } else {
  1722. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  1723. }
  1724. }
  1725. }
  1726. }
  1727. func (x *UserEntityURL) CodecDecodeSelf(d *codec1978.Decoder) {
  1728. var h codecSelfer9225
  1729. z, r := codec1978.GenHelperDecoder(d)
  1730. _, _, _ = h, z, r
  1731. yym1 := z.DecBinary()
  1732. _ = yym1
  1733. if false {
  1734. } else if z.HasExtensions() && z.DecExt(x) {
  1735. } else {
  1736. yyct2 := r.ContainerType()
  1737. if yyct2 == codecSelferValueTypeMap9225 {
  1738. yyl2 := r.ReadMapStart()
  1739. if yyl2 == 0 {
  1740. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  1741. } else {
  1742. x.codecDecodeSelfFromMap(yyl2, d)
  1743. }
  1744. } else if yyct2 == codecSelferValueTypeArray9225 {
  1745. yyl2 := r.ReadArrayStart()
  1746. if yyl2 == 0 {
  1747. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1748. } else {
  1749. x.codecDecodeSelfFromArray(yyl2, d)
  1750. }
  1751. } else {
  1752. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  1753. }
  1754. }
  1755. }
  1756. func (x *UserEntityURL) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  1757. var h codecSelfer9225
  1758. z, r := codec1978.GenHelperDecoder(d)
  1759. _, _, _ = h, z, r
  1760. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  1761. _ = yys3Slc
  1762. var yyhl3 bool = l >= 0
  1763. for yyj3 := 0; ; yyj3++ {
  1764. if yyhl3 {
  1765. if yyj3 >= l {
  1766. break
  1767. }
  1768. } else {
  1769. if r.CheckBreak() {
  1770. break
  1771. }
  1772. }
  1773. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  1774. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  1775. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  1776. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  1777. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  1778. switch yys3 {
  1779. case "urls":
  1780. if r.TryDecodeAsNil() {
  1781. x.Urls = nil
  1782. } else {
  1783. yyv4 := &x.Urls
  1784. yym5 := z.DecBinary()
  1785. _ = yym5
  1786. if false {
  1787. } else {
  1788. h.decSliceURL((*[]URL)(yyv4), d)
  1789. }
  1790. }
  1791. default:
  1792. z.DecStructFieldNotFound(-1, yys3)
  1793. } // end switch yys3
  1794. } // end for yyj3
  1795. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  1796. }
  1797. func (x *UserEntityURL) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  1798. var h codecSelfer9225
  1799. z, r := codec1978.GenHelperDecoder(d)
  1800. _, _, _ = h, z, r
  1801. var yyj6 int
  1802. var yyb6 bool
  1803. var yyhl6 bool = l >= 0
  1804. yyj6++
  1805. if yyhl6 {
  1806. yyb6 = yyj6 > l
  1807. } else {
  1808. yyb6 = r.CheckBreak()
  1809. }
  1810. if yyb6 {
  1811. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1812. return
  1813. }
  1814. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1815. if r.TryDecodeAsNil() {
  1816. x.Urls = nil
  1817. } else {
  1818. yyv7 := &x.Urls
  1819. yym8 := z.DecBinary()
  1820. _ = yym8
  1821. if false {
  1822. } else {
  1823. h.decSliceURL((*[]URL)(yyv7), d)
  1824. }
  1825. }
  1826. for {
  1827. yyj6++
  1828. if yyhl6 {
  1829. yyb6 = yyj6 > l
  1830. } else {
  1831. yyb6 = r.CheckBreak()
  1832. }
  1833. if yyb6 {
  1834. break
  1835. }
  1836. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1837. z.DecStructFieldNotFound(yyj6-1, "")
  1838. }
  1839. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1840. }
  1841. func (x *UserEntities) CodecEncodeSelf(e *codec1978.Encoder) {
  1842. var h codecSelfer9225
  1843. z, r := codec1978.GenHelperEncoder(e)
  1844. _, _, _ = h, z, r
  1845. if x == nil {
  1846. r.EncodeNil()
  1847. } else {
  1848. yym1 := z.EncBinary()
  1849. _ = yym1
  1850. if false {
  1851. } else if z.HasExtensions() && z.EncExt(x) {
  1852. } else {
  1853. yysep2 := !z.EncBinary()
  1854. yy2arr2 := z.EncBasicHandle().StructToArray
  1855. var yyq2 [2]bool
  1856. _, _, _ = yysep2, yyq2, yy2arr2
  1857. const yyr2 bool = false
  1858. var yynn2 int
  1859. if yyr2 || yy2arr2 {
  1860. r.EncodeArrayStart(2)
  1861. } else {
  1862. yynn2 = 2
  1863. for _, b := range yyq2 {
  1864. if b {
  1865. yynn2++
  1866. }
  1867. }
  1868. r.EncodeMapStart(yynn2)
  1869. yynn2 = 0
  1870. }
  1871. if yyr2 || yy2arr2 {
  1872. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  1873. yy4 := &x.Description
  1874. yy4.CodecEncodeSelf(e)
  1875. } else {
  1876. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  1877. r.EncodeString(codecSelferC_UTF89225, string("description"))
  1878. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  1879. yy6 := &x.Description
  1880. yy6.CodecEncodeSelf(e)
  1881. }
  1882. if yyr2 || yy2arr2 {
  1883. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  1884. yy9 := &x.URL
  1885. yy9.CodecEncodeSelf(e)
  1886. } else {
  1887. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  1888. r.EncodeString(codecSelferC_UTF89225, string("url"))
  1889. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  1890. yy11 := &x.URL
  1891. yy11.CodecEncodeSelf(e)
  1892. }
  1893. if yyr2 || yy2arr2 {
  1894. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  1895. } else {
  1896. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  1897. }
  1898. }
  1899. }
  1900. }
  1901. func (x *UserEntities) CodecDecodeSelf(d *codec1978.Decoder) {
  1902. var h codecSelfer9225
  1903. z, r := codec1978.GenHelperDecoder(d)
  1904. _, _, _ = h, z, r
  1905. yym1 := z.DecBinary()
  1906. _ = yym1
  1907. if false {
  1908. } else if z.HasExtensions() && z.DecExt(x) {
  1909. } else {
  1910. yyct2 := r.ContainerType()
  1911. if yyct2 == codecSelferValueTypeMap9225 {
  1912. yyl2 := r.ReadMapStart()
  1913. if yyl2 == 0 {
  1914. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  1915. } else {
  1916. x.codecDecodeSelfFromMap(yyl2, d)
  1917. }
  1918. } else if yyct2 == codecSelferValueTypeArray9225 {
  1919. yyl2 := r.ReadArrayStart()
  1920. if yyl2 == 0 {
  1921. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1922. } else {
  1923. x.codecDecodeSelfFromArray(yyl2, d)
  1924. }
  1925. } else {
  1926. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  1927. }
  1928. }
  1929. }
  1930. func (x *UserEntities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  1931. var h codecSelfer9225
  1932. z, r := codec1978.GenHelperDecoder(d)
  1933. _, _, _ = h, z, r
  1934. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  1935. _ = yys3Slc
  1936. var yyhl3 bool = l >= 0
  1937. for yyj3 := 0; ; yyj3++ {
  1938. if yyhl3 {
  1939. if yyj3 >= l {
  1940. break
  1941. }
  1942. } else {
  1943. if r.CheckBreak() {
  1944. break
  1945. }
  1946. }
  1947. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  1948. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  1949. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  1950. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  1951. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  1952. switch yys3 {
  1953. case "description":
  1954. if r.TryDecodeAsNil() {
  1955. x.Description = UserEntityDescription{}
  1956. } else {
  1957. yyv4 := &x.Description
  1958. yyv4.CodecDecodeSelf(d)
  1959. }
  1960. case "url":
  1961. if r.TryDecodeAsNil() {
  1962. x.URL = UserEntityURL{}
  1963. } else {
  1964. yyv5 := &x.URL
  1965. yyv5.CodecDecodeSelf(d)
  1966. }
  1967. default:
  1968. z.DecStructFieldNotFound(-1, yys3)
  1969. } // end switch yys3
  1970. } // end for yyj3
  1971. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  1972. }
  1973. func (x *UserEntities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  1974. var h codecSelfer9225
  1975. z, r := codec1978.GenHelperDecoder(d)
  1976. _, _, _ = h, z, r
  1977. var yyj6 int
  1978. var yyb6 bool
  1979. var yyhl6 bool = l >= 0
  1980. yyj6++
  1981. if yyhl6 {
  1982. yyb6 = yyj6 > l
  1983. } else {
  1984. yyb6 = r.CheckBreak()
  1985. }
  1986. if yyb6 {
  1987. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  1988. return
  1989. }
  1990. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  1991. if r.TryDecodeAsNil() {
  1992. x.Description = UserEntityDescription{}
  1993. } else {
  1994. yyv7 := &x.Description
  1995. yyv7.CodecDecodeSelf(d)
  1996. }
  1997. yyj6++
  1998. if yyhl6 {
  1999. yyb6 = yyj6 > l
  2000. } else {
  2001. yyb6 = r.CheckBreak()
  2002. }
  2003. if yyb6 {
  2004. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  2005. return
  2006. }
  2007. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  2008. if r.TryDecodeAsNil() {
  2009. x.URL = UserEntityURL{}
  2010. } else {
  2011. yyv8 := &x.URL
  2012. yyv8.CodecDecodeSelf(d)
  2013. }
  2014. for {
  2015. yyj6++
  2016. if yyhl6 {
  2017. yyb6 = yyj6 > l
  2018. } else {
  2019. yyb6 = r.CheckBreak()
  2020. }
  2021. if yyb6 {
  2022. break
  2023. }
  2024. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  2025. z.DecStructFieldNotFound(yyj6-1, "")
  2026. }
  2027. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  2028. }
  2029. func (x *User) CodecEncodeSelf(e *codec1978.Encoder) {
  2030. var h codecSelfer9225
  2031. z, r := codec1978.GenHelperEncoder(e)
  2032. _, _, _ = h, z, r
  2033. if x == nil {
  2034. r.EncodeNil()
  2035. } else {
  2036. yym1 := z.EncBinary()
  2037. _ = yym1
  2038. if false {
  2039. } else if z.HasExtensions() && z.EncExt(x) {
  2040. } else {
  2041. yysep2 := !z.EncBinary()
  2042. yy2arr2 := z.EncBasicHandle().StructToArray
  2043. var yyq2 [39]bool
  2044. _, _, _ = yysep2, yyq2, yy2arr2
  2045. const yyr2 bool = false
  2046. var yynn2 int
  2047. if yyr2 || yy2arr2 {
  2048. r.EncodeArrayStart(39)
  2049. } else {
  2050. yynn2 = 39
  2051. for _, b := range yyq2 {
  2052. if b {
  2053. yynn2++
  2054. }
  2055. }
  2056. r.EncodeMapStart(yynn2)
  2057. yynn2 = 0
  2058. }
  2059. if yyr2 || yy2arr2 {
  2060. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2061. yym4 := z.EncBinary()
  2062. _ = yym4
  2063. if false {
  2064. } else {
  2065. r.EncodeBool(bool(x.ContributorsEnabled))
  2066. }
  2067. } else {
  2068. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2069. r.EncodeString(codecSelferC_UTF89225, string("contributors_enabled"))
  2070. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2071. yym5 := z.EncBinary()
  2072. _ = yym5
  2073. if false {
  2074. } else {
  2075. r.EncodeBool(bool(x.ContributorsEnabled))
  2076. }
  2077. }
  2078. if yyr2 || yy2arr2 {
  2079. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2080. yym7 := z.EncBinary()
  2081. _ = yym7
  2082. if false {
  2083. } else {
  2084. r.EncodeString(codecSelferC_UTF89225, string(x.CreatedAt))
  2085. }
  2086. } else {
  2087. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2088. r.EncodeString(codecSelferC_UTF89225, string("created_at"))
  2089. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2090. yym8 := z.EncBinary()
  2091. _ = yym8
  2092. if false {
  2093. } else {
  2094. r.EncodeString(codecSelferC_UTF89225, string(x.CreatedAt))
  2095. }
  2096. }
  2097. if yyr2 || yy2arr2 {
  2098. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2099. yym10 := z.EncBinary()
  2100. _ = yym10
  2101. if false {
  2102. } else {
  2103. r.EncodeBool(bool(x.DefaultProfile))
  2104. }
  2105. } else {
  2106. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2107. r.EncodeString(codecSelferC_UTF89225, string("default_profile"))
  2108. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2109. yym11 := z.EncBinary()
  2110. _ = yym11
  2111. if false {
  2112. } else {
  2113. r.EncodeBool(bool(x.DefaultProfile))
  2114. }
  2115. }
  2116. if yyr2 || yy2arr2 {
  2117. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2118. yym13 := z.EncBinary()
  2119. _ = yym13
  2120. if false {
  2121. } else {
  2122. r.EncodeBool(bool(x.DefaultProfileImage))
  2123. }
  2124. } else {
  2125. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2126. r.EncodeString(codecSelferC_UTF89225, string("default_profile_image"))
  2127. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2128. yym14 := z.EncBinary()
  2129. _ = yym14
  2130. if false {
  2131. } else {
  2132. r.EncodeBool(bool(x.DefaultProfileImage))
  2133. }
  2134. }
  2135. if yyr2 || yy2arr2 {
  2136. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2137. yym16 := z.EncBinary()
  2138. _ = yym16
  2139. if false {
  2140. } else {
  2141. r.EncodeString(codecSelferC_UTF89225, string(x.Description))
  2142. }
  2143. } else {
  2144. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2145. r.EncodeString(codecSelferC_UTF89225, string("description"))
  2146. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2147. yym17 := z.EncBinary()
  2148. _ = yym17
  2149. if false {
  2150. } else {
  2151. r.EncodeString(codecSelferC_UTF89225, string(x.Description))
  2152. }
  2153. }
  2154. if yyr2 || yy2arr2 {
  2155. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2156. yy19 := &x.Entities
  2157. yy19.CodecEncodeSelf(e)
  2158. } else {
  2159. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2160. r.EncodeString(codecSelferC_UTF89225, string("entities"))
  2161. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2162. yy21 := &x.Entities
  2163. yy21.CodecEncodeSelf(e)
  2164. }
  2165. if yyr2 || yy2arr2 {
  2166. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2167. yym24 := z.EncBinary()
  2168. _ = yym24
  2169. if false {
  2170. } else {
  2171. r.EncodeInt(int64(x.FavouritesCount))
  2172. }
  2173. } else {
  2174. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2175. r.EncodeString(codecSelferC_UTF89225, string("favourites_count"))
  2176. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2177. yym25 := z.EncBinary()
  2178. _ = yym25
  2179. if false {
  2180. } else {
  2181. r.EncodeInt(int64(x.FavouritesCount))
  2182. }
  2183. }
  2184. if yyr2 || yy2arr2 {
  2185. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2186. if x.FollowRequestSent == nil {
  2187. r.EncodeNil()
  2188. } else {
  2189. yy27 := *x.FollowRequestSent
  2190. yym28 := z.EncBinary()
  2191. _ = yym28
  2192. if false {
  2193. } else {
  2194. r.EncodeString(codecSelferC_UTF89225, string(yy27))
  2195. }
  2196. }
  2197. } else {
  2198. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2199. r.EncodeString(codecSelferC_UTF89225, string("follow_request_sent"))
  2200. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2201. if x.FollowRequestSent == nil {
  2202. r.EncodeNil()
  2203. } else {
  2204. yy29 := *x.FollowRequestSent
  2205. yym30 := z.EncBinary()
  2206. _ = yym30
  2207. if false {
  2208. } else {
  2209. r.EncodeString(codecSelferC_UTF89225, string(yy29))
  2210. }
  2211. }
  2212. }
  2213. if yyr2 || yy2arr2 {
  2214. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2215. yym32 := z.EncBinary()
  2216. _ = yym32
  2217. if false {
  2218. } else {
  2219. r.EncodeInt(int64(x.FollowersCount))
  2220. }
  2221. } else {
  2222. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2223. r.EncodeString(codecSelferC_UTF89225, string("followers_count"))
  2224. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2225. yym33 := z.EncBinary()
  2226. _ = yym33
  2227. if false {
  2228. } else {
  2229. r.EncodeInt(int64(x.FollowersCount))
  2230. }
  2231. }
  2232. if yyr2 || yy2arr2 {
  2233. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2234. if x.Following == nil {
  2235. r.EncodeNil()
  2236. } else {
  2237. yy35 := *x.Following
  2238. yym36 := z.EncBinary()
  2239. _ = yym36
  2240. if false {
  2241. } else {
  2242. r.EncodeString(codecSelferC_UTF89225, string(yy35))
  2243. }
  2244. }
  2245. } else {
  2246. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2247. r.EncodeString(codecSelferC_UTF89225, string("following"))
  2248. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2249. if x.Following == nil {
  2250. r.EncodeNil()
  2251. } else {
  2252. yy37 := *x.Following
  2253. yym38 := z.EncBinary()
  2254. _ = yym38
  2255. if false {
  2256. } else {
  2257. r.EncodeString(codecSelferC_UTF89225, string(yy37))
  2258. }
  2259. }
  2260. }
  2261. if yyr2 || yy2arr2 {
  2262. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2263. yym40 := z.EncBinary()
  2264. _ = yym40
  2265. if false {
  2266. } else {
  2267. r.EncodeInt(int64(x.FriendsCount))
  2268. }
  2269. } else {
  2270. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2271. r.EncodeString(codecSelferC_UTF89225, string("friends_count"))
  2272. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2273. yym41 := z.EncBinary()
  2274. _ = yym41
  2275. if false {
  2276. } else {
  2277. r.EncodeInt(int64(x.FriendsCount))
  2278. }
  2279. }
  2280. if yyr2 || yy2arr2 {
  2281. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2282. yym43 := z.EncBinary()
  2283. _ = yym43
  2284. if false {
  2285. } else {
  2286. r.EncodeBool(bool(x.GeoEnabled))
  2287. }
  2288. } else {
  2289. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2290. r.EncodeString(codecSelferC_UTF89225, string("geo_enabled"))
  2291. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2292. yym44 := z.EncBinary()
  2293. _ = yym44
  2294. if false {
  2295. } else {
  2296. r.EncodeBool(bool(x.GeoEnabled))
  2297. }
  2298. }
  2299. if yyr2 || yy2arr2 {
  2300. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2301. yym46 := z.EncBinary()
  2302. _ = yym46
  2303. if false {
  2304. } else {
  2305. r.EncodeInt(int64(x.ID))
  2306. }
  2307. } else {
  2308. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2309. r.EncodeString(codecSelferC_UTF89225, string("id"))
  2310. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2311. yym47 := z.EncBinary()
  2312. _ = yym47
  2313. if false {
  2314. } else {
  2315. r.EncodeInt(int64(x.ID))
  2316. }
  2317. }
  2318. if yyr2 || yy2arr2 {
  2319. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2320. yym49 := z.EncBinary()
  2321. _ = yym49
  2322. if false {
  2323. } else {
  2324. r.EncodeString(codecSelferC_UTF89225, string(x.IDStr))
  2325. }
  2326. } else {
  2327. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2328. r.EncodeString(codecSelferC_UTF89225, string("id_str"))
  2329. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2330. yym50 := z.EncBinary()
  2331. _ = yym50
  2332. if false {
  2333. } else {
  2334. r.EncodeString(codecSelferC_UTF89225, string(x.IDStr))
  2335. }
  2336. }
  2337. if yyr2 || yy2arr2 {
  2338. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2339. yym52 := z.EncBinary()
  2340. _ = yym52
  2341. if false {
  2342. } else {
  2343. r.EncodeBool(bool(x.IsTranslator))
  2344. }
  2345. } else {
  2346. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2347. r.EncodeString(codecSelferC_UTF89225, string("is_translator"))
  2348. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2349. yym53 := z.EncBinary()
  2350. _ = yym53
  2351. if false {
  2352. } else {
  2353. r.EncodeBool(bool(x.IsTranslator))
  2354. }
  2355. }
  2356. if yyr2 || yy2arr2 {
  2357. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2358. yym55 := z.EncBinary()
  2359. _ = yym55
  2360. if false {
  2361. } else {
  2362. r.EncodeString(codecSelferC_UTF89225, string(x.Lang))
  2363. }
  2364. } else {
  2365. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2366. r.EncodeString(codecSelferC_UTF89225, string("lang"))
  2367. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2368. yym56 := z.EncBinary()
  2369. _ = yym56
  2370. if false {
  2371. } else {
  2372. r.EncodeString(codecSelferC_UTF89225, string(x.Lang))
  2373. }
  2374. }
  2375. if yyr2 || yy2arr2 {
  2376. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2377. yym58 := z.EncBinary()
  2378. _ = yym58
  2379. if false {
  2380. } else {
  2381. r.EncodeInt(int64(x.ListedCount))
  2382. }
  2383. } else {
  2384. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2385. r.EncodeString(codecSelferC_UTF89225, string("listed_count"))
  2386. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2387. yym59 := z.EncBinary()
  2388. _ = yym59
  2389. if false {
  2390. } else {
  2391. r.EncodeInt(int64(x.ListedCount))
  2392. }
  2393. }
  2394. if yyr2 || yy2arr2 {
  2395. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2396. yym61 := z.EncBinary()
  2397. _ = yym61
  2398. if false {
  2399. } else {
  2400. r.EncodeString(codecSelferC_UTF89225, string(x.Location))
  2401. }
  2402. } else {
  2403. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2404. r.EncodeString(codecSelferC_UTF89225, string("location"))
  2405. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2406. yym62 := z.EncBinary()
  2407. _ = yym62
  2408. if false {
  2409. } else {
  2410. r.EncodeString(codecSelferC_UTF89225, string(x.Location))
  2411. }
  2412. }
  2413. if yyr2 || yy2arr2 {
  2414. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2415. yym64 := z.EncBinary()
  2416. _ = yym64
  2417. if false {
  2418. } else {
  2419. r.EncodeString(codecSelferC_UTF89225, string(x.Name))
  2420. }
  2421. } else {
  2422. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2423. r.EncodeString(codecSelferC_UTF89225, string("name"))
  2424. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2425. yym65 := z.EncBinary()
  2426. _ = yym65
  2427. if false {
  2428. } else {
  2429. r.EncodeString(codecSelferC_UTF89225, string(x.Name))
  2430. }
  2431. }
  2432. if yyr2 || yy2arr2 {
  2433. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2434. if x.Notifications == nil {
  2435. r.EncodeNil()
  2436. } else {
  2437. yy67 := *x.Notifications
  2438. yym68 := z.EncBinary()
  2439. _ = yym68
  2440. if false {
  2441. } else {
  2442. r.EncodeString(codecSelferC_UTF89225, string(yy67))
  2443. }
  2444. }
  2445. } else {
  2446. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2447. r.EncodeString(codecSelferC_UTF89225, string("notifications"))
  2448. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2449. if x.Notifications == nil {
  2450. r.EncodeNil()
  2451. } else {
  2452. yy69 := *x.Notifications
  2453. yym70 := z.EncBinary()
  2454. _ = yym70
  2455. if false {
  2456. } else {
  2457. r.EncodeString(codecSelferC_UTF89225, string(yy69))
  2458. }
  2459. }
  2460. }
  2461. if yyr2 || yy2arr2 {
  2462. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2463. yym72 := z.EncBinary()
  2464. _ = yym72
  2465. if false {
  2466. } else {
  2467. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundColor))
  2468. }
  2469. } else {
  2470. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2471. r.EncodeString(codecSelferC_UTF89225, string("profile_background_color"))
  2472. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2473. yym73 := z.EncBinary()
  2474. _ = yym73
  2475. if false {
  2476. } else {
  2477. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundColor))
  2478. }
  2479. }
  2480. if yyr2 || yy2arr2 {
  2481. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2482. yym75 := z.EncBinary()
  2483. _ = yym75
  2484. if false {
  2485. } else {
  2486. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundImageURL))
  2487. }
  2488. } else {
  2489. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2490. r.EncodeString(codecSelferC_UTF89225, string("profile_background_image_url"))
  2491. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2492. yym76 := z.EncBinary()
  2493. _ = yym76
  2494. if false {
  2495. } else {
  2496. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundImageURL))
  2497. }
  2498. }
  2499. if yyr2 || yy2arr2 {
  2500. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2501. yym78 := z.EncBinary()
  2502. _ = yym78
  2503. if false {
  2504. } else {
  2505. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundImageURLHTTPS))
  2506. }
  2507. } else {
  2508. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2509. r.EncodeString(codecSelferC_UTF89225, string("profile_background_image_url_https"))
  2510. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2511. yym79 := z.EncBinary()
  2512. _ = yym79
  2513. if false {
  2514. } else {
  2515. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileBackgroundImageURLHTTPS))
  2516. }
  2517. }
  2518. if yyr2 || yy2arr2 {
  2519. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2520. yym81 := z.EncBinary()
  2521. _ = yym81
  2522. if false {
  2523. } else {
  2524. r.EncodeBool(bool(x.ProfileBackgroundTile))
  2525. }
  2526. } else {
  2527. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2528. r.EncodeString(codecSelferC_UTF89225, string("profile_background_tile"))
  2529. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2530. yym82 := z.EncBinary()
  2531. _ = yym82
  2532. if false {
  2533. } else {
  2534. r.EncodeBool(bool(x.ProfileBackgroundTile))
  2535. }
  2536. }
  2537. if yyr2 || yy2arr2 {
  2538. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2539. yym84 := z.EncBinary()
  2540. _ = yym84
  2541. if false {
  2542. } else {
  2543. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileImageURL))
  2544. }
  2545. } else {
  2546. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2547. r.EncodeString(codecSelferC_UTF89225, string("profile_image_url"))
  2548. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2549. yym85 := z.EncBinary()
  2550. _ = yym85
  2551. if false {
  2552. } else {
  2553. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileImageURL))
  2554. }
  2555. }
  2556. if yyr2 || yy2arr2 {
  2557. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2558. yym87 := z.EncBinary()
  2559. _ = yym87
  2560. if false {
  2561. } else {
  2562. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileImageURLHTTPS))
  2563. }
  2564. } else {
  2565. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2566. r.EncodeString(codecSelferC_UTF89225, string("profile_image_url_https"))
  2567. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2568. yym88 := z.EncBinary()
  2569. _ = yym88
  2570. if false {
  2571. } else {
  2572. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileImageURLHTTPS))
  2573. }
  2574. }
  2575. if yyr2 || yy2arr2 {
  2576. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2577. yym90 := z.EncBinary()
  2578. _ = yym90
  2579. if false {
  2580. } else {
  2581. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileLinkColor))
  2582. }
  2583. } else {
  2584. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2585. r.EncodeString(codecSelferC_UTF89225, string("profile_link_color"))
  2586. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2587. yym91 := z.EncBinary()
  2588. _ = yym91
  2589. if false {
  2590. } else {
  2591. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileLinkColor))
  2592. }
  2593. }
  2594. if yyr2 || yy2arr2 {
  2595. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2596. yym93 := z.EncBinary()
  2597. _ = yym93
  2598. if false {
  2599. } else {
  2600. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileSidebarBorderColor))
  2601. }
  2602. } else {
  2603. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2604. r.EncodeString(codecSelferC_UTF89225, string("profile_sidebar_border_color"))
  2605. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2606. yym94 := z.EncBinary()
  2607. _ = yym94
  2608. if false {
  2609. } else {
  2610. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileSidebarBorderColor))
  2611. }
  2612. }
  2613. if yyr2 || yy2arr2 {
  2614. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2615. yym96 := z.EncBinary()
  2616. _ = yym96
  2617. if false {
  2618. } else {
  2619. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileSidebarFillColor))
  2620. }
  2621. } else {
  2622. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2623. r.EncodeString(codecSelferC_UTF89225, string("profile_sidebar_fill_color"))
  2624. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2625. yym97 := z.EncBinary()
  2626. _ = yym97
  2627. if false {
  2628. } else {
  2629. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileSidebarFillColor))
  2630. }
  2631. }
  2632. if yyr2 || yy2arr2 {
  2633. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2634. yym99 := z.EncBinary()
  2635. _ = yym99
  2636. if false {
  2637. } else {
  2638. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileTextColor))
  2639. }
  2640. } else {
  2641. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2642. r.EncodeString(codecSelferC_UTF89225, string("profile_text_color"))
  2643. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2644. yym100 := z.EncBinary()
  2645. _ = yym100
  2646. if false {
  2647. } else {
  2648. r.EncodeString(codecSelferC_UTF89225, string(x.ProfileTextColor))
  2649. }
  2650. }
  2651. if yyr2 || yy2arr2 {
  2652. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2653. yym102 := z.EncBinary()
  2654. _ = yym102
  2655. if false {
  2656. } else {
  2657. r.EncodeBool(bool(x.ProfileUseBackgroundImage))
  2658. }
  2659. } else {
  2660. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2661. r.EncodeString(codecSelferC_UTF89225, string("profile_use_background_image"))
  2662. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2663. yym103 := z.EncBinary()
  2664. _ = yym103
  2665. if false {
  2666. } else {
  2667. r.EncodeBool(bool(x.ProfileUseBackgroundImage))
  2668. }
  2669. }
  2670. if yyr2 || yy2arr2 {
  2671. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2672. yym105 := z.EncBinary()
  2673. _ = yym105
  2674. if false {
  2675. } else {
  2676. r.EncodeBool(bool(x.Protected))
  2677. }
  2678. } else {
  2679. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2680. r.EncodeString(codecSelferC_UTF89225, string("protected"))
  2681. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2682. yym106 := z.EncBinary()
  2683. _ = yym106
  2684. if false {
  2685. } else {
  2686. r.EncodeBool(bool(x.Protected))
  2687. }
  2688. }
  2689. if yyr2 || yy2arr2 {
  2690. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2691. yym108 := z.EncBinary()
  2692. _ = yym108
  2693. if false {
  2694. } else {
  2695. r.EncodeString(codecSelferC_UTF89225, string(x.ScreenName))
  2696. }
  2697. } else {
  2698. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2699. r.EncodeString(codecSelferC_UTF89225, string("screen_name"))
  2700. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2701. yym109 := z.EncBinary()
  2702. _ = yym109
  2703. if false {
  2704. } else {
  2705. r.EncodeString(codecSelferC_UTF89225, string(x.ScreenName))
  2706. }
  2707. }
  2708. if yyr2 || yy2arr2 {
  2709. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2710. yym111 := z.EncBinary()
  2711. _ = yym111
  2712. if false {
  2713. } else {
  2714. r.EncodeBool(bool(x.ShowAllInlineMedia))
  2715. }
  2716. } else {
  2717. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2718. r.EncodeString(codecSelferC_UTF89225, string("show_all_inline_media"))
  2719. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2720. yym112 := z.EncBinary()
  2721. _ = yym112
  2722. if false {
  2723. } else {
  2724. r.EncodeBool(bool(x.ShowAllInlineMedia))
  2725. }
  2726. }
  2727. if yyr2 || yy2arr2 {
  2728. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2729. yym114 := z.EncBinary()
  2730. _ = yym114
  2731. if false {
  2732. } else {
  2733. r.EncodeInt(int64(x.StatusesCount))
  2734. }
  2735. } else {
  2736. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2737. r.EncodeString(codecSelferC_UTF89225, string("statuses_count"))
  2738. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2739. yym115 := z.EncBinary()
  2740. _ = yym115
  2741. if false {
  2742. } else {
  2743. r.EncodeInt(int64(x.StatusesCount))
  2744. }
  2745. }
  2746. if yyr2 || yy2arr2 {
  2747. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2748. yym117 := z.EncBinary()
  2749. _ = yym117
  2750. if false {
  2751. } else {
  2752. r.EncodeString(codecSelferC_UTF89225, string(x.TimeZone))
  2753. }
  2754. } else {
  2755. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2756. r.EncodeString(codecSelferC_UTF89225, string("time_zone"))
  2757. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2758. yym118 := z.EncBinary()
  2759. _ = yym118
  2760. if false {
  2761. } else {
  2762. r.EncodeString(codecSelferC_UTF89225, string(x.TimeZone))
  2763. }
  2764. }
  2765. if yyr2 || yy2arr2 {
  2766. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2767. if x.URL == nil {
  2768. r.EncodeNil()
  2769. } else {
  2770. yy120 := *x.URL
  2771. yym121 := z.EncBinary()
  2772. _ = yym121
  2773. if false {
  2774. } else {
  2775. r.EncodeString(codecSelferC_UTF89225, string(yy120))
  2776. }
  2777. }
  2778. } else {
  2779. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2780. r.EncodeString(codecSelferC_UTF89225, string("url"))
  2781. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2782. if x.URL == nil {
  2783. r.EncodeNil()
  2784. } else {
  2785. yy122 := *x.URL
  2786. yym123 := z.EncBinary()
  2787. _ = yym123
  2788. if false {
  2789. } else {
  2790. r.EncodeString(codecSelferC_UTF89225, string(yy122))
  2791. }
  2792. }
  2793. }
  2794. if yyr2 || yy2arr2 {
  2795. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2796. yym125 := z.EncBinary()
  2797. _ = yym125
  2798. if false {
  2799. } else {
  2800. r.EncodeInt(int64(x.UtcOffset))
  2801. }
  2802. } else {
  2803. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2804. r.EncodeString(codecSelferC_UTF89225, string("utc_offset"))
  2805. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2806. yym126 := z.EncBinary()
  2807. _ = yym126
  2808. if false {
  2809. } else {
  2810. r.EncodeInt(int64(x.UtcOffset))
  2811. }
  2812. }
  2813. if yyr2 || yy2arr2 {
  2814. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  2815. yym128 := z.EncBinary()
  2816. _ = yym128
  2817. if false {
  2818. } else {
  2819. r.EncodeBool(bool(x.Verified))
  2820. }
  2821. } else {
  2822. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  2823. r.EncodeString(codecSelferC_UTF89225, string("verified"))
  2824. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  2825. yym129 := z.EncBinary()
  2826. _ = yym129
  2827. if false {
  2828. } else {
  2829. r.EncodeBool(bool(x.Verified))
  2830. }
  2831. }
  2832. if yyr2 || yy2arr2 {
  2833. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  2834. } else {
  2835. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  2836. }
  2837. }
  2838. }
  2839. }
  2840. func (x *User) CodecDecodeSelf(d *codec1978.Decoder) {
  2841. var h codecSelfer9225
  2842. z, r := codec1978.GenHelperDecoder(d)
  2843. _, _, _ = h, z, r
  2844. yym1 := z.DecBinary()
  2845. _ = yym1
  2846. if false {
  2847. } else if z.HasExtensions() && z.DecExt(x) {
  2848. } else {
  2849. yyct2 := r.ContainerType()
  2850. if yyct2 == codecSelferValueTypeMap9225 {
  2851. yyl2 := r.ReadMapStart()
  2852. if yyl2 == 0 {
  2853. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  2854. } else {
  2855. x.codecDecodeSelfFromMap(yyl2, d)
  2856. }
  2857. } else if yyct2 == codecSelferValueTypeArray9225 {
  2858. yyl2 := r.ReadArrayStart()
  2859. if yyl2 == 0 {
  2860. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  2861. } else {
  2862. x.codecDecodeSelfFromArray(yyl2, d)
  2863. }
  2864. } else {
  2865. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  2866. }
  2867. }
  2868. }
  2869. func (x *User) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  2870. var h codecSelfer9225
  2871. z, r := codec1978.GenHelperDecoder(d)
  2872. _, _, _ = h, z, r
  2873. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  2874. _ = yys3Slc
  2875. var yyhl3 bool = l >= 0
  2876. for yyj3 := 0; ; yyj3++ {
  2877. if yyhl3 {
  2878. if yyj3 >= l {
  2879. break
  2880. }
  2881. } else {
  2882. if r.CheckBreak() {
  2883. break
  2884. }
  2885. }
  2886. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  2887. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  2888. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  2889. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  2890. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  2891. switch yys3 {
  2892. case "contributors_enabled":
  2893. if r.TryDecodeAsNil() {
  2894. x.ContributorsEnabled = false
  2895. } else {
  2896. yyv4 := &x.ContributorsEnabled
  2897. yym5 := z.DecBinary()
  2898. _ = yym5
  2899. if false {
  2900. } else {
  2901. *((*bool)(yyv4)) = r.DecodeBool()
  2902. }
  2903. }
  2904. case "created_at":
  2905. if r.TryDecodeAsNil() {
  2906. x.CreatedAt = ""
  2907. } else {
  2908. yyv6 := &x.CreatedAt
  2909. yym7 := z.DecBinary()
  2910. _ = yym7
  2911. if false {
  2912. } else {
  2913. *((*string)(yyv6)) = r.DecodeString()
  2914. }
  2915. }
  2916. case "default_profile":
  2917. if r.TryDecodeAsNil() {
  2918. x.DefaultProfile = false
  2919. } else {
  2920. yyv8 := &x.DefaultProfile
  2921. yym9 := z.DecBinary()
  2922. _ = yym9
  2923. if false {
  2924. } else {
  2925. *((*bool)(yyv8)) = r.DecodeBool()
  2926. }
  2927. }
  2928. case "default_profile_image":
  2929. if r.TryDecodeAsNil() {
  2930. x.DefaultProfileImage = false
  2931. } else {
  2932. yyv10 := &x.DefaultProfileImage
  2933. yym11 := z.DecBinary()
  2934. _ = yym11
  2935. if false {
  2936. } else {
  2937. *((*bool)(yyv10)) = r.DecodeBool()
  2938. }
  2939. }
  2940. case "description":
  2941. if r.TryDecodeAsNil() {
  2942. x.Description = ""
  2943. } else {
  2944. yyv12 := &x.Description
  2945. yym13 := z.DecBinary()
  2946. _ = yym13
  2947. if false {
  2948. } else {
  2949. *((*string)(yyv12)) = r.DecodeString()
  2950. }
  2951. }
  2952. case "entities":
  2953. if r.TryDecodeAsNil() {
  2954. x.Entities = UserEntities{}
  2955. } else {
  2956. yyv14 := &x.Entities
  2957. yyv14.CodecDecodeSelf(d)
  2958. }
  2959. case "favourites_count":
  2960. if r.TryDecodeAsNil() {
  2961. x.FavouritesCount = 0
  2962. } else {
  2963. yyv15 := &x.FavouritesCount
  2964. yym16 := z.DecBinary()
  2965. _ = yym16
  2966. if false {
  2967. } else {
  2968. *((*int)(yyv15)) = int(r.DecodeInt(codecSelferBitsize9225))
  2969. }
  2970. }
  2971. case "follow_request_sent":
  2972. if r.TryDecodeAsNil() {
  2973. if x.FollowRequestSent != nil {
  2974. x.FollowRequestSent = nil
  2975. }
  2976. } else {
  2977. if x.FollowRequestSent == nil {
  2978. x.FollowRequestSent = new(string)
  2979. }
  2980. yym18 := z.DecBinary()
  2981. _ = yym18
  2982. if false {
  2983. } else {
  2984. *((*string)(x.FollowRequestSent)) = r.DecodeString()
  2985. }
  2986. }
  2987. case "followers_count":
  2988. if r.TryDecodeAsNil() {
  2989. x.FollowersCount = 0
  2990. } else {
  2991. yyv19 := &x.FollowersCount
  2992. yym20 := z.DecBinary()
  2993. _ = yym20
  2994. if false {
  2995. } else {
  2996. *((*int)(yyv19)) = int(r.DecodeInt(codecSelferBitsize9225))
  2997. }
  2998. }
  2999. case "following":
  3000. if r.TryDecodeAsNil() {
  3001. if x.Following != nil {
  3002. x.Following = nil
  3003. }
  3004. } else {
  3005. if x.Following == nil {
  3006. x.Following = new(string)
  3007. }
  3008. yym22 := z.DecBinary()
  3009. _ = yym22
  3010. if false {
  3011. } else {
  3012. *((*string)(x.Following)) = r.DecodeString()
  3013. }
  3014. }
  3015. case "friends_count":
  3016. if r.TryDecodeAsNil() {
  3017. x.FriendsCount = 0
  3018. } else {
  3019. yyv23 := &x.FriendsCount
  3020. yym24 := z.DecBinary()
  3021. _ = yym24
  3022. if false {
  3023. } else {
  3024. *((*int)(yyv23)) = int(r.DecodeInt(codecSelferBitsize9225))
  3025. }
  3026. }
  3027. case "geo_enabled":
  3028. if r.TryDecodeAsNil() {
  3029. x.GeoEnabled = false
  3030. } else {
  3031. yyv25 := &x.GeoEnabled
  3032. yym26 := z.DecBinary()
  3033. _ = yym26
  3034. if false {
  3035. } else {
  3036. *((*bool)(yyv25)) = r.DecodeBool()
  3037. }
  3038. }
  3039. case "id":
  3040. if r.TryDecodeAsNil() {
  3041. x.ID = 0
  3042. } else {
  3043. yyv27 := &x.ID
  3044. yym28 := z.DecBinary()
  3045. _ = yym28
  3046. if false {
  3047. } else {
  3048. *((*int)(yyv27)) = int(r.DecodeInt(codecSelferBitsize9225))
  3049. }
  3050. }
  3051. case "id_str":
  3052. if r.TryDecodeAsNil() {
  3053. x.IDStr = ""
  3054. } else {
  3055. yyv29 := &x.IDStr
  3056. yym30 := z.DecBinary()
  3057. _ = yym30
  3058. if false {
  3059. } else {
  3060. *((*string)(yyv29)) = r.DecodeString()
  3061. }
  3062. }
  3063. case "is_translator":
  3064. if r.TryDecodeAsNil() {
  3065. x.IsTranslator = false
  3066. } else {
  3067. yyv31 := &x.IsTranslator
  3068. yym32 := z.DecBinary()
  3069. _ = yym32
  3070. if false {
  3071. } else {
  3072. *((*bool)(yyv31)) = r.DecodeBool()
  3073. }
  3074. }
  3075. case "lang":
  3076. if r.TryDecodeAsNil() {
  3077. x.Lang = ""
  3078. } else {
  3079. yyv33 := &x.Lang
  3080. yym34 := z.DecBinary()
  3081. _ = yym34
  3082. if false {
  3083. } else {
  3084. *((*string)(yyv33)) = r.DecodeString()
  3085. }
  3086. }
  3087. case "listed_count":
  3088. if r.TryDecodeAsNil() {
  3089. x.ListedCount = 0
  3090. } else {
  3091. yyv35 := &x.ListedCount
  3092. yym36 := z.DecBinary()
  3093. _ = yym36
  3094. if false {
  3095. } else {
  3096. *((*int)(yyv35)) = int(r.DecodeInt(codecSelferBitsize9225))
  3097. }
  3098. }
  3099. case "location":
  3100. if r.TryDecodeAsNil() {
  3101. x.Location = ""
  3102. } else {
  3103. yyv37 := &x.Location
  3104. yym38 := z.DecBinary()
  3105. _ = yym38
  3106. if false {
  3107. } else {
  3108. *((*string)(yyv37)) = r.DecodeString()
  3109. }
  3110. }
  3111. case "name":
  3112. if r.TryDecodeAsNil() {
  3113. x.Name = ""
  3114. } else {
  3115. yyv39 := &x.Name
  3116. yym40 := z.DecBinary()
  3117. _ = yym40
  3118. if false {
  3119. } else {
  3120. *((*string)(yyv39)) = r.DecodeString()
  3121. }
  3122. }
  3123. case "notifications":
  3124. if r.TryDecodeAsNil() {
  3125. if x.Notifications != nil {
  3126. x.Notifications = nil
  3127. }
  3128. } else {
  3129. if x.Notifications == nil {
  3130. x.Notifications = new(string)
  3131. }
  3132. yym42 := z.DecBinary()
  3133. _ = yym42
  3134. if false {
  3135. } else {
  3136. *((*string)(x.Notifications)) = r.DecodeString()
  3137. }
  3138. }
  3139. case "profile_background_color":
  3140. if r.TryDecodeAsNil() {
  3141. x.ProfileBackgroundColor = ""
  3142. } else {
  3143. yyv43 := &x.ProfileBackgroundColor
  3144. yym44 := z.DecBinary()
  3145. _ = yym44
  3146. if false {
  3147. } else {
  3148. *((*string)(yyv43)) = r.DecodeString()
  3149. }
  3150. }
  3151. case "profile_background_image_url":
  3152. if r.TryDecodeAsNil() {
  3153. x.ProfileBackgroundImageURL = ""
  3154. } else {
  3155. yyv45 := &x.ProfileBackgroundImageURL
  3156. yym46 := z.DecBinary()
  3157. _ = yym46
  3158. if false {
  3159. } else {
  3160. *((*string)(yyv45)) = r.DecodeString()
  3161. }
  3162. }
  3163. case "profile_background_image_url_https":
  3164. if r.TryDecodeAsNil() {
  3165. x.ProfileBackgroundImageURLHTTPS = ""
  3166. } else {
  3167. yyv47 := &x.ProfileBackgroundImageURLHTTPS
  3168. yym48 := z.DecBinary()
  3169. _ = yym48
  3170. if false {
  3171. } else {
  3172. *((*string)(yyv47)) = r.DecodeString()
  3173. }
  3174. }
  3175. case "profile_background_tile":
  3176. if r.TryDecodeAsNil() {
  3177. x.ProfileBackgroundTile = false
  3178. } else {
  3179. yyv49 := &x.ProfileBackgroundTile
  3180. yym50 := z.DecBinary()
  3181. _ = yym50
  3182. if false {
  3183. } else {
  3184. *((*bool)(yyv49)) = r.DecodeBool()
  3185. }
  3186. }
  3187. case "profile_image_url":
  3188. if r.TryDecodeAsNil() {
  3189. x.ProfileImageURL = ""
  3190. } else {
  3191. yyv51 := &x.ProfileImageURL
  3192. yym52 := z.DecBinary()
  3193. _ = yym52
  3194. if false {
  3195. } else {
  3196. *((*string)(yyv51)) = r.DecodeString()
  3197. }
  3198. }
  3199. case "profile_image_url_https":
  3200. if r.TryDecodeAsNil() {
  3201. x.ProfileImageURLHTTPS = ""
  3202. } else {
  3203. yyv53 := &x.ProfileImageURLHTTPS
  3204. yym54 := z.DecBinary()
  3205. _ = yym54
  3206. if false {
  3207. } else {
  3208. *((*string)(yyv53)) = r.DecodeString()
  3209. }
  3210. }
  3211. case "profile_link_color":
  3212. if r.TryDecodeAsNil() {
  3213. x.ProfileLinkColor = ""
  3214. } else {
  3215. yyv55 := &x.ProfileLinkColor
  3216. yym56 := z.DecBinary()
  3217. _ = yym56
  3218. if false {
  3219. } else {
  3220. *((*string)(yyv55)) = r.DecodeString()
  3221. }
  3222. }
  3223. case "profile_sidebar_border_color":
  3224. if r.TryDecodeAsNil() {
  3225. x.ProfileSidebarBorderColor = ""
  3226. } else {
  3227. yyv57 := &x.ProfileSidebarBorderColor
  3228. yym58 := z.DecBinary()
  3229. _ = yym58
  3230. if false {
  3231. } else {
  3232. *((*string)(yyv57)) = r.DecodeString()
  3233. }
  3234. }
  3235. case "profile_sidebar_fill_color":
  3236. if r.TryDecodeAsNil() {
  3237. x.ProfileSidebarFillColor = ""
  3238. } else {
  3239. yyv59 := &x.ProfileSidebarFillColor
  3240. yym60 := z.DecBinary()
  3241. _ = yym60
  3242. if false {
  3243. } else {
  3244. *((*string)(yyv59)) = r.DecodeString()
  3245. }
  3246. }
  3247. case "profile_text_color":
  3248. if r.TryDecodeAsNil() {
  3249. x.ProfileTextColor = ""
  3250. } else {
  3251. yyv61 := &x.ProfileTextColor
  3252. yym62 := z.DecBinary()
  3253. _ = yym62
  3254. if false {
  3255. } else {
  3256. *((*string)(yyv61)) = r.DecodeString()
  3257. }
  3258. }
  3259. case "profile_use_background_image":
  3260. if r.TryDecodeAsNil() {
  3261. x.ProfileUseBackgroundImage = false
  3262. } else {
  3263. yyv63 := &x.ProfileUseBackgroundImage
  3264. yym64 := z.DecBinary()
  3265. _ = yym64
  3266. if false {
  3267. } else {
  3268. *((*bool)(yyv63)) = r.DecodeBool()
  3269. }
  3270. }
  3271. case "protected":
  3272. if r.TryDecodeAsNil() {
  3273. x.Protected = false
  3274. } else {
  3275. yyv65 := &x.Protected
  3276. yym66 := z.DecBinary()
  3277. _ = yym66
  3278. if false {
  3279. } else {
  3280. *((*bool)(yyv65)) = r.DecodeBool()
  3281. }
  3282. }
  3283. case "screen_name":
  3284. if r.TryDecodeAsNil() {
  3285. x.ScreenName = ""
  3286. } else {
  3287. yyv67 := &x.ScreenName
  3288. yym68 := z.DecBinary()
  3289. _ = yym68
  3290. if false {
  3291. } else {
  3292. *((*string)(yyv67)) = r.DecodeString()
  3293. }
  3294. }
  3295. case "show_all_inline_media":
  3296. if r.TryDecodeAsNil() {
  3297. x.ShowAllInlineMedia = false
  3298. } else {
  3299. yyv69 := &x.ShowAllInlineMedia
  3300. yym70 := z.DecBinary()
  3301. _ = yym70
  3302. if false {
  3303. } else {
  3304. *((*bool)(yyv69)) = r.DecodeBool()
  3305. }
  3306. }
  3307. case "statuses_count":
  3308. if r.TryDecodeAsNil() {
  3309. x.StatusesCount = 0
  3310. } else {
  3311. yyv71 := &x.StatusesCount
  3312. yym72 := z.DecBinary()
  3313. _ = yym72
  3314. if false {
  3315. } else {
  3316. *((*int)(yyv71)) = int(r.DecodeInt(codecSelferBitsize9225))
  3317. }
  3318. }
  3319. case "time_zone":
  3320. if r.TryDecodeAsNil() {
  3321. x.TimeZone = ""
  3322. } else {
  3323. yyv73 := &x.TimeZone
  3324. yym74 := z.DecBinary()
  3325. _ = yym74
  3326. if false {
  3327. } else {
  3328. *((*string)(yyv73)) = r.DecodeString()
  3329. }
  3330. }
  3331. case "url":
  3332. if r.TryDecodeAsNil() {
  3333. if x.URL != nil {
  3334. x.URL = nil
  3335. }
  3336. } else {
  3337. if x.URL == nil {
  3338. x.URL = new(string)
  3339. }
  3340. yym76 := z.DecBinary()
  3341. _ = yym76
  3342. if false {
  3343. } else {
  3344. *((*string)(x.URL)) = r.DecodeString()
  3345. }
  3346. }
  3347. case "utc_offset":
  3348. if r.TryDecodeAsNil() {
  3349. x.UtcOffset = 0
  3350. } else {
  3351. yyv77 := &x.UtcOffset
  3352. yym78 := z.DecBinary()
  3353. _ = yym78
  3354. if false {
  3355. } else {
  3356. *((*int)(yyv77)) = int(r.DecodeInt(codecSelferBitsize9225))
  3357. }
  3358. }
  3359. case "verified":
  3360. if r.TryDecodeAsNil() {
  3361. x.Verified = false
  3362. } else {
  3363. yyv79 := &x.Verified
  3364. yym80 := z.DecBinary()
  3365. _ = yym80
  3366. if false {
  3367. } else {
  3368. *((*bool)(yyv79)) = r.DecodeBool()
  3369. }
  3370. }
  3371. default:
  3372. z.DecStructFieldNotFound(-1, yys3)
  3373. } // end switch yys3
  3374. } // end for yyj3
  3375. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  3376. }
  3377. func (x *User) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  3378. var h codecSelfer9225
  3379. z, r := codec1978.GenHelperDecoder(d)
  3380. _, _, _ = h, z, r
  3381. var yyj81 int
  3382. var yyb81 bool
  3383. var yyhl81 bool = l >= 0
  3384. yyj81++
  3385. if yyhl81 {
  3386. yyb81 = yyj81 > l
  3387. } else {
  3388. yyb81 = r.CheckBreak()
  3389. }
  3390. if yyb81 {
  3391. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3392. return
  3393. }
  3394. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3395. if r.TryDecodeAsNil() {
  3396. x.ContributorsEnabled = false
  3397. } else {
  3398. yyv82 := &x.ContributorsEnabled
  3399. yym83 := z.DecBinary()
  3400. _ = yym83
  3401. if false {
  3402. } else {
  3403. *((*bool)(yyv82)) = r.DecodeBool()
  3404. }
  3405. }
  3406. yyj81++
  3407. if yyhl81 {
  3408. yyb81 = yyj81 > l
  3409. } else {
  3410. yyb81 = r.CheckBreak()
  3411. }
  3412. if yyb81 {
  3413. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3414. return
  3415. }
  3416. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3417. if r.TryDecodeAsNil() {
  3418. x.CreatedAt = ""
  3419. } else {
  3420. yyv84 := &x.CreatedAt
  3421. yym85 := z.DecBinary()
  3422. _ = yym85
  3423. if false {
  3424. } else {
  3425. *((*string)(yyv84)) = r.DecodeString()
  3426. }
  3427. }
  3428. yyj81++
  3429. if yyhl81 {
  3430. yyb81 = yyj81 > l
  3431. } else {
  3432. yyb81 = r.CheckBreak()
  3433. }
  3434. if yyb81 {
  3435. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3436. return
  3437. }
  3438. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3439. if r.TryDecodeAsNil() {
  3440. x.DefaultProfile = false
  3441. } else {
  3442. yyv86 := &x.DefaultProfile
  3443. yym87 := z.DecBinary()
  3444. _ = yym87
  3445. if false {
  3446. } else {
  3447. *((*bool)(yyv86)) = r.DecodeBool()
  3448. }
  3449. }
  3450. yyj81++
  3451. if yyhl81 {
  3452. yyb81 = yyj81 > l
  3453. } else {
  3454. yyb81 = r.CheckBreak()
  3455. }
  3456. if yyb81 {
  3457. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3458. return
  3459. }
  3460. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3461. if r.TryDecodeAsNil() {
  3462. x.DefaultProfileImage = false
  3463. } else {
  3464. yyv88 := &x.DefaultProfileImage
  3465. yym89 := z.DecBinary()
  3466. _ = yym89
  3467. if false {
  3468. } else {
  3469. *((*bool)(yyv88)) = r.DecodeBool()
  3470. }
  3471. }
  3472. yyj81++
  3473. if yyhl81 {
  3474. yyb81 = yyj81 > l
  3475. } else {
  3476. yyb81 = r.CheckBreak()
  3477. }
  3478. if yyb81 {
  3479. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3480. return
  3481. }
  3482. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3483. if r.TryDecodeAsNil() {
  3484. x.Description = ""
  3485. } else {
  3486. yyv90 := &x.Description
  3487. yym91 := z.DecBinary()
  3488. _ = yym91
  3489. if false {
  3490. } else {
  3491. *((*string)(yyv90)) = r.DecodeString()
  3492. }
  3493. }
  3494. yyj81++
  3495. if yyhl81 {
  3496. yyb81 = yyj81 > l
  3497. } else {
  3498. yyb81 = r.CheckBreak()
  3499. }
  3500. if yyb81 {
  3501. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3502. return
  3503. }
  3504. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3505. if r.TryDecodeAsNil() {
  3506. x.Entities = UserEntities{}
  3507. } else {
  3508. yyv92 := &x.Entities
  3509. yyv92.CodecDecodeSelf(d)
  3510. }
  3511. yyj81++
  3512. if yyhl81 {
  3513. yyb81 = yyj81 > l
  3514. } else {
  3515. yyb81 = r.CheckBreak()
  3516. }
  3517. if yyb81 {
  3518. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3519. return
  3520. }
  3521. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3522. if r.TryDecodeAsNil() {
  3523. x.FavouritesCount = 0
  3524. } else {
  3525. yyv93 := &x.FavouritesCount
  3526. yym94 := z.DecBinary()
  3527. _ = yym94
  3528. if false {
  3529. } else {
  3530. *((*int)(yyv93)) = int(r.DecodeInt(codecSelferBitsize9225))
  3531. }
  3532. }
  3533. yyj81++
  3534. if yyhl81 {
  3535. yyb81 = yyj81 > l
  3536. } else {
  3537. yyb81 = r.CheckBreak()
  3538. }
  3539. if yyb81 {
  3540. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3541. return
  3542. }
  3543. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3544. if r.TryDecodeAsNil() {
  3545. if x.FollowRequestSent != nil {
  3546. x.FollowRequestSent = nil
  3547. }
  3548. } else {
  3549. if x.FollowRequestSent == nil {
  3550. x.FollowRequestSent = new(string)
  3551. }
  3552. yym96 := z.DecBinary()
  3553. _ = yym96
  3554. if false {
  3555. } else {
  3556. *((*string)(x.FollowRequestSent)) = r.DecodeString()
  3557. }
  3558. }
  3559. yyj81++
  3560. if yyhl81 {
  3561. yyb81 = yyj81 > l
  3562. } else {
  3563. yyb81 = r.CheckBreak()
  3564. }
  3565. if yyb81 {
  3566. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3567. return
  3568. }
  3569. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3570. if r.TryDecodeAsNil() {
  3571. x.FollowersCount = 0
  3572. } else {
  3573. yyv97 := &x.FollowersCount
  3574. yym98 := z.DecBinary()
  3575. _ = yym98
  3576. if false {
  3577. } else {
  3578. *((*int)(yyv97)) = int(r.DecodeInt(codecSelferBitsize9225))
  3579. }
  3580. }
  3581. yyj81++
  3582. if yyhl81 {
  3583. yyb81 = yyj81 > l
  3584. } else {
  3585. yyb81 = r.CheckBreak()
  3586. }
  3587. if yyb81 {
  3588. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3589. return
  3590. }
  3591. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3592. if r.TryDecodeAsNil() {
  3593. if x.Following != nil {
  3594. x.Following = nil
  3595. }
  3596. } else {
  3597. if x.Following == nil {
  3598. x.Following = new(string)
  3599. }
  3600. yym100 := z.DecBinary()
  3601. _ = yym100
  3602. if false {
  3603. } else {
  3604. *((*string)(x.Following)) = r.DecodeString()
  3605. }
  3606. }
  3607. yyj81++
  3608. if yyhl81 {
  3609. yyb81 = yyj81 > l
  3610. } else {
  3611. yyb81 = r.CheckBreak()
  3612. }
  3613. if yyb81 {
  3614. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3615. return
  3616. }
  3617. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3618. if r.TryDecodeAsNil() {
  3619. x.FriendsCount = 0
  3620. } else {
  3621. yyv101 := &x.FriendsCount
  3622. yym102 := z.DecBinary()
  3623. _ = yym102
  3624. if false {
  3625. } else {
  3626. *((*int)(yyv101)) = int(r.DecodeInt(codecSelferBitsize9225))
  3627. }
  3628. }
  3629. yyj81++
  3630. if yyhl81 {
  3631. yyb81 = yyj81 > l
  3632. } else {
  3633. yyb81 = r.CheckBreak()
  3634. }
  3635. if yyb81 {
  3636. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3637. return
  3638. }
  3639. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3640. if r.TryDecodeAsNil() {
  3641. x.GeoEnabled = false
  3642. } else {
  3643. yyv103 := &x.GeoEnabled
  3644. yym104 := z.DecBinary()
  3645. _ = yym104
  3646. if false {
  3647. } else {
  3648. *((*bool)(yyv103)) = r.DecodeBool()
  3649. }
  3650. }
  3651. yyj81++
  3652. if yyhl81 {
  3653. yyb81 = yyj81 > l
  3654. } else {
  3655. yyb81 = r.CheckBreak()
  3656. }
  3657. if yyb81 {
  3658. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3659. return
  3660. }
  3661. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3662. if r.TryDecodeAsNil() {
  3663. x.ID = 0
  3664. } else {
  3665. yyv105 := &x.ID
  3666. yym106 := z.DecBinary()
  3667. _ = yym106
  3668. if false {
  3669. } else {
  3670. *((*int)(yyv105)) = int(r.DecodeInt(codecSelferBitsize9225))
  3671. }
  3672. }
  3673. yyj81++
  3674. if yyhl81 {
  3675. yyb81 = yyj81 > l
  3676. } else {
  3677. yyb81 = r.CheckBreak()
  3678. }
  3679. if yyb81 {
  3680. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3681. return
  3682. }
  3683. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3684. if r.TryDecodeAsNil() {
  3685. x.IDStr = ""
  3686. } else {
  3687. yyv107 := &x.IDStr
  3688. yym108 := z.DecBinary()
  3689. _ = yym108
  3690. if false {
  3691. } else {
  3692. *((*string)(yyv107)) = r.DecodeString()
  3693. }
  3694. }
  3695. yyj81++
  3696. if yyhl81 {
  3697. yyb81 = yyj81 > l
  3698. } else {
  3699. yyb81 = r.CheckBreak()
  3700. }
  3701. if yyb81 {
  3702. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3703. return
  3704. }
  3705. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3706. if r.TryDecodeAsNil() {
  3707. x.IsTranslator = false
  3708. } else {
  3709. yyv109 := &x.IsTranslator
  3710. yym110 := z.DecBinary()
  3711. _ = yym110
  3712. if false {
  3713. } else {
  3714. *((*bool)(yyv109)) = r.DecodeBool()
  3715. }
  3716. }
  3717. yyj81++
  3718. if yyhl81 {
  3719. yyb81 = yyj81 > l
  3720. } else {
  3721. yyb81 = r.CheckBreak()
  3722. }
  3723. if yyb81 {
  3724. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3725. return
  3726. }
  3727. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3728. if r.TryDecodeAsNil() {
  3729. x.Lang = ""
  3730. } else {
  3731. yyv111 := &x.Lang
  3732. yym112 := z.DecBinary()
  3733. _ = yym112
  3734. if false {
  3735. } else {
  3736. *((*string)(yyv111)) = r.DecodeString()
  3737. }
  3738. }
  3739. yyj81++
  3740. if yyhl81 {
  3741. yyb81 = yyj81 > l
  3742. } else {
  3743. yyb81 = r.CheckBreak()
  3744. }
  3745. if yyb81 {
  3746. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3747. return
  3748. }
  3749. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3750. if r.TryDecodeAsNil() {
  3751. x.ListedCount = 0
  3752. } else {
  3753. yyv113 := &x.ListedCount
  3754. yym114 := z.DecBinary()
  3755. _ = yym114
  3756. if false {
  3757. } else {
  3758. *((*int)(yyv113)) = int(r.DecodeInt(codecSelferBitsize9225))
  3759. }
  3760. }
  3761. yyj81++
  3762. if yyhl81 {
  3763. yyb81 = yyj81 > l
  3764. } else {
  3765. yyb81 = r.CheckBreak()
  3766. }
  3767. if yyb81 {
  3768. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3769. return
  3770. }
  3771. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3772. if r.TryDecodeAsNil() {
  3773. x.Location = ""
  3774. } else {
  3775. yyv115 := &x.Location
  3776. yym116 := z.DecBinary()
  3777. _ = yym116
  3778. if false {
  3779. } else {
  3780. *((*string)(yyv115)) = r.DecodeString()
  3781. }
  3782. }
  3783. yyj81++
  3784. if yyhl81 {
  3785. yyb81 = yyj81 > l
  3786. } else {
  3787. yyb81 = r.CheckBreak()
  3788. }
  3789. if yyb81 {
  3790. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3791. return
  3792. }
  3793. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3794. if r.TryDecodeAsNil() {
  3795. x.Name = ""
  3796. } else {
  3797. yyv117 := &x.Name
  3798. yym118 := z.DecBinary()
  3799. _ = yym118
  3800. if false {
  3801. } else {
  3802. *((*string)(yyv117)) = r.DecodeString()
  3803. }
  3804. }
  3805. yyj81++
  3806. if yyhl81 {
  3807. yyb81 = yyj81 > l
  3808. } else {
  3809. yyb81 = r.CheckBreak()
  3810. }
  3811. if yyb81 {
  3812. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3813. return
  3814. }
  3815. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3816. if r.TryDecodeAsNil() {
  3817. if x.Notifications != nil {
  3818. x.Notifications = nil
  3819. }
  3820. } else {
  3821. if x.Notifications == nil {
  3822. x.Notifications = new(string)
  3823. }
  3824. yym120 := z.DecBinary()
  3825. _ = yym120
  3826. if false {
  3827. } else {
  3828. *((*string)(x.Notifications)) = r.DecodeString()
  3829. }
  3830. }
  3831. yyj81++
  3832. if yyhl81 {
  3833. yyb81 = yyj81 > l
  3834. } else {
  3835. yyb81 = r.CheckBreak()
  3836. }
  3837. if yyb81 {
  3838. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3839. return
  3840. }
  3841. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3842. if r.TryDecodeAsNil() {
  3843. x.ProfileBackgroundColor = ""
  3844. } else {
  3845. yyv121 := &x.ProfileBackgroundColor
  3846. yym122 := z.DecBinary()
  3847. _ = yym122
  3848. if false {
  3849. } else {
  3850. *((*string)(yyv121)) = r.DecodeString()
  3851. }
  3852. }
  3853. yyj81++
  3854. if yyhl81 {
  3855. yyb81 = yyj81 > l
  3856. } else {
  3857. yyb81 = r.CheckBreak()
  3858. }
  3859. if yyb81 {
  3860. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3861. return
  3862. }
  3863. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3864. if r.TryDecodeAsNil() {
  3865. x.ProfileBackgroundImageURL = ""
  3866. } else {
  3867. yyv123 := &x.ProfileBackgroundImageURL
  3868. yym124 := z.DecBinary()
  3869. _ = yym124
  3870. if false {
  3871. } else {
  3872. *((*string)(yyv123)) = r.DecodeString()
  3873. }
  3874. }
  3875. yyj81++
  3876. if yyhl81 {
  3877. yyb81 = yyj81 > l
  3878. } else {
  3879. yyb81 = r.CheckBreak()
  3880. }
  3881. if yyb81 {
  3882. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3883. return
  3884. }
  3885. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3886. if r.TryDecodeAsNil() {
  3887. x.ProfileBackgroundImageURLHTTPS = ""
  3888. } else {
  3889. yyv125 := &x.ProfileBackgroundImageURLHTTPS
  3890. yym126 := z.DecBinary()
  3891. _ = yym126
  3892. if false {
  3893. } else {
  3894. *((*string)(yyv125)) = r.DecodeString()
  3895. }
  3896. }
  3897. yyj81++
  3898. if yyhl81 {
  3899. yyb81 = yyj81 > l
  3900. } else {
  3901. yyb81 = r.CheckBreak()
  3902. }
  3903. if yyb81 {
  3904. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3905. return
  3906. }
  3907. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3908. if r.TryDecodeAsNil() {
  3909. x.ProfileBackgroundTile = false
  3910. } else {
  3911. yyv127 := &x.ProfileBackgroundTile
  3912. yym128 := z.DecBinary()
  3913. _ = yym128
  3914. if false {
  3915. } else {
  3916. *((*bool)(yyv127)) = r.DecodeBool()
  3917. }
  3918. }
  3919. yyj81++
  3920. if yyhl81 {
  3921. yyb81 = yyj81 > l
  3922. } else {
  3923. yyb81 = r.CheckBreak()
  3924. }
  3925. if yyb81 {
  3926. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3927. return
  3928. }
  3929. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3930. if r.TryDecodeAsNil() {
  3931. x.ProfileImageURL = ""
  3932. } else {
  3933. yyv129 := &x.ProfileImageURL
  3934. yym130 := z.DecBinary()
  3935. _ = yym130
  3936. if false {
  3937. } else {
  3938. *((*string)(yyv129)) = r.DecodeString()
  3939. }
  3940. }
  3941. yyj81++
  3942. if yyhl81 {
  3943. yyb81 = yyj81 > l
  3944. } else {
  3945. yyb81 = r.CheckBreak()
  3946. }
  3947. if yyb81 {
  3948. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3949. return
  3950. }
  3951. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3952. if r.TryDecodeAsNil() {
  3953. x.ProfileImageURLHTTPS = ""
  3954. } else {
  3955. yyv131 := &x.ProfileImageURLHTTPS
  3956. yym132 := z.DecBinary()
  3957. _ = yym132
  3958. if false {
  3959. } else {
  3960. *((*string)(yyv131)) = r.DecodeString()
  3961. }
  3962. }
  3963. yyj81++
  3964. if yyhl81 {
  3965. yyb81 = yyj81 > l
  3966. } else {
  3967. yyb81 = r.CheckBreak()
  3968. }
  3969. if yyb81 {
  3970. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3971. return
  3972. }
  3973. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3974. if r.TryDecodeAsNil() {
  3975. x.ProfileLinkColor = ""
  3976. } else {
  3977. yyv133 := &x.ProfileLinkColor
  3978. yym134 := z.DecBinary()
  3979. _ = yym134
  3980. if false {
  3981. } else {
  3982. *((*string)(yyv133)) = r.DecodeString()
  3983. }
  3984. }
  3985. yyj81++
  3986. if yyhl81 {
  3987. yyb81 = yyj81 > l
  3988. } else {
  3989. yyb81 = r.CheckBreak()
  3990. }
  3991. if yyb81 {
  3992. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  3993. return
  3994. }
  3995. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  3996. if r.TryDecodeAsNil() {
  3997. x.ProfileSidebarBorderColor = ""
  3998. } else {
  3999. yyv135 := &x.ProfileSidebarBorderColor
  4000. yym136 := z.DecBinary()
  4001. _ = yym136
  4002. if false {
  4003. } else {
  4004. *((*string)(yyv135)) = r.DecodeString()
  4005. }
  4006. }
  4007. yyj81++
  4008. if yyhl81 {
  4009. yyb81 = yyj81 > l
  4010. } else {
  4011. yyb81 = r.CheckBreak()
  4012. }
  4013. if yyb81 {
  4014. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4015. return
  4016. }
  4017. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4018. if r.TryDecodeAsNil() {
  4019. x.ProfileSidebarFillColor = ""
  4020. } else {
  4021. yyv137 := &x.ProfileSidebarFillColor
  4022. yym138 := z.DecBinary()
  4023. _ = yym138
  4024. if false {
  4025. } else {
  4026. *((*string)(yyv137)) = r.DecodeString()
  4027. }
  4028. }
  4029. yyj81++
  4030. if yyhl81 {
  4031. yyb81 = yyj81 > l
  4032. } else {
  4033. yyb81 = r.CheckBreak()
  4034. }
  4035. if yyb81 {
  4036. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4037. return
  4038. }
  4039. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4040. if r.TryDecodeAsNil() {
  4041. x.ProfileTextColor = ""
  4042. } else {
  4043. yyv139 := &x.ProfileTextColor
  4044. yym140 := z.DecBinary()
  4045. _ = yym140
  4046. if false {
  4047. } else {
  4048. *((*string)(yyv139)) = r.DecodeString()
  4049. }
  4050. }
  4051. yyj81++
  4052. if yyhl81 {
  4053. yyb81 = yyj81 > l
  4054. } else {
  4055. yyb81 = r.CheckBreak()
  4056. }
  4057. if yyb81 {
  4058. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4059. return
  4060. }
  4061. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4062. if r.TryDecodeAsNil() {
  4063. x.ProfileUseBackgroundImage = false
  4064. } else {
  4065. yyv141 := &x.ProfileUseBackgroundImage
  4066. yym142 := z.DecBinary()
  4067. _ = yym142
  4068. if false {
  4069. } else {
  4070. *((*bool)(yyv141)) = r.DecodeBool()
  4071. }
  4072. }
  4073. yyj81++
  4074. if yyhl81 {
  4075. yyb81 = yyj81 > l
  4076. } else {
  4077. yyb81 = r.CheckBreak()
  4078. }
  4079. if yyb81 {
  4080. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4081. return
  4082. }
  4083. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4084. if r.TryDecodeAsNil() {
  4085. x.Protected = false
  4086. } else {
  4087. yyv143 := &x.Protected
  4088. yym144 := z.DecBinary()
  4089. _ = yym144
  4090. if false {
  4091. } else {
  4092. *((*bool)(yyv143)) = r.DecodeBool()
  4093. }
  4094. }
  4095. yyj81++
  4096. if yyhl81 {
  4097. yyb81 = yyj81 > l
  4098. } else {
  4099. yyb81 = r.CheckBreak()
  4100. }
  4101. if yyb81 {
  4102. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4103. return
  4104. }
  4105. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4106. if r.TryDecodeAsNil() {
  4107. x.ScreenName = ""
  4108. } else {
  4109. yyv145 := &x.ScreenName
  4110. yym146 := z.DecBinary()
  4111. _ = yym146
  4112. if false {
  4113. } else {
  4114. *((*string)(yyv145)) = r.DecodeString()
  4115. }
  4116. }
  4117. yyj81++
  4118. if yyhl81 {
  4119. yyb81 = yyj81 > l
  4120. } else {
  4121. yyb81 = r.CheckBreak()
  4122. }
  4123. if yyb81 {
  4124. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4125. return
  4126. }
  4127. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4128. if r.TryDecodeAsNil() {
  4129. x.ShowAllInlineMedia = false
  4130. } else {
  4131. yyv147 := &x.ShowAllInlineMedia
  4132. yym148 := z.DecBinary()
  4133. _ = yym148
  4134. if false {
  4135. } else {
  4136. *((*bool)(yyv147)) = r.DecodeBool()
  4137. }
  4138. }
  4139. yyj81++
  4140. if yyhl81 {
  4141. yyb81 = yyj81 > l
  4142. } else {
  4143. yyb81 = r.CheckBreak()
  4144. }
  4145. if yyb81 {
  4146. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4147. return
  4148. }
  4149. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4150. if r.TryDecodeAsNil() {
  4151. x.StatusesCount = 0
  4152. } else {
  4153. yyv149 := &x.StatusesCount
  4154. yym150 := z.DecBinary()
  4155. _ = yym150
  4156. if false {
  4157. } else {
  4158. *((*int)(yyv149)) = int(r.DecodeInt(codecSelferBitsize9225))
  4159. }
  4160. }
  4161. yyj81++
  4162. if yyhl81 {
  4163. yyb81 = yyj81 > l
  4164. } else {
  4165. yyb81 = r.CheckBreak()
  4166. }
  4167. if yyb81 {
  4168. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4169. return
  4170. }
  4171. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4172. if r.TryDecodeAsNil() {
  4173. x.TimeZone = ""
  4174. } else {
  4175. yyv151 := &x.TimeZone
  4176. yym152 := z.DecBinary()
  4177. _ = yym152
  4178. if false {
  4179. } else {
  4180. *((*string)(yyv151)) = r.DecodeString()
  4181. }
  4182. }
  4183. yyj81++
  4184. if yyhl81 {
  4185. yyb81 = yyj81 > l
  4186. } else {
  4187. yyb81 = r.CheckBreak()
  4188. }
  4189. if yyb81 {
  4190. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4191. return
  4192. }
  4193. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4194. if r.TryDecodeAsNil() {
  4195. if x.URL != nil {
  4196. x.URL = nil
  4197. }
  4198. } else {
  4199. if x.URL == nil {
  4200. x.URL = new(string)
  4201. }
  4202. yym154 := z.DecBinary()
  4203. _ = yym154
  4204. if false {
  4205. } else {
  4206. *((*string)(x.URL)) = r.DecodeString()
  4207. }
  4208. }
  4209. yyj81++
  4210. if yyhl81 {
  4211. yyb81 = yyj81 > l
  4212. } else {
  4213. yyb81 = r.CheckBreak()
  4214. }
  4215. if yyb81 {
  4216. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4217. return
  4218. }
  4219. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4220. if r.TryDecodeAsNil() {
  4221. x.UtcOffset = 0
  4222. } else {
  4223. yyv155 := &x.UtcOffset
  4224. yym156 := z.DecBinary()
  4225. _ = yym156
  4226. if false {
  4227. } else {
  4228. *((*int)(yyv155)) = int(r.DecodeInt(codecSelferBitsize9225))
  4229. }
  4230. }
  4231. yyj81++
  4232. if yyhl81 {
  4233. yyb81 = yyj81 > l
  4234. } else {
  4235. yyb81 = r.CheckBreak()
  4236. }
  4237. if yyb81 {
  4238. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4239. return
  4240. }
  4241. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4242. if r.TryDecodeAsNil() {
  4243. x.Verified = false
  4244. } else {
  4245. yyv157 := &x.Verified
  4246. yym158 := z.DecBinary()
  4247. _ = yym158
  4248. if false {
  4249. } else {
  4250. *((*bool)(yyv157)) = r.DecodeBool()
  4251. }
  4252. }
  4253. for {
  4254. yyj81++
  4255. if yyhl81 {
  4256. yyb81 = yyj81 > l
  4257. } else {
  4258. yyb81 = r.CheckBreak()
  4259. }
  4260. if yyb81 {
  4261. break
  4262. }
  4263. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4264. z.DecStructFieldNotFound(yyj81-1, "")
  4265. }
  4266. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4267. }
  4268. func (x *StatusMetadata) CodecEncodeSelf(e *codec1978.Encoder) {
  4269. var h codecSelfer9225
  4270. z, r := codec1978.GenHelperEncoder(e)
  4271. _, _, _ = h, z, r
  4272. if x == nil {
  4273. r.EncodeNil()
  4274. } else {
  4275. yym1 := z.EncBinary()
  4276. _ = yym1
  4277. if false {
  4278. } else if z.HasExtensions() && z.EncExt(x) {
  4279. } else {
  4280. yysep2 := !z.EncBinary()
  4281. yy2arr2 := z.EncBasicHandle().StructToArray
  4282. var yyq2 [2]bool
  4283. _, _, _ = yysep2, yyq2, yy2arr2
  4284. const yyr2 bool = false
  4285. var yynn2 int
  4286. if yyr2 || yy2arr2 {
  4287. r.EncodeArrayStart(2)
  4288. } else {
  4289. yynn2 = 2
  4290. for _, b := range yyq2 {
  4291. if b {
  4292. yynn2++
  4293. }
  4294. }
  4295. r.EncodeMapStart(yynn2)
  4296. yynn2 = 0
  4297. }
  4298. if yyr2 || yy2arr2 {
  4299. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4300. yym4 := z.EncBinary()
  4301. _ = yym4
  4302. if false {
  4303. } else {
  4304. r.EncodeString(codecSelferC_UTF89225, string(x.IsoLanguageCode))
  4305. }
  4306. } else {
  4307. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4308. r.EncodeString(codecSelferC_UTF89225, string("iso_language_code"))
  4309. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4310. yym5 := z.EncBinary()
  4311. _ = yym5
  4312. if false {
  4313. } else {
  4314. r.EncodeString(codecSelferC_UTF89225, string(x.IsoLanguageCode))
  4315. }
  4316. }
  4317. if yyr2 || yy2arr2 {
  4318. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4319. yym7 := z.EncBinary()
  4320. _ = yym7
  4321. if false {
  4322. } else {
  4323. r.EncodeString(codecSelferC_UTF89225, string(x.ResultType))
  4324. }
  4325. } else {
  4326. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4327. r.EncodeString(codecSelferC_UTF89225, string("result_type"))
  4328. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4329. yym8 := z.EncBinary()
  4330. _ = yym8
  4331. if false {
  4332. } else {
  4333. r.EncodeString(codecSelferC_UTF89225, string(x.ResultType))
  4334. }
  4335. }
  4336. if yyr2 || yy2arr2 {
  4337. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  4338. } else {
  4339. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  4340. }
  4341. }
  4342. }
  4343. }
  4344. func (x *StatusMetadata) CodecDecodeSelf(d *codec1978.Decoder) {
  4345. var h codecSelfer9225
  4346. z, r := codec1978.GenHelperDecoder(d)
  4347. _, _, _ = h, z, r
  4348. yym1 := z.DecBinary()
  4349. _ = yym1
  4350. if false {
  4351. } else if z.HasExtensions() && z.DecExt(x) {
  4352. } else {
  4353. yyct2 := r.ContainerType()
  4354. if yyct2 == codecSelferValueTypeMap9225 {
  4355. yyl2 := r.ReadMapStart()
  4356. if yyl2 == 0 {
  4357. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  4358. } else {
  4359. x.codecDecodeSelfFromMap(yyl2, d)
  4360. }
  4361. } else if yyct2 == codecSelferValueTypeArray9225 {
  4362. yyl2 := r.ReadArrayStart()
  4363. if yyl2 == 0 {
  4364. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4365. } else {
  4366. x.codecDecodeSelfFromArray(yyl2, d)
  4367. }
  4368. } else {
  4369. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  4370. }
  4371. }
  4372. }
  4373. func (x *StatusMetadata) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  4374. var h codecSelfer9225
  4375. z, r := codec1978.GenHelperDecoder(d)
  4376. _, _, _ = h, z, r
  4377. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  4378. _ = yys3Slc
  4379. var yyhl3 bool = l >= 0
  4380. for yyj3 := 0; ; yyj3++ {
  4381. if yyhl3 {
  4382. if yyj3 >= l {
  4383. break
  4384. }
  4385. } else {
  4386. if r.CheckBreak() {
  4387. break
  4388. }
  4389. }
  4390. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  4391. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  4392. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  4393. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  4394. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  4395. switch yys3 {
  4396. case "iso_language_code":
  4397. if r.TryDecodeAsNil() {
  4398. x.IsoLanguageCode = ""
  4399. } else {
  4400. yyv4 := &x.IsoLanguageCode
  4401. yym5 := z.DecBinary()
  4402. _ = yym5
  4403. if false {
  4404. } else {
  4405. *((*string)(yyv4)) = r.DecodeString()
  4406. }
  4407. }
  4408. case "result_type":
  4409. if r.TryDecodeAsNil() {
  4410. x.ResultType = ""
  4411. } else {
  4412. yyv6 := &x.ResultType
  4413. yym7 := z.DecBinary()
  4414. _ = yym7
  4415. if false {
  4416. } else {
  4417. *((*string)(yyv6)) = r.DecodeString()
  4418. }
  4419. }
  4420. default:
  4421. z.DecStructFieldNotFound(-1, yys3)
  4422. } // end switch yys3
  4423. } // end for yyj3
  4424. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  4425. }
  4426. func (x *StatusMetadata) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  4427. var h codecSelfer9225
  4428. z, r := codec1978.GenHelperDecoder(d)
  4429. _, _, _ = h, z, r
  4430. var yyj8 int
  4431. var yyb8 bool
  4432. var yyhl8 bool = l >= 0
  4433. yyj8++
  4434. if yyhl8 {
  4435. yyb8 = yyj8 > l
  4436. } else {
  4437. yyb8 = r.CheckBreak()
  4438. }
  4439. if yyb8 {
  4440. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4441. return
  4442. }
  4443. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4444. if r.TryDecodeAsNil() {
  4445. x.IsoLanguageCode = ""
  4446. } else {
  4447. yyv9 := &x.IsoLanguageCode
  4448. yym10 := z.DecBinary()
  4449. _ = yym10
  4450. if false {
  4451. } else {
  4452. *((*string)(yyv9)) = r.DecodeString()
  4453. }
  4454. }
  4455. yyj8++
  4456. if yyhl8 {
  4457. yyb8 = yyj8 > l
  4458. } else {
  4459. yyb8 = r.CheckBreak()
  4460. }
  4461. if yyb8 {
  4462. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4463. return
  4464. }
  4465. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4466. if r.TryDecodeAsNil() {
  4467. x.ResultType = ""
  4468. } else {
  4469. yyv11 := &x.ResultType
  4470. yym12 := z.DecBinary()
  4471. _ = yym12
  4472. if false {
  4473. } else {
  4474. *((*string)(yyv11)) = r.DecodeString()
  4475. }
  4476. }
  4477. for {
  4478. yyj8++
  4479. if yyhl8 {
  4480. yyb8 = yyj8 > l
  4481. } else {
  4482. yyb8 = r.CheckBreak()
  4483. }
  4484. if yyb8 {
  4485. break
  4486. }
  4487. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  4488. z.DecStructFieldNotFound(yyj8-1, "")
  4489. }
  4490. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  4491. }
  4492. func (x *Status) CodecEncodeSelf(e *codec1978.Encoder) {
  4493. var h codecSelfer9225
  4494. z, r := codec1978.GenHelperEncoder(e)
  4495. _, _, _ = h, z, r
  4496. if x == nil {
  4497. r.EncodeNil()
  4498. } else {
  4499. yym1 := z.EncBinary()
  4500. _ = yym1
  4501. if false {
  4502. } else if z.HasExtensions() && z.EncExt(x) {
  4503. } else {
  4504. yysep2 := !z.EncBinary()
  4505. yy2arr2 := z.EncBasicHandle().StructToArray
  4506. var yyq2 [21]bool
  4507. _, _, _ = yysep2, yyq2, yy2arr2
  4508. const yyr2 bool = false
  4509. var yynn2 int
  4510. if yyr2 || yy2arr2 {
  4511. r.EncodeArrayStart(21)
  4512. } else {
  4513. yynn2 = 21
  4514. for _, b := range yyq2 {
  4515. if b {
  4516. yynn2++
  4517. }
  4518. }
  4519. r.EncodeMapStart(yynn2)
  4520. yynn2 = 0
  4521. }
  4522. if yyr2 || yy2arr2 {
  4523. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4524. if x.Contributors == nil {
  4525. r.EncodeNil()
  4526. } else {
  4527. yy4 := *x.Contributors
  4528. yym5 := z.EncBinary()
  4529. _ = yym5
  4530. if false {
  4531. } else {
  4532. r.EncodeString(codecSelferC_UTF89225, string(yy4))
  4533. }
  4534. }
  4535. } else {
  4536. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4537. r.EncodeString(codecSelferC_UTF89225, string("contributors"))
  4538. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4539. if x.Contributors == nil {
  4540. r.EncodeNil()
  4541. } else {
  4542. yy6 := *x.Contributors
  4543. yym7 := z.EncBinary()
  4544. _ = yym7
  4545. if false {
  4546. } else {
  4547. r.EncodeString(codecSelferC_UTF89225, string(yy6))
  4548. }
  4549. }
  4550. }
  4551. if yyr2 || yy2arr2 {
  4552. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4553. if x.Coordinates == nil {
  4554. r.EncodeNil()
  4555. } else {
  4556. yy9 := *x.Coordinates
  4557. yym10 := z.EncBinary()
  4558. _ = yym10
  4559. if false {
  4560. } else {
  4561. r.EncodeString(codecSelferC_UTF89225, string(yy9))
  4562. }
  4563. }
  4564. } else {
  4565. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4566. r.EncodeString(codecSelferC_UTF89225, string("coordinates"))
  4567. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4568. if x.Coordinates == nil {
  4569. r.EncodeNil()
  4570. } else {
  4571. yy11 := *x.Coordinates
  4572. yym12 := z.EncBinary()
  4573. _ = yym12
  4574. if false {
  4575. } else {
  4576. r.EncodeString(codecSelferC_UTF89225, string(yy11))
  4577. }
  4578. }
  4579. }
  4580. if yyr2 || yy2arr2 {
  4581. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4582. yym14 := z.EncBinary()
  4583. _ = yym14
  4584. if false {
  4585. } else {
  4586. r.EncodeString(codecSelferC_UTF89225, string(x.CreatedAt))
  4587. }
  4588. } else {
  4589. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4590. r.EncodeString(codecSelferC_UTF89225, string("created_at"))
  4591. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4592. yym15 := z.EncBinary()
  4593. _ = yym15
  4594. if false {
  4595. } else {
  4596. r.EncodeString(codecSelferC_UTF89225, string(x.CreatedAt))
  4597. }
  4598. }
  4599. if yyr2 || yy2arr2 {
  4600. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4601. yy17 := &x.Entities
  4602. yy17.CodecEncodeSelf(e)
  4603. } else {
  4604. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4605. r.EncodeString(codecSelferC_UTF89225, string("entities"))
  4606. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4607. yy19 := &x.Entities
  4608. yy19.CodecEncodeSelf(e)
  4609. }
  4610. if yyr2 || yy2arr2 {
  4611. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4612. yym22 := z.EncBinary()
  4613. _ = yym22
  4614. if false {
  4615. } else {
  4616. r.EncodeBool(bool(x.Favorited))
  4617. }
  4618. } else {
  4619. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4620. r.EncodeString(codecSelferC_UTF89225, string("favorited"))
  4621. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4622. yym23 := z.EncBinary()
  4623. _ = yym23
  4624. if false {
  4625. } else {
  4626. r.EncodeBool(bool(x.Favorited))
  4627. }
  4628. }
  4629. if yyr2 || yy2arr2 {
  4630. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4631. if x.Geo == nil {
  4632. r.EncodeNil()
  4633. } else {
  4634. yy25 := *x.Geo
  4635. yym26 := z.EncBinary()
  4636. _ = yym26
  4637. if false {
  4638. } else {
  4639. r.EncodeString(codecSelferC_UTF89225, string(yy25))
  4640. }
  4641. }
  4642. } else {
  4643. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4644. r.EncodeString(codecSelferC_UTF89225, string("geo"))
  4645. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4646. if x.Geo == nil {
  4647. r.EncodeNil()
  4648. } else {
  4649. yy27 := *x.Geo
  4650. yym28 := z.EncBinary()
  4651. _ = yym28
  4652. if false {
  4653. } else {
  4654. r.EncodeString(codecSelferC_UTF89225, string(yy27))
  4655. }
  4656. }
  4657. }
  4658. if yyr2 || yy2arr2 {
  4659. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4660. yym30 := z.EncBinary()
  4661. _ = yym30
  4662. if false {
  4663. } else {
  4664. r.EncodeInt(int64(x.ID))
  4665. }
  4666. } else {
  4667. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4668. r.EncodeString(codecSelferC_UTF89225, string("id"))
  4669. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4670. yym31 := z.EncBinary()
  4671. _ = yym31
  4672. if false {
  4673. } else {
  4674. r.EncodeInt(int64(x.ID))
  4675. }
  4676. }
  4677. if yyr2 || yy2arr2 {
  4678. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4679. yym33 := z.EncBinary()
  4680. _ = yym33
  4681. if false {
  4682. } else {
  4683. r.EncodeString(codecSelferC_UTF89225, string(x.IDStr))
  4684. }
  4685. } else {
  4686. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4687. r.EncodeString(codecSelferC_UTF89225, string("id_str"))
  4688. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4689. yym34 := z.EncBinary()
  4690. _ = yym34
  4691. if false {
  4692. } else {
  4693. r.EncodeString(codecSelferC_UTF89225, string(x.IDStr))
  4694. }
  4695. }
  4696. if yyr2 || yy2arr2 {
  4697. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4698. if x.InReplyToScreenName == nil {
  4699. r.EncodeNil()
  4700. } else {
  4701. yy36 := *x.InReplyToScreenName
  4702. yym37 := z.EncBinary()
  4703. _ = yym37
  4704. if false {
  4705. } else {
  4706. r.EncodeString(codecSelferC_UTF89225, string(yy36))
  4707. }
  4708. }
  4709. } else {
  4710. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4711. r.EncodeString(codecSelferC_UTF89225, string("in_reply_to_screen_name"))
  4712. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4713. if x.InReplyToScreenName == nil {
  4714. r.EncodeNil()
  4715. } else {
  4716. yy38 := *x.InReplyToScreenName
  4717. yym39 := z.EncBinary()
  4718. _ = yym39
  4719. if false {
  4720. } else {
  4721. r.EncodeString(codecSelferC_UTF89225, string(yy38))
  4722. }
  4723. }
  4724. }
  4725. if yyr2 || yy2arr2 {
  4726. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4727. if x.InReplyToStatusID == nil {
  4728. r.EncodeNil()
  4729. } else {
  4730. yy41 := *x.InReplyToStatusID
  4731. yym42 := z.EncBinary()
  4732. _ = yym42
  4733. if false {
  4734. } else {
  4735. r.EncodeString(codecSelferC_UTF89225, string(yy41))
  4736. }
  4737. }
  4738. } else {
  4739. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4740. r.EncodeString(codecSelferC_UTF89225, string("in_reply_to_status_id"))
  4741. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4742. if x.InReplyToStatusID == nil {
  4743. r.EncodeNil()
  4744. } else {
  4745. yy43 := *x.InReplyToStatusID
  4746. yym44 := z.EncBinary()
  4747. _ = yym44
  4748. if false {
  4749. } else {
  4750. r.EncodeString(codecSelferC_UTF89225, string(yy43))
  4751. }
  4752. }
  4753. }
  4754. if yyr2 || yy2arr2 {
  4755. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4756. if x.InReplyToStatusIDStr == nil {
  4757. r.EncodeNil()
  4758. } else {
  4759. yy46 := *x.InReplyToStatusIDStr
  4760. yym47 := z.EncBinary()
  4761. _ = yym47
  4762. if false {
  4763. } else {
  4764. r.EncodeString(codecSelferC_UTF89225, string(yy46))
  4765. }
  4766. }
  4767. } else {
  4768. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4769. r.EncodeString(codecSelferC_UTF89225, string("in_reply_to_status_id_str"))
  4770. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4771. if x.InReplyToStatusIDStr == nil {
  4772. r.EncodeNil()
  4773. } else {
  4774. yy48 := *x.InReplyToStatusIDStr
  4775. yym49 := z.EncBinary()
  4776. _ = yym49
  4777. if false {
  4778. } else {
  4779. r.EncodeString(codecSelferC_UTF89225, string(yy48))
  4780. }
  4781. }
  4782. }
  4783. if yyr2 || yy2arr2 {
  4784. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4785. if x.InReplyToUserID == nil {
  4786. r.EncodeNil()
  4787. } else {
  4788. yy51 := *x.InReplyToUserID
  4789. yym52 := z.EncBinary()
  4790. _ = yym52
  4791. if false {
  4792. } else {
  4793. r.EncodeString(codecSelferC_UTF89225, string(yy51))
  4794. }
  4795. }
  4796. } else {
  4797. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4798. r.EncodeString(codecSelferC_UTF89225, string("in_reply_to_user_id"))
  4799. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4800. if x.InReplyToUserID == nil {
  4801. r.EncodeNil()
  4802. } else {
  4803. yy53 := *x.InReplyToUserID
  4804. yym54 := z.EncBinary()
  4805. _ = yym54
  4806. if false {
  4807. } else {
  4808. r.EncodeString(codecSelferC_UTF89225, string(yy53))
  4809. }
  4810. }
  4811. }
  4812. if yyr2 || yy2arr2 {
  4813. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4814. if x.InReplyToUserIDStr == nil {
  4815. r.EncodeNil()
  4816. } else {
  4817. yy56 := *x.InReplyToUserIDStr
  4818. yym57 := z.EncBinary()
  4819. _ = yym57
  4820. if false {
  4821. } else {
  4822. r.EncodeString(codecSelferC_UTF89225, string(yy56))
  4823. }
  4824. }
  4825. } else {
  4826. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4827. r.EncodeString(codecSelferC_UTF89225, string("in_reply_to_user_id_str"))
  4828. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4829. if x.InReplyToUserIDStr == nil {
  4830. r.EncodeNil()
  4831. } else {
  4832. yy58 := *x.InReplyToUserIDStr
  4833. yym59 := z.EncBinary()
  4834. _ = yym59
  4835. if false {
  4836. } else {
  4837. r.EncodeString(codecSelferC_UTF89225, string(yy58))
  4838. }
  4839. }
  4840. }
  4841. if yyr2 || yy2arr2 {
  4842. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4843. yy61 := &x.Metadata
  4844. yy61.CodecEncodeSelf(e)
  4845. } else {
  4846. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4847. r.EncodeString(codecSelferC_UTF89225, string("metadata"))
  4848. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4849. yy63 := &x.Metadata
  4850. yy63.CodecEncodeSelf(e)
  4851. }
  4852. if yyr2 || yy2arr2 {
  4853. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4854. if x.Place == nil {
  4855. r.EncodeNil()
  4856. } else {
  4857. yy66 := *x.Place
  4858. yym67 := z.EncBinary()
  4859. _ = yym67
  4860. if false {
  4861. } else {
  4862. r.EncodeString(codecSelferC_UTF89225, string(yy66))
  4863. }
  4864. }
  4865. } else {
  4866. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4867. r.EncodeString(codecSelferC_UTF89225, string("place"))
  4868. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4869. if x.Place == nil {
  4870. r.EncodeNil()
  4871. } else {
  4872. yy68 := *x.Place
  4873. yym69 := z.EncBinary()
  4874. _ = yym69
  4875. if false {
  4876. } else {
  4877. r.EncodeString(codecSelferC_UTF89225, string(yy68))
  4878. }
  4879. }
  4880. }
  4881. if yyr2 || yy2arr2 {
  4882. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4883. yym71 := z.EncBinary()
  4884. _ = yym71
  4885. if false {
  4886. } else {
  4887. r.EncodeInt(int64(x.RetweetCount))
  4888. }
  4889. } else {
  4890. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4891. r.EncodeString(codecSelferC_UTF89225, string("retweet_count"))
  4892. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4893. yym72 := z.EncBinary()
  4894. _ = yym72
  4895. if false {
  4896. } else {
  4897. r.EncodeInt(int64(x.RetweetCount))
  4898. }
  4899. }
  4900. if yyr2 || yy2arr2 {
  4901. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4902. yym74 := z.EncBinary()
  4903. _ = yym74
  4904. if false {
  4905. } else {
  4906. r.EncodeBool(bool(x.Retweeted))
  4907. }
  4908. } else {
  4909. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4910. r.EncodeString(codecSelferC_UTF89225, string("retweeted"))
  4911. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4912. yym75 := z.EncBinary()
  4913. _ = yym75
  4914. if false {
  4915. } else {
  4916. r.EncodeBool(bool(x.Retweeted))
  4917. }
  4918. }
  4919. if yyr2 || yy2arr2 {
  4920. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4921. yym77 := z.EncBinary()
  4922. _ = yym77
  4923. if false {
  4924. } else {
  4925. r.EncodeString(codecSelferC_UTF89225, string(x.Source))
  4926. }
  4927. } else {
  4928. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4929. r.EncodeString(codecSelferC_UTF89225, string("source"))
  4930. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4931. yym78 := z.EncBinary()
  4932. _ = yym78
  4933. if false {
  4934. } else {
  4935. r.EncodeString(codecSelferC_UTF89225, string(x.Source))
  4936. }
  4937. }
  4938. if yyr2 || yy2arr2 {
  4939. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4940. yym80 := z.EncBinary()
  4941. _ = yym80
  4942. if false {
  4943. } else {
  4944. r.EncodeString(codecSelferC_UTF89225, string(x.Text))
  4945. }
  4946. } else {
  4947. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4948. r.EncodeString(codecSelferC_UTF89225, string("text"))
  4949. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4950. yym81 := z.EncBinary()
  4951. _ = yym81
  4952. if false {
  4953. } else {
  4954. r.EncodeString(codecSelferC_UTF89225, string(x.Text))
  4955. }
  4956. }
  4957. if yyr2 || yy2arr2 {
  4958. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4959. yym83 := z.EncBinary()
  4960. _ = yym83
  4961. if false {
  4962. } else {
  4963. r.EncodeBool(bool(x.Truncated))
  4964. }
  4965. } else {
  4966. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4967. r.EncodeString(codecSelferC_UTF89225, string("truncated"))
  4968. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4969. yym84 := z.EncBinary()
  4970. _ = yym84
  4971. if false {
  4972. } else {
  4973. r.EncodeBool(bool(x.Truncated))
  4974. }
  4975. }
  4976. if yyr2 || yy2arr2 {
  4977. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  4978. yy86 := &x.User
  4979. yy86.CodecEncodeSelf(e)
  4980. } else {
  4981. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  4982. r.EncodeString(codecSelferC_UTF89225, string("user"))
  4983. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  4984. yy88 := &x.User
  4985. yy88.CodecEncodeSelf(e)
  4986. }
  4987. if yyr2 || yy2arr2 {
  4988. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  4989. } else {
  4990. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  4991. }
  4992. }
  4993. }
  4994. }
  4995. func (x *Status) CodecDecodeSelf(d *codec1978.Decoder) {
  4996. var h codecSelfer9225
  4997. z, r := codec1978.GenHelperDecoder(d)
  4998. _, _, _ = h, z, r
  4999. yym1 := z.DecBinary()
  5000. _ = yym1
  5001. if false {
  5002. } else if z.HasExtensions() && z.DecExt(x) {
  5003. } else {
  5004. yyct2 := r.ContainerType()
  5005. if yyct2 == codecSelferValueTypeMap9225 {
  5006. yyl2 := r.ReadMapStart()
  5007. if yyl2 == 0 {
  5008. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  5009. } else {
  5010. x.codecDecodeSelfFromMap(yyl2, d)
  5011. }
  5012. } else if yyct2 == codecSelferValueTypeArray9225 {
  5013. yyl2 := r.ReadArrayStart()
  5014. if yyl2 == 0 {
  5015. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5016. } else {
  5017. x.codecDecodeSelfFromArray(yyl2, d)
  5018. }
  5019. } else {
  5020. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  5021. }
  5022. }
  5023. }
  5024. func (x *Status) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  5025. var h codecSelfer9225
  5026. z, r := codec1978.GenHelperDecoder(d)
  5027. _, _, _ = h, z, r
  5028. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  5029. _ = yys3Slc
  5030. var yyhl3 bool = l >= 0
  5031. for yyj3 := 0; ; yyj3++ {
  5032. if yyhl3 {
  5033. if yyj3 >= l {
  5034. break
  5035. }
  5036. } else {
  5037. if r.CheckBreak() {
  5038. break
  5039. }
  5040. }
  5041. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  5042. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  5043. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  5044. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  5045. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  5046. switch yys3 {
  5047. case "contributors":
  5048. if r.TryDecodeAsNil() {
  5049. if x.Contributors != nil {
  5050. x.Contributors = nil
  5051. }
  5052. } else {
  5053. if x.Contributors == nil {
  5054. x.Contributors = new(string)
  5055. }
  5056. yym5 := z.DecBinary()
  5057. _ = yym5
  5058. if false {
  5059. } else {
  5060. *((*string)(x.Contributors)) = r.DecodeString()
  5061. }
  5062. }
  5063. case "coordinates":
  5064. if r.TryDecodeAsNil() {
  5065. if x.Coordinates != nil {
  5066. x.Coordinates = nil
  5067. }
  5068. } else {
  5069. if x.Coordinates == nil {
  5070. x.Coordinates = new(string)
  5071. }
  5072. yym7 := z.DecBinary()
  5073. _ = yym7
  5074. if false {
  5075. } else {
  5076. *((*string)(x.Coordinates)) = r.DecodeString()
  5077. }
  5078. }
  5079. case "created_at":
  5080. if r.TryDecodeAsNil() {
  5081. x.CreatedAt = ""
  5082. } else {
  5083. yyv8 := &x.CreatedAt
  5084. yym9 := z.DecBinary()
  5085. _ = yym9
  5086. if false {
  5087. } else {
  5088. *((*string)(yyv8)) = r.DecodeString()
  5089. }
  5090. }
  5091. case "entities":
  5092. if r.TryDecodeAsNil() {
  5093. x.Entities = Entities{}
  5094. } else {
  5095. yyv10 := &x.Entities
  5096. yyv10.CodecDecodeSelf(d)
  5097. }
  5098. case "favorited":
  5099. if r.TryDecodeAsNil() {
  5100. x.Favorited = false
  5101. } else {
  5102. yyv11 := &x.Favorited
  5103. yym12 := z.DecBinary()
  5104. _ = yym12
  5105. if false {
  5106. } else {
  5107. *((*bool)(yyv11)) = r.DecodeBool()
  5108. }
  5109. }
  5110. case "geo":
  5111. if r.TryDecodeAsNil() {
  5112. if x.Geo != nil {
  5113. x.Geo = nil
  5114. }
  5115. } else {
  5116. if x.Geo == nil {
  5117. x.Geo = new(string)
  5118. }
  5119. yym14 := z.DecBinary()
  5120. _ = yym14
  5121. if false {
  5122. } else {
  5123. *((*string)(x.Geo)) = r.DecodeString()
  5124. }
  5125. }
  5126. case "id":
  5127. if r.TryDecodeAsNil() {
  5128. x.ID = 0
  5129. } else {
  5130. yyv15 := &x.ID
  5131. yym16 := z.DecBinary()
  5132. _ = yym16
  5133. if false {
  5134. } else {
  5135. *((*int64)(yyv15)) = int64(r.DecodeInt(64))
  5136. }
  5137. }
  5138. case "id_str":
  5139. if r.TryDecodeAsNil() {
  5140. x.IDStr = ""
  5141. } else {
  5142. yyv17 := &x.IDStr
  5143. yym18 := z.DecBinary()
  5144. _ = yym18
  5145. if false {
  5146. } else {
  5147. *((*string)(yyv17)) = r.DecodeString()
  5148. }
  5149. }
  5150. case "in_reply_to_screen_name":
  5151. if r.TryDecodeAsNil() {
  5152. if x.InReplyToScreenName != nil {
  5153. x.InReplyToScreenName = nil
  5154. }
  5155. } else {
  5156. if x.InReplyToScreenName == nil {
  5157. x.InReplyToScreenName = new(string)
  5158. }
  5159. yym20 := z.DecBinary()
  5160. _ = yym20
  5161. if false {
  5162. } else {
  5163. *((*string)(x.InReplyToScreenName)) = r.DecodeString()
  5164. }
  5165. }
  5166. case "in_reply_to_status_id":
  5167. if r.TryDecodeAsNil() {
  5168. if x.InReplyToStatusID != nil {
  5169. x.InReplyToStatusID = nil
  5170. }
  5171. } else {
  5172. if x.InReplyToStatusID == nil {
  5173. x.InReplyToStatusID = new(string)
  5174. }
  5175. yym22 := z.DecBinary()
  5176. _ = yym22
  5177. if false {
  5178. } else {
  5179. *((*string)(x.InReplyToStatusID)) = r.DecodeString()
  5180. }
  5181. }
  5182. case "in_reply_to_status_id_str":
  5183. if r.TryDecodeAsNil() {
  5184. if x.InReplyToStatusIDStr != nil {
  5185. x.InReplyToStatusIDStr = nil
  5186. }
  5187. } else {
  5188. if x.InReplyToStatusIDStr == nil {
  5189. x.InReplyToStatusIDStr = new(string)
  5190. }
  5191. yym24 := z.DecBinary()
  5192. _ = yym24
  5193. if false {
  5194. } else {
  5195. *((*string)(x.InReplyToStatusIDStr)) = r.DecodeString()
  5196. }
  5197. }
  5198. case "in_reply_to_user_id":
  5199. if r.TryDecodeAsNil() {
  5200. if x.InReplyToUserID != nil {
  5201. x.InReplyToUserID = nil
  5202. }
  5203. } else {
  5204. if x.InReplyToUserID == nil {
  5205. x.InReplyToUserID = new(string)
  5206. }
  5207. yym26 := z.DecBinary()
  5208. _ = yym26
  5209. if false {
  5210. } else {
  5211. *((*string)(x.InReplyToUserID)) = r.DecodeString()
  5212. }
  5213. }
  5214. case "in_reply_to_user_id_str":
  5215. if r.TryDecodeAsNil() {
  5216. if x.InReplyToUserIDStr != nil {
  5217. x.InReplyToUserIDStr = nil
  5218. }
  5219. } else {
  5220. if x.InReplyToUserIDStr == nil {
  5221. x.InReplyToUserIDStr = new(string)
  5222. }
  5223. yym28 := z.DecBinary()
  5224. _ = yym28
  5225. if false {
  5226. } else {
  5227. *((*string)(x.InReplyToUserIDStr)) = r.DecodeString()
  5228. }
  5229. }
  5230. case "metadata":
  5231. if r.TryDecodeAsNil() {
  5232. x.Metadata = StatusMetadata{}
  5233. } else {
  5234. yyv29 := &x.Metadata
  5235. yyv29.CodecDecodeSelf(d)
  5236. }
  5237. case "place":
  5238. if r.TryDecodeAsNil() {
  5239. if x.Place != nil {
  5240. x.Place = nil
  5241. }
  5242. } else {
  5243. if x.Place == nil {
  5244. x.Place = new(string)
  5245. }
  5246. yym31 := z.DecBinary()
  5247. _ = yym31
  5248. if false {
  5249. } else {
  5250. *((*string)(x.Place)) = r.DecodeString()
  5251. }
  5252. }
  5253. case "retweet_count":
  5254. if r.TryDecodeAsNil() {
  5255. x.RetweetCount = 0
  5256. } else {
  5257. yyv32 := &x.RetweetCount
  5258. yym33 := z.DecBinary()
  5259. _ = yym33
  5260. if false {
  5261. } else {
  5262. *((*int)(yyv32)) = int(r.DecodeInt(codecSelferBitsize9225))
  5263. }
  5264. }
  5265. case "retweeted":
  5266. if r.TryDecodeAsNil() {
  5267. x.Retweeted = false
  5268. } else {
  5269. yyv34 := &x.Retweeted
  5270. yym35 := z.DecBinary()
  5271. _ = yym35
  5272. if false {
  5273. } else {
  5274. *((*bool)(yyv34)) = r.DecodeBool()
  5275. }
  5276. }
  5277. case "source":
  5278. if r.TryDecodeAsNil() {
  5279. x.Source = ""
  5280. } else {
  5281. yyv36 := &x.Source
  5282. yym37 := z.DecBinary()
  5283. _ = yym37
  5284. if false {
  5285. } else {
  5286. *((*string)(yyv36)) = r.DecodeString()
  5287. }
  5288. }
  5289. case "text":
  5290. if r.TryDecodeAsNil() {
  5291. x.Text = ""
  5292. } else {
  5293. yyv38 := &x.Text
  5294. yym39 := z.DecBinary()
  5295. _ = yym39
  5296. if false {
  5297. } else {
  5298. *((*string)(yyv38)) = r.DecodeString()
  5299. }
  5300. }
  5301. case "truncated":
  5302. if r.TryDecodeAsNil() {
  5303. x.Truncated = false
  5304. } else {
  5305. yyv40 := &x.Truncated
  5306. yym41 := z.DecBinary()
  5307. _ = yym41
  5308. if false {
  5309. } else {
  5310. *((*bool)(yyv40)) = r.DecodeBool()
  5311. }
  5312. }
  5313. case "user":
  5314. if r.TryDecodeAsNil() {
  5315. x.User = User{}
  5316. } else {
  5317. yyv42 := &x.User
  5318. yyv42.CodecDecodeSelf(d)
  5319. }
  5320. default:
  5321. z.DecStructFieldNotFound(-1, yys3)
  5322. } // end switch yys3
  5323. } // end for yyj3
  5324. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  5325. }
  5326. func (x *Status) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  5327. var h codecSelfer9225
  5328. z, r := codec1978.GenHelperDecoder(d)
  5329. _, _, _ = h, z, r
  5330. var yyj43 int
  5331. var yyb43 bool
  5332. var yyhl43 bool = l >= 0
  5333. yyj43++
  5334. if yyhl43 {
  5335. yyb43 = yyj43 > l
  5336. } else {
  5337. yyb43 = r.CheckBreak()
  5338. }
  5339. if yyb43 {
  5340. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5341. return
  5342. }
  5343. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5344. if r.TryDecodeAsNil() {
  5345. if x.Contributors != nil {
  5346. x.Contributors = nil
  5347. }
  5348. } else {
  5349. if x.Contributors == nil {
  5350. x.Contributors = new(string)
  5351. }
  5352. yym45 := z.DecBinary()
  5353. _ = yym45
  5354. if false {
  5355. } else {
  5356. *((*string)(x.Contributors)) = r.DecodeString()
  5357. }
  5358. }
  5359. yyj43++
  5360. if yyhl43 {
  5361. yyb43 = yyj43 > l
  5362. } else {
  5363. yyb43 = r.CheckBreak()
  5364. }
  5365. if yyb43 {
  5366. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5367. return
  5368. }
  5369. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5370. if r.TryDecodeAsNil() {
  5371. if x.Coordinates != nil {
  5372. x.Coordinates = nil
  5373. }
  5374. } else {
  5375. if x.Coordinates == nil {
  5376. x.Coordinates = new(string)
  5377. }
  5378. yym47 := z.DecBinary()
  5379. _ = yym47
  5380. if false {
  5381. } else {
  5382. *((*string)(x.Coordinates)) = r.DecodeString()
  5383. }
  5384. }
  5385. yyj43++
  5386. if yyhl43 {
  5387. yyb43 = yyj43 > l
  5388. } else {
  5389. yyb43 = r.CheckBreak()
  5390. }
  5391. if yyb43 {
  5392. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5393. return
  5394. }
  5395. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5396. if r.TryDecodeAsNil() {
  5397. x.CreatedAt = ""
  5398. } else {
  5399. yyv48 := &x.CreatedAt
  5400. yym49 := z.DecBinary()
  5401. _ = yym49
  5402. if false {
  5403. } else {
  5404. *((*string)(yyv48)) = r.DecodeString()
  5405. }
  5406. }
  5407. yyj43++
  5408. if yyhl43 {
  5409. yyb43 = yyj43 > l
  5410. } else {
  5411. yyb43 = r.CheckBreak()
  5412. }
  5413. if yyb43 {
  5414. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5415. return
  5416. }
  5417. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5418. if r.TryDecodeAsNil() {
  5419. x.Entities = Entities{}
  5420. } else {
  5421. yyv50 := &x.Entities
  5422. yyv50.CodecDecodeSelf(d)
  5423. }
  5424. yyj43++
  5425. if yyhl43 {
  5426. yyb43 = yyj43 > l
  5427. } else {
  5428. yyb43 = r.CheckBreak()
  5429. }
  5430. if yyb43 {
  5431. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5432. return
  5433. }
  5434. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5435. if r.TryDecodeAsNil() {
  5436. x.Favorited = false
  5437. } else {
  5438. yyv51 := &x.Favorited
  5439. yym52 := z.DecBinary()
  5440. _ = yym52
  5441. if false {
  5442. } else {
  5443. *((*bool)(yyv51)) = r.DecodeBool()
  5444. }
  5445. }
  5446. yyj43++
  5447. if yyhl43 {
  5448. yyb43 = yyj43 > l
  5449. } else {
  5450. yyb43 = r.CheckBreak()
  5451. }
  5452. if yyb43 {
  5453. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5454. return
  5455. }
  5456. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5457. if r.TryDecodeAsNil() {
  5458. if x.Geo != nil {
  5459. x.Geo = nil
  5460. }
  5461. } else {
  5462. if x.Geo == nil {
  5463. x.Geo = new(string)
  5464. }
  5465. yym54 := z.DecBinary()
  5466. _ = yym54
  5467. if false {
  5468. } else {
  5469. *((*string)(x.Geo)) = r.DecodeString()
  5470. }
  5471. }
  5472. yyj43++
  5473. if yyhl43 {
  5474. yyb43 = yyj43 > l
  5475. } else {
  5476. yyb43 = r.CheckBreak()
  5477. }
  5478. if yyb43 {
  5479. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5480. return
  5481. }
  5482. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5483. if r.TryDecodeAsNil() {
  5484. x.ID = 0
  5485. } else {
  5486. yyv55 := &x.ID
  5487. yym56 := z.DecBinary()
  5488. _ = yym56
  5489. if false {
  5490. } else {
  5491. *((*int64)(yyv55)) = int64(r.DecodeInt(64))
  5492. }
  5493. }
  5494. yyj43++
  5495. if yyhl43 {
  5496. yyb43 = yyj43 > l
  5497. } else {
  5498. yyb43 = r.CheckBreak()
  5499. }
  5500. if yyb43 {
  5501. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5502. return
  5503. }
  5504. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5505. if r.TryDecodeAsNil() {
  5506. x.IDStr = ""
  5507. } else {
  5508. yyv57 := &x.IDStr
  5509. yym58 := z.DecBinary()
  5510. _ = yym58
  5511. if false {
  5512. } else {
  5513. *((*string)(yyv57)) = r.DecodeString()
  5514. }
  5515. }
  5516. yyj43++
  5517. if yyhl43 {
  5518. yyb43 = yyj43 > l
  5519. } else {
  5520. yyb43 = r.CheckBreak()
  5521. }
  5522. if yyb43 {
  5523. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5524. return
  5525. }
  5526. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5527. if r.TryDecodeAsNil() {
  5528. if x.InReplyToScreenName != nil {
  5529. x.InReplyToScreenName = nil
  5530. }
  5531. } else {
  5532. if x.InReplyToScreenName == nil {
  5533. x.InReplyToScreenName = new(string)
  5534. }
  5535. yym60 := z.DecBinary()
  5536. _ = yym60
  5537. if false {
  5538. } else {
  5539. *((*string)(x.InReplyToScreenName)) = r.DecodeString()
  5540. }
  5541. }
  5542. yyj43++
  5543. if yyhl43 {
  5544. yyb43 = yyj43 > l
  5545. } else {
  5546. yyb43 = r.CheckBreak()
  5547. }
  5548. if yyb43 {
  5549. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5550. return
  5551. }
  5552. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5553. if r.TryDecodeAsNil() {
  5554. if x.InReplyToStatusID != nil {
  5555. x.InReplyToStatusID = nil
  5556. }
  5557. } else {
  5558. if x.InReplyToStatusID == nil {
  5559. x.InReplyToStatusID = new(string)
  5560. }
  5561. yym62 := z.DecBinary()
  5562. _ = yym62
  5563. if false {
  5564. } else {
  5565. *((*string)(x.InReplyToStatusID)) = r.DecodeString()
  5566. }
  5567. }
  5568. yyj43++
  5569. if yyhl43 {
  5570. yyb43 = yyj43 > l
  5571. } else {
  5572. yyb43 = r.CheckBreak()
  5573. }
  5574. if yyb43 {
  5575. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5576. return
  5577. }
  5578. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5579. if r.TryDecodeAsNil() {
  5580. if x.InReplyToStatusIDStr != nil {
  5581. x.InReplyToStatusIDStr = nil
  5582. }
  5583. } else {
  5584. if x.InReplyToStatusIDStr == nil {
  5585. x.InReplyToStatusIDStr = new(string)
  5586. }
  5587. yym64 := z.DecBinary()
  5588. _ = yym64
  5589. if false {
  5590. } else {
  5591. *((*string)(x.InReplyToStatusIDStr)) = r.DecodeString()
  5592. }
  5593. }
  5594. yyj43++
  5595. if yyhl43 {
  5596. yyb43 = yyj43 > l
  5597. } else {
  5598. yyb43 = r.CheckBreak()
  5599. }
  5600. if yyb43 {
  5601. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5602. return
  5603. }
  5604. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5605. if r.TryDecodeAsNil() {
  5606. if x.InReplyToUserID != nil {
  5607. x.InReplyToUserID = nil
  5608. }
  5609. } else {
  5610. if x.InReplyToUserID == nil {
  5611. x.InReplyToUserID = new(string)
  5612. }
  5613. yym66 := z.DecBinary()
  5614. _ = yym66
  5615. if false {
  5616. } else {
  5617. *((*string)(x.InReplyToUserID)) = r.DecodeString()
  5618. }
  5619. }
  5620. yyj43++
  5621. if yyhl43 {
  5622. yyb43 = yyj43 > l
  5623. } else {
  5624. yyb43 = r.CheckBreak()
  5625. }
  5626. if yyb43 {
  5627. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5628. return
  5629. }
  5630. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5631. if r.TryDecodeAsNil() {
  5632. if x.InReplyToUserIDStr != nil {
  5633. x.InReplyToUserIDStr = nil
  5634. }
  5635. } else {
  5636. if x.InReplyToUserIDStr == nil {
  5637. x.InReplyToUserIDStr = new(string)
  5638. }
  5639. yym68 := z.DecBinary()
  5640. _ = yym68
  5641. if false {
  5642. } else {
  5643. *((*string)(x.InReplyToUserIDStr)) = r.DecodeString()
  5644. }
  5645. }
  5646. yyj43++
  5647. if yyhl43 {
  5648. yyb43 = yyj43 > l
  5649. } else {
  5650. yyb43 = r.CheckBreak()
  5651. }
  5652. if yyb43 {
  5653. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5654. return
  5655. }
  5656. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5657. if r.TryDecodeAsNil() {
  5658. x.Metadata = StatusMetadata{}
  5659. } else {
  5660. yyv69 := &x.Metadata
  5661. yyv69.CodecDecodeSelf(d)
  5662. }
  5663. yyj43++
  5664. if yyhl43 {
  5665. yyb43 = yyj43 > l
  5666. } else {
  5667. yyb43 = r.CheckBreak()
  5668. }
  5669. if yyb43 {
  5670. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5671. return
  5672. }
  5673. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5674. if r.TryDecodeAsNil() {
  5675. if x.Place != nil {
  5676. x.Place = nil
  5677. }
  5678. } else {
  5679. if x.Place == nil {
  5680. x.Place = new(string)
  5681. }
  5682. yym71 := z.DecBinary()
  5683. _ = yym71
  5684. if false {
  5685. } else {
  5686. *((*string)(x.Place)) = r.DecodeString()
  5687. }
  5688. }
  5689. yyj43++
  5690. if yyhl43 {
  5691. yyb43 = yyj43 > l
  5692. } else {
  5693. yyb43 = r.CheckBreak()
  5694. }
  5695. if yyb43 {
  5696. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5697. return
  5698. }
  5699. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5700. if r.TryDecodeAsNil() {
  5701. x.RetweetCount = 0
  5702. } else {
  5703. yyv72 := &x.RetweetCount
  5704. yym73 := z.DecBinary()
  5705. _ = yym73
  5706. if false {
  5707. } else {
  5708. *((*int)(yyv72)) = int(r.DecodeInt(codecSelferBitsize9225))
  5709. }
  5710. }
  5711. yyj43++
  5712. if yyhl43 {
  5713. yyb43 = yyj43 > l
  5714. } else {
  5715. yyb43 = r.CheckBreak()
  5716. }
  5717. if yyb43 {
  5718. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5719. return
  5720. }
  5721. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5722. if r.TryDecodeAsNil() {
  5723. x.Retweeted = false
  5724. } else {
  5725. yyv74 := &x.Retweeted
  5726. yym75 := z.DecBinary()
  5727. _ = yym75
  5728. if false {
  5729. } else {
  5730. *((*bool)(yyv74)) = r.DecodeBool()
  5731. }
  5732. }
  5733. yyj43++
  5734. if yyhl43 {
  5735. yyb43 = yyj43 > l
  5736. } else {
  5737. yyb43 = r.CheckBreak()
  5738. }
  5739. if yyb43 {
  5740. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5741. return
  5742. }
  5743. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5744. if r.TryDecodeAsNil() {
  5745. x.Source = ""
  5746. } else {
  5747. yyv76 := &x.Source
  5748. yym77 := z.DecBinary()
  5749. _ = yym77
  5750. if false {
  5751. } else {
  5752. *((*string)(yyv76)) = r.DecodeString()
  5753. }
  5754. }
  5755. yyj43++
  5756. if yyhl43 {
  5757. yyb43 = yyj43 > l
  5758. } else {
  5759. yyb43 = r.CheckBreak()
  5760. }
  5761. if yyb43 {
  5762. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5763. return
  5764. }
  5765. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5766. if r.TryDecodeAsNil() {
  5767. x.Text = ""
  5768. } else {
  5769. yyv78 := &x.Text
  5770. yym79 := z.DecBinary()
  5771. _ = yym79
  5772. if false {
  5773. } else {
  5774. *((*string)(yyv78)) = r.DecodeString()
  5775. }
  5776. }
  5777. yyj43++
  5778. if yyhl43 {
  5779. yyb43 = yyj43 > l
  5780. } else {
  5781. yyb43 = r.CheckBreak()
  5782. }
  5783. if yyb43 {
  5784. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5785. return
  5786. }
  5787. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5788. if r.TryDecodeAsNil() {
  5789. x.Truncated = false
  5790. } else {
  5791. yyv80 := &x.Truncated
  5792. yym81 := z.DecBinary()
  5793. _ = yym81
  5794. if false {
  5795. } else {
  5796. *((*bool)(yyv80)) = r.DecodeBool()
  5797. }
  5798. }
  5799. yyj43++
  5800. if yyhl43 {
  5801. yyb43 = yyj43 > l
  5802. } else {
  5803. yyb43 = r.CheckBreak()
  5804. }
  5805. if yyb43 {
  5806. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5807. return
  5808. }
  5809. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5810. if r.TryDecodeAsNil() {
  5811. x.User = User{}
  5812. } else {
  5813. yyv82 := &x.User
  5814. yyv82.CodecDecodeSelf(d)
  5815. }
  5816. for {
  5817. yyj43++
  5818. if yyhl43 {
  5819. yyb43 = yyj43 > l
  5820. } else {
  5821. yyb43 = r.CheckBreak()
  5822. }
  5823. if yyb43 {
  5824. break
  5825. }
  5826. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  5827. z.DecStructFieldNotFound(yyj43-1, "")
  5828. }
  5829. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5830. }
  5831. func (x *LargeStruct) CodecEncodeSelf(e *codec1978.Encoder) {
  5832. var h codecSelfer9225
  5833. z, r := codec1978.GenHelperEncoder(e)
  5834. _, _, _ = h, z, r
  5835. if x == nil {
  5836. r.EncodeNil()
  5837. } else {
  5838. yym1 := z.EncBinary()
  5839. _ = yym1
  5840. if false {
  5841. } else if z.HasExtensions() && z.EncExt(x) {
  5842. } else {
  5843. yysep2 := !z.EncBinary()
  5844. yy2arr2 := z.EncBasicHandle().StructToArray
  5845. var yyq2 [2]bool
  5846. _, _, _ = yysep2, yyq2, yy2arr2
  5847. const yyr2 bool = false
  5848. var yynn2 int
  5849. if yyr2 || yy2arr2 {
  5850. r.EncodeArrayStart(2)
  5851. } else {
  5852. yynn2 = 2
  5853. for _, b := range yyq2 {
  5854. if b {
  5855. yynn2++
  5856. }
  5857. }
  5858. r.EncodeMapStart(yynn2)
  5859. yynn2 = 0
  5860. }
  5861. if yyr2 || yy2arr2 {
  5862. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  5863. yy4 := &x.SearchMetadata
  5864. yy4.CodecEncodeSelf(e)
  5865. } else {
  5866. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  5867. r.EncodeString(codecSelferC_UTF89225, string("search_metadata"))
  5868. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  5869. yy6 := &x.SearchMetadata
  5870. yy6.CodecEncodeSelf(e)
  5871. }
  5872. if yyr2 || yy2arr2 {
  5873. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  5874. if x.Statuses == nil {
  5875. r.EncodeNil()
  5876. } else {
  5877. yym9 := z.EncBinary()
  5878. _ = yym9
  5879. if false {
  5880. } else {
  5881. h.encSliceStatus(([]Status)(x.Statuses), e)
  5882. }
  5883. }
  5884. } else {
  5885. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  5886. r.EncodeString(codecSelferC_UTF89225, string("statuses"))
  5887. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  5888. if x.Statuses == nil {
  5889. r.EncodeNil()
  5890. } else {
  5891. yym10 := z.EncBinary()
  5892. _ = yym10
  5893. if false {
  5894. } else {
  5895. h.encSliceStatus(([]Status)(x.Statuses), e)
  5896. }
  5897. }
  5898. }
  5899. if yyr2 || yy2arr2 {
  5900. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  5901. } else {
  5902. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  5903. }
  5904. }
  5905. }
  5906. }
  5907. func (x *LargeStruct) CodecDecodeSelf(d *codec1978.Decoder) {
  5908. var h codecSelfer9225
  5909. z, r := codec1978.GenHelperDecoder(d)
  5910. _, _, _ = h, z, r
  5911. yym1 := z.DecBinary()
  5912. _ = yym1
  5913. if false {
  5914. } else if z.HasExtensions() && z.DecExt(x) {
  5915. } else {
  5916. yyct2 := r.ContainerType()
  5917. if yyct2 == codecSelferValueTypeMap9225 {
  5918. yyl2 := r.ReadMapStart()
  5919. if yyl2 == 0 {
  5920. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  5921. } else {
  5922. x.codecDecodeSelfFromMap(yyl2, d)
  5923. }
  5924. } else if yyct2 == codecSelferValueTypeArray9225 {
  5925. yyl2 := r.ReadArrayStart()
  5926. if yyl2 == 0 {
  5927. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5928. } else {
  5929. x.codecDecodeSelfFromArray(yyl2, d)
  5930. }
  5931. } else {
  5932. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  5933. }
  5934. }
  5935. }
  5936. func (x *LargeStruct) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  5937. var h codecSelfer9225
  5938. z, r := codec1978.GenHelperDecoder(d)
  5939. _, _, _ = h, z, r
  5940. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  5941. _ = yys3Slc
  5942. var yyhl3 bool = l >= 0
  5943. for yyj3 := 0; ; yyj3++ {
  5944. if yyhl3 {
  5945. if yyj3 >= l {
  5946. break
  5947. }
  5948. } else {
  5949. if r.CheckBreak() {
  5950. break
  5951. }
  5952. }
  5953. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  5954. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  5955. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  5956. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  5957. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  5958. switch yys3 {
  5959. case "search_metadata":
  5960. if r.TryDecodeAsNil() {
  5961. x.SearchMetadata = SearchMetadata{}
  5962. } else {
  5963. yyv4 := &x.SearchMetadata
  5964. yyv4.CodecDecodeSelf(d)
  5965. }
  5966. case "statuses":
  5967. if r.TryDecodeAsNil() {
  5968. x.Statuses = nil
  5969. } else {
  5970. yyv5 := &x.Statuses
  5971. yym6 := z.DecBinary()
  5972. _ = yym6
  5973. if false {
  5974. } else {
  5975. h.decSliceStatus((*[]Status)(yyv5), d)
  5976. }
  5977. }
  5978. default:
  5979. z.DecStructFieldNotFound(-1, yys3)
  5980. } // end switch yys3
  5981. } // end for yyj3
  5982. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  5983. }
  5984. func (x *LargeStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  5985. var h codecSelfer9225
  5986. z, r := codec1978.GenHelperDecoder(d)
  5987. _, _, _ = h, z, r
  5988. var yyj7 int
  5989. var yyb7 bool
  5990. var yyhl7 bool = l >= 0
  5991. yyj7++
  5992. if yyhl7 {
  5993. yyb7 = yyj7 > l
  5994. } else {
  5995. yyb7 = r.CheckBreak()
  5996. }
  5997. if yyb7 {
  5998. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  5999. return
  6000. }
  6001. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  6002. if r.TryDecodeAsNil() {
  6003. x.SearchMetadata = SearchMetadata{}
  6004. } else {
  6005. yyv8 := &x.SearchMetadata
  6006. yyv8.CodecDecodeSelf(d)
  6007. }
  6008. yyj7++
  6009. if yyhl7 {
  6010. yyb7 = yyj7 > l
  6011. } else {
  6012. yyb7 = r.CheckBreak()
  6013. }
  6014. if yyb7 {
  6015. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  6016. return
  6017. }
  6018. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  6019. if r.TryDecodeAsNil() {
  6020. x.Statuses = nil
  6021. } else {
  6022. yyv9 := &x.Statuses
  6023. yym10 := z.DecBinary()
  6024. _ = yym10
  6025. if false {
  6026. } else {
  6027. h.decSliceStatus((*[]Status)(yyv9), d)
  6028. }
  6029. }
  6030. for {
  6031. yyj7++
  6032. if yyhl7 {
  6033. yyb7 = yyj7 > l
  6034. } else {
  6035. yyb7 = r.CheckBreak()
  6036. }
  6037. if yyb7 {
  6038. break
  6039. }
  6040. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  6041. z.DecStructFieldNotFound(yyj7-1, "")
  6042. }
  6043. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  6044. }
  6045. func (x *XLStruct) CodecEncodeSelf(e *codec1978.Encoder) {
  6046. var h codecSelfer9225
  6047. z, r := codec1978.GenHelperEncoder(e)
  6048. _, _, _ = h, z, r
  6049. if x == nil {
  6050. r.EncodeNil()
  6051. } else {
  6052. yym1 := z.EncBinary()
  6053. _ = yym1
  6054. if false {
  6055. } else if z.HasExtensions() && z.EncExt(x) {
  6056. } else {
  6057. yysep2 := !z.EncBinary()
  6058. yy2arr2 := z.EncBasicHandle().StructToArray
  6059. var yyq2 [1]bool
  6060. _, _, _ = yysep2, yyq2, yy2arr2
  6061. const yyr2 bool = false
  6062. var yynn2 int
  6063. if yyr2 || yy2arr2 {
  6064. r.EncodeArrayStart(1)
  6065. } else {
  6066. yynn2 = 1
  6067. for _, b := range yyq2 {
  6068. if b {
  6069. yynn2++
  6070. }
  6071. }
  6072. r.EncodeMapStart(yynn2)
  6073. yynn2 = 0
  6074. }
  6075. if yyr2 || yy2arr2 {
  6076. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  6077. if x.Data == nil {
  6078. r.EncodeNil()
  6079. } else {
  6080. yym4 := z.EncBinary()
  6081. _ = yym4
  6082. if false {
  6083. } else {
  6084. h.encSliceLargeStruct(([]LargeStruct)(x.Data), e)
  6085. }
  6086. }
  6087. } else {
  6088. z.EncSendContainerState(codecSelfer_containerMapKey9225)
  6089. r.EncodeString(codecSelferC_UTF89225, string("Data"))
  6090. z.EncSendContainerState(codecSelfer_containerMapValue9225)
  6091. if x.Data == nil {
  6092. r.EncodeNil()
  6093. } else {
  6094. yym5 := z.EncBinary()
  6095. _ = yym5
  6096. if false {
  6097. } else {
  6098. h.encSliceLargeStruct(([]LargeStruct)(x.Data), e)
  6099. }
  6100. }
  6101. }
  6102. if yyr2 || yy2arr2 {
  6103. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  6104. } else {
  6105. z.EncSendContainerState(codecSelfer_containerMapEnd9225)
  6106. }
  6107. }
  6108. }
  6109. }
  6110. func (x *XLStruct) CodecDecodeSelf(d *codec1978.Decoder) {
  6111. var h codecSelfer9225
  6112. z, r := codec1978.GenHelperDecoder(d)
  6113. _, _, _ = h, z, r
  6114. yym1 := z.DecBinary()
  6115. _ = yym1
  6116. if false {
  6117. } else if z.HasExtensions() && z.DecExt(x) {
  6118. } else {
  6119. yyct2 := r.ContainerType()
  6120. if yyct2 == codecSelferValueTypeMap9225 {
  6121. yyl2 := r.ReadMapStart()
  6122. if yyl2 == 0 {
  6123. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  6124. } else {
  6125. x.codecDecodeSelfFromMap(yyl2, d)
  6126. }
  6127. } else if yyct2 == codecSelferValueTypeArray9225 {
  6128. yyl2 := r.ReadArrayStart()
  6129. if yyl2 == 0 {
  6130. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  6131. } else {
  6132. x.codecDecodeSelfFromArray(yyl2, d)
  6133. }
  6134. } else {
  6135. panic(codecSelferOnlyMapOrArrayEncodeToStructErr9225)
  6136. }
  6137. }
  6138. }
  6139. func (x *XLStruct) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
  6140. var h codecSelfer9225
  6141. z, r := codec1978.GenHelperDecoder(d)
  6142. _, _, _ = h, z, r
  6143. var yys3Slc = z.DecScratchBuffer() // default slice to decode into
  6144. _ = yys3Slc
  6145. var yyhl3 bool = l >= 0
  6146. for yyj3 := 0; ; yyj3++ {
  6147. if yyhl3 {
  6148. if yyj3 >= l {
  6149. break
  6150. }
  6151. } else {
  6152. if r.CheckBreak() {
  6153. break
  6154. }
  6155. }
  6156. z.DecSendContainerState(codecSelfer_containerMapKey9225)
  6157. yys3Slc = r.DecodeBytes(yys3Slc, true, true)
  6158. yys3SlcHdr := codecSelferUnsafeString9225{uintptr(unsafe.Pointer(&yys3Slc[0])), len(yys3Slc)}
  6159. yys3 := *(*string)(unsafe.Pointer(&yys3SlcHdr))
  6160. z.DecSendContainerState(codecSelfer_containerMapValue9225)
  6161. switch yys3 {
  6162. case "Data":
  6163. if r.TryDecodeAsNil() {
  6164. x.Data = nil
  6165. } else {
  6166. yyv4 := &x.Data
  6167. yym5 := z.DecBinary()
  6168. _ = yym5
  6169. if false {
  6170. } else {
  6171. h.decSliceLargeStruct((*[]LargeStruct)(yyv4), d)
  6172. }
  6173. }
  6174. default:
  6175. z.DecStructFieldNotFound(-1, yys3)
  6176. } // end switch yys3
  6177. } // end for yyj3
  6178. z.DecSendContainerState(codecSelfer_containerMapEnd9225)
  6179. }
  6180. func (x *XLStruct) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
  6181. var h codecSelfer9225
  6182. z, r := codec1978.GenHelperDecoder(d)
  6183. _, _, _ = h, z, r
  6184. var yyj6 int
  6185. var yyb6 bool
  6186. var yyhl6 bool = l >= 0
  6187. yyj6++
  6188. if yyhl6 {
  6189. yyb6 = yyj6 > l
  6190. } else {
  6191. yyb6 = r.CheckBreak()
  6192. }
  6193. if yyb6 {
  6194. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  6195. return
  6196. }
  6197. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  6198. if r.TryDecodeAsNil() {
  6199. x.Data = nil
  6200. } else {
  6201. yyv7 := &x.Data
  6202. yym8 := z.DecBinary()
  6203. _ = yym8
  6204. if false {
  6205. } else {
  6206. h.decSliceLargeStruct((*[]LargeStruct)(yyv7), d)
  6207. }
  6208. }
  6209. for {
  6210. yyj6++
  6211. if yyhl6 {
  6212. yyb6 = yyj6 > l
  6213. } else {
  6214. yyb6 = r.CheckBreak()
  6215. }
  6216. if yyb6 {
  6217. break
  6218. }
  6219. z.DecSendContainerState(codecSelfer_containerArrayElem9225)
  6220. z.DecStructFieldNotFound(yyj6-1, "")
  6221. }
  6222. z.DecSendContainerState(codecSelfer_containerArrayEnd9225)
  6223. }
  6224. func (x codecSelfer9225) encSliceHashtag(v []Hashtag, e *codec1978.Encoder) {
  6225. var h codecSelfer9225
  6226. z, r := codec1978.GenHelperEncoder(e)
  6227. _, _, _ = h, z, r
  6228. r.EncodeArrayStart(len(v))
  6229. for _, yyv1 := range v {
  6230. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  6231. yy2 := &yyv1
  6232. yy2.CodecEncodeSelf(e)
  6233. }
  6234. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  6235. }
  6236. func (x codecSelfer9225) decSliceHashtag(v *[]Hashtag, d *codec1978.Decoder) {
  6237. var h codecSelfer9225
  6238. z, r := codec1978.GenHelperDecoder(d)
  6239. _, _, _ = h, z, r
  6240. yyv1 := *v
  6241. yyh1, yyl1 := z.DecSliceHelperStart()
  6242. var yyc1 bool
  6243. _ = yyc1
  6244. if yyl1 == 0 {
  6245. if yyv1 == nil {
  6246. yyv1 = []Hashtag{}
  6247. yyc1 = true
  6248. } else if len(yyv1) != 0 {
  6249. yyv1 = yyv1[:0]
  6250. yyc1 = true
  6251. }
  6252. } else if yyl1 > 0 {
  6253. var yyrr1, yyrl1 int
  6254. var yyrt1 bool
  6255. _, _ = yyrl1, yyrt1
  6256. yyrr1 = yyl1 // len(yyv1)
  6257. if yyl1 > cap(yyv1) {
  6258. yyrg1 := len(yyv1) > 0
  6259. yyv21 := yyv1
  6260. yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 40)
  6261. if yyrt1 {
  6262. if yyrl1 <= cap(yyv1) {
  6263. yyv1 = yyv1[:yyrl1]
  6264. } else {
  6265. yyv1 = make([]Hashtag, yyrl1)
  6266. }
  6267. } else {
  6268. yyv1 = make([]Hashtag, yyrl1)
  6269. }
  6270. yyc1 = true
  6271. yyrr1 = len(yyv1)
  6272. if yyrg1 {
  6273. copy(yyv1, yyv21)
  6274. }
  6275. } else if yyl1 != len(yyv1) {
  6276. yyv1 = yyv1[:yyl1]
  6277. yyc1 = true
  6278. }
  6279. yyj1 := 0
  6280. for ; yyj1 < yyrr1; yyj1++ {
  6281. yyh1.ElemContainerState(yyj1)
  6282. if r.TryDecodeAsNil() {
  6283. yyv1[yyj1] = Hashtag{}
  6284. } else {
  6285. yyv2 := &yyv1[yyj1]
  6286. yyv2.CodecDecodeSelf(d)
  6287. }
  6288. }
  6289. if yyrt1 {
  6290. for ; yyj1 < yyl1; yyj1++ {
  6291. yyv1 = append(yyv1, Hashtag{})
  6292. yyh1.ElemContainerState(yyj1)
  6293. if r.TryDecodeAsNil() {
  6294. yyv1[yyj1] = Hashtag{}
  6295. } else {
  6296. yyv3 := &yyv1[yyj1]
  6297. yyv3.CodecDecodeSelf(d)
  6298. }
  6299. }
  6300. }
  6301. } else {
  6302. yyj1 := 0
  6303. for ; !r.CheckBreak(); yyj1++ {
  6304. if yyj1 >= len(yyv1) {
  6305. yyv1 = append(yyv1, Hashtag{}) // var yyz1 Hashtag
  6306. yyc1 = true
  6307. }
  6308. yyh1.ElemContainerState(yyj1)
  6309. if yyj1 < len(yyv1) {
  6310. if r.TryDecodeAsNil() {
  6311. yyv1[yyj1] = Hashtag{}
  6312. } else {
  6313. yyv4 := &yyv1[yyj1]
  6314. yyv4.CodecDecodeSelf(d)
  6315. }
  6316. } else {
  6317. z.DecSwallow()
  6318. }
  6319. }
  6320. if yyj1 < len(yyv1) {
  6321. yyv1 = yyv1[:yyj1]
  6322. yyc1 = true
  6323. } else if yyj1 == 0 && yyv1 == nil {
  6324. yyv1 = []Hashtag{}
  6325. yyc1 = true
  6326. }
  6327. }
  6328. yyh1.End()
  6329. if yyc1 {
  6330. *v = yyv1
  6331. }
  6332. }
  6333. func (x codecSelfer9225) encSlicePtrtostring(v []*string, e *codec1978.Encoder) {
  6334. var h codecSelfer9225
  6335. z, r := codec1978.GenHelperEncoder(e)
  6336. _, _, _ = h, z, r
  6337. r.EncodeArrayStart(len(v))
  6338. for _, yyv1 := range v {
  6339. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  6340. if yyv1 == nil {
  6341. r.EncodeNil()
  6342. } else {
  6343. yy2 := *yyv1
  6344. yym3 := z.EncBinary()
  6345. _ = yym3
  6346. if false {
  6347. } else {
  6348. r.EncodeString(codecSelferC_UTF89225, string(yy2))
  6349. }
  6350. }
  6351. }
  6352. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  6353. }
  6354. func (x codecSelfer9225) decSlicePtrtostring(v *[]*string, d *codec1978.Decoder) {
  6355. var h codecSelfer9225
  6356. z, r := codec1978.GenHelperDecoder(d)
  6357. _, _, _ = h, z, r
  6358. yyv1 := *v
  6359. yyh1, yyl1 := z.DecSliceHelperStart()
  6360. var yyc1 bool
  6361. _ = yyc1
  6362. if yyl1 == 0 {
  6363. if yyv1 == nil {
  6364. yyv1 = []*string{}
  6365. yyc1 = true
  6366. } else if len(yyv1) != 0 {
  6367. yyv1 = yyv1[:0]
  6368. yyc1 = true
  6369. }
  6370. } else if yyl1 > 0 {
  6371. var yyrr1, yyrl1 int
  6372. var yyrt1 bool
  6373. _, _ = yyrl1, yyrt1
  6374. yyrr1 = yyl1 // len(yyv1)
  6375. if yyl1 > cap(yyv1) {
  6376. yyrg1 := len(yyv1) > 0
  6377. yyv21 := yyv1
  6378. yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8)
  6379. if yyrt1 {
  6380. if yyrl1 <= cap(yyv1) {
  6381. yyv1 = yyv1[:yyrl1]
  6382. } else {
  6383. yyv1 = make([]*string, yyrl1)
  6384. }
  6385. } else {
  6386. yyv1 = make([]*string, yyrl1)
  6387. }
  6388. yyc1 = true
  6389. yyrr1 = len(yyv1)
  6390. if yyrg1 {
  6391. copy(yyv1, yyv21)
  6392. }
  6393. } else if yyl1 != len(yyv1) {
  6394. yyv1 = yyv1[:yyl1]
  6395. yyc1 = true
  6396. }
  6397. yyj1 := 0
  6398. for ; yyj1 < yyrr1; yyj1++ {
  6399. yyh1.ElemContainerState(yyj1)
  6400. if r.TryDecodeAsNil() {
  6401. if yyv1[yyj1] != nil {
  6402. *yyv1[yyj1] = ""
  6403. }
  6404. } else {
  6405. if yyv1[yyj1] == nil {
  6406. yyv1[yyj1] = new(string)
  6407. }
  6408. yyw2 := yyv1[yyj1]
  6409. yym3 := z.DecBinary()
  6410. _ = yym3
  6411. if false {
  6412. } else {
  6413. *((*string)(yyw2)) = r.DecodeString()
  6414. }
  6415. }
  6416. }
  6417. if yyrt1 {
  6418. for ; yyj1 < yyl1; yyj1++ {
  6419. yyv1 = append(yyv1, nil)
  6420. yyh1.ElemContainerState(yyj1)
  6421. if r.TryDecodeAsNil() {
  6422. if yyv1[yyj1] != nil {
  6423. *yyv1[yyj1] = ""
  6424. }
  6425. } else {
  6426. if yyv1[yyj1] == nil {
  6427. yyv1[yyj1] = new(string)
  6428. }
  6429. yyw4 := yyv1[yyj1]
  6430. yym5 := z.DecBinary()
  6431. _ = yym5
  6432. if false {
  6433. } else {
  6434. *((*string)(yyw4)) = r.DecodeString()
  6435. }
  6436. }
  6437. }
  6438. }
  6439. } else {
  6440. yyj1 := 0
  6441. for ; !r.CheckBreak(); yyj1++ {
  6442. if yyj1 >= len(yyv1) {
  6443. yyv1 = append(yyv1, nil) // var yyz1 *string
  6444. yyc1 = true
  6445. }
  6446. yyh1.ElemContainerState(yyj1)
  6447. if yyj1 < len(yyv1) {
  6448. if r.TryDecodeAsNil() {
  6449. if yyv1[yyj1] != nil {
  6450. *yyv1[yyj1] = ""
  6451. }
  6452. } else {
  6453. if yyv1[yyj1] == nil {
  6454. yyv1[yyj1] = new(string)
  6455. }
  6456. yyw6 := yyv1[yyj1]
  6457. yym7 := z.DecBinary()
  6458. _ = yym7
  6459. if false {
  6460. } else {
  6461. *((*string)(yyw6)) = r.DecodeString()
  6462. }
  6463. }
  6464. } else {
  6465. z.DecSwallow()
  6466. }
  6467. }
  6468. if yyj1 < len(yyv1) {
  6469. yyv1 = yyv1[:yyj1]
  6470. yyc1 = true
  6471. } else if yyj1 == 0 && yyv1 == nil {
  6472. yyv1 = []*string{}
  6473. yyc1 = true
  6474. }
  6475. }
  6476. yyh1.End()
  6477. if yyc1 {
  6478. *v = yyv1
  6479. }
  6480. }
  6481. func (x codecSelfer9225) encSliceURL(v []URL, e *codec1978.Encoder) {
  6482. var h codecSelfer9225
  6483. z, r := codec1978.GenHelperEncoder(e)
  6484. _, _, _ = h, z, r
  6485. r.EncodeArrayStart(len(v))
  6486. for _, yyv1 := range v {
  6487. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  6488. yy2 := &yyv1
  6489. yy2.CodecEncodeSelf(e)
  6490. }
  6491. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  6492. }
  6493. func (x codecSelfer9225) decSliceURL(v *[]URL, d *codec1978.Decoder) {
  6494. var h codecSelfer9225
  6495. z, r := codec1978.GenHelperDecoder(d)
  6496. _, _, _ = h, z, r
  6497. yyv1 := *v
  6498. yyh1, yyl1 := z.DecSliceHelperStart()
  6499. var yyc1 bool
  6500. _ = yyc1
  6501. if yyl1 == 0 {
  6502. if yyv1 == nil {
  6503. yyv1 = []URL{}
  6504. yyc1 = true
  6505. } else if len(yyv1) != 0 {
  6506. yyv1 = yyv1[:0]
  6507. yyc1 = true
  6508. }
  6509. } else if yyl1 > 0 {
  6510. var yyrr1, yyrl1 int
  6511. var yyrt1 bool
  6512. _, _ = yyrl1, yyrt1
  6513. yyrr1 = yyl1 // len(yyv1)
  6514. if yyl1 > cap(yyv1) {
  6515. yyrg1 := len(yyv1) > 0
  6516. yyv21 := yyv1
  6517. yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 48)
  6518. if yyrt1 {
  6519. if yyrl1 <= cap(yyv1) {
  6520. yyv1 = yyv1[:yyrl1]
  6521. } else {
  6522. yyv1 = make([]URL, yyrl1)
  6523. }
  6524. } else {
  6525. yyv1 = make([]URL, yyrl1)
  6526. }
  6527. yyc1 = true
  6528. yyrr1 = len(yyv1)
  6529. if yyrg1 {
  6530. copy(yyv1, yyv21)
  6531. }
  6532. } else if yyl1 != len(yyv1) {
  6533. yyv1 = yyv1[:yyl1]
  6534. yyc1 = true
  6535. }
  6536. yyj1 := 0
  6537. for ; yyj1 < yyrr1; yyj1++ {
  6538. yyh1.ElemContainerState(yyj1)
  6539. if r.TryDecodeAsNil() {
  6540. yyv1[yyj1] = URL{}
  6541. } else {
  6542. yyv2 := &yyv1[yyj1]
  6543. yyv2.CodecDecodeSelf(d)
  6544. }
  6545. }
  6546. if yyrt1 {
  6547. for ; yyj1 < yyl1; yyj1++ {
  6548. yyv1 = append(yyv1, URL{})
  6549. yyh1.ElemContainerState(yyj1)
  6550. if r.TryDecodeAsNil() {
  6551. yyv1[yyj1] = URL{}
  6552. } else {
  6553. yyv3 := &yyv1[yyj1]
  6554. yyv3.CodecDecodeSelf(d)
  6555. }
  6556. }
  6557. }
  6558. } else {
  6559. yyj1 := 0
  6560. for ; !r.CheckBreak(); yyj1++ {
  6561. if yyj1 >= len(yyv1) {
  6562. yyv1 = append(yyv1, URL{}) // var yyz1 URL
  6563. yyc1 = true
  6564. }
  6565. yyh1.ElemContainerState(yyj1)
  6566. if yyj1 < len(yyv1) {
  6567. if r.TryDecodeAsNil() {
  6568. yyv1[yyj1] = URL{}
  6569. } else {
  6570. yyv4 := &yyv1[yyj1]
  6571. yyv4.CodecDecodeSelf(d)
  6572. }
  6573. } else {
  6574. z.DecSwallow()
  6575. }
  6576. }
  6577. if yyj1 < len(yyv1) {
  6578. yyv1 = yyv1[:yyj1]
  6579. yyc1 = true
  6580. } else if yyj1 == 0 && yyv1 == nil {
  6581. yyv1 = []URL{}
  6582. yyc1 = true
  6583. }
  6584. }
  6585. yyh1.End()
  6586. if yyc1 {
  6587. *v = yyv1
  6588. }
  6589. }
  6590. func (x codecSelfer9225) encSliceStatus(v []Status, e *codec1978.Encoder) {
  6591. var h codecSelfer9225
  6592. z, r := codec1978.GenHelperEncoder(e)
  6593. _, _, _ = h, z, r
  6594. r.EncodeArrayStart(len(v))
  6595. for _, yyv1 := range v {
  6596. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  6597. yy2 := &yyv1
  6598. yy2.CodecEncodeSelf(e)
  6599. }
  6600. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  6601. }
  6602. func (x codecSelfer9225) decSliceStatus(v *[]Status, d *codec1978.Decoder) {
  6603. var h codecSelfer9225
  6604. z, r := codec1978.GenHelperDecoder(d)
  6605. _, _, _ = h, z, r
  6606. yyv1 := *v
  6607. yyh1, yyl1 := z.DecSliceHelperStart()
  6608. var yyc1 bool
  6609. _ = yyc1
  6610. if yyl1 == 0 {
  6611. if yyv1 == nil {
  6612. yyv1 = []Status{}
  6613. yyc1 = true
  6614. } else if len(yyv1) != 0 {
  6615. yyv1 = yyv1[:0]
  6616. yyc1 = true
  6617. }
  6618. } else if yyl1 > 0 {
  6619. var yyrr1, yyrl1 int
  6620. var yyrt1 bool
  6621. _, _ = yyrl1, yyrt1
  6622. yyrr1 = yyl1 // len(yyv1)
  6623. if yyl1 > cap(yyv1) {
  6624. yyrg1 := len(yyv1) > 0
  6625. yyv21 := yyv1
  6626. yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 752)
  6627. if yyrt1 {
  6628. if yyrl1 <= cap(yyv1) {
  6629. yyv1 = yyv1[:yyrl1]
  6630. } else {
  6631. yyv1 = make([]Status, yyrl1)
  6632. }
  6633. } else {
  6634. yyv1 = make([]Status, yyrl1)
  6635. }
  6636. yyc1 = true
  6637. yyrr1 = len(yyv1)
  6638. if yyrg1 {
  6639. copy(yyv1, yyv21)
  6640. }
  6641. } else if yyl1 != len(yyv1) {
  6642. yyv1 = yyv1[:yyl1]
  6643. yyc1 = true
  6644. }
  6645. yyj1 := 0
  6646. for ; yyj1 < yyrr1; yyj1++ {
  6647. yyh1.ElemContainerState(yyj1)
  6648. if r.TryDecodeAsNil() {
  6649. yyv1[yyj1] = Status{}
  6650. } else {
  6651. yyv2 := &yyv1[yyj1]
  6652. yyv2.CodecDecodeSelf(d)
  6653. }
  6654. }
  6655. if yyrt1 {
  6656. for ; yyj1 < yyl1; yyj1++ {
  6657. yyv1 = append(yyv1, Status{})
  6658. yyh1.ElemContainerState(yyj1)
  6659. if r.TryDecodeAsNil() {
  6660. yyv1[yyj1] = Status{}
  6661. } else {
  6662. yyv3 := &yyv1[yyj1]
  6663. yyv3.CodecDecodeSelf(d)
  6664. }
  6665. }
  6666. }
  6667. } else {
  6668. yyj1 := 0
  6669. for ; !r.CheckBreak(); yyj1++ {
  6670. if yyj1 >= len(yyv1) {
  6671. yyv1 = append(yyv1, Status{}) // var yyz1 Status
  6672. yyc1 = true
  6673. }
  6674. yyh1.ElemContainerState(yyj1)
  6675. if yyj1 < len(yyv1) {
  6676. if r.TryDecodeAsNil() {
  6677. yyv1[yyj1] = Status{}
  6678. } else {
  6679. yyv4 := &yyv1[yyj1]
  6680. yyv4.CodecDecodeSelf(d)
  6681. }
  6682. } else {
  6683. z.DecSwallow()
  6684. }
  6685. }
  6686. if yyj1 < len(yyv1) {
  6687. yyv1 = yyv1[:yyj1]
  6688. yyc1 = true
  6689. } else if yyj1 == 0 && yyv1 == nil {
  6690. yyv1 = []Status{}
  6691. yyc1 = true
  6692. }
  6693. }
  6694. yyh1.End()
  6695. if yyc1 {
  6696. *v = yyv1
  6697. }
  6698. }
  6699. func (x codecSelfer9225) encSliceLargeStruct(v []LargeStruct, e *codec1978.Encoder) {
  6700. var h codecSelfer9225
  6701. z, r := codec1978.GenHelperEncoder(e)
  6702. _, _, _ = h, z, r
  6703. r.EncodeArrayStart(len(v))
  6704. for _, yyv1 := range v {
  6705. z.EncSendContainerState(codecSelfer_containerArrayElem9225)
  6706. yy2 := &yyv1
  6707. yy2.CodecEncodeSelf(e)
  6708. }
  6709. z.EncSendContainerState(codecSelfer_containerArrayEnd9225)
  6710. }
  6711. func (x codecSelfer9225) decSliceLargeStruct(v *[]LargeStruct, d *codec1978.Decoder) {
  6712. var h codecSelfer9225
  6713. z, r := codec1978.GenHelperDecoder(d)
  6714. _, _, _ = h, z, r
  6715. yyv1 := *v
  6716. yyh1, yyl1 := z.DecSliceHelperStart()
  6717. var yyc1 bool
  6718. _ = yyc1
  6719. if yyl1 == 0 {
  6720. if yyv1 == nil {
  6721. yyv1 = []LargeStruct{}
  6722. yyc1 = true
  6723. } else if len(yyv1) != 0 {
  6724. yyv1 = yyv1[:0]
  6725. yyc1 = true
  6726. }
  6727. } else if yyl1 > 0 {
  6728. var yyrr1, yyrl1 int
  6729. var yyrt1 bool
  6730. _, _ = yyrl1, yyrt1
  6731. yyrr1 = yyl1 // len(yyv1)
  6732. if yyl1 > cap(yyv1) {
  6733. yyrg1 := len(yyv1) > 0
  6734. yyv21 := yyv1
  6735. yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 136)
  6736. if yyrt1 {
  6737. if yyrl1 <= cap(yyv1) {
  6738. yyv1 = yyv1[:yyrl1]
  6739. } else {
  6740. yyv1 = make([]LargeStruct, yyrl1)
  6741. }
  6742. } else {
  6743. yyv1 = make([]LargeStruct, yyrl1)
  6744. }
  6745. yyc1 = true
  6746. yyrr1 = len(yyv1)
  6747. if yyrg1 {
  6748. copy(yyv1, yyv21)
  6749. }
  6750. } else if yyl1 != len(yyv1) {
  6751. yyv1 = yyv1[:yyl1]
  6752. yyc1 = true
  6753. }
  6754. yyj1 := 0
  6755. for ; yyj1 < yyrr1; yyj1++ {
  6756. yyh1.ElemContainerState(yyj1)
  6757. if r.TryDecodeAsNil() {
  6758. yyv1[yyj1] = LargeStruct{}
  6759. } else {
  6760. yyv2 := &yyv1[yyj1]
  6761. yyv2.CodecDecodeSelf(d)
  6762. }
  6763. }
  6764. if yyrt1 {
  6765. for ; yyj1 < yyl1; yyj1++ {
  6766. yyv1 = append(yyv1, LargeStruct{})
  6767. yyh1.ElemContainerState(yyj1)
  6768. if r.TryDecodeAsNil() {
  6769. yyv1[yyj1] = LargeStruct{}
  6770. } else {
  6771. yyv3 := &yyv1[yyj1]
  6772. yyv3.CodecDecodeSelf(d)
  6773. }
  6774. }
  6775. }
  6776. } else {
  6777. yyj1 := 0
  6778. for ; !r.CheckBreak(); yyj1++ {
  6779. if yyj1 >= len(yyv1) {
  6780. yyv1 = append(yyv1, LargeStruct{}) // var yyz1 LargeStruct
  6781. yyc1 = true
  6782. }
  6783. yyh1.ElemContainerState(yyj1)
  6784. if yyj1 < len(yyv1) {
  6785. if r.TryDecodeAsNil() {
  6786. yyv1[yyj1] = LargeStruct{}
  6787. } else {
  6788. yyv4 := &yyv1[yyj1]
  6789. yyv4.CodecDecodeSelf(d)
  6790. }
  6791. } else {
  6792. z.DecSwallow()
  6793. }
  6794. }
  6795. if yyj1 < len(yyv1) {
  6796. yyv1 = yyv1[:yyj1]
  6797. yyc1 = true
  6798. } else if yyj1 == 0 && yyv1 == nil {
  6799. yyv1 = []LargeStruct{}
  6800. yyc1 = true
  6801. }
  6802. }
  6803. yyh1.End()
  6804. if yyc1 {
  6805. *v = yyv1
  6806. }
  6807. }