lib/purecdb/reader.rb
# Iterate over all key/value pairs in the order they occur in the file.
# This is *not* sorted or insertion order.
#
# +each+ will yield each key,value pair separately even when a key is
# duplicate.
Iterate over all key/value pairs in the order they occur in the file.
This is *not* sorted or insertion order.

+each+ will yield each key,value pair separately even when a key is
duplicate.
Iterate over all key / value pairs in the order they occur in the file . This is * not * sorted or insertion order . + each + will yield each key value pair separately even when a key is duplicate .
def each
      pos = hash_size
      hoff0 = @hashes[0]
      while pos < hoff0
        key, value = *read_entry(pos)
        yield(key,value)
        pos += key.length + value.length + hashref_size
      end
    end
def each pos = hash_size hoff0 = @hashes [ 0 ] while pos < hoff0 key , value = * read_entry ( pos ) yield ( key , value ) pos += key . length + value . length + hashref_size end end
Iterate over all key/value pairs in the order they occur in the file.
Iterate over all key / value pairs in the order they occur in the file .