Searched refs:indexOfElement (Results 1 – 5 of 5) sorted by relevance
/external/okhttp/okio/okio/src/test/java/okio/ |
D | BufferedSourceTest.java | 513 @Test public void indexOfElement() throws IOException { in indexOfElement() method in BufferedSourceTest 515 assertEquals(0, source.indexOfElement(ByteString.encodeUtf8("DEFGaHIJK"))); in indexOfElement() 516 assertEquals(1, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJKb"))); in indexOfElement() 517 assertEquals(Segment.SIZE + 1, source.indexOfElement(ByteString.encodeUtf8("cDEFGHIJK"))); in indexOfElement() 518 assertEquals(1, source.indexOfElement(ByteString.encodeUtf8("DEFbGHIc"))); in indexOfElement() 519 assertEquals(-1L, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJK"))); in indexOfElement() 520 assertEquals(-1L, source.indexOfElement(ByteString.encodeUtf8(""))); in indexOfElement() 525 assertEquals(-1, source.indexOfElement(ByteString.encodeUtf8("DEFGaHIJK"), 1)); in indexOfElementWithOffset() 526 assertEquals(15, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJKb"), 15)); in indexOfElementWithOffset()
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | BufferedSource.java | 238 long indexOfElement(ByteString targetBytes) throws IOException; in indexOfElement() method 247 long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException; in indexOfElement() method
|
D | RealBufferedSource.java | 334 @Override public long indexOfElement(ByteString targetBytes) throws IOException { in indexOfElement() method in RealBufferedSource 335 return indexOfElement(targetBytes, 0); in indexOfElement() 338 @Override public long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException { in indexOfElement() method in RealBufferedSource 344 while ((index = buffer.indexOfElement(targetBytes, fromIndex)) == -1) { in indexOfElement()
|
D | Buffer.java | 1274 @Override public long indexOfElement(ByteString targetBytes) { 1275 return indexOfElement(targetBytes, 0); 1278 @Override public long indexOfElement(ByteString targetBytes, long fromIndex) {
|
/external/okhttp/okio/ |
D | CHANGELOG.md | 76 * New APIs: `BufferedSink.emit()`, `BufferedSource.request()` and `BufferedSink.indexOfElement()`.
|