Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for copyOfRange (2.07 sec)

  1. guava-tests/test/com/google/common/io/SourceSinkFactories.java

            byte[] baseExpected = factory.getExpected(bytes);
            int startOffset = (int) Math.min(off, baseExpected.length);
            int actualLen = (int) Math.min(len, baseExpected.length - startOffset);
            return Arrays.copyOfRange(baseExpected, startOffset, startOffset + actualLen);
          }
    
          @Override
          public void tearDown() throws IOException {
            factory.tearDown();
          }
        };
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Sep 09 17:57:59 GMT 2021
    - 17.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

      private static class Control extends AbstractNonStreamingHashFunction {
        @Override
        public HashCode hashBytes(byte[] input, int off, int len) {
          return HashCode.fromBytes(Arrays.copyOfRange(input, off, off + len));
        }
    
        @Override
        public int bits() {
          throw new UnsupportedOperationException();
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/RandomAccessFileTest.java

                if ( read < 0 ) {
                    fail("Unexpected EOF");
                }
    
                byte verify[] = new byte[read];
                ReadWriteTest.randBytes(r, verify);
                byte actual[] = Arrays.copyOfRange(buffer, 0, read);
    
                assertArrayEquals("Data matches at offset " + p, actual, verify);
    
                p += read;
            }
            assertEquals("Expecting EOF", -1, is.read(buffer, 0, 1));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Floats.java

       * {@code array}, or {@code -1} if there is no such occurrence.
       *
       * <p>More formally, returns the lowest index {@code i} such that {@code Arrays.copyOfRange(array,
       * i, i + target.length)} contains exactly the same elements as {@code target}.
       *
       * <p>Note that this always returns {@code -1} when {@code target} contains {@code NaN}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Booleans.java

       * {@code array}, or {@code -1} if there is no such occurrence.
       *
       * <p>More formally, returns the lowest index {@code i} such that {@code Arrays.copyOfRange(array,
       * i, i + target.length)} contains exactly the same elements as {@code target}.
       *
       * @param array the array to search for the sequence {@code target}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

            byte[] baseExpected = factory.getExpected(bytes);
            int startOffset = (int) Math.min(off, baseExpected.length);
            int actualLen = (int) Math.min(len, baseExpected.length - startOffset);
            return Arrays.copyOfRange(baseExpected, startOffset, startOffset + actualLen);
          }
    
          @Override
          public void tearDown() throws IOException {
            factory.tearDown();
          }
        };
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/ReadWriteTest.java

                if ( read < 0 ) {
                    fail("Unexpected EOF at " + p);
                }
    
                byte verify[] = new byte[read];
                randBytes(r, verify);
                byte actual[] = Arrays.copyOfRange(buffer, 0, read);
    
                assertArrayEquals("Data matches at offset " + p, actual, verify);
    
                p += read;
            }
            if ( expectEof ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Chars.java

       * {@code array}, or {@code -1} if there is no such occurrence.
       *
       * <p>More formally, returns the lowest index {@code i} such that {@code Arrays.copyOfRange(array,
       * i, i + target.length)} contains exactly the same elements as {@code target}.
       *
       * @param array the array to search for the sequence {@code target}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Shorts.java

       * {@code array}, or {@code -1} if there is no such occurrence.
       *
       * <p>More formally, returns the lowest index {@code i} such that {@code Arrays.copyOfRange(array,
       * i, i + target.length)} contains exactly the same elements as {@code target}.
       *
       * @param array the array to search for the sequence {@code target}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 25.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

        } else if (params.length == 2) {
          assertThat(throwable).hasMessageThat().isEmpty();
        } else {
          assertThat(throwable)
              .hasMessageThat()
              .isEqualTo(Strings.lenientFormat("", Arrays.copyOfRange(params, 2, params.length)));
        }
      }
    
      /**
       * Returns an array containing parameters for invoking a checkArgument, checkNotNull or checkState
       * method reflectively
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top