Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 286 for dstIndex (0.04 sec)

  1. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            }
    
            @Override
            int writeParameterWordsWireFormat(byte[] dst, int dstIndex) {
                System.arraycopy(paramWords, 0, dst, dstIndex, paramWords.length);
                return paramWords.length;
            }
    
            @Override
            int writeBytesWireFormat(byte[] dst, int dstIndex) {
                System.arraycopy(bytes, 0, dst, dstIndex, bytes.length);
                return bytes.length;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/com/SmbComSetInformation.java

        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt2(this.fileAttributes, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeUTime(this.lastWriteTime, dst, dstIndex);
            dstIndex += 4;
            // reserved
            dstIndex += 10;
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/Smb2LeaseKey.java

        }
    
        /**
         * Write the lease key to a buffer
         *
         * @param dst destination buffer
         * @param dstIndex starting index in destination buffer
         */
        public void encode(byte[] dst, int dstIndex) {
            System.arraycopy(key, 0, dst, dstIndex, LEASE_KEY_SIZE);
        }
    
        /**
         * Check if this is a zero key (all bytes are zero)
         *
         * @return true if all bytes are zero
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

         * just recursivly call writeAndXWireFormat.
         */
    
        @Override
        int encode(final byte[] dst, int dstIndex) {
            final int start = headerStart = dstIndex;
    
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            dstIndex += writeAndXWireFormat(dst, dstIndex);
            length = dstIndex - start;
    
            if (digest != null) {
                digest.sign(dst, headerStart, length, this, response);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComReadAndX.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt4(this.offset, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt2(this.maxCount, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.minCount, dst, dstIndex);
            dstIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/NetShareEnum.java

                return 0;
            }
    
            writeInt2(NET_SHARE_ENUM, dst, dstIndex);
            dstIndex += 2;
            System.arraycopy(descr, 0, dst, dstIndex, descr.length);
            dstIndex += descr.length;
            writeInt2(0x0001, dst, dstIndex);
            dstIndex += 2;
            writeInt2(maxDataCount, dst, dstIndex);
            dstIndex += 2;
    
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequest.java

            final int start = dstIndex;
            SMBUtil.writeInt2(9, dst, dstIndex);
            SMBUtil.writeInt2(this.treeFlags, dst, dstIndex + 2);
            dstIndex += 4;
    
            final byte[] data = this.path.getBytes(StandardCharsets.UTF_16LE);
            final int offsetOffset = dstIndex;
            SMBUtil.writeInt2(data.length, dst, dstIndex + 2);
            dstIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDesc.java

        int writeSetupWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        int writeParametersWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            writeInt2(fid, dst, dstIndex);
            dstIndex += 2;
            dst[dstIndex] = (byte) 0x00; // Reserved
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00; // Reserved
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

            byte[] dst = new byte[256];
            int dstIndex = 0;
    
            // When
            int bytesWritten = trans2GetDfsReferral.writeParametersWireFormat(dst, dstIndex);
    
            // Then
            assertEquals(10, bytesWritten);
            verify(mockRequest, times(1)).encode(dst, dstIndex);
        }
    
        @Test
        @DisplayName("writeDataWireFormat should always return 0")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/lock/Smb2LockRequest.java

        protected int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt2(48, dst, dstIndex);
            SMBUtil.writeInt2(this.locks.length, dst, dstIndex + 2);
            dstIndex += 4;
            SMBUtil.writeInt4((this.lockSequenceNumber & 0xF) << 28 | this.lockSequenceIndex & 0x0FFFFFFF, dst, dstIndex);
            dstIndex += 4;
            System.arraycopy(this.fileId, 0, dst, dstIndex, 16);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
Back to top