Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 46 for ReadUint8 (1.38 sec)

  1. src/main/java/jcifs/ntlmssp/av/AvTimestamp.java

            return data;
        }
    
        /**
         * Gets the timestamp value from this AV pair
         *
         * @return the timestamp
         */
        public long getTimestamp() {
            return SMBUtil.readInt8(getRaw(), 0);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            bufferIndex += 4;
            this.mid = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            if ((this.flags & SMB2_FLAGS_ASYNC_COMMAND) == SMB2_FLAGS_ASYNC_COMMAND) {
                // async
                this.async = true;
                this.asyncId = SMBUtil.readInt8(buffer, bufferIndex);
                bufferIndex += 8;
            } else {
                // sync
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

            bufferIndex += 8;
            this.changeTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
    
            this.allocationSize = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            this.endOfFile = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            this.fileAttributes = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            int bytesWritten = info.encode(buffer, 0);
    
            // Verify bytes written
            assertEquals(8, bytesWritten);
    
            // Verify encoded value
            long decodedValue = SMBUtil.readInt8(buffer, 0);
            assertEquals(endOfFile, decodedValue);
        }
    
        @Test
        @DisplayName("Test encode with offset")
        void testEncodeWithOffset() {
            long endOfFile = 0xFEDCBA9876543210L;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            assertEquals(0, SMBUtil.readInt4(buffer, 44));
    
            // Verify lease duration at offset 48 (44 + 4 for flags) - should be 0 (reserved)
            assertEquals(0, SMBUtil.readInt8(buffer, 48));
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java

         * @param bufferIndex starting index
         * @return decoded transform
         */
        public static Smb2RdmaTransform decode(byte[] buffer, int bufferIndex) {
            long offset = SMBUtil.readInt8(buffer, bufferIndex);
            int token = SMBUtil.readInt4(buffer, bufferIndex + 8);
            int length = SMBUtil.readInt4(buffer, bufferIndex + 12);
            return new Smb2RdmaTransform(offset, token, length);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

            bufferIndex += 2;
    
            // Read flags
            header.flags = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    
            // Read session ID
            header.sessionId = SMBUtil.readInt8(buffer, bufferIndex);
    
            return header;
        }
    
        /**
         * Get the associated data for AEAD encryption (everything except signature)
         *
         * @return byte array containing associated data
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  8. 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 64-bit integer value
         */
        public static long readInt8(final byte[] src, final int srcIndex) {
            return (readInt4(src, srcIndex) & 0xFFFFFFFFL) + ((long) readInt4(src, srcIndex + 4) << 32);
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

        @Test
        void testInt8ReadWrite() {
            byte[] buffer = new byte[8];
            long value = 0x123456789ABCDEF0L;
            ServerMessageBlock.writeInt8(value, buffer, 0);
            assertEquals(value, ServerMessageBlock.readInt8(buffer, 0));
        }
    
        @Test
        void testTimeReadWrite() {
            byte[] buffer = new byte[8];
            long time = System.currentTimeMillis();
            ServerMessageBlock.writeTime(time, buffer, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            // Verify directory-specific data
            assertEquals(DirectoryCacheScope.RECURSIVE_TREE.ordinal(), SMBUtil.readInt4(buffer, 56)); // CacheScope
            assertEquals(45000L, SMBUtil.readInt8(buffer, 60)); // MaxCacheAge
    
            // Verify flags (RECURSIVE_TREE + NOTIFICATIONS)
            int expectedFlags = DirectoryLeaseContext.DIRECTORY_LEASE_FLAG_RECURSIVE | DirectoryLeaseContext.DIRECTORY_LEASE_FLAG_NOTIFICATIONS;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top