Skip to main content
Read an entire asset into memory.

Parameters

Asset
The asset to resolve and read.
int | None
An optional maximum accepted object size in bytes.

Returns

The complete object contents as bytes.