Since the parity bits are stored separately from the data, it's a bit wasteful to create a data/parity array just to immediately separate the values again. So I wrote some methods that allow encoding the parity bits without needing to append them to the existing data array.
I also made some methods const but I can take out these changes if you prefer.
I am trying to implement the following structure:
Since the parity bits are stored separately from the data, it's a bit wasteful to create a data/parity array just to immediately separate the values again. So I wrote some methods that allow encoding the parity bits without needing to append them to the existing data array.
I also made some methods const but I can take out these changes if you prefer.
Thanks!