node/lib/metasm/metasm/exe_format/serialstruct.rb
# inject a hook to be run during the decoding process
inject a hook to be run during the decoding process
inject a hook to be run during the decoding process
def decode_hook(before=nil, &b)
		@@fields[self] ||= []
		idx = (before ? @@fields[self].index(fld_get(before)) : -1)
		@@fields[self].insert(idx, [nil, b])
	end
def decode_hook ( before = nil , & b ) @@fields [ self ] ||= [ ] idx = ( before ? @@fields [ self ] . index ( fld_get ( before ) ) : - 1 ) @@fields [ self ] . insert ( idx , [ nil , b ] ) end
inject a hook to be run during the decoding process
inject a hook to be run during the decoding process
before
b