/// <summary>
/// Check errorInfos in a FastTransferStream.
/// </summary>
/// <param name="stream">A FastTransferStream</param>
/// <param name="offset">An offset to the current position of the FastTransferStream</param>
/// <returns>If the FastTransferStream contains errorInfos then read them and
/// return true, else return false.
/// </returns>
protected bool CheckErrorInfo(FastTransferStream stream, int offset)
{
int count = 0;
stream.Position += offset;
while (stream.VerifyErrorInfo(0))
{
this.errorInfoList.Add(new ErrorInfo(stream));
count++;
}
return(count > 0);
}