Lines Matching refs:stream
52 typedef deStreamResult (*deIOStreamReadFunc) (deStreamData* stream, void* buf, deInt32 bufSize, de…
53 typedef deStreamResult (*deIOStreamWriteFunc) (deStreamData* stream, const void* buf, deInt32 bufS…
54 typedef const char* (*deIOStreamGetErrorFunc) (deStreamData* stream);
55 typedef deStreamResult (*deIOStreamFlushFunc) (deStreamData* stream);
56 typedef deStreamResult (*deIOStreamDeinitFunc) (deStreamData* stream);
57 typedef deStreamStatus (*deIOStreamStatusFunc) (deStreamData* stream);
77 DE_INLINE deStreamResult deIOStream_read (deIOStream* stream, void* buf, deInt32 bufSize, deInt32…
78 DE_INLINE deStreamResult deIOStream_write (deIOStream* stream, const void* buf, deInt32 bufSize, d…
79 DE_INLINE const char* deIOStream_getError (deIOStream* stream);
80 DE_INLINE deStreamStatus deIOStream_getStatus (deIOStream* stream);
81 DE_INLINE deStreamResult deIOStream_flush (deIOStream* stream);
82 DE_INLINE deStreamResult deIOStream_deinit (deIOStream* stream);
86 DE_INLINE deStreamResult deIOStream_write (deIOStream* stream, const void* buf, deInt32 bufSize, de… in deIOStream_write() argument
88 DE_ASSERT(stream); in deIOStream_write()
89 DE_ASSERT(stream->vfTable); in deIOStream_write()
90 DE_ASSERT(stream->vfTable->writeFunc); in deIOStream_write()
92 return stream->vfTable->writeFunc(stream->streamData, buf, bufSize, numWritten); in deIOStream_write()
95 DE_INLINE deStreamResult deIOStream_read (deIOStream* stream, void* buf, deInt32 bufSize, deInt32* … in deIOStream_read() argument
97 DE_ASSERT(stream); in deIOStream_read()
98 DE_ASSERT(stream->vfTable); in deIOStream_read()
99 DE_ASSERT(stream->vfTable->readFunc); in deIOStream_read()
101 return stream->vfTable->readFunc(stream->streamData, buf, bufSize, numRead); in deIOStream_read()
104 DE_INLINE const char* deIOStream_getError (deIOStream* stream) in deIOStream_getError() argument
106 DE_ASSERT(stream); in deIOStream_getError()
107 DE_ASSERT(stream->vfTable); in deIOStream_getError()
108 DE_ASSERT(stream->vfTable->getErrorFunc); in deIOStream_getError()
110 return stream->vfTable->getErrorFunc(stream->streamData); in deIOStream_getError()
113 DE_INLINE deStreamResult deIOStream_flush (deIOStream* stream) in deIOStream_flush() argument
115 DE_ASSERT(stream); in deIOStream_flush()
116 DE_ASSERT(stream->vfTable); in deIOStream_flush()
117 DE_ASSERT(stream->vfTable->flushFunc); in deIOStream_flush()
119 return stream->vfTable->flushFunc(stream->streamData); in deIOStream_flush()
122 DE_INLINE deStreamResult deIOStream_deinit (deIOStream* stream) in deIOStream_deinit() argument
125 DE_ASSERT(stream); in deIOStream_deinit()
126 DE_ASSERT(stream->vfTable); in deIOStream_deinit()
127 DE_ASSERT(stream->vfTable->deinitFunc); in deIOStream_deinit()
129 result = stream->vfTable->deinitFunc(stream->streamData); in deIOStream_deinit()
131 stream->vfTable = DE_NULL; in deIOStream_deinit()
132 stream->streamData = DE_NULL; in deIOStream_deinit()
137 DE_INLINE deStreamStatus deIOStream_getStatus (deIOStream* stream) in deIOStream_getStatus() argument
139 DE_ASSERT(stream); in deIOStream_getStatus()
140 DE_ASSERT(stream->vfTable); in deIOStream_getStatus()
141 DE_ASSERT(stream->vfTable->statusFunc); in deIOStream_getStatus()
143 return stream->vfTable->statusFunc(stream->streamData); in deIOStream_getStatus()