Class: Python::Pickle::Instructions::BinBytes8

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

Overview

Note:

introduces in protocol 4.

Represents the BINBYTES8 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) ⇒ BinBytes8

Initializes the BINBYTES8 instruction.

Parameters:

  • length (Integer)

    The length of the BINBYTES8 value.

  • value (String)

    The BINBYTES8 instruction's value.



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

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