BytesIntoByteArray
Implementation for converting a Bytes struct to a ByteArray
This conversion efficiently transfers data from a Bytes structure to a ByteArray by reading data in optimal chunks (31-byte words when possible, single bytes otherwise). The conversion preserves all data and maintains byte order.
Arguments
self- The Bytes struct to convert to ByteArray
Returns
ByteArray- A new ByteArray containing all bytes from the input Bytes struct
Fully qualified path: alexandria_bytes::bytes::BytesIntoByteArray
pub impl BytesIntoByteArray of Into<Bytes, ByteArray>;
Impl functions
into
Fully qualified path: alexandria_bytes::bytes::BytesIntoByteArray::into
fn into(self: Bytes) -> ByteArray