Class: Kafka::Crc32Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/kafka/crc32_hash.rb

Instance Method Summary collapse

Instance Method Details

#hash(value) ⇒ Object



11
12
13
# File 'lib/kafka/crc32_hash.rb', line 11

def hash(value)
  Zlib.crc32(value)
end

#loadObject

crc32 is supported natively



9
# File 'lib/kafka/crc32_hash.rb', line 9

def load; end