Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for pad8 (1.25 sec)

  1. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

            assertArrayEquals(machineId, actualMachineId);
        }
    
        /**
         * Test with customData and machineId that are not exactly 8 and 32 bytes respectively.
         * The constructor requires exact sizes, so we need to pad them manually.
         */
        @Test
        void testAvSingleHostCustomDataMachineIdConstructor_ShorterInputs() {
            // Prepare padded arrays
            byte[] customData = new byte[8];
            customData[0] = 0x01;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                    off += 27;
                    resp.decode(BUF, 4);
                    /* EMC can send pad w/o data */
                    final int pad = r.dataOffset - off;
                    if (r.byteCount > 0 && pad > 0 && pad < 4) {
                        readn(in, BUF, 4 + off, pad);
                    }
    
                    if (r.dataLength > 0) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

            buffer.putInt(entry1AlignedSize); // nextEntryOffset
            buffer.putInt(FileNotifyInformation.FILE_ACTION_ADDED);
            buffer.putInt(fileNameBytes1.length);
            buffer.put(fileNameBytes1);
    
            // Pad to aligned size
            while (buffer.position() < entry1AlignedSize) {
                buffer.put((byte) 0);
            }
    
            // Second notification
            buffer.putInt(entry2AlignedSize); // nextEntryOffset
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
            byte[] blob = new byte[] { 9, 8, 7, 6 };
            // Place blob further ahead to exercise pad adjustment logic
            int secBufOffset = Smb2Constants.SMB2_HEADER_LENGTH + 16; // beyond current bodyIndex (64+8)
            int sessionFlags = Smb2SessionSetupResponse.SMB2_SESSION_FLAGS_IS_NULL;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java

            // Context handle (20 bytes)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

                // String data in UTF-16LE
                buf.writeOctetArray(wideBytes, 0, wideBytes.length);
                buf.enc_ndr_short(0); // Wide null terminator
    
                // Pad to 4-byte boundary
                int padding = (4 - ((wideBytes.length + 2) % 4)) % 4;
                for (int i = 0; i < padding; i++) {
                    buf.enc_ndr_small(0);
                }
            }
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/Hexdump.java

        /**
         * This is an alternative to the <code>java.lang.Integer.toHexString</code>
         * method. It is an efficient relative that also will pad the left side so
         * that the result is <code>size</code> digits.
         *
         * @param val the integer value to convert to hexadecimal
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/Hexdump.java

            } while (si < length);
    
            ps.println(c);
        }
    
        /**
         * This is an alternative to the <code>java.lang.Integer.toHexString</code>
         * method. It is an efficient relative that also will pad the left side so
         * that the result is <code>size</code> digits.
         *
         * @param val the integer value to convert to hexadecimal
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTransportImpl.java

                    off += 27;
                    resp.decode(buffer, 4);
                    /* EMC can send pad w/o data */
                    final int pad = r.getDataOffset() - off;
                    if (r.getByteCount() > 0 && pad > 0 && pad < 4) {
                        readn(this.in, buffer, 4 + off, pad);
                    }
    
                    if (r.getDataLength() > 0) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                if (data != null && data.length > 0) {
                    System.arraycopy(data, 0, dst, offset, data.length);
                    offset += data.length;
                }
    
                // Pad to 8-byte boundary
                while ((offset - dstIndex) % 8 != 0) {
                    dst[offset++] = 0;
                }
    
                return offset - dstIndex;
            }
    
            @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top