Backport of "bitwriter: Fix the trailing bits lost when getting its data." into 1.18
Backport of !886 (merged) "bitwriter: Fix the trailing bits lost when getting its data.".
Todo:
-
Needs manual intervention, cherry-picking failed!
Commits:
Edited by Tim-Philipp Müller