BDataIO¶
Constructor and Destructor¶
BDataIO()
BDataIO::BDataIO()
Does nothing.
~BDataIO()
virtual BDataIO::~BDataIO()
Does nothing.
Member Functions¶
Read()
virtual ssize_t BDataIO::Read(void *buffer, size_t numBytes) = 0
Read() is implemented by derived classes to copy numBytes bytes of data from the object to the buffer. It should return the number of bytes actually read, which may be 0, or an error code if something goes wrong.
Write()
virtual ssize_t Write(const void *buffer, size_t numBytes) = 0
Write() is implemented by derived classes to copy numBytes bytes of data from the buffer to the object. It should return the number of bytes actually written, which may be 0, or an error code if the operation fails.