for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SPSS\Sav\Record\Info;
use SPSS\Buffer;
use SPSS\Sav\Record\Info;
class Unknown extends Info
{
/**
* @param Buffer $buffer
*/
public function read(Buffer $buffer)
parent::read($buffer);
$this->data['raw'] = $buffer->readString($this->dataSize * $this->dataCount);
}
public function write(Buffer $buffer)
if (! isset($this->data['raw'])) {
$this->data['raw'] = '';
$this->dataCount = strlen($this->data['raw']);
parent::write($buffer);
$buffer->writeString($this->data['raw']);