34 unsigned long nActualRead = 0;
48 reinterpret_cast<uint8_t*>(Buffer), nActualReturn);
56 unsigned long ret = 0;
57 ftdi_write(Buffer, (
unsigned long)Count, &ret);
size_t available() const
The maximum number of elements that can be written ("push") without rising an overflow error...
void ftdi_write(const void *lpvBuffer, unsigned long dwBuffSize, unsigned long *lpdwBytes)
size_t Write(const void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for writing to the stream.
mrpt::containers::circular_buffer< uint8_t > m_readBuffer
Used in Read.
uint64_t Seek(int64_t Offset, CStream::TSeekOrigin Origin=sFromBeginning) override
This virtual method does nothing in this class.
size_t Read(void *Buffer, size_t Count) override
Introduces a pure virtual method responsible for reading from the stream.
uint64_t getPosition() const override
This virtual method does nothing in this class.
size_t size() const
Return the number of elements available for read ("pop") in the buffer (this is NOT the maximum size ...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void pop_many(T *out_array, size_t count)
Pop a number of elements into a user-provided array.
void ftdi_read(void *lpvBuffer, unsigned long dwBuffSize, unsigned long *lpdwBytesRead)
size_t ReadBufferImmediate(void *Buffer, size_t Count) override
Reads a block of bytes from the stream into Buffer, and returns the amound of bytes actually read...
uint64_t getTotalBytesCount() const override
This virtual method does nothing in this class.
void push_many(T *array_elements, size_t count)
Insert an array of elements in the buffer.
Serial and networking devices and utilities.