コード例 #1
0
 public function testSerialRead()
 {
     $vpb = new SPropVisualB();
     $this->assertEquals(0, $vpb->getValue());
     $mem = new MemStream();
     $mem->setBuffer($this->buffer);
     $vpb->serial($mem);
     $this->assertEquals($this->value, $vpb->getValue());
 }
コード例 #2
0
ファイル: Character.php プロジェクト: nimetu/rrs_client
 /**
  * Get VPropVisualB 64bit value after char is built
  *
  * @param bool $hex
  *
  * @return int|string
  */
 public function getVpb($hex = false)
 {
     if ($hex) {
         return $this->vpb->getValueHex();
     }
     return $this->vpb->getValue();
 }