Skip to main content

Module v8_ipc

Module v8_ipc 

Source
Expand description

Binary IPC framing for communication with the secure-exec-v8 runtime process.

Wire format per frame: [4B total_len (u32 BE, excludes self)] [1B msg_type] [1B sid_len (N)] [N bytes session_id (UTF-8)] [… type-specific fixed fields …] [M bytes payload (rest of frame)]

Structs§

ExecutionErrorBin
Structured error from V8 execution.

Enums§

BinaryFrame
A decoded binary frame.

Functions§

decode_frame
Decode a frame from raw bytes (after the 4-byte length prefix has been read).
encode_frame
Encode a frame into a byte buffer (length prefix + body).