Sha256: fff9398c899fa5686e388f6855cbca416a36f67cb8ed5e07f2fa9cdb560426c7
Contents?: true
Size: 397 Bytes
Versions: 6
Compression:
Stored size: 397 Bytes
Contents
module ThinkingSphinx module Core module String def to_crc32 result = 0xFFFFFFFF self.each_byte do |byte| result ^= byte 8.times do result = (result >> 1) ^ (0xEDB88320 * (result & 1)) end end result ^ 0xFFFFFFFF end end end end class String include ThinkingSphinx::Core::String end
Version data entries
6 entries across 6 versions & 4 rubygems