示例#1
0
文件: dumper.cpp 项目: Brainiarc7/TS
bool DumpBuffer::Compare(DumpBuffer& buffer, float threshold, OutputFormat output, size_t length , size_t stride ,size_t start)
{


  if(!CompareName(buffer)) return false;
  if(!CompareSize(buffer)){ 
    cout << "Buffer " << getName() << " differ in size: " << getSize() << " / " << buffer.getSize() << " Bytes" <<  endl;
    return false;
  }
 
  
  return CompareData((void*)buffer.getData(), threshold, output, length ,stride ,start);
  
}
示例#2
0
文件: dumper.cpp 项目: Brainiarc7/TS
bool DumpWrapper<T>::Compare(DumpBuffer& buffer, float threshold, OutputFormat output, size_t length , size_t stride ,size_t start)
{


  if(!CompareName(buffer)) return false;
  if(!CompareSize(buffer)){ 
    cout << "Buffer " << getName() << " differ in number of elements: " << getSize()/sizeof(T) << " / " << buffer.getSize()/sizeof(T) <<   endl;
    return false;
  }
 
  
  return CompareData((void*)buffer.getData(), threshold, output, length ,stride ,start);
  
}
示例#3
0
文件: dumper.cpp 项目: Brainiarc7/TS
bool DumpBuffer::CompareSize(DumpBuffer& buffer)
{
  if( getSize() == buffer.getSize()) return true;
  return false;
}