HexEdit/BGCompare.cpp
size_t CHexEditDoc::GetCompData(unsigned char *buf, size_t len, FILE_ADDRESS loc, bool use_bg /*=false*/)
{
	CFile64 *pf = use_bg ? pfile4_compare_ : pfile1_compare_;  // Select background or foreground file

	if (pf->Seek(loc, CFile::begin) == -1)
		return -1;
	return pf->Read(buf, len);
}
// Get data from the file we are comparing against

Get data from the file we are comparing against
Get data from the file we are comparing against
size_t CHexEditDoc::GetCompData(unsigned char *buf, size_t len, FILE_ADDRESS loc, bool use_bg )
{
	CFile64 *pf = use_bg ? pfile4_compare_ : pfile1_compare_;  
	if (pf->Seek(loc, CFile::begin) == -1)
		return -1;
	return pf->Read(buf, len);
}
size_t CHexEditDoc :: GetCompData ( unsigned char * buf , size_t len , FILE_ADDRESS loc , bool use_bg ) { CFile64 * pf = use_bg ? pfile4_compare_ : pfile1_compare_ ; if ( pf -> Seek ( loc , CFile :: begin ) == -1 ) return -1 ; return pf -> Read ( buf , len ) ; }
Get data from the file we are comparing against
Get data from the file we are comparing against
/*=false*/ // Select background or foreground file
