- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 194 for structures (3.93 sec)
-
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java
byte[] buffer = new byte[1024]; request.writeBytesWireFormat(buffer, Smb2Constants.SMB2_HEADER_LENGTH); // FileId is at offset 8 in the request structure for (int i = 0; i < 16; i++) { assertEquals(fileId[i], buffer[Smb2Constants.SMB2_HEADER_LENGTH + 8 + i]); } } @Test @DisplayName("Test setFileInformationClass method")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
@Test @DisplayName("Should decode error response with correct structure size") void testReadErrorResponseValid() throws SMBProtocolDecodingException { byte[] buffer = new byte[256]; int bufferIndex = 0; // Write error response structure SMBUtil.writeInt2(9, buffer, bufferIndex); // structure size buffer[bufferIndex + 2] = 2; // error context countRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
int headerStart = 0; buildHeader(buf, headerStart, NtStatus.NT_STATUS_ACCESS_DENIED, 0x0001, 0x0L); int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH; // Error response structure: size(2)=9, errorContextCount(1), reserved(1), bc(4), errorData(bc) SMBUtil.writeInt2(9, buf, bodyStart); buf[bodyStart + 2] = 0x02; // errorContextCount buf[bodyStart + 3] = 0x00; // reservedRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
// Then assertEquals(4, bytesWritten, "Should write 4 bytes"); // Check that structure size (4) is written as 2-byte little-endian assertEquals(4, buffer[offset] | (buffer[offset + 1] << 8), "Structure size should be 4"); assertEquals(0, buffer[offset + 2], "Reserved bytes should be 0"); assertEquals(0, buffer[offset + 3], "Reserved bytes should be 0");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/session/Smb2LogoffResponse.java
protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } /** * {@inheritDoc} * * @throws SMBProtocolDecodingException if the response structure is invalid * * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int) */ @Override
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
byte[] buffer = new byte[256]; // Execute int bytesWritten = request.writeBytesWireFormat(buffer, 0); // Verify structure assertEquals(49, SMBUtil.readInt2(buffer, 0)); // Structure size assertEquals(2, buffer[2]); // Padding assertEquals(0x01, buffer[3]); // Read flags assertEquals(4096, SMBUtil.readInt4(buffer, 4)); // Read lengthRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequest.java
*/ package jcifs.internal.smb2.ioctl; import jcifs.Encodable; import jcifs.internal.util.SMBUtil; /** * SMB2 Validate Negotiate Info request data structure. This structure is used to validate * that the negotiated SMB2 dialect matches what was originally negotiated. * * @author mbechler * */ public class ValidateNegotiateInfoRequest implements Encodable {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponse.java
*/ package jcifs.internal.smb2.ioctl; import jcifs.Decodable; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; /** * SMB2 SRV_REQUEST_RESUME_KEY response data structure. This structure contains a resume key * that can be used for server-side copy operations. * * @author mbechler * */ public class SrvRequestResumeKeyResponse implements Decodable { /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.2K bytes - Viewed (3) -
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
void testReadValidOplockBreakNotification() throws Exception { // Create a valid buffer with structure size 24 byte[] buffer = new byte[64]; int bufferIndex = 0; // Write structure size (24) SMBUtil.writeInt2(24, buffer, bufferIndex); // Write oplock level at offset 2
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java
// For 100% coverage, we'd need to ensure the superclass constructor is indeed called with these values. // However, given the current structure, testing the fields set by MsrpcEnumerateAliasesInDomain itself is the primary focus. }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0)