|
iDRS™ SDK 16
|
Interface for CFileStream wrapper. More...
Go to the source code of this file.
Functions | |
| CFileStream | CFileStream_Create (const idrs_string strFileName, enum FileStreamMode const evFileStreamMode, idrs_exception *pargException) |
| Create creates a CFileStream object and opens the stream. | |
| CFileStream | CFileStream_Create2 (const idrs_string strFileName, idrs_exception *pargException) |
| Create creates a CFileStream object and opens the stream. | |
| void | CFileStream_Open (CFileStream argCFileStream, const idrs_string strFileName, enum FileStreamMode const evFileStreamMode, idrs_exception *pargException) |
| Open opens a stream. | |
| void | CFileStream_Open2 (CFileStream argCFileStream, const idrs_string strFileName, idrs_exception *pargException) |
| Open opens a stream. | |
| enum FileStreamMode | CFileStream_GetFileStreamMode (const CFileStream argCFileStream, idrs_exception *pargException) |
| GetFileStreamMode returns the open file mode. | |
| IDRS_UINT | CFileStream_Read (CFileStream argCFileStream, IDRS_PVOID pvMem, IDRS_UINT const uiToRead, idrs_exception *pargException) |
| Read reads data from the stream at the current stream position. | |
| IDRS_UINT | CFileStream_Write (CFileStream argCFileStream, IDRS_CPVOID pvMem, IDRS_UINT const uiToWrite, idrs_exception *pargException) |
| Write writes data in the stream at the current position. | |
| void | CFileStream_Close (CFileStream argCFileStream, idrs_exception *pargException) |
| Closes the current opened file. | |
| IDRS_UINT64 | CFileStream_Seek (CFileStream argCFileStream, IDRS_INT64 const iOffset, enum SeekPosition const evPos, idrs_exception *pargException) |
| Seek changes the current position in the file stream. | |
| IDRS_BOOL | CFileStream_IsOpen (const CFileStream argCFileStream, idrs_exception *pargException) |
| IsOpen tests if the file stream is opened in read or write mode. | |
| IDRS_BOOL | CFileStream_IsWriteOpen (const CFileStream argCFileStream, idrs_exception *pargException) |
| IsWriteOpen tests if the file stream is opened in write mode. | |
| IDRS_BOOL | CFileStream_IsReadOpen (const CFileStream argCFileStream, idrs_exception *pargException) |
| IsReadOpen tests if the file stream is opened in read mode. | |
| void | CFileStream_Delete (const idrs_string strFileName, idrs_exception *pargException) |
| Deletes the file specified. | |
| void | CFileStream_Destroy (CFileStream argCFileStream, idrs_exception *pargException) |
| Destroys a CFileStream handle. | |
Interface for CFileStream wrapper.
| void CFileStream_Close | ( | CFileStream | argCFileStream, |
| idrs_exception * | pargException | ||
| ) |
Closes the current opened file.
Closes the file currently associated with the object, disassociating it from the stream. Any pending output sequence is written to the physical file.
| argCFileStream | CFileStream handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CFileStream CFileStream_Create | ( | const idrs_string | strFileName, |
| enum FileStreamMode const | evFileStreamMode, | ||
| idrs_exception * | pargException | ||
| ) |
Create creates a CFileStream object and opens the stream.
| strFileName | The name of the file to open. |
| evFileStreamMode | The mode to open the file, by default Read. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CFileStream CFileStream_Create2 | ( | const idrs_string | strFileName, |
| idrs_exception * | pargException | ||
| ) |
Create creates a CFileStream object and opens the stream.
| strFileName | The name of the file to open. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CFileStream_Delete | ( | const idrs_string | strFileName, |
| idrs_exception * | pargException | ||
| ) |
Deletes the file specified.
| strFileName | The name of the file to delete. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CFileStream_Destroy | ( | CFileStream | argCFileStream, |
| idrs_exception * | pargException | ||
| ) |
Destroys a CFileStream handle.
| argCFileStream | CFileStream handle to destroy |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| enum FileStreamMode CFileStream_GetFileStreamMode | ( | const CFileStream | argCFileStream, |
| idrs_exception * | pargException | ||
| ) |
GetFileStreamMode returns the open file mode.
| argCFileStream | CFileStream handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_BOOL CFileStream_IsOpen | ( | const CFileStream | argCFileStream, |
| idrs_exception * | pargException | ||
| ) |
IsOpen tests if the file stream is opened in read or write mode.
| IDRS_TRUE | if the file stream is opened |
| IDRS_FALSE | otherwise |
| argCFileStream | CFileStream handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_BOOL CFileStream_IsReadOpen | ( | const CFileStream | argCFileStream, |
| idrs_exception * | pargException | ||
| ) |
IsReadOpen tests if the file stream is opened in read mode.
| IDRS_TRUE | if the file stream is opened in read mode. |
| IDRS_FALSE | otherwise. |
| argCFileStream | CFileStream handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_BOOL CFileStream_IsWriteOpen | ( | const CFileStream | argCFileStream, |
| idrs_exception * | pargException | ||
| ) |
IsWriteOpen tests if the file stream is opened in write mode.
| IDRS_TRUE | if the file stream is opened in write mode. |
| IDRS_FALSE | otherwise. |
| argCFileStream | CFileStream handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CFileStream_Open | ( | CFileStream | argCFileStream, |
| const idrs_string | strFileName, | ||
| enum FileStreamMode const | evFileStreamMode, | ||
| idrs_exception * | pargException | ||
| ) |
Open opens a stream.
Closes the currently opened stream if necessary.
| argCFileStream | CFileStream handle |
| strFileName | The name of the file to open. |
| evFileStreamMode | The mode to open the file, by default Read. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CFileStream_Open2 | ( | CFileStream | argCFileStream, |
| const idrs_string | strFileName, | ||
| idrs_exception * | pargException | ||
| ) |
Open opens a stream.
Closes the currently opened stream if necessary.
| argCFileStream | CFileStream handle |
| strFileName | The name of the file to open. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_UINT CFileStream_Read | ( | CFileStream | argCFileStream, |
| IDRS_PVOID | pvMem, | ||
| IDRS_UINT const | uiToRead, | ||
| idrs_exception * | pargException | ||
| ) |
Read reads data from the stream at the current stream position.
| argCFileStream | CFileStream handle |
| pvMem | The buffer that will receive the data. |
| uiToRead | The number of bytes to transfer. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_UINT64 CFileStream_Seek | ( | CFileStream | argCFileStream, |
| IDRS_INT64 const | iOffset, | ||
| enum SeekPosition const | evPos, | ||
| idrs_exception * | pargException | ||
| ) |
Seek changes the current position in the file stream.
| argCFileStream | CFileStream handle |
| iOffset | The number of bytes to move the pointer. |
| evPos | Pointer movement mode (from begin, current, or end position). |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_UINT CFileStream_Write | ( | CFileStream | argCFileStream, |
| IDRS_CPVOID | pvMem, | ||
| IDRS_UINT const | uiToWrite, | ||
| idrs_exception * | pargException | ||
| ) |
Write writes data in the stream at the current position.
| argCFileStream | CFileStream handle |
| pvMem | The buffer that contains the data to write. |
| uiToWrite | The number of bytes to write. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |