Class FitsData
- Namespace
- FitsModel
- Assembly
- FitsModel.dll
Wrapper for the raw data of a FITS file HDU (Header Data Unit) and ensures that we do not have incomplete data blocks. Data values should be in big endian format.
public class FitsData
- Inheritance
-
FitsData
- Inherited Members
Constructors
FitsData()
Creates an empty instance of FitsData.
public FitsData()
FitsData(byte[])
Initialize a new instance of FitsData. Non-empty values will be padded with zeros to the next block size.
public FitsData(byte[] values)
Parameters
values
byte[]Raw values of the FITS data in the original big Endian format.
Properties
Length
Gets the length of the data in bytes.
public int Length { get; }
Property Value
Values
The raw data for an HDU in big endian format.
public byte[] Values { get; }
Property Value
- byte[]
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
Returns a string representation of the object, indicating the number of bytes.
public override string ToString()
Returns
WriteToStream(Stream)
Writes this data to the provided stream.
public Task WriteToStream(Stream stream)
Parameters
stream
StreamStream to write data to.
Returns
WriteToStream(Stream, CancellationToken)
Writes this data to the provided stream.
public Task WriteToStream(Stream stream, CancellationToken cancellationToken)
Parameters
stream
StreamStream to write data to.
cancellationToken
CancellationTokenForwarded to the provided stream during the write process.