Sha256: 43dc927af1f325ce2a4b0680ed21171fa8206084fd521f48100daf284dd6435a

Contents?: true

Size: 185 Bytes

Versions: 8

Compression:

Stored size: 185 Bytes

Contents

module XDR::Concerns::ReadsBytes
  private
  def read_bytes(io, length)
    io.read(length).tap do |bytes|
      raise EOFError if bytes.nil? || bytes.length != length
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
payshares-xdr-0.0.2 lib/xdr/concerns/reads_bytes.rb
xdr-2.0.0 lib/xdr/concerns/reads_bytes.rb
xdr-1.0.0 lib/xdr/concerns/reads_bytes.rb
xdr-0.1.0 lib/xdr/concerns/reads_bytes.rb
xdr-0.0.4 lib/xdr/concerns/reads_bytes.rb
xdr-0.0.3 lib/xdr/concerns/reads_bytes.rb
xdr-0.0.2 lib/xdr/concerns/reads_bytes.rb
xdr-0.0.1 lib/xdr/concerns/reads_bytes.rb