Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 52 for Remaining (2.95 sec)

  1. src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java

            }
    
            try {
                // For TCP fallback, simulate reading data through the TCP socket
                int bytesToRead = Math.min(length, buffer.remaining());
                ByteBuffer tempBuffer = ByteBuffer.allocate(bytesToRead);
    
                int totalRead = 0;
                while (tempBuffer.hasRemaining() && totalRead < bytesToRead) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/MIENameTest.java

                            IllegalArgumentException.class),
    
                    // Name length larger than remaining bytes - use method reference
                    Arguments.of("name length exceeds remaining", (java.util.function.Supplier<byte[]>) () -> {
                        byte[] buf = buildBuffer(der, nameBytes);
                        // Corrupt NAME_LEN to be larger than actual by +5
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/Kerb5Authenticator.java

         */
        public String getService() {
            return this.service;
        }
    
        /**
         * Get lifetime of current user.
         *
         * @return the remaining lifetime in seconds. If the default lifetime is
         *         used, this value have no meaning.
         *
         */
        public int getUserLifeTime() {
            return this.userLifetime;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/io/Smb2ReadResponse.java

         * Gets the number of bytes actually read
         *
         * @return the dataLength
         */
        public int getDataLength() {
            return this.dataLength;
        }
    
        /**
         * Gets the number of bytes remaining to be read
         *
         * @return the dataRemaining
         */
        public int getDataRemaining() {
            return this.dataRemaining;
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/MD4.java

         * <p>
         * Continues an MD4 message digest operation, by filling the buffer,
         * transform(ing) data in 512-bit message block(s), updating the variables
         * context and count, and leaving (buffering) the remaining bytes in buffer
         * for the next update or finish.
         *
         * @param    input    input block
         * @param    offset    start of meaningful bytes in input
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileInputStream.java

                            request.setOffset(type == SmbConstants.TYPE_NAMED_PIPE ? 0 : this.fp);
                            request.setReadLength(r);
    
                            // Optimization: Set remaining bytes hint for server read-ahead
                            request.setRemainingBytes(Math.min(len - r, 1024 * 1024)); // Hint up to 1MB for read-ahead
    
                            try {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java

            }
    
            // Skip padding
            bufferIndex += 2;
    
            // Read flags
            this.flags = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // Validate remaining buffer size for algorithms
            if (len < 8 + (compressionCount * 2)) {
                throw new SMBProtocolDecodingException("Buffer too small for compression algorithms");
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

        }
    
        @Test
        @DisplayName("Should handle offset exceeding buffer")
        void testOffsetExceedsBuffer() {
            // Given
            byte[] buffer = new byte[20];
            int offset = 10; // Only 10 bytes remaining, need 16
            SMBUtil.writeInt2(16, buffer, offset); // Write valid structure size
    
            // When & Then - Will throw SMBProtocolDecodingException when trying to read beyond buffer
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/rdma/disni/DisniMemoryRegion.java

            //     throw new RuntimeException("Failed to register memory region", e);
            // }
    
            this.memoryRegister = new Object(); // Placeholder
    
            log.debug("DiSNI memory region registered, size: {}", buffer.remaining());
        }
    
        @Override
        public void invalidate() {
            if (valid && memoryRegister != null) {
                try {
                    // In real implementation, this would deregister the memory:
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/io/Smb2WriteRequest.java

            this.data = data;
            this.dataOffset = offset;
            this.dataLength = length;
        }
    
        /**
         * Sets the number of bytes remaining to be written in a sequence of write operations.
         *
         * @param remainingBytes the remainingBytes to set
         */
        public void setRemainingBytes(final int remainingBytes) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top