src/Analyzers/Analyzer.php
protected function readHeader($type, $size)
    {
        if ($this->position + $size > $this->headerSize) {
            throw new \Exception('Can\'t read ' . $size . ' bytes');
        }
        $data = unpack($type, substr($this->header, $this->position, $size));
        $this->position += $size;
        return $data[1];
    }
protected function readHeader($type, $size)
    {
        if ($this->position + $size > $this->headerSize) {
            throw new \Exception('Can\'t read ' . $size . ' bytes');
        }
        $data = unpack($type, substr($this->header, $this->position, $size));
        $this->position += $size;
        return $data[1];
    }
protected function readHeader ( $ type , $ size ) { if ( $ this -> position + $ size > $ this -> headerSize ) { throw new \ Exception ( 'Can\'t read ' . $ size . ' bytes' ) ; } $ data = unpack ( $ type , substr ( $ this -> header , $ this -> position , $ size ) ) ; $ this -> position += $ size ; return $ data [ 1 ] ; }
Read and unpack data from the header of the recorded game file.

@see https://secure.php.net/pack For documentation on data unpack format.
@param string  $type  Data type.
@param int  $size  Size of the data.
@return mixed Result.
Read and unpack data from the header of the recorded game file .