- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 191 for structures (3.17 sec)
-
src/main/java/jcifs/internal/fscc/FileBasicInfo.java
import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; import jcifs.util.Hexdump; /** * Represents the FILE_BASIC_INFORMATION structure used in SMB2/3 file system control code (FSCC) operations. * This structure contains basic file information including creation time, last access time, last write time, * change time, and file attributes for querying and setting file metadata. */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
assertEquals(4, bytesWritten); // Verify structure size (4) is written at offset assertEquals(4, SMBUtil.readInt2(buffer, offset)); // Verify reserved field (0) is written at offset + 2 assertEquals(0, SMBUtil.readInt2(buffer, offset + 2)); } @Test @DisplayName("Should write exact wire format structure") void testWriteBytesWireFormatStructure() { // Given
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
byte[] buffer = new byte[512]; int offset = 0; // Set header start position for the response setHeaderStart(response, 64); // Write structure header (9 bytes) SMBUtil.writeInt2(9, buffer, offset); // Structure size SMBUtil.writeInt2(80 - 64, buffer, offset + 2); // Buffer offset (relative to header) SMBUtil.writeInt4(50, buffer, offset + 4); // Total length of notification data
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java
*/ package jcifs.internal.smb2.rdma; import jcifs.internal.util.SMBUtil; /** * SMB2 RDMA Transform structure for READ/WRITE channel info. * * As per MS-SMB2 2.2.13.1.1 and 2.2.21.1.1 */ public class Smb2RdmaTransform { // SMB_DIRECT_BUFFER_DESCRIPTOR_V1 structure private long offset; // 8 bytes: Offset within registered buffer private int token; // 4 bytes: RDMA provider tokenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
class ReadBytesWireFormatTests { @Test @DisplayName("Should read valid structure size of 4") void testReadBytesWireFormatValid() throws SMBProtocolDecodingException { byte[] buffer = new byte[1024]; int bufferIndex = 100; // Write structure size = 4 SMBUtil.writeInt2(4, buffer, bufferIndex);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java
import java.io.Serializable; import java.nio.ByteBuffer; import java.util.UUID; /** * Handle GUID structure for SMB2/3 durable and persistent handles. * Provides a unique identifier for each handle that can be used * for reconnection after network failures or server reboots. * * According to MS-SMB2, the GUID is a 16-byte structure with little-endian * byte ordering for the individual components. */
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
byte[] buffer = new byte[leaseContext.size()]; int encoded = leaseContext.encode(buffer, 0); assertEquals(leaseContext.size(), encoded); // Verify context header structure according to MS-SMB2 // Next field (4 bytes) - should be 0 for last/single context assertEquals(0, SMBUtil.readInt4(buffer, 0)); // NameOffset field (2 bytes) - should be 16 (after header)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
byte[] buffer = new byte[1024]; int written = request.writeBytesWireFormat(buffer, 0); // Should write exactly 56 bytes (structure size without data) assertEquals(56, written); // Check structure size (first 2 bytes should be 57) assertEquals(57, (buffer[0] & 0xFF) | ((buffer[1] & 0xFF) << 8)); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
byte[] pathBytes = TEST_PATH.getBytes(StandardCharsets.UTF_16LE); // Verify structure size (9) assertEquals(9, SMBUtil.readInt2(buffer, bodyOffset)); // Verify tree flags (0) assertEquals(0, SMBUtil.readInt2(buffer, bodyOffset + 2)); // Verify path offset (points to after the 8-byte structure) int expectedPathOffset = bodyOffset + 8 - headerStart;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponse.java
*/ package jcifs.internal.smb2.ioctl; import jcifs.Decodable; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; /** * SMB2 SRV_COPYCHUNK_COPY response data structure. This structure contains the result * of a server-side copy operation. * * @author mbechler * */ public class SrvCopyChunkCopyResponse implements Decodable { /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0)