- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 255 for writeInt (0.05 sec)
-
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java
public class AvTimestampTest { /** * Test constructor with raw bytes. */ @Test public void testConstructorWithRawBytes() { byte[] rawBytes = new byte[8]; SMBUtil.writeInt8(1234567890L, rawBytes, 0); // Example timestamp AvTimestamp avTimestamp = new AvTimestamp(rawBytes); assertNotNull(avTimestamp); assertEquals(AvPair.MsvAvTimestamp, avTimestamp.getType());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
@DisplayName("Should decode multiple ciphers correctly") void testDecodeMultipleCiphers() throws SMBProtocolDecodingException { SMBUtil.writeInt2(2, buffer, 0); SMBUtil.writeInt2(EncryptionNegotiateContext.CIPHER_AES128_CCM, buffer, 2); SMBUtil.writeInt2(EncryptionNegotiateContext.CIPHER_AES128_GCM, buffer, 4); EncryptionNegotiateContext context = new EncryptionNegotiateContext();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.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/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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java
SMBUtil.writeInt8(indexNumber1, buffer1, 0); fileInternalInfo.decode(buffer1, 0, buffer1.length); assertEquals(indexNumber1, fileInternalInfo.getIndexNumber()); // Second decode - should overwrite previous value byte[] buffer2 = new byte[8]; long indexNumber2 = 0x2222222222222222L; SMBUtil.writeInt8(indexNumber2, buffer2, 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/smb2/ioctl/SrvPipePeekResponseTest.java
// Write values to buffer SMBUtil.writeInt4(namedPipeState, buffer, bufferIndex); SMBUtil.writeInt4(readDataAvailable, buffer, bufferIndex + 4); SMBUtil.writeInt4(numberOfMessages, buffer, bufferIndex + 8); SMBUtil.writeInt4(messageLength, buffer, bufferIndex + 12); System.arraycopy(testData, 0, buffer, bufferIndex + 16, testData.length);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K 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); // ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
docs/smb3-features/05-rdma-smb-direct-design.md
if (rdmaChannelInfo != null) { // Add RDMA read channel info writeInt4(dst, dstIndex + written, rdmaChannelInfo.getRemoteKey()); written += 4; writeInt8(dst, dstIndex + written, rdmaChannelInfo.getAddress()); written += 8; writeInt4(dst, dstIndex + written, rdmaChannelInfo.getLength()); written += 4; } return written; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 35.9K bytes - Viewed (0)