Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

encode_as

Fully qualified path: alexandria_encoding::sol_abi::encode_as

Traits

SolAbiEncodeAsTraitEncode trait for arbitrarily sized encodings, meant to allow easy bytesX type encodings. Encode the value x as Bytes with a specific byteSize ….

Impls

SolAbiEncodeAsU256Encode as from int types Integers are encoded as byteSize bytes, which are right-aligned/left-padded Big-endian.
SolAbiEncodeAsU128
SolAbiEncodeAsFelt252
SolAbiEncodeAsBytes31
SolAbiEncodeAsBytesEncode as from bytes types Bytes are encoded as byteSize bytes, which are left-aligned/right-padded.
SolAbiEncodeAsByteArray