Skip to main content

build_closure_call_request

Function build_closure_call_request 

Source
pub fn build_closure_call_request(
    program: &BytecodeProgram,
    function_id: u16,
    arguments: Vec<SerializableVMValue>,
    upvalues: Vec<SerializableVMValue>,
) -> RemoteCallRequest
Expand description

Build a RemoteCallRequest for a closure.

Serializes the closure’s captured upvalues alongside the function call. When the closure’s function has a matching content-addressed blob, sends the minimal blob set instead of the full program.