Testing Spices::FileLibrary::Write.
219 {
220
222
225
226 EXPECT_EQ(handle.is_valid, true);
227 EXPECT_NE(handle.handle, nullptr);
228
229 {
230 std::string data = "First Line.";
231 uint64_t bytes;
233
234 EXPECT_EQ(bytes, data.size());
235 }
236
239 }
#define SPICESTEST_PROFILE_FUNCTION()
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_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_Delete(const char *filePath)
Delete a file from disk.
@ FILE_MODE_WRITE
model : write
This Struct is FILE* handle pointer Wrapper.