class DhcpsApi::DWORD_DWORD

Public Class Methods

from_int(an_int) click to toggle source
# File lib/dhcpsapi/data_structures.rb, line 111
def self.from_int(an_int)
  to_return = new
  to_return[:dword1] = ((an_int >> 32) & 0xffffffff)
  to_return[:dword2] = (an_int & 0xffffffff)
  to_return
end

Public Instance Methods

as_ruby_struct() click to toggle source
# File lib/dhcpsapi/data_structures.rb, line 118
def as_ruby_struct
  (self[:dword1] << 32) | self[:dword2]
end