21#include "livekit/visibility.h"
31 explicit FfiHandle(uintptr_t h = 0)
noexcept;
43 void reset(uintptr_t new_handle = 0) noexcept;
46 [[nodiscard]] uintptr_t release() noexcept;
49 [[nodiscard]]
bool valid() const noexcept;
52 [[nodiscard]] uintptr_t get() const noexcept;
55 explicit operator
bool() const noexcept {
return valid(); }
RAII wrapper for an FFI handle (uintptr_t) coming from Rust.
Definition ffi_handle.h:29
void reset(uintptr_t new_handle=0) noexcept
Replace the current handle with a new one, dropping the old if needed.
Public API for the LiveKit C++ Client SDK.
Definition audio_frame.h:25