Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/ipc/IPCStream.h"
#include "ipc/IPCMessageUtils.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
#include "nsIFile.h"
#include "mozilla/ipc/Endpoint.h"
#include "mozilla/ipc/ProtocolMessageUtils.h"
#include "mozilla/ipc/ProtocolUtils.h"
#include "mozilla/ipc/ShmemMessageUtils.h"
#include "mozilla/ipc/TaintingIPCUtils.h"
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct IPCStream|
//
namespace mozilla {
namespace ipc {
} // namespace ipc
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::ipc::IPCStream>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).stream());
// Sentinel = 'stream'
(aWriter)->WriteSentinel(153223821);
}
auto ParamTraits<::mozilla::ipc::IPCStream>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___stream = IPC::ReadParam<::mozilla::ipc::InputStreamParams>(aReader);
if (!maybe___stream) {
aReader->FatalError("Error deserializing 'stream' (InputStreamParams) member of 'IPCStream'");
return {};
}
auto& _stream = *maybe___stream;
// Sentinel = 'stream'
if ((!((aReader)->ReadSentinel(153223821)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'stream' (InputStreamParams) member of 'IPCStream'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_stream)};
return result__;
}
} // namespace IPC