本文整理匯總了C++中FlushCache函數的典型用法代碼示例。如果您正苦於以下問題:C++ FlushCache函數的具體用法?C++ FlushCache怎麽用?C++ FlushCache使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了FlushCache函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: FlushCache
LCPDataset::~LCPDataset()
{
FlushCache();
if( fpImage != NULL )
VSIFCloseL( fpImage );
CPLFree(pszProjection);
}
示例2: FlushCache
GTXDataset::~GTXDataset()
{
FlushCache();
if( fpImage != NULL )
VSIFCloseL( fpImage );
}
示例3: FlushCache
FujiBASDataset::~FujiBASDataset()
{
FlushCache();
if( fpImage != NULL )
VSIFClose( fpImage );
CSLDestroy( papszHeader );
}
示例4: FlushCache
WEBPDataset::~WEBPDataset()
{
FlushCache();
if (fpImage)
VSIFCloseL(fpImage);
VSIFree(pabyUncompressed);
}
示例5: FlushCache
RasdamanDataset::~RasdamanDataset()
{
if (transaction.get_status() == r_Transaction::active) {
transaction.commit();
}
database.close();
FlushCache();
}
示例6: FlushCache
GXFDataset::~GXFDataset()
{
FlushCache();
if( hGXF != NULL )
GXFClose( hGXF );
CPLFree( pszProjection );
}
示例7: iop_heap_dma_upload
int iop_heap_dma_upload(void *src,u32 dst,int size)
{
int i=0,len=0,size2;
u8 *pkt;
int ret=0;
int ret2=0;
int p=0;
int cont1=0;
while(size>0) // send data with src unaligned
{
if(size>512) size2=512; else size2=size;
CD_memcpy2(memsend,((unsigned char *) src)+p,size2);
do
{
FlushCache(0);
/* build packet */
pkt = send_buffer2;
PUSHDATA( u32, pkt, (u32)memsend, i);
pkt += i; len += i;
PUSHDATA( u32, pkt, dst, i);
pkt += i; len += i;
PUSHDATA( int, pkt, size2, i);
pkt += i; len += i;
PUSHDATA( int, pkt, 0, i);
pkt += i; len += i;
ret = SifSetDma((SifDmaTransfer_t*)send_buffer2,1);
if(ret==0) {nopdelay();cont1++;}
if(ret==0 && cont1>=3) {cont1=0;SifSetDChain();}
}while(ret==0); // modificado por Hermes
while((ret2 = SifDmaStat(ret))>=0);
FlushCache(0);
size-=size2;
p+=size2;
dst+=size2;
}
return (ret2 < -1);
}
示例8: _CnvPhysicalAddr
/*
* Conversion to physical address
* Cache control required, but cache control by page cannot be
* provided without MMU, so not implemented.
*/
LOCAL INT _CnvPhysicalAddr( VP laddr, INT len, VP *paddr )
{
*paddr = toPhysicalAddress(laddr);
/* Cache off not possible, so cache flash only is performed. */
FlushCache(laddr, len);
return len;
}
示例9: FlushCache
PNMDataset::~PNMDataset()
{
FlushCache();
if( fpImage != nullptr && VSIFCloseL( fpImage ) != 0 )
{
CPLError(CE_Failure, CPLE_FileIO, "I/O error" );
}
}
示例10: FlushCache
IDADataset::~IDADataset()
{
FlushCache();
if( fpRaw != NULL )
VSIFCloseL( fpRaw );
CPLFree( pszProjection );
}
示例11: FlushCache
MEMDataset::~MEMDataset()
{
FlushCache();
CPLFree( pszProjection );
GDALDeinitGCPs( nGCPCount, pasGCPs );
CPLFree( pasGCPs );
}
示例12: FlushCache
/**
* Writes a byte to the cached buffer
* @param aValue Byte to write
*/
void TCachedByteStreamWriter::WriteByte(TUint8 aValue)
{
if(iPos == iCacheSize)
{
FlushCache();
}
iCacheBuffer[iPos++] = aValue;
++iBytesWritten;
}
示例13: FlushCache
GDALArrayBandBlockCache::~GDALArrayBandBlockCache()
{
FlushCache();
if( !bSubBlockingActive )
CPLFree( u.papoBlocks );
else
CPLFree( u.papapoBlocks );
}
示例14: FlushCache
DOQ1Dataset::~DOQ1Dataset()
{
FlushCache();
CPLFree( pszProjection );
if( fpImage != NULL )
CPL_IGNORE_RET_VAL(VSIFCloseL( fpImage ));
}
示例15: FlushCache
HF2Dataset::~HF2Dataset()
{
FlushCache();
CPLFree(pszWKT);
CPLFree(panBlockOffset);
if (fp)
VSIFCloseL(fp);
}