EXtremeZip 2022.2.24 → 2022.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/extremeunzip.zzaqsu.rb +19 -26
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9fee183c1e4e13be28a33535c14473869e30446781505e4b92faf161e3b6338
4
- data.tar.gz: 877be521df92fb1b7be53fe916343acd732aee0cf70711f964c095778c1f64d2
3
+ metadata.gz: 9ffc2dc7996aae9f38e3bc7c4e4d605ea328ff5f7e0f72e423a2de2d99918c0c
4
+ data.tar.gz: bb9d5e826e23cb08d999d00b7245df1523b0587629dfbf97d4105769148c71f6
5
5
  SHA512:
6
- metadata.gz: a012a3351b34f0d9713743def68b23f79850042379681c0e431c1aa6abe6cba7313baae6b590e65af8df813eeb736e7c8e047f68e437a5c12b3fe2bf5a489a33
7
- data.tar.gz: 7bdd460a7983a7e72980d65226864ce0ed715ebcc9ed1566827d90d5fdbcbcd9a37c539730146f4f1be065dcf176a5146b6d694a1d556dce757ea2f0dc00a048
6
+ metadata.gz: 394dc5e472b751f9194ffc7e4caf75e7f1c8eb3749c4bb532574946406db561b077cb8b0ff8d5da1e9c0c5a722dc1db352cfca7d66e528262ce0f59f97903859
7
+ data.tar.gz: 4c1c3e03d27df42cc1d7382aad01000b0731199a3316512b4261d7f9de08191f9fac3623fce0c8a9c74e1acb2400ddbeae5e3a67ca32904286d847e0ce2e3984
@@ -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
- compressedVfsDataList = [] # 获取压缩后的数据块列表
21
- startIndix=wholeCbor['vfsDataListStart'] # 初始起始位置。
22
-
23
- puts "whole length: #{@wholeFileContent.length}, list conent: #{wholeCbor['vfsDataList']}" # Debug
24
-
25
-
26
- wholeCbor['vfsDataList'].each do |currentBlockInfo| # 一个个块地处理
27
- length=currentBlockInfo['length'] # 获取长度。
28
-
29
- currentBlock=@wholeFileContent[startIndix, length] # 读取内容
30
-
31
- puts "start index: #{startIndix}, length: #{length}, content length: #{currentBlock.length}" # Debug
32
-
33
- compressedVfsDataList << currentBlock # 加入当前块
34
-
35
- startIndix+=length # 位移。
36
- end
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.2.24
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-02-24 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cod