- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 230 for SMBUtil (0.21 sec)
-
src/main/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponse.java
final int start = bufferIndex; this.chunksWritten = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.chunkBytesWritten = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.totalBytesWritten = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; return bufferIndex - start; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
void testDecodeNegativeValuesAsUnsigned() throws SMBProtocolDecodingException { byte[] buffer = new byte[12]; SMBUtil.writeInt4(-1, buffer, 0); // chunksWritten SMBUtil.writeInt4(-2, buffer, 4); // chunkBytesWritten SMBUtil.writeInt4(-3, buffer, 8); // totalBytesWritten int bytesDecoded = response.decode(buffer, 0, buffer.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
byte[] buffer1 = new byte[256]; byte[] buffer2 = new byte[256]; // Prepare both buffers with valid structure SMBUtil.writeInt2(4, buffer1, 0); SMBUtil.writeInt2(0, buffer1, 2); SMBUtil.writeInt2(4, buffer2, 10); SMBUtil.writeInt2(0, buffer2, 12); // When int bytes1 = response.readBytesWireFormat(buffer1, 0);
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/smb2/Smb2SigningDigestTest.java
byte[] data = new byte[128]; // Initialize the data buffer with proper SMB2 header structure SMBUtil.writeInt4(0xFE534D42, data, 0); // SMB2 signature SMBUtil.writeInt4(0x0000, data, 12); // Command = 0 SMBUtil.writeInt4(0x0000, data, 16); // Flags = 0 CommonServerMessageBlock request = mock(CommonServerMessageBlock.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupResponse.java
final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 9) { throw new SMBProtocolDecodingException("Structure size != 9"); } this.sessionFlags = SMBUtil.readInt2(buffer, bufferIndex + 2); bufferIndex += 4; final int securityBufferOffset = SMBUtil.readInt2(buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.8K bytes - Viewed (1) -
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
assertEquals(0, SMBUtil.readInt4(buffer, 0)); // NameOffset field (2 bytes) - should be 16 (after header) assertEquals(16, SMBUtil.readInt2(buffer, 4)); // NameLength field (2 bytes) - should be 4 for "RqLs" assertEquals(4, SMBUtil.readInt2(buffer, 6)); // Reserved field (2 bytes) - should be 0 assertEquals(0, SMBUtil.readInt2(buffer, 8));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComLockingAndX.java
final int start = dstIndex; SMBUtil.writeInt2(this.fid, dst, dstIndex); dstIndex += 2; dst[dstIndex] = this.typeOfLock; dst[dstIndex + 1] = this.newOpLockLevel; dstIndex += 2; SMBUtil.writeInt4(this.timeout, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt2(this.unlocks != null ? this.unlocks.length : 0, dst, dstIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java
// When using RDMA channel, this points to SMB2_RDMA_TRANSFORM in Buffer SMBUtil.writeInt2(80, dst, dstIndex); // ReadChannelInfoOffset (after header) SMBUtil.writeInt2(16, dst, dstIndex + 2); // ReadChannelInfoLength dstIndex += 4; } else { SMBUtil.writeInt2(0, dst, dstIndex); SMBUtil.writeInt2(0, dst, dstIndex + 2); dstIndex += 4; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
// 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 field // When int bytesRead = response.readBytesWireFormat(buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoRequest.java
dstIndex += 4; SMBUtil.writeInt4(this.additionalInformation, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4(this.queryFlags, dst, dstIndex); dstIndex += 4; System.arraycopy(this.fileId, 0, dst, dstIndex, 16); dstIndex += 16; if (this.inputBuffer == null) { SMBUtil.writeInt2(0, dst, inBufferOffsetOffset);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.4K bytes - Viewed (0)