public BufferedOutputStream(BufferedOutput output) { this.output = output; }
BufferedOutput EnsureBufferedOutput(bool enableBuffering) => _bufferedOutput ?? (_bufferedOutput = new BufferedOutput(this, enableBuffering, _textSink, _streamSink));
private static PhpArray/*!*/ GetLevelStatus(BufferedOutput/*!*/ bo, int index) { PhpArray result = new PhpArray(0, 3); Delegate filter; int size; bo.GetLevelInfo(index, out filter, out size); if (filter != null) { result.Add("type", 1); result.Add("name", filter.ToString()); } else { result.Add("type", 0); } result.Add("buffer_size", size); return result; }
BufferedOutput EnsureBufferedOutput(bool enableBuffering) => _bufferedOutput ?? (_bufferedOutput = new BufferedOutput(enableBuffering, _textSink, _streamSink, this.StringEncoding));