I use the BitSet buffer, where I have about 500 bits inside, and I want to add about 10 bits at the beginning of the buffer, I mean index 0, so the rest of the buffer should be shifted, but I donβt see a way to βaddβ a bit of methods records, so if I already have a bit, it will be replaced, will not be added. Is there a way to do this, or do I need to copy everything to a temporary BitSet, add my 10 bits, and then add 500 bits?
Thanks:)
PD: Sorry, my bad Englishman also has no right to correct :)
source share