Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 242 for writeInt2 (0.06 seconds)

  1. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            long lastWriteTime = System.currentTimeMillis();
            int fileSize = 12345678;
    
            SMBUtil.writeInt2(fileAttributes, buffer, bufferIndex);
            SMBUtil.writeUTime(lastWriteTime, buffer, bufferIndex + 2);
            SMBUtil.writeInt4(fileSize, buffer, bufferIndex + 6);
    
            // Read the data
            int bytesRead = response.readParameterWordsWireFormat(buffer, bufferIndex);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java

        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt2(this.ciphers != null ? this.ciphers.length : 0, dst, dstIndex);
            dstIndex += 2;
    
            if (this.ciphers != null) {
                for (final int cipher : this.ciphers) {
                    SMBUtil.writeInt2(cipher, dst, dstIndex);
                    dstIndex += 2;
                }
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb1/trans2/Trans2FindNext2.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.sid, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.maxItems, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.informationLevel, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt4(this.resumeKey, dst, dstIndex);
            dstIndex += 4;
            SMBUtil.writeInt2(this.tflags, dst, dstIndex);
            dstIndex += 2;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/ntlmssp/av/AvPairs.java

                final byte[] raw = p.getRaw();
                SMBUtil.writeInt2(p.getType(), enc, pos);
                SMBUtil.writeInt2(raw.length, enc, pos + 2);
                System.arraycopy(raw, 0, enc, pos + 4, raw.length);
                pos += 4 + raw.length;
            }
    
            // MsvAvEOL
            SMBUtil.writeInt2(AvPair.MsvAvEOL, enc, pos);
            SMBUtil.writeInt2(0, enc, pos + 2);
            pos += 4;
            return enc;
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb1/trans2/Trans2SetFileInformation.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(Trans2QueryPathInformation.mapInformationLevel(this.info.getFileInformationLevel()), dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(0, dst, dstIndex);
            dstIndex += 2;
    
            return dstIndex - start;
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.hashAlgos != null ? this.hashAlgos.length : 0, dst, dstIndex);
            SMBUtil.writeInt2(this.salt != null ? this.salt.length : 0, dst, dstIndex + 2);
            dstIndex += 4;
    
            if (this.hashAlgos != null) {
                for (final int hashAlgo : this.hashAlgos) {
                    SMBUtil.writeInt2(hashAlgo, dst, dstIndex);
                    dstIndex += 2;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java

            if (this.largeFile) {
                SMBUtil.writeInt2(this.pid, dst, dstIndex);
                SMBUtil.writeInt4(this.byteOffset >> 32, dst, dstIndex + 4);
                SMBUtil.writeInt4(this.byteOffset & 0xFFFFFFFF, dst, dstIndex + 8);
                SMBUtil.writeInt4(this.lengthInBytes >> 32, dst, dstIndex + 12);
                SMBUtil.writeInt4(this.lengthInBytes & 0xFFFFFFFF, dst, dstIndex + 16);
                return 20;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  8. 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;
            SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, offsetOffset);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            // Write minimal header
            SMBUtil.writeInt4(0, buffer, 0); // Next
            SMBUtil.writeInt2(16, buffer, 4); // NameOffset
            SMBUtil.writeInt2(4, buffer, 6); // NameLength
            SMBUtil.writeInt2(0, buffer, 8); // Reserved
            SMBUtil.writeInt2(24, buffer, 10); // DataOffset
            SMBUtil.writeInt4(32, buffer, 12); // DataLength (standard lease only)
    
            // Write name
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/create/Smb2CloseRequest.java

         */
        @Override
        protected int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            SMBUtil.writeInt2(24, dst, dstIndex);
            SMBUtil.writeInt2(this.closeFlags, dst, dstIndex + 2);
            dstIndex += 4;
            dstIndex += 4; // Reserved
            System.arraycopy(this.fileId, 0, dst, dstIndex, 16);
            dstIndex += 16;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.6K bytes
    - Click Count (0)
Back to Top