Class: Python::Pickle::Instructions::ShortBinBytes

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

Overview

Note:

introduces in protocol 3.

Represents the SHORT_BINBYTES 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) ⇒ ShortBinBytes

Initializes the SHORT_BINBYTES instruction.

Parameters:

  • length (Integer)

    The length of the SHORT_BINBYTES value.

  • value (String)

    The SHORT_BINBYTES instruction's value.



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

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