# RHIBuffer::GetSize ```cpp virtual uint64_t GetSize() const = 0; ``` 获取缓冲区总大小(字节)。 **返回:** 缓冲区大小(字节) **线程安全:** ✅ **复杂度:** O(1) **示例:** ```cpp uint64_t size = buffer->GetSize(); printf("Buffer size: %llu bytes\n", (unsigned long long)size); ``` ## 相关文档 - [RHIBuffer 总览](buffer.md) - 返回类总览