Re: Single-bit I/O
- From: "msalters" <Michiel.Salters@xxxxxxxxxxxxx>
- Date: 7 Jul 2005 07:32:34 -0700
Kevin C. schreef:
> Quick, stupid question. Does C/C++ have any mechanisms for handling
> memory at the bit level, other than using 8-bit masks? So for example
> if I was implementing a compression algorithm like Huffman, would I
> have to do a lot of bit-byte conversion?
std::vector<bool> is space-optimized. That of course means you can't
get a bool* to the buffer, but it's iterator works like a "bit pointer"
HTH,
Michiel Salters
.
- Follow-Ups:
- Re: Single-bit I/O
- From: Lucas Galfaso
- Re: Single-bit I/O
- References:
- Single-bit I/O
- From: Kevin C.
- Single-bit I/O
- Prev by Date: Re: std::map
- Next by Date: Re: [stl] std::map
- Previous by thread: Re: Single-bit I/O
- Next by thread: Re: Single-bit I/O
- Index(es):
Relevant Pages
|