easyjson.go 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package memory
  3. import (
  4. json "encoding/json"
  5. easyjson "github.com/mailru/easyjson"
  6. jlexer "github.com/mailru/easyjson/jlexer"
  7. jwriter "github.com/mailru/easyjson/jwriter"
  8. )
  9. // suppress unused package warning
  10. var (
  11. _ *json.RawMessage
  12. _ *jlexer.Lexer
  13. _ *jwriter.Writer
  14. _ easyjson.Marshaler
  15. )
  16. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory(in *jlexer.Lexer, out *StopSamplingParams) {
  17. isTopLevel := in.IsStart()
  18. if in.IsNull() {
  19. if isTopLevel {
  20. in.Consumed()
  21. }
  22. in.Skip()
  23. return
  24. }
  25. in.Delim('{')
  26. for !in.IsDelim('}') {
  27. key := in.UnsafeFieldName(false)
  28. in.WantColon()
  29. if in.IsNull() {
  30. in.Skip()
  31. in.WantComma()
  32. continue
  33. }
  34. switch key {
  35. default:
  36. in.SkipRecursive()
  37. }
  38. in.WantComma()
  39. }
  40. in.Delim('}')
  41. if isTopLevel {
  42. in.Consumed()
  43. }
  44. }
  45. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory(out *jwriter.Writer, in StopSamplingParams) {
  46. out.RawByte('{')
  47. first := true
  48. _ = first
  49. out.RawByte('}')
  50. }
  51. // MarshalJSON supports json.Marshaler interface
  52. func (v StopSamplingParams) MarshalJSON() ([]byte, error) {
  53. w := jwriter.Writer{}
  54. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory(&w, v)
  55. return w.Buffer.BuildBytes(), w.Error
  56. }
  57. // MarshalEasyJSON supports easyjson.Marshaler interface
  58. func (v StopSamplingParams) MarshalEasyJSON(w *jwriter.Writer) {
  59. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory(w, v)
  60. }
  61. // UnmarshalJSON supports json.Unmarshaler interface
  62. func (v *StopSamplingParams) UnmarshalJSON(data []byte) error {
  63. r := jlexer.Lexer{Data: data}
  64. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory(&r, v)
  65. return r.Error()
  66. }
  67. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  68. func (v *StopSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  69. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory(l, v)
  70. }
  71. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory1(in *jlexer.Lexer, out *StartSamplingParams) {
  72. isTopLevel := in.IsStart()
  73. if in.IsNull() {
  74. if isTopLevel {
  75. in.Consumed()
  76. }
  77. in.Skip()
  78. return
  79. }
  80. in.Delim('{')
  81. for !in.IsDelim('}') {
  82. key := in.UnsafeFieldName(false)
  83. in.WantColon()
  84. if in.IsNull() {
  85. in.Skip()
  86. in.WantComma()
  87. continue
  88. }
  89. switch key {
  90. case "samplingInterval":
  91. out.SamplingInterval = int64(in.Int64())
  92. case "suppressRandomness":
  93. out.SuppressRandomness = bool(in.Bool())
  94. default:
  95. in.SkipRecursive()
  96. }
  97. in.WantComma()
  98. }
  99. in.Delim('}')
  100. if isTopLevel {
  101. in.Consumed()
  102. }
  103. }
  104. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory1(out *jwriter.Writer, in StartSamplingParams) {
  105. out.RawByte('{')
  106. first := true
  107. _ = first
  108. if in.SamplingInterval != 0 {
  109. const prefix string = ",\"samplingInterval\":"
  110. first = false
  111. out.RawString(prefix[1:])
  112. out.Int64(int64(in.SamplingInterval))
  113. }
  114. if in.SuppressRandomness {
  115. const prefix string = ",\"suppressRandomness\":"
  116. if first {
  117. first = false
  118. out.RawString(prefix[1:])
  119. } else {
  120. out.RawString(prefix)
  121. }
  122. out.Bool(bool(in.SuppressRandomness))
  123. }
  124. out.RawByte('}')
  125. }
  126. // MarshalJSON supports json.Marshaler interface
  127. func (v StartSamplingParams) MarshalJSON() ([]byte, error) {
  128. w := jwriter.Writer{}
  129. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory1(&w, v)
  130. return w.Buffer.BuildBytes(), w.Error
  131. }
  132. // MarshalEasyJSON supports easyjson.Marshaler interface
  133. func (v StartSamplingParams) MarshalEasyJSON(w *jwriter.Writer) {
  134. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory1(w, v)
  135. }
  136. // UnmarshalJSON supports json.Unmarshaler interface
  137. func (v *StartSamplingParams) UnmarshalJSON(data []byte) error {
  138. r := jlexer.Lexer{Data: data}
  139. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory1(&r, v)
  140. return r.Error()
  141. }
  142. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  143. func (v *StartSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  144. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory1(l, v)
  145. }
  146. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory2(in *jlexer.Lexer, out *SimulatePressureNotificationParams) {
  147. isTopLevel := in.IsStart()
  148. if in.IsNull() {
  149. if isTopLevel {
  150. in.Consumed()
  151. }
  152. in.Skip()
  153. return
  154. }
  155. in.Delim('{')
  156. for !in.IsDelim('}') {
  157. key := in.UnsafeFieldName(false)
  158. in.WantColon()
  159. if in.IsNull() {
  160. in.Skip()
  161. in.WantComma()
  162. continue
  163. }
  164. switch key {
  165. case "level":
  166. (out.Level).UnmarshalEasyJSON(in)
  167. default:
  168. in.SkipRecursive()
  169. }
  170. in.WantComma()
  171. }
  172. in.Delim('}')
  173. if isTopLevel {
  174. in.Consumed()
  175. }
  176. }
  177. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory2(out *jwriter.Writer, in SimulatePressureNotificationParams) {
  178. out.RawByte('{')
  179. first := true
  180. _ = first
  181. {
  182. const prefix string = ",\"level\":"
  183. out.RawString(prefix[1:])
  184. (in.Level).MarshalEasyJSON(out)
  185. }
  186. out.RawByte('}')
  187. }
  188. // MarshalJSON supports json.Marshaler interface
  189. func (v SimulatePressureNotificationParams) MarshalJSON() ([]byte, error) {
  190. w := jwriter.Writer{}
  191. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory2(&w, v)
  192. return w.Buffer.BuildBytes(), w.Error
  193. }
  194. // MarshalEasyJSON supports easyjson.Marshaler interface
  195. func (v SimulatePressureNotificationParams) MarshalEasyJSON(w *jwriter.Writer) {
  196. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory2(w, v)
  197. }
  198. // UnmarshalJSON supports json.Unmarshaler interface
  199. func (v *SimulatePressureNotificationParams) UnmarshalJSON(data []byte) error {
  200. r := jlexer.Lexer{Data: data}
  201. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory2(&r, v)
  202. return r.Error()
  203. }
  204. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  205. func (v *SimulatePressureNotificationParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  206. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory2(l, v)
  207. }
  208. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory3(in *jlexer.Lexer, out *SetPressureNotificationsSuppressedParams) {
  209. isTopLevel := in.IsStart()
  210. if in.IsNull() {
  211. if isTopLevel {
  212. in.Consumed()
  213. }
  214. in.Skip()
  215. return
  216. }
  217. in.Delim('{')
  218. for !in.IsDelim('}') {
  219. key := in.UnsafeFieldName(false)
  220. in.WantColon()
  221. if in.IsNull() {
  222. in.Skip()
  223. in.WantComma()
  224. continue
  225. }
  226. switch key {
  227. case "suppressed":
  228. out.Suppressed = bool(in.Bool())
  229. default:
  230. in.SkipRecursive()
  231. }
  232. in.WantComma()
  233. }
  234. in.Delim('}')
  235. if isTopLevel {
  236. in.Consumed()
  237. }
  238. }
  239. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory3(out *jwriter.Writer, in SetPressureNotificationsSuppressedParams) {
  240. out.RawByte('{')
  241. first := true
  242. _ = first
  243. {
  244. const prefix string = ",\"suppressed\":"
  245. out.RawString(prefix[1:])
  246. out.Bool(bool(in.Suppressed))
  247. }
  248. out.RawByte('}')
  249. }
  250. // MarshalJSON supports json.Marshaler interface
  251. func (v SetPressureNotificationsSuppressedParams) MarshalJSON() ([]byte, error) {
  252. w := jwriter.Writer{}
  253. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory3(&w, v)
  254. return w.Buffer.BuildBytes(), w.Error
  255. }
  256. // MarshalEasyJSON supports easyjson.Marshaler interface
  257. func (v SetPressureNotificationsSuppressedParams) MarshalEasyJSON(w *jwriter.Writer) {
  258. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory3(w, v)
  259. }
  260. // UnmarshalJSON supports json.Unmarshaler interface
  261. func (v *SetPressureNotificationsSuppressedParams) UnmarshalJSON(data []byte) error {
  262. r := jlexer.Lexer{Data: data}
  263. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory3(&r, v)
  264. return r.Error()
  265. }
  266. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  267. func (v *SetPressureNotificationsSuppressedParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  268. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory3(l, v)
  269. }
  270. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory4(in *jlexer.Lexer, out *SamplingProfileNode) {
  271. isTopLevel := in.IsStart()
  272. if in.IsNull() {
  273. if isTopLevel {
  274. in.Consumed()
  275. }
  276. in.Skip()
  277. return
  278. }
  279. in.Delim('{')
  280. for !in.IsDelim('}') {
  281. key := in.UnsafeFieldName(false)
  282. in.WantColon()
  283. if in.IsNull() {
  284. in.Skip()
  285. in.WantComma()
  286. continue
  287. }
  288. switch key {
  289. case "size":
  290. out.Size = float64(in.Float64())
  291. case "total":
  292. out.Total = float64(in.Float64())
  293. case "stack":
  294. if in.IsNull() {
  295. in.Skip()
  296. out.Stack = nil
  297. } else {
  298. in.Delim('[')
  299. if out.Stack == nil {
  300. if !in.IsDelim(']') {
  301. out.Stack = make([]string, 0, 4)
  302. } else {
  303. out.Stack = []string{}
  304. }
  305. } else {
  306. out.Stack = (out.Stack)[:0]
  307. }
  308. for !in.IsDelim(']') {
  309. var v1 string
  310. v1 = string(in.String())
  311. out.Stack = append(out.Stack, v1)
  312. in.WantComma()
  313. }
  314. in.Delim(']')
  315. }
  316. default:
  317. in.SkipRecursive()
  318. }
  319. in.WantComma()
  320. }
  321. in.Delim('}')
  322. if isTopLevel {
  323. in.Consumed()
  324. }
  325. }
  326. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory4(out *jwriter.Writer, in SamplingProfileNode) {
  327. out.RawByte('{')
  328. first := true
  329. _ = first
  330. {
  331. const prefix string = ",\"size\":"
  332. out.RawString(prefix[1:])
  333. out.Float64(float64(in.Size))
  334. }
  335. {
  336. const prefix string = ",\"total\":"
  337. out.RawString(prefix)
  338. out.Float64(float64(in.Total))
  339. }
  340. {
  341. const prefix string = ",\"stack\":"
  342. out.RawString(prefix)
  343. if in.Stack == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  344. out.RawString("null")
  345. } else {
  346. out.RawByte('[')
  347. for v2, v3 := range in.Stack {
  348. if v2 > 0 {
  349. out.RawByte(',')
  350. }
  351. out.String(string(v3))
  352. }
  353. out.RawByte(']')
  354. }
  355. }
  356. out.RawByte('}')
  357. }
  358. // MarshalJSON supports json.Marshaler interface
  359. func (v SamplingProfileNode) MarshalJSON() ([]byte, error) {
  360. w := jwriter.Writer{}
  361. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory4(&w, v)
  362. return w.Buffer.BuildBytes(), w.Error
  363. }
  364. // MarshalEasyJSON supports easyjson.Marshaler interface
  365. func (v SamplingProfileNode) MarshalEasyJSON(w *jwriter.Writer) {
  366. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory4(w, v)
  367. }
  368. // UnmarshalJSON supports json.Unmarshaler interface
  369. func (v *SamplingProfileNode) UnmarshalJSON(data []byte) error {
  370. r := jlexer.Lexer{Data: data}
  371. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory4(&r, v)
  372. return r.Error()
  373. }
  374. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  375. func (v *SamplingProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer) {
  376. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory4(l, v)
  377. }
  378. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory5(in *jlexer.Lexer, out *SamplingProfile) {
  379. isTopLevel := in.IsStart()
  380. if in.IsNull() {
  381. if isTopLevel {
  382. in.Consumed()
  383. }
  384. in.Skip()
  385. return
  386. }
  387. in.Delim('{')
  388. for !in.IsDelim('}') {
  389. key := in.UnsafeFieldName(false)
  390. in.WantColon()
  391. if in.IsNull() {
  392. in.Skip()
  393. in.WantComma()
  394. continue
  395. }
  396. switch key {
  397. case "samples":
  398. if in.IsNull() {
  399. in.Skip()
  400. out.Samples = nil
  401. } else {
  402. in.Delim('[')
  403. if out.Samples == nil {
  404. if !in.IsDelim(']') {
  405. out.Samples = make([]*SamplingProfileNode, 0, 8)
  406. } else {
  407. out.Samples = []*SamplingProfileNode{}
  408. }
  409. } else {
  410. out.Samples = (out.Samples)[:0]
  411. }
  412. for !in.IsDelim(']') {
  413. var v4 *SamplingProfileNode
  414. if in.IsNull() {
  415. in.Skip()
  416. v4 = nil
  417. } else {
  418. if v4 == nil {
  419. v4 = new(SamplingProfileNode)
  420. }
  421. (*v4).UnmarshalEasyJSON(in)
  422. }
  423. out.Samples = append(out.Samples, v4)
  424. in.WantComma()
  425. }
  426. in.Delim(']')
  427. }
  428. case "modules":
  429. if in.IsNull() {
  430. in.Skip()
  431. out.Modules = nil
  432. } else {
  433. in.Delim('[')
  434. if out.Modules == nil {
  435. if !in.IsDelim(']') {
  436. out.Modules = make([]*Module, 0, 8)
  437. } else {
  438. out.Modules = []*Module{}
  439. }
  440. } else {
  441. out.Modules = (out.Modules)[:0]
  442. }
  443. for !in.IsDelim(']') {
  444. var v5 *Module
  445. if in.IsNull() {
  446. in.Skip()
  447. v5 = nil
  448. } else {
  449. if v5 == nil {
  450. v5 = new(Module)
  451. }
  452. (*v5).UnmarshalEasyJSON(in)
  453. }
  454. out.Modules = append(out.Modules, v5)
  455. in.WantComma()
  456. }
  457. in.Delim(']')
  458. }
  459. default:
  460. in.SkipRecursive()
  461. }
  462. in.WantComma()
  463. }
  464. in.Delim('}')
  465. if isTopLevel {
  466. in.Consumed()
  467. }
  468. }
  469. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory5(out *jwriter.Writer, in SamplingProfile) {
  470. out.RawByte('{')
  471. first := true
  472. _ = first
  473. {
  474. const prefix string = ",\"samples\":"
  475. out.RawString(prefix[1:])
  476. if in.Samples == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  477. out.RawString("null")
  478. } else {
  479. out.RawByte('[')
  480. for v6, v7 := range in.Samples {
  481. if v6 > 0 {
  482. out.RawByte(',')
  483. }
  484. if v7 == nil {
  485. out.RawString("null")
  486. } else {
  487. (*v7).MarshalEasyJSON(out)
  488. }
  489. }
  490. out.RawByte(']')
  491. }
  492. }
  493. {
  494. const prefix string = ",\"modules\":"
  495. out.RawString(prefix)
  496. if in.Modules == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
  497. out.RawString("null")
  498. } else {
  499. out.RawByte('[')
  500. for v8, v9 := range in.Modules {
  501. if v8 > 0 {
  502. out.RawByte(',')
  503. }
  504. if v9 == nil {
  505. out.RawString("null")
  506. } else {
  507. (*v9).MarshalEasyJSON(out)
  508. }
  509. }
  510. out.RawByte(']')
  511. }
  512. }
  513. out.RawByte('}')
  514. }
  515. // MarshalJSON supports json.Marshaler interface
  516. func (v SamplingProfile) MarshalJSON() ([]byte, error) {
  517. w := jwriter.Writer{}
  518. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory5(&w, v)
  519. return w.Buffer.BuildBytes(), w.Error
  520. }
  521. // MarshalEasyJSON supports easyjson.Marshaler interface
  522. func (v SamplingProfile) MarshalEasyJSON(w *jwriter.Writer) {
  523. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory5(w, v)
  524. }
  525. // UnmarshalJSON supports json.Unmarshaler interface
  526. func (v *SamplingProfile) UnmarshalJSON(data []byte) error {
  527. r := jlexer.Lexer{Data: data}
  528. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory5(&r, v)
  529. return r.Error()
  530. }
  531. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  532. func (v *SamplingProfile) UnmarshalEasyJSON(l *jlexer.Lexer) {
  533. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory5(l, v)
  534. }
  535. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory6(in *jlexer.Lexer, out *PrepareForLeakDetectionParams) {
  536. isTopLevel := in.IsStart()
  537. if in.IsNull() {
  538. if isTopLevel {
  539. in.Consumed()
  540. }
  541. in.Skip()
  542. return
  543. }
  544. in.Delim('{')
  545. for !in.IsDelim('}') {
  546. key := in.UnsafeFieldName(false)
  547. in.WantColon()
  548. if in.IsNull() {
  549. in.Skip()
  550. in.WantComma()
  551. continue
  552. }
  553. switch key {
  554. default:
  555. in.SkipRecursive()
  556. }
  557. in.WantComma()
  558. }
  559. in.Delim('}')
  560. if isTopLevel {
  561. in.Consumed()
  562. }
  563. }
  564. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory6(out *jwriter.Writer, in PrepareForLeakDetectionParams) {
  565. out.RawByte('{')
  566. first := true
  567. _ = first
  568. out.RawByte('}')
  569. }
  570. // MarshalJSON supports json.Marshaler interface
  571. func (v PrepareForLeakDetectionParams) MarshalJSON() ([]byte, error) {
  572. w := jwriter.Writer{}
  573. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory6(&w, v)
  574. return w.Buffer.BuildBytes(), w.Error
  575. }
  576. // MarshalEasyJSON supports easyjson.Marshaler interface
  577. func (v PrepareForLeakDetectionParams) MarshalEasyJSON(w *jwriter.Writer) {
  578. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory6(w, v)
  579. }
  580. // UnmarshalJSON supports json.Unmarshaler interface
  581. func (v *PrepareForLeakDetectionParams) UnmarshalJSON(data []byte) error {
  582. r := jlexer.Lexer{Data: data}
  583. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory6(&r, v)
  584. return r.Error()
  585. }
  586. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  587. func (v *PrepareForLeakDetectionParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  588. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory6(l, v)
  589. }
  590. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory7(in *jlexer.Lexer, out *Module) {
  591. isTopLevel := in.IsStart()
  592. if in.IsNull() {
  593. if isTopLevel {
  594. in.Consumed()
  595. }
  596. in.Skip()
  597. return
  598. }
  599. in.Delim('{')
  600. for !in.IsDelim('}') {
  601. key := in.UnsafeFieldName(false)
  602. in.WantColon()
  603. if in.IsNull() {
  604. in.Skip()
  605. in.WantComma()
  606. continue
  607. }
  608. switch key {
  609. case "name":
  610. out.Name = string(in.String())
  611. case "uuid":
  612. out.UUID = string(in.String())
  613. case "baseAddress":
  614. out.BaseAddress = string(in.String())
  615. case "size":
  616. out.Size = float64(in.Float64())
  617. default:
  618. in.SkipRecursive()
  619. }
  620. in.WantComma()
  621. }
  622. in.Delim('}')
  623. if isTopLevel {
  624. in.Consumed()
  625. }
  626. }
  627. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory7(out *jwriter.Writer, in Module) {
  628. out.RawByte('{')
  629. first := true
  630. _ = first
  631. {
  632. const prefix string = ",\"name\":"
  633. out.RawString(prefix[1:])
  634. out.String(string(in.Name))
  635. }
  636. {
  637. const prefix string = ",\"uuid\":"
  638. out.RawString(prefix)
  639. out.String(string(in.UUID))
  640. }
  641. {
  642. const prefix string = ",\"baseAddress\":"
  643. out.RawString(prefix)
  644. out.String(string(in.BaseAddress))
  645. }
  646. {
  647. const prefix string = ",\"size\":"
  648. out.RawString(prefix)
  649. out.Float64(float64(in.Size))
  650. }
  651. out.RawByte('}')
  652. }
  653. // MarshalJSON supports json.Marshaler interface
  654. func (v Module) MarshalJSON() ([]byte, error) {
  655. w := jwriter.Writer{}
  656. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory7(&w, v)
  657. return w.Buffer.BuildBytes(), w.Error
  658. }
  659. // MarshalEasyJSON supports easyjson.Marshaler interface
  660. func (v Module) MarshalEasyJSON(w *jwriter.Writer) {
  661. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory7(w, v)
  662. }
  663. // UnmarshalJSON supports json.Unmarshaler interface
  664. func (v *Module) UnmarshalJSON(data []byte) error {
  665. r := jlexer.Lexer{Data: data}
  666. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory7(&r, v)
  667. return r.Error()
  668. }
  669. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  670. func (v *Module) UnmarshalEasyJSON(l *jlexer.Lexer) {
  671. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory7(l, v)
  672. }
  673. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory8(in *jlexer.Lexer, out *GetSamplingProfileReturns) {
  674. isTopLevel := in.IsStart()
  675. if in.IsNull() {
  676. if isTopLevel {
  677. in.Consumed()
  678. }
  679. in.Skip()
  680. return
  681. }
  682. in.Delim('{')
  683. for !in.IsDelim('}') {
  684. key := in.UnsafeFieldName(false)
  685. in.WantColon()
  686. if in.IsNull() {
  687. in.Skip()
  688. in.WantComma()
  689. continue
  690. }
  691. switch key {
  692. case "profile":
  693. if in.IsNull() {
  694. in.Skip()
  695. out.Profile = nil
  696. } else {
  697. if out.Profile == nil {
  698. out.Profile = new(SamplingProfile)
  699. }
  700. (*out.Profile).UnmarshalEasyJSON(in)
  701. }
  702. default:
  703. in.SkipRecursive()
  704. }
  705. in.WantComma()
  706. }
  707. in.Delim('}')
  708. if isTopLevel {
  709. in.Consumed()
  710. }
  711. }
  712. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory8(out *jwriter.Writer, in GetSamplingProfileReturns) {
  713. out.RawByte('{')
  714. first := true
  715. _ = first
  716. if in.Profile != nil {
  717. const prefix string = ",\"profile\":"
  718. first = false
  719. out.RawString(prefix[1:])
  720. (*in.Profile).MarshalEasyJSON(out)
  721. }
  722. out.RawByte('}')
  723. }
  724. // MarshalJSON supports json.Marshaler interface
  725. func (v GetSamplingProfileReturns) MarshalJSON() ([]byte, error) {
  726. w := jwriter.Writer{}
  727. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory8(&w, v)
  728. return w.Buffer.BuildBytes(), w.Error
  729. }
  730. // MarshalEasyJSON supports easyjson.Marshaler interface
  731. func (v GetSamplingProfileReturns) MarshalEasyJSON(w *jwriter.Writer) {
  732. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory8(w, v)
  733. }
  734. // UnmarshalJSON supports json.Unmarshaler interface
  735. func (v *GetSamplingProfileReturns) UnmarshalJSON(data []byte) error {
  736. r := jlexer.Lexer{Data: data}
  737. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory8(&r, v)
  738. return r.Error()
  739. }
  740. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  741. func (v *GetSamplingProfileReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  742. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory8(l, v)
  743. }
  744. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory9(in *jlexer.Lexer, out *GetSamplingProfileParams) {
  745. isTopLevel := in.IsStart()
  746. if in.IsNull() {
  747. if isTopLevel {
  748. in.Consumed()
  749. }
  750. in.Skip()
  751. return
  752. }
  753. in.Delim('{')
  754. for !in.IsDelim('}') {
  755. key := in.UnsafeFieldName(false)
  756. in.WantColon()
  757. if in.IsNull() {
  758. in.Skip()
  759. in.WantComma()
  760. continue
  761. }
  762. switch key {
  763. default:
  764. in.SkipRecursive()
  765. }
  766. in.WantComma()
  767. }
  768. in.Delim('}')
  769. if isTopLevel {
  770. in.Consumed()
  771. }
  772. }
  773. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory9(out *jwriter.Writer, in GetSamplingProfileParams) {
  774. out.RawByte('{')
  775. first := true
  776. _ = first
  777. out.RawByte('}')
  778. }
  779. // MarshalJSON supports json.Marshaler interface
  780. func (v GetSamplingProfileParams) MarshalJSON() ([]byte, error) {
  781. w := jwriter.Writer{}
  782. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory9(&w, v)
  783. return w.Buffer.BuildBytes(), w.Error
  784. }
  785. // MarshalEasyJSON supports easyjson.Marshaler interface
  786. func (v GetSamplingProfileParams) MarshalEasyJSON(w *jwriter.Writer) {
  787. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory9(w, v)
  788. }
  789. // UnmarshalJSON supports json.Unmarshaler interface
  790. func (v *GetSamplingProfileParams) UnmarshalJSON(data []byte) error {
  791. r := jlexer.Lexer{Data: data}
  792. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory9(&r, v)
  793. return r.Error()
  794. }
  795. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  796. func (v *GetSamplingProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  797. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory9(l, v)
  798. }
  799. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory10(in *jlexer.Lexer, out *GetDOMCountersReturns) {
  800. isTopLevel := in.IsStart()
  801. if in.IsNull() {
  802. if isTopLevel {
  803. in.Consumed()
  804. }
  805. in.Skip()
  806. return
  807. }
  808. in.Delim('{')
  809. for !in.IsDelim('}') {
  810. key := in.UnsafeFieldName(false)
  811. in.WantColon()
  812. if in.IsNull() {
  813. in.Skip()
  814. in.WantComma()
  815. continue
  816. }
  817. switch key {
  818. case "documents":
  819. out.Documents = int64(in.Int64())
  820. case "nodes":
  821. out.Nodes = int64(in.Int64())
  822. case "jsEventListeners":
  823. out.JsEventListeners = int64(in.Int64())
  824. default:
  825. in.SkipRecursive()
  826. }
  827. in.WantComma()
  828. }
  829. in.Delim('}')
  830. if isTopLevel {
  831. in.Consumed()
  832. }
  833. }
  834. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory10(out *jwriter.Writer, in GetDOMCountersReturns) {
  835. out.RawByte('{')
  836. first := true
  837. _ = first
  838. if in.Documents != 0 {
  839. const prefix string = ",\"documents\":"
  840. first = false
  841. out.RawString(prefix[1:])
  842. out.Int64(int64(in.Documents))
  843. }
  844. if in.Nodes != 0 {
  845. const prefix string = ",\"nodes\":"
  846. if first {
  847. first = false
  848. out.RawString(prefix[1:])
  849. } else {
  850. out.RawString(prefix)
  851. }
  852. out.Int64(int64(in.Nodes))
  853. }
  854. if in.JsEventListeners != 0 {
  855. const prefix string = ",\"jsEventListeners\":"
  856. if first {
  857. first = false
  858. out.RawString(prefix[1:])
  859. } else {
  860. out.RawString(prefix)
  861. }
  862. out.Int64(int64(in.JsEventListeners))
  863. }
  864. out.RawByte('}')
  865. }
  866. // MarshalJSON supports json.Marshaler interface
  867. func (v GetDOMCountersReturns) MarshalJSON() ([]byte, error) {
  868. w := jwriter.Writer{}
  869. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory10(&w, v)
  870. return w.Buffer.BuildBytes(), w.Error
  871. }
  872. // MarshalEasyJSON supports easyjson.Marshaler interface
  873. func (v GetDOMCountersReturns) MarshalEasyJSON(w *jwriter.Writer) {
  874. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory10(w, v)
  875. }
  876. // UnmarshalJSON supports json.Unmarshaler interface
  877. func (v *GetDOMCountersReturns) UnmarshalJSON(data []byte) error {
  878. r := jlexer.Lexer{Data: data}
  879. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory10(&r, v)
  880. return r.Error()
  881. }
  882. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  883. func (v *GetDOMCountersReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  884. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory10(l, v)
  885. }
  886. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory11(in *jlexer.Lexer, out *GetDOMCountersParams) {
  887. isTopLevel := in.IsStart()
  888. if in.IsNull() {
  889. if isTopLevel {
  890. in.Consumed()
  891. }
  892. in.Skip()
  893. return
  894. }
  895. in.Delim('{')
  896. for !in.IsDelim('}') {
  897. key := in.UnsafeFieldName(false)
  898. in.WantColon()
  899. if in.IsNull() {
  900. in.Skip()
  901. in.WantComma()
  902. continue
  903. }
  904. switch key {
  905. default:
  906. in.SkipRecursive()
  907. }
  908. in.WantComma()
  909. }
  910. in.Delim('}')
  911. if isTopLevel {
  912. in.Consumed()
  913. }
  914. }
  915. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory11(out *jwriter.Writer, in GetDOMCountersParams) {
  916. out.RawByte('{')
  917. first := true
  918. _ = first
  919. out.RawByte('}')
  920. }
  921. // MarshalJSON supports json.Marshaler interface
  922. func (v GetDOMCountersParams) MarshalJSON() ([]byte, error) {
  923. w := jwriter.Writer{}
  924. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory11(&w, v)
  925. return w.Buffer.BuildBytes(), w.Error
  926. }
  927. // MarshalEasyJSON supports easyjson.Marshaler interface
  928. func (v GetDOMCountersParams) MarshalEasyJSON(w *jwriter.Writer) {
  929. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory11(w, v)
  930. }
  931. // UnmarshalJSON supports json.Unmarshaler interface
  932. func (v *GetDOMCountersParams) UnmarshalJSON(data []byte) error {
  933. r := jlexer.Lexer{Data: data}
  934. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory11(&r, v)
  935. return r.Error()
  936. }
  937. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  938. func (v *GetDOMCountersParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  939. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory11(l, v)
  940. }
  941. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory12(in *jlexer.Lexer, out *GetBrowserSamplingProfileReturns) {
  942. isTopLevel := in.IsStart()
  943. if in.IsNull() {
  944. if isTopLevel {
  945. in.Consumed()
  946. }
  947. in.Skip()
  948. return
  949. }
  950. in.Delim('{')
  951. for !in.IsDelim('}') {
  952. key := in.UnsafeFieldName(false)
  953. in.WantColon()
  954. if in.IsNull() {
  955. in.Skip()
  956. in.WantComma()
  957. continue
  958. }
  959. switch key {
  960. case "profile":
  961. if in.IsNull() {
  962. in.Skip()
  963. out.Profile = nil
  964. } else {
  965. if out.Profile == nil {
  966. out.Profile = new(SamplingProfile)
  967. }
  968. (*out.Profile).UnmarshalEasyJSON(in)
  969. }
  970. default:
  971. in.SkipRecursive()
  972. }
  973. in.WantComma()
  974. }
  975. in.Delim('}')
  976. if isTopLevel {
  977. in.Consumed()
  978. }
  979. }
  980. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory12(out *jwriter.Writer, in GetBrowserSamplingProfileReturns) {
  981. out.RawByte('{')
  982. first := true
  983. _ = first
  984. if in.Profile != nil {
  985. const prefix string = ",\"profile\":"
  986. first = false
  987. out.RawString(prefix[1:])
  988. (*in.Profile).MarshalEasyJSON(out)
  989. }
  990. out.RawByte('}')
  991. }
  992. // MarshalJSON supports json.Marshaler interface
  993. func (v GetBrowserSamplingProfileReturns) MarshalJSON() ([]byte, error) {
  994. w := jwriter.Writer{}
  995. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory12(&w, v)
  996. return w.Buffer.BuildBytes(), w.Error
  997. }
  998. // MarshalEasyJSON supports easyjson.Marshaler interface
  999. func (v GetBrowserSamplingProfileReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1000. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory12(w, v)
  1001. }
  1002. // UnmarshalJSON supports json.Unmarshaler interface
  1003. func (v *GetBrowserSamplingProfileReturns) UnmarshalJSON(data []byte) error {
  1004. r := jlexer.Lexer{Data: data}
  1005. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory12(&r, v)
  1006. return r.Error()
  1007. }
  1008. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1009. func (v *GetBrowserSamplingProfileReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1010. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory12(l, v)
  1011. }
  1012. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory13(in *jlexer.Lexer, out *GetBrowserSamplingProfileParams) {
  1013. isTopLevel := in.IsStart()
  1014. if in.IsNull() {
  1015. if isTopLevel {
  1016. in.Consumed()
  1017. }
  1018. in.Skip()
  1019. return
  1020. }
  1021. in.Delim('{')
  1022. for !in.IsDelim('}') {
  1023. key := in.UnsafeFieldName(false)
  1024. in.WantColon()
  1025. if in.IsNull() {
  1026. in.Skip()
  1027. in.WantComma()
  1028. continue
  1029. }
  1030. switch key {
  1031. default:
  1032. in.SkipRecursive()
  1033. }
  1034. in.WantComma()
  1035. }
  1036. in.Delim('}')
  1037. if isTopLevel {
  1038. in.Consumed()
  1039. }
  1040. }
  1041. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory13(out *jwriter.Writer, in GetBrowserSamplingProfileParams) {
  1042. out.RawByte('{')
  1043. first := true
  1044. _ = first
  1045. out.RawByte('}')
  1046. }
  1047. // MarshalJSON supports json.Marshaler interface
  1048. func (v GetBrowserSamplingProfileParams) MarshalJSON() ([]byte, error) {
  1049. w := jwriter.Writer{}
  1050. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory13(&w, v)
  1051. return w.Buffer.BuildBytes(), w.Error
  1052. }
  1053. // MarshalEasyJSON supports easyjson.Marshaler interface
  1054. func (v GetBrowserSamplingProfileParams) MarshalEasyJSON(w *jwriter.Writer) {
  1055. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory13(w, v)
  1056. }
  1057. // UnmarshalJSON supports json.Unmarshaler interface
  1058. func (v *GetBrowserSamplingProfileParams) UnmarshalJSON(data []byte) error {
  1059. r := jlexer.Lexer{Data: data}
  1060. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory13(&r, v)
  1061. return r.Error()
  1062. }
  1063. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1064. func (v *GetBrowserSamplingProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1065. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory13(l, v)
  1066. }
  1067. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory14(in *jlexer.Lexer, out *GetAllTimeSamplingProfileReturns) {
  1068. isTopLevel := in.IsStart()
  1069. if in.IsNull() {
  1070. if isTopLevel {
  1071. in.Consumed()
  1072. }
  1073. in.Skip()
  1074. return
  1075. }
  1076. in.Delim('{')
  1077. for !in.IsDelim('}') {
  1078. key := in.UnsafeFieldName(false)
  1079. in.WantColon()
  1080. if in.IsNull() {
  1081. in.Skip()
  1082. in.WantComma()
  1083. continue
  1084. }
  1085. switch key {
  1086. case "profile":
  1087. if in.IsNull() {
  1088. in.Skip()
  1089. out.Profile = nil
  1090. } else {
  1091. if out.Profile == nil {
  1092. out.Profile = new(SamplingProfile)
  1093. }
  1094. (*out.Profile).UnmarshalEasyJSON(in)
  1095. }
  1096. default:
  1097. in.SkipRecursive()
  1098. }
  1099. in.WantComma()
  1100. }
  1101. in.Delim('}')
  1102. if isTopLevel {
  1103. in.Consumed()
  1104. }
  1105. }
  1106. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory14(out *jwriter.Writer, in GetAllTimeSamplingProfileReturns) {
  1107. out.RawByte('{')
  1108. first := true
  1109. _ = first
  1110. if in.Profile != nil {
  1111. const prefix string = ",\"profile\":"
  1112. first = false
  1113. out.RawString(prefix[1:])
  1114. (*in.Profile).MarshalEasyJSON(out)
  1115. }
  1116. out.RawByte('}')
  1117. }
  1118. // MarshalJSON supports json.Marshaler interface
  1119. func (v GetAllTimeSamplingProfileReturns) MarshalJSON() ([]byte, error) {
  1120. w := jwriter.Writer{}
  1121. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory14(&w, v)
  1122. return w.Buffer.BuildBytes(), w.Error
  1123. }
  1124. // MarshalEasyJSON supports easyjson.Marshaler interface
  1125. func (v GetAllTimeSamplingProfileReturns) MarshalEasyJSON(w *jwriter.Writer) {
  1126. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory14(w, v)
  1127. }
  1128. // UnmarshalJSON supports json.Unmarshaler interface
  1129. func (v *GetAllTimeSamplingProfileReturns) UnmarshalJSON(data []byte) error {
  1130. r := jlexer.Lexer{Data: data}
  1131. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory14(&r, v)
  1132. return r.Error()
  1133. }
  1134. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1135. func (v *GetAllTimeSamplingProfileReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1136. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory14(l, v)
  1137. }
  1138. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory15(in *jlexer.Lexer, out *GetAllTimeSamplingProfileParams) {
  1139. isTopLevel := in.IsStart()
  1140. if in.IsNull() {
  1141. if isTopLevel {
  1142. in.Consumed()
  1143. }
  1144. in.Skip()
  1145. return
  1146. }
  1147. in.Delim('{')
  1148. for !in.IsDelim('}') {
  1149. key := in.UnsafeFieldName(false)
  1150. in.WantColon()
  1151. if in.IsNull() {
  1152. in.Skip()
  1153. in.WantComma()
  1154. continue
  1155. }
  1156. switch key {
  1157. default:
  1158. in.SkipRecursive()
  1159. }
  1160. in.WantComma()
  1161. }
  1162. in.Delim('}')
  1163. if isTopLevel {
  1164. in.Consumed()
  1165. }
  1166. }
  1167. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory15(out *jwriter.Writer, in GetAllTimeSamplingProfileParams) {
  1168. out.RawByte('{')
  1169. first := true
  1170. _ = first
  1171. out.RawByte('}')
  1172. }
  1173. // MarshalJSON supports json.Marshaler interface
  1174. func (v GetAllTimeSamplingProfileParams) MarshalJSON() ([]byte, error) {
  1175. w := jwriter.Writer{}
  1176. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory15(&w, v)
  1177. return w.Buffer.BuildBytes(), w.Error
  1178. }
  1179. // MarshalEasyJSON supports easyjson.Marshaler interface
  1180. func (v GetAllTimeSamplingProfileParams) MarshalEasyJSON(w *jwriter.Writer) {
  1181. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory15(w, v)
  1182. }
  1183. // UnmarshalJSON supports json.Unmarshaler interface
  1184. func (v *GetAllTimeSamplingProfileParams) UnmarshalJSON(data []byte) error {
  1185. r := jlexer.Lexer{Data: data}
  1186. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory15(&r, v)
  1187. return r.Error()
  1188. }
  1189. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1190. func (v *GetAllTimeSamplingProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1191. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory15(l, v)
  1192. }
  1193. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory16(in *jlexer.Lexer, out *ForciblyPurgeJavaScriptMemoryParams) {
  1194. isTopLevel := in.IsStart()
  1195. if in.IsNull() {
  1196. if isTopLevel {
  1197. in.Consumed()
  1198. }
  1199. in.Skip()
  1200. return
  1201. }
  1202. in.Delim('{')
  1203. for !in.IsDelim('}') {
  1204. key := in.UnsafeFieldName(false)
  1205. in.WantColon()
  1206. if in.IsNull() {
  1207. in.Skip()
  1208. in.WantComma()
  1209. continue
  1210. }
  1211. switch key {
  1212. default:
  1213. in.SkipRecursive()
  1214. }
  1215. in.WantComma()
  1216. }
  1217. in.Delim('}')
  1218. if isTopLevel {
  1219. in.Consumed()
  1220. }
  1221. }
  1222. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory16(out *jwriter.Writer, in ForciblyPurgeJavaScriptMemoryParams) {
  1223. out.RawByte('{')
  1224. first := true
  1225. _ = first
  1226. out.RawByte('}')
  1227. }
  1228. // MarshalJSON supports json.Marshaler interface
  1229. func (v ForciblyPurgeJavaScriptMemoryParams) MarshalJSON() ([]byte, error) {
  1230. w := jwriter.Writer{}
  1231. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory16(&w, v)
  1232. return w.Buffer.BuildBytes(), w.Error
  1233. }
  1234. // MarshalEasyJSON supports easyjson.Marshaler interface
  1235. func (v ForciblyPurgeJavaScriptMemoryParams) MarshalEasyJSON(w *jwriter.Writer) {
  1236. easyjsonC5a4559bEncodeGithubComChromedpCdprotoMemory16(w, v)
  1237. }
  1238. // UnmarshalJSON supports json.Unmarshaler interface
  1239. func (v *ForciblyPurgeJavaScriptMemoryParams) UnmarshalJSON(data []byte) error {
  1240. r := jlexer.Lexer{Data: data}
  1241. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory16(&r, v)
  1242. return r.Error()
  1243. }
  1244. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1245. func (v *ForciblyPurgeJavaScriptMemoryParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1246. easyjsonC5a4559bDecodeGithubComChromedpCdprotoMemory16(l, v)
  1247. }