Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,376 for sizeof (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            @Test
            @DisplayName("Should read valid structure with size 4")
            void testReadBytesWireFormatValidStructure() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[10];
                int bufferIndex = 0;
                SMBUtil.writeInt2(4, buffer, bufferIndex); // Write structure size = 4
                SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved field
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/InputValidator.java

            }
            if (size > maxSize) {
                throw new IllegalArgumentException(fieldName + " size exceeds maximum (" + maxSize + "): " + size);
            }
        }
    
        /**
         * Validates buffer size for SMB2/3
         *
         * @param size the buffer size to validate
         * @param fieldName the field name for error reporting
         * @throws IllegalArgumentException if size is invalid
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/HexdumpTest.java

        @DisplayName("Should handle various data sizes in hexdump")
        void testHexdumpVariousSizes(int size) {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            PrintStream ps = new PrintStream(baos);
    
            byte[] data = createTestData(size);
            Hexdump.hexdump(ps, data, 0, size);
            String output = baos.toString();
    
            assertNotNull(output);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

        }
    
        @Test
        @DisplayName("size should return correct message size")
        void testSize() {
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 24;
            // size8 method rounds up to 8-byte boundary
            int expectedAlignedSize = (expectedSize + 7) & ~7;
    
            assertEquals(expectedAlignedSize, request.size());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

          }
        };
      }
    
      @Override
      Spliterator<V> valueSpliterator() {
        return CollectSpliterators.flatMap(
            map.values().spliterator(), Collection::spliterator, Spliterator.SIZED, size());
      }
    
      /*
       * TODO(kevinb): should we copy this javadoc to each concrete class, so that
       * classes like LinkedHashMultimap that need to say something different are
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Aug 12 15:51:57 UTC 2025
    - 48.2K bytes
    - Viewed (0)
  6. misc/cgo/gmp/gmp.go

    		return
    	}
    	z.init = true
    	C.mpz_init(&z.i[0])
    }
    
    // Bytes returns z's representation as a big-endian byte array.
    func (z *Int) Bytes() []byte {
    	b := make([]byte, (z.Len()+7)/8)
    	n := C.size_t(len(b))
    	C.mpz_export(unsafe.Pointer(&b[0]), &n, 1, 1, 1, 0, &z.i[0])
    	return b[0:n]
    }
    
    // Len returns the length of z in bits.  0 is considered to have length 1.
    func (z *Int) Len() int {
    	z.doinit()
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

        class ReadBytesWireFormatTests {
    
            @Test
            @DisplayName("Should read valid structure size of 4")
            void testReadBytesWireFormatValid() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[1024];
                int bufferIndex = 100;
    
                // Write structure size = 4
                SMBUtil.writeInt2(4, buffer, bufferIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java

        @Test
        @DisplayName("Should handle different session key sizes")
        void testDeriveKeys_DifferentSessionKeySizes() {
            // Test with various session key sizes
            int[] keySizes = { 8, 16, 24, 32, 64, 128 };
            int dialect = Smb2Constants.SMB2_DIALECT_0311;
    
            for (int size : keySizes) {
                // Given
                byte[] testKey = new byte[size];
                new SecureRandom().nextBytes(testKey);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        ImmutableSet.Builder<String> builder = ImmutableSet.builderWithExpectedSize(4);
        builder.add("a");
        assertEquals(1, builder.size);
        builder.add("a");
        assertEquals(1, builder.size);
        builder.add("b", "c", "d");
        assertEquals(4, builder.size);
        Object[] table = builder.hashTable;
        assertNotNull(table);
        assertSame(table, ((RegularImmutableSet<String>) builder.build()).table);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            testSessionId = 0x123456789ABCDEF0L;
        }
    
        @Test
        @DisplayName("Should create transform header with correct size")
        void testTransformHeaderSize() {
            // When
            int headerSize = transformHeader.size();
    
            // Then
            assertEquals(52, headerSize); // SMB2 Transform Header is 52 bytes
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top