Skip to content

Commit

Permalink
Add segment's free_data() description to the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Serge Lamikhov-Center committed Oct 10, 2023
1 parent 23527bd commit 0399b9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Binary file modified doc/elfio.docx
Binary file not shown.
Binary file modified doc/elfio.pdf
Binary file not shown.
7 changes: 4 additions & 3 deletions elfio/elfio_segment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 0399b9f

Please sign in to comment.