class DhcpsApi::DHCP_SUBNET_ELEMENT_INFO_ARRAY_V4
typedef struct _DHCP_SUBNET_ELEMENT_INFO_ARRAY_V4 { DWORD NumElements; LPDHCP_SUBNET_ELEMENT_DATA_V4 Elements; } DHCP_SUBNET_ELEMENT_INFO_ARRAY_V4, *LPDHCP_SUBNET_ELEMENT_INFO_ARRAY_V4;
# # DHCP_SUBNET_ELEMENT_INFO_ARRAY_V4
defines a list of DHCP subnet elements. # # Available fields: # :bum_elements [Fixnum], The number of option values in the list # :values [Array<DHCP_SUBNET_ELEMENT_DATA_V4>], Array of subnet elements # # @see msdn.microsoft.com/en-us/library/windows/desktop/ee460931(v=vs.85).aspx #
Public Instance Methods
as_ruby_struct()
click to toggle source
# File lib/dhcpsapi/data_structures.rb, line 613 def as_ruby_struct 0.upto(self[:num_elements]-1).inject([]) do |all, offset| all << DhcpsApi::DHCP_SUBNET_ELEMENT_DATA_V4.new(self[:values] + offset*DHCP_SUBNET_ELEMENT_DATA_V4.size).as_ruby_struct end end