# Return eight-byte double-precision float
def self.getdouble(s)
- a = s.read(8).unpack("G") # G big-endian, E little-endian
+ a = s.read(8).unpack("G") # G big-endian, E little-endian
a[0]
end
arr = {}
while (key = getstring(s))
break if key == ""
+
arr[key] = getvalue(s)
end
s.getbyte # skip the 9 'end of object' value