Examples of allocate()


Examples of org.apache.tomcat.util.buf.CharChunk.allocate()

            return;
       
        ByteChunk bc = mb.getByteChunk();
        CharChunk cc = mb.getCharChunk();
        int length = bc.getLength();
        cc.allocate(length, -1);

        // Default encoding: fast conversion
        byte[] bbuf = bc.getBuffer();
        char[] cbuf = cc.getBuffer();
        int start = bc.getStart();
View Full Code Here

Examples of org.apache.tomcat.util.buf.CharChunk.allocate()

            return;
       
        ByteChunk bc = mb.getByteChunk();
        CharChunk cc = mb.getCharChunk();
        int length = bc.getLength();
        cc.allocate(length, -1);

        // Default encoding: fast conversion
        byte[] bbuf = bc.getBuffer();
        char[] cbuf = cc.getBuffer();
        int start = bc.getStart();
View Full Code Here

Examples of org.apache.tomcat.util.buf.CharChunk.allocate()

        throws Exception {

        ByteChunk bc = uri.getByteChunk();
        int length = bc.getLength();
        CharChunk cc = uri.getCharChunk();
        cc.allocate(length, -1);

        String enc = connector.getURIEncoding();
        if (enc != null) {
            B2CConverter conv = request.getURIConverter();
            try {
View Full Code Here

Examples of org.apache.tomcat.util.buf.CharChunk.allocate()

        throws Exception {

        ByteChunk bc = uri.getByteChunk();
        int length = bc.getLength();
        CharChunk cc = uri.getCharChunk();
        cc.allocate(length, -1);

        String enc = connector.getURIEncoding();
        if (enc != null) {
            B2CConverter conv = request.getURIConverter();
            try {
View Full Code Here

Examples of org.glassfish.grizzly.http.util.CharChunk.allocate()

            throws Exception {

        ByteChunk bc = uri.getByteChunk();
        CharChunk cc = uri.getCharChunk();
        int length = bc.getLength();
        cc.allocate(length, -1);

        String enc = connector.getURIEncoding();
        if (enc != null && !enc.isEmpty() &&
                !Globals.ISO_8859_1_ENCODING.equalsIgnoreCase(enc)) {
            B2CConverter conv = getURIConverter();
View Full Code Here

Examples of org.glassfish.grizzly.memory.MemoryManager.allocate()

               
                try {
                    read = readSimpleByteBuffer(connection, directByteBuffer);
                    if (read > 0) {
                        directByteBuffer.flip();
                        buffer = memoryManager.allocate(read);
                        buffer.put(directByteBuffer);
                    }
                } finally {
                    ioRecord.release();
                }
View Full Code Here

Examples of org.glassfish.grizzly.nio.DirectByteBufferRecord.allocate()

            final int bufferSize = calcWriteBufferSize(connection, buffer.remaining());
            buffer.limit(oldPos + bufferSize);
           
            final DirectByteBufferRecord ioRecord =
                    DirectByteBufferRecord.get();
            final ByteBuffer directByteBuffer = ioRecord.allocate(bufferSize);
            fill(buffer, bufferSize, directByteBuffer);
           
            try {
                written = flushByteBuffer(socketChannel, directByteBuffer);
            } finally {
View Full Code Here

Examples of org.jbpm.simulation.impl.ht.StaffPool.allocate()

        long duration = timeGenerator.generateTime();
       
        context.getStaffPoolManager().registerPool(pi.getProcessId(), node, 1);
        StaffPool pool = context.getStaffPoolManager().getActivityPool(node.getName());
       
        long waitTime = pool.allocate(context.getClock().getCurrentTime());
       
       
        double resourceUtilization = pool.getResourceUtilization();
        // ensure that duration will include wait time
        duration += waitTime;
View Full Code Here

Examples of org.jdesktop.wonderland.client.utils.SmallIntegerAllocator.allocate()

        if (allocator == null) {
            // First time allocation for app name
            allocator = new SmallIntegerAllocator(1);
            instanceAllocators.put(appName, allocator);
        }
        return allocator.allocate();
    }

    /**
     * Return the given instance number to the app name's pool of instances.
     *
 
View Full Code Here

Examples of org.jnode.vm.compiler.ir.LinearScanAllocator.allocate()

        return liveRanges;
    }

    public static LinearScanAllocator allocate(LiveRange[] liveRanges) {
        LinearScanAllocator lsa = new LinearScanAllocator(liveRanges);
        lsa.allocate();
        return lsa;
    }

    public static void generateCode(CodeGenerator cg, IRControlFlowGraph cfg,
                                                            IRGenerator irg, LinearScanAllocator lsa) {
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.