Nostro/interfaces/Nostro-File.cppm

19 lines
569 B
Text
Raw Normal View History

2026-10-31 20:50:57 +01:00
//SPDX-License-Identifier: LGPL-3.0-only
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
export module Nostro:File;
import std;
namespace fs = std::filesystem;
export namespace Nostro {
fs::path GetConfigPath();
fs::path GetCachePath();
fs::path configPath = GetConfigPath();
fs::path cachePath = GetCachePath();
void CreatePrivateFile(const fs::path& path);
void WriteString(std::ofstream& file, std::string_view str);
void ReadString(std::ifstream& file, std::string& str);
std::uint16_t SeekString(std::ifstream& file);
}