Class: Python::Pickle::Instructions::BinString

Inherits:
Python::Pickle::Instruction show all
Includes:
HasLengthAndValue
Defined in:
lib/python/pickle/instructions/bin_string.rb

Overview

Note:

introduces in protocol 1.

Represents the BINSTRING instruction.

Instance Attribute Summary

Attributes included from HasLengthAndValue

#length, #value

Attributes inherited from Python::Pickle::Instruction

#opcode

Instance Method Summary collapse

Methods included from HasLengthAndValue

#==, #to_s

Methods inherited from Python::Pickle::Instruction

#==, #inspect, #to_s

Constructor Details

#initialize(length, value) ⇒ BinString

Initializes the BINSTRING instruction.

Parameters:

  • length (Integer)

    The length of the BINSTRING value.

  • value (String)

    The BINSTRING instruction's value.



25
26
27
# File 'lib/python/pickle/instructions/bin_string.rb', line 25

def initialize(length,value)
  super(:BINSTRING,length,value)
end