亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cod_bwt3.bas

?? vb寫的..文件打包..壓縮解壓..加密解密
?? BAS
字號:
Attribute VB_Name = "Cod_BWT3"


Option Explicit


Public Sub BWT_CodecArray3(ByteArray() As Byte, Optional BucketMaxDeep As Integer = 7)
    Dim Data() As Byte          'dubble sized bytearray
    Dim IndexPoint() As Long    'indexpointer
    Dim IndTemp() As Long       'temporary indexpointer
    Dim StartIndex As Long      'first position of the index
    Dim EndIndex As Long        'last position of the index
    Dim StartPoint() As Long    'buffer to store first positions
    Dim EndPoint() As Long      'buffer to store last positions
    Dim MiddlePoint() As Long   'buffer to store the middle positions
    Dim StepSize() As Integer   'buffer to store the distance positions
    Dim StepNr As Integer       'current distance
    Dim CharCount() As Long  'count of used characters
    Dim Spos(255) As Long       'starting positions of new index pointer
    Dim DeepHold As Integer     'counter of array dept
'    Dim NumChar As Integer      'numbers of chars used
    Dim FileLength As Long      'length of the file
    Dim DimDept As Long         'Calculation of supposed maximum array dept
    Dim Prefix As Long          'prefix number of the BWT sorting
    Dim NuPos As Long           'Position counter for the next character
    Dim NewStep As Long         'Smallest new distance value to add
    Dim CStep As Long           'Calculated new distance value
    Dim NowSize As Long         'Size of block to sort
    Dim X As Long
    Dim Y As Long
    Dim Z As Long
    Dim L As Long
    Dim R As Long
    Dim t As Long
    Dim D As Boolean
    Dim Q As Byte
    FileLength = UBound(ByteArray)
    DimDept = 255 * BucketMaxDeep + 200
'predefine expected dimensions
    ReDim IndexPoint(FileLength)
    ReDim Data(FileLength + FileLength + 1)
    ReDim StartPoint(DimDept)
    ReDim EndPoint(DimDept)
    ReDim MiddlePoint(DimDept)
    ReDim StepSize(DimDept)
    For X = 0 To FileLength
        Data(X) = ByteArray(X)
        IndexPoint(X) = X
    Next
    For X = 0 To FileLength
        Data(FileLength + 1 + X) = ByteArray(X)
    Next
    DeepHold = 0
    StartPoint(DeepHold) = LBound(ByteArray)
    EndPoint(DeepHold) = UBound(ByteArray)
    StepSize(DeepHold) = 0
    StartIndex = StartPoint(DeepHold)
    EndIndex = EndPoint(DeepHold)
    NowSize = EndIndex - StartIndex
    If NowSize = 0 Then Exit Sub
TopLoop1:
    StepNr = StepSize(DeepHold)
    If StepNr = BucketMaxDeep Or NowSize < 80 Then GoTo QuickSort
'do the bucket sort
'clear the counting array
    ReDim IndTemp(StartIndex To EndIndex)
    ReDim CharCount(255)
'place the indexpointer in a temporary pointer and calculate the count
'of the characters
    For X = StartIndex To EndIndex
        IndTemp(X) = IndexPoint(X)
        Y = IndexPoint(X) + StepNr
        Q = Data(Y)
        CharCount(Q) = CharCount(Q) + 1
    Next
    If CharCount(Q) = EndIndex - StartIndex + 1 Then
'Only one character found so only increase the distance
        StepSize(DeepHold) = StepNr + 1
        GoTo TopLoop1
    Else
'Store the newfound starting positions in the buffers
        NuPos = StartIndex
        DeepHold = DeepHold - 1
        For X = 0 To 255
            If CharCount(X) > 0 Then
                DeepHold = DeepHold + 1
                StartPoint(DeepHold) = NuPos
                Spos(X) = NuPos
                NuPos = NuPos + CharCount(X)
                EndPoint(DeepHold) = NuPos - 1
                StepSize(DeepHold) = StepNr + 1
            End If
        Next
'And put al the pointers in the right place
        For X = StartIndex To EndIndex
            Y = IndTemp(X) + StepNr
            Q = Data(Y)
            IndexPoint(Spos(Q)) = IndTemp(X)
            Spos(Q) = Spos(Q) + 1
        Next
        Do While DeepHold > 0
            StartIndex = StartPoint(DeepHold)
            EndIndex = EndPoint(DeepHold)
            NowSize = EndIndex - StartIndex
            If NowSize > 0 Then GoSub TopLoop1
            DeepHold = DeepHold - 1
        Loop
        GoTo Ready
    End If
QuickSort:
    StartIndex = StartPoint(DeepHold)
    EndIndex = EndPoint(DeepHold)
    StepNr = StepSize(DeepHold)
    If StartIndex >= EndIndex Then Return
    If EndIndex - StartIndex = 1 Then
        Y = IndexPoint(StartIndex) + StepNr
        Z = IndexPoint(EndIndex) + StepNr
        Do While Data(Y) = Data(Z)
            Y = Y + 1
            Z = Z + 1
        Loop
        If Data(Y) < Data(Z) Then Return
        t = IndexPoint(StartIndex): IndexPoint(StartIndex) = IndexPoint(EndIndex): IndexPoint(EndIndex) = t: Return
    End If
    NewStep = 100000
    L = StartIndex
    R = EndIndex - 1
    X = Fix((StartIndex + EndIndex) / 2)
'swap the pivot to the last position
    Y = IndexPoint(StartIndex) + StepNr
    Z = IndexPoint(X) + StepNr
    Do While Data(Y) = Data(Z)
        Y = Y + 1
        Z = Z + 1
    Loop
    If Data(Y) > Data(Z) Then
        t = IndexPoint(StartIndex): IndexPoint(StartIndex) = IndexPoint(EndIndex): IndexPoint(EndIndex) = t
    Else
        t = IndexPoint(X): IndexPoint(X) = IndexPoint(EndIndex): IndexPoint(EndIndex) = t
    End If
    Do
'Find one wich is smaller than the pivot
        Do
            CStep = 0
            Y = IndexPoint(R) + StepNr
            Z = IndexPoint(EndIndex) + StepNr
            Do While Data(Y) = Data(Z)
                Y = Y + 1
                Z = Z + 1
                CStep = CStep + 1
            Loop
            If CStep < NewStep Then NewStep = CStep
            If Data(Y) < Data(Z) Then Exit Do
            R = R - 1
        Loop While R > L
        If R = L Then Exit Do
'Find one wich is bigger than the pivot
        Do
            CStep = 0
            Y = IndexPoint(L) + StepNr
            Z = IndexPoint(EndIndex) + StepNr
            Do While Data(Y) = Data(Z)
                Y = Y + 1
                Z = Z + 1
                CStep = CStep + 1
            Loop
            If CStep < NewStep Then NewStep = CStep
            If Data(Y) > Data(Z) Then Exit Do
            L = L + 1
        Loop While L < R
        If L = R Then Exit Do
        t = IndexPoint(L): IndexPoint(L) = IndexPoint(R): IndexPoint(R) = t
    Loop
    StepNr = StepNr + NewStep
    DeepHold = DeepHold + 1
    StartPoint(DeepHold) = StartIndex
    EndPoint(DeepHold) = L '- 1
    MiddlePoint(DeepHold) = EndIndex
    StepSize(DeepHold) = StepNr
    GoSub QuickSort
    StartPoint(DeepHold) = EndPoint(DeepHold) + 1
    EndPoint(DeepHold) = MiddlePoint(DeepHold)
    GoSub QuickSort
    DeepHold = DeepHold - 1
    If DeepHold > 0 Then Return
Ready:
    ReDim ByteArray(FileLength + 3)
    For X = 0 To FileLength
        If IndexPoint(X) = 1 Then Prefix = X
        If IndexPoint(X) = 0 Then
            ByteArray(X) = Data(FileLength)
        Else
            ByteArray(X) = Data(IndexPoint(X) - 1)
        End If
    Next
    ByteArray(FileLength + 1) = Int(Prefix / &H10000) And &HFF
    ByteArray(FileLength + 2) = Int(Prefix / &H100) And &HFF
    ByteArray(FileLength + 3) = Prefix And &HFF
End Sub

'Here where gone restore the BWT-coded string
Public Sub BWT_DeCodecArray3(ByteArray() As Byte)
    Dim TV() As Long
    Dim Spos(255) As Long
    Dim FileLength As Long
    Dim OffSet As Long
    Dim X As Long
    Dim Y As Long
    Dim NuPos As Long
    Dim CharCount(255) As Long
    Dim OutStream() As Byte
    FileLength = UBound(ByteArray)
'read the offset and restore the original size
    OffSet = CLng(ByteArray(FileLength - 2)) * 256 + ByteArray(FileLength - 1)
    OffSet = CLng(OffSet) * 256 + ByteArray(FileLength)
    ReDim Preserve ByteArray(FileLength - 3)
    FileLength = UBound(ByteArray)
    ReDim OutStream(FileLength)
    ReDim TV(FileLength)
'Lets use the speedsort method to sort the array
'(no need to do it lexicographical)
    For X = 0 To FileLength
        CharCount(ByteArray(X)) = CharCount(ByteArray(X)) + 1
    Next
    NuPos = 0
' Place the items in the sorted array.
    For X = 0 To 255
        Spos(X) = NuPos
        NuPos = NuPos + CharCount(X)
    Next
'Now whe have the original and the sorted array so whe can construct
'a transformation tabel
    For X = 0 To FileLength
        Y = Spos(ByteArray(X))
        TV(Y) = X
        Spos(ByteArray(X)) = Y + 1
    Next
'with use of the transformation tabel and the offset whe can reconstruct
'the original data
    For X = 0 To FileLength
        OutStream(X) = ByteArray(OffSet)
        OffSet = TV(OffSet)
    Next
    Call CopyMem(ByteArray(0), OutStream(0), UBound(OutStream) + 1)
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人在线一区二区三区| 亚洲精品欧美在线| 欧美日韩综合在线| 亚洲男人的天堂av| 成人免费观看av| 国产网站一区二区| 国产精品一区三区| 日韩精品一区在线观看| 亚洲欧美另类图片小说| av资源网一区| 亚洲精品国产成人久久av盗摄| 国产精品一区二区久久不卡| 久久蜜桃av一区二区天堂| 国产精品一区二区不卡| 中文字幕精品一区二区三区精品| 成人免费看视频| 国产精品福利一区| 91精品福利在线| 日本欧美在线观看| 久久免费看少妇高潮| 成人午夜电影网站| 亚洲色图制服诱惑| 日韩精品一区二区三区四区| 中文字幕中文字幕在线一区 | 色香色香欲天天天影视综合网| 亚洲私人黄色宅男| 日韩三级视频在线看| 成人黄色在线看| 日韩高清欧美激情| 中文字幕第一区综合| 欧美日韩大陆一区二区| 国产精品一区二区黑丝| 香蕉久久夜色精品国产使用方法| 日韩免费观看高清完整版| 97久久精品人人做人人爽| 日本不卡高清视频| 亚洲男女一区二区三区| 国产欧美一区二区三区沐欲| 欧美日韩国产经典色站一区二区三区 | 最新不卡av在线| 亚洲国产精品高清| 国产亚洲精品福利| 精品福利av导航| 欧美本精品男人aⅴ天堂| 欧美精品久久99久久在免费线| 99re这里只有精品6| 99在线视频精品| 粉嫩嫩av羞羞动漫久久久 | 欧美最猛黑人xxxxx猛交| 99久久久国产精品| 在线亚洲+欧美+日本专区| 成人sese在线| 成人涩涩免费视频| 欧美日韩视频在线第一区| 国产亚洲欧美一区在线观看| 亚洲第一久久影院| 欧美剧在线免费观看网站| 精品嫩草影院久久| 视频在线在亚洲| 国产乱码字幕精品高清av| 免费观看在线色综合| 激情图区综合网| 成人一级视频在线观看| 欧亚一区二区三区| 久久夜色精品国产噜噜av| 国产精品短视频| 亚洲国产婷婷综合在线精品| 精品制服美女久久| 成年人网站91| 欧美一卡二卡三卡| 亚洲理论在线观看| 国产高清视频一区| 欧美精品aⅴ在线视频| 国产日韩在线不卡| 日本中文字幕不卡| 一本大道久久a久久综合| 久久综合九色综合97婷婷女人 | 国产欧美视频一区二区| 欧美图片一区二区三区| 91在线观看高清| 久久99精品久久久久婷婷| 亚洲一区二区美女| 国产成人在线视频网站| 免费观看在线色综合| 国产suv精品一区二区三区| 欧美日韩成人一区| 亚洲日本在线视频观看| 久久精品国产亚洲aⅴ| 欧美亚州韩日在线看免费版国语版| 日韩片之四级片| 偷窥少妇高潮呻吟av久久免费| 成熟亚洲日本毛茸茸凸凹| 日韩丝袜情趣美女图片| 一区二区三区加勒比av| 成熟亚洲日本毛茸茸凸凹| 久久一夜天堂av一区二区三区| 青青国产91久久久久久| 欧美日韩极品在线观看一区| 亚洲欧美日韩综合aⅴ视频| aaa亚洲精品| 国产精品久久久久三级| 97久久人人超碰| 夜夜嗨av一区二区三区四季av| 99久精品国产| 亚洲一区在线免费观看| 欧美性猛交xxxx黑人交| 亚洲成人免费视| 日韩欧美国产一区二区在线播放| 男女性色大片免费观看一区二区| 欧美一区二区三区四区在线观看 | 国产精品亲子伦对白| 成人av在线资源| 天天色天天操综合| 欧美成人激情免费网| www.欧美色图| 日韩在线卡一卡二| 国产拍揄自揄精品视频麻豆| 日本丰满少妇一区二区三区| 日韩精品久久久久久| 国产精品色一区二区三区| 欧美中文字幕不卡| 国产成人在线网站| 日韩主播视频在线| 最新久久zyz资源站| 欧美日本精品一区二区三区| 丰满白嫩尤物一区二区| 丝袜亚洲另类欧美综合| 亚洲天堂a在线| 国产午夜精品久久久久久免费视| 欧美日韩精品一区二区| 高潮精品一区videoshd| 日本不卡一区二区三区| 国产精品的网站| 92精品国产成人观看免费| a美女胸又www黄视频久久| 亚洲一级片在线观看| 日韩av在线播放中文字幕| 六月丁香婷婷久久| 岛国精品一区二区| 欧美亚洲国产一区二区三区va| 欧美日韩你懂得| 欧洲av在线精品| 日韩一区二区影院| 精品国产91乱码一区二区三区| 久久天堂av综合合色蜜桃网| 久久免费视频一区| 国产精品久久久久久久久久久免费看| 久久综合色8888| 国产午夜精品一区二区三区视频 | 亚洲成av人片www| 蜜臀av性久久久久蜜臀av麻豆| 国产一区二区h| 国产精品69久久久久水密桃| 91久久国产综合久久| 日韩午夜电影av| 中文字幕一区二区三区在线播放| 亚洲美女免费在线| 国产综合久久久久影院| 在线免费观看成人短视频| 欧美日韩视频在线一区二区| 欧美成va人片在线观看| 欧美激情综合五月色丁香小说| 国产精品成人在线观看| 日韩和欧美一区二区| 成人短视频下载| 日韩免费高清电影| 亚洲精品精品亚洲| 丁香婷婷综合网| 中文一区二区完整视频在线观看| 老鸭窝一区二区久久精品| 欧美日韩一二区| 亚洲欧洲综合另类在线| 欧美性受xxxx黑人xyx性爽| 国产亚洲欧美日韩日本| 视频一区欧美日韩| 欧美日韩一二三| 亚洲丶国产丶欧美一区二区三区| 91在线观看一区二区| 国产精品久久久久7777按摩| 国产综合色精品一区二区三区| 欧美另类一区二区三区| 亚洲综合免费观看高清完整版| 国产一区二区三区日韩| 精品久久国产97色综合| 91啪九色porn原创视频在线观看| 精品国产一区二区亚洲人成毛片| 国产一区二区福利| 欧美午夜宅男影院| 亚洲第一成年网| 久久亚洲一区二区三区四区| 国产mv日韩mv欧美| 一区二区三区加勒比av| 日韩一区二区三区四区| 成人午夜电影网站| 亚洲美女视频在线| 成人亚洲一区二区一| 91在线观看免费视频| 国产午夜精品久久久久久免费视 | 欧美影院精品一区| 日韩欧美成人午夜|