Utility: always return 32bit length from Resource::getRaw().

It is stored internally as 32bit, thus it would not be possible to store
data larger than 4 GB either.