public function setBuffer($buffer)
    {
        $this->buffer = $buffer;

        $this->seq       = $this->buffer->readShort(self::SEQ_INDEX);
        $this->timestamp = $this->buffer->readInt(self::TIMESTAMP_INDEX);
        $this->ssrc      = $this->buffer->readInt(self::SSRC_INDEX);

        return $this;
    }
public function setBuffer($buffer)
    {
        $this->buffer = $buffer;

        $this->seq       = $this->buffer->readShort(self::SEQ_INDEX);
        $this->timestamp = $this->buffer->readInt(self::TIMESTAMP_INDEX);
        $this->ssrc      = $this->buffer->readInt(self::SSRC_INDEX);

        return $this;
    }
public function setBuffer ( $ buffer ) { $ this -> buffer = $ buffer ; $ this -> seq = $ this -> buffer -> readShort ( self :: SEQ_INDEX ) ; $ this -> timestamp = $ this -> buffer -> readInt ( self :: TIMESTAMP_INDEX ) ; $ this -> ssrc = $ this -> buffer -> readInt ( self :: SSRC_INDEX ) ; return $ this ; }
Sets the buffer.

@param Buffer $buffer The buffer to set.

@return self
Sets the buffer .