iya-sts
    Preparing search index...
    parse: (bytes?: any) => ParseResult = ...

    Type Declaration

      • (bytes?: any): ParseResult
      • Parses the v2 header at the front of bytes, which may be only a prefix of the stream.

        Never waits to refuse: a first byte that cannot begin the signature is answered invalid at once.

        Parameters

        • Optionalbytes: any

          the bytes read so far

        Returns ParseResult

        { state: 'incomplete' } to read more, { state: 'invalid', code, reason } to close the connection, or { state: 'complete', length, header }, where length bytes are the header