public bool ReadBuffer(byte[] pBuffer, int offset = 0, int count = 0)
{
try
{
DataStream.Read(pBuffer, offset, count == 0 ? pBuffer.Length - offset : count);
}
catch (Exception ex)
{
Logger.FATAL("can't read buffer from {0} {1}", FileName, ex.Message);
return false;
}
return true;
}