- Sort Score
- Num 10 results
- Language All
Results 151 - 160 of 242 for writeInt2 (0.09 seconds)
-
src/main/java/jcifs/internal/fscc/FileStandardInfo.java
*/ @Override public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt8(this.allocationSize, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt8(this.endOfFile, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt4(this.numberOfLinks, dst, dstIndex); dstIndex += 4; dst[dstIndex] = (byte) (this.deletePending ? 1 : 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.7K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunk.java
*/ @Override public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt8(this.sourceOffset, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt8(this.targetOffset, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt4(this.length, dst, dstIndex); dstIndex += 4; dstIndex += 4; // reserved return dstIndex - start; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java
* @param dstIndex starting index * @return number of bytes written */ public int encode(byte[] dst, int dstIndex) { SMBUtil.writeInt8(offset, dst, dstIndex); SMBUtil.writeInt4(token, dst, dstIndex + 8); SMBUtil.writeInt4(length, dst, dstIndex + 12); return 16; } /** * Decode from byte array * * @param buffer source bufferCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 3K bytes - Click Count (0) -
src/main/java/jcifs/internal/fscc/FsctlPipeWaitRequest.java
* @see jcifs.Encodable#encode(byte[], int) */ @Override public int encode(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt8(this.timeout, dst, dstIndex); dstIndex += 8; SMBUtil.writeInt4(this.nameBytes.length, dst, dstIndex); dstIndex += 4; dst[dstIndex] = (byte) (this.timeoutSpecified ? 0x1 : 0x0); dstIndex++;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.8K bytes - Click Count (0) -
docs/smb3-features/04-directory-leasing-design.md
int dataOffset = offset + getStandardLeaseSize(); // CacheScope (4 bytes) writeInt4(buffer, dataOffset, cacheScope.ordinal()); dataOffset += 4; // MaxCacheAge (8 bytes) writeInt8(buffer, dataOffset, maxCacheAge); dataOffset += 8; // Flags (4 bytes) int flags = 0;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 36.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java
buffer[bufferIndex + 2] = 0x00; SMBUtil.writeInt4(totalParams, buffer, bufferIndex + 3); SMBUtil.writeInt4(totalData, buffer, bufferIndex + 7); SMBUtil.writeInt4(paramCount, buffer, bufferIndex + 11); SMBUtil.writeInt4(paramOffset, buffer, bufferIndex + 15); SMBUtil.writeInt4(paramDisp, buffer, bufferIndex + 19); SMBUtil.writeInt4(dataCount, buffer, bufferIndex + 23);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 16.3K bytes - Click Count (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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (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());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.8K bytes - Click Count (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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 43.7K bytes - Click Count (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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.8K bytes - Click Count (0)