|
楼主 |
发表于 2011-10-18 21:58:08
|
显示全部楼层
自己解决了
#include "crc32.au3"
Global $BufferSize = 0x20000
Global $Filename = FileOpenDialog("Open file", "", "Any file (*.*)")
If $Filename = "" Then Exit
Global $Timer = TimerInit()
Global $FileHandle = FileOpen($Filename, 16)
Global $CRC32 = 0
For $i = 1 To Ceiling(FileGetSize($Filename) / $BufferSize)
$CRC32 = _CRC32(FileRead($FileHandle, $BufferSize), BitNot($CRC32))
Next
$1=StringFormat("%d", $CRC32)
MsgBox (0, "Result", $1 & " in " & Round(TimerDiff($Timer)) & " ms") |
|