Go to the documentation of this file.
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);
uint64_t Seek(int64_t Offset, CStream::TSeekOrigin Origin=sFromBeginning)
This virtual method does nothing in this class.
uint64_t getTotalBytesCount() const
This virtual method does nothing in this class.
void pop_many(T *out_array, size_t count)
Pop a number of elements into a user-provided array.
size_t Read(void *Buffer, size_t Count)
Introduces a pure virtual method responsible for reading from the stream.
Serial and networking devices and utilities.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
virtual size_t ReadBufferImmediate(void *Buffer, size_t Count)
Reads a block of bytes from the stream into Buffer, and returns the amound of bytes actually read,...
size_t size() const
Return the number of elements available for read ("pop") in the buffer (this is NOT the maximum size ...
uint64_t getPosition() const
This virtual method does nothing in this class.
unsigned __int64 uint64_t
mrpt::containers::circular_buffer< uint8_t > m_readBuffer
Used in Read.
void push_many(T *array_elements, size_t count)
Insert an array of elements in the buffer.
size_t available() const
The maximum number of elements that can be written ("push") without rising an overflow error.
size_t Write(const void *Buffer, size_t Count)
Introduces a pure virtual method responsible for writing to the stream.
void ftdi_read(void *lpvBuffer, unsigned long dwBuffSize, unsigned long *lpdwBytesRead)
void ftdi_write(const void *lpvBuffer, unsigned long dwBuffSize, unsigned long *lpdwBytes)
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |