|
VoltMod
C++23 framework for CS2 server plugins
|
#include <SharedLibrary.hpp>
Public Member Functions | |
| SharedLibrary ()=default | |
| ~SharedLibrary () | |
| SharedLibrary (SharedLibrary &&other) noexcept | |
| SharedLibrary & | operator= (SharedLibrary &&other) noexcept |
| SharedLibrary (const SharedLibrary &)=delete | |
| SharedLibrary & | operator= (const SharedLibrary &)=delete |
| Result< void * > | Symbol (const char *name) const |
Static Public Member Functions | |
| static Result< SharedLibrary > | Open (const std::filesystem::path &path) |
A shared library the host opened, closed at scope end. Move-only: two owners would close it twice.
Definition at line 10 of file SharedLibrary.hpp.
|
default |
Referenced by Open().
| VoltMod::SharedLibrary::~SharedLibrary | ( | ) |
Definition at line 67 of file SharedLibrary.cpp.
|
noexcept |
Definition at line 72 of file SharedLibrary.cpp.
|
delete |
|
static |
Load path. The error carries the operating system's own message.
Definition at line 84 of file SharedLibrary.cpp.
References VoltMod::Error::Failed(), VoltMod::LastError(), VoltMod::OpenLibrary(), VoltMod::ReadFile(), and SharedLibrary().
|
delete |
|
noexcept |
Definition at line 74 of file SharedLibrary.cpp.
References VoltMod::Close, and VoltMod::ReadFile().
The address name exports, or an error naming it.
Definition at line 95 of file SharedLibrary.cpp.
References VoltMod::FindExport(), VoltMod::LastError(), VoltMod::Error::NotFound(), VoltMod::Error::NotReady(), and VoltMod::ReadFile().