J
John
Hi,
I need to write out bits that I receive from another process. These
are boolean values. I need there to be 8 bits in every byte. I know I
could write these bits out as char's using one bit per byte, but that
would be space-inefficient.
I'm using od (octal dump) to look at a file produced by calling
..Write(true) and .Write(false) and it looks like it writes out 4 bytes
per boolean value.
What am I missing? In what world does it take 4 bytes to represent a
boolean value? Is there some sort of alignment issue that's causing
this?
THANKS!!!!
John
I need to write out bits that I receive from another process. These
are boolean values. I need there to be 8 bits in every byte. I know I
could write these bits out as char's using one bit per byte, but that
would be space-inefficient.
I'm using od (octal dump) to look at a file produced by calling
..Write(true) and .Write(false) and it looks like it writes out 4 bytes
per boolean value.
What am I missing? In what world does it take 4 bytes to represent a
boolean value? Is there some sort of alignment issue that's causing
this?
THANKS!!!!
John