On 12/22/2013 01:04 AM, Charles Hixson wrote: > Nice, but the block is longer than 8 bytes, so I should use a "for (i = > n; i < n + 8; i++)" rather than a foreach, and index off of i. Makes sense. That reminded me of the Phobos function that does exactly what you want. Have you considered std.bitmanip.read? Ali