Struct uefi::proto::device_path::text::DevicePathFromText
source · #[repr(C)]pub struct DevicePathFromText { /* private fields */ }
Expand description
Device Path from Text protocol.
This protocol provides common utilities for converting text to device paths and device nodes.
Implementations§
source§impl DevicePathFromText
impl DevicePathFromText
sourcepub fn convert_text_to_device_node(
&self,
text_device_node: &CStr16
) -> Result<&DevicePathNode>
pub fn convert_text_to_device_node( &self, text_device_node: &CStr16 ) -> Result<&DevicePathNode>
Convert text to the binary representation of a device node.
text_device_node
is the text representation of a device node.
Conversion starts with the first character and continues until
the first non-device node character.
Returns an OUT_OF_RESOURCES
error if there is insufficient
memory for the conversion.
sourcepub fn convert_text_to_device_path(
&self,
text_device_path: &CStr16
) -> Result<&DevicePath>
pub fn convert_text_to_device_path( &self, text_device_path: &CStr16 ) -> Result<&DevicePath>
Convert a text to its binary device path representation.
text_device_path
is the text representation of a device path.
Conversion starts with the first character and continues until
the first non-device path character.
Returns an OUT_OF_RESOURCES
error if there is insufficient
memory for the conversion.