Hex Editor
Hex Editor - Binary File Editing Software for Windows

IFileDocument.GatherStatistics Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Automation:
ulong[256]  GatherStatistics ( [in]   IMultiSelection  pSelection) ;
Native (C++):
HRESULT  GatherStatistics ( [in]   IMultiSelection *  pSelection, [out, retval]   unsigned __int64[256]  pStatsBuffer) ;
Parameters
pSelectionMultiple Selection object that describing ranges, in which you want to calculate statistics.pStatsBufferPointer to the statistics array.
Return Value
Automation:Statistics array.Native: S_OK or standard OLE error code.
Remarks
Calculates file statistics. See the General Statistics section for more information. On method return, each of 256 elements in an array contains the number of corresponding byte occurrences. Complexity: linear-time, depending on the file's size.
Examples

Calculating General Statistics

C++Copy Code
// pFileDocument and pMultiSelection are initialized elsewhere
unsigned __int64 data[256];
pFileDocument->GatherStatistics(pMultiSelection, data);
    
< PreviousTopNext >
Copyright © 2012 HHD Software. All rights reserved.