Home
last modified time | relevance | path

Searched refs:commentLength (Results 1 - 8 of 8) sorted by relevance

/developtools/hapsigner/hapsigntool_cpp/zip/src/
H A Dendof_central_directory.cpp50 uint16_t commentLength = eocd->GetCommentLength(); in GetEOCDByBytes() local
51 if (bf.Remaining() != commentLength) { in GetEOCDByBytes()
53 SIGNATURE_TOOLS_LOGE("bf.Remaining() is not equal to commentLength, bf.Remaining(): %d, " in GetEOCDByBytes()
54 "commentLength: %" PRIu16, bf.Remaining(), commentLength); in GetEOCDByBytes()
57 if (commentLength > 0) { in GetEOCDByBytes()
58 std::string readComment(commentLength, 0); in GetEOCDByBytes()
59 bf.GetData(&readComment[0], commentLength); in GetEOCDByBytes()
62 eocd->SetLength(EOCD_LENGTH + commentLength); in GetEOCDByBytes()
192 void EndOfCentralDirectory::SetCommentLength(uint16_t commentLength) in SetCommentLength() argument
[all...]
H A Dcentral_directory.cpp44 uint16_t commentLength = cd->GetCommentLength(); in GetCentralDirectory() local
45 if (commentLength > 0) { in GetCentralDirectory()
46 std::string readComment(commentLength, 0); in GetCentralDirectory()
47 bf.GetData(&readComment[0], commentLength); in GetCentralDirectory()
50 cd->SetLength(CD_LENGTH + fileNameLength + extraLength + commentLength); in GetCentralDirectory()
269 void CentralDirectory::SetCommentLength(uint16_t commentLength) in SetCommentLength() argument
271 m_commentLength = commentLength; in SetCommentLength()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
H A DEndOfCentralDirectory.java86 private int commentLength; field in EndOfCentralDirectory
159 UnsignedDecimalUtil.setUnsignedShort(bf, commentLength); in toBytes()
160 if (commentLength > 0) { in toBytes()
223 return commentLength; in getCommentLength()
226 public void setCommentLength(int commentLength) { in setCommentLength() argument
227 this.commentLength = commentLength; in setCommentLength()
H A DCentralDirectory.java119 private int commentLength; field in CentralDirectory
162 length = CD_LENGTH + fileNameLength + extraLength + commentLength; in updateLength()
232 UnsignedDecimalUtil.setUnsignedShort(bf, commentLength); in toBytes()
243 if (commentLength > 0) { in toBytes()
346 return commentLength; in getCommentLength()
349 public void setCommentLength(int commentLength) { in setCommentLength() argument
350 this.commentLength = commentLength; in setCommentLength()
H A DZipUtils.java88 int commentLength = getUInt16FromBuffer(searchBuffer, currentOffset + ZIP_EOCD_COMMENT_LENGTH_OFFSET); in findEocdInSearchBuffer()
90 if (commentLength == expectedCommentLength) { in findEocdInSearchBuffer()
/developtools/hapsigner/hapsigntool_cpp/zip/include/
H A Dendof_central_directory.h106 void SetCommentLength(uint16_t commentLength);
H A Dcentral_directory.h115 void SetCommentLength(uint16_t commentLength);
/developtools/hapsigner/hapsigntool_cpp/utils/src/
H A Dhap_signer_block_utils.cpp166 unsigned short commentLength; in FindEocdInSearchBuffer() local
168 if (searchBuffer.GetUInt16(calcCurrentOffset + ZIP_EOCD_COMMENT_LENGTH_OFFSET, commentLength) && in FindEocdInSearchBuffer()
169 static_cast<int>(commentLength) == expectedCommentLength) { in FindEocdInSearchBuffer()

Completed in 5 milliseconds