Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 326 for decodeTo (0.18 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            // Byte count (2 bytes)
            buffer[53] = 0x00;
            buffer[54] = 0x00;
    
            // Test decode
            int bytesDecoded = response.decode(buffer, 0);
    
            // Should decode at least the header
            assertTrue(bytesDecoded > 0);
    
            // Verify the command was decoded correctly
            assertEquals(ServerMessageBlock.SMB_COM_TRANSACTION2, response.getCommand());
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            NetworkInterfaceInfo decoded = NetworkInterfaceInfo.decode(encoded, 0);
            assertEquals(nic.getInterfaceIndex(), decoded.getInterfaceIndex());
            assertEquals(nic.getLinkSpeed(), decoded.getLinkSpeed());
            assertEquals(nic.isRssCapable(), decoded.isRssCapable());
        }
    
        @Test
        void testChannelInfoCreation() throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

        }
    
        @Test
        @DisplayName("Test decode with valid single entry")
        void testDecodeValidSingleEntry() throws SMBProtocolDecodingException {
            String fileName = "document.pdf";
            int action = FileNotifyInformation.FILE_ACTION_MODIFIED;
            byte[] buffer = createValidNotificationBuffer(fileName, action);
    
            int bytesRead = notifyInfo.decode(buffer, 0, buffer.length);
    
            assertTrue(bytesRead > 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java

            SMBUtil.writeInt4(length, dst, dstIndex + 12);
            return 16;
        }
    
        /**
         * Decode from byte array
         *
         * @param buffer source buffer
         * @param bufferIndex starting index
         * @return decoded transform
         */
        public static Smb2RdmaTransform decode(byte[] buffer, int bufferIndex) {
            long offset = SMBUtil.readInt8(buffer, bufferIndex);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

        bytesIn.writeByte(0x40) // Literal indexed
        bytesIn.writeByte(0x88) // Literal name Huffman encoded 8 bytes
        // decodes to custom-key which is length 10
        bytesIn.write("25a849e95ba97d7f".decodeHex())
        bytesIn.writeByte(0x89) // Literal value Huffman encoded 9 bytes
        // decodes to custom-value which is length 12
        bytesIn.write("25a849e95bb8e8b4bf".decodeHex())
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 38.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/av/AvTargetNameTest.java

            AvTargetName avTargetName = new AvTargetName(rawBytes);
    
            // Verify that getTargetName correctly decodes the raw bytes
            assertEquals(originalString, avTargetName.getTargetName(), "Retrieved target name should correctly decode raw bytes");
        }
    
        /**
         * Test with an empty string for both constructors.
         */
        @Test
        void testEmptyString() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

        }
    
        @Test
        @DisplayName("Test decode with owner SID only")
        void testDecodeWithOwnerSidOnly() throws SMBProtocolDecodingException {
            // Prepare buffer with owner SID only
            prepareMinimalSecurityDescriptorBuffer(testBuffer, 0, true, false, false);
    
            int size = securityDescriptor.decode(testBuffer, 0, testBuffer.length);
    
            // decode returns 0 when no DACL is present (falls through)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessRpcMessage.java

         */
        protected abstract void encodeWitnessParameters(NdrBuffer buf) throws NdrException;
    
        /**
         * Decodes the witness RPC message parameters from NDR format.
         * Subclasses must implement this method to decode their specific parameters.
         *
         * @param buf the NDR buffer to decode from
         * @throws NdrException if decoding fails
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            originalContext.encode(buffer, 0);
    
            // Create a new context and decode
            DirectoryLeaseContext decodedContext = new DirectoryLeaseContext(new Smb2LeaseKey(), 0, DirectoryCacheScope.IMMEDIATE_CHILDREN);
            decodedContext.decode(buffer, 0, buffer.length);
    
            // Verify decoded values
            assertArrayEquals(originalKey.getKey(), decodedContext.getLeaseKey().getKey());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  10. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchAccessResultData.java

         */
        public OpenSearchAccessResultData(final Map<String, Object> src) {
            setTransformerName((String) src.get(TRANSFORMER_NAME));
            setEncoding((String) src.get(ENCODING));
            final String dataStr = (String) src.get(DATA);
            if (dataStr != null) {
                try {
                    setData(Base64Util.decode(dataStr));
                } catch (final Exception e) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top