- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for writeLittleEndianInt (0.2 sec)
-
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) -
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)