Function useBitField

  • Read a bitfield definition from a Cursor. This function is used in the context of the binread function.

    Type Parameters

    • This

      The type of the bitfield.

    Parameters

    • bitfields: BitField<This>[]

      An array of BitField definition

    • targetInstance: This

      The object related to the bitfields argument where the bitfield content will be written to.

    • cursor: Cursor

      Cursor to read the content of the bitfield from.

    Returns This