easyjson.go 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828
  1. // Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
  2. package webaudio
  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 easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio(in *jlexer.Lexer, out *GetRealtimeDataReturns) {
  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. case "realtimeData":
  36. if in.IsNull() {
  37. in.Skip()
  38. out.RealtimeData = nil
  39. } else {
  40. if out.RealtimeData == nil {
  41. out.RealtimeData = new(ContextRealtimeData)
  42. }
  43. (*out.RealtimeData).UnmarshalEasyJSON(in)
  44. }
  45. default:
  46. in.SkipRecursive()
  47. }
  48. in.WantComma()
  49. }
  50. in.Delim('}')
  51. if isTopLevel {
  52. in.Consumed()
  53. }
  54. }
  55. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio(out *jwriter.Writer, in GetRealtimeDataReturns) {
  56. out.RawByte('{')
  57. first := true
  58. _ = first
  59. if in.RealtimeData != nil {
  60. const prefix string = ",\"realtimeData\":"
  61. first = false
  62. out.RawString(prefix[1:])
  63. (*in.RealtimeData).MarshalEasyJSON(out)
  64. }
  65. out.RawByte('}')
  66. }
  67. // MarshalJSON supports json.Marshaler interface
  68. func (v GetRealtimeDataReturns) MarshalJSON() ([]byte, error) {
  69. w := jwriter.Writer{}
  70. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio(&w, v)
  71. return w.Buffer.BuildBytes(), w.Error
  72. }
  73. // MarshalEasyJSON supports easyjson.Marshaler interface
  74. func (v GetRealtimeDataReturns) MarshalEasyJSON(w *jwriter.Writer) {
  75. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio(w, v)
  76. }
  77. // UnmarshalJSON supports json.Unmarshaler interface
  78. func (v *GetRealtimeDataReturns) UnmarshalJSON(data []byte) error {
  79. r := jlexer.Lexer{Data: data}
  80. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio(&r, v)
  81. return r.Error()
  82. }
  83. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  84. func (v *GetRealtimeDataReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
  85. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio(l, v)
  86. }
  87. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio1(in *jlexer.Lexer, out *GetRealtimeDataParams) {
  88. isTopLevel := in.IsStart()
  89. if in.IsNull() {
  90. if isTopLevel {
  91. in.Consumed()
  92. }
  93. in.Skip()
  94. return
  95. }
  96. in.Delim('{')
  97. for !in.IsDelim('}') {
  98. key := in.UnsafeFieldName(false)
  99. in.WantColon()
  100. if in.IsNull() {
  101. in.Skip()
  102. in.WantComma()
  103. continue
  104. }
  105. switch key {
  106. case "contextId":
  107. out.ContextID = GraphObjectID(in.String())
  108. default:
  109. in.SkipRecursive()
  110. }
  111. in.WantComma()
  112. }
  113. in.Delim('}')
  114. if isTopLevel {
  115. in.Consumed()
  116. }
  117. }
  118. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio1(out *jwriter.Writer, in GetRealtimeDataParams) {
  119. out.RawByte('{')
  120. first := true
  121. _ = first
  122. {
  123. const prefix string = ",\"contextId\":"
  124. out.RawString(prefix[1:])
  125. out.String(string(in.ContextID))
  126. }
  127. out.RawByte('}')
  128. }
  129. // MarshalJSON supports json.Marshaler interface
  130. func (v GetRealtimeDataParams) MarshalJSON() ([]byte, error) {
  131. w := jwriter.Writer{}
  132. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio1(&w, v)
  133. return w.Buffer.BuildBytes(), w.Error
  134. }
  135. // MarshalEasyJSON supports easyjson.Marshaler interface
  136. func (v GetRealtimeDataParams) MarshalEasyJSON(w *jwriter.Writer) {
  137. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio1(w, v)
  138. }
  139. // UnmarshalJSON supports json.Unmarshaler interface
  140. func (v *GetRealtimeDataParams) UnmarshalJSON(data []byte) error {
  141. r := jlexer.Lexer{Data: data}
  142. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio1(&r, v)
  143. return r.Error()
  144. }
  145. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  146. func (v *GetRealtimeDataParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  147. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio1(l, v)
  148. }
  149. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio2(in *jlexer.Lexer, out *EventNodesDisconnected) {
  150. isTopLevel := in.IsStart()
  151. if in.IsNull() {
  152. if isTopLevel {
  153. in.Consumed()
  154. }
  155. in.Skip()
  156. return
  157. }
  158. in.Delim('{')
  159. for !in.IsDelim('}') {
  160. key := in.UnsafeFieldName(false)
  161. in.WantColon()
  162. if in.IsNull() {
  163. in.Skip()
  164. in.WantComma()
  165. continue
  166. }
  167. switch key {
  168. case "contextId":
  169. out.ContextID = GraphObjectID(in.String())
  170. case "sourceId":
  171. out.SourceID = GraphObjectID(in.String())
  172. case "destinationId":
  173. out.DestinationID = GraphObjectID(in.String())
  174. case "sourceOutputIndex":
  175. out.SourceOutputIndex = float64(in.Float64())
  176. case "destinationInputIndex":
  177. out.DestinationInputIndex = float64(in.Float64())
  178. default:
  179. in.SkipRecursive()
  180. }
  181. in.WantComma()
  182. }
  183. in.Delim('}')
  184. if isTopLevel {
  185. in.Consumed()
  186. }
  187. }
  188. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio2(out *jwriter.Writer, in EventNodesDisconnected) {
  189. out.RawByte('{')
  190. first := true
  191. _ = first
  192. {
  193. const prefix string = ",\"contextId\":"
  194. out.RawString(prefix[1:])
  195. out.String(string(in.ContextID))
  196. }
  197. {
  198. const prefix string = ",\"sourceId\":"
  199. out.RawString(prefix)
  200. out.String(string(in.SourceID))
  201. }
  202. {
  203. const prefix string = ",\"destinationId\":"
  204. out.RawString(prefix)
  205. out.String(string(in.DestinationID))
  206. }
  207. if in.SourceOutputIndex != 0 {
  208. const prefix string = ",\"sourceOutputIndex\":"
  209. out.RawString(prefix)
  210. out.Float64(float64(in.SourceOutputIndex))
  211. }
  212. if in.DestinationInputIndex != 0 {
  213. const prefix string = ",\"destinationInputIndex\":"
  214. out.RawString(prefix)
  215. out.Float64(float64(in.DestinationInputIndex))
  216. }
  217. out.RawByte('}')
  218. }
  219. // MarshalJSON supports json.Marshaler interface
  220. func (v EventNodesDisconnected) MarshalJSON() ([]byte, error) {
  221. w := jwriter.Writer{}
  222. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio2(&w, v)
  223. return w.Buffer.BuildBytes(), w.Error
  224. }
  225. // MarshalEasyJSON supports easyjson.Marshaler interface
  226. func (v EventNodesDisconnected) MarshalEasyJSON(w *jwriter.Writer) {
  227. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio2(w, v)
  228. }
  229. // UnmarshalJSON supports json.Unmarshaler interface
  230. func (v *EventNodesDisconnected) UnmarshalJSON(data []byte) error {
  231. r := jlexer.Lexer{Data: data}
  232. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio2(&r, v)
  233. return r.Error()
  234. }
  235. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  236. func (v *EventNodesDisconnected) UnmarshalEasyJSON(l *jlexer.Lexer) {
  237. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio2(l, v)
  238. }
  239. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio3(in *jlexer.Lexer, out *EventNodesConnected) {
  240. isTopLevel := in.IsStart()
  241. if in.IsNull() {
  242. if isTopLevel {
  243. in.Consumed()
  244. }
  245. in.Skip()
  246. return
  247. }
  248. in.Delim('{')
  249. for !in.IsDelim('}') {
  250. key := in.UnsafeFieldName(false)
  251. in.WantColon()
  252. if in.IsNull() {
  253. in.Skip()
  254. in.WantComma()
  255. continue
  256. }
  257. switch key {
  258. case "contextId":
  259. out.ContextID = GraphObjectID(in.String())
  260. case "sourceId":
  261. out.SourceID = GraphObjectID(in.String())
  262. case "destinationId":
  263. out.DestinationID = GraphObjectID(in.String())
  264. case "sourceOutputIndex":
  265. out.SourceOutputIndex = float64(in.Float64())
  266. case "destinationInputIndex":
  267. out.DestinationInputIndex = float64(in.Float64())
  268. default:
  269. in.SkipRecursive()
  270. }
  271. in.WantComma()
  272. }
  273. in.Delim('}')
  274. if isTopLevel {
  275. in.Consumed()
  276. }
  277. }
  278. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio3(out *jwriter.Writer, in EventNodesConnected) {
  279. out.RawByte('{')
  280. first := true
  281. _ = first
  282. {
  283. const prefix string = ",\"contextId\":"
  284. out.RawString(prefix[1:])
  285. out.String(string(in.ContextID))
  286. }
  287. {
  288. const prefix string = ",\"sourceId\":"
  289. out.RawString(prefix)
  290. out.String(string(in.SourceID))
  291. }
  292. {
  293. const prefix string = ",\"destinationId\":"
  294. out.RawString(prefix)
  295. out.String(string(in.DestinationID))
  296. }
  297. if in.SourceOutputIndex != 0 {
  298. const prefix string = ",\"sourceOutputIndex\":"
  299. out.RawString(prefix)
  300. out.Float64(float64(in.SourceOutputIndex))
  301. }
  302. if in.DestinationInputIndex != 0 {
  303. const prefix string = ",\"destinationInputIndex\":"
  304. out.RawString(prefix)
  305. out.Float64(float64(in.DestinationInputIndex))
  306. }
  307. out.RawByte('}')
  308. }
  309. // MarshalJSON supports json.Marshaler interface
  310. func (v EventNodesConnected) MarshalJSON() ([]byte, error) {
  311. w := jwriter.Writer{}
  312. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio3(&w, v)
  313. return w.Buffer.BuildBytes(), w.Error
  314. }
  315. // MarshalEasyJSON supports easyjson.Marshaler interface
  316. func (v EventNodesConnected) MarshalEasyJSON(w *jwriter.Writer) {
  317. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio3(w, v)
  318. }
  319. // UnmarshalJSON supports json.Unmarshaler interface
  320. func (v *EventNodesConnected) UnmarshalJSON(data []byte) error {
  321. r := jlexer.Lexer{Data: data}
  322. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio3(&r, v)
  323. return r.Error()
  324. }
  325. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  326. func (v *EventNodesConnected) UnmarshalEasyJSON(l *jlexer.Lexer) {
  327. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio3(l, v)
  328. }
  329. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio4(in *jlexer.Lexer, out *EventNodeParamDisconnected) {
  330. isTopLevel := in.IsStart()
  331. if in.IsNull() {
  332. if isTopLevel {
  333. in.Consumed()
  334. }
  335. in.Skip()
  336. return
  337. }
  338. in.Delim('{')
  339. for !in.IsDelim('}') {
  340. key := in.UnsafeFieldName(false)
  341. in.WantColon()
  342. if in.IsNull() {
  343. in.Skip()
  344. in.WantComma()
  345. continue
  346. }
  347. switch key {
  348. case "contextId":
  349. out.ContextID = GraphObjectID(in.String())
  350. case "sourceId":
  351. out.SourceID = GraphObjectID(in.String())
  352. case "destinationId":
  353. out.DestinationID = GraphObjectID(in.String())
  354. case "sourceOutputIndex":
  355. out.SourceOutputIndex = float64(in.Float64())
  356. default:
  357. in.SkipRecursive()
  358. }
  359. in.WantComma()
  360. }
  361. in.Delim('}')
  362. if isTopLevel {
  363. in.Consumed()
  364. }
  365. }
  366. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio4(out *jwriter.Writer, in EventNodeParamDisconnected) {
  367. out.RawByte('{')
  368. first := true
  369. _ = first
  370. {
  371. const prefix string = ",\"contextId\":"
  372. out.RawString(prefix[1:])
  373. out.String(string(in.ContextID))
  374. }
  375. {
  376. const prefix string = ",\"sourceId\":"
  377. out.RawString(prefix)
  378. out.String(string(in.SourceID))
  379. }
  380. {
  381. const prefix string = ",\"destinationId\":"
  382. out.RawString(prefix)
  383. out.String(string(in.DestinationID))
  384. }
  385. if in.SourceOutputIndex != 0 {
  386. const prefix string = ",\"sourceOutputIndex\":"
  387. out.RawString(prefix)
  388. out.Float64(float64(in.SourceOutputIndex))
  389. }
  390. out.RawByte('}')
  391. }
  392. // MarshalJSON supports json.Marshaler interface
  393. func (v EventNodeParamDisconnected) MarshalJSON() ([]byte, error) {
  394. w := jwriter.Writer{}
  395. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio4(&w, v)
  396. return w.Buffer.BuildBytes(), w.Error
  397. }
  398. // MarshalEasyJSON supports easyjson.Marshaler interface
  399. func (v EventNodeParamDisconnected) MarshalEasyJSON(w *jwriter.Writer) {
  400. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio4(w, v)
  401. }
  402. // UnmarshalJSON supports json.Unmarshaler interface
  403. func (v *EventNodeParamDisconnected) UnmarshalJSON(data []byte) error {
  404. r := jlexer.Lexer{Data: data}
  405. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio4(&r, v)
  406. return r.Error()
  407. }
  408. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  409. func (v *EventNodeParamDisconnected) UnmarshalEasyJSON(l *jlexer.Lexer) {
  410. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio4(l, v)
  411. }
  412. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio5(in *jlexer.Lexer, out *EventNodeParamConnected) {
  413. isTopLevel := in.IsStart()
  414. if in.IsNull() {
  415. if isTopLevel {
  416. in.Consumed()
  417. }
  418. in.Skip()
  419. return
  420. }
  421. in.Delim('{')
  422. for !in.IsDelim('}') {
  423. key := in.UnsafeFieldName(false)
  424. in.WantColon()
  425. if in.IsNull() {
  426. in.Skip()
  427. in.WantComma()
  428. continue
  429. }
  430. switch key {
  431. case "contextId":
  432. out.ContextID = GraphObjectID(in.String())
  433. case "sourceId":
  434. out.SourceID = GraphObjectID(in.String())
  435. case "destinationId":
  436. out.DestinationID = GraphObjectID(in.String())
  437. case "sourceOutputIndex":
  438. out.SourceOutputIndex = float64(in.Float64())
  439. default:
  440. in.SkipRecursive()
  441. }
  442. in.WantComma()
  443. }
  444. in.Delim('}')
  445. if isTopLevel {
  446. in.Consumed()
  447. }
  448. }
  449. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio5(out *jwriter.Writer, in EventNodeParamConnected) {
  450. out.RawByte('{')
  451. first := true
  452. _ = first
  453. {
  454. const prefix string = ",\"contextId\":"
  455. out.RawString(prefix[1:])
  456. out.String(string(in.ContextID))
  457. }
  458. {
  459. const prefix string = ",\"sourceId\":"
  460. out.RawString(prefix)
  461. out.String(string(in.SourceID))
  462. }
  463. {
  464. const prefix string = ",\"destinationId\":"
  465. out.RawString(prefix)
  466. out.String(string(in.DestinationID))
  467. }
  468. if in.SourceOutputIndex != 0 {
  469. const prefix string = ",\"sourceOutputIndex\":"
  470. out.RawString(prefix)
  471. out.Float64(float64(in.SourceOutputIndex))
  472. }
  473. out.RawByte('}')
  474. }
  475. // MarshalJSON supports json.Marshaler interface
  476. func (v EventNodeParamConnected) MarshalJSON() ([]byte, error) {
  477. w := jwriter.Writer{}
  478. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio5(&w, v)
  479. return w.Buffer.BuildBytes(), w.Error
  480. }
  481. // MarshalEasyJSON supports easyjson.Marshaler interface
  482. func (v EventNodeParamConnected) MarshalEasyJSON(w *jwriter.Writer) {
  483. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio5(w, v)
  484. }
  485. // UnmarshalJSON supports json.Unmarshaler interface
  486. func (v *EventNodeParamConnected) UnmarshalJSON(data []byte) error {
  487. r := jlexer.Lexer{Data: data}
  488. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio5(&r, v)
  489. return r.Error()
  490. }
  491. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  492. func (v *EventNodeParamConnected) UnmarshalEasyJSON(l *jlexer.Lexer) {
  493. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio5(l, v)
  494. }
  495. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio6(in *jlexer.Lexer, out *EventContextWillBeDestroyed) {
  496. isTopLevel := in.IsStart()
  497. if in.IsNull() {
  498. if isTopLevel {
  499. in.Consumed()
  500. }
  501. in.Skip()
  502. return
  503. }
  504. in.Delim('{')
  505. for !in.IsDelim('}') {
  506. key := in.UnsafeFieldName(false)
  507. in.WantColon()
  508. if in.IsNull() {
  509. in.Skip()
  510. in.WantComma()
  511. continue
  512. }
  513. switch key {
  514. case "contextId":
  515. out.ContextID = GraphObjectID(in.String())
  516. default:
  517. in.SkipRecursive()
  518. }
  519. in.WantComma()
  520. }
  521. in.Delim('}')
  522. if isTopLevel {
  523. in.Consumed()
  524. }
  525. }
  526. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio6(out *jwriter.Writer, in EventContextWillBeDestroyed) {
  527. out.RawByte('{')
  528. first := true
  529. _ = first
  530. {
  531. const prefix string = ",\"contextId\":"
  532. out.RawString(prefix[1:])
  533. out.String(string(in.ContextID))
  534. }
  535. out.RawByte('}')
  536. }
  537. // MarshalJSON supports json.Marshaler interface
  538. func (v EventContextWillBeDestroyed) MarshalJSON() ([]byte, error) {
  539. w := jwriter.Writer{}
  540. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio6(&w, v)
  541. return w.Buffer.BuildBytes(), w.Error
  542. }
  543. // MarshalEasyJSON supports easyjson.Marshaler interface
  544. func (v EventContextWillBeDestroyed) MarshalEasyJSON(w *jwriter.Writer) {
  545. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio6(w, v)
  546. }
  547. // UnmarshalJSON supports json.Unmarshaler interface
  548. func (v *EventContextWillBeDestroyed) UnmarshalJSON(data []byte) error {
  549. r := jlexer.Lexer{Data: data}
  550. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio6(&r, v)
  551. return r.Error()
  552. }
  553. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  554. func (v *EventContextWillBeDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  555. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio6(l, v)
  556. }
  557. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio7(in *jlexer.Lexer, out *EventContextCreated) {
  558. isTopLevel := in.IsStart()
  559. if in.IsNull() {
  560. if isTopLevel {
  561. in.Consumed()
  562. }
  563. in.Skip()
  564. return
  565. }
  566. in.Delim('{')
  567. for !in.IsDelim('}') {
  568. key := in.UnsafeFieldName(false)
  569. in.WantColon()
  570. if in.IsNull() {
  571. in.Skip()
  572. in.WantComma()
  573. continue
  574. }
  575. switch key {
  576. case "context":
  577. if in.IsNull() {
  578. in.Skip()
  579. out.Context = nil
  580. } else {
  581. if out.Context == nil {
  582. out.Context = new(BaseAudioContext)
  583. }
  584. (*out.Context).UnmarshalEasyJSON(in)
  585. }
  586. default:
  587. in.SkipRecursive()
  588. }
  589. in.WantComma()
  590. }
  591. in.Delim('}')
  592. if isTopLevel {
  593. in.Consumed()
  594. }
  595. }
  596. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio7(out *jwriter.Writer, in EventContextCreated) {
  597. out.RawByte('{')
  598. first := true
  599. _ = first
  600. {
  601. const prefix string = ",\"context\":"
  602. out.RawString(prefix[1:])
  603. if in.Context == nil {
  604. out.RawString("null")
  605. } else {
  606. (*in.Context).MarshalEasyJSON(out)
  607. }
  608. }
  609. out.RawByte('}')
  610. }
  611. // MarshalJSON supports json.Marshaler interface
  612. func (v EventContextCreated) MarshalJSON() ([]byte, error) {
  613. w := jwriter.Writer{}
  614. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio7(&w, v)
  615. return w.Buffer.BuildBytes(), w.Error
  616. }
  617. // MarshalEasyJSON supports easyjson.Marshaler interface
  618. func (v EventContextCreated) MarshalEasyJSON(w *jwriter.Writer) {
  619. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio7(w, v)
  620. }
  621. // UnmarshalJSON supports json.Unmarshaler interface
  622. func (v *EventContextCreated) UnmarshalJSON(data []byte) error {
  623. r := jlexer.Lexer{Data: data}
  624. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio7(&r, v)
  625. return r.Error()
  626. }
  627. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  628. func (v *EventContextCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  629. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio7(l, v)
  630. }
  631. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio8(in *jlexer.Lexer, out *EventContextChanged) {
  632. isTopLevel := in.IsStart()
  633. if in.IsNull() {
  634. if isTopLevel {
  635. in.Consumed()
  636. }
  637. in.Skip()
  638. return
  639. }
  640. in.Delim('{')
  641. for !in.IsDelim('}') {
  642. key := in.UnsafeFieldName(false)
  643. in.WantColon()
  644. if in.IsNull() {
  645. in.Skip()
  646. in.WantComma()
  647. continue
  648. }
  649. switch key {
  650. case "context":
  651. if in.IsNull() {
  652. in.Skip()
  653. out.Context = nil
  654. } else {
  655. if out.Context == nil {
  656. out.Context = new(BaseAudioContext)
  657. }
  658. (*out.Context).UnmarshalEasyJSON(in)
  659. }
  660. default:
  661. in.SkipRecursive()
  662. }
  663. in.WantComma()
  664. }
  665. in.Delim('}')
  666. if isTopLevel {
  667. in.Consumed()
  668. }
  669. }
  670. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio8(out *jwriter.Writer, in EventContextChanged) {
  671. out.RawByte('{')
  672. first := true
  673. _ = first
  674. {
  675. const prefix string = ",\"context\":"
  676. out.RawString(prefix[1:])
  677. if in.Context == nil {
  678. out.RawString("null")
  679. } else {
  680. (*in.Context).MarshalEasyJSON(out)
  681. }
  682. }
  683. out.RawByte('}')
  684. }
  685. // MarshalJSON supports json.Marshaler interface
  686. func (v EventContextChanged) MarshalJSON() ([]byte, error) {
  687. w := jwriter.Writer{}
  688. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio8(&w, v)
  689. return w.Buffer.BuildBytes(), w.Error
  690. }
  691. // MarshalEasyJSON supports easyjson.Marshaler interface
  692. func (v EventContextChanged) MarshalEasyJSON(w *jwriter.Writer) {
  693. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio8(w, v)
  694. }
  695. // UnmarshalJSON supports json.Unmarshaler interface
  696. func (v *EventContextChanged) UnmarshalJSON(data []byte) error {
  697. r := jlexer.Lexer{Data: data}
  698. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio8(&r, v)
  699. return r.Error()
  700. }
  701. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  702. func (v *EventContextChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
  703. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio8(l, v)
  704. }
  705. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio9(in *jlexer.Lexer, out *EventAudioParamWillBeDestroyed) {
  706. isTopLevel := in.IsStart()
  707. if in.IsNull() {
  708. if isTopLevel {
  709. in.Consumed()
  710. }
  711. in.Skip()
  712. return
  713. }
  714. in.Delim('{')
  715. for !in.IsDelim('}') {
  716. key := in.UnsafeFieldName(false)
  717. in.WantColon()
  718. if in.IsNull() {
  719. in.Skip()
  720. in.WantComma()
  721. continue
  722. }
  723. switch key {
  724. case "contextId":
  725. out.ContextID = GraphObjectID(in.String())
  726. case "nodeId":
  727. out.NodeID = GraphObjectID(in.String())
  728. case "paramId":
  729. out.ParamID = GraphObjectID(in.String())
  730. default:
  731. in.SkipRecursive()
  732. }
  733. in.WantComma()
  734. }
  735. in.Delim('}')
  736. if isTopLevel {
  737. in.Consumed()
  738. }
  739. }
  740. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio9(out *jwriter.Writer, in EventAudioParamWillBeDestroyed) {
  741. out.RawByte('{')
  742. first := true
  743. _ = first
  744. {
  745. const prefix string = ",\"contextId\":"
  746. out.RawString(prefix[1:])
  747. out.String(string(in.ContextID))
  748. }
  749. {
  750. const prefix string = ",\"nodeId\":"
  751. out.RawString(prefix)
  752. out.String(string(in.NodeID))
  753. }
  754. {
  755. const prefix string = ",\"paramId\":"
  756. out.RawString(prefix)
  757. out.String(string(in.ParamID))
  758. }
  759. out.RawByte('}')
  760. }
  761. // MarshalJSON supports json.Marshaler interface
  762. func (v EventAudioParamWillBeDestroyed) MarshalJSON() ([]byte, error) {
  763. w := jwriter.Writer{}
  764. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio9(&w, v)
  765. return w.Buffer.BuildBytes(), w.Error
  766. }
  767. // MarshalEasyJSON supports easyjson.Marshaler interface
  768. func (v EventAudioParamWillBeDestroyed) MarshalEasyJSON(w *jwriter.Writer) {
  769. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio9(w, v)
  770. }
  771. // UnmarshalJSON supports json.Unmarshaler interface
  772. func (v *EventAudioParamWillBeDestroyed) UnmarshalJSON(data []byte) error {
  773. r := jlexer.Lexer{Data: data}
  774. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio9(&r, v)
  775. return r.Error()
  776. }
  777. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  778. func (v *EventAudioParamWillBeDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  779. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio9(l, v)
  780. }
  781. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio10(in *jlexer.Lexer, out *EventAudioParamCreated) {
  782. isTopLevel := in.IsStart()
  783. if in.IsNull() {
  784. if isTopLevel {
  785. in.Consumed()
  786. }
  787. in.Skip()
  788. return
  789. }
  790. in.Delim('{')
  791. for !in.IsDelim('}') {
  792. key := in.UnsafeFieldName(false)
  793. in.WantColon()
  794. if in.IsNull() {
  795. in.Skip()
  796. in.WantComma()
  797. continue
  798. }
  799. switch key {
  800. case "param":
  801. if in.IsNull() {
  802. in.Skip()
  803. out.Param = nil
  804. } else {
  805. if out.Param == nil {
  806. out.Param = new(AudioParam)
  807. }
  808. (*out.Param).UnmarshalEasyJSON(in)
  809. }
  810. default:
  811. in.SkipRecursive()
  812. }
  813. in.WantComma()
  814. }
  815. in.Delim('}')
  816. if isTopLevel {
  817. in.Consumed()
  818. }
  819. }
  820. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio10(out *jwriter.Writer, in EventAudioParamCreated) {
  821. out.RawByte('{')
  822. first := true
  823. _ = first
  824. {
  825. const prefix string = ",\"param\":"
  826. out.RawString(prefix[1:])
  827. if in.Param == nil {
  828. out.RawString("null")
  829. } else {
  830. (*in.Param).MarshalEasyJSON(out)
  831. }
  832. }
  833. out.RawByte('}')
  834. }
  835. // MarshalJSON supports json.Marshaler interface
  836. func (v EventAudioParamCreated) MarshalJSON() ([]byte, error) {
  837. w := jwriter.Writer{}
  838. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio10(&w, v)
  839. return w.Buffer.BuildBytes(), w.Error
  840. }
  841. // MarshalEasyJSON supports easyjson.Marshaler interface
  842. func (v EventAudioParamCreated) MarshalEasyJSON(w *jwriter.Writer) {
  843. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio10(w, v)
  844. }
  845. // UnmarshalJSON supports json.Unmarshaler interface
  846. func (v *EventAudioParamCreated) UnmarshalJSON(data []byte) error {
  847. r := jlexer.Lexer{Data: data}
  848. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio10(&r, v)
  849. return r.Error()
  850. }
  851. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  852. func (v *EventAudioParamCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  853. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio10(l, v)
  854. }
  855. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio11(in *jlexer.Lexer, out *EventAudioNodeWillBeDestroyed) {
  856. isTopLevel := in.IsStart()
  857. if in.IsNull() {
  858. if isTopLevel {
  859. in.Consumed()
  860. }
  861. in.Skip()
  862. return
  863. }
  864. in.Delim('{')
  865. for !in.IsDelim('}') {
  866. key := in.UnsafeFieldName(false)
  867. in.WantColon()
  868. if in.IsNull() {
  869. in.Skip()
  870. in.WantComma()
  871. continue
  872. }
  873. switch key {
  874. case "contextId":
  875. out.ContextID = GraphObjectID(in.String())
  876. case "nodeId":
  877. out.NodeID = GraphObjectID(in.String())
  878. default:
  879. in.SkipRecursive()
  880. }
  881. in.WantComma()
  882. }
  883. in.Delim('}')
  884. if isTopLevel {
  885. in.Consumed()
  886. }
  887. }
  888. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio11(out *jwriter.Writer, in EventAudioNodeWillBeDestroyed) {
  889. out.RawByte('{')
  890. first := true
  891. _ = first
  892. {
  893. const prefix string = ",\"contextId\":"
  894. out.RawString(prefix[1:])
  895. out.String(string(in.ContextID))
  896. }
  897. {
  898. const prefix string = ",\"nodeId\":"
  899. out.RawString(prefix)
  900. out.String(string(in.NodeID))
  901. }
  902. out.RawByte('}')
  903. }
  904. // MarshalJSON supports json.Marshaler interface
  905. func (v EventAudioNodeWillBeDestroyed) MarshalJSON() ([]byte, error) {
  906. w := jwriter.Writer{}
  907. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio11(&w, v)
  908. return w.Buffer.BuildBytes(), w.Error
  909. }
  910. // MarshalEasyJSON supports easyjson.Marshaler interface
  911. func (v EventAudioNodeWillBeDestroyed) MarshalEasyJSON(w *jwriter.Writer) {
  912. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio11(w, v)
  913. }
  914. // UnmarshalJSON supports json.Unmarshaler interface
  915. func (v *EventAudioNodeWillBeDestroyed) UnmarshalJSON(data []byte) error {
  916. r := jlexer.Lexer{Data: data}
  917. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio11(&r, v)
  918. return r.Error()
  919. }
  920. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  921. func (v *EventAudioNodeWillBeDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  922. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio11(l, v)
  923. }
  924. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio12(in *jlexer.Lexer, out *EventAudioNodeCreated) {
  925. isTopLevel := in.IsStart()
  926. if in.IsNull() {
  927. if isTopLevel {
  928. in.Consumed()
  929. }
  930. in.Skip()
  931. return
  932. }
  933. in.Delim('{')
  934. for !in.IsDelim('}') {
  935. key := in.UnsafeFieldName(false)
  936. in.WantColon()
  937. if in.IsNull() {
  938. in.Skip()
  939. in.WantComma()
  940. continue
  941. }
  942. switch key {
  943. case "node":
  944. if in.IsNull() {
  945. in.Skip()
  946. out.Node = nil
  947. } else {
  948. if out.Node == nil {
  949. out.Node = new(AudioNode)
  950. }
  951. (*out.Node).UnmarshalEasyJSON(in)
  952. }
  953. default:
  954. in.SkipRecursive()
  955. }
  956. in.WantComma()
  957. }
  958. in.Delim('}')
  959. if isTopLevel {
  960. in.Consumed()
  961. }
  962. }
  963. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio12(out *jwriter.Writer, in EventAudioNodeCreated) {
  964. out.RawByte('{')
  965. first := true
  966. _ = first
  967. {
  968. const prefix string = ",\"node\":"
  969. out.RawString(prefix[1:])
  970. if in.Node == nil {
  971. out.RawString("null")
  972. } else {
  973. (*in.Node).MarshalEasyJSON(out)
  974. }
  975. }
  976. out.RawByte('}')
  977. }
  978. // MarshalJSON supports json.Marshaler interface
  979. func (v EventAudioNodeCreated) MarshalJSON() ([]byte, error) {
  980. w := jwriter.Writer{}
  981. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio12(&w, v)
  982. return w.Buffer.BuildBytes(), w.Error
  983. }
  984. // MarshalEasyJSON supports easyjson.Marshaler interface
  985. func (v EventAudioNodeCreated) MarshalEasyJSON(w *jwriter.Writer) {
  986. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio12(w, v)
  987. }
  988. // UnmarshalJSON supports json.Unmarshaler interface
  989. func (v *EventAudioNodeCreated) UnmarshalJSON(data []byte) error {
  990. r := jlexer.Lexer{Data: data}
  991. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio12(&r, v)
  992. return r.Error()
  993. }
  994. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  995. func (v *EventAudioNodeCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  996. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio12(l, v)
  997. }
  998. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio13(in *jlexer.Lexer, out *EventAudioListenerWillBeDestroyed) {
  999. isTopLevel := in.IsStart()
  1000. if in.IsNull() {
  1001. if isTopLevel {
  1002. in.Consumed()
  1003. }
  1004. in.Skip()
  1005. return
  1006. }
  1007. in.Delim('{')
  1008. for !in.IsDelim('}') {
  1009. key := in.UnsafeFieldName(false)
  1010. in.WantColon()
  1011. if in.IsNull() {
  1012. in.Skip()
  1013. in.WantComma()
  1014. continue
  1015. }
  1016. switch key {
  1017. case "contextId":
  1018. out.ContextID = GraphObjectID(in.String())
  1019. case "listenerId":
  1020. out.ListenerID = GraphObjectID(in.String())
  1021. default:
  1022. in.SkipRecursive()
  1023. }
  1024. in.WantComma()
  1025. }
  1026. in.Delim('}')
  1027. if isTopLevel {
  1028. in.Consumed()
  1029. }
  1030. }
  1031. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio13(out *jwriter.Writer, in EventAudioListenerWillBeDestroyed) {
  1032. out.RawByte('{')
  1033. first := true
  1034. _ = first
  1035. {
  1036. const prefix string = ",\"contextId\":"
  1037. out.RawString(prefix[1:])
  1038. out.String(string(in.ContextID))
  1039. }
  1040. {
  1041. const prefix string = ",\"listenerId\":"
  1042. out.RawString(prefix)
  1043. out.String(string(in.ListenerID))
  1044. }
  1045. out.RawByte('}')
  1046. }
  1047. // MarshalJSON supports json.Marshaler interface
  1048. func (v EventAudioListenerWillBeDestroyed) MarshalJSON() ([]byte, error) {
  1049. w := jwriter.Writer{}
  1050. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio13(&w, v)
  1051. return w.Buffer.BuildBytes(), w.Error
  1052. }
  1053. // MarshalEasyJSON supports easyjson.Marshaler interface
  1054. func (v EventAudioListenerWillBeDestroyed) MarshalEasyJSON(w *jwriter.Writer) {
  1055. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio13(w, v)
  1056. }
  1057. // UnmarshalJSON supports json.Unmarshaler interface
  1058. func (v *EventAudioListenerWillBeDestroyed) UnmarshalJSON(data []byte) error {
  1059. r := jlexer.Lexer{Data: data}
  1060. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio13(&r, v)
  1061. return r.Error()
  1062. }
  1063. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1064. func (v *EventAudioListenerWillBeDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1065. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio13(l, v)
  1066. }
  1067. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio14(in *jlexer.Lexer, out *EventAudioListenerCreated) {
  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 "listener":
  1087. if in.IsNull() {
  1088. in.Skip()
  1089. out.Listener = nil
  1090. } else {
  1091. if out.Listener == nil {
  1092. out.Listener = new(AudioListener)
  1093. }
  1094. (*out.Listener).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 easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio14(out *jwriter.Writer, in EventAudioListenerCreated) {
  1107. out.RawByte('{')
  1108. first := true
  1109. _ = first
  1110. {
  1111. const prefix string = ",\"listener\":"
  1112. out.RawString(prefix[1:])
  1113. if in.Listener == nil {
  1114. out.RawString("null")
  1115. } else {
  1116. (*in.Listener).MarshalEasyJSON(out)
  1117. }
  1118. }
  1119. out.RawByte('}')
  1120. }
  1121. // MarshalJSON supports json.Marshaler interface
  1122. func (v EventAudioListenerCreated) MarshalJSON() ([]byte, error) {
  1123. w := jwriter.Writer{}
  1124. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio14(&w, v)
  1125. return w.Buffer.BuildBytes(), w.Error
  1126. }
  1127. // MarshalEasyJSON supports easyjson.Marshaler interface
  1128. func (v EventAudioListenerCreated) MarshalEasyJSON(w *jwriter.Writer) {
  1129. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio14(w, v)
  1130. }
  1131. // UnmarshalJSON supports json.Unmarshaler interface
  1132. func (v *EventAudioListenerCreated) UnmarshalJSON(data []byte) error {
  1133. r := jlexer.Lexer{Data: data}
  1134. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio14(&r, v)
  1135. return r.Error()
  1136. }
  1137. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1138. func (v *EventAudioListenerCreated) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1139. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio14(l, v)
  1140. }
  1141. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio15(in *jlexer.Lexer, out *EnableParams) {
  1142. isTopLevel := in.IsStart()
  1143. if in.IsNull() {
  1144. if isTopLevel {
  1145. in.Consumed()
  1146. }
  1147. in.Skip()
  1148. return
  1149. }
  1150. in.Delim('{')
  1151. for !in.IsDelim('}') {
  1152. key := in.UnsafeFieldName(false)
  1153. in.WantColon()
  1154. if in.IsNull() {
  1155. in.Skip()
  1156. in.WantComma()
  1157. continue
  1158. }
  1159. switch key {
  1160. default:
  1161. in.SkipRecursive()
  1162. }
  1163. in.WantComma()
  1164. }
  1165. in.Delim('}')
  1166. if isTopLevel {
  1167. in.Consumed()
  1168. }
  1169. }
  1170. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio15(out *jwriter.Writer, in EnableParams) {
  1171. out.RawByte('{')
  1172. first := true
  1173. _ = first
  1174. out.RawByte('}')
  1175. }
  1176. // MarshalJSON supports json.Marshaler interface
  1177. func (v EnableParams) MarshalJSON() ([]byte, error) {
  1178. w := jwriter.Writer{}
  1179. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio15(&w, v)
  1180. return w.Buffer.BuildBytes(), w.Error
  1181. }
  1182. // MarshalEasyJSON supports easyjson.Marshaler interface
  1183. func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
  1184. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio15(w, v)
  1185. }
  1186. // UnmarshalJSON supports json.Unmarshaler interface
  1187. func (v *EnableParams) UnmarshalJSON(data []byte) error {
  1188. r := jlexer.Lexer{Data: data}
  1189. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio15(&r, v)
  1190. return r.Error()
  1191. }
  1192. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1193. func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1194. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio15(l, v)
  1195. }
  1196. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio16(in *jlexer.Lexer, out *DisableParams) {
  1197. isTopLevel := in.IsStart()
  1198. if in.IsNull() {
  1199. if isTopLevel {
  1200. in.Consumed()
  1201. }
  1202. in.Skip()
  1203. return
  1204. }
  1205. in.Delim('{')
  1206. for !in.IsDelim('}') {
  1207. key := in.UnsafeFieldName(false)
  1208. in.WantColon()
  1209. if in.IsNull() {
  1210. in.Skip()
  1211. in.WantComma()
  1212. continue
  1213. }
  1214. switch key {
  1215. default:
  1216. in.SkipRecursive()
  1217. }
  1218. in.WantComma()
  1219. }
  1220. in.Delim('}')
  1221. if isTopLevel {
  1222. in.Consumed()
  1223. }
  1224. }
  1225. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio16(out *jwriter.Writer, in DisableParams) {
  1226. out.RawByte('{')
  1227. first := true
  1228. _ = first
  1229. out.RawByte('}')
  1230. }
  1231. // MarshalJSON supports json.Marshaler interface
  1232. func (v DisableParams) MarshalJSON() ([]byte, error) {
  1233. w := jwriter.Writer{}
  1234. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio16(&w, v)
  1235. return w.Buffer.BuildBytes(), w.Error
  1236. }
  1237. // MarshalEasyJSON supports easyjson.Marshaler interface
  1238. func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
  1239. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio16(w, v)
  1240. }
  1241. // UnmarshalJSON supports json.Unmarshaler interface
  1242. func (v *DisableParams) UnmarshalJSON(data []byte) error {
  1243. r := jlexer.Lexer{Data: data}
  1244. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio16(&r, v)
  1245. return r.Error()
  1246. }
  1247. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1248. func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1249. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio16(l, v)
  1250. }
  1251. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio17(in *jlexer.Lexer, out *ContextRealtimeData) {
  1252. isTopLevel := in.IsStart()
  1253. if in.IsNull() {
  1254. if isTopLevel {
  1255. in.Consumed()
  1256. }
  1257. in.Skip()
  1258. return
  1259. }
  1260. in.Delim('{')
  1261. for !in.IsDelim('}') {
  1262. key := in.UnsafeFieldName(false)
  1263. in.WantColon()
  1264. if in.IsNull() {
  1265. in.Skip()
  1266. in.WantComma()
  1267. continue
  1268. }
  1269. switch key {
  1270. case "currentTime":
  1271. out.CurrentTime = float64(in.Float64())
  1272. case "renderCapacity":
  1273. out.RenderCapacity = float64(in.Float64())
  1274. case "callbackIntervalMean":
  1275. out.CallbackIntervalMean = float64(in.Float64())
  1276. case "callbackIntervalVariance":
  1277. out.CallbackIntervalVariance = float64(in.Float64())
  1278. default:
  1279. in.SkipRecursive()
  1280. }
  1281. in.WantComma()
  1282. }
  1283. in.Delim('}')
  1284. if isTopLevel {
  1285. in.Consumed()
  1286. }
  1287. }
  1288. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio17(out *jwriter.Writer, in ContextRealtimeData) {
  1289. out.RawByte('{')
  1290. first := true
  1291. _ = first
  1292. {
  1293. const prefix string = ",\"currentTime\":"
  1294. out.RawString(prefix[1:])
  1295. out.Float64(float64(in.CurrentTime))
  1296. }
  1297. {
  1298. const prefix string = ",\"renderCapacity\":"
  1299. out.RawString(prefix)
  1300. out.Float64(float64(in.RenderCapacity))
  1301. }
  1302. {
  1303. const prefix string = ",\"callbackIntervalMean\":"
  1304. out.RawString(prefix)
  1305. out.Float64(float64(in.CallbackIntervalMean))
  1306. }
  1307. {
  1308. const prefix string = ",\"callbackIntervalVariance\":"
  1309. out.RawString(prefix)
  1310. out.Float64(float64(in.CallbackIntervalVariance))
  1311. }
  1312. out.RawByte('}')
  1313. }
  1314. // MarshalJSON supports json.Marshaler interface
  1315. func (v ContextRealtimeData) MarshalJSON() ([]byte, error) {
  1316. w := jwriter.Writer{}
  1317. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio17(&w, v)
  1318. return w.Buffer.BuildBytes(), w.Error
  1319. }
  1320. // MarshalEasyJSON supports easyjson.Marshaler interface
  1321. func (v ContextRealtimeData) MarshalEasyJSON(w *jwriter.Writer) {
  1322. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio17(w, v)
  1323. }
  1324. // UnmarshalJSON supports json.Unmarshaler interface
  1325. func (v *ContextRealtimeData) UnmarshalJSON(data []byte) error {
  1326. r := jlexer.Lexer{Data: data}
  1327. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio17(&r, v)
  1328. return r.Error()
  1329. }
  1330. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1331. func (v *ContextRealtimeData) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1332. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio17(l, v)
  1333. }
  1334. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio18(in *jlexer.Lexer, out *BaseAudioContext) {
  1335. isTopLevel := in.IsStart()
  1336. if in.IsNull() {
  1337. if isTopLevel {
  1338. in.Consumed()
  1339. }
  1340. in.Skip()
  1341. return
  1342. }
  1343. in.Delim('{')
  1344. for !in.IsDelim('}') {
  1345. key := in.UnsafeFieldName(false)
  1346. in.WantColon()
  1347. if in.IsNull() {
  1348. in.Skip()
  1349. in.WantComma()
  1350. continue
  1351. }
  1352. switch key {
  1353. case "contextId":
  1354. out.ContextID = GraphObjectID(in.String())
  1355. case "contextType":
  1356. (out.ContextType).UnmarshalEasyJSON(in)
  1357. case "contextState":
  1358. (out.ContextState).UnmarshalEasyJSON(in)
  1359. case "realtimeData":
  1360. if in.IsNull() {
  1361. in.Skip()
  1362. out.RealtimeData = nil
  1363. } else {
  1364. if out.RealtimeData == nil {
  1365. out.RealtimeData = new(ContextRealtimeData)
  1366. }
  1367. (*out.RealtimeData).UnmarshalEasyJSON(in)
  1368. }
  1369. case "callbackBufferSize":
  1370. out.CallbackBufferSize = float64(in.Float64())
  1371. case "maxOutputChannelCount":
  1372. out.MaxOutputChannelCount = float64(in.Float64())
  1373. case "sampleRate":
  1374. out.SampleRate = float64(in.Float64())
  1375. default:
  1376. in.SkipRecursive()
  1377. }
  1378. in.WantComma()
  1379. }
  1380. in.Delim('}')
  1381. if isTopLevel {
  1382. in.Consumed()
  1383. }
  1384. }
  1385. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio18(out *jwriter.Writer, in BaseAudioContext) {
  1386. out.RawByte('{')
  1387. first := true
  1388. _ = first
  1389. {
  1390. const prefix string = ",\"contextId\":"
  1391. out.RawString(prefix[1:])
  1392. out.String(string(in.ContextID))
  1393. }
  1394. {
  1395. const prefix string = ",\"contextType\":"
  1396. out.RawString(prefix)
  1397. (in.ContextType).MarshalEasyJSON(out)
  1398. }
  1399. {
  1400. const prefix string = ",\"contextState\":"
  1401. out.RawString(prefix)
  1402. (in.ContextState).MarshalEasyJSON(out)
  1403. }
  1404. if in.RealtimeData != nil {
  1405. const prefix string = ",\"realtimeData\":"
  1406. out.RawString(prefix)
  1407. (*in.RealtimeData).MarshalEasyJSON(out)
  1408. }
  1409. {
  1410. const prefix string = ",\"callbackBufferSize\":"
  1411. out.RawString(prefix)
  1412. out.Float64(float64(in.CallbackBufferSize))
  1413. }
  1414. {
  1415. const prefix string = ",\"maxOutputChannelCount\":"
  1416. out.RawString(prefix)
  1417. out.Float64(float64(in.MaxOutputChannelCount))
  1418. }
  1419. {
  1420. const prefix string = ",\"sampleRate\":"
  1421. out.RawString(prefix)
  1422. out.Float64(float64(in.SampleRate))
  1423. }
  1424. out.RawByte('}')
  1425. }
  1426. // MarshalJSON supports json.Marshaler interface
  1427. func (v BaseAudioContext) MarshalJSON() ([]byte, error) {
  1428. w := jwriter.Writer{}
  1429. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio18(&w, v)
  1430. return w.Buffer.BuildBytes(), w.Error
  1431. }
  1432. // MarshalEasyJSON supports easyjson.Marshaler interface
  1433. func (v BaseAudioContext) MarshalEasyJSON(w *jwriter.Writer) {
  1434. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio18(w, v)
  1435. }
  1436. // UnmarshalJSON supports json.Unmarshaler interface
  1437. func (v *BaseAudioContext) UnmarshalJSON(data []byte) error {
  1438. r := jlexer.Lexer{Data: data}
  1439. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio18(&r, v)
  1440. return r.Error()
  1441. }
  1442. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1443. func (v *BaseAudioContext) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1444. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio18(l, v)
  1445. }
  1446. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio19(in *jlexer.Lexer, out *AudioParam) {
  1447. isTopLevel := in.IsStart()
  1448. if in.IsNull() {
  1449. if isTopLevel {
  1450. in.Consumed()
  1451. }
  1452. in.Skip()
  1453. return
  1454. }
  1455. in.Delim('{')
  1456. for !in.IsDelim('}') {
  1457. key := in.UnsafeFieldName(false)
  1458. in.WantColon()
  1459. if in.IsNull() {
  1460. in.Skip()
  1461. in.WantComma()
  1462. continue
  1463. }
  1464. switch key {
  1465. case "paramId":
  1466. out.ParamID = GraphObjectID(in.String())
  1467. case "nodeId":
  1468. out.NodeID = GraphObjectID(in.String())
  1469. case "contextId":
  1470. out.ContextID = GraphObjectID(in.String())
  1471. case "paramType":
  1472. out.ParamType = ParamType(in.String())
  1473. case "rate":
  1474. (out.Rate).UnmarshalEasyJSON(in)
  1475. case "defaultValue":
  1476. out.DefaultValue = float64(in.Float64())
  1477. case "minValue":
  1478. out.MinValue = float64(in.Float64())
  1479. case "maxValue":
  1480. out.MaxValue = float64(in.Float64())
  1481. default:
  1482. in.SkipRecursive()
  1483. }
  1484. in.WantComma()
  1485. }
  1486. in.Delim('}')
  1487. if isTopLevel {
  1488. in.Consumed()
  1489. }
  1490. }
  1491. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio19(out *jwriter.Writer, in AudioParam) {
  1492. out.RawByte('{')
  1493. first := true
  1494. _ = first
  1495. {
  1496. const prefix string = ",\"paramId\":"
  1497. out.RawString(prefix[1:])
  1498. out.String(string(in.ParamID))
  1499. }
  1500. {
  1501. const prefix string = ",\"nodeId\":"
  1502. out.RawString(prefix)
  1503. out.String(string(in.NodeID))
  1504. }
  1505. {
  1506. const prefix string = ",\"contextId\":"
  1507. out.RawString(prefix)
  1508. out.String(string(in.ContextID))
  1509. }
  1510. {
  1511. const prefix string = ",\"paramType\":"
  1512. out.RawString(prefix)
  1513. out.String(string(in.ParamType))
  1514. }
  1515. {
  1516. const prefix string = ",\"rate\":"
  1517. out.RawString(prefix)
  1518. (in.Rate).MarshalEasyJSON(out)
  1519. }
  1520. {
  1521. const prefix string = ",\"defaultValue\":"
  1522. out.RawString(prefix)
  1523. out.Float64(float64(in.DefaultValue))
  1524. }
  1525. {
  1526. const prefix string = ",\"minValue\":"
  1527. out.RawString(prefix)
  1528. out.Float64(float64(in.MinValue))
  1529. }
  1530. {
  1531. const prefix string = ",\"maxValue\":"
  1532. out.RawString(prefix)
  1533. out.Float64(float64(in.MaxValue))
  1534. }
  1535. out.RawByte('}')
  1536. }
  1537. // MarshalJSON supports json.Marshaler interface
  1538. func (v AudioParam) MarshalJSON() ([]byte, error) {
  1539. w := jwriter.Writer{}
  1540. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio19(&w, v)
  1541. return w.Buffer.BuildBytes(), w.Error
  1542. }
  1543. // MarshalEasyJSON supports easyjson.Marshaler interface
  1544. func (v AudioParam) MarshalEasyJSON(w *jwriter.Writer) {
  1545. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio19(w, v)
  1546. }
  1547. // UnmarshalJSON supports json.Unmarshaler interface
  1548. func (v *AudioParam) UnmarshalJSON(data []byte) error {
  1549. r := jlexer.Lexer{Data: data}
  1550. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio19(&r, v)
  1551. return r.Error()
  1552. }
  1553. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1554. func (v *AudioParam) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1555. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio19(l, v)
  1556. }
  1557. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio20(in *jlexer.Lexer, out *AudioNode) {
  1558. isTopLevel := in.IsStart()
  1559. if in.IsNull() {
  1560. if isTopLevel {
  1561. in.Consumed()
  1562. }
  1563. in.Skip()
  1564. return
  1565. }
  1566. in.Delim('{')
  1567. for !in.IsDelim('}') {
  1568. key := in.UnsafeFieldName(false)
  1569. in.WantColon()
  1570. if in.IsNull() {
  1571. in.Skip()
  1572. in.WantComma()
  1573. continue
  1574. }
  1575. switch key {
  1576. case "nodeId":
  1577. out.NodeID = GraphObjectID(in.String())
  1578. case "contextId":
  1579. out.ContextID = GraphObjectID(in.String())
  1580. case "nodeType":
  1581. (out.NodeType).UnmarshalEasyJSON(in)
  1582. case "numberOfInputs":
  1583. out.NumberOfInputs = float64(in.Float64())
  1584. case "numberOfOutputs":
  1585. out.NumberOfOutputs = float64(in.Float64())
  1586. case "channelCount":
  1587. out.ChannelCount = float64(in.Float64())
  1588. case "channelCountMode":
  1589. (out.ChannelCountMode).UnmarshalEasyJSON(in)
  1590. case "channelInterpretation":
  1591. (out.ChannelInterpretation).UnmarshalEasyJSON(in)
  1592. default:
  1593. in.SkipRecursive()
  1594. }
  1595. in.WantComma()
  1596. }
  1597. in.Delim('}')
  1598. if isTopLevel {
  1599. in.Consumed()
  1600. }
  1601. }
  1602. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio20(out *jwriter.Writer, in AudioNode) {
  1603. out.RawByte('{')
  1604. first := true
  1605. _ = first
  1606. {
  1607. const prefix string = ",\"nodeId\":"
  1608. out.RawString(prefix[1:])
  1609. out.String(string(in.NodeID))
  1610. }
  1611. {
  1612. const prefix string = ",\"contextId\":"
  1613. out.RawString(prefix)
  1614. out.String(string(in.ContextID))
  1615. }
  1616. {
  1617. const prefix string = ",\"nodeType\":"
  1618. out.RawString(prefix)
  1619. (in.NodeType).MarshalEasyJSON(out)
  1620. }
  1621. {
  1622. const prefix string = ",\"numberOfInputs\":"
  1623. out.RawString(prefix)
  1624. out.Float64(float64(in.NumberOfInputs))
  1625. }
  1626. {
  1627. const prefix string = ",\"numberOfOutputs\":"
  1628. out.RawString(prefix)
  1629. out.Float64(float64(in.NumberOfOutputs))
  1630. }
  1631. {
  1632. const prefix string = ",\"channelCount\":"
  1633. out.RawString(prefix)
  1634. out.Float64(float64(in.ChannelCount))
  1635. }
  1636. {
  1637. const prefix string = ",\"channelCountMode\":"
  1638. out.RawString(prefix)
  1639. (in.ChannelCountMode).MarshalEasyJSON(out)
  1640. }
  1641. {
  1642. const prefix string = ",\"channelInterpretation\":"
  1643. out.RawString(prefix)
  1644. (in.ChannelInterpretation).MarshalEasyJSON(out)
  1645. }
  1646. out.RawByte('}')
  1647. }
  1648. // MarshalJSON supports json.Marshaler interface
  1649. func (v AudioNode) MarshalJSON() ([]byte, error) {
  1650. w := jwriter.Writer{}
  1651. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio20(&w, v)
  1652. return w.Buffer.BuildBytes(), w.Error
  1653. }
  1654. // MarshalEasyJSON supports easyjson.Marshaler interface
  1655. func (v AudioNode) MarshalEasyJSON(w *jwriter.Writer) {
  1656. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio20(w, v)
  1657. }
  1658. // UnmarshalJSON supports json.Unmarshaler interface
  1659. func (v *AudioNode) UnmarshalJSON(data []byte) error {
  1660. r := jlexer.Lexer{Data: data}
  1661. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio20(&r, v)
  1662. return r.Error()
  1663. }
  1664. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1665. func (v *AudioNode) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1666. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio20(l, v)
  1667. }
  1668. func easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio21(in *jlexer.Lexer, out *AudioListener) {
  1669. isTopLevel := in.IsStart()
  1670. if in.IsNull() {
  1671. if isTopLevel {
  1672. in.Consumed()
  1673. }
  1674. in.Skip()
  1675. return
  1676. }
  1677. in.Delim('{')
  1678. for !in.IsDelim('}') {
  1679. key := in.UnsafeFieldName(false)
  1680. in.WantColon()
  1681. if in.IsNull() {
  1682. in.Skip()
  1683. in.WantComma()
  1684. continue
  1685. }
  1686. switch key {
  1687. case "listenerId":
  1688. out.ListenerID = GraphObjectID(in.String())
  1689. case "contextId":
  1690. out.ContextID = GraphObjectID(in.String())
  1691. default:
  1692. in.SkipRecursive()
  1693. }
  1694. in.WantComma()
  1695. }
  1696. in.Delim('}')
  1697. if isTopLevel {
  1698. in.Consumed()
  1699. }
  1700. }
  1701. func easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio21(out *jwriter.Writer, in AudioListener) {
  1702. out.RawByte('{')
  1703. first := true
  1704. _ = first
  1705. {
  1706. const prefix string = ",\"listenerId\":"
  1707. out.RawString(prefix[1:])
  1708. out.String(string(in.ListenerID))
  1709. }
  1710. {
  1711. const prefix string = ",\"contextId\":"
  1712. out.RawString(prefix)
  1713. out.String(string(in.ContextID))
  1714. }
  1715. out.RawByte('}')
  1716. }
  1717. // MarshalJSON supports json.Marshaler interface
  1718. func (v AudioListener) MarshalJSON() ([]byte, error) {
  1719. w := jwriter.Writer{}
  1720. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio21(&w, v)
  1721. return w.Buffer.BuildBytes(), w.Error
  1722. }
  1723. // MarshalEasyJSON supports easyjson.Marshaler interface
  1724. func (v AudioListener) MarshalEasyJSON(w *jwriter.Writer) {
  1725. easyjsonC5a4559bEncodeGithubComChromedpCdprotoWebaudio21(w, v)
  1726. }
  1727. // UnmarshalJSON supports json.Unmarshaler interface
  1728. func (v *AudioListener) UnmarshalJSON(data []byte) error {
  1729. r := jlexer.Lexer{Data: data}
  1730. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio21(&r, v)
  1731. return r.Error()
  1732. }
  1733. // UnmarshalEasyJSON supports easyjson.Unmarshaler interface
  1734. func (v *AudioListener) UnmarshalEasyJSON(l *jlexer.Lexer) {
  1735. easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio21(l, v)
  1736. }