Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for releaseBuffer (0.11 sec)

  1. src/main/java/jcifs/smb/BufferCacheImpl.java

                    }
                }
                return new byte[this.bufferSize];
            }
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.BufferCache#releaseBuffer(byte[])
         */
        @Override
        public void releaseBuffer ( byte[] buf ) {
            if ( buf == null ) {
                return;
            }
            // better safe than sorry: prevent leaks if there is some out of bound access
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jan 24 11:40:34 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/BufferCache.java

            synchronized( cache ) {
                req.txn_buf = getBuffer();
                rsp.txn_buf = getBuffer();
            }
        }
        static public void releaseBuffer( byte[] buf ) {
            synchronized( cache ) {
                if (freeBuffers < MAX_BUFFERS) {
                    for (int i = 0; i < MAX_BUFFERS; i++) {
                        if (cache[i] == null) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/BufferCache.java

        /**
         * 
         * @return a buffer from the cache, or a new one
         */
        byte[] getBuffer ();
    
    
        /**
         * Return a buffer to the cache
         * 
         * @param buf
         */
        void releaseBuffer ( byte[] buf );
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

        /**
         * @param buffer
         */
        public void setBuffer ( byte[] buffer ) {
            this.txn_buf = buffer;
        }
    
    
        /**
         * @return the txn_buf
         */
        public byte[] releaseBuffer () {
            byte[] buf = this.txn_buf;
            this.txn_buf = null;
            return buf;
        }
    
    
        /**
         * @return the subCommand
         */
        public final byte getSubCommand () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 9.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

                    off += stub_frag_len;
                }
    
                buf = new NdrBuffer(stub, 0);
                msg.decode(buf);
            } finally {
                jcifs.smb1.smb1.BufferCache.releaseBuffer(stub);
            }
    
            if ((de = msg.getResult()) != null)
                throw de;
        }
    
        public void setDcerpcSecurityProvider(DcerpcSecurityProvider securityProvider)
        {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 8.8K bytes
    - Viewed (0)
Back to top