Go to the documentation of this file.
14 #include <sys/ioctl.h>
17 #include <sys/param.h>
24 #ifndef _CRT_SECURE_NO_DEPRECATE
25 #define _CRT_SECURE_NO_DEPRECATE
27 #pragma warning(disable : 4996)
34 #define FSEEK(x) _fseeki64(m_handle, x, SEEK_SET)
35 #define FSEEK_R(x) _fseeki64(m_handle, x, SEEK_END)
36 #define FTELL() _ftelli64(m_handle)
38 #define FSEEK(x) fseeko(m_handle, x, SEEK_SET)
39 #define FSEEK_R(x) fseeko(m_handle, x, SEEK_END)
40 #define FTELL() ftello(m_handle)
127 const XsString& filename,
bool createNew,
bool readOnly)
virtual XsResultValue getName(XsString &filename) const
Retrieve the filename that was last successfully opened.
virtual XsResultValue setTimeout(uint32_t ms)
Set the default timeout value to use in blocking operations.
virtual XsResultValue find(const XsByteArray &needleV, XsFilePos &pos)
Find a string of bytes in the file.
struct XsByteArray XsByteArray
virtual XsFilePos getWritePosition(void) const
Return the current write position.
virtual XsResultValue open(const XsPortInfo &portInfo, uint32_t readBufSize=XS_DEFAULT_READ_BUFFER_SIZE, uint32_t writeBufSize=XS_DEFAULT_WRITE_BUFFER_SIZE)
Open a communication channel to the given port info.
virtual XsResultValue create(const XsString &filename)
Create an empty file.
GLuint GLsizei GLsizei * length
XsResultValue
Xsens result values.
virtual XsResultValue insertData(XsFilePos start, const XsByteArray &data)
Insert the given data into the file.
GLsizei GLsizei GLenum GLenum const GLvoid * data
virtual XsResultValue deleteData(XsFilePos start, XsSize length)
Delete the given data from the file.
virtual void cancelIo(void) const
Cancel any pending io requests.
size_t XsSize
XsSize must be unsigned number!
virtual XsResultValue setWritePosition(XsFilePos pos=-1)
Set the new absolute write position.
virtual XsFilePos getFileSize(void) const
Return the size of the file.
virtual XsFilePos getReadPosition(void) const
Return the current read position.
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
virtual bool isReadOnly(void) const
Return whether the file is readonly or not.
virtual XsResultValue waitForData(XsSize maxLength, XsByteArray &data)
Wait for data to arrive or a timeout to occur.
virtual XsResultValue setReadPosition(XsFilePos pos)
Set the new absolute read position.
__int64 XsFilePos
The type that is used for positioning inside a file.
virtual XsResultValue closeAndDelete(void)
Close the file and delete it.
unsigned __int32 uint32_t
virtual XsResultValue appendData(const XsByteArray &bdata)
Write data to the end of the file.
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 | |