Sha256: 31a1e484a27f00584ce7e623f9d8ef035c254f70913d0e4c3a582f5e346ce873

Contents?: true

Size: 428 Bytes

Versions: 14

Compression:

Stored size: 428 Bytes

Contents

require 'ms/data/lazy_io'
require 'stringio'

module Ms
  module Data
    
    # LazyString is a LazyIO initialized from a string, which is converted into
    # a StringIO.
    class LazyString < LazyIO
      def initialize(string, unpack_format=NETWORK_FLOAT, compression=false, decode_format=BASE_64)
        super(StringIO.new(string), 0, string.length, unpack_format, compression, decode_format)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ms-core-0.0.19 lib/ms/data/lazy_string.rb
ms-core-0.0.18 lib/ms/data/lazy_string.rb
ms-core-0.0.17 lib/ms/data/lazy_string.rb
ms-core-0.0.16 lib/ms/data/lazy_string.rb
ms-core-0.0.14 lib/ms/data/lazy_string.rb
ms-core-0.0.13 lib/ms/data/lazy_string.rb
ms-core-0.0.12 lib/ms/data/lazy_string.rb
ms-core-0.0.11 lib/ms/data/lazy_string.rb
ms-core-0.0.10 lib/ms/data/lazy_string.rb
ms-core-0.0.9 lib/ms/data/lazy_string.rb
ms-core-0.0.7 lib/ms/data/lazy_string.rb
ms-core-0.0.6 lib/ms/data/lazy_string.rb
ms-core-0.0.5 lib/ms/data/lazy_string.rb
ms-core-0.0.4 lib/ms/data/lazy_string.rb