A container for a native system resource handle. Uses Int64 to represent the handle value, ensuring stability across all hxcpp platforms and avoiding size_t/float precision issues.

Static methods

staticnullHandle():NativeHandle

Returns a null/invalid handle.

Constructor

new(val:Int64)

Variables

read onlyisValid:Bool

Checks if the handle is valid (not zero).

read onlyvalue:Int64