|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Owning contiguous buffer with an explicit logical element count. More...
#include <src/utility.h>
Public Member Functions | |
| T * | begin () |
| Return an iterator to the first byte in the buffer view. | |
| const T * | begin () const |
| Return an iterator to the first byte in the buffer view. | |
| buffer_t (buffer_t &&o) noexcept | |
| Construct an owning contiguous buffer. | |
| buffer_t (const buffer_t &o) | |
| Construct an owning contiguous buffer. | |
| buffer_t (size_t elements) | |
| Construct an owning contiguous buffer. | |
| buffer_t (size_t elements, const T &t) | |
| Construct an owning contiguous buffer. | |
| T * | end () |
| Return an iterator one past the final byte in the buffer view. | |
| const T * | end () const |
| Return an iterator one past the final byte in the buffer view. | |
| void | fake_resize (std::size_t els) |
| Update the logical element count without reallocating storage. | |
| buffer_t & | operator= (buffer_t &&o) noexcept |
| Assign state from another instance while preserving ownership semantics. | |
| T & | operator[] (size_t el) |
| Access an element in the owning buffer. | |
| const T & | operator[] (size_t el) const |
| Access an element in the owning buffer. | |
| size_t | size () const |
| Return the serialized size of the current object. | |
Owning contiguous buffer with an explicit logical element count.
|
inlinenoexcept |
Construct an owning contiguous buffer.
| o | Source object used for comparison or assignment. |
|
inline |
Construct an owning contiguous buffer.
| o | Source object used for comparison or assignment. |
|
inlineexplicit |
Construct an owning contiguous buffer.
| elements | Elements copied into the buffer. |
|
inlineexplicit |
Construct an owning contiguous buffer.
| elements | Elements copied into the buffer. |
| t | Initial value used to populate the GPU buffer. |
|
inline |
Return an iterator to the first byte in the buffer view.
|
inline |
Return an iterator to the first byte in the buffer view.
|
inline |
Return an iterator one past the final byte in the buffer view.
|
inline |
Return an iterator one past the final byte in the buffer view.
|
inline |
Update the logical element count without reallocating storage.
| els | Elements used to initialize the buffer. |
|
inlinenoexcept |
Assign state from another instance while preserving ownership semantics.
| o | Source object used for comparison or assignment. |
|
inline |
Access an element in the owning buffer.
| el | Zero-based element index. |
|
inline |
Access an element in the owning buffer.
| el | Zero-based element index. |
|
inline |
Return the serialized size of the current object.