$transport_
$transport_ : \TTransport
The underlying transport
Buffered transport. Stores data to an internal buffer that it doesn't actually write out until flush is called. For reading, we do a greedy read and then serve data out of the internal buffer.
$transport_ : \TTransport
The underlying transport
readAll( $len) : string
The reason that we customize readAll here is that the majority of PHP streams are already internally buffered by PHP. The socket stream, for example, buffers internally and blocks if you call read with $len greater than the amount of data available, unlike recv() in C.
Therefore, use the readAll method of the wrapped transport inside the buffered readAll.
$len |
The data, of exact length