Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 52 for setData (0.05 seconds)

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                assertDoesNotThrow(() -> request.setData(data, 0, data.length));
            }
    
            @Test
            @DisplayName("Should set data with partial buffer")
            void testSetDataPartialBuffer() {
                byte[] data = new byte[1024];
                new Random().nextBytes(data);
    
                assertDoesNotThrow(() -> request.setData(data, 100, 500));
            }
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocConverter.java

            Text comment = (Text) firstNode.getFirstChild();
            Matcher matcher = ACCESSOR_COMMENT_PATTERN.matcher(comment.getData());
            if (matcher.lookingAt()) {
                String theOrWhether = matcher.group(1).toLowerCase(Locale.US);
                comment.setData(StringUtils.capitalize(theOrWhether) + " " + comment.getData().substring(matcher.end()));
            }
        }
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed May 21 06:20:45 GMT 2025
    - 29.3K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/SmbFileOutputStream.java

                    if (this.smb2) {
                        final Smb2WriteRequest wr = new Smb2WriteRequest(th.getConfig(), fh.getFileId());
                        wr.setOffset(this.fp);
                        wr.setData(b, off, w);
    
                        final Smb2WriteResponse resp = th.send(wr, RequestParam.NO_RETRY);
                        final long cnt = resp.getCount();
                        this.fp += cnt;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  4. docs/smb3-features/05-rdma-smb-direct-design.md

                
                // Create response with data from RDMA buffer
                Smb2ReadResponse response = new Smb2ReadResponse();
                response.setData(readBuffer.array(), 0, request.getLength());
                
                // Notify waiting thread
                request.setResponse(response);
                
            } finally {
                readRegion.close();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 35.9K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                        request.setOffset(this.fp);
                        request.setRemainingBytes(len - w - off);
                        request.setData(b, off, w);
                        final Smb2WriteResponse resp = th.send(request, RequestParam.NO_RETRY);
                        cnt = resp.getCount();
                    } else {
                        final SmbComWriteAndX request =
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

                if (responseData != null) {
                    dataMap.put("url", responseData.getUrl());
                }
                dataMap.put("content", "test content");
                resultData.setData(dataMap.toString().getBytes());
                return resultData;
            }
    
            @Override
            public String getName() {
                return "TestTransformer";
            }
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 33.6K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

            assertEquals(numberOfMessages, response.getNumberOfMessages());
            assertEquals(messageLength, response.getMessageLength());
            assertNotNull(response.getData());
            assertEquals(0, response.getData().length);
            // The decode method returns only the header size (16 bytes)\n        assertEquals(16, bytesDecoded);
        }
    
        @Test
        @DisplayName("Test decode with non-zero buffer index")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                assertEquals(1, testResponse.getDecodeCallCount());
                assertNotNull(testResponse.getData());
                assertEquals(length, testResponse.getData().length);
    
                // Verify data was copied correctly
                for (int i = 0; i < length; i++) {
                    assertEquals(testBuffer[10 + i], testResponse.getData()[i]);
                }
            }
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 16.2K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/RequestWithPathTest.java

            testImplementation.setPath(expectedPath);
            assertEquals(expectedPath, testImplementation.getPath());
        }
    
        @Test
        @DisplayName("Test setPath updates path correctly")
        void testSetPath() {
            // Test with mock
            String newPath = "/new/path/file.txt";
            doNothing().when(requestWithPath).setPath(newPath);
    
            requestWithPath.setPath(newPath);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbTreeConnection.java

                    // I want to restore it before retrying. request.reset()
                    // restores almost everything that was modified, except the path.
                    rpath.setPath(savedPath);
                    rpath.setFullUNCPath(rpath.getDomain(), rpath.getServer(), savedFullPath);
                }
                if (response != null) {
                    response.reset();
                }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 30.4K bytes
    - Click Count (1)
Back to Top