Search in sources :

Example 11 with OutputBuffer

use of php.runtime.output.OutputBuffer in project jphp by jphp-compiler.

the class Environment method allOutputBuffers.

public List<OutputBuffer> allOutputBuffers() {
    Stack<OutputBuffer> outputBuffers = getOutputBuffers();
    List<OutputBuffer> result = new ArrayList<OutputBuffer>();
    for (OutputBuffer el : outputBuffers) result.add(el);
    return result;
}
Also used : OutputBuffer(php.runtime.output.OutputBuffer)

Example 12 with OutputBuffer

use of php.runtime.output.OutputBuffer in project jphp by jphp-compiler.

the class Environment method pushOutputBuffer.

public OutputBuffer pushOutputBuffer(Memory callback, int chunkSize, boolean erase) {
    Stack<OutputBuffer> outputBuffers = getOutputBuffers();
    OutputBuffer buffer = new OutputBuffer(this, peekOutputBuffer(), callback, chunkSize, erase);
    buffer.setLevel(outputBuffers.size());
    buffer.setType(OutputBuffer.Type.USER);
    outputBuffers.push(buffer);
    return buffer;
}
Also used : OutputBuffer(php.runtime.output.OutputBuffer)

Aggregations

OutputBuffer (php.runtime.output.OutputBuffer)12 ArrayMemory (php.runtime.memory.ArrayMemory)4 ArrayList (java.util.ArrayList)2 Memory (php.runtime.Memory)2 LongMemory (php.runtime.memory.LongMemory)2 Invoker (php.runtime.invoke.Invoker)1