//
// 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 CrashReporterInitArgs|
//
namespace CrashReporter {
} // namespace CrashReporter

namespace IPC {
auto ParamTraits<::CrashReporter::CrashReporterInitArgs>::Write(
        IPC::MessageWriter* aWriter,
        paramType&& aVar) -> void
{
    IPC::WriteParam(aWriter, std::move((aVar).threadId()));
    // Sentinel = 'threadId'
    (aWriter)->WriteSentinel(248185638);
}

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 {};
    }
    IPC::ReadResult<paramType> result__{
            std::in_place,
            std::move(_threadId)};
    return result__;
}

} // namespace IPC
