rpc_session_feed

Function rpc_session_feed 

Source
pub unsafe extern "C" fn rpc_session_feed(
    session: *mut RpcSession,
    buffer: *const u8,
    size: usize,
    timeout: u32,
) -> usize
Expand description

Give bytes to RPC service to decode them and perform command

§Arguments

  • session - pointer to RpcSession descriptor
  • buffer - buffer to provide to RPC service
  • size - size of buffer
  • timeout - max timeout to wait till all buffer will be consumed

§Returns

actually consumed bytes