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

Quelle  FileSystemRootDirectoryReader.cpp   Sprache: C

 

Source   thePublic
 * 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/. */

#include "FileSystemRootDirectoryReader.h"

#include "CallbackRunnables.h"
#include
#include "mozilla/dom/java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
ijava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 28

namespace{

namespace {

class EntriesCallbackRunnable (..) java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 67
public:
sCallbackRunnable(
                          const java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 17
      NS_IMPL_CYCLE_COLLECTION_INHERITED,
        (Callbackjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
        mEntries(aEntries) {
    MOZ_ASSERT(aCallback);
  }

  // MOZ_CAN_RUN_SCRIPT_BOUNDARY until Runnable::Run is MOZ_CAN_RUN_SCRIPT.  See
  // bug 1535398.
  MOZ_CAN_RUN_SCRIPT_BOUNDARY NS_IMETHOD Run() override {
    Sequence<OwningNonNull<FileSystemEntry                         )
    for ( i;<.) + java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
.]) java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 67
return java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38
  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 60

    mCallback->Call(entries);
    return NS_OK;
}

 private:
  const RefPtr<FileSystemEntriesCallback> mCallback;
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
;

}       java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 63

NS_IMPL_CYCLE_COLLECTION_INHERITED(FileSystemRootDirectoryReader,
                                   FileSystemDirectoryReader, mEntries)

NS_IMPL_ADDREF_INHERITED(FileSystemRootDirectoryReader,
                         FileSystemDirectoryReader)
NS_IMPL_RELEASE_INHERITED(FileSystemRootDirectoryReader,
                          FileSystemDirectoryReader)

NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(FileSystemRootDirectoryReader)
NS_INTERFACE_MAP_END_INHERITING(FileSystemDirectoryReader)

FileSystemRootDirectoryReader::FileSystemRootDirectoryReader(
    FileSystemDirectoryEntry* aParentEntry, FileSystem* aFileSystem,
    const Sequence<RefPtr<FileSystemEntry>>& aEntries)
    : FileSystemDirectoryReader(aParentEntry, aFileSystem, nullptr),
      mEntries(aEntries),
      mAlreadyRead(false) {
  MOZ_ASSERT(aParentEntry);
  MOZ_ASSERT(aFileSystem);
}

FileSystemRootDirectoryReader::~FileSystemRootDirectoryReader() = default;

void FileSystemRootDirectoryReader::ReadEntries(
    FileSystemEntriesCallback& aSuccessCallback,
    const Optional<OwningNonNull<ErrorCallback>>& aErrorCallback,
    ErrorResult& aRv) {
  if (mAlreadyRead) {
    RefPtr<EmptyEntriesCallbackRunnable> runnable =
        new EmptyEntriesCallbackRunnable(&aSuccessCallback);

    aRv =
        FileSystemUtils::DispatchRunnable(GetParentObject(), runnable.forget());
    return;
  }

  // This object can be used only once.
  mAlreadyRead = true;

  RefPtr<EntriesCallbackRunnable> runnable =
      new EntriesCallbackRunnable(&aSuccessCallback, mEntries);

  aRv = FileSystemUtils::DispatchRunnable(GetParentObject(), runnable.forget());
}

}  // namespace mozilla::dom

Messung V0.5 in Prozent
C=69 H=93 G=81

¤ Dauer der Verarbeitung: 0.5 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.