Skip to content

Conversation

@lighterowl
Copy link

The Marshal() function in BitArray returns a serialized representation of the BitArray object itself, which consists of much more than just the actual bit content : it starts with an identifier and two 64-bit integers. This caused the returned bit array to always contain some zeroes in the beginning, which were reported by GUI clients as missing pieces despite, for example, the torrent being completed.
This commit replaces the bitarray usage with manually creating the bitmap.

The Marshal() function in BitArray returns a serialized representation of the
BitArray object itself, which consists of much more than just the actual bit
content : it starts with an identifier and two 64-bit integers.
This caused the returned bit array to always contain some zeroes in the
beginning, which were reported by GUI clients as missing pieces despite, for
example, the torrent being completed.
This commit replaces the bitarray usage with manually creating the bitmap.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant