Home
last modified time | relevance | path

Searched refs:eocd (Results 1 – 5 of 5) sorted by relevance

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
DEndOfCentralDirectory.java113 EndOfCentralDirectory eocd = new EndOfCentralDirectory(); in getEOCDByBytes() local
123 eocd.setDiskNum(UnsignedDecimalUtil.getUnsignedShort(bf)); in getEOCDByBytes()
124 eocd.setcDStartDiskNum(UnsignedDecimalUtil.getUnsignedShort(bf)); in getEOCDByBytes()
125 eocd.setThisDiskCDNum(UnsignedDecimalUtil.getUnsignedShort(bf)); in getEOCDByBytes()
126 eocd.setcDTotal(UnsignedDecimalUtil.getUnsignedShort(bf)); in getEOCDByBytes()
127 eocd.setcDSize(UnsignedDecimalUtil.getUnsignedInt(bf)); in getEOCDByBytes()
128 eocd.setOffset(UnsignedDecimalUtil.getUnsignedInt(bf)); in getEOCDByBytes()
129 eocd.setCommentLength(UnsignedDecimalUtil.getUnsignedShort(bf)); in getEOCDByBytes()
130 if (bf.remaining() != eocd.getCommentLength()) { in getEOCDByBytes()
133 if (eocd.getCommentLength() > 0) { in getEOCDByBytes()
[all …]
DZipUtils.java124 public static long getCentralDirectoryOffset(ByteBuffer eocd) { in getCentralDirectoryOffset() argument
125 checkBufferIsLittleEndian(eocd); in getCentralDirectoryOffset()
126 return getUInt32FromBuffer(eocd, eocd.position() + ZIP_CENTRAL_DIR_OFFSET_IN_EOCD); in getCentralDirectoryOffset()
135 public static void setCentralDirectoryOffset(ByteBuffer eocd, long offset) { in setCentralDirectoryOffset() argument
136 checkBufferIsLittleEndian(eocd); in setCentralDirectoryOffset()
137 setUInt32ToBuffer(eocd, eocd.position() + ZIP_CENTRAL_DIR_OFFSET_IN_EOCD, offset); in setCentralDirectoryOffset()
146 public static long getCentralDirectorySize(ByteBuffer eocd) { in getCentralDirectorySize() argument
147 checkBufferIsLittleEndian(eocd); in getCentralDirectorySize()
148 return getUInt32FromBuffer(eocd, eocd.position() + ZIP_CENTRAL_DIR_SIZE_OFFSET_IN_EOCD); in getCentralDirectorySize()
157 public static int getCentralDirectoryCount(ByteBuffer eocd) { in getCentralDirectoryCount() argument
[all …]
DZipFileInfo.java30 private final ByteBuffer eocd; field in ZipFileInfo
33 long eocdOffset, ByteBuffer eocd) { in ZipFileInfo() argument
38 this.eocd = eocd; in ZipFileInfo()
58 return eocd; in getEocd()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
DHapVerify.java84 private ZipDataInput eocd; field in HapVerify
109 ZipDataInput eocd, in HapVerify() argument
114 this.eocd = eocd; in HapVerify()
376 … keySet, new ZipDataInput[]{beforeApkSigningBlock, centralDirectoryBlock, eocd}, optionalBlocks); in parserContentinfo()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/provider/
DSignProvider.java346 ZipDataInput eocd = new ByteBufferZipDataInput(eocdBuffer); in sign() local
352 ZipDataInput[] contents = {beforeCentralDir, centralDirectory, eocd}; in sign()