Documentation
¶
Overview ¶
Package gasterix provides a unified API for encoding and decoding ASTERIX data. It coordinates the block-level parsing with category-specific decoders.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct {
Category uint8
Records []any // Category-specific record types (e.g., *cat62.Track)
}
Block represents a decoded ASTERIX data block with typed records.
func Decode ¶
Decode decodes a single ASTERIX block from raw bytes. Returns the decoded block and the number of bytes consumed.
func (*Block) Cat62Tracks ¶
Cat62Tracks is a helper to extract *cat62.Track records from a Block. Returns nil if the block is not category 62.
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder reads ASTERIX blocks from an input stream.
func NewDecoder ¶
NewDecoder returns a new decoder that reads from r.
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder writes ASTERIX blocks to an output stream.
func NewEncoder ¶
NewEncoder returns a new encoder that writes to w.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package block implements ASTERIX Data Block envelope encoding and decoding.
|
Package block implements ASTERIX Data Block envelope encoding and decoding. |
|
Package cat62 implements ASTERIX Category 062 - SDPS Track Messages.
|
Package cat62 implements ASTERIX Category 062 - SDPS Track Messages. |
|
cmd
|
|
|
extract-test-data
command
extract-test-data extracts ASTERIX payloads from pcap for use as test vectors
|
extract-test-data extracts ASTERIX payloads from pcap for use as test vectors |
|
genpcap
command
genpcap generates a pcap file with various ASTERIX test data
|
genpcap generates a pcap file with various ASTERIX test data |
|
pcapdump
command
pcapdump reads a pcap file and decodes ASTERIX data blocks
|
pcapdump reads a pcap file and decodes ASTERIX data blocks |