Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 55 for WriteUint8 (0.07 sec)

  1. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

            dstIndex += 2;
    
            // Flags (2 bytes)
            SMBUtil.writeInt2(this.flags, dst, dstIndex);
            dstIndex += 2;
    
            // Session ID (8 bytes)
            SMBUtil.writeInt8(this.sessionId, dst, dstIndex);
            dstIndex += 8;
    
            return dstIndex - start;
        }
    
        /**
         * Decode a transform header from byte array
         *
         * @param buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  2. 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 writeInt8(long val, final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) val;
            dstIndex++;
            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)
  3. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

            SMBUtil.writeInt4(this.nextCommand, dst, dstIndex + 20);
            SMBUtil.writeInt8(this.mid, dst, dstIndex + 24);
    
            if (this.async) {
                SMBUtil.writeInt8(this.asyncId, dst, dstIndex + 32);
            } else {
                // 4 reserved
                SMBUtil.writeInt4(this.treeId, dst, dstIndex + 36);
            }
            SMBUtil.writeInt8(this.sessionId, dst, dstIndex + 40);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            dst[dstIndex + 3] = (byte) (val >> 24);
        }
    
        private void writeInt8(long val, byte[] dst, int dstIndex) {
            writeInt4((int) (val & 0xFFFFFFFFL), dst, dstIndex);
            writeInt4((int) (val >> 32), dst, dstIndex + 4);
        }
    
        private void writeTime(long t, byte[] dst, int dstIndex) {
            writeInt8(t, dst, dstIndex);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/fscc/FileEndOfFileInformation.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
        public int encode(final byte[] dst, final int dstIndex) {
            SMBUtil.writeInt8(this.endOfFile, dst, dstIndex);
            return 8;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/fscc/FileInternalInfo.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
        public int encode(final byte[] dst, final int dstIndex) {
            SMBUtil.writeInt8(this.indexNumber, dst, dstIndex);
            return 8;
        }
    
        @Override
        public String toString() {
            return ("SmbQueryFileInternalInfo[" + "indexNumber=" + this.indexNumber + "]");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            // CreationTime
            SMBUtil.writeInt8(0, buffer, dataOffset + 8);
            // LastAccessTime
            SMBUtil.writeInt8(0, buffer, dataOffset + 16);
            // LastWriteTime
            SMBUtil.writeInt8(0, buffer, dataOffset + 24);
            // ChangeTime
            SMBUtil.writeInt8(0, buffer, dataOffset + 32);
            // EndOfFile
            SMBUtil.writeInt8(0, buffer, dataOffset + 40);
            // AllocationSize
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            SMBUtil.writeTime(mtime, body, i); // LastWriteTime
            i += 8;
            SMBUtil.writeTime(chtime, body, i); // ChangeTime
            i += 8;
    
            SMBUtil.writeInt8(allocSize, body, i); // AllocationSize
            i += 8;
            SMBUtil.writeInt8(eof, body, i); // EndOfFile
            i += 8;
    
            SMBUtil.writeInt4(attrs, body, i); // FileAttributes
            i += 4;
            i += 4; // Reserved2
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
Back to top