libmizu 0.0.1
Lock-free shared-memory IPC
Loading...
Searching...
No Matches
Data Fields
mizu_morsel_hdr_s Struct Reference

The 128-byte region header. More...

#include <mizu_ext.h>

Data Fields

uint32_t magic
 MIZU_MORSEL_MAGIC.
 
uint32_t version
 MIZU_ABI_VERSION.
 
uint32_t flags
 reserved, 0
 
uint32_t x_kind
 MIZU_MORSEL_X_*.
 
uint32_t x_type
 raw x section wire type (MIZU_TYPE_*)
 
uint32_t out_type
 template element wire type; 0 = no output
 
uint32_t out_elt
 template element size, bytes
 
uint32_t claim_n
 CLAIM word count (runner ordinal bound)
 
uint64_t n
 map elements
 
uint64_t desc_off
 
uint64_t desc_len
 
uint64_t x_off
 
uint64_t x_len
 
uint64_t out_off
 
uint64_t out_m
 template length: values per element
 
uint64_t morsel_size
 elements per morsel
 
uint64_t n_morsels
 ceiling(n / morsel_size)
 
uint64_t state_off
 morsel state section offset
 
uint8_t pad [16]
 

Detailed Description

The 128-byte region header.

Not pool wire format — it rides its own region, keyed by the same ABI version — but the same rules apply: the struct is the layout, 64-byte-aligned sections follow it.


The documentation for this struct was generated from the following file: