Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 125 for Wrap (0.13 sec)

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

      }
    
      public void testExhaust_readable() throws IOException {
        CharBuffer buf = CharBuffer.wrap(ASCII);
        assertEquals(ASCII.length(), CharStreams.exhaust(buf));
        assertEquals(0, buf.remaining());
        assertEquals(0, CharStreams.exhaust(buf));
    
        CharBuffer empty = CharBuffer.wrap("");
        assertEquals(0, CharStreams.exhaust(empty));
        assertEquals(0, empty.remaining());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

      }
    
      public void testExhaust_readable() throws IOException {
        CharBuffer buf = CharBuffer.wrap(ASCII);
        assertEquals(ASCII.length(), CharStreams.exhaust(buf));
        assertEquals(0, buf.remaining());
        assertEquals(0, CharStreams.exhaust(buf));
    
        CharBuffer empty = CharBuffer.wrap("");
        assertEquals(0, CharStreams.exhaust(empty));
        assertEquals(0, empty.remaining());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

          HashMap<String, String> map = Maps.newHashMap();
          for (Entry<String, String> entry : entries) {
            map.put(entry.getKey(), entry.getValue());
          }
          return wrap(map);
        }
    
        abstract Map<String, String> wrap(HashMap<String, String> map);
      }
    
      private static TestSuite wrappedHashMapTests(
          WrappedHashMapGenerator generator, String name, Feature<?>... features) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/HashTestUtils.java

        assertEquals(
            hashFunction.hashBytes(ByteBuffer.wrap(bytes)),
            hashFunction.newHasher(size).putBytes(ByteBuffer.wrap(bytes)).hash());
        int off = random.nextInt(size);
        int len = random.nextInt(size - off);
        assertEquals(
            hashFunction.hashBytes(ByteBuffer.wrap(bytes, off, len)),
            hashFunction.newHasher(size).putBytes(ByteBuffer.wrap(bytes, off, len)).hash());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

        assertEquals(
            hashFunction.hashBytes(ByteBuffer.wrap(bytes)),
            hashFunction.newHasher(size).putBytes(ByteBuffer.wrap(bytes)).hash());
        int off = random.nextInt(size);
        int len = random.nextInt(size - off);
        assertEquals(
            hashFunction.hashBytes(ByteBuffer.wrap(bytes, off, len)),
            hashFunction.newHasher(size).putBytes(ByteBuffer.wrap(bytes, off, len)).hash());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertTrue(okSource.wasStreamClosed());
      }
    
      public void testConcat() throws IOException {
        ByteSource b1 = ByteSource.wrap(new byte[] {0, 1, 2, 3});
        ByteSource b2 = ByteSource.wrap(new byte[0]);
        ByteSource b3 = ByteSource.wrap(new byte[] {4, 5});
    
        byte[] expected = {0, 1, 2, 3, 4, 5};
    
        assertArrayEquals(expected, ByteSource.concat(ImmutableList.of(b1, b2, b3)).read());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ForwardingMapTest.java

                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        Map<Integer, String> map1 = ImmutableMap.of(1, "one");
        Map<Integer, String> map2 = ImmutableMap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ForwardingMapTest.java

                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        Map<Integer, String> map1 = ImmutableMap.of(1, "one");
        Map<Integer, String> map2 = ImmutableMap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api.cc

    #if !defined(IS_MOBILE_PLATFORM)
      eager_context->SetDistributedManager(
          std::make_unique<tensorflow::EagerContextDistributedManager>(
              eager_context));
    #endif  // !IS_MOBILE_PLATFORM
      return tensorflow::wrap(eager_context);
    }
    
    void TFE_DeleteContext(TFE_Context* ctx) {
      if (ctx == nullptr) {
        return;
      }
    
      // ctx->RefCountIsOne() should be true here.
      tensorflow::unwrap(ctx)->Release();
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  10. android/guava/src/com/google/common/escape/Escapers.java

      }
    
      @CheckForNull
      private static String stringOrNull(@CheckForNull char[] in) {
        return (in == null) ? null : new String(in);
      }
    
      /** Private helper to wrap a CharEscaper as a UnicodeEscaper. */
      private static UnicodeEscaper wrap(CharEscaper escaper) {
        return new UnicodeEscaper() {
          @Override
          @CheckForNull
          protected char[] escape(int cp) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.5K bytes
    - Viewed (0)
Back to top