Go to the documentation of this file.
16#ifndef LIEF_ELF_NOTE_DETAILS_PROPERTIES_STACK_SIZE_H
17#define LIEF_ELF_NOTE_DETAILS_PROPERTIES_STACK_SIZE_H
29 static bool classof(
const NoteGnuProperty::Property* prop) {
30 return prop->
type() == NoteGnuProperty::Property::TYPE::STACK_SIZE;
33 static std::unique_ptr<StackSize>
create(uint64_t stack_size) {
34 return std::unique_ptr<StackSize>(
new StackSize(stack_size));
42 void dump(std::ostream &os)
const override;
47 StackSize(uint64_t stack_size) :
48 NoteGnuProperty::Property(NoteGnuProperty::Property::TYPE::STACK_SIZE),
49 stack_size_(stack_size)
51 uint64_t stack_size_ = 0;
This class wraps the different properties that can be used in a NT_GNU_PROPERTY_TYPE_0 note.
Definition NoteGnuProperty.hpp:35
TYPE type() const
Return the LIEF's mirror type of the note.
Definition NoteGnuProperty.hpp:52
This class provides an interface over the GNU_PROPERTY_STACK_SIZE property.
Definition StackSize.hpp:27
uint64_t stack_size() const
The indicated stack size.
Definition StackSize.hpp:38
void dump(std::ostream &os) const override
static std::unique_ptr< StackSize > create(uint64_t stack_size)
Definition StackSize.hpp:33
static bool classof(const NoteGnuProperty::Property *prop)
Definition StackSize.hpp:29
~StackSize() override=default
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41