Skip to content

Commit

Permalink
Merge pull request #24 from ProjectBorealis/master
Browse files Browse the repository at this point in the history
Update unarrc
  • Loading branch information
gen2brain authored Jan 13, 2022
2 parents 69f641d + afbe9f3 commit 9c4a697
Show file tree
Hide file tree
Showing 31 changed files with 3,714 additions and 1,450 deletions.
1 change: 1 addition & 0 deletions unarrc/external/unarr/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Felix Kauselmann (licorn at gmail.com)
* Bastien Nocera (hadess@hadess.net, http://www.hadess.net/)
* Wang Xinyu (comicfans44 at gmail.com)
* Liu Xiang (liuxiang@loongson.cn, https://www.loongson.cn/)

Most code is licensed under LGPLv3 (see COPYING). Exceptions are in code
included from other projects:
Expand Down
10 changes: 6 additions & 4 deletions unarrc/external/unarr/lzmasdk/7z.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* 7z.h -- 7z interface
2017-04-03 : Igor Pavlov : Public domain */
2018-07-02 : Igor Pavlov : Public domain */

#ifndef __7Z_H
#define __7Z_H
Expand Down Expand Up @@ -91,6 +91,8 @@ typedef struct
UInt64 *CoderUnpackSizes; // for all coders in all folders

Byte *CodersData;

UInt64 RangeLimit;
} CSzAr;

UInt64 SzAr_GetFolderUnpackSize(const CSzAr *p, UInt32 folderIndex);
Expand All @@ -106,7 +108,7 @@ typedef struct

UInt64 startPosAfterHeader;
UInt64 dataPos;

UInt32 NumFiles;

UInt64 *UnpackPositions; // NumFiles + 1
Expand Down Expand Up @@ -163,10 +165,10 @@ UInt16 *SzArEx_GetFullNameUtf16_Back(const CSzArEx *p, size_t fileIndex, UInt16
*outBufferSize
You can consider "*outBuffer" as cache of solid block. If your archive is solid,
it will increase decompression speed.
If you use external function, you can declare these 3 cache variables
(blockIndex, outBuffer, outBufferSize) as static in that external function.
Free *outBuffer and set *outBuffer to 0, if you want to flush cache.
*/

Expand Down
Loading

0 comments on commit 9c4a697

Please sign in to comment.