Expand description
Partition: ring buffer in leased memory with slot-based indexing.
Each partition is a bounded ring buffer backed by a MemLease. Messages
are serialized into fixed-size slots. When the buffer wraps, old messages
are overwritten (log compaction by offset).
§Memory layout
Offset 0: [header] write_offset: u64 (8) | capacity: u64 (8) | stride: u64 (8) | msg_count: u64 (8)
Offset 32: [slots] slot 0 (stride bytes) | slot 1 | ... | slot (capacity-1)Structs§
- Partition
- A single partition backed by a memory lease.