Class: MachO::MachOStructure

Inherits:
Object
  • Object
show all
Defined in:
lib/macho/structure.rb

Overview

general purpose pseudo-structure

Direct Known Subclasses

LoadCommand, Section, Section64

Class Method Summary collapse

Class Method Details

.bytesizeObject



7
8
9
# File 'lib/macho/structure.rb', line 7

def self.bytesize
	@sizeof
end

.new_from_bin(bin) ⇒ Object



11
12
13
# File 'lib/macho/structure.rb', line 11

def self.new_from_bin(bin)
	self.new(*bin.unpack(@format))
end