class DhcpsApi::DHCP_OPTION_ARRAY
typedef struct _DHCP_OPTION_ARRAY {
DWORD NumElements; LPDHCP_OPTION Options;
} DHCP_OPTION_ARRAY
, *LPDHCP_OPTION_ARRAY;
Public Instance Methods
as_ruby_struct()
click to toggle source
# File lib/dhcpsapi/data_structures.rb, line 391 def as_ruby_struct 0.upto(self[:num_elements]-1).inject([]) do |all, offset| all << DHCP_OPTION.new(self[:options] + offset*DHCP_OPTION.size).as_ruby_struct end end