1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
| int64 Checksum( int algorithm, int64 start=0, int64 size=0, int64 crcPolynomial=-1, int64 crcInitValue=-1 ) CHECKSUM_BYTE CHECKSUM_SHORT_LE CHECKSUM_SHORT_BE CHECKSUM_INT_LE CHECKSUM_INT_BE CHECKSUM_INT64_LE CHECKSUM_INT64_BE CHECKSUM_SUM8 CHECKSUM_SUM16 CHECKSUM_SUM32 CHECKSUM_SUM64 CHECKSUM_CRC16 CHECKSUM_CRCCCITT CHECKSUM_CRC32 CHECKSUM_ADLER32 int ChecksumAlgArrayStr( int algorithm, char result[], uchar *buffer, int64 size, char ignore[]="", int64 crcPolynomial=-1, int64 crcInitValue=-1 ) int ChecksumAlgArrayBytes( int algorithm, uchar result[], uchar *buffer, int64 size, char ignore[]="", int64 crcPolynomial=-1, int64 crcInitValue=-1 ) int ChecksumAlgStr( int algorithm, char result[], int64 start=0, int64 size=0, char ignore[]="", int64 crcPolynomial=-1, int64 crcInitValue=-1 ) int ChecksumAlgBytes( int algorithm, uchar result[], int64 start=0, int64 size=0, char ignore[]="", int64 crcPolynomial=-1, int64 crcInitValue=-1 )
TCompareResults Compare( int type, int fileNumA, int fileNumB, int64 startA=0, int64 sizeA=0, int64 startB=0, int64 sizeB=0, int matchcase=true, int64 maxlookahead=10000, int64 minmatchlength=8, int64 quickmatch=512 ) int i, f1, f2; FileOpen( "C:\\temp\\test1" ); f1 = GetFileNum(); FileOpen( "C:\\temp\\test2" ); f2 = GetFileNum(); TCompareResults r = Compare( COMPARE_SYNCHRONIZE, f1, f2 ); for( i = 0; i < r.count; i++ ) { Printf( "%d %Ld %Ld %Ld %Ld\n", r.record[i].type, r.record[i].startA, r.record[i].sizeA, r.record[i].startB, r.record[i].sizeB ); } TFindResults FindAll( <datatype> data, int matchcase=true, int wholeword=false, int method=0, double tolerance=0.0, int dir=1, int64 start=0, int64 size=0, int wildcardMatchLength=24 ) int i; TFindResults r = FindAll( "Test" ); Printf( "%d\n", r.count ); for( i = 0; i < r.count; i++ ) Printf( "%Ld %Ld\n", r.start[i], r.size[i] ); int64 FindFirst( <datatype> data, int matchcase=true, int wholeword=false, int method=0, double tolerance=0.0, int dir=1, int64 start=0, int64 size=0, int wildcardMatchLength=24 ) TFindInFilesResults FindInFiles( <datatype> data, char dir[], char mask[], int subdirs=true, int openfiles=false, int matchcase=true, int wholeword=false, int method=0, double tolerance=0.0, int wildcardMatchLength=24 ) int i, j; TFindInFilesResults r = FindInFiles( "PK", "C:\\temp", "*.zip" ); Printf( "%d\n", r.count ); for( i = 0; i < r.count; i++ ) { Printf( " %s\n", r.file[i].filename ); Printf( " %d\n", r.file[i].count ); for( j = 0; j < r.file[i].count; j++ ) Printf( " %Ld %Ld\n", r.file[i].start[j], r.file[i].size[j] ); } int64 FindNext( int dir=1 ) TFindStringsResults FindStrings( int minStringLength, int type, int matchingCharTypes, wstring customChars="", int64 start=0, int64 size=0, int requireNull=false ) TFindStringsResults r = FindStrings( 5, FINDSTRING_ASCII, FINDSTRING_LETTERS | FINDSTRING_CUSTOM, "$&" ); Printf( "%d\n", r.count ); for( i = 0; i < r.count; i++ ) Printf( "%Ld %Ld %d\n", r.start[i], r.size[i], r.type[i] );
char ConvertASCIIToEBCDIC( char ascii ) void ConvertASCIIToUNICODE( int len, const char ascii[], ubyte unicode[], int bigendian=false ) void ConvertASCIIToUNICODEW( int len, const char ascii[], ushort unicode[] ) char ConvertEBCDICToASCII( char ebcdic ) void ConvertUNICODEToASCII( int len, const ubyte unicode[], char ascii[], int bigendian=false ) void ConvertUNICODEToASCIIW( int len, const ushort unicode[], char ascii[] ) int ExportFile( int type, char filename[], int64 start=0, int64 size=0, int64 startaddress=0,int bytesperrow=16, int wordaddresses=0 ) int ImportFile( int type, char filename[], int wordaddresses=false, int defaultByteValue=-1 ) int GetSectorSize() int HexOperation( int operation, int64 start, int64 size, operand, step=0, int64 skip=0 ) int64 Histogram( int64 start, int64 size, int64 result[256] ) int IsDrive() int IsLogicalDrive() int IsPhysicalDrive() int IsProcess() int OpenLogicalDrive( char driveletter ) int OpenPhysicalDrive( int physicalID ) int OpenProcessById( int processID, int openwriteable=true ) int OpenProcessByName( char processname[], int openwriteable=true ) int ReplaceAll( <datatype> finddata, <datatype> replacedata, int matchcase=true, int wholeword=false, int method=0, double tolerance=0.0, int dir=1, int64 start=0, int64 size=0, int padwithzeros=false, int wildcardMatchLength=24 )
|