We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e551c commit ad7d619Copy full SHA for ad7d619
CHANGELOG.md
@@ -5,6 +5,7 @@
5
### Added
6
7
- Added `BootServices::install_configuration_table`.
8
+- Added `DevicePath::data()`.
9
10
### Changed
11
uefi/src/proto/device_path/mod.rs
@@ -176,6 +176,12 @@ impl DevicePathNode {
176
self.full_type() == (DeviceType::END, DeviceSubType::END_ENTIRE)
177
}
178
179
+ /// Returns the underlying data. The data depends on the node type.
180
+ #[must_use]
181
+ pub fn data(&self) -> &[u8] {
182
+ &self.data
183
+ }
184
+
185
/// Convert from a generic [`DevicePathNode`] reference to an enum
186
/// of more specific node types.
187
pub fn as_enum(&self) -> Result<DevicePathNodeEnum, NodeConversionError> {
0 commit comments