Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

bytes

Fully qualified path: alexandria_bytes::bytes

Constants

BYTES_PER_ELEMENTBytes is a dynamic array of u128, where each element contains 16 bytes.

Structs

BytesNote that: In Bytes, there are many variables about size and length. We use size to represent the number of bytes in Bytes. We use length to represent the number of elements in Bytes….

Traits

Impls

BytesIndexImplementation of IndexView trait for Bytes. Allows indexing into the Bytes structure to access individual u128 elements.
ByteArrayIntoBytesImplementation for converting a ByteArray to a Bytes struct This conversion creates a new Bytes structure from a ByteArray by iterating…
BytesIntoByteArrayImplementation for converting a Bytes struct to a ByteArray This conversion efficiently transfers data from a Bytes structure to a ByteArray…