Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for releaseBuffer (0.19 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/dcerpc/DcerpcHandle.java

                    msgBuf = new NdrBuffer(inB, 0);
                }
                msg.decode(msgBuf);
            }
            finally {
                this.transportContext.getBufferCache().releaseBuffer(inB);
                this.transportContext.getBufferCache().releaseBuffer(out);
            }
    
            DcerpcException de;
            if ( ( de = msg.getResult() ) != null ) {
                throw de;
            }
        }
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jun 30 10:11:57 UTC 2019
    - 12.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/main/java/jcifs/smb/SmbTransportImpl.java

                    this.response_map.remove(k);
                    getContext().getBufferCache().releaseBuffer(resp.releaseBuffer());
                }
            }
            catch ( InterruptedException ie ) {
                throw new TransportException(ie);
            }
            finally {
                getContext().getBufferCache().releaseBuffer(req.releaseBuffer());
            }
    
        }
    
    
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  7. 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)
  8. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                                response_map.remove( req );
                            }
                        }
                    } finally {
                        BufferCache.releaseBuffer( req.txn_buf );
                        BufferCache.releaseBuffer( resp.txn_buf );
                    }
    
                } else {
                    response.command = request.command;
                    super.sendrecv( request, response, RESPONSE_TIMEOUT );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 31.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.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 May 17 13:43:42 UTC 2020
    - 13.2K bytes
    - Viewed (0)
Back to top