euv-core 0.46.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Default resident memory budget for `TextShapingCache` (4 MiB) before LRU eviction activates.
pub const TEXT_SHAPING_DEFAULT_BUDGET_BYTES: usize = 4 * 1024 * 1024;

/// Minimum configurable resident memory budget for `TextShapingCache` (4 KiB).
pub const TEXT_SHAPING_MIN_BUDGET_BYTES: usize = 4 * 1024;

/// Fixed per-entry metadata overhead counted toward `TextShapingCache::resident_bytes`.
pub(crate) const TEXT_SHAPING_ENTRY_OVERHEAD_BYTES: usize = 96;

/// Primary 64-bit FNV-1a offset basis for shaping key hashing.
pub(crate) const SHAPING_FNV_OFFSET_A: u64 = 0xcbf2_9ce4_8422_2325;

/// Secondary 64-bit hash seed for 128-bit collision-resistant shaping keys.
pub(crate) const SHAPING_FNV_OFFSET_B: u64 = 0x8422_2325_cbf2_9ce4;

/// 64-bit FNV-1a prime multiplier.
pub(crate) const SHAPING_FNV_PRIME: u64 = 0x0000_0100_0000_01b3;