a simple frame codec that uses a delimiter to separate frames

Implements

Constructors

Properties

Methods

Constructors

Properties

delimiter: Uint8Array

delimiter to use

options

Methods

  • Decode a frame from a buffer

    Important implementation notice: When returning byte arrays, make sure that the returned array is not a view into the original buffer, as the underlying buffer may get invalidated

    Parameters

    Returns null | Uint8Array