bux API Reference 1.12.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
FileAsMem.h
Go to the documentation of this file.
1#pragma once
2#ifdef _WIN32
3#include <windows.h>
4#endif
5#include <filesystem>
6
7namespace bux {
8
10{
11public:
12
13 // Nonvirtuals
14 C_FileAsMemory(const std::filesystem::path& path);
16 const char* data() const { return m_data; }
17
18private:
19
20 // Data
21 char* m_data{};
22#ifdef _WIN32
23 HANDLE m_handle{};
24#else
25 size_t m_bytes{};
26 int m_fd = -1;
27#endif
28};
29
30} // namespace bux
const char * data() const
Definition FileAsMem.h:16
C_FileAsMemory(const std::filesystem::path &path)
Definition FileAsMem.cpp:11
THE common namespace of bux library.
Definition AtomiX.cpp:3