Keep the body scrape for reserved message types and an empty receipt id marker

This commit is contained in:
2026-08-27 16:32:01 +02:00
parent c9c3121d40
commit cf315737b7
5 changed files with 49 additions and 19 deletions
+1 -1
View File
@@ -103,11 +103,11 @@ export const consts = {
},
} as const;
/** esm_class bits 5-2 name the message type; bit 6 is the UDH indicator. */
export function hasUdh(esmClass: number): boolean {
return (esmClass & consts.ESM_CLASS.UDH_INDICATOR) === consts.ESM_CLASS.UDH_INDICATOR;
}
/** Bits 5-2 of esm_class; the rest carry the messaging mode and the GSM features. */
export function messageTypeOf(esmClass: number): number {
return esmClass & 0x3c;
}