Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for pos (0.16 sec)

  1. 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 ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/ntlmssp/Type2Message.java

            pos += 8;
    
            if ( getFlag(NTLMSSP_NEGOTIATE_VERSION) ) {
                System.arraycopy(NTLMSSP_VERSION, 0, type2, pos, NTLMSSP_VERSION.length);
                pos += NTLMSSP_VERSION.length;
            }
    
            pos += writeSecurityBufferContent(type2, pos, targetNameOff, targetBytes);
            pos += writeSecurityBufferContent(type2, pos, targetInfoOff, targetInformationBytes);
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/ntlmssp/Type1Message.java

                pos += 8;
    
                if ( ( flags & NTLMSSP_NEGOTIATE_VERSION ) != 0 ) {
                    System.arraycopy(NTLMSSP_VERSION, 0, type1, pos, NTLMSSP_VERSION.length);
                    pos += NTLMSSP_VERSION.length;
                }
    
                pos += writeSecurityBufferContent(type1, pos, domOffOff, domain);
                pos += writeSecurityBufferContent(type1, pos, wsOffOff, workstation);
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Sep 02 12:55:08 GMT 2018
    - 7.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/RandomAccessFileTest.java

            byte[] offBuf = new byte[cnt];
            int pos = 0;
            while ( pos < cnt ) {
                int r = is.read(offBuf, pos, offBuf.length - pos);
                if ( r < 0 ) {
                    fail("EOF while reading");
                }
                pos += r;
            }
    
            for ( int i = 0; i < offBuf.length; i++ ) {
                if ( offBuf[ i ] != 0 ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbRandomAccess.java

        /**
         * Current position in file
         * 
         * @return current position
         */
        long getFilePointer ();
    
    
        /**
         * Seek to new position
         * 
         * @param pos
         */
        void seek ( long pos );
    
    
        /**
         * Get the current file length
         * 
         * @return file length
         * @throws SmbException
         */
        long length () throws SmbException;
    
    
        /**
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/ntlmssp/Type3Message.java

            pos += writeSecurityBufferContent(type3, pos, domOff, domainBytes);
            pos += writeSecurityBufferContent(type3, pos, userOff, userBytes);
            pos += writeSecurityBufferContent(type3, pos, wsOff, workstationBytes);
            pos += writeSecurityBufferContent(type3, pos, skOff, sessionKeyBytes);
    
            return type3;
    
        }
    
    
        @Override
        public String toString () {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 30.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

                off += write_andx_resp.count;
            } while( len > 0 );
        }
        public long getFilePointer() throws SmbException {
            return fp;
        }
        public void seek( long pos ) throws SmbException {
            fp = pos;
        }
        public long length() throws SmbException {
            return file.length();
        }
        public void setLength( long newLength ) throws SmbException {
            // ensure file is open
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                // server is set through URL, however it's still in the name
                int pos = 0;
                if ( context.getServer() == null ) {
                    pos = 1;
                }
    
                // first remaining path element would be share
                if ( nameParts.length > pos ) {
                    this.share = nameParts[ pos++ ];
                }
    
                // all other remaining path elements are actual path
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Jul 20 08:24:53 GMT 2019
    - 23.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            }
        }
    
    
        @Override
        public long getFilePointer () {
            return this.fp;
        }
    
    
        @Override
        public void seek ( long pos ) {
            this.fp = pos;
        }
    
    
        @Override
        public long length () throws SmbException {
            return this.file.length();
        }
    
    
        @Override
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Wed Jan 08 12:01:33 GMT 2020
    - 18.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/ntlmssp/NtlmMessage.java

            return offset + 4;
        }
    
    
        static int writeSecurityBufferContent ( byte[] dest, int pos, int off, byte[] src ) {
            writeULong(dest, off, pos);
            if ( src != null && src.length > 0 ) {
                System.arraycopy(src, 0, dest, pos, src.length);
                return src.length;
            }
            return 0;
        }
    
    
        static String getOEMEncoding () {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 5.1K bytes
    - Viewed (0)
Back to top