Sha256: 0790bd252b898cff5809f78c8f6ec501a0aa0960a4fb3621e0cc05c79b82e436
Contents?: true
Size: 629 Bytes
Versions: 6
Compression:
Stored size: 629 Bytes
Contents
# -*- coding: binary -*- module Rex module ImageSource class ImageSource # # Um, just some abstract class stuff I guess, this is the interface # that any image sources should subscribe to... # def subsource(offset, len) raise "do something" end def size raise "do something" end def file_offset raise "do something" end def close raise "do something" end def read_asciiz(offset) # FIXME, make me better string = '' loop do char = read(offset, 1) break if char == "\x00" offset += 1 string << char end return string end end end end
Version data entries
6 entries across 6 versions & 3 rubygems