moirai-pal 0.8.3

Platform Abstraction Layer for Moirai async I/O operations
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Portable resource law for a WebView2 rendered-frame payload.

/// Maximum PNG bytes retained by one WebView2 preview capture.
///
/// The bound matches the maximum RGBA8 presentation payload for one surface
/// (`16,777,216` pixels × four channels). A compressed preview is rejected
/// before allocation when it exceeds the same memory budget.
pub const MAX_WEBVIEW_CAPTURE_BYTES: usize = crate::frame::MAX_FRAME_PIXELS * 4;

#[path = "capture/base64.rs"]
pub(crate) mod base64;