- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 230 for SMBUtil (0.04 sec)
-
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
byte[] buffer = new byte[60]; SMBUtil.writeInt2(60, buffer, 0); SMBUtil.writeInt2(0xFFFF, buffer, 2); // Max flags SMBUtil.writeInt4(0xFFFFFFFF, buffer, 4); // Max reserved (ignored) SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 8); // Max times SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 16); SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 24);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
bufferIndex += 2; this.parameterDisplacement = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2; this.dataCount = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2; this.dataOffset = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2; this.dataDisplacement = SMBUtil.readInt2(buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.3K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java
@Override public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt2(this.ciphers != null ? this.ciphers.length : 0, dst, dstIndex); dstIndex += 2; if (this.ciphers != null) { for (final int cipher : this.ciphers) { SMBUtil.writeInt2(cipher, dst, dstIndex); dstIndex += 2; } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
// Then 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")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
int offset = 0; SMBUtil.writeInt4(idFileSystem, buffer, offset); // idFileSystem (skipped) offset += 4; SMBUtil.writeInt4(sectPerAlloc, buffer, offset); offset += 4; SMBUtil.writeInt4((int) alloc, buffer, offset); offset += 4; SMBUtil.writeInt4((int) free, buffer, offset); offset += 4; SMBUtil.writeInt2(bytesPerSect, buffer, offset);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
assertEquals(36, SMBUtil.readInt2(buffer, 0)); // Verify dialect count assertEquals(3, SMBUtil.readInt2(buffer, 2)); // SMB210, SMB300, SMB302 // Verify security mode assertEquals(Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED, SMBUtil.readInt2(buffer, 4)); // Verify capabilities int caps = SMBUtil.readInt4(buffer, 8);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java
// Verify first chunk assertEquals(100L, SMBUtil.readInt8(buffer, 0)); assertEquals(200L, SMBUtil.readInt8(buffer, 8)); assertEquals(300, SMBUtil.readInt4(buffer, 16)); // Verify second chunk assertEquals(400L, SMBUtil.readInt8(buffer, EXPECTED_SIZE)); assertEquals(500L, SMBUtil.readInt8(buffer, EXPECTED_SIZE + 8));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0)