- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 1,160 for readn (0.02 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/FileOperator.kt
import java.nio.channels.FileChannel import okio.Buffer /** * Read and write a target file. Unlike Okio's built-in `Okio.source(java.io.File file)` and `Okio.sink(java.io.File file)` * this class offers: * * * **Read/write:** read and write using the same operator. * * **Random access:** access any position within the file. * * **Shared channels:** read and write a file channel that's shared between
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 2.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTester.java
public void testOpenStream() throws IOException { Reader reader = source.openStream(); StringWriter writer = new StringWriter(); char[] buf = new char[64]; int read; while ((read = reader.read(buf)) != -1) { writer.write(buf, 0, read); } reader.close(); writer.close(); assertExpectedString(writer.toString()); } public void testOpenBufferedStream() throws IOException {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 6.9K bytes - Viewed (0) -
src/main/java/jcifs/SmbConstants.java
/** * Lock and read operation is supported capability. */ int CAP_LOCK_AND_READ = 0x0100; /** * NT find operations are supported capability. */ int CAP_NT_FIND = 0x0200; /** * DFS operations are supported capability. */ int CAP_DFS = 0x1000; /** * Large read operations are supported capability. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java
// Flags should not be set for partial read assertFalse(d.getParametersDone(), "parametersDone should be false for partial read"); assertFalse(d.getDataDone(), "dataDone should be false for partial read"); assertTrue(d.getHasMore(), "hasMore should remain true for partial read"); } /** * Test scenario with no data to read */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaProviderTest.java
assertTrue(region.hasAccess(RdmaAccess.LOCAL_READ), "Should have local read access"); assertTrue(region.hasAccess(RdmaAccess.LOCAL_WRITE), "Should have local write access"); assertFalse(region.hasAccess(RdmaAccess.REMOTE_READ), "Should not have remote read access"); // Test cleanup region.close();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java
trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, TEST_INFO_LEVEL); byte[] buffer = new byte[256]; int read = trans2QueryPathInfo.readSetupWireFormat(buffer, 0, buffer.length); // Should read nothing (returns 0) assertEquals(0, read); } @Test void testReadParametersWireFormat() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
assertTrue(source.wasStreamOpened()); assertFalse(source.wasStreamClosed()); StringWriter writer = new StringWriter(); char[] buf = new char[64]; int read; while ((read = reader.read(buf)) != -1) { writer.write(buf, 0, read); } reader.close(); writer.close(); assertTrue(source.wasStreamClosed()); assertEquals(STRING, writer.toString()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 11.5K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
) { private val countingSource: CountingSource = CountingSource(source) private val source: BufferedSource = countingSource.buffer() /** Total bytes read thus far. */ private val byteCount: Long get() = countingSource.bytesRead - source.buffer.size /** How many bytes to read before [peekHeader] should return false, or -1L for no limit. */ private var limit = -1L
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.5K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentCache.java
} } /** * Returns an InputStream to read the content from the cache. * If the content is stored in a file, a FileInputStream is returned. * Otherwise, a ByteArrayInputStream is returned to read the data from memory. * * @return an InputStream to read the cached content * @throws IOException if an I/O error occurs while creating the InputStream */
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 3.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/jar/JarFileUtil.java
} private static final Logger logger = Logger.getLogger(JarFileUtil.class); /** * Creates and returns a <code>JarFile</code> to read the specified JAR file. * * @param file the file path (must not be {@literal null}) * @return a <code>JarFile</code> to read the specified JAR file */ public static JarFile create(final String file) { assertArgumentNotNull("file", file); try {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.9K bytes - Viewed (0)