node/lib/metasm/metasm/parse_c.rb
# str is a reference to the underlying ruby String
# stroff is the offset from the start of this string (non-nul for nested structs)
# cp is a reference to the C::Parser
# struct to the C::Union/Struct/Array
# sizeof is the byte size of the C struct
str is a reference to the underlying ruby String
stroff is the offset from the start of this string (non-nul for nested structs)
cp is a reference to the C::Parser
struct to the C::Union/Struct/Array
sizeof is the byte size of the C struct
str is a reference to the underlying ruby String stroff is the offset from the start of this string ( non - nul for nested structs ) cp is a reference to the C :: Parser struct to the C :: Union / Struct / Array sizeof is the byte size of the C struct
def to_array
			raise NoMethodError, "Not an Array" if not @struct.kind_of?(C::Array)
			ary = []
			@struct.length.times { |i| ary << self[i] }
			ary
		end
def to_array raise NoMethodError , "Not an Array" if not @struct . kind_of? ( C :: Array ) ary = [ ] @struct . length . times { | i | ary << self [ i ] } ary end
str is a reference to the underlying ruby String
stroff is the offset from the start of this string (non-nul for nested structs)
cp is a reference to the C::Parser
struct to the C::Union/Struct/Array
sizeof is the byte size of the C struct
str is a reference to the underlying ruby String stroff is the offset from the start of this string ( non - nul for nested structs ) cp is a reference to the C :: Parser struct to the C :: Union / Struct / Array sizeof is the byte size of the C struct