• R/O
  • SSH
  • HTTPS

peframework: Commit


Commit MetaInfo

Revision8 (tree)
Time2017-05-16 21:37:35
Authorquiret

Log Message

- added easy way to get section data reference from section data allocation

Change Summary

Incremental Difference

--- include/peloader.h (revision 7)
+++ include/peloader.h (revision 8)
@@ -659,6 +659,12 @@
659659 return ( theSection != NULL );
660660 }
661661
662+ // We can spawn a data reference from any allocation.
663+ inline operator PESectionDataReference ( void )
664+ {
665+ return PESectionDataReference( this->theSection, this->sectOffset, this->dataSize );
666+ }
667+
662668 // Every allocation can ONLY exist on ONE section.
663669
664670 sectionSpaceAlloc_t::block_t sectionBlock;
Show on old repository browser