16#ifndef LIEF_ELF_ANDROID_IDENT_H
17#define LIEF_ELF_ANDROID_IDENT_H
33 static constexpr size_t sdk_version_size =
sizeof(uint32_t);
34 static constexpr size_t ndk_version_size = 64 *
sizeof(char);
35 static constexpr size_t ndk_build_number_size = 64 *
sizeof(char);
38 std::unique_ptr<Note>
clone()
const override {
39 return std::unique_ptr<AndroidIdent>(
new AndroidIdent(*
this));
55 void dump(std::ostream& os)
const override;
60 return note->
type() == Note::TYPE::ANDROID_IDENT;
66 return sdk_version_size + ndk_version_size + ndk_build_number_size;
Class representing the ".note.android.ident" section.
Definition AndroidIdent.hpp:31
std::unique_ptr< Note > clone() const override
Clone the current note and keep its polymorphic type.
Definition AndroidIdent.hpp:38
std::string ndk_build_number() const
NDK build number (or an empty string if it can't be parsed)
~AndroidIdent() override=default
std::string ndk_version() const
NDK version used (or an empty string if it can't be parsed)
static constexpr size_t description_size()
Definition AndroidIdent.hpp:65
void ndk_version(const std::string &ndk_version)
friend std::ostream & operator<<(std::ostream &os, const AndroidIdent ¬e)
Definition AndroidIdent.hpp:70
void dump(std::ostream &os) const override
static bool classof(const Note *note)
Definition AndroidIdent.hpp:59
void accept(Visitor &visitor) const override
void ndk_build_number(const std::string &ndk_build_number)
uint32_t sdk_version() const
Target SDK version (or 0 if it can't be resolved)
void sdk_version(uint32_t version)
Class which represents an ELF note. This class can be instantiated using the static Note::create func...
Definition Note.hpp:39
TYPE type() const
Return the type of the note. This type does not match the NT_ type value. For accessing the original ...
Definition Note.hpp:195
Definition Visitor.hpp:224
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41