LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/ipc/ipdl - PIPCBlobInputStreamChild.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 855 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 66 0.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.13