euv-core 0.57.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
use super::*;

/// RAII wrapper owning a read-only OS virtual memory mapping (`mmap` on Unix, `MapViewOfFile` on Windows).
#[cfg(any(unix, windows))]
#[derive(Debug)]
pub(crate) struct EuvPakOsMap {
    /// Non-null base address of the read-only OS virtual memory mapping.
    pub(crate) ptr: NonNull<u8>,
    /// Mapped byte length (always strictly positive).
    pub(crate) len: usize,
    /// Win32 file-mapping kernel handle closed alongside unmapping on drop.
    #[cfg(windows)]
    pub(crate) mapping_handle: *mut c_void,
}

/// Read-only backing byte mapping for an `.euvpak` virtual filesystem archive.
#[derive(Clone, Debug)]
pub struct EuvPakMapping {
    /// Shared immutable heap buffer or OS virtual memory map.
    pub(crate) backing: EuvPakBacking,
}