Sha256: 19c40548b3f2c912c3fc3df821e560cc62a0348f39c32c7025e8619bc14b0f79

Contents?: true

Size: 707 Bytes

Versions: 3

Compression:

Stored size: 707 Bytes

Contents

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

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

        include HasLengthAndValue

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