Skip to main content

memlink_protocol/
magic.rs

1//! Magic numbers and protocol constants.
2//!
3//! Defines fundamental constants including magic number, protocol version,
4//! header size, and payload limits.
5
6pub const MEMLINK_MAGIC: u32 = 0x4D4C4E4B;
7
8pub const PROTOCOL_VERSION: u8 = 1;
9
10pub const HEADER_SIZE: usize = 32;
11
12pub const MAX_PAYLOAD_SIZE: usize = 64 * 1024 * 1024;
13
14pub const CONTROL_REGION_SIZE: usize = 4096;
15
16pub const MIN_PROTOCOL_VERSION: u8 = 1;