本文整理汇总了C++中VSIVirtualHandle::Tell方法的典型用法代码示例。如果您正苦于以下问题:C++ VSIVirtualHandle::Tell方法的具体用法?C++ VSIVirtualHandle::Tell怎么用?C++ VSIVirtualHandle::Tell使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类VSIVirtualHandle
的用法示例。
在下文中一共展示了VSIVirtualHandle::Tell方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: VSIFTellL
vsi_l_offset VSIFTellL( VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
return poFileHandle->Tell();
}
示例2: VSIFTellL
vsi_l_offset VSIFTellL( VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = reinterpret_cast<VSIVirtualHandle *>( fp );
return poFileHandle->Tell();
}
示例3: Seek
int VSIBufferedReaderHandle::Seek( vsi_l_offset nOffset, int nWhence )
{
//CPLDebug( "BUFFERED", "Seek(%d,%d)", (int)nOffset, (int)nWhence);
bEOF = FALSE;
if (nWhence == SEEK_CUR)
nCurOffset += nOffset;
else if (nWhence == SEEK_END)
{
poBaseHandle->Seek(nOffset, nWhence);
nCurOffset = poBaseHandle->Tell();
bNeedBaseHandleSeek = TRUE;
}
else
nCurOffset = nOffset;
return 0;
}
示例4: Stat
int VSISparseFileFilesystemHandler::Stat( const char * pszFilename,
VSIStatBufL * psStatBuf,
int nFlags )
{
VSIVirtualHandle *poFile = Open( pszFilename, "r" );
memset( psStatBuf, 0, sizeof(VSIStatBufL) );
if( poFile == NULL )
return -1;
poFile->Seek( 0, SEEK_END );
size_t nLength = (size_t) poFile->Tell();
delete poFile;
int nResult = VSIStatExL( pszFilename + strlen("/vsisparse/"),
psStatBuf, nFlags );
psStatBuf->st_size = nLength;
return nResult;
}
示例5: Tell
vsi_l_offset VSIStdoutRedirectHandle::Tell()
{
return poHandle->Tell();
}