Function controllerDecoratorFactory

  • controllerDecoratorFactory.

    controllerDecoratorFactory is a utility function used to create Controller type property decorators, used to control the execution flow of a parser in a binary data processing context.

    Type Parameters

    • This
    • Value

    Parameters

    • name: string

      The name of the 'controller' type decorator.

    • func: ControllerFunction<This>

      Function to control the flow of execution of the parser.

    • Optionalopt: Partial<ControllerOptions> = ControllerOptionsDefault

      Optional configuration.

    Returns DecoratorType<This, Value>

    The property decorator function.

    Use this factory function to design custom 'Controller' type decorators tailored to specific data format requirements that are not supported by the library yet.