- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 234 for writeInt4 (0.14 sec)
-
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/util/SMBUtil.java
* @param val the value to write * @param dst the destination byte array * @param dstIndex the starting index in the destination array */ public static void writeInt4(long val, final byte[] dst, int dstIndex) { dst[dstIndex] = (byte) val; dstIndex++; dst[dstIndex] = (byte) (val >>= 8); dst[++dstIndex] = (byte) (val >>= 8); dst[++dstIndex] = (byte) (val >> 8); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/DurableHandleRequest.java
// Write context header SMBUtil.writeInt4(0, dst, dstIndex); // Next (offset to next context, 0 for last) dstIndex += 4; SMBUtil.writeInt2(16, dst, dstIndex); // NameOffset (from start of context) dstIndex += 2; SMBUtil.writeInt2(4, dst, dstIndex); // NameLength dstIndex += 2; SMBUtil.writeInt2(0, dst, dstIndex); // Reserved dstIndex += 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java
final int start = dstIndex; SMBUtil.writeInt2(36, dst, dstIndex); SMBUtil.writeInt2(this.dialects.length, dst, dstIndex + 2); dstIndex += 4; SMBUtil.writeInt2(this.securityMode, dst, dstIndex); SMBUtil.writeInt2(0, dst, dstIndex + 2); // Reserved dstIndex += 4; SMBUtil.writeInt4(this.capabilities, dst, dstIndex); dstIndex += 4;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
// status (2 bytes) SMBUtil.writeInt2(0, buffer, bufferIndex); bufferIndex += 2; // converter (2 bytes) SMBUtil.writeInt2(100, buffer, bufferIndex); bufferIndex += 2; // numEntries (2 bytes) SMBUtil.writeInt2(3, buffer, bufferIndex); bufferIndex += 2; // totalAvailableEntries (2 bytes) SMBUtil.writeInt2(5, buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupRequest.java
final int start = dstIndex; SMBUtil.writeInt2(25, dst, dstIndex); dst[dstIndex + 2] = (byte) (this.sessionBinding ? 0x1 : 0); dst[dstIndex + 3] = (byte) this.securityMode; dstIndex += 4; SMBUtil.writeInt4(this.capabilities, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4(0, dst, dstIndex); // Channel dstIndex += 4;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/DurableHandleReconnect.java
// Write context header SMBUtil.writeInt4(0, dst, dstIndex); // Next (offset to next context, 0 for last) dstIndex += 4; SMBUtil.writeInt2(16, dst, dstIndex); // NameOffset (from start of context) dstIndex += 2; SMBUtil.writeInt2(4, dst, dstIndex); // NameLength dstIndex += 2; SMBUtil.writeInt2(0, dst, dstIndex); // Reserved dstIndex += 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
byte[] buffer = new byte[100]; // Write non-aligned next entry offset (not divisible by 4) SMBUtil.writeInt4(7, buffer, 0); // 7 is not aligned to 4 bytes SMBUtil.writeInt4(FileNotifyInformation.FILE_ACTION_ADDED, buffer, 4); SMBUtil.writeInt4(8, buffer, 8); // file name length assertThrows(SMBProtocolDecodingException.class, () -> {
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/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 buffer
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 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)