mirror of
https://github.com/serge1/ELFIO.git
synced 2025-01-30 06:32:43 +00:00
Add segment's free_data() description to the doc
This commit is contained in:
parent
23527bd291
commit
0399b9f8df
BIN
doc/elfio.docx
BIN
doc/elfio.docx
Binary file not shown.
BIN
doc/elfio.pdf
BIN
doc/elfio.pdf
Binary file not shown.
@ -47,8 +47,8 @@ class segment
|
||||
ELFIO_GET_SET_ACCESS_DECL( Elf_Xword, memory_size );
|
||||
ELFIO_GET_ACCESS_DECL( Elf64_Off, offset );
|
||||
|
||||
virtual const char* get_data() const = 0;
|
||||
virtual void free_data() const = 0;
|
||||
virtual const char* get_data() const = 0;
|
||||
virtual void free_data() const = 0;
|
||||
|
||||
virtual Elf_Half add_section( section* psec, Elf_Xword addr_align ) = 0;
|
||||
virtual Elf_Half add_section_index( Elf_Half index,
|
||||
@ -105,9 +105,10 @@ template <class T> class segment_impl : public segment
|
||||
return data.get();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
void free_data() const override
|
||||
{
|
||||
data.reset(nullptr);
|
||||
data.reset( nullptr );
|
||||
is_lazy = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user