Class: Bloombroom::FNVFFI

Inherits:
Object
  • Object
show all
Extended by:
FFI::Library
Defined in:
lib/bloombroom.rb,
lib/bloombroom/hash/ffi_fnv.rb

Class Method Summary collapse

Class Method Details

.fnv1_32(data) ⇒ Object



10
11
12
# File 'lib/bloombroom/hash/ffi_fnv.rb', line 10

def self.fnv1_32(data)
  c_fnv1_32(data, data.size)
end

.fnv1_64(data) ⇒ Object



14
15
16
# File 'lib/bloombroom/hash/ffi_fnv.rb', line 14

def self.fnv1_64(data)
  c_fnv1_64(data, data.size)
end

.fnv1a_32(data) ⇒ Object



18
19
20
# File 'lib/bloombroom/hash/ffi_fnv.rb', line 18

def self.fnv1a_32(data)
  c_fnv1a_32(data, data.size)
end

.fnv1a_64(data) ⇒ Object



22
23
24
# File 'lib/bloombroom/hash/ffi_fnv.rb', line 22

def self.fnv1a_64(data)
  c_fnv1a_64(data, data.size)
end