Searched refs:sourceSize (Results 1 - 6 of 6) sorted by relevance
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/ |
H A D | ByteBufferZipDataInput.java | 28 private final int sourceSize; field in ByteBufferZipDataInput 36 this.sourceSize = this.buffer.remaining(); in ByteBufferZipDataInput() 41 return sourceSize; in size() 46 if (size < 0 || size > sourceSize) { in copyTo() 47 throw new IndexOutOfBoundsException("size: " + size + ", source size: " + sourceSize); in copyTo() 72 if (offset == 0 && size == sourceSize) { in slice() 75 if (size < 0 || size > sourceSize) { in slice() 76 throw new IndexOutOfBoundsException("size: " + size + ", source size: " + sourceSize); in slice() 87 throw new IndexOutOfBoundsException("sourceSize: " + size); in checkChunkValid() 89 if (offset > sourceSize) { in checkChunkValid() [all...] |
H A D | RandomAccessFileZipDataInput.java | 157 private void checkBoundValid(long offset, long size, long sourceSize) { in checkBoundValid() argument 164 if (offset > sourceSize) { in checkBoundValid() 165 throw new IndexOutOfBoundsException("offset (" + offset + ") > sourceSize (" + sourceSize + ")"); in checkBoundValid() 171 if (endOffset > sourceSize) { in checkBoundValid() 173 + ") > sourceSize (" + sourceSize + ")"); in checkBoundValid()
|
/developtools/hapsigner/hapsigntool_cpp/common/src/ |
H A D | file_data_source.cpp | 22 : DataSource(), hapFileRandomAccess(hapFile), fileOffset(offset), sourceSize(size), sourcePosition(position) in FileDataSource() 32 return sourcePosition < sourceSize; in HasRemaining() 37 return sourceSize - sourcePosition; in Remaining()
|
/developtools/hapsigner/hapsigntool_cpp/zip/src/ |
H A D | random_access_file_input.cpp | 117 bool RandomAccessFileInput::CheckBoundValid(int64_t offset, int64_t size, int64_t sourceSize) in CheckBoundValid() argument 127 if (offset > sourceSize) { in CheckBoundValid() 128 SIGNATURE_TOOLS_LOGE("out of range: offset %" PRId64 " is greater than sourceSize %" PRId64, in CheckBoundValid() 129 offset, sourceSize); in CheckBoundValid() 138 if (endOffset > sourceSize) { in CheckBoundValid() 140 "sourceSize %" PRId64, offset, size, sourceSize); in CheckBoundValid()
|
/developtools/hapsigner/hapsigntool_cpp/common/include/ |
H A D | file_data_source.h | 37 int64_t sourceSize; member in OHOS::SignatureTools::FileDataSource
|
/developtools/hapsigner/hapsigntool_cpp/zip/include/ |
H A D | random_access_file_input.h | 55 bool CheckBoundValid(int64_t offset, int64_t size, int64_t sourceSize);
|
Completed in 2 milliseconds