mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Add getLongLong function to OTS_Buffer
This commit is contained in:
parent
f92b275f70
commit
30107222d4
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user