Home
last modified time | relevance | path

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

/external/okhttp/okio/okio/src/test/java/okio/
DBufferedSourceTest.java470 @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/
DBufferedSource.java223 long indexOfElement(ByteString targetBytes) throws IOException; in indexOfElement() method
232 long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException; in indexOfElement() method
DRealBufferedSource.java316 @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()
DBuffer.java1256 @Override public long indexOfElement(ByteString targetBytes) {
1257 return indexOfElement(targetBytes, 0);
1260 @Override public long indexOfElement(ByteString targetBytes, long fromIndex) {
/external/okhttp/okio/
DCHANGELOG.md41 * New APIs: `BufferedSink.emit()`, `BufferedSource.request()` and `BufferedSink.indexOfElement()`.