- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 249 for writeInt (0.56 sec)
-
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
byte[] buffer = new byte[100]; buffer[0] = 1; // replaceIfExists = true // Skip 7 reserved bytes (1-7) // Skip 8 bytes for RootDirectory (8-15) SMBUtil.writeInt4(nameBytes.length, buffer, 16); System.arraycopy(nameBytes, 0, buffer, 20, nameBytes.length); FileRenameInformation2 info = new FileRenameInformation2();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/av/AvSingleHost.java
} private static byte[] encode(final byte[] customData, final byte[] machineId) { final int size = 8 + 8 + 32; final byte[] enc = new byte[size]; SMBUtil.writeInt4(size, enc, 0); SMBUtil.writeInt4(0, enc, 4); System.arraycopy(customData, 0, enc, 8, 8); System.arraycopy(machineId, 0, enc, 16, 32); return enc; }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralRequestBuffer.java
final int start = dstIndex; SMBUtil.writeInt2(this.maxReferralLevel, dst, dstIndex); dstIndex += 2; final byte[] pathBytes = this.path.getBytes(StandardCharsets.UTF_16LE); System.arraycopy(pathBytes, 0, dst, dstIndex, pathBytes.length); dstIndex += pathBytes.length; SMBUtil.writeInt2(0, dst, dstIndex); dstIndex += 2; // null terminatorRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java
assertEquals(0, (dst[5] << 8) | (dst[4] & 0xFF)); } @Test void testWriteDataWireFormat() { // Given // writeInt8 writes 8 bytes but needs to access dst[dstIndex+7] // Total bytes written: 8+8+8+8+2+6=40 // But writeInt8 at position 34 needs to access position 34+7=41 // So we need at least 42 bytes in the array byte[] dst = new byte[42]; // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
// Create a valid buffer with structure size 24 byte[] buffer = new byte[64]; int bufferIndex = 0; // Write structure size (24) SMBUtil.writeInt2(24, buffer, bufferIndex); // Write oplock level at offset 2 byte expectedOplockLevel = (byte) 0x02; // SMB2_OPLOCK_LEVEL_II buffer[bufferIndex + 2] = expectedOplockLevel;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java
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/smb1/AndXServerMessageBlockTest.java
buffer[34] = (byte) 0x42; // andxCommand SMBUtil.writeInt2(83, buffer, 36); // andxOffset (33 + 50) SMBUtil.writeInt2(20, buffer, 42); // byteCount // Setup andx command data at offset 83 (absolute position from buffer start) buffer[83] = 2; // andx wordCount SMBUtil.writeInt2(10, buffer, 88); // andx byteCount int length = testBlock.decode(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
void testDecodeMultipleHashAlgosWithSalt() throws SMBProtocolDecodingException { SMBUtil.writeInt2(3, buffer, 0); SMBUtil.writeInt2(2, buffer, 2); SMBUtil.writeInt2(0x01, buffer, 4); SMBUtil.writeInt2(0x02, buffer, 6); SMBUtil.writeInt2(0x03, buffer, 8); byte[] salt = { 0x0A, 0x0B }; System.arraycopy(salt, 0, buffer, 10, 2);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 34K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NetShareEnum.java
return 0; } writeInt2(NET_SHARE_ENUM, dst, dstIndex); dstIndex += 2; System.arraycopy(descr, 0, dst, dstIndex, descr.length); dstIndex += descr.length; writeInt2(0x0001, dst, dstIndex); dstIndex += 2; writeInt2(maxDataCount, dst, dstIndex); dstIndex += 2; return dstIndex - start; }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.7K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/av/AvPairs.java
final byte[] raw = p.getRaw(); SMBUtil.writeInt2(p.getType(), enc, pos); SMBUtil.writeInt2(raw.length, enc, pos + 2); System.arraycopy(raw, 0, enc, pos + 4, raw.length); pos += 4 + raw.length; } // MsvAvEOL SMBUtil.writeInt2(AvPair.MsvAvEOL, enc, pos); SMBUtil.writeInt2(0, enc, pos + 2); pos += 4; return enc; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.3K bytes - Viewed (0)