We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In #2841, part of the changes associate to find out how many bits, in the bit array/set, are set to zero.
Currently, this is achieved by the getTrueIndices() []int, or the faster replacement getNumTrueIndices() int.
getTrueIndices() []int
getNumTrueIndices() int
We can have the number of bits set (==1) as a private field, updated as follows:
SetIndex
copy()
IsEmpty()
IsFull()
Update()
UnmarshalJSON()
FromProto()
Originally posted by @cason in #2841 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In #2841, part of the changes associate to find out how many bits, in the bit array/set, are set to zero.
Currently, this is achieved by the
getTrueIndices() []int
, or the faster replacementgetNumTrueIndices() int
.We can have the number of bits set (==1) as a private field, updated as follows:
SetIndex
adds or subtracts 1copy()
can be adapted easilyIsEmpty()
andIsFull()
become trivialUpdate()
, I don't even know the point, same ascopy()
UnmarshalJSON()
usesSetIndex
, so nothing new hereFromProto()
can have this field initialized with a private method (the one added here)Originally posted by @cason in #2841 (comment)
The text was updated successfully, but these errors were encountered: