| 46 | template <class StreamBuf, template <class T> class TypeTraits, bool IsMutable> |
| 47 | template <class T> |
| 48 | inline |
| 49 | const T* |
| 50 | ByteStream<StreamBuf, TypeTraits, IsMutable>::read(size_t inCount) { |
| 51 | this->seek<TypeTraits<typename boost::remove_cv<T>::type>::alignment>( |
| 52 | 0, std::ios_base::cur); |
| 53 | const T* pointer = this->available() >= inCount * sizeof(T) |
| 54 | ? reinterpret_cast<const T*>(this->ptr() + this->tell()) |
| 55 | : NULL; |
| 56 | this->seek(inCount * sizeof(T), std::ios_base::cur); |
| 57 | return pointer; |
| 58 | } |
| 59 | |
| 60 | template <class StreamBuf, template <class T> class TypeTraits, bool IsMutable> |
| 61 | template <std::size_t Alignment> |
no test coverage detected