Table of Contents

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

int

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

bool

GetHashCode()

/> />

public override int GetHashCode()

Returns

int

ToString()

Returns a string representation of the object, indicating the number of bytes.

public override string ToString()

Returns

string

WriteToStream(Stream)

Writes this data to the provided stream.

public Task WriteToStream(Stream stream)

Parameters

stream Stream

Stream to write data to.

Returns

Task

WriteToStream(Stream, CancellationToken)

Writes this data to the provided stream.

public Task WriteToStream(Stream stream, CancellationToken cancellationToken)

Parameters

stream Stream

Stream to write data to.

cancellationToken CancellationToken

Forwarded to the provided stream during the write process.

Returns

Task