FwupdPlugin.Firmware.set_size_max
Description: Reference for FwupdPlugin.Firmware.set_size_max

### Function

# FwupdPlugin Firmwareset_size_max

since: 2.1.6

#### Declaration [src]

    void
    fu_firmware_set_size_max (
      FuFirmwareClass* klass,
      gsize size_max
    )

#### Description [src]

Sets the maximum size of the image allowed during parsing. Implementations should query `fu_firmware_get_size_max()` during parsing when adding images to ensure the limit is not exceeded.

Available since: 2.1.6

#### Parameters

`klass`

  Type: `FuFirmwareClass`

  A `FuFirmwareClass`.

  The data is owned by the caller of the function.

`size_max`

  Type: `gsize`

  Integer, or 0 for no limit.