- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for 0x1234 (0.25 sec)
-
src/test/java/jcifs/pac/PacDataInputStreamTest.java
// Little-endian 0x1234 -> 0x34 0x12 byte[] data = new byte[] { 0x34, 0x12, 0x00, 0x00 }; PacDataInputStream pdis = createInputStream(data); assertEquals((short) 0x1234, pdis.readShort()); } @Test public void testReadInt() throws IOException { // Little-endian 0x12345678 -> 0x78 0x56 0x34 0x12 byte[] data = new byte[] { 0x78, 0x56, 0x34, 0x12 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
assertArrayEquals(expected, actualWritten, "wire format should match expectation"); } static Stream<Arguments> validParams() { // fid 0x1234, lastWriteTime 0 -> UTime all 0xFF return Stream.of(Arguments.of(0x1234, 0L, new byte[] { 0x34, 0x12, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }), // negative fid wraps around, lastWriteTime = 1000 -> 1 second -> int value 1
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java
write.setParam(0x1234, 0x5678L, 100, new byte[10], 0, 10); byte[] dst = new byte[20]; // Act int bytesWritten = write.writeParameterWordsWireFormat(dst, 0); // Assert assertEquals(10, bytesWritten, "Should write 10 bytes"); // Check FID (little-endian) assertEquals(0x34, dst[0] & 0xFF); assertEquals(0x12, dst[1] & 0xFF); // Check count
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
void testWriteParametersWireFormat() { int level = 0x1234; Trans2QueryFSInformation cmd = new Trans2QueryFSInformation(level); byte[] buf = newBuffer(10); int written = cmd.writeParametersWireFormat(buf, 0); assertEquals(2, written, "writeParametersWireFormat should write exactly 2 bytes"); // Verify little-endian encoding (0x1234 -> 0x34 0x12)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java
assertEquals(dst.length, n); // resumeKey (LE) at offset 6..9 should be 0x11121314 -> 14 13 12 11 assertEquals((byte) 0x14, dst[6]); assertEquals((byte) 0x13, dst[7]); assertEquals((byte) 0x12, dst[8]); assertEquals((byte) 0x11, dst[9]); // filename content byte[] nameBytes = updatedName.getBytes();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/util/HexdumpTest.java
// Test different sizes assertEquals("00", Hexdump.toHexString(0, 2)); assertEquals("FF", Hexdump.toHexString(255, 2)); assertEquals("1234", Hexdump.toHexString(0x1234, 4)); } @Test @DisplayName("Should convert long to hex string with padding") void testLongToHexString() { // Test various long values
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/util/EncdecTest.java
// Given short value = 0x1234; byte[] buffer = new byte[2]; // When - encode little endian Encdec.enc_uint16le(value, buffer, 0); short decoded = (short) Encdec.dec_uint16le(buffer, 0); // Then assertEquals(value, decoded); assertEquals(0x34, buffer[0] & 0xFF); assertEquals(0x12, buffer[1] & 0xFF); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComWriteResponseTest.java
} @Test public void testReadParameterWordsUpdatesCount() { // create a buffer with count = 0x1234 (4660 decimal) // Using little-endian byte order as per SMBUtil.readInt2 byte[] buf = new byte[12]; buf[0] = 0x34; // Low byte buf[1] = 0x12; // High byte int written = resp.readParameterWordsWireFormat(buf, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
Configuration cfg = mock(Configuration.class); SmbComLockingAndX cmd = new SmbComLockingAndX(cfg); // set fields via reflection setField(cmd, "fid", 0x1234); setField(cmd, "typeOfLock", (byte) 0x05); setField(cmd, "newOpLockLevel", (byte) 0x01); setField(cmd, "timeout", 3000L); // arrays of one lock and one unlock range
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/InfoTest.java
byte[] buffer = new byte[34]; long create = 1600000000000L; long lastAccess = 1600000100000L; long lastWrite = 1600000200000L; long change = 1600000300000L; int attributes = 0x1234; // Convert Unix time to Windows FILETIME (100-nanosecond intervals since 1601) long MILLISECONDS_BETWEEN_1970_AND_1601 = 11644473600000L;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0)