Class: TSV::StrictFloatArraySerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/rbbt/tsv/serializers.rb

Class Method Summary collapse

Class Method Details

.dump(a) ⇒ Object



30
# File 'lib/rbbt/tsv/serializers.rb', line 30

def self.dump(a); a.pack("d*"); end

.load(str) ⇒ Object



31
# File 'lib/rbbt/tsv/serializers.rb', line 31

def self.load(str); a = str.unpack("d*"); end