vendor/riddle/lib/riddle/client/response.rb in ultrasphinx-1.7 vs vendor/riddle/lib/riddle/client/response.rb in ultrasphinx-1.8

- old
+ new

@@ -26,9 +26,16 @@ @marker += 4 return int end + def next_64bit_int + high, low = @str[@marker, 8].unpack('N*N*')[0..1] + @marker += 8 + + return (high << 32) + low + end + # Return the next float value from the stream def next_float float = @str[@marker, 4].unpack('N*').pack('L').unpack('f*').first @marker += 4 \ No newline at end of file