Sha256: 7ff73970a017e6ce414e507dbcffcfd88ca588d439dfddd376545c9f75dce14a
Contents?: true
Size: 494 Bytes
Versions: 5
Compression:
Stored size: 494 Bytes
Contents
class I2pStringData < BinData::BasePrimitive def read_and_return_value(io) country_long = eval_parameter(:country_long) io.seekbytes(-4) if country_long file = io.instance_variable_get('@raw_io') addr = BinData::Uint32le.read(io) old_offset = file.tell country_long ? file.seek(addr + 3) : file.seek(addr) length = BinData::Uint8.read(file) res = BinData::String.new(:length => length).read(file) file.seek(old_offset) res end end
Version data entries
5 entries across 5 versions & 1 rubygems