Displaying 1 result from an estimated 1 matches for "mystreamptr".
2001 Sep 25
2
Couple more problems (ov_open_callbacks)
...ode around the sample code, and I check my error returns fairly
religiously. The only weird thing I'm doing is using
ov_open_callbacks(). My callback routines simply read data out of an
in-memory bit bucket, so there's not much code there, e.g. my read
function is basically:
memcpy(pDst, myStreamPtr, bytes );
myStreamPtr += bytes;
..etc. etc. I didn't bother implementing a close function (I just
stubbed it out).
Looking at my read callback, I always seem to get requests for one
object of varying size. I've modeled my callbacks on the stream IO CRTL
stuff (fseek/fread/ftell/fclose),...