Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/gfx/skia/skia/src/sksl/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 867 B image not shown  

Quelle  SkSLModuleDataFile.cpp   Sprache: C

 
/*
 * Copyright 2024 Google LLC
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#include "src/sksl/SkSLModule.h"

#include "include/core/SkString.h"
#include "src/utils/SkGetExecutablePath.h"
#include "src/utils/SkOSPath.h"

#include <fstream>

namespace SkSL {

std::string GetModuleData(ModuleType /*name*/, const char* filename) {
    std::string exePath = SkGetExecutablePath();
    SkString exeDir = SkOSPath::Dirname(exePath.c_str());
    SkString modulePath = SkOSPath::Join(exeDir.c_str(), filename);
    std::ifstream in(std::string{modulePath.c_str()});
    std::string moduleSource{std::istreambuf_iterator<char>(in), std::istreambuf_iterator<char>()};
    if (in.rdstate()) {
        SK_ABORT("Error reading %s\n", modulePath.c_str());
    }
    return moduleSource;
}

}  // namespace SkSL

Messung V0.5
C=89 H=96 G=92

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.