本文整理汇总了C++中VSIVirtualHandle类的典型用法代码示例。如果您正苦于以下问题:C++ VSIVirtualHandle类的具体用法?C++ VSIVirtualHandle怎么用?C++ VSIVirtualHandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了VSIVirtualHandle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: VSIFTellL
vsi_l_offset VSIFTellL( VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = reinterpret_cast<VSIVirtualHandle *>( fp );
return poFileHandle->Tell();
}
开发者ID:Wedjaa,项目名称:node-gdal,代码行数:7,代码来源:cpl_vsil.cpp
示例2: VSIFFlushL
int VSIFFlushL( VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
return poFileHandle->Flush();
}
开发者ID:drownedout,项目名称:datamap,代码行数:7,代码来源:cpl_vsil.cpp
示例3: VSIFEofL
int VSIFEofL( VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
return poFileHandle->Eof();
}
开发者ID:drownedout,项目名称:datamap,代码行数:7,代码来源:cpl_vsil.cpp
示例4: VSIFReadL
size_t VSIFReadL( void * pBuffer, size_t nSize, size_t nCount, VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
return poFileHandle->Read( pBuffer, nSize, nCount );
}
开发者ID:drownedout,项目名称:datamap,代码行数:7,代码来源:cpl_vsil.cpp
示例5: VSIFWriteL
size_t VSIFWriteL( const void *pBuffer, size_t nSize, size_t nCount, VSILFILE *fp )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
return poFileHandle->Write( pBuffer, nSize, nCount );
}
开发者ID:drownedout,项目名称:datamap,代码行数:7,代码来源:cpl_vsil.cpp
示例6: VSIFEofL
int VSIFEofL( VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = reinterpret_cast<VSIVirtualHandle *>( fp );
return poFileHandle->Eof();
}
开发者ID:Wedjaa,项目名称:node-gdal,代码行数:7,代码来源:cpl_vsil.cpp
示例7: VSIFTruncateL
int VSIFTruncateL( VSILFILE * fp, vsi_l_offset nNewSize )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
return poFileHandle->Truncate(nNewSize);
}
开发者ID:drownedout,项目名称:datamap,代码行数:7,代码来源:cpl_vsil.cpp
示例8: VSIFTruncateL
int VSIFTruncateL( VSILFILE * fp, vsi_l_offset nNewSize )
{
VSIVirtualHandle *poFileHandle = reinterpret_cast<VSIVirtualHandle *>( fp );
return poFileHandle->Truncate(nNewSize);
}
开发者ID:Wedjaa,项目名称:node-gdal,代码行数:7,代码来源:cpl_vsil.cpp
示例9: VSIFWriteL
size_t VSIFWriteL( const void *pBuffer, size_t nSize, size_t nCount, VSILFILE *fp )
{
VSIVirtualHandle *poFileHandle = reinterpret_cast<VSIVirtualHandle *>( fp );
return poFileHandle->Write( pBuffer, nSize, nCount );
}
开发者ID:Wedjaa,项目名称:node-gdal,代码行数:7,代码来源:cpl_vsil.cpp
示例10: VSIFReadL
size_t VSIFReadL( void * pBuffer, size_t nSize, size_t nCount, VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = reinterpret_cast<VSIVirtualHandle *>( fp );
return poFileHandle->Read( pBuffer, nSize, nCount );
}
开发者ID:Wedjaa,项目名称:node-gdal,代码行数:7,代码来源:cpl_vsil.cpp
示例11: VSIFFlushL
int VSIFFlushL( VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = reinterpret_cast<VSIVirtualHandle *>( fp );
return poFileHandle->Flush();
}
开发者ID:Wedjaa,项目名称:node-gdal,代码行数:7,代码来源:cpl_vsil.cpp
示例12: VSIFTellL
vsi_l_offset VSIFTellL( VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
return poFileHandle->Tell();
}
开发者ID:drownedout,项目名称:datamap,代码行数:7,代码来源:cpl_vsil.cpp
示例13: VSIFSeekL
int VSIFSeekL( VSILFILE * fp, vsi_l_offset nOffset, int nWhence )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
return poFileHandle->Seek( nOffset, nWhence );
}
开发者ID:drownedout,项目名称:datamap,代码行数:7,代码来源:cpl_vsil.cpp
示例14: VSIFReadMultiRangeL
int VSIFReadMultiRangeL( int nRanges, void ** ppData,
const vsi_l_offset* panOffsets,
const size_t* panSizes, VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
return poFileHandle->ReadMultiRange( nRanges, ppData, panOffsets, panSizes );
}
开发者ID:drownedout,项目名称:datamap,代码行数:8,代码来源:cpl_vsil.cpp
示例15: VSIFCloseL
int VSIFCloseL( FILE * fp )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
int nResult = poFileHandle->Close();
delete poFileHandle;
return nResult;
}
开发者ID:AbdelghaniDr,项目名称:mirror,代码行数:10,代码来源:cpl_vsil.cpp
示例16: VSIFCloseL
int VSIFCloseL( VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
VSIDebug1( "VSICloseL(%p)", fp );
int nResult = poFileHandle->Close();
delete poFileHandle;
return nResult;
}
开发者ID:drownedout,项目名称:datamap,代码行数:13,代码来源:cpl_vsil.cpp
示例17: VSIFCloseL
int VSIFCloseL( VSILFILE * fp )
{
VSIVirtualHandle *poFileHandle = reinterpret_cast<VSIVirtualHandle *>( fp );
VSIDebug1( "VSIFCloseL(%p)", fp );
const int nResult = poFileHandle->Close();
delete poFileHandle;
return nResult;
}
开发者ID:Wedjaa,项目名称:node-gdal,代码行数:13,代码来源:cpl_vsil.cpp
示例18: Open
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;
}
开发者ID:garnertb,项目名称:gdal,代码行数:23,代码来源:cpl_vsil_sparsefile.cpp
示例19:
void *VSIFGetNativeFileDescriptorL( VSILFILE* fp )
{
VSIVirtualHandle *poFileHandle = (VSIVirtualHandle *) fp;
return poFileHandle->GetNativeFileDescriptor();
}
开发者ID:drownedout,项目名称:datamap,代码行数:6,代码来源:cpl_vsil.cpp
示例20: 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;
}
开发者ID:codedis213,项目名称:elastic_search_practice,代码行数:17,代码来源:cpl_vsil_buffered_reader.cpp
注:本文中的VSIVirtualHandle类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论