diff --git a/elfio/elfio_section.hpp b/elfio/elfio_section.hpp index 3e68c52..07c3871 100644 --- a/elfio/elfio_section.hpp +++ b/elfio/elfio_section.hpp @@ -238,6 +238,12 @@ template class section_impl : public section } } + //------------------------------------------------------------------------------ + size_t get_stream_size() const { return stream_size; } + + //------------------------------------------------------------------------------ + void set_stream_size( size_t value ) { stream_size = value; } + //------------------------------------------------------------------------------ private: //------------------------------------------------------------------------------ @@ -255,12 +261,6 @@ template class section_impl : public section stream.write( get_data(), get_size() ); } - //------------------------------------------------------------------------------ - size_t get_stream_size() const { return stream_size; } - - //------------------------------------------------------------------------------ - void set_stream_size( size_t value ) { stream_size = value; } - //------------------------------------------------------------------------------ private: T header;