34 lines
460 B
C++
34 lines
460 B
C++
#include "simpleblock.hpp"
|
|
|
|
namespace mkvparser
|
|
{
|
|
|
|
SimpleBlock::SimpleBlock(
|
|
Cluster* pCluster,
|
|
long idx,
|
|
long long start,
|
|
long long size) :
|
|
BlockEntry(pCluster, idx),
|
|
m_block(start, size)
|
|
{
|
|
}
|
|
|
|
|
|
long SimpleBlock::Parse()
|
|
{
|
|
return m_block.Parse(m_pCluster);
|
|
}
|
|
|
|
|
|
BlockEntry::Kind SimpleBlock::GetKind() const
|
|
{
|
|
return kBlockSimple;
|
|
}
|
|
|
|
|
|
const Block* SimpleBlock::GetBlock() const
|
|
{
|
|
return &m_block;
|
|
}
|
|
|
|
} // namespace mkvparser
|