private int ReadFromBuffer(Byte[] array, int offset, int count, out Exception error) { try { error = null; return ReadFromBuffer(array, offset, count); } catch (Exception ex) { error = ex; return 0; } }