Sha256: 67f164b8efd2a17f8017a9b2bfeda683ae438bfe26b1e41b4dc6fa219c7539ac

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 `BINUNICODE` instruction.
      #
      # @note introduces in protocol 1.
      #
      class BinUnicode < Instruction

        include HasLengthAndValue

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