8 #include <boost/asio.hpp>
13 :
DummyProtocol0(parent), _nextAddressInWords(0), _nWordsLeft(0) {}
27 uint32_t addressInWords = buffer.at(1);
28 uint64_t addressInBytes = addressInWords * 4;
29 uint32_t nWordsTotal = buffer.at(2);
31 if((buffer.size() - 3) < nWordsTotal) {
32 uint32_t nWordsInThisBuffer = buffer.size() - 3;
37 BAR, addressInBytes,
reinterpret_cast<int32_t*
>(&(buffer.at(3))), 4 * nWordsInThisBuffer);
51 uint32_t nWordsInThisBuffer = buffer.size();
54 reinterpret_cast<int32_t*
>(buffer.data()), 4 * nWordsInThisBuffer);
64 reinterpret_cast<int32_t*
>(buffer.data()), 4 *
_nWordsLeft);