NVIDIA DriveWorks API: IO Streams
Description: This file defines objects that wrap file and memory streams.
Definition in file IOStream.h.
Go to the source code of this file.
Typedefs | |
| typedef struct dwIOStreamObject * | dwIOStreamHandle_t |
| Stream handle. More... | |
Enumerations | |
| enum | dwIOStreamFlags { DW_IOSTREAM_READ = 1 << 0 , DW_IOSTREAM_WRITE = 1 << 1 , DW_IOSTREAM_APPEND = 1 << 2 } |
| Enumerated type for IO Stream flags (read / write / append). More... | |
Functions | |
| DW_API_PUBLIC dwStatus | dwIOStream_close (dwIOStreamHandle_t stream) |
Close a file stream that was opened with dwIOStream_openFile. More... | |
| DW_API_PUBLIC dwStatus | dwIOStream_openFile (dwIOStreamHandle_t *stream, const char8_t *path, uint64_t flags, dwContextHandle_t context) |
| Open a file stream with the given path and read / write parameters. More... | |
| DW_API_PUBLIC dwStatus | dwIOStream_wrapFileDescriptor (dwIOStreamHandle_t *stream, int posixFd) |
| Adopt a currently open POSIX file descriptor. More... | |
| typedef struct dwIOStreamObject* dwIOStreamHandle_t |
Stream handle.
Definition at line 68 of file IOStream.h.
| enum dwIOStreamFlags |
Enumerated type for IO Stream flags (read / write / append).
| Enumerator | |
|---|---|
| DW_IOSTREAM_READ | |
| DW_IOSTREAM_WRITE | |
| DW_IOSTREAM_APPEND | |
Definition at line 59 of file IOStream.h.
| DW_API_PUBLIC dwStatus dwIOStream_close | ( | dwIOStreamHandle_t | stream | ) |
Close a file stream that was opened with dwIOStream_openFile.
| stream | A dwIOStreamHandle_t to a currently open IO Stream handle. |
| DW_API_PUBLIC dwStatus dwIOStream_openFile | ( | dwIOStreamHandle_t * | stream, |
| const char8_t * | path, | ||
| uint64_t | flags, | ||
| dwContextHandle_t | context | ||
| ) |
Open a file stream with the given path and read / write parameters.
| [out] | stream | A dwIOStreamHandle_t that will be updated with the newly opened IO Stream. |
| [in] | path | The path to the stream to be opened. |
| [in] | flags | The create flags used to open the stream. |
| [in] | context | The DriveWorks context. |
| DW_API_PUBLIC dwStatus dwIOStream_wrapFileDescriptor | ( | dwIOStreamHandle_t * | stream, |
| int | posixFd | ||
| ) |
Adopt a currently open POSIX file descriptor.
| [out] | stream | A dwIOStreamHandle_t that will be updated with the newly adopted IO Stream. |
| [in] | posixFd | A POSIX file descriptor to a currently open file. |