- 69
- 0
- 约1.43万字
- 约 11页
- 2018-08-22 发布于江苏
- 举报
rar文档结构说明翻译(中英对照)3
CSDN-蚍蜉撼青松 /Ping_Fani07
《RAR文档结构说明书的中文翻译》 译者邮箱:tuobaye2006@
PAGE \* MERGEFORMAT - 10 -
PAGE \* MERGEFORMAT - 11 -
? RAR version 3.40 Technical information?? ??RAR 3.4版 技术信息? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~?THE ARCHIVE FORMAT DESCRIBED BELOW IS ONLY VALID FOR VERSIONS SINCE 1.50? 下面对归档文件格式的描述仅仅对1.5以后的版本是有效的
?===============================================RAR archive file formatRAR归档文件格式?===============================================
Archive file consists of variable length blocks.
归档文件是由可变长度的块组成的。
The order of these blocks may vary, but the first block must be a marker block followed by an archive header block.?? ?这些块之间没有固定地先后顺序,但是要求第一个块必须是被一个归档头部块紧跟的标志块
【译者注:即第一个块是标志块,并且其后紧跟一个归档头部块】。?? Each block begins with the following fields:??????? 每一个块都是由以下域开始的:【译者注:即每一个块的头部都是由以下域(可称之为头域)组成的】HEAD_CRC?????? 2 bytes???? CRC of total block or block part?? ??? ??? ??? ??? ??? ??? ??? ??? ?整个块或者块某个部分的CRC(根据块类型而有不同) HEAD_TYPE????? 1 byte????? Block type?? ??? ??? ??? ??? ??? ??? ??? ??? ?块类型
【译者注:也可以理解为块头部类型,因为不同的块对应不同的块头部。后文也经常混淆这两种概念。】HEAD_FLAGS????2 bytes???? Block flags?? ??? ??? ??? ??? ??? ??? ??? ??? ?块标志HEAD_SIZE????? 2 bytes???? Block size?? ??? ??? ??? ??? ??? ??? ??? ??? ?块大小
【译者注:本文中和块头部大小的概念一直混淆。】ADD_SIZE 4 bytes???? Optional field - added block size?? ??? ??? ??? ??? ??? ??? ??? ??? ?添加块的大小(这是一个可选域)?? Field ADD_SIZE present only if (HEAD_FLAGS 0x8000) != 0?? ADD_SIZE这个域仅当(HEAD_FLAGS 0x8000) != 0【译者注:即块标志的首位被置1】的时候才会存在?? Total block size is HEAD_SIZE if (HEAD_FLAGS 0x8000) == 0
当块标志的首位被置0的时候,整个块的大小就是HEAD_SIZE and HEAD_SIZE+ADD_SIZE if the field ADD_SIZE is present - when (HEAD_FLAGS 0x8000) != 0.?? ? 而块标志的首位被置1的时候,整个块的大小就是HEAD_SIZE+ADD_SIZE?? In each block the followings bits in HEAD_FLAGS have the same meaning:?? ? HEAD_FLAGS域【块标志】的以下几位在每一个块中都有相同的含义:? 0x4000 - if set, older RAR versions will ig
原创力文档

文档评论(0)