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.
Members
Functions
reset
public void reset(zx_handle_t value)
Defined at line 27 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
is_valid
public bool is_valid()
Defined at line 32 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
operator bool
public bool operator bool()
Defined at line 33 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
get
public zx_handle_t get()
Defined at line 35 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
reset_and_get_address
public zx_handle_t * reset_and_get_address()
Defined at line 43 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
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.
release
public zx_handle_t release()
Defined at line 48 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
get_info
public 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
get_property
public 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
set_property
public 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
object_base
protected void object_base()
Defined at line 70 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
object_base
protected void object_base(zx_handle_t value)
Defined at line 72 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
~object_base
protected void ~object_base()
Defined at line 74 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
object_base
protected void object_base(const object_base & )
Defined at line 76 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
operator=
protected void operator=(const object_base & )
Defined at line 78 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h
close
protected void close()
Defined at line 80 of file ../../zircon/system/ulib/zx/include/lib/zx/object.h