template <ElfData Data, class File, class Allocator, typename... Callback>
class PhdrFileNoteObserver
Defined at line 281 of file ../../src/lib/elfldltl/include/lib/elfldltl/note.h
elfldltl::PhdrFileNoteObserver(file_api_object, callback...) can be passed
to elfldltl::DecodePhdrs to call each callback, as if a function with the
type `fit::result
<fit
::failed, bool>(ElfNote)`, on each note in the file.
It returns false the first time there in an error return from a callback, or
earlier if there is a problem reading notes from the file. The callback's
bool success value says whether this callback needs to be called again for
future notes. When no callback wants to see more notes, the observer will
stop decoding them but still return true so the calling DecodePhdrs pass
continues to call other observers.
This will read both allocated and non-allocated notes, but always read them
from the file rather than from memory (for allocated notes, it should be the
same data as if the file were loaded into memory and then the notes read out
of memory, unless the note contents are writable or RELRO data).
Public Methods
void PhdrFileNoteObserver<Data, File, Allocator, Callback...> ()
Defined at line 288 of file ../../src/lib/elfldltl/include/lib/elfldltl/note.h
void PhdrFileNoteObserver<Data, File, Allocator, Callback...> (const PhdrFileNoteObserver<Data, File, Allocator, Callback...> & )
Copyable and/or movable if Allocator and Callback are.
Defined at line 291 of file ../../src/lib/elfldltl/include/lib/elfldltl/note.h
void PhdrFileNoteObserver<Data, File, Allocator, Callback...> (PhdrFileNoteObserver<Data, File, Allocator, Callback...> && )
Defined at line 292 of file ../../src/lib/elfldltl/include/lib/elfldltl/note.h
template <class Elf>
void PhdrFileNoteObserver<Data, File, Allocator, Callback...> (Elf && elf, File & file, Allocator allocator, Callback... callback)
Defined at line 295 of file ../../src/lib/elfldltl/include/lib/elfldltl/note.h
PhdrFileNoteObserver<Data, File, Allocator, Callback...> & operator= (const PhdrFileNoteObserver<Data, File, Allocator, Callback...> & )
Copy-assignable and/or move-assignable if Allocator and Callback are.
Defined at line 314 of file ../../src/lib/elfldltl/include/lib/elfldltl/note.h
PhdrFileNoteObserver<Data, File, Allocator, Callback...> & operator= (PhdrFileNoteObserver<Data, File, Allocator, Callback...> && )
Defined at line 315 of file ../../src/lib/elfldltl/include/lib/elfldltl/note.h
template <class Diag, typename Phdr>
bool Observe (Diag & diag, PhdrTypeMatch<ElfPhdrType::kNote> type, const Phdr & phdr)
Defined at line 318 of file ../../src/lib/elfldltl/include/lib/elfldltl/note.h