src/Mbcraft/Piol/StringBuffer.php
function read($length)
    {
        $l = $this->pos+$length < strlen($this->data) ? $length : strlen($this->data)-$this->pos;
        $result = substr($this->data,$this->pos,$l);
        $this->pos+=$l;
        return $result;
    }
function read($length)
    {
        $l = $this->pos+$length < strlen($this->data) ? $length : strlen($this->data)-$this->pos;
        $result = substr($this->data,$this->pos,$l);
        $this->pos+=$l;
        return $result;
    }
Reads n bytes from this stream.

@param int $length the number of bytes to read.
@return string|FALSE the readed string or FALSE on failure.

@api