EXtremeZip 2022.2.24 → 2022.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/extremeunzip.zzaqsu.rb +19 -26
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ffc2dc7996aae9f38e3bc7c4e4d605ea328ff5f7e0f72e423a2de2d99918c0c
|
4
|
+
data.tar.gz: bb9d5e826e23cb08d999d00b7245df1523b0587629dfbf97d4105769148c71f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 394dc5e472b751f9194ffc7e4caf75e7f1c8eb3749c4bb532574946406db561b077cb8b0ff8d5da1e9c0c5a722dc1db352cfca7d66e528262ce0f59f97903859
|
7
|
+
data.tar.gz: 4c1c3e03d27df42cc1d7382aad01000b0731199a3316512b4261d7f9de08191f9fac3623fce0c8a9c74e1acb2400ddbeae5e3a67ca32904286d847e0ce2e3984
|
data/lib/extremeunzip.zzaqsu.rb
CHANGED
@@ -11,36 +11,29 @@ def checkMemoryUsage(lineNumber)
|
|
11
11
|
puts("#{lineNumber} , Memory: #{mem.mb}"); # Debug
|
12
12
|
end # def checkMemoryUsage
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
14
|
class ExtremeUnZip
|
18
15
|
# 根据偏移值来读取压缩块数据列表。
|
19
|
-
def readVfsDataList(wholeCbor)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
compressedVfsDataList # 返回 内容
|
39
|
-
end
|
16
|
+
def readVfsDataList(wholeCbor)
|
17
|
+
compressedVfsDataList = [] # 获取压缩后的数据块列表
|
18
|
+
startIndix=wholeCbor['vfsDataListStart'] # 初始起始位置。
|
19
|
+
|
20
|
+
puts "whole length: #{@wholeFileContent.length}, list conent: #{wholeCbor['vfsDataList']}" # Debug
|
21
|
+
|
22
|
+
|
23
|
+
wholeCbor['vfsDataList'].each do |currentBlockInfo| # 一个个块地处理
|
24
|
+
length=currentBlockInfo['length'] # 获取长度。
|
25
|
+
|
26
|
+
currentBlock=@wholeFileContent[startIndix, length] # 读取内容
|
27
|
+
|
28
|
+
compressedVfsDataList << currentBlock # 加入当前块
|
29
|
+
|
30
|
+
startIndix+=length # 位移。
|
31
|
+
end
|
32
|
+
|
33
|
+
compressedVfsDataList # 返回 内容
|
34
|
+
end
|
40
35
|
|
41
36
|
# 根据版本号,提取VFS数据内容
|
42
|
-
|
43
|
-
|
44
37
|
def extractVfsDataWithVersionExternalFile(wholeCbor, fileVersion)
|
45
38
|
victoriaFreshData = '' # 解压后的数据块整体
|
46
39
|
dataFileName = 'victoriafreshdata.w' # 数据文件名
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: EXtremeZip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2022.
|
4
|
+
version: 2022.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hxcan Cai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cod
|