DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

IOStream.h
Go to the documentation of this file.
1
2//
3// Notice
4// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8//
9// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10// information or for any infringement of patents or other rights of third parties that may
11// result from its use. No license is granted by implication or otherwise under any patent
12// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13// expressly authorized by NVIDIA. Details are subject to change without notice.
14// This code supersedes and replaces all information previously supplied.
15// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16// components in life support devices or systems without express written approval of
17// NVIDIA CORPORATION & AFFILIATES.
18//
19// SPDX-FileCopyrightText: Copyright (c) 2016-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21//
22// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23// property and proprietary rights in and to this material, related
24// documentation and any modifications thereto. Any use, reproduction,
25// disclosure or distribution of this material and related documentation
26// without an express license agreement from NVIDIA CORPORATION or
27// its affiliates is strictly prohibited.
28//
30
44#ifndef DWEXPERIMENTAL_CORE_IOSTREAM_H_
45#define DWEXPERIMENTAL_CORE_IOSTREAM_H_
46
48#include <dw/core/base/Types.h>
49#include <dw/core/base/Status.h>
51
52#ifdef __cplusplus
53extern "C" {
54#endif
55
59typedef enum dwIOStreamFlags {
64
68typedef struct dwIOStreamObject* dwIOStreamHandle_t;
69
85dwStatus dwIOStream_openFile(dwIOStreamHandle_t* stream, const char8_t* path, uint64_t flags, dwContextHandle_t context);
86
102
103// Reading, seeking and other interfaces intentionally omitted, as the goal of this API is not
104// to provide a replacement for stdio to users, but to serve as a way to communicate how data is
105// to be read to other DW APIs.
106
117
118#ifdef __cplusplus
119}
120#endif
121
122#endif
NVIDIA DriveWorks API: Core Methods
dwStatus
Status definition.
Definition: ErrorDefs.h:44
DW_API_PUBLIC dwStatus dwIOStream_close(dwIOStreamHandle_t stream)
Close a file stream that was opened with dwIOStream_openFile.
DW_API_PUBLIC dwStatus dwIOStream_wrapFileDescriptor(dwIOStreamHandle_t *stream, int posixFd)
Adopt a currently open POSIX file descriptor.
struct dwIOStreamObject * dwIOStreamHandle_t
Stream handle.
Definition: IOStream.h:68
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.
dwIOStreamFlags
Enumerated type for IO Stream flags (read / write / append).
Definition: IOStream.h:59
@ DW_IOSTREAM_READ
Definition: IOStream.h:60
@ DW_IOSTREAM_APPEND
Definition: IOStream.h:62
@ DW_IOSTREAM_WRITE
Definition: IOStream.h:61
NVIDIA DriveWorks API: Core Status Methods
NVIDIA DriveWorks API: Core Types
NVIDIA DriveWorks API: Core Exports
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:86
#define DW_API_PUBLIC
Definition: Exports.h:56