Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for getBuffer (0.1 sec)

  1. src/main/java/jcifs/smb1/smb1/BufferCache.java

                buf = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE];
    
                return buf;
            }
        }
        static void getBuffers( SmbComTransaction req, SmbComTransactionResponse rsp ) {
            synchronized( cache ) {
                req.txn_buf = getBuffer();
                rsp.txn_buf = getBuffer();
            }
        }
        static public void releaseBuffer( byte[] buf ) {
            synchronized( cache ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/BufferCacheImpl.java

            this.cache = new Object[maxBuffers];
            this.bufferSize = maxSize;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.BufferCache#getBuffer()
         */
        @Override
        public byte[] getBuffer () {
            synchronized ( this.cache ) {
                byte[] buf;
    
                if ( this.freeBuffers > 0 ) {
                    for ( int i = 0; i < this.cache.length; i++ ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jan 24 11:40:34 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java

          OutputStream encodingStream = encoding.encoding.encodingStream(target);
          encodingStream.write(encodingInputs[i & INPUTS_MASK]);
          encodingStream.close();
          tmp += target.getBuffer().length();
        }
        return tmp;
      }
    
      @Benchmark
      public int decodingStream(int reps) throws IOException {
        int tmp = 0;
        byte[] target = new byte[n];
        for (int i = 0; i < reps; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/BufferCache.java

     * 
     * @author mbechler
     * @internal
     */
    public interface BufferCache {
    
        /**
         * 
         * @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/dcerpc/DcerpcHandle.java

            if ( this.state == 0 ) {
                bind();
            }
            byte[] inB = this.transportContext.getBufferCache().getBuffer();
            byte[] out = this.transportContext.getBufferCache().getBuffer();
            try {
                NdrBuffer buf = encodeMessage(msg, out);
                int off = sendFragments(msg, out, buf);
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jun 30 10:11:57 UTC 2019
    - 12.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

            boolean isLast, isDirect;
            DcerpcException de;
    
            if (state == 0) {
                bind();
            }
    
            isDirect = true;
    
            stub = jcifs.smb1.smb1.BufferCache.getBuffer();
            try {
                int off, tot, n;
    
                buf = new NdrBuffer(stub, 0);
    
                msg.flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG;
                msg.call_id = call_id++;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 8.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

            this.index = index;
        }
        public int getCapacity() {
            return buf.length - start;
        }
        public int getTailSpace() {
            return buf.length - index;
        }
        public byte[] getBuffer() {
            return buf;
        }
        public int align(int boundary, byte value) {
            int n = align(boundary);
            int i = n;
            while (i > 0) {
                buf[index - i] = value;
                i--;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 6.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

    
        public int getCapacity () {
            return this.buf.length - this.start;
        }
    
    
        public int getTailSpace () {
            return this.buf.length - this.index;
        }
    
    
        public byte[] getBuffer () {
            return this.buf;
        }
    
    
        public int align ( int boundary, byte value ) {
            int n = align(boundary);
            int i = n;
            while ( i > 0 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTransportImpl.java

            resp.reset();
    
            long k;
    
            /*
             * First request w/ interim response
             */
            try {
                req.setBuffer(getContext().getBufferCache().getBuffer());
                req.nextElement();
                if ( req.hasMoreElements() ) {
                    SmbComBlankResponse interim = new SmbComBlankResponse(getContext().getConfig());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  10. okhttp-android/src/main/baseline-prof.txt

    HSPLokio/RealBufferedSink;->writeShort(I)Lokio/BufferedSink;
    HSPLokio/RealBufferedSource;-><init>(Lokio/Source;)V
    HSPLokio/RealBufferedSource;->close()V
    HSPLokio/RealBufferedSource;->exhausted()Z
    HSPLokio/RealBufferedSource;->getBuffer()Lokio/Buffer;
    HSPLokio/RealBufferedSource;->read(Lokio/Buffer;J)J
    HSPLokio/RealBufferedSource;->readByte()B
    HSPLokio/RealBufferedSource;->readByteString(J)Lokio/ByteString;
    HSPLokio/RealBufferedSource;->readInt()I
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
Back to top