Class: Pio::PacketOut::Body

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/pio/packet_out.rb

Overview

Message body of Packet-Out

Instance Method Summary collapse

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/pio/packet_out.rb', line 18

def empty?
  false
end

#lengthObject



22
23
24
# File 'lib/pio/packet_out.rb', line 22

def length
  8 + actions_len + data.length
end