Appearance
Home > resol-vbus-core > RecordingDecoder
RecordingDecoder class
A decoder of the VBus Recording File Format.
Signature:
typescript
export declare class RecordingDecoder
Constructors
Constructor | Modifiers | Description |
---|---|---|
Construct a recording decoder. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
Uint8Array | The buffer for unprocessed data. | ||
number | The index into the buffer of unprocessed data. | ||
number | The currently selected VBus channel. | ||
(dgram: Datagram) => void | (Optional) Callback for datagram records (kind = 0x66 and payload contains datagram). | ||
(timestamp: Date) => void | (Optional) Callback to signal end of header set. | ||
(buffer: Uint8Array) => void | (Optional) Callback for buffer parts that do not conform to the file format spec. | ||
(packet: Packet) => void | (Optional) Callback for packet records (kind = 0x66 and payload contains packet). | ||
(buffer: Uint8Array) => void | (Optional) Callback for the raw undecoded records. | ||
(timestamp: Date) => void | (Optional) Callback for Start-Of-Header-Set records (kind = 0x44). | ||
(tgram: Telegram) => void | (Optional) Callback for telegram records (kind = 0x77 and payload contains telegram). | ||
Date | null | The current active timestamp from the last Start-Of-Header-Set record. |
Methods
Method | Modifiers | Description |
---|---|---|
Decode as much from the internal buffer as possible. | ||
Decode a chunk of data. | ||
End decoding. | ||
Reset the recording decoder. |