Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for dec_uint16le (0.14 sec)

  1. src/main/java/jcifs/smb1/util/Encdec.java

            l <<= 32L;
            l |= dec_uint32be( src, si + 4 ) & 0xFFFFFFFFL;
            return l;
        }
        public static long dec_uint64le( byte[] src, int si )
        {
            long l;
            l = dec_uint32le( src, si + 4 ) & 0xFFFFFFFFL;
            l <<= 32L;
            l |= dec_uint32le( src, si ) & 0xFFFFFFFFL;
            return l;
        }
    
        /* Encode floats
         */
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Encdec.java

            l <<= 32L;
            l |= dec_uint32be(src, si + 4) & 0xFFFFFFFFL;
            return l;
        }
    
    
        public static long dec_uint64le ( byte[] src, int si ) {
            long l;
            l = dec_uint32le(src, si + 4) & 0xFFFFFFFFL;
            l <<= 32L;
            l |= dec_uint32le(src, si) & 0xFFFFFFFFL;
            return l;
        }
    
    
        /*
         * Encode floats
         */
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/NtlmContext.java

        }
    
        private String getNtlmsspListItem(byte[] type2token, int id0)
        {
            int ri = 58;
    
            for ( ;; ) {
                int id = Encdec.dec_uint16le(type2token, ri);
                int len = Encdec.dec_uint16le(type2token, ri + 2);
                ri += 4;
                if (id == 0 || (ri + len) > type2token.length) {
                    break;
                } else if (id == id0) {
                    try {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

                throw new IOException("DCERPC pipe is no longer open");
            }
    
            int have = this.handle.sendrecv(buf, off, length, inB, getMaxRecv());
    
            int fraglen = Encdec.dec_uint16le(inB, 8);
            if ( fraglen > getMaxRecv() ) {
                throw new IOException("Unexpected fragment length: " + fraglen);
            }
    
            while ( have < fraglen ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jan 26 11:51:07 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

            advance(1);
            return val;
        }
        public void enc_ndr_short(int s) {
            align(2);
            Encdec.enc_uint16le((short)s, buf, index);
            advance(2);
        }
        public int dec_ndr_short() {
            align(2);
            int val = Encdec.dec_uint16le(buf, index);
            advance(2);
            return val;
        }
        public void enc_ndr_long(int l) {
            align(4);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 6.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

            return val;
        }
    
    
        public void enc_ndr_short ( int s ) {
            align(2);
            Encdec.enc_uint16le((short) s, this.buf, this.index);
            advance(2);
        }
    
    
        public int dec_ndr_short () {
            align(2);
            int val = Encdec.dec_uint16le(this.buf, this.index);
            advance(2);
            return val;
        }
    
    
        public void enc_ndr_long ( int l ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

            flags = buf[3] & 0xFF;
            // next read is start of new frag
            isStart = (flags & DCERPC_LAST_FRAG) == DCERPC_LAST_FRAG;
    
            length = Encdec.dec_uint16le(buf, 8);
            if (length > max_recv)
                throw new IOException("Unexpected fragment length: " + length);
    
            while (off < length) {
                off += in.readDirect(buf, off, length - off);
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTransportImpl.java

                int size = ( Encdec.dec_uint16be(buffer, 2) & 0xFFFF );
                if ( size < ( SMB1_HEADER_LENGTH + 1 ) || ( 4 + size ) > Math.min(0xFFFF, getContext().getConfig().getMaximumBufferSize()) ) {
                    throw new IOException("Invalid payload size: " + size);
                }
                int errorCode = Encdec.dec_uint32le(buffer, 9) & 0xFFFFFFFF;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                System.arraycopy( sbuf, 0, BUF, 0, 4 + HEADER_LENGTH );
                int size = Encdec.dec_uint16be( BUF, 2 ) & 0xFFFF;
                if (size < (HEADER_LENGTH + 1) || (4 + size) > rcv_buf_size ) {
                    throw new IOException( "Invalid payload size: " + size );
                }
                int errorCode = Encdec.dec_uint32le( BUF, 9 ) & 0xFFFFFFFF;
                if (resp.command == ServerMessageBlock.SMB_COM_READ_ANDX &&
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 31.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

                throw new SmbException( "EOF" );
            }
            return Encdec.dec_uint16be( tmp, 0 );
        }
        public final int readUnsignedShort() throws SmbException {
            if((read( tmp, 0, 2 )) < 0 ) {
                throw new SmbException( "EOF" );
            }
            return Encdec.dec_uint16be( tmp, 0 ) & 0xFFFF;
        }
        public final char readChar() throws SmbException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
Back to top