示例#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;
}
示例#2
0
__int64 SIMPLEAPI GetStreamLength(IStream* pStream)
{
	__int64 iPos=GetStreamOffset(pStream);
	__int64 iEndPos=StreamSeek(pStream, 0, STREAM_SEEK_END);
	StreamSeek(pStream, iPos);
	return iEndPos;
}
示例#3
0
文件: io.c 项目: 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;
}