Module bytes

Source
Expand description

Reinterpret values as byte slices and byte slices as values unsafely.

Functions§

read_slice
Read a slice of bytes into the specified slice.
read_value
Read a slice of bytes into the specified reference.
slice_as_bytes
View this slice of values as a slice of bytes.
slice_as_bytes_mut
View this slice of values as a mutable slice of bytes.
value_as_bytes
View this reference as a slice of bytes.
value_as_bytes_mut
View this reference as a mutable slice of bytes.
write_slice
View this slice as a mutable slice of bytes and write it.
write_value
View this reference as a mutable slice of bytes and write it.