Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,602 for lengths (0.05 sec)

  1. android/guava/src/com/google/common/primitives/Ints.java

        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        if (array.length <= 1) {
          return;
        }
    
        int length = toIndex - fromIndex;
        // Obtain m = (-distance mod length), a non-negative value less than "length". This is how many
        // places left to rotate.
        int m = -distance % length;
        m = (m < 0) ? m + length : m;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/Doubles.java

       */
      public static double[] concat(double[]... arrays) {
        long length = 0;
        for (double[] array : arrays) {
          length += array.length;
        }
        double[] result = new double[checkNoOverflow(length)];
        int pos = 0;
        for (double[] array : arrays) {
          System.arraycopy(array, 0, result, pos, array.length);
          pos += array.length;
        }
        return result;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        assertEquals(expected.length(), reader.skip(Long.MAX_VALUE));
        assertFullyRead(reader);
    
        // skip 5 and read the rest
        if (expected.length() > 5) {
          reader = new CharSequenceReader(charSequence);
          assertEquals(5, reader.skip(5));
    
          buf = new char[expected.length() - 5];
          assertEquals(buf.length, reader.read(buf, 0, buf.length));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacUnicodeStringTest.java

         * Tests the {@link PacUnicodeString#check(String)} method with a string of incorrect length.
         */
        @Test
        void testCheck_withInvalidLength_throwsException() {
            // Length is 10 bytes, so expected string length is 5 characters
            PacUnicodeString pacString = new PacUnicodeString((short) 10, (short) 20, 100);
            String testString = "too-long"; // Length is 8
    
            // Expect a PACDecodingException to be thrown
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                buffer[SmbConstants.SMB1_HEADER_LENGTH] = 0;
                SMBUtil.writeInt2(0, buffer, SmbConstants.SMB1_HEADER_LENGTH + 1);
    
                int length = testBlock.decode(buffer, 0);
    
                assertNotNull(testBlock.getRawPayload());
                assertEquals(length, testBlock.getRawPayload().length);
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

        }
    
        /**
         * Returns the length of data in the buffer.
         *
         * @return the data length
         */
        public int getLength() {
            return deferred.length;
        }
    
        /**
         * Sets the length of data in the buffer.
         *
         * @param length the new data length
         */
        public void setLength(final int length) {
            deferred.length = length;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/pac/ASN1Util.java

            int length = s.read();
            if (0 == length >>> 7) {
                // definite-length short form
                return length;
            }
            if (0x80 == length) {
                // indefinite-length
                return -1;
            }
            if (length < 0) {
                throw new EOFException("EOF found when length expected");
            }
            if (0xFF == length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

        }
    
        @Override
        public K[] createKeyArray(int length) {
          return ((TestMultimapGenerator<K, V, M>) multimapGenerator.getInnerGenerator())
              .createKeyArray(length);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Collection<V>[] createValueArray(int length) {
          return (Collection<V>[]) new Collection<?>[length];
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Ascii.java

       */
      public static boolean equalsIgnoreCase(CharSequence s1, CharSequence s2) {
        // Calling length() is the null pointer check (so do it before we can exit early).
        int length = s1.length();
        if (s1 == s2) {
          return true;
        }
        if (length != s2.length()) {
          return false;
        }
        for (int i = 0; i < length; i++) {
          char c1 = s1.charAt(i);
          char c2 = s2.charAt(i);
          if (c1 == c2) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

                // Write string data at stringOffset
                System.arraycopy(pathBytes, 0, buffer, stringOffset, pathBytes.length);
                buffer[stringOffset + pathBytes.length] = 0;
                buffer[stringOffset + pathBytes.length + 1] = 0;
    
                offset += referralSize;
                stringOffset += pathBytes.length + 2;
            }
    
            return buffer;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
Back to top