pub fn size(self: *const DevicePath) usize self: *const DevicePath36
37
38
39
40
41
42
43
44 pub fn size(self: *const DevicePath) usize {
var node = self;
while (node.next()) |next_node| {
node = next_node;
}
return (@intFromPtr(node) + node.length) - @intFromPtr(self);
}
Calculates the total length of the device path structure in bytes, including the end of device path node.