node/lib/metasm/metasm/parse_c.rb
def to_strz
			raise NoMethodError, "Not an Array" if not @struct.kind_of?(C::Array)
			a = to_array
			a[a.index(0)..-1] = [] if a.index(0)
			a.pack('C*')
		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
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_strz
			raise NoMethodError, "Not an Array" if not @struct.kind_of?(C::Array)
			a = to_array
			a[a.index(0)..-1] = [] if a.index(0)
			a.pack('C*')
		end
def to_strz raise NoMethodError , "Not an Array" if not @struct . kind_of? ( C :: Array ) a = to_array a [ a . index ( 0 ) .. - 1 ] = [ ] if a . index ( 0 ) a . pack ( 'C*' ) 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