(private) new Resource(native)
Looks up a resource.
Parameters:
Name | Type | Description |
---|---|---|
native |
* | Native resource object. |
Methods
exists() → {boolean}
Returns true if the resource exists.
Returns:
True if resource exists.
- Type
- boolean
getSize() → {number}
Returns the resource size.
Returns:
Size of resource in bytes.
- Type
- number
getStream()
Returns the resource stream.
Returns:
Stream of resource.