|
ActiveLib
|
#include <HexTransport.h>
Public Member Functions | |
| bool | send (const utility::BufferIn &source, const utility::BufferOut &destination, utility::Memory::sizeOption howMany=std::nullopt) const |
| bool | receive (const utility::BufferOut &destination, const utility::BufferIn &source, utility::Memory::sizeOption howMany=std::nullopt) const |
| std::optional< uint32_t > | receive (const utility::String &source) const |
A serialisation tool class to send/receive data encoded as hex characters
| bool HexTransport::receive | ( | const utility::BufferOut & | destination, |
| const utility::BufferIn & | source, | ||
| utility::Memory::sizeOption | howMany = std::nullopt ) const |
Receive specified data from a stream of hex characters
| destination | The buffer to receive the data |
| source | The hex stream source |
| howMany | The number of bytes to import (nullopt = to eof) |


| std::optional< uint32_t > HexTransport::receive | ( | const utility::String & | source | ) | const |
Receive an integer from the specified hex chars
| source | The hex stream source |

| bool HexTransport::send | ( | const utility::BufferIn & | source, |
| const utility::BufferOut & | destination, | ||
| utility::Memory::sizeOption | howMany = std::nullopt ) const |
Export specified data as hex chars
| source | The data to send (NB: binary data is assumed to be big-endian - prepare the source accordingly) |
| destination | The destination buffer for the exported hex chars |
| howMany | The number of bytes to export (nullopt = to eof) |
