protected void SetFileOffset(Object o) { if (o is RandomAccess) { fileOffset = FitsUtil.FindOffset(o); dataSize = TrueSize; input = (RandomAccess)o; } }
/// <summary>Read the heap</summary> public virtual void Read(ArrayDataIO str) { if (str is RandomAccess) { fileOffset = FitsUtil.FindOffset(str); input = str; } if (heap != null) { try { str.Read(heap, 0, heapSize); } catch (IOException e) { throw new FitsException("Error reading heap:" + e); } } }