Pin
Loading...
Searching...
No Matches
Public Attributes | List of all members
RPC_arg Struct Reference

#include <rscprotomsgtypes.h>

Public Attributes

uint64_t argData
 
size_t argDataSize
 
void(* deleter )(void *)
 
t_rpc_arg_schema argSchema
 
E_rpc_arg_flags flags
 

Member Data Documentation

◆ argData

uint64_t RPC_arg::argData

The actual data of the argument.

The interpretation of this field varies.

If argDataSize <= sizeof(uint64_t) then the actual data is stored inside the argData variable If argDataSize > sizeof(uint64_t) then argData holds the value of a pointer to the memory actually holding the data. For RpcBuffer, argData always holds the value of a pointer to the memory holding the buffer. For RpcRecord and RpcArray, argData holds the value of a pointer to an array of t_rpc_arg, an arg for each record member/array element, and argDataSize holds the number of array elements / number of record members. For how to encode and decode records and arrays, see a section at the bottom of the file.

◆ deleter

void(* RPC_arg::deleter) (void *)

Deleter function pointer to be used to release argument data.

If this value is NULL then the free function defined in the rsc state will be used.


The documentation for this struct was generated from the following file: