A simple abstraction for a block of bytes. More...
#include <Bytes.h>
Public Member Functions | |
| Bytes () | |
| Default constructor. | |
| Bytes (char *data, int len) | |
| Constructor. | |
| int | length () const |
| char * | get () const |
A simple abstraction for a block of bytes.
This class is not responsible for allocating or destroying those bytes, just recording their location.
| yarp::os::Bytes::Bytes | ( | ) | [inline] |
Default constructor.
No data present.
| yarp::os::Bytes::Bytes | ( | char * | data, | |
| int | len | |||
| ) | [inline] |
Constructor.
| data | address of data block | |
| len | length of data block |
| char* yarp::os::Bytes::get | ( | ) | const [inline] |
Referenced by yarp::os::impl::StringInputStream::add(), yarp::os::impl::BufferedConnectionWriter::addPool(), yarp::os::impl::XmlRpcCarrier::checkHeader(), yarp::os::impl::TextCarrier::checkHeader(), yarp::os::impl::NameserCarrier::checkHeader(), yarp::os::impl::MjpegCarrier::checkHeader(), yarp::os::impl::LocalCarrier::checkHeader(), HumanCarrier::checkHeader(), yarp::os::impl::HttpCarrier::checkHeader(), yarp::os::impl::Protocol::createYarpNumber(), yarp::os::impl::BottleImpl::fromBytes(), yarp::os::ManagedBytes::get(), yarp::os::impl::XmlRpcCarrier::getHeader(), yarp::os::impl::TextCarrier::getHeader(), yarp::os::impl::TcpRosCarrier::getHeader(), yarp::os::impl::NameserCarrier::getHeader(), yarp::os::impl::MjpegCarrier::getHeader(), yarp::os::impl::LocalCarrier::getHeader(), HumanCarrier::getHeader(), yarp::os::impl::HttpCarrier::getHeader(), yarp::os::impl::Protocol::interpretYarpNumber(), yarp::os::impl::NetType::netInt(), yarp::os::impl::SocketTwoWayStream::partialRead(), yarp::os::impl::TcpRosStream::read(), yarp::os::impl::StringInputStream::read(), yarp::os::impl::SocketTwoWayStream::read(), yarp::os::impl::ShmemInputStreamImpl::read(), yarp::os::impl::NameserTwoWayStream::read(), yarp::os::impl::MjpegStream::read(), yarp::os::impl::InputStream::read(), HumanStream::read(), yarp::os::impl::DgramTwoWayStream::read(), PortReaderPacket::setEnvelope(), yarp::os::impl::TcpRosCarrier::setParameters(), yarp::os::impl::HttpCarrier::setParameters(), yarp::os::impl::BottleImpl::toBytes(), yarp::os::impl::StringOutputStream::write(), yarp::os::impl::SocketTwoWayStream::write(), yarp::os::impl::ShmemOutputStreamImpl::write(), yarp::os::impl::PortCommand::write(), yarp::os::impl::OutputStream::write(), HumanStream::write(), yarp::os::impl::HttpTwoWayStream::write(), and yarp::os::impl::DgramTwoWayStream::write().
| int yarp::os::Bytes::length | ( | ) | const [inline] |
Referenced by yarp::os::impl::StringInputStream::add(), yarp::os::impl::BufferedConnectionWriter::addPool(), yarp::os::impl::XmlRpcCarrier::checkHeader(), yarp::os::impl::TextCarrier::checkHeader(), yarp::os::impl::TcpRosCarrier::checkHeader(), yarp::os::impl::NameserCarrier::checkHeader(), yarp::os::impl::MjpegCarrier::checkHeader(), yarp::os::impl::LocalCarrier::checkHeader(), HumanCarrier::checkHeader(), yarp::os::impl::HttpCarrier::checkHeader(), yarp::os::impl::Protocol::createYarpNumber(), yarp::os::impl::StreamConnectionReader::expectBlock(), yarp::os::impl::StreamConnectionReader::expectDouble(), yarp::os::impl::StreamConnectionReader::expectInt(), yarp::os::impl::StreamConnectionReader::expectString(), yarp::os::impl::BottleImpl::fromBytes(), yarp::os::impl::XmlRpcCarrier::getHeader(), yarp::os::impl::TextCarrier::getHeader(), yarp::os::impl::TcpRosCarrier::getHeader(), yarp::os::impl::NameserCarrier::getHeader(), yarp::os::impl::MjpegCarrier::getHeader(), yarp::os::impl::LocalCarrier::getHeader(), HumanCarrier::getHeader(), yarp::os::impl::HttpCarrier::getHeader(), yarp::os::impl::Protocol::interpretYarpNumber(), yarp::os::ManagedBytes::length(), yarp::os::impl::NetType::netInt(), yarp::os::impl::SocketTwoWayStream::partialRead(), yarp::os::impl::TcpRosStream::read(), yarp::os::impl::StringInputStream::read(), yarp::os::impl::SocketTwoWayStream::read(), yarp::os::impl::ShmemInputStreamImpl::read(), yarp::os::impl::NameserTwoWayStream::read(), yarp::os::impl::MjpegStream::read(), HumanStream::read(), yarp::os::impl::DgramTwoWayStream::read(), yarp::os::impl::NetType::readFull(), PortReaderPacket::setEnvelope(), yarp::os::impl::TcpRosCarrier::setParameters(), yarp::os::impl::HttpCarrier::setParameters(), yarp::os::impl::BottleImpl::toBytes(), yarp::os::impl::StringOutputStream::write(), yarp::os::impl::SocketTwoWayStream::write(), yarp::os::impl::ShmemOutputStreamImpl::write(), yarp::os::impl::PortCommand::write(), HumanStream::write(), yarp::os::impl::HttpTwoWayStream::write(), and yarp::os::impl::DgramTwoWayStream::write().
1.7.1