File Static Function Library. More...
#include <FileLibrary.h>
Static Public Member Functions | |
| static bool | FileLibrary_Exists (const char *path) |
| Determine whether the given string is existing a file. | |
| static bool | FileLibrary_Open (const char *path, FileModes mode, bool binary, FileHandle *out_handle) |
| Open the file using given string. | |
| static void | FileLibrary_Close (FileHandle *handle) |
| Close the file by the file handle. | |
| static bool | FileLibrary_Size (const FileHandle *handle, uint64_t *out_size) |
| Calculate The file size. | |
| static bool | FileLibrary_Read (const FileHandle *handle, uint64_t data_size, void *out_data, uint64_t *out_bytes_read) |
| Read Specific size of data form the current file handle pointer, and move pointer the same size. | |
| static bool | FileLibrary_Read_Line (const FileHandle *handle, uint64_t max_length, char *line_buf, uint64_t *out_line_length) |
| Read one line from the current file handle pointer, and move pointer the same size. | |
| static bool | FileLibrary_Read_all_bytes (const FileHandle *handle, char *out_bytes, uint64_t *out_bytes_read) |
| Read all data form the current file handle pointer. | |
| static bool | FileLibrary_Write (const FileHandle *handle, uint64_t data_size, const void *data, uint64_t *out_bytes_written) |
| Write given data to the file handle pointer. | |
| static bool | FileLibrary_Write_Line (const FileHandle *handle, const char *text) |
| Write one line data to the file handle pointer. | |
| static std::string | FileLibrary_OpenInExplore (const char *filter, HWND hwnd) |
| Select a file to open in explore. | |
| static std::string | FileLibrary_SaveInExplore (const char *filter, HWND hwnd) |
| Select a file to save in explore. | |
| static bool | FileLibrary_CopyFile (std::string srcFilePath, std::string dstFilePath) |
| Copy a file to dst path. | |
| static bool | FileLibrary_Delete (const char *filePath) |
| Delete a file from disk. | |
File Static Function Library.
Definition at line 48 of file FileLibrary.h.