| 28 | } |
| 29 | |
| 30 | void section_headers::append( IMAGE_SECTION_HEADER& header ) const noexcept |
| 31 | { |
| 32 | auto last = at( count( ) ); |
| 33 | |
| 34 | std::copy( |
| 35 | reinterpret_cast< std::uint8_t* >( &header ), |
| 36 | reinterpret_cast< std::uint8_t* >( &header ) + sizeof( IMAGE_SECTION_HEADER ), |
| 37 | reinterpret_cast< std::uint8_t* >( last ) ); |
| 38 | } |
| 39 | |
| 40 | void section_headers::remove( const char* name ) const noexcept |
| 41 | { |