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

Method read

io/BpfHeader.cpp:92–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91
92bool BpfHeader::read(ILeStream& stream)
93{
94 IStreamMarker mark(stream);
95 if (!readV3(stream))
96 {
97 mark.rewind();
98 if (!readV1(stream))
99 {
100 if (m_version < 1 || m_version > 3)
101 m_log->get(LogLevel::Error) << "Unsupported BPF version = " <<
102 m_version << ".\n";
103 else
104 m_log->get(LogLevel::Error) << "Couldn't read BPF header.\n";
105 return false;
106 }
107 }
108 return true;
109}
110
111bool BpfHeader::readV3(ILeStream& stream)
112{

Callers 1

writeMethod · 0.45

Calls 4

resizeMethod · 0.80
rewindMethod · 0.45
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected