Skip to main content
Version: v0.0.4

Interface: DecodeAstmFramesResult

The result of decodeAstmFrames: the reassembled record bytes, every decoded frame, and the accumulated frame warnings.

Properties

frames

readonly frames: readonly AstmFrame[]

Every decoded frame, trusted or not, in wire order.


records

readonly records: readonly Uint8Array<ArrayBufferLike>[]

The reassembled record byte-strings - one entry per complete record (a run of frames closed by an ETX), in wire order. Only clean reassemblies appear: a record whose frames included a bad checksum, a sequence gap, or an unterminated frame is omitted (its frames are still in DecodeAstmFramesResult.frames, flagged). Each entry is ready to hand to parseAstmRecords.


warnings

readonly warnings: readonly AstmFrameWarning[]

The frame warnings accumulated during a lenient decode (empty in a clean decode).