From c92afa95fbdc69ea317eef4536c3fd46c0be2eb3 Mon Sep 17 00:00:00 2001 From: leonarski_f Date: Sat, 28 Feb 2026 20:59:03 +0100 Subject: [PATCH] ZeroCopyReturnValue: Add GetHandle() --- common/ZeroCopyReturnValue.cpp | 4 ++++ common/ZeroCopyReturnValue.h | 1 + 2 files changed, 5 insertions(+) diff --git a/common/ZeroCopyReturnValue.cpp b/common/ZeroCopyReturnValue.cpp index 9e7f3e85..5f376f7a 100644 --- a/common/ZeroCopyReturnValue.cpp +++ b/common/ZeroCopyReturnValue.cpp @@ -42,3 +42,7 @@ void ZeroCopyReturnValue::SetIndexed(bool input) { bool ZeroCopyReturnValue::IsIndexed() const { return indexed; } + +uint32_t ZeroCopyReturnValue::GetHandle() const { + return handle; +} diff --git a/common/ZeroCopyReturnValue.h b/common/ZeroCopyReturnValue.h index 1f774407..11e5de0d 100644 --- a/common/ZeroCopyReturnValue.h +++ b/common/ZeroCopyReturnValue.h @@ -23,6 +23,7 @@ public: void SetIndexed(bool input); void *GetImage() const; + [[nodiscard]] uint32_t GetHandle() const; [[nodiscard]] size_t GetImageSize() const; [[nodiscard]] int64_t GetImageNumber() const; [[nodiscard]] bool IsIndexed() const;