public bool SeekAhead(long count)
{
if (count < 0)
{
Logger.FATAL("Invali count");
return false;
}
if (count + DataStream.Position > DataStream.Length)
{
Logger.FATAL("End of file will be reached");
return false;
}
try
{
DataStream.Seek(count, SeekOrigin.Current);
}
catch (Exception ex)
{
Logger.FATAL("Unable to seek ahead {0} bytes {1}", count, ex.Message);
return false;
}
return true;
}