- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 230 for SMBUtil (0.56 sec)
-
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
assertEquals(32, SMBUtil.readInt2(buffer, 0)); // StructureSize assertEquals(0x0001, SMBUtil.readInt2(buffer, 2)); // Flags assertEquals(8192, SMBUtil.readInt4(buffer, 4)); // OutputBufferLength // FileId at offset 8-23 assertEquals(0x00000FFF, SMBUtil.readInt4(buffer, 24)); // CompletionFilter assertEquals(0, SMBUtil.readInt4(buffer, 28)); // Reserved }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
// Set SMB 3.1.1 dialect and 1 context SMBUtil.writeInt2(0x0311, buffer, 4); SMBUtil.writeInt2(1, buffer, 6); SMBUtil.writeInt4(128, buffer, 60); // Context offset // At offset 128 + 64 (header start), set context with excessive data length int contextPos = 192; SMBUtil.writeInt2(1, buffer, contextPos); // Context typeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
// Version (2 bytes) SMBUtil.writeInt2(3, buffer, 8); // Size (2 bytes) - the size of this referral entry SMBUtil.writeInt2(20, buffer, 10); // Server type (2 bytes) SMBUtil.writeInt2(1, buffer, 12); // Referral flags (2 bytes) SMBUtil.writeInt2(0, buffer, 14); // Proximity (2 bytes for v3) SMBUtil.writeInt2(0, buffer, 16);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransaction.java
SMBUtil.writeInt4(this.totalParameterCount, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4(this.totalDataCount, dst, dstIndex); dstIndex += 4; if (this.getCommand() != SMB_COM_NT_TRANSACT_SECONDARY) { SMBUtil.writeInt4(this.maxParameterCount, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4(this.maxDataCount, dst, dstIndex);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
assertEquals(512, SMBUtil.readInt4(buffer, 32)); // Minimum count assertEquals(Smb2ReadRequest.SMB2_CHANNEL_NONE, SMBUtil.readInt4(buffer, 36)); // Channel assertEquals(1024, SMBUtil.readInt4(buffer, 40)); // Remaining bytes // ReadChannelInfo assertEquals(0, SMBUtil.readInt2(buffer, 44)); // ReadChannelInfoOffset
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java
assertEquals(expectedIndexNumber, SMBUtil.readInt8(destinationBuffer, 0)); } @Test @DisplayName("Test encode with buffer offset") void testEncodeWithBufferOffset() throws SMBProtocolDecodingException { // First decode to set internal state byte[] sourceBuffer = new byte[8]; long expectedIndexNumber = 0xAABBCCDDEEFF1122L; SMBUtil.writeInt8(expectedIndexNumber, sourceBuffer, 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
int dataOffset = offset; SMBUtil.writeInt4(0, buffer, dataOffset); dataOffset += 4; SMBUtil.writeInt4(8, buffer, dataOffset); dataOffset += 4; SMBUtil.writeInt4(1000000, buffer, dataOffset); dataOffset += 4; SMBUtil.writeInt4(500000, buffer, dataOffset); dataOffset += 4; SMBUtil.writeInt2(512, buffer, dataOffset);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
SMBUtil.writeInt8(0, buffer, dataOffset + 32); // EndOfFile SMBUtil.writeInt8(0, buffer, dataOffset + 40); // AllocationSize SMBUtil.writeInt8(0, buffer, dataOffset + 48); // ExtFileAttributes SMBUtil.writeInt4(0, buffer, dataOffset + 56); // FileNameLength SMBUtil.writeInt4(8, buffer, dataOffset + 60); // EaSize SMBUtil.writeInt4(0, buffer, dataOffset + 64);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
byte[] buffer = new byte[10]; SMBUtil.writeInt2(0, buffer, 0); SMBUtil.writeInt2(0, buffer, 2); SMBUtil.writeInt2(TransPeekNamedPipeResponse.STATUS_CONNECTION_OK, buffer, 4); response.readParametersWireFormat(buffer, 0, 6); assertEquals(0, response.getAvailable()); // Test maximum unsigned 16-bit value (65535) SMBUtil.writeInt2(0xFFFF, buffer, 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java
int ci = 0; SMBUtil.writeInt4(0, ctx, ci); // Next = 0 ci += 4; SMBUtil.writeInt2(0x10, ctx, ci); // NameOffset SMBUtil.writeInt2(4, ctx, ci + 2); // NameLength ci += 4; SMBUtil.writeInt2(0, ctx, ci); // Reserved SMBUtil.writeInt2(0x20, ctx, ci + 2); // DataOffset ci += 4; SMBUtil.writeInt4(8, ctx, ci); // DataLength ci += 4;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0)