Header defining buffer types, with optional alignment dependent on Boost version. More...
#include <osvr/Common/Buffer_fwd.h>#include <osvr/Common/AlignmentPadding.h>#include <boost/version.hpp>#include <boost/type_traits.hpp>#include <vector>#include <stdexcept>#include <algorithm>Go to the source code of this file.
Classes | |
| struct | osvr::common::DesiredBufferAlignment |
| Traits class specifying the (potentially platform-specific!) preferred alignment for Buffer. More... | |
| struct | osvr::common::ActualBufferAlignment |
| Traits class describing actual alignment of Buffer. More... | |
| class | osvr::common::ExternalBufferReadingWrapper< ElementType > |
| Class wrapping an externally-owned and controlled buffer with the vector-like functionality needed to read from it. More... | |
| singleton | osvr::common::BufferReader< ContainerType > |
| Provides for a single reading pass over a buffer. It is important that the buffer not change while a Reader obtained from it is still in scope. More... | |
| singleton | osvr::common::Buffer< ContainerType > |
| A buffer of bytes, built on a byte-vector-like container. Provides methods for easily appending to the buffer (including alignment padding), and a nested class for reading from such a buffer. More... | |
Namespaces | |
| osvr | |
| < | |
| osvr::common | |
| Handles spatial transformations. | |
Typedefs | |
| typedef char | osvr::common::BufferElement |
| The single-byte element in a buffer. | |
|
typedef std::allocator < BufferElement > | osvr::common::BufferAllocator |
| Allocator type for Buffer - might be usefully aligned. | |
| typedef std::vector < BufferElement, BufferAllocator > | osvr::common::BufferByteVector |
| A typedef for a vector of bytes usable as a buffer, that might be "over-aligned" in some desirable way. More... | |
Functions | |
| template<typename CharType > | |
| BufferReader < ExternalBufferReadingWrapper < CharType > > | osvr::common::readExternalBuffer (const CharType *buf, size_t len) |
| Constructs and returns a buffer reader for an externally-allocated buffer: it's on you to supply a valid pointer and length. | |
Header defining buffer types, with optional alignment dependent on Boost version.
Definition in file Buffer.h.