Add getLongLong function to OTS_Buffer

This commit is contained in:
slawkens 2024-05-30 08:20:33 +02:00
parent f92b275f70
commit 30107222d4

View File

@ -196,6 +196,16 @@ class OTS_Buffer
return $value[1];
}
public function getLongLong()
{
// checks buffer size
$this->check(8);
$value = unpack('P', substr($this->buffer, $this->pos, 8) );
$this->pos += 8;
return $value[1];
}
/**
* Appends quater byte to buffer.
*