Commit dc25f62
committed
uefi-raw: add as_ptr() and as_mut_ptr() for IpAddress
In a nutshell, IpAddress is a buffer for Ipv4 or Ipv6
addresses. As UEFI functions consume pointers, having
this helper is very convenient, especially in
`uefi/src/proto/network/pxe.rs`.
The IpAddress type we want to replace in `uefi` with
the more mature base version from `uefi-raw` also has
corresponding helpers.
This also aligns with other data structures that act
as a buffer.1 parent 8fc2097 commit dc25f62
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
168 | 178 | | |
169 | 179 | | |
170 | 180 | | |
| |||
0 commit comments