Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 259 for Bounds (0.74 sec)

  1. guava/src/com/google/common/reflect/Types.java

      /**
       * Returns {@code ? extends X} if any of {@code bounds} is a subtype of {@code X[]}; or null
       * otherwise.
       */
      private static @Nullable Type subtypeOfComponentType(Type[] bounds) {
        for (Type bound : bounds) {
          Type componentType = getComponentType(bound);
          if (componentType != null) {
            // Only the first bound can be a class or array.
            // Bounds after the first can only be interfaces.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/Types.java

      /**
       * Returns {@code ? extends X} if any of {@code bounds} is a subtype of {@code X[]}; or null
       * otherwise.
       */
      private static @Nullable Type subtypeOfComponentType(Type[] bounds) {
        for (Type bound : bounds) {
          Type componentType = getComponentType(bound);
          if (componentType != null) {
            // Only the first bound can be a class or array.
            // Bounds after the first can only be interfaces.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/TypeResolver.java

          if (type == null) {
            Type[] bounds = var.getBounds();
            if (bounds.length == 0) {
              return var;
            }
            Type[] resolvedBounds = new TypeResolver(forDependants).resolveTypes(bounds);
            /*
             * We'd like to simply create our own TypeVariable with the newly resolved bounds. There's
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacTest.java

            writeLittleEndianInt(baos, 10); // size
            writeLittleEndianLong(baos, 25); // Unaligned offset (not multiple of 8)
            // Add enough data to avoid array bounds issues
            while (baos.size() < 35) {
                baos.write(0);
            }
            byte[] pacData = baos.toByteArray();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/ServerResponseValidator.java

            }
        }
    
        /**
         * Validate buffer access bounds
         *
         * @param buffer the buffer
         * @param offset offset to access
         * @param length length to read
         * @throws SmbException if access would exceed bounds
         */
        public void validateBufferAccess(byte[] buffer, int offset, int length) throws SmbException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/ByteEncodableTest.java

        }
    
        @Test
        void testEncodeSourceOffsetBeyondLength() {
            // Test with source offset + length exceeding source array bounds
            byte[] data = { 0x01, 0x02 };
            // This constructor call itself should not throw an error, as it's just storing the values.
            // The error should occur when System.arraycopy is called.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/reflect/TypeResolver.java

          if (type == null) {
            Type[] bounds = var.getBounds();
            if (bounds.length == 0) {
              return var;
            }
            Type[] resolvedBounds = new TypeResolver(forDependants).resolveTypes(bounds);
            /*
             * We'd like to simply create our own TypeVariable with the newly resolved bounds. There's
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/StringsTest.java

            @DisplayName("findUNITermination should throw exception when termination not found")
            void testFindUNITerminationNotFound() {
                // Given
                byte[] bufferWithoutTermination = "Hello".getBytes(StandardCharsets.UTF_16LE);
    
                // When & Then - the implementation throws ArrayIndexOutOfBoundsException when buffer bounds are exceeded
                assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            buffer.putInt(4, data.length);
            result = NtlmMessage.readSecurityBuffer(data, 0);
            assertEquals(0, result.length, "Should return empty array if offset is out of bounds but length is zero.");
    
            // Test with offset pointing outside array bounds (should throw ArrayIndexOutOfBoundsException)
            buffer.putShort(0, (short) 1);
            buffer.putShort(2, (short) 1);
            buffer.putInt(4, data.length + 1); // Invalid offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/InputValidator.java

            }
        }
    
        /**
         * Validates array bounds for safe copying
         *
         * @param src source array
         * @param srcOffset source offset
         * @param dst destination array
         * @param dstOffset destination offset
         * @param length copy length
         * @throws IllegalArgumentException if bounds are 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)
Back to top