nlib
nn::nlib::msgpack::jsonrpc::JsonRpcResponseReader Class Reference

Class that reads the JSON-RPC response byte string. More...

#include "nn/nlib/msgpack/jsonrpc/JsonRpcResponse.h"

Public Types

typedef UniquePtr< JsonRpcResponseValueType
 Stores the JSON-RPC response via UniquePtr.
 
typedef Nlist< ValueTypeListType
 Type that stores the JSON-RPC response sequence.
 

Static Public Member Functions

static errno_t ReadResponse (const void *p, size_t n, ListType *result_list)
 Creates the JsonRpcResponse object sequence from the JSON-RPC response byte string. More...
 

Detailed Description

Class that reads the JSON-RPC response byte string.

Description
This class is used from JsonRpcClient::ResolveResponse.
It does not need to be directly used if the JSON-RPC client is not being written.

Definition at line 73 of file JsonRpcResponse.h.

Member Function Documentation

nn::nlib::msgpack::jsonrpc::JsonRpcResponseReader::ReadResponse ( const void *  p,
size_t  n,
ListType result_list 
)
static

Creates the JsonRpcResponse object sequence from the JSON-RPC response byte string.

Parameters
[in]pPointer to the JSON-RPC response byte string.
[in]nSize of the byte array.
[out]result_listPointer to the object storing the JSON-RPC response.
Return values
0Success.
EINVALp or resultList is NULL or n is 0.
ENOMEMmemory allocation failed.
EILSEQJSON parsing failed, or the required key does not exist.

The documentation for this class was generated from the following files: