Function size [src]
Calculates the total length of the device path structure in bytes, including the end of device path node.
Prototype
pub fn size(self: *DevicePath) usize
Parameters
self: *DevicePath
Source
pub fn size(self: *DevicePath) usize {
var node = self;
while (node.next()) |next_node| {
node = next_node;
}
return (@intFromPtr(node) + node.length) - @intFromPtr(self);
}