mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-25 08:17:58 +00:00
616f044633
Signed-off-by: xermicus <cyrill@parity.io>
29 lines
761 B
Rust
29 lines
761 B
Rust
//! The common sizes in bytes.
|
|
|
|
/// The byte-length.
|
|
pub const BYTE_LENGTH_BYTE: usize = 1;
|
|
|
|
/// The x86 word byte-length.
|
|
pub const BYTE_LENGTH_X32: usize = 4;
|
|
|
|
/// The x86_64 word byte-length.
|
|
pub const BYTE_LENGTH_X64: usize = 8;
|
|
|
|
/// EVM native stack alignment size in bytes
|
|
pub const BYTE_LENGTH_STACK_ALIGN: usize = 32;
|
|
|
|
/// The ETH address byte-length.
|
|
pub const BYTE_LENGTH_ETH_ADDRESS: usize = 20;
|
|
|
|
/// The word byte-length.
|
|
pub const BYTE_LENGTH_WORD: usize = 32;
|
|
|
|
/// Byte length of the runtime value type.
|
|
pub const BYTE_LENGTH_VALUE: usize = 32;
|
|
|
|
/// Byte length of the runtime block number type.
|
|
pub const BYTE_LENGTH_BLOCK_NUMBER: usize = 4;
|
|
|
|
/// Byte length of the runtime block timestamp type.
|
|
pub const BYTE_LENGTH_BLOCK_TIMESTAMP: usize = 4;
|