Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 57 for WriteUint8 (0.56 sec)

  1. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakAcknowledgment.java

            // LeaseState (4 bytes)
            SMBUtil.writeInt4(leaseState, dst, dstIndex);
            dstIndex += 4;
    
            // LeaseDuration (8 bytes) - must be zero for acknowledgment
            SMBUtil.writeInt8(0, dst, dstIndex);
            dstIndex += 8;
    
            return dstIndex - start;
        }
    
        @Override
        protected int readBytesWireFormat(byte[] buffer, int bufferIndex) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/ntlmssp/av/AvTimestamp.java

            this(encode(ts));
        }
    
        /**
         * @param ts
         * @return
         */
        private static byte[] encode(final long ts) {
            final byte[] data = new byte[8];
            SMBUtil.writeInt8(ts, data, 0);
            return data;
        }
    
        /**
         * Gets the timestamp value from this AV pair
         *
         * @return the timestamp
         */
        public long getTimestamp() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java

            dstIndex += 4;
    
            SMBUtil.writeInt4(leaseFlags, dst, dstIndex); // LeaseFlags (4 bytes)
            dstIndex += 4;
    
            SMBUtil.writeInt8(0, dst, dstIndex); // LeaseDuration (8 bytes) - reserved, must be zero
            dstIndex += 8;
    
            return dstIndex - start;
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextRequest.java

            dstIndex += 4;
    
            SMBUtil.writeInt4(leaseFlags, dst, dstIndex); // LeaseFlags (4 bytes)
            dstIndex += 4;
    
            SMBUtil.writeInt8(0, dst, dstIndex); // LeaseDuration (8 bytes) - reserved, must be zero
            dstIndex += 8;
    
            parentLeaseKey.encode(dst, dstIndex); // ParentLeaseKey (16 bytes)
            dstIndex += 16;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java

            offset += 4;
    
            SMBUtil.writeInt8(0, buffer, offset); // LeaseDuration (8 bytes) - reserved
            offset += 8;
    
            // Write directory-specific data (20 bytes)
    
            // CacheScope (4 bytes)
            SMBUtil.writeInt4(cacheScope.ordinal(), buffer, offset);
            offset += 4;
    
            // MaxCacheAge (8 bytes)
            SMBUtil.writeInt8(maxCacheAge, buffer, offset);
            offset += 8;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Request.java

            dstIndex += 4;
    
            SMBUtil.writeInt4(flags, dst, dstIndex); // Flags (4 bytes)
            dstIndex += 4;
    
            SMBUtil.writeInt8(0, dst, dstIndex); // Reserved (8 bytes)
            dstIndex += 8;
    
            System.arraycopy(createGuid.toBytes(), 0, dst, dstIndex, 16); // CreateGuid (16 bytes)
            dstIndex += 16;
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/fscc/FsctlPipeWaitRequest.java

         * {@inheritDoc}
         *
         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt8(this.timeout, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt4(this.nameBytes.length, dst, dstIndex);
            dstIndex += 4;
    
            dst[dstIndex] = (byte) (this.timeoutSpecified ? 0x1 : 0x0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java

         *
         * @param dst destination buffer
         * @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
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            SMBUtil.writeInt2(command, buf, start + 12);
            // Flags at +16: server-to-redirector
            SMBUtil.writeInt4(0x00000001, buf, start + 16);
            // SessionId at +40 (sync header)
            SMBUtil.writeInt8(sessionId, buf, start + 40);
        }
    
        /**
         * Build a SESSION_SETUP response body with specified flags and security blob.
         * securityBufferOffset is set relative to header start.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  10. 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];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top