MCPcopy Create free account
hub / github.com/Youlor/unpacker / slice

Method slice

dexfixer/src/com/android/dx/util/ByteArray.java:97–101  ·  view source on GitHub ↗

Returns a slice (that is, a sub-array) of this instance. @param start >= 0; start index of the slice (inclusive) @param end >= start, <= size(); end index of the slice (exclusive) @return non-null; the slice

(int start, int end)

Source from the content-addressed store, hash-verified

95 * @return {@code non-null;} the slice
96 */
97 public ByteArray slice(int start, int end) {
98 checkOffsets(start, end);
99 byte[] slicedOut = Arrays.copyOfRange(bytes, start, end);
100 return new ByteArray(slicedOut);
101 }
102
103 /**
104 * Returns the offset into the given array represented by the given

Callers 8

codeMethod · 0.95
localVariableTableMethod · 0.95
RawAttributeMethod · 0.80
parseUtf8Method · 0.80
DcfTypeListMethod · 0.80
sourceDebugExtensionMethod · 0.80
AnnotationParserMethod · 0.80

Calls 1

checkOffsetsMethod · 0.95

Tested by

no test coverage detected