Sha256: f267939a070fe7789c0bbbea9cdb8293c7101b63138ac81c00b74a886b4e0364
Contents?: true
Size: 429 Bytes
Versions: 6
Compression:
Stored size: 429 Bytes
Contents
# encoding: utf-8 require 'bindata' module Pio class Lldp # Time to live TLV class TtlTlv < BinData::Primitive endian :big bit7 :tlv_type, value: 3 bit9 :tlv_info_length, value: 2 string :ttl, read_length: :tlv_info_length def get BinData::Int16be.read(ttl) end def set(value) self.ttl = BinData::Int16be.new(value).to_binary_s end end end end
Version data entries
6 entries across 6 versions & 1 rubygems