class TSV::IntegerArraySerializer
Constants
- NIL_INT
Public Class Methods
Source
# File lib/rbbt/tsv/serializers.rb, line 36 def self.dump(a); a.collect{|v| v || NIL_INT}.pack("l*"); end
Source
# File lib/rbbt/tsv/serializers.rb, line 37 def self.load(str); a = str.unpack("l*"); a.collect{|v| v == NIL_INT ? nil : v}; end