17 const std::int32_t m_channels,
18 const std::int32_t m_depth,
19 const std::int32_t size) :
22 m_channels(m_channels),
31 if (!read_m_samples(reader)) {
34 if (!read_m_channels(reader)) {
37 if (!read_m_depth(reader)) {
40 if (!read_size(reader)) {
65 if (!write_m_samples(writer)) {
68 if (!write_m_channels(writer)) {
71 if (!write_m_depth(writer)) {
74 if (!write_size(writer)) {
bool write(const yarp::os::idl::WireWriter &writer) const override
bool read(yarp::os::idl::WireReader &reader) override
audioBufferSizeData()=default
std::string toString() const
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.
bool readI32(std::int32_t &x)
IDL-friendly connection writer.
bool writeI32(std::int32_t x, bool skip_tag=false) const
bool writeListHeader(int len) const
For streams capable of holding different kinds of content, check what they actually have.