- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for writeUTime (0.09 sec)
-
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
assertTrue(result.contains("0102030405060708090A0B0C0D0E0F10")); } @Test @DisplayName("Test writeUTime with zero time") void testWriteUTimeWithZeroTime() { byte[] dst = new byte[4]; SMB1SigningDigest.writeUTime(mockConfig, 0L, dst, 0); assertEquals((byte) 0xFF, dst[0]); assertEquals((byte) 0xFF, dst[1]);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComClose.java
command = SMB_COM_CLOSE; } @Override int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) { writeInt2(fid, dst, dstIndex); dstIndex += 2; writeUTime(lastWriteTime, dst, dstIndex); return 6; } @Override int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } @OverrideRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSetInformation.java
protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt2(this.fileAttributes, dst, dstIndex); dstIndex += 2; SMBUtil.writeUTime(this.lastWriteTime, dst, dstIndex); dstIndex += 4; // reserved dstIndex += 10; return dstIndex - start; } @Override
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComClose.java
protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) { SMBUtil.writeInt2(this.fid, dst, dstIndex); dstIndex += 2; if (this.digest != null) { SMB1SigningDigest.writeUTime(getConfig(), this.lastWriteTime, dst, dstIndex); } else { log.trace("SmbComClose without a digest"); } return 6; } @Override
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
assertEquals(6, bytesWritten); assertEquals(fid, SMBUtil.readInt2(dst, 0)); // With a digest, the lastWriteTime should be written. // We can't verify the exact bytes without a real implementation of writeUTime, // but we can check that it's not zero. long writtenTime = SMBUtil.readInt4(dst, 2) & 0xFFFFFFFFL; // This is a weak check, but better than nothing.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/util/SMBUtil.java
* @param t the time value in milliseconds since January 1, 1970 UTC * @param dst the destination byte array * @param dstIndex the starting index in the destination array */ public static void writeUTime(final long t, final byte[] dst, final int dstIndex) { writeInt4(t / 1000, dst, dstIndex); } /** * SMB1 protocol header template with magic number 0xFF 'SMB' */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java
* @param dst * The destination byte array * @param dstIndex * The starting index in the destination array */ public static void writeUTime(final Configuration cfg, long t, final byte[] dst, final int dstIndex) { if (t == 0L || t == 0xFFFFFFFFFFFFFFFFL) { SMBUtil.writeInt4(0xFFFFFFFF, dst, dstIndex); return; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
return readInt4(buffer, bufferIndex) * 1000L; } static void writeUTime(long t, final byte[] dst, final int dstIndex) { if (t == 0L || t == 0xFFFFFFFFFFFFFFFFL) { writeInt4(0xFFFFFFFF, dst, dstIndex); return; } synchronized (TZ) { if (TZ.inDaylightTime(new Date())) { // in DST
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
long maxTime = System.currentTimeMillis() + 1000000000000L; SMBUtil.writeTime(maxTime, buffer, 8); // creationTime SMBUtil.writeTime(maxTime, buffer, 16); // lastAccessTime SMBUtil.writeTime(maxTime, buffer, 24); // lastWriteTime SMBUtil.writeTime(maxTime, buffer, 32); // changeTime SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 40); // endOfFile
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java
// Use SMBUtil to properly encode times in Windows FILETIME format SMBUtil.writeTime(TEST_CREATE_TIME, buffer, bufferIndex); SMBUtil.writeTime(TEST_LAST_ACCESS_TIME, buffer, bufferIndex + 8); SMBUtil.writeTime(TEST_LAST_WRITE_TIME, buffer, bufferIndex + 16); SMBUtil.writeTime(TEST_CHANGE_TIME, buffer, bufferIndex + 24); SMBUtil.writeInt4(TEST_ATTRIBUTES, buffer, bufferIndex + 32);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13K bytes - Viewed (0)