Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  ClientUsageArray.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 DOM_QUOTA_CLIENTUSAGEARRAY_H_
#define DOM_QUOTA_CLIENTUSAGEARRAY_H_

#include <cstdint>

#include "mozilla/Maybe.h"
#include "mozilla/dom/quota/Client.h"

namespace mozilla::dom::quota {

class ClientUsageArray final : public Array<Maybe<uint64_t>, Client::TYPE_MAX> {
 public:
  Maybe<uint64_t>& operator[](size_t aIndex) {
    if (MOZ_UNLIKELY(aIndex >= Client::TypeMax())) {
      MOZ_CRASH("indexing into invalid element");
    }
    return Array::operator[](aIndex);
  }

  const Maybe<uint64_t>& operator[](size_t aIndex) const {
    if (MOZ_UNLIKELY(aIndex >= Client::TypeMax())) {
      MOZ_CRASH("indexing into invalid element");
    }
    return Array::operator[](aIndex);
  }

  constexpr size_t Length() const { return size(); }

  void Serialize(nsACString& aText) const;

  nsresult Deserialize(const nsACString& aText);
};

}  // namespace mozilla::dom::quota

#endif  // DOM_QUOTA_CLIENTUSAGEARRAY_H_

Messung V0.5 in Prozent
C=93 H=95 G=93

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=738142