2026-01-10 00:55:45 +09:00
|
|
|
#ifndef __GEARBOX_FILE_H__
|
|
|
|
|
#define __GEARBOX_FILE_H__
|
|
|
|
|
|
|
|
|
|
#include <GearBox/MachDep.h>
|
|
|
|
|
#include <GearBox/TypeDefs.h>
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2026-01-10 01:40:21 +09:00
|
|
|
GBDECL GBFile GBFileOpen(GBEngine engine, const char* path);
|
|
|
|
|
GBDECL int GBFileRead(GBFile file, void* out, int size);
|
|
|
|
|
GBDECL void GBFileSeek(GBFile file, int pos);
|
|
|
|
|
GBDECL unsigned int GBFileSize(GBFile file);
|
|
|
|
|
GBDECL void GBFileClose(GBFile file);
|
2026-01-10 00:55:45 +09:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|