Class: TSV::FloatArraySerializer

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

Class Method Summary collapse

Class Method Details

.dump(a) ⇒ Object



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

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

.load(str) ⇒ Object



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

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