@micham/iso8583
    Preparing search index...

    Variable BasePackedConst

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

    Creates a field factory for fields that store packed values (i.e., where the value is stored in half-bytes instead of full bytes).

    Type declaration

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

        • T

        Parameters

        • codec: Codec<T>

          The codec used to encode/decode the value.

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

          A function used to pad the encoded value if necessary.

        Returns FieldFactory<T>

        A field factory function that creates fields with the specified codec and padding function.