Examples of capacity()


Examples of EDU.oswego.cs.dl.util.concurrent.BoundedBuffer.capacity()

                se.setData( "" + bb.size() );
                elems.add( se );

                se = new StatElement();
                se.setName( "Queue Capacity" );
                se.setData( "" + bb.capacity() );
                elems.add( se );
            }
        }

        se = new StatElement();
View Full Code Here

Examples of cleo.search.store.StaticIntArrayPartition.capacity()

   
    StaticIntArrayPartition p = new StaticIntArrayPartition(indexStart, capacity);

    assertEquals(indexStart, p.getIndexStart());
    assertEquals(indexEnd, p.getIndexEnd());
    assertEquals(capacity, p.capacity());
   
    assertTrue(p.hasIndex(p.getIndexStart()));
    assertFalse(p.hasIndex(p.getIndexStart() - 1));
   
    assertTrue(p.hasIndex(p.getIndexEnd() - 1));
View Full Code Here

Examples of cleo.search.store.StaticLongArrayPartition.capacity()

   
    StaticLongArrayPartition p = new StaticLongArrayPartition(indexStart, capacity);

    assertEquals(indexStart, p.getIndexStart());
    assertEquals(indexEnd, p.getIndexEnd());
    assertEquals(capacity, p.capacity());
   
    assertTrue(p.hasIndex(p.getIndexStart()));
    assertFalse(p.hasIndex(p.getIndexStart() - 1));
   
    assertTrue(p.hasIndex(p.getIndexEnd() - 1));
View Full Code Here

Examples of com.browseengine.bobo.util.BigNestedIntArray.BufferedLoader.capacity()

      {
        buffer.reset();
      }
     
      BufferedLoader loader = workArea.get(BufferedLoader.class);     
      if(loader == null || loader.capacity() < maxdoc)
      {
        loader = new BufferedLoader(maxdoc, _maxItems, buffer);
        workArea.put(loader);
      }
      else
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.netty.buffer.ChannelBuffer.capacity()

                        input, replayable,
                        e.getRemoteAddress());
            } finally {
                int readableBytes = input.readableBytes();
                if (readableBytes > 0) {
                    int inputCapacity = input.capacity();
                    // check if readableBytes == capacity we can safe the copy as we will not be able to
                    // optimize memory usage anyway
                    boolean copy =
                            readableBytes != inputCapacity &&
                            inputCapacity > getMaxCumulationBufferCapacity();
View Full Code Here

Examples of com.google.code.yanf4j.buffer.IoBuffer.capacity()

        nioBuf.limit(7);

        IoBuffer buf = IoBuffer.wrap(nioBuf);
        assertEquals(3, buf.position());
        assertEquals(7, buf.limit());
        assertEquals(10, buf.capacity());
    }


    @Test
    public void testWrapSubArray() throws Exception {
View Full Code Here

Examples of com.googlecode.javacpp.BytePointer.capacity()

        } else if (CV_NODE_IS_STRING(node.tag())) {
            CvString str = node.data_str();
            BytePointer pointer = str.ptr();
            int length = str.len();
            byte[] bytes = new byte[length];
            pointer.capacity(length).asBuffer().get(bytes);
            return new String(bytes);
        } else {
            return null;
        }
    }
View Full Code Here

Examples of com.higherfrequencytrading.chronicle.Excerpt.capacity()

                    return;
                }
                do {
                    while (!excerpt.index(index))
                        pause(delayNS);
                    int size = excerpt.capacity();
                    int remaining = size + TcpUtil.HEADER_SIZE;

                    bb.clear();
                    bb.putLong(index);
                    bb.putInt(size);
View Full Code Here

Examples of com.jogamp.common.nio.NativeSizeBuffer.capacity()

        int ret = cl.clGetPlatformIDs(0, null, ib);
        checkForError(ret, "can not enumerate platforms");

        // receive platform ids
        NativeSizeBuffer platformId = NativeSizeBuffer.allocateDirect(ib.get(0));
        ret = cl.clGetPlatformIDs(platformId.capacity(), platformId, null);
        checkForError(ret, "can not enumerate platforms");

        List<CLPlatform> platforms = new ArrayList<CLPlatform>();

        for (int i = 0; i < platformId.capacity(); i++) {
View Full Code Here

Examples of com.sun.sgs.impl.sharedutil.MessageBuffer.capacity()

            DummyChannel() {
                final MessageBuffer msg =
                        new MessageBuffer(4 +
                                          MessageBuffer.getSize("username") +
                                          MessageBuffer.getSize("password"));
                msg.putShort(msg.capacity() - 2);
                msg.putByte(SimpleSgsProtocol.LOGIN_REQUEST);
                msg.putByte(SimpleSgsProtocol.VERSION);
                msg.putString("username");
                msg.putString("password");
                message = ByteBuffer.allocate(msg.capacity());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.