public function getByte($position = null)
    {
        $position = (int) ($position !== null ? $position : $this->offset);
        if ($position >= $this->bufferLength &&
            (!$this->increaseLength() || $position >= $this->bufferLength)
        ) {
            return false;
        }

        return $this->buffer[$position];
    }
public function getByte($position = null)
    {
        $position = (int) ($position !== null ? $position : $this->offset);
        if ($position >= $this->bufferLength &&
            (!$this->increaseLength() || $position >= $this->bufferLength)
        ) {
            return false;
        }

        return $this->buffer[$position];
    }
public function getByte ( $ position = null ) { $ position = ( int ) ( $ position !== null ? $ position : $ this -> offset ) ; if ( $ position >= $ this -> bufferLength && ( ! $ this -> increaseLength ( ) || $ position >= $ this -> bufferLength ) ) { return false ; } return $ this -> buffer [ $ position ] ; }
Gets a byte at a specific position in the buffer.

If the position is invalid the method will return false.

If the $position parameter is set to null the value of $this->offset will be used.

@param int|null $position
@return string|bool
Gets a byte at a specific position in the buffer .