Function OwnedByteResource.byteLength

Byte length of the currently owned resource.

ulong byteLength() pure nothrow @property @nogc @safe const;

Returns zero for an empty or moved-from token.

Example

Example reading the byte length of an empty ownership token.

import raster;

OwnedByteResource resource;
assert(resource.byteLength == 0);