Skip to main content
Version: v0.0.3

Function: telecomPosition()

telecomPosition(byteOffset, fieldId?): TelecomPosition

Build a TelecomPosition from a byte offset and an optional field id.

Parameters

byteOffset

number

Zero-based byte offset into the raw message.

fieldId?

string

The 2-character field identifier in scope, if any.

Returns

TelecomPosition

A frozen positional context.

Example

telecomPosition(56).byteOffset; // 56
telecomPosition(72, "D7").fieldId; // "D7"