Sha256: 78044ab53a30c5544d1702ea13e2ea31fc777e32908d7dbf4403cfd34226c199

Contents?: true

Size: 691 Bytes

Versions: 3

Compression:

Stored size: 691 Bytes

Contents

require 'python/pickle/instruction'
require 'python/pickle/instructions/has_length_and_value'

module Python
  module Pickle
    module Instructions
      #
      # Represents the `LONG1` instruction.
      #
      # @note introduces in protocol 1.
      #
      class Long1 < Instruction

        include HasLengthAndValue

        #
        # Initializes the `LONG1` instruction.
        #
        # @param [Integer] length
        #   The length of the `LONG1` value in bytes.
        #
        # @param [Long1] value
        #   The `LONG1` instruction's value.
        #
        def initialize(length,value)
          super(:LONG1,length,value)
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
python-pickle-0.2.0 lib/python/pickle/instructions/long1.rb
python-pickle-0.1.1 lib/python/pickle/instructions/long1.rb
python-pickle-0.1.0 lib/python/pickle/instructions/long1.rb