Sha256: bb99551a1751120572842a0a91848937d69d07c8580a2565a5a96a41582368bf

Contents?: true

Size: 1006 Bytes

Versions: 20

Compression:

Stored size: 1006 Bytes

Contents

# frozen_string_literal: true
module Puppet::Pops
module Serialization
  # An InstanceReader is responsible for reading an instance of a complex object using a deserializer. The read involves creating the
  # instance, register it with the deserializer (so that self references can be resolved) and then read the instance data (which normally
  # amounts to all attribute values).
  # Instance readers are registered with of {Types::PObjectType}s to aid the type when reading instances.
  #
  # @api private
  module InstanceReader
    # @param [Class] impl_class the class of the instance to be created and initialized
    # @param [Integer] value_count the expected number of objects that forms the initialization data
    # @param [Deserializer] deserializer the deserializer to read from, and to register the instance with
    # @return [Object] the instance that has been read
    def read(impl_class, value_count, deserializer)
      Serialization.not_implemented(self, 'read')
    end
  end
end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.3.0-x86-mingw32 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.3.0-x64-mingw32 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.3.0-universal-darwin lib/puppet/pops/serialization/instance_reader.rb
puppet-8.3.1 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.3.1-x86-mingw32 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.3.1-x64-mingw32 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.3.1-universal-darwin lib/puppet/pops/serialization/instance_reader.rb
puppet-8.2.0 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.2.0-x86-mingw32 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.2.0-x64-mingw32 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.2.0-universal-darwin lib/puppet/pops/serialization/instance_reader.rb
puppet-8.1.0 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.1.0-x86-mingw32 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.1.0-x64-mingw32 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.1.0-universal-darwin lib/puppet/pops/serialization/instance_reader.rb
puppet-8.0.1 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.0.1-x86-mingw32 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.0.1-x64-mingw32 lib/puppet/pops/serialization/instance_reader.rb
puppet-8.0.1-universal-darwin lib/puppet/pops/serialization/instance_reader.rb