record ioBits {
/* The bottom 'nbits' of v will be read or written */
var v:uint(64);
/* How many of the low-order bits of 'v' should we read or write? */
var nbits:int(8);
}
This type can currently be used with read/write/<~> to read or write a particular number of bits as binary data.
The proposal here is to deprecate this type favor of the existing readbits and writebits methods which are more obvious. (see the documentation for these at IO — Chapel Documentation 1.27 ).