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

Method dump

plugins/e57/libE57Format/src/Decoder.cpp:339–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337
338#ifdef E57_ENABLE_DIAGNOSTIC_OUTPUT
339void BitpackDecoder::dump( int indent, std::ostream &os )
340{
341 os << space( indent ) << "bytestreamNumber: " << bytestreamNumber_ << std::endl;
342 os << space( indent ) << "currentRecordIndex: " << currentRecordIndex_ << std::endl;
343 os << space( indent ) << "maxRecordCount: " << maxRecordCount_ << std::endl;
344 os << space( indent ) << "destBuffer:" << std::endl;
345 destBuffer_->dump( indent + 4, os );
346 os << space( indent ) << "inBufferFirstBit: " << inBufferFirstBit_ << std::endl;
347 os << space( indent ) << "inBufferEndByte: " << inBufferEndByte_ << std::endl;
348 os << space( indent ) << "inBufferAlignmentSize: " << inBufferAlignmentSize_ << std::endl;
349 os << space( indent ) << "bitsPerWord: " << bitsPerWord_ << std::endl;
350 os << space( indent ) << "bytesPerWord: " << bytesPerWord_ << std::endl;
351 os << space( indent ) << "inBuffer:" << std::endl;
352 unsigned i;
353 for ( i = 0; i < inBuffer_.size() && i < 20; i++ )
354 {
355 os << space( indent + 4 ) << "inBuffer[" << i
356 << "]: " << static_cast<unsigned>( static_cast<unsigned char>( inBuffer_.at( i ) ) )
357 << std::endl;
358 }
359 if ( i < inBuffer_.size() )
360 {
361 os << space( indent + 4 ) << inBuffer_.size() - i << " more unprinted..." << std::endl;
362 }
363}
364#endif
365
366//================================================================

Callers 1

DecoderFactoryMethod · 0.45

Calls 5

spaceFunction · 0.85
binaryStringFunction · 0.85
hexStringFunction · 0.85
atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected