Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for freeBuffers (0.1 sec)

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

            synchronized ( this.cache ) {
                byte[] buf;
    
                if ( this.freeBuffers > 0 ) {
                    for ( int i = 0; i < this.cache.length; i++ ) {
                        if ( this.cache[ i ] != null ) {
                            buf = (byte[]) this.cache[ i ];
                            this.cache[ i ] = null;
                            this.freeBuffers--;
                            return buf;
                        }
                    }
    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

        static Object[] cache = new Object[MAX_BUFFERS];
        private static int freeBuffers = 0;
    
        static public byte[] getBuffer() {
            synchronized( cache ) {
                byte[] buf;
    
                if (freeBuffers > 0) {
                    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)
Back to top