DoxigAlpha

size

Calculates the total length of the device path structure in bytes, including the end of device path node.

Function parameters

Parameters

#
self:*const DevicePath

Type definitions in this namespace

Types

#

Source

Implementation

#
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);
}