Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/bindings/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  ErrorIPCUtils.h

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef IPC_ErrorIPCUtils_h
#define IPC_ErrorIPCUtils_h

#include "ipc/EnumSerializer.h"
#include "ipc/IPCMessageUtils.h"
#include "mozilla/ErrorResult.h"

namespace IPC {

template <>
struct ParamTraits<mozilla::dom::ErrNum>
    : public ContiguousEnumSerializer<
          mozilla::dom::ErrNum, mozilla::dom::ErrNum(0),
          mozilla::dom::ErrNum(mozilla::dom::Err_Limit)> {};

template <>
struct ParamTraits<mozilla::ErrorResult> {
  static void Write(MessageWriter* aWriter,
                    const mozilla::ErrorResult& aParam) {
    aParam.SerializeErrorResult(aWriter);
  }

  static void Write(MessageWriter* aWriter, mozilla::ErrorResult&& aParam) {
    aParam.SerializeErrorResult(aWriter);
    aParam.SuppressException();
  }

  static bool Read(MessageReader* aReader, mozilla::ErrorResult* aResult) {
    return aResult->DeserializeErrorResult(aReader);
  }
};

template <>
struct ParamTraits<mozilla::CopyableErrorResult> {
  typedef mozilla::CopyableErrorResult paramType;

  static void Write(MessageWriter* aWriter, const paramType& aParam) {
    aParam.SerializeErrorResult(aWriter);
  }

  static bool Read(MessageReader* aReader, paramType* aResult) {
    return aResult->DeserializeErrorResult(aReader);
  }
};

}  // namespace IPC

#endif

Messung V0.5 in Prozent
C=95 H=71 G=83

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-08-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.