Beispiel #1
0
bool SIMPLEAPI IsEOF(IStream* pStream)
{
	__int64 iPos=GetStreamOffset(pStream);
	__int64 iEndPos=StreamSeek(pStream, 0, STREAM_SEEK_END);
	StreamSeek(pStream, iPos);
	return iPos>=iEndPos;
}
Beispiel #2
0
__int64 SIMPLEAPI GetStreamLength(IStream* pStream)
{
	__int64 iPos=GetStreamOffset(pStream);
	__int64 iEndPos=StreamSeek(pStream, 0, STREAM_SEEK_END);
	StreamSeek(pStream, iPos);
	return iEndPos;
}
Beispiel #3
0
Datei: io.c Projekt: AxFab/axlibc
off_t lseek(int fd, off_t offset, int whence)
{
  off_t pos;
  int ret;

  SYS_RET ( ret, StreamSeek (fd, offset, whence, &pos) );
  return pos;
}