Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 232 for writeInt2 (0.04 sec)

  1. src/main/java/jcifs/internal/fscc/FileStandardInfo.java

         */
        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt8(this.allocationSize, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt8(this.endOfFile, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt4(this.numberOfLinks, dst, dstIndex);
            dstIndex += 4;
            dst[dstIndex] = (byte) (this.deletePending ? 1 : 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunk.java

         */
        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt8(this.sourceOffset, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt8(this.targetOffset, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt4(this.length, dst, dstIndex);
            dstIndex += 4;
            dstIndex += 4; // reserved
            return dstIndex - start;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java

         * @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
         *
         * @param buffer source buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/fscc/FsctlPipeWaitRequest.java

         * @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);
            dstIndex++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java

    public class AvTimestampTest {
    
        /**
         * Test constructor with raw bytes.
         */
        @Test
        public void testConstructorWithRawBytes() {
            byte[] rawBytes = new byte[8];
            SMBUtil.writeInt8(1234567890L, rawBytes, 0); // Example timestamp
            AvTimestamp avTimestamp = new AvTimestamp(rawBytes);
    
            assertNotNull(avTimestamp);
            assertEquals(AvPair.MsvAvTimestamp, avTimestamp.getType());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java

            // totalParameterCount = 10
            writeInt4(10, buffer, bufferIndex);
            bufferIndex += 4;
            // totalDataCount = 20
            writeInt4(20, buffer, bufferIndex);
            bufferIndex += 4;
            // parameterCount = 5
            writeInt4(5, buffer, bufferIndex);
            bufferIndex += 4;
            // parameterOffset = 30
            writeInt4(30, buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top