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
include
bux
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
7
namespace
bux
{
8
9
class
C_FileAsMemory
10
{
11
public
:
12
13
// Nonvirtuals
14
C_FileAsMemory
(
const
std::filesystem::path& path);
15
~C_FileAsMemory
();
16
const
char
*
data
()
const
{
return
m_data; }
17
18
private
:
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
bux::C_FileAsMemory::data
const char * data() const
Definition
FileAsMem.h:16
bux::C_FileAsMemory::C_FileAsMemory
C_FileAsMemory(const std::filesystem::path &path)
Definition
FileAsMem.cpp:11
bux::C_FileAsMemory::~C_FileAsMemory
~C_FileAsMemory()
Definition
FileAsMem.cpp:40
bux
THE common namespace of bux library.
Definition
AtomiX.cpp:3
Generated by
1.13.2