Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 55 for WriteUint8 (0.05 sec)

  1. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

        }
    
        static long readInt8(final byte[] src, final int srcIndex) {
            return (readInt4(src, srcIndex) & 0xFFFFFFFFL) + ((long) readInt4(src, srcIndex + 4) << 32);
        }
    
        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: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

            dstIndex += 4;
            writeInt4(rootDirectoryFid, dst, dstIndex);
            dstIndex += 4;
            writeInt4(desiredAccess, dst, dstIndex);
            dstIndex += 4;
            writeInt8(allocationSize, dst, dstIndex);
            dstIndex += 8;
            writeInt4(extFileAttributes, dst, dstIndex);
            dstIndex += 4;
            writeInt4(shareAccess, dst, dstIndex);
            dstIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. docs/smb3-features/01-smb3-lease-design.md

            writeInt4(buffer, dataOffset + 16, leaseState);  // LeaseState
            writeInt4(buffer, dataOffset + 20, leaseFlags);  // LeaseFlags
            writeInt8(buffer, dataOffset + 24, leaseDuration);  // LeaseDuration
            
            if (isV2()) {
                System.arraycopy(parentLeaseKey.getKey(), 0, buffer, dataOffset + 32, 16);  // ParentLeaseKey
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/trans2/Trans2SetFileInformation.java

        protected int writeDataWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += this.info.encode(dst, dstIndex);
    
            /* 6 zeros observed with NT */
            SMBUtil.writeInt8(0L, dst, dstIndex);
            dstIndex += 6;
    
            /*
             * Also observed 4 byte alignment but we stick
             * with the default for jCIFS which is 2
             */
    
            return dstIndex - start;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupRequest.java

            dstIndex += 4;
    
            final int offsetOffset = dstIndex;
            dstIndex += 2;
            SMBUtil.writeInt2(this.token != null ? this.token.length : 0, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt8(this.previousSessionId, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, offsetOffset);
    
            dstIndex += pad8(dstIndex);
    
            if (this.token != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                // Set up async message fields
                SMBUtil.writeInt4(ServerMessageBlock2.SMB2_FLAGS_ASYNC_COMMAND, buffer, 16); // flags with async
                SMBUtil.writeInt8(789L, buffer, 32); // async ID
                SMBUtil.writeInt8(456L, buffer, 40); // session ID
                return buffer;
            }
    
            private byte[] createErrorResponseMessage() {
                byte[] buffer = new byte[256];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

            // if SMB 3.11 support negotiateContextOffset/negotiateContextCount
            int negotitateContextOffsetOffset = 0;
            if (this.negotiateContexts == null || this.negotiateContexts.length == 0) {
                SMBUtil.writeInt8(0, dst, dstIndex);
            } else {
                negotitateContextOffsetOffset = dstIndex;
                SMBUtil.writeInt2(this.negotiateContexts.length, dst, dstIndex + 4);
                SMBUtil.writeInt2(0, dst, dstIndex + 6);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

            dstIndex += 4;
            SMBUtil.writeInt4(this.rootDirectoryFid, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt4(this.desiredAccess, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt8(this.allocationSize, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt4(this.extFileAttributes, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt4(this.shareAccess, dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. docs/smb3-features/02-persistent-handles-design.md

            
            // Data
            int dataOffset = offset + 16 + nameLen;
            dataOffset = (dataOffset + 7) & ~7;  // 8-byte alignment
            
            writeInt8(buffer, dataOffset, timeout);  // Timeout
            writeInt4(buffer, dataOffset + 8, flags);  // Flags
            writeInt8(buffer, dataOffset + 12, 0);  // Reserved
            System.arraycopy(createGuid.toBytes(), 0, buffer, dataOffset + 20, 16);  // CreateGuid
        }
    }
    ```
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/io/Smb2WriteRequest.java

            SMBUtil.writeInt2(49, dst, dstIndex);
            final int dataOffsetOffset = dstIndex + 2;
            dstIndex += 4;
            SMBUtil.writeInt4(this.dataLength, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt8(this.offset, dst, dstIndex);
            dstIndex += 8;
            System.arraycopy(this.fileId, 0, dst, dstIndex, 16);
            dstIndex += 16;
            SMBUtil.writeInt4(this.channel, dst, dstIndex);
            dstIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top