Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 431 for ints (0.07 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

        })
        void testWriteParametersWireFormatWithDifferentLevels(int infoLevel, int expectedMappedValue) {
            trans2QueryFSInfo = new Trans2QueryFSInformation(config, infoLevel);
    
            byte[] buffer = new byte[512];
            trans2QueryFSInfo.writeParametersWireFormat(buffer, 0);
    
            // Check mapped information level
            int actualInfoLevel = SMBUtil.readInt2(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java

        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);
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        assertThat(e.getStackTrace()[index - 1].getMethodName()).isEqualTo("get");
      }
    
      private static int findStackFrame(ExecutionException e, String clazz, String method) {
        StackTraceElement[] elements = e.getStackTrace();
        for (int i = 0; i < elements.length; i++) {
          StackTraceElement element = elements[i];
          if (element.getClassName().equals(clazz) && element.getMethodName().equals(method)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            assertNotNull(response.getServerGuid());
        }
    
        @ParameterizedTest
        @DisplayName("Should throw exception for invalid structure size")
        @ValueSource(ints = { 0, 1, 64, 66, 128 })
        void testReadBytesWireFormatInvalidStructureSize(int structureSize) {
            // Given
            byte[] buffer = new byte[256];
            SMBUtil.writeInt2(structureSize, buffer, 0);
    
            // When & Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

            // Add ACEs
            int aceOffset = offset + 28; // After DACL header
            for (int i = 0; i < aceCount; i++) {
                prepareSimpleAce(buffer, aceOffset);
                aceOffset += 32; // Simple ACE size
            }
        }
    
        private void prepareSecurityDescriptorBufferWithInvalidAceCount(byte[] buffer, int offset) {
            buffer[offset] = 0x01; // revision
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Lists.java

          return forwardList;
        }
    
        private int reverseIndex(int index) {
          int size = size();
          checkElementIndex(index, size);
          return (size - 1) - index;
        }
    
        private int reversePosition(int index) {
          int size = size();
          checkPositionIndex(index, size);
          return size - index;
        }
    
        @Override
        public void add(int index, @ParametricNullness T element) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 42.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

            }
    
            // Test size calculation
            int size = request.size();
            int expectedRawSize = Smb2Constants.SMB2_HEADER_LENGTH + 40 + 64;
            int expectedSize = (expectedRawSize + 7) & ~7;
            assertEquals(expectedSize, size);
    
            // Test wire format writing
            byte[] buffer = new byte[512];
            int bytesWritten = request.writeBytesWireFormat(buffer, 64);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 100, 255, 256, 65535 })
        @DisplayName("Test readBytesWireFormat with various invalid structure sizes")
        void testReadBytesWireFormatVariousInvalidSizes(int invalidSize) {
            response = new Smb2QueryInfoResponse(mockConfig, (byte) 1, (byte) 2);
            byte[] buffer = new byte[1024];
            int bufferIndex = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Chars.java

       * @since 32.0.0
       */
      public static void rotate(char[] array, int distance, int fromIndex, int toIndex) {
        // See Ints.rotate for more details about possible algorithms here.
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        if (array.length <= 1) {
          return;
        }
    
        int length = toIndex - fromIndex;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Shorts.java

       * @since 32.0.0
       */
      public static void rotate(short[] array, int distance, int fromIndex, int toIndex) {
        // See Ints.rotate for more details about possible algorithms here.
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        if (array.length <= 1) {
          return;
        }
    
        int length = toIndex - fromIndex;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
Back to top