Re: C question



> What does the following mean?
> I understand that it is a structure called dat_bits but ...
> 1) what does the 8 and the 24 mean?

Those are called "bitfields". They mean that the first field occupies 8
bits, and the second 24. You can use an arbitrary number of bits with this
syntax.

.



Relevant Pages

  • Re: C++/CLI and bitfield marshalling
    ... It is how you write finalizers in the new syntax. ... destructors are written with the ~ syntax. ... But these bitfields got me stumped. ... gave a way to wrap an existing type that has bit fields into a managed type ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Bitpacked Data
    ... Bjoern Schliessmann: ... Maybe Pyrex can be used to create a small module that can manage ... similar bitfields quickly and with a syntax not too much far from the ... Erlang bit syntax. ...
    (comp.lang.python)