/// <summary>
/// Used to de-serialize the element.
/// </summary>
/// <param name="byteArray">A Byte array</param>
/// <param name="currentIndex">Start position</param>
/// <param name="lengthOfItems">The length of the items</param>
protected override void DeserializeItemsFromByteArray(byte[] byteArray, ref int currentIndex, int lengthOfItems)
{
if (lengthOfItems != 8)
{
throw new StreamObjectParseErrorException(currentIndex, "DataSize", "Stream Object over-parse error", null);
}
this.DataSize = LittleEndianBitConverter.ToUInt64(byteArray, currentIndex);
currentIndex += 8;
}