[−][src]Trait gdbstub::internal::BeBytes
A trait for working with structs as big-endian byte arrays. Automatically implemented for all built-in signed/unsigned integers.
Required methods
fn to_be_bytes(self, buf: &mut [u8]) -> Option<usize>
Write the memory representation of self
as a byte array in
big-endian (network) byte order into the provided buffer.
fn from_be_bytes(buf: &[u8]) -> Option<Self>
Parse self
from a byte array in big-endian (network) byte order.
Returns None upon overflow.