Searched refs:commentLength (Results 1 - 8 of 8) sorted by relevance
/developtools/hapsigner/hapsigntool_cpp/zip/src/ |
H A D | endof_central_directory.cpp | 50 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 D | central_directory.cpp | 44 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 D | EndOfCentralDirectory.java | 86 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 D | CentralDirectory.java | 119 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 D | ZipUtils.java | 88 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 D | endof_central_directory.h | 106 void SetCommentLength(uint16_t commentLength);
|
H A D | central_directory.h | 115 void SetCommentLength(uint16_t commentLength);
|
/developtools/hapsigner/hapsigntool_cpp/utils/src/ |
H A D | hap_signer_block_utils.cpp | 166 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