public function equals(Binary $sint) { if ($this->n() != $sint->n()) { return false; } for ($i = 0; $i < $this->n(); $i++) { if ($this->getByte($i) != $sint->getByte($i)) { return false; } } return true; }