Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 481 for adding (0.05 sec)

  1. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

        public void testEncoding() {
            byte[] buffer = new byte[256];
            int encodedSize = context.encode(buffer, 0);
    
            assertTrue(encodedSize > 8); // Minimum size: count + padding + flags + algorithms
            assertEquals(context.size(), encodedSize);
        }
    
        @Test
        @DisplayName("Test context decoding")
        public void testDecoding() throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java

            final int exp = size();
            final int actual = getLength();
            if (exp != actual) {
                // Log the size mismatch for debugging but don't throw exception
                // This can occur due to padding alignment differences between size8() and pad8()
                if (log.isDebugEnabled()) {
                    log.debug("Size calculation mismatch: expected {} but got {} (difference: {})", exp, actual, actual - exp);
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. cmd/testdata/xl-meta-merge.zip

    update directly from <https://dl.min.io>, optionally you can host any mirrors at <https://my-artifactory.example.com/minio/> - For deployments that installed the MinIO server binary by hand, use [`mc admin update`](https://min.io/docs/minio/linux/reference/minio-mc-admin/mc-admin-update.html) ```sh mc admin update <minio alias, e.g., myminio> ``` - For deployments without external internet access (e.g. airgapped environments), download the binary from <https://dl.min.io> and replace the existing MinIO...
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            if (rem < 0) {
                rem = 8 + rem;
            }
            return size + 8 - rem;
        }
    
        /**
         * Calculates padding needed to align to 8-byte boundary from header start.
         *
         * @param dstIndex the current destination index
         * @return number of padding bytes needed
         */
        protected final int pad8(final int dstIndex) {
            final int fromHdr = dstIndex - this.headerStart;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

            }
    
            @Test
            @DisplayName("Should align to 8-byte boundary")
            void testPaddingAlignment() {
                // Test various name lengths to ensure proper padding
                for (int nameLen = 1; nameLen <= 32; nameLen++) {
                    byte[] name = new byte[nameLen];
                    Arrays.fill(name, (byte) 'A');
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v1.go

    }
    
    // ErasureInfo holds erasure coding and bitrot related information.
    type ErasureInfo struct {
    	// Algorithm is the string representation of erasure-coding-algorithm
    	Algorithm string `json:"algorithm"`
    	// DataBlocks is the number of data blocks for erasure-coding
    	DataBlocks int `json:"data"`
    	// ParityBlocks is the number of parity blocks for erasure-coding
    	ParityBlocks int `json:"parity"`
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacTest.java

                baos.write(new byte[8]);
    
                // SERVER_CHECKSUM data
                writeLittleEndianInt(baos, PacSignature.KERB_CHECKSUM_HMAC_MD5);
                baos.write(mockChecksum);
    
                // Padding to align
                while (baos.size() < 104) {
                    baos.write(0);
                }
    
                // PRIVSVR_CHECKSUM data
                writeLittleEndianInt(baos, PacSignature.KERB_CHECKSUM_HMAC_MD5);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            assertEquals((byte) 0x00, getPrivateField(cmd, "maxSetupCount"));
            assertEquals(4096, getPrivateField(cmd, "maxDataCount"));
        }
    
        @Test
        @DisplayName("writeSetupWireFormat writes subCommand and padding")
        void testWriteSetup() throws Exception {
            Trans2GetDfsReferral cmd = new Trans2GetDfsReferral("foo");
            byte[] buf = new byte[2];
            int r = cmd.writeSetupWireFormat(buf, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/util/MD4.java

            if (i < len) {
                System.arraycopy(input, offset + i, buffer, bufferNdx, len - i);
            }
        }
    
        /**
         * Completes the hash computation by performing final operations such
         * as padding. At the return of this engineDigest, the MD engine is
         * reset.
         *
         * @return the array of bytes for the resulting hash value.
         */
        @Override
        public byte[] engineDigest() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            int srcIndex = 0;
    
            // Simulate groupName = false (0x00), nodeType = 0 (0x00) -> src[srcIndex] = 0x00
            src[srcIndex] = (byte) 0x00;
            src[srcIndex + 1] = (byte) 0x00; // Reserved/padding byte
    
            // Simulate address = 192.168.1.1 (0xC0A80101)
            src[srcIndex + 2] = (byte) 0xC0;
            src[srcIndex + 3] = (byte) 0xA8;
            src[srcIndex + 4] = (byte) 0x01;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
Back to top