setup_rpc

Function setup_rpc 

Source
pub fn setup_rpc(buf: &mut [u8], rpc: &Rpc, data: &[u8]) -> usize
Expand description

Sets up an RPC command to write. This makes calls to set up payload header and TLV. returns the total payload size after setup. (Including PL header, TLV, RPC). This function is mainly used internally by our higher-level API.