14 #include <sys/ioctl.h> 15 #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 void cancelIo(void) const
Cancel any pending io requests.
struct XsByteArray XsByteArray
virtual XsResultValue setWritePosition(XsFilePos pos=-1)
Set the new absolute write position.
virtual XsResultValue deleteData(XsFilePos start, XsSize length)
Delete the given data from the file.
virtual bool isReadOnly(void) const
Return whether the file is readonly or not.
virtual XsResultValue closeAndDelete(void)
Close the file and delete it.
size_t XsSize
XsSize must be unsigned number!
virtual XsResultValue setReadPosition(XsFilePos pos)
Set the new absolute read position.
virtual XsFilePos getReadPosition(void) const
Return the current read position.
XsResultValue
Xsens result values.
__int64 XsFilePos
The type that is used for positioning inside a file.
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 setTimeout(uint32_t ms)
Set the default timeout value to use in blocking operations.
virtual XsResultValue appendData(const XsByteArray &bdata)
Write data to the end of the file.
virtual XsResultValue waitForData(XsSize maxLength, XsByteArray &data)
Wait for data to arrive or a timeout to occur.
virtual XsFilePos getWritePosition(void) const
Return the current write position.
virtual XsResultValue find(const XsByteArray &needleV, XsFilePos &pos)
Find a string of bytes in the file.
virtual XsResultValue getName(XsString &filename) const
Retrieve the filename that was last successfully opened.
GLuint GLsizei GLsizei * length
virtual XsResultValue create(const XsString &filename)
Create an empty file.
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
unsigned __int32 uint32_t
GLsizei GLsizei GLenum GLenum const GLvoid * data
virtual XsResultValue insertData(XsFilePos start, const XsByteArray &data)
Insert the given data into the file.
virtual XsFilePos getFileSize(void) const
Return the size of the file.