@micham/iso8583
    Preparing search index...

    Variable BaseConst

    Base: <T>(
        codec: Codec<T>,
        padding?: (x: Buffer, length: number) => Buffer,
    ) => FieldFactory<T> = ...

    Base function for creating field factories that parse and prepare binary data with a given codec.

    Type declaration

      • <T>(
            codec: Codec<T>,
            padding?: (x: Buffer, length: number) => Buffer,
        ): FieldFactory<T>
      • Type Parameters

        • T

          The type of the field's value.

        Parameters

        • codec: Codec<T>

          A codec for encoding and decoding binary data to and from values of type T.

        • Optionalpadding: (x: Buffer, length: number) => Buffer

          A function for padding binary data to a given length.

        Returns FieldFactory<T>

        A factory for creating fields that parse and prepare binary data with the given codec.