Sha256: 2b6d2c6982999ecc561b3fef5c8d56584c8aa7fddd79bb7610c8e01f62701df5

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

module FastImageParsing
  module StreamUtil # :nodoc:
    def read_byte
      read(1)[0].ord
    end
  
    def read_int
      read(2).unpack('n')[0]
    end
  
    def read_string_int
      value = []
      while read(1) =~ /(\d)/
        value << $1
      end
      value.join.to_i
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fastimage-2.4.0 lib/fastimage/fastimage_parsing/stream_util.rb