Function: detectVersion()
detectVersion(
raw):TelecomVersion
Peek the version stamp of a raw Telecom message without trusting the rest of the header layout.
D.0 carries "D0" in the Version/Release field at offset 6; F6 (which widens
the leading identification field) carries "F6" at offset 8. Both candidate
positions are checked. Anything else is "unsupported": the offsets cannot be
trusted, so the caller refuses rather than guesses.
Parameters
raw
string
The raw message text.
Returns
The TelecomVersion classification.
Example
detectVersion("123456D0B1…").kind; // "d0"