• Executes a Decoder with a whole source data and returns the unused rest.

    Type Parameters

    • T

    Parameters

    • decoder: Decoder<T>

      A decoder to run.

    Returns ((input) => ((offset) => readonly [Result<string, T>, DataView]))

    The parsing result on success or error messages on failure, and the unused rest of input.

      • (input): ((offset) => readonly [Result<string, T>, DataView])
      • Parameters

        • input: DataView

        Returns ((offset) => readonly [Result<string, T>, DataView])

          • (offset): readonly [Result<string, T>, DataView]
          • Parameters

            • offset: number

            Returns readonly [Result<string, T>, DataView]

Generated using TypeDoc