- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 29 for Peeker (0.05 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt
* a modest limit on `byteCount`, such as 1 MiB. */ @Throws(IOException::class) fun peekBody(byteCount: Long): ResponseBody { val peeked = body.source().peek() val buffer = Buffer() peeked.request(byteCount) buffer.write(peeked, minOf(byteCount, peeked.buffer.size)) return buffer.asResponseBody(body.contentType(), buffer.size) } @JvmName("-deprecated_body") @Deprecated(
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 28 14:39:28 GMT 2025 - 18.1K bytes - Click Count (0) -
src/archive/tar/reader.go
// io.CopyN done shortly afterwards to trigger any IO errors. var seekSkipped int64 // Number of bytes skipped via Seek if sr, ok := r.(io.Seeker); ok && n > 1 { // Not all io.Seeker can actually Seek. For example, os.Stdin implements // io.Seeker, but calling Seek always returns an error and performs // no action. Thus, we try an innocent seek to the current position // to see if Seek is really supported.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Oct 07 19:46:36 GMT 2025 - 26.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/CloserTest.java
import java.util.Objects; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; import org.jspecify.annotations.Nullable; /** * Tests for {@link Closer}. * * @author Colin Decker */ @NullUnmarked public class CloserTest extends TestCase { private TestSuppressor suppressor; @Override protected void setUp() throws Exception { suppressor = new TestSuppressor(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.9K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/SubscriberRegistry.java
import java.util.concurrent.ConcurrentMap; import java.util.concurrent.CopyOnWriteArraySet; import org.jspecify.annotations.Nullable; /** * Registry of subscribers to a single event bus. * * @author Colin Decker */ final class SubscriberRegistry { /** * All registered subscribers, indexed by event type. * * <p>The {@link CopyOnWriteArraySet} values make it easy and relatively lightweight to get anCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
when(handle.getPipe()).thenReturn(pipe); when(tree.isSMB2()).thenReturn(smb2); return new SmbPipeInputStream(handle, tree); } @Test @DisplayName("available() on SMB2 returns peeked byte count and interacts with tree") void available_smb2_happyPath() throws Exception { // Verify SMB2 path: IOCTL peek result is returned and resources are closed
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
cmd/metacache-entries_test.go
entry: "src/dir/", dir: "src/", sep: slashSeparator, want: true, }, { testName: "deeper-file", entry: "src/dir/somewhere.ext", dir: "src/", sep: slashSeparator, want: false, }, { testName: "deeper-dir", entry: "src/dir/somewhere/", dir: "src/", sep: slashSeparator, want: false, }, {Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 31.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
import java.util.stream.Stream; import junit.framework.TestSuite; import org.jspecify.annotations.NullUnmarked; /** * Tests for the default implementations of {@code CharSource} methods. * * @author Colin Decker */ @NullUnmarked public class CharSourceTest extends IoTestCase { @AndroidIncompatible // Android doesn't understand suites whose tests lack default constructors. public static TestSuite suite() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CloserTest.java
import java.util.Objects; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; import org.jspecify.annotations.Nullable; /** * Tests for {@link Closer}. * * @author Colin Decker */ @NullUnmarked public class CloserTest extends TestCase { private TestSuppressor suppressor; @Override protected void setUp() throws Exception { suppressor = new TestSuppressor(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
import java.util.Arrays; import java.util.logging.Logger; import org.jspecify.annotations.NullUnmarked; import org.jspecify.annotations.Nullable; /** * {@link SourceSinkFactory} implementations. * * @author Colin Decker */ @NullUnmarked public class SourceSinkFactories { private SourceSinkFactories() {} public static CharSourceFactory stringCharSourceFactory() { return new StringSourceFactory(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jul 16 17:42:14 GMT 2025 - 12.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
import junit.framework.TestSuite; import org.jspecify.annotations.NullUnmarked; import org.jspecify.annotations.Nullable; /** * Tests for the default implementations of {@code ByteSource} methods. * * @author Colin Decker */ @NullUnmarked public class ByteSourceTest extends IoTestCase { @AndroidIncompatible // Android doesn't understand suites whose tests lack default constructors. public static TestSuite suite() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0)