Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 249 for writeInt (0.57 sec)

  1. src/main/java/jcifs/smb1/netbios/SessionServicePacket.java

        static final int MAX_MESSAGE_SIZE = 0x0001FFFF;
        static final int HEADER_LENGTH = 4;
    
        static void writeInt2(final int val, final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) (val >> 8 & 0xFF);
            dstIndex++;
            dst[dstIndex] = (byte) (val & 0xFF);
        }
    
        static void writeInt4(final int val, final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) (val >> 24 & 0xFF);
            dstIndex++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChange.java

        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt4(this.completionFilter, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
            dstIndex += 2;
            dst[dstIndex] = this.watchTree ? (byte) 0x01 : (byte) 0x00; // watchTree
            dstIndex++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. docs/smb3-features/04-directory-leasing-design.md

            int dataOffset = offset + getStandardLeaseSize();
            
            // CacheScope (4 bytes)
            writeInt4(buffer, dataOffset, cacheScope.ordinal());
            dataOffset += 4;
            
            // MaxCacheAge (8 bytes)
            writeInt8(buffer, dataOffset, maxCacheAge);
            dataOffset += 8;
            
            // Flags (4 bytes)
            int flags = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                // Given
                byte[] buffer = new byte[10];
                int bufferIndex = 0;
                SMBUtil.writeInt2(4, buffer, bufferIndex); // Write structure size = 4
                SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved field
    
                // When
                int bytesRead = response.readBytesWireFormat(buffer, bufferIndex);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  5. docs/smb3-features/05-rdma-smb-direct-design.md

        
        if (rdmaChannelInfo != null) {
            // Add RDMA read channel info
            writeInt4(dst, dstIndex + written, rdmaChannelInfo.getRemoteKey());
            written += 4;
            writeInt8(dst, dstIndex + written, rdmaChannelInfo.getAddress());
            written += 8;
            writeInt4(dst, dstIndex + written, rdmaChannelInfo.getLength());
            written += 4;
        }
        
        return written;
    }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 35.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            SMBUtil.writeInt2(3, buffer, 8);
    
            // Size (2 bytes) - the size of this referral entry
            SMBUtil.writeInt2(20, buffer, 10);
    
            // Server type (2 bytes)
            SMBUtil.writeInt2(1, buffer, 12);
    
            // Referral flags (2 bytes)
            SMBUtil.writeInt2(0, buffer, 14);
    
            // Proximity (2 bytes for v3)
            SMBUtil.writeInt2(0, buffer, 16);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java

                int bufferIndex = 0;
                bufferIndex += 2; // reserved
                writeInt2(dataCompactionMode, buffer, bufferIndex);
                bufferIndex += 2;
                bufferIndex += 2; // reserved
                writeInt2(dataLength, buffer, bufferIndex);
                bufferIndex += 2;
                writeInt2(dataOffset, buffer, bufferIndex);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

            @DisplayName("Should decode multiple ciphers correctly")
            void testDecodeMultipleCiphers() throws SMBProtocolDecodingException {
                SMBUtil.writeInt2(2, buffer, 0);
                SMBUtil.writeInt2(EncryptionNegotiateContext.CIPHER_AES128_CCM, buffer, 2);
                SMBUtil.writeInt2(EncryptionNegotiateContext.CIPHER_AES128_GCM, buffer, 4);
    
                EncryptionNegotiateContext context = new EncryptionNegotiateContext();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                byte[] data = new byte[128];
                // Initialize the data buffer with proper SMB2 header structure
                SMBUtil.writeInt4(0xFE534D42, data, 0); // SMB2 signature
                SMBUtil.writeInt4(0x0000, data, 12); // Command = 0
                SMBUtil.writeInt4(0x0000, data, 16); // Flags = 0
    
                CommonServerMessageBlock request = mock(CommonServerMessageBlock.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java

            buffer[bufferIndex + 2] = 0x00;
    
            SMBUtil.writeInt4(totalParams, buffer, bufferIndex + 3);
            SMBUtil.writeInt4(totalData, buffer, bufferIndex + 7);
            SMBUtil.writeInt4(paramCount, buffer, bufferIndex + 11);
            SMBUtil.writeInt4(paramOffset, buffer, bufferIndex + 15);
            SMBUtil.writeInt4(paramDisp, buffer, bufferIndex + 19);
            SMBUtil.writeInt4(dataCount, buffer, bufferIndex + 23);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.3K bytes
    - Viewed (0)
Back to top