Copy as Markdown
Other Tools
//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "CrashReporter/CrashReporterInitArgs.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 AuxvInfo|
//
namespace CrashReporter {
} // namespace CrashReporter
namespace IPC {
auto ParamTraits<::CrashReporter::AuxvInfo>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).programHeaderCount());
// Sentinel = 'programHeaderCount'
(aWriter)->WriteSentinel(1165887307);
IPC::WriteParam(aWriter, (aVar).programHeaderAddress());
// Sentinel = 'programHeaderAddress'
(aWriter)->WriteSentinel(1420494856);
IPC::WriteParam(aWriter, (aVar).linuxGateAddress());
// Sentinel = 'linuxGateAddress'
(aWriter)->WriteSentinel(922879608);
IPC::WriteParam(aWriter, (aVar).entryAddress());
// Sentinel = 'entryAddress'
(aWriter)->WriteSentinel(540476665);
}
auto ParamTraits<::CrashReporter::AuxvInfo>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___programHeaderCount = IPC::ReadParam<::uintptr_t>(aReader);
if (!maybe___programHeaderCount) {
aReader->FatalError("Error deserializing 'programHeaderCount' (uintptr_t) member of 'AuxvInfo'");
return {};
}
auto& _programHeaderCount = *maybe___programHeaderCount;
// Sentinel = 'programHeaderCount'
if ((!((aReader)->ReadSentinel(1165887307)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'programHeaderCount' (uintptr_t) member of 'AuxvInfo'");
return {};
}
auto maybe___programHeaderAddress = IPC::ReadParam<::uintptr_t>(aReader);
if (!maybe___programHeaderAddress) {
aReader->FatalError("Error deserializing 'programHeaderAddress' (uintptr_t) member of 'AuxvInfo'");
return {};
}
auto& _programHeaderAddress = *maybe___programHeaderAddress;
// Sentinel = 'programHeaderAddress'
if ((!((aReader)->ReadSentinel(1420494856)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'programHeaderAddress' (uintptr_t) member of 'AuxvInfo'");
return {};
}
auto maybe___linuxGateAddress = IPC::ReadParam<::uintptr_t>(aReader);
if (!maybe___linuxGateAddress) {
aReader->FatalError("Error deserializing 'linuxGateAddress' (uintptr_t) member of 'AuxvInfo'");
return {};
}
auto& _linuxGateAddress = *maybe___linuxGateAddress;
// Sentinel = 'linuxGateAddress'
if ((!((aReader)->ReadSentinel(922879608)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'linuxGateAddress' (uintptr_t) member of 'AuxvInfo'");
return {};
}
auto maybe___entryAddress = IPC::ReadParam<::uintptr_t>(aReader);
if (!maybe___entryAddress) {
aReader->FatalError("Error deserializing 'entryAddress' (uintptr_t) member of 'AuxvInfo'");
return {};
}
auto& _entryAddress = *maybe___entryAddress;
// Sentinel = 'entryAddress'
if ((!((aReader)->ReadSentinel(540476665)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'entryAddress' (uintptr_t) member of 'AuxvInfo'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_programHeaderCount),
std::move(_programHeaderAddress),
std::move(_linuxGateAddress),
std::move(_entryAddress)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct CrashReporterInitArgs|
//
namespace CrashReporter {
} // namespace CrashReporter
namespace IPC {
auto ParamTraits<::CrashReporter::CrashReporterInitArgs>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).threadId());
// Sentinel = 'threadId'
(aWriter)->WriteSentinel(248185638);
IPC::WriteParam(aWriter, (aVar).auxvInfo());
// Sentinel = 'auxvInfo'
(aWriter)->WriteSentinel(252314449);
}
auto ParamTraits<::CrashReporter::CrashReporterInitArgs>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___threadId = IPC::ReadParam<::mozilla::dom::NativeThreadId>(aReader);
if (!maybe___threadId) {
aReader->FatalError("Error deserializing 'threadId' (NativeThreadId) member of 'CrashReporterInitArgs'");
return {};
}
auto& _threadId = *maybe___threadId;
// Sentinel = 'threadId'
if ((!((aReader)->ReadSentinel(248185638)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'threadId' (NativeThreadId) member of 'CrashReporterInitArgs'");
return {};
}
auto maybe___auxvInfo = IPC::ReadParam<::CrashReporter::AuxvInfo>(aReader);
if (!maybe___auxvInfo) {
aReader->FatalError("Error deserializing 'auxvInfo' (AuxvInfo) member of 'CrashReporterInitArgs'");
return {};
}
auto& _auxvInfo = *maybe___auxvInfo;
// Sentinel = 'auxvInfo'
if ((!((aReader)->ReadSentinel(252314449)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'auxvInfo' (AuxvInfo) member of 'CrashReporterInitArgs'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_threadId),
std::move(_auxvInfo)};
return result__;
}
} // namespace IPC