Returns the size in bytes of the wrapped resource to use to determine how much of the memory cache this resource uses.