- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 492 for Structured (0.07 seconds)
-
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
@Test @DisplayName("Should read valid structure with size 4") void testReadBytesWireFormatValid() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[10]; int bufferIndex = 2; SMBUtil.writeInt2(4, buffer, bufferIndex); // Write structure size = 4 SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved fieldCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.3K bytes - Click Count (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
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 18.8K bytes - Click Count (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
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/samrTest.java
import jcifs.dcerpc.rpc; import jcifs.dcerpc.ndr.NdrBuffer; import jcifs.dcerpc.ndr.NdrException; /** * Comprehensive test suite for samr (Security Account Manager Remote) protocol * Tests all message types, data structures, and constants */ @ExtendWith(MockitoExtension.class) @DisplayName("SAMR Protocol Test Suite") class samrTest { @Mock private NdrBuffer mockNdrBuffer; @Mock
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 33.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
// Then // The writeBytesWireFormat writes the structure and calculates padding // Base structure: 24 bytes, then pad8 alignment, then token: 5 bytes // Total bytes written includes padding for 8-byte alignment int expectedBytesWritten = 35; assertEquals(expectedBytesWritten, bytesWritten); // Verify structureCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21.2K bytes - Click Count (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 tokenCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 3K bytes - Click Count (0) -
guava/src/com/google/common/graph/MapIteratorCache.java
import java.util.Map.Entry; import java.util.Set; import org.jspecify.annotations.Nullable; /** * A map-like data structure that wraps a backing map and caches values while iterating through * {@link #unmodifiableKeySet()}. By design, the cache is cleared when this structure is mutated. If * this structure is never mutated, it provides a thread-safe view of the backing map. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 4.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
assertTrue(bytesRead > 0); // readDataWireFormat returns bytes consumed from header, not full buffer assertEquals(28, bytesRead); // Header + one referral structure assertNotNull(response.getDfsResponse()); } @Test @DisplayName("Should handle readDataWireFormat with offset") void testReadDataWireFormatWithOffset() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.4K bytes - Click Count (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;
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/fscc/FileFsFullSizeInformation.java
import jcifs.internal.AllocInfo; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; /** * Represents the FILE_FS_FULL_SIZE_INFORMATION structure used to query comprehensive file system size information. * This structure provides complete allocation details including total allocation units, caller-available free units, * actual free allocation units, sectors per allocation unit, and bytes per sector. */
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.1K bytes - Click Count (0)