Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for Wrap (0.02 sec)

  1. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

            void testDecodeNoReferrals() {
                // Prepare test data: pathConsumed=0, numReferrals=0, tflags=0
                byte[] testBuffer = new byte[8];
                ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN);
                bb.putShort((short) 0); // pathConsumed (will be divided by 2)
                bb.putShort((short) 0); // numReferrals
                bb.putShort((short) 0); // tflags
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/CopyUtil.java

                }
                return copyInternal((FileInputStream) in, wrap(out));
            }
            if (out instanceof FileOutputStream) {
                return copyInternal(wrap(in), (FileOutputStream) out);
            }
            return copyInternal(wrap(in), wrap(out));
        }
    
        // ////////////////////////////////////////////////////////////////
        // from InputStream to Writer
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

          HashMap<String, String> map = new HashMap<>();
          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) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu May 22 16:18:11 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/CharSourceTest.java

        assertTrue(okSource.wasStreamClosed());
      }
    
      public void testConcat() throws IOException {
        CharSource c1 = CharSource.wrap("abc");
        CharSource c2 = CharSource.wrap("");
        CharSource c3 = CharSource.wrap("de");
    
        String expected = "abcde";
    
        assertEquals(expected, CharSource.concat(ImmutableList.of(c1, c2, c3)).read());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. 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());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/dfs/ReferralTest.java

            testBuffer = new byte[512];
        }
    
        // Version 3 Referral Tests
    
        @Test
        public void testDecodeVersion3WithoutNameList() {
            // Prepare test data
            ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN);
    
            // Header
            bb.putShort((short) 3); // version
            bb.putShort((short) 100); // size (large enough for all strings)
            bb.putShort((short) 1); // serverType
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 22K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                int bytesEncoded = buffer.encode(dst, 0);
    
                assertEquals(buffer.size(), bytesEncoded);
    
                // Verify encoded data
                ByteBuffer bb = ByteBuffer.wrap(dst).order(ByteOrder.LITTLE_ENDIAN);
                assertEquals(maxReferralLevel, bb.getShort());
    
                // Verify path encoding (UTF-16LE)
                byte[] pathBytes = path.getBytes(StandardCharsets.UTF_16LE);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  8. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

          // Need fresh client to reset sslSocketFactoryOrNull
          client =
            OkHttpClient
              .Builder()
              .eventListenerFactory(
                clientTestRule.wrap(
                  object : EventListener() {
                    override fun connectionAcquired(
                      call: Call,
                      connection: Connection,
                    ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                    this.writeSize = Math.min(th.getConfig().getSendBufferSize() - 70, 0xFFFF - 70);
                }
    
                this.fp = 0L;
            } catch (final CIFSException e) {
                throw SmbException.wrap(e);
            }
        }
    
        /**
         * @return
         * @throws SmbException
         */
        synchronized SmbFileHandleImpl ensureOpen() throws CIFSException {
            // ensure file is open
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        assertTrue(okSource.wasStreamClosed());
      }
    
      public void testConcat() throws IOException {
        CharSource c1 = CharSource.wrap("abc");
        CharSource c2 = CharSource.wrap("");
        CharSource c3 = CharSource.wrap("de");
    
        String expected = "abcde";
    
        assertEquals(expected, CharSource.concat(ImmutableList.of(c1, c2, c3)).read());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top