I am using a BitSet buffer where i have about 500 bits inside and i want to add about 10 bits at the start of the buffer, i mean at index 0 so the rest of the buffer should be shifted but I dont see a way to "add" a bit only write methods, so if i already have a bit there it will be replaced, no added. Is there any way to do this or i have to copy all to a temporary BitSet, add my 10 bits and then add my 500 bits ?
感谢:)
PD:对不起,