add ZIP archive file write
- 기초적인 Zip File Write 구현 - 로컬 테스트 (MyZip.txt -> MyZip.zip) 통과.
This commit is contained in:
+4
-5
@@ -123,7 +123,7 @@ constexpr int LOCAL_FILE_HEADER_BYTE = 30;
|
||||
uint16_t diskNumStart;
|
||||
uint16_t attributeInternal;
|
||||
uint32_t attributeExternal;
|
||||
uint32_t offsetLocalHeader;
|
||||
uint32_t offsetLocalFileHeader;
|
||||
|
||||
// var[lengthOfFileName] fileName
|
||||
// var[lengthOfExtraField] extraField
|
||||
@@ -158,7 +158,6 @@ constexpr int LOCAL_FILE_HEADER_BYTE = 30;
|
||||
.ZIP file comment (variable size)
|
||||
*/
|
||||
constexpr int EOCD_BYTE = 22;
|
||||
|
||||
struct EoCDRecord {
|
||||
uint32_t signature;
|
||||
|
||||
@@ -173,9 +172,9 @@ constexpr int LOCAL_FILE_HEADER_BYTE = 30;
|
||||
|
||||
// .ZIP 파일 내 전체 파일 수
|
||||
uint16_t numOfEntries;
|
||||
uint32_t SizeOfCentralDir;
|
||||
uint32_t OffsetOfCentralDirOffset;
|
||||
uint16_t LengthOfCommentLength;
|
||||
uint32_t sizeOfCentralDir;
|
||||
uint32_t offsetCentralDir;
|
||||
uint16_t lengthOfCommentLength;
|
||||
|
||||
// var[LengthOfCommentLength] zipFileComment
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user