Rpc Class
Constructor
Rpc
()
Item Index
Methods
Methods
_makeDefaultSerialize
(
static
-
nargs
Creates a default serialization function for an RPC definition when no args
function is supplied. The resultant function simply calls desc.any(i, 16)
the appropriate number of times. This means that by default, RPC arguments
have 16 bit precision.
Parameters:
-
nargs
NumberThe number of arguments to serialize
Returns:
The serialize function
_populateIndexes
(
private
-
obj
Populate obj
with keys corresponding to the names of the argument in the
nth position of the original function and values from the indexed values in
obj
Parameters:
-
obj
ObjectThe target object containing indexed values
_populateKeys
(
private
-
obj
Populate obj
with keys corresponding to the names of the argument in the
nth position of the original function and values from the indexed values in
obj
Parameters:
-
obj
ObjectThe target object containing indexed values