Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/ipc/PIPCBlobInputStreamParent.h"
8 :
9 : #include "mozilla/ipc/PBackgroundParent.h"
10 : #include "mozilla/ipc/PChildToParentStreamParent.h"
11 : #include "mozilla/dom/PContentParent.h"
12 : #include "mozilla/dom/PContentBridgeParent.h"
13 : #include "mozilla/ipc/PFileDescriptorSetParent.h"
14 : #include "mozilla/ipc/PParentToChildStreamParent.h"
15 :
16 : #include "nsIFile.h"
17 : #include "GeckoProfiler.h"
18 :
19 : namespace mozilla {
20 : namespace ipc {
21 :
22 :
23 0 : auto PIPCBlobInputStreamParent::Recv__delete__() -> mozilla::ipc::IPCResult
24 : {
25 0 : return IPC_OK();
26 : }
27 :
28 :
29 0 : MOZ_IMPLICIT PIPCBlobInputStreamParent::PIPCBlobInputStreamParent() :
30 : mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
31 0 : mState(PIPCBlobInputStream::__Dead)
32 : {
33 0 : MOZ_COUNT_CTOR(PIPCBlobInputStreamParent);
34 0 : }
35 :
36 0 : PIPCBlobInputStreamParent::~PIPCBlobInputStreamParent()
37 : {
38 0 : MOZ_COUNT_DTOR(PIPCBlobInputStreamParent);
39 0 : }
40 :
41 0 : auto PIPCBlobInputStreamParent::SendStreamReady(const OptionalIPCStream& aStream) -> bool
42 : {
43 0 : IPC::Message* msg__ = PIPCBlobInputStream::Msg_StreamReady(Id());
44 :
45 0 : Write(aStream, msg__);
46 : // Sentinel = 'aStream'
47 0 : (msg__)->WriteSentinel(3415320318);
48 :
49 :
50 :
51 :
52 0 : if (mozilla::ipc::LoggingEnabledFor("PIPCBlobInputStreamParent")) {
53 0 : mozilla::ipc::LogMessageForProtocol("PIPCBlobInputStreamParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
54 : }
55 0 : AUTO_PROFILER_LABEL("PIPCBlobInputStream::Msg_StreamReady", OTHER);
56 0 : PIPCBlobInputStream::Transition(PIPCBlobInputStream::Msg_StreamReady__ID, (&(mState)));
57 :
58 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
59 0 : return sendok__;
60 : }
61 :
62 0 : auto PIPCBlobInputStreamParent::Send__delete__(PIPCBlobInputStreamParent* actor) -> bool
63 : {
64 0 : if ((!(actor))) {
65 0 : return false;
66 : }
67 :
68 0 : IPC::Message* msg__ = PIPCBlobInputStream::Msg___delete__((actor)->Id());
69 :
70 0 : (actor)->Write(actor, msg__, false);
71 : // Sentinel = 'actor'
72 0 : (msg__)->WriteSentinel(875202478);
73 :
74 :
75 :
76 0 : if (mozilla::ipc::LoggingEnabledFor("PIPCBlobInputStreamParent")) {
77 0 : mozilla::ipc::LogMessageForProtocol("PIPCBlobInputStreamParent", (actor)->OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
78 : }
79 0 : AUTO_PROFILER_LABEL("PIPCBlobInputStream::Msg___delete__", OTHER);
80 0 : PIPCBlobInputStream::Transition(PIPCBlobInputStream::Msg___delete____ID, (&((actor)->mState)));
81 :
82 0 : bool sendok__ = ((actor)->GetIPCChannel())->Send(msg__);
83 :
84 0 : IProtocol* mgr = (actor)->Manager();
85 0 : (actor)->DestroySubtree(Deletion);
86 0 : (actor)->DeallocSubtree();
87 0 : (mgr)->RemoveManagee(PIPCBlobInputStreamMsgStart, actor);
88 0 : return sendok__;
89 : }
90 :
91 0 : auto PIPCBlobInputStreamParent::RemoveManagee(
92 : int32_t aProtocolId,
93 : ProtocolBase* aListener) -> void
94 : {
95 0 : FatalError("unreached");
96 0 : return;
97 : }
98 :
99 0 : auto PIPCBlobInputStreamParent::OnMessageReceived(const Message& msg__) -> PIPCBlobInputStreamParent::Result
100 : {
101 0 : switch ((msg__).type()) {
102 : case PIPCBlobInputStream::Msg_StreamNeeded__ID:
103 : {
104 0 : if (mozilla::ipc::LoggingEnabledFor("PIPCBlobInputStreamParent")) {
105 0 : mozilla::ipc::LogMessageForProtocol("PIPCBlobInputStreamParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
106 : }
107 0 : AUTO_PROFILER_LABEL("PIPCBlobInputStream::Msg_StreamNeeded", OTHER);
108 :
109 0 : PIPCBlobInputStream::Transition(PIPCBlobInputStream::Msg_StreamNeeded__ID, (&(mState)));
110 0 : if ((!(RecvStreamNeeded()))) {
111 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
112 : // Error handled in mozilla::ipc::IPCResult
113 0 : return MsgProcessingError;
114 : }
115 :
116 0 : return MsgProcessed;
117 : }
118 : case PIPCBlobInputStream::Msg_Close__ID:
119 : {
120 0 : if (mozilla::ipc::LoggingEnabledFor("PIPCBlobInputStreamParent")) {
121 0 : mozilla::ipc::LogMessageForProtocol("PIPCBlobInputStreamParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
122 : }
123 0 : AUTO_PROFILER_LABEL("PIPCBlobInputStream::Msg_Close", OTHER);
124 :
125 0 : PIPCBlobInputStream::Transition(PIPCBlobInputStream::Msg_Close__ID, (&(mState)));
126 0 : if ((!(RecvClose()))) {
127 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
128 : // Error handled in mozilla::ipc::IPCResult
129 0 : return MsgProcessingError;
130 : }
131 :
132 0 : return MsgProcessed;
133 : }
134 : case PIPCBlobInputStream::Reply___delete____ID:
135 : {
136 0 : return MsgProcessed;
137 : }
138 : case PIPCBlobInputStream::Msg___delete____ID:
139 : {
140 0 : if (mozilla::ipc::LoggingEnabledFor("PIPCBlobInputStreamParent")) {
141 0 : mozilla::ipc::LogMessageForProtocol("PIPCBlobInputStreamParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
142 : }
143 0 : AUTO_PROFILER_LABEL("PIPCBlobInputStream::Msg___delete__", OTHER);
144 :
145 0 : PickleIterator iter__(msg__);
146 : PIPCBlobInputStreamParent* actor;
147 :
148 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
149 0 : FatalError("Error deserializing 'PIPCBlobInputStreamParent'");
150 0 : return MsgValueError;
151 : }
152 : // Sentinel = 'actor'
153 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
154 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PIPCBlobInputStreamParent'");
155 0 : return MsgValueError;
156 : }
157 0 : (msg__).EndRead(iter__, (msg__).type());
158 0 : PIPCBlobInputStream::Transition(PIPCBlobInputStream::Msg___delete____ID, (&(mState)));
159 0 : if ((!(Recv__delete__()))) {
160 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
161 : // Error handled in mozilla::ipc::IPCResult
162 0 : return MsgProcessingError;
163 : }
164 :
165 :
166 0 : IProtocol* mgr = (actor)->Manager();
167 0 : (actor)->DestroySubtree(Deletion);
168 0 : (actor)->DeallocSubtree();
169 0 : (mgr)->RemoveManagee(PIPCBlobInputStreamMsgStart, actor);
170 :
171 0 : return MsgProcessed;
172 : }
173 : default:
174 : {
175 0 : return MsgNotKnown;
176 : }
177 : }
178 : }
179 :
180 0 : auto PIPCBlobInputStreamParent::OnMessageReceived(
181 : const Message& msg__,
182 : Message*& reply__) -> PIPCBlobInputStreamParent::Result
183 : {
184 0 : return MsgNotKnown;
185 : }
186 :
187 0 : auto PIPCBlobInputStreamParent::OnCallReceived(
188 : const Message& msg__,
189 : Message*& reply__) -> PIPCBlobInputStreamParent::Result
190 : {
191 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
192 : return MsgNotKnown;
193 : }
194 :
195 0 : auto PIPCBlobInputStreamParent::GetProtocolTypeId() -> int32_t
196 : {
197 0 : return PIPCBlobInputStreamMsgStart;
198 : }
199 :
200 0 : auto PIPCBlobInputStreamParent::ProtocolName() const -> const char*
201 : {
202 0 : return "PIPCBlobInputStreamParent";
203 : }
204 :
205 0 : auto PIPCBlobInputStreamParent::DestroySubtree(ActorDestroyReason why) -> void
206 : {
207 : // Unregister from our manager.
208 0 : Unregister(Id());
209 :
210 : // Reject owning pending promises.
211 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
212 :
213 : // Finally, destroy "us".
214 0 : ActorDestroy(why);
215 0 : }
216 :
217 0 : auto PIPCBlobInputStreamParent::DeallocSubtree() -> void
218 : {
219 0 : }
220 :
221 0 : auto PIPCBlobInputStreamParent::Write(
222 : const nsTArray<InputStreamParams>& v__,
223 : Message* msg__) -> void
224 : {
225 0 : uint32_t length = (v__).Length();
226 0 : Write(length, msg__);
227 : // Sentinel = ('length', 'InputStreamParams[]')
228 0 : (msg__)->WriteSentinel(348334258);
229 :
230 0 : for (auto& elem : v__) {
231 0 : Write(elem, msg__);
232 : // Sentinel = 'InputStreamParams[]'
233 0 : (msg__)->WriteSentinel(2927715197);
234 : }
235 0 : }
236 :
237 0 : auto PIPCBlobInputStreamParent::Read(
238 : nsTArray<InputStreamParams>* v__,
239 : const Message* msg__,
240 : PickleIterator* iter__) -> bool
241 : {
242 0 : nsTArray<InputStreamParams> fa;
243 : uint32_t length;
244 0 : if ((!(Read((&(length)), msg__, iter__)))) {
245 0 : mozilla::ipc::ArrayLengthReadError("InputStreamParams[]");
246 0 : return false;
247 : }
248 : // Sentinel = ('length', 'InputStreamParams[]')
249 0 : if ((!((msg__)->ReadSentinel(iter__, 348334258)))) {
250 0 : mozilla::ipc::SentinelReadError("InputStreamParams[]");
251 0 : return false;
252 : }
253 :
254 0 : InputStreamParams* elems = (fa).AppendElements(length);
255 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
256 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
257 0 : FatalError("Error deserializing 'InputStreamParams[i]'");
258 0 : return false;
259 : }
260 : // Sentinel = 'InputStreamParams[]'
261 0 : if ((!((msg__)->ReadSentinel(iter__, 2927715197)))) {
262 0 : mozilla::ipc::SentinelReadError("Error deserializing 'InputStreamParams[i]'");
263 0 : return false;
264 : }
265 : }
266 0 : (v__)->SwapElements(fa);
267 0 : return true;
268 : }
269 :
270 0 : auto PIPCBlobInputStreamParent::Write(
271 : const OptionalInputStreamParams& v__,
272 : Message* msg__) -> void
273 : {
274 : typedef OptionalInputStreamParams type__;
275 0 : Write(int((v__).type()), msg__);
276 : // Sentinel = 'OptionalInputStreamParams'
277 0 : (msg__)->WriteSentinel(1355174443);
278 :
279 0 : switch ((v__).type()) {
280 : case type__::Tvoid_t:
281 : {
282 0 : Write((v__).get_void_t(), msg__);
283 : // Sentinel = 'Tvoid_t'
284 0 : (msg__)->WriteSentinel(3041273328);
285 0 : return;
286 : }
287 : case type__::TInputStreamParams:
288 : {
289 0 : Write((v__).get_InputStreamParams(), msg__);
290 : // Sentinel = 'TInputStreamParams'
291 0 : (msg__)->WriteSentinel(55652096);
292 0 : return;
293 : }
294 : default:
295 : {
296 0 : FatalError("unknown union type");
297 0 : return;
298 : }
299 : }
300 : }
301 :
302 0 : auto PIPCBlobInputStreamParent::Read(
303 : OptionalInputStreamParams* v__,
304 : const Message* msg__,
305 : PickleIterator* iter__) -> bool
306 : {
307 : typedef OptionalInputStreamParams type__;
308 : int type;
309 0 : if ((!(Read((&(type)), msg__, iter__)))) {
310 0 : mozilla::ipc::UnionTypeReadError("OptionalInputStreamParams");
311 0 : return false;
312 : }
313 : // Sentinel = 'OptionalInputStreamParams'
314 0 : if ((!((msg__)->ReadSentinel(iter__, 1355174443)))) {
315 0 : mozilla::ipc::SentinelReadError("OptionalInputStreamParams");
316 0 : return false;
317 : }
318 :
319 0 : switch (type) {
320 : case type__::Tvoid_t:
321 : {
322 : void_t tmp = void_t();
323 0 : (*(v__)) = tmp;
324 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
325 0 : FatalError("Error deserializing Union type");
326 0 : return false;
327 : }
328 : // Sentinel = 'Tvoid_t'
329 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
330 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
331 0 : return false;
332 : }
333 0 : return true;
334 : }
335 : case type__::TInputStreamParams:
336 : {
337 0 : InputStreamParams tmp = InputStreamParams();
338 0 : (*(v__)) = tmp;
339 0 : if ((!(Read((&((v__)->get_InputStreamParams())), msg__, iter__)))) {
340 0 : FatalError("Error deserializing Union type");
341 0 : return false;
342 : }
343 : // Sentinel = 'TInputStreamParams'
344 0 : if ((!((msg__)->ReadSentinel(iter__, 55652096)))) {
345 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
346 0 : return false;
347 : }
348 0 : return true;
349 : }
350 : default:
351 : {
352 0 : FatalError("unknown union type");
353 0 : return false;
354 : }
355 : }
356 : }
357 :
358 0 : auto PIPCBlobInputStreamParent::Write(
359 : const IPCRemoteStream& v__,
360 : Message* msg__) -> void
361 : {
362 0 : Write((v__).delayedStart(), msg__);
363 : // Sentinel = 'delayedStart'
364 0 : (msg__)->WriteSentinel(1491822294);
365 0 : Write((v__).stream(), msg__);
366 : // Sentinel = 'stream'
367 0 : (msg__)->WriteSentinel(4152748422);
368 0 : }
369 :
370 0 : auto PIPCBlobInputStreamParent::Read(
371 : IPCRemoteStream* v__,
372 : const Message* msg__,
373 : PickleIterator* iter__) -> bool
374 : {
375 0 : if ((!(Read((&((v__)->delayedStart())), msg__, iter__)))) {
376 0 : FatalError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
377 0 : return false;
378 : }
379 : // Sentinel = 'delayedStart'
380 0 : if ((!((msg__)->ReadSentinel(iter__, 1491822294)))) {
381 0 : mozilla::ipc::SentinelReadError("Error deserializing 'delayedStart' (bool) member of 'IPCRemoteStream'");
382 0 : return false;
383 : }
384 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
385 0 : FatalError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
386 0 : return false;
387 : }
388 : // Sentinel = 'stream'
389 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
390 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (IPCRemoteStreamType) member of 'IPCRemoteStream'");
391 0 : return false;
392 : }
393 0 : return true;
394 : }
395 :
396 0 : auto PIPCBlobInputStreamParent::Write(
397 : const FileInputStreamParams& v__,
398 : Message* msg__) -> void
399 : {
400 0 : Write((v__).fileDescriptorIndex(), msg__);
401 : // Sentinel = 'fileDescriptorIndex'
402 0 : (msg__)->WriteSentinel(587329112);
403 0 : Write((v__).behaviorFlags(), msg__);
404 : // Sentinel = 'behaviorFlags'
405 0 : (msg__)->WriteSentinel(2404401962);
406 0 : Write((v__).ioFlags(), msg__);
407 : // Sentinel = 'ioFlags'
408 0 : (msg__)->WriteSentinel(1483009730);
409 0 : }
410 :
411 0 : auto PIPCBlobInputStreamParent::Read(
412 : FileInputStreamParams* v__,
413 : const Message* msg__,
414 : PickleIterator* iter__) -> bool
415 : {
416 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
417 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
418 0 : return false;
419 : }
420 : // Sentinel = 'fileDescriptorIndex'
421 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
422 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'FileInputStreamParams'");
423 0 : return false;
424 : }
425 0 : if ((!(Read((&((v__)->behaviorFlags())), msg__, iter__)))) {
426 0 : FatalError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
427 0 : return false;
428 : }
429 : // Sentinel = 'behaviorFlags'
430 0 : if ((!((msg__)->ReadSentinel(iter__, 2404401962)))) {
431 0 : mozilla::ipc::SentinelReadError("Error deserializing 'behaviorFlags' (int32_t) member of 'FileInputStreamParams'");
432 0 : return false;
433 : }
434 0 : if ((!(Read((&((v__)->ioFlags())), msg__, iter__)))) {
435 0 : FatalError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
436 0 : return false;
437 : }
438 : // Sentinel = 'ioFlags'
439 0 : if ((!((msg__)->ReadSentinel(iter__, 1483009730)))) {
440 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ioFlags' (int32_t) member of 'FileInputStreamParams'");
441 0 : return false;
442 : }
443 0 : return true;
444 : }
445 :
446 0 : auto PIPCBlobInputStreamParent::Write(
447 : const IPCBlobInputStreamParams& v__,
448 : Message* msg__) -> void
449 : {
450 0 : Write((v__).id(), msg__);
451 : // Sentinel = 'id'
452 0 : (msg__)->WriteSentinel(2794505629);
453 0 : }
454 :
455 0 : auto PIPCBlobInputStreamParent::Read(
456 : IPCBlobInputStreamParams* v__,
457 : const Message* msg__,
458 : PickleIterator* iter__) -> bool
459 : {
460 0 : if ((!(Read((&((v__)->id())), msg__, iter__)))) {
461 0 : FatalError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
462 0 : return false;
463 : }
464 : // Sentinel = 'id'
465 0 : if ((!((msg__)->ReadSentinel(iter__, 2794505629)))) {
466 0 : mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsID) member of 'IPCBlobInputStreamParams'");
467 0 : return false;
468 : }
469 0 : return true;
470 : }
471 :
472 0 : auto PIPCBlobInputStreamParent::Write(
473 : const InputStreamParamsWithFds& v__,
474 : Message* msg__) -> void
475 : {
476 0 : Write((v__).stream(), msg__);
477 : // Sentinel = 'stream'
478 0 : (msg__)->WriteSentinel(4152748422);
479 0 : Write((v__).optionalFds(), msg__);
480 : // Sentinel = 'optionalFds'
481 0 : (msg__)->WriteSentinel(1021803302);
482 0 : }
483 :
484 0 : auto PIPCBlobInputStreamParent::Read(
485 : InputStreamParamsWithFds* v__,
486 : const Message* msg__,
487 : PickleIterator* iter__) -> bool
488 : {
489 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
490 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
491 0 : return false;
492 : }
493 : // Sentinel = 'stream'
494 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
495 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'InputStreamParamsWithFds'");
496 0 : return false;
497 : }
498 0 : if ((!(Read((&((v__)->optionalFds())), msg__, iter__)))) {
499 0 : FatalError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
500 0 : return false;
501 : }
502 : // Sentinel = 'optionalFds'
503 0 : if ((!((msg__)->ReadSentinel(iter__, 1021803302)))) {
504 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalFds' (OptionalFileDescriptorSet) member of 'InputStreamParamsWithFds'");
505 0 : return false;
506 : }
507 0 : return true;
508 : }
509 :
510 0 : auto PIPCBlobInputStreamParent::Write(
511 : const nsTArray<FileDescriptor>& v__,
512 : Message* msg__) -> void
513 : {
514 0 : uint32_t length = (v__).Length();
515 0 : Write(length, msg__);
516 : // Sentinel = ('length', 'FileDescriptor[]')
517 0 : (msg__)->WriteSentinel(1697726450);
518 :
519 0 : for (auto& elem : v__) {
520 0 : Write(elem, msg__);
521 : // Sentinel = 'FileDescriptor[]'
522 0 : (msg__)->WriteSentinel(1630221245);
523 : }
524 0 : }
525 :
526 0 : auto PIPCBlobInputStreamParent::Read(
527 : nsTArray<FileDescriptor>* v__,
528 : const Message* msg__,
529 : PickleIterator* iter__) -> bool
530 : {
531 0 : nsTArray<FileDescriptor> fa;
532 : uint32_t length;
533 0 : if ((!(Read((&(length)), msg__, iter__)))) {
534 0 : mozilla::ipc::ArrayLengthReadError("FileDescriptor[]");
535 0 : return false;
536 : }
537 : // Sentinel = ('length', 'FileDescriptor[]')
538 0 : if ((!((msg__)->ReadSentinel(iter__, 1697726450)))) {
539 0 : mozilla::ipc::SentinelReadError("FileDescriptor[]");
540 0 : return false;
541 : }
542 :
543 0 : FileDescriptor* elems = (fa).AppendElements(length);
544 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
545 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
546 0 : FatalError("Error deserializing 'FileDescriptor[i]'");
547 0 : return false;
548 : }
549 : // Sentinel = 'FileDescriptor[]'
550 0 : if ((!((msg__)->ReadSentinel(iter__, 1630221245)))) {
551 0 : mozilla::ipc::SentinelReadError("Error deserializing 'FileDescriptor[i]'");
552 0 : return false;
553 : }
554 : }
555 0 : (v__)->SwapElements(fa);
556 0 : return true;
557 : }
558 :
559 0 : auto PIPCBlobInputStreamParent::Write(
560 : const nsTArray<HeaderEntry>& v__,
561 : Message* msg__) -> void
562 : {
563 0 : uint32_t length = (v__).Length();
564 0 : Write(length, msg__);
565 : // Sentinel = ('length', 'HeaderEntry[]')
566 0 : (msg__)->WriteSentinel(2689457705);
567 :
568 0 : for (auto& elem : v__) {
569 0 : Write(elem, msg__);
570 : // Sentinel = 'HeaderEntry[]'
571 0 : (msg__)->WriteSentinel(454836120);
572 : }
573 0 : }
574 :
575 0 : auto PIPCBlobInputStreamParent::Read(
576 : nsTArray<HeaderEntry>* v__,
577 : const Message* msg__,
578 : PickleIterator* iter__) -> bool
579 : {
580 0 : nsTArray<HeaderEntry> fa;
581 : uint32_t length;
582 0 : if ((!(Read((&(length)), msg__, iter__)))) {
583 0 : mozilla::ipc::ArrayLengthReadError("HeaderEntry[]");
584 0 : return false;
585 : }
586 : // Sentinel = ('length', 'HeaderEntry[]')
587 0 : if ((!((msg__)->ReadSentinel(iter__, 2689457705)))) {
588 0 : mozilla::ipc::SentinelReadError("HeaderEntry[]");
589 0 : return false;
590 : }
591 :
592 0 : HeaderEntry* elems = (fa).AppendElements(length);
593 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
594 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
595 0 : FatalError("Error deserializing 'HeaderEntry[i]'");
596 0 : return false;
597 : }
598 : // Sentinel = 'HeaderEntry[]'
599 0 : if ((!((msg__)->ReadSentinel(iter__, 454836120)))) {
600 0 : mozilla::ipc::SentinelReadError("Error deserializing 'HeaderEntry[i]'");
601 0 : return false;
602 : }
603 : }
604 0 : (v__)->SwapElements(fa);
605 0 : return true;
606 : }
607 :
608 0 : auto PIPCBlobInputStreamParent::Write(
609 : const SlicedInputStreamParams& v__,
610 : Message* msg__) -> void
611 : {
612 0 : Write((v__).stream(), msg__);
613 : // Sentinel = 'stream'
614 0 : (msg__)->WriteSentinel(4152748422);
615 0 : Write((v__).start(), msg__);
616 : // Sentinel = 'start'
617 0 : (msg__)->WriteSentinel(2088644401);
618 0 : Write((v__).length(), msg__);
619 : // Sentinel = 'length'
620 0 : (msg__)->WriteSentinel(1726618354);
621 0 : Write((v__).curPos(), msg__);
622 : // Sentinel = 'curPos'
623 0 : (msg__)->WriteSentinel(4042140974);
624 0 : Write((v__).closed(), msg__);
625 : // Sentinel = 'closed'
626 0 : (msg__)->WriteSentinel(561249462);
627 0 : }
628 :
629 0 : auto PIPCBlobInputStreamParent::Read(
630 : SlicedInputStreamParams* v__,
631 : const Message* msg__,
632 : PickleIterator* iter__) -> bool
633 : {
634 0 : if ((!(Read((&((v__)->stream())), msg__, iter__)))) {
635 0 : FatalError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
636 0 : return false;
637 : }
638 : // Sentinel = 'stream'
639 0 : if ((!((msg__)->ReadSentinel(iter__, 4152748422)))) {
640 0 : mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'SlicedInputStreamParams'");
641 0 : return false;
642 : }
643 0 : if ((!(Read((&((v__)->start())), msg__, iter__)))) {
644 0 : FatalError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
645 0 : return false;
646 : }
647 : // Sentinel = 'start'
648 0 : if ((!((msg__)->ReadSentinel(iter__, 2088644401)))) {
649 0 : mozilla::ipc::SentinelReadError("Error deserializing 'start' (uint64_t) member of 'SlicedInputStreamParams'");
650 0 : return false;
651 : }
652 0 : if ((!(Read((&((v__)->length())), msg__, iter__)))) {
653 0 : FatalError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
654 0 : return false;
655 : }
656 : // Sentinel = 'length'
657 0 : if ((!((msg__)->ReadSentinel(iter__, 1726618354)))) {
658 0 : mozilla::ipc::SentinelReadError("Error deserializing 'length' (uint64_t) member of 'SlicedInputStreamParams'");
659 0 : return false;
660 : }
661 0 : if ((!(Read((&((v__)->curPos())), msg__, iter__)))) {
662 0 : FatalError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
663 0 : return false;
664 : }
665 : // Sentinel = 'curPos'
666 0 : if ((!((msg__)->ReadSentinel(iter__, 4042140974)))) {
667 0 : mozilla::ipc::SentinelReadError("Error deserializing 'curPos' (uint64_t) member of 'SlicedInputStreamParams'");
668 0 : return false;
669 : }
670 0 : if ((!(Read((&((v__)->closed())), msg__, iter__)))) {
671 0 : FatalError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
672 0 : return false;
673 : }
674 : // Sentinel = 'closed'
675 0 : if ((!((msg__)->ReadSentinel(iter__, 561249462)))) {
676 0 : mozilla::ipc::SentinelReadError("Error deserializing 'closed' (bool) member of 'SlicedInputStreamParams'");
677 0 : return false;
678 : }
679 0 : return true;
680 : }
681 :
682 0 : auto PIPCBlobInputStreamParent::Write(
683 : const IPCRemoteStreamType& v__,
684 : Message* msg__) -> void
685 : {
686 : typedef IPCRemoteStreamType type__;
687 0 : Write(int((v__).type()), msg__);
688 : // Sentinel = 'IPCRemoteStreamType'
689 0 : (msg__)->WriteSentinel(391674895);
690 :
691 0 : switch ((v__).type()) {
692 : case type__::TPChildToParentStreamParent:
693 : {
694 0 : Write((v__).get_PChildToParentStreamParent(), msg__, false);
695 : // Sentinel = 'TPChildToParentStreamParent'
696 0 : (msg__)->WriteSentinel(2724777622);
697 0 : return;
698 : }
699 : case type__::TPChildToParentStreamChild:
700 : {
701 0 : FatalError("wrong side!");
702 0 : return;
703 : }
704 : case type__::TPParentToChildStreamParent:
705 : {
706 0 : Write((v__).get_PParentToChildStreamParent(), msg__, false);
707 : // Sentinel = 'TPParentToChildStreamParent'
708 0 : (msg__)->WriteSentinel(3335986876);
709 0 : return;
710 : }
711 : case type__::TPParentToChildStreamChild:
712 : {
713 0 : FatalError("wrong side!");
714 0 : return;
715 : }
716 : default:
717 : {
718 0 : FatalError("unknown union type");
719 0 : return;
720 : }
721 : }
722 : }
723 :
724 0 : auto PIPCBlobInputStreamParent::Read(
725 : IPCRemoteStreamType* v__,
726 : const Message* msg__,
727 : PickleIterator* iter__) -> bool
728 : {
729 : typedef IPCRemoteStreamType type__;
730 : int type;
731 0 : if ((!(Read((&(type)), msg__, iter__)))) {
732 0 : mozilla::ipc::UnionTypeReadError("IPCRemoteStreamType");
733 0 : return false;
734 : }
735 : // Sentinel = 'IPCRemoteStreamType'
736 0 : if ((!((msg__)->ReadSentinel(iter__, 391674895)))) {
737 0 : mozilla::ipc::SentinelReadError("IPCRemoteStreamType");
738 0 : return false;
739 : }
740 :
741 0 : switch (type) {
742 : case type__::TPChildToParentStreamParent:
743 : {
744 0 : return false;
745 : }
746 : case type__::TPChildToParentStreamChild:
747 : {
748 0 : PChildToParentStreamParent* tmp = nullptr;
749 0 : (*(v__)) = tmp;
750 0 : if ((!(Read((&((v__)->get_PChildToParentStreamParent())), msg__, iter__, false)))) {
751 0 : FatalError("Error deserializing Union type");
752 0 : return false;
753 : }
754 : // Sentinel = 'TPChildToParentStreamChild'
755 0 : if ((!((msg__)->ReadSentinel(iter__, 1882094295)))) {
756 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
757 0 : return false;
758 : }
759 0 : return true;
760 : }
761 : case type__::TPParentToChildStreamParent:
762 : {
763 0 : return false;
764 : }
765 : case type__::TPParentToChildStreamChild:
766 : {
767 0 : PParentToChildStreamParent* tmp = nullptr;
768 0 : (*(v__)) = tmp;
769 0 : if ((!(Read((&((v__)->get_PParentToChildStreamParent())), msg__, iter__, false)))) {
770 0 : FatalError("Error deserializing Union type");
771 0 : return false;
772 : }
773 : // Sentinel = 'TPParentToChildStreamChild'
774 0 : if ((!((msg__)->ReadSentinel(iter__, 190098493)))) {
775 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
776 0 : return false;
777 : }
778 0 : return true;
779 : }
780 : default:
781 : {
782 0 : FatalError("unknown union type");
783 0 : return false;
784 : }
785 : }
786 : }
787 :
788 0 : auto PIPCBlobInputStreamParent::Write(
789 : const TemporaryFileInputStreamParams& v__,
790 : Message* msg__) -> void
791 : {
792 0 : Write((v__).fileDescriptorIndex(), msg__);
793 : // Sentinel = 'fileDescriptorIndex'
794 0 : (msg__)->WriteSentinel(587329112);
795 0 : Write((v__).startPos(), msg__);
796 : // Sentinel = 'startPos'
797 0 : (msg__)->WriteSentinel(557207962);
798 0 : Write((v__).endPos(), msg__);
799 : // Sentinel = 'endPos'
800 0 : (msg__)->WriteSentinel(881536245);
801 0 : }
802 :
803 0 : auto PIPCBlobInputStreamParent::Read(
804 : TemporaryFileInputStreamParams* v__,
805 : const Message* msg__,
806 : PickleIterator* iter__) -> bool
807 : {
808 0 : if ((!(Read((&((v__)->fileDescriptorIndex())), msg__, iter__)))) {
809 0 : FatalError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
810 0 : return false;
811 : }
812 : // Sentinel = 'fileDescriptorIndex'
813 0 : if ((!((msg__)->ReadSentinel(iter__, 587329112)))) {
814 0 : mozilla::ipc::SentinelReadError("Error deserializing 'fileDescriptorIndex' (uint32_t) member of 'TemporaryFileInputStreamParams'");
815 0 : return false;
816 : }
817 0 : if ((!(Read((&((v__)->startPos())), msg__, iter__)))) {
818 0 : FatalError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
819 0 : return false;
820 : }
821 : // Sentinel = 'startPos'
822 0 : if ((!((msg__)->ReadSentinel(iter__, 557207962)))) {
823 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
824 0 : return false;
825 : }
826 0 : if ((!(Read((&((v__)->endPos())), msg__, iter__)))) {
827 0 : FatalError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
828 0 : return false;
829 : }
830 : // Sentinel = 'endPos'
831 0 : if ((!((msg__)->ReadSentinel(iter__, 881536245)))) {
832 0 : mozilla::ipc::SentinelReadError("Error deserializing 'endPos' (uint64_t) member of 'TemporaryFileInputStreamParams'");
833 0 : return false;
834 : }
835 0 : return true;
836 : }
837 :
838 0 : auto PIPCBlobInputStreamParent::Write(
839 : const MIMEInputStreamParams& v__,
840 : Message* msg__) -> void
841 : {
842 0 : Write((v__).optionalStream(), msg__);
843 : // Sentinel = 'optionalStream'
844 0 : (msg__)->WriteSentinel(1003718562);
845 0 : Write((v__).headers(), msg__);
846 : // Sentinel = 'headers'
847 0 : (msg__)->WriteSentinel(4284175217);
848 0 : Write((v__).startedReading(), msg__);
849 : // Sentinel = 'startedReading'
850 0 : (msg__)->WriteSentinel(1906875903);
851 0 : }
852 :
853 0 : auto PIPCBlobInputStreamParent::Read(
854 : MIMEInputStreamParams* v__,
855 : const Message* msg__,
856 : PickleIterator* iter__) -> bool
857 : {
858 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
859 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
860 0 : return false;
861 : }
862 : // Sentinel = 'optionalStream'
863 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
864 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'MIMEInputStreamParams'");
865 0 : return false;
866 : }
867 0 : if ((!(Read((&((v__)->headers())), msg__, iter__)))) {
868 0 : FatalError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
869 0 : return false;
870 : }
871 : // Sentinel = 'headers'
872 0 : if ((!((msg__)->ReadSentinel(iter__, 4284175217)))) {
873 0 : mozilla::ipc::SentinelReadError("Error deserializing 'headers' (HeaderEntry[]) member of 'MIMEInputStreamParams'");
874 0 : return false;
875 : }
876 0 : if ((!(Read((&((v__)->startedReading())), msg__, iter__)))) {
877 0 : FatalError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
878 0 : return false;
879 : }
880 : // Sentinel = 'startedReading'
881 0 : if ((!((msg__)->ReadSentinel(iter__, 1906875903)))) {
882 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReading' (bool) member of 'MIMEInputStreamParams'");
883 0 : return false;
884 : }
885 0 : return true;
886 : }
887 :
888 0 : auto PIPCBlobInputStreamParent::Write(
889 : const InputStreamParams& v__,
890 : Message* msg__) -> void
891 : {
892 : typedef InputStreamParams type__;
893 0 : Write(int((v__).type()), msg__);
894 : // Sentinel = 'InputStreamParams'
895 0 : (msg__)->WriteSentinel(4114814015);
896 :
897 0 : switch ((v__).type()) {
898 : case type__::TStringInputStreamParams:
899 : {
900 0 : Write((v__).get_StringInputStreamParams(), msg__);
901 : // Sentinel = 'TStringInputStreamParams'
902 0 : (msg__)->WriteSentinel(3395831651);
903 0 : return;
904 : }
905 : case type__::TFileInputStreamParams:
906 : {
907 0 : Write((v__).get_FileInputStreamParams(), msg__);
908 : // Sentinel = 'TFileInputStreamParams'
909 0 : (msg__)->WriteSentinel(2543620282);
910 0 : return;
911 : }
912 : case type__::TTemporaryFileInputStreamParams:
913 : {
914 0 : Write((v__).get_TemporaryFileInputStreamParams(), msg__);
915 : // Sentinel = 'TTemporaryFileInputStreamParams'
916 0 : (msg__)->WriteSentinel(587771548);
917 0 : return;
918 : }
919 : case type__::TBufferedInputStreamParams:
920 : {
921 0 : Write((v__).get_BufferedInputStreamParams(), msg__);
922 : // Sentinel = 'TBufferedInputStreamParams'
923 0 : (msg__)->WriteSentinel(1698289307);
924 0 : return;
925 : }
926 : case type__::TMIMEInputStreamParams:
927 : {
928 0 : Write((v__).get_MIMEInputStreamParams(), msg__);
929 : // Sentinel = 'TMIMEInputStreamParams'
930 0 : (msg__)->WriteSentinel(1948001964);
931 0 : return;
932 : }
933 : case type__::TMultiplexInputStreamParams:
934 : {
935 0 : Write((v__).get_MultiplexInputStreamParams(), msg__);
936 : // Sentinel = 'TMultiplexInputStreamParams'
937 0 : (msg__)->WriteSentinel(3317853213);
938 0 : return;
939 : }
940 : case type__::TSlicedInputStreamParams:
941 : {
942 0 : Write((v__).get_SlicedInputStreamParams(), msg__);
943 : // Sentinel = 'TSlicedInputStreamParams'
944 0 : (msg__)->WriteSentinel(445810472);
945 0 : return;
946 : }
947 : case type__::TIPCBlobInputStreamParams:
948 : {
949 0 : Write((v__).get_IPCBlobInputStreamParams(), msg__);
950 : // Sentinel = 'TIPCBlobInputStreamParams'
951 0 : (msg__)->WriteSentinel(2436989998);
952 0 : return;
953 : }
954 : default:
955 : {
956 0 : FatalError("unknown union type");
957 0 : return;
958 : }
959 : }
960 : }
961 :
962 0 : auto PIPCBlobInputStreamParent::Read(
963 : InputStreamParams* v__,
964 : const Message* msg__,
965 : PickleIterator* iter__) -> bool
966 : {
967 : typedef InputStreamParams type__;
968 : int type;
969 0 : if ((!(Read((&(type)), msg__, iter__)))) {
970 0 : mozilla::ipc::UnionTypeReadError("InputStreamParams");
971 0 : return false;
972 : }
973 : // Sentinel = 'InputStreamParams'
974 0 : if ((!((msg__)->ReadSentinel(iter__, 4114814015)))) {
975 0 : mozilla::ipc::SentinelReadError("InputStreamParams");
976 0 : return false;
977 : }
978 :
979 0 : switch (type) {
980 : case type__::TStringInputStreamParams:
981 : {
982 0 : StringInputStreamParams tmp = StringInputStreamParams();
983 0 : (*(v__)) = tmp;
984 0 : if ((!(Read((&((v__)->get_StringInputStreamParams())), msg__, iter__)))) {
985 0 : FatalError("Error deserializing Union type");
986 0 : return false;
987 : }
988 : // Sentinel = 'TStringInputStreamParams'
989 0 : if ((!((msg__)->ReadSentinel(iter__, 3395831651)))) {
990 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
991 0 : return false;
992 : }
993 0 : return true;
994 : }
995 : case type__::TFileInputStreamParams:
996 : {
997 0 : FileInputStreamParams tmp = FileInputStreamParams();
998 0 : (*(v__)) = tmp;
999 0 : if ((!(Read((&((v__)->get_FileInputStreamParams())), msg__, iter__)))) {
1000 0 : FatalError("Error deserializing Union type");
1001 0 : return false;
1002 : }
1003 : // Sentinel = 'TFileInputStreamParams'
1004 0 : if ((!((msg__)->ReadSentinel(iter__, 2543620282)))) {
1005 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1006 0 : return false;
1007 : }
1008 0 : return true;
1009 : }
1010 : case type__::TTemporaryFileInputStreamParams:
1011 : {
1012 0 : TemporaryFileInputStreamParams tmp = TemporaryFileInputStreamParams();
1013 0 : (*(v__)) = tmp;
1014 0 : if ((!(Read((&((v__)->get_TemporaryFileInputStreamParams())), msg__, iter__)))) {
1015 0 : FatalError("Error deserializing Union type");
1016 0 : return false;
1017 : }
1018 : // Sentinel = 'TTemporaryFileInputStreamParams'
1019 0 : if ((!((msg__)->ReadSentinel(iter__, 587771548)))) {
1020 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1021 0 : return false;
1022 : }
1023 0 : return true;
1024 : }
1025 : case type__::TBufferedInputStreamParams:
1026 : {
1027 0 : BufferedInputStreamParams tmp = BufferedInputStreamParams();
1028 0 : (*(v__)) = tmp;
1029 0 : if ((!(Read((&((v__)->get_BufferedInputStreamParams())), msg__, iter__)))) {
1030 0 : FatalError("Error deserializing Union type");
1031 0 : return false;
1032 : }
1033 : // Sentinel = 'TBufferedInputStreamParams'
1034 0 : if ((!((msg__)->ReadSentinel(iter__, 1698289307)))) {
1035 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1036 0 : return false;
1037 : }
1038 0 : return true;
1039 : }
1040 : case type__::TMIMEInputStreamParams:
1041 : {
1042 0 : MIMEInputStreamParams tmp = MIMEInputStreamParams();
1043 0 : (*(v__)) = tmp;
1044 0 : if ((!(Read((&((v__)->get_MIMEInputStreamParams())), msg__, iter__)))) {
1045 0 : FatalError("Error deserializing Union type");
1046 0 : return false;
1047 : }
1048 : // Sentinel = 'TMIMEInputStreamParams'
1049 0 : if ((!((msg__)->ReadSentinel(iter__, 1948001964)))) {
1050 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1051 0 : return false;
1052 : }
1053 0 : return true;
1054 : }
1055 : case type__::TMultiplexInputStreamParams:
1056 : {
1057 0 : MultiplexInputStreamParams tmp = MultiplexInputStreamParams();
1058 0 : (*(v__)) = tmp;
1059 0 : if ((!(Read((&((v__)->get_MultiplexInputStreamParams())), msg__, iter__)))) {
1060 0 : FatalError("Error deserializing Union type");
1061 0 : return false;
1062 : }
1063 : // Sentinel = 'TMultiplexInputStreamParams'
1064 0 : if ((!((msg__)->ReadSentinel(iter__, 3317853213)))) {
1065 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1066 0 : return false;
1067 : }
1068 0 : return true;
1069 : }
1070 : case type__::TSlicedInputStreamParams:
1071 : {
1072 0 : SlicedInputStreamParams tmp = SlicedInputStreamParams();
1073 0 : (*(v__)) = tmp;
1074 0 : if ((!(Read((&((v__)->get_SlicedInputStreamParams())), msg__, iter__)))) {
1075 0 : FatalError("Error deserializing Union type");
1076 0 : return false;
1077 : }
1078 : // Sentinel = 'TSlicedInputStreamParams'
1079 0 : if ((!((msg__)->ReadSentinel(iter__, 445810472)))) {
1080 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1081 0 : return false;
1082 : }
1083 0 : return true;
1084 : }
1085 : case type__::TIPCBlobInputStreamParams:
1086 : {
1087 0 : IPCBlobInputStreamParams tmp = IPCBlobInputStreamParams();
1088 0 : (*(v__)) = tmp;
1089 0 : if ((!(Read((&((v__)->get_IPCBlobInputStreamParams())), msg__, iter__)))) {
1090 0 : FatalError("Error deserializing Union type");
1091 0 : return false;
1092 : }
1093 : // Sentinel = 'TIPCBlobInputStreamParams'
1094 0 : if ((!((msg__)->ReadSentinel(iter__, 2436989998)))) {
1095 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1096 0 : return false;
1097 : }
1098 0 : return true;
1099 : }
1100 : default:
1101 : {
1102 0 : FatalError("unknown union type");
1103 0 : return false;
1104 : }
1105 : }
1106 : }
1107 :
1108 0 : auto PIPCBlobInputStreamParent::Write(
1109 : const PParentToChildStreamParent* v__,
1110 : Message* msg__,
1111 : bool nullable__) -> void
1112 : {
1113 : int32_t id;
1114 0 : if ((!(v__))) {
1115 0 : if ((!(nullable__))) {
1116 0 : FatalError("NULL actor value passed to non-nullable param");
1117 : }
1118 0 : id = 0;
1119 : }
1120 : else {
1121 0 : id = (v__)->Id();
1122 0 : if ((1) == (id)) {
1123 0 : FatalError("actor has been |delete|d");
1124 : }
1125 : }
1126 :
1127 0 : Write(id, msg__);
1128 0 : }
1129 :
1130 0 : auto PIPCBlobInputStreamParent::Read(
1131 : PParentToChildStreamParent** v__,
1132 : const Message* msg__,
1133 : PickleIterator* iter__,
1134 : bool nullable__) -> bool
1135 : {
1136 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PParentToChildStream", PParentToChildStreamMsgStart);
1137 0 : if ((actor).isNothing()) {
1138 0 : return false;
1139 : }
1140 :
1141 0 : (*(v__)) = static_cast<PParentToChildStreamParent*>((actor).value());
1142 0 : return true;
1143 : }
1144 :
1145 0 : auto PIPCBlobInputStreamParent::Write(
1146 : const IPCStream& v__,
1147 : Message* msg__) -> void
1148 : {
1149 : typedef IPCStream type__;
1150 0 : Write(int((v__).type()), msg__);
1151 : // Sentinel = 'IPCStream'
1152 0 : (msg__)->WriteSentinel(442610715);
1153 :
1154 0 : switch ((v__).type()) {
1155 : case type__::TInputStreamParamsWithFds:
1156 : {
1157 0 : Write((v__).get_InputStreamParamsWithFds(), msg__);
1158 : // Sentinel = 'TInputStreamParamsWithFds'
1159 0 : (msg__)->WriteSentinel(2170706066);
1160 0 : return;
1161 : }
1162 : case type__::TIPCRemoteStream:
1163 : {
1164 0 : Write((v__).get_IPCRemoteStream(), msg__);
1165 : // Sentinel = 'TIPCRemoteStream'
1166 0 : (msg__)->WriteSentinel(2978132448);
1167 0 : return;
1168 : }
1169 : default:
1170 : {
1171 0 : FatalError("unknown union type");
1172 0 : return;
1173 : }
1174 : }
1175 : }
1176 :
1177 0 : auto PIPCBlobInputStreamParent::Read(
1178 : IPCStream* v__,
1179 : const Message* msg__,
1180 : PickleIterator* iter__) -> bool
1181 : {
1182 : typedef IPCStream type__;
1183 : int type;
1184 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1185 0 : mozilla::ipc::UnionTypeReadError("IPCStream");
1186 0 : return false;
1187 : }
1188 : // Sentinel = 'IPCStream'
1189 0 : if ((!((msg__)->ReadSentinel(iter__, 442610715)))) {
1190 0 : mozilla::ipc::SentinelReadError("IPCStream");
1191 0 : return false;
1192 : }
1193 :
1194 0 : switch (type) {
1195 : case type__::TInputStreamParamsWithFds:
1196 : {
1197 0 : InputStreamParamsWithFds tmp = InputStreamParamsWithFds();
1198 0 : (*(v__)) = tmp;
1199 0 : if ((!(Read((&((v__)->get_InputStreamParamsWithFds())), msg__, iter__)))) {
1200 0 : FatalError("Error deserializing Union type");
1201 0 : return false;
1202 : }
1203 : // Sentinel = 'TInputStreamParamsWithFds'
1204 0 : if ((!((msg__)->ReadSentinel(iter__, 2170706066)))) {
1205 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1206 0 : return false;
1207 : }
1208 0 : return true;
1209 : }
1210 : case type__::TIPCRemoteStream:
1211 : {
1212 0 : IPCRemoteStream tmp = IPCRemoteStream();
1213 0 : (*(v__)) = tmp;
1214 0 : if ((!(Read((&((v__)->get_IPCRemoteStream())), msg__, iter__)))) {
1215 0 : FatalError("Error deserializing Union type");
1216 0 : return false;
1217 : }
1218 : // Sentinel = 'TIPCRemoteStream'
1219 0 : if ((!((msg__)->ReadSentinel(iter__, 2978132448)))) {
1220 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1221 0 : return false;
1222 : }
1223 0 : return true;
1224 : }
1225 : default:
1226 : {
1227 0 : FatalError("unknown union type");
1228 0 : return false;
1229 : }
1230 : }
1231 : }
1232 :
1233 0 : auto PIPCBlobInputStreamParent::Write(
1234 : const OptionalIPCStream& v__,
1235 : Message* msg__) -> void
1236 : {
1237 : typedef OptionalIPCStream type__;
1238 0 : Write(int((v__).type()), msg__);
1239 : // Sentinel = 'OptionalIPCStream'
1240 0 : (msg__)->WriteSentinel(3815982647);
1241 :
1242 0 : switch ((v__).type()) {
1243 : case type__::TIPCStream:
1244 : {
1245 0 : Write((v__).get_IPCStream(), msg__);
1246 : // Sentinel = 'TIPCStream'
1247 0 : (msg__)->WriteSentinel(40701900);
1248 0 : return;
1249 : }
1250 : case type__::Tvoid_t:
1251 : {
1252 0 : Write((v__).get_void_t(), msg__);
1253 : // Sentinel = 'Tvoid_t'
1254 0 : (msg__)->WriteSentinel(3041273328);
1255 0 : return;
1256 : }
1257 : default:
1258 : {
1259 0 : FatalError("unknown union type");
1260 0 : return;
1261 : }
1262 : }
1263 : }
1264 :
1265 0 : auto PIPCBlobInputStreamParent::Read(
1266 : OptionalIPCStream* v__,
1267 : const Message* msg__,
1268 : PickleIterator* iter__) -> bool
1269 : {
1270 : typedef OptionalIPCStream type__;
1271 : int type;
1272 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1273 0 : mozilla::ipc::UnionTypeReadError("OptionalIPCStream");
1274 0 : return false;
1275 : }
1276 : // Sentinel = 'OptionalIPCStream'
1277 0 : if ((!((msg__)->ReadSentinel(iter__, 3815982647)))) {
1278 0 : mozilla::ipc::SentinelReadError("OptionalIPCStream");
1279 0 : return false;
1280 : }
1281 :
1282 0 : switch (type) {
1283 : case type__::TIPCStream:
1284 : {
1285 0 : IPCStream tmp = IPCStream();
1286 0 : (*(v__)) = tmp;
1287 0 : if ((!(Read((&((v__)->get_IPCStream())), msg__, iter__)))) {
1288 0 : FatalError("Error deserializing Union type");
1289 0 : return false;
1290 : }
1291 : // Sentinel = 'TIPCStream'
1292 0 : if ((!((msg__)->ReadSentinel(iter__, 40701900)))) {
1293 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1294 0 : return false;
1295 : }
1296 0 : return true;
1297 : }
1298 : case type__::Tvoid_t:
1299 : {
1300 : void_t tmp = void_t();
1301 0 : (*(v__)) = tmp;
1302 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1303 0 : FatalError("Error deserializing Union type");
1304 0 : return false;
1305 : }
1306 : // Sentinel = 'Tvoid_t'
1307 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1308 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1309 0 : return false;
1310 : }
1311 0 : return true;
1312 : }
1313 : default:
1314 : {
1315 0 : FatalError("unknown union type");
1316 0 : return false;
1317 : }
1318 : }
1319 : }
1320 :
1321 0 : auto PIPCBlobInputStreamParent::Write(
1322 : const StringInputStreamParams& v__,
1323 : Message* msg__) -> void
1324 : {
1325 0 : Write((v__).data(), msg__);
1326 : // Sentinel = 'data'
1327 0 : (msg__)->WriteSentinel(843352540);
1328 0 : }
1329 :
1330 0 : auto PIPCBlobInputStreamParent::Read(
1331 : StringInputStreamParams* v__,
1332 : const Message* msg__,
1333 : PickleIterator* iter__) -> bool
1334 : {
1335 0 : if ((!(Read((&((v__)->data())), msg__, iter__)))) {
1336 0 : FatalError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
1337 0 : return false;
1338 : }
1339 : // Sentinel = 'data'
1340 0 : if ((!((msg__)->ReadSentinel(iter__, 843352540)))) {
1341 0 : mozilla::ipc::SentinelReadError("Error deserializing 'data' (nsCString) member of 'StringInputStreamParams'");
1342 0 : return false;
1343 : }
1344 0 : return true;
1345 : }
1346 :
1347 0 : auto PIPCBlobInputStreamParent::Write(
1348 : const MultiplexInputStreamParams& v__,
1349 : Message* msg__) -> void
1350 : {
1351 0 : Write((v__).streams(), msg__);
1352 : // Sentinel = 'streams'
1353 0 : (msg__)->WriteSentinel(4240383220);
1354 0 : Write((v__).currentStream(), msg__);
1355 : // Sentinel = 'currentStream'
1356 0 : (msg__)->WriteSentinel(682778074);
1357 0 : Write((v__).status(), msg__);
1358 : // Sentinel = 'status'
1359 0 : (msg__)->WriteSentinel(3714608576);
1360 0 : Write((v__).startedReadingCurrent(), msg__);
1361 : // Sentinel = 'startedReadingCurrent'
1362 0 : (msg__)->WriteSentinel(970542033);
1363 0 : }
1364 :
1365 0 : auto PIPCBlobInputStreamParent::Read(
1366 : MultiplexInputStreamParams* v__,
1367 : const Message* msg__,
1368 : PickleIterator* iter__) -> bool
1369 : {
1370 0 : if ((!(Read((&((v__)->streams())), msg__, iter__)))) {
1371 0 : FatalError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
1372 0 : return false;
1373 : }
1374 : // Sentinel = 'streams'
1375 0 : if ((!((msg__)->ReadSentinel(iter__, 4240383220)))) {
1376 0 : mozilla::ipc::SentinelReadError("Error deserializing 'streams' (InputStreamParams[]) member of 'MultiplexInputStreamParams'");
1377 0 : return false;
1378 : }
1379 0 : if ((!(Read((&((v__)->currentStream())), msg__, iter__)))) {
1380 0 : FatalError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
1381 0 : return false;
1382 : }
1383 : // Sentinel = 'currentStream'
1384 0 : if ((!((msg__)->ReadSentinel(iter__, 682778074)))) {
1385 0 : mozilla::ipc::SentinelReadError("Error deserializing 'currentStream' (uint32_t) member of 'MultiplexInputStreamParams'");
1386 0 : return false;
1387 : }
1388 0 : if ((!(Read((&((v__)->status())), msg__, iter__)))) {
1389 0 : FatalError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
1390 0 : return false;
1391 : }
1392 : // Sentinel = 'status'
1393 0 : if ((!((msg__)->ReadSentinel(iter__, 3714608576)))) {
1394 0 : mozilla::ipc::SentinelReadError("Error deserializing 'status' (nsresult) member of 'MultiplexInputStreamParams'");
1395 0 : return false;
1396 : }
1397 0 : if ((!(Read((&((v__)->startedReadingCurrent())), msg__, iter__)))) {
1398 0 : FatalError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
1399 0 : return false;
1400 : }
1401 : // Sentinel = 'startedReadingCurrent'
1402 0 : if ((!((msg__)->ReadSentinel(iter__, 970542033)))) {
1403 0 : mozilla::ipc::SentinelReadError("Error deserializing 'startedReadingCurrent' (bool) member of 'MultiplexInputStreamParams'");
1404 0 : return false;
1405 : }
1406 0 : return true;
1407 : }
1408 :
1409 0 : auto PIPCBlobInputStreamParent::Write(
1410 : const PFileDescriptorSetParent* v__,
1411 : Message* msg__,
1412 : bool nullable__) -> void
1413 : {
1414 : int32_t id;
1415 0 : if ((!(v__))) {
1416 0 : if ((!(nullable__))) {
1417 0 : FatalError("NULL actor value passed to non-nullable param");
1418 : }
1419 0 : id = 0;
1420 : }
1421 : else {
1422 0 : id = (v__)->Id();
1423 0 : if ((1) == (id)) {
1424 0 : FatalError("actor has been |delete|d");
1425 : }
1426 : }
1427 :
1428 0 : Write(id, msg__);
1429 0 : }
1430 :
1431 0 : auto PIPCBlobInputStreamParent::Read(
1432 : PFileDescriptorSetParent** v__,
1433 : const Message* msg__,
1434 : PickleIterator* iter__,
1435 : bool nullable__) -> bool
1436 : {
1437 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PFileDescriptorSet", PFileDescriptorSetMsgStart);
1438 0 : if ((actor).isNothing()) {
1439 0 : return false;
1440 : }
1441 :
1442 0 : (*(v__)) = static_cast<PFileDescriptorSetParent*>((actor).value());
1443 0 : return true;
1444 : }
1445 :
1446 0 : auto PIPCBlobInputStreamParent::Write(
1447 : const PIPCBlobInputStreamParent* v__,
1448 : Message* msg__,
1449 : bool nullable__) -> void
1450 : {
1451 : int32_t id;
1452 0 : if ((!(v__))) {
1453 0 : if ((!(nullable__))) {
1454 0 : FatalError("NULL actor value passed to non-nullable param");
1455 : }
1456 0 : id = 0;
1457 : }
1458 : else {
1459 0 : id = (v__)->Id();
1460 0 : if ((1) == (id)) {
1461 0 : FatalError("actor has been |delete|d");
1462 : }
1463 : }
1464 :
1465 0 : Write(id, msg__);
1466 0 : }
1467 :
1468 0 : auto PIPCBlobInputStreamParent::Read(
1469 : PIPCBlobInputStreamParent** v__,
1470 : const Message* msg__,
1471 : PickleIterator* iter__,
1472 : bool nullable__) -> bool
1473 : {
1474 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PIPCBlobInputStream", PIPCBlobInputStreamMsgStart);
1475 0 : if ((actor).isNothing()) {
1476 0 : return false;
1477 : }
1478 :
1479 0 : (*(v__)) = static_cast<PIPCBlobInputStreamParent*>((actor).value());
1480 0 : return true;
1481 : }
1482 :
1483 0 : auto PIPCBlobInputStreamParent::Write(
1484 : const OptionalFileDescriptorSet& v__,
1485 : Message* msg__) -> void
1486 : {
1487 : typedef OptionalFileDescriptorSet type__;
1488 0 : Write(int((v__).type()), msg__);
1489 : // Sentinel = 'OptionalFileDescriptorSet'
1490 0 : (msg__)->WriteSentinel(955222862);
1491 :
1492 0 : switch ((v__).type()) {
1493 : case type__::TPFileDescriptorSetParent:
1494 : {
1495 0 : Write((v__).get_PFileDescriptorSetParent(), msg__, false);
1496 : // Sentinel = 'TPFileDescriptorSetParent'
1497 0 : (msg__)->WriteSentinel(143041934);
1498 0 : return;
1499 : }
1500 : case type__::TPFileDescriptorSetChild:
1501 : {
1502 0 : FatalError("wrong side!");
1503 0 : return;
1504 : }
1505 : case type__::TArrayOfFileDescriptor:
1506 : {
1507 0 : Write((v__).get_ArrayOfFileDescriptor(), msg__);
1508 : // Sentinel = 'TArrayOfFileDescriptor'
1509 0 : (msg__)->WriteSentinel(2366096715);
1510 0 : return;
1511 : }
1512 : case type__::Tvoid_t:
1513 : {
1514 0 : Write((v__).get_void_t(), msg__);
1515 : // Sentinel = 'Tvoid_t'
1516 0 : (msg__)->WriteSentinel(3041273328);
1517 0 : return;
1518 : }
1519 : default:
1520 : {
1521 0 : FatalError("unknown union type");
1522 0 : return;
1523 : }
1524 : }
1525 : }
1526 :
1527 0 : auto PIPCBlobInputStreamParent::Read(
1528 : OptionalFileDescriptorSet* v__,
1529 : const Message* msg__,
1530 : PickleIterator* iter__) -> bool
1531 : {
1532 : typedef OptionalFileDescriptorSet type__;
1533 : int type;
1534 0 : if ((!(Read((&(type)), msg__, iter__)))) {
1535 0 : mozilla::ipc::UnionTypeReadError("OptionalFileDescriptorSet");
1536 0 : return false;
1537 : }
1538 : // Sentinel = 'OptionalFileDescriptorSet'
1539 0 : if ((!((msg__)->ReadSentinel(iter__, 955222862)))) {
1540 0 : mozilla::ipc::SentinelReadError("OptionalFileDescriptorSet");
1541 0 : return false;
1542 : }
1543 :
1544 0 : switch (type) {
1545 : case type__::TPFileDescriptorSetParent:
1546 : {
1547 0 : return false;
1548 : }
1549 : case type__::TPFileDescriptorSetChild:
1550 : {
1551 0 : PFileDescriptorSetParent* tmp = nullptr;
1552 0 : (*(v__)) = tmp;
1553 0 : if ((!(Read((&((v__)->get_PFileDescriptorSetParent())), msg__, iter__, false)))) {
1554 0 : FatalError("Error deserializing Union type");
1555 0 : return false;
1556 : }
1557 : // Sentinel = 'TPFileDescriptorSetChild'
1558 0 : if ((!((msg__)->ReadSentinel(iter__, 3477929935)))) {
1559 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1560 0 : return false;
1561 : }
1562 0 : return true;
1563 : }
1564 : case type__::TArrayOfFileDescriptor:
1565 : {
1566 0 : nsTArray<FileDescriptor> tmp;
1567 0 : (*(v__)) = tmp;
1568 0 : if ((!(Read((&((v__)->get_ArrayOfFileDescriptor())), msg__, iter__)))) {
1569 0 : FatalError("Error deserializing Union type");
1570 0 : return false;
1571 : }
1572 : // Sentinel = 'TArrayOfFileDescriptor'
1573 0 : if ((!((msg__)->ReadSentinel(iter__, 2366096715)))) {
1574 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1575 0 : return false;
1576 : }
1577 0 : return true;
1578 : }
1579 : case type__::Tvoid_t:
1580 : {
1581 : void_t tmp = void_t();
1582 0 : (*(v__)) = tmp;
1583 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
1584 0 : FatalError("Error deserializing Union type");
1585 0 : return false;
1586 : }
1587 : // Sentinel = 'Tvoid_t'
1588 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
1589 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
1590 0 : return false;
1591 : }
1592 0 : return true;
1593 : }
1594 : default:
1595 : {
1596 0 : FatalError("unknown union type");
1597 0 : return false;
1598 : }
1599 : }
1600 : }
1601 :
1602 0 : auto PIPCBlobInputStreamParent::Write(
1603 : const FileDescriptor& v__,
1604 : Message* msg__) -> void
1605 : {
1606 0 : FileDescriptor::PickleType pfd = (v__).ShareTo(FileDescriptor::IPDLPrivate(), OtherPid());
1607 0 : IPC::WriteParam(msg__, pfd);
1608 0 : }
1609 :
1610 0 : auto PIPCBlobInputStreamParent::Read(
1611 : FileDescriptor* v__,
1612 : const Message* msg__,
1613 : PickleIterator* iter__) -> bool
1614 : {
1615 0 : FileDescriptor::PickleType pfd;
1616 0 : if ((!(IPC::ReadParam(msg__, iter__, (&(pfd)))))) {
1617 0 : return false;
1618 : }
1619 :
1620 0 : FileDescriptor fd = FileDescriptor(FileDescriptor::IPDLPrivate(), pfd);
1621 0 : if ((!((fd).IsValid()))) {
1622 0 : mozilla::ipc::ProtocolErrorBreakpoint("[PIPCBlobInputStreamParent] Received an invalid file descriptor!");
1623 : }
1624 :
1625 0 : (*(v__)) = fd;
1626 0 : return true;
1627 : }
1628 :
1629 0 : auto PIPCBlobInputStreamParent::Write(
1630 : const BufferedInputStreamParams& v__,
1631 : Message* msg__) -> void
1632 : {
1633 0 : Write((v__).optionalStream(), msg__);
1634 : // Sentinel = 'optionalStream'
1635 0 : (msg__)->WriteSentinel(1003718562);
1636 0 : Write((v__).bufferSize(), msg__);
1637 : // Sentinel = 'bufferSize'
1638 0 : (msg__)->WriteSentinel(3444538779);
1639 0 : }
1640 :
1641 0 : auto PIPCBlobInputStreamParent::Read(
1642 : BufferedInputStreamParams* v__,
1643 : const Message* msg__,
1644 : PickleIterator* iter__) -> bool
1645 : {
1646 0 : if ((!(Read((&((v__)->optionalStream())), msg__, iter__)))) {
1647 0 : FatalError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
1648 0 : return false;
1649 : }
1650 : // Sentinel = 'optionalStream'
1651 0 : if ((!((msg__)->ReadSentinel(iter__, 1003718562)))) {
1652 0 : mozilla::ipc::SentinelReadError("Error deserializing 'optionalStream' (OptionalInputStreamParams) member of 'BufferedInputStreamParams'");
1653 0 : return false;
1654 : }
1655 0 : if ((!(Read((&((v__)->bufferSize())), msg__, iter__)))) {
1656 0 : FatalError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
1657 0 : return false;
1658 : }
1659 : // Sentinel = 'bufferSize'
1660 0 : if ((!((msg__)->ReadSentinel(iter__, 3444538779)))) {
1661 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bufferSize' (uint32_t) member of 'BufferedInputStreamParams'");
1662 0 : return false;
1663 : }
1664 0 : return true;
1665 : }
1666 :
1667 0 : auto PIPCBlobInputStreamParent::Write(
1668 : const HeaderEntry& v__,
1669 : Message* msg__) -> void
1670 : {
1671 0 : Write((v__).name(), msg__);
1672 : // Sentinel = 'name'
1673 0 : (msg__)->WriteSentinel(15034981);
1674 0 : Write((v__).value(), msg__);
1675 : // Sentinel = 'value'
1676 0 : (msg__)->WriteSentinel(3456818542);
1677 0 : }
1678 :
1679 0 : auto PIPCBlobInputStreamParent::Read(
1680 : HeaderEntry* v__,
1681 : const Message* msg__,
1682 : PickleIterator* iter__) -> bool
1683 : {
1684 0 : if ((!(Read((&((v__)->name())), msg__, iter__)))) {
1685 0 : FatalError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
1686 0 : return false;
1687 : }
1688 : // Sentinel = 'name'
1689 0 : if ((!((msg__)->ReadSentinel(iter__, 15034981)))) {
1690 0 : mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'HeaderEntry'");
1691 0 : return false;
1692 : }
1693 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
1694 0 : FatalError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
1695 0 : return false;
1696 : }
1697 : // Sentinel = 'value'
1698 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
1699 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (nsCString) member of 'HeaderEntry'");
1700 0 : return false;
1701 : }
1702 0 : return true;
1703 : }
1704 :
1705 0 : auto PIPCBlobInputStreamParent::Write(
1706 : const PChildToParentStreamParent* v__,
1707 : Message* msg__,
1708 : bool nullable__) -> void
1709 : {
1710 : int32_t id;
1711 0 : if ((!(v__))) {
1712 0 : if ((!(nullable__))) {
1713 0 : FatalError("NULL actor value passed to non-nullable param");
1714 : }
1715 0 : id = 0;
1716 : }
1717 : else {
1718 0 : id = (v__)->Id();
1719 0 : if ((1) == (id)) {
1720 0 : FatalError("actor has been |delete|d");
1721 : }
1722 : }
1723 :
1724 0 : Write(id, msg__);
1725 0 : }
1726 :
1727 0 : auto PIPCBlobInputStreamParent::Read(
1728 : PChildToParentStreamParent** v__,
1729 : const Message* msg__,
1730 : PickleIterator* iter__,
1731 : bool nullable__) -> bool
1732 : {
1733 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PChildToParentStream", PChildToParentStreamMsgStart);
1734 0 : if ((actor).isNothing()) {
1735 0 : return false;
1736 : }
1737 :
1738 0 : (*(v__)) = static_cast<PChildToParentStreamParent*>((actor).value());
1739 0 : return true;
1740 : }
1741 :
1742 :
1743 :
1744 : } // namespace ipc
1745 : } // namespace mozilla
|