#include "VBFBlock.h"
#include <vector>

using namespace std;

VBFBlock::VBFBlock()
{
}

VBFBlock::VBFBlock(unsigned int unStartAddress, unsigned int unLength, unsigned short usCheckSum, vector<unsigned char>& data)
{
	m_unStartAddress = unStartAddress;
	m_unLength = unLength;
	m_usCheckSum = usCheckSum;
	m_vecBlockData.swap(data);
}

unsigned int VBFBlock::GetStartAddress()
{
	return m_unStartAddress;
}

unsigned int VBFBlock::GetLength()
{
	return m_unLength;
}

unsigned int VBFBlock::GetCheckSum()
{
	return m_usCheckSum;
}

vector<unsigned char>& VBFBlock::GetBlockData()
{
	return m_vecBlockData;
}