Sha256: 22e68fc88d7d590f9beb6a8a6c7f2b9dd015675491f279afe01e3a9c01b343a7

Contents?: true

Size: 713 Bytes

Versions: 3

Compression:

Stored size: 713 Bytes

Contents

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

module Python
  module Pickle
    module Instructions
      #
      # Represents the `BYTEARRAY8` instruction.
      #
      # @note introduces in protocol 5.
      #
      class ByteArray8 < Instruction

        include HasLengthAndValue

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