(&self)
| 3180 | } |
| 3181 | impl MibTable { |
| 3182 | fn as_slice(&self) -> &[IpHelper::MIB_IF_ROW2] { |
| 3183 | unsafe { |
| 3184 | let p = self.ptr.as_ptr(); |
| 3185 | let ptr = &raw const (*p).Table as *const IpHelper::MIB_IF_ROW2; |
| 3186 | core::slice::from_raw_parts(ptr, (*p).NumEntries as usize) |
| 3187 | } |
| 3188 | } |
| 3189 | } |
| 3190 | impl Drop for MibTable { |
| 3191 | fn drop(&mut self) { |