Class: Python::Pickle::Instructions::ByteArray8

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

Overview

Note:

introduces in protocol 5.

Represents the BYTEARRAY8 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) ⇒ ByteArray8

Initializes the BYTEARRAY8 instruction.

Parameters:

  • length (Integer)

    The length of the BYTEARRAY8 value.

  • value (String)

    The BYTEARRAY8 instruction's value.



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

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