chore(file): add initial file headers (#107)

This commit is contained in:
Marco Tylus 2025-12-29 02:35:05 +09:00 committed by GitHub
parent ca6dd93c84
commit cac1cf7a1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 50 additions and 0 deletions

25
storm/file/SFile.hpp Normal file
View file

@ -0,0 +1,25 @@
#ifndef STORM_FILE_SFILE_HPP
#define STORM_FILE_SFILE_HPP
#include <cstddef>
#include <cstdint>
class SArchive;
struct SOVERLAPPED;
struct TASYNCPARAMBLOCK;
class SFile {
public:
static int32_t Close(SFile*);
static int32_t FileExists(const char* filename);
static size_t GetFileSize(SFile*, size_t*);
static int32_t IsStreamingMode();
static int32_t IsStreamingTrial();
static int32_t Load(SArchive*, const char*, void**, size_t*, size_t, uint32_t, SOVERLAPPED*);
static int32_t Open(const char*, SFile**);
static int32_t OpenEx(SArchive*, const char*, uint32_t, SFile**);
static int32_t Read(SFile*, void*, size_t, size_t*, SOVERLAPPED*, TASYNCPARAMBLOCK*);
static int32_t Unload(void*);
};
#endif