D-Programming-Language/phobos — pull request #621 by jmdavis (2012-06-06 09:26:17+00:00)
Title: Added peek, read, write, and append to std.bitmanip.

These functions make it easier to manipulate buffers of ubytes which are
meant to be parsed or written to as sequences of larger integral types.
They assume that the buffers hold their data in big endian.

I'm constantly needing functions like these when manipulating buffers of bytes, so I thought that they would be valuable additions to Phobos.