Skip to content

Commit

Permalink
Add getter for parts
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Dec 3, 2024
1 parent 714f947 commit 32e0280
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/serializer/BitSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ public function getPartsCount() : int{
return count($this->parts);
}

/**
* @internal
*
* @return int[]
*/
public function getParts() : array{
return $this->parts;
}

private static function getExpectedPartsCount(int $length) : int{
return intdiv($length + self::INT_BITS - 1, self::INT_BITS);
}
Expand Down

0 comments on commit 32e0280

Please sign in to comment.