class object_base
Defined at line 25 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
Wraps and takes ownership of a handle to an object.
Used for code that wants to operate generically on the zx_handle_t value
inside a |zx::object| and doesn't otherwise need a template parameter.
The handle is automatically closed when the wrapper is destroyed.
Protected Members
zx_handle_t value_
Public Methods
void reset (zx_handle_t value)
Defined at line 27 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
bool is_valid ()
Defined at line 32 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
bool operator bool ()
Defined at line 33 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
zx_handle_t get ()
Defined at line 35 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
zx_handle_t * reset_and_get_address ()
Reset the underlying handle, and then get the address of the
underlying internal handle storage.
Note: The intended purpose is to facilitate interactions with C
APIs which expect to be provided a pointer to a handle used as
an out parameter.
Defined at line 43 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
zx_handle_t release ()
Defined at line 48 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
zx_status_t get_info (uint32_t topic, void * buffer, size_t buffer_size, size_t * actual_count, size_t * avail_count)
Defined at line 54 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
zx_status_t get_property (uint32_t property, void * value, size_t size)
Defined at line 59 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
zx_status_t set_property (uint32_t property, const void * value, size_t size)
Defined at line 64 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
Protected Methods
void object_base ()
Defined at line 70 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
void object_base (zx_handle_t value)
Defined at line 72 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
void ~object_base ()
Defined at line 74 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
void object_base (const object_base & )
Defined at line 76 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
void operator= (const object_base & )
Defined at line 78 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
void close ()
Defined at line 80 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h