CPS class

Compressed Packet Stream — a run of fixed-length CCSDS packets losslessly compressed as one stateful stream (CCSDS 124.0-B-1 POCKET+). Decoded output is a sequence of PACKET_COUNT packets of PACKET_LENGTH bytes, each of which projects to an $SPP record. This record carries a compressed packet stream only; it is not a general-purpose compression envelope for SDS records.

Constructors

CPS(List<int> bytes)
factory

Properties

ALGORITHM → packetCompressionAlgorithm
Compression algorithm used to produce COMPRESSED_DATA.
no setter
APID → int
CCSDS Application Process Identifier of the packets, when known.
no setter
COMPRESSED_DATA → List<int>?
The POCKET+ compressed bitstream per CCSDS 124.0-B-1. Each compressed packet is individually octet-aligned; padding is per PACKET, never per stream. Bit-concatenating packets diverges from the reference implementation and MUST NOT be done.
no setter
compressedData → List<int>?
no setter
hashCode → int
The hash code for this object.
no setterinherited
MASK_SEND_PERIOD → int
POCKET+ mask send period (ft), in packets — how often the change mask is transmitted. Independent of ROBUSTNESS, MASK_UPDATE_PERIOD, and REFERENCE_PERIOD.
no setter
MASK_UPDATE_PERIOD → int
POCKET+ mask update period (pt), in packets. Independent of ROBUSTNESS, MASK_SEND_PERIOD, and REFERENCE_PERIOD.
no setter
maskSendPeriod → int
no setter
maskUpdatePeriod → int
no setter
PACKET_COUNT → int
Number of uncompressed packets encoded in COMPRESSED_DATA. NORMATIVE: this is the only output-size bound a decoder has. The compressed bitstream alone does not bound the decoded size, and a compression-ratio guess is unsafe in both directions. Decoders MUST reject a record whose PACKET_COUNT is zero, and MUST allocate exactly PACKET_COUNT * PACKET_LENGTH bytes of output.
no setter
PACKET_LENGTH → int
Uncompressed length in bytes of EVERY packet in the stream. POCKET+ is defined only for a fixed packet length; a length change starts a new stream and therefore a new $CPS record.
no setter
packetCount → int
no setter
packetLength → int
no setter
REFERENCE_PERIOD → int
POCKET+ reference packet retransmission period (rt), in packets. Independent of ROBUSTNESS, MASK_UPDATE_PERIOD, and MASK_SEND_PERIOD.
no setter
referencePeriod → int
no setter
ROBUSTNESS → int
POCKET+ robustness level: the window depth in PACKETS, range 0-7. This is a window depth, NOT a retransmission interval — it does not by itself configure a decoder. See MASK_UPDATE_PERIOD / MASK_SEND_PERIOD / REFERENCE_PERIOD, which are three independent periods.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
SEGMENT_INDEX → int
Zero-based index of this segment within STREAM_ID.
no setter
segmentIndex → int
no setter
SELF_SYNCHRONIZING → bool
True only when the FIRST packet of COMPRESSED_DATA carries both rt=1 and ft=1, i.e. it transmits a full reference packet and a full mask, so this record decodes standalone without its predecessor. There is no synchronization flag in the POCKET+ bitstream itself: this field is the producer's assertion about the first packet, and defaults to false.
no setter
selfSynchronizing → bool
no setter
SPACECRAFT_ID → int
Spacecraft identifier of the packets, when known.
no setter
spacecraftId → int
no setter
START_EPOCH → String?
UTC epoch of the first packet in the segment, ISO 8601.
no setter
startEpoch → String?
no setter
STOP_EPOCH → String?
UTC epoch of the last packet in the segment, ISO 8601.
no setter
stopEpoch → String?
no setter
STREAM_ID → String?
Producer-defined stream identity. Records sharing STREAM_ID decode in SEGMENT_INDEX order as one continuous POCKET+ stream. A missing segment poisons every subsequent segment up to the next segment with SELF_SYNCHRONIZING = true.
no setter
streamId → String?
no setter
UNCOMPRESSED_CRC32 → int
CRC-32 (IEEE 802.3) over the concatenated decompressed packets.
no setter
UNCOMPRESSED_LENGTH → int
PACKET_LENGTH * PACKET_COUNT. Carried so a decoder can check its decoded output length without recomputing the product from a corrupt header.
no setter
uncompressedCrc32 → int
no setter
uncompressedLength → int
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

reader → const Reader<CPS>