aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/winapi/resource.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-10 12:39:04 +0500
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-10 12:48:59 +0500
commit4a13df61b92b8bf673f8a71d5fa0abf0356a4899 (patch)
tree071a3830ce0f2309e40a4bb16b7dd42018bd852f /include/winapi/resource.hpp
parentMakefile: remove stupid header, etc. (diff)
downloadwinapi-common-4a13df61b92b8bf673f8a71d5fa0abf0356a4899.tar.gz
winapi-common-4a13df61b92b8bf673f8a71d5fa0abf0356a4899.zip
add Doxygen docs
Diffstat (limited to '')
-rw-r--r--include/winapi/resource.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/winapi/resource.hpp b/include/winapi/resource.hpp
index 2f77d3e..8b6e41b 100644
--- a/include/winapi/resource.hpp
+++ b/include/winapi/resource.hpp
@@ -11,6 +11,7 @@
namespace winapi {
+/** @brief Resources embedded in a PE (Portable Executable). */
struct Resource {
// This is just a pointer to static data.
@@ -18,6 +19,7 @@ struct Resource {
Resource(const void* data, std::size_t nb) : data{data}, nb{nb} {}
+ /** Extract resource data into a Buffer instance. */
Buffer copy() const { return {data, nb}; }
const void* data = nullptr;