Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 607 for decode (0.07 sec)

  1. 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,
      /** True to set the encoded or decoded value as the type hint for the current SEQUENCE. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java

        }
    
        /**
         * Test case for the decode method.
         * Verifies that the decode method of a concrete implementation is called
         * and interacts with the NdrBuffer as expected.
         * @throws NdrException if decoding fails.
         */
        @Test
        void testDecode() throws NdrException {
            // When
            ndrObject.decode(mockBuffer);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                int decodedSize = context.decode(buffer, 0, buffer.length);
    
                // Assert
                assertEquals(12, decodedSize);
                assertArrayEquals(new int[] { 1, 2 }, context.getHashAlgos());
                assertArrayEquals(new byte[] { 0x0A, 0x0B, 0x0C, 0x0D }, context.getSalt());
            }
    
            @Test
            @DisplayName("Should handle empty arrays in decode")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/dcerpc/msrpc/netdfs.java

                    if (info == null) { /* YOYOYO */
                        info = new DfsEnumStruct();
                    }
                    info.decode(_src);
    
                }
                final int _totalentriesp = _src.dec_ndr_long();
                if (_totalentriesp != 0) {
                    totalentries.decode(_src);
    
                }
                retval = _src.dec_ndr_long();
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

          |-----END PRIVATE KEY-----
          |
          """.trimMargin()
        try {
          decode(certificatePem)
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
          assertThat(expected.message).isEqualTo("string does not include a private key")
        }
        try {
          decode(pkcs8Pem)
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            m.ptype = 0; // Request type
            NdrBuffer buf = new NdrBuffer(new byte[1024], 0);
            m.encode(buf);
    
            buf.setIndex(0);
            // Decode will throw exception as ptype 0 is not a valid response type
            assertThrows(NdrException.class, () -> m.decode(buf));
        }
    
        @Test
        void testRoundTripEncodeDecodeForResponseType() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            Smb2IoctlResponse resp = new Smb2IoctlResponse(config);
    
            int read = resp.decode(packet, 0);
            assertTrue(read >= packet.length, "Decoded length should cover entire packet");
            assertNotNull(resp.getErrorData(), "Error data should be decoded");
            assertEquals(3, resp.getErrorData().length);
            assertEquals(2, resp.getErrorContextCount());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/util/FacetResponse.java

             */
            protected Map<String, Long> valueCountMap = new LinkedHashMap<>();
    
            /**
             * The decoded name of the field.
             */
            protected String name;
    
            /**
             * Constructs a Field from OpenSearch Terms aggregation.
             * Decodes the field name and processes all term buckets to extract
             * field values and their document counts.
             *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/DecodableTest.java

        @Test
        @DisplayName("Should define decode method")
        void testDecodeMethod() throws SMBProtocolDecodingException {
            // Given
            byte[] buffer = new byte[10];
            int bufferIndex = 0;
            int len = 10;
            when(mockDecodable.decode(buffer, bufferIndex, len)).thenReturn(10);
    
            // When
            int decodedLength = mockDecodable.decode(buffer, bufferIndex, len);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            void testPad8() {
                testMessage.encode(new byte[1024], 0);
                // After header is written, padding depends on position
                int headerStart = testMessage.getHeaderStart();
                assertEquals(0, headerStart); // Should start at 0
            }
        }
    
        @Nested
        @DisplayName("Encode/Decode Tests")
        class EncodeDecodeTests {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
Back to top