| 337 | |
| 338 | #ifdef E57_ENABLE_DIAGNOSTIC_OUTPUT |
| 339 | void 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 | //================================================================ |
no test coverage detected