以存储模式压缩的 rar 文件的文件结构是什么
我有很多以存储模式存储的 rar,这意味着它们没有被压缩。我想打开它们并读取“存储”在 rar 中的部分文件。我想如果我知道文件的偏移量我就可以打开它们。
C# 中的一些东西会做得很好。我在网上找不到任何东西。
I have many rars that a stored in store mode, that means they aren't compressed. I want to open them and read parts of the file that is "stored" in the rar. I think I can just open them if I knew the offset to the files.
Something in C# will do very well. I can't find anything on the web.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
文件格式是公开的。直接来自马口:RarLabs
The file format is publicly available. Straight from the horse's mouth: RarLabs
该文件格式是公开的,但我在他们的网站上找不到它的文本。
安装 WinRAR 时,包含技术信息的文本文件将放置在 Program Files WinRAR 目录中。
您还可以从 RAR 下载页面 和该 tar.gz 文件中下载“RAR for Linux”您也可以找到 technote.txt 文件:
ReScene 是一个用于从提取的文件重新创建 rar 存档的项目。为此,您需要一个 .srr 文件。源代码可用。您可能想看看RarStream.cs。该文件用于 MKV/AVI ReSample:它可以重建几个视频样本文件使用 .srs 和原始视频文件的兆字节,仍然可以打包在分割的 rar 存档中。
如果您想要其他语言的类似内容,我建议您查看 RarLab 的 unrar 源代码或以下项目之一。它们是开源的,并且能够播放 RAR 存档中的视频文件。
其他有趣的项目:
动态文件)
另一个想法是有一个查看一些支持.cbr 格式的漫画书阅读器。这只是一个 rar 存档,其中存储有图像。
The file format is publicly available, but I can't find it as text on their site.
When you install WinRAR, a text file with the technical information is put inside the Program Files WinRAR directory.
You can also download "RAR for Linux" from the RAR download page and in that tar.gz file you can find the technote.txt file too:
ReScene is a project for recreating rar archives from the extracted files. You need a .srr file for this. The source code is available. You may want to take a look at RarStream.cs. That file is used in MKV/AVI ReSample: it can reconstruct a sample video file of a couple of megabytes using a .srs and the original video file, that can still be packed in split rar archives.
If you want something similar in other languages, I suggest you look at the unrar source from RarLab or at one of the following projects. They are open source and have the capabilities to play video files in RAR archives.
Other interesting projects:
files on the fly)
An other idea is to have a look at some comic book readers that support the .cbr format. This is just a rar archive with images stored in it.