I want to save a data like : 010010010101000001000111111100011101100110101...
what if find to achive this is to use PoolByteArray.but it's an array which means more expensive than a simple binary type.
another way is to save the data in an image,but it's also expensive.
and the PoolByteArray's interface is not design for binary.for example,no interface to init a size of binary with default value.(PoolByteArray can use resize,but the default value is random because it's only resize). what's more ,if I want to set 4~99 bit to 1,the only way is to loop and set each index,no interface like setbit(4,1,(99-4)).and so on.
so what is the right way to do this,anyone can help me,thanks a lot!