Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for 04 (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            assertEquals(32, SMBUtil.readInt4(buffer, 12));
    
            // Verify context name is encoded at offset 16
            byte[] nameBytes = new byte[4];
            System.arraycopy(buffer, 16, nameBytes, 0, 4);
            assertArrayEquals("RqLs".getBytes(), nameBytes);
    
            // Verify lease key is encoded at offset 24 (after header + name + padding)
            byte[] encodedKey = new byte[16];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/FrameLogTest.kt

          .isEqualTo(">> 0x00000000     8 GOAWAY        ")
      }
    
      /** Window update frames have special formatting.  */
      @Test
      fun windowUpdateFrames() {
        assertThat(frameLogWindowUpdate(false, 0, 4, Int.MAX_VALUE.toLong()))
          .isEqualTo(">> 0x00000000     4 WINDOW_UPDATE 2147483647")
        assertThat(frameLogWindowUpdate(true, 101, 4, 1))
          .isEqualTo("<< 0x00000065     4 WINDOW_UPDATE 1")
      }
    
      @Test
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        assertEquals(4, numOfByteRead);
        for (int i = 0; i < numOfByteRead; i++) {
          assertEquals(testBytes[i], buf[i]);
        }
    
        verify(hasher).putBytes(expectedBytes, 0, 4);
        verify(hashFunction).newHasher();
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testHash_hashesCorrectly() throws Exception {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

        void testWriteSecurityBufferZeroLength() {
            byte[] dest = new byte[10];
            byte[] before = dest.clone();
            NtlmMessage.writeSecurityBuffer(dest, 0, 4, null);
            assertArrayEquals(before, dest, "Zero length should leave dest unchanged");
        }
    
        @Test
        @DisplayName("writeSecurityBuffer copies data and sets fields")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/PacSignatureTest.java

            ByteBuffer buffer = ByteBuffer.allocate(4);
            buffer.order(ByteOrder.LITTLE_ENDIAN);
            buffer.putInt(value);
            baos.write(buffer.array(), 0, 4);
        }
    
        /**
         * Test constructor with KERB_CHECKSUM_HMAC_MD5 type.
         *
         * @throws IOException if an I/O error occurs
         * @throws PACDecodingException if the PAC is malformed
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java

            TransWaitNamedPipe pipe = new TransWaitNamedPipe("\\\\pipe\\testPipe");
            byte[] buffer = new byte[10];
    
            // The implementation always returns 0
            int consumed = pipe.readSetupWireFormat(buffer, 0, 4);
            assertEquals(0, consumed, "readSetupWireFormat should always return 0");
        }
    
        @Test
        public void testWriteParametersWireFormat() {
            // Test that writeParametersWireFormat returns 0
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

        private fun findPlatform(): Platform = PlatformRegistry.findPlatform()
    
        /**
         * Returns the concatenation of 8-bit, length prefixed protocol names.
         * http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-04#page-4
         */
        fun concatLengthPrefixed(protocols: List<Protocol>): ByteArray {
          val result = Buffer()
          for (protocol in alpnProtocolNames(protocols)) {
            result.writeByte(protocol.length)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/FormBodyTest.kt

        assertThat(formEncode(1)).isEqualTo("%01")
        assertThat(formEncode(2)).isEqualTo("%02")
        assertThat(formEncode(3)).isEqualTo("%03")
        assertThat(formEncode(4)).isEqualTo("%04")
        assertThat(formEncode(5)).isEqualTo("%05")
        assertThat(formEncode(6)).isEqualTo("%06")
        assertThat(formEncode(7)).isEqualTo("%07")
        assertThat(formEncode(8)).isEqualTo("%08")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/Punycode.kt

       *     Otherwise, the decode failed.
       */
      private fun decodeLabel(
        string: String,
        pos: Int,
        limit: Int,
        result: Buffer,
      ): Boolean {
        if (!string.regionMatches(pos, PREFIX_STRING, 0, 4, ignoreCase = true)) {
          result.writeUtf8(string, pos, limit)
          return true
        }
    
        var pos = pos + 4 // 'xn--'.size.
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_1x.md

    _2014-05-23_
    
     * Offer bridges to make it easier to migrate from OkHttp 1.x to OkHttp 2.0.
       This adds `OkUrlFactory`, `Cache`, and `@Deprecated` annotations for APIs
       dropped in 2.0.
    
    ## Version 1.5.4
    
    _2014-04-14_
    
     * Drop ALPN support in Android. There's a concurrency bug in all
       currently-shipping versions.
     * Support asynchronous disconnects by breaking the socket only. This should
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 6.4K bytes
    - Viewed (0)
Back to top