Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for subArray (0.13 sec)

  1. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableIntArray.of());
        assertThat(iia1.subArray(0, 0)).isSameInstanceAs(ImmutableIntArray.of());
        assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableIntArray.of());
        assertThat(iia1.subArray(0, 1).asList()).containsExactly(5);
        assertThat(iia3.subArray(0, 2).asList()).containsExactly(5, 25).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(0, 0)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(0, 1).asList()).containsExactly(5.0);
        assertThat(iia3.subArray(0, 2).asList()).containsExactly(5.0, 25.0).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(0, 0)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(0, 1).asList()).containsExactly(5.0);
        assertThat(iia3.subArray(0, 2).asList()).containsExactly(5.0, 25.0).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

       *
       * <p><b>Performance note:</b> The returned array has the same full memory footprint as this one
       * does (no actual copying is performed). To reduce memory usage, use {@code subArray(start,
       * end).trimmed()}.
       */
      public ImmutableLongArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/ImmutableIntArray.java

       *
       * <p><b>Performance note:</b> The returned array has the same full memory footprint as this one
       * does (no actual copying is performed). To reduce memory usage, use {@code subArray(start,
       * end).trimmed()}.
       */
      public ImmutableIntArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

        List<E> subArray = asList(array).subList(0, getNumElements());
        E[] expectedSubArray = createSamplesArray();
        for (int i = 0; i < getNumElements(); i++) {
          assertTrue(
              "toArray(overSizedE[]) should contain element " + expectedSubArray[i],
              subArray.contains(expectedSubArray[i]));
        }
        assertNull(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

       *
       * <p><b>Performance note:</b> The returned array has the same full memory footprint as this one
       * does (no actual copying is performed). To reduce memory usage, use {@code subArray(start,
       * end).trimmed()}.
       */
      public ImmutableIntArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

       *
       * <p><b>Performance note:</b> The returned array has the same full memory footprint as this one
       * does (no actual copying is performed). To reduce memory usage, use {@code subArray(start,
       * end).trimmed()}.
       */
      public ImmutableDoubleArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. lib/wasm/wasm_exec.js

    						const src = loadValue(sp + 32);
    						if (!(src instanceof Uint8Array || src instanceof Uint8ClampedArray)) {
    							this.mem.setUint8(sp + 48, 0);
    							return;
    						}
    						const toCopy = src.subarray(0, dst.length);
    						dst.set(toCopy);
    						setInt64(sp + 40, toCopy.length);
    						this.mem.setUint8(sp + 48, 1);
    					},
    
    					// func copyBytesToJS(dst ref, src []byte) (int, bool)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Aug 30 19:15:21 UTC 2024
    - 16.5K bytes
    - Viewed (0)
Back to top