\brief constructor \note This is a buffer wrapper that maps to a bo_buffer or other memory without performing a deep copy. \note A copy (or mapping) does not duplicate the underlying memory; it only maps the pointer.
| 47 | /// \note This is a buffer wrapper that maps to a bo_buffer or other memory without performing a deep copy. |
| 48 | /// \note A copy (or mapping) does not duplicate the underlying memory; it only maps the pointer. |
| 49 | bytes() : data_(nullptr), size_(0), is_owner_(false) |
| 50 | #ifdef __XRT__ |
| 51 | , is_bo_owner_(false), bo_(nullptr), owned_bo_(nullptr) |
| 52 | #endif |
| 53 | {} |
| 54 | |
| 55 | /// \brief copy constructor |
| 56 | /// \param other the other bytes |