- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 232 for writeInt2 (0.59 sec)
-
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/internal/smb1/trans2/Trans2SetFileInformation.java
final int start = dstIndex; SMBUtil.writeInt2(this.fid, dst, dstIndex); dstIndex += 2; SMBUtil.writeInt2(Trans2QueryPathInformation.mapInformationLevel(this.info.getFileInformationLevel()), dst, dstIndex); dstIndex += 2; SMBUtil.writeInt2(0, dst, dstIndex); dstIndex += 2; return dstIndex - start; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
// Write minimal header SMBUtil.writeInt4(0, buffer, 0); // Next SMBUtil.writeInt2(16, buffer, 4); // NameOffset SMBUtil.writeInt2(4, buffer, 6); // NameLength SMBUtil.writeInt2(0, buffer, 8); // Reserved SMBUtil.writeInt2(24, buffer, 10); // DataOffset SMBUtil.writeInt4(32, buffer, 12); // DataLength (standard lease only) // Write name
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K 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/test/java/jcifs/ntlmssp/av/AvPairsTest.java
byte[] result = new byte[4 + data.length]; SMBUtil.writeInt2(avId, result, 0); SMBUtil.writeInt2(data.length, result, 2); System.arraycopy(data, 0, result, 4, data.length); return result; } private byte[] createEolData() { byte[] result = new byte[4]; SMBUtil.writeInt2(AvPair.MsvAvEOL, result, 0); SMBUtil.writeInt2(0, result, 2); return result; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2FindNext2.java
final int start = dstIndex; SMBUtil.writeInt2(this.sid, dst, dstIndex); dstIndex += 2; SMBUtil.writeInt2(this.maxItems, dst, dstIndex); dstIndex += 2; SMBUtil.writeInt2(this.informationLevel, dst, dstIndex); dstIndex += 2; SMBUtil.writeInt4(this.resumeKey, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt2(this.tflags, dst, dstIndex); dstIndex += 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K 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) -
src/main/java/jcifs/internal/smb2/create/Smb2CloseRequest.java
*/ @Override protected int writeBytesWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt2(24, dst, dstIndex); SMBUtil.writeInt2(this.closeFlags, dst, dstIndex + 2); dstIndex += 4; dstIndex += 4; // Reserved System.arraycopy(this.fileId, 0, dst, dstIndex, 16); dstIndex += 16;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java
byte[] buffer = new byte[32]; // Mock data for FsFullSizeInformation writeInt8(3000, buffer, 0); // total allocation units writeInt8(1500, buffer, 8); // caller available allocation units writeInt8(1500, buffer, 16); // actual free units (skipped) writeInt4(4, buffer, 24); // sectors per allocation unit writeInt4(8192, buffer, 28); // bytes per sector
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
setPrivateField(cmd, "maxReferralLevel", 0x12AB); byte[] buffer = new byte[100]; int len = cmd.writeParametersWireFormat(buffer, 0); assertTrue(len >= 2); // writeInt2 writes in little-endian format (LSB first) assertEquals(0xAB, buffer[0] & 0xFF); assertEquals(0x12, buffer[1] & 0xFF); // Check that the path is written after the referral level
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0)