Searched refs:indexOfElement (Results 1 – 5 of 5) sorted by relevance
/external/okhttp/okio/okio/src/test/java/okio/ |
D | BufferedSourceTest.java | 470 @Test public void indexOfElement() throws IOException { in indexOfElement() method in BufferedSourceTest 472 assertEquals(0, source.indexOfElement(ByteString.encodeUtf8("DEFGaHIJK"))); in indexOfElement() 473 assertEquals(1, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJKb"))); in indexOfElement() 474 assertEquals(Segment.SIZE + 1, source.indexOfElement(ByteString.encodeUtf8("cDEFGHIJK"))); in indexOfElement() 475 assertEquals(1, source.indexOfElement(ByteString.encodeUtf8("DEFbGHIc"))); in indexOfElement() 476 assertEquals(-1L, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJK"))); in indexOfElement() 477 assertEquals(-1L, source.indexOfElement(ByteString.encodeUtf8(""))); in indexOfElement() 482 assertEquals(-1, source.indexOfElement(ByteString.encodeUtf8("DEFGaHIJK"), 1)); in indexOfElementWithOffset() 483 assertEquals(15, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJKb"), 15)); in indexOfElementWithOffset()
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | BufferedSource.java | 223 long indexOfElement(ByteString targetBytes) throws IOException; in indexOfElement() method 232 long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException; in indexOfElement() method
|
D | RealBufferedSource.java | 316 @Override public long indexOfElement(ByteString targetBytes) throws IOException { in indexOfElement() method in RealBufferedSource 317 return indexOfElement(targetBytes, 0); in indexOfElement() 320 @Override public long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException { in indexOfElement() method in RealBufferedSource 326 while ((index = buffer.indexOfElement(targetBytes, fromIndex)) == -1) { in indexOfElement()
|
D | Buffer.java | 1256 @Override public long indexOfElement(ByteString targetBytes) { 1257 return indexOfElement(targetBytes, 0); 1260 @Override public long indexOfElement(ByteString targetBytes, long fromIndex) {
|
/external/okhttp/okio/ |
D | CHANGELOG.md | 41 * New APIs: `BufferedSink.emit()`, `BufferedSource.request()` and `BufferedSink.indexOfElement()`.
|