7 #ifndef YARP_OS_MANAGEDBYTES_H
8 #define YARP_OS_MANAGEDBYTES_H
83 void allocate(
size_t len);
85 bool allocateOnNeed(
size_t neededLen,
size_t allocateLen);
95 size_t length()
const;
106 const char* get()
const;
122 const Bytes& bytes()
const;
145 size_t setUsed(
size_t used);
A simple abstraction for a block of bytes.
An interface for reading from a network connection.
An interface for writing to a network connection.
An abstraction for a block of bytes, with optional responsibility for allocating/destroying that bloc...
This is a base class for objects that can be both read from and be written to the YARP network.
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
The main, catch-all namespace for YARP.