You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the introduction of the Buffer.Slice() method, the expected usage of this package has changed. For example, it's more natural to replace .XxxAt() methods with .Slice().Xxx() combination.
Based on this change, it would be nice to add some useful methods that can be used in combination with the Buffer.Slice() method.
The text was updated successfully, but these errors were encountered:
func (buf *Buffer) FillBitsAt(off, nBits int, bit byte) → .Slice().FillBits()
To be considered:
And/Or/Xor arguments should be *Buffer type instead of BitArrayer type to minimize bit-shifts and copies. BitArrayer type arguments increase bit-shifting.
But it is also better to be able to accept BitArrayer type.
An option to branch processing by a type switch or type assertion. with concerns about performance.
Another option is to have another methods like AndBitArray().
With the introduction of the
Buffer.Slice()
method, the expected usage of this package has changed. For example, it's more natural to replace.XxxAt()
methods with.Slice().Xxx()
combination.Based on this change, it would be nice to add some useful methods that can be used in combination with the
Buffer.Slice()
method.The text was updated successfully, but these errors were encountered: