what is the best way to save RespMsg(from RFA C++ API) raw events to memory / disk and decode later when needed? The idea is to do as little as possible with the feeds and parse/decode(like a replay) them when needed. Thanks
@jzhao
Please refer to the answer in this How to encode / decode? Create RespMsg objects from Buffer? question.
rfa::message::RespMsg provides the getEncodedBuffer and setEncodedBuffer methods to get and set the encoded buffer associated with a response message, respectively.
Hi @jzhao
In general, you will have to make a copy of the data within your onRefresh callback as data within this callback is short-lived. Refer to the answer here. While that specific answer is related to the Java API, the same concepts are applied to C++.