Searched defs:indexOfElement (Results 1 - 4 of 4) sorted by relevance
/external/okhttp/okio/okio/src/main/java/okio/ |
H A D | BufferedSource.java | 238 long indexOfElement(ByteString targetBytes) throws IOException; method in interface:BufferedSource 247 long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException; method in interface:BufferedSource
|
H A D | RealBufferedSource.java | 334 @Override public long indexOfElement(ByteString targetBytes) throws IOException { method in class:RealBufferedSource 335 return indexOfElement(targetBytes, 0); 338 @Override public long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException { method in class:RealBufferedSource 344 while ((index = buffer.indexOfElement(targetBytes, fromIndex)) == -1) {
|
H A D | Buffer.java | 1274 @Override public long indexOfElement(ByteString targetBytes) { method in class:Buffer 1275 return indexOfElement(targetBytes, 0); 1278 @Override public long indexOfElement(ByteString targetBytes, long fromIndex) { method in class:Buffer
|
/external/okhttp/okio/okio/src/test/java/okio/ |
H A D | BufferedSourceTest.java | 513 @Test public void indexOfElement() throws IOException { method in class:BufferedSourceTest 515 assertEquals(0, source.indexOfElement(ByteString.encodeUtf8("DEFGaHIJK"))); 516 assertEquals(1, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJKb"))); 517 assertEquals(Segment.SIZE + 1, source.indexOfElement(ByteString.encodeUtf8("cDEFGHIJK"))); 518 assertEquals(1, source.indexOfElement(ByteString.encodeUtf8("DEFbGHIc"))); 519 assertEquals(-1L, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJK"))); 520 assertEquals(-1L, source.indexOfElement(ByteString.encodeUtf8(""))); 525 assertEquals(-1, source.indexOfElement(ByteString.encodeUtf8("DEFGaHIJK"), 1)); 526 assertEquals(15, source.indexOfElement(ByteString.encodeUtf8("DEFGHIJKb"), 15));
|
Completed in 60 milliseconds