- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 85 for 0x1234 (0.06 sec)
-
src/test/java/jcifs/internal/util/SMBUtilTest.java
} @Test void testReadInt2() { byte[] src = new byte[] { (byte) 0x34, (byte) 0x12, // 0x1234 (byte) 0xFF, (byte) 0xFF, // 0xFFFF (byte) 0x00, (byte) 0x00, // 0x0000 (byte) 0xCD, (byte) 0xAB // 0xABCD }; assertEquals(0x1234, SMBUtil.readInt2(src, 0)); assertEquals(0xFFFF, SMBUtil.readInt2(src, 2));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.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) -
src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java
*</p> */ @ExtendWith(MockitoExtension.class) class SmbComFindClose2Test { @Mock private Configuration mockConfig; private SmbComFindClose2 instance; private final int TEST_SID = 0x1234; // 4660 decimal @BeforeEach void setUp() { instance = new SmbComFindClose2(mockConfig, TEST_SID); } @Test void testConstructorAndToString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java
int decodedValue = 0; TestMessage() { /* nothing */ } @Override public int getOpnum() { return 0x1234; } @Override public void encode_in(NdrBuffer buf) throws NdrException { buf.enc_ndr_small(0xAB); } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
SMBUtil.writeInt4(2, out, 4); SMBUtil.writeInt4(3, out, 8); byte[] body = buildIoctlResponseBody(Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK, new byte[16], 0, null, out.length, out, 0x1234); byte[] packet = new byte[header.length + body.length]; System.arraycopy(header, 0, packet, 0, header.length); System.arraycopy(body, 0, packet, header.length, body.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
// Arrange Name realName = new Name(mockConfig, "WORKSTATION", 0x00, null); nodeStatusRequest = new NodeStatusRequest(mockConfig, realName); nodeStatusRequest.nameTrnId = 0x1234; byte[] buffer = new byte[512]; // Act - Write int writeLength = nodeStatusRequest.writeWireFormat(buffer, 0); // Assert write assertTrue(writeLength > 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java
Arguments.of(0xFF00, (byte) 0x00, (byte) 0xFF), Arguments.of(0xFFFF, (byte) 0xFF, (byte) 0xFF), Arguments.of(0x1234, (byte) 0x34, (byte) 0x12)); } @Test @DisplayName("readSetupWireFormat should return 0") void testReadSetupWireFormat() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java
dnsDomainInfo.domain_guid.time_low = 0x12345678; dnsDomainInfo.domain_guid.time_mid = 0x1234; dnsDomainInfo.domain_guid.time_hi_and_version = 0x5678; dnsDomainInfo.domain_guid.clock_seq_hi_and_reserved = 0x12; dnsDomainInfo.domain_guid.clock_seq_low = 0x34; dnsDomainInfo.domain_guid.node = new byte[] { 1, 2, 3, 4, 5, 6 }; dnsDomainInfo.sid = new rpc.sid_t();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
int off = inv.getArgument(1); b[off] = 0x12; b[off + 1] = 0x34; return 2; }).when(raf).read(any(byte[].class), anyInt(), eq(2)); assertEquals(0x1234, raf.readUnsignedShort()); assertEquals((short) 0x1234, raf.readShort()); assertEquals((char) 0x1234, raf.readChar()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
ndrBuffer.enc_ndr_short(0x1234); assertEquals(4, ndrBuffer.getIndex()); // Aligned from 1 to 2, then advanced by 2 assertEquals(4, ndrBuffer.getLength()); assertEquals((byte) 0x34, buffer[2]); assertEquals((byte) 0x12, buffer[3]); ndrBuffer.setIndex(2); val = ndrBuffer.dec_ndr_short(); assertEquals(0x1234, val); assertEquals(4, ndrBuffer.getIndex());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0)