Deframes as many complete Beast frames as are present in buffer,
unescaping 0x1a 0x1a byte-stuffing and decoding each message via
@squawk/mode-s. Pure and stateless - safe to call repeatedly as more
bytes arrive, as long as the caller prepends the previous call's
remainder to the next chunk (a frame routinely arrives split across
two calls when fed from a live socket).
Deframes as many complete Beast frames as are present in
buffer, unescaping0x1a 0x1abyte-stuffing and decoding each message via@squawk/mode-s. Pure and stateless - safe to call repeatedly as more bytes arrive, as long as the caller prepends the previous call'sremainderto the next chunk (a frame routinely arrives split across two calls when fed from a live socket).