Interface: AstmFramePosition
Where in a framed byte stream a warning or error originated. Both members are positional; neither is a value.
Example
import type { AstmFramePosition } from "@cosyte/astm";
const at: AstmFramePosition = { frameNumber: 2, byteOffset: 251 };
Properties
byteOffset
readonlybyteOffset:number
Byte offset of the STX that opened the frame, within the decoded stream.
frameNumber?
readonlyoptionalframeNumber?:number
The frame's sequence number (0–7) when it could be read, or undefined
when the frame was so truncated the number was not present.