Module: RubyTorrent::StringMapBytes

Included in:
StringExpandBits, StringToBarray
Defined in:
lib/rubytorrent/util.rb

Instance Method Summary collapse

Instance Method Details

#map_bytesObject



179
180
181
182
183
# File 'lib/rubytorrent/util.rb', line 179

def map_bytes
  ret = []
  each_byte { |x| ret.push(yield(x)) }
  ret
end