| 38 | } |
| 39 | |
| 40 | void section_headers::remove( const char* name ) const noexcept |
| 41 | { |
| 42 | const auto num_sections = count( ); |
| 43 | |
| 44 | for ( std::uint16_t i = 0; i < num_sections; ++i ) |
| 45 | { |
| 46 | auto section = at( i ); |
| 47 | |
| 48 | if ( std::strncmp( reinterpret_cast< const char* >( section->Name ), name, IMAGE_SIZEOF_SHORT_NAME ) == 0 ) |
| 49 | { |
| 50 | remove( i ); |
| 51 | break; |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | void section_headers::remove( const std::uint16_t idx ) const noexcept |
| 57 | { |