Reading data, of which bit sizes are not multiples of 8.
Posted on 2004-10-21
Ok, I am familiar with the BinaryReader class, and it's plethora of supported data formats
yet it is still very limited to what I need to do.
EXPERTS, what do you think is the best way, in .Net, to read and write 9,10,11 and especially 12 bit data.
My first inclination seems like a hack. Where I would read data in 16-bit words, and perform bit masking on the data for each acquired value. I'm sure that would work, but there's gotta be a better way.