Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 161 for readInt2 (0.31 sec)

  1. src/main/java/jcifs/internal/smb2/io/Smb2ReadResponse.java

            }
    
            short dataOffset = buffer[ bufferIndex + 2 ];
            bufferIndex += 4;
            this.dataLength = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            this.dataRemaining = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            bufferIndex += 4; // Reserved2
    
            int dataStart = getHeaderStart() + dataOffset;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 07:13:17 UTC 2018
    - 3.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponse.java

         */
        @Override
        protected int readBytesWireFormat ( byte[] buffer, int bufferIndex ) throws SMBProtocolDecodingException {
            int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if ( structureSize != 4 ) {
                throw new SMBProtocolDecodingException("Structure size != 4");
            }
    
            return 4;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/io/Smb2WriteResponse.java

            int start = bufferIndex;
            int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if ( structureSize != 17 ) {
                throw new SMBProtocolDecodingException("Expected structureSize = 17");
            }
            bufferIndex += 4;
    
            this.count = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            this.remaining = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                 * these fields are common to all andx commands
                 * so let's populate them here
                 */
    
                this.andxCommand = buffer[ bufferIndex ];
                this.andxOffset = SMBUtil.readInt2(buffer, bufferIndex + 2);
    
                if ( this.andxOffset == 0 ) { /* Snap server workaround */
                    this.andxCommand = (byte) 0xFF;
                }
    
                /*
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Nov 28 10:56:27 UTC 2022
    - 14.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComQueryInformationResponse.java

            if ( this.wordCount == 0 ) {
                return 0;
            }
            this.fileAttributes = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.lastWriteTime = SMBUtil.readUTime(buffer, bufferIndex);
            bufferIndex += 4;
            this.fileSize = SMBUtil.readInt4(buffer, bufferIndex);
            return 20;
        }
    
    
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/ntlmssp/av/AvPairs.java

            List<AvPair> pairs = new LinkedList<>();
            int pos = 0;
            boolean foundEnd = false;
            while ( pos + 4 <= data.length ) {
                int avId = SMBUtil.readInt2(data, pos);
                int avLen = SMBUtil.readInt2(data, pos + 2);
                pos += 4;
    
                if ( avId == AvPair.MsvAvEOL ) {
                    if ( avLen != 0 ) {
                        throw new CIFSException("Invalid avLen for AvEOL");
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComWriteAndXResponse.java

            return 0;
        }
        int writeBytesWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int readParameterWordsWireFormat( byte[] buffer, int bufferIndex ) {
            count = readInt2( buffer, bufferIndex ) & 0xFFFFL;
            return 8;
        }
        int readBytesWireFormat( byte[] buffer, int bufferIndex ) {
            return 0;
        }
        public String toString() {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotification.java

         */
        @Override
        protected int readBytesWireFormat ( byte[] buffer, int bufferIndex ) throws SMBProtocolDecodingException {
            int start = bufferIndex;
            int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if ( structureSize != 24 ) {
                throw new SMBProtocolDecodingException("Expected structureSize = 24");
            }
    
            this.oplockLevel = buffer[ bufferIndex + 2 ];
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComWriteResponse.java

            return 0;
        }
        int writeBytesWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int readParameterWordsWireFormat( byte[] buffer, int bufferIndex ) {
            count = readInt2( buffer, bufferIndex ) & 0xFFFFL;
            return 8;
        }
        int readBytesWireFormat( byte[] buffer, int bufferIndex ) {
            return 0;
        }
        public String toString() {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

                /*
                 * these fields are common to all andx commands
                 * so let's populate them here
                 */
    
                andxCommand = buffer[bufferIndex];
                andxOffset = readInt2( buffer, bufferIndex + 2 );
    
                if( andxOffset == 0 ) { /* Snap server workaround */
                    andxCommand = (byte)0xFF;
                }
    
                /*
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 11.3K bytes
    - Viewed (0)
Back to top