Home
last modified time | relevance | path

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

/external/protobuf/java/src/test/java/com/google/protobuf/
DByteStringTest.java77 private boolean isArrayRange(byte[] left, byte[] right, int rightOffset, int length) { in isArrayRange() method in ByteStringTest
87 return left.length == right.length && isArrayRange(left, right, 0, left.length); in isArray()
94 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500)); in testSubstring_BeginIndex()
101 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize()
118 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_ByteBufferSize()
128 isArrayRange(byteString.toByteArray(), bytes, 500, bytes.length - 500)); in testCopyFrom_ByteBuffer()
136 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding()
144 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Utf8()
153 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Iterable()
170 isArrayRange(bytes, target, 400, bytes.length)); in testCopyTo_TargetOffset()
[all …]