- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for writeLittleEndianInt (0.32 seconds)
-
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)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.9K bytes - Click Count (0) -
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); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.3K bytes - Click Count (0) -
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()) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0)