Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 664 for encoder (0.11 sec)

  1. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

            align(2);
            final int val = Encdec.dec_uint16le(buf, index);
            advance(2);
            return val;
        }
    
        /**
         * Encodes a long integer (4 bytes) in NDR format.
         *
         * @param l the long integer value to encode
         */
        public void enc_ndr_long(final int l) {
            align(4);
            Encdec.enc_uint32le(l, buf, index);
            advance(4);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                byte[] buffer = new byte[EXPECTED_SIZE * 3];
    
                // When
                int offset1 = chunk1.encode(buffer, 0);
                int offset2 = chunk2.encode(buffer, offset1);
                int offset3 = chunk3.encode(buffer, offset1 + offset2);
    
                // Then
                assertEquals(EXPECTED_SIZE, offset1);
                assertEquals(EXPECTED_SIZE, offset2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

            decoded.decode(buf);
            assertEquals(val, decoded.value, "Decoded value should match encoded value for " + Long.toHexString(val));
        }
    
        /**
         * Ensure encode throws NPE when passed a null buffer.
         */
        @Test
        @DisplayName("Encode with null buffer throws NullPointerException")
        public void testEncodeNullBuffer() throws NdrException {
            NdrHyper hyper = new NdrHyper(5L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, mockChunk1, mockChunk2);
                byte[] buffer = new byte[200];
    
                // When
                copy.encode(buffer, 0);
    
                // Then
                verify(mockChunk1, times(1)).encode(eq(buffer), eq(HEADER_SIZE));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/util/Base64Test.java

        @MethodSource("decodeProvider")
        void testDecode(String encoded, byte[] expected) {
            // Act
            byte[] actual = Base64.decode(encoded);
            // Assert
            assertArrayEquals(expected, actual, "Base64.decode should return original bytes");
        }
    
        @Test
        @DisplayName("encode should throw NPE on null input")
        void testEncodeNull() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/curl/CurlRequest.java

        }
    
        /**
         * Encodes the specified value using the character encoding.
         *
         * @param value the value to encode
         * @return the encoded value
         * @throws CurlException if the encoding is unsupported
         */
        protected String encode(final String value) {
            try {
                return URLEncoder.encode(value, encoding);
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

            byte[] buffer1 = new byte[request.size()];
            byte[] buffer2 = new byte[request.size()];
    
            request.encode(buffer1, 0);
            request.encode(buffer2, 0);
    
            assertArrayEquals(buffer1, buffer2);
        }
    
        @Test
        @DisplayName("Test encode with insufficient buffer throws exception")
        void testEncodeWithInsufficientBuffer() {
            ValidateNegotiateInfoRequest request =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Credentials.kt

    import okio.ByteString.Companion.encode
    
    /** Factory for HTTP authorization credentials. */
    object Credentials {
      /** Returns an auth credential for the Basic scheme. */
      @JvmStatic @JvmOverloads
      fun basic(
        username: String,
        password: String,
        charset: Charset = ISO_8859_1,
      ): String {
        val usernameAndPassword = "$username:$password"
        val encoded = usernameAndPassword.encode(charset).base64()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt

        /**
         * Returns a new instance configured with a default encode set for the ASCII range. The specific
         * rules vary per-component: for example, '?' may be identity-encoded in a fragment, but must be
         * percent-encoded in a path.
         *
         * See https://url.spec.whatwg.org/#percent-encoded-bytes
         */
        fun newInstance(): UrlComponentEncodingTester =
          UrlComponentEncodingTester()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

      val tag: Long,
      /** Encode and decode the value once tags are handled. */
      private val codec: Codec<T>,
      /** True if the default value should be used if this value is absent during decoding. */
      val isOptional: Boolean = false,
      /** The value to return if this value is absent. Undefined unless this is optional. */
      val defaultValue: T? = null,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top