Support: Functions for consuming endian specific data from a buffer.
authorJustin Bogner <mail@justinbogner.com>
Tue, 25 Mar 2014 01:04:44 +0000 (01:04 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 25 Mar 2014 01:04:44 +0000 (01:04 +0000)
commit93065647b8f0295434bd12aca58a0d0bd6323ffa
tree5334c39940621e74da7381d728cf6f15fedd9729
parent692d1830f3fc0fc583f1bb84f9ab3574bc546e3b
Support: Functions for consuming endian specific data from a buffer.

This adds a function to Endian.h that reads from and updates a pointer
into a buffer with endian specific data. This is more convenient for
stream-like reading of data than endian::read.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204693 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Endian.h