- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 168 for 0xffe3 (0.23 sec)
-
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java
void testNegativeFidValue() { int fid = -1; // Will be treated as 0xFFFF in unsigned 16-bit notifyChange = new NtTransNotifyChange(mockConfig, fid, FILE_NOTIFY_CHANGE_FILE_NAME, false); byte[] dst = new byte[10]; notifyChange.writeSetupWireFormat(dst, 0); // Should write as 0xFFFF (65535 in unsigned) assertEquals(0xFFFF, SMBUtil.readInt2(dst, 4)); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
@Test @DisplayName("Should set and get lease key") void testLeaseKeyAccessors() { byte[] newKeyBytes = new byte[] { (byte) 0xFF, (byte) 0xFE, (byte) 0xFD, (byte) 0xFC, (byte) 0xFB, (byte) 0xFA, (byte) 0xF9, (byte) 0xF8, (byte) 0xF7, (byte) 0xF6, (byte) 0xF5, (byte) 0xF4, (byte) 0xF3, (byte) 0xF2, (byte) 0xF1, (byte) 0xF0 }; Smb2LeaseKey newKey = new Smb2LeaseKey(newKeyBytes); leaseContext.setLeaseKey(newKey);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java
int fid = -1; // Will be treated as 0xFFFF in unsigned 16-bit querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, fid, OWNER_SECURITY_INFORMATION); byte[] dst = new byte[10]; querySecurityDesc.writeParametersWireFormat(dst, 0); // Should write as 0xFFFF (65535 in unsigned) assertEquals(0xFFFF, SMBUtil.readInt2(dst, 0)); } @Test
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/pac/PacDataInputStreamTest.java
assertEquals(0xFFFF, pdis.readUnsignedShort()); } @Test public void testReadUnsignedInt() throws IOException { // Little-endian 0xFFFFFFFF -> 0xFF 0xFF 0xFF 0xFF byte[] data = new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }; PacDataInputStream pdis = createInputStream(data); assertEquals(0xFFFFFFFFL, pdis.readUnsignedInt()); } @Test
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/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java
this.negotiatedFlags2 |= SmbConstants.FLAGS2_SECURITY_REQUIRE_SIGNATURES; } } else { this.negotiatedFlags2 &= 0xFFFF ^ SmbConstants.FLAGS2_SECURITY_SIGNATURES; this.negotiatedFlags2 &= 0xFFFF ^ SmbConstants.FLAGS2_SECURITY_REQUIRE_SIGNATURES; } if (log.isDebugEnabled()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
assertEquals((byte) ((value >> 8) & 0xFF), dst[0]); assertEquals((byte) (value & 0xFF), dst[1]); } @Test @DisplayName("writeInt2 with offset should write at correct position") void testWriteInt2WithOffset() { byte[] dst = new byte[10]; dst[2] = (byte) 0xFF; // Mark position dst[3] = (byte) 0xFF; SessionServicePacket.writeInt2(0xABCD, dst, 4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java
new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, defaultClientGuid, 0xFFFF, defaultDialects); byte[] buffer = new byte[request.size()]; request.encode(buffer, 0); // Verify max security mode value (2 bytes) assertEquals(0xFFFF, SMBUtil.readInt2(buffer, 20) & 0xFFFF); } @Test @DisplayName("Test encode with all zero GUID")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/SocketOutputStream.java
b[off + 0] = (byte) SessionServicePacket.SESSION_MESSAGE; b[off + 1] = (byte) 0x00; b[off + 2] = (byte) (len >> 8 & 0xFF); b[off + 3] = (byte) (len & 0xFF); out.write(b, off, 4 + len); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbTransport.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/util/SMBUtil.java
*/ public static int readInt4(final byte[] src, final int srcIndex) { return (src[srcIndex] & 0xFF) + ((src[srcIndex + 1] & 0xFF) << 8) + ((src[srcIndex + 2] & 0xFF) << 16) + ((src[srcIndex + 3] & 0xFF) << 24); } /** * Reads a 64-bit integer value from a byte array in little-endian format * @param src the source byte array
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8K bytes - Viewed (0)