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

Method readHeaderExtraData

io/BpfReader.cpp:281–291  ·  view source on GitHub ↗

Encode all data that follows the headers as metadata-> \return Whether the stream is still valid.

Source from the content-addressed store, hash-verified

279/// Encode all data that follows the headers as metadata->
280/// \return Whether the stream is still valid.
281bool BpfReader::readHeaderExtraData()
282{
283 if (m_stream.position() < m_header.m_len)
284 {
285 std::streampos size = m_header.m_len - m_stream.position();
286 std::vector<uint8_t> buf(size);
287 m_stream.get(buf);
288 m_metadata.addEncoded("header_data", buf.data(), buf.size());
289 }
290 return (bool)m_stream;
291}
292
293
294bool BpfReader::readPolarData()

Callers

nothing calls this directly

Calls 4

positionMethod · 0.45
getMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected