Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for buffer1 (0.05 sec)

  1. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

                assertNotNull(buffer, "Buffer should not be null even when cache is full");
                assertEquals(SmbComTransaction.TRANSACTION_BUF_SIZE, buffer.length, "Buffer should have correct size");
                buffers.add(buffer);
            }
    
            // When - Release all buffers back
            for (byte[] buffer : buffers) {
                BufferCache.releaseBuffer(buffer);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // For GCM, last 4 bytes should contain incrementing counter
            ByteBuffer buffer1 = ByteBuffer.wrap(nonce1, 12, 4).order(java.nio.ByteOrder.LITTLE_ENDIAN);
            ByteBuffer buffer2 = ByteBuffer.wrap(nonce2, 12, 4).order(java.nio.ByteOrder.LITTLE_ENDIAN);
            int counter1 = buffer1.getInt();
            int counter2 = buffer2.getInt();
    
            assertEquals(counter1 + 1, counter2, "Counter should increment between nonces");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/BufferCache.java

     */
    
    package jcifs.smb1.smb1;
    
    import jcifs.smb1.Config;
    
    /**
     * Buffer cache implementation for SMB1 protocol operations.
     * Manages a pool of byte buffers to reduce garbage collection overhead.
     *
     * Performance optimizations:
     * - Uses ConcurrentLinkedQueue for O(1) operations
     * - Lock-free operations for better concurrency
     * - Proper buffer validation and limits
     */
    public class BufferCache {
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            SMBUtil.writeInt2(8, buffer, 58); // Security buffer length
    
            // Add some dummy security data at offset 64 from start
            buffer[64] = (byte) 0x4E; // NTLMSSP signature start
            buffer[65] = (byte) 0x54;
            buffer[66] = (byte) 0x4C;
            buffer[67] = (byte) 0x4D;
            buffer[68] = (byte) 0x53;
            buffer[69] = (byte) 0x53;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/Configuration.java

         *
         * @return netbios cache timeout, in seconds, 0 - disable caching, -1 - cache forever
         */
        int getNetbiosCachePolicy();
    
        /**
         * Gets the maximum buffer size for IO operations
         *
         * @return the maximum size of IO buffers, limits the maximum message size
         */
        int getMaximumBufferSize();
    
        /**
         *
         * Property {@code jcifs.smb.client.transaction_buf_size} (int, default 65535)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // Status
            SMBUtil.writeInt4(0, buffer, headerStart + 8);
            // Command (READ = 0x0008)
            SMBUtil.writeInt2(0x0008, buffer, headerStart + 12);
            // Credit request/response
            SMBUtil.writeInt2(1, buffer, headerStart + 14);
            // Flags
            SMBUtil.writeInt4(0, buffer, headerStart + 16);
            // Next command
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/config/BaseConfiguration.java

        /** Order of name resolution methods to use */
        protected List<ResolverType> resolverOrder;
        /** Maximum buffer size for IO operations */
        protected int maximumBufferSize = 0x10000;
        /** Maximum buffer size for SMB transaction operations */
        protected int transactionBufferSize = 0xFFFF - 512;
        /** Number of buffers to keep in cache */
        protected int bufferCacheSize = 16;
        /** Maximum size for list operations */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

        }
    
        @Override
        public int decode(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException {
            return decode(buffer, bufferIndex, false);
        }
    
        /**
         * Decodes the SMB2 message from the buffer.
         *
         * @param buffer the buffer containing the message
         * @param bufferIndex the starting position in the buffer
         * @param compound whether this is part of a compound chain
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

        }
    
        /**
         * Reads the AndX wire format from buffer
         * @param buffer the buffer to read from
         * @param bufferIndex the starting index
         * @return the number of bytes read
         * @throws SMBProtocolDecodingException if decoding fails
         */
        protected int readAndXWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/compression/CompressionService.java

        /**
         * Decompresses data into a provided buffer.
         *
         * @param compressedData the compressed data buffer
         * @param offset the offset in the compressed data buffer
         * @param length the length of compressed data
         * @param outputBuffer the output buffer for decompressed data
         * @param outputOffset the offset in the output buffer
         * @param algorithm the compression algorithm that was used
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top