- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 82 for readTime (0.29 sec)
-
src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java
e.fileIndex = readInt4(buffer, bufferIndex + 4); e.creationTime = readTime(buffer, bufferIndex + 8); // e.lastAccessTime = readTime( buffer, bufferIndex + 16 ); e.lastWriteTime = readTime(buffer, bufferIndex + 24); // e.changeTime = readTime( buffer, bufferIndex + 32 ); e.endOfFile = readInt8(buffer, bufferIndex + 40);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java
// Use SMBUtil to read times back properly assertEquals(TEST_CREATE_TIME, SMBUtil.readTime(buffer, dstIndex)); assertEquals(TEST_LAST_ACCESS_TIME, SMBUtil.readTime(buffer, dstIndex + 8)); assertEquals(TEST_LAST_WRITE_TIME, SMBUtil.readTime(buffer, dstIndex + 16)); assertEquals(TEST_CHANGE_TIME, SMBUtil.readTime(buffer, dstIndex + 24)); assertEquals(TEST_ATTRIBUTES, SMBUtil.readInt4(buffer, dstIndex + 32));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java
// Verify time was read correctly (accounting for UTime conversion) long readTime = (Long) getFieldValue(response, "lastWriteTime"); // UTime is seconds since 1970, so we need to compare at second precision assertEquals(lastWriteTime / 1000, readTime / 1000); } @Test void testReadParameterWordsWireFormatWithZeroWordCount() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java
bufferIndex += 4; server.sessionKey = readInt4(buffer, bufferIndex); bufferIndex += 4; server.capabilities = readInt4(buffer, bufferIndex); bufferIndex += 4; server.serverTime = readTime(buffer, bufferIndex); bufferIndex += 8; server.serverTimeZone = readInt2(buffer, bufferIndex); bufferIndex += 2; server.encryptionKeyLength = buffer[bufferIndex++] & 0xFF;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 6K bytes - Viewed (0) -
src/main/java/jcifs/internal/util/SMBUtil.java
* @param src the source byte array * @param srcIndex the starting index in the source array * @return the time value in milliseconds since January 1, 1970 UTC */ public static long readTime(final byte[] src, final int srcIndex) { final int low = readInt4(src, srcIndex); final int hi = readInt4(src, srcIndex + 4); long t = (long) hi << 32L | low & 0xFFFFFFFFL;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/smb2/nego/Smb2NegotiateResponse.java
throw new SMBProtocolDecodingException("Buffer too small for timestamps and offsets section"); } this.systemTime = SMBUtil.readTime(buffer, bufferIndex); bufferIndex += 8; this.serverStartTime = SMBUtil.readTime(buffer, bufferIndex); bufferIndex += 8; final int securityBufferOffset = SMBUtil.readInt2(buffer, bufferIndex);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
docs/smb3-features/05-rdma-smb-direct-design.md
try (InputStream is = file.getInputStream()) { is.read(readData); } long readTime = System.currentTimeMillis() - start; assertArrayEquals(data, readData); // RDMA should be faster than TCP for large transfers log.info("RDMA Write: {}ms, Read: {}ms", writeTime, readTime); } @Test public void testRdmaFallbackToTcp() throws Exception {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 35.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
FileBasicInfo decoded = new FileBasicInfo(); decoded.decode(buffer, 0, 36); // decode reads 36 bytes // Note: When encoding time 0, SMBUtil.writeTime writes 0 directly, // but SMBUtil.readTime interprets 0 as Jan 1, 1601 in Unix time (-11644473600000) // This is the expected behavior for Windows FILETIME long expectedTime = -11644473600000L; // Jan 1, 1601 in Unix time
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
dst[++dstIndex] = (byte) (val >>= 8); dst[++dstIndex] = (byte) (val >>= 8); dst[++dstIndex] = (byte) (val >>= 8); dst[++dstIndex] = (byte) (val >> 8); } static long readTime(final byte[] src, final int srcIndex) { final int low = readInt4(src, srcIndex); final int hi = readInt4(src, srcIndex + 4); final long t = (long) hi << 32L | low & 0xFFFFFFFFL;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.7K bytes - Viewed (0)