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
 
 
 
< Previous Top Next >
Declaration
Automation:
ulong[256]  GatherStatistics ( [in]   IMultiSelection  pSelection) ;
Native (C++):
HRESULT  GatherStatistics ( [in]   IMultiSelection *  pSelection, [out, retval]   unsigned __int64[256]  pStatsBuffer) ;
Parameters
pSelection Multiple Selection object that describing ranges, in which you want to calculate statistics. pStatsBuffer Pointer 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);
    
< Previous Top Next >
Copyright © 2017 HHD Software. All rights reserved.