Skip to main content

try_save_bytes

Function try_save_bytes 

Source
pub fn try_save_bytes(
    path: &Path,
    kind: BlobKind,
    env_fp: u64,
    chunk_blob: &[u8],
) -> Result<(), String>
Expand description

Store the bincode-encoded program for a script path. env_fp is the fingerprint taken BEFORE the run: the state the lexer started from, not the state the file left behind. Best-effort — cache disabled / canonicalize failure / mtime stat failure all return Ok(()) silently so the caller can fire-and-forget.