Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 952 for lengths (2.31 sec)

  1. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java

            // Arrange
            byte[] largeData = new byte[1000];
            for (int i = 0; i < largeData.length; i++) {
                largeData[i] = (byte) (i % 256);
            }
            int offset = 990;
            int length = 10;
    
            TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, largeData, offset, length);
            byte[] dst = new byte[100];
    
            // Act
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/FaultTolerantClientTest.java

                fail();
            } catch (final MultipleCrawlingAccessException e) {
                // ok
                final Throwable[] causes = e.getCauses();
                assertEquals(5, causes.length);
            }
            assertEquals(1, testListener.startCount);
            assertEquals(5, testListener.requestCount);
            assertEquals(5, testListener.exceptionCount);
            assertEquals(1, testListener.endCount);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

        }
    
        /**
         * Helper method to create a test string of specified length
         */
        private String createTestString(int length) {
            StringBuilder sb = new StringBuilder(length);
            for (int i = 0; i < length; i++) {
                sb.append((char) ('A' + (i % 26)));
            }
            return sb.toString();
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SIDCacheImplTest.java

                // Provide empty arrays to satisfy code paths
                rpc.names = new lsarpc.LsarTransNameArray();
                rpc.names.count = sids.length;
                rpc.names.names = new lsarpc.LsarTranslatedName[sids.length];
                for (int i = 0; i < sids.length; i++) {
                    rpc.names.names[i] = new lsarpc.LsarTranslatedName();
                    rpc.names.names[i].sid_type = (short) jcifs.SID.SID_TYPE_UNKNOWN;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

         * @param buf the buffer containing the fragment
         * @param off the offset into the buffer
         * @param length the length of data to send
         * @param isDirect whether to use direct transmission
         * @throws IOException if an I/O error occurs
         */
        protected abstract void doSendFragment(byte[] buf, int off, int length, boolean isDirect) throws IOException;
    
        /**
         * Receives a DCERPC fragment from the remote endpoint
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TextUtil.java

                return buf.toString();
            }
            return buf.substring(buf.length() - length, buf.length());
        }
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/netbios/SessionServicePacket.java

         */
        public int writeWireFormat(final byte[] dst, final int dstIndex) {
            length = writeTrailerWireFormat(dst, dstIndex + HEADER_LENGTH);
            writeHeaderWireFormat(dst, dstIndex);
            return HEADER_LENGTH + length;
        }
    
        int readWireFormat(final InputStream in, final byte[] buffer, final int bufferIndex) throws IOException {
            readHeaderWireFormat(in, buffer, bufferIndex);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunk.java

        private final long sourceOffset;
        private final long targetOffset;
        private final int length;
    
        /**
         * Constructs a server copy chunk descriptor
         * @param soff the source file offset
         * @param toff the target file offset
         * @param len the length of data to copy
         */
        public SrvCopychunk(final long soff, final long toff, final int len) {
            this.sourceOffset = soff;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

            assertEquals(0, used, "readBytesWireFormat is unimplemented and must return 0");
        }
    
        private static byte[] subArray(byte[] src, int offset, int length) {
            byte[] dst = new byte[length];
            System.arraycopy(src, offset, dst, 0, length);
            return dst;
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            int bytesRead = response.readDataWireFormat(data, 0, data.length);
    
            assertEquals(40, bytesRead, "Should read 40 bytes for the two entries.");
            assertNotNull(response.results, "Results should not be null.");
            assertEquals(2, response.results.length, "Should have 2 share entries.");
    
            SmbShareInfo share1 = (SmbShareInfo) response.results[0];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top