Sha256: 5f776a14b960405525bbe26212ab4403ae3d51d415a87c356fff856921653251

Contents?: true

Size: 274 Bytes

Versions: 11

Compression:

Stored size: 274 Bytes

Contents

module XDR::Double
  extend XDR::Concerns::ConvertsToXDR
  extend XDR::Concerns::FloatConverter

  def self.write(val, io)
    raise XDR::WriteError unless valid?(val)
    io.write [val].pack("G")
  end

  def self.read(io)
    read_bytes(io, 8).unpack("G").first
  end

end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
payshares-xdr-0.0.2 lib/xdr/double.rb
xdr-3.0.2 lib/xdr/double.rb
xdr-3.0.1 lib/xdr/double.rb
xdr-3.0.0 lib/xdr/double.rb
xdr-2.0.0 lib/xdr/double.rb
xdr-1.0.0 lib/xdr/double.rb
xdr-0.1.0 lib/xdr/double.rb
xdr-0.0.4 lib/xdr/double.rb
xdr-0.0.3 lib/xdr/double.rb
xdr-0.0.2 lib/xdr/double.rb
xdr-0.0.1 lib/xdr/double.rb