Sha256: a82b4fbadb29f88aa85981664b749282dfc223c36f27571100e8c9eff8d64a99
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
require 'bindata' require 'pio/monkey_patch/uint' require 'pio/open_flow/transaction_id' require 'pio/open_flow/version' module Pio module OpenFlow # OpenFlow message header parser class Header < BinData::Record endian :big version :version uint8 :type uint16 :message_length transaction_id :transaction_id rest :body def to_bytes [version, type, message_length, transaction_id].map(&:to_bytes).join(', ') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pio-0.30.1 | lib/pio/open_flow/header.rb |