Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,022 for encode (0.24 sec)

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

         */
        public NdrHyper(final long value) {
            this.value = value;
        }
    
        @Override
        public void encode(final NdrBuffer dst) throws NdrException {
            dst.enc_ndr_hyper(value);
        }
    
        @Override
        public void decode(final NdrBuffer src) throws NdrException {
            value = src.dec_ndr_hyper();
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/ndr/NdrLong.java

         */
        public NdrLong(final int value) {
            this.value = value;
        }
    
        @Override
        public void encode(final NdrBuffer dst) throws NdrException {
            dst.enc_ndr_long(value);
        }
    
        @Override
        public void decode(final NdrBuffer src) throws NdrException {
            value = src.dec_ndr_long();
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

                // Verify input buffer length
                assertEquals(50, SMBUtil.readInt4(buffer, 76));
    
                // Verify that inputBuffer.encode was called
                verify(mockInputBuffer).encode(any(byte[].class), anyInt());
    
                // Verify total bytes written
                assertEquals(90, bytesWritten); // 40 bytes header + 50 bytes input buffer
            } catch (Exception e) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

            assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(new byte[17]));
            assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(new byte[0]));
        }
    
        @Test
        @DisplayName("Should encode lease key to buffer")
        void testEncode() {
            byte[] testBytes = new byte[] { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, (byte) 0x88, (byte) 0x99, (byte) 0xAA, (byte) 0xBB,
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java

            // Name: 4 bytes ("RqLs")
            // Padding: 4 bytes (to align data to 8-byte boundary)
            // Data: 32 bytes (lease V1 structure)
            return 16 + 4 + 4 + 32;
        }
    
        @Override
        public int encode(byte[] dst, int dstIndex) {
            int start = dstIndex;
    
            // Write context header
            SMBUtil.writeInt4(0, dst, dstIndex); // Next (offset to next context, 0 for last)
            dstIndex += 4;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

            // Note: No IPv4 preference bonus to keep base score equal to link speed
    
            return score;
        }
    
        /**
         * Encode this interface info for FSCTL_QUERY_NETWORK_INTERFACE_INFO response
         *
         * @return encoded bytes
         */
        public byte[] encode() {
            // NETWORK_INTERFACE_INFO structure per MS-SMB2 2.2.32.5.1
            // Total size: 152 bytes
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                testBlock = new TestServerMessageBlock(mockConfig);
            }
    
            @Test
            @DisplayName("Test encode without signature")
            void testEncodeWithoutSignature() {
                byte[] buffer = new byte[1024];
    
                int length = testBlock.encode(buffer, 0);
    
                assertTrue(length > 0);
                assertEquals(length, testBlock.getLength());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

        protected void decodeWitnessParameters(NdrBuffer buf) throws NdrException {
            // Decode output parameters for WitnessRegister
    
            // Context handle (20 bytes)
            if (contextHandle == null) {
                contextHandle = new byte[20];
            }
            buf.readOctetArray(contextHandle, 0, 20);
        }
    
        /**
         * Encodes a wide string pointer in NDR format.
         *
         * @param buf the NDR buffer
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/DcerpcHandle.java

                this.securityProvider.unwrap(fbuf);
            }
        }
    
        /**
         * Encode a DCE/RPC message for transmission
         *
         * @param msg
         *            the message to encode
         * @param out
         *            the output buffer for the encoded message
         * @return the NdrBuffer containing the encoded message
         * @throws NdrException
         *            if there is an error encoding the message
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/ndr/NdrHyper.java

         */
        public NdrHyper(final long value) {
            this.value = value;
        }
    
        @Override
        public void encode(final NdrBuffer dst) throws NdrException {
            dst.enc_ndr_hyper(this.value);
        }
    
        @Override
        public void decode(final NdrBuffer src) throws NdrException {
            this.value = src.dec_ndr_hyper();
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.5K bytes
    - Viewed (0)
Back to top