Class: Python::Pickle::Instructions::Long1

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

Overview

Note:

introduces in protocol 1.

Represents the LONG1 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) ⇒ Long1

Initializes the LONG1 instruction.

Parameters:

  • length (Integer)

    The length of the LONG1 value in bytes.

  • value (Long1)

    The LONG1 instruction's value.



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

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