public function getBufferLength($atOffset = false)
    {
        if ($atOffset === false) {
            return $this->bufferLength;
        }

        return $this->bufferLength - $this->offset;
    }
public function getBufferLength($atOffset = false)
    {
        if ($atOffset === false) {
            return $this->bufferLength;
        }

        return $this->bufferLength - $this->offset;
    }
public function getBufferLength ( $ atOffset = false ) { if ( $ atOffset === false ) { return $ this -> bufferLength ; } return $ this -> bufferLength - $ this -> offset ; }
Returns the byte length of the buffer.

@param bool $atOffset
@return int
Returns the byte length of the buffer .