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()); }
/** * 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(); }