Search Options

Results per page
Sort
Preferred Languages
Advance

Results 361 - 370 of 1,732 for writeFn (0.55 sec)

  1. android/guava/src/com/google/common/util/concurrent/Futures.java

      //    visible to done(). This is because there is no happens before edge between the write and a
      //    (hypothetical) unsafe read by our caller. Note: adding 'volatile' does not fix this issue,
      //    it would just add an edge such that if done() observed non-null, then it would also
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlWriterRequest.java

            public XmlWriterRequestBuilder<T> writer(Writer writer) {
                this.writer = writer;
                return this;
            }
    
            public XmlWriterRequestBuilder<T> content(T content) {
                this.content = content;
                return this;
            }
    
            public XmlWriterRequestBuilder<T> inputLocationFormatter(Function<Object, String> inputLocationFormatter) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sat Aug 10 22:21:50 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/EncodableTest.java

            Arrays.fill(dst, (byte) 0x55);
    
            // Act
            int written = enc.encode(dst, dstIndex);
    
            // Assert: reported written bytes matches size() and requested len.
            assertEquals(len, enc.size(), "size() must equal provided length");
            assertEquals(len, written, "encode() must return number of bytes written");
    
            // Assert: copied region equals the source slice.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            byte[] buffer = new byte[10];
            int written = response.writeSetupWireFormat(buffer, 0);
    
            assertEquals(0, written);
        }
    
        @Test
        void testWriteParametersWireFormat() {
            // Test writeParametersWireFormat returns 0
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/http/NetworkExplorerTest.java

        void setUp() throws Exception {
            // Setup response writers
            stringWriter = new StringWriter();
            printWriter = new PrintWriter(stringWriter);
            outputStream = new ByteArrayOutputStream();
    
            servletOutputStream = new ServletOutputStream() {
                @Override
                public void write(int b) throws IOException {
                    outputStream.write(b);
                }
    
                @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

                return ((Smb2ReadRequest) message).getReadLength() > 1048576; // 1MB
            }
            if (message instanceof Smb2WriteRequest) {
                // Data length not accessible, assume large writes for now
                return true;
            }
            return false;
        }
    
        private boolean isMetadataOperation(CommonServerMessageBlock message) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  7. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        val builder = MockResponse.Builder().body("ABC")
        assertThat(headersToList(builder)).containsExactly("Content-Length: 3")
        val response = builder.build()
        val body = Buffer()
        response.body!!.writeTo(body)
        assertThat(body.readUtf8()).isEqualTo("ABC")
      }
    
      @Test
      fun mockResponseAddHeader() {
        val builder =
          MockResponse
            .Builder()
            .clearHeaders()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  8. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        setLevel(Level.HEADERS)
        server.enqueue(MockResponse())
        val body: RequestBody =
          object : RequestBody() {
            override fun contentType() = PLAIN
    
            override fun writeTo(sink: BufferedSink) {
              sink.writeUtf8("Hi!")
            }
          }
        val response = client.newCall(request().post(body).build()).execute()
        response.body.close()
        applicationLogs
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 37.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/io/CopyUtilTest.java

            final int result = copy(url, "UTF-8", writer);
            assertThat(result, is(urlString.length()));
            assertThat(writer.toString(), is(urlString));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testFileToWriter() throws Exception {
            final int result = copy(inputFile, "UTF-8", writer);
            assertThat(result, is(urlString.length()));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionTest.java

            assertEquals(smbComNtTransaction.parameterOffset, SmbComTransaction.readInt4(dst, 23),
                    "parameterOffset should be written correctly");
            assertEquals(smbComNtTransaction.dataCount, SmbComTransaction.readInt4(dst, 27), "dataCount should be written correctly");
            assertEquals(smbComNtTransaction.dataOffset, SmbComTransaction.readInt4(dst, 31), "dataOffset should be written correctly");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top