|
LiveKit C++ SDK
Real-time audio/video SDK for C++
|
RAII wrapper for an FFI handle (uintptr_t) coming from Rust. More...
#include <ffi_handle.h>
Public Member Functions | |
| FfiHandle (uintptr_t h=0) noexcept | |
| FfiHandle (const FfiHandle &)=delete | |
| FfiHandle & | operator= (const FfiHandle &)=delete |
| FfiHandle (FfiHandle &&other) noexcept | |
| FfiHandle & | operator= (FfiHandle &&other) noexcept |
| void | reset (uintptr_t new_handle=0) noexcept |
| uintptr_t | release () noexcept |
| bool | valid () const noexcept |
| uintptr_t | get () const noexcept |
| operator bool () const noexcept | |
RAII wrapper for an FFI handle (uintptr_t) coming from Rust.
Ensures that the handle is automatically released via livekit_ffi_drop_handle() when the object goes out of scope.