Sha256: e7a620df9545785b2931da28018ad2832c926434bca29d359f45d67385387b05

Contents?: true

Size: 562 Bytes

Versions: 3

Compression:

Stored size: 562 Bytes

Contents

require 'python/pickle/instruction'
require 'python/pickle/instructions/has_value'

module Python
  module Pickle
    module Instructions
      #
      # Represents a pickle `FRAME` instruction.
      #
      # @note introduced in protocol 4.
      #
      class Frame < Instruction

        include HasValue

        #
        # Initializes the `FRAME` instruction.
        #
        # @param [Integer] value
        #   The frame's length in bytes.
        #
        def initialize(value)
          super(:FRAME,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/frame.rb
python-pickle-0.1.1 lib/python/pickle/instructions/frame.rb
python-pickle-0.1.0 lib/python/pickle/instructions/frame.rb