Interface: DecodeAstmFramesResult
The result of decodeAstmFrames: the reassembled record bytes, every decoded frame, and the accumulated frame warnings.
Properties
frames
readonlyframes: readonlyAstmFrame[]
Every decoded frame, trusted or not, in wire order.
records
readonlyrecords: readonlyUint8Array<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
readonlywarnings: readonlyAstmFrameWarning[]
The frame warnings accumulated during a lenient decode (empty in a clean decode).