MCPcopy Create free account
hub / github.com/PDAL/PDAL / basic_ShiftStream

Method basic_ShiftStream

plugins/nitf/io/NitfReader.hpp:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 typedef typename std::basic_istream<CharT, Traits> Base;
105
106 basic_ShiftStream(const std::string& filename, off_type offset) :
107 Base(&m_buf), m_buf(offset)
108 {
109 Base::init(&m_buf);
110 if (!m_buf.open(filename,
111 std::ios_base::in | std::ios_base::binary))
112 Base::setstate(std::ios_base::failbit);
113 }
114
115 ~basic_ShiftStream()
116 { m_buf.close(); }

Callers

nothing calls this directly

Calls 1

openMethod · 0.45

Tested by

no test coverage detected