22 #ifndef OR_INTERNALS_RAWCONTAINER_H_
23 #define OR_INTERNALS_RAWCONTAINER_H_
27 #include <sys/types.h>
31 #include "io/stream.hpp"
55 RawContainer(
const IO::Stream::Ptr &_file, off_t offset);
59 const IO::Stream::Ptr &file() {
return m_file; }
61 off_t offset()
const {
return m_offset; }
63 bool skip(off_t offset);
77 size_t readUInt16Array(
const IO::Stream::Ptr &f, std::vector<uint16_t> &v,
size_t count);
87 size_t fetchData(
void *buf, off_t offset,
size_t buf_size);
97 void setEndian(
EndianType _endian) { m_endian = _endian; }