- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 249 for writeInt (0.61 sec)
-
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java
// totalParameterCount = 10 writeInt4(10, buffer, bufferIndex); bufferIndex += 4; // totalDataCount = 20 writeInt4(20, buffer, bufferIndex); bufferIndex += 4; // parameterCount = 5 writeInt4(5, buffer, bufferIndex); bufferIndex += 4; // parameterOffset = 30 writeInt4(30, buffer, bufferIndex); bufferIndex += 4;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K 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/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/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/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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K 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: 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/smb1/net/NetShareEnum.java
return 0; } SMBUtil.writeInt2(NET_SHARE_ENUM, dst, dstIndex); dstIndex += 2; System.arraycopy(descr, 0, dst, dstIndex, descr.length); dstIndex += descr.length; SMBUtil.writeInt2(0x0001, dst, dstIndex); dstIndex += 2; SMBUtil.writeInt2(this.maxDataCount, dst, dstIndex); dstIndex += 2; return dstIndex - start;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.3K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
buf[1] = 0x66; // andxCommand ServerMessageBlock.writeInt2(50, buf, 3); // andxOffset ServerMessageBlock.writeInt2(20, buf, 9); // byteCount for main block // At offset 50, the implementation writes andx.wordCount (0) to buffer // Then reads byteCount at offset 51 ServerMessageBlock.writeInt2(20, buf, 51); int n = block.readAndXWireFormat(buf, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0)