public function addOffset($off)
    {
        $this->prep(Constants::SIZEOF_INT, 0); // Ensure alignment is already done
        if ($off > $this->offset()) {
            throw new \Exception("");
        }
        $this->putOffset($off);
    }
public function addOffset($off)
    {
        $this->prep(Constants::SIZEOF_INT, 0); // Ensure alignment is already done
        if ($off > $this->offset()) {
            throw new \Exception("");
        }
        $this->putOffset($off);
    }
public function addOffset ( $ off ) { $ this -> prep ( Constants :: SIZEOF_INT , 0 ) ; // Ensure alignment is already done if ( $ off > $ this -> offset ( ) ) { throw new \ Exception ( "" ) ; } $ this -> putOffset ( $ off ) ; }
Adds on offset, relative to where it will be written.
@param $off The offset to add to the buffer.
@throws \Exception Throws an exception if `$off` is greater than the underlying ByteBuffer's
offest.
Adds on offset relative to where it will be written .