diff options
Diffstat (limited to 'drivers/pe_bliss/pe_directory.cpp')
-rw-r--r-- | drivers/pe_bliss/pe_directory.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/drivers/pe_bliss/pe_directory.cpp b/drivers/pe_bliss/pe_directory.cpp new file mode 100644 index 0000000000..57ea2212a6 --- /dev/null +++ b/drivers/pe_bliss/pe_directory.cpp @@ -0,0 +1,38 @@ +#include "pe_directory.h" + +namespace pe_bliss +{ +//Default constructor +image_directory::image_directory() + :rva_(0), size_(0) +{} + +//Constructor from data +image_directory::image_directory(uint32_t rva, uint32_t size) + :rva_(rva), size_(size) +{} + +//Returns RVA +uint32_t image_directory::get_rva() const +{ + return rva_; +} + +//Returns size +uint32_t image_directory::get_size() const +{ + return size_; +} + +//Sets RVA +void image_directory::set_rva(uint32_t rva) +{ + rva_ = rva; +} + +//Sets size +void image_directory::set_size(uint32_t size) +{ + size_ = size; +} +} |