Sha256: 52375ec65db84d5f495edd5745abe34e469b698d62294d5f8cbf7dff59c3f33e
Contents?: true
Size: 330 Bytes
Versions: 11
Compression:
Stored size: 330 Bytes
Contents
module XDR::Hyper extend XDR::Concerns::ConvertsToXDR extend XDR::Concerns::IntegerConverter def self.write(val, io) raise XDR::WriteError, "val is not Integer" unless val.is_a?(Integer) # TODO: check bounds io.write [val].pack("q>") end def self.read(io) read_bytes(io, 8).unpack("q>").first end end
Version data entries
11 entries across 11 versions & 2 rubygems