Lines Matching defs:stream

83 static deStreamResult threadInStream_read (deStreamData* stream, void* buf, deInt32 bufSize, deInt32* numRead)
85 deThreadInStream* threadStream = (deThreadInStream*)stream;
89 static const char* threadInStream_getError (deStreamData* stream)
91 deThreadInStream* threadStream = (deThreadInStream*)stream;
93 /* \todo [mika] Add handling for errors on thread stream */
97 static deStreamStatus threadInStream_getStatus (deStreamData* stream)
99 deThreadInStream* threadStream = (deThreadInStream*)stream;
101 /* \todo [mika] Add handling for status on thread stream */
105 /* \note [mika] Used by both in and out stream */
106 static deStreamResult threadStream_deinit (deStreamData* stream)
108 deThreadInStream* threadStream = (deThreadInStream*)stream;
132 void deThreadInStream_init (deInStream* stream, deInStream* input, int ringbufferBlockSize, int ringbufferBlockCount)
148 stream->ioStream.vfTable = &threadInStreamVFTable;
149 stream->ioStream.streamData = threadStream;
152 static deStreamResult threadOutStream_write (deStreamData* stream, const void* buf, deInt32 bufSize, deInt32* numWritten)
154 deThreadOutStream* threadStream = (deThreadOutStream*)stream;
158 static const char* threadOutStream_getError (deStreamData* stream)
160 deThreadOutStream* threadStream = (deThreadOutStream*)stream;
162 /* \todo [mika] Add handling for errors on thread stream */
166 static deStreamStatus threadOutStream_getStatus (deStreamData* stream)
168 deThreadOutStream* threadStream = (deThreadOutStream*)stream;
170 /* \todo [mika] Add handling for errors on thread stream */
174 static deStreamResult threadOutStream_flush (deStreamData* stream)
176 deThreadOutStream* threadStream = (deThreadOutStream*)stream;
190 void deThreadOutStream_init (deOutStream* stream, deOutStream* output, int ringbufferBlockSize, int ringbufferBlockCount)
204 stream->ioStream.vfTable = &threadOutStreamVFTable;
205 stream->ioStream.streamData = threadStream;