Sha256: 6363dffe7319f59e1a5501b4e795665f70659f3bf1fb81b93f1ce1e380214e82

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 Bytes

Contents

require 'python/pickle/instruction'

module Python
  module Pickle
    module Instructions
      #
      # Represents a pickle `READONLY_BUFFER` instruction.
      #
      # @note introduced in protocol 5.
      #
      # @since 0.2.0
      #
      class ReadonlyBuffer < Instruction

        #
        # Initializes the `READONLY_BUFFER` instruction.
        #
        def initialize
          super(:READONLY_BUFFER)
        end

      end

      # The `READONLY_BUFFER` instruction.
      #
      # @since 0.2.0
      READONLY_BUFFER = ReadonlyBuffer.new
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
python-pickle-0.2.0 lib/python/pickle/instructions/readonly_buffer.rb