* size until the resource is exhausted.
*
* If the resource is located in a WIM file, @flags can be:
* size until the resource is exhausted.
*
* If the resource is located in a WIM file, @flags can be:
* * WIMLIB_RESOURCE_FLAG_RAW if the raw compressed data is to be supplied
* instead of the uncompressed data.
* Otherwise, the @flags are ignored.
* * WIMLIB_RESOURCE_FLAG_RAW if the raw compressed data is to be supplied
* instead of the uncompressed data.
* Otherwise, the @flags are ignored.