Y
yyw7467
Unregistered / Unconfirmed
GUEST, unregistred user!
Dim Buf() As Byte, TempBuf() As Integer, TempBuf2() As Integer
ReDim Buf(99999) As Byte
BufLength =10000
If BufLength < 100000 Then ReDim Preserve Buf(BufLength - 1) As Byte
ReDim TempBuf(BufLength / 2 - 1) As Integer, TempBuf2(BufLength / 4 - 1) As Integer
Call RtlMoveMemory(TempBuf(0), Buf(0), BufLength)
For i = 0 To BufLength / 4 - 1
TempBuf2(i) = Int(CLng(TempBuf(i * 2)) + CLng(TempBuf(i * 2 + 1))) / 2
Next i
BufLength = BufLength / 2
ReDim Buf(BufLength - 1)
Call RtlMoveMemory(Buf(0), TempBuf2(0), BufLength)
ReDim TempBuf(BufLength / 2 - 1) As Integer
Call RtlMoveMemory(TempBuf(0), Buf(0), BufLength)
ReDim Buf(BufLength / 2 - 1) As Byte
For i = 0 To BufLength / 2 - 1
Buf(i) = Int(TempBuf(i) / 256 + 128)
Next i
BufLength = BufLength / 2
ReDim Buf(99999) As Byte
BufLength =10000
If BufLength < 100000 Then ReDim Preserve Buf(BufLength - 1) As Byte
ReDim TempBuf(BufLength / 2 - 1) As Integer, TempBuf2(BufLength / 4 - 1) As Integer
Call RtlMoveMemory(TempBuf(0), Buf(0), BufLength)
For i = 0 To BufLength / 4 - 1
TempBuf2(i) = Int(CLng(TempBuf(i * 2)) + CLng(TempBuf(i * 2 + 1))) / 2
Next i
BufLength = BufLength / 2
ReDim Buf(BufLength - 1)
Call RtlMoveMemory(Buf(0), TempBuf2(0), BufLength)
ReDim TempBuf(BufLength / 2 - 1) As Integer
Call RtlMoveMemory(TempBuf(0), Buf(0), BufLength)
ReDim Buf(BufLength / 2 - 1) As Byte
For i = 0 To BufLength / 2 - 1
Buf(i) = Int(TempBuf(i) / 256 + 128)
Next i
BufLength = BufLength / 2