about summary refs log tree commit diff
path: root/library/std/src/sys/io/io_slice/uefi.rs
AgeCommit message (Collapse)AuthorLines
2025-08-04std: sys: io: io_slice: Add UEFI typesAyush Singh-0/+74
UEFI networking APIs do support vectored read/write. While the types for UDP4, UDP6, TCP4 and TCP6 are defined separately, they are essentially the same C struct. So we can map IoSlice and IoSliceMut to have the same binary representation. Since all UEFI networking types for read/write are DSTs, `IoSlice` and `IoSliceMut` will need to be copied to the end of the transmit/receive structures. So having the same binary representation just allows us to do a single memcpy instead of having to loop and set the DST. Signed-off-by: Ayush Singh <ayush@beagleboard.org>