Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for writeLittleEndianInt (0.41 sec)

  1. src/test/java/jcifs/pac/PacTest.java

            // Create PAC with unaligned buffer offset
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            writeLittleEndianInt(baos, 1); // bufferCount
            writeLittleEndianInt(baos, PacConstants.PAC_VERSION); // version
            writeLittleEndianInt(baos, PacConstants.LOGON_INFO); // type
            writeLittleEndianInt(baos, 10); // size
            writeLittleEndianLong(baos, 25); // Unaligned offset (not multiple of 8)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacLogonInfoTest.java

            // Write a valid string structure
            String testString = "TEST";
            int totalChars = testString.length();
            writeLittleEndianInt(dos, totalChars); // totalChars
            writeLittleEndianInt(dos, 0); // unusedChars
            writeLittleEndianInt(dos, totalChars); // usedChars
    
            // Write the actual characters (as shorts in little-endian)
            for (char c : testString.toCharArray()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/PacSignatureTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for the PacSignature class.
     */
    class PacSignatureTest {
    
        /**
         * Helper method to write integer in little-endian format.
         */
        private void writeLittleEndianInt(ByteArrayOutputStream baos, int value) {
            ByteBuffer buffer = ByteBuffer.allocate(4);
            buffer.order(ByteOrder.LITTLE_ENDIAN);
            buffer.putInt(value);
            baos.write(buffer.array(), 0, 4);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top