Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/dom/IPCIdentityCredential.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 IPCIdentityCredential|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::IPCIdentityCredential>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).id());
// Sentinel = 'id'
(aWriter)->WriteSentinel(20447438);
IPC::WriteParam(aWriter, (aVar).type());
// Sentinel = 'type'
(aWriter)->WriteSentinel(75760067);
IPC::WriteParam(aWriter, (aVar).token());
// Sentinel = 'token'
(aWriter)->WriteSentinel(108921378);
}
auto ParamTraits<::mozilla::dom::IPCIdentityCredential>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___id = IPC::ReadParam<::nsString>(aReader);
if (!maybe___id) {
aReader->FatalError("Error deserializing 'id' (nsString) member of 'IPCIdentityCredential'");
return {};
}
auto& _id = *maybe___id;
// Sentinel = 'id'
if ((!((aReader)->ReadSentinel(20447438)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'id' (nsString) member of 'IPCIdentityCredential'");
return {};
}
auto maybe___type = IPC::ReadParam<::nsString>(aReader);
if (!maybe___type) {
aReader->FatalError("Error deserializing 'type' (nsString) member of 'IPCIdentityCredential'");
return {};
}
auto& _type = *maybe___type;
// Sentinel = 'type'
if ((!((aReader)->ReadSentinel(75760067)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'type' (nsString) member of 'IPCIdentityCredential'");
return {};
}
auto maybe___token = IPC::ReadParam<::nsString>(aReader);
if (!maybe___token) {
aReader->FatalError("Error deserializing 'token' (nsString) member of 'IPCIdentityCredential'");
return {};
}
auto& _token = *maybe___token;
// Sentinel = 'token'
if ((!((aReader)->ReadSentinel(108921378)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'token' (nsString) member of 'IPCIdentityCredential'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_id),
std::move(_type),
std::move(_token)};
return result__;
}
} // namespace IPC