public byte [ ] getDump ( ) throws IOException { byte [ ] dump = new byte [ ( int ) getSize ( ) ] ; try ( RandomAccessFile raf = new RandomAccessFile ( file , "r" ) ) { raf . seek ( offset ) ; raf . readFully ( dump ) ; } return dump ; }
Loads all bytes of the overlay into an array and returns them .