Sha256: 35cb533b9449afec7f4b25a339cb157e69cc1f2123fdea950e002903cdab61a3
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
# frozen_string_literal: true module Pio module OpenFlow # Buffered packet to apply to, or :no_buffer. class BufferId < BinData::Primitive NO_BUFFER = 0xffffffff endian :big uint32 :buffer_id, initial_value: NO_BUFFER def get buffer_id == NO_BUFFER ? :no_buffer : buffer_id end def set(value) self.buffer_id = (value == :no_buffer ? NO_BUFFER : value) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pio-0.30.2 | lib/pio/open_flow/buffer_id.rb |