ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
e57::DecodeChannel Struct Reference

#include <DecodeChannel.h>

Collaboration diagram for e57::DecodeChannel:

Public Member Functions

 DecodeChannel (SourceDestBuffer dbuf_arg, std::shared_ptr< Decoder > decoder_arg, unsigned bytestreamNumber_arg, uint64_t maxRecordCount_arg)
 
bool isOutputBlocked () const
 
bool isInputBlocked () const
 
void dump (int indent=0, std::ostream &os=std::cout)
 has exhausted data in the current packet More...
 

Public Attributes

SourceDestBuffer dbuf
 
std::shared_ptr< Decoderdecoder
 
unsigned bytestreamNumber
 
uint64_t maxRecordCount
 
uint64_t currentPacketLogicalOffset
 
size_t currentBytestreamBufferIndex
 
size_t currentBytestreamBufferLength
 
bool inputFinished
 

Detailed Description

Definition at line 35 of file DecodeChannel.h.

Constructor & Destructor Documentation

◆ DecodeChannel()

e57::DecodeChannel::DecodeChannel ( SourceDestBuffer  dbuf_arg,
std::shared_ptr< Decoder decoder_arg,
unsigned  bytestreamNumber_arg,
uint64_t  maxRecordCount_arg 
)

Member Function Documentation

◆ dump()

void e57::DecodeChannel::dump ( int  indent = 0,
std::ostream &  os = std::cout 
)

◆ isInputBlocked()

bool e57::DecodeChannel::isInputBlocked ( ) const

If have read until the section end, we are done

If have eaten all the input in the current packet, we are blocked.

Definition at line 56 of file DecodeChannel.cpp.

References currentBytestreamBufferIndex, currentBytestreamBufferLength, and inputFinished.

Referenced by dump().

◆ isOutputBlocked()

bool e57::DecodeChannel::isOutputBlocked ( ) const

If we have completed the entire vector, we are done

If we have filled the dest buffer, we are blocked

Definition at line 44 of file DecodeChannel.cpp.

References e57::SourceDestBuffer::capacity(), dbuf, decoder, and maxRecordCount.

Referenced by e57::_alreadyReadPacket(), and dump().

Member Data Documentation

◆ bytestreamNumber

unsigned e57::DecodeChannel::bytestreamNumber

Definition at line 39 of file DecodeChannel.h.

Referenced by dump().

◆ currentBytestreamBufferIndex

size_t e57::DecodeChannel::currentBytestreamBufferIndex

Definition at line 42 of file DecodeChannel.h.

Referenced by DecodeChannel(), dump(), and isInputBlocked().

◆ currentBytestreamBufferLength

size_t e57::DecodeChannel::currentBytestreamBufferLength

Definition at line 43 of file DecodeChannel.h.

Referenced by DecodeChannel(), dump(), and isInputBlocked().

◆ currentPacketLogicalOffset

uint64_t e57::DecodeChannel::currentPacketLogicalOffset

Definition at line 41 of file DecodeChannel.h.

Referenced by e57::_alreadyReadPacket(), DecodeChannel(), and dump().

◆ dbuf

SourceDestBuffer e57::DecodeChannel::dbuf

Definition at line 37 of file DecodeChannel.h.

Referenced by dump(), isOutputBlocked(), and e57::CompressedVectorReaderImpl::read().

◆ decoder

std::shared_ptr<Decoder> e57::DecodeChannel::decoder

Definition at line 38 of file DecodeChannel.h.

Referenced by dump(), and isOutputBlocked().

◆ inputFinished

bool e57::DecodeChannel::inputFinished

Definition at line 44 of file DecodeChannel.h.

Referenced by DecodeChannel(), dump(), and isInputBlocked().

◆ maxRecordCount

uint64_t e57::DecodeChannel::maxRecordCount

Definition at line 40 of file DecodeChannel.h.

Referenced by DecodeChannel(), dump(), and isOutputBlocked().


The documentation for this struct was generated from the following files: