/** * @dataProvider binaryReaders */ public function testSignedReaderWithLittleEndian($brBig, $brLittle) { $brLittle->setPosition(12); $this->assertEquals(255, $this->int8->read($brLittle)); $this->assertEquals(-1, $this->int8->readSigned($brLittle)); $this->assertEquals(-1, $this->int8->readSigned($brLittle)); $this->assertEquals(255, $this->int8->read($brLittle)); }
/** * @return int */ public function readInt8() { return $this->int8Reader->readSigned($this); }