class AnndbApi::Util
Public Class Methods
ascii8bit_to_uuid(ascii_str)
click to toggle source
# File lib/anndb_api/util.rb, line 7 def self.ascii8bit_to_uuid(ascii_str) ascii_str.unpack('H*').first end
uuid_string_to_bytes(uuid)
click to toggle source
# File lib/anndb_api/util.rb, line 3 def self.uuid_string_to_bytes(uuid) [uuid.tr('-', '')].pack('H*') end