17 const std::int32_t ncols,
18 const std::vector<double>& storage) :
29 if (!read_nrows(reader)) {
32 if (!read_ncols(reader)) {
35 if (!read_storage(reader)) {
60 if (!write_nrows(writer)) {
63 if (!write_ncols(writer)) {
66 if (!write_storage(writer)) {
203 if constexpr (expected_tag != 0) {
204 if (_csize != 0 && _etype.
code != expected_tag) {
209 if (_csize != 0 && !reader.
readBlock(
reinterpret_cast<char*
>(
storage.data()),
storage.size() *
sizeof(double))) {
245 if constexpr (expected_tag != 0) {
246 if (_csize != 0 && _etype.
code != expected_tag) {
251 if (_csize != 0 && !reader.
readBlock(
reinterpret_cast<char*
>(
storage.data()),
storage.size() *
sizeof(double))) {
#define BOTTLE_TAG_FLOAT64
A simple collection of objects that can be described and transmitted in a portable way.
std::string toString() const override
Gives a human-readable textual representation of the bottle.
An interface for reading from a network connection.
An interface for writing to a network connection.
static bool copyPortable(const PortWriter &writer, PortReader &reader)
Copy one portable to another, via writing and reading.
IDL-friendly connection reader.
void readListBegin(yarp::os::idl::WireState &nstate, size_t &len)
bool readI32(std::int32_t &x)
bool readBlock(char *const data, size_t len)
IDL-friendly connection writer.
bool writeI32(std::int32_t x, bool skip_tag=false) const
bool writeListHeader(int len) const
bool writeBlock(const char *data, size_t len) const
bool writeListEnd() const
bool writeListBegin(int tag, size_t len) const
std::vector< double > storage
bool read(yarp::os::idl::WireReader &reader) override
bool write(const yarp::os::idl::WireWriter &writer) const override
std::string toString() const