Function adrs [src]
Prototype
pub fn adrs(self: *const AdrDevicePath) []align(1) const u32
Parameters
self: *const AdrDevicePath
Source
pub fn adrs(self: *const AdrDevicePath) []align(1) const u32 {
// self.length is a minimum of 8 with one adr which is size 4.
const entries = (self.length - 4) / @sizeOf(u32);
return @as([*]align(1) const u32, @ptrCast(&self.adr))[0..entries];
}