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